:root {
    --app-bg: #f4f7fb;
    --app-surface: #ffffff;
    --app-surface-soft: #f8fafc;
    --app-border: #e2e8f0;
    --app-text: #0f172a;
    --app-muted: #64748b;
    --app-primary: #2563eb;
    --app-primary-dark: #1d4ed8;
    --app-success: #16a34a;
    --app-warning: #d97706;
    --app-danger: #dc2626;
}

html,
body {
    min-height: 100%;
    font-family: system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
    color: var(--app-text);
    background: var(--app-bg);
}

a,
.btn-link {
    color: var(--app-primary);
}

.btn {
    border-radius: 8px;
    font-weight: 700;
}

.btn-primary {
    color: #fff;
    background-color: var(--app-primary);
    border-color: var(--app-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--app-primary-dark);
    border-color: var(--app-primary-dark);
}

.btn-outline-primary {
    color: var(--app-primary);
    border-color: #bfdbfe;
}

.btn-outline-primary:hover {
    background: var(--app-primary);
    border-color: var(--app-primary);
}

.btn-outline-danger {
    color: var(--app-danger);
    border-color: #fecaca;
}

.btn-outline-danger:hover {
    background: var(--app-danger);
    border-color: var(--app-danger);
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.16);
}

.form-label {
    color: #334155;
    font-size: 0.86rem;
    font-weight: 800;
}

.form-control,
.form-select {
    border-color: #dbe4ee;
    border-radius: 8px;
    min-height: 2.65rem;
}

.form-check-input {
    cursor: pointer;
}

.alert {
    border-radius: 8px;
    border-width: 1px;
    font-weight: 700;
}

.content {
    padding-top: 1.1rem;
}

.app-shell {
    height: 100vh;
    background:
        radial-gradient(circle at top right, rgba(255, 201, 104, 0.16), transparent 24rem),
        #1f3140;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar {
    background: #172532;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.app-main {
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.sidebar-toggle {
    position: fixed;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 1090;
    width: 2.6rem;
    height: 2.6rem;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 8px;
    background: #ffffff;
    color: #172532;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
    font-weight: 900;
}

.sidebar-hidden .sidebar {
    display: none;
}

.app-main > .content {
    flex: 1;
    min-height: 0;
    box-sizing: border-box;
    overflow: auto;
    padding: 1rem;
    background: #fffaf4;
}

.app-main > .content:has(.orders-work-page) {
    overflow: hidden;
}

.brand-row {
    min-height: 4.25rem;
    background: #172532;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-row .navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: #fff;
    min-width: 0;
}

.brand-row .navbar-brand small {
    display: block;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 600;
}

.brand-mark {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 2.25rem;
    background: #ff315f;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 800;
}

.sidebar .border-bottom {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.sidebar .small,
.sidebar .text-secondary {
    color: #94a3b8 !important;
}

.sidebar .fw-bold {
    color: #fff;
}

.navbar-toggler {
    appearance: none;
    cursor: pointer;
    width: 2.75rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.9rem;
    left: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 255, 0.76%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.45rem rgba(255, 255, 255, 0.08);
}

.navbar-toggler:checked {
    background-color: rgba(255, 255, 255, 0.2);
}

.nav-scrollable {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable {
    display: block;
}

.sidebar .nav-item {
    font-size: 0.92rem;
    padding-bottom: 0.25rem;
}

.sidebar .nav-item:first-of-type {
    padding-top: 0.75rem;
}

.sidebar .nav-item:last-of-type {
    padding-bottom: 1rem;
}

.sidebar .nav-section {
    color: #f1c7b0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    margin-top: 1rem;
    margin-bottom: 0.35rem;
}

.sidebar .nav-link {
    color: #dbe6ee;
    background: none;
    border: none;
    border-radius: 8px;
    min-height: 2.45rem;
    height: auto;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    line-height: 1.2;
    width: 100%;
    padding: 0.65rem 0.75rem;
    transition: background-color 160ms ease, color 160ms ease;
}

.nav-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: #7d8c97;
    display: inline-block;
    flex: 0 0 0.45rem;
}

.sidebar .nav-link.active {
    background-color: rgba(255, 49, 95, 0.16);
    color: white;
}

.sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: white;
}

.sidebar .nav-link.active .nav-dot,
.sidebar .nav-link:hover .nav-dot {
    background: #ff315f;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: #b32121;
    color: white;
    padding: 1rem;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

.admin-page {
    display: grid;
    gap: 1.25rem;
}

.admin-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.25rem;
    background: linear-gradient(135deg, #ffffff 0%, #eef6ff 100%);
    border: 1px solid var(--app-border);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.admin-header h1 {
    margin: 0;
    font-size: clamp(1.45rem, 2.5vw, 2.1rem);
    font-weight: 850;
    letter-spacing: 0;
}

.admin-header p {
    margin: 0.35rem 0 0;
    color: var(--app-muted);
}

.admin-toolbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.admin-card {
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: var(--app-surface);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

a.admin-card {
    color: inherit;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

a.admin-card:hover {
    transform: translateY(-2px);
    border-color: #bfdbfe;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.admin-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    padding: 1.25rem;
}

.admin-form .full-width {
    grid-column: 1 / -1;
}

.admin-form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    grid-column: 1 / -1;
    padding-top: 0.25rem;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    min-width: 760px;
    border-collapse: separate;
    border-spacing: 0;
}

.admin-table th,
.admin-table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #e8eef5;
    vertical-align: middle;
    white-space: nowrap;
}

.admin-table th {
    color: #475569;
    font-size: 0.82rem;
    font-weight: 850;
    background: var(--app-surface-soft);
}

.admin-table tbody tr {
    transition: background-color 140ms ease;
}

.admin-table tbody tr:hover {
    background: #f8fbff;
}

.admin-table tbody tr:last-child td {
    border-bottom: 0;
}

.admin-actions {
    display: flex;
    gap: 0.4rem;
    justify-content: flex-end;
}

.menu-item-image-preview {
    width: 88px;
    height: 70px;
    object-fit: cover;
    display: block;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: var(--app-surface-soft);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.6rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 850;
    background: #e2e8f0;
    color: #334155;
}

.status-pill.active {
    background: #dcfce7;
    color: #166534;
}

.status-pill.warning {
    background: #fef3c7;
    color: #92400e;
}

.status-pill.danger {
    background: #fee2e2;
    color: #991b1b;
}

.empty-state {
    padding: 2.5rem 1rem;
    text-align: center;
    color: var(--app-muted);
    font-weight: 700;
}

@media (max-width: 575.98px) {
    .admin-header {
        padding: 1rem;
    }

    .admin-header .btn {
        width: 100%;
    }

    .admin-form {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
}

.work-page {
    display: grid;
    gap: 1.25rem;
}

.orders-work-page {
    height: 100%;
    gap: 0;
    overflow: hidden;
}

.work-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.25rem;
    border: 1px solid #f7d8c8;
    border-radius: 8px;
    background:
        radial-gradient(circle at 12% 12%, rgba(255, 202, 104, 0.28), transparent 34%),
        linear-gradient(135deg, #fff8ef 0%, #ffffff 58%, #fff1f1 100%);
    box-shadow: 0 18px 45px rgba(75, 35, 16, 0.08);
}

.work-header h1 {
    margin: 0;
    font-size: clamp(1.5rem, 2.7vw, 2.2rem);
    font-weight: 900;
    color: #201515;
}

.work-header p {
    margin: 0.35rem 0 0;
    color: #7c5b48;
}

.orders-top-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.85rem 1rem;
    border: 1px solid #eadbd2;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
}

.orders-top-strip h1 {
    margin: 0;
    color: #201515;
    font-size: 1.35rem;
    font-weight: 950;
}

.orders-top-strip p {
    margin: 0.1rem 0 0;
    color: #8b6f60;
    font-size: 0.9rem;
    font-weight: 750;
}

.pos-experience {
    height: 100%;
    min-height: 0;
    border-radius: 8px;
    background: #f3eee8;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(30, 41, 59, 0.11);
}

.pos-kicker,
.pos-section-heading span,
.cart-head span {
    display: block;
    color: #ef3f5f;
    font-size: 0.78rem;
    font-weight: 900;
}

.pos-search-wrap {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    align-self: end;
    width: min(100%, 680px);
    min-height: 2.8rem;
    padding: 0 0.95rem;
    border: 1px solid #ecd8c8;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 34px rgba(63, 36, 19, 0.08);
}

.pos-search-wrap span {
    color: #ef3f5f;
    font-size: 1.4rem;
    font-weight: 900;
    line-height: 1;
}

.pos-search {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #291b18;
    font-weight: 750;
}

.pos-search::placeholder {
    color: #bc9b88;
}

.pos-cancel-receipt-btn {
    flex: 0 0 auto;
    min-height: 2rem;
    white-space: nowrap;
}

.pos-cashier-balance {
    flex: 0 0 auto;
    min-width: 8.5rem;
    padding: 0.35rem 0.65rem;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    background: #f0fdf4;
    color: #14532d;
    text-align: center;
    line-height: 1.15;
}

.pos-cashier-balance small {
    display: block;
    color: #166534;
    font-size: 0.68rem;
    font-weight: 900;
}

.pos-cashier-balance strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 950;
}

@media (max-width: 575.98px) {
    .pos-search-wrap {
        flex-wrap: wrap;
        align-self: stretch;
        padding: 0.55rem;
    }

    .pos-search {
        flex: 1 1 12rem;
    }

    .pos-cancel-receipt-btn,
    .pos-cashier-balance {
        flex: 1 1 8rem;
    }

    .pos-menu-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.pos-command-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.6rem;
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid #eadbd2;
    background: rgba(255, 255, 255, 0.68);
    flex: 0 0 auto;
}

.order-type-switch {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}

.order-type-card {
    min-height: 3.85rem;
    border: 1px solid #eadbd2;
    border-radius: 8px;
    background: #fff;
    color: #2a1b16;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 0.2rem;
    box-shadow: 0 10px 24px rgba(74, 42, 28, 0.05);
    transition: transform 140ms ease, border-color 140ms ease, background-color 140ms ease;
}

.order-type-card:hover {
    transform: translateY(-1px);
    border-color: #ffc4a4;
}

.order-type-card.active {
    border-color: #ff315f;
    background: #fff3f5;
}

.order-type-card strong {
    font-size: 0.98rem;
    font-weight: 950;
}

.order-type-card small {
    color: #8b6f60;
    font-size: 0.75rem;
    font-weight: 800;
}

.fulfillment-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
    padding: 0.25rem;
    border: 1px solid #eadbd2;
    border-radius: 8px;
    background: #fffaf4;
}

.fulfillment-switch button {
    min-height: 2.3rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #6f4f3d;
    font-weight: 900;
}

.fulfillment-switch button.active {
    color: #fff;
    background: #172532;
}

.pos-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    direction: ltr;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.pos-content-panel {
    min-width: 0;
    padding: 0.85rem;
    direction: rtl;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pos-settings-panel {
    margin-bottom: 1rem;
    padding: 0.9rem;
    border: 1px solid #eadbd2;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
}

.pos-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin: 0.75rem 0 0.55rem;
    flex: 0 0 auto;
}

.pos-section-heading h3 {
    margin: 0.1rem 0 0;
    color: #201515;
    font-size: 1.35rem;
    font-weight: 950;
}

.pos-section-heading small {
    color: #8b6f60;
    font-weight: 800;
}

.pos-category-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex: 0 0 auto;
}

.category-card {
    border: 1px solid transparent;
    border-radius: 8px;
    background: #fff;
    min-height: 4.75rem;
    min-width: 7.2rem;
    padding: 0.55rem 0.65rem;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    justify-items: start;
    gap: 0.5rem;
    color: #211715;
    text-align: center;
    box-shadow: 0 12px 32px rgba(74, 42, 28, 0.06);
    transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.category-card:hover {
    transform: translateY(-2px);
    border-color: #ffd0b4;
    box-shadow: 0 18px 38px rgba(74, 42, 28, 0.1);
}

.category-card.active {
    border-color: #ff4268;
    background: #fff7f8;
}

.category-icon {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff1cc;
    color: #ef3f5f;
    font-size: 0.92rem;
    font-weight: 950;
    grid-row: span 2;
}

.category-card strong {
    font-size: 0.84rem;
    font-weight: 950;
    max-width: 7.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-card small {
    color: #997965;
    font-weight: 800;
    font-size: 0.76rem;
}

.pos-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
    align-content: start;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: scroll;
    overscroll-behavior: contain;
    padding: 0 0.15rem 1rem;
}

.menu-tile {
    border: 1px solid transparent;
    border-radius: 8px;
    background: #fff;
    padding: 0.8rem;
    min-height: 118px;
    display: grid;
    grid-template-rows: minmax(44px, auto) auto;
    gap: 0.65rem;
    text-align: center;
    box-shadow: 0 14px 35px rgba(74, 42, 28, 0.07);
    transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.menu-tile:hover {
    transform: translateY(-2px);
    border-color: #ffd0b4;
    box-shadow: 0 18px 42px rgba(74, 42, 28, 0.13);
}

.menu-image-wrap {
    display: none;
}

.menu-image-wrap img,
.cart-line img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.menu-copy {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
}

.menu-tile strong {
    color: #201515;
    font-weight: 950;
    line-height: 1.25;
}

.menu-tile small {
    color: #8b6f60;
    font-weight: 750;
}

.menu-price {
    justify-self: center;
    min-width: 5.25rem;
    border-radius: 999px;
    padding: 0.34rem 0.7rem;
    background: #fff1cc;
    color: #1f1512;
    font-weight: 950;
}

.cart-panel {
    border: 0;
    border-left: 1px solid #eadbd2;
    border-radius: 0;
    background: #fff;
    box-shadow: -18px 0 45px rgba(74, 42, 28, 0.04);
    padding: 0.95rem;
    direction: rtl;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cart-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.cart-head h2 {
    margin: 0.1rem 0 0;
    color: #201515;
    font-size: 1.3rem;
    font-weight: 950;
}

.cart-context {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    padding: 0.75rem;
    border: 1px solid #f0dfd4;
    border-radius: 8px;
    background: #fffaf4;
    flex: 0 0 auto;
}

.empty-cart {
    min-height: 190px;
    border: 1px dashed #eed6c9;
    border-radius: 8px;
    display: grid;
    place-content: center;
    gap: 0.35rem;
    text-align: center;
    color: #8b6f60;
    background: #fffaf4;
    flex: 1 1 auto;
}

.empty-cart strong {
    color: #201515;
    font-size: 1.1rem;
}

.cart-lines {
    display: grid;
    gap: 0.85rem;
    padding-left: 0.2rem;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.cart-line {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem;
    border: 1px solid #f1e4dc;
    border-radius: 8px;
    background: #fffdf9;
}

.cart-line img {
    width: 74px;
    height: 62px;
    border-radius: 8px;
    background: #fff1cc;
}

.cart-line-copy {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.cart-line-copy strong {
    color: #201515;
    font-weight: 950;
}

.cart-line-copy small {
    color: #8b6f60;
    font-weight: 700;
}

.cart-line-total {
    color: #201515;
    white-space: nowrap;
}

.quantity-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.25rem;
}

.quantity-controls .btn {
    width: 2rem;
    height: 2rem;
    padding: 0;
}

.quantity-controls span {
    min-width: 1.4rem;
    text-align: center;
    color: #201515;
    font-weight: 950;
}

.cart-summary {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #e4d3c8;
    flex: 0 0 auto;
}

.receipt-row.editable {
    align-items: center;
}

.receipt-row.editable .form-control {
    width: 7rem;
    text-align: center;
}

.order-submit-btn {
    min-height: 3.6rem;
    margin-top: 1rem;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: #ff315f;
    box-shadow: 0 16px 35px rgba(255, 49, 95, 0.24);
    flex: 0 0 auto;
}

.order-submit-btn:hover,
.order-submit-btn:focus {
    color: #fff;
    background: #e72651;
}

.side-toast {
    position: fixed;
    top: 5.25rem;
    left: 1.25rem;
    z-index: 1080;
    width: min(380px, calc(100vw - 2rem));
    padding: 0.9rem 1rem;
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    background: #fff;
    color: #172532;
    font-weight: 850;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
    animation: toast-life 4.2s ease forwards;
}

.side-toast.success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.side-toast.warning {
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.side-toast.danger {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

@keyframes toast-life {
    0% {
        opacity: 0;
        transform: translateX(-16px);
    }

    10%,
    78% {
        opacity: 1;
        transform: translateX(0);
    }

    100% {
        opacity: 0;
        visibility: hidden;
        transform: translateX(-16px);
    }
}

.metric-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
}

.metric-card {
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: #fff;
    padding: 1rem;
}

.metric-card small {
    color: var(--app-muted);
    font-weight: 800;
}

.metric-card strong {
    display: block;
    margin-top: 0.35rem;
    font-size: 1.35rem;
}

.kanban-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    align-items: start;
}

.kanban-column {
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: #f8fafc;
    min-height: 360px;
}

.kanban-column-header {
    padding: 1rem;
    border-bottom: 1px solid var(--app-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.order-ticket {
    margin: 0.85rem;
    padding: 1rem;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.ticket-items {
    margin: 0.85rem 0;
    padding: 0;
    list-style: none;
}

.ticket-items li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0;
    border-bottom: 1px dashed #e2e8f0;
}

.ticket-items li:last-child {
    border-bottom: 0;
}

.cashier-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}

.receipt-card {
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: #fff;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.45rem 0;
    border-bottom: 1px dashed #e2e8f0;
}

.receipt-row.total {
    border-bottom: 0;
    font-size: 1.2rem;
    font-weight: 900;
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.report-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 0;
    border-bottom: 1px dashed #e2e8f0;
}

.report-row:last-child {
    border-bottom: 0;
}

.report-row span {
    color: #334155;
    font-weight: 800;
}

.report-row strong {
    white-space: nowrap;
}

.report-table-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #e8eef5;
    background: var(--app-surface-soft);
}

.customer-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    background: #f0fdf4;
    color: #166534;
}

.customer-summary div {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.customer-summary span {
    color: #15803d;
    font-size: 0.9rem;
}

.modal-backdrop-custom {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.55);
}

.customer-modal {
    width: min(520px, 100%);
    padding: 1.25rem;
}

.invoice-modal {
    width: min(860px, 100%);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
}

.invoice-details-table {
    min-width: 620px;
}

@media (min-width: 992px) {
    .pos-command-bar {
        grid-template-columns: minmax(260px, 390px) 170px minmax(420px, 1fr);
        align-items: end;
    }

    .pos-layout {
        grid-template-columns: minmax(0, 1fr) 390px;
        align-items: stretch;
    }

    .cart-panel {
        position: sticky;
        top: 5.25rem;
    }

    .cashier-grid {
        grid-template-columns: minmax(0, 1fr) 380px;
        align-items: start;
    }
}

@media (max-width: 991.98px) and (min-width: 576px) {
    .pos-menu-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .app-shell {
        flex-direction: row;
    }

    .sidebar {
        width: 292px;
        height: 100vh;
        position: sticky;
        top: 0;
        flex: 0 0 292px;
    }

    .sidebar-toggle {
        right: 1rem;
    }

    .navbar-toggler {
        display: none;
    }

    .nav-scrollable {
        display: block;
        height: calc(100vh - 4.25rem);
        overflow-y: auto;
        padding: 0.5rem 0 1rem;
    }
}
