*,:before,:after{box-sizing:border-box;margin:0;padding:0}:root{--primary:#2563eb;--primary-light:#60a5fa;--secondary:#0ea5e9;--success:#16a34a;--warning:#f59e0b;--danger:#dc2626;--bg:#fff;--bg-muted:#f8fafc;--border:#f1f5f9;--text:#0f172a;--text-muted:#64748b;--text-light:#94a3b8;--radius:14px}html,body{height:100%;overflow:hidden}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--text);background:#1a1a2e;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,system-ui,sans-serif;line-height:1.5}#root{height:100%}button{cursor:pointer;font-family:inherit}input,select,textarea{font-family:inherit}a{color:inherit;text-decoration:none}ul,ol{list-style:none}.web-layout{background:#f8fafc;height:100vh;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;display:flex}.web-sidebar{z-index:50;background:#fff;border-right:1px solid #e5e7eb;flex-direction:column;width:240px;display:flex;position:fixed;top:0;bottom:0;left:0}.web-sidebar-header{border-bottom:1px solid #f3f4f6;padding:20px 16px}.web-logo{align-items:center;gap:10px;display:flex}.web-logo-icon{font-size:24px}.web-logo-text{color:#1f2937;letter-spacing:-.5px;font-size:20px;font-weight:800}.web-nav{flex-direction:column;flex:1;gap:4px;padding:12px 8px;display:flex;overflow-y:auto}.web-nav-item{cursor:pointer;color:#6b7280;text-align:left;background:0 0;border:none;border-radius:8px;align-items:center;gap:12px;width:100%;padding:10px 12px;font-size:14px;font-weight:500;transition:all .15s;display:flex}.web-nav-item:hover{color:#1f2937;background:#f3f4f6}.web-nav-item.active{color:#2563eb;background:#eff6ff;font-weight:600}.web-nav-icon{text-align:center;width:24px;font-size:18px}.web-nav-label{font-size:14px}.web-sidebar-footer{border-top:1px solid #f3f4f6;padding:16px}.web-user-info{align-items:center;gap:10px;margin-bottom:10px;display:flex}.web-user-avatar{color:#fff;background:#2563eb;border-radius:50%;justify-content:center;align-items:center;width:36px;height:36px;font-size:14px;font-weight:700;display:flex}.web-user-details{flex:1}.web-user-name{color:#1f2937;margin:0;font-size:13px;font-weight:600}.web-user-role{color:#6b7280;text-transform:capitalize;margin:2px 0 0;font-size:11px}.web-logout-btn{color:#dc2626;cursor:pointer;background:#fff;border:1px solid #e5e7eb;border-radius:6px;width:100%;padding:8px;font-size:13px;font-weight:500;transition:all .15s}.web-logout-btn:hover{background:#fef2f2;border-color:#fecaca}.web-main{flex:1;min-height:100vh;margin-left:240px;padding:24px 32px;overflow-y:auto}@media (width<=768px){.web-sidebar{width:200px}.web-main{margin-left:200px;padding:16px}}.web-page{max-width:1200px}.web-page-header{justify-content:space-between;align-items:center;margin-bottom:24px;display:flex}.web-page-title{color:#1f2937;margin:0;font-size:24px;font-weight:700}.web-page-subtitle{color:#6b7280;margin:4px 0 0;font-size:14px}.web-btn-primary{color:#fff;cursor:pointer;background:#2563eb;border:none;border-radius:8px;padding:10px 20px;font-size:14px;font-weight:600;transition:all .15s}.web-btn-primary:hover{background:#1d4ed8}.web-btn-primary.emergency{background:#dc2626}.web-btn-primary.emergency:hover{background:#b91c1c}.web-btn-primary:disabled{opacity:.6;cursor:not-allowed}.web-btn-primary.full-width{width:100%;margin-top:16px;padding:14px;font-size:15px}.web-btn-secondary{color:#374151;cursor:pointer;background:#fff;border:1px solid #d1d5db;border-radius:8px;padding:10px 20px;font-size:14px;font-weight:500;transition:all .15s}.web-btn-secondary:hover{background:#f9fafb}.web-btn-small{color:#fff;cursor:pointer;background:#2563eb;border:none;border-radius:6px;padding:6px 14px;font-size:13px;font-weight:500}.web-btn-small:hover{background:#1d4ed8}.web-btn-small.secondary{color:#374151;background:#fff;border:1px solid #d1d5db}.web-btn-small.secondary:hover{background:#f9fafb}.web-filters{justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px;display:flex}.web-filter-pills{gap:8px;display:flex}.web-filter-pill{color:#6b7280;cursor:pointer;background:#fff;border:1px solid #e5e7eb;border-radius:20px;padding:7px 14px;font-size:13px;font-weight:500;transition:all .15s}.web-filter-pill:hover{color:#2563eb;border-color:#2563eb}.web-filter-pill.active{color:#2563eb;background:#eff6ff;border-color:#2563eb;font-weight:600}.web-search-input{border:1px solid #e5e7eb;border-radius:8px;outline:none;width:260px;padding:9px 14px;font-size:14px;transition:border-color .15s}.web-search-input:focus{border-color:#2563eb}.web-table-container{background:#fff;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden}.web-table{border-collapse:collapse;width:100%;font-size:14px}.web-table th{text-align:left;color:#6b7280;text-transform:uppercase;letter-spacing:.5px;background:#f9fafb;border-bottom:1px solid #e5e7eb;padding:12px 16px;font-size:12px;font-weight:600}.web-table td{color:#374151;border-bottom:1px solid #f3f4f6;padding:12px 16px}.web-table tr:last-child td{border-bottom:none}.web-table tr:hover td{background:#f9fafb}.web-table tr.emergency-row td{background:#fef2f2}.web-table tr.emergency-row:hover td{background:#fee2e2}.web-token{color:#374151;background:#f3f4f6;border-radius:8px;justify-content:center;align-items:center;width:36px;height:36px;font-size:12px;font-weight:700;display:inline-flex}.web-token.emergency{color:#dc2626;background:#fee2e2}.web-token.done{color:#065f46;background:#d1fae5}.web-patient-name{color:#1f2937;font-weight:600}.web-emergency-badge{color:#dc2626;background:#fee2e2;border-radius:4px;margin-left:8px;padding:2px 6px;font-size:10px;font-weight:700;display:inline-block}.web-status-badge{border-radius:12px;padding:4px 10px;font-size:11px;font-weight:600}.web-status-badge.waiting{color:#92400e;background:#fef3c7}.web-status-badge.done{color:#065f46;background:#d1fae5}.web-actions{gap:6px;display:flex}.web-action-btn{cursor:pointer;background:#fff;border:1px solid #e5e7eb;border-radius:6px;padding:6px 8px;font-size:14px;transition:all .15s}.web-action-btn:hover{background:#f3f4f6}.web-loading{text-align:center;color:#9ca3af;padding:60px;font-size:14px}.web-empty{text-align:center;color:#9ca3af;padding:60px}.web-empty p:first-child{margin-bottom:8px;font-size:40px}.web-empty-text{color:#9ca3af;font-size:14px}.web-modal-overlay{z-index:1000;background:#0006;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.web-modal{background:#fff;border-radius:16px;width:680px;max-height:90vh;padding:24px;overflow-y:auto;box-shadow:0 20px 60px #0003}.web-modal-header{justify-content:space-between;align-items:center;margin-bottom:20px;display:flex}.web-modal-header h2{margin:0;font-size:20px;font-weight:700}.web-modal-close{cursor:pointer;color:#6b7280;background:0 0;border:none;font-size:22px}.web-form{flex-direction:column;gap:16px;display:flex}.web-form-row{gap:12px;display:grid}.web-form-row.two{grid-template-columns:1fr 1fr}.web-form-row.three{grid-template-columns:1fr 1fr 1fr}.web-form-group{flex-direction:column;gap:4px;display:flex}.web-form-group label{color:#374151;font-size:12px;font-weight:600}.web-form-actions{justify-content:flex-end;gap:10px;margin-top:8px;display:flex}.web-input{box-sizing:border-box;border:1px solid #d1d5db;border-radius:8px;outline:none;width:100%;padding:10px 12px;font-size:14px;transition:border-color .15s}.web-input:focus{border-color:#2563eb}.web-input.small{padding:8px 10px;font-size:13px}.web-textarea{resize:vertical;box-sizing:border-box;border:1px solid #d1d5db;border-radius:8px;outline:none;width:100%;padding:10px 12px;font-size:14px}.web-textarea:focus{border-color:#2563eb}.web-error{color:#991b1b;background:#fee2e2;border-radius:8px;margin-bottom:8px;padding:10px 14px;font-size:13px}.web-emergency-toggle{cursor:pointer;border:1px solid #e5e7eb;border-radius:10px;justify-content:space-between;align-items:center;padding:12px 16px;transition:all .15s;display:flex}.web-emergency-toggle:hover{border-color:#fca5a5}.web-emergency-toggle.active{background:#fef2f2;border-color:#dc2626}.web-fee-label{color:#6b7280;font-size:13px}.web-search-dropdown{background:#fff;border:1px solid #e5e7eb;border-radius:8px;max-height:160px;margin-top:4px;overflow-y:auto;box-shadow:0 4px 12px #0000001a}.web-search-result{text-align:left;cursor:pointer;background:0 0;border:none;border-bottom:1px solid #f3f4f6;width:100%;padding:10px 14px;font-size:13px;display:block}.web-search-result:hover{background:#f9fafb}.web-confirmation{text-align:center;max-width:500px;margin:40px auto}.web-confirmation-icon{border-radius:50%;justify-content:center;align-items:center;width:60px;height:60px;margin:0 auto 16px;font-size:28px;display:flex}.web-confirmation h2{margin:0 0 20px;font-size:20px}.web-confirmation-card{text-align:left;background:#f9fafb;border-radius:12px;margin-bottom:20px;padding:20px}.web-confirmation-row{border-bottom:1px solid #e5e7eb;justify-content:space-between;padding:8px 0;font-size:14px;display:flex}.web-confirmation-row:last-child{border-bottom:none}.web-confirmation-row span:first-child{color:#6b7280}.web-confirmation-row span:last-child{color:#1f2937;font-weight:600}.web-token-large{color:#2563eb;font-size:24px;font-weight:800}.web-confirmation-actions{justify-content:center;gap:12px;display:flex}.web-dashboard-stats{flex-wrap:wrap;gap:16px;margin-bottom:24px;display:flex}.web-stat-card{text-align:center;background:#fff;border:1px solid #e5e7eb;border-radius:12px;flex:1;min-width:140px;padding:16px 20px}.web-stat-card.emergency{background:#fef2f2;border-color:#fecaca}.web-stat-card.amount{background:#f0fdf4;border-color:#bbf7d0}.web-stat-number{color:#1f2937;font-size:24px;font-weight:700;display:block}.web-stat-card.emergency .web-stat-number{color:#dc2626}.web-stat-card.amount .web-stat-number{color:#16a34a}.web-stat-label{color:#6b7280;margin-top:4px;font-size:12px;display:block}.web-table-row-clickable{cursor:pointer;transition:background .15s}.web-table-row-clickable:hover{background:#f0f9ff}.web-edit-btn{color:#2563eb;cursor:pointer;white-space:nowrap;background:#eff6ff;border:1px solid #bfdbfe;border-radius:6px;padding:6px 14px;font-size:12px;font-weight:600}.web-edit-btn:hover{background:#dbeafe}.web-patient-profile{padding:0 0 16px}.web-profile-section{margin-bottom:20px}.web-profile-section h3{color:#374151;border-bottom:1px solid #f3f4f6;margin:0 0 12px;padding-bottom:8px;font-size:14px;font-weight:700}.web-profile-grid{grid-template-columns:1fr 1fr;gap:10px;display:grid}.web-profile-item{flex-direction:column;gap:2px;display:flex}.web-profile-label{color:#9ca3af;text-transform:uppercase;font-size:11px;font-weight:600}.web-profile-value{color:#1f2937;font-size:14px;font-weight:500}.web-visit-history{flex-direction:column;gap:10px;max-height:300px;display:flex;overflow-y:auto}.web-visit-card{background:#f9fafb;border:1px solid #e5e7eb;border-radius:8px;padding:12px}.web-visit-header{justify-content:space-between;align-items:center;margin-bottom:6px;display:flex}.web-visit-status{color:#065f46;background:#d1fae5;border-radius:4px;padding:2px 8px;font-size:11px;font-weight:600}.web-visit-detail{color:#4b5563;margin:4px 0 0;font-size:13px;line-height:1.4}.web-empty-sub{color:#9ca3af;margin-top:4px;font-size:14px}.web-print-slip{background:#fff;border:1px solid #e5e7eb;border-radius:12px;max-width:700px;margin:0 auto;padding:32px}.slip-header{text-align:center;border-bottom:2px solid #1f2937;margin-bottom:16px;padding-bottom:12px}.slip-hospital-name{color:#1f2937;margin:0;font-size:22px;font-weight:800}.slip-hospital-address,.slip-hospital-phone{color:#4b5563;margin:2px 0;font-size:13px}.slip-title{text-align:center;color:#1f2937;text-transform:uppercase;letter-spacing:1px;background:#f3f4f6;border-radius:4px;margin-bottom:16px;padding:8px;font-size:16px;font-weight:700}.slip-token-row{grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:16px;display:grid}.slip-token-box{text-align:center;border:1px solid #d1d5db;border-radius:8px;padding:10px 8px}.slip-token-label{color:#6b7280;text-transform:uppercase;font-size:11px;display:block}.slip-token-value{color:#1f2937;margin-top:2px;font-size:18px;font-weight:700;display:block}.slip-emergency-banner{color:#991b1b;text-align:center;background:#fee2e2;border:1px solid #fecaca;border-radius:6px;margin-bottom:16px;padding:8px;font-size:14px;font-weight:700}.slip-details-table{border-collapse:collapse;width:100%;margin-bottom:20px}.slip-details-table tr{border-bottom:1px solid #f3f4f6}.slip-details-table td{padding:10px 12px;font-size:14px}.slip-label{color:#374151;width:160px;font-weight:600}.slip-value{color:#1f2937}.slip-footer{text-align:center;border-top:1px dashed #d1d5db;margin-bottom:20px;padding-top:12px}.slip-footer p{color:#6b7280;margin:0;font-size:12px;font-style:italic}.slip-actions{justify-content:center;gap:12px;display:flex}@media print{.no-print,.web-sidebar,.web-layout>aside{display:none!important}.web-main{margin:0!important;padding:0!important}.web-print-slip{box-shadow:none;border:none;max-width:100%;padding:16px}.slip-header{border-bottom:2px solid #000}}.web-next-patient{color:#fff;cursor:pointer;background:linear-gradient(135deg,#2563eb,#1d4ed8);border-radius:12px;justify-content:space-between;align-items:center;margin-bottom:24px;padding:16px 20px;transition:all .2s;display:flex}.web-next-patient:hover{transform:translateY(-1px);box-shadow:0 8px 20px #2563eb4d}.web-next-patient.emergency{background:linear-gradient(135deg,#dc2626,#b91c1c)}.web-next-patient.emergency:hover{box-shadow:0 8px 20px #dc26264d}.web-next-label{opacity:.8;letter-spacing:1px;font-size:11px;font-weight:600;position:absolute;top:16px;left:20px}.web-next-info{align-items:center;gap:16px;display:flex}.web-next-token{opacity:.9;font-size:28px;font-weight:800}.web-next-name{margin:0;font-size:18px;font-weight:700}.web-next-meta{opacity:.8;margin:2px 0 0;font-size:13px}.web-next-arrow{opacity:.9;font-size:14px;font-weight:600}.web-next-patient{padding-top:36px;position:relative}.web-consultation-layout{grid-template-columns:1fr 1.4fr;gap:24px;margin-top:20px;display:grid}.web-panel{background:#fff;border:1px solid #e5e7eb;border-radius:12px;max-height:calc(100vh - 200px);padding:20px;overflow-y:auto}.web-panel h3{color:#1f2937;border-bottom:1px solid #f3f4f6;margin:0 0 16px;padding-bottom:12px;font-size:16px;font-weight:700}.web-patient-header{background:#fff;border:1px solid #e5e7eb;border-radius:12px;align-items:center;gap:16px;padding:16px 20px;display:flex}.web-back-btn{cursor:pointer;color:#374151;background:#fff;border:1px solid #e5e7eb;border-radius:6px;padding:8px 12px;font-size:14px}.web-back-btn:hover{background:#f9fafb}.web-patient-summary h2{color:#1f2937;margin:0;font-size:18px}.web-patient-summary p{color:#6b7280;margin:4px 0 0;font-size:13px}.web-visit-list{flex-direction:column;gap:12px;display:flex}.web-visit-card{border:1px solid #f3f4f6;border-radius:8px;padding:14px;font-size:13px;line-height:1.5}.web-visit-card p{color:#374151;margin:4px 0}.web-visit-card strong{color:#1f2937}.web-visit-header{margin-bottom:8px}.web-visit-date{color:#2563eb;font-size:12px;font-weight:600}.web-section{margin-bottom:16px}.web-section label{color:#374151;margin-bottom:6px;font-size:12px;font-weight:600;display:block}.web-chips{flex-wrap:wrap;gap:6px;margin-bottom:8px;display:flex}.web-chip{color:#6b7280;cursor:pointer;background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:5px 10px;font-size:12px;transition:all .15s}.web-chip:hover{color:#2563eb;border-color:#2563eb}.web-chip.active{color:#2563eb;background:#eff6ff;border-color:#2563eb;font-weight:600}.web-vitals-grid{grid-template-columns:repeat(3,1fr);gap:8px;display:grid}.web-medicine-row{grid-template-columns:2fr 1fr 1fr 1.5fr auto;align-items:center;gap:6px;margin-bottom:8px;display:grid}.web-remove-btn{color:#dc2626;cursor:pointer;background:#fee2e2;border:none;border-radius:6px;padding:6px 10px;font-size:14px}.web-remove-btn:hover{background:#fecaca}.date-strip{justify-content:center;align-items:center;gap:16px;padding:8px;display:flex}.date-nav{color:#64748b;cursor:pointer;background:0 0;border:none;padding:4px 8px;font-size:20px}.date-label{color:#0f172a;font-size:14px;font-weight:600}.queue-list{flex-direction:column;gap:8px;display:flex}.queue-item{background:#fff;border:1px solid #f1f5f9;border-radius:14px;align-items:center;gap:12px;padding:14px;transition:all .2s;display:flex}.queue-item.current{background:#eff6ff;border-color:#2563eb}.queue-item.next{background:#f0fdf4;border-color:#d1fae5}.queue-number{color:#64748b;background:#f1f5f9;border-radius:8px;justify-content:center;align-items:center;width:28px;height:28px;font-size:12px;font-weight:700;display:flex}.queue-item.current .queue-number{color:#fff;background:#2563eb}.queue-info{flex:1}.queue-patient{color:#0f172a;font-size:14px;font-weight:600}.queue-meta{color:#64748b;margin-top:2px;font-size:11px}.queue-right{flex-direction:column;align-items:flex-end;gap:4px;display:flex}.queue-time{color:#0f172a;font-size:12px;font-weight:500}.queue-status{font-size:10px;font-weight:600}.queue-status.current{color:#2563eb}.queue-status.next{color:#16a34a}.queue-status.waiting{color:#94a3b8}.revenue-strip{background:#f8fafc;border-radius:14px;justify-content:space-around;align-items:center;padding:16px;display:flex}.revenue-item{flex-direction:column;align-items:center;gap:2px;display:flex}.rev-label{color:#64748b;font-size:11px}.rev-value{color:#0f172a;font-size:16px;font-weight:700}.rev-value.pending{color:#d97706}.rev-value.collected{color:#16a34a}.rev-divider{background:#e2e8f0;width:1px;height:32px}.payment-methods{gap:8px;display:flex;overflow-x:auto}.payment-methods::-webkit-scrollbar{display:none}.pay-method{color:#64748b;cursor:pointer;white-space:nowrap;background:#fff;border:1px solid #e2e8f0;border-radius:20px;padding:7px 14px;font-size:12px;font-weight:500}.pay-method.active{color:#fff;background:#0f172a;border-color:#0f172a}.invoice-list{flex-direction:column;gap:8px;display:flex}.invoice-card{background:#fff;border:1px solid #f1f5f9;border-radius:14px;justify-content:space-between;align-items:center;padding:14px;display:flex}.invoice-patient{color:#0f172a;font-size:14px;font-weight:600}.invoice-meta{color:#94a3b8;margin-top:2px;font-size:11px}.invoice-right{flex-direction:column;align-items:flex-end;gap:4px;display:flex}.invoice-amount{color:#0f172a;font-size:15px;font-weight:700}.invoice-status{text-transform:capitalize;border-radius:6px;padding:3px 8px;font-size:10px;font-weight:600}.invoice-status.paid{color:#16a34a;background:#f0fdf4}.invoice-status.pending{color:#d97706;background:#fefce8}.invoice-status.partial{color:#2563eb;background:#eff6ff}.module-grid{flex-direction:column;gap:8px;display:flex}.module-card{cursor:pointer;text-align:left;background:#fff;border:1px solid #f1f5f9;border-radius:14px;align-items:center;gap:14px;width:100%;padding:16px;transition:all .2s;display:flex}.module-card:active{background:#f8fafc;transform:scale(.99)}.module-icon{background:#f8fafc;border-radius:12px;justify-content:center;align-items:center;width:44px;height:44px;font-size:24px;display:flex}.module-info{flex:1}.module-label{color:#0f172a;font-size:14px;font-weight:600}.module-desc{color:#94a3b8;margin-top:2px;font-size:11px}.module-arrow{color:#94a3b8;font-size:18px}.role-switcher-section{background:linear-gradient(135deg,#eef2ff,#f0f9ff);border:1px solid #c7d2fe;border-radius:14px;margin-bottom:20px;padding:14px}.switcher-title{color:#334155;margin:0 0 10px;font-size:13px;font-weight:600}.current-role-badge{color:#fff;text-transform:capitalize;background:#2563eb;border-radius:6px;margin-left:6px;padding:2px 8px;font-size:10px}.role-chips{flex-wrap:wrap;gap:8px;display:flex}.role-chip{color:#334155;cursor:pointer;background:#fff;border:1.5px solid #e2e8f0;border-radius:10px;align-items:center;gap:6px;padding:8px 12px;font-size:12px;font-weight:500;transition:all .2s;display:flex}.role-chip:active{transform:scale(.95)}.role-chip.active{border-color:var(--chip-color,#2563eb);background:#eff6ff;font-weight:600;box-shadow:0 0 0 2px #2563eb1a}
