/* ==========================================================================
   Leave setup: layout only. Tab group, tables, chips, buttons, fields, callouts and the dialogs come from components/ui.css and
   Web Awesome.
   ========================================================================== */
@layer app-pages {
    .leave-notice { display: flex; flex-direction: column; gap: 0.25rem; margin: 0 0 1rem; }

    #lv2Error:not([hidden]), #lv2TypeError:not([hidden]), #lv2DaysError:not([hidden]), #lv2AdjustError:not([hidden]), #lv2ConfirmError:not([hidden]) { margin: 0 0 1rem; }
    #lv2BalanceNote:not(:empty) { margin: 0 0 0.5rem; }
    #lv2Loading:not([hidden]) { margin: 0 0 1rem; }
    #lv2PanelTypes > .ui-hint { margin: 0 0 0.75rem; }

    .leave-actions { white-space: nowrap; }
    .leave-buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.5rem; }

    /* The leave type's check boxes: one under the other */
    .leave-boxes { display: flex; flex-direction: column; gap: 0.25rem; }

    /* The history under the adjust form */
    .leave-history-title { margin: 1.25rem 0 0.5rem; }
    #lv2History { margin: 0; max-height: 14rem; overflow: auto; }
    #lv2History .ui-row:last-child { border-bottom: 0; }

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