@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #0d6efd;
    --primary-dark: #0a58ca;
    --sidebar-bg: #1e293b;
    --sidebar-hover: #334155;
    --sidebar-active: #0d6efd;
    --body-bg: #f1f5f9;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--body-bg);
    color: var(--text-primary);
    display: flex;
    min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: 270px;
    background: var(--sidebar-bg);
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-brand {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-brand .logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.sidebar-brand h2 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.sidebar-brand small {
    font-size: 11px;
    color: #94a3b8;
    display: block;
    margin-top: 2px;
}

.sidebar-menu {
    padding: 16px 12px;
}

.menu-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #64748b;
    padding: 12px 12px 8px;
    font-weight: 600;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    margin-bottom: 2px;
}

.sidebar-menu a:hover {
    background: var(--sidebar-hover);
    color: #fff;
}

.sidebar-menu a.active {
    background: var(--sidebar-active);
    color: #fff;
}

.sidebar-menu a i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    margin-left: 270px;
    flex: 1;
    min-height: 100vh;
}

/* ===== TOP NAVBAR ===== */
.top-navbar {
    background: var(--card-bg);
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-navbar .page-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.top-navbar .breadcrumb {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.top-navbar .breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.navbar-right .notif-btn {
    position: relative;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    font-size: 18px;
    color: var(--text-secondary);
}

.navbar-right .notif-btn .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger);
    color: #fff;
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.user-profile .avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.user-profile .user-info {
    text-align: right;
}

.user-profile .user-info .name {
    font-size: 14px;
    font-weight: 600;
}

.user-profile .user-info .role {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ===== PAGE CONTENT ===== */
.page-content {
    padding: 28px 32px;
}

/* ===== PATIENT BANNER ===== */
.patient-banner {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: #fff;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.patient-banner .patient-main {
    display: flex;
    align-items: center;
    gap: 16px;
}

.patient-banner .patient-avatar {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.patient-banner .patient-name {
    font-size: 20px;
    font-weight: 700;
}

.patient-banner .patient-meta {
    font-size: 13px;
    opacity: 0.85;
    margin-top: 4px;
}

.patient-banner .patient-meta span {
    margin-right: 16px;
}

.patient-banner .patient-stats {
    display: flex;
    gap: 24px;
}

.patient-banner .stat-item {
    text-align: center;
}

.patient-banner .stat-item .stat-value {
    font-size: 20px;
    font-weight: 700;
}

.patient-banner .stat-item .stat-label {
    font-size: 11px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== CARDS ===== */
.card {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.card-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h3 {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header h3 i {
    color: var(--primary);
    font-size: 18px;
}

.card-body {
    padding: 24px;
}

/* ===== FORM STYLES ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-group label .required {
    color: var(--danger);
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

select.form-control {
    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='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

/* ===== SOAP TABS ===== */
.soap-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.soap-tab {
    flex: 1;
    padding: 14px 20px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    border: none;
    font-family: 'Inter', sans-serif;
    position: relative;
}

.soap-tab.tab-s { background: #dbeafe; color: #1e40af; }
.soap-tab.tab-o { background: #d1fae5; color: #065f46; }
.soap-tab.tab-a { background: #fef3c7; color: #92400e; }
.soap-tab.tab-p { background: #ede9fe; color: #5b21b6; }

.soap-tab.active.tab-s { background: #2563eb; color: #fff; }
.soap-tab.active.tab-o { background: #059669; color: #fff; }
.soap-tab.active.tab-a { background: #d97706; color: #fff; }
.soap-tab.active.tab-p { background: #7c3aed; color: #fff; }

.soap-tab small {
    display: block;
    font-weight: 400;
    font-size: 11px;
    margin-top: 2px;
    opacity: 0.8;
}

.soap-content {
    display: none;
}

.soap-content.active {
    display: block;
}

/* ===== VITAL SIGNS GRID ===== */
.vitals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.vital-item {
    background: var(--body-bg);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
}

.vital-item .vital-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.vital-item label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 8px;
}

.vital-item input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
}

.vital-item input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
}

.vital-item .unit {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ===== TABLE STYLES ===== */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table thead th {
    background: var(--body-bg);
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
    border-bottom: 2px solid var(--border-color);
}

table tbody td {
    padding: 12px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

table tbody tr:hover {
    background: #f8fafc;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
}

.btn i { font-size: 16px; }

.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); }

.btn-success {
    background: var(--success);
    color: #fff;
}
.btn-success:hover { background: #059669; }

.btn-warning {
    background: var(--warning);
    color: #fff;
}
.btn-warning:hover { background: #d97706; }

.btn-danger {
    background: var(--danger);
    color: #fff;
}
.btn-danger:hover { background: #dc2626; }

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}
.btn-outline:hover { background: var(--body-bg); }

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ===== PRESCRIPTION ITEM ===== */
.rx-item {
    background: var(--body-bg);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 16px;
    position: relative;
    border: 1px solid var(--border-color);
}

.rx-item .rx-number {
    position: absolute;
    top: -10px;
    left: 16px;
    background: var(--primary);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.rx-item .rx-remove {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
}

/* ===== DIAGNOSIS TAG ===== */
.tag-input-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    min-height: 44px;
    align-items: center;
    cursor: text;
}

.tag-input-container:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #dbeafe;
    color: #1e40af;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

.tag .remove-tag {
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    opacity: 0.6;
}

.tag .remove-tag:hover { opacity: 1; }

.tag-input {
    border: none;
    outline: none;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    flex: 1;
    min-width: 120px;
}

/* ===== ICD SEARCH ===== */
.search-dropdown {
    position: relative;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: 50;
    display: none;
}

.search-results.show { display: block; }

.search-results .result-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 13px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.15s;
}

.search-results .result-item:hover { background: var(--body-bg); }

.search-results .result-item .icd-code {
    font-weight: 700;
    color: var(--primary);
    margin-right: 8px;
}

/* ===== ALERTS ===== */
.alert {
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.alert i { margin-top: 2px; }

.alert-info {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

/* ===== SECTION DIVIDER ===== */
.section-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

/* ===== BADGE ===== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-info { background: #e0f2fe; color: #0369a1; }

/* ===== FOOTER ACTIONS ===== */
.card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fafbfc;
    border-radius: 0 0 12px 12px;
}

/* ===== TOAST ===== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background: #1e293b;
    color: #fff;
    padding: 14px 20px;
    border-radius: 10px;
    margin-bottom: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
    .form-row, .form-row-3 {
        grid-template-columns: 1fr;
    }
    .patient-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .page-content {
        padding: 16px;
    }
    .top-navbar {
        padding: 12px 16px;
    }
    .vitals-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ===== DASHBOARD 360 ===== */
.dash-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}
.kpi-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 18px 16px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    border: 1px solid var(--border-color);
    transition: box-shadow .2s;
}
.kpi-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.kpi-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.kpi-body { min-width: 0; }
.kpi-value { font-size: 22px; font-weight: 700; line-height: 1.2; }
.kpi-label { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.kpi-trend { font-size: 11px; margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.kpi-trend.up { color: #059669; }
.kpi-trend.down { color: #dc2626; }
.kpi-trend.neutral { color: var(--text-secondary); }

/* Quick Actions */
.dash-quick-actions {
    display: flex; gap: 10px; flex-wrap: wrap;
    margin-bottom: 20px;
}
.qa-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13px; font-weight: 600;
    text-decoration: none;
    transition: transform .15s, box-shadow .15s;
    color: #fff;
}
.qa-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.qa-blue { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.qa-green { background: linear-gradient(135deg, #059669, #047857); }
.qa-purple { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.qa-pink { background: linear-gradient(135deg, #db2777, #be185d); }
.qa-teal { background: linear-gradient(135deg, #0d9488, #0f766e); }
.qa-orange { background: linear-gradient(135deg, #d97706, #b45309); }

/* Charts Row */
.dash-charts-row {
    display: flex; gap: 20px;
    margin-bottom: 20px;
}

/* ---- Horizontal Bar Chart ---- */
.hbar-chart {
    display: flex;
    gap: 0;
    height: 230px;
}
.hbar-y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 46px; /* space for labels below bars */
    width: 32px;
    text-align: right;
    font-size: 10px;
    color: #94a3b8;
    flex-shrink: 0;
}
.hbar-area {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
}
.hbar-grid {
    position: absolute;
    inset: 0;
    bottom: 46px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
}
.hbar-gridline {
    border-bottom: 1px dashed #e2e8f0;
    height: 0;
}
.hbar-groups {
    flex: 1;
    display: flex;
    gap: 6px;
    padding-bottom: 0;
    position: relative;
    z-index: 1;
}
.hbar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hbar-bars {
    flex: 1;
    display: flex;
    gap: 4px;
    align-items: flex-end;
    width: 100%;
    justify-content: center;
}
.hbar-bar {
    width: 28px;
    border-radius: 5px 5px 0 0;
    position: relative;
    min-height: 4px;
    transition: height .4s ease;
    cursor: pointer;
}
.hbar-bar:hover { opacity: .85; filter: brightness(1.1); }
.hbar-rj { background: linear-gradient(180deg, #3b82f6, #2563eb); }
.hbar-ri { background: linear-gradient(180deg, #22d3ee, #06b6d4); }
.hbar-empty { background: #e2e8f0; width: 20px; border-radius: 4px; }
.hbar-val {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}
.hbar-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 6px;
    height: 18px;
}
.hbar-sub {
    font-size: 11px;
    color: var(--text-secondary);
    height: 16px;
}
.hbar-today .hbar-label { color: var(--primary); }
.hbar-today .hbar-sub { color: var(--primary); }
.hbar-today .hbar-rj { background: linear-gradient(180deg, #2563eb, #1d4ed8); box-shadow: 0 2px 8px rgba(37,99,235,.35); }
.hbar-today .hbar-ri { background: linear-gradient(180deg, #06b6d4, #0891b2); box-shadow: 0 2px 8px rgba(6,182,212,.3); }
.hbar-future { opacity: .45; }
.hbar-future .hbar-sub { color: #cbd5e1; }
.chart-legend {
    display: flex; gap: 18px;
    font-size: 12px; color: var(--text-secondary);
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}
.active-filter {
    background: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
}

/* Donut Chart */
.donut-chart {
    position: relative;
    width: 150px; height: 150px;
    margin: 0 auto 16px;
}
.donut-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut-center {
    position: absolute;
    inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.donut-legend { display: flex; flex-direction: column; gap: 8px; }
.dl-item { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.dl-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dl-name { flex: 1; }
.dl-val { font-weight: 600; }

/* Operational Panels Row */
.dash-ops-row {
    display: flex; gap: 20px;
    margin-bottom: 20px;
}
/* Occupancy Bars */
.occ-bars { display: flex; flex-direction: column; gap: 12px; }
.occ-row { display: flex; align-items: center; gap: 10px; }
.occ-name { width: 110px; font-size: 12px; font-weight: 500; flex-shrink: 0; }
.occ-bar-bg { flex: 1; height: 20px; background: #f1f5f9; border-radius: 6px; overflow: hidden; }
.occ-bar-fill { height: 100%; border-radius: 6px; font-size: 10px; color: #fff; font-weight: 600; display: flex; align-items: center; justify-content: center; min-width: 30px; }
.occ-num { width: 44px; font-size: 12px; font-weight: 600; text-align: right; }

/* Poli Status */
.poli-status-list { display: flex; flex-direction: column; gap: 4px; }
.poli-row {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}
.poli-row:last-child { border-bottom: none; }
.poli-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.poli-dot.active { background: var(--success); box-shadow: 0 0 0 3px rgba(16,185,129,.2); }
.poli-dot.break { background: var(--danger); box-shadow: 0 0 0 3px rgba(239,68,68,.2); }
.poli-info { flex: 1; min-width: 0; }
.poli-nm { font-size: 13px; font-weight: 600; }
.poli-dr { font-size: 11px; color: var(--text-secondary); }
.poli-queue { font-size: 13px; font-weight: 600; flex-shrink: 0; }
.pq-done { color: var(--success); }
.pq-total { color: var(--text-secondary); }

/* Alert Feed */
.alert-feed { display: flex; flex-direction: column; gap: 2px; }
.alert-item {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}
.alert-item:last-child { border-bottom: none; }
.alert-icon { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }
.alert-item.alert-danger .alert-icon { background: #fee2e2; color: #dc2626; }
.alert-item.alert-warning .alert-icon { background: #fef3c7; color: #d97706; }
.alert-item.alert-info .alert-icon { background: #e0f2fe; color: #0284c7; }
.alert-item.alert-success .alert-icon { background: #d1fae5; color: #059669; }
.alert-title { font-size: 12px; font-weight: 500; line-height: 1.3; }
.alert-time { font-size: 10px; color: var(--text-secondary); margin-top: 2px; }

/* Bottom Row */
.dash-bottom-row {
    display: flex; gap: 20px;
    margin-bottom: 20px;
}

/* Farmasi Queue */
.farm-queue { display: flex; flex-direction: column; gap: 4px; }
.farm-item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}
.farm-item:last-child { border-bottom: none; }
.farm-no { font-size: 13px; font-weight: 700; color: var(--primary); width: 42px; }
.farm-info { flex: 1; min-width: 0; }
.farm-name { font-size: 13px; font-weight: 600; }
.farm-rx { font-size: 11px; color: var(--text-secondary); }

/* Revenue */
.rev-total { font-size: 24px; font-weight: 800; color: var(--text-primary); margin-bottom: 14px; }
.rev-rows { display: flex; flex-direction: column; gap: 8px; }
.rev-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.rev-src { display: flex; align-items: center; gap: 8px; color: var(--text-secondary); }
.rev-amt { font-weight: 600; }

/* Footer Info */
.dash-footer-info {
    display: flex; justify-content: space-between;
    font-size: 11px; color: #94a3b8;
    padding: 12px 0 4px;
    border-top: 1px solid var(--border-color);
}

/* Dashboard Responsive */
@media (max-width: 1280px) {
    .dash-kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .dash-charts-row, .dash-ops-row, .dash-bottom-row { flex-direction: column; }
}
@media (max-width: 768px) {
    .dash-kpi-grid { grid-template-columns: 1fr; }
    .dash-quick-actions { flex-direction: column; }
    .dash-footer-info { flex-direction: column; gap: 4px; }
}
