/* /Components/Layout/MainLayout.razor.rz.scp.css */
:host[b-avacp28r3b] {
    display: block;
}

/* ─────────────────────────────────────────────────────────────────────────────
   SHELL  — two-column grid, sidebar + workspace
   ───────────────────────────────────────────────────────────────────────────── */
.backoffice-shell[b-avacp28r3b] {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    background: var(--surface-0);
    transition: grid-template-columns 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.backoffice-shell.is-collapsed[b-avacp28r3b] {
    grid-template-columns: 76px minmax(0, 1fr);
}

/* ─────────────────────────────────────────────────────────────────────────────
   SIDEBAR PANEL
   ───────────────────────────────────────────────────────────────────────────── */
.sidebar-panel[b-avacp28r3b] {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0) 32%),
        var(--logo-dark-bg);
    border-right: 1px solid var(--sidebar-border);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    z-index: 20;
    box-shadow: 1px 0 0 rgba(255, 255, 255, 0.025), 16px 0 36px rgba(15, 15, 17, 0.10);
    transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-inner[b-avacp28r3b] {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    width: 280px; /* fixed inner width so content doesn't re-flow during collapse */
    transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.backoffice-shell.is-collapsed .sidebar-inner[b-avacp28r3b] {
    width: 76px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   BRAND / HEADER
   ───────────────────────────────────────────────────────────────────────────── */
.brand-panel[b-avacp28r3b] {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 0.875rem;
    height: 76px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--logo-dark-bg);
    overflow: hidden;
    transition: padding 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hide the in-sidebar toggle — the toggle lives in the topbar now */
.sidebar-toggle[b-avacp28r3b] {
    display: none;
}

.brand-lockup[b-avacp28r3b] {
    display: flex;
    align-items: center;
    gap: 0;
    overflow: hidden;
    min-width: 0;
    flex: 1 1 auto;
    transition: opacity 0.2s ease;
}

.brand-mark[b-avacp28r3b] {
    flex: 0 0 auto;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    display: none;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #fff;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(230, 166, 46, 0.16);
}

.brand-mark img[b-avacp28r3b] {
    width: 100%;
    height: 100%;
    display: block;
}

.brand-copy[b-avacp28r3b] {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    align-items: flex-start;
    line-height: 1;
    transition: opacity 0.18s ease, width 0.28s cubic-bezier(0.4, 0, 0.2, 1),
                max-width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 216px;
}

.brand-wordmark[b-avacp28r3b] {
    display: block;
    width: min(205px, 100%);
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

/* Mobile close button — hidden on desktop */
.mobile-close-btn[b-avacp28r3b] {
    display: none;
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    border: 1px solid var(--sidebar-border);
    border-radius: 0.5rem;
    background: transparent;
    color: var(--sidebar-text);
    font-size: 1rem;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s;
}

.mobile-close-btn:hover[b-avacp28r3b] {
    background: var(--sidebar-hover);
}

/* ─────────────────────────────────────────────────────────────────────────────
   NAV SCROLL AREA
   ───────────────────────────────────────────────────────────────────────────── */
.sidebar-nav-scroll[b-avacp28r3b] {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.75rem 0.875rem 1.25rem;
    scrollbar-width: thin;
    scrollbar-color: var(--sidebar-border) transparent;
    transition: padding 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-nav-scroll[b-avacp28r3b]::-webkit-scrollbar {
    width: 3px;
}

.sidebar-nav-scroll[b-avacp28r3b]::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav-scroll[b-avacp28r3b]::-webkit-scrollbar-thumb {
    background: var(--sidebar-border);
    border-radius: 999px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   SECTION LABELS
   ───────────────────────────────────────────────────────────────────────────── */
.sidebar-nav[b-avacp28r3b] {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-top: 0.125rem;
}

.nav-section-label[b-avacp28r3b] {
    padding: 1.125rem 0.625rem 0.375rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.48);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.15s ease;
}

/* ─────────────────────────────────────────────────────────────────────────────
   NAV ENTRIES — flat rows, brand-accent active bar
   ───────────────────────────────────────────────────────────────────────────── */
.nav-group[b-avacp28r3b] {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.nav-group-toggle[b-avacp28r3b],
.nav-entry[b-avacp28r3b] {
    position: relative;
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--sidebar-nav-text);
    text-decoration: none;
    text-decoration-line: none;
    border-radius: 0.5rem;
    min-height: 2.625rem;
    padding: 0.5rem 0.625rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: inherit;
    line-height: 1.4;
    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;
}

.nav-group-toggle:hover[b-avacp28r3b],
.nav-entry:hover[b-avacp28r3b],
.nav-group-toggle:focus[b-avacp28r3b],
.nav-entry:focus[b-avacp28r3b],
.nav-group-toggle:active[b-avacp28r3b],
.nav-entry:active[b-avacp28r3b] {
    text-decoration: none;
    text-decoration-line: none;
}

/* left accent bar — hidden by default */
.nav-group-toggle[b-avacp28r3b]::before,
.nav-entry[b-avacp28r3b]::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    bottom: 0.55rem;
    width: 3px;
    border-radius: 0 999px 999px 0;
    background: var(--brand);
    opacity: 0;
    transition: opacity 0.15s, transform 0.15s;
    transform: scaleY(0.4);
}

/* Hover */
.nav-group-toggle:hover[b-avacp28r3b],
.nav-entry:hover[b-avacp28r3b] {
    background: rgba(255, 255, 255, 0.075);
    color: var(--sidebar-nav-text-hover);
}

.nav-group-toggle:hover .nav-icon[b-avacp28r3b],
.nav-entry:hover .nav-icon[b-avacp28r3b] {
    color: var(--sidebar-text);
}

/* Active */
.nav-entry.active[b-avacp28r3b],
.nav-group-toggle.active[b-avacp28r3b] {
    background: rgba(230, 166, 46, 0.18);
    color: var(--sidebar-nav-text-active);
    font-weight: 600;
    box-shadow: inset 0 0 0 1px rgba(230, 166, 46, 0.24);
}

.nav-entry.active[b-avacp28r3b]::before,
.nav-group-toggle.active[b-avacp28r3b]::before {
    opacity: 1;
    transform: scaleY(1);
}

.nav-entry.active .nav-icon[b-avacp28r3b],
.nav-group-toggle.active .nav-icon[b-avacp28r3b] {
    color: var(--brand);
}

/* Focus-visible ring for keyboard nav */
.nav-group-toggle:focus-visible[b-avacp28r3b],
.nav-entry:focus-visible[b-avacp28r3b] {
    outline: 2px solid var(--brand);
    outline-offset: 1px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   ICON — clean, no box
   ───────────────────────────────────────────────────────────────────────────── */
.nav-icon[b-avacp28r3b] {
    width: 1.5rem;
    min-width: 1.5rem;
    height: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 1rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.68);
    transition: color 0.14s;
}

.nav-icon .bi[b-avacp28r3b] {
    display: block;
    line-height: 1;
}

/* ─────────────────────────────────────────────────────────────────────────────
   LABEL + CHEVRON
   ───────────────────────────────────────────────────────────────────────────── */
.nav-group-copy[b-avacp28r3b] {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    overflow: hidden;
    flex: 1 1 auto;
    min-width: 0;
}

.nav-label[b-avacp28r3b] {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    display: block;
    color: inherit;
    opacity: 1;
    transition: opacity 0.15s ease;
}

.nav-chevron[b-avacp28r3b] {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.54);
    opacity: 0.78;
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.15s;
}

.nav-chevron.expanded[b-avacp28r3b] {
    transform: rotate(180deg);
    opacity: 0.9;
}

/* ─────────────────────────────────────────────────────────────────────────────
   CHILDREN — indented sub-list with a thread line
   ───────────────────────────────────────────────────────────────────────────── */
.nav-children[b-avacp28r3b] {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    margin-top: 0.125rem;
    margin-bottom: 0.375rem;
    padding-left: 0.875rem;
    border-left: 1px solid rgba(255, 255, 255, 0.10);
    margin-left: 1.375rem;
}

.nav-child[b-avacp28r3b] {
    min-height: 2.25rem;
    padding: 0.375rem 0.5rem 0.375rem 0.625rem;
    font-size: 0.8125rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.76);
}

.nav-child .nav-icon[b-avacp28r3b] {
    font-size: 0.8125rem;
    width: 1.25rem;
    min-width: 1.25rem;
    height: 1.25rem;
}

.nav-child:hover[b-avacp28r3b] {
    background: rgba(255, 255, 255, 0.065);
    color: var(--sidebar-text);
}

.nav-child:hover .nav-icon[b-avacp28r3b] {
    color: var(--sidebar-text);
}

.nav-child.active[b-avacp28r3b] {
    color: var(--sidebar-nav-text-active);
    font-weight: 600;
    background: rgba(230, 166, 46, 0.16);
}

.nav-child.active[b-avacp28r3b]::before {
    opacity: 1;
    transform: scaleY(1);
}

.nav-child.active .nav-icon[b-avacp28r3b] {
    color: var(--brand);
}

.sidebar-nav[b-avacp28r3b]  a.nav-entry {
    position: relative;
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--sidebar-nav-text);
    text-decoration: none;
    text-decoration-line: none;
    border-radius: 0.5rem;
    min-height: 2.625rem;
    padding: 0.5rem 0.625rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: inherit;
    line-height: 1.4;
    overflow: hidden;
    white-space: nowrap;
}

.sidebar-nav[b-avacp28r3b]  a.nav-entry:hover,
.sidebar-nav[b-avacp28r3b]  a.nav-entry:focus,
.sidebar-nav[b-avacp28r3b]  a.nav-entry:active {
    text-decoration: none;
    text-decoration-line: none;
}

.sidebar-nav[b-avacp28r3b]  a.nav-entry::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    bottom: 0.55rem;
    width: 3px;
    border-radius: 0 999px 999px 0;
    background: var(--brand);
    opacity: 0;
    transition: opacity 0.15s, transform 0.15s;
    transform: scaleY(0.4);
}

.sidebar-nav[b-avacp28r3b]  a.nav-entry:hover {
    background: rgba(255, 255, 255, 0.075);
    color: var(--sidebar-nav-text-hover);
}

.sidebar-nav[b-avacp28r3b]  a.nav-entry.active {
    background: rgba(230, 166, 46, 0.18);
    color: var(--sidebar-nav-text-active);
    font-weight: 600;
    box-shadow: inset 0 0 0 1px rgba(230, 166, 46, 0.24);
}

.sidebar-nav[b-avacp28r3b]  a.nav-entry.active::before {
    opacity: 1;
    transform: scaleY(1);
}

.sidebar-nav[b-avacp28r3b]  a.nav-entry .nav-icon {
    width: 1.5rem;
    min-width: 1.5rem;
    height: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 1rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.68);
    transition: color 0.14s;
}

.sidebar-nav[b-avacp28r3b]  a.nav-entry:hover .nav-icon {
    color: var(--sidebar-text);
}

.sidebar-nav[b-avacp28r3b]  a.nav-entry.active .nav-icon {
    color: var(--brand);
}

.sidebar-nav[b-avacp28r3b]  a.nav-entry .nav-icon .bi {
    display: block;
    line-height: 1;
}

.sidebar-nav[b-avacp28r3b]  a.nav-entry .nav-label {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    display: block;
    color: inherit;
    opacity: 1;
}

.sidebar-nav[b-avacp28r3b]  a.nav-child {
    min-height: 2.25rem;
    padding: 0.375rem 0.5rem 0.375rem 0.625rem;
    font-size: 0.8125rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.76);
}

.sidebar-nav[b-avacp28r3b]  a.nav-child .nav-icon {
    font-size: 0.8125rem;
    width: 1.25rem;
    min-width: 1.25rem;
    height: 1.25rem;
}

.sidebar-nav[b-avacp28r3b]  a.nav-child:hover {
    background: rgba(255, 255, 255, 0.065);
    color: var(--sidebar-text);
}

.sidebar-nav[b-avacp28r3b]  a.nav-child.active {
    color: var(--sidebar-nav-text-active);
    font-weight: 600;
    background: rgba(230, 166, 46, 0.16);
}

/* ─────────────────────────────────────────────────────────────────────────────
   SIDEBAR FOOTER
   ───────────────────────────────────────────────────────────────────────────── */
.sidebar-footer[b-avacp28r3b] {
    flex: 0 0 auto;
    padding: 0.75rem 0.875rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.02);
    transition: padding 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-footer-profile[b-avacp28r3b] {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.15s;
    overflow: hidden;
}

.sidebar-footer-profile:hover[b-avacp28r3b] {
    background: rgba(255, 255, 255, 0.075);
}

.sidebar-footer-copy[b-avacp28r3b] {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    line-height: 1.25;
    transition: opacity 0.15s ease;
}

.sidebar-footer-copy strong[b-avacp28r3b] {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--sidebar-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-footer-role[b-avacp28r3b] {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.6875rem;
    color: var(--sidebar-text-muted);
    white-space: nowrap;
}

.sidebar-footer-dot[b-avacp28r3b] {
    font-size: 0.35rem;
    color: var(--brand);
    line-height: 1;
}

/* Avatar circle */
.avatar-circle[b-avacp28r3b] {
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand) 0%, #f3bd52 100%);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(230, 166, 46, 0.25);
}

/* ─────────────────────────────────────────────────────────────────────────────
   COLLAPSED STATE — icon-only, labels/chevrons/sections hidden
   ───────────────────────────────────────────────────────────────────────────── */
.backoffice-shell.is-collapsed .brand-copy[b-avacp28r3b],
.backoffice-shell.is-collapsed .nav-label[b-avacp28r3b],
.backoffice-shell.is-collapsed .nav-chevron[b-avacp28r3b],
.backoffice-shell.is-collapsed .nav-section-label[b-avacp28r3b],
.backoffice-shell.is-collapsed .sidebar-footer-copy[b-avacp28r3b] {
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    pointer-events: none;
}

.backoffice-shell.is-collapsed .brand-panel[b-avacp28r3b] {
    justify-content: center;
    padding-inline: 0;
}

.backoffice-shell.is-collapsed .brand-lockup[b-avacp28r3b] {
    justify-content: center;
    flex: 0 0 auto;
}

.backoffice-shell.is-collapsed .brand-mark[b-avacp28r3b] {
    display: inline-flex;
}

.backoffice-shell.is-collapsed .sidebar-nav-scroll[b-avacp28r3b] {
    padding-inline: 0.625rem;
}

.backoffice-shell.is-collapsed .nav-group-toggle[b-avacp28r3b],
.backoffice-shell.is-collapsed .nav-entry[b-avacp28r3b] {
    justify-content: center;
    padding-inline: 0;
    width: 2.75rem;
    margin-inline: auto;
}

.backoffice-shell.is-collapsed .nav-icon[b-avacp28r3b] {
    width: 1.625rem;
    min-width: 1.625rem;
    height: 1.625rem;
    font-size: 1rem;
}

.backoffice-shell.is-collapsed .nav-children[b-avacp28r3b] {
    display: none;
}

.backoffice-shell.is-collapsed .sidebar-footer[b-avacp28r3b] {
    padding-inline: 0.625rem;
}

.backoffice-shell.is-collapsed .sidebar-footer-profile[b-avacp28r3b] {
    justify-content: center;
    padding-inline: 0;
}

.backoffice-shell.is-collapsed .sidebar-nav[b-avacp28r3b]  a.nav-entry {
    justify-content: center;
    padding-inline: 0;
    width: 2.75rem;
    margin-inline: auto;
}

.backoffice-shell.is-collapsed .sidebar-nav[b-avacp28r3b]  a.nav-entry .nav-label {
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    pointer-events: none;
}

.backoffice-shell.is-collapsed .sidebar-nav[b-avacp28r3b]  a.nav-entry .nav-icon {
    width: 1.625rem;
    min-width: 1.625rem;
    height: 1.625rem;
    font-size: 1rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   TOGGLE BUTTON — lives in the topbar, always visible on desktop
   ───────────────────────────────────────────────────────────────────────────── */
.sidebar-toggle-btn[b-avacp28r3b] {
    flex: 0 0 auto;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-subtle);
    background: var(--surface-2);
    color: var(--text-secondary);
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s,
                transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-toggle-btn:hover[b-avacp28r3b] {
    background: var(--surface-3);
    color: var(--text-primary);
    border-color: var(--brand);
}

.sidebar-toggle-btn:focus-visible[b-avacp28r3b] {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

/* Rotates the icon when collapsed so it's always the correct affordance */
.backoffice-shell.is-collapsed .sidebar-toggle-btn[b-avacp28r3b] {
    transform: rotate(180deg);
}

/* ─────────────────────────────────────────────────────────────────────────────
   WORKSPACE
   ───────────────────────────────────────────────────────────────────────────── */
.workspace-panel[b-avacp28r3b] {
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: var(--surface-0);
}

/* ─────────────────────────────────────────────────────────────────────────────
   TOPBAR
   ───────────────────────────────────────────────────────────────────────────── */
.mobile-menu-btn[b-avacp28r3b] {
    display: none;
    flex: 0 0 auto;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid var(--border-subtle);
    border-radius: 0.5rem;
    background: var(--surface-2);
    color: var(--text-primary);
    font-size: 1.25rem;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s;
}

.mobile-menu-btn:hover[b-avacp28r3b] {
    background: var(--surface-3);
}

.topbar[b-avacp28r3b] {
    position: sticky;
    top: 0;
    z-index: 10;
    height: 60px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1.5rem;
    border-bottom: 1px solid var(--topbar-border);
    background: var(--topbar-bg);
    box-shadow: var(--topbar-shadow);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.topbar-title[b-avacp28r3b] {
    display: flex;
    flex-direction: column;
    color: var(--text-primary);
    line-height: 1.1;
    margin-right: auto;
}

.topbar-title strong[b-avacp28r3b] {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0;
}

.topbar-title .section-kicker[b-avacp28r3b] {
    font-size: 0.6875rem;
    color: var(--text-muted);
    font-weight: 400;
}

.topbar-search[b-avacp28r3b] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    background: var(--surface-2);
    border: 1px solid var(--border-subtle);
    min-width: 220px;
    max-width: 320px;
    flex: 0 1 280px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.topbar-search:focus-within[b-avacp28r3b] {
    border-color: rgba(230, 166, 46, 0.4);
    box-shadow: 0 0 0 3px rgba(230, 166, 46, 0.08);
}

.search-icon[b-avacp28r3b] {
    color: var(--text-muted);
    font-size: 0.875rem;
    flex: 0 0 auto;
}

.search-input[b-avacp28r3b] {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--text-primary);
    outline: none;
    font-size: 0.8275rem;
    font-family: inherit;
}

.search-input[b-avacp28r3b]::placeholder {
    color: var(--text-muted);
}

.search-shortcut[b-avacp28r3b] {
    flex: 0 0 auto;
    border-radius: 0.3rem;
    padding: 0.15rem 0.35rem;
    background: var(--surface-3);
    color: var(--text-muted);
    font-size: 0.7rem;
    border: 1px solid var(--border-subtle);
    white-space: nowrap;
}

.topbar-actions[b-avacp28r3b] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
}

/* Waiter alert pulse */
@keyframes waiter-pulse-b-avacp28r3b {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55); }
    50%       { box-shadow: 0 0 0 5px rgba(239, 68, 68, 0); }
}

.waiter-notif-btn.has-alerts[b-avacp28r3b] {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
    animation: waiter-pulse-b-avacp28r3b 1.8s ease-in-out infinite;
}

.waiter-badge[b-avacp28r3b] {
    background: #ef4444;
}

/* Icon pill — shared by theme-toggle, notif button */
.icon-pill[b-avacp28r3b] {
    flex: 0 0 auto;
    position: relative;
    width: 2.125rem;
    height: 2.125rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-subtle);
    background: var(--surface-2);
    color: var(--text-secondary);
    font-size: 0.9375rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.icon-pill:hover[b-avacp28r3b] {
    background: var(--surface-3);
    color: var(--text-primary);
}

.theme-toggle[b-avacp28r3b] {
    flex: 0 0 auto;
    width: 2.125rem;
    height: 2.125rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-subtle);
    background: var(--surface-2);
    color: var(--text-secondary);
    font-size: 0.9375rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.theme-toggle:hover[b-avacp28r3b] {
    background: var(--surface-3);
    color: var(--text-primary);
}

.notif-badge[b-avacp28r3b] {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0 0.2rem;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.establishment-chip[b-avacp28r3b],
.profile-chip[b-avacp28r3b] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.625rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-subtle);
    background: var(--surface-2);
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}

.establishment-chip:hover[b-avacp28r3b],
.profile-chip:hover[b-avacp28r3b] {
    background: var(--surface-3);
}

.chip-label[b-avacp28r3b] {
    display: block;
    font-size: 0.6875rem;
    color: var(--text-muted);
    line-height: 1;
}

.establishment-chip strong[b-avacp28r3b] {
    font-size: 0.8125rem;
    font-weight: 600;
    display: block;
    line-height: 1.2;
}

.profile-copy[b-avacp28r3b] {
    line-height: 1.2;
}

.profile-copy strong[b-avacp28r3b] {
    font-size: 0.8125rem;
    font-weight: 600;
    display: block;
}

.profile-copy span[b-avacp28r3b] {
    font-size: 0.6875rem;
    color: var(--text-muted);
    display: block;
}

/* ─────────────────────────────────────────────────────────────────────────────
   WORKSPACE CONTENT
   ───────────────────────────────────────────────────────────────────────────── */
.workspace-content[b-avacp28r3b] {
    min-width: 0;
    flex: 1 1 auto;
}

/* ─────────────────────────────────────────────────────────────────────────────
   MOBILE BACKDROP
   ───────────────────────────────────────────────────────────────────────────── */
.mobile-backdrop[b-avacp28r3b] {
    display: none;
}

/* ─────────────────────────────────────────────────────────────────────────────
   ERROR UI
   ───────────────────────────────────────────────────────────────────────────── */
#blazor-error-ui[b-avacp28r3b] {
    display: none;
}

/* ─────────────────────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 1280px) {
    .topbar-search[b-avacp28r3b] {
        min-width: 180px;
        flex-basis: 220px;
    }
}

@media (max-width: 1024px) {
    .topbar-title[b-avacp28r3b] {
        display: none;
    }

    .establishment-chip[b-avacp28r3b] {
        display: none;
    }
}

/* ── Tablet / mobile breakpoint ── */
@media (max-width: 992px) {
    /* Shell reverts to single column */
    .backoffice-shell[b-avacp28r3b],
    .backoffice-shell.is-collapsed[b-avacp28r3b] {
        grid-template-columns: 1fr;
    }

    /* Sidebar becomes a fixed off-canvas drawer */
    .sidebar-panel[b-avacp28r3b] {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: min(320px, 86vw);
        height: 100vh;
        z-index: 1001;
        transform: translateX(-100%);
        box-shadow: none;
    }

    .sidebar-panel.mobile-open[b-avacp28r3b] {
        transform: translateX(0);
        box-shadow: 12px 0 40px rgba(0, 0, 0, 0.4);
    }

    /* Inner width always full drawer on mobile */
    .sidebar-inner[b-avacp28r3b],
    .backoffice-shell.is-collapsed .sidebar-inner[b-avacp28r3b] {
        width: min(320px, 86vw);
    }

    /* Reset ALL collapsed overrides on mobile */
    .backoffice-shell.is-collapsed .nav-label[b-avacp28r3b],
    .backoffice-shell.is-collapsed .nav-chevron[b-avacp28r3b],
    .backoffice-shell.is-collapsed .nav-section-label[b-avacp28r3b],
    .backoffice-shell.is-collapsed .sidebar-footer-copy[b-avacp28r3b],
    .backoffice-shell.is-collapsed .brand-copy[b-avacp28r3b] {
        opacity: 1;
        max-width: unset;
        overflow: visible;
        pointer-events: auto;
        display: block; /* ensure revert from any display:none */
    }

    .backoffice-shell.is-collapsed .nav-chevron[b-avacp28r3b] {
        display: inline-flex;
    }

    .backoffice-shell.is-collapsed .nav-section-label[b-avacp28r3b] {
        display: block;
    }

    .backoffice-shell.is-collapsed .brand-panel[b-avacp28r3b] {
        justify-content: flex-start;
        padding-inline: 1rem;
    }

    .backoffice-shell.is-collapsed .brand-lockup[b-avacp28r3b] {
        flex: 1 1 auto;
        justify-content: flex-start;
    }

    .backoffice-shell.is-collapsed .brand-mark[b-avacp28r3b] {
        display: none;
    }

    .backoffice-shell.is-collapsed .sidebar-nav-scroll[b-avacp28r3b] {
        padding-inline: 0.875rem;
    }

    .backoffice-shell.is-collapsed .nav-group-toggle[b-avacp28r3b],
    .backoffice-shell.is-collapsed .nav-entry[b-avacp28r3b] {
        justify-content: flex-start;
        width: 100%;
        margin-inline: 0;
        padding-inline: 0.625rem;
    }

    .backoffice-shell.is-collapsed .nav-icon[b-avacp28r3b] {
        width: 1.5rem;
        min-width: 1.5rem;
        height: 1.5rem;
        font-size: 1rem;
    }

    .backoffice-shell.is-collapsed .nav-children[b-avacp28r3b] {
        display: flex;
    }

    .backoffice-shell.is-collapsed .sidebar-footer[b-avacp28r3b] {
        padding-inline: 0.875rem;
    }

    .backoffice-shell.is-collapsed .sidebar-footer-profile[b-avacp28r3b] {
        justify-content: flex-start;
        padding-inline: 0.5rem;
    }

    .backoffice-shell.is-collapsed .sidebar-nav[b-avacp28r3b]  a.nav-entry {
        justify-content: flex-start;
        width: 100%;
        margin-inline: 0;
        padding-inline: 0.625rem;
    }

    .backoffice-shell.is-collapsed .sidebar-nav[b-avacp28r3b]  a.nav-entry .nav-label {
        opacity: 1;
        max-width: unset;
        overflow: hidden;
        pointer-events: auto;
    }

    .backoffice-shell.is-collapsed .sidebar-nav[b-avacp28r3b]  a.nav-entry .nav-icon {
        width: 1.5rem;
        min-width: 1.5rem;
        height: 1.5rem;
        font-size: 1rem;
    }

    /* Toggle button: hide the topbar toggle, show the mobile open/close buttons */
    .sidebar-toggle-btn[b-avacp28r3b] {
        display: none;
    }

    .mobile-close-btn[b-avacp28r3b] {
        display: inline-flex;
    }

    .mobile-menu-btn[b-avacp28r3b] {
        display: inline-flex;
    }

    /* Collapsed icon rotation does not apply on mobile */
    .backoffice-shell.is-collapsed .sidebar-toggle-btn[b-avacp28r3b] {
        transform: none;
    }

    /* Mobile backdrop */
    .mobile-backdrop[b-avacp28r3b] {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        backdrop-filter: blur(2px);
    }

    .topbar[b-avacp28r3b] {
        padding-inline: 0.875rem;
        height: 56px;
        gap: 0.625rem;
    }

    .topbar-search[b-avacp28r3b] {
        min-width: 0;
        flex-basis: auto;
        flex: 1 1 auto;
        max-width: 100%;
    }

    .profile-chip[b-avacp28r3b] {
        display: none;
    }
}

@media (max-width: 640px) {
    .topbar-search[b-avacp28r3b] {
        display: none;
    }

    .topbar[b-avacp28r3b] {
        padding-inline: 0.75rem;
    }

    .search-shortcut[b-avacp28r3b] {
        display: none;
    }
}
/* /Components/Layout/StationLayout.razor.rz.scp.css */
/* ── Station Layout ─────────────────────────────────────────── */
.station-shell[b-4sq7q4gvba] {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--surface-0);
    color: var(--text-primary);
}

/* ── Top bar ────────────────────────────────────────────────── */
.station-topbar[b-4sq7q4gvba] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--surface-1);
    border-bottom: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.station-brand[b-4sq7q4gvba] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.station-brand-icon[b-4sq7q4gvba] {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: block;
    flex: 0 0 auto;
}

.station-brand-wordmark[b-4sq7q4gvba] {
    display: block;
    width: 172px;
    height: auto;
    border-radius: 8px;
    flex: 0 0 auto;
}

.station-title[b-4sq7q4gvba] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.station-dept-badge[b-4sq7q4gvba] {
    background: var(--brand);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    text-transform: capitalize;
}

.station-establishment[b-4sq7q4gvba] {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.station-topbar-actions[b-4sq7q4gvba] {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.station-user[b-4sq7q4gvba] {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.station-sign-out-btn[b-4sq7q4gvba] {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 0.375rem 0.875rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: background 0.15s;
}

.station-sign-out-btn:hover[b-4sq7q4gvba] {
    background: var(--surface-2);
}

/* ── Content ────────────────────────────────────────────────── */
.station-content[b-4sq7q4gvba] {
    flex: 1;
    overflow: auto;
    padding: 1rem;
}
/* /Components/Pages/Deliveries/ActiveDeliveries.razor.rz.scp.css */
.delivery-board[b-vruhfg9jpf] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    min-height: 0;
}

.delivery-column[b-vruhfg9jpf] {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: var(--surface-1);
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    overflow: hidden;
}

.delivery-column-header[b-vruhfg9jpf] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid var(--col-color, var(--border-subtle));
}

.delivery-column-dot[b-vruhfg9jpf] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.delivery-column-count[b-vruhfg9jpf] {
    margin-left: auto;
    background: var(--surface-2);
    color: var(--text-secondary);
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.delivery-column-cards[b-vruhfg9jpf] {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.delivery-card[b-vruhfg9jpf] {
    background: var(--surface-2);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 0.875rem;
}

.delivery-card.urgent[b-vruhfg9jpf] {
    border-color: #ef4444;
    box-shadow: 0 0 0 1px #ef444455, 0 0 12px #ef444422;
}

.delivery-card-header[b-vruhfg9jpf] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.delivery-card-ref[b-vruhfg9jpf] {
    display: flex;
    flex-direction: column;
}

.delivery-card-unit[b-vruhfg9jpf] {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.delivery-card-elapsed[b-vruhfg9jpf] {
    background: color-mix(in srgb, var(--elapsed-color, #f59e0b) 15%, transparent);
    color: var(--elapsed-color, #f59e0b);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
}

.delivery-customer[b-vruhfg9jpf] {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    display: grid;
    gap: 0.15rem;
    margin-bottom: 0.6rem;
}

.delivery-paid[b-vruhfg9jpf] {
    color: #10b981;
    font-weight: 600;
}

.delivery-items[b-vruhfg9jpf] {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.delivery-item[b-vruhfg9jpf] {
    padding: 0.5rem 0.625rem;
    background: var(--surface-1);
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
}

.delivery-item-main[b-vruhfg9jpf] {
    display: flex;
    align-items: baseline;
    gap: 0.375rem;
}

.delivery-item-qty[b-vruhfg9jpf] {
    font-weight: 700;
    color: var(--brand);
    min-width: 2rem;
}

.delivery-item-choices[b-vruhfg9jpf] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.25rem;
    padding-left: 2rem;
}

.delivery-item-choice[b-vruhfg9jpf] {
    font-size: 0.8125rem;
    background: var(--surface-2);
    color: var(--text-secondary);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
}

.delivery-item-note[b-vruhfg9jpf] {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 0.25rem;
    padding-left: 2rem;
}

.delivery-action-btn[b-vruhfg9jpf] {
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.625rem;
    background: color-mix(in srgb, var(--action-color, var(--brand)) 15%, transparent);
    color: var(--action-color, var(--brand));
    border: 1px solid color-mix(in srgb, var(--action-color, var(--brand)) 40%, transparent);
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
}

.delivery-action-btn:disabled[b-vruhfg9jpf] {
    opacity: 0.5;
    cursor: not-allowed;
}

.delivery-empty-col[b-vruhfg9jpf] {
    text-align: center;
    padding: 1.5rem 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}
/* /Components/Pages/Deliveries/ReadyToDeliver.razor.rz.scp.css */
.delivery-board.single-column[b-frvgojbfzd] {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}

.delivery-column[b-frvgojbfzd] {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: var(--surface-1);
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    overflow: hidden;
}

.delivery-column-header[b-frvgojbfzd] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid var(--col-color, var(--border-subtle));
}

.delivery-column-dot[b-frvgojbfzd] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.delivery-column-count[b-frvgojbfzd] {
    margin-left: auto;
    background: var(--surface-2);
    color: var(--text-secondary);
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.delivery-column-cards[b-frvgojbfzd] {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.delivery-card[b-frvgojbfzd] {
    background: var(--surface-2);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 0.875rem;
}

.delivery-card.urgent[b-frvgojbfzd] {
    border-color: #ef4444;
    box-shadow: 0 0 0 1px #ef444455, 0 0 12px #ef444422;
}

.delivery-card-header[b-frvgojbfzd] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.delivery-card-ref[b-frvgojbfzd] {
    display: flex;
    flex-direction: column;
}

.delivery-card-unit[b-frvgojbfzd] {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.delivery-card-elapsed[b-frvgojbfzd] {
    background: color-mix(in srgb, var(--elapsed-color, #f59e0b) 15%, transparent);
    color: var(--elapsed-color, #f59e0b);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
}

.delivery-customer[b-frvgojbfzd] {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    display: grid;
    gap: 0.15rem;
    margin-bottom: 0.6rem;
}

.delivery-paid[b-frvgojbfzd] {
    color: #10b981;
    font-weight: 600;
}

.delivery-unpaid[b-frvgojbfzd] {
    color: #ef4444;
    font-weight: 600;
}

.delivery-items[b-frvgojbfzd] {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.delivery-item[b-frvgojbfzd] {
    padding: 0.5rem 0.625rem;
    background: var(--surface-1);
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
}

.delivery-item-main[b-frvgojbfzd] {
    display: flex;
    align-items: baseline;
    gap: 0.375rem;
}

.delivery-item-qty[b-frvgojbfzd] {
    font-weight: 700;
    color: var(--brand);
    min-width: 2rem;
}

.delivery-item-choices[b-frvgojbfzd] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.25rem;
    padding-left: 2rem;
}

.delivery-item-choice[b-frvgojbfzd] {
    font-size: 0.8125rem;
    background: var(--surface-2);
    color: var(--text-secondary);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
}

.delivery-item-note[b-frvgojbfzd] {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 0.25rem;
    padding-left: 2rem;
}

.delivery-action-btn[b-frvgojbfzd] {
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.625rem;
    background: color-mix(in srgb, var(--action-color, var(--brand)) 15%, transparent);
    color: var(--action-color, var(--brand));
    border: 1px solid color-mix(in srgb, var(--action-color, var(--brand)) 40%, transparent);
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
}

.delivery-action-btn:disabled[b-frvgojbfzd] {
    opacity: 0.5;
    cursor: not-allowed;
}

.delivery-empty-col[b-frvgojbfzd] {
    text-align: center;
    padding: 1.5rem 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}
/* /Components/Pages/Station/DeliveryStation.razor.rz.scp.css */
/* ══════════════════════════════════════════════════════════════
   Delivery Station — Delivery order board
   ══════════════════════════════════════════════════════════════ */

/* ── Toolbar ────────────────────────────────────────────────── */
.delivery-toolbar[b-qe64zac8fn] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.delivery-toolbar-count[b-qe64zac8fn] {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.delivery-refresh-btn[b-qe64zac8fn] {
    background: var(--surface-2);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}

.delivery-refresh-btn:hover[b-qe64zac8fn] {
    color: var(--brand);
    border-color: var(--brand);
}

/* ── Board grid ─────────────────────────────────────────────── */
.delivery-board[b-qe64zac8fn] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    height: calc(100vh - 7rem);
    min-height: 0;
}

/* ── Column ─────────────────────────────────────────────────── */
.delivery-column[b-qe64zac8fn] {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: var(--surface-1);
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    overflow: hidden;
}

.delivery-column-header[b-qe64zac8fn] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid var(--col-color, var(--border-subtle));
    flex-shrink: 0;
}

.delivery-column-dot[b-qe64zac8fn] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.delivery-column-count[b-qe64zac8fn] {
    margin-left: auto;
    background: var(--surface-2);
    color: var(--text-secondary);
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.delivery-column-cards[b-qe64zac8fn] {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* ── Card ───────────────────────────────────────────────────── */
.delivery-card[b-qe64zac8fn] {
    background: var(--surface-2);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 0.875rem;
    transition: box-shadow 0.15s;
}

.delivery-card.urgent[b-qe64zac8fn] {
    border-color: #ef4444;
    box-shadow: 0 0 0 1px #ef444455, 0 0 12px #ef444422;
}

.delivery-card-header[b-qe64zac8fn] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.625rem;
}

.delivery-card-ref[b-qe64zac8fn] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.delivery-card-ref strong[b-qe64zac8fn] {
    font-size: 1.125rem;
    color: var(--text-primary);
}

.delivery-card-status-chip[b-qe64zac8fn] {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: color-mix(in srgb, var(--chip-color, var(--brand)) 15%, transparent);
    color: var(--chip-color, var(--brand));
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
}

.delivery-card-elapsed[b-qe64zac8fn] {
    background: color-mix(in srgb, var(--elapsed-color, #f59e0b) 15%, transparent);
    color: var(--elapsed-color, #f59e0b);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Customer info ──────────────────────────────────────────── */
.delivery-customer-info[b-qe64zac8fn] {
    background: var(--surface-1);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 0.625rem 0.75rem;
    margin-bottom: 0.625rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.delivery-info-row[b-qe64zac8fn] {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.delivery-info-icon[b-qe64zac8fn] {
    flex-shrink: 0;
    font-size: 0.8125rem;
}

.delivery-info-text[b-qe64zac8fn] {
    color: var(--text-primary);
    word-break: break-word;
}

/* ── Order total ────────────────────────────────────────────── */
.delivery-order-total[b-qe64zac8fn] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.625rem;
    padding: 0.375rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.delivery-order-total strong[b-qe64zac8fn] {
    color: var(--text-primary);
    font-size: 1rem;
}

.delivery-paid-badge[b-qe64zac8fn] {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    background: #10b98122;
    color: #10b981;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    margin-left: auto;
}

.delivery-unpaid-badge[b-qe64zac8fn] {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    background: #ef444422;
    color: #fca5a5;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    margin-left: auto;
}

/* ── Items list ─────────────────────────────────────────────── */
.delivery-items[b-qe64zac8fn] {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.delivery-item[b-qe64zac8fn] {
    padding: 0.5rem 0.625rem;
    background: var(--surface-1);
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
}

.delivery-item-main[b-qe64zac8fn] {
    display: flex;
    align-items: baseline;
    gap: 0.375rem;
    font-size: 1rem;
}

.delivery-item-qty[b-qe64zac8fn] {
    font-weight: 700;
    color: var(--brand);
    font-size: 1.125rem;
    min-width: 2rem;
}

.delivery-item-name[b-qe64zac8fn] {
    color: var(--text-primary);
    font-weight: 500;
}

.delivery-item-choices[b-qe64zac8fn] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.25rem;
    padding-left: 2.375rem;
}

.delivery-item-choice[b-qe64zac8fn] {
    font-size: 0.8125rem;
    background: var(--surface-2);
    color: var(--text-secondary);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
}

.delivery-item-note[b-qe64zac8fn] {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 0.25rem;
    padding-left: 2.375rem;
}

/* ── Action button ──────────────────────────────────────────── */
.delivery-action-btn[b-qe64zac8fn] {
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.625rem;
    background: color-mix(in srgb, var(--action-color, var(--brand)) 15%, transparent);
    color: var(--action-color, var(--brand));
    border: 1px solid color-mix(in srgb, var(--action-color, var(--brand)) 40%, transparent);
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}

.delivery-action-btn:hover:not(:disabled)[b-qe64zac8fn] {
    background: color-mix(in srgb, var(--action-color, var(--brand)) 25%, transparent);
    transform: translateY(-1px);
}

.delivery-action-btn:disabled[b-qe64zac8fn] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── Empty states ───────────────────────────────────────────── */
.delivery-empty-col[b-qe64zac8fn] {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.delivery-empty-state[b-qe64zac8fn] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 60vh;
    gap: 0.75rem;
    color: var(--text-muted);
}

.delivery-empty-icon[b-qe64zac8fn] {
    font-size: 3rem;
}

.delivery-empty-state p[b-qe64zac8fn] {
    font-size: 1.125rem;
}

/* ── Alerts / loading ───────────────────────────────────────── */
.delivery-alert[b-qe64zac8fn] {
    background: #ef444422;
    color: #fca5a5;
    border: 1px solid #ef444444;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.delivery-loading-indicator[b-qe64zac8fn] {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50vh;
    color: var(--text-muted);
    font-size: 1.125rem;
}
/* /Components/Pages/Station/StationDisplay.razor.rz.scp.css */
/* ══════════════════════════════════════════════════════════════
   Station Display — Large-screen kitchen / bar order board
   ══════════════════════════════════════════════════════════════ */

/* ── Board grid ─────────────────────────────────────────────── */
.station-board[b-mrtr41of7a] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    height: calc(100vh - 5rem);
    min-height: 0;
}

/* ── Column ─────────────────────────────────────────────────── */
.station-column[b-mrtr41of7a] {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: var(--surface-1);
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    overflow: hidden;
}

.station-column-header[b-mrtr41of7a] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid var(--col-color, var(--border-subtle));
    flex-shrink: 0;
}

.station-column-dot[b-mrtr41of7a] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.station-column-count[b-mrtr41of7a] {
    margin-left: auto;
    background: var(--surface-2);
    color: var(--text-secondary);
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.station-column-cards[b-mrtr41of7a] {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* ── Card ───────────────────────────────────────────────────── */
.station-card[b-mrtr41of7a] {
    background: var(--surface-2);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 0.875rem;
    transition: box-shadow 0.15s;
}

.station-card.urgent[b-mrtr41of7a] {
    border-color: #ef4444;
    box-shadow: 0 0 0 1px #ef444455, 0 0 12px #ef444422;
}

.station-card-header[b-mrtr41of7a] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.625rem;
}

.station-card-ref[b-mrtr41of7a] {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.station-card-ref strong[b-mrtr41of7a] {
    font-size: 1.125rem;
    color: var(--text-primary);
}

.station-card-unit[b-mrtr41of7a] {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.station-card-elapsed[b-mrtr41of7a] {
    background: color-mix(in srgb, var(--elapsed-color, #f59e0b) 15%, transparent);
    color: var(--elapsed-color, #f59e0b);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Items list ─────────────────────────────────────────────── */
.station-items[b-mrtr41of7a] {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.station-item[b-mrtr41of7a] {
    padding: 0.5rem 0.625rem;
    background: var(--surface-1);
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
}

.station-item-main[b-mrtr41of7a] {
    display: flex;
    align-items: baseline;
    gap: 0.375rem;
    font-size: 1rem;
}

.station-item-qty[b-mrtr41of7a] {
    font-weight: 700;
    color: var(--brand);
    font-size: 1.125rem;
    min-width: 2rem;
}

.station-item-name[b-mrtr41of7a] {
    color: var(--text-primary);
    font-weight: 500;
}

.station-item-choices[b-mrtr41of7a] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.25rem;
    padding-left: 2.375rem;
}

.station-item-choice[b-mrtr41of7a] {
    font-size: 0.8125rem;
    background: var(--surface-2);
    color: var(--text-secondary);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
}

.station-item-note[b-mrtr41of7a] {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 0.25rem;
    padding-left: 2.375rem;
}

.station-recipe-btn[b-mrtr41of7a] {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.375rem;
    background: transparent;
    border: 1px dashed var(--border-subtle);
    color: var(--text-muted);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}

.station-recipe-btn:hover[b-mrtr41of7a] {
    color: var(--brand);
    border-color: var(--brand);
}

/* ── Action button ──────────────────────────────────────────── */
.station-action-btn[b-mrtr41of7a] {
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.625rem;
    background: color-mix(in srgb, var(--action-color, var(--brand)) 15%, transparent);
    color: var(--action-color, var(--brand));
    border: 1px solid color-mix(in srgb, var(--action-color, var(--brand)) 40%, transparent);
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}

.station-action-btn:hover:not(:disabled)[b-mrtr41of7a] {
    background: color-mix(in srgb, var(--action-color, var(--brand)) 25%, transparent);
    transform: translateY(-1px);
}

.station-action-btn:disabled[b-mrtr41of7a] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── Empty state ────────────────────────────────────────────── */
.station-empty-col[b-mrtr41of7a] {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ── Alerts / loading ───────────────────────────────────────── */
.station-alert[b-mrtr41of7a] {
    background: #ef444422;
    color: #fca5a5;
    border: 1px solid #ef444444;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.station-loading-indicator[b-mrtr41of7a] {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50vh;
    color: var(--text-muted);
    font-size: 1.125rem;
}

/* ── Recipe popup ───────────────────────────────────────────── */
.station-overlay[b-mrtr41of7a] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
}

.station-recipe-popup[b-mrtr41of7a] {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
    background: var(--surface-1);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1.5rem;
    min-width: 360px;
    max-width: 560px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.station-recipe-header[b-mrtr41of7a] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 1.0625rem;
    color: var(--text-primary);
}

.station-recipe-close[b-mrtr41of7a] {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
}

.station-recipe-close:hover[b-mrtr41of7a] {
    color: var(--text-primary);
}

.station-recipe-loading[b-mrtr41of7a],
.station-recipe-empty[b-mrtr41of7a] {
    color: var(--text-muted);
    font-size: 0.9375rem;
    text-align: center;
    padding: 1rem 0;
}

.station-recipe-table[b-mrtr41of7a] {
    width: 100%;
    border-collapse: collapse;
}

.station-recipe-table th[b-mrtr41of7a] {
    text-align: left;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
}

.station-recipe-table td[b-mrtr41of7a] {
    padding: 0.625rem 0.75rem;
    font-size: 0.9375rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-subtle);
}

.station-recipe-table tbody tr:last-child td[b-mrtr41of7a] {
    border-bottom: none;
}
