*{box-sizing:border-box}body{color:#0f172a;background:#f1f5f9;margin:0;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.app-layout{background:#f1f5f9;min-height:100vh;display:flex;overflow:hidden}.sidebar{background:#0f172a;border-right:1px solid #e5e7eb;flex-direction:column;width:260px;min-width:260px;height:100vh;display:flex;position:sticky;top:0}.sidebar h2{letter-spacing:.03em;margin:0;font-size:26px}.sidebar nav{flex-direction:column;gap:8px;display:flex}.sidebar a{color:#cbd5e1;border-radius:10px;padding:10px 12px;font-weight:600;text-decoration:none}.sidebar a:hover,.sidebar a.active{color:#fff;background:#1e293b}.sidebar .logout-button{color:#fff;cursor:pointer;background:#ef4444;border:0;border-radius:10px;width:100%;margin-top:auto;padding:10px 12px;font-weight:700}.sidebar-footer{border-top:1px solid #e5e7eb;margin-top:auto;padding:20px}.sidebar-menu{flex:1;padding:20px 0;overflow-y:auto}.main-content{background:#f8fafc;flex:1;height:100vh;padding:32px;overflow-y:auto}.page-header{justify-content:space-between;align-items:center;margin-bottom:24px;display:flex}.page-header h2,.main-content h2{color:#0f172a;margin:0 0 8px;font-size:30px;font-weight:800}.page-header p{color:#64748b;margin:0}.toolbar{align-items:center;gap:12px;margin-bottom:22px;display:flex}.toolbar input,.toolbar select{background:#fff;border:1px solid #cbd5e1;border-radius:10px;height:42px;padding:0 12px;font-size:14px}.toolbar input{width:280px}.toolbar{flex-wrap:wrap;align-items:flex-end;gap:10px;margin-bottom:20px;display:flex}.toolbar>input[type=text]{flex:260px;min-width:220px;max-width:340px}.toolbar>select{color:#172033;background-color:#fff;border:1px solid #cfd8e6;border-radius:9px;outline:none;height:42px;padding:0 38px 0 12px;font-family:inherit;font-size:14px}.toolbar>select:hover{border-color:#9fb3d1}.toolbar>select:focus{border-color:#4f7fd8;box-shadow:0 0 0 3px #4f7fd824}.patients-grid{grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:18px;display:grid}.patient-card{background:#fff;border:1px solid #e2e8f0;border-left:6px solid #3b82f6;border-radius:16px;padding:20px;box-shadow:0 8px 24px #0f172a14}.patient-card h3{color:#0f172a;margin:0 0 10px;font-size:20px}.patient-card p{color:#64748b;margin:6px 0}.assign-btn,.btn{color:#fff;cursor:pointer;background:#2563eb;border:0;border-radius:10px;padding:9px 14px;font-weight:700}.assign-btn:hover,.btn:hover{background:#1d4ed8}.btn-cancel{background:#ef4444}.pagination{justify-content:center;align-items:center;gap:14px;margin-top:28px;display:flex}.pagination button{color:#fff;cursor:pointer;background:#2563eb;border:0;border-radius:10px;padding:10px 16px;font-weight:700}.pagination button:disabled{opacity:.45;cursor:not-allowed}.page-card{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:18px;box-shadow:0 8px 24px #0f172a14}.patients-table{border-collapse:collapse;table-layout:auto;width:100%}.patients-table th,.patients-table td{text-align:left;vertical-align:middle;border-bottom:1px solid #e2e8f0;padding:14px 12px}.patients-table th{color:#334155;white-space:nowrap;background:#f8fafc;font-weight:800}.status-select{background:#fff;border:1px solid #cbd5e1;border-radius:10px;width:150px;height:38px;padding:0 10px;font-weight:700}.btn{cursor:pointer;white-space:nowrap;border:0;border-radius:10px;height:38px;padding:0 14px;font-weight:800}.called-badge,.pending-badge{border-radius:999px;padding:5px 10px;font-size:12px;font-weight:800;display:inline-block}.called-badge{color:#166534;background:#dcfce7}.pending-badge{color:#92400e;background:#fef3c7}.success-message,.error-message{border-radius:10px;margin-bottom:16px;padding:12px 14px;font-weight:700}.success-message{color:#166534;background:#dcfce7}.error-message{color:#991b1b;background:#fee2e2}.patients-loader{color:#64748b;margin:16px 0;font-weight:700}.modal-backdrop{z-index:1000;background:#0f172a8c;justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;inset:0}.modal{background:#fff;border-radius:18px;width:100%;max-width:560px;padding:24px;box-shadow:0 24px 80px #0f172a59}.modal h3{color:#0f172a;margin:0 0 16px;font-size:22px}.modal label{color:#334155;margin:14px 0 6px;font-weight:700;display:block}.modal input,.modal textarea,.modal select{border:1px solid #cbd5e1;border-radius:10px;width:100%;min-height:42px;padding:10px 12px;font-size:14px}.modal-textarea{resize:vertical;min-height:90px}.modal-actions{justify-content:flex-end;gap:12px;margin-top:20px;display:flex}.modal-actions button{cursor:pointer;border:0;border-radius:10px;padding:10px 16px;font-weight:700}.modal-actions button:first-child{color:#334155;background:#e2e8f0}.modal-actions button:last-child{color:#fff;background:#2563eb}.modal-actions button:disabled{opacity:.5;cursor:not-allowed}.assigned-list{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;margin-top:18px;padding:14px}.assigned-list h4{margin:0 0 10px}.assigned-list ul{margin:0;padding-left:18px}.empty-text{color:#64748b}.filter-tabs{gap:10px;margin:14px 0 18px;display:flex}.filter-tabs button{color:#334155;cursor:pointer;background:#e2e8f0;border:0;border-radius:999px;padding:9px 16px;font-weight:800}.filter-tabs button.active{color:#fff;background:#2563eb}.stats-grid{grid-template-columns:repeat(4,minmax(140px,1fr));gap:14px;margin:18px 0 22px;display:grid}.stat-card{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:18px;box-shadow:0 8px 24px #0f172a0f}.stat-card span{color:#64748b;margin-bottom:8px;font-size:14px;display:block}.stat-card strong{color:#0f172a;font-size:28px}.btn-edit{color:#fff;background:#2563eb}.btn-edit:hover{background:#1d4ed8}.btn-cancel{color:#fff;background:#ef4444}.btn-cancel:hover{background:#dc2626}.page-card{overflow:visible}.patients-table{min-width:1100px}.patients-table th{white-space:nowrap;font-size:14px}.patients-table td{vertical-align:middle}.patients-table td:nth-child(2){color:#0f172a;font-weight:700}.patients-table td:nth-child(5){color:#334155}@media (width<=1200px){.stats-grid{grid-template-columns:repeat(2,minmax(140px,1fr))}}.sidebar-header{align-items:center;gap:14px;margin-bottom:34px;display:flex}.sidebar-logo{width:44px;height:44px}.sidebar-title{color:#fff;font-size:18px;font-weight:800}.sidebar-subtitle{color:#94a3b8;font-size:13px}.actions-cell{text-align:center;width:56px;position:relative}.actions-popover{justify-content:center;display:inline-flex;position:relative}.actions-trigger{color:#fff;cursor:pointer;background:#2563eb;border:0;border-radius:12px;width:38px;height:38px;font-size:22px;font-weight:900;line-height:1}.actions-trigger:hover{background:#1d4ed8}.actions-menu{z-index:999;background:#fff;border:1px solid #e2e8f0;border-radius:14px;min-width:180px;padding:8px;position:absolute;top:44px;right:0;box-shadow:0 18px 40px #0f172a2e}.actions-menu button{text-align:left;cursor:pointer;color:#0f172a;background:0 0;border:0;border-radius:10px;width:100%;padding:10px 12px;font-weight:700}.actions-menu button:hover{background:#f1f5f9}.status-dropdown{display:inline-block;position:relative}.status-badge{cursor:pointer;white-space:nowrap;border:1px solid #0000;border-radius:999px;align-items:center;gap:8px;height:36px;padding:0 12px;font-size:13px;font-weight:800;display:inline-flex}.status-badge:disabled{cursor:default;opacity:.75}.status-chevron{opacity:.65;font-size:11px}.status-dot{border-radius:999px;flex-shrink:0;width:8px;height:8px}.status-menu{z-index:1000;background:#fff;border:1px solid #e2e8f0;border-radius:14px;min-width:210px;padding:8px;position:absolute;top:42px;right:0;box-shadow:0 18px 44px #0f172a2e}.status-menu-item{cursor:pointer;color:#0f172a;text-align:left;background:0 0;border:0;border-radius:10px;align-items:center;gap:10px;width:100%;height:38px;padding:0 10px;font-weight:700;display:flex}.status-menu-item:hover{background:#f1f5f9}.status-badge-orange{color:#b45309;background:#fff7ed;border-color:#fdba74}.status-badge-blue{color:#1d4ed8;background:#eff6ff;border-color:#93c5fd}.status-badge-green{color:#15803d;background:#ecfdf5;border-color:#86efac}.status-badge-red{color:#dc2626;background:#fef2f2;border-color:#fca5a5}.status-badge-gray{color:#475569;background:#f8fafc;border-color:#cbd5e1}.status-badge-purple{color:#7e22ce;background:#faf5ff;border-color:#d8b4fe}.status-dot-orange{background:#f97316}.status-dot-blue{background:#2563eb}.status-dot-green{background:#16a34a}.status-dot-red{background:#dc2626}.status-dot-gray{background:#64748b}.status-dot-purple{background:#9333ea}.section-card{background:#fff;border:1px solid #e2e8f0;border-radius:18px;margin-top:32px;padding:20px;box-shadow:0 8px 24px #0f172a14}.section-header{justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px;display:flex}.section-header h3{color:#0f172a;margin:0;font-size:22px}.section-header h2{color:#064df5;margin:0;font-size:18px}.section-header p{color:#64748b;margin:6px 0 0}.compact-table th,.compact-table td{padding:11px 12px}.table-wrapper{overflow-x:auto}.table-date-input{border:1px solid #cbd5e1;border-radius:10px;height:38px;padding:0 10px;font-weight:700}.patient-name-cell{color:#0f172a;font-weight:800}.missing-doctor-row{background:#fffbeb}.missing-doctor-row td{border-color:#fde68a}.date-range-filter{background:#fff;border:1px solid #d9e1ec;border-radius:10px;align-items:flex-end;gap:8px;min-height:40px;padding:6px 8px;display:inline-flex}.date-filter-field{flex-direction:column;gap:3px;min-width:145px;display:flex}.date-filter-field span{color:#667085;padding-left:2px;font-size:11px;font-weight:600;line-height:1}.date-filter-field input{color:#172033;background:#fff;border:1px solid #cfd8e6;border-radius:7px;outline:none;width:145px;height:36px;padding:0 10px;font-family:inherit;font-size:14px;transition:border-color .2s,box-shadow .2s,background-color .2s}.date-filter-field input:hover{border-color:#9fb3d1}.date-filter-field input:focus{border-color:#4f7fd8;box-shadow:0 0 0 3px #4f7fd824}.date-filter-clear{color:#7a8699;cursor:pointer;background:#f8fafc;border:1px solid #d5dce7;border-radius:7px;flex:0 0 36px;justify-content:center;align-items:center;width:36px;height:36px;margin-bottom:0;padding:0;font-size:20px;font-weight:400;line-height:1;transition:color .2s,border-color .2s,background-color .2s;display:inline-flex}.date-filter-clear:hover{color:#d92d3f;background:#fff1f2;border-color:#f0a0a8}.date-filter-clear:focus-visible{outline:none;box-shadow:0 0 0 3px #d92d3f1f}.date-range-wrapper{flex-direction:column;gap:5px;display:flex}.date-range-title{color:#475467;padding-left:2px;font-size:12px;font-weight:600}.referral-column,.referral-cell{text-align:center;width:120px}.referral-indicator{border-radius:50%;justify-content:center;align-items:center;width:28px;height:28px;font-size:17px;font-weight:700;display:inline-flex}.referral-indicator.has-referral{color:#067647;background:#dcfae6;border:1px solid #abefc6}.referral-indicator.no-referral{color:#98a2b3;background:#f2f4f7;border:1px solid #e4e7ec}.referral-indicator.inactive-referral{color:#b54708;background:#fef0c7;border:1px solid #fedf89}.login-page{background:radial-gradient(circle at 6% 0,#2563eb24,#0000 22%),radial-gradient(circle at 86% 24%,#3b82f61a,#0000 28%),linear-gradient(135deg,#f8fbff 0%,#eef4fb 48%,#e7eef8 100%);justify-content:center;align-items:center;min-height:100vh;padding:32px;display:flex;position:relative;overflow:hidden}.login-page:before{content:"";opacity:.45;pointer-events:none;background-color:#0000;background-image:linear-gradient(#eff6ffc7,#eff6ffc7),url(../../assets/hospital-bg.png);background-position:50%;background-repeat:repeat,repeat;background-size:cover;background-attachment:scroll,scroll;background-origin:padding-box,padding-box;background-clip:border-box,border-box;width:620px;height:520px;position:absolute;bottom:-40px;right:-80px}.login-page:after{content:"";opacity:.35;background-image:radial-gradient(#2563eb 2px,#0000 2px);background-size:18px 18px;width:180px;height:80px;position:absolute;bottom:70px;left:60px}.login-card{z-index:1;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#ffffffeb;border:1px solid #e2e8f0e6;border-radius:24px;width:100%;max-width:460px;min-height:570px;padding:42px 46px 34px;position:relative;box-shadow:0 30px 90px #0f172a29,inset 0 1px #ffffffe6}.login-brand{text-align:center;flex-direction:column;align-items:center;margin-bottom:28px;display:flex}.login-logo{filter:drop-shadow(0 12px 22px #2563eb38);width:96px;height:auto;margin-bottom:18px}.login-brand h1{color:#0f172a;letter-spacing:-.04em;margin:0;font-size:34px;font-weight:900;line-height:1.1}.login-brand p{color:#64748b;margin:8px 0 0;font-size:16px}.login-divider{background:#e2e8f0;height:1px;margin:18px 0 26px;position:relative}.login-divider:after{content:"";background:#2563eb;border-radius:50%;width:9px;height:9px;position:absolute;top:-4px;left:50%;transform:translate(-50%);box-shadow:0 0 0 6px #fff}.login-title{text-align:center;margin-bottom:24px}.login-title h2{color:#0f172a;margin:0;font-size:28px;font-weight:900}.login-title p{color:#64748b;margin:8px 0 0;font-size:16px}.login-card input{color:#0f172a;background:#ffffffdb;border:1px solid #cbd5e1;border-radius:14px;outline:none;width:100%;height:56px;margin-bottom:16px;padding:0 16px;font-size:16px;transition:all .18s}.login-card input::placeholder{color:#64748b}.login-card input:focus{background:#fff;border-color:#2563eb;box-shadow:0 0 0 5px #2563eb1f}.login-card button{color:#fff;cursor:pointer;background:linear-gradient(135deg,#2563eb,#1d4ed8);border:0;border-radius:14px;width:100%;height:58px;margin-top:6px;font-size:16px;font-weight:900;transition:all .18s;box-shadow:0 16px 32px #2563eb42}.login-card button:hover{transform:translateY(-1px);box-shadow:0 20px 38px #2563eb52}.login-card button:disabled{opacity:.65;cursor:not-allowed;transform:none}.login-card .error-message{margin-bottom:16px}@media (width<=640px){.login-card{max-width:100%;min-height:auto;padding:32px 24px}.login-brand h1{font-size:28px}.login-page:before{display:none}}.journey-modal-backdrop{z-index:1200;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#0f172a94;justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;inset:0}.journey-modal{background:#fff;border-radius:20px;width:min(980px,100%);max-height:calc(100vh - 48px);position:relative;overflow-y:auto;box-shadow:0 24px 70px #0f172a47}.journey-modal-close{z-index:2;color:#475467;cursor:pointer;background:#ffffffe6;border:0;border-radius:50%;width:38px;height:38px;font-size:28px;line-height:1;position:absolute;top:16px;right:18px}.journey-modal-close:hover{color:#101828;background:#f2f4f7}.journey-loading{justify-content:center;align-items:center;gap:12px;min-height:360px;display:flex}.journey-header{background:linear-gradient(135deg,#f8fbff 0%,#eef6ff 100%);border-bottom:1px solid #eaecf0;justify-content:space-between;align-items:flex-start;gap:24px;padding:30px 72px 24px 30px;display:flex}.journey-label{color:#175cd3;letter-spacing:.04em;text-transform:uppercase;margin-bottom:6px;font-size:13px;font-weight:700}.journey-header h2{color:#101828;margin:0 0 12px}.journey-patient-meta{color:#475467;flex-wrap:wrap;gap:8px 18px;font-size:14px;display:flex}.journey-current-state{color:#3538cd;text-align:center;background:#eef4ff;border-radius:999px;flex:none;max-width:250px;padding:9px 14px;font-size:13px;font-weight:700}.state-referral_active,.state-admitted{color:#067647;background:#dcfae6}.state-admission_assigned{color:#026aa2;background:#e0f2fe}.state-discharged{color:#344054;background:#f2f4f7}.journey-summary{border-bottom:1px solid #eaecf0;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:20px 30px;display:grid}.journey-summary-card{background:#fff;border:1px solid #e4e7ec;border-radius:12px;padding:14px 16px}.journey-summary-card span{color:#667085;margin-bottom:5px;font-size:13px;display:block}.journey-summary-card strong{color:#101828;font-size:23px}.journey-content{padding:28px 30px 36px}.journey-timeline{flex-direction:column;display:flex}.journey-event{grid-template-columns:46px minmax(0,1fr);gap:14px;display:grid}.journey-event-marker{justify-content:center;display:flex;position:relative}.journey-event-icon{z-index:1;color:#3538cd;background:#eef4ff;border:4px solid #fff;border-radius:50%;justify-content:center;align-items:center;width:38px;height:38px;font-size:16px;font-weight:800;display:flex;position:relative;box-shadow:0 0 0 1px #d0d5dd}.journey-event-icon.status-active,.journey-event-icon.status-completed{color:#067647;background:#dcfae6}.journey-event-icon.status-pending,.journey-event-icon.status-in-progress{color:#b54708;background:#fef0c7}.journey-event-icon.status-cancelled{color:#b42318;background:#fee4e2}.journey-event-line{background:#d0d5dd;width:2px;position:absolute;top:38px;bottom:-18px}.journey-event-card{background:#fff;border:1px solid #e4e7ec;border-radius:14px;margin-bottom:18px;padding:16px 18px;box-shadow:0 2px 8px #1018280a}.journey-event-top{justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.journey-event-top h3{color:#101828;margin:0 0 4px;font-size:16px}.journey-event-top time{color:#667085;font-size:13px}.journey-event-description{color:#344054;margin:12px 0 0}.journey-event-details{color:#475467;gap:6px;margin-top:12px;font-size:13px;display:grid}.journey-event-details strong{color:#344054}.journey-status-badge{color:#344054;background:#f2f4f7;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:700}.journey-status-badge.status-active{color:#067647;background:#dcfae6}.journey-status-badge.status-in_progress,.journey-status-badge.status-job_processing{color:#b54708;background:#fef0c7}.journey-status-badge.status-completed{color:#026aa2;background:#e0f2fe}.journey-status-badge.status-cancelled,.journey-status-badge.status-revoked{color:#b42318;background:#fee4e2}.journey-empty{color:#667085;text-align:center;padding:45px}@media (width<=760px){.journey-modal-backdrop{padding:0}.journey-modal{border-radius:0;width:100%;min-height:100vh;max-height:100vh}.journey-header{flex-direction:column;padding:24px 58px 20px 20px}.journey-current-state{max-width:none}.journey-summary{grid-template-columns:repeat(2,minmax(0,1fr));padding:16px 20px}.journey-content{padding:24px 18px}.journey-event{grid-template-columns:38px minmax(0,1fr);gap:10px}.journey-event-icon{width:32px;height:32px;font-size:14px}.journey-event-line{top:32px}.journey-event-top{flex-direction:column;gap:8px}}.patient-name-button{color:#175cd3;font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;padding:0;font-weight:600}.patient-name-button:hover{color:#004eeb;text-decoration:underline}.patient-name-button:focus-visible{outline-offset:3px;border-radius:4px;outline:2px solid #84adff}.bed-map-page{background:#f4f7f9;min-height:100%;padding:24px}.bed-map-heading{justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:24px;display:flex}.bed-map-heading h1{color:#1f2937;margin:0 0 6px;font-size:28px}.bed-map-heading p{color:#6b7280;margin:0}.bed-refresh-button{color:#fff;cursor:pointer;background:#176b87;border:0;border-radius:8px;min-width:120px;padding:10px 18px;font-weight:600}.bed-refresh-button:disabled{opacity:.65;cursor:default}.bed-map-error{color:#991b1b;background:#fef2f2;border:1px solid #fecaca;border-radius:8px;margin-bottom:20px;padding:14px 16px}.bed-summary-grid{grid-template-columns:repeat(6,minmax(130px,1fr));gap:14px;margin-bottom:22px;display:grid}.bed-summary-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:18px;box-shadow:0 2px 8px #0f172a0d}.bed-summary-card span{color:#6b7280;margin-bottom:8px;font-size:13px;display:block}.bed-summary-card strong{color:#111827;font-size:26px}.bed-map-toolbar{gap:12px;margin-bottom:20px;display:flex}.bed-map-toolbar input,.bed-map-toolbar select{min-height:42px;font:inherit;background:#fff;border:1px solid #d1d5db;border-radius:8px;padding:9px 12px}.bed-map-toolbar input{flex:1}.bed-map-toolbar select{min-width:230px}.bed-departments-grid{grid-template-columns:repeat(auto-fill,minmax(310px,1fr));gap:16px;display:grid}.bed-department-card{text-align:left;cursor:pointer;background:#fff;border:1px solid #e5e7eb;border-left:5px solid #94a3b8;border-radius:12px;width:100%;padding:18px;transition:transform .15s,box-shadow .15s;display:block;box-shadow:0 2px 8px #0f172a0d}.bed-department-card:hover{transform:translateY(-2px);box-shadow:0 8px 20px #0f172a1a}.bed-card-header{justify-content:space-between;align-items:flex-start;gap:10px;min-height:56px;display:flex}.bed-card-header h3{color:#1f2937;margin:0;font-size:17px;line-height:1.35}.bed-status{white-space:nowrap;background:#e5e7eb;border-radius:999px;flex:none;padding:4px 8px;font-size:11px;font-weight:700}.bed-card-main{justify-content:space-between;align-items:flex-end;gap:12px;margin-top:18px;display:flex}.bed-card-count strong{color:#111827;font-size:28px;display:block}.bed-card-count span{color:#6b7280;font-size:13px}.bed-card-percent{color:#374151;font-size:22px;font-weight:700}.bed-progress{background:#e5e7eb;border-radius:999px;height:9px;margin:14px 0;overflow:hidden}.bed-progress-value{border-radius:inherit;background:#64748b;height:100%}.bed-card-stats{grid-template-columns:repeat(3,1fr);gap:8px;display:grid}.bed-card-stats div{background:#f8fafc;border-radius:8px;padding:9px}.bed-card-stats span{color:#6b7280;margin-bottom:3px;font-size:11px;display:block}.bed-card-stats strong{color:#1f2937;font-size:17px}.bed-card-warning{color:#9a3412;background:#fff7ed;border-radius:8px;margin-top:12px;padding:9px 10px;font-size:12px;font-weight:600}.status-over_capacity{border-left-color:#991b1b}.status-over_capacity .bed-progress-value{background:#991b1b}.bed-status.status-over_capacity{color:#991b1b;background:#fee2e2}.status-critical{border-left-color:#dc2626}.status-critical .bed-progress-value{background:#dc2626}.bed-status.status-critical{color:#b91c1c;background:#fee2e2}.status-high{border-left-color:#ea580c}.status-high .bed-progress-value{background:#ea580c}.bed-status.status-high{color:#c2410c;background:#ffedd5}.status-medium{border-left-color:#ca8a04}.status-medium .bed-progress-value{background:#ca8a04}.bed-status.status-medium{color:#854d0e;background:#fef9c3}.status-low{border-left-color:#16a34a}.status-low .bed-progress-value{background:#16a34a}.bed-status.status-low{color:#166534;background:#dcfce7}.bed-map-state{text-align:center;color:#64748b;background:#fff;border:1px dashed #cbd5e1;border-radius:12px;padding:36px}.bed-modal-backdrop{z-index:1000;background:#0f172a99;justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;inset:0}.bed-modal{background:#fff;border-radius:14px;flex-direction:column;width:min(1200px,100%);max-height:90vh;display:flex;overflow:hidden;box-shadow:0 24px 60px #00000040}.bed-modal-header{border-bottom:1px solid #e5e7eb;justify-content:space-between;align-items:flex-start;gap:20px;padding:20px 24px;display:flex}.bed-modal-header h2{color:#1f2937;margin:0 0 6px;font-size:22px}.bed-modal-header p{color:#6b7280;margin:0}.bed-modal-close{color:#475569;cursor:pointer;background:0 0;border:0;font-size:30px;line-height:1}.bed-modal-content{padding:20px 24px;overflow:auto}.bed-modal-message,.bed-modal-error{text-align:center;padding:30px}.bed-modal-error{color:#b91c1c}.bed-patients-table-wrapper{overflow-x:auto}.bed-patients-table{border-collapse:collapse;width:100%}.bed-patients-table th,.bed-patients-table td{text-align:left;vertical-align:top;border-bottom:1px solid #e5e7eb;padding:11px 12px}.bed-patients-table th{color:#475569;text-transform:uppercase;background:#f8fafc;font-size:12px;position:sticky;top:0}.bed-patients-table td{color:#374151;font-size:14px}.bed-patients-table small{color:#6b7280;margin-top:4px;display:block}@media (width<=1100px){.bed-summary-grid{grid-template-columns:repeat(3,1fr)}}@media (width<=700px){.bed-map-page{padding:14px}.bed-map-heading,.bed-map-toolbar{flex-direction:column}.bed-refresh-button,.bed-map-toolbar input,.bed-map-toolbar select{width:100%}.bed-summary-grid{grid-template-columns:repeat(2,1fr)}.bed-departments-grid{grid-template-columns:1fr}.bed-modal-backdrop{padding:0}.bed-modal{border-radius:0;width:100%;height:100%;max-height:none}}.department-overview{background:#f4f7f9;min-height:100%;padding:24px}.overview-header{justify-content:space-between;align-items:flex-start;gap:24px;margin-bottom:22px;display:flex}.overview-header h1{color:#1f2937;margin:0 0 5px;font-size:28px}.overview-header h2{color:#176b87;margin:0 0 6px;font-size:18px;font-weight:600}.overview-header p{color:#6b7280;margin:0;font-size:13px}.overview-refresh-button{color:#fff;min-width:120px;font:inherit;cursor:pointer;background:#176b87;border:0;border-radius:8px;padding:10px 18px;font-weight:600}.overview-refresh-button:disabled{opacity:.65;cursor:default}.overview-error{color:#991b1b;background:#fef2f2;border:1px solid #fecaca;border-radius:9px;margin-bottom:18px;padding:14px 16px}.overview-metrics{grid-template-columns:repeat(6,minmax(130px,1fr));gap:14px;margin-bottom:18px;display:grid}.overview-metric{background:#fff;border:1px solid #e5e7eb;border-radius:12px;min-height:110px;padding:17px;box-shadow:0 2px 8px #0f172a0d}.overview-metric.primary{border-left:5px solid #176b87}.overview-metric span{color:#6b7280;min-height:35px;font-size:13px;line-height:1.35;display:block}.overview-metric strong{color:#111827;margin-top:6px;font-size:30px;display:block}.overview-alerts{gap:12px;margin-bottom:18px;display:flex}.overview-alert{border-radius:9px;flex:1;padding:12px 15px;font-size:14px}.overview-alert.warning{color:#9a3412;background:#fff7ed;border:1px solid #fed7aa}.overview-alert.danger{color:#991b1b;background:#fef2f2;border:1px solid #fecaca}.overview-layout{grid-template-columns:minmax(0,2fr) minmax(300px,.8fr);align-items:start;gap:18px;display:grid}.overview-side-column{gap:18px;display:grid}.overview-panel{background:#fff;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden;box-shadow:0 2px 8px #0f172a0d}.overview-panel-header{border-bottom:1px solid #e5e7eb;justify-content:space-between;align-items:center;gap:18px;padding:16px 18px;display:flex}.overview-panel-header h3{color:#1f2937;margin:0 0 3px;font-size:17px}.overview-panel-header span{color:#6b7280;font-size:12px}.overview-panel-header input{width:min(330px,100%);min-height:38px;font:inherit;border:1px solid #d1d5db;border-radius:8px;padding:8px 11px}.overview-table-wrapper{max-height:590px;overflow:auto}.overview-table{border-collapse:collapse;width:100%}.overview-table th,.overview-table td{text-align:left;vertical-align:top;border-bottom:1px solid #e5e7eb;padding:11px 13px}.overview-table th{z-index:1;color:#64748b;text-transform:uppercase;background:#f8fafc;font-size:11px;position:sticky;top:0}.overview-table td{color:#374151;font-size:13px}.overview-table td strong{color:#1f2937}.overview-table td small{color:#6b7280;text-overflow:ellipsis;white-space:nowrap;max-width:280px;margin-top:4px;display:block;overflow:hidden}.overview-bed{color:#166534;background:#dcfce7;border-radius:6px;padding:4px 7px;font-size:12px;display:inline-block}.overview-bed.missing{color:#991b1b;background:#fee2e2}.overview-upcoming-list{max-height:430px;overflow:auto}.overview-upcoming-item{border-bottom:1px solid #e5e7eb;padding:13px 16px}.overview-upcoming-item:last-child{border-bottom:0}.overview-upcoming-date{color:#176b87;margin-bottom:4px;font-size:12px;font-weight:700}.overview-upcoming-item strong{color:#1f2937;font-size:14px;display:block}.overview-upcoming-item span,.overview-upcoming-item small{color:#6b7280;margin-top:4px;font-size:12px;display:block}.overview-upcoming-item p{color:#475569;margin:7px 0 0;font-size:12px}.overview-conflict-list{padding:8px 16px}.overview-conflict-item{border-bottom:1px solid #e5e7eb;justify-content:space-between;gap:14px;padding:10px 0;display:flex}.overview-conflict-item:last-child{border-bottom:0}.overview-conflict-item span{color:#475569}.overview-conflict-item strong{color:#991b1b}.overview-empty,.overview-empty-cell,.overview-state{color:#64748b;text-align:center;padding:30px}.overview-state{background:#fff;border:1px dashed #cbd5e1;border-radius:12px}@media (width<=1250px){.overview-metrics{grid-template-columns:repeat(3,1fr)}.overview-layout{grid-template-columns:1fr}}@media (width<=720px){.department-overview{padding:14px}.overview-header,.overview-panel-header,.overview-alerts{flex-direction:column;align-items:stretch}.overview-refresh-button,.overview-panel-header input{width:100%}.overview-metrics{grid-template-columns:repeat(2,1fr)}}
