.confirmation-details {
        background: #343a40;
        border-color: #6c757d;
    }/* Multi-Day Picker CSS - Redesigned to match multi_view_main.css and request_viewer.css */

/* ===================================================================
   OVERLAY AND CONTAINER - Matching request_viewer.css modal pattern
   =================================================================== */

.multi-day-picker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
    box-sizing: border-box;
}

.multi-day-picker-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: fit-content;
    max-width: 90%;
    min-width: auto;
    max-height: 85vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: box-shadow 0.2s ease;
}

/* Narrow width for confirmation mode */
.multi-day-picker-container.confirmation-mode {
    min-width: auto;
    width: fit-content;
}

.multi-day-picker-container.dragging {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    cursor: move;
    user-select: none;
}

/* ===================================================================
   HEADER - Matching multi_view_main.css #top-bar style
   =================================================================== */

.multi-day-picker-header {
    background-color: #0D882C;
    color: white;
    padding: 15px 20px;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px 8px 0 0;
    cursor: move;
    user-select: none;
}

.multi-day-picker-header:hover {
    background-color: #0b7a26;
}

/* Orange header for confirmation view */
.confirmation-view ~ .multi-day-picker-header,
.multi-day-picker-container.confirmation-mode .multi-day-picker-header {
    background-color: #ff8c00;
}

.multi-day-picker-container.confirmation-mode .multi-day-picker-header:hover {
    background-color: #e67c00;
}

/* Prevent text selection during drag */
.multi-day-picker-container.dragging * {
    user-select: none !important;
    pointer-events: none;
}

/* Keep interactive elements working during drag */
.multi-day-picker-container.dragging .close-btn {
    pointer-events: auto;
}

.multi-day-picker-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
}

.picker-title .request-type {
    color: white;
    font-weight: bold;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
    padding: 4px 8px;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* ===================================================================
   SELECTION VIEW LAYOUT
   =================================================================== */

.multi-day-picker-main-row {
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding: 20px 20px 20px 20px;
    background-color: #f8f9fa;
}

.multi-day-picker-calendar-col {
    min-width: 240px;
    max-width: 260px;
    flex-shrink: 0;
    background: white;
    padding: 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.calendar-grid {
    transform: none;
    transform-origin: top left;
    margin-bottom: 0;
}

.multi-day-picker-side-col {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 200px;
    gap: 15px;
}

.multi-day-picker-side-col .date-time-inputs {
    margin-bottom: 0;
}

.multi-day-picker-side-col .selection-status {
    margin-bottom: 0;
}

.multi-day-picker-side-col .multi-day-picker-actions {
    padding: 0;
    border: none;
    background: none;
    border-radius: 0;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* ===================================================================
   FORM ELEMENTS - Matching multi_view_main.css input styles
   =================================================================== */

.category-selection,
.description-field {
    background: white;
    padding: 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.category-selection label,
.description-field label,
.date-input-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #495057;
    margin-bottom: 6px;
}

.category-dropdown {
    width: 160px;
    padding: 6px 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 13px;
    background: white;
    color: #495057;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.category-dropdown:focus {
    outline: none;
    border-color: #0D882C;
    box-shadow: 0 0 0 2px rgba(13, 136, 44, 0.1);
}

/* Description Field */
.description-textarea {
    width: 100%;
    min-height: 70px;
    max-height: 100px;
    padding: 6px 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 13px;
    font-family: Arial, sans-serif;
    background: white;
    color: #495057;
    resize: vertical;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.description-textarea:focus {
    outline: none;
    border-color: #0D882C;
    box-shadow: 0 0 0 2px rgba(13, 136, 44, 0.1);
}

.description-textarea::placeholder {
    color: #adb5bd;
    font-style: italic;
}

/* Date/Time Inputs */
.date-time-inputs {
    background: white;
    padding: 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.date-input-group {
    margin-bottom: 16px;
}

.date-input-group:last-child {
    margin-bottom: 0;
}

.datetime-input {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.datetime-input input[type="date"],
.datetime-input input[type="time"] {
    width: 160px;
    box-sizing: border-box;
    padding: 6px 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 13px;
    font-family: Arial, sans-serif;
    background: white;
    color: #495057;
    transition: border-color 0.2s;
    cursor: pointer;
}

/* Hide native calendar/clock icons
.datetime-input input[type="date"]::-webkit-calendar-picker-indicator,
.datetime-input input[type="time"]::-webkit-calendar-picker-indicator {
    display: none;
    -webkit-appearance: none;
}
 */

.datetime-input input[type="date"]::-webkit-inner-spin-button,
.datetime-input input[type="time"]::-webkit-inner-spin-button {
    display: none;
}

.datetime-input input[type="date"]::-webkit-clear-button,
.datetime-input input[type="time"]::-webkit-clear-button {
    display: none;
}

/* Make entire input clickable to open picker */
.datetime-input input[type="date"],
.datetime-input input[type="time"] {
    position: relative;
}

.datetime-input input[type="date"]:focus,
.datetime-input input[type="time"]:focus {
    outline: none;
    border-color: #0D882C;
    box-shadow: 0 0 0 2px rgba(13, 136, 44, 0.1);
}

.datetime-input input[type="date"]:hover,
.datetime-input input[type="time"]:hover {
    border-color: #0D882C;
    background-color: #f8f9fa;
}

/* ── Custom desktop time picker ──────────────────────────────────────
   Cosmetic field rendered on top of the hidden .*-time-input. Sized to
   match the native date/time inputs above it (160px, green accent). */
.tp-field {
    position: relative;
    width: 160px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 4px 0 10px;
    height: 32px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tp-field:hover {
    border-color: #0D882C;
}

.tp-field:focus-within {
    border-color: #0D882C;
    box-shadow: 0 0 0 2px rgba(13, 136, 44, 0.1);
}

.tp-icon-clock {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    fill: none;
    stroke: #0D882C;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tp-visible {
    flex: 1 1 auto;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    padding: 0;
    font-size: 13px;
    font-family: Arial, sans-serif;
    color: #495057;
    letter-spacing: 0.3px;
}

.tp-steppers {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
}

.tp-step {
    border: none;
    background: transparent;
    padding: 0 3px;
    margin: 0;
    line-height: 0;
    cursor: pointer;
    color: #adb5bd;
    -webkit-tap-highlight-color: transparent;
    touch-action: none;
}

.tp-step:hover {
    color: #0D882C;
}

.tp-step svg {
    width: 13px;
    height: 9px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tp-list-btn {
    flex: 0 0 auto;
    border: none;
    border-left: 1px solid #e9ecef;
    background: transparent;
    padding: 0 2px 0 6px;
    margin: 0;
    line-height: 0;
    cursor: pointer;
    color: #adb5bd;
}

.tp-list-btn:hover {
    color: #0D882C;
}

.tp-list-btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Quick-pick menu of 30-min presets */
.tp-menu {
    position: absolute;
    z-index: 60;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 196px;
    overflow-y: auto;
    background: white;
    border: 1px solid #ced4da;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
    font-size: 13px;
    font-family: Arial, sans-serif;
}

.tp-menu-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    color: #495057;
    cursor: pointer;
}

.tp-menu-row:hover {
    background: #f1f3f5;
}

/* Outside the resolved office hours (leave menus only): still selectable,
   tinted to flag that the office-hours guard / backend will likely reject. */
.tp-menu-row-oob {
    background: #fdecec;
    color: #a94442;
}

.tp-menu-row-oob .tp-menu-hint {
    color: #cf9b9a;
}

.tp-menu-row-oob:hover {
    background: #f8dcdc;
}

.tp-menu-row-current {
    background: rgba(13, 136, 44, 0.12);
    color: #0D882C;
    font-weight: 600;
}

.tp-menu-hint {
    color: #adb5bd;
    font-size: 12px;
}

/* Selection Status - Matching multi_view_main.css info boxes.
   Single source of duration/validation feedback (updateSelectionStatus);
   the hourglass icon anchors it visually next to the time pickers. */
.selection-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 4px;
    padding: 9px 12px;
    text-align: center;
}

.selection-status-icon {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    fill: none;
    stroke: #856404;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.selection-status-body {
    min-width: 0;
}

.selection-text {
    font-size: 13px;
    color: #856404;
    font-weight: normal;
}

/* Per-day duration math appended after the selection text (e.g. " = 7.5h + 8h
   + 6.5h"). Shown only for multi-day selections. */
.selection-breakdown {
    font-size: 13px;
    color: #856404;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* ===================================================================
   CALENDAR - More data-table aesthetic
   =================================================================== */

.calendar-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

.nav-btn {
    background: white;
    border: 1px solid #ced4da;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    transition: all 0.2s;
}

.nav-btn:hover {
    background: #0D882C;
    border-color: #0D882C;
    color: white;
}

.nav-btn:active {
    transform: scale(0.95);
}

.current-month-year {
    font-size: 14px;
    font-weight: 700;
    color: #495057;
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 8px;
    background-color: #e9ecef;
    padding: 4px 2px;
}

.weekday {
    text-align: center;
    font-size: 9px;
    font-weight: bold;
    color: #495057;
    padding: 4px 2px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.days-container {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 11px;
    font-weight: normal;
    transition: all 0.15s;
    position: relative;
    color: #495057;
    background: white;
}

.calendar-day:hover {
    background: #e9ecef;
    border-color: #0D882C;
}

.calendar-day.other-month {
    color: #adb5bd;
    background: #f8f9fa;
}

.calendar-day.disabled {
    color: #dee2e6;
    cursor: not-allowed;
    background: #f8f9fa;
}

.calendar-day.disabled:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
}

.calendar-day.today {
    background: #fff3cd;
    color: #856404;
    font-weight: bold;
    border-color: #ffc107;
}

.calendar-day.selected {
    background: #0D882C;
    color: white;
    font-weight: bold;
    border-color: #0D882C;
}

.calendar-day.in-range {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.calendar-day.selected.in-range {
    background: #0D882C;
    color: white;
    border-color: #0D882C;
}

/* Off-day styling - light red background */
.calendar-day.off-day {
    background-color: #ffe5e5;
    color: #721c24;
}

.calendar-day.off-day:hover {
    background-color: #ffcccc;
    border-color: #f5c6cb;
}

/* Phase 5.C — small dot in the corner indicating this date already has at
   least one active leave slot.  Day stays clickable; the dot is just a
   "head's up" so the user knows extending the picker's range across this
   date will trigger the per-day overlap guard.  Implemented as a
   ::before pseudo-element so it composes cleanly with every other
   calendar-day modifier (selected, in-range, today, off-day) without
   touching the main background colors.  Easy revert: delete this block
   plus the `.has-blocked-slots` class assignment in multi_day_picker.js. */
.calendar-day.has-blocked-slots {
    position: relative;
}

.calendar-day.has-blocked-slots::before {
    content: '';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #ff8c00;        /* matches the cancel/header orange */
    pointer-events: none;
}

/* When the day is selected/in-range, lift the dot to white so it remains
   visible against the highlighted background. */
.calendar-day.has-blocked-slots.selected::before,
.calendar-day.has-blocked-slots.in-range::before {
    background-color: white;
}

/* Phase 5.C.2 — fully-booked days: every active block consumes the entire
   usable office window for that date, so the user can't fit any new slot.
   Painted distinct from the generic past-the-bounds `.disabled` (which is
   just a light gray) so the user can see "this day exists but is full".
   Strike-through lettering is the most universal "this option is full"
   convention.  isDateDisabled() also returns true for these dates so
   cursor becomes not-allowed and clicks do nothing.

   Composes cleanly with `.has-blocked-slots` (the orange dot stays). */
.calendar-day.fully-booked {
    background-color: #f1f3f5;
    color: #adb5bd;
    text-decoration: line-through;
    cursor: not-allowed;
}

.calendar-day.fully-booked:hover {
    background-color: #f1f3f5;
    border-color: transparent;
}

.calendar-day.off-day.other-month {
    background-color: #fff0f0;
    color: #adb5bd;
}

.calendar-day.off-day.disabled {
    background-color: #fff5f5;
    color: #dee2e6;
}

.calendar-day.off-day.disabled:hover {
    background-color: #fff5f5;
    border-color: #dee2e6;
}

/* Selected off-days should still show selection color */
.calendar-day.off-day.selected {
    background: #0D882C;
    color: white;
    border-color: #0D882C;
}

/* In-range off-days get a blended color */
.calendar-day.off-day.in-range {
    background: #ffd4d4;
    color: #721c24;
    border-color: #f5c6cb;
}

/* Today + off-day combination */
.calendar-day.off-day.today {
    background: #ffe5cc;
    color: #856404;
    border-color: #ffc107;
    font-weight: bold;
}

/* ✅ SELECTED OFF-DAYS - This should come AFTER basic off-day styles */
/* Selected off-days should ALWAYS show selection color (highest priority) */
.calendar-day.selected.off-day,
.calendar-day.off-day.selected {
    background: #0D882C !important;  /* Force green background */
    color: white !important;
    border-color: #0D882C !important;
}

/* In-range off-days get a blended color (but not selected) */
.calendar-day.off-day.in-range:not(.selected) {
    background: #ffd4d4;
    color: #721c24;
    border-color: #f5c6cb;
}

/* Dark mode support for off-days */
@media (prefers-color-scheme: dark) {
    .calendar-day.off-day {
        background-color: #5a1f1f;
        color: #ffcccc;
    }
    
    .calendar-day.off-day:hover {
        background-color: #6e2828;
    }
    
    .calendar-day.off-day.other-month {
        background-color: #3d1515;
        color: #6c757d;
    }
    
    .calendar-day.off-day.in-range {
        background: #7a3030;
        color: #ffcccc;
        border-color: #8b4545;
    }
}

/* ===================================================================
   CONFIRMATION VIEW - Matching request_viewer.css table layout
   =================================================================== */

.confirmation-view {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.confirmation-content {
    padding: 20px 20px;
    flex: 1;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.confirmation-header {
    margin-bottom: 20px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
    width: 100%;
}

.confirmation-header h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: bold;
    color: #495057;
}

.confirmation-subtitle {
    margin: 0;
    font-size: 13px;
    color: #6c757d;
    line-height: 1.4;
}

.confirmation-details {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 0;
    margin-bottom: 20px;
    width: auto;
    min-width: auto;
}

.detail-row {
    display: flex;
    border-bottom: 1px solid #dee2e6;
    align-items: stretch;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 13px;
    font-weight: bold;
    color: #495057;
    background-color: #f8f9fa;
    padding: 8px 10px;
    width: auto;
    min-width: 100px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    border-right: 1px solid #dee2e6;
    white-space: nowrap;
}

.detail-value {
    font-size: 13px;
    color: #212529;
    font-weight: normal;
    padding: 8px 10px;
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    word-break: break-word;
    white-space: nowrap;
}

/* Quota / advisory rows (v6): wrap long advisory sentences (see
   request_cancel_review.css note — .detail-value is nowrap by default). */
.quota-info-row .detail-value,
.quota-info-row .quota-value {
    white-space: normal;
    word-break: break-word;
    line-height: 1.4;
    max-width: 460px;
}

.quota-advisory-warning .quota-value {
    color: #c0392b;
}

.detail-value.request-type-value {
    color: #0D882C;
    font-weight: bold;
}

.detail-value.category-value {
    color: #0D882C;
    font-weight: bold;
}

.detail-value.duration-value {
    color: #495057;
    font-weight: bold;
}

.detail-value.description-value {
    color: #6c757d;
    font-style: italic;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 100px;
    max-width: 300px;
    overflow-y: auto;
    display: block;
}

.confirmation-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 0;
    width: 100%;
}

/* ===================================================================
   BUTTONS - Matching multi_view_main.css button styles
   =================================================================== */

.multi-day-picker-actions {
    padding: 15px 20px;
    border-top: 1px solid #dee2e6;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    background: white;
    border-radius: 0 0 8px 8px;
}

.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: normal;
    cursor: pointer;
    transition: background-color 0.2s ease;
    min-width: 80px;
}

.cancel-btn,
.back-btn {
    background-color: #6c757d;
    color: white;
}

.cancel-btn:hover,
.back-btn:hover {
    background-color: #5a6268;
}

.apply-btn {
    background-color: #007bff;
    color: white;
}

.apply-btn:hover:not(:disabled) {
    background-color: #0069d9;
}

.apply-btn:disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
    opacity: 0.6;
}

.send-btn {
    background-color: #0D882C;
    color: white;
}

.send-btn:hover {
    background-color: #0b6f23;
}

/* ===================================================================
   RESPONSIVE DESIGN
   =================================================================== */

@media (max-width: 768px) {
    /* Full-screen sheet on mobile: fill the viewport instead of centering
       a draggable modal. Header sticks at the top of the scroll area. */
    .multi-day-picker-overlay {
        padding: 0;
    }

    /* Both selectors needed: the desktop rule for `.confirmation-mode`
       has higher specificity (two classes) and would otherwise pin the
       container to `width: fit-content` on the Confirm Request screen. */
    .multi-day-picker-container,
    .multi-day-picker-container.confirmation-mode {
        width: 100%;
        max-width: none;
        min-width: 0;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
    }

    .multi-day-picker-header {
        position: sticky;
        top: 0;
        z-index: 1;
        border-radius: 0;
        cursor: default;
        flex-shrink: 0;
    }

    /* Drag is mouse-only and a no-op on touch; neutralize the visual hook. */
    .multi-day-picker-container.dragging {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        cursor: default;
    }

    .multi-day-picker-main-row {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .multi-day-picker-calendar-col {
        min-width: auto;
        max-width: none;
        width: 100%;
        box-sizing: border-box;
    }

    .multi-day-picker-side-col {
        min-width: auto;
        max-width: none;
        width: 100%;
    }

    /* Larger calendar tap targets for touch. */
    .calendar-day {
        font-size: 14px;
        min-height: 36px;
    }

    .category-dropdown {
        width: 100%;
    }

    .description-textarea {
        min-height: 90px;
    }

    /* Bump action buttons to a comfortable tap height. */
    .action-btn {
        min-height: 44px;
    }

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

    .datetime-input input[type="date"],
    .datetime-input input[type="time"] {
        width: 100%;
        max-width: 100%;
        background-position: right 8px center;
        min-height: 40px;
    }

    /* Keep native picker indicators visible and functional on mobile */
    .datetime-input input[type="date"]::-webkit-calendar-picker-indicator,
    .datetime-input input[type="time"]::-webkit-calendar-picker-indicator {
        opacity: 1;
    }

    .detail-row {
        flex-direction: column;
    }

    .detail-label {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #dee2e6;
    }

    .detail-value {
        white-space: normal;
    }

    .detail-value.description-value {
        max-width: none;
    }

    .confirmation-details {
        width: 100%;
        min-width: auto;
    }

    .confirmation-actions,
    .multi-day-picker-actions {
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .multi-day-picker-header,
    .multi-day-picker-main-row,
    .multi-day-picker-actions,
    .confirmation-content {
        padding: 12px;
    }

    .calendar-day {
        font-size: 13px;
    }
}

/* ===================================================================
   DARK MODE - Matching application dark mode support
   =================================================================== */

@media (prefers-color-scheme: dark) {
    .multi-day-picker-container {
        background: #343a40;
        color: #f8f9fa;
    }

    .multi-day-picker-header {
        background-color: #0D882C;
    }

    .multi-day-picker-main-row,
    .confirmation-content {
        background-color: #495057;
    }

    .multi-day-picker-calendar-col,
    .category-selection,
    .description-field,
    .date-time-inputs {
        background: #343a40;
        border-color: #6c757d;
    }

    .category-dropdown,
    .description-textarea,
    .datetime-input input[type="date"],
    .datetime-input input[type="time"] {
        background: #495057;
        border-color: #6c757d;
        color: #f8f9fa;
    }

    /* Ensure dark mode picker indicators remain visible */
    .datetime-input input[type="date"]::-webkit-calendar-picker-indicator,
    .datetime-input input[type="time"]::-webkit-calendar-picker-indicator {
        filter: invert(1);
        opacity: 0.8;
    }

    .datetime-input input[type="date"]::-webkit-calendar-picker-indicator:hover,
    .datetime-input input[type="time"]::-webkit-calendar-picker-indicator:hover {
        opacity: 1;
    }

    /* Attempt to hide clear button in date/time inputs */
    .datetime-input input[type="date"]::-webkit-clear-button,
    .datetime-input input[type="time"]::-webkit-clear-button {
        display: none;
        -webkit-appearance: none;
    }

    /* For Firefox */
    .datetime-input input[type="date"]::-moz-clear,
    .datetime-input input[type="time"]::-moz-clear {
        display: none;
    }

    .calendar-day {
        background: #495057;
        border-color: #6c757d;
        color: #f8f9fa;
    }

    .calendar-day:hover {
        background: #6c757d;
    }

    .calendar-day.other-month {
        background: #343a40;
        color: #6c757d;
    }

    .calendar-day.disabled {
        background: #343a40;
        color: #495057;
    }

    .detail-label {
        background-color: #495057;
        color: #f8f9fa;
        border-color: #6c757d;
    }

    .detail-value {
        color: #f8f9fa;
    }

    .tp-field {
        background: #495057;
        border-color: #6c757d;
    }

    .tp-visible {
        color: #f8f9fa;
    }

    .tp-menu {
        background: #343a40;
        border-color: #6c757d;
    }

    .tp-menu-row {
        color: #f8f9fa;
    }

    .tp-menu-row:hover {
        background: #495057;
    }

    .tp-menu-row-oob {
        background: #4a2626;
        color: #e8a9a9;
    }

    .tp-menu-row-oob .tp-menu-hint {
        color: #b97f7f;
    }

    .tp-menu-row-oob:hover {
        background: #5a3030;
    }

    .tp-menu-row-current {
        background: rgba(13, 136, 44, 0.35);
        color: #9fe1cb;
    }

    .selection-status {
        background: #856404;
        border-color: #ffc107;
    }

    .selection-status-icon {
        stroke: #fff3cd;
    }

    .selection-text,
    .selection-breakdown {
        color: #fff3cd;
    }

    .multi-day-picker-actions {
        background: #495057;
        border-top-color: #6c757d;
    }

    /* Hide default action footer when in selection view - buttons moved to side column */
    .selection-view ~ .multi-day-picker-actions {
        display: none;
    }

    /* Show action footer in confirmation view */
    .multi-day-picker-container.confirmation-mode .multi-day-picker-actions {
        display: flex;
    }
}

/* ===================================================================
   PRINT STYLES
   =================================================================== */

@media print {
    .multi-day-picker-overlay {
        display: none !important;
    }
}
/* ===================================================================
   v6 CONFIRMATION REDESIGN — mirrors the review dialog's fact grid /
   calc disclosure / quota strip / advisory banners / pinned actions.
   Scoped to the confirmation view so the date-picking step is untouched.
   =================================================================== */

/* A + F: fixed width in confirmation mode; header + action row pinned,
   the details scroll in their own region */
.multi-day-picker-container.confirmation-mode {
    width: min(640px, 95vw);
    max-width: min(640px, 95vw);
    overflow: hidden;            /* scrolling moves to .confirmation-scroll */
}

/* The flex chain must pass min-height:0 down every level, or the container
   grows past 85vh instead of scrolling internally. */
.confirmation-view {
    min-height: 0;
}

.confirmation-view .confirmation-content {
    min-height: 0;
    align-items: stretch;
    padding-bottom: 0;
}

.confirmation-scroll {
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
    margin-bottom: 12px;
}

.confirmation-view .confirmation-actions {
    flex-shrink: 0;
    padding: 12px 0 16px;
    border-top: 1px solid #dee2e6;
    background: #f8f9fa;
}

/* The details wrapper becomes a gap-stacked container; each block carries
   its own border instead of one shared table frame. */
.confirmation-view .confirmation-details {
    border: none;
    margin-bottom: 0;
    width: 100%;
    display: grid;
    gap: 10px;
}

.confirmation-view .detail-row.description-row {
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.confirmation-view .description-row .detail-value.description-value {
    max-width: none;
}

/* B: two-column fact grid (request type / category / from / to) */
.confirmation-view .fact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: #dee2e6;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    overflow: hidden;
}

.confirmation-view .fact {
    background: #fff;
    padding: 7px 10px;
}

.confirmation-view .fact-k {
    font-size: 10.5px;
    font-weight: 700;
    color: #868e96;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.confirmation-view .fact-v {
    font-size: 13px;
    font-weight: 600;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    word-break: break-word;
}

.confirmation-view .fact-v.request-type-value,
.confirmation-view .fact-v.category-value {
    color: #0D882C;
}

/* C: duration + per-day calculation disclosure */
.confirmation-view .detail-calc {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: #f8f9fa;
}

.confirmation-view .detail-calc summary {
    cursor: pointer;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 600;
    color: #495057;
    list-style: none;
    display: flex;
    gap: 8px;
    align-items: center;
}

.confirmation-view .detail-calc summary::-webkit-details-marker { display: none; }

/* Expand/collapse caret sits right after the "(span N days)" note — larger
   and in the app accent so it reads clearly as a toggle. */
.confirmation-view .detail-calc summary::after {
    content: "▸";
    color: #0d882c;
    font-size: 16px;
    line-height: 1;
}

.confirmation-view .detail-calc[open] summary::after { content: "▾"; }

.confirmation-view .detail-calc.no-days summary { cursor: default; }
.confirmation-view .detail-calc.no-days summary::after { content: ""; }
.confirmation-view .detail-calc.no-days { pointer-events: none; }

.confirmation-view .detail-calc-label { color: #6c757d; font-weight: 700; }

/* Per-day breakdown: scroll past ~4 rows so a long span stays compact. */
/* Flattened calendar code under a long full-day run: one letter per weekday
   slot, grouped by week. Monospaced so the week groups line up; red = holiday
   inside the run, green = make-up work day. */
.confirmation-view .breakdown-line.breakdown-code {
    font-family: ui-monospace, Menlo, Consolas, monospace;
    letter-spacing: .09em;
    padding-left: 1.1em;
    color: #868e96;
}

.confirmation-view .breakdown-code .sd-hol { color: #c0392b; font-weight: 700; }
.confirmation-view .breakdown-code .sd-mk  { color: #0d882c; font-weight: 700; }
.confirmation-view .breakdown-code .sd-sel { color: #2b5cd9; }

.confirmation-view .detail-calc-days {
    padding: 4px 10px 10px;
    color: #6c757d;
    font-size: 12px;
    line-height: 1.6;
    font-variant-numeric: tabular-nums;
    max-height: 90px;
    overflow-y: auto;
}

/* D: quota strip with settled / pending / over bar */
.confirmation-view .quota-strip {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 8px 10px;
    display: grid;
    gap: 6px;
    font-size: 13px;
    color: #212529;
    background: #fff;
}

.confirmation-view .quota-strip.quota-loading-placeholder {
    color: #adb5bd;
    font-style: italic;
}

.confirmation-view .quota-line {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.confirmation-view .quota-line b { font-variant-numeric: tabular-nums; }

.confirmation-view .quota-line-sub {
    font-size: 12px;
    color: #6c757d;
}

.confirmation-view .quota-bar {
    height: 6px;
    border-radius: 3px;
    background: #e9ecef;
    overflow: hidden;
    display: flex;
}

.confirmation-view .quota-bar-used { background: #4a7ddc; }
.confirmation-view .quota-bar-pend { background: #a5bff0; }
.confirmation-view .quota-bar-applied { background: #2e9e44; }
.confirmation-view .quota-bar-over { background: #c0392b; }
.confirmation-view .quota-bar-remain { background: #ced4da; }

/* Legend line: Used / Pending / Applied / Remaining, each with a swatch that
   matches its bar segment so the colors are self-explanatory. */
.confirmation-view .quota-figs {
    gap: 3px 14px;
    flex-wrap: wrap;
}

.confirmation-view .quota-fig {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-variant-numeric: tabular-nums;
}

.confirmation-view .quota-sw {
    width: 11px;
    height: 11px;
    border-radius: 3px;
    flex: 0 0 auto;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
}

.confirmation-view .quota-sw-used { background: #4a7ddc; }
.confirmation-view .quota-sw-pend { background: #a5bff0; }
.confirmation-view .quota-sw-applied { background: #2e9e44; }
.confirmation-view .quota-sw-over { background: #c0392b; }
.confirmation-view .quota-sw-remain { background: #ced4da; }

/* Split swatch — green+red cells (proportional) mirroring a partially-over
   Applied bar segment. Wider so both colors read at a glance. */
.confirmation-view .quota-sw-split { display: flex; overflow: hidden; width: 18px; background: none; }
.confirmation-view .quota-sw-split > span { display: block; height: 100%; }

.confirmation-view .quota-mid {
    display: grid;
    gap: 6px;
}

/* Used-hours breakdown: one row per consumed day with its source. Rows stay
   single-line so the dialog never scrolls sideways on a phone. */
.confirmation-view .quota-detail { display: grid; gap: 4px; }

.confirmation-view .quota-detail-toggle {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-size: 12px;
    color: #4a7ddc;
    text-decoration: underline;
    cursor: pointer;
}

/* One grid for the whole list, with the rows as display:contents, so the
   three columns line up down the list instead of each row sizing its own. */
.confirmation-view .quota-detail-list {
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 2px 12px;
    font-size: 12px;
    color: #6c757d;
    font-variant-numeric: tabular-nums;
    text-align: left;
}
/* Toggle and sort control share one line. The sort control is shown only
   while the rows are, and reads as the order currently applied. */
.confirmation-view .quota-detail-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.confirmation-view .quota-detail-order {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-size: 11px;
    color: #6c757d;
    text-decoration: underline;
    cursor: pointer;
}

.confirmation-view .quota-detail-order[hidden] { display: none; }
/* [hidden] alone loses to display:grid — restate it. */
.confirmation-view .quota-detail-list[hidden] { display: none; }

.confirmation-view .quota-detail-row { display: contents; }

.confirmation-view .quota-detail-hours { text-align: right; }

/* Days an upload recorded for the employee, rather than leave they filed —
   the entries the breakdown exists to explain. */
.confirmation-view .quota-detail-src-register,
.confirmation-view .quota-detail-src-legacy_report { color: #8f2f23; }

/* E: full-width advisory banners after the description */
.confirmation-view .advisory-block { display: grid; gap: 8px; }
.confirmation-view .advisory-block:empty { display: none; }

.confirmation-view .advisory-banner {
    background: #fdf1ef;
    border: 1px solid #f0c4bd;
    border-left: 4px solid #c0392b;
    color: #8f2f23;
    border-radius: 4px;
    padding: 8px 10px 8px 12px;
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: break-word;
    text-align: left;
}

.confirmation-view .advisory-banner b {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 2px;
}

/* Info variant (blue) for purely informational advisories with no quota bar
   (maternity pay rule, parental entitlement) — distinct from the red
   over-quota warnings. */
.confirmation-view .advisory-banner.advisory-info {
    background: #eef4fd;
    border-color: #cfe0f7;
    border-left-color: #4a7ddc;
    color: #2b4a7a;
}

/* G: scroll-aware advisory badge beside the Request Summary title. Only
   rendered while advisories exist AND are off-screen — no dead-click state. */
.confirmation-view .adv-badge {
    background: #c0392b;
    color: #fff;
    border: 0;
    border-radius: 99px;
    padding: 2px 10px;
    font-weight: 700;
    font-size: 11px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 8px;
    vertical-align: 2px;
    animation: mdp-adv-pulse 1.6s ease-in-out infinite;
}

.confirmation-view .adv-badge::before { content: "▼"; font-size: 9px; }
.confirmation-view .adv-badge[hidden] { display: none; }

@keyframes mdp-adv-pulse {
    50% { box-shadow: 0 0 0 4px rgba(192, 57, 43, .18); }
}

@media (prefers-reduced-motion: reduce) {
    .confirmation-view .adv-badge { animation: none; }
}

@media (max-width: 560px) {
    .confirmation-view .fact-grid { grid-template-columns: 1fr; }
}

/* ===================================================================
   MOBILE — keep the Confirm Request screen full-width (2026-11-08)
   The v6 confirmation block above sets
   `.confirmation-mode { width / max-width: min(640px, 95vw) }`. It has the
   same specificity as the mobile full-screen rule near the middle of this
   file and comes later, so on phones the Confirm screen was 95% wide with
   the backdrop showing at both sides. This trailing block wins on source
   order (same pattern as request_viewer.css / system_setup.css).
   =================================================================== */
@media (max-width: 768px) {
    .multi-day-picker-container.confirmation-mode {
        width: 100%;
        max-width: none;
    }
}
