:root{--primary: #059669;--secondary: #047857;--bg: #ecfdf5;--surface: #ffffff;--text: #064e3b;--border: #a7f3d0;--danger: #dc2626;--radius: 14px;--shadow: 0 8px 30px rgba(5, 150, 105, .12);--primary-soft: rgba(5, 150, 105, .1);--text-muted: rgba(6, 78, 59, .72);font-family:DM Sans,system-ui,sans-serif}*{box-sizing:border-box}body{margin:0;background:linear-gradient(165deg,var(--bg) 0%,#d1fae5 50%,#f8fafc 100%);color:var(--text);min-height:100dvh}#root{max-width:720px;margin:0 auto;min-height:100dvh}.app-shell{display:flex;flex-direction:column;min-height:100dvh;padding:1rem 1rem 2rem}.brand-row{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem}.brand-row>div:first-child,.brand-title-wrap{flex:1;text-align:center}.brand-home{display:block;width:100%;margin:0;padding:0;border:none;background:none;font:inherit;color:inherit;cursor:pointer;text-align:center}.brand-home:hover h1,.brand-home:focus-visible h1{opacity:.92}.brand-home:focus-visible{outline:2px solid var(--primary);outline-offset:4px;border-radius:8px}.brand-home h1,.brand-home p{pointer-events:none}.header-actions{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:.35rem;flex-shrink:0;margin-top:.35rem;overflow:visible}.btn-signout{display:inline-flex;align-items:center;justify-content:center;width:2.25rem;height:2.25rem;padding:0;border:1px solid var(--border);border-radius:8px;background:#fff;color:var(--primary);cursor:pointer;flex-shrink:0}.btn-signout:hover{border-color:var(--primary);background:#ecfdf5}.portal-badge{display:inline-block;margin:0 0 .35rem;padding:.2rem .55rem;border-radius:999px;background:var(--primary);color:#fff;font-size:.65rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase}.brand h1{margin:0;font-size:1.5rem;font-weight:700;color:var(--primary)}.brand p.sub{margin:.25rem 0 0;font-size:.85rem;opacity:.75}.stepper{display:flex;gap:4px;margin-bottom:1.25rem}.step-dot{flex:1;height:4px;border-radius:2px;background:var(--border)}.step-dot.active,.step-dot.done{background:var(--primary)}.card{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);padding:1.25rem;border:1px solid var(--border)}.kpi-strip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem;margin:0 0 1rem}@media(min-width:380px){.kpi-strip{grid-template-columns:repeat(auto-fit,minmax(5.25rem,1fr))}}.kpi-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.15rem;min-height:3.5rem;padding:.5rem .35rem;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:inherit;font:inherit;cursor:pointer;transition:border-color .15s,background .15s}.kpi-tile:hover:not(:disabled){border-color:var(--primary);background:var(--primary-soft);color:var(--text)}.kpi-tile--selected{border-color:var(--primary);background:var(--primary-soft);box-shadow:0 0 0 1px var(--primary);color:var(--text)}.kpi-tile:disabled{cursor:default}.kpi-tile__value{font-size:1.35rem;font-weight:700;line-height:1.1;color:var(--primary)}.kpi-tile__label{font-size:.68rem;font-weight:600;line-height:1.15;text-align:center;color:var(--text-muted)}.card h2{margin:0 0 .5rem;font-size:1.15rem}.card p.sub{margin:0 0 1rem;font-size:.9rem;opacity:.8}.card p.sub.hint{margin-top:-.5rem;font-size:.8rem}.panel{background:#f0fdf4;border:1px solid var(--border);border-radius:10px;padding:.85rem 1rem;margin-bottom:1rem}.panel h3{margin:0 0 .5rem;font-size:.95rem}label{display:block;font-size:.8rem;font-weight:600;margin-bottom:.35rem}input,select{width:100%;padding:.75rem .9rem;border:1px solid var(--border);border-radius:10px;font:inherit;margin-bottom:.85rem;background:#fff}.btn{display:inline-flex;align-items:center;justify-content:center;width:100%;padding:.85rem 1rem;border:none;border-radius:10px;font:inherit;font-weight:600;cursor:pointer}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-primary{background:var(--primary);color:#fff}.btn-secondary{background:transparent;color:var(--primary);border:1px solid var(--primary)}.btn-row{display:flex;flex-direction:column;gap:.5rem}.btn-text{background:none;border:none;color:var(--primary);font:inherit;font-size:.85rem;font-weight:600;cursor:pointer;padding:.35rem}.btn-icon-refresh,.btn-icon-search{display:inline-flex;align-items:center;justify-content:center;width:2.25rem;height:2.25rem;padding:0;border:1px solid var(--border);border-radius:8px;background:#fff;color:var(--primary);cursor:pointer;flex-shrink:0}.btn-icon-search.open{border-color:var(--primary);background:#ecfdf5}.operations-title-row{margin-bottom:.15rem}.operations-title-row h2{margin:0;flex:1}.btn-icon-refresh:hover:not(:disabled),.btn-icon-search:hover:not(:disabled){border-color:var(--primary);background:#ecfdf5}.btn-icon-refresh:disabled{opacity:.55;cursor:not-allowed}.btn-icon-refresh.spinning svg{animation:refresh-spin .75s linear infinite}@keyframes refresh-spin{to{transform:rotate(360deg)}}.tab-row-refresh{margin-left:auto}.card-title-row{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-bottom:.15rem}.card-title-row h2{margin:0}.alert{background:#fef2f2;color:var(--danger);padding:.65rem .85rem;border-radius:8px;font-size:.85rem;margin-bottom:1rem}.tab-row{display:flex;align-items:center;gap:.5rem;margin-bottom:1rem;flex-wrap:wrap}.tab{padding:.45rem .75rem;border-radius:999px;border:1px solid var(--border);background:#fff;font:inherit;font-size:.85rem;cursor:pointer}.tab.active{background:var(--primary);color:#fff;border-color:var(--primary)}.queue-list{list-style:none;padding:0;margin:0}.queue-card{width:100%;text-align:left;border:1px solid var(--border);border-radius:10px;padding:.85rem 1rem;margin-bottom:.5rem;background:#fff;cursor:pointer;font:inherit;color:inherit}.queue-card:hover{border-color:var(--primary)}.queue-card-head{display:flex;justify-content:space-between;align-items:center;gap:.5rem;margin-bottom:.35rem}.badge{padding:.15rem .5rem;border-radius:6px;background:#d1fae5;color:var(--secondary);font-size:.72rem;font-weight:600;white-space:nowrap}.badge.status-queued{background:#e0f2fe;color:#0369a1}.badge.status-insurance_verified{background:#ede9fe;color:#5b21b6}.badge.status-preparing{background:#fef3c7;color:#b45309}.badge.status-ready_for_dispatch{background:#ffedd5;color:#c2410c}.badge.status-dispatched{background:#e5e7eb;color:#374151}.queue-card-done{opacity:.92;background:#f9fafb}.queue-card.list-card-shell{width:100%;cursor:default;display:block}.queue-card.list-card-shell .queue-card-head{margin-bottom:0}.queue-card .list-card-summary-meta{margin:.25rem 0 0;font-size:.8rem;opacity:.85;line-height:1.35}.queue-card .list-card-title{display:block;margin:.2rem 0 0;font-size:.95rem}.queue-card-head .tracking-id-inline{margin:0;flex:1;min-width:0;text-align:left}.queue-card-head .tracking-id-inline code{font-size:.8rem;font-weight:700}.list-card-top{display:flex;align-items:flex-start;gap:.35rem}.list-card-primary{flex:1;min-width:0;border:none;background:transparent;padding:0;margin:0;font:inherit;color:inherit;text-align:left;cursor:pointer}.list-card-collapse-toggle{flex-shrink:0;width:1.65rem;height:1.65rem;padding:0;border:1px solid var(--border);border-radius:6px;background:#fff;color:var(--primary);cursor:pointer;display:inline-flex;align-items:center;justify-content:center}.list-card-collapse-toggle:hover{border-color:var(--primary);background:#ecfdf5}.list-card-body{margin-top:.5rem;padding-top:.5rem;border-top:1px solid var(--border)}.order-meta{margin:.35rem 0 0;font-size:.72rem;opacity:.85;display:flex;flex-wrap:wrap;gap:.15rem .5rem}.filter-bar{margin-bottom:.85rem;padding:.65rem .75rem;border-radius:10px;border:1px solid var(--border);background:#ffffffa6}.filter-row{display:flex;align-items:flex-start;gap:.5rem;margin-bottom:.45rem}.filter-row:last-child{margin-bottom:0}.filter-label{flex:0 0 2.75rem;font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;opacity:.55;padding-top:.35rem}.filter-chips{display:flex;flex-wrap:wrap;gap:.3rem;flex:1;min-width:0}.filter-chip{display:inline-flex;align-items:center;gap:.25rem;padding:.28rem .5rem;border-radius:999px;border:1px solid var(--border);background:#fff;font:inherit;font-size:.7rem;font-weight:600;cursor:pointer;color:var(--text);white-space:nowrap}.filter-chip.active{background:var(--primary);color:#fff;border-color:var(--primary)}.filter-chip .chip-count{opacity:.8;font-weight:700;font-size:.65rem}.filter-row-date{flex-wrap:wrap}.filter-date-col{flex:1;min-width:0}.filter-date-fields{display:flex;flex-wrap:wrap;align-items:flex-end;gap:.5rem}.filter-date-label{display:flex;flex-direction:column;gap:.2rem;font-size:.7rem;font-weight:600;opacity:.75}.filter-date-label input[type=date]{font:inherit;font-size:.85rem;padding:.35rem .5rem;border:1px solid var(--border);border-radius:8px;background:#fff;color:var(--text);min-width:9.5rem}.filter-date-clear{align-self:flex-end;padding:.4rem .65rem;border:1px solid var(--border);border-radius:8px;background:#fff;color:var(--primary);font:inherit;font-size:.75rem;font-weight:600;cursor:pointer;white-space:nowrap}.filter-date-clear:hover{border-color:var(--primary);background:#ecfdf5}.filter-date-clear.active{background:var(--primary);color:#fff;border-color:var(--primary)}.filter-date-summary{margin:.35rem 0 0;font-size:.75rem;opacity:.7}.filter-status-panel{flex:1;min-width:0}.filter-chips-primary{margin-bottom:.35rem;padding-bottom:.35rem;border-bottom:1px dashed var(--border)}.filter-group{margin-bottom:.25rem;border-radius:8px;border:1px solid transparent}.filter-group[open]{border-color:var(--border);background:#ffffff80;padding:0 .4rem .4rem}.filter-group-summary{cursor:pointer;font-size:.78rem;font-weight:700;padding:.4rem .15rem;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:.5rem}.filter-group-summary::-webkit-details-marker{display:none}.filter-group-summary:before{content:"▸";margin-right:.35rem;font-size:.65rem;opacity:.6}.filter-group[open] .filter-group-summary:before{content:"▾"}.filter-group-hint{margin:0 0 .35rem 1rem;font-size:.68rem;opacity:.65;line-height:1.35}.filter-bar-panel{margin:0;padding:0;border:none;background:transparent}.btn-filter-menu{position:relative;display:inline-flex;align-items:center;justify-content:center;width:2.25rem;height:2.25rem;padding:0;border:1px solid var(--border);border-radius:8px;background:#fff;color:var(--primary);cursor:pointer;flex-shrink:0}.btn-filter-menu:hover,.btn-filter-menu.open{border-color:var(--primary);background:#ecfdf5}.btn-notifications{position:relative;overflow:visible;display:inline-flex;align-items:center;justify-content:center;width:2.25rem;height:2.25rem;padding:0;border:1px solid var(--border);border-radius:8px;background:#fff;color:var(--primary);cursor:pointer;flex-shrink:0}.btn-notifications:hover,.btn-notifications.open{border-color:var(--primary);background:#ecfdf5}.notifications-badge{position:absolute;top:-4px;right:-4px;z-index:2;min-width:1rem;height:1rem;padding:0 .25rem;border-radius:999px;background:var(--danger);color:#fff;font-size:.65rem;font-weight:700;line-height:1rem;text-align:center;pointer-events:none}.notice-list--drawer{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.75rem}.notice-list--drawer .notice-item{position:relative;padding:.75rem 2.25rem .75rem .75rem;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface)}.notifications-toolbar{display:flex;justify-content:flex-end;margin-bottom:.75rem}.btn-notice-dismiss-all{display:inline-flex;align-items:center;gap:.35rem;padding:.25rem .5rem;border:none;border-radius:6px;background:transparent;color:inherit;font-size:.8rem;cursor:pointer;opacity:.75}.btn-notice-dismiss-all:hover:not(:disabled){opacity:1;background:#0000000d}.btn-notice-dismiss-all:disabled{opacity:.4;cursor:not-allowed}.btn-notice-dismiss-all-label{font-size:.75rem}.notice-dismiss{position:absolute;top:.35rem;right:.35rem;z-index:2;width:1.75rem;height:1.75rem;padding:0;border:none;border-radius:6px;background:transparent;color:inherit;font-size:1.35rem;line-height:1;cursor:pointer;opacity:.55}.notice-dismiss:hover:not(:disabled){opacity:1;background:#0000000f}.notice-dismiss:disabled{opacity:.3;cursor:not-allowed}.filter-menu-icon{display:block;width:1rem;height:.75rem;background:linear-gradient(to bottom,currentColor 0 2px,transparent 2px 5px,currentColor 5px 7px,transparent 7px 10px,currentColor 10px 12px)}.filter-menu-badge{position:absolute;top:4px;right:4px;width:7px;height:7px;border-radius:50%;background:var(--primary);border:1.5px solid #fff}.filter-drawer-root{position:fixed;top:0;right:0;bottom:0;left:0;z-index:200;display:flex;justify-content:flex-end}.filter-backdrop{position:absolute;top:0;right:0;bottom:0;left:0;border:none;padding:0;margin:0;background:#0f172a73;cursor:pointer}.filter-drawer{position:relative;z-index:1;width:min(100%,22rem);max-width:100%;height:100%;background:var(--surface);box-shadow:-8px 0 32px #00000026;display:flex;flex-direction:column;animation:filter-drawer-in .22s ease-out}@keyframes filter-drawer-in{0%{transform:translate(100%)}to{transform:translate(0)}}.filter-drawer-head{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.85rem 1rem;border-bottom:1px solid var(--border);flex-shrink:0}.filter-drawer-head h2{margin:0;font-size:1rem;font-weight:700;color:var(--primary)}.filter-drawer-close{width:2rem;height:2rem;border:none;border-radius:8px;background:transparent;font-size:1.35rem;line-height:1;cursor:pointer;color:var(--text);opacity:.7}.filter-drawer-close:hover{opacity:1;background:#ecfdf5}.filter-drawer-body{flex:1;overflow-y:auto;padding:.75rem 1rem 1.25rem;-webkit-overflow-scrolling:touch}.filter-drawer-body .filter-label{flex:0 0 3rem}.badge-inline{display:inline-block;margin-bottom:1rem;padding:.2rem .55rem;border-radius:6px;background:#d1fae5;font-size:.8rem;font-weight:600}.stock-table-wrap{overflow-x:auto}.stock-table{width:100%;border-collapse:collapse;font-size:.85rem}.stock-table th,.stock-table td{padding:.5rem .4rem;text-align:left;border-bottom:1px solid var(--border)}.stock-table tr.low{background:#fef3c7}.meds,.stock-checks,.tracking{margin:0 0 .75rem;padding-left:1.1rem;font-size:.9rem}.stock-checks .shortage{color:var(--danger);font-weight:600}.tracking .done{color:var(--primary);font-weight:600}.empty-hint{font-size:.85rem;line-height:1.45}.tracking-id{margin:.25rem 0 .35rem;font-size:.78rem;line-height:1.35;text-align:left}.tracking-id-prominent{padding:.65rem .75rem;background:#ecfdf5;border:1px solid var(--border);border-radius:8px;font-size:.85rem}.tracking-id code{font-family:ui-monospace,Cascadia Code,monospace;font-size:.88rem;font-weight:700;color:var(--primary)}.tracking-hint{display:block;margin-top:.2rem;font-size:.72rem;opacity:.8}.tracking-id-prominent .tracking-hint{display:inline;margin-top:0}.verify-panel{margin-bottom:1rem}.verify-panel h3{margin:0 0 .35rem;font-size:1rem}.verify-row{display:flex;align-items:stretch;gap:.5rem;margin-top:.5rem}.verify-row input{flex:1 1 8rem;min-width:8rem;width:auto;margin-bottom:0;padding:.55rem .65rem;border:1px solid var(--border);border-radius:8px;font:inherit;text-transform:uppercase}.verify-row .btn{width:auto;flex:0 0 auto;white-space:nowrap;margin-bottom:0;padding:.55rem 1rem}.verify-result{margin-top:.75rem;padding-top:.75rem;border-top:1px solid var(--border)}.queue-card .tracking-id{margin:.15rem 0 .25rem}.menu-section{margin-bottom:1.1rem;padding-bottom:1rem;border-bottom:1px solid var(--border)}.menu-section:last-child{margin-bottom:0;padding-bottom:0;border-bottom:none}.menu-section-filters{padding-bottom:0}.menu-section-title{margin:0 0 .65rem;font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;opacity:.6}.menu-profile-name{margin:0 0 .5rem;font-size:1.05rem;font-weight:700;color:var(--primary)}.menu-profile-dl{margin:0 0 .75rem;font-size:.82rem}.menu-profile-dl div{display:flex;justify-content:space-between;gap:.5rem;padding:.28rem 0;border-bottom:1px dashed var(--border)}.menu-profile-dl dt{opacity:.65;font-weight:600}.menu-profile-dl dd{margin:0;text-align:right}.menu-profile-edit{width:100%}.menu-profile-form label{display:block;font-size:.75rem;font-weight:600;margin:.5rem 0 .25rem;opacity:.75}.menu-profile-form input{width:100%;font:inherit;font-size:.85rem;padding:.4rem .5rem;border:1px solid var(--border);border-radius:8px;background:#fff;color:var(--text)}.menu-profile-form-actions{display:flex;gap:.5rem;margin-top:.75rem}.menu-profile-form-actions .btn{flex:1;margin:0}.menu-pref-row{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:.65rem}.menu-pref-row:last-child{margin-bottom:0}.menu-pref-label{font-size:.85rem;font-weight:600}.menu-segmented{display:inline-flex;border:1px solid var(--border);border-radius:8px;overflow:hidden;background:#fff}.menu-segmented button{border:none;background:transparent;color:var(--text);font:inherit;font-size:.75rem;font-weight:600;padding:.35rem .65rem;cursor:pointer}.menu-segmented button.active{background:var(--primary);color:#fff}.menu-switch{display:inline-flex;align-items:center;gap:.4rem;border:1px solid var(--border);border-radius:999px;padding:.2rem .45rem .2rem .2rem;background:#e2e8f0;cursor:pointer;font:inherit}.menu-switch.on{background:var(--primary);border-color:var(--primary)}.menu-switch-thumb{width:1.25rem;height:1.25rem;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0003}.menu-switch-text{font-size:.72rem;font-weight:700;min-width:1.5rem;color:var(--text)}.menu-switch.on .menu-switch-text{color:#fff}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.btn-back{margin-bottom:.75rem;padding:0;font-size:.8rem}.filter-block{margin-bottom:.75rem}.filter-block:last-child{margin-bottom:0}.filter-block-label{display:block;font-size:.68rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted, rgba(0, 0, 0, .55));margin-bottom:.35rem}.filter-date-compact{display:flex;align-items:center;flex-wrap:wrap;gap:.35rem}.filter-date-input{font:inherit;font-size:.78rem;padding:.28rem .4rem;border:1px solid var(--border);border-radius:6px;background:var(--input-bg, #fff);color:var(--text);min-width:0;width:7.25rem;max-width:42vw}.filter-date-sep{font-size:.75rem;opacity:.5;padding:0 .05rem}.filter-date-clear-sm{padding:.28rem .55rem;font-size:.72rem;min-height:1.85rem}.menu-section-profile{padding-bottom:.85rem}.menu-profile-row{display:flex;align-items:center;justify-content:space-between;gap:.65rem}.menu-section-profile .menu-profile-name{margin:0;font-size:1rem;font-weight:700;color:var(--text);flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.menu-profile-edit-btn{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;width:2.1rem;height:2.1rem;padding:0;border:1px solid var(--border);border-radius:10px;background:var(--surface-2, #f8fafc);color:var(--primary);cursor:pointer}.menu-profile-edit-btn:hover{border-color:var(--primary);background:var(--primary-soft, rgba(0, 0, 0, .04))}.list-pagination{margin-top:1rem;padding-top:.75rem;border-top:1px solid var(--border)}.list-pagination-meta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.5rem;margin-bottom:.5rem;font-size:.78rem;color:var(--text-muted, rgba(0, 0, 0, .6))}.list-pagination-size select{font:inherit;font-size:.78rem;padding:.25rem .45rem;border:1px solid var(--border);border-radius:6px;background:var(--input-bg, #fff);color:var(--text)}.list-pagination-nav{display:flex;align-items:center;justify-content:center;gap:.25rem}.page-nav-btn{min-width:2rem;height:2rem;padding:0 .4rem;border:1px solid var(--border);border-radius:6px;background:var(--surface-2, #fff);color:var(--text);font:inherit;font-size:1rem;line-height:1;cursor:pointer}.page-nav-btn:hover:not(:disabled){border-color:var(--primary);color:var(--primary)}.page-nav-btn:disabled{opacity:.35;cursor:not-allowed}.list-pagination-page{font-size:.78rem;font-weight:600;padding:0 .5rem;min-width:4rem;text-align:center;color:var(--text-muted, rgba(0, 0, 0, .65))}html[data-theme=dark]{--bg: #0c1222;--surface: #1a2332;--surface-2: #243044;--input-bg: #243044;--text: #f1f5f9;--text-muted: #94a3b8;--border: #3d4f66;--primary: #34d399;--primary-soft: rgba(52, 211, 153, .12);--shadow: 0 8px 32px rgba(0, 0, 0, .45);color-scheme:dark}html[data-theme=dark] body{background:linear-gradient(165deg,#0c1222,#065f46 35%,#0c1222);color:var(--text)}html[data-theme=dark] .brand h1,html[data-theme=dark] .portal-badge,html[data-theme=dark] .filter-drawer-head h2{color:var(--primary)}html[data-theme=dark] .brand p,html[data-theme=dark] .sub,html[data-theme=dark] .hint,html[data-theme=dark] .care-meta,html[data-theme=dark] .meta,html[data-theme=dark] .empty,html[data-theme=dark] .care-empty,html[data-theme=dark] .filter-block-label,html[data-theme=dark] .menu-section-title,html[data-theme=dark] .list-pagination-meta,html[data-theme=dark] .list-pagination-page{color:var(--text-muted)}html[data-theme=dark] .kpi-tile{background:var(--surface-2);color:var(--text)}html[data-theme=dark] .kpi-tile:hover:not(:disabled),html[data-theme=dark] .kpi-tile--selected{background:var(--primary-soft);border-color:var(--primary);color:var(--text)}html[data-theme=dark] .kpi-tile__value{color:var(--primary)}html[data-theme=dark] .kpi-tile__label{color:var(--text);opacity:.92}html[data-theme=dark] .card,html[data-theme=dark] .filter-drawer,html[data-theme=dark] .care-card,html[data-theme=dark] .care-card-upcoming,html[data-theme=dark] .schedule-item,html[data-theme=dark] .queue-card,html[data-theme=dark] .panel,html[data-theme=dark] .menu-segmented,html[data-theme=dark] .filter-date-input,html[data-theme=dark] .list-pagination-size select,html[data-theme=dark] .menu-profile-form input,html[data-theme=dark] input,html[data-theme=dark] select,html[data-theme=dark] textarea,html[data-theme=dark] .btn-signout,html[data-theme=dark] .btn-header,html[data-theme=dark] .btn-filter-menu,html[data-theme=dark] .btn-notifications,html[data-theme=dark] .list-card-collapse-toggle,html[data-theme=dark] .btn-icon-refresh,html[data-theme=dark] .btn-icon-search,html[data-theme=dark] .menu-profile-edit-btn,html[data-theme=dark] .page-nav-btn{background:var(--surface);color:var(--text);border-color:var(--border)}html[data-theme=dark] .filter-chip{background:var(--surface-2);color:var(--text);border-color:var(--border)}html[data-theme=dark] .filter-chip.active,html[data-theme=dark] .menu-segmented button.active,html[data-theme=dark] .filter-date-clear.active{background:var(--primary);color:#0f172a;border-color:var(--primary)}html[data-theme=dark] .filter-chip.active .chip-count{color:inherit;opacity:.85}html[data-theme=dark] .menu-switch.on .menu-switch-text{color:#0f172a}html[data-theme=dark] .care-muted{color:var(--text-muted);opacity:1}html[data-theme=dark] code{background:var(--surface-2);color:var(--text)}html[data-theme=dark] .alert{background:#450a0a;color:#fecaca}html[data-theme=dark] .alert-info{background:#164e63;color:#cffafe}html[data-theme=dark] .filter-drawer-close:hover,html[data-theme=dark] .filter-date-clear:hover:not(.active),html[data-theme=dark] .menu-profile-edit-btn:hover,html[data-theme=dark] .page-nav-btn:hover:not(:disabled){background:var(--surface-2)}html[data-theme=dark] .stock-table th{background:var(--surface-2);color:var(--text-muted)}html[data-theme=dark] .stock-table td{border-color:var(--border);color:var(--text)}.filter-date-compact{display:flex;align-items:center;gap:.4rem;flex-wrap:wrap;width:100%}.filter-date-input{flex:1 1 6.75rem;min-width:6.75rem;max-width:100%;height:2rem;padding:.25rem .45rem;box-sizing:border-box;line-height:1.2}.filter-date-sep{flex-shrink:0;line-height:1;color:var(--text-muted, rgba(0, 0, 0, .45))}.filter-date-clear-link{flex-shrink:0;margin:0;padding:0 .35rem;height:2rem;border:none;background:transparent;color:var(--primary);font:inherit;font-size:.75rem;font-weight:600;cursor:pointer;text-decoration:underline;text-underline-offset:2px;white-space:nowrap}.filter-date-clear-link:hover{opacity:.85}.stock-status{display:inline-block;padding:.15rem .5rem;border-radius:6px;font-size:.72rem;font-weight:600;white-space:nowrap}.stock-status-ok{background:#d1fae5;color:#065f46}.stock-status-low{background:#fef3c7;color:#92400e}.badge.status-shortage{background:#fee2e2;color:#991b1b}.badge.status-rerouted{background:#e0e7ff;color:#3730a3}html[data-theme=dark] .stock-status-ok{background:#064e3b;color:#6ee7b7}html[data-theme=dark] .stock-status-low{background:#78350f;color:#fde68a}html[data-theme=dark] .stock-table tr.low{background:#78350f59}html[data-theme=dark] .stock-table tr.low td{color:var(--text)}html[data-theme=dark] .badge.status-shortage{background:#7f1d1d;color:#fecaca}html[data-theme=dark] .badge.status-rerouted{background:#312e81;color:#c7d2fe}html[data-theme=dark] .badge.status-queued{background:#0c4a6e;color:#bae6fd}html[data-theme=dark] .badge.status-insurance_verified{background:#4c1d95;color:#ddd6fe}html[data-theme=dark] .badge.status-preparing{background:#78350f;color:#fde68a}html[data-theme=dark] .badge.status-ready_for_dispatch{background:#7c2d12;color:#fed7aa}html[data-theme=dark] .badge.status-dispatched{background:#374151;color:#e5e7eb}html[data-theme=dark] .badge{background:var(--surface-2);color:var(--text)}html[data-theme=dark] .filter-date-clear-link{color:var(--primary)}html[data-theme=dark] .tab{background:var(--surface-2);color:var(--text);border-color:var(--border)}html[data-theme=dark] .tab.active{background:var(--primary);color:#0f172a;border-color:var(--primary)}html[data-theme=dark] .btn-text,html[data-theme=dark] .btn-text.refresh{color:var(--primary)}html[data-theme=dark] .care-detail-panel,html[data-theme=dark] .visit-refs-prominent,html[data-theme=dark] .tracking-id-prominent,html[data-theme=dark] .ai-rationale,html[data-theme=dark] .panel-completed{background:var(--surface-2);color:var(--text);border-color:var(--border)}html[data-theme=dark] .care-detail-panel h3,html[data-theme=dark] .care-notes,html[data-theme=dark] .care-detail-list,html[data-theme=dark] .care-detail-list li,html[data-theme=dark] .care-detail-list strong,html[data-theme=dark] .panel h3,html[data-theme=dark] .panel p,html[data-theme=dark] .notes-body,html[data-theme=dark] .meds,html[data-theme=dark] .meds li,html[data-theme=dark] .stock-checks,html[data-theme=dark] .stock-checks li,html[data-theme=dark] .tracking,html[data-theme=dark] .tracking li,html[data-theme=dark] .card h2,html[data-theme=dark] .card>p:not(.sub):not(.hint){color:var(--text)}html[data-theme=dark] .care-detail-panel .care-meta,html[data-theme=dark] .panel .sub,html[data-theme=dark] .panel .hint{color:var(--text-muted);opacity:1}html[data-theme=dark] .appointment-id,html[data-theme=dark] .appointment-id code,html[data-theme=dark] .tracking-id,html[data-theme=dark] .tracking-id-prominent,html[data-theme=dark] .tracking-hint{color:var(--text)}html[data-theme=dark] .appointment-id code{background:var(--surface);color:var(--text)}html[data-theme=dark] .tracking-id code{color:var(--primary)}html[data-theme=dark] .care-badge{background:var(--surface);color:var(--text);border:1px solid var(--border)}html[data-theme=dark] .care-badge-done{background:#064e3b;color:#6ee7b7;border-color:transparent}html[data-theme=dark] .care-badge-active{background:#78350f;color:#fde68a;border-color:transparent}html[data-theme=dark] .care-badge-pending{background:var(--primary-soft);color:var(--primary);border-color:transparent}html[data-theme=dark] .badge-inline{background:var(--primary-soft);color:var(--primary)}html[data-theme=dark] .queue-card-done{background:var(--surface-2);opacity:1}html[data-theme=dark] .btn-icon{background:var(--surface-2);color:var(--primary);border-color:var(--border)}html[data-theme=dark] .btn-icon:hover{background:var(--surface)}html[data-theme=dark] .btn-icon-refresh,html[data-theme=dark] .btn-icon-search{background:var(--surface-2);color:var(--primary);border-color:var(--border)}html[data-theme=dark] .btn-icon-refresh:hover:not(:disabled),html[data-theme=dark] .btn-icon-search:hover:not(:disabled),html[data-theme=dark] .btn-icon-search.open{background:var(--primary-soft);border-color:var(--primary);color:var(--primary)}html[data-theme=dark] .btn-notifications:hover,html[data-theme=dark] .btn-notifications.open,html[data-theme=dark] .list-card-collapse-toggle:hover{background:var(--primary-soft);border-color:var(--primary);color:var(--primary)}html[data-theme=dark] .routing-trail.panel{background:var(--surface-2);color:var(--text)}
