:root {
    --background: #f4f1ec;
    --surface: #ffffff;
    --surface-soft: #fff8ee;
    --text: #2c2925;
    --muted: #766f67;
    --border: #ded8d0;
    --accent: #d87818;
    --accent-dark: #b65f0d;
    --danger: #a43a32;
    --shadow: 0 12px 32px rgba(44, 41, 37, 0.1);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--background);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 28px;
    background: #2f2a25;
    color: white;
}

.app-header h1 {
    margin: 0;
    font-size: 1.55rem;
}

.app-header p {
    margin: 5px 0 0;
    color: #d9d2ca;
}

.kitchen-link {
    display: inline-block;
    padding: 11px 18px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    color: white;
    text-decoration: none;
}

.app-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 24px;
    width: min(1500px, 100%);
    margin: 0 auto;
    padding: 24px;
    align-items: start;
}

.order-workspace {
    grid-column: 1 / -1;
}

.menu-panel,
.order-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.menu-panel {
    grid-column: 1;
    padding: 22px;
    min-width: 0;
}

.order-panel {
    grid-column: 2;
    align-self: start;
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 22px;
}

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

.order-information label,
.order-notes {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}

input,
textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: white;
    color: var(--text);
    padding: 12px 13px;
    outline: none;
}

input:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(216, 120, 24, 0.14);
}

.category-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 22px 0 18px;
}

.category-button {
    flex: 0 0 auto;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: white;
    padding: 10px 16px;
    color: var(--text);
    font-weight: 700;
}

.category-button.active {
    border-color: var(--accent);
    background: var(--accent);
    color: white;
}

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

.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 122px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-soft);
}

.menu-item h2 {
    margin: 0;
    font-size: 1.05rem;
}

.menu-item p {
    margin: 7px 0 0;
    color: var(--muted);
    line-height: 1.4;
}

.add-button {
    flex: 0 0 auto;
    border: 0;
    border-radius: 10px;
    background: var(--accent);
    color: white;
    padding: 11px 16px;
    font-weight: 800;
}

.add-button:hover {
    background: var(--accent-dark);
}

.order-panel {
    align-self: start;
    position: sticky;
    top: 20px;
    padding: 22px;
}

.order-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.eyebrow {
    margin: 0 0 4px;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.order-panel h2 {
    margin: 0;
}

.clear-button {
    border: 0;
    background: transparent;
    color: var(--danger);
    font-weight: 800;
}

.empty-order {
    margin: 20px 0;
    padding: 28px 18px;
    border: 2px dashed var(--border);
    border-radius: 12px;
    text-align: center;
}

.empty-order p {
    margin: 0 0 5px;
    font-weight: 800;
}

.empty-order span {
    color: var(--muted);
    font-size: 0.9rem;
}

.order-item-preview {
    margin: 18px 0;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.order-item-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.order-item-row h3 {
    margin: 0;
    font-size: 1rem;
}

.order-item-row p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.order-item-row strong {
    flex: 0 0 auto;
    color: var(--accent-dark);
    font-size: 1rem;
    white-space: nowrap;
}

.order-actions {
    display: flex;
    gap: 10px;
    margin-top: 13px;
}

.order-actions button {
    border: 0;
    background: transparent;
    color: var(--accent-dark);
    padding: 0;
    font-size: 0.88rem;
    font-weight: 800;
}

.order-notes {
    margin-top: 20px;
}

textarea {
    resize: vertical;
}

.send-button {
    width: 100%;
    margin-top: 18px;
    border: 0;
    border-radius: 12px;
    background: var(--accent);
    color: white;
    padding: 15px;
    font-size: 1rem;
    font-weight: 900;
}

.send-button:hover {
    background: var(--accent-dark);
}

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

    .order-workspace,
    .menu-panel,
    .order-panel {
        grid-column: 1;
    }

    .order-panel {
        position: static;
        max-height: none;
        overflow-y: visible;
    }
}

@media (max-width: 640px) {
    .app-header {
        align-items: flex-start;
        padding: 16px;
    }

    .app-header h1 {
        font-size: 1.2rem;
    }

    .kitchen-link {
        padding: 9px 12px;
        font-size: 0.85rem;
    }

    .app-layout {
        padding: 12px;
    }

    .menu-panel,
    .order-panel {
        padding: 16px;
        border-radius: 14px;
    }

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

    .menu-item {
        min-height: 105px;
    }
}

.menu-item-actions {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.menu-price {
    color: var(--accent-dark);
    font-size: 1rem;
    font-weight: 900;
}

@media (max-width: 480px) {
    .menu-item {
        align-items: flex-start;
    }

    .menu-item-actions {
        align-items: stretch;
    }

    .menu-price {
        text-align: center;
    }
}

.order-summary {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 2px solid var(--border);
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 1.15rem;
}

.summary-row strong {
    color: var(--accent-dark);
    font-size: 1.35rem;
}

.tax-note {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
    text-align: right;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
}

.quantity-controls button {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 800;
}

.quantity-controls button:hover {
    border-color: var(--accent);
    background: var(--surface-soft);
}

.quantity-controls span {
    min-width: 22px;
    text-align: center;
    font-weight: 900;
}

.item-notes {
    color: var(--accent-dark) !important;
    font-weight: 700;
}
.hidden {
    display: none !important;
}
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 18px;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 18, 16, 0.65);
}

.modal-card {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    padding: 22px;
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow);
}
.modal-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.modal-heading h2 {
    margin: 0;
}

.modal-close {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 1.8rem;
    line-height: 1;
}

.option-section {
    display: grid;
    gap: 9px;
    margin: 0 0 18px;
    padding: 0;
    border: 0;
}

.option-section legend {
    margin-bottom: 9px;
    font-weight: 900;
}

.option-choice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
}

.option-choice:has(input:checked) {
    border-color: var(--accent);
    background: var(--surface-soft);
}

.option-choice input {
    width: auto;
    margin: 0;
}

.modal-notes {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--muted);
    font-weight: 700;
}

.options-error {
    min-height: 20px;
    margin: 12px 0 0;
    color: var(--danger);
    font-weight: 700;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 18px;
}

.secondary-button,
.confirm-add-button {
    border-radius: 10px;
    padding: 12px 18px;
    font-weight: 800;
}

.secondary-button {
    border: 1px solid var(--border);
    background: white;
    color: var(--text);
}

.confirm-add-button {
    border: 0;
    background: var(--accent);
    color: white;
}

.confirm-add-button:hover {
    background: var(--accent-dark);
}

.item-selections {
    margin: 8px 0 0;
    padding-left: 20px;
    color: var(--accent-dark);
    font-size: 0.9rem;
    font-weight: 700;
}
.order-header {
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

.order-header p {
    margin: 4px 0;
    font-weight: 700;
}

.order-tab-bar {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 16px;
    overflow-x: auto;
}

.active-order-tabs {
    display: flex;
    gap: 10px;
}

.active-order-tab,
.add-order-tab,

.active-order-tab {
    display: flex;
    min-width: 110px;
    min-height: 62px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    padding: 10px 14px;
    border-radius: 10px 10px 3px 3px;
}

.active-order-tab small {
    color: var(--muted);
    font-size: 0.75rem;
}

.active-order-tab.active {
    border-color: var(--accent);
    background: var(--accent);
    color: white;
}

.active-order-tab.active small {
    color: rgba(255, 255, 255, 0.8);
}

.add-order-tab {
    display: grid;
    place-items: center;
    width: 62px;
    min-width: 62px;
    min-height: 62px;
    border-radius: 10px 10px 3px 3px;
    font-size: 1.8rem;
}

.add-order-tab:hover,
.history-button:hover {
    border-color: var(--accent);
    background: var(--surface-soft);
}

.history-button {
    min-height: 62px;
    margin-left: auto;
    padding: 10px 18px;
    border-radius: 10px;
}

.order-history-panel {
    margin-bottom: 20px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.history-heading,
.history-order-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.history-heading {
    margin-bottom: 18px;
}

.history-heading h2,
.history-order-header h3 {
    margin: 0;
}

.history-close {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 1.8rem;
}

.history-search-label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 800;
}

.history-order-card {
    margin-top: 12px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-soft);
}

.history-order-header p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 0.85rem;
}

.history-order-header > strong {
    color: var(--accent-dark);
}

.history-item-list {
    margin: 12px 0 0;
    padding-left: 20px;
}

@media (max-width: 640px) {
    .order-tab-bar {
        align-items: stretch;
    }

    .history-button {
        margin-left: 0;
    }

    .active-order-tab {
        min-width: 95px;
    }
}

.active-order-tab-wrapper {
    position: relative;
    display: flex;
    flex: 0 0 auto;
}

.active-order-tab-wrapper.active
.active-order-tab {
    border-color: var(--accent);
    background: var(--accent);
    color: white;
}

.active-order-tab {
    padding-right: 34px;
}

.order-tab-name {
    font-weight: 900;
}

.order-tab-status {
    font-weight: 800;
}

.order-tab-status.editing {
    color: #a35b00;
}

.order-tab-status.sent {
    color: #27833c;
}

.active-order-tab-wrapper.active
.order-tab-status {
    color: white;
}

.close-order-tab {
    position: absolute;
    top: 5px;
    right: 5px;

    display: grid;
    place-items: center;

    width: 24px;
    height: 24px;
    padding: 0;

    border: 0;
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.08);
    color: inherit;

    font-size: 1.1rem;
    font-weight: 900;
    line-height: 1;
}

.close-order-tab:hover {
    background: rgba(190, 35, 35, 0.18);
    color: #a11d1d;
}

.active-order-tab-wrapper.active
.close-order-tab {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.order-type-modal-card {
    width: min(440px, calc(100% - 32px));
    text-align: center;
}

.order-type-description {
    margin-bottom: 20px;
    color: var(--muted);
}

.order-type-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.order-type-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;

    min-height: 140px;
    padding: 18px;

    border: 2px solid var(--border);
    border-radius: 16px;

    background: var(--surface);
    color: var(--text);

    cursor: pointer;
}

.order-type-button:hover {
    border-color: var(--accent);
    background: var(--surface-soft);
}

.order-type-button:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.order-type-button strong {
    font-size: 1.2rem;
}

.order-type-button small {
    color: var(--muted);
}

.order-type-icon {
    font-size: 2rem;
}

#cancel-order-type-modal {
    width: 100%;
}

@media (max-width: 480px) {
    .order-type-options {
        grid-template-columns: 1fr;
    }

    .order-type-button {
        min-height: 105px;
    }
}
.menu-search {
    position: relative;
    margin-bottom: 18px;
}

.menu-search input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: white;
    font-size: 1rem;
}

.menu-search input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(216, 120, 24, 0.14);
}

/* ----------------------------------------------------
   RAW SEAFOOD WARNING PAGE
---------------------------------------------------- */

.warning-page {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 90px);
    padding: 30px 20px;
}

.warning-card {
    width: min(700px, 100%);
    padding: 42px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: var(--shadow);
    text-align: center;
}

.warning-icon {
    margin-bottom: 12px;
    font-size: 3rem;
}

.warning-card h1 {
    margin: 8px 0 20px;
    font-size: 2rem;
}

.warning-message {
    margin: 0 auto 18px;
    max-width: 580px;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.6;
}

.warning-detail {
    margin: 0 auto;
    max-width: 580px;
    color: var(--muted);
    line-height: 1.6;
}

.warning-note {
    margin-top: 26px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-soft);
    font-weight: 700;
    line-height: 1.5;
}

.warning-return-button {
    display: inline-block;
    margin-top: 26px;
    padding: 14px 24px;
    border-radius: 12px;
    background: var(--accent);
    color: white;
    font-weight: 900;
    text-decoration: none;
}

.warning-return-button:hover {
    background: var(--accent-dark);
}

@media (max-width: 640px) {
    .warning-card {
        padding: 28px 20px;
    }

    .warning-card h1 {
        font-size: 1.6rem;
    }

    .warning-message {
        font-size: 1rem;
    }
}

.selection-label {
    color: var(--accent-dark);
    font-weight: 800;
}

.selection-choice {
    color: #000000;
    font-weight: 700;
}