/* ============================================================
   VERLOF PLANNER 2026 â€” Styles (Day-by-Day Variant)
   ============================================================ */

:root {
    /* ═══════════════════════════════════════════════════════════
       MODERN NURSERY — Colour Palette
       Edit the six core values below to restyle the entire app.
       ═══════════════════════════════════════════════════════════
       Role        Name              Hex       Purpose
       ─────────────────────────────────────────────────────────
       Primary   · Sky Blue       · #7FA8C9 · Buttons, progress bars, active states
       Secondary · Warm Paper    · #F9F7F2 · Main background
       Accent    · Soft Coral    · #E69A8D · Donation button, important alerts
       Text      · Navy Charcoal · #1A2A33 · Body text
       Surface   · Bright White  · #FFFFFF · Cards, input fields
       Muted     · Lavender Mist · #B8B5C3 · Secondary info, partner sections
       ═══════════════════════════════════════════════════════════ */

    /* Core palette — the six values that define the whole look */
    --color-primary: #7FA8C9;
    /* Sky Blue      */
    --color-secondary: #F9F7F2;
    /* Warm Paper    */
    --color-accent: #E69A8D;
    /* Soft Coral    */
    --color-text: #1A2A33;
    /* Navy Charcoal */
    --color-surface: #FFFFFF;
    /* Bright White  */
    --color-muted: #B8B5C3;
    /* Lavender Mist */

    /* Derived shades */
    --color-primary-dark: #5B8AB5;
    --color-primary-light: #E8F2F8;
    --color-accent-dark: #D07A6D;
    --color-accent-light: #FDF0ED;
    --color-muted-dark: #8E8A9E;
    --color-muted-light: #EFEEF5;

    /* ─────────────────────────────────────────────────────────
       Day-type colours — one place to edit them all.
       These are also applied to the LEAVE_TYPE_REGISTRY in
       js/config.js (keep in sync when changing values here).
       ───────────────────────────────────────────────────────── */
    --day-maternity: #7FA8C9;
    /* Primary Sky   · Zwangerschapsverlof          */
    --day-birth: #9DBBD3;
    /* Lighter Sky   · Geboorteverlof               */
    --day-birth-add: #C2D4E3;
    /* Pale Sky      · Aanvullend geboorte           */
    --day-parental-paid: #9AA3C2;
    /* Muted Periwinkle · Betaald ouderschap         */
    --day-parental-unpaid: #D1D4DB;
    /* Soft Steel    · Onbetaald ouderschap         */
    --day-vacation: #F2D5AE;
    /* Warm Apricot  · Vakantie                     */
    --day-holiday: #EBC086;
    /* Soft Amber    · Feestdag                     */
    --day-sick: #EBB7AD;
    /* Muted Rose    · Ziek                         */
    --day-working: #FFFFFF;
    /* White         · Werkdag                      */
    --day-off: #EEEDEA;
    /* Light Grey    · Weekend / vrij               */
    --day-maternity-twin: #6B94B5;
    /* Deep Sky     · Meerlingen Regeling          */
    --day-hospital: #B59494;
    /* Dusty Rose   · Ziekenhuisopname Baby        */

    /* Functional aliases used throughout the stylesheet */
    --bg: var(--color-secondary);
    --card: var(--color-surface);
    --text: var(--color-text);
    --text-secondary: var(--color-muted-dark);
    --text-muted: var(--color-muted);
    --border: #D1D4DB;
    --border-light: #EEEDEA;
    --primary: var(--color-primary);
    --primary-light: var(--color-primary-light);
    --accent: var(--color-accent);

    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);

    /* Typography — Quicksand for headings, Public Sans for body & data */
    --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Status colours (mapped to day-type variables above) */
    --c-working: var(--day-working);
    /* Off-white  — working days      */
    --c-sick: var(--day-sick);
    /* Rose       — sick days         */
    --c-holiday: var(--day-holiday);
    /* Mustard    — public holidays   */
    --c-off: var(--day-off);
    /* Light grey — non-working days  */
    --c-childcare: var(--color-muted);
    /* Soft Clay  — childcare needed  */
    --c-due: var(--color-accent-dark);
    /* Dark mustard — due date     */
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    font-size: 14px;
    min-height: 100vh;
}

/* Headings use Outfit */
h1,
h2,
h3,
h4,
h5,
h6,
.app-header h1,
.card-header h2,
.modal-title,
.welcome-title,
.welcome-text h3,
.summary-card h3,
.childcare-summary h4,
.li-section h4,
.export-modal-section-title {
    font-family: var(--font-heading);
}

/* ---------- Header ---------- */
.app-header {
    background: linear-gradient(135deg, #5B8AB5, #7FA8C9);
    color: #fff;
    padding: 1.25rem 1rem;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-left h1 {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.header-left .subtitle {
    font-size: 0.85rem;
    opacity: 0.85;
    font-weight: 300;
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, border-color 0.15s;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
}

.lang-btn.active {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.8);
}

.lang-sep {
    opacity: 0.6;
    font-size: 0.8rem;
}

.header-controls {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
}

.header-controls .control-group label {
    display: block;
    font-size: 0.75rem;
    opacity: 0.8;
    margin-bottom: 0.25rem;
}

.header-controls input[type="date"] {
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
}

.header-controls input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
    padding: 0.4rem 0.9rem;
    border: none;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-undo,
.btn-redo {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-undo:hover:not(:disabled),
.btn-redo:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.28);
}

.btn-undo:disabled,
.btn-redo:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.btn-print,
.btn-save,
.btn-load {
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-primary-dark);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-print:hover,
.btn-save:hover,
.btn-load:hover {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-reset {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-reset:hover {
    background: rgba(255, 255, 255, 0.25);
}

.btn-small {
    padding: 0.3rem 0.7rem;
    font-size: 0.75rem;
    background: var(--primary);
    color: #fff;
}

.btn-small:hover {
    opacity: 0.9;
}

.btn-repopulate {
    display: block;
    width: 100%;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-repopulate:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

/* ---------- Container ---------- */
.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* ---------- Cards ---------- */
.card {
    background: var(--card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-header {
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h2 {
    font-size: 1rem;
    font-weight: 600;
}

.card-header.collapsible {
    cursor: pointer;
    user-select: none;
}

.card-header.collapsible:hover {
    background: var(--border-light);
}

.collapse-icon {
    font-size: 0.7rem;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.collapse-icon.collapsed {
    transform: rotate(-90deg);
}

.card-body {
    padding: 1.25rem;
}

.card-body.collapsed {
    display: none;
}

/* ---------- Settings ---------- */
.baby-settings-panel {
    margin-bottom: 1.5rem;
}

.baby-settings-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .baby-settings-fields {
        grid-template-columns: 1fr;
    }
}

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 1025px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }
}

.settings-panel {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
}

.panel-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}

/* Form elements */
.form-group {
    margin-bottom: 0.9rem;
}

.form-group>label,
.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

.form-input {
    width: 100%;
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.85rem;
    color: var(--text);
    background: #fff;
    transition: border-color 0.15s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(107, 142, 142, 0.15);
}

.form-input-sm {
    width: 80px;
}

/* Work day toggles */
.workday-toggles {
    display: flex;
    gap: 0.35rem;
}

.workday-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    color: var(--text-muted);
    background: #fff;
}

.workday-toggle input {
    display: none;
}

.workday-toggle.active {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

/* Verlof type cards */
.vt-section-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem;
    color: var(--text-secondary);
}

.vt-card {
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    border-left: 4px solid #ccc;
    background: var(--border-light);
}

.vt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}

.vt-name {
    font-size: 0.82rem;
    font-weight: 600;
}

.vt-salary {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
}

.vt-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    align-items: center;
}

.vt-field {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.vt-field input {
    width: 65px;
    padding: 0.25rem 0.4rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.8rem;
    text-align: center;
}

.vt-field input:focus {
    outline: none;
    border-color: var(--primary);
}

/* ---------- Optional Leave Types ---------- */
.vt-section-optional {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.vt-section-special {
    margin-top: 0.75rem;
    color: var(--text-secondary);
    font-style: italic;
}

.optional-leave-hint {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0 0 0.5rem;
}

.optional-leave-list {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.optional-leave-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg);
    transition: background 0.12s, border-color 0.12s;
    font-size: 0.8rem;
    user-select: none;
}

.optional-leave-item:hover {
    background: var(--primary-light);
    border-color: var(--primary);
}

.optional-leave-item.enabled {
    background: var(--color-primary-light);
    border-color: #9DBBD3;
}

.optional-leave-item input[type="checkbox"] {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    accent-color: var(--primary);
    cursor: pointer;
}

.optional-leave-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.optional-leave-title-block {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    flex: 1;
    min-width: 0;
}

.optional-leave-name {
    font-weight: 500;
    color: var(--text);
}

.optional-leave-subtitle {
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.optional-leave-meta {
    font-size: 0.72rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

@media (max-width: 600px) {
    .optional-leave-label {
        flex-wrap: wrap;
    }

    .optional-leave-meta:not(:empty) {
        /* align under the name text (checkbox 15px + gap 0.5rem + dot 10px + gap 0.5rem = ~2.5rem) */
        padding-left: 2.5rem;
        width: 100%;
        margin-top: 0.2rem;
        white-space: normal;
    }
}

.optional-leave-meta .vakantie-days-input,
.optional-leave-meta .ziekenhuisopname-days-input {
    width: 2.5rem;
    padding: 0.2rem 0.3rem;
    font-size: 0.75rem;
    text-align: center;
    display: inline-block;
    vertical-align: middle;
}

.optional-leave-meta .ziekenhuisopname-days-input {
    width: 2.8rem;
}

.ziekenhuisopname-days-label {
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-left: 0.15rem;
}

.salary-pct-meta {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.salary-pct-label {
    font-size: 0.72rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.salary-pct-suffix {
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.optional-leave-meta .salary-pct-input {
    width: 2.8rem;
    padding: 0.2rem 0.3rem;
    font-size: 0.75rem;
    text-align: center;
    display: inline-block;
    vertical-align: middle;
}

.zwangerschap-start-meta {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.zwangerschap-start-label {
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.zwangerschap-startdate-input {
    width: 8.5rem;
    padding: 0.2rem 0.3rem;
    font-size: 0.75rem;
}

.zwangerschap-start-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.zwangerschap-start-disabled .zwangerschap-startdate-input {
    background: var(--bg-secondary, var(--border-light));
    color: var(--text-secondary);
}

.meerlingen-start-meta {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.meerlingen-start-label {
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.meerlingen-startdate-input {
    width: 8.5rem;
    padding: 0.2rem 0.3rem;
    font-size: 0.75rem;
}

.optional-leave-special {
    opacity: 0.85;
    background: var(--border-light);
}

.optional-leave-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
    cursor: pointer;
}

.btn-leave-info {
    background: var(--primary-light);
    border: 1.5px solid var(--color-primary);
    color: var(--primary);
    cursor: pointer;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 700;
    font-style: italic;
    font-family: var(--font-body);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    transition: background 0.12s, border-color 0.12s, color 0.12s, box-shadow 0.12s;
}

.btn-leave-info:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(127, 168, 201, 0.3);
}

/* ---------- Legend ---------- */
.legend-section {
    padding: 0.7rem 1.25rem;
}

.legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.2rem;
    align-items: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.legend-color {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.legend-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 12px;
    color: #fff;
}

.legend-icon svg {
    width: 12px;
    height: 12px;
}

/* Legend half-day swatches */
.legend-color.half-swatch-work-leave {
    background: linear-gradient(135deg, var(--c-working) 50%, var(--color-primary) 50%);
}

.legend-color.half-swatch-work-sick {
    background: linear-gradient(135deg, var(--day-working) 50%, var(--day-sick) 50%);
}

.legend-color.half-swatch-sick-leave {
    background: linear-gradient(135deg, var(--c-sick) 50%, var(--color-primary) 50%);
}

/* ---------- Gantt Chart ---------- */
.gantt-row {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.gantt-label {
    width: 90px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.gantt-bar {
    flex: 1;
    height: 32px;
    display: flex;
    border-radius: 4px;
    overflow: hidden;
    background: var(--border-light);
    position: relative;
}

.gantt-segment {
    height: 100%;
    transition: opacity 0.15s;
    position: relative;
}

.gantt-segment:hover {
    opacity: 0.85;
}

.gantt-week-slice {
    height: 100%;
}

.gantt-due-marker {
    position: absolute;
    top: -4px;
    bottom: -4px;
    width: 3px;
    background: var(--c-due);
    border-radius: 2px;
    z-index: 5;
    pointer-events: none;
}

.gantt-due-label {
    position: absolute;
    top: -18px;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--c-due);
    white-space: nowrap;
    transform: translateX(-50%);
}

.gantt-month-bar {
    flex: 1;
    height: 18px;
    position: relative;
}

.gantt-month-label {
    position: absolute;
    top: 0;
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 500;
    transform: translateX(-50%);
}

.gantt-year-label {
    position: absolute;
    top: 14px;
    font-size: 0.6rem;
    color: var(--text-muted);
    font-weight: 500;
    opacity: 0.85;
    transform: translateX(-50%);
}

/* ---------- Timeline ---------- */
.timeline-section .card-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--card);
}

.timeline-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.clipboard-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary);
    background: var(--primary-light);
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    transition: opacity 0.2s;
}

.clipboard-indicator.hidden {
    display: none;
}

.clipboard-icon {
    font-size: 0.8rem;
}

.timeline-wrapper {
    /* Removed max-height and overflow for full visibility in export */
    overflow-x: auto;
}

#timeline-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

#timeline-table thead {
    position: sticky;
    top: 0;
    z-index: 5;
}

#timeline-table th {
    background: var(--color-secondary);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-secondary);
    padding: 0.6rem 0.75rem;
    text-align: left;
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}

#timeline-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--border-light);
    vertical-align: top;
}

#timeline-table tr:hover td {
    background: rgba(127, 168, 201, 0.06);
}

/* Partner cell actions (copy/paste) */
.pc-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
    margin-top: 0.3rem;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.15s;
}

.btn-icon svg {
    width: 14px;
    height: 14px;
}

.btn-icon:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.btn-icon:disabled {
    opacity: 0.3;
    cursor: default;
}

.btn-icon:disabled:hover {
    color: var(--text-muted);
    background: transparent;
}

.btn-copy-week-copied {
    color: var(--color-primary-dark);
    background: var(--color-primary-light);
    border: 1px solid var(--color-primary);
}

.btn-copy-week-copied:hover {
    color: var(--color-primary-dark);
    background: #C2D4E3;
}

/* Week number */
.td-week {
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    width: 40px;
}

.td-dates {
    white-space: nowrap;
    color: var(--text-secondary);
    font-size: 0.78rem;
    width: 110px;
}

/* Month separator row */
.month-row td {
    background: var(--border-light) !important;
    padding: 0.4rem 0.75rem;
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--primary);
    border-bottom: 2px solid var(--border);
    letter-spacing: 0.02em;
}

/* Due date row */
.due-date-row td {
    background: linear-gradient(90deg, #FDF0ED 0%, #EFEEF5 100%) !important;
}

.td-dates-block {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.due-badge-row {
    display: flex;
}

.due-badge {
    display: inline-block;
    cursor: pointer;
    background: linear-gradient(135deg, #F4A7BB, #C4A7E7);
    color: #fff;
    font-size: 0.84rem;
    font-weight: 700;
    padding: 0.18rem 0.66rem;
    border-radius: 999px;
    vertical-align: middle;
    animation: badge-shimmer 2.5s ease-in-out infinite;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

@keyframes badge-shimmer {
    0%, 100% { opacity: 1; filter: brightness(1); }
    50% { opacity: 0.88; filter: brightness(1.12); }
}

/* Confetti */
.due-date-row {
    position: relative;
}

.confetti-piece {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
    animation: confetti-burst 1.2s ease-out forwards;
}

@keyframes confetti-burst {
    0% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--cx), var(--cy)) rotate(var(--cr)) scale(0.4);
    }
}

/* ---------- Partner Cell ---------- */
.partner-cell {
    min-width: 230px;
    border-left: 4px solid transparent;
    transition: background 0.15s;
}

.pc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.35rem;
}

.pc-name {
    font-weight: 600;
    font-size: 0.75rem;
    white-space: normal;
    overflow-wrap: break-word;
    flex: 1;
    min-width: 0;
}

.pc-salary {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    white-space: nowrap;
}

/* ---------- Day Columns (Icon Button + Label) ---------- */
.pc-days {
    display: flex;
    gap: 4px;
    margin-bottom: 0.3rem;
}

.day-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.day-label {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--text-muted);
    line-height: 1;
    user-select: none;
}

/* Day button â€” icon container */
.day-btn {
    width: 30px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    color: #fff;
    cursor: default;
    border: 2px solid transparent;
    transition: transform 0.1s ease, box-shadow 0.1s ease, border-color 0.1s ease;
    user-select: none;
    position: relative;
}

.day-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Status-specific styles */
.day-btn.work {
    background: var(--c-working);
    color: var(--color-muted-dark);
    /* Dark icon visible on near-white background */
    border-color: rgba(0, 0, 0, 0.12);
    /* Thin outline so it looks clickable */
}

/* .day-btn.leave — background and color set inline via JS */
.day-btn.leave.leave-vakantie {
    color: #8B5A2E;
    /* Dark amber — visible on Warm Apricot */
}

.day-btn.leave.leave-onbetaald {
    color: #6B6E7E;
    /* Darker variant of Soft Steel (#D1D4DB) */
}

.day-btn.sick {
    background: var(--c-sick);
    color: #7A3A35;
    /* Dark rose — legible on Muted Rose */
}

.day-btn.holiday {
    background: var(--c-holiday);
}

.day-btn.off {
    background: var(--c-off);
    border-color: transparent;
    width: 30px;
    height: 28px;
    border-radius: 5px;
}

/* Half day: diagonal split — icon colors match full-day counterparts */
.day-btn.half .split-icon-tiny .split-left {
    color: var(--color-muted-dark);
    /* Work icon: dark like full work day */
}

.day-btn.half .split-icon-tiny .split-right {
    color: inherit;
    /* Leave icon: white by default, overridden for light backgrounds */
}

.day-btn.half.half-work-sick .split-icon-tiny .split-right {
    color: #7A3A35;
    /* Sick icon: dark rose like full sick day */
}

.day-btn.half.leave-vakantie .split-icon-tiny .split-right {
    color: #8B5A2E;
    /* Dark amber — visible on Warm Apricot */
}

.day-btn.half.leave-onbetaald .split-icon-tiny .split-right {
    color: #6B6E7E;
    /* Darker variant of Soft Steel */
}

.day-btn.half-alt .split-icon-tiny .split-left {
    color: #7A3A35;
    /* Sick icon: dark rose like full sick day */
}

.day-btn.half-alt .split-icon-tiny .split-right {
    color: inherit;
}

.day-btn.half-alt.leave-vakantie .split-icon-tiny .split-right {
    color: #8B5A2E;
}

.day-btn.half-alt.leave-onbetaald .split-icon-tiny .split-right {
    color: #6B6E7E;
    /* Darker variant of Soft Steel */
}

/* Half day: diagonal split */
.day-btn.half {
    background: linear-gradient(135deg, var(--c-working) 50%, var(--vcolor, var(--color-primary)) 50%);
}

/* Half day alternate (sick + leave): diagonal split */
.day-btn.half-alt {
    background: linear-gradient(135deg, var(--c-sick) 50%, var(--vcolor, var(--color-primary)) 50%);
}

/* Exhausted pool indicator */
.day-btn.exhausted {
    border-color: var(--color-accent-dark);
    animation: pulse-border 1.5s ease-in-out infinite;
}

@keyframes pulse-border {

    0%,
    100% {
        border-color: var(--color-accent-dark);
    }

    50% {
        border-color: var(--color-accent);
    }
}

/* Clickable day buttons */
button.day-btn.clickable {
    cursor: pointer;
    border: 2px solid rgba(0, 0, 0, 0.12);
    padding: 0;
    font-family: inherit;
    outline: none;
}

.day-btn.clickable:hover {
    transform: scale(1.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.day-btn.clickable:active {
    transform: scale(0.92);
}

/* Half-day border colors (must follow button.day-btn.clickable for specificity) */
button.day-btn.clickable.half {
    border-color: var(--color-muted) var(--color-primary-dark) var(--color-primary-dark) var(--color-muted);
}

button.day-btn.clickable.half.half-work-sick {
    border-color: var(--color-muted) var(--color-accent-dark) var(--color-accent-dark) var(--color-muted);
}

button.day-btn.clickable.half-alt {
    border-color: var(--color-accent-dark) var(--color-primary-dark) var(--color-primary-dark) var(--color-accent-dark);
}

.pc-hours {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ---------- Childcare Cell ---------- */
.childcare-cell {
    width: 90px;
    text-align: center;
}

.cc-days {
    display: flex;
    gap: 3px;
    justify-content: center;
}

.cc-dot {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
    border-radius: 3px;
}

.cc-dot.needed {
    background: var(--c-childcare);
    color: #fff;
}

.cc-dot.partial {
    background: var(--color-accent-light);
    color: var(--color-accent-dark);
}

.cc-dot.ok {
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
}

.cc-dot.na {
    background: transparent;
    color: var(--c-off);
}

/* Toggleable childcare cell — sick parent is sole coverage reason */
button.cc-dot {
    cursor: pointer;
    font-family: inherit;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0;
    outline: none;
    transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

button.cc-dot.cc-dot-toggleable {
    border: 1.5px dashed currentColor;
    opacity: 0.82;
}

button.cc-dot.cc-dot-toggleable:hover {
    transform: scale(1.2);
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.18);
    opacity: 1;
    z-index: 2;
}

button.cc-dot.cc-dot-toggleable:active {
    transform: scale(0.92);
}

/* Overridden state: sick parent cannot care — childcare needed */
button.cc-dot.cc-dot-overridden {
    border-style: solid;
    opacity: 1;
}

/* First-interaction floating hint */
.cc-toggle-hint {
    position: fixed;
    transform: translateX(-50%);
    background: var(--color-text);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 500;
    padding: 0.3rem 0.7rem;
    border-radius: 5px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.cc-toggle-hint::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-bottom-color: var(--color-text);
}

.cc-toggle-hint.visible {
    opacity: 1;
}

/* Holiday notes */
.td-notes {
    font-size: 0.72rem;
    max-width: 200px;
}

.td-notes-holiday {
    color: var(--c-holiday);
    font-weight: 500;
    margin-bottom: 0.35rem;
}

.expired-leave-widget {
    font-size: 0.7rem;
    color: var(--color-accent-dark);
    background: var(--color-accent-light);
    padding: 0.25rem 0.4rem;
    border-radius: 4px;
    margin-bottom: 0.35rem;
}

.week-note-input {
    width: 100%;
    padding: 0.3rem 0.4rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.7rem;
    color: var(--text-secondary);
    background: #fff;
    transition: border-color 0.15s, background 0.15s;
    resize: vertical;
    min-height: 38px;
    line-height: 1.4;
}

.week-note-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 0 0 2px rgba(127, 168, 201, 0.2);
}

.week-note-input::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

/* ---------- Summary ---------- */
.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 1025px) {
    .summary-grid {
        grid-template-columns: 1fr;
    }
}

.summary-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--primary);
}

.partner-gantt {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--bg);
    border-radius: var(--radius);
}

.partner-gantt .gantt-bar {
    height: 32px;
    margin-bottom: 0;
}

.summary-stats {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-salary-avg {
    margin-left: auto;
    padding-left: 1rem;
    border-left: 1px solid var(--border);
}

@media (max-width: 600px) {
    .summary-stats {
        flex-wrap: nowrap;
        gap: 0.75rem;
    }

    .stat-value {
        font-size: 1rem;
    }

    .stat-label {
        font-size: 0.62rem;
    }

    .stat-salary-avg {
        padding-left: 0.6rem;
    }
}

.pool-bar {
    margin-bottom: 0.6rem;
}

.pool-label {
    font-size: 0.78rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.pool-expired-msg {
    font-weight: 400;
    color: var(--color-accent-dark);
    font-size: 0.72rem;
    margin-left: 0.35rem;
}

.pool-text {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.pool-text.over-budget {
    color: var(--color-accent-dark);
    font-weight: 600;
}

.pool-track {
    height: 8px;
    background: var(--border-light);
    border-radius: 999px;
    overflow: hidden;
}

.pool-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.3s ease;
}

.childcare-summary {
    margin-top: 1rem;
    padding: 0.75rem;
    background: var(--color-muted-light);
    border-radius: var(--radius);
    border: 1px solid var(--color-muted);
}

.childcare-summary h4 {
    font-size: 0.85rem;
    color: var(--c-childcare);
    margin-bottom: 0.4rem;
}

.childcare-summary .stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    padding: 0.15rem 0;
}

/* ---------- Footer ---------- */
.app-footer {
    background: var(--card);
    border-top: 1px solid var(--border);
    padding: 1rem 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ---------- Scrollbar ---------- */
.timeline-wrapper::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.timeline-wrapper::-webkit-scrollbar-track {
    background: var(--border-light);
}

.timeline-wrapper::-webkit-scrollbar-thumb {
    background: var(--color-muted);
    border-radius: 999px;
}

.timeline-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--color-muted);
}

/* ---------- Day Status Popover ---------- */
.day-popover {
    position: fixed;
    z-index: 1000;
    background: var(--card);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    padding: 0.75rem;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.15s ease, transform 0.15s ease;
    pointer-events: none;
}

.day-popover.visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.day-popover-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    min-width: 280px;
}

.popover-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.6rem 0.4rem;
    border: 2px solid rgba(0, 0, 0, 0.12);
    border-radius: var(--radius);
    background: var(--border-light);
    color: #fff;
    font-family: inherit;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    min-height: 60px;
}

.popover-option svg {
    width: 18px;
    height: 18px;
}

.popover-option:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.popover-option.active {
    box-shadow: 0 0 0 2px rgba(127, 168, 201, 0.4);
}

.popover-label {
    font-size: 0.68rem;
    line-height: 1.1;
    text-align: center;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Popover half-day options: icon colors match full-day counterparts */
.popover-option[data-value="half-work-leave"] .split-icon .split-left,
.popover-option[data-value="half-work-sick"] .split-icon .split-left {
    color: var(--color-muted-dark);
}

.popover-option[data-value="half-work-sick"] .split-icon .split-right {
    color: #7A3A35;
}

.popover-option[data-value="half-sick-leave"] .split-icon .split-left {
    color: #7A3A35;
}

/* Popover half-day borders: each side matches the color of that half's diagonal */
.popover-option[data-value="half-work-leave"] {
    border-color: var(--color-muted) var(--color-primary-dark) var(--color-primary-dark) var(--color-muted);
}

.popover-option[data-value="half-work-sick"] {
    border-color: var(--color-muted) var(--color-accent-dark) var(--color-accent-dark) var(--color-muted);
}

.popover-option[data-value="half-sick-leave"] {
    border-color: var(--color-accent-dark) var(--color-primary-dark) var(--color-primary-dark) var(--color-accent-dark);
}

/* Split icons in popover */
.split-icon {
    display: flex;
    width: 100%;
    height: 20px;
    align-items: center;
    justify-content: space-between;
}

.split-icon .split-left,
.split-icon .split-right {
    display: flex;
    align-items: center;
    width: 30%;
    height: 18px;
}

.split-icon .split-left {
    justify-content: flex-end;
    padding-right: 3px;
}

.split-icon .split-right {
    justify-content: flex-start;
    padding-left: 3px;
}

.split-icon .split-left svg,
.split-icon .split-right svg {
    width: 14px;
    height: 14px;
}

/* Tiny split icons for day buttons */
.split-icon-tiny {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    gap: 1px;
}

.split-icon-tiny .split-left,
.split-icon-tiny .split-right {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.split-icon-tiny .split-left svg,
.split-icon-tiny .split-right svg {
    width: 10px;
    height: 10px;
}

/* ---------- Welcome Banner ---------- */
.welcome-banner {
    background: linear-gradient(135deg, #5B8AB5 0%, #7FA8C9 100%);
    color: #fff;
    padding: 1.5rem 1.25rem;
}

.welcome-banner-inner {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.welcome-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.welcome-text p {
    font-size: 0.875rem;
    opacity: 0.92;
    line-height: 1.6;
    max-width: 680px;
}

.welcome-text p+p,
.welcome-text p+h3 {
    margin-top: 0.75rem;
}

.welcome-howto-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.welcome-howto-list {
    margin: 0 0 0 1.25rem;
    padding: 0;
    font-size: 0.875rem;
    opacity: 0.92;
    line-height: 1.7;
}

.welcome-howto-list li {
    margin-bottom: 0.35rem;
}

.welcome-howto-list ul {
    margin: 0.25rem 0 0 1rem;
    list-style: none;
}

.welcome-howto-list ul li::before {
    content: "— ";
    opacity: 0.8;
}

.welcome-tip {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.9);
}

.welcome-tip::before {
    content: none;
}

.welcome-tip strong {
    color: rgba(255, 255, 255, 0.95);
}

.btn-coffee {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.75rem 0;
    padding: 0.5rem 1rem;
    background: #fff;
    color: #000;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: var(--radius);
    border: 1px solid rgba(0, 0, 0, 0.12);
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}

.btn-coffee-icon {
    width: 28px;
    height: auto;
    flex-shrink: 0;
}

.btn-coffee:hover {
    background: var(--color-secondary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.welcome-contact {
    flex-shrink: 0;
    font-size: 0.8rem;
    opacity: 0.85;
    text-align: right;
    line-height: 1.6;
}

.welcome-contact a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.welcome-contact a:hover {
    opacity: 0.8;
}

@media (max-width: 700px) {
    .welcome-contact {
        text-align: left;
    }
}

.footer-links {
    margin-top: 0.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
}

.footer-links a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.footer-sep {
    color: var(--text-muted);
}

/* ---------- Disclaimer Modal ---------- */
.modal-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.disclaimer-lang-toggle .lang-btn {
    background: rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.2);
    color: var(--text);
}

.disclaimer-lang-toggle .lang-btn:hover {
    background: rgba(15, 23, 42, 0.12);
    border-color: rgba(15, 23, 42, 0.35);
}

.disclaimer-lang-toggle .lang-btn.active {
    background: rgba(15, 23, 42, 0.18);
    border-color: rgba(15, 23, 42, 0.5);
}

.disclaimer-lang-toggle .lang-sep {
    color: var(--text-muted);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9000;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-box {
    background: var(--card);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    padding: 2rem;
    max-width: 480px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-icon {
    font-size: 2rem;
    line-height: 1;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.modal-body {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.modal-body a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.modal-privacy-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--bg);
    border-radius: var(--radius);
    padding: 0.5rem 0.75rem;
}

.modal-check-label {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text);
    line-height: 1.5;
}

.modal-check-label input[type="checkbox"] {
    margin-top: 0.15rem;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}

.modal-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.25rem;
    flex-wrap: wrap;
}

.modal-link {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.modal-link:hover {
    color: var(--primary);
}

.modal-accept-btn {
    margin-left: auto;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, opacity 0.15s;
}

.btn-primary:hover:not(:disabled) {
    background: var(--color-primary-dark);
}

.btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

body.modal-open {
    overflow: hidden;
}

/* ---------- Leave Info Modal ---------- */
.leave-info-modal-box {
    max-width: 560px;
    max-height: 82vh;
    overflow-y: auto;
    padding: 1.5rem;
}

.leave-info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.leave-info-header-left {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-width: 0;
}

.leave-info-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}

.btn-modal-close {
    background: none;
    border: none;
    font-size: 1rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.3rem 0.4rem;
    border-radius: var(--radius);
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.12s, background 0.12s;
}

.btn-modal-close:hover {
    color: var(--text);
    background: var(--bg);
}

.leave-info-body {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.li-sources {
    font-size: 0.78rem;
    background: var(--bg);
    border-radius: var(--radius);
    padding: 0.5rem 0.75rem;
    margin-bottom: 1.125rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    color: var(--text-muted);
}

.li-sources strong {
    color: var(--text-secondary);
    margin-bottom: 0.1rem;
}

.li-sources a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    word-break: break-all;
}

.li-sources a:hover {
    color: var(--color-primary-dark);
}

.li-section {
    margin-bottom: 0.875rem;
}

.li-section:last-child {
    margin-bottom: 0;
}

.li-section h4 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.35rem;
}

.li-section p {
    margin: 0;
}

.li-section ul {
    margin: 0;
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.li-section li {
    line-height: 1.55;
}

.li-section strong {
    color: var(--text);
    font-weight: 600;
}

/* ---------- Export Modal ---------- */

.export-modal-box {
    max-width: 400px;
}

.export-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.export-modal-section {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.export-modal-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.25rem;
}

.export-check-label {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text);
    line-height: 1.4;
    padding: 0.2rem 0;
    border-radius: var(--radius);
    transition: color 0.1s;
}

.export-check-label:hover {
    color: var(--primary);
}

.export-check-label input[type="checkbox"] {
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    accent-color: var(--primary);
    cursor: pointer;
}