/* OMS_559_TOPBAR: layout only; no visibility changes to application permissions. */
.topbar.oms-topbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 12px 24px;
}
.topbar.oms-topbar .brand { white-space: nowrap; }
.topbar.oms-topbar a { margin-right: 0; }
.topbar.oms-topbar .oms-nav {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 16px;
    min-width: 0;
    margin: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
}
.topbar.oms-topbar .oms-nav > a {
    display: block;
    flex: 0 0 auto;
    padding: 8px 0;
    white-space: nowrap;
}
.topbar.oms-topbar .oms-account {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    white-space: nowrap;
}
.topbar.oms-topbar .oms-account > .muted {
    display: block;
    min-width: 0;
    max-width: 260px;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.topbar.oms-topbar .oms-logout { display: flex; flex: 0 0 auto; margin: 0; }
.topbar.oms-topbar .oms-logout > button {
    font: inherit;
    line-height: inherit;
    padding: 8px 4px;
    white-space: nowrap;
}
.topbar.oms-topbar a:focus-visible,
.topbar.oms-topbar button:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }
@media (max-width: 1100px) {
    .topbar.oms-topbar { grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; }
    .topbar.oms-topbar .brand { grid-column: 1; grid-row: 1; }
    .topbar.oms-topbar .oms-account { grid-column: 2; grid-row: 1; justify-self: end; }
    .topbar.oms-topbar .oms-nav { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 600px) {
    .topbar.oms-topbar { padding: 10px 14px; column-gap: 10px; }
    .topbar.oms-topbar .brand, .topbar.oms-topbar .oms-account { font-size: 14px; }
    .topbar.oms-topbar .oms-account { gap: 8px; }
    .topbar.oms-topbar .oms-account > .muted { max-width: 26vw; }
    .topbar.oms-topbar .oms-nav { gap: 16px; font-size: 14px; }
}

/* OMS_559_DELIVERY_BADGES: shared list renderer also serves AJAX refreshes. */
.delivery-cell .oms-delivery-badges {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-top: 5px;
}
.delivery-cell .oms-delivery-badges:empty { display: none; }
.delivery-cell .oms-delivery-badges > .oms-genius-badge {
    margin: 0;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}
