/* ==========================================================================
   Work authorizations: layout only. Filter bar, table, chips, buttons, fields, callouts, the disclosure and the dialogs come from
   components/ui.css and Web Awesome.
   ========================================================================== */
@layer app-pages {

    #wa2Summary:not(:empty) { margin: 0 0 0.5rem; }
    #wa2Error:not([hidden]) { margin: 0 0 1rem; }
    #wa2FormError:not([hidden]), #wa2ConfirmError:not([hidden]) { margin: 0 0 1rem; }
    #wa2Loading:not([hidden]) { margin: 0 0 1rem; }
    .wa2-actions { white-space: nowrap; }
    .wa2-requests { margin-bottom: 1.5rem; }
    .wa2-requests:not([hidden]) .ui-table-wrap { margin-top: 0.75rem; }
    .wa2-request-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
    #wa2RejectError:not([hidden]) { margin: 0.75rem 0 0; }

    /* The days with no authorization on record: a section under the table */
    #wa2UnauthBox { margin-top: 1.5rem; }
    #wa2UnauthBody .ui-note { margin: 0.75rem 0 0; }
    #wa2UnauthBody .ui-table-wrap { margin-top: 0.75rem; }

    /* The people picker: a scrolling list of check boxes under the search field */
    .wa2-people {
        display: flex;
        flex-direction: column;
        max-height: 14rem;
        overflow: auto;
        padding: 0.25rem 0.75rem;
        background: #fff;
        border: 1px solid var(--d26-line);
        border-radius: var(--d26-radius-control);
    }
    .wa2-person { padding: 0.125rem 0; }

    @container (width <= 40rem) { .wa2-actions { white-space: normal; } }           /* the card switch itself is the shared data_table(cards="narrow") */
}
