/* OUCare Request Review UI Styles - Redesigned to match multi_day_picker.css */

/* ===================================================================
   OVERLAY AND CONTAINER - Matching multi_day_picker.css pattern
   =================================================================== */

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

.overlay.hidden {
    display: none;
}

.overlay-content {
    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;
}

/* ===================================================================
   HEADER - Orange for cancel, Yellow for review
   =================================================================== */

.request-header {
    background-color: #ff8c00; /* Orange for cancel operations */
    color: white;
    padding: 15px 20px;
    margin: 0;
    border-radius: 8px 8px 0 0;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: move;
    user-select: none; 
}

.request-header:hover {
    background-color: #e67c00; /* Add this for orange */
}

.overlay-content:has(.reasons-container) .request-header:hover {
    background-color: #e6c200; /* Add this for yellow */
}

.overlay-content.dragging {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    cursor: move;
    user-select: none;
}

.overlay-content.dragging * {
    user-select: none !important;
    pointer-events: none;
}

/* Keep buttons working during drag */
.overlay-content.dragging .btn {
    pointer-events: auto;
}

/* Yellow header for review operations - applies when reasons field is present */
.overlay-content:has(.reasons-container) .request-header {
    background-color: #ffd700; /* Yellow for review operations */
}

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

/* ===================================================================
   DETAILS SECTION - Matching multi_day_picker.css confirmation layout
   =================================================================== */

.request-details {
    padding: 20px;
    background-color: #f8f9fa;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch; /* center; */
}

/* Wrapper for detail rows to create bordered table */
.confirmation-details {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 0;
    width: 100%; /*auto; */
    box-sizing: border-box;
}

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

.detail-row.description-row .detail-value {
  max-width: none;      /* was: 300px (in the confirmation css) */
  white-space: pre-wrap;
  word-break: break-word;
}

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

/* Label column - matching multi_day_picker.css .detail-label */
.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;
}

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

/* Special styling for specific value types */
.detail-value.category-value {
    color: #0D882C;
    font-weight: bold;
}

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

/* Per-day duration math under the duration row (multi-day requests only). */
.breakdown-row .detail-value.breakdown-value {
    flex-direction: column;
    align-items: flex-start;
    white-space: normal;
    font-size: 12px;
    color: #6c757d;
    font-weight: normal;
    line-height: 1.5;
    gap: 2px;
}

.breakdown-line {
    font-variant-numeric: tabular-nums;
}

/* Quota / advisory rows (v6). Long advisory sentences must WRAP inside the
   frame — .detail-value's nowrap would otherwise push the row wider than the
   overlay's max-width and clip the text unreadably. max-width keeps a long
   advisory from ballooning the fit-content overlay. */
.quota-info-row .detail-value {
    white-space: normal;
    word-break: break-word;
    line-height: 1.4;
    max-width: 460px;
}

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

/* Description row special styling */
.description-row {
    flex-direction: column;
    align-items: stretch;
}

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

.description-row .detail-value {
    font-size: 13px;
    color: #212529;
    padding: 8px 10px;
    display: block;
    word-wrap: break-word;
    white-space: pre-wrap;
    line-height: 1.4;
    max-height: 100px;
    max-width: 300px;
    overflow-y: auto;
}

.description-row .empty-description {
    color: #6c757d;
    font-style: italic;
}

/* ===================================================================
   BUTTONS CONTAINER - Matching multi_day_picker.css button layout
   =================================================================== */

.buttons-container {
    padding: 15px 20px;
    border-top: 1px solid #dee2e6;
    background: white;
    border-radius: 0 0 8px 8px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* For cancel operation - buttons in a row, sized by content */
.overlay-content:not(:has(.reasons-container)) .buttons-container {
    flex-direction: row;
    justify-content: flex-end;
}

.overlay-content:not(:has(.reasons-container)) .btn {
    min-width: auto;
    width: auto;
}

.button-row {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Multi-slot review queue indicator — appears on the left of the button row
   when the reviewer is walking through multiple same-day requests. Styled to
   match the review header (yellow) so it reads as informational chrome,
   not a clickable button. `margin-right: auto` pushes the action buttons to
   the right edge while the badge sits on the left. */
/* Wrapper that glues the position badge to the chevron buttons so they read
   as a single "queue navigator" cluster.  The auto right-margin lives here
   (NOT on the badge) so the cluster stays anchored on the left edge of the
   button row regardless of how many chevrons are present (Issue 16). */
.queue-nav-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    margin-right: auto;
}

.queue-position-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* Fixed circular dimensions — width === height, full radius. Sized to fit
       up to "n/total" with 1–2 digit numbers ("1/3", "9/12") at 12px text. */
    width: 40px;
    height: 40px;
    aspect-ratio: 1 / 1;
    flex: 0 0 auto;                  /* never shrink or stretch the circle */
    padding: 0;
    border-radius: 50%;
    background-color: #ffd700;       /* matches .request-header (review mode) */
    color: #495057;
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    border: 1px solid #e6c200;
    cursor: default;
    user-select: none;
    white-space: nowrap;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

/* Cancel-mode variant: orange to match the cancel header instead of the
   review-mode yellow.  Same shape and weight, just a different hue so the
   badge always reads as "informational chrome that matches this header". */
.queue-position-badge--cancel {
    background-color: #ff8c00;
    color: white;
    border-color: #e67c00;
}

/* Queue navigation buttons (Prev / Next) — narrow buttons holding only the
   UTF-8 chevron glyph (‹ ›).  Sized to sit neatly next to the circular
   position badge without competing with the wider action buttons.  We override
   the .action-btn min-width so a single-character button doesn't stretch. */
.queue-nav-btn {
    min-width: 32px !important;
    padding: 6px 10px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

/* Disabled boundary state: kept on the page so the overlay width stays
   constant as the user steps through a 3+ item queue, but visibly inert.
   `!important` overrides the back-btn hover background so the dimmed look
   isn't undone by the existing :hover rule. */
.queue-nav-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background-color: #6c757d !important;
    color: rgba(255, 255, 255, 0.7);
}

.queue-nav-btn:disabled:hover {
    background-color: #6c757d !important;
}

/* Reasons/Comments field */
.reasons-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reasons-container label {
    font-size: 13px;
    font-weight: 700;
    color: #495057;
    margin: 0;
}

.reasons-field {
    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;
}

.reasons-field:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.1);
}

.reasons-field::placeholder {
    color: #adb5bd;
    font-style: italic;
}

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

.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;
}

.btn-default {
    background-color: #6c757d;
    color: white;
}

.btn-default:hover {
    background-color: #5a6268;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

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

@media (max-width: 768px) {
    /* Full-screen sheet on mobile. Header and footer stay pinned while the
       details section scrolls between them. Drag is mouse-only (no-op on
       touch); the .dragging class effect is neutralized here. */
    .overlay {
        padding: 0;
    }

    .overlay-content {
        width: 100%;
        max-width: none;
        min-width: 0;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
        overflow: hidden;
    }

    .request-header {
        padding: 12px 15px;
        font-size: 1rem;
        position: sticky;
        top: 0;
        z-index: 1;
        border-radius: 0;
        cursor: default;
        flex-shrink: 0;
    }

    .overlay-content.dragging {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        cursor: default;
    }

    .request-details {
        padding: 15px;
        flex: 1;
        min-height: 0;
        overflow-y: auto;
    }

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

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

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

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

    .buttons-container {
        padding: 12px 15px;
        position: sticky;
        bottom: 0;
        z-index: 1;
        border-radius: 0;
        flex-shrink: 0;
    }

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

    .btn {
        width: 100%;
        min-height: 44px;
    }

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

@media (max-width: 480px) {
    .request-header,
    .request-details,
    .buttons-container {
        padding: 10px;
    }
}

/* ===================================================================
   DARK MODE - Matching multi_day_picker.css dark mode
   =================================================================== */

@media (prefers-color-scheme: dark) {
    .overlay-content {
        background: #343a40;
        color: #f8f9fa;
    }

    .request-header {
        background-color: #ff8c00; /* Keep orange/yellow in dark mode */
    }

    .overlay-content:has(.reasons-container) .request-header {
        background-color: #ffd700;
    }

    .request-details {
        background-color: #495057;
    }

    .confirmation-details {
        background: white;
        border-color: #6c757d;
    }

    .detail-row {
        background: white;
        border-color: #6c757d;
    }

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

    .detail-value {
        color: #212529;
    }

    .description-row .empty-description {
        color: #6c757d;
    }

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

    .reasons-field:focus {
        border-color: #ffd700;
    }

    .buttons-container {
        background: #495057;
        border-top-color: #6c757d;
    }
}

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

@media print {
    .overlay {
        display: none !important;
    }
}
/* ===================================================================
   v6 OVERLAY REDESIGN (A–H) — scoped to this dialog so the shared
   .overlay-content / .detail-* classes in multi_day_picker.css are
   untouched. See server/doc/new_leave_categories.md §8.4 and the
   reviewed layout proposal.
   =================================================================== */

/* A + F: fixed dialog width; header and action row pinned, body scrolls */
#request-cancel-review-overlay .overlay-content {
    max-width: min(640px, 95vw);
    width: 100%;
    overflow: hidden;            /* scrolling moves to .overlay-scroll-body */
}

#request-cancel-review-overlay .overlay-scroll-body {
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

#request-cancel-review-overlay .buttons-container {
    flex-shrink: 0;
}

/* The details wrapper becomes a gap-stacked container; each block carries
   its own border instead of one shared table frame. */
#request-cancel-review-overlay .confirmation-details {
    border: none;
    display: grid;
    gap: 10px;
}

#request-cancel-review-overlay .detail-row.description-row {
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

/* B: two-column fact grid (status / category / start / end) */
#request-cancel-review-overlay .fact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: #dee2e6;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    overflow: hidden;
}

#request-cancel-review-overlay .fact {
    background: #fff;
    padding: 7px 10px;
}

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

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

#request-cancel-review-overlay .fact-v.category-value {
    color: #0d882c;
}

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

#request-cancel-review-overlay .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;
}

#request-cancel-review-overlay .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. */
#request-cancel-review-overlay .detail-calc summary::after {
    content: "▸";
    color: #0d882c;
    font-size: 16px;
    line-height: 1;
}

#request-cancel-review-overlay .detail-calc[open] summary::after { content: "▾"; }

#request-cancel-review-overlay .detail-calc.no-days summary { cursor: default; }
#request-cancel-review-overlay .detail-calc.no-days summary::after { content: ""; }
#request-cancel-review-overlay .detail-calc.no-days { pointer-events: none; }

#request-cancel-review-overlay .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. */
#request-cancel-review-overlay .breakdown-line.breakdown-code {
    font-family: ui-monospace, Menlo, Consolas, monospace;
    letter-spacing: .09em;
    padding-left: 1.1em;
    color: #868e96;
}

#request-cancel-review-overlay .breakdown-code .sd-hol { color: #c0392b; font-weight: 700; }
#request-cancel-review-overlay .breakdown-code .sd-mk  { color: #0d882c; font-weight: 700; }
#request-cancel-review-overlay .breakdown-code .sd-sel { color: #2b5cd9; }

#request-cancel-review-overlay .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 */
#request-cancel-review-overlay .quota-strip {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 8px 10px;
    display: grid;
    gap: 6px;
    font-size: 13px;
    color: #212529;
    background: #fff;
}

#request-cancel-review-overlay .quota-strip.quota-loading-placeholder {
    color: #adb5bd;
    font-style: italic;
}

#request-cancel-review-overlay .quota-line {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

#request-cancel-review-overlay .quota-line b { font-variant-numeric: tabular-nums; }

#request-cancel-review-overlay .quota-line-sub {
    font-size: 12px;
    color: #6c757d;
}

#request-cancel-review-overlay .quota-bar {
    height: 6px;
    border-radius: 3px;
    background: #e9ecef;
    overflow: hidden;
    display: flex;
}

#request-cancel-review-overlay .quota-bar-used { background: #4a7ddc; }
#request-cancel-review-overlay .quota-bar-pend { background: #a5bff0; }
#request-cancel-review-overlay .quota-bar-applied { background: #2e9e44; }
#request-cancel-review-overlay .quota-bar-over { background: #c0392b; }
#request-cancel-review-overlay .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. */
#request-cancel-review-overlay .quota-figs {
    gap: 3px 14px;
    flex-wrap: wrap;
}

#request-cancel-review-overlay .quota-fig {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-variant-numeric: tabular-nums;
}

#request-cancel-review-overlay .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);
}

#request-cancel-review-overlay .quota-sw-used { background: #4a7ddc; }
#request-cancel-review-overlay .quota-sw-pend { background: #a5bff0; }
#request-cancel-review-overlay .quota-sw-applied { background: #2e9e44; }
#request-cancel-review-overlay .quota-sw-over { background: #c0392b; }
#request-cancel-review-overlay .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. */
#request-cancel-review-overlay .quota-sw-split { display: flex; overflow: hidden; width: 18px; background: none; }
#request-cancel-review-overlay .quota-sw-split > span { display: block; height: 100%; }

#request-cancel-review-overlay .quota-mid {
    display: grid;
    gap: 6px;
}

/* Used-hours breakdown — mirrors .quota-detail in multi_day_picker.css; the
   markup is built by the shared buildQuotaUsedDetail(). */
#request-cancel-review-overlay .quota-detail { display: grid; gap: 4px; }

#request-cancel-review-overlay .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. */
#request-cancel-review-overlay .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. */
#request-cancel-review-overlay .quota-detail-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

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

#request-cancel-review-overlay .quota-detail-order[hidden] { display: none; }
/* [hidden] alone loses to display:grid — restate it. */
#request-cancel-review-overlay .quota-detail-list[hidden] { display: none; }

#request-cancel-review-overlay .quota-detail-row { display: contents; }

#request-cancel-review-overlay .quota-detail-hours { text-align: right; }

#request-cancel-review-overlay .quota-detail-src-register,
#request-cancel-review-overlay .quota-detail-src-legacy_report { color: #8f2f23; }

/* E: full-width advisory banners, directly above the comment box */
#request-cancel-review-overlay .advisory-block { display: grid; gap: 8px; }
#request-cancel-review-overlay .advisory-block:empty { display: none; }

#request-cancel-review-overlay .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;
}

#request-cancel-review-overlay .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. */
#request-cancel-review-overlay .advisory-banner.advisory-info {
    background: #eef4fd;
    border-color: #cfe0f7;
    border-left-color: #4a7ddc;
    color: #2b4a7a;
}

/* G: scroll-aware advisory badge beside the status pill. Only rendered while
   advisories exist AND are off-screen — no dead-click state possible. */
#request-cancel-review-overlay .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;
    animation: rcr-adv-pulse 1.6s ease-in-out infinite;
}

#request-cancel-review-overlay .adv-badge::before { content: "▼"; font-size: 9px; }
#request-cancel-review-overlay .adv-badge[hidden] { display: none; }

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

@media (prefers-reduced-motion: reduce) {
    #request-cancel-review-overlay .adv-badge { animation: none; }
}

/* H: comment box relocated into the scroll body; quiet footer chip jumps
   back to it while it is off-screen (same observer rule as the badge). */
#request-cancel-review-overlay .reasons-in-body {
    padding: 0 20px 15px;
    background-color: #f8f9fa;
}

#request-cancel-review-overlay .comment-chip {
    background: #f1f3f5;
    color: #495057;
    border: 1px solid #ced4da;
    border-radius: 99px;
    padding: 5px 12px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-right: auto;
}

#request-cancel-review-overlay .comment-chip::after { content: "▼"; font-size: 9px; color: #868e96; }
#request-cancel-review-overlay .comment-chip:hover { background: #e9ecef; }
#request-cancel-review-overlay .comment-chip[hidden] { display: none; }

/* When the chip is present it owns the left edge; the queue nav group keeps
   its cluster but stops pushing (avoids two competing auto margins). */
#request-cancel-review-overlay .confirmation-actions:has(.comment-chip:not([hidden])) .queue-nav-group {
    margin-right: 0;
}

@media (max-width: 560px) {
    #request-cancel-review-overlay .fact-grid { grid-template-columns: 1fr; }
}
