:root {
    --restaurant-primary: #6D28D9;
    --restaurant-secondary: #8B5CF6;
    --restaurant-accent: #C084FC;
    --restaurant-bg: #F8F5FF;
    --restaurant-dark: #111827;
}

.skin-purple .main-header .navbar,
.skin-purple .main-header .logo,
.skin-purple .main-sidebar,
.skin-purple .left-side,
body[class*="skin-"] .tw-dw-btn-primary,
.btn-primary {
    background-color: var(--restaurant-primary) !important;
    border-color: var(--restaurant-primary) !important;
}

.restaurant-os {
    background: var(--restaurant-bg);
    min-height: calc(100vh - 80px);
    padding: 24px;
}

.restaurant-page-head,
.kds-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.restaurant-page-head h1,
.kds-header h1 {
    margin: 0;
    color: var(--restaurant-dark);
    font-size: 28px;
    font-weight: 800;
}

.restaurant-page-head p {
    margin: 4px 0 0;
    color: #4b5563;
}

.table-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.table-card,
.bill-card,
.report-card {
    background: #fff;
    border: 1px solid #e9d5ff;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(17, 24, 39, .06);
    padding: 16px;
}

.table-card__top,
.table-card__bill,
.bill-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.table-card h3,
.bill-card h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
}

.table-card__top span {
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    padding: 4px 9px;
    background: var(--restaurant-primary);
}

.status-free { border-left: 6px solid #10b981; }
.status-occupied { border-left: 6px solid #f59e0b; }
.status-reserved { border-left: 6px solid #3b82f6; }
.status-cleaning { border-left: 6px solid #64748b; }
.status-billed { border-left: 6px solid #ef4444; }

.bill-list {
    display: grid;
    gap: 12px;
}

.bill-card__actions {
    display: flex;
    gap: 8px;
}

.empty-state {
    background: #fff;
    border-radius: 8px;
    padding: 28px;
    text-align: center;
    color: #6b7280;
}

.kds-screen {
    background: #0f172a;
    color: #e5e7eb;
}

.kds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.kds-card {
    background: #111827;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 16px;
}

.kds-card.is-delayed {
    border-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, .25);
}

.kds-card__top {
    display: flex;
    justify-content: space-between;
    color: var(--restaurant-accent);
}

.kds-card h2 {
    color: #fff;
    font-size: 24px;
    margin: 12px 0;
}

.kds-note {
    background: #312e81;
    border-radius: 6px;
    margin: 10px 0;
    padding: 8px;
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.report-card {
    display: block;
    color: var(--restaurant-dark);
}

.report-card span {
    color: #6b7280;
    display: block;
}

.report-card strong {
    font-size: 24px;
}

.restaurant-qr {
    margin: 24px auto;
    max-width: 680px;
    padding: 18px;
}

.qr-menu {
    display: grid;
    gap: 10px;
}

.qr-menu__item {
    align-items: center;
    background: #fff;
    border: 1px solid #e9d5ff;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    padding: 12px;
}

.qr-footer {
    color: #6b7280;
    margin-top: 16px;
}

@media (max-width: 767px) {
    .restaurant-page-head,
    .kds-header,
    .bill-card {
        align-items: stretch;
        flex-direction: column;
    }
}

.waiter-shell,
.waiter-order-shell {
    background: #f8f5ff;
    min-height: calc(100vh - 64px);
    padding: 18px;
}

.waiter-topbar,
.waiter-order-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.waiter-kicker,
.waiter-order-header span {
    color: #6d28d9;
    display: block;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.waiter-topbar h1,
.waiter-order-header h1 {
    color: #111827;
    font-size: 30px;
    font-weight: 900;
    margin: 0;
}

.waiter-topbar__actions {
    display: flex;
    gap: 8px;
}

.waiter-topbar__actions form,
.waiter-order-header form {
    margin: 0;
}

.waiter-session-name {
    color: #6b21a8;
    font-size: 14px;
    font-weight: 800;
    margin: 5px 0 0;
}

.waiter-icon-btn,
.waiter-print-btn,
.waiter-back {
    align-items: center;
    background: #fff;
    border: 1px solid #e9d5ff;
    border-radius: 8px;
    color: #4c1d95;
    display: inline-flex;
    font-weight: 800;
    gap: 8px;
    min-height: 44px;
    padding: 10px 14px;
}

.floor-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.floor-tab {
    align-items: center;
    background: #fff;
    border: 1px solid #ddd6fe;
    border-radius: 8px;
    color: #4b5563;
    display: flex;
    gap: 10px;
    min-height: 48px;
    padding: 8px 14px;
}

.floor-tab strong {
    background: #ede9fe;
    border-radius: 999px;
    color: #6d28d9;
    min-width: 28px;
    padding: 4px 8px;
}

.floor-tab.is-active {
    background: #6d28d9;
    border-color: #6d28d9;
    color: #fff;
}

.floor-tab.is-active strong {
    background: rgba(255,255,255,.18);
    color: #fff;
}

.waiter-layout {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1fr) 320px;
}

.floor-panel {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
}

.floor-panel.is-active {
    display: grid;
}

.waiter-table-card {
    background: #fff;
    border: 1px solid #e9d5ff;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(76, 29, 149, .08);
    min-height: 190px;
    min-width: 0;
    padding: 14px;
    position: relative;
}

.waiter-table-card__status {
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 9px;
    position: absolute;
    right: 12px;
    top: 12px;
}

.waiter-table-card.status-free .waiter-table-card__status { background: #10b981; }
.waiter-table-card.status-occupied .waiter-table-card__status { background: #f59e0b; }
.waiter-table-card.status-billed .waiter-table-card__status { background: #ef4444; }
.waiter-table-card.status-reserved .waiter-table-card__status { background: #3b82f6; }
.waiter-table-card.status-cleaning .waiter-table-card__status { background: #64748b; }

.waiter-table-card h2 {
    color: #111827;
    font-size: 28px;
    font-weight: 900;
    margin: 26px 0 2px;
    overflow-wrap: anywhere;
}

.waiter-table-card p {
    color: #6b7280;
    margin: 0 0 14px;
}

.waiter-bill-chip {
    align-items: center;
    background: #f5f3ff;
    border-radius: 8px;
    color: #4c1d95;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
    padding: 8px;
}

.waiter-bill-chip span,
.waiter-bill-chip strong {
    min-width: 0;
    overflow-wrap: anywhere;
}

.waiter-table-orders {
    background: #fff7fb;
    border: 1px solid #fbcfe8;
    border-radius: 8px;
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
    max-height: 132px;
    overflow: auto;
    padding: 8px;
}

.waiter-table-order-line {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: space-between;
    min-width: 0;
}

.waiter-table-order-line span {
    color: #111827;
    font-size: 13px;
    font-weight: 800;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.waiter-table-order-line strong {
    background: #f9a8d4;
    border-radius: 999px;
    color: #831843;
    flex: 0 0 auto;
    font-size: 12px;
    padding: 2px 7px;
}

.waiter-table-order-empty,
.waiter-table-order-more {
    color: #9d174d;
    font-size: 12px;
    font-weight: 800;
}

.waiter-table-actions {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr 1fr;
}

.waiter-primary-action,
.waiter-secondary-action,
.waiter-send-btn {
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    font-weight: 900;
    justify-content: center;
    min-height: 44px;
    text-align: center;
}

.waiter-primary-action,
.waiter-send-btn {
    background: #6d28d9;
    color: #fff;
}

.waiter-secondary-action {
    background: #ede9fe;
    color: #4c1d95;
}

.waiter-side-panel,
.waiter-cart {
    background: #f9a8d4;
    border: 1px solid #f472b6;
    border-radius: 8px;
    color: #831843;
    padding: 14px;
}

.waiter-side-panel h3,
.waiter-cart h2 {
    font-size: 18px;
    font-weight: 900;
    margin: 0 0 12px;
}

.active-bill-row {
    align-items: center;
    background: #fce7f3;
    border: 1px solid #f472b6;
    border-radius: 8px;
    color: #831843;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    padding: 10px;
}

.active-bill-row span {
    display: grid;
    gap: 3px;
}

.active-bill-row small {
    color: #9d174d;
    display: block;
    font-size: 12px;
    font-weight: 700;
    max-width: 185px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.active-bill-row span,
.active-bill-row strong {
    min-width: 0;
    overflow-wrap: anywhere;
}

.waiter-order-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1fr) 360px;
}

.waiter-menu-search {
    align-items: center;
    background: #fff;
    border: 1px solid #e9d5ff;
    border-radius: 8px;
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    padding: 10px 12px;
}

.waiter-menu-search input {
    border: 0;
    flex: 1;
    font-size: 18px;
    outline: 0;
}

.waiter-menu-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.waiter-menu-item {
    background: #fff;
    border: 1px solid #e9d5ff;
    border-radius: 8px;
    min-height: 96px;
    min-width: 0;
    padding: 12px;
    text-align: left;
}

.waiter-menu-item strong {
    color: #111827;
    display: block;
    font-size: 16px;
    overflow-wrap: anywhere;
}

.waiter-menu-item span {
    color: #6d28d9;
    display: block;
    font-weight: 900;
    margin-top: 10px;
}

.waiter-cart {
    position: sticky;
    top: 12px;
}

.waiter-cart__head,
.waiter-cart-total,
.waiter-cart-line {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.waiter-cart-lines {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.waiter-cart-line {
    background: #fce7f3;
    border: 1px solid #f472b6;
    border-radius: 8px;
    padding: 10px;
}

.waiter-cart-line span {
    color: #9d174d;
    display: block;
    font-size: 12px;
}

.waiter-cart-line__steps {
    align-items: center;
    display: flex;
    gap: 8px;
}

.waiter-cart-line__steps button {
    background: #8b5cf6;
    border: 0;
    border-radius: 8px;
    color: #fff;
    font-size: 20px;
    height: 34px;
    width: 34px;
}

.waiter-cart textarea,
.waiter-cart input {
    margin-bottom: 10px;
}

.waiter-cart-total {
    border-top: 1px solid #f472b6;
    font-size: 18px;
    margin: 12px 0;
    padding-top: 12px;
}

.waiter-send-btn {
    border: 0;
    min-height: 52px;
    width: 100%;
}

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

    .waiter-cart {
        position: static;
    }
}

@media (max-width: 640px) {
    .waiter-shell,
    .waiter-order-shell {
        padding: 10px;
    }

    .waiter-topbar,
    .waiter-order-header {
        align-items: stretch;
        flex-direction: column;
    }

    .waiter-topbar__actions,
    .waiter-table-actions {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .waiter-topbar__actions {
        display: grid;
    }

    .floor-panel,
    .waiter-menu-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .waiter-table-card {
        min-height: 165px;
        padding: 10px;
    }

    .waiter-table-card h2 {
        font-size: 22px;
    }

    .waiter-menu-item {
        min-height: 84px;
        padding: 10px;
    }

    .waiter-menu-item strong {
        font-size: 14px;
    }

    .waiter-cart-line {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 380px) {
    .floor-panel,
    .waiter-menu-grid {
        grid-template-columns: 1fr;
    }
}

.waiter-terminal-fullscreen {
    background:
        linear-gradient(180deg, rgba(109, 40, 217, .08), rgba(248, 245, 255, 0) 260px),
        #f8f5ff;
    min-height: 100vh;
}

.waiter-command-strip {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 14px;
}

.waiter-command-strip div {
    background: #fff;
    border: 1px solid #e9d5ff;
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(76, 29, 149, .08);
    min-width: 0;
    padding: 12px 14px;
}

.waiter-command-strip strong {
    color: #111827;
    display: block;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.waiter-command-strip span {
    color: #6b21a8;
    display: block;
    font-size: 12px;
    font-weight: 800;
    margin-top: 4px;
}

.floor-panel {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.waiter-table-card {
    display: flex;
    flex-direction: column;
    height: 292px;
    min-height: 292px;
    overflow: hidden;
}

.waiter-table-card__identity {
    min-height: 74px;
    padding-right: 84px;
}

.waiter-table-card__identity h2,
.waiter-table-card h2 {
    font-size: 25px;
    line-height: 1.05;
    margin-top: 20px;
}

.waiter-table-card__identity p,
.waiter-table-card p {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.waiter-table-orders {
    flex: 1 1 auto;
    max-height: none;
    min-height: 82px;
    overflow: hidden;
}

.waiter-table-order-more {
    background: transparent;
    border: 0;
    color: #7e22ce;
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
    padding: 2px 0 0;
    text-align: left;
}

.waiter-table-empty-state {
    align-items: center;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    color: #047857;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    font-weight: 900;
    gap: 8px;
    justify-content: center;
    margin-bottom: 12px;
    min-height: 104px;
}

.waiter-table-empty-state i {
    font-size: 24px;
}

.table-items-modal .modal-content {
    border: 0;
    border-radius: 8px;
    overflow: hidden;
}

.table-items-modal .modal-header {
    background: #6d28d9;
    color: #fff;
}

.table-items-modal .close {
    color: #fff;
    opacity: .95;
}

.table-items-modal-summary {
    align-items: center;
    background: #f8f5ff;
    border: 1px solid #e9d5ff;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 10px 12px;
}

.table-items-modal-summary span {
    color: #6b21a8;
    font-weight: 900;
}

.table-items-modal-summary strong {
    color: #111827;
    font-size: 18px;
}

.table-items-modal-list {
    display: grid;
    gap: 8px;
}

.table-items-modal-line {
    align-items: center;
    border: 1px solid #fbcfe8;
    border-radius: 8px;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto auto;
    padding: 10px;
}

.table-items-modal-line strong,
.table-items-modal-line small {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}

.table-items-modal-line span {
    background: #fce7f3;
    border-radius: 999px;
    color: #831843;
    font-weight: 900;
    padding: 4px 9px;
}

.table-items-modal-line b {
    color: #111827;
}

.waiter-order-header--pos {
    background: #fff;
    border: 1px solid #e9d5ff;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(76, 29, 149, .1);
    padding: 12px;
}

.waiter-order-title {
    flex: 1 1 auto;
    min-width: 0;
}

.waiter-order-header__bill {
    align-items: flex-end;
    display: grid;
    gap: 3px;
    justify-items: end;
}

.waiter-order-header__bill span {
    color: #6b21a8;
    font-size: 12px;
    font-weight: 900;
}

.waiter-order-header__bill strong {
    color: #111827;
    font-size: 20px;
    font-weight: 900;
}

.waiter-order-grid--pro {
    align-items: start;
    grid-template-columns: minmax(0, 1fr) 390px;
}

.waiter-menu-panel {
    min-width: 0;
}

.waiter-menu-toolbar {
    background: #fff;
    border: 1px solid #e9d5ff;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(76, 29, 149, .08);
    margin-bottom: 12px;
    padding: 12px;
}

.waiter-menu-toolbar .waiter-menu-search {
    box-shadow: none;
    margin-bottom: 10px;
}

.waiter-category-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.waiter-category-tab {
    background: #f8f5ff;
    border: 1px solid #e9d5ff;
    border-radius: 8px;
    color: #4c1d95;
    flex: 0 0 auto;
    font-weight: 900;
    min-height: 38px;
    padding: 8px 12px;
}

.waiter-category-tab.is-active {
    background: #6d28d9;
    border-color: #6d28d9;
    color: #fff;
}

.waiter-menu-grid--pro {
    grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
}

.waiter-menu-item {
    box-shadow: 0 8px 18px rgba(76, 29, 149, .07);
    display: grid;
    gap: 8px;
    min-height: 136px;
    position: relative;
}

.waiter-menu-item__category {
    color: #7e22ce !important;
    font-size: 11px;
    font-weight: 900;
    margin: 0 !important;
    text-transform: uppercase;
}

.waiter-menu-item__price {
    align-self: end;
    margin-top: 0 !important;
}

.waiter-menu-item i {
    align-items: center;
    background: #f9a8d4;
    border-radius: 999px;
    bottom: 10px;
    color: #831843;
    display: flex;
    height: 28px;
    justify-content: center;
    position: absolute;
    right: 10px;
    width: 28px;
}

.waiter-cart--pro {
    box-shadow: 0 14px 34px rgba(131, 24, 67, .2);
}

.waiter-cart__head h2 {
    margin-bottom: 2px;
}

#waiter-cart-count {
    align-items: center;
    background: #831843;
    border-radius: 999px;
    color: #fff;
    display: flex;
    height: 34px;
    justify-content: center;
    min-width: 34px;
    padding: 0 10px;
}

.waiter-current-bill {
    background: #fff7fb;
    border: 1px solid #fbcfe8;
    border-radius: 8px;
    display: grid;
    gap: 6px;
    margin: 10px 0 12px;
    padding: 10px;
}

.waiter-current-bill h3 {
    color: #831843;
    font-size: 13px;
    font-weight: 900;
    margin: 0 0 4px;
    text-transform: uppercase;
}

.waiter-current-bill-line {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.waiter-current-bill-line span {
    color: #111827;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.waiter-current-bill-line strong {
    color: #831843;
}

.waiter-current-bill small {
    color: #9d174d;
    font-weight: 800;
}

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

.waiter-send-btn i {
    margin-right: 7px;
}

@media (max-width: 980px) {
    .waiter-command-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 640px) {
    .waiter-command-strip {
        grid-template-columns: 1fr 1fr;
    }

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

    .waiter-table-card {
        height: 250px;
        min-height: 250px;
    }

    .waiter-table-card__identity {
        padding-right: 0;
    }

    .waiter-order-header__bill {
        align-items: stretch;
        justify-items: stretch;
    }

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

    .waiter-menu-item {
        min-height: 118px;
    }
}

.floor-manager-shell {
    background: #f8f5ff;
    min-height: calc(100vh - 64px);
    padding: 18px;
}

.floor-manager-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 320px minmax(0, 1fr);
}

.floor-manager-panel {
    background: #fff;
    border: 1px solid #e9d5ff;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(76, 29, 149, .08);
    height: max-content;
    padding: 16px;
}

.waiter-pin-body {
    background: #12091f;
    margin: 0;
    min-height: 100vh;
}

.waiter-pin-screen {
    align-items: center;
    background:
        radial-gradient(circle at 15% 10%, rgba(192, 132, 252, .42), transparent 28%),
        radial-gradient(circle at 85% 80%, rgba(249, 168, 212, .42), transparent 30%),
        linear-gradient(135deg, #1f1235 0%, #35185f 44%, #f8f5ff 44%, #f8f5ff 100%);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
    padding: 28px;
}

.waiter-pin-terminal {
    display: grid;
    grid-template-columns: minmax(340px, 1fr) 460px;
    max-width: 1120px;
    min-height: 680px;
    width: 100%;
}

.waiter-pin-brief {
    background:
        linear-gradient(180deg, rgba(109, 40, 217, .94), rgba(76, 29, 149, .94)),
        #6d28d9;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px 0 0 8px;
    box-shadow: 0 32px 90px rgba(17, 24, 39, .28);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    padding: 34px;
    position: relative;
}

.waiter-pin-brief:after {
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    content: "";
    inset: 18px;
    pointer-events: none;
    position: absolute;
}

.waiter-pin-logo {
    align-items: center;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 8px;
    display: flex;
    height: 62px;
    justify-content: center;
    margin-bottom: 54px;
    width: 62px;
}

.waiter-pin-logo span {
    font-size: 28px;
    font-weight: 900;
}

.waiter-pin-kicker {
    color: #f0abfc;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.waiter-pin-brief h1 {
    color: #fff;
    font-size: 44px;
    font-weight: 900;
    line-height: 1.03;
    margin: 0;
    overflow-wrap: anywhere;
}

.waiter-pin-copy {
    color: #ede9fe;
    font-size: 16px;
    line-height: 1.6;
    margin: 18px 0 0;
    max-width: 460px;
}

.waiter-pin-stats {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: auto;
}

.waiter-pin-stats div {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    padding: 16px;
}

.waiter-pin-stats strong {
    color: #fff;
    display: block;
    font-size: 30px;
    font-weight: 900;
}

.waiter-pin-stats span {
    color: #ddd6fe;
    display: block;
    font-weight: 800;
}

.waiter-pin-flow {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.waiter-pin-flow span {
    align-items: center;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-weight: 900;
    gap: 7px;
    padding: 8px 12px;
}

.waiter-pin-panel {
    align-self: stretch;
    background: rgba(255, 255, 255, .96);
    border: 1px solid #e9d5ff;
    border-left: 0;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 32px 90px rgba(17, 24, 39, .2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 36px;
}

.waiter-pin-brand span {
    color: #6d28d9;
    display: block;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.waiter-pin-brand h1 {
    color: #111827;
    font-size: 38px;
    font-weight: 900;
    margin: 4px 0;
}

.waiter-pin-brand h2 {
    color: #111827;
    font-size: 36px;
    font-weight: 900;
    margin: 4px 0;
}

.waiter-pin-brand p {
    color: #4b5563;
    margin-bottom: 18px;
}

#waiter-pin-input {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.waiter-pin-dots {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 26px 0 22px;
}

.waiter-pin-dots span {
    background: #ede9fe;
    border: 2px solid #ddd6fe;
    border-radius: 8px;
    height: 16px;
    width: 36px;
}

.waiter-pin-dots span.is-filled {
    background: #6d28d9;
    border-color: #6d28d9;
}

.waiter-pin-pad {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, 1fr);
}

.waiter-pin-pad button {
    background: #faf5ff;
    border: 1px solid #ddd6fe;
    border-radius: 8px;
    color: #4c1d95;
    font-size: 24px;
    font-weight: 900;
    min-height: 72px;
    transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
}

.waiter-pin-pad button:hover {
    background: #fff;
    box-shadow: 0 10px 24px rgba(109, 40, 217, .14);
    transform: translateY(-1px);
}

.waiter-pin-pad button[type="submit"] {
    background: #6d28d9;
    border-color: #6d28d9;
    color: #fff;
}

.waiter-pin-footer {
    align-items: center;
    color: #6b7280;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}

.waiter-pin-footer a {
    color: #6d28d9;
    font-weight: 900;
}

@media (max-width: 920px) {
    .waiter-pin-screen {
        background: linear-gradient(180deg, #2e1454 0%, #f8f5ff 42%, #f8f5ff 100%);
        overflow: auto;
    }

    .waiter-pin-terminal {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .waiter-pin-brief,
    .waiter-pin-panel {
        border-radius: 8px;
    }

    .waiter-pin-panel {
        border-left: 1px solid #e9d5ff;
        margin-top: 12px;
    }

    .waiter-pin-brief h1 {
        font-size: 34px;
    }
}

@media (max-width: 520px) {
    .waiter-pin-screen {
        padding: 12px;
    }

    .waiter-pin-brief,
    .waiter-pin-panel {
        padding: 20px;
    }

    .waiter-pin-stats {
        grid-template-columns: 1fr;
    }

    .waiter-pin-pad button {
        min-height: 62px;
    }
}

.waiter-admin-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 320px minmax(0, 1fr);
}

.waiter-admin-panel,
.waiter-profile-card {
    background: #fff;
    border: 1px solid #e9d5ff;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(76, 29, 149, .08);
    padding: 16px;
}

.waiter-admin-panel h3 {
    color: #111827;
    font-size: 18px;
    font-weight: 900;
    margin: 0 0 10px;
}

.waiter-admin-panel label,
.modal-body label {
    color: #4b5563;
    font-size: 12px;
    font-weight: 800;
    margin-top: 10px;
    text-transform: uppercase;
}

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

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

.waiter-profile-card strong {
    color: #111827;
    display: block;
    font-size: 18px;
    font-weight: 900;
}

.waiter-profile-card span {
    color: #6b7280;
}

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

.waiter-status {
    border-radius: 999px;
    color: #fff !important;
    font-size: 12px;
    font-weight: 900;
    padding: 5px 10px;
}

.waiter-status-active { background: #10b981; }
.waiter-status-inactive { background: #64748b; }

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

    .waiter-profile-card {
        align-items: stretch;
        flex-direction: column;
    }
}

.floor-manager-panel h3 {
    color: #111827;
    font-size: 18px;
    font-weight: 900;
    margin: 0 0 10px;
}

.floor-manager-panel label {
    color: #4b5563;
    font-size: 12px;
    font-weight: 800;
    margin-top: 10px;
    text-transform: uppercase;
}

.floor-canvas {
    background:
        linear-gradient(#ede9fe 1px, transparent 1px),
        linear-gradient(90deg, #ede9fe 1px, transparent 1px),
        #fff;
    background-size: 32px 32px;
    border: 1px solid #ddd6fe;
    border-radius: 8px;
    display: none;
    min-height: 620px;
    overflow: hidden;
    position: relative;
}

.floor-canvas.is-active {
    display: block;
}

.floor-table-node {
    background: #fff;
    border: 2px solid #10b981;
    border-radius: 8px;
    box-shadow: 0 10px 22px rgba(17, 24, 39, .12);
    cursor: move;
    display: grid;
    gap: 3px;
    min-height: 92px;
    padding: 12px;
    position: absolute;
    touch-action: none;
    width: 135px;
}

.floor-table-node strong {
    color: #111827;
    font-size: 18px;
    font-weight: 900;
}

.floor-table-node span {
    color: #6b7280;
    font-size: 12px;
}

.floor-table-node button {
    background: #ede9fe;
    border: 0;
    border-radius: 6px;
    color: #4c1d95;
    cursor: pointer;
    font-weight: 800;
    margin-top: 4px;
    min-height: 28px;
}

.floor-table-node.status-occupied { border-color: #f59e0b; }
.floor-table-node.status-reserved { border-color: #3b82f6; }
.floor-table-node.status-cleaning { border-color: #64748b; }
.floor-table-node.status-billed { border-color: #ef4444; }
.floor-table-node.shape-circle {
    align-content: center;
    border-radius: 999px;
    height: 135px;
    justify-items: center;
    text-align: center;
}
.floor-table-node.is-dragging {
    opacity: .86;
    z-index: 20;
}

.kot-print-slip {
    color: #111827;
}

.kot-print-slip__head,
.kot-print-slip__meta {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.kot-print-slip__head h3 {
    font-size: 24px;
    font-weight: 900;
    margin: 0;
}

.kot-print-slip__head strong {
    font-size: 18px;
}

.kot-print-slip__meta {
    border-bottom: 1px dashed #9ca3af;
    color: #4b5563;
    flex-wrap: wrap;
    font-size: 12px;
    margin: 8px 0 12px;
    padding-bottom: 8px;
}

.floor-save-btn {
    background: #6d28d9;
    border: 0;
    border-radius: 8px;
    bottom: 24px;
    box-shadow: 0 10px 24px rgba(76, 29, 149, .25);
    color: #fff;
    font-weight: 900;
    min-height: 46px;
    padding: 0 18px;
    position: fixed;
    right: 24px;
    z-index: 30;
}

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

.waiter-menu-item__modifier-hint {
    align-self: start;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    color: #047857;
    display: inline-flex;
    font-size: 11px;
    font-weight: 900;
    padding: 4px 8px;
    width: max-content;
}

.waiter-cart--pro .waiter-cart-line {
    align-items: stretch;
    display: block;
}

.waiter-cart-line__top {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.waiter-modifier-block {
    border-top: 1px solid #f9a8d4;
    display: grid;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
}

.waiter-modifier-set strong {
    color: #831843;
    display: block;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.waiter-modifier-set > div {
    display: grid;
    gap: 6px;
}

.waiter-modifier-option {
    align-items: center;
    background: #fff;
    border: 1px solid #fbcfe8;
    border-radius: 8px;
    color: #111827;
    display: grid;
    gap: 8px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    margin: 0;
    padding: 8px;
}

.waiter-modifier-option input {
    margin: 0;
}

.waiter-modifier-option span {
    color: #111827;
    font-size: 13px;
    font-weight: 800;
    margin: 0;
    overflow-wrap: anywhere;
}

.waiter-modifier-option em {
    color: #047857;
    font-style: normal;
    font-weight: 900;
}

.waiter-line-note {
    margin-top: 10px;
    resize: vertical;
}

.waiter-current-bill-line span small {
    color: #9d174d;
    display: block;
    font-size: 11px;
    font-weight: 800;
    margin-top: 2px;
    white-space: normal;
}

.cashier-line-split {
    align-items: flex-start;
    border-top: 1px solid #eef2f7;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 9px 0;
}

.cashier-line-split:first-of-type {
    border-top: 0;
}

.cashier-line-split > span {
    color: #111827;
    display: grid;
    gap: 4px;
    min-width: 0;
}

.cashier-line-split small {
    color: #4b5563;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cashier-line-split small b {
    color: #047857;
}

.cashier-line-split small em {
    color: #6b7280;
    font-style: normal;
}

.cashier-line-note {
    color: #9d174d !important;
}

.inline-split-form {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 6px;
}

.inline-split-form input {
    max-width: 78px;
}

.restaurant-bar-workspace {
    background: #f6f7fb;
}

.bar-tab-launcher,
.bar-tab-card,
.bar-tab-workflow-form,
.bar-tab-line {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.bar-tab-launcher {
    align-items: end;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(5, minmax(130px, 1fr)) auto auto;
    margin-bottom: 16px;
    padding: 14px;
}

.bar-tab-launcher label,
.bar-tab-workflow-form label {
    color: #475467;
    display: block;
    font-size: 11px;
    font-weight: 900;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.bar-tab-check {
    align-items: center;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    color: #047857;
    display: inline-flex !important;
    font-weight: 900;
    gap: 8px;
    margin: 0;
    min-height: 34px;
    padding: 7px 10px;
}

.bar-tab-check input {
    margin: 0;
}

.bar-tabs-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
}

.bar-tab-card {
    box-shadow: 0 14px 34px rgba(15, 23, 42, .07);
    display: grid;
    gap: 12px;
    padding: 16px;
}

.bar-tab-card__header,
.bar-tab-card__actions,
.bar-tab-line {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.bar-tab-kicker {
    color: #047857;
    display: block;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.bar-tab-card h3 {
    color: #111827;
    font-size: 24px;
    font-weight: 900;
    margin: 2px 0 0;
}

.bar-tab-card p {
    color: #667085;
    margin: 4px 0 0;
}

.bar-tab-total {
    text-align: right;
}

.bar-tab-total span {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    color: #9a3412;
    display: inline-flex;
    font-size: 11px;
    font-weight: 900;
    padding: 4px 8px;
}

.bar-tab-total strong {
    color: #111827;
    display: block;
    font-size: 22px;
    font-weight: 900;
    margin-top: 5px;
}

.bar-tab-workflow-form {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(5, minmax(0, 1fr)) auto auto;
    padding: 12px;
}

.bar-tab-lines {
    display: grid;
    gap: 8px;
}

.bar-tab-line {
    padding: 11px 12px;
}

.bar-tab-line--empty {
    color: #667085;
    justify-content: center;
}

.bar-tab-line strong {
    color: #111827;
    display: block;
}

.bar-tab-line small {
    color: #667085;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.bar-tab-line small span {
    color: #047857;
    font-weight: 900;
}

.bar-tab-line__right {
    align-items: flex-end;
    display: grid;
    gap: 6px;
    justify-items: end;
}

.bar-comp-status {
    border-radius: 999px;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
    padding: 4px 8px;
}

.bar-comp-status--standard {
    background: #eef2ff;
    color: #3730a3;
}

.bar-comp-status--pending {
    background: #fff7ed;
    color: #9a3412;
}

.bar-comp-status--approved {
    background: #ecfdf5;
    color: #047857;
}

.bar-comp-status--rejected {
    background: #fef2f2;
    color: #b91c1c;
}

.bar-comp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: flex-end;
}

.bar-comp-actions form {
    margin: 0;
}

.bar-tab-card__actions {
    border-top: 1px solid #eef2f7;
    padding-top: 12px;
}

@media (max-width: 1180px) {
    .bar-tab-launcher,
    .bar-tab-workflow-form {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

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

    .bar-tab-launcher,
    .bar-tab-workflow-form {
        grid-template-columns: 1fr;
    }

    .bar-tab-card__header,
    .bar-tab-card__actions,
    .bar-tab-line,
    .cashier-line-split {
        align-items: stretch;
        flex-direction: column;
    }

    .bar-tab-total,
    .bar-tab-line__right {
        justify-items: stretch;
        text-align: left;
    }
}
