/* Modern Dentoceramic: preserves the existing chart, forms and data bindings. */
:root{--bg:#eff5f9;--surface:#fff;--surface2:#f5f9fc;--ink:#193b50;--muted:#7b93a3;--line:#d4e3ed;--accent:#177fb4;--teal:#177fb4;--dark:#112f43;--radius:12px}body{background:var(--bg);font-family:'Segoe UI',Arial,sans-serif}body.dark{--bg:#102635;--surface:#183446;--surface2:#1c3c50;--ink:#dceaf2;--muted:#8ca9bb;--line:#2c4c60;--accent:#5ab1d9;--teal:#218ab8;--dark:#0c202e}body:not(.dark){--surface:#fff;--surface2:#f5f9fc;--ink:#193b50;--muted:#7b93a3;--line:#d4e3ed;--accent:#177fb4;--teal:#177fb4}
#workspace{grid-template-columns:238px minmax(0,1fr)!important;height:100dvh!important;min-height:0!important;overflow:hidden!important;background:var(--bg)!important}#workspace[hidden]{display:none!important}#workspace .sidebar{height:100dvh!important;background:#112f43!important;padding:28px 18px!important;border:0!important;color:#b2cad7!important;overflow-y:auto}#workspace .side-logo{height:118px!important;margin:0 5px 28px!important;border-radius:15px!important;background:#fff!important;box-shadow:none!important;border:0!important}#workspace .side-logo img{width:155px!important;height:100px!important;object-fit:contain!important;max-height:100px!important}#workspace .side-section{font-size:9px!important;letter-spacing:1.5px!important;color:#7c9aac!important;padding-inline:13px!important;margin-bottom:14px!important}#workspace .workspace-nav{gap:7px!important;display:grid!important}#workspace .modern-nav-item{display:flex!important;align-items:center!important;gap:12px!important;border:0!important;border-radius:9px!important;background:none!important;color:#b4ccd9!important;font-size:12px!important;font-weight:500!important;padding:12px 13px!important;min-height:43px!important;text-align:left!important;line-height:1.4!important;box-shadow:none!important;white-space:normal!important}#workspace .modern-nav-item[hidden]{display:none!important}#workspace .modern-nav-item:before{display:none!important}#workspace .modern-nav-item svg{width:19px;height:19px;flex-shrink:0}#workspace .modern-nav-item.nav-current{background:#224d64!important;color:#fff!important;box-shadow:inset 3px 0 0 #67c4ec!important}#workspace .sidebar>.lab-editorial{display:none!important}#workspace .side-bottom{padding:22px 10px 0!important;margin-top:auto!important;border-top:1px solid #2a4a5d!important;color:#a5c3d3!important}#workspace .side-bottom>p{font-size:11px!important;color:#89a9bc!important}#workspace .side-logout{font-size:12px!important;border-color:#315369!important;min-height:39px!important;color:#c3dce8!important}#workspace .main{padding:0 34px 12px!important;max-width:none!important;margin:0!important;height:100dvh!important;min-height:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;gap:0!important;background:var(--bg)!important}#workspace .mobile-brand{display:none!important}.modern-topbar{height:75px;min-height:75px;display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid var(--line);margin-bottom:23px}.modern-breadcrumb{font-size:11px;display:flex;align-items:center;gap:14px;color:var(--muted)}.modern-breadcrumb strong{font-weight:600;color:var(--ink)}.modern-topbar .account{display:flex!important;flex-direction:row!important;gap:12px!important;align-items:center!important;margin:0!important;padding:0!important;flex-wrap:nowrap!important}.modern-topbar .language-picker{position:static!important;display:block!important;font-size:0!important;margin:0!important;max-width:none!important}.modern-topbar .language-picker select{font-size:11px!important;padding:8px!important;height:34px!important;min-height:34px!important;max-width:105px;background:var(--surface);border-color:var(--line)}.modern-topbar .avatar{width:35px!important;height:35px!important;background:#e3f1fa!important;color:#2484b7!important;border-radius:10px!important;font-size:12px!important}.modern-topbar #username{font-size:12px!important;color:var(--ink)}.modern-topbar #user-role{font-size:10px!important;color:var(--muted)}.modern-topbar .dental-theme-picker{position:static!important;display:flex!important;gap:3px!important;padding:0!important;border:0!important;background:none!important}.modern-topbar .dental-theme-picker button{width:30px!important;height:30px!important;min-width:30px!important;border-radius:6px!important}.modern-topbar #account-open{font-size:24px!important;padding:3px!important;min-width:28px!important}.modern-heading-actions{display:flex;align-items:center;gap:10px}
#workspace .page-header{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:15px!important;margin:0 0 22px!important;min-height:65px!important;padding:0!important;flex:0 0 auto!important}#workspace .page-header h1{font-size:28px!important;letter-spacing:-.8px!important;color:var(--ink)!important;line-height:1.2!important;margin:0!important}#workspace .page-header .eyebrow{font-size:9px!important;letter-spacing:1.4px!important;margin:0 0 8px!important;color:#4293b9!important;display:block!important}#workspace .page-header .muted{font-size:12px!important;margin-top:8px!important;color:var(--muted)!important;line-height:1.5!important;display:block!important}#workspace #new-case{display:inline-flex!important;background:#177fb4!important;border:1px solid #177fb4!important;border-radius:8px!important;color:white!important;min-height:39px!important;padding:10px 15px!important;font-size:12px!important;gap:8px!important;white-space:nowrap!important;box-shadow:0 4px 12px #167fb41c!important}#workspace #new-case:before{width:15px!important;height:15px!important;background:white!important}
#workspace .stats{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px!important;margin:0 0 22px!important;flex:0 0 auto!important;height:148px!important;min-height:148px!important;max-height:148px!important;overflow:visible!important;align-items:stretch!important;padding:0!important}#workspace .stats[hidden]{display:none!important}#workspace .stats article{height:148px!important;min-height:148px!important;max-height:148px!important;min-width:0!important;background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:12px!important;padding:19px 17px!important;box-shadow:0 3px 15px #163b5403!important;display:block!important;position:relative!important;overflow:hidden!important}#workspace .stats article>.stat-icon{width:33px!important;height:33px!important;min-width:33px!important;border-radius:10px!important;background:#eaf5fc!important;color:#368bb8!important;position:absolute!important;top:16px!important;right:16px!important;left:auto!important;display:grid!important;place-items:center!important}#workspace .stats article>.stat-icon svg{width:19px!important;height:19px!important}#workspace .stats article>div{display:block!important;width:100%!important;min-width:0!important;padding:0!important}#workspace .stats article>div>p{font-size:11px!important;font-weight:600!important;line-height:1.4!important;margin:0 37px 8px 0!important;padding:0!important;min-height:20px!important;max-width:none!important;color:var(--muted)!important;white-space:normal!important}#workspace .stats #stat-cases{font-size:31px!important;margin:3px 0 7px!important;line-height:1.2!important;color:var(--ink)!important;letter-spacing:-.5px!important}#workspace .case-type-counts{display:flex!important;gap:14px!important;margin-top:5px!important}#workspace .case-type-counts>span{font-size:10px!important;color:var(--muted)!important}.case-type-counts b{font-size:11px!important;margin-left:5px!important}#workspace .delivery-counts{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;margin-top:18px!important;align-items:start!important}#workspace .delivery-counts>div{display:flex!important;flex-direction:column-reverse!important;align-items:flex-start!important;justify-content:flex-end!important;min-width:0!important;border:0!important;padding:0 0 0 9px!important;border-left:1px solid var(--line)!important;height:60px!important}#workspace .delivery-counts>div:first-child{border:0!important;padding-left:0!important}#workspace .delivery-counts strong{font-size:26px!important;line-height:1!important;margin:0 0 8px!important;letter-spacing:-.6px!important;color:var(--ink)!important;display:block!important}#workspace .delivery-counts span{font-size:9px!important;line-height:1.25!important;min-height:22px!important;white-space:normal!important;color:var(--muted)!important;text-align:left!important}#workspace .delivery-summary #today-label{display:none!important}#workspace .designer-summary #stat-designed{font-size:23px!important;margin:0 0 4px!important;line-height:1.2!important}#workspace .designer-summary>div>small{display:none!important}#workspace .designer-summary #designer-totals{display:flex!important;flex-wrap:wrap!important;gap:2px 11px!important;overflow:hidden!important;max-height:61px!important;margin-top:6px!important;align-content:flex-start!important}#workspace .designer-summary .designer-total{flex:1 1 calc(50% - 11px)!important;min-width:0!important;padding-bottom:2px!important;font-size:11px;line-height:1.25!important;border:0!important;display:flex!important;justify-content:space-between!important;gap:6px!important}#workspace .designer-summary .designer-total span{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;font-size:inherit!important}.designer-total b{font-size:inherit!important}#workspace .priority-counts{display:flex!important;gap:15px!important;margin:9px 0!important}#workspace .priority-counts>span{display:flex!important;flex-direction:column-reverse!important;align-items:flex-start!important;background:none!important;border:0!important;border-radius:0!important;padding:0!important;font-size:10px!important;line-height:1.4!important;color:var(--muted)!important;flex:1!important}#workspace .priority-counts strong{font-size:27px!important;line-height:1.1!important;margin-bottom:5px!important;color:var(--ink)!important}#workspace .priority-counts .urgent-count strong{color:#bd8c4e!important}#workspace .annual-bar{height:4px!important;margin:5px 0!important;display:flex!important}#workspace #annual-period{font-size:8px!important;display:block!important;line-height:1.3!important;margin-top:4px!important}#workspace .annual-description{display:none!important}
#workspace .modern-dashboard{display:flex;flex-direction:column;min-height:0;flex:1;gap:20px;overflow:auto;padding-bottom:4px}#workspace .modern-dashboard[hidden]{display:none!important}.modern-dashboard-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(250px,1fr);gap:20px;flex:0 0 auto}.modern-hero{border:1px solid #bdd8e7;border-radius:12px;background:linear-gradient(110deg,#dfedf5,#eaf6fb);padding:25px 27px;display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:180px}.modern-hero h2{font-size:23px;color:#22475c;letter-spacing:-.6px;max-width:360px;line-height:1.3}.modern-hero p{font-size:12px;color:#6e91a4;margin-top:9px;line-height:1.7}.modern-hero .eyebrow{color:#4293b9;font-size:9px;font-weight:700;letter-spacing:1.4px}.modern-hero-actions{display:flex;gap:10px;margin-top:20px}.modern-hero-actions button{padding:10px 13px;font-size:11px;min-height:38px}.modern-dental-mark{color:#71a9c0;opacity:.85}.modern-dental-mark svg{width:82px;height:82px}.modern-delivery-card,.modern-recents{background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:12px!important;box-shadow:none!important;min-width:0}.modern-delivery-card>.card-heading{padding:19px 21px!important;border-bottom:1px solid var(--line)}.modern-delivery-card h2,.modern-recents h2{font-size:15px!important;color:var(--ink)}.modern-delivery-card svg{color:#5e91aa}.modern-delivery-item{width:100%;display:grid;grid-template-columns:70px minmax(0,1fr) auto;gap:7px;background:none;border:0;border-bottom:1px solid var(--line);padding:11px 17px;text-align:left;color:var(--ink);align-items:center}.modern-delivery-item:last-child{border:0}.modern-delivery-id{font-size:10px;color:var(--accent)}.modern-delivery-item strong{font-size:11px;font-weight:600;overflow:hidden;text-overflow:ellipsis}.modern-delivery-item small{color:var(--muted);font-size:10px}.modern-recents{flex:1 0 auto}.modern-recents>.card-heading{padding:18px 21px!important}.modern-recents p{font-size:11px;color:var(--muted);margin-top:6px}.modern-recent-scroll{overflow:auto}.modern-recents table{width:100%;white-space:nowrap;border-collapse:collapse}.modern-recents th{background:var(--surface2)!important;color:var(--muted)!important;font-size:10px!important;text-align:left!important;padding:12px 17px!important;letter-spacing:.3px!important}.modern-recents td{padding:11px 17px!important;text-align:left!important;color:var(--ink)!important;font-size:12px!important;border-bottom:1px solid var(--line)!important;line-height:1.5!important}.modern-recents td .case-detail-link{font-size:12px!important;color:var(--accent)!important;background:none;border:0;padding:0}.modern-recents .inline-priority{width:auto!important;font-size:11px!important;padding:4px 7px!important;min-height:28px!important}.modern-recents .row-actions{display:flex;gap:6px}.modern-recents .row-actions button{padding:6px 9px!important;min-height:30px!important;font-size:10px!important;width:auto!important;flex:0 0 auto!important;color:var(--accent)!important}.modern-empty{font-size:12px;color:var(--muted);padding:22px;text-align:center}
#workspace .main[data-modern-view="dashboard"] .work-grid,#workspace .main[data-modern-view="account"] .work-grid,#workspace .main[data-modern-view="accounting"] .work-grid{display:none!important}#workspace .main:not([data-modern-view="accounting"]) #accounting-dialog{display:none!important}#workspace .main[data-modern-view="accounting"] #accounting-dialog{display:flex!important;flex:1!important;min-height:0!important;overflow:hidden!important;background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:12px!important}#workspace .main[data-modern-view="accounting"] .modern-heading-actions,#workspace .main[data-modern-view="account"] .modern-heading-actions{display:none!important}#workspace .work-grid{display:flex!important;flex:1!important;min-height:0!important;overflow:hidden!important;gap:0!important}#workspace .case-list{display:flex!important;flex-direction:column!important;flex:1!important;min-height:0!important;background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:12px!important;box-shadow:none!important;overflow:hidden!important}#workspace .case-list>.card-heading{padding:17px 19px!important;min-height:55px!important;border-bottom:1px solid var(--line)!important;flex:0 0 auto!important}#workspace .case-list>.card-heading h2{font-size:16px!important}#workspace .case-list>.card-heading h2:before{display:none!important}#workspace .case-list .exports{display:flex!important;gap:8px!important;flex-wrap:wrap!important}#workspace .exports button{min-height:34px!important;font-size:11px!important;padding:7px 10px!important;border-radius:7px!important}#workspace .case-list>.table-scroll{flex:1!important;min-height:0!important;max-height:none!important;overflow:auto!important;margin:0!important}#workspace .case-list>.table-scroll thead{position:sticky!important;top:0!important;z-index:5!important}#workspace .case-list>.table-scroll th{background:var(--surface2)!important;color:var(--ink)!important;border-color:var(--line)!important;font-size:11px!important;font-weight:650!important;padding:11px 12px!important;text-align:center!important;line-height:1.3!important;position:sticky!important;top:0!important;z-index:5!important}#workspace .case-list>.table-scroll td{border-color:var(--line)!important;font-size:12px!important;padding:7px 11px!important;background:var(--surface)!important;line-height:1.4!important;text-align:center!important}#workspace .case-list>.table-scroll td:first-child{z-index:1!important}#workspace .case-list>.table-scroll th:first-child{z-index:6!important}#workspace .case-list>.table-scroll .case-id-cell{background:var(--surface)!important}#workspace .case-list .search-row{padding:12px 18px!important;background:var(--surface)!important}#workspace .case-list .search-label{height:37px!important;min-height:37px!important;border-radius:8px!important;background:var(--surface2)!important;border-color:var(--line)!important;max-width:420px!important}#workspace .case-list .search-label input{font-size:12px!important;min-height:34px!important;background:none!important}#workspace .case-list .notes-cell .note-text,#workspace .case-list .unit-number-text{max-width:150px!important}#workspace .list-foot{font-size:10px!important;color:var(--muted)!important;background:var(--surface2)!important;padding:9px 18px!important;flex:0 0 auto!important}#workspace .pagination{padding:10px 18px!important;border-top:1px solid var(--line)!important;font-size:11px!important;flex:0 0 auto!important}#workspace .page-foot{padding:11px 0 0!important;font-size:9px!important;color:var(--muted)!important;flex:0 0 auto!important}.modern-account-panel{display:grid;grid-template-columns:minmax(220px,1fr) minmax(0,2fr);gap:22px;flex:1;min-height:0;overflow:auto}.modern-account-panel[hidden]{display:none!important}.modern-profile-card,.modern-settings .card{padding:28px;background:var(--surface);border:1px solid var(--line);border-radius:12px}.modern-profile-card{align-self:start;text-align:center}.modern-big-avatar{display:grid;place-items:center;width:72px;height:72px;border-radius:22px;background:#e3f1fa;color:var(--accent);margin:0 auto 18px;font-size:24px;font-weight:700}.modern-profile-card h2{font-size:23px}.modern-role-tag{display:inline-block;background:#eeebf9;color:#8064b7;border-radius:6px;padding:6px 10px;margin-top:12px;font-size:11px}.modern-profile-card p{font-size:11px;margin:13px 0;color:var(--muted)}.modern-profile-line{display:flex;justify-content:space-between;padding:20px 0;border-block:1px solid var(--line);font-size:12px;color:var(--muted)}.modern-profile-line strong{color:#3f9271}.modern-profile-card>.secondary{margin-top:22px;width:100%}.modern-settings .card{margin-bottom:20px}.modern-settings h2{font-size:16px;margin-bottom:22px}.modern-settings label{display:flex;justify-content:space-between;align-items:center;font-size:12px;margin-top:20px;gap:20px;color:var(--muted)}.modern-settings select{min-width:150px;font-size:12px}.modern-settings p{font-size:12px;color:var(--muted);margin-bottom:20px}.modern-settings button{margin:0 8px 8px 0;font-size:12px}#mobile-summary-toggle{display:none!important}
#workspace #registration-panel:not([hidden]){position:fixed!important;inset:35px max(35px,calc((100vw - 1100px)/2))!important;width:auto!important;max-width:1100px!important;max-height:calc(100dvh - 70px)!important;z-index:50!important;overflow:auto!important;background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:16px!important;padding:25px!important;box-shadow:0 0 0 100vmax #0c2a3e88,0 24px 80px #15374d44!important}#workspace #registration-panel>.card-heading h2{font-size:22px!important}#workspace #registration-panel .fields{gap:16px!important}#workspace #registration-panel .fields>label{font-size:12px!important;color:var(--muted)!important}#workspace #registration-panel .fields input,#workspace #registration-panel .fields select,#workspace #registration-panel textarea{font-size:13px!important;border-color:var(--line)!important;border-radius:8px!important;background:var(--surface2)!important;color:var(--ink)!important;min-height:39px!important}#workspace #registration-panel .tooth-picker{background:#fff!important;color:#193b50!important}#workspace .primary,.modern-dashboard .primary{border-color:#177fb4!important;background:#177fb4!important;color:#fff!important;border-radius:8px!important}#workspace .secondary{border-color:var(--line)!important;background:var(--surface)!important;color:var(--ink)!important;border-radius:8px!important}dialog{background:var(--surface)!important;border-color:var(--line)!important;color:var(--ink)!important;border-radius:15px!important;padding:27px!important}dialog::backdrop{background:#0c2a3e88!important;backdrop-filter:blur(3px)}dialog h2{font-size:22px!important}dialog input,dialog select{background:var(--surface2)!important;color:var(--ink)!important;border-color:var(--line)!important;font-size:13px!important}#accounting-dialog .accounting-filters{padding:16px!important;border:1px solid var(--line)!important;background:var(--surface2)!important;border-radius:10px!important;gap:12px!important}#accounting-dialog .accounting-filters label{font-size:11px!important;color:var(--muted)!important}#accounting-dialog .accounting-filters input,#accounting-dialog .accounting-filters select{font-size:12px!important;min-height:37px!important}#accounting-dialog .accounting-total{background:#e8f3fa!important;border-color:#c0ddec!important;padding:18px!important;border-radius:10px!important;color:#295770!important}#accounting-dialog #accounting-grand-total{font-size:31px!important;line-height:1.3!important}#accounting-dialog #accounting-cases{overflow:auto!important;min-height:0!important}#accounting-dialog .accounting-client{background:var(--surface)!important;border-color:var(--line)!important;border-radius:9px!important}#accounting-dialog .accounting-case-summary{padding:13px 15px!important}#accounting-dialog .accounting-patient{font-size:12px!important}#accounting-dialog .accounting-case-dates{font-size:10px!important}#accounting-dialog .accounting-charge-tag{font-size:10px!important}#accounting-dialog .accounting-case-amount{font-size:14px!important}
#access{grid-template-columns:1fr 1fr!important;background:var(--bg)!important}#access .access-brand{background:linear-gradient(125deg,#102f43,#1f5065)!important;padding:60px 14%!important;color:#fff!important;min-height:100dvh!important;justify-content:center!important}#access .access-brand>img{width:165px!important;height:145px!important;max-height:145px!important;background:#fff!important;object-fit:contain!important;border-radius:18px!important;padding:10px!important;margin:0 0 43px!important}#access .access-brand h1{font-size:44px!important;line-height:1.15!important;color:#fff!important;letter-spacing:-1.4px!important;margin:12px 0 22px!important;max-width:400px!important}#access .access-brand p{color:#9bbdcb!important;font-size:14px!important;line-height:1.9!important;max-width:370px!important}#access .access-brand .eyebrow{font-size:10px!important;color:#88b9cd!important;letter-spacing:1.7px!important}#access .login-editorial{display:none!important}#access .local-pill{margin-top:30px!important;color:#aacbd9!important;font-size:11px!important}#access .access-panel{background:var(--surface2)!important;padding:60px!important;min-height:100dvh!important}#access .login-card{width:100%!important;max-width:365px!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;border-radius:0!important}#access .login-card h2{font-size:30px!important;letter-spacing:-.6px!important;color:var(--ink)!important;margin:20px 0 12px!important}#access .login-card>.eyebrow{color:var(--accent)!important;font-size:9px!important;letter-spacing:1.2px!important}#access .login-card>.muted{font-size:12px!important;color:var(--muted)!important;margin-bottom:28px!important}#access .login-card label{font-size:12px!important;color:var(--muted)!important;margin-bottom:20px!important}#access .login-card input{background:var(--surface)!important;border-color:var(--line)!important;border-radius:8px!important;font-size:14px!important;padding:13px!important;color:var(--ink)!important;min-height:44px!important}#access .login-card .primary{background:#177fb4!important;border-color:#177fb4!important;font-size:13px!important;min-height:45px!important;border-radius:8px!important}#access .language-picker{position:absolute!important;top:23px!important;right:95px!important;font-size:0!important}#access .language-picker select{font-size:12px!important;min-height:35px!important;padding:8px!important}#access .access-panel>.dental-theme-picker{top:23px!important;right:27px!important}.dark .modern-hero{background:linear-gradient(115deg,#214456,#1b3b4d);border-color:#305367}.dark .modern-hero h2{color:#d8edf7}.dark .modern-hero p{color:#9bb8c8}.dark #accounting-dialog .accounting-total{background:#214456!important;border-color:#305367!important;color:#d8edf7!important}.dark #workspace .stats article>.stat-icon{background:#254a60!important;color:#8ac5e4!important}
/* Shared standalone pages retain their functioning editors and fixed-height workspaces. */
.shell aside{background:#112f43!important;border:0!important}.shell .workspace{background:var(--bg)!important}.shell .panel,.shell .stat{background:var(--surface)!important;border-color:var(--line)!important;border-radius:12px!important;box-shadow:none!important}.shell .stat-icon{background:#eaf5fc!important;color:#368bb8!important}.shell .top h1{font-size:28px!important}.shell .tabs button.primary,.shell .primary{background:#177fb4!important;border-color:#177fb4!important}.shell .top .language-picker{position:static;font-size:0;margin-right:15px}.shell .top .language-picker select{font-size:12px;padding:8px;min-height:34px}.shell .top .account{display:flex;align-items:center;gap:12px}.shell .paper{background:#fff!important;color:#173a50!important}.shell .paper *{--ink:#173a50}.shell .invoice-list .invoice-item{border-color:var(--line)!important}.shell .history{background:var(--surface)!important}.shell .document-area{background:var(--surface2)!important}.shell input,.shell textarea,.shell select{background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important}.topbar>.language-picker{position:static;font-size:0;margin-left:auto;margin-right:15px}.topbar>.language-picker select{font-size:11px;padding:8px;min-height:34px}.topbar .profile strong{color:var(--ink)}.app>.sidebar{background:#112f43!important}.app .panel,.app .stat,.app .rolecard{background:var(--surface)!important;border-color:var(--line)!important}.app .main{background:var(--bg)!important}.app th{background:var(--surface2)!important;color:var(--muted)!important}.app td{border-color:var(--line)!important}.app .preview{display:none!important}.app .language-picker{font-size:0}.app .language-picker select{font-size:12px}.app .main .stats:not(:has(#today-card:not([hidden]))){grid-template-columns:repeat(3,minmax(0,1fr))}
@media(min-width:1500px){#workspace .main{padding-inline:48px!important}}@media(max-width:1200px) and (min-width:741px){#workspace{grid-template-columns:205px minmax(0,1fr)!important}#workspace .main{padding-inline:22px!important}#workspace .sidebar{padding-inline:12px!important}#workspace .stats{gap:11px!important}#workspace .stats article{padding:16px 13px!important}#workspace .stats article>.stat-icon{width:26px!important;height:26px!important;right:12px!important;top:13px!important}#workspace .stats article>div>p{font-size:10px!important;margin-right:25px!important}#workspace .delivery-counts{gap:5px!important}#workspace .delivery-counts strong{font-size:22px!important}#workspace .delivery-counts span{font-size:8px!important}.modern-dashboard-grid{grid-template-columns:minmax(0,1.4fr) minmax(220px,1fr);gap:15px}.modern-hero{padding:23px 20px}.modern-dental-mark{display:none}.modern-hero h2{font-size:22px}.modern-delivery-item{grid-template-columns:60px minmax(0,1fr);padding:11px 15px}.modern-delivery-item small{grid-column:2}.modern-delivery-item strong{font-size:11px}}
@media(max-width:740px){#workspace{display:block!important;grid-template-columns:none!important;height:100dvh!important;overflow:hidden!important}#workspace .sidebar{display:none!important}#workspace .main{padding:0 12px 8px!important;height:100dvh!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}.modern-topbar{height:60px;min-height:60px;margin-bottom:10px;gap:8px;order:0}.modern-breadcrumb{font-size:10px;gap:6px;max-width:130px}.modern-breadcrumb>span:first-child,.modern-breadcrumb>span:nth-child(2){display:none}.modern-topbar .account{gap:7px!important}.modern-topbar .dental-theme-picker button{width:26px!important;min-width:26px!important;height:28px!important}.modern-topbar .account>div:has(#username){display:none!important}.modern-topbar .avatar{width:30px!important;height:30px!important;font-size:11px!important}.modern-topbar .language-picker select{max-width:92px!important;min-height:32px!important;font-size:12px!important}.modern-topbar #account-open{min-width:25px!important}.modern-topbar .dental-theme-picker{gap:0!important}#workspace .mobile-workspace-nav{display:flex!important;gap:7px!important;overflow-x:auto!important;overflow-y:hidden!important;flex:0 0 auto!important;background:none!important;border:0!important;padding:0 0 9px!important;margin:0 0 9px!important;min-height:43px!important;order:1;grid-template-columns:none!important;box-shadow:none!important;border-radius:0!important;scrollbar-width:thin}#workspace .mobile-workspace-nav .modern-nav-item{padding:9px 10px!important;min-height:34px!important;flex:0 0 auto!important;background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:7px!important;font-size:10px!important;gap:7px!important;white-space:nowrap!important;color:var(--muted)!important}#workspace .mobile-workspace-nav .modern-nav-item.nav-current{background:#177fb4!important;border-color:#177fb4!important;color:#fff!important;box-shadow:none!important}#workspace .mobile-workspace-nav .modern-nav-item svg{width:15px;height:15px}#workspace .page-header{order:2;min-height:50px!important;margin:0 0 15px!important;gap:10px!important}#workspace .page-header h1{font-size:22px!important;line-height:1.3!important}#workspace .page-header .eyebrow{font-size:8px!important;margin-bottom:5px!important}#workspace .page-header .muted{display:none!important}#workspace #new-case{font-size:11px!important;padding:9px 11px!important;min-height:36px!important}#workspace .stats{order:3;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;height:auto!important;min-height:0!important;max-height:none!important;margin:0 0 15px!important;display:grid!important;overflow:visible!important;flex:0 0 auto!important}#workspace .stats[hidden]{display:none!important}#workspace .stats article{height:126px!important;min-height:126px!important;max-height:126px!important;padding:13px 12px!important;grid-column:auto!important}#workspace .stats article>.stat-icon{width:25px!important;height:25px!important;top:10px!important;right:10px!important}#workspace .stats article>.stat-icon svg{width:15px!important;height:15px!important}#workspace .stats article>div>p{font-size:9px!important;margin-right:24px!important;margin-bottom:6px!important;min-height:17px!important}#workspace .stats #stat-cases{font-size:27px!important;margin:2px 0 5px!important}#workspace .case-type-counts{gap:8px!important;margin-top:5px!important}#workspace .case-type-counts>span{font-size:8px!important}#workspace .case-type-counts b{font-size:9px!important}#workspace .delivery-counts{gap:5px!important;margin-top:17px!important}#workspace .delivery-counts>div{padding-left:5px!important;height:50px!important}#workspace .delivery-counts strong{font-size:21px!important;margin-bottom:7px!important}#workspace .delivery-counts span{font-size:7px!important;min-height:18px!important;line-height:1.25!important}#workspace .designer-summary #stat-designed{font-size:22px!important}#workspace .designer-summary #designer-totals{max-height:48px!important;gap:2px 7px!important;margin-top:3px!important}#workspace .designer-summary .designer-total{font-size:9px;line-height:1.15!important}#workspace .priority-counts{gap:9px!important;margin:7px 0!important}#workspace .priority-counts strong{font-size:24px!important}#workspace .priority-counts>span{font-size:8px!important}#workspace .annual-bar{margin:5px 0!important}#workspace #annual-period{font-size:7px!important;display:none!important}#workspace .modern-dashboard{order:4;flex:1 1 0;min-height:0;gap:15px;overflow:auto!important}.modern-dashboard-grid{grid-template-columns:1fr;gap:15px}.modern-hero{padding:20px 17px;min-height:178px}.modern-hero h2{font-size:21px}.modern-hero p{font-size:11px}.modern-hero-actions{gap:8px;margin-top:18px}.modern-hero-actions button{font-size:10px;padding:9px 10px;min-height:35px}.modern-dental-mark{display:none}.modern-delivery-card{display:none}.modern-recents>.card-heading{padding:16px 13px!important}.modern-recents>.card-heading h2{font-size:14px!important}.modern-recents p{display:none}.modern-recents .text-button{font-size:9px!important}.modern-recents th{font-size:9px!important;padding:10px!important}.modern-recents td{font-size:11px!important;padding:10px!important}.modern-recents .row-actions button{font-size:10px!important;min-height:32px!important}.modern-account-panel{order:4;grid-template-columns:1fr;flex:1;overflow:auto;gap:15px}.modern-profile-card{padding:22px}.modern-big-avatar{height:57px;width:57px;font-size:20px;margin-bottom:12px}.modern-profile-card h2{font-size:21px}.modern-profile-line{padding:15px 0}.modern-settings .card{padding:21px}.modern-settings h2{font-size:15px}.modern-settings select{font-size:16px;min-height:40px}.modern-settings label{font-size:11px}#workspace .work-grid{order:4;flex:1 1 0%!important;min-height:0!important}#workspace .case-list>.card-heading{padding:11px 12px!important;min-height:0!important}#workspace .case-list>.card-heading>div:first-child{display:none!important}#workspace .case-list .exports{margin:0!important;display:flex!important;width:100%!important;justify-content:flex-end!important;gap:6px!important}#workspace .exports button{min-height:34px!important;font-size:10px!important;padding:6px 8px!important}#workspace #retainers-open{display:none!important}#workspace .case-list .search-row{padding:9px 0!important}#workspace .mobile-list-controls{padding:0 10px 8px!important;background:var(--surface)!important}#workspace .case-list .search-label{max-width:none!important;width:100%!important;min-height:38px!important;height:38px!important}#workspace .case-list .search-label input{font-size:16px!important;min-height:35px!important}#workspace .case-list .mobile-sort{padding:0!important;font-size:10px!important}#workspace .case-list .mobile-sort select{font-size:16px!important;min-height:35px!important}#workspace .case-list>.table-scroll{margin:0 9px!important;overflow-x:hidden!important}#workspace .case-list>.table-scroll:not(:has(.retainers-table)) thead{display:none!important}#workspace .case-list>.table-scroll td{background:transparent!important;padding:0!important;font-size:12px!important}#workspace .table-scroll table:not(.retainers-table) tbody tr:not(.case-expanded){background:var(--surface2)!important;border:1px solid var(--line)!important;border-radius:9px!important;padding:12px!important;margin-bottom:9px!important;gap:5px 8px!important}#workspace .table-scroll table:not(.retainers-table) tbody tr:not(.case-expanded)>td[data-case-column="1"] .case-detail-link{font-size:14px!important;color:var(--ink)!important;font-weight:600!important}#workspace .table-scroll table:not(.retainers-table) tbody tr:not(.case-expanded)>td[data-case-column="0"] .case-detail-link{font-size:12px!important;color:var(--accent)!important;line-height:28px!important;min-height:28px!important}#workspace .table-scroll .inline-priority{width:100px!important;min-height:36px!important;font-size:16px!important}#workspace .case-list>.table-scroll .retainers-table tbody tr{background:var(--surface2)!important;border:1px solid var(--line)!important;border-radius:9px!important;padding:13px!important}#workspace .case-list>.table-scroll .retainers-table td{padding:6px!important}#workspace .main[data-modern-view="accounting"] #accounting-dialog{order:4;min-height:0!important}#accounting-dialog .accounting-filters{display:grid!important;grid-template-columns:1fr 1fr!important;gap:9px!important;padding:11px!important}#accounting-dialog .accounting-filters label{min-width:0!important;width:auto!important;font-size:10px!important}#accounting-dialog .accounting-filters select,#accounting-dialog .accounting-filters input{font-size:16px!important;min-height:38px!important;padding:8px!important}#accounting-dialog #accounting-grand-total{font-size:27px!important}#accounting-dialog .accounting-case-summary{padding:12px!important}#accounting-dialog .accounting-patient{font-size:12px!important}#accounting-dialog .accounting-case-dates{font-size:9px!important}#workspace .page-foot{order:9;display:none!important}#workspace #registration-panel:not([hidden]){inset:10px!important;max-height:calc(100dvh - 20px)!important;padding:20px 15px!important;border-radius:13px!important}#workspace #registration-panel .fields input,#workspace #registration-panel .fields select,#workspace #registration-panel textarea{font-size:16px!important;min-height:41px!important}#workspace #registration-panel>.card-heading h2{font-size:20px!important}dialog{padding:24px 17px!important;max-height:calc(100dvh - 25px)!important}dialog input,dialog select{font-size:16px!important;min-height:41px!important}#access{display:block!important}#access .access-brand{min-height:320px!important;padding:35px 28px!important;display:flex!important}#access .access-brand>img{width:100px!important;height:90px!important;max-height:90px!important;border-radius:12px!important;padding:6px!important;margin-bottom:23px!important}#access .access-brand h1{font-size:31px!important;max-width:280px!important;letter-spacing:-.8px!important;margin:8px 0 15px!important}#access .access-brand p{font-size:12px!important;max-width:290px!important}#access .access-brand .eyebrow{font-size:8px!important}#access .local-pill{display:none!important}#access .access-panel{min-height:0!important;padding:30px 24px 40px!important}#access .login-card .mobile-login-logo{display:none!important}#access .login-card h2{font-size:26px!important;margin-top:15px!important}#access .login-card input{font-size:16px!important}#access .access-panel>.dental-theme-picker{top:18px!important;right:18px!important}#access .language-picker{top:18px!important;right:85px!important}.shell .top .account{gap:6px}.shell .top .language-picker{margin-right:4px}.shell .top .language-picker select{font-size:12px;padding:7px;max-width:90px}.shell .top h1{font-size:23px!important}.app .main .stats:not(:has(#today-card:not([hidden]))){grid-template-columns:repeat(2,minmax(0,1fr))}.topbar>.language-picker{margin-right:8px}.topbar>.language-picker select{font-size:12px;padding:7px;max-width:95px}.topbar .profile{gap:6px}.topbar .profile .badge{display:none}}
@media(max-height:720px) and (min-width:741px){.modern-topbar{height:62px;min-height:62px;margin-bottom:17px}#workspace .page-header{margin-bottom:16px!important;min-height:55px!important}#workspace .stats{height:132px!important;min-height:132px!important;max-height:132px!important;margin-bottom:17px!important}#workspace .stats article{height:132px!important;min-height:132px!important;max-height:132px!important;padding-block:14px!important}.modern-hero{min-height:155px;padding-block:19px}.modern-hero h2{font-size:21px}.modern-hero-actions{margin-top:13px}}
/* The original PNG already has alpha; only remove white interface containers. */
#workspace .side-logo{background:transparent!important;border:0!important;box-shadow:none!important}#workspace .side-logo img{background:transparent!important;filter:invert(1)}#access .access-brand>img{background:transparent!important;filter:invert(1);padding:0!important;border-radius:0!important}.app .brand,.shell .brand{background:transparent!important;box-shadow:none!important;border:0!important}.app .brand img,.shell .brand img{background:transparent!important;filter:invert(1)}.modern-recents img,.paper img{filter:none!important;background:transparent!important}
/* Reset legacy stretching rules for the newly composed workspace. */
#workspace .main{align-items:stretch!important;justify-content:flex-start!important;font-weight:400!important}.modern-topbar{width:100%!important;flex:0 0 auto!important;margin-inline:0!important}.modern-breadcrumb,.modern-breadcrumb>span,.modern-breadcrumb>strong{font-size:11px!important;line-height:1.5!important;text-align:left!important}.modern-breadcrumb>span{font-weight:400!important}#workspace .page-header{width:100%!important;text-align:left!important;justify-content:space-between!important}#workspace .page-header>div:first-child{text-align:left!important;max-width:none!important;flex:1!important}#workspace .page-header .muted{font-weight:400!important}#workspace .modern-nav-item>span{font-size:12px!important;line-height:1.4!important;font-weight:500!important}#workspace .modern-nav-item.nav-current>span{font-size:12px!important;font-weight:600!important}#workspace .page-foot,#workspace .page-foot span{font-size:9px!important;line-height:1.5!important;font-weight:400!important;color:var(--muted)!important;text-align:left!important}#workspace .page-foot{justify-content:space-between!important;min-height:25px!important}#workspace .page-foot>span{display:inline!important}.modern-hero p,.modern-recents p{font-weight:400!important}.modern-recents .text-button{background:none!important;border:0!important;color:var(--accent)!important;padding:5px!important;font-size:11px!important;box-shadow:none!important}.modern-recents th,.modern-recents td{border-left:0!important;border-right:0!important;position:static!important}.modern-recents td:first-child{background:var(--surface)!important}.modern-recents td{font-weight:400!important}.modern-recents .row-actions{flex-wrap:nowrap!important}.modern-recents .row-actions button{height:31px!important;max-height:31px!important;margin:0!important;display:inline-flex!important}.modern-recents .case-order-pdf{flex-basis:auto!important}.modern-recents .inline-priority{height:29px!important;min-height:29px!important}.modern-recents tr{height:49px!important}.modern-recents table,.modern-recents tbody{height:auto!important}.modern-recents td:nth-child(2),.modern-recents td:nth-child(3){max-width:220px!important;overflow:hidden;text-overflow:ellipsis}
#workspace .case-list>.table-scroll table{height:auto!important;min-height:0!important;table-layout:auto!important;width:100%!important;min-width:1100px!important}#workspace .case-list>.table-scroll tbody{height:auto!important;min-height:0!important}#workspace .case-list>.table-scroll tbody tr{height:43px!important;min-height:0!important}#workspace .case-list>.table-scroll td{height:auto!important;font-weight:400!important;min-height:0!important}#workspace .case-list>.table-scroll th .sort-heading,#workspace .case-list>.table-scroll th .sort-heading>span{font-size:11px!important;line-height:1.3!important;font-weight:650!important;white-space:nowrap!important}#workspace .case-list>.table-scroll th .sort-heading{padding:0!important;border:0!important;min-height:24px!important}#workspace .case-list>.table-scroll .actions-cell{position:sticky!important;right:0!important;left:auto!important;z-index:2!important;background:var(--surface)!important;box-shadow:-1px 0 0 var(--line)}#workspace .case-list>.table-scroll th[data-case-column="27"]{right:0!important;left:auto!important;z-index:7!important}#workspace .case-list>.table-scroll .case-id-cell{position:static!important}#workspace .case-list .row-actions{flex-wrap:nowrap!important;gap:5px!important}#workspace .case-list .row-actions button{margin:0!important}#workspace .case-list>.card-heading{background:var(--surface)!important}#workspace .case-list>.table-scroll td:nth-child(odd){color:var(--ink)!important}
#workspace .main[data-modern-view="accounting"] #accounting-dialog{flex-direction:column!important;gap:10px!important;padding:17px!important;align-items:stretch!important;justify-content:flex-start!important;grid-template-columns:none!important}#accounting-dialog .accounting-doctor-banner{width:100%!important;flex:0 0 auto!important;margin:0!important;padding:10px 13px!important;min-height:0!important;font-size:12px!important;line-height:1.4!important;background:var(--surface2)!important;border:1px solid var(--line)!important;border-radius:8px!important;color:var(--ink)!important}#accounting-dialog>.accounting-total{display:flex!important;flex-direction:row!important;justify-content:space-between!important;align-items:center!important;width:100%!important;min-height:84px!important;max-height:none!important;flex:0 0 auto!important;margin:0!important;padding:15px 18px!important}#accounting-dialog>.accounting-total>div{display:flex!important;align-items:center!important;gap:14px!important;flex-direction:row!important;min-height:0!important;flex-wrap:wrap!important;max-width:none!important}#accounting-dialog>.accounting-total>div>span{font-size:12px!important;max-width:160px!important;line-height:1.4!important;font-weight:500!important}#accounting-dialog>.accounting-total>div>strong{font-size:30px!important;margin:0!important;padding:0!important;line-height:1.2!important}#accounting-dialog>.accounting-total>button{width:auto!important;min-height:37px!important;min-width:0!important;height:auto!important;padding:8px 12px!important;font-size:11px!important}#accounting-dialog>p.muted{font-size:11px!important;margin:0!important;line-height:1.5!important;flex:0 0 auto!important;color:var(--muted)!important;font-weight:400!important}#accounting-dialog>.modern-prices{border:1px solid var(--line);border-radius:8px;background:var(--surface2);flex:0 0 auto;padding:0 12px;max-height:220px;overflow:auto}#accounting-dialog>.modern-prices>summary{font-size:12px;font-weight:600;color:var(--accent);cursor:pointer;padding:11px 0;list-style-position:inside}#accounting-dialog .modern-prices .accounting-box{border:0!important;padding:8px 0 15px!important;background:none!important;margin:0!important}#accounting-dialog #material-prices{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:12px!important}#accounting-dialog #material-prices label{font-size:11px!important}#accounting-dialog #material-prices input{font-size:13px!important;min-width:0!important;max-width:100%!important;width:100%!important;padding:8px!important}#accounting-dialog #material-prices-form>.primary{margin-top:13px!important;font-size:11px!important;padding:8px 12px!important;min-height:35px!important}#accounting-dialog>.accounting-box{display:flex!important;flex-direction:column!important;flex:1 1 0%!important;min-height:0!important;max-height:none!important;overflow:hidden!important;border:0!important;background:none!important;padding:0!important;margin:0!important;width:100%!important;gap:8px!important}#accounting-dialog>.accounting-box>legend{font-size:12px!important;font-weight:650!important;color:var(--ink)!important;margin-bottom:8px!important}#accounting-dialog .accounting-filters{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;flex:0 0 auto!important;width:100%!important;padding:11px 13px!important;min-height:0!important;margin:0!important;align-items:end!important}#accounting-dialog .accounting-filters label{min-width:0!important;font-size:10px!important;line-height:1.3!important;gap:6px!important}#accounting-dialog .accounting-filters input,#accounting-dialog .accounting-filters select{width:100%!important;max-width:none!important;font-weight:400!important;min-height:35px!important;height:35px!important;padding:7px 9px!important}#accounting-dialog>.accounting-box>p{font-size:10px!important;line-height:1.4!important;margin:0!important;flex:0 0 auto!important;color:var(--muted)!important}#accounting-dialog>.accounting-box>label{flex:0 0 auto!important;font-size:10px!important;display:flex!important;align-items:center!important;gap:10px!important;color:var(--muted)!important}#accounting-dialog #accounting-search{min-height:34px!important;padding:8px 10px!important;max-width:420px!important;font-size:12px!important}#accounting-dialog #accounting-cases{flex:1 1 0%!important;min-height:0!important;max-height:none!important;overflow:auto!important;display:block!important;width:100%!important;margin:0!important;padding:0!important}#accounting-dialog .accounting-client{display:block!important;min-height:0!important;margin-bottom:7px!important;padding:0!important;overflow:hidden!important}#accounting-dialog .accounting-case-summary{display:flex!important;align-items:center!important;gap:12px!important;min-height:62px!important;width:100%!important;margin:0!important;padding:12px 15px!important;list-style:none!important}#accounting-dialog .accounting-case-name{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:6px 13px!important;flex:1!important;min-width:0!important;width:auto!important}#accounting-dialog .accounting-patient{grid-column:1!important;grid-row:1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:none!important;line-height:1.3!important}#accounting-dialog .accounting-priority{grid-column:2!important;grid-row:1!important;font-size:10px!important;padding:2px 6px!important;justify-self:end!important}#accounting-dialog .accounting-case-dates{grid-column:1!important;grid-row:2!important;line-height:1.3!important;font-weight:400!important;color:var(--muted)!important}#accounting-dialog .accounting-charge-tag{grid-column:2!important;grid-row:2!important;justify-self:end!important;font-size:9px!important;padding:2px 5px!important}#accounting-dialog .accounting-case-amount{font-size:15px!important;flex:0 0 90px!important;min-width:0!important;text-align:right!important;align-self:center!important}#accounting-dialog .accounting-breakdown{padding:15px!important}#accounting-dialog .accounting-client>.accounting-total{margin:0 15px 10px!important;padding:10px!important;font-size:12px!important}#accounting-dialog .special-price{margin:0 15px 15px!important}#accounting-dialog .accounting-box>.pagination{padding:6px 0!important;font-size:10px!important;border:0!important}.modern-profile-card p,.modern-settings p{font-weight:400!important}
@media(max-width:740px){.modern-topbar{width:100%!important}.modern-breadcrumb,.modern-breadcrumb>strong{font-size:10px!important}#workspace .mobile-workspace-nav .modern-nav-item span,#workspace .mobile-workspace-nav .modern-nav-item.nav-current span{font-size:10px!important}#workspace .page-header{width:100%!important}.modern-recents tr{height:auto!important}.modern-recents td{font-size:11px!important}.modern-recents .inline-priority{font-size:16px!important;min-height:34px!important}.modern-recents td{padding:10px!important}#workspace .case-list>.table-scroll table{min-width:0!important;height:auto!important}#workspace .case-list>.table-scroll tbody tr{height:auto!important;min-height:0!important}#workspace .case-list>.table-scroll .actions-cell{position:static!important;box-shadow:none!important}#workspace .main[data-modern-view="accounting"] #accounting-dialog{padding:12px!important;gap:8px!important}#accounting-dialog>.accounting-total{min-height:90px!important;padding:12px!important;align-items:start!important}#accounting-dialog>.accounting-total>div{gap:7px!important;max-width:210px!important}#accounting-dialog>.accounting-total>div>span{width:100%!important;font-size:10px!important}#accounting-dialog>.accounting-total>div>strong{font-size:26px!important}#accounting-dialog>.accounting-total>button{font-size:0!important;min-width:37px!important;width:37px!important;padding:8px!important;height:36px!important}#accounting-dialog>.accounting-total>button:before{font-size:15px!important}#accounting-dialog>p.muted{display:none!important}#accounting-dialog>.accounting-box{gap:7px!important}#accounting-dialog .accounting-filters{grid-template-columns:1fr 1fr!important;gap:9px!important;padding:10px!important}#accounting-dialog .accounting-filters input,#accounting-dialog .accounting-filters select{font-size:16px!important;height:37px!important;min-height:37px!important;padding:7px!important}#accounting-dialog #material-prices{grid-template-columns:repeat(2,minmax(0,1fr))!important}#accounting-dialog #material-prices input{font-size:16px!important}#accounting-dialog>.modern-prices{max-height:210px!important}#accounting-dialog>.accounting-box>label{font-size:0!important;width:100%!important}#accounting-dialog #accounting-search{font-size:16px!important;max-width:none!important;width:100%!important;min-height:38px!important}#accounting-dialog .accounting-case-summary{padding:12px!important;gap:8px!important;min-height:74px!important}#accounting-dialog .accounting-case-name{grid-template-columns:minmax(0,1fr)!important;gap:4px!important}#accounting-dialog .accounting-priority{display:none!important}#accounting-dialog .accounting-charge-tag{grid-column:1!important;grid-row:3!important;justify-self:start!important}#accounting-dialog .accounting-case-amount{flex-basis:73px!important;font-size:13px!important}#accounting-dialog .accounting-patient{font-size:11px!important;white-space:normal!important}#accounting-dialog .accounting-case-dates{font-size:9px!important;white-space:normal!important}#accounting-dialog>.accounting-box>legend{display:none!important}#accounting-dialog .accounting-box>.pagination{display:none!important}}
#access[hidden]{display:none!important}#workspace .designer-summary #designer-totals{display:grid!important;height:52px!important;max-height:52px!important;align-content:start!important}#workspace .designer-summary .designer-total{font-size:var(--designer-font,11px)!important;display:flex!important;gap:6px!important;line-height:1.25!important}.modern-recents table{table-layout:fixed!important;min-width:850px!important}.modern-recents th:nth-child(1){width:8%}.modern-recents th:nth-child(2){width:17%}.modern-recents th:nth-child(3){width:16%}.modern-recents th:nth-child(4){width:7%}.modern-recents th:nth-child(5){width:23%}.modern-recents th:nth-child(6){width:14%}.modern-recents th:nth-child(7){width:15%}.modern-recents td{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.modern-recents th,.modern-recents td{padding-inline:13px!important}.modern-recents .inline-priority{max-width:100%!important;min-width:0!important}.modern-recents .row-actions{gap:5px!important;justify-content:flex-start!important;min-width:0!important}.modern-recents .row-actions button{min-width:0!important;padding:5px 7px!important;flex:0 0 auto!important}.modern-recents .row-actions .case-order-pdf{width:auto!important;min-width:30px!important;max-width:none!important}#accounting-dialog>.accounting-box>label{justify-content:flex-start!important;text-align:left!important;align-self:stretch!important;flex-direction:row!important}#accounting-dialog .accounting-box>.pagination{background:none!important}#accounting-dialog .accounting-case-name .accounting-priority{font-weight:500!important}
@media(max-width:740px){#workspace .designer-summary #designer-totals{height:47px!important;max-height:47px!important}.modern-recents table{min-width:850px!important}#accounting-dialog>.accounting-box>label{flex-direction:column!important;align-items:stretch!important}}
.language-picker select{border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);font:inherit;padding:8px 10px}.app .topbar{gap:12px}.app .topbar>.language-picker{order:2;font-size:0;margin-left:auto;margin-right:8px}.app .topbar>.profile{order:3}.app .topbar>.language-picker select{font-size:12px;min-height:34px}.app .profile{white-space:nowrap}.shell .navitem.active{background:#224d64!important;box-shadow:inset 3px 0 0 #67c4ec!important;color:#fff!important}.shell .primary,.app .btn.primary{background:#177fb4!important;border-color:#177fb4!important}.shell .language-picker select{border-color:var(--line)}.modern-topbar .language-picker{padding:0!important;border:0!important;background:none!important}#workspace .delivery-counts>div>span{font-weight:400!important}
#workspace #annual-year{font-size:inherit!important;font-weight:inherit!important;display:inline!important}#workspace .modern-recents .row-actions .case-order-pdf{width:auto!important;min-width:30px!important;max-width:none!important;padding:5px 7px!important;flex-basis:auto!important}@media(max-width:740px){html[lang="en"] #workspace .table-scroll table:not(.retainers-table) tbody tr:not(.case-expanded)>td[data-case-column="3"]:before{content:'Tooth numbers: '!important}}
@media print{.shell .workspace{background:#fff!important}.shell .paper{color:#173a50!important;background:white!important}.language-picker{display:none!important}}
#access .access-panel{position:relative!important}#access .access-panel>.dental-theme-picker{position:absolute!important;top:23px!important;right:23px!important;left:auto!important;bottom:auto!important;width:auto!important;max-width:none!important;min-width:0!important;height:34px!important;min-height:0!important;display:inline-flex!important;align-items:center!important;gap:3px!important;flex:0 0 auto!important;margin:0!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important;border-radius:0!important;transform:none!important}#access .access-panel>.dental-theme-picker button{width:28px!important;min-width:28px!important;height:30px!important;padding:6px!important;border-radius:6px!important;font-size:12px!important}#access .access-panel>.language-picker{position:absolute!important;top:23px!important;right:96px!important;left:auto!important;bottom:auto!important;width:auto!important;max-width:none!important;height:auto!important;margin:0!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important;transform:none!important}#access .access-panel>.language-picker select{display:block!important;width:102px!important;max-width:102px!important;height:34px!important;min-height:34px!important;padding:7px 9px!important;font-size:12px!important;background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:8px!important;color:var(--ink)!important}#access .access-brand h1{font-weight:650!important}body.dark #workspace .exports button,body.dark #workspace .row-actions button,body.dark #workspace .modern-recents .row-actions button{background:#244b61!important;color:#c3e2f1!important;border-color:#3e657a!important}body.dark #workspace .inline-priority{background:#23475b!important;color:#c3e2f1!important;border-color:#42697d!important}body.dark #workspace .rush-priority .inline-priority{background:#4a3b2c!important;color:#e9c08a!important;border-color:#745e41!important}body.dark #workspace #new-case{background:#177fb4!important;color:#fff!important;border-color:#177fb4!important}
@media(max-width:740px){#access .access-panel{padding-top:68px!important}#access .access-panel>.dental-theme-picker{top:18px!important;right:20px!important}#access .access-panel>.language-picker{top:18px!important;right:93px!important}}

/* Cases are the home workspace; the summary cards remain above the database. */
#workspace .stats article{border:2px solid #8dbbd5!important;box-shadow:0 4px 12px #245c7d14!important}
body.dark #workspace .stats article{border-color:#4d8bab!important;box-shadow:0 4px 12px #0002!important}
#workspace .stats .priority-summary>div{display:flex!important;flex-direction:column!important;height:100%!important}
#workspace .stats .priority-summary>div>p{flex:0 0 auto!important;margin-bottom:3px!important}
#workspace .stats .priority-summary .priority-counts{margin:4px 0!important;flex:0 0 auto!important}
#workspace .stats .priority-summary .priority-counts strong{font-size:25px!important;margin-bottom:3px!important}
#workspace .stats .priority-summary .annual-bar{flex:0 0 4px!important;margin:3px 0!important}
#workspace .stats .priority-summary #annual-period{display:block!important;visibility:visible!important;opacity:1!important;color:var(--ink)!important;font-size:11px!important;font-weight:600!important;line-height:1.35!important;margin-top:auto!important;white-space:normal!important;overflow:visible!important;flex:0 0 auto!important}
@media(max-width:740px){
 #workspace .stats{margin-bottom:10px!important}
 #workspace .stats .priority-summary>div>p{font-size:9px!important;min-height:14px!important;margin-bottom:2px!important}
 #workspace .stats .priority-summary .priority-counts{margin:3px 0!important}
 #workspace .stats .priority-summary .priority-counts strong{font-size:22px!important;margin-bottom:2px!important}
 #workspace .stats .priority-summary #annual-period{font-size:10px!important;line-height:1.3!important}
}

/* Let all designer names use the complete remaining card height, with no clipping. */
#workspace .stats .designer-summary>div{display:flex!important;flex-direction:column!important;height:100%!important;min-height:0!important}
#workspace .stats .designer-summary>div>p{flex:0 0 auto!important;min-height:15px!important;margin-bottom:4px!important}
#workspace .stats .designer-summary #stat-designed{font-size:20px!important;line-height:1.1!important;margin:0 0 4px!important;flex:0 0 auto!important}
#workspace .stats .designer-summary #designer-totals{display:grid!important;flex:1 1 0!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;gap:1px 8px!important;margin:0!important;padding:0!important;align-content:start!important;grid-auto-rows:min-content!important}
#workspace .stats .designer-summary #designer-totals .designer-total{font-size:var(--designer-font,10px)!important;line-height:1.12!important;min-height:0!important;padding:0!important;margin:0!important;gap:4px!important;min-width:0!important;overflow:visible!important}
#workspace .stats .designer-summary #designer-totals .designer-total span{flex:1 1 auto!important;min-width:0!important;white-space:nowrap!important;text-overflow:clip!important;overflow:visible!important;font-size:inherit!important;line-height:inherit!important}
#workspace .stats .designer-summary #designer-totals .designer-total b{flex:0 0 auto!important;font-size:inherit!important;line-height:inherit!important}
/* Three equal account cards, aligned in one row. */
#workspace .modern-account-panel{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px!important;align-items:stretch!important;align-content:start!important;grid-auto-rows:minmax(350px,max-content)!important}
#workspace .modern-settings{display:contents!important}
#workspace .modern-profile-card,#workspace .modern-settings>.card{height:auto!important;min-height:350px!important;align-self:stretch!important;margin:0!important;padding:24px!important;box-sizing:border-box!important;border:2px solid #8dbbd5!important;border-radius:12px!important;box-shadow:0 4px 12px #245c7d14!important;min-width:0!important}
#workspace .modern-profile-card{display:flex!important;flex-direction:column!important;align-items:stretch!important}
#workspace .modern-profile-card h2{overflow-wrap:anywhere!important}
#workspace .modern-profile-card>.secondary{margin-top:auto!important}
#workspace .modern-profile-line{margin-bottom:18px!important}
#workspace .modern-settings label{flex-direction:column!important;align-items:stretch!important;gap:9px!important}
#workspace .modern-settings select{min-width:0!important;width:100%!important}
#workspace .modern-settings button{width:100%!important;margin:0 0 10px!important;white-space:normal!important}
body.dark #workspace .modern-profile-card,body.dark #workspace .modern-settings>.card{border-color:#4d8bab!important}
@media(max-width:1050px){
 #workspace .modern-account-panel{grid-template-columns:1fr!important;grid-auto-rows:minmax(300px,max-content)!important}
 #workspace .modern-profile-card,#workspace .modern-settings>.card{min-height:300px!important;padding:22px!important}
}
@media(max-width:740px){
 #workspace .stats .designer-summary #stat-designed{font-size:19px!important}
 #workspace .stats .designer-summary #designer-totals{gap:1px 5px!important;height:auto!important;max-height:none!important}
 #workspace .modern-account-panel{gap:14px!important}
}

/* Administration uses the same card system as the laboratory workspace. */
.app .stats{gap:16px!important;align-items:stretch!important}
.app .stats .stat{height:148px!important;min-height:148px!important;box-sizing:border-box!important;padding:19px 17px!important;position:relative!important;align-items:stretch!important;border:2px solid #8dbbd5!important;border-radius:12px!important;box-shadow:0 4px 12px #245c7d14!important;color:var(--ink)!important}
.app .stats .stat>div{display:flex!important;flex-direction:column!important;min-width:0!important;width:100%!important}
.app .stats .stat small{font-size:11px!important;font-weight:600!important;line-height:1.4!important;min-height:20px!important;margin:0 37px 8px 0!important;color:var(--muted)!important}
.app .stats .stat strong{font-size:31px!important;line-height:1.2!important;margin:3px 0 7px!important;letter-spacing:-.5px!important;color:var(--ink)!important;font-variant-numeric:tabular-nums!important}
.app .stats .stat .hint{font-size:10px!important;line-height:1.4!important;color:var(--muted)!important;margin-top:auto!important}
.app .stats .stat .stat-icon{width:33px!important;height:33px!important;position:absolute!important;top:16px!important;right:16px!important;border-radius:10px!important;background:#eaf5fc!important;color:#368bb8!important}
.app .stats .stat .stat-icon svg{width:19px!important;height:19px!important}
.app .panel,.app .rolecard{border:2px solid #8dbbd5!important;border-radius:12px!important;box-shadow:0 4px 12px #245c7d14!important}
.app .rolegrid{align-items:stretch!important;gap:18px!important}
.app .rolecard{display:flex!important;flex-direction:column!important;height:100%!important;padding:24px!important}
.app .rolecard p{min-height:0!important}
.app .rolecard ul{margin-top:auto!important;padding-top:16px!important}
.app .notice{border-color:#8dbbd5!important;border-radius:12px!important;background:var(--surface2)!important;color:var(--ink)!important}
body.dark .app .stats .stat,body.dark .app .panel,body.dark .app .rolecard{border-color:#4d8bab!important;box-shadow:0 4px 12px #0002!important}
body.dark .app .stats .stat .stat-icon{background:#254a60!important;color:#8ac5e4!important}
@media(max-width:740px){
 .app .stats{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
 .app .stats .stat{height:126px!important;min-height:126px!important;padding:13px 12px!important}
 .app .stats .stat small{font-size:9px!important;margin-right:24px!important;margin-bottom:6px!important;min-height:17px!important}
 .app .stats .stat strong{font-size:27px!important;margin:2px 0 5px!important}
 .app .stats .stat .hint{font-size:9px!important}
 .app .stats .stat .stat-icon{width:25px!important;height:25px!important;top:10px!important;right:10px!important}
 .app .stats .stat .stat-icon svg{width:15px!important;height:15px!important}
 .app .rolecard{padding:22px!important}
}

/* A denser case workspace reserves the viewport for the case database. */
#workspace .main[data-modern-view="cases"] .modern-topbar{height:52px!important;min-height:52px!important;margin-bottom:10px!important}
#workspace .main[data-modern-view="cases"] .page-header{min-height:44px!important;margin-bottom:10px!important}
#workspace .main[data-modern-view="cases"] .page-header h1{font-size:25px!important}
#workspace .main[data-modern-view="cases"] .page-header .eyebrow{display:none!important}
#workspace .main[data-modern-view="cases"] .page-header .muted{margin-top:3px!important}
#workspace .main[data-modern-view="cases"] .stats{height:126px!important;min-height:126px!important;max-height:126px!important;margin-bottom:12px!important}
#workspace .main[data-modern-view="cases"] .stats article{height:126px!important;min-height:126px!important;max-height:126px!important;padding:11px 15px!important}
#workspace .main[data-modern-view="cases"] .stats article>.stat-icon{top:10px!important;right:12px!important;width:28px!important;height:28px!important}
#workspace .main[data-modern-view="cases"] .stats article>div>p{margin-bottom:5px!important}
#workspace .main[data-modern-view="cases"] .stats #stat-cases{font-size:28px!important;margin:2px 0 5px!important}
#workspace .main[data-modern-view="cases"] .delivery-counts{margin-top:12px!important}
#workspace .main[data-modern-view="cases"] .delivery-counts strong{font-size:24px!important}
#workspace .main[data-modern-view="cases"] .case-list>.card-heading{padding:7px 12px!important;min-height:40px!important}
#workspace .main[data-modern-view="cases"] .case-list>.card-heading h2{font-size:14px!important}
#workspace .main[data-modern-view="cases"] .exports button{min-height:30px!important;padding:5px 9px!important}
#workspace .main[data-modern-view="cases"] .case-list .search-row{padding:5px 12px!important}
#workspace .main[data-modern-view="cases"] .case-list .search-label{height:32px!important;min-height:32px!important}
#workspace .main[data-modern-view="cases"] .case-list .search-label input{height:30px!important;min-height:30px!important;padding-block:4px!important}
#workspace .main[data-modern-view="cases"] .list-foot{padding:5px 12px!important}
#workspace .main[data-modern-view="cases"] .page-foot{padding-top:5px!important;min-height:18px!important}
@media(min-width:741px){
 #workspace .main[data-modern-view="cases"] .case-list>.table-scroll tbody tr{height:34px!important}
 #workspace .main[data-modern-view="cases"] .case-list>.table-scroll td{padding:3px 9px!important;font-size:12px!important;line-height:1.3!important}
 #workspace .main[data-modern-view="cases"] .case-list>.table-scroll th{padding:7px 9px!important}
 #workspace .main[data-modern-view="cases"] .case-list .row-actions button{height:28px!important;min-height:28px!important;max-height:28px!important;padding-block:4px!important}
 #workspace .main[data-modern-view="cases"] .case-list .inline-priority{height:26px!important;min-height:26px!important;padding-block:3px!important}
}
@media(max-width:740px){
 #workspace .main[data-modern-view="cases"] .modern-topbar{height:48px!important;min-height:48px!important;margin-bottom:6px!important}
 #workspace .main[data-modern-view="cases"] .mobile-workspace-nav{margin-bottom:5px!important;padding-bottom:5px!important;min-height:38px!important}
 #workspace .main[data-modern-view="cases"] .page-header{min-height:38px!important;margin-bottom:8px!important}
 #workspace .main[data-modern-view="cases"] .page-header h1{font-size:20px!important}
 #workspace .main[data-modern-view="cases"] .stats{height:auto!important;min-height:0!important;max-height:none!important;gap:7px!important;margin-bottom:8px!important}
 #workspace .main[data-modern-view="cases"] .stats article{padding:10px 11px!important}
 #workspace .main[data-modern-view="cases"] .case-list>.card-heading{padding:5px 9px!important}
 #workspace .main[data-modern-view="cases"] .mobile-list-controls{padding-bottom:5px!important}
 #workspace .main[data-modern-view="cases"] .case-list .search-label,#workspace .main[data-modern-view="cases"] .case-list .search-label input{height:36px!important;min-height:36px!important}
 #workspace .main[data-modern-view="cases"] .table-scroll table:not(.retainers-table) tbody tr:not(.case-expanded){padding:8px 10px!important;margin-bottom:6px!important;gap:3px 7px!important}
}

/* Reserve an explicit row for the annual date range in compact cards. */
#workspace .main .stats article.priority-summary>div{display:grid!important;grid-template-rows:20px minmax(0,1fr) 4px 15px!important;gap:3px!important;height:100%!important;min-height:0!important;align-content:stretch!important}
#workspace .main .stats article.priority-summary>div>p{margin:0 30px 0 0!important;min-height:0!important;font-size:11px!important;line-height:16px!important}
#workspace .main .stats article.priority-summary .priority-counts{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;margin:0!important;gap:12px!important;min-height:0!important;align-items:start!important}
#workspace .main .stats article.priority-summary .priority-counts>span{min-height:0!important;height:auto!important;margin:0!important;padding:0!important;line-height:1.15!important;font-size:10px!important;gap:0!important}
#workspace .main .stats article.priority-summary .priority-counts strong{font-size:23px!important;line-height:1.05!important;margin:0 0 3px!important}
#workspace .main .stats article.priority-summary .annual-bar{display:flex!important;height:4px!important;min-height:4px!important;margin:0!important}
#workspace .main .stats article.priority-summary #annual-period{display:block!important;visibility:visible!important;opacity:1!important;position:static!important;font-size:10px!important;font-weight:600!important;line-height:15px!important;color:var(--ink)!important;margin:0!important;padding:0!important;height:15px!important;min-height:15px!important;white-space:nowrap!important;overflow:visible!important}
#workspace .main .stats article.priority-summary .annual-description{display:none!important}
@media(max-width:740px){
 #workspace .main .stats article.priority-summary>div>p{font-size:9px!important;line-height:14px!important}
 #workspace .main .stats article.priority-summary #annual-period{font-size:9px!important}
}
/* A denser case workspace reserves the viewport for the case database. */
#workspace .main[data-modern-view="retainers"] .modern-topbar{height:52px!important;min-height:52px!important;margin-bottom:10px!important}
#workspace .main[data-modern-view="retainers"] .page-header{min-height:44px!important;margin-bottom:10px!important}
#workspace .main[data-modern-view="retainers"] .page-header h1{font-size:25px!important}
#workspace .main[data-modern-view="retainers"] .page-header .eyebrow{display:none!important}
#workspace .main[data-modern-view="retainers"] .page-header .muted{margin-top:3px!important}
#workspace .main[data-modern-view="retainers"] .stats{height:126px!important;min-height:126px!important;max-height:126px!important;margin-bottom:12px!important}
#workspace .main[data-modern-view="retainers"] .stats article{height:126px!important;min-height:126px!important;max-height:126px!important;padding:11px 15px!important}
#workspace .main[data-modern-view="retainers"] .stats article>.stat-icon{top:10px!important;right:12px!important;width:28px!important;height:28px!important}
#workspace .main[data-modern-view="retainers"] .stats article>div>p{margin-bottom:5px!important}
#workspace .main[data-modern-view="retainers"] .stats #stat-cases{font-size:28px!important;margin:2px 0 5px!important}
#workspace .main[data-modern-view="retainers"] .delivery-counts{margin-top:12px!important}
#workspace .main[data-modern-view="retainers"] .delivery-counts strong{font-size:24px!important}
#workspace .main[data-modern-view="retainers"] .case-list>.card-heading{padding:7px 12px!important;min-height:40px!important}
#workspace .main[data-modern-view="retainers"] .case-list>.card-heading h2{font-size:14px!important}
#workspace .main[data-modern-view="retainers"] .exports button{min-height:30px!important;padding:5px 9px!important}
#workspace .main[data-modern-view="retainers"] .case-list .search-row{padding:5px 12px!important}
#workspace .main[data-modern-view="retainers"] .case-list .search-label{height:32px!important;min-height:32px!important}
#workspace .main[data-modern-view="retainers"] .case-list .search-label input{height:30px!important;min-height:30px!important;padding-block:4px!important}
#workspace .main[data-modern-view="retainers"] .list-foot{padding:5px 12px!important}
#workspace .main[data-modern-view="retainers"] .page-foot{padding-top:5px!important;min-height:18px!important}
@media(min-width:741px){
 #workspace .main[data-modern-view="retainers"] .case-list>.table-scroll tbody tr{height:34px!important}
 #workspace .main[data-modern-view="retainers"] .case-list>.table-scroll td{padding:3px 9px!important;font-size:12px!important;line-height:1.3!important}
 #workspace .main[data-modern-view="retainers"] .case-list>.table-scroll th{padding:7px 9px!important}
 #workspace .main[data-modern-view="retainers"] .case-list .row-actions button{height:28px!important;min-height:28px!important;max-height:28px!important;padding-block:4px!important}
 #workspace .main[data-modern-view="retainers"] .case-list .inline-priority{height:26px!important;min-height:26px!important;padding-block:3px!important}
}
@media(max-width:740px){
 #workspace .main[data-modern-view="retainers"] .modern-topbar{height:48px!important;min-height:48px!important;margin-bottom:6px!important}
 #workspace .main[data-modern-view="retainers"] .mobile-workspace-nav{margin-bottom:5px!important;padding-bottom:5px!important;min-height:38px!important}
 #workspace .main[data-modern-view="retainers"] .page-header{min-height:38px!important;margin-bottom:8px!important}
 #workspace .main[data-modern-view="retainers"] .page-header h1{font-size:20px!important}
 #workspace .main[data-modern-view="retainers"] .stats{height:auto!important;min-height:0!important;max-height:none!important;gap:7px!important;margin-bottom:8px!important}
 #workspace .main[data-modern-view="retainers"] .stats article{padding:10px 11px!important}
 #workspace .main[data-modern-view="retainers"] .case-list>.card-heading{padding:5px 9px!important}
 #workspace .main[data-modern-view="retainers"] .mobile-list-controls{padding-bottom:5px!important}
 #workspace .main[data-modern-view="retainers"] .case-list .search-label,#workspace .main[data-modern-view="retainers"] .case-list .search-label input{height:36px!important;min-height:36px!important}
 #workspace .main[data-modern-view="retainers"] .table-scroll table:not(.retainers-table) tbody tr:not(.case-expanded){padding:8px 10px!important;margin-bottom:6px!important;gap:3px 7px!important}
}


@media(max-width:740px){#workspace .main[data-modern-view="retainers"] .case-list>.table-scroll .retainers-table tbody tr{padding:8px 10px!important;margin-bottom:6px!important;gap:3px 7px!important}#workspace .main[data-modern-view="retainers"] .case-list>.table-scroll .retainers-table td{padding:3px 5px!important}}

/* Compact accounting controls leave more room for the case ledger. */
#workspace .main[data-modern-view="accounting"] .modern-topbar{height:52px!important;min-height:52px!important;margin-bottom:10px!important}
#workspace .main[data-modern-view="accounting"] .page-header{min-height:44px!important;margin-bottom:10px!important}
#workspace .main[data-modern-view="accounting"] .page-header h1{font-size:25px!important}
#workspace .main[data-modern-view="accounting"] .page-header .eyebrow{display:none!important}
#workspace .main[data-modern-view="accounting"] .page-header .muted{margin-top:3px!important}
#workspace .main[data-modern-view="accounting"] #accounting-dialog{padding:10px 12px!important;gap:6px!important}
#accounting-dialog .accounting-doctor-banner{padding:6px 10px!important;font-size:11px!important}
#accounting-dialog>.accounting-total{min-height:54px!important;padding:9px 12px!important}
#accounting-dialog>.accounting-total>div{gap:10px!important}
#accounting-dialog #accounting-grand-total{font-size:26px!important;line-height:1.2!important}
#accounting-dialog>.accounting-total>button{min-height:32px!important;padding:6px 9px!important}
#accounting-dialog>.modern-prices>summary{padding:7px 0!important;font-size:11px!important}
#accounting-dialog>p.muted{font-size:10px!important;line-height:1.3!important}
#accounting-dialog>.accounting-box{gap:5px!important}
#accounting-dialog>.accounting-box>legend{margin-bottom:3px!important}
#accounting-dialog .accounting-filters{padding:7px 10px!important;gap:8px!important}
#accounting-dialog .accounting-filters label{gap:3px!important}
#accounting-dialog .accounting-filters input,#accounting-dialog .accounting-filters select{height:31px!important;min-height:31px!important;padding:4px 8px!important}
#accounting-dialog #accounting-search{height:31px!important;min-height:31px!important;padding:5px 9px!important}
#accounting-dialog .accounting-client{margin-bottom:4px!important}
#accounting-dialog .accounting-case-summary{min-height:46px!important;padding:6px 11px!important;gap:9px!important}
#accounting-dialog .accounting-case-name{gap:3px 10px!important}
#accounting-dialog .accounting-case-dates{font-size:10px!important;line-height:1.25!important}
#accounting-dialog .accounting-case-amount{font-size:14px!important}
@media(max-width:740px){
 #workspace .main[data-modern-view="accounting"] .modern-topbar{height:48px!important;min-height:48px!important;margin-bottom:6px!important}
 #workspace .main[data-modern-view="accounting"] .mobile-workspace-nav{margin-bottom:5px!important;padding-bottom:5px!important;min-height:38px!important}
 #workspace .main[data-modern-view="accounting"] .page-header{min-height:38px!important;margin-bottom:8px!important}
 #workspace .main[data-modern-view="accounting"] .page-header h1{font-size:20px!important}
 #workspace .main[data-modern-view="accounting"] #accounting-dialog{padding:8px!important;gap:5px!important}
 #accounting-dialog>.accounting-total{min-height:58px!important;padding:8px 10px!important;align-items:center!important}
 #accounting-dialog>.accounting-total>div{gap:3px 9px!important}
 #accounting-dialog>.accounting-total>div>span{font-size:10px!important}
 #accounting-dialog .accounting-filters{padding:7px!important;gap:6px!important}
 #accounting-dialog .accounting-filters input,#accounting-dialog .accounting-filters select{height:36px!important;min-height:36px!important;font-size:16px!important}
 #accounting-dialog #accounting-search{height:36px!important;min-height:36px!important;font-size:16px!important}
 #accounting-dialog .accounting-case-summary{min-height:58px!important;padding:7px 9px!important;gap:7px!important}
 #accounting-dialog .accounting-case-name{gap:2px!important}
 #accounting-dialog .accounting-case-dates{font-size:9px!important}
}

/* Keep the administration shell inside the viewport; lists scroll internally. */
body:has(>.app){height:100dvh!important;overflow:hidden!important}
.app{height:100dvh!important;min-height:0!important;overflow:hidden!important}
.app>.sidebar{height:100dvh!important;min-height:0!important;overflow-y:auto!important}
.app>.main{height:100dvh!important;min-height:0!important;overflow:hidden!important;display:flex!important;flex-direction:column!important;padding-bottom:8px!important}
.app .topbar{height:52px!important;min-height:52px!important;flex:0 0 auto!important}
.app .pageheading{flex:0 0 auto!important;margin:12px 0!important;gap:12px!important}
.app .pageheading .overline{display:none!important}
.app .pageheading h1{font-size:25px!important;margin-bottom:4px!important}
.app .pageheading p{font-size:12px!important}
.app .stats{flex:0 0 auto!important;margin-bottom:12px!important}
.app .stats .stat{height:112px!important;min-height:112px!important;padding:12px 15px!important}
.app .stats .stat small{margin-bottom:4px!important}
.app .stats .stat strong{font-size:27px!important;margin:0 0 4px!important}
.app .stats .stat .stat-icon{height:28px!important;width:28px!important;top:11px!important;right:12px!important}
.app .tabs{flex:0 0 auto!important;margin-bottom:12px!important;gap:22px!important}
.app .tab{padding-bottom:9px!important}
.app #users-view:not([hidden]),.app #activity-view:not([hidden]),.app #roles-view:not([hidden]){display:flex!important;flex-direction:column!important;flex:1 1 0!important;min-height:0!important;overflow:hidden!important}
.app #users-view[hidden],.app #activity-view[hidden],.app #roles-view[hidden]{display:none!important}
.app #users-view>.panel,.app #activity-view>.panel{display:flex!important;flex-direction:column!important;flex:1 1 0!important;min-height:0!important;overflow:hidden!important}
.app .panelhead{flex:0 0 auto!important;padding:10px 14px!important;gap:9px!important}
.app .panelhead h2{margin-bottom:3px!important}
.app .panelhead .tools input,.app .panelhead .tools select{padding:7px 9px!important;min-height:32px!important}
.app .panel .tablewrap{flex:1 1 0!important;min-height:0!important;overflow:auto!important;overscroll-behavior:contain!important}
.app .panel .tablewrap th{position:sticky!important;top:0!important;z-index:2!important;padding-block:9px!important}
.app .panel .tablewrap td{padding-block:9px!important}
.app .panelbottom{flex:0 0 auto!important;padding:7px 14px!important}
.app .notice{flex:0 0 auto!important;margin-top:8px!important;padding:8px 12px!important;gap:9px!important;max-height:76px!important;overflow:auto!important}
.app .notice p{font-size:11px!important;line-height:1.45!important}
.app .notice strong{font-size:11px!important;margin-bottom:2px!important}
.app #roles-view>.rolegrid{flex:1 1 0!important;min-height:0!important;overflow:auto!important;align-items:stretch!important}
.app #roles-view .rolecard{height:auto!important}
.app .footer{flex:0 0 auto!important;margin-top:8px!important;min-height:15px!important}
body:has(>.app) dialog{max-height:calc(100dvh - 24px)!important;overflow:auto!important}
@media(max-width:740px){
 .app .topbar{height:48px!important;min-height:48px!important}
 .app .pageheading{margin:9px 0!important;gap:8px!important}
 .app .pageheading h1{font-size:21px!important}
 .app .pageheading p{font-size:11px!important}
 .app .stats{margin-bottom:9px!important;gap:7px!important}
 .app .stats .stat{height:94px!important;min-height:94px!important;padding:9px 11px!important}
 .app .stats .stat small{font-size:9px!important;min-height:14px!important;margin-bottom:2px!important}
 .app .stats .stat strong{font-size:23px!important;margin:0 0 2px!important}
 .app .stats .stat .hint{font-size:8px!important}
 .app .stats .stat .stat-icon{height:23px!important;width:23px!important;top:8px!important;right:8px!important}
 .app .tabs{margin-bottom:9px!important;gap:16px!important}
 .app .tab{font-size:12px!important;padding-bottom:8px!important}
 .app .panelhead{padding:8px 10px!important;gap:6px!important}
 .app .panelhead .tools input,.app .panelhead .tools select{font-size:16px!important;min-height:36px!important}
 .app .notice{max-height:60px!important;padding:7px 9px!important}
 .app .notice p{font-size:10px!important}
 .app .footer{font-size:8px!important;margin-top:5px!important}
}
@media(max-height:600px){
 .app .pageheading{margin:6px 0!important}
 .app .pageheading p{display:none!important}
 .app .stats{gap:6px!important;margin-bottom:7px!important;grid-template-columns:repeat(4,minmax(0,1fr))!important}
 .app .stats .stat{height:76px!important;min-height:76px!important;padding:7px 9px!important}
 .app .stats .stat small{font-size:9px!important;min-height:13px!important;margin:0 0 2px!important}
 .app .stats .stat strong{font-size:23px!important;margin:0!important}
 .app .stats .stat .hint,.app .stats .stat .stat-icon{display:none!important}
 .app .notice{max-height:42px!important}
 .app .footer{display:none!important}
}

@media(max-height:600px){
 .app .topbar{height:40px!important;min-height:40px!important}
 .app .pageheading{margin:4px 0!important}
 .app .pageheading h1{font-size:20px!important;margin:0!important}
 .app .pageheading .btn{padding:6px 10px!important;min-height:30px!important}
 .app .stats .stat{height:64px!important;min-height:64px!important}
 .app .tabs{margin-bottom:6px!important}
 .app .tab{padding-bottom:6px!important;font-size:12px!important}
 .app .panelhead{flex-direction:row!important;align-items:center!important;padding:6px 9px!important}
 .app .panelhead .sub{display:none!important}
 .app .panelhead h2{font-size:12px!important;margin:0!important}
 .app .panelhead .tools{width:auto!important;flex:1!important;justify-content:flex-end!important;min-width:0!important}
 .app .panelhead .tools input{width:120px!important;min-width:0!important}
 .app .panelhead .tools select{max-width:140px!important;min-width:0!important}
 .app .panelhead .tools input,.app .panelhead .tools select{min-height:30px!important;padding:5px 7px!important}
 .app .panelbottom{padding:5px 9px!important;font-size:9px!important}
 .app .notice{max-height:28px!important;margin-top:4px!important;padding:4px 8px!important}
}

/* SuperAdmin deletion history shares the existing fixed-height administration layout. */
.app #deletions-view:not([hidden]){display:flex!important;flex-direction:column!important;flex:1 1 0!important;min-height:0!important;overflow:hidden!important}
.app #deletions-view[hidden]{display:none!important}
.app #deletions-view>.panel{display:flex!important;flex-direction:column!important;flex:1 1 0!important;min-height:0!important;overflow:hidden!important}
.app .main .stats:has(#deleted-card:not([hidden])){grid-template-columns:repeat(5,minmax(0,1fr))!important}
.app .deletion-stat{text-align:left;font:inherit;cursor:pointer}
.app .deletion-stat:hover{background:var(--surface2)!important}
.app .deletion-stat:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.app .tabs{overflow-x:auto!important;overflow-y:hidden!important;white-space:nowrap!important;min-height:30px!important}
.app .tabs .tab{flex:0 0 auto!important}
#deleted-detail{width:650px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto}
.deletion-detail-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
#deleted-detail-data p{font-size:13px;line-height:1.6;margin:8px 0;white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:1050px){.app .main .stats:has(#deleted-card:not([hidden])){grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:740px){.app .main .stats:has(#deleted-card:not([hidden])) .stat{padding:8px!important}.app .main .stats:has(#deleted-card:not([hidden])) .stat small{margin-right:0!important}.app .main .stats:has(#deleted-card:not([hidden])) .stat-icon{display:none!important}.app .main .stats:has(#deleted-card:not([hidden])) .stat .hint{font-size:8px!important}.app #deletions-view .panelhead .tools{width:100%;min-width:0}.app #deletion-search{min-width:0;flex:1}.app #refresh-deletions{flex:0 0 auto}}
@media(max-height:600px){.app .main .stats:has(#deleted-card:not([hidden])){grid-template-columns:repeat(5,minmax(0,1fr))!important}}
@media(max-width:740px){.app .main .stats:has(#deleted-card:not([hidden])) .stat{height:76px!important;min-height:76px!important}.app .main .stats:has(#deleted-card:not([hidden])) .stat .hint{display:none!important}.app .main .stats:has(#deleted-card:not([hidden])) .stat small{min-height:25px!important;line-height:1.25!important}.app .pageheading:has(~ .stats #deleted-card:not([hidden])) p{display:none!important}.app #deletions-view .panelhead .sub{display:none!important}}

#workspace .stats article>div>.case-deleted-summary{display:block!important;font-size:10px!important;font-weight:700!important;line-height:1.25!important;color:#c62828!important;margin:3px 0 0!important;white-space:nowrap!important}
#workspace .stats article>div>.case-deleted-summary[hidden]{display:none!important}
#workspace .stats article:has(.case-deleted-summary:not([hidden])) #stat-cases{font-size:26px!important;margin:1px 0 3px!important}
#workspace .stats article:has(.case-deleted-summary:not([hidden])) .case-type-counts{margin-top:2px!important}
body.dark #workspace .stats article>div>.case-deleted-summary{color:#ff8c8c!important}
@media(max-width:740px){#workspace .stats article>div>.case-deleted-summary{font-size:9px!important;margin-top:3px!important}}
/* Rush/urgent cases stay in their current order and use a red priority treatment. */
#workspace .main .case-list>.table-scroll tbody tr:has(.inline-priority.is-urgent)>td{background:#fff2f2!important;color:#a61b1b!important}
#workspace .main .case-list>.table-scroll tbody tr:has(.inline-priority.is-urgent) .case-detail-link{color:#b71c1c!important;font-weight:650!important}
#workspace .main .case-list .inline-priority.is-urgent,#workspace .main .rush-priority .inline-priority.is-urgent{background:#ffe4e4!important;color:#b71c1c!important;border-color:#e49a9a!important;font-weight:650!important;opacity:1!important}
#workspace .main .table-scroll table tbody tr:has(.inline-priority.is-urgent){background:#fff2f2!important;border-color:#e49a9a!important}
#workspace .main .priority-counts .urgent-count strong{color:#c62828!important}
#workspace .main .annual-bar>i{background:#d84646!important}
#workspace .main #accounting-dialog .accounting-priority.rush{background:#ffe4e4!important;color:#b71c1c!important;border:1px solid #e49a9a!important}
#workspace .main #accounting-dialog .accounting-client:has(.accounting-priority.rush)>.accounting-case-summary{background:#fff2f2!important}
#workspace .main #accounting-dialog .accounting-client:has(.accounting-priority.rush) .accounting-patient{color:#b71c1c!important}
body.dark #workspace .main .case-list>.table-scroll tbody tr:has(.inline-priority.is-urgent)>td,body.dark #workspace .main .table-scroll table tbody tr:has(.inline-priority.is-urgent){background:#45272e!important;color:#ffb2b2!important}
body.dark #workspace .main .case-list>.table-scroll tbody tr:has(.inline-priority.is-urgent) .case-detail-link,body.dark #workspace .main .priority-counts .urgent-count strong{color:#ff9696!important}
body.dark #workspace .main .case-list .inline-priority.is-urgent,body.dark #workspace .main .rush-priority .inline-priority.is-urgent,body.dark #workspace .main #accounting-dialog .accounting-priority.rush{background:#61303a!important;color:#ffb2b2!important;border-color:#a35967!important}
body.dark #workspace .main #accounting-dialog .accounting-client:has(.accounting-priority.rush)>.accounting-case-summary{background:#45272e!important}
body.dark #workspace .main #accounting-dialog .accounting-client:has(.accounting-priority.rush) .accounting-patient{color:#ffb2b2!important}

#workspace .priority-locked-control{position:relative!important;display:inline-flex!important;align-items:center!important;max-width:100%!important;vertical-align:middle!important}
#workspace .priority-locked-control>.inline-priority{pointer-events:none!important}
#workspace .priority-locked-control>.priority-lock-message{position:absolute!important;inset:0!important;z-index:3!important;display:block!important;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;min-width:0!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;color:transparent!important;cursor:help!important;border-radius:6px!important}
#workspace .priority-locked-control>.priority-lock-message:focus-visible{outline:2px solid var(--accent)!important;outline-offset:2px!important}
#workspace .stats .registered-active-panel{display:contents!important}
#workspace .stats .case-deleted-panel[hidden]{display:none!important}
#workspace .main .stats article.registered-split>div{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:10px!important;height:100%!important;align-items:stretch!important}
#workspace .main .stats article.registered-split>.stat-icon{display:none!important}
#workspace .main .stats article.registered-split .registered-active-panel{display:flex!important;flex-direction:column!important;min-width:0!important}
#workspace .main .stats article.registered-split .case-deleted-panel{display:flex!important;flex-direction:column!important;min-width:0!important;border-left:1px solid var(--line)!important;padding-left:10px!important}
#workspace .main .stats article.registered-split .registered-active-panel>p,#workspace .main .stats article.registered-split .case-deleted-panel>p{font-size:10px!important;font-weight:600!important;line-height:1.3!important;color:var(--muted)!important;margin:0 0 6px!important;min-height:26px!important}
#workspace .main .stats article.registered-split #stat-cases{font-size:26px!important;margin:0 0 4px!important;line-height:1.1!important}
#workspace .main .stats article.registered-split .case-type-counts{display:flex!important;flex-direction:column!important;gap:2px!important;margin-top:auto!important}
#workspace .main .stats article.registered-split .case-type-counts>span{font-size:9px!important;line-height:1.15!important}
#workspace .main .stats article.registered-split .case-type-counts b{font-size:10px!important;margin-left:3px!important}
#workspace .main .stats article.registered-split .case-deleted-panel>.case-deleted-summary{display:block!important;font-size:14px!important;line-height:1.3!important;font-weight:700!important;color:#c62828!important;margin:0!important;white-space:normal!important;overflow-wrap:anywhere!important}
body.dark #workspace .main .stats article.registered-split .case-deleted-panel>.case-deleted-summary{color:#ff8c8c!important}
@media(max-width:740px){#workspace .main .stats article.registered-split>div{gap:7px!important}#workspace .main .stats article.registered-split .case-deleted-panel{padding-left:7px!important}#workspace .main .stats article.registered-split .registered-active-panel>p,#workspace .main .stats article.registered-split .case-deleted-panel>p{font-size:9px!important;min-height:24px!important}#workspace .main .stats article.registered-split .case-deleted-panel>.case-deleted-summary{font-size:12px!important}}
#workspace .main .stats article.registered-split .deleted-case-quantity{display:block!important;font-size:26px!important;line-height:1.1!important;font-weight:700!important;color:#c62828!important;margin:0 0 4px!important}
#workspace .main .stats article.registered-split .case-deleted-panel>.case-deleted-summary{font-size:11px!important;line-height:1.25!important}
body.dark #workspace .main .stats article.registered-split .deleted-case-quantity{color:#ff8c8c!important}
#workspace .main .stats article.registered-split .case-deleted-panel[hidden],#workspace .main .stats article.registered-split .case-deleted-summary[hidden]{display:none!important}

/* One typeface across the application, including form controls and summary figures. */
:root{--dentoceramic-font:'Segoe UI',Arial,sans-serif}
body,button,input,select,textarea,table,th,td,dialog{font-family:var(--dentoceramic-font)!important}
#workspace .stats,#workspace .stats *,.app .stats,.app .stats *,.shell .stats,.shell .stats *{font-family:var(--dentoceramic-font)!important}
#workspace .main .stats #stat-cases,#workspace .main .stats #stat-designed,#workspace .main .stats .delivery-counts strong,#workspace .main .stats .priority-counts strong,#workspace .main .stats .deleted-case-quantity{font-family:var(--dentoceramic-font)!important;font-size:26px!important;font-weight:600!important;font-style:normal!important;font-variant-numeric:lining-nums tabular-nums!important;letter-spacing:normal!important;line-height:1.1!important}
#workspace .main .stats article.registered-split .case-deleted-panel{cursor:pointer!important;border-radius:4px!important}
#workspace .main .stats article.registered-split .case-deleted-panel:hover{background:var(--surface2)!important}
#workspace .main .stats article.registered-split .case-deleted-panel:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
#workspace .main .stats article.registered-split .case-deleted-summary{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:100%!important}
#deleted-cases-dialog{width:min(850px,calc(100vw - 28px))!important;max-width:calc(100vw - 28px)!important;height:min(560px,calc(100dvh - 32px))!important;max-height:calc(100dvh - 32px)!important;padding:20px!important;overflow:hidden!important;background:var(--surface)!important;color:var(--ink)!important}
#deleted-cases-dialog[open]{display:flex!important;flex-direction:column!important;gap:12px!important}
.deleted-cases-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:0 0 auto}
.deleted-cases-header h2{font-size:20px!important;margin:0!important}
.deleted-cases-header button{min-height:36px;padding:7px 12px}
#deleted-cases-dialog>input{flex:0 0 auto;min-height:38px;padding:8px 11px;border:1px solid var(--line);border-radius:7px;background:var(--surface2);color:var(--ink)}
#deleted-cases-dialog>.deleted-cases-status{flex:0 0 auto;margin:0;font-size:12px;color:var(--muted)}
.deleted-cases-scroll{flex:1 1 0;min-height:0;overflow:auto;border:1px solid var(--line);border-radius:8px;overscroll-behavior:contain}
#deleted-cases-dialog table{width:100%;border-collapse:collapse;min-width:600px;font-size:13px}
#deleted-cases-dialog th{position:sticky;top:0;z-index:1;text-align:left;padding:10px 12px;background:var(--surface2);color:var(--ink);border-bottom:1px solid var(--line);font-size:12px}
#deleted-cases-dialog td{padding:9px 12px;border-bottom:1px solid var(--line);color:var(--ink);text-align:left}
#deleted-cases-dialog td:first-child{color:#c62828;font-weight:600;white-space:nowrap}
body.dark #deleted-cases-dialog td:first-child{color:#ff8c8c}
@media(max-width:740px){#workspace .main .stats #stat-cases,#workspace .main .stats #stat-designed,#workspace .main .stats .delivery-counts strong,#workspace .main .stats .priority-counts strong,#workspace .main .stats .deleted-case-quantity{font-size:22px!important}#deleted-cases-dialog{padding:14px!important;gap:10px!important}#deleted-cases-dialog>input{font-size:16px!important}.deleted-cases-header h2{font-size:17px!important}}
#workspace .main .stats article.registered-split #stat-cases,#workspace .main .stats article.registered-split .deleted-case-quantity,#workspace .main .stats article.priority-summary .priority-counts strong{font-family:var(--dentoceramic-font)!important;font-size:26px!important;font-weight:600!important;font-style:normal!important;font-variant-numeric:lining-nums tabular-nums!important;letter-spacing:normal!important;line-height:1.1!important}
@media(max-width:740px){#workspace .main .stats article.registered-split #stat-cases,#workspace .main .stats article.registered-split .deleted-case-quantity,#workspace .main .stats article.priority-summary .priority-counts strong{font-size:22px!important}}

#workspace .main .stats .urgent-count[role="button"]{cursor:pointer!important;border-radius:5px!important}
#workspace .main .stats .urgent-count[role="button"]:focus-visible{outline:2px solid #c62828!important;outline-offset:3px!important}
#workspace .main .stats .urgent-count.rush-filter-active{background:#ffe8e8!important}
body.dark #workspace .main .stats .urgent-count.rush-filter-active{background:#61303a!important}
#workspace .rush-cases-filter{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;flex:0 0 auto!important;padding:5px 12px!important;background:#fff2f2!important;border-block:1px solid #efc5c5!important;color:#b71c1c!important;font-size:12px!important;font-weight:600!important}
#workspace .rush-cases-filter[hidden]{display:none!important}
#workspace .rush-cases-filter button{font-size:11px!important;min-height:28px!important;padding:4px 9px!important;white-space:nowrap!important}
body.dark #workspace .rush-cases-filter{background:#45272e!important;border-color:#81505b!important;color:#ffb2b2!important}
@media(max-width:740px){#workspace .rush-cases-filter{padding:5px 9px!important;font-size:10px!important;gap:6px!important}#workspace .rush-cases-filter button{font-size:10px!important;min-height:32px!important}}
#workspace .designer-summary[role="button"]{cursor:pointer!important}
#workspace .designer-summary[role="button"]:focus-visible{outline:2px solid var(--accent)!important;outline-offset:3px!important}
#designer-summary-dialog{width:min(650px,calc(100vw - 28px))!important;height:min(540px,calc(100dvh - 32px))!important;max-height:calc(100dvh - 32px)!important;overflow:hidden!important;background:var(--surface)!important;color:var(--ink)!important;padding:20px!important}
#designer-summary-dialog[open]{display:flex!important;flex-direction:column!important;gap:12px!important}
.designer-summary-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:0 0 auto}
.designer-summary-header h2{font-size:20px!important;margin:0!important}
.designer-summary-header button{min-height:36px;padding:7px 12px}
#designer-summary-dialog>input{flex:0 0 auto;min-height:38px;padding:8px 11px;border:1px solid var(--line);border-radius:7px;background:var(--surface2);color:var(--ink)}
#designer-summary-dialog>p{flex:0 0 auto;margin:0;font-size:12px;color:var(--muted)}
.designer-summary-scroll{flex:1 1 0;min-height:0;overflow:auto;border:1px solid var(--line);border-radius:8px;overscroll-behavior:contain}
#designer-summary-dialog table{width:100%;border-collapse:collapse;font-size:13px}
#designer-summary-dialog thead th{position:sticky;top:0;z-index:1;background:var(--surface2)}
#designer-summary-dialog td,#designer-summary-dialog th{padding:10px 12px;border-bottom:1px solid var(--line);text-align:left;color:var(--ink)}
#designer-summary-dialog td:last-child,#designer-summary-dialog th:last-child{text-align:right;font-variant-numeric:tabular-nums}
#designer-summary-dialog tfoot th{position:sticky;bottom:0;background:var(--surface2);font-weight:650}
@media(max-width:740px){#designer-summary-dialog{padding:14px!important;gap:10px!important}#designer-summary-dialog>input{font-size:16px!important}.designer-summary-header h2{font-size:17px!important}}

/* A shared type scale keeps every summary-card heading readable and consistent. */
#workspace .main .stats article>div>p,#workspace .main .stats article.priority-summary>div>p,#workspace .main .stats article.designer-summary>div>p,#workspace .main .stats article.registered-split .registered-active-panel>p,#workspace .main .stats article.registered-split .case-deleted-panel>p{font-family:var(--dentoceramic-font)!important;font-size:12px!important;font-weight:600!important;line-height:14px!important;letter-spacing:0!important;min-height:28px!important;height:28px!important;max-height:28px!important;margin-bottom:4px!important;color:var(--ink)!important;overflow-wrap:normal!important}
#workspace .main .stats article.priority-summary>div{grid-template-rows:28px minmax(0,1fr) 4px 15px!important;gap:3px!important}
#workspace .main .stats article.priority-summary>div>p{margin-bottom:0!important}
#workspace .main .stats .priority-counts>span{font-size:11px!important;font-weight:500!important;line-height:1.15!important}
#workspace .main .stats .delivery-counts{margin-top:6px!important}
#workspace .main .stats .delivery-counts>div{height:auto!important;min-height:0!important}
#workspace .main .stats .delivery-counts span{font-size:11px!important;font-weight:500!important;line-height:14px!important;min-height:28px!important;overflow-wrap:anywhere!important}
#workspace .main .stats .delivery-counts strong{margin-bottom:5px!important}
#workspace .main .stats .case-type-counts>span,#workspace .main .stats article.registered-split .case-type-counts>span{font-size:11px!important;font-weight:500!important;line-height:1.2!important}
#workspace .main .stats .case-type-counts b,#workspace .main .stats article.registered-split .case-type-counts b{font-size:11px!important;font-weight:600!important}
#workspace .main .stats article.priority-summary #annual-period{font-size:11px!important;font-weight:500!important;line-height:15px!important}
.app .main .stats .stat small,.shell .stats .stat label{font-family:var(--dentoceramic-font)!important;font-size:12px!important;font-weight:600!important;line-height:1.3!important;color:var(--ink)!important}
@media(max-width:740px){
 #workspace .main .stats article>div>p,#workspace .main .stats article.priority-summary>div>p,#workspace .main .stats article.designer-summary>div>p,#workspace .main .stats article.registered-split .registered-active-panel>p,#workspace .main .stats article.registered-split .case-deleted-panel>p{font-size:11px!important;line-height:14px!important}
 #workspace .main .stats .priority-counts>span,#workspace .main .stats .delivery-counts span,#workspace .main .stats .case-type-counts>span,#workspace .main .stats article.registered-split .case-type-counts>span{font-size:10px!important}
 #workspace .main .stats .delivery-counts span{line-height:12px!important;min-height:24px!important}
 #workspace .main .stats .case-type-counts b,#workspace .main .stats article.registered-split .case-type-counts b{font-size:10px!important}
 #workspace .main .stats article.priority-summary #annual-period{font-size:10px!important}
 .app .main .stats .stat small,.shell .stats .stat label{font-size:11px!important}
}
/* A compact, aligned designer ledger: one line per name and quantity. */
#designer-summary-dialog .designer-summary-scroll{border-radius:9px;border-color:var(--line)}
#designer-summary-dialog table{table-layout:fixed!important;width:100%!important;min-width:0!important;border-collapse:collapse!important}
#designer-summary-dialog th:first-child,#designer-summary-dialog td:first-child{width:auto!important;text-align:left!important}
#designer-summary-dialog th:last-child,#designer-summary-dialog td:last-child{width:110px!important;text-align:right!important;font-variant-numeric:tabular-nums!important}
#designer-summary-dialog th,#designer-summary-dialog td{height:34px!important;padding:6px 12px!important;font-size:13px!important;line-height:18px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;border-bottom:1px solid var(--line)!important;vertical-align:middle!important}
#designer-summary-dialog thead th{height:36px!important;font-size:12px!important;font-weight:600!important;letter-spacing:.1px!important;background:var(--surface2)!important}
#designer-summary-dialog tbody tr:nth-child(even)>td{background:var(--surface2)!important}
#designer-summary-dialog tbody tr:hover>td{background:color-mix(in srgb,var(--accent) 9%,var(--surface))!important}
#designer-summary-dialog tbody td:last-child{font-weight:600!important}
#designer-summary-dialog tfoot th{font-size:13px!important;font-weight:650!important;border-top:2px solid var(--line)!important;background:var(--surface2)!important}
@media(max-width:740px){#designer-summary-dialog th,#designer-summary-dialog td{padding:6px 10px!important;font-size:12px!important;height:34px!important}#designer-summary-dialog th:last-child,#designer-summary-dialog td:last-child{width:86px!important}}

/* Keep the deletion actor and timestamp adjacent instead of stretching their columns. */
#deleted-cases-dialog table{table-layout:fixed!important;width:100%!important;min-width:580px!important}
#deleted-cases-dialog th,#deleted-cases-dialog td{padding:6px 9px!important;height:34px!important;line-height:18px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;vertical-align:middle!important}
#deleted-cases-dialog th:nth-child(1),#deleted-cases-dialog td:nth-child(1){width:82px!important}
#deleted-cases-dialog th:nth-child(3),#deleted-cases-dialog td:nth-child(3){width:124px!important;padding-right:6px!important}
#deleted-cases-dialog th:nth-child(4),#deleted-cases-dialog td:nth-child(4){width:216px!important;padding-left:6px!important}
.app #deletions-view table{table-layout:fixed!important;min-width:610px!important;width:100%!important}
.app #deletions-view th,.app #deletions-view td{padding:7px 10px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;line-height:18px!important}
.app #deletions-view th:nth-child(1),.app #deletions-view td:nth-child(1){width:100px!important}
.app #deletions-view th:nth-child(2),.app #deletions-view td:nth-child(2){width:124px!important;padding-right:6px!important}
.app #deletions-view th:nth-child(3),.app #deletions-view td:nth-child(3){width:216px!important;padding-left:6px!important}
#deleted-cases-dialog table,#deleted-cases-dialog th,#deleted-cases-dialog td,.app #deletions-view table,.app #deletions-view th,.app #deletions-view td{box-sizing:border-box!important}
