.waiter-body {
    background:
        radial-gradient(circle at top left, rgba(212, 164, 74, 0.1), transparent 22%),
        radial-gradient(circle at bottom right, rgba(77, 145, 198, 0.12), transparent 24%),
        linear-gradient(180deg, #111a20 0%, #0a1218 100%);
}

.waiter-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
}

.waiter-sidebar {
    padding: 18px 14px;
    border-right: 1px solid rgba(170, 180, 190, 0.12);
    background: linear-gradient(180deg, rgba(12, 24, 31, 0.98), rgba(8, 15, 20, 0.96));
    display: grid;
    align-content: start;
    gap: 14px;
}

.waiter-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.waiter-brand-mark {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(212, 164, 74, 0.92), rgba(164, 120, 45, 0.92));
    color: #0d1419;
    font-weight: 800;
}

.waiter-brand strong {
    display: block;
}

.waiter-brand span:last-child,
.waiter-sidebar-card p {
    color: var(--text-muted);
}

.waiter-nav {
    display: grid;
    gap: 8px;
}

.waiter-nav-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 14px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
}

.waiter-sidebar-card {
    display: none;
}

.waiter-nav-item.active,
.waiter-nav-item:hover {
    color: var(--text);
    background: rgba(212, 164, 74, 0.14);
    border-color: rgba(212, 164, 74, 0.2);
}

.waiter-sidebar-card {
    display: none;
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(20, 37, 49, 0.98), rgba(10, 18, 24, 0.96));
    border: 1px solid rgba(170, 180, 190, 0.12);
}

.waiter-sidebar-card strong {
    display: block;
    margin: 6px 0 10px;
}

.waiter-main {
    padding: 18px;
}

.waiter-topbar {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 14px;
}

#selected-table-subtitle {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.waiter-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    min-width: min(460px, 100%);
}

.waiter-summary-card {
    padding: 10px 12px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(20, 37, 49, 0.98), rgba(10, 18, 24, 0.96));
    border: 1px solid rgba(170, 180, 190, 0.12);
}

.waiter-summary-card {
    position: relative;
    overflow: hidden;
}

.waiter-summary-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.06), transparent 55%);
    pointer-events: none;
}

.waiter-summary-pending strong {
    color: #f6d36d;
}

.waiter-summary-pending {
    border-color: rgba(246, 211, 109, 0.22);
}

.waiter-summary-preparing strong {
    color: #f3a24a;
}

.waiter-summary-preparing {
    border-color: rgba(243, 162, 74, 0.22);
}

.waiter-summary-ready strong {
    color: #8ee6b2;
}

.waiter-summary-ready {
    border-color: rgba(142, 230, 178, 0.22);
}

.waiter-summary-card span {
    display: block;
    color: var(--text-muted);
    font-size: 0.72rem;
}

.waiter-summary-card strong {
    display: block;
    margin-top: 4px;
    font-size: 1.2rem;
}

.waiter-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(360px, 0.75fr);
    gap: 14px;
    align-items: start;
}

.waiter-layout.waiter-layout-full {
    grid-template-columns: minmax(0, 1fr);
}

.waiter-floor,
.waiter-composer {
    padding: 18px;
}

.waiter-floor {
    width: 100%;
}

.waiter-floor-head {
    display: grid;
    gap: 10px;
}

.space-tabs,
.category-tabs,
.waiter-type-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.space-tabs {
    display: flex;
}

.space-tab-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.space-tab-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(170, 180, 190, 0.12);
    color: var(--text-soft);
    box-shadow: none;
    font-size: 0.8rem;
    font-weight: 700;
    flex: 1 1 0;
    white-space: nowrap;
}

.space-swatch {
    display: none;
}

.space-tabs .chip-button.active,
.category-tabs .chip-button.active,
.waiter-type-switch .chip-button.active {
    border-color: rgba(212, 164, 74, 0.3);
    background: rgba(212, 164, 74, 0.16);
}

.space-tabs .space-tab-item.active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
}

.waiter-floor-canvas {
    min-height: calc(100vh - 180px);
    margin-top: 12px;
    width: 100%;
}

.waiter-stage {
    position: relative;
    min-height: calc(100vh - 180px);
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid rgba(170, 180, 190, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 38px rgba(2, 8, 12, 0.24);
}

.waiter-table-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    padding: 16px;
    align-items: center;
    justify-content: center;
}

.waiter-table-modal.is-open {
    display: flex;
}

.waiter-body.waiter-modal-open {
    overflow: hidden;
}

.waiter-table-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 7, 18, 0.72);
    backdrop-filter: blur(8px);
}

.waiter-table-modal-dialog {
    position: relative;
    width: min(1600px, 88vw);
    height: 86vh;
    border-radius: 22px;
    border: 1px solid rgba(170, 180, 190, 0.14);
    background: linear-gradient(180deg, rgba(12, 24, 31, 0.98), rgba(8, 15, 20, 0.96));
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
}

.waiter-table-modal-head {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 8px 12px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(170, 180, 190, 0.12);
    background: linear-gradient(180deg, rgba(12, 24, 31, 0.98), rgba(8, 15, 20, 0.96));
}

.waiter-table-modal-title h2 {
    margin: 0;
}

.waiter-table-modal-subtitle {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: var(--text-muted);
}

.waiter-table-modal-close {
    position: sticky;
    top: 12px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex: 0 0 auto;
    z-index: 3;
    pointer-events: auto;
}

.waiter-table-modal-body {
    display: grid;
    grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr);
    gap: 12px;
    padding: 4px 12px 10px;
    overflow: hidden;
}

.waiter-table-modal-col {
    min-width: 0;
    display: grid;
    gap: 10px;
}

.waiter-table-modal-left {
    gap: 4px;
}

.waiter-table-modal-right {
    gap: 10px;
}

.waiter-table-modal .waiter-table-modal-right {
    grid-template-rows: auto minmax(0, 1fr) auto;
}

.waiter-order-scroll {
    min-height: 0;
    overflow: auto;
    padding-right: 6px;
    display: grid;
    gap: 10px;
}

.waiter-order-actions {
    position: sticky;
    bottom: 0;
    padding-top: 8px;
    background: linear-gradient(180deg, rgba(8, 15, 20, 0), rgba(8, 15, 20, 0.92) 30%, rgba(8, 15, 20, 0.98));
    display: grid;
    gap: 8px;
}

.waiter-catalog-scroll {
    min-height: 0;
    overflow: auto;
    padding-right: 6px;
}

.waiter-table-modal .waiter-products-grid {
    max-height: none;
    overflow: visible;
    padding-right: 0;
    gap: 10px;
}

.waiter-table-modal .waiter-draft {
    padding-bottom: 0;
}

.waiter-modal-sectionhead strong {
    font-family: "Poppins", "Inter", sans-serif;
    font-size: 1rem;
}

.waiter-modal-block {
    border-radius: 18px;
    border: 1px solid rgba(170, 180, 190, 0.12);
    background: rgba(255, 255, 255, 0.02);
    padding: 12px 12px 14px;
}

.waiter-table-modal .waiter-modal-block {
    border-radius: 16px;
    padding: 10px 10px 12px;
}

.waiter-table-modal .waiter-draft.waiter-modal-block {
    border-color: rgba(212, 162, 71, 0.18);
    background: rgba(212, 162, 71, 0.04);
}

.waiter-search.waiter-search-compact input {
    min-height: 38px;
    padding: 0 12px;
    border-radius: 14px;
}

.waiter-search.waiter-search-compact button {
    padding: 8px 10px;
    border-radius: 14px;
}

.waiter-categories-compact {
    gap: 8px;
}

.waiter-table-modal .waiter-categories-compact.category-tabs {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
    padding: 0 2px 0;
    -webkit-overflow-scrolling: touch;
}

.waiter-products-grid .waiter-product-card {
    padding: 8px 10px;
}

.waiter-table-modal .waiter-product-card {
    gap: 10px;
    border-radius: 16px;
}

.waiter-product-copy strong {
    font-size: 0.96rem;
    line-height: 1.15;
}

.waiter-product-copy span {
    font-size: 0.82rem;
}

.waiter-product-meta .waiter-product-time {
    display: none;
}

.waiter-table-modal .waiter-product-meta strong {
    font-size: 1.1rem;
}

.waiter-product-foot {
    gap: 8px;
}

.waiter-table-modal .waiter-add-button {
    min-width: 96px;
    padding: 8px 10px;
    border-radius: 12px;
    font-size: 0.86rem;
    box-shadow: 0 4px 10px rgba(212, 162, 71, 0.1);
}

.waiter-table-modal .waiter-add-badge {
    min-width: 18px;
    height: 18px;
    font-size: 0.7rem;
}

.waiter-table-modal .waiter-draft-clear {
    width: 100%;
    justify-content: center;
    padding: 12px;
    border-radius: 16px;
}

.waiter-table-modal .draft-summary {
    gap: 8px;
}

.waiter-table-modal .draft-summary-card {
    padding: 10px;
    border-radius: 14px;
}

.waiter-table-modal .draft-summary-card strong {
    margin-top: 4px;
    font-size: 1.05rem;
}

.waiter-table-modal .draft-list {
    gap: 10px;
    min-height: 120px;
}

.waiter-table-modal .draft-row {
    padding: 10px;
    border-radius: 16px;
    gap: 10px;
}

.waiter-table-modal .waiter-categories-compact .category-tab {
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 999px;
    justify-content: center;
    box-shadow: none;
}

.waiter-table-modal .waiter-categories-compact .category-tab-name {
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.waiter-product-copy span {
    opacity: 0.78;
}

.waiter-shortcuts,
.waiter-shortcuts-extras,
.waiter-combo-grid,
.waiter-promo-grid,
.waiter-promo-picker {
    display: none !important;
}

.waiter-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(200, 155, 78, 0.1), transparent 28%),
        linear-gradient(180deg, rgba(18, 44, 64, 0.95), rgba(9, 18, 26, 0.96));
    pointer-events: none;
}

.waiter-stage-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: 0.5;
}

.waiter-stage-label {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 1;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(9, 18, 26, 0.72);
    border: 1px solid rgba(170, 180, 190, 0.14);
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.waiter-divider {
    position: absolute;
    z-index: 2;
    background: transparent;
    border: none;
    box-shadow: none;
    pointer-events: none;
}

.waiter-divider::before {
    content: "";
    position: absolute;
    inset: 50% 0 auto 0;
    height: 2px;
    transform: translateY(-50%);
    background: rgba(214, 229, 238, 0.88);
}

.waiter-divider-vertical::before {
    inset: 0 auto 0 50%;
    width: 2px;
    height: auto;
    transform: translateX(-50%);
}

.waiter-divider-horizontal::before {
    inset: 50% 0 auto 0;
    width: auto;
    height: 2px;
    transform: translateY(-50%);
}

.waiter-divider .waiter-divider-label {
    z-index: 1;
}

.waiter-divider-label {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(9, 18, 26, 0.72);
    border: 1px solid rgba(170, 180, 190, 0.12);
    color: var(--text-muted);
    font-size: 0.68rem;
    white-space: nowrap;
}

.waiter-table {
    position: absolute;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    display: grid;
    align-content: center;
    justify-items: center;
    gap: var(--table-gap, 4px);
    padding: var(--table-pad-y, 8px) var(--table-pad-x, 8px);
    color: var(--text);
    box-shadow: 0 12px 28px rgba(2, 8, 12, 0.24);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
    z-index: 2;
    will-change: transform, box-shadow;
}

.waiter-table:hover,
.waiter-table.active {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(2, 8, 12, 0.28);
}

.waiter-table:hover {
    border-color: rgba(212, 164, 74, 0.38);
    box-shadow: 0 18px 34px rgba(2, 8, 12, 0.28), 0 0 0 4px rgba(212, 164, 74, 0.1);
}

.waiter-table.active {
    border-color: rgba(212, 164, 74, 0.55);
    box-shadow: 0 18px 34px rgba(2, 8, 12, 0.28), 0 0 0 5px rgba(212, 164, 74, 0.22);
}

.waiter-table.waiter-table-pulse {
    animation: waiterPulse 160ms ease-out;
}

@keyframes waiterPulse {
    0% {
        transform: scale(1);
    }
    55% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.waiter-composer.waiter-composer-active {
    border-color: rgba(212, 164, 74, 0.22);
    box-shadow: 0 24px 52px rgba(2, 8, 12, 0.26), 0 0 0 4px rgba(212, 164, 74, 0.08);
}

.waiter-table-round {
    border-radius: 999px;
}

.waiter-table-square {
    aspect-ratio: 1;
}

.waiter-table-name {
    font-size: var(--table-name-size, 0.92rem);
    line-height: 1.05;
    font-weight: 800;
}

.waiter-table-capacity,
.waiter-table-ordercount {
    font-size: var(--table-meta-size, 0.72rem);
    line-height: 1.05;
    font-weight: 700;
}

.waiter-table-state {
    font-size: var(--table-state-size, 0.68rem);
    line-height: 1.05;
    font-weight: 800;
}

.waiter-status-free {
    background: linear-gradient(180deg, rgba(166, 232, 191, 0.98), rgba(102, 186, 135, 0.92));
    color: #0f261a;
}

.waiter-status-pending {
    background: linear-gradient(180deg, rgba(241, 181, 86, 0.98), rgba(198, 128, 31, 0.92));
    color: #402600;
}

.waiter-status-preparing {
    background: linear-gradient(180deg, rgba(241, 181, 86, 0.98), rgba(198, 128, 31, 0.92));
    color: #402600;
}

.waiter-status-ready {
    background: linear-gradient(180deg, rgba(252, 132, 122, 0.98), rgba(192, 54, 51, 0.92));
    color: #2a0b0b;
}

.waiter-table-name {
    font-weight: 800;
    font-size: 1rem;
}

.waiter-table-capacity,
.waiter-table-ordercount,
.waiter-table-state {
    font-size: 0.72rem;
    opacity: 0.84;
}

.waiter-order-form,
.waiter-products,
.waiter-current-consumption,
.waiter-draft {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.waiter-search {
    display: flex;
    align-items: center;
    gap: 10px;
}

.waiter-search input {
    flex: 1;
}

.waiter-search button {
    width: auto;
    white-space: nowrap;
}

.waiter-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.waiter-section-head strong {
    display: block;
    margin-top: 4px;
    font-size: 1rem;
}

.waiter-draft {
    padding-bottom: 88px;
}

.waiter-products-grid {
    display: grid;
    gap: 12px;
    max-height: 340px;
    overflow: auto;
    padding-right: 2px;
}

.waiter-product-card,
.draft-summary-card,
.draft-row {
    padding: 14px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(20, 37, 49, 0.98), rgba(10, 18, 24, 0.96));
    border: 1px solid rgba(170, 180, 190, 0.12);
}

.waiter-product-card {
    display: grid;
    gap: 14px;
    padding: 16px 16px 14px;
    border-radius: 20px;
    background:
        radial-gradient(circle at top right, rgba(212, 164, 74, 0.08), transparent 30%),
        linear-gradient(180deg, rgba(20, 37, 49, 0.98), rgba(10, 18, 24, 0.96));
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    cursor: pointer;
    user-select: none;
}

.waiter-product-card:hover {
    transform: translateY(-1px);
    border-color: rgba(212, 164, 74, 0.18);
    box-shadow: 0 16px 30px rgba(2, 8, 12, 0.2);
}

.waiter-product-card.waiter-product-flash {
    animation: waiterProductFlash 140ms ease-out;
}

@keyframes waiterProductFlash {
    0% {
        transform: translateY(0) scale(1);
        box-shadow: 0 16px 30px rgba(2, 8, 12, 0.2);
    }
    60% {
        transform: translateY(-1px) scale(1.02);
        box-shadow: 0 18px 34px rgba(2, 8, 12, 0.22), 0 0 0 6px rgba(212, 164, 74, 0.12);
    }
    100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 16px 30px rgba(2, 8, 12, 0.2);
    }
}

.draft-row.draft-last-added {
    animation: waiterDraftFlash 420ms ease-out;
}

@keyframes waiterDraftFlash {
    0% {
        box-shadow: none;
    }
    35% {
        box-shadow: 0 0 0 6px rgba(212, 164, 74, 0.14);
    }
    100% {
        box-shadow: none;
    }
}

.waiter-shortcuts {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.waiter-shortcut-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

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

.waiter-shortcuts-extras {
    display: grid;
    gap: 12px;
}

.waiter-shortcuts-subhead strong {
    font-size: 0.95rem;
}

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

.waiter-promo-picker {
    padding: 14px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(20, 37, 49, 0.98), rgba(10, 18, 24, 0.96));
    border: 1px solid rgba(170, 180, 190, 0.12);
    display: grid;
    gap: 12px;
}

.waiter-promo-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.waiter-promo-body {
    display: grid;
    gap: 10px;
}

.waiter-promo-body select,
.waiter-promo-body input {
    width: 100%;
    min-height: 44px;
    border-radius: 16px;
    padding: 10px 12px;
    border: 1px solid rgba(170, 180, 190, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.waiter-promo-actions {
    display: grid;
    grid-template-columns: 1fr;
}

.waiter-shortcuts button {
    min-height: 46px;
    border-radius: 16px;
    font-weight: 800;
}

.waiter-shortcuts button[disabled] {
    opacity: 0.55;
}

.waiter-combo-button.waiter-combo-flash {
    animation: waiterComboFlash 140ms ease-out;
}

@keyframes waiterComboFlash {
    0% {
        box-shadow: none;
        transform: scale(1);
    }
    60% {
        box-shadow: 0 0 0 6px rgba(212, 164, 74, 0.14);
        transform: scale(1.02);
    }
    100% {
        box-shadow: none;
        transform: scale(1);
    }
}

.waiter-product-copy {
    display: grid;
    gap: 4px;
}

.waiter-product-copy strong {
    font-size: 1rem;
    line-height: 1.15;
}

.waiter-product-copy span {
    color: var(--text-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.waiter-product-foot,
.draft-row header,
.draft-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.category-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.category-tab {
    min-height: 48px;
    justify-content: center;
    border-radius: 16px;
    border: 1px solid rgba(170, 180, 190, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    color: var(--text-soft);
    box-shadow: none;
    transition: none;
    touch-action: manipulation;
}

.category-tab.active {
    background: linear-gradient(180deg, #efc168, #d4a247);
    border-color: rgba(212, 162, 71, 0.6);
    color: #111923;
    box-shadow: 0 12px 24px rgba(212, 162, 71, 0.18);
}

.category-tab-name {
    font-weight: 800;
    letter-spacing: 0.01em;
}

.waiter-product-meta {
    display: grid;
    gap: 4px;
}

.waiter-product-meta strong {
    font-size: 1.35rem;
    line-height: 1;
}

.waiter-product-time {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.waiter-add-button {
    min-width: 124px;
    padding: 12px 16px;
    border-radius: 14px;
    background: linear-gradient(180deg, #efc168, #d4a247);
    color: #111923;
    border: 1px solid rgba(212, 162, 71, 0.6);
    font-weight: 800;
    box-shadow: 0 6px 14px rgba(212, 162, 71, 0.12);
    transition: none;
    touch-action: manipulation;
}

.waiter-add-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.waiter-add-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(17, 25, 35, 0.22);
    border: 1px solid rgba(17, 25, 35, 0.18);
    color: rgba(17, 25, 35, 0.95);
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
}

@keyframes waiterAddFlash {
    0% { filter: brightness(1.08) saturate(1.05); transform: translateY(-1px) scale(1.01); }
    55% { filter: brightness(1.18) saturate(1.12); transform: translateY(-1px) scale(1.02); }
    100% { filter: none; transform: none; }
}

.waiter-add-button.waiter-add-flash {
    animation: waiterAddFlash 260ms ease-out;
}

.waiter-chip {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(170, 180, 190, 0.12);
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.waiter-chip-total {
    background: rgba(212, 164, 74, 0.16);
    border-color: rgba(212, 164, 74, 0.22);
    color: var(--text);
}

.waiter-chip-sector {
    background: rgba(77, 145, 198, 0.14);
    border-color: rgba(77, 145, 198, 0.22);
    color: var(--text);
}

.waiter-chip-free {
    background: rgba(102, 186, 135, 0.18);
    border-color: rgba(102, 186, 135, 0.24);
    color: var(--text);
}

.waiter-chip-pending,
.waiter-chip-preparing {
    background: rgba(241, 181, 86, 0.18);
    border-color: rgba(241, 181, 86, 0.24);
    color: var(--text);
}

.waiter-chip-ready {
    background: rgba(252, 132, 122, 0.18);
    border-color: rgba(252, 132, 122, 0.24);
    color: var(--text);
}

.draft-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}

.draft-summary-card strong {
    display: block;
    margin-top: 6px;
    font-size: 1.15rem;
}

.draft-summary-card {
    border-radius: 16px;
}

.draft-list {
    display: grid;
    gap: 12px;
    min-height: 180px;
}

.draft-empty {
    min-height: 132px;
    place-items: center;
    text-align: center;
    color: var(--text-muted);
    background:
        linear-gradient(180deg, rgba(16, 28, 36, 0.98), rgba(9, 17, 22, 0.96));
    border-style: dashed;
}

.draft-row {
    gap: 12px;
}

.current-consumption-row header {
    align-items: flex-start;
}

.draft-row .form-inline {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 10px;
}

.primary-action {
    position: sticky;
    bottom: 16px;
    z-index: 6;
    padding: 16px;
    font-size: 1rem;
    border-radius: 16px;
    background: linear-gradient(180deg, #efc168, #d4a247);
    color: #111923;
    border: 1px solid rgba(212, 162, 71, 0.6);
    box-shadow: 0 8px 18px rgba(212, 162, 71, 0.12);
    transition: none;
    touch-action: manipulation;
}

.waiter-add-button:active,
.primary-action:active,
.category-tab:active,
.draft-row .ghost-button:active,
.draft-toolbar .ghost-button:active {
    transform: scale(0.985);
}

.draft-row .ghost-button,
.draft-toolbar .ghost-button {
    transition: none;
    touch-action: manipulation;
}

@media (max-width: 1240px) {
    .waiter-layout {
        grid-template-columns: 1fr;
    }

    .waiter-summary {
        min-width: 0;
    }
}

@media (max-width: 960px) {
    .waiter-shell {
        grid-template-columns: 1fr;
    }

    .waiter-sidebar {
        border-right: none;
        border-bottom: 1px solid rgba(170, 180, 190, 0.12);
    }

    .waiter-topbar {
        flex-direction: column;
    }

    .waiter-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }
}

@media (max-width: 760px) {
    .waiter-main {
        padding: 16px;
    }

    .waiter-floor,
    .waiter-composer {
        padding: 18px;
    }

    .waiter-summary,
    .draft-summary {
        grid-template-columns: 1fr 1fr;
    }

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

    .waiter-shortcut-grid,
    .waiter-combo-grid {
        grid-template-columns: 1fr;
    }

    .waiter-stage,
    .waiter-floor-canvas {
        min-height: 460px;
    }
}
