*{box-sizing:border-box}:root{--brand-primary:#4f46e5;--brand-accent:#06b6d4;--brand-sidebar:#0b1022;--brand-sidebar-active:#1f2937;--brand-sidebar-heading-text:#94a3b8;--brand-sidebar-text:#cbd5e1;--brand-sidebar-active-text:#fff;--brand-surface-tint:#eff6ff;--brand-chart-primary:#4f46e5;--brand-chart-secondary:#06b6d4;--header-height:76px;--sidebar-width:280px;--action-button-height:44px;--action-button-radius:10px}body{color:#111827;background:#f9fafb;margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{scrollbar-width:thin;scrollbar-color:var(--brand-primary) #dbeafe}::-webkit-scrollbar{width:10px;height:10px}::-webkit-scrollbar-track{background:#dbeafe;border-radius:999px}::-webkit-scrollbar-thumb{background:linear-gradient(180deg, var(--brand-primary), var(--brand-accent));border:2px solid #dbeafe;border-radius:999px}::-webkit-scrollbar-thumb:hover{background:linear-gradient(#4338ca,#0891b2)}button,input,select,textarea{font:inherit}.app{grid-template-columns:var(--sidebar-width) minmax(0, 1fr);min-height:100vh;transition:grid-template-columns .25s;display:grid}.app.collapsed{--sidebar-width:96px}.sidebar{background:linear-gradient(180deg, color-mix(in srgb, var(--brand-sidebar) 82%, #050816 18%) 0%, var(--brand-sidebar) 52%, color-mix(in srgb, var(--brand-sidebar) 78%, var(--brand-sidebar-active) 22%) 100%);scrollbar-color:#38bdf8 #0f172a73;border-right:1px solid #ffffff0d;height:100vh;padding:22px 16px;position:sticky;top:0;overflow-y:auto}.brand{align-items:center;gap:10px;padding:8px 8px 20px;display:flex}.brand-mark{background:linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent) 100%);color:#fff;border-radius:8px;place-items:center;width:38px;height:38px;font-weight:800;display:grid;overflow:hidden}.brand-mark img{object-fit:contain;background:#fff;width:100%;height:100%;padding:4px}.brand strong{font-size:17px;display:block}.brand span{color:var(--brand-sidebar-heading-text);font-size:13px}.muted{color:#64747f;font-size:13px}.nav,.nav-group-items{gap:6px;display:grid}.nav-group{margin-bottom:18px}.nav-group-label{color:var(--brand-sidebar-heading-text);letter-spacing:.12em;text-transform:uppercase;margin:0 8px 8px;font-size:11px;font-weight:800}.nav a{color:var(--brand-sidebar-text);border-radius:12px;align-items:center;gap:10px;padding:10px 11px;font-size:14px;font-weight:600;text-decoration:none;transition:background .2s,color .2s,transform .2s;display:flex}.nav a.active,.nav a:hover{background:var(--brand-sidebar-active);color:var(--brand-sidebar-active-text)}.nav-icon{color:#94a3b8;background:#ffffff0d;border-radius:10px;flex:none;justify-content:center;align-items:center;width:34px;height:34px;display:inline-flex}.nav a.active .nav-icon,.nav a:hover .nav-icon{color:var(--brand-sidebar-active-text);background:#ffffff1a}.app.collapsed .brand{justify-content:center}.app.collapsed .brand-copy,.app.collapsed .nav-group-label,.app.collapsed .nav a span:not(.nav-icon){display:none}.app.collapsed .nav a{justify-content:center;padding-left:8px;padding-right:8px}.sidebar-tooltip{z-index:100;white-space:nowrap;background:var(--brand-sidebar);color:#fff;pointer-events:none;border:1px solid #334155;border-radius:12px;padding:8px 11px;font-size:12px;font-weight:800;position:fixed;transform:translateY(-50%);box-shadow:0 18px 40px #0f172a73}.global-tooltip{z-index:10000;white-space:normal;background:var(--brand-sidebar);color:#fff;pointer-events:none;border:1px solid #020617;border-radius:8px;max-width:min(280px,100vw - 24px);padding:8px 10px;font-size:12px;font-weight:700;line-height:1.25;position:fixed;transform:translate(-50%,-100%);box-shadow:0 14px 34px #0f172a47}.global-tooltip:before{content:"";background:var(--brand-sidebar);border-bottom:1px solid #020617;border-right:1px solid #020617;width:9px;height:9px;position:absolute;bottom:-5px;left:50%;transform:translate(-50%)rotate(45deg)}.toast-stack{z-index:12000;pointer-events:none;gap:10px;width:min(380px,100vw - 24px);display:grid;position:fixed;top:18px;right:18px}.toast{background:linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent) 100%);color:#fff;pointer-events:auto;border:1px solid #ffffff42;border-radius:16px;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:3px 12px;padding:14px 14px 14px 16px;display:grid;position:relative;box-shadow:0 20px 44px #0f172a2e}.toast strong{font-size:13px;font-weight:950}.toast span{color:#ffffffe0;grid-column:1;font-size:13px;font-weight:750;line-height:1.35}.toast button{color:#fff;cursor:pointer;background:#ffffff29;border:1px solid #ffffff52;border-radius:999px;grid-area:1/2/span 2;justify-content:center;align-items:center;width:28px;height:28px;display:inline-flex}.toast-success{background:linear-gradient(135deg,#059669 0%,#10b981 100%);box-shadow:0 20px 44px #05966938}.toast-error{background:linear-gradient(135deg,#dc2626 0%,#f97316 100%);box-shadow:0 20px 44px #dc262638}.toast-info{background:linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent) 100%);box-shadow:0 20px 44px #4f46e538}.main{min-width:0}.topbar{min-height:var(--header-height);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);z-index:1600;background:#ffffffe6;border-bottom:1px solid #e5e7eb;justify-content:space-between;align-items:center;padding:0 28px;display:flex;position:sticky;top:0}.topbar.compact{--header-height:60px}.topbar.minimal .topbar-search{display:none}.icon-button{width:var(--action-button-height);height:var(--action-button-height);min-width:var(--action-button-height);min-height:var(--action-button-height);border-radius:var(--action-button-radius);color:#475569;cursor:pointer;background:#fff;border:1px solid #e5e7eb;justify-content:center;align-items:center;display:inline-flex;box-shadow:0 1px 2px #0f172a0f}.topbar-left{min-width:0}.topbar-tools{align-items:center;gap:12px;display:flex}.topbar-search{color:#64748b;background:#fff;border:1px solid #e5e7eb;border-radius:10px;align-items:center;gap:9px;min-width:280px;height:44px;padding:0 12px;display:flex;box-shadow:0 1px 2px #0f172a0f}.topbar-search input{border:0;outline:0;width:100%}.content{padding:26px 28px 40px}.toolbar{background:#fff;border:1px solid #e5e7eb;border-radius:28px;justify-content:space-between;align-items:center;gap:16px;margin-bottom:22px;padding:22px 24px;display:flex;box-shadow:0 1px 2px #0f172a0f}.toolbar.has-page-back{justify-content:flex-start}.toolbar.has-page-back>:first-child{margin-right:auto}.toolbar.has-page-back>.table-actions{margin-left:auto}.toolbar h1{letter-spacing:0;color:#020617;align-items:center;margin:0;font-size:30px;line-height:1.2;display:inline-flex}.page-back-icon-button{width:var(--action-button-height);height:var(--action-button-height);min-width:var(--action-button-height);min-height:var(--action-button-height);border-radius:var(--action-button-radius);background:var(--brand-sidebar);color:#fff;cursor:pointer;border:1px solid #ffffff14;flex:none;justify-content:center;align-items:center;margin-left:0;transition:transform .16s,border-color .16s,color .16s,box-shadow .16s;display:inline-flex;box-shadow:0 14px 28px #0f172a61}.page-back-icon-button:hover{color:#fff;border-color:#fff3;transform:translateY(-1px);box-shadow:0 18px 34px #0f172a47}.grid{gap:16px;display:grid}.metrics{grid-template-columns:repeat(6,minmax(130px,1fr))}.two{grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr)}.three{grid-template-columns:repeat(3,minmax(0,1fr))}.card{background:#fff;border:1px solid #e5e7eb;border-radius:28px;margin-bottom:20px;padding:20px;box-shadow:0 1px 2px #0f172a0f}.pre-line{white-space:pre-line;word-break:break-word;color:#334155;background:#fff;border:1px solid #e5e7eb;border-radius:10px;margin:8px 0 0;line-height:1.55;padding:9px!important}.content>.card+.card,.content>form+.card,.content>.grid+.card,.content>.card+.grid,.content>.appointment-top-stats+.card,.content>.appointment-top-stats+.grid{margin-top:18px}.surface-tint{background:linear-gradient(135deg, color-mix(in srgb, var(--brand-surface-tint) 80%, #fff 20%) 0%, #fff 100%)}.metric{grid-template-columns:48px 1fr;align-items:center;gap:14px;min-height:132px;transition:transform .2s,box-shadow .2s;display:grid;position:relative;overflow:hidden}.metric:after{content:"";background:color-mix(in srgb, var(--brand-primary) 12%, transparent);border-radius:999px;width:104px;height:104px;position:absolute;inset:auto -30px -38px auto}.metric:hover{transform:translateY(-2px);box-shadow:0 10px 24px #0f172a14}.metric-icon{background:var(--brand-surface-tint);width:48px;height:48px;color:var(--brand-primary);box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--brand-primary) 16%, transparent);border-radius:16px;justify-content:center;align-items:center;display:inline-flex}.metric .value{color:#0f172a;margin:0 0 3px;font-size:32px;font-weight:950}.metric small{color:#94a3b8;font-size:12px;font-weight:900;position:absolute;top:12px;right:14px}.section-title{justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;display:flex}.section-title h2{margin:0;font-size:16px}.queue-section-title{align-items:center}.queue-title-actions{justify-content:flex-end;align-items:center;gap:10px;margin-left:auto;display:inline-flex}.table{border-collapse:collapse;counter-reset:table-row-number;width:100%}.table:not(.manual-index-table) thead tr:before{content:"#";color:#6b7280;letter-spacing:.12em;text-transform:uppercase;text-align:left;background:#f8fafc;border-bottom:1px solid #e5e7eb;width:54px;padding:12px 10px;font-size:12px;font-weight:700;display:table-cell}.table tbody tr{counter-increment:table-row-number}.table:not(.manual-index-table) tbody tr:before{content:counter(table-row-number);color:#64748b;vertical-align:middle;border-bottom:1px solid #e5e7eb;width:54px;padding:12px 10px;font-size:13px;font-weight:900;display:table-cell}.table tbody tr:has(.empty-cell){counter-increment:none}.table:not(.manual-index-table) tbody tr:has(.empty-cell):before{content:none;display:none}.table-scroll{border:1px solid #e5e7eb;border-radius:16px;max-height:560px;overflow:auto}.table-scroll .table th{z-index:1;position:sticky;top:0}.direct-sale-table-scroll{max-height:none;overflow:visible}.direct-sale-table-scroll .smart-select{z-index:25}.direct-sale-table-scroll .smart-select-menu{z-index:60}.responsive-table-scroll{-webkit-overflow-scrolling:touch;width:100%;max-width:100%;overflow:auto visible}.responsive-table-scroll .table{min-width:980px}.report-table-scroll{max-width:100%;max-height:68vh;overflow:auto}.report-table-scroll .table{min-width:max-content}.report-table-scroll .table th,.report-table-scroll .table td{white-space:normal;min-width:120px}.report-table-scroll .table thead tr:before,.report-table-scroll .table tbody tr:before{z-index:2;background:#f8fafc;position:sticky;left:0}.report-table-scroll .table tbody tr:before{background:#fff}.table-pagination{color:#64748b;justify-content:flex-end;align-items:center;gap:10px;margin-top:14px;font-size:13px;font-weight:850;display:flex}.table th,.table td{text-align:left;border-bottom:1px solid #e5e7eb;padding:12px 10px;font-size:14px}.table th{color:#6b7280;letter-spacing:.12em;text-transform:uppercase;background:#f8fafc;font-size:12px;font-weight:700}.badge{background:color-mix(in srgb, var(--brand-primary) 14%, #fff 86%);min-height:24px;color:var(--brand-primary);border-radius:999px;align-items:center;padding:3px 8px;font-size:12px;font-weight:700;display:inline-flex}.badge.warn{color:#9a5b00;background:#fff3df}.badge.status-scheduled{color:#1d4ed8;background:#eff6ff}.badge.status-waiting{color:#c2410c;background:#fff7ed}.badge.status-consulting{color:var(--brand-primary);background:#eef2ff}.badge.status-completed{color:#047857;background:#ecfdf5}.badge.status-cancelled{color:#be123c;background:#fff1f2}.badge.status-noshow{color:#475569;background:#f1f5f9}.button{border-radius:var(--action-button-radius);background:var(--brand-sidebar);color:#fff;min-height:var(--action-button-height);cursor:pointer;border:0;justify-content:center;align-items:center;gap:8px;padding:0 16px;font-weight:700;display:inline-flex}.button.secondary{color:#334155;background:#fff;border:1px solid #e5e7eb}.toolbar>.button,.toolbar .table-actions .button{height:var(--action-button-height);min-height:var(--action-button-height);border-radius:var(--action-button-radius);white-space:nowrap;line-height:1}.toolbar>.button.secondary,.toolbar .table-actions .button.secondary{background:var(--brand-sidebar);color:#fff;border-color:#ffffff14;box-shadow:0 14px 28px #0f172a2e}.toolbar>.icon-button,.toolbar .table-actions .icon-button,.button.icon-button{width:var(--action-button-height);min-width:var(--action-button-height);height:var(--action-button-height);min-height:var(--action-button-height);padding:0}.tiny-button{border-radius:9px;min-height:30px;padding:0 10px;font-size:12px}.filter-search-button{border:1px solid var(--brand-sidebar);background:var(--brand-sidebar);color:#fff;border-radius:12px;justify-content:center;width:52px;min-width:52px;height:48px;min-height:48px;padding:0;box-shadow:0 12px 24px #0f172a1f}.filter-search-button:hover{background:var(--brand-primary);border-color:var(--brand-primary)}.status-cell{justify-items:start;gap:8px;display:grid}.input,.select,.textarea{color:#111827;background:#fff;border:1px solid #d1d5db;border-radius:12px;width:100%;min-height:48px;padding:12px 14px;transition:border-color .16s,box-shadow .16s,background .16s;box-shadow:inset 0 1px #ffffffb3}label>.input+.input,label>.input+.select,label>.select+.input,label>.smart-select+.input,label>.input+.smart-select,.card label+label,.crud-modal label+label{margin-top:10px}input[type=file].input{padding:10px 14px}input[type=date].input,input[type=time].input,input[type=datetime-local].input{height:48px;padding-top:0;padding-bottom:0;line-height:48px}input[type=date].input::-webkit-datetime-edit{align-items:center;min-height:46px;display:flex}input[type=time].input::-webkit-datetime-edit{align-items:center;min-height:46px;display:flex}input[type=datetime-local].input::-webkit-datetime-edit{align-items:center;min-height:46px;display:flex}input[type=date].input::-webkit-calendar-picker-indicator{margin-left:8px}input[type=time].input::-webkit-calendar-picker-indicator{margin-left:8px}input[type=datetime-local].input::-webkit-calendar-picker-indicator{margin-left:8px}.age-input-grid{grid-template-columns:minmax(0,1fr) 150px;align-items:start;gap:12px;display:grid}.add-patient-continue{background:var(--brand-primary);border:1px solid var(--brand-primary);color:#fff;box-shadow:0 12px 24px color-mix(in srgb, var(--brand-primary) 24%, transparent);margin-top:12px}.add-patient-continue:hover{transform:translateY(-1px)}.input:focus,.select:focus,.textarea:focus,.smart-select:focus-within .input{border-color:var(--brand-primary);outline:0;box-shadow:0 0 0 4px #4f46e51a}.input::placeholder,.textarea::placeholder{color:#8b95a5}.textarea{resize:vertical;min-height:92px}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.quick-row{flex-wrap:wrap;gap:8px;display:flex}.chip{color:#475569;cursor:pointer;background:#fff;border:1px solid #e5e7eb;border-radius:999px;padding:7px 10px;font-weight:700}.chip:hover{color:var(--brand-primary);background:#eef2ff;border-color:#c7d2fe}.settings-grid{grid-template-columns:260px minmax(0,1fr);gap:18px;display:grid}.settings-scope-board{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:18px;display:grid}.settings-nav{gap:8px;display:grid}.settings-nav button{text-align:left;color:#475569;cursor:pointer;background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:12px 14px;font-weight:800}.settings-nav button.active{background:var(--brand-sidebar);color:#fff}.workflow-faq-accordion{gap:10px;display:grid}.workflow-faq-card{background:#fff;border:1px solid #e5e7eb;border-radius:16px;display:grid;overflow:hidden;box-shadow:0 1px 2px #0f172a0a}.workflow-faq-card.open{border-color:#c7d2fe;box-shadow:0 18px 36px #4f46e51c}.workflow-faq-trigger{color:#111827;cursor:pointer;text-align:left;background:#fff;border:0;justify-content:space-between;align-items:center;gap:14px;width:100%;min-height:58px;padding:16px 18px;font-size:16px;font-weight:900;display:flex}.workflow-faq-trigger svg{color:#64748b;flex:none;transition:transform .16s}.workflow-faq-card.open .workflow-faq-trigger{color:var(--brand-primary);background:linear-gradient(90deg,#4f46e517,#06b6d40d)}.workflow-faq-card.open .workflow-faq-trigger svg{color:var(--brand-primary);transform:rotate(180deg)}.workflow-faq-body{gap:10px;padding:0 18px 18px;display:grid}.workflow-faq-card p,.workflow-faq-card ol,.workflow-faq-card ul{color:#475569;margin:0;line-height:1.55}.workflow-faq-card ol,.workflow-faq-card ul{padding-left:20px}.workflow-faq-card li+li{margin-top:6px}.color-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.color-field{grid-template-columns:42px minmax(0,1fr);align-items:center;gap:10px;display:grid}.color-field input[type=color]{background:#fff;border:1px solid #e5e7eb;border-radius:10px;width:42px;height:42px;padding:3px}.dashboard-band{grid-template-columns:1.4fr .9fr;gap:16px;display:grid}.dashboard-chart-card{min-height:100%}.dashboard-filter-card{z-index:20;margin-top:16px;padding:0;position:relative;overflow:visible}.dashboard-filter-card[open]{z-index:120}.dashboard-filter-card summary{cursor:pointer;color:#111827;justify-content:space-between;align-items:center;gap:14px;padding:16px 18px;font-weight:950;display:flex}.dashboard-filter-card summary small{color:#64748b;font-size:12px;font-weight:850}.dashboard-filter-card summary::-webkit-details-marker{display:none}.dashboard-filter-grid{border-top:1px solid #e5e7eb;grid-template-columns:repeat(2,minmax(180px,1fr)) auto;align-items:end;gap:14px;padding:18px 20px 20px;display:grid;overflow:visible}.dashboard-filter-grid label{gap:6px;display:grid}.dashboard-filter-grid label span{color:#64748b;font-size:12px;font-weight:900}.followup-filter-grid,.module-filter-grid{border-top:1px solid #e5e7eb;grid-template-columns:repeat(5,minmax(160px,1fr)) auto;align-items:end;gap:14px;padding:18px 20px 20px;display:grid;overflow:visible}.module-filter-grid{grid-template-columns:repeat(4,minmax(180px,1fr)) auto}.procedure-copy-card{grid-template-columns:minmax(260px,1fr) minmax(240px,320px) auto;align-items:center;gap:16px;display:grid}.procedure-copy-card h2{margin:0 0 6px;font-size:18px}.permission-filter-grid{border-top:0;grid-template-columns:minmax(260px,1fr) minmax(200px,280px);padding:12px 0 16px}.lookup-filter-grid{border-top:0;grid-template-columns:minmax(360px,580px) minmax(240px,360px) 108px 56px;justify-content:space-between;align-items:center;gap:16px;padding:16px 20px 20px}.lookup-filter-grid .patient-search,.lookup-filter-grid .smart-select,.lookup-filter-grid .button{height:54px;margin:0}.lookup-filter-grid .smart-select input,.lookup-filter-grid .patient-search input{height:54px}.lookup-filter-grid .button.secondary{justify-content:center;width:108px;min-width:108px}.lookup-filter-grid .filter-search-button{width:56px;min-width:56px;height:54px;min-height:54px}.role-permission-filter-grid{padding:0}.followup-filter-grid label,.module-filter-grid label{gap:6px;display:grid}.followup-filter-grid label span,.module-filter-grid label span{color:#64748b;font-size:12px;font-weight:900}.dashboard-bar-chart{gap:14px;display:grid}.dashboard-bar-row{color:#111827;grid-template-columns:120px 1fr 46px;align-items:center;gap:12px;font-weight:800;display:grid}.dashboard-bar-row span{color:#475569;font-size:13px}.dashboard-bar-row strong{text-align:right}.dashboard-bar-track{background:#e5e7eb;border-radius:999px;height:12px;overflow:hidden}.dashboard-bar-track i{border-radius:inherit;height:100%;display:block}.segmented-filter{background:#f8fafc;border:1px solid #e5e7eb;border-radius:12px;gap:4px;padding:4px;display:inline-flex}.segmented-filter button{color:#64748b;cursor:pointer;background:0 0;border:0;border-radius:9px;padding:7px 10px;font-size:12px;font-weight:900}.segmented-filter button.active{background:var(--brand-primary);color:#fff}.dashboard-column-chart{grid-template-columns:repeat(auto-fit,minmax(28px,1fr));align-items:end;gap:8px;min-height:220px;padding-top:12px;display:grid}.dashboard-column{text-align:center;grid-template-rows:170px auto auto;align-items:end;gap:6px;min-width:0;display:grid}.dashboard-column span{background:linear-gradient(180deg, var(--brand-primary), var(--brand-accent));border-radius:8px 8px 3px 3px;align-self:end;width:100%;min-height:4px;transition:height .18s;display:block}.revenue-column span{background:linear-gradient(180deg, #10b981, var(--brand-accent))}.revenue-column strong{font-size:10px}.dashboard-column strong{color:#111827;font-size:12px}.dashboard-column small{color:#64748b;font-size:10px;font-weight:800}.dashboard-pie-card{min-height:100%}.dashboard-pie-layout{grid-template-columns:190px 1fr;align-items:center;gap:18px;display:grid}.dashboard-pie{aspect-ratio:1;border-radius:50%;flex-direction:column;justify-content:center;align-items:center;width:180px;display:flex;position:relative;box-shadow:inset 0 0 0 1px #0f172a14}.dashboard-pie:after{content:"";background:#fff;border-radius:50%;position:absolute;inset:34px;box-shadow:0 8px 24px #0f172a1f}.dashboard-pie strong,.dashboard-pie span{z-index:1;position:relative}.dashboard-pie strong{color:#111827;font-size:30px;font-weight:950}.dashboard-pie span{color:#64748b;text-transform:uppercase;margin-top:2px;font-size:11px;font-weight:900}.dashboard-pie-legend{gap:10px;display:grid}.dashboard-pie-legend div{color:#334155;grid-template-columns:12px 1fr auto;align-items:center;gap:10px;font-size:13px;font-weight:850;display:grid}.dashboard-pie-legend i{border-radius:50%;width:10px;height:10px}.dashboard-pie-legend strong{color:#111827}.mini-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.mini-stat{background:#fff;border:1px solid #e5e7eb;border-radius:18px;gap:6px;padding:14px;display:grid}.mini-stat span,.mini-stat p{color:#64748b;margin:0;font-size:12px;font-weight:800}.mini-stat strong{color:#111827;overflow-wrap:anywhere}.waiting-payment-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.waiting-payment-summary .mini-stat{padding:16px}.progress{background:#e5e7eb;border-radius:999px;height:9px;overflow:hidden}.progress span{border-radius:inherit;background:linear-gradient(90deg, var(--brand-chart-primary), var(--brand-chart-secondary));height:100%;display:block}.rx-item{grid-template-columns:1.2fr repeat(4,minmax(100px,.8fr));gap:8px;margin-bottom:8px;display:grid}.login{background:linear-gradient(135deg,#f8fafc 0%,#eef2ff 100%);place-items:center;min-height:100vh;padding:20px;display:grid}.login-panel{width:min(430px,100%)}.login-panel h1{margin:12px 0 4px}.error{color:#b42318;background:#fff0ed;border:1px solid #ffd2ca;border-radius:8px;padding:10px;font-size:14px}@media (width<=1100px){.app{grid-template-columns:1fr}.sidebar{height:auto;position:static}.metrics,.two,.three{grid-template-columns:1fr 1fr}.settings-grid,.settings-scope-board,.dashboard-band,.dashboard-filter-grid,.followup-filter-grid,.module-filter-grid,.procedure-copy-card,.dashboard-pie-layout{grid-template-columns:1fr}.topbar-search{min-width:180px}}@media (width<=720px){.metrics,.two,.three,.form-grid,.rx-item,.color-grid,.mini-stat-grid{grid-template-columns:1fr}.topbar,.toolbar{flex-direction:column;align-items:flex-start;height:auto;padding:18px}.content{padding:18px}}body{font-family:Manrope,Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.app-shell{--sidebar-width:18rem;color:#0f172a;background:#f8fafc;display:flex;position:fixed;inset:0;overflow:hidden}.app-shell.collapsed{--sidebar-width:6rem}.app-shell .sidebar{flex-direction:column;flex:0 0 var(--sidebar-width);width:var(--sidebar-width);background:linear-gradient(180deg, color-mix(in srgb, var(--brand-sidebar) 82%, #050816 18%) 0%, var(--brand-sidebar) 52%, color-mix(in srgb, var(--brand-sidebar) 78%, var(--brand-sidebar-active) 22%) 100%);border-right:1px solid #1e293b;height:100vh;padding:0;transition:width .3s,flex-basis .3s;display:flex;position:static;overflow:hidden}.mobile-sidebar,.mobile-overlay,.mobile-close,.mobile-menu{display:none}.sidebar-head{border-bottom:1px solid #ffffff1a;flex:none;padding:20px}.sidebar-body{scrollbar-width:thin;scrollbar-color:#38bdf8 #0f172a73;flex:auto;min-height:0;padding:24px 16px;overflow:hidden auto}.sidebar-body::-webkit-scrollbar{width:6px}.sidebar-body::-webkit-scrollbar-thumb{background:linear-gradient(180deg, var(--brand-accent), var(--brand-primary));border-radius:999px}.app-shell .brand{padding:0}.brand.center{justify-content:center}.app-shell .brand-mark{background:linear-gradient(135deg, var(--brand-primary), var(--brand-accent));border-radius:16px;width:48px;height:48px;box-shadow:0 18px 40px #4f46e559}.brand-copy p{color:#64748b;letter-spacing:.32em;text-transform:uppercase;margin:0 0 4px;font-size:11px;font-weight:800}.brand-copy strong{color:#fff;font-size:18px;font-weight:800}.app-shell.collapsed .brand-copy,.app-shell.collapsed .nav-group-toggle,.app-shell.collapsed .nav-label{display:none}.nav-group-toggle{width:100%;color:var(--brand-sidebar-heading-text);letter-spacing:.2em;text-transform:uppercase;cursor:pointer;background:0 0;border:0;justify-content:space-between;align-items:center;margin-bottom:8px;padding:0 12px;font-size:11px;font-weight:800;display:flex}.nav-group-toggle .rotated{transform:rotate(-90deg)}.hidden{display:none!important}.app-shell .nav a{border-radius:16px;padding:8px 12px}.app-shell.collapsed .nav a{justify-content:center}.app-shell .nav a.active,.app-shell .nav a:hover{background:linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-sidebar-active) 100%);box-shadow:0 18px 40px #4f46e559}.app-shell .nav-icon{border-radius:12px;width:40px;height:40px}.app-main{flex-direction:column;flex:1;min-width:0;height:100vh;min-height:0;display:flex;overflow:hidden}.app-shell .topbar{z-index:1600;background:#fffffff2;border-bottom:1px solid #e5e7eb;flex-shrink:0;justify-content:flex-start;gap:16px;min-height:62px;padding:10px 15px;position:sticky;top:0}.app-shell .topbar.compact{min-height:62px;padding-top:10px;padding-bottom:10px}.app-shell .topbar.minimal .topbar-search{display:none}.app-shell .topbar-search{background:#f8fafc;border-radius:16px;flex:1;min-width:260px;min-height:48px;position:relative;box-shadow:0 1px 2px #0f172a0f}.global-search-panel{z-index:95;color:#111827;background:#fff;border:1px solid #dbe3ef;border-radius:18px;max-height:min(620px,100vh - 120px);padding:12px;position:absolute;top:calc(100% + 10px);left:0;right:0;overflow:auto;box-shadow:0 24px 70px #0f172a3d}.global-search-head{border-bottom:1px solid #e5e7eb;justify-content:space-between;align-items:center;padding:4px 4px 10px;display:flex}.global-search-head button{color:#334155;cursor:pointer;background:#f1f5f9;border:0;border-radius:10px;justify-content:center;align-items:center;width:28px;height:28px;display:inline-flex}.global-search-section{gap:7px;padding:12px 2px 2px;display:grid}.global-search-section h3{color:#64748b;text-transform:uppercase;margin:0;font-size:11px;font-weight:900}.global-search-section button{color:#111827;text-align:left;cursor:pointer;background:#f8fafc;border:0;border-radius:12px;gap:2px;padding:10px 12px;display:grid}.global-search-section button:hover{background:var(--brand-surface-tint);color:var(--brand-primary)}.global-search-section small,.global-search-section p{color:#64748b;margin:0}.image-preview-card{background:#f8fafc;border:1px solid #e5e7eb;border-radius:16px;margin-top:12px;overflow:hidden}.image-preview-card img,.before-after-grid img,.image-gallery-card img{object-fit:cover;width:100%;display:block}.image-preview-card img{max-height:280px}.before-after-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.before-after-grid>div{background:#f8fafc;border:1px solid #e5e7eb;border-radius:16px;min-height:260px;overflow:hidden}.before-after-grid span{color:#334155;text-transform:uppercase;padding:10px 12px;font-size:12px;font-weight:900;display:block}.before-after-grid img{height:260px}.image-gallery-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px;display:grid}.image-gallery-card{background:#fff;border:1px solid #e5e7eb;border-radius:16px;gap:9px;padding:10px;display:grid}.image-gallery-card img{background:#f1f5f9;border-radius:12px;height:160px}.image-click-view{cursor:zoom-in;background:0 0;border:0;width:100%;padding:0;display:block}.image-gallery-card div{justify-content:space-between;align-items:center;gap:8px;display:flex}.image-gallery-card p{color:#475569;margin:0}.image-gallery-card small{color:#64748b;font-weight:800}.image-viewer-backdrop{z-index:2400;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#0f172ab8;place-items:center;padding:24px;display:grid;position:fixed;inset:0}.image-viewer-modal{background:#fff;border-radius:24px;width:min(1100px,96vw);max-height:92vh;padding:20px;overflow:auto;box-shadow:0 30px 90px #0f172a59}.image-viewer-tools{flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:12px;display:flex}.image-viewer-tools span{color:#334155;font-weight:950}.image-viewer-stage{background:var(--brand-sidebar);border:1px solid #e5e7eb;border-radius:18px;place-items:center;height:min(62vh,680px);display:grid;overflow:auto}.image-viewer-stage img{transform-origin:50%;max-width:100%;max-height:100%;transition:transform .18s}.chip-button{color:#334155;cursor:pointer;background:#fff;border:1px solid #dbe3ef;border-radius:999px;align-items:center;min-height:34px;padding:0 12px;font-weight:900;display:inline-flex}.chip-button.active{border-color:var(--brand-primary);background:var(--brand-surface-tint);color:var(--brand-primary)}.chip-button:disabled{cursor:not-allowed;color:#94a3b8;background:#f1f5f9;border-color:#e5e7eb}.slot-warning{color:#9a3412;background:#fff7ed;border:1px solid #fed7aa;border-radius:12px;margin-top:10px;padding:10px 12px;font-size:13px;font-weight:900}.collapse-button,.topbar-icon-button{color:#475569;cursor:pointer;background:#fff;border:1px solid #e2e8f0;border-radius:16px;justify-content:center;align-items:center;width:44px;height:44px;transition:transform .2s,border-color .2s,color .2s;display:inline-flex;position:relative;box-shadow:0 1px 2px #0f172a0f}.collapse-button{background:var(--brand-sidebar);border-color:color-mix(in srgb, var(--brand-sidebar) 78%, white 22%);color:var(--brand-sidebar-text)}.collapse-button:hover,.topbar-icon-button:hover{border-color:#cbd5e1;transform:translateY(-2px)}.topbar-add-button{background:var(--brand-primary);color:#fff;cursor:pointer;height:44px;box-shadow:0 10px 24px color-mix(in srgb, var(--brand-primary) 24%, transparent);border:0;border-radius:14px;align-items:center;gap:8px;padding:0 15px;font-weight:900;display:inline-flex}.topbar-actions{align-items:center;gap:12px;display:flex}.app-shell .content{-webkit-overflow-scrolling:touch;overscroll-behavior:contain;flex:1;min-height:0;padding:24px 32px 96px;overflow:hidden auto}.notification-wrap{z-index:1700;position:relative}.notification-dot{color:#fff;background:#f43f5e;border-radius:999px;justify-content:center;align-items:center;min-width:20px;min-height:20px;font-size:10px;font-weight:800;display:inline-flex;position:absolute;top:-5px;right:-5px}.notification-panel{z-index:1800;background:#fff;border:1px solid #e2e8f0;border-radius:24px;width:374px;max-height:calc(100vh - 110px);padding:16px;position:absolute;top:56px;right:0;overflow-y:auto;box-shadow:0 24px 60px #0f172a24}.notification-head{grid-template-columns:minmax(0,1fr);justify-content:space-between;align-items:start;gap:10px;display:grid}.notification-title-row{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.notification-head p{color:#64748b;margin:2px 0 0;font-size:12px}.notification-head button{color:#334155;cursor:pointer;background:#f8fafc;border:1px solid #dbe3ef;border-radius:10px;min-height:32px;padding:0 10px;font-size:12px;font-weight:800}.notification-head-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.notification-head-actions button:first-child{background:var(--brand-surface-tint);color:var(--brand-primary);border-color:color-mix(in srgb, var(--brand-primary) 18%, #fff)}.notification-view-all-link{flex:none;min-height:30px!important;color:var(--brand-primary)!important;background:0 0!important;border:0!important;padding:0!important;font-weight:900!important}.notification-list{gap:10px;margin-top:14px;display:grid}.notification-item{text-align:left;cursor:pointer;background:#fff;border:1px solid #e0e7ff;border-radius:18px;justify-content:space-between;gap:12px;width:100%;padding:12px;display:flex}.notification-item.unread{background:#eef2ff;border-color:#c7d2fe}.notification-item p,.notification-item span{color:#64748b;margin:4px 0 0;font-size:12px}.notification-item i{background:var(--brand-primary);border-radius:999px;flex:none;width:10px;height:10px;margin-top:5px}.user-card{background:#fff;border:1px solid #e2e8f0;border-radius:16px;align-items:center;gap:12px;padding:8px 10px;display:flex;box-shadow:0 1px 2px #0f172a0f}.avatar{background:var(--brand-sidebar);color:#fff;border-radius:16px;place-items:center;width:40px;height:40px;font-size:13px;font-weight:800;display:grid}.user-copy strong,.user-copy span{white-space:nowrap;display:block}.user-copy span{color:#64748b;font-size:12px}.user-card button{color:#475569;cursor:pointer;background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:8px 10px;font-size:12px;font-weight:800}.drawer-backdrop{z-index:2400;-webkit-backdrop-filter:blur(1px);backdrop-filter:blur(1px);background:#02061759;border:0;position:fixed;inset:0}.todo-drawer{z-index:2410;background:#fff;border-left:1px solid #e2e8f0;flex-direction:column;width:min(100%,448px);transition:transform .3s;display:flex;position:fixed;inset:0 0 0 auto;transform:translate(100%);box-shadow:0 24px 80px #0f172a38}.todo-drawer.open{transform:translate(0)}.notification-page-grid{grid-template-columns:260px minmax(0,1fr);gap:18px;display:grid}.notification-page-sidebar{align-content:start;gap:10px;display:grid}.notification-page-sidebar button{color:#334155;text-align:left;cursor:pointer;background:#fff;border:1px solid #dbe3ef;border-radius:14px;min-height:44px;padding:0 14px;font-weight:900}.notification-page-sidebar button.active{border-color:var(--brand-primary);background:var(--brand-surface-tint);color:var(--brand-primary)}.notification-page-list{gap:12px;display:grid}.notification-filter-grid{grid-template-columns:minmax(260px,1fr) minmax(180px,240px) minmax(180px,240px)}.notification-page-item{background:#fff;border:1px solid #e5e7eb;border-radius:18px;grid-template-columns:12px minmax(0,1fr) auto;align-items:center;gap:14px;padding:16px;display:grid}.notification-page-copy{min-width:0;color:inherit;text-align:left;cursor:pointer;background:0 0;border:0}.notification-page-copy strong,.notification-page-copy p,.notification-page-copy small{display:block}.notification-page-item.unread{background:#f8faff;border-color:#c7d2fe}.notification-page-dot{background:var(--brand-primary);border-radius:999px;width:10px;height:10px}.notification-page-item p{color:#475569;margin:4px 0}.notification-page-item small{color:#64748b;font-weight:800}.drawer-head{border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:center;gap:12px;padding:16px 20px;display:flex}.drawer-title{align-items:center;gap:10px;display:flex}.drawer-title>span{background:var(--brand-sidebar);color:#fff;border-radius:16px;place-items:center;width:40px;height:40px;display:grid}.drawer-title p{color:#94a3b8;letter-spacing:.18em;text-transform:uppercase;margin:0;font-size:12px;font-weight:800}.drawer-title h2,.drawer-count{margin:0}.drawer-count-row{justify-content:space-between;align-items:center;gap:12px;padding:10px 20px 0;display:flex}.drawer-count{color:#64748b;font-size:14px}.drawer-count-row button{color:var(--brand-primary);cursor:pointer;background:#eef2ff;border:1px solid #e0e7ff;border-radius:999px;padding:7px 11px;font-size:12px;font-weight:900}.drawer-body{flex:1;padding:20px;overflow-y:auto}.todo-form label{color:#334155;margin-bottom:8px;font-size:14px;font-weight:700;display:block}.todo-form div{gap:8px;display:flex}.todo-form input{border:1px solid #e2e8f0;border-radius:16px;width:100%;padding:12px 14px}.todo-form button{background:var(--brand-sidebar);color:#fff;border:0;border-radius:16px;width:48px}.todo-filter-row{background:#f8fafc;border:1px solid #e5e7eb;border-radius:16px;align-items:center;gap:8px;margin-top:14px;padding:10px;display:block}.todo-page-filter-grid{grid-template-columns:minmax(320px,1fr) minmax(180px,260px) minmax(170px,220px) minmax(170px,220px);align-items:end;gap:16px;padding:16px 20px 20px}.todo-page-filter-grid label,.todo-page-filter-grid .filter-field{gap:8px;min-width:0;margin:0;display:grid}.todo-page-filter-grid label span,.todo-page-filter-grid .filter-field>span{color:#334155;font-size:13px;font-weight:900}.todo-page-filter-grid .search-box{background:#fff;border:1px solid #dbe3ef;border-radius:14px;align-items:center;gap:10px;width:100%;min-height:54px;padding:0 14px;display:flex;box-shadow:0 1px 2px #0f172a0a}.todo-page-filter-grid .search-box input{color:#111827;width:100%;min-width:0;font:inherit;background:0 0;border:0;outline:0}.todo-page-filter-grid .smart-select{margin-bottom:0}.todo-page-filter-grid .input{min-height:54px}.todo-page-grid{grid-template-columns:minmax(300px,420px) minmax(0,1fr);align-items:start;gap:18px;display:grid}.todo-page-form{gap:14px;display:grid}.todo-page-form .textarea{min-height:150px}.todo-page-list{min-height:420px}.todo-filter-row span{color:#64748b;font-size:12px;font-weight:900}.todo-filter-row input{color:#111827;background:#fff;border:1px solid #dbe4f0;border-radius:12px;min-width:0;padding:8px 10px;font-size:13px;font-weight:800}.todo-filter-row button{color:#475569;cursor:pointer;background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:8px 10px;font-size:12px;font-weight:900}.todo-list{gap:12px;margin-top:20px;display:grid}.todo-date-group{gap:10px;display:grid}.todo-date-group h3{color:#334155;justify-content:space-between;align-items:center;margin:4px 0 0;font-size:13px;font-weight:950;display:flex}.todo-date-group h3 span{min-width:24px;min-height:24px;color:var(--brand-primary);background:#eef2ff;border-radius:999px;place-items:center;font-size:12px;display:inline-grid}.todo-item{background:#fff;border:1px solid #e2e8f0;border-radius:22px;grid-template-columns:32px minmax(0,1fr) 36px;align-items:start;gap:12px;padding:14px;display:grid}.todo-item.done{background:#ecfdf5;border-color:#a7f3d0}.todo-item button{color:#475569;background:#fff;border:1px solid #cbd5e1;border-radius:12px;width:32px;height:32px}.todo-item.done button:first-child{color:#fff;background:#10b981;border-color:#10b981}.todo-item p{color:#64748b;margin:4px 0 0;font-size:12px}@media (width<=900px){.todo-page-grid,.todo-page-filter-grid{grid-template-columns:1fr}}@media (width<=520px){.drawer-count-row{flex-direction:column;align-items:flex-start}}.guest-shell{background:radial-gradient(circle at 0 0,#22d3ee1f,#0000 24%),radial-gradient(circle at 100% 100%,#fb923c24,#0000 26%),linear-gradient(#f4f8fc 0%,#eef5fb 52%,#fff 100%);place-items:center;min-height:100vh;padding:40px 24px;display:grid}.guest-grid{grid-template-columns:1.02fr .98fr;align-items:center;gap:40px;width:min(1180px,100%);display:grid}.guest-brand{align-items:center;gap:16px;margin-bottom:24px;display:flex}.guest-logo{width:64px;height:64px;color:var(--brand-primary);background:#fff;border:1px solid #e2e8f0;border-radius:20px;place-items:center;font-weight:900;display:grid;box-shadow:0 18px 40px #0f172a1f}.guest-eyebrow,.auth-eyebrow{color:#0e7490;letter-spacing:.28em;text-transform:uppercase;font-size:11px;font-weight:800}.guest-title-small{color:#020617;font-size:30px;font-weight:900}.guest-pill{color:#0e7490;letter-spacing:.2em;text-transform:uppercase;background:#fffc;border:1px solid #cffafe;border-radius:999px;padding:9px 16px;font-size:11px;font-weight:800;display:inline-flex}.guest-copy h1{color:#020617;margin:24px 0 0;font-size:50px;font-weight:900;line-height:.98}.guest-copy p{color:#475569;max-width:580px;font-size:18px;line-height:1.75}.guest-feature-grid{grid-template-columns:1fr 1fr;gap:16px;margin-top:28px;display:grid}.guest-feature-grid div,.guest-card{background:#fff;border:1px solid #e2e8f0;border-radius:28px;box-shadow:0 1px 2px #0f172a0f}.guest-feature-grid div{padding:20px}.guest-feature-grid span{color:#64748b;font-size:14px;font-weight:800}.guest-feature-grid strong{color:#020617;margin-top:8px;font-size:22px;line-height:1.15;display:block}.guest-chips{flex-wrap:wrap;gap:10px;margin-top:24px;display:flex}.guest-chips span{color:#475569;background:#ffffffd9;border:1px solid #e2e8f0;border-radius:999px;padding:8px 14px;font-weight:800}.guest-card{border-radius:32px;justify-self:center;width:min(448px,100%);padding:32px;box-shadow:0 30px 90px #0f172a1f}.guest-card h2{color:#020617;margin:8px 0;font-size:30px;font-weight:900}.auth-input{border-radius:16px;min-height:46px;margin-top:8px}.remember{color:#475569;align-items:center;gap:8px;margin-top:14px;display:flex}.auth-actions{justify-content:space-between;align-items:center;gap:16px;margin-top:24px;display:flex}.auth-actions a{color:#475569;font-size:14px;font-weight:700}.demo-box{color:#64748b;background:#f8fafc;border:1px dashed #e2e8f0;border-radius:16px;margin-top:24px;padding:12px;font-size:14px}.guest-mobile-brand{display:none}@media (width<=1100px){.app-shell .sidebar{display:none}.mobile-menu{display:inline-flex}.mobile-overlay{z-index:2400;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#0206178c;border:0;display:block;position:fixed;inset:0}.mobile-sidebar{z-index:2500;background:linear-gradient(180deg, color-mix(in srgb, var(--brand-sidebar) 82%, #050816 18%) 0%, var(--brand-sidebar) 52%, color-mix(in srgb, var(--brand-sidebar) 78%, var(--brand-sidebar-active) 22%) 100%);border-right:1px solid #1e293b;flex-direction:column;width:min(18rem,86vw);height:100dvh;max-height:100dvh;transition:transform .24s;display:flex;position:fixed;inset:0 auto 0 0;overflow:hidden;transform:translate(-100%)}.mobile-sidebar.open{transform:translate(0)}.mobile-close{color:#cbd5e1;background:#ffffff0d;border:1px solid #ffffff1a;border-radius:12px;justify-content:center;align-items:center;width:40px;height:40px;display:inline-flex}.sidebar-head{flex:none;justify-content:space-between;align-items:center;display:flex}.mobile-sidebar .sidebar-body{-webkit-overflow-scrolling:touch;touch-action:pan-y;overscroll-behavior:contain;flex:1;height:auto;min-height:0;padding-bottom:80px;overflow-y:auto}.app-shell.collapsed .mobile-sidebar .brand{justify-content:flex-start}.app-shell.collapsed .mobile-sidebar .brand-copy,.app-shell.collapsed .mobile-sidebar .nav-group-toggle,.app-shell.collapsed .mobile-sidebar .nav-label{display:block}.app-shell.collapsed .mobile-sidebar .nav-group-toggle{display:flex}.app-shell.collapsed .mobile-sidebar .nav a,.mobile-sidebar .nav a{justify-content:flex-start;padding:8px 12px}.app-shell.collapsed .mobile-sidebar .nav-icon{margin:0}.guest-grid{grid-template-columns:1fr}.guest-copy{display:none}.guest-mobile-brand{align-items:center;gap:12px;margin-bottom:24px;display:flex}}.aurora-shell{isolation:isolate;color:#eef5ff;--cyan:#48e6ff;--violet:#9b7cff;--green:#35f6a5;--rose:#ff5c8a;--muted:#91a3c3;--line:#ffffff1f;--shadow:0 24px 80px #00000059;min-height:100vh;position:relative;overflow:hidden}.aurora-shell-dark{background:radial-gradient(circle at 15% 0%, #48e6ff2e, transparent 30%), radial-gradient(circle at 80% 12%, #9b7cff33, transparent 34%), linear-gradient(180deg, color-mix(in srgb, var(--brand-sidebar) 82%, #050816 18%) 0%, var(--brand-sidebar) 52%, color-mix(in srgb, var(--brand-sidebar) 78%, var(--brand-sidebar-active) 22%) 100%)}.aurora-grid{pointer-events:none;background-image:linear-gradient(#ffffff0b 1px,#0000 1px),linear-gradient(90deg,#ffffff0b 1px,#0000 1px);background-size:72px 72px;position:absolute;inset:0;-webkit-mask-image:linear-gradient(#000000d9,#0000 85%);mask-image:linear-gradient(#000000d9,#0000 85%)}.aurora-orb{filter:blur(10px);opacity:.9;pointer-events:none;border-radius:999px;position:absolute}.aurora-orb-one{background:radial-gradient(circle,#48e6ff52,#0000 66%);width:380px;height:380px;top:-120px;left:8%}.aurora-orb-two{background:radial-gradient(circle,#9b7cff52,#0000 65%);width:460px;height:460px;top:5%;right:-120px}.aurora-orb-three{background:linear-gradient(90deg,#35f6a521,#ff5c8a1f);width:520px;height:180px;bottom:6%;left:22%;transform:rotate(-12deg)}.premium-login-shell{z-index:1;grid-template-columns:minmax(540px,1fr) minmax(360px,480px);align-items:center;gap:clamp(28px,4vw,58px);height:100vh;min-height:100vh;padding:clamp(18px,3vh,34px) clamp(24px,5vw,86px);display:grid;position:relative;overflow:hidden}.premium-login-story{gap:clamp(14px,2vh,20px);min-height:0;display:grid}.premium-logo{object-fit:contain;width:clamp(150px,12vw,200px);height:auto}.premium-logo-text{color:#fff;width:fit-content;box-shadow:0 18px 48px #48e6ff2e, var(--shadow);letter-spacing:-.03em;text-shadow:0 0 18px #48e6ff59;background:linear-gradient(135deg,#48e6ff47,#9b7cff38);border:1px solid #48e6ff73;border-radius:20px;padding:12px 18px;font-size:clamp(24px,2.4vw,34px);font-weight:900}.login-hero-card{border:1px solid var(--line);max-width:760px;box-shadow:var(--shadow);-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px);background:linear-gradient(135deg,#ffffff21,#ffffff0a);border-radius:32px;padding:clamp(24px,3.5vw,44px)}.hero-badge{width:fit-content;color:var(--cyan);background:#48e6ff14;border:1px solid #48e6ff40;border-radius:999px;align-items:center;gap:8px;margin-bottom:clamp(14px,2vh,20px);padding:8px 12px;font-size:13px;font-weight:800;display:flex}.login-hero-card h1,.login-hero-card h2{letter-spacing:0;max-width:620px;margin:0;font-size:36px;line-height:1.08}.login-hero-card p{max-width:620px;color:var(--muted);margin:clamp(14px,2vh,20px) 0 0;font-size:clamp(15px,1.2vw,17px);line-height:1.55}.login-network-visual{background:radial-gradient(circle at 18% 48%,#48e6ff38,#0000 18%),radial-gradient(circle at 52%,#35f6a52e,#0000 20%),radial-gradient(circle at 84% 42%,#9b7cff38,#0000 20%),linear-gradient(135deg,#ffffff14,#ffffff08);border:1px solid #48e6ff2e;border-radius:26px;height:clamp(82px,12vh,118px);margin-top:clamp(14px,2vh,22px);position:relative;overflow:hidden}.login-network-visual:before{content:"";background:linear-gradient(90deg,#0000,#48e6ffbf,#35f6a5bf,#0000);height:1px;position:absolute;inset:50% 10% auto;box-shadow:0 0 28px #48e6ff73}.network-node{width:48px;height:48px;color:var(--cyan);background:#0408168c;border:1px solid #ffffff2e;border-radius:18px;place-items:center;display:grid;position:absolute;top:50%;transform:translateY(-50%);box-shadow:0 0 28px #48e6ff2e}.node-a{left:12%}.node-b{color:var(--green);left:50%;transform:translate(-50%,-50%)}.node-c{color:var(--violet);right:12%}.login-network-visual i,.login-network-visual b{background:var(--green);width:9px;height:9px;box-shadow:0 0 20px var(--green);border-radius:50%;animation:3.5s linear infinite signalTravel;position:absolute;top:calc(50% - 4px)}.login-network-visual b{background:var(--cyan);box-shadow:0 0 20px var(--cyan);animation-delay:1.7s}@keyframes signalTravel{0%{opacity:0;left:15%}12%,86%{opacity:1}to{opacity:0;left:84%}}.floating-analytics{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:clamp(14px,2vh,22px);display:grid}.floating-analytics div{border:1px solid var(--line);background:#ffffff0f;border-radius:20px;padding:14px}.floating-analytics svg{color:var(--green)}.floating-analytics span{margin-top:8px;font-size:clamp(22px,2vw,28px);font-weight:900;display:block}.floating-analytics small{color:var(--muted)}.premium-login-panel{border:1px solid var(--line);box-shadow:var(--shadow);-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px);background:#080f22c2;border-radius:32px;padding:clamp(24px,3vw,34px);position:relative}.panel-glow{z-index:-1;border-radius:inherit;filter:blur(18px);opacity:.65;background:linear-gradient(135deg,#48e6ff52,#9b7cff38,#ff5c8a33);position:absolute;inset:-1px}.premium-login-panel h2{color:#eef5ff;letter-spacing:-.04em;margin:10px 0 7px;font-size:clamp(30px,2.6vw,34px)}.eyebrow{color:var(--cyan);letter-spacing:.14em;text-transform:uppercase;align-items:center;gap:8px;margin:0;font-size:12px;font-weight:800;display:inline-flex}.panel-copy{color:var(--muted);margin:0 0 clamp(18px,2.4vh,24px)}.premium-auth-form{gap:clamp(14px,2vh,18px);display:grid}.premium-auth-form label{color:#dbe7ff;gap:9px;font-size:14px;font-weight:800;display:grid}.premium-auth-form label b{color:var(--rose)}.password-row{justify-content:space-between;align-items:center;gap:12px;display:flex}.password-row a,.premium-create a{color:var(--cyan)}.premium-input{background:#ffffff0f;border:1px solid #ffffff24;border-radius:16px;align-items:center;gap:11px;height:clamp(48px,5.8vh,52px);padding:0 14px;display:flex}.premium-input:focus-within{border-color:#48e6ffb3;box-shadow:0 0 0 4px #48e6ff14}.premium-input svg{color:var(--cyan)}.premium-input input{color:#fff;background:0 0;border:0;outline:0;flex:1;min-width:0}.premium-input button{color:#cfe6ff;background:0 0;border:0;place-items:center;display:grid}.premium-signin-button{color:#03101d;background:linear-gradient(135deg, var(--cyan), var(--green));cursor:pointer;border:0;border-radius:16px;justify-content:center;align-items:center;min-height:clamp(48px,5.8vh,52px);padding:0 20px;font-weight:900;display:inline-flex;box-shadow:0 16px 36px #35f6a533}.premium-create{text-align:center;color:var(--muted);margin:clamp(16px,2vh,22px) 0 0}.premium-error{color:#fecdd3;background:#ff5c8a1f;border:1px solid #ff5c8a59;border-radius:14px;padding:10px 12px}.command-palette{border:1px solid var(--line);max-width:620px;box-shadow:var(--shadow);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);background:#070e20b8;border-radius:24px;overflow:hidden}.command-input{height:48px;color:var(--muted);border-bottom:1px solid var(--line);align-items:center;gap:12px;padding:0 18px;display:flex}.command-input kbd{color:#fff;background:#ffffff1a;border-radius:9px;margin-left:auto;padding:5px 8px;display:inline-flex}.command-results{padding:10px;display:grid}.command-results div{color:#dbe7ff;border-radius:12px;align-items:center;gap:9px;padding:8px 12px;display:flex}.command-results div:hover{color:var(--cyan);background:#48e6ff14}.patient-crud-card{overflow:visible}.patient-crud-head{justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px;display:flex}.patient-search{color:#64748b;background:#f8fafc;border:1px solid #e5e7eb;border-radius:12px;align-items:center;gap:10px;width:min(520px,100%);padding:0 14px;display:flex}.patient-search input{color:#111827;width:100%;height:42px;font:inherit;background:0 0;border:0;outline:none}.patient-name{color:#111827;font-weight:800}.patient-tags,.table-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.table-actions{flex-wrap:nowrap}.icon-button{width:var(--action-button-height);height:var(--action-button-height);min-width:var(--action-button-height);min-height:var(--action-button-height);justify-content:center;padding:0}.button.danger{color:#b91c1c;background:#fff1f2;border:1px solid #fecdd3}.button.danger.solid{color:#fff;background:#dc2626;border-color:#dc2626}.button:disabled{cursor:not-allowed;opacity:.65}.empty-cell{color:#64748b;text-align:center!important;padding:28px 10px!important}.crud-modal-backdrop{z-index:2400;-webkit-overflow-scrolling:touch;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#0f172a7a;place-items:start center;padding:24px;display:grid;position:fixed;inset:0;overflow:hidden auto}.crud-modal{background:#fff;border:1px solid #e5e7eb;border-radius:18px;gap:16px;width:min(1040px,100vw - 48px);max-height:none;margin:auto 0;padding:28px;display:grid;overflow:visible;box-shadow:0 30px 90px #0f172a47}.crud-modal.small-modal{overflow:visible}.crud-modal.medicine-modal{width:min(1180px,100vw - 48px)}.crud-modal.small-modal{width:min(860px,100vw - 48px)}.invoice-status-summary{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;display:grid}.invoice-status-summary>div{background:linear-gradient(135deg,#fff 0%,#f8fafc 100%);border:1px solid #e5e7eb;border-radius:16px;gap:4px;min-width:0;padding:14px;display:grid}.invoice-status-summary span,.invoice-status-summary small{color:#64748b;font-size:12px;font-weight:700}.invoice-status-summary strong{overflow-wrap:anywhere;color:#111827;font-size:18px}.invoice-quick-payment-section{background:#fff}.invoice-quick-payment-row{grid-template-columns:minmax(140px,.8fr) minmax(120px,.7fr) minmax(180px,1fr) minmax(140px,.8fr) auto;align-items:end}.form-section{background:#fbfdff;border:1px solid #e5e7eb;border-radius:16px;gap:12px;padding:16px;display:grid}.form-section h3{color:#111827;margin:0;font-size:14px;font-weight:900}.crud-modal label{color:#334155;gap:7px;font-size:13px;font-weight:800;display:grid}.card label,.clinical-form-card label{color:#1f2937;gap:8px;font-size:14px;font-weight:600;display:grid}.card label span,.clinical-form-card label span{line-height:1.1}.card label b,.clinical-form-card label b{color:#dc2626}.crud-modal label b{color:#dc2626;font-size:15px}.crud-modal-head,.crud-modal-actions{justify-content:space-between;align-items:center;gap:12px;display:flex}.crud-modal-head h2{color:#111827;margin:0;font-size:24px}.patient-form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.compact-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px}.clinical-form-card{border-color:#dbe3ef;align-content:start;gap:18px;box-shadow:0 18px 50px #0f172a12}.form-footer-actions{justify-content:flex-start;padding-top:2px;display:flex}.two-wide-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.two-wide-fields .textarea{min-height:116px}.inline-check-grid{flex-wrap:wrap;align-items:center;gap:10px 18px;display:flex}.icon-close{color:#334155;cursor:pointer;background:#fff;border:1px solid #e5e7eb;border-radius:12px;justify-content:center;align-items:center;width:38px;height:38px;display:inline-flex}.form-error,.field-error{color:#b91c1c;font-weight:700}.form-error{background:#fff1f2;border:1px solid #fecdd3;border-radius:12px;padding:10px 12px}.form-error.success-message{color:#166534;background:#f0fdf4;border-color:#bbf7d0}.input.input-error{color:#991b1b;background:#fff1f2;border-color:#dc2626!important;box-shadow:0 0 0 4px #dc26261f!important}.field-error:empty{display:none}.delete-confirm-modal{text-align:center;background:#fff;border:1px solid #e5e7eb;border-radius:18px;width:min(430px,100vw - 36px);padding:28px;box-shadow:0 30px 90px #0f172a47}.delete-confirm-icon{color:#dc2626;background:#fff1f2;border:1px solid #fecdd3;border-radius:18px;justify-content:center;align-items:center;width:58px;height:58px;margin-bottom:14px;display:inline-flex}.delete-confirm-modal h2{color:#111827;margin:0;font-size:24px}.delete-confirm-modal p{color:#64748b;margin:10px 0 22px;line-height:1.6}.delete-confirm-actions{justify-content:center;gap:12px;display:flex}.calendar-filters{grid-template-columns:180px minmax(220px,1fr) minmax(280px,420px) 52px;gap:12px;min-width:0;margin-bottom:16px;display:grid;overflow:visible}.calendar-filters>*{min-width:0}.calendar-filters .status-multi-select,.appointment-list-filter-grid .status-multi-select,.pharmacy-filter-grid .status-multi-select{grid-column:1/-1;width:100%}.status-multi-select .smart-multi-field{width:100%}.calendar-fullscreen-toggle{color:#334155;border-radius:14px;grid-area:1/4;width:50px;height:50px}.appointment-top-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px;display:grid}.appointment-stat-card{background:#fff;border:1px solid #e5e7eb;border-radius:16px;align-items:center;gap:12px;min-height:88px;padding:14px 16px;display:flex;box-shadow:0 10px 24px #0f172a0d}.appointment-stat-card>span{width:42px;height:42px;color:var(--brand-primary);background:var(--brand-surface-tint);border-radius:14px;justify-content:center;align-items:center;display:inline-flex}.appointment-stat-card p{color:#64748b;margin:0;font-size:12px;font-weight:900}.appointment-stat-card strong{color:#111827;font-size:25px;line-height:1.1}.followup-stats .appointment-stat-card{min-height:96px}.appointment-list-card{margin-top:16px;overflow-x:auto}.queue-appointment-table-card{max-height:42vh;overflow:auto}.queue-appointment-table-card .table thead th{z-index:2;background:#fff;position:sticky;top:0;box-shadow:0 1px #e5e7eb}.appointment-list-card h2{color:#111827;margin:0 0 4px}.appointment-list-search{max-width:430px}.calendar-inline-list{display:none}.appointment-list-filter-grid{grid-template-columns:220px minmax(320px,1fr);align-items:center;gap:12px;margin-bottom:16px;display:grid}.appointment-list-timeline{gap:12px;margin-bottom:16px;display:grid}.appointment-timeline-search{width:100%;max-width:none;margin-bottom:10px}.appointment-meta-chips{margin-top:8px}.appointment-list-filter-grid .status-filter-row{grid-column:1/-1;align-items:stretch;gap:12px;min-width:0;display:flex}.appointment-list-filter-grid .status-filter-row .status-multi-select{flex:auto;grid-column:auto;min-width:0}.appointment-list-filter-grid .status-filter-row .filter-search-button{flex:0 0 56px;width:56px;height:54px;min-height:54px}.date-action-modal{background:#fff;border:1px solid #e5e7eb;border-radius:18px;gap:12px;width:min(440px,100vw - 36px);padding:24px;display:grid;box-shadow:0 30px 90px #0f172a47}.calendar-layout{grid-template-columns:minmax(0,calc(60% - 8px)) minmax(360px,calc(40% - 8px));align-items:start;gap:16px;min-width:0;display:grid}.calendar-layout.calendar-fullscreen{z-index:2400;background:#f8fafc;border-radius:24px;grid-template-columns:minmax(0,1fr) minmax(390px,.34fr);padding:16px;position:fixed;inset:14px;overflow:auto;box-shadow:0 28px 80px #0f172a47}.appointment-calendar-pane{gap:16px;min-width:0;display:grid;overflow:hidden}.calendar-board{grid-template-columns:repeat(7,minmax(0,1fr));align-self:start;gap:10px;min-width:0;display:grid}.calendar-board.month-view{padding-top:38px;position:relative}.calendar-month-title{color:#111827;font-size:18px;font-weight:950;position:absolute;top:0;left:0}.calendar-day{text-align:left;color:#111827;cursor:pointer;background:#fff;border:1px solid #e5e7eb;border-radius:16px;align-content:start;gap:8px;min-width:0;min-height:132px;padding:14px;display:grid;box-shadow:0 12px 30px #0f172a0d}.calendar-day.active{border-color:var(--brand-primary);background:var(--brand-surface-tint)}.calendar-day.muted-day{opacity:.58}.calendar-day span{color:#64748b;font-size:13px;font-weight:800}.calendar-day strong{font-size:28px;line-height:1}.calendar-day em{color:#475569;margin-top:auto;font-style:normal;font-weight:800}.calendar-day small{color:#059669;font-size:12px;font-weight:800}.calendar-view-toggle{background:#fff;border:1px solid #e5e7eb;border-radius:14px;align-items:center;gap:6px;padding:4px;display:inline-flex}.calendar-view-toggle button{color:#64748b;text-transform:capitalize;cursor:pointer;background:0 0;border:0;border-radius:10px;min-height:34px;padding:0 12px;font-weight:900}.calendar-view-toggle button.active{background:var(--brand-primary);color:#fff}.day-scheduler{background:#fff;border:1px solid #e5e7eb;border-radius:18px;overflow:auto;box-shadow:0 12px 30px #0f172a0d}.day-scheduler-head,.day-scheduler-row{grid-template-columns:96px repeat(var(--doctor-columns,4), minmax(230px, 260px));width:max-content;min-width:100%;display:grid}.day-scheduler-head{z-index:5;background:#fff;border-bottom:1px solid #e5e7eb;position:sticky;top:0}.day-scheduler-head strong,.day-scheduler-row time{z-index:4;position:sticky;left:0;box-shadow:8px 0 18px #0f172a0f}.day-scheduler-head strong{z-index:6;background:#fff}.day-scheduler-head strong,.day-scheduler-head span,.day-scheduler-row time,.day-scheduler-cell{border-right:1px solid #e5e7eb;padding:12px}.day-scheduler-head span,.day-scheduler-head strong{color:#111827;font-weight:950}.day-scheduler-row{border-bottom:1px solid #eef2f7;min-height:92px}.day-scheduler-row time{color:#64748b;background:#f8fafc;font-size:12px;font-weight:950}.day-scheduler-cell{align-content:start;gap:8px;min-width:170px;display:grid}.day-appointment-card{border:1px solid #e5e7eb;border-left:4px solid var(--brand-primary);color:#111827;text-align:left;cursor:pointer;background:#fff;border-radius:12px;gap:4px;width:100%;padding:10px;display:grid;box-shadow:0 10px 20px #0f172a0f}.day-appointment-card span,.day-appointment-card small{color:#64748b;font-size:12px;font-weight:800}.journey-strip{grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;display:grid}.journey-stat{background:#fff;border:1px solid #e5e7eb;border-radius:14px;gap:6px;padding:14px;display:grid;box-shadow:0 10px 24px #0f172a0d}.journey-stat span{color:#64748b;font-size:12px;font-weight:900}.journey-stat strong{color:#111827;font-size:24px}.selected-schedule{min-width:0;min-height:420px;overflow:hidden}.appointment-journey-pane{z-index:2;background:radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--brand-primary) 9%, transparent), transparent 32%), linear-gradient(180deg, #fff 0%, #f8fafc 100%);border:1px solid #dbe5f3;position:sticky;top:92px}.selected-date-summary{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:2px 0 16px;display:grid}.selected-date-summary div{background:#ffffffc7;border:1px solid #e5e7eb;border-radius:14px;padding:10px}.selected-date-summary span{color:#64748b;text-transform:uppercase;font-size:10px;font-weight:950;display:block}.selected-date-summary strong{color:#111827;margin-top:2px;font-size:20px;font-weight:950;display:block}.appointment-flow{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:4px 0 20px;padding:30px 6px 8px;display:grid;position:relative}.appointment-flow span{white-space:nowrap;color:#64748b;text-align:center;font-size:12px;font-weight:950;position:relative}.appointment-flow:before{content:"";background:#bae6fd;border-radius:999px;height:3px;position:absolute;top:17px;left:13%;right:13%}.appointment-flow span:before{content:"";background:#38bdf8;border:3px solid #e0f2fe;border-radius:999px;width:13px;height:13px;position:absolute;top:-20px;left:50%;transform:translate(-50%);box-shadow:0 0 0 4px #fff}.schedule-list{gap:14px;display:grid}.schedule-item{background:linear-gradient(90deg, color-mix(in srgb, var(--brand-primary) 6%, transparent), transparent 34%), linear-gradient(180deg, #fff 0%, #f8fbff 100%);border:1px solid #d8e2f1;border-radius:22px;grid-template-columns:minmax(0,1fr);align-items:start;gap:12px;padding:18px;transition:transform .18s,box-shadow .18s,border-color .18s;display:grid;position:relative;box-shadow:0 18px 38px #0f172a14}.schedule-item:before{content:"";background:linear-gradient(180deg, var(--brand-primary), var(--brand-accent));border-radius:0 999px 999px 0;width:4px;position:absolute;inset:16px auto 16px 0}.schedule-item:hover{border-color:color-mix(in srgb, var(--brand-primary) 30%, #d8e2f1);transform:translateY(-2px);box-shadow:0 24px 46px #0f172a1f}.schedule-card-head{justify-content:space-between;align-items:flex-start;gap:14px;min-width:0;display:flex}.schedule-patient-title{gap:4px;min-width:0;display:grid}.schedule-patient-title strong{color:#111827;font-size:18px;font-weight:950}.schedule-patient-title span{color:#64748b;font-size:14px;font-weight:800}.schedule-card-tools{flex:none;align-items:center;gap:8px;display:inline-flex;position:relative}.schedule-card-tools time{background:var(--brand-surface-tint);min-width:82px;color:var(--brand-primary);text-align:center;border-radius:999px;padding:8px 10px;font-size:14px;font-weight:950}.card-action-menu{position:relative}.card-action-popover{z-index:40;background:#fff;border:1px solid #dbe3ef;border-radius:14px;min-width:150px;padding:6px;display:none;position:absolute;top:calc(100% + 8px);right:0;box-shadow:0 18px 42px #0f172a29}.card-action-menu:focus-within .card-action-popover,.card-action-menu:hover .card-action-popover{gap:4px;display:grid}.card-action-popover button{color:#334155;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:10px;align-items:center;gap:8px;width:100%;padding:9px 10px;font-weight:850;display:flex}.card-action-popover button:hover{background:#f1f5f9}.card-action-popover .danger-text{color:#dc2626}.schedule-time{color:var(--brand-primary);text-shadow:0 8px 22px color-mix(in srgb, var(--brand-primary) 18%, transparent);padding-top:2px;font-size:22px;font-weight:950;line-height:1.08}.schedule-body strong{color:#111827;font-size:18px;font-weight:950}.schedule-body p{color:#64748b;margin:4px 0 10px;font-size:15px;font-weight:750}.appointment-card-timeline{background:#f8fafcb8;border-radius:16px;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:18px;padding:30px 10px 8px;display:grid;position:relative}.appointment-card-timeline:before{content:"";background:linear-gradient(90deg,#cbd5e1,#dbeafe);border-radius:999px;height:3px;position:absolute;top:12px;left:12.5%;right:12.5%}.appointment-card-timeline span{color:#94a3b8;text-align:center;background:0 0;border:0;min-width:0;padding:0 4px;font-size:11px;font-weight:950;position:relative}.appointment-card-timeline span:before{content:"";z-index:1;background:#cbd5e1;border:3px solid #fff;border-radius:999px;width:15px;height:15px;position:absolute;top:-25px;left:50%;transform:translate(-50%);box-shadow:0 0 0 1px #cbd5e1,0 5px 12px #0f172a1f}.appointment-card-timeline span.active{color:var(--brand-primary)}.appointment-card-timeline span.active:before{background:var(--brand-primary);box-shadow:0 0 0 1px var(--brand-primary)}.appointment-card-timeline span.done{color:#047857}.appointment-card-timeline span.done:before{background:#10b981;box-shadow:0 0 0 1px #10b981}.appointment-card-timeline span.current{color:#111827}.appointment-card-timeline span.current:before{background:var(--brand-primary);width:18px;height:18px;box-shadow:0 0 0 4px color-mix(in srgb, var(--brand-primary) 16%, transparent);top:-26px}.appointment-card-timeline span.done.current{color:#047857}.appointment-card-timeline span.done.current:before{background:#10b981;box-shadow:0 0 0 4px #10b9812e}.appointment-card-timeline.stopped span.current,.appointment-card-timeline.stopped span.active{color:#b91c1c}.appointment-card-timeline.stopped span.current:before,.appointment-card-timeline.stopped span.active:before{background:#ef4444;box-shadow:0 0 0 1px #ef4444}.appointment-actions{border-top:1px solid #e8eef7;justify-content:flex-end;align-items:center;gap:12px;padding-top:10px;display:flex}.appointment-actions .table-actions{justify-content:flex-end}.journey-actions{flex-wrap:wrap;justify-content:flex-start;gap:7px;min-width:0;display:flex}.journey-button{color:#334155;cursor:pointer;background:#fff;border:1px solid #e5e7eb;border-radius:999px;min-height:34px;padding:6px 12px;font-size:12px;font-weight:900}.journey-button.waiting,.button.action-waiting{color:#c2410c;background:#fff7ed;border-color:#fed7aa}.journey-button.consulting,.button.action-consulting{color:var(--brand-primary);background:var(--brand-surface-tint);border-color:color-mix(in srgb, var(--brand-primary) 26%, #fff)}.journey-button.complete{color:#047857;background:#ecfdf5;border-color:#bbf7d0}.journey-button.prescribe{color:#fff;background:var(--brand-primary);border-color:var(--brand-primary);box-shadow:0 8px 18px color-mix(in srgb, var(--brand-primary) 22%, transparent)}.journey-button.danger{color:#b91c1c;background:#fff1f2;border-color:#fecdd3}.button.action-edit{color:#0369a1;background:#f0f9ff;border-color:#bae6fd}.button.action-prescription{color:#fff;background:var(--brand-primary);border-color:var(--brand-primary);box-shadow:0 8px 18px color-mix(in srgb, var(--brand-primary) 18%, transparent)}.button.action-delete{color:#dc2626;background:#fff1f2;border-color:#fecdd3}.journey-button:disabled{cursor:not-allowed;color:#94a3b8;opacity:1;box-shadow:none;background:#f8fafc;border-color:#e5e7eb}.queue-display-grid{grid-template-columns:minmax(320px,.9fr) minmax(0,1.1fr);gap:16px;min-height:calc(100vh - 280px);max-height:calc(100vh - 230px);margin-bottom:16px;display:grid}.queue-now-card,.queue-upcoming-card{background:#fff;border:1px solid #e5e7eb;border-radius:22px;min-height:0;padding:22px;box-shadow:0 18px 42px #0f172a14}.queue-now-card{background:radial-gradient(circle at 90% 0%, color-mix(in srgb, var(--brand-accent) 18%, transparent), transparent 36%), linear-gradient(135deg, var(--brand-sidebar) 0%, var(--brand-primary) 100%);color:#fff;align-content:center;min-height:280px;display:grid}.queue-now-card>span,.queue-now-card p{color:#ffffffc7;font-weight:900}.queue-now-card strong{margin-top:8px;font-size:clamp(54px,8vw,96px);font-weight:950;line-height:.92}.queue-now-card h2{margin:12px 0 4px;font-size:28px}.queue-now-meta{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:18px;display:grid}.queue-now-meta div{background:#ffffff1f;border-radius:14px;padding:10px}.queue-now-meta span{color:#ffffffad;font-size:11px;font-weight:900;display:block}.queue-now-meta b{margin-top:4px;font-size:22px;display:block}.queue-upcoming-list{gap:12px;max-height:calc(100vh - 340px);padding-right:4px;display:grid;overflow:auto}.queue-upcoming-item{background:linear-gradient(90deg, color-mix(in srgb, var(--brand-primary) 7%, transparent), transparent 42%), #fff;border:1px solid #dbe4f0;border-radius:18px;grid-template-columns:110px minmax(0,1fr) auto;align-items:center;gap:14px;padding:14px;transition:transform .18s,box-shadow .18s,border-color .18s;display:grid;position:relative;box-shadow:0 14px 30px #0f172a12}.queue-upcoming-item:hover{border-color:color-mix(in srgb, var(--brand-primary) 30%, #dbe4f0);transform:translateY(-2px);box-shadow:0 20px 38px #0f172a1c}.queue-upcoming-item:before{content:"";background:linear-gradient(180deg, var(--brand-primary), var(--brand-accent));border-radius:0 999px 999px 0;width:4px;position:absolute;inset:12px auto 12px 0}.queue-token-pill{background:#eef2ff;border-radius:15px;gap:5px;min-width:0;padding:10px;display:grid}.queue-token-pill strong{color:var(--brand-primary);overflow-wrap:anywhere;font-size:20px;font-weight:950;line-height:1.05}.queue-token-pill span{color:#64748b;font-size:12px;font-weight:950}.queue-patient-copy{gap:3px;min-width:0;display:grid}.queue-patient-copy b{color:#111827;font-size:16px;font-weight:950}.queue-patient-copy span,.queue-patient-copy small{color:#64748b;text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:13px;font-weight:850;overflow:hidden}.queue-patient-copy small{color:#94a3b8;font-size:12px}.queue-upcoming-item em{color:var(--brand-primary);background:#eef2ff;border-radius:999px;padding:6px 10px;font-size:12px;font-style:normal;font-weight:950}.prescription-cycle{grid-template-columns:minmax(0,calc(72% - 8px)) minmax(360px,calc(28% - 8px));align-items:start;gap:16px;min-width:0;display:grid}.app-shell:not(.collapsed) .prescription-cycle{grid-template-columns:minmax(0,calc(70% - 8px)) minmax(320px,calc(30% - 8px))}.rx-editor-card,.rx-side-panel{gap:16px;min-width:0;display:grid}.rx-editor-card{overflow:hidden}.rx-editor-card .section-title{flex-wrap:wrap}.rx-side-panel{position:sticky;top:92px}@media (width<=1600px){.calendar-layout,.prescription-cycle{grid-template-columns:minmax(0,1fr)}.appointment-journey-pane,.rx-side-panel{position:static}.rx-editor-card{overflow:visible}}.rx-patient-strip{background:#f8fafc;border:1px solid #e5e7eb;border-radius:14px;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:12px;display:grid}.rx-patient-strip div{gap:4px;display:grid}.rx-patient-strip span,.rx-patient-strip small{color:#64748b;font-size:12px;font-weight:800}.rx-patient-strip strong{color:#111827;font-size:16px}.rx-grid-head,.rx-item-full{grid-template-columns:minmax(220px,1.35fr) minmax(150px,.8fr) minmax(170px,.85fr) minmax(160px,.8fr) minmax(240px,1.25fr);gap:8px;display:grid}.app-shell:not(.collapsed) .rx-grid-head,.app-shell:not(.collapsed) .rx-item-full{grid-template-columns:minmax(180px,1.2fr) minmax(120px,.75fr) minmax(140px,.8fr) minmax(130px,.75fr) minmax(190px,1fr)}.rx-grid-head{color:#64748b;padding:0 2px;font-size:12px;font-weight:900}.rx-grid-head b{color:#dc2626}.rx-item-full{background:#f8fafc;border:1px solid #e5e7eb;border-radius:14px;padding:12px 64px 12px 12px;position:relative}.rx-item-full>:nth-child(6){width:40px;min-width:40px;position:absolute;top:12px;right:12px}.rx-item-full>:nth-child(7){grid-column:1}.rx-item-full>:nth-child(8){grid-column:2}.rx-item-full>:nth-child(9){grid-column:3}.rx-item-full>:nth-child(10){grid-column:4}.rx-item-full>:nth-child(11){grid-column:5;justify-content:center;width:100%;min-height:56px}.procedure-entry-grid{grid-template-columns:1.2fr .8fr 1fr;gap:10px;display:grid}.procedure-session-layout{align-items:start;gap:20px}.procedure-session-form .compact-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 18px}.procedure-session-form .procedure-notes-field{gap:8px;margin-top:15px;margin-bottom:15px;display:grid}.procedure-session-form .procedure-notes-field .textarea{min-height:120px}.procedure-session-table{max-height:460px}.procedure-session-table .table{min-width:780px}.procedure-session-table .table td{vertical-align:top}.stock-pill,.price-pill{border-radius:10px;align-items:center;min-height:40px;padding:0 12px;font-size:13px;font-weight:900;display:inline-flex}.stock-pill.ok{color:#047857;background:#ecfdf5}.stock-pill.empty{color:#b91c1c;background:#fff1f2}.rx-item-full .readonly-input{height:48px;padding:0 15px}.rx-item-full .smart-select{margin-bottom:0}.rx-item-full .stock-pill{justify-content:flex-start;align-items:center;width:100%;height:48px;min-height:48px;padding:0 15px;display:flex}.price-pill{color:#334155;background:#eef2f7}.cycle-steps{gap:10px;display:grid}.cycle-steps div{color:#64748b;background:#fff;border:1px solid #e5e7eb;border-radius:12px;align-items:center;gap:9px;padding:10px;font-weight:800;display:flex}.cycle-steps div.done{color:#047857;background:#ecfdf5;border-color:#bbf7d0}.full-button{justify-content:center;width:100%}.rx-template-list{gap:10px;display:grid}.rx-template-card{color:#0f172a;text-align:left;cursor:pointer;background:#fff;border:1px solid #dbe3ef;border-radius:14px;justify-content:space-between;align-items:center;gap:12px;width:100%;padding:12px 14px;transition:border-color .18s,box-shadow .18s,transform .18s;display:flex}.rx-template-card:hover{border-color:var(--primary);transform:translateY(-1px);box-shadow:0 12px 24px #4f46e521}.rx-template-card span{gap:3px;min-width:0;display:grid}.rx-template-card strong,.rx-template-card small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.rx-template-card small{color:#64748b;font-weight:700}.rx-template-card b{color:#4338ca;background:#ede9fe;border-radius:999px;flex:none;padding:7px 10px;font-size:12px}.draft-button{color:#334155;background:#fff;border:1px solid #cbd5e1}.finalize-button{color:#fff;background:#047857}.prescription-toolbar{align-items:center}.prescription-toolbar.has-page-back{grid-template-columns:minmax(260px,1fr) auto auto;align-items:center;display:grid}.prescription-toolbar.has-page-back>:first-child,.prescription-toolbar.has-page-back>.table-actions{margin:0}.prescription-toolbar .table-actions{align-items:center;gap:10px}.prescription-toolbar .button,.prescription-toolbar .page-back-icon-button{border-radius:10px;height:50px;min-height:50px}.prescription-toolbar .page-back-icon-button{width:50px;min-width:50px}.prescription-toolbar .button{padding-inline:18px}.settings-toolbar.has-page-back{grid-template-columns:minmax(280px,1fr) minmax(0,auto) auto;align-items:center;display:grid}.settings-toolbar.has-page-back>:first-child,.settings-toolbar.has-page-back>.table-actions{margin:0}.settings-toolbar .table-actions{align-items:center;gap:10px}.settings-clinic-select{width:320px;margin-top:0}.settings-clinic-select .smart-select{width:100%;margin:0}.settings-clinic-select .smart-select-input,.settings-toolbar .button,.settings-toolbar .page-back-icon-button{border-radius:10px;height:50px;min-height:50px}.settings-toolbar .button{padding-inline:18px}.settings-toolbar .page-back-icon-button{width:50px;min-width:50px}.procedure-info-card,.planned-procedure-item{background:#f8fafc;border:1px solid #dbe3ef;border-radius:12px;gap:5px;padding:11px;display:grid}.procedure-info-card strong,.planned-procedure-item strong{color:#111827}.procedure-info-card span,.planned-procedure-item span{color:#64748b;font-size:12px;font-weight:800}.procedure-info-card p,.planned-procedure-item p{color:#475569;white-space:pre-line;margin:0;line-height:1.45}.planned-procedure-list{gap:8px;display:grid}.history-panel-backdrop{z-index:2400;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#0f172a6b;justify-content:flex-end;display:flex;position:fixed;inset:0}.history-panel{background:#fff;width:min(50vw,760px);height:100%;padding:22px;overflow:auto;box-shadow:-24px 0 70px #0f172a38}.history-panel-head{justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:18px;display:flex}.history-panel-head h2{color:#111827;margin:0}.history-panel-head p{color:#64748b;margin:4px 0 0}.history-panel-body{gap:18px;display:grid}.history-tabs{flex-wrap:wrap;gap:8px;display:flex}.history-tabs button{color:#475569;cursor:pointer;background:#fff;border:1px solid #e5e7eb;border-radius:999px;min-height:36px;padding:0 13px;font-weight:900}.history-tabs button.active{border-color:var(--brand-primary);background:var(--brand-primary);color:#fff}.history-summary-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;display:grid}.history-summary-grid div{background:#f8fafc;border:1px solid #e5e7eb;border-radius:12px;padding:12px}.history-summary-grid span{color:#64748b;font-size:12px;font-weight:900;display:block}.history-summary-grid strong{color:#111827;font-size:16px}.history-panel-body section{gap:9px;display:grid}.history-section-grid{grid-template-columns:minmax(0,1fr);gap:12px;display:grid}.history-group-card{background:#fff;border:1px solid #e5e7eb;border-radius:14px;align-content:start;padding:12px}.history-panel-body h3{color:#111827;margin:0;font-size:15px}.history-item{background:#f8fafc;border:1px solid #e5e7eb;border-radius:12px;padding:11px}.detail-item{display:block}.detail-item summary{cursor:pointer;justify-content:space-between;align-items:center;gap:12px;list-style:none;display:flex}.detail-item summary::-webkit-details-marker{display:none}.history-visit-item summary{flex-wrap:wrap;justify-content:flex-start}.history-visit-item summary time{color:#64748b;margin-left:auto;font-size:12px;font-weight:850}.history-action-row{justify-content:flex-end;margin:10px 0;display:flex}.history-status-dot{background:#94a3b8;border-radius:999px;flex:none;width:12px;height:12px;box-shadow:0 0 0 4px #f1f5f9}.history-status-dot.status-scheduled{background:#1d4ed8}.history-status-dot.status-waiting{background:#f97316}.history-status-dot.status-consulting{background:var(--brand-primary)}.history-status-dot.status-completed{background:#10b981}.history-status-dot.status-cancelled{background:#e11d48}.history-status-dot.status-noshow{background:#64748b}.history-session-row{grid-template-columns:auto minmax(100px,1fr) auto;align-items:center;gap:8px 10px;display:grid}.history-session-row p,.history-session-row small{grid-column:2/-1}.history-session-row small{color:#64748b;font-size:12px;font-weight:800}.history-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px;display:grid}.history-detail-grid div{background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:9px}.history-detail-grid span{color:#64748b;font-size:11px;font-weight:900;display:block}.history-detail-grid strong{color:#111827;margin-top:3px;font-size:13px;display:block}.history-rx-list{gap:8px;margin-top:10px;display:grid}.history-rx-list>div{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:10px}.history-rx-list span{color:#64748b;margin-top:2px;font-size:12px;font-weight:800;display:block}.pre-line{white-space:pre-line}.history-item strong{color:#111827}.history-item p{color:#475569;white-space:pre-line;margin:4px 0;padding:4px 0}.history-item summary .history-pdf-icon{margin-left:8px}.audit-detail-modal{max-width:980px}.audit-diff-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:16px;display:grid}.audit-diff-grid section{background:#f8fafc;border:1px solid #e5e7eb;border-radius:16px;gap:8px;min-width:0;padding:14px;display:grid}.audit-diff-grid h3{color:#111827;margin:0 0 4px;font-size:16px}.audit-diff-grid section>div{background:#fff;border-radius:10px;grid-template-columns:minmax(120px,.5fr) minmax(0,1fr);gap:10px;padding:8px;display:grid}.audit-diff-grid span{color:#64748b;word-break:break-word;font-size:12px;font-weight:900}.audit-diff-grid strong{color:#111827;white-space:pre-wrap;word-break:break-word;font-size:13px;font-weight:800}.history-item span{color:#64748b;font-size:12px;font-weight:800}.history-item em{color:#334155;font-size:12px;font-style:normal;font-weight:900}.readonly-input{color:#475569;background:#eef2f7}.smart-select{min-width:0;margin-bottom:15px;position:relative}.dashboard-filter-grid .smart-select,.followup-filter-grid .smart-select,.module-filter-grid .smart-select,.appointment-list-filter-grid .smart-select,.calendar-filters .smart-select,.pharmacy-filter-grid .smart-select,.report-filter-panel .smart-select,.form-grid .smart-select,.patient-form-grid .smart-select{margin-bottom:0}.smart-select:focus-within{z-index:160}.smart-select .has-clear{padding-right:38px}.smart-select-clear{z-index:2;color:#475569;cursor:pointer;background:#e5e7eb;border:0;border-radius:999px;justify-content:center;align-items:center;width:22px;height:22px;display:inline-flex;position:absolute;top:50%;right:10px;transform:translateY(-50%)}.smart-select-clear:hover{color:#111827;background:#cbd5e1}.smart-select-menu{z-index:3000;background:#fff;border:1px solid #dbe3ef;border-radius:12px;max-height:240px;padding:6px;position:absolute;top:calc(100% + 6px);left:0;right:0;overflow:auto;box-shadow:0 18px 48px #0f172a2e}.smart-select-menu button{color:#111827;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:9px;width:100%;padding:9px 10px;font-weight:750;display:block}.smart-select-menu button:hover,.smart-select-menu button.selected{background:var(--brand-surface-tint);color:var(--brand-primary)}.smart-multi-field{background:#fff;border:1px solid #dbe3ef;border-radius:12px;flex-wrap:wrap;align-items:center;gap:6px;min-height:50px;padding:5px 36px 5px 8px;display:flex;position:relative;box-shadow:0 1px 2px #0f172a0a}.smart-multi-field input{color:#111827;min-width:90px;height:30px;font:inherit;background:0 0;border:0;outline:0;flex:110px;font-weight:750}.smart-multi-chip{background:var(--brand-surface-tint);max-width:100%;color:var(--brand-primary);border-radius:999px;align-items:center;gap:5px;padding:5px 8px;font-size:12px;font-weight:900;display:inline-flex}.smart-multi-chip button{background:color-mix(in srgb, var(--brand-primary) 12%, #fff);width:16px;height:16px;color:var(--brand-primary);cursor:pointer;border:0;border-radius:999px;justify-content:center;align-items:center;padding:0;display:inline-flex}.smart-select-menu .smart-select-load-more{color:var(--brand-primary);text-align:center;background:#eef2ff;font-weight:950}.employee-permission-matrix{gap:16px;display:grid}.permission-module-card{background:linear-gradient(#fff 0%,#f8fafc 100%);border:1px solid #dbe3ef;border-radius:18px;gap:14px;padding:16px;display:grid}.permission-module-head{justify-content:space-between;align-items:center;gap:12px;display:flex}.permission-module-head h3{color:#111827;text-transform:capitalize;margin:0;font-size:16px}.permission-module-head p{color:#64748b;margin:3px 0 0;font-size:12px;font-weight:800}.permission-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.permission-card{color:#111827;text-align:left;cursor:pointer;background:#fff;border:1px solid #e2e8f0;border-radius:14px;gap:6px;min-height:94px;padding:12px;transition:border-color .16s,box-shadow .16s,transform .16s;display:grid}.permission-card:hover{border-color:var(--brand-primary);transform:translateY(-1px);box-shadow:0 12px 30px #0f172a14}.permission-card.active{border-color:var(--brand-primary);background:var(--brand-surface-tint)}.permission-card span{font-weight:950}.permission-card small{color:#64748b;line-height:1.35}.permission-card em{color:#475569;background:#e2e8f0;border-radius:999px;justify-self:start;padding:3px 8px;font-size:11px;font-style:normal;font-weight:900}.permission-card.active em{background:var(--brand-primary);color:#fff}.pharmacy-grid{grid-template-columns:minmax(320px,34%) minmax(0,1fr);align-items:start;gap:16px;display:grid}.pharmacy-left{gap:16px;min-width:0;display:grid}.pharmacy-stats-top{grid-template-columns:repeat(5,minmax(0,1fr));margin-bottom:16px}.pharmacy-stats .journey-stat{cursor:pointer;text-align:left}.pharmacy-stats .journey-stat.active{border-color:var(--brand-primary);background:var(--brand-surface-tint)}.pharmacy-queue-list{gap:10px;display:grid}.pharmacy-queue-item{text-align:left;cursor:pointer;background:#f8fafc;border:1px solid #e5e7eb;border-radius:14px;gap:5px;width:100%;padding:12px;display:grid}.pharmacy-queue-item.active{border-color:var(--brand-primary);background:#fff;box-shadow:0 12px 28px #0f172a14}.pharmacy-queue-item strong{color:#111827}.pharmacy-queue-item span{color:#64748b;font-size:13px;font-weight:700}.pharmacy-queue-item small{color:#64748b;font-size:12px;font-weight:800}.pharmacy-queue-item em{color:#0369a1;background:#e0f2fe;border-radius:999px;width:fit-content;padding:4px 9px;font-size:12px;font-style:normal;font-weight:900}.pharmacy-detail{gap:16px;min-width:0;max-width:100%;max-height:none;padding-bottom:28px;display:grid;position:static;overflow:auto visible}.pharmacy-detail .table{table-layout:fixed;width:100%;min-width:0}.pharmacy-filter-grid{grid-template-columns:minmax(0,1fr)}.pharmacy-dispense-table{min-width:760px}.pharmacy-dispense-table th:first-child,.pharmacy-dispense-table td:first-child{width:21%}.pharmacy-dispense-table th:nth-child(2),.pharmacy-dispense-table td:nth-child(2){width:16%}.pharmacy-dispense-table th:nth-child(3),.pharmacy-dispense-table td:nth-child(3),.pharmacy-dispense-table th:nth-child(4),.pharmacy-dispense-table td:nth-child(4),.pharmacy-dispense-table th:nth-child(5),.pharmacy-dispense-table td:nth-child(5){width:13%}.pharmacy-dispense-table th:nth-child(6),.pharmacy-dispense-table td:nth-child(6){white-space:normal;overflow-wrap:anywhere;word-break:break-word;width:24%;line-height:1.35}.pharmacy-detail label{color:#334155;gap:7px;font-size:13px;font-weight:800;display:grid}.pharmacy-actions{flex-wrap:wrap;justify-content:flex-end;gap:10px;display:flex}.invoice-input{width:92px;min-width:92px}.pack-hint{white-space:nowrap;margin-top:4px;font-size:11px;font-weight:850}.invoice-total{background:#f8fafc;border:1px solid #e5e7eb;border-radius:12px;justify-content:flex-end;align-items:center;gap:14px;padding:14px;display:flex}.invoice-total span{color:#64748b;font-weight:900}.invoice-total strong{color:#111827;font-size:20px}.pharmacy-discount-row{grid-template-columns:minmax(180px,240px) minmax(180px,1fr) minmax(220px,1.2fr);align-items:end;gap:12px;display:grid}.pharmacy-discount-row .invoice-total,.pharmacy-discount-row label{margin:0}.master-chip-list{flex-wrap:wrap;gap:10px;display:flex}.import-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:16px;display:grid}.import-summary-grid .card{gap:4px;display:grid}.import-summary-grid strong{color:#111827;font-size:26px}.import-summary-grid span{color:#64748b;font-weight:900}.required-column-list{flex-wrap:wrap;gap:8px;margin:12px 0;display:flex}.import-map-grid{max-height:420px;padding-right:6px;overflow:auto}.import-preview-scroll{max-width:100%;max-height:520px;overflow:auto}.import-preview-scroll .table{table-layout:fixed;min-width:760px}.import-preview-scroll .table th,.import-preview-scroll .table td{white-space:normal;overflow-wrap:anywhere;vertical-align:middle}.import-preview-scroll .table th:first-child,.import-preview-scroll .table td:first-child{width:44px}.import-preview-scroll .table th:nth-child(2),.import-preview-scroll .table td:nth-child(2),.import-preview-scroll .table th:nth-child(4),.import-preview-scroll .table td:nth-child(4){width:92px}.import-preview-scroll .table th:nth-child(3),.import-preview-scroll .table td:nth-child(3){width:170px}.import-preview-scroll .table th:nth-child(5),.import-preview-scroll .table td:nth-child(5),.import-preview-scroll .table th:nth-child(6),.import-preview-scroll .table td:nth-child(6),.import-preview-scroll .table th:nth-child(7),.import-preview-scroll .table td:nth-child(7),.import-preview-scroll .table th:nth-child(8),.import-preview-scroll .table td:nth-child(8){width:90px}.pdf-asset-preview-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px;display:grid}.settings-asset-preview{object-fit:contain;background:#fff;border:1px solid #e5e7eb;border-radius:14px;width:100%;max-width:220px;max-height:90px;margin-top:10px;padding:10px;display:block}.settings-asset-preview.signature{max-height:70px}.settings-asset-preview.favicon-preview{max-width:72px;max-height:72px}.report-filter-panel{background:#f8fafc;border:1px solid #e5e7eb;border-radius:16px;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));align-items:end;gap:14px;margin-bottom:16px;padding:18px;display:grid}.report-menu-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px;display:grid}.report-menu-group{background:linear-gradient(#fff 0%,#f8fafc 100%);border:1px solid #e5e7eb;border-radius:16px;min-width:0;padding:12px}.report-menu-group h2{color:#64748b;text-transform:uppercase;margin:0 0 10px;font-size:12px;font-weight:950}.report-menu-buttons{gap:8px;display:grid}.report-menu-buttons button{color:#334155;text-align:left;cursor:pointer;background:#fff;border:1px solid #e5e7eb;border-radius:12px;width:100%;padding:10px 12px;font-weight:900}.report-menu-buttons button.active{border-color:var(--brand-primary);background:var(--brand-primary);color:#fff;box-shadow:0 12px 24px #4f46e52e}.report-filter-panel label{gap:6px;display:grid}.report-filter-panel span{color:#64748b;font-size:12px;font-weight:900}.master-page-tabs{grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:16px;display:grid}.master-page-tabs button{color:#334155;text-align:left;cursor:pointer;background:#fff;border:1px solid #dbe4f0;border-radius:14px;min-height:46px;padding:0 16px;font-weight:950;box-shadow:0 8px 18px #0f172a0a}.master-page-tabs button.active{color:#fff;border-color:var(--brand-sidebar);background:var(--brand-sidebar)}.master-stats-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:18px;display:grid}.master-stat-card{background:#fff;border:1px solid #dbe4f0;border-radius:24px;align-content:center;gap:22px;min-height:110px;padding:24px 28px;display:grid;box-shadow:0 18px 42px #0f172a0f}.master-stat-card span{color:#475569;text-transform:uppercase;letter-spacing:0;font-size:12px;font-weight:950}.master-stat-card strong{color:#111827;font-size:34px;font-weight:950;line-height:1}.master-stat-card.active{background:#ecfdf5;border-color:#a7f3d0}.master-stat-card.active strong,.master-stat-card.active span{color:#047857}.master-stat-card.inactive{background:#fffbeb;border-color:#fde68a}.master-stat-card.inactive strong,.master-stat-card.inactive span{color:#b45309}.master-workspace-grid{grid-template-columns:minmax(460px,.85fr) minmax(0,1.15fr);align-items:start;gap:18px;display:grid}.master-workspace-grid.master-list-full{grid-template-columns:minmax(0,1fr)}.master-form-card{gap:12px;display:grid}.master-form-grid{grid-template-columns:minmax(0,1fr);gap:14px;display:grid}.master-form-card label{min-width:0}.master-form-card label+label,.master-form-row label+label,.form-grid label+label,.patient-form-grid label+label{margin-top:0}.master-form-card .input,.master-form-card .textarea{width:100%}.master-field-full{gap:8px;width:100%;display:grid}.master-form-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.master-active-check{margin-top:2px}.master-import-row{background:#f8fafc;border:1px solid #dbe4f0;border-radius:18px;grid-template-columns:minmax(220px,1fr) auto auto;align-items:center;gap:10px;margin-bottom:16px;padding:14px;display:grid}.report-summary{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin-bottom:16px;display:grid}.report-summary div{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:16px;position:relative;overflow:hidden;box-shadow:0 12px 28px #0f172a0f}.report-summary div:after{content:"";background:linear-gradient(90deg, var(--brand-primary), var(--brand-accent));border-radius:999px 999px 0 0;height:3px;position:absolute;inset:auto 14px 0}.report-summary span{color:#64748b;font-size:12px;font-weight:900;display:block}.report-summary strong{color:#111827;margin-top:8px;font-size:20px;line-height:1.15;display:block}.inline-check{grid-template-columns:auto 1fr;align-items:center;width:fit-content;gap:8px!important;font-size:14px!important;display:inline-flex!important}.inline-check input{width:16px;height:16px}@media (width<=1024px){:is(.card:has(>.table),.patient-crud-card,.appointment-list-card){overflow-x:visible}.patient-crud-card>.table,.appointment-list-card>.table,.report-table-scroll,.table-scroll{-webkit-overflow-scrolling:touch;width:100%;display:block;overflow-x:auto}.card:has(>.table)>.table{-webkit-overflow-scrolling:touch;width:100%;display:block;overflow-x:auto}:is(.card:has(>.table)>.table,.patient-crud-card>.table,.appointment-list-card>.table,.report-table-scroll .table,.table-scroll .table){min-width:860px}.appointment-list-filter-grid,.calendar-filters,.dashboard-filter-grid,.followup-filter-grid,.module-filter-grid,.report-filter-panel{z-index:12;gap:12px;width:100%;margin-bottom:18px;position:relative}.appointment-list-filter-grid>*,.calendar-filters>*,.dashboard-filter-grid>*,.followup-filter-grid>*,.module-filter-grid>*,.report-filter-panel>*,.appointment-list-filter-grid .patient-search{width:100%;min-width:0}.appointment-top-stats,.import-summary-grid,.appointment-list-filter-grid,.calendar-filters,.calendar-layout,.prescription-cycle,.queue-display-grid,.pharmacy-grid,.master-workspace-grid,.master-form-row,.master-import-row{grid-template-columns:1fr}.appointment-journey-pane,.rx-side-panel,.pharmacy-detail{position:static}.calendar-board,.journey-strip,.journey-actions,.rx-patient-strip,.history-section-grid,.pharmacy-stats-top{grid-template-columns:repeat(2,minmax(0,1fr))}.rx-grid-head{display:none}.rx-item-full{grid-template-columns:repeat(2,minmax(0,1fr));padding-right:12px}.rx-item-full>*{grid-column:auto!important}.rx-item-full>:nth-child(6){width:100%;position:static}.procedure-entry-grid,.history-summary-grid,.history-detail-grid,.report-menu-grid,.queue-now-meta,.notification-page-grid,.master-page-tabs,.master-stats-grid,.report-summary,.report-filter-panel,.permission-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.premium-login-shell{grid-template-columns:1fr;gap:28px;height:auto;padding:28px;overflow:visible}.premium-login-story{max-width:920px;margin:0 auto}.premium-login-panel{width:min(560px,100%);margin:0 auto}}@media (width<=640px){.invoice-items-section{padding:12px;overflow:visible}.invoice-items-section .section-title{align-items:stretch}.invoice-items-section .section-title .button{justify-content:center;width:100%}.invoice-items-table,.invoice-items-table tbody,.invoice-items-table tr,.invoice-items-table td{display:block;width:100%!important;min-width:0!important}.invoice-items-table{border-collapse:separate;border-spacing:0 12px;min-width:0!important}.invoice-items-table thead{display:none}.invoice-items-table tr{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:12px}.invoice-items-table td{border:0!important;padding:0 0 10px!important}.invoice-items-table td:last-child{padding-bottom:0!important}.invoice-items-table td:before{color:#64748b;letter-spacing:.08em;text-transform:uppercase;margin-bottom:6px;font-size:11px;font-weight:950;display:block}.invoice-items-table td:first-child:before{content:"Type"}.invoice-items-table td:nth-child(2):before{content:"Description"}.invoice-items-table td:nth-child(3):before{content:"Quantity"}.invoice-items-table td:nth-child(4):before{content:"Price"}.invoice-items-table td:nth-child(5):before{content:"Discount %"}.invoice-items-table td:nth-child(6):before{content:"GST %"}.invoice-items-table .input,.invoice-items-table .smart-select,.invoice-items-table .invoice-input{width:100%!important;min-width:0!important}.invoice-items-table .icon-button{width:100%}.app-shell{position:fixed;inset:0;overflow:hidden}.app-main{width:100%;min-width:0}.app-shell .topbar{z-index:1600;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px;padding:10px 12px;display:grid;position:sticky;top:0}.collapse-button{display:none}.app-shell .topbar-search{order:3;grid-column:1/-1;width:100%;min-width:0;min-height:42px}.topbar-actions{order:4;grid-column:1/-1;grid-template-columns:minmax(0,1fr) 44px 44px;gap:8px;width:100%;display:grid}.topbar-add-button{justify-content:center;width:100%;min-width:0}.user-card{grid-column:1/-1;justify-content:space-between;width:100%;min-width:0}.user-copy{min-width:0}.user-copy strong,.user-copy span{text-overflow:ellipsis;overflow:hidden}.notification-wrap{position:static}.notification-panel{z-index:2300;-webkit-overflow-scrolling:touch;border-radius:20px;width:auto;max-width:calc(100vw - 24px);max-height:calc(100dvh - 184px);padding:14px;position:fixed;top:168px;left:12px;right:12px;overflow-y:auto}.notification-title-row{align-items:center}.notification-head-actions{grid-template-columns:1fr 1fr}.app-shell .content{padding:14px 12px 28px}.toolbar{padding:16px}.sidebar-tooltip{display:none}.appointment-list-filter-grid,.calendar-filters,.dashboard-filter-grid,.followup-filter-grid,.module-filter-grid,.report-filter-panel{align-items:stretch;grid-template-columns:1fr!important}.appointment-list-card{overflow:visible}.appointment-list-card>.table{margin-top:12px}.toolbar h1{font-size:24px;line-height:1.15}.toolbar>div:first-child,.toolbar>.table-actions{width:100%;min-width:0}.toolbar>.table-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.toolbar>.table-actions .button{width:100%;min-width:0;height:var(--action-button-height);min-height:var(--action-button-height);white-space:normal;justify-content:center;padding:0 10px;line-height:1.1}.toolbar>.table-actions .icon-button{width:100%;min-width:0}.toolbar>.table-actions .finalize-button,.toolbar>.table-actions .topbar-add-button{grid-column:1/-1}.prescription-toolbar.has-page-back,.settings-toolbar.has-page-back{align-items:flex-start;display:flex}.settings-clinic-select{width:100%}.prescription-toolbar .button,.prescription-toolbar .page-back-icon-button,.settings-toolbar .button,.settings-toolbar .page-back-icon-button{height:var(--action-button-height);min-height:var(--action-button-height)}.prescription-toolbar .page-back-icon-button,.settings-toolbar .page-back-icon-button{width:var(--action-button-height);min-width:var(--action-button-height)}.crud-modal-backdrop{place-items:start center;padding:10px}.crud-modal,.crud-modal.medicine-modal,.profile-modal,.small-modal{border-radius:18px;width:calc(100vw - 20px);max-height:none;margin:0;padding:20px}.crud-modal-head,.crud-modal-actions{align-items:flex-start;gap:10px}.crud-modal-head h2{font-size:20px}.crud-modal .form-grid,.crud-modal .patient-form-grid,.crud-modal .compact-form-grid,.crud-modal .two-wide-fields,.form-section .patient-form-grid{grid-template-columns:1fr!important}.crud-modal label,.crud-modal .smart-select,.crud-modal .input,.crud-modal .textarea,.crud-modal .age-input-grid{width:100%;min-width:0}.crud-modal .smart-select-menu{min-width:100%;max-width:calc(100vw - 60px)}.crud-modal-actions{flex-direction:column-reverse}.crud-modal-actions .button{justify-content:center;width:100%}.invoice-status-summary{grid-template-columns:1fr 1fr}:is(.card:has(>.table),.patient-crud-card,.appointment-list-card){-webkit-overflow-scrolling:touch;overflow-x:auto}:is(.card:has(>.table)>.table,.patient-crud-card>.table,.appointment-list-card>.table){min-width:760px}.table-scroll{-webkit-overflow-scrolling:touch;overflow-x:auto}.responsive-table-scroll{border-radius:14px;margin-top:12px}.responsive-table-scroll .table{min-width:980px}.table-scroll .table{min-width:760px}.metrics,.dashboard-pie-layout{grid-template-columns:1fr}.dashboard-pie{width:min(180px,70vw);margin:0 auto}.calendar-board,.schedule-item{grid-template-columns:1fr}.appointment-actions{flex-direction:column;grid-area:auto;align-items:stretch}.journey-actions{justify-content:flex-start;max-width:none}.appointment-top-stats,.journey-strip,.journey-actions,.queue-display-grid,.queue-now-meta,.rx-patient-strip,.history-section-grid,.pharmacy-stats-top,.pharmacy-discount-row,.rx-item-full,.procedure-entry-grid,.history-summary-grid,.history-detail-grid,.permission-card-grid,.compact-form-grid,.report-summary,.report-menu-grid,.report-filter-panel{grid-template-columns:1fr}.queue-upcoming-item{grid-template-columns:1fr;align-items:start}.import-summary-grid{grid-template-columns:1fr}.history-panel{width:100%}.delete-confirm-actions{flex-direction:column}.premium-login-shell{gap:18px;padding:14px}.premium-logo{width:150px}.login-hero-card,.premium-login-panel{border-radius:24px;padding:22px}.login-hero-card h1{font-size:clamp(2.7rem,17vw,4.5rem)}.floating-analytics{grid-template-columns:1fr}.command-palette{display:none}}@media (width<=1024px){:is(.card:has(>.table),.patient-crud-card,.appointment-list-card){overflow:visible!important}:is(.card:has(>.table)>.table,.patient-crud-card>.table,.appointment-list-card>.table){-webkit-overflow-scrolling:touch;width:100%;max-width:100%;overflow-y:visible;display:block!important;overflow-x:auto!important}.appointment-list-filter-grid,.calendar-filters,.dashboard-filter-grid,.followup-filter-grid,.module-filter-grid,.report-filter-panel,.pharmacy-filter-grid{z-index:1;width:100%;max-width:100%;margin:0 0 18px;display:grid;position:relative;overflow:visible}.appointment-list-filter-grid>*,.calendar-filters>*,.dashboard-filter-grid>*,.followup-filter-grid>*,.module-filter-grid>*,.report-filter-panel>*,.pharmacy-filter-grid>*{width:100%;min-width:0}}@media (width<=640px){html,body{min-height:100%;overflow:hidden auto}.app-shell{--mobile-topbar-offset:232px;height:auto;min-height:100dvh;display:block;position:relative;inset:auto;overflow:visible}.app-main{width:100%;height:auto;min-height:100dvh;padding-top:var(--mobile-topbar-offset);display:block;overflow:visible}.app-shell .topbar{z-index:2200;width:100%;top:0;left:0;right:0;box-shadow:0 10px 24px #0f172a14;position:fixed!important}.app-shell .content{flex:none;height:auto;min-height:0;padding-bottom:88px;overflow:visible}.notification-panel{top:calc(var(--mobile-topbar-offset) + 8px);max-height:calc(100dvh - var(--mobile-topbar-offset) - 20px)}.mobile-sidebar{height:100dvh;max-height:100dvh;position:fixed;inset:0 auto 0 0}.content,.card,.grid,.grid>*,.patient-crud-card,.appointment-list-card,.clinical-form-card,.dashboard-filter-card{min-width:0;max-width:100%}:is(.card:has(.table),.patient-crud-card,.appointment-list-card,.clinical-form-card:has(.table)){-webkit-overflow-scrolling:touch;overscroll-behavior-inline:contain;overflow-y:visible;overflow-x:auto!important}.card .table,.patient-crud-card .table,.appointment-list-card .table,.clinical-form-card .table,.table-scroll .table,.responsive-table-scroll .table,.report-table-scroll .table{table-layout:auto;width:max-content!important;min-width:1000px!important;display:table!important}.card .table th,.card .table td,.patient-crud-card .table th,.patient-crud-card .table td,.appointment-list-card .table th,.appointment-list-card .table td,.clinical-form-card .table th,.clinical-form-card .table td{white-space:normal;min-width:116px}.card .table th:first-child,.card .table td:first-child,.patient-crud-card .table th:first-child,.patient-crud-card .table td:first-child,.appointment-list-card .table th:first-child,.appointment-list-card .table td:first-child{min-width:56px}.toast-stack{width:auto;top:10px;left:10px;right:10px}.queue-display-grid{min-height:0;max-height:none;overflow:visible}.queue-now-card,.queue-upcoming-card{min-height:0;padding:16px}.queue-upcoming-list{max-height:none;padding-right:0;overflow:visible}.queue-token-pill{width:100%}.queue-upcoming-item em{text-align:center;width:100%}.appointment-list-filter-grid,.calendar-filters,.dashboard-filter-grid,.followup-filter-grid,.module-filter-grid,.report-filter-panel,.pharmacy-filter-grid{gap:10px;grid-template-columns:1fr!important}.appointment-list-filter-grid .button,.calendar-filters .button,.dashboard-filter-grid .button,.followup-filter-grid .button,.module-filter-grid .button,.report-filter-panel .button,.pharmacy-filter-grid .button{white-space:normal;justify-content:center;width:100%}:is(.appointment-list-card>.table,.patient-crud-card>.table,.card:has(>.table)>.table){margin-top:12px}}.appointment-list-filter-grid .status-filter-row .filter-search-button{max-width:56px;height:54px;min-height:54px;padding:0;width:56px!important;min-width:56px!important}@media (width<=640px){.appointment-list-filter-grid .status-filter-row{grid-template-columns:minmax(0,1fr) 52px;display:grid}.appointment-list-filter-grid .status-filter-row .filter-search-button{max-width:52px;width:52px!important;min-width:52px!important}}
