/* Post-Annahmestelle page (mw-pa-*) — two-panel layout:
   incoming-mail inbox (left) + deliveries register grid (right). */

.mw-pa-layout {
    display: flex;
    gap: 12px;
    padding: 12px;
    box-sizing: border-box;
    /* NOTE: Same dense-appbar height math as the Inventory page (mw-im-layout) — the app uses a
       DENSE MudAppBar, so MudMainContent's padding-top is appbar*0.75; subtract that instead of
       the full appbar to fill exactly to the viewport bottom. */
    height: calc(100vh - var(--mud-appbar-height) + var(--mud-appbar-height) / 4);
}

/* Left panel — hosts MwInboundEmailList (.mw-em-win already fills 100% height) */
.mw-pa-mail {
    flex: 0 0 380px;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: var(--mud-default-borderradius);
    padding: 8px;
    overflow: hidden;
}

.mw-pa-mail-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    text-align: center;
    color: var(--mud-palette-text-secondary);
}

/* Right panel — the deliveries grid */
.mw-pa-grid {
    flex: 1;
    min-width: 0;
}

/* Narrow viewports: stack the panels, mail on top */
@media (max-width: 960px) {
    .mw-pa-layout {
        flex-direction: column;
        height: auto;
    }

    .mw-pa-mail {
        flex: 0 0 auto;
        height: 380px;
        min-width: 0;
    }

    .mw-pa-grid {
        height: 600px;
    }
}
