:root { color-scheme:light; -webkit-text-size-adjust:100%; }
html.crp-patient-menu-open { overflow:hidden; }
body.crp-patient-standalone-page { margin:0; background:#f4f7fa; color:#2f3a45; }
.crp-patient-standalone-main { min-height:100vh; }
.crp-patient-app,.crp-patient-login {
    --pp-blue:var(--tebtok-blue);
    --pp-blue-dark:var(--tebtok-blue-dark);
    --pp-aqua:var(--tebtok-soft-teal);
    --pp-aqua-dark:#158e88;
    --pp-bg:var(--tebtok-bg);
    --pp-surface:#fff;
    --pp-ink:var(--tebtok-ink);
    --pp-muted:var(--tebtok-muted);
    --pp-line:var(--tebtok-line);
    --pp-danger:#b42318;
    --pp-warning:#925c0b;
    min-height:100vh;
    color:var(--pp-ink);
    font-family:"Yekan Bakh",Tahoma,Arial,sans-serif;
    font-size:15px;
    line-height:1.85;
    text-align:right;
}
.crp-patient-app *,.crp-patient-login * { box-sizing:border-box; }
.crp-patient-app button,.crp-patient-app input,.crp-patient-app select,.crp-patient-app textarea,
.crp-patient-login button,.crp-patient-login input { font:inherit; }
.crp-patient-app a,.crp-patient-login a { color:inherit; }
.crp-patient-skip { position:fixed; z-index:9999; inset-block-start:8px; inset-inline-start:-999px; padding:8px 14px; border-radius:8px; color:#fff!important; background:var(--pp-blue-dark); }
.crp-patient-skip:focus { inset-inline-start:8px; }

/* Login */
.crp-patient-login { display:grid; place-items:center; min-height:100vh; padding:32px 18px; background:radial-gradient(circle at 85% 0,#e7fbf8 0,transparent 36%),linear-gradient(145deg,#edf3ff,#f7f9fc 62%,#e9f9f7); }
.crp-patient-login-brand { position:absolute; inset-block-start:28px; inset-inline-start:50%; transform:translateX(50%); }
.crp-patient-login-brand img { display:block; width:138px; height:auto; }
.crp-patient-login-card { width:min(460px,100%); margin-top:55px; padding:34px; border:1px solid var(--pp-line); border-top:5px solid var(--pp-aqua); border-radius:26px; background:#fff; box-shadow:0 28px 70px rgba(18,62,124,.12); }
.crp-patient-role { display:table; margin:0 auto 9px; padding:4px 12px; border-radius:999px; color:#08796f; background:#e5faf7; font-size:11px; font-weight:800; }
.crp-patient-login-card h1 { margin:0; color:var(--pp-blue-dark); text-align:center; font-size:25px; line-height:1.5; }
.crp-patient-login-card>p { margin:7px 0 22px; color:var(--pp-muted); text-align:center; font-size:13px; }
.crp-patient-login-card form { display:grid; gap:14px; }
.crp-patient-login-card label,.crp-patient-profile-form label { display:flex; flex-direction:column; gap:6px; color:#35495a; font-size:12px; font-weight:700; }
.crp-patient-login-card input,.crp-patient-profile-form input:not([type=checkbox]) { width:100%; min-height:48px; padding:10px 13px; border:1px solid #bdccd9; border-radius:12px; outline:0; color:var(--pp-ink); background:#fbfdff; }
.crp-patient-login-card input:focus,.crp-patient-profile-form input:focus { border-color:var(--pp-blue); box-shadow:0 0 0 3px rgba(31,103,237,.12); background:#fff; }
.crp-patient-login-links { display:flex; justify-content:space-between; gap:12px; margin-top:17px; font-size:11px; font-weight:700; }
.crp-patient-login-links a { color:var(--pp-blue)!important; text-decoration:none; }
.crp-patient-login-card>small { display:block; margin-top:19px; padding-top:14px; border-top:1px solid #e8eef4; color:var(--pp-muted); font-size:10px; line-height:1.9; text-align:center; }

/* Shell */
.crp-patient-topbar { position:sticky; z-index:80; inset-block-start:0; display:flex; align-items:center; justify-content:space-between; min-height:74px; padding:10px 24px; border-bottom:1px solid var(--pp-line); background:rgba(255,255,255,.96); box-shadow:0 8px 26px rgba(18,62,124,.05); backdrop-filter:blur(12px); }
.crp-patient-brand { display:flex; align-items:center; gap:12px; text-decoration:none; }
.crp-patient-brand img { display:block; width:112px; height:auto; }
.crp-patient-brand span { padding-inline-start:12px; border-inline-start:1px solid var(--pp-line); color:var(--pp-blue-dark); font-size:12px; font-weight:800; }
.crp-patient-user { display:flex; align-items:center; gap:10px; }
.crp-patient-user>span:first-child { display:flex; flex-direction:column; text-align:left; }
.crp-patient-user b { color:var(--pp-blue-dark); font-size:12px; }
.crp-patient-user small { color:var(--pp-muted); font-size:9px; }
.crp-patient-avatar { display:grid; place-items:center; width:40px; height:40px; flex:0 0 auto; border-radius:13px; color:#086b64; background:#dbf8f4; font-weight:900; }
.crp-patient-menu { display:none; align-items:center; gap:5px; border:0; color:var(--pp-blue-dark); background:transparent; cursor:pointer; }
.crp-patient-shell { display:grid; grid-template-columns:250px minmax(0,1fr); min-height:calc(100vh - 74px); }
.crp-patient-sidebar { position:sticky; z-index:60; inset-block-start:74px; height:calc(100vh - 74px); padding:20px 16px; border-inline-end:1px solid var(--pp-line); background:#fff; overflow:auto; }
.crp-patient-sidebar-close { display:none; }
.crp-patient-sidebar nav { display:grid; gap:4px; }
.crp-patient-sidebar nav a,.crp-patient-side-footer a,.crp-patient-side-footer button { display:flex; align-items:center; gap:10px; width:100%; min-height:44px; padding:9px 12px; border:0; border-radius:11px; color:#536475; background:transparent; text-decoration:none; text-align:right; cursor:pointer; font-size:12px; font-weight:700; }
.crp-patient-sidebar nav a .dashicons,.crp-patient-side-footer .dashicons { width:20px; height:20px; font-size:20px; }
.crp-patient-sidebar nav a:hover,.crp-patient-sidebar nav a.is-active { color:var(--pp-blue-dark); background:#edf3ff; }
.crp-patient-sidebar nav a.is-active { box-shadow:inset -3px 0 0 var(--pp-blue); }
.crp-patient-new-case { display:flex; align-items:center; justify-content:center; gap:8px; min-height:45px; margin-top:17px; border-radius:11px; color:#fff!important; background:var(--pp-blue); text-decoration:none; font-size:12px; font-weight:850; }
.crp-patient-side-footer { position:absolute; inset-inline:16px; inset-block-end:18px; padding-top:13px; border-top:1px solid #e8eef4; }
.crp-patient-side-footer form { margin:0; }
.crp-patient-side-footer button { color:#8b3a34; }
.crp-patient-main { min-width:0; padding:26px clamp(18px,3vw,42px) 56px; }
.crp-patient-main>* { width:min(1260px,100%); margin-inline:auto; }
.crp-patient-page-head { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:18px; }
.crp-patient-page-head span { color:var(--pp-aqua-dark); font-size:10px; font-weight:900; }
.crp-patient-page-head h1 { margin:0; color:var(--pp-blue-dark); font-size:26px; line-height:1.45; }
.crp-patient-page-head p { margin:3px 0 0; color:var(--pp-muted); font-size:11px; }
.crp-patient-page-head>a { padding:8px 12px; border:1px solid #c7d4df; border-radius:9px; color:var(--pp-blue)!important; background:#fff; text-decoration:none; font-size:10px; font-weight:800; }
.crp-patient-primary,.crp-patient-secondary { display:inline-flex; align-items:center; justify-content:center; min-height:43px; padding:9px 16px; border-radius:11px; text-decoration:none; cursor:pointer; font-weight:850; font-size:12px; }
.crp-patient-primary { border:1px solid var(--pp-blue); color:#fff!important; background:var(--pp-blue); box-shadow:0 8px 20px rgba(31,103,237,.16); }
.crp-patient-primary:hover { background:#1958cb; }
.crp-patient-secondary { border:1px solid #bccbd7; color:var(--pp-blue-dark)!important; background:#fff; }
.crp-patient-status { display:inline-flex; align-items:center; justify-content:center; min-height:27px; padding:3px 9px; border-radius:999px; white-space:nowrap; font-size:9px; font-weight:850; }
.crp-patient-status.is-blue { color:#1955b7; background:#e8f0ff; }
.crp-patient-status.is-amber { color:#83530c; background:#fff2d9; }
.crp-patient-status.is-green { color:#08704d; background:#e6f7ee; }
.crp-patient-status.is-neutral { color:#63717d; background:#edf1f4; }

/* Dashboard */
.crp-patient-welcome { display:flex; align-items:center; justify-content:space-between; gap:25px; margin-bottom:13px; padding:24px 26px; border:1px solid #cfe4e2; border-radius:20px; background:linear-gradient(120deg,#fff 0%,#f0fbfa 100%); }
.crp-patient-welcome span { color:var(--pp-aqua-dark); font-size:11px; font-weight:850; }
.crp-patient-welcome h2 { margin:2px 0; color:var(--pp-blue-dark); font-size:22px; }
.crp-patient-welcome p { max-width:760px; margin:4px 0 0; color:var(--pp-muted); font-size:11px; }
.crp-patient-action-alert { display:flex; align-items:center; gap:13px; margin-bottom:13px; padding:13px 16px; border:1px solid #ebc875; border-radius:14px; color:#754a08; background:#fff8e8; }
.crp-patient-action-alert>.dashicons { width:25px; height:25px; font-size:25px; }
.crp-patient-action-alert div { flex:1; }
.crp-patient-action-alert b { font-size:12px; }
.crp-patient-action-alert p { margin:0; font-size:10px; }
.crp-patient-action-alert a { padding:6px 11px; border-radius:8px; color:#fff!important; background:#a56a11; text-decoration:none; font-size:10px; font-weight:800; }
.crp-patient-active-case,.crp-patient-panel,.crp-patient-list-card,.crp-patient-case-hero,.crp-patient-toolbar { margin-bottom:13px; border:1px solid var(--pp-line); border-radius:18px; background:#fff; box-shadow:0 8px 26px rgba(18,62,124,.035); }
.crp-patient-active-case { padding:22px 24px; }
.crp-patient-card-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; }
.crp-patient-card-head>div { min-width:0; }
.crp-patient-card-head span:first-child { color:var(--pp-muted); font-size:10px; }
.crp-patient-card-head h2 { margin:0; color:var(--pp-blue-dark); font-size:20px; }
.crp-patient-card-head code { color:var(--pp-blue); font-family:ui-monospace,SFMono-Regular,Consolas,monospace; font-size:10px; font-weight:800; }
.crp-patient-progress { height:9px; margin:18px 0 8px; border-radius:999px; background:#e8eef4; overflow:hidden; }
.crp-patient-progress span { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--pp-blue),var(--pp-aqua)); }
.crp-patient-progress-meta { display:flex; flex-wrap:wrap; justify-content:space-between; gap:7px 18px; color:var(--pp-muted); font-size:10px; }
.crp-patient-progress-meta b { color:var(--pp-blue-dark); }
.crp-patient-status-copy { margin:15px 0 0; padding:10px 12px; border-radius:10px; color:#465a6a; background:#f6f9fb; font-size:11px; }
.crp-patient-card-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:15px; }
.crp-patient-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:13px; }
.crp-patient-metric { display:grid; grid-template-columns:42px 1fr; grid-template-rows:auto auto; gap:0 12px; align-items:center; min-height:92px; padding:16px; border:1px solid var(--pp-line); border-radius:16px; background:#fff; text-decoration:none; }
.crp-patient-metric>.dashicons { grid-row:1/3; display:grid; place-items:center; width:42px; height:42px; border-radius:13px; font-size:21px; }
.crp-patient-metric b { color:var(--pp-blue-dark); font-size:20px; line-height:1.2; }
.crp-patient-metric small { color:var(--pp-muted); font-size:9px; }
.crp-patient-metric.is-blue>.dashicons { color:#1f67ed; background:#eaf1ff; }
.crp-patient-metric.is-aqua>.dashicons { color:#08796f; background:#e5faf7; }
.crp-patient-metric.is-amber>.dashicons { color:#9a600c; background:#fff2da; }
.crp-patient-metric.is-green>.dashicons { color:#08704d; background:#e6f7ee; }
.crp-patient-home-grid { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr); gap:13px; }
.crp-patient-panel { padding:20px; }
.crp-patient-panel>header { display:flex; align-items:center; justify-content:space-between; gap:15px; margin-bottom:14px; padding-bottom:11px; border-bottom:1px solid #e8eef4; }
.crp-patient-panel>header span { color:var(--pp-muted); font-size:9px; }
.crp-patient-panel>header h2 { margin:0; color:var(--pp-blue-dark); font-size:17px; }
.crp-patient-panel>header a { color:var(--pp-blue)!important; text-decoration:none; font-size:10px; font-weight:800; }
.crp-patient-timeline { display:grid; gap:8px; margin:0; padding:0; list-style:none; }
.crp-patient-timeline li { position:relative; display:flex; align-items:center; gap:10px; min-height:44px; }
.crp-patient-timeline li:not(:last-child)::after { content:""; position:absolute; inset-block-start:34px; inset-inline-start:15px; width:2px; height:25px; background:#dfe7ee; }
.crp-patient-timeline li>span { z-index:1; display:grid; place-items:center; width:30px; height:30px; flex:0 0 auto; border:2px solid #d6e0e8; border-radius:50%; color:#71808c; background:#fff; font-size:9px; font-weight:850; }
.crp-patient-timeline li>div { display:flex; flex-direction:column; }
.crp-patient-timeline b { font-size:11px; }
.crp-patient-timeline small { color:var(--pp-muted); font-size:8px; }
.crp-patient-timeline li.is-done>span { border-color:var(--pp-aqua); color:#086b64; background:#def9f5; }
.crp-patient-timeline li.is-current>span { border-color:var(--pp-blue); color:#fff; background:var(--pp-blue); box-shadow:0 0 0 4px #e9f0ff; }
.crp-patient-timeline li.is-current b { color:var(--pp-blue); }
.crp-patient-history { display:grid; gap:12px; margin:0; padding:0; list-style:none; }
.crp-patient-history li { display:flex; gap:10px; }
.crp-patient-history li>span { width:9px; height:9px; flex:0 0 auto; margin-top:8px; border:2px solid #fff; border-radius:50%; background:var(--pp-aqua-dark); box-shadow:0 0 0 2px #cceeea; }
.crp-patient-history li>div { display:flex; flex-direction:column; }
.crp-patient-history b { font-size:10px; }
.crp-patient-history small { color:var(--pp-muted); font-size:8px; }
.crp-patient-trust { display:flex; align-items:center; gap:13px; margin-top:13px; padding:15px 17px; border:1px solid #c9dfec; border-radius:15px; color:#264a67; background:#f1f7fc; }
.crp-patient-trust>.dashicons { width:28px; height:28px; color:var(--pp-blue); font-size:28px; }
.crp-patient-trust>div { flex:1; }
.crp-patient-trust b { font-size:12px; }
.crp-patient-trust p { margin:1px 0 0; font-size:9px; }

/* Cases, toolbar and tabs */
.crp-patient-toolbar { padding:14px 16px; }
.crp-patient-toolbar form { display:flex; gap:8px; }
.crp-patient-toolbar form label { position:relative; flex:1; }
.crp-patient-toolbar form label>.dashicons { position:absolute; inset-block-start:12px; inset-inline-start:12px; color:#758592; }
.crp-patient-toolbar input { width:100%; min-height:44px; padding:9px 42px 9px 12px; border:1px solid #becdd9; border-radius:11px; outline:0; background:#fbfdff; }
.crp-patient-toolbar input:focus { border-color:var(--pp-blue); box-shadow:0 0 0 3px rgba(31,103,237,.1); }
.crp-patient-toolbar form button { min-width:85px; border:0; border-radius:10px; color:#fff; background:var(--pp-blue); cursor:pointer; font-weight:800; }
.crp-patient-filters { display:flex; flex-wrap:wrap; gap:6px; margin-top:12px; }
.crp-patient-filters a { padding:6px 10px; border:1px solid #d3dfe8; border-radius:999px; color:#536475!important; background:#fff; text-decoration:none; font-size:9px; font-weight:700; }
.crp-patient-filters a.is-active { border-color:#b9cdf7; color:var(--pp-blue)!important; background:#edf3ff; }
.crp-patient-list-card { padding:8px; overflow:hidden; }
.crp-patient-case-list { display:grid; }
.crp-patient-case-list article { display:grid; grid-template-columns:minmax(160px,.75fr) minmax(200px,1.2fr) minmax(170px,.8fr) auto; gap:16px; align-items:center; padding:16px; border-bottom:1px solid #e8eef4; }
.crp-patient-case-list article:last-child { border-bottom:0; }
.crp-patient-case-code { display:flex; flex-direction:column; align-items:flex-start; gap:6px; }
.crp-patient-case-code code { color:var(--pp-blue); font-size:10px; font-weight:900; }
.crp-patient-case-list h2 { margin:0; color:var(--pp-blue-dark); font-size:14px; }
.crp-patient-case-list p { margin:2px 0 0; color:var(--pp-muted); font-size:9px; }
.crp-patient-case-progress>span { display:block; height:6px; border-radius:999px; background:#e6edf3; overflow:hidden; }
.crp-patient-case-progress i { display:block; height:100%; background:linear-gradient(90deg,var(--pp-blue),var(--pp-aqua)); }
.crp-patient-case-progress small { color:var(--pp-muted); font-size:8px; }
.crp-patient-case-list article>a,.crp-patient-report-list article>a { padding:7px 11px; border:1px solid #c1d0dc; border-radius:9px; color:var(--pp-blue)!important; background:#fff; text-decoration:none; text-align:center; white-space:nowrap; font-size:9px; font-weight:800; }
.crp-patient-case-hero { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:20px 22px; }
.crp-patient-case-hero code { color:var(--pp-blue); font-size:10px; font-weight:900; }
.crp-patient-case-hero h2 { margin:0; color:var(--pp-blue-dark); font-size:21px; }
.crp-patient-case-hero p { margin:2px 0 0; color:var(--pp-muted); font-size:9px; }
.crp-patient-tabs { display:flex; gap:4px; margin-bottom:13px; padding:5px; border:1px solid var(--pp-line); border-radius:13px; background:#fff; overflow:auto; }
.crp-patient-tabs a { flex:1; min-width:88px; padding:8px 10px; border-radius:9px; color:#596a78!important; text-decoration:none; text-align:center; white-space:nowrap; font-size:10px; font-weight:750; }
.crp-patient-tabs a.is-active { color:var(--pp-blue-dark)!important; background:#eaf1ff; }
.crp-patient-case-status>.crp-patient-card-head { padding-bottom:12px; border-bottom:1px solid #e8eef4; }
.crp-patient-case-status>.crp-patient-card-head>b { color:var(--pp-blue); font-size:22px; }
.crp-patient-case-status>p { padding:11px 13px; border-radius:10px; background:#f5f8fb; font-size:11px; }
.crp-patient-summary-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.crp-patient-summary-grid>div { min-width:0; padding:13px 14px; border:1px solid #e1e9ef; border-radius:12px; background:#fbfdff; }
.crp-patient-summary-grid small { color:var(--pp-muted); font-size:9px; }
.crp-patient-summary-grid p { margin:3px 0 0; overflow-wrap:anywhere; font-size:11px; }
.crp-patient-summary-grid p>span { color:#9aa5ae; }
.crp-patient-info-note { display:flex; align-items:flex-start; gap:10px; margin-top:13px; padding:12px 14px; border:1px solid #d6e4ec; border-radius:11px; color:#486273; background:#f5f9fc; }
.crp-patient-info-note>.dashicons { color:var(--pp-blue); }
.crp-patient-info-note p { margin:0; font-size:9px; }
.crp-patient-info-note.is-success { border-color:#acd9c7; color:#165d49; background:#effaf5; }
.crp-patient-info-note.is-success>.dashicons { color:#11805f; }
.crp-patient-ai-consent { margin-top:13px; }
.crp-patient-ai-consent>p { margin:0 0 12px; color:var(--pp-muted); font-size:10px; line-height:1.9; }
.crp-patient-ai-consent form { display:grid; gap:12px; }
.crp-patient-ai-consent .crp-patient-check { align-items:flex-start; }
.crp-patient-ai-consent .crp-patient-check span { color:#334d5f; font-size:10px; line-height:1.9; }
.crp-patient-ai-consent .crp-patient-primary { width:max-content; max-width:100%; }

/* Documents, reports, account and support */
.crp-patient-documents-panel>.crp-patient-filters { margin:0 0 13px; }
.crp-patient-document-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.crp-patient-document-grid article { display:grid; grid-template-columns:44px minmax(0,1fr) auto; align-items:center; gap:10px; padding:12px; border:1px solid #e0e8ef; border-radius:12px; background:#fbfdff; }
.crp-patient-file-icon { display:grid; place-items:center; width:42px; height:42px; border-radius:12px; color:var(--pp-blue); background:#eaf1ff; }
.crp-patient-document-grid article>div { min-width:0; }
.crp-patient-document-grid b,.crp-patient-document-grid small,.crp-patient-document-grid code { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.crp-patient-document-grid b { font-size:10px; }
.crp-patient-document-grid small { color:var(--pp-muted); font-size:8px; }
.crp-patient-document-grid code { color:var(--pp-blue); font-size:8px; }
.crp-patient-document-grid nav { display:flex; gap:5px; }
.crp-patient-document-grid nav a { padding:5px 7px; border:1px solid #c6d5df; border-radius:7px; color:var(--pp-blue)!important; text-decoration:none; font-size:8px; font-weight:800; }
/* 7.4.17 — documents grouped per case: every file says which case (code · patient · area) it belongs to */
.crp-patient-doc-cases a code { font-size:10px; font-weight:900; color:inherit; }
.crp-patient-docgroup { margin:0 0 14px; border:1px solid #dbe5ee; border-radius:14px; background:#fff; overflow:hidden; }
.crp-patient-docgroup-head { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; padding:14px 16px; border-bottom:1px solid #e8eef4; background:linear-gradient(180deg,#f7fafd,#fff); }
.crp-patient-docgroup-id { min-width:0; display:grid; gap:4px; }
.crp-patient-docgroup-id .crp-patient-case-code { flex-direction:row; align-items:center; gap:8px; flex-wrap:wrap; }
.crp-patient-docgroup-id h3 { margin:0; color:var(--pp-blue-dark); font-size:15px; line-height:1.6; }
.crp-patient-docgroup-id h3 span { color:var(--pp-muted); font-weight:600; font-size:13px; }
.crp-patient-docgroup-id p { margin:0; color:var(--pp-muted); font-size:12px; }
.crp-patient-docgroup-head nav { display:flex; gap:6px; flex:0 0 auto; }
.crp-patient-docgroup-head nav .crp-patient-secondary { min-height:36px; padding:6px 12px; font-size:11.5px; }
.crp-patient-docgroup .crp-patient-document-grid { padding:12px; }
.crp-patient-doc-owner { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; margin-top:2px; color:var(--pp-blue-dark); font-size:10px; font-weight:700; }
.crp-patient-report-list { display:grid; }
.crp-patient-report-list article { display:grid; grid-template-columns:44px minmax(0,1fr) auto; align-items:center; gap:13px; padding:17px; border-bottom:1px solid #e8eef4; }
.crp-patient-report-list article:last-child { border-bottom:0; }
.crp-patient-report-list>.dashicons,.crp-patient-report-list article>.dashicons { display:grid; place-items:center; width:42px; height:42px; border-radius:12px; color:#08704d; background:#e6f7ee; }
.crp-patient-report-list code { color:var(--pp-blue); font-size:9px; }
.crp-patient-report-list h2 { margin:0; color:var(--pp-blue-dark); font-size:14px; }
.crp-patient-report-list p { margin:1px 0 0; color:var(--pp-muted); font-size:8px; }
.crp-patient-report-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:7px; margin-bottom:10px; }
.crp-patient-report-actions a,.crp-patient-report-actions button { display:inline-flex; align-items:center; gap:6px; min-height:39px; padding:7px 11px; border:1px solid #bfced9; border-radius:9px; color:var(--pp-blue-dark)!important; background:#fff; text-decoration:none; cursor:pointer; font-size:9px; font-weight:800; }
.crp-patient-report { border:1px solid #cbd8e1; border-radius:18px; background:#fff; box-shadow:0 16px 42px rgba(18,62,124,.08); overflow:hidden; }
.crp-patient-report>header { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:20px 25px; border-bottom:4px solid var(--pp-blue); }
.crp-patient-report>header img { display:block; width:118px; }
.crp-patient-report>header div { display:flex; flex-direction:column; align-items:flex-end; }
.crp-patient-report>header span { color:var(--pp-muted); font-size:9px; }
.crp-patient-report>header code { color:var(--pp-blue); font-size:10px; font-weight:900; }
.crp-patient-report-title { padding:24px 25px 18px; text-align:center; }
.crp-patient-report-title span { color:var(--pp-aqua-dark); font-size:9px; font-weight:900; }
.crp-patient-report-title h1 { margin:2px 0; color:var(--pp-blue-dark); font-size:24px; }
.crp-patient-report-title p { margin:0; color:var(--pp-muted); font-size:10px; }
.crp-patient-report-meta { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin:0 25px 16px; padding:13px; border:1px solid #dce6ee; border-radius:12px; background:#f7fafc; }
.crp-patient-report-meta>div { min-width:0; }
.crp-patient-report-meta dt { color:var(--pp-muted); font-size:8px; }
.crp-patient-report-meta dd { margin:1px 0 0; overflow-wrap:anywhere; color:var(--pp-blue-dark); font-size:10px; font-weight:800; }
.crp-patient-report-group { margin:0 25px 14px; padding:18px; border:1px solid #dce5ec; border-radius:13px; }
.crp-patient-report-group>h2 { margin:-18px -18px 13px; padding:11px 16px; border-bottom:1px solid #dce5ec; border-radius:13px 13px 0 0; color:var(--pp-blue-dark); background:#f5f8fb; font-size:14px; }
.crp-patient-report-group>div { margin-top:12px; }
.crp-patient-report-group>div:first-of-type { margin-top:0; }
.crp-patient-report-group h3 { margin:0 0 3px; color:#486172; font-size:10px; }
.crp-patient-report-group p { margin:0; color:#263d4d; font-size:10px; line-height:2; }
.crp-patient-report-group ul { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; margin:0; padding:0; list-style:none; }
.crp-patient-report-group li { display:flex; flex-direction:column; padding:10px 12px; border-radius:9px; background:#f5f8fb; font-size:10px; font-weight:800; }
.crp-patient-report-group li small { color:var(--pp-muted); font-size:8px; font-weight:500; }
.crp-patient-signatures { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:0 25px 18px; }
.crp-patient-signatures>div { padding:15px; border:1px solid #cde1df; border-radius:12px; background:#f1faf9; }
.crp-patient-signatures small,.crp-patient-signatures b,.crp-patient-signatures span { display:block; }
.crp-patient-signatures small { color:#607982; font-size:8px; }
.crp-patient-signatures b { color:#0b665f; font-size:12px; }
.crp-patient-signatures span { color:#607982; font-size:8px; }
.crp-patient-report>footer { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:15px 25px; color:#fff; background:var(--pp-blue-dark); }
.crp-patient-report>footer b { font-size:15px; }
.crp-patient-report>footer p { max-width:720px; margin:0; opacity:.88; font-size:8px; }
.crp-patient-account-grid { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(330px,.9fr); gap:13px; }
.crp-patient-profile-form { display:grid; gap:14px; }
.crp-patient-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.crp-patient-profile-form label small { color:var(--pp-muted); font-size:8px; font-weight:500; }
.crp-patient-profile-form input:disabled { color:#6c7d89; background:#edf2f6; }
.crp-patient-profile-form fieldset { display:flex; flex-wrap:wrap; gap:8px; margin:0; padding:12px; border:1px solid #dce5ec; border-radius:11px; }
.crp-patient-profile-form legend { padding:0 5px; color:var(--pp-blue-dark); font-size:10px; font-weight:800; }
.crp-patient-check { flex-direction:row!important; align-items:center; min-height:38px; padding:6px 9px; border:1px solid #d9e3ea; border-radius:9px; background:#fbfdff; }
.crp-patient-check input { width:18px; height:18px; accent-color:var(--pp-blue); }
.crp-patient-check.is-disabled { opacity:.58; }
.crp-patient-people { display:grid; gap:8px; }
.crp-patient-people article { display:grid; grid-template-columns:40px minmax(0,1fr) auto; align-items:center; gap:9px; padding:10px; border:1px solid #e0e8ef; border-radius:11px; }
.crp-patient-people b,.crp-patient-people small { display:block; }
.crp-patient-people b { font-size:10px; }
.crp-patient-people small { color:var(--pp-muted); font-size:8px; }
.crp-patient-people a { color:var(--pp-blue)!important; text-decoration:none; font-size:9px; font-weight:800; }
.crp-patient-security>div { display:flex; align-items:center; gap:12px; }
.crp-patient-security .dashicons { color:var(--pp-blue); font-size:26px; }
.crp-patient-security p { margin:0; font-size:10px; }
.crp-patient-support-intro { margin-bottom:13px; padding:18px 20px; border:1px solid #cde3e1; border-radius:17px; background:#f0faf9; }
.crp-patient-support-intro>div { display:flex; align-items:center; gap:13px; }
.crp-patient-support-intro .dashicons { display:grid; place-items:center; width:44px; height:44px; border-radius:13px; color:#08746b; background:#d9f7f3; font-size:23px; }
.crp-patient-support-intro h2 { margin:0; color:var(--pp-blue-dark); font-size:17px; }
.crp-patient-support-intro p { margin:2px 0 0; color:var(--pp-muted); font-size:10px; }
.crp-patient-support-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:11px; margin-bottom:13px; }
.crp-patient-support-grid article { padding:17px; border:1px solid var(--pp-line); border-radius:15px; background:#fff; }
.crp-patient-support-grid code { color:var(--pp-blue); font-size:9px; font-weight:900; }
.crp-patient-support-grid h2 { margin:4px 0 0; color:var(--pp-blue-dark); font-size:14px; }
.crp-patient-support-grid p { margin:0 0 12px; color:var(--pp-muted); font-size:9px; }
.crp-patient-support-grid form,.crp-patient-support-grid button { width:100%; }
.crp-patient-ticket-list { display:grid; gap:7px; }
.crp-patient-ticket-list article { display:flex; align-items:center; gap:10px; padding:10px; border:1px solid #e0e8ef; border-radius:10px; }
.crp-patient-ticket-list article>div { display:flex; flex:1; flex-direction:column; }
.crp-patient-ticket-list b { font-size:10px; }
.crp-patient-ticket-list small { color:var(--pp-muted); font-size:8px; }
.crp-patient-support-button { margin-top:13px; }
.crp-patient-contact-strip { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.crp-patient-contact-strip>div { padding:14px; border:1px solid var(--pp-line); border-radius:13px; background:#fff; text-align:center; }
.crp-patient-contact-strip .dashicons { color:var(--pp-blue); }
.crp-patient-contact-strip b { display:block; color:var(--pp-blue-dark); font-size:10px; }
.crp-patient-contact-strip p { margin:1px 0 0; color:var(--pp-muted); font-size:8px; }
.crp-patient-empty { display:grid; place-items:center; min-height:260px; padding:30px; text-align:center; }
.crp-patient-empty.is-small { min-height:90px; }
.crp-patient-empty>.dashicons { width:40px; height:40px; color:#9aa9b6; font-size:40px; }
.crp-patient-empty h2 { margin:8px 0 0; color:var(--pp-blue-dark); font-size:17px; }
.crp-patient-empty p { margin:2px 0 0; color:var(--pp-muted); font-size:10px; }
.crp-patient-notice { margin-bottom:13px; padding:11px 14px; border:1px solid #d2dfe8; border-radius:11px; font-size:11px; }
.crp-patient-notice.is-error { border-color:#efb7b1; color:#922c23; background:#fff1ef; }
.crp-patient-notice.is-warning { border-color:#edcc88; color:#80530c; background:#fff8e9; }
.crp-patient-notice.is-success { border-color:#a9dbc1; color:#106443; background:#edf9f2; }
.crp-patient-toast { position:fixed; z-index:200; inset-inline-start:24px; inset-block-end:24px; max-width:360px; padding:11px 14px; border-radius:10px; color:#fff; background:#203b52; box-shadow:0 12px 35px rgba(0,0,0,.18); font-size:10px; }
.crp-patient-overlay[hidden] { display:none; }

@media (max-width:1050px) {
    .crp-patient-shell { grid-template-columns:220px minmax(0,1fr); }
    .crp-patient-case-list article { grid-template-columns:minmax(150px,.8fr) minmax(180px,1.2fr) auto; }
    .crp-patient-case-progress { display:none; }
    .crp-patient-support-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:820px) {
    .crp-patient-topbar { min-height:64px; padding:8px 12px; }
    .crp-patient-menu { display:flex; }
    .crp-patient-brand span { display:none; }
    .crp-patient-brand img { width:94px; }
    .crp-patient-shell { display:block; min-height:calc(100vh - 64px); }
    .crp-patient-sidebar { position:fixed; z-index:110; inset-block:0; inset-inline-start:0; inset-inline-end:auto; width:min(300px,86vw); height:100vh; padding-top:58px; transform:translateX(110%); transition:transform .2s ease; box-shadow:-15px 0 45px rgba(19,47,76,.18); }
    .crp-patient-sidebar.is-open { transform:translateX(0); }
    .crp-patient-sidebar-close { position:absolute; inset-block-start:14px; inset-inline-start:14px; display:grid; place-items:center; width:36px; height:36px; border:0; border-radius:9px; color:var(--pp-blue-dark); background:#edf3ff; cursor:pointer; }
    .crp-patient-side-footer { position:static; margin-top:22px; }
    .crp-patient-overlay { position:fixed; z-index:100; inset:0; background:rgba(14,34,53,.44); }
    .crp-patient-main { padding:18px 12px 42px; }
    .crp-patient-page-head h1 { font-size:22px; }
    .crp-patient-welcome { align-items:flex-start; flex-direction:column; padding:19px; }
    .crp-patient-welcome .crp-patient-primary { width:100%; }
    .crp-patient-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .crp-patient-home-grid,.crp-patient-account-grid { grid-template-columns:1fr; }
    .crp-patient-document-grid { grid-template-columns:1fr; }
    .crp-patient-report-meta { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:600px) {
    .crp-patient-app { font-size:14px; }
    .crp-patient-user>span:first-child { display:none; }
    .crp-patient-avatar { width:36px; height:36px; border-radius:11px; }
    .crp-patient-page-head { align-items:flex-start; }
    .crp-patient-page-head p { max-width:245px; }
    .crp-patient-page-head>a { display:none; }
    .crp-patient-action-alert { align-items:flex-start; flex-wrap:wrap; }
    .crp-patient-action-alert a { margin-inline-start:auto; }
    .crp-patient-active-case,.crp-patient-panel { padding:15px; border-radius:15px; }
    .crp-patient-card-head { align-items:flex-start; }
    .crp-patient-progress-meta { flex-direction:column; }
    .crp-patient-card-actions { display:grid; grid-template-columns:1fr; }
    .crp-patient-case-list article { grid-template-columns:1fr auto; gap:9px; padding:13px; }
    .crp-patient-case-list article>div:nth-child(2) { grid-column:1/-1; grid-row:1; }
    .crp-patient-case-code { grid-row:2; }
    .crp-patient-case-list article>a { grid-row:2; }
    .crp-patient-case-hero { align-items:flex-start; padding:16px; }
    .crp-patient-case-hero h2 { font-size:18px; }
    .crp-patient-summary-grid,.crp-patient-form-grid { grid-template-columns:1fr; }
    .crp-patient-document-grid article { grid-template-columns:40px minmax(0,1fr); }
    .crp-patient-docgroup-head { flex-direction:column; }
    .crp-patient-docgroup-head nav { width:100%; }
    .crp-patient-docgroup-head nav .crp-patient-secondary { flex:1; }
    .crp-patient-doc-owner { white-space:normal; line-height:1.6; }
    .crp-patient-document-grid nav { grid-column:1/-1; justify-content:flex-end; }
    .crp-patient-report-actions { justify-content:stretch; }
    .crp-patient-report-actions>* { flex:1; justify-content:center; }
    .crp-patient-report>header,.crp-patient-report>footer { align-items:flex-start; flex-direction:column; }
    .crp-patient-report>header div { align-items:flex-start; }
    .crp-patient-report-title,.crp-patient-report>header,.crp-patient-report>footer { padding:16px; }
    .crp-patient-report-meta,.crp-patient-report-group,.crp-patient-signatures { margin-inline:14px; }
    .crp-patient-report-meta,.crp-patient-signatures,.crp-patient-report-group ul { grid-template-columns:1fr; }
    .crp-patient-support-grid,.crp-patient-contact-strip { grid-template-columns:1fr; }
    .crp-patient-login { padding:18px 12px; }
    .crp-patient-login-card { padding:25px 17px; border-radius:20px; }
    .crp-patient-login-card h1 { font-size:22px; }
    .crp-patient-login-links { align-items:center; flex-direction:column; }
    .crp-patient-login-card input,.crp-patient-profile-form input:not([type=checkbox]),.crp-patient-toolbar input { font-size:16px; line-height:1.5; }
}
@media (prefers-reduced-motion:reduce) {
    .crp-patient-app * { scroll-behavior:auto!important; transition:none!important; }
}
@media print {
    @page { size:A4; margin:12mm; }
    body.crp-patient-printing { margin:0!important; padding:0!important; background:#fff!important; -webkit-print-color-adjust:exact; print-color-adjust:exact; }
    body.crp-patient-printing .crp-patient-topbar,
    body.crp-patient-printing .crp-patient-sidebar,
    body.crp-patient-printing .crp-patient-page-head,
    body.crp-patient-printing .crp-patient-report-actions,
    body.crp-patient-printing .crp-patient-trust,
    body.crp-patient-printing .crp-patient-toast { display:none!important; }
    body.crp-patient-printing .crp-patient-shell { display:block!important; }
    body.crp-patient-printing .crp-patient-main { padding:0!important; }
    body.crp-patient-printing .crp-patient-main>* { width:100%!important; max-width:none!important; }
    body.crp-patient-printing .crp-patient-report { border:0!important; border-radius:0!important; box-shadow:none!important; }
    body.crp-patient-printing .crp-patient-report>header { padding:0 0 4mm!important; }
    body.crp-patient-printing .crp-patient-report-title { padding:5mm 0 3mm!important; }
    body.crp-patient-printing .crp-patient-report-meta,
    body.crp-patient-printing .crp-patient-report-group,
    body.crp-patient-printing .crp-patient-signatures { margin-inline:0!important; }
    body.crp-patient-printing .crp-patient-report-group { break-inside:auto; page-break-inside:auto; }
    body.crp-patient-printing .crp-patient-report-group>h2,
    body.crp-patient-printing .crp-patient-report-group>div,
    body.crp-patient-printing .crp-patient-signatures>div { break-inside:avoid; page-break-inside:avoid; }
    body.crp-patient-printing .crp-patient-report>footer { margin-top:4mm; }
}

/* Shared TebTok portal navigation language. */
@media (min-width:901px) {
    .crp-patient-shell { grid-template-columns:262px minmax(0,1fr); }
    .crp-patient-sidebar { padding:24px 17px 18px; border:0; color:#e9f0ff; background:linear-gradient(180deg,#112c4b 0%,#0b233e 64%,#081c32 100%); box-shadow:-12px 0 40px rgba(7,29,50,.11); }
    .crp-patient-sidebar nav { gap:7px; }
    .crp-patient-sidebar nav a,.crp-patient-side-footer a,.crp-patient-side-footer button { min-height:45px; padding:8px 12px; border:1px solid transparent; border-radius:12px; color:#b9c9db; background:transparent; }
    .crp-patient-sidebar nav a:hover { color:#fff; background:rgba(255,255,255,.065); }
    .crp-patient-sidebar nav a.is-active { color:#fff; border-color:rgba(93,157,255,.23); background:linear-gradient(90deg,rgba(31,103,237,.32),rgba(29,208,189,.08)); box-shadow:inset -3px 0 0 #1dd0bd; }
    .crp-patient-new-case { border:1px solid rgba(93,157,255,.25); background:linear-gradient(90deg,rgba(31,103,237,.55),rgba(29,208,189,.28)); }
    .crp-patient-side-footer { border-color:rgba(255,255,255,.09); }
    .crp-patient-side-footer button { color:#e7b8b8; }
}

/* 7.4.15 — پشتیبانی داخل پرتال: سوئیچ پرونده (فقط با بیش از یک پرونده) */
.crp-patient-support-switch { display:grid; gap:8px; margin-bottom:14px; padding:12px 16px; border:1px solid #cde3e1; border-radius:14px; background:#f0faf9; }
.crp-patient-support-switch>span { color:#08746b; font-size:12.5px; font-weight:700; }
.crp-patient-support-switch>div { display:flex; flex-wrap:wrap; gap:8px; }
.crp-patient-support-switch form { margin:0; }
.crp-patient-support-switch button { display:flex; flex-direction:column; align-items:flex-start; gap:2px; min-height:44px; padding:7px 12px; border:1px solid #cde3e1; border-radius:11px; background:#fff; color:var(--tebtok-ink); font:inherit; cursor:pointer; text-align:right; }
.crp-patient-support-switch button b { font-size:13.5px; }
.crp-patient-support-switch button small { color:var(--tebtok-muted); font-size:11.5px; }
.crp-patient-support-switch button.is-active { border-color:#0e9f8f; background:#e3f7f4; cursor:default; }
.crp-patient-support-switch button:not(.is-active):hover { border-color:#0e9f8f; }

/* 7.4.16 — مدل پرداخت: انتخاب بسته، رسید و کارت پرداخت/مهلت پاسخ */
/* 7.4.20 — استایل‌های .crp-checkout* به assets/checkout.css منتقل شد (مشترک با فرم ثبت پرونده). */
.crp-pay-receipt { padding:18px 20px; }
.crp-pay-receipt>header { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin-bottom:14px; }
.crp-pay-receipt>header span { color:var(--pp-muted); font-size:11px; }
.crp-pay-receipt>header h2 { margin:2px 0 0; font-size:18px; }
.crp-pay-receipt>header .crp-patient-secondary { border:1px solid var(--pp-line); color:var(--pp-blue-dark)!important; background:#fff; }
.crp-pay-receipt-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 18px; margin:0 0 16px; }
.crp-pay-receipt-grid>div { padding:10px 12px; border:1px solid var(--pp-line); border-radius:10px; }
.crp-pay-receipt-grid dt { color:var(--pp-muted); font-size:11px; }
.crp-pay-receipt-grid dd { margin:3px 0 0; font-size:13.5px; font-weight:700; }
.crp-pay-receipt h3 { margin:14px 0 8px; font-size:14px; }
.crp-pay-receipt-table { width:100%; border-collapse:collapse; font-size:12px; }
.crp-pay-receipt-table th,.crp-receipt-table td { padding:8px 10px; border-bottom:1px solid var(--pp-line); text-align:right; }
.crp-pay-receipt-table th { color:var(--pp-muted); font-weight:700; }
.crp-pay-card { padding:16px 18px; }
.crp-pay-card>header { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:10px; }
.crp-pay-card>header span { color:var(--pp-muted); font-size:11px; }
.crp-pay-card>header h2 { margin:2px 0 0; font-size:15px; }
.crp-pay-card.is-awaiting { border-color:#edcc88; background:#fffaf0; }
.crp-pay-card.is-awaiting p { margin:0 0 10px; color:#80530c; font-size:12px; }
.crp-pay-facts { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:10px; margin-bottom:10px; }
.crp-pay-facts>span { display:flex; flex-direction:column; gap:2px; padding:10px 12px; border:1px solid var(--pp-line); border-radius:10px; background:var(--pp-bg,#f4f7fa); }
.crp-pay-facts small { color:var(--pp-muted); font-size:11px; }
.crp-pay-facts b { font-size:13.5px; }
.crp-pay-facts em { color:var(--pp-muted); font-size:11px; font-style:normal; }
@media(max-width:700px) {
  .crp-pay-receipt-grid { grid-template-columns:minmax(0,1fr); }
}
@media print { .crp-pay-receipt>header button { display:none; } }

/* 7.4.19 — «آنچه باید تکمیل کنید» */
.crp-patient-deficiency { border:1px solid #f1cf7d; background:linear-gradient(180deg,#fffaf0,#fff); }
.crp-patient-deficiency.is-sent { border-color:#bfe3cc; background:linear-gradient(180deg,#f2fbf5,#fff); }
.crp-patient-deficiency>header { align-items:flex-start; }
.crp-patient-deficiency>header span { color:#b45309; font-weight:800; }
.crp-patient-deficiency.is-sent>header span { color:#15803d; }
.crp-patient-deficiency>header small { color:var(--pp-muted); font-size:12px; white-space:nowrap; }
.crp-patient-deficiency-list { margin:0 0 12px; padding:0; list-style:none; display:grid; gap:8px; counter-reset:def; }
.crp-patient-deficiency-list li { position:relative; display:grid; gap:1px; padding:10px 46px 10px 12px; border:1px solid #f1cf7d; border-radius:12px; background:#fff; counter-increment:def; }
.crp-patient-deficiency-list li::before { content:counter(def,persian); position:absolute; top:10px; inset-inline-start:12px; display:grid; place-items:center; width:24px; height:24px; border-radius:50%; background:#fff3d6; color:#b45309; font-size:12px; font-weight:900; }
.crp-patient-deficiency-list b { font-size:14px; color:var(--pp-blue-dark); }
.crp-patient-deficiency-list small { color:var(--pp-muted); font-size:12px; }
.crp-patient-deficiency-note { margin:0 0 12px; padding:10px 14px; border-inline-start:3px solid #b45309; border-radius:10px; background:#fff; font-size:13.5px; line-height:1.8; }
.crp-patient-deficiency-note span { display:block; margin-bottom:2px; color:#b45309; font-size:11.5px; font-weight:800; }
.crp-patient-deficiency-how { margin:0 0 12px; padding:12px 14px; border-radius:12px; background:#f4f7fa; font-size:13px; }
.crp-patient-deficiency-how b { display:block; margin-bottom:4px; color:var(--pp-blue-dark); }
.crp-patient-deficiency-how ol { margin:0; padding-inline-start:18px; color:var(--pp-ink); line-height:1.8; }
.crp-patient-deficiency-foot { margin:10px 0 0; color:var(--pp-muted); font-size:12px; }
.crp-patient-deficiency .crp-patient-card-actions { margin-top:0; }
@media (max-width:640px) { .crp-patient-deficiency>header { flex-direction:column; } }

/* 7.4.20 — جزئیات پرونده: اندازهٔ فونت خواناتر در دسکتاپ (تب‌ها، مسیر پرونده، خلاصه، مدارک، پیام‌ها، تاریخچه) */
.crp-patient-tabs a { font-size:13px; padding:9px 12px; }
.crp-patient-case-hero code { font-size:12.5px; }
.crp-patient-case-hero p { font-size:12px; }
.crp-patient-status { font-size:11px; min-height:28px; }
.crp-patient-card-head span:first-child { font-size:11.5px; }
.crp-patient-card-head code { font-size:12px; }
.crp-patient-panel>header span { font-size:11.5px; }
.crp-patient-panel>header h2 { font-size:18px; }
.crp-patient-panel>header a { font-size:12.5px; }
.crp-patient-case-status>p { font-size:13.5px; line-height:1.9; }
.crp-patient-timeline { gap:6px; }
.crp-patient-timeline li { align-items:flex-start; min-height:0; padding:4px 0; }
.crp-patient-timeline li>span { font-size:11px; }
.crp-patient-timeline li>div { gap:2px; padding-top:3px; }
.crp-patient-timeline b { font-size:14px; }
.crp-patient-timeline small { font-size:12px; line-height:1.7; }
.crp-patient-timeline li:not(:last-child)::after { inset-block-start:38px; height:calc(100% - 30px); }
.crp-patient-timeline .crp-patient-timeline-note { margin:2px 0 0; color:var(--pp-ink); font-size:12.5px; line-height:1.8; }
.crp-patient-timeline li.is-waiting .crp-patient-timeline-note { color:var(--pp-muted); }
.crp-patient-timeline li.is-current .crp-patient-timeline-note { color:#2b3d55; }
.crp-patient-summary-grid small { font-size:11.5px; }
.crp-patient-summary-grid p { font-size:14px; line-height:1.9; }
.crp-patient-info-note p { font-size:12.5px; line-height:1.8; }
.crp-patient-history { gap:14px; }
.crp-patient-history b { font-size:13.5px; }
.crp-patient-history small { font-size:11.5px; }
.crp-patient-document-grid b { font-size:13px; white-space:normal; overflow-wrap:anywhere; }
.crp-patient-document-grid small { font-size:11.5px; }
.crp-patient-document-grid code { font-size:11px; }
.crp-patient-document-grid nav a { padding:6px 10px; font-size:11.5px; }
.crp-patient-doc-owner { font-size:11px; }
.crp-patient-empty p { font-size:12.5px; }
/* افزودن مدرک داخل تب مدارک */
.crp-patient-upload>header small { color:var(--pp-muted); font-size:11.5px; white-space:nowrap; }
.crp-patient-upload-form { display:grid; gap:12px; }
.crp-patient-dropzone { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; min-height:132px; padding:18px; border:2px dashed #bcd2ee; border-radius:14px; background:#f7faff; text-align:center; cursor:pointer; transition:border-color .15s,background .15s; }
.crp-patient-dropzone:hover,.crp-patient-dropzone.is-drag { border-color:var(--pp-blue); background:#eef4ff; }
.crp-patient-dropzone input { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; }
.crp-patient-dropzone-icon { display:grid; place-items:center; width:40px; height:40px; border-radius:50%; color:#fff; background:var(--pp-blue); font-size:22px; line-height:1; }
.crp-patient-dropzone b { color:var(--pp-blue-dark); font-size:14px; }
.crp-patient-dropzone small { color:var(--pp-muted); font-size:11.5px; line-height:1.7; }
.crp-patient-dropzone em { display:block; margin-top:6px; padding:6px 10px; border-radius:8px; background:#fff; color:var(--pp-blue-dark); font-style:normal; font-size:12.5px; font-weight:700; overflow-wrap:anywhere; }
.crp-patient-upload-fields { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,2fr); gap:12px; }
.crp-patient-upload-fields label { display:grid; gap:5px; font-size:12.5px; font-weight:800; color:var(--pp-blue-dark); }
.crp-patient-upload-fields label small { font-weight:500; color:var(--pp-muted); }
.crp-patient-upload-fields select,.crp-patient-upload-fields input { width:100%; min-height:44px; padding:9px 12px; border:1px solid #bdccd9; border-radius:11px; background:#fff; color:var(--pp-ink); font-weight:500; font-size:13.5px; }
.crp-patient-upload-fields select:focus,.crp-patient-upload-fields input:focus { outline:0; border-color:var(--pp-blue); box-shadow:0 0 0 3px rgba(31,103,237,.12); }
.crp-patient-upload-actions { display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.crp-patient-upload-actions .crp-patient-primary { min-height:46px; padding:10px 24px; font-size:13px; }
.crp-patient-upload-actions small { flex:1; min-width:200px; color:var(--pp-muted); font-size:12px; line-height:1.7; }
.crp-patient-upload-full { margin:0; padding:12px 14px; border-radius:11px; background:#fff8e9; color:#80530c; font-size:12.5px; }
.crp-patient-pending-docs { margin-top:14px; padding:12px 14px; border:1px solid #edcc88; border-radius:12px; background:#fffaf0; }
.crp-patient-pending-docs>b { display:block; margin-bottom:8px; color:#80530c; font-size:13px; }
.crp-patient-pending-docs ul { display:grid; gap:8px; margin:0; padding:0; list-style:none; }
.crp-patient-pending-docs li { display:flex; align-items:center; gap:10px; }
.crp-patient-pending-docs li>.dashicons { color:#b8791d; }
.crp-patient-pending-docs li>div { flex:1; min-width:0; display:flex; flex-direction:column; }
.crp-patient-pending-docs li b { font-size:12.5px; overflow-wrap:anywhere; }
.crp-patient-pending-docs li small { color:var(--pp-muted); font-size:11px; }
.crp-patient-pending-docs li em { flex:0 0 auto; padding:2px 9px; border-radius:999px; background:#fff1d6; color:#80530c; font-style:normal; font-size:11px; font-weight:800; }
@media(max-width:700px) {
  .crp-patient-upload-fields { grid-template-columns:minmax(0,1fr); }
  .crp-patient-upload-actions { flex-direction:column; align-items:stretch; }
  .crp-patient-upload-actions .crp-patient-primary { width:100%; }
  .crp-patient-upload>header { flex-wrap:wrap; }
  .crp-patient-tabs a { font-size:12.5px; min-width:0; padding:8px 8px; }
}

/* 7.4.20 — پشتیبانی: انتخاب پروندهٔ گفت‌وگو ساده و کم‌حجم */
.crp-patient-support-switch { display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; padding:12px 16px; }
.crp-patient-support-switch-current { display:flex; flex-direction:column; gap:1px; min-width:0; }
.crp-patient-support-switch-current>span { color:#08746b; font-size:11.5px; font-weight:700; }
.crp-patient-support-switch-current b { color:var(--pp-blue-dark); font-size:15px; }
.crp-patient-support-switch-current small { color:var(--pp-muted); font-size:12px; }
.crp-patient-support-switch-current code { color:var(--pp-blue); font-size:12px; font-weight:800; }
.crp-patient-support-switch-form { margin:0; }
.crp-patient-support-switch-form label { display:flex; align-items:center; gap:8px; font-size:12.5px; color:var(--pp-muted); }
.crp-patient-support-switch-form select { min-height:40px; padding:6px 10px; border:1px solid #bdccd9; border-radius:10px; background:#fff; color:var(--pp-ink); font-size:13px; max-width:min(100%,320px); }
@media(max-width:700px) { .crp-patient-support-switch-form,.crp-patient-support-switch-form label { width:100%; } .crp-patient-support-switch-form select { flex:1; max-width:none; } }
.crp-patient-docgroup.is-single { border:0; background:transparent; overflow:visible; margin:0; }
.crp-patient-docgroup.is-single .crp-patient-document-grid { padding:0; }
@media(max-width:480px) { .crp-patient-tabs { flex-wrap:wrap; gap:3px; overflow:visible; } .crp-patient-tabs a { flex:1 1 30%; min-width:0; padding:8px 4px; font-size:12px; } }
.crp-patient-filter-label { align-self:center; color:var(--pp-muted); font-size:12px; font-weight:700; }
.crp-patient-docgroup-id .crp-patient-case-code a { text-decoration:none; }
.crp-patient-docgroup-id .crp-patient-case-code a:hover code { text-decoration:underline; }
.crp-patient-doc-owner code { color:var(--pp-blue); font-size:11px; }
/* 7.4.21 — تسویهٔ تغییر سطح پیش از گزارش */
.crp-patient-settle p { margin:0 0 12px; font-size:13.5px; line-height:1.9; }
.crp-patient-settle-row { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 0 14px; padding:12px 14px; border:1px solid #edcc88; border-radius:12px; background:#fff8e9; }
.crp-patient-settle-row span { color:#80530c; font-size:12.5px; font-weight:700; }
.crp-patient-settle-row b { color:var(--pp-blue-dark); font-size:18px; }
.crp-pay-upgrade-note { margin:10px 0; padding:10px 12px; border-radius:10px; background:#fff8e9; color:#5b4a2a; font-size:12.5px; line-height:1.8; }
/* 7.4.21 — صفحهٔ مدارک پزشکی (همهٔ پرونده‌ها): گروه‌های جمع‌شونده، جست‌وجو و انتخاب پرونده */
.crp-patient-doc-summary { margin:3px 0 0; color:var(--pp-muted); font-size:12.5px; }
.crp-patient-doc-toolbar { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,.8fr); gap:10px; margin:0 0 14px; }
.crp-patient-doc-search { position:relative; display:block; }
.crp-patient-doc-search>.dashicons { position:absolute; inset-inline-start:12px; top:12px; color:#8090a5; }
.crp-patient-doc-search input { width:100%; min-height:44px; padding:9px 40px 9px 12px; border:1px solid #bdccd9; border-radius:11px; background:#fff; color:var(--pp-ink); font-size:13.5px; }
.crp-patient-doc-search input:focus { outline:0; border-color:var(--pp-blue); box-shadow:0 0 0 3px rgba(31,103,237,.12); }
.crp-patient-doc-select { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:8px; min-height:44px; padding:0 12px; border:1px solid #bdccd9; border-radius:11px; background:#fff; }
.crp-patient-doc-select>span { color:var(--pp-muted); font-size:12px; font-weight:700; white-space:nowrap; }
.crp-patient-doc-select select { width:100%; min-height:42px; border:0; background:transparent; color:var(--pp-ink); font-size:13px; }
.crp-patient-doc-select select:focus { outline:0; }
.crp-patient-docgroup.is-collapsible { margin:0 0 10px; }
.crp-patient-docgroup.is-collapsible>summary { list-style:none; cursor:pointer; align-items:center; }
.crp-patient-docgroup.is-collapsible>summary::-webkit-details-marker { display:none; }
.crp-patient-docgroup.is-collapsible[open]>summary { border-bottom:1px solid #e8eef4; }
.crp-patient-docgroup.is-collapsible:not([open])>summary { background:#fff; }
.crp-patient-docgroup.is-collapsible>summary:hover { background:#f7fafd; }
.crp-patient-docgroup-chevron { flex:0 0 auto; width:10px; height:10px; margin-inline-start:6px; border-left:2px solid #7f9cc9; border-bottom:2px solid #7f9cc9; transform:rotate(-45deg); transition:transform .15s; }
.crp-patient-docgroup.is-collapsible[open] .crp-patient-docgroup-chevron { transform:rotate(135deg); }
.crp-patient-doc-count { color:var(--pp-muted); font-style:normal; font-size:12px; }
.crp-patient-docgroup-body { padding:12px; }
.crp-patient-docgroup-actions { display:flex; gap:8px; margin:0 0 12px; }
.crp-patient-docgroup-actions .crp-patient-secondary { min-height:36px; padding:6px 12px; font-size:11.5px; }
.crp-patient-doc-empty { margin:0; color:var(--pp-muted); font-size:12.5px; }
.crp-patient-doc-nomatch { margin:0 0 12px; padding:12px; border-radius:10px; background:#f5f8fb; color:var(--pp-muted); font-size:12.5px; text-align:center; }
.crp-patient-documents-panel.is-multi .crp-patient-docgroup-id h3 { font-size:14px; }
.crp-patient-documents-panel.is-multi .crp-patient-docgroup-id h3 span { font-size:12px; }
@media(max-width:760px) {
  .crp-patient-doc-toolbar { grid-template-columns:minmax(0,1fr); }
  .crp-patient-docgroup.is-collapsible>summary { flex-direction:row; }
  .crp-patient-docgroup-actions { flex-wrap:wrap; }
  .crp-patient-docgroup-actions .crp-patient-secondary { flex:1; }
}

/* 7.4.24 — ورود با کد پیامکی */
.crp-patient-login-card .crp-otp-code { direction:ltr; text-align:center; letter-spacing:.5em; font-size:22px!important; font-weight:800; font-family:Inter,"Yekan Bakh",monospace; }
.crp-patient-login-card .crp-otp-resend { display:flex; flex-wrap:wrap; justify-content:space-between; gap:10px; margin-top:12px; }
.crp-patient-link { padding:4px 0; border:0; background:none; color:var(--pp-blue)!important; font-size:12px; font-weight:800; text-decoration:none; cursor:pointer; }
.crp-patient-link[disabled] { color:var(--pp-muted)!important; cursor:default; }
.crp-login-alt { margin-top:16px; border:1px solid #e3eaf2; border-radius:14px; background:#fbfcfe; }
.crp-login-alt>summary { padding:12px 14px; color:#35495a; font-size:12.5px; font-weight:800; cursor:pointer; list-style:none; }
.crp-login-alt>summary::-webkit-details-marker { display:none; }
.crp-login-alt>summary::after { content:'+'; float:left; color:var(--pp-blue); font-weight:900; }
.crp-login-alt[open]>summary::after { content:'−'; }
.crp-login-alt>form { padding:0 14px 14px; }
.crp-patient-login-card .crp-patient-secondary { width:100%; min-height:46px; font-size:13px; }
.crp-patient-fieldset-help { margin:0 0 10px; color:var(--pp-muted); font-size:11.5px; line-height:1.9; }
.crp-patient-check small { display:block; color:var(--pp-muted); font-size:11px; font-weight:500; }

/* 7.4.30 — پیوند نتیجهٔ آزمایش یا تصویربرداری در تب مدارک */
.crp-patient-result-links .crp-patient-result-links-lead { margin:0 0 14px; color:var(--pp-muted); font-size:13.5px; line-height:1.9; }
.crp-patient-result-links .crp-rlinks { margin-bottom:6px; }
.crp-patient-result-links .crp-rlink-form { margin-top:16px; padding-top:16px; border-top:1px solid var(--pp-line, #dde8f3); }
.crp-patient-result-links .crp-patient-result-links-hint { display:block; margin-top:10px; color:var(--pp-muted); font-size:12px; line-height:1.8; }
.crp-patient-result-links .crp-patient-pending-docs { margin-top:14px; }

/* 7.4.31 — «پرداخت نیمه‌تمام»: پیش‌نویسی که هنوز پرونده نشده است */
.crp-patient-draft { display:flex; align-items:flex-start; gap:16px; border:1px solid #f3dcae!important; background:linear-gradient(160deg,#fff8ea 0%,#fffdf8 100%)!important; }
.crp-patient-draft-icon { display:grid; flex:0 0 auto; place-items:center; width:44px; height:44px; border-radius:13px; background:#fff; color:#b76e00; box-shadow:0 4px 12px rgba(183,110,0,.14); }
.crp-patient-draft-body { display:grid; gap:6px; min-width:0; }
.crp-patient-draft-kicker { color:#8a4b08; font-size:12.5px; font-weight:700; }
.crp-patient-draft h2 { margin:0; color:var(--pp-navy, #123e7c); font-size:18px; font-weight:700; line-height:1.7; }
.crp-patient-draft p { margin:0; color:#2f3a45; font-size:14px; line-height:1.9; }
.crp-patient-draft .crp-patient-draft-deadline { color:#6b5a3a; font-size:13px; }
.crp-patient-draft-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-top:6px; }
.crp-patient-draft-actions form { margin:0; }
.crp-patient-draft-delete { color:#b4232a!important; }
.crp-patient-no-case p { margin:0; color:var(--pp-muted); font-size:14px; line-height:1.9; }
@media (max-width:640px) {
  .crp-patient-draft { flex-direction:column; }
  .crp-patient-draft-actions > *, .crp-patient-draft-actions form, .crp-patient-draft-actions button { width:100%; }
}
