/* Requests: forms that feel like the rest of the portal.
   One question at a time is easy to scan: generous spacing, labels above fields, choices you can tap anywhere on,
   and sections that rise into place only when an answer calls for them. Built on the tokens in app.css. */

/* ---------- Shared bits ---------- */

.rq-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ffc-teal);
    text-decoration: none;
}

    .rq-back:hover { color: var(--ffc-teal-dark); }

.rq-count {
    display: inline-grid;
    place-items: center;
    min-width: 1.3rem;
    height: 1.3rem;
    margin-left: 0.35rem;
    padding: 0 0.35rem;
    border-radius: 99px;
    background: var(--ffc-teal);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}

.rq-pill {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.rq-pill-new   { background: var(--ffc-warn-bg); color: var(--ffc-warn); }
.rq-pill-info  { background: var(--ffc-info-bg); color: var(--ffc-info); }
.rq-pill-ok    { background: var(--ffc-ok-bg);   color: var(--ffc-ok); }
.rq-pill-bad   { background: var(--ffc-bad-bg);  color: var(--ffc-bad); }
.rq-pill-muted { background: #eceff0;            color: var(--ffc-muted); }

.rq-changed {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0.05rem 0.45rem;
    border-radius: 99px;
    background: var(--ffc-info-bg);
    color: var(--ffc-info);
    font-size: 0.7rem;
    font-weight: 650;
    vertical-align: 0.1em;
}

.rq-empty {
    padding: 2.5rem 1rem;
    border: 1px dashed var(--ffc-line-strong);
    border-radius: var(--radius-md);
    color: var(--ffc-muted);
    text-align: center;
}

/* Segmented filter (same shape as the org switcher). */
.rq-filter {
    display: inline-flex;
    padding: 2px;
    background: rgba(18, 38, 34, 0.07);
    border-radius: 9px;
}

    .rq-filter button {
        display: inline-flex;
        align-items: center;
        border: 0;
        background: transparent;
        padding: 0.3rem 0.9rem;
        font-size: 0.85rem;
        font-weight: 500;
        color: var(--ffc-muted);
        border-radius: 7px;
        transition: background-color var(--dur-quick) ease, color var(--dur-quick) ease;
    }

        .rq-filter button:hover { color: var(--ffc-ink); }

        .rq-filter button.selected {
            background: var(--ffc-surface);
            color: var(--ffc-ink);
            font-weight: 600;
            box-shadow: 0 1px 2px rgba(18, 38, 34, 0.12);
        }

        .rq-filter button:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* ---------- Requests home ---------- */

.rq-home-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.rq-home-links { display: flex; gap: 0.5rem; }

.rq-group { margin-bottom: 1.75rem; }

.rq-group-title {
    margin-bottom: 0.6rem;
    font-size: 0.85rem;
    font-weight: 650;
    color: var(--ffc-muted);
}

.rq-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 0.75rem;
}

.rq-tile {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.95rem 1rem;
    border: 1px solid var(--ffc-line);
    border-radius: var(--radius-md);
    background: var(--ffc-surface);
    color: var(--ffc-ink);
    text-decoration: none;
    box-shadow: var(--shadow-sheet);
    transition: border-color var(--dur-quick) ease, box-shadow 0.15s ease, transform 0.1s ease-out;
}

    .rq-tile:hover { border-color: var(--ffc-line-strong); box-shadow: var(--shadow-raised); color: var(--ffc-ink); }
    .rq-tile:active { transform: scale(0.985); }
    .rq-tile:focus-visible { outline: none; box-shadow: var(--focus-ring); }

.rq-tile-icon,
.rq-row-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: var(--ffc-accent-tint);
    color: var(--ffc-teal);
}

.rq-tile-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.rq-tile-title { font-weight: 600; }
.rq-tile-summary { font-size: 0.85rem; color: var(--ffc-muted); line-height: 1.4; }
.rq-tile-chevron { flex: none; color: var(--ffc-faint); }

.rq-fallback {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--ffc-muted);
}

/* ---------- The form ---------- */

/* One focused column, centered on the page, like a sheet in Settings. */
.rq-form-page { max-width: 760px; margin: 0 auto; }

.rq-form-head { margin-bottom: 1.5rem; }

.rq-sender {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.9rem;
    padding: 0.35rem 0.85rem 0.35rem 0.35rem;
    border-radius: 99px;
    background: var(--ffc-tint);
    border: 1px solid var(--ffc-line);
    font-size: 0.875rem;
    color: var(--ffc-muted);
}

    .rq-sender strong { color: var(--ffc-ink); font-weight: 600; }

.rq-avatar {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--ffc-teal);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 650;
    letter-spacing: 0.02em;
}

.rq-section {
    margin: 0 0 1.25rem;
    padding: 1.25rem 1.35rem 1.35rem;
    border: 1px solid var(--ffc-line);
    border-radius: var(--radius-lg);
    background: var(--ffc-surface);
    box-shadow: var(--shadow-sheet);
    /* A section that appears because of an answer rises into place, so you see where the form grew. */
    animation: ffc-arrive var(--dur-arrive) var(--ease-out) both;
}

.rq-section-routed { border-left: 3px solid var(--ffc-teal-bright); }

.rq-section-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.6rem;
    float: left; /* keeps the title inside the card instead of on its border */
    width: 100%;
    margin-bottom: 0.6rem;
    padding: 0;
    font-size: 1.05rem;
    font-weight: 650;
    letter-spacing: -0.005em;
}

.rq-section-title + * { clear: both; }

.rq-route-tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ffc-teal-bright);
}

.rq-section-desc { margin: 0 0 0.75rem; font-size: 0.875rem; color: var(--ffc-muted); }

/* Four columns on wide screens; half and quarter fields share a row. */
.rq-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.1rem 1rem;
    margin-top: 0.5rem;
}

.rq-field { grid-column: span 4; min-width: 0; animation: ffc-fade 200ms var(--ease-out) both; }
.rq-w-half { grid-column: span 2; }
.rq-w-quarter { grid-column: span 1; }

@media (max-width: 575.98px) {
    .rq-w-half { grid-column: span 4; }
    .rq-w-quarter { grid-column: span 2; }
}

.rq-label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ffc-ink);
}

.rq-optional {
    margin-left: 0.25rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--ffc-faint);
}

.rq-help {
    margin: -0.1rem 0 0.45rem;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--ffc-muted);
}

/* In narrow columns the hint goes under the box, so side-by-side boxes stay level. */
.rq-help-below { margin: 0.35rem 0 0; }

.rq-error {
    margin-top: 0.35rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--ffc-bad);
    animation: ffc-fade 160ms ease both;
}

.rq-field .form-control.is-invalid { border-color: var(--ffc-bad); background-image: none; padding-right: 0.75rem; }

/* Paragraphs grow with what you type (where the browser supports it). */
textarea.form-control.rq-textarea { min-height: 5.5rem; field-sizing: content; max-height: 22rem; resize: vertical; }

.rq-number { max-width: 11rem; }
.rq-w-quarter .rq-number { max-width: none; }
.rq-date, .rq-time { max-width: 14rem; }
.rq-w-half .rq-date, .rq-w-half .rq-time { max-width: none; }

.rq-currency { position: relative; max-width: 12rem; }
    .rq-currency span { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); color: var(--ffc-muted); }
    .rq-currency input { padding-left: 1.6rem; }

/* Choices: the whole card is the target, not just the little circle. */
.rq-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 0.5rem;
}

/* Short choices (Organization, Kitchen) size to their words; choices with a description stack full width. */
.rq-options:not(.rq-options-detailed) { display: flex; flex-wrap: wrap; }
    .rq-options:not(.rq-options-detailed) .rq-option { min-width: 9rem; }

.rq-options-detailed { grid-template-columns: 1fr; }
@media (min-width: 720px) {
    .rq-options-detailed.rq-options-multi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.rq-option {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--ffc-line-strong);
    border-radius: var(--radius-sm);
    background: var(--ffc-surface);
    cursor: pointer;
    transition: border-color var(--dur-quick) ease, background-color var(--dur-quick) ease, box-shadow var(--dur-quick) ease, transform 0.1s ease-out;
}

    .rq-option:hover { border-color: rgba(30, 80, 72, 0.4); }
    .rq-option:active { transform: scale(0.99); }

    .rq-option input {
        flex: none;
        margin-top: 0.2rem;
        width: 1rem;
        height: 1rem;
        accent-color: var(--ffc-teal);
    }

    .rq-option:has(input:focus-visible) { box-shadow: var(--focus-ring); }

    .rq-option.selected {
        border-color: var(--ffc-teal);
        background: var(--ffc-accent-tint);
        box-shadow: inset 0 0 0 1px var(--ffc-teal);
    }

.rq-option-text { display: flex; flex-direction: column; min-width: 0; }
.rq-option-label { font-weight: 550; line-height: 1.35; }
.rq-option-help { font-size: 0.82rem; color: var(--ffc-muted); line-height: 1.4; }

.has-error .rq-option:not(.selected), .has-error .rq-yesno { border-color: rgba(161, 41, 29, 0.45); }

/* Yes / No as a two-part control. */
.rq-yesno {
    display: inline-flex;
    border: 1px solid var(--ffc-line-strong);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--ffc-surface);
}

    .rq-yesno label {
        position: relative;
        min-width: 5.5rem;
        padding: 0.45rem 1.1rem;
        text-align: center;
        font-weight: 550;
        cursor: pointer;
        transition: background-color var(--dur-quick) ease, color var(--dur-quick) ease;
    }

        .rq-yesno label + label { border-left: 1px solid var(--ffc-line-strong); }
        .rq-yesno label:hover { background: var(--ffc-tint); }
        .rq-yesno label.selected { background: var(--ffc-teal); color: #fff; }
        .rq-yesno label:has(input:focus-visible) { box-shadow: inset var(--focus-ring); }

    .rq-yesno input { position: absolute; opacity: 0; pointer-events: none; }

/* Information callout (e.g. why paid events use Brushfire). */
.rq-info {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--ffc-info-bg);
    color: var(--ffc-info);
    font-size: 0.875rem;
    line-height: 1.5;
}

.rq-info-title { font-weight: 650; margin-bottom: 0.15rem; }

/* Files */
.rq-drop {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 1rem;
    border: 1.5px dashed var(--ffc-line-strong);
    border-radius: var(--radius-sm);
    background: var(--ffc-tint);
    color: var(--ffc-teal);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: border-color var(--dur-quick) ease, background-color var(--dur-quick) ease;
}

    .rq-drop:hover { border-color: var(--ffc-teal-bright); background: var(--ffc-accent-tint); }
    .rq-drop:has(input:focus-visible) { box-shadow: var(--focus-ring); }
    .rq-drop.is-invalid { border-color: var(--ffc-bad); }
    .rq-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.rq-drop-hint { font-size: 0.78rem; font-weight: 400; color: var(--ffc-muted); }

.rq-files { list-style: none; margin: 0 0 0.5rem; padding: 0; }

    .rq-files li {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        padding: 0.45rem 0.6rem;
        border: 1px solid var(--ffc-line);
        border-radius: var(--radius-sm);
        margin-bottom: 0.35rem;
        background: var(--ffc-surface);
        animation: ffc-arrive 200ms var(--ease-out) both;
    }

.rq-file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.9rem; }
.rq-file-size { font-size: 0.78rem; color: var(--ffc-muted); font-variant-numeric: tabular-nums; }

.rq-file-remove {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ffc-muted);
    font-size: 1.1rem;
    line-height: 1;
}

    .rq-file-remove:hover { background: var(--ffc-bad-bg); color: var(--ffc-bad); }

/* Repeating rows (days off, coverage tasks). */
.rq-table { display: grid; gap: 0.4rem; }

.rq-table-head,
.rq-table-row {
    display: grid;
    gap: 0.5rem;
    align-items: start;
}

/* Longer table answers (coverage tasks, who's covering): wrap and grow with the text instead of scrolling sideways. */
.rq-cell-text {
    field-sizing: content;
    min-height: calc(1.5em + 0.75rem + 2px);
    resize: vertical;
}

.rq-table-row > .rq-row-remove { margin-top: 4px; }

.rq-table-head span { font-size: 0.78rem; font-weight: 600; color: var(--ffc-muted); }

.rq-table-row { animation: ffc-arrive 200ms var(--ease-out) both; }

.rq-row-remove {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ffc-faint);
    font-size: 1.15rem;
    line-height: 1;
}

    .rq-row-remove:hover { background: var(--ffc-bad-bg); color: var(--ffc-bad); }

.rq-table-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.rq-table-total { margin-left: auto; font-size: 0.9rem; color: var(--ffc-muted); font-variant-numeric: tabular-nums; }
    .rq-table-total strong { color: var(--ffc-ink); font-size: 1.05rem; }
.rq-currency-cell { max-width: none; }
.rq-answer-total-label { text-align: right; font-weight: 600; }
.rq-answer-total { font-weight: 700; font-variant-numeric: tabular-nums; }

.rq-row-add {
    justify-self: start;
    padding: 0.3rem 0;
    border: 0;
    background: transparent;
    color: var(--ffc-teal);
    font-size: 0.875rem;
    font-weight: 600;
}

    .rq-row-add:hover { color: var(--ffc-teal-dark); text-decoration: underline; }

.rq-table.is-invalid .form-control, .rq-table.is-invalid .form-select { border-color: rgba(161, 41, 29, 0.45); }

/* On a phone each row becomes its own small card, one box per line. */
@media (max-width: 575.98px) {
    .rq-table-head { display: none; }
    .rq-table-row {
        grid-template-columns: 1fr 32px !important;
        padding: 0.6rem;
        border: 1px solid var(--ffc-line);
        border-radius: var(--radius-sm);
    }
    .rq-table-row > :not(.rq-row-remove) { grid-column: 1; }
    .rq-table-row > .rq-row-remove { grid-column: 2; grid-row: 1; }
}

/* Answer tables on the request page and printout. */
.rq-answer-table { width: 100%; margin: 0.2rem 0 0; font-size: 0.9rem; border-collapse: collapse; }
    .rq-answer-table th { font-size: 0.75rem; font-weight: 600; color: var(--ffc-muted); text-align: left; padding: 0.25rem 0.5rem 0.25rem 0; border-bottom: 1px solid var(--ffc-line-strong); }
    .rq-answer-table td { padding: 0.35rem 0.5rem 0.35rem 0; border-bottom: 1px solid var(--ffc-line); vertical-align: top; }

/* Live estimate (police officers). */
.rq-estimate {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.6rem;
    margin-top: 1rem;
    padding: 0.7rem 0.9rem;
    border-radius: var(--radius-sm);
    background: var(--ffc-tint);
    font-size: 0.875rem;
    color: var(--ffc-muted);
}

    .rq-estimate strong {
        font-size: 1.15rem;
        font-weight: 650;
        color: var(--ffc-ink);
        font-variant-numeric: tabular-nums;
    }

    .rq-estimate.empty strong { color: var(--ffc-faint); }

.rq-estimate-unit { font-size: 0.78rem; }

.rq-routes-note {
    margin: -0.25rem 0 1rem;
    font-size: 0.875rem;
    color: var(--ffc-muted);
}

.rq-submit {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0 1rem;
}

/* Sent */
.rq-sent {
    max-width: 520px;
    margin: 2rem auto;
    text-align: center;
}

.rq-sent-check {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--ffc-ok-bg);
    color: var(--ffc-ok);
    animation: rq-pop 420ms var(--ease-out) both;
}

.rq-sent-number {
    margin: -0.2rem 0 0.6rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ffc-teal);
    font-variant-numeric: tabular-nums;
}

.rq-sent-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 1.25rem; }

@keyframes rq-pop {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: none; }
}

/* ---------- Lists (My requests, Inbox) ---------- */

.rq-inbox-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 0.75rem;
    margin-bottom: 1rem;
}

.rq-team-select { width: auto; min-width: 11rem; }
.rq-search { width: auto; flex: 1 1 200px; max-width: 320px; margin-left: auto; }

.rq-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid var(--ffc-line);
    border-radius: var(--radius-md);
    background: var(--ffc-surface);
    overflow: hidden;
}

    .rq-list li + li { border-top: 1px solid var(--ffc-line); }

.rq-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.8rem 1rem;
    color: var(--ffc-ink);
    text-decoration: none;
    transition: background-color var(--dur-quick) ease;
}

    .rq-row:hover { background: var(--ffc-tint); color: var(--ffc-ink); }
    .rq-row:active { background: rgba(18, 38, 34, 0.06); }
    .rq-row:focus-visible { outline: none; box-shadow: inset var(--focus-ring); }

    .rq-row .rq-row-icon { width: 36px; height: 36px; border-radius: 10px; }
    .rq-row.fresh .rq-row-title { font-weight: 650; }

.rq-row-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.rq-row-title { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rq-row-meta { font-size: 0.82rem; color: var(--ffc-muted); }
.rq-row-teams { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.3rem; }

.rq-mini {
    padding: 0.05rem 0.45rem;
    border-radius: 99px;
    font-size: 0.7rem;
    font-weight: 600;
    background: var(--ffc-warn-bg);
    color: var(--ffc-warn);
}

.rq-mini-in_progress { background: var(--ffc-info-bg); color: var(--ffc-info); }
.rq-mini-done { background: var(--ffc-ok-bg); color: var(--ffc-ok); }
.rq-mini-declined { background: var(--ffc-bad-bg); color: var(--ffc-bad); }
.rq-mini-cancelled { background: #eceff0; color: var(--ffc-muted); text-decoration: line-through; }

/* ---------- One request ---------- */

.rq-view-head { margin-bottom: 1.25rem; }

.rq-view-eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
    color: var(--ffc-muted);
}

.rq-number { font-weight: 650; color: var(--ffc-teal); font-variant-numeric: tabular-nums; }

.rq-view-meta { font-size: 0.875rem; color: var(--ffc-muted); }
    .rq-view-meta strong { color: var(--ffc-ink); font-weight: 600; }

.rq-view-actions { display: flex; gap: 0.5rem; margin-top: 0.9rem; }

.rq-cancel {
    max-width: 520px;
    margin-top: 0.9rem;
    padding: 1rem;
    border: 1px solid var(--ffc-line-strong);
    border-radius: var(--radius-md);
    background: var(--ffc-tint);
    animation: ffc-arrive 220ms var(--ease-out) both;
}

.rq-view-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.25rem;
    align-items: start;
}

@media (max-width: 991.98px) {
    .rq-view-grid { grid-template-columns: 1fr; }
    .rq-view-side { order: -1; }
}

.rq-card {
    margin-bottom: 1.25rem;
    padding: 1.1rem 1.25rem 1.2rem;
    border: 1px solid var(--ffc-line);
    border-radius: var(--radius-lg);
    background: var(--ffc-surface);
    box-shadow: var(--shadow-sheet);
}

.rq-card-title { margin-bottom: 0.75rem; font-size: 1rem; font-weight: 650; }

.rq-answers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem 1.25rem;
    margin: 0;
}

.rq-answer.wide { grid-column: 1 / -1; }
.rq-answer dt { font-size: 0.78rem; font-weight: 600; color: var(--ffc-muted); margin-bottom: 0.1rem; }
.rq-answer dd { margin: 0; overflow-wrap: anywhere; }
.rq-answer-text { white-space: pre-line; }

@media (max-width: 575.98px) {
    .rq-answers { grid-template-columns: 1fr; }
}

.rq-teams { list-style: none; margin: 0; padding: 0; }

.rq-team + .rq-team { margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px solid var(--ffc-line); }
.rq-team-head { display: flex; align-items: center; gap: 0.4rem; }
.rq-team-name { flex: 1; font-weight: 600; }
.rq-team-note { margin: 0.4rem 0 0; padding: 0.5rem 0.65rem; border-radius: var(--radius-sm); background: var(--ffc-tint); font-size: 0.875rem; white-space: pre-line; }
.rq-team-meta { margin-top: 0.3rem; font-size: 0.78rem; color: var(--ffc-muted); }

.rq-team-edit { display: grid; gap: 0.5rem; margin-top: 0.7rem; }
    .rq-team-edit .btn { justify-self: start; }

.rq-status-picker {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 2px;
    background: rgba(18, 38, 34, 0.07);
    border-radius: 9px;
}

    .rq-status-picker button {
        border: 0;
        background: transparent;
        padding: 0.3rem 0.2rem;
        border-radius: 7px;
        font-size: 0.76rem;
        font-weight: 550;
        color: var(--ffc-muted);
        white-space: nowrap;
        transition: background-color var(--dur-quick) ease, color var(--dur-quick) ease;
    }

        .rq-status-picker button:hover { color: var(--ffc-ink); }
        .rq-status-picker button.selected { background: var(--ffc-surface); color: var(--ffc-ink); font-weight: 650; box-shadow: 0 1px 2px rgba(18, 38, 34, 0.12); }
        .rq-status-picker button:focus-visible { outline: none; box-shadow: var(--focus-ring); }

.rq-activity { list-style: none; margin: 0; padding: 0; font-size: 0.875rem; }

    .rq-activity li {
        position: relative;
        padding: 0 0 0.8rem 1rem;
        border-left: 1px solid var(--ffc-line-strong);
        margin-left: 0.25rem;
    }

        .rq-activity li:last-child { border-left-color: transparent; padding-bottom: 0; }

        .rq-activity li::before {
            content: "";
            position: absolute;
            left: -4px;
            top: 0.45rem;
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: var(--ffc-teal-bright);
        }

.rq-activity-meta { font-size: 0.78rem; color: var(--ffc-muted); }

/* ---------- Accessibility ---------- */

@media (prefers-reduced-motion: reduce) {
    .rq-section, .rq-files li, .rq-cancel { animation: ffc-fade 150ms ease both; }
    .rq-sent-check { animation: none; }
    .rq-option:active, .rq-tile:active { transform: none; }
}

@media (prefers-contrast: more) {
    .rq-option, .rq-yesno, .rq-section, .rq-card, .rq-list { border-color: var(--ffc-ink); }
    .rq-help, .rq-row-meta, .rq-tile-summary { color: var(--ffc-ink); }
}

/* ---------- Print for signatures ---------- */
/* On screen: a sheet of paper on the desk. On paper: just the sheet, black on white. */

.rq-print-body { padding: 1.5rem 1rem 3rem; }

.rq-print-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    max-width: 8.5in;
    margin: 0 auto 1rem;
    font-size: 0.875rem;
    color: var(--ffc-muted);
}

.rq-sheet {
    max-width: 8.5in;
    margin: 0 auto;
    padding: 0.6in 0.6in 0.5in;
    background: #fff;
    color: #000;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10.5pt;
    line-height: 1.35;
    border: 1px solid var(--ffc-line);
    box-shadow: var(--shadow-raised);
}

.rq-sheet-head { display: grid; grid-template-columns: 1fr auto; align-items: end; border-bottom: 2px solid #000; padding-bottom: 6px; margin-bottom: 10px; }
.rq-sheet-org { grid-column: 1 / -1; font-size: 9pt; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.rq-sheet-head h1 { margin: 0; font-size: 17pt; font-weight: 700; letter-spacing: 0; color: #000; }
.rq-sheet-number { font-weight: 700; font-size: 11pt; }

.rq-sheet h2 { margin: 12px 0 4px; font-size: 11pt; font-weight: 700; color: #000; border-bottom: 1px solid #000; padding-bottom: 2px; }
.rq-sheet-note { margin: 2px 0 6px; font-style: italic; font-size: 9.5pt; }

.rq-sheet-meta { width: 100%; border-collapse: collapse; margin-bottom: 4px; }
    .rq-sheet-meta th { width: 1%; white-space: nowrap; padding: 3px 8px 3px 0; font-weight: 700; text-align: left; }
    .rq-sheet-meta td { padding: 3px 16px 3px 0; border-bottom: 1px solid #000; }

.rq-sheet-line { display: grid; grid-template-columns: 2.4in 1fr; gap: 8px; padding: 3px 0; border-bottom: 1px solid #bbb; }
.rq-sheet-label { font-weight: 700; }
.rq-sheet-value { white-space: pre-line; }
.rq-sheet .rq-sheet-label + .rq-answer-table { margin: 2px 0 6px; }
.rq-sheet .rq-answer-table th, .rq-sheet .rq-answer-table td { border: 1px solid #000; padding: 3px 6px; color: #000; font-size: 10pt; }

.rq-sheet-office { margin-top: 14px; }

.rq-sign { width: 100%; border-collapse: collapse; margin: 4px 0 8px; }
    .rq-sign th, .rq-sign td { border: 1px solid #000; padding: 7px 6px; font-size: 9.5pt; vertical-align: bottom; }
    .rq-sign th { width: 22%; text-align: left; }
    .rq-sign-box { width: 12%; white-space: nowrap; }
    .rq-sign-line { width: 34%; color: #777; }
    .rq-sign-date { width: 18%; color: #777; }

.rq-box { display: inline-block; width: 11px; height: 11px; border: 1px solid #000; vertical-align: -1px; margin-right: 3px; }

.rq-fill { display: flex; gap: 8px; align-items: flex-end; margin: 8px 0; }
    .rq-fill > span:first-child { white-space: nowrap; font-weight: 700; }
.rq-blank { flex: 1; border-bottom: 1px solid #000; min-height: 16px; }
.rq-fill-tall .rq-blank { min-height: 40px; }

.rq-sheet-footer { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; padding-top: 6px; border-top: 1px solid #000; font-size: 9.5pt; }
.rq-check { white-space: nowrap; }
.rq-date-blank { display: inline-block; width: 0.8in; border-bottom: 1px solid #000; margin-left: 4px; }

@page { size: letter; margin: 0.4in; }

@media print {
    body { background: #fff !important; }
    .rq-print-body { padding: 0; }
    .rq-print-tools { display: none; }
    .rq-sheet { max-width: none; padding: 0; border: 0; box-shadow: none; }
    .rq-sheet-section, .rq-sign tr { break-inside: avoid; }
}

/* ---------- Paper HR sheets (time off, schedule change, leadership) ----------
   Drawn to match the church's Excel forms: Aptos Narrow, thick-bordered boxes, gray fill-in cells. */

.paper {
    width: 7.5in;
    margin: 0 auto;
    padding: 0.35in 0.5in 0.4in;
    background: #fff;
    color: #000;
    font-family: "Aptos Narrow", "Arial Narrow", Calibri, Carlito, Arial, sans-serif;
    font-size: 10.5pt;
    line-height: 1.2;
    box-sizing: content-box;
    border: 1px solid var(--ffc-line);
    box-shadow: var(--shadow-raised);
}

.paper-head { text-align: center; margin-bottom: 6px; }
    .paper-head img { display: block; width: 2.6in; height: auto; margin: 0 auto 8px; }
.paper-title { font-family: Calibri, Carlito, Arial, sans-serif; font-size: 15pt; }
.paper-sub { font-family: Calibri, Carlito, Arial, sans-serif; font-size: 9pt; font-weight: 700; margin-top: 1px; }

.paper-namebar {
    display: grid;
    grid-template-columns: auto 2.4in 1fr auto 0.8in;
    align-items: center;
    gap: 0 8px;
    margin: 2px 0 8px;
    font-size: 11pt;
}
    .paper-namebar > :nth-child(3) { justify-self: end; }
    .paper-namebar .paper-fill { min-height: 1.35em; padding: 1px 4px; font-size: 10pt; }

.paper-fill { background: #e7e6e6; }

.paper-t { width: 100%; border-collapse: collapse; table-layout: fixed; }
    .paper-t td, .paper-t th { border: 1px solid #000; padding: 1px 3px; text-align: center; font-weight: 400; vertical-align: bottom; }
.paper-box { margin-top: 9px; border: 2px solid #000; }
.paper-h { font-size: 13pt; padding: 2px 3px !important; border-bottom: 2px solid #000 !important; }
.paper-h-inner { border-top: 2px solid #000 !important; }
.paper-h-small { font-size: 10.5pt; }
.paper-bold { font-weight: 700 !important; }
.paper-left { text-align: left !important; }
.paper-rowlabel { text-align: center; }
.paper-gap td { height: 5px; padding: 0 !important; border-left: 0; border-right: 0; }
.paper-legend { font-size: 9.5pt; }
.paper-colheads td { border-bottom: 1px solid #000; }
.paper-item td { height: 17px; white-space: pre-line; }
.paper-tall { height: 0.45in; vertical-align: top !important; white-space: pre-line; padding: 3px 5px !important; }
.paper-why { height: 1.9in; }
.paper-reason { height: 0.7in; }
.paper-tiny { font-size: 7.5pt; }
.paper-notes { margin-top: 6px; font-size: 10pt; white-space: pre-line; }

/* The office and approval tables: horizontal rules between rows, no inner columns, like the form. */
.paper-office td { border-left: 0; border-right: 0; height: 22px; vertical-align: middle; }
    .paper-office td:first-child { border-left: 0; }
.paper-office .paper-footer-row td:first-child { border-right: 1px solid #000; }
.paper-sign td { vertical-align: middle; white-space: nowrap; }
.paper-office td.paper-cell { border-left: 1px solid #000; }
.paper-denied { height: 34px !important; vertical-align: top !important; }

/* Leadership's top block has no outer box. */
.paper-info td { border: 0; padding: 3px 4px; height: 20px; vertical-align: middle; }
    .paper-info td.paper-fill { border: 1px solid #fff; }

@media print {
    html, body { min-height: 0 !important; height: auto !important; }
    .paper { width: auto; padding: 0; border: 0; box-shadow: none; }
    .paper-fill { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .paper-box, .paper-t tr { break-inside: avoid; }
}

/* ---------- Victoria finance sheets (reimbursement, check request) ---------- */

.fin { font-family: Arial, Helvetica, sans-serif; font-size: 10.5pt; }
.fin-logo { display: block; width: 1in; height: auto; margin-bottom: 0.45in; }
.fin-title { font-size: 15pt; margin-bottom: 2px; white-space: nowrap; overflow: hidden; }
.fin-red { color: #e00000; font-weight: 700; }
.fin-paren { font-size: 11pt; font-weight: 700; }
.fin-note { border: 1.5px solid #000; padding: 3px 10px; text-align: center; font-size: 10.5pt; }
.fin-fields { width: 100%; border-collapse: collapse; margin-top: 6px; table-layout: fixed; }
    .fin-fields td { padding: 3px 4px; height: 22px; vertical-align: bottom; }
.fin-label { text-align: right; font-weight: 700; white-space: nowrap; }
.fin-left { text-align: left; }
.fin-top { vertical-align: top !important; }
.fin-line { border-bottom: 1px solid #000; }
.fin-address { white-space: pre-line; height: 48px !important; vertical-align: top !important; }
.fin-big { font-size: 12pt; font-weight: 700; display: flex; justify-content: space-between; }
.fin-amount-row { margin-top: 10px; }
.fin-table { margin-top: 14px; border: 1.5px solid #000; }
    .fin-table td { height: 19px; vertical-align: middle; }
.fin-head td { font-weight: 700; text-align: center; border-bottom: 1.5px solid #000; }
.fin-money { display: table-cell; }
    .fin-money span:first-child { float: left; }
    .fin-money span:last-child { float: right; }
.fin-total td { border: 0; font-weight: 700; }
.fin-total-label { text-align: right !important; }
.fin-total .fin-money { border: 1.5px solid #000; }
.fin-files { margin-top: 10px; font-size: 9.5pt; }

/* ---------- HR: Time Off panel on time off / schedule change requests ---------- */
.rq-pto-who { margin: -0.25rem 0 0.6rem; font-weight: 600; }
.rq-pto-table { width: 100%; font-size: 0.85rem; border-collapse: collapse; font-variant-numeric: tabular-nums; }
    .rq-pto-table th { font-size: 0.72rem; font-weight: 600; color: var(--ffc-muted); text-align: left; padding: 0 0.4rem 0.25rem 0; }
    .rq-pto-table td { padding: 0.3rem 0.4rem 0.3rem 0; border-top: 1px solid var(--ffc-line); }
    .rq-pto-table tr.over td { color: var(--ffc-bad); font-weight: 600; }
.rq-pto-warn { margin: 0.6rem 0 0; padding: 0.5rem 0.65rem; border-radius: var(--radius-sm); background: var(--ffc-bad-bg); color: var(--ffc-bad); font-size: 0.85rem; }
.rq-pto-note { margin: 0.6rem 0 0; font-size: 0.85rem; color: var(--ffc-muted); }
.rq-pto-others { margin-top: 0.7rem; font-size: 0.85rem; }
    .rq-pto-others ul { margin: 0.2rem 0 0; padding-left: 1.1rem; }
.rq-pto-status { margin: 0.8rem 0 0; padding-top: 0.6rem; border-top: 1px solid var(--ffc-line); font-size: 0.8rem; color: var(--ffc-muted); }
