/* ==========================================================================
   duty-auto-scheduler.css - Giao diện Quản trị Sắp lịch trực thông minh
   ========================================================================== */

.scheduler-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 1. THANH CÔNG CỤ CHỌN ĐỢT & LINK */
.scheduler-period-toolbar {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px 20px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.period-select-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 280px;
}

.period-select-wrap select {
    max-width: 400px;
    font-size: 0.95em;
    font-weight: 600;
    color: #174f8c;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 14px;
}

.period-actions-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Modern Unified Button System - ZERO GRAY */
.btn-sched-action {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    border: none !important;
    cursor: pointer !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-sched-action:hover {
    transform: translateY(-1px);
}

.btn-sched-action:active {
    transform: translateY(0);
}

.btn-sched-action .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    margin: 0;
    line-height: 1;
}

/* Height presets */
.btn-sched-h40 {
    height: 40px !important;
    line-height: 40px !important;
    padding: 0 18px !important;
    font-size: 0.92em !important;
}

.btn-sched-h38 {
    height: 38px !important;
    line-height: 38px !important;
    padding: 0 14px !important;
    font-size: 0.9em !important;
}

.btn-sched-h36 {
    height: 36px !important;
    line-height: 36px !important;
    padding: 0 14px !important;
    font-size: 0.88em !important;
}

.btn-sched-h32 {
    height: 32px !important;
    line-height: 32px !important;
    padding: 0 10px !important;
    font-size: 0.84em !important;
    border-radius: 6px !important;
}

/* Color palettes - Vibrant UEL Themes */
.btn-sched-primary {
    background: linear-gradient(135deg, #174f8c 0%, #1e40af 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(23, 79, 140, 0.3) !important;
}
.btn-sched-primary:hover {
    background: linear-gradient(135deg, #0f3661 0%, #174f8c 100%) !important;
    box-shadow: 0 4px 12px rgba(23, 79, 140, 0.4) !important;
}

.btn-sched-sky {
    background: #0284c7 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25) !important;
}
.btn-sched-sky:hover {
    background: #0369a1 !important;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.35) !important;
}

.btn-sched-emerald {
    background: #10b981 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25) !important;
}
.btn-sched-emerald:hover {
    background: #059669 !important;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.35) !important;
}

.btn-sched-amber {
    background: #f59e0b !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.25) !important;
}
.btn-sched-amber:hover {
    background: #d97706 !important;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.35) !important;
}

.btn-sched-rose {
    background: #ef4444 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.25) !important;
}
.btn-sched-rose:hover {
    background: #dc2626 !important;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.35) !important;
}

.btn-sched-purple {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.25) !important;
}
.btn-sched-purple:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%) !important;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35) !important;
}

.btn-sched-teal {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.25) !important;
}
.btn-sched-teal:hover {
    background: linear-gradient(135deg, #0f766e 0%, #115e59 100%) !important;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.35) !important;
}

.btn-sched-orange {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(234, 88, 12, 0.35) !important;
}
.btn-sched-orange:hover {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%) !important;
    box-shadow: 0 5px 15px rgba(234, 88, 12, 0.45) !important;
}

.btn-sched-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(59, 130, 246, 0.35) !important;
}
.btn-sched-blue:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%) !important;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.45) !important;
}

.btn-copy-link {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: #ffffff !important;
    border: none;
    padding: 0 16px;
    height: 38px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.25);
    transition: all 0.2s;
}

.btn-copy-link:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
    transform: translateY(-1px);
}

/* 2. THỐNG KÊ METRIC CARDS */
.scheduler-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.sched-metric-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.sched-metric-data .val {
    font-size: 1.5em;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.1;
}

.sched-metric-data .lbl {
    font-size: 0.78em;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 5px;
}

/* 3. THANH ĐIỀU KHIỂN HÀNH ĐỘNG AUTO-SCHEDULER */
.scheduler-action-bar {
    background: linear-gradient(135deg, #174f8c 0%, #0d2e53 100%);
    border-radius: 12px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(23,79,140,0.15);
}

.action-bar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.05em;
}

.action-bar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-magic-schedule {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff !important;
    border: none;
    height: 40px;
    padding: 0 18px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 3px 10px rgba(234, 88, 12, 0.35);
    transition: all 0.2s;
}

.btn-magic-schedule:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(234, 88, 12, 0.45);
}

.btn-finalize-schedule {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff !important;
    border: none;
    height: 40px;
    padding: 0 20px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.35);
    transition: all 0.2s;
}

.btn-finalize-schedule:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.45);
}

/* 4. MA TRẬN PHÂN CA TRỰC QUAN */
.scheduler-matrix-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 16px;
    overflow-x: auto;
}

.matrix-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 950px;
}

.matrix-table th, .matrix-table td {
    border: 1px solid #e2e8f0;
    padding: 10px 8px;
    vertical-align: top;
}

.matrix-table th {
    background: #f8fafc;
    color: #174f8c;
    font-weight: 700;
    text-align: center;
    font-size: 0.9em;
    padding: 12px 8px;
}

.matrix-table td.shift-cell {
    background: #f8fafc;
    width: 180px;
    font-weight: 700;
    font-size: 0.9em;
    color: #1e293b;
}

.matrix-slot-cell {
    min-height: 120px;
    background: #ffffff;
    transition: background-color 0.2s;
    position: relative;
    padding-bottom: 30px !important;
}

.matrix-slot-cell:hover {
    background: #f8fafc;
}

.slot-meta-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px dashed #e2e8f0;
}

.slot-count-badge {
    font-size: 0.78em;
    font-weight: 700;
    color: #64748b;
}

.diversity-pill {
    font-size: 0.72em;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 12px;
}

.pill-5ban {
    background: #dcfce7;
    color: #15803d;
}

.pill-partial {
    background: #fef3c7;
    color: #b45309;
}

.pill-low {
    background: #fee2e2;
    color: #b91c1c;
}

/* THẺ THÀNH VIÊN TRONG CA */
.staff-assignment-card {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 6px 8px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    transition: all 0.15s;
}

.staff-assignment-card:hover {
    background: #ffffff;
    border-color: #174f8c;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.staff-meta {
    overflow: hidden;
    line-height: 1.2;
}

.staff-name {
    font-size: 0.85em;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.staff-badges {
    display: flex;
    gap: 4px;
    margin-top: 3px;
    flex-wrap: wrap;
}

.mini-badge {
    font-size: 0.68em;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
}

.badge-k23 { background: #fef3c7; color: #b45309; }
.badge-k24 { background: #dbeafe; color: #1e40af; }
.badge-k25 { background: #dcfce7; color: #15803d; }
.badge-k26 { background: #f3e8ff; color: #7e22ce; }
.badge-kother { background: #f1f5f9; color: #475569; }

.badge-existing-tag {
    background: #475569 !important;
    color: #ffffff !important;
    font-size: 0.68em;
}

.badge-k26-new-tag {
    background: #059669 !important;
    color: #ffffff !important;
    font-size: 0.68em;
    font-weight: 700 !important;
}

.card-existing-staff {
    background: #f8fafc !important;
    border-left: 3.5px solid #64748b !important;
}

.card-new-k26 {
    background: #f0fdf4 !important;
    border-left: 3.5px solid #10b981 !important;
    box-shadow: 0 1px 4px rgba(16, 185, 129, 0.2);
}

.badge-unit-tag {
    background: #fff7ed;
    color: #c2410c;
    max-width: 110px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-remove-staff {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.1em;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    line-height: 1;
}

.btn-remove-staff:hover {
    color: #ef4444;
    background: #fee2e2;
}

.btn-add-staff-slot {
    position: absolute;
    bottom: 5px;
    left: 8px;
    right: 8px;
    background: #f0f7ff;
    border: 1px dashed #7dd3fc;
    color: #0369a1;
    font-size: 0.78em;
    font-weight: 700;
    padding: 4px 6px;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-add-staff-slot:hover {
    border: 1px solid #0284c7;
    color: #ffffff;
    background: #0284c7;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3);
}

/* SUB TABS TRONG BẢNG ĐIỀU KHIỂN */
.scheduler-subnav {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.scheduler-subtab-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 9px 18px;
    font-weight: 700;
    font-size: 0.92em;
    color: #475569;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.scheduler-subtab-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.scheduler-subtab-btn.active {
    background: #174f8c !important;
    color: #ffffff !important;
    border-color: #174f8c !important;
    box-shadow: 0 2px 8px rgba(23, 79, 140, 0.25) !important;
}

/* Modal Form styling */
.sched-modal-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.sched-modal-form label {
    font-weight: 700;
    font-size: 0.88em;
    color: #334155;
    margin-bottom: 4px;
    display: block;
}

.sched-modal-form input, .sched-modal-form select, .sched-modal-form textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.92em;
}

.cohort-quota-row {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.dept-quotas-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
}

.dept-quota-card {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px;
    transition: all 0.2s ease;
    box-sizing: border-box;
    overflow: hidden;
}

.dept-quota-card:hover {
    border-color: #94a3b8;
    box-shadow: 0 3px 10px rgba(0,0,0,0.04);
}

.dept-quota-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 10px;
}

.dept-quota-header .dept-title {
    font-weight: 800;
    font-size: 0.95em;
    color: #0f3661;
    display: flex;
    align-items: center;
    gap: 7px;
}

.dept-quota-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
}

.dept-cohort-quota-col {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 6px 3px;
    text-align: center;
    transition: all 0.15s ease;
    box-sizing: border-box;
    min-width: 0;
}

.dept-cohort-quota-col:focus-within {
    border-color: #174f8c;
    box-shadow: 0 0 0 2px rgba(23,79,140,0.15);
}

.dept-cohort-quota-col .cohort-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.78em;
    color: #174f8c;
    margin-bottom: 5px;
    line-height: 1.25;
}

.dept-cohort-quota-col .cohort-label span {
    font-weight: 800;
    color: #0f3661;
}

.dept-cohort-quota-col .cohort-label b,
.dept-cohort-quota-col .cohort-label small {
    font-size: 0.88em;
}

.dept-cohort-quota-col .input-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 100%;
}

.dept-cohort-quota-col input {
    width: 36px;
    max-width: 100%;
    height: 28px;
    text-align: center;
    font-weight: 800;
    font-size: 0.95em;
    color: #0f3661;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 2px 2px;
    box-sizing: border-box;
}

.dept-cohort-quota-col .unit-text {
    font-size: 0.75em;
    color: #64748b;
    font-weight: 600;
    white-space: nowrap;
}

.sched-quota-footer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    background: #f1f5f9;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    padding: 12px 16px;
    margin-top: 6px;
}

.sched-quota-footer-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.sched-quota-footer-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cohort-quota-col {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 8px 10px;
    border-radius: 6px;
    text-align: center;
}

.cohort-quota-col span {
    display: block;
    font-weight: 700;
    font-size: 0.85em;
    color: #174f8c;
    margin-bottom: 4px;
}

.cohort-quota-col input {
    text-align: center;
    font-weight: 700;
}

#sched-period-info-card {
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    padding: 12px 18px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* ==========================================================================
   5. MOBILE & TABLET RESPONSIVE STYLES
   ========================================================================== */
@media (max-width: 900px) {
    .cohort-quota-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .scheduler-container {
        gap: 14px;
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Thanh chọn đợt */
    .scheduler-period-toolbar {
        padding: 12px 14px;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .period-select-wrap {
        flex-direction: column;
        align-items: stretch;
        min-width: 0;
        width: 100%;
        gap: 8px;
    }

    .period-select-wrap select {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .period-btns-inline {
        display: flex;
        gap: 6px;
        width: 100%;
    }

    .period-btns-inline button,
    .period-select-wrap button {
        flex: 1;
        justify-content: center;
        text-align: center;
        font-size: 0.84em;
        padding: 6px 8px;
    }

    .period-actions-group {
        width: 100%;
    }

    .period-actions-group .btn-copy-link {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 9px 12px;
        font-size: 0.88em;
    }

    /* Thẻ thông tin đợt */
    #sched-period-info-card {
        flex-direction: column;
        align-items: stretch;
        padding: 12px 14px;
        gap: 10px;
    }

    .period-info-meta {
        width: 100%;
    }

    .period-info-link-box {
        width: 100% !important;
        max-width: 100% !important;
    }

    #info-period-link {
        flex: 1;
        min-width: 0;
        font-size: 0.8em;
    }

    /* Đổi đơn vị Đoàn - Hội */
    .scheduler-scope-switcher {
        flex-direction: column;
        gap: 8px;
    }

    .scheduler-scope-switcher .scope-btn {
        width: 100%;
        padding: 10px 14px;
        font-size: 0.92em;
    }

    /* Thẻ Metrics */
    .scheduler-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .sched-metric-card {
        padding: 10px 12px;
    }

    .sched-metric-data .val {
        font-size: 1.25em;
    }

    .sched-metric-data .lbl {
        font-size: 0.7em;
        letter-spacing: 0;
    }

    /* Hộp cấu hình số ca theo khóa */
    .scheduler-quota-setting-box {
        padding: 12px 14px;
    }

    .cohort-quota-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .cohort-quota-col {
        padding: 8px 6px;
    }

    .cohort-quota-col span {
        font-size: 0.8em;
    }

    .cohort-quota-col input {
        width: 55px !important;
        font-size: 0.95em !important;
    }

    /* Action bar */
    .scheduler-action-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 12px 14px;
        gap: 10px;
    }

    .action-bar-left {
        justify-content: center;
        font-size: 0.92em;
    }

    .action-bar-right {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
    }

    .action-bar-right button {
        width: 100%;
        justify-content: center;
        font-size: 0.84em;
        padding: 8px 10px;
    }

    .btn-magic-schedule {
        grid-column: 1 / -1;
    }

    .btn-finalize-schedule {
        grid-column: 1 / -1;
    }

    /* Sub tabs điều hướng */
    .scheduler-subnav {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
        gap: 6px;
        scrollbar-width: thin;
    }

    .scheduler-subtab-btn {
        padding: 7px 12px;
        font-size: 0.84em;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .scheduler-metrics-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .cohort-quota-row {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .cohort-quota-col {
        padding: 6px 4px;
    }

    .cohort-quota-col span {
        font-size: 0.76em;
    }
}

/* =============================================================================
   VERSION 3.0 UI STYLES (RESCUE BADGES, STATUS PILLS & DIAGNOSTICS)
   ============================================================================= */
.badge-rescue-tag {
    background: #fef08a !important;
    color: #854d0e !important;
    border: 1px solid #facc15 !important;
    font-weight: 700 !important;
    font-size: 0.72em !important;
    padding: 2px 6px !important;
}

.card-rescue-border {
    border-left: 3px solid #eab308 !important;
    background: #fffdf5 !important;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85em;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.status-optimal {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.status-rescue {
    background: #fef9c3;
    color: #854d0e;
    border: 1px solid #fde047;
}

.status-understaffed {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.diag-card {
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 14px;
    font-size: 0.88em;
}

.diag-card h5 {
    margin: 0 0 8px 0;
    font-size: 1.05em;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.diag-card ul {
    margin: 0;
    padding-left: 20px;
    line-height: 1.5;
}

.diag-card li {
    margin-bottom: 4px;
}

.diag-alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.diag-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

