/* ==========================================================================
   Overtime payments: 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 {

    .settle-tile-text { display: flex; flex-direction: column; gap: 0.125rem; }
    .settle-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); }
    .settle-selbar.is-active { border-color: var(--d26-accent); }
    .settle-selbar-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.75rem; }
    .settle-selbar-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-left: auto; }
    .settle-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem; }
    .settle-pick { display: inline-flex; align-items: center; justify-content: center; min-width: var(--d26-target); min-height: var(--d26-target); }
    .settle-pick input { width: 1.125rem; height: 1.125rem; }
    .settle-tag { display: inline-block; white-space: nowrap; padding: 0.125rem 0.5rem; border: 1px solid var(--d26-line); border-radius: var(--d26-radius-card); font-size: 0.8125rem; font-weight: 600; }
    .settle-ref { font-size: 0.75rem; white-space: nowrap; }
    .settle-reason { display: inline-block; max-width: 14rem; }
    .settle-row { transition: opacity 0.3s ease, transform 0.3s ease; }             /* a settled row slides away */
    .settle-summary { max-height: 12.5rem; overflow: auto; }
    #settleTabs { margin-bottom: 0.75rem; }
    #hrSettlementSpinner { position: static; padding: 0.625rem 1rem; border-bottom: 1px solid var(--d26-line); background: var(--d26-surface); width: 100%; }
    .settle-table-loading { display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 1.5rem 1rem; margin: 0; font-size: 0.875rem; color: var(--d26-ink-2); }
    #viewHrSettlement .ui-filter-bar { grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); }
    #viewHrSettlement .ui-filter-bar .ui-filter-wide { grid-column: auto; }
    @media screen and (min-width: 761px) {
        #viewHrSettlement .ui-filter-bar .ui-field:has(#queueFilterDeptSelect) { grid-column: span 2; }   /* department names are long */
    }

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

    #hrSettlementTable:not([data-tab="awaiting"]) .settle-col-pick { display: none; }   /* nothing to select outside the queue */

    /* 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.settle-col-act, .ui-table--cards-wide td.settle-col-act { position: sticky; right: 0; box-shadow: -1px 0 0 var(--d26-line); }
        .ui-table--cards-wide td.settle-col-act { background: var(--d26-card); }
        .ui-table--cards-wide th.settle-col-act { background: var(--d26-surface); }
        .ui-table--cards-wide tbody tr:hover td.settle-col-act { background: var(--d26-surface); }
    }
    @container (width <= 55rem) {
        .ui-table--cards-wide td.settle-col-pick:not(:has(input)) { display: none; }  /* a bullet with a label is just noise on a card */
    }
    @media screen and (max-width: 1100px) {
        .settle-selbar { position: static; }
    }
}
