/**
 * Waiter WebApp Stylesheet
 * Mobile-First Dedicated Styles for Waiters Order Terminal & Bill Settlement
 *
 * @package QRFood
 */

:root {
    --waiter-bg: #121316;
    --waiter-surface: #1c1e24;
    --waiter-surface-2: #272a33;
    --waiter-border: #323642;
    --waiter-text: #f0f2f5;
    --waiter-text-muted: #9ba1ad;
    --waiter-primary: #b41f2c;
    --waiter-primary-hover: #9c1723;
    --waiter-success: #0b8209;
    --waiter-success-hover: #096d07;
    --waiter-warning: #e08e00;
    --waiter-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
body.waiter-body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    background-color: var(--waiter-bg);
    color: var(--waiter-text);
    font-family: var(--waiter-font);
    font-size: 15px;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

body.waiter-body * {
    box-sizing: border-box;
}

.waiter-hidden {
    display: none !important;
}

/* ==========================================================================
   SCREEN 1: Waiter PIN Login Screen
   ========================================================================== */
.waiter-login-screen,
.waiter-login-screen * {
    box-sizing: border-box;
}

.waiter-login-screen {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    background: radial-gradient(circle at top, #242730 0%, #121316 70%);
}

.waiter-login-card {
    width: 100%;
    max-width: 360px;
    background: var(--waiter-surface);
    border: 1px solid var(--waiter-border);
    border-radius: 16px;
    padding: 28px 20px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.45);
    text-align: center;
}

.waiter-login-brand .waiter-login-logo {
    max-height: 48px;
    margin-bottom: 14px;
    object-fit: contain;
}

.waiter-login-brand h1 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: #ffffff;
}

.waiter-login-brand p {
    font-size: 13px;
    color: var(--waiter-text-muted);
    margin: 0 0 20px 0;
}

.waiter-alert {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid #dc3545;
    color: #ff7685;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
    text-align: left;
}

.waiter-alert.alert-error {
    background: rgba(220, 53, 69, 0.15);
    border-color: #dc3545;
    color: #ff7685;
}

.waiter-alert.alert-success {
    background: rgba(34, 197, 94, 0.15);
    border-color: #22c55e;
    color: #4ade80;
}

.pin-display-wrap {
    margin-bottom: 20px;
}

.pin-display-wrap input {
    width: 100%;
    height: 54px;
    background: var(--waiter-surface-2);
    border: 2px solid var(--waiter-border);
    border-radius: 10px;
    color: #ffffff;
    font-size: 24px;
    font-family: monospace;
    font-weight: 700;
    letter-spacing: 8px;
    text-align: center;
    outline: none;
    transition: border-color 0.2s;
}

.pin-display-wrap input:focus {
    border-color: var(--waiter-primary);
}

/* Virtual Touch Keypad */
.waiter-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.keypad-btn {
    height: 52px;
    background: var(--waiter-surface-2);
    border: 1px solid var(--waiter-border);
    border-radius: 10px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, transform 0.1s;
}

.keypad-btn:active {
    background: #383c48;
    transform: scale(0.96);
}

.keypad-btn.btn-clear {
    color: #f87171;
    font-size: 17px;
}

.keypad-btn.btn-backspace {
    color: var(--waiter-text-muted);
}

.waiter-btn-primary {
    width: 100%;
    height: 48px;
    min-height: 48px;
    background: var(--waiter-primary);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    line-height: 1;
    transition: background 0.2s, transform 0.1s;
}

.waiter-btn-primary:active {
    transform: scale(0.98);
    background: var(--waiter-primary-hover);
}

.waiter-btn-secondary {
    height: 48px;
    min-height: 48px;
    padding: 0 16px;
    background: var(--waiter-surface-2);
    border: 1px solid var(--waiter-border);
    border-radius: 10px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-sizing: border-box;
    line-height: 1;
    text-decoration: none;
}

.waiter-btn-primary:hover,
.waiter-btn-primary:focus,
.waiter-btn-primary:visited,
.waiter-btn-secondary:hover,
.waiter-btn-secondary:focus,
.waiter-btn-secondary:visited {
    text-decoration: none;
    color: #ffffff;
}

.waiter-btn-secondary:active {
    background: #383c48;
}

.waiter-btn-primary .dashicons,
.waiter-btn-secondary .dashicons,
.button-has-icon .dashicons {
    font-size: 18px !important;
    width: 18px !important;
    height: 18px !important;
    line-height: 1 !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.button-has-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    vertical-align: middle !important;
}

.button-small.button-has-icon {
    min-height: 30px !important;
    height: 30px !important;
    padding: 0 10px !important;
    font-size: 13px !important;
}

/* ==========================================================================
   SCREEN 2: Waiter WebApp Shell & Header
   ========================================================================== */
.waiter-app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: 74px; /* Room for bottom bar */
}

.waiter-app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 14px;
    background: var(--waiter-surface);
    border-bottom: 1px solid var(--waiter-border);
}

.waiter-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.waiter-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.waiter-header-logo {
    height: 32px;
    width: 32px;
    object-fit: contain;
    display: block;
    border-radius: 6px;
}

.waiter-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.waiter-profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: var(--waiter-surface-2);
    border: 1px solid var(--waiter-border);
    border-radius: 20px;
    font-size: 13px;
    color: var(--waiter-text-muted);
}

.waiter-profile-badge .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: var(--waiter-primary);
}

.waiter-profile-badge strong {
    color: #ffffff;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.waiter-header-bottom {
    width: 100%;
}

.waiter-nav-tabs {
    display: flex;
    width: 100%;
    background: var(--waiter-surface-2);
    border-radius: 8px;
    padding: 3px;
    gap: 3px;
}

.waiter-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--waiter-text-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.waiter-tab-btn.is-active {
    background: var(--waiter-primary);
    color: #ffffff;
}

.waiter-tab-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.waiter-badge-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: #ffffff;
    color: var(--waiter-primary);
    border-radius: 9px;
    font-size: 11px;
    font-weight: 800;
}

.waiter-tab-btn.is-active .waiter-badge-count {
    background: #ffffff;
    color: var(--waiter-primary);
}

.waiter-btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--waiter-surface-2);
    border: 1px solid var(--waiter-border);
    color: var(--waiter-text-muted);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.waiter-btn-logout:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* ==========================================================================
   VIEW 1: Order Terminal
   ========================================================================== */
.waiter-view-pane {
    display: none;
    padding: 12px 14px;
}

.waiter-view-pane.is-active {
    display: block;
}

/* Table selector bar */
.waiter-table-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--waiter-surface);
    border: 1px solid var(--waiter-border);
    border-radius: 10px;
    margin-bottom: 12px;
}

.table-bar-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--waiter-text-muted);
}

.active-table-badge {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    background: var(--waiter-surface-2);
    padding: 3px 8px;
    border-radius: 6px;
}

.waiter-btn-table-picker {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: var(--waiter-primary);
    border: none;
    border-radius: 6px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

/* Search and categories */
.waiter-filter-bar {
    margin-bottom: 14px;
}

.waiter-search-box {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.waiter-search-box .dashicons-search {
    position: absolute;
    left: 12px;
    color: var(--waiter-text-muted);
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.waiter-search-box input {
    width: 100%;
    height: 42px;
    padding: 0 36px;
    background: var(--waiter-surface);
    border: 1px solid var(--waiter-border);
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
}

.waiter-search-box input:focus {
    border-color: var(--waiter-primary);
}

.btn-clear-search {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: var(--waiter-text-muted);
    font-size: 20px;
    cursor: pointer;
}

.waiter-categories-scroller {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.waiter-categories-scroller::-webkit-scrollbar {
    display: none;
}

.cat-pill {
    flex-shrink: 0;
    padding: 7px 14px;
    background: var(--waiter-surface);
    border: 1px solid var(--waiter-border);
    border-radius: 20px;
    color: var(--waiter-text-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.cat-pill.is-active {
    background: var(--waiter-surface-2);
    border-color: var(--waiter-primary);
    color: #ffffff;
}

/* Catalog Product Grid */
.waiter-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.product-card-touch {
    display: flex;
    flex-direction: column;
    background: var(--waiter-surface);
    border: 1px solid var(--waiter-border);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.1s, border-color 0.15s;
}

.product-card-touch:active {
    transform: scale(0.98);
    border-color: var(--waiter-primary);
}

.product-card-touch .card-img-wrap {
    position: relative;
    width: 100%;
    height: 110px;
    background: #000000;
}

.product-card-touch .card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-touch .badge-variable {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0,0,0,0.75);
    color: #f0f2f5;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.product-card-touch .card-details {
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card-touch .product-title {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 6px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-touch .product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.product-card-touch .product-price {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.product-card-touch .btn-add-touch {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--waiter-primary);
    border: none;
    border-radius: 6px;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
}

/* ==========================================================================
   VIEW 2: Open Tables (Matches admin-tables.php)
   ========================================================================== */
.waiter-pane-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.waiter-pane-heading h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
}

.waiter-btn-refresh {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: var(--waiter-surface);
    border: 1px solid var(--waiter-border);
    border-radius: 6px;
    color: var(--waiter-text-muted);
    cursor: pointer;
}

.waiter-btn-refresh:active {
    background: var(--waiter-surface-2);
}

/* Open Tables Grid (Identical structure to admin-tables.php) */
.tables-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.waiter-body .table-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 140px;
    height: 140px;
    background: var(--waiter-surface);
    border: 1px solid var(--waiter-border);
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
    cursor: pointer;
}

.waiter-body .table-card:active {
    transform: scale(0.96);
    border-color: var(--waiter-primary);
}

.waiter-body .table-card .table-number {
    font-size: 2.2em;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.08);
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
}

.waiter-body .table-card .table-customer-tag {
    font-size: 11px;
    color: #ffffff;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    margin-bottom: 2px;
}

.waiter-body .table-card .table-orders {
    font-size: 12px;
    color: var(--waiter-text-muted);
    font-weight: 600;
}

.waiter-body .table-card .table-total {
    font-size: 12px;
    color: #4ade80;
    font-weight: 700;
    margin-top: 2px;
}

.waiter-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--waiter-text-muted);
}

.waiter-empty-state .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: var(--waiter-border);
    margin-bottom: 12px;
}

/* ==========================================================================
   Floating Bottom Summary Bar
   ========================================================================== */
.waiter-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 150;
    display: none;
    align-items: center;
    justify-content: space-between;
    height: 66px;
    padding: 0 16px;
    background: var(--waiter-surface);
    border-top: 1px solid var(--waiter-border);
    box-shadow: 0 -4px 16px rgba(0,0,0,0.3);
}

.bottom-bar-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.bottom-bar-cart-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--waiter-surface-2);
    border-radius: 8px;
    color: #ffffff;
}

.bottom-bar-cart-icon .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--waiter-primary);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bottom-bar-text {
    display: flex;
    flex-direction: column;
}

.bottom-bar-text .table-info {
    font-size: 12px;
    color: var(--waiter-text-muted);
}

.bottom-bar-text .total-info {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.waiter-btn-submit-quick {
    width: auto;
    height: 44px;
    padding: 0 18px;
    font-size: 14px;
    border-radius: 8px;
}

/* ==========================================================================
   Modals & Drawers
   ========================================================================== */
.waiter-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    display: none;
    align-items: flex-end; /* Drawer style on mobile */
    justify-content: center;
}

.waiter-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
}

.waiter-drawer-content,
.waiter-modal-dialog {
    position: relative;
    z-index: 201;
    width: 100%;
    max-width: 480px;
    background: var(--waiter-surface);
    border: 1px solid var(--waiter-border);
    border-radius: 16px 16px 0 0;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -8px 24px rgba(0,0,0,0.5);
    overflow: hidden;
}

@media (min-width: 600px) {
    .waiter-modal {
        align-items: center;
    }
    .waiter-drawer-content,
    .waiter-modal-dialog {
        border-radius: 16px;
        max-height: 80vh;
    }
}

.waiter-drawer-header,
.waiter-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--waiter-border);
}

.waiter-drawer-header h2,
.waiter-modal-header h2 {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
}

.waiter-drawer-header p {
    font-size: 13px;
    color: var(--waiter-text-muted);
    margin: 3px 0 0 0;
}

.waiter-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--waiter-surface-2);
    border: none;
    border-radius: 6px;
    color: var(--waiter-text-muted);
    cursor: pointer;
}

.waiter-drawer-body,
.waiter-modal-body {
    padding: 16px;
    overflow-y: auto;
    flex-grow: 1;
}

.waiter-drawer-footer {
    padding: 14px 16px;
    border-top: 1px solid var(--waiter-border);
    background: var(--waiter-surface-2);
}

.waiter-modal-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-top: 1px solid var(--waiter-border);
    background: var(--waiter-surface-2);
}

/* Order Drawer Item Rows */
.drawer-items-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.drawer-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: var(--waiter-surface-2);
    border-radius: 8px;
}

.drawer-item-info {
    flex-grow: 1;
    margin-right: 10px;
}

.drawer-item-info .name {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    display: block;
}

.drawer-item-info .attrs {
    font-size: 12px;
    color: var(--waiter-text-muted);
    display: block;
    margin-top: 2px;
}

.drawer-item-info .attrs.attrs-addons {
    color: #f87171;
}

.waiter-theme-light .drawer-item-info .attrs.attrs-addons {
    color: var(--waiter-primary);
}

.drawer-item-info .attrs.attrs-note {
    font-style: italic;
    color: #94a3b8;
}

.waiter-theme-light .drawer-item-info .attrs.attrs-note {
    font-style: italic;
    color: #64748b;
}

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

.btn-qty-touch {
    width: 30px;
    height: 30px;
    background: #323642;
    border: none;
    border-radius: 6px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-val {
    font-weight: 700;
    min-width: 18px;
    text-align: center;
}

.drawer-item-price {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    min-width: 70px;
    text-align: right;
}

/* Customer Name Field */
.waiter-customer-box {
    margin-top: 14px;
}

.waiter-customer-box label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    color: var(--waiter-text-muted);
    margin-bottom: 6px;
}

.waiter-customer-box input {
    width: 100%;
    background: var(--waiter-surface-2);
    border: 1px solid var(--waiter-border);
    border-radius: 8px;
    padding: 10px 12px;
    color: #ffffff;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
}

.waiter-customer-box input:focus {
    border-color: var(--waiter-primary);
}

/* Notes Field */
.waiter-notes-box {
    margin-top: 14px;
}

.waiter-notes-box label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    color: var(--waiter-text-muted);
    margin-bottom: 6px;
}

.waiter-notes-box textarea {
    width: 100%;
    background: var(--waiter-surface-2);
    border: 1px solid var(--waiter-border);
    border-radius: 8px;
    padding: 10px;
    color: #ffffff;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    outline: none;
}

.waiter-notes-box textarea:focus {
    border-color: var(--waiter-primary);
}

.drawer-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    margin-bottom: 12px;
}

.drawer-total-row strong {
    font-size: 18px;
    color: #ffffff;
}

.waiter-modal-footer,
.drawer-actions-row,
.card-actions,
.split-actions,
.cashier-actions {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.waiter-modal-footer .waiter-btn-secondary,
.drawer-actions-row .waiter-btn-secondary,
.card-actions .waiter-btn-secondary,
.split-actions .waiter-btn-secondary,
.cashier-actions .waiter-btn-secondary {
    height: 48px;
    min-height: 48px;
    max-height: 48px;
    padding: 0 18px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    flex-shrink: 0;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.waiter-modal-footer .waiter-btn-primary,
.drawer-actions-row .waiter-btn-primary,
.card-actions .waiter-btn-primary,
.split-actions .waiter-btn-primary,
.cashier-actions .waiter-btn-primary {
    flex-grow: 1;
    width: auto;
    height: 48px;
    min-height: 48px;
    max-height: 48px;
    border-radius: 10px;
    box-sizing: border-box;
    font-size: 15px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ==========================================================================
   Table Picker Modal
   ========================================================================== */
.waiter-modal-tip {
    font-size: 13px;
    color: var(--waiter-text-muted);
    margin: 0 0 12px 0;
}

.table-input-group {
    display: flex;
    align-items: center;
    background: var(--waiter-surface-2);
    border: 2px solid var(--waiter-border);
    border-radius: 10px;
    padding: 4px 12px;
    margin-bottom: 16px;
}

.table-input-group .prefix {
    font-weight: 700;
    color: var(--waiter-text-muted);
    margin-right: 8px;
}

.table-input-group input {
    flex-grow: 1;
    height: 44px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    outline: none;
}

.quick-tables-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.quick-table-btn {
    height: 42px;
    background: var(--waiter-surface-2);
    border: 1px solid var(--waiter-border);
    border-radius: 6px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.quick-table-btn:active,
.quick-table-btn.is-selected {
    background: var(--waiter-primary);
    border-color: var(--waiter-primary);
}

/* ==========================================================================
   Variation Modal
   ========================================================================== */
.var-product-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--waiter-border);
    margin-bottom: 14px;
}

.var-product-preview img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.var-product-preview h3 {
    margin: 0 0 4px 0;
    font-size: 15px;
    color: #ffffff;
}

.var-price {
    font-size: 16px;
    color: #4ade80;
}

.var-attr-group {
    margin-bottom: 14px;
}

.var-attr-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--waiter-text-muted);
    margin-bottom: 6px;
}

.var-attr-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.var-opt-btn {
    padding: 7px 12px;
    background: var(--waiter-surface-2);
    border: 1px solid var(--waiter-border);
    border-radius: 6px;
    color: #ffffff;
    font-size: 13px;
    cursor: pointer;
}

.var-opt-btn.is-selected {
    background: var(--waiter-primary);
    border-color: var(--waiter-primary);
}

/* Addons in Waiter / POS Modal */
.var-addons-list {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.waiter-addon-group {
    background: var(--waiter-surface-2);
    border: 1px solid var(--waiter-border);
    border-radius: 8px;
    overflow: hidden;
}

.waiter-addon-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--waiter-border);
}

.waiter-addon-group-header .group-name {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
}

.waiter-addon-group-header .group-badge {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    background: #1e3a8a;
    color: #93c5fd;
    font-weight: 600;
}

.waiter-addon-items {
    padding: 6px 12px;
}

.waiter-addon-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--waiter-border);
}

.waiter-addon-row:last-child {
    border-bottom: none;
}

.waiter-addon-row .addon-info {
    display: flex;
    flex-direction: column;
}

.waiter-addon-row .addon-name {
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
}

.waiter-addon-row .addon-price {
    font-size: 12px;
    color: #f87171;
    font-weight: 600;
}

.waiter-addon-stepper {
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-waiter-addon-minus,
.btn-waiter-addon-plus {
    width: 28px;
    height: 28px;
    background: #323642;
    border: none;
    border-radius: 6px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-waiter-addon-minus:disabled,
.btn-waiter-addon-plus:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.waiter-addon-qty {
    font-size: 13px;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
    color: #ffffff;
}

.var-notes-wrapper {
    margin-top: 14px;
}

.var-notes-wrapper label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--waiter-text-muted);
    margin-bottom: 6px;
}

.var-notes-wrapper input {
    width: 100%;
    padding: 8px 12px;
    background: var(--waiter-surface-2);
    border: 1px solid var(--waiter-border);
    border-radius: 6px;
    color: #ffffff;
    font-size: 13px;
    box-sizing: border-box;
}

.var-notes-wrapper input:focus {
    border-color: var(--waiter-primary);
    outline: none;
}

/* Light Theme Overrides for Addons */
.waiter-theme-light .waiter-addon-group {
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.waiter-theme-light .waiter-addon-group-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.waiter-theme-light .waiter-addon-group-header .group-name {
    color: #1e293b;
}

.waiter-theme-light .waiter-addon-group-header .group-badge {
    background: #e0f2fe;
    color: #0369a1;
}

.waiter-theme-light .waiter-addon-row {
    border-bottom: 1px solid #f1f5f9;
}

.waiter-theme-light .waiter-addon-row .addon-name {
    color: #1e293b;
}

.waiter-theme-light .waiter-addon-row .addon-price {
    color: var(--waiter-primary);
}

.waiter-theme-light .btn-waiter-addon-minus,
.waiter-theme-light .btn-waiter-addon-plus {
    background: #f1f5f9;
    color: #1e293b;
}

.waiter-theme-light .waiter-addon-qty {
    color: #1e293b;
}

.waiter-theme-light .var-notes-wrapper input {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #1e293b;
}


/* ==========================================================================
   Table Bill & Multi-Order Settlement Drawer
   ========================================================================== */
.bill-multi-summary-card {
    background: var(--waiter-surface-2);
    border: 1px solid var(--waiter-border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.bill-multi-summary-card.is-selected {
    border-color: var(--waiter-primary);
    box-shadow: 0 0 0 1px var(--waiter-primary);
}

.multi-summary-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.multi-header-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.multi-header-text .dashicons {
    color: var(--waiter-primary);
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.multi-total-group {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--waiter-text-muted);
}

.multi-total-group strong {
    font-size: 18px;
    font-weight: 700;
    color: #4ade80;
}

.waiter-btn-pay-all {
    width: 100%;
    height: 42px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    white-space: nowrap;
}

/* Bill Split Persons - Actions in Summary */
.multi-summary-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bill-single-split-wrap {
    margin-bottom: 12px;
    display: flex;
    justify-content: flex-end;
}

.waiter-btn-split-persons {
    height: 42px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    cursor: pointer;
}

.waiter-btn-split-persons .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #60a5fa;
}

.multi-summary-actions .waiter-btn-pay-all {
    flex: 1;
}

/* Consolidated Table Banner (Active when bill split is applied) */
.bill-consolidated-banner {
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.15) 0%, rgba(59, 130, 246, 0.08) 100%);
    border: 1px solid rgba(96, 165, 250, 0.35);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 14px;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

.consolidated-banner-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

.consolidated-banner-left {
    flex: 1;
    min-width: 0;
}

.consolidated-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #3b82f6;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.consolidated-badge-tag .dashicons {
    font-size: 13px;
    width: 13px;
    height: 13px;
}

.consolidated-banner-left p {
    margin: 2px 0 4px;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}

.consolidated-progress-bar {
    font-size: 12px;
    font-weight: 600;
    color: #93c5fd;
}

.consolidated-history-list {
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    box-sizing: border-box;
}

.consolidated-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.25);
    gap: 8px;
    white-space: nowrap;
    width: 100%;
    box-sizing: border-box;
}

.consolidated-history-item.is-paid {
    color: #86efac;
    border-left: 2px solid #22c55e;
}

.consolidated-history-item.is-cashier {
    color: #fbbf24;
    border-left: 2px solid #f59e0b;
}

.consolidated-history-item.is-pending {
    color: #94a3b8;
    font-style: italic;
    border-left: 2px solid #475569;
}

.consolidated-history-item .quota-meta {
    font-size: 11px;
    color: #94a3b8 !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    margin-left: auto;
}

.consolidated-history-item .quota-meta .dashicons {
    font-size: 13px;
    width: 13px;
    height: 13px;
    vertical-align: middle;
    color: #94a3b8 !important;
}

.btn-cancel-consolidation {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 12px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: 8px;
    color: #fca5a5;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn-cancel-consolidation:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: #ef4444;
    color: #ffffff;
}

.btn-cancel-consolidation .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* Stacked Cards Deck Effect on Consolidated Orders */
.bill-orders-container.is-stacked-deck {
    position: relative;
    gap: 0;
    margin-bottom: 24px;
}

.bill-orders-container.is-stacked-deck .bill-order-card {
    position: relative;
    margin-top: -38px;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.45);
    border-color: rgba(96, 165, 250, 0.4);
    background: linear-gradient(180deg, var(--waiter-surface) 0%, var(--waiter-surface-2) 100%);
}

.bill-orders-container.is-stacked-deck .bill-order-card:first-child {
    margin-top: 0;
}

.bill-orders-container.is-stacked-deck .bill-order-card:hover {
    transform: translateY(-8px);
    z-index: 10;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.6);
}

.bill-orders-container.is-stacked-deck .btn-pay-single-order {
    display: none !important;
}

/* ==========================================================================
   Step 6: Embedded Split Persons View Inside Drawer
   ========================================================================== */
.bill-split-persons-view {
    padding: 6px 0;
}

.split-persons-view-header {
    text-align: center;
    margin-bottom: 18px;
}

.split-persons-view-header .split-big-icon {
    font-size: 36px;
    width: 36px;
    height: 36px;
    color: #60a5fa;
    margin-bottom: 6px;
}

.split-persons-view-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 4px 0;
}

.split-persons-view-header p {
    font-size: 13px;
    color: var(--waiter-text-muted);
    margin: 0;
}

.split-persons-view-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.split-persons-total-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--waiter-surface-2);
    border: 1px solid var(--waiter-border);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 13px;
    color: var(--waiter-text-muted);
}

.split-persons-total-card strong {
    font-size: 18px;
    color: #ffffff;
    font-weight: 700;
}

.split-persons-counter-box {
    margin-bottom: 4px;
}

.split-persons-counter-box label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--waiter-text-muted);
    margin-bottom: 10px;
    text-align: center;
}

.split-stepper-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 14px;
}

.split-stepper-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--waiter-surface-2);
    border: 1px solid var(--waiter-border);
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
    user-select: none;
}

.split-stepper-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.split-stepper-btn:active {
    transform: scale(0.94);
}

.split-stepper-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.split-stepper-display span {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.split-stepper-display small {
    font-size: 12px;
    color: var(--waiter-text-muted);
    margin-top: 4px;
}

.split-quick-presets {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.btn-split-preset {
    flex: 1;
    max-width: 50px;
    height: 32px;
    background: var(--waiter-surface-2);
    border: 1px solid var(--waiter-border);
    border-radius: 6px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.btn-split-preset:hover {
    background: rgba(96, 165, 250, 0.15);
    border-color: #60a5fa;
    color: #93c5fd;
}

.btn-split-preset.is-active {
    background: #60a5fa;
    border-color: #60a5fa;
    color: #ffffff;
}

.split-persons-result-box {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 10px;
    padding: 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.result-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--waiter-text-muted);
}

.result-val {
    font-size: 24px;
    font-weight: 800;
    color: #4ade80;
}

.result-sub {
    font-size: 12px;
    color: var(--waiter-text-muted);
}

.split-persons-view-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.split-persons-view-actions button {
    flex: 1;
}

.bill-orders-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 18px;
}

.bill-order-card {
    background: var(--waiter-surface);
    border: 1px solid var(--waiter-border);
    border-radius: 12px;
    padding: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.bill-order-card.is-selected {
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px #3b82f6;
}

.bill-order-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 10px;
    gap: 8px;
    flex-wrap: wrap;
}

.bill-order-title-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bill-order-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #60a5fa;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.bill-order-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    line-height: 1;
    color: var(--waiter-text-muted);
}

.bill-order-time .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    line-height: 1;
    margin: 0;
    position: relative;
    top: -1px;
}

.bill-header-subtitle {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.bill-header-customer {
    color: var(--waiter-text-muted);
    font-weight: 400;
}

.bill-header-customer strong {
    color: #ffffff;
    font-weight: 600;
}

.bill-order-customer {
    font-size: 12px;
    color: var(--waiter-text-muted);
    font-weight: 500;
}

.bill-order-customer-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    line-height: 1;
    color: #ffffff;
}

.bill-order-customer-badge .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    line-height: 1;
    margin: 0;
    position: relative;
    top: -1px;
    color: var(--waiter-text-muted);
}

.bill-order-cashier-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #fbbf24;
    line-height: 1.2;
    margin-left: auto;
}

.bill-order-cashier-badge .dashicons {
    font-size: 13px;
    width: 13px;
    height: 13px;
    line-height: 1;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fbbf24;
}

.bill-order-card.is-referred-cashier {
    border-color: rgba(245, 158, 11, 0.35);
}

.bill-order-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.bill-item-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    font-size: 13px;
    padding-bottom: 6px;
    border-bottom: 1px dashed rgba(255,255,255,0.08);
}

.bill-item-row:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.bill-item-row .name {
    color: #ffffff;
    flex: 1;
    min-width: 0;
}

.bill-item-attrs {
    display: block;
    font-size: 11px;
    color: var(--waiter-text-muted);
    margin-top: 2px;
}

.bill-item-row .price {
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.bill-order-notes {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.1);
    padding: 6px 10px;
    border-radius: 6px;
    margin-top: 6px;
}

.bill-order-notes .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.bill-order-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.bill-order-subtotal {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--waiter-text-muted);
}

.bill-order-subtotal strong {
    font-size: 16px;
    font-weight: 700;
    color: #4ade80;
}

.btn-pay-single-order {
    height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.bill-methods-card {
    background: var(--waiter-surface-2);
    border: 1px solid var(--waiter-border);
    border-radius: 12px;
    padding: 16px;
    margin-top: 8px;
}

.bill-target-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--waiter-border);
    margin-bottom: 14px;
}

.bill-target-info {
    display: flex;
    flex-direction: column;
}

.bill-target-subtitle {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--waiter-text-muted);
    font-weight: 600;
    margin-bottom: 2px;
}

.bill-target-info h3 {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.bill-target-amount {
    font-size: 20px;
    font-weight: 800;
    color: #4ade80;
}

.bill-methods-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bill-method-btn {
    display: flex;
    align-items: center;
    padding: 14px;
    background: var(--waiter-surface-2);
    border: 1px solid var(--waiter-border);
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s, border-color 0.15s;
}

.bill-method-btn:active {
    background: #323642;
    border-color: var(--waiter-primary);
}

.method-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    margin-right: 14px;
    color: #ffffff;
    flex-shrink: 0;
}

.method-icon-wrap.pix-bg {
    background: #03a696;
}

.method-icon-wrap.card-bg {
    background: #2563eb;
}

.method-icon-wrap.cashier-bg {
    background: #e08e00;
}

.method-icon-wrap.split-bg {
    background: #6366f1;
}

.method-details {
    flex-grow: 1;
}

.method-details strong {
    display: block;
    font-size: 15px;
    color: #ffffff;
}

.method-details span {
    font-size: 12px;
    color: var(--waiter-text-muted);
}

.bill-method-btn .dashicons-arrow-right-alt2 {
    color: var(--waiter-text-muted);
}

/* ==========================================================================
   Pix Payment Sub-View (Matches Checkout thankyou.php styles)
   ========================================================================== */
.bill-pix-view {
    text-align: center;
    padding: 10px 0;
}

.pix-logo {
    max-height: 42px;
    margin-bottom: 12px;
    object-fit: contain;
}

.pix-timer-box {
    margin: 10px auto;
    font-size: 15px;
    color: var(--waiter-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.pix-timer-box strong {
    color: #ffffff;
    font-weight: 700;
}

.pix-instruction {
    font-size: 13px;
    color: var(--waiter-text-muted);
    max-width: 320px;
    margin: 0 auto 16px auto;
}

.pix-qr-container {
    display: inline-block;
    padding: 14px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    margin-bottom: 14px;
}

.pix-qr-container img {
    width: 220px;
    height: 220px;
    display: block;
}

.pix-polling-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: var(--waiter-text-muted);
    margin: 0 0 14px 0;
}

.pix-amount-badge {
    font-size: 15px;
    color: var(--waiter-text-muted);
    margin-bottom: 18px;
}

.pix-amount-badge strong {
    font-size: 18px;
    color: #4ade80;
}

/* Card Prompt View */
.card-prompt-box,
.cashier-prompt-box {
    text-align: center;
    padding: 20px 10px;
}

.card-big-icon,
.cashier-big-icon {
    font-size: 48px;
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    color: #3b82f6;
}

.cashier-big-icon {
    color: #e08e00;
}

.card-prompt-box h3,
.cashier-prompt-box h3 {
    font-size: 18px;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.card-prompt-box p,
.cashier-prompt-box p {
    font-size: 14px;
    color: var(--waiter-text-muted);
    margin: 0 0 14px 0;
}

.card-amount-box {
    padding: 12px;
    background: var(--waiter-surface-2);
    border-radius: 8px;
    font-size: 15px;
    margin-bottom: 16px;
}

.card-amount-box strong {
    font-size: 20px;
    color: #4ade80;
}

.card-type-options {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
}

.card-type-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--waiter-surface-2);
    border: 1px solid var(--waiter-border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.card-actions {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

/* ==========================================================================
   Split Payment Calculator Sub-View
   ========================================================================== */
.bill-split-view {
    padding: 10px 0;
}

.split-calculator-header {
    text-align: center;
    margin-bottom: 16px;
}

.split-big-icon {
    font-size: 44px;
    width: 44px;
    height: 44px;
    margin-bottom: 8px;
    color: #6366f1;
}

.split-calculator-header h3 {
    font-size: 18px;
    color: #ffffff;
    margin: 0 0 6px 0;
}

.split-calculator-header p {
    font-size: 13px;
    color: var(--waiter-text-muted);
    margin: 0 0 12px 0;
}

.split-target-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--waiter-surface-2);
    border: 1px solid var(--waiter-border);
    border-radius: 20px;
    font-size: 14px;
    color: var(--waiter-text-muted);
}

.split-target-badge strong {
    font-size: 16px;
    color: #4ade80;
}

.split-methods-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.split-method-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: var(--waiter-surface-2);
    border: 1px solid var(--waiter-border);
    border-radius: 10px;
    transition: border-color 0.2s;
}

.split-method-row:focus-within {
    border-color: #6366f1;
}

.split-method-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    user-select: none;
}

.split-method-check {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #6366f1;
}

.split-input-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--waiter-surface);
    border: 1px solid var(--waiter-border);
    border-radius: 8px;
    width: 130px;
}

.split-input-wrap .currency-prefix {
    font-size: 13px;
    font-weight: 600;
    color: var(--waiter-text-muted);
}

.split-amount-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-align: right;
    font-family: inherit;
}

.split-amount-input:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.split-actions {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

/* Toast Notifications */
.waiter-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 300;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
    animation: fadeInToast 0.2s ease-out;
}

.waiter-toast.toast-success {
    background: #0b8209;
    color: #ffffff;
}

.waiter-toast.toast-error {
    background: #dc2626;
    color: #ffffff;
}

@keyframes fadeInToast {
    from { opacity: 0; transform: translate(-50%, 10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* CSS Animations */
.spin {
    animation: spin 1s infinite linear;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(359deg); }
}

/* TABLE CALL ALERT MODAL */

.waiter-call-alert-dialog {
    max-width: 420px;
    border: 1px solid var(--waiter-border);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
    background: var(--waiter-surface);
}

.waiter-call-alert-body {
    padding: 24px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.waiter-call-icon-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 2px;
}

.waiter-call-pulse-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(224, 142, 0, 0.15);
    color: #e08e00;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    animation: waiterPulseBell 1.5s infinite;
}

.waiter-call-pulse-icon .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
}

@keyframes waiterPulseBell {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(224, 142, 0, 0.5);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 14px rgba(224, 142, 0, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(224, 142, 0, 0);
    }
}

.waiter-call-table-highlight {
    margin: 4px 0;
}

.waiter-call-table-highlight span {
    display: inline-block;
    background: var(--waiter-surface-2);
    border: 1px solid var(--waiter-border);
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
    padding: 8px 24px;
    border-radius: 24px;
}

.waiter-call-message {
    font-size: 15px;
    color: var(--waiter-text-muted);
    margin: 0;
    line-height: 1.5;
}

.waiter-call-time {
    display: inline-block;
    font-size: 12px;
    color: #8c9ba5;
    background: var(--waiter-surface-2);
    padding: 4px 12px;
    border-radius: 12px;
    border: 1px solid var(--waiter-border);
}

.waiter-call-alert-actions {
    display: flex;
    gap: 10px;
    padding: 14px 16px;
    border-top: 1px solid var(--waiter-border);
    background: var(--waiter-surface-2);
}

.waiter-call-alert-actions .waiter-btn-secondary {
    flex: 1;
    height: 48px;
    min-height: 48px;
    border-radius: 10px;
}

.waiter-call-alert-actions .waiter-btn-primary {
    flex: 1.4;
    height: 48px;
    min-height: 48px;
    border-radius: 10px;
}

/* CALLING TABLE HIGHLIGHT ON TABLES GRID */

.waiter-body .table-card.table-calling {
    border: 2px solid #e08e00 !important;
    background: linear-gradient(180deg, rgba(224, 142, 0, 0.12) 0%, var(--waiter-surface) 100%) !important;
    animation: tableCardPulse 2s infinite ease-in-out;
}

.table-calling-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #e08e00;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 6px rgba(224, 142, 0, 0.4);
}

.table-calling-badge .dashicons {
    font-size: 13px;
    width: 13px;
    height: 13px;
}

@keyframes tableCardPulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(224, 142, 0, 0.2);
    }
    50% {
        box-shadow: 0 6px 20px rgba(224, 142, 0, 0.45);
    }
}

/* Hide store closed notice on waiter terminal */
body.waiter-body .store-closed-notice {
    display: none !important;
}

/* ==========================================================================
   Order Edit & Preparation Badge Styles inside Table Bill & Drawer
   ========================================================================== */
.bill-order-prep-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(249, 115, 22, 0.15);
    border: 1px solid rgba(249, 115, 22, 0.4);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #fb923c;
    line-height: 1.2;
    margin-left: auto;
}

.bill-order-prep-badge .dashicons {
    font-size: 13px;
    width: 13px;
    height: 13px;
    line-height: 1;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}

.bill-order-prep-badge.is-completed {
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #c084fc;
}

.bill-order-cashier-badge + .bill-order-prep-badge,
.bill-order-cashier-badge + .btn-edit-order-trigger {
    margin-left: 0;
}

.btn-edit-order-trigger {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid var(--waiter-border);
    transition: all 0.2s ease;
    margin-left: auto;
}

.btn-edit-order-trigger:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.btn-edit-order-trigger .dashicons {
    font-size: 13px;
    width: 13px;
    height: 13px;
    line-height: 1;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-edit-order-trigger.is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--waiter-text-muted);
}

/* Edit Mode Banner inside Order Drawer */
.drawer-edit-mode-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 12px;
    color: #fbbf24;
    font-size: 13px;
    font-weight: 600;
}

.drawer-edit-mode-banner.waiter-hidden {
    display: none !important;
}

.drawer-edit-mode-banner > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.drawer-edit-mode-banner .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.drawer-edit-mode-banner .btn-cancel-edit-mode {
    background: transparent;
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 6px;
    color: #fbbf24;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.drawer-edit-mode-banner .btn-cancel-edit-mode:hover {
    background: rgba(245, 158, 11, 0.25);
    color: #ffffff;
}

/* ==========================================================================
   Light Theme Modifier (For Admin Desktop POS Terminal)
   ========================================================================== */
.waiter-theme-light {
    --waiter-bg: #f8fafc;
    --waiter-surface: #ffffff;
    --waiter-surface-2: #f1f5f9;
    --waiter-border: #e2e8f0;
    --waiter-text: #1e293b;
    --waiter-text-muted: #64748b;
    --waiter-primary: #b41f2c;
    --waiter-primary-hover: #9c1723;
    --waiter-success: #0b8209;
    --waiter-success-hover: #096d07;
    --waiter-warning: #e08e00;
}

.waiter-theme-light .waiter-profile-badge strong {
    color: #1e293b;
}

.waiter-theme-light .waiter-search-box input {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #1e293b;
}

.waiter-theme-light .waiter-search-box input:focus {
    border-color: var(--waiter-primary);
    box-shadow: 0 0 0 2px rgba(180, 31, 44, 0.12);
}

.waiter-theme-light .cat-pill {
    background: #ffffff;
    border-color: #e2e8f0;
    color: #64748b;
}

.waiter-theme-light .cat-pill:hover {
    background: #f8fafc;
    color: #1e293b;
}

.waiter-theme-light .cat-pill.is-active {
    background: #fef2f2;
    border-color: var(--waiter-primary);
    color: var(--waiter-primary);
}

.waiter-theme-light .product-card-touch {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.waiter-theme-light .product-card-touch:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.waiter-theme-light .product-card-touch .product-title {
    color: #1e293b;
}

.waiter-theme-light .product-card-touch .product-price {
    color: var(--waiter-primary);
}

.waiter-theme-light .waiter-table-bar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.waiter-theme-light .waiter-table-bar .table-bar-label {
    color: #64748b;
}

.waiter-theme-light .active-table-badge {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #1e293b;
}

.waiter-theme-light .waiter-customer-box input,
.waiter-theme-light .waiter-notes-box textarea,
.waiter-theme-light .table-input-group input {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #1e293b;
}

.waiter-theme-light .waiter-customer-box label,
.waiter-theme-light .waiter-notes-box label,
.waiter-theme-light .table-input-group .prefix {
    color: #475569;
}

.waiter-theme-light .table-input-group {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.waiter-theme-light .table-input-group input {
    background: transparent;
    border: none;
}

.waiter-theme-light .drawer-item-row {
    border-bottom: 1px solid #f1f5f9;
}

.waiter-theme-light .drawer-item-info .name {
    color: #1e293b;
}

.waiter-theme-light .drawer-item-info .attrs {
    color: #64748b;
}

.waiter-theme-light .drawer-item-price {
    color: #1e293b;
}

.waiter-theme-light .btn-qty-touch {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #1e293b;
}

.waiter-theme-light .btn-qty-touch:hover {
    background: #e2e8f0;
}

.waiter-theme-light .drawer-item-qty .qty-val {
    color: #1e293b;
}

.waiter-theme-light .drawer-total-row {
    color: #64748b;
}

.waiter-theme-light .drawer-total-row strong {
    color: #1e293b;
}

.waiter-theme-light .waiter-modal-dialog {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.waiter-theme-light .waiter-modal-header {
    border-bottom: 1px solid #e2e8f0;
}

.waiter-theme-light .waiter-modal-header h2 {
    color: #1e293b;
}

.waiter-theme-light .waiter-modal-close {
    color: #64748b;
}

.waiter-theme-light .waiter-modal-close:hover {
    color: #1e293b;
}

.waiter-theme-light .waiter-modal-tip {
    color: #64748b;
}

.waiter-theme-light .quick-table-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #1e293b;
}

.waiter-theme-light .quick-table-btn:hover {
    background: #fef2f2;
    border-color: var(--waiter-primary);
    color: var(--waiter-primary);
}

.waiter-theme-light .waiter-modal-footer {
    border-top: 1px solid #e2e8f0;
}

.waiter-theme-light .var-product-preview {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.waiter-theme-light .var-product-preview h3 {
    color: #1e293b;
}

.waiter-theme-light .var-product-preview .var-price {
    color: var(--waiter-primary);
}

.waiter-theme-light .var-attr-group label {
    color: #475569;
}

.waiter-theme-light .var-opt-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #1e293b;
}

.waiter-theme-light .var-opt-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.waiter-theme-light .var-opt-btn.is-selected {
    background: #fef2f2;
    border-color: var(--waiter-primary);
    color: var(--waiter-primary);
}

.waiter-theme-light .waiter-empty-state {
    color: #94a3b8;
}

.waiter-theme-light .drawer-edit-mode-banner {
    background: #fffbeb;
    border-color: #fcd34d;
    color: #b45309;
}

.waiter-theme-light .drawer-edit-mode-banner .btn-cancel-edit-mode {
    border-color: #f59e0b;
    color: #b45309;
}

.waiter-theme-light .drawer-edit-mode-banner .btn-cancel-edit-mode:hover {
    background: #fef3c7;
    color: #92400e;
}

/* ==========================================================================
   Deliverer WebApp Specific Styles
   ========================================================================== */

/* Deliverer App Header (Ensures single-row layout isolated from waiter app 2-line header) */
.deliverer-app-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    padding: 0 14px;
    gap: 10px;
}

.deliverer-app-header .waiter-header-left {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.deliverer-app-header .waiter-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.deliverer-app-header .deliverer-availability-toggle {
    flex-shrink: 0;
    padding: 5px 12px;
}

.deliverer-app-header .waiter-profile-badge {
    flex-shrink: 1;
    min-width: 0;
}

.deliverer-app-header .waiter-profile-badge strong {
    max-width: 110px;
}

.deliverer-app-header .waiter-btn-logout {
    flex-shrink: 0;
}

@media (max-width: 420px) {
    .deliverer-app-header {
        padding: 0 10px;
        gap: 6px;
    }

    .deliverer-app-header .waiter-header-right {
        gap: 6px;
    }

    .deliverer-app-header .deliverer-availability-toggle {
        padding: 5px 8px;
        font-size: 12px;
        gap: 6px;
    }

    .deliverer-app-header .waiter-profile-badge {
        padding: 5px 8px;
        font-size: 12px;
    }

    .deliverer-app-header .waiter-profile-badge strong {
        max-width: 75px;
    }
}

/* Availability Toggle in Header */
.deliverer-availability-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--waiter-border, #2a2d34);
    background: var(--waiter-surface-2, #1a1c22);
    color: #f1f5f9;
    transition: all 0.2s ease;
}

.deliverer-availability-toggle .availability-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.2s ease;
}

.deliverer-availability-toggle.is-available {
    border-color: rgba(34, 197, 94, 0.4);
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
}

.deliverer-availability-toggle.is-available .availability-dot {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.deliverer-availability-toggle.is-paused {
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
}

.deliverer-availability-toggle.is-paused .availability-dot {
    background: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

/* Notice Banners (Store Closed / Paused) */
.deliverer-notice-banner {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    margin: 12px 16px 0 16px;
    border-radius: 12px;
    align-items: flex-start;
}

.deliverer-notice-banner .notice-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    margin-top: 2px;
}

.deliverer-notice-banner .notice-content h3 {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 700;
}

.deliverer-notice-banner .notice-content p {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    opacity: 0.9;
}

.deliverer-notice-banner .notice-content button {
    margin-top: 8px;
}

.deliverer-banner-closed {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

.deliverer-banner-closed h3 {
    color: #ef4444;
}

/* Deliverer Nav Tabs */
.deliverer-nav-tabs {
    display: flex;
    gap: 8px;
    padding: 12px 16px 0 16px;
    border-bottom: 1px solid var(--waiter-border, #2a2d34);
    background: var(--waiter-surface, #121316);
}

.deliverer-tab-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.deliverer-tab-btn:hover {
    color: #f1f5f9;
}

.deliverer-tab-btn.is-active {
    color: var(--waiter-primary, #b41f2c);
    border-bottom-color: var(--waiter-primary, #b41f2c);
}

.deliverer-tab-btn .waiter-badge-count {
    background: var(--waiter-primary, #b41f2c);
    color: #ffffff;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 10px;
}

/* Views & Orders Grid */
.deliverer-views-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.deliverer-orders-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 600px;
    margin: 0 auto;
}

/* Order Card */
.deliverer-order-card {
    background: var(--waiter-surface-2, #1a1c22);
    border: 1px solid var(--waiter-border, #2a2d34);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.deliverer-order-card.is-assigned {
    border-color: rgba(59, 130, 246, 0.4);
}

.deliverer-order-card .card-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
}

.deliverer-order-card .day-id-badge {
    background: var(--waiter-primary, #b41f2c);
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    padding: 4px 10px;
    border-radius: 8px;
}

.deliverer-order-card .card-badge-status {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.4);
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
}

.deliverer-order-card .card-time {
    font-size: 12px;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.deliverer-order-card .card-total {
    font-size: 16px;
    font-weight: 700;
    color: #4ade80;
}

.deliverer-order-card .customer-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.deliverer-order-card .cust-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    color: #f1f5f9;
}

.deliverer-order-card .deliverer-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #22c55e;
    text-decoration: none;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 4px 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.deliverer-order-card .deliverer-contact-link:hover {
    background: rgba(34, 197, 94, 0.2);
}

.deliverer-order-card .address-box {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.deliverer-order-card .address-text {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 13px;
    line-height: 1.4;
    color: #cbd5e1;
}

.deliverer-order-card .address-text .dashicons {
    color: #ef4444;
    margin-top: 1px;
    font-size: 16px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.deliverer-order-card .address-actions {
    display: flex;
    gap: 8px;
}

.deliverer-order-card .address-actions .btn-copy-address,
.deliverer-order-card .address-actions .btn-open-map {
    text-decoration: none !important;
    color: #ffffff !important;
}

.deliverer-order-card .address-actions .btn-open-map:hover,
.deliverer-order-card .address-actions .btn-open-map:focus,
.deliverer-order-card .address-actions .btn-open-map:visited,
.deliverer-order-card .address-actions .btn-open-map:active {
    text-decoration: none !important;
    color: #ffffff !important;
}

.deliverer-order-card .items-summary-row,
.deliverer-order-card .payment-method-row,
.deliverer-order-card .customer-note-row {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.4;
}

.deliverer-order-card .items-summary-row strong,
.deliverer-order-card .payment-method-row strong,
.deliverer-order-card .customer-note-row strong {
    color: #e2e8f0;
}

.deliverer-order-card .card-action-row {
    margin-top: 4px;
}

.deliverer-order-card .card-action-row .btn-accept-order {
    width: 100%;
}

.deliverer-order-card .card-actions-split {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.deliverer-order-card .card-actions-split .btn-abandon-delivery {
    flex: 1;
}

.deliverer-order-card .card-actions-split .btn-open-finish-modal {
    flex: 2;
}

/* Deliverer Empty State */
.deliverer-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
    max-width: 400px;
    margin: 40px auto 0 auto;
}

.deliverer-empty-state > .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    color: #64748b;
}

.deliverer-empty-state h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #f1f5f9;
}

.deliverer-empty-state p {
    margin: 0 0 20px 0;
    font-size: 14px;
    line-height: 1.5;
}

/* PIN Verification Modal */
.deliverer-pin-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.deliverer-pin-modal.waiter-hidden {
    display: none !important;
}

.deliverer-pin-dialog {
    width: 100%;
    max-width: 380px;
    border-radius: 16px !important;
    max-height: 90vh;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
    margin: auto;
}

.pin-modal-intro {
    text-align: center;
    margin-bottom: 16px;
}

.pin-modal-intro p {
    margin: 0;
    font-size: 15px;
    color: #f1f5f9;
}

.pin-modal-intro .pin-hint {
    margin-top: 4px;
    font-size: 13px;
    color: #94a3b8;
}

.deliverer-pin-display input {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 12px;
    padding: 8px 16px;
    height: 60px;
    color: #f1f5f9;
    background: #0f1013;
    border: 2px solid var(--waiter-border, #2a2d34);
    border-radius: 12px;
    width: 100%;
}

.deliverer-modal-keypad {
    margin-top: 16px;
}

/* ==========================================================================
   Table Bill Modal Header Actions & Print Button
   ========================================================================== */
.waiter-drawer-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.waiter-modal-btn-print {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: var(--waiter-surface-2);
    border: 1px solid var(--waiter-border);
    border-radius: 6px;
    color: var(--waiter-text);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.waiter-modal-btn-print:hover {
    background: var(--waiter-border);
    color: #ffffff;
}

.waiter-modal-btn-print .dashicons {
    font-size: 18px !important;
    width: 18px !important;
    height: 18px !important;
}

/* ==========================================================================
   Paid Order Card (Identical to Admin Conclude Orders)
   ========================================================================== */
.order-paid-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 16px;
    background-color: var(--waiter-surface);
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--waiter-border);
    margin-bottom: 16px;
}

.order-paid-card p.price {
    border-bottom: 1px solid var(--waiter-border);
    margin: 0;
    text-align: center;
    padding-bottom: 14px;
    margin-bottom: 6px;
    font-size: 2.2rem;
    font-weight: 700;
    color: #22c55e;
}

.order-paid-card .paid-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.95rem;
    margin: 0 auto;
}

.order-paid-card .paid-badge .dashicons {
    font-size: 18px !important;
    width: 18px !important;
    height: 18px !important;
}

.order-paid-card .refunded-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.95rem;
    margin: 0 auto;
}

.order-paid-card .refunded-badge .dashicons {
    font-size: 18px !important;
    width: 18px !important;
    height: 18px !important;
}

.order-paid-card .cancelled-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(156, 163, 175, 0.15);
    color: #9ca3af;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.95rem;
    margin: 0 auto;
}

.order-paid-card .cancelled-badge .dashicons {
    font-size: 18px !important;
    width: 18px !important;
    height: 18px !important;
}

.order-paid-card .paid-method,
.order-paid-card .paid-waiter,
.order-paid-card .paid-deliverer,
.order-paid-card .paid-consumption-mode {
    margin: 4px 0 0;
    font-size: 0.92rem;
    color: var(--waiter-text);
}

.order-paid-card .paid-notice {
    margin: 8px 0 0;
    font-size: 0.85rem;
    color: var(--waiter-text-muted);
}

/* ==========================================================================
   VIEW 3: All Orders Screen
   ========================================================================== */
.waiter-orders-filter-bar {
    margin-bottom: 14px;
}

.waiter-status-scroller {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0 2px 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.waiter-status-scroller::-webkit-scrollbar {
    display: none;
}

.status-pill {
    flex-shrink: 0;
    padding: 6px 14px;
    background: var(--waiter-surface);
    border: 1px solid var(--waiter-border);
    border-radius: 20px;
    color: var(--waiter-text-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.status-pill.is-active {
    background: var(--waiter-primary);
    border-color: var(--waiter-primary);
    color: #ffffff;
}

.all-orders-container {
    padding-bottom: 24px;
}

.all-orders-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.waiter-orders-sentinel {
    min-height: 20px;
    margin-top: 12px;
}

.waiter-loading-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 0;
    color: var(--waiter-text-muted);
    font-size: 13px;
    font-weight: 500;
}

.waiter-loading-more .dashicons {
    font-size: 18px !important;
    width: 18px !important;
    height: 18px !important;
}

.waiter-order-card {
    background: var(--waiter-surface);
    border: 1px solid var(--waiter-border);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    cursor: pointer;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.waiter-order-card:active {
    transform: scale(0.99);
}

.waiter-order-card:hover {
    border-color: var(--waiter-primary);
}

.order-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.order-card-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.order-card-id {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}

.order-card-table {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background: var(--waiter-surface-2);
    border: 1px solid var(--waiter-border);
    border-radius: 12px;
    font-size: 12px;
    color: var(--waiter-text);
    font-weight: 600;
}

.order-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.order-status-badge.is-completed {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

.order-status-badge.is-processing,
.order-status-badge.is-on-hold {
    background: rgba(234, 179, 8, 0.15);
    color: #facc15;
}

.order-status-badge.is-cancelled,
.order-status-badge.is-refunded {
    background: rgba(156, 163, 175, 0.15);
    color: #9ca3af;
}

.order-card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    color: var(--waiter-text-muted);
}

.order-card-customer {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--waiter-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.order-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.order-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid var(--waiter-border);
}

.order-card-total {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.order-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-card-print {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--waiter-surface-2);
    border: 1px solid var(--waiter-border);
    border-radius: 6px;
    color: var(--waiter-text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-card-print:hover {
    color: #ffffff;
    background: var(--waiter-border);
}

.btn-card-print .dashicons {
    font-size: 16px !important;
    width: 16px !important;
    height: 16px !important;
}

