/* ─── Holiday Request Form shortcode (swp-hrf-* classes) ────────────────── */

.swp-hrf {
    max-width: 720px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1e293b;
}

.swp-hrf-login-notice {
    padding: 16px 20px;
    background: #f1f5f9;
    border-radius: 8px;
    color: #475569;
    font-size: 14px;
}

/* ── Entitlement summary bar ── */
.swp-hrf-summary {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.swp-hrf-stat {
    flex: 1;
    min-width: 120px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    text-align: center;
}

.swp-hrf-stat-val {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
    margin-bottom: 4px;
}

.swp-hrf-stat-lbl {
    display: block;
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.swp-hrf-stat--used     { border-color: #fcd34d; }
.swp-hrf-stat--used .swp-hrf-stat-val     { color: #b45309; }
.swp-hrf-stat--pending  { border-color: #93c5fd; }
.swp-hrf-stat--pending .swp-hrf-stat-val  { color: #1d4ed8; }
.swp-hrf-stat--remaining{ border-color: #6ee7b7; }
.swp-hrf-stat--remaining .swp-hrf-stat-val{ color: #047857; }

/* ── Request form card ── */
.swp-hrf-form-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 28px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.swp-hrf-form-title {
    margin: 0 0 20px;
    font-size: 17px;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.swp-hrf-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.swp-hrf-field {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 14px;
}

.swp-hrf-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.swp-hrf-half-label {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.swp-hrf-input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    font-size: 14px;
    color: #1e293b;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.swp-hrf-input:focus {
    outline: none;
    border-color: var(--accent1, #F83600);
    box-shadow: 0 0 0 3px rgba(248,54,0,0.08);
}

textarea.swp-hrf-input {
    resize: vertical;
}

.swp-hrf-preview {
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 7px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #166534;
    margin-bottom: 14px;
}

.swp-hrf-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 7px;
    padding: 10px 14px;
    font-size: 14px;
    color: #991b1b;
    margin-bottom: 14px;
}

.swp-hrf-success {
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 7px;
    padding: 12px 16px;
    font-size: 14px;
    color: #166534;
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.swp-hrf-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--accent1, #F83600);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
}

.swp-hrf-btn:hover { opacity: 0.88; }
.swp-hrf-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.swp-hrf-btn--sm {
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 5px;
    background: #ef4444;
}

/* ── History table ── */
.swp-hrf-history { margin-top: 8px; }

.swp-hrf-history-title {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
}

.swp-hrf-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.swp-hrf-table th,
.swp-hrf-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
}

.swp-hrf-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #6b7280;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.swp-hrf-badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: capitalize;
    letter-spacing: 0.02em;
}

.swp-hrf-badge--pending   { background: #fff3cd; color: #856404; }
.swp-hrf-badge--approved  { background: #d1e7dd; color: #0a6640; }
.swp-hrf-badge--rejected  { background: #f8d7da; color: #842029; }
.swp-hrf-badge--cancelled { background: #e2e3e5; color: #41464b; }

/* ── Shortcode responsive ── */
@media (max-width: 520px) {
    .swp-hrf-summary { flex-direction: column; }
    .swp-hrf-row     { flex-direction: column; }
    .swp-hrf-stat    { min-width: 0; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   Holiday panel + admin (swp_hol_* classes)
   Used by SWP_Holiday_Renderer — calendar panel and admin holiday page
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Management tab nav ── */
.swp_hol_tab_nav {
    display: flex;
    gap: 2px;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.swp_hol_tab_btn {
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    border-radius: 6px 6px 0 0;
    border: 1px solid transparent;
    border-bottom: none;
    margin-bottom: -2px;
    transition: color 0.12s, background 0.12s;
    user-select: none;
}

.swp_hol_tab_btn:hover {
    color: #374151;
    background: #f9fafb;
}

.swp_hol_tab_active {
    color: #1e293b;
    background: #ffffff;
    border-color: #e5e7eb;
    border-bottom-color: #ffffff;
    font-weight: 600;
}

.swp_hol_tab_pane {
    /* no extra padding — content methods add their own */
}

/* ── Panel header (year select + settings toggle) ── */
.swp_hol_panel_hdr {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.swp_hol_settings_toggle {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #4b5563;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.swp_hol_settings_toggle:hover {
    background: #e5e7eb;
}
.swp_hol_settings_toggle.swp_hol_settings_active {
    background: var(--accent1, #F83600);
    color: #fff;
    border-color: transparent;
}

/* ── Year tabs (legacy spans — now replaced by select) ── */
.swp_hol_year_tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.swp_hol_ytab {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #4b5563;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    user-select: none;
}

.swp_hol_ytab:hover {
    background: #e5e7eb;
}

.swp_hol_ytab_active {
    background: var(--accent1, #F83600);
    color: #ffffff;
    border-color: transparent;
}

.swp_hol_ytab_active:hover {
    background: var(--accent1, #F83600);
    opacity: 0.9;
}

/* ── Panel / sections ── */
.swp_hol_panel {
    padding: 16px 20px;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1e293b;
}

.swp_hol_section {
    margin-bottom: 20px;
}

.swp_hol_section_title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 10px;
    padding: 0;
}

.swp_hol_admin_link {
    margin: 4px 0 0;
    font-size: 13px;
}

.swp_hol_admin_link a {
    color: var(--accent1, #F83600);
    text-decoration: none;
    font-weight: 500;
}

.swp_hol_admin_link a:hover {
    text-decoration: underline;
}

/* ── Stat cards ── */
.swp_hol_cards {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.swp_hol_card {
    flex: 1;
    min-width: 80px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.swp_hol_card_negative {
    background: #fef2f2;
    border-color: #fca5a5;
}

.swp_hol_card_value {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
}

.swp_hol_card_negative .swp_hol_card_value {
    color: #dc2626;
}

.swp_hol_card_label {
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ── Status badges ── */
.swp_hol_badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: capitalize;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.swp_hol_badge_pending   { background: #fef9c3; color: #713f12; }
.swp_hol_badge_approved  { background: #dcfce7; color: #166534; }
.swp_hol_badge_rejected  { background: #fee2e2; color: #991b1b; }
.swp_hol_badge_cancelled { background: #f3f4f6; color: #6b7280; }

.swp_hol_split_badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 10px;
    background: #ede9fe;
    color: #5b21b6;
    vertical-align: middle;
    white-space: nowrap;
}

/* ── Tables ── */
.swp_hol_table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.swp_hol_table th {
    text-align: left;
    padding: 7px 10px;
    border-bottom: 2px solid #e5e7eb;
    font-weight: 600;
    color: #6b7280;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.swp_hol_table td {
    padding: 8px 10px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.swp_hol_table tbody tr:last-child td {
    border-bottom: none;
}

.swp_hol_table tbody tr:hover td {
    background: #fafafa;
}

.swp_hol_table_compact th,
.swp_hol_table_compact td {
    padding: 5px 8px;
}

/* Row status tinting */
.swp_hol_status_approved td { background: #f0fdf4; }
.swp_hol_status_rejected td { background: #fff5f5; }
.swp_hol_status_cancelled td { background: #fafafa; }

/* Specific cell classes */
.swp_hol_actions {
    white-space: nowrap;
}

.swp_hol_negative {
    color: #dc2626;
    font-weight: 600;
}

.swp_hol_remaining {
    font-weight: 500;
}

.swp_hol_half_note {
    font-size: 11px;
    color: #6b7280;
    font-style: italic;
}

.swp_hol_date_note {
    display: block;
    font-size: 11px;
    color: #9ca3af;
}

.swp_hol_expiry_note {
    font-size: 11px;
    color: #9ca3af;
    font-style: italic;
}

.swp_hol_empty {
    color: #9ca3af;
    font-size: 13px;
    padding: 8px 0;
    margin: 0;
}

/* ── Buttons ── */
.swp_hol_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 5px 13px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    color: #374151;
    transition: background 0.12s, border-color 0.12s;
    white-space: nowrap;
    text-decoration: none;
}

.swp_hol_btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.swp_hol_btn_primary {
    background: var(--accent1, #F83600);
    color: #ffffff;
    border-color: transparent;
}

.swp_hol_btn_primary:hover {
    opacity: 0.88;
    background: var(--accent1, #F83600);
    border-color: transparent;
}

.swp_hol_btn_approve {
    background: #dcfce7;
    color: #166534;
    border-color: #bbf7d0;
}

.swp_hol_btn_approve:hover {
    background: #bbf7d0;
    border-color: #86efac;
}

.swp_hol_btn_reject {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fecaca;
}

.swp_hol_btn_reject:hover {
    background: #fecaca;
    border-color: #fca5a5;
}

.swp_hol_btn_edit {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.swp_hol_btn_edit:hover {
    background: #dbeafe;
    border-color: #93c5fd;
}

/* ── Filter row ── */
.swp_hol_filter_row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 16px;
}

.swp_hol_filter_select {
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    color: #374151;
    background: #ffffff;
    height: 34px;
}

/* ── Notice ── */
.swp_hol_notice {
    padding: 10px 14px;
    background: #fef9c3;
    border: 1px solid #fde68a;
    border-radius: 6px;
    font-size: 13px;
    color: #713f12;
    margin-bottom: 12px;
}

.swp_hol_notice a {
    color: #92400e;
    font-weight: 600;
}

/* ── Add entitlement section ── */
.swp_hol_add_ent_section {
    margin-top: 18px;
}

.swp_hol_inline_form {
    margin-top: 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px 20px;
}

.swp_hol_inline_form h4 {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.swp_hol_inline_fields {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* ── Carry forward section ── */
.swp_hol_carry_section {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 2px solid #e5e7eb;
}

.swp_hol_carry_intro {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 12px;
}

.swp_hol_cf_amount,
.swp_hol_cf_expiry {
    width: 100%;
    padding: 5px 8px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    font-size: 13px;
}

/* ── Settings form ── */
.swp_hol_settings_form {
    max-width: 640px;
}

.swp_hol_form_section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 20px;
}

.swp_hol_form_row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.swp_hol_form_row:last-child {
    margin-bottom: 0;
}

.swp_hol_form_label {
    min-width: 200px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    flex-shrink: 0;
}

.swp_hol_form_row input[type="number"],
.swp_hol_form_row input[type="date"],
.swp_hol_form_row select,
.swp_hol_form_row textarea {
    padding: 7px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    color: #374151;
}

.swp_hol_form_row input[type="number"] {
    width: 100px;
}

.swp_hol_checkbox_row {
    align-items: center;
}

.swp_hol_checkbox_row label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    cursor: pointer;
}

.swp_hol_radio_group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.swp_hol_radio_group label {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 13px;
    cursor: pointer;
}

.swp_hol_hint {
    font-size: 12px;
    color: #9ca3af;
}

.swp_hol_cf_options {
    padding-left: 24px;
    border-left: 3px solid #e5e7eb;
    margin-top: 10px;
}

.swp_hol_form_actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 8px;
}

.swp_hol_msg {
    font-size: 13px;
    color: #166534;
    font-weight: 500;
}

.swp_hol_msg.swp_hol_msg_error {
    color: #991b1b;
}

/* ── Admin page wrap ── */
.swp_hol_admin_wrap h1 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.swp_hol_admin_body {
    margin-top: 20px;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .swp_hol_cards {
        gap: 8px;
    }

    .swp_hol_card {
        min-width: 70px;
        padding: 8px;
    }

    .swp_hol_card_value {
        font-size: 16px;
    }

    .swp_hol_filter_row {
        flex-direction: column;
        align-items: stretch;
    }

    .swp_hol_form_label {
        min-width: 0;
        width: 100%;
    }

    .swp_hol_form_row {
        flex-direction: column;
        gap: 6px;
    }

    .swp_hol_table {
        font-size: 12px;
    }

    .swp_hol_table th,
    .swp_hol_table td {
        padding: 6px 6px;
    }
}

/* ── Work schedule edit grid ── */
.swp_hol_sched_grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.swp_hol_sched_day {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #f9fafb;
    user-select: none;
}

.swp_hol_sched_day:has(.swp_hol_sched_chk:checked) {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

/* ── Holiday status badges on calendar events ── */
.swp_hstatus_badge {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    font-size: 14px;
    vertical-align: middle;
    line-height: 1;
}

.swp_hstatus_approved {
    color: #16a34a;
}

.swp_hstatus_rejected {
    color: #dc2626;
}

.swp_hstatus_pending {
    color: #d97706;
}

.swp_hstatus_cancelled {
    color: #6b7280;
}

/* ── Custom modal (replaces SweetAlert2) ───────────────────────────────── */
.swp_hol_modal_overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.18s ease;
}
.swp_hol_modal_overlay.swp_hol_modal_vis { opacity: 1; }
.swp_hol_modal {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.22);
    width: 400px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    transform: translateY(-14px);
    transition: transform 0.18s ease;
}
.swp_hol_modal_vis .swp_hol_modal { transform: translateY(0); }
.swp_hol_modal_hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 14px;
    border-bottom: 1px solid #e5e7eb;
}
.swp_hol_modal_title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 6px;
}
.swp_hol_modal_x {
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    color: #9ca3af;
    padding: 0 4px;
    border-radius: 4px;
    user-select: none;
}
.swp_hol_modal_x:hover { color: #374151; }
.swp_hol_modal_body {
    padding: 18px 20px;
}
.swp_hol_modal_ftr {
    padding: 12px 20px 16px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}
.swp_hol_mc_verr {
    margin-top: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    display: none;
}
.swp_hol_btn_danger { background: #dc2626 !important; color: #fff !important; border-color: #dc2626 !important; }
.swp_hol_btn_danger:hover { background: #b91c1c !important; }

/* ── Toast notification ─────────────────────────────────────────────────── */
.swp_hol_toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(16px);
    background: #1e293b;
    color: #fff;
    padding: 10px 22px;
    border-radius: 9px;
    font-size: 14px;
    z-index: 100000;
    opacity: 0;
    transition: opacity 0.22s, transform 0.22s;
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.swp_hol_toast_vis { opacity: 1; transform: translateX(-50%) translateY(0); }
.swp_hol_toast_ok i  { color: #4ade80; }
.swp_hol_toast_err i { color: #f87171; }

/* ── Holiday account tab — all rules scoped to prevent admin CSS conflicts ── */

#swp_acct_tab_holiday .swp_hol_year_nav {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e0e0e0;
}
#swp_acct_tab_holiday .swp_hol_year_lbl {
    font-size: 12px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: .05em;
    white-space: nowrap;
    margin: 0;
}
#swp_acct_tab_holiday .swp_hol_year_select {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    padding: 5px 30px 5px 10px;
    cursor: pointer;
    appearance: auto;
    min-width: 140px;
}

/* Stats row */
#swp_acct_tab_holiday .swp_hol_stats_row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}
#swp_acct_tab_holiday .swp_hol_stat {
    flex: 1;
    min-width: 90px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 14px 12px;
    text-align: center;
}
#swp_acct_tab_holiday .swp_hol_stat_val {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #264653;
    line-height: 1;
    margin-bottom: 5px;
}
#swp_acct_tab_holiday .swp_hol_stat_lbl {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
#swp_acct_tab_holiday .swp_hol_stat--used .swp_hol_stat_val { color: #3498db; }
#swp_acct_tab_holiday .swp_hol_stat--pend .swp_hol_stat_val { color: #f39c12; }
#swp_acct_tab_holiday .swp_hol_stat--rem  .swp_hol_stat_val { color: #27ae60; }

/* Requests section header */
#swp_acct_tab_holiday .swp_hol_req_hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}
#swp_acct_tab_holiday .swp_hol_req_hdr_title {
    font-size: 13px;
    font-weight: 600;
    color: #2a9d8f;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Inline request / edit form */
#swp_acct_tab_holiday .swp_hol_form {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
}
#swp_acct_tab_holiday .swp_hol_form_row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
#swp_acct_tab_holiday .swp_hol_form_field {
    flex: 1;
    min-width: 140px;
}
#swp_acct_tab_holiday .swp_hol_form_field label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #666;
    margin-bottom: 4px;
}
#swp_acct_tab_holiday .swp_hol_form_field input[type="date"],
#swp_acct_tab_holiday .swp_hol_form_field textarea {
    width: 100%;
    padding: 8px 10px;
    font-size: 13px;
    font-family: inherit;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    color: #333;
    box-sizing: border-box;
    resize: vertical;
}
#swp_acct_tab_holiday .swp_hol_form_field input[type="date"]:focus,
#swp_acct_tab_holiday .swp_hol_form_field textarea:focus {
    outline: none;
    border-color: #2a9d8f;
    box-shadow: 0 0 0 2px rgba(42,157,143,0.1);
}
#swp_acct_tab_holiday .swp_hol_half_row {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #666;
}
#swp_acct_tab_holiday .swp_hol_half_row label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}
#swp_acct_tab_holiday .swp_hol_preview_row {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
    min-height: 18px;
}
#swp_acct_tab_holiday .swp_hol_preview_row i { margin-right: 4px; }
#swp_acct_tab_holiday .swp_hol_preview_val { font-weight: 600; color: #2a9d8f; }
#swp_acct_tab_holiday .swp_hol_form_msg { font-size: 13px; margin-bottom: 8px; min-height: 18px; }
#swp_acct_tab_holiday .swp_hol_form_msg--err { color: #e74c3c; }
#swp_acct_tab_holiday .swp_hol_form_msg--ok  { color: #27ae60; }
#swp_acct_tab_holiday .swp_hol_form_actions { display: flex; gap: 8px; }

/* Request cards */
#swp_acct_tab_holiday .swp_hol_req_card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
}
#swp_acct_tab_holiday .swp_hol_req_card:last-child { margin-bottom: 0; }
#swp_acct_tab_holiday .swp_hol_req_card--approved { border-left-color: #27ae60; }
#swp_acct_tab_holiday .swp_hol_req_card--pending  { border-left-color: #f39c12; }
#swp_acct_tab_holiday .swp_hol_req_card--rejected { border-left-color: #e74c3c; }
#swp_acct_tab_holiday .swp_hol_req_card--cancelled { border-left-color: #9ca3af; opacity: 0.7; }

#swp_acct_tab_holiday .swp_hol_req_dates { flex: 1; min-width: 120px; color: #333; font-weight: 600; }
#swp_acct_tab_holiday .swp_hol_req_amt   { color: #555; white-space: nowrap; font-size: 12px; background: #f5f5f5; border-radius: 4px; padding: 2px 8px; }
#swp_acct_tab_holiday .swp_hol_req_note  { width: 100%; font-size: 12px; color: #e74c3c; font-style: italic; margin-top: 4px; }
#swp_acct_tab_holiday .swp_hol_req_note i { margin-right: 4px; }

/* Small action buttons on request cards */
#swp_acct_tab_holiday .swp_hol_req_btn {
    font-size: 11px;
    padding: 4px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    color: #666;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    transition: all 0.15s;
    line-height: 1.4;
}
#swp_acct_tab_holiday .swp_hol_req_btn:hover { border-color: #9ca3af; color: #333; }
#swp_acct_tab_holiday .swp_hol_req_btn--cancel:hover { border-color: #e74c3c; color: #e74c3c; background: #fef2f2; }
#swp_acct_tab_holiday .swp_hol_req_btn--edit:hover   { border-color: #2a9d8f; color: #2a9d8f; background: #f0faf9; }
#swp_acct_tab_holiday .swp_hol_req_btn:disabled { opacity: 0.5; cursor: not-allowed; }

#swp_acct_tab_holiday .swp_hol_empty {
    color: #888;
    font-size: 13px;
    font-style: italic;
    text-align: center;
    padding: 24px 0;
    margin: 0;
}

@media (max-width: 520px) {
    #swp_acct_tab_holiday .swp_hol_stats_row { gap: 6px; }
    #swp_acct_tab_holiday .swp_hol_stat { min-width: 70px; padding: 10px 8px; }
    #swp_acct_tab_holiday .swp_hol_stat_val { font-size: 16px; }
}


/* ─── Holiday events on the main calendar and list view ─────────────────────
 *
 * Four visual states, all using amber (mine) and violet (others):
 *   approved + mine   → solid amber
 *   approved + other  → solid violet
 *   pending  + mine   → dashed amber with stripe
 *   pending  + other  → dashed violet with stripe
 * ─────────────────────────────────────────────────────────────────────────── */

/* ── Holiday event status colours on the main calendar ───────────────────── */
/* Green = approved  |  Amber = pending  |  Transparent background            */

:root {
  --swp-hol-green: #16a34a;
  --swp-hol-amber: #D97706;
}

/* ── Multi-day calendar bars — transparent fill, coloured border rail ─────── */
/* The base CSS sets top+bottom borders on all segments, left cap on start,   */
/* right cap on end — so these flow as one continuous coloured band.          */

.swp_startevent.swp_hol_approved,
.swp_midevent.swp_hol_approved,
.swp_endevent.swp_hol_approved {
  background-color: transparent;
  border-color: var(--swp-hol-green);
}

.swp_startevent.swp_hol_pending,
.swp_midevent.swp_hol_pending,
.swp_endevent.swp_hol_pending {
  background-color: transparent;
  border-color: var(--swp-hol-amber);
}

/* ── Single-day all-day events ───────────────────────────────────────────── */

.swp_alldayevent.swp_hol_approved {
  border-left: 3px solid var(--swp-hol-green);
  background: transparent;
}

.swp_alldayevent.swp_hol_pending {
  border-left: 3px solid var(--swp-hol-amber);
  background: transparent;
}

/* ── List view rows ──────────────────────────────────────────────────────── */

.swp_sdevent.swp_hol_approved { border-left: 4px solid var(--swp-hol-green); }
.swp_sdevent.swp_hol_pending  { border-left: 4px solid var(--swp-hol-amber); }
