:root{--bg:#f2f7f8;--surface:#fff;--surface-alt:#f8fbfb;--surface-soft:#edf5f5;--text:#1d3037;--text-soft:#637782;--muted:#637782;--border:#d5e2e4;--border-strong:#b8cdd0;--shadow:0 4px 18px #1f464d0f}html[data-display-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#0e1920;--surface:#182830;--surface-alt:#20333b;--surface-soft:#263d44;--text:#ecf4f5;--text-soft:#b0c3c9;--muted:#afc1c7;--border:#354c55;--border-strong:#4b6871;--primary:#69aeb5;--primary-dark:#83c2c7;--primary-soft:#244349;--success:#74cc9d;--success-soft:#204135;--warning:#edc070;--warning-soft:#483a20;--danger:#f18791;--danger-soft:#462c36;--slate:#b2c0c8;--slate-soft:#2b3d46;--sidebar:#172c33;--sidebar-hover:#29444d;--scrollbar-track:#20333b;--scrollbar-thumb:#536e76;--scrollbar-thumb-hover:#78949c;--shadow:0 8px 26px #00000029}html[data-display-theme=dark][data-clinic-theme=teal]{--sidebar:#172c33;--bg:#0f3542;--primary:#69aeb5;--primary-contrast:#10272c}html[data-display-theme=dark][data-clinic-theme=blue]{--sidebar:#1d2c47;--bg:#143269;--primary:#82b8e2;--primary-contrast:#10234a}html[data-display-theme=dark][data-clinic-theme=green]{--sidebar:#193321;--bg:#154d27;--primary:#91c493;--primary-contrast:#112a14}html[data-display-theme=dark][data-clinic-theme=rose]{--sidebar:#392130;--bg:#52163b;--primary:#daa7b5;--primary-contrast:#390919}html[data-display-theme=dark][data-clinic-theme=gold]{--sidebar:#38321f;--bg:#524415;--primary:#d2c395;--primary-contrast:#352b08}html[data-display-theme=dark][data-clinic-theme]{--primary-soft:color-mix(in srgb, var(--primary) 20%, var(--surface));--primary-dark:color-mix(in srgb, var(--primary) 76%, white);--sidebar-hover:color-mix(in srgb, var(--sidebar) 75%, white);--scrollbar-track:var(--surface-alt);--scrollbar-thumb:var(--border-strong)}body{transition:background-color .22s,color .22s}button:not(:disabled),a,input,select,textarea{-webkit-tap-highlight-color:transparent}button:not(:disabled):active{transform:translateY(1px)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--primary);outline-offset:2px}.button{box-shadow:0 2px 7px color-mix(in srgb, var(--primary) 16%, transparent);transition:background-color .18s,border-color .18s,box-shadow .18s,transform .18s}.button:not(:disabled):hover{box-shadow:0 5px 13px color-mix(in srgb, var(--primary) 24%, transparent);transform:translateY(-1px)}.button:not(:disabled):active{transform:translateY(0)}.button.secondary{box-shadow:none}.card,.calendar-modal,.calendar-confirm-modal,.date-picker-dialog,.public-shell{box-shadow:var(--shadow)}.field input,.field textarea,.field select,.choice-trigger,select:not([multiple]){border-color:var(--border);background-color:var(--surface-alt);color:var(--text)}.field input:focus,.field textarea:focus,.field select:focus,.choice-dropdown.open .choice-trigger,.choice-trigger:focus-visible,select:not([multiple]):focus{border-color:var(--primary);background-color:var(--surface);box-shadow:0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent)}.field>span,.field>label,.finance-filter-field span,.data-table th{color:var(--text-soft)}.data-table tbody tr:hover td{background:var(--surface-alt)}.topbar,.topbar-clinic-logo,.data-table,.kpi,.report-kpi-list,.invoice-overview-grid,.report-kpi-list .kpi,.invoice-overview-card,.calendar-modal,.calendar-confirm-modal,.date-picker-dialog,.choice-menu,.patient-options,.public-shell{background:var(--surface)}.display-theme-toggle{border:1px solid var(--border);background:var(--surface-alt);width:38px;height:38px;color:var(--text);border-radius:8px;flex:0 0 38px;place-items:center;padding:0;font-size:22px;line-height:1;transition:background-color .18s,color .18s,border-color .18s,transform .18s;display:inline-grid}.display-theme-toggle:hover{border-color:var(--primary);background:var(--primary-soft);color:var(--primary-dark)}.auth-shell{--auth-network-line:#5d7e88;--auth-network-node:#0a828a;--auth-network-accent:#9a8760;isolation:isolate;background:#f7fbfe;min-height:100dvh;padding:76px 20px 32px;position:relative;overflow-x:clip}html[data-display-theme=dark] .auth-shell{--auth-network-line:#8baeb4;--auth-network-node:#82c4c6;--auth-network-accent:#c4ad7b;background:var(--bg)}.auth-network{z-index:-1;pointer-events:none;position:absolute;inset:0;overflow:hidden}.auth-network-layer{pointer-events:none;width:116%;height:116%;position:absolute;top:-8%;left:-8%}.auth-network-far{filter:blur(.8px)}.auth-theme-control{z-index:2;position:absolute;top:24px;right:24px}.auth-card{z-index:1;border:1px solid var(--border);background:var(--surface);border-radius:8px;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:0;width:min(100%,920px);padding:0;position:relative;overflow:hidden;box-shadow:0 24px 68px #1d3f4629}.auth-copy{color:#fff;text-align:left;background:linear-gradient(145deg,#316a70,#1e4a50);align-content:center;gap:12px;padding:clamp(28px,4vw,52px);display:grid}.auth-copy .eyebrow{color:#d5e9ea}.auth-copy h1{white-space:normal;font-size:26px;line-height:1.2}.auth-copy p:last-child{color:#e0eeee;font-size:13px}.auth-form-panel{background:color-mix(in srgb, var(--surface) 92%, transparent);align-content:center;gap:24px;min-width:0;padding:clamp(28px,4vw,52px);display:grid}.auth-brand{justify-content:center;display:flex}.auth-brand img{object-fit:contain;width:min(100%,192px);height:auto}.auth-form{width:100%;max-width:360px;margin-inline:auto}.auth-form .button{min-height:44px}.auth-developer-link{text-align:center}html[data-display-theme=dark] .auth-card{box-shadow:0 24px 68px #00000061}html[data-display-theme=dark] .sidebar{border-color:var(--border);color:var(--text)}html[data-display-theme=dark] .sidebar-head,html[data-display-theme=dark] .sidebar-foot,html[data-display-theme=dark] .sidebar-session{border-color:var(--border)}html[data-display-theme=dark] .sidebar-link,html[data-display-theme=dark] .sidebar-logout{color:#dce9ec}html[data-display-theme=dark] .sidebar-link.active{background:var(--primary-soft);color:var(--text)}html[data-display-theme=dark] .sidebar-group-label,html[data-display-theme=dark] .sidebar-session-copy{color:#b3c7cc}html[data-display-theme=dark] .sidebar-toggle{border-color:var(--border-strong)}html[data-display-theme=dark] .field input:focus,html[data-display-theme=dark] .field textarea:focus,html[data-display-theme=dark] .field select:focus,html[data-display-theme=dark] .choice-dropdown.open .choice-trigger,html[data-display-theme=dark] .choice-trigger:focus-visible,html[data-display-theme=dark] select:not([multiple]):focus,html[data-display-theme=dark] .button.secondary,html[data-display-theme=dark] .sidebar-toggle,html[data-display-theme=dark] .support-mode-banner button,html[data-display-theme=dark] .invoice-filter-tabs button,html[data-display-theme=dark] .shortcut-card:hover,html[data-display-theme=dark] .tab-row button,html[data-display-theme=dark] .calendar-cell,html[data-display-theme=dark] .calendar-modal-close,html[data-display-theme=dark] .calendar-weekday-toggle,html[data-display-theme=dark] .patient-option:hover,html[data-display-theme=dark] .patient-option:focus-visible,html[data-display-theme=dark] .segmented-control button,html[data-display-theme=dark] .weekday-picker span{background:var(--surface);color:var(--text)}html[data-display-theme=dark] .button.secondary.stock-action-icon{color:var(--primary-dark);background:0 0}html[data-display-theme=dark] .button.secondary.stock-action-icon:hover,html[data-display-theme=dark] .button.secondary.stock-action-icon:focus-visible{color:var(--primary);background:0 0}html[data-display-theme=dark] .choice-menu,html[data-display-theme=dark] .calendar-modal,html[data-display-theme=dark] .calendar-confirm-modal,html[data-display-theme=dark] .calendar-modal-section,html[data-display-theme=dark] .date-picker-dialog,html[data-display-theme=dark] .calendar-page-shell,html[data-display-theme=dark] .calendar-day-column,html[data-display-theme=dark] .calendar-hour-row,html[data-display-theme=dark] .calendar-year-grid,html[data-display-theme=dark] .public-shell,html[data-display-theme=dark] .data-table,html[data-display-theme=dark] .kpi,html[data-display-theme=dark] .report-kpi-list,html[data-display-theme=dark] .invoice-overview-grid,html[data-display-theme=dark] .report-kpi-list .kpi,html[data-display-theme=dark] .invoice-overview-card{background:var(--surface);color:var(--text)}html[data-display-theme=dark] .calendar-modal-backdrop,html[data-display-theme=dark] .date-picker-backdrop{background:#030a0eb8}html[data-display-theme=dark] .data-table th,html[data-display-theme=dark] .permission-matrix thead th{background:var(--surface-alt);color:var(--text-soft)}html[data-display-theme=dark] .data-table tbody tr:hover td,html[data-display-theme=dark] .notification-template-list button:hover,html[data-display-theme=dark] .notification-template-list button.active{background:var(--surface-alt)}html[data-display-theme=dark] .finance-filter-field input,html[data-display-theme=dark] .finance-filter-field select,html[data-display-theme=dark] .public-booking-form input,html[data-display-theme=dark] .public-booking-form textarea,html[data-display-theme=dark] .public-booking-form select,html[data-display-theme=dark] .online-admin-page select,html[data-display-theme=dark] .public-slots button,html[data-display-theme=dark] .choice-trigger,html[data-display-theme=dark] .date-picker-wheel-current{border-color:var(--border);background-color:var(--surface-alt);color:var(--text)}html[data-display-theme=dark] select option{background:var(--surface);color:var(--text)}html[data-display-theme=dark] .public-portal{background:var(--bg);color:var(--text)}html[data-display-theme=dark] .public-kicker,html[data-display-theme=dark] .eyebrow,html[data-display-theme=dark] .auth-developer-link,html[data-display-theme=dark] .public-slots button.active{color:var(--primary-dark)}html[data-display-theme=dark] .auth-copy .eyebrow{color:#d5e9ea}html[data-display-theme=dark] .public-slots button.active,html[data-display-theme=dark] .segmented-control button.active{background:var(--primary-soft);border-color:var(--primary)}html[data-display-theme=dark] .public-form-section{border-color:var(--border)}html[data-display-theme=dark] .public-moderation-note,html[data-display-theme=dark] .support-mode-banner{color:#f2dfb2;background:#403922;border-color:#8b7146}html[data-display-theme=dark] input::placeholder,html[data-display-theme=dark] textarea::placeholder{color:#91a7ae}html[data-display-theme=dark] .calendar-week-cell,html[data-display-theme=dark] .calendar-time-slot,html[data-display-theme=dark] .calendar-day-timeline,html[data-display-theme=dark] .calendar-cell.today,html[data-display-theme=dark] .calendar-cell.today.weekend{background:var(--surface)}html[data-display-theme=dark] .calendar-week-head,html[data-display-theme=dark] .calendar-week-time-spacer,html[data-display-theme=dark] .calendar-week-head-cell{border-color:var(--border);background:var(--surface-alt)}html[data-display-theme=dark] .calendar-week-head-cell.today,html[data-display-theme=dark] .calendar-week-head-cell.weekend{background:var(--primary-soft)}html[data-display-theme=dark] .calendar-week-cell:hover,html[data-display-theme=dark] .calendar-time-slot:hover,html[data-display-theme=dark] .calendar-cell.outside-month,html[data-display-theme=dark] .calendar-cell.past,html[data-display-theme=dark] .calendar-week-cell.past,html[data-display-theme=dark] .calendar-week-cell.weekend,html[data-display-theme=dark] .calendar-week-time-label,html[data-display-theme=dark] .calendar-time-slot-label{background:var(--surface-alt)}html[data-display-theme=dark] .calendar-week-cell.today,html[data-display-theme=dark] .calendar-week-cell.has-items,html[data-display-theme=dark] .calendar-time-slot.has-items .calendar-time-slot-label,html[data-display-theme=dark] .calendar-cell.interactive.drag-over,html[data-display-theme=dark] .calendar-week-cell.drag-over,html[data-display-theme=dark] .calendar-time-slot.drag-over{background:var(--primary-soft)}html[data-display-theme=dark] .calendar-week-cell,html[data-display-theme=dark] .calendar-week-time-label,html[data-display-theme=dark] .calendar-time-slot,html[data-display-theme=dark] .calendar-time-slot-label{border-color:var(--border);color:var(--text)}html[data-display-theme=dark] .calendar-cell.past .calendar-day-badge:not(.today),html[data-display-theme=dark] .calendar-cell.outside-month .calendar-day-badge:not(.today){background:var(--slate-soft);color:var(--text-soft)}html[data-display-theme=dark] .day-appointment-chip,html[data-display-theme=dark] .week-appointment-chip{background:var(--primary-soft)}html[data-display-theme=dark] .dental-editor-card,html[data-display-theme=dark] .dental-drawing-toolbar button.active,html[data-display-theme=dark] .weekday-picker input:checked+span{background:var(--surface-alt);color:var(--text)}html[data-display-theme=dark] .service-checklist-item:hover,html[data-display-theme=dark] .patient-search-result:hover,html[data-display-theme=dark] .patient-search-result:focus-visible,html[data-display-theme=dark] .calendar-expand-button:hover{background:var(--surface-alt)}html[data-display-theme=dark] .service-checklist-item.selected,html[data-display-theme=dark] .dashboard-shortcuts-row .shortcut-card,html[data-display-theme=dark] .dashboard-shortcuts-row .shortcut-card:hover{border-color:var(--border-strong);background:var(--primary-soft);color:var(--text)}html[data-display-theme=dark] .dashboard-shortcuts-row .shortcut-card strong{color:var(--text)}html[data-display-theme=dark] .stock-transfer-status.draft{background:var(--slate-soft);color:var(--text)}html[data-display-theme=dark] .stock-transfer-status.shipped{background:var(--warning-soft);color:var(--warning)}html[data-display-theme=dark] .stock-transfer-status.received{background:var(--success-soft);color:var(--success)}html[data-display-theme=dark] .stock-transfer-status.cancelled,html[data-display-theme=dark] .public-error{background:var(--danger-soft);color:var(--danger)}html[data-display-theme=dark] .public-note{background:var(--primary-soft);color:var(--text)}html[data-display-theme=dark] .status-pill.confirmed{background:var(--success-soft);color:var(--success)}html[data-display-theme=dark] .status-pill.rejected{background:var(--danger-soft);color:var(--danger)}html[data-display-theme=dark] .status-pill{background:var(--slate-soft);color:var(--text)}html[data-display-theme=dark] .calendar-day-badge.today,html[data-display-theme=dark] .button:not(.secondary):not(.danger){color:var(--primary-contrast,#10272c)}html[data-display-theme=dark] .status-pill.pending,html[data-display-theme=dark] .status-pill.scheduled,html[data-display-theme=dark] .status-pill.queued{background:var(--warning-soft);color:var(--warning)}html[data-display-theme=dark] .status-pill.delivered,html[data-display-theme=dark] .status-pill.sent{background:var(--success-soft);color:var(--success)}html[data-display-theme=dark] .status-pill.failed,html[data-display-theme=dark] .status-pill.cancelled{background:var(--danger-soft);color:var(--danger)}html[data-display-theme=dark] .user-avatar,html[data-display-theme=dark] .modal-restore-button,html[data-display-theme=dark] .admin-accordion-trigger{border-color:var(--border);background:var(--primary-soft);color:var(--text)}html[data-display-theme=dark] .topbar-clinic-logo{background:#fff}@media print{html[data-display-theme=dark],html[data-display-theme=dark][data-clinic-theme]{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--bg:#fff;--surface:#fff;--surface-alt:#f8fafb;--surface-soft:#edf4f4;--text:#1c2835;--text-soft:#647484;--muted:#647484;--border:#dce3e6;--primary:#12818a;--primary-soft:#e5f3f3}html[data-display-theme=dark] body,html[data-display-theme=dark] .public-portal,html[data-display-theme=dark] .public-shell,html[data-display-theme=dark] .patient-questionnaire-print-sheet{color:#000;background:#fff}}@media (max-width:700px){.auth-card{grid-template-columns:1fr}.auth-copy{padding:24px 28px}.auth-copy h1{font-size:20px}.auth-form-panel{padding:28px}}@media (prefers-reduced-motion:reduce){body,.button,.display-theme-toggle{transition:none}.button:not(:disabled):hover,button:not(:disabled):active{transform:none}}
