@font-face{font-family:Clinic;src:url('assets/cairo-arabic.woff2') format('woff2');font-display:swap;font-weight:200 1000;unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1}
@font-face{font-family:Clinic;src:url('assets/cairo-latin.woff2') format('woff2');font-display:swap;font-weight:200 1000;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
:root{--ink:#263643;--muted:#667079;--green:#2170a9;--deep:#1b2b38;--lime:#d4eafe;--line:#e6ebf0;--bg:#f4f7fa;--purple:#8d86c4;--amber:#d9a45e;--red:#c17670;--radius:18px}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Clinic,'Segoe UI',Tahoma,Arial,sans-serif;font-size:14px;line-height:1.65}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button{border:0;background:none;color:inherit}button:disabled{opacity:.45;cursor:not-allowed}a{color:inherit}svg{flex-shrink:0}button:focus-visible,a:focus-visible{outline:3px solid #6eb0e7;outline-offset:4px}input:focus,select:focus,textarea:focus{outline:2px solid #86b6df;outline-offset:1px}h1,h2,h3,p{margin:0}h1{font-size:28px;line-height:1.5;font-weight:750;letter-spacing:-.8px}h2{font-size:17px;font-weight:730}h3{font-size:14px}small{font-size:11px}.muted{color:var(--muted)}.icon{width:20px;height:20px;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round}.app-shell{display:grid;grid-template-columns:232px minmax(0,1fr);min-height:100vh}.sidebar{background:var(--deep);color:#abbac7;padding:30px 19px 22px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column;z-index:20}.brand{display:flex;align-items:center;gap:12px;padding:0 11px 31px;color:white}.brand img{width:45px;height:45px;object-fit:contain;border-radius:14px}.brand-name{font-size:21px;font-weight:750;color:white;max-width:138px;line-height:1.4}.brand small{color:#93a3b2;font-size:10px}.sidebar-label{font-size:10px;letter-spacing:1px;padding:20px 15px 12px;color:#7e94a7}.nav-item{display:flex;gap:12px;align-items:center;width:100%;text-align:right;padding:13px 15px;border-radius:10px;margin-bottom:7px;font-size:13px;transition:.2s}.nav-item:hover{background:#293c4d;color:white}.nav-item.active{background:var(--lime);color:#24394b;font-weight:750;box-shadow:0 3px 12px #0001}.nav-item.active:after{content:'';width:6px;height:6px;border-radius:50%;background:#2d6896;margin-right:auto}.nav-number{margin-right:auto;font:11px Clinic,sans-serif;border:1px solid #4b5c6b;border-radius:5px;padding:0 6px}.sidebar-bottom{margin-top:auto}.demo-card{margin:25px 4px 20px;padding:17px 14px;background:#263847;border:1px solid #394c5c;border-radius:13px;font-size:11px;line-height:1.9}.demo-card strong{color:#d7ecfe;display:block;font-size:12px;margin-bottom:6px}.demo-card .text-btn{color:#cde7fe;margin-top:10px;display:flex;align-items:center;gap:8px;font-size:11px}.doctor{border-top:1px solid #314555;padding:19px 6px 0;display:flex;align-items:center;gap:10px}.doctor .avatar{background:#3a4d5d;color:#d1e9fe}.doctor strong{display:block;color:#e2eaf1;font-size:12px}.doctor small{font-size:10px}.online-dot{width:7px;height:7px;background:#a4cd88;border-radius:50%;margin-right:auto}.main{min-width:0}.topbar{height:78px;padding:0 38px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:#fff8;gap:20px}.breadcrumbs{display:flex;align-items:center;gap:10px;font-size:11px;color:#6d767f}.breadcrumbs strong{color:#546473;font-weight:550}.top-tools{display:flex;align-items:center;gap:18px}.top-date{font-size:11px;color:#6d767f;display:flex;gap:8px;align-items:center}.top-date .icon{width:16px}.tool-btn{display:flex;align-items:center;justify-content:center;width:35px;height:35px;border:1px solid #e1e8ef;background:white;border-radius:50%;position:relative}.tool-btn .icon{width:17px}.notification-dot{position:absolute;left:8px;top:6px;width:5px;height:5px;border-radius:50%;background:#7bbff8;border:1px solid white}.mobile-menu{display:none}.workspace{padding:28px 38px 25px;max-width:1800px;margin:auto}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.page-heading p{font-size:12px;color:var(--muted);margin-top:4px}.eyebrow{display:flex;align-items:center;gap:6px;color:#5a7286;font-size:10px;margin-bottom:5px}.eyebrow:before{content:'';width:5px;height:5px;border-radius:50%;background:#62b0ef}.actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.btn{display:inline-flex;justify-content:center;align-items:center;gap:8px;border-radius:8px;padding:10px 16px;min-height:40px;font-size:12px;font-weight:650;white-space:nowrap;transition:background .18s,transform .18s}.btn:hover{transform:translateY(-1px)}.btn.primary{background:var(--green);color:white;box-shadow:0 3px 6px #2170a912}.btn.primary:hover{background:#165e90}.btn.secondary{background:white;border:1px solid #d9e4ed}.btn.soft{background:#e6f1fb;color:#3f6d93}.btn.danger{background:#f9ece8;color:#a1554e}.btn.small{font-size:11px;min-height:32px;padding:6px 11px}.btn .icon{width:16px;height:16px}.btn.full{width:100%}.text-btn{color:var(--green);font-size:11px;font-weight:650;padding:0}.avatar{width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;border-radius:12px;background:#e6edf4;color:#436c8f;font-size:14px;font-weight:700;flex-shrink:0}.avatar.large{width:53px;height:53px;font-size:19px;background:#e3edf7;border:4px solid #eff6fc}.patient-bar{display:flex;align-items:center;gap:15px;padding:17px 22px;background:white;border:1px solid var(--line);border-radius:var(--radius);margin-bottom:20px}.patient-name h2{font-size:16px;margin-bottom:3px}.patient-name p{color:#6d767f;font-size:10px;display:flex;gap:10px;align-items:center}.patient-details{display:flex;gap:34px;margin-right:35px}.detail-label{font-size:10px;color:#6e757d;display:block}.detail-value{font-size:12px;font-weight:600;margin-top:4px;display:block}.patient-bar .patient-actions{margin-right:auto;display:flex;align-items:center;gap:13px}.pill{display:inline-flex;align-items:center;gap:5px;padding:4px 9px;border-radius:6px;font-size:10px;white-space:nowrap;background:#edf2e8;color:#577446}.pill:before{content:'';width:5px;height:5px;border-radius:50%;background:currentColor}.pill.purple{background:#f0eef8;color:#706494}.pill.amber{background:#faf1e3;color:#8b672d}.pill.gray{background:#eef2f5;color:#666e75}.pill.rose{background:#f8edeb;color:#b67b73}.clinical-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:20px;align-items:stretch}.card{background:white;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}.card-head{display:flex;align-items:center;justify-content:space-between;padding:20px 23px;gap:15px}.card-head h2{font-size:15px}.card-head p{font-size:10px;color:var(--muted);margin-top:2px}.switch{display:flex;padding:3px;border-radius:7px;background:#f0f5f9;gap:3px}.switch button{padding:5px 10px;border-radius:5px;font-size:10px;color:#8f9fae}.switch button.active{background:white;color:#3e6585;box-shadow:0 1px 5px #1c446312}.chart-card{min-height:455px}.chart-area{padding:0 15px;position:relative;display:flex;justify-content:center}.dental-svg{width:100%;max-width:600px;height:330px;overflow:visible}.tooth{cursor:pointer;outline:none}.tooth .body{fill:#f8fbfd;stroke:#cad4dd;stroke-width:1.15;transition:.18s}.tooth .anatomy{fill:none;stroke:#d1dae2;stroke-width:1;pointer-events:none}.tooth:hover .body,.tooth:focus .body{stroke:#6ea1cd;fill:#e8f3fd;filter:drop-shadow(0 2px 3px #02609830)}.tooth.done .body{fill:#dbeac9;stroke:#9ab684}.tooth.planned .body{fill:#e9e3f6;stroke:#b4a7d0}.tooth.issue .body{fill:#f5e8d4;stroke:#d2b37d}.tooth.selected .body{fill:#2473ac;stroke:#186194;stroke-width:1.8;filter:drop-shadow(0 2px 4px #2170a940)}.tooth.selected .anatomy{stroke:#6ea2ce}.tooth text{font-size:10px;fill:#98a3ad;font-family:Clinic,sans-serif;font-weight:550}.tooth.selected text{fill:#2170a9;font-weight:800}.chart-caption{font:10px Clinic,Tahoma,sans-serif;fill:#8e9fae}.chart-center-title{font:600 13px Clinic,Tahoma,sans-serif;fill:#637788}.chart-center-sub{font:9px Clinic,Tahoma,sans-serif;fill:#697782}.legend{display:flex;align-items:center;justify-content:center;gap:23px;border-top:1px solid #edf2f6;padding:15px 10px;color:#8895a1;font-size:9px}.legend span{display:flex;align-items:center;gap:6px}.legend i{width:8px;height:8px;background:#fff;border:1px solid #c6d3dd;border-radius:3px}.legend .planned{background:#e9e3f6;border-color:#b4a7d0}.legend .done{background:#dbeac9;border-color:#9ab684}.legend .issue{background:#f5e8d4;border-color:#d2b37d}.selection-card{padding:21px;display:flex;flex-direction:column}.selection-top{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding-bottom:16px;margin-bottom:17px}.tooth-badge{width:43px;height:46px;background:#e9f3fd;border-radius:10px;color:#66a0d0;display:flex;align-items:center;justify-content:center}.tooth-badge .icon{width:27px;height:27px}.selection-top h2{font-size:15px}.selection-top p{font-size:10px;color:#667784;margin-top:3px}.selection-top .number{margin-right:auto;font:700 24px Clinic,sans-serif;color:#33658e}.form-field{display:flex;flex-direction:column;gap:6px;margin-bottom:13px}.form-field label{font-size:10px;font-weight:650;color:#65798b}.form-field input,.form-field select,.form-field textarea{width:100%;border:1px solid #dee7ef;background:#fff;border-radius:7px;padding:9px 11px;color:#425a6e;font-size:11px;min-height:38px}.form-field textarea{resize:vertical;min-height:61px}.form-field input::placeholder,.form-field textarea::placeholder{color:#697680}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.form-field .input-unit{position:relative}.input-unit input{padding-left:54px;font-family:Clinic,sans-serif;font-weight:650;direction:ltr;text-align:right}.input-unit span{position:absolute;left:11px;top:10px;font-size:10px;color:#667685}.selection-card .btn{margin-top:auto}.hint{font-size:9px;color:#697782;text-align:center;margin-top:10px;display:flex;align-items:center;justify-content:center;gap:4px}.hint .icon{width:12px;height:12px}.plan-preview{margin-top:20px}.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:collapse;white-space:nowrap;text-align:right}.data-table th{background:#f8fbfd;border-block:1px solid #eaf0f5;padding:11px 22px;font-size:10px;color:#637484;font-weight:500}.data-table td{padding:13px 22px;border-bottom:1px solid #eaf0f5;font-size:11px}.data-table tr:last-child td{border-bottom:0}.procedure-cell{display:flex;align-items:center;gap:9px;font-weight:600}.mini-tooth{width:28px;height:28px;border-radius:8px;background:#f0edf7;color:#a197c0;display:inline-flex;align-items:center;justify-content:center}.mini-tooth .icon{width:16px;height:16px}.tooth-number{display:inline-flex;justify-content:center;align-items:center;width:27px;height:25px;border-radius:5px;background:#f2f6fa;color:#5b7286;font:11px Clinic,sans-serif}.amount{font-family:Clinic,sans-serif;font-weight:650}.currency{font-size:9px;color:#647583;font-weight:400;margin-right:4px}.plan-footer{display:flex;align-items:center;justify-content:space-between;padding:14px 23px;background:#fbfdfe;font-size:11px}.plan-footer strong{font-size:16px;margin-right:13px}.page-footer{display:flex;align-items:center;justify-content:space-between;color:#627281;font-size:9px;padding:20px 2px 0}.page-footer span{display:flex;align-items:center;gap:5px}.page-footer .icon{width:12px;height:12px}.saved-dot{width:5px;height:5px;background:#8ca578;border-radius:50%}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:17px;margin-bottom:22px}.stat{padding:21px;background:#fff;border:1px solid var(--line);border-radius:15px;position:relative}.stat-top{display:flex;justify-content:space-between;color:#667787;font-size:11px}.stat .stat-icon{height:33px;width:33px;background:#eef5fb;color:#6c9dc6;border-radius:10px;display:flex;align-items:center;justify-content:center}.stat strong{display:block;font:650 28px Clinic,sans-serif;margin-top:9px;letter-spacing:-.6px}.stat small{color:#637687;font-size:10px}.stat.featured{background:var(--deep);color:white;border-color:var(--deep)}.stat.featured .stat-top{color:#a6bed3}.stat.featured .stat-icon{background:#2f4559;color:#a4d3fc}.stat.featured small{color:#92c2eb}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 20px}.filters{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.filter-select,.search-input,.date-input{border:1px solid #dce6f0;border-radius:8px;background:white;padding:9px 12px;font-size:11px;color:#5f7a91;min-height:38px}.search-input{width:230px}.appointment-time{font:650 13px Clinic,sans-serif;color:#39668b;direction:ltr;display:inline-block}.patient-cell{display:flex;align-items:center;gap:10px}.patient-cell .avatar{width:34px;height:34px;font-size:11px}.patient-cell strong{display:block;font-size:11px}.patient-cell small{font-size:9px;color:#627281}.appointment-table td{padding-block:18px}.empty{padding:42px;text-align:center;color:#61778a;font-size:12px}.empty .icon{display:block;width:36px;height:36px;margin:0 auto 14px;color:#afc5d8}.two-column{display:grid;grid-template-columns:1.5fr 1fr;gap:20px}.info-grid{display:grid;grid-template-columns:1fr 1fr;gap:25px;padding:3px 23px 25px}.section-stack{display:flex;flex-direction:column;gap:20px}.timeline{padding:2px 26px 23px}.timeline-item{padding:0 23px 23px 0;border-right:1px solid #d9e7f3;position:relative}.timeline-item:before{content:'';position:absolute;right:-5px;top:7px;width:9px;height:9px;background:#90c6f5;box-shadow:0 0 0 4px white;border-radius:50%}.timeline-item:last-child{padding-bottom:0;border-color:transparent}.timeline-item small{color:#637789;font-size:10px}.timeline-item h3{margin:5px 0;font-size:12px}.timeline-item p{font-size:11px;color:#61778a}.image-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:0 22px 22px}.record-image{background:#f0f6fb;border:1px solid #dde9f4;border-radius:9px;overflow:hidden;text-align:right;transition:.2s;padding:0}.record-image:hover{border-color:#6aa7db}.record-image svg{display:block;width:100%;height:110px;background:#26313a}.record-image span{display:block;padding:10px;font-size:10px}.note-box{margin:0 23px 23px;padding:12px;background:#fcf7eb;color:#826d37;border:1px solid #f1e8d0;border-radius:9px;font-size:11px}.session-card{margin-bottom:17px}.session-header{display:flex;justify-content:space-between;align-items:center;padding:19px 22px;gap:12px}.session-title{display:flex;align-items:center;gap:12px}.session-num{width:38px;height:38px;display:flex;justify-content:center;align-items:center;background:#eaf3fa;color:#2871a8;font:650 15px Clinic,sans-serif;border-radius:11px}.session-title h2{font-size:14px}.session-title p{font-size:10px;color:#647687;margin-top:3px}.progress-bar{height:6px;border-radius:4px;background:#e0ecf7;overflow:hidden}.progress-bar span{display:block;height:100%;background:#94b97b;border-radius:4px;transition:width .3s}.summary-card{padding:24px}.summary-card h2{font-size:16px;margin-bottom:24px}.summary-line{display:flex;justify-content:space-between;font-size:12px;color:#61778a;margin-bottom:16px}.summary-line strong{color:#30638b}.summary-line.total{padding-top:18px;border-top:1px solid #e0edf8;font-size:14px}.summary-line.total strong{font-size:23px}.summary-card .progress-bar{margin:18px 0 8px}.progress-label{font-size:10px;color:#62778a;display:flex;justify-content:space-between}.summary-card .btn{margin-top:25px}.helper-card{background:#e6f2fc;border:1px solid #d9e9f7;border-radius:15px;padding:21px;font-size:11px;color:#457093}.helper-card h3{color:#36709e;margin-bottom:8px}.helper-card .icon{width:27px;height:27px;margin-bottom:10px;color:#6ba3d2}.invoice-header{display:flex;justify-content:space-between;padding:24px;border-bottom:1px solid var(--line);gap:12px}.invoice-header h2{font-size:20px}.invoice-header p{font-size:11px;color:#657788;margin-top:5px}.invoice-meta{padding:22px 24px;display:flex;gap:50px}.payment-history{padding:0 23px 20px}.payment-row{display:flex;align-items:center;gap:12px;padding:15px 0;border-bottom:1px solid var(--line)}.payment-row:last-child{border:0}.payment-row .icon{color:#64a3d7;background:#e9f4fd;width:34px;height:34px;padding:8px;border-radius:9px}.payment-row strong{font-size:12px}.payment-row p{font-size:10px;color:#647788}.payment-row .amount{margin-right:auto;font-size:13px}.toast{position:fixed;bottom:27px;left:50%;transform:translate(-50%,20px);opacity:0;background:#253a4c;color:#e9f4fe;padding:13px 23px;border:1px solid #406788;border-radius:12px;box-shadow:0 10px 40px #0002;font-size:12px;z-index:1000;pointer-events:none;transition:.25s;max-width:90vw;text-align:center}.toast.visible{opacity:1;transform:translate(-50%,0)}dialog{border:1px solid #dde8f2;border-radius:20px;padding:0;width:min(520px,calc(100vw - 32px));max-height:90vh;box-shadow:0 30px 110px #18273445;color:var(--ink);background:white}dialog::backdrop{background:#19283475;backdrop-filter:blur(4px)}.modal-head{display:flex;align-items:center;justify-content:space-between;padding:23px 26px 17px}.modal-head h2{font-size:19px}.modal-head .tool-btn{border:0;background:#edf5fc}.modal-body{padding:0 26px 26px}.modal-body>p{font-size:12px;color:#60788c;margin-bottom:20px}.modal-body .form-field{margin-bottom:18px}.modal-body .form-field label{font-size:12px}.modal-body .form-field input,.modal-body .form-field select,.modal-body .form-field textarea{font-size:13px;min-height:44px}.modal-actions{display:flex;gap:10px;margin-top:23px}.modal-actions .primary{flex:1}.form-error{color:#b26d5d;font-size:11px;margin-top:8px}.walkthrough-step{display:flex;gap:14px;padding:15px 0;border-bottom:1px solid var(--line)}.walkthrough-step>span{width:30px;height:30px;border-radius:50%;background:#e6f2fd;display:flex;align-items:center;justify-content:center;color:#2171ab;flex-shrink:0;font:600 13px Clinic,sans-serif}.walkthrough-step h3{margin-bottom:5px}.walkthrough-step p{font-size:11px;color:#51789a}.record-large{width:100%;height:260px;background:#243340;border-radius:12px}.chart-header-left{display:flex;align-items:center;gap:12px}.chart-full-button{color:#8ea7be;padding:3px;display:flex}.chart-full-button .icon{width:17px;height:17px}.note-chip{color:#5e788f;font-size:10px;display:block;max-width:250px;overflow:hidden;text-overflow:ellipsis}.mobile-shade{display:none}.delete-btn{color:#bd9a8e;display:inline-flex;padding:5px;border-radius:5px}.delete-btn:hover{background:#faf0e9;color:#ab6c56}.delete-btn .icon{width:14px;height:14px}.status-toggle{cursor:pointer}.status-toggle:hover{box-shadow:0 0 0 2px #d3e6f8}.storage-warning{padding:8px 20px;background:#fff0d7;text-align:center;color:#9b742f;font-size:11px}.print-only{display:none}.field-note{font-size:10px;color:#627789;margin-top:4px}.demo-tag{font-size:9px;padding:3px 8px;border:1px solid #d1e4f5;color:#4e799c;border-radius:5px}.arch-label{position:absolute;top:23px;right:28px;font-size:9px;color:#96abbe}.screen-enter{animation:enter .25s ease}@keyframes enter{from{opacity:.45;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:1600px){.workspace{padding-top:35px}.clinical-grid{grid-template-columns:minmax(0,1fr) 350px}.dental-svg{height:375px}.chart-card{min-height:500px}.selection-card{padding:25px}.form-field{margin-bottom:19px}.patient-bar{padding:21px 25px}.card-head{padding:23px 27px}.data-table td{padding-block:16px}}
@media(max-width:1200px){.app-shell{grid-template-columns:205px minmax(0,1fr)}.workspace{padding:24px}.topbar{padding:0 24px}.sidebar{padding-inline:13px}.clinical-grid{grid-template-columns:minmax(0,1fr) 265px;gap:15px}.patient-details{gap:20px;margin-right:10px}.patient-details .detail:nth-child(3){display:none}.selection-card{padding:17px}.card-head{padding:18px}.legend{gap:14px}.data-table td,.data-table th{padding-inline:17px}.brand{padding-inline:6px}}
@media(max-width:1000px){.app-shell{grid-template-columns:180px minmax(0,1fr)}.sidebar{padding-inline:9px}.brand-name{font-size:18px}.brand img{width:37px;height:37px}.nav-item{padding:12px 10px;font-size:11px;gap:9px}.workspace{padding:20px}.clinical-grid{grid-template-columns:minmax(0,1fr) 245px;gap:12px}.patient-details{display:none}.patient-bar{padding:15px}.dental-svg{height:310px}.chart-card .card-head{flex-wrap:wrap}.stats{gap:10px}.stat{padding:15px}.stat-top{font-size:10px}.legend{gap:10px;flex-wrap:wrap;font-size:8px}.two-column{grid-template-columns:1.2fr 1fr}.page-heading{margin-bottom:20px}h1{font-size:25px}.top-date{display:none}.search-input{width:180px}}
@media(max-width:800px){.app-shell{display:block}.sidebar{position:fixed;right:0;top:0;width:230px;transform:translateX(100%);transition:transform .25s;height:100dvh}.sidebar.open{transform:translateX(0)}.sidebar.open+.mobile-shade{display:block;position:fixed;inset:0;background:#19293677;z-index:19;backdrop-filter:blur(3px)}.mobile-menu{display:flex}.topbar{height:65px;padding:0 20px}.top-tools{gap:10px}.breadcrumbs{margin-left:auto}.workspace{padding:22px}.clinical-grid{grid-template-columns:minmax(0,1fr) 270px;gap:15px}.brand-name{font-size:21px}.nav-item{font-size:13px}.patient-bar{padding:17px}.stats{grid-template-columns:repeat(2,1fr)}.two-column{grid-template-columns:1fr 1fr}.search-input{width:180px}}
@media(max-width:620px){body{font-size:13px}.workspace{padding:18px 14px}.topbar{padding:0 14px}.breadcrumbs{font-size:10px}.top-tools{gap:8px}.demo-tag{display:none}.page-heading{align-items:flex-start;gap:10px;margin-bottom:19px}.page-heading .actions{max-width:130px;justify-content:flex-end}.page-heading .actions .secondary{display:none}h1{font-size:23px}.page-heading p{font-size:10px;max-width:220px}.btn{font-size:11px;padding:9px 12px}.patient-bar{gap:10px;flex-wrap:wrap;margin-bottom:15px;padding:14px}.patient-name h2{font-size:14px}.patient-bar .patient-actions{gap:7px}.patient-bar .patient-actions .text-btn{font-size:10px}.patient-bar .pill{font-size:8px}.avatar.large{width:45px;height:45px;font-size:16px}.patient-name p{font-size:9px;gap:6px}.clinical-grid{grid-template-columns:1fr}.chart-card{min-height:0}.dental-svg{height:auto;min-height:270px}.chart-card .card-head{flex-wrap:nowrap;padding:17px}.selection-card{padding:20px}.selection-top{margin-bottom:15px}.selection-card .form-field{margin-bottom:16px}.selection-card .form-field input,.selection-card .form-field select,.selection-card .form-field textarea{font-size:13px;min-height:43px}.selection-card .btn{min-height:45px;font-size:13px}.legend{padding:14px 8px;gap:16px;font-size:9px}.stats{gap:10px}.stat{padding:16px}.stat strong{font-size:25px}.toolbar{align-items:stretch;flex-direction:column}.filters{gap:7px}.search-input{width:100%}.filter-select,.date-input{flex:1;max-width:100%;min-width:0}.two-column{grid-template-columns:1fr}.page-footer{font-size:8px;gap:10px}.data-table td,.data-table th{padding-inline:15px}.plan-footer{padding:14px 16px;font-size:10px}.plan-footer strong{font-size:15px}.plan-preview .card-head{padding:18px 16px}.plan-preview .card-head h2{font-size:14px}.session-header{flex-wrap:wrap;padding:17px}.invoice-meta{gap:25px}.top-tools .tool-btn{width:31px;height:31px}.card{border-radius:15px}}
.two-column>*{min-width:0}.avatar{white-space:nowrap}.record-large svg{width:100%;height:100%}.form-field label{color:#5b7286}.legend{color:#60778a}.chart-caption{fill:#62778b}.tooth text{fill:#60778a}.tooth .body{stroke:#acc0d2;stroke-width:1.25}.tooth .anatomy{stroke:#b2c6d8}.sidebar .demo-card strong{display:flex;align-items:center;gap:7px}.session-header .text-btn{display:inline-flex;align-items:center;gap:5px}.session-header .text-btn .icon{width:14px;height:14px}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.chart-view-switch{display:flex;background:#edf4fb;padding:4px;border-radius:9px;gap:3px}.chart-view-switch button{border-radius:6px;padding:6px 10px;font-size:10px;white-space:nowrap;color:#5a7083;display:flex;align-items:center;gap:6px;min-height:32px}.chart-view-switch button.active{background:#fff;color:#235780;box-shadow:0 2px 8px #1c446315;font-weight:700}.chart-view-switch button[data-chart-mode="3d"] bdi{font:bold 10px Clinic,sans-serif;background:#d2e9fd;color:#346a96;padding:2px 4px;border-radius:4px}.has-three .chart-area{padding:0 14px;display:block}.has-three .card-head{padding-block:17px}.has-three .selection-card{align-self:start}.three-experience{width:100%}.three-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;gap:10px}.jaw-switch{display:flex;gap:3px}.jaw-switch button{font-size:10px;border-radius:6px;padding:5px 12px;color:#657786;min-height:32px}.jaw-switch button.active{background:#e8f2fc;color:#3270a0;font-weight:700}.three-tools{display:flex;gap:5px;direction:ltr}.three-tools button{width:30px;height:30px;border:1px solid #dde9f3;background:white;border-radius:7px;display:flex;align-items:center;justify-content:center;font:19px Clinic,sans-serif;color:#4f799d}.three-tools button:hover{background:#e8f2fc}.three-tools .icon{width:14px;height:14px}.three-stage{height:355px;position:relative;overflow:hidden;border-radius:12px;background:radial-gradient(ellipse at 48% 44%,#405363 0%,#273a4a 47%,#1a2b3a 100%);isolation:isolate}.dental3d-canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab}.dental3d-canvas.dragging{cursor:grabbing!important}.dental3d-canvas:focus-visible{outline:2px solid #b0dafe;outline-offset:-3px;border-radius:12px}.three-scene-caption{position:absolute;right:16px;top:14px;display:flex;align-items:center;gap:6px;color:#bfd0df;font-size:9px;pointer-events:none;z-index:2}.three-live-dot{width:5px;height:5px;border-radius:50%;background:#bbd694}.three-caption-separator{color:#7a91a5;padding:0 3px}.three-scene-caption bdi{font:600 10px Clinic,sans-serif;letter-spacing:1px;color:#abd7fd}.three-stage-note{position:absolute;bottom:11px;right:14px;color:#9bb1c4;font-size:8px;pointer-events:none}.three-tooltip{position:absolute;left:12px;bottom:12px;background:#f0f8feed;border:1px solid #b5d1ea;color:#29628e;padding:6px 10px;border-radius:7px;font-size:10px;pointer-events:none;z-index:3}.tooth3d-label{position:absolute;transform:translate(-50%,-100%);border:1px solid #e0f0ff66;background:#e9f4fee8;color:#325d80;border-radius:6px;padding:3px 7px;min-width:25px;font:600 11px Clinic,sans-serif;box-shadow:0 3px 10px #0003;z-index:3}.tooth3d-label.selected{background:#d2eaff;color:#0f5584;border-color:#99d0ff}.three-experience [hidden]{display:none!important}.three-instructions{display:flex;align-items:center;justify-content:center;gap:9px;color:#647789;font-size:9px;padding:11px 3px}.three-instructions i{width:3px;height:3px;background:#bbcfe0;border-radius:50%}.three-tooth-picker{display:flex;flex-direction:column;gap:7px;padding:9px 3px 12px;border-top:1px solid #eaf2f9}.tooth-picker-row{display:flex;align-items:center;gap:9px;min-width:0}.tooth-picker-row>span{width:34px;color:#637788;font-size:9px;flex-shrink:0}.tooth-picker-numbers{display:grid;grid-template-columns:repeat(16,minmax(0,1fr));gap:3px;flex:1;min-width:0}.tooth-picker-button{min-width:0;height:26px;display:flex;align-items:center;justify-content:center;border-radius:5px;background:#f0f6fb;border:1px solid #dbe8f4;color:#56728a;font:10px Clinic,sans-serif;padding:0;transition:.15s}.tooth-picker-button:hover{background:#deeefd;border-color:#7cadd8}.tooth-picker-button.issue{background:#faf0df;color:#b29463;border-color:#ebd6b2}.tooth-picker-button.planned{background:#ede8f7;color:#6d6483;border-color:#dcd4eb}.tooth-picker-button.done{background:#e4efd9;color:#596f42;border-color:#cddfb7}.tooth-picker-button.selected{background:#2570a7;color:white;border-color:#2570a7;box-shadow:0 0 0 2px #d3e6f8}.three-selection-summary{display:flex;gap:7px;align-items:center;flex-wrap:wrap;font-size:10px;color:#4a7598;background:#f3f9fe;border-radius:7px;padding:9px 11px;margin:0 0 12px}.three-selection-summary>.muted{margin-right:auto;font-size:9px}.three-selection-summary .icon{height:15px;width:15px}.has-three .legend{padding:13px 8px}.clinical-grid:has(.has-three){align-items:start}.clinical-grid:has(.has-three) .selection-card{position:sticky;top:18px;min-height:455px}.chart-card .card-head{flex-wrap:wrap}.three-stage-note,.three-scene-caption{user-select:none}
@media(min-width:1600px){.three-stage{height:405px}.tooth-picker-button{height:29px;font-size:11px}}
@media(max-width:1000px) and (min-width:621px){.clinical-grid:has(.has-three){grid-template-columns:1fr}.clinical-grid:has(.has-three) .selection-card{position:static;min-height:auto}.three-stage{height:360px}.tooth-picker-button{height:30px}.three-instructions{font-size:10px}.chart-card .chart-header-left{gap:5px}.chart-view-switch button{padding:5px 8px}}
@media(max-width:620px){.chart-card .card-head{flex-wrap:wrap;gap:12px}.chart-header-left{width:100%;justify-content:space-between}.chart-view-switch{flex:1}.chart-view-switch button{flex:1;justify-content:center;font-size:11px}.chart-full-button{margin-right:8px}.has-three .chart-area{padding:0 10px}.three-stage{height:310px}.three-scene-caption{font-size:8px;right:11px}.three-stage-note{font-size:7px;right:10px}.three-instructions{gap:5px;font-size:8px;flex-wrap:wrap}.tooth-picker-row{gap:5px}.tooth-picker-row>span{width:27px;font-size:8px}.tooth-picker-numbers{gap:2px}.tooth-picker-button{height:28px;font-size:8px}.three-selection-summary{font-size:10px}.three-selection-summary>.muted{width:100%;margin-right:23px}.clinical-grid:has(.has-three) .selection-card{position:static;min-height:auto}.jaw-switch button{padding:5px 10px}.three-tools button{width:29px;height:29px}}
/* Redesign layer: blue clinic UI with the interactive arch chart, tooth details panel and the dashboard, patients and reports pages. */
:root{--deep:#132d4f;--brand:#1f6fb5;--shadow:0 6px 24px #12294a0f;--radius:18px}
h1{font-size:34px;font-weight:800;letter-spacing:0;line-height:1.35}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.table-wrap{position:relative}
.app-shell{grid-template-columns:262px minmax(0,1fr)}
.sidebar{background:linear-gradient(180deg,#14305a 0%,#0f2544 100%);padding:26px 16px 20px;color:#c9d6e2;overflow-y:auto}
.brand{padding:0 8px 26px;gap:14px}
.brand img{width:54px;height:54px;border-radius:15px}
.brand-name{font-size:25px;font-weight:800;line-height:1.3}
.brand small{font-size:12px;color:#aebfd0}
.main-nav{display:flex;flex-direction:column;gap:4px}
.nav-item{font-size:15px;padding:11px 16px;border-radius:12px;color:#d9e3ec;margin-bottom:0;gap:14px}
.nav-item .icon{width:21px;height:21px}
.nav-item:hover{background:#1d3d66;color:#fff}
.nav-item.active{background:#d9eafc;color:#0f2a48;font-weight:800;box-shadow:0 6px 18px #0004}
.nav-item.active .icon{color:#1a5f9e}
.nav-item.active:after{display:none}
.nav-number{border:1px solid #5b7899;color:#e3ecf5;font:600 12px Clinic,sans-serif;border-radius:7px;padding:0 8px}
.nav-item.active .nav-number{border-color:#8fb4d8;color:#0f2a48}
.nav-divider{border:0;border-top:1px solid #2a4a72;margin:16px 6px}
.demo-card{margin:24px 2px 18px;padding:18px 16px;background:#173a63;border:1px solid #2c5280;border-radius:16px;font-size:13px;line-height:1.8;color:#cfdbe7}
.demo-card strong{display:flex;align-items:center;gap:8px;color:#fff;font-size:16px;margin-bottom:6px}
.demo-card p{margin:0}
.demo-card .crown{width:20px;height:20px;color:#f5c451}
.demo-cta{margin-top:14px;width:100%;display:flex;align-items:center;justify-content:center;gap:8px;padding:9px 12px;border:1px solid #3f6797;border-radius:10px;color:#fff;font-weight:700;font-size:13px;background:#12335a}
.demo-cta:hover{background:#1b4677}
.demo-cta .icon{width:16px;height:16px}
.doctor{border-top:1px solid #2a4a72}
.doctor .avatar{background:#2b64a6;color:#fff;font-size:18px;font-weight:800}
.doctor strong{font-size:15px;color:#fff}
.doctor small{font-size:12px;color:#b8c8d8}
.topbar{height:72px;background:#fff;padding:0 32px}
.breadcrumbs{font-size:14px;color:#5b6773}
.breadcrumbs strong{color:#1d2f3f;font-weight:800}
.breadcrumbs .icon{color:#5b7590}
.top-date{font-size:14px;color:#3f4f5e}
.tool-btn{width:42px;height:42px;border-color:#dce5ee}
.tool-btn .icon{width:19px}
.notification-dot{background:#e5484d;width:8px;height:8px;left:9px;top:8px}
.demo-tag{font-size:12px;padding:4px 12px;border-color:#a9cbec;color:#1d5f9c;background:#eef6fd;border-radius:999px}
.workspace{padding:26px 32px 24px}
.page-heading{margin-bottom:22px}
.page-heading p{font-size:15px;color:#566573;margin-top:6px}
.eyebrow{font-size:13px;color:#4f6b85;margin-bottom:4px}
.eyebrow:before{width:7px;height:7px;background:#2f86d6}
.btn{font-size:14px;min-height:46px;padding:10px 20px;border-radius:11px;font-weight:700}
.btn .icon{width:18px;height:18px}
.btn.primary{background:linear-gradient(180deg,#2475bd,#1a60a3);box-shadow:0 6px 16px #1d64a830}
.btn.primary:hover{background:linear-gradient(180deg,#1f6aac,#155390)}
.btn.secondary{border-color:#d3dfea;box-shadow:0 2px 6px #12294a0d;color:#1d2f3f}
.btn.small{min-height:38px;font-size:13px;padding:7px 14px}
.card{border-radius:20px;border-color:#e2e9f1;box-shadow:var(--shadow)}
.card-head h2{font-size:19px;font-weight:800}
.card-head p{font-size:13px}
.patient-bar{padding:18px 24px;border-radius:20px;border-color:#e2e9f1;box-shadow:var(--shadow);gap:18px}
.avatar.large{width:58px;height:58px;font-size:22px;background:#e2eefa;color:#1f5f99;border:0;border-radius:15px}
.patient-name h2{font-size:21px;font-weight:800}
.patient-name p{font-size:13px}
.patient-details{gap:0;margin-right:22px}
.patient-details .detail{display:flex;align-items:center;gap:12px;padding:0 22px;border-right:1px solid #e3e9ef}
.detail-icon{width:22px;height:22px;color:#5d7287}
.detail-label{font-size:12px}
.detail-value{font-size:15px;font-weight:700;color:#1d2f3f}
.patient-actions .pill{font-size:13px;padding:7px 14px;border-radius:999px;font-weight:700}
.swap-btn .icon{width:16px;height:16px;color:#1a5f9e}
.pill{font-size:12px;padding:4px 11px;border-radius:999px}
.pill.blue{background:#e3f0fc;color:#1a5f9e}
.clinical-grid{grid-template-columns:minmax(0,1fr) 360px;gap:22px}
.chart-card{container-type:inline-size;display:flex;flex-direction:column;min-height:0}
.chart-head{padding:20px 24px 14px}
.chart-title{display:flex;align-items:center;gap:12px}
.title-icon{display:flex;color:#2a78c2}
.title-icon .icon{width:30px;height:30px}
.chart-header-left{gap:12px}
.chart-view-switch{background:#eef4fa;border:1px solid #dbe6f0;border-radius:14px;padding:4px;display:flex;gap:4px}
.chart-view-switch button{display:flex;align-items:center;gap:8px;padding:8px 16px;border-radius:10px;font-size:14px;font-weight:700;color:#3f5568;background:none}
.chart-view-switch button.active{background:#fff;color:#1a5f9e;box-shadow:0 2px 8px #12294a1a}
.chart-view-switch .icon{width:22px;height:22px;color:#2a78c2}
.mode-3d{background:#dcebfa;color:#1a5f9e;border-radius:7px;padding:1px 7px;font-size:12px;font-weight:800}
.round-btn{width:36px;height:36px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;color:#5d7287;border:1px solid #dbe4ec;background:#fff}
.round-btn .icon{width:19px;height:19px}
.chart-body{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;padding:4px 20px 12px;flex:1;align-items:start}
@container (min-width:780px){.chart-body.with-panel{grid-template-columns:minmax(0,1fr) 310px}}
.chart-card .chart-area{padding:0;display:block;min-width:0}
.arch-wrap{position:relative;max-width:640px;margin:0 auto}
.arch-svg{display:block;width:100%;height:auto;overflow:visible}
.arch-gum{fill:url(#gum-fill)}
.arch-band{fill:none;stroke:#f2c7cd;stroke-width:60;opacity:.5}
.arch-midline{fill:none;stroke:#c9d3dd;stroke-width:1.2;stroke-dasharray:4 6}
.arch-tooth{cursor:pointer;outline:none}
.tooth-crown{stroke:#cfc4b4;stroke-width:1.1;vector-effect:non-scaling-stroke;transition:stroke .15s}
.tooth-fissure{fill:none;stroke:#8f8170;stroke-width:1.1;opacity:.4;stroke-linecap:round;vector-effect:non-scaling-stroke;pointer-events:none}
.tooth-gloss{fill:#fff;opacity:.72;pointer-events:none}
.tooth-halo{fill:none;stroke:#86c3f6;stroke-width:10;opacity:.55;vector-effect:non-scaling-stroke}

.arch-tooth.done .tooth-crown{stroke:#3f8a2c}
.arch-tooth.planned .tooth-crown{stroke:#6a4fc0}
.arch-tooth.issue .tooth-crown{stroke:#b9861a}
.arch-tooth.review .tooth-crown{stroke:#1f8172}
.arch-tooth:not(.healthy) .tooth-fissure{stroke:#00000059}
.arch-tooth:hover .tooth-crown{stroke:#2a78c2;stroke-width:2}
.arch-tooth:focus-visible .tooth-crown{stroke:#0f4f94;stroke-width:3}
.arch-tooth:focus-visible .arch-label{text-decoration:underline}
.tooth-mark circle{stroke:#fff;stroke-width:2}
.tooth-mark path{fill:none;stroke:#fff;stroke-width:3.4;stroke-linecap:round;stroke-linejoin:round}
.tooth-mark.done circle{fill:#2f9a3e}
.tooth-mark.planned circle{fill:#7556d4}
.arch-label{font:700 15px Clinic,sans-serif;fill:#3a4a59;text-anchor:middle;dominant-baseline:middle;pointer-events:none}

.arch-tooth.done .arch-label{fill:#215f17}
.arch-tooth.planned .arch-label{fill:#6040bf}
.arch-tooth.issue .arch-label{fill:#6f4800}
.arch-tooth.review .arch-label{fill:#0f5f58}
.arch-svg .arch-tooth.selected .tooth-crown{stroke:#0f4f94;stroke-width:2.2}
.arch-svg .arch-tooth.selected .arch-label{fill:#1a64b0;font-size:21px;font-weight:800}
.jaw-tag,.tooth-focus{position:absolute;left:50%;transform:translate(-50%,-50%);display:inline-flex;align-items:center;gap:8px;white-space:nowrap;border-radius:999px}
.jaw-tag{background:#ffffffeb;border:1px solid #e3e9ef;padding:5px 15px;font-size:14px;font-weight:600;color:#33475a;box-shadow:0 2px 8px #12294a12;pointer-events:none}
.jaw-tag .icon{width:18px;height:18px;color:#4f6b85}
.jaw-tag.upper{top:34.7%}
.jaw-tag.lower{top:65.3%}
.tooth-focus{top:50%;background:#fff;border:1px solid #c9dcef;padding:8px 18px;font-size:16px;font-weight:800;color:#163f6c;box-shadow:0 4px 14px #12294a1f}
.tooth-focus .icon{width:20px;height:20px;color:#1a64b0}
.tooth-focus:hover{border-color:#8fb9e3}
.tooth-panel{border:1px solid #e3eaf1;border-radius:16px;background:#fff;box-shadow:0 10px 30px #12294a14;padding:16px}
.tooth-panel-head{display:flex;justify-content:space-between;align-items:center;padding-bottom:12px;border-bottom:1px solid #edf1f5;margin-bottom:14px}
.tooth-panel-head h3{font-size:18px;font-weight:800}
.icon-btn{width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;color:#4f6275}
.icon-btn:hover{background:#eef3f8}
.tooth-summary,.surfaces-body{display:grid;grid-template-columns:minmax(0,1fr) 104px;gap:14px;align-items:center}
.tooth-portrait{background:linear-gradient(160deg,#e6f1fc 0%,#b5d5f3 100%);border-radius:12px;padding:8px 10px}
.tooth-art,.surface-art{display:block;width:100%;height:auto}
.tooth-facts{margin:0;display:flex;flex-direction:column;gap:11px}
.tooth-facts div{display:flex;justify-content:space-between;align-items:center;gap:8px}
.tooth-facts dt{font-size:12px;color:#5b6773;white-space:nowrap}
.tooth-facts dd{margin:0;font-size:13px;font-weight:700;color:#1d2f3f;text-align:left}
.status-pill{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:700;white-space:nowrap}
.status-pill:before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor}
.status-pill.healthy{background:#eef2f5;color:#4b5966}
.status-pill.issue{background:#fdf1d6;color:#7f5300}
.status-pill.review{background:#d9f4ef;color:#0f645a}
.status-pill.planned{background:#ece6fb;color:#553aa8}
.status-pill.done{background:#e3f4dc;color:#2d6620}
.priority-pill{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:8px;font-size:12px;font-weight:700}
.priority-pill.low{background:#e6f2e8;color:#2d6638}
.priority-pill.medium{background:#fdf0d5;color:#7f5300}
.priority-pill.high{background:#fde4e1;color:#962c22}
.priority-bars{display:inline-flex;align-items:flex-end;gap:2px;height:12px}
.priority-bars i{width:3px;background:currentColor;opacity:.3;border-radius:1px}
.priority-bars i:nth-child(1){height:5px}.priority-bars i:nth-child(2){height:8px}.priority-bars i:nth-child(3){height:12px}
.priority-bars i.on{opacity:1}
.edit-tooth{margin-top:12px;font-size:13px;display:inline-flex;gap:6px;align-items:center}
.edit-tooth .icon{width:15px;height:15px}
.surfaces{border-top:1px solid #edf1f5;margin-top:14px;padding-top:14px}
.surfaces h4{font-size:15px;font-weight:800;margin:0 0 10px}
.surface-list{display:flex;flex-direction:column;gap:8px}
.surface-option{display:flex;align-items:center;gap:10px;font-size:14px;cursor:pointer;color:#26394a}
.surface-option input{width:18px;height:18px;margin:0;accent-color:#1f6fb5;flex-shrink:0}
.surface-art .sf{fill:url(#sf-enamel);stroke:#c9bba8;stroke-width:.9;transition:fill .15s}
.surface-art .sf.on{fill:url(#sf-on);stroke:#1a64b0}
.surface-art .sf-root{fill:url(#sf-root);stroke:#d2c2a8;stroke-width:.8}
.surface-art .sf-fissure{fill:none;stroke:#00000026;stroke-width:1.2;stroke-linecap:round;pointer-events:none}
.chart-foot{display:flex;align-items:center;gap:16px;border-top:1px solid #edf1f5;padding:12px 20px;flex-wrap:wrap}
.chart-foot .legend{border:0;padding:0;flex:1;justify-content:center;gap:22px;font-size:13px;color:#33475a;flex-wrap:wrap}
.chart-foot .legend span{gap:8px}
.chart-foot .legend i.lg{width:16px;height:16px;border-radius:4px;border:1.5px solid;display:inline-block}
.chart-foot .legend .lg.healthy{background:#fff;border-color:#b3c1ce}
.chart-foot .legend .lg.issue{background:#f8d76e;border-color:#c99522}
.chart-foot .legend .lg.review{background:#8fdccf;border-color:#258a7b}
.chart-foot .legend i.lg-icon{width:19px;height:19px;border-radius:50%;border:0;display:inline-flex;align-items:center;justify-content:center;color:#fff}
.chart-foot .legend .lg-icon .icon{width:12px;height:12px;stroke-width:3}
.chart-foot .legend .lg-icon.planned{background:#7556d4}
.chart-foot .legend .lg-icon.done{background:#2f9a3e}
.record-btn{color:#1a5f9e}
.tooth-picker-button.review{background:#ddf5f0;color:#0f645a;border-color:#a8e3d8}
.selection-card{padding:24px;border-radius:20px}
.selection-top{gap:14px;padding-bottom:18px;margin-bottom:18px}
.tooth-badge{width:54px;height:54px;background:#e3f0fc;color:#1f6fb5;border-radius:15px}
.tooth-badge .icon{width:30px;height:30px}
.selection-top h2{font-size:19px;font-weight:800}
.selection-top p{font-size:13px;color:#5b6a77}
.selection-top .number{font:800 40px Clinic,sans-serif;color:#1a5f9e}
.form-field{margin-bottom:16px}
.form-field label{font-size:14px;font-weight:700;color:#2a3d4e}
.form-field input,.form-field select,.form-field textarea{font-size:14px;min-height:48px;border-radius:11px;border-color:#d8e2ec;color:#1d2f3f;padding:10px 13px}
.form-field textarea{min-height:84px}
.form-row{gap:14px}
.field-icon{position:relative}
.field-icon>.icon{position:absolute;right:13px;top:50%;transform:translateY(-50%);width:20px;height:20px;color:#6b8094;pointer-events:none}
.form-field .field-icon select,.form-field .field-icon input,.form-field .field-icon textarea{padding-right:42px}
.form-field .field-icon.textarea>.icon{top:auto;bottom:12px;right:auto;left:12px;transform:none}
.form-field .field-icon.textarea textarea{padding-right:13px;padding-left:40px}
.form-field .input-unit input{padding-left:50px}
.input-unit span{top:50%;transform:translateY(-50%);font-size:13px;color:#566573}
.check-field{font-size:13px;color:#2f4253;margin:2px 0 16px}
.check-field input{width:18px;height:18px}
.autosave{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:14px;padding:11px;border-radius:12px;background:#e6f5e9;color:#235f31;font-size:13px;font-weight:700}
.autosave.warn{background:#fdf1d6;color:#7f5300}
.autosave .icon{width:17px;height:17px;stroke-width:2.4}
.list{display:flex;flex-direction:column}
.list-row{display:flex;align-items:center;gap:14px;padding:13px 22px;border-top:1px solid #eef2f6;width:100%;text-align:right;background:none}
.list-row:hover{background:#f6f9fc}
.list-row>.icon{width:16px;height:16px;color:#6b7c8c}
.list-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.list-main strong{font-size:14px;color:#1d2f3f}
.list-main small{font-size:12px;color:#5b6773}
.progress-bar.small{height:6px;display:block;max-width:240px}
.progress-bar.small span{display:block}
.search-field{position:relative;flex:1;max-width:440px}
.search-field .icon{position:absolute;right:13px;top:50%;transform:translateY(-50%);width:18px;height:18px;color:#6b8094;pointer-events:none}
.search-field .search-input{width:100%;padding-right:42px;min-height:46px;font-size:14px}
.row-actions{display:flex;gap:14px;justify-content:flex-end}
.patients-table td,.patients-table th{white-space:nowrap}
.bars{display:flex;flex-direction:column;gap:16px;padding:4px 24px 24px}
.bar-label{display:flex;justify-content:space-between;align-items:baseline;gap:10px;font-size:14px;margin-bottom:6px;color:#1d2f3f}
.bar-label small{color:#566573;font-size:12px}
.bar-track{height:10px;background:#edf2f7;border-radius:999px;overflow:hidden}
.bar-track span{display:block;height:100%;background:linear-gradient(270deg,#3d8fd8,#1f6fb5);border-radius:inherit}
.bar-track.alt span{background:linear-gradient(270deg,#5cc27b,#2f9a3e)}
.report-progress{padding:0 24px 24px}
.report-progress strong{font:800 36px Clinic,sans-serif;color:#1a5f9e;display:block;margin-bottom:8px}
.report-progress small{display:block;margin-top:8px;font-size:13px;color:#566573}
.modal-subtitle{font-size:15px;margin:20px 0 10px}
.record-notes{display:flex;flex-direction:column;gap:10px}
.record-note{display:flex;align-items:center;gap:12px;padding:10px 12px;border:1px solid #e6edf3;border-radius:12px}
.record-note>div{flex:1;min-width:0}
.record-note strong{display:block;font-size:13px}
.record-note small{font-size:12px;color:#5b6773}
@media(max-width:1300px){.clinical-grid{grid-template-columns:minmax(0,1fr) 330px}.patient-details .detail{padding:0 16px}}
@media(max-width:1200px){.app-shell{grid-template-columns:232px minmax(0,1fr)}.workspace{padding:22px}.topbar{padding:0 22px}h1{font-size:30px}}
@media(max-width:1100px){.clinical-grid{grid-template-columns:1fr}}
@media(max-width:800px){.app-shell{grid-template-columns:1fr}.sidebar{width:262px}}
@media(max-width:620px){h1{font-size:26px}.page-heading p{font-size:13px}.workspace{padding:16px 12px}.chart-head{flex-wrap:wrap;padding:16px}.chart-header-left{width:100%;justify-content:space-between}.chart-view-switch button{padding:7px 10px;font-size:13px}.chart-body{padding:0 8px 10px}.arch-label{font-size:21px}.arch-svg .arch-tooth.selected .arch-label{font-size:26px}.jaw-tag{font-size:11px;padding:3px 9px;gap:5px}.jaw-tag .icon{width:13px;height:13px}.tooth-focus{font-size:13px;padding:5px 12px}.tooth-focus .icon{width:16px;height:16px}.chart-foot{padding:12px}.chart-foot .legend{gap:12px;font-size:12px}.selection-card{padding:18px}.list-row{padding:12px 14px;gap:10px}.bars{padding:4px 16px 18px}.stat strong{font-size:22px}.tooth-summary,.surfaces-body{grid-template-columns:minmax(0,1fr) 92px}}
.patient-name{flex-shrink:0}
.patient-name h2,.patient-name p{white-space:nowrap}
.detail-value{white-space:nowrap}
@media(max-width:1300px){.selection-top h2{font-size:17px}.selection-top .number{font-size:34px}}
@media(max-width:1300px){.patient-details{margin-right:12px}.detail-value{font-size:14px}}
@media(max-width:1200px){.sidebar{padding-inline:12px}.brand-name{font-size:21px}.brand img{width:46px;height:46px}.nav-item{font-size:14px;padding:10px 12px;gap:11px}.demo-card{font-size:12px;padding:15px 13px}.demo-card strong{font-size:14px}.doctor strong{font-size:14px}}
@media(max-width:1000px){.app-shell{grid-template-columns:200px minmax(0,1fr)}.brand-name{font-size:18px}.brand img{width:38px;height:38px}.nav-item{font-size:13px;padding:10px 9px;gap:9px}.nav-item .icon{width:18px;height:18px}.demo-card{display:none}}
@media(max-width:800px){.sidebar{width:262px}.brand-name{font-size:23px}.brand img{width:50px;height:50px}.nav-item{font-size:15px;padding:11px 14px;gap:13px}.nav-item .icon{width:20px;height:20px}.demo-card{display:block}}
@media(max-width:620px){.patient-name h2{font-size:17px}.patient-name p{font-size:12px}.avatar.large{width:46px;height:46px;font-size:18px}.patient-actions .pill{font-size:11px;padding:5px 10px}}
.role-badge{display:inline-flex;align-items:center;gap:7px;padding:5px 12px;border-radius:10px;font-size:13px;font-weight:800;border:1px solid;white-space:nowrap;line-height:1.4}
.role-badge .icon{width:18px;height:18px}
.role-badge.role-doctor{background:#e3f0fc;color:#1a5c99;border-color:#c5def5}
.role-badge.role-assistant{background:#e2f5e6;color:#1f6136;border-color:#bfe5c8}
.role-badge.role-reception{background:#efe9fb;color:#5536a8;border-color:#d9cdf5}
.role-badge.role-accountant{background:#fdf0d5;color:#744a00;border-color:#f3d9a4}
.avatar.role-doctor{background:#e3f0fc;color:#1a5c99}
.avatar.role-assistant{background:#e2f5e6;color:#1f6136}
.avatar.role-reception{background:#efe9fb;color:#5536a8}
.avatar.role-accountant{background:#fdf0d5;color:#744a00}
.doctor .avatar.role-doctor{background:#2b64a6;color:#fff}
.doctor .avatar.role-assistant{background:#2f7d47;color:#fff}
.doctor .avatar.role-reception{background:#6a4cc2;color:#fff}
.doctor .avatar.role-accountant{background:#9a6510;color:#fff}
button.doctor{width:100%;text-align:right;color:inherit;background:none;cursor:pointer;padding:16px 8px 8px;border-radius:0}
button.doctor:hover{background:#1b3b63}
.doctor-text{flex:1;min-width:0}
.doctor-text strong,.doctor-text small{display:block}
.top-role{cursor:pointer;font-size:12px;padding:4px 10px}
.top-role .icon{width:16px;height:16px}
.top-role:hover{filter:brightness(.97);box-shadow:0 2px 8px #12294a14}
.role-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}
.role-card{background:#fff;border:1px solid #e2e9f1;border-radius:18px;padding:18px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:10px}
.role-card-top{display:flex;justify-content:space-between;align-items:center;gap:8px}
.role-count{font-size:13px;color:#566573;font-weight:700}
.role-card p{font-size:13px;color:#3f4f5e;line-height:1.7}
.role-card ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.role-card li{display:inline-flex;align-items:center;gap:5px;font-size:12px;color:#1d2f3f;background:#f3f7fb;border-radius:8px;padding:3px 8px}
.role-card li .icon{width:13px;height:13px;color:#2f9a3e;stroke-width:2.6}
.users-table td{white-space:nowrap}
.username{color:#3f4f5e;font-size:13px}
.role-preview{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:#f4f8fc;border:1px solid #e1eaf3;border-radius:12px;padding:10px 12px;font-size:13px;color:#33475a;margin-bottom:8px}
.user-choices{display:flex;flex-direction:column;gap:8px}
.user-choice{display:flex;align-items:center;gap:12px;padding:10px 12px;border:1px solid #e3eaf1;border-radius:14px;width:100%;text-align:right;background:#fff}
.user-choice:hover{border-color:#9cc4ea;background:#f6faff}
.user-choice.current{border-color:#2f7fca;box-shadow:0 0 0 2px #cfe3f7}
@media(max-width:1200px){.role-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.role-grid{grid-template-columns:1fr}.top-role{padding:3px 8px;font-size:11px;gap:5px}.top-role .icon{width:14px;height:14px}.user-choice .role-badge{display:none}.breadcrumbs>span,.breadcrumbs>.icon:nth-of-type(2){display:none}.topbar{gap:8px}.breadcrumbs{flex:1;min-width:0}.breadcrumbs strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.top-tools{flex-shrink:0;gap:6px}.top-tools [data-action="help"]{display:none}.page-heading:has(.h1-icon){flex-wrap:wrap}.page-heading:has(.h1-icon) .actions{max-width:none;width:100%;flex-wrap:wrap;justify-content:flex-start}.page-heading:has(.h1-icon) .actions .secondary{display:inline-flex}}
.h1-icon{display:inline-flex;vertical-align:middle;margin-left:12px;color:#2a78c2}
.h1-icon .icon{width:38px;height:38px}
.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(205px,1fr));gap:16px;margin-bottom:22px}
.kpi{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff;border:1px solid #e2e9f1;border-radius:18px;padding:18px 20px;box-shadow:var(--shadow);min-width:0}
.kpi-text{display:flex;flex-direction:column;gap:4px;min-width:0}
.kpi-label{font-size:14px;font-weight:700;color:#33475a}
.kpi-value{font:800 25px Clinic,sans-serif;color:#1d2f3f;display:flex;align-items:baseline;gap:6px;white-space:nowrap}
.kpi-value .currency{font-size:15px;color:#33475a;font-weight:700}
.kpi-note{font-size:12px;color:#566573}
.kpi-note.up{color:#21733a;font-weight:700}
.kpi-note.down{color:#b3261e;font-weight:700}
.kpi-icon{width:54px;height:54px;border-radius:15px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.kpi-icon .icon{width:27px;height:27px}
.kpi-icon.violet{background:#efe9fb;color:#6a4cc2}
.kpi-icon.blue{background:#e3f0fc;color:#1f6fb5}
.kpi-icon.green{background:#e2f5e6;color:#2f8a4a}
.kpi-icon.red{background:#fde8e6;color:#c0392b}
.kpi-icon.mint{background:#e3f6ec;color:#2f9a5e}
.accounting-grid{display:grid;grid-template-columns:minmax(0,1fr) 390px;gap:22px;align-items:start}
.ledger-tabs{display:flex;gap:8px;padding:16px 18px 10px;flex-wrap:wrap}
.ledger-tab{display:inline-flex;align-items:center;gap:8px;padding:9px 16px;border:1px solid #dbe4ec;border-radius:11px;font-size:14px;font-weight:700;color:#33475a;background:#fff}
.ledger-tab .icon{width:19px;height:19px}
.ledger-tab:hover{border-color:#9cc4ea}
.ledger-tab.active{background:linear-gradient(180deg,#2475bd,#1a60a3);color:#fff;border-color:#1a60a3;box-shadow:0 6px 14px #1d64a82b}
.ledger-filters{display:flex;gap:10px;padding:6px 18px 14px;flex-wrap:wrap;align-items:center}
.ledger-filters .search-field{flex:1 1 220px;max-width:none}
.filter-chip{display:inline-flex;align-items:center;gap:6px;border:1px solid #d8e2ec;border-radius:11px;padding:0 10px;min-height:46px;font-size:13px;color:#33475a;background:#fff;cursor:pointer}
.filter-chip .icon{width:18px;height:18px;color:#5d7287}
.filter-chip select{border:0;background:none;font:inherit;font-weight:700;color:#1d2f3f;padding:8px 2px;cursor:pointer}
.ledger-filters .round-btn{width:46px;height:46px;border-radius:11px}
.ledger-table th{white-space:nowrap}
.ledger-table td{white-space:nowrap;font-size:13px;padding-block:11px}
.ledger-desc strong{display:block;font-weight:700;color:#1d2f3f;max-width:240px;overflow:hidden;text-overflow:ellipsis}
.ledger-desc small{font-size:11px;color:#566573}
.ledger-table .patient-cell .avatar{width:32px;height:32px;font-size:12px;border-radius:50%}
.type-badge{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:9px;font-size:12px;font-weight:800}
.type-badge .icon{width:15px;height:15px}
.type-badge.invoice{background:#e3f0fc;color:#1a5c99}
.type-badge.payment{background:#e2f5e6;color:#1f6136}
.type-badge.expense{background:#fde8e6;color:#9b2c22}
.ledger-amount{font:700 14px Clinic,sans-serif;direction:ltr;unicode-bidi:isolate;display:inline-block;color:#1d2f3f}
.ledger-amount.neg{color:#b3261e}
.state-pill{display:inline-flex;align-items:center;gap:5px;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:800;border:1px solid}
.state-pill .icon{width:13px;height:13px;stroke-width:2.6}
.state-pill.paid,.state-pill.received{background:#e6f5e9;color:#1f6136;border-color:#bfe5c8}
.state-pill.partial{background:#fdf0d5;color:#744a00;border-color:#f3d9a4}
.state-pill.due{background:#fde8e6;color:#9b2c22;border-color:#f5c6c1}
.state-pill.approved{background:#eaf3fc;color:#1a5c99;border-color:#c5def5}
.more-btn{width:36px;height:30px;border:1px solid #dde5ee;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;color:#33475a;background:#fff}
.more-btn:hover{border-color:#9cc4ea;background:#f6faff}
.more-btn .icon{width:18px;height:18px;stroke-width:3.4}
.ledger-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px 16px;flex-wrap:wrap;font-size:13px;color:#566573;border-top:1px solid #eef2f6}
.pager{display:flex;align-items:center;gap:6px}
.pager button{min-width:38px;height:38px;border:1px solid #dde5ee;border-radius:10px;background:#fff;font-weight:800;color:#33475a;display:inline-flex;align-items:center;justify-content:center;padding:0 8px}
.pager button .icon{width:16px;height:16px}
.pager button.current{background:#1f6fb5;color:#fff;border-color:#1f6fb5}
.pager button:disabled{opacity:.45}
.pager-gap{color:#566573;padding:0 2px}
.page-size{display:inline-flex;align-items:center;gap:6px}
.page-size select{border:1px solid #dde5ee;border-radius:9px;padding:6px 8px;font:inherit;font-weight:700;background:#fff}
.with-icon{display:flex;align-items:center;gap:10px}
.with-icon .icon{width:24px;height:24px;color:#2a78c2}
.donut-wrap{display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:14px;align-items:center;padding:0 20px 20px}
.donut-legend{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.donut-legend li{display:flex;align-items:center;gap:8px;font-size:13px;color:#26394a}
.donut-legend i{width:11px;height:11px;border-radius:50%;flex-shrink:0}
.donut-legend span{flex:1}
.donut-legend b{font-weight:700;color:#33475a}
.donut svg{width:100%;height:auto;display:block}
.donut-center{font:800 19px Clinic,sans-serif;fill:#1d2f3f;text-anchor:middle}
.donut-cur{font:700 12px Clinic,sans-serif;fill:#566573;text-anchor:middle}
.bars-chart{padding:0 14px 16px}
.bars-chart svg{width:100%;height:auto;display:block}
.bars-chart .axis{font:600 10px Clinic,sans-serif;fill:#566573}
.bars-chart .grid{stroke:#e8eef4}
.chart-legend{display:flex;justify-content:center;flex-wrap:wrap;gap:16px;font-size:12px;color:#33475a;margin-top:8px}
.chart-legend i{display:inline-block;width:10px;height:10px;border-radius:50%;margin-left:6px;vertical-align:-1px}
.balance-list{display:flex;flex-direction:column;padding:0 20px 6px}
.balance-row{display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px solid #eef2f6;font-size:14px;color:#26394a}
.balance-row:first-child{border-top:0}
.balance-row>.icon{width:22px;height:22px;color:#5d7287}
.balance-row span{flex:1}
.balance-row strong{font:800 15px Clinic,sans-serif;color:#1d2f3f;display:flex;gap:5px;align-items:baseline}
.balance-row.total{font-weight:800}
.card-note{font-size:12px;color:#566573;padding:4px 20px 16px;line-height:1.7}
.field-label{font-size:14px;font-weight:700;color:#2a3d4e;padding:0;margin-bottom:6px}
.plain-fieldset{border:0;padding:0;margin:0 0 14px;min-width:0}
.invoice-items{display:flex;flex-direction:column;gap:8px;max-height:240px;overflow:auto;border:1px solid #e3eaf1;border-radius:12px;padding:10px}
.invoice-item{display:flex;align-items:center;gap:10px;font-size:13px;cursor:pointer}
.invoice-item input{width:18px;height:18px;accent-color:#1f6fb5;margin:0}
.invoice-item span{flex:1}
.totals-box{display:flex;flex-direction:column;gap:6px;background:#f4f8fc;border:1px solid #e1eaf3;border-radius:12px;padding:12px 14px;margin:12px 0;font-size:13px}
.totals-box div{display:flex;justify-content:space-between;gap:10px}
.totals-box .grand{font-weight:800;font-size:15px;border-top:1px solid #dbe5ee;padding-top:6px}
.doc-meta{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:4px 0 14px;font-size:13px}
.doc-meta span{display:block;color:#566573;font-size:12px}
.doc-meta strong{font-size:14px;color:#1d2f3f}
.ledger-table td,.ledger-table th{padding-inline:11px}
@media(max-width:1500px){.kpi{padding:16px}.kpi-icon{width:44px;height:44px;border-radius:13px}.kpi-icon .icon{width:22px;height:22px}.kpi-value{font-size:22px}.kpi-label{font-size:13px}}
.ledger-table td.ledger-desc,.ledger-table td:nth-child(4){white-space:normal;min-width:130px}
.ledger-table td:nth-child(4) .patient-cell{min-width:140px}
@media(max-width:1600px){.accounting-grid{grid-template-columns:1fr}.accounting-grid>.section-stack{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}}
@media(max-width:900px){.accounting-grid>.section-stack{grid-template-columns:1fr}}
@media(max-width:620px){.kpis{grid-template-columns:1fr 1fr;gap:10px}.kpi{padding:13px;flex-direction:column-reverse;align-items:flex-start}.kpi-value{font-size:19px}.kpi-icon{width:40px;height:40px;border-radius:12px}.kpi-icon .icon{width:21px;height:21px}.h1-icon .icon{width:28px;height:28px}.ledger-tabs{padding:12px}.ledger-tab{padding:8px 11px;font-size:13px}.ledger-filters{padding:4px 12px 12px}.filter-chip{flex:1 1 auto}.donut-wrap{grid-template-columns:minmax(0,1fr) 120px;padding:0 14px 16px}.ledger-foot{padding:12px}}
.report-filters{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:14px 16px;margin-bottom:20px}
.filter-chip.date-range input{border:0;background:none;font:inherit;font-weight:700;color:#1d2f3f;padding:6px 2px;min-height:0;cursor:pointer}
.reset-filters{display:inline-flex;align-items:center;gap:6px;margin-right:auto;font-size:14px;font-weight:700}
.reset-filters .icon{width:16px;height:16px}
.report-note{font-size:12px;color:#566573;margin:-10px 0 18px}
.report-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-bottom:20px;align-items:start}
.kpi-icon.amber{background:#fdf0d5;color:#9a6510}
.kpi-icon.teal{background:#dcf4f0;color:#13796d}
.donut-icon path{fill:none;stroke:#2f6fa8;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.profit-line{fill:none;stroke:#2fa35a;stroke-width:2.4;stroke-linejoin:round}
.profit-dot{fill:#fff;stroke:#2fa35a;stroke-width:2.2}
.top-table td,.top-table th{padding-inline:12px;font-size:13px}
.rank{display:inline-flex;width:24px;height:24px;border-radius:7px;background:#eef3f8;align-items:center;justify-content:center;font-weight:800;font-size:12px;color:#33475a}
.quick-reports{display:grid;grid-template-columns:repeat(auto-fill,minmax(84px,1fr));gap:10px;padding:0 16px 18px}
.quick-report{display:flex;flex-direction:column;align-items:center;gap:8px;padding:14px 6px;border:1px solid #e3eaf1;border-radius:14px;background:#fbfdff;font-size:13px;font-weight:700;color:#26394a;text-align:center;line-height:1.4;transition:transform .15s,border-color .15s}
.quick-report:hover{border-color:#9cc4ea;background:#f3f8fe;transform:translateY(-1px)}
.quick-report .kpi-icon{width:44px;height:44px;border-radius:12px}
.quick-report .kpi-icon .icon{width:22px;height:22px}
.recent-reports{display:flex;flex-direction:column;padding:0 16px 14px}
.recent-row{display:flex;align-items:center;gap:12px;padding:11px 4px;border-top:1px solid #eef2f6}
.recent-row:first-child{border-top:0}
.recent-row>.icon{width:22px;height:22px;color:#5d7287;flex-shrink:0}
.format-badge{font:800 11px Clinic,sans-serif;padding:3px 9px;border-radius:7px;letter-spacing:.5px}
.format-badge.pdf{background:#fde8e6;color:#9b2c22}
.format-badge.csv{background:#e2f5e6;color:#1f6136}
.export-menu{position:relative}
.export-menu summary{list-style:none;cursor:pointer}
.export-menu summary::-webkit-details-marker{display:none}
.export-menu summary .icon:last-child{width:16px;height:16px}
.export-options{position:absolute;top:calc(100% + 6px);left:0;min-width:200px;background:#fff;border:1px solid #e3eaf1;border-radius:12px;box-shadow:0 12px 30px #12294a24;padding:6px;z-index:30;display:flex;flex-direction:column}
.export-options button{display:flex;align-items:center;gap:8px;padding:10px;border-radius:8px;font-size:14px;font-weight:700;color:#26394a;text-align:right;width:100%}
.export-options button:hover{background:#f1f6fb}
.export-options .icon{width:18px;height:18px;color:#2a78c2}
.report-preview{max-height:52vh;overflow:auto;border:1px solid #e6edf3;border-radius:12px;margin-bottom:8px}
.report-preview td,.report-preview th{white-space:nowrap;font-size:12px;padding:8px 12px}
@media(max-width:1400px){.report-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.report-grid{grid-template-columns:1fr}}
@media(max-width:620px){.report-filters{padding:12px}.filter-chip.date-range{flex-wrap:wrap;width:100%}.reset-filters{margin-right:0}.quick-reports{padding:0 12px 14px}.report-note{margin-top:-4px}}
dialog.wide{width:min(760px,calc(100vw - 32px))}
.feature-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}
.feature-card{display:flex;gap:12px;align-items:flex-start;padding:14px;border:1px solid #e3eaf1;border-radius:14px;background:#fbfdff}
.feature-card .kpi-icon{width:42px;height:42px;border-radius:12px}
.feature-card .kpi-icon .icon{width:21px;height:21px}
.feature-card h3{font-size:15px;font-weight:800;margin-bottom:4px;color:#1d2f3f}
.feature-card p{font-size:13px;color:#3f4f5e;line-height:1.7}
.feature-card .text-btn{margin-top:8px;display:inline-flex;gap:6px;align-items:center;font-size:13px;font-weight:700}
.feature-card .text-btn .icon{width:15px;height:15px}
@media(max-width:620px){.feature-grid{grid-template-columns:1fr}}
@media print{body{background:white;font-size:12px}.sidebar,.topbar,.page-heading,.patient-bar,.page-footer,.actions,.btn,.toast,dialog,.no-print,.mobile-shade{display:none!important}.app-shell,.two-column,.section-stack{display:block}.workspace{padding:0}.card{border:0;border-radius:0;break-inside:avoid}.print-only{display:block}.invoice-header{padding:0 0 20px}.invoice-header .pill{display:inline-flex!important}.summary-card{margin-top:15px;border-top:1px solid #ddd}.payment-history{padding:0}.card-head{padding:15px 0}.data-table th,.data-table td{padding:10px}.summary-card .btn{display:none}.helper-card{display:none}.invoice-header:before{content:'نموذج تجريبي — ليس فاتورة ضريبية';display:block;font-size:10px;color:#999}.stat{display:none}a{text-decoration:none}}
.check-field{display:flex;align-items:center;gap:8px;font-size:11px;color:#65798b;margin:-2px 0 15px;cursor:pointer}.check-field input{width:15px;height:15px;margin:0;accent-color:var(--green);flex-shrink:0}
.invoice-meta{flex-wrap:wrap;row-gap:14px}
.data-table .tax-col{padding-inline:8px;white-space:nowrap}
.stat.featured .currency{color:#8fa1b0}
@media print{body.printing-doc .app-shell,body.printing-doc .toast{display:none!important}body.printing-doc dialog#modal{display:block!important;position:static;max-width:none;width:auto;max-height:none;box-shadow:none;border:0;padding:0;margin:0}body.printing-doc dialog#modal .modal-actions,body.printing-doc #close-modal{display:none!important}}
@media print{.reports-page .page-heading{display:block!important;margin-bottom:12px}.reports-page .page-heading .actions,.report-filters,.quick-card,.recent-card{display:none!important}.report-grid{display:block}.report-grid>.card{break-inside:avoid;margin-bottom:12px}}
