/* View Client top toolbar — keep the prev/next + Actions row
   compact and non-overflowing on phones; mirror the 600/960
   breakpoints from ViewCommonHeader.css. */

.vct-toolbar {
    flex-wrap: wrap;
    row-gap: 8px;
}

.vct-toolbar__actions {
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    /* Collapse the "Actions" text but keep StartIcon + chevron visible.
       The text sits as a raw text node inside .mud-button-label next to
       the icon spans, so font-size:0 hides it without removing the spans;
       icon spans/SVGs get their dimensions explicitly restored below. */
    .vct-toolbar__menu .mud-button-label {
        font-size: 0;
        gap: 0;
    }

    .vct-toolbar__menu .mud-button-icon-start,
    .vct-toolbar__menu .mud-button-icon-end {
        font-size: 1.25rem;
        line-height: 1;
        margin: 0;
    }

    .vct-toolbar__menu .mud-icon-root {
        font-size: 1.25rem;
    }

    .vct-toolbar__menu {
        min-width: 0;
        padding: 6px 8px;
    }
}
