:root {
    --black: #0d0e0c;
    --black-2: #13140f;
    --black-3: #1a1b16;
    --panel: #191a15;
    --panel-soft: #20211b;
    --cream: #ead8b1;
    --cream-soft: #d7bf91;
    --bronze: #b58d55;
    --bronze-light: #cda56e;
    --bronze-dark: #7e5e35;
    --text: #efe1c2;
    --muted: #b5a589;
    --line: rgba(181,141,85,.28);
    --line-strong: rgba(181,141,85,.58);
    --danger: #a3483d;
    --success: #69835e;
    --sidebar-width: 292px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--black-2);
    color: var(--text);
    font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.factory-app {
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    min-height: 100vh;
}

/* SIDEBAR */

.factory-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 40;
    padding: 14px 18px 18px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 18%, rgba(181,141,85,.07), transparent 36%),
        linear-gradient(180deg, #0d0e0c 0%, #12130f 100%);
    border-right: 1px solid var(--line);
}

.factory-sidebar::after {
    content: "⚙";
    position: absolute;
    right: -72px;
    bottom: 78px;
    font-size: 210px;
    color: rgba(181,141,85,.055);
    transform: rotate(17deg);
    pointer-events: none;
}

.factory-logo-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 8px 0 2px;
    background: transparent;
}

.factory-logo {
    display: block;
    width: 220px;
    height: 220px;
    object-fit: contain;
    background: transparent;
    filter:
        drop-shadow(0 8px 12px rgba(0, 0, 0, 0.35))
        drop-shadow(0 18px 28px rgba(0, 0, 0, 0.20));
    transition: transform 0.25s ease, filter 0.25s ease;
}

.factory-logo:hover {
    transform: scale(1.025);
    filter:
        drop-shadow(0 10px 16px rgba(0, 0, 0, 0.42))
        drop-shadow(0 20px 32px rgba(0, 0, 0, 0.24));
}

.factory-name {
    position: relative;
    z-index: 2;
    margin: 0 0 22px;
    text-align: center;
    color: var(--cream);
    font-size: 2rem;
    font-weight: 1000;
    line-height: .96;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.factory-name::after {
    content: "★";
    display: block;
    margin-top: 8px;
    color: var(--bronze);
    font-size: .92rem;
}

.factory-nav {
    position: relative;
    z-index: 2;
    display: grid;
}

.factory-nav-link {
    min-height: 55px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 14px;
    border-bottom: 1px solid rgba(181,141,85,.16);
    background: rgba(255,255,255,.018);
    color: var(--cream);
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: .045em;
    transition: .17s ease;
}

.factory-nav-link:first-child {
    border-radius: 6px 6px 0 0;
}

.factory-nav-link:last-child {
    border-radius: 0 0 6px 6px;
}

.factory-nav-link:hover,
.factory-nav-link.active {
    color: var(--black);
    background: linear-gradient(180deg, #c49a63, #aa804d);
}

.factory-nav-icon {
    width: 29px;
    display: inline-grid;
    place-items: center;
}

.factory-nav-badge {
    margin-left: auto;
    min-width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    padding: 0 7px;
    border-radius: 50px;
    background: var(--bronze-light);
    color: var(--black);
    font-weight: 1000;
}

.factory-nav-link:hover .factory-nav-badge,
.factory-nav-link.active .factory-nav-badge {
    color: var(--cream);
    background: var(--black);
}

.factory-sidebar-footer {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    line-height: 1.7;
    font-size: .84rem;
}

.factory-socials {
    display: flex;
    gap: 14px;
    margin-bottom: 12px;
}

/* ICONS */

.factory-icon {
    width: 24px;
    height: 24px;
    color: currentColor;
    flex: 0 0 auto;
}

.factory-icon-sm {
    width: 18px;
    height: 18px;
}

.factory-icon-lg {
    width: 40px;
    height: 40px;
}

/* MAIN */

.factory-main {
    min-width: 0;
    background: var(--black-2);
}

.factory-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    height: 68px;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(320px, 430px) minmax(220px, 1fr);
    align-items: center;
    gap: 18px;
    padding: 0 24px;
    background: rgba(13,14,12,.985);
    border-bottom: 1px solid var(--line);
}

.factory-topbar-brand {
    color: var(--cream);
    font-size: 1.3rem;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: .035em;
}

.factory-search {
    position: relative;
}

.factory-search .factory-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    color: var(--bronze-light);
    pointer-events: none;
}

.factory-search input {
    width: 100%;
    height: 42px;
    padding: 0 14px 0 40px;
    border: 1px solid var(--line);
    border-radius: 7px;
    outline: none;
    background: #191a15;
    color: var(--cream);
}

.factory-search input:focus {
    border-color: var(--bronze);
}

.factory-topbar-actions {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.factory-topbar-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--cream);
    font-weight: 800;
    white-space: nowrap;
}

.factory-topbar-link strong {
    min-width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: var(--bronze);
    color: var(--black);
}

.mobile-menu-btn {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: transparent;
    color: var(--cream);
}

/* HERO */

.factory-hero {
    position: relative;
    min-height: 420px;
    overflow: hidden;
    color: #10110e;
    background-image:
        linear-gradient(90deg,
            rgba(235,217,183,.99) 0%,
            rgba(235,217,183,.97) 36%,
            rgba(235,217,183,.80) 48%,
            rgba(235,217,183,.18) 66%,
            rgba(235,217,183,0) 100%
        ),
        url("/images/factory-hero-pizza-beer.jpg");
    background-size: cover;
    background-position: center;
}

.factory-hero::before {
    content: "⚙";
    position: absolute;
    left: 47%;
    top: -74px;
    font-size: 320px;
    color: rgba(35,29,20,.14);
    transform: rotate(-15deg);
}

.factory-hero-content {
    position: relative;
    z-index: 2;
    width: min(1210px, calc(100% - 50px));
    margin: 0 auto;
    padding: 42px 0 36px;
}

.factory-hero-copy {
    width: min(620px, 55%);
}

.factory-hero h1 {
    margin: 0;
    color: #11120f;
    font-size: clamp(3.5rem, 6.9vw, 6.35rem);
    line-height: .84;
    letter-spacing: -.028em;
    font-weight: 1000;
    text-transform: uppercase;
}

.factory-divider {
    width: min(370px, 86%);
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 20px 0 16px;
    color: var(--bronze-dark);
}

.factory-divider::before,
.factory-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--bronze-dark);
}

.factory-hero p {
    margin: 0 0 18px;
    font-size: 1.08rem;
    line-height: 1.45;
}

.factory-btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 15px;
    border: 1px solid var(--line-strong);
    border-radius: 5px;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: .035em;
    transition: .15s ease;
}

.factory-btn:hover {
    transform: translateY(-1px);
}

.factory-btn-dark {
    color: var(--cream);
    background: var(--black);
}

.factory-btn-bronze {
    color: var(--black);
    background: linear-gradient(180deg, #c49a63, #aa804d);
}

.factory-btn-outline {
    color: var(--cream);
    background: transparent;
}

/* STORE */

.factory-store {
    padding: 12px 18px 18px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.01), transparent 30%),
        #11120f;
}

.factory-store-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr) 330px;
    gap: 18px;
    align-items: start;
}

.factory-section-heading {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 7px;
}

.factory-section-heading h2 {
    margin: 0;
    color: var(--bronze-light);
    font-size: 1.8rem;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: .025em;
}

.factory-products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 12px;
}

.factory-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 7px;
    background: linear-gradient(180deg,#1a1b16,#141510);
}

.factory-card-badge {
    position: absolute;
    left: 9px;
    top: 8px;
    z-index: 2;
    padding: 6px 9px;
    transform: rotate(-5deg);
    background: var(--cream-soft);
    color: var(--black);
    font-size: .72rem;
    font-weight: 1000;
    text-transform: uppercase;
}

.factory-card-image {
    width: 100%;
    aspect-ratio: 1.44 / 1;
    object-fit: cover;
    background: #0f100d;
}

.factory-card-body {
    padding: 12px;
}

.factory-card h3 {
    margin: 0 0 5px;
    color: var(--bronze-light);
    font-size: 1.04rem;
    text-transform: uppercase;
}

.factory-card p {
    min-height: 50px;
    margin: 0;
    color: var(--muted);
    font-size: .81rem;
    line-height: 1.45;
}

.factory-price {
    display: block;
    margin: 11px 0 10px;
    color: var(--bronze-light);
    font-size: 1.35rem;
    font-weight: 1000;
}

.factory-card .factory-btn {
    width: 100%;
}

/* CART PANEL */

.factory-cart-panel {
    position: sticky;
    top: 80px;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 7px;
    background: #141510;
}

.factory-cart-head {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 13px;
    border-bottom: 1px solid var(--line);
    color: var(--bronze-light);
    font-weight: 1000;
    text-transform: uppercase;
}

.factory-cart-head span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.factory-cart-items {
    max-height: 315px;
    overflow: auto;
}

.factory-cart-item {
    display: grid;
    grid-template-columns: 54px 1fr auto;
    gap: 9px;
    align-items: center;
    padding: 9px 10px;
    border-bottom: 1px solid rgba(181,141,85,.17);
}

.factory-cart-thumb {
    width: 54px;
    height: 48px;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 5px;
}

.factory-cart-item-name {
    color: var(--cream);
    font-size: .84rem;
}

.factory-cart-item-price {
    color: var(--cream);
    font-size: .84rem;
    font-weight: 800;
}

.factory-cart-qty {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
}

.factory-cart-qty button {
    width: 23px;
    height: 23px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 4px;
    background: #22231d;
    color: var(--cream);
}

.factory-cart-summary {
    padding: 11px 12px 12px;
}

.factory-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 6px 0;
    color: var(--cream);
    font-size: .86rem;
}

.factory-summary-total {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    font-size: 1rem;
    font-weight: 1000;
}

.factory-summary-total strong {
    color: var(--bronze-light);
    font-size: 1.45rem;
}

.factory-cart-summary .factory-btn {
    width: 100%;
    margin-top: 10px;
}

/* BENEFITS */

.factory-benefits {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    margin-top: 17px;
    border: 1px solid var(--line-strong);
    border-radius: 7px;
    overflow: hidden;
}

.factory-benefit {
    min-height: 103px;
    display: grid;
    grid-template-columns: 58px 1fr;
    align-items: center;
    gap: 10px;
    padding: 13px;
    border-right: 1px solid var(--line);
}

.factory-benefit:last-child {
    border-right: 0;
}

.factory-benefit-icon {
    display: grid;
    place-items: center;
}

.factory-benefit strong {
    display: block;
    margin-bottom: 5px;
    color: var(--bronze-light);
    text-transform: uppercase;
}

.factory-benefit span {
    color: var(--muted);
    font-size: .8rem;
    line-height: 1.4;
}

/* INNER PAGES */

.factory-page {
    min-height: calc(100vh - 68px);
    padding: 28px;
    background:
        radial-gradient(circle at 20% 0%, rgba(181,141,85,.06), transparent 28%),
        var(--black-2);
}

.factory-page-container {
    width: min(1160px,100%);
    margin: 0 auto;
}

.panel {
    padding: 21px;
    border: 1px solid var(--line-strong);
    border-radius: 7px;
    background: linear-gradient(180deg,#1d1e18,#151610);
}

.section-title {
    margin: 0 0 8px;
    color: var(--bronze-light);
    font-size: 2rem;
    text-transform: uppercase;
}

.muted {
    color: var(--muted);
}

.form-grid {
    display: grid;
    gap: 14px;
}

.form-group {
    display: grid;
    gap: 6px;
}

.form-group label {
    color: var(--bronze-light);
    font-size: .79rem;
    font-weight: 1000;
    text-transform: uppercase;
}

.form-control {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    outline: none;
    background: #10110e;
    color: var(--cream);
}

.form-control:focus {
    border-color: var(--bronze);
}

textarea.form-control {
    min-height: 100px;
}

.alert {
    display: none;
    padding: 11px 12px;
    margin: 10px 0;
    border-radius: 6px;
}

.alert.show {
    display: block;
}

.alert-success {
    color: #d8e9d1;
    background: rgba(105,131,94,.14);
    border: 1px solid rgba(105,131,94,.45);
}

.alert-error {
    color: #efc8c0;
    background: rgba(163,72,61,.14);
    border: 1px solid rgba(163,72,61,.45);
}

.profile-grid,
.cart-layout,
.admin-grid {
    display: grid;
    grid-template-columns: .82fr 1.18fr;
    gap: 18px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 8px 0;
}

.summary-total {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    color: var(--bronze-light);
    font-size: 1.1rem;
    font-weight: 1000;
}

.btn {
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    font-weight: 1000;
    text-transform: uppercase;
}

.btn-primary {
    color: var(--black);
    background: linear-gradient(180deg,#c49a63,#aa804d);
}

.btn-secondary {
    color: var(--cream);
    background: transparent;
}

.btn-dark {
    color: var(--cream);
    background: var(--black);
}

.btn-danger {
    color: white;
    background: var(--danger);
}

.btn-small {
    min-height: 34px;
    font-size: .76rem;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 10px;
}

.metric-card {
    padding: 15px;
    border: 1px solid var(--line-strong);
    border-radius: 7px;
    background: #191a15;
}

.metric-label {
    color: var(--muted);
    font-size: .7rem;
    font-weight: 1000;
    text-transform: uppercase;
}

.metric-value {
    margin-top: 6px;
    color: var(--bronze-light);
    font-size: 1.5rem;
    font-weight: 1000;
}

.admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.admin-tab {
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: transparent;
    color: var(--cream);
    font-weight: 1000;
    text-transform: uppercase;
}

.admin-tab-active {
    color: var(--black);
    background: var(--bronze);
}

.admin-product,
.cart-item,
.dashboard-order-row {
    display: grid;
    grid-template-columns: 82px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.admin-product img,
.cart-item img {
    width: 82px;
    height: 68px;
    object-fit: cover;
    border-radius: 6px;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.status {
    display: inline-block;
    padding: 4px 7px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--cream);
    font-size: .71rem;
    font-weight: 900;
    text-transform: uppercase;
}

.order-management-card {
    margin-bottom: 12px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #171813;
}

.order-management-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.order-detail-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 18px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.order-items-list {
    display: grid;
    gap: 6px;
    margin-top: 8px;
}

.order-items-list > div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.order-status-controls {
    display: grid;
    grid-template-columns: auto minmax(180px,260px) auto;
    gap: 10px;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.order-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.empty {
    padding: 28px;
    text-align: center;
    color: var(--muted);
}

.sidebar-overlay {
    display: none;
}

.mobile-bottom-nav {
    display: none;
}

/* RESPONSIVE */

@media (max-width: 1260px) {
    :root {
        --sidebar-width: 250px;
    }

    .factory-logo {
        width: 180px;
        height: 180px;
    }

    .factory-name {
        font-size: 1.7rem;
    }

    .factory-products {
        grid-template-columns: repeat(2,1fr);
    }

    .factory-benefits {
        grid-template-columns: repeat(2,1fr);
    }

    .factory-benefit:nth-child(2) {
        border-right: 0;
    }

    .factory-benefit:nth-child(-n+2) {
        border-bottom: 1px solid var(--line);
    }

    .metric-grid {
        grid-template-columns: repeat(3,1fr);
    }
}

@media (max-width: 980px) {
    .factory-app {
        grid-template-columns: 1fr;
    }

    .factory-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        width: min(310px,86vw);
        transform: translateX(-105%);
        transition: transform .24s ease;
        box-shadow: 22px 0 50px rgba(0,0,0,.48);
    }

    body.sidebar-open .factory-sidebar {
        transform: translateX(0);
    }

    .sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 35;
        background: rgba(0,0,0,.6);
        opacity: 0;
        pointer-events: none;
        transition: opacity .24s ease;
    }

    body.sidebar-open .sidebar-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .factory-topbar {
        grid-template-columns: auto 1fr auto;
        padding: 0 14px;
    }

    .factory-topbar-brand {
        display: none;
    }

    .mobile-menu-btn {
        display: grid;
        place-items: center;
    }

    .factory-topbar-actions .hide-tablet {
        display: none;
    }

    .factory-store-grid {
        grid-template-columns: 1fr;
    }

    .factory-cart-panel {
        position: relative;
        top: auto;
    }

    .factory-hero-copy {
        width: 67%;
    }

    .profile-grid,
    .cart-layout,
    .admin-grid,
    .order-detail-grid {
        grid-template-columns: 1fr;
    }

    .metric-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .order-status-controls {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    body {
        padding-bottom: 68px;
    }

    .factory-topbar {
        height: auto;
        min-height: 64px;
        grid-template-columns: auto 1fr auto;
        gap: 10px;
        padding: 9px 10px;
    }

    .factory-search {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .factory-topbar-actions .factory-topbar-link {
        display: none;
    }

    .factory-hero {
        min-height: 430px;
        background-image:
            linear-gradient(180deg,
                rgba(235,217,183,.99) 0%,
                rgba(235,217,183,.97) 60%,
                rgba(235,217,183,.32) 100%
            ),
            url("/images/factory-hero-pizza-beer.jpg");
        background-position: center;
    }

    .factory-hero::before {
        display: none;
    }

    .factory-hero-content {
        width: calc(100% - 24px);
        padding: 32px 0;
    }

    .factory-hero-copy {
        width: 100%;
    }

    .factory-hero h1 {
        font-size: clamp(2.9rem,15vw,4.4rem);
        line-height: .87;
    }

    .factory-store {
        padding: 10px;
    }

    .factory-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .factory-products,
    .factory-benefits,
    .metric-grid {
        grid-template-columns: 1fr;
    }

    .factory-benefit {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .factory-benefit:last-child {
        border-bottom: 0;
    }

    .factory-page {
        padding: 16px 12px 34px;
    }

    .admin-product,
    .cart-item,
    .dashboard-order-row {
        grid-template-columns: 70px 1fr;
    }

    .admin-product img,
    .cart-item img {
        width: 70px;
        height: 60px;
    }

    .admin-actions,
    .admin-product > :last-child,
    .cart-item > :last-child,
    .dashboard-order-row > :last-child {
        grid-column: 2;
        justify-content: flex-start;
    }

    .order-management-header {
        display: grid;
    }

    .mobile-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 50;
        height: 68px;
        display: grid;
        grid-template-columns: repeat(4,1fr);
        border-top: 1px solid var(--line-strong);
        background: rgba(13,14,12,.985);
    }

    .mobile-bottom-nav a {
        display: grid;
        place-items: center;
        align-content: center;
        gap: 3px;
        color: var(--muted);
        font-size: .68rem;
        font-weight: 1000;
        text-transform: uppercase;
    }
}


/* Admin links are private UI: hidden until auth.js confirms role=admin. */





/* Staff order center */

[data-admin-link],
[data-staff-link] {
    display: none;
}

.staff-page-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.staff-order-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.staff-view-only {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .82rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
}

@media (max-width: 650px) {
    .staff-page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .staff-order-actions {
        justify-content: stretch;
    }

    .staff-order-actions .btn {
        width: 100%;
    }
}


/* -----------------------------------------------------------
   STAFF LOCKED MODE
   attendant / cook / driver use only staff-orders.html
----------------------------------------------------------- */

body.staff-operations-only
.factory-sidebar {
    background:
        radial-gradient(
            circle at 50% 18%,
            rgba(181,141,85,.07),
            transparent 36%
        ),
        linear-gradient(
            180deg,
            #0d0e0c 0%,
            #12130f 100%
        );
}

.staff-restricted-notice {
    color: var(--muted);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}



/* Scheduled Dine-In */

.scheduled-dinein-note {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--muted);
    background:
        rgba(181, 141, 85, .07);
    line-height: 1.5;
}

.scheduled-order-highlight {
    margin-top: 10px;
    padding: 10px 12px;
    border-left: 3px solid var(--bronze);
    border-radius: 4px;
    color: var(--cream);
    background:
        rgba(181, 141, 85, .10);
    line-height: 1.45;
}

.scheduled-order-highlight strong {
    color: var(--bronze-light);
}
