@font-face{font-family:"Yekan Bakh";src:url("fonts/YekanBakh-Regular.woff2") format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Yekan Bakh";src:url("fonts/YekanBakh-SemiBold.woff2") format("woff2");font-weight:600;font-display:swap}
@font-face{font-family:"Yekan Bakh";src:url("fonts/YekanBakh-Bold.woff2") format("woff2");font-weight:800;font-display:swap}
:root{color-scheme:light;-webkit-text-size-adjust:100%}body.crp-doctor-standalone-page{margin:0;background:var(--tebtok-bg);color:var(--tebtok-ink)}.crp-doctor-standalone-main{min-height:100vh;padding:1px 18px 48px}.crp-doctor-app{--navy:var(--tebtok-blue-dark);--blue:var(--tebtok-blue);--blue2:var(--tebtok-blue-hover);--aqua:var(--tebtok-aqua);--line:var(--tebtok-line);--muted:var(--tebtok-muted);--ink:var(--tebtok-ink);--green:var(--tebtok-success);--amber:var(--tebtok-warning);--red:var(--tebtok-alert);width:min(1480px,100%);margin:0 auto;color:var(--ink);font:400 15px/1.8 "Yekan Bakh",Tahoma,Arial,sans-serif;text-align:right}.crp-doctor-app *{box-sizing:border-box}.crp-doctor-app a{color:inherit}.crp-doctor-app button,.crp-doctor-app input,.crp-doctor-app select,.crp-doctor-app textarea{font:inherit}.screen-reader-text{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important}.crp-doctor-main{padding:26px 0 60px}.crp-doctor-main h1,.crp-doctor-main h2,.crp-doctor-main h3,.crp-doctor-main p{margin-top:0}.crp-doctor-button,.crp-doctor-secondary{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:8px 18px;border:1px solid var(--blue);border-radius:10px;text-decoration:none;font-weight:700;cursor:pointer}.crp-doctor-button{color:#fff!important;background:var(--blue)}.crp-doctor-button:hover{background:var(--blue2)}.crp-doctor-secondary{color:var(--blue)!important;background:#fff}.crp-doctor-secondary:hover{background:#eef5ff}.crp-doctor-back{display:inline-flex;margin-bottom:18px;color:#5c718e!important;text-decoration:none;font-weight:600}.crp-doctor-empty-small{margin:8px 0 0;padding:15px 18px;border:1px dashed var(--line);border-radius:11px;background:#f7fafd;text-align:center;color:var(--muted);font-size:14px}
.crp-doctor-login-shell{min-height:calc(100vh - 2px);display:grid;place-items:center;padding:30px 0}.crp-doctor-login-card{width:min(480px,100%);padding:34px;border:1px solid var(--line);border-radius:22px;background:#fff;box-shadow:0 22px 60px rgba(22,62,120,.12)}.crp-doctor-register-card{width:min(820px,100%)}.crp-doctor-login-logo{display:block;width:145px;margin:0 auto 16px}.crp-doctor-role-tag{display:table;margin:0 auto 10px;padding:3px 12px;border-radius:999px;color:var(--blue);background:#eaf2ff;font-size:11px;font-weight:800}.crp-doctor-login-card h1{text-align:center;margin:0 0 6px}.crp-doctor-login-card>p{text-align:center;color:var(--muted)}.crp-doctor-login-card form{display:grid;gap:14px}.crp-doctor-login-card form p{margin:0}.crp-doctor-login-card label,.crp-doctor-register-form label{display:flex;flex-direction:column;gap:5px;font-weight:600}.crp-doctor-login-card input[type=text],.crp-doctor-login-card input[type=password],.crp-doctor-register-form input:not([type=checkbox]):not([type=file]),.crp-doctor-register-form select,.crp-doctor-register-form textarea{width:100%;min-height:46px;padding:10px 12px;border:1px solid #bdccde;border-radius:10px;background:#fbfdff;outline:0}.crp-doctor-login-card input:focus,.crp-doctor-register-form input:focus,.crp-doctor-register-form select:focus,.crp-doctor-register-form textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(31,103,233,.12)}.crp-doctor-login-card .login-submit input{width:100%;min-height:46px;border:0;border-radius:10px;color:#fff;background:var(--blue);font-weight:800}.crp-doctor-forgot,.crp-doctor-register-link{display:block;margin-top:10px;text-align:center;color:var(--blue)!important;text-decoration:none}.crp-doctor-register-link{padding:9px;border:1px solid var(--line);border-radius:10px}.crp-doctor-login-card>small{display:block;margin-top:18px;padding-top:14px;border-top:1px solid var(--line);text-align:center;color:var(--muted)}.crp-doctor-register-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.crp-doctor-honeypot{position:fixed!important;left:-10000px!important;opacity:0!important}.crp-doctor-attestation{display:flex!important;flex-direction:row!important;align-items:flex-start!important;gap:10px!important;padding:13px;border:1px solid #cde2dc;border-radius:10px;background:#f1faf7}.crp-doctor-attestation input{width:20px;height:20px;accent-color:var(--blue)}
@media(min-width:981px){.crp-doctor-app:has(.crp-doctor-topbar){padding-right:286px}.crp-doctor-topbar{position:fixed;z-index:60;top:18px;bottom:18px;right:max(18px,calc((100vw - 1480px)/2));width:266px;display:flex;flex-direction:column;padding:20px 16px;border-radius:18px;color:#fff;background:linear-gradient(180deg,#123e7c 0%,#1f67ed 58%,#1f67ed 100%);box-shadow:0 20px 55px rgba(21,73,157,.23);overflow:auto}.crp-doctor-brand{display:flex;flex-direction:column;gap:8px;padding:0 10px 17px;text-decoration:none}.crp-doctor-brand-assets{display:flex;align-items:center;justify-content:center;height:58px;border-radius:12px;background:rgba(255,255,255,.1)}.crp-doctor-brand-logo{width:132px}.crp-doctor-brand-symbol{display:none}.crp-doctor-brand small{color:rgba(255,255,255,.75)}.crp-doctor-user{position:relative;margin-bottom:14px;padding:15px 52px 15px 12px;border-radius:13px;background:rgba(255,255,255,.08)}.crp-doctor-user:before{position:absolute;right:12px;top:15px;width:30px;height:30px;border:1px solid rgba(255,255,255,.45);border-radius:50%;content:"";background:url("icons/doctor.svg") center/16px no-repeat}.crp-doctor-user span{display:flex;flex-direction:column}.crp-doctor-user small{color:rgba(255,255,255,.72)}.crp-doctor-nav{display:grid;gap:4px}.crp-doctor-nav a{display:flex;align-items:center;gap:10px;min-height:42px;padding:7px 10px;border-radius:10px;color:#e7f0ff;text-decoration:none;font-weight:600}.crp-doctor-nav a:hover{background:rgba(255,255,255,.1)}.crp-doctor-nav a.is-active{color:#123e7c;background:#fff;box-shadow:0 8px 20px rgba(8,38,91,.16)}.crp-doctor-nav i{width:24px;height:24px;display:grid;place-items:center}.crp-doctor-nav i:before{width:17px;height:17px;background:currentColor;content:"";-webkit-mask:center/contain no-repeat;mask:center/contain no-repeat}.crp-doctor-nav-icon-dashboard:before{-webkit-mask-image:url("icons/dashboard.svg");mask-image:url("icons/dashboard.svg")}.crp-doctor-nav-icon-cases:before,.crp-doctor-nav-icon-waiting:before{-webkit-mask-image:url("icons/cases.svg");mask-image:url("icons/cases.svg")}.crp-doctor-nav-icon-discussion:before{-webkit-mask-image:url("icons/team.svg");mask-image:url("icons/team.svg")}.crp-doctor-nav-icon-reports:before{-webkit-mask-image:url("icons/report.svg");mask-image:url("icons/report.svg")}.crp-doctor-nav-icon-calendar:before,.crp-doctor-nav-icon-finance:before{-webkit-mask-image:url("icons/settings.svg");mask-image:url("icons/settings.svg")}.crp-doctor-nav-icon-profile:before{-webkit-mask-image:url("icons/doctor.svg");mask-image:url("icons/doctor.svg")}.crp-doctor-nav-icon-support:before{-webkit-mask-image:url("icons/support.svg");mask-image:url("icons/support.svg")}.crp-doctor-logout{margin-top:auto;padding:11px;border-radius:10px;text-align:center;text-decoration:none;color:#fff!important;background:rgba(255,255,255,.12);font-weight:700}}
.crp-doctor-page-heading,.crp-doctor-welcome,.crp-doctor-case-header,.crp-doctor-profile-heading,.crp-viewer-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px;padding:22px 26px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 7px 18px rgba(17,55,100,.035)}.crp-doctor-page-heading span,.crp-doctor-eyebrow,.crp-viewer-heading span{color:var(--blue);font-size:12px;font-weight:700}.crp-doctor-page-heading h1,.crp-doctor-welcome h1,.crp-doctor-profile-heading h1,.crp-viewer-heading h1{margin:0;font-size:27px}.crp-doctor-page-heading p,.crp-doctor-welcome p,.crp-doctor-profile-heading p,.crp-viewer-heading p{margin:3px 0 0;color:var(--muted)}.crp-doctor-page-heading>b{padding:8px 14px;border-radius:999px;color:var(--blue);background:#eaf2ff}.crp-doctor-panel,.crp-doctor-table-card{padding:20px;border:1px solid var(--line);border-radius:15px;background:#fff;box-shadow:0 5px 16px rgba(17,55,100,.035)}.crp-doctor-panel-title{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:14px;border-bottom:1px solid #e8eef5}.crp-doctor-panel-title h2{margin:0;font-size:19px}.crp-doctor-panel-title p,.crp-doctor-panel-title span{margin:2px 0 0;color:var(--muted)}.crp-doctor-notice{margin-bottom:14px;padding:12px 16px;border:1px solid #9dd9bf;border-radius:10px;color:#176b4b;background:#effaf5}.crp-doctor-notice-error{border-color:#f2b4b8;color:#9e2530;background:#fff1f2}
.crp-doctor-welcome{align-items:flex-end}.crp-doctor-stats{display:grid;grid-template-columns:repeat(4,minmax(100px,1fr));gap:10px}.crp-doctor-stats span{padding:13px 10px;border:1px solid #e3eaf3;border-radius:12px;background:#fbfdff;text-align:center}.crp-doctor-stats b{display:block;font-size:24px;color:var(--blue)}.crp-doctor-stats small{color:var(--muted)}.crp-dashboard-grid{display:grid;grid-template-columns:260px 1fr;gap:16px;margin-bottom:16px}.crp-dashboard-side{display:grid;gap:14px}.crp-dashboard-side section,.crp-doctor-workflow,.crp-doctor-independence,.crp-doctor-redline{padding:18px;border:1px solid var(--line);border-radius:14px;background:#fff}.crp-dashboard-performance{color:#fff!important;background:linear-gradient(155deg,#123e7c,#1f67ed)!important}.crp-dashboard-performance h2{font-size:16px}.crp-dashboard-performance>strong{display:block;font-size:30px}.crp-dashboard-performance>span{color:#d9e8ff}.crp-dashboard-performance>div{display:grid;grid-template-columns:1fr 1fr;gap:5px 12px;margin-top:14px;padding-top:12px;border-top:1px solid rgba(255,255,255,.2)}.crp-dashboard-performance small{color:#d9e8ff}.crp-dashboard-quick h2{font-size:16px}.crp-dashboard-quick a{display:flex;justify-content:space-between;padding:9px 0;border-bottom:1px solid #edf1f6;text-decoration:none}.crp-dashboard-quick b{display:grid;place-items:center;min-width:23px;height:23px;border-radius:50%;color:#fff;background:var(--blue)}.crp-dashboard-body{display:grid;gap:14px}.crp-doctor-workflow header{display:flex;justify-content:space-between}.crp-doctor-workflow header h2{font-size:18px}.crp-doctor-workflow header p{color:var(--muted)}.crp-doctor-workflow>div{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.crp-doctor-workflow span{display:flex;flex-direction:column;min-height:128px;padding:14px;border:1px solid #dce6f2;border-radius:12px;background:#fbfdff}.crp-doctor-workflow i{display:grid;place-items:center;width:28px;height:28px;margin-bottom:10px;border-radius:9px;color:#fff;background:var(--blue);font-style:normal}.crp-doctor-workflow small{color:var(--muted)}.crp-doctor-independence{display:flex;gap:12px;border-color:#ecd29f;color:#815717;background:#fff8e8}.crp-doctor-redline{display:flex;gap:14px;margin-bottom:20px;border-color:#f2c2c5;color:#922b34;background:#fff3f3}.crp-section-heading{display:flex;align-items:center;justify-content:space-between;margin:18px 0 10px}.crp-section-heading h2{margin:0}.crp-section-heading p{margin:0;color:var(--muted)}.crp-section-heading a{color:var(--blue);text-decoration:none;font-weight:700}.crp-doctor-cases{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.crp-doctor-case-card{display:flex;flex-direction:column;min-height:210px;padding:18px;border:1px solid var(--line);border-radius:14px;background:#fff}.crp-doctor-case-title{display:flex;justify-content:space-between}.crp-doctor-case-title span:first-child{display:flex;gap:8px}.crp-doctor-case-title code{direction:ltr;color:var(--blue)}.crp-doctor-case-title small{color:var(--muted)}.crp-doctor-review-status{padding:3px 9px;border-radius:999px;color:#815717;background:#fff3d9}.crp-doctor-case-card h2{margin:14px 0 10px;font-size:18px}.crp-doctor-case-meta{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px;color:var(--muted)}.crp-doctor-case-card>a{margin-top:auto;align-self:flex-start}.crp-doctor-performance,.crp-doctor-archive{margin-top:16px;padding:18px;border:1px solid var(--line);border-radius:14px;background:#fff}.crp-doctor-performance>div{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.crp-doctor-performance span{padding:13px;border-radius:10px;background:#f5f8fc;text-align:center}.crp-doctor-performance b,.crp-doctor-performance small{display:block}
.crp-doctor-toolbar{display:flex;gap:10px;margin-bottom:12px}.crp-doctor-toolbar label{flex:1}.crp-doctor-toolbar input{width:100%;min-height:44px;padding:9px 13px;border:1px solid #c4d1e0;border-radius:10px;background:#fff}.crp-doctor-filter-pills{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}.crp-doctor-filter-pills a{padding:7px 14px;border:1px solid var(--line);border-radius:999px;text-decoration:none;background:#fff}.crp-doctor-filter-pills a.is-active{color:#fff;background:var(--blue);border-color:var(--blue)}.crp-doctor-table{overflow:auto}.crp-doctor-table-head,.crp-doctor-table-row{display:grid;grid-template-columns:1.5fr 1.1fr .7fr 1fr .8fr .6fr;gap:12px;align-items:center;min-width:850px;padding:12px 14px}.crp-doctor-table-head{border-radius:9px;color:#fff;background:#123e7c;font-weight:700}.crp-doctor-table-row{border-bottom:1px solid #edf1f5}.crp-doctor-table-row>span{display:flex;flex-direction:column}.crp-doctor-table-row code{direction:ltr;color:var(--blue)}.crp-doctor-table-row small{color:var(--muted)}.crp-doctor-table-row em{padding:3px 8px;border-radius:999px;background:#eef4fb;font-style:normal}.crp-priority-dot{display:inline-block!important;width:8px;height:8px;margin-left:6px;border-radius:50%;background:var(--amber)}.crp-priority-dot.is-urgent{background:var(--red)}.crp-waiting-list,.crp-report-list,.crp-doctor-discussion-list{display:grid;gap:12px}.crp-waiting-card,.crp-report-list>article,.crp-doctor-discussion-list>a{padding:18px;border:1px solid var(--line);border-radius:14px;background:#fff;text-decoration:none}.crp-waiting-card.is-critical{border-color:#efb3b7}.crp-waiting-card header,.crp-report-list article header{display:flex;gap:13px;align-items:flex-start}.crp-waiting-card header>div,.crp-report-list header>div{flex:1}.crp-waiting-card h2,.crp-report-list h2{margin:2px 0;font-size:18px}.crp-waiting-card header>em,.crp-report-list header>em{padding:4px 10px;border-radius:999px;background:#fff1dc;font-style:normal}.crp-waiting-warning{margin:12px 0;padding:9px 12px;border-radius:9px;color:#a02f38;background:#fff0f1}.crp-waiting-card footer,.crp-report-list footer{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:14px}.crp-waiting-card footer>span,.crp-report-list footer>span{margin-left:auto;color:var(--muted)}.crp-report-list header>em.is-published{color:#14774d;background:#e9f8f0}.crp-doctor-discussion-list>a{display:grid;grid-template-columns:1fr auto auto auto;align-items:center;gap:14px}.crp-doctor-discussion-list>a>span{display:flex;flex-direction:column}.crp-doctor-discussion-list strong{padding:3px 9px;border-radius:999px;color:#fff;background:var(--red)}
.crp-doctor-case-header h1{margin:3px 0;font-size:27px}.crp-doctor-case-header code{direction:ltr;color:var(--blue)}.crp-case-header-actions{display:flex;align-items:center;gap:8px}.crp-doctor-priority{padding:7px 12px;border-radius:999px;color:#9b2c35;background:#fff0f1}.crp-doctor-case-workspace{display:grid;grid-template-columns:240px 1fr;gap:16px}.crp-case-rail{display:grid;align-content:start;gap:13px}.crp-case-rail section{padding:17px;border:1px solid var(--line);border-radius:14px;background:#fff}.crp-case-deadline{display:flex;flex-direction:column;color:#7d5414;background:#fff8e9!important}.crp-case-deadline.is-urgent{border-color:#efb8bd;color:#9c2833;background:#fff2f3!important}.crp-case-deadline b{font-size:18px}.crp-case-deadline small{margin-top:7px}.crp-case-quick h2,.crp-case-status h2{font-size:16px}.crp-case-quick a{display:block;margin-top:8px;padding:9px;border-radius:9px;text-align:center;text-decoration:none;color:var(--navy);background:#edf3fb;font-weight:700}.crp-case-quick a.is-primary{color:#fff;background:var(--blue2)}.crp-case-status dl,.crp-case-status dl div{margin:0}.crp-case-status dl div{display:flex;justify-content:space-between;padding:7px 0;border-bottom:1px solid #edf1f5}.crp-case-status dd{margin:0;font-weight:700}.crp-case-content{min-width:0}.crp-case-patient-card{margin-bottom:12px;padding:18px;border:1px solid var(--line);border-radius:14px;background:#fff}.crp-case-patient-card header{display:flex;justify-content:space-between}.crp-case-patient-card header h2{font-size:18px}.crp-case-patient-card header span{color:var(--muted)}.crp-case-patient-card>div{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.crp-case-patient-card>div span{padding:10px;border-radius:9px;background:#f5f8fc}.crp-case-patient-card b{display:block;color:var(--muted);font-size:12px}.crp-doctor-case-tabs{display:flex;gap:4px;margin-bottom:12px;padding:5px;border:1px solid var(--line);border-radius:11px;background:#fff;overflow:auto}.crp-doctor-case-tabs a{flex:1;min-width:110px;padding:8px 12px;border-radius:8px;text-align:center;text-decoration:none;font-weight:700}.crp-doctor-case-tabs a.is-active{color:#fff;background:var(--blue)}.crp-doctor-case-tabs small{display:inline-grid;place-items:center;min-width:20px;height:20px;border-radius:50%;background:rgba(255,255,255,.2)}.crp-doctor-alert{display:flex;gap:12px;margin-bottom:12px;padding:13px;border:1px solid #f0c5c8;border-radius:10px;color:#932c35;background:#fff3f4}.crp-doctor-clinical blockquote{margin:14px 0;padding:15px;border:0;border-radius:10px;background:#f1f5fa;font-size:16px}.crp-doctor-case-fields{display:grid;margin:0}.crp-doctor-case-fields>div{display:grid;grid-template-columns:180px 1fr;gap:16px;padding:13px 4px;border-bottom:1px solid #edf1f5}.crp-doctor-case-fields dt{font-weight:700}.crp-doctor-case-fields dd{margin:0;color:#3b4f6a}.crp-doctor-files{display:grid;gap:10px;margin-top:15px}.crp-doctor-files>div{display:grid;grid-template-columns:38px 1fr auto;gap:12px;align-items:center;padding:12px;border:1px solid #e0e7f0;border-radius:10px}.crp-file-symbol{width:36px;height:36px;border-radius:9px;background:#eaf2ff url("icons/report.svg") center/18px no-repeat}.crp-doctor-files>div>span:nth-child(2){display:flex;flex-direction:column}.crp-doctor-files small{color:var(--muted)}.crp-file-actions{display:flex;gap:7px}.crp-file-actions a{padding:6px 10px;border-radius:8px;color:var(--blue);background:#edf4ff;text-decoration:none}.crp-doctor-timeline{position:relative;display:grid;gap:20px;margin:20px 0;padding:0 30px 0 0;list-style:none}.crp-doctor-timeline:before{position:absolute;right:10px;top:10px;bottom:10px;width:2px;background:#dce5ef;content:""}.crp-doctor-timeline li{position:relative;display:flex;justify-content:space-between;padding:12px;border-radius:10px;background:#f7f9fc}.crp-doctor-timeline li:before{position:absolute;right:-27px;top:17px;width:12px;height:12px;border:3px solid #fff;border-radius:50%;background:#a9b8ca;box-shadow:0 0 0 2px #dce5ef;content:""}.crp-doctor-timeline li.is-done:before{background:var(--green)}
.crp-doctor-review-form{display:grid;gap:14px;margin-top:14px}.crp-doctor-review-form>section,.crp-doctor-advanced{padding:16px;border:1px solid #e0e7f0;border-radius:12px;background:#fbfdff}.crp-doctor-review-form label{display:flex;flex-direction:column;gap:5px;margin-bottom:12px;font-weight:600}.crp-doctor-review-form input:not([type=checkbox]),.crp-doctor-review-form select,.crp-doctor-review-form textarea,.crp-thread-form select,.crp-thread-form textarea{width:100%;min-height:44px;padding:9px 11px;border:1px solid #bdccde;border-radius:9px;background:#fff;outline:0}.crp-doctor-review-form textarea{resize:vertical}.crp-doctor-review-form input:focus,.crp-doctor-review-form select:focus,.crp-doctor-review-form textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(31,103,233,.1)}.crp-doctor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}.crp-doctor-question-lock,.crp-doctor-inadequate{padding:13px;border-radius:10px;background:#eef4fb}.crp-doctor-inadequate{margin-top:10px;color:#992d36;background:#fff0f1}.crp-doctor-inadequate span{display:block}.crp-voice-recorder{padding:16px;border:1px solid #d5e1ee;border-radius:11px;background:#f4f8fc}.crp-voice-recorder header{display:flex;justify-content:space-between}.crp-recorder-controls{display:flex;align-items:center;gap:8px}.crp-voice-recorder audio{width:100%;margin:10px 0}.crp-doctor-savebar{position:sticky;bottom:10px;z-index:20;display:flex;justify-content:space-between;gap:12px;padding:13px;border:1px solid var(--line);border-radius:11px;background:rgba(255,255,255,.97);box-shadow:0 -8px 24px rgba(20,55,100,.09)}.crp-doctor-savebar>div{display:flex;gap:8px}.crp-doctor-final-note{display:flex;flex-direction:column;margin:12px 0;padding:13px;border:1px solid #a9dec4;border-radius:10px;color:#176a49;background:#effaf5}.crp-thread-messages{display:grid;gap:10px;max-height:520px;padding:12px;overflow:auto}.crp-thread-messages article{max-width:78%;padding:12px;border-radius:12px 12px 12px 3px;background:#f0f4f8}.crp-thread-messages article.is-mine{margin-right:auto;color:#fff;background:var(--blue);border-radius:12px 12px 3px 12px}.crp-thread-messages header{display:flex;gap:9px}.crp-thread-messages time{margin-right:auto}.crp-thread-form{display:grid;grid-template-columns:150px 1fr auto;gap:9px;margin-top:12px}.crp-case-discussion-panel{padding:0;border:0;box-shadow:none}.crp-doctor-final-report>article{margin-top:14px;padding:24px;border:1px solid #d9e3ee;border-radius:12px}.crp-doctor-final-report>article>header{display:flex;align-items:center;justify-content:space-between;padding-bottom:14px;border-bottom:2px solid var(--blue)}.crp-doctor-final-report img{width:110px}.crp-doctor-final-report article section{padding:13px 0;border-bottom:1px solid #e8eef5}.crp-doctor-final-report article footer{display:flex;justify-content:space-between;padding-top:16px}
.crp-calendar-metrics,.crp-finance-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:15px}.crp-calendar-metrics span,.crp-finance-metrics span{padding:15px;border:1px solid var(--line);border-radius:12px;background:#fff;text-align:center}.crp-calendar-metrics b,.crp-finance-metrics b{display:block;font-size:24px;color:var(--blue)}.crp-calendar-metrics small,.crp-finance-metrics small{color:var(--muted)}.crp-calendar-layout,.crp-finance-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:14px;margin-bottom:14px}.crp-month-calendar>header{display:flex;justify-content:space-between}.crp-month-calendar>header a{color:var(--blue);text-decoration:none}.crp-calendar-week,.crp-calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}.crp-calendar-week b{padding:8px;text-align:center;color:var(--muted)}.crp-calendar-grid>span{min-height:70px;padding:8px;border:1px solid #e5ebf3;border-radius:8px}.crp-calendar-grid span.is-empty{border:0}.crp-calendar-grid span.is-today{border-color:var(--blue);background:#edf4ff}.crp-calendar-grid span.has-event small{display:block;color:var(--blue)}.crp-upcoming article{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #edf1f5}.crp-upcoming article>div{display:flex;flex:1;flex-direction:column}.crp-upcoming small{color:var(--muted)}.crp-upcoming a{color:var(--blue)}.crp-schedule-settings form{display:grid;gap:14px}.crp-schedule-days{display:flex;flex-wrap:wrap;gap:8px}.crp-schedule-days label{position:relative;display:inline-flex!important;flex-direction:row!important;margin:0!important}.crp-schedule-days input{position:absolute;opacity:0}.crp-schedule-days span{padding:7px 12px;border:1px solid var(--line);border-radius:999px;background:#fff}.crp-schedule-days input:checked+span{color:#fff;background:var(--blue);border-color:var(--blue)}.crp-schedule-hours{display:flex;align-items:end;gap:12px}.crp-schedule-hours label{display:flex;flex-direction:column}.crp-schedule-hours input{min-height:42px;padding:8px;border:1px solid #bdccde;border-radius:9px}.crp-finance-chart>div{display:grid;grid-template-columns:80px 1fr 130px;gap:10px;align-items:center;margin:12px 0}.crp-finance-chart i{height:10px;border-radius:999px;background:#e8eef5;overflow:hidden}.crp-finance-chart i b{display:block;height:100%;background:linear-gradient(90deg,var(--blue),var(--aqua))}.crp-finance-chart em{font-style:normal}.crp-finance-summary div{display:flex;justify-content:space-between;padding:12px;border-bottom:1px solid #edf1f5}.crp-finance-summary dd{margin:0;font-weight:700}
.crp-profile-layout{display:grid;grid-template-columns:250px 1fr;gap:16px}.crp-profile-side{display:grid;align-content:start;gap:12px}.crp-profile-side>section{padding:17px;border:1px solid var(--line);border-radius:14px;background:#fff}.crp-profile-identity{text-align:center;color:#fff!important;background:linear-gradient(155deg,#123e7c,#1f67ed)!important}.crp-profile-avatar{display:block;width:54px;height:54px;margin:0 auto 8px;border-radius:50%;background:rgba(255,255,255,.16) url("icons/doctor.svg") center/24px no-repeat}.crp-profile-identity h2{margin:0}.crp-profile-identity p{color:#dceaff}.crp-profile-identity dl{display:grid;grid-template-columns:1fr 1fr;gap:8px}.crp-profile-identity dl div{padding:8px;border-radius:9px;background:rgba(255,255,255,.1)}.crp-profile-identity dt,.crp-profile-identity dd{margin:0}.crp-profile-side h3{font-size:15px}.crp-profile-side a{display:block;margin-top:8px;color:var(--blue);text-decoration:none}.crp-profile-side dl div{display:flex;justify-content:space-between}.crp-profile-side dd{margin:0}.crp-profile-logout{padding:11px;border-radius:10px;text-align:center;color:#b12f39!important;background:#fff0f1;text-decoration:none}.crp-doctor-profile-panel{min-width:0}.crp-doctor-profile-form{display:grid;gap:14px}.crp-doctor-profile-form>label,.crp-doctor-register-grid label{display:flex;flex-direction:column;gap:5px;font-weight:600}.crp-doctor-profile-form input:not([type=checkbox]):not([type=file]),.crp-doctor-profile-form textarea{width:100%;min-height:44px;padding:9px 11px;border:1px solid #bdccde;border-radius:9px;background:#fbfdff}.crp-profile-subsection{padding:16px;border:1px solid #e0e7f0;border-radius:12px;background:#f9fbfd}.crp-profile-subsection header{display:flex;justify-content:space-between}.crp-profile-subsection header p{color:var(--muted)}.crp-notify-row{display:flex!important;flex-direction:row!important;align-items:center!important;gap:12px!important;margin:0!important;padding:11px;border-bottom:1px solid #e7edf4}.crp-notify-row input{width:20px;height:20px;accent-color:var(--blue)}.crp-notify-row span{display:flex;flex-direction:column}.crp-notify-row small{color:var(--muted)}.crp-doctor-current-credential,.crp-doctor-profile-warning{padding:13px;border:1px solid var(--line);border-radius:10px;background:#f7f9fc}.crp-doctor-profile-warning{display:flex;flex-direction:column;color:#7a5316;background:#fff8e9}.crp-doctor-profile-actions{display:flex;justify-content:flex-end;gap:8px}
.crp-viewer-layout{display:grid;grid-template-columns:240px 1fr;gap:14px}.crp-viewer-layout>aside{display:grid;align-content:start;gap:8px;padding:16px;border:1px solid var(--line);border-radius:14px;background:#fff}.crp-viewer-layout>aside h2{font-size:16px}.crp-viewer-layout>aside a{display:flex;flex-direction:column;padding:10px;border:1px solid #e4eaf2;border-radius:9px;text-decoration:none}.crp-viewer-layout>aside a.is-active{border-color:var(--blue);background:#edf4ff}.crp-viewer-layout>aside small{color:var(--muted)}.crp-viewer-stage{min-width:0;border:1px solid var(--line);border-radius:14px;background:#fff;overflow:hidden}.crp-viewer-stage>header{display:flex;justify-content:center;gap:8px;padding:10px;border-bottom:1px solid var(--line)}.crp-viewer-stage button{min-width:38px;padding:6px 10px;border:1px solid var(--line);border-radius:8px;background:#fff;cursor:pointer}.crp-viewer-canvas{min-height:570px;display:grid;place-items:center;padding:20px;background:#e9eef5;overflow:auto}.crp-viewer-canvas iframe{width:100%;height:650px;border:0;background:#fff}.crp-viewer-canvas img{display:block;max-width:100%;transform-origin:center;transition:transform .15s ease}.crp-viewer-stage>footer{display:flex;justify-content:space-between;padding:10px 14px;border-top:1px solid var(--line)}.crp-viewer-stage>footer a{text-decoration:none;color:var(--blue)}.crp-viewer-stage>footer a.is-disabled{opacity:.35;pointer-events:none}.crp-viewer-meta{margin-top:14px;padding:18px;border:1px solid var(--line);border-radius:14px;background:#fff}.crp-viewer-meta dl{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.crp-viewer-meta dl div{padding:10px;border-radius:9px;background:#f4f7fb}.crp-viewer-meta dt{color:var(--muted)}.crp-viewer-meta dd{margin:0;font-weight:700}
@media(max-width:1100px){.crp-doctor-stats{grid-template-columns:repeat(2,1fr)}.crp-dashboard-grid,.crp-doctor-case-workspace,.crp-profile-layout{grid-template-columns:1fr}.crp-dashboard-side{grid-template-columns:repeat(2,1fr)}.crp-case-rail{grid-template-columns:repeat(3,1fr)}.crp-case-patient-card>div{grid-template-columns:repeat(2,1fr)}}
@media(max-width:980px){.crp-doctor-standalone-main{padding:1px 12px 40px}.crp-doctor-topbar{position:sticky;z-index:50;top:8px;display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;margin:8px 0 14px;padding:10px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 8px 25px rgba(16,57,108,.1)}.crp-doctor-brand{display:flex;align-items:center;text-decoration:none}.crp-doctor-brand-assets{display:flex}.crp-doctor-brand-logo{width:100px}.crp-doctor-brand-symbol{display:none}.crp-doctor-brand>span:last-child{display:none}.crp-doctor-user{display:none}.crp-doctor-nav{grid-column:1/-1;display:flex;gap:5px;padding-bottom:2px;overflow:auto}.crp-doctor-nav a{display:flex;align-items:center;gap:5px;min-width:max-content;padding:7px 10px;border-radius:8px;color:var(--navy);background:#f1f5fa;text-decoration:none}.crp-doctor-nav a.is-active{color:#fff;background:var(--blue)}.crp-doctor-nav i{display:none}.crp-doctor-logout{color:#b12f39!important;text-decoration:none}.crp-doctor-main{padding-top:8px}}
@media(max-width:760px){.crp-doctor-app{font-size:14px}.crp-doctor-page-heading,.crp-doctor-welcome,.crp-doctor-case-header,.crp-doctor-profile-heading,.crp-viewer-heading{align-items:flex-start;flex-direction:column;padding:17px}.crp-doctor-page-heading h1,.crp-doctor-welcome h1,.crp-doctor-case-header h1{font-size:22px}.crp-doctor-stats{width:100%}.crp-dashboard-side{grid-template-columns:1fr}.crp-doctor-workflow>div{grid-template-columns:repeat(2,1fr)}.crp-doctor-cases{grid-template-columns:1fr}.crp-doctor-performance>div,.crp-calendar-metrics,.crp-finance-metrics{grid-template-columns:repeat(2,1fr)}.crp-case-header-actions{flex-wrap:wrap}.crp-case-rail{grid-template-columns:1fr}.crp-case-patient-card header{flex-direction:column}.crp-case-patient-card>div{grid-template-columns:1fr 1fr}.crp-doctor-case-fields>div{grid-template-columns:1fr;gap:3px}.crp-doctor-grid,.crp-doctor-register-grid{grid-template-columns:1fr}.crp-doctor-savebar{align-items:stretch;flex-direction:column}.crp-doctor-savebar>div{display:grid;grid-template-columns:1fr 1fr}.crp-calendar-layout,.crp-finance-grid,.crp-viewer-layout{grid-template-columns:1fr}.crp-viewer-layout>aside{grid-template-columns:repeat(2,1fr)}.crp-viewer-layout>aside h2{grid-column:1/-1}.crp-viewer-canvas{min-height:420px}.crp-viewer-meta dl{grid-template-columns:repeat(2,1fr)}.crp-thread-form{grid-template-columns:1fr}.crp-thread-messages article{max-width:92%}.crp-schedule-hours{flex-wrap:wrap}.crp-doctor-files>div{grid-template-columns:38px 1fr}.crp-file-actions{grid-column:2}.crp-doctor-review-form input:not([type=checkbox]),.crp-doctor-review-form select,.crp-doctor-review-form textarea,.crp-doctor-profile-form input:not([type=checkbox]),.crp-doctor-profile-form textarea,.crp-doctor-register-form input:not([type=checkbox]):not([type=file]),.crp-doctor-register-form select,.crp-doctor-register-form textarea{font-size:16px}.crp-doctor-discussion-list>a{grid-template-columns:1fr auto}.crp-doctor-discussion-list>a>*:nth-child(n+3){grid-column:auto}}
@media(max-width:480px){.crp-doctor-standalone-main{padding:1px 8px 28px}.crp-doctor-brand-logo{display:none}.crp-doctor-brand-symbol{display:block;width:38px}.crp-doctor-workflow>div,.crp-case-patient-card>div,.crp-viewer-meta dl{grid-template-columns:1fr}.crp-doctor-workflow span{min-height:105px}.crp-viewer-layout>aside{grid-template-columns:1fr}.crp-waiting-card footer,.crp-report-list footer{align-items:stretch;flex-direction:column}.crp-waiting-card footer>span,.crp-report-list footer>span{margin:0}.crp-doctor-login-card{padding:24px 17px}}
@media print{.crp-doctor-topbar,.crp-doctor-back,.crp-doctor-case-header,.crp-case-rail,.crp-doctor-case-tabs,.crp-doctor-final-report .crp-doctor-panel-title button{display:none!important}.crp-doctor-app:has(.crp-doctor-topbar){padding:0}.crp-doctor-final-report{border:0;box-shadow:none}.crp-doctor-final-report>article{border:0;padding:0}.crp-doctor-final-report article section{break-inside:avoid}.crp-doctor-main{padding:0}}
@media(prefers-reduced-motion:reduce){.crp-doctor-app *{transition:none!important;scroll-behavior:auto!important}}

/* 7.2 mobile Jalali calendar: compact labels, stable seven-column grid and clipped case codes. */
@media(max-width:600px){
  .crp-month-calendar{padding:14px 10px!important;overflow:hidden}
  .crp-month-calendar>header{align-items:center;gap:8px}
  .crp-month-calendar>header h2{margin:0;font-size:20px;white-space:nowrap}
  .crp-month-calendar>header a{font-size:12px;white-space:nowrap}
  .crp-calendar-week,.crp-calendar-grid{width:100%;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;direction:rtl}
  .crp-calendar-week b{min-width:0;padding:7px 0;font-size:0}
  .crp-calendar-week b:nth-child(1):after{content:"ش"}.crp-calendar-week b:nth-child(2):after{content:"ی"}.crp-calendar-week b:nth-child(3):after{content:"د"}.crp-calendar-week b:nth-child(4):after{content:"س"}.crp-calendar-week b:nth-child(5):after{content:"چ"}.crp-calendar-week b:nth-child(6):after{content:"پ"}.crp-calendar-week b:nth-child(7):after{content:"ج"}
  .crp-calendar-week b:after{font-size:12px}
  .crp-calendar-grid>span{min-width:0;min-height:58px;padding:5px 3px;border-radius:7px;overflow:hidden}
  .crp-calendar-grid>span>b{font-size:12px}
  .crp-calendar-grid span.has-event>small{font-size:9px;white-space:nowrap}
  .crp-calendar-case-links{min-width:0}
  .crp-calendar-case-links a{max-width:100%;padding:1px 2px;font-size:8px}
}
.crp-doctor-app{box-sizing:border-box}
body.crp-doctor-standalone-page{overflow-x:hidden}.crp-doctor-welcome{align-items:stretch;flex-direction:column}.crp-doctor-stats{width:100%}

/* 7.1 usability fixes: stable login controls, shared portal shell and functional Jalali calendar. */
#crp-doctor-login .login-remember label{display:flex!important;flex-direction:row!important;align-items:center!important;gap:9px!important;min-height:30px;color:var(--ink)!important}
#crp-doctor-login .login-remember input[type=checkbox]{position:static!important;width:19px!important;height:19px!important;min-height:0!important;margin:0!important;padding:0!important;opacity:1!important;appearance:auto!important;accent-color:var(--blue)}
#crp-doctor-login .login-submit{display:block!important}
#crp-doctor-login .login-submit input[type=submit]{display:block!important;width:100%!important;min-height:48px!important;margin:0!important;border:1px solid #1f67ed!important;border-radius:10px!important;color:#fff!important;background:#1f67ed!important;-webkit-text-fill-color:#fff!important;opacity:1!important;cursor:pointer!important;font-weight:800!important}
.crp-calendar-case-links{display:grid!important;gap:3px;margin-top:5px}
.crp-calendar-case-links a{display:block;padding:2px 4px;border-radius:5px;color:var(--blue)!important;background:#edf4ff;text-decoration:none;font-size:9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;direction:ltr}
.crp-calendar-case-links em{font-size:9px;color:var(--muted);font-style:normal}
@media(min-width:981px){
  .crp-doctor-app:has(.crp-doctor-topbar){width:100%;max-width:none;padding-right:262px}
  .crp-doctor-topbar{top:0;bottom:0;right:0;width:262px;padding:24px 17px 18px;border-radius:0;background:linear-gradient(180deg,#112c4b 0%,#0b233e 64%,#081c32 100%);box-shadow:-12px 0 40px rgba(7,29,50,.11)}
  .crp-doctor-brand{margin-bottom:7px;padding:0 7px 17px}
  .crp-doctor-brand-assets{background:transparent}
  .crp-doctor-brand-logo{width:116px;filter:brightness(0) invert(1)}
  .crp-doctor-nav{gap:7px}
  .crp-doctor-nav a{min-height:45px;padding:8px 12px;border:1px solid transparent;border-radius:12px;color:#b9c9db}
  .crp-doctor-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-doctor-main{width:min(1500px,100%);margin:0 auto;padding:26px 28px 60px}
}
.crp-doctor-backbar{width:min(1180px,calc(100% - 36px));margin:16px auto -6px;display:flex;justify-content:flex-start}
@media(max-width:720px){.crp-doctor-backbar{width:auto;margin:10px 13px 0}}

/* 7.4.2 — unified application shell: grid only when the shared sidebar is present (portal views, not the login card). */
.crp-doctor-app:has(.tbk-sidebar){display:grid;grid-template-columns:272px minmax(0,1fr);min-height:100vh;width:auto;max-width:none;margin:0}
@media(max-width:980px){.crp-doctor-app:has(.tbk-sidebar){display:block}}
/* 7.4.4 — the portal shell fills the viewport like the other portals: the standalone wrapper drops its padding so the sidebar sits flush to the edge (no top notch, right strip or bottom gap). Internal spacing comes from .tbk-main. The login card keeps its gutter because it has no .tbk-sidebar. Higher specificity (:has) also overrides the responsive padding overrides above. */
.crp-doctor-standalone-main:has(.tbk-sidebar){padding:0;min-height:100vh}

/* 7.4.4 — empty states as a calm, centered card (icon badge + heading + hint) instead of loose oversized text. Spans the full width so it is never squeezed into one column of the case grid. */
.crp-doctor-empty{grid-column:1/-1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-height:220px;margin:2px 0;padding:46px 30px;border:1.5px dashed #cfe0f2;border-radius:18px;background:linear-gradient(180deg,#fbfdff 0%,#f2f7fd 100%);text-align:center;color:var(--muted)}
.crp-doctor-empty::before{content:"";width:66px;height:66px;margin-bottom:4px;border-radius:50%;background:#e8f1ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F67ED' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 12h-6l-2 3h-4l-2-3H2'/%3E%3Cpath d='M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z'/%3E%3C/svg%3E") center/32px no-repeat;box-shadow:0 6px 16px rgba(31,103,233,.12)}
.crp-doctor-empty h1,.crp-doctor-empty h2{margin:0;color:var(--ink);font-size:19px;font-weight:800}
.crp-doctor-empty p{margin:0;max-width:430px;color:var(--muted);font-size:14.5px;line-height:1.9}
.crp-doctor-empty>a{margin-top:8px}
@media(max-width:480px){.crp-doctor-empty{min-height:190px;padding:36px 20px}.crp-doctor-empty::before{width:58px;height:58px;background-size:28px}.crp-doctor-empty h1,.crp-doctor-empty h2{font-size:17px}}

/* 7.4.7 — «پرونده‌های ارجاع‌شده» و جدول مالی روی عرض کم: هر جا عرضِ در دسترسِ جدول کمتر از ~۸۲۰px شود
   (موبایل، یا دسکتاپِ باریک وقتی سایدبار حاضر است)، ردیف‌های جدول به کارتِ عمودی تبدیل می‌شوند تا
   دکمهٔ «مشاهده» همیشه پیدا و تمام‌عرض باشد و کاربر مجبور به اسکرول افقی برای یافتن آن نشود.
   تصمیم بر پایهٔ عرضِ خودِ جدول (container query) است، نه عرض صفحه، تا در همهٔ بافت‌ها درست کار کند. */
.crp-doctor-table{container-type:inline-size}
@container (max-width:820px){
  .crp-doctor-table{overflow:visible}
  .crp-doctor-table-head{display:none}
  .crp-doctor-table-row{display:flex;flex-direction:column;gap:9px;min-width:0;margin-bottom:12px;padding:16px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 5px 16px rgba(17,55,100,.04)}
  .crp-doctor-table-row:last-child{margin-bottom:0}
  .crp-doctor-table-row>span{width:100%}
  .crp-doctor-table-row>span:nth-child(3),.crp-doctor-table-row>span:nth-child(4),.crp-doctor-table-row>span:nth-child(5){flex-direction:row;flex-wrap:wrap;align-items:center;gap:6px}
  .crp-doctor-table-row>span:nth-child(n+3)::before{color:var(--muted);font-weight:700}
  /* ستون آخرِ «پرونده‌های ارجاع‌شده» یک دکمه است → تمام‌عرض و واضح */
  .crp-doctor-table-row>span:nth-child(6){margin-top:4px}
  .crp-doctor-table-row>span:nth-child(6) .crp-doctor-secondary{display:flex;justify-content:center;width:100%;min-height:46px}
  /* برچسب ستون‌ها در «پرونده‌های ارجاع‌شده» */
  .crp-doctor-directory .crp-doctor-table-row>span:nth-child(3)::before{content:"فوریت:"}
  .crp-doctor-directory .crp-doctor-table-row>span:nth-child(4)::before{content:"مهلت:"}
  .crp-doctor-directory .crp-doctor-table-row>span:nth-child(5)::before{content:"وضعیت:"}
  /* برچسب ستون‌ها در جدول مالی */
  .crp-finance-table .crp-doctor-table-row>span{flex-direction:row;flex-wrap:wrap;align-items:center;gap:6px}
  .crp-finance-table .crp-doctor-table-row>span::before{color:var(--muted);font-weight:700}
  .crp-finance-table .crp-doctor-table-row>span:nth-child(1)::before{content:"تاریخ:"}
  .crp-finance-table .crp-doctor-table-row>span:nth-child(2)::before{content:"پرونده:"}
  .crp-finance-table .crp-doctor-table-row>span:nth-child(3)::before{content:"بیمار:"}
  .crp-finance-table .crp-doctor-table-row>span:nth-child(4)::before{content:"مبلغ:"}
  .crp-finance-table .crp-doctor-table-row>span:nth-child(5)::before{content:"وضعیت:"}
  .crp-finance-table .crp-doctor-table-row>span:nth-child(6)::before{content:"مرجع:"}
}

/* 7.4.8 — ممیزی سهولت کار پزشک (موبایل + دسکتاپ):
   ۱) تب‌های پرونده روی موبایل به شبکهٔ ۳ستونه تبدیل می‌شوند تا هیچ تبی (از جمله «ثبت نظر») پشت اسکرول افقی پنهان نماند.
   ۲) در پرونده روی موبایل، محتوای اصلی قبل از ریل کناری می‌آید تا پزشک بدون اسکرول اضافه به اطلاعات بالینی برسد.
   ۳) در خانهٔ پزشک روی موبایل، «پرونده‌های نیازمند اقدام» بلافاصله بعد از خوش‌آمد می‌آید و بلوک‌های اطلاعاتی پایین‌تر می‌روند.
   ۴) نشان تعداد روی تب غیرفعال دیده‌شدنی شد و دکمه‌های سربرگ پرونده روی گوشی تمام‌عرض و لمس‌پذیرند. */
.crp-doctor-case-tabs a:not(.is-active) small{background:#dfe9f6;color:var(--navy)}
@media(max-width:760px){
  .crp-doctor-case-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;overflow:visible}
  .crp-doctor-case-tabs a{min-width:0;padding:9px 6px;font-size:13px}
  .crp-doctor-case-workspace .crp-case-content{order:1}
  .crp-doctor-case-workspace .crp-case-rail{order:2}
  .crp-doctor-home{display:flex;flex-direction:column}
  .crp-doctor-home>.crp-doctor-welcome{order:1}
  .crp-doctor-home>.crp-section-heading{order:2}
  .crp-doctor-home>.crp-doctor-cases{order:3}
  .crp-doctor-home>.crp-dashboard-grid{order:4;margin-top:16px}
  .crp-doctor-home>.crp-doctor-guidelines{order:5}
  .crp-doctor-home>.crp-doctor-archive{order:6}
  .crp-doctor-home>.crp-doctor-workflow-note{order:7}
}
@media(max-width:480px){
  .crp-case-header-actions{width:100%}
  .crp-case-header-actions .crp-doctor-button,.crp-case-header-actions .crp-doctor-secondary{flex:1 1 calc(50% - 4px);justify-content:center}
  .crp-doctor-priority{flex:1 1 100%;text-align:center}
}
/* نوار ذخیرهٔ چسبان روی موبایل: فقط دو دکمهٔ هم‌عرض، بدون متن توضیحی، تا حین اسکرولِ فرمِ بلند فضای کمی اشغال کند. */
@media(max-width:760px){
  .crp-doctor-savebar{padding:9px}
  .crp-doctor-savebar>small,.crp-doctor-savebar small{display:none}
  .crp-doctor-savebar>div{gap:8px}
}

/* 7.4.9 — پنل‌های تب‌محور پرونده: پنل غیرفعال قطعاً پنهان می‌ماند. */
.crp-doctor-app [hidden]{display:none!important}

/* 7.4.10 — خلوت‌سازی داشبورد پزشک: فرایند بررسی به نوار جمع‌وجور تک‌خطی تبدیل شد و
   دو یادداشت «اصل استقلال» و «خط قرمز» در یک نوار راهنمای کوچک ادغام شدند. */
.crp-doctor-workflow.is-compact{display:flex;align-items:center;gap:14px;padding:13px 16px}
.crp-doctor-workflow.is-compact header{margin:0;flex:none}
.crp-doctor-workflow.is-compact header h2{font-size:14px;margin:0;color:var(--muted);font-weight:700}
.crp-doctor-workflow.is-compact>div{display:flex;flex:1;flex-wrap:wrap;gap:6px 14px;grid-template-columns:none}
.crp-doctor-workflow.is-compact span{flex-direction:row;align-items:center;gap:7px;min-height:0;padding:4px 0;border:0;background:none}
.crp-doctor-workflow.is-compact i{width:22px;height:22px;margin:0;border-radius:7px;font-size:12px}
.crp-doctor-workflow.is-compact b{font-size:13px;font-weight:700}
.crp-doctor-guidelines{display:flex;flex-direction:column;gap:5px;margin-top:10px;padding:11px 15px;border:1px solid #eadfc4;border-radius:12px;background:#fffaf0;color:#6e5a22;font-size:12.5px;line-height:1.9}
.crp-doctor-guidelines b{color:#8a6a14}
@media(max-width:760px){.crp-doctor-workflow.is-compact{flex-direction:column;align-items:flex-start;gap:8px}}

/* 7.4.14 — خانهٔ پزشک: «دسترسی سریع» کاشی‌های آیکون‌دار با شمارنده؛ «فرایند بررسی» به یک خط ریز در انتهای صفحه منتقل شد. */
.crp-dashboard-grid{grid-template-columns:minmax(0,1fr);gap:12px}
.crp-dashboard-side{grid-template-columns:260px minmax(0,1fr)}
.crp-dashboard-quick{padding:14px 14px 12px!important}
.crp-dashboard-quick h2{margin:0 0 10px;font-size:14px;color:var(--muted)}
.crp-quick-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.crp-dashboard-body .crp-doctor-guidelines{margin-top:0;flex-direction:row;flex-wrap:wrap;gap:4px 24px;padding:9px 15px}
.crp-quick-grid a{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:8px;min-height:84px;padding:12px 12px 10px;border:1px solid #e3eaf3;border-radius:12px;background:#f7f9fc;color:var(--navy);text-decoration:none;font-size:12.5px;font-weight:700;line-height:1.5;transition:border-color .15s,background .15s,transform .15s}
.crp-quick-grid a svg{width:20px;height:20px;color:var(--blue);flex:none}
.crp-quick-grid a span{margin-top:auto}
.crp-quick-grid a b{position:absolute;top:10px;inset-inline-end:10px;display:grid;place-items:center;min-width:24px;height:24px;padding:0 7px;border-radius:999px;color:#fff;background:var(--blue);font-size:12px;font-weight:800}
.crp-quick-grid a.is-teal b{background:#0e9f8f}
.crp-quick-grid a.is-red{border-color:#f3c4c6;background:#fff5f5}
.crp-quick-grid a.is-red svg{color:#e5484d}
.crp-quick-grid a.is-red b{background:#e5484d}
.crp-quick-grid a:hover,.crp-quick-grid a:focus-visible{border-color:#b9cdf0;background:#eef4fd;transform:translateY(-1px)}
.crp-doctor-workflow-note{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:6px 16px;margin:28px 0 4px;color:#93a1b3;font-size:11.5px;line-height:1.6}
.crp-doctor-workflow-note>span{display:inline-flex;align-items:center;gap:5px}
.crp-doctor-workflow-note>span:first-child{font-weight:700;color:#7d8b9e}
.crp-doctor-workflow-note i{display:grid;place-items:center;width:16px;height:16px;border-radius:5px;background:#e9eef5;color:#6b7a8f;font-style:normal;font-size:10px;font-weight:800}
@media(max-width:1100px){.crp-dashboard-side{grid-template-columns:repeat(2,minmax(0,1fr))}.crp-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.crp-dashboard-side{grid-template-columns:minmax(0,1fr)}.crp-quick-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.crp-quick-grid a{min-height:78px;padding:10px 10px 8px;font-size:12px}.crp-dashboard-body .crp-doctor-guidelines{flex-direction:column;gap:5px}}
@media(max-width:400px){.crp-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* 7.4.11 — کارت «برداشت اولیهٔ سامانه» در خلاصهٔ پرونده: کمک شروع بررسی، بدون هیچ نام‌گذاری فنی. */
.crp-system-brief{margin-bottom:12px;border-color:#cfe0f7;background:linear-gradient(180deg,#fbfdff 0%,#f3f8ff 100%)}
.crp-brief-confidence{padding:4px 12px;border-radius:999px;background:#eaf2ff;color:var(--navy);font-size:12px;font-weight:700;white-space:nowrap}
.crp-brief-summary{margin:12px 0 0;line-height:1.95}
.crp-brief-direction{margin:10px 0 0;padding:10px 14px;border-radius:10px;background:#eaf2ff;color:var(--navy)}
.crp-brief-direction b{color:var(--blue)}
.crp-brief-suggests{margin-top:10px}
.crp-brief-suggests b{color:var(--ink)}
.crp-brief-suggests ul{margin:6px 0 0;padding-right:20px}
.crp-brief-suggests li{margin-bottom:4px;color:#3b4f6a}
/* 7.4.24 — ورود پزشک با کد پیامکی و کانال اعلان */
.crp-doctor-login-card input[type=tel]{width:100%;min-height:48px;padding:10px 13px;border:1px solid #c7d4e2;border-radius:11px;background:#fbfdff;direction:ltr;text-align:left}
.crp-doctor-login-card .crp-otp-code{direction:ltr;text-align:center!important;letter-spacing:.5em;font-size:22px!important;font-weight:800;font-family:Inter,"Yekan Bakh",monospace}
.crp-doctor-otp-remember{flex-direction:row!important;align-items:center;gap:8px!important;font-weight:500!important;color:var(--muted)}
.crp-doctor-otp-resend{display:flex!important;grid-template-columns:none!important;justify-content:space-between;gap:10px;margin-top:10px}
.crp-doctor-otp-resend .crp-doctor-forgot{margin:0;padding:4px 0;border:0;background:none;cursor:pointer;font:inherit;font-weight:700}
.crp-doctor-otp-resend .crp-doctor-forgot[disabled]{opacity:.6;cursor:default}
.crp-doctor-login-alt{margin:18px 0 6px;border:1px solid #e3eaf2;border-radius:14px;background:#fbfcfe}
.crp-doctor-login-alt>summary{padding:12px 14px;font-weight:700;cursor:pointer;list-style:none}
.crp-doctor-login-alt>summary::-webkit-details-marker{display:none}
.crp-doctor-login-alt>summary::after{content:'+';float:left;color:var(--blue);font-weight:900}
.crp-doctor-login-alt[open]>summary::after{content:'−'}
.crp-doctor-login-alt>form{padding:0 14px 14px}
.crp-notify-channels{margin-top:12px;padding-top:10px;border-top:1px dashed #dfe6ef}
.crp-notify-channels>b{display:block;margin-bottom:4px;color:var(--ink);font-size:13px}
.crp-notify-row.is-disabled{opacity:.6}

/* 7.4.29 — هشدار تریاژ بالای تب‌های پرونده (نه بین تب و محتوای آن)؛ نماد هشدار، عنوان و متن در دو سطر */
.crp-doctor-alert{align-items:flex-start;padding:13px 15px;line-height:1.9}
.crp-doctor-alert>svg{flex:0 0 auto;margin-top:3px;color:#e5484d}
.crp-doctor-alert>div{display:grid;gap:2px;min-width:0}
.crp-doctor-alert b{font-weight:700}
.crp-doctor-alert span{overflow-wrap:anywhere}
