﻿html,
body {
    margin: 0;
    min-height: 100%;
    font-family: Arial, Helvetica, sans-serif;
}

* {
    box-sizing: border-box;
}

/* ===========================
   LOGIN PAGE
=========================== */

.login-page {
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    background: linear-gradient(135deg, #1d3557, #0b132b);
}

.login-card {
    width: 100%;
    max-width: 440px;
    padding: 36px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(0,0,0,.35);
}

.restaurant-logo {
    display: block;
    width: 100%;
    max-width: 340px;
    margin: 0 auto 20px;
    border-radius: 12px;
}

.brand {
    text-align: center;
    margin-bottom: 28px;
}

    .brand h1 {
        margin: 0;
        color: #1d3557;
        font-size: 2rem;
    }

    .brand p {
        margin-top: 8px;
        color: #667085;
    }

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        color: #344054;
        font-weight: bold;
    }

.form-control {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    font-size: 16px;
}

    .form-control:focus {
        outline: 3px solid rgba(37,99,235,.15);
        border-color: #2563eb;
    }

.login-button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 9px;
    background: #0d6efd;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}

    .login-button:hover {
        background: #0b5ed7;
    }

    .login-button:disabled {
        opacity: .65;
        cursor: wait;
    }

.login-error,
.login-success {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
}

.login-error {
    background: #fee2e2;
    color: #991b1b;
}

.login-success {
    background: #dcfce7;
    color: #166534;
}

/* ===========================
   SECTION SELECTION PAGE
=========================== */

.sections-page {
    min-height: 100vh;
    padding: 32px;
    background: linear-gradient(135deg,#1d3557,#0b132b);
    color: white;
}

.sections-header {
    max-width: 1100px;
    margin: 0 auto 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sections-brand {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sections-logo {
    width: 150px;
    height: 75px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,.30);
}

.sections-header h1 {
    margin: 0;
    font-size: 2.2rem;
}

.sections-header p {
    margin-top: 6px;
    color: #cbd5e1;
}

.server-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,.12);
    padding: 12px 20px;
    border-radius: 999px;
}

.server-icon {
    font-size: 1.5rem;
}

.server-badge strong {
    display: block;
    font-size: 1rem;
}

.server-badge small {
    display: block;
    color: #cbd5e1;
    font-size: .8rem;
}

/* ===========================
   SECTION CARDS
=========================== */

.section-grid {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 28px;
}

.section-card {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 18px;
    text-decoration: none;
    color: #102649;
    background: white;
    border-radius: 22px;
    border: 4px solid transparent;
    font-size: 1.35rem;
    font-weight: 800;
    box-shadow: 0 18px 45px rgba(0,0,0,.25);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

    .section-card:hover {
        transform: translateY(-7px) scale(1.02);
        box-shadow: 0 24px 55px rgba(0,0,0,.32), 0 0 0 5px rgba(255,255,255,.08);
    }

    .section-card:active {
        transform: scale(.98);
    }

.section-icon {
    font-size: 4rem;
}

.section-card small {
    color: #64748b;
    font-size: .9rem;
    font-weight: 600;
}

/* ===========================
   CARD COLORS
=========================== */

.dining-card {
    border-color: #2563eb;
}

.bar-card {
    border-color: #f59e0b;
}

.patio-card {
    border-color: #22c55e;
}

.dining-card .section-icon {
    filter: drop-shadow(0 5px 8px rgba(37,99,235,.35));
}

.bar-card .section-icon {
    filter: drop-shadow(0 5px 8px rgba(245,158,11,.35));
}

.patio-card .section-icon {
    filter: drop-shadow(0 5px 8px rgba(34,197,94,.35));
}

/* ===========================
   MOBILE
=========================== */

@media (max-width:760px) {

    .sections-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .sections-brand {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .sections-logo {
        width: 220px;
        height: auto;
    }
}
/* ===========================
   TABLE SELECTION PAGE
=========================== */

.tables-page {
    min-height: 100vh;
    padding: 32px;
    background: linear-gradient(135deg, #1d3557, #0b132b);
    color: white;
}

.tables-header {
    max-width: 1100px;
    margin: 0 auto 28px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
}

    .tables-header h1 {
        margin: 0;
        font-size: 2.2rem;
    }

    .tables-header p {
        margin: 6px 0 0;
        color: #cbd5e1;
    }

.back-button {
    padding: 12px 18px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    text-decoration: none;
    font-weight: 700;
}

.status-legend {
    max-width: 1100px;
    margin: 0 auto 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    padding: 14px 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
}

    .status-legend span {
        display: flex;
        align-items: center;
        gap: 8px;
    }

.status-dot {
    width: 12px;
    height: 12px;
    display: inline-block;
    border-radius: 50%;
}

    .status-dot.available {
        background: #22c55e;
    }

    .status-dot.occupied {
        background: #ef4444;
    }

    .status-dot.waiting {
        background: #f59e0b;
    }

    .status-dot.ready {
        background: #2563eb;
    }

    .status-dot.printed {
        background: #9ca3af;
    }

.table-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.table-card {
    min-height: 145px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 3px solid transparent;
    border-radius: 18px;
    background: white;
    color: #102649;
    cursor: pointer;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.22);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

    .table-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 42px rgba(0, 0, 0, 0.3);
    }

.table-name {
    font-size: 1.8rem;
    font-weight: 900;
}

.table-seats {
    color: #64748b;
    font-size: 0.9rem;
}

.table-status {
    font-size: 0.82rem;
    font-weight: 700;
}

.table-card.available {
    border-color: #22c55e;
}

.table-card.occupied {
    border-color: #ef4444;
    background: #fff1f2;
}

.table-card.waiting {
    border-color: #f59e0b;
    background: #fffbeb;
}

.table-card.ready {
    border-color: #2563eb;
    background: #eff6ff;
}

.table-card.printed {
    border-color: #9ca3af;
    background: #f3f4f6;
}

.selected-table-message {
    max-width: 1100px;
    margin: 26px auto 0;
    padding: 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    text-align: center;
    font-size: 1.05rem;
}

@media (max-width: 900px) {
    .table-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .tables-header {
        grid-template-columns: 1fr;
    }

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

/* ===========================
   ORDER ENTRY PAGE
=========================== */

.order-page {
    min-height: 100vh;
    background: #e9eef5;
    color: #102649;
}

.order-topbar {
    min-height: 76px;
    padding: 12px 24px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    background: linear-gradient(135deg, #0d294f, #061a36);
    color: white;
}

.order-back {
    padding: 11px 16px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    text-decoration: none;
    font-weight: 700;
}

.order-table-title {
    display: flex;
    align-items: center;
    gap: 22px;
}

    .order-table-title h1 {
        margin: 0;
        font-size: 1.65rem;
    }

    .order-table-title span {
        color: #cbd5e1;
    }

.order-server strong,
.order-server small {
    display: block;
    text-align: right;
}

.order-server small {
    color: #cbd5e1;
}

.order-layout {
    min-height: calc(100vh - 76px);
    display: grid;
    grid-template-columns: 270px minmax(480px, 1fr) 350px;
}

.order-left-panel,
.current-order-panel {
    padding: 20px;
    background: #ffffff;
}

.order-left-panel {
    border-right: 1px solid #d7dee8;
}

.current-order-panel {
    border-left: 1px solid #d7dee8;
}

.order-left-panel h2 {
    margin: 18px 0 12px;
    color: #163b73;
    font-size: 1rem;
    text-transform: uppercase;
}

.order-section-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.order-section-button {
    padding: 11px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #102649;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
}

    .order-section-button:hover {
        border-color: #2563eb;
        background: #eff6ff;
    }

.mini-table-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.mini-table-button {
    padding: 11px 6px;
    border: 1px solid #b8c5d6;
    border-radius: 7px;
    color: #102649;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
}

    .mini-table-button.selected {
        border-color: #2563eb;
        background: #2563eb;
        color: white;
    }

.table-status-key {
    margin-top: 24px;
    padding-top: 18px;
    display: grid;
    gap: 9px;
    border-top: 1px solid #e2e8f0;
}

    .table-status-key span {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.85rem;
    }

.order-menu-panel {
    min-width: 0;
    background: #f8fafc;
}

.order-toolbar {
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #d7dee8;
    background: white;
}

    .order-toolbar strong,
    .order-toolbar span {
        display: block;
    }

    .order-toolbar strong {
        font-size: 1.4rem;
    }

    .order-toolbar span {
        margin-top: 3px;
        color: #64748b;
    }

    .order-toolbar label {
        display: flex;
        align-items: center;
        gap: 10px;
        font-weight: 700;
    }

    .order-toolbar select {
        padding: 8px 12px;
        border: 1px solid #cbd5e1;
        border-radius: 7px;
    }

.category-grid {
    padding: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 1px solid #d7dee8;
    background: white;
}

.category-button {
    padding: 10px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: white;
    color: #102649;
    font-weight: 700;
    cursor: pointer;
}

    .category-button.active {
        border-color: #175ac6;
        background: #175ac6;
        color: white;
    }

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

.menu-item-card {
    min-height: 138px;
    padding: 0;
    display: grid;
    grid-template-columns: 138px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid #d7dee8;
    border-radius: 10px;
    background: white;
    color: #102649;
    text-align: left;
    cursor: pointer;
}

.menu-item-card:hover {
        border-color: #2563eb;
        box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12);
    }

.menu-item-image {
    width: 138px;
    height: 138px;
    min-height: 138px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111827;
    overflow: hidden;
}

.menu-item-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.menu-item-information {
    padding: 14px;
}

.menu-item-heading {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

    .menu-item-heading span {
        color: #1555b6;
        font-weight: 800;
    }

.menu-item-information p {
    margin: 9px 0 0;
    color: #475569;
    line-height: 1.4;
}

.current-order-heading {
    padding-bottom: 16px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #d7dee8;
}

    .current-order-heading h2 {
        margin: 0;
        color: #163b73;
        font-size: 1.1rem;
        text-transform: uppercase;
    }

    .current-order-heading span {
        display: block;
        margin-top: 5px;
        color: #64748b;
    }

.current-order-items {
    min-height: 280px;
    max-height: 43vh;
    overflow-y: auto;
}

.empty-order {
    padding: 50px 14px;
    color: #64748b;
    text-align: center;
}

.order-line {
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
}

.order-line-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.order-line small {
    margin-top: 6px;
    display: block;
    color: #64748b;
}

.remove-item-button {
    margin-top: 8px;
    padding: 3px 0;
    border: 0;
    background: transparent;
    color: #dc2626;
    cursor: pointer;
}

.order-totals {
    padding: 18px 0;
    display: grid;
    gap: 10px;
    border-top: 1px solid #d7dee8;
}

    .order-totals > div {
        display: flex;
        justify-content: space-between;
    }

.grand-total {
    margin-top: 5px;
    padding-top: 14px;
    border-top: 2px solid #cbd5e1;
    font-size: 1.35rem;
    text-transform: uppercase;
}

.order-actions {
    display: grid;
    gap: 9px;
}

.send-order-button,
.secondary-order-button,
.close-table-button {
    min-height: 48px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
}

.send-order-button {
    border: 0;
    background: #159432;
    color: white;
}

.secondary-order-button {
    border: 1px solid #cbd5e1;
    background: white;
    color: #102649;
}

.close-table-button {
    border: 1px solid #ef4444;
    background: #fff;
    color: #dc2626;
}

@media (max-width: 1050px) {
    .order-layout {
        grid-template-columns: 220px minmax(430px, 1fr) 310px;
    }

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

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

    .order-left-panel,
    .current-order-panel {
        border: 0;
    }

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


/* ===========================
   ITEM MODIFIER POPUP
=========================== */

.modifier-overlay {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(3, 12, 28, 0.72);
    backdrop-filter: blur(4px);
}

.modifier-modal {
    width: 100%;
    max-width: 720px;
    max-height: 92vh;
    overflow-y: auto;
    padding: 26px;
    border-radius: 20px;
    background: #ffffff;
    color: #102649;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

.modifier-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid #d7dee8;
}

    .modifier-header h2 {
        margin: 0;
        font-size: 1.7rem;
    }

    .modifier-header p {
        margin: 5px 0 0;
        color: #175ac6;
        font-size: 1.1rem;
        font-weight: 800;
    }

.modifier-close {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: #eef2f7;
    color: #102649;
    font-size: 1.8rem;
    cursor: pointer;
}

.modifier-section {
    padding: 20px 0;
    border-bottom: 1px solid #e2e8f0;
}

    .modifier-section h3 {
        margin: 0 0 13px;
        font-size: 1.05rem;
    }

.modifier-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.modifier-option {
    min-height: 46px;
    padding: 10px 17px;
    border: 2px solid #cbd5e1;
    border-radius: 9px;
    background: #ffffff;
    color: #102649;
    font-weight: 750;
    cursor: pointer;
}

    .modifier-option:hover {
        border-color: #2563eb;
    }

    .modifier-option.selected {
        border-color: #175ac6;
        background: #175ac6;
        color: #ffffff;
    }

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

.modifier-check {
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    font-weight: 700;
    cursor: pointer;
}

    .modifier-check input {
        width: 20px;
        height: 20px;
    }

.modifier-help {
    margin: 11px 0 0;
    color: #64748b;
    font-size: 0.88rem;
}

.modifier-notes-label {
    display: block;
    margin-bottom: 9px;
    font-weight: 750;
}

.modifier-notes {
    width: 100%;
    resize: vertical;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    font-family: inherit;
    font-size: 1rem;
}

.modifier-error {
    margin-top: 18px;
    padding: 12px;
    border-radius: 8px;
    background: #fee2e2;
    color: #991b1b;
    font-weight: 700;
}

.modifier-footer {
    padding-top: 22px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 12px;
}

.modifier-cancel,
.modifier-confirm {
    min-height: 52px;
    border-radius: 9px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
}

.modifier-cancel {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #102649;
}

.modifier-confirm {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    background: #159432;
    color: #ffffff;
}

@media (max-width: 600px) {
    .modifier-check-grid {
        grid-template-columns: 1fr;
    }

    .modifier-footer {
        grid-template-columns: 1fr;
    }
}


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

@media (max-width: 600px) {
    .dressing-grid {
        grid-template-columns: 1fr;
    }
}


/* ===========================
   DRESSING CUP QUANTITY
=========================== */

.extra-dressing-modal {
    max-width: 560px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 20px 0;
}

.quantity-button {
    width: 64px;
    height: 64px;
    border: 2px solid #2563eb;
    border-radius: 14px;
    background: #ffffff;
    color: #175ac6;
    font-size: 2rem;
    font-weight: 800;
    cursor: pointer;
}

    .quantity-button:hover {
        background: #eff6ff;
    }

    .quantity-button:disabled {
        border-color: #cbd5e1;
        color: #94a3b8;
        cursor: not-allowed;
    }

.quantity-display {
    min-width: 110px;
    text-align: center;
}

    .quantity-display strong {
        display: block;
        color: #102649;
        font-size: 2.5rem;
    }

    .quantity-display span {
        color: #64748b;
        font-weight: 700;
    }

.dressing-price-summary {
    margin-top: 18px;
    padding: 18px;
    display: grid;
    gap: 12px;
    border-radius: 12px;
    background: #f8fafc;
}

    .dressing-price-summary > div {
        display: flex;
        justify-content: space-between;
    }

.dressing-total-row {
    padding-top: 12px;
    border-top: 2px solid #cbd5e1;
    font-size: 1.2rem;
}

/* ===========================
   SEAT SELECTION
=========================== */

.order-toolbar-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.seat-selector {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid #d7dee8;
    background: #ffffff;
}

.seat-selector-label {
    flex: 0 0 auto;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 800;
}

.seat-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.seat-button {
    min-height: 40px;
    padding: 8px 14px;
    border: 2px solid #cbd5e1;
    border-radius: 9px;
    background: #ffffff;
    color: #102649;
    font-weight: 800;
    cursor: pointer;
}

    .seat-button:hover {
        border-color: #2563eb;
        background: #eff6ff;
    }

    .seat-button.selected {
        border-color: #175ac6;
        background: #175ac6;
        color: #ffffff;
    }

@media (max-width: 800px) {
    .seat-selector {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ===========================
   STATION QUEUES
=========================== */

.station-page {
    min-height: 100vh;
    padding: 28px;
    background: #0f1f38;
    color: white;
}

.station-header {
    max-width: 1200px;
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

    .station-header h1 {
        margin: 0;
        font-size: 2.2rem;
    }

    .station-header p {
        margin: 6px 0 0;
        color: #cbd5e1;
    }

.station-header-actions {
    display: flex;
    gap: 10px;
}

.station-nav-button,
.station-refresh-button {
    padding: 11px 16px;
    border: 0;
    border-radius: 9px;
    background: white;
    color: #102649;
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
}

.station-empty {
    max-width: 1200px;
    margin: 70px auto;
    padding: 40px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    text-align: center;
    font-size: 1.2rem;
}

.station-ticket-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.station-ticket {
    overflow: hidden;
    border: 4px solid #f59e0b;
    border-radius: 16px;
    background: white;
    color: #102649;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

    .station-ticket.ready {
        border-color: #22c55e;
    }

.station-ticket-header {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    background: #f8fafc;
    border-bottom: 1px solid #d7dee8;
}

    .station-ticket-header h2 {
        margin: 0;
    }

    .station-ticket-header span {
        color: #64748b;
    }

.ticket-time {
    font-weight: 800;
}

.station-ticket-items {
    padding: 8px 16px;
}

.station-ticket-item {
    padding: 14px 0;
    border-bottom: 1px solid #e2e8f0;
}

    .station-ticket-item:last-child {
        border-bottom: 0;
    }

    .station-ticket-item p {
        margin: 7px 0 0;
        color: #475569;
        line-height: 1.4;
    }

.station-ticket-actions {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #f8fafc;
}

.ticket-ready-button,
.ticket-complete-button {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 9px;
    color: white;
    font-size: 1rem;
    font-weight: 900;
    cursor: pointer;
}

.ticket-ready-button {
    background: #159432;
}

.ticket-complete-button {
    background: #2563eb;
}

.ticket-ready-label {
    color: #15803d;
    font-size: 1.1rem;
    font-weight: 900;
}

@media (max-width: 900px) {
    .station-ticket-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .station-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .station-ticket-grid {
        grid-template-columns: 1fr;
    }
}
/* ===========================
   FOOD READY ALERT
=========================== */

.table-card.ready {
    position: relative;
    border-color: #2563eb;
    background: #dbeafe;
    animation: foodReadyBlink 1s ease-in-out infinite;
}

    .table-card.ready .table-name,
    .table-card.ready .table-status {
        color: #0b3f91;
    }

.ready-pickup-label {
    margin-top: 8px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #2563eb;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 900;
}

@keyframes foodReadyBlink {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(37, 99, 235, 0);
    }

    50% {
        transform: scale(1.035);
        box-shadow: 0 0 28px rgba(59, 130, 246, 0.95);
    }
}

@media (prefers-reduced-motion: reduce) {
    .table-card.ready {
        animation: none;
    }
}

/* ===========================
   FOOD READY ALERT
=========================== */

.table-card.ready {
    position: relative;
    border-color: #2563eb;
    background: #dbeafe;
    animation: foodReadyBlink 1s ease-in-out infinite;
}

    .table-card.ready .table-name,
    .table-card.ready .table-status {
        color: #0b3f91;
    }

.ready-pickup-label {
    margin-top: 8px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #2563eb;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 900;
}

@keyframes foodReadyBlink {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(37, 99, 235, 0);
    }

    50% {
        transform: scale(1.035);
        box-shadow: 0 0 28px rgba(59, 130, 246, 0.95);
    }
}

@media (prefers-reduced-motion: reduce) {
    .table-card.ready {
        animation: none;
    }
}

/* ===========================
   READY ALERT ON ORDER SCREEN
=========================== */

.order-ready-alert {
    position: relative;
    z-index: 100;
    margin: 14px 18px 0;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 3px solid #2563eb;
    border-radius: 14px;
    background: #dbeafe;
    color: #0b3f91;
    animation: orderReadyPulse 1s ease-in-out infinite;
}

.order-ready-alert-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .order-ready-alert-content strong,
    .order-ready-alert-content span {
        display: block;
    }

    .order-ready-alert-content strong {
        font-size: 1.05rem;
    }

    .order-ready-alert-content span {
        margin-top: 3px;
        font-weight: 700;
    }

.order-ready-alert-icon {
    font-size: 1.7rem;
}

.order-ready-alert-dismiss {
    padding: 9px 14px;
    border: 0;
    border-radius: 8px;
    background: #2563eb;
    color: white;
    font-weight: 800;
    cursor: pointer;
}

@keyframes orderReadyPulse {
    0%, 100% {
        box-shadow: 0 0 0 rgba(37, 99, 235, 0);
    }

    50% {
        box-shadow: 0 0 24px rgba(59, 130, 246, 0.85);
    }
}


/* ==========================================
   MANAGER MENU MANAGEMENT
========================================== */

.menu-manager-page {
    min-height: 100vh;
    padding: 24px;
    background: #f3f6fb;
    color: #102344;
}

.menu-manager-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    padding: 20px 24px;
    border-radius: 14px;
    background: #102b52;
    color: white;
}

    .menu-manager-header h1 {
        margin: 0;
        font-size: 2rem;
    }

    .menu-manager-header p {
        margin: 6px 0 0;
        color: #d8e5f7;
    }

.menu-manager-back {
    padding: 10px 16px;
    border-radius: 8px;
    background: #29466f;
    color: white;
    font-weight: 700;
    text-decoration: none;
}

.menu-manager-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding: 16px;
    border: 1px solid #d5deea;
    border-radius: 12px;
    background: white;
}

.menu-manager-primary-button,
.menu-manager-secondary-button {
    padding: 11px 16px;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
}

.menu-manager-primary-button {
    border: none;
    background: #168c38;
    color: white;
}

.menu-manager-secondary-button {
    border: 1px solid #b9c7da;
    background: white;
    color: #102344;
}

.menu-manager-content {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 20px;
}

.menu-manager-categories,
.menu-manager-items {
    border: 1px solid #d5deea;
    border-radius: 12px;
    background: white;
}

.menu-manager-categories {
    padding: 18px;
}

    .menu-manager-categories h2 {
        margin-top: 0;
    }

.menu-category-button {
    width: 100%;
    margin-bottom: 8px;
    padding: 10px 12px;
    border: 1px solid #c8d3e2;
    border-radius: 7px;
    background: white;
    color: #102344;
    text-align: left;
    font-weight: 700;
    cursor: pointer;
}

    .menu-category-button.active {
        border-color: #2563d8;
        background: #2563d8;
        color: white;
    }

.menu-manager-items {
    min-height: 520px;
    padding: 20px;
}

.menu-manager-items-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #dce4ef;
}

    .menu-manager-items-header h2 {
        margin: 0;
    }

    .menu-manager-items-header p {
        margin: 5px 0 0;
        color: #65748a;
    }

.menu-manager-search {
    width: 280px;
    max-width: 100%;
    padding: 10px 12px;
    border: 1px solid #b9c7da;
    border-radius: 8px;
}

.menu-manager-empty {
    display: flex;
    min-height: 380px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #617086;
    text-align: center;
}

    .menu-manager-empty span {
        font-size: 3rem;
    }

    .menu-manager-empty h3 {
        margin: 12px 0 4px;
        color: #102344;
    }

    .menu-manager-empty p {
        max-width: 460px;
    }

@media (max-width: 900px) {
    .menu-manager-content {
        grid-template-columns: 1fr;
    }

    .menu-manager-categories {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

        .menu-manager-categories h2 {
            width: 100%;
        }

    .menu-category-button {
        width: auto;
        margin: 0;
    }

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

    .menu-manager-search {
        width: 100%;
    }
}



/* WizPOS v0.96 Checkout */
.checkout-modal {
    max-width: 560px;
}

.checkout-summary {
    display: grid;
    gap: 10px;
    margin: 18px 0;
    padding: 16px;
    border: 1px solid #d7deea;
    border-radius: 10px;
    background: #f8fafc;
}

.checkout-summary > div,
.checkout-final-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.checkout-order-total {
    padding-top: 10px;
    border-top: 1px solid #cbd5e1;
    font-size: 1.1rem;
}

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

.checkout-tip-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #b8c4d6;
    border-radius: 8px;
    font-size: 1rem;
}

.checkout-final-total {
    margin: 18px 0;
    padding: 16px;
    border-radius: 10px;
    background: #eaf7ee;
    font-size: 1.2rem;
}

@media (max-width: 600px) {
    .checkout-payment-options {
        grid-template-columns: 1fr;
    }
}


/* WizPOS v0.97 — split checks */
.split-check-modal {
    width: min(560px, calc(100vw - 28px));
}

.split-seat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    margin: 12px 0 18px;
}

.split-seat-card {
    display: flex;
    min-height: 92px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 1px solid #c8d3e2;
    border-radius: 10px;
    background: #fff;
    color: #102b55;
    cursor: pointer;
}

.split-seat-card strong { font-size: 1rem; }
.split-seat-card span { font-size: 1.12rem; font-weight: 800; }
.split-seat-card small { color: #66758a; }

.split-seat-card.selected {
    border-color: #1768d4;
    background: #eaf3ff;
    box-shadow: 0 0 0 2px rgba(23, 104, 212, .14);
}


/* WizPOS v0.97 — customer receipt printing */
.print-receipt {
    display: none;
}

.split-print-button {
    min-width: 150px;
}

@media print {
    @page {
        size: 80mm auto;
        margin: 4mm;
    }

    body * {
        visibility: hidden !important;
    }

    .print-receipt,
    .print-receipt * {
        visibility: visible !important;
    }

    .print-receipt {
        display: block !important;
        position: absolute;
        inset: 0 auto auto 0;
        width: 72mm;
        padding: 0;
        background: #fff;
        color: #000;
        font-family: "Courier New", monospace;
        font-size: 11px;
        line-height: 1.25;
    }

    .print-receipt-header {
        text-align: center;
    }

    .print-receipt-header h1 {
        margin: 0 0 5px;
        font-size: 18px;
    }

    .print-receipt-rule {
        margin: 8px 0;
        border-top: 1px dashed #000;
    }

    .print-receipt-item {
        margin-bottom: 8px;
        break-inside: avoid;
    }

    .print-receipt-item-main,
    .print-receipt-total-row {
        display: flex;
        justify-content: space-between;
        gap: 8px;
    }

    .print-receipt-item-main span {
        max-width: 52mm;
    }

    .print-receipt-seat,
    .print-receipt-details {
        margin-top: 2px;
        font-size: 10px;
    }

    .print-receipt-grand-total {
        margin-top: 5px;
        padding-top: 5px;
        border-top: 1px solid #000;
        font-size: 14px;
    }

    .print-receipt-signature {
        margin-top: 18px;
    }

    .print-receipt-signature div {
        margin-top: 12px;
    }

    .print-receipt-footer {
        margin-top: 18px;
        text-align: center;
        font-weight: 700;
    }
}
