.topbar{height:var(--header-height);background:var(--bg-surface);border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 20px 0 10px;flex-shrink:0;box-shadow:0 1px #0f3a6f0a;border-radius:12px 12px 0 0}.topbar-left{display:flex;align-items:center;gap:10px}.menu-toggle-btn{width:36px;height:36px;border:none;border-radius:var(--radius-sm);background:transparent;color:var(--text-muted);cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:14px;transition:background .15s,color .15s;flex-shrink:0}.menu-toggle-btn:hover{background:var(--bg-subtle);color:var(--text-secondary)}.mobile-menu-btn{display:none;width:36px;height:36px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--bg-muted);color:var(--text-muted);cursor:pointer;align-items:center;justify-content:center;font-size:14px}.clinic-brand{display:flex;align-items:center;gap:12px}.clinic-logo{width:36px;height:36px;border-radius:10px;background:linear-gradient(135deg,#0f3a6f,#1a4a8a);color:#fff;display:flex;align-items:center;justify-content:center;font-size:15px;flex-shrink:0;overflow:hidden}.clinic-logo img{width:100%;height:100%;object-fit:contain}.clinic-info{display:flex;flex-direction:column;line-height:1.25}.clinic-info .clinic-name{font-size:14px;font-weight:700;color:var(--text-primary);letter-spacing:-.2px}.clinic-info .clinic-contact{font-size:12px;color:var(--text-muted);font-weight:500;display:flex;align-items:center;gap:5px}.clinic-info .clinic-contact svg{font-size:10px;color:var(--text-faint)}.topbar-right{display:flex;align-items:center;gap:10px}.icon-btn{width:36px;height:36px;border-radius:50%;border:1px solid var(--border);background:var(--bg-muted);color:var(--text-muted);font-size:14px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .15s,color .15s,border-color .15s;position:relative}.icon-btn:hover{background:var(--bg-subtle);color:var(--text-secondary);border-color:var(--border-strong)}.icon-btn .badge{position:absolute;top:4px;right:4px;width:8px;height:8px;background:#ef4444;border-radius:50%;border:2px solid var(--bg-surface)}.user-menu-wrap{position:relative}.user-avatar-btn{width:36px;height:36px;border-radius:50%;border:2px solid var(--border);background:linear-gradient(135deg,#0f3a6f,#1a4a8a);color:#fff;font-weight:600;font-size:12px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:border-color .15s,box-shadow .15s;font-family:var(--font);padding:0}.user-avatar-btn:hover,.user-menu-wrap.open .user-avatar-btn{border-color:var(--accent);box-shadow:0 0 0 3px #0f3a6f26}.user-dropdown{display:none;position:absolute;right:0;top:calc(100% + 8px);min-width:220px;background:var(--bg-surface);border:1px solid var(--border);border-radius:var(--radius-sm);box-shadow:var(--shadow-lg);z-index:300;padding:6px;overflow:hidden}.user-menu-wrap.open .user-dropdown{display:block}.user-dropdown-header{padding:12px 14px;border-bottom:1px solid var(--border);margin-bottom:4px}.user-dropdown-header .ud-name{font-size:13.5px;font-weight:700;color:var(--text-primary);line-height:1.3}.user-dropdown-header .ud-role{font-size:12px;color:var(--text-muted);font-weight:500;margin-top:2px}.user-dropdown button{width:100%;display:flex;align-items:center;gap:10px;padding:10px 14px;border:none;background:transparent;font-family:var(--font);font-size:13px;font-weight:500;color:var(--text-secondary);cursor:pointer;border-radius:6px;text-align:left;transition:background .12s,color .12s}.user-dropdown button svg{width:16px;height:16px;text-align:center;color:var(--text-muted);font-size:12px;flex-shrink:0}.user-dropdown button:hover{background:var(--bg-muted);color:var(--text-primary)}.user-dropdown button:hover svg{color:var(--text-secondary)}.user-dropdown button.danger{color:var(--danger-color, #ef4444)}.user-dropdown button.danger svg{color:var(--danger-color, #ef4444)}.user-dropdown button.danger:hover{background:#fef2f2}.user-dropdown .dropdown-divider{height:1px;background:var(--border);margin:4px 0}.content{flex:1;padding:10px;background:var(--bg-page)}@media(max-width:768px){.mobile-menu-btn{display:flex}.clinic-info .clinic-contact{display:none}}.sidebar-overlay{display:none;position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a66;z-index:90}.sidebar-overlay.show{display:block}.sidebar{width:var(--sidebar-width);background:var(--sidebar-bg);display:flex;flex-direction:column;flex-shrink:0;transition:width .25s ease;position:relative;z-index:100}.sidebar.collapsed{width:var(--sidebar-collapsed)}.sidebar-brand{height:var(--header-height);display:flex;align-items:center;gap:12px;padding:0 18px;border-bottom:1px solid rgba(255,255,255,.08);flex-shrink:0;overflow:hidden}.brand-logo{width:36px;height:36px;border-radius:10px;background:linear-gradient(135deg,#1a5a9e,#0f3a6f);color:#fff;display:flex;align-items:center;justify-content:center;font-size:16px;flex-shrink:0;box-shadow:0 2px 8px #0003;overflow:hidden}.brand-logo img{width:100%;height:100%;object-fit:contain}.brand-text{white-space:nowrap;opacity:1;transition:opacity .2s ease}.sidebar.collapsed .brand-text{opacity:0;width:0;overflow:hidden}.brand-text .name{font-size:15px;font-weight:700;color:#fff;letter-spacing:-.2px;line-height:1.2}.brand-text .tag{font-size:11px;color:#ffffff80;font-weight:500}.sidebar-nav{flex:1;overflow-y:auto;overflow-x:hidden;padding:12px 10px}.sidebar-nav::-webkit-scrollbar{width:4px}.sidebar-nav::-webkit-scrollbar-thumb{background:#ffffff26;border-radius:4px}.nav-section{margin-bottom:8px}.nav-section-label{font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.6px;color:#ffffff59;padding:10px 12px 6px;white-space:nowrap;overflow:hidden;transition:opacity .2s}.sidebar.collapsed .nav-section-label{opacity:0;height:0;padding:0;margin:0}.nav-item{position:relative}.nav-link{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:var(--radius-sm);color:var(--sidebar-text);text-decoration:none;font-size:13.5px;font-weight:500;cursor:pointer;transition:background .15s,color .15s;white-space:nowrap;border:none;background:transparent;width:100%;font-family:var(--font);text-align:left}.nav-link:hover{background:var(--sidebar-bg-hover);color:var(--sidebar-text-active)}.nav-link.active{background:var(--sidebar-active);color:var(--sidebar-text-active)}.nav-link.active .nav-icon{color:#7dd3fc}.nav-icon{width:22px;height:22px;display:flex;align-items:center;justify-content:center;font-size:15px;flex-shrink:0;color:#ffffff8c;transition:color .15s}.nav-link:hover .nav-icon{color:#ffffffe6}.nav-label{flex:1;overflow:hidden;text-overflow:ellipsis;transition:opacity .2s}.sidebar.collapsed .nav-label{opacity:0;width:0;overflow:hidden}.nav-chevron{font-size:11px;color:#ffffff59;transition:transform .2s,opacity .2s;flex-shrink:0}.nav-item.open>.nav-link .nav-chevron{transform:rotate(90deg)}.sidebar.collapsed .nav-chevron{opacity:0;width:0;overflow:hidden}.submenu{list-style:none;max-height:0;overflow:hidden;transition:max-height .25s ease;padding-left:10px}.nav-item.open>.submenu{max-height:400px}.sidebar.collapsed .submenu{display:none}.submenu .nav-link{padding:8px 12px 8px 34px;font-size:13px;font-weight:450;color:#fff9}.submenu .nav-link:hover,.submenu .nav-link.active{color:#fff}.submenu .nav-link.active{background:#ffffff14}.submenu .nav-icon{font-size:12px;width:18px}.flyout{display:none;position:absolute;left:calc(100% + 6px);top:0;min-width:200px;background:var(--sidebar-bg);border:1px solid rgba(255,255,255,.1);border-radius:var(--radius-sm);box-shadow:var(--shadow-lg);padding:6px;z-index:200;list-style:none}.flyout:before{content:"";position:absolute;left:-6px;top:0;bottom:0;width:8px}.flyout-title{font-size:11px;font-weight:600;color:#ffffff73;text-transform:uppercase;letter-spacing:.4px;padding:8px 12px 6px;border-bottom:1px solid rgba(255,255,255,.08);margin-bottom:4px}.flyout .nav-link{padding:9px 12px;font-size:13px;border-radius:6px}.flyout .nav-icon{font-size:13px;width:20px}.sidebar.collapsed .nav-item.has-children:hover>.flyout{display:block}.sidebar.collapsed .nav-item.has-children:hover>.nav-link{background:var(--sidebar-active);color:#fff}.sidebar.collapsed .nav-item.has-children:hover>.nav-link .nav-icon{color:#7dd3fc}.sidebar.collapsed .nav-item:not(.has-children) .nav-link{position:relative}.sidebar.collapsed .nav-item:not(.has-children) .nav-link:after{content:attr(data-tooltip);position:absolute;left:calc(100% + 10px);top:50%;transform:translateY(-50%);background:var(--text-primary);color:#fff;font-size:12px;font-weight:500;padding:6px 10px;border-radius:6px;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .15s;z-index:200;box-shadow:var(--shadow-md)}.sidebar.collapsed .nav-item:not(.has-children) .nav-link:hover:after{opacity:1}.sidebar-footer{padding:12px 10px;border-top:1px solid rgba(255,255,255,.08);flex-shrink:0}.app-version{display:flex;align-items:center;justify-content:center;gap:8px;padding:8px 12px;color:#fff6;font-size:11.5px;font-weight:500;white-space:nowrap;overflow:hidden}.app-version .version-icon{font-size:11px;flex-shrink:0}.sidebar.collapsed .app-version span{opacity:0;width:0;overflow:hidden}.sidebar.collapsed .app-version{padding:8px 0}@media(max-width:768px){.sidebar{position:fixed;left:0;top:0;bottom:0;transform:translate(-100%);transition:transform .25s ease,width .25s ease;z-index:100}.sidebar.mobile-open{transform:translate(0)}.sidebar.collapsed{width:var(--sidebar-width)}.sidebar.collapsed .nav-label,.sidebar.collapsed .brand-text,.sidebar.collapsed .nav-section-label,.sidebar.collapsed .nav-chevron,.sidebar.collapsed .app-version span{opacity:1;width:auto;overflow:visible}.sidebar.collapsed .submenu{display:block}.sidebar.collapsed .flyout{display:none!important}.mobile-menu-btn{display:flex}}.db-page{max-width:1280px;margin:0 auto;padding:.4rem .6rem 1rem}.db-toolbar{background:#1e4a6e;border-radius:12px;padding:.7rem 1rem;display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:1.1rem;flex-wrap:wrap}.db-toolbar-left{display:flex;align-items:center;gap:.75rem}.db-toolbar-title{font-size:1.05rem;font-weight:600;color:#fff}.db-toolbar-sub{font-size:.8rem;color:#ffffffa6}.db-toolbar-right{display:flex;align-items:center;gap:.5rem}.db-date-chip{background:#ffffff1f;color:#fff;font-size:.8rem;font-weight:500;padding:.4rem .75rem;border-radius:8px}.db-tb-btn{height:36px;padding:0 .85rem;border-radius:8px;border:none;background:#ffffff26;color:#fff;font-size:.8rem;font-weight:600;font-family:inherit;cursor:pointer;display:inline-flex;align-items:center;gap:.35rem}.db-tb-btn:hover{background:#ffffff40}.db-tb-btn i{font-size:12px}.db-quick-overview{background:#f0f4f8;border:1px solid #e2e8f0;border-radius:12px;padding:.75rem .85rem;margin-bottom:1.1rem}.db-qo-header{display:flex;align-items:center;gap:.45rem;font-size:.78rem;font-weight:600;color:#64748b;margin-bottom:.65rem}.db-qo-header i{font-size:12px;color:#64748b}.db-qo-tiles{display:flex;gap:.55rem;overflow-x:auto;padding-bottom:.15rem}.db-qo-tile{flex:1 1 0;min-width:130px;background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:1.2rem .85rem 1.05rem;display:flex;flex-direction:column;box-shadow:0 1px 2px #0000000a;min-height:5rem;max-height:5.4rem}.db-qo-clickable{cursor:pointer}.db-qo-clickable:hover{border-color:#b9c6d6}.db-qo-tile-top{display:flex;align-items:flex-start;gap:.6rem;height:100%}.db-qo-icon{width:36px;height:36px;border-radius:8px;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:.15rem;font-size:15px}.db-qo-icon.blue{background:#dbeafe;color:#2563eb}.db-qo-icon.green{background:#d1fae5;color:#059669}.db-qo-icon.purple{background:#ede9fe;color:#7c3aed}.db-qo-icon.pink{background:#fce7f3;color:#db2777}.db-qo-icon.red{background:#fee2e2;color:#dc2626}.db-qo-icon.cyan{background:#cffafe;color:#0891b2}.db-qo-icon.amber{background:#fef3c7;color:#d97706}.db-qo-icon.orange{background:#ffedd5;color:#ea580c}.db-qo-text{display:flex;flex-direction:column;min-width:0;flex:1;padding-top:.12rem}.db-qo-label{font-size:.62rem;font-weight:600;text-transform:uppercase;letter-spacing:.03em;color:#94a3b8;line-height:1.35}.db-qo-value{font-size:.85rem;font-weight:700;color:#1e293b;line-height:1.35}.db-qo-sub{font-size:.72rem;color:#94a3b8;line-height:1.4;margin-top:.15rem}.db-qo-sub.up{color:#047857}.db-qo-sub.down{color:#dc2626}.db-qo-sub.warn{color:#d97706}.db-main-grid{display:grid;grid-template-columns:1fr 280px;gap:1rem;align-items:start}.db-stack{display:flex;flex-direction:column;gap:1rem}.db-right-col{display:flex;flex-direction:column;gap:.85rem;position:sticky;top:1rem}.db-side-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 4px 16px #0000000f;padding:1rem}.db-side-title{font-size:.68rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:#94a3b8;margin-bottom:.75rem;display:flex;align-items:center;gap:.4rem}.db-side-title i{font-size:11px}.db-overview-stats{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}.db-ov-box{background:#f8fafc;border-radius:10px;padding:.75rem .5rem;text-align:center}.db-num{font-size:1.35rem;font-weight:700;color:#1e293b;line-height:1.2}.db-num.green{color:#047857}.db-num.blue{color:#1d4ed8}.db-num.amber{color:#b45309}.db-ov-label{font-size:.7rem;color:#94a3b8;margin-top:.15rem}.db-recent-list{display:flex;flex-direction:column;gap:.55rem}.db-recent-item{display:flex;align-items:center;gap:.55rem}.db-recent-item .db-avatar{width:32px;height:32px;font-size:.72rem}.db-recent-meta h4{font-size:.82rem;font-weight:600;color:#1e293b}.db-recent-meta p{font-size:.7rem;color:#94a3b8}.db-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 4px 16px #0000000f;overflow:hidden}.db-card-head{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.85rem 1.1rem;border-bottom:1px solid #e2e8f0}.db-card-head h2{font-size:.9rem;font-weight:600;color:#1e293b;display:flex;align-items:center;gap:.45rem}.db-card-head h2 i{font-size:14px;color:#94a3b8}.db-link-btn{font-size:.78rem;font-weight:600;color:#1e4a6e;background:none;border:none;cursor:pointer;font-family:inherit}.db-link-btn:hover{text-decoration:underline}.db-card-body{padding:.85rem 1.1rem}.db-table-scroll{overflow-x:auto}.db-data-table{width:100%;border-collapse:collapse;font-size:.84rem}.db-data-table thead th{text-align:left;font-size:.68rem;font-weight:600;text-transform:uppercase;letter-spacing:.03em;color:#94a3b8;padding:.5rem .65rem;background:#f8fafc;border-bottom:1px solid #e2e8f0;white-space:nowrap}.db-data-table tbody td{padding:.7rem .65rem;border-bottom:1px solid #f1f5f9;vertical-align:middle}.db-data-table tbody tr:last-child td{border-bottom:none}.db-data-table tbody tr:hover{background:#f8fafc}.db-time-cell{font-weight:600;color:#1e293b;font-size:.84rem;white-space:nowrap}.db-person{display:flex;align-items:center;gap:.55rem}.db-avatar{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.72rem;font-weight:700;flex-shrink:0}.db-avatar.male{background:#dbeafe;color:#1e40af}.db-avatar.female{background:#fce7f3;color:#be185d}.db-person-name{font-weight:600;color:#1e293b;font-size:.84rem}.db-person-sub{font-size:.72rem;color:#94a3b8}.db-empty-cell{text-align:center;padding:1.1rem .5rem;font-size:.82rem;color:#94a3b8}.db-status-badge{display:inline-flex;align-items:center;gap:.3rem;padding:.18rem .55rem;border-radius:999px;font-size:.72rem;font-weight:600;white-space:nowrap}.db-status-badge .db-dot{width:6px;height:6px;border-radius:50%;background:currentColor}.db-status-badge.waiting{background:#fef3c7;color:#b45309}.db-status-badge.in-progress{background:#dbeafe;color:#1d4ed8}.db-status-badge.completed{background:#d1fae5;color:#047857}.db-status-badge.cancelled{background:#f1f5f9;color:#94a3b8}.db-bar-chart{display:flex;align-items:flex-end;gap:.45rem;height:100px;padding-top:.5rem}.db-bar-col{flex:1;display:flex;flex-direction:column;align-items:center;gap:.3rem;height:100%;justify-content:flex-end}.db-bar{width:100%;max-width:28px;border-radius:4px 4px 2px 2px;background:#93c5fd;min-height:4px;transition:height .3s}.db-bar.today{background:#1e4a6e}.db-bar-label{font-size:.65rem;color:#94a3b8;font-weight:500}.db-donut-wrap{display:flex;flex-direction:column;align-items:center;gap:1rem;padding:.5rem 0 .25rem}.db-donut-chart{width:160px;height:160px}.db-donut-legend{display:flex;flex-wrap:wrap;justify-content:center;gap:.55rem 1rem}.db-legend-item{display:flex;align-items:center;gap:.35rem;font-size:.75rem;color:#64748b;font-weight:500}.db-legend-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}.db-period-chip{font-size:.72rem;font-weight:600;color:#94a3b8;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:999px;padding:.25rem .65rem}.db-qa-stack{display:flex;flex-direction:column;gap:.5rem}.db-qa-primary,.db-qa-secondary{height:42px;width:100%;border-radius:10px;font-size:.85rem;font-weight:600;font-family:inherit;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:.4rem}.db-qa-primary{border:none;background:#1e4a6e;color:#fff}.db-qa-primary:hover{background:#163a58}.db-qa-primary i{font-size:14px}.db-qa-secondary{border:1px solid #e2e8f0;background:#fff;color:#1e293b}.db-qa-secondary:hover{background:#f8fafc}.db-qa-secondary i{font-size:14px}@media(max-width:1000px){.db-main-grid{grid-template-columns:1fr}.db-right-col{position:static}}.pl-page{display:flex;flex-direction:column;height:100%;min-height:0}.pl-body{display:grid;grid-template-columns:1fr 280px;flex:1;min-height:0;gap:0;transition:grid-template-columns .25s ease}.pl-body.pl-sidebar-hidden{grid-template-columns:1fr 0}.pl-main{padding:10px;background:var(--bg-page);overflow-y:hidden;min-width:0;position:relative;overflow:auto}.pl-right-sidebar{background:var(--bg-surface);border-left:1px solid var(--border);padding:10px;overflow-y:auto;overflow-x:hidden;transition:opacity .2s,padding .25s,border .25s}.pl-body.pl-sidebar-hidden .pl-right-sidebar{opacity:0;padding:0;border-left:none;pointer-events:none}.pl-toolbar{display:flex;flex-wrap:nowrap;gap:10px;align-items:center;margin-bottom:14px;padding:10px 12px;background:#1a4a7a;border:1px solid #143a61;border-radius:var(--radius-sm);box-shadow:var(--shadow-sm)}.pl-toolbar .pl-heading{font-size:15px;font-weight:700;color:#fff;letter-spacing:-.2px;margin:0 4px 0 0;white-space:nowrap;flex-shrink:0}.pl-toolbar .pl-search-wrap{flex:1;min-width:140px;position:relative}.pl-toolbar .pl-search-wrap svg{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:#ffffff8c;font-size:13px}.pl-toolbar .pl-search-wrap input{width:100%;height:36px;padding:0 14px 0 34px;border:1px solid rgba(255,255,255,.22);border-radius:var(--radius-sm);font-family:var(--font);font-size:13px;background:#ffffff1f;color:#fff;transition:border-color .15s,box-shadow .15s,background .15s}.pl-toolbar .pl-search-wrap input::placeholder{color:#ffffff80}.pl-toolbar .pl-search-wrap input:focus{outline:none;background:#ffffff2e;border-color:#ffffff73;box-shadow:0 0 0 3px #ffffff1f}.pl-toolbar .pl-filter-group{flex-shrink:0;display:flex;gap:8px;align-items:center}.pl-toolbar .pl-filter-group select{height:36px;padding:0 28px 0 12px;border:1px solid rgba(255,255,255,.22);border-radius:var(--radius-sm);font-family:var(--font);font-size:13px;font-weight:500;background:#ffffff1f;color:#fff;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center}.pl-toolbar .pl-filter-group select:focus{outline:none;border-color:#ffffff73;box-shadow:0 0 0 3px #ffffff1f}.pl-toolbar .pl-filter-group select option{color:var(--text-primary);background:#fff}.pl-toolbar-btn{height:36px;width:36px;padding:0;border:1px solid rgba(255,255,255,.28);border-radius:var(--radius-sm);background:#ffffff1f;color:#fff;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;font-size:12px;transition:background .12s,border-color .12s;flex-shrink:0}.pl-toolbar-btn:hover{background:#ffffff38;border-color:#fff6}.pl-toolbar-btn.pl-active{background:#ffffff47;border-color:#ffffff80}.pl-toolbar-actions{display:flex;align-items:center;gap:8px;margin-left:auto;flex-shrink:0}.pl-toolbar .pl-view-toggle{flex-shrink:0;border-color:#ffffff47;background:#ffffff14}.pl-toolbar .pl-view-toggle button{color:#ffffffbf;border-left-color:#fff3}.pl-toolbar .pl-view-toggle button:hover{background:#ffffff26;color:#fff}.pl-toolbar .pl-view-toggle button.pl-active{background:#ffffff47;color:#fff}.pl-toolbar .pl-sidebar-toggle{background:#ffffff1f;border-color:#ffffff47;color:#ffffffd9}.pl-toolbar .pl-sidebar-toggle:hover{background:#ffffff38;color:#fff;border-color:#fff6}.pl-view-toggle{display:flex;gap:0;border:1px solid var(--border);border-radius:6px;overflow:hidden;background:var(--bg-surface);flex-shrink:0}.pl-view-toggle button{width:32px;height:32px;border:none;background:transparent;color:var(--text-muted);cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:12px;transition:background .12s,color .12s}.pl-view-toggle button+button{border-left:1px solid var(--border)}.pl-view-toggle button:hover{background:var(--bg-muted);color:var(--text-secondary)}.pl-view-toggle button.pl-active{background:var(--accent);color:#fff}.pl-filter-panel{display:none;background:var(--bg-surface);border:1px solid var(--border);border-radius:var(--radius-sm);box-shadow:var(--shadow-sm);padding:14px 16px;margin-bottom:14px}.pl-filter-panel.pl-open{display:block}.pl-filter-panel-title{font-size:12px;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.4px;margin-bottom:12px;display:flex;align-items:center;gap:8px}.pl-filter-panel-title svg{color:var(--accent)}.pl-filter-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;align-items:end}.pl-filter-field label{display:block;font-size:11.5px;font-weight:600;color:var(--text-secondary);margin-bottom:5px}.pl-filter-field input,.pl-filter-field select{width:100%;height:36px;padding:0 10px;border:1px solid var(--border);border-radius:var(--radius-sm);font-family:var(--font);font-size:13px;color:var(--text-primary);background:var(--bg-surface)}.pl-filter-field select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;padding-right:28px;cursor:pointer}.pl-filter-field input:focus,.pl-filter-field select:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px #0f3a6f1f}.pl-filter-actions{display:flex;gap:8px;align-items:center;margin-top:12px;padding-top:12px;border-top:1px solid var(--border);justify-content:flex-end}.pl-btn-primary{height:40px;padding:0 18px;background:var(--accent);border:none;border-radius:var(--radius-sm);font-family:var(--font);font-weight:600;font-size:13px;color:#fff;display:inline-flex;align-items:center;gap:8px;cursor:pointer;transition:background .15s,box-shadow .15s;white-space:nowrap;box-shadow:0 1px 2px #0f3a6f33}.pl-btn-primary:hover{background:var(--accent-hover);box-shadow:0 2px 6px #0f3a6f40}.pl-btn-secondary{height:40px;padding:0 16px;background:var(--bg-surface);border:1px solid var(--border);border-radius:var(--radius-sm);font-family:var(--font);font-weight:500;font-size:13px;color:var(--text-secondary);cursor:pointer;transition:background .12s,border-color .12s}.pl-btn-secondary:hover{background:var(--bg-subtle);border-color:var(--border-strong)}.pl-table-card{background:var(--bg-surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-sm);overflow:hidden}.pl-table-card.pl-tiles-mode .pl-table-wrap,.pl-table-card.pl-list-mode .pl-tiles-grid{display:none}.pl-table-wrap{overflow-x:auto}.pl-table-wrap table{width:100%;border-collapse:collapse;font-size:13px;min-width:900px}.pl-table-wrap th{background:var(--bg-muted);color:var(--text-muted);font-weight:600;font-size:11px;letter-spacing:.4px;text-transform:uppercase;padding:12px 16px;text-align:left;border-bottom:1px solid var(--border);white-space:nowrap}.pl-table-wrap td{padding:6px 13px;border-bottom:1px solid var(--border);color:var(--text-secondary);vertical-align:middle}.pl-table-wrap tr:last-child td{border-bottom:none}.pl-table-wrap tbody tr{transition:background .12s;cursor:pointer}.pl-table-wrap tbody tr:hover td{background:#f8fafc}.pl-patient-cell{display:flex;align-items:center;gap:12px}.pl-avatar{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:18px;flex-shrink:0;overflow:hidden}.pl-avatar.pl-male{background:linear-gradient(145deg,#dbeafe,#bfdbfe);color:#1e40af;border:2px solid #93c5fd}.pl-avatar.pl-female{background:linear-gradient(145deg,#fce7f3,#fbcfe8);color:#be185d;border:2px solid #f9a8d4}.pl-avatar.pl-other{background:var(--bg-subtle);color:var(--text-muted);border:2px solid var(--border)}.pl-avatar svg{width:22px;height:22px}.pl-name{font-weight:600;color:var(--text-primary);font-size:13.5px}.pl-id{font-size:11.5px;color:var(--text-faint)}.pl-status{font-size:11px;font-weight:600;padding:3px 10px;border-radius:var(--radius-full);display:inline-flex;align-items:center;gap:5px}.pl-status:before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}.pl-status.pl-active{background:#ecfdf5;color:#047857}.pl-status.pl-inactive{background:var(--bg-subtle);color:var(--text-muted)}.pl-blood{font-size:11px;font-weight:600;padding:2px 8px;border-radius:6px;background:#fef2f2;color:#b91c1c}.pl-actions-cell{display:flex;align-items:center;justify-content:center;gap:4px;position:relative}.pl-action-btn{width:32px;height:32px;border:none;background:transparent;color:var(--text-faint);border-radius:var(--radius-sm);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;font-size:13px;transition:background .12s,color .12s}.pl-action-btn:hover{background:var(--bg-subtle);color:var(--text-secondary)}.pl-action-btn.pl-delete:hover{background:#fef2f2;color:#b91c1c}.pl-action-btn.pl-payment{color:#047857}.pl-action-btn.pl-payment:hover{background:#ecfdf5;color:#047857}.pl-ctx-wrap{position:relative}.pl-ctx-menu{display:none;position:absolute;right:0;top:calc(100% + 4px);min-width:180px;background:var(--bg-surface);border:1px solid var(--border);border-radius:var(--radius-sm);box-shadow:var(--shadow-md);z-index:100;padding:6px;overflow:hidden}.pl-ctx-menu.pl-show{display:block}.pl-ctx-menu button{width:100%;display:flex;align-items:center;gap:10px;padding:9px 12px;border:none;background:transparent;font-family:var(--font);font-size:13px;font-weight:500;color:var(--text-secondary);cursor:pointer;border-radius:6px;text-align:left;transition:background .12s,color .12s}.pl-ctx-menu button svg{width:16px;color:var(--text-muted);font-size:12px;flex-shrink:0}.pl-ctx-menu button:hover{background:var(--bg-muted);color:var(--text-primary)}.pl-ctx-menu button:hover svg{color:var(--text-secondary)}.pl-ctx-menu button.pl-danger{color:#b91c1c}.pl-ctx-menu button.pl-danger svg{color:#b91c1c}.pl-ctx-menu button.pl-danger:hover{background:#fef2f2}.pl-ctx-menu .pl-divider{height:1px;background:var(--border);margin:4px 0}.pl-tiles-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px;padding:12px;background:#fff}.pl-tile{background:var(--bg-surface);border:1px solid var(--border);border-radius:var(--radius);padding:14px;box-shadow:var(--shadow-sm);display:flex;flex-direction:column;gap:12px;transition:border-color .15s,box-shadow .15s;position:relative}.pl-tile:hover{border-color:var(--border-strong);box-shadow:var(--shadow-md)}.pl-tile-top{display:flex;align-items:flex-start;gap:12px}.pl-tile-top .pl-status{flex-shrink:0;margin-top:2px}.pl-tile-identity{flex:1;min-width:0}.pl-tile-identity .pl-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pl-tile-meta{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px;font-size:12px;color:var(--text-muted)}.pl-tile-meta .pl-label{display:block;font-size:10.5px;font-weight:600;text-transform:uppercase;letter-spacing:.3px;color:var(--text-faint);margin-bottom:1px}.pl-tile-meta .pl-val{color:var(--text-secondary);font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pl-tile-footer{display:flex;align-items:center;justify-content:space-between;padding-top:10px;border-top:1px solid var(--border)}.pl-tile-balance{display:flex;flex-direction:column;font-size:12px}.pl-tile-balance .pl-label{font-size:10.5px;font-weight:600;text-transform:uppercase;letter-spacing:.3px;color:var(--text-faint);margin-bottom:1px}.pl-tile-balance .pl-val{color:var(--text-secondary);font-weight:600}.pl-tile-actions{display:flex;align-items:center;gap:2px}.pl-pagination{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;padding:12px 16px;border-top:1px solid var(--border);background:var(--bg-muted)}.pl-pagination .pl-info{font-size:13px;color:var(--text-muted);font-weight:500}.pl-page-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.pl-page-size{display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--text-muted);font-weight:500}.pl-page-size select{height:32px;padding:0 28px 0 10px;border:1px solid var(--border);border-radius:var(--radius-sm);font-family:var(--font);font-size:13px;font-weight:500;background:var(--bg-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E") no-repeat right 8px center;color:var(--text-secondary);cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}.pl-page-size select:focus{outline:none;border-color:var(--accent)}.pl-pages{display:flex;gap:4px;align-items:center}.pl-pages button{min-width:32px;height:32px;padding:0 8px;border:1px solid transparent;border-radius:var(--radius-sm);background:transparent;font-family:var(--font);font-size:13px;font-weight:500;color:var(--text-secondary);cursor:pointer;transition:background .12s,border-color .12s,color .12s}.pl-pages button:hover:not(:disabled){background:var(--bg-surface);border-color:var(--border)}.pl-pages button.pl-active{background:var(--accent);color:#fff;border-color:var(--accent)}.pl-pages button:disabled{opacity:.4;cursor:not-allowed}.pl-sidebar-card{background:var(--bg-surface);border:1px solid var(--border);border-radius:var(--radius);padding:16px;margin-bottom:14px;box-shadow:var(--shadow-sm)}.pl-sidebar-card:last-child{margin-bottom:0}.pl-sidebar-card-title{font-weight:600;font-size:11px;color:var(--text-muted);letter-spacing:.5px;text-transform:uppercase;margin-bottom:12px;display:flex;align-items:center;gap:7px}.pl-sidebar-card-title svg{color:var(--accent);font-size:12px}.pl-stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.pl-stat-item{background:var(--bg-muted);border-radius:var(--radius-sm);padding:12px 10px;text-align:center}.pl-stat-item .pl-number{font-weight:700;font-size:22px;color:var(--text-primary);line-height:1.15;letter-spacing:-.5px}.pl-stat-item .pl-number.pl-green{color:#047857}.pl-stat-item .pl-number.pl-blue{color:#1d4ed8}.pl-stat-item .pl-number.pl-orange{color:#b45309}.pl-stat-item .pl-label{font-size:11px;color:var(--text-muted);font-weight:500;margin-top:2px}.pl-recent-list{list-style:none;padding:0;margin:0}.pl-recent-list li{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--border)}.pl-recent-list li:last-child{border-bottom:none;padding-bottom:0}.pl-recent-list li:first-child{padding-top:0}.pl-recent-list .pl-r-avatar{width:32px;height:32px;border-radius:50%;background:var(--accent-soft);color:var(--accent);display:flex;align-items:center;justify-content:center;font-weight:600;font-size:11px;flex-shrink:0}.pl-recent-list .pl-r-info{flex:1;min-width:0}.pl-recent-list .pl-r-name{font-size:13px;font-weight:600;color:var(--text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pl-recent-list .pl-r-meta{font-size:11.5px;color:var(--text-faint)}.pl-quick-actions{display:flex;flex-direction:column;gap:6px}.pl-q-btn{height:38px;background:transparent;border:1px solid var(--border);border-radius:var(--radius-sm);font-family:var(--font);font-weight:500;font-size:13px;color:var(--text-secondary);cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;transition:background .12s,border-color .12s}.pl-q-btn:hover{background:var(--bg-muted);border-color:var(--border-strong)}.pl-q-btn svg{font-size:12px;color:var(--text-muted)}.pl-q-btn.pl-primary-btn{background:var(--accent);border-color:var(--accent);color:#fff}.pl-q-btn.pl-primary-btn:hover{background:var(--accent-hover);border-color:var(--accent-hover)}.pl-q-btn.pl-primary-btn svg{color:#fff}@media(max-width:1000px){.pl-body{grid-template-columns:1fr}.pl-right-sidebar{border-left:none;border-top:1px solid var(--border)}.pl-filter-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:900px){.pl-toolbar{flex-wrap:wrap}.pl-toolbar-actions{margin-left:0}}@media(max-width:640px){.pl-main{padding:14px}.pl-toolbar{flex-direction:column;align-items:stretch;flex-wrap:wrap}.pl-toolbar .pl-heading{margin-bottom:4px}.pl-filter-group{width:100%}.pl-filter-group select{flex:1}.pl-btn-primary{width:100%;justify-content:center}.pl-filter-grid{grid-template-columns:1fr}}.login-page{--bg-page: #f1f5f9;--bg-surface: #ffffff;--bg-muted: #f8fafc;--bg-subtle: #f1f5f9;--border: #e2e8f0;--border-strong: #cbd5e1;--text-primary: #0f172a;--text-secondary: #334155;--text-muted: #64748b;--text-faint: #94a3b8;--accent: #0F3A6F;--accent-hover: #0a2d57;--accent-soft: #e8eef6;--sidebar-bg: #0B2A4A;--danger: #b91c1c;--danger-soft: #fef2f2;--success: #047857;--radius: 12px;--radius-sm: 8px;--radius-full: 9999px;--font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;--shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);--shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);--shadow-md: 0 4px 12px rgba(15, 23, 42, .08);--shadow-lg: 0 16px 40px rgba(15, 23, 42, .14)}.login-page{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;font-family:var(--font);color:var(--text-primary);line-height:1.5;-webkit-font-smoothing:antialiased;overflow-x:hidden}.login-page~*,body:has(.login-page){background:var(--bg-page)!important}.login-page .brand-panel{background:linear-gradient(160deg,#0b2a4a,#0f3a6f 45%,#144066);color:#fff;display:flex;flex-direction:column;justify-content:space-between;padding:48px 56px;position:relative;overflow:hidden}.login-page .brand-panel:before,.login-page .brand-panel:after{content:"";position:absolute;border-radius:50%;pointer-events:none}.login-page .brand-panel:before{width:480px;height:480px;background:radial-gradient(circle,rgba(125,211,252,.14) 0%,transparent 68%);top:-140px;right:-120px}.login-page .brand-panel:after{width:360px;height:360px;background:radial-gradient(circle,rgba(255,255,255,.07) 0%,transparent 68%);bottom:-100px;left:-80px}.login-page .digital-pattern{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;z-index:0;overflow:hidden}.login-page .digital-pattern .grid-fine{position:absolute;top:-40%;right:-40%;bottom:-40%;left:-40%;background-image:linear-gradient(rgba(125,211,252,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(125,211,252,.04) 1px,transparent 1px);background-size:24px 24px;animation:lpGridDrift 40s linear infinite}.login-page .digital-pattern .grid-coarse{position:absolute;top:-40%;right:-40%;bottom:-40%;left:-40%;background-image:linear-gradient(rgba(125,211,252,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(125,211,252,.07) 1px,transparent 1px);background-size:72px 72px;animation:lpGridDriftRev 55s linear infinite;opacity:.7}.login-page .digital-pattern .mesh{position:absolute;top:-50%;right:-50%;bottom:-50%;left:-50%;background-image:repeating-linear-gradient(45deg,transparent,transparent 28px,rgba(125,211,252,.03) 28px,rgba(125,211,252,.03) 29px),repeating-linear-gradient(-45deg,transparent,transparent 28px,rgba(125,211,252,.03) 28px,rgba(125,211,252,.03) 29px);animation:lpMeshRotate 90s linear infinite}.login-page .digital-pattern .ring{position:absolute;border:1px solid rgba(125,211,252,.12);border-radius:50%}.login-page .digital-pattern .ring-1{width:280px;height:280px;top:8%;right:-40px;animation:lpRingPulse 12s ease-in-out infinite}.login-page .digital-pattern .ring-2{width:200px;height:200px;top:14%;right:0;border-color:#7dd3fc14;animation:lpRingPulse 12s ease-in-out infinite 1.5s}.login-page .digital-pattern .ring-3{width:320px;height:320px;bottom:-60px;left:-80px;animation:lpRingPulse 14s ease-in-out infinite .8s}.login-page .digital-pattern .ring-4{width:160px;height:160px;bottom:20px;left:0;border-color:#7dd3fc0f;animation:lpRingPulse 14s ease-in-out infinite 2.2s}.login-page .digital-pattern .node{position:absolute;width:5px;height:5px;border-radius:50%;background:#7dd3fc80;box-shadow:0 0 8px #7dd3fc59}.login-page .digital-pattern .node:after{content:"";position:absolute;top:-3px;right:-3px;bottom:-3px;left:-3px;border:1px solid rgba(125,211,252,.2);border-radius:50%}.login-page .digital-pattern .node-1{top:16%;left:18%;animation:lpNodeBlink 3.4s ease-in-out infinite}.login-page .digital-pattern .node-2{top:28%;left:55%;animation:lpNodeBlink 4.1s ease-in-out infinite .6s}.login-page .digital-pattern .node-3{top:42%;left:30%;animation:lpNodeBlink 2.8s ease-in-out infinite 1.2s}.login-page .digital-pattern .node-4{top:52%;left:72%;animation:lpNodeBlink 3.7s ease-in-out infinite .3s}.login-page .digital-pattern .node-5{top:68%;left:22%;animation:lpNodeBlink 4.5s ease-in-out infinite 1.8s}.login-page .digital-pattern .node-6{top:75%;left:60%;animation:lpNodeBlink 3.1s ease-in-out infinite .9s}.login-page .digital-pattern .node-7{top:22%;left:78%;animation:lpNodeBlink 5s ease-in-out infinite 1.4s}.login-page .digital-pattern .node-8{top:85%;left:42%;animation:lpNodeBlink 3.9s ease-in-out infinite .5s}.login-page .digital-pattern .trace{position:absolute;height:1px;background:linear-gradient(90deg,transparent,rgba(125,211,252,.22),transparent)}.login-page .digital-pattern .trace-1{top:16%;left:18%;width:37%;animation:lpTraceFlow 6s ease-in-out infinite}.login-page .digital-pattern .trace-2{top:28%;left:55%;width:23%;animation:lpTraceFlow 7s ease-in-out infinite 1s}.login-page .digital-pattern .trace-3{top:16%;left:18%;width:1px;height:26%;background:linear-gradient(180deg,transparent,rgba(125,211,252,.18),transparent);animation:lpTraceFlow 8s ease-in-out infinite .5s}.login-page .digital-pattern .trace-4{top:42%;left:30%;width:42%;animation:lpTraceFlow 5.5s ease-in-out infinite 1.5s}.login-page .digital-pattern .trace-5{top:52%;left:72%;width:1px;height:23%;background:linear-gradient(180deg,transparent,rgba(125,211,252,.16),transparent);animation:lpTraceFlow 7.5s ease-in-out infinite .8s}.login-page .digital-pattern .trace-6{top:68%;left:22%;width:38%;animation:lpTraceFlow 6.5s ease-in-out infinite 2s}.login-page .digital-pattern .trace-7{top:75%;left:42%;width:18%;animation:lpTraceFlow 5s ease-in-out infinite .4s}.login-page .digital-pattern .packet{position:absolute;width:4px;height:4px;border-radius:1px;background:#7dd3fcd9;box-shadow:0 0 10px #7dd3fc99}.login-page .digital-pattern .packet-1{top:16%;left:18%;animation:lpPacketH 6s linear infinite}.login-page .digital-pattern .packet-2{top:42%;left:30%;animation:lpPacketH2 5.5s linear infinite 1s}.login-page .digital-pattern .packet-3{top:16%;left:18%;animation:lpPacketV 8s linear infinite .5s}.login-page .digital-pattern .packet-4{top:68%;left:22%;animation:lpPacketH3 6.5s linear infinite 1.5s}.login-page .digital-pattern .scan{position:absolute;left:0;right:0;height:100px;background:linear-gradient(to bottom,transparent,rgba(125,211,252,.03) 40%,rgba(125,211,252,.06) 50%,rgba(125,211,252,.03) 60%,transparent);animation:lpScanMove 11s ease-in-out infinite}.login-page .brand-top{position:relative;z-index:1}.login-page .brand-logo-row{display:flex;align-items:center;gap:14px;margin-bottom:48px}.login-page .brand-logo{width:48px;height:48px;border-radius:14px;background:#ffffff1f;border:1px solid rgba(255,255,255,.15);display:flex;align-items:center;justify-content:center;font-size:20px;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.login-page .brand-logo-text{font-size:22px;font-weight:700;letter-spacing:-.3px}.login-page .brand-headline{font-size:34px;font-weight:700;line-height:1.25;letter-spacing:-.5px;margin-bottom:16px;max-width:380px}.login-page .brand-sub{font-size:15px;color:#ffffffa6;max-width:360px;line-height:1.6}.login-page .brand-features{position:relative;z-index:1;display:flex;flex-direction:column;gap:16px;margin-top:40px}.login-page .feature-item{display:flex;align-items:center;gap:14px;font-size:14px;color:#fffc}.login-page .feature-icon{width:36px;height:36px;border-radius:10px;background:#ffffff1a;border:1px solid rgba(255,255,255,.12);display:flex;align-items:center;justify-content:center;font-size:14px;color:#7dd3fc;flex-shrink:0}.login-page .brand-footer{position:relative;z-index:1;font-size:12.5px;color:#fff6}.login-page .form-panel{background:var(--bg-page);display:flex;align-items:center;justify-content:center;padding:40px 32px}.login-page .form-card{width:100%;max-width:540px;background:var(--bg-surface);border:1px solid var(--border);border-radius:16px;padding:40px;box-shadow:var(--shadow-lg)}.login-page .form-header{margin-bottom:28px}.login-page .form-header h1{font-size:22px;font-weight:700;color:var(--text-primary);letter-spacing:-.3px;margin-bottom:6px}.login-page .form-header p{font-size:13.5px;color:var(--text-muted)}.login-page .form-group{margin-bottom:18px}.login-page .form-group label{display:block;font-size:12.5px;font-weight:600;color:var(--text-secondary);margin-bottom:6px}.login-page .input-wrap{position:relative}.login-page .input-wrap .input-icon{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:var(--text-faint);font-size:14px;pointer-events:none;transition:color .15s}.login-page .input-wrap:focus-within .input-icon{color:var(--accent)}.login-page .form-group input{width:100%;height:44px;padding:0 14px 0 42px;border:1px solid var(--border);border-radius:var(--radius-sm);font-family:var(--font);font-size:14px;color:var(--text-primary);background:var(--bg-surface);transition:border-color .15s,box-shadow .15s}.login-page .form-group input::placeholder{color:var(--text-faint)}.login-page .form-group input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px #0f3a6f1f}.login-page .form-group input:focus+.input-icon,.login-page .form-group input:focus~.input-icon{color:var(--accent)}.login-page .form-group input:disabled{background:var(--bg-subtle);cursor:not-allowed}.login-page .password-wrap input{padding-right:44px}.login-page .toggle-password{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:36px;height:36px;border:none;background:transparent;color:var(--text-faint);cursor:pointer;border-radius:6px;display:flex;align-items:center;justify-content:center;font-size:14px;transition:color .15s,background .15s}.login-page .toggle-password:hover{color:var(--text-secondary);background:var(--bg-subtle)}.login-page .toggle-password:disabled{cursor:not-allowed;opacity:.5}.login-page .form-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px;font-size:13px;line-height:1}.login-page .remember{display:flex;align-items:center;gap:8px;color:var(--text-secondary);cursor:pointer;-webkit-user-select:none;user-select:none;font-size:13px;line-height:1;margin:0;flex:1 1 auto;min-width:0;width:100%}.login-page .remember input{width:16px;height:16px;accent-color:var(--accent);cursor:pointer;margin:0;flex-shrink:0}.login-page .forgot-link{color:var(--accent);text-decoration:none;font-weight:600;font-size:13px;line-height:1;white-space:nowrap;margin-left:auto;text-align:right;flex-shrink:0;align-self:center;margin-right:0;transition:color .15s}.login-page .forgot-link:hover{color:var(--accent-hover);text-decoration:underline}.login-page .btn-login{width:100%;height:44px;border:none;border-radius:var(--radius-sm);background:var(--accent);color:#fff;font-family:var(--font);font-size:14px;font-weight:600;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;transition:background .15s,transform .12s,box-shadow .15s;box-shadow:0 2px 8px #0f3a6f40}.login-page .btn-login:hover{background:var(--accent-hover);box-shadow:0 4px 12px #0f3a6f4d}.login-page .btn-login:active{transform:scale(.98)}.login-page .btn-login.loading{pointer-events:none;opacity:.85}.login-page .btn-login .spinner{display:none;width:16px;height:16px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:lpSpin .7s linear infinite}.login-page .btn-login.loading .spinner{display:block}.login-page .btn-login.loading .btn-text{display:none}.login-page .form-footer{margin-top:24px;text-align:center;font-size:13px;color:var(--text-muted)}.login-page .form-footer a{color:var(--accent);font-weight:600;text-decoration:none}.login-page .form-footer a:hover{text-decoration:underline}.login-page .error-msg{background:var(--danger-soft);color:var(--danger);font-size:13px;font-weight:500;padding:10px 14px;border-radius:var(--radius-sm);margin-bottom:16px;border:1px solid rgba(185,28,28,.15);align-items:center;gap:8px;display:flex}@keyframes lpGridDrift{0%{transform:translate(0)}to{transform:translate(24px,24px)}}@keyframes lpGridDriftRev{0%{transform:translate(0)}to{transform:translate(-72px,36px)}}@keyframes lpMeshRotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes lpRingPulse{0%,to{opacity:.35;transform:scale(1)}50%{opacity:.7;transform:scale(1.04)}}@keyframes lpNodeBlink{0%,to{opacity:.3;transform:scale(1)}40%{opacity:1;transform:scale(1.5)}60%{opacity:.5;transform:scale(1.1)}}@keyframes lpTraceFlow{0%,to{opacity:.15}50%{opacity:.55}}@keyframes lpPacketH{0%{transform:translate(0);opacity:0}8%{opacity:1}92%{opacity:1}to{transform:translate(120px);opacity:0}}@keyframes lpPacketH2{0%{transform:translate(0);opacity:0}8%{opacity:1}92%{opacity:1}to{transform:translate(140px);opacity:0}}@keyframes lpPacketH3{0%{transform:translate(0);opacity:0}8%{opacity:1}92%{opacity:1}to{transform:translate(110px);opacity:0}}@keyframes lpPacketV{0%{transform:translate(0);opacity:0}8%{opacity:1}92%{opacity:1}to{transform:translateY(90px);opacity:0}}@keyframes lpScanMove{0%{top:-100px;opacity:0}8%{opacity:1}92%{opacity:1}to{top:100%;opacity:0}}@keyframes lpSpin{to{transform:rotate(360deg)}}@media(max-width:900px){.login-page{grid-template-columns:1fr}.login-page .brand-panel{padding:32px 28px;min-height:auto}.login-page .brand-headline{font-size:26px}.login-page .brand-features,.login-page .brand-footer{display:none}.login-page .form-panel{padding:28px 20px 40px}.login-page .form-card{padding:32px 24px}}:root{--PhoneInput-color--focus: #03b2cb;--PhoneInputInternationalIconPhone-opacity: .8;--PhoneInputInternationalIconGlobe-opacity: .65;--PhoneInputCountrySelect-marginRight: .35em;--PhoneInputCountrySelectArrow-width: .3em;--PhoneInputCountrySelectArrow-marginLeft: var(--PhoneInputCountrySelect-marginRight);--PhoneInputCountrySelectArrow-borderWidth: 1px;--PhoneInputCountrySelectArrow-opacity: .45;--PhoneInputCountrySelectArrow-color: currentColor;--PhoneInputCountrySelectArrow-color--focus: var(--PhoneInput-color--focus);--PhoneInputCountrySelectArrow-transform: rotate(45deg);--PhoneInputCountryFlag-aspectRatio: 1.5;--PhoneInputCountryFlag-height: 1em;--PhoneInputCountryFlag-borderWidth: 1px;--PhoneInputCountryFlag-borderColor: rgba(0,0,0,.5);--PhoneInputCountryFlag-borderColor--focus: var(--PhoneInput-color--focus);--PhoneInputCountryFlag-backgroundColor--loading: rgba(0,0,0,.1)}.PhoneInput{display:flex;align-items:center}.PhoneInputInput{flex:1;min-width:0}.PhoneInputCountryIcon{width:calc(var(--PhoneInputCountryFlag-height) * var(--PhoneInputCountryFlag-aspectRatio));height:var(--PhoneInputCountryFlag-height)}.PhoneInputCountryIcon--square{width:var(--PhoneInputCountryFlag-height)}.PhoneInputCountryIcon--border{background-color:var(--PhoneInputCountryFlag-backgroundColor--loading);box-shadow:0 0 0 var(--PhoneInputCountryFlag-borderWidth) var(--PhoneInputCountryFlag-borderColor),inset 0 0 0 var(--PhoneInputCountryFlag-borderWidth) var(--PhoneInputCountryFlag-borderColor)}.PhoneInputCountryIconImg{display:block;width:100%;height:100%}.PhoneInputInternationalIconPhone{opacity:var(--PhoneInputInternationalIconPhone-opacity)}.PhoneInputInternationalIconGlobe{opacity:var(--PhoneInputInternationalIconGlobe-opacity)}.PhoneInputCountry{position:relative;align-self:stretch;display:flex;align-items:center;margin-right:var(--PhoneInputCountrySelect-marginRight)}.PhoneInputCountrySelect{position:absolute;top:0;left:0;height:100%;width:100%;z-index:1;border:0;opacity:0;cursor:pointer}.PhoneInputCountrySelect[disabled],.PhoneInputCountrySelect[readonly]{cursor:default}.PhoneInputCountrySelectArrow{display:block;content:"";width:var(--PhoneInputCountrySelectArrow-width);height:var(--PhoneInputCountrySelectArrow-width);margin-left:var(--PhoneInputCountrySelectArrow-marginLeft);border-style:solid;border-color:var(--PhoneInputCountrySelectArrow-color);border-top-width:0;border-bottom-width:var(--PhoneInputCountrySelectArrow-borderWidth);border-left-width:0;border-right-width:var(--PhoneInputCountrySelectArrow-borderWidth);transform:var(--PhoneInputCountrySelectArrow-transform);opacity:var(--PhoneInputCountrySelectArrow-opacity)}.PhoneInputCountrySelect:focus+.PhoneInputCountryIcon+.PhoneInputCountrySelectArrow{opacity:1;color:var(--PhoneInputCountrySelectArrow-color--focus)}.PhoneInputCountrySelect:focus+.PhoneInputCountryIcon--border{box-shadow:0 0 0 var(--PhoneInputCountryFlag-borderWidth) var(--PhoneInputCountryFlag-borderColor--focus),inset 0 0 0 var(--PhoneInputCountryFlag-borderWidth) var(--PhoneInputCountryFlag-borderColor--focus)}.PhoneInputCountrySelect:focus+.PhoneInputCountryIcon .PhoneInputInternationalIconGlobe{opacity:1;color:var(--PhoneInputCountrySelectArrow-color--focus)}:root{--pm-bg-page: #f1f5f9;--pm-bg-surface: #ffffff;--pm-bg-muted: #f8fafc;--pm-bg-subtle: #f1f5f9;--pm-border: #e2e8f0;--pm-border-strong: #cbd5e1;--pm-text-primary: #0f172a;--pm-text-secondary: #334155;--pm-text-muted: #64748b;--pm-text-faint: #94a3b8;--pm-accent: #0F3A6F;--pm-accent-hover: #0a2d57;--pm-accent-soft: #e8eef6;--pm-danger: #b91c1c;--pm-success: #047857;--pm-shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);--pm-shadow-md: 0 4px 12px rgba(15, 23, 42, .07);--pm-radius: 12px;--pm-radius-sm: 8px;--pm-radius-full: 9999px}.patient-modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a80;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);z-index:1000;display:flex;justify-content:center;align-items:flex-start;padding:24px 16px;overflow-y:auto}.patient-modal-content{background:var(--pm-bg-surface);border-radius:16px;max-width:960px;width:100%;margin:auto;display:flex;flex-direction:column;box-shadow:0 24px 48px #0f172a2e;animation:pm-modalIn .22s ease;overflow:hidden}.patient-modal-content.patient-modal-sm{max-width:550px}.patient-modal-content.patient-modal-md{max-width:960px}.patient-modal-content.patient-modal-lg{max-width:1400px}.patient-modal-content.patient-modal-xl{max-width:1600px}.patient-modal-content.ss-dropdown-open{overflow-y:hidden}@keyframes pm-modalIn{0%{transform:translateY(16px) scale(.98);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}.patient-modal-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 22px;background:#1a4a7a;flex-shrink:0}.patient-modal-header-left{display:flex;align-items:center;gap:12px;min-width:0}.patient-modal-header-icon{width:40px;height:40px;border-radius:10px;background:#ffffff26;color:#fff;display:flex;align-items:center;justify-content:center;font-size:16px;flex-shrink:0}.patient-modal-header-text{min-width:0}.patient-modal-header-text h2{font-weight:700;font-size:17px;color:#fff;margin:0;letter-spacing:-.2px}.patient-modal-header-text p{font-size:12.5px;color:#ffffffa6;margin:2px 0 0}.patient-modal-close-circle{width:34px;height:34px;border:none;background:#ffffff1a;border-radius:var(--pm-radius-sm);color:#ffffffd9;font-size:14px;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0;padding:0}.patient-modal-close-circle:hover{background:#fff3;color:#fff}.patient-modal-form{display:flex;flex-direction:column;flex:1;min-height:0}.patient-modal-body{padding:20px 22px 12px;max-height:min(70vh,580px)}.patient-section-label{font-size:14px;font-weight:600;color:var(--pm-text-primary);margin-bottom:14px;padding-bottom:10px;border-bottom:1px solid var(--pm-border)}.patient-form-section h3{display:none}.patient-form-section{background:transparent;padding:0;border-radius:0;border:none}.patient-form-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.patient-form-row{display:contents}.patient-form-group{display:flex;flex-direction:column}.patient-form-group-full-width{grid-column:span 3}.patient-form-group label{display:block;font-size:12px;font-weight:600;color:var(--pm-text-secondary);margin-bottom:5px;position:static;background:transparent;padding:0;z-index:auto;pointer-events:auto;line-height:1.4}.patient-form-group label.required:after{content:" **";color:var(--pm-danger);font-weight:600}.patient-form-group input,.patient-form-group select,.patient-form-group textarea{width:100%;height:40px;padding:0 12px;border:1px solid var(--pm-border);border-radius:var(--pm-radius-sm);font-family:inherit;font-size:13px;color:var(--pm-text-primary);background:var(--pm-bg-surface);transition:border-color .15s,box-shadow .15s;box-sizing:border-box;margin-top:0}.patient-form-group select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;padding-right:32px;cursor:pointer}.patient-form-group textarea{height:auto;min-height:88px;padding:10px 12px;resize:vertical}.patient-form-group input:focus,.patient-form-group select:focus,.patient-form-group textarea:focus{outline:none;border-color:var(--pm-accent);box-shadow:0 0 0 3px #0f3a6f1f}.patient-form-group input::placeholder,.patient-form-group textarea::placeholder{color:var(--pm-text-faint)}.patient-form-group input:disabled,.patient-form-group select:disabled{background:var(--pm-bg-muted);color:var(--pm-text-faint);cursor:not-allowed}.patient-form-group input.error,.patient-form-group select.error,.patient-form-group textarea.error{border-color:#ef4444}.PhoneInput{height:40px;padding:0 12px;border:1px solid var(--pm-border);border-radius:var(--pm-radius-sm);font-size:13px;font-family:inherit;background:var(--pm-bg-surface);display:flex;align-items:center;box-sizing:border-box;transition:border-color .15s,box-shadow .15s}.PhoneInput:focus-within{border-color:var(--pm-accent);box-shadow:0 0 0 3px #0f3a6f1f}.PhoneInputInput{border:none;outline:none;padding:0;margin-left:8px;font-size:13px;font-family:inherit;background:transparent;color:var(--pm-text-primary)}.patient-error-text{font-size:11.5px;color:var(--pm-danger);font-weight:600;margin-top:3px}.patient-modal-footer{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:14px 22px;border-top:1px solid var(--pm-border);background:var(--pm-bg-muted);flex-shrink:0}.patient-btn-cancel{height:40px;padding:0 18px;background:var(--pm-bg-surface);border:1px solid var(--pm-border);border-radius:var(--pm-radius-full);font-family:inherit;font-weight:500;font-size:13px;color:var(--pm-text-secondary);cursor:pointer;display:inline-flex;align-items:center;gap:6px;transition:background .12s,border-color .12s}.patient-btn-cancel:hover{background:var(--pm-bg-subtle);border-color:var(--pm-border-strong)}.patient-btn-submit{height:40px;padding:0 20px;background:var(--pm-accent);border:none;border-radius:var(--pm-radius-full);font-family:inherit;font-weight:600;font-size:13px;color:#fff;display:inline-flex;align-items:center;gap:8px;cursor:pointer;transition:background .15s,box-shadow .15s;box-shadow:0 1px 2px #0f3a6f33}.patient-btn-submit:hover{background:var(--pm-accent-hover);box-shadow:0 2px 6px #0f3a6f40}.patient-btn-submit:disabled{opacity:.6;cursor:not-allowed}.patient-modal-readonly .patient-form-group input,.patient-modal-readonly .patient-form-group select,.patient-modal-readonly .patient-form-group textarea{background:var(--pm-bg-muted);border-color:var(--pm-border);color:var(--pm-text-faint);cursor:not-allowed;pointer-events:none}.patient-modal-readonly .patient-form-group input:focus,.patient-modal-readonly .patient-form-group select:focus,.patient-modal-readonly .patient-form-group textarea:focus{border-color:var(--pm-border);box-shadow:none;outline:none}.patient-modal-readonly .ss-trigger{background:var(--pm-bg-muted);border-color:var(--pm-border);color:var(--pm-text-faint);cursor:default;pointer-events:none}.patient-modal-readonly .ss-trigger:focus{border-color:var(--pm-border);box-shadow:none}.patient-modal-readonly .ss-trigger-icons{display:none}.patient-modal-readonly .PhoneInput,.patient-modal-readonly .phone-readonly{background:var(--pm-bg-muted);border-color:var(--pm-border);color:var(--pm-text-faint);cursor:default;pointer-events:none}.patient-modal-readonly .PhoneInput:focus-within{border-color:var(--pm-border);box-shadow:none}.patient-modal-readonly .patient-form-group label.required:after{content:""}.ss-wrapper{position:relative;width:100%;height:40px;box-sizing:border-box;font-size:13px;font-family:inherit}.ss-wrapper.ss-disabled{opacity:.6;pointer-events:none}.ss-trigger{display:flex;align-items:center;justify-content:space-between;width:100%;height:40px;padding:0 10px 0 12px;border:1px solid var(--pm-border);border-radius:var(--pm-radius-sm);background:var(--pm-bg-surface);color:var(--pm-text-primary);cursor:pointer;box-sizing:border-box;transition:border-color .15s,box-shadow .15s;-webkit-user-select:none;user-select:none}.ss-trigger:focus{outline:none;border-color:var(--pm-accent);box-shadow:0 0 0 3px #0f3a6f1f}.ss-trigger--open{border-color:var(--pm-accent);box-shadow:0 0 0 3px #0f3a6f1f}.ss-wrapper.error .ss-trigger{border-color:#ef4444}.ss-trigger-label{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.ss-trigger-placeholder{color:var(--pm-text-faint)}.ss-trigger-icons{display:flex;align-items:center;gap:4px;flex-shrink:0;margin-left:6px;color:var(--pm-text-muted)}.ss-clear-icon{font-size:13px;cursor:pointer;color:var(--pm-text-muted);transition:color .15s}.ss-clear-icon:hover{color:#ef4444}.ss-chevron{font-size:14px;transition:transform .2s}.ss-chevron--up{transform:rotate(180deg)}.ss-dropdown{position:absolute;top:calc(100% + 4px);left:0;right:0;background:var(--pm-bg-surface);border:1px solid var(--pm-border);border-radius:var(--pm-radius-sm);box-shadow:0 8px 24px #0000001f;z-index:9999;overflow:hidden;animation:pm-ssFade .12s ease}@keyframes pm-ssFade{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.ss-search-box{display:flex;align-items:center;gap:8px;padding:8px 10px;border-bottom:1px solid #f3f4f6}.ss-search-icon{color:var(--pm-text-muted);font-size:13px;flex-shrink:0}.ss-search-input{flex:1;border:none;outline:none;font-size:13px;font-family:inherit;color:var(--pm-text-primary);background:transparent}.ss-search-input::placeholder{color:var(--pm-text-muted)}.ss-list{list-style:none;margin:0;padding:4px 0;max-height:200px;overflow-y:auto}.ss-list::-webkit-scrollbar{width:5px}.ss-list::-webkit-scrollbar-track{background:transparent}.ss-list::-webkit-scrollbar-thumb{background:#d1d5db;border-radius:3px}.ss-option{padding:8px 12px;font-size:13px;color:var(--pm-text-primary);cursor:pointer;transition:background .1s}.ss-option:hover{background:#f3f4f6}.ss-option--selected{background:var(--pm-accent-soft);color:var(--pm-accent);font-weight:500}.ss-option--selected:hover{background:#dce4f0}.ss-option-empty{color:var(--pm-text-muted);font-style:italic}.ss-option-none{color:var(--pm-text-muted);font-style:italic;cursor:default;text-align:center;padding:12px}@media(max-width:700px){.patient-form-grid{grid-template-columns:1fr 1fr}.patient-form-group-full-width{grid-column:span 2}}@media(max-width:480px){.patient-form-grid{grid-template-columns:1fr}.patient-form-group-full-width{grid-column:span 1}.patient-modal-body{max-height:60vh}.patient-modal-footer{flex-direction:column}.patient-btn-cancel,.patient-btn-submit{width:100%;justify-content:center}}.date-mask-icon{position:absolute;right:8px;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;padding:0;border:none;border-radius:4px;background:transparent;color:var(--pm-text-faint, #64748b);cursor:pointer}.date-mask-icon:hover{color:var(--pm-accent, #0f3a6f);background:#0f3a6f14}.bam-overlay{--bam-bg-surface: #ffffff;--bam-bg-muted: #f8fafc;--bam-bg-subtle: #f1f5f9;--bam-border: #e2e8f0;--bam-border-strong: #cbd5e1;--bam-text-primary: #0f172a;--bam-text-secondary: #334155;--bam-text-muted: #64748b;--bam-text-faint: #94a3b8;--bam-accent: #0F3A6F;--bam-accent-hover: #0a2d57;--bam-accent-soft: #e8eef6;--bam-danger: #b91c1c;--bam-warning: #b45309;--bam-warning-soft: #fffbeb;--bam-success: #047857;--bam-radius-sm: 8px;--bam-radius-full: 9999px;--bam-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;display:none;position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a80;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);z-index:1200;justify-content:center;align-items:center;padding:16px;font-family:var(--bam-font)}.bam-overlay.bam-show{display:flex}.bam-modal{background:var(--bam-bg-surface);border-radius:16px;width:100%;max-width:980px;max-height:calc(100vh - 32px);display:flex;flex-direction:column;box-shadow:0 16px 40px #0f172a29;overflow:hidden;animation:bam-in .2s ease}@keyframes bam-in{0%{transform:translateY(12px) scale(.98);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}.bam-header{display:flex;align-items:center;justify-content:space-between;padding:14px 22px;border-bottom:1px solid var(--bam-border);flex-shrink:0}.bam-header h2{font-size:16px;font-weight:700;display:flex;align-items:center;gap:10px;margin:0;color:var(--bam-text-primary)}.bam-header-icon{width:32px;height:32px;border-radius:9px;background:linear-gradient(135deg,#0f3a6f,#1a4a8a);color:#fff;display:flex;align-items:center;justify-content:center;font-size:13px;flex-shrink:0}.bam-close{width:32px;height:32px;border:none;background:transparent;border-radius:var(--bam-radius-sm);color:var(--bam-text-muted);cursor:pointer;font-size:14px;display:flex;align-items:center;justify-content:center}.bam-close:hover{background:var(--bam-bg-subtle);color:var(--bam-text-secondary)}.bam-body{display:grid;grid-template-columns:340px 1fr;min-height:0;overflow:hidden}.bam-form-col{padding:18px 20px;border-right:1px solid var(--bam-border);display:flex;flex-direction:column;gap:14px;overflow-y:auto}.bam-chip{display:flex;align-items:center;gap:12px;padding:12px 14px;background:var(--bam-accent-soft);border:1px solid rgba(15,58,111,.12);border-radius:var(--bam-radius-sm)}.bam-chip-avatar{width:40px;height:40px;border-radius:50%;background:linear-gradient(135deg,#0f3a6f,#1a4a8a);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:13px;flex-shrink:0}.bam-chip-name{font-size:14px;font-weight:600;color:var(--bam-text-primary)}.bam-chip-meta{font-size:12px;color:var(--bam-text-muted);margin-top:2px}.bam-chip-change{margin-left:auto;border:none;background:transparent;color:var(--bam-accent);font-family:var(--bam-font);font-size:12px;font-weight:600;cursor:pointer;padding:4px 6px;border-radius:4px;white-space:nowrap}.bam-chip-change:hover{background:#0f3a6f14}.bam-group label{display:block;font-size:12px;font-weight:600;color:var(--bam-text-secondary);margin-bottom:6px}.bam-req{color:var(--bam-danger)}.bam-group select,.bam-group textarea,.bam-group input[type=text]{width:100%;height:38px;padding:0 12px;border:1px solid var(--bam-border);border-radius:var(--bam-radius-sm);font-family:var(--bam-font);font-size:13.5px;color:var(--bam-text-primary);background:var(--bam-bg-surface)}.bam-group select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;padding-right:32px;cursor:pointer}.bam-group select:disabled{opacity:.6;cursor:not-allowed;background-color:var(--bam-bg-muted)}.bam-group textarea{height:72px;padding:10px 12px;resize:none;line-height:1.4}.bam-group select:focus,.bam-group textarea:focus,.bam-group input[type=text]:focus{outline:none;border-color:var(--bam-accent);box-shadow:0 0 0 3px #0f3a6f1f}.bam-alert{display:flex;align-items:flex-start;gap:8px;padding:10px 12px;border-radius:var(--bam-radius-sm);font-size:12.5px;line-height:1.4;background:var(--bam-warning-soft);color:var(--bam-warning);border:1px solid rgba(180,83,9,.15)}.bam-alert svg{margin-top:1px;flex-shrink:0}.bam-slots-col{display:flex;flex-direction:column;background:var(--bam-bg-muted);min-width:0}.bam-slots-top{padding:14px 18px 12px;border-bottom:1px solid var(--bam-border);flex-shrink:0}.bam-slots-top-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;gap:12px}.bam-slots-top-row h3{font-size:13px;font-weight:700;color:var(--bam-text-primary);display:flex;align-items:center;gap:6px;margin:0}.bam-slots-top-row h3 svg{color:var(--bam-accent);font-size:12px}.bam-week-nav{display:flex;align-items:center;gap:6px}.bam-week-label{font-size:12px;font-weight:600;color:var(--bam-text-secondary);min-width:120px;text-align:center}.bam-nav-btn{width:30px;height:30px;border:1px solid var(--bam-border);border-radius:6px;background:var(--bam-bg-surface);color:var(--bam-text-secondary);cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:12px;transition:background .12s,border-color .12s}.bam-nav-btn:hover:not(:disabled){background:var(--bam-bg-subtle);border-color:var(--bam-border-strong)}.bam-nav-btn:disabled{opacity:.35;cursor:not-allowed}.bam-date-strip{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}.bam-day-btn{padding:8px 2px 7px;border:1px solid var(--bam-border);border-radius:8px;background:var(--bam-bg-surface);cursor:pointer;text-align:center;font-family:var(--bam-font);transition:border-color .12s,background .12s}.bam-day-btn:hover:not(:disabled):not(.bam-selected){border-color:var(--bam-border-strong);background:var(--bam-bg-subtle)}.bam-day-btn.bam-selected{border-color:var(--bam-accent);background:var(--bam-accent)}.bam-day-btn:disabled{opacity:.4;cursor:not-allowed;background:var(--bam-bg-subtle)}.bam-dow{font-size:10px;font-weight:600;text-transform:uppercase;color:var(--bam-text-muted)}.bam-day-btn.bam-selected .bam-dow{color:#ffffffbf}.bam-dom{font-size:15px;font-weight:700;color:var(--bam-text-primary);line-height:1.25}.bam-day-btn.bam-selected .bam-dom{color:#fff}.bam-tag{font-size:9.5px;font-weight:600;margin-top:2px;color:var(--bam-success)}.bam-day-btn.bam-selected .bam-tag{color:#ffffffd9}.bam-day-btn.bam-full .bam-tag{color:var(--bam-text-faint)}.bam-day-btn.bam-blocked .bam-tag{color:var(--bam-danger)}.bam-slots-body{padding:14px 18px 12px;flex:1;min-height:0;max-height:280px;overflow-y:auto}.bam-slots-body::-webkit-scrollbar{width:6px}.bam-slots-body::-webkit-scrollbar-thumb{background:var(--bam-border-strong);border-radius:4px}.bam-period{margin-bottom:12px}.bam-period:last-child{margin-bottom:0}.bam-period-name{font-size:11.5px;font-weight:600;color:var(--bam-text-muted);margin-bottom:7px;display:flex;align-items:center;gap:5px}.bam-slot-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:6px}.bam-slot-btn{height:34px;border:1px solid var(--bam-border);border-radius:6px;background:var(--bam-bg-surface);font-family:var(--bam-font);font-size:12px;font-weight:500;color:var(--bam-text-secondary);cursor:pointer;transition:all .12s}.bam-slot-btn:hover:not(:disabled):not(.bam-selected){border-color:var(--bam-accent);color:var(--bam-accent);background:var(--bam-accent-soft)}.bam-slot-btn.bam-selected{background:var(--bam-accent);border-color:var(--bam-accent);color:#fff;font-weight:600}.bam-slot-btn:disabled{background:transparent;color:var(--bam-text-faint);border-color:transparent;cursor:not-allowed;text-decoration:line-through;opacity:.5}.bam-empty{text-align:center;padding:28px 12px;font-size:13px;color:var(--bam-text-muted)}.bam-slots-summary{padding:10px 18px;border-top:1px solid var(--bam-border);background:var(--bam-bg-surface);font-size:13px;color:var(--bam-text-muted);min-height:44px;display:flex;align-items:center;gap:8px;flex-wrap:wrap;flex-shrink:0}.bam-pill{display:inline-flex;align-items:center;gap:5px;background:var(--bam-accent-soft);color:var(--bam-accent);font-weight:600;font-size:12px;padding:4px 10px;border-radius:var(--bam-radius-full)}.bam-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 22px;border-top:1px solid var(--bam-border);background:var(--bam-bg-muted);flex-shrink:0}.bam-hint{font-size:12px;color:var(--bam-text-muted)}.bam-actions{display:flex;gap:8px}.bam-btn-secondary{height:38px;padding:0 14px;background:var(--bam-bg-surface);border:1px solid var(--bam-border);border-radius:var(--bam-radius-sm);font-family:var(--bam-font);font-size:13px;font-weight:500;color:var(--bam-text-secondary);cursor:pointer}.bam-btn-secondary:hover{background:var(--bam-bg-subtle)}.bam-btn-primary{height:38px;padding:0 16px;background:var(--bam-accent);border:none;border-radius:var(--bam-radius-sm);font-family:var(--bam-font);font-size:13px;font-weight:600;color:#fff;cursor:pointer;display:inline-flex;align-items:center;gap:6px}.bam-btn-primary:hover:not(:disabled){background:var(--bam-accent-hover)}.bam-btn-primary:disabled{opacity:.45;cursor:not-allowed}@media(max-width:800px){.bam-body{grid-template-columns:1fr}.bam-form-col{border-right:none;border-bottom:1px solid var(--bam-border)}.bam-slot-grid{grid-template-columns:repeat(4,1fr)}}:root{--pd-bg-page: #f1f5f9;--pd-bg-surface: #ffffff;--pd-bg-muted: #f8fafc;--pd-bg-subtle: #f1f5f9;--pd-border: #e2e8f0;--pd-border-strong: #cbd5e1;--pd-text-primary: #0f172a;--pd-text-secondary: #334155;--pd-text-muted: #64748b;--pd-text-faint: #94a3b8;--pd-accent: #0F3A6F;--pd-accent-hover: #0a2d57;--pd-accent-soft: #e8eef6;--pd-danger: #b91c1c;--pd-danger-soft: #fef2f2;--pd-warning: #b45309;--pd-warning-soft: #fffbeb;--pd-success: #047857;--pd-success-soft: #ecfdf5;--pd-info: #1d4ed8;--pd-info-soft: #eff6ff;--pd-shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);--pd-shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);--pd-shadow-md: 0 4px 12px rgba(15, 23, 42, .07);--pd-radius: 12px;--pd-radius-sm: 8px;--pd-radius-full: 9999px}.patient-details-container{min-height:100vh;background:var(--pd-bg-page);padding:20px 24px 40px}.patient-details-wrapper{margin:0 auto}.patient-details-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;background:#1a4a7a;border:1px solid #143a61;border-radius:var(--pd-radius-sm);box-shadow:var(--pd-shadow-sm);margin-bottom:16px}.header-title-section{flex:1;min-width:0}.header-title{display:flex;align-items:center;gap:14px}.header-icon{width:40px;height:40px;border-radius:10px;background:#ffffff26;color:#fff;display:flex;align-items:center;justify-content:center;font-size:16px;flex-shrink:0}.header-text{font-size:16px;font-weight:700;color:#fff;margin:0;letter-spacing:-.2px}.header-subtitle{font-size:12.5px;color:#ffffffa6;margin:2px 0 0 54px}.patient-id-badge{font-size:11.5px;font-weight:600;color:#ffffffe6;background:#ffffff1f;border:1px solid rgba(255,255,255,.2);padding:6px 12px;border-radius:var(--pd-radius-full);white-space:nowrap;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.2px}.pd-form-card{background:var(--pd-bg-surface);border:1px solid var(--pd-border);border-radius:var(--pd-radius);box-shadow:var(--pd-shadow-sm);overflow:hidden}.pd-patient-summary{display:flex;align-items:center;gap:14px;padding:14px 22px;border-bottom:1px solid var(--pd-border);background:var(--pd-bg-surface)}.pd-patient-avatar{width:48px;height:48px;border-radius:50%;background:linear-gradient(135deg,#0f3a6f,#1a5a9e);color:#fff;display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:700;flex-shrink:0;box-shadow:0 2px 8px #0f3a6f33}.pd-patient-summary-info{min-width:0;flex:1}.pd-patient-summary-name{font-size:15px;font-weight:700;color:var(--pd-text-primary);letter-spacing:-.2px}.pd-patient-summary-meta{font-size:12.5px;color:var(--pd-text-muted);margin-top:2px}.pd-status-pill{font-size:11.5px;font-weight:600;padding:4px 12px;border-radius:var(--pd-radius-full);background:var(--pd-success-soft);color:var(--pd-success);display:inline-flex;align-items:center;gap:5px}.pd-status-pill:before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}.pd-tabs{display:flex;gap:4px;padding:12px 16px 0;border-bottom:1px solid var(--pd-border);background:var(--pd-bg-muted)}.pd-tab-btn{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 16px;border:none;background:transparent;border-radius:var(--pd-radius-sm) var(--pd-radius-sm) 0 0;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:13px;font-weight:600;color:var(--pd-text-muted);cursor:pointer;white-space:nowrap;position:relative;transition:color .12s,background .12s}.pd-tab-btn i,.pd-tab-btn svg{font-size:13px}.pd-tab-btn:hover{color:var(--pd-text-secondary);background:#0f3a6f0a}.pd-tab-btn.pd-active{color:var(--pd-accent);background:var(--pd-bg-surface)}.pd-tab-btn.pd-active:after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--pd-accent)}.pd-tab-panel{padding:20px 22px 8px}.pd-form-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px 16px}.pd-form-grid .pd-span-2{grid-column:span 2}.pd-form-grid .pd-span-3{grid-column:span 3}.pd-form-grid .pd-span-4{grid-column:span 4}.pd-form-group label{display:block;font-size:12px;font-weight:600;color:var(--pd-text-secondary);margin-bottom:5px}.pd-form-group label .pd-req{color:var(--pd-danger);margin-left:2px}.pd-form-group input,.pd-form-group select,.pd-form-group textarea{width:100%;height:38px;padding:0 12px;border:1px solid var(--pd-border);border-radius:var(--pd-radius-sm);font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:13px;color:var(--pd-text-primary);background:var(--pd-bg-surface);transition:border-color .15s,box-shadow .15s}.pd-form-group select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;padding-right:32px;cursor:pointer}.pd-form-group textarea{height:auto;min-height:80px;padding:10px 12px;resize:vertical}.pd-form-group input:focus,.pd-form-group select:focus,.pd-form-group textarea:focus{outline:none;border-color:var(--pd-accent);box-shadow:0 0 0 3px #0f3a6f1f}.pd-form-group input::placeholder,.pd-form-group textarea::placeholder{color:var(--pd-text-faint)}.pd-form-group input:disabled,.pd-form-group select:disabled{background:var(--pd-bg-muted);color:var(--pd-text-faint);cursor:not-allowed}.pd-form-group input.pd-input-error{border-color:var(--pd-danger)}.pd-error-text{font-size:11px;color:var(--pd-danger);margin-top:3px}.pd-phone-group{display:flex;align-items:stretch;height:38px;border:1px solid var(--pd-border);border-radius:var(--pd-radius-sm);overflow:hidden;background:var(--pd-bg-surface);transition:border-color .15s,box-shadow .15s}.pd-phone-group:focus-within{border-color:var(--pd-accent);box-shadow:0 0 0 3px #0f3a6f1f}.pd-phone-group select{width:72px;height:100%;border:none;border-right:1px solid var(--pd-border);border-radius:0;padding:0 20px 0 8px;background:var(--pd-bg-muted);font-size:13px;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 6px center;cursor:pointer}.pd-phone-group select:focus{outline:none;box-shadow:none}.pd-phone-group input{flex:1;height:100%;border:none;border-radius:0;padding:0 12px}.pd-phone-group input:focus{outline:none;box-shadow:none}.pd-section-title{font-size:12px;font-weight:700;color:var(--pd-text-muted);text-transform:uppercase;letter-spacing:.4px;margin:8px 0 12px;display:flex;align-items:center;gap:8px}.pd-section-title svg{color:var(--pd-accent);font-size:12px}.pd-section-title:after{content:"";flex:1;height:1px;background:var(--pd-border)}.pd-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0 12px}.pd-section-head .pd-section-title{margin:0;flex:1}.pd-btn-add-sm{height:32px;padding:0 12px;background:var(--pd-accent);border:none;border-radius:var(--pd-radius-sm);font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:12.5px;font-weight:600;color:#fff;display:inline-flex;align-items:center;gap:6px;cursor:pointer;white-space:nowrap;transition:background .12s}.pd-btn-add-sm:hover{background:var(--pd-accent-hover)}.pd-fh-table-wrap{border:1px solid var(--pd-border);border-radius:var(--pd-radius-sm);overflow:hidden;margin-bottom:18px}.pd-fh-table{width:100%;border-collapse:collapse;font-size:13px}.pd-fh-table th{background:var(--pd-bg-muted);color:var(--pd-text-muted);font-weight:600;font-size:11px;letter-spacing:.3px;text-transform:uppercase;padding:10px 12px;text-align:left;border-bottom:1px solid var(--pd-border);white-space:nowrap}.pd-fh-table td{padding:10px 12px;border-bottom:1px solid var(--pd-border);color:var(--pd-text-secondary);vertical-align:middle}.pd-fh-table tr:last-child td{border-bottom:none}.pd-fh-table tbody tr:hover td{background:var(--pd-bg-muted)}.pd-fh-empty{text-align:center;padding:24px 16px;color:var(--pd-text-faint);font-size:13px}.pd-fh-alive{font-size:11px;font-weight:600;padding:2px 8px;border-radius:var(--pd-radius-full);background:var(--pd-success-soft);color:var(--pd-success)}.pd-fh-deceased{font-size:11px;font-weight:600;padding:2px 8px;border-radius:var(--pd-radius-full);background:var(--pd-bg-subtle);color:var(--pd-text-muted)}.pd-severity-badge{font-size:11px;font-weight:600;padding:2px 8px;border-radius:var(--pd-radius-full);text-transform:capitalize}.pd-severity-badge.mild{background:#dcfce7;color:#166534}.pd-severity-badge.moderate{background:#fef3c7;color:#92400e}.pd-severity-badge.severe{background:#fee2e2;color:#991b1b}.pd-fh-actions{display:flex;gap:4px}.pd-fh-actions button{width:28px;height:28px;border:none;background:transparent;color:var(--pd-text-faint);border-radius:6px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;font-size:12px}.pd-fh-actions button:hover{background:var(--pd-bg-subtle);color:var(--pd-text-secondary)}.pd-fh-actions button.pd-fh-del:hover{background:var(--pd-danger-soft);color:var(--pd-danger)}.pd-chip-group{display:flex;flex-wrap:wrap;gap:8px}.pd-chip{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 12px;border:1px solid var(--pd-border);border-radius:var(--pd-radius-full);background:var(--pd-bg-surface);font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:12.5px;font-weight:500;color:var(--pd-text-secondary);cursor:pointer;transition:background .12s,border-color .12s,color .12s;-webkit-user-select:none;user-select:none}.pd-chip input{display:none}.pd-chip:hover{background:var(--pd-bg-muted);border-color:var(--pd-border-strong)}.pd-chip.pd-chip-active{background:var(--pd-accent-soft);border-color:#0f3a6f40;color:var(--pd-accent)}.pd-chip.pd-chip-active svg{color:var(--pd-accent)}.pd-history-list{display:flex;flex-direction:column;gap:10px}.pd-history-item{display:grid;grid-template-columns:100px 1fr auto;gap:12px;align-items:start;padding:12px 14px;background:var(--pd-bg-muted);border:1px solid var(--pd-border);border-radius:var(--pd-radius-sm)}.pd-history-date{font-size:12px;font-weight:600;color:var(--pd-text-muted)}.pd-history-body strong{display:block;font-size:13.5px;color:var(--pd-text-primary);margin-bottom:2px}.pd-history-body span{font-size:12.5px;color:var(--pd-text-muted)}.pd-history-tag{font-size:11px;font-weight:600;padding:3px 10px;border-radius:var(--pd-radius-full);background:var(--pd-info-soft);color:var(--pd-info);white-space:nowrap}.pd-form-footer{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:14px 22px;border-top:1px solid var(--pd-border);background:var(--pd-bg-muted)}.pd-btn-secondary{height:38px;padding:0 18px;background:var(--pd-bg-surface);border:1px solid var(--pd-border);border-radius:var(--pd-radius-sm);font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-weight:500;font-size:13px;color:var(--pd-text-secondary);cursor:pointer;display:inline-flex;align-items:center;gap:8px;transition:background .12s,border-color .12s}.pd-btn-secondary:hover{background:var(--pd-bg-subtle);border-color:var(--pd-border-strong)}.pd-btn-primary{height:38px;padding:0 18px;background:var(--pd-accent);border:none;border-radius:var(--pd-radius-sm);font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-weight:600;font-size:13px;color:#fff;display:inline-flex;align-items:center;gap:8px;cursor:pointer;transition:background .15s,box-shadow .15s;box-shadow:0 1px 2px #0f3a6f33}.pd-btn-primary:hover{background:var(--pd-accent-hover);box-shadow:0 2px 6px #0f3a6f40}.pd-btn-primary:disabled{opacity:.6;cursor:not-allowed}.pd-btn-primary.pd-success{background:var(--pd-success);box-shadow:0 1px 2px #04785733}.pd-btn-primary.pd-success:hover{background:#036649}.pd-modal-overlay{display:none;position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a80;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);z-index:1000;justify-content:center;align-items:center;padding:16px}.pd-modal-overlay.pd-show{display:flex}.pd-modal-content{background:var(--pd-bg-surface);border-radius:16px;max-width:520px;width:100%;max-height:94vh;display:flex;flex-direction:column;box-shadow:0 24px 48px #0f172a2e;animation:pdModalIn .2s ease;overflow:hidden}@keyframes pdModalIn{0%{transform:translateY(12px) scale(.98);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}.pd-modal-header{display:flex;align-items:flex-start;justify-content:space-between;padding:16px 20px;background:#1a4a7a;flex-shrink:0}.pd-modal-header h3{font-weight:700;font-size:16px;color:#fff;display:flex;align-items:center;gap:10px;margin:0}.pd-modal-header h3 svg{width:28px;height:28px;border-radius:8px;background:#ffffff26;padding:6px}.pd-modal-subtitle{font-size:12px;color:#ffffffa6;margin:4px 0 0 38px}.pd-modal-close{width:32px;height:32px;border:none;background:#ffffff1a;border-radius:var(--pd-radius-sm);color:#fffc;font-size:14px;cursor:pointer;display:flex;align-items:center;justify-content:center}.pd-modal-close:hover{background:#fff3;color:#fff}.pd-modal-body{padding:18px 20px 8px;overflow-y:auto;flex:1}.pd-modal-body .pd-form-grid{grid-template-columns:1fr 1fr}.pd-modal-body .pd-form-grid .pd-span-2{grid-column:span 2}.pd-modal-footer{display:flex;justify-content:flex-end;gap:10px;padding:12px 20px;border-top:1px solid var(--pd-border);background:var(--pd-bg-muted);flex-shrink:0}.pd-toggle-row{display:flex;align-items:center;gap:10px;margin-bottom:12px}.pd-toggle-row label{font-size:13px;font-weight:600;color:var(--pd-text-secondary);margin:0}.pd-toggle{position:relative;width:42px;height:24px;flex-shrink:0}.pd-toggle input{opacity:0;width:0;height:0}.pd-toggle-slider{position:absolute;top:0;right:0;bottom:0;left:0;background:var(--pd-border-strong);border-radius:999px;cursor:pointer;transition:background .2s}.pd-toggle-slider:before{content:"";position:absolute;width:18px;height:18px;left:3px;top:3px;background:#fff;border-radius:50%;transition:transform .2s;box-shadow:0 1px 3px #00000026}.pd-toggle input:checked+.pd-toggle-slider{background:var(--pd-success)}.pd-toggle input:checked+.pd-toggle-slider:before{transform:translate(18px)}.pd-toast{position:fixed;top:24px;right:24px;z-index:1100;display:flex;align-items:flex-start;gap:12px;max-width:min(400px,calc(100vw - 48px));padding:14px 40px 16px 16px;border-left:4px solid;border-radius:8px;background:#fff;box-shadow:0 8px 24px #183e622e;font-size:.85rem;font-weight:600;animation:pdToastSlide .3s ease-out}.pd-toast-success{border-left-color:#047857;color:#065f46}.pd-toast-error{border-left-color:#b91c1c;color:#991b1b}.pd-toast-close{position:absolute;top:8px;right:8px;display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border:0;background:transparent;color:inherit;cursor:pointer;border-radius:4px}.pd-toast-close:hover{opacity:.7;background:#0000000d}.pd-toast-progress{position:absolute;right:0;bottom:0;left:0;height:3px;transform-origin:left;animation:pdToastCountdown 4s linear forwards;background:currentColor;opacity:.45;border-radius:0 0 8px 8px}@keyframes pdToastSlide{0%{opacity:0;transform:translate(40px)}to{opacity:1;transform:translate(0)}}@keyframes pdToastCountdown{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.pd-loading-state{display:flex;justify-content:center;align-items:center;min-height:400px;font-size:14px;color:var(--pd-text-muted)}.pd-spinning{animation:pdSpin 1s linear infinite}@keyframes pdSpin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.pd-form-group .ss-wrapper{width:100%}.pd-form-group .ss-trigger{height:38px;padding:0 12px;border:1px solid var(--pd-border);border-radius:var(--pd-radius-sm);font-size:13px;color:var(--pd-text-primary);background:var(--pd-bg-surface);display:flex;align-items:center;justify-content:space-between;cursor:pointer;transition:border-color .15s,box-shadow .15s}.pd-form-group .ss-trigger:focus,.pd-form-group .ss-trigger--open{outline:none;border-color:var(--pd-accent);box-shadow:0 0 0 3px #0f3a6f1f}.pd-form-group .ss-trigger-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pd-form-group .ss-trigger-placeholder{color:var(--pd-text-faint)}.pd-form-group .ss-dropdown{position:absolute;z-index:50;margin-top:4px;background:var(--pd-bg-surface);border:1px solid var(--pd-border);border-radius:var(--pd-radius-sm);box-shadow:var(--pd-shadow-md);max-height:200px;overflow-y:auto;width:100%}.pd-form-group .ss-wrapper{position:relative}.pd-form-group .ss-search-box{padding:8px;border-bottom:1px solid var(--pd-border);position:relative}.pd-form-group .ss-search-icon{position:absolute;left:16px;top:50%;transform:translateY(-50%);color:var(--pd-text-faint);font-size:12px}.pd-form-group .ss-search-input{width:100%;height:30px;padding:0 8px 0 24px;border:1px solid var(--pd-border);border-radius:6px;font-size:12px;color:var(--pd-text-primary);background:var(--pd-bg-muted)}.pd-form-group .ss-search-input:focus{outline:none;border-color:var(--pd-accent)}.pd-form-group .ss-list{list-style:none;margin:0;padding:4px}.pd-form-group .ss-option{padding:8px 12px;font-size:13px;color:var(--pd-text-primary);border-radius:6px;cursor:pointer;transition:background .1s}.pd-form-group .ss-option:hover{background:var(--pd-accent-soft)}.pd-form-group .ss-option--selected{background:var(--pd-accent-soft);color:var(--pd-accent);font-weight:600}.pd-form-group .ss-option-empty{color:var(--pd-text-faint);font-style:italic}.pd-form-group .ss-option-none{color:var(--pd-text-faint);text-align:center;padding:12px}.pd-form-group .ss-trigger-icons{display:flex;align-items:center;gap:4px;flex-shrink:0}.pd-form-group .ss-clear-icon{color:var(--pd-text-faint);cursor:pointer;font-size:12px}.pd-form-group .ss-clear-icon:hover{color:var(--pd-text-muted)}.pd-form-group .ss-chevron{color:var(--pd-text-faint);font-size:14px;transition:transform .2s}.pd-form-group .ss-chevron--up{transform:rotate(180deg)}@media(max-width:900px){.pd-form-grid{grid-template-columns:repeat(2,1fr)}.pd-form-grid .pd-span-2,.pd-form-grid .pd-span-3,.pd-form-grid .pd-span-4{grid-column:span 2}}@media(max-width:560px){.patient-details-container{padding:14px}.pd-form-grid{grid-template-columns:1fr}.pd-form-grid .pd-span-2,.pd-form-grid .pd-span-3,.pd-form-grid .pd-span-4{grid-column:span 1}.patient-details-header{flex-direction:column;align-items:flex-start}.patient-id-badge{align-self:stretch;text-align:center;overflow:hidden;text-overflow:ellipsis}.pd-history-item{grid-template-columns:1fr}.pd-patient-summary{flex-wrap:wrap}}.pd-allergy-overlay{z-index:1100}.pd-allergy-modal{background:#fff;border-radius:16px;width:100%;max-width:520px;display:flex;flex-direction:column;box-shadow:0 16px 40px #0f172a29;overflow:hidden;animation:pdAllergyIn .2s ease}@keyframes pdAllergyIn{0%{transform:translateY(12px) scale(.98);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}.pd-allergy-modal-header{display:flex;align-items:flex-start;justify-content:space-between;padding:18px 22px 14px;border-bottom:1px solid var(--pd-border)}.pd-allergy-modal-title{font-size:16px;font-weight:700;display:flex;align-items:center;gap:10px;margin:0;color:var(--pd-text)}.pd-allergy-icon{width:34px;height:34px;border-radius:10px;background:linear-gradient(135deg,#b91c1c,#dc2626);color:#fff;display:flex;align-items:center;justify-content:center;font-size:14px;flex-shrink:0}.pd-allergy-modal-sub{font-size:12.5px;color:var(--pd-text-muted);margin-top:4px;margin-left:44px}.pd-allergy-modal-close{width:32px;height:32px;border:none;background:transparent;border-radius:8px;color:var(--pd-text-muted);cursor:pointer;font-size:14px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.pd-allergy-modal-close:hover{background:#f1f5f9;color:var(--pd-text-sec)}.pd-allergy-modal-body{padding:18px 22px;display:flex;flex-direction:column;gap:14px}.pd-allergy-patient-chip{display:flex;align-items:center;gap:12px;padding:12px 14px;background:#e8eef6;border:1px solid rgba(15,58,111,.12);border-radius:8px}.pd-allergy-patient-avatar{width:40px;height:40px;border-radius:50%;background:linear-gradient(135deg,#0f3a6f,#1a4a8a);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:13px;flex-shrink:0}.pd-allergy-patient-name{font-size:14px;font-weight:600;color:var(--pd-text)}.pd-allergy-patient-meta{font-size:12px;color:var(--pd-text-muted);margin-top:2px}.pd-allergy-form-group{display:flex;flex-direction:column}.pd-allergy-form-group label{font-size:12px;font-weight:600;color:var(--pd-text-sec);margin-bottom:6px}.pd-allergy-form-group input,.pd-allergy-form-group select,.pd-allergy-form-group textarea{width:100%;height:40px;padding:0 12px;border:1px solid var(--pd-border);border-radius:8px;font-family:var(--pd-font);font-size:13.5px;color:var(--pd-text);background:#fff;transition:border-color .15s,box-shadow .15s}.pd-allergy-form-group select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;padding-right:32px;cursor:pointer}.pd-allergy-form-group textarea{height:auto;min-height:72px;padding:10px 12px;resize:vertical}.pd-allergy-form-group input:focus,.pd-allergy-form-group select:focus,.pd-allergy-form-group textarea:focus{outline:none;border-color:#0f3a6f;box-shadow:0 0 0 3px #0f3a6f1f}.pd-allergy-form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.pd-severity-btn-group{display:flex;gap:8px;flex-wrap:wrap}.pd-severity-toggle-btn{flex:1;min-width:90px;height:40px;border:1px solid var(--pd-border);border-radius:8px;background:#fff;font-family:var(--pd-font);font-size:12.5px;font-weight:600;color:var(--pd-text-sec);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:6px;transition:all .12s}.pd-severity-toggle-btn svg{font-size:11px}.pd-severity-toggle-btn:hover{border-color:#cbd5e1;background:#f8fafc}.pd-severity-toggle-btn.selected.mild{background:#ecfdf5;border-color:#04785759;color:#047857}.pd-severity-toggle-btn.selected.moderate{background:#fffbeb;border-color:#b4530959;color:#b45309}.pd-severity-toggle-btn.selected.severe{background:#fef2f2;border-color:#b91c1c59;color:#b91c1c}.pd-allergy-hint{font-size:12px;color:var(--pd-text-muted);display:flex;align-items:flex-start;gap:8px;padding:10px 12px;background:#eff6ff;border-radius:8px;border:1px solid rgba(29,78,216,.12);line-height:1.4}.pd-allergy-hint svg{color:#1d4ed8;margin-top:2px;flex-shrink:0}.pd-allergy-modal-footer{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:14px 22px;border-top:1px solid var(--pd-border);background:#f8fafc}@media(max-width:480px){.pd-allergy-form-row{grid-template-columns:1fr}.pd-severity-btn-group{flex-direction:column}}.date-mask-icon:hover{color:#0f3a6f;background:#0f3a6f14}.appt-page{display:flex;flex-direction:column;height:100%}.appt-body{display:grid;grid-template-columns:1fr 280px;flex:1;min-height:0;transition:grid-template-columns .25s ease}.appt-body.sidebar-collapsed{grid-template-columns:1fr 0}.appt-body.sidebar-collapsed .appt-sidebar{opacity:0;padding:0;border-left:none;pointer-events:none}.appt-main{background:var(--bg-page, #f1f5f9);min-width:0}.appt-sidebar{background:var(--bg-surface, #fff);border-left:1px solid var(--border, #e2e8f0);padding:16px 14px 24px;overflow-y:auto;overflow-x:hidden;transition:opacity .2s,padding .25s,border .25s}.appt-toolbar{display:flex;flex-wrap:nowrap;gap:10px;align-items:center;margin-bottom:14px;padding:10px 12px;background:#1a4a7a;border:1px solid #143a61;border-radius:8px;box-shadow:0 1px 2px #0f172a0d}.appt-toolbar .appt-heading{font-size:15px;font-weight:700;color:#fff;letter-spacing:-.2px;margin:0 4px 0 0;white-space:nowrap;flex-shrink:0}.appt-toolbar .appt-search input{flex:1;min-width:140px;height:36px;padding:0 14px 0 36px;border:1px solid rgba(255,255,255,.22);border-radius:8px;font-family:var(--font);font-size:13px;background:#ffffff1f;color:#fff;transition:background .15s,border-color .15s,box-shadow .15s}.appt-toolbar .appt-search input::placeholder{color:#ffffff80}.appt-toolbar .appt-search input:focus{outline:none;background:#ffffff2e;border-color:#ffffff73;box-shadow:0 0 0 3px #ffffff1f}.appt-toolbar .appt-search{position:relative;flex:1;min-width:140px}.appt-toolbar .appt-search svg{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:#ffffff8c;font-size:13px;pointer-events:none}.appt-toolbar select{height:36px;padding:0 28px 0 12px;border:1px solid rgba(255,255,255,.22);border-radius:8px;font-family:var(--font);font-size:13px;font-weight:500;background:#ffffff1f;color:#fff;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center}.appt-toolbar select option{color:var(--text-primary, #0f172a);background:#fff}.appt-toolbar select:focus{outline:none;border-color:#ffffff73;box-shadow:0 0 0 3px #ffffff1f}.appt-tbar-btn{height:36px;padding:0 12px;border:1px solid rgba(255,255,255,.28);border-radius:8px;background:#ffffff1f;color:#fff;font-family:var(--font);font-size:12.5px;font-weight:600;cursor:pointer;display:inline-flex;align-items:center;gap:7px;white-space:nowrap;transition:background .12s,border-color .12s;flex-shrink:0}.appt-tbar-btn:hover{background:#ffffff38;border-color:#fff6}.appt-tbar-btn.icon-only{width:36px;padding:0;justify-content:center}.appt-tbar-btn.active{background:#ffffff47;border-color:#ffffff80}.appt-toolbar-actions{display:flex;align-items:center;gap:8px;margin-left:auto;flex-shrink:0}.appt-view-toggle{display:flex;border:1px solid rgba(255,255,255,.28);border-radius:6px;overflow:hidden;background:#ffffff14;flex-shrink:0}.appt-view-toggle button{width:32px;height:32px;border:none;background:transparent;color:#ffffffbf;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:12px;transition:background .12s,color .12s}.appt-view-toggle button+button{border-left:1px solid rgba(255,255,255,.2)}.appt-view-toggle button:hover{background:#ffffff26;color:#fff}.appt-view-toggle button.active{background:#ffffff47;color:#fff}.appt-sidebar-toggle{width:32px;height:32px;border:1px solid rgba(255,255,255,.28);border-radius:6px;background:#ffffff1f;color:#ffffffd9;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:12px;flex-shrink:0}.appt-sidebar-toggle:hover{background:#ffffff38;color:#fff;border-color:#fff6}.appt-filter-panel{display:none;background:var(--bg-surface, #fff);border:1px solid var(--border, #e2e8f0);border-radius:8px;box-shadow:0 1px 2px #0f172a0d;padding:14px 16px;margin-bottom:14px}.appt-filter-panel.open{display:block}.appt-filter-panel-title{font-size:12px;font-weight:600;color:var(--text-muted, #64748b);text-transform:uppercase;letter-spacing:.4px;margin-bottom:12px;display:flex;align-items:center;gap:8px}.appt-filter-panel-title svg{color:var(--accent, #0F3A6F)}.appt-filter-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;align-items:end}.appt-filter-field label{display:block;font-size:11.5px;font-weight:600;color:var(--text-secondary, #334155);margin-bottom:5px}.appt-filter-field input,.appt-filter-field select{width:100%;height:36px;padding:0 10px;border:1px solid var(--border, #e2e8f0);border-radius:8px;font-family:var(--font);font-size:13px;color:var(--text-primary, #0f172a);background:var(--bg-surface, #fff)}.appt-filter-field select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;padding-right:28px;cursor:pointer}.appt-filter-field input:focus,.appt-filter-field select:focus{outline:none;border-color:var(--accent, #0F3A6F);box-shadow:0 0 0 3px #0f3a6f1f}.appt-date-range{display:flex;align-items:center;gap:6px;height:36px}.appt-date-range input[type=date]{flex:1;min-width:130px;height:36px;padding:0 8px;border:1px solid var(--border, #e2e8f0);border-radius:8px;font-family:var(--font);font-size:13px;color:var(--text-primary, #0f172a);background:var(--bg-surface, #fff)}.appt-date-range input[type=date]:focus{outline:none;border-color:var(--accent, #0F3A6F);box-shadow:0 0 0 3px #0f3a6f1f}.appt-date-range-sep{color:var(--text-muted, #64748b);font-weight:600;flex-shrink:0;font-size:13px}.appt-filter-actions{display:flex;gap:8px;align-items:center;margin-top:12px;padding-top:12px;border-top:1px solid var(--border, #e2e8f0);justify-content:flex-end}.appt-btn-primary{height:40px;padding:0 18px;background:var(--accent, #0F3A6F);border:none;border-radius:8px;font-family:var(--font);font-weight:600;font-size:13px;color:#fff;display:inline-flex;align-items:center;gap:8px;cursor:pointer;white-space:nowrap;box-shadow:0 1px 2px #0f3a6f33;transition:background .15s,box-shadow .15s}.appt-btn-primary:hover{background:var(--accent-hover, #0a2d57);box-shadow:0 2px 6px #0f3a6f40}.appt-btn-secondary{height:40px;padding:0 16px;background:var(--bg-surface, #fff);border:1px solid var(--border, #e2e8f0);border-radius:8px;font-family:var(--font);font-weight:500;font-size:13px;color:var(--text-secondary, #334155);cursor:pointer;transition:background .12s,border-color .12s}.appt-btn-secondary:hover{background:var(--bg-subtle, #f1f5f9);border-color:var(--border-strong, #cbd5e1)}.appt-card{background:var(--bg-surface, #fff);border:1px solid var(--border, #e2e8f0);border-radius:12px;box-shadow:0 1px 2px #0f172a0d;overflow:visible}.appt-card.tiles-mode .appt-table-wrap,.appt-card.list-mode .appt-tiles-grid{display:none}.appt-table-wrap{overflow-x:visible}.appt-table{width:100%;border-collapse:collapse;font-size:13px;min-width:900px}.appt-table th{background:var(--bg-muted, #f8fafc);color:var(--text-muted, #64748b);font-weight:600;font-size:11px;letter-spacing:.4px;text-transform:uppercase;padding:12px 16px;text-align:left;border-bottom:1px solid var(--border, #e2e8f0);white-space:nowrap}.appt-table td{padding:6px 13px;border-bottom:1px solid var(--border, #e2e8f0);color:var(--text-secondary, #334155);vertical-align:middle}.appt-table tr:last-child td{border-bottom:none}.appt-table tbody tr{transition:background .12s;cursor:pointer}.appt-table tbody tr:hover td{background:#f8fafc}.appt-patient-cell{display:flex;align-items:center;gap:12px}.appt-avatar{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;flex-shrink:0;background:var(--accent-soft, #e8eef6);color:var(--accent, #0F3A6F);font-weight:600}.appt-patient-name{font-weight:600;color:var(--text-primary, #0f172a);font-size:13.5px}.appt-patient-id{font-size:11.5px;color:var(--text-faint, #94a3b8)}.appt-status-badge{font-size:11px;font-weight:600;padding:3px 10px;border-radius:9999px;display:inline-flex;align-items:center;gap:5px}.appt-status-badge:before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}.appt-status-badge.s-scheduled,.appt-status-badge.s-confirmed{background:#eff6ff;color:#1d4ed8}.appt-status-badge.s-completed{background:#ecfdf5;color:#047857}.appt-status-badge.s-cancelled{background:#fef2f2;color:#b91c1c}.appt-status-badge.s-noshow,.appt-status-badge.s-pending{background:#fffbeb;color:#b45309}.appt-type-tag{font-size:11px;font-weight:600;padding:2px 8px;border-radius:6px;background:var(--accent-soft, #e8eef6);color:var(--accent, #0F3A6F)}.appt-tiles-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px;padding:16px;background:var(--bg-page, #f1f5f9)}.appt-tile{background:var(--bg-surface, #fff);border:1px solid var(--border, #e2e8f0);border-radius:12px;padding:16px;box-shadow:0 1px 2px #0f172a0d;display:flex;flex-direction:column;gap:12px;transition:border-color .15s,box-shadow .15s}.appt-tile:hover{border-color:var(--border-strong, #cbd5e1);box-shadow:0 4px 12px #0f172a12}.appt-tile-top{display:flex;align-items:flex-start;gap:12px}.appt-tile-identity{flex:1;min-width:0}.appt-tile-identity .appt-patient-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.appt-tile-meta{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px;font-size:12px;color:var(--text-muted, #64748b)}.appt-tile-meta .label{display:block;font-size:10.5px;font-weight:600;text-transform:uppercase;letter-spacing:.3px;color:var(--text-faint, #94a3b8);margin-bottom:1px}.appt-tile-meta .val{color:var(--text-secondary, #334155);font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.appt-tile-footer{display:flex;align-items:center;justify-content:space-between;padding-top:10px;border-top:1px solid var(--border, #e2e8f0)}.appt-actions-cell{display:flex;align-items:center;justify-content:center;gap:4px;position:relative}.appt-ctx-wrap{position:relative}.appt-ctx-btn{width:32px;height:32px;border:none;background:transparent;color:var(--text-faint, #94a3b8);border-radius:8px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;font-size:13px;transition:background .12s,color .12s}.appt-ctx-btn:hover{background:var(--bg-subtle, #f1f5f9);color:var(--text-secondary, #334155)}.appt-ctx-menu{display:none;position:absolute;right:0;top:calc(100% + 4px);min-width:180px;background:var(--bg-surface, #fff);border:1px solid var(--border, #e2e8f0);border-radius:8px;box-shadow:0 4px 12px #0f172a12;z-index:100;padding:6px}.appt-ctx-menu.show{display:block}.appt-ctx-menu button{width:100%;display:flex;align-items:center;gap:10px;padding:9px 12px;border:none;background:transparent;font-family:var(--font);font-size:13px;font-weight:500;color:var(--text-secondary, #334155);cursor:pointer;border-radius:6px;text-align:left;transition:background .12s,color .12s}.appt-ctx-menu button svg{width:16px;height:16px;color:var(--text-muted, #64748b)}.appt-ctx-menu button:hover{background:var(--bg-muted, #f8fafc);color:var(--text-primary, #0f172a)}.appt-ctx-menu button.danger{color:#b91c1c}.appt-ctx-menu button.danger svg{color:#b91c1c}.appt-ctx-menu button.danger:hover{background:#fef2f2}.appt-ctx-divider{height:1px;background:var(--border, #e2e8f0);margin:4px 0}.appt-pagination{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;padding:12px 16px;border-top:1px solid var(--border, #e2e8f0);background:var(--bg-muted, #f8fafc)}.appt-pagination .appt-info{font-size:13px;color:var(--text-muted, #64748b);font-weight:500}.appt-pagination-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.appt-page-size{display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--text-muted, #64748b);font-weight:500}.appt-page-size select{height:32px;padding:0 28px 0 10px;border:1px solid var(--border, #e2e8f0);border-radius:8px;font-family:var(--font);font-size:13px;font-weight:500;background:var(--bg-surface, #fff);color:var(--text-secondary, #334155);cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 8px center}.appt-pages{display:flex;gap:4px;align-items:center}.appt-pages button{min-width:32px;height:32px;padding:0 8px;border:1px solid transparent;border-radius:8px;background:transparent;font-family:var(--font);font-size:13px;font-weight:500;color:var(--text-secondary, #334155);cursor:pointer;transition:background .12s,border-color .12s,color .12s}.appt-pages button:hover:not(:disabled){background:var(--bg-surface, #fff);border-color:var(--border, #e2e8f0)}.appt-pages button.active{background:var(--accent, #0F3A6F);color:#fff;border-color:var(--accent, #0F3A6F)}.appt-pages button:disabled{opacity:.4;cursor:not-allowed}.appt-sidebar-card{background:var(--bg-surface, #fff);border:1px solid var(--border, #e2e8f0);border-radius:12px;padding:16px;margin-bottom:14px;box-shadow:0 1px 2px #0f172a0d}.appt-sidebar-card:last-child{margin-bottom:0}.appt-sidebar-card-title{font-weight:600;font-size:11px;color:var(--text-muted, #64748b);letter-spacing:.5px;text-transform:uppercase;margin-bottom:12px;display:flex;align-items:center;gap:7px}.appt-sidebar-card-title svg{color:var(--accent, #0F3A6F);font-size:12px}.appt-stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.appt-stat-item{background:var(--bg-muted, #f8fafc);border-radius:8px;padding:12px 10px;text-align:center}.appt-stat-item .number{font-weight:700;font-size:22px;color:var(--text-primary, #0f172a);line-height:1.15;letter-spacing:-.5px}.appt-stat-item .number.green{color:#047857}.appt-stat-item .number.blue{color:#1d4ed8}.appt-stat-item .number.orange{color:#b45309}.appt-stat-item .label{font-size:11px;color:var(--text-muted, #64748b);font-weight:500;margin-top:2px}.appt-recent-list{list-style:none}.appt-recent-list li{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--border, #e2e8f0)}.appt-recent-list li:last-child{border-bottom:none;padding-bottom:0}.appt-recent-list li:first-child{padding-top:0}.appt-recent-list .info{flex:1;min-width:0}.appt-recent-list .info .n{font-size:13px;font-weight:600;color:var(--text-primary, #0f172a);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.appt-recent-list .info .m{font-size:11.5px;color:var(--text-faint, #94a3b8)}.appt-quick-actions{display:flex;flex-direction:column;gap:6px}.appt-q-btn{height:38px;background:transparent;border:1px solid var(--border, #e2e8f0);border-radius:8px;font-family:var(--font);font-weight:500;font-size:13px;color:var(--text-secondary, #334155);cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;transition:background .12s,border-color .12s}.appt-q-btn:hover{background:var(--bg-muted, #f8fafc);border-color:var(--border-strong, #cbd5e1)}.appt-q-btn svg{font-size:12px;color:var(--text-muted, #64748b)}.appt-q-btn.primary{background:var(--accent, #0F3A6F);border-color:var(--accent, #0F3A6F);color:#fff}.appt-q-btn.primary:hover{background:var(--accent-hover, #0a2d57);border-color:var(--accent-hover, #0a2d57)}.appt-q-btn.primary svg{color:#fff}.appt-modal-overlay{display:none;position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a80;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);z-index:1000;justify-content:center;align-items:center;padding:16px}.appt-modal-overlay.show{display:flex}.appt-modal{background:var(--bg-surface, #fff);border-radius:16px;width:100%;display:flex;flex-direction:column;box-shadow:0 16px 40px #0f172a29;animation:appt-modal-in .2s ease;overflow:hidden}.appt-modal-wide{max-width:1280px}@keyframes appt-modal-in{0%{transform:translateY(12px) scale(.98);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}.appt-modal-header{display:flex;align-items:center;justify-content:space-between;padding:14px 22px;border-bottom:1px solid var(--border, #e2e8f0);flex-shrink:0}.appt-modal-header h2{font-size:16px;font-weight:700;display:flex;align-items:center;gap:10px;margin:0}.appt-modal-header-icon{width:32px;height:32px;border-radius:9px;background:linear-gradient(135deg,#0f3a6f,#1a4a8a);color:#fff;display:flex;align-items:center;justify-content:center;font-size:13px}.appt-modal-close{width:32px;height:32px;border:none;background:transparent;border-radius:8px;color:var(--text-muted, #64748b);font-size:14px;cursor:pointer;display:flex;align-items:center;justify-content:center}.appt-modal-close:hover{background:var(--bg-subtle, #f1f5f9);color:var(--text-secondary, #334155)}.appt-modal-body-grid{display:grid;grid-template-columns:480px 1fr;min-height:0}.appt-form-col{padding:18px 20px;border-right:1px solid var(--border, #e2e8f0);display:flex;flex-direction:column;gap:14px}.appt-form-col .appt-form-group{margin-bottom:0;display:flex;align-items:center;gap:10px}.appt-form-col .appt-form-group label{display:block;font-size:12px;font-weight:600;color:var(--text-secondary, #334155);margin-bottom:0;min-width:120px;flex-shrink:0}.appt-form-col .appt-form-group select,.appt-form-col .appt-form-group textarea,.appt-form-col .appt-form-group input{flex:1;min-width:0}.appt-form-col .appt-form-group select,.appt-form-col .appt-form-group textarea{width:100%;height:38px;padding:0 12px;border:1px solid var(--border, #e2e8f0);border-radius:8px;font-family:var(--font);font-size:13.5px;color:var(--text-primary, #0f172a);background:var(--bg-surface, #fff)}.appt-form-col .appt-form-group textarea{height:72px;padding:10px 12px;resize:none}.appt-form-col .appt-form-group select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;padding-right:32px;cursor:pointer}.appt-form-col .appt-form-group select:focus,.appt-form-col .appt-form-group textarea:focus{outline:none;border-color:var(--accent, #0F3A6F);box-shadow:0 0 0 3px #0f3a6f1f}.appt-req{color:#b91c1c}.appt-form-row-2{display:grid;grid-template-columns:2fr 1fr;gap:12px}.appt-type-dropdown{position:relative;flex:1;min-width:0}.appt-type-dropdown-btn{display:flex;align-items:center;justify-content:space-between;width:100%;height:38px;padding:0 12px;border:1px solid var(--border, #e2e8f0);border-radius:8px;font-family:var(--font);font-size:13.5px;color:var(--text-primary, #0f172a);background:var(--bg-surface, #fff);cursor:pointer;text-align:left}.appt-type-dropdown-btn:disabled{opacity:.6;cursor:not-allowed;background:var(--bg-muted, #f8fafc)}.appt-type-chevron{font-size:10px;color:var(--text-muted, #64748b);margin-left:8px;flex-shrink:0}.appt-type-dropdown-list{position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:100;background:#fff;border:1px solid var(--border, #e2e8f0);border-radius:10px;box-shadow:0 8px 24px #0f172a1f;overflow:hidden;max-height:240px;overflow-y:auto}.appt-type-dropdown-header{display:grid;grid-template-columns:1fr auto;gap:12px;padding:8px 14px;background:var(--bg-muted, #f8fafc);border-bottom:1px solid var(--border, #e2e8f0);font-size:11px;font-weight:700;color:var(--text-muted, #64748b);text-transform:uppercase;letter-spacing:.5px}.appt-type-dropdown-item{display:grid;grid-template-columns:1fr auto;gap:12px;padding:9px 14px;cursor:pointer;font-size:13px;color:var(--text-primary, #0f172a);border-bottom:1px solid #f1f5f9}.appt-type-dropdown-item:last-child{border-bottom:none}.appt-type-dropdown-item:hover{background:#eef4fb}.appt-type-dropdown-item.selected{background:#e0ecf8;font-weight:600}.appt-type-dropdown-item span:last-child{color:var(--text-muted, #64748b);font-weight:500;white-space:nowrap}.appt-form-col .appt-form-group input[readonly]{background:var(--bg-muted, #f8fafc);color:var(--text-secondary, #334155);cursor:default}.appt-form-col .appt-form-group input[type=number],.appt-form-col .appt-form-group input[type=text]{height:38px;padding:0 12px;border:1px solid var(--border, #e2e8f0);border-radius:8px;font-family:var(--font);font-size:13.5px;color:var(--text-primary, #0f172a);background:var(--bg-surface, #fff)}.appt-patient-chip{display:flex;align-items:center;gap:12px;padding:12px 14px;background:#e8eef6;border:1px solid rgba(15,58,111,.12);border-radius:8px}.appt-chip-avatar{width:40px;height:40px;border-radius:50%;background:linear-gradient(135deg,#0f3a6f,#1a4a8a);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:13px;flex-shrink:0}.appt-chip-name{font-size:14px;font-weight:600;color:var(--text-primary, #0f172a)}.appt-chip-meta{font-size:12px;color:var(--text-muted, #64748b);margin-top:2px}.appt-modal.appt-vitals-modal{max-width:560px}.appt-vitals-body{padding:18px 22px;display:flex;flex-direction:column;gap:16px}.appt-vitals-patient{display:flex;align-items:center;gap:12px;padding:12px 14px;background:var(--accent-soft, #e8eef6);border:1px solid rgba(15,58,111,.12);border-radius:8px}.appt-vitals-patient .appt-avatar{width:40px;height:40px;font-size:13px}.appt-vitals-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.appt-vitals-grid .appt-form-group{display:flex;flex-direction:column;gap:6px;min-width:0}.appt-vitals-grid .appt-form-group label{font-size:12px;font-weight:600;color:var(--text-secondary, #334155)}.appt-vital-input{display:flex;align-items:center;min-width:0;height:38px;border:1px solid var(--border, #e2e8f0);border-radius:8px;background:var(--bg-surface, #fff);overflow:hidden}.appt-vital-input input{flex:1;min-width:0;height:100%;border:none;padding:0 12px;font-family:var(--font);font-size:13.5px;color:var(--text-primary, #0f172a);background:transparent}.appt-vital-input input:focus{outline:none}.appt-vital-input:focus-within{border-color:var(--accent, #0F3A6F);box-shadow:0 0 0 3px #0f3a6f1f}.appt-vital-unit{flex-shrink:0;padding:0 12px;align-self:stretch;display:flex;align-items:center;font-size:12px;font-weight:600;color:var(--text-muted, #64748b);background:var(--bg-muted, #f8fafc);border-left:1px solid var(--border, #e2e8f0)}@media(max-width:520px){.appt-vitals-grid{grid-template-columns:1fr}}.appt-slots-col{display:flex;flex-direction:column;background:var(--bg-muted, #f8fafc);min-width:0}.appt-slots-top{padding:14px 18px 12px;border-bottom:1px solid var(--border, #e2e8f0)}.appt-slots-top-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.appt-slots-top-row h3{font-size:13px;font-weight:700;color:var(--text-primary, #0f172a);display:flex;align-items:center;gap:6px;margin:0}.appt-slots-top-row h3 svg{color:var(--accent, #0F3A6F);font-size:12px}.appt-week-nav{display:flex;align-items:center;gap:6px}.appt-week-label{font-size:12px;font-weight:600;color:var(--text-secondary, #334155);min-width:120px;text-align:center}.appt-nav-btn{width:30px;height:30px;border:1px solid var(--border, #e2e8f0);border-radius:6px;background:var(--bg-surface, #fff);color:var(--text-secondary, #334155);cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:12px}.appt-nav-btn:hover:not(:disabled){background:var(--bg-subtle, #f1f5f9);border-color:var(--border-strong, #cbd5e1)}.appt-nav-btn:disabled{opacity:.35;cursor:not-allowed}.appt-date-strip{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}.appt-day-btn{padding:8px 2px 7px;border:1px solid var(--border, #e2e8f0);border-radius:8px;background:var(--bg-surface, #fff);cursor:pointer;text-align:center;font-family:var(--font);transition:border-color .12s,background .12s}.appt-day-btn:hover:not(:disabled):not(.selected){border-color:var(--border-strong, #cbd5e1);background:var(--bg-subtle, #f1f5f9)}.appt-day-btn.selected{border-color:var(--accent, #0F3A6F);background:var(--accent, #0F3A6F)}.appt-day-btn:disabled{opacity:.4;cursor:not-allowed;background:var(--bg-subtle, #f1f5f9)}.appt-dow{font-size:10px;font-weight:600;text-transform:uppercase;color:var(--text-muted, #64748b)}.appt-day-btn.selected .appt-dow{color:#ffffffbf}.appt-dom{font-size:15px;font-weight:700;color:var(--text-primary, #0f172a);line-height:1.25}.appt-day-btn.selected .appt-dom{color:#fff}.appt-day-tag{font-size:9.5px;font-weight:600;margin-top:2px;color:#047857}.appt-day-btn.selected .appt-day-tag{color:#ffffffd9}.appt-slots-body{padding:14px 18px 12px;flex:1;min-height:0;max-height:280px;overflow-y:auto}.appt-slots-body::-webkit-scrollbar{width:6px}.appt-slots-body::-webkit-scrollbar-thumb{background:var(--border-strong, #cbd5e1);border-radius:4px}.appt-period{margin-bottom:12px}.appt-period:last-child{margin-bottom:0}.appt-period-name{font-size:11.5px;font-weight:600;color:var(--text-muted, #64748b);margin-bottom:7px;display:flex;align-items:center;gap:5px}.appt-slot-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:6px}.appt-slot-btn{height:34px;border:1px solid var(--border, #e2e8f0);border-radius:6px;background:var(--bg-surface, #fff);font-family:var(--font);font-size:12px;font-weight:500;color:var(--text-secondary, #334155);cursor:pointer;transition:all .12s}.appt-slot-btn:hover:not(:disabled):not(.selected){border-color:var(--accent, #0F3A6F);color:var(--accent, #0F3A6F);background:#e8eef6}.appt-slot-btn.selected{background:var(--accent, #0F3A6F);border-color:var(--accent, #0F3A6F);color:#fff;font-weight:600}.appt-slot-btn:disabled{background:transparent;color:var(--text-faint, #94a3b8);border-color:transparent;cursor:not-allowed;text-decoration:line-through;opacity:.5}.appt-slot-btn.booked:disabled{background:#fef2f2;border-color:#fecaca;color:#dc2626;text-decoration:none;opacity:.7}.appt-empty-msg{text-align:center;padding:28px 12px;font-size:13px;color:var(--text-muted, #64748b)}.appt-slots-summary{padding:10px 18px;border-top:1px solid var(--border, #e2e8f0);background:var(--bg-surface, #fff);font-size:13px;color:var(--text-muted, #64748b);min-height:44px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.appt-pill{display:inline-flex;align-items:center;gap:5px;background:#e8eef6;color:var(--accent, #0F3A6F);font-weight:600;font-size:12px;padding:4px 10px;border-radius:9999px}.appt-pill-duration{background:#dcfce7;color:#166534}.appt-modal-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 22px;border-top:1px solid var(--border, #e2e8f0);background:var(--bg-muted, #f8fafc);flex-shrink:0}.appt-footer-hint{font-size:12px;color:var(--text-muted, #64748b)}.appt-footer-actions{display:flex;gap:8px}.appt-footer-actions .appt-btn-secondary,.appt-footer-actions .appt-btn-primary{height:38px}@media(max-width:1000px){.appt-body{grid-template-columns:1fr}.appt-sidebar{border-left:none;border-top:1px solid var(--border, #e2e8f0)}.appt-filter-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:800px){.appt-modal-body-grid{grid-template-columns:1fr}.appt-form-col{border-right:none;border-bottom:1px solid var(--border, #e2e8f0)}.appt-slot-grid{grid-template-columns:repeat(4,1fr)}}@media(max-width:640px){.appt-main{padding:14px}.appt-toolbar{flex-direction:column;align-items:stretch}.appt-form-row,.appt-form-row-3,.appt-filter-grid{grid-template-columns:1fr}}.doc-page{max-width:1440px;margin:0 auto}.doc-page-body{display:grid;grid-template-columns:1fr 280px;gap:14px;transition:grid-template-columns .25s ease}.doc-page-body.sidebar-collapsed{grid-template-columns:1fr 0;gap:0}.doc-main{min-width:0}.doc-toolbar{display:flex;flex-wrap:nowrap;gap:10px;align-items:center;margin-bottom:14px;padding:10px 12px;background:#1a4a7a;border:1px solid #143a61;border-radius:8px;box-shadow:0 1px 2px #0f172a0d}.doc-toolbar .doc-page-heading{font-size:15px;font-weight:700;color:#fff;letter-spacing:-.2px;margin:0 4px 0 0;white-space:nowrap;flex-shrink:0}.doc-search{flex:1;min-width:140px;position:relative}.doc-search i{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:#ffffff8c;font-size:13px}.doc-search input{width:100%;height:36px;padding:0 14px 0 36px;border:1px solid rgba(255,255,255,.22);border-radius:8px;font-family:var(--font);font-size:13px;background:#ffffff1f;color:#fff;transition:border-color .15s,box-shadow .15s,background .15s}.doc-search input::placeholder{color:#ffffff80}.doc-search input:focus{outline:none;background:#ffffff2e;border-color:#ffffff73;box-shadow:0 0 0 3px #ffffff1f}.doc-filter-group{display:flex;gap:8px;align-items:center;flex-shrink:0}.doc-filter-group select{height:36px;padding:0 28px 0 12px;border:1px solid rgba(255,255,255,.22);border-radius:8px;font-family:var(--font);font-size:13px;font-weight:500;background-color:#ffffff1f;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E") no-repeat right 10px center;color:#fff;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;transition:border-color .15s,box-shadow .15s}.doc-filter-group select:focus{outline:none;border-color:#ffffff73;box-shadow:0 0 0 3px #ffffff1f}.doc-filter-group select option{color:#0f172a;background:#fff}.doc-toolbar-btn{height:36px;width:36px;padding:0;border:1px solid rgba(255,255,255,.28);border-radius:8px;background:#ffffff1f;color:#fff;font-size:12.5px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;transition:background .12s,border-color .12s}.doc-toolbar-btn:hover{background:#ffffff38;border-color:#fff6}.doc-toolbar-actions{display:flex;align-items:center;gap:8px;margin-left:auto;flex-shrink:0}.doc-sidebar-toggle{background:#ffffff1f;border:1px solid rgba(255,255,255,.28);color:#ffffffd9;width:32px;height:32px;border-radius:6px;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:12px;flex-shrink:0;transition:background .12s,color .12s,border-color .12s}.doc-sidebar-toggle:hover{background:#ffffff38;color:#fff;border-color:#fff6}.doc-list-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 1px 2px #0f172a0d;overflow:hidden}.doc-staff-list{display:flex;flex-direction:column}.doc-staff-row{display:grid;grid-template-columns:minmax(200px,1.2fr) minmax(260px,1.5fr) minmax(220px,1.3fr) auto;gap:16px 20px;align-items:center;padding:16px 20px;border-bottom:1px solid #e2e8f0;background:#fff;transition:background .12s}.doc-staff-row:last-child{border-bottom:none}.doc-staff-row:hover{background:#f8fafc}.doc-staff-identity{display:flex;align-items:center;gap:14px;min-width:0}.doc-staff-avatar{width:48px;height:48px;border-radius:50%;background:linear-gradient(135deg,#0f3a6f,#1a4a8a);color:#fff;display:flex;align-items:center;justify-content:center;font-size:18px;flex-shrink:0;border:4px solid transparent;cursor:pointer;padding:0;box-shadow:0 0 0 3px transparent;transition:transform .12s}.doc-staff-avatar:hover{transform:scale(1.05)}.doc-staff-avatar.status-active{border-color:#02ff2c;box-shadow:0 0 0 3px #ecfdf5}.doc-staff-avatar.status-inactive{border-color:#94a3b8;box-shadow:0 0 0 3px #f1f5f9}.doc-staff-info{min-width:0}.doc-staff-name{font-weight:600;font-size:14.5px;color:#0f172a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.doc-staff-meta{display:flex;align-items:center;gap:8px;margin-top:3px;flex-wrap:wrap}.doc-role-badge{font-size:11px;font-weight:600;padding:2px 9px;border-radius:9999px;display:inline-flex;align-items:center;gap:4px;line-height:1.4}.doc-role-badge i{font-size:9px;opacity:.85}.doc-role-badge.doctor{background:#eff6ff;color:#1d4ed8}.doc-role-badge.administrator,.doc-role-badge.admin{background:#f5f3ff;color:#6d28d9}.doc-role-badge.receptionist,.doc-role-badge.reception{background:#fff7ed;color:#c2410c}.doc-role-badge.nurse{background:#ecfdf5;color:#047857}.doc-staff-id{font-size:11.5px;color:#94a3b8}.doc-avail-block{min-width:0}.doc-days-row{display:flex;align-items:center;gap:6px;flex-wrap:nowrap}.doc-day-chip{width:30px;height:30px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:600;letter-spacing:-.2px;border:1.5px solid #e2e8f0;background:#f8fafc;color:#94a3b8;transition:all .12s}.doc-day-chip.on{background:#2563eb;border-color:#2563eb;color:#fff;box-shadow:0 1px 3px #2563eb59;cursor:pointer}.doc-day-chip.on.selected{background:#0f3a6f;border-color:#0f3a6f;box-shadow:0 0 0 3px #0f3a6f2e}.doc-sched-pills{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.doc-sched-pill{font-size:11.5px;font-weight:600;color:#0f3a6f;background:#e8eef6;border:1px solid #cbd5e1;border-radius:9999px;padding:3px 10px;white-space:nowrap}.doc-sched-empty{font-size:12px;color:#94a3b8}.doc-staff-contact{display:flex;flex-direction:column;gap:4px;min-width:0}.doc-contact-line{display:flex;align-items:center;gap:8px;font-size:13px;color:#334155;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.doc-contact-line i{width:14px;text-align:center;color:#94a3b8;font-size:12px;flex-shrink:0}.doc-contact-line .org{color:#64748b;font-size:12.5px}.doc-row-actions{display:flex;align-items:center;gap:4px}.doc-action-btn{width:34px;height:34px;border:1px solid #e2e8f0;background:#fff;color:#64748b;border-radius:50%;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;font-size:13px;transition:background .12s,color .12s,border-color .12s}.doc-action-btn:hover{background:#f1f5f9;color:#334155;border-color:#cbd5e1}.doc-action-btn.edit:hover{background:#e8eef6;color:#0f3a6f;border-color:#bfdbfe}.doc-action-btn.schedule:hover{background:#eff6ff;color:#1d4ed8;border-color:#bfdbfe}.doc-action-btn.message:hover{background:#ecfdf5;color:#047857;border-color:#a7f3d0}.doc-pagination{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;padding:12px 16px;border-top:1px solid #e2e8f0;background:#f8fafc}.doc-pagination .doc-pagination-info{font-size:13px;color:#64748b;font-weight:500}.doc-pagination-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.doc-page-size{display:flex;align-items:center;gap:8px;font-size:12.5px;color:#64748b;font-weight:500}.doc-page-size select{height:32px;padding:0 28px 0 10px;border:1px solid #e2e8f0;border-radius:8px;font-family:var(--font);font-size:13px;font-weight:500;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E") no-repeat right 8px center;color:#334155;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}.doc-page-size select:focus{outline:none;border-color:#0f3a6f}.doc-pages{display:flex;gap:4px;align-items:center}.doc-pages button{min-width:32px;height:32px;padding:0 8px;border:1px solid transparent;border-radius:8px;background:transparent;font-family:var(--font);font-size:13px;font-weight:500;color:#334155;cursor:pointer;transition:background .12s,border-color .12s,color .12s}.doc-pages button:hover:not(:disabled){background:#fff;border-color:#e2e8f0}.doc-pages button.active{background:#0f3a6f;color:#fff;border-color:#0f3a6f}.doc-pages button:disabled{opacity:.4;cursor:not-allowed}.doc-pages .doc-pages-gap{padding:0 4px;color:#94a3b8}.doc-sidebar{min-width:0;overflow:hidden;transition:opacity .2s}.doc-page-body.sidebar-collapsed .doc-sidebar{opacity:0;pointer-events:none}.doc-sidebar-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:16px;margin-bottom:14px;box-shadow:0 1px 2px #0f172a0d}.doc-sidebar-card:last-child{margin-bottom:0}.doc-sidebar-card-title{font-weight:600;font-size:11px;color:#64748b;letter-spacing:.5px;text-transform:uppercase;margin-bottom:12px;display:flex;align-items:center;gap:7px}.doc-sidebar-card-title i{color:#0f3a6f;font-size:12px}.doc-stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.doc-stat-item{background:#f8fafc;border-radius:8px;padding:12px 10px;text-align:center}.doc-stat-item .doc-stat-number{font-weight:700;font-size:22px;color:#0f172a;line-height:1.15;letter-spacing:-.5px}.doc-stat-item .doc-stat-number.green{color:#047857}.doc-stat-item .doc-stat-number.blue{color:#1d4ed8}.doc-stat-item .doc-stat-number.purple{color:#6d28d9}.doc-stat-item .doc-stat-label{font-size:11px;color:#64748b;font-weight:500;margin-top:2px}.doc-role-breakdown{display:flex;flex-direction:column;gap:8px}.doc-role-bar-row{display:flex;align-items:center;gap:10px}.doc-role-bar-label{font-size:12.5px;font-weight:500;color:#334155;width:90px;flex-shrink:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.doc-role-bar-track{flex:1;height:6px;background:#e2e8f0;border-radius:3px;overflow:hidden}.doc-role-bar-fill{height:100%;border-radius:3px}.doc-role-bar-fill.doctor{background:#2563eb}.doc-role-bar-fill.administrator,.doc-role-bar-fill.admin{background:#7c3aed}.doc-role-bar-fill.receptionist,.doc-role-bar-fill.reception{background:#ea580c}.doc-role-bar-fill.nurse{background:#059669}.doc-role-bar-fill.other{background:#64748b}.doc-role-bar-count{font-size:12px;font-weight:600;color:#64748b;width:20px;text-align:right}.doc-quick-actions{display:flex;flex-direction:column;gap:6px}.doc-q-btn{height:38px;background:transparent;border:1px solid #e2e8f0;border-radius:8px;font-family:var(--font);font-weight:500;font-size:13px;color:#334155;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;transition:background .12s,border-color .12s}.doc-q-btn:hover{background:#f8fafc;border-color:#cbd5e1}.doc-q-btn i{font-size:12px;color:#64748b}.doc-q-btn.primary{background:#0f3a6f;border-color:#0f3a6f;color:#fff}.doc-q-btn.primary:hover{background:#0a2d57;border-color:#0a2d57}.doc-q-btn.primary i{color:#fff}.doc-empty-state{padding:48px 24px;text-align:center;color:#64748b}.doc-empty-state i{font-size:36px;color:#94a3b8;margin-bottom:12px}.doc-empty-state p{font-size:14px;font-weight:500}@media(max-width:1100px){.doc-staff-row{grid-template-columns:minmax(180px,1.1fr) minmax(250px,1.4fr) minmax(180px,1.1fr) auto;gap:12px 14px;padding:14px 16px}}@media(max-width:1000px){.doc-page-body{grid-template-columns:1fr}.doc-sidebar{opacity:1;pointer-events:auto}}@media(max-width:900px){.doc-toolbar{flex-wrap:wrap}.doc-toolbar-actions{margin-left:0}.doc-staff-row{grid-template-columns:1fr;gap:12px}.doc-days-row,.doc-row-actions{justify-content:flex-start}}.doctor-modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#0009;display:flex;align-items:center;justify-content:center;z-index:1000;padding:20px;overflow-y:auto}.doctor-modal-content{background:#fff;border-radius:28px;width:100%;max-width:1000px;max-height:90vh;overflow-y:auto;box-shadow:0 20px 40px -12px #0000001f,0 0 0 1px #00000005}.doctor-modal-content.doctor-modal-sm{max-width:550px}.doctor-modal-content.doctor-modal-md{max-width:1000px}.doctor-modal-content.doctor-modal-lg{max-width:1400px}.doctor-modal-content.doctor-modal-xl{max-width:1600px}.doctor-modal-content.ss-dropdown-open{overflow-y:hidden}.doctor-modal-header{display:flex;align-items:center;gap:14px;padding:7px 28px;border-bottom:1px solid rgba(255,255,255,.1);position:sticky;top:0;background:linear-gradient(98deg,#0b2b5e,#1a4a7a);z-index:10;border-radius:28px 28px 0 0}.doctor-modal-header-icon{font-size:1.6rem;color:#6ab0f5;flex-shrink:0}.doctor-modal-header-text h2{margin:0;font-size:1.4rem;font-weight:700;color:#fff;letter-spacing:-.2px}.doctor-modal-header-text p{margin:4px 0 0;font-size:.7rem;color:#cddcec}.doctor-modal-header h2{margin:0;font-size:24px;font-weight:600;color:#fff}.doctor-modal-close-circle{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border:1px solid rgba(255,255,255,.3);border-radius:50%;background:#ffffff1a;color:#f0f6fe;font-size:.85rem;cursor:pointer;transition:all .2s ease;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);margin-left:auto;flex-shrink:0;padding:0}.doctor-modal-close-circle:hover{background:#ffffff38;border-color:#ffffff8c;transform:translateY(-1px);color:#fff}.doctor-modal-form{padding:24px}.doctor-form-grid{display:flex;flex-direction:column;gap:24px}.doctor-form-section{background:transparent;padding:0;border-radius:0;border:none}.doctor-form-section h3{margin:24px 0 16px;font-size:16px;font-weight:600;color:#374151;padding-bottom:8px;border-bottom:2px solid #e5e7eb}.doctor-form-section:first-child h3{margin-top:0}.doctor-form-row{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:16px}.doctor-form-row:last-child{margin-bottom:0}.doctor-form-group-full-width{grid-column:1 / -1}.doctor-form-group{position:relative;display:flex;flex-direction:column;gap:0;margin-top:8px}.doctor-form-group label{position:absolute;top:-9px;left:10px;font-size:11px;font-weight:500;color:#6b7280;background:#fff;padding:0 4px;z-index:1;pointer-events:none;white-space:nowrap;line-height:1}.doctor-form-group label:after{content:""}.doctor-form-group label.required:after{content:" **";color:#374151;font-weight:500}.doctor-form-group input,.doctor-form-group select{padding:10px 12px;border:1px solid #d1d5db;border-radius:6px;font-size:14px;font-family:inherit;transition:all .2s;background:#fff;margin-top:0;height:42px;box-sizing:border-box;color:#374151}.doctor-form-group textarea{padding:10px 12px;border:1px solid #d1d5db;border-radius:6px;font-size:14px;font-family:inherit;transition:all .2s;background:#fff;margin-top:0;box-sizing:border-box;color:#374151}.doctor-form-group input:focus,.doctor-form-group select:focus,.doctor-form-group textarea:focus{outline:none;border-color:#4169e1;box-shadow:0 0 0 3px #4169e11a}.doctor-form-group input:focus+label,.doctor-form-group select:focus+label{color:#4169e1}.doctor-form-group input.error,.doctor-form-group select.error,.doctor-form-group textarea.error{border-color:#ef4444}.doctor-form-group textarea{resize:vertical;min-height:80px}.doctor-form-group input::placeholder{color:#9ca3af}.PhoneInput{padding:0 12px;border:1px solid #d1d5db;border-radius:6px;font-size:14px;font-family:inherit;transition:all .2s;background:#fff;margin-top:0;height:42px;display:flex;align-items:center;box-sizing:border-box}.PhoneInput:focus-within{outline:none;border-color:#4169e1;box-shadow:0 0 0 3px #4169e11a}.PhoneInput.error{border-color:#ef4444}.PhoneInputInput{border:none;outline:none;padding:0;margin-left:8px;font-size:14px;font-family:inherit;background:transparent}.PhoneInputCountry{border:none;outline:none;background:transparent;display:flex;align-items:center;gap:6px}.doctor-error-text{font-size:12px;color:#ef4444;font-weight:500}.checkbox-group{flex-direction:row;align-items:center}.checkbox-group label{display:flex;align-items:center;gap:8px;cursor:pointer;font-weight:400}.checkbox-group input[type=checkbox]{width:18px;height:18px;cursor:pointer;accent-color:#4169E1}.doctor-modal-readonly .doctor-form-group input,.doctor-modal-readonly .doctor-form-group select,.doctor-modal-readonly .doctor-form-group textarea{background:#f4f7fa;border-color:#e2e8f0;color:#1f2f40;cursor:default;pointer-events:none}.doctor-modal-readonly .doctor-form-group input:focus,.doctor-modal-readonly .doctor-form-group select:focus,.doctor-modal-readonly .doctor-form-group textarea:focus{border-color:#e2e8f0;box-shadow:none;outline:none}.doctor-modal-readonly .ss-trigger{background:#f4f7fa;border-color:#e2e8f0;color:#1f2f40;cursor:default;pointer-events:none}.doctor-modal-readonly .ss-trigger:focus{border-color:#e2e8f0;box-shadow:none}.doctor-modal-readonly .ss-trigger-icons{display:none}.doctor-modal-readonly .PhoneInput,.doctor-modal-readonly .phone-readonly{background:#f4f7fa;border-color:#e2e8f0;color:#1f2f40;cursor:default;pointer-events:none}.doctor-modal-readonly .PhoneInput:focus-within{border-color:#e2e8f0;box-shadow:none}.doctor-modal-readonly .doctor-form-group label.required:after{content:""}.doctor-modal-footer{display:flex;justify-content:flex-end;gap:12px;padding-top:24px;margin-top:24px;border-top:1px solid #e5e7eb;position:sticky;bottom:0;background:#fff;padding-bottom:0}.doctor-btn-cancel{display:flex;align-items:center;gap:8px;padding:10px 24px;background:#fff;border:1px solid #CFDFED;border-radius:40px;font-size:.8rem;font-weight:600;color:#4a627a;cursor:pointer;transition:all .2s}.doctor-btn-cancel:hover{background:#f8fbfe;border-color:#b7cfea}.doctor-btn-submit{display:flex;align-items:center;gap:8px;padding:10px 28px;background:#ffb347;border:none;border-radius:40px;font-size:.8rem;font-weight:700;color:#1e2f47;cursor:pointer;transition:all .2s;box-shadow:0 2px 6px #0000000d}.doctor-btn-submit:hover{background:#ffa01e;transform:translateY(-1px);box-shadow:0 6px 12px #00000014}@media(max-width:768px){.doctor-modal-content{max-width:100%}.doctor-modal-header,.doctor-modal-form{padding:20px}.doctor-form-section{padding:16px}.doctor-form-row{grid-template-columns:1fr}.doctor-modal-footer{flex-direction:column}.doctor-btn-cancel,.doctor-btn-submit{width:100%;justify-content:center}}.date-mask-icon{position:absolute;right:8px;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;padding:0;border:none;border-radius:4px;background:transparent;color:#6b7280;cursor:pointer}.date-mask-icon:hover{color:#4169e1;background:#4169e11a}.staff-profile-page{padding:10px}.staff-profile-card{overflow:hidden;max-width:1480px;margin:0 auto;border:1px solid #e1eaf4;border-radius:20px;background:#fff;box-shadow:0 10px 30px #183e6214}.staff-profile-header{display:flex;align-items:center;gap:18px;padding:24px 28px;background:#f0f3f7}.staff-back-button{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border:1px solid #cbd9e8;border-radius:50%;background:#fff;color:#285987;cursor:pointer}.staff-profile-identity{display:flex;align-items:center;gap:14px;min-width:0;flex:1}.staff-profile-avatar{display:flex;align-items:center;justify-content:center;width:58px;height:58px;border-radius:50%;background:#285987;color:#fff;font-size:1.5rem}.staff-profile-eyebrow{margin:0 0 3px;color:#6f8fac;font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.5px}.staff-profile-identity h1{margin:0 0 4px;color:#0b2b5e;font-size:1.35rem}.staff-profile-identity span{color:#6f8fac;font-size:.8rem}.staff-profile-status{padding:6px 12px;border-radius:20px;font-size:.75rem;font-weight:700}.staff-profile-status.active{background:#e8f5e9;color:#2e7d32}.staff-profile-status.inactive{background:#ffebee;color:#c62828}.staff-profile-tabs{display:flex;gap:4px;padding:0 28px;border-bottom:1px solid #e1eaf4}.staff-profile-tabs button{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:1;padding:16px 12px 13px;border:0;border-bottom:3px solid transparent;background:transparent;color:#6f8fac;font-size:.82rem;font-weight:700;cursor:pointer;text-align:center}.staff-profile-tabs button.active{border-bottom-color:#285987;color:#285987}.staff-profile-content{padding:28px}.staff-profile-section h2{margin:0 0 18px;color:#0b2b5e;font-size:1rem}.staff-profile-section h2:not(:first-child){margin-top:30px}.staff-profile-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.staff-profile-grid div{min-width:0;padding:14px;border:1px solid #edf2f7;border-radius:8px}.staff-profile-grid strong{display:flex;align-items:center;gap:6px;margin-bottom:7px;color:#7891a8;font-size:.68rem;text-transform:uppercase}.staff-profile-grid span{display:block;overflow:hidden;color:#29465f;font-size:.82rem;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.staff-profile-message{padding:60px 20px;color:#6f8fac;text-align:center}.schedule-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:22px}.schedule-section-heading h2{margin-bottom:6px}.schedule-section-heading p{margin:0;color:#6f8fac;font-size:.8rem}.schedule-save-button{display:inline-flex;align-items:center;gap:8px;flex-shrink:0;padding:9px 14px;border:0;border-radius:8px;background:#285987;color:#fff;font-size:.75rem;font-weight:700;cursor:pointer}.schedule-save-button:hover{background:#1a4a7a}.schedule-save-message{margin-bottom:16px;padding:10px 14px;border-radius:8px;background:#e8f5e9;color:#2e7d32;font-size:.78rem}.schedule-error-message{margin-bottom:16px;padding:10px 14px;border-radius:8px;background:#ffebee;color:#c62828;font-size:.78rem}.staff-schedule-toast{position:fixed;top:24px;right:24px;z-index:1100;display:flex;align-items:flex-start;gap:12px;max-width:min(360px,calc(100vw - 48px));padding:12px 38px 16px 16px;border-left:4px solid;border-radius:6px;background:#fff;box-shadow:0 8px 24px #183e622e;color:#29465f;font-size:.8rem;font-weight:600}.staff-schedule-toast-success{border-left-color:#2e7d32;color:#2e7d32}.staff-schedule-toast-error{border-left-color:#c62828;color:#c62828}.staff-schedule-toast-close{position:absolute;top:8px;right:8px;display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border:0;background:transparent;color:inherit;cursor:pointer}.staff-schedule-toast-close:hover{opacity:.7}.staff-schedule-toast-progress{position:absolute;right:0;bottom:0;left:0;height:3px;transform-origin:left;animation:staff-schedule-toast-countdown 10s linear forwards;background:currentColor;opacity:.55}@keyframes staff-schedule-toast-countdown{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.schedule-date-fields{display:flex;gap:14px;margin-bottom:22px}.schedule-date-fields label{display:flex;flex-direction:column;gap:5px;color:#7891a8;font-size:.68rem;font-weight:700;text-transform:uppercase}.schedule-date-fields input,.schedule-date-fields select{width:170px;padding:8px 9px;border:1px solid #cbd9e8;border-radius:5px;color:#29465f;font-size:.8rem}.schedule-date-fields input:focus{outline:2px solid rgba(40,89,135,.2);border-color:#285987}.schedule-list{display:flex;flex-direction:column;gap:10px}.schedule-day-row{display:grid;grid-template-columns:125px minmax(0,1fr);align-items:center;gap:16px;padding:14px;border:1px solid #edf2f7;border-radius:10px}.schedule-day-name{color:#29465f;font-size:.82rem;font-weight:700}.schedule-session-options{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.schedule-session{display:flex;align-items:center;gap:12px;min-width:260px;padding:8px 10px;border:1px solid #dce7f2;border-radius:8px;background:#fff}.schedule-session.selected{border-color:#7ca6ca;background:#f0f6fc}.schedule-time-fields{display:flex;align-items:end;gap:8px}.schedule-time-fields label{display:flex;flex-direction:column;gap:4px;color:#7891a8;font-size:.62rem;font-weight:700;text-transform:uppercase}.schedule-time-fields input,.schedule-time-fields select{width:112px;padding:6px 7px;border:1px solid #cbd9e8;border-radius:5px;color:#29465f;font-size:.75rem}.schedule-time-fields input:focus,.schedule-time-fields select:focus{outline:2px solid rgba(40,89,135,.2);border-color:#285987}.schedule-time-separator{padding-bottom:7px;color:#7891a8;font-size:.7rem}.schedule-remove-button,.schedule-add-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;border-radius:7px;cursor:pointer}.schedule-remove-button{width:28px;height:28px;border:0;background:#fff;color:#b13e2d}.schedule-remove-button:hover{background:#ffebee}.schedule-add-button{padding:10px 12px;border:1px dashed #9eb8d1;background:#fff;color:#285987;font-size:.72rem;font-weight:700}.schedule-add-button:hover{background:#f0f6fc;border-color:#285987}.service-catalog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:22px}.service-catalog-heading h2{margin-bottom:6px}.service-catalog-heading p{margin:0;color:#6f8fac;font-size:.8rem}.service-catalog-grid{overflow-x:auto}.service-catalog-table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid #e1eaf4;border-radius:10px;overflow:hidden}.service-catalog-table thead th{padding:12px 16px;background:#f0f3f7;color:#6f8fac;font-size:.68rem;font-weight:700;text-transform:uppercase;letter-spacing:.4px;text-align:left;border-bottom:1px solid #e1eaf4}.service-catalog-table tbody td{padding:10px 16px;border-bottom:1px solid #edf2f7;color:#29465f;font-size:.82rem;vertical-align:middle}.service-catalog-table tbody tr:last-child td{border-bottom:none}.service-catalog-table tbody tr:hover{background:#f8fafd}.service-catalog-col-sno{width:60px;text-align:center;color:#7891a8;font-weight:600}.service-catalog-col-service{min-width:240px}.service-catalog-col-charges{width:140px;text-align:right}.service-catalog-col-action{width:90px;text-align:center}.service-catalog-table input[type=text],.service-catalog-table input[type=number]{width:100%;padding:8px 10px;border:1px solid #cbd9e8;border-radius:6px;color:#29465f;font-size:.8rem;background:#fff}.service-catalog-table input[type=text]:focus,.service-catalog-table input[type=number]:focus{outline:2px solid rgba(40,89,135,.2);border-color:#285987}.service-catalog-table input[type=number]{text-align:right}.service-catalog-empty{padding:32px 16px!important;text-align:center;color:#6f8fac;font-size:.8rem;font-style:italic}.service-catalog-edit-btn{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border:0;border-radius:7px;background:#fff;color:#285987;cursor:pointer}.service-catalog-edit-btn:hover{background:#f0f6fc}.service-modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:2000;display:flex;align-items:center;justify-content:center;background:#0b2b5e73}.service-modal{width:min(480px,92vw);background:#fff;border-radius:14px;box-shadow:0 20px 60px #0b2b5e40;overflow:hidden}.service-modal-header{display:flex;align-items:center;justify-content:space-between;padding:18px 22px;border-bottom:1px solid #e1eaf4;background:#f0f3f7}.service-modal-header h3{margin:0;color:#0b2b5e;font-size:.95rem;font-weight:700}.service-modal-close{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border:0;border-radius:50%;background:transparent;color:#6f8fac;cursor:pointer}.service-modal-close:hover{background:#e1eaf4;color:#0b2b5e}.service-modal-body{padding:22px;display:flex;flex-direction:column;gap:16px}.service-modal-field{display:flex;flex-direction:column;gap:6px}.service-modal-field label{color:#7891a8;font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.3px}.service-modal-field .required{color:#c62828}.service-modal-input{width:100%;padding:10px 12px;border:1px solid #cbd9e8;border-radius:8px;color:#29465f;font-size:.82rem;background:#fff}.service-modal-input:focus{outline:2px solid rgba(40,89,135,.2);border-color:#285987}.service-modal-input:disabled{background:#f0f3f7;color:#7891a8;cursor:not-allowed}.service-modal-textarea{resize:vertical;min-height:70px;font-family:inherit}.service-modal-footer{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:16px 22px;border-top:1px solid #e1eaf4}.service-modal-cancel{padding:9px 16px;border:1px solid #cbd9e8;border-radius:8px;background:#fff;color:#6f8fac;font-size:.78rem;font-weight:700;cursor:pointer}.service-modal-cancel:hover{background:#f0f3f7;color:#29465f}.service-modal-save{display:inline-flex;align-items:center;gap:6px;padding:9px 18px;border:0;border-radius:8px;background:#285987;color:#fff;font-size:.78rem;font-weight:700;cursor:pointer}.service-modal-save:hover{background:#1a4a7a}.demo-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:22px}.demo-heading h2{margin-bottom:6px}.demo-heading p{margin:0;color:#6f8fac;font-size:.8rem}.demo-sub-heading{margin:24px 0 14px;color:#0b2b5e;font-size:.9rem;font-weight:700}.demo-sub-heading:first-of-type{margin-top:0}.demo-form-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:8px}.demo-field{display:flex;flex-direction:column;gap:5px}.demo-field-full{grid-column:1 / -1}.demo-field label{color:#7891a8;font-size:.68rem;font-weight:700;text-transform:uppercase;letter-spacing:.3px}.demo-req{color:#c62828}.demo-field input,.demo-field select,.demo-field textarea{width:100%;padding:9px 11px;border:1px solid #cbd9e8;border-radius:7px;color:#29465f;font-size:.82rem;background:#fff;font-family:inherit}.demo-field input:focus,.demo-field select:focus,.demo-field textarea:focus{outline:2px solid rgba(40,89,135,.2);border-color:#285987}.demo-field-error{border-color:#c62828!important}.demo-error-text{color:#c62828;font-size:.7rem;font-weight:600}.demo-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px;padding-top:18px;border-top:1px solid #e1eaf4}.demo-btn-cancel{display:inline-flex;align-items:center;gap:6px;padding:9px 18px;border:1px solid #cbd9e8;border-radius:8px;background:#fff;color:#6f8fac;font-size:.78rem;font-weight:700;cursor:pointer}.demo-btn-cancel:hover{background:#f0f3f7;color:#29465f}.demo-btn-save{display:inline-flex;align-items:center;gap:6px;padding:9px 18px;border:0;border-radius:8px;background:#285987;color:#fff;font-size:.78rem;font-weight:700;cursor:pointer}.demo-btn-save:hover{background:#1a4a7a}.demo-btn-save:disabled{opacity:.6;cursor:not-allowed}.aa-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:28px 0 12px}.aa-section-title{font-size:12px;font-weight:700;color:#6f8fac;text-transform:uppercase;letter-spacing:.4px;display:flex;align-items:center;gap:8px;margin:0}.aa-section-title svg{color:#285987;font-size:13px}.aa-section-title:after{content:"";flex:1;height:1px;background:#e1eaf4}.aa-btn-add{height:32px;padding:0 14px;background:#285987;border:none;border-radius:8px;font-size:12.5px;font-weight:600;color:#fff;display:inline-flex;align-items:center;gap:6px;cursor:pointer;white-space:nowrap;transition:background .12s}.aa-btn-add:hover{background:#1a4a7a}.aa-table-wrap{border:1px solid #e1eaf4;border-radius:10px;overflow:hidden;margin-bottom:18px}.aa-table{width:100%;border-collapse:collapse;font-size:13px}.aa-table th{background:#f0f3f7;color:#6f8fac;font-weight:600;font-size:11px;letter-spacing:.3px;text-transform:uppercase;padding:10px 16px;text-align:left;border-bottom:1px solid #e1eaf4;white-space:nowrap}.aa-table td{padding:10px 16px;border-bottom:1px solid #edf2f7;color:#29465f;font-size:.82rem;vertical-align:middle}.aa-table tr:last-child td{border-bottom:none}.aa-table tbody tr:hover td{background:#f8fafd}.aa-empty{text-align:center;padding:24px 16px;color:#6f8fac;font-size:13px;font-style:italic}.aa-modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:2000;display:flex;align-items:center;justify-content:center;background:#0b2b5e73}.aa-modal{width:min(440px,92vw);background:#fff;border-radius:14px;box-shadow:0 20px 60px #0b2b5e40;overflow:hidden}.aa-modal-header{display:flex;align-items:center;justify-content:space-between;padding:18px 22px;border-bottom:1px solid #e1eaf4;background:#f0f3f7}.aa-modal-header h3{margin:0;color:#0b2b5e;font-size:.95rem;font-weight:700}.aa-modal-close{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border:0;border-radius:50%;background:transparent;color:#6f8fac;cursor:pointer}.aa-modal-close:hover{background:#e1eaf4;color:#0b2b5e}.aa-modal-body{padding:22px;display:flex;flex-direction:column;gap:16px}.aa-modal-field{display:flex;flex-direction:column;gap:6px}.aa-modal-field label{color:#7891a8;font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.3px}.aa-required{color:#c62828}.aa-modal-field input{width:100%;padding:10px 12px;border:1px solid #cbd9e8;border-radius:8px;color:#29465f;font-size:.82rem;background:#fff}.aa-modal-field input:focus{outline:2px solid rgba(40,89,135,.2);border-color:#285987}.aa-input-error{border-color:#c62828!important}.aa-error-text{color:#c62828;font-size:.72rem;font-weight:600}.aa-modal-footer{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:16px 22px;border-top:1px solid #e1eaf4}.aa-modal-cancel{padding:9px 16px;border:1px solid #cbd9e8;border-radius:8px;background:#fff;color:#6f8fac;font-size:.78rem;font-weight:700;cursor:pointer}.aa-modal-cancel:hover{background:#f0f3f7;color:#29465f}.aa-modal-save{display:inline-flex;align-items:center;gap:6px;padding:9px 18px;border:0;border-radius:8px;background:#285987;color:#fff;font-size:.78rem;font-weight:700;cursor:pointer}.aa-modal-save:hover{background:#1a4a7a}.aa-modal-save:disabled{opacity:.6;cursor:not-allowed}.staff-profile-page .prof-layout{display:grid;grid-template-columns:1fr 300px;gap:1.15rem;align-items:start;transition:grid-template-columns .25s ease}.staff-profile-page .prof-layout.panel-collapsed{grid-template-columns:1fr}.staff-profile-page .prof-layout.panel-collapsed .prof-right-panel{display:none}.staff-profile-page .prof-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 4px 12px #0000000f;overflow:hidden}.staff-profile-page .prof-header-bar{background:#1e3a5f;padding:.85rem 1.25rem;display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}.staff-profile-page .prof-header-title{font-size:1.05rem;font-weight:600;color:#fff;white-space:nowrap;margin:0}.staff-profile-page .prof-header-sub{font-size:.78rem;color:#ffffffbf;margin-top:2px}.staff-profile-page .prof-header-tools{display:flex;align-items:center;gap:.45rem}.staff-profile-page .prof-tool-btn{width:36px;height:36px;border-radius:8px;border:none;background:#ffffff1a;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer}.staff-profile-page .prof-tool-btn:hover{background:#fff3}.staff-profile-page .prof-tool-btn svg{width:17px;height:17px}.staff-profile-page .prof-body{padding:1.25rem}.staff-profile-page .prof-section{margin-bottom:1.25rem;border:1px solid #e2e8f0;border-radius:10px;overflow:hidden;background:#fff}.staff-profile-page .prof-section:last-child{margin-bottom:0}.staff-profile-page .prof-section-head{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.7rem 1rem;background:#f8fafc;border-bottom:1px solid transparent;cursor:pointer;-webkit-user-select:none;user-select:none;transition:background .15s}.staff-profile-page .prof-section-head:hover{background:#f1f5f9}.staff-profile-page .prof-section.open .prof-section-head{border-bottom-color:#e2e8f0}.staff-profile-page .prof-section-title-wrap{display:flex;align-items:center;gap:.5rem}.staff-profile-page .prof-collapse-icon{width:18px;height:18px;color:#94a3b8;transition:transform .2s ease;flex-shrink:0}.staff-profile-page .prof-section.open .prof-collapse-icon{transform:rotate(90deg)}.staff-profile-page .prof-section-title{font-size:.72rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:#94a3b8}.staff-profile-page .prof-section-body{display:none;padding:1rem}.staff-profile-page .prof-section.open .prof-section-body{display:block}.staff-profile-page .prof-add-link{height:30px;padding:0 .7rem;border-radius:6px;border:1px solid #e2e8f0;background:#fff;font-size:.75rem;font-weight:500;font-family:inherit;color:#475569;cursor:pointer;display:inline-flex;align-items:center;gap:.25rem}.staff-profile-page .prof-add-link:hover{background:#f8fafc;color:#0f172a}.staff-profile-page .prof-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:.85rem}.staff-profile-page .prof-form-group{display:flex;flex-direction:column;gap:.3rem}.staff-profile-page .prof-full{grid-column:1 / -1}.staff-profile-page .prof-form-group label{font-size:.75rem;font-weight:600;color:#475569}.staff-profile-page .prof-form-group input,.staff-profile-page .prof-form-group select,.staff-profile-page .prof-form-group textarea{height:38px;padding:0 .75rem;border:1px solid #e2e8f0;border-radius:8px;font-size:.85rem;font-family:inherit;color:#0f172a;background:#fff}.staff-profile-page .prof-form-group textarea{height:auto;min-height:72px;padding:.6rem .75rem;resize:vertical}.staff-profile-page .prof-form-group input:focus,.staff-profile-page .prof-form-group select:focus,.staff-profile-page .prof-form-group textarea:focus{outline:none;border-color:#93c5fd;box-shadow:0 0 0 3px #3b82f626}.staff-profile-page .prof-empty-row{text-align:center;padding:1rem;font-size:.82rem;color:#94a3b8;border:1px dashed #e2e8f0;border-radius:10px}.staff-profile-page .prof-data-grid{border:1px solid #e2e8f0;border-radius:10px;overflow:hidden;background:#fff}.staff-profile-page .prof-data-grid-header,.staff-profile-page .prof-data-grid-row{display:grid;gap:0;align-items:center}.staff-profile-page .prof-data-grid-header{background:#f1f5f9;border-bottom:1px solid #e2e8f0;font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.03em;color:#94a3b8}.staff-profile-page .prof-data-grid-header>span,.staff-profile-page .prof-data-grid-row>div{padding:.55rem .65rem;min-width:0}.staff-profile-page .prof-data-grid-header>span:not(:last-child),.staff-profile-page .prof-data-grid-row>div:not(:last-child){border-right:1px solid #e2e8f0}.staff-profile-page .prof-data-grid-row{border-bottom:1px solid #f1f5f9;background:#fff}.staff-profile-page .prof-data-grid-row:last-child{border-bottom:none}.staff-profile-page .prof-data-grid-row:hover{background:#f8fafc}.staff-profile-page .prof-data-grid-row input[type=text],.staff-profile-page .prof-data-grid-row input[type=date],.staff-profile-page .prof-data-grid-row input[type=number],.staff-profile-page .prof-data-grid-row input:not([type]){width:100%;height:32px;padding:0 .5rem;border:1px solid transparent;border-radius:6px;font-size:.8rem;font-family:inherit;color:#0f172a;background:transparent}.staff-profile-page .prof-data-grid-row input:hover,.staff-profile-page .prof-data-grid-row input:focus{border-color:#e2e8f0;background:#fff;outline:none}.staff-profile-page .prof-data-grid-row input:focus{border-color:#93c5fd;box-shadow:0 0 0 2px #3b82f61f}.staff-profile-page .prof-grid-rx{display:flex;align-items:center;justify-content:center;gap:.3rem;font-size:.72rem;color:#475569}.staff-profile-page .prof-grid-rx input{width:15px;height:15px;accent-color:#1e3a5f;cursor:pointer;margin:0}.staff-profile-page .prof-grid-actions{display:flex;align-items:center;justify-content:center}.staff-profile-page .prof-grid-actions .prof-icon-btn{width:30px;height:30px;border:none;background:transparent;color:#94a3b8;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:6px}.staff-profile-page .prof-grid-actions .prof-icon-btn:hover{background:#fef2f2;color:#dc2626}.staff-profile-page .prof-grid-actions .prof-icon-btn svg{width:15px;height:15px}.staff-profile-page .prof-grid-licenses{grid-template-columns:1.2fr 1fr .9fr .9fr 70px 44px}.staff-profile-page .prof-grid-degrees{grid-template-columns:1.2fr 1.4fr .7fr .9fr 70px 44px}.staff-profile-page .prof-grid-certs{grid-template-columns:1.2fr 1.2fr .7fr 1fr 70px 44px}.staff-profile-page .prof-grid-exp{grid-template-columns:1.2fr 1.4fr .7fr .7fr 70px 44px}.staff-profile-page .prof-grid-app-access{grid-template-columns:1.4fr 1.2fr 1.2fr 44px}.staff-profile-page .prof-right-panel{display:flex;flex-direction:column;gap:.85rem;position:sticky;top:1.25rem}.staff-profile-page .prof-panel-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:1rem;box-shadow:0 1px 3px #0000000d}.staff-profile-page .prof-panel-title{font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:#94a3b8;margin-bottom:.85rem;display:flex;align-items:center;gap:.35rem}.staff-profile-page .prof-panel-title svg{width:14px;height:14px}.staff-profile-page .prof-stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:.55rem}.staff-profile-page .prof-stat-box{background:#f8fafc;border-radius:10px;padding:.7rem .55rem;text-align:center}.staff-profile-page .prof-stat-box .num{font-size:1.25rem;font-weight:700;color:#0f172a}.staff-profile-page .prof-stat-box .label{font-size:.7rem;color:#94a3b8}.staff-profile-page .prof-summary-list{display:flex;flex-direction:column;gap:.55rem}.staff-profile-page .prof-summary-item{display:flex;justify-content:space-between;gap:.5rem;font-size:.8rem;color:#475569;padding-bottom:.45rem;border-bottom:1px solid #f1f5f9}.staff-profile-page .prof-summary-item:last-child{border-bottom:none;padding-bottom:0}.staff-profile-page .prof-summary-item strong{color:#0f172a;font-weight:500;text-align:right}.staff-profile-page .prof-action-desc{font-size:.78rem;color:#475569;line-height:1.55;margin-bottom:.85rem}.staff-profile-page .prof-panel-actions{display:flex;flex-direction:column;gap:.5rem}.staff-profile-page .prof-btn{height:40px;padding:0 1.1rem;border-radius:8px;border:none;font-size:.85rem;font-weight:500;font-family:inherit;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:.35rem;width:100%;transition:all .15s}.staff-profile-page .prof-btn-primary{background:#1e3a5f;color:#fff}.staff-profile-page .prof-btn-primary:hover{background:#162d4a}.staff-profile-page .prof-btn-secondary{background:#fff;border:1px solid #e2e8f0;color:#0f172a}.staff-profile-page .prof-btn-secondary:hover{background:#f8fafc}.staff-profile-page .prof-rx-preview{font-size:.8rem;color:#475569;line-height:1.5;min-height:1.5em}.staff-profile-page .sched-layout{display:grid;grid-template-columns:1fr 280px;gap:1rem;align-items:start}.staff-profile-page .sched-layout.panel-collapsed{grid-template-columns:1fr}.staff-profile-page .sched-layout.panel-collapsed .sched-right{display:none}.staff-profile-page .sched-left{display:flex;flex-direction:column;gap:.85rem;min-width:0}.staff-profile-page .sched-toolbar{background:#1e4a6e;border-radius:12px;padding:.65rem .85rem;display:flex;align-items:center;gap:.65rem;flex-wrap:wrap;width:100%}.staff-profile-page .sched-toolbar-title{font-size:.95rem;font-weight:600;color:#fff;white-space:nowrap;padding:0 .35rem}.staff-profile-page .sched-search-wrap{flex:1;min-width:180px;display:flex;align-items:center;gap:.45rem;background:#ffffff1f;border-radius:8px;padding:0 .75rem;height:38px}.staff-profile-page .sched-search-wrap svg{width:16px;height:16px;color:#ffffffb3;flex-shrink:0}.staff-profile-page .sched-search-wrap input{flex:1;border:none;background:transparent;color:#fff;font-size:.85rem;font-family:inherit;outline:none}.staff-profile-page .sched-search-wrap input::placeholder{color:#ffffff8c}.staff-profile-page .sched-toolbar-btns{display:flex;align-items:center;gap:.35rem}.staff-profile-page .sched-tb-btn{width:36px;height:36px;border-radius:8px;border:none;background:#ffffff1f;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer}.staff-profile-page .sched-tb-btn:hover{background:#ffffff38}.staff-profile-page .sched-tb-btn svg{width:16px;height:16px}.staff-profile-page .sched-settings-bar{display:flex;gap:.75rem;flex-wrap:wrap;align-items:flex-end;padding:0 .25rem}.staff-profile-page .sched-settings-bar label{display:flex;flex-direction:column;gap:4px;font-size:.68rem;font-weight:700;text-transform:uppercase;color:#7891a8;letter-spacing:.3px}.staff-profile-page .sched-settings-bar input,.staff-profile-page .sched-settings-bar select{height:36px;padding:0 .65rem;border:1px solid #e2e8f0;border-radius:8px;font-size:.82rem;font-family:inherit;color:#1e293b;background:#fff;min-width:140px}.staff-profile-page .sched-settings-bar input:focus,.staff-profile-page .sched-settings-bar select:focus{outline:none;border-color:#93c5fd;box-shadow:0 0 0 3px #3b82f61f}.staff-profile-page .sched-card{background:#fff;border-radius:12px;box-shadow:0 4px 16px #0000000f;border:1px solid #e2e8f0;overflow:hidden}.staff-profile-page .sched-sessions-body{padding:.5rem 0}.staff-profile-page .sched-day-row{display:grid;grid-template-columns:110px 1fr;gap:.75rem;align-items:start;padding:.85rem 1.15rem;border-bottom:1px solid #f1f5f9}.staff-profile-page .sched-day-row:last-child{border-bottom:none}.staff-profile-page .sched-day-label{font-size:.88rem;font-weight:600;color:#1e293b;padding-top:.55rem}.staff-profile-page .sched-day-sessions{display:flex;flex-wrap:wrap;align-items:flex-start;gap:.55rem}.staff-profile-page .sched-session-card{display:inline-flex;align-items:flex-end;gap:.4rem;padding:.55rem .65rem;background:#f8fafc;border:1px solid #dbe3ee;border-radius:10px}.staff-profile-page .sched-session-field{display:flex;flex-direction:column;gap:.2rem}.staff-profile-page .sched-session-field label{font-size:.62rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:#94a3b8}.staff-profile-page .sched-session-field select{height:34px;min-width:110px;padding:0 .55rem;border:1px solid #e2e8f0;border-radius:8px;font-size:.8rem;font-family:inherit;color:#1e293b;background:#fff;cursor:pointer}.staff-profile-page .sched-session-field select:focus{outline:none;border-color:#93c5fd;box-shadow:0 0 0 2px #3b82f61f}.staff-profile-page .sched-session-to{font-size:.75rem;color:#94a3b8;padding-bottom:.55rem;font-weight:500}.staff-profile-page .sched-session-del{width:32px;height:34px;border:none;background:transparent;color:#f87171;border-radius:6px;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0}.staff-profile-page .sched-session-del:hover{background:#fee2e2;color:#ef4444}.staff-profile-page .sched-session-del svg{width:15px;height:15px}.staff-profile-page .sched-add-session{height:42px;padding:0 .9rem;border:1.5px dashed #cbd5e1;border-radius:10px;background:transparent;color:#64748b;font-size:.8rem;font-weight:500;font-family:inherit;cursor:pointer;display:inline-flex;align-items:center;gap:.3rem}.staff-profile-page .sched-add-session:hover{border-color:#1e4a6e;color:#1e4a6e;background:#f8fafc}.staff-profile-page .sched-card-footer{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.75rem 1.15rem;border-top:1px solid #e2e8f0;background:#fafbfc;font-size:.78rem;color:#94a3b8;flex-wrap:wrap}.staff-profile-page .sched-footer-save{height:36px;padding:0 1rem;border-radius:8px;border:none;background:#1e4a6e;color:#fff;font-size:.82rem;font-weight:600;font-family:inherit;cursor:pointer;display:inline-flex;align-items:center;gap:.35rem}.staff-profile-page .sched-footer-save:hover{background:#163a58}.staff-profile-page .sched-footer-save:disabled{opacity:.6;cursor:not-allowed}.staff-profile-page .sched-right{display:flex;flex-direction:column;gap:.85rem;position:sticky;top:1rem}.staff-profile-page .sched-side-card{background:#fff;border-radius:12px;box-shadow:0 4px 16px #0000000f;border:1px solid #e2e8f0;padding:1rem}.staff-profile-page .sched-side-title{font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:#94a3b8;margin-bottom:.75rem}.staff-profile-page .sched-stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}.staff-profile-page .sched-stat-box{background:#f8fafc;border-radius:10px;padding:.75rem .5rem;text-align:center}.staff-profile-page .sched-stat-box .num{font-size:1.35rem;font-weight:700;color:#1e293b;line-height:1.2}.staff-profile-page .sched-stat-box .num.blue{color:#1d4ed8}.staff-profile-page .sched-stat-box .num.green{color:#047857}.staff-profile-page .sched-stat-box .label{font-size:.7rem;color:#94a3b8;margin-top:.15rem}.staff-profile-page .sched-summary-list{display:flex;flex-direction:column;gap:.45rem}.staff-profile-page .sched-summary-item{display:flex;justify-content:space-between;align-items:flex-start;gap:.5rem;font-size:.8rem;padding-bottom:.4rem;border-bottom:1px solid #f1f5f9}.staff-profile-page .sched-summary-item:last-child{border-bottom:none;padding-bottom:0}.staff-profile-page .sched-summary-item .day{font-weight:600;color:#1e293b;min-width:72px}.staff-profile-page .sched-summary-item .times{color:#64748b;text-align:right;font-size:.78rem;line-height:1.45}.staff-profile-page .sched-summary-item .off{color:#94a3b8;font-style:italic}.staff-profile-page .sched-quick-actions{display:flex;flex-direction:column;gap:.45rem}.staff-profile-page .sched-qa-btn{height:40px;width:100%;border-radius:8px;border:none;font-size:.84rem;font-weight:600;font-family:inherit;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:.4rem}.staff-profile-page .sched-qa-primary{background:#1e4a6e;color:#fff}.staff-profile-page .sched-qa-primary:hover{background:#163a58}.staff-profile-page .sched-qa-primary:disabled{opacity:.6;cursor:not-allowed}.staff-profile-page .sched-qa-secondary{background:#fff;border:1px solid #e2e8f0;color:#1e293b}.staff-profile-page .sched-qa-secondary:hover{background:#f8fafc}.staff-profile-page .sc-layout{display:grid;grid-template-columns:1fr 300px;gap:1.15rem;align-items:start}.staff-profile-page .sc-layout.panel-collapsed{grid-template-columns:1fr}.staff-profile-page .sc-layout.panel-collapsed .sc-right{display:none}.staff-profile-page .sc-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 4px 12px #0000000f;overflow:hidden}.staff-profile-page .sc-header{background:#1e3a5f;padding:.85rem 1.25rem;display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}.staff-profile-page .sc-header-title{font-size:1.05rem;font-weight:600;color:#fff;margin:0}.staff-profile-page .sc-header-sub{font-size:.78rem;color:#ffffffbf;margin-top:2px}.staff-profile-page .sc-header-tools{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap}.staff-profile-page .sc-search{position:relative;width:200px}.staff-profile-page .sc-search svg{position:absolute;left:.7rem;top:50%;transform:translateY(-50%);width:15px;height:15px;color:#94a3b8;pointer-events:none}.staff-profile-page .sc-search input{width:100%;height:36px;padding:0 .75rem 0 2.1rem;border:none;border-radius:8px;background:#ffffff1f;color:#fff;font-size:.82rem;font-family:inherit}.staff-profile-page .sc-search input::placeholder{color:#94a3b8}.staff-profile-page .sc-search input:focus{outline:none;background:#ffffff2e}.staff-profile-page .sc-tool-btn{width:36px;height:36px;border-radius:8px;border:none;background:#ffffff1a;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer}.staff-profile-page .sc-tool-btn:hover{background:#fff3}.staff-profile-page .sc-tool-btn svg{width:17px;height:17px}.staff-profile-page .sc-table-wrap{overflow-x:auto}.staff-profile-page .sc-card table{width:100%;border-collapse:collapse;font-size:.85rem}.staff-profile-page .sc-card thead th{text-align:left;padding:.7rem 1rem;font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.03em;color:#94a3b8;background:#f8fafc;border-bottom:1px solid #e2e8f0;white-space:nowrap}.staff-profile-page .sc-card tbody td{padding:.85rem 1rem;border-bottom:1px solid #f1f5f9;vertical-align:middle;color:#475569}.staff-profile-page .sc-card tbody tr:hover{background:#f8fafc}.staff-profile-page .sc-svc-name{font-weight:600;color:#0f172a;font-size:.875rem}.staff-profile-page .sc-svc-code{font-size:.72rem;color:#94a3b8}.staff-profile-page .sc-charge{font-weight:600;color:#0f172a;white-space:nowrap}.staff-profile-page .sc-notes{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.staff-profile-page .sc-pill{display:inline-flex;align-items:center;gap:.3rem;padding:.2rem .55rem;border-radius:999px;font-size:.72rem;font-weight:600}.staff-profile-page .sc-pill.active{background:#ecfdf5;color:#059669}.staff-profile-page .sc-pill.inactive{background:#f1f5f9;color:#64748b}.staff-profile-page .sc-actions-cell{display:flex;align-items:center;gap:.3rem}.staff-profile-page .sc-icon-btn{width:32px;height:32px;border-radius:7px;border:1px solid #e2e8f0;background:#fff;color:#475569;display:flex;align-items:center;justify-content:center;cursor:pointer}.staff-profile-page .sc-icon-btn:hover{background:#f8fafc;color:#0f172a}.staff-profile-page .sc-icon-btn.danger:hover{background:#fef2f2;color:#dc2626;border-color:#fecaca}.staff-profile-page .sc-icon-btn svg{width:15px;height:15px}.staff-profile-page .sc-empty{text-align:center;color:#94a3b8;padding:2rem!important}.staff-profile-page .sc-footer{display:flex;align-items:center;justify-content:space-between;padding:.85rem 1.25rem;border-top:1px solid #e2e8f0;background:#f8fafc;font-size:.8rem;color:#475569}.staff-profile-page .sc-right{display:flex;flex-direction:column;gap:.85rem;position:sticky;top:1.25rem}.staff-profile-page .sc-panel-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:1rem;box-shadow:0 1px 3px #0000000d}.staff-profile-page .sc-panel-title{font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:#94a3b8;margin-bottom:.85rem;display:flex;align-items:center;gap:.35rem}.staff-profile-page .sc-panel-title svg{width:14px;height:14px}.staff-profile-page .sc-stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:.55rem}.staff-profile-page .sc-stat-box{background:#f8fafc;border-radius:10px;padding:.7rem .55rem;text-align:center}.staff-profile-page .sc-stat-box .num{font-size:1.2rem;font-weight:700;color:#0f172a}.staff-profile-page .sc-stat-box .num.green{color:#059669}.staff-profile-page .sc-stat-box .label{font-size:.7rem;color:#94a3b8}.staff-profile-page .sc-summary-list{display:flex;flex-direction:column;gap:.5rem}.staff-profile-page .sc-summary-item{display:flex;justify-content:space-between;gap:.5rem;font-size:.8rem;color:#475569;padding-bottom:.4rem;border-bottom:1px solid #f1f5f9}.staff-profile-page .sc-summary-item:last-child{border-bottom:none;padding-bottom:0}.staff-profile-page .sc-summary-item strong{color:#0f172a;font-weight:500;text-align:right}.staff-profile-page .sc-action-desc{font-size:.78rem;color:#475569;line-height:1.55;margin-bottom:.85rem}.staff-profile-page .sc-panel-actions{display:flex;flex-direction:column;gap:.5rem}.staff-profile-page .sc-btn{height:40px;padding:0 1.1rem;border-radius:8px;border:none;font-size:.85rem;font-weight:500;font-family:inherit;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:.35rem;width:100%;transition:all .15s}.staff-profile-page .sc-btn-primary{background:#1e3a5f;color:#fff}.staff-profile-page .sc-btn-primary:hover{background:#162d4a}@media(max-width:960px){.staff-profile-page .sc-layout{grid-template-columns:1fr}.staff-profile-page .sc-right{position:static;order:-1}}@media(max-width:960px){.staff-profile-page .sched-layout{grid-template-columns:1fr}.staff-profile-page .sched-right{position:static;order:-1}.staff-profile-page .sched-day-row{grid-template-columns:1fr;gap:.4rem}.staff-profile-page .sched-day-label{padding-top:0}}@media(max-width:900px){.staff-profile-page .prof-layout{grid-template-columns:1fr}.staff-profile-page .prof-right-panel{position:static;order:-1}}@media(max-width:700px){.staff-profile-page{padding:12px}.staff-profile-header{align-items:flex-start;flex-wrap:wrap;padding:20px}.staff-profile-status{margin-left:54px}.staff-profile-tabs,.staff-profile-content{padding-left:20px;padding-right:20px}.staff-profile-grid{grid-template-columns:1fr}.schedule-section-heading{flex-direction:column}.schedule-date-fields{flex-wrap:wrap}.schedule-date-fields input{width:100%}.schedule-day-row{grid-template-columns:1fr}.schedule-session-options{align-items:stretch;flex-direction:column}.schedule-session{min-width:0;justify-content:space-between}.schedule-time-fields{flex:1}.schedule-time-fields input{width:100%}.service-catalog-heading{flex-direction:column}.service-catalog-col-charges{width:120px}.demo-form-grid{grid-template-columns:1fr}.demo-heading{flex-direction:column}.staff-profile-page .prof-form-grid{grid-template-columns:1fr}.staff-profile-page .prof-data-grid{overflow-x:auto}.staff-profile-page .prof-data-grid-header,.staff-profile-page .prof-data-grid-row{min-width:560px}}.date-mask-picker{position:absolute;width:1px;height:1px;padding:0;margin:0;border:0;opacity:0;pointer-events:none}.date-mask-icon{position:absolute;right:8px;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;padding:0;border:none;border-radius:4px;background:transparent;color:#7891a8;cursor:pointer}.date-mask-icon:hover{color:#1a4a7a;background:#1a4a7a1a}.cfg-page{display:flex;flex-direction:column;height:100%;min-height:0}.cfg-main{flex:1;padding:16px 20px 24px;background:var(--bg-page);overflow-y:auto;min-width:0}.cfg-toolbar{display:flex;flex-wrap:nowrap;gap:10px;align-items:center;margin-bottom:14px;padding:10px 12px;background:#1a4a7a;border:1px solid #143a61;border-radius:var(--radius-sm);box-shadow:var(--shadow-sm)}.cfg-toolbar h1{font-size:15px;font-weight:700;color:#fff;letter-spacing:-.2px;margin:0;white-space:nowrap}.cfg-toolbar .cfg-subtitle{font-size:12.5px;color:#ffffffa6;margin-left:8px}.cfg-tabs{display:flex;gap:0;background:var(--bg-surface);border:1px solid var(--border);border-radius:var(--radius-sm);overflow:hidden;margin-bottom:16px;box-shadow:var(--shadow-sm)}.cfg-tab-btn{flex:0 0 auto;height:42px;padding:0 20px;border:none;background:transparent;font-family:var(--font);font-size:13px;font-weight:600;color:var(--text-muted);cursor:pointer;display:inline-flex;align-items:center;gap:8px;transition:background .12s,color .12s;border-bottom:2px solid transparent}.cfg-tab-btn svg{font-size:13px}.cfg-tab-btn:hover{background:var(--bg-muted);color:var(--text-secondary)}.cfg-tab-btn.cfg-active{color:var(--accent);border-bottom-color:var(--accent);background:var(--accent-soft)}.cfg-tab-panel{display:none}.cfg-tab-panel.cfg-active{display:block}.cfg-lookup-layout{display:grid;grid-template-columns:240px 1fr;gap:16px;min-height:520px}.cfg-dx-sidebar{display:flex;flex-direction:column;gap:15px}.cfg-lookup-nav{background:var(--bg-surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-sm);overflow:hidden;width:100%}.cfg-lookup-nav-title{font-size:11px;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.4px;padding:14px 16px 10px;border-bottom:1px solid var(--border);background:var(--bg-muted)}.cfg-lookup-nav-list{list-style:none;padding:6px;margin:0}.cfg-lookup-nav-list button{width:100%;display:flex;align-items:center;gap:10px;padding:10px 12px;border:none;background:transparent;font-family:var(--font);font-size:13px;font-weight:500;color:var(--text-secondary);cursor:pointer;border-radius:var(--radius-sm);text-align:left;transition:background .12s,color .12s}.cfg-lookup-nav-list button svg{width:18px;flex-shrink:0;color:var(--text-muted);font-size:13px}.cfg-lookup-nav-list button:hover{background:var(--bg-muted);color:var(--text-primary)}.cfg-lookup-nav-list button.cfg-active{background:var(--accent-soft);color:var(--accent)}.cfg-lookup-nav-list button.cfg-active svg{color:var(--accent)}.cfg-nav-count{margin-left:auto;font-size:11px;font-weight:600;background:var(--bg-muted);color:var(--text-muted);padding:1px 7px;border-radius:999px}.cfg-lookup-nav-list button.cfg-active .cfg-nav-count{background:var(--accent);color:#fff}.cfg-lookup-content{background:var(--bg-surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-sm);overflow:hidden;display:flex;flex-direction:column}.cfg-lookup-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;border-bottom:1px solid var(--border);background:var(--bg-muted);flex-wrap:wrap}.cfg-lookup-header h2{font-size:15px;font-weight:700;color:var(--text-primary);margin:0;display:flex;align-items:center;gap:8px}.cfg-lookup-header h2 svg{color:var(--accent);font-size:14px}.cfg-lookup-header .cfg-desc{font-size:12.5px;color:var(--text-muted);margin-top:2px}.cfg-lookup-actions{display:flex;gap:8px;align-items:center}.cfg-search-inline{position:relative}.cfg-search-inline svg{position:absolute;left:10px;top:50%;transform:translateY(-50%);color:var(--text-faint);font-size:12px}.cfg-search-inline input{height:36px;padding:0 12px 0 32px;border:1px solid var(--border);border-radius:var(--radius-sm);font-family:var(--font);font-size:13px;background:var(--bg-surface);color:var(--text-primary);width:200px}.cfg-search-inline input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px #0f3a6f1f}.cfg-btn-primary{height:36px;padding:0 14px;background:var(--accent);border:none;border-radius:var(--radius-sm);font-family:var(--font);font-weight:600;font-size:13px;color:#fff;display:inline-flex;align-items:center;gap:7px;cursor:pointer;transition:background .15s;white-space:nowrap}.cfg-btn-primary:hover{background:var(--accent-hover)}.cfg-btn-secondary{height:36px;padding:0 14px;background:var(--bg-surface);border:1px solid var(--border);border-radius:var(--radius-sm);font-family:var(--font);font-weight:500;font-size:13px;color:var(--text-secondary);cursor:pointer;transition:background .12s,border-color .12s}.cfg-btn-secondary:hover{background:var(--bg-subtle);border-color:var(--border-strong)}.cfg-lookup-table-wrap{overflow-x:auto;flex:1}.cfg-lookup-table-wrap table{width:100%;border-collapse:collapse;font-size:13px}.cfg-lookup-table-wrap th{background:var(--bg-muted);color:var(--text-muted);font-weight:600;font-size:11px;letter-spacing:.4px;text-transform:uppercase;padding:11px 16px;text-align:left;border-bottom:1px solid var(--border);white-space:nowrap}.cfg-lookup-table-wrap td{padding:10px 16px;border-bottom:1px solid var(--border);color:var(--text-secondary);vertical-align:middle}.cfg-lookup-table-wrap tr:last-child td{border-bottom:none}.cfg-lookup-table-wrap tbody tr{transition:background .12s}.cfg-lookup-table-wrap tbody tr:hover td{background:#f8fafc}.cfg-code-tag{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;font-weight:600;padding:2px 8px;border-radius:6px;background:var(--bg-subtle);color:var(--text-secondary)}.cfg-report-tick{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;background:var(--success, #16a34a);color:#fff}.cfg-report-tick svg{width:11px;height:11px}.cfg-status-pill{font-size:11px;font-weight:600;padding:3px 10px;border-radius:var(--radius-full);display:inline-flex;align-items:center;gap:5px}.cfg-status-pill:before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}.cfg-status-pill.cfg-active{background:var(--success-soft, #ecfdf5);color:var(--success, #047857)}.cfg-status-pill.cfg-inactive{background:var(--bg-subtle);color:var(--text-muted)}.cfg-color-dot{width:12px;height:12px;border-radius:50%;display:inline-block;border:1px solid rgba(0,0,0,.08);vertical-align:middle;margin-right:6px}.cfg-action-btn{width:30px;height:30px;border:none;background:transparent;color:var(--text-faint);border-radius:var(--radius-sm);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;font-size:12px;transition:background .12s,color .12s}.cfg-action-btn:hover{background:var(--bg-subtle);color:var(--text-secondary)}.cfg-action-btn.cfg-delete:hover{background:var(--danger-soft, #fef2f2);color:var(--danger, #b91c1c)}.cfg-actions-cell{display:flex;align-items:center;gap:2px;justify-content:flex-end}.cfg-empty-state{padding:48px 24px;text-align:center;color:var(--text-muted)}.cfg-empty-state svg{font-size:32px;color:var(--text-faint);margin-bottom:12px}.cfg-empty-state p{font-size:14px;margin-bottom:4px}.cfg-empty-state span{font-size:12.5px;color:var(--text-faint)}.cfg-loading{padding:40px;text-align:center;color:var(--text-muted);font-size:13px}.cfg-modal-overlay{display:none;position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a80;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);z-index:1000;justify-content:center;align-items:center;padding:16px}.cfg-modal-overlay.cfg-show{display:flex}.cfg-modal-content{background:var(--bg-surface);border-radius:16px;max-width:480px;width:100%;max-height:90vh;display:flex;flex-direction:column;box-shadow:0 24px 48px #0f172a2e;animation:cfgModalIn .2s ease;overflow:hidden}@keyframes cfgModalIn{0%{transform:translateY(12px) scale(.98);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}.cfg-modal-header{display:flex;align-items:flex-start;justify-content:space-between;padding:18px 22px 14px;border-bottom:1px solid var(--border);flex-shrink:0}.cfg-modal-header h3{font-weight:700;font-size:16px;color:var(--text-primary);display:flex;align-items:center;gap:10px;margin:0}.cfg-modal-header h3 .cfg-modal-icon{width:32px;height:32px;border-radius:8px;background:linear-gradient(135deg,#0f3a6f,#1a4a8a);color:#fff;display:flex;align-items:center;justify-content:center;font-size:13px}.cfg-modal-close{width:32px;height:32px;border:none;background:transparent;border-radius:var(--radius-sm);color:var(--text-muted);font-size:14px;cursor:pointer;display:flex;align-items:center;justify-content:center}.cfg-modal-close:hover{background:var(--bg-subtle);color:var(--text-secondary)}.cfg-modal-body{padding:18px 22px;overflow-y:auto;flex:1}.cfg-form-group{margin-bottom:14px}.cfg-form-group:last-child{margin-bottom:0}.cfg-form-group label{font-weight:600;font-size:12px;color:var(--text-secondary);display:block;margin-bottom:5px}.cfg-form-group label .cfg-required{color:var(--danger, #b91c1c)}.cfg-form-group input,.cfg-form-group select,.cfg-form-group textarea{width:100%;height:38px;padding:0 12px;border:1px solid var(--border);border-radius:var(--radius-sm);font-family:var(--font);font-size:13px;color:var(--text-primary);background:var(--bg-surface)}.cfg-form-group select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;padding-right:32px;cursor:pointer}.cfg-form-group textarea{height:auto;min-height:72px;padding:10px 12px;resize:vertical}.cfg-form-group input:focus,.cfg-form-group select:focus,.cfg-form-group textarea:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px #0f3a6f1f}.cfg-form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.cfg-modal-content.case-type-modal{max-width:620px}.case-type-modal .cfg-form-row{gap:14px;margin-bottom:14px}.case-type-modal .cfg-form-row:last-child{margin-bottom:0}.case-type-modal .cfg-form-row .cfg-form-group{margin-bottom:0}.case-type-modal .cfg-form-row.cfg-form-row-3{grid-template-columns:1fr 1fr 1fr}.case-type-modal .cfg-form-row.cfg-form-row-code{grid-template-columns:1fr 160px;gap:8px}.case-type-modal .cfg-form-group input[readonly]{background:var(--bg-muted, #f8fafc);color:var(--text-secondary);cursor:default}.case-type-modal .cfg-form-group input[readonly]:focus{border-color:var(--border);box-shadow:none}.case-type-modal .cfg-color-picker-wrap{display:flex;align-items:stretch;gap:0;height:38px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--bg-surface);overflow:hidden}.case-type-modal .cfg-color-picker-wrap input[type=color]{flex:0 0 20%;width:auto;min-width:0;height:auto;padding:0;border:none;border-radius:0;background:none}.case-type-modal .cfg-color-picker-wrap input[type=color]::-webkit-color-swatch-wrapper{padding:0}.case-type-modal .cfg-color-picker-wrap input[type=color]::-webkit-color-swatch{border:none;border-radius:0}.case-type-modal .cfg-color-picker-wrap span{flex:1 1 auto;min-width:0;display:flex;align-items:center;padding:0 10px;border-left:1px solid var(--border);font-family:monospace;font-size:13px;font-weight:600;color:var(--text-secondary);white-space:nowrap;overflow:hidden}.case-type-modal .cfg-doc-title{display:block;font-size:12px;font-weight:600;color:var(--text-secondary);margin-bottom:5px}.case-type-modal .cfg-doc-grid{display:flex;flex-wrap:wrap;gap:8px}.case-type-modal .cfg-doc-chip{flex:1 1 0;min-width:0;justify-content:center;display:flex;align-items:center;gap:6px;padding:5px 8px;background:var(--bg-muted);border:1px solid var(--border);border-radius:var(--radius-sm);font-size:12px;color:var(--text-secondary);cursor:pointer;transition:all .15s}.case-type-modal .cfg-doc-chip:hover{border-color:var(--accent);background:var(--accent-soft)}.case-type-modal .cfg-doc-chip-toggle,.case-type-modal .cfg-doc-chip-toggle:hover{border-color:transparent}.case-type-modal .cfg-doc-chip-toggle{flex:0 0 auto;padding:5px 10px;margin-left:12px}.case-type-modal .cfg-doc-chip-wide{flex:1.6 1 0}.case-type-modal .cfg-doc-chip>input{accent-color:var(--accent);width:13px;height:13px;flex:0 0 auto}.case-type-modal .cfg-field-row{display:grid;grid-template-columns:1fr 160px;gap:8px;align-items:center}.case-type-modal .cfg-field-row-actions{display:flex;gap:8px}.case-type-modal .cfg-field-row-actions .cfg-btn-secondary{flex:1 1 0;height:38px;padding:0 8px}.cfg-modal-content.case-type-dx-modal{max-width:680px}.case-type-dx-modal .cfg-dx-picker-search{margin-bottom:12px}.case-type-dx-modal .cfg-dx-picker-search input{width:100%}.case-type-dx-modal .cfg-dx-picker-table-wrap{max-height:320px;overflow-y:auto;border:1px solid var(--border);border-radius:var(--radius-sm)}.case-type-dx-modal .cfg-dx-picker-table-wrap thead th{position:sticky;top:0;z-index:1}.case-type-dx-modal .cfg-dx-pick-row{cursor:pointer}.case-type-dx-modal .cfg-dx-code{font-family:monospace;color:var(--text-secondary);white-space:nowrap}.cfg-form-actions{display:flex;justify-content:flex-end;gap:10px;padding:14px 22px;border-top:1px solid var(--border);background:var(--bg-muted);flex-shrink:0}.cfg-form-actions .cfg-btn-primary,.cfg-form-actions .cfg-btn-secondary{height:38px}.cfg-hint{font-size:11.5px;color:var(--text-faint);margin-top:4px}.cfg-placeholder-card{background:var(--bg-surface);border:1px solid var(--border);border-radius:var(--radius);padding:48px 24px;text-align:center;box-shadow:var(--shadow-sm)}.cfg-placeholder-card svg{font-size:36px;color:var(--text-faint);margin-bottom:14px}.cfg-placeholder-card h3{font-size:16px;font-weight:700;color:var(--text-primary);margin-bottom:6px}.cfg-placeholder-card p{font-size:13.5px;color:var(--text-muted);max-width:360px;margin:0 auto}.cfg-clinic-layout{display:grid;grid-template-columns:220px 1fr;gap:16px;min-height:520px}.cfg-clinic-nav{background:var(--bg-surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-sm);padding:10px 8px;height:fit-content;position:sticky;top:16px}.cfg-clinic-nav-label{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.4px;color:var(--text-muted);padding:6px 12px 10px}.cfg-clinic-nav-btn{display:flex;align-items:center;gap:9px;width:100%;padding:9px 12px;border:none;background:transparent;border-radius:var(--radius-sm);font-family:var(--font);font-size:13px;font-weight:500;color:var(--text-secondary);cursor:pointer;text-align:left;transition:background .12s,color .12s}.cfg-clinic-nav-btn svg{width:16px;height:16px;flex-shrink:0;opacity:.9}.cfg-clinic-nav-btn:hover{background:var(--bg-muted);color:var(--text-primary)}.cfg-clinic-nav-btn.cfg-active{background:var(--accent-soft);color:var(--accent);font-weight:600}.cfg-clinic-content{background:var(--bg-surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-sm);overflow:hidden;min-height:420px}.cfg-clinic-panel{display:none}.cfg-clinic-panel.cfg-active{display:block}.cfg-clinic-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:16px 20px;border-bottom:1px solid var(--border);flex-wrap:wrap}.cfg-clinic-header-left h2{font-size:15px;font-weight:700;color:var(--text-primary);display:flex;align-items:center;gap:8px;margin:0}.cfg-clinic-header-left h2 svg{width:18px;height:18px;color:var(--text-secondary)}.cfg-clinic-header-left p{font-size:12.5px;color:var(--text-muted);margin-top:3px}.cfg-clinic-header-right{display:flex;align-items:center;gap:8px}.cfg-clinic-body{padding:20px}.cfg-form-section{margin-bottom:24px}.cfg-form-section:last-child{margin-bottom:0}.cfg-form-section-title{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.4px;color:var(--text-muted);margin-bottom:14px;padding-bottom:8px;border-bottom:1px solid #f1f5f9}.cfg-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.cfg-form-grid.cfg-three{grid-template-columns:1fr 1fr 1fr}.cfg-field{display:flex;flex-direction:column;gap:4px}.cfg-field.cfg-full{grid-column:1 / -1}.cfg-field label{font-size:12px;font-weight:600;color:var(--text-secondary)}.cfg-field input,.cfg-field select,.cfg-field textarea{height:38px;padding:0 12px;border:1px solid var(--border);border-radius:8px;font-size:13px;font-family:var(--font);color:var(--text-primary);background:#fff}.cfg-field textarea{height:auto;min-height:80px;padding:10px 12px;resize:vertical}.cfg-field input:focus,.cfg-field select:focus,.cfg-field textarea:focus{outline:none;border-color:#93c5fd;box-shadow:0 0 0 3px #3b82f61f}.cfg-form-actions-row{display:flex;justify-content:flex-end;gap:8px;margin-top:20px;padding-top:16px;border-top:1px solid #f1f5f9}.cfg-hours-grid{display:flex;flex-direction:column;gap:8px}.cfg-hours-row{display:grid;grid-template-columns:110px 1fr 1fr 90px 40px;gap:10px;align-items:center;padding:10px 12px;background:#f8fafc;border:1px solid #f1f5f9;border-radius:8px}.cfg-hours-row.cfg-closed{opacity:.65}.cfg-day-label{font-size:13px;font-weight:600;color:var(--text-primary)}.cfg-hours-row input[type=time]{height:34px;padding:0 8px;border:1px solid var(--border);border-radius:6px;font-size:13px;font-family:var(--font);background:#fff}.cfg-hours-row input[type=time]:disabled{background:#f1f5f9;color:var(--text-muted)}.cfg-toggle-wrap{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--text-secondary)}.cfg-toggle-switch{position:relative;width:40px;height:22px;flex-shrink:0}.cfg-toggle-switch input{opacity:0;width:0;height:0;position:absolute}.cfg-toggle-slider{position:absolute;top:0;right:0;bottom:0;left:0;background:#cbd5e1;border-radius:999px;cursor:pointer;transition:background .2s}.cfg-toggle-slider:before{content:"";position:absolute;width:16px;height:16px;left:3px;top:3px;background:#fff;border-radius:50%;transition:transform .2s;box-shadow:0 1px 2px #00000026}.cfg-toggle-switch input:checked+.cfg-toggle-slider{background:var(--accent)}.cfg-toggle-switch input:checked+.cfg-toggle-slider:before{transform:translate(18px)}.cfg-sub-tabs{display:flex;gap:4px;margin-bottom:16px;flex-wrap:wrap;border-bottom:1px solid var(--border);padding-bottom:8px}.cfg-sub-tab{padding:6px 14px;border-radius:6px;border:none;background:transparent;font-size:13px;font-weight:500;font-family:var(--font);color:var(--text-secondary);cursor:pointer}.cfg-sub-tab:hover{background:#f8fafc;color:var(--text-primary)}.cfg-sub-tab.cfg-active{background:var(--accent-soft);color:var(--accent);font-weight:600}@media(max-width:900px){.cfg-lookup-layout{grid-template-columns:1fr}.cfg-lookup-nav{position:sticky;top:0;z-index:5}.cfg-lookup-nav-list{display:flex;flex-wrap:wrap;gap:4px}.cfg-lookup-nav-list button{width:auto}}.cfg-color-swatch{display:inline-block;width:24px;height:24px;border-radius:6px;border:2px solid rgba(0,0,0,.1);vertical-align:middle}.cfg-color-picker-wrap{display:flex;align-items:center;gap:10px}.cfg-color-picker-wrap input[type=color]{width:40px;height:36px;border:1px solid var(--border-color, #d1d5db);border-radius:6px;padding:2px;cursor:pointer;background:none}.cfg-color-picker-wrap input[type=color]::-webkit-color-swatch-wrapper{padding:2px}.cfg-color-picker-wrap input[type=color]::-webkit-color-swatch{border:none;border-radius:4px}.cfg-color-label{font-size:13px;color:var(--text-secondary, #6b7280);font-family:monospace}.cfg-search-wide input{width:360px}.cfg-dx-table{width:100%;border-collapse:collapse;font-size:13px}.cfg-dx-table thead th{background:var(--bg-sidebar, #1a3a5c);color:#fff;font-weight:600;font-size:11px;text-transform:uppercase;letter-spacing:.03em;padding:8px 12px;text-align:left;white-space:nowrap}.cfg-dx-table tbody tr{border-bottom:1px solid var(--border, #e5e7eb);transition:background .1s}.cfg-dx-table tbody tr:hover{background:var(--bg-hover, #f0f4f8)}.cfg-dx-table td{padding:8px 12px;vertical-align:top;line-height:1.5}.cfg-dx-def{color:var(--text-secondary, #6b7280);max-width:320px;overflow:hidden;text-overflow:ellipsis}.cfg-dx-syn{color:var(--text-secondary, #6b7280);font-style:italic;max-width:200px;overflow:hidden;text-overflow:ellipsis}.cfg-dx-pagination{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;padding:12px 16px;border-top:1px solid var(--border);background:var(--bg-muted)}.cfg-dx-pagination .cfg-dx-info{font-size:13px;color:var(--text-muted);font-weight:500}.cfg-dx-page-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.cfg-dx-page-size{display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--text-muted);font-weight:500}.cfg-dx-page-size select{height:32px;padding:0 28px 0 10px;border:1px solid var(--border);border-radius:var(--radius-sm);font-family:var(--font);font-size:13px;background:var(--bg-surface);color:var(--text-secondary);cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}.cfg-dx-page-size select:focus{outline:none;border-color:var(--accent)}.cfg-dx-pages{display:flex;gap:4px;align-items:center}.cfg-dx-pages button{min-width:32px;height:32px;padding:0 8px;border:1px solid transparent;border-radius:var(--radius-sm);background:transparent;font-size:13px;color:var(--text-secondary);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .12s,border-color .12s,color .12s}.cfg-dx-pages button:hover:not(:disabled){background:var(--bg-surface);border-color:var(--border)}.cfg-dx-pages button.active{background:var(--accent);color:#fff;border-color:var(--accent)}.cfg-dx-pages button:disabled{opacity:.4;cursor:not-allowed}.cfg-dx-code-link{background:none;border:none;padding:0;font-family:var(--font);font-size:13px;font-weight:600;color:var(--accent, #1a4a7a);cursor:pointer;text-decoration:underline;text-underline-offset:2px}.cfg-dx-code-link:hover{color:var(--accent-hover, #0f3a5c);text-decoration:none}.cfg-dx-action-tile{background:var(--bg-surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-sm);padding:14px;align-self:start}.cfg-dx-action-tile-title{font-size:11px;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.4px;border-bottom:1px solid var(--border);background:var(--bg-muted);margin:-14px -14px 12px;padding:14px 16px 10px;border-radius:var(--radius) var(--radius) 0 0}.cfg-dx-add-btn{width:100%;justify-content:center;font-size:12px;padding:8px 12px}.cfg-dx-action-tile p{margin:10px 0;font-size:11px;line-height:1.5;color:var(--text-secondary, #6b7280)}.cfg-dx-table tbody tr.cfg-dx-selected{background:#eff6ff}.cfg-dx-table td input[type=checkbox]{width:16px;height:16px;cursor:pointer;accent-color:var(--accent, #1a4a7a)}.cfg-modal-large{max-width:800px;width:90%}.cfg-dx-details-content{display:flex;flex-direction:column;gap:16px}.cfg-detail-row{display:flex;flex-direction:column;gap:6px}.cfg-detail-row label{font-size:12px;font-weight:600;color:var(--text-muted, #64748b);text-transform:uppercase;letter-spacing:.3px}.cfg-detail-row span{font-size:14px;color:var(--text-primary, #1e293b);line-height:1.5}.cfg-detail-row p{font-size:14px;color:var(--text-primary, #1e293b);line-height:1.6;margin:0;padding:12px;background:var(--bg-muted, #f8fafc);border-radius:6px;border-left:3px solid var(--accent, #1a4a7a)}.cfg-dx-subcategories{margin:0;padding-left:20px;font-size:13px;color:var(--text-primary, #1e293b);line-height:1.6}.cfg-dx-subcategories li{margin-bottom:4px}.cfg-dx-external-link{display:inline-flex;align-items:center;color:var(--accent, #1a4a7a);text-decoration:none;font-size:14px;font-weight:500}.cfg-dx-external-link:hover{text-decoration:underline}.cfg-detail-section{display:flex;flex-direction:column;gap:12px;padding-bottom:16px;border-bottom:1px solid var(--border, #e5e7eb)}.cfg-detail-section:last-child{border-bottom:none;padding-bottom:0}.cfg-detail-section-title{font-size:14px;font-weight:600;color:var(--text-primary, #1e293b);margin:0;padding:0;text-transform:uppercase;letter-spacing:.5px;color:var(--accent, #1a4a7a)}.cfg-code-highlight{display:inline-block;padding:0;border-radius:0;font-weight:600;font-size:14px;font-family:Courier New,monospace}.cfg-badge{display:inline-block;padding:3px 10px;background:var(--bg-muted, #f1f5f9);color:var(--text-secondary, #64748b);border-radius:12px;font-size:12px;font-weight:500;text-transform:capitalize}.cfg-badge-required{background:#fef3c7;color:#92400e}.cfg-badge-active{background:#d1fae5;color:#065f46}.cfg-badge-inactive{background:#fee2e2;color:#991b1b}.cfg-definition-box{font-size:14px;color:var(--text-primary, #1e293b);line-height:1.6;margin:0;padding:12px;background:var(--bg-muted, #f8fafc);border-radius:6px;border-left:3px solid var(--accent, #1a4a7a)}.cfg-index-terms{margin:0;padding-left:20px;font-size:13px;color:var(--text-primary, #1e293b);line-height:1.6}.cfg-index-terms li{margin-bottom:6px;padding-left:4px}.cfg-entity-list{margin:0;padding-left:20px;font-size:13px;line-height:1.6}.cfg-entity-list li{margin-bottom:4px}.cfg-entity-link{color:var(--accent, #1a4a7a);text-decoration:none;font-family:Courier New,monospace;font-size:12px;word-break:break-all}.cfg-entity-link:hover{text-decoration:underline}.cfg-postcoordination-item{padding:10px;background:var(--bg-muted, #f8fafc);border-radius:6px;border:1px solid var(--border, #e5e7eb)}.cfg-postcoordination-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.cfg-axis-name{font-weight:600;font-size:13px;color:var(--text-primary, #1e293b);text-transform:capitalize}.cfg-browser-btn{display:inline-flex;align-items:center;gap:8px;padding:10px 20px;background:var(--accent, #1a4a7a);color:#fff;border-radius:6px;text-decoration:none;font-weight:500;font-size:14px;transition:background .2s}.cfg-browser-btn:hover{background:var(--accent-hover, #0f3a5c);color:#fff}.inv-layout{display:grid;grid-template-columns:240px 1fr;gap:16px;align-items:start}.inv-sidebar{display:flex;flex-direction:column;gap:15px}.inv-card{background:var(--bg-surface, #fff);border:1px solid var(--border);border-radius:12px;box-shadow:0 4px 12px #0000000f;overflow:hidden}.inv-header{background:#1e3a5f;padding:.85rem 1.25rem;display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}.inv-header h2{font-size:1.05rem;font-weight:600;color:#fff;white-space:nowrap}.inv-header-tools{display:flex;align-items:center;gap:.45rem}.inv-tool-btn{width:36px;height:36px;border-radius:8px;border:none;background:#ffffff1a;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer}.inv-tool-btn:hover{background:#fff3}.inv-tool-btn svg{width:17px;height:17px}.inv-save-btn{height:36px;padding:0 1rem;border-radius:8px;border:none;background:#fff;color:#1e3a5f;font-size:.82rem;font-weight:600;font-family:inherit;cursor:pointer;display:inline-flex;align-items:center;gap:.3rem}.inv-save-btn:hover{background:#f1f5f9}.inv-tabs{display:flex;gap:.25rem;padding:.75rem 1.25rem;background:#f8fafc;border-bottom:1px solid var(--border);overflow-x:auto}.inv-tab{padding:.45rem .95rem;border-radius:999px;border:1px solid transparent;background:transparent;font-size:.8rem;font-weight:500;font-family:inherit;color:var(--text-secondary, #475569);cursor:pointer;white-space:nowrap}.inv-tab:hover{color:var(--text-primary, #0f172a);background:#fff;border-color:var(--border)}.inv-tab.inv-active{background:#1e3a5f;color:#fff;border-color:#1e3a5f}.inv-toolbar{display:flex;align-items:center;gap:.75rem;padding:.9rem 1.25rem;border-bottom:1px solid var(--border);flex-wrap:wrap}.inv-search-wrap{position:relative;flex:1;min-width:200px}.inv-search-wrap svg{position:absolute;left:.75rem;top:50%;transform:translateY(-50%);width:16px;height:16px;color:var(--text-muted, #94a3b8);pointer-events:none}.inv-search-wrap input{width:100%;height:38px;padding:0 .75rem 0 2.35rem;border:1px solid var(--border);border-radius:8px;font-size:.85rem;font-family:inherit;color:var(--text-primary, #0f172a);background:#fff}.inv-search-wrap input:focus{outline:none;border-color:#93c5fd;box-shadow:0 0 0 3px #3b82f626}.inv-filter-select{height:38px;padding:0 .75rem;border:1px solid var(--border);border-radius:8px;font-size:.85rem;font-family:inherit;color:var(--text-primary, #0f172a);background:#fff;min-width:140px}.inv-filter-select:focus{outline:none;border-color:#93c5fd;box-shadow:0 0 0 3px #3b82f626}.inv-results-meta{padding:.65rem 1.25rem;font-size:.78rem;color:var(--text-muted, #94a3b8);border-bottom:1px solid var(--border);background:#fafbfc}.inv-table-wrap{overflow-x:auto}.inv-table{width:100%;border-collapse:collapse;font-size:.78rem}.inv-table thead{background:#f8fafc}.inv-table th{text-align:left;padding:.7rem 1rem;font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted, #94a3b8);border-bottom:1px solid var(--border);white-space:nowrap}.inv-table td{padding:.85rem 1rem;border-bottom:1px solid #f1f5f9;color:var(--text-primary, #0f172a);vertical-align:middle}.inv-table tbody tr:hover{background:#f8fafc}.inv-table tbody tr:last-child td{border-bottom:none}.inv-test-name{font-weight:500;color:var(--text-primary, #0f172a)}.inv-test-code{font-size:.75rem;color:var(--text-muted, #94a3b8);font-family:ui-monospace,monospace}.inv-price{font-weight:600;color:var(--text-primary, #0f172a);white-space:nowrap}.inv-badge{display:inline-flex;align-items:center;gap:.3rem;padding:.2rem .55rem;border-radius:999px;font-size:.7rem;font-weight:600;white-space:nowrap}.inv-badge-lab{background:#eff6ff;color:#1d4ed8}.inv-badge-rad{background:#f5f3ff;color:#6d28d9}.inv-badge-active{background:#ecfdf5;color:#047857}.inv-badge-inactive{background:#f1f5f9;color:#64748b}.inv-row-actions{display:flex;gap:.35rem}.inv-icon-btn{width:32px;height:32px;border-radius:7px;border:1px solid var(--border);background:#fff;color:var(--text-secondary, #475569);display:flex;align-items:center;justify-content:center;cursor:pointer}.inv-icon-btn:hover{background:#f8fafc;color:var(--text-primary, #0f172a)}.inv-icon-btn svg{width:15px;height:15px}.inv-right-panel{display:flex;flex-direction:column;gap:.85rem;position:sticky;top:1.25rem}.inv-panel-card{background:var(--bg-surface, #fff);border:1px solid var(--border);border-radius:12px;padding:1rem;box-shadow:0 1px 3px #0000000d}.inv-panel-title{font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted, #94a3b8);margin-bottom:.85rem;display:flex;align-items:center;gap:.35rem}.inv-panel-title svg{width:14px;height:14px}.inv-stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:.65rem}.inv-stat-box{background:#f8fafc;border-radius:10px;padding:.75rem;text-align:center}.inv-stat-box .inv-num{font-size:1.35rem;font-weight:700;color:var(--text-primary, #0f172a);line-height:1.2}.inv-stat-box .inv-lbl{font-size:.7rem;color:var(--text-muted, #94a3b8);margin-top:.15rem}.inv-stat-box.inv-lab .inv-num{color:#3b82f6}.inv-stat-box.inv-rad .inv-num{color:#8b5cf6}.inv-action-desc{font-size:.78rem;color:var(--text-secondary, #475569);line-height:1.55;margin-bottom:.85rem}.inv-panel-actions{display:flex;flex-direction:column;gap:.5rem}.inv-panel-actions .cfg-btn-primary,.inv-panel-actions .cfg-btn-secondary{width:100%;height:40px}.inv-quick-filters{display:flex;flex-direction:column;gap:.45rem}.inv-qf-item{display:flex;align-items:center;justify-content:space-between;padding:.5rem .65rem;border-radius:8px;background:#f8fafc;font-size:.8rem;color:var(--text-secondary, #475569);cursor:pointer;border:1px solid transparent}.inv-qf-item:hover{background:#fff;border-color:var(--border);color:var(--text-primary, #0f172a)}.inv-qf-item.inv-qf-active{background:#eff6ff;border-color:#bfdbfe;color:#1d4ed8;font-weight:500}.inv-qf-count{font-size:.72rem;font-weight:600;background:#fff;padding:.1rem .45rem;border-radius:999px;color:var(--text-muted, #94a3b8)}.inv-qf-item.inv-qf-active .inv-qf-count{background:#dbeafe;color:#1d4ed8}@media(max-width:1100px){.inv-layout{grid-template-columns:1fr}.inv-right-panel{position:static}}.cfg-modal-content.inv-modal-wide{max-width:620px}.inv-modal-section{display:flex;align-items:center;gap:8px;font-size:11.5px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted, #64748b);margin:18px 0 10px;padding-bottom:6px;border-bottom:1px solid var(--border, #e2e8f0)}.inv-modal-section:first-child{margin-top:0}.inv-modal-section .inv-section-icon{width:22px;height:22px;border-radius:5px;display:flex;align-items:center;justify-content:center;font-size:10px;flex-shrink:0}.inv-modal-section .inv-section-icon.sec-basic{background:#eff6ff;color:#2563eb}.inv-modal-section .inv-section-icon.sec-logistics{background:#f0fdf4;color:#16a34a}.inv-modal-section .inv-section-icon.sec-notes{background:#fefce8;color:#ca8a04}.inv-modal-wide .cfg-form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:14px}.inv-modal-wide .cfg-form-row:last-child{margin-bottom:0}.inv-modal-wide .cfg-form-group{margin-bottom:0}.inv-field-hint{font-size:11px;color:var(--text-faint, #94a3b8);margin-top:3px}.inv-modal-wide .cfg-form-full{grid-column:1 / -1}.inv-price-field{position:relative}.inv-price-field .inv-currency-prefix{position:absolute;left:12px;top:50%;transform:translateY(-50%);font-size:12px;font-weight:600;color:var(--text-muted, #64748b);pointer-events:none}.inv-price-field input{padding-left:42px!important}.inv-status-row{display:flex;align-items:center;justify-content:space-between;padding:10px 14px;border-radius:var(--radius-sm, 8px);border:1px solid var(--border, #e2e8f0);background:var(--bg-muted, #f8fafc)}.inv-status-row .inv-status-label{font-size:13px;font-weight:500;color:var(--text-primary)}.inv-status-row .inv-status-hint{font-size:11px;color:var(--text-faint, #94a3b8)}.inv-modal-wide .cfg-form-actions{padding:14px 24px;background:var(--bg-muted, #f8fafc);border-top:1px solid var(--border, #e2e8f0)}.inv-modal-wide .cfg-form-actions .cfg-btn-primary{min-width:120px}.inv-toggle-wrap{display:flex;align-items:center}.inv-toggle-btn{display:inline-flex;align-items:center;gap:8px;padding:6px 16px;border-radius:999px;border:1.5px solid transparent;font-family:var(--font);font-size:13px;font-weight:600;cursor:pointer;transition:all .2s ease;line-height:1}.inv-toggle-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}.inv-toggle-btn.inv-toggle-active{background:#ecfdf5;border-color:#86efac;color:#15803d}.inv-toggle-btn.inv-toggle-active .inv-toggle-dot{background:#22c55e}.inv-toggle-btn.inv-toggle-inactive{background:#f8fafc;border-color:#e2e8f0;color:#64748b}.inv-toggle-btn.inv-toggle-inactive .inv-toggle-dot{background:#94a3b8}.inv-toggle-btn:hover{filter:brightness(.96)}.inv-template-btn{color:#2563eb!important;background:#eff6ff!important;border-color:#bfdbfe!important}.inv-template-btn:hover{background:#dbeafe!important}.inv-tpl-row{padding:8px 12px;border-radius:var(--radius-sm, 8px);background:var(--bg-muted, #f8fafc);border:1px solid var(--border, #e2e8f0);gap:14px}.inv-tpl-cell{font-size:13px;color:var(--text-primary, #1e293b);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.inv-tpl-name{font-weight:600}.cfg-opt-table{border:1px solid var(--border, #e2e8f0);border-radius:8px;overflow:hidden}.cfg-opt-table-header{display:grid;grid-template-columns:1.4fr .8fr .8fr 32px;gap:8px;padding:8px 12px;background:var(--bg-muted, #f1f5f9);font-size:11px;font-weight:700;color:var(--text-secondary, #475569);text-transform:uppercase;letter-spacing:.3px}.cfg-opt-table-row{display:grid;grid-template-columns:1.4fr .8fr .8fr 32px;gap:8px;padding:6px 12px;align-items:center;border-top:1px solid var(--border, #f1f5f9)}.cfg-opt-table-row input,.cfg-opt-table-row select{height:32px;padding:0 8px;border:1px solid var(--border, #e2e8f0);border-radius:6px;font-size:13px;color:var(--text-primary, #0f172a);background:#fff;width:100%}.cfg-opt-table-row select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 8px center;padding-right:24px;cursor:pointer}.cfg-opt-table-row input:focus,.cfg-opt-table-row select:focus{outline:none;border-color:var(--accent, #0f3a6f);box-shadow:0 0 0 2px #0f3a6f1a}.cfg-opt-remove{width:28px;height:28px;border:none;background:transparent;color:var(--text-faint, #94a3b8);cursor:pointer;display:flex;align-items:center;justify-content:center;border-radius:6px;font-size:12px}.cfg-opt-remove:hover{background:#fef2f2;color:#dc2626}.cfg-opt-add{display:flex;align-items:center;gap:6px;width:100%;padding:8px 12px;border:none;border-top:1px solid var(--border, #f1f5f9);background:transparent;color:var(--accent, #0f3a6f);font-size:12px;font-weight:600;cursor:pointer}.cfg-opt-add:hover{background:var(--bg-muted, #f8fafc)}.inv-tpl-outcome-select{height:30px;padding:0 24px 0 8px;border:1px solid var(--border, #e2e8f0);border-radius:6px;font-size:12px;color:var(--text-primary, #0f172a);background:#fff;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 6px center;cursor:pointer;width:100%;max-width:160px}.inv-tpl-outcome-select:focus{outline:none;border-color:var(--accent, #0f3a6f);box-shadow:0 0 0 2px #0f3a6f1a}.consultation-page{--navy: #1e3a5f;--navy-dark: #162d4a;--success: #10b981;--blue-bg: #e0f2fe;--blue-text: #0369a1;--radius: 10px;--radius-sm: 6px;padding:0;background:#f1f5f9;display:flex;justify-content:center;min-height:100vh;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Arial,sans-serif;color:#1e293b}.consult-page-wrapper{max-width:1440px;width:100%;background:#fff;display:flex;flex-direction:column}.consult-body{display:grid;grid-template-columns:1fr 300px;flex:1;min-height:0;transition:grid-template-columns .25s ease}.consult-body.collapsed{grid-template-columns:1fr 0px}.consult-main{background:#f1f5f9;overflow-y:auto;padding:5px 10px 30px;min-width:0}.consult-sidebar{background:#fff;border-left:1px solid #e2e8f0;overflow-y:auto;overflow-x:hidden;transition:opacity .2s,visibility .2s}.consult-body.collapsed .consult-sidebar{opacity:0;visibility:hidden;pointer-events:none}.consult-sidebar-inner{padding:14px 14px 24px;display:flex;flex-direction:column;gap:10px}.patient-banner{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;background:var(--navy, #1e3a5f);border:none;border-radius:var(--radius, 10px);padding:12px 16px;margin-bottom:14px;color:#fff;box-shadow:none}.patient-banner-left{display:flex;align-items:center;gap:12px;flex:1;min-width:140px}.patient-avatar-lg{width:40px;height:40px;background:#fff3;border:none;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:.85rem;color:#fff;flex-shrink:0}.patient-name{font-weight:600;font-size:1.05rem;color:#fff;letter-spacing:0}.patient-meta{display:flex;flex-wrap:wrap;gap:8px;font-size:.78rem;color:#ffffffb3;margin-top:1px}.patient-meta span{display:inline-flex;align-items:center;gap:5px}.patient-meta svg{color:#ffffffe6;font-size:12px;width:14px}.patient-badges{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.patient-banner-right{display:flex;align-items:center;gap:10px;margin-left:auto;align-self:center}.patient-meta-right{font-size:.8rem;color:#ffffffd9;text-align:right;margin-top:0}.patient-badge{background:#ffffff1f;border:1px solid rgba(255,255,255,.2);padding:5px 12px;border-radius:9999px;font-size:12px;font-weight:600;color:#fff;display:inline-flex;align-items:center;gap:6px}.patient-badge svg{color:#ffffffe6;font-size:11px}.header-btn-icon{background:#ffffff26;border:none;color:#fff;width:34px;height:34px;border-radius:8px;font-size:1rem;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.header-btn-icon:hover{background:#ffffff47}.case-bar{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:nowrap;gap:16px;background:#fff;border:1px solid #e2e8f0;border-radius:var(--radius, 10px);padding:12px 14px;margin-bottom:14px;box-shadow:none}.case-bar-left{display:flex;flex-direction:column;align-items:flex-start;gap:8px;flex:0 0 auto;min-width:0;max-width:60%}.case-badge{display:inline-flex;align-items:center;gap:6px;background:#f8fafc;color:#334155;padding:4px 12px;border-radius:7px;font-size:.8rem;font-weight:600;border:1px solid #e2e8f0;height:auto;box-sizing:border-box;min-width:0;max-width:100%;width:fit-content}.case-badge-name{flex:0 1 auto;min-width:0;max-width:176px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.case-badge-code{flex-shrink:0;background:var(--navy, #1e3a5f);color:#fff;padding:1px 7px;border-radius:10px;font-size:.7rem;font-weight:600}.case-badge-visit{flex:0 0 auto;margin-left:auto;padding:1px 7px;background:var(--navy, #1e3a5f);color:#fff;border:1px solid var(--navy, #1e3a5f);border-radius:9999px;font-size:11px;font-weight:700;line-height:1.45;font-variant-numeric:tabular-nums}.case-badge.active{background:var(--blue-bg, #e0f2fe);color:var(--blue-text, #0369a1);border-color:transparent}.case-badge.terminated{background:#f1f5f9;color:#64748b;border-color:#cbd5e1}.case-badge.clickable{cursor:pointer;transition:box-shadow .12s ease,filter .12s ease}.case-badge.clickable:hover{box-shadow:0 2px 8px #0f172a24;filter:brightness(1.03)}.case-badge.clickable:focus-visible{outline:none;box-shadow:0 0 0 3px #1e3a5f38}.case-modal .case-type-select.readonly{cursor:default}.case-modal .case-type-select.readonly:hover{border-color:#e2e8f0}.case-modal .case-field-input[readonly],.case-modal .case-field-textarea[readonly]{background:#f8fafc;color:#475569;cursor:default}.case-modal .case-field-input[readonly]:focus,.case-modal .case-field-textarea[readonly]:focus{outline:none;border-color:#e2e8f0;box-shadow:none}.case-visits{display:flex;align-items:center;gap:6px;flex:1 1 auto;min-width:0;margin-left:auto}.case-visits-track{display:flex;align-items:center;gap:6px;flex:1 1 auto;min-width:0;padding:2px 1px;overflow-x:auto;overflow-y:hidden;scroll-behavior:smooth;scrollbar-width:none}.case-visits-track::-webkit-scrollbar{display:none}.case-visits-nav{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:28px;height:28px;padding:0;background:#fff;border:1px solid #e2e8f0;border-radius:6px;color:#64748b;font-size:14px;cursor:pointer;transition:background .12s,border-color .12s,color .12s}.case-visits-nav:hover{background:#f8fafc;border-color:#cbd5e1;color:var(--navy, #1e3a5f)}.case-visits-nav:focus{outline:none}.visit-counter{flex-shrink:0;font-size:.72rem;color:#64748b;white-space:nowrap;padding:0 4px;font-variant-numeric:tabular-nums}.case-visit-tile{display:flex;flex-direction:column;justify-content:center;gap:1px;flex:0 0 auto;box-sizing:border-box;width:auto;min-width:0;padding:5px 10px;background:#fff;border:1px solid #e2e8f0;border-radius:6px;color:#475569;line-height:1.3;box-shadow:none}.case-visit-row{display:flex;align-items:center;min-width:0;width:100%}.case-visit-row-top{justify-content:flex-start;gap:6px}.case-visit-label{flex-shrink:0;font-size:.72rem;font-weight:600;line-height:1.1;color:#475569;font-variant-numeric:tabular-nums}.case-visit-date{flex-shrink:0;font-size:.68rem;font-weight:500;color:#94a3b8;font-variant-numeric:tabular-nums}.case-visit-outcome{gap:4px;max-width:100%;opacity:.85}.case-visit-outcome-dot{flex-shrink:0;width:6px;height:6px;border-radius:50%}.case-visit-outcome-name{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:.65rem;font-weight:600;color:#475569}.case-visit-status{gap:4px;max-width:100%;margin-top:1px;opacity:.85}.case-visit-status-dot{flex-shrink:0;width:5px;height:5px;border-radius:50%}.case-visit-status-name{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:.6rem;font-weight:500;color:#64748b;text-transform:uppercase;letter-spacing:.02em}.case-visit-tile.current{background:var(--navy, #1e3a5f);border-color:var(--navy, #1e3a5f);color:#fff}.case-visit-tile.current .case-visit-label,.case-visit-tile.current .case-visit-outcome-name{color:#fff}.case-visit-tile.current .case-visit-status-name{color:#ffffffd1}.case-visit-tile.current .case-visit-date{color:#ffffffbf}.case-visit-tile.clickable{cursor:pointer;transition:background .12s ease,border-color .12s ease,box-shadow .12s ease}.case-visit-tile.clickable:hover{border-color:#cbd5e1;box-shadow:0 2px 6px #0f172a1f}.case-visit-tile.clickable:focus-visible{outline:none;box-shadow:0 0 0 3px #1e3a5f2e}.case-visit-tile.placeholder{background:#f8fafc;border-style:dashed;border-color:#e2e8f0;box-shadow:none}.case-visit-tile.placeholder .case-visit-label{color:#cbd5e1}.case-visits.terminated .case-visit-tile{background:#f8fafc;color:#94a3b8;box-shadow:none}.case-visits.terminated .case-visit-tile.current{background:#f1f5f9;border-color:#e2e8f0}.case-visits.terminated .case-visit-label,.case-visits.terminated .case-visit-outcome-name{color:#94a3b8}.case-controls{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.case-controls label{font-weight:600;font-size:12px;color:#64748b}.case-controls select{height:36px;padding:0 32px 0 12px;border:1px solid #e2e8f0;border-radius:8px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E") no-repeat right 10px center;font-family:Inter,sans-serif;font-size:13px;font-weight:500;color:#334155;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;min-width:150px}.case-controls select:disabled{opacity:.5;cursor:not-allowed}.case-controls select:focus{outline:none;border-color:var(--navy, #1e3a5f);box-shadow:0 0 0 3px #1e3a5f1f}.btn-case-toggle{height:auto;padding:5px 10px;background:#fff;border:1px solid #e2e8f0;border-radius:6px;font-family:Inter,sans-serif;font-weight:500;font-size:.75rem;color:#475569;display:inline-flex;align-items:center;gap:5px;cursor:pointer;transition:background .15s,border-color .15s;box-sizing:border-box}.btn-case-toggle:hover{background:#f8fafc;border-color:#cbd5e1}.btn-case-toggle:disabled{background:#f1f5f9;color:#94a3b8;border-color:#e2e8f0;cursor:default}.btn-case-toggle.inactive{background:var(--navy, #1e3a5f);color:#fff;border-color:var(--navy, #1e3a5f)}.btn-case-toggle.inactive:hover{background:var(--navy-dark, #162d4a)}.btn-case-toggle.inactive:disabled{background:#f1f5f9;color:#94a3b8;border-color:#e2e8f0;cursor:default}.btn-case-terminate{height:auto;padding:5px 10px;background:#ef4444;border:1px solid #ef4444;border-radius:6px;font-family:Inter,sans-serif;font-weight:500;font-size:.75rem;color:#fff;display:inline-flex;align-items:center;gap:5px;cursor:pointer;transition:background .15s,border-color .15s;box-sizing:border-box}.btn-case-terminate:hover{background:#dc2626;border-color:#dc2626}.btn-case-terminate:disabled{background:#f1f5f9;color:#94a3b8;border-color:#e2e8f0;cursor:default}.consult-modal.case-modal{width:620px}.consult-modal.visit-outcome-modal{width:460px;max-width:92vw}.visit-outcome-modal .consult-modal-body{padding:16px 20px;display:flex;flex-direction:column;gap:12px}.visit-outcome-modal .case-field{margin-top:0}.visit-outcome-modal select.case-field-input,.visit-outcome-modal #visitCaseStatusSelect.case-field-input{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0 32px 0 12px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E") no-repeat right 10px center;cursor:pointer}.visit-outcome-readonly-badge{margin-left:8px;padding:2px 8px;border-radius:10px;background:#f1f5f9;color:#64748b;font-size:11px;font-weight:600;vertical-align:middle}.visit-outcome-modal .visit-outcome-readonly-value{display:flex;align-items:center;gap:8px;min-height:38px;padding:0 12px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:6px;color:#334155;font-size:14px;cursor:default}.visit-outcome-modal .case-field-textarea[readonly]{background:#f8fafc;color:#475569;cursor:default;resize:none}.visit-outcome-modal .case-field-textarea[readonly]:focus{outline:none;border-color:#e2e8f0;box-shadow:none}.case-modal .consult-modal-body{padding:16px 20px;overflow:visible}.case-field-label{display:block;font-size:12px;font-weight:600;color:#64748b;margin-bottom:6px}.case-field{margin-top:12px}.case-field-input,.case-field-textarea{width:100%;background:#fff;border:1px solid #e2e8f0;border-radius:8px;font-family:Inter,sans-serif;font-size:13px;font-weight:400;color:#334155;transition:border-color .12s,box-shadow .12s}.case-field-input{height:34px;padding:0 10px}.case-field-textarea{padding:8px 10px;min-height:62px;line-height:1.45;resize:vertical}.case-field-input:focus,.case-field-textarea:focus{outline:none;border-color:#1e3a5f;box-shadow:0 0 0 3px #1e3a5f1a}.case-type-select-wrap{position:relative}.case-type-select{display:flex;align-items:center;gap:8px;width:100%;height:38px;padding:0 10px 0 12px;background:#fff;border:1px solid #e2e8f0;border-radius:8px;font-family:Inter,sans-serif;font-size:14px;font-weight:500;color:#334155;text-align:left;cursor:pointer;transition:border-color .12s,box-shadow .12s}.case-type-select:hover{border-color:#cbd5e1}.case-type-select:focus{outline:none}.case-type-select.open{border-color:#1e3a5f;box-shadow:0 0 0 3px #1e3a5f1a}.case-type-select:disabled{color:#94a3b8;cursor:default;background:#f8fafc}.case-dd-placeholder{color:#94a3b8;font-weight:400}.case-dd-chevron{display:inline-flex;margin-left:auto;color:#64748b;font-size:15px;transition:transform .12s}.case-type-select.open .case-dd-chevron{transform:rotate(180deg)}.case-type-dd{position:absolute;top:100%;left:0;right:0;margin-top:4px;padding:4px;max-height:236px;overflow-y:auto;background:#fff;border:1px solid #cbd5e1;border-radius:8px;box-shadow:0 8px 24px #0000001f;z-index:1000}.case-dd-row{display:grid;grid-template-columns:12px minmax(0,1fr) minmax(0,42%);align-items:center;gap:8px;width:100%;padding:7px 8px;background:none;border:none;font-family:Inter,sans-serif;text-align:left}.case-dd-head{position:sticky;top:0;background:#f8fafc;border-radius:6px;font-size:11px;font-weight:600;letter-spacing:.03em;text-transform:uppercase;color:#64748b}.case-dd-option{cursor:pointer;border-radius:6px;font-size:13px;color:#334155;transition:background .1s}.case-dd-option:hover{background:#f1f5f9}.case-dd-option.selected{background:#eff6ff}.case-dd-color{width:10px;height:10px;flex-shrink:0;border-radius:50%;background:#64748b;justify-self:center;box-shadow:inset 0 0 0 1px #0f172a1f}.case-dd-color-blank{background:transparent;box-shadow:none}.case-dd-name{flex:0 1 auto;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.case-dd-dept{justify-self:end;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:12px;color:#64748b;text-align:right}.case-dd-empty{padding:12px 8px;font-size:13px;color:#94a3b8;text-align:center}.case-detail{margin-top:14px;padding:4px 14px 14px;background:#fff;border:1px solid #e2e8f0;border-radius:10px}.case-detail-fields{display:grid;grid-template-columns:1fr 1fr 1.9fr;align-items:start;gap:12px;padding:12px 0 0}.case-detail .case-field{margin-top:0}.case-detail-fields+.case-field{margin-top:12px}.case-doc-grid{display:flex;flex-wrap:wrap;gap:8px}.case-doc-chip{display:flex;align-items:center;justify-content:center;gap:6px;flex:0 1 auto;min-width:0;padding:5px 8px;background:var(--bg-muted, #f8fafc);border:1px solid var(--border, #e2e8f0);border-radius:var(--radius-sm, 8px);font-size:12px;color:var(--text-secondary, #334155);white-space:nowrap}.case-doc-chip>input{accent-color:var(--accent, #0f3a6f);width:13px;height:13px;flex:0 0 auto;pointer-events:none}.case-doc-none{padding:5px 0;font-size:12px;color:#94a3b8}.case-detail-empty{margin-top:14px;padding:14px 0;border:1px dashed #e2e8f0;border-radius:10px;font-size:13px;color:#94a3b8;text-align:center}.case-modal-footer{display:flex;justify-content:flex-end;gap:10px;padding:14px 20px;border-top:1px solid #e2e8f0}.case-btn-cancel{height:36px;padding:0 16px;background:#fff;border:1px solid #e2e8f0;border-radius:8px;font-family:Inter,sans-serif;font-weight:600;font-size:13px;color:#475569;cursor:pointer;transition:background .12s}.case-btn-cancel:hover{background:#f1f5f9}.case-btn-confirm{height:36px;padding:0 18px;background:#1e3a5f;border:none;border-radius:8px;font-family:Inter,sans-serif;font-weight:600;font-size:13px;color:#fff;cursor:pointer;transition:background .12s}.case-btn-confirm:hover{background:#162d4a}.case-meta{display:flex;align-items:center;gap:14px;font-size:12px;color:#64748b;font-weight:500}.case-meta span{display:inline-flex;align-items:center;gap:5px}.case-meta svg{color:#1e3a5f;font-size:11px}.case-tag{background:#f8fafc;padding:3px 10px;border-radius:9999px;font-size:11px;font-weight:600;color:#334155;border:1px solid #e2e8f0}.section-card{background:#fff;border:1px solid #e2e8f0;border-radius:var(--radius, 10px);box-shadow:none;margin-bottom:12px;overflow:visible}.section-card-header{display:flex;align-items:center;justify-content:space-between;padding:10px 14px;border-bottom:1px solid #f1f5f9;background:#fff;gap:10px;-webkit-user-select:none;user-select:none}.section-card-header h4{font-weight:600;font-size:.8rem;color:#334155;display:flex;align-items:center;gap:6px;letter-spacing:-.1px;flex:1}.section-card-header h4 svg{color:#1e3a5f;font-size:13px}.section-card-body{padding:14px 16px}.section-card-header.collapsible{cursor:pointer;-webkit-user-select:none;user-select:none}.section-card-header.collapsible:hover{background:#f8fafc}.section-card-header .collapse-chevron{color:#64748b;font-size:12px;transition:transform .2s ease;display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px}.section-card.collapsed .section-card-header .collapse-chevron{transform:rotate(-90deg)}.section-card.collapsed .section-card-body{display:none}.section-header-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.prev-btn{background:#f1f5f9;border:1px solid #e2e8f0;color:#334155;padding:4px 10px;border-radius:20px;font-family:Inter,sans-serif;font-size:.72rem;font-weight:500;cursor:pointer;white-space:nowrap;display:inline-flex;align-items:center;gap:5px;transition:background .12s,border-color .12s,color .12s}.prev-btn:hover{background:var(--blue-bg, #e0f2fe);border-color:#bae6fd;color:var(--blue-text, #0369a1)}.prev-btn .count{background:var(--navy, #1e3a5f);color:#fff;padding:0 6px;border-radius:10px;font-size:.68rem;font-weight:600;min-width:18px;text-align:center}.prev-item-badge{background:#f1f5f9;color:#475569;border:1px solid #e2e8f0;padding:1px 8px;border-radius:9999px;font-size:11px;font-weight:600}.prev-item-badge.active{background:#ecfdf5;color:#047857;border-color:#a7f3d0}.prev-item-badge.resolved{background:#f8fafc;color:#64748b}.soap-tabs{display:flex;flex-wrap:wrap;gap:4px;padding:12px 16px 0;border-bottom:1px solid #e2e8f0;background:#f8fafc}.soap-tab{padding:10px 16px;font-weight:600;font-size:13px;color:#64748b;border-radius:8px 8px 0 0;cursor:pointer;background:transparent;border:none;border-bottom:2px solid transparent;display:inline-flex;align-items:center;gap:7px;font-family:Inter,sans-serif;transition:color .12s,background .12s;margin-bottom:-1px}.soap-tab:hover{color:#334155;background:#ffffff80}.soap-tab.active{color:#1e3a5f;background:#fff;border-bottom-color:#1e3a5f}.soap-tab svg{font-size:12px}.soap-panel{display:none;padding:16px 18px}.soap-panel.active-panel{display:block}.soap-label{font-weight:600;font-size:12px;color:#334155;display:block;margin-bottom:6px}.soap-panel textarea{width:100%;background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:12px 14px;font-family:Inter,sans-serif;font-size:13.5px;color:#0f172a;resize:vertical;min-height:88px;line-height:1.5;transition:border-color .15s,box-shadow .15s}.soap-panel textarea:focus{outline:none;border-color:#1e3a5f;box-shadow:0 0 0 3px #1e3a5f1f}.soap-panel textarea::placeholder{color:#94a3b8}.vital-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px;margin-bottom:16px}.vital-item{background:#f8fafc;border-radius:8px;padding:12px 14px;border:1px solid transparent;transition:border-color .12s}.vital-item:hover{border-color:#e2e8f0}.vital-label{font-size:11px;font-weight:600;color:#64748b;letter-spacing:.3px;text-transform:uppercase}.vital-value{font-weight:700;font-size:20px;color:#0f172a;margin-top:2px;letter-spacing:-.4px}.vital-unit{font-weight:400;font-size:12px;color:#64748b;margin-left:3px}.add-vitals-form{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end;padding-top:14px;border-top:1px solid #e2e8f0}.add-vitals-form .field{flex:1 0 90px}.add-vitals-form label{font-weight:600;font-size:11px;color:#64748b;display:block;margin-bottom:4px;text-transform:uppercase;letter-spacing:.2px}.add-vitals-form input{width:100%;height:36px;background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:0 12px;font-family:Inter,sans-serif;font-size:13px;color:#0f172a;transition:border-color .15s,box-shadow .15s}.add-vitals-form input:focus{outline:none;border-color:#1e3a5f;box-shadow:0 0 0 3px #1e3a5f1f}.btn-sm-primary{height:36px;padding:0 16px;background:#1e3a5f;border:none;border-radius:8px;font-family:Inter,sans-serif;font-weight:600;font-size:13px;color:#fff;display:inline-flex;align-items:center;gap:6px;cursor:pointer;white-space:nowrap;transition:background .15s}.btn-sm-primary:hover{background:#162d4a}.prescription-form{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end;margin-bottom:16px}.prescription-form .field{flex:1 0 140px}.prescription-form .field-small{flex:0 1 110px}.prescription-form .field-check{flex:0 1 auto;display:flex;align-items:center;gap:8px;padding-bottom:6px}.prescription-form label{font-weight:600;font-size:11px;color:#64748b;display:block;margin-bottom:4px;text-transform:uppercase;letter-spacing:.2px}.prescription-form .field-check label{margin-bottom:0;text-transform:none;font-weight:500;font-size:13px;color:#334155;cursor:pointer;display:flex;align-items:center;gap:6px}.prescription-form select,.prescription-form input{width:100%;height:38px;background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:0 12px;font-family:Inter,sans-serif;font-size:13px;color:#0f172a;transition:border-color .15s,box-shadow .15s}.prescription-form select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;padding-right:28px;cursor:pointer}.prescription-form select:focus,.prescription-form input:focus{outline:none;border-color:#1e3a5f;box-shadow:0 0 0 3px #1e3a5f1f}.prescription-form input[type=checkbox]{width:16px;height:16px;accent-color:#1e3a5f;cursor:pointer}.prescribed-table-wrap{border:1px solid #e2e8f0;border-radius:8px;overflow:hidden}.prescribed-table-wrap table{width:100%;border-collapse:collapse;font-size:13px}.prescribed-table-wrap th{background:#f8fafc;color:#64748b;font-weight:600;padding:10px 12px;text-align:left;font-size:11px;letter-spacing:.3px;text-transform:uppercase;border-bottom:1px solid #e2e8f0}.prescribed-table-wrap td{padding:11px 12px;border-bottom:1px solid #e2e8f0;color:#334155;vertical-align:middle}.prescribed-table-wrap tr:last-child td{border-bottom:none}.prescribed-table-wrap tbody tr:hover td{background:#f8fafc}.med-name-cell{font-weight:600;color:#0f172a}.term-badge{font-size:11px;font-weight:600;padding:2px 10px;border-radius:9999px;display:inline-block}.term-badge.long{background:#ecfdf5;color:#047857}.term-badge.short{background:#fffbeb;color:#b45309}.remove-med{width:28px;height:28px;color:#94a3b8;background:transparent;border:none;cursor:pointer;font-size:13px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;transition:background .12s,color .12s}.remove-med:hover{background:#fef2f2;color:#b91c1c}.prescription-footer{margin-top:10px;font-size:12px;color:#64748b;font-weight:500;text-align:right}.prescription-footer svg{margin-right:4px}.diagnosis-form{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end;margin-bottom:16px}.diagnosis-form .field{flex:1 1 220px}.diagnosis-form .field-small{flex:0 1 120px}.diagnosis-form label{font-weight:600;font-size:11px;color:#64748b;display:block;margin-bottom:4px;text-transform:uppercase;letter-spacing:.2px}.diagnosis-form input,.diagnosis-form select{width:100%;height:38px;background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:0 12px;font-family:Inter,sans-serif;font-size:13px;color:#0f172a;transition:border-color .15s,box-shadow .15s}.diagnosis-form select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;padding-right:28px;cursor:pointer}.diagnosis-form input:focus,.diagnosis-form select:focus{outline:none;border-color:#1e3a5f;box-shadow:0 0 0 3px #1e3a5f1f}.dx-loader{position:absolute;right:10px;top:34px;z-index:10}.dx-spinner{width:16px;height:16px;border:2px solid #e2e8f0;border-top-color:#1e3a5f;border-radius:50%;animation:dx-spin .6s linear infinite}@keyframes dx-spin{to{transform:rotate(360deg)}}.dx-dropdown{position:absolute;top:100%;left:0;right:0;min-width:680px;max-height:280px;overflow-y:auto;background:#fff;border:1px solid #cbd5e1;border-radius:8px;box-shadow:0 8px 24px #0000001f;z-index:1000;margin-top:4px}.dx-dropdown-table{width:100%;border-collapse:collapse;font-size:12px}.dx-dropdown-table thead{position:sticky;top:0;z-index:1}.dx-dropdown-table thead th{background:#1e3a5f;color:#fff;font-weight:600;font-size:11px;text-transform:uppercase;letter-spacing:.03em;padding:7px 10px;text-align:left;white-space:nowrap}.dx-dropdown-table tbody tr{cursor:pointer;border-bottom:1px solid #f1f5f9;transition:background .1s}.dx-dropdown-table tbody tr:hover{background:#eff6ff}.dx-dropdown-table tbody tr:last-child{border-bottom:none}.dx-dropdown-table td{padding:6px 10px;vertical-align:top;line-height:1.4}.dx-code-cell{white-space:nowrap;font-weight:600;color:#1e40af;width:80px}.dx-title-cell{font-weight:500;color:#0f172a;min-width:160px;max-width:220px}.dx-def-cell{color:#64748b;max-width:260px;overflow:hidden;text-overflow:ellipsis}.dx-syn-cell{color:#475569;font-style:italic;max-width:180px;overflow:hidden;text-overflow:ellipsis}.dx-type-badge{font-size:11px;font-weight:600;padding:2px 10px;border-radius:9999px;display:inline-block}.dx-type-badge.primary{background:#eff6ff;color:#1e40af}.dx-type-badge.secondary{background:#f8fafc;color:#334155;border:1px solid #e2e8f0}.schedule-form{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end}.schedule-form .field{flex:1 0 130px}.schedule-form label{font-weight:600;font-size:11px;color:#64748b;display:block;margin-bottom:4px;text-transform:uppercase;letter-spacing:.2px}.schedule-form input,.schedule-form select{width:100%;height:38px;background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:0 12px;font-family:Inter,sans-serif;font-size:13px;color:#0f172a;transition:border-color .15s,box-shadow .15s}.schedule-form select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;padding-right:28px;cursor:pointer}.schedule-form input:focus,.schedule-form select:focus{outline:none;border-color:#1e3a5f;box-shadow:0 0 0 3px #1e3a5f1f}.schedule-form select:disabled{background-color:#f1f5f9;color:#94a3b8;cursor:not-allowed}.schedule-form input.date-input-invalid{border-color:#dc2626}.schedule-form input.date-input-invalid:focus{border-color:#dc2626;box-shadow:0 0 0 3px #dc26261f}.schedule-display{margin-top:12px;font-size:13px;color:#334155;background:#f8fafc;padding:10px 14px;border-radius:8px;border:1px solid #e2e8f0;font-weight:500;display:flex;align-items:center;gap:8px}.schedule-display svg{color:#1e3a5f}.date-mask-wrapper{position:relative;width:100%}.date-mask-wrapper input{padding-right:34px!important}.date-mask-wrapper .date-mask-picker{position:absolute;width:1px;height:1px;padding:0;margin:0;border:0;opacity:0;pointer-events:none}.date-mask-icon{position:absolute;right:8px;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;padding:0;border:none;border-radius:4px;background:transparent;color:#64748b;cursor:pointer}.date-mask-icon:hover{color:#1e3a5f;background:#1e3a5f14}.date-mask-disabled .date-mask-icon{cursor:not-allowed}.action-bar{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:8px;padding-top:2px}.consultation-page .btn-primary{height:auto;padding:8px 16px;background:var(--navy, #1e3a5f);border:none;border-radius:var(--radius-sm, 6px);font-family:Inter,sans-serif;font-weight:500;font-size:.85rem;color:#fff;display:inline-flex;align-items:center;gap:8px;cursor:pointer;box-shadow:none;transition:background .15s,box-shadow .15s}.consultation-page .btn-primary:hover{background:var(--navy-dark, #162d4a)}.consultation-page .btn-success{height:auto;padding:8px 16px;background:var(--success, #10b981);border:1px solid transparent;border-radius:var(--radius-sm, 6px);font-family:Inter,sans-serif;font-weight:500;font-size:.85rem;color:#fff;display:inline-flex;align-items:center;gap:8px;cursor:pointer;transition:background .15s}.consultation-page .btn-success:hover{background:#059669}.consultation-page .btn-success:disabled{background:#94a3b8;cursor:not-allowed}.consultation-page .btn-outline{height:auto;padding:8px 16px;background:#fff;border:1px solid #cbd5e1;border-radius:var(--radius-sm, 6px);font-family:Inter,sans-serif;font-weight:500;font-size:.85rem;color:#334155;display:inline-flex;align-items:center;gap:8px;cursor:pointer;transition:background .12s,border-color .12s}.consultation-page .btn-outline:hover{background:#f8fafc;border-color:#cbd5e1}.consultation-page .btn-outline svg{color:#64748b;font-size:13px}.consultation-page .sidebar-card{background:#fff;border:1px solid #e2e8f0;border-radius:7px;padding:0;margin-bottom:10px;box-shadow:none;overflow:hidden;flex-shrink:0}.consultation-page .sidebar-card:last-child{margin-bottom:0}.side-count{background:#ffffff40;color:#fff;padding:0 7px;border-radius:10px;font-size:.68rem;font-weight:600;min-width:18px;text-align:center;letter-spacing:0;text-transform:none}.consultation-page .sidebar-card-title{font-weight:600;font-size:.72rem;color:#fff;letter-spacing:.04em;text-transform:uppercase;margin-bottom:0;display:flex;align-items:center;justify-content:space-between;gap:8px;background:var(--navy, #1e3a5f);padding:8px 12px}.consultation-page .sidebar-card-title .title-left{display:flex;align-items:center;gap:7px}.consultation-page .sidebar-card-title svg{color:#fff;font-size:12px}.consultation-page .sidebar-card-title .add-btn{text-transform:none;letter-spacing:0;font-size:11px;padding:3px 10px;flex-shrink:0;color:#fff;border-color:#ffffff73;background:transparent}.consultation-page .sidebar-card-title .add-btn:hover{background:#ffffff1f;border-color:#fff;color:#fff}.consultation-page .sidebar-card-body-pad{padding:12px 14px 14px}.side-vitals-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:10px}.side-vital-box{display:flex;flex-direction:column;gap:4px}.side-vital-label{font-size:11px;font-weight:600;color:#64748b}.side-vital-box input{width:100%;height:32px;border:1px solid #e2e8f0;border-radius:6px;padding:0 8px;font-size:13px;font-family:Inter,sans-serif;color:#1e293b;background:#fff}.side-vital-box input:focus{outline:none;border-color:#1e3a5f;box-shadow:0 0 0 3px #1e3a5f1f}.btn-update-sm{width:100%;border:none;border-radius:6px;background:var(--navy, #1e3a5f);color:#fff;font-family:Inter,sans-serif;font-size:12px;font-weight:600;padding:8px 10px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:6px;transition:background .12s}.btn-update-sm:hover{background:var(--navy-dark, #162d4a)}.allergy-list{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}.allergy-tag{background:#fef2f2;color:#b91c1c;padding:4px 12px;border-radius:9999px;font-size:12px;font-weight:600;display:inline-flex;align-items:center;gap:5px}.allergy-tag.mild{background:#fffbeb;color:#b45309}.allergy-tag.moderate{background:#eff6ff;color:#1e40af}.add-btn{background:transparent;border:1px dashed #cbd5e1;color:#334155;padding:5px 12px;border-radius:9999px;font-size:12px;font-weight:500;cursor:pointer;display:inline-flex;align-items:center;gap:5px;font-family:Inter,sans-serif;transition:background .12s,border-color .12s}.add-btn:hover{background:#f8fafc;border-color:#1e3a5f;color:#1e3a5f}.add-allergy-input{display:none;margin-top:10px;gap:6px;align-items:center;flex-wrap:wrap}.add-allergy-input.show{display:flex}.add-allergy-input input,.add-allergy-input select{height:34px;padding:0 10px;border:1px solid #e2e8f0;border-radius:8px;font-family:Inter,sans-serif;font-size:12px;color:#0f172a}.add-allergy-input input{flex:1;min-width:110px}.add-allergy-input select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:#fff;cursor:pointer}.btn-tiny{height:34px;padding:0 12px;border:none;border-radius:8px;font-family:Inter,sans-serif;font-weight:600;font-size:12px;cursor:pointer;display:inline-flex;align-items:center;gap:4px}.btn-tiny.primary{background:#1e3a5f;color:#fff}.btn-tiny.primary:hover{background:#162d4a}.btn-tiny.ghost{background:#f8fafc;color:#334155;border:1px solid #e2e8f0}.sidebar-meta{margin-top:10px;font-size:12px;color:#64748b;display:flex;align-items:center;gap:5px}.sidebar-meta svg{color:#1e3a5f;font-size:11px}.diagnosis-list{display:flex;flex-direction:column;gap:8px}.dx-item{font-size:13px;color:#334155;display:flex;align-items:flex-start;gap:8px;line-height:1.35}.dx-item .dot{width:7px;height:7px;border-radius:50%;background:#1e3a5f;flex-shrink:0;margin-top:5px}.dx-item .dot.secondary{background:#b45309}.dx-item.active{font-weight:600;color:#0f172a}.med-item{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid #e2e8f0;font-size:13px}.med-item:last-of-type{border-bottom:none}.med-item .med-name{font-weight:600;color:#0f172a}.med-item .med-dosage{color:#64748b;font-weight:400;margin-left:4px}.med-item .med-term{font-size:10px;font-weight:600;padding:2px 8px;border-radius:9999px;white-space:nowrap}.med-term.term-long{background:#ecfdf5;color:#047857}.med-term.term-short{background:#fffbeb;color:#b45309}.vitals-table{width:100%;border-collapse:collapse;font-size:12px}.vitals-table th{text-align:left;font-weight:600;color:#64748b;font-size:10px;text-transform:uppercase;letter-spacing:.3px;padding:6px 6px 8px 0;border-bottom:1px solid #e2e8f0}.vitals-table td{padding:8px 6px 8px 0;color:#334155;border-bottom:1px solid #e2e8f0}.vitals-table tr:last-child td{border-bottom:none}.vitals-table tr.highlight-row td{font-weight:600;color:#0f172a;background:#f8fafc}.consultation-page .quick-actions{display:flex;flex-direction:column;gap:6px}.consultation-page .quick-actions .q-btn{height:36px;background:transparent;border:1px solid #e2e8f0;border-radius:8px;font-family:Inter,sans-serif;font-weight:500;font-size:12.5px;color:#334155;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:7px;transition:background .12s,border-color .12s}.consultation-page .quick-actions .q-btn:hover{background:#f8fafc;border-color:#cbd5e1}.consultation-page .quick-actions .q-btn svg{font-size:12px;color:#64748b}.consult-timer{margin-top:12px;font-size:12px;color:#64748b;background:#f8fafc;padding:8px 12px;border-radius:8px;display:flex;align-items:center;gap:6px;font-weight:500}.consult-timer svg{color:#1e3a5f}@media(max-width:1100px){.consult-body{grid-template-columns:1fr 300px}}@media(max-width:900px){.consult-body{grid-template-columns:1fr}.consult-sidebar{border-left:none;border-top:1px solid #e2e8f0}}@media(max-width:640px){.consult-main,.consult-sidebar{padding:16px}.prescription-form .field,.prescription-form .field-small,.schedule-form .field,.add-vitals-form .field{flex:1 1 100%}}.consult-inv-sidebar-list{display:flex;flex-direction:column;gap:6px}.consult-inv-sidebar-item{padding:8px 10px;border-radius:8px;background:#f8fafc;border:1px solid #e2e8f0}.consult-inv-sidebar-name{font-size:13px;font-weight:600;color:#0f172a;margin-bottom:4px}.consult-inv-sidebar-meta{display:flex;align-items:center;gap:6px}.inv-status-dot{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:7px;flex-shrink:0;vertical-align:middle}.inv-priority-badge{display:inline-block;padding:1px 7px;border-radius:4px;font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.3px;background:#e0e7ff;color:#3730a3}.consultation-page .inv-order-btn{width:100%;height:38px;background:#2563eb;border:none;border-radius:8px;color:#fff;font-family:Inter,sans-serif;font-weight:600;font-size:13px;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;transition:background .15s}.consultation-page .inv-order-btn:hover{background:#1d4ed8}.consultation-page .inv-order-btn svg{font-size:14px;color:#fff}.consult-modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a73;display:flex;align-items:center;justify-content:center;z-index:9999;animation:consultFadeIn .15s ease}@keyframes consultFadeIn{0%{opacity:0}to{opacity:1}}.consult-modal{background:#fff;border-radius:14px;width:580px;max-height:80vh;display:flex;flex-direction:column;box-shadow:0 20px 60px #0f172a33;animation:consultSlideUp .2s ease}@keyframes consultSlideUp{0%{transform:translateY(16px);opacity:0}to{transform:translateY(0);opacity:1}}.consult-modal-header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #e2e8f0}.consult-modal-header h3{margin:0;font-size:16px;font-weight:700;color:#0f172a;display:flex;align-items:center;gap:10px}.consult-modal-header h3 svg{color:#2563eb;font-size:18px}.consult-modal-close{background:none;border:none;cursor:pointer;color:#94a3b8;font-size:16px;padding:4px;border-radius:6px;transition:background .12s,color .12s}.consult-modal-close:hover{background:#f1f5f9;color:#334155}.consult-modal-search{display:flex;align-items:center;gap:10px;padding:12px 20px;border-bottom:1px solid #e2e8f0;background:#f8fafc}.consult-modal-search svg{color:#94a3b8;font-size:15px;flex-shrink:0}.consult-modal-search input{flex:1;border:none;background:transparent;font-family:Inter,sans-serif;font-size:13.5px;color:#334155;outline:none}.consult-modal-search input::placeholder{color:#94a3b8}.consult-modal-body{flex:1;overflow-y:auto;padding:0}.consult-modal-empty{text-align:center;padding:40px 20px;color:#94a3b8;font-size:13px}.consult-inv-list{padding:8px 0}.consult-inv-item{display:flex;align-items:center;gap:12px;padding:10px 20px;cursor:pointer;transition:background .1s;border-bottom:1px solid #f1f5f9}.consult-inv-item:hover{background:#f8fafc}.consult-inv-item.selected{background:#eff6ff;border-bottom-color:#dbeafe}.consult-inv-check{flex-shrink:0;width:20px;height:20px;display:flex;align-items:center;justify-content:center;color:#cbd5e1;font-size:14px}.consult-inv-item.selected .consult-inv-check{color:#2563eb}.consult-inv-info{flex:1;min-width:0}.consult-inv-name{font-size:13.5px;font-weight:600;color:#0f172a;margin-bottom:3px}.consult-inv-meta{display:flex;align-items:center;gap:8px;font-size:11.5px;color:#64748b;flex-wrap:wrap}.inv-type-badge{display:inline-block;padding:1px 7px;border-radius:4px;font-size:10.5px;font-weight:600;text-transform:uppercase;letter-spacing:.3px}.inv-type-lab{background:#eff6ff;color:#2563eb}.inv-type-radiology{background:#f5f3ff;color:#7c3aed}.consult-inv-price{flex-shrink:0;font-size:13px;font-weight:600;color:#334155}.consult-modal-footer{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;border-top:1px solid #e2e8f0;background:#f8fafc;border-radius:0 0 14px 14px}.consult-inv-count{font-size:12.5px;font-weight:600;color:#64748b}.consult-modal-actions{display:flex;gap:8px}.consult-modal-cancel{height:34px;padding:0 16px;border:1px solid #e2e8f0;border-radius:8px;background:#fff;font-family:Inter,sans-serif;font-size:13px;font-weight:500;color:#64748b;cursor:pointer;transition:background .12s}.consult-modal-cancel:hover{background:#f1f5f9}.consult-modal-confirm{height:34px;padding:0 16px;border:none;border-radius:8px;background:#2563eb;font-family:Inter,sans-serif;font-size:13px;font-weight:600;color:#fff;cursor:pointer;display:flex;align-items:center;gap:6px;transition:background .12s}.consult-modal-confirm:hover{background:#1d4ed8}.consult-modal-confirm:disabled{background:#94a3b8;cursor:not-allowed}.inv-result-link{background:none;border:none;color:#2563eb;font-size:inherit;font-weight:600;cursor:pointer;padding:0;text-decoration:underline;text-underline-offset:2px}.inv-result-link:hover{color:#1d4ed8}.consult-rv-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000073;display:flex;align-items:center;justify-content:center;z-index:9000;animation:consultRvFadeIn .18s ease}@keyframes consultRvFadeIn{0%{opacity:0}to{opacity:1}}.consult-rv-content{background:#fff;border-radius:12px;width:850px;max-width:95vw;max-height:85vh;display:flex;flex-direction:column;box-shadow:0 20px 60px #0003;animation:consultRvSlideUp .2s ease}@keyframes consultRvSlideUp{0%{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}.consult-rv-header{display:flex;align-items:center;justify-content:space-between;padding:18px 24px;border-bottom:1px solid #e2e8f0}.consult-rv-header h3{margin:0;font-size:1rem;font-weight:700;color:#1e3a5f;display:flex;align-items:center;gap:8px}.consult-rv-header p{margin:2px 0 0;font-size:.8rem;color:#64748b}.consult-rv-close{background:none;border:none;font-size:1.1rem;color:#94a3b8;cursor:pointer;padding:4px;border-radius:6px;transition:background .12s}.consult-rv-close:hover{background:#f1f5f9;color:#475569}.consult-rv-body{padding:20px 24px;overflow-y:auto;flex:1}.consult-rv-loading,.consult-rv-empty{text-align:center;color:#64748b;font-size:.85rem;padding:30px 0}.consult-rv-table{border:1px solid #e2e8f0;border-radius:8px;overflow:hidden}.consult-rv-thead{display:grid;grid-template-columns:1.2fr 1fr .6fr .5fr .7fr;gap:10px;padding:10px 14px;background:#f8fafc;border-bottom:1px solid #e2e8f0;font-size:.72rem;font-weight:700;color:#475569;text-transform:uppercase;letter-spacing:.3px}.consult-rv-row{display:grid;grid-template-columns:1.2fr 1fr .6fr .5fr .7fr;gap:10px;padding:10px 14px;border-bottom:1px solid #f1f5f9;align-items:center;font-size:.82rem}.consult-rv-row:last-child{border-bottom:none}.consult-rv-comp{font-weight:600;color:#1e293b}.consult-rv-val{color:#334155}.consult-rv-unit,.consult-rv-range{color:#64748b;font-size:.78rem}.consult-rv-footer{padding:14px 24px;border-top:1px solid #e2e8f0;display:flex;justify-content:flex-end}.consult-rv-close-btn{background:#f1f5f9;border:1px solid #e2e8f0;border-radius:6px;padding:7px 20px;font-size:.82rem;font-weight:600;color:#475569;cursor:pointer;transition:background .12s}.consult-rv-close-btn:hover{background:#e2e8f0}.medication-page{max-width:1440px;margin:0 auto;min-height:100vh;padding:20px 24px 32px;background:#f1f5f9;display:flex;flex-direction:column}.medication-page .med-page-body{display:grid;grid-template-columns:1fr 300px;gap:20px;flex:1;min-height:0}.medication-page .med-main-content{display:flex;flex-direction:column;min-width:0;gap:14px}.medication-page .med-sidebar-content{display:flex;flex-direction:column;gap:16px}.medication-page .med-page-body.med-sidebar-collapsed{grid-template-columns:1fr}.medication-page .med-page-body.med-sidebar-collapsed .med-sidebar-content{display:none}.medication-page .med-top-bar{display:flex;align-items:center;gap:12px;background:#1e3a5f;border-radius:12px;padding:10px 14px 10px 18px;box-shadow:0 2px 8px #1e3a5f40}.medication-page .med-top-bar-title{font-weight:600;font-size:15px;color:#fff;white-space:nowrap;letter-spacing:-.2px;padding-right:8px}.medication-page .med-top-search{position:relative;width:180px;flex-shrink:0}.medication-page .med-top-search svg{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:#94a3b8;font-size:13px}.medication-page .med-top-search input{width:100%;height:38px;padding:0 16px 0 38px;border:none;border-radius:8px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:13.5px;background:#fff;color:#0f172a;box-shadow:0 1px 2px #0000000a}.medication-page .med-top-search input::placeholder{color:#94a3b8}.medication-page .med-top-search input:focus{outline:none;box-shadow:0 0 0 3px #ffffff40}.medication-page .med-top-filters{display:flex;align-items:center;gap:6px}.medication-page .med-top-filters select{height:36px;padding:0 28px 0 12px;border:none;border-radius:8px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:12.5px;font-weight:500;background:#ffffff26 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E") no-repeat right 10px center;color:#fff;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;transition:background .15s;max-width:160px}.medication-page .med-top-filters select:hover{background-color:#ffffff38}.medication-page .med-top-filters select:focus{outline:none;background-color:#ffffff47}.medication-page .med-top-filters select option{background:#1e3a5f;color:#fff}.medication-page .med-top-bar-actions{display:flex;align-items:center;gap:6px;margin-left:auto}.medication-page .med-top-icon-btn{width:36px;height:36px;border-radius:8px;border:none;background:#ffffff1f;color:#fff;font-size:13px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .15s}.medication-page .med-top-icon-btn:hover{background:#ffffff38}.medication-page .med-top-icon-btn.active{background:#ffffff47}.medication-page .med-top-icon-btn svg{width:17px;height:17px}.medication-page .med-table-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 1px 3px #0f172a0d,0 1px 2px #0f172a08;overflow:hidden;display:flex;flex-direction:column;flex:1}.medication-page .med-table-wrapper{overflow-x:auto;flex:1}.medication-page .med-table-wrapper table{width:100%;border-collapse:collapse;font-size:13px;min-width:880px}.medication-page .med-table-wrapper th{background:#f8fafc;color:#64748b;font-weight:600;font-size:11px;letter-spacing:.4px;text-transform:uppercase;padding:12px 16px;text-align:left;border-bottom:1px solid #e2e8f0;white-space:nowrap}.medication-page .med-table-wrapper td{padding:13px 16px;border-bottom:1px solid #e2e8f0;color:#334155;vertical-align:middle}.medication-page .med-table-wrapper tr:last-child td{border-bottom:none}.medication-page .med-table-wrapper tbody tr{transition:background .12s}.medication-page .med-table-wrapper tbody tr:hover td{background:#f8fafc}.medication-page .med-name{font-weight:600;color:#0f172a;font-size:13.5px;display:inline-flex;align-items:center;gap:8px}.medication-page .med-dosage-icon{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:8px;font-size:12px;flex-shrink:0;background:#e8eef6;color:#1e3a5f}.medication-page .med-dosage-icon.tablet{background:#e8eef6;color:#1e3a5f}.medication-page .med-dosage-icon.capsule{background:#f3e8ff;color:#7c3aed}.medication-page .med-dosage-icon.syrup{background:#fff7ed;color:#b45309}.medication-page .med-dosage-icon.injection{background:#fef2f2;color:#b91c1c}.medication-page .med-dosage-icon.inhaler{background:#e0f2fe;color:#0369a1}.medication-page .med-dosage-icon.cream{background:#ecfdf5;color:#047857}.medication-page .med-dosage-icon.patch{background:#f1f5f9;color:#475569}.medication-page .med-dosage-icon.iv{background:#fce7f3;color:#be185d}.medication-page .med-dosage-icon.other{background:#f1f5f9;color:#64748b}.medication-page .med-status-badge{font-size:11.5px;font-weight:600;padding:3px 10px 3px 8px;border-radius:9999px;display:inline-flex;align-items:center;gap:6px;letter-spacing:.1px}.medication-page .med-status-badge:before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}.medication-page .med-status-badge.active{background:#ecfdf5;color:#059669}.medication-page .med-status-badge.inactive{background:#f1f5f9;color:#64748b}.medication-page .med-status-badge.draft{background:#fffbeb;color:#b45309}.medication-page .med-status-badge.expired{background:#fef2f2;color:#b91c1c}.medication-page .med-actions-cell{display:flex;align-items:center;justify-content:center;gap:2px}.medication-page .med-action-btn{width:30px;height:30px;border:none;background:transparent;color:#94a3b8;border-radius:6px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;font-size:13px;transition:background .12s,color .12s}.medication-page .med-action-btn:hover{background:#f1f5f9;color:#334155}.medication-page .med-action-btn.delete:hover{background:#fef2f2;color:#b91c1c}.medication-page .med-pagination{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-top:1px solid #e2e8f0;background:#f8fafc;gap:12px;flex-wrap:wrap}.medication-page .med-pagination .med-info{font-size:13px;color:#64748b;font-weight:500}.medication-page .med-pagination .med-pages{display:flex;align-items:center;gap:4px}.medication-page .med-pagination .med-pages button{min-width:30px;height:30px;padding:0 8px;border:1px solid transparent;border-radius:6px;background:transparent;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:13px;font-weight:500;color:#334155;cursor:pointer;transition:background .12s,border-color .12s}.medication-page .med-pagination .med-pages button:hover{background:#fff;border-color:#e2e8f0}.medication-page .med-pagination .med-pages button.active{background:#1e3a5f;color:#fff;border-color:#1e3a5f}.medication-page .med-sidebar-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:16px;box-shadow:0 1px 2px #0f172a0a}.medication-page .med-sidebar-card-title{font-weight:600;font-size:11px;color:#64748b;letter-spacing:.5px;text-transform:uppercase;margin-bottom:14px;display:flex;align-items:center;gap:7px}.medication-page .med-sidebar-card-title svg{color:#1e3a5f;font-size:12px}.medication-page .med-stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.medication-page .med-stat-item{background:#f8fafc;border-radius:10px;padding:14px 10px;text-align:center;border:1px solid transparent;transition:border-color .15s}.medication-page .med-stat-item:hover{border-color:#e2e8f0}.medication-page .med-stat-item .med-number{font-weight:700;font-size:22px;color:#0f172a;line-height:1.15;letter-spacing:-.5px}.medication-page .med-stat-item .med-number.green{color:#059669}.medication-page .med-stat-item .med-number.orange{color:#b45309}.medication-page .med-stat-item .med-number.red{color:#b91c1c}.medication-page .med-stat-item .med-number.blue{color:#0369a1}.medication-page .med-stat-item .med-label{font-size:11px;color:#64748b;font-weight:500;margin-top:3px;letter-spacing:.2px}.medication-page .med-vendor-list{list-style:none;margin-bottom:12px}.medication-page .med-vendor-list li{padding:10px 0;border-bottom:1px solid #e2e8f0;display:flex;justify-content:space-between;align-items:center;gap:12px}.medication-page .med-vendor-list li:last-child{border-bottom:none;padding-bottom:0}.medication-page .med-vendor-list li:first-child{padding-top:0}.medication-page .med-vendor-label{font-weight:500;font-size:13px;color:#0f172a}.medication-page .med-vendor-count{font-size:12px;font-weight:700;min-width:26px;height:26px;display:inline-flex;align-items:center;justify-content:center;border-radius:9999px;background:#e8eef6;color:#1e3a5f;border:1px solid rgba(30,58,95,.12)}.medication-page .med-vendor-count.warn{background:#fffbeb;color:#b45309;border-color:#b4530926}.medication-page .med-vendor-count.alert{background:#fef2f2;color:#b91c1c;border-color:#b91c1c1f}.medication-page .med-vendor-order-btn{width:100%;margin-top:2px}.medication-page .med-quick-actions{display:flex;flex-direction:column;gap:8px}.medication-page .med-q-btn{height:40px;background:transparent;border:1px solid #e2e8f0;border-radius:8px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-weight:500;font-size:13px;color:#334155;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;transition:background .12s,border-color .12s,color .12s}.medication-page .med-q-btn:hover{background:#f8fafc;border-color:#cbd5e1}.medication-page .med-q-btn svg{font-size:12px;color:#64748b}.medication-page .med-q-btn.primary{background:#1e3a5f;border-color:#1e3a5f;color:#fff;font-weight:600}.medication-page .med-q-btn.primary:hover{background:#152a45;border-color:#152a45}.medication-page .med-q-btn.primary svg{color:#fff}.medication-page .med-modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a80;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);z-index:1000;display:flex;justify-content:center;align-items:center;padding:12px}.medication-page .med-modal-content{background:#fff;border-radius:14px;max-width:720px;width:100%;max-height:94vh;display:flex;flex-direction:column;box-shadow:0 24px 48px #0f172a2e,0 0 0 1px #0f172a0a;animation:medModalIn .22s ease;overflow:hidden}@keyframes medModalIn{0%{transform:translateY(16px) scale(.98);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}.medication-page .med-modal-header{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;border-bottom:1px solid #e2e8f0;background:#fff;flex-shrink:0}.medication-page .med-modal-header-text{display:flex;flex-direction:column;gap:2px}.medication-page .med-modal-header h3{font-weight:700;font-size:16px;color:#0f172a;display:flex;align-items:center;gap:10px;letter-spacing:-.3px;margin:0}.medication-page .med-modal-icon{width:32px;height:32px;border-radius:8px;background:#1e3a5f;color:#fff;display:flex;align-items:center;justify-content:center;font-size:13px;box-shadow:0 2px 6px #1e3a5f47;flex-shrink:0}.medication-page .med-modal-subtitle{font-size:12px;color:#64748b;font-weight:400;margin-left:42px;line-height:1.3}.medication-page .med-modal-close{width:32px;height:32px;border:none;background:transparent;border-radius:6px;color:#64748b;font-size:14px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .12s,color .12s;flex-shrink:0}.medication-page .med-modal-close:hover{background:#f1f5f9;color:#334155}.medication-page .med-modal-body{padding:14px 18px 12px;overflow-y:auto;flex:1;min-height:0}.medication-page .med-form-section{display:grid;grid-template-columns:110px 1fr;margin-bottom:12px;border:1px solid #e2e8f0;border-radius:10px;background:#fff;overflow:hidden;box-shadow:0 1px 2px #0f172a0a}.medication-page .med-form-section:last-child{margin-bottom:0}.medication-page .med-form-section-side{background:#f8fafc;border-right:1px solid #e2e8f0;padding:12px 8px;display:flex;align-items:center;justify-content:center}.medication-page .med-form-section-title{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;font-size:10.5px;font-weight:600;color:#64748b;text-transform:uppercase;letter-spacing:.4px;text-align:center;line-height:1.3;margin:0;width:100%}.medication-page .med-form-section-title svg{color:#1e3a5f;font-size:13px;width:28px;height:28px;display:flex;align-items:center;justify-content:center;background:#e8eef6;border-radius:7px;border:1px solid rgba(30,58,95,.1)}.medication-page .med-form-section-fields{padding:12px 14px;min-width:0}.medication-page .med-form-section-fields>.med-form-row:last-child,.medication-page .med-form-section-fields>.med-form-row-3:last-child,.medication-page .med-form-section-fields>.med-form-group:last-child{margin-bottom:0}.medication-page .med-form-group{margin-bottom:10px}.medication-page .med-form-group:last-child{margin-bottom:0}.medication-page .med-form-group label{font-weight:600;font-size:11.5px;color:#334155;display:flex;align-items:center;gap:4px;margin-bottom:4px;letter-spacing:.1px}.medication-page .med-form-group label .required{color:#b91c1c;font-weight:700}.medication-page .med-form-group label .optional{font-weight:400;color:#94a3b8;font-size:10.5px;margin-left:2px}.medication-page .med-form-group input,.medication-page .med-form-group select,.medication-page .med-form-group textarea{width:100%;height:34px;padding:0 10px;border:1px solid #e2e8f0;border-radius:7px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:13px;color:#0f172a;background:#fff;transition:border-color .15s,box-shadow .15s}.medication-page .med-form-group select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;padding-right:28px;cursor:pointer}.medication-page .med-form-group textarea{height:auto;min-height:48px;padding:8px 10px;resize:none;line-height:1.4}.medication-page .med-form-group input:hover,.medication-page .med-form-group select:hover,.medication-page .med-form-group textarea:hover{border-color:#cbd5e1}.medication-page .med-form-group input:focus,.medication-page .med-form-group select:focus,.medication-page .med-form-group textarea:focus{outline:none;border-color:#1e3a5f;box-shadow:0 0 0 3px #1e3a5f1f}.medication-page .med-form-group input::placeholder,.medication-page .med-form-group textarea::placeholder{color:#94a3b8}.medication-page .med-field-hint{font-size:10.5px;color:#94a3b8;margin-top:3px;line-height:1.3}.medication-page .med-form-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:10px}.medication-page .med-form-row-3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px;margin-bottom:10px}.medication-page .med-form-section-fields>.med-form-row:last-child,.medication-page .med-form-section-fields>.med-form-row-3:last-child{margin-bottom:0}.medication-page .med-form-section-fields>.med-form-row .med-form-group,.medication-page .med-form-section-fields>.med-form-row-3 .med-form-group{margin-bottom:0}.medication-page .med-form-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:12px 18px;border-top:1px solid #e2e8f0;background:#f8fafc;flex-shrink:0}.medication-page .med-form-actions .med-btn-primary{height:36px;padding:0 18px;background:#1e3a5f;border:none;border-radius:8px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-weight:600;font-size:13px;color:#fff;display:inline-flex;align-items:center;gap:7px;cursor:pointer;transition:background .15s}.medication-page .med-form-actions .med-btn-primary:hover{background:#152a45}.medication-page .med-form-actions .med-btn-secondary{height:36px;padding:0 14px;background:#fff;border:1px solid #e2e8f0;border-radius:8px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-weight:500;font-size:13px;color:#334155;cursor:pointer;transition:background .12s,border-color .12s}.medication-page .med-form-actions .med-btn-secondary:hover{background:#f1f5f9;border-color:#cbd5e1}@media(max-width:1100px){.medication-page .med-page-body{grid-template-columns:1fr 280px}.medication-page .med-top-filters select{max-width:130px}}@media(max-width:900px){.medication-page .med-page-body{grid-template-columns:1fr}.medication-page .med-sidebar-content{order:-1}.medication-page .med-top-bar{flex-wrap:wrap}.medication-page .med-top-search{width:100%;order:3}.medication-page .med-top-filters{order:4;width:100%;flex-wrap:wrap}.medication-page .med-top-filters select{flex:1;max-width:none;min-width:120px}}@media(max-width:640px){.medication-page{padding:12px}.medication-page .med-top-bar{padding:10px 12px}.medication-page .med-form-row,.medication-page .med-form-row-3,.medication-page .med-form-section{grid-template-columns:1fr}.medication-page .med-form-section-side{border-right:none;border-bottom:1px solid #e2e8f0;padding:8px 12px}.medication-page .med-form-section-title{flex-direction:row;gap:8px}.medication-page .med-form-section-title svg{width:24px;height:24px;font-size:11px}.medication-page .med-modal-subtitle{margin-left:0}}.vendors-page .ven-layout{display:grid;grid-template-columns:1fr 280px;gap:18px;align-items:start;height:100%;overflow:hidden;transition:grid-template-columns .25s ease}.vendors-page .ven-layout.ven-sidebar-hidden{grid-template-columns:1fr 0}.vendors-page .ven-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 4px 12px #00000014;overflow:hidden;display:flex;flex-direction:column}.vendors-page .ven-list-header{background:#1e3a5f;padding:.85rem 1.25rem;display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}.vendors-page .ven-list-header h2{font-size:1.05rem;font-weight:600;color:#fff;white-space:nowrap;margin:0}.vendors-page .ven-header-search{flex:1;max-width:280px;position:relative}.vendors-page .ven-header-search svg{position:absolute;left:.85rem;top:50%;transform:translateY(-50%);width:16px;height:16px;color:#94a3b8;pointer-events:none}.vendors-page .ven-header-search input{width:100%;height:38px;padding:0 1rem 0 2.4rem;border:none;border-radius:8px;background:#ffffff1f;color:#fff;font-size:.85rem;font-family:inherit}.vendors-page .ven-header-search input::placeholder{color:#94a3b8}.vendors-page .ven-header-search input:focus{outline:none;background:#ffffff2e}.vendors-page .ven-header-tools{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap}.vendors-page .ven-filter-select{height:38px;padding:0 2rem 0 .85rem;border:none;border-radius:8px;background:#ffffff26;color:#fff;font-size:.82rem;font-weight:500;font-family:inherit;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .55rem center;background-size:14px;min-width:110px}.vendors-page .ven-filter-select:focus{outline:none;background-color:#ffffff38}.vendors-page .ven-filter-select option{background:#1e3a5f;color:#fff}.vendors-page .ven-tool-btn{width:36px;height:36px;border-radius:8px;border:none;background:#ffffff1a;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer}.vendors-page .ven-tool-btn:hover{background:#fff3}.vendors-page .ven-tool-btn svg{width:17px;height:17px}.vendors-page .ven-sidebar-toggle{background:#ffffff1f;border:1px solid rgba(255,255,255,.28);color:#ffffffd9}.vendors-page .ven-sidebar-toggle:hover{background:#ffffff38;color:#fff;border-color:#fff6}.vendors-page .ven-add-btn{height:38px;padding:0 .9rem;border-radius:8px;border:none;background:#fff;color:#1e3a5f;font-size:.82rem;font-weight:600;font-family:inherit;cursor:pointer;display:inline-flex;align-items:center;gap:.3rem}.vendors-page .ven-add-btn:hover{background:#f1f5f9}.vendors-page .ven-add-btn svg{width:16px;height:16px}.vendors-page .ven-table-wrap{overflow-x:auto;flex:1}.vendors-page table{width:100%;border-collapse:collapse;font-size:.85rem}.vendors-page thead th{text-align:left;padding:.75rem 1rem;font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.03em;color:#94a3b8;background:#f8fafc;border-bottom:1px solid #e2e8f0;white-space:nowrap}.vendors-page tbody td{padding:.85rem 1rem;border-bottom:1px solid #f1f5f9;vertical-align:middle;color:#475569}.vendors-page tbody tr:hover{background:#f8fafc}.vendors-page tbody tr:last-child td{border-bottom:none}.vendors-page .ven-vendor-cell{display:flex;align-items:center;gap:.65rem}.vendors-page .ven-vendor-avatar{width:38px;height:38px;border-radius:50%;background:#eff6ff;color:#1e40af;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.8rem;flex-shrink:0}.vendors-page .ven-vendor-avatar.ven-avatar-scheduled{background:#059669;color:#fff}.vendors-page .ven-vendor-name{font-weight:600;color:#0f172a;font-size:.875rem}.vendors-page .ven-vendor-id{font-size:.72rem;color:#94a3b8}.vendors-page .ven-type-tag{display:inline-block;padding:.15rem .5rem;border-radius:4px;font-size:.7rem;font-weight:600;background:#f1f5f9;color:#475569}.vendors-page .ven-contact-line{font-size:.8rem;color:#475569}.vendors-page .ven-contact-line span{display:block;font-size:.72rem;color:#94a3b8}.vendors-page .ven-balance{font-weight:600;font-size:.875rem;white-space:nowrap}.vendors-page .ven-balance.due{color:#dc2626}.vendors-page .ven-balance.credit{color:#059669}.vendors-page .ven-balance.zero{color:#94a3b8}.vendors-page .ven-status-pill{display:inline-flex;align-items:center;gap:.3rem;padding:.2rem .55rem;border-radius:999px;font-size:.72rem;font-weight:600}.vendors-page .ven-status-pill:before{content:"";width:6px;height:6px;border-radius:50%}.vendors-page .ven-status-pill.active{background:#ecfdf5;color:#059669}.vendors-page .ven-status-pill.active:before{background:#10b981}.vendors-page .ven-status-pill.inactive{background:#f1f5f9;color:#64748b}.vendors-page .ven-status-pill.inactive:before{background:#94a3b8}.vendors-page .ven-actions-cell{display:flex;align-items:center;gap:.3rem;position:relative}.vendors-page .ven-icon-btn{width:32px;height:32px;border-radius:7px;border:1px solid #e2e8f0;background:#fff;color:#475569;display:flex;align-items:center;justify-content:center;cursor:pointer}.vendors-page .ven-icon-btn:hover{background:#f8fafc;color:#0f172a}.vendors-page .ven-icon-btn svg{width:15px;height:15px}.vendors-page .ven-menu-wrap{position:relative}.vendors-page .ven-dropdown{position:absolute;right:0;top:calc(100% + 4px);min-width:170px;background:#fff;border:1px solid #e2e8f0;border-radius:10px;box-shadow:0 4px 12px #00000014;z-index:20;padding:.35rem}.vendors-page .ven-dropdown button{width:100%;text-align:left;padding:.5rem .7rem;border:none;background:transparent;border-radius:6px;font-size:.8rem;font-family:inherit;color:#0f172a;cursor:pointer;display:flex;align-items:center;gap:.45rem}.vendors-page .ven-dropdown button:hover{background:#f8fafc}.vendors-page .ven-dropdown button.danger{color:#dc2626}.vendors-page .ven-dropdown button svg{width:14px;height:14px}.vendors-page .ven-list-footer{display:flex;align-items:center;justify-content:space-between;padding:.85rem 1.25rem;border-top:1px solid #e2e8f0;background:#f8fafc;font-size:.8rem;color:#475569;flex-wrap:wrap;gap:.5rem;flex-shrink:0}.vendors-page .ven-right-panel{display:flex;flex-direction:column;gap:.85rem;position:sticky;top:0;overflow-y:auto;transition:opacity .2s,padding .25s}.vendors-page .ven-sidebar-hidden .ven-right-panel{opacity:0;padding:0;pointer-events:none;overflow:hidden}.vendors-page .ven-panel-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:1rem;box-shadow:0 1px 3px #0000000d}.vendors-page .ven-panel-title{font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:#94a3b8;margin-bottom:.85rem;display:flex;align-items:center;gap:.35rem}.vendors-page .ven-panel-title svg{width:14px;height:14px}.vendors-page .ven-stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:.6rem}.vendors-page .ven-stat-box{background:#f8fafc;border-radius:10px;padding:.75rem .65rem;text-align:center}.vendors-page .ven-stat-box .num{font-size:1.2rem;font-weight:700;color:#0f172a;line-height:1.2}.vendors-page .ven-stat-box .num.green{color:#059669}.vendors-page .ven-stat-box .num.orange{color:#d97706}.vendors-page .ven-stat-box .num.red{color:#dc2626}.vendors-page .ven-stat-box .label{font-size:.7rem;color:#94a3b8;margin-top:2px}.vendors-page .ven-recent-list{display:flex;flex-direction:column;gap:.5rem}.vendors-page .ven-recent-item{display:flex;align-items:center;gap:.55rem;padding:.35rem 0;border-bottom:1px solid #f1f5f9}.vendors-page .ven-recent-item:last-child{border-bottom:none}.vendors-page .ven-recent-avatar{width:32px;height:32px;border-radius:50%;background:#eff6ff;color:#1e40af;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.7rem;flex-shrink:0}.vendors-page .ven-recent-info h4{font-size:.8rem;font-weight:500;color:#0f172a;margin:0}.vendors-page .ven-recent-info p{font-size:.7rem;color:#94a3b8;margin:0}.vendors-page .ven-panel-actions{display:flex;flex-direction:column;gap:.5rem}.vendors-page .ven-action-desc{font-size:.78rem;color:#475569;line-height:1.55;margin-bottom:.85rem}.vendors-page .ven-btn{height:40px;padding:0 1.1rem;border-radius:8px;border:none;font-size:.85rem;font-weight:500;font-family:inherit;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:.4rem;width:100%;transition:all .15s}.vendors-page .ven-btn-primary{background:#1e3a5f;color:#fff}.vendors-page .ven-btn-primary:hover{background:#162d4a}.vendors-page .ven-btn-secondary{background:#fff;border:1px solid #e2e8f0;color:#0f172a}.vendors-page .ven-btn-secondary:hover{background:#f8fafc}.vendors-page .ven-modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a73;z-index:1000;display:flex;align-items:center;justify-content:center;padding:1.25rem}.vendors-page .ven-modal{background:#fff;border-radius:14px;box-shadow:0 12px 40px #0000001f;width:100%;max-width:640px;max-height:90vh;overflow:hidden;display:flex;flex-direction:column;animation:venModalIn .2s ease}.vendors-page .ven-modal.wide{max-width:720px}@keyframes venModalIn{0%{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}.vendors-page .ven-modal-header{padding:1rem 1.25rem;border-bottom:1px solid #e2e8f0;display:flex;align-items:center;justify-content:space-between;gap:1rem}.vendors-page .ven-modal-header h3{font-size:1rem;font-weight:600;color:#0f172a;margin:0}.vendors-page .ven-modal-close{width:32px;height:32px;border-radius:8px;border:none;background:#f1f5f9;color:#475569;display:flex;align-items:center;justify-content:center;cursor:pointer}.vendors-page .ven-modal-close:hover{background:#e2e8f0}.vendors-page .ven-modal-close svg{width:16px;height:16px}.vendors-page .ven-modal-body{padding:1.25rem;overflow-y:auto;flex:1}.vendors-page .ven-modal-footer{padding:.9rem 1.25rem;border-top:1px solid #e2e8f0;display:flex;justify-content:flex-end;gap:.5rem;background:#f8fafc}.vendors-page .ven-modal-footer .ven-btn{width:auto;min-width:100px}.vendors-page .ven-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:.85rem}.vendors-page .ven-form-group{display:flex;flex-direction:column;gap:.3rem}.vendors-page .ven-form-group.full{grid-column:1 / -1}.vendors-page .ven-form-group label{font-size:.75rem;font-weight:600;color:#475569}.vendors-page .ven-form-group input,.vendors-page .ven-form-group select,.vendors-page .ven-form-group textarea{height:38px;padding:0 .75rem;border:1px solid #e2e8f0;border-radius:8px;font-size:.85rem;font-family:inherit;color:#0f172a;background:#fff}.vendors-page .ven-form-group textarea{height:auto;min-height:72px;padding:.6rem .75rem;resize:vertical}.vendors-page .ven-form-group input:focus,.vendors-page .ven-form-group select:focus,.vendors-page .ven-form-group textarea:focus{outline:none;border-color:#93c5fd;box-shadow:0 0 0 3px #3b82f626}.vendors-page .ven-pay-tabs{display:flex;gap:.25rem;background:#f1f5f9;border-radius:10px;padding:.25rem;margin-bottom:1.1rem}.vendors-page .ven-pay-tab{flex:1;height:36px;border:none;border-radius:8px;background:transparent;font-size:.82rem;font-weight:500;font-family:inherit;color:#475569;cursor:pointer}.vendors-page .ven-pay-tab.active{background:#fff;color:#0f172a;box-shadow:0 1px 3px #00000014}.vendors-page .ven-pay-panel{display:none}.vendors-page .ven-pay-panel.active{display:block}.vendors-page .ven-balance-card{background:linear-gradient(135deg,#1e3a5f,#1e40af);border-radius:12px;padding:.85rem 1.1rem;color:#fff;margin-bottom:1rem}.vendors-page .ven-balance-card .bc-vendor-name{font-size:.9rem;font-weight:600;margin-bottom:.35rem}.vendors-page .ven-balance-card .bc-row{display:flex;align-items:baseline;justify-content:space-between;gap:.75rem;flex-wrap:wrap}.vendors-page .ven-balance-card .bc-label{font-size:.75rem;opacity:.85}.vendors-page .ven-balance-card .bc-amount{font-size:1.25rem;font-weight:700;letter-spacing:-.02em}.vendors-page .ven-txn-table-wrap{max-height:320px;overflow:auto;border:1px solid #e2e8f0;border-radius:10px}.vendors-page .ven-txn-table{width:100%;border-collapse:collapse;font-size:.82rem}.vendors-page .ven-txn-table thead th{text-align:left;padding:.65rem .85rem;font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.03em;color:#94a3b8;background:#f8fafc;border-bottom:1px solid #e2e8f0;white-space:nowrap;position:sticky;top:0;z-index:1}.vendors-page .ven-txn-table tbody td{padding:.7rem .85rem;border-bottom:1px solid #f1f5f9;color:#475569;vertical-align:middle}.vendors-page .ven-txn-table tbody tr:last-child td{border-bottom:none}.vendors-page .ven-txn-table tbody tr:hover{background:#f8fafc}.vendors-page .ven-txn-type{display:inline-block;padding:.15rem .5rem;border-radius:4px;font-size:.72rem;font-weight:600}.vendors-page .ven-txn-type.payment{background:#ecfdf5;color:#059669}.vendors-page .ven-txn-type.purchase{background:#fef2f2;color:#dc2626}.vendors-page .ven-txn-amt{font-weight:600;white-space:nowrap}.vendors-page .ven-txn-amt.payment{color:#059669}.vendors-page .ven-txn-amt.purchase{color:#dc2626}.vendors-page .ven-txn-bal{font-weight:600;color:#0f172a;white-space:nowrap}.vendors-page .ven-empty-txn{text-align:center;padding:2rem 1rem;color:#94a3b8;font-size:.85rem}.vendors-page .ven-day-grid{display:flex;flex-wrap:wrap;gap:.45rem}.vendors-page .ven-day-chip{min-width:48px;height:36px;padding:0 .65rem;border-radius:8px;border:1px solid #e2e8f0;background:#fff;font-size:.8rem;font-weight:500;font-family:inherit;color:#475569;cursor:pointer}.vendors-page .ven-day-chip:hover{background:#f8fafc;color:#0f172a}.vendors-page .ven-day-chip.active{background:#1e3a5f;border-color:#1e3a5f;color:#fff}@media(max-width:900px){.vendors-page .ven-layout{grid-template-columns:1fr}.vendors-page .ven-right-panel{position:static;order:-1}}@media(max-width:560px){.vendors-page .ven-form-grid{grid-template-columns:1fr}.vendors-page .ven-list-header{padding:.75rem 1rem}.vendors-page .ven-header-search{max-width:none}}.pos-page{--pos-bg-page: #f1f5f9;--pos-bg-surface: #ffffff;--pos-bg-muted: #f8fafc;--pos-bg-subtle: #f1f5f9;--pos-border: #e2e8f0;--pos-border-strong: #cbd5e1;--pos-text-primary: #0f172a;--pos-text-secondary: #334155;--pos-text-muted: #64748b;--pos-text-faint: #94a3b8;--pos-accent: #0F3A6F;--pos-accent-hover: #0a2d57;--pos-accent-soft: #e8eef6;--pos-danger: #b91c1c;--pos-danger-soft: #fef2f2;--pos-warning: #b45309;--pos-warning-soft: #fffbeb;--pos-success: #047857;--pos-success-soft: #ecfdf5;--pos-shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);--pos-shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);--pos-shadow-md: 0 4px 12px rgba(15, 23, 42, .07);--pos-shadow-lg: 0 12px 32px rgba(15, 23, 42, .1);--pos-radius: 12px;--pos-radius-sm: 8px;--pos-radius-full: 9999px}.pos-page{display:flex;flex-direction:column;height:100%;background:var(--pos-bg-surface);border-radius:var(--pos-radius);overflow:hidden;border:1px solid var(--pos-border)}.pos-page .pos-header{display:flex;align-items:center;justify-content:flex-end;padding:0 24px;height:56px;background:var(--pos-bg-surface);border-bottom:1px solid var(--pos-border);flex-shrink:0;box-shadow:0 1px #0f3a6f0a}.pos-page .pos-header-right{display:flex;align-items:center;gap:8px;margin-left:auto}.pos-page .pos-icon-btn{width:36px;height:36px;border-radius:var(--pos-radius-sm);border:none;background:transparent;color:var(--pos-text-muted);font-size:14px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .15s,color .15s}.pos-page .pos-icon-btn:hover{background:var(--pos-bg-subtle);color:var(--pos-text-secondary)}.pos-page .pos-user-badge{display:flex;align-items:center;gap:8px;padding:3px 8px 3px 3px;border-radius:var(--pos-radius-full);margin-left:4px}.pos-page .pos-user-avatar{width:30px;height:30px;background:linear-gradient(135deg,#0f3a6f,#1a4a8a);border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:600;font-size:11px}.pos-page .pos-user-info{display:flex;flex-direction:column;line-height:1.2}.pos-page .pos-user-name{font-size:12px;font-weight:600;color:var(--pos-text-primary)}.pos-page .pos-user-role{font-size:10px;color:var(--pos-text-muted)}.pos-page .pos-body{display:grid;grid-template-columns:1fr 380px;flex:1;min-height:0}.pos-page .pos-products-panel{display:flex;flex-direction:column;background:var(--pos-bg-page);min-height:0;overflow:hidden}.pos-page .pos-toolbar{display:flex;flex-wrap:nowrap;gap:10px;align-items:center;padding:10px 12px;background:#1a4a7a;border:1px solid #143a61;border-radius:var(--pos-radius-sm);box-shadow:var(--pos-shadow-sm, 0 1px 3px rgba(0,0,0,.1));margin-bottom:14px;flex-shrink:0}.pos-page .pos-search-input{flex:1;min-width:200px;position:relative}.pos-page .pos-search-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:#ffffff8c;font-size:13px}.pos-page .pos-search-input input{width:100%;height:36px;padding:0 14px 0 34px;border:1px solid rgba(255,255,255,.22);border-radius:var(--pos-radius-sm);font-size:13px;background:#ffffff1f;color:#fff;transition:border-color .15s,box-shadow .15s,background .15s}.pos-page .pos-search-input input::placeholder{color:#ffffff80}.pos-page .pos-search-input input:focus{outline:none;background:#ffffff2e;border-color:#ffffff73;box-shadow:0 0 0 3px #ffffff1f}.pos-page .pos-filter-group{display:flex;gap:8px;flex-wrap:wrap}.pos-page .pos-filter-group select{height:36px;padding:0 28px 0 12px;border:1px solid rgba(255,255,255,.22);border-radius:var(--pos-radius-sm);font-size:13px;font-weight:500;background:#ffffff1f;color:#fff;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;transition:border-color .15s,box-shadow .15s}.pos-page .pos-filter-group select:focus{outline:none;border-color:#ffffff73;box-shadow:0 0 0 3px #ffffff1f}.pos-page .pos-filter-group select option{color:var(--pos-text-primary);background:#fff}.pos-page .pos-pause-btn{display:flex;align-items:center;justify-content:center;height:36px;width:36px;padding:0;border:1px solid rgba(255,255,255,.28);border-radius:var(--pos-radius-sm);background:#ffffff1f;color:#fff;font-size:12px;cursor:pointer;transition:background .12s,border-color .12s;flex-shrink:0}.pos-page .pos-pause-btn:hover{background:#ffffff38;border-color:#fff6}.pos-page .pos-view-toggle{display:flex;border:1px solid rgba(255,255,255,.28);border-radius:var(--pos-radius-sm);overflow:hidden;background:#ffffff14;flex-shrink:0}.pos-page .pos-view-btn{width:36px;height:34px;border:none;background:transparent;color:#ffffffbf;font-size:15px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .12s,color .12s}.pos-page .pos-view-btn:not(:last-child){border-right:1px solid rgba(255,255,255,.2)}.pos-page .pos-view-btn:hover{background:#ffffff26;color:#fff}.pos-page .pos-view-btn.active{background:#ffffff47;color:#fff}.pos-page .pos-products-grid-wrap{flex:1;overflow-y:auto;padding:16px 20px 24px}.pos-page .pos-products-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px}.pos-page .pos-product-card{background:var(--pos-bg-surface);border:1px solid var(--pos-border);border-radius:var(--pos-radius);padding:14px;cursor:pointer;transition:border-color .15s,box-shadow .15s,transform .12s;display:flex;flex-direction:column;gap:10px;box-shadow:var(--pos-shadow-sm)}.pos-page .pos-product-card:hover{border-color:var(--pos-accent);box-shadow:var(--pos-shadow-md);transform:translateY(-1px)}.pos-page .pos-product-card:active{transform:translateY(0)}.pos-page .pos-product-card.out-of-stock{opacity:.55;pointer-events:none}.pos-page .pos-product-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.pos-page .pos-product-icon{width:40px;height:40px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:16px;flex-shrink:0}.pos-page .pos-product-icon.tablet{background:#e8eef6;color:#0f3a6f}.pos-page .pos-product-icon.capsule{background:#f3e8ff;color:#7c3aed}.pos-page .pos-product-icon.syrup{background:#fff7ed;color:#b45309}.pos-page .pos-product-icon.injection{background:#fef2f2;color:#b91c1c}.pos-page .pos-product-icon.inhaler{background:#e0f2fe;color:#0369a1}.pos-page .pos-product-icon.cream{background:#ecfdf5;color:#047857}.pos-page .pos-product-icon.other{background:var(--pos-bg-muted);color:var(--pos-text-muted)}.pos-page .pos-stock-badge{font-size:10px;font-weight:600;padding:2px 8px;border-radius:var(--pos-radius-full);background:var(--pos-success-soft);color:var(--pos-success)}.pos-page .pos-stock-badge.low{background:var(--pos-warning-soft);color:var(--pos-warning)}.pos-page .pos-stock-badge.out{background:var(--pos-danger-soft);color:var(--pos-danger)}.pos-page .pos-product-name{font-weight:600;font-size:13.5px;color:var(--pos-text-primary);line-height:1.3}.pos-page .pos-product-meta{font-size:11.5px;color:var(--pos-text-muted);line-height:1.35}.pos-page .pos-product-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:auto;padding-top:4px}.pos-page .pos-product-price{font-weight:700;font-size:15px;color:var(--pos-accent);letter-spacing:-.3px}.pos-page .pos-product-price span{font-size:11px;font-weight:500;color:var(--pos-text-muted)}.pos-page .pos-price-label{display:block;font-size:10px;font-weight:600;color:var(--pos-text-muted);text-transform:uppercase;letter-spacing:.3px;margin-bottom:2px}.pos-page .pos-add-btn{width:30px;height:30px;border:none;border-radius:var(--pos-radius-sm);background:var(--pos-accent);color:#fff;font-size:13px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .12s}.pos-page .pos-add-btn:hover{background:var(--pos-accent-hover)}.pos-page .pos-no-results{grid-column:1 / -1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 24px;color:var(--pos-text-faint);text-align:center;gap:8px}.pos-page .pos-no-results p{font-size:14px;font-weight:500}.pos-page .pos-no-results span{font-size:12px}.pos-page .pos-loading{display:flex;align-items:center;justify-content:center;padding:64px 24px;color:var(--pos-text-faint);font-size:14px;font-weight:500}.pos-page .pos-list-view{background:var(--pos-bg-surface);border:1px solid var(--pos-border);border-radius:var(--pos-radius);overflow:hidden;box-shadow:var(--pos-shadow-sm)}.pos-page .pos-list-header{display:grid;grid-template-columns:48px 1.4fr 1.2fr .8fr .9fr .7fr .7fr .6fr 44px;gap:0;align-items:center;padding:0 16px;height:38px;background:var(--pos-bg-muted);border-bottom:1px solid var(--pos-border);font-size:11px;font-weight:600;color:var(--pos-text-muted);text-transform:uppercase;letter-spacing:.3px}.pos-page .pos-list-row{display:grid;grid-template-columns:48px 1.4fr 1.2fr .8fr .9fr .7fr .7fr .6fr 44px;gap:0;align-items:center;padding:0 16px;height:50px;border-bottom:1px solid var(--pos-border);cursor:pointer;transition:background .1s;font-size:13px;color:var(--pos-text-primary)}.pos-page .pos-list-row:last-child{border-bottom:none}.pos-page .pos-list-row:hover{background:var(--pos-bg-muted)}.pos-page .pos-list-row.out-of-stock{opacity:.5;pointer-events:none}.pos-page .pos-list-name{font-weight:600;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pos-page .pos-list-muted{color:var(--pos-text-muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pos-page .pos-list-price{font-weight:700;color:var(--pos-accent);font-size:13px}.pos-page .pos-list-col-icon{display:flex;align-items:center;justify-content:center}.pos-page .pos-list-col-icon .pos-product-icon{width:32px;height:32px;border-radius:8px;font-size:10px}.pos-page .pos-list-col-action{display:flex;align-items:center;justify-content:center}.pos-page .pos-cart-panel{background:var(--pos-bg-surface);border-left:1px solid var(--pos-border);display:flex;flex-direction:column;min-height:0;overflow:hidden;max-height:98%}.pos-page .pos-cart-header{padding:14px 18px;border-bottom:1px solid var(--pos-border);display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.pos-page .pos-cart-header h2{font-size:14px;font-weight:700;color:var(--pos-text-primary);display:flex;align-items:center;gap:8px;letter-spacing:-.2px;margin:0}.pos-page .pos-cart-header h2 svg{color:var(--pos-accent);font-size:14px}.pos-page .pos-cart-count{background:var(--pos-accent-soft);color:var(--pos-accent);font-size:11px;font-weight:700;padding:2px 8px;border-radius:var(--pos-radius-full);border:1px solid rgba(15,58,111,.12)}.pos-page .pos-btn-clear{height:30px;padding:0 10px;border:1px solid var(--pos-border);border-radius:var(--pos-radius-sm);background:transparent;font-size:12px;font-weight:500;color:var(--pos-text-muted);cursor:pointer;display:inline-flex;align-items:center;gap:5px;transition:background .12s,color .12s,border-color .12s}.pos-page .pos-btn-clear:hover{background:var(--pos-danger-soft);border-color:#b91c1c33;color:var(--pos-danger)}.pos-page .pos-customer-bar{padding:12px 18px;border-bottom:1px solid var(--pos-border);background:var(--pos-bg-muted);flex-shrink:0}.pos-page .pos-patient-dropdown{position:relative}.pos-page .pos-patient-dropdown-input{display:flex;align-items:center;gap:8px;height:36px;padding:0 10px;border:1px solid var(--pos-border);border-radius:var(--pos-radius-sm);background:var(--pos-bg-surface)}.pos-page .pos-patient-dropdown-input:focus-within{border-color:var(--pos-accent);box-shadow:0 0 0 3px #0f3a6f1a}.pos-page .pos-patient-icon{color:var(--pos-text-faint);font-size:13px;flex-shrink:0}.pos-page .pos-patient-dropdown-input input{flex:1;border:none;outline:none;background:transparent;font-size:13px;color:var(--pos-text-primary);min-width:0}.pos-page .pos-patient-dropdown-input input::placeholder{color:var(--pos-text-faint)}.pos-page .pos-patient-clear{background:none;border:none;cursor:pointer;color:var(--pos-text-faint);padding:2px;display:flex;align-items:center;font-size:12px}.pos-page .pos-patient-clear:hover{color:var(--pos-text-primary)}.pos-page .pos-patient-chevron{color:var(--pos-text-faint);font-size:11px;flex-shrink:0}.pos-page .pos-patient-selected{margin-top:6px;font-size:12px;font-weight:600;color:var(--pos-accent);padding:4px 8px;background:#0f3a6f0f;border-radius:6px}.pos-page .pos-patient-dropdown-list{position:absolute;top:100%;left:0;right:0;z-index:50;margin-top:4px;max-height:220px;overflow-y:auto;background:var(--pos-bg-surface);border:1px solid var(--pos-border);border-radius:var(--pos-radius-sm);box-shadow:0 8px 24px #0000001f}.pos-page .pos-patient-no-results{padding:12px;text-align:center;font-size:12px;color:var(--pos-text-faint)}.pos-page .pos-patient-option{padding:8px 12px;cursor:pointer;border-bottom:1px solid var(--pos-border-light, #f1f5f9);transition:background .12s}.pos-page .pos-patient-option:last-child{border-bottom:none}.pos-page .pos-patient-option:hover,.pos-page .pos-patient-option.selected{background:var(--pos-bg-muted)}.pos-page .pos-patient-option-name{font-size:13px;font-weight:600;color:var(--pos-text-primary)}.pos-page .pos-patient-option-meta{display:flex;gap:12px;margin-top:2px;font-size:11px;color:var(--pos-text-secondary)}.pos-page .pos-cart-items{flex:1;overflow-y:auto;padding:8px 0;min-height:0}.pos-page .pos-cart-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 24px;color:var(--pos-text-faint);text-align:center;gap:10px}.pos-page .pos-cart-empty svg{font-size:36px;opacity:.4}.pos-page .pos-cart-empty p{font-size:13px;font-weight:500}.pos-page .pos-cart-empty span{font-size:12px}.pos-page .pos-cart-line{display:grid;grid-template-columns:1fr auto;gap:8px;padding:10px 18px;border-bottom:1px solid var(--pos-border);transition:background .1s}.pos-page .pos-cart-line:hover{background:var(--pos-bg-muted)}.pos-page .pos-cart-line:last-child{border-bottom:none}.pos-page .pos-line-info{min-width:0}.pos-page .pos-line-name{font-weight:600;font-size:13px;color:var(--pos-text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pos-page .pos-line-meta{font-size:11px;color:var(--pos-text-muted);margin-top:1px}.pos-page .pos-line-controls{display:flex;flex-direction:column;align-items:flex-end;gap:6px}.pos-page .pos-line-price{font-weight:700;font-size:13px;color:var(--pos-text-primary)}.pos-page .pos-qty-control{display:flex;align-items:center;gap:0;border:1px solid var(--pos-border);border-radius:var(--pos-radius-sm);overflow:hidden;background:var(--pos-bg-surface)}.pos-page .pos-qty-btn{width:26px;height:26px;border:none;background:transparent;color:var(--pos-text-secondary);font-size:11px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .1s,color .1s}.pos-page .pos-qty-btn:hover{background:var(--pos-bg-subtle);color:var(--pos-accent)}.pos-page .pos-qty-btn.remove:hover{background:var(--pos-danger-soft);color:var(--pos-danger)}.pos-page .pos-qty-input{width:52px;text-align:center;font-size:12px;font-weight:600;color:var(--pos-text-primary);border:none;border-left:1px solid var(--pos-border);border-right:1px solid var(--pos-border);height:26px;line-height:26px;background:transparent;outline:none;-moz-appearance:textfield}.pos-page .pos-qty-input::-webkit-inner-spin-button,.pos-page .pos-qty-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.pos-page .pos-qty-input:focus{background:var(--pos-bg-surface)}.pos-page .pos-cart-footer{border-top:1px solid var(--pos-border);background:var(--pos-bg-muted);flex-shrink:0;padding:14px 18px 16px}.pos-page .pos-totals{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}.pos-page .pos-total-row{display:flex;justify-content:space-between;align-items:center;font-size:12.5px;color:var(--pos-text-secondary)}.pos-page .pos-total-row.grand{font-size:16px;font-weight:700;color:var(--pos-text-primary);padding-top:8px;margin-top:2px;border-top:1px dashed var(--pos-border)}.pos-page .pos-grand-amount{color:var(--pos-accent);letter-spacing:-.4px}.pos-page .pos-payment-methods{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-bottom:12px}.pos-page .pos-pay-btn{height:36px;border:1px solid var(--pos-border);border-radius:var(--pos-radius-sm);background:var(--pos-bg-surface);font-size:11.5px;font-weight:500;color:var(--pos-text-secondary);cursor:pointer;display:flex;align-items:center;justify-content:center;gap:5px;transition:background .12s,border-color .12s,color .12s}.pos-page .pos-pay-btn svg{font-size:12px;color:var(--pos-text-muted)}.pos-page .pos-pay-btn:hover{background:var(--pos-bg-subtle);border-color:var(--pos-border-strong)}.pos-page .pos-pay-btn.active{background:var(--pos-accent-soft);border-color:var(--pos-accent);color:var(--pos-accent)}.pos-page .pos-pay-btn.active svg{color:var(--pos-accent)}.pos-page .pos-checkout-btn{width:100%;height:44px;border:none;border-radius:var(--pos-radius-sm);background:var(--pos-accent);color:#fff;font-size:14px;font-weight:600;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;transition:background .15s,box-shadow .15s;box-shadow:0 1px 3px #0f3a6f40}.pos-page .pos-checkout-btn:hover{background:var(--pos-accent-hover);box-shadow:0 2px 8px #0f3a6f4d}.pos-page .pos-checkout-btn:disabled{background:var(--pos-border-strong);color:var(--pos-text-faint);cursor:not-allowed;box-shadow:none}.pos-page .pos-modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a80;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);z-index:1000;display:flex;justify-content:center;align-items:center;padding:16px}.pos-page .pos-receipt-modal{background:var(--pos-bg-surface);border-radius:16px;max-width:400px;width:100%;box-shadow:0 24px 48px #0f172a2e;overflow:hidden;animation:posModalIn .22s ease}@keyframes posModalIn{0%{transform:translateY(12px) scale(.98);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}.pos-page .pos-receipt-header{padding:20px 24px 16px;text-align:center;border-bottom:1px solid var(--pos-border)}.pos-page .pos-receipt-check{width:48px;height:48px;border-radius:50%;background:var(--pos-success-soft);color:var(--pos-success);display:flex;align-items:center;justify-content:center;font-size:22px;margin:0 auto 12px}.pos-page .pos-receipt-header h3{font-size:17px;font-weight:700;color:var(--pos-text-primary);margin:0 0 4px}.pos-page .pos-receipt-header p{font-size:12.5px;color:var(--pos-text-muted);margin:0}.pos-page .pos-receipt-body{padding:16px 24px;max-height:280px;overflow-y:auto}.pos-page .pos-receipt-meta{display:flex;justify-content:space-between;font-size:11.5px;color:var(--pos-text-muted);margin-bottom:12px;padding-bottom:10px;border-bottom:1px dashed var(--pos-border)}.pos-page .pos-receipt-line{display:flex;justify-content:space-between;gap:12px;font-size:12.5px;padding:5px 0;color:var(--pos-text-secondary)}.pos-page .pos-receipt-line .pos-rl-name{flex:1;min-width:0}.pos-page .pos-receipt-line .pos-rl-qty{color:var(--pos-text-muted);flex-shrink:0}.pos-page .pos-receipt-line .pos-rl-amt{font-weight:600;color:var(--pos-text-primary);flex-shrink:0;min-width:60px;text-align:right}.pos-page .pos-receipt-total{display:flex;justify-content:space-between;padding-top:12px;margin-top:8px;border-top:1px dashed var(--pos-border);font-size:15px;font-weight:700;color:var(--pos-text-primary)}.pos-page .pos-receipt-total-amt{color:var(--pos-accent)}.pos-page .pos-receipt-actions{display:flex;gap:8px;padding:14px 24px 20px;border-top:1px solid var(--pos-border);background:var(--pos-bg-muted)}.pos-page .pos-receipt-actions button{flex:1;height:40px;border-radius:var(--pos-radius-sm);font-size:13px;font-weight:600;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:6px;transition:background .12s,border-color .12s}.pos-page .pos-btn-secondary{background:var(--pos-bg-surface);border:1px solid var(--pos-border);color:var(--pos-text-secondary)}.pos-page .pos-btn-secondary:hover{background:var(--pos-bg-subtle);border-color:var(--pos-border-strong)}.pos-page .pos-btn-primary{background:var(--pos-accent);border:none;color:#fff}.pos-page .pos-btn-primary:hover{background:var(--pos-accent-hover)}.pos-page .pos-toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%) translateY(80px);background:var(--pos-text-primary);color:#fff;padding:12px 20px;border-radius:var(--pos-radius-sm);font-size:13px;font-weight:500;box-shadow:var(--pos-shadow-lg);z-index:2000;opacity:0;transition:transform .25s ease,opacity .25s ease;display:flex;align-items:center;gap:10px;pointer-events:none}.pos-page .pos-toast.show{transform:translate(-50%) translateY(0);opacity:1}.pos-page .pos-toast svg{color:#34d399}@media(max-width:1100px){.pos-page .pos-body{grid-template-columns:1fr 340px}.pos-page .pos-products-grid{grid-template-columns:repeat(auto-fill,minmax(170px,1fr))}.pos-page .pos-list-header,.pos-page .pos-list-row{grid-template-columns:40px 1.3fr 1fr .7fr .7fr .6fr 44px}.pos-page .pos-list-col-cat{display:none}}@media(max-width:900px){.pos-page .pos-body{grid-template-columns:1fr;grid-template-rows:1fr auto;height:auto}.pos-page .pos-cart-panel{border-left:none;border-top:1px solid var(--pos-border);max-height:50vh}.pos-page .pos-user-info{display:none}}@media(max-width:560px){.pos-page .pos-header{padding:0 12px}.pos-page .pos-toolbar{padding:10px 12px;flex-direction:column;align-items:stretch}.pos-page .pos-filter-group{width:100%}.pos-page .pos-filter-group select{flex:1}.pos-page .pos-products-grid-wrap{padding:12px}.pos-page .pos-products-grid{grid-template-columns:1fr 1fr;gap:8px}.pos-page .pos-product-card{padding:10px}.pos-page .pos-list-header,.pos-page .pos-list-row{grid-template-columns:36px 1fr .6fr .5fr 44px}.pos-page .pos-list-col-salt,.pos-page .pos-list-col-form,.pos-page .pos-list-col-pack{display:none}}.poslist-page{max-width:1440px;margin:0 auto;min-height:100vh;padding:10px;background:#f1f5f9;display:flex;flex-direction:column}.poslist-page .poslist-page-body{display:grid;grid-template-columns:1fr 300px;gap:20px;flex:1;min-height:0}.poslist-page .poslist-page-body.poslist-sidebar-collapsed{grid-template-columns:1fr}.poslist-page .poslist-page-body.poslist-sidebar-collapsed .poslist-sidebar-content{display:none}.poslist-page .poslist-main-content{display:flex;flex-direction:column;min-width:0;gap:14px}.poslist-page .poslist-sidebar-content{display:flex;flex-direction:column;gap:16px}.poslist-page .poslist-top-bar{display:flex;align-items:center;gap:12px;background:#1e3a5f;border-radius:12px;padding:10px 14px 10px 18px;box-shadow:0 2px 8px #1e3a5f40}.poslist-page .poslist-top-bar-title{font-weight:600;font-size:15px;color:#fff;white-space:nowrap;letter-spacing:-.2px;padding-right:8px}.poslist-page .poslist-top-search{position:relative;width:180px;flex-shrink:0}.poslist-page .poslist-top-search svg{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:#94a3b8;font-size:13px}.poslist-page .poslist-top-search input{width:100%;height:36px;padding:0 16px 0 38px;border:none;border-radius:8px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:13px;background:#fff;color:#0f172a;box-shadow:0 1px 2px #0000000a}.poslist-page .poslist-top-search input::placeholder{color:#94a3b8}.poslist-page .poslist-top-search input:focus{outline:none;box-shadow:0 0 0 3px #ffffff40}.poslist-page .poslist-top-filters{display:flex;align-items:center;gap:6px}.poslist-page .poslist-top-filters select{height:36px;padding:0 28px 0 12px;border:none;border-radius:8px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:12.5px;font-weight:500;background:#ffffff26 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E") no-repeat right 10px center;color:#fff;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;transition:background .15s;max-width:140px}.poslist-page .poslist-top-filters select:hover{background-color:#ffffff38}.poslist-page .poslist-top-filters select:focus{outline:none;background-color:#ffffff47}.poslist-page .poslist-top-filters select option{background:#1e3a5f;color:#fff}.poslist-page .poslist-top-bar-actions{display:flex;align-items:center;gap:6px;margin-left:auto}.poslist-page .poslist-top-icon-btn{width:36px;height:36px;border-radius:8px;border:none;background:#ffffff1f;color:#fff;font-size:13px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .15s}.poslist-page .poslist-top-icon-btn:hover{background:#ffffff38}.poslist-page .poslist-top-icon-btn.active{background:#ffffff47}.poslist-page .poslist-top-icon-btn svg{width:17px;height:17px}.poslist-page .poslist-summary-strip{display:flex;align-items:center;gap:28px;background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:14px 20px;box-shadow:0 1px 2px #0f172a0a}.poslist-page .poslist-summary-item{display:flex;flex-direction:column;gap:2px}.poslist-page .poslist-summary-item .poslist-summary-label{font-size:11px;font-weight:600;color:#64748b;letter-spacing:.4px;text-transform:uppercase}.poslist-page .poslist-summary-item .poslist-summary-value{font-size:22px;font-weight:700;color:#0f172a;letter-spacing:-.5px;line-height:1.2}.poslist-page .poslist-summary-item .poslist-summary-value.poslist-revenue{color:#1e3a5f}.poslist-page .poslist-table-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 1px 3px #0f172a0d,0 1px 2px #0f172a08;overflow:hidden;display:flex;flex-direction:column;flex:1}.poslist-page .poslist-table-wrapper{overflow-x:auto;flex:1}.poslist-page .poslist-table-wrapper table{width:100%;border-collapse:collapse;font-size:13px;min-width:900px}.poslist-page .poslist-table-wrapper th{background:#f8fafc;color:#64748b;font-weight:600;font-size:11px;letter-spacing:.4px;text-transform:uppercase;padding:12px 14px;text-align:left;border-bottom:1px solid #e2e8f0;white-space:nowrap}.poslist-page .poslist-table-wrapper td{padding:12px 14px;border-bottom:1px solid #e2e8f0;color:#334155;vertical-align:middle}.poslist-page .poslist-table-wrapper tr:last-child td{border-bottom:none}.poslist-page .poslist-table-wrapper tbody tr{transition:background .12s}.poslist-page .poslist-table-wrapper tbody tr:hover td{background:#f8fafc}.poslist-page .poslist-expand-btn{width:28px;height:28px;border:1px solid #e2e8f0;border-radius:6px;background:#fff;color:#64748b;font-size:11px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:background .12s,color .12s,border-color .12s}.poslist-page .poslist-expand-btn:hover{background:#f8fafc;border-color:#cbd5e1;color:#334155}.poslist-page .poslist-expand-btn.open{background:#e8eef6;border-color:#1e3a5f33;color:#1e3a5f}.poslist-page .poslist-sale-number{font-weight:600;color:#1e3a5f;display:inline-flex;align-items:center;gap:7px;font-size:13px}.poslist-page .poslist-sale-number svg{font-size:12px;opacity:.7}.poslist-page .poslist-payment-badge{font-size:11.5px;font-weight:600;padding:3px 10px;border-radius:9999px;display:inline-flex;align-items:center;letter-spacing:.1px}.poslist-page .poslist-payment-badge.cash{background:#ecfdf5;color:#059669}.poslist-page .poslist-payment-badge.card{background:#eff6ff;color:#2563eb}.poslist-page .poslist-payment-badge.mixed{background:#f5f3ff;color:#7c3aed}.poslist-page .poslist-grand-total{font-weight:700;color:#0f172a}.poslist-page .poslist-row-num{color:#64748b;font-weight:500;font-size:12.5px}.poslist-page .poslist-detail-row>td{background:#f8fafc!important;padding:0!important;border-bottom:1px solid #e2e8f0}.poslist-page .poslist-detail-content{padding:12px 16px 14px 56px;display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px 24px}.poslist-page .poslist-detail-item .poslist-d-label{font-size:10.5px;font-weight:600;color:#64748b;text-transform:uppercase;letter-spacing:.3px;margin-bottom:2px}.poslist-page .poslist-detail-item .poslist-d-value{font-size:13px;font-weight:500;color:#0f172a}.poslist-page .poslist-detail-wrap{padding:12px 16px 14px 56px}.poslist-page .poslist-detail-title{font-size:12px;font-weight:600;color:#475569;text-transform:uppercase;letter-spacing:.3px;margin-bottom:8px}.poslist-page .poslist-detail-loading{padding:20px;text-align:center;color:#94a3b8;font-size:13px}.poslist-page .poslist-detail-grid{width:100%;border-collapse:collapse;background:#fff;border:1px solid #e2e8f0;border-radius:8px;overflow:hidden}.poslist-page .poslist-detail-grid thead th{padding:8px 12px;font-size:10px;font-weight:600;color:#64748b;text-transform:uppercase;letter-spacing:.3px;text-align:left;background:#f1f5f9;border-bottom:1px solid #e2e8f0}.poslist-page .poslist-detail-grid tbody td{padding:8px 12px;font-size:12px;color:#334155;border-bottom:1px solid #f1f5f9;text-align:left}.poslist-page .poslist-detail-grid tbody tr:last-child td{border-bottom:none}.poslist-page .poslist-detail-grid tbody tr:hover{background:#f8fafc}.poslist-page .poslist-detail-empty{text-align:center;padding:16px;color:#94a3b8;font-size:12px}.poslist-page .poslist-detail-qty{font-weight:600;color:#0f172a;text-align:center}.poslist-page .poslist-detail-amount{font-weight:600;color:#0f172a;text-align:right}.poslist-page .poslist-pagination{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-top:1px solid #e2e8f0;background:#f8fafc;gap:12px;flex-wrap:wrap}.poslist-page .poslist-pagination .poslist-info{font-size:13px;color:#64748b;font-weight:500}.poslist-page .poslist-pagination .poslist-pages{display:flex;align-items:center;gap:4px}.poslist-page .poslist-pagination .poslist-pages button{min-width:30px;height:30px;padding:0 8px;border:1px solid transparent;border-radius:6px;background:transparent;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:13px;font-weight:500;color:#334155;cursor:pointer;transition:background .12s,border-color .12s}.poslist-page .poslist-pagination .poslist-pages button:hover{background:#fff;border-color:#e2e8f0}.poslist-page .poslist-pagination .poslist-pages button.active{background:#1e3a5f;color:#fff;border-color:#1e3a5f}.poslist-page .poslist-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 20px;gap:12px;color:#64748b}.poslist-page .poslist-spinner{width:32px;height:32px;border:3px solid #e2e8f0;border-top-color:#1e3a5f;border-radius:50%;animation:poslist-spin .6s linear infinite}@keyframes poslist-spin{to{transform:rotate(360deg)}}.poslist-page .poslist-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 20px;gap:6px;color:#64748b}.poslist-page .poslist-empty-icon{font-size:36px;color:#e2e8f0;margin-bottom:8px}.poslist-page .poslist-empty p{font-size:15px;font-weight:600;color:#475569;margin:0}.poslist-page .poslist-empty span{font-size:13px}.poslist-page .poslist-sidebar-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:16px;box-shadow:0 1px 2px #0f172a0a}.poslist-page .poslist-sidebar-card-title{font-weight:600;font-size:11px;color:#64748b;letter-spacing:.5px;text-transform:uppercase;margin-bottom:14px;display:flex;align-items:center;gap:7px}.poslist-page .poslist-sidebar-card-title svg{color:#1e3a5f;font-size:12px}.poslist-page .poslist-stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.poslist-page .poslist-stat-item{background:#f8fafc;border-radius:10px;padding:14px 10px;text-align:center;border:1px solid transparent;transition:border-color .15s}.poslist-page .poslist-stat-item:hover{border-color:#e2e8f0}.poslist-page .poslist-stat-item .poslist-number{font-weight:700;font-size:22px;color:#0f172a;line-height:1.15;letter-spacing:-.5px}.poslist-page .poslist-stat-item .poslist-number.green{color:#059669}.poslist-page .poslist-stat-item .poslist-number.blue{color:#2563eb}.poslist-page .poslist-stat-item .poslist-number.orange{color:#b45309}.poslist-page .poslist-stat-item .poslist-label{font-size:11px;color:#64748b;font-weight:500;margin-top:3px;letter-spacing:.2px}.poslist-page .poslist-recent-list{list-style:none}.poslist-page .poslist-recent-list li{padding:10px 0;border-bottom:1px solid #e2e8f0;display:flex;justify-content:space-between;align-items:center;gap:10px}.poslist-page .poslist-recent-list li:last-child{border-bottom:none;padding-bottom:0}.poslist-page .poslist-recent-list li:first-child{padding-top:0}.poslist-page .poslist-recent-sale-info{display:flex;flex-direction:column;gap:1px;min-width:0}.poslist-page .poslist-recent-sale-info .poslist-sale-id{font-weight:600;font-size:12.5px;color:#0f172a}.poslist-page .poslist-recent-sale-info .poslist-sale-meta{font-size:11px;color:#64748b}.poslist-page .poslist-recent-amount{font-weight:700;font-size:13px;color:#0f172a;white-space:nowrap}.poslist-page .poslist-quick-actions{display:flex;flex-direction:column;gap:8px}.poslist-page .poslist-q-btn{height:40px;background:transparent;border:1px solid #e2e8f0;border-radius:8px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-weight:500;font-size:13px;color:#334155;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;transition:background .12s,border-color .12s,color .12s}.poslist-page .poslist-q-btn:hover{background:#f8fafc;border-color:#cbd5e1}.poslist-page .poslist-q-btn svg{font-size:12px;color:#64748b}.poslist-page .poslist-q-btn.primary{background:#1e3a5f;border-color:#1e3a5f;color:#fff;font-weight:600}.poslist-page .poslist-q-btn.primary:hover{background:#152a45;border-color:#152a45}.poslist-page .poslist-q-btn.primary svg{color:#fff}@media(max-width:1100px){.poslist-page .poslist-page-body{grid-template-columns:1fr 280px}.poslist-page .poslist-top-filters select{max-width:120px}}@media(max-width:900px){.poslist-page .poslist-page-body{grid-template-columns:1fr}.poslist-page .poslist-sidebar-content{order:-1}.poslist-page .poslist-top-bar{flex-wrap:wrap}.poslist-page .poslist-top-search{width:100%;order:3}.poslist-page .poslist-top-filters{order:4;width:100%;flex-wrap:wrap}.poslist-page .poslist-top-filters select{flex:1;max-width:none;min-width:120px}}@media(max-width:640px){.poslist-page{padding:12px}.poslist-page .poslist-top-bar{padding:10px 12px}.poslist-page .poslist-summary-strip{gap:18px;padding:12px 14px}.poslist-page .poslist-summary-item .poslist-summary-value{font-size:18px}}.por-page{display:flex;flex-direction:column;height:calc(100vh - 60px);background:#f1f5f9;overflow:hidden}.por-page .por-loading{display:flex;align-items:center;justify-content:center;padding:64px 24px;color:#94a3b8;font-size:14px;font-weight:500}.por-page .por-toolbar{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;background:#1a4a7a;border:1px solid #143a61;border-radius:var(--radius-sm);box-shadow:var(--shadow-sm);margin-bottom:14px;flex-shrink:0}.por-page .por-toolbar-left{display:flex;align-items:center;gap:14px}.por-page .por-title{font-size:15px;font-weight:700;color:#fff;display:flex;align-items:center;gap:8px;margin:0;letter-spacing:-.2px}.por-page .por-title svg{color:#fff;font-size:18px}.por-page .por-count{font-size:12px;font-weight:500;color:#fff;background:#ffffff26;padding:3px 10px;border-radius:9999px}.por-page .por-toolbar-right{display:flex;gap:8px}.por-page .por-toolbar-right .por-btn{background:#ffffff1f;border:1px solid rgba(255,255,255,.28);color:#fff}.por-page .por-toolbar-right .por-btn:hover{background:#ffffff38;border-color:#fff6}.por-page .por-btn{display:inline-flex;align-items:center;gap:6px;padding:0 16px;height:36px;border:1px solid #e2e8f0;border-radius:8px;font-size:13px;font-weight:600;cursor:pointer;transition:background .12s,border-color .12s,color .12s;background:#fff;color:#334155}.por-page .por-btn:hover{background:#f1f5f9;border-color:#cbd5e1}.por-page .por-btn-primary{background:#0f3a6f;border-color:#0f3a6f;color:#fff}.por-page .por-btn-primary:hover{background:#0a2d57;border-color:#0a2d57}.por-page .por-btn-primary:disabled{background:#cbd5e1;border-color:#cbd5e1;color:#94a3b8;cursor:not-allowed}.por-page .por-grid-wrap{flex:1;overflow-y:auto;padding:16px 24px 24px}.por-page .por-grid{width:100%;border-collapse:collapse;background:#fff;border:1px solid #e2e8f0;border-radius:12px;overflow:hidden;box-shadow:0 1px 2px #0f172a0d}.por-page .por-grid thead th{padding:10px 16px;font-size:11px;font-weight:600;color:#64748b;text-transform:uppercase;letter-spacing:.3px;text-align:left;background:#f8fafc;border-bottom:1px solid #e2e8f0}.por-page .por-grid tbody td{padding:12px 16px;font-size:13px;color:#334155;border-bottom:1px solid #e2e8f0}.por-page .por-grid tbody tr:last-child td{border-bottom:none}.por-page .por-grid tbody tr:hover{background:#f8fafc}.por-page .por-empty{text-align:center;padding:48px 16px!important;color:#94a3b8;font-size:13px}.por-page .por-th-expand{width:40px;min-width:40px;padding:10px 8px!important;text-align:center}.por-page .por-td-expand{width:40px;min-width:40px;padding:8px!important;text-align:center}.por-page .por-expand-btn{width:28px;height:28px;border:1px solid #e2e8f0;border-radius:6px;background:transparent;color:#64748b;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;font-size:14px;transition:background .12s,color .12s,border-color .12s}.por-page .por-expand-btn:hover{background:#e8eef6;border-color:#0f3a6f;color:#0f3a6f}.por-page .por-master-row.por-expanded{background:#f0f5fa}.por-page .por-detail-row>td{padding:0!important;border-bottom:1px solid #e2e8f0;background:#f8fafc}.por-page .por-detail-wrap{padding:12px 20px 16px 52px}.por-page .por-detail-title{font-size:12px;font-weight:600;color:#475569;text-transform:uppercase;letter-spacing:.3px;margin-bottom:8px}.por-page .por-detail-loading{padding:20px;text-align:center;color:#94a3b8;font-size:13px}.por-page .por-detail-grid{width:100%;border-collapse:collapse;background:#fff;border:1px solid #e2e8f0;border-radius:8px;overflow:hidden}.por-page .por-detail-grid thead th{padding:8px 12px;font-size:10px;font-weight:600;color:#64748b;text-transform:uppercase;letter-spacing:.3px;text-align:left;background:#f1f5f9;border-bottom:1px solid #e2e8f0}.por-page .por-detail-grid tbody td{padding:8px 12px;font-size:12px;color:#334155;border-bottom:1px solid #f1f5f9}.por-page .por-detail-grid tbody tr:last-child td{border-bottom:none}.por-page .por-detail-grid tbody tr:hover{background:#f8fafc}.por-page .por-detail-empty{text-align:center;padding:16px 12px!important;color:#94a3b8;font-size:12px}.por-page .por-amount-qty{text-align:center;font-weight:600}.por-page .por-ponum{font-weight:600;color:#0f3a6f}.por-page .por-amount{font-weight:700;color:#0f172a}.por-page .por-notes{max-width:200px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#64748b;font-size:12px}.por-page .por-status-badge{display:inline-block;padding:3px 10px;border-radius:9999px;font-size:11px;font-weight:600}.por-page .por-status-badge.unfinalized{background:#fffbeb;color:#b45309}.por-page .por-status-badge.finalized{background:#ecfdf5;color:#047857}.por-page .por-action-btn{width:30px;height:30px;border:1px solid #e2e8f0;border-radius:6px;background:transparent;color:#64748b;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;font-size:13px;transition:background .12s,color .12s,border-color .12s}.por-page .por-action-btn:hover{background:#e8eef6;border-color:#0f3a6f;color:#0f3a6f}.por-page .por-finalize-btn{color:#16a34a;border-color:#bbf7d0}.por-page .por-finalize-btn:hover{background:#dcfce7;border-color:#16a34a;color:#16a34a}.por-page .por-modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a80;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);z-index:1000;display:flex;justify-content:center;align-items:center;padding:16px}.por-page .por-modal-content{background:#fff;border-radius:16px;max-width:1380px;width:100%;max-height:94vh;display:flex;flex-direction:column;box-shadow:0 24px 48px #0f172a2e;animation:porModalIn .2s ease;overflow:hidden}@keyframes porModalIn{0%{transform:translateY(12px) scale(.98);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}.por-page .por-modal-header{display:flex;align-items:flex-start;justify-content:space-between;padding:18px 22px 14px;border-bottom:1px solid #e2e8f0;flex-shrink:0}.por-page .por-modal-title{font-weight:700;font-size:17px;color:#0f172a;display:flex;align-items:center;gap:10px;letter-spacing:-.3px;margin:0}.por-page .por-modal-icon{width:34px;height:34px;border-radius:9px;background:linear-gradient(135deg,#0f3a6f,#1a4a8a);color:#fff;display:flex;align-items:center;justify-content:center;font-size:14px;flex-shrink:0}.por-page .por-modal-subtitle{font-size:12.5px;color:#64748b;margin-left:44px;margin-top:2px}.por-page .por-modal-close{width:34px;height:34px;border:none;background:transparent;border-radius:8px;color:#64748b;font-size:14px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .15s,color .15s}.por-page .por-modal-close:hover{background:#f1f5f9;color:#334155}.por-page .por-modal-body{padding:16px 22px 8px;overflow-y:auto;flex:1;min-height:0;display:grid;grid-template-columns:1fr 280px;gap:16px;align-items:start}.por-page .por-modal-main{min-width:0;display:flex;flex-direction:column;gap:12px}.por-page .por-form-section{display:grid;grid-template-columns:110px 1fr;gap:0;border:1px solid #e2e8f0;border-radius:8px;overflow:hidden;background:#fff}.por-page .por-form-section-label{background:#f8fafc;border-right:1px solid #e2e8f0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:12px 8px;text-align:center}.por-page .por-form-section-label svg{color:#0f3a6f;font-size:14px}.por-page .por-form-section-label span{font-size:11px;font-weight:600;color:#64748b;text-transform:uppercase;letter-spacing:.4px;line-height:1.25}.por-page .por-form-section-fields{padding:12px 14px}.por-page .por-form-row-4{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:10px;margin-bottom:10px}.por-page .por-form-row-2{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:10px}.por-page .por-form-group{display:flex;flex-direction:column;margin-bottom:10px}.por-page .por-form-group:last-child{margin-bottom:0}.por-page .por-form-group label{font-weight:600;font-size:12px;color:#334155;display:block;margin-bottom:5px}.por-page .por-required{color:#b91c1c}.por-page .por-form-group input,.por-page .por-form-group select{width:100%;height:36px;padding:0 10px;border:1px solid #e2e8f0;border-radius:8px;font-family:inherit;font-size:13px;color:#0f172a;background:#fff;transition:border-color .15s,box-shadow .15s}.por-page .por-form-group select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;padding-right:28px;cursor:pointer}.por-page .por-form-group input:focus,.por-page .por-form-group select:focus{outline:none;border-color:#0f3a6f;box-shadow:0 0 0 3px #0f3a6f1f}.por-page .por-line-entry{display:grid;grid-template-columns:1.2fr .7fr .8fr .8fr .8fr .8fr auto;gap:10px;align-items:end;margin-bottom:12px;padding-bottom:12px;border-bottom:1px solid #e2e8f0}.por-page .por-line-entry .por-form-group{margin-bottom:0}.por-page .por-line-entry input,.por-page .por-line-entry select{width:100%;height:36px;padding:0 10px;border:1px solid #e2e8f0;border-radius:8px;font-family:inherit;font-size:13px;color:#0f172a;background:#fff}.por-page .por-line-entry select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;padding-right:28px;cursor:pointer}.por-page .por-line-entry input:focus,.por-page .por-line-entry select:focus{outline:none;border-color:#0f3a6f;box-shadow:0 0 0 3px #0f3a6f1f}.por-page .por-entry-total{height:36px;display:flex;align-items:center;font-weight:600;font-size:13px;color:#0f172a;padding:0 4px;white-space:nowrap}.por-page .por-form-group-btn{display:flex;flex-direction:column}.por-page .por-btn-add-line{height:36px;padding:0 14px;background:#0f3a6f;border:none;border-radius:8px;font-family:inherit;font-weight:600;font-size:13px;color:#fff;display:inline-flex;align-items:center;gap:6px;cursor:pointer;white-space:nowrap;transition:background .15s}.por-page .por-btn-add-line:hover{background:#0a2d57}.por-page .por-lines-grid-wrap{overflow-x:auto;border:1px solid #e2e8f0;border-radius:8px;max-height:280px;overflow-y:auto;min-height:120px}.por-page .por-lines-table{width:100%;border-collapse:collapse;font-size:12.5px}.por-page .por-lines-table th{background:#f8fafc;color:#64748b;font-weight:600;font-size:10.5px;text-transform:uppercase;letter-spacing:.3px;padding:8px 12px;text-align:left;border-bottom:1px solid #e2e8f0;position:sticky;top:0;z-index:1}.por-page .por-lines-table td{padding:10px 12px;border-bottom:1px solid #e2e8f0;vertical-align:middle;color:#334155}.por-page .por-lines-table tbody tr:last-child td{border-bottom:none}.por-page .por-lines-table tbody tr:hover td{background:#f8fafc}.por-page .por-lines-table .por-col-med{min-width:100px;width:140px;font-weight:500;color:#0f172a}.por-page .por-lines-table .por-col-batch{color:#94a3b8;font-size:12px}.por-page .por-lines-table .por-col-qty{width:60px;text-align:center}.por-page .por-lines-table .por-col-price,.por-page .por-lines-table .por-col-sale{width:90px}.por-page .por-lines-table .por-col-disc{width:80px}.por-page .por-lines-table .por-col-total{width:100px;font-weight:600;color:#0f172a;white-space:nowrap}.por-page .por-lines-table .por-col-expiry{width:100px;color:#64748b;font-size:12px}.por-page .por-lines-table .por-col-act{width:40px;text-align:center}.por-page .por-lines-empty{padding:28px 16px;text-align:center;color:#94a3b8;font-size:13px;display:flex;flex-direction:column;align-items:center;gap:8px}.por-page .por-lines-empty svg{font-size:22px;opacity:.5}.por-page .por-line-remove{width:28px;height:28px;border:none;background:transparent;color:#94a3b8;border-radius:6px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:background .12s,color .12s}.por-page .por-line-remove:hover{background:#fef2f2;color:#b91c1c}.por-page .por-finance-separator{height:1px;background:#e2e8f0;margin:4px 0}.por-page .por-finance-panel{background:#fff;border:1px solid #e2e8f0;border-radius:12px;overflow:hidden;display:flex;flex-direction:column;align-self:start;position:sticky;top:0}.por-page .por-finance-panel-header{background:#f8fafc;border-bottom:1px solid #e2e8f0;padding:14px 16px;text-align:center}.por-page .por-finance-panel-header span{font-size:14px;font-weight:600;color:#0f172a}.por-page .por-finance-fields{display:flex;flex-direction:column;gap:10px;padding:14px 14px 16px}.por-page .por-amt-field{display:grid;grid-template-columns:1fr 110px;align-items:center;gap:8px}.por-page .por-amt-field label{font-weight:500;font-size:12.5px;color:#334155;text-align:left;margin:0}.por-page .por-amt-field input{width:100%;height:34px;padding:0 10px;border:1px solid #e2e8f0;border-radius:8px;font-family:inherit;font-size:13px;color:#0f172a;background:#fff;text-align:right}.por-page .por-amt-field input:focus{outline:none;border-color:#0f3a6f;box-shadow:0 0 0 3px #0f3a6f1f}.por-page .por-amt-field input[readonly]{background:#f8fafc;color:#0f172a;font-weight:600;cursor:default}.por-page .por-amt-field input.por-total-input{background:#e8eef6;border-color:#0f3a6f33;color:#0f3a6f;font-weight:700}.por-page .por-amt-field input.por-balance-input{color:#b45309;font-weight:600}.por-page .por-amt-field input.por-balance-input.paid{color:#047857}.por-page .por-form-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:12px 22px;border-top:1px solid #e2e8f0;background:#f8fafc;flex-shrink:0}.por-page .por-btn-secondary{display:inline-flex;align-items:center;gap:6px;height:38px;padding:0 18px;border:1px solid #e2e8f0;border-radius:8px;font-size:13px;font-weight:600;cursor:pointer;background:#fff;color:#334155;transition:background .12s,border-color .12s,color .12s}.por-page .por-btn-secondary:hover{background:#f1f5f9;border-color:#cbd5e1}.por-page .por-form-actions .por-btn-primary{display:inline-flex;align-items:center;gap:6px;height:38px;padding:0 20px;border:none;border-radius:8px;font-size:13px;font-weight:600;cursor:pointer;background:#0f3a6f;color:#fff;transition:background .12s}.por-page .por-form-actions .por-btn-primary:hover{background:#0a2d57}.por-page .por-form-actions .por-btn-primary:disabled{background:#cbd5e1;cursor:not-allowed}@media(max-width:1100px){.por-page .por-form-row-4{grid-template-columns:repeat(2,1fr)}}@media(max-width:960px){.por-page .por-modal-body{grid-template-columns:1fr}.por-page .por-finance-panel{position:static}}@media(max-width:768px){.por-page .por-toolbar{padding:12px 16px;flex-direction:column;align-items:flex-start;gap:10px}.por-page .por-grid-wrap{padding:12px 16px}.por-page .por-form-row-4{grid-template-columns:1fr}.por-page .por-modal-content{max-height:96vh}.por-page .por-modal-body{padding:12px}.por-page .por-line-entry{grid-template-columns:1fr 1fr}.por-page .por-btn-add-line{grid-column:1 / -1;justify-content:center}}@media(max-width:640px){.por-page .por-form-section{grid-template-columns:1fr}.por-page .por-form-section-label{flex-direction:row;justify-content:flex-start;border-right:none;border-bottom:1px solid #e2e8f0;padding:8px 12px}}.rp-page{padding:1.25rem 1.5rem;background:#f1f5f9;min-height:100%}.rp-layout{display:grid;grid-template-columns:1fr 280px;gap:1.15rem;align-items:start}.rp-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 4px 12px #0000000f;overflow:hidden}.rp-header{background:#1e3a5f;padding:.85rem 1.25rem;display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}.rp-header h2{font-size:1.05rem;font-weight:600;color:#fff;white-space:nowrap;margin:0}.rp-search{flex:1;max-width:280px;position:relative}.rp-search svg{position:absolute;left:.85rem;top:50%;transform:translateY(-50%);width:16px;height:16px;color:#94a3b8;pointer-events:none}.rp-search input{width:100%;height:38px;padding:0 1rem 0 2.4rem;border:none;border-radius:8px;background:#ffffff1f;color:#fff;font-size:.85rem;font-family:inherit}.rp-search input::placeholder{color:#94a3b8}.rp-search input:focus{outline:none;background:#ffffff2e}.rp-header-tools{display:flex;align-items:center;gap:.5rem}.rp-role-select{height:38px;padding:0 2rem 0 .85rem;border:none;border-radius:8px;background:#ffffff26;color:#fff;font-size:.85rem;font-weight:500;font-family:inherit;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .6rem center;background-size:14px;min-width:140px}.rp-role-select:focus{outline:none;background-color:#ffffff38}.rp-role-select option{background:#1e3a5f;color:#fff}.rp-tool-btn{width:36px;height:36px;border-radius:8px;border:none;background:#ffffff1a;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer}.rp-tool-btn:hover{background:#fff3}.rp-tool-btn svg{width:17px;height:17px}.rp-info-bar{padding:.7rem 1.25rem;display:flex;align-items:center;justify-content:space-between;gap:1rem;border-bottom:1px solid #e2e8f0;background:#fff;flex-wrap:wrap}.rp-info-left{font-size:.82rem;color:#475569}.rp-info-left strong{color:#0f172a}.rp-info-actions{display:flex;gap:.4rem}.rp-mini-btn{height:32px;padding:0 .75rem;border-radius:6px;border:1px solid #e2e8f0;background:#fff;font-size:.78rem;font-weight:500;font-family:inherit;color:#475569;cursor:pointer}.rp-mini-btn:hover{background:#f8fafc;color:#0f172a}.rp-collapse-btn{width:28px;height:28px;border:none;background:transparent;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;color:#94a3b8;flex-shrink:0;transition:transform .2s,background .15s,color .15s;margin-right:.15rem}.rp-collapse-btn:hover{background:#e2e8f0;color:#0f172a}.rp-collapse-btn svg{width:16px;height:16px;transition:transform .2s}.rp-collapse-btn.rp-collapsed svg{transform:rotate(-90deg)}.rp-collapse-btn.rp-hidden{visibility:hidden;pointer-events:none}.rp-parent .rp-perm-info{align-items:center}.rp-perm-list{background:#fff;max-height:calc(100vh - 200px);overflow-y:auto}.rp-perm-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.85rem 1.25rem;border-bottom:1px solid #f1f5f9;transition:background .12s}.rp-perm-row:hover{background:#f8fafc}.rp-parent{background:#fafbfc}.rp-parent:hover{background:#f1f5f9}.rp-child{padding-left:2.75rem;background:#fff}.rp-child:hover{background:#f8fafc}.rp-child .rp-perm-name{font-weight:400;font-size:.85rem}.rp-child-dot{width:4px;height:4px;border-radius:50%;background:#cbd5e1;flex-shrink:0;margin-right:.15rem}.rp-perm-info{flex:1;min-width:0;display:flex;align-items:flex-start;gap:.5rem}.rp-perm-name{font-size:.875rem;font-weight:500;color:#0f172a}.rp-parent .rp-perm-name{font-weight:600}.rp-perm-desc{font-size:.78rem;color:#94a3b8;margin-top:2px}.rp-module-tag{display:inline-flex;align-items:center;padding:.12rem .45rem;border-radius:4px;font-size:.65rem;font-weight:600;background:#eff6ff;color:#1e40af;margin-left:.4rem;vertical-align:middle}.rp-toggle-wrap{display:flex;align-items:center;gap:.5rem;flex-shrink:0}.rp-toggle-label{font-size:.8rem;font-weight:500;color:#10b981;min-width:42px;text-align:right}.rp-toggle-label.off{color:#94a3b8}.rp-toggle{position:relative;width:44px;height:24px;flex-shrink:0}.rp-toggle input{opacity:0;width:0;height:0;position:absolute}.rp-toggle-slider{position:absolute;cursor:pointer;top:0;right:0;bottom:0;left:0;background:#cbd5e1;border-radius:24px;transition:.2s}.rp-toggle-slider:before{content:"";position:absolute;height:18px;width:18px;left:3px;bottom:3px;background:#fff;border-radius:50%;transition:.2s;box-shadow:0 1px 3px #0003}.rp-toggle input:checked+.rp-toggle-slider{background:#10b981}.rp-toggle input:checked+.rp-toggle-slider:before{transform:translate(20px)}.rp-right-panel{display:flex;flex-direction:column;gap:.85rem;position:sticky;top:1.25rem}.rp-panel-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:1rem;box-shadow:0 1px 3px #0000000d}.rp-panel-title{font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:#94a3b8;margin-bottom:.85rem;display:flex;align-items:center;gap:.35rem}.rp-panel-title svg{width:14px;height:14px}.rp-stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:.6rem}.rp-stat-box{background:#f8fafc;border-radius:10px;padding:.75rem .65rem;text-align:center}.rp-stat-num{font-size:1.35rem;font-weight:700;color:#0f172a;line-height:1.2}.rp-stat-num.rp-green{color:#059669}.rp-stat-num.rp-orange{color:#d97706}.rp-stat-num.rp-blue{color:#1e40af}.rp-stat-label{font-size:.72rem;color:#94a3b8;margin-top:2px}.rp-action-desc{font-size:.78rem;color:#475569;line-height:1.55;margin-bottom:.9rem}.rp-panel-actions{display:flex;flex-direction:column;gap:.5rem}.rp-btn{height:40px;padding:0 1.1rem;border-radius:8px;border:none;font-size:.85rem;font-weight:500;font-family:inherit;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:.4rem;transition:all .15s;width:100%}.rp-btn-primary{background:#1e3a5f;color:#fff}.rp-btn-primary:hover{background:#162d4a}.rp-btn-secondary{background:#fff;border:1px solid #e2e8f0;color:#0f172a}.rp-btn-secondary:hover{background:#f8fafc}.rp-toast{position:fixed;bottom:1.5rem;right:1.5rem;background:#0f172a;color:#fff;padding:.8rem 1.2rem;border-radius:10px;font-size:.85rem;font-weight:500;box-shadow:0 4px 12px #0000000f;display:flex;align-items:center;gap:.5rem;z-index:200;animation:rp-slide-up .25s ease}.rp-toast svg:first-child{color:#34d399;width:17px;height:17px}@keyframes rp-slide-up{0%{transform:translateY(10px);opacity:0}to{transform:translateY(0);opacity:1}}.rp-empty{text-align:center;padding:2rem 1rem;color:#94a3b8;font-size:.85rem;font-style:italic}@media(max-width:900px){.rp-layout{grid-template-columns:1fr}.rp-right-panel{position:static;order:-1}.rp-perm-list{max-height:none}}@media(max-width:640px){.rp-page{padding:1rem}.rp-header{flex-wrap:wrap}.rp-search{max-width:100%}.rp-perm-row{flex-direction:column;align-items:flex-start;gap:.6rem}.rp-child{padding-left:1.5rem}.rp-toggle-wrap{align-self:flex-end}}.bill-toolbar{display:flex;flex-wrap:nowrap;gap:10px;align-items:center;margin-bottom:14px;padding:10px 12px;background:#1a4a7a;border:1px solid #143a61;border-radius:var(--radius-sm, 8px);box-shadow:0 1px 2px #0f172a0d}.bill-toolbar .bill-heading{font-size:15px;font-weight:700;color:#fff;letter-spacing:-.2px;margin:0 4px 0 0;white-space:nowrap;flex-shrink:0}.bill-toolbar .bill-search-wrap{flex:1;min-width:140px;position:relative}.bill-toolbar .bill-search-wrap svg{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:#ffffff8c;font-size:13px}.bill-toolbar .bill-search-wrap input{width:100%;height:36px;padding:0 14px 0 34px;background:#ffffff1f;border:1px solid rgba(255,255,255,.22);border-radius:var(--radius-sm, 8px);color:#fff;font-family:var(--font, "Inter", sans-serif);font-size:13px}.bill-toolbar .bill-search-wrap input::placeholder{color:#ffffff80}.bill-toolbar .bill-search-wrap input:focus{background:#ffffff2e;border-color:#ffffff73;box-shadow:0 0 0 3px #ffffff1f;outline:none}.bill-filter-group{display:flex;gap:8px;flex-wrap:wrap}.bill-filter-group select{height:36px;padding:0 28px 0 12px;border:1px solid rgba(255,255,255,.22);border-radius:var(--radius-sm, 8px);font-family:var(--font, "Inter", sans-serif);font-size:13px;font-weight:500;background:#ffffff1f;color:#fff;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center}.bill-filter-group select option{color:var(--text-primary, #0f172a);background:#fff}.bill-toolbar-btn{height:36px;padding:0 12px;border:1px solid rgba(255,255,255,.28);border-radius:var(--radius-sm, 8px);background:#ffffff1f;color:#fff;font-family:var(--font, "Inter", sans-serif);font-size:12.5px;font-weight:600;cursor:pointer;display:inline-flex;align-items:center;gap:7px;white-space:nowrap;transition:background .12s,border-color .12s;flex-shrink:0}.bill-toolbar-btn:hover{background:#ffffff38;border-color:#fff6}.bill-toolbar-btn.icon-only{width:36px;padding:0;justify-content:center}.bill-toolbar-btn.active{background:#ffffff47;border-color:#ffffff80}.bill-toolbar-actions{display:flex;align-items:center;gap:8px;margin-left:auto;flex-shrink:0}.bill-view-toggle{display:flex;gap:0;border:1px solid rgba(255,255,255,.28);border-radius:6px;overflow:hidden;background:#ffffff14;flex-shrink:0}.bill-view-toggle button{width:32px;height:32px;border:none;background:transparent;color:#ffffffbf;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:12px;transition:background .12s,color .12s}.bill-view-toggle button+button{border-left:1px solid rgba(255,255,255,.2)}.bill-view-toggle button:hover{background:#ffffff26;color:#fff}.bill-view-toggle button.active{background:#ffffff47;color:#fff}.bill-sidebar-toggle{width:32px;height:32px;border:1px solid rgba(255,255,255,.28);border-radius:6px;background:#ffffff1f;color:#ffffffd9;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:12px;flex-shrink:0}.bill-sidebar-toggle:hover{background:#ffffff38;color:#fff;border-color:#fff6}.bill-filter-panel{display:none;background:var(--bg-surface, #fff);border:1px solid var(--border, #e2e8f0);border-radius:var(--radius-sm, 8px);box-shadow:0 1px 2px #0f172a0d;padding:14px 16px;margin-bottom:14px}.bill-filter-panel.open{display:block}.bill-filter-panel-title{font-size:12px;font-weight:600;color:var(--text-muted, #64748b);text-transform:uppercase;letter-spacing:.4px;margin-bottom:12px;display:flex;align-items:center;gap:8px}.bill-filter-panel-title svg{color:var(--accent, #0F3A6F)}.bill-filter-panel-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;align-items:end}.bill-filter-field label{display:block;font-size:11.5px;font-weight:600;color:var(--text-secondary, #334155);margin-bottom:5px}.bill-filter-field input,.bill-filter-field select{width:100%;height:36px;padding:0 10px;border:1px solid var(--border, #e2e8f0);border-radius:var(--radius-sm, 8px);font-family:var(--font, "Inter", sans-serif);font-size:13px;color:var(--text-primary, #0f172a);background:var(--bg-surface, #fff)}.bill-filter-field input:focus,.bill-filter-field select:focus{outline:none;border-color:var(--accent, #0F3A6F);box-shadow:0 0 0 3px #0f3a6f1f}.bill-date-range{display:flex;align-items:center;gap:6px;height:36px}.bill-date-range input[type=date]{flex:1;min-width:0;height:36px;padding:0 8px;border:1px solid var(--border, #e2e8f0);border-radius:var(--radius-sm, 8px);font-family:var(--font, "Inter", sans-serif);font-size:12.5px;color:var(--text-primary, #0f172a);background:var(--bg-surface, #fff)}.bill-date-range input[type=date]:focus{outline:none;border-color:var(--accent, #0F3A6F);box-shadow:0 0 0 3px #0f3a6f1f}.bill-date-range-sep{color:var(--text-muted, #64748b);font-weight:600;flex-shrink:0;font-size:13px}.bill-filter-panel-actions{display:flex;gap:8px;align-items:center;margin-top:12px;padding-top:12px;border-top:1px solid var(--border, #e2e8f0);justify-content:flex-end}.bill-filter-panel-actions .bill-btn-primary,.bill-filter-panel-actions .bill-btn-secondary{height:34px;padding:0 14px;font-size:12.5px}.bill-btn-primary{height:40px;padding:0 18px;background:var(--accent, #0F3A6F);border:none;border-radius:var(--radius-sm, 8px);font-family:var(--font, "Inter", sans-serif);font-weight:600;font-size:13px;color:#fff;display:inline-flex;align-items:center;gap:8px;cursor:pointer;transition:background .15s,box-shadow .15s;white-space:nowrap;box-shadow:0 1px 2px #0f3a6f33}.bill-btn-primary:hover{background:var(--accent-hover, #0a2d57);box-shadow:0 2px 6px #0f3a6f40}.bill-btn-secondary{height:40px;padding:0 16px;background:var(--bg-surface, #fff);border:1px solid var(--border, #e2e8f0);border-radius:var(--radius-sm, 8px);font-family:var(--font, "Inter", sans-serif);font-weight:500;font-size:13px;color:var(--text-secondary, #334155);cursor:pointer;transition:background .12s,border-color .12s}.bill-btn-secondary:hover{background:var(--bg-subtle, #f1f5f9);border-color:var(--border-strong, #cbd5e1)}.bill-table-card{background:var(--bg-surface, #fff);border:1px solid var(--border, #e2e8f0);border-radius:var(--radius, 12px);box-shadow:0 1px 2px #0f172a0d;overflow:hidden}.bill-table-card.tiles-mode .bill-table-wrap,.bill-table-card.list-mode .bill-tiles-grid{display:none}.bill-table-wrap{overflow-x:auto}.bill-table{width:100%;border-collapse:collapse;font-size:13px;min-width:980px}.bill-table th{background:var(--bg-muted, #f8fafc);color:var(--text-muted, #64748b);font-weight:600;font-size:11px;letter-spacing:.4px;text-transform:uppercase;padding:12px 16px;text-align:left;border-bottom:1px solid var(--border, #e2e8f0);white-space:nowrap}.bill-table td{padding:8px 14px;border-bottom:1px solid var(--border, #e2e8f0);color:var(--text-secondary, #334155);vertical-align:middle}.bill-table tr:last-child td{border-bottom:none}.bill-table tbody tr{transition:background .12s;cursor:pointer}.bill-table tbody tr:hover td{background:#f8fafc}.bill-table tbody tr.bill-expanded td{background:#f1f5f9}.bill-patient-cell{display:flex;align-items:center;gap:12px}.bill-avatar{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;flex-shrink:0;background:var(--accent-soft, #e8eef6);color:var(--accent, #0F3A6F);font-weight:600}.bill-patient-name{font-weight:600;color:var(--text-primary, #0f172a);font-size:13.5px}.bill-patient-id{font-size:11.5px;color:var(--text-faint, #94a3b8)}.bill-status{font-size:11px;font-weight:600;padding:3px 10px;border-radius:9999px;display:inline-flex;align-items:center;gap:5px;white-space:nowrap}.bill-status:before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}.bill-status.paid{background:#ecfdf5;color:#047857}.bill-status.pending{background:#fffbeb;color:#b45309}.bill-status.partial{background:#eff6ff;color:#1d4ed8}.bill-status.overdue{background:#fef2f2;color:#b91c1c}.bill-status.cancelled{background:#f1f5f9;color:#64748b}.bill-method{font-size:11px;font-weight:600;padding:2px 8px;border-radius:6px;background:#e8eef6;color:#0f3a6f}.bill-amount{font-weight:700;color:var(--text-primary, #0f172a);font-size:13.5px;letter-spacing:-.2px}.bill-amount.due{color:#b91c1c}.bill-actions-cell{display:flex;align-items:center;justify-content:center;gap:4px;position:relative}.bill-ctx-wrap{position:relative}.bill-ctx-btn{width:32px;height:32px;border:none;background:transparent;color:var(--text-faint, #94a3b8);border-radius:var(--radius-sm, 8px);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;font-size:13px;transition:background .12s,color .12s}.bill-ctx-btn:hover{background:#f1f5f9;color:var(--text-secondary, #334155)}.bill-ctx-menu{display:none;position:absolute;right:0;top:calc(100% + 4px);min-width:180px;background:var(--bg-surface, #fff);border:1px solid var(--border, #e2e8f0);border-radius:var(--radius-sm, 8px);box-shadow:0 4px 12px #0f172a12;z-index:100;padding:6px}.bill-ctx-menu.show{display:block}.bill-ctx-menu button{width:100%;display:flex;align-items:center;gap:10px;padding:9px 12px;border:none;background:transparent;font-family:var(--font, "Inter", sans-serif);font-size:13px;font-weight:500;color:var(--text-secondary, #334155);cursor:pointer;border-radius:6px;text-align:left;transition:background .12s,color .12s}.bill-ctx-menu button svg{width:16px;height:16px;color:var(--text-muted, #64748b);flex-shrink:0}.bill-ctx-menu button:hover{background:var(--bg-muted, #f8fafc);color:var(--text-primary, #0f172a)}.bill-ctx-menu button.danger{color:#b91c1c}.bill-ctx-menu button.danger svg{color:#b91c1c}.bill-ctx-menu button.danger:hover{background:#fef2f2}.bill-ctx-menu .bill-ctx-divider{height:1px;background:var(--border, #e2e8f0);margin:4px 0}.bill-detail-row td{padding:0;background:var(--bg-muted, #f8fafc)!important;border-bottom:1px solid var(--border, #e2e8f0)}.bill-detail-panel{padding:16px 20px 18px;display:grid;grid-template-columns:1.4fr 1fr;gap:20px}.bill-detail-section-title{font-size:11px;font-weight:700;color:var(--text-muted, #64748b);text-transform:uppercase;letter-spacing:.5px;margin-bottom:10px;display:flex;align-items:center;gap:6px}.bill-detail-section-title svg{color:var(--accent, #0F3A6F)}.bill-line-table{width:100%;border-collapse:collapse;font-size:12.5px;min-width:0}.bill-line-table th{background:transparent;padding:0 10px 8px 0;border-bottom:1px solid var(--border, #e2e8f0);font-size:10.5px}.bill-line-table td{padding:8px 10px 8px 0;border-bottom:1px solid var(--border, #e2e8f0);background:transparent!important}.bill-line-table tr:last-child td{border-bottom:none}.bill-line-name{font-weight:600;color:var(--text-primary, #0f172a)}.bill-med-link{background:none;border:none;color:var(--accent, #0F3A6F);font-weight:600;font-size:12.5px;cursor:pointer;padding:2px 8px;border-radius:4px;text-decoration:underline;transition:background .15s}.bill-med-link:hover{background:#0f3a6f14}.bill-info-block{background:var(--bg-surface, #fff);border:1px solid var(--border, #e2e8f0);border-radius:var(--radius-sm, 8px);padding:12px 14px;margin-bottom:10px}.bill-info-block:last-child{margin-bottom:0}.bill-info-block-label{font-size:10.5px;font-weight:600;color:var(--text-faint, #94a3b8);text-transform:uppercase;letter-spacing:.3px;margin-bottom:4px}.bill-info-block-value{font-size:13px;color:var(--text-secondary, #334155);line-height:1.45}.bill-totals-row{display:flex;justify-content:space-between;padding:6px 0;font-size:13px;color:var(--text-secondary, #334155)}.bill-totals-row.grand{font-weight:700;font-size:15px;color:var(--text-primary, #0f172a);border-top:1px solid var(--border, #e2e8f0);margin-top:6px;padding-top:10px}.bill-tiles-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px;padding:16px;background:var(--bg-page, #f1f5f9)}.bill-tile{background:var(--bg-surface, #fff);border:1px solid var(--border, #e2e8f0);border-radius:var(--radius, 12px);padding:16px;box-shadow:0 1px 2px #0f172a0d;display:flex;flex-direction:column;gap:12px;transition:border-color .15s,box-shadow .15s}.bill-tile:hover{border-color:var(--border-strong, #cbd5e1);box-shadow:0 4px 12px #0f172a12}.bill-tile-top{display:flex;align-items:flex-start;gap:12px}.bill-tile-identity{flex:1;min-width:0}.bill-tile-identity .bill-patient-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bill-tile-meta{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px;font-size:12px;color:var(--text-muted, #64748b)}.bill-tile-meta .label{display:block;font-size:10.5px;font-weight:600;text-transform:uppercase;letter-spacing:.3px;color:var(--text-faint, #94a3b8);margin-bottom:1px}.bill-tile-meta .val{color:var(--text-secondary, #334155);font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bill-tile-amount{font-size:18px;font-weight:700;color:var(--text-primary, #0f172a);letter-spacing:-.3px}.bill-tile-footer{display:flex;align-items:center;justify-content:space-between;padding-top:10px;border-top:1px solid var(--border, #e2e8f0)}.bill-pagination{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;padding:12px 16px;border-top:1px solid var(--border, #e2e8f0);background:var(--bg-muted, #f8fafc)}.bill-pagination .bill-info{font-size:13px;color:var(--text-muted, #64748b);font-weight:500}.bill-pagination-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.bill-page-size{display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--text-muted, #64748b);font-weight:500}.bill-page-size select{height:32px;padding:0 28px 0 10px;border:1px solid var(--border, #e2e8f0);border-radius:var(--radius-sm, 8px);font-family:var(--font, "Inter", sans-serif);font-size:13px;font-weight:500;background:var(--bg-surface, #fff) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E") no-repeat right 8px center;color:var(--text-secondary, #334155);cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}.bill-pages{display:flex;gap:4px;align-items:center}.bill-pages button{min-width:32px;height:32px;padding:0 8px;border:1px solid transparent;border-radius:var(--radius-sm, 8px);background:transparent;font-family:var(--font, "Inter", sans-serif);font-size:13px;font-weight:500;color:var(--text-secondary, #334155);cursor:pointer;transition:background .12s,border-color .12s,color .12s}.bill-pages button:hover:not(:disabled){background:var(--bg-surface, #fff);border-color:var(--border, #e2e8f0)}.bill-pages button.active{background:var(--accent, #0F3A6F);color:#fff;border-color:var(--accent, #0F3A6F)}.bill-pages button:disabled{opacity:.4;cursor:not-allowed}.bill-sidebar-card{background:var(--bg-surface, #fff);border:1px solid var(--border, #e2e8f0);border-radius:var(--radius, 12px);padding:16px;margin-bottom:14px;box-shadow:0 1px 2px #0f172a0d}.bill-sidebar-card:last-child{margin-bottom:0}.bill-sidebar-card-title{font-weight:600;font-size:11px;color:var(--text-muted, #64748b);letter-spacing:.5px;text-transform:uppercase;margin-bottom:12px;display:flex;align-items:center;gap:7px}.bill-sidebar-card-title svg{color:var(--accent, #0F3A6F);font-size:12px}.bill-stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.bill-stat-item{background:var(--bg-muted, #f8fafc);border-radius:var(--radius-sm, 8px);padding:12px 10px;text-align:center}.bill-stat-item .number{font-weight:700;font-size:18px;color:var(--text-primary, #0f172a);line-height:1.15;letter-spacing:-.5px}.bill-stat-item .number.green{color:#047857}.bill-stat-item .number.blue{color:#1d4ed8}.bill-stat-item .number.orange{color:#b45309}.bill-stat-item .number.red{color:#b91c1c}.bill-stat-item .label{font-size:11px;color:var(--text-muted, #64748b);font-weight:500;margin-top:2px}.bill-recent-list{list-style:none}.bill-recent-list li{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--border, #e2e8f0)}.bill-recent-list li:last-child{border-bottom:none;padding-bottom:0}.bill-recent-list li:first-child{padding-top:0}.bill-recent-list .info{flex:1;min-width:0}.bill-recent-list .info .n{font-size:13px;font-weight:600;color:var(--text-primary, #0f172a);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bill-recent-list .info .m{font-size:11.5px;color:var(--text-faint, #94a3b8)}.bill-recent-list .amt{font-size:13px;font-weight:700;color:var(--text-primary, #0f172a);flex-shrink:0}.bill-quick-actions{display:flex;flex-direction:column;gap:6px}.bill-q-btn{height:38px;background:transparent;border:1px solid var(--border, #e2e8f0);border-radius:var(--radius-sm, 8px);font-family:var(--font, "Inter", sans-serif);font-weight:500;font-size:13px;color:var(--text-secondary, #334155);cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;transition:background .12s,border-color .12s}.bill-q-btn:hover{background:var(--bg-muted, #f8fafc);border-color:var(--border-strong, #cbd5e1)}.bill-q-btn svg{font-size:12px;color:var(--text-muted, #64748b)}.bill-q-btn.primary{background:var(--accent, #0F3A6F);border-color:var(--accent, #0F3A6F);color:#fff}.bill-q-btn.primary:hover{background:var(--accent-hover, #0a2d57);border-color:var(--accent-hover, #0a2d57)}.bill-q-btn.primary svg{color:#fff}.bill-modal-overlay{display:none;position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a80;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);z-index:1000;justify-content:center;align-items:center;padding:16px}.bill-modal-overlay.show{display:flex}.bill-modal-content{background:var(--bg-surface, #fff);border-radius:16px;max-width:680px;width:100%;max-height:94vh;display:flex;flex-direction:column;box-shadow:0 24px 48px #0f172a2e;animation:billModalIn .2s ease;overflow:hidden}@keyframes billModalIn{0%{transform:translateY(12px) scale(.98);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}.bill-modal-header{display:flex;align-items:flex-start;justify-content:space-between;padding:18px 22px 14px;border-bottom:1px solid var(--border, #e2e8f0);flex-shrink:0}.bill-modal-header h3{font-weight:700;font-size:17px;color:var(--text-primary, #0f172a);display:flex;align-items:center;gap:10px;margin:0}.bill-modal-icon{width:34px;height:34px;border-radius:9px;background:linear-gradient(135deg,#0f3a6f,#1a4a8a);color:#fff;display:flex;align-items:center;justify-content:center;font-size:14px}.bill-modal-subtitle{font-size:12.5px;color:var(--text-muted, #64748b);margin-left:44px;margin-top:2px}.bill-modal-close{width:34px;height:34px;border:none;background:transparent;border-radius:var(--radius-sm, 8px);color:var(--text-muted, #64748b);font-size:14px;cursor:pointer;display:flex;align-items:center;justify-content:center}.bill-modal-close:hover{background:#f1f5f9;color:var(--text-secondary, #334155)}.bill-modal-body{padding:16px 22px 8px;overflow-y:auto;flex:1}.bill-form-section{display:grid;grid-template-columns:100px 1fr;border:1px solid var(--border, #e2e8f0);border-radius:var(--radius-sm, 8px);overflow:hidden;margin-bottom:12px}.bill-form-section-label{background:var(--bg-muted, #f8fafc);border-right:1px solid var(--border, #e2e8f0);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:12px 8px;text-align:center}.bill-form-section-label svg{color:var(--accent, #0F3A6F);font-size:14px}.bill-form-section-label span{font-size:11px;font-weight:600;color:var(--text-muted, #64748b);text-transform:uppercase;letter-spacing:.4px;line-height:1.25}.bill-form-section-fields{padding:12px 14px}.bill-form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.bill-form-row-3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px}.bill-form-group{margin-bottom:10px}.bill-form-group:last-child{margin-bottom:0}.bill-form-group label{font-weight:600;font-size:12px;color:var(--text-secondary, #334155);display:block;margin-bottom:5px}.bill-form-group label .required{color:#b91c1c}.bill-form-group input,.bill-form-group select,.bill-form-group textarea{width:100%;height:36px;padding:0 10px;border:1px solid var(--border, #e2e8f0);border-radius:var(--radius-sm, 8px);font-family:var(--font, "Inter", sans-serif);font-size:13px;color:var(--text-primary, #0f172a);background:var(--bg-surface, #fff)}.bill-form-group select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;padding-right:28px;cursor:pointer}.bill-form-group textarea{height:auto;min-height:56px;padding:8px 10px;resize:vertical}.bill-form-group input:focus,.bill-form-group select:focus,.bill-form-group textarea:focus{outline:none;border-color:var(--accent, #0F3A6F);box-shadow:0 0 0 3px #0f3a6f1f}.bill-form-actions{display:flex;justify-content:flex-end;gap:10px;padding:12px 22px;border-top:1px solid var(--border, #e2e8f0);background:var(--bg-muted, #f8fafc);flex-shrink:0}.bill-form-actions .bill-btn-primary,.bill-form-actions .bill-btn-secondary{height:38px}.bill-empty-state{text-align:center;padding:48px 24px;color:var(--text-muted, #64748b)}.bill-empty-state svg{font-size:36px;color:var(--text-faint, #94a3b8);margin-bottom:12px}@media(max-width:1000px){.bill-filter-panel-grid{grid-template-columns:repeat(2,1fr)}.bill-detail-panel{grid-template-columns:1fr}}@media(max-width:640px){.bill-toolbar{flex-direction:column;align-items:stretch}.bill-form-section{grid-template-columns:1fr}.bill-form-section-label{flex-direction:row;justify-content:flex-start;border-right:none;border-bottom:1px solid var(--border, #e2e8f0);padding:8px 12px}.bill-form-row,.bill-form-row-3,.bill-filter-panel-grid{grid-template-columns:1fr}}.bed-toolbar{display:flex;flex-wrap:nowrap;gap:10px;align-items:center;margin-bottom:14px;padding:10px 12px;background:#1a4a7a;border:1px solid #143a61;border-radius:var(--radius-sm, 8px);box-shadow:0 1px 2px #0f172a0d}.bed-toolbar .bed-heading{font-size:15px;font-weight:700;color:#fff;letter-spacing:-.2px;margin:0 4px 0 0;white-space:nowrap;flex-shrink:0}.bed-toolbar .bed-search-wrap{flex:1;min-width:140px;position:relative}.bed-toolbar .bed-search-wrap svg{color:#ffffff8c;position:absolute;left:12px;top:50%;transform:translateY(-50%);font-size:13px}.bed-toolbar .bed-search-wrap input{width:100%;height:36px;padding:0 14px 0 34px;background:#ffffff1f;border:1px solid rgba(255,255,255,.22);border-radius:var(--radius-sm, 8px);color:#fff;font-family:var(--font);font-size:13px}.bed-toolbar .bed-search-wrap input::placeholder{color:#ffffff80}.bed-toolbar .bed-search-wrap input:focus{outline:none;background:#ffffff2e;border-color:#ffffff73;box-shadow:0 0 0 3px #ffffff1f}.bed-filter-group{display:flex;gap:8px;flex-wrap:wrap}.bed-filter-group select{height:36px;padding:0 28px 0 12px;border:1px solid rgba(255,255,255,.22);border-radius:var(--radius-sm, 8px);font-family:var(--font);font-size:13px;font-weight:500;background:#ffffff1f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E") no-repeat right 10px center;color:#fff;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}.bed-filter-group select option{color:var(--text-primary);background:#fff}.bed-toolbar-btn{height:36px;padding:0 12px;border:1px solid rgba(255,255,255,.28);border-radius:var(--radius-sm, 8px);background:#ffffff1f;color:#fff;font-family:var(--font);font-size:12.5px;font-weight:600;cursor:pointer;display:inline-flex;align-items:center;gap:7px;white-space:nowrap;flex-shrink:0}.bed-toolbar-btn:hover{background:#ffffff38;border-color:#fff6}.bed-toolbar-btn.icon-only{width:36px;padding:0;justify-content:center}.bed-toolbar-actions{display:flex;align-items:center;gap:8px;margin-left:auto;flex-shrink:0}.bed-view-toggle{display:flex;gap:0;border:1px solid rgba(255,255,255,.28);border-radius:6px;overflow:hidden;background:#ffffff14;flex-shrink:0}.bed-view-toggle button{width:32px;height:32px;border:none;background:transparent;color:#ffffffbf;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:12px}.bed-view-toggle button+button{border-left:1px solid rgba(255,255,255,.2)}.bed-view-toggle button:hover{background:#ffffff26;color:#fff}.bed-view-toggle button.active{background:#ffffff47;color:#fff}.bed-sidebar-toggle{width:32px;height:32px;border:1px solid rgba(255,255,255,.28);border-radius:6px;background:#ffffff1f;color:#ffffffd9;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:12px;flex-shrink:0}.bed-sidebar-toggle:hover{background:#ffffff38;color:#fff}.bed-status-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:14px}.bed-status-card{background:var(--bg-surface, #fff);border:1px solid var(--border, #e2e8f0);border-radius:var(--radius-sm, 8px);padding:12px 14px;display:flex;align-items:center;gap:12px;box-shadow:0 1px 2px #0f172a0d;cursor:pointer}.bed-status-card:hover{border-color:#cbd5e1;box-shadow:0 1px 3px #0f172a0f}.bed-status-card.active{border-color:var(--accent, #0F3A6F);box-shadow:0 0 0 2px #0f3a6f1f}.bed-status-card .bed-sc-icon{width:40px;height:40px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:15px;flex-shrink:0}.bed-status-card .bed-sc-icon.available{background:#ecfdf5;color:#047857}.bed-status-card .bed-sc-icon.occupied{background:#eff6ff;color:#1d4ed8}.bed-status-card .bed-sc-icon.reserved{background:#fffbeb;color:#b45309}.bed-status-card .bed-sc-icon.maintenance{background:#fef2f2;color:#b91c1c}.bed-status-card .bed-sc-num{font-size:20px;font-weight:700;color:var(--text-primary, #0f172a);line-height:1.1;letter-spacing:-.5px}.bed-status-card .bed-sc-lbl{font-size:11.5px;color:#64748b;font-weight:500}.bed-table-card{background:var(--bg-surface, #fff);border:1px solid var(--border, #e2e8f0);border-radius:var(--radius, 12px);box-shadow:0 1px 2px #0f172a0d;overflow:hidden}.bed-table-card.bed-tiles-mode .bed-table-wrapper,.bed-table-card.bed-list-mode .bed-tiles-grid{display:none}.bed-table-wrapper{overflow-x:auto}.bed-table-wrapper table{width:100%;border-collapse:collapse;font-size:13px;min-width:900px}.bed-table-wrapper th{background:#f8fafc;color:#64748b;font-weight:600;font-size:11px;letter-spacing:.4px;text-transform:uppercase;padding:12px 14px;text-align:left;border-bottom:1px solid var(--border, #e2e8f0);white-space:nowrap}.bed-table-wrapper td{padding:10px 14px;border-bottom:1px solid var(--border, #e2e8f0);color:#334155;vertical-align:middle}.bed-table-wrapper tr:last-child td{border-bottom:none}.bed-table-wrapper tbody tr{cursor:pointer}.bed-table-wrapper tbody tr:hover td{background:#f8fafc}.bed-id-cell{font-weight:700;color:var(--text-primary, #0f172a);font-size:13.5px}.bed-ward-tag{font-size:11px;font-weight:600;padding:2px 8px;border-radius:6px;background:#e8eef6;color:#0f3a6f;white-space:nowrap}.bed-type-tag{font-size:11px;font-weight:500;color:#64748b}.bed-status-badge{font-size:11px;font-weight:600;padding:3px 10px;border-radius:9999px;display:inline-flex;align-items:center;gap:5px;white-space:nowrap}.bed-status-badge:before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}.bed-status-badge.available{background:#ecfdf5;color:#047857}.bed-status-badge.occupied{background:#eff6ff;color:#1d4ed8}.bed-status-badge.reserved{background:#fffbeb;color:#b45309}.bed-status-badge.maintenance{background:#fef2f2;color:#b91c1c}.bed-patient-cell{display:flex;align-items:center;gap:10px}.bed-patient-avatar{width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:11px;flex-shrink:0;background:#e8eef6;color:#0f3a6f;font-weight:600}.bed-patient-name{font-weight:600;color:var(--text-primary, #0f172a);font-size:13px}.bed-patient-id{font-size:11px;color:#94a3b8}.bed-empty-patient{color:#94a3b8;font-style:italic;font-size:12.5px}.bed-actions-cell{display:flex;align-items:center;justify-content:center;gap:2px;position:relative}.bed-action-btn{width:32px;height:32px;border:none;background:transparent;color:#94a3b8;border-radius:var(--radius-sm, 8px);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;font-size:13px}.bed-action-btn:hover{background:#f1f5f9;color:#334155}.bed-ctx-wrap{position:relative}.bed-ctx-menu{position:absolute;right:0;top:calc(100% + 4px);min-width:180px;background:var(--bg-surface, #fff);border:1px solid var(--border, #e2e8f0);border-radius:var(--radius-sm, 8px);box-shadow:0 4px 12px #0f172a12;z-index:100;padding:6px}.bed-ctx-menu button{width:100%;display:flex;align-items:center;gap:10px;padding:9px 12px;border:none;background:transparent;font-family:var(--font);font-size:13px;font-weight:500;color:#334155;cursor:pointer;border-radius:6px;text-align:left}.bed-ctx-menu button svg{width:16px;color:#64748b;font-size:12px}.bed-ctx-menu button:hover{background:#f8fafc;color:var(--text-primary, #0f172a)}.bed-ctx-menu button.danger{color:#b91c1c}.bed-ctx-menu button.danger svg{color:#b91c1c}.bed-ctx-menu button.danger:hover{background:#fef2f2}.bed-ctx-divider{height:1px;background:var(--border, #e2e8f0);margin:4px 0}.bed-tiles-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px;padding:14px;background:#f1f5f9}.bed-tile{background:var(--bg-surface, #fff);border:1px solid var(--border, #e2e8f0);border-radius:var(--radius, 12px);padding:14px;box-shadow:0 1px 2px #0f172a0d;display:flex;flex-direction:column;gap:10px;cursor:pointer;position:relative;overflow:hidden}.bed-tile:hover{border-color:#cbd5e1;box-shadow:0 4px 12px #0f172a12}.bed-tile:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px}.bed-tile.status-available:before{background:#047857}.bed-tile.status-occupied:before{background:#1d4ed8}.bed-tile.status-reserved:before{background:#b45309}.bed-tile.status-maintenance:before{background:#b91c1c}.bed-tile-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.bed-tile-bed-id{font-size:15px;font-weight:700;color:var(--text-primary, #0f172a);letter-spacing:-.2px}.bed-tile-ward{font-size:11.5px;color:#64748b;margin-top:2px}.bed-tile-patient{font-size:13px;color:#334155;font-weight:500;min-height:20px}.bed-tile-patient.empty{color:#94a3b8;font-weight:400;font-style:italic}.bed-tile-footer{display:flex;align-items:center;justify-content:space-between;padding-top:8px;border-top:1px solid var(--border, #e2e8f0)}.bed-tile-meta{font-size:11.5px;color:#94a3b8}.bed-pagination{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;padding:12px 16px;border-top:1px solid var(--border, #e2e8f0);background:#f8fafc}.bed-pagination .bed-page-info{font-size:13px;color:#64748b;font-weight:500}.bed-page-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.bed-page-size{display:flex;align-items:center;gap:8px;font-size:12.5px;color:#64748b;font-weight:500}.bed-page-size select{height:32px;padding:0 28px 0 10px;border:1px solid var(--border, #e2e8f0);border-radius:var(--radius-sm, 8px);font-family:var(--font);font-size:13px;font-weight:500;background:var(--bg-surface, #fff) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E") no-repeat right 8px center;color:#334155;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}.bed-pages{display:flex;gap:4px;align-items:center}.bed-pages button{min-width:32px;height:32px;padding:0 8px;border:1px solid transparent;border-radius:var(--radius-sm, 8px);background:transparent;font-family:var(--font);font-size:13px;font-weight:500;color:#334155;cursor:pointer}.bed-pages button:hover:not(:disabled){background:var(--bg-surface, #fff);border-color:var(--border, #e2e8f0)}.bed-pages button.active{background:var(--accent, #0F3A6F);color:#fff;border-color:var(--accent, #0F3A6F)}.bed-pages button:disabled{opacity:.4;cursor:not-allowed}.bed-sidebar-card{background:var(--bg-surface, #fff);border:1px solid var(--border, #e2e8f0);border-radius:var(--radius, 12px);padding:16px;margin-bottom:14px;box-shadow:0 1px 2px #0f172a0d}.bed-sidebar-card:last-child{margin-bottom:0}.bed-sidebar-title{font-weight:600;font-size:11px;color:#64748b;letter-spacing:.5px;text-transform:uppercase;margin-bottom:12px;display:flex;align-items:center;gap:7px}.bed-sidebar-title svg{color:var(--accent, #0F3A6F);font-size:12px}.bed-stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.bed-stat-item{background:#f8fafc;border-radius:var(--radius-sm, 8px);padding:12px 10px;text-align:center}.bed-stat-item .bed-stat-num{font-weight:700;font-size:18px;color:var(--text-primary, #0f172a);line-height:1.15;letter-spacing:-.5px}.bed-stat-item .bed-stat-num.green{color:#047857}.bed-stat-item .bed-stat-num.blue{color:#1d4ed8}.bed-stat-item .bed-stat-num.orange{color:#b45309}.bed-stat-item .bed-stat-num.red{color:#b91c1c}.bed-stat-item .bed-stat-label{font-size:11px;color:#64748b;font-weight:500;margin-top:2px}.bed-ward-list{list-style:none}.bed-ward-list li{display:flex;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px solid var(--border, #e2e8f0);font-size:13px}.bed-ward-list li:last-child{border-bottom:none;padding-bottom:0}.bed-ward-list li:first-child{padding-top:0}.bed-ward-list .bed-ward-name{font-weight:600;color:var(--text-primary, #0f172a)}.bed-ward-list .bed-ward-counts{font-size:11.5px;color:#64748b}.bed-ward-list .bed-ward-bar{height:4px;background:#f1f5f9;border-radius:2px;margin-top:6px;overflow:hidden}.bed-ward-list .bed-ward-bar-fill{height:100%;background:var(--accent, #0F3A6F);border-radius:2px}.bed-quick-actions{display:flex;flex-direction:column;gap:6px}.bed-q-btn{height:38px;background:transparent;border:1px solid var(--border, #e2e8f0);border-radius:var(--radius-sm, 8px);font-family:var(--font);font-weight:500;font-size:13px;color:#334155;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px}.bed-q-btn:hover{background:#f8fafc;border-color:#cbd5e1}.bed-q-btn svg{font-size:12px;color:#64748b}.bed-q-btn.primary{background:var(--accent, #0F3A6F);border-color:var(--accent, #0F3A6F);color:#fff}.bed-q-btn.primary:hover{background:#0a2d57}.bed-q-btn.primary svg{color:#fff}.bed-modal-overlay{display:none;position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a80;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);z-index:1000;justify-content:center;align-items:center;padding:16px}.bed-modal-overlay.show{display:flex}.bed-modal-content{background:var(--bg-surface, #fff);border-radius:16px;max-width:480px;width:100%;display:flex;flex-direction:column;box-shadow:0 24px 48px #0f172a2e;animation:bedModalIn .2s ease;overflow:hidden}@keyframes bedModalIn{0%{transform:translateY(12px) scale(.98);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}.bed-modal-header{display:flex;align-items:flex-start;justify-content:space-between;padding:16px 20px;background:#1a4a7a;flex-shrink:0}.bed-modal-header h3{font-weight:700;font-size:16px;color:#fff;margin:0;display:flex;align-items:center;gap:10px}.bed-modal-header h3 svg{width:28px;height:28px;border-radius:8px;background:#ffffff26;display:flex;align-items:center;justify-content:center;font-size:12px}.bed-modal-subtitle{font-size:12px;color:#ffffffa6;margin:4px 0 0 38px}.bed-modal-close{width:32px;height:32px;border:none;background:#ffffff1a;border-radius:var(--radius-sm, 8px);color:#fffc;font-size:14px;cursor:pointer;display:flex;align-items:center;justify-content:center}.bed-modal-close:hover{background:#fff3;color:#fff}.bed-modal-body{padding:18px 20px 10px}.bed-form-group{margin-bottom:12px}.bed-form-group label{display:block;font-size:12px;font-weight:600;color:#334155;margin-bottom:5px}.bed-form-group label .req{color:#b91c1c}.bed-form-group input,.bed-form-group select{width:100%;height:38px;padding:0 12px;border:1px solid var(--border, #e2e8f0);border-radius:var(--radius-sm, 8px);font-family:var(--font);font-size:13px;color:var(--text-primary, #0f172a);background:var(--bg-surface, #fff)}.bed-form-group select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;padding-right:32px;cursor:pointer}.bed-form-group input:focus,.bed-form-group select:focus{outline:none;border-color:var(--accent, #0F3A6F);box-shadow:0 0 0 3px #0f3a6f1f}.bed-modal-footer{display:flex;justify-content:flex-end;gap:10px;padding:12px 20px;border-top:1px solid var(--border, #e2e8f0);background:#f8fafc}.bed-btn-secondary{height:38px;padding:0 16px;background:var(--bg-surface, #fff);border:1px solid var(--border, #e2e8f0);border-radius:var(--radius-sm, 8px);font-family:var(--font);font-weight:500;font-size:13px;color:#334155;cursor:pointer}.bed-btn-secondary:hover{background:#f1f5f9}.bed-btn-primary{height:38px;padding:0 16px;background:var(--accent, #0F3A6F);border:none;border-radius:var(--radius-sm, 8px);font-family:var(--font);font-weight:600;font-size:13px;color:#fff;display:inline-flex;align-items:center;gap:8px;cursor:pointer}.bed-btn-primary:hover{background:#0a2d57}.bed-empty-state{text-align:center;padding:48px 24px;color:#64748b}.bed-empty-state svg{font-size:36px;color:#94a3b8;margin-bottom:12px}@media(max-width:1000px){.bed-status-strip{grid-template-columns:repeat(2,1fr)}}@media(max-width:640px){.bed-toolbar{flex-direction:column;align-items:stretch}.bed-status-strip{grid-template-columns:1fr 1fr}}.rpt-page{background:#f1f5f9;min-height:100%}.rpt-layout{display:grid;grid-template-columns:1fr 280px;gap:1.15rem;align-items:start;margin:0 auto;transition:grid-template-columns .25s ease}.rpt-layout.rpt-sidebar-hidden{grid-template-columns:1fr 0;gap:0}.rpt-layout.rpt-sidebar-hidden .rpt-right-panel{opacity:0;pointer-events:none}.rpt-main{display:flex;flex-direction:column;gap:14px;min-width:0;padding:10px}.rpt-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 4px 12px #0000000f;overflow:hidden}.rpt-header{display:flex;flex-wrap:nowrap;gap:10px;align-items:center;padding:10px 12px;background:#1a4a7a;border:1px solid #143a61;border-radius:var(--radius-sm);box-shadow:var(--shadow-sm)}.rpt-header .rpt-heading{font-size:15px;font-weight:700;color:#fff;letter-spacing:-.2px;margin:0 4px 0 0;white-space:nowrap;flex-shrink:0}.rpt-search{flex:1;min-width:140px;position:relative}.rpt-search svg{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:#ffffff8c;font-size:13px;pointer-events:none}.rpt-search input{width:100%;height:36px;padding:0 14px 0 34px;border:1px solid rgba(255,255,255,.22);border-radius:var(--radius-sm);font-family:inherit;font-size:13px;background:#ffffff1f;color:#fff;transition:border-color .15s,box-shadow .15s,background .15s}.rpt-search input::placeholder{color:#ffffff80}.rpt-search input:focus{outline:none;background:#ffffff2e;border-color:#ffffff73;box-shadow:0 0 0 3px #ffffff1f}.rpt-tools{display:flex;align-items:center;gap:8px;flex-shrink:0}.rpt-filter-select{height:36px;padding:0 28px 0 12px;border:1px solid rgba(255,255,255,.22);border-radius:var(--radius-sm);font-family:inherit;font-size:13px;font-weight:500;background:#ffffff1f;color:#fff;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;min-width:120px}.rpt-filter-select:focus{outline:none;border-color:#ffffff73;box-shadow:0 0 0 3px #ffffff1f}.rpt-filter-select option{color:var(--text-primary);background:#fff}.rpt-tool-btn{height:36px;width:36px;padding:0;border:1px solid rgba(255,255,255,.28);border-radius:var(--radius-sm);background:#ffffff1f;color:#fff;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;font-size:12px;transition:background .12s,border-color .12s;flex-shrink:0}.rpt-tool-btn:hover{background:#ffffff38;border-color:#fff6}.rpt-cat-strip{display:flex;align-items:center;gap:.4rem;padding:.85rem 1.25rem;background:#f8fafc;border-bottom:1px solid #e2e8f0;overflow-x:auto}.rpt-chip{padding:.4rem .9rem;border-radius:999px;border:1px solid #e2e8f0;background:#fff;font-size:.78rem;font-weight:500;font-family:inherit;color:#475569;cursor:pointer;white-space:nowrap;transition:all .15s}.rpt-chip:hover{border-color:#cbd5e1;color:#0f172a}.rpt-chip.active{background:#1e3a5f;border-color:#1e3a5f;color:#fff}.rpt-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1rem;padding:1.15rem}.rpt-report-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:1.1rem;display:flex;flex-direction:column;gap:.75rem;transition:box-shadow .15s,border-color .15s;cursor:pointer}.rpt-report-card:hover{border-color:#cbd5e1;box-shadow:0 4px 12px #0000000f}.rpt-report-top{display:flex;align-items:flex-start;gap:.75rem}.rpt-icon{width:42px;height:42px;border-radius:10px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.rpt-icon svg{width:20px;height:20px}.rpt-icon.blue{background:#eff6ff;color:#1e40af}.rpt-icon.green{background:#ecfdf5;color:#059669}.rpt-icon.purple{background:#f5f3ff;color:#7c3aed}.rpt-icon.orange{background:#fff7ed;color:#ea580c}.rpt-icon.teal{background:#f0fdfa;color:#0d9488}.rpt-icon.rose{background:#fff1f2;color:#e11d48}.rpt-meta h3{font-size:.9rem;font-weight:600;color:#0f172a;line-height:1.3;margin:0}.rpt-meta .rpt-cat{font-size:.72rem;color:#94a3b8;margin-top:2px}.rpt-desc{font-size:.8rem;color:#475569;line-height:1.45;flex:1;margin:0}.rpt-footer{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding-top:.65rem;border-top:1px solid #f1f5f9}.rpt-tag{font-size:.68rem;font-weight:600;padding:.15rem .5rem;border-radius:4px;background:#f1f5f9;color:#475569}.rpt-actions{display:flex;gap:.35rem}.rpt-btn{height:30px;padding:0 .65rem;border-radius:6px;border:1px solid #e2e8f0;background:#fff;font-size:.72rem;font-weight:500;font-family:inherit;color:#475569;cursor:pointer;display:inline-flex;align-items:center;gap:.25rem}.rpt-btn:hover{background:#f8fafc;color:#0f172a}.rpt-btn.primary{background:#1e3a5f;border-color:#1e3a5f;color:#fff}.rpt-btn.primary:hover{background:#162d4a}.rpt-btn svg{width:13px;height:13px}.rpt-list-footer{display:flex;align-items:center;justify-content:space-between;padding:.85rem 1.25rem;border-top:1px solid #e2e8f0;background:#f8fafc;font-size:.8rem;color:#475569;flex-wrap:wrap;gap:.5rem}.rpt-empty{padding:3rem 1.5rem;text-align:center;color:#94a3b8;font-size:.9rem}.rpt-right-panel{display:flex;flex-direction:column;gap:.85rem;position:sticky;top:.25rem;overflow:hidden;transition:opacity .2s}.rpt-panel-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:1rem;box-shadow:0 1px 3px #0000000d}.rpt-panel-title{font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:#94a3b8;margin-bottom:.85rem;display:flex;align-items:center;gap:.35rem}.rpt-panel-title svg{width:14px;height:14px}.rpt-stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:.6rem}.rpt-stat-box{background:#f8fafc;border-radius:10px;padding:.75rem .65rem;text-align:center}.rpt-stat-box .rpt-num{font-size:1.35rem;font-weight:700;color:#0f172a;line-height:1.2}.rpt-stat-box .rpt-num.green{color:#059669}.rpt-stat-box .rpt-num.blue{color:#1e40af}.rpt-stat-box .rpt-num.orange{color:#d97706}.rpt-stat-box .rpt-label{font-size:.72rem;color:#94a3b8;margin-top:2px}.rpt-recent-list{display:flex;flex-direction:column;gap:.55rem}.rpt-recent-item{display:flex;align-items:center;gap:.6rem;padding:.45rem 0;border-bottom:1px solid #f1f5f9}.rpt-recent-item:last-child{border-bottom:none}.rpt-recent-dot{width:8px;height:8px;border-radius:50%;background:#1e40af;flex-shrink:0}.rpt-recent-info{flex:1;min-width:0}.rpt-recent-info h4{font-size:.8rem;font-weight:500;color:#0f172a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0}.rpt-recent-info p{font-size:.7rem;color:#94a3b8;margin:0}.rpt-panel-actions{display:flex;flex-direction:column;gap:.5rem}.rpt-action-desc{font-size:.78rem;color:#475569;line-height:1.55;margin-bottom:.85rem}.rpt-btn-action{height:40px;padding:0 1.1rem;border-radius:8px;border:none;font-size:.85rem;font-weight:500;font-family:inherit;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:.4rem;width:100%;transition:all .15s}.rpt-btn-action.primary{background:#1e3a5f;color:#fff}.rpt-btn-action.primary:hover{background:#162d4a}.rpt-btn-action.secondary{background:#fff;border:1px solid #e2e8f0;color:#0f172a}.rpt-btn-action.secondary:hover{background:#f8fafc}@media(max-width:900px){.rpt-layout,.rpt-layout.rpt-sidebar-hidden{grid-template-columns:1fr;gap:1.15rem}.rpt-right-panel{position:static;order:-1}.rpt-layout.rpt-sidebar-hidden .rpt-right-panel{display:none}}@media(max-width:640px){.rpt-grid{grid-template-columns:1fr}.rpt-header{flex-wrap:wrap}.rpt-header .rpt-heading{margin-bottom:4px}.rpt-main{padding:8px}}.prr-page{--prr-accent: #0F3A6F;--prr-accent-hover: #0a2d57;--prr-accent-soft: #e8eef6;--prr-bg-surface: #ffffff;--prr-bg-muted: #f8fafc;--prr-border: #e2e8f0;--prr-border-strong: #cbd5e1;--prr-text-primary: #0f172a;--prr-text-secondary: #334155;--prr-text-muted: #64748b;--prr-success: #047857;--prr-success-soft: #ecfdf5;--prr-danger: #b91c1c;--prr-danger-soft: #fef2f2;--prr-radius: 12px;--prr-radius-sm: 8px;--prr-shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);--prr-shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);display:flex;flex-direction:column;margin:-10px;min-height:calc(100% + 20px);background:#f1f5f9;font-family:var(--font, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);color:var(--prr-text-primary);line-height:1.5;-webkit-font-smoothing:antialiased}.prr-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 20px;background:var(--prr-bg-surface);border-bottom:1px solid var(--prr-border);position:sticky;top:0;z-index:60;box-shadow:var(--prr-shadow-sm);margin:0 12px;border-radius:15px}.prr-toolbar-left{display:flex;align-items:center;gap:10px;min-width:0}.prr-toolbar-left h1{font-size:15px;font-weight:700;color:var(--prr-accent);margin:0;display:flex;align-items:center;white-space:nowrap}.prr-toolbar-left h1 i{margin-right:7px;opacity:.8;font-size:14px}.prr-toolbar-actions{display:flex;align-items:center;gap:8px}.prr-btn{height:36px;padding:0 14px;border-radius:var(--prr-radius-sm);font-family:inherit;font-size:13px;font-weight:600;cursor:pointer;display:inline-flex;align-items:center;gap:7px;border:1px solid transparent;transition:background .12s,border-color .12s,box-shadow .12s}.prr-btn i{font-size:12px}.prr-btn:disabled{opacity:.6;cursor:default}.prr-btn-primary{background:var(--prr-accent);color:#fff;border-color:var(--prr-accent)}.prr-btn-primary:hover{background:var(--prr-accent-hover)}.prr-btn-secondary{background:var(--prr-bg-surface);color:var(--prr-text-secondary);border-color:var(--prr-border)}.prr-btn-secondary:hover{background:var(--prr-bg-muted);border-color:var(--prr-border-strong)}.prr-btn-excel{background:#047857;color:#fff;border-color:#047857}.prr-btn-excel:hover{background:#065f46}.prr-btn-pdf{background:#b91c1c;color:#fff;border-color:#b91c1c}.prr-btn-pdf:hover{background:#991b1b}.prr-btn-params{background:var(--prr-accent-soft);color:var(--prr-accent);border-color:#bfdbfe}.prr-btn-params:hover,.prr-btn-params.active{background:var(--prr-accent);color:#fff;border-color:var(--prr-accent)}.prr-params{display:none;background:var(--prr-bg-surface);border-bottom:1px solid var(--prr-border);padding:14px 20px 16px;box-shadow:var(--prr-shadow-sm);margin:0 12px;border-radius:0 0 15px 15px}.prr-params.open{display:block}.prr-params-title{font-size:12px;font-weight:600;color:var(--prr-text-muted);text-transform:uppercase;letter-spacing:.4px;margin-bottom:12px;display:flex;align-items:center;gap:8px}.prr-params-title i{color:var(--prr-accent)}.prr-params-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr 1.2fr 1.2fr auto;gap:10px 12px;align-items:end}.prr-field label{display:block;font-size:11px;font-weight:600;color:var(--prr-text-secondary);margin-bottom:4px}.prr-field input,.prr-field select{width:100%;height:34px;padding:0 10px;border:1px solid var(--prr-border);border-radius:var(--prr-radius-sm);font-family:inherit;font-size:12.5px;color:var(--prr-text-primary);background:var(--prr-bg-muted)}.prr-field select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 8px center;padding-right:26px;cursor:pointer}.prr-field input:focus,.prr-field select:focus{outline:none;border-color:var(--prr-accent);background:#fff;box-shadow:0 0 0 3px #0f3a6f1a}.prr-field-actions{display:flex;gap:6px;align-items:center}.prr-field-actions .prr-btn{height:34px;padding:0 12px;font-size:12px}.prr-active-filters{display:none;margin-top:10px;padding-top:10px;border-top:1px solid var(--prr-border);flex-wrap:wrap;gap:6px;align-items:center}.prr-active-filters.show{display:flex}.prr-active-filters .prr-filters-label{font-size:11.5px;color:var(--prr-text-muted);font-weight:500;margin-right:4px}.prr-filter-chip{display:inline-flex;align-items:center;gap:5px;font-size:11.5px;font-weight:500;padding:3px 10px;border-radius:9999px;background:var(--prr-accent-soft);color:var(--prr-accent);border:1px solid #bfdbfe}.prr-filter-chip button{border:none;background:transparent;color:var(--prr-accent);cursor:pointer;padding:0;font-size:13px;line-height:1;opacity:.7}.prr-filter-chip button:hover{opacity:1}.prr-applied-params{display:none;padding:8px 28px;background:#eff6ff;border-bottom:1px solid #bfdbfe;font-size:11.5px;color:var(--prr-text-secondary)}.prr-applied-params.show{display:block}.prr-applied-params i{margin-right:6px;color:var(--prr-accent)}.prr-applied-params strong{color:var(--prr-accent);font-weight:600}.prr-report-wrap{max-width:1280px;width:100%;margin:20px auto 40px;padding:0 16px}.prr-report{background:var(--prr-bg-surface);border:1px solid var(--prr-border);border-radius:var(--prr-radius);box-shadow:var(--prr-shadow);overflow:hidden}.prr-report-header{display:grid;grid-template-columns:auto 1fr auto;gap:20px;align-items:center;padding:20px 28px;background:linear-gradient(135deg,#0f3a6f,#1a4a8a);color:#fff;position:relative}.prr-report-header:after{content:"";position:absolute;bottom:0;left:0;right:0;height:4px;background:linear-gradient(90deg,#047857,#1d4ed8,#7c3aed)}.prr-logo-block{display:flex;align-items:center;gap:14px;min-width:0}.prr-logo{width:56px;height:56px;border-radius:12px;background:#ffffff26;border:2px solid rgba(255,255,255,.35);display:flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden}.prr-logo img{width:100%;height:100%;object-fit:contain;border-radius:8px;background:#ffffffe6}.prr-logo svg{width:36px;height:36px}.prr-clinic-name{font-size:22px;font-weight:700;letter-spacing:-.3px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.prr-clinic-tagline{font-size:11px;opacity:.75;font-weight:500;margin-top:2px;letter-spacing:.3px;text-transform:uppercase}.prr-header-center{text-align:center}.prr-report-title{font-size:16px;font-weight:700;letter-spacing:-.2px}.prr-report-subtitle{font-size:11.5px;opacity:.8;margin-top:3px}.prr-header-contact{text-align:right;font-size:11.5px;line-height:1.55;opacity:.95}.prr-header-contact .line{display:flex;align-items:center;justify-content:flex-end;gap:7px}.prr-header-contact i{width:14px;text-align:center;opacity:.7;font-size:11px}.prr-meta-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:12px 28px;background:var(--prr-bg-muted);border-bottom:1px solid var(--prr-border);font-size:12.5px;color:var(--prr-text-secondary)}.prr-meta-bar strong{color:var(--prr-text-primary);font-weight:600}.prr-meta-items{display:flex;flex-wrap:wrap;gap:18px}.prr-meta-item{display:flex;align-items:center;gap:6px}.prr-meta-item i{color:var(--prr-accent);font-size:11px}.prr-table-section{padding:0 0 8px;overflow-x:auto}.prr-table{width:100%;border-collapse:collapse;font-size:12px;min-width:900px}.prr-table thead th{background:var(--prr-accent);color:#fff;font-weight:600;font-size:10.5px;letter-spacing:.35px;text-transform:uppercase;padding:10px;text-align:left;white-space:nowrap;border-bottom:2px solid #0a2d57}.prr-table thead th.center{text-align:center}.prr-table tbody td{padding:7px 10px;border-bottom:1px solid var(--prr-border);color:var(--prr-text-secondary);vertical-align:middle}.prr-table tbody tr:nth-child(2n) td{background:var(--prr-bg-muted)}.prr-table tbody tr:hover td{background:#f1f5f9}.prr-table .center{text-align:center}.prr-name-cell{font-weight:600;color:var(--prr-text-primary)}.prr-id-cell,.prr-cnic-cell{font-variant-numeric:tabular-nums;white-space:nowrap}.prr-status-pill{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:600;padding:2px 9px;border-radius:9999px}.prr-status-pill:before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}.prr-status-pill.active{background:var(--prr-success-soft);color:var(--prr-success)}.prr-status-pill.inactive{background:var(--prr-danger-soft);color:var(--prr-danger)}.prr-blood-tag{font-size:11px;font-weight:600;padding:1px 7px;border-radius:5px;background:var(--prr-danger-soft);color:var(--prr-danger)}.prr-empty-cell{text-align:center;padding:28px!important;color:var(--prr-text-muted)}.prr-empty-cell i{margin-right:8px}.prr-error-box{display:flex;flex-direction:column;align-items:center;gap:12px}.prr-error-text{color:var(--prr-danger);font-weight:500}.prr-report-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 28px;border-top:1px solid var(--prr-border);background:var(--prr-bg-muted);font-size:11px;color:var(--prr-text-muted)}.prr-report-footer .prr-confidential{font-weight:500}@page{size:A4 landscape;margin:10mm}@media print{body.prr-print-scope .app{display:block;height:auto;overflow:visible;background:#fff}body.prr-print-scope .sidebar,body.prr-print-scope .topbar{display:none!important}body.prr-print-scope .main{overflow:visible;margin:0;border-radius:0;background:#fff}body.prr-print-scope .content{overflow:visible;padding:0;background:#fff}.prr-toolbar,.prr-params{display:none!important}.prr-page{margin:0;min-height:0;background:#fff}.prr-report-wrap{max-width:none;margin:0;padding:0}.prr-report{border:none;border-radius:0;box-shadow:none}.prr-report,.prr-report *{-webkit-print-color-adjust:exact;print-color-adjust:exact}.prr-table-section{overflow:visible}.prr-table{min-width:0}.prr-table thead{display:table-header-group}.prr-table tbody tr{break-inside:avoid;page-break-inside:avoid}.prr-table tbody tr:hover td{background:inherit}}@media print and (orientation:portrait){.prr-report-header{grid-template-columns:auto 1fr auto;text-align:left;gap:12px;padding:12px 16px;break-inside:avoid}.prr-logo-block{justify-content:flex-start;gap:10px}.prr-logo{width:40px;height:40px;border-radius:9px}.prr-logo svg{width:26px;height:26px}.prr-clinic-name{font-size:15px}.prr-clinic-tagline{font-size:8.5px;margin-top:1px}.prr-report-title{font-size:12px}.prr-report-subtitle{font-size:9px;margin-top:2px}.prr-header-contact{font-size:9px;line-height:1.45}.prr-header-contact .line{gap:5px}.prr-header-contact i{width:11px;font-size:8.5px}.prr-report-header:after{height:3px}.prr-table{font-size:9.5px}.prr-table thead th{font-size:8.5px;padding:6px 5px;letter-spacing:.2px;white-space:normal}.prr-table tbody td{padding:5px}.prr-status-pill,.prr-blood-tag{font-size:9px;padding:1px 6px}}@media(max-width:1100px){.prr-params-grid{grid-template-columns:1fr 1fr 1fr}.prr-field-actions{grid-column:1 / -1}}@media screen and (max-width:900px){.prr-report-header{grid-template-columns:1fr;text-align:center;gap:14px}.prr-logo-block{justify-content:center}.prr-clinic-name{white-space:normal}.prr-header-contact{text-align:center}.prr-header-contact .line{justify-content:center}}@media(max-width:560px){.prr-toolbar{flex-direction:column;align-items:stretch}.prr-toolbar-actions{flex-wrap:wrap}}.dar-page .prr-params-grid{grid-template-columns:1fr 1fr 1.4fr 1.2fr 1.6fr auto}.dar-page .prr-table{min-width:860px}.dar-page .prr-name-cell,.dar-page .dar-doctor-cell{white-space:normal}.dar-page .dar-doctor-cell{font-weight:600;color:var(--prr-text-primary)}.dar-page .dar-patient-no{font-size:10px;font-weight:400;color:var(--prr-text-muted);margin-top:1px;white-space:nowrap}.dar-page .dar-time-cell{font-variant-numeric:tabular-nums;white-space:nowrap}.dar-status{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:600;padding:2px 9px;border-radius:9999px;white-space:nowrap}.dar-status:before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}.dar-status.s-scheduled{background:var(--prr-accent-soft);color:var(--prr-accent)}.dar-status.s-confirmed{background:#fef3c7;color:#92400e}.dar-status.s-completed{background:var(--prr-success-soft);color:var(--prr-success)}.dar-status.s-cancelled{background:var(--prr-danger-soft);color:var(--prr-danger)}.dar-status.s-noshow{background:#f1f5f9;color:#475569}.dar-status.s-inprogress{background:#ede9fe;color:#6d28d9}.dar-status.s-other{background:#e0f2fe;color:#0369a1}@media(max-width:1100px){.dar-page .prr-params-grid{grid-template-columns:1fr 1fr 1fr}.dar-page .prr-field-actions{grid-column:1 / -1}}@media print{.dar-page .prr-table{min-width:0}.dar-page .dar-status{font-size:9px;padding:1px 6px}.dar-page .dar-patient-no{font-size:8.5px;margin-top:0}}.asr-page .prr-params-grid{grid-template-columns:140px 140px 120px 1fr auto}.asr-cards{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;padding:14px 22px;border-bottom:1px solid var(--prr-border)}.asr-card{background:var(--prr-bg-muted);border:1px solid var(--prr-border);border-radius:var(--prr-radius-sm);padding:12px 8px;text-align:center}.asr-card .asr-num{font-size:20px;font-weight:700;color:var(--prr-text-primary);line-height:1.15}.asr-card .asr-num.blue{color:#1d4ed8}.asr-card .asr-num.green{color:var(--prr-success)}.asr-card .asr-num.red{color:var(--prr-danger)}.asr-card .asr-num.orange{color:#b45309}.asr-card .asr-lbl{font-size:10.5px;color:var(--prr-text-muted);font-weight:500;margin-top:3px}.asr-card .asr-pct{font-size:10px;color:#94a3b8;margin-top:2px}.asr-chart{padding:14px 22px;border-bottom:1px solid var(--prr-border)}.asr-chart-title{font-size:11px;font-weight:600;color:var(--prr-text-muted);text-transform:uppercase;letter-spacing:.4px;margin-bottom:12px}.asr-bar-row{display:grid;grid-template-columns:90px 1fr 40px;gap:10px;align-items:center;margin-bottom:8px}.asr-bar-label{font-size:12px;font-weight:500;color:var(--prr-text-secondary)}.asr-bar-track{height:18px;background:var(--prr-border);border-radius:4px;overflow:hidden}.asr-bar-fill{height:100%;border-radius:4px;min-width:2px;transition:width .3s ease}.asr-bar-fill.booked{background:#1d4ed8}.asr-bar-fill.completed{background:var(--prr-success)}.asr-bar-fill.cancelled{background:var(--prr-danger)}.asr-bar-fill.noshow{background:#b45309}.asr-bar-count{font-size:12px;font-weight:600;color:var(--prr-text-primary);text-align:right}.asr-section-label{padding:12px 22px 6px;font-size:11px;font-weight:600;color:var(--prr-text-muted);text-transform:uppercase;letter-spacing:.4px}.asr-page .prr-table{min-width:560px;font-size:11.5px}.asr-page .prr-table thead th{font-size:10px}.asr-page .prr-table .right,.asr-page .prr-table thead th.right{text-align:right}.asr-period-cell{font-weight:600;color:var(--prr-text-primary);white-space:nowrap}.asr-page .prr-table tbody tr.asr-total-row td{background:#e8eef6;font-weight:700;color:var(--prr-text-primary);border-top:2px solid var(--prr-accent)}@media print{.asr-page .prr-table{min-width:0;font-size:11px}.asr-page .prr-table thead th{font-size:10px;padding:7px 8px;white-space:nowrap}.asr-page .prr-table tbody td{padding:6px 8px}.asr-cards{gap:6px;padding:10px 16px;break-inside:avoid}.asr-card{padding:8px 4px}.asr-card .asr-num{font-size:15px}.asr-card .asr-lbl{font-size:9px;margin-top:2px}.asr-card .asr-pct{font-size:8.5px}.asr-chart{padding:10px 16px;break-inside:avoid}.asr-chart-title{margin-bottom:8px}.asr-bar-row{grid-template-columns:80px 1fr 34px;gap:8px;margin-bottom:6px}.asr-bar-track{height:12px}.asr-bar-label,.asr-bar-count{font-size:10px}.asr-section-label{padding:8px 16px 4px}}@media screen and (max-width:900px){.asr-page .prr-params-grid{grid-template-columns:1fr 1fr}.asr-cards{grid-template-columns:repeat(3,1fr)}}.dwr-page .prr-params-grid{grid-template-columns:140px 140px 1fr 1fr auto}.dwr-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding:14px 22px;border-bottom:1px solid var(--prr-border)}.dwr-card{background:var(--prr-bg-muted);border:1px solid var(--prr-border);border-radius:var(--prr-radius-sm);padding:12px 8px;text-align:center}.dwr-card .dwr-num{font-size:20px;font-weight:700;color:var(--prr-text-primary);line-height:1.15}.dwr-card .dwr-num.blue{color:#1d4ed8}.dwr-card .dwr-num.green{color:var(--prr-success)}.dwr-card .dwr-num.purple{color:#6d28d9}.dwr-card .dwr-lbl{font-size:10.5px;color:var(--prr-text-muted);font-weight:500;margin-top:3px}.dwr-doctors{padding:14px 22px;border-bottom:1px solid var(--prr-border)}.dwr-section-title{font-size:11px;font-weight:600;color:var(--prr-text-muted);text-transform:uppercase;letter-spacing:.4px;margin-bottom:12px}.dwr-empty-note{display:flex;flex-direction:column;align-items:center;gap:10px;padding:16px 0;text-align:center;font-size:12.5px;color:var(--prr-text-muted)}.dwr-empty-note .prr-error-text{color:var(--prr-danger);font-weight:500}.dwr-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.dwr-doctor-card{border:1px solid var(--prr-border);border-radius:var(--prr-radius-sm);padding:12px 14px;background:var(--prr-bg-muted)}.dwr-card-header{display:flex;align-items:center;gap:10px;margin-bottom:10px}.dwr-avatar{width:36px;height:36px;border-radius:50%;background:var(--prr-accent);color:#fff;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;flex-shrink:0}.dwr-name{font-size:13px;font-weight:600;color:var(--prr-text-primary)}.dwr-spec{font-size:10.5px;color:var(--prr-text-muted);margin-top:1px}.dwr-stats{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px}.dwr-stat{text-align:center;padding:6px 4px;background:#fff;border-radius:6px;border:1px solid var(--prr-border)}.dwr-stat .dwr-val{font-size:15px;font-weight:700;color:var(--prr-text-primary)}.dwr-stat .dwr-val.blue{color:#1d4ed8}.dwr-stat .dwr-val.green{color:var(--prr-success)}.dwr-stat .dwr-val.purple{color:#6d28d9}.dwr-stat .dwr-key{font-size:9.5px;color:var(--prr-text-muted);margin-top:1px}.dwr-load-wrap{margin-top:8px}.dwr-load-label{display:flex;justify-content:space-between;font-size:10px;color:var(--prr-text-muted);margin-bottom:3px}.dwr-load-track{height:6px;background:var(--prr-border);border-radius:3px;overflow:hidden}.dwr-load-fill{height:100%;border-radius:3px;background:linear-gradient(90deg,#1d4ed8,#0f3a6f)}.dwr-section-label{padding:12px 22px 6px;font-size:11px;font-weight:600;color:var(--prr-text-muted);text-transform:uppercase;letter-spacing:.4px}.dwr-page .prr-table{min-width:720px;font-size:11.5px}.dwr-page .prr-table thead th{font-size:10px}.dwr-page .prr-table .right,.dwr-page .prr-table thead th.right,.dwr-page .prr-table .dwr-right{text-align:right}.dwr-name-cell{font-weight:600;color:var(--prr-text-primary)}.dwr-doctor-no{font-size:10px;font-weight:400;color:var(--prr-text-muted);margin-top:1px}.dwr-spec-cell{font-size:10.5px;color:var(--prr-text-muted)}.dwr-page .prr-table tbody tr.dwr-total-row td{background:#e8eef6;font-weight:700;color:var(--prr-text-primary);border-top:2px solid var(--prr-accent)}@media print{.dwr-page .prr-table{min-width:0;font-size:11px}.dwr-page .prr-table thead th{font-size:10px;padding:7px 8px;white-space:nowrap}.dwr-page .prr-table tbody td{padding:6px 8px}.dwr-doctor-no{font-size:8.5px;margin-top:0}.dwr-cards{gap:6px;padding:10px 16px;break-inside:avoid}.dwr-card{padding:8px 4px}.dwr-card .dwr-num{font-size:15px}.dwr-card .dwr-lbl{font-size:9px;margin-top:2px}.dwr-doctors{padding:10px 16px}.dwr-section-title{margin-bottom:8px}.dwr-grid{gap:8px}.dwr-doctor-card{padding:8px 10px;break-inside:avoid}.dwr-card-header{margin-bottom:8px}.dwr-avatar{width:28px;height:28px;font-size:11px}.dwr-name{font-size:12px}.dwr-spec{font-size:9.5px}.dwr-stat{padding:4px 3px}.dwr-stat .dwr-val{font-size:13px}.dwr-stat .dwr-key{font-size:8.5px}.dwr-load-wrap{margin-top:6px}.dwr-section-label{padding:8px 16px 4px}}@media screen and (max-width:900px){.dwr-page .prr-params-grid{grid-template-columns:1fr 1fr}.dwr-cards{grid-template-columns:repeat(2,1fr)}.dwr-grid{grid-template-columns:1fr}}.plr-page .prr-params-grid{grid-template-columns:130px 130px 1fr 1fr 1fr auto}.plr-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding:14px 22px;border-bottom:1px solid var(--prr-border)}.plr-card{background:var(--prr-bg-muted);border:1px solid var(--prr-border);border-radius:var(--prr-radius-sm);padding:12px 8px;text-align:center}.plr-card .plr-num{font-size:20px;font-weight:700;color:var(--prr-text-primary);line-height:1.15}.plr-card .plr-num.teal{color:#0d9488}.plr-card .plr-num.blue{color:#1d4ed8}.plr-card .plr-num.green{color:var(--prr-success)}.plr-card .plr-lbl{font-size:10.5px;color:var(--prr-text-muted);font-weight:500;margin-top:3px}.plr-page .prr-table{min-width:860px;font-size:11px}.plr-page .prr-table thead th{font-size:9.5px}.plr-rx-id{font-family:ui-monospace,Cascadia Mono,Segoe UI Mono,monospace;font-size:10px;font-weight:600;color:var(--prr-accent)}.plr-med-count{display:inline-block;margin-top:2px;font-size:9px;font-weight:600;color:#0d9488;background:#f0fdfa;padding:1px 5px;border-radius:999px;white-space:nowrap}.plr-patient-cell,.plr-medicine-cell{font-weight:600;color:var(--prr-text-primary)}.plr-med-line-no{font-size:9.5px;color:var(--prr-text-faint, #94a3b8);font-weight:500}.plr-dosage-cell,.plr-duration-cell{font-size:10.5px;color:var(--prr-text-secondary)}.plr-doctor-cell{font-weight:500;color:var(--prr-text-primary)}.plr-pharmacy-icon{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:6px;font-size:12px;cursor:default}.plr-pharmacy-icon.in-stock{background:#f0fdfa;color:#0d9488}.plr-pharmacy-icon.external{background:#f1f5f9;color:var(--prr-text-muted)}.plr-page .prr-table tbody tr.plr-group-start td{border-top:2px solid var(--prr-border-strong)}.plr-page .prr-table tbody tr.plr-group-start:first-child td{border-top:none}.plr-page .prr-table td.plr-span{vertical-align:top;background:var(--prr-bg-surface)!important}.plr-page .prr-table tbody tr.plr-line td{border-bottom-color:#f1f5f9}.plr-lines-note{color:var(--prr-text-muted);margin-left:8px}@media print{.plr-page .prr-table{min-width:0;font-size:10.5px}.plr-page .prr-table thead th{font-size:9.5px;padding:6px;white-space:nowrap}.plr-page .prr-table tbody td{padding:5px 6px}.plr-page .prr-table tbody tr.plr-line{break-inside:avoid;page-break-inside:avoid}.plr-pharmacy-icon{width:20px;height:20px;font-size:10px}.plr-cards{gap:6px;padding:10px 16px;break-inside:avoid}.plr-card{padding:8px 4px}.plr-card .plr-num{font-size:15px}.plr-card .plr-lbl{font-size:9px;margin-top:2px}}@media screen and (max-width:900px){.plr-page .prr-params-grid{grid-template-columns:1fr 1fr}.plr-cards{grid-template-columns:repeat(2,1fr)}}.lor-page .prr-params-grid{grid-template-columns:130px 130px 1fr 1fr 1fr auto}.lor-cards{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;padding:14px 22px;border-bottom:1px solid var(--prr-border)}.lor-card{background:var(--prr-bg-muted);border:1px solid var(--prr-border);border-radius:var(--prr-radius-sm);padding:12px 8px;text-align:center}.lor-card .lor-num{font-size:20px;font-weight:700;color:var(--prr-text-primary);line-height:1.15}.lor-card .lor-num.orange{color:#b45309}.lor-card .lor-num.blue{color:#1d4ed8}.lor-card .lor-num.green{color:var(--prr-success)}.lor-card .lor-num.red{color:var(--prr-danger)}.lor-card .lor-lbl{font-size:10.5px;color:var(--prr-text-muted);font-weight:500;margin-top:3px}.lor-page .prr-table{min-width:760px;font-size:11px}.lor-page .prr-table thead th{font-size:9.5px}.lor-date-cell{font-size:10.5px;color:var(--prr-text-secondary);white-space:nowrap}.lor-order-id{font-family:ui-monospace,Cascadia Mono,Segoe UI Mono,monospace;font-size:10px;font-weight:500;color:var(--prr-text-faint, #94a3b8);margin-top:1px}.lor-patient-cell,.lor-test-cell{font-weight:600;color:var(--prr-text-primary)}.lor-doctor-cell{font-weight:500;color:var(--prr-text-primary)}.lor-priority-badge{display:inline-block;font-size:9px;font-weight:700;padding:1px 5px;border-radius:4px;text-transform:uppercase;letter-spacing:.3px;white-space:nowrap}.lor-priority-badge.routine{background:#f1f5f9;color:var(--prr-text-muted)}.lor-priority-badge.urgent{background:#fff7ed;color:#c2410c}.lor-priority-badge.stat{background:#fef2f2;color:var(--prr-danger)}.lor-status-pill{display:inline-flex;align-items:center;gap:4px;font-size:10px;font-weight:600;padding:2px 7px;border-radius:9999px;white-space:nowrap}.lor-status-pill:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor;flex-shrink:0}.lor-status-pill.pending{background:#fffbeb;color:#b45309}.lor-status-pill.sample-collected{background:#eff6ff;color:#1d4ed8}.lor-status-pill.in-progress{background:#f5f3ff;color:#6d28d9}.lor-status-pill.completed{background:#ecfdf5;color:var(--prr-success)}.lor-status-pill.cancelled{background:#fef2f2;color:var(--prr-danger)}@media print{.lor-page .prr-table{min-width:0;font-size:10.5px}.lor-page .prr-table thead th{font-size:9.5px;padding:6px;white-space:nowrap}.lor-page .prr-table tbody td{padding:5px 6px}.lor-page .prr-table tbody tr{break-inside:avoid;page-break-inside:avoid}.lor-cards{gap:6px;padding:10px 16px;break-inside:avoid}.lor-card{padding:8px 4px}.lor-card .lor-num{font-size:15px}.lor-card .lor-lbl{font-size:9px;margin-top:2px}}@media screen and (max-width:900px){.lor-page .prr-params-grid{grid-template-columns:1fr 1fr}.lor-cards{grid-template-columns:repeat(2,1fr)}}.psr-page .prr-params-grid{grid-template-columns:130px 130px 1fr 1fr auto}.psr-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding:14px 22px;border-bottom:1px solid var(--prr-border)}.psr-card{background:var(--prr-bg-muted);border:1px solid var(--prr-border);border-radius:var(--prr-radius-sm);padding:12px 8px;text-align:center}.psr-card .psr-num{font-size:18px;font-weight:700;color:var(--prr-text-primary);line-height:1.15}.psr-card .psr-num.blue{color:#1d4ed8}.psr-card .psr-num.orange{color:#ea580c}.psr-card .psr-num.green{color:var(--prr-success)}.psr-card .psr-lbl{font-size:10.5px;color:var(--prr-text-muted);font-weight:500;margin-top:3px}.psr-page .prr-table{min-width:880px;font-size:11px}.psr-page .prr-table thead th{font-size:9.5px}.psr-page .prr-table .right,.psr-page .prr-table thead th.right{text-align:right}.psr-date-cell{font-size:10.5px;color:var(--prr-text-secondary);white-space:nowrap}.psr-sale-id{font-family:ui-monospace,Cascadia Mono,Segoe UI Mono,monospace;font-size:10px;font-weight:500;color:var(--prr-text-faint, #94a3b8);margin-top:1px}.psr-customer-cell,.psr-item-cell{font-weight:600;color:var(--prr-text-primary)}.psr-line-no{font-size:9.5px;color:var(--prr-text-faint, #94a3b8);font-weight:500}.psr-amount{font-variant-numeric:tabular-nums;font-weight:600;color:var(--prr-text-primary);white-space:nowrap}.psr-page .prr-table tbody tr.psr-group-start td{border-top:2px solid #0f172a}.psr-page .prr-table tbody tr.psr-group-start:first-child td{border-top:none}.psr-page .prr-table tbody td.psr-span{vertical-align:top;background:var(--prr-bg-surface)!important}.psr-page .prr-table tbody tr.psr-total-row td{background:#e8eef6;font-weight:700;color:var(--prr-text-primary);border-top:2px solid var(--prr-accent)}@media print{.psr-page .prr-table{min-width:0;font-size:10.5px}.psr-page .prr-table thead th{font-size:9.5px;padding:6px;white-space:nowrap}.psr-page .prr-table tbody td{padding:5px 6px}.psr-page .prr-table tbody tr{break-inside:avoid;page-break-inside:avoid}.psr-cards{gap:6px;padding:10px 16px;break-inside:avoid}.psr-card{padding:8px 4px}.psr-card .psr-num{font-size:15px}.psr-card .psr-lbl{font-size:9px;margin-top:2px}}@media screen and (max-width:900px){.psr-page .prr-params-grid{grid-template-columns:1fr 1fr}.psr-cards{grid-template-columns:repeat(2,1fr)}}.rsr-page .prr-params-grid{grid-template-columns:140px 140px 1fr auto}.rsr-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding:14px 22px;border-bottom:1px solid var(--prr-border)}.rsr-card{background:var(--prr-bg-muted);border:1px solid var(--prr-border);border-radius:var(--prr-radius-sm);padding:12px 8px;text-align:center}.rsr-card .rsr-num{font-size:16px;font-weight:700;color:var(--prr-text-primary);line-height:1.15}.rsr-card .rsr-num.blue{color:#1d4ed8}.rsr-card .rsr-num.green{color:var(--prr-success)}.rsr-card .rsr-num.purple{color:#6d28d9}.rsr-card .rsr-num.orange{color:#ea580c}.rsr-card .rsr-lbl{font-size:10.5px;color:var(--prr-text-muted);font-weight:500;margin-top:3px}.rsr-section-label{padding:12px 22px 6px;font-size:11px;font-weight:600;color:var(--prr-text-muted);text-transform:uppercase;letter-spacing:.4px}.rsr-payment-row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:0 22px 14px}.rsr-payment-row.four{grid-template-columns:repeat(4,1fr)}.rsr-payment-card{background:var(--prr-bg-muted);border:1px solid var(--prr-border);border-radius:var(--prr-radius-sm);padding:10px 12px;display:flex;align-items:center;justify-content:space-between}.rsr-payment-card .rsr-pm-label{font-size:11px;font-weight:600;color:var(--prr-text-secondary)}.rsr-payment-card .rsr-pm-label i{font-size:12px;margin-right:6px}.rsr-payment-card .rsr-pm-label i.cash{color:var(--prr-success)}.rsr-payment-card .rsr-pm-label i.card{color:#1d4ed8}.rsr-payment-card .rsr-pm-label i.bank{color:#6d28d9}.rsr-payment-card .rsr-pm-label i.other{color:#ea580c}.rsr-payment-card .rsr-pm-value{font-size:13px;font-weight:700;color:var(--prr-text-primary);font-variant-numeric:tabular-nums;white-space:nowrap}.rsr-page .prr-table{min-width:900px;font-size:11px}.rsr-page .prr-table thead th{font-size:9.5px}.rsr-page .prr-table .right,.rsr-page .prr-table thead th.right{text-align:right}.rsr-date-cell{font-weight:600;color:var(--prr-text-primary);white-space:nowrap}.rsr-amount{font-variant-numeric:tabular-nums;font-weight:600;color:var(--prr-text-primary);white-space:nowrap}.rsr-page .prr-table tbody tr.rsr-total-row td{background:#e8eef6;font-weight:700;color:var(--prr-text-primary);border-top:2px solid var(--prr-accent)}@media print{.rsr-page .prr-table{min-width:0;font-size:10.5px}.rsr-page .prr-table thead th{font-size:9.5px;padding:6px;white-space:nowrap}.rsr-page .prr-table tbody td{padding:5px 6px}.rsr-page .prr-table tbody tr{break-inside:avoid;page-break-inside:avoid}.rsr-cards{gap:6px;padding:10px 16px;break-inside:avoid}.rsr-card{padding:8px 4px}.rsr-card .rsr-num{font-size:13px}.rsr-card .rsr-lbl{font-size:9px;margin-top:2px}.rsr-payment-row{gap:6px;padding:0 16px 10px;break-inside:avoid}.rsr-payment-card{padding:6px 8px}.rsr-payment-card .rsr-pm-value{font-size:11px}.rsr-section-label{padding:8px 16px 4px;font-size:9px}}@media screen and (max-width:900px){.rsr-page .prr-params-grid{grid-template-columns:1fr 1fr}.rsr-cards,.rsr-payment-row,.rsr-payment-row.four{grid-template-columns:repeat(2,1fr)}}.rx-page{display:flex;flex-direction:column;min-height:0}.rx-body{display:grid;grid-template-columns:1fr 280px;flex:1;min-height:0;gap:0;transition:grid-template-columns .25s ease}.rx-body.rx-sidebar-collapsed{grid-template-columns:1fr 0}.rx-main{padding:0 16px 24px 0;overflow-y:auto;min-width:0}.rx-sidebar{background:var(--bg-surface, #fff);border-left:1px solid var(--border, #e2e8f0);padding:0 14px 24px;overflow-y:auto;overflow-x:hidden;transition:opacity .2s,padding .25s,border .25s}.rx-body.rx-sidebar-collapsed .rx-sidebar{opacity:0;padding:0;border-left:none;pointer-events:none}.rx-toolbar{display:flex;flex-wrap:nowrap;gap:10px;align-items:center;margin-bottom:14px;padding:10px 12px;background:#1a4a7a;border:1px solid #143a61;border-radius:var(--radius-sm, 8px);box-shadow:0 1px 2px #0f172a0d}.rx-toolbar .rx-heading{font-size:15px;font-weight:700;color:#fff;letter-spacing:-.2px;margin:0 4px 0 0;white-space:nowrap;flex-shrink:0}.rx-toolbar .rx-search-wrap{flex:1;min-width:140px;position:relative}.rx-toolbar .rx-search-wrap svg{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:#ffffff8c;font-size:13px}.rx-toolbar .rx-search-wrap input{width:100%;height:36px;padding:0 14px 0 34px;background:#ffffff1f;border:1px solid rgba(255,255,255,.22);border-radius:var(--radius-sm, 8px);color:#fff;font-family:var(--font, "Inter", sans-serif);font-size:13px}.rx-toolbar .rx-search-wrap input::placeholder{color:#ffffff80}.rx-toolbar .rx-search-wrap input:focus{background:#ffffff2e;border-color:#ffffff73;box-shadow:0 0 0 3px #ffffff1f;outline:none}.rx-filter-group{display:flex;gap:8px;flex-wrap:wrap}.rx-filter-group select{height:36px;padding:0 28px 0 12px;border:1px solid rgba(255,255,255,.22);border-radius:var(--radius-sm, 8px);font-family:var(--font, "Inter", sans-serif);font-size:13px;font-weight:500;background:#ffffff1f;color:#fff;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center}.rx-filter-group select option{color:var(--text-primary, #0f172a);background:#fff}.rx-toolbar-btn{height:36px;padding:0 12px;border:1px solid rgba(255,255,255,.28);border-radius:var(--radius-sm, 8px);background:#ffffff1f;color:#fff;font-family:var(--font, "Inter", sans-serif);font-size:12.5px;font-weight:600;cursor:pointer;display:inline-flex;align-items:center;gap:7px;white-space:nowrap;transition:background .12s,border-color .12s;flex-shrink:0}.rx-toolbar-btn:hover{background:#ffffff38;border-color:#fff6}.rx-toolbar-btn.icon-only{width:36px;padding:0;justify-content:center}.rx-toolbar-btn.active{background:#ffffff47;border-color:#ffffff80}.rx-toolbar-actions{display:flex;align-items:center;gap:8px;margin-left:auto;flex-shrink:0}.rx-view-toggle{display:flex;gap:0;border:1px solid rgba(255,255,255,.28);border-radius:6px;overflow:hidden;background:#ffffff14;flex-shrink:0}.rx-view-toggle button{width:32px;height:32px;border:none;background:transparent;color:#ffffffbf;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:12px;transition:background .12s,color .12s}.rx-view-toggle button+button{border-left:1px solid rgba(255,255,255,.2)}.rx-view-toggle button:hover{background:#ffffff26;color:#fff}.rx-view-toggle button.active{background:#ffffff47;color:#fff}.rx-sidebar-toggle{width:32px;height:32px;border:1px solid rgba(255,255,255,.28);border-radius:6px;background:#ffffff1f;color:#ffffffd9;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:12px;flex-shrink:0}.rx-sidebar-toggle:hover{background:#ffffff38;color:#fff;border-color:#fff6}.rx-filter-panel{display:none;background:var(--bg-surface, #fff);border:1px solid var(--border, #e2e8f0);border-radius:var(--radius-sm, 8px);box-shadow:0 1px 2px #0f172a0d;padding:14px 16px;margin-bottom:14px}.rx-filter-panel.open{display:block}.rx-filter-panel-title{font-size:12px;font-weight:600;color:var(--text-muted, #64748b);text-transform:uppercase;letter-spacing:.4px;margin-bottom:12px;display:flex;align-items:center;gap:8px}.rx-filter-panel-title svg{color:var(--accent, #0F3A6F)}.rx-filter-panel-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;align-items:end}.rx-filter-field label{display:block;font-size:11.5px;font-weight:600;color:var(--text-secondary, #334155);margin-bottom:5px}.rx-filter-field input,.rx-filter-field select{width:100%;height:36px;padding:0 10px;border:1px solid var(--border, #e2e8f0);border-radius:var(--radius-sm, 8px);font-family:var(--font, "Inter", sans-serif);font-size:13px;color:var(--text-primary, #0f172a);background:var(--bg-surface, #fff)}.rx-filter-field input:focus,.rx-filter-field select:focus{outline:none;border-color:var(--accent, #0F3A6F);box-shadow:0 0 0 3px #0f3a6f1f}.rx-date-range{display:flex;align-items:center;gap:6px;height:36px}.rx-date-range input[type=date]{flex:1;min-width:0;height:36px;padding:0 8px;border:1px solid var(--border, #e2e8f0);border-radius:var(--radius-sm, 8px);font-family:var(--font, "Inter", sans-serif);font-size:12.5px;color:var(--text-primary, #0f172a);background:var(--bg-surface, #fff)}.rx-date-range input[type=date]:focus{outline:none;border-color:var(--accent, #0F3A6F);box-shadow:0 0 0 3px #0f3a6f1f}.rx-date-range-sep{color:var(--text-muted, #64748b);font-weight:600;flex-shrink:0;font-size:13px}.rx-filter-panel-actions{display:flex;gap:8px;align-items:center;margin-top:12px;padding-top:12px;border-top:1px solid var(--border, #e2e8f0);justify-content:flex-end}.rx-filter-panel-actions .rx-btn-primary,.rx-filter-panel-actions .rx-btn-secondary{height:34px;padding:0 14px;font-size:12.5px}.rx-btn-primary{height:40px;padding:0 18px;background:var(--accent, #0F3A6F);border:none;border-radius:var(--radius-sm, 8px);font-family:var(--font, "Inter", sans-serif);font-weight:600;font-size:13px;color:#fff;display:inline-flex;align-items:center;gap:8px;cursor:pointer;transition:background .15s,box-shadow .15s;white-space:nowrap;box-shadow:0 1px 2px #0f3a6f33}.rx-btn-primary:hover{background:var(--accent-hover, #0a2d57);box-shadow:0 2px 6px #0f3a6f40}.rx-btn-secondary{height:40px;padding:0 16px;background:var(--bg-surface, #fff);border:1px solid var(--border, #e2e8f0);border-radius:var(--radius-sm, 8px);font-family:var(--font, "Inter", sans-serif);font-weight:500;font-size:13px;color:var(--text-secondary, #334155);cursor:pointer;transition:background .12s,border-color .12s}.rx-btn-secondary:hover{background:var(--bg-subtle, #f1f5f9);border-color:var(--border-strong, #cbd5e1)}.rx-table-card{background:var(--bg-surface, #fff);border:1px solid var(--border, #e2e8f0);border-radius:var(--radius, 12px);box-shadow:0 1px 2px #0f172a0d;overflow:hidden}.rx-table-card.rx-tiles-mode .rx-table-wrap,.rx-table-card.rx-list-mode .rx-tiles-grid{display:none}.rx-table-wrap{overflow-x:auto}.rx-table{width:100%;border-collapse:collapse;font-size:13px;min-width:960px}.rx-table th{background:var(--bg-muted, #f8fafc);color:var(--text-muted, #64748b);font-weight:600;font-size:11px;letter-spacing:.4px;text-transform:uppercase;padding:12px 16px;text-align:left;border-bottom:1px solid var(--border, #e2e8f0);white-space:nowrap}.rx-table td{padding:8px 14px;border-bottom:1px solid var(--border, #e2e8f0);color:var(--text-secondary, #334155);vertical-align:middle}.rx-table tr:last-child td{border-bottom:none}.rx-table tbody tr{transition:background .12s;cursor:pointer}.rx-table tbody tr:hover td{background:#f8fafc}.rx-table tbody tr.rx-expanded td{background:#f1f5f9}.rx-tiles-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px;padding:16px;background:var(--bg-page, #f1f5f9)}.rx-tile{background:var(--bg-surface, #fff);border:1px solid var(--border, #e2e8f0);border-radius:var(--radius, 12px);padding:16px;box-shadow:0 1px 2px #0f172a0d;display:flex;flex-direction:column;gap:12px;transition:border-color .15s,box-shadow .15s}.rx-tile:hover{border-color:var(--border-strong, #cbd5e1);box-shadow:0 4px 12px #0f172a12}.rx-tile-top{display:flex;align-items:flex-start;gap:12px}.rx-tile-identity{flex:1;min-width:0}.rx-tile-identity .rx-patient-name{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rx-tile-meta{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px;font-size:12px;color:var(--text-muted, #64748b)}.rx-tile-meta .label{display:block;font-size:10.5px;font-weight:600;text-transform:uppercase;letter-spacing:.3px;color:var(--text-faint, #94a3b8);margin-bottom:1px}.rx-tile-meta .val{color:var(--text-secondary, #334155);font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rx-tile-meds{display:flex;flex-wrap:wrap;gap:5px}.rx-tile-footer{display:flex;align-items:center;justify-content:space-between;padding-top:10px;border-top:1px solid var(--border, #e2e8f0)}.rx-patient-cell{display:flex;align-items:center;gap:12px}.rx-avatar{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;flex-shrink:0;background:var(--accent-soft, #e8eef6);color:var(--accent, #0F3A6F);font-weight:600}.rx-patient-name{font-weight:600;color:var(--text-primary, #0f172a);font-size:13.5px}.rx-patient-id{font-size:11.5px;color:var(--text-faint, #94a3b8)}.rx-status{font-size:11px;font-weight:600;padding:3px 10px;border-radius:9999px;display:inline-flex;align-items:center;gap:5px;white-space:nowrap}.rx-status:before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}.rx-status.active{background:#ecfdf5;color:#047857}.rx-status.pending{background:#fffbeb;color:#b45309}.rx-status.completed{background:#eff6ff;color:#1d4ed8}.rx-status.cancelled{background:#fef2f2;color:#b91c1c}.rx-med-chip{display:inline-flex;align-items:center;font-size:11px;font-weight:600;color:var(--accent, #0F3A6F);background:var(--accent-soft, #e8eef6);border:1px solid rgba(15,58,111,.1);padding:2px 8px;border-radius:6px;white-space:nowrap}.rx-med-chip.more{background:var(--bg-muted, #f8fafc);color:var(--text-muted, #64748b);border-color:var(--border, #e2e8f0)}.rx-med-chips{display:flex;flex-wrap:wrap;gap:4px}.rx-validity.expiring{color:#b45309;font-weight:600}.rx-validity.expired{color:#b91c1c;font-weight:600}.rx-actions-cell{display:flex;align-items:center;justify-content:center;gap:4px;position:relative}.rx-ctx-wrap{position:relative}.rx-ctx-btn{width:32px;height:32px;border:none;background:transparent;color:var(--text-faint, #94a3b8);border-radius:var(--radius-sm, 8px);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;font-size:13px;transition:background .12s,color .12s}.rx-ctx-btn:hover{background:#f1f5f9;color:var(--text-secondary, #334155)}.rx-ctx-menu{display:none;position:absolute;right:0;top:calc(100% + 4px);min-width:180px;background:var(--bg-surface, #fff);border:1px solid var(--border, #e2e8f0);border-radius:var(--radius-sm, 8px);box-shadow:0 4px 12px #0f172a12;z-index:100;padding:6px}.rx-ctx-menu.show{display:block}.rx-ctx-menu button{width:100%;display:flex;align-items:center;gap:10px;padding:9px 12px;border:none;background:transparent;font-family:var(--font, "Inter", sans-serif);font-size:13px;font-weight:500;color:var(--text-secondary, #334155);cursor:pointer;border-radius:6px;text-align:left;transition:background .12s,color .12s}.rx-ctx-menu button svg{width:16px;height:16px;color:var(--text-muted, #64748b);flex-shrink:0}.rx-ctx-menu button:hover{background:var(--bg-muted, #f8fafc);color:var(--text-primary, #0f172a)}.rx-ctx-menu button.danger{color:#b91c1c}.rx-ctx-menu button.danger svg{color:#b91c1c}.rx-ctx-menu button.danger:hover{background:#fef2f2}.rx-ctx-divider{height:1px;background:var(--border, #e2e8f0);margin:4px 0}.rx-detail-row td{padding:0!important;background:var(--bg-muted, #f8fafc)!important;border-bottom:1px solid var(--border, #e2e8f0)}.rx-detail-panel{padding:16px 20px 18px;display:grid;grid-template-columns:1.5fr 1fr;gap:20px}.rx-section-title{font-size:11px;font-weight:700;color:var(--text-muted, #64748b);text-transform:uppercase;letter-spacing:.5px;margin-bottom:10px;display:flex;align-items:center;gap:6px}.rx-section-title svg{font-size:11px;color:var(--accent, #0F3A6F)}.rx-med-table{width:100%;border-collapse:collapse;font-size:12.5px;min-width:0}.rx-med-table th{background:transparent;padding:0 10px 8px 0;border-bottom:1px solid var(--border, #e2e8f0);font-size:10.5px}.rx-med-table td{padding:8px 10px 8px 0;border-bottom:1px solid var(--border, #e2e8f0);background:transparent!important}.rx-med-table tr:last-child td{border-bottom:none}.rx-med-name{font-weight:600;color:var(--text-primary, #0f172a)}.rx-info-block{background:var(--bg-surface, #fff);border:1px solid var(--border, #e2e8f0);border-radius:var(--radius-sm, 8px);padding:12px 14px;margin-bottom:10px}.rx-info-block:last-child{margin-bottom:0}.rx-info-block-label{font-size:10.5px;font-weight:600;color:var(--text-faint, #94a3b8);text-transform:uppercase;letter-spacing:.3px;margin-bottom:4px}.rx-info-block-value{font-size:13px;color:var(--text-secondary, #334155);line-height:1.45}.rx-pagination{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;padding:12px 16px;border-top:1px solid var(--border, #e2e8f0);background:var(--bg-muted, #f8fafc)}.rx-pagination .rx-info{font-size:13px;color:var(--text-muted, #64748b);font-weight:500}.rx-pagination-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.rx-page-size{display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--text-muted, #64748b);font-weight:500}.rx-page-size select{height:32px;padding:0 28px 0 10px;border:1px solid var(--border, #e2e8f0);border-radius:var(--radius-sm, 8px);font-family:var(--font, "Inter", sans-serif);font-size:13px;font-weight:500;background:var(--bg-surface, #fff) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E") no-repeat right 8px center;color:var(--text-secondary, #334155);cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}.rx-pages{display:flex;gap:4px;align-items:center}.rx-pages button{min-width:32px;height:32px;padding:0 8px;border:1px solid transparent;border-radius:var(--radius-sm, 8px);background:transparent;font-family:var(--font, "Inter", sans-serif);font-size:13px;font-weight:500;color:var(--text-secondary, #334155);cursor:pointer;transition:background .12s,border-color .12s,color .12s}.rx-pages button:hover:not(:disabled){background:var(--bg-surface, #fff);border-color:var(--border, #e2e8f0)}.rx-pages button.active{background:var(--accent, #0F3A6F);color:#fff;border-color:var(--accent, #0F3A6F)}.rx-pages button:disabled{opacity:.4;cursor:not-allowed}.rx-sidebar-card{background:var(--bg-surface, #fff);border:1px solid var(--border, #e2e8f0);border-radius:var(--radius, 12px);padding:16px;margin-bottom:14px;box-shadow:0 1px 2px #0f172a0d}.rx-sidebar-card:last-child{margin-bottom:0}.rx-sidebar-card-title{font-weight:600;font-size:11px;color:var(--text-muted, #64748b);letter-spacing:.5px;text-transform:uppercase;margin-bottom:12px;display:flex;align-items:center;gap:7px}.rx-sidebar-card-title svg{color:var(--accent, #0F3A6F);font-size:12px}.rx-stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.rx-stat-item{background:var(--bg-muted, #f8fafc);border-radius:var(--radius-sm, 8px);padding:12px 10px;text-align:center}.rx-stat-item .number{font-weight:700;font-size:22px;color:var(--text-primary, #0f172a);line-height:1.15;letter-spacing:-.5px}.rx-stat-item .number.green{color:#047857}.rx-stat-item .number.blue{color:#1d4ed8}.rx-stat-item .number.orange{color:#b45309}.rx-stat-item .label{font-size:11px;color:var(--text-muted, #64748b);font-weight:500;margin-top:2px}.rx-recent-list{list-style:none}.rx-recent-list li{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--border, #e2e8f0)}.rx-recent-list li:last-child{border-bottom:none;padding-bottom:0}.rx-recent-list li:first-child{padding-top:0}.rx-recent-list .rx-recent-info{flex:1;min-width:0}.rx-recent-list .rx-recent-info .n{font-size:13px;font-weight:600;color:var(--text-primary, #0f172a);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rx-recent-list .rx-recent-info .m{font-size:11.5px;color:var(--text-faint, #94a3b8)}.rx-quick-actions{display:flex;flex-direction:column;gap:6px}.rx-q-btn{height:38px;background:transparent;border:1px solid var(--border, #e2e8f0);border-radius:var(--radius-sm, 8px);font-family:var(--font, "Inter", sans-serif);font-weight:500;font-size:13px;color:var(--text-secondary, #334155);cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;transition:background .12s,border-color .12s}.rx-q-btn:hover{background:var(--bg-muted, #f8fafc);border-color:var(--border-strong, #cbd5e1)}.rx-q-btn svg{font-size:12px;color:var(--text-muted, #64748b)}.rx-q-btn.primary{background:var(--accent, #0F3A6F);border-color:var(--accent, #0F3A6F);color:#fff}.rx-q-btn.primary:hover{background:var(--accent-hover, #0a2d57);border-color:var(--accent-hover, #0a2d57)}.rx-q-btn.primary svg{color:#fff}.rx-modal-overlay{display:none;position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a80;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);z-index:1000;justify-content:center;align-items:center;padding:16px}.rx-modal-overlay.show{display:flex}.rx-modal-content{background:var(--bg-surface, #fff);border-radius:16px;max-width:680px;width:100%;max-height:94vh;display:flex;flex-direction:column;box-shadow:0 24px 48px #0f172a2e;animation:rxModalIn .2s ease;overflow:hidden}@keyframes rxModalIn{0%{transform:translateY(12px) scale(.98);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}.rx-modal-header{display:flex;align-items:flex-start;justify-content:space-between;padding:18px 22px 14px;border-bottom:1px solid var(--border, #e2e8f0);flex-shrink:0}.rx-modal-header h3{font-weight:700;font-size:17px;color:var(--text-primary, #0f172a);display:flex;align-items:center;gap:10px;margin:0}.rx-modal-icon{width:34px;height:34px;border-radius:9px;background:linear-gradient(135deg,#0f3a6f,#1a4a8a);color:#fff;display:flex;align-items:center;justify-content:center;font-size:14px}.rx-modal-subtitle{font-size:12.5px;color:var(--text-muted, #64748b);margin-left:44px;margin-top:2px}.rx-modal-close{width:34px;height:34px;border:none;background:transparent;border-radius:var(--radius-sm, 8px);color:var(--text-muted, #64748b);font-size:14px;cursor:pointer;display:flex;align-items:center;justify-content:center}.rx-modal-close:hover{background:var(--bg-subtle, #f1f5f9);color:var(--text-secondary, #334155)}.rx-modal-body{padding:16px 22px 8px;overflow-y:auto;flex:1}.rx-form-section{display:grid;grid-template-columns:100px 1fr;border:1px solid var(--border, #e2e8f0);border-radius:var(--radius-sm, 8px);overflow:hidden;margin-bottom:12px}.rx-form-section-label{background:var(--bg-muted, #f8fafc);border-right:1px solid var(--border, #e2e8f0);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:12px 8px;text-align:center}.rx-form-section-label svg{color:var(--accent, #0F3A6F);font-size:14px}.rx-form-section-label span{font-size:11px;font-weight:600;color:var(--text-muted, #64748b);text-transform:uppercase;letter-spacing:.4px;line-height:1.25}.rx-form-section-fields{padding:12px 14px}.rx-form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.rx-form-row-3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px}.rx-form-group{margin-bottom:10px}.rx-form-group:last-child{margin-bottom:0}.rx-form-group label{font-weight:600;font-size:12px;color:var(--text-secondary, #334155);display:block;margin-bottom:5px}.rx-form-group label .required{color:#b91c1c}.rx-form-group input,.rx-form-group select,.rx-form-group textarea{width:100%;height:36px;padding:0 10px;border:1px solid var(--border, #e2e8f0);border-radius:var(--radius-sm, 8px);font-family:var(--font, "Inter", sans-serif);font-size:13px;color:var(--text-primary, #0f172a);background:var(--bg-surface, #fff)}.rx-form-group select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;padding-right:28px;cursor:pointer}.rx-form-group textarea{height:auto;min-height:56px;padding:8px 10px;resize:vertical}.rx-form-group input:focus,.rx-form-group select:focus,.rx-form-group textarea:focus{outline:none;border-color:var(--accent, #0F3A6F);box-shadow:0 0 0 3px #0f3a6f1f}.rx-form-actions{display:flex;justify-content:flex-end;gap:10px;padding:12px 22px;border-top:1px solid var(--border, #e2e8f0);background:var(--bg-muted, #f8fafc);flex-shrink:0}.rx-form-actions .rx-btn-primary,.rx-form-actions .rx-btn-secondary{height:38px}.rx-empty-state{text-align:center;padding:48px 24px;color:var(--text-muted, #64748b)}.rx-empty-state svg{font-size:36px;color:var(--text-faint, #94a3b8);margin-bottom:12px}@media(max-width:1000px){.rx-body{grid-template-columns:1fr}.rx-sidebar{border-left:none;border-top:1px solid var(--border, #e2e8f0)}.rx-filter-panel-grid{grid-template-columns:repeat(2,1fr)}.rx-detail-panel{grid-template-columns:1fr}}@media(max-width:640px){.rx-main{padding:0 14px 24px 0}.rx-toolbar{flex-direction:column;align-items:stretch}.rx-form-section{grid-template-columns:1fr}.rx-form-section-label{flex-direction:row;justify-content:flex-start;border-right:none;border-bottom:1px solid var(--border, #e2e8f0);padding:8px 12px}.rx-form-row,.rx-form-row-3,.rx-filter-panel-grid{grid-template-columns:1fr}}.lo-page{display:flex;flex-direction:column;height:100%;background:var(--bg-page, #f1f5f9)}.lo-body{display:grid;grid-template-columns:1fr 280px;flex:1;min-height:0;transition:grid-template-columns .25s ease}.lo-body.lo-sidebar-collapsed{grid-template-columns:1fr 0}.lo-main{padding:16px 16px 24px 20px;background:var(--bg-page, #f1f5f9);overflow-y:auto;min-width:0}.lo-toolbar{display:flex;flex-wrap:nowrap;gap:10px;align-items:center;margin-bottom:14px;padding:10px 12px;background:#1a4a7a;border:1px solid #143a61;border-radius:8px;box-shadow:0 1px 2px #0f172a0d}.lo-heading{font-size:15px;font-weight:700;color:#fff;letter-spacing:-.2px;margin:0 4px 0 0;white-space:nowrap;flex-shrink:0}.lo-search-wrap{flex:1;min-width:140px;position:relative}.lo-search-wrap svg{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:#ffffff8c;font-size:13px;pointer-events:none}.lo-search-wrap input{width:100%;height:36px;padding:0 14px 0 34px;border:1px solid rgba(255,255,255,.22);border-radius:8px;font-size:13px;background:#ffffff1f;color:#fff;transition:background .15s,border-color .15s,box-shadow .15s}.lo-search-wrap input::placeholder{color:#ffffff80}.lo-search-wrap input:focus{outline:none;background:#ffffff2e;border-color:#ffffff73;box-shadow:0 0 0 3px #ffffff1f}.lo-filter-group{display:flex;gap:8px;flex-wrap:wrap}.lo-filter-group select{height:36px;padding:0 28px 0 12px;border:1px solid rgba(255,255,255,.22);border-radius:8px;font-size:13px;font-weight:500;background-color:#ffffff1f;color:#fff;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center}.lo-filter-group select option{color:#0f172a;background:#fff}.lo-toolbar-btn{height:36px;padding:0 12px;border:1px solid rgba(255,255,255,.28);border-radius:8px;background:#ffffff1f;color:#fff;font-size:12.5px;font-weight:600;cursor:pointer;display:inline-flex;align-items:center;gap:7px;white-space:nowrap;flex-shrink:0;transition:background .12s,border-color .12s}.lo-toolbar-btn:hover{background:#ffffff38;border-color:#fff6}.lo-toolbar-btn.icon-only{width:36px;padding:0;justify-content:center}.lo-toolbar-btn.active{background:#ffffff47}.lo-toolbar-actions{display:flex;align-items:center;gap:8px;margin-left:auto;flex-shrink:0}.lo-view-toggle{display:flex;gap:0;border:1px solid rgba(255,255,255,.28);border-radius:6px;overflow:hidden;background:#ffffff14;flex-shrink:0}.lo-view-toggle button{width:32px;height:32px;border:none;background:transparent;color:#ffffffbf;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:12px;transition:background .12s,color .12s}.lo-view-toggle button+button{border-left:1px solid rgba(255,255,255,.2)}.lo-view-toggle button:hover{background:#ffffff26;color:#fff}.lo-view-toggle button.active{background:#ffffff47;color:#fff}.lo-sidebar-toggle{width:32px;height:32px;border:1px solid rgba(255,255,255,.28);border-radius:6px;background:#ffffff1f;color:#ffffffd9;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:12px;flex-shrink:0}.lo-sidebar-toggle:hover{background:#ffffff38;color:#fff}.lo-filter-panel{display:none;background:#fff;border:1px solid var(--border, #e2e8f0);border-radius:12px;padding:14px 16px;margin-bottom:14px;box-shadow:0 1px 3px #0f172a0f}.lo-filter-panel.open{display:block}.lo-filter-panel-title{font-size:12px;font-weight:700;color:#334155;text-transform:uppercase;letter-spacing:.4px;margin-bottom:12px;display:flex;align-items:center;gap:7px}.lo-filter-panel-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:12px}.lo-filter-field label{font-size:12px;font-weight:600;color:#334155;margin-bottom:5px;display:block}.lo-date-range{display:flex;align-items:center;gap:8px}.lo-date-range input[type=date]{flex:1;height:36px;padding:0 10px;border:1px solid #e2e8f0;border-radius:8px;font-size:13px}.lo-date-range-sep{color:#94a3b8}.lo-filter-panel-actions{display:flex;justify-content:flex-end;gap:10px}.lo-btn-secondary{height:36px;padding:0 16px;background:#fff;border:1px solid #e2e8f0;border-radius:8px;font-weight:500;font-size:13px;color:#334155;cursor:pointer;display:inline-flex;align-items:center;gap:6px}.lo-btn-secondary:hover{background:#f1f5f9}.lo-btn-primary{height:36px;padding:0 16px;background:#0f3a6f;border:none;border-radius:8px;font-weight:600;font-size:13px;color:#fff;cursor:pointer;display:inline-flex;align-items:center;gap:6px}.lo-btn-primary:hover{background:#0a2d57}.lo-table-card{background:#fff;border:1px solid var(--border, #e2e8f0);border-radius:12px;box-shadow:0 1px 2px #0f172a0d;overflow:hidden}.lo-table-card.lo-tiles-mode .lo-table-wrap,.lo-table-card.lo-list-mode .lo-tiles-grid{display:none}.lo-table-wrap{overflow-x:auto}.lo-table{width:100%;border-collapse:collapse;font-size:13px;min-width:980px}.lo-table th{background:#f8fafc;color:#64748b;font-weight:600;font-size:11px;letter-spacing:.4px;text-transform:uppercase;padding:12px 14px;text-align:left;border-bottom:1px solid #e2e8f0;white-space:nowrap}.lo-table td{padding:10px 14px;border-bottom:1px solid #e2e8f0;color:#334155;vertical-align:middle}.lo-table tr:last-child td{border-bottom:none}.lo-table tbody tr{transition:background .12s;cursor:pointer}.lo-table tbody tr:hover td{background:#f8fafc}.lo-table tbody tr.lo-expanded td{background:#f1f5f9}.lo-order-id{font-weight:700;color:#0f172a;font-size:13.5px}.lo-patient-cell{display:flex;align-items:center;gap:10px}.lo-avatar{width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:11px;flex-shrink:0;background:#e8eef6;color:#0f3a6f;font-weight:600}.lo-patient-name{font-weight:600;color:#0f172a;font-size:13px}.lo-patient-id{font-size:11px;color:#94a3b8}.lo-priority{font-size:11px;font-weight:600;padding:2px 8px;border-radius:6px;white-space:nowrap}.lo-priority.routine{background:#f1f5f9;color:#64748b}.lo-priority.urgent{background:#fffbeb;color:#b45309}.lo-priority.stat{background:#fef2f2;color:#b91c1c}.lo-status{font-size:11px;font-weight:600;padding:3px 10px;border-radius:9999px;display:inline-flex;align-items:center;gap:5px;white-space:nowrap}.lo-status:before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}.lo-status.pending{background:#fffbeb;color:#b45309}.lo-status.collected{background:#eff6ff;color:#1d4ed8}.lo-status.in-progress{background:#e8eef6;color:#0f3a6f}.lo-status.completed{background:#ecfdf5;color:#047857}.lo-status.cancelled{background:#f1f5f9;color:#64748b}.lo-tests-cell{max-width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12.5px;color:#64748b}.lo-actions-cell{display:flex;align-items:center;justify-content:center;gap:2px;position:relative}.lo-ctx-wrap{position:relative}.lo-ctx-btn{width:32px;height:32px;border:none;background:transparent;color:#94a3b8;border-radius:8px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;font-size:13px;transition:background .12s,color .12s}.lo-ctx-btn:hover{background:#f1f5f9;color:#334155}.lo-ctx-menu{display:none;position:absolute;right:0;top:calc(100% + 4px);min-width:180px;background:#fff;border:1px solid #e2e8f0;border-radius:8px;box-shadow:0 4px 12px #0f172a12;z-index:100;padding:6px}.lo-ctx-menu.show{display:block}.lo-ctx-menu button{width:100%;display:flex;align-items:center;gap:10px;padding:9px 12px;border:none;background:transparent;font-size:13px;font-weight:500;color:#334155;cursor:pointer;border-radius:6px;text-align:left;transition:background .12s}.lo-ctx-menu button svg{width:14px;color:#64748b}.lo-ctx-menu button:hover{background:#f8fafc}.lo-ctx-menu button.danger{color:#b91c1c}.lo-ctx-menu button.danger svg{color:#b91c1c}.lo-ctx-menu button.danger:hover{background:#fef2f2}.lo-ctx-divider{height:1px;background:#e2e8f0;margin:4px 0}.lo-detail-row td{padding:0!important;background:#f8fafc!important;border-bottom:1px solid #e2e8f0}.lo-detail-panel{padding:16px 20px 18px;display:grid;grid-template-columns:1.4fr 1fr;gap:20px}.lo-section-title{font-size:11px;font-weight:700;color:#64748b;text-transform:uppercase;letter-spacing:.5px;margin-bottom:10px;display:flex;align-items:center;gap:6px}.lo-section-title svg{font-size:11px;color:#0f3a6f}.lo-info-block{background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:12px 14px;margin-bottom:10px}.lo-info-block:last-child{margin-bottom:0}.lo-info-block-label{font-size:10.5px;font-weight:600;color:#94a3b8;text-transform:uppercase;letter-spacing:.3px;margin-bottom:4px}.lo-info-block-value{font-size:13px;color:#334155;line-height:1.45}.lo-tiles-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px;padding:14px;background:var(--bg-page, #f1f5f9)}.lo-tile{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:14px;box-shadow:0 1px 2px #0f172a0d;display:flex;flex-direction:column;gap:10px;transition:border-color .15s,box-shadow .15s;cursor:pointer}.lo-tile:hover{border-color:#cbd5e1;box-shadow:0 4px 12px #0f172a12}.lo-tile-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.lo-tile-id{font-size:14px;font-weight:700;color:#0f172a}.lo-tile-meta{display:grid;grid-template-columns:1fr 1fr;gap:6px 12px;font-size:12px}.lo-tile-meta .label{display:block;font-size:10.5px;font-weight:600;text-transform:uppercase;letter-spacing:.3px;color:#94a3b8;margin-bottom:1px}.lo-tile-meta .val{color:#334155;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lo-tile-tests{font-size:12.5px;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lo-tile-footer{display:flex;align-items:center;justify-content:space-between;padding-top:8px;border-top:1px solid #e2e8f0}.lo-pagination{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;padding:12px 16px;border-top:1px solid #e2e8f0;background:#f8fafc}.lo-info{font-size:13px;color:#64748b;font-weight:500}.lo-pagination-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.lo-page-size{display:flex;align-items:center;gap:8px;font-size:12.5px;color:#64748b;font-weight:500}.lo-page-size select{height:32px;padding:0 28px 0 10px;border:1px solid #e2e8f0;border-radius:8px;font-size:13px;font-weight:500;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E") no-repeat right 8px center;color:#334155;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}.lo-pages{display:flex;gap:4px;align-items:center}.lo-pages button{min-width:32px;height:32px;padding:0 8px;border:1px solid transparent;border-radius:8px;background:transparent;font-size:13px;font-weight:500;color:#334155;cursor:pointer;transition:background .12s,border-color .12s,color .12s}.lo-pages button:hover:not(:disabled){background:#fff;border-color:#e2e8f0}.lo-pages button.active{background:#0f3a6f;color:#fff;border-color:#0f3a6f}.lo-pages button:disabled{opacity:.4;cursor:not-allowed}.lo-sidebar{background:#fff;border-left:1px solid #e2e8f0;padding:16px 14px 24px;overflow-y:auto;overflow-x:hidden;transition:opacity .2s,padding .25s,border .25s}.lo-body.lo-sidebar-collapsed .lo-sidebar{opacity:0;padding:0;border-left:none;pointer-events:none}.lo-sidebar-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:16px;margin-bottom:14px;box-shadow:0 1px 2px #0f172a0d}.lo-sidebar-card:last-child{margin-bottom:0}.lo-sidebar-card-title{font-weight:600;font-size:11px;color:#64748b;letter-spacing:.5px;text-transform:uppercase;margin-bottom:12px;display:flex;align-items:center;gap:7px}.lo-sidebar-card-title svg{color:#0f3a6f;font-size:12px}.lo-stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.lo-stat-item{background:#f8fafc;border-radius:8px;padding:12px 10px;text-align:center}.lo-stat-item .number{font-weight:700;font-size:18px;color:#0f172a;line-height:1.15;letter-spacing:-.5px}.lo-stat-item .number.green{color:#047857}.lo-stat-item .number.blue{color:#1d4ed8}.lo-stat-item .number.orange{color:#b45309}.lo-stat-item .number.red{color:#b91c1c}.lo-stat-item .label{font-size:11px;color:#64748b;font-weight:500;margin-top:2px}.lo-recent-list{list-style:none}.lo-recent-list li{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #e2e8f0}.lo-recent-list li:last-child{border-bottom:none;padding-bottom:0}.lo-recent-list li:first-child{padding-top:0}.lo-recent-info{flex:1;min-width:0}.lo-recent-info .n{font-size:13px;font-weight:600;color:#0f172a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lo-recent-info .m{font-size:11.5px;color:#94a3b8}.lo-quick-actions{display:flex;flex-direction:column;gap:6px}.lo-q-btn{height:38px;background:transparent;border:1px solid #e2e8f0;border-radius:8px;font-weight:500;font-size:13px;color:#334155;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;transition:background .12s,border-color .12s}.lo-q-btn:hover{background:#f8fafc;border-color:#cbd5e1}.lo-q-btn svg{font-size:12px;color:#64748b}.lo-q-btn.primary{background:#0f3a6f;border-color:#0f3a6f;color:#fff}.lo-q-btn.primary:hover{background:#0a2d57;border-color:#0a2d57}.lo-q-btn.primary svg{color:#fff}.lo-empty-state{text-align:center;padding:48px 24px;color:#64748b}.lo-empty-state svg{font-size:36px;color:#94a3b8;margin-bottom:12px}.lo-modal-overlay{display:none;position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a80;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);z-index:1000;justify-content:center;align-items:center;padding:16px}.lo-modal-overlay.show{display:flex}.lo-modal-content{background:#fff;border-radius:16px;max-width:560px;width:100%;display:flex;flex-direction:column;box-shadow:0 24px 48px #0f172a2e;animation:loModalIn .2s ease;overflow:hidden;max-height:90vh}@keyframes loModalIn{0%{transform:translateY(12px) scale(.98);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}.lo-modal-header{display:flex;align-items:flex-start;justify-content:space-between;padding:16px 20px;background:#1a4a7a;flex-shrink:0}.lo-modal-header h3{font-weight:700;font-size:16px;color:#fff;margin:0;display:flex;align-items:center;gap:10px}.lo-modal-icon{width:28px;height:28px;border-radius:8px;background:#ffffff26;display:flex;align-items:center;justify-content:center;font-size:12px}.lo-modal-subtitle{font-size:12px;color:#ffffffa6;margin:4px 0 0 38px}.lo-modal-close{width:32px;height:32px;border:none;background:#ffffff1a;border-radius:8px;color:#fffc;font-size:14px;cursor:pointer;display:flex;align-items:center;justify-content:center}.lo-modal-close:hover{background:#fff3;color:#fff}.lo-modal-body{padding:18px 20px 10px;overflow-y:auto;flex:1;min-height:0}.lo-form-section{margin-bottom:16px}.lo-form-section-label{font-size:12px;font-weight:700;color:#334155;text-transform:uppercase;letter-spacing:.4px;margin-bottom:10px;display:flex;align-items:center;gap:7px}.lo-form-section-label svg{color:#0f3a6f;font-size:12px}.lo-form-group{margin-bottom:12px}.lo-form-group label{display:block;font-size:12px;font-weight:600;color:#334155;margin-bottom:5px}.lo-form-group label .required{color:#b91c1c}.lo-form-group input,.lo-form-group select,.lo-form-group textarea{width:100%;height:38px;padding:0 12px;border:1px solid #e2e8f0;border-radius:8px;font-size:13px;color:#0f172a;background:#fff}.lo-form-group textarea{height:auto;min-height:64px;padding:10px 12px;resize:vertical}.lo-form-group select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;padding-right:32px;cursor:pointer}.lo-form-group input:focus,.lo-form-group select:focus,.lo-form-group textarea:focus{outline:none;border-color:#0f3a6f;box-shadow:0 0 0 3px #0f3a6f1f}.lo-form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.lo-chip-group{display:flex;flex-wrap:wrap;gap:8px}.lo-chip{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 12px;border:1px solid #e2e8f0;border-radius:9999px;background:#fff;font-size:12.5px;font-weight:500;color:#334155;cursor:pointer;-webkit-user-select:none;user-select:none;transition:background .12s,border-color .12s,color .12s}.lo-chip:hover{background:#f8fafc;border-color:#cbd5e1}.lo-chip.active{background:#e8eef6;border-color:#0f3a6f40;color:#0f3a6f}.lo-form-actions{display:flex;justify-content:flex-end;gap:10px;padding:12px 20px;border-top:1px solid #e2e8f0;background:#f8fafc}.lo-result-modal{max-width:780px}.lo-result-loading{text-align:center;padding:24px;color:#64748b;font-size:13px}.lo-result-table{border:1px solid #e2e8f0;border-radius:8px;overflow:hidden}.lo-result-header{display:grid;grid-template-columns:1.2fr .55fr .7fr .5fr .7fr;gap:12px;padding:8px 12px;background:#f1f5f9;font-size:11px;font-weight:700;color:#475569;text-transform:uppercase;letter-spacing:.3px}.lo-result-row{display:grid;grid-template-columns:1.2fr .55fr .7fr .5fr .7fr;gap:12px;padding:8px 12px;align-items:center;border-top:1px solid #f1f5f9;font-size:13px}.lo-result-row:hover{background:#f8fafc}.lo-result-comp{font-weight:600;color:#0f172a}.lo-result-na{color:#94a3b8;font-size:13px}.lo-result-input{height:32px;padding:0 10px;border:1px solid #e2e8f0;border-radius:6px;font-size:13px;color:#0f172a;width:100%}.lo-result-input:focus{outline:none;border-color:#0f3a6f;box-shadow:0 0 0 2px #0f3a6f1a}.lo-result-select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 8px center;padding-right:24px;cursor:pointer;width:120px}.lo-result-unit,.lo-result-range{color:#64748b;font-size:12px}.lo-complete-modal{max-width:480px}.lo-complete-select{width:100%}@media(max-width:1000px){.lo-body{grid-template-columns:1fr}.lo-sidebar{border-left:none;border-top:1px solid #e2e8f0}.lo-detail-panel{grid-template-columns:1fr}}@media(max-width:640px){.lo-main{padding:14px}.lo-toolbar{flex-direction:column;align-items:stretch}.lo-form-row{grid-template-columns:1fr}}.hs-page{padding:1.25rem 1.5rem;background:#f1f5f9;min-height:100%}.hs-layout{display:grid;grid-template-columns:1fr 300px;gap:1.15rem;align-items:start;max-width:1180px;margin:0 auto}.hs-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 4px 12px #0000000f;overflow:hidden}.hs-header{background:#1e3a5f;padding:.85rem 1.25rem;display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}.hs-header h2{font-size:1.05rem;font-weight:600;color:#fff;white-space:nowrap}.hs-search{flex:1;max-width:340px;position:relative}.hs-search-icon{position:absolute;left:.85rem;top:50%;transform:translateY(-50%);width:16px;height:16px;color:#94a3b8;pointer-events:none}.hs-search input{width:100%;height:38px;padding:0 1rem 0 2.4rem;border:none;border-radius:8px;background:#ffffff1f;color:#fff;font-size:.85rem;font-family:inherit}.hs-search input::placeholder{color:#94a3b8}.hs-search input:focus{outline:none;background:#ffffff2e}.hs-cat-strip{display:flex;align-items:center;gap:.4rem;padding:.85rem 1.25rem;background:#f8fafc;border-bottom:1px solid #e2e8f0;overflow-x:auto}.hs-cat-chip{padding:.4rem .9rem;border-radius:999px;border:1px solid #e2e8f0;background:#fff;font-size:.78rem;font-weight:500;font-family:inherit;color:#475569;cursor:pointer;white-space:nowrap;transition:all .15s}.hs-cat-chip:hover{border-color:#cbd5e1;color:#0f172a}.hs-cat-chip.active{background:#1e3a5f;border-color:#1e3a5f;color:#fff}.hs-content{padding:1.15rem 1.25rem 1.5rem}.hs-section-title{font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:#94a3b8;margin:0 0 .75rem}.hs-empty{color:#94a3b8;font-size:.85rem}.hs-help-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:.85rem}.hs-help-card{border:1px solid #e2e8f0;border-radius:12px;padding:1rem;background:#fff;cursor:pointer;transition:border-color .15s,box-shadow .15s}.hs-help-card:hover{border-color:#cbd5e1;box-shadow:0 4px 12px #0000000f}.hs-help-icon{width:40px;height:40px;border-radius:10px;display:flex;align-items:center;justify-content:center;margin-bottom:.7rem;font-size:18px}.hs-help-icon.blue{background:#eff6ff;color:#1e40af}.hs-help-icon.green{background:#ecfdf5;color:#059669}.hs-help-icon.purple{background:#f5f3ff;color:#7c3aed}.hs-help-icon.orange{background:#fff7ed;color:#ea580c}.hs-help-icon.teal{background:#f0fdfa;color:#0d9488}.hs-help-icon.rose{background:#fff1f2;color:#e11d48}.hs-help-card h3{font-size:.9rem;font-weight:600;color:#0f172a;margin-bottom:.25rem}.hs-help-card p{font-size:.78rem;color:#475569;line-height:1.45}.hs-faq-list{display:flex;flex-direction:column;gap:.5rem}.hs-faq-item{border:1px solid #e2e8f0;border-radius:10px;background:#fff;overflow:hidden}.hs-faq-q{width:100%;text-align:left;padding:.85rem 1rem;border:none;background:transparent;font-size:.875rem;font-weight:500;font-family:inherit;color:#0f172a;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:.75rem}.hs-faq-q:hover{background:#f8fafc}.hs-faq-q svg{width:16px;height:16px;color:#94a3b8;flex-shrink:0;transition:transform .2s}.hs-faq-item.open .hs-faq-q svg{transform:rotate(180deg)}.hs-faq-a{display:none;padding:.75rem 1rem .95rem;font-size:.82rem;color:#475569;line-height:1.55;border-top:1px solid #f1f5f9}.hs-faq-item.open .hs-faq-a{display:block}.hs-ticket-desc{font-size:.85rem;color:#475569;margin-bottom:1rem}.hs-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:.85rem}.hs-form-group{display:flex;flex-direction:column;gap:.3rem}.hs-form-group.hs-full{grid-column:1 / -1}.hs-form-group label{font-size:.75rem;font-weight:600;color:#475569}.hs-form-group input,.hs-form-group select,.hs-form-group textarea{height:38px;padding:0 .75rem;border:1px solid #e2e8f0;border-radius:8px;font-size:.85rem;font-family:inherit;color:#0f172a;background:#fff}.hs-form-group textarea{height:auto;min-height:100px;padding:.65rem .75rem;resize:vertical}.hs-form-group input:focus,.hs-form-group select:focus,.hs-form-group textarea:focus{outline:none;border-color:#93c5fd;box-shadow:0 0 0 3px #3b82f626}.hs-form-actions{display:flex;justify-content:flex-end;gap:.5rem;margin-top:1rem}.hs-form-actions-below{margin-top:.6rem;padding-top:.9rem;border-top:1px solid #e2e8f0}.hs-ticket-table-wrap{border:1px solid #e2e8f0;border-radius:10px;overflow:auto;background:#fff}.hs-ticket-table{width:100%;border-collapse:collapse;font-size:.83rem;min-width:640px}.hs-ticket-table th{text-align:left;padding:.6rem .9rem;background:#f8fafc;color:#475569;font-weight:600;font-size:.75rem;text-transform:uppercase;letter-spacing:.4px;border-bottom:1px solid #e2e8f0;white-space:nowrap}.hs-ticket-table td{padding:.65rem .9rem;border-bottom:1px solid #f1f5f9;color:#0f172a;vertical-align:middle}.hs-ticket-table tbody tr:last-child td{border-bottom:none}.hs-ticket-table tbody tr:hover{background:#f8fafc}.hs-ticket-id{font-weight:600;color:#1a4a7a;white-space:nowrap}.hs-ticket-status,.hs-ticket-priority{display:inline-block;padding:.15rem .55rem;border-radius:999px;font-size:.72rem;font-weight:600;white-space:nowrap}.hs-ticket-status.s-open{background:#fef3c7;color:#92400e}.hs-ticket-status.s-in-progress{background:#dbeafe;color:#1e40af}.hs-ticket-status.s-resolved{background:#d1fae5;color:#065f46}.hs-ticket-priority.p-low,.hs-ticket-priority.p-normal{background:#f1f5f9;color:#475569}.hs-ticket-priority.p-high{background:#ffedd5;color:#9a3412}.hs-ticket-priority.p-urgent{background:#fee2e2;color:#991b1b}.hs-btn{height:38px;padding:0 1.1rem;border-radius:8px;border:none;font-size:.85rem;font-weight:500;font-family:inherit;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:.35rem;transition:all .15s}.hs-btn-primary{background:#1e3a5f;color:#fff}.hs-btn-primary:hover{background:#162d4a}.hs-btn-secondary{background:#fff;border:1px solid #e2e8f0;color:#0f172a}.hs-btn-secondary:hover{background:#f8fafc}.hs-right-panel{display:flex;flex-direction:column;gap:.85rem;position:sticky;top:1.25rem}.hs-panel-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:1rem;box-shadow:0 1px 3px #0000000d}.hs-panel-title{font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:#94a3b8;margin-bottom:.85rem;display:flex;align-items:center;gap:.35rem}.hs-panel-title svg{width:14px;height:14px}.hs-status-online{display:inline-flex;align-items:center;gap:.35rem;font-size:.78rem;font-weight:600;color:#059669;margin-bottom:.75rem}.hs-status-online:before{content:"";width:8px;height:8px;border-radius:50%;background:#10b981}.hs-contact-block{display:flex;flex-direction:column;gap:.75rem}.hs-contact-row{display:flex;align-items:flex-start;gap:.65rem}.hs-contact-icon{width:36px;height:36px;border-radius:9px;background:#eff6ff;color:#1e40af;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:14px}.hs-contact-info h4{font-size:.82rem;font-weight:600;color:#0f172a}.hs-contact-info p{font-size:.75rem;color:#94a3b8}.hs-hours-list{display:flex;flex-direction:column;gap:.4rem;font-size:.8rem}.hs-hours-row{display:flex;justify-content:space-between;gap:.5rem;color:#475569}.hs-hours-row strong{color:#0f172a;font-weight:500}.hs-action-desc{font-size:.78rem;color:#475569;line-height:1.55;margin-bottom:.85rem}.hs-panel-actions{display:flex;flex-direction:column;gap:.5rem}.hs-panel-actions .hs-btn{width:100%;height:40px}@media(max-width:900px){.hs-layout{grid-template-columns:1fr}.hs-right-panel{position:static}}@media(max-width:560px){.hs-form-grid{grid-template-columns:1fr}.hs-page{padding:1rem}}.hs-modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a73;display:flex;align-items:center;justify-content:center;z-index:1000;padding:1.5rem}.hs-modal-content{background:#fff;border-radius:14px;width:100%;max-width:640px;max-height:85vh;display:flex;flex-direction:column;box-shadow:0 20px 60px #00000026;animation:hs-modal-in .2s ease-out}@keyframes hs-modal-in{0%{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}.hs-modal-header{display:flex;align-items:flex-start;gap:.85rem;padding:1.25rem 1.5rem;border-bottom:1px solid #e2e8f0}.hs-modal-header h3{font-size:1.05rem;font-weight:600;color:#0f172a;margin-bottom:.2rem}.hs-modal-header p{font-size:.82rem;color:#475569;line-height:1.45}.hs-modal-close{margin-left:auto;width:32px;height:32px;border:none;background:#f1f5f9;border-radius:8px;color:#64748b;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:14px;transition:all .15s}.hs-modal-close:hover{background:#e2e8f0;color:#0f172a}.hs-modal-body{padding:1.25rem 1.5rem;overflow-y:auto;flex:1}.hs-steps{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:1rem}.hs-step{display:flex;align-items:flex-start;gap:.85rem}.hs-step-num{width:30px;height:30px;border-radius:50%;background:#1e3a5f;color:#fff;font-size:.78rem;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:2px}.hs-step-body h4{font-size:.88rem;font-weight:600;color:#0f172a;margin-bottom:.15rem}.hs-step-body p{font-size:.82rem;color:#475569;line-height:1.55}.hs-modal-footer{display:flex;justify-content:flex-end;gap:.5rem;padding:1rem 1.5rem;border-top:1px solid #e2e8f0;background:#f8fafc;border-radius:0 0 14px 14px}.app{display:flex;height:100vh;overflow:hidden;background:var(--sidebar-bg)}.main{flex:1;display:flex;flex-direction:column;min-width:0;overflow:hidden;margin-top:5px;margin-right:5px;background:var(--bg-page);border-radius:12px 12px 0 0}.content{flex:1;min-height:0;overflow-y:auto}.loading-screen{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh;gap:20px}.loading-screen .spinner{width:50px;height:50px;border:4px solid rgba(74,108,247,.2);border-top-color:#4a6cf7;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.loading-screen p{font-size:16px;color:#718096;font-weight:500}.global-toast{position:fixed;top:20px;right:20px;z-index:10000;display:flex;align-items:center;gap:10px;min-width:300px;max-width:480px;padding:14px 18px;border-radius:10px;background:#fff;border-left:4px solid #94a3b8;box-shadow:0 8px 24px #0f172a26;font-family:var(--font, "Inter", sans-serif);font-size:13.5px;color:#334155;animation:global-toast-in .3s ease-out}.global-toast-success{border-left-color:#16a34a}.global-toast-error{border-left-color:#dc2626}.global-toast-info{border-left-color:#2563eb}.global-toast-icon{display:flex;font-size:18px;flex-shrink:0}.global-toast-success .global-toast-icon{color:#16a34a}.global-toast-error .global-toast-icon{color:#dc2626}.global-toast-info .global-toast-icon{color:#2563eb}.global-toast-msg{flex:1;line-height:1.4}.global-toast-close{background:none;border:none;cursor:pointer;color:#94a3b8;font-size:16px;display:flex;padding:2px}.global-toast-close:hover{color:#475569}.global-toast-progress{position:absolute;bottom:0;left:0;height:3px;background:currentColor;opacity:.2;animation:global-toast-timer 4s linear forwards;border-radius:0 0 0 10px}@keyframes global-toast-in{0%{transform:translate(100%);opacity:0}to{transform:translate(0);opacity:1}}@keyframes global-toast-timer{0%{width:100%}to{width:0%}}.confirm-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:9998;background:#0f172a73;animation:confirm-fade-in .15s ease-out}.confirm-dialog-wrapper{position:fixed;top:0;right:0;bottom:0;left:0;z-index:9999;display:flex;align-items:center;justify-content:center;pointer-events:none}.confirm-dialog{pointer-events:auto;width:420px;max-width:92vw;background:#fff;border-radius:12px;box-shadow:0 16px 48px #0f172a33;overflow:hidden;animation:confirm-scale-in .18s ease-out;font-family:var(--font, "Inter", sans-serif)}.confirm-dialog-header{display:flex;align-items:center;gap:10px;padding:16px 20px;background:#f8fafc;border-bottom:1px solid #e2e8f0}.confirm-dialog-icon{display:flex;font-size:20px;color:#dc2626}.confirm-dialog-title{flex:1;font-size:15px;font-weight:600;color:#0f172a}.confirm-dialog-close{background:none;border:none;cursor:pointer;color:#94a3b8;font-size:18px;display:flex;padding:2px}.confirm-dialog-close:hover{color:#475569}.confirm-dialog-body{padding:20px}.confirm-dialog-body p{margin:0;font-size:14px;color:#334155;line-height:1.5}.confirm-dialog-footer{display:flex;justify-content:flex-end;gap:10px;padding:14px 20px;border-top:1px solid #e2e8f0;background:#f8fafc}.confirm-btn{padding:8px 20px;border-radius:8px;font-size:13.5px;font-weight:600;cursor:pointer;border:1px solid transparent;font-family:var(--font, "Inter", sans-serif);transition:all .12s}.confirm-btn-cancel{background:#fff;border-color:#e2e8f0;color:#475569}.confirm-btn-cancel:hover{background:#f1f5f9}.confirm-btn-danger{background:#dc2626;color:#fff}.confirm-btn-danger:hover{background:#b91c1c}.confirm-btn-primary{background:#2563eb;color:#fff}.confirm-btn-primary:hover{background:#1d4ed8}@keyframes confirm-fade-in{0%{opacity:0}to{opacity:1}}@keyframes confirm-scale-in{0%{transform:scale(.95);opacity:0}to{transform:scale(1);opacity:1}}:root{--bg-page: #f1f5f9;--bg-surface: #ffffff;--bg-muted: #f8fafc;--bg-subtle: #f1f5f9;--border: #e2e8f0;--border-strong: #cbd5e1;--text-primary: #0f172a;--text-secondary: #334155;--text-muted: #64748b;--text-faint: #94a3b8;--accent: #0F3A6F;--accent-hover: #0a2d57;--accent-soft: #e8eef6;--sidebar-bg: #0B2A4A;--sidebar-bg-hover: #0f3558;--sidebar-active: #144066;--sidebar-text: rgba(255, 255, 255, .78);--sidebar-text-active: #ffffff;--sidebar-width: 260px;--sidebar-collapsed: 72px;--header-height: 56px;--radius: 12px;--radius-sm: 8px;--radius-full: 9999px;--font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;--shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);--shadow-md: 0 4px 12px rgba(15, 23, 42, .12);--shadow-lg: 0 12px 32px rgba(15, 23, 42, .16);--danger-color: #ef4444}*{margin:0;padding:0;box-sizing:border-box}html{font-size:16px;scroll-behavior:smooth}body{font-family:var(--font);background:var(--sidebar-bg);color:var(--text-primary);min-height:100vh;line-height:1.5;-webkit-font-smoothing:antialiased;overflow:hidden}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}a{text-decoration:none;color:inherit}button{font-family:inherit}input,button,textarea,select{font:inherit}#root{min-height:100vh;width:100%;overflow-x:hidden}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:#f1f1f1}::-webkit-scrollbar-thumb{background:#888;border-radius:4px}::-webkit-scrollbar-thumb:hover{background:#555}
