/* ==========================================================================
   Approvals: layout only. Tabs, filters, tables, chips, buttons, callouts and dialogs come from components/ui.css and Web Awesome.
   The claim detail fragment is laid out in pages/claims-archive.css.
   ========================================================================== */
@layer app-pages {

    #otPreauthQueueCard { margin-bottom: 1.25rem; }
    .approvals-selbar { position: sticky; top: 4rem; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem;
                        margin: 0 0 0.75rem; padding: 0.625rem 1rem; background: var(--d26-card); border: 1px solid var(--d26-line); border-radius: var(--d26-radius-card); }
    .approvals-selbar.is-active { border-color: var(--d26-accent); }
    .approvals-selbar-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.75rem; }
    .approvals-selbar-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-left: auto; }
    .approvals-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem; }
    .approvals-pick { display: inline-flex; align-items: center; justify-content: center; min-width: var(--d26-target); min-height: var(--d26-target); }
    .approvals-pick input { width: 1.125rem; height: 1.125rem; }
    .approvals-tag { display: inline-block; padding: 0.125rem 0.5rem; border: 1px solid var(--d26-line); border-radius: var(--d26-radius-card); font-size: 0.8125rem; font-weight: 600; }
    .approvals-note { max-width: 14rem; font-size: 0.8125rem; overflow-wrap: anywhere; }
    .approvals-row { transition: opacity 0.3s ease, transform 0.3s ease; }          /* a decided row slides away */
    .approvals-summary { max-height: 12.5rem; overflow: auto; }

    #supDetailDialog { --width: 56rem; }
    #supDetailDialog .claims-detail-x { display: none; }                            /* the dialog has its own X */

    /* The card switch (under 55rem of table box) is the shared data_table(cards="wide"); these are only this table's extras. */
    @container (width > 55rem) {                                                    /* wide table: keep the action in view while it scrolls sideways */
        .ui-table--cards-wide th.approvals-col-act, .ui-table--cards-wide td.approvals-col-act { position: sticky; right: 0; box-shadow: -1px 0 0 var(--d26-line); }
        .ui-table--cards-wide td.approvals-col-act { background: var(--d26-card); }
        .ui-table--cards-wide th.approvals-col-act { background: var(--d26-surface); }
        .ui-table--cards-wide tbody tr:hover td.approvals-col-act { background: var(--d26-surface); }
    }
    @container (width <= 55rem) { .approvals-actions .ui-chip { white-space: normal; } }   /* a long chip wraps inside a card */
    @media screen and (max-width: 1100px) {
        .approvals-selbar { position: static; }
    }
}
