﻿:root {
            --ink: #17211b;
            --muted: #66736b;
            --paper: #fffaf0;
            --line: #eadfc7;
            --brand: #f06d2f;
            --brand-dark: #b9431c;
            --green: #1f8f5f;
            --cream: #fff6e3;
            --white: #fffdf8;
            --shadow: 0 24px 60px rgba(52, 37, 18, .16);
}

/* Counter setup workspace */
.setup-shell {
    height: calc(100vh - 76px);
    overflow: auto;
    padding: 0 0 18px;
}

.setup-hero,
.setup-kpis article,
.setup-card {
    border: 1px solid rgba(34, 31, 53, .09);
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 18px 45px rgba(31, 28, 49, .08);
}

.setup-hero {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    border-radius: 18px;
    padding: 20px;
}

.setup-hero h2 {
    margin: 6px 0;
    color: #221f35;
    font-size: 1.5rem;
}

.setup-hero p,
.setup-card-head p {
    max-width: 760px;
    margin: 0;
    color: #62708c;
    font-size: .88rem;
    line-height: 1.55;
}

.setup-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.setup-primary,
.setup-secondary,
.setup-card-head button {
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 900;
}

.setup-primary {
    padding: 12px 16px;
    background: #221f35;
    color: #fff;
}

.setup-secondary,
.setup-card-head button {
    padding: 11px 14px;
    background: #f2f4f8;
    color: #32415f;
}

.setup-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.setup-kpis article {
    border-radius: 16px;
    padding: 16px;
}

.setup-kpis span,
.setup-kpis small {
    display: block;
    color: #62708c;
    font-size: .78rem;
    font-weight: 800;
}

.setup-kpis strong {
    display: block;
    margin: 6px 0 4px;
    color: #221f35;
    font-size: 1.65rem;
}

.setup-admin-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    margin-top: 0;
}

.setup-tab-nav {
    position: sticky;
    top: 0;
    display: grid;
    gap: 10px;
    border: 1px solid rgba(34, 31, 53, .09);
    border-radius: 18px;
    padding: 12px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 18px 45px rgba(31, 28, 49, .08);
}

.setup-tab-button {
    width: 100%;
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 13px;
    background: transparent;
    color: #32415f;
    cursor: pointer;
    text-align: left;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.setup-tab-button:hover {
    border-color: rgba(34, 31, 53, .1);
    background: #f8fafc;
}

.setup-tab-button.active {
    border-color: rgba(31, 28, 49, .16);
    background: #221f35;
    color: #fff;
    box-shadow: 0 14px 26px rgba(31, 28, 49, .18);
}

.setup-tab-button span,
.setup-tab-button small {
    display: block;
}

.setup-tab-button span {
    font-size: .9rem;
    font-weight: 900;
}

.setup-tab-button small {
    margin-top: 5px;
    color: #7c879c;
    font-size: .74rem;
    font-weight: 800;
}

.setup-tab-button.active small {
    color: rgba(255, 255, 255, .7);
}

.setup-tab-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

.setup-panel-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: -2px;
}

.setup-tab-panel {
    display: none;
}

.setup-tab-panel.active {
    display: block;
}

.setup-card {
    border-radius: 18px;
    padding: 18px;
}

.setup-card-wide {
    grid-column: 1 / -1;
}

.setup-tab-panel.active.setup-card-wide {
    grid-column: 1 / -1;
}

.setup-card-head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.setup-card-head.compact {
    margin-bottom: 14px;
}

.setup-card-head h3 {
    margin: 0 0 5px;
    color: #221f35;
    font-size: 1.03rem;
}

.setup-head-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    justify-content: flex-end;
}

.setup-section-toolbar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    margin-bottom: 10px;
    border-radius: 12px;
    padding: 10px 13px;
    background: #f8fafc;
    color: #62708c;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.setup-pill {
    white-space: nowrap;
    border-radius: 999px;
    padding: 7px 10px;
    background: #eefbf5;
    color: #098b5f;
    font-size: .72rem;
    font-weight: 900;
}

.table-zone-grid,
.payment-option-grid,
.partner-grid,
.setup-form-grid {
    display: grid;
    gap: 12px;
}

.table-zone-grid,
.partner-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.table-zone-grid article,
.partner-grid article,
.payment-option-grid label,
.setup-list div,
.waiter-list div {
    border: 1px solid rgba(34, 31, 53, .08);
    border-radius: 14px;
    background: #f8fafc;
}

.table-zone-grid article {
    display: grid;
    gap: 12px;
    padding: 15px;
}

.table-zone-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.setup-edit-fields {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.setup-edit-fields span {
    display: flex;
    align-items: center;
    gap: 7px;
}

.setup-card input,
.setup-card select {
    min-width: 0;
    border: 1px solid transparent;
    border-radius: 9px;
    background: rgba(255, 255, 255, .72);
    color: #221f35;
    font: inherit;
    outline: 0;
}

.setup-card input:focus,
.setup-card select:focus {
    border-color: rgba(240, 109, 47, .45);
    box-shadow: 0 0 0 3px rgba(240, 109, 47, .12);
}

.setup-edit-fields input,
.setup-list input,
.payment-option-grid input[type="text"],
.payment-option-grid input:not([type]),
.waiter-list input,
.partner-grid input {
    width: 100%;
    padding: 6px 8px;
}

.setup-list small {
    display: block;
    margin-top: 5px;
}

.setup-list small input,
.waiter-list small input,
.partner-grid small input {
    color: #62708c;
    font-size: .78rem;
}

.setup-list strong input,
.partner-grid small input {
    width: 54px;
    text-align: right;
}

.table-zone-grid strong,
.table-zone-grid span,
.partner-grid strong,
.partner-grid small {
    display: block;
}

.table-zone-grid strong,
.partner-grid strong {
    color: #221f35;
}

.table-zone-grid span,
.partner-grid small {
    margin-top: 4px;
    color: #62708c;
    font-size: .82rem;
}

.table-zone-grid b {
    border-radius: 999px;
    padding: 8px 10px;
    background: #fff;
    color: #32415f;
    font-size: .78rem;
}

.table-qr-empty {
    margin: 0;
    color: #62708c;
    font-size: .82rem;
    font-weight: 700;
}

.table-qr-list {
    border-top: 1px solid rgba(34, 31, 53, .08);
    padding-top: 10px;
}

.table-qr-list summary {
    color: #ee4d2d;
    cursor: pointer;
    font-size: .82rem;
    font-weight: 900;
}

.table-qr-list > div {
    display: grid;
    gap: 9px;
    margin-top: 10px;
    max-height: 360px;
    overflow-y: auto;
    padding-right: 4px;
}

.table-qr-card {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    border: 1px solid rgba(34, 31, 53, .08);
    border-radius: 12px;
    padding: 8px;
    background: #fff;
}

.table-qr-card img {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: #f8fafc;
}

.table-qr-card span {
    min-width: 0;
    margin: 0;
}

.table-qr-card small {
    display: block;
    margin-top: 3px;
    color: #62708c;
    font-size: .68rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.table-qr-card a {
    border-radius: 10px;
    padding: 7px 9px;
    background: #eefbf5;
    color: #098b5f;
    font-size: .72rem;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
}

.setup-list,
.waiter-list {
    display: grid;
    gap: 10px;
}

.setup-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 13px;
}

.setup-list span {
    color: #32415f;
    font-size: .88rem;
    font-weight: 800;
}

.setup-list strong {
    color: #221f35;
}

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

.setup-form-grid label span {
    display: block;
    margin-bottom: 7px;
    color: #62708c;
    font-size: .78rem;
    font-weight: 900;
}

.setup-form-grid input,
.setup-form-grid select {
    width: 100%;
    border: 1px solid rgba(34, 31, 53, .11);
    border-radius: 12px;
    padding: 11px 12px;
    background: #f8fafc;
    color: #221f35;
    outline: 0;
}

.setup-note {
    margin: 14px 0 0;
    border-radius: 12px;
    padding: 11px 12px;
    background: #eefbf5;
    color: #087a54;
    font-size: .82rem;
    font-weight: 800;
}

.food-management-shell {
    height: calc(100vh - 76px);
    overflow: hidden;
    display: grid;
    padding: 0 0 18px;
}

.food-management-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(360px, .75fr);
    gap: 14px;
    align-items: start;
    height: 100%;
    min-height: 0;
    transition: grid-template-columns .22s ease;
}

.food-management-grid.has-editor {
    grid-template-columns: minmax(0, 1fr) minmax(330px, .7fr) 360px;
}

.food-category-create[hidden] {
    display: none;
}

.food-category-create {
    margin-bottom: 16px;
    border: 1px solid rgba(34, 31, 53, .08);
    border-radius: 16px;
    padding: 14px;
    background: #f8fafc;
}

.food-category-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.food-category-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.food-promo-card-panel {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 247, 237, .72) 0%, rgba(255, 255, 255, 1) 42%),
        #fff;
}

.promo-panel-head {
    flex: 0 0 auto;
    align-items: start;
    border-bottom: 1px solid rgba(34, 31, 53, .08);
    margin: -4px -4px 14px;
    padding: 4px 4px 14px;
}

.promo-panel-head p {
    max-width: 34ch;
    margin: 4px 0 0;
    color: #62708c;
    font-size: .84rem;
    line-height: 1.4;
}

.food-category-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    align-items: end;
    gap: 12px;
}

.food-category-form label span {
    display: block;
    margin-bottom: 7px;
    color: #62708c;
    font-size: .78rem;
    font-weight: 900;
}

.food-category-form input,
.food-category-form select,
.food-category-form textarea {
    width: 100%;
    border: 1px solid rgba(34, 31, 53, .11);
    border-radius: 12px;
    padding: 11px 12px;
    background: #f8fafc;
}

.food-category-form textarea {
    resize: vertical;
}

.food-form-wide {
    grid-column: 1 / -1;
}

.promo-products-label {
    display: block;
    color: #62708c;
    font-size: .78rem;
    font-weight: 900;
}

.food-promo-create {
    flex: 0 0 auto;
    border: 1px solid rgba(234, 115, 9, .18);
    border-radius: 18px;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(180deg, #fff 0%, #fff7ed 100%);
}

.promo-create-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid rgba(234, 115, 9, .14);
    padding: 16px;
    background: #fff;
}

.promo-create-head h3 {
    margin: 3px 0 4px;
    color: #221f35;
    font-size: 1.05rem;
}

.promo-create-head p {
    margin: 0;
    color: #62708c;
    font-size: .86rem;
    line-height: 1.45;
}

.promo-live-preview {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 7px 10px;
    background: #fff7ed;
    color: #c2410c;
    font-size: .72rem;
    font-weight: 950;
    white-space: nowrap;
}

.food-promo-create .food-category-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 16px;
}

.promo-products-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 9px;
}

.promo-products-head small {
    color: #62708c;
    font-size: .76rem;
    font-weight: 800;
    text-align: right;
}

.promo-selected-foods {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 46px;
    border: 1px dashed rgba(234, 115, 9, .28);
    border-radius: 14px;
    padding: 10px;
    background: rgba(255, 255, 255, .72);
}

.promo-selected-food {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 999px;
    padding: 7px 8px 7px 10px;
    background: #fff7ed;
    color: #9a3412;
    font-size: .78rem;
    font-weight: 900;
}

.promo-selected-food button {
    width: 19px;
    height: 19px;
    border: 0;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #fed7aa;
    color: #9a3412;
    cursor: pointer;
    font-size: .78rem;
    font-weight: 900;
}

.food-category-row.promo-selectable {
    cursor: pointer;
}

.food-category-row.promo-selected {
    border-color: rgba(234, 115, 9, .55);
    box-shadow: 0 18px 34px rgba(194, 65, 12, .14);
}

.food-category-row.promo-selected .food-category-cover span {
    background: #ea7309;
    color: #fff;
}

.storage-item-row {
    overflow: hidden;
}

.storage-item-row.low-stock {
    border-color: rgba(180, 35, 24, .28);
    background: linear-gradient(180deg, #fff 0%, #fff7f5 100%);
}

.storage-item-meter {
    display: grid;
    gap: 7px;
    padding: 16px;
    background: #f8fafc;
    border-bottom: 1px solid rgba(34, 31, 53, .08);
}

.storage-item-row.low-stock .storage-item-meter {
    background: #fff1ed;
}

.storage-item-meter span {
    justify-self: start;
    border-radius: 999px;
    padding: 5px 9px;
    background: #e8fff6;
    color: #047857;
    font-size: .72rem;
    font-weight: 950;
    text-transform: uppercase;
}

.storage-item-row.low-stock .storage-item-meter span {
    background: #fee4e2;
    color: #b42318;
}

.storage-item-meter strong {
    color: #221f35;
    font-size: 1.42rem;
    font-weight: 950;
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.promo-selection-done:not([hidden]) {
    background: #fff7ed;
    color: #c2410c;
}

.promo-active-toggle {
    align-self: end;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid rgba(34, 31, 53, .11);
    border-radius: 12px;
    padding: 11px 12px;
    background: #fff;
}

.promo-active-toggle input {
    width: 18px;
    height: 18px;
}

.promo-selection-summary {
    margin-top: 9px;
    border-radius: 12px;
    padding: 10px 12px;
    background: #221f35;
    color: #fff;
    font-size: .82rem;
    font-weight: 900;
}

.food-promo-list {
    display: grid;
    gap: 10px;
    align-content: start;
    min-height: 0;
    margin-bottom: 14px;
    overflow: auto;
    padding-right: 4px;
}

.food-promo-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    border: 1px solid rgba(34, 31, 53, .1);
    border-radius: 14px;
    padding: 12px;
    background: #fff;
}

.food-promo-card.active {
    border-color: rgba(234, 115, 9, .32);
    background: #fff7ed;
}

.food-promo-card strong,
.food-promo-card small {
    display: block;
}

.food-promo-card p {
    margin: 5px 0 0;
    color: #62708c;
    font-size: .82rem;
}

.promo-type {
    color: #c2410c;
    font-size: .7rem;
    font-weight: 900;
    text-transform: uppercase;
}

.food-promo-actions {
    display: grid;
    align-content: start;
    gap: 7px;
    min-width: 95px;
}

.food-promo-actions b {
    color: #047857;
    font-size: .78rem;
    text-align: right;
}

.food-promo-actions button {
    border: 0;
    border-radius: 10px;
    padding: 8px 10px;
    background: #221f35;
    color: #fff;
    font-size: .76rem;
    font-weight: 900;
}

.food-promo-actions button.danger {
    background: #fff1ed;
    color: #b42318;
}

@media (max-width: 1180px) {
    .food-promo-create .food-category-form {
        grid-template-columns: repeat(2, minmax(150px, 1fr));
    }
}

@media (max-width: 760px) {
    .food-promo-create .food-category-form {
        grid-template-columns: 1fr;
    }

    .promo-create-head {
        display: grid;
    }

    .promo-live-preview {
        justify-self: start;
    }

    .promo-products-head {
        display: grid;
        align-items: start;
    }

    .promo-products-head small {
        text-align: left;
    }
}

.food-category-form button:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.food-category-filter {
    display: grid;
    gap: 7px;
    margin-bottom: 14px;
}

.food-category-filter label {
    color: #62708c;
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.food-category-filter input {
    width: 100%;
    border: 1px solid rgba(34, 31, 53, .11);
    border-radius: 12px;
    padding: 11px 12px;
    background: #f8fafc;
    color: #221f35;
}

.food-category-filter input:focus {
    border-color: rgba(34, 31, 53, .3);
    box-shadow: 0 0 0 3px rgba(34, 31, 53, .08);
    outline: none;
}

.food-category-list {
    flex: 1;
    min-height: 0;
    overflow: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-content: start;
    gap: 14px;
    padding-right: 4px;
}

.food-category-pagination {
    flex: 0 0 auto;
    margin-top: 14px;
}

.food-category-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    align-items: start;
    border: 1px solid rgba(34, 31, 53, .1);
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    box-shadow: 0 14px 30px rgba(31, 28, 49, .06);
}

.food-category-cover {
    position: relative;
    height: 150px;
    overflow: hidden;
    background: #edf1f7;
}

.food-category-cover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.food-category-cover span {
    position: absolute;
    right: 12px;
    bottom: 12px;
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, .92);
    color: #221f35;
    font-size: .75rem;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(31, 28, 49, .12);
}

.food-category-body {
    display: grid;
    gap: 12px;
    padding: 14px;
}

.food-category-title {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.food-category-title strong {
    min-width: 0;
    color: #221f35;
    font-size: 1rem;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.food-category-title small {
    flex: 0 0 auto;
    color: #62708c;
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.food-category-modal-form label span {
    display: block;
    margin-bottom: 5px;
    color: #62708c;
    font-size: .7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.food-category-modal-form input,
.food-category-modal-form select,
.food-category-modal-form textarea,
.food-product-form input {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(34, 31, 53, .11);
    border-radius: 10px;
    padding: 9px 10px;
    background: #fff;
    color: #221f35;
}

.food-category-modal-form textarea {
    resize: vertical;
}

.food-category-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    border-top: 1px solid rgba(34, 31, 53, .08);
    padding: 12px 14px 14px;
}

.food-category-actions.single {
    grid-template-columns: 1fr;
}

.food-category-actions.food-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.recipe-modal {
    width: min(880px, 100%);
}

.recipe-summary {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(34, 31, 53, .08);
    background: #f8fafc;
}

.recipe-summary strong {
    color: #221f35;
    font-size: 1rem;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.recipe-summary span {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 7px 10px;
    background: #ecfdf3;
    color: #067647;
    font-size: .75rem;
    font-weight: 900;
}

.recipe-ingredient-head,
.recipe-ingredient-row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 140px 80px 96px;
    gap: 10px;
    align-items: center;
}

.recipe-ingredient-head {
    padding: 16px 22px 8px;
    color: #62708c;
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.recipe-ingredient-list {
    display: grid;
    gap: 10px;
    max-height: min(44vh, 420px);
    overflow: auto;
    padding: 8px 22px 18px;
}

.recipe-ingredient-row {
    border: 1px solid rgba(34, 31, 53, .1);
    border-radius: 12px;
    padding: 10px;
    background: #fff;
}

.recipe-ingredient-row select,
.recipe-ingredient-row input {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(34, 31, 53, .12);
    border-radius: 10px;
    padding: 10px;
    background: #f8fafc;
    color: #221f35;
    font-weight: 800;
}

.recipe-ingredient-row span {
    color: #62708c;
    font-size: .82rem;
    font-weight: 900;
}

.recipe-ingredient-row button {
    border: 0;
    border-radius: 10px;
    padding: 10px;
    background: #fff1ed;
    color: #b42318;
    cursor: pointer;
    font-size: .76rem;
    font-weight: 900;
}

.recipe-modal-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 18px 22px 22px;
    border-top: 1px solid rgba(34, 31, 53, .08);
}

.recipe-modal-actions > div {
    display: flex;
    gap: 10px;
    align-items: center;
}

@media (max-width: 760px) {
    .recipe-ingredient-head {
        display: none;
    }

    .recipe-ingredient-row {
        grid-template-columns: 1fr;
    }

    .recipe-modal-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .recipe-modal-actions > div {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

.food-category-actions button,
.food-product-form button {
    border: 0;
    border-radius: 10px;
    padding: 9px 10px;
    background: #221f35;
    color: #fff;
    cursor: pointer;
    font-size: .78rem;
    font-weight: 900;
    min-width: 0;
    white-space: nowrap;
}

.food-category-actions button.danger {
    background: #fff1ed;
    color: #b42318;
}

.food-category-subtitle {
    display: block;
    color: #62708c;
    font-size: .82rem;
    font-weight: 800;
}

.food-category-description {
    display: -webkit-box;
    margin: -4px 0 0;
    color: #62708c;
    font-size: .82rem;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.food-category-actions button:disabled,
.food-product-form button:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.food-product-form {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(160px, 1fr) 120px minmax(180px, 1.2fr) auto;
    gap: 10px;
    border-top: 1px solid rgba(34, 31, 53, .08);
    margin: 0 14px 14px;
    padding-top: 12px;
}

.food-modal-add {
    margin: 0;
    padding: 16px 18px;
    border-top: 0;
    border-bottom: 1px solid rgba(34, 31, 53, .08);
    background: #f8fafc;
}

.food-product-form[hidden] {
    display: none;
}

.food-list-modal {
    width: min(680px, 100%);
}

.food-category-modal-form {
    display: grid;
    gap: 14px;
    padding: 16px;
    background: #fff;
}

.food-category-edit-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    border-top: 1px solid rgba(34, 31, 53, .08);
    margin-top: 2px;
    padding-top: 14px;
}

.food-category-edit-actions button {
    width: 100%;
}

.food-category-edit-actions button:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.food-category-edit-panel[hidden] {
    display: none;
}

.food-category-edit-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    padding: 0;
    animation: foodPanelSlideIn .22s ease both;
}

.food-category-edit-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    border-bottom: 1px solid rgba(34, 31, 53, .08);
    padding: 16px;
    background: #fffdf8;
}

.food-category-edit-panel-head h3 {
    margin: 5px 0;
    color: #221f35;
    font-size: 1.05rem;
}

.food-category-edit-panel-head p {
    margin: 0;
    color: #62708c;
    font-size: .82rem;
    line-height: 1.4;
}

.food-category-edit-preview {
    margin: 16px 16px 0;
    height: 150px;
    overflow: hidden;
    border-radius: 16px;
    background: #edf1f7;
}

.food-category-edit-preview img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

@keyframes foodPanelSlideIn {
    from {
        opacity: 0;
        transform: translateX(24px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.food-list-modal-body {
    display: grid;
    gap: 10px;
    padding: 18px;
    background: #fffdf8;
}

.food-list-row {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 10px;
    background: #fffaf0;
}

.food-list-row img {
    width: 64px;
    height: 54px;
    object-fit: cover;
    border-radius: 12px;
    background: #efe3ca;
}

.food-list-row strong,
.food-list-row small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.food-list-row small {
    margin-top: 4px;
    color: var(--muted);
    font-size: .82rem;
}

.food-list-row span {
    color: var(--brand-dark);
    font-weight: 900;
}

.payment-option-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.payment-option-grid label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px;
    color: #32415f;
    cursor: pointer;
    font-size: .86rem;
    font-weight: 900;
}

.payment-option-grid input {
    width: 16px;
    height: 16px;
    accent-color: #221f35;
}

.payment-option-grid input[data-field="name"] {
    width: 100%;
    height: auto;
    accent-color: initial;
}

.setup-toggle {
    position: relative;
    flex: 0 0 auto;
    width: 42px;
    height: 24px;
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    background: #cfd6e3;
}

.setup-toggle::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(31, 28, 49, .18);
    transition: transform .2s ease;
}

.setup-toggle.active {
    background: #15b981;
}

.setup-toggle.active::after {
    transform: translateX(18px);
}

.waiter-list div {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
    padding: 10px;
}

.waiter-list b {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: #221f35;
    font-size: .75rem;
}

.waiter-list span {
    color: #221f35;
    font-size: .87rem;
    font-weight: 900;
}

.waiter-list small {
    color: #62708c;
    font-size: .75rem;
    font-weight: 800;
}

.partner-grid article {
    position: relative;
    padding: 15px;
}

.partner-code-input {
    display: inline-block;
    width: 58px;
    margin-bottom: 12px;
    border-radius: 8px;
    padding: 6px 8px;
    background: #221f35;
    color: #fff;
    font-size: .72rem;
    font-weight: 900;
}

.partner-grid .setup-toggle {
    position: absolute;
    top: 15px;
    right: 15px;
}

@media (max-width: 1180px) {
    .setup-kpis,
    .payment-option-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .food-category-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .food-management-grid.has-editor {
        grid-template-columns: minmax(0, 1fr) 320px;
    }

    .setup-admin-layout,
    .food-management-grid,
    .food-category-row,
    .food-category-form,
    .food-product-form,
    .setup-tab-content {
        grid-template-columns: 1fr;
    }

    .setup-tab-nav {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .setup-tab-panel.active,
    .setup-tab-panel.active.setup-card-wide {
        grid-column: auto;
    }
}

@media (max-width: 760px) {
    .setup-hero,
    .setup-card-head {
        align-items: stretch;
        flex-direction: column;
    }

    .setup-kpis,
    .table-zone-grid,
    .partner-grid,
    .payment-option-grid,
    .setup-form-grid,
    .food-category-list,
    .setup-tab-nav {
        grid-template-columns: 1fr;
    }

    .food-category-toolbar,
    .food-category-title {
        align-items: stretch;
        flex-direction: column;
    }

    .food-category-actions {
        grid-template-columns: 1fr;
    }

    .food-management-grid.has-editor {
        grid-template-columns: 1fr;
    }

    .food-category-edit-panel {
        height: auto;
        max-height: 520px;
    }
}

        * {
            box-sizing: border-box;
        }

        [hidden] {
            display: none !important;
        }

        body {
            margin: 0;
            min-height: 100vh;
            color: var(--ink);
            font-family: "Aptos", "Segoe UI", Verdana, sans-serif;
            background:
                radial-gradient(circle at top left, rgba(240, 109, 47, .22), transparent 34rem),
                linear-gradient(135deg, #fff7e8 0%, #f7e7c8 46%, #e5f0da 100%);
        }

        button,
        input,
        select {
            font: inherit;
        }

        .shell {
            width: 100%;
            margin: 0;
            padding: 28px;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        .topbar {
            display: flex;
            justify-content: flex-end;
            gap: 18px;
            align-items: center;
            margin-bottom: 22px;
        }

        .topbar-actions {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .account-menu {
            position: relative;
        }

        .account-trigger {
            list-style: none;
            display: flex;
            align-items: center;
            gap: 10px;
            min-width: 0;
            border: 1px solid rgba(23, 33, 27, .12);
            border-radius: 18px;
            padding: 8px 12px;
            background: rgba(255, 250, 240, .82);
            box-shadow: 0 12px 26px rgba(52, 37, 18, .08);
            cursor: pointer;
        }

        .account-trigger::-webkit-details-marker {
            display: none;
        }

        .account-logo {
            width: 38px;
            height: 38px;
            display: grid;
            place-items: center;
            border-radius: 12px;
            background: #2d2a42;
            color: #68f0b1;
            font-size: .88rem;
            font-weight: 800;
            flex: 0 0 auto;
        }

        .account-meta {
            min-width: 0;
            display: grid;
            gap: 2px;
        }

        .account-meta strong,
        .account-meta small {
            display: block;
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .account-meta strong {
            font-size: .92rem;
            font-weight: 800;
        }

        .account-meta small {
            color: #0cae63;
            font-size: .76rem;
            font-weight: 700;
        }

        .account-dropdown {
            position: absolute;
            top: calc(100% + 8px);
            right: 0;
            min-width: 180px;
            border: 1px solid rgba(23, 33, 27, .12);
            border-radius: 16px;
            padding: 8px;
            background: #fffdf8;
            box-shadow: 0 18px 42px rgba(23, 33, 27, .18);
            z-index: 20;
        }

        .account-logout {
            width: 100%;
            border: 0;
            border-radius: 12px;
            padding: 10px 12px;
            background: #efe3ca;
            color: var(--ink);
            cursor: pointer;
            font: inherit;
            font-weight: 800;
            text-align: left;
        }

        .account-logout:hover {
            background: #e8d6b5;
        }

        .brand h1 {
            margin: 0;
            font-size: clamp(0.6rem, 1.5vw, 2rem);
            line-height: .95;
            letter-spacing: -.06em;
        }

        .brand p {
            margin: 10px 0 0;
            color: var(--muted);
            font-size: 1rem;
        }

        .ticket-number {
            min-width: 190px;
            padding: 16px 18px;
            border: 1px solid rgba(23, 33, 27, .12);
            border-radius: 24px;
            background: rgba(255, 250, 240, .72);
            box-shadow: 0 16px 42px rgba(52, 37, 18, .1);
            text-align: right;
        }

        .ticket-number span {
            display: block;
            color: var(--muted);
            font-size: .8rem;
            text-transform: uppercase;
            letter-spacing: .12em;
        }

        .ticket-number strong {
            font-size: 1.8rem;
        }

        .workspace-tabs {
            display: flex;
            gap: 10px;
            align-items: center;
            margin-bottom: 18px;
            border: 1px solid rgba(23, 33, 27, .1);
            border-radius: 28px;
            padding: 8px;
            background: rgba(255, 250, 240, .72);
            box-shadow: 0 18px 42px rgba(52, 37, 18, .1);
            width: max-content;
            max-width: 100%;
        }

        .tab-button {
            min-width: 132px;
            border: 0;
            border-radius: 20px;
            padding: 13px 18px;
            background: transparent;
            color: var(--muted);
            cursor: pointer;
            font-weight: 900;
            letter-spacing: -.01em;
            transition: background .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
        }

        .tab-button:hover,
        .tab-button.active {
            background: var(--ink);
            color: #fff;
            box-shadow: 0 14px 28px rgba(23, 33, 27, .18);
            transform: translateY(-1px);
        }

        .tab-panel {
            display: none;
        }

        .tab-panel.active {
            display: block;
        }

        #dashboardPanel.active,
        #ordersPanel.active {
            flex: 1;
            min-height: 0;
        }

        .reservation-shell {
            display: grid;
            gap: 16px;
        }

        .reservation-header {
            display: flex;
            justify-content: space-between;
            gap: 18px;
            align-items: flex-start;
            border: 1px solid rgba(23, 33, 27, .1);
            border-radius: 28px;
            padding: 22px;
            background: rgba(255, 250, 240, .86);
            box-shadow: var(--shadow);
        }

        .reservation-header h2,
        .reservation-header p {
            margin: 0;
        }

        .reservation-header p {
            margin-top: 6px;
            color: var(--muted);
        }

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

        .reservation-kpis article {
            border: 1px solid rgba(23, 33, 27, .1);
            border-radius: 20px;
            padding: 16px;
            background: #fff;
            box-shadow: 0 12px 28px rgba(31, 28, 49, .06);
        }

        .reservation-kpis span,
        .reservation-toolbar span,
        .reservation-form span {
            color: var(--muted);
            font-size: .72rem;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: .06em;
        }

        .reservation-kpis strong {
            display: block;
            margin-top: 8px;
            color: var(--ink);
            font-size: 1.6rem;
            font-weight: 950;
        }

        .reservation-workspace {
            display: block;
        }

        .reservation-board {
            border: 1px solid rgba(23, 33, 27, .1);
            border-radius: 28px;
            background: rgba(255, 250, 240, .86);
            box-shadow: var(--shadow);
            overflow: hidden;
        }

        .reservation-modal-backdrop {
            z-index: 42;
        }

        .reservation-editor {
            width: min(920px, 100%);
            max-height: calc(100vh - 48px);
            border: 1px solid rgba(255, 255, 255, .44);
            border-radius: 28px;
            background: #fff;
            box-shadow: 0 30px 90px rgba(23, 33, 27, .32);
            overflow: auto;
        }

        .reservation-toolbar {
            display: grid;
            grid-template-columns: 180px 180px minmax(0, 1fr);
            gap: 12px;
            padding: 16px;
            background: #fff;
        }

        .reservation-toolbar label,
        .reservation-form label {
            display: grid;
            gap: 7px;
            min-width: 0;
        }

        .reservation-toolbar input,
        .reservation-toolbar select,
        .reservation-form input,
        .reservation-form select,
        .reservation-form textarea {
            width: 100%;
            min-width: 0;
            border: 1px solid rgba(34, 31, 53, .11);
            border-radius: 12px;
            padding: 10px 11px;
            background: #f8fafc;
            color: var(--ink);
        }

        .reservation-list {
            display: grid;
            gap: 12px;
            padding: 16px;
        }

        .reservation-card {
            display: grid;
            grid-template-columns: minmax(0, 1fr) 130px auto;
            gap: 14px;
            align-items: center;
            border: 1px solid rgba(23, 33, 27, .1);
            border-radius: 20px;
            padding: 16px;
            background: #fff;
            box-shadow: 0 14px 30px rgba(31, 28, 49, .06);
        }

        .reservation-card.status-cancelled {
            opacity: .72;
        }

        .reservation-card-title {
            display: flex;
            gap: 10px;
            align-items: center;
            flex-wrap: wrap;
        }

        .reservation-card strong,
        .reservation-card p,
        .reservation-card small {
            margin: 0;
        }

        .reservation-card p,
        .reservation-card small {
            display: block;
            margin-top: 6px;
            color: var(--muted);
        }

        .reservation-event,
        .reservation-status {
            display: inline-flex;
            border-radius: 999px;
            padding: 6px 9px;
            background: #eef2ff;
            color: #3730a3;
            font-size: .7rem;
            font-weight: 950;
            text-transform: uppercase;
        }

        .reservation-status {
            background: #ecfdf3;
            color: #047857;
        }

        .status-pending .reservation-status {
            background: #fff7ed;
            color: #c2410c;
        }

        .status-cancelled .reservation-status {
            background: #fee4e2;
            color: #b42318;
        }

        .reservation-card-side {
            display: grid;
            justify-items: end;
            gap: 5px;
            text-align: right;
        }

        .reservation-card-actions {
            display: grid;
            gap: 7px;
        }

        .reservation-card-actions button {
            border: 0;
            border-radius: 12px;
            padding: 9px 11px;
            background: #f2f4f8;
            color: #32415f;
            cursor: pointer;
            font-weight: 900;
        }

        .reservation-card-actions button.danger {
            background: #fee4e2;
            color: #b42318;
        }

        .reservation-editor-head {
            display: flex;
            justify-content: space-between;
            gap: 12px;
            align-items: flex-start;
            padding: 18px;
            background: linear-gradient(135deg, var(--ink), #263c2e);
            color: #fff;
        }

        .reservation-editor-head h3 {
            margin: 4px 0 0;
        }

        .reservation-form {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
            padding: 16px;
            background: #fff;
        }

        .reservation-form label.wide,
        .reservation-form-actions {
            grid-column: 1 / -1;
        }

        .reservation-form-actions {
            display: flex;
            justify-content: flex-end;
            gap: 10px;
        }

        .kitchen-station-shell {
            display: grid;
            gap: 16px;
        }

        .kitchen-station-header {
            display: flex;
            justify-content: space-between;
            gap: 18px;
            align-items: flex-start;
            border: 1px solid rgba(23, 33, 27, .1);
            border-radius: 28px;
            padding: 22px;
            background: rgba(255, 250, 240, .86);
            box-shadow: var(--shadow);
        }

        .kitchen-station-header h2,
        .kitchen-station-header p {
            margin: 0;
        }

        .kitchen-station-header p {
            margin-top: 6px;
            color: var(--muted);
        }

        .kitchen-display-actions {
            display: flex;
            gap: 10px;
            align-items: center;
        }

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

        .kitchen-station-kpis article,
        .kitchen-station-toolbar,
        .kitchen-lane,
        .kitchen-ticket {
            border: 1px solid rgba(23, 33, 27, .1);
            background: #fff;
            box-shadow: 0 12px 28px rgba(31, 28, 49, .06);
        }

        .kitchen-station-kpis article {
            border-radius: 20px;
            padding: 16px;
        }

        .kitchen-station-kpis span,
        .kitchen-station-toolbar span {
            color: var(--muted);
            font-size: .72rem;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: .06em;
        }

        .kitchen-station-kpis strong {
            display: block;
            margin-top: 8px;
            color: var(--ink);
            font-size: 1.7rem;
            font-weight: 950;
        }

        .kitchen-station-toolbar {
            display: grid;
            grid-template-columns: 220px minmax(0, 1fr) auto;
            gap: 12px;
            align-items: end;
            border-radius: 20px;
            padding: 16px;
        }

        .kitchen-station-toolbar label {
            display: grid;
            gap: 7px;
        }

        .kitchen-station-toolbar input,
        .kitchen-station-toolbar select {
            width: 100%;
            border: 1px solid rgba(34, 31, 53, .11);
            border-radius: 12px;
            padding: 10px 11px;
            background: #f8fafc;
            color: var(--ink);
        }

        .kitchen-station-note {
            border-radius: 999px;
            padding: 10px 12px;
            background: #fff7ed;
            color: #c2410c;
            white-space: nowrap;
        }

        .kitchen-lanes {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 14px;
            align-items: start;
        }

        .kitchen-lane {
            border-radius: 24px;
            overflow: hidden;
            min-height: 360px;
        }

        .kitchen-lane-head {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 16px;
            background: #17211b;
            color: #fff;
        }

        .kitchen-lane-head span {
            display: inline-grid;
            place-items: center;
            min-width: 30px;
            height: 30px;
            border-radius: 999px;
            background: rgba(255, 255, 255, .14);
            font-weight: 950;
        }

        .kitchen-ticket-list {
            display: grid;
            gap: 12px;
            padding: 14px;
        }

        .kitchen-empty {
            border: 1px dashed rgba(23, 33, 27, .18);
            border-radius: 18px;
            padding: 18px;
            color: var(--muted);
            text-align: center;
            font-weight: 800;
        }

        .kitchen-ticket {
            border-radius: 20px;
            padding: 14px;
        }

        .kitchen-ticket.warning {
            border-color: rgba(202, 138, 4, .28);
            background: #fffbeb;
        }

        .kitchen-ticket.delayed {
            border-color: rgba(180, 35, 24, .28);
            background: #fff1ed;
        }

        .kitchen-ticket-head,
        .kitchen-ticket-meta {
            display: flex;
            justify-content: space-between;
            gap: 12px;
            align-items: start;
        }

        .kitchen-ticket-head strong {
            display: block;
            font-size: 1.25rem;
        }

        .kitchen-ticket-head span,
        .kitchen-ticket-meta,
        .kitchen-ticket-items small {
            color: var(--muted);
            font-size: .82rem;
            font-weight: 800;
        }

        .kitchen-ticket-head b {
            border-radius: 999px;
            padding: 7px 9px;
            background: #ecfdf3;
            color: #047857;
            white-space: nowrap;
        }

        .kitchen-ticket.warning .kitchen-ticket-head b {
            background: #fef3c7;
            color: #a16207;
        }

        .kitchen-ticket.delayed .kitchen-ticket-head b {
            background: #fee4e2;
            color: #b42318;
        }

        .kitchen-ticket-meta {
            margin-top: 8px;
        }

        .kitchen-ticket-items {
            display: grid;
            gap: 8px;
            margin: 12px 0;
            padding: 0;
            list-style: none;
        }

        .kitchen-ticket-items li {
            display: grid;
            gap: 3px;
            border-radius: 12px;
            padding: 9px 10px;
            background: #f8fafc;
        }

        .kitchen-ticket-items span {
            font-weight: 950;
        }

        .kitchen-ticket-action {
            width: 100%;
            border: 0;
            border-radius: 14px;
            padding: 11px 12px;
            background: var(--ink);
            color: #fff;
            cursor: pointer;
            font-weight: 950;
        }

        body.kitchen-display-mode .app-sidebar,
        body.kitchen-display-mode .topbar,
        body.kitchen-display-mode .workspace-tabs {
            display: none;
        }

        body.kitchen-display-mode .app-shell,
        body.kitchen-display-mode .shell {
            display: block;
            max-width: none;
            min-height: 100vh;
        }

        body.kitchen-display-mode .kitchen-lanes {
            min-height: calc(100vh - 230px);
        }

        .menu-engineering-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 14px;
        }

        .menu-engineering-card {
            border: 1px solid rgba(23, 33, 27, .1);
            border-radius: 20px;
            background: #fff;
            box-shadow: 0 12px 28px rgba(31, 28, 49, .06);
            overflow: hidden;
        }

        .menu-engineering-head {
            display: flex;
            justify-content: space-between;
            gap: 12px;
            align-items: center;
            padding: 14px 16px;
            background: #f8fafc;
        }

        .menu-engineering-card.star .menu-engineering-head {
            background: #ecfdf3;
        }

        .menu-engineering-card.plowhorse .menu-engineering-head {
            background: #eff6ff;
        }

        .menu-engineering-card.puzzle .menu-engineering-head {
            background: #fffbeb;
        }

        .menu-engineering-card.dog .menu-engineering-head {
            background: #fff1ed;
        }

        .menu-engineering-head strong,
        .menu-engineering-head span {
            display: block;
        }

        .menu-engineering-head span {
            margin-top: 3px;
            color: var(--muted);
            font-size: .78rem;
            font-weight: 800;
        }

        .menu-engineering-head b {
            display: inline-grid;
            place-items: center;
            min-width: 34px;
            height: 34px;
            border-radius: 999px;
            background: #17211b;
            color: #fff;
        }

        .menu-engineering-list {
            display: grid;
            gap: 10px;
            padding: 14px;
        }

        .menu-engineering-list article {
            display: grid;
            gap: 7px;
            border: 1px solid rgba(23, 33, 27, .08);
            border-radius: 14px;
            padding: 11px 12px;
            background: #fff;
        }

        .menu-engineering-list span,
        .menu-engineering-list small {
            color: var(--muted);
            font-size: .82rem;
            font-weight: 800;
        }

        .layout {
            display: grid;
            grid-template-columns: 360px 290px minmax(0, 1fr);
            gap: 22px;
            align-items: stretch;
            min-height: calc(100vh - 210px);
        }

        .dashboard-reports {
            display: grid;
            gap: 14px;
            margin-bottom: 18px;
        }

        .dashboard-report-head {
            display: flex;
            justify-content: space-between;
            gap: 16px;
            align-items: center;
            border: 1px solid rgba(23, 33, 27, .1);
            border-radius: 24px;
            padding: 16px;
            background: rgba(255, 250, 240, .9);
            box-shadow: var(--shadow);
        }

        .dashboard-report-head .modal-kicker {
            background: rgba(23, 33, 27, .08);
            color: var(--brand-dark);
        }

        .dashboard-report-head h2,
        .dashboard-report-head p {
            margin: 0;
        }

        .dashboard-report-head h2 {
            font-size: 1.35rem;
        }

        .dashboard-report-head p {
            margin-top: 4px;
            color: var(--muted);
            font-size: .9rem;
            font-weight: 800;
        }

        .dashboard-filter-actions {
            display: flex;
            flex-wrap: wrap;
            justify-content: flex-end;
            gap: 8px;
            align-items: center;
        }

        .dashboard-range {
            border: 1px solid rgba(23, 33, 27, .12);
            border-radius: 999px;
            padding: 9px 12px;
            background: #fffdf8;
            color: var(--muted);
            cursor: pointer;
            font-size: .76rem;
            font-weight: 900;
        }

        .dashboard-range.active,
        .dashboard-range:hover {
            border-color: transparent;
            background: var(--ink);
            color: #fff;
        }

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

        .dashboard-kpi {
            border: 0;
            display: grid;
            gap: 6px;
            min-height: 108px;
            border-radius: 16px;
            padding: 14px;
            color: #fff;
            cursor: pointer;
            text-align: left;
            box-shadow: 0 16px 34px rgba(23, 33, 27, .14);
            transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
        }

        .dashboard-kpi:hover,
        .dashboard-kpi:focus-visible {
            filter: saturate(1.08);
            transform: translateY(-2px);
            box-shadow: 0 20px 42px rgba(23, 33, 27, .2);
            outline: none;
        }

        .dashboard-kpi.sales {
            background: linear-gradient(135deg, #4f46e5, #2563eb);
        }

        .dashboard-kpi.orders {
            background: linear-gradient(135deg, #0891b2, #0f766e);
        }

        .dashboard-kpi.customers {
            background: linear-gradient(135deg, #db2777, #f97316);
        }

        .dashboard-kpi.average {
            background: linear-gradient(135deg, #7c3aed, #be185d);
        }

        .dashboard-kpi.skeleton {
            background: linear-gradient(90deg, #eef2f7, #f8fafc, #eef2f7);
        }

        .dashboard-kpi span,
        .dashboard-kpi small {
            color: rgba(255, 255, 255, .82);
            font-size: .74rem;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: .06em;
        }

        .dashboard-kpi strong {
            font-size: 1.55rem;
            line-height: 1;
        }

        .dashboard-workspace {
            display: grid;
            grid-template-columns: 180px minmax(0, 1fr);
            gap: 14px;
            align-items: start;
        }

        .dashboard-column-nav {
            position: sticky;
            top: 12px;
            display: grid;
            gap: 8px;
            border: 1px solid rgba(23, 33, 27, .1);
            border-radius: 18px;
            padding: 10px;
            background: rgba(255, 250, 240, .92);
            box-shadow: var(--shadow);
        }

        .dashboard-section-tab {
            width: 100%;
            border: 0;
            border-radius: 12px;
            padding: 11px 12px;
            background: rgba(255, 253, 248, .78);
            color: var(--muted);
            cursor: pointer;
            font-size: .82rem;
            font-weight: 900;
            text-align: left;
            box-shadow: inset 0 0 0 1px rgba(234, 223, 199, .72);
        }

        .dashboard-section-tab:hover,
        .dashboard-section-tab.active {
            background: var(--ink);
            color: #fff;
            box-shadow: 0 10px 22px rgba(23, 33, 27, .14);
        }

        .dashboard-section-content {
            min-width: 0;
        }

        .dashboard-section-panel {
            display: none;
        }

        .dashboard-section-panel.active {
            display: block;
        }

        .dashboard-report-grid {
            display: grid;
            grid-template-columns: minmax(0, 1.55fr) minmax(320px, .85fr);
            gap: 12px;
            align-items: stretch;
        }

        .dashboard-analytics-grid {
            display: grid;
            grid-template-columns: minmax(320px, 1fr) minmax(300px, .9fr) minmax(320px, 1.1fr);
            gap: 12px;
            align-items: stretch;
        }

        .dashboard-analytics-grid.two-column {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .dashboard-toolkit-grid {
            display: grid;
            grid-template-columns: minmax(320px, .9fr) minmax(0, 1.4fr);
            gap: 12px;
            align-items: stretch;
        }

        .dashboard-card {
            min-width: 0;
            border: 1px solid rgba(23, 33, 27, .1);
            border-radius: 20px;
            padding: 14px;
            background: rgba(255, 250, 240, .92);
            box-shadow: var(--shadow);
        }

        .dashboard-card-head {
            display: flex;
            justify-content: space-between;
            gap: 12px;
            align-items: center;
            margin-bottom: 12px;
        }

        .dashboard-card-head strong {
            color: var(--ink);
            font-size: .98rem;
            font-weight: 900;
        }

        .dashboard-card-head span {
            color: var(--muted);
            font-size: .76rem;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: .06em;
        }

        .dashboard-bars {
            min-height: 260px;
        }

        .dashboard-line-chart {
            width: 100%;
            border: 0;
            display: grid;
            gap: 10px;
            padding: 0;
            background: transparent;
            cursor: pointer;
            text-align: left;
        }

        .dashboard-line-chart svg {
            width: 100%;
            min-height: 250px;
            display: block;
            border-radius: 16px;
            background: linear-gradient(180deg, #f8fafc 0%, #fffdf8 100%);
            box-shadow: inset 0 0 0 1px rgba(23, 33, 27, .08);
        }

        .dashboard-line-chart line {
            stroke: rgba(98, 112, 140, .28);
            stroke-width: 1;
        }

        .dashboard-line-chart polygon {
            fill: url(#salesAreaGradient);
        }

        .dashboard-line-chart polyline {
            fill: none;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .dashboard-line-chart .sales-line {
            stroke: #0ea5e9;
            stroke-width: 5;
        }

        .dashboard-line-chart .moving-line {
            stroke: #f97316;
            stroke-width: 3;
            stroke-dasharray: 9 8;
        }

        .dashboard-line-chart circle {
            fill: #fff;
            stroke: #0ea5e9;
            stroke-width: 3;
        }

        .dashboard-line-chart:hover svg,
        .dashboard-line-chart:focus-visible svg {
            box-shadow: inset 0 0 0 2px rgba(14, 165, 233, .35), 0 14px 30px rgba(23, 33, 27, .1);
            outline: none;
        }

        .dashboard-line-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 8px 14px;
            align-items: center;
            color: var(--muted);
            font-size: .78rem;
            font-weight: 900;
        }

        .dashboard-line-meta strong {
            border-radius: 999px;
            padding: 5px 9px;
            color: #fff;
            font-size: .76rem;
        }

        .dashboard-line-meta strong.up {
            background: #039855;
        }

        .dashboard-line-meta strong.down {
            background: #d92d20;
        }

        .dashboard-line-labels {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(48px, 1fr));
            gap: 6px;
            color: var(--muted);
            font-size: .68rem;
            font-weight: 900;
            text-align: center;
        }

        .dashboard-bar {
            border: 0;
            display: grid;
            gap: 7px;
            min-width: 0;
            padding: 0;
            background: transparent;
            cursor: pointer;
            text-align: center;
        }

        .dashboard-bar:focus-visible .dashboard-bar-track,
        .dashboard-bar:hover .dashboard-bar-track {
            box-shadow: inset 0 0 0 2px rgba(14, 165, 233, .38), 0 12px 22px rgba(23, 33, 27, .12);
            outline: none;
        }

        .dashboard-bar-track {
            display: flex;
            align-items: end;
            height: 122px;
            border-radius: 12px;
            padding: 5px;
            background: #eef5f2;
            box-shadow: inset 0 0 0 1px rgba(23, 33, 27, .08);
        }

        .dashboard-bar-track span {
            width: 100%;
            border-radius: 9px;
            background: linear-gradient(180deg, #22c55e, #0ea5e9);
        }

        .dashboard-bar strong {
            color: var(--ink);
            font-size: .72rem;
            overflow-wrap: anywhere;
        }

        .dashboard-bar small {
            color: var(--muted);
            font-size: .72rem;
            font-weight: 900;
        }

        .dashboard-funnel {
            display: grid;
            gap: 12px;
        }

        .dashboard-funnel-row {
            width: 100%;
            border: 0;
            display: grid;
            grid-template-columns: 86px minmax(0, 1fr) auto;
            gap: 10px;
            align-items: center;
            padding: 0;
            background: transparent;
            cursor: pointer;
            text-align: left;
        }

        .dashboard-funnel-row:hover .dashboard-funnel-track,
        .dashboard-funnel-row:focus-visible .dashboard-funnel-track {
            box-shadow: 0 10px 20px rgba(23, 33, 27, .12);
            outline: none;
        }

        .dashboard-funnel-row > span,
        .dashboard-funnel-row > strong {
            color: var(--ink);
            font-size: .78rem;
            font-weight: 900;
        }

        .dashboard-funnel-track {
            height: 34px;
            border-radius: 999px;
            overflow: hidden;
            background: #edf1f7;
        }

        .dashboard-funnel-track b {
            height: 100%;
            display: grid;
            place-items: center;
            min-width: 34px;
            border-radius: 999px;
            color: #fff;
            font-size: .78rem;
            font-weight: 900;
        }

        .dashboard-funnel-track .tone-1 {
            background: #4f46e5;
        }

        .dashboard-funnel-track .tone-2 {
            background: #0ea5e9;
        }

        .dashboard-funnel-track .tone-3 {
            background: #14b8a6;
        }

        .dashboard-products {
            display: grid;
            gap: 8px;
        }

        .dashboard-product-row {
            width: 100%;
            border: 0;
            display: grid;
            grid-template-columns: 30px minmax(0, 1fr) auto;
            gap: 10px;
            align-items: center;
            border-radius: 12px;
            padding: 10px;
            background: rgba(255, 253, 248, .78);
            cursor: pointer;
            text-align: left;
            box-shadow: inset 0 0 0 1px rgba(234, 223, 199, .72);
            transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
        }

        .dashboard-product-row:hover,
        .dashboard-product-row:focus-visible {
            background: #fff;
            box-shadow: inset 0 0 0 1px rgba(240, 109, 47, .32), 0 10px 22px rgba(23, 33, 27, .1);
            outline: none;
            transform: translateY(-1px);
        }

        .dashboard-product-row > span {
            width: 30px;
            height: 30px;
            display: grid;
            place-items: center;
            border-radius: 10px;
            background: var(--ink);
            color: #fff;
            font-size: .78rem;
            font-weight: 900;
        }

        .dashboard-product-row strong,
        .dashboard-product-row small {
            display: block;
            overflow-wrap: anywhere;
        }

        .dashboard-product-row strong {
            color: var(--ink);
            font-size: .86rem;
            font-weight: 900;
        }

        .dashboard-product-row small {
            color: var(--muted);
            font-size: .76rem;
            font-weight: 800;
        }

        .dashboard-product-row b {
            color: var(--brand-dark);
            font-size: .84rem;
            font-weight: 900;
        }

        .dashboard-insights,
        .dashboard-payment-mix,
        .dashboard-tools,
        .dashboard-pareto {
            display: grid;
            gap: 8px;
        }

        .dashboard-insight-row,
        .dashboard-mix-row,
        .dashboard-tool-row,
        .dashboard-pareto-row {
            width: 100%;
            border: 0;
            display: grid;
            gap: 6px;
            border-radius: 12px;
            padding: 10px;
            background: rgba(255, 253, 248, .78);
            cursor: pointer;
            text-align: left;
            box-shadow: inset 0 0 0 1px rgba(234, 223, 199, .72);
        }

        .dashboard-insight-row:hover,
        .dashboard-mix-row:hover,
        .dashboard-tool-row:hover,
        .dashboard-pareto-row:hover,
        .dashboard-hour-cell:hover {
            background: #fff;
            box-shadow: inset 0 0 0 1px rgba(14, 165, 233, .28), 0 10px 20px rgba(23, 33, 27, .08);
        }

        .dashboard-insight-row span,
        .dashboard-mix-row span,
        .dashboard-tool-row span {
            color: var(--muted);
            font-size: .7rem;
            font-weight: 900;
            letter-spacing: .06em;
            text-transform: uppercase;
        }

        .dashboard-insight-row strong {
            color: var(--ink);
            font-size: .92rem;
            font-weight: 900;
            overflow-wrap: anywhere;
        }

        .dashboard-tool-row {
            grid-template-columns: 96px minmax(0, 1fr);
            align-items: start;
        }

        .dashboard-tool-row strong {
            color: var(--ink);
            font-size: 1rem;
            font-weight: 900;
            text-align: right;
        }

        .dashboard-tool-row small {
            grid-column: 1 / -1;
            color: var(--muted);
            font-size: .74rem;
            font-weight: 800;
        }

        .dashboard-mix-row {
            grid-template-columns: 88px minmax(0, 1fr) 44px;
            align-items: center;
        }

        .dashboard-mix-row div {
            height: 10px;
            border-radius: 999px;
            overflow: hidden;
            background: #edf1f7;
        }

        .dashboard-mix-row b {
            display: block;
            height: 100%;
            border-radius: inherit;
            background: linear-gradient(90deg, #4f46e5, #14b8a6);
        }

        .dashboard-mix-row strong {
            color: var(--ink);
            font-size: .82rem;
            font-weight: 900;
            text-align: right;
        }

        .dashboard-mix-row small {
            grid-column: 2 / 4;
            color: var(--muted);
            font-size: .75rem;
            font-weight: 800;
        }

        .dashboard-hourly {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 8px;
        }

        .dashboard-hour-cell {
            border: 0;
            display: grid;
            gap: 3px;
            min-height: 76px;
            border-radius: 12px;
            padding: 10px;
            background: color-mix(in srgb, #0ea5e9 var(--heat), #f8fafc);
            color: #123;
            cursor: pointer;
            text-align: left;
            box-shadow: inset 0 0 0 1px rgba(23, 33, 27, .08);
        }

        .dashboard-hour-cell strong,
        .dashboard-hour-cell span,
        .dashboard-hour-cell small {
            font-weight: 900;
        }

        .dashboard-hour-cell strong {
            font-size: .78rem;
        }

        .dashboard-hour-cell span {
            font-size: 1.05rem;
        }

        .dashboard-hour-cell small {
            color: rgba(23, 33, 27, .74);
            font-size: .68rem;
        }

        .dashboard-pareto-row {
            grid-template-columns: minmax(160px, 1fr) minmax(160px, 1.2fr) auto;
            align-items: center;
        }

        .dashboard-pareto-row strong,
        .dashboard-pareto-row small {
            display: block;
            overflow-wrap: anywhere;
        }

        .dashboard-pareto-row strong {
            color: var(--ink);
            font-size: .84rem;
            font-weight: 900;
        }

        .dashboard-pareto-row small {
            color: var(--muted);
            font-size: .72rem;
            font-weight: 800;
        }

        .dashboard-pareto-row span {
            height: 12px;
            border-radius: 999px;
            overflow: hidden;
            background: #edf1f7;
        }

        .dashboard-pareto-row span b {
            display: block;
            height: 100%;
            border-radius: inherit;
            background: linear-gradient(90deg, #14b8a6, #4f46e5);
        }

        .dashboard-pareto-row em {
            color: var(--brand-dark);
            font-size: .82rem;
            font-style: normal;
            font-weight: 900;
            text-align: right;
        }

        .panel {
            border: 1px solid rgba(23, 33, 27, .1);
            border-radius: 34px;
            background: rgba(255, 250, 240, .86);
            box-shadow: var(--shadow);
            overflow: hidden;
            height: 100%;
        }

        .menu {
            padding: 22px;
            display: flex;
            flex-direction: column;
        }

        .categories {
            padding: 22px;
            display: flex;
            flex-direction: column;
        }

        .section-title {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
            align-items: center;
            gap: 16px;
            margin-bottom: 16px;
        }

        .section-title > :first-child {
            justify-self: start;
        }

        .section-title > :last-child {
            justify-self: end;
        }

        .section-title h2 {
            margin: 0;
            font-size: 1.25rem;
        }

        .section-title p {
            margin: 0;
            color: var(--muted);
            font-size: .9rem;
        }

        .category-list {
            display: grid;
            gap: 12px;
            align-content: start;
            flex: 1;
        }

        .category-button {
            width: 100%;
            display: grid;
            grid-template-columns: 42px 1fr auto;
            gap: 12px;
            align-items: center;
            border: 0;
            border-radius: 20px;
            padding: 12px;
            background: rgba(255, 253, 248, .72);
            color: var(--ink);
            cursor: pointer;
            text-align: left;
            box-shadow: inset 0 0 0 1px rgba(234, 223, 199, .72);
            transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
        }

        .category-button:hover,
        .category-button.active {
            background: #fff;
            box-shadow: inset 0 0 0 2px rgba(240, 109, 47, .5), 0 14px 28px rgba(52, 37, 18, .1);
            transform: translateY(-2px);
        }

        .category-icon {
            width: 42px;
            height: 42px;
            display: grid;
            place-items: center;
            border-radius: 15px;
            background: #fff1dc;
            color: var(--brand-dark);
            font-weight: 900;
        }

        .category-image {
            width: 42px;
            height: 42px;
            border-radius: 15px;
            object-fit: cover;
            background: #fff1dc;
            box-shadow: 0 8px 18px rgba(52, 37, 18, .12);
        }

        .category-name {
            display: block;
            font-weight: 900;
        }

        .category-count {
            display: block;
            margin-top: 2px;
            color: var(--muted);
            font-size: .78rem;
        }

        .category-total {
            color: var(--brand-dark);
            font-size: .82rem;
            font-weight: 900;
        }

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

        .item-card {
            display: grid;
            align-content: start;
            gap: 0;
            border: 1px solid var(--line);
            border-radius: 24px;
            padding: 0;
            background: var(--white);
            cursor: pointer;
            text-align: left;
            overflow: hidden;
            transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
        }

        .item-card:hover {
            border-color: rgba(240, 109, 47, .55);
            box-shadow: 0 16px 30px rgba(52, 37, 18, .12);
            transform: translateY(-3px);
        }

        .item-image {
            width: 100%;
            height: 118px;
            object-fit: cover;
            border-radius: 24px 24px 0 0;
            background: #f0e4cc;
        }

        .item-content {
            display: block;
            padding: 14px 14px 8px;
        }

        .item-category {
            display: inline-flex;
            margin-bottom: 10px;
            border-radius: 999px;
            padding: 5px 9px;
            background: rgba(31, 143, 95, .1);
            color: var(--green);
            font-size: .72rem;
            font-weight: 900;
            letter-spacing: .08em;
            text-transform: uppercase;
        }

        .item-name {
            display: block;
            margin-bottom: 5px;
            font-weight: 800;
            font-size: 1.08rem;
        }

        .item-meta {
            display: flex;
            justify-content: space-between;
            gap: 8px;
            color: var(--muted);
            font-size: .88rem;
        }

        .price {
            color: var(--brand-dark);
            font-weight: 800;
        }

        .price small {
            display: block;
            color: #94a3b8;
            font-size: .72rem;
            text-decoration: line-through;
        }

        .item-action {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
            padding: 0 14px 14px;
        }

        .add-pill {
            width: 42px;
            height: 42px;
            display: grid;
            place-items: center;
            border-radius: 16px;
            background: var(--ink);
            color: #fff;
            font-weight: 900;
        }

        .add-pill svg {
            width: 21px;
            height: 21px;
            fill: currentColor;
        }

        .menu-count {
            border-radius: 999px;
            padding: 7px 11px;
            background: #fff;
            color: var(--brand-dark);
            font-size: .82rem;
            font-weight: 900;
        }

        .menu-toolbar {
            display: grid;
            grid-template-columns: 1fr;
            gap: 12px;
            margin-bottom: 16px;
        }

        .menu-panel-action {
            display: flex;
            justify-content: center;
        }

        .menu-panel-action .close-transaction-button {
            width: min(100%, 240px);
        }

        .order-details {
            display: grid;
            grid-template-columns: 1.2fr .9fr .7fr .7fr 1fr;
            gap: 12px;
            margin-bottom: 16px;
            border: 1px solid rgba(23, 33, 27, .08);
            border-radius: 24px;
            padding: 14px;
            background: rgba(255, 253, 248, .72);
        }

        .order-details.online-mode {
            grid-template-columns: 1.2fr .9fr 1fr 1fr;
        }

        .order-details [hidden] {
            display: none !important;
        }

        .field {
            display: grid;
            gap: 7px;
        }

        .field label {
            color: var(--muted);
            font-size: .75rem;
            font-weight: 900;
            letter-spacing: .08em;
            text-transform: uppercase;
        }

        .field input,
        .field select {
            width: 100%;
            border: 1px solid var(--line);
            border-radius: 16px;
            background: #fffdf7;
            padding: 12px 13px;
            outline: none;
        }

        .field input:focus,
        .field select:focus {
            border-color: var(--brand);
            box-shadow: 0 0 0 4px rgba(240, 109, 47, .12);
        }

        .field select option.table-option-available {
            color: #047857;
            background: #ecfdf5;
        }

        .field select option.table-option-occupied {
            color: #b91c1c;
            background: #fef2f2;
        }

        .items {
            flex: 1;
        }

        .search {
            width: 100%;
            border: 1px solid var(--line);
            border-radius: 18px;
            background: #fffdf7;
            padding: 13px 14px;
            outline: none;
        }

        .search:focus {
            border-color: var(--brand);
            box-shadow: 0 0 0 4px rgba(240, 109, 47, .12);
        }

        .pagination {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            margin-top: 16px;
            color: var(--muted);
            font-size: .9rem;
        }

        .page-actions {
            display: flex;
            gap: 8px;
        }

        .page-button {
            border: 0;
            border-radius: 14px;
            padding: 10px 13px;
            background: var(--ink);
            color: #fff;
            cursor: pointer;
            font-weight: 800;
        }

        .page-button:disabled {
            cursor: not-allowed;
            opacity: .35;
        }

        .cart {
            position: sticky;
            top: 18px;
            display: flex;
            flex-direction: column;
        }

        .cart-head {
            padding: 22px;
            background: linear-gradient(135deg, var(--ink), #263c2e);
            color: white;
        }

        .cart-head h2 {
            margin: 0 0 6px;
            font-size: 1.35rem;
        }

        .cart-head p {
            margin: 0;
            color: rgba(255, 255, 255, .72);
            font-size: .9rem;
        }

        .order-number-card {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            margin-top: 16px;
            border-radius: 18px;
            padding: 12px;
            background: rgba(255, 255, 255, .1);
            box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
        }

        .order-number-card span {
            color: rgba(255, 255, 255, .72);
            font-size: .75rem;
            font-weight: 900;
            letter-spacing: .08em;
            text-transform: uppercase;
        }

        .order-number-card strong {
            color: #fff;
            font-size: 1.05rem;
        }

        .cart-body {
            padding: 18px;
            display: flex;
            flex: 1;
            flex-direction: column;
        }

        .cart-lines {
            min-height: 0;
            display: grid;
            gap: 10px;
            align-content: start;
            flex: 1;
        }

        .empty {
            min-height: 220px;
            display: grid;
            place-items: center;
            border: 1px dashed #d7c9ae;
            border-radius: 24px;
            color: var(--muted);
            text-align: center;
            padding: 20px;
        }

        .line {
            display: grid;
            grid-template-columns: 1fr auto;
            gap: 10px;
            padding: 12px;
            border: 1px solid var(--line);
            border-radius: 20px;
            background: #fffdf7;
        }

        .line strong,
        .line small {
            display: block;
        }

        .line small {
            margin-top: 4px;
            color: var(--muted);
        }

        .qty {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .qty button {
            width: 30px;
            height: 30px;
            border: 0;
            border-radius: 10px;
            background: #f0e4cc;
            cursor: pointer;
            font-weight: 800;
        }

        .totals {
            display: grid;
            gap: 10px;
            padding: 16px 0;
            border-top: 1px solid var(--line);
            border-bottom: 1px solid var(--line);
            margin: 18px 0;
        }

        .total-row {
            display: flex;
            justify-content: space-between;
            gap: 16px;
            color: var(--muted);
        }

        .total-row.grand {
            color: var(--ink);
            font-size: 1.45rem;
            font-weight: 900;
        }

        .checkout {
            width: 100%;
            border: 0;
            border-radius: 20px;
            padding: 16px;
            color: white;
            background: linear-gradient(135deg, var(--brand), var(--brand-dark));
            cursor: pointer;
            font-weight: 900;
            box-shadow: 0 16px 30px rgba(185, 67, 28, .3);
        }

        .checkout:disabled {
            cursor: not-allowed;
            opacity: .45;
            box-shadow: none;
        }

        .customer {
            width: 100%;
            margin-bottom: 14px;
            border: 1px solid var(--line);
            border-radius: 18px;
            background: #fffdf7;
            padding: 13px 14px;
            outline: none;
        }

        .customer:focus {
            border-color: var(--brand);
        }

        .notice {
            display: none;
            margin-top: 12px;
            padding: 12px;
            border-radius: 16px;
            background: rgba(31, 143, 95, .12);
            color: var(--green);
            font-weight: 800;
        }

        .notice.show {
            display: block;
        }

        .toast {
            position: fixed;
            top: 24px;
            right: 24px;
            z-index: 20;
            width: min(360px, calc(100% - 32px));
            display: grid;
            grid-template-columns: 42px 1fr;
            gap: 12px;
            align-items: center;
            border: 1px solid rgba(31, 143, 95, .22);
            border-radius: 22px;
            padding: 14px;
            background: rgba(255, 253, 248, .96);
            box-shadow: 0 22px 54px rgba(23, 33, 27, .18);
            opacity: 0;
            pointer-events: none;
            transform: translateY(-12px);
            transition: opacity .2s ease, transform .2s ease;
        }

        .toast.show {
            opacity: 1;
            transform: translateY(0);
        }

        .toast-icon {
            width: 42px;
            height: 42px;
            display: grid;
            place-items: center;
            border-radius: 16px;
            background: rgba(31, 143, 95, .12);
            color: var(--green);
            font-weight: 900;
        }

        .toast strong,
        .toast small {
            display: block;
        }

        .toast small {
            margin-top: 3px;
            color: var(--muted);
        }

        .auth-page {
            min-height: 100vh;
            display: grid;
            place-items: center;
            padding: 24px;
            background: #f5ebd8;
        }

        .auth-card {
            width: min(420px, 100%);
            border: 1px solid var(--line);
            border-radius: 24px;
            padding: 24px;
            background: #fffdf8;
            box-shadow: 0 24px 70px rgba(23, 33, 27, .18);
        }

        .auth-card h1 {
            margin: 0 0 18px;
            font-size: 1.6rem;
        }

        .auth-card label {
            display: block;
            margin: 12px 0 8px;
            color: var(--muted);
            font-size: .76rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: .08em;
        }

        .auth-card input:not([type="checkbox"]) {
            width: 100%;
            border: 1px solid var(--line);
            border-radius: 14px;
            padding: 12px;
            background: #fffaf0;
            font: inherit;
        }

        .auth-check {
            display: flex !important;
            align-items: center;
            gap: 8px;
            text-transform: none !important;
            letter-spacing: 0 !important;
        }

        .auth-error {
            border-radius: 12px;
            padding: 10px;
            background: rgba(185, 74, 29, .1);
            color: #b94a1d;
            font-weight: 700;
        }

        .auth-card button {
            width: 100%;
            border: 0;
            border-radius: 14px;
            margin-top: 12px;
            padding: 13px;
            background: var(--ink);
            color: #fff;
            cursor: pointer;
            font-weight: 800;
        }

        .auth-card a {
            display: inline-block;
            margin-top: 16px;
            color: var(--brand-dark);
            font-weight: 800;
            text-decoration: none;
        }

        .modal-backdrop {
            position: fixed;
            inset: 0;
            z-index: 30;
            display: none;
            place-items: center;
            align-items: start;
            padding: 24px;
            overflow-y: auto;
            background: rgba(23, 33, 27, .48);
            backdrop-filter: blur(10px);
        }

        .modal-backdrop.show {
            display: grid;
        }

        .payment-modal {
            width: min(760px, 100%);
            border: 1px solid rgba(255, 255, 255, .44);
            border-radius: 34px;
            background: #fffdf8;
            box-shadow: 0 30px 90px rgba(23, 33, 27, .32);
            overflow: hidden;
        }

        .payment-head {
            display: flex;
            justify-content: space-between;
            gap: 18px;
            align-items: flex-start;
            padding: 24px;
            background: linear-gradient(135deg, var(--ink), #263c2e);
            color: #fff;
        }

        .modal-kicker {
            display: inline-flex;
            margin-bottom: 10px;
            border-radius: 999px;
            padding: 7px 10px;
            background: rgba(255, 255, 255, .12);
            color: rgba(255, 255, 255, .78);
            font-size: .72rem;
            font-weight: 900;
            letter-spacing: .1em;
            text-transform: uppercase;
        }

        .payment-head h2,
        .payment-head p {
            margin: 0;
        }

        .payment-head p {
            margin-top: 6px;
            color: rgba(255, 255, 255, .72);
        }

        .modal-close {
            border: 0;
            border-radius: 14px;
            padding: 10px 12px;
            background: rgba(255, 255, 255, .12);
            color: #fff;
            cursor: pointer;
            font-weight: 900;
        }

        .payment-layout {
            display: grid;
            grid-template-columns: .9fr 1.1fr;
            gap: 18px;
            padding: 22px;
        }

        .payment-summary,
        .payment-form {
            border: 1px solid var(--line);
            border-radius: 26px;
            padding: 18px;
            background: #fffaf0;
        }

        .payment-row {
            display: flex;
            justify-content: space-between;
            gap: 16px;
            padding: 12px 0;
            color: var(--muted);
        }

        .payment-row + .payment-row {
            border-top: 1px solid var(--line);
        }

        .payment-row.grand {
            color: var(--ink);
            font-size: 1.3rem;
            font-weight: 900;
        }

        .discount-row strong {
            color: #b94a1d;
        }

        .payment-label,
        .cash-box label {
            display: block;
            margin-bottom: 10px;
            color: var(--muted);
            font-size: .76rem;
            font-weight: 900;
            letter-spacing: .08em;
            text-transform: uppercase;
        }

        .payment-select {
            width: 100%;
            margin-bottom: 16px;
            border: 1px solid var(--line);
            border-radius: 18px;
            padding: 14px;
            background: #fffdf8;
            color: var(--ink);
            font: inherit;
            font-weight: 800;
            outline: none;
        }

        .payment-select:focus {
            border-color: var(--brand);
            box-shadow: 0 0 0 4px rgba(240, 109, 47, .12);
        }

        .discount-entry-grid {
            display: grid;
            grid-template-columns: minmax(220px, .85fr) minmax(260px, 1.15fr);
            gap: 14px;
            align-items: start;
            margin-bottom: 16px;
        }

        .payment-options {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            margin-bottom: 16px;
        }

        .payment-option {
            border: 1px solid var(--line);
            border-radius: 18px;
            padding: 14px;
            background: #fffdf8;
            cursor: pointer;
            font-weight: 900;
        }

        .payment-option.active {
            border-color: rgba(240, 109, 47, .45);
            background: var(--ink);
            color: #fff;
        }

        .cash-box.hidden,
        .discount-items-box.hidden,
        .senior-fields.hidden,
        .epayment-box.hidden {
            display: none;
        }

        .discount-items-box {
            border: 1px solid var(--line);
            border-radius: 16px;
            padding: 12px;
            background: rgba(255, 253, 248, .72);
        }

        .discount-item-list {
            display: grid;
            gap: 8px;
            max-height: 220px;
            overflow: auto;
        }

        .discount-item-option {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            border: 1px solid var(--line);
            border-radius: 14px;
            padding: 10px 12px;
            background: #fffdf8;
            font-weight: 800;
        }

        .discount-item-option span {
            display: grid;
            gap: 2px;
        }

        .discount-item-option small {
            color: var(--muted);
            font-weight: 800;
        }

        .discount-item-option input {
            width: 18px;
            height: 18px;
            accent-color: var(--brand);
        }

        .senior-fields input,
        .cash-box input {
            width: 100%;
            border: 1px solid var(--line);
            border-radius: 18px;
            padding: 14px;
            background: #fffdf8;
            outline: none;
        }

        .senior-fields input {
            margin-bottom: 16px;
        }

        .senior-fields input:focus,
        .cash-box input:focus {
            border-color: var(--brand);
            box-shadow: 0 0 0 4px rgba(240, 109, 47, .12);
        }

        .change-card {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 16px;
            margin-top: 12px;
            border-radius: 18px;
            padding: 14px;
            background: rgba(31, 143, 95, .1);
            color: var(--green);
            font-weight: 900;
        }

        @media (max-width: 760px) {
            .discount-entry-grid {
                grid-template-columns: 1fr;
            }
        }

        .payment-actions {
            display: flex;
            justify-content: flex-end;
            gap: 10px;
            border-top: 1px solid var(--line);
            padding: 18px 22px;
            background: #fffaf0;
        }

        .payment-cancel,
        .payment-confirm {
            border: 0;
            border-radius: 16px;
            padding: 13px 16px;
            cursor: pointer;
            font-weight: 900;
        }

        .payment-cancel {
            background: #efe3ca;
            color: var(--ink);
        }

        .payment-confirm {
            background: var(--ink);
            color: #fff;
        }

        .payment-confirm:disabled {
            cursor: not-allowed;
            opacity: .45;
        }

        .receipt-modal {
            width: min(460px, 100%);
            display: grid;
            gap: 12px;
            margin: auto 0;
        }

        .receipt-paper {
            border: 1px solid #d8d0bd;
            border-radius: 24px;
            padding: 20px;
            background:
                linear-gradient(#fffdf8, #fffdf8) padding-box,
                repeating-linear-gradient(90deg, #d8d0bd 0 8px, transparent 8px 16px) border-box;
            box-shadow: 0 24px 70px rgba(23, 33, 27, .28);
        }

        .receipt-head {
            border-bottom: 1px dashed #b9ad95;
            padding-bottom: 14px;
            text-align: center;
        }

        .receipt-kicker {
            margin: 0 0 6px;
            color: var(--brand-dark);
            font-size: .72rem;
            font-weight: 900;
            letter-spacing: .14em;
            text-transform: uppercase;
        }

        .receipt-head h2 {
            margin: 0;
            font-size: 1.2rem;
        }

        .receipt-head p,
        .receipt-head small {
            display: block;
            margin: 4px 0 0;
            color: var(--muted);
        }

        .receipt-meta {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px 14px;
            border-bottom: 1px dashed #b9ad95;
            padding: 14px 0;
        }

        .receipt-meta span,
        .receipt-items span,
        .receipt-totals span {
            display: block;
            color: var(--muted);
            font-size: .72rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: .06em;
        }

        .receipt-meta strong {
            display: block;
            margin-top: 3px;
            font-size: .9rem;
            font-weight: 700;
        }

        .receipt-items {
            display: grid;
            gap: 10px;
            border-bottom: 1px dashed #b9ad95;
            padding: 14px 0;
        }

        .receipt-item,
        .receipt-totals > div,
        .receipt-adjustments > div {
            display: flex;
            justify-content: space-between;
            gap: 16px;
            align-items: start;
        }

        .receipt-item strong {
            font-size: .92rem;
            font-weight: 700;
        }

        .receipt-totals strong {
            font-weight: 700;
        }

        .receipt-item span {
            margin-top: 3px;
            text-transform: none;
            letter-spacing: 0;
        }

        .receipt-totals {
            display: grid;
            gap: 7px;
            padding-top: 14px;
        }

        .receipt-section-label {
            margin: 8px 0 2px;
            border-top: 1px dashed #d2c6ad;
            padding-top: 8px;
            color: var(--brand-dark);
            font-size: .68rem;
            font-weight: 800;
            letter-spacing: .12em;
            text-transform: uppercase;
        }

        .receipt-section-label:first-child {
            margin-top: 0;
            border-top: 0;
            padding-top: 0;
        }

        .receipt-total-due {
            border-top: 1px solid var(--line);
            border-bottom: 1px solid var(--line);
            margin-top: 3px;
            padding: 9px 0;
            color: var(--ink);
        }

        .receipt-total-due strong {
            font-size: 1.18rem;
        }

        .receipt-footer {
            margin: 14px 0 0;
            color: var(--muted);
            font-size: .82rem;
            text-align: center;
        }

        .receipt-actions {
            position: sticky;
            bottom: 12px;
            z-index: 1;
            display: flex;
            justify-content: flex-end;
            gap: 10px;
            border: 1px solid rgba(255, 255, 255, .44);
            border-radius: 18px;
            padding: 12px;
            background: #fffdf8;
            box-shadow: 0 14px 42px rgba(23, 33, 27, .2);
        }

        .ongoing-header {
            display: flex;
            justify-content: space-between;
            align-items: end;
            gap: 18px;
            margin-bottom: 18px;
        }

        .ongoing-header h2 {
            margin: 0;
            font-size: 1.75rem;
        }

        .ongoing-header p {
            margin: 6px 0 0;
            color: var(--muted);
        }

        .ongoing-list {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 18px;
        }

        .kitchen-storage-workspace {
            grid-column: 1 / -1;
            display: grid;
            gap: 16px;
        }

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

        .kitchen-storage-commandbar {
            display: flex;
            justify-content: flex-end;
            align-items: center;
        }

        .storage-metric {
            border: 1px solid rgba(23, 33, 27, .1);
            border-radius: 18px;
            padding: 16px;
            background: #fff;
            box-shadow: 0 12px 28px rgba(31, 28, 49, .06);
        }

        .storage-metric span {
            display: block;
            color: var(--muted);
            font-size: .72rem;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: .06em;
        }

        .storage-metric strong {
            display: block;
            margin-top: 8px;
            color: var(--ink);
            font-size: 1.55rem;
            font-weight: 950;
        }

        .storage-metric.attention {
            border-color: rgba(180, 35, 24, .22);
            background: #fff1ed;
        }

        .storage-metric.attention strong {
            color: #b42318;
        }

        .kitchen-storage-form,
        .kitchen-storage-list-head {
            border: 1px solid rgba(23, 33, 27, .1);
            border-radius: 18px;
            padding: 16px;
            background: #fff;
            box-shadow: 0 12px 28px rgba(31, 28, 49, .05);
        }

        .kitchen-storage-form {
            display: grid;
            grid-template-columns: minmax(180px, 1.4fr) repeat(3, minmax(110px, .7fr)) minmax(160px, 1fr);
            gap: 12px;
            align-items: end;
        }

        .storage-modal {
            width: min(840px, 100%);
        }

        .storage-modal-form {
            border: 0;
            border-radius: 0;
            box-shadow: none;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            padding: 22px;
        }

        .storage-modal-form label.wide,
        .storage-modal-form .kitchen-storage-form-actions {
            grid-column: 1 / -1;
        }

        .storage-modal-form .kitchen-storage-form-actions {
            display: flex;
            justify-content: flex-end;
            align-items: center;
        }

        .kitchen-storage-form label,
        .kitchen-storage-list-head label {
            display: grid;
            gap: 7px;
            min-width: 0;
        }

        .kitchen-storage-form label.wide {
            grid-column: 1 / -2;
        }

        .kitchen-storage-form span,
        .kitchen-storage-list-head span {
            color: var(--muted);
            font-size: .72rem;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: .06em;
        }

        .kitchen-storage-form input,
        .kitchen-storage-form select,
        .kitchen-storage-form textarea,
        .kitchen-storage-list-head input {
            width: 100%;
            min-width: 0;
            border: 1px solid rgba(34, 31, 53, .11);
            border-radius: 12px;
            padding: 10px 11px;
            background: #f8fafc;
            color: var(--ink);
        }

        .kitchen-storage-form select {
            cursor: pointer;
        }

        .kitchen-storage-form textarea {
            resize: vertical;
        }

        .storage-conversion-preview {
            grid-column: 1 / -1;
            border: 1px solid rgba(4, 120, 87, .14);
            border-radius: 14px;
            padding: 11px 12px;
            background: #ecfdf3;
            color: #047857;
            font-size: .84rem;
            font-weight: 900;
        }

        .kitchen-storage-form-actions {
            display: grid;
            gap: 8px;
        }

        .kitchen-storage-list {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
        }

        .kitchen-storage-card {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(128px, auto) auto;
            gap: 14px;
            align-items: center;
            border: 1px solid rgba(23, 33, 27, .1);
            border-radius: 18px;
            padding: 16px;
            background: #fff;
            box-shadow: 0 14px 30px rgba(31, 28, 49, .06);
        }

        .kitchen-storage-card.low-stock {
            border-color: rgba(180, 35, 24, .24);
            background: linear-gradient(180deg, #fff 0%, #fff7f5 100%);
        }

        .kitchen-storage-card-main {
            min-width: 0;
        }

        .storage-status {
            display: inline-flex;
            border-radius: 999px;
            padding: 5px 9px;
            background: #e8fff6;
            color: #047857;
            font-size: .7rem;
            font-weight: 950;
            text-transform: uppercase;
        }

        .low-stock .storage-status {
            background: #fee4e2;
            color: #b42318;
        }

        .kitchen-storage-card h3,
        .kitchen-storage-card p,
        .kitchen-storage-card small {
            min-width: 0;
            overflow-wrap: anywhere;
        }

        .kitchen-storage-card h3 {
            margin: 8px 0 4px;
            color: var(--ink);
            font-size: 1.05rem;
        }

        .kitchen-storage-card p,
        .kitchen-storage-card small {
            margin: 0;
            color: var(--muted);
            font-size: .82rem;
            font-weight: 800;
        }

        .kitchen-storage-card-count {
            display: grid;
            justify-items: end;
            gap: 2px;
            text-align: right;
        }

        .kitchen-storage-card-count strong {
            color: var(--ink);
            font-size: 1.45rem;
            font-weight: 950;
            line-height: 1;
        }

        .kitchen-storage-card-count span {
            color: var(--muted);
            font-size: .8rem;
            font-weight: 900;
        }

        .kitchen-storage-card-actions {
            display: grid;
            gap: 8px;
        }

        .kitchen-storage-card-actions button {
            border: 0;
            border-radius: 10px;
            padding: 9px 11px;
            background: var(--ink);
            color: #fff;
            cursor: pointer;
            font-size: .78rem;
            font-weight: 900;
        }

        .kitchen-storage-card-actions button.danger {
            background: #fff1ed;
            color: #b42318;
        }

        @media (max-width: 1180px) {
            .kitchen-storage-toolbar,
            .kitchen-storage-list {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            .kitchen-storage-form,
            .kitchen-storage-card {
                grid-template-columns: 1fr 1fr;
            }

            .kitchen-storage-form label.wide,
            .kitchen-storage-form-actions,
            .kitchen-storage-card-main {
                grid-column: 1 / -1;
            }

            .kitchen-storage-card-count {
                justify-items: start;
                text-align: left;
            }
        }

        @media (max-width: 760px) {
            .kitchen-storage-toolbar,
            .kitchen-storage-form,
            .kitchen-storage-list,
            .kitchen-storage-card {
                grid-template-columns: 1fr;
            }

            .kitchen-storage-commandbar,
            .storage-modal-form .kitchen-storage-form-actions {
                justify-content: stretch;
            }

            .kitchen-storage-commandbar .setup-primary,
            .storage-modal-form .kitchen-storage-form-actions button {
                width: 100%;
            }
        }

        @media (max-width: 980px) {
            .reservation-kpis,
            .reservation-toolbar,
            .reservation-card,
            .kitchen-station-kpis,
            .kitchen-station-toolbar,
            .kitchen-lanes,
            .menu-engineering-grid {
                grid-template-columns: 1fr;
            }

            .reservation-header,
            .kitchen-station-header,
            .kitchen-display-actions,
            .reservation-form-actions {
                align-items: stretch;
                flex-direction: column;
            }

            .reservation-card-side {
                justify-items: start;
                text-align: left;
            }

            .reservation-card-actions {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            .kitchen-station-note {
                white-space: normal;
            }
        }

        @media (max-width: 620px) {
            .reservation-form,
            .reservation-card-actions {
                grid-template-columns: 1fr;
            }
        }

        .order-card {
            border: 1px solid rgba(23, 33, 27, .1);
            border-radius: 30px;
            padding: 20px;
            background: rgba(255, 250, 240, .9);
            box-shadow: var(--shadow);
        }

        .order-card-head {
            display: flex;
            justify-content: space-between;
            gap: 12px;
            align-items: start;
            margin-bottom: 16px;
        }

        .order-card h3 {
            margin: 0 0 4px;
            font-size: 1.2rem;
        }

        .order-senior-meta {
            display: grid;
            grid-template-columns: auto minmax(0, 1fr) auto;
            gap: 8px;
            align-items: center;
            border: 1px solid rgba(240, 109, 47, .18);
            border-radius: 14px;
            margin: -4px 0 14px;
            padding: 9px 10px;
            background: #fff7ed;
            color: #9a3412;
        }

        .order-senior-meta span {
            border-radius: 999px;
            padding: 5px 8px;
            background: #fed7aa;
            font-size: .72rem;
            font-weight: 900;
            text-transform: uppercase;
            white-space: nowrap;
        }

        .order-senior-meta strong,
        .order-senior-meta small {
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .order-senior-meta small {
            color: #c2410c;
            font-weight: 800;
        }

        .status-pill {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            border-radius: 999px;
            padding: 7px 10px;
            background: rgba(240, 109, 47, .12);
            color: var(--brand-dark);
            font-size: .72rem;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: .08em;
        }

        .status-icon {
            width: 42px;
            height: 28px;
            display: inline-grid;
            place-items: center;
            flex: 0 0 auto;
        }

        .status-icon svg {
            width: 42px;
            height: 28px;
            display: block;
            fill: none;
            stroke: currentColor;
            stroke-width: 3.6;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .kitchen-sketch {
            overflow: visible;
        }

        .kitchen-sketch circle {
            fill: currentColor;
            stroke: none;
        }

        .kitchen-sketch .sketch-steam,
        .kitchen-sketch .sketch-pan,
        .kitchen-sketch .sketch-flame {
            transform-box: fill-box;
            transform-origin: center;
        }

        .status-review {
            background: rgba(77, 107, 254, .13);
            color: #263fc7;
        }

        .status-prepared {
            background: rgba(240, 109, 47, .14);
            color: #a94717;
        }

        .status-ready {
            background: rgba(36, 134, 84, .14);
            color: #147044;
        }

        .status-review .sketch-steam {
            animation: kitchen-steam 1.6s ease-in-out infinite;
        }

        .status-review .sketch-pan {
            animation: kitchen-pan-review 1.8s ease-in-out infinite;
        }

        .status-review .sketch-flame {
            animation: kitchen-flame 1.1s ease-in-out infinite;
        }

        .status-prepared .sketch-steam {
            animation: kitchen-steam 1.3s ease-in-out infinite;
        }

        .status-prepared .sketch-pan {
            animation: kitchen-pan-toss 1.2s ease-in-out infinite;
        }

        .status-prepared .sketch-flame {
            animation: kitchen-flame 850ms ease-in-out infinite;
        }

        .status-ready .sketch-steam {
            animation: kitchen-steam 1.9s ease-in-out infinite;
        }

        .status-ready .sketch-pan {
            animation: kitchen-pan-ready 1.5s ease-in-out infinite;
        }

        .status-ready .sketch-flame {
            animation: kitchen-flame 1.4s ease-in-out infinite;
        }

        .kitchen-status-actions {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 8px;
            margin: 0 0 16px;
        }

        .kitchen-status-button {
            min-width: 0;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            border: 1px solid var(--line);
            border-radius: 12px;
            background: #fffdf7;
            color: var(--muted);
            padding: 9px 8px;
            cursor: pointer;
            font-size: .7rem;
            font-weight: 900;
            letter-spacing: .05em;
            text-transform: uppercase;
            transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
        }

        .kitchen-status-button:hover {
            border-color: #cdb98f;
            color: var(--ink);
            transform: translateY(-1px);
        }

        .kitchen-status-button.active,
        .kitchen-status-button:disabled {
            cursor: default;
            transform: none;
        }

        .kitchen-status-button.active {
            border-color: currentColor;
            background: rgba(255, 244, 220, .9);
            color: var(--brand-dark);
        }

        .kitchen-status-button .status-icon {
            width: 34px;
            height: 22px;
        }

        .kitchen-status-button .status-icon svg {
            width: 34px;
            height: 22px;
            stroke-width: 4;
        }

        .kitchen-status-button.active:nth-child(1) .sketch-steam {
            animation: kitchen-steam 1.6s ease-in-out infinite;
        }

        .kitchen-status-button.active:nth-child(1) .sketch-pan {
            animation: kitchen-pan-review 1.8s ease-in-out infinite;
        }

        .kitchen-status-button.active:nth-child(1) .sketch-flame {
            animation: kitchen-flame 1.1s ease-in-out infinite;
        }

        .kitchen-status-button.active:nth-child(2) .sketch-steam {
            animation: kitchen-steam 1.3s ease-in-out infinite;
        }

        .kitchen-status-button.active:nth-child(2) .sketch-pan {
            animation: kitchen-pan-toss 1.2s ease-in-out infinite;
        }

        .kitchen-status-button.active:nth-child(2) .sketch-flame {
            animation: kitchen-flame 850ms ease-in-out infinite;
        }

        .kitchen-status-button.active:nth-child(3) .sketch-steam {
            animation: kitchen-steam 1.9s ease-in-out infinite;
        }

        .kitchen-status-button.active:nth-child(3) .sketch-pan {
            animation: kitchen-pan-ready 1.5s ease-in-out infinite;
        }

        .kitchen-status-button.active:nth-child(3) .sketch-flame {
            animation: kitchen-flame 1.4s ease-in-out infinite;
        }

        @keyframes kitchen-steam {
            0%, 100% {
                transform: translateY(0);
                opacity: .48;
            }
            50% {
                transform: translateY(-4px);
                opacity: 1;
            }
        }

        @keyframes kitchen-pan-review {
            0%, 100% {
                transform: translateX(0);
            }
            50% {
                transform: translateX(2px);
            }
        }

        @keyframes kitchen-pan-toss {
            0%, 100% {
                transform: translate(0, 0) rotate(0deg);
            }
            45% {
                transform: translate(4px, -3px) rotate(-5deg);
            }
            65% {
                transform: translate(1px, 1px) rotate(3deg);
            }
        }

        @keyframes kitchen-pan-ready {
            0%, 100% {
                transform: translateX(0);
            }
            35% {
                transform: translateX(4px);
            }
            70% {
                transform: translateX(1px);
            }
        }

        @keyframes kitchen-flame {
            0%, 100% {
                transform: scaleY(.9) translateY(2px);
                opacity: .78;
            }
            50% {
                transform: scaleY(1.12) translateY(-1px);
                opacity: 1;
            }
        }

        .order-items {
            display: grid;
            gap: 8px;
            margin: 0;
            padding: 0;
            list-style: none;
        }

        .order-items li {
            display: flex;
            justify-content: space-between;
            gap: 12px;
            color: var(--muted);
            font-size: .92rem;
        }

        .order-item-note,
        .receipt-item small {
            display: block;
            margin-top: 4px;
            color: #64748b;
            font-size: .78rem;
            font-weight: 700;
            line-height: 1.35;
        }

        .order-total {
            display: flex;
            justify-content: space-between;
            gap: 12px;
            margin-top: 16px;
            border-top: 1px solid var(--line);
            padding-top: 14px;
            font-weight: 900;
        }

        .order-actions {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            margin-top: 16px;
        }

        .order-button {
            border: 0;
            border-radius: 16px;
            padding: 12px;
            cursor: pointer;
            font-weight: 900;
        }

        .order-button.danger {
            background: #fff1ed;
            color: #b42318;
        }

        .order-button.pay {
            background: var(--ink);
            color: #fff;
        }

        .empty-state {
            border: 1px dashed #d7c9ae;
            border-radius: 30px;
            padding: 28px;
            background: rgba(255, 250, 240, .72);
            color: var(--muted);
            text-align: center;
        }

        .reports-shell {
            display: grid;
            gap: 14px;
            min-height: 0;
        }

        .reports-header {
            display: flex;
            justify-content: space-between;
            gap: 16px;
            align-items: end;
            border: 1px solid rgba(23, 33, 27, .1);
            border-radius: 24px;
            padding: 16px;
            background: rgba(255, 250, 240, .88);
            box-shadow: var(--shadow);
        }

        .reports-header h2 {
            margin: 0;
            font-size: 1.35rem;
        }

        .reports-header p {
            margin: 6px 0 0;
            color: var(--muted);
        }

        .report-date-filter {
            display: grid;
            grid-template-columns: auto 150px auto 150px auto 150px auto;
            gap: 8px;
            align-items: center;
        }

        .report-date-filter label {
            color: var(--muted);
            font-size: .7rem;
            font-weight: 900;
            letter-spacing: .08em;
            text-transform: uppercase;
        }

        .report-date-filter input,
        .report-date-filter select {
            border: 1px solid var(--line);
            border-radius: 12px;
            padding: 8px 10px;
            background: #fffdf7;
            color: var(--ink);
            outline: none;
        }

        .report-kpi-grid,
        .report-breakdown-grid,
        .report-detail-grid {
            display: grid;
            gap: 12px;
        }

        .report-kpi-grid {
            grid-template-columns: repeat(4, minmax(0, 1fr));
        }

        .reports-workspace {
            display: grid;
            grid-template-columns: minmax(0, 1fr) 230px;
            gap: 12px;
            align-items: start;
            min-height: 0;
        }

        .reports-content {
            min-width: 0;
            min-height: 0;
        }

        .reports-content .report-panel {
            display: none;
        }

        .reports-content .report-panel.active {
            display: grid;
            grid-template-rows: auto minmax(0, 1fr) auto;
            min-height: 460px;
            max-height: 460px;
        }

        .reports-nav {
            display: grid;
            gap: 8px;
            align-content: start;
            border: 1px solid rgba(23, 33, 27, .1);
            border-radius: 22px;
            padding: 10px;
            background: rgba(255, 250, 240, .9);
            box-shadow: var(--shadow);
        }

        .report-nav-button {
            width: 100%;
            border: 0;
            border-radius: 14px;
            padding: 11px 12px;
            background: rgba(255, 253, 248, .78);
            color: var(--muted);
            cursor: pointer;
            font-weight: 900;
            text-align: left;
            box-shadow: inset 0 0 0 1px rgba(234, 223, 199, .72);
        }

        .report-nav-button:hover,
        .report-nav-button.active {
            background: var(--ink);
            color: #fff;
            box-shadow: 0 10px 22px rgba(23, 33, 27, .14);
        }

        .report-breakdown-grid {
            grid-template-columns: 1.1fr .95fr .95fr;
        }

        .report-detail-grid {
            grid-template-columns: 1fr;
        }

        .report-kpi,
        .report-panel {
            border: 1px solid rgba(23, 33, 27, .1);
            border-radius: 22px;
            background: rgba(255, 250, 240, .9);
            box-shadow: var(--shadow);
        }

        .report-kpi {
            padding: 14px;
        }

        .report-kpi span,
        .report-panel-head span {
            color: var(--muted);
            font-size: .72rem;
            font-weight: 900;
            letter-spacing: .08em;
            text-transform: uppercase;
        }

        .report-kpi strong {
            display: block;
            margin-top: 7px;
            font-size: 1.35rem;
            line-height: 1;
        }

        .report-kpi small {
            display: block;
            margin-top: 7px;
            color: var(--muted);
        }

        .report-panel {
            min-width: 0;
            overflow: hidden;
        }

        .reports-content .report-panel.active > .report-lines,
        .reports-content .report-panel.active > .report-list,
        .reports-content .report-panel.active > .shift-sales-review,
        .reports-content .report-panel.active > .transaction-table-wrap {
            min-height: 0;
            overflow-y: auto;
        }

        .reports-content .report-panel.active > .report-lines,
        .reports-content .report-panel.active > .report-list,
        .reports-content .report-panel.active > .shift-sales-review {
            align-content: start;
        }

        .report-panel-head {
            display: flex;
            justify-content: space-between;
            gap: 12px;
            align-items: center;
            width: 100%;
            border: 0;
            border-bottom: 1px solid var(--line);
            padding: 13px 14px;
            background: transparent;
            color: var(--ink);
            cursor: pointer;
            text-align: left;
        }

        .report-head-copy strong,
        .report-head-copy small {
            display: block;
        }

        .report-head-copy strong {
            margin: 0;
            font-size: 1rem;
        }

        .report-head-copy small {
            margin-top: 3px;
            color: var(--muted);
            font-size: .72rem;
            font-weight: 900;
            letter-spacing: .08em;
            text-transform: uppercase;
        }

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

        .report-export-button {
            border: 1px solid var(--line);
            border-radius: 8px;
            background: #fffdf7;
            color: var(--ink);
            padding: 7px 10px;
            font-size: .72rem;
            font-weight: 900;
            letter-spacing: .04em;
            text-transform: uppercase;
            cursor: pointer;
            transition: background .16s ease, border-color .16s ease, transform .16s ease;
        }

        .report-export-button:hover {
            border-color: #cdb98f;
            background: #fff4dc;
            transform: translateY(-1px);
        }

        .report-arrow {
            width: 28px;
            height: 28px;
            display: grid;
            place-items: center;
            border-radius: 999px;
            background: rgba(23, 33, 27, .08);
            color: var(--ink);
            transition: transform .16s ease, background .16s ease;
        }

        .report-panel:not(.collapsed) .report-arrow {
            transform: rotate(0deg);
        }

        .report-panel.collapsed .report-arrow {
            transform: rotate(-90deg);
        }

        .report-panel.collapsed .report-panel-head {
            border-bottom: 0;
        }

        .report-panel.collapsed .report-panel-body {
            display: none;
        }

        .report-lines,
        .report-list {
            display: grid;
            gap: 8px;
            padding: 12px 14px 14px;
        }

        .shift-sales-review {
            min-height: 0;
            display: grid;
            grid-template-rows: auto minmax(0, 1fr);
            gap: 12px;
            overflow: hidden;
            padding: 14px;
        }

        .shift-sales-kpis {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 10px;
        }

        .shift-sales-kpis article {
            display: grid;
            gap: 5px;
            border: 1px solid var(--line);
            border-radius: 14px;
            background: #fffdf7;
            padding: 12px;
        }

        .shift-sales-kpis span,
        .shift-sales-kpis small,
        .shift-sales-row span {
            color: var(--muted);
        }

        .shift-sales-kpis span,
        .shift-sales-row span {
            font-size: .68rem;
            font-weight: 900;
            letter-spacing: .08em;
            text-transform: uppercase;
        }

        .shift-sales-kpis strong {
            font-size: 1.05rem;
        }

        .shift-sales-list {
            min-height: 0;
            display: grid;
            gap: 10px;
            align-content: start;
            overflow-y: auto;
            scrollbar-width: thin;
        }

        .shift-sales-row {
            display: grid;
            grid-template-columns: minmax(170px, 1.3fr) repeat(4, minmax(95px, .8fr));
            gap: 12px;
            align-items: center;
            border: 1px solid var(--line);
            border-radius: 14px;
            background: #fffdf7;
            padding: 12px;
        }

        .shift-sales-row strong,
        .shift-sales-row b,
        .shift-sales-row span {
            display: block;
        }

        .shift-sales-row b {
            margin-top: 3px;
        }

        .report-line,
        .report-list-row {
            display: flex;
            justify-content: space-between;
            gap: 14px;
            align-items: center;
        }

        .report-line span,
        .report-list-row span {
            color: var(--muted);
        }

        .report-line.grand {
            border-top: 1px solid var(--line);
            margin-top: 4px;
            padding-top: 10px;
            color: var(--ink);
            font-size: 1.05rem;
        }

        .report-list-row {
            border-radius: 15px;
            padding: 10px;
            background: rgba(255, 253, 248, .76);
            box-shadow: inset 0 0 0 1px rgba(234, 223, 199, .72);
        }

        .report-list-row strong,
        .report-list-row span {
            display: block;
        }

        .report-list-row span {
            margin-top: 3px;
            font-size: .8rem;
        }

        .report-empty,
        .report-empty-cell {
            color: var(--muted);
            text-align: center;
        }

        .report-empty {
            border: 1px dashed #d7c9ae;
            border-radius: 15px;
            padding: 16px;
        }

        .report-transactions {
            min-width: 0;
        }

        .transaction-table-wrap {
            max-height: none;
            overflow: auto;
        }

        .transaction-table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
            font-size: .82rem;
        }

        .transaction-table th,
        .transaction-table td {
            border-bottom: 1px solid var(--line);
            padding: 10px;
            text-align: left;
            vertical-align: top;
            white-space: nowrap;
        }

        .transaction-table th {
            position: sticky;
            top: 0;
            z-index: 1;
            background: #fff6e3;
            color: var(--muted);
            font-size: .68rem;
            font-weight: 900;
            letter-spacing: .08em;
            text-transform: uppercase;
        }

        .transaction-table small {
            color: var(--muted);
        }

        .report-pagination {
            border-top: 1px solid var(--line);
            margin: 0;
            padding: 10px 14px;
        }

        .placeholder-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 18px;
        }

        .placeholder-card {
            min-height: 180px;
            border: 1px solid rgba(23, 33, 27, .1);
            border-radius: 30px;
            padding: 22px;
            background: rgba(255, 250, 240, .86);
            box-shadow: var(--shadow);
        }

        .placeholder-card span {
            display: inline-flex;
            margin-bottom: 18px;
            border-radius: 999px;
            padding: 8px 12px;
            background: rgba(240, 109, 47, .12);
            color: var(--brand-dark);
            font-size: .78rem;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: .08em;
        }

        .placeholder-card h2 {
            margin: 0 0 8px;
            font-size: 1.35rem;
        }

        .placeholder-card p {
            margin: 0;
            color: var(--muted);
            line-height: 1.5;
        }

        @media (max-width: 920px) {
            .layout {
                grid-template-columns: 1fr;
                min-height: auto;
            }

            .reports-workspace {
                grid-template-columns: 1fr;
            }

            .reports-header {
                align-items: stretch;
                flex-direction: column;
            }

            .report-date-filter {
                grid-template-columns: auto 1fr;
            }

            .report-date-filter .page-button {
                grid-column: 1 / -1;
            }

            .reports-nav {
                order: -1;
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            .reports-content .report-panel.active {
                min-height: 420px;
                max-height: 420px;
            }

            .shift-sales-kpis,
            .shift-sales-row {
                grid-template-columns: 1fr;
            }

            .cart {
                position: static;
            }

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

            .placeholder-grid {
                grid-template-columns: 1fr;
            }

            .ongoing-list {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 680px) {
            .shell {
                padding: 18px;
            }

            .topbar {
                align-items: stretch;
                flex-direction: column;
            }

            .ticket-number {
                text-align: left;
            }

            .workspace-tabs {
                width: 100%;
                overflow-x: auto;
            }

            .tab-button {
                min-width: 120px;
            }

            .toast {
                top: 16px;
                right: 16px;
            }

            .payment-layout {
                grid-template-columns: 1fr;
            }

            .payment-head,
            .payment-actions {
                flex-direction: column;
            }

            .items-grid {
                grid-template-columns: 1fr;
            }

            .item-card {
                grid-template-columns: 96px 1fr;
                align-items: center;
                gap: 12px;
                padding: 10px;
            }

            .item-image {
                width: 96px;
                height: 86px;
                border-radius: 16px;
            }

            .item-content {
                padding: 0;
            }

            .item-action {
                grid-column: 1 / -1;
                align-items: center;
            }

            .menu-toolbar {
                grid-template-columns: 1fr;
            }

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

            .category-list {
                grid-template-columns: 1fr;
            }

            .panel {
                border-radius: 26px;
            }

            .reports-nav {
                grid-template-columns: 1fr;
            }
        }

        /* Compact POS pass: tighter spacing and clearer heading hierarchy. */
        :root {
            --shadow: 0 12px 32px rgba(52, 37, 18, .12);
            --radius-lg: 22px;
            --radius-md: 16px;
            --radius-sm: 12px;
        }

        body {
            font-family: "Segoe UI", Tahoma, sans-serif;
            font-size: 14px;
            line-height: 1.35;
        }

        h1,
        h2,
        h3,
        .brand h1,
        .section-title h2,
        .cart-head h2,
        .ongoing-header h2,
        .placeholder-card h2 {
            font-family: "Bahnschrift", "Segoe UI Semibold", "Segoe UI", sans-serif;
            font-weight: 700;
            letter-spacing: -.025em;
            line-height: 1.05;
        }

        .shell {
            padding: 16px;
        }

        .topbar {
            margin-bottom: 12px;
        }

        .topbar-actions {
            gap: 8px;
        }

        .brand h1 {
            font-size: clamp(1.15rem, 1.4vw, 1.7rem);
            letter-spacing: -.035em;
        }

        .workspace-tabs {
            gap: 6px;
            margin-bottom: 12px;
            border-radius: 18px;
            padding: 5px;
            box-shadow: 0 8px 20px rgba(52, 37, 18, .08);
        }

        .tab-button {
            min-width: 108px;
            border-radius: 13px;
            padding: 9px 14px;
            font-size: .88rem;
            font-weight: 800;
        }

        .layout {
            grid-template-columns: 320px 250px minmax(0, 1fr);
            gap: 14px;
            min-height: calc(100vh - 132px);
        }

        .panel,
        .order-card,
        .placeholder-card,
        .payment-modal {
            border-radius: var(--radius-lg);
        }

        .menu,
        .categories {
            padding: 14px;
        }

        .section-title {
            gap: 10px;
            margin-bottom: 10px;
        }

        .section-title h2 {
            font-size: 1.05rem;
        }

        .section-title p {
            font-size: .82rem;
        }

        .menu-count {
            padding: 5px 9px;
            font-size: .76rem;
        }

        .category-list,
        .cart-lines,
        .order-items {
            gap: 8px;
        }

        .category-button {
            grid-template-columns: 36px 1fr auto;
            gap: 9px;
            border-radius: var(--radius-md);
            padding: 9px;
        }

        .category-icon,
        .category-image {
            width: 36px;
            height: 36px;
            border-radius: 12px;
        }

        .category-name {
            font-size: .92rem;
        }

        .items-grid {
            gap: 10px;
        }

        .item-card {
            border-radius: 18px;
        }

        .item-image {
            height: 96px;
            border-radius: 18px 18px 0 0;
        }

        .item-content {
            padding: 10px 10px 6px;
        }

        .item-category {
            margin-bottom: 6px;
            padding: 4px 7px;
            font-size: .66rem;
        }

        .item-name {
            margin-bottom: 3px;
            font-size: .95rem;
            line-height: 1.15;
        }

        .item-meta {
            font-size: .8rem;
        }

        .item-action {
            padding: 0 10px 10px;
        }

        .add-pill {
            width: 34px;
            height: 34px;
            border-radius: 12px;
        }

        .add-pill svg {
            width: 17px;
            height: 17px;
        }

        .menu-toolbar,
        .order-details {
            gap: 9px;
            margin-bottom: 10px;
        }

        .order-details {
            border-radius: 18px;
            padding: 10px;
        }

        .field {
            gap: 5px;
        }

        .field label,
        .payment-label,
        .cash-box label {
            font-size: .68rem;
            letter-spacing: .07em;
        }

        .field input,
        .field select,
        .search,
        .customer,
        .payment-select,
        .cash-box input {
            border-radius: var(--radius-sm);
            padding: 9px 10px;
        }

        .pagination {
            gap: 8px;
            margin-top: 10px;
            font-size: .8rem;
        }

        .page-button {
            border-radius: 11px;
            padding: 8px 10px;
            font-size: .8rem;
        }

        .cart {
            top: 12px;
        }

        .cart-head {
            padding: 14px;
        }

        .cart-head h2 {
            margin-bottom: 4px;
            font-size: 1.08rem;
        }

        .order-number-card {
            margin-top: 10px;
            border-radius: 14px;
            padding: 9px 10px;
        }

        .order-number-card strong {
            font-size: .92rem;
        }

        .cart-body {
            padding: 12px;
        }

        .empty {
            min-height: 145px;
            border-radius: 16px;
            padding: 14px;
        }

        .line {
            gap: 8px;
            border-radius: 14px;
            padding: 9px;
        }

        .line small {
            margin-top: 2px;
            font-size: .78rem;
        }

        .qty {
            gap: 6px;
        }

        .qty button {
            width: 26px;
            height: 26px;
            border-radius: 9px;
        }

        .totals {
            gap: 7px;
            margin: 12px 0;
            padding: 12px 0;
        }

        .total-row.grand {
            font-size: 1.18rem;
        }

        .checkout {
            border-radius: 15px;
            padding: 12px;
        }

        .notice {
            margin-top: 9px;
            border-radius: 12px;
            padding: 9px;
        }

        .ongoing-header {
            gap: 12px;
            margin-bottom: 12px;
        }

        .ongoing-header h2 {
            font-size: 1.3rem;
        }

        .ongoing-header p {
            margin-top: 4px;
            font-size: .86rem;
        }

        .ongoing-list,
        .placeholder-grid {
            gap: 12px;
        }

        .order-card,
        .placeholder-card {
            padding: 14px;
        }

        .order-card-head {
            margin-bottom: 10px;
        }

        .order-card h3 {
            font-size: 1rem;
        }

        .status-pill,
        .placeholder-card span {
            padding: 5px 8px;
            font-size: .66rem;
        }

        .kitchen-status-actions {
            gap: 6px;
            margin-bottom: 12px;
        }

        .kitchen-status-button {
            border-radius: 10px;
            padding: 8px 6px;
            font-size: .64rem;
        }

        .kitchen-status-button .status-icon,
        .kitchen-status-button .status-icon svg {
            width: 30px;
            height: 20px;
        }

        .order-total,
        .order-actions {
            margin-top: 11px;
        }

        .order-total {
            padding-top: 10px;
        }

        .order-button {
            border-radius: 12px;
            padding: 9px;
        }

        .empty-state {
            border-radius: 18px;
            padding: 18px;
        }

        .placeholder-card {
            min-height: 128px;
        }

        .placeholder-card span {
            margin-bottom: 10px;
        }

        .placeholder-card h2 {
            font-size: 1.05rem;
        }

        .placeholder-card p {
            line-height: 1.4;
        }

        .modal-backdrop {
            padding: 16px;
        }

        .payment-head {
            padding: 16px;
        }

        .payment-layout {
            gap: 12px;
            padding: 14px;
        }

        .payment-summary,
        .payment-form {
            border-radius: 18px;
            padding: 12px;
        }

        .payment-row {
            padding: 9px 0;
        }

        .payment-row.grand {
            font-size: 1.1rem;
        }

        .payment-select,
        .payment-options {
            margin-bottom: 11px;
        }

        .payment-option,
        .change-card {
            border-radius: 13px;
            padding: 10px;
        }

        .payment-actions {
            padding: 12px 14px;
        }

        @media (max-width: 1180px) {
            .layout {
                grid-template-columns: 300px 230px minmax(0, 1fr);
            }

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

        @media (max-width: 920px) {
            .layout {
                grid-template-columns: 1fr;
                min-height: auto;
            }

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

        @media (max-width: 680px) {
            .shell {
                padding: 10px;
            }

            .tab-button {
                min-width: 98px;
                padding: 8px 11px;
            }

            .menu,
            .categories,
            .cart-body {
                padding: 10px;
            }

            .items-grid,
            .category-list {
                grid-template-columns: 1fr;
            }
        }

        /* App navigation shell. */
        .app-shell {
            min-height: 100vh;
            display: grid;
            grid-template-columns: 264px minmax(0, 1fr);
            background: #f7f5ef;
        }

        .app-sidebar {
            position: sticky;
            top: 0;
            height: 100vh;
            display: flex;
            flex-direction: column;
            gap: 18px;
            overflow-y: auto;
            background: #1f1c31;
            color: #fff;
            padding: 20px 12px 18px;
            box-shadow: inset -1px 0 rgba(255, 255, 255, .08);
            scrollbar-width: thin;
        }

        .sidebar-brand {
            border-bottom: 1px solid rgba(255, 255, 255, .1);
            margin: 0 4px 18px;
            padding: 0 0 18px;
        }

        .sidebar-brand span {
            display: block;
            margin-bottom: 4px;
            color: #68f0b1;
            font-size: .68rem;
            font-weight: 800;
            letter-spacing: .12em;
            text-transform: uppercase;
        }

        .sidebar-brand h1 {
            margin: 0;
            color: #fff;
            font-size: 1.35rem;
            font-weight: 800;
            letter-spacing: -.03em;
            line-height: 1;
        }

        .sidebar-profile {
            display: grid;
            grid-template-columns: 42px 1fr;
            gap: 12px;
            align-items: center;
            border-bottom: 1px solid rgba(255, 255, 255, .1);
            padding: 0 4px 18px;
        }

        .profile-mark {
            width: 42px;
            height: 42px;
            display: grid;
            place-items: center;
            border-radius: 13px;
            background: #353148;
            color: #68f0b1;
            font-weight: 900;
        }

        .sidebar-profile strong,
        .sidebar-profile span {
            display: block;
            min-width: 0;
        }

        .sidebar-profile strong {
            font-size: 1rem;
            letter-spacing: -.01em;
        }

        .sidebar-profile span {
            margin-top: 6px;
            color: #35f4a5;
            font-size: .76rem;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .main-nav {
            display: grid;
            gap: 8px;
        }

        .logout-form {
            margin-top: 16px;
        }

        .main-nav-link,
        .counter-head,
        .side-tab {
            width: 100%;
            border: 0;
            color: inherit;
            cursor: pointer;
            text-align: left;
        }

        .main-nav-link {
            display: grid;
            grid-template-columns: 38px 1fr;
            gap: 9px;
            align-items: center;
            border-radius: 10px;
            padding: 7px 10px;
            background: transparent;
            font-size: .84rem;
            font-weight: 700;
        }

        .logout-form .main-nav-link {
            grid-template-columns: 1fr;
            text-align: center;
        }

        .main-nav-link:hover,
        .main-nav-link.active-muted {
            background: #2d2a42;
        }

        .nav-icon {
            width: 30px;
            height: 30px;
            display: grid;
            place-items: center;
            border-radius: 9px;
            background: #37334a;
            color: #d8d5e9;
        }

        .nav-icon svg {
            width: 15px;
            height: 15px;
            fill: currentColor;
        }

        .counter-nav {
            border-radius: 13px;
            background: #2b2840;
            padding: 7px;
            box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
        }

        .counter-head {
            display: grid;
            grid-template-columns: 36px 1fr auto;
            gap: 9px;
            align-items: center;
            border-radius: 10px;
            padding: 8px;
            background: #fff;
            color: #221f35;
        }

        .counter-head strong,
        .counter-head small {
            display: block;
        }

        .counter-head strong {
            font-size: .86rem;
        }

        .counter-head small {
            margin-top: 2px;
            color: #62708c;
            font-size: .64rem;
        }

        .counter-head b {
            color: #43527a;
            font-size: .9rem;
            font-weight: 800;
            transition: transform .18s ease;
        }

        .counter-icon {
            background: #d2fae8;
            color: #099e68;
        }

        .counter-nav-groups {
            display: grid;
        }

        .counter-nav.collapsed .counter-nav-groups {
            display: none;
        }

        .counter-nav.collapsed .counter-head b {
            transform: rotate(-90deg);
        }

        .nav-group {
            display: grid;
            gap: 4px;
            padding: 12px 8px 4px 24px;
        }

        .nav-group p {
            margin: 0 0 5px;
            color: #9aa0c6;
            font-size: .66rem;
            font-weight: 900;
            letter-spacing: .16em;
            text-transform: uppercase;
        }

        .side-tab {
            position: relative;
            border-radius: 8px;
            padding: 8px 8px 8px 14px;
            background: transparent;
            font-size: .79rem;
            line-height: 1.2;
        }

        .side-tab::before {
            content: "";
            position: absolute;
            left: 0;
            top: 50%;
            width: 4px;
            height: 4px;
            border-radius: 50%;
            background: #71f4b5;
            transform: translateY(-50%);
        }

        .side-tab:hover,
        .side-tab.active {
            background: rgba(255, 255, 255, .08);
            color: #fff;
        }

        .app-shell > .shell {
            width: 100%;
            min-width: 0;
            padding: 16px;
            background:
                linear-gradient(90deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .35)),
                #f7f5ef;
        }

        .app-shell .topbar {
            min-height: 44px;
            align-items: center;
        }

        .app-shell .topbar-actions {
            flex-wrap: wrap;
            justify-content: flex-end;
        }

        .app-shell .workspace-tabs {
            position: absolute;
            width: 1px;
            height: 1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
        }

        @media (min-width: 921px) {
            .app-shell {
                height: 100vh;
                overflow: hidden;
            }

            .app-shell > .shell {
                height: 100vh;
            }

            .app-shell #ordersPanel.active,
            .app-shell .layout {
                min-height: 0;
            }

            .app-shell .layout {
                height: calc(100vh - 76px);
            }

            .app-shell .ongoing-list {
                max-height: calc(100vh - 132px);
            }
        }

        @media (max-width: 920px) {
            .app-shell {
                grid-template-columns: 248px minmax(680px, 1fr);
                overflow-x: auto;
            }

            .app-sidebar {
                position: sticky;
                left: 0;
                z-index: 12;
                min-height: 100vh;
            }

            .main-nav,
            .counter-nav {
                display: grid;
            }
        }

        @media (max-width: 680px) {
            .app-shell {
                grid-template-columns: 238px minmax(650px, 1fr);
            }

            .app-sidebar {
                padding: 14px 10px;
            }

            .nav-group {
                padding-left: 12px;
            }

            .app-shell > .shell {
                padding: 10px;
            }
        }

        .close-transaction-button {
            margin-left: auto;
            border: 0;
            border-radius: 12px;
            padding: 11px 15px;
            background: #1f1c31;
            color: #fff;
            cursor: pointer;
            font-weight: 900;
            box-shadow: 0 12px 24px rgba(31, 28, 49, .16);
        }

        .close-transaction-button:hover {
            background: #2f2a48;
        }

        .shift-close-modal {
            width: min(1080px, 100%);
            max-height: calc(100vh - 32px);
            display: flex;
            flex-direction: column;
            border: 1px solid rgba(255, 255, 255, .44);
            border-radius: 24px;
            background: #fffdf8;
            box-shadow: 0 30px 90px rgba(23, 33, 27, .32);
            overflow: hidden;
        }

        .shift-close-head {
            display: flex;
            justify-content: space-between;
            gap: 18px;
            align-items: flex-start;
            padding: 20px;
            background: linear-gradient(135deg, #1f1c31, #333052);
            color: #fff;
        }

        .shift-close-head h2,
        .shift-close-head p {
            margin: 0;
        }

        .shift-close-head p {
            margin-top: 5px;
            color: rgba(255, 255, 255, .72);
        }

        .shift-close-meta {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 12px;
            border-bottom: 1px solid var(--line);
            padding: 14px;
            background: #fff8ea;
        }

        .shift-close-meta div {
            display: grid;
            gap: 6px;
            border: 1px solid var(--line);
            border-radius: 12px;
            background: #fffdf7;
            padding: 11px 12px;
        }

        .shift-close-meta span,
        .shift-open-body span {
            color: var(--muted);
            font-size: .68rem;
            font-weight: 900;
            letter-spacing: .08em;
            text-transform: uppercase;
        }

        .shift-close-meta strong {
            font-size: .95rem;
        }

        .shift-open-modal {
            width: min(520px, 100%);
            border-radius: 24px;
            background: #fffdf8;
            box-shadow: 0 30px 90px rgba(23, 33, 27, .32);
            overflow: hidden;
        }

        .shift-open-body {
            display: grid;
            gap: 12px;
            padding: 18px;
        }

        .shift-open-body label {
            display: grid;
            gap: 7px;
        }

        .shift-open-body input,
        .shift-open-body select {
            width: 100%;
            border: 1px solid var(--line);
            border-radius: 12px;
            background: #fffdf7;
            padding: 10px 11px;
            outline: none;
        }

        .shift-close-body {
            min-height: 0;
            overflow-y: auto;
            padding: 14px;
        }

        .shift-summary-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 12px;
            margin-bottom: 12px;
        }

        .shift-summary-grid article,
        .shift-close-card {
            border: 1px solid var(--line);
            border-radius: 16px;
            background: #fffdf7;
            box-shadow: 0 10px 24px rgba(52, 37, 18, .07);
        }

        .shift-summary-grid article {
            display: grid;
            gap: 6px;
            padding: 14px;
        }

        .shift-summary-grid span,
        .shift-summary-grid small,
        .shift-card-head small,
        .shift-list-row span {
            color: var(--muted);
        }

        .shift-summary-grid span {
            font-size: .74rem;
            font-weight: 900;
            letter-spacing: .08em;
            text-transform: uppercase;
        }

        .shift-summary-grid strong {
            font-size: 1.18rem;
        }

        .shift-close-columns {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 12px;
        }

        .shift-close-card {
            overflow: hidden;
        }

        .shift-card-head {
            display: flex;
            justify-content: space-between;
            gap: 12px;
            border-bottom: 1px solid var(--line);
            padding: 12px 14px;
            background: #fff6e3;
        }

        .shift-card-head strong,
        .shift-card-head small {
            display: block;
        }

        .shift-list,
        .shift-money-lines {
            display: grid;
            gap: 0;
            padding: 8px 14px;
        }

        .shift-list-row,
        .shift-money-lines div {
            display: flex;
            justify-content: space-between;
            gap: 14px;
            align-items: center;
            border-bottom: 1px solid rgba(234, 223, 199, .72);
            padding: 10px 0;
        }

        .shift-list-row:last-child,
        .shift-money-lines div:last-child {
            border-bottom: 0;
        }

        .shift-list-row strong,
        .shift-list-row span {
            display: block;
        }

        .shift-list-row span {
            margin-top: 2px;
            font-size: .78rem;
        }

        .shift-money-lines .grand {
            color: var(--ink);
            font-size: 1rem;
            font-weight: 900;
        }

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

        .shift-close-actions {
            display: flex;
            justify-content: flex-end;
            gap: 10px;
            border-top: 1px solid var(--line);
            padding: 12px 14px;
            background: #fff8ea;
        }

        @media (max-width: 920px) {
            .shift-close-meta,
            .shift-summary-grid,
            .shift-close-columns {
                grid-template-columns: 1fr;
            }
        }

        @media (max-height: 820px) {
            #receiptModal {
                place-items: start center;
            }

            .receipt-modal {
                margin: 0;
            }
        }

        @media (max-width: 1180px) {
            .dashboard-kpi-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            .dashboard-workspace {
                grid-template-columns: 1fr;
            }

            .dashboard-column-nav {
                position: static;
                display: flex;
                overflow-x: auto;
            }

            .dashboard-section-tab {
                flex: 0 0 auto;
                width: auto;
                white-space: nowrap;
            }

            .dashboard-report-grid {
                grid-template-columns: 1fr 1fr;
            }

            .dashboard-analytics-grid {
                grid-template-columns: 1fr 1fr;
            }

            .dashboard-toolkit-grid {
                grid-template-columns: 1fr;
            }

            .dashboard-hour-card {
                grid-column: 1 / -1;
            }

            .dashboard-chart-card {
                grid-column: 1 / -1;
            }
        }

        @media (max-width: 760px) {
            .dashboard-report-head {
                display: grid;
            }

            .dashboard-report-head .page-button {
                width: 100%;
            }

            .dashboard-kpi-grid,
            .dashboard-report-grid,
            .dashboard-analytics-grid,
            .dashboard-toolkit-grid {
                grid-template-columns: 1fr;
            }

            .dashboard-column-nav {
                border-radius: 14px;
                padding: 8px;
            }

            .dashboard-chart-card {
                grid-column: auto;
            }

            .dashboard-hour-card {
                grid-column: auto;
            }

            .dashboard-funnel-row {
                grid-template-columns: 1fr;
                gap: 6px;
            }

            .dashboard-product-row {
                grid-template-columns: 30px minmax(0, 1fr);
            }

            .dashboard-product-row b {
                grid-column: 2;
            }

            .dashboard-filter-actions {
                justify-content: stretch;
            }

            .dashboard-filter-actions > * {
                flex: 1 1 auto;
            }

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

            .dashboard-line-chart svg {
                min-height: 210px;
            }

            .dashboard-pareto-row {
                grid-template-columns: 1fr;
            }

            .dashboard-pareto-row em {
                text-align: left;
            }
        }

        @media print {
            body * {
                visibility: hidden;
            }

            body:not(.receipt-printing) #receiptModal,
            body:not(.receipt-printing) #receiptModal * {
                visibility: visible;
            }

            body:not(.receipt-printing) #receiptModal {
                position: static;
                display: block !important;
                padding: 0;
                background: #fff;
                backdrop-filter: none;
            }

            body:not(.receipt-printing) .receipt-modal {
                width: 80mm;
                margin: 0 auto;
            }

            body:not(.receipt-printing) .receipt-paper {
                border: 0;
                border-radius: 0;
                box-shadow: none;
            }

            body:not(.receipt-printing) .receipt-actions {
                display: none;
            }

            body.shift-close-print #shiftCloseModal,
            body.shift-close-print #shiftCloseModal * {
                visibility: visible;
            }

            body.shift-close-print #shiftCloseModal {
                position: static;
                display: block !important;
                padding: 0;
                background: #fff;
                backdrop-filter: none;
            }

            body.shift-close-print .shift-close-modal {
                width: 100%;
                max-height: none;
                border: 0;
                border-radius: 0;
                box-shadow: none;
            }

            body.shift-close-print .shift-close-actions,
            body.shift-close-print .modal-close {
                display: none;
            }
        }

        /* Desktop viewport fit: avoid page scrolling; scroll only dense content areas. */
        @media (min-width: 921px) {
            html,
            body {
                height: 100%;
                overflow: hidden;
            }

            .shell {
                height: 100vh;
                min-height: 0;
                overflow: hidden;
            }

            #ordersPanel.active {
                flex: 1;
                min-height: 0;
                overflow: hidden;
            }

            .layout {
                height: 100%;
                min-height: 0;
                overflow: hidden;
            }

            .panel {
                min-height: 0;
                overflow: hidden;
            }

            .cart,
            .menu,
            .categories {
                position: relative;
                top: auto;
                min-height: 0;
                max-height: 100%;
            }

            .cart-body,
            .menu,
            .categories {
                min-height: 0;
            }

            .cart {
                display: grid;
                grid-template-rows: auto minmax(0, 1fr);
            }

            .cart-body {
                display: grid;
                grid-template-rows: minmax(0, 1fr) auto auto auto;
                align-content: stretch;
                overflow: hidden;
            }

            .cart-lines,
            .category-list,
            .items,
            .ongoing-list {
                min-height: 0;
                overflow-y: auto;
                overscroll-behavior: contain;
                scrollbar-width: thin;
            }

            .cart-lines {
                max-height: none;
                align-content: start;
                flex: initial;
            }

            .category-list {
                max-height: calc(100vh - 210px);
            }

            .items {
                display: flex;
                flex-direction: column;
                overflow: hidden;
            }

            .items-grid {
                grid-template-columns: repeat(3, minmax(0, 1fr));
                overflow-y: auto;
                padding-right: 2px;
            }

            .ongoing-list {
                max-height: calc(100vh - 92px);
                padding-right: 2px;
            }
        }

        @media (min-width: 1280px) and (min-height: 760px) {
            .items-grid {
                grid-template-columns: repeat(3, minmax(0, 1fr));
            }

            .item-image {
                height: 104px;
            }
        }

        @media (min-width: 1440px) and (min-height: 820px) {
            .items-grid {
                grid-template-columns: repeat(4, minmax(0, 1fr));
            }
        }

        @media (max-height: 720px) and (min-width: 921px) {
            .shell {
                padding: 10px;
            }

            .topbar {
                margin-bottom: 8px;
            }

            .workspace-tabs {
                margin-bottom: 8px;
            }

            .layout {
                height: 100%;
                grid-template-columns: 300px 225px minmax(0, 1fr);
                gap: 10px;
            }

            .menu,
            .categories,
            .cart-body {
                padding: 10px;
            }

            .cart-head {
                padding: 11px;
            }

            .order-number-card {
                margin-top: 7px;
                padding: 7px 9px;
            }

            .section-title,
            .menu-toolbar,
            .order-details {
                margin-bottom: 7px;
            }

            .item-image {
                height: 76px;
            }

            .item-content {
                padding: 7px 8px 4px;
            }

            .item-category {
                display: none;
            }

            .item-action {
                padding: 0 8px 8px;
            }

            .pagination {
                margin-top: 7px;
            }

            .cart-lines {
                max-height: none;
            }

            .empty {
                min-height: 104px;
            }

            .totals {
                margin: 8px 0;
                padding: 9px 0;
            }

            .reports-content .report-panel.active {
                min-height: 360px;
                max-height: 360px;
            }
        }

        /* Phone and tablet order flow: turn the POS workspace into a real stacked layout. */
        @media (max-width: 920px) {
            html,
            body {
                min-width: 0;
                overflow-x: hidden;
            }

            .app-shell {
                display: block;
                min-width: 0;
                overflow-x: hidden;
            }

            .app-sidebar {
                position: static;
                height: auto;
                min-height: 0;
                max-height: none;
                padding: 14px 12px;
                gap: 12px;
            }

            .sidebar-brand {
                margin-bottom: 8px;
                padding-bottom: 12px;
            }

            .main-nav {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 7px;
            }

            .main-nav-link {
                min-width: 0;
                grid-template-columns: 30px minmax(0, 1fr);
                padding: 8px;
            }

            .counter-nav {
                padding: 8px;
            }

            .counter-nav-groups {
                grid-template-columns: repeat(3, minmax(0, 1fr));
                gap: 8px;
            }

            .nav-group {
                padding: 8px 4px 2px;
            }

            .side-tab {
                padding: 8px 8px 8px 12px;
            }

            .app-shell > .shell {
                min-width: 0;
                padding: 12px;
            }

            .app-shell #ordersPanel.active,
            .app-shell .layout,
            #ordersPanel.active,
            .layout {
                height: auto;
                min-height: 0;
                overflow: visible;
            }

            .layout {
                display: flex;
                flex-direction: column;
                gap: 12px;
            }

            .categories {
                order: 1;
            }

            .menu {
                order: 2;
            }

            .cart {
                order: 3;
                position: static;
            }

            .panel {
                height: auto;
                min-height: 0;
                overflow: visible;
            }

            .menu,
            .categories,
            .cart-body {
                padding: 12px;
            }

            .section-title {
                grid-template-columns: minmax(0, 1fr) auto;
                gap: 10px;
            }

            .menu .section-title {
                grid-template-columns: minmax(0, 1fr) auto;
            }

            .menu-panel-action {
                grid-column: 1 / -1;
                justify-content: stretch;
            }

            .menu-panel-action .close-transaction-button {
                width: 100%;
            }

            .category-list {
                display: flex;
                gap: 10px;
                overflow-x: auto;
                padding: 2px 2px 8px;
                scroll-snap-type: x proximity;
                scrollbar-width: thin;
            }

            .category-button {
                min-width: min(78vw, 260px);
                scroll-snap-align: start;
            }

            .order-details,
            .order-details.online-mode {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            .items {
                overflow: visible;
            }

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

            .cart-lines {
                max-height: none;
                overflow: visible;
            }

            .pagination {
                flex-wrap: wrap;
            }

            .page-actions {
                margin-left: auto;
            }
        }

        @media (max-width: 560px) {
            .app-sidebar {
                padding: 12px 10px;
            }

            .main-nav,
            .counter-nav-groups {
                grid-template-columns: 1fr;
            }

            .counter-head {
                grid-template-columns: 32px minmax(0, 1fr) auto;
            }

            .app-shell > .shell {
                padding: 10px;
            }

            .topbar {
                align-items: stretch;
            }

            .account-trigger {
                width: 100%;
            }

            .panel {
                border-radius: 18px;
            }

            .cart-head {
                padding: 12px;
            }

            .cart-body,
            .menu,
            .categories {
                padding: 10px;
            }

            .section-title,
            .menu .section-title {
                grid-template-columns: 1fr;
            }

            .section-title > *,
            .section-title > :first-child,
            .section-title > :last-child {
                justify-self: stretch;
            }

            .menu-count {
                width: max-content;
            }

            .category-button {
                min-width: min(86vw, 250px);
            }

            .order-details,
            .order-details.online-mode,
            .items-grid {
                grid-template-columns: 1fr;
            }

            .item-card {
                grid-template-columns: 88px minmax(0, 1fr);
                gap: 10px;
                align-items: center;
                padding: 9px;
            }

            .item-image {
                width: 88px;
                height: 78px;
                border-radius: 14px;
            }

            .item-content {
                min-width: 0;
                padding: 0;
            }

            .item-action {
                grid-column: 1 / -1;
                padding: 0;
            }

            .order-number-card,
            .line,
            .total-row {
                gap: 8px;
            }

            .order-number-card strong,
            .line strong,
            .total-row strong {
                overflow-wrap: anywhere;
                text-align: right;
            }

            .pagination,
            .page-actions {
                width: 100%;
            }

            .page-actions {
                display: grid;
                grid-template-columns: repeat(2, minmax(0, 1fr));
                margin-left: 0;
            }
        }

        @media print {
            @page {
                size: 80mm auto;
                margin: 0;
            }

            html,
            body {
                width: 80mm !important;
                height: auto !important;
                margin: 0 !important;
                overflow: visible !important;
                background: #fff !important;
            }

            body.receipt-printing * {
                visibility: hidden !important;
            }

            body.receipt-printing #printReceiptMount,
            body.receipt-printing #printReceiptMount * {
                visibility: visible !important;
            }

            body.receipt-printing #printReceiptMount {
                position: absolute !important;
                inset: 0 auto auto 0 !important;
                display: block !important;
                width: 80mm !important;
                height: auto !important;
                min-height: 0 !important;
                margin: 0 !important;
                padding: 0 !important;
                overflow: visible !important;
                background: #fff !important;
            }

            body.receipt-printing #printReceiptMount .receipt-paper {
                display: block !important;
                width: 80mm !important;
                border: 0 !important;
                border-radius: 0 !important;
                padding: 4mm !important;
                background: #fff !important;
                box-shadow: none !important;
                overflow: visible !important;
            }

            body.receipt-printing #printReceiptMount .receipt-head h2 {
                font-size: 1rem !important;
            }

            body.receipt-printing #printReceiptMount .receipt-items {
                max-height: none !important;
                overflow: visible !important;
            }

            body.receipt-printing #printReceiptMount .receipt-actions {
                display: none !important;
            }
        }
