/* ==========================================================================
   Public holidays: layout only. Table, chips, tiles, buttons, fields, callouts and the dialogs come from components/ui.css and
   Web Awesome.
   ========================================================================== */
@layer app-pages {

    #hol2Summary:not(:empty) { margin: 0 0 0.5rem; }
    #hol2Error:not([hidden]), #hol2FormError:not([hidden]), #hol2ConfirmError:not([hidden]), #hol2ImportError:not([hidden]) { margin: 0 0 1rem; }
    #hol2Loading:not([hidden]) { margin: 0 0 1rem; }

    .hol-actions { white-space: nowrap; }
    .hol-actions wa-button + wa-button { margin-left: 0.5rem; }

    /* The native file picker, laid out like the other fields */
    .hol2-file { width: 100%; min-height: var(--d26-target); padding: 0.5rem; font: inherit; border: 1px solid var(--d26-line); border-radius: var(--d26-radius-control); background: #fff; }
    .hol2-file:focus-visible { outline: 2px solid var(--d26-accent); outline-offset: 2px; }

    /* Import preview: the counts, then a table that scrolls inside the dialog */
    #hol2ImportPreview .ui-card-title { margin: 0.5rem 0; }
    #hol2ImportPreview wa-callout { margin: 0.75rem 0; }
    .hol2-preview-table { max-height: 18rem; overflow: auto; margin-top: 0.75rem; border: 1px solid var(--d26-line); border-radius: var(--d26-radius-control); }

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