h1:focus { outline: none; }

#blazor-error-ui {
    background: lightyellow; bottom: 0; box-shadow: 0 -1px 2px rgba(0,0,0,0.2);
    display: none; left: 0; padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed; width: 100%; z-index: 1000;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.75rem; top: 0.5rem; }
.blazor-error-boundary { background: #b32121; padding: 1rem 1rem 1rem 3.7rem; color: white; }
.blazor-error-boundary::after { content: "An error has occurred." }

/* ===== LAYOUT — LIGHT THEME ===== */
.rz-layout { background: #f8fafc !important; min-height: 100vh; }
.rz-header { display: none !important; }
.rz-footer { display: none !important; }
.rz-body { background: #f8fafc !important; margin: 0 !important; padding: 0 !important; border-radius: 0 !important; }

/* ===== SIDEBAR — WHITE ===== */
.rz-sidebar {
    background: #ffffff !important;
    border-right: 1px solid #e2e8f0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    width: 220px !important;
    min-width: 220px !important;
}
.rz-sidebar .rz-panel-menu { background: transparent !important; padding: 8px 0 !important; }
.rz-navigation-item-wrapper { padding: 2px 12px !important; }
.rz-navigation-item {
    border-radius: 8px !important;
    color: #64748b !important;
    padding: 9px 12px !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    transition: all 0.1s !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}
.rz-navigation-item:hover { background: #f1f5f9 !important; color: #1e293b !important; }
.rz-navigation-item.rz-navigation-item-active { background: #eff6ff !important; color: #2563eb !important; font-weight: 600 !important; }
.rz-navigation-item-icon-children, .rz-navigation-item-icon { color: inherit !important; font-size: 18px !important; }
.rz-navigation-item-text { color: inherit !important; }

/* ===== SIDEBAR BRAND ===== */
.sidebar-brand {
    display: flex; align-items: center; gap: 10px;
    padding: 16px 16px 12px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 4px;
}
.brand-icon {
    width: 34px; height: 34px; background: #2563eb;
    border-radius: 8px; display: flex; align-items: center;
    justify-content: center; color: white; font-weight: 700;
    font-size: 16px; flex-shrink: 0;
}
.brand-name { color: #0f172a; font-weight: 700; font-size: 0.95rem; line-height: 1.2; }
.brand-sub { color: #94a3b8; font-size: 0.68rem; font-weight: 400; }

/* ===== SIDEBAR BOTTOM USER ===== */
.sidebar-user {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid #e2e8f0;
    margin-top: auto;
}
.sidebar-avatar {
    width: 32px; height: 32px; background: #2563eb;
    border-radius: 50%; display: flex; align-items: center;
    justify-content: center; color: white; font-weight: 700;
    font-size: 0.78rem; flex-shrink: 0;
}
.sidebar-user-name { font-weight: 600; color: #0f172a; font-size: 0.82rem; line-height: 1.2; }
.sidebar-user-role { color: #94a3b8; font-size: 0.7rem; }
.sidebar-signout { display: flex; align-items: center; gap: 8px; padding: 10px 16px; color: #64748b; font-size: 0.82rem; cursor: pointer; border-top: 1px solid #f1f5f9; }
.sidebar-signout:hover { color: #ef4444; }

/* ===== PAGE ===== */
.page-wrapper { padding: 28px 32px; max-width: 1400px; }
.page-header { margin-bottom: 22px; }
.page-header h1 { font-size: 1.5rem; font-weight: 700; color: #0f172a; margin: 0 0 3px; }
.page-header p { color: #64748b; font-size: 0.875rem; margin: 0; }
.page-header-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.page-last-updated { font-size: 0.78rem; color: #94a3b8; margin-top: 8px; }
.btn-group { display: flex; gap: 8px; flex-shrink: 0; margin-top: 4px; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 8px; font-size: 0.875rem; font-weight: 500; cursor: pointer; border: 1px solid transparent; transition: all 0.15s; text-decoration: none; line-height: 1.4; }
.btn-primary { background: #2563eb; color: white; border-color: #2563eb; }
.btn-primary:hover { background: #1d4ed8; border-color: #1d4ed8; color: white; }
.btn-secondary { background: white; color: #374151; border-color: #d1d5db; }
.btn-secondary:hover { background: #f9fafb; color: #111827; }
.btn-danger { background: #ef4444; color: white; border-color: #ef4444; }
.btn-danger:hover { background: #dc2626; color: white; }
.btn-ghost { background: transparent; color: #64748b; border-color: transparent; }
.btn-ghost:hover { background: #f1f5f9; color: #0f172a; }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; }
.btn-xs { padding: 4px 10px; font-size: 0.75rem; }

/* ===== CARDS ===== */
.card { background: white; border-radius: 12px; border: 1px solid #e2e8f0; padding: 20px; margin-bottom: 16px; }
.card-header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.card-title { font-size: 0.95rem; font-weight: 600; color: #0f172a; margin: 0; }
.card-sub { font-size: 0.78rem; color: #94a3b8; margin: 2px 0 0; }
.view-all-link { font-size: 0.8rem; color: #2563eb; text-decoration: none; display: flex; align-items: center; gap: 3px; font-weight: 500; }
.view-all-link:hover { text-decoration: underline; }

/* ===== STAT CARDS ===== */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat-card {
    background: white; border-radius: 12px; border: 1px solid #e2e8f0;
    padding: 18px 20px; display: flex; align-items: flex-start; justify-content: space-between;
}
.stat-card.alert { border-color: #fca5a5; background: #fff5f5; }
.stat-card.warn { border-color: #fcd34d; background: #fffbeb; }
.stat-label { font-size: 0.72rem; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
.stat-value { font-size: 1.75rem; font-weight: 700; color: #0f172a; line-height: 1.1; }
.stat-sub { font-size: 0.73rem; color: #94a3b8; margin-top: 3px; }
.stat-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-icon.blue { background: #dbeafe; color: #2563eb; }
.stat-icon.green { background: #dcfce7; color: #16a34a; }
.stat-icon.red { background: #fee2e2; color: #dc2626; }
.stat-icon.orange { background: #fed7aa; color: #ea580c; }
.stat-icon.purple { background: #ede9fe; color: #7c3aed; }
.stat-icon span { font-size: 18px; }

/* ===== BADGES & PILLS ===== */
.badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 20px; font-size: 0.72rem; font-weight: 600; }
.badge-critical { background: #fee2e2; color: #b91c1c; }
.badge-urgent { background: #ffedd5; color: #c2410c; }
.badge-normal { background: #f1f5f9; color: #475569; }
.badge-success { background: #dcfce7; color: #15803d; }
.badge-warning { background: #fef9c3; color: #a16207; }
.badge-blue { background: #dbeafe; color: #1d4ed8; }
.badge-purple { background: #ede9fe; color: #6d28d9; }

/* ===== TABLES ===== */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { text-align: left; padding: 11px 14px; font-size: 0.73rem; font-weight: 600; color: #64748b; border-bottom: 1px solid #e2e8f0; white-space: nowrap; text-transform: uppercase; letter-spacing: 0.04em; background: #f8fafc; }
.data-table th:first-child { border-radius: 8px 0 0 0; }
.data-table th:last-child { border-radius: 0 8px 0 0; }
.data-table td { padding: 13px 14px; border-bottom: 1px solid #f1f5f9; font-size: 0.84rem; color: #374151; vertical-align: middle; }
.data-table tr:hover td { background: #f8fafc; }
.data-table tr:last-child td { border-bottom: none; }

/* ===== STAFF AVATAR ===== */
.staff-avatar { width: 32px; height: 32px; border-radius: 50%; background: #2563eb; color: white; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; flex-shrink: 0; }
.staff-name-cell { display: flex; align-items: center; gap: 10px; }
.staff-name { font-weight: 600; color: #0f172a; font-size: 0.84rem; }
.staff-email { font-size: 0.75rem; color: #94a3b8; }

/* ===== ROLE PILLS ===== */
.role-pill { display: inline-flex; padding: 3px 10px; border-radius: 20px; font-size: 0.72rem; font-weight: 600; }
.role-pill.admin { background: #ede9fe; color: #6d28d9; }
.role-pill.manager { background: #dbeafe; color: #1d4ed8; }
.role-pill.staff { background: #dcfce7; color: #15803d; }

/* ===== SEARCH & FILTERS ===== */
.search-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.search-input { padding: 9px 14px 9px 36px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 0.875rem; color: #0f172a; background: white; width: 280px; }
.search-input:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.search-wrap { position: relative; }
.search-wrap .material-icons { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 16px; }
.filter-sel { padding: 8px 12px; border: 1px solid #e2e8f0; border-radius: 8px; background: white; font-size: 0.875rem; color: #374151; cursor: pointer; }
.filter-sel:focus { outline: none; border-color: #2563eb; }

/* ===== FORM ELEMENTS ===== */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 0.8rem; font-weight: 600; color: #374151; margin-bottom: 6px; }
.form-control { width: 100%; padding: 9px 12px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 0.875rem; color: #0f172a; background: white; box-sizing: border-box; }
.form-control:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

/* ===== TABS ===== */
.tab-bar { display: flex; gap: 0; border-bottom: 1px solid #e2e8f0; margin-bottom: 20px; }
.tab-btn { padding: 10px 18px; border: none; background: none; font-size: 0.875rem; font-weight: 500; color: #64748b; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all 0.15s; }
.tab-btn.active { color: #2563eb; border-bottom-color: #2563eb; font-weight: 600; }
.tab-btn:hover:not(.active) { color: #374151; }

/* ===== ROTA VIEW ===== */
.rota-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.date-nav { display: flex; align-items: center; gap: 6px; }
.nav-btn { width: 32px; height: 32px; border: 1px solid #e2e8f0; background: white; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #64748b; transition: all 0.15s; }
.nav-btn:hover { background: #f1f5f9; border-color: #cbd5e1; }
.date-label { font-weight: 600; font-size: 0.9rem; color: #0f172a; min-width: 175px; text-align: center; }
.today-btn { padding: 7px 14px; border: 1px solid #e2e8f0; background: white; border-radius: 8px; font-size: 0.8rem; font-weight: 500; cursor: pointer; color: #374151; transition: all 0.15s; }
.today-btn:hover { background: #f1f5f9; }

.rota-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.day-header { text-align: center; padding: 8px 4px 10px; border-bottom: 2px solid #e2e8f0; margin-bottom: 6px; }
.day-header.today { border-bottom-color: #2563eb; }
.day-col { min-height: 220px; display: flex; flex-direction: column; gap: 6px; padding: 4px 2px; border-radius: 8px; transition: all 0.15s; }
.day-col.drag-over { background: #eff6ff; outline: 2px dashed #2563eb; }
.no-shifts-msg { color: #cbd5e1; font-size: 0.72rem; text-align: center; margin-top: 28px; display: flex; flex-direction: column; align-items: center; gap: 4px; }

/* ===== SIDE PANEL ===== */
.side-panel-overlay { position:fixed;inset:0;background:rgba(15,23,42,0.3);z-index:200;backdrop-filter:blur(2px); }
.side-panel { position:fixed;top:0;right:0;width:400px;height:100vh;background:white;z-index:201;display:flex;flex-direction:column;box-shadow:-4px 0 24px rgba(0,0,0,0.12);border-left:1px solid #e2e8f0; }
.side-panel-header { display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid #e2e8f0;flex-shrink:0; }
.side-panel-body { flex:1;overflow-y:auto;padding:20px; }
.side-panel-footer { display:flex;gap:10px;justify-content:flex-end;padding:16px 20px;border-top:1px solid #e2e8f0;flex-shrink:0; }

/* ===== ADD SHIFT BUTTON (in day column) ===== */
.add-shift-btn { width:100%;margin-top:4px;padding:7px 0;border:1.5px dashed #cbd5e1;background:transparent;border-radius:8px;font-size:0.75rem;color:#94a3b8;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:4px;transition:all 0.15s; }
.add-shift-btn:hover { border-color:#2563eb;color:#2563eb;background:#eff6ff; }

/* ===== SHIFT ACTION BUTTONS ===== */
.shift-action-btn { flex:1;padding:4px 0;border:1px solid #e2e8f0;background:white;border-radius:6px;cursor:pointer;display:flex;align-items:center;justify-content:center;color:#64748b;transition:all 0.15s; }
.shift-action-btn:hover { background:#f1f5f9;color:#0f172a;border-color:#cbd5e1; }
.shift-action-btn.danger:hover { background:#fff5f5;color:#dc2626;border-color:#fca5a5; }

/* ===== SHIFT CARDS ===== */
.shift-card {
    background: white; border-radius: 8px; border: 1px solid #e2e8f0;
    padding: 9px 10px; cursor: grab; transition: all 0.15s; position: relative;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.shift-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); transform: translateY(-1px); border-color: #cbd5e1; }
.shift-card:active { cursor: grabbing; }
.shift-card.unfilled { background: #fff5f5; border-color: #fca5a5; }
.shift-card.night { background: #1e1b4b; border-color: #3730a3; }
.shift-card.night .shift-time, .shift-card.night .shift-staff-name { color: #c7d2fe; }
.shift-card.night .dept-tag { background: #3730a3; color: #e0e7ff; }
.shift-card.evening { background: #fffbeb; border-color: #fcd34d; }
.shift-card.evening .dept-tag { background: #fef3c7; color: #92400e; }
.shift-card.drag-source { opacity: 0.4; transform: none !important; box-shadow: none !important; }
.dept-tag { font-size: 0.65rem; font-weight: 700; background: #f1f5f9; color: #475569; padding: 2px 6px; border-radius: 4px; display: inline-block; }
.shift-time { color: #64748b; font-size: 0.7rem; margin: 3px 0 2px; display: flex; align-items: center; gap: 3px; }
.shift-staff-name { color: #374151; font-size: 0.72rem; display: flex; align-items: center; gap: 3px; font-weight: 500; }
.unfilled-label { color: #dc2626; font-size: 0.7rem; font-weight: 600; margin-top: 2px; display: flex; align-items: center; gap: 3px; }
.shift-type-badge { font-size: 0.6rem; font-weight: 700; padding: 1px 5px; border-radius: 4px; white-space: nowrap; }
.badge-day { background: #dbeafe; color: #1d4ed8; }
.badge-evening { background: #fef9c3; color: #92400e; }
.badge-night { background: #312e81; color: #a5b4fc; }
.badge-oncall { background: #ede9fe; color: #6d28d9; }
.saving-indicator { display: flex; align-items: center; gap: 4px; font-size: 0.68rem; color: #2563eb; margin-top: 4px; }

.rota-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid #f1f5f9; }
.legend-item { display: flex; align-items: center; gap: 5px; font-size: 0.75rem; color: #64748b; }
.legend-swatch { width: 12px; height: 12px; border-radius: 3px; border: 1px solid #e2e8f0; }
.legend-swatch.filled { background: white; }
.legend-swatch.evening { background: #fffbeb; border-color: #fcd34d; }
.legend-swatch.night { background: #1e1b4b; border-color: #3730a3; }
.legend-swatch.unfilled { background: #fff5f5; border-color: #fca5a5; }

/* ===== TOAST NOTIFICATIONS ===== */
.toast-message { display: flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 10px; margin-bottom: 14px; font-size: 0.875rem; font-weight: 500; animation: slideIn 0.2s ease; }
.toast-success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.toast-error { background: #fff5f5; color: #dc2626; border: 1px solid #fca5a5; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

/* ===== LOADING / EMPTY ===== */
.loading-state { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 60px; color: #94a3b8; font-size: 0.9rem; }
.empty-state { text-align: center; padding: 60px 20px; color: #94a3b8; }
.empty-state p { margin-top: 10px; font-size: 0.875rem; }
.spinning { animation: spin 1s linear infinite; display: inline-block; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ===== DASHBOARD ===== */
.gap-row { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 10px; border: 1px solid #f1f5f9; margin-bottom: 8px; background: #fafafa; transition: all 0.15s; }
.gap-row:hover { border-color: #e2e8f0; background: white; }
.gap-clock { width: 34px; height: 34px; border-radius: 8px; background: #fee2e2; color: #dc2626; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.gap-title { font-weight: 600; color: #0f172a; font-size: 0.84rem; }
.gap-meta { font-size: 0.73rem; color: #94a3b8; margin-top: 2px; }
.activity-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f1f5f9; }
.activity-item:last-child { border-bottom: none; }
.activity-icon { width: 30px; height: 30px; border-radius: 50%; background: #f1f5f9; display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; margin-top: 1px; }
.activity-text { font-size: 0.82rem; color: #374151; line-height: 1.4; }
.activity-time { font-size: 0.72rem; color: #94a3b8; margin-top: 2px; }
.quick-links-section { border-top: 1px solid #f1f5f9; margin-top: 14px; padding-top: 14px; }
.quick-link { display: block; font-size: 0.82rem; color: #2563eb; margin-bottom: 7px; text-decoration: none; font-weight: 500; }
.quick-link:hover { text-decoration: underline; }
.summary-label { font-size: 0.7rem; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }

/* ===== COMPLIANCE ===== */
.compliance-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.comp-stat { background: white; border-radius: 12px; border: 1px solid #e2e8f0; padding: 16px 18px; display: flex; align-items: center; gap: 14px; }
.comp-stat-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.comp-stat-icon.red { background: #fee2e2; color: #dc2626; }
.comp-stat-icon.orange { background: #ffedd5; color: #ea580c; }
.comp-stat-icon.blue { background: #dbeafe; color: #2563eb; }
.comp-stat-icon.green { background: #dcfce7; color: #16a34a; }
.comp-stat-value { font-size: 1.6rem; font-weight: 700; color: #0f172a; }
.comp-stat-label { font-size: 0.75rem; color: #64748b; margin-top: 2px; }
.violation-card { background: #fff5f5; border: 1px solid #fca5a5; border-radius: 10px; padding: 16px; margin-bottom: 12px; }
.violation-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.violation-avatar { width: 34px; height: 34px; border-radius: 50%; background: #fee2e2; color: #dc2626; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.violation-name { font-weight: 700; color: #0f172a; font-size: 0.875rem; }
.violation-type { font-size: 0.75rem; color: #64748b; }
.violation-desc { font-size: 0.82rem; color: #374151; margin-bottom: 10px; line-height: 1.5; }
.violation-facts { display: flex; gap: 24px; margin-bottom: 10px; font-size: 0.8rem; color: #64748b; }
.fact-actual { color: #dc2626; font-weight: 600; }
.violation-actions-section { border-top: 1px solid #fca5a5; padding-top: 10px; }
.violation-actions-title { font-size: 0.78rem; color: #dc2626; font-weight: 700; margin: 0 0 5px; }
.violation-actions-list { margin: 0; padding-left: 16px; }
.violation-actions-list li { font-size: 0.78rem; color: #374151; margin-bottom: 3px; }
.comp-rule-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.comp-rule-card { background: white; border-radius: 12px; border: 1px solid #e2e8f0; padding: 16px; }
.rule-badge { display: inline-block; font-size: 0.68rem; font-weight: 700; padding: 3px 8px; border-radius: 20px; margin-bottom: 10px; }
.rule-badge.hard { background: #fee2e2; color: #b91c1c; }
.rule-badge.soft { background: #f1f5f9; color: #475569; }
.rule-title { font-weight: 700; color: #0f172a; font-size: 0.875rem; margin-bottom: 3px; }
.rule-cat { font-size: 0.72rem; color: #94a3b8; margin-bottom: 8px; }
.rule-desc { font-size: 0.78rem; color: #4b5563; line-height: 1.5; margin-bottom: 10px; }
.rule-status-ok { display: flex; align-items: center; gap: 4px; font-size: 0.75rem; color: #16a34a; font-weight: 500; }

/* ===== BANK MARKETPLACE ===== */
.bank-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.bank-card { background: white; border-radius: 12px; border: 1px solid #e2e8f0; padding: 18px; transition: all 0.15s; }
.bank-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); border-color: #cbd5e1; }
.bank-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.bank-dept { font-size: 0.72rem; font-weight: 700; background: #f1f5f9; color: #475569; padding: 3px 8px; border-radius: 4px; }
.bank-role { font-size: 1rem; font-weight: 700; color: #0f172a; margin-bottom: 2px; }
.bank-band { font-size: 0.8rem; color: #64748b; margin-bottom: 12px; }
.bank-detail-row { display: flex; align-items: center; gap: 7px; font-size: 0.8rem; color: #374151; margin-bottom: 5px; }
.bank-detail-row .material-icons { font-size: 14px; color: #94a3b8; }
.btn-notify { width: 100%; background: #2563eb; color: white; border: none; padding: 10px; border-radius: 8px; font-size: 0.875rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 14px; transition: background 0.15s; }
.btn-notify:hover { background: #1d4ed8; }

/* ===== SHIFT TEMPLATES ===== */
.template-card { background: white; border-radius: 12px; border: 1px solid #e2e8f0; padding: 18px; transition: all 0.15s; cursor: pointer; }
.template-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); border-color: #cbd5e1; }
.template-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.template-name { font-weight: 700; color: #0f172a; font-size: 0.95rem; }
.template-dept { font-size: 0.75rem; color: #64748b; margin-top: 2px; }
.template-time { font-size: 0.875rem; font-weight: 600; color: #0f172a; margin: 8px 0 4px; display: flex; align-items: center; gap: 6px; }
.template-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.template-actions { display: flex; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #f1f5f9; }

/* ===== OPEN SHIFTS ===== */
.open-shift-card { background: white; border-radius: 12px; border: 1px solid #e2e8f0; padding: 16px 18px; margin-bottom: 10px; display: flex; align-items: center; gap: 16px; transition: all 0.15s; }
.open-shift-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.open-shift-icon { width: 42px; height: 42px; border-radius: 10px; background: #dbeafe; color: #2563eb; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.open-shift-title { font-weight: 600; color: #0f172a; font-size: 0.875rem; }
.open-shift-meta { font-size: 0.78rem; color: #64748b; margin-top: 3px; }
.open-shift-actions { margin-left: auto; display: flex; gap: 8px; flex-shrink: 0; }

/* ===== APPLICATIONS ===== */
.application-card { background: white; border-radius: 12px; border: 1px solid #e2e8f0; padding: 16px 18px; margin-bottom: 10px; display: flex; align-items: center; gap: 14px; }
.app-info { flex: 1; min-width: 0; }
.app-name { font-weight: 600; color: #0f172a; font-size: 0.875rem; }
.app-shift { font-size: 0.78rem; color: #64748b; margin-top: 2px; }
.app-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ===== REPORTS ===== */
.report-card { background: white; border-radius: 12px; border: 1px solid #e2e8f0; padding: 20px; margin-bottom: 14px; }
.report-title { font-weight: 700; color: #0f172a; font-size: 0.95rem; margin-bottom: 4px; }
.report-desc { font-size: 0.82rem; color: #64748b; margin-bottom: 14px; }
.report-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.report-stat { text-align: center; padding: 12px; background: #f8fafc; border-radius: 8px; }
.report-stat-val { font-size: 1.4rem; font-weight: 700; color: #0f172a; }
.report-stat-lbl { font-size: 0.72rem; color: #94a3b8; margin-top: 2px; }
.chart-bar-wrap { display: flex; flex-direction: column; gap: 8px; }
.chart-row { display: flex; align-items: center; gap: 10px; font-size: 0.8rem; }
.chart-label { width: 80px; color: #64748b; text-align: right; flex-shrink: 0; }
.chart-bar-bg { flex: 1; height: 22px; background: #f1f5f9; border-radius: 4px; overflow: hidden; }
.chart-bar { height: 100%; background: #2563eb; border-radius: 4px; display: flex; align-items: center; padding-left: 8px; font-size: 0.72rem; color: white; font-weight: 600; transition: width 0.6s ease; }
.chart-bar.green { background: #16a34a; }
.chart-bar.orange { background: #ea580c; }

/* ===== AI ROTA BUILDER WIZARD ===== */
.wizard-stepper { display: flex; align-items: center; margin-bottom: 28px; }
.wizard-step { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; flex-shrink: 0; }
.wizard-step-circle { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; transition: all 0.2s; }
.wizard-step.pending .wizard-step-circle { background: #f1f5f9; color: #94a3b8; border: 2px solid #e2e8f0; }
.wizard-step.active .wizard-step-circle { background: #2563eb; color: white; border: 2px solid #2563eb; box-shadow: 0 0 0 4px #dbeafe; }
.wizard-step.done .wizard-step-circle { background: #16a34a; color: white; border: 2px solid #16a34a; }
.wizard-step-label { font-size: 0.72rem; font-weight: 600; color: #64748b; white-space: nowrap; }
.wizard-step.active .wizard-step-label { color: #2563eb; }
.wizard-step.done .wizard-step-label { color: #16a34a; }
.wizard-step-line { flex: 1; height: 2px; background: #e2e8f0; margin: 0 8px; margin-bottom: 20px; }
.wizard-step-line.done { background: #16a34a; }

.wizard-card { background: white; border-radius: 14px; border: 1px solid #e2e8f0; padding: 28px; margin-bottom: 16px; }
.wizard-section-title { font-size: 1.1rem; font-weight: 700; color: #0f172a; margin: 0 0 20px; }

.wizard-doctor-list { display: flex; flex-direction: column; gap: 8px; max-height: 360px; overflow-y: auto; }
.wizard-doctor-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px; border: 1.5px solid #e2e8f0; cursor: pointer; transition: all 0.15s; background: white; }
.wizard-doctor-row:hover { border-color: #93c5fd; background: #f8fafc; }
.wizard-doctor-row.included { border-color: #3b82f6; background: #eff6ff; }
.wizard-doctor-row.excluded { opacity: 0.6; }

.wizard-template-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 10px; border: 1px solid #e2e8f0; margin-bottom: 10px; background: #fafafa; }
.wizard-template-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wizard-template-icon.day { background: #fef9c3; color: #ca8a04; }
.wizard-template-icon.night { background: #1e1b4b; color: #a5b4fc; }

.wizard-compliance-box { display: flex; align-items: flex-start; gap: 12px; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 10px; padding: 14px 16px; margin-top: 20px; }

.wizard-opt-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border-radius: 10px; border: 1px solid #e2e8f0; background: #fafafa; }
.wizard-checkbox { width: 20px; height: 20px; accent-color: #2563eb; cursor: pointer; flex-shrink: 0; }

.wizard-generating { text-align: center; padding: 32px 0; }
.wizard-progress-bar { height: 8px; background: #f1f5f9; border-radius: 99px; overflow: hidden; margin: 18px auto 0; max-width: 400px; }
.wizard-progress-fill { height: 100%; background: linear-gradient(90deg,#2563eb,#60a5fa); border-radius: 99px; transition: width 0.4s ease; }

.toast-message { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 10px; font-size: 0.875rem; font-weight: 500; }
.toast-success { background: #f0fdf4; border: 1px solid #86efac; color: #16a34a; }
.toast-error { background: #fef2f2; border: 1px solid #fca5a5; color: #dc2626; }
.loading-state { text-align: center; padding: 32px; color: #64748b; display: flex; flex-direction: column; align-items: center; gap: 10px; }

.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-purple { background: #ede9fe; color: #6d28d9; }
.badge-normal { background: #f1f5f9; color: #64748b; }
.btn-ghost { background: transparent; border: none; cursor: pointer; padding: 4px 6px; border-radius: 6px; display: inline-flex; align-items: center; gap: 4px; color: #64748b; }
.btn-ghost:hover { background: #f1f5f9; }
.btn-xs { padding: 4px 8px; font-size: 0.75rem; border-radius: 6px; }

/* ===== DOCTORS PAGE ===== */
.doctor-card { background: white; border: 1px solid #e2e8f0; border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 0; transition: box-shadow .15s; }
.doctor-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); border-color: #bfdbfe; }
.doctor-card-top { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.doctor-avatar-lg { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg,#2563eb,#60a5fa); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; flex-shrink: 0; }
.doctor-name { font-weight: 700; color: #0f172a; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doctor-sub { font-size: 0.75rem; color: #64748b; margin-top: 2px; }

/* ===== LOGIN PAGE ===== */
.login-root { display: flex; min-height: 100vh; font-family: 'Inter', system-ui, sans-serif; }
.login-left { width: 45%; background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 60%, #3b82f6 100%); padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
@media (max-width: 768px) { .login-left { display: none; } .login-right { width: 100%; } }
.login-brand { display: flex; align-items: center; gap: 14px; }
.login-brand-icon { width: 48px; height: 48px; background: rgba(255,255,255,0.2); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 800; color: white; }
.login-brand-name { font-size: 1.2rem; font-weight: 800; color: white; }
.login-brand-sub { font-size: 0.75rem; color: rgba(255,255,255,0.6); }
.login-tagline h1 { font-size: 2.4rem; font-weight: 800; color: white; line-height: 1.2; margin: 0 0 16px; }
.login-tagline p { color: rgba(255,255,255,0.75); font-size: 1rem; line-height: 1.6; margin: 0; }
.login-features { display: flex; flex-direction: column; gap: 10px; }
.login-feature { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.85); font-size: 0.9rem; font-weight: 500; }
.login-feature .material-icons { font-size: 18px; color: #93c5fd; }
.login-right { flex: 1; display: flex; align-items: center; justify-content: center; background: #f8fafc; padding: 32px; }
.login-box { background: white; border-radius: 20px; border: 1px solid #e2e8f0; padding: 40px; width: 100%; max-width: 420px; box-shadow: 0 8px 40px rgba(0,0,0,0.08); }
.login-demo-btn { display: flex; align-items: center; gap: 10px; width: 100%; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 14px; cursor: pointer; transition: all .15s; }
.login-demo-btn:hover { border-color: #93c5fd; background: #eff6ff; }
