/* ring2order dashboard: main styles (moved out of index.html in v3.37). Phone/tablet/touch fixes live in responsive.css, loaded after this file. */
:root {
    --navy: #12356B;
    --navy-dark: #0c2650;
    --navy-light: #1d4785;
    --red: #D92735;
    --red-dark: #b81f2c;
    --pale: #F3F6FB;
    --ink: #1f2a3d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--ink);
    background-color: var(--pale);
}

h1, h2, h3, .auth-form h2 {
    font-family: 'Nunito', 'Inter', sans-serif;
    color: var(--navy);
}

.auth-container {
    min-height: calc(100vh - 80px); min-height: calc(100dvh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pale);
    flex-direction: column;
    padding: 1.5rem 1rem;
}

.auth-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--navy);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--navy);
}

.btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--red);
    color: white;
    border: none;
    font-weight: 600;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background: var(--red-dark);
}

.btn:disabled {
    background: #6c757d;  /* Improved contrast */
    color: #ffffff;
    cursor: not-allowed;
    opacity: 0.65;
}

.btn-secondary {
    background: white;
    color: var(--navy);
    box-shadow: inset 0 0 0 2px var(--navy);   /* navy outline, same size as the other buttons */
    margin-top: 0.5rem;
}
.btn-secondary:disabled { box-shadow: none; }

.btn-secondary:hover {
    background: #eef2f9;
}

.btn-success {
    background: #1e7e34;   /* 5.1:1 with white text */
}

.btn-success:hover {
    background: #19692c;
}

.btn-danger {
    background: #dc3545;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-sm {
    width: auto;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.dashboard {
    display: none;
    min-height: 100vh; min-height: 100dvh;
}

/* Top bar (brand navy) with main pages */
.dashboard { flex-direction: column; }
.topbar {
    position: sticky; top: 0; z-index: 900;
    display: flex; align-items: center; gap: 1rem;
    background: var(--navy); color: white;
    padding: 0 1.25rem; min-height: 64px;
    box-shadow: 0 2px 6px rgba(12, 38, 80, 0.35);
}
.tb-brand { flex: none; display: flex; align-items: center; }
.tb-brand img { display: block; height: 42px; width: auto; }
.tb-tabs { flex: 1 1 auto; display: flex; align-items: stretch; gap: 0.15rem; overflow-x: auto; scrollbar-width: none; align-self: stretch; }
.tb-tabs::-webkit-scrollbar { display: none; }
.tb-tab {
    display: inline-flex; align-items: center; white-space: nowrap;
    color: rgba(255, 255, 255, 0.85); text-decoration: none; font-weight: 600; font-size: 0.95rem;
    padding: 0 0.85rem; border-bottom: 3px solid transparent; border-top: 3px solid transparent;
    transition: background-color 0.2s, color 0.2s;
}
.tb-tab:hover { background: var(--navy-light); color: white; }
.tb-tab.active { color: white; background: var(--navy-light); border-bottom-color: var(--red); }
.tb-tab[hidden] { display: none; }
.tb-admin { color: #ffd6d9; }
.tb-right { flex: none; display: flex; align-items: center; gap: 0.75rem; font-size: 0.85rem; }
.tb-email { color: rgba(255, 255, 255, 0.8); max-width: 14rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-logout { color: white; text-decoration: none; font-weight: 600; border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 6px; padding: 0.35rem 0.75rem; }
.tb-logout:hover { background: var(--red); border-color: var(--red); }

/* Body: optional side sub-menu + page */
.dash-body { display: flex; align-items: flex-start; min-height: calc(100vh - 64px); min-height: calc(100dvh - 64px); }
.subnav { flex: none; width: 230px; position: sticky; top: 64px; align-self: flex-start; max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); overflow-y: auto;
    background: white; border-right: 1px solid #dde3ee; min-height: calc(100vh - 64px); min-height: calc(100dvh - 64px); padding: 1.25rem 0; }
.subnav[hidden], .subnav-group[hidden], .subnav-group > div[hidden], .subnav a[hidden], .rs-tab[hidden] { display: none; }
.subnav h3 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: #6b7a90; padding: 0 1.25rem; margin: 0 0 0.6rem; }
.subnav a { display: flex; align-items: center; justify-content: space-between; color: var(--navy); text-decoration: none; padding: 0.6rem 1.25rem; font-size: 0.92rem; border-left: 3px solid transparent; }
.subnav a:hover { background: var(--pale); }
.subnav a.active { background: var(--pale); border-left-color: var(--red); font-weight: 600; }

.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dc3545;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    padding: 0 6px;
    margin-left: 8px;
    vertical-align: middle;
}

.main-content {
    flex: 1 1 auto;
    min-width: 0;
    padding: 2rem;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
    color: #495057;  /* Improved contrast from #6c757d */
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-weight: 600;
}

.stat-card .value {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
}

.settings-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #dee2e6;
    margin-bottom: 1.5rem;
}

.settings-section h3 {
    color: #333;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #dee2e6;
}

.content-section {
    display: none;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.content-section.active {
    display: block;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.table th, .table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.table th {
    background: #f8f9fa;
    font-weight: 600;
}

.badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-warning {
    background: #fff3cd;
    color: #664d03;  /* Improved contrast from #856404 */
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background: white;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
}

/* Voice previews (Settings) */
.voice-picker-wrap { margin: 0.5rem 0 1rem; }
.voice-picker-title { margin: 0 0 0.25rem; color: var(--navy); }
.voice-picker-hint { color: #666; font-size: 0.9rem; margin: 0 0 0.75rem; }
.voice-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); gap: 0.6rem; }
.voice-card { display: flex; align-items: center; gap: 0.6rem; border: 2px solid #e1e5e9; border-radius: 8px; padding: 0.6rem 0.7rem; background: #fff; cursor: pointer; }
.voice-card:hover { border-color: #b8c4d9; }
.voice-card.selected { border-color: #12356B; background: #F3F6FB; }
.voice-card input[type="radio"] { margin: 0; }
.voice-card .voice-info { flex: 1; min-width: 0; }
.voice-card .voice-info strong { display: block; color: #12356B; }
.voice-card .voice-info small { color: #666; font-size: 0.8rem; }
.voice-play { flex: none; width: 36px; height: 36px; border-radius: 50%; border: none; background: #D92735; color: #fff; font-size: 0.9rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.voice-play:hover { background: #b81f2c; }
.voice-play:focus-visible { outline: 3px solid #12356B; outline-offset: 2px; }
.voice-play[aria-busy="true"] { opacity: 0.6; cursor: wait; }

/* Your services (Settings) */
.svc-box { background: #F3F6FB; border-radius: 10px; padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; }
.svc-intro { color: #555; margin: 0.25rem 0 0.75rem; }
.svc-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: #fff; border-radius: 8px; padding: 0.85rem 1rem; margin-bottom: 0.6rem; box-shadow: 0 1px 3px rgba(18,53,107,0.08); }
.svc-text p { margin: 0.25rem 0 0; color: #666; font-size: 0.9rem; }
.svc-control { flex: none; text-align: right; max-width: 45%; }
.svc-control .btn { width: auto; }
.svc-note { color: #666; }
.svc-badge { display: inline-block; font-size: 0.75rem; font-weight: 700; border-radius: 999px; padding: 0.1rem 0.6rem; margin-left: 0.4rem; vertical-align: middle; }
.svc-on { background: #d4edda; color: #155724; }
.svc-off { background: #e9ecef; color: #495057; }
.svc-none { background: #fff3cd; color: #7a5a00; }
.svc-warning { background: #fff3cd; color: #7a5a00; border-radius: 6px; padding: 0.6rem 0.9rem; }
.svc-warning[hidden] { display: none; }
.svc-switch { position: relative; display: inline-block; width: 52px; height: 28px; }
.svc-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.svc-slider { position: absolute; inset: 0; background: #adb5bd; border-radius: 28px; transition: background 0.2s; cursor: pointer; }
.svc-slider::before { content: ""; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform 0.2s; }
.svc-switch input:checked + .svc-slider { background: #28a745; }
.svc-switch input:checked + .svc-slider::before { transform: translateX(24px); }
.svc-switch input:focus-visible + .svc-slider { outline: 3px solid #12356B; outline-offset: 2px; }
.svc-switch input:disabled + .svc-slider { opacity: 0.6; cursor: wait; }
@media (max-width: 600px) { .svc-row { flex-direction: column; align-items: flex-start; } .svc-control { max-width: none; text-align: left; } }

/* Menu options */
.rs-status { padding: 0.6rem 0.9rem; border-radius: 6px; margin: 0.5rem 0 1rem; }
.rs-status-ok { background: #d4edda; color: #155724; }
.rs-status-todo { background: #fff3cd; color: #664d03; }
.rs-tabs { display: flex; gap: 0.25rem; flex-wrap: wrap; border-bottom: 2px solid #dee2e6; margin-bottom: 1rem; }
.rs-tab { width: auto; background: none; border: none; border-bottom: 3px solid transparent; margin-bottom: -2px; padding: 0.6rem 1rem; font-weight: 600; color: #495057; cursor: pointer; }
.rs-tab.active { color: var(--navy); border-bottom-color: #D92735; }
.rs-tab:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
:is(#reservations, #ovFloor) .btn { width: auto; }
.rs-daybar, .rs-inline, .rs-question-actions, .rs-form-actions, .rs-suggest { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.rs-daybar { margin-bottom: 1rem; }
.rs-daybar input[type=date] { width: auto; }
.rs-dayname { margin-left: 0.5rem; color: var(--navy); }
.rs-spacer { flex: 1; }
.rs-muted { color: #6c757d; font-size: 0.85rem; }
.rs-intro { color: #495057; max-width: 70ch; }
.rs-empty { color: #6c757d; padding: 1rem 0; }
:is(#reservations, #ovFloor) { min-width: 0; }
.rs-table-wrap { position: relative; overflow-x: auto; max-width: calc(100vw - 32px); }
.rs-table { width: 100%; border-collapse: collapse; background: #fff; }
.rs-table th, .rs-table td { padding: 0.55rem 0.6rem; border-bottom: 1px solid #e9ecef; text-align: left; vertical-align: top; }
.rs-table th { background: #F3F6FB; color: var(--navy); font-size: 0.85rem; }
.rs-table select, .rs-edit input[type=text], .rs-edit input[type=number] { width: auto; max-width: 12rem; padding: 0.3rem 0.4rem; }
.rs-edit input[type=number] { max-width: 5rem; }
.rs-hours input[type=time] { width: auto; }
.rs-row-cancelled td { opacity: 0.55; text-decoration: line-through; }
.rs-row-cancelled td:last-child, .rs-row-cancelled td:nth-last-child(2) { text-decoration: none; }
.rs-answers { margin: 0; padding-left: 1rem; font-size: 0.9rem; }
.rs-actions { white-space: nowrap; }
.rs-badge { display: inline-block; font-size: 0.75rem; font-weight: 700; border-radius: 999px; padding: 0.1rem 0.6rem; }
.rs-booked { background: #e7f1ff; color: #0b3d91; }
.rs-request { background: #fff3cd; color: #7a5300; }
.rs-requests { background: #fff8e1; border: 1px solid #f3d27a; border-radius: 8px; padding: 0.6rem 0.8rem; margin: 0.75rem 0; display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.rs-seated { background: #d4edda; color: #155724; }
.rs-done { background: #e9ecef; color: #495057; }
.rs-noshow { background: #f8d7da; color: #842029; }
.rs-cancelled { background: #e9ecef; color: #6c757d; }
.rs-form { background: #F3F6FB; border-radius: 8px; padding: 1rem; margin: 1rem 0; }
.rs-combo-room { border: 1px solid #dde3ec; border-radius: 8px; padding: 0.4rem 0.75rem 0.6rem; margin: 0.5rem 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.rs-combo-room legend { font-weight: 600; font-size: 0.85rem; padding: 0 0.3rem; }
.rs-form h3 { margin: 0.25rem 0 0.75rem; color: var(--navy); font-size: 1.05rem; }
.rs-form label { display: flex; flex-direction: column; gap: 0.25rem; font-weight: 600; font-size: 0.9rem; }
.rs-form label.rs-check, .rs-check { flex-direction: row; align-items: center; gap: 0.4rem; font-weight: 400; }
.rs-check input { width: auto; margin: 0; }
.rs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 0.75rem; margin-bottom: 0.75rem; }
.rs-inline label { min-width: 140px; }
.rs-inline .rs-wide { flex: 1; min-width: 240px; }
.rs-inline .btn { align-self: flex-end; }
.rs-walkin { align-self: end; padding-bottom: 0.5rem; }
.rs-free { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; margin-bottom: 0.75rem; font-size: 0.9rem; }
.rs-time { width: auto; border: 1px solid var(--navy); background: #fff; color: var(--navy); border-radius: 999px; padding: 0.15rem 0.6rem; cursor: pointer; font-size: 0.85rem; }
.rs-time:hover, .rs-time:focus-visible { background: var(--navy); color: #fff; }
.rs-question { background: #fff; border: 1px solid #dee2e6; border-radius: 8px; padding: 0.75rem; margin-bottom: 0.75rem; }
.rs-question .rs-grid { margin-bottom: 0.5rem; }
.rs-question label { display: flex; flex-direction: column; gap: 0.25rem; font-weight: 600; font-size: 0.85rem; }
.rs-inactive { opacity: 0.6; }
.rs-question .rs-span { grid-column: 1 / -1; }
.rs-hint { font-weight: 400; font-size: 0.8rem; color: #5a6270; }
.rs-add h4 { margin: 0 0 0.5rem; font-size: 1rem; color: var(--navy); }
.rs-tips { margin: 0.25rem 0 0.75rem; font-size: 0.9rem; }
.rs-tips summary { cursor: pointer; font-weight: 600; color: var(--navy); min-height: 44px; display: flex; align-items: center; }
.rs-tips ul { margin: 0.25rem 0 0; padding-left: 1.2rem; }
.rs-tips li { margin-bottom: 0.35rem; }
.rs-question label.rs-check { flex-direction: row; align-items: center; font-weight: 400; font-size: 0.9rem; min-height: 44px; }
.rs-question label.rs-check input { width: 20px; height: 20px; }
:is(#reservations, #ovFloor) input[type=text], :is(#reservations, #ovFloor) input[type=number], :is(#reservations, #ovFloor) input[type=tel], :is(#reservations, #ovFloor) input[type=time],
:is(#reservations, #ovFloor) input[type=date], :is(#reservations, #ovFloor) select, :is(#reservations, #ovFloor) textarea {
    padding: 0.45rem 0.55rem; border: 1px solid #ced4da; border-radius: 6px; font: inherit; background: #fff; box-sizing: border-box; }
:is(#reservations, #ovFloor) input:focus-visible, :is(#reservations, #ovFloor) select:focus-visible, :is(#reservations, #ovFloor) textarea:focus-visible { outline: 2px solid var(--navy); outline-offset: 1px; }
.rs-table td:first-child { white-space: nowrap; }
.rs-suggest { margin: 0.75rem 0; }
.rs-quick summary { cursor: pointer; color: var(--navy); font-weight: 600; }
.rs-closed { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.5rem; }
/* Admin: view any restaurant */
.hdr-right { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: flex-end; }
.av-picker { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.av-picker[hidden], .av-banner[hidden] { display: none; }
.av-picker select { padding: 0.35rem 0.5rem; border: 2px solid var(--red); border-radius: 6px; font: inherit; font-weight: 400; max-width: 16rem; }
.av-banner { background: #fff4e5; border: 1px solid #f0b35b; color: #6b4200; border-radius: 8px; padding: 0.6rem 0.9rem; margin: -1rem 0 1.25rem; font-size: 0.9rem; }

/* Settings -> Order ticket numbers */
.on-form { background: #f8f9fa; padding: 1.5rem; border-radius: 8px; margin-top: 1rem; }
.on-fields { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: flex-start; }
.on-fields .form-group { flex: 0 1 14rem; margin-bottom: 0; }
.on-fields small { color: #6c757d; font-size: 0.8rem; }
.on-preview { display: flex; flex-direction: column; justify-content: center; background: white; border: 2px dashed var(--navy-light); border-radius: 8px; padding: 0.6rem 1.1rem; min-width: 9rem; }
.on-preview span { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: #6b7a90; }
.on-preview strong { font-size: 1.6rem; color: var(--navy); font-family: ui-monospace, Menlo, Consolas, monospace; }
.on-note { color: #8a5a00; font-size: 0.85rem; min-height: 0; margin: 0.75rem 0; }
.on-note:empty { display: none; }
.oc-choices { border: 0; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.75rem; }
.oc-choice { display: flex; gap: 0.75rem; align-items: flex-start; background: #fff; border: 2px solid #dee2e6; border-radius: 8px; padding: 0.85rem 1rem; cursor: pointer; }
.oc-choice:has(input:checked) { border-color: #0d6efd; background: #f3f8ff; }
.oc-choice input { margin-top: 0.25rem; width: 1.1rem; height: 1.1rem; flex: none; }
.oc-choice span { display: grid; gap: 0.2rem; }
.oc-choice small { color: #495057; font-size: 0.85rem; }
.oc-minutes { max-width: 14rem; }
.oc-minutes[hidden] { display: none; }
.oc-minutes small { color: #6c757d; font-size: 0.8rem; }
.oc-preview { color: #0a3622; background: #e8f5ee; border-radius: 6px; padding: 0.6rem 0.8rem; font-size: 0.9rem; margin: 0.75rem 0; }
.oc-preview:empty { display: none; }

/* Support tickets: thread + admin inbox */
.badge-secondary { background: #e2e8f0; color: #2d3748; }
.st-summary { background: #f8f9fa; padding: 0.75rem 1rem; border-radius: 6px; margin-bottom: 0.75rem; }
.st-summary p { margin: 0.25rem 0; }
.st-thread { display: flex; flex-direction: column; gap: 0.5rem; max-height: 50vh; max-height: 50dvh; overflow-y: auto; padding: 0.5rem; background: var(--pale); border: 1px solid #dde3ee; border-radius: 8px; }
.st-msg { max-width: 85%; padding: 0.5rem 0.75rem; border-radius: 10px; }
.st-theirs { align-self: flex-start; background: white; border: 1px solid #dde3ee; }
.st-mine { align-self: flex-end; background: #e8eef9; border: 1px solid #c7d4ee; }
.st-meta { font-size: 0.75rem; color: #4a5568; margin-bottom: 0.2rem; }
.st-body { white-space: pre-wrap; word-wrap: break-word; }
.st-empty { color: #6c757d; font-style: italic; }
.st-reply { margin-top: 0.75rem; display: flex; flex-direction: column; gap: 0.4rem; }
.st-reply label { font-weight: 600; color: var(--navy); font-size: 0.9rem; }
.st-reply textarea { width: 100%; padding: 0.6rem; border: 2px solid #cbd5e0; border-radius: 6px; font: inherit; resize: vertical; }
.st-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.st-actions .as-after { font-weight: 400; display: flex; gap: 0.4rem; align-items: center; }
.st-order-note { background: #fff4e5; border: 1px solid #f0b35b; border-radius: 6px; padding: 0.4rem 0.7rem; margin-bottom: 0.75rem; }
.st-order-note[hidden] { display: none; }
.as-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.as-filters select { padding: 0.45rem; border: 1px solid #cbd5e0; border-radius: 6px; font: inherit; }
.as-layout { display: grid; grid-template-columns: minmax(min(16rem, 100%), 1fr) 2fr; gap: 1rem; align-items: start; }
@media (max-width: 1024px) { .as-layout { grid-template-columns: 1fr; } }
.as-list { display: flex; flex-direction: column; gap: 0.4rem; max-height: 75vh; max-height: 75dvh; overflow-y: auto; }
.as-row { display: flex; flex-direction: column; gap: 0.25rem; text-align: left; background: white; border: 1px solid #dde3ee; border-radius: 8px; padding: 0.6rem 0.75rem; cursor: pointer; font: inherit; }
.as-row:hover, .as-row.active { border-color: var(--navy); background: #f3f6fc; }
.as-row-top, .as-row-meta { display: flex; justify-content: space-between; gap: 0.5rem; align-items: center; }
.as-row-meta { justify-content: flex-start; color: #4a5568; }
.as-detail { background: white; border: 1px solid #dde3ee; border-radius: 8px; padding: 1rem; min-height: 12rem; }
.as-from { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; justify-content: space-between; margin-top: 0; }

/* Admin AI test chat */
.ac-note { color: #4a5568; margin: 0.25rem 0 1rem; }
body.admin-only .tb-tabs .tb-tab:not(#adminNavTab) { display: none; }
.ac-setup { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-end; margin-bottom: 0.5rem; }
.ac-setup label { display: flex; flex-direction: column; font-size: 0.85rem; font-weight: 600; color: var(--navy); gap: 0.25rem; }
.ac-setup select, .ac-setup input[type=tel] { padding: 0.5rem; border: 1px solid #cbd5e0; border-radius: 6px; min-width: 14rem; font: inherit; }
.ac-setup .ac-check { flex-direction: row; align-items: center; font-weight: 400; }
.ac-setup .btn[hidden] { display: none; }
.ac-status { min-height: 1.4em; font-size: 0.85rem; color: #4a5568; }
.ac-status[data-kind=error] { color: var(--red); }
.ac-status[data-kind=ok] { color: #276749; }
.ac-panel { display: flex; flex-direction: column; height: max(420px, calc(100vh - 320px)); height: max(420px, calc(100dvh - 320px)); border: 1px solid #dde3ee; border-radius: 8px; overflow: hidden; background: white; }
.ac-log { flex: 1 1 auto; min-height: 0; overflow-y: auto; border: none; border-radius: 0; background: var(--pale); border: 1px solid #dde3ee; border-radius: 8px; padding: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.ac-msg { max-width: 80%; padding: 0.55rem 0.8rem; border-radius: 12px; white-space: pre-wrap; word-wrap: break-word; }
.ac-msg[hidden] { display: none; }
.ac-ai { align-self: flex-start; background: white; border: 1px solid #dde3ee; }
.ac-user { align-self: flex-end; background: var(--navy); color: white; }
.ac-system { align-self: center; font-size: 0.8rem; color: #4a5568; font-style: italic; }
.ac-tool { align-self: flex-start; max-width: 95%; font-size: 0.78rem; background: #fffbea; border: 1px dashed #d69e2e; }
.ac-tool pre { white-space: pre-wrap; margin-top: 0.4rem; font-size: 0.75rem; }
.ac-compose { flex: none; background: white; border-top: 1px solid #dde3ee; padding: 0.75rem; margin: 0; }
.ac-preview { margin: 0.4rem 0 0; font-size: 0.85rem; color: #4a5568; white-space: pre-wrap; word-wrap: break-word; max-height: 4.5em; overflow-y: auto; }
.ac-preview:empty { display: none; }
.ac-compose-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 0.3rem; }
.ac-compose-label span { font-weight: 400; color: #4a5568; }
.ac-compose-row { display: flex; flex-direction: column; gap: 0.5rem; }
.ac-compose textarea { width: 100%; min-width: 0; height: 4.8rem; min-height: 4.8rem; max-height: 12rem; -webkit-text-fill-color: var(--ink); opacity: 1; padding: 0.7rem 0.8rem; border: 2px solid var(--navy-light); border-radius: 8px; font: inherit; font-size: 1.05rem; line-height: 1.45; color: var(--ink); background: white; resize: vertical; }
.ac-compose textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(18, 53, 107, 0.15); }
.ac-compose textarea:disabled { background: #f1f3f7; border-color: #cbd5e0; }
.ac-compose .btn { align-self: flex-end; padding: 0.6rem 1.6rem; }
@media (max-width: 600px) { .ac-setup select, .ac-setup input[type=tel] { min-width: 0; width: 100%; } .ac-setup label { width: 100%; } .ac-msg { max-width: 92%; } }
.rs-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.rs-head .btn[hidden], .rs-tabs[hidden] { display: none; }
.rs-guide { background: #fff; }
/* Guide header: progress ring + steps */
.rs-guide-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.rs-guide-head .rs-stepper { margin: 0; }
.rs-ring { position: relative; width: 64px; height: 64px; flex: none; }
.rs-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.rs-ring circle { fill: none; stroke-width: 5; }
.rs-ring-bg { stroke: #e2e8f0; }
.rs-ring-fg { stroke: var(--navy); stroke-linecap: round; transition: stroke-dashoffset 0.9s cubic-bezier(.2,.8,.2,1), stroke 0.4s; }
.rs-ring-full .rs-ring-fg { stroke: #198754; }
.rs-ring-full { animation: rsPulse 0.8s ease 0.6s; }
.rs-ring-pct { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--navy); font-size: 0.95rem; }
.rs-step-justdone .rs-step-num { animation: rsPop 0.6s cubic-bezier(.3,1.6,.5,1); }
.rs-slide { animation: rsSlide 0.35s ease-out; }
@keyframes rsSlide { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes rsPop { 0% { transform: scale(0.3); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes rsPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }

/* Dining areas step: room tiles + floor plan */
.ra-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; align-items: start; }
@media (max-width: 1024px) { .ra-layout { grid-template-columns: 1fr; } }
.ra-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(9.5rem, 100%), 1fr)); gap: 0.6rem; }
.ra-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.35rem; padding: 0.9rem 0.5rem; background: white; border: 2px solid #dde3ee; border-radius: 12px; cursor: pointer; font: inherit; color: var(--ink); transition: transform 0.15s, border-color 0.2s, background 0.2s, box-shadow 0.2s; }
.ra-tile:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(18, 53, 107, 0.12); }
.ra-tile:active { transform: scale(0.97); }
.ra-tile:focus-visible { outline: 3px solid var(--navy-light); outline-offset: 2px; }
.ra-icon { font-size: 1.8rem; line-height: 1; transition: transform 0.3s cubic-bezier(.3,1.6,.5,1); }
.ra-name { font-weight: 600; font-size: 0.9rem; text-align: center; }
.ra-tick { position: absolute; top: 6px; right: 8px; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: #198754; color: white; font-size: 0.8rem; display: flex; align-items: center; justify-content: center; transform: scale(0); transition: transform 0.3s cubic-bezier(.3,1.6,.5,1); }
.ra-on { border-color: var(--navy); background: #eef3fb; }
.ra-on .ra-tick { transform: scale(1); }
.ra-on .ra-icon { transform: scale(1.12); }
.ra-custom { margin-top: 0.75rem; }
.ra-list { list-style: none; padding: 0; margin: 0.75rem 0 0; display: flex; flex-direction: column; gap: 0.4rem; }
.ra-list li { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.ra-list input { flex: 1 1 10rem; padding: 0.4rem 0.5rem; border: 1px solid #cbd5e0; border-radius: 6px; font: inherit; }
.ra-stats { display: flex; gap: 0.5rem; margin-bottom: 0.6rem; flex-wrap: wrap; }
.ra-stats span { background: var(--pale); border-radius: 999px; padding: 0.25rem 0.75rem; font-size: 0.85rem; color: #4a5568; }
.ra-stats strong { color: var(--navy); font-size: 1rem; }
.ra-manage { margin-bottom: 1rem; }
.ra-manage .ra-tiles { margin-top: 0.75rem; }

/* Floor plan preview */
.fp { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(11rem, 100%), 1fr)); gap: 0.6rem; padding: 0.75rem; margin: 0.5rem 0 1rem;
      background: #f7f9fc linear-gradient(rgba(18,53,107,0.05) 1px, transparent 1px) 0 0 / 100% 16px; border: 2px solid var(--navy); border-radius: 12px; }
.fp-room { background: white; border: 2px solid #c7d4ee; border-radius: 10px; padding: 0.55rem 0.65rem; display: flex; flex-direction: column; gap: 0.4rem; min-height: 6.5rem; }
.fp-room.fp-pop { animation: fpRoomIn 0.55s cubic-bezier(.3,1.4,.5,1); }
.fp-head { display: flex; align-items: center; gap: 0.4rem; color: var(--navy); font-size: 0.9rem; }
.fp-icon { font-size: 1.15rem; }
.fp-tables { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; flex: 1; }
.fp-floor { background: repeating-linear-gradient(45deg, transparent 0 8px, rgba(18,53,107,0.04) 8px 16px); border-radius: 6px; min-height: 2.5rem; }
.fp-table { --size: calc(1.5rem + var(--s) * 0.16rem); width: var(--size); height: var(--size); border-radius: 50%; background: var(--navy); color: white; font-size: 0.72rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 2px 4px rgba(18,53,107,0.25); }
.fp-table.fp-off { background: #a0aec0; }
.fp-table.fp-pop { animation: rsPop 0.55s cubic-bezier(.3,1.6,.5,1); }
.fp-meta { font-size: 0.75rem; color: #6b7a90; }
.fp-hint { font-size: 0.8rem; color: #a0aec0; font-style: italic; }
.fp-bar { border-color: #f0b35b; } .fp-patio { border-color: #8fd19e; } .fp-private { border-color: #c9a7e8; }
.fp-lounge { border-color: #f4a6b0; } .fp-counter { border-color: #9bd4e4; } .fp-upstairs { border-color: #b8c2cc; }
.fp-none { border-style: dashed; border-color: #cbd5e0; background: #fbfcfe; }
.fp-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 12rem; border-style: dashed; color: #6b7a90; text-align: center; }
.fp-ghost { display: flex; gap: 0.5rem; margin-bottom: 0.6rem; }
.fp-ghost span { width: 3.2rem; height: 2.4rem; border: 2px dashed #c7d4ee; border-radius: 8px; animation: fpGhost 1.8s ease-in-out infinite; }
.fp-ghost span:nth-child(2) { animation-delay: 0.3s; } .fp-ghost span:nth-child(3) { animation-delay: 0.6s; }
@keyframes fpRoomIn { from { opacity: 0; transform: scale(0.6) translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fpGhost { 0%, 100% { opacity: 0.35; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) {
    .rs-ring-fg, .ra-tile, .ra-icon, .ra-tick { transition: none; }
    .rs-slide, .rs-step-justdone .rs-step-num, .rs-ring-full, .fp-room.fp-pop, .fp-table.fp-pop, .fp-ghost span { animation: none; }
}
/* Floor: live table management */
.fl-bar { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.fl-stats { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.fl-stat { background: var(--pale); border-radius: 999px; padding: 0.3rem 0.8rem; font-size: 0.85rem; color: #4a5568; border-left: 4px solid #cbd5e0; }
.fl-stat strong { color: var(--navy); font-size: 1.05rem; }
.fl-s-free { border-left-color: #2f9e57; } .fl-s-seated { border-left-color: var(--navy); } .fl-s-soon { border-left-color: #e0a100; }
.fl-clock { font-size: 0.8rem; }
.fl-pills { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.fl-pill { width: auto; background: white; border: 2px solid #c7d4ee; border-radius: 999px; padding: 0.35rem 0.85rem; font-weight: 600; color: var(--navy); cursor: pointer; }
.fl-pill small { background: #F3F6FB; border-radius: 999px; padding: 0 0.45rem; margin-left: 0.2rem; color: #4a5568; }
.fl-pill.active { background: var(--navy); color: white; border-color: var(--navy); }
.fl-pill.active small { background: rgba(255,255,255,0.2); color: white; }
.fl-pill:focus-visible, .fl-tile:focus-visible, .fl-guest:focus-visible { outline: 3px solid #D92735; outline-offset: 2px; }
.fl-legend { display: flex; gap: 0.75rem; flex-wrap: wrap; font-size: 0.78rem; color: #4a5568; margin-bottom: 0.6rem; }
.fl-key { display: inline-flex; align-items: center; gap: 0.3rem; background: none; }
.fl-key::before { content: ''; width: 0.8rem; height: 0.8rem; border-radius: 3px; background: var(--fl-c); }
.fl-arriving { display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; background: #fff8e1; border: 1px solid #f3d27a; border-radius: 10px; padding: 0.5rem 0.65rem; margin-bottom: 0.75rem; font-size: 0.88rem; }
.fl-guest { width: auto; background: white; border: 1px solid #e0c46a; border-radius: 999px; padding: 0.25rem 0.7rem; cursor: pointer; font-size: 0.85rem; color: #5c4400; }
.fl-guest-late { border-color: #e8590c; color: #a33b00; font-weight: 600; }
.fl-floor { display: flex; flex-direction: column; gap: 0.75rem; padding: 0.75rem; border: 2px solid var(--navy); border-radius: 12px;
      background: #f7f9fc linear-gradient(rgba(18,53,107,0.05) 1px, transparent 1px) 0 0 / 100% 16px; }
.fl-room { background: white; border: 2px solid #c7d4ee; border-radius: 10px; padding: 0.6rem 0.7rem; }
.fl-room h4 { margin: 0 0 0.5rem; color: var(--navy); font-size: 0.95rem; display: flex; gap: 0.4rem; align-items: baseline; flex-wrap: wrap; }
.fl-room h4 .rs-muted { font-weight: 400; font-size: 0.8rem; }
.fl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(9.5rem, 100%), 1fr)); gap: 0.5rem; }
.fl-tile { --fl-c: #2f9e57; width: 100%; text-align: left; display: flex; flex-direction: column; gap: 0.15rem; background: white; border: 2px solid #e2e8f0; border-top: 6px solid var(--fl-c);
      border-radius: 10px; padding: 0.5rem 0.6rem; cursor: pointer; min-height: 5.6rem; transition: transform 0.15s, box-shadow 0.15s; color: #2d3748; }
.fl-tile:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(18,53,107,0.15); }
.fl-top { display: flex; justify-content: space-between; align-items: baseline; gap: 0.3rem; }
.fl-name { font-size: 1.05rem; color: var(--navy); }
.fl-seats { font-size: 0.75rem; background: #F3F6FB; border-radius: 999px; padding: 0 0.45rem; color: #4a5568; }
.fl-state { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--fl-c); }
.fl-who { font-weight: 600; font-size: 0.88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-time { font-size: 0.8rem; color: #4a5568; }
.fl-free { --fl-c: #1f7a3d; } .fl-soon { --fl-c: #c98a00; } .fl-late { --fl-c: #e8590c; } .fl-seated { --fl-c: #12356B; } .fl-over { --fl-c: #D92735; }
.fl-tile.fl-seated, .fl-tile.fl-over { background: #f3f6fb; }
.fl-tile.fl-late { animation: flPulse 2s ease-in-out infinite; }
.fl-tile.fl-walkin .fl-seats::after { content: ' · walk-in'; }
.fl-tile.fl-picked { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(18,53,107,0.25); }
.fl-tile.fl-changed { animation: rsPop 0.55s cubic-bezier(.3,1.6,.5,1); }
.wl-badge { display: inline-block; min-width: 1.3rem; padding: 0 0.4rem; border-radius: 999px; background: #D92735; color: white; font-size: 0.75rem; font-weight: 700; text-align: center; margin-left: 0.25rem; }
.wl-badge[hidden] { display: none; }
.wl-panel { background: white; border: 1px solid #dee2e6; border-radius: 12px; padding: 0.7rem 0.9rem; margin: 0.75rem 0; }
.wl-head { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.wl-head h4 { margin: 0; color: var(--navy); display: flex; align-items: center; gap: 0.4rem; }
.wl-count { background: var(--navy); color: white; border-radius: 999px; padding: 0 0.55rem; font-size: 0.85rem; }
.wl-form { margin-top: 0.6rem; }
.wl-list { list-style: none; margin: 0.6rem 0 0; padding: 0; }
.wl-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.55rem 0; border-top: 1px solid #eef1f5; flex-wrap: wrap; }
.wl-row.wl-called { background: #fff8e1; border-radius: 8px; padding-left: 0.4rem; }
.wl-pos { width: 1.8rem; height: 1.8rem; border-radius: 50%; background: #eef3fb; color: var(--navy); display: grid; place-items: center; font-weight: 700; flex: 0 0 auto; }
.wl-who { flex: 1 1 220px; display: flex; flex-direction: column; }
.wl-actions { display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; }
.wl-actions select { min-height: 32px; }
.ki-steps { padding-left: 1.2rem; }
.ki-steps li { margin: 0.25rem 0; }
.fl-sheet { position: sticky; bottom: 0.5rem; margin-top: 0.75rem; background: white; border: 2px solid var(--navy); border-radius: 12px; padding: 0.75rem 0.9rem; box-shadow: 0 8px 24px rgba(18,53,107,0.25); z-index: 5; }
.fl-sheet p { margin: 0.35rem 0; }
.fl-sheet-head { display: flex; align-items: baseline; gap: 0.5rem; }
.fl-sheet-head strong { font-size: 1.1rem; color: var(--navy); }
.fl-close { width: auto; margin-left: auto; background: none; border: none; font-size: 1.5rem; line-height: 1; cursor: pointer; color: #4a5568; padding: 0 0.3rem; }
.fl-actions, .fl-walkform { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; margin-top: 0.5rem; }
.fl-walkform label, .fl-inline { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 600; font-size: 0.88rem; margin: 0; }
.fl-actions .btn, .fl-walkform .btn { margin: 0; width: auto; }
.fl-walkform input[type=number] { width: 4.5rem; padding: 0.3rem 0.4rem; }
.fl-walkform input[type=text] { width: 10rem; padding: 0.3rem 0.4rem; }
.fl-inline select { width: auto; padding: 0.3rem 0.4rem; }
.fl-answers { font-size: 0.85rem; color: #4a5568; }
@keyframes flPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(232,89,12,0); } 50% { box-shadow: 0 0 0 4px rgba(232,89,12,0.3); } }
@media (prefers-reduced-motion: reduce) { .fl-tile, .fl-tile.fl-late, .fl-tile.fl-changed { animation: none; transition: none; } }
@media (max-width: 600px) { .fl-grid { grid-template-columns: repeat(2, 1fr); } .fl-walkform input[type=text] { width: 100%; } }
/* Import menu */
.mi-intro { color: #4a5568; margin-bottom: 1rem; max-width: 60rem; }
.mi-card { background: white; border-radius: 12px; padding: 1.25rem; box-shadow: 0 2px 8px rgba(18,53,107,0.08); max-width: 64rem; }
.mi-card input, .mi-card select, .mi-card textarea { width: auto; padding: 0.35rem 0.5rem; border: 1px solid #cbd5e0; border-radius: 6px; font: inherit; }
.mi-card textarea, #miUrl { width: 100%; }
.mi-card .btn { width: auto; }
.mi-muted { color: #6b7a90; font-size: 0.85rem; }
.mi-label { display: block; font-weight: 600; margin: 0.5rem 0 0.35rem; }
.mi-srcs { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.mi-src { width: auto; background: var(--pale); border: 2px solid transparent; border-radius: 999px; padding: 0.45rem 1rem; font-weight: 600; color: var(--navy); cursor: pointer; }
.mi-src.active { background: var(--navy); color: white; }
.mi-drop { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; text-align: center; border: 2px dashed #9fb3d9; border-radius: 12px; padding: 2rem 1rem; cursor: pointer; background: #f7f9fc; transition: background 0.2s, border-color 0.2s; }
.mi-drop.over, .mi-drop:hover { background: #eef3fb; border-color: var(--navy); }
.mi-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.mi-drop:focus-within { outline: 3px solid var(--navy); outline-offset: 2px; }
.mi-drop-icon { font-size: 2.2rem; }
.mi-files { list-style: none; padding: 0; margin: 0.75rem 0 0.25rem; display: flex; flex-direction: column; gap: 0.3rem; }
.mi-files li { display: flex; gap: 0.5rem; align-items: center; background: var(--pale); border-radius: 8px; padding: 0.35rem 0.6rem; }
.mi-files li span:first-child { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mi-x { width: auto; background: none; border: none; color: #6b7a90; font-size: 1.2rem; line-height: 1; cursor: pointer; padding: 0 0.3rem; }
.mi-x:hover { color: var(--red); }
.mi-what { margin-top: 1rem; background: #f3f6fb; border-left: 4px solid var(--navy); border-radius: 8px; padding: 0.75rem 1rem; }
.mi-what ul { margin: 0.4rem 0 0.4rem 1.2rem; }
.mi-actions { margin-top: 1rem; }
.mi-progress { text-align: left; }
.mi-scan { position: relative; width: 6rem; height: 7.5rem; margin: 0 auto 1rem; }
.mi-page { position: absolute; inset: 0; background: white; border: 2px solid #c7d4ee; border-radius: 6px; padding: 0.7rem 0.6rem; display: flex; flex-direction: column; gap: 0.45rem; }
.mi-page span { height: 0.4rem; background: #dbe4f3; border-radius: 3px; } .mi-page span:nth-child(2n) { width: 70%; }
.mi-beam { position: absolute; left: -6px; right: -6px; height: 3px; background: var(--red); box-shadow: 0 0 10px rgba(217,39,53,0.6); border-radius: 2px; animation: miScan 1.8s ease-in-out infinite; }
@keyframes miScan { 0%, 100% { top: 6%; } 50% { top: 90%; } }
.mi-stages { list-style: none; padding: 0; margin: 0 auto 0.75rem; max-width: 30rem; display: flex; flex-direction: column; gap: 0.6rem; }
.mi-stage { display: flex; gap: 0.6rem; align-items: flex-start; color: #a0aec0; }
.mi-stage small { display: block; color: #6b7a90; font-size: 0.8rem; }
.mi-dot { flex: none; width: 1.7rem; height: 1.7rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #e2e8f0; color: #6b7a90; font-weight: 700; font-size: 0.85rem; }
.mi-done .mi-dot, .mi-stage.mi-done .mi-dot { background: #2f9e57; color: white; }
.mi-stage.mi-done, .mi-stage.mi-now { color: var(--ink); }
.mi-stage.mi-now .mi-dot { background: var(--navy); color: white; animation: rsPulse 1.6s ease-in-out infinite; }
.mi-bar { display: block; height: 6px; background: #e2e8f0; border-radius: 3px; margin-top: 0.35rem; overflow: hidden; width: 16rem; max-width: 100%; }
.mi-bar span { display: block; height: 100%; background: var(--navy); transition: width 0.5s; }
.mi-progress > .mi-muted { text-align: center; }
.mi-review-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
.mi-review-head h3 { margin: 0; }
.mi-stats { display: flex; gap: 0.4rem; flex-wrap: wrap; margin: 0.75rem 0; }
.mi-stat { background: var(--pale); border-radius: 999px; padding: 0.3rem 0.8rem; font-size: 0.85rem; color: #4a5568; }
.mi-stat strong { color: var(--navy); font-size: 1.05rem; }
.mi-stat-warn { background: #fff4e0; } .mi-stat-warn strong { color: #b35c00; }
.mi-stat-sug { background: #eef6ff; }
.mi-warnings { background: #fff8e1; border: 1px solid #f3d27a; border-radius: 8px; padding: 0.5rem 0.75rem 0.5rem 1.8rem; font-size: 0.88rem; margin: 0 0 0.75rem; }
.mi-views { display: flex; gap: 0.25rem; border-bottom: 2px solid #dee2e6; margin-bottom: 0.75rem; }
.mi-view { width: auto; background: none; border: none; border-bottom: 3px solid transparent; margin-bottom: -2px; padding: 0.55rem 0.9rem; font-weight: 600; color: #495057; cursor: pointer; }
.mi-view.active { color: var(--navy); border-bottom-color: var(--red); }
.mi-cat h4 { color: var(--navy); margin: 0.9rem 0 0.4rem; }
.mi-item, .mi-group { border: 1px solid #e2e8f0; border-radius: 10px; padding: 0.6rem 0.7rem; margin-bottom: 0.5rem; display: flex; flex-direction: column; gap: 0.4rem; }
.mi-flag { border-color: #f0b35b; background: #fffaf0; }
.mi-flagtext { color: #b35c00; font-size: 0.85rem; margin: 0; }
.mi-item-top { display: flex; gap: 0.4rem; align-items: center; }
.mi-item-top .mi-name { flex: 1; font-weight: 700; color: var(--navy); min-width: 0; }
.mi-catin { width: 10rem !important; color: #4a5568; }
.mi-desc { width: 100% !important; font-size: 0.88rem; }
.mi-sizes { display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }
.mi-size { display: inline-flex; align-items: center; gap: 0.2rem; background: var(--pale); border-radius: 8px; padding: 0.2rem 0.35rem; }
.mi-size input:first-child { width: 7rem; } .mi-size input[type=number], .mi-opts input[type=number] { width: 5.5rem; }
.mi-dollar { color: #6b7a90; }
.mi-link { width: auto; background: none; border: none; color: var(--navy); font-weight: 600; cursor: pointer; padding: 0.2rem 0.3rem; text-decoration: underline; }
.mi-chips { display: flex; gap: 0.35rem; flex-wrap: wrap; align-items: center; }
.mi-chip { display: inline-flex; align-items: center; gap: 0.2rem; background: #eef3fb; color: var(--navy); border-radius: 999px; padding: 0.15rem 0.3rem 0.15rem 0.7rem; font-size: 0.82rem; font-weight: 600; }
.mi-chip button { width: auto; background: none; border: none; color: inherit; cursor: pointer; font-size: 1rem; line-height: 1; padding: 0 0.2rem; }
.mi-chip.mi-req { background: var(--navy); color: white; }
.mi-chip.mi-sug { outline: 2px dashed #7fa6e0; }
.mi-chips select { font-size: 0.82rem; padding: 0.15rem 0.4rem; }
.mi-sugcard { border-color: #9fc0ef; background: #f6faff; }
.mi-sugtext { font-size: 0.85rem; color: #24548f; margin: 0; }
.mi-off { opacity: 0.55; }
.mi-include { margin-left: auto; }
.mi-rules { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; font-size: 0.85rem; }
.mi-rules label { display: inline-flex; align-items: center; gap: 0.3rem; margin: 0; font-weight: 500; }
.mi-rules input[type=number] { width: 4rem; }
.mi-tog { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.85rem; margin: 0; }
.mi-rulechip { background: #eef3fb; color: var(--navy); border-radius: 999px; padding: 0.15rem 0.6rem; font-weight: 600; }
.mi-rulechip.mi-req { background: var(--navy); color: white; }
.mi-opts { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.mi-opts th { text-align: left; color: #6b7a90; font-weight: 600; font-size: 0.78rem; padding: 0.2rem 0.3rem; }
.mi-opts td { padding: 0.2rem 0.3rem; border-top: 1px solid #edf2f7; vertical-align: middle; }
.mi-opts td:first-child input { width: 100%; min-width: 8rem; }
.mi-sp { display: flex; gap: 0.4rem; flex-wrap: wrap; } .mi-sp label { display: inline-flex; gap: 0.25rem; align-items: center; margin: 0; font-size: 0.8rem; }
.mi-used { font-size: 0.85rem; color: #4a5568; margin: 0; }
.mi-save { position: sticky; bottom: 0; background: white; border-top: 2px solid #e2e8f0; margin: 0.75rem -1.25rem -1.25rem; padding: 0.9rem 1.25rem; border-radius: 0 0 12px 12px; display: flex; flex-direction: column; gap: 0.6rem; }
.mi-mode { border: 1px solid #e2e8f0; border-radius: 8px; padding: 0.5rem 0.75rem; }
.mi-mode legend { font-weight: 600; padding: 0 0.3rem; }
.mi-mode label { display: block; margin: 0.25rem 0; }
.mi-save .btn { align-self: flex-start; }
.mi-done { display: flex; gap: 0.5rem; margin-bottom: 1rem; } .mi-done[hidden] { display: none; } .mi-done .btn { width: auto; }
@media (max-width: 600px) { .mi-opts thead { display: none; } .mi-opts tr { display: flex; flex-wrap: wrap; gap: 0.3rem; border-top: 1px solid #edf2f7; padding: 0.3rem 0; } .mi-opts td { border: none; } .mi-catin { width: 7rem !important; } }
@media (prefers-reduced-motion: reduce) { .mi-beam, .mi-stage.mi-now .mi-dot { animation: none; } }
:is(#reservations, #ovFloor) .rs-tabs { display: none; }
/* Setup locked = service mode (iPad at the host stand): side menu gone, two big tabs, everything touch-sized */
body.rs-service #subnav:has(> .subnav-group[data-group="reservations"]:not([hidden])) { display: none; }
body.rs-service :is(#reservations, #ovFloor) .rs-tabs { display: flex; gap: 0.4rem; border: none; background: #e6ecf6; padding: 0.35rem; border-radius: 14px; margin-bottom: 1rem; }
body.rs-service :is(#reservations, #ovFloor) .rs-tab { flex: 1; min-height: 3.25rem; margin: 0; border: none; border-radius: 10px; font-size: 1.1rem; color: #4a5568; }
body.rs-service :is(#reservations, #ovFloor) .rs-tab.active { background: white; color: var(--navy); box-shadow: 0 2px 6px rgba(18,53,107,0.15); }
body.rs-service :is(#reservations, #ovFloor) .rs-head { align-items: center; }
body.rs-service :is(#reservations, #ovFloor) .rs-lockbtn { width: auto; min-width: 44px; min-height: 44px; padding: 0 0.7rem; font-size: 1.1rem; background: none; border: 1px solid #d5dbe5; color: #6b7a90; }
body.rs-service :is(#reservations, #ovFloor) button:not(.pl-t), body.rs-service :is(#reservations, #ovFloor) .btn { min-height: 44px; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
body.rs-service :is(#reservations, #ovFloor) .btn-sm { padding: 0.5rem 1rem; font-size: 0.95rem; }
body.rs-service :is(#reservations, #ovFloor) .fl-pill { padding: 0.55rem 1.1rem; font-size: 1rem; }
body.rs-service :is(#reservations, #ovFloor) .fl-guest { padding: 0.5rem 0.9rem; font-size: 0.95rem; }
body.rs-service :is(#reservations, #ovFloor) .fl-stat { padding: 0.45rem 0.95rem; font-size: 0.95rem; }
body.rs-service :is(#reservations, #ovFloor) .pl-switch button { padding: 0.5rem 1rem; font-size: 0.95rem; }
body.rs-service :is(#reservations, #ovFloor) .pl-t, body.rs-service :is(#reservations, #ovFloor) .fl-tile { touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
body.rs-service :is(#reservations, #ovFloor) .fl-sheet .btn, body.rs-service :is(#reservations, #ovFloor) .wl-row .btn { min-height: 48px; font-size: 1rem; padding: 0.55rem 1.1rem; }
body.rs-service :is(#reservations, #ovFloor) input:not([type=checkbox]):not([type=radio]), body.rs-service :is(#reservations, #ovFloor) select { min-height: 44px; font-size: 16px; }
body.rs-service :is(#reservations, #ovFloor) input[type=checkbox] { width: 1.4rem; height: 1.4rem; vertical-align: middle; }
body.rs-service :is(#reservations, #ovFloor) .fl-close { min-width: 48px; font-size: 1.9rem; }
@media (hover: none) { body.rs-service :is(#reservations, #ovFloor) .fl-tile:hover, body.rs-service :is(#reservations, #ovFloor) button.pl-t:hover { transform: none; box-shadow: none; } }
.subnav a.subnav-tab.active, .subnav a.subnav-jump.active { background: var(--pale); border-left-color: var(--red); font-weight: 600; }
.set-anchor { scroll-margin-top: 80px; }
/* Settings = separate pages, one per side-menu item (#settings[data-page]) */
#settings [data-spage] { margin-top: 0 !important; padding-top: 0 !important; border-top: none !important; }
#settings[data-page="services"] [data-spage]:not([data-spage~="services"]) { display: none; }
#settings[data-page="info"] [data-spage]:not([data-spage~="info"]) { display: none; }
#settings[data-page="forwarding"] [data-spage]:not([data-spage~="forwarding"]) { display: none; }
#settings[data-page="billing"] [data-spage]:not([data-spage~="billing"]) { display: none; }
#settings[data-page="tickets"] [data-spage]:not([data-spage~="tickets"]) { display: none; }
#settings[data-page="printer"] [data-spage]:not([data-spage~="printer"]) { display: none; }
#settings[data-page="listing"] [data-spage]:not([data-spage~="listing"]) { display: none; }
#settings[data-page="staff"] [data-spage]:not([data-spage~="staff"]) { display: none; }
/* the "password lock is off" note shows once, on the first Settings page (owner 2026-11-17) */
#settings:not([data-page="services"]):not([data-page="info"]) #settingsLockPanel.sl-note { display: none; }
body:not(.brand-r2t) #settings[data-page="info"] #settingsLockPanel.sl-note { display: none; }
/* ring2order keeps "Your services" as its own page; ring2table shows the switch on Plan & billing */
body:not(.brand-r2t) #settings[data-page="billing"] #servicesSection { display: none; }
/* ring2table: reservations are the product, no on/off switch (owner 2026-11-18) */
body.brand-r2t #servicesSection { display: none; }
#settings[data-page="info"] .settings-section[data-spage="info"], #settings[data-page="forwarding"] .settings-section[data-spage="forwarding"] { margin-bottom: 1rem; }
/* Settings locked: no side menu either */
body.settings-locked #subnav:has(> .subnav-group[data-group="settings"]:not([hidden])) { display: none; }
.rs-stepper { list-style: none; display: flex; gap: 0.5rem; padding: 0; margin: 0 0 1rem; flex-wrap: wrap; counter-reset: none; }
.rs-step button { width: auto; display: flex; align-items: center; gap: 0.5rem; background: #F3F6FB; border: 2px solid transparent; border-radius: 999px; padding: 0.35rem 0.9rem 0.35rem 0.35rem; cursor: pointer; font-weight: 600; color: #495057; }
.rs-step-num { display: inline-flex; align-items: center; justify-content: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: #dee2e6; color: #343a40; font-size: 0.85rem; }
.rs-step-current button { border-color: var(--navy); color: var(--navy); }
.rs-step-current .rs-step-num { background: var(--navy); color: #fff; }
.rs-step-done .rs-step-num { background: #198754; color: #fff; }
.rs-step button:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.rs-guide-title { color: var(--navy); margin: 0.5rem 0 0.25rem; }
.rs-guide-nav { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; border-top: 1px solid #dee2e6; padding-top: 1rem; margin-top: 1rem; }
.rs-guide-nav .btn { width: auto; }
.rs-copy { margin-bottom: 0.5rem; }
.rs-checklist { list-style: none; padding: 0; margin: 0 0 1rem; }
.rs-checklist li { padding: 0.5rem 0; border-bottom: 1px solid #e9ecef; display: flex; gap: 0.6rem; align-items: center; }
.rs-ctext { flex: 1; }
.rs-checklist li .btn { width: auto; }
.rs-icon { flex: none; display: inline-flex; width: 1.5rem; height: 1.5rem; border-radius: 50%; align-items: center; justify-content: center; font-weight: 700; color: #fff; }
.rs-ok .rs-icon { background: #198754; }
.rs-todo .rs-icon { background: #b45309; }
.rs-done-box { background: #d4edda; color: #155724; border-radius: 8px; padding: 1rem; margin-top: 1rem; }
.rs-chip { background: #fff; border: 1px solid #ced4da; border-radius: 999px; padding: 0.15rem 0.3rem 0.15rem 0.7rem; font-size: 0.85rem; }
.rs-chip button { width: auto; border: none; background: none; cursor: pointer; font-size: 1rem; padding: 0 0.3rem; }
.mo-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.mo-header .btn, .mo-group-actions .btn, .mo-empty .btn, .og-footer .btn { width: auto; }
.og-size-col input { min-width: 9rem !important; }
.mo-header-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.mo-header-actions .btn { width: auto; }
.mo-suggest-head { margin: 0.5rem 0 1rem; }
.mo-suggest-head h3 { margin: 0; color: var(--navy); }
.mo-suggest-bulk { display: flex; gap: 0.5rem; }
.mo-suggest-bulk .btn { width: auto; }
.mo-suggestion { border-left: 4px solid #D92735; padding: 1rem 1.25rem; background: #fff; box-shadow: 0 1px 4px rgba(18,53,107,0.08); border-radius: 8px; }
.mo-why { margin: 0.25rem 0; color: #333; }
.mo-pick { display: inline-flex; align-items: center; gap: 0.35rem; cursor: pointer; font-weight: normal; }
.mo-chip-guess { background: #fff; border-style: dashed; }
.mo-tag { font-size: 0.7rem; background: #fff3cd; color: #7a5a00; border-radius: 4px; padding: 0.05rem 0.35rem; }
.mo-analyzing { display: flex; align-items: center; gap: 1rem; }
.mo-spinner { width: 28px; height: 28px; border: 3px solid #d6deeb; border-top-color: #D92735; border-radius: 50%; animation: mo-spin 0.9s linear infinite; flex: none; }
@keyframes mo-spin { to { transform: rotate(360deg); } }
.mo-suggest-done { background: #F3F6FB; }
.mo-chip-link { cursor: pointer; font: inherit; font-size: 0.8rem; color: var(--navy); margin: 0.1rem 0; }
.mo-chip-link:hover, .mo-chip-link:focus-visible { background: #e3eaf6; border-color: var(--navy); }
.menu-options-none { color: #999; font-size: 0.85rem; }
.mo-intro { color: #555; max-width: 640px; margin: 0.25rem 0 0; }
.mo-group { margin-bottom: 1rem; }
.mo-group-off { opacity: 0.65; }
.mo-group-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
.mo-group-head h3 { margin: 0; color: var(--navy); }
.mo-group-actions { display: flex; gap: 0.5rem; }
.mo-rules { color: #6c757d; font-size: 0.875rem; margin: 0.25rem 0 0.5rem; }
.mo-prompt { font-style: italic; color: #444; margin: 0.25rem 0 0.5rem; }
.mo-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.5rem 0; }
.mo-chip { background: #F3F6FB; border: 1px solid #d6deeb; border-radius: 999px; padding: 0.2rem 0.7rem; font-size: 0.85rem; }
.mo-chip-off { text-decoration: line-through; color: #999; }
.mo-badge { background: #6c757d; color: #fff; font-size: 0.7rem; border-radius: 4px; padding: 0.1rem 0.4rem; vertical-align: middle; }
.mo-items { font-size: 0.875rem; color: #444; margin: 0.5rem 0 0; }
.mo-empty { text-align: center; padding: 2rem; }
.mo-empty p { max-width: 560px; margin: 0.75rem auto 1.25rem; color: #555; }
.og-modal { max-width: 1060px; margin: 3% auto; max-height: 92vh; max-height: 92dvh; overflow-y: auto; }
.og-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.og-grid-4 { grid-template-columns: repeat(4, 1fr); }
.og-subhead { margin: 1.25rem 0 0.5rem; color: var(--navy); }
.og-checks { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; align-items: center; }
.og-checks label { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: normal; }
.og-small-input { width: 4.5rem; margin-left: 0.35rem; }
.og-table-wrap { overflow-x: auto; }
.og-table input[type="text"], .og-table input[type="number"], .og-table select { width: 100%; min-width: 4.5rem; padding: 0.35rem; }
.og-table td:first-child input { min-width: 9rem; }
.og-center { text-align: center; }
.og-row-actions { white-space: nowrap; }
.og-icon-btn { background: none; border: 1px solid #ccd; border-radius: 4px; width: 1.9rem; height: 1.9rem; cursor: pointer; }
.og-icon-btn:disabled { opacity: 0.35; cursor: default; }
.og-remove { color: #D92735; }
.og-search { width: 100%; padding: 0.5rem; margin-bottom: 0.5rem; }
.og-items { max-height: 260px; overflow-y: auto; border: 1px solid #e1e5e9; border-radius: 6px; padding: 0.5rem 0.75rem; }
.og-category { border: none; padding: 0; margin: 0 0 0.75rem; }
.og-category legend { font-weight: 700; color: var(--navy); }
.og-item { display: block; font-weight: normal; padding: 0.15rem 0 0.15rem 1.25rem; }
.og-item[hidden] { display: none; }
.og-footer { display: flex; justify-content: space-between; gap: 0.5rem; margin-top: 1.25rem; flex-wrap: wrap; }
.og-footer-right { display: flex; gap: 0.5rem; margin-left: auto; }
#optionGroupModal [hidden] { display: none !important; }
@media (max-width: 600px) {
    .og-grid, .og-grid-4 { grid-template-columns: 1fr; }
    .og-modal { width: 96%; padding: 1rem; margin: 2% auto; }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: black;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: #495057;  /* Improved contrast from #6c757d */
}

.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 0.75rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 0.75rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 1024px) {
    .topbar { flex-wrap: wrap; gap: 0.25rem 0.75rem; padding: 0.5rem 16px 0; }
    .tb-brand img { height: 34px; }
    .tb-right { margin-left: auto; }
    .tb-email { display: none; }
    .tb-tabs { order: 3; flex-basis: 100%; min-height: 44px; }
    .tb-tab { padding: 0 0.7rem; font-size: 0.9rem; }
    .dash-body { flex-direction: column; align-items: stretch; min-height: 0; }
    .subnav { position: static; width: 100%; min-height: 0; max-height: none; border-right: none; border-bottom: 1px solid #dde3ee; padding: 0.5rem 0; overflow-x: auto; }
    .subnav-group { display: flex; gap: 0.25rem; padding: 0 16px; }
    .subnav-group > div { display: contents; }
    .subnav h3 { display: none; }
    .subnav a { white-space: nowrap; border-left: none; border-bottom: 3px solid transparent; padding: 0.5rem 0.75rem; }
    .subnav a.active { border-bottom-color: var(--red); }
    .main-content {
        padding: 1rem 16px;
    }
}
@media (max-width: 600px) {
    .stats-grid { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
}

/* Signup + plan picker */
.signup-hint { display: block; margin-top: 0.4rem; color: #495057; font-size: 0.85rem; }
.plan-container { justify-content: flex-start; padding-top: 2rem; padding-bottom: 2rem; }
.plan-form { max-width: 640px; }
.plan-intro { margin-bottom: 1rem; color: #495057; }
.plan-group { border: 1px solid #dee2e6; border-radius: 8px; padding: 0.75rem 1rem 0.5rem; margin-bottom: 1rem; }
.plan-group legend { font-weight: 700; color: var(--navy); padding: 0 0.25rem; }
.plan-optional { font-weight: 400; color: #6c757d; }
.plan-option { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.5rem 0; cursor: pointer; }
.plan-option input { margin-top: 0.3rem; width: auto; }
.plan-option small { display: block; color: #6c757d; }
.plan-option.disabled { opacity: 0.5; cursor: not-allowed; }
.plan-total { font-size: 1.1rem; margin: 1rem 0; }
.link-btn { background: none; border: none; padding: 0; margin-top: 0.4rem; color: var(--navy); text-decoration: underline; cursor: pointer; font-size: 0.85rem; width: auto; }
.low-balance-banner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; background: #fff3cd; border: 1px solid #ffc107; border-left: 6px solid #dc3545; border-radius: 8px; padding: 1rem 1.25rem; margin-bottom: 1rem; }
.low-balance-banner[hidden] { display: none; }
/* Onboarding */
/* Onboarding visuals */
.terms-checks { padding: 0.75rem; }
.terms-checks label, .terms-check label { display: grid; grid-template-columns: 1.25rem 1fr; column-gap: 0.75rem; align-items: start; margin: 0 0 0.6rem; padding: 0.75rem 0.85rem; border: 1px solid #dee2e6; border-radius: 8px; background: #fff; font-weight: normal; line-height: 1.5; color: #343a40; cursor: pointer; text-align: left; }
.terms-checks label:last-child { margin-bottom: 0; }
.terms-checks label:has(input:checked) { border-color: var(--red); background: #fff7f7; }
.terms-check label { border: 0; padding: 0; background: none; }
.terms-checks input[type="checkbox"], .terms-check input[type="checkbox"] { width: 1.15rem; height: 1.15rem; margin: 0.2rem 0 0; padding: 0; }
.terms-text { display: block; min-width: 0; }
.ob-hero { display: flex; gap: 1rem; align-items: center; background: #f3f6fb; border-radius: 10px; padding: 0.9rem 1rem; margin-bottom: 1rem; }
.ob-hero p { margin: 0; color: #343a40; line-height: 1.45; }
.ob-hero-icon { flex: 0 0 56px; height: 56px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; }
.ob-hero-icon svg { width: 30px; height: 30px; }
.ob-flow { display: flex; align-items: stretch; gap: 0.25rem; margin-bottom: 1rem; }
.ob-flow-node { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.4rem; font-size: 0.85rem; color: #343a40; border: 1px solid #dee2e6; border-radius: 10px; padding: 0.75rem 0.5rem; background: #fff; }
.ob-flow-icon { width: 40px; height: 40px; border-radius: 50%; background: #e8edf7; color: var(--navy); display: flex; align-items: center; justify-content: center; }
.ob-flow-icon svg { width: 22px; height: 22px; }
.ob-flow-ai { border-color: #dc3545; }
.ob-flow-ai .ob-flow-icon { background: #dc3545; color: #fff; }
.ob-flow-arrow { flex: 0 0 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #6c757d; font-size: 0.7rem; }
.ob-flow-arrow svg { width: 26px; height: 26px; color: var(--navy); }
.ob-number-card { border: 2px solid #dee2e6; border-radius: 10px; padding: 0.75rem 1rem; margin-bottom: 0.5rem; align-items: center; }
.ob-number-card:has(input:checked) { border-color: var(--navy); background: #f3f6fb; }
.ob-number-card strong { font-size: 1.2rem; color: var(--navy); }
.ob-more { display: block; margin: 0 auto 0.75rem; font-size: 0.95rem; }
.ob-forwarding { border: 2px solid var(--navy); border-radius: 12px; padding: 1rem; margin-bottom: 1rem; }
.ob-forwarding h3 { margin: 0 0 0.25rem; color: var(--navy); font-size: 1.1rem; }
.ob-forwarding-sub { margin: 0 0 0.75rem; color: #495057; }
.ob-dial-steps { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; counter-reset: dial; }
.ob-dial-steps li { counter-increment: dial; position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.3rem; background: #f8f9fa; border-radius: 10px; padding: 1rem 0.5rem 0.75rem; font-size: 0.85rem; color: #495057; }
.ob-dial-steps li::before { content: counter(dial); position: absolute; top: 6px; left: 8px; width: 22px; height: 22px; border-radius: 50%; background: #dc3545; color: #fff; font-weight: 700; font-size: 0.8rem; line-height: 22px; }
.ob-dial-steps strong { color: var(--navy); font-size: 0.95rem; }
.ob-dial-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; }
.ob-dial-icon svg { width: 24px; height: 24px; }
.ob-screen { display: inline-block; font-family: "SFMono-Regular", Menlo, Consolas, monospace; font-weight: 700; background: #1f2937; color: #7CFC9A; border-radius: 6px; padding: 0.3rem 0.5rem; letter-spacing: 0.04em; white-space: nowrap; font-size: 0.9rem; }
.ob-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-bottom: 0.75rem; }
.ob-switch-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.4rem; border-radius: 10px; padding: 0.75rem 0.5rem; font-size: 0.85rem; }
.ob-on { background: #e7f6ec; border: 1px solid #28a745; color: #1e5631; }
.ob-off { background: #f1f3f5; border: 1px solid #adb5bd; color: #495057; }
.ob-pill { font-weight: 800; font-size: 0.8rem; letter-spacing: 0.08em; padding: 0.15rem 0.7rem; border-radius: 999px; color: #fff; }
.ob-on .ob-pill { background: #28a745; }
.ob-off .ob-pill { background: #6c757d; }
.pct-input { display: flex; align-items: center; gap: 0.5rem; }
.pct-input input { flex: 1; }
.pct-input span { font-weight: 700; color: #495057; }
.ob-number, .ob-number-dial { white-space: nowrap; }
.ob-switch-card { min-width: 0; }
.ob-flow-caption { background: #f8f9fa; border-left: 4px solid var(--navy); border-radius: 8px; padding: 0.75rem 1rem; margin-bottom: 1rem; }
.ob-flow-caption p { margin: 0 0 0.4rem; color: #343a40; line-height: 1.6; }
.ob-flow-caption .ob-screen { padding: 0.1rem 0.4rem; font-size: 0.85rem; }
.ob-fineprint { margin: 0; font-size: 0.8rem; color: #6c757d; }
.ob-forwarding-alt { margin-top: 1rem; background: #f8f9fa; border-left: 4px solid var(--navy); border-radius: 8px; padding: 0.75rem 1rem; }
.ob-forwarding-alt p { margin: 0 0 0.5rem; color: #343a40; line-height: 1.6; }
.ob-forwarding-alt p:last-child { margin-bottom: 0; }
.ob-forwarding-alt .ob-screen { padding: 0.1rem 0.4rem; font-size: 0.85rem; }
@media (max-width: 600px) {
    .ob-flow { flex-direction: column; }
    .ob-flow-arrow { flex-basis: auto; flex-direction: row; gap: 0.3rem; }
    .ob-flow-arrow svg { transform: rotate(90deg); }
    .ob-dial-steps { grid-template-columns: 1fr; }
    .ob-switch { grid-template-columns: 1fr; }
    .ob-steps li { min-width: 0; font-size: 0.8rem; }
    .ob-hero-icon { flex-basis: 44px; height: 44px; }
}
.ob-steps { display: flex; gap: 0.5rem; list-style: none; padding: 0; margin: 0 0 1rem; counter-reset: ob; flex-wrap: wrap; }
.ob-steps li { counter-increment: ob; flex: 1; min-width: 120px; padding: 0.5rem; border-bottom: 4px solid #dee2e6; color: #6c757d; font-size: 0.9rem; }
.ob-steps li::before { content: counter(ob) ". "; font-weight: 700; }
.ob-steps li.active { border-color: #dc3545; color: var(--navy); font-weight: 700; }
.ob-steps li.done { border-color: var(--navy); color: var(--navy); }
.ob-row { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: flex-end; }
.ob-row > .form-group { flex: 1; min-width: 120px; }
.ob-search .btn { width: auto; margin-bottom: 1rem; }
.ob-big-number { font-size: 1.75rem; font-weight: 700; color: var(--navy); margin: 0 0 0.5rem; }
.ob-choices { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }
.ob-choices .link-btn { align-self: center; font-size: 0.95rem; }
.ob-tip p { margin: 0.25rem 0 0.5rem; color: #495057; }
.ob-note { background: #fff3cd; border-radius: 6px; padding: 0.5rem 0.75rem; }
.ob-forward { margin: 0.25rem 0 0.5rem 1.25rem; padding: 0; color: #495057; }
.ob-forward li { margin-bottom: 0.35rem; }
.low-balance-banner p { margin: 0.25rem 0 0; color: #495057; }
.low-balance-actions { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.low-balance-actions select { width: auto; min-width: 220px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.minute-history { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.minute-history th, .minute-history td { text-align: left; padding: 0.5rem; border-bottom: 1px solid #dee2e6; }
.minute-history small { color: #6c757d; display: block; }

/* Balance warning styles */
.balance-low {
    color: #dc3545 !important;
}

.balance-critical {
    animation: flash 1s infinite;
}

@keyframes flash {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

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

/* Skip navigation link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--navy);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Enhanced focus indicators for accessibility */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 3px solid var(--red);
    outline-offset: 2px;
}

/* Ensure buttons have pointer cursor */
button, .btn {
    cursor: pointer;
}

/* Full-screen loading overlay */
.processing-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
}

.processing-overlay.active {
    display: flex;
}

.processing-content {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 500px;
    width: 90%;
}

.processing-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #e9ecef;
    border-top: 6px solid var(--navy);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

.processing-content h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.processing-content p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.processing-progress {
    background: #e9ecef;
    border-radius: 10px;
    height: 40px;
    overflow: hidden;
    position: relative;
    margin-bottom: 1rem;
}

.processing-progress-bar {
    background: linear-gradient(90deg, var(--navy) 0%, var(--red) 100%);
    height: 100%;
    width: 0%;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.processing-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    z-index: 1;
}

.processing-status {
    font-size: 0.875rem;
    color: var(--navy);
    font-weight: 500;
}

/* Editable table cells */
.editable-cell input,
.editable-cell textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 0.875rem;
}

.editable-cell textarea {
    min-height: 60px;
    resize: vertical;
}

.editable-cell input:focus,
.editable-cell textarea:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 2px rgba(18, 53, 107, 0.15);
}
.auth-form {
    border-top: 5px solid var(--red);
    box-shadow: 0 8px 24px rgba(18, 53, 107, 0.12);
}

/* Website navigation bar (matches ring2order.com) */
.site-header {
    background: var(--navy);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 12px rgba(8, 28, 61, 0.25);
}

.site-header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
}

/* On-navy logo cropped to its top line, as on the website */
.site-brand {
    display: block;
    flex-shrink: 0;
    height: 46px;
    overflow: hidden;
}

.site-brand img {
    height: 82px;
    width: auto;
    margin-top: -6px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-nav ul {
    display: flex;
    gap: 24px;
    list-style: none;
}

.site-nav-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 6px 0;
    border-bottom: 3px solid transparent;
}

.site-nav-link:hover {
    border-bottom-color: #9fb1cc;
}

.site-nav-actions {
    display: flex;
    gap: 10px;
}

.site-btn {
    display: inline-block;
    padding: 9px 18px;
    border-radius: 999px;
    border: 2px solid transparent;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}

.site-nav-actions[hidden] { display: none !important; }
.site-nav-user { color: #fff; opacity: 0.85; font-size: 0.85rem; margin-right: 0.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
button.site-btn { cursor: pointer; font-family: inherit; font-weight: 700; font-size: 14px; line-height: normal; background: transparent; width: auto; margin: 0; box-shadow: none; }
button.site-btn-outline:hover { background: white; color: var(--navy); }
.site-btn-outline {
    color: white;
    border-color: white;
}

.site-btn-outline:hover {
    background: white;
    color: var(--navy);
}

.site-btn-red {
    background: var(--red);
    color: white;
}

.site-btn-red:hover {
    background: var(--red-dark);
}

.site-header a:focus, .site-header button:focus {
    outline-color: white;
}

.site-nav-toggle {
    display: none;
    background: none;
    border: 0;
    padding: 8px;
    color: white;
}

.site-nav-toggle svg {
    width: 28px;
    height: 28px;
}

@media (max-width: 1024px) {
    .site-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 80px;
        background: var(--navy);
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        flex-direction: column;
        align-items: stretch;
        padding: 16px 24px 24px;
        gap: 16px;
    }

    .site-nav.open {
        display: flex;
    }

    .site-nav ul {
        flex-direction: column;
        gap: 4px;
    }

    .site-nav-link {
        display: block;
        padding: 10px 0;
    }

    .site-nav-toggle {
        display: block;
    }
}

@media (max-width: 600px) {
    .site-header-inner {
        padding: 0 16px;
    }

    .site-brand {
        height: 38px;
    }

    .site-brand img {
        height: 68px;
        margin-top: -5px;
    }
}

.sidebar-brand {
    padding: 0 1rem 1.25rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.sidebar-brand img {
    display: block;
    width: 100%;
    max-width: 200px;
    height: auto;
    margin: 0 auto;
}

button, input, select, textarea {
    font-family: inherit;
}

#authToggle {
    background: white;
    color: var(--navy);
    border: 2px solid var(--navy);
}

#authToggle:hover {
    background: var(--pale);
}

.site-footer {
    background: var(--navy);
    color: #dbe3ef;
    text-align: center;
    padding: 1.25rem 1rem;
    font-size: 0.875rem;
}

.site-footer ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
    margin-bottom: 0.5rem;
}

.site-footer a {
    color: white;
    font-weight: 600;
}

.site-footer a:focus {
    outline-color: white;
}

.signup-notice {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: var(--pale);
    border-left: 4px solid var(--red);
    border-radius: 5px;
    color: var(--ink);
}

.signup-notice a {
    color: var(--navy);
    font-weight: 600;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Overview: today hour by hour (full width, live) */
.tc { --tc-calls: #2a78d6; --tc-orders: #eb6834; background: white; border: 2px solid var(--navy); border-radius: 12px; padding: 1rem 1.1rem 0.75rem; margin: 1rem 0 0; }
.tc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.tc-title h3 { margin: 0; color: var(--navy); font-size: 1.15rem; }
.tc-live { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.8rem; color: #52514e; }
.tc-dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #2f9e57; animation: tcLive 2s ease-in-out infinite; }
@keyframes tcLive { 0%, 100% { box-shadow: 0 0 0 0 rgba(47,158,87,0.5); } 50% { box-shadow: 0 0 0 5px rgba(47,158,87,0); } }
.tc-totals { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tc-total { display: inline-flex; align-items: center; gap: 0.35rem; background: var(--pale); border-radius: 999px; padding: 0.3rem 0.8rem; font-size: 0.88rem; color: #4a5568; }
.tc-total strong { color: var(--ink); font-size: 1.1rem; }
.tc-sw { width: 0.75rem; height: 0.75rem; border-radius: 3px; display: inline-block; }
.tc-sw.tc-calls { background: var(--tc-calls); } .tc-sw.tc-orders { background: var(--tc-orders); }
.tc-plot { position: relative; height: clamp(12rem, 28vw, 20rem); padding-left: 2rem; }
.tc-grid { position: absolute; inset: 0 0 1.6rem 2rem; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.tc-grid span { border-top: 1px solid #e8ecf2; height: 0; position: relative; }
.tc-grid span:last-child { border-top-color: #c3cbd8; }
.tc-grid em { position: absolute; right: calc(100% + 0.4rem); top: -0.55rem; font-style: normal; font-size: 0.72rem; color: #6b7a90; }
.tc-cols { position: absolute; inset: 0 0 0 2rem; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.tc-col { all: unset; box-sizing: border-box; display: flex; flex-direction: column; cursor: pointer; border-radius: 6px; padding: 0 2px; position: relative; }
.tc-col:focus-visible { outline: 3px solid var(--navy-light, #3b6fc4); outline-offset: -2px; }
.tc-bars { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 2px; padding-bottom: 0; margin-bottom: 1.6rem; position: relative; }
.tc-col.tc-now .tc-bars::before { content: ''; position: absolute; inset: 0 -1px; background: rgba(18,53,107,0.05); border-radius: 6px 6px 0 0; }
.tc-col.tc-hover .tc-bars::after, .tc-col.tc-picked .tc-bars::after { content: ''; position: absolute; inset: 0 -1px; background: rgba(18,53,107,0.08); border-radius: 6px 6px 0 0; }
.tc-bar { position: relative; z-index: 1; width: min(42%, 1.4rem); height: calc(var(--v) * 100%); min-height: 0; border-radius: 4px 4px 0 0; transition: height 0.6s cubic-bezier(.3,1.2,.5,1), opacity 0.2s; }
.tc-bar.tc-calls { background: var(--tc-calls); } .tc-bar.tc-orders { background: var(--tc-orders); }
.tc-grow .tc-bar { animation: tcGrow 0.8s cubic-bezier(.3,1.2,.5,1) both; animation-delay: calc(var(--d, 0) * 1ms); }
@keyframes tcGrow { from { height: 0; } }
.tc-focus .tc-col:not(.tc-hover):not(.tc-picked) .tc-bar { opacity: 0.45; }
.tc.tc-focus .tc-col.tc-hover .tc-bar { opacity: 1; }
.tc-col.tc-future .tc-x { color: #a0aec0; }
.tc-x { position: absolute; bottom: 0.2rem; left: 0; right: 0; text-align: center; font-size: 0.72rem; color: #52514e; white-space: nowrap; }
.tc-col.tc-now .tc-x { font-weight: 700; color: var(--navy); }
.tc-detail { margin: 0.5rem 0 0.25rem; font-size: 0.9rem; color: var(--ink); min-height: 1.3em; }
.tc-table summary { cursor: pointer; font-size: 0.82rem; color: #52514e; }
.tc-table table { margin-top: 0.5rem; font-size: 0.85rem; }
@media (max-width: 600px) { .tc-plot { padding-left: 1.6rem; } .tc-grid { left: 1.6rem; } .tc-cols { left: 1.6rem; } .tc-x { font-size: 0.6rem; } .tc-col:nth-child(even) .tc-x:not(:where(.tc-now .tc-x)) { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .tc-dot, .tc-grow .tc-bar { animation: none; } .tc-bar { transition: none; } }

/* Floor plan: full width, one floor per room, tables where they sit (setup guide + live Floor) */
.pl { display: flex; flex-direction: column; gap: 1rem; margin: 0.5rem 0 1rem; }
.pl-room { animation: plRoomIn 0.5s cubic-bezier(.3,1.3,.5,1) both; animation-delay: calc(var(--i) * 70ms); }
@keyframes plRoomIn { from { opacity: 0; transform: translateY(10px); } }
.pl-head { margin: 0 0 0.4rem; color: var(--navy); font-size: 1rem; display: flex; gap: 0.4rem; align-items: baseline; flex-wrap: wrap; }
.pl-head .rs-muted { font-weight: 400; font-size: 0.82rem; }
.pl-canvas { --floor: #f7f3ec; position: relative; width: 100%; aspect-ratio: var(--ar); min-height: 13rem; container-type: inline-size;
    background-color: var(--floor); background-image: repeating-linear-gradient(90deg, transparent 0 63px, rgba(80,60,30,0.05) 63px 64px);
    border: 3px solid #b9c6dd; border-radius: 14px; box-shadow: inset 0 0 0 6px rgba(255,255,255,0.6), inset 0 2px 10px rgba(18,53,107,0.08); overflow: hidden; }
@media (max-width: 600px) { .pl-canvas { aspect-ratio: var(--ar-s); } .pl-t { --base: clamp(2.9rem, 13cqw, 4.2rem); } }
.pl-k-bar .pl-canvas::before, .pl-k-counter .pl-canvas::before { content: ''; position: absolute; left: 8%; right: 8%; top: 0; height: 9%; min-height: 12px;
    background: linear-gradient(#9a6a3a, #7a4f27); border-radius: 0 0 10px 10px; box-shadow: 0 3px 6px rgba(0,0,0,0.15); }
.pl-k-patio .pl-canvas { --floor: #eef6ec; background-image: radial-gradient(rgba(47,120,60,0.12) 1.5px, transparent 1.6px); background-size: 22px 22px; border-color: #9fd0a8; }
.pl-k-private .pl-canvas { border-color: #c9a7e8; } .pl-k-lounge .pl-canvas { --floor: #fbf1f3; border-color: #f0b4bd; }
.pl-k-upstairs .pl-canvas { border-color: #aab4c0; } .pl-k-bar .pl-canvas { border-color: #e6b56b; } .pl-k-counter .pl-canvas { border-color: #9bd4e4; }
.pl-k-none .pl-canvas { border-style: dashed; --floor: #fbfcfe; background-image: none; }
.pl-hint { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #8a94a6; font-style: italic; }
.pl-tip { font-size: 0.85rem; color: #52606f; margin: -0.5rem 0 1rem; }
.pl-t { --c: var(--navy); --fill: var(--navy); --ink-t: white; --base: clamp(3.4rem, 8.5cqw, 7rem);
    all: unset; box-sizing: border-box; position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%);
    width: calc(var(--base) * var(--kx)); height: var(--base); transform: translate(-50%, -50%);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.1rem; text-align: center;
    background: var(--fill); color: var(--ink-t); border: 3px solid var(--c); box-shadow: 0 4px 10px rgba(18,53,107,0.22);
    transition: left 0.35s cubic-bezier(.3,1.2,.5,1), top 0.35s cubic-bezier(.3,1.2,.5,1), background 0.4s, border-color 0.4s, box-shadow 0.2s, transform 0.2s; }
.pl-round { border-radius: 50%; } .pl-rect { border-radius: 14px; }
button.pl-t { cursor: pointer; }
button.pl-t:hover { transform: translate(-50%, -50%) scale(1.06); z-index: 3; }
.pl-t:focus-visible { outline: 3px solid #D92735; outline-offset: 4px; z-index: 3; }
.pl-top { font-weight: 800; font-size: clamp(0.72rem, 1.9cqw, 1.05rem); line-height: 1.05; max-width: 92%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-sub { font-size: clamp(0.62rem, 1.45cqw, 0.85rem); line-height: 1.1; opacity: 0.92; max-width: 92%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-chair { position: absolute; width: 17%; aspect-ratio: 1; min-width: 7px; border-radius: 35%; background: #cfd7e3; border: 2px solid rgba(255,255,255,0.9); transform: translate(-50%, -50%); transition: background 0.4s; pointer-events: none; }
.pl-rect .pl-chair { width: calc(17% / var(--kx)); min-width: 9px; }
.pl-chair.pl-c-on { background: var(--c); }
.pl-prog { position: absolute; left: 18%; right: 18%; bottom: 14%; height: 5px; border-radius: 3px; background: rgba(255,255,255,0.3); overflow: hidden; }
.pl-rect .pl-prog { bottom: 10%; }
.pl-prog span { display: block; height: 100%; background: white; border-radius: 3px; transition: width 0.6s; }
.pl-setup.pl-off { --fill: #a0aec0; --c: #8795a8; }
.pl-live .fl-free { --c: #2f9e57; --fill: white; --ink-t: #1d5e36; }
.pl-live .fl-soon { --c: #c98a00; --fill: #fff6dc; --ink-t: #6b4a00; }
.pl-live .fl-late { --c: #e8590c; --fill: #ffe9dc; --ink-t: #8a3300; animation: plLate 1.8s ease-in-out infinite; }
.pl-live .fl-seated { --c: #12356B; --fill: #12356B; --ink-t: white; }
.pl-live .fl-over { --c: #D92735; --fill: #D92735; --ink-t: white; animation: plOver 1.4s ease-in-out infinite; }
.pl-live .pl-off.fl-free { border-style: dashed; }
@keyframes plLate { 0%, 100% { box-shadow: 0 0 0 0 rgba(232,89,12,0.45), 0 4px 10px rgba(18,53,107,0.2); } 50% { box-shadow: 0 0 0 10px rgba(232,89,12,0), 0 4px 10px rgba(18,53,107,0.2); } }
@keyframes plOver { 0%, 100% { box-shadow: 0 0 0 0 rgba(217,39,53,0.5), 0 4px 10px rgba(18,53,107,0.2); } 50% { box-shadow: 0 0 0 9px rgba(217,39,53,0), 0 4px 10px rgba(18,53,107,0.2); } }
.pl-t.pl-picked { box-shadow: 0 0 0 5px rgba(18,53,107,0.3), 0 6px 16px rgba(18,53,107,0.3); z-index: 4; }
.pl-t.pl-changed { animation: plChanged 0.6s cubic-bezier(.3,1.6,.5,1); }
@keyframes plChanged { 0% { transform: translate(-50%, -50%) scale(0.6); } 60% { transform: translate(-50%, -50%) scale(1.15); } 100% { transform: translate(-50%, -50%) scale(1); } }
.pl-t.pl-pop, .pl-room.pl-pop .pl-canvas { animation: plChanged 0.55s cubic-bezier(.3,1.6,.5,1); }
.pl-room.pl-pop .pl-canvas { animation-name: plRoomIn; }
.pl-arranging .pl-t { cursor: grab; touch-action: none; }
.pl-arranging .pl-canvas { background-image: linear-gradient(rgba(18,53,107,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(18,53,107,0.06) 1px, transparent 1px); background-size: 5% 10%; }
.pl-t.pl-drag { cursor: grabbing; transition: none; z-index: 10; transform: translate(-50%, -50%) scale(1.1); box-shadow: 0 12px 28px rgba(18,53,107,0.35); }
.pl-arrange-bar { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; background: #eef3fb; border: 2px solid var(--navy); border-radius: 10px; padding: 0.5rem 0.75rem; margin-bottom: 0.75rem; font-size: 0.9rem; }
.pl-arrange-bar .btn { margin: 0; width: auto; }
.pl-switch { display: inline-flex; border: 2px solid var(--navy); border-radius: 999px; overflow: hidden; }
.pl-switch button { all: unset; cursor: pointer; padding: 0.25rem 0.8rem; font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.pl-switch button.active { background: var(--navy); color: white; }
.pl-switch button:focus-visible { outline: 3px solid #D92735; outline-offset: -3px; }
@media (prefers-reduced-motion: reduce) { .pl-room, .pl-t, .pl-live .fl-late, .pl-live .fl-over, .pl-t.pl-changed, .pl-t.pl-pop { animation: none; transition: none; } }

/* Import Menu progress: full width flow + one sheet per page */
.mi-wide { padding: 1.25rem 1.25rem 1rem; max-width: none; }
.mi-flow { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; }
.mi-node { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.45rem; text-align: center; color: #8a94a6; font-size: 0.9rem; }
.mi-node strong { font-weight: 600; max-width: 12rem; }
.mi-node-icon { position: relative; z-index: 1; width: clamp(3rem, 7vw, 4.6rem); aspect-ratio: 1; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: clamp(1.4rem, 3vw, 2.1rem); background: #eef1f6; border: 3px solid #d6dde8; transition: background 0.4s, border-color 0.4s, transform 0.4s; filter: grayscale(1); opacity: 0.7; }
.mi-node-tick { position: absolute; right: -4px; bottom: -4px; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: #2f9e57; color: white; font-size: 0.8rem; display: flex; align-items: center; justify-content: center; transform: scale(0); transition: transform 0.35s cubic-bezier(.3,1.6,.5,1); }
.mi-node.mi-now, .mi-node.mi-done { color: var(--ink); }
.mi-node.mi-now .mi-node-icon { background: white; border-color: var(--navy); filter: none; opacity: 1; animation: miNode 1.6s ease-in-out infinite; }
.mi-node.mi-done .mi-node-icon { background: #e8f5ec; border-color: #2f9e57; filter: none; opacity: 1; }
.mi-node.mi-done .mi-node-tick { transform: scale(1); }
@keyframes miNode { 0%, 100% { box-shadow: 0 0 0 0 rgba(18,53,107,0.35); } 50% { box-shadow: 0 0 0 12px rgba(18,53,107,0); } }
.mi-link { position: absolute; top: calc(clamp(3rem, 7vw, 4.6rem) / 2 - 2px); left: calc(50% + clamp(1.5rem, 3.5vw, 2.3rem) + 6px); right: calc(-50% + clamp(1.5rem, 3.5vw, 2.3rem) + 6px); height: 4px; border-radius: 2px; background: #e2e8f0; overflow: hidden; }
.mi-link span { position: absolute; inset: 0; width: 0; background: #2f9e57; transition: width 0.6s; }
.mi-node.mi-done .mi-link span { width: 100%; }
.mi-node.mi-now .mi-link span { width: 30%; background: linear-gradient(90deg, transparent, var(--navy), transparent); animation: miFlow 1.2s linear infinite; }
@keyframes miFlow { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
.mi-sheets { display: grid; grid-template-columns: repeat(auto-fill, minmax(3.4rem, 1fr)); gap: 0.6rem; padding: 1rem; background: var(--pale); border-radius: 12px; margin-bottom: 0.9rem; }
.mi-sheets-one { display: flex; justify-content: center; }
.mi-sheets-one .mi-pg { width: 5rem; }
.mi-pg { position: relative; aspect-ratio: 3 / 4; background: white; border: 2px solid #d6dde8; border-radius: 6px; padding: 18% 14%; display: flex; flex-direction: column; gap: 9%; overflow: hidden;
    animation: miPgIn 0.4s cubic-bezier(.3,1.4,.5,1) both; animation-delay: calc(var(--i, 0) * 30ms); transition: border-color 0.3s, transform 0.3s, background 0.3s; }
@keyframes miPgIn { from { opacity: 0; transform: translateY(8px) scale(0.9); } }
.mi-pg i { display: block; height: 7%; min-height: 3px; background: #dbe4f3; border-radius: 2px; } .mi-pg i:nth-child(2n) { width: 70%; }
.mi-pg em { position: absolute; left: 4px; bottom: 2px; font-style: normal; font-size: 0.65rem; color: #8a94a6; }
.mi-pg-now { border-color: var(--navy); transform: translateY(-3px); box-shadow: 0 6px 14px rgba(18,53,107,0.18); }
.mi-pg-now::after { content: ''; position: absolute; left: 0; right: 0; height: 3px; background: var(--red); box-shadow: 0 0 10px rgba(217,39,53,0.6); animation: miScan 1.6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -230ms); }
.mi-pg-done { border-color: #2f9e57; background: #f3faf5; }
.mi-pg-done i { background: #bfe3ca; }
.mi-pg-done::before { content: '✓'; position: absolute; right: 3px; top: 2px; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: #2f9e57; color: white; font-size: 0.65rem; display: flex; align-items: center; justify-content: center; animation: rsPop 0.45s cubic-bezier(.3,1.6,.5,1); }
.mi-meter { height: 8px; background: #e2e8f0; border-radius: 4px; overflow: hidden; }
.mi-meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--navy), #2f9e57); border-radius: 4px; transition: width 0.8s cubic-bezier(.3,1,.5,1); }
.mi-now-text { text-align: center; font-weight: 600; margin: 0.6rem 0 0.2rem; color: var(--ink); }
@media (max-width: 600px) { .mi-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1rem; } .mi-node:nth-child(2) .mi-link { display: none; } .mi-node { font-size: 0.8rem; } }
@media (prefers-reduced-motion: reduce) { .mi-node.mi-now .mi-node-icon, .mi-node.mi-now .mi-link span, .mi-pg, .mi-pg-now::after, .mi-pg-done::before { animation: none; } }

/* Reservations: setup lock */
.rs-lock-card, .rs-locked { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; background: #eef3fb; border: 2px solid var(--navy); border-radius: 12px; padding: 0.85rem 1rem; margin: 0 0 1rem; }
.rs-lock-big { margin-top: 1rem; background: #f3faf5; border-color: #2f9e57; }
.rs-lock-icon { font-size: 1.8rem; line-height: 1; }
.rs-lock-text { flex: 1 1 18rem; }
.rs-lock-text p { margin: 0.25rem 0 0; font-size: 0.9rem; color: #4a5568; }
.rs-lock-text strong { color: var(--navy); font-size: 1.02rem; }
.rs-lock-warn { color: #8a5a00 !important; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.rs-lock-card .btn, .rs-unlock .btn { width: auto; margin: 0; }
.rs-unlock { display: flex; align-items: flex-end; gap: 0.5rem; flex-wrap: wrap; }
.rs-unlock label { display: flex; flex-direction: column; font-weight: 600; font-size: 0.85rem; gap: 0.2rem; margin: 0; }
.rs-unlock input { padding: 0.4rem 0.5rem; border: 1px solid #cbd5e0; border-radius: 6px; width: 12rem; }
.rs-locked-list { margin: 0 0 1rem; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.35rem; }

/* Settings password lock */
#settings.sl-locked > :not(h2):not(#settingsLockPanel) { display: none !important; }
.sl-bar { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; background: #eef3fb; border: 2px solid var(--navy); border-radius: 12px; padding: 0.75rem 1rem; margin: 0 0 1rem; }
.sl-bar.sl-open { background: #f3faf5; border-color: #2f9e57; }
.sl-bar .btn { width: auto; margin: 0; }
.sl-icon { font-size: 1.6rem; line-height: 1; }
.sl-text { flex: 1 1 18rem; font-size: 0.92rem; color: #4a5568; }
.sl-text strong { color: var(--navy); }
.sl-off { flex-basis: 100%; font-size: 0.85rem; }
.sl-off summary { cursor: pointer; color: #52606f; }
.sl-gate { max-width: 30rem; margin: 2rem auto; text-align: center; background: white; border: 2px solid var(--navy); border-radius: 16px; padding: 2rem 1.5rem; box-shadow: 0 8px 24px rgba(18,53,107,0.12); }
.sl-gate .sl-icon { font-size: 2.6rem; display: block; margin-bottom: 0.5rem; }
.sl-gate h3 { margin: 0 0 0.4rem; color: var(--navy); }
.sl-gate p { color: #4a5568; margin: 0 0 1rem; }
.sl-form { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; align-items: center; margin-top: 0.5rem; }
.sl-form input { flex: 1 1 12rem; max-width: 16rem; padding: 0.55rem 0.7rem; border: 1px solid #cbd5e0; border-radius: 8px; font: inherit; }
.sl-form .btn { width: auto; margin: 0; }
.sl-msg { flex-basis: 100%; margin: 0.5rem 0 0; font-size: 0.88rem; font-weight: 600; }
.sl-err { color: #b02a37; } .sl-ok { color: #1d6b3a; }

/* Overview: a number that has something behind it opens that page */
.stat-card.stat-go { cursor: pointer; transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s; }
.stat-card.stat-go:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(18,53,107,0.18); }
.stat-card.stat-go:hover .value, .stat-card.stat-go:focus-visible .value { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.stat-card.stat-go:focus-visible { outline: 3px solid #D92735; outline-offset: 3px; }
.stat-card.stat-go h3::after { content: ' \203A'; color: var(--red); font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .stat-card.stat-go { transition: none; } .stat-card.stat-go:hover { transform: none; } }

/* Settings password lock on: buying minutes is hidden outside Settings too */
body.settings-locked .owner-only { display: none !important; }
.owner-only-note { display: none; margin: 0.25rem 0 0; font-weight: 600; }
body.settings-locked .owner-only-note { display: block; }

/* Orders: live board */
.ob-head { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.ob-head h2 { margin: 0; }
.ob-head .btn { width: auto; margin: 0; }
.ob-tools { display: inline-flex; gap: 0.4rem; flex-wrap: wrap; }
.ob-tools[hidden] { display: none; }
.ob-tools input, .ob-tools select { padding: 0.35rem 0.55rem; border: 1px solid #cbd5e0; border-radius: 8px; font: inherit; font-size: 0.9rem; width: auto; margin: 0; }
.ob-tools input { min-width: 14rem; }
.ob-flow { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 0.5rem; background: white; border: 2px solid var(--navy); border-radius: 14px; padding: 1rem 0.75rem 0.85rem; margin-bottom: 0.6rem; }
.ob-node { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.1rem; color: #8a94a6; }
.ob-node-icon { width: clamp(2.8rem, 6vw, 4rem); aspect-ratio: 1; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: clamp(1.3rem, 2.6vw, 1.9rem); background: #eef1f6; border: 3px solid #d6dde8; position: relative; z-index: 1; transition: background 0.4s, border-color 0.4s, transform 0.4s; }
.ob-count { font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.05; color: #a0aec0; font-weight: 800; transition: color 0.3s; }
.ob-node-label { font-size: 0.85rem; font-weight: 600; }
.ob-node.ob-has { color: var(--ink); }
.ob-node.ob-has .ob-count { color: var(--navy); }
.ob-n-new.ob-has .ob-node-icon { background: #fff3e0; border-color: #e8590c; animation: obRing 1.6s ease-in-out infinite; }
.ob-n-preparing.ob-has .ob-node-icon { background: #eef3fb; border-color: var(--navy); }
.ob-n-ready.ob-has .ob-node-icon { background: #fff6dc; border-color: #c98a00; }
.ob-n-done.ob-has .ob-node-icon { background: #e8f5ec; border-color: #2f9e57; }
@keyframes obRing { 0%, 100% { box-shadow: 0 0 0 0 rgba(232,89,12,0.45); } 50% { box-shadow: 0 0 0 12px rgba(232,89,12,0); } }
.ob-pipe { position: absolute; top: calc(clamp(2.8rem, 6vw, 4rem) / 2 - 3px); left: calc(50% + clamp(1.4rem, 3vw, 2rem) + 6px); right: calc(-50% + clamp(1.4rem, 3vw, 2rem) + 6px); height: 6px; border-radius: 3px; background: #e2e8f0; overflow: hidden; }
.ob-pipe i { position: absolute; top: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--navy); opacity: 0; }
.ob-pipe-on i { animation: obDot 2.4s linear infinite; opacity: 1; }
.ob-pipe-on i:nth-child(2) { animation-delay: 0.8s; } .ob-pipe-on i:nth-child(3) { animation-delay: 1.6s; }
@keyframes obDot { from { left: -6px; } to { left: 100%; } }
.ob-summary { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; font-size: 0.88rem; color: #4a5568; }
.ob-summary > span { background: var(--pale); border-radius: 999px; padding: 0.3rem 0.8rem; }
.ob-summary strong { color: var(--ink); }
.ob-s-warm { background: #fff6dc !important; } .ob-s-hot { background: #fde8e8 !important; color: #8a1c24 !important; }
.ob-live { display: inline-flex; align-items: center; gap: 0.35rem; margin-left: auto; }
.ob-board { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 0.75rem; align-items: start; }
@media (max-width: 1024px) { .ob-board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ob-board { grid-template-columns: 1fr; } .ob-flow { padding: 0.75rem 0.25rem; } .ob-node-label { font-size: 0.72rem; } }
.ob-col { background: #f4f6fa; border-radius: 12px; padding: 0.6rem; border-top: 5px solid #cbd5e0; min-height: 8rem; }
.ob-c-new { border-top-color: #e8590c; } .ob-c-preparing { border-top-color: var(--navy); } .ob-c-ready { border-top-color: #c98a00; } .ob-c-done { border-top-color: #2f9e57; }
.ob-col h3 { margin: 0.1rem 0.2rem 0.6rem; font-size: 1rem; color: var(--navy); display: flex; align-items: center; gap: 0.35rem; }
.ob-col-n { margin-left: auto; background: white; border-radius: 999px; padding: 0 0.55rem; font-size: 0.85rem; color: #4a5568; }
.ob-stack { display: flex; flex-direction: column; gap: 0.55rem; }
.ob-empty { color: #8a94a6; font-style: italic; font-size: 0.88rem; margin: 0.5rem 0.2rem; }
.ob-card { background: white; border-radius: 10px; padding: 0.65rem 0.75rem; box-shadow: 0 2px 6px rgba(18,53,107,0.1); border-left: 5px solid #cbd5e0; }
.ob-c-new .ob-card { border-left-color: #e8590c; } .ob-c-preparing .ob-card { border-left-color: var(--navy); } .ob-c-ready .ob-card { border-left-color: #c98a00; } .ob-c-done .ob-card { border-left-color: #2f9e57; opacity: 0.9; }
.ob-card.ob-in { animation: obIn 0.55s cubic-bezier(.3,1.4,.5,1); }
@keyframes obIn { from { opacity: 0; transform: translateY(-10px) scale(0.96); } }
.ob-card-top { display: flex; align-items: baseline; gap: 0.4rem; flex-wrap: wrap; }
.ob-ref { font-size: 1.15rem; color: var(--navy); }
.ob-type { font-size: 0.78rem; color: #52606f; text-transform: capitalize; }
.ob-age { margin-left: auto; font-size: 0.8rem; font-weight: 700; color: #2f6f45; background: #e8f5ec; border-radius: 999px; padding: 0.05rem 0.5rem; }
.ob-warm .ob-age { color: #6b4a00; background: #fff6dc; }
.ob-hot .ob-age { color: white; background: #D92735; animation: obHot 1.6s ease-in-out infinite; }
@keyframes obHot { 50% { opacity: 0.7; } }
.ob-who { font-weight: 600; margin: 0.2rem 0; display: flex; gap: 0.4rem; }
.ob-total { margin-left: auto; color: #4a5568; font-weight: 600; }
.ob-items { list-style: none; margin: 0.25rem 0; padding: 0; font-size: 0.85rem; color: #374151; }
.ob-items li { padding: 0.08rem 0; border-bottom: 1px dashed #edf0f5; }
.ob-more { color: #6b7a90; font-style: italic; }
.ob-ready { font-size: 0.8rem; color: #52606f; margin-top: 0.2rem; }
.ob-actions, .ob-row-actions { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-top: 0.5rem; }
.ob-actions .btn, .ob-row-actions .btn { width: auto; margin: 0; }
.ob-go { font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .ob-n-new.ob-has .ob-node-icon, .ob-pipe-on i, .ob-card.ob-in, .ob-hot .ob-age { animation: none; } }

/* Messages = visual voicemail (v3.38) */
.vm-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.25rem; }
.vm-tools { display: flex; gap: 0.5rem; align-items: center; }
.vm-tools select { padding: 0.4rem 0.6rem; border: 2px solid #e1e5e9; border-radius: 6px; font: inherit; background: white; }
.vm-tools .btn { width: auto; }
.vm-intro { color: #4a5568; font-size: 0.9rem; margin: 0 0 1rem; max-width: 60rem; }
.vm-list { display: flex; flex-direction: column; gap: 0.75rem; }
.vm-card { background: white; border: 1px solid #dde3ee; border-left: 5px solid #cbd5e0; border-radius: 12px; padding: 0.85rem 1rem; box-shadow: 0 1px 3px rgba(18,53,107,0.06); }
.vm-card.vm-new { border-left-color: var(--navy); }
.vm-card.vm-urgent.vm-new { border-left-color: var(--red); }
.vm-card.vm-done { opacity: 0.85; }
.vm-top { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.vm-dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: transparent; flex: none; }
.vm-unheard .vm-dot { background: #2a78d6; }
.vm-name { font-size: 1.05rem; color: var(--navy); }
.vm-unheard .vm-name { font-weight: 800; }
.vm-tag { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; border-radius: 999px; padding: 0.05rem 0.55rem; background: #e7f1ff; color: #0b3d91; }
.vm-tag.vm-tag-intent { background: #12356B; color: #fff; text-transform: none; letter-spacing: 0; }
.vm-textcard .gc-replybox { margin: 0.5rem 0; }
.vm-booking { margin: 0.25rem 0 0; font-size: 0.85rem; }
.vm-tag-urgent { background: #fde8e8; color: #8a1c24; }
.vm-tag-done { background: #e9ecef; color: #495057; }
.vm-callcard { border-left-color: #dfe5ee; }
.vm-call-reservation { border-left-color: #2f855a; }
.vm-call-missed { border-left-color: #c05621; }
.vm-call-inquiry .vm-name, .vm-call-order .vm-name { font-weight: 600; }
.vm-tag-call { text-transform: none; letter-spacing: 0; }
.vm-tag-reservation { background: #def7e7; color: #1e6b37; }
.vm-tag-inquiry, .vm-tag-order { background: #eef1f5; color: #3d4b5c; }
.vm-tag-missed { background: #feebdc; color: #8a3b0f; }
.vm-len { font-size: 0.85rem; }
.vm-views, .vm-subviews { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.5rem 0 0.75rem; }
.vm-subviews { margin-top: -0.25rem; }
.vm-view { width: auto; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 1.1rem; border: 2px solid #d6deeb; border-radius: 999px; background: #fff; color: var(--navy); font: inherit; font-weight: 700; cursor: pointer; }
.vm-view[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.vm-view:focus-visible, .vm-sub:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.vm-count { min-width: 1.4rem; padding: 0 0.4rem; border-radius: 999px; background: var(--red); color: #fff; font-size: 0.78rem; line-height: 1.4rem; text-align: center; }
.vm-sub { width: auto; padding: 0.3rem 0.85rem; border: 1px solid #d6deeb; border-radius: 999px; background: #f6f8fb; color: #3d4b5c; font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer; }
.vm-sub[aria-pressed="true"] { background: #e7f1ff; border-color: #2a78d6; color: #0b3d91; }
.vm-when { margin-left: auto; font-size: 0.85rem; color: #52606f; white-space: nowrap; }
.vm-subject { margin: 0.35rem 0 0; font-weight: 600; color: #343a40; }
.vm-text { margin: 0.25rem 0 0.6rem; white-space: pre-wrap; word-wrap: break-word; color: var(--ink); }
.vm-player { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; background: var(--pale); border-radius: 999px; padding: 0.35rem 0.75rem 0.35rem 0.35rem; margin-bottom: 0.6rem; }
.vm-play { width: auto; display: inline-flex; align-items: center; gap: 0.45rem; background: var(--navy); color: white; border: none; border-radius: 999px; padding: 0.45rem 1rem 0.45rem 0.8rem; font-weight: 700; cursor: pointer; }
.vm-play:hover { background: var(--navy-light); }
.vm-play:focus-visible, .vm-whole:focus-visible, .vm-track:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.vm-icon { display: inline-block; width: 1.1em; text-align: center; font-size: 0.85rem; }
.vm-track { position: relative; flex: 1 1 8rem; min-width: 6rem; height: 8px; background: #d6deeb; border-radius: 4px; cursor: pointer; }
.vm-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--navy); border-radius: 4px; }
.vm-mark { position: absolute; top: -4px; bottom: -4px; width: 3px; left: 0; visibility: hidden; background: var(--red); border-radius: 2px; }
.vm-time { font-size: 0.82rem; color: #4a5568; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vm-whole { width: auto; background: none; border: none; color: var(--navy); font-weight: 600; text-decoration: underline; cursor: pointer; padding: 0.2rem 0.3rem; font-size: 0.85rem; }
.vm-player audio { display: none; }
.vm-norec { font-size: 0.85rem; color: #6b7a90; font-style: italic; margin: 0 0 0.6rem; }
.vm-note { background: #f3faf5; border-left: 3px solid #2f9e57; border-radius: 6px; padding: 0.4rem 0.7rem; font-size: 0.9rem; margin: 0 0 0.6rem; }
.vm-actions { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.vm-actions .btn { width: auto; margin: 0; text-decoration: none; display: inline-flex; align-items: center; }
.vm-spacer { flex: 1; }
.vm-muted { font-size: 0.82rem; color: #6b7a90; }
.vm-empty { text-align: center; padding: 2.5rem 1rem; color: #6b7a90; }
.vm-empty span { font-size: 2.5rem; display: block; }
@media (max-width: 600px) {
    .vm-card { padding: 0.75rem; }
    .vm-player { border-radius: 14px; }
    .vm-track { flex-basis: 100%; order: 3; }
    .vm-spacer { display: none; }
    .vm-call { flex: 1 1 100%; justify-content: center; }
}

/* Admin -> Caller transcripts (testing tool, v3.39.0) */
.ct-list { display: flex; flex-direction: column; gap: 0.5rem; }
.ct-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; }
.ct-row.ct-on { border-color: #68d391; background: #f0fff4; }
.ct-name { display: flex; flex-direction: column; min-width: min(14rem, 100%); flex: 1 1 14rem; }
.ct-name span { font-size: 0.8rem; color: #4a5568; }
.ct-state { font-size: 0.9rem; flex: 1 1 10rem; }
.ct-on .ct-state { color: #276749; font-weight: 600; }
.ct-pick { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; }
.ct-pick select { padding: 0.4rem; border: 1px solid #cbd5e0; border-radius: 6px; font: inherit; }

/* Orders v3.40: cards look like kitchen tickets (paper, torn edge, every item), new ones print out;
   drawn stage icons that move once when their count changes; View window = receipt from a printer */
.ob-card.ob-ticket { background: #fffef9; border-radius: 6px 6px 0 0; box-shadow: none; filter: drop-shadow(0 2px 3px rgba(18,53,107,0.14)); position: relative; padding-bottom: 0.9rem; margin-bottom: 6px; }
.ob-card.ob-ticket::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 6px;
  background: linear-gradient(135deg, #fffef9 50%, transparent 50%) 0 0 / 10px 6px repeat-x, linear-gradient(225deg, #fffef9 50%, transparent 50%) 0 0 / 10px 6px repeat-x; }
.ob-ticket .ob-card-top { border-bottom: 1px dashed #c9d2e0; padding-bottom: 0.3rem; margin-bottom: 0.25rem; }
.ob-ticket .ob-items { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.82rem; color: #1f2937; border-top: 1px dashed #c9d2e0; border-bottom: 1px dashed #c9d2e0; padding: 0.25rem 0; }
.ob-ticket .ob-items li { border-bottom: 0; padding: 0.1rem 0; }
.ob-card.ob-print { animation: obPrint 0.9s cubic-bezier(.2,.8,.3,1); transform-origin: top; }
@keyframes obPrint { from { clip-path: inset(0 0 100% 0); transform: translateY(-12px); } 70% { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 -10px 0); transform: none; } }
.ob-svg { width: 62%; height: 62%; overflow: visible; }
.ob-svg-sm { width: 1.25rem; height: 1.25rem; flex: none; }
.ob-svg g, .ob-svg path, .ob-svg circle { transform-box: fill-box; transform-origin: center; }
.ob-bump .ic-bell { transform-origin: 50% 0; animation: icBell 1.2s ease-in-out 2; }
.ob-bump .ic-clapper { animation: icClap 1.2s ease-in-out 2; }
.ob-bump .ic-steam { animation: icSteam 1.4s ease-out 3; }
.ob-bump .ic-bag { transform-origin: 50% 100%; animation: icBag 0.7s ease-in-out 2; }
.ob-bump .ic-ring { stroke-dasharray: 95; animation: icRing 0.8s ease-out; }
.ob-bump .ic-tick { stroke-dasharray: 22; animation: icTick 0.5s ease-out 0.6s backwards; }
@keyframes icBell { 0%, 100% { transform: rotate(0); } 10%, 30%, 50% { transform: rotate(-16deg); } 20%, 40%, 60% { transform: rotate(16deg); } 70% { transform: rotate(0); } }
@keyframes icClap { 0%, 100% { transform: translateX(0); } 15%, 35%, 55% { transform: translateX(3px); } 25%, 45% { transform: translateX(-3px); } }
@keyframes icSteam { 0% { opacity: 0; transform: translateY(4px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(-5px); } }
@keyframes icBag { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-5px); } }
@keyframes icRing { from { stroke-dashoffset: 95; } to { stroke-dashoffset: 0; } }
@keyframes icTick { from { stroke-dashoffset: 22; } to { stroke-dashoffset: 0; } }
.rcpt { margin-top: 1rem; max-width: 26rem; margin-left: auto; margin-right: auto; }
.rcpt-printer { display: block; width: 100%; height: auto; position: relative; z-index: 1; }
.rcpt-slot { overflow: hidden; margin: -10px 7.5% 0; padding-bottom: 8px; }
.rcpt-roll { filter: drop-shadow(0 2px 3px rgba(18,53,107,0.18)); }
.rcpt-roll.rcpt-go { animation: rcptOut 1s cubic-bezier(.2,.8,.3,1); }
@keyframes rcptOut { from { transform: translateY(-100%); } to { transform: none; } }
.rcpt-paper { background: #fffef9; padding: 1.2rem 1rem 0.8rem; white-space: pre-wrap; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.85rem; color: #1f2937; max-height: 55vh; overflow-y: auto; }
.rcpt-edge { height: 8px; background: linear-gradient(135deg, #fffef9 50%, transparent 50%) 0 0 / 12px 8px repeat-x, linear-gradient(225deg, #fffef9 50%, transparent 50%) 0 0 / 12px 8px repeat-x; }
@media (prefers-reduced-motion: reduce) { .ob-card.ob-print, .ob-bump .ic-bell, .ob-bump .ic-clapper, .ob-bump .ic-steam, .ob-bump .ic-bag, .ob-bump .ic-ring, .ob-bump .ic-tick, .rcpt-roll.rcpt-go { animation: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.order-calls { margin: 0.5rem 0 1rem; }
.order-calls ul { list-style: none; padding: 0; margin: 0.4rem 0 0; display: grid; gap: 0.4rem; }
.order-calls .btn { font-size: 1rem; }
.order-calls .rec-pending { color: #6c757d; font-size: 0.9rem; }

/* Booking payments (Reservations -> Payments, v3.43) */
.pay-fields { border: 0; padding: 0; margin: 0; min-width: 0; }
.pay-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0.6rem; margin-bottom: 0.75rem; }
.pay-mode { display: flex; flex-direction: column; gap: 0.2rem; border: 1.5px solid #dde3ec; border-radius: 10px; padding: 0.75rem; cursor: pointer; }
.pay-mode.on { border-color: #12356B; background: #f3f6fb; }
.pay-mode input { position: absolute; opacity: 0; pointer-events: none; }
.pay-mode span { font-size: 0.85rem; color: #5b6575; }
.pay-mode:focus-within { outline: 3px solid rgba(18, 53, 107, 0.35); }
.pay-money { display: flex; align-items: center; gap: 0.3rem; }
.pay-money input { max-width: 8rem; }
.pay-rules { margin: 0.25rem 0 0.5rem 1.5rem; display: grid; gap: 0.5rem; }
.pay-day { display: inline-flex; margin-right: 0.5rem; }
.pay-date { display: inline-flex; align-items: center; gap: 0.25rem; background: #f3f6fb; border-radius: 6px; padding: 0.1rem 0.4rem; margin-right: 0.3rem; }
.pay-preview { background: #f3f6fb; border-radius: 8px; padding: 0.6rem 0.8rem; margin-top: 0.75rem; }
.pay-cell { margin-top: 0.35rem; }
.pay-badge { display: inline-block; font-size: 0.75rem; font-weight: 700; border-radius: 999px; padding: 0.1rem 0.6rem; }
.pay-ok { background: #e3f4e9; color: #1d6b3a; }
.pay-wait { background: #fff4d6; color: #7a5600; }
.pay-warn { background: #fdecee; color: #8f1622; }
.pay-info { background: #eef3fb; color: #0c2650; }
.pay-btns { margin-top: 0.3rem; display: flex; flex-wrap: wrap; gap: 0.3rem; }

/* Booking payments: payment processor set-up progress (bookingPayments.js setupStepsHtml) */
.pay-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.4rem; padding: 0; margin: 0.5rem 0 1rem; position: relative; }
.pay-step { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.35rem; position: relative; font-size: 0.85rem; color: #5b6575; }
.pay-step:not(:last-child)::after { content: ''; position: absolute; top: 17px; left: calc(50% + 20px); right: calc(-50% + 20px); height: 3px; border-radius: 2px; background: #dde3ec; }
.pay-step.done:not(:last-child)::after { background: #1d6b3a; }
.pay-step.now:not(.attn):not(:last-child)::after { background: linear-gradient(90deg, #12356B 0 30%, #dde3ec 30%); background-size: 300% 100%; animation: payFlow 1.6s linear infinite; }
.pay-dot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: #eef1f6; color: #5b6575; border: 2px solid #dde3ec; position: relative; z-index: 1; }
.pay-step.done .pay-dot { background: #1d6b3a; border-color: #1d6b3a; color: #fff; animation: rsPop 0.4s ease-out; }
.pay-step.now .pay-dot { background: #12356B; border-color: #12356B; color: #fff; animation: payRing 1.6s ease-out infinite; }
.pay-step.now.attn .pay-dot { background: #b26a00; border-color: #b26a00; animation: rsPulse 1.2s ease-in-out infinite; }
.pay-step-t { display: flex; flex-direction: column; font-weight: 600; color: #1f2937; }
.pay-step-t small { font-weight: 500; color: #5b6575; }
.pay-step.now .pay-step-t small { color: #12356B; font-weight: 700; }
.pay-step.now.attn .pay-step-t small { color: #8a4f00; }
.pay-step-body { background: #f7f9fc; border-radius: 10px; padding: 0.9rem 1rem; }
.pay-step-body p { margin-top: 0; }
.pay-wait-box { display: flex; align-items: center; gap: 0.9rem; }
.pay-spinner { width: 34px; height: 34px; flex: none; border-radius: 50%; border: 4px solid #dde3ec; border-top-color: #12356B; animation: mo-spin 0.9s linear infinite; }
.pay-attn { border-left: 4px solid #b26a00; background: #fff8ec; border-radius: 8px; padding: 0.6rem 0.8rem; margin-bottom: 0.75rem; }
.pay-attn ul { margin: 0.4rem 0 0.2rem 1.1rem; padding: 0; }
.pay-checked { margin: 0.6rem 0 0; font-size: 0.82rem; }
.pay-checked .btn-link { background: none; border: 0; padding: 0; color: #12356B; text-decoration: underline; cursor: pointer; font: inherit; }
@keyframes payFlow { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes payRing { 0% { box-shadow: 0 0 0 0 rgba(18,53,107,0.45); } 100% { box-shadow: 0 0 0 12px rgba(18,53,107,0); } }
@media (max-width: 560px) {
  .pay-steps { grid-template-columns: 1fr; gap: 0.6rem; }
  .pay-step { flex-direction: row; text-align: left; }
  .pay-step:not(:last-child)::after { display: none; }
}
@media (prefers-reduced-motion: reduce) { .pay-step .pay-dot, .pay-step::after, .pay-spinner { animation: none !important; } }
.pay-mode.pay-best { position: relative; border-color: #1d6b3a; background: #f2faf5; box-shadow: 0 0 0 2px rgba(29,107,58,0.15); }
.pay-mode.pay-best.on { border-color: #12356B; background: #f3f6fb; }
.pay-best-tag { align-self: flex-start; font-style: normal; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; background: #1d6b3a; color: #fff; border-radius: 999px; padding: 0.1rem 0.55rem; margin-bottom: 0.15rem; }
.pay-tag { display: inline-flex; align-items: center; gap: 0.2rem; font-size: 0.72rem; font-weight: 700; border-radius: 999px; padding: 0.05rem 0.5rem; margin-left: 0.35rem; vertical-align: middle; white-space: nowrap; }
.fl-who .pay-tag { font-size: 0.68rem; padding: 0 0.4rem; margin-left: 0.25rem; }

/* Deposits close-out (depositCloseout.js) */
.co-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.6rem; margin-bottom: 0.9rem; }
.co-day { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.co-day strong { font-size: 1.1rem; color: var(--navy, #12356B); }
.co-tools { display: flex; gap: 0.4rem; }
.co-alert { border-left: 4px solid #b26a00; background: #fff8ec; border-radius: 8px; padding: 0.65rem 0.85rem; margin-bottom: 0.9rem; color: #5c3a00; }
.co-ok { border-left: 4px solid #1d6b3a; background: #f0faf3; border-radius: 8px; padding: 0.65rem 0.85rem; margin-bottom: 0.9rem; color: #1d5a33; font-weight: 600; }
.co-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.6rem; margin-bottom: 1rem; }
.co-tile { border: 1px solid #dde3ec; border-radius: 10px; padding: 0.6rem 0.75rem; display: flex; flex-direction: column; background: #fff; }
.co-tile span { font-size: 0.8rem; color: #5b6575; font-weight: 600; }
.co-tile strong { font-size: 1.25rem; color: #12356B; font-variant-numeric: tabular-nums; }
.co-tile small { font-size: 0.72rem; color: #7a8494; }
.co-tile.warn { border-color: #f0c27a; background: #fff8ec; }
.co-tile.warn strong { color: #8a4f00; }
.co-table { width: 100%; border-collapse: collapse; }
.co-table th, .co-table td { text-align: left; padding: 0.55rem 0.5rem; border-bottom: 1px solid #eef1f6; vertical-align: middle; }
.co-table tr.co-todo { background: #fffaf0; }
.co-act { white-space: nowrap; }
.co-tick { display: inline-flex; align-items: center; gap: 0.35rem; border: 1.5px solid #dde3ec; border-radius: 8px; padding: 0.3rem 0.6rem; cursor: pointer; font-weight: 600; font-size: 0.85rem; }
.co-tick.on { border-color: #1d6b3a; background: #f0faf3; color: #1d5a33; }
.co-tick input { width: 1.1rem; height: 1.1rem; }
.co-sub { margin: 1.2rem 0 0.2rem; }
.co-later { margin: 0.3rem 0 0 1.1rem; padding: 0; font-size: 0.9rem; }
.co-foot { margin-top: 1rem; font-size: 0.82rem; }
body.rs-service .co-tick { min-height: 44px; padding: 0.4rem 0.8rem; font-size: 0.95rem; }

/* Guest cards (Reservations -> Guests, tags next to guest names) */
.gc-badges { width: auto; display: inline-flex; flex-wrap: wrap; gap: 0.2rem; align-items: center; background: none; border: none; padding: 0; margin-left: 0.35rem; cursor: pointer; vertical-align: middle; }
.gc-badges:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; border-radius: 999px; }
.gc-chip { display: inline-block; font-size: 0.7rem; font-weight: 700; line-height: 1.5; border-radius: 999px; padding: 0 0.45rem; white-space: nowrap; background: #eef1f6; color: #12356B; }
.gc-chip.gc-good { background: #e3f4e8; color: #1e6b34; }
.gc-chip.gc-warn { background: #fdecea; color: #a1202b; }
.gc-chip.gc-tag { background: #F3F6FB; color: #12356B; border: 1px solid #d5ddeb; }
.gc-chip.gc-note { background: #fff6dd; color: #6b5100; }
.gc-chip.gc-new { background: #f1f3f5; color: #6c757d; font-weight: 600; }
.gc-chip.gc-reply { background: #e8f1fd; color: #12356B; }
.gc-chip.gc-reply-new { background: #12356B; color: #fff; }
.gc-history.gc-texts li { grid-template-columns: 8rem 1fr; }
.gc-texts .gc-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.gc-replies { background: #eaf2fd; border-color: #a9c4ec; }
.gc-replies .fl-guest { border-color: #a9c4ec; color: #12356B; max-width: 100%; white-space: normal; text-align: left; }
.gc-replybox { background: #f4f8fe; border: 1px solid #d5e2f5; border-radius: 8px; padding: 0.6rem 0.75rem; margin: 0.5rem 0 0.75rem; }
.gc-actions-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.3rem 0; }
.gc-preset { background: #fff; border: 1px solid #12356B; color: #12356B; text-align: left; white-space: normal; }
.gc-preset:disabled { opacity: 0.5; cursor: not-allowed; }
.gc-search { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0.75rem 0; }
.gc-search label { font-weight: 600; }
.gc-search input { flex: 1 1 240px; max-width: 420px; }
.gc-table td, .gc-table th { vertical-align: top; }
.gc-table .gc-num { text-align: center; }
.gc-row { cursor: pointer; }
.gc-row:hover, .gc-row:focus-visible { background: #F3F6FB; outline: none; }
.gc-modal { max-width: 640px; margin: 4% auto; max-height: 92vh; max-height: 92dvh; overflow-y: auto; }
.gc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.gc-head h2 { margin: 0; color: var(--navy); }
.gc-head .btn { width: auto; }
.gc-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 0.5rem; margin: 1rem 0 0.4rem; }
.gc-stat { border: 1px solid #e1e5e9; border-radius: 8px; padding: 0.5rem; text-align: center; }
.gc-stat strong { display: block; font-size: 1.25rem; color: var(--navy); }
.gc-stat span { font-size: 0.78rem; color: #495057; }
.gc-stat.gc-good strong { color: #1e6b34; }
.gc-stat.gc-bad strong { color: #a1202b; }
.gc-small { font-size: 0.78rem; margin: 0.25rem 0 0.75rem; }
.gc-form { display: flex; flex-direction: column; gap: 0.35rem; }
.gc-form label { font-weight: 600; margin-top: 0.4rem; }
.gc-actions { display: flex; align-items: center; gap: 0.75rem; }
.gc-actions .btn { width: auto; }
.gc-sub { margin: 1.1rem 0 0.4rem; font-size: 1rem; color: var(--navy); }
.gc-history { list-style: none; margin: 0; padding: 0; }
.gc-history li { display: grid; grid-template-columns: 1.3fr 1.3fr auto; gap: 0.5rem; padding: 0.4rem 0; border-bottom: 1px solid #eef0f3; font-size: 0.88rem; }
.gc-st { font-weight: 700; font-size: 0.78rem; }
.gc-st-no_show, .gc-st-cancelled { color: #a1202b; }
.gc-st-completed, .gc-st-seated { color: #1e6b34; }
@media (max-width: 600px) {
    .gc-history li { grid-template-columns: 1fr; gap: 0.1rem; }
    .gc-modal { margin: 2% auto; padding: 1rem; }
}

/* ---------------------------------------------------------------- Events + tickets (js/services/events.js, v3.47) */
.ev-bar { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.ev-bar .btn { width: auto; }
.ev-credit { background: #d4edda; color: #155724; padding: 0.3rem 0.7rem; border-radius: 999px; font-weight: 600; font-size: 0.9rem; }
.ev-msg { padding: 0.65rem 0.9rem; border-radius: 6px; margin: 0 0 1rem; }
.ev-ok { background: #d4edda; color: #155724; }
.ev-err, .ev-bad { background: #f8d7da; color: #842029; }
.ev-info { background: #e7f1ff; color: #0c2650; }
.ev-note { background: #fff3cd; color: #664d03; padding: 0.6rem 0.9rem; border-radius: 6px; max-width: 75ch; }
.ev-list { list-style: none; padding: 0; margin: 0; border: 1px solid #dee2e6; border-radius: 8px; overflow: hidden; background: #fff; }
.ev-row { display: grid; grid-template-columns: 1fr auto 8rem 6rem; align-items: center; gap: 0.75rem; padding: 0.4rem 0.9rem; border-bottom: 1px solid #eef0f3; }
.ev-row:last-child { border-bottom: 0; }
.ev-row.ev-past { opacity: 0.6; }
.ev-row-main { all: unset; cursor: pointer; display: flex; flex-direction: column; padding: 0.45rem 0; min-width: 0; }
.ev-row-main strong { color: var(--navy); overflow-wrap: anywhere; }
.ev-row-main span { color: #6c757d; font-size: 0.88rem; }
.ev-row-main:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; border-radius: 4px; }
.ev-num { text-align: right; font-size: 0.9rem; color: #495057; }
.ev-st { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.8rem; font-weight: 700; white-space: nowrap; }
.ev-st-draft { background: #e9ecef; color: #495057; }
.ev-st-sale { background: #d4edda; color: #155724; }
.ev-st-private { background: #2b2f3a; color: #fff; }
.ev-st-public { background: #e8f0fb; color: #12356b; }
.ev-vis label { display: block; margin: 6px 0; line-height: 1.4; }
.ev-st-closed { background: #fff3cd; color: #664d03; }
.ev-st-cancel { background: #f8d7da; color: #842029; }
.ev-back { all: unset; cursor: pointer; color: var(--navy); font-weight: 600; margin-bottom: 0.75rem; display: inline-block; }
.ev-back:focus-visible { outline: 2px solid var(--navy); }
.ev-head { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.ev-head h3 { margin: 0; color: var(--navy); overflow-wrap: anywhere; }
.ev-when { color: #495057; margin: 0.35rem 0 0.9rem; }
.ev-share { margin: 1rem 0; max-width: 640px; }
.ev-share label { font-weight: 600; display: block; margin-bottom: 0.3rem; }
.ev-share input { flex: 1; min-width: 0; font-family: ui-monospace, monospace; }
.ev-share .btn { width: auto; }
.ev-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(9rem, 100%), 1fr)); gap: 0.75rem; margin: 1rem 0; max-width: 640px; }
.ev-stats div { background: #fff; border: 1px solid #dee2e6; border-radius: 8px; padding: 0.75rem; text-align: center; }
.ev-stats b { display: block; font-size: 1.5rem; color: var(--navy); }
.ev-stats span { color: #6c757d; font-size: 0.85rem; }
.ev-types-list { list-style: none; padding: 0; max-width: 640px; }
.ev-types-list li { display: grid; grid-template-columns: 1fr 6rem 6rem; gap: 0.5rem; padding: 0.4rem 0; border-bottom: 1px solid #eef0f3; }
.ev-types-list li span:not(:first-child) { text-align: right; }
.ev-table-wrap { overflow-x: auto; }
.ev-orders td { vertical-align: top; }
.ev-orders small { color: #6c757d; }
.ev-form { max-width: 760px; }
.ev-form h3 { color: var(--navy); }
.ev-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); gap: 0 1rem; }
.ev-short { max-width: 14rem; }
.ev-types { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 0.6rem; }
.ev-type { display: grid; grid-template-columns: 2fr 1fr 1fr auto; grid-template-areas: "n p q r" "d d d d"; gap: 0.4rem 0.6rem; align-items: end; background: #f8f9fa; border: 1px solid #dee2e6; border-radius: 8px; padding: 0.6rem; }
.ev-type label { display: flex; flex-direction: column; font-size: 0.85rem; font-weight: 600; gap: 0.2rem; }
.ev-type label:nth-child(1) { grid-area: n; } .ev-type label:nth-child(2) { grid-area: p; } .ev-type label:nth-child(3) { grid-area: q; }
.ev-type .ev-type-desc { grid-area: d; font-weight: 400; }
.ev-type .btn { grid-area: r; width: auto; }
.ev-type input { padding: 0.45rem 0.6rem; border: 1px solid #ced4da; border-radius: 6px; font: inherit; }
.ev-tax { border: 1px solid #dee2e6; border-radius: 8px; padding: 0.6rem 0.9rem; margin: 1rem 0; }
.ev-tax legend { font-weight: 700; padding: 0 0.3rem; }
.ev-tax > label { display: flex; gap: 0.5rem; align-items: center; margin: 0.3rem 0; }
.ev-tax .form-group { margin: 0.5rem 0; }
.ev-count { font-size: 1.1rem; color: #495057; }
.ev-scan { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; margin: 1rem 0; }
.ev-cam { position: relative; background: #0c2650; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; display: grid; place-items: center; }
.ev-cam video { width: 100%; height: 100%; object-fit: cover; }
.ev-cam-off { position: absolute; inset: 0; display: grid; place-items: center; padding: 1rem; }
.ev-cam-off:empty { display: none; }
.ev-cam-off .btn { width: auto; }
.ev-result { border-radius: 10px; padding: 1.25rem; display: flex; flex-direction: column; justify-content: center; gap: 0.35rem; background: #f8f9fa; color: #495057; font-size: 1rem; min-height: 8rem; }
.ev-result b { font-size: 1.6rem; line-height: 1.2; }
.ev-result.ev-ok { background: #2f9e57; color: #fff; }
.ev-result.ev-bad { background: #c92a2a; color: #fff; }
.ev-code { margin-bottom: 1rem; max-width: 520px; }
.ev-code input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: 0.08em; }
.ev-code .btn { width: auto; }
.ev-guests { list-style: none; padding: 0; margin: 0; border: 1px solid #dee2e6; border-radius: 8px; background: #fff; max-height: 60vh; max-height: 60dvh; overflow-y: auto; }
.ev-guests li { display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.8rem; border-bottom: 1px solid #eef0f3; }
.ev-guests li > span:first-child { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ev-guests li small { color: #6c757d; display: block; }
.ev-guests li.ev-in { background: #f1f9f3; }
.ev-guests .btn { width: auto; }
.ev-in-at { color: #2f9e57; font-weight: 700; font-size: 0.85rem; white-space: nowrap; }
@media (max-width: 600px) {
    .ev-row { grid-template-columns: 1fr auto; }
    .ev-row .ev-num { grid-column: 1 / -1; text-align: left; display: inline; }
    .ev-scan { grid-template-columns: 1fr; }
    .ev-type { grid-template-columns: 1fr 1fr; grid-template-areas: "n n" "p q" "d d" "r r"; }
}
#events .rs-form-actions .btn, #events .ev-form > .btn { width: auto; }
#events .rs-form-actions { margin: 0.5rem 0; }
.ev-type input { width: 100%; min-width: 0; box-sizing: border-box; }
.ev-type label { min-width: 0; }
.ev-share input, .ev-code input { padding: 0.5rem 0.65rem; border: 1px solid #ced4da; border-radius: 6px; font-size: 1rem; background: #fff; }
.ev-cam { max-height: 360px; }
.ev-result { max-height: 360px; }
.ev-result.ev-warn { background: #f59f00; color: #1f2a3d; }
.ev-form h4, #events h4 { margin: 1.25rem 0 0.5rem; color: var(--navy); }

/* ---------------------------------------------------------------- ring2order / ring2table (js/brand.js, v3.48) */
body.brand-r2t .r2o-only, body.no-phone .phone-only { display: none !important; }
body:not(.no-phone) .no-phone-only { display: none !important; }
body:not(.brand-r2t) .r2t-only { display: none !important; }
.plan-interval { display: inline-flex; border: 1.5px solid var(--navy); border-radius: 999px; overflow: hidden; margin: 0 0 0.75rem; }
.plan-interval label { padding: 0.4rem 1rem; cursor: pointer; font-weight: 600; color: var(--navy); }
.plan-interval input { position: absolute; opacity: 0; pointer-events: none; }
.plan-interval label:has(input:checked) { background: var(--navy); color: #fff; }
.plan-interval label:has(input:focus-visible) { outline: 2px solid #D92735; outline-offset: -2px; }
.plan-trial { background: #d4edda; color: #155724; border-radius: 8px; padding: 0.6rem 0.9rem; margin: 0 0 1rem; font-weight: 600; }

/* ---------------------------------------------------------------- share panel (js/services/shareKit.js, v3.48) */
.share-kit { max-width: 680px; }
.share-kit h4 { margin: 0 0 0.35rem; color: var(--navy); }
.share-label { display: block; font-weight: 600; margin: 0.6rem 0 0.4rem; }
.share-label textarea { display: block; width: 100%; box-sizing: border-box; margin-top: 0.3rem; padding: 0.55rem 0.7rem; border: 1px solid #ced4da; border-radius: 6px; font: inherit; font-weight: 400; resize: vertical; }
.share-link input { width: 100%; box-sizing: border-box; padding: 0.45rem 0.65rem; border: 1px solid #ced4da; border-radius: 6px; font-family: ui-monospace, monospace; font-size: 0.9rem; background: #f8f9fa; }
.share-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.75rem 0 0.5rem; }
.share-btn { border: 1.5px solid #ced4da; background: #fff; color: #1f2a3d; border-radius: 999px; padding: 0.5rem 1rem; font: inherit; font-weight: 600; cursor: pointer; min-height: 40px; }
.share-btn:hover { border-color: var(--navy); }
.share-btn:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.share-btn:disabled { opacity: 0.5; cursor: wait; }
.share-native { background: var(--navy); color: #fff; border-color: var(--navy); }
.share-fb { background: #1877F2; color: #fff; border-color: #1877F2; }
.share-x { background: #000; color: #fff; border-color: #000; }
.share-wa { background: #1f8f4e; color: #fff; border-color: #1f8f4e; }
.share-tip { font-size: 0.85rem; }
.share-status { color: #155724; font-weight: 600; min-height: 1.2em; margin: 0.25rem 0 0; }
.ev-share-new { border: 2px solid #2f9e57; border-radius: 10px; padding: 1rem; background: #f1f9f3; }

/* Door check-in scanner (v3.52): aiming square, found-ticket card with a big Check in button */
.ev-aim { position: absolute; top: 50%; left: 50%; width: 52%; aspect-ratio: 1; transform: translate(-50%, -50%); border: 3px solid rgba(255,255,255,0.9); border-radius: 14px; box-shadow: 0 0 0 9999px rgba(0,0,0,0.28); pointer-events: none; }
.ev-result.ev-found { background: #12356b; color: #fff; }
.ev-found-actions { display: flex; gap: 0.6rem; margin-top: 0.6rem; flex-wrap: wrap; }
.ev-found-actions .btn { width: auto; }
.ev-redeem { background: #2f9e57; border-color: #2f9e57; color: #fff; font-size: 1.25rem; font-weight: 700; padding: 0.8rem 1.8rem; min-height: 3.2rem; }
.ev-redeem:hover, .ev-redeem:focus-visible { background: #26834a; border-color: #26834a; color: #fff; }
.ev-auto { display: flex; align-items: center; gap: 0.5rem; margin: 0.6rem 0 0.2rem; font-size: 0.9rem; color: #495057; }
.ev-auto input { width: auto; margin: 0; }

/* Settings -> ring4food listing (js/services/directoryListing.js) */
.dir-block { background: #f8f9fa; border-radius: 10px; padding: 1.25rem; margin: 0 0 1rem; }
.dir-block h4 { margin: 0 0 0.75rem; font-size: 1.05rem; }
.dir-block h4 + .dir-note { margin-top: -0.4rem; }
.dir-status { margin: 0 0 0.75rem; }
.dir-tag { display: inline-block; margin-left: 0.4rem; padding: 0.1rem 0.6rem; border-radius: 999px; background: #12356B; color: #fff; font-size: 0.8rem; font-weight: 700; }
.dir-switch { display: flex; gap: 0.5rem; align-items: center; margin: 0.35rem 0; font-weight: 600; }
.dir-switch input { width: 1.15rem; height: 1.15rem; }
.dir-note { color: #495057; font-size: 0.9rem; margin: 0 0 1rem; }
.dir-amenities { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0.35rem 1rem; }
.dir-amenities label { font-weight: 400; display: flex; gap: 0.4rem; align-items: center; }
.dir-day, .dir-special { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; padding: 0.5rem 0; border-top: 1px solid #e3e7ee; }
.dir-day > strong { width: 7rem; }
.dir-day label, .dir-special label { display: flex; gap: 0.3rem; align-items: center; font-weight: 400; }
.dir-range input[type=time], .dir-special input[type=date] { width: auto; padding: 0.35rem 0.5rem; }
.dir-more { background: none; border: 0; color: #12356B; text-decoration: underline; cursor: pointer; padding: 0.25rem; font-size: 0.9rem; }
.dir-specials { margin-bottom: 0.75rem; }
.dir-special-btns { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.75rem; }
.dir-holiday { font-weight: 600; color: var(--navy); min-width: 0; }
.dir-amenities label { justify-content: flex-start; text-align: left; }
#dirForm input[type=checkbox] { width: auto; height: auto; margin: 0; flex: 0 0 auto; }

/* AI promo pictures on an event (js/services/events.js promoHtml) */
.pm { margin: 18px 0; padding: 16px; border: 1px solid #e2e8f0; border-radius: 12px; background: #fbfcfe; }
.pm h4 { margin-top: 0; }
.pm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin: 12px 0; }
.pm-card { margin: 0; background: #fff; border: 2px solid #e2e8f0; border-radius: 12px; overflow: hidden; }
.pm-card.pm-cover { border-color: #12356b; box-shadow: 0 4px 16px rgba(18,53,107,.18); }
.pm-frame { aspect-ratio: 2 / 3; overflow: hidden; background: #0b1b33; }
.pm-frame img { width: 100%; height: 100%; object-fit: cover; display: block; animation: pm-kb 14s ease-in-out infinite alternate; }
.pm-card:nth-child(2n) .pm-frame img { animation-direction: alternate-reverse; }
@keyframes pm-kb { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.14) translate(-3%, -2%); } }
@media (prefers-reduced-motion: reduce) { .pm-frame img { animation: none; } }
.pm-card figcaption { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; align-items: center; }
.pm-badge { background: #12356b; color: #fff; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; }
.pm-working { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.pm-spin { width: 18px; height: 18px; border: 3px solid #cbd5e1; border-top-color: #12356b; border-radius: 50%; animation: pm-spin 0.9s linear infinite; }
@keyframes pm-spin { to { transform: rotate(360deg); } }
.pm-status { min-height: 1.2em; font-weight: 600; color: #12356b; }
.pm .btn-link { background: none; border: 0; padding: 0; color: #12356B; text-decoration: underline; cursor: pointer; font: inherit; }
.ev-ai-note { display: block; margin-top: 6px; line-height: 1.45; }
.pm-inputs { max-width: 640px; } .pm-inputs textarea { width: 100%; }
.dir-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 10px 0 14px; }
.dir-photo { margin: 0; border: 2px solid #e2e8f0; border-radius: 10px; overflow: hidden; background: #fff; }
.dir-photo.is-first { border-color: #12356b; }
.dir-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.dir-photo figcaption { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; align-items: center; }
.dir-file { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dir-sub { margin: 14px 0 6px; font-size: 1rem; }
.dir-ai { margin: 14px 0; padding: 14px; border: 1px dashed #b9c6dc; border-radius: 12px; background: #f8fbff; }
.dir-ai textarea, .dir-logo-link input { width: 100%; }
.dir-working { font-weight: 600; color: #12356b; }
.dir-err { color: #b4232f; font-weight: 600; }
.dir-logo-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.dir-logo-img { width: 96px; height: 96px; object-fit: contain; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; }
.dir-logo-empty { display: grid; place-items: center; font-size: .8rem; color: #6c757d; text-align: center; }
.dir-logo-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.dir-logo-link { display: flex; gap: 8px; }
.dir-reviews { margin-top: 24px; }
.dir-stars { color: #e8a317; letter-spacing: 1px; }
.dir-rv-sum { font-size: 1.05rem; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dir-tag-warn { background: #fff4d6; color: #8a5a00; }
.dir-rv { border-top: 1px solid #e2e8f0; padding: 12px 0; }
.dir-rv.is-removed { opacity: .6; }
.dir-rv-head { margin: 0 0 4px; }
.dir-rv-body { white-space: pre-line; margin: 4px 0 8px; }
.dir-rv-reply { background: #f3f6fb; border-radius: 10px; padding: 8px 12px; margin: 6px 0; }
.dir-rv-reply p { white-space: pre-line; margin: 4px 0 8px; }
.dir-rv-replybox textarea { width: 100%; margin-bottom: 6px; }

/* AI picture choices (js/services/aiPicker.js): background tiles with examples, then the food */
.aip-step { border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px 14px; margin: 10px 0; }
.aip-step legend { font-weight: 600; padding: 0 6px; }
.aip-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.aip-tile { position: relative; display: flex; flex-direction: column; gap: 4px; cursor: pointer; font-size: .85rem; font-weight: 600; text-align: center; }
.aip-tile input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.aip-tile img, .aip-own-box { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 3px solid transparent; background: #f1f5f9; }
.aip-own-box { display: flex; align-items: center; justify-content: center; font-size: 2rem; color: #12356b; }
.aip-tile input:checked + img, .aip-tile input:checked + .aip-own-box { border-color: #12356b; box-shadow: 0 0 0 2px #fff inset; }
.aip-tile input:focus-visible + img, .aip-tile input:focus-visible + .aip-own-box { outline: 3px solid #d62839; outline-offset: 2px; }
.aip-choice { display: block; margin: 8px 0 4px; font-weight: 600; }
.aip-choice small { font-weight: 400; }
.aip-photo { margin: 4px 0 8px 24px; }
.aip-preview { display: block; max-width: 220px; max-height: 160px; margin-top: 8px; border-radius: 10px; object-fit: cover; }
.aip-custom, .aip-text { margin: 8px 0 0; }

/* Admin -> Prices */
.ap-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.ap-table th, .ap-table td { text-align: left; padding: 0.5rem; border-bottom: 1px solid #e2e8f0; vertical-align: middle; }
.ap-table td small { display: block; color: #718096; font-size: 0.75rem; }
.ap-table input { width: 7rem; }
@media (max-width: 640px) { .ap-table th:nth-child(2), .ap-table td:nth-child(2) { display: none; } }

/* Demo restaurant (js/brand.js): banner and "Plus" labels, shown only in the demo */
.plus-tag { display: none; margin-left: 0.3rem; padding: 0.05rem 0.4rem; border-radius: 999px; background: #D92735; color: #fff;
  font: 700 0.65rem/1.4 Inter, system-ui, sans-serif; letter-spacing: 0.02em; vertical-align: middle; }
body.is-demo .plus-tag, .demo-banner .plus-tag { display: inline-block; }
.demo-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1rem;
  background: #FFF4D6; color: #12356B; border-bottom: 2px solid #F0C24B; padding: 0.7rem 1rem; font-size: 0.9rem; }
.demo-banner[hidden] { display: none; }
.demo-banner p { margin: 0; flex: 1 1 22rem; }
.demo-banner .btn { background: #D92735; color: #fff; border: 0; white-space: nowrap; text-decoration: none; }

/* Demo restaurant: example AI pictures instead of making new ones (js/services/aiPicker.js) */
.aip-demo { margin: 0.75rem 0 1rem; padding: 0.9rem 1rem; border: 1px solid #F0C24B; background: #FFF9E8; border-radius: 10px; }
.aip-demo p { margin: 0 0 0.75rem; }
.aip-demo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.75rem; }
.aip-demo-grid figure { margin: 0; }
.aip-demo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; }
.aip-demo-grid figcaption { font-size: 0.8rem; color: #4a5d7e; margin-top: 0.25rem; }

/* Overview: today's reservations (js/services/reservations.js todayHtml) */
.bd-panel { background: #fff; border: 1px solid #dce4f0; border-radius: 12px; padding: 1rem; }
.bd-panel h4 { margin: 0 0 0.75rem; color: #12356B; display: flex; align-items: center; gap: 0.5rem; }
.bd-count { background: #12356B; color: #fff; border-radius: 999px; padding: 0 0.55rem; font-size: 0.8rem; line-height: 1.6; }
.bd-list { list-style: none; margin: 0; padding: 0; }
.bd-list > li { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.6rem 0.25rem; border-top: 1px solid #eef2f8; }
.bd-list > li:first-child { border-top: 0; }
.bd-main { flex: 1; min-width: 0; }
.bd-main strong { color: #1d2a3f; }
.bd-party, .bd-table { color: #4a5d7e; font-size: 0.9rem; margin-left: 0.35rem; }
.bd-table::before { content: '· '; }
.bd-note, .bd-gnote { font-size: 0.85rem; color: #4a5d7e; }
.bd-note::before { content: '📝 '; }
.bd-time { flex: none; width: 4.6rem; font-weight: 800; color: #12356B; }
.bd-hour { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #8090a8; padding: 0.7rem 0.25rem 0.2rem !important; border-top: 0 !important; }
.bd-now { border-top: 0 !important; padding: 0.35rem 0 !important; }
.bd-now span { display: block; width: 100%; border-top: 2px solid #D92735; color: #D92735; font-size: 0.75rem; font-weight: 800; padding-top: 0.15rem; }
.bd-chip { flex: none; font-size: 0.75rem; font-weight: 700; border-radius: 999px; padding: 0.15rem 0.6rem; white-space: nowrap; background: #eef2f8; color: #12356B; }
.bd-chip.bd-paid { background: #E3F4EA; color: #1f6b3a; margin-left: 0.35rem; }
.bd-chip.bd-soon { background: #FFF1C2; color: #6b4e00; margin-left: 0.35rem; }
.bd-soon .bd-st { background: #FFF1C2; color: #6b4e00; }
.bd-late .bd-st { background: #D92735; color: #fff; }
.bd-seated .bd-st { background: #12356B; color: #fff; }
.bd-request .bd-st { background: #FDE2E4; color: #9b1c27; }
.bd-done, .bd-noshow { opacity: 0.55; }
.bd-noshow .bd-st { background: #6c757d; color: #fff; }
.bd-empty { color: #4a5d7e; margin: 0.25rem 0; }

/* Screen modes (js/services/staffMode.js): what Manager and Employee don't see */
body.mode-manager .tb-tab[data-section="settings"], body.mode-employee .tb-tab[data-section="settings"],
body.mode-manager .nav-link[data-section="menu"], body.mode-employee .nav-link[data-section="menu"],
body.mode-manager .nav-link[data-section="delivery-addresses"], body.mode-employee .nav-link[data-section="delivery-addresses"],
body.mode-employee .tb-tab[data-section="messages"], body.mode-employee .tb-tab[data-section="support"],
body.mode-manager .tb-tab[data-section="referral"], body.mode-employee .tb-tab[data-section="referral"], body.is-demo .tb-tab[data-section="referral"],
body.mode-manager [data-rtab="tables"], body.mode-manager [data-rtab="questions"], body.mode-manager [data-rtab="settings"],
body.mode-manager [data-rtab="online"], body.mode-manager [data-rtab="kiosk"], body.mode-manager [data-rtab="payments"],
body.mode-employee [data-rtab="tables"], body.mode-employee [data-rtab="questions"], body.mode-employee [data-rtab="settings"],
body.mode-employee [data-rtab="online"], body.mode-employee [data-rtab="kiosk"], body.mode-employee [data-rtab="payments"],
body.mode-employee [data-rtab="deposits"],
body.mode-manager .rs-tab[data-tab="tables"], body.mode-manager .rs-tab[data-tab="questions"], body.mode-manager .rs-tab[data-tab="settings"],
body.mode-manager .rs-tab[data-tab="online"], body.mode-manager .rs-tab[data-tab="kiosk"], body.mode-manager .rs-tab[data-tab="payments"],
body.mode-employee .rs-tab[data-tab="tables"], body.mode-employee .rs-tab[data-tab="questions"], body.mode-employee .rs-tab[data-tab="settings"],
body.mode-employee .rs-tab[data-tab="online"], body.mode-employee .rs-tab[data-tab="kiosk"], body.mode-employee .rs-tab[data-tab="payments"],
body.mode-employee .rs-tab[data-tab="deposits"],
body.mode-manager button[onclick*="toggleArrange"], body.mode-employee button[onclick*="toggleArrange"],
body.mode-manager .owner-only, body.mode-employee .owner-only,
body.mode-employee [data-ev="new"], body.mode-employee [data-ev="edit"], body.mode-employee [data-ev="status"],
body.mode-employee [data-ev="cancel-event"], body.mode-employee #evPromo,
body.mode-employee button[onclick^="refundBookingPayment"], body.mode-employee button[onclick^="chargeBookingFee"],
body.mode-employee button[onclick^="waiveBookingPayment"], body.mode-employee [data-ev="refund"],
body.mgr-no-refund button[onclick^="refundBookingPayment"], body.mgr-no-refund button[onclick^="chargeBookingFee"],
body.mgr-no-refund button[onclick^="waiveBookingPayment"], body.mgr-no-refund [data-ev="refund"], body.mgr-no-refund [data-ev="cancel-event"]
{ display: none !important; }
.tb-mode { display: flex; align-items: center; gap: 0.35rem; color: #fff; font-size: 0.8rem; margin-right: 0.5rem; }
.tb-mode select { font: 600 0.85rem Inter, system-ui, sans-serif; border-radius: 8px; border: 1px solid rgba(255,255,255,.5); background: #0c2650; color: #fff; padding: 0.3rem 0.4rem; }
body.mode-manager .tb-mode select { background: #b8860b; border-color: #b8860b; }
body.mode-employee .tb-mode select { background: #1f6b3a; border-color: #1f6b3a; }
.modes-list { margin: 0.5rem 0 0.75rem 1.1rem; padding: 0; }
.modes-list li { margin-bottom: 0.25rem; }
.modes-check { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; }
.modes-check input { width: 1.1rem; height: 1.1rem; }

/* Floor plan tab: only for restaurants with the visual floor plan (Plus, js/brand.js no-floor-plan) */
body.no-floor-plan .plus-floor, body.no-kiosk .plus-kiosk { display: none !important; }


/* ring2table Overview = the live floor (js/services/reservations.js overviewHtml) */
body.brand-r2t #overview-heading { font-size: 1.2rem; margin: 0 0 0.75rem; }
.ov-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.ov-main, .ov-side { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.ov-floor, .ov-wait, .ov-today, .ov-next { min-width: 0; }
.ov-wait .wl-panel { margin: 0; }
.ov-wait .wl-who { flex: 1 1 0; min-width: 0; }
.ov-wait .wl-actions { flex-basis: 100%; }
.ov-wait .wl-actions select { flex: 1 1 100%; }
.ov-wait .wl-actions .btn { flex: 1; }
.ov-plus { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin: 0.75rem 0 0; font-size: 0.9rem; }
.ov-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; }
.ov-todo { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
body.mode-manager .ov-todo, body.mode-employee .ov-todo { display: none; }
@media (max-width: 900px) {
    .ov-grid { display: flex; flex-direction: column; }
    .ov-main, .ov-side { display: contents; }
    .ov-next { order: 1; } .ov-wait { order: 2; } .ov-floor { order: 3; } .ov-today { order: 4; }
}
.bd-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.5rem; }
.bd-panel-head h4 { margin: 0; }
.bd-list > li.bd-row { padding: 0; gap: 0.4rem; }
.bd-side { flex: 0 1 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 0.3rem; padding: 0.55rem 0.25rem 0 0; min-width: 0; }
.bd-side .gc-badges { margin: 0; }
.bd-res { display: flex; align-items: flex-start; gap: 0.6rem; flex: 1 1 auto; min-width: 0; padding: 0.55rem 0.25rem; background: none; border: 0; border-radius: 8px;
    font: inherit; text-align: left; color: inherit; cursor: pointer; touch-action: manipulation; }
.bd-res:hover { background: #F3F6FB; }
.bd-res:focus-visible { outline: 3px solid var(--navy); outline-offset: 1px; }
.bd-res .bd-main { display: block; min-width: 0; }
.bd-res .bd-who, .bd-res .bd-sub, .bd-res .bd-note { display: block; overflow-wrap: anywhere; }
.bd-res .bd-sub { color: #4a5d7e; font-size: 0.88rem; }
.bd-res .bd-time { width: 4.4rem; }
.ov-grid, .ov-grid > *, .bd-panel, .bd-list { min-width: 0; max-width: 100%; }

/* The numbers at the top are links (floorJump) */
button.fl-stat { font: inherit; font-size: 0.85rem; cursor: pointer; border-top: 0; border-right: 0; border-bottom: 0; touch-action: manipulation; }
button.fl-stat:hover { background: #e3eaf6; }
button.fl-stat:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
button.fl-stat.active { background: var(--navy); color: #fff; }
button.fl-stat.active strong { color: #fff; }
.fl-s-book { border-left-color: var(--navy); }
.fl-s-req, .fl-s-wait { border-left-color: #D92735; }
.fl-live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #1f7a3d; margin-right: 0.35rem; vertical-align: 1px; }
.fl-filter-note { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin: 0 0 0.75rem; color: #4a5568; }
.fl-only-free .pl-t:not(.fl-free), .fl-only-seated .pl-t:not(.fl-seated):not(.fl-over) { opacity: 0.25; }
@keyframes fl-flash { from { box-shadow: 0 0 0 4px rgba(217, 39, 53, 0.45); } to { box-shadow: 0 0 0 4px rgba(217, 39, 53, 0); } }
.fl-flash { animation: fl-flash 1.6s ease-out; }
@media (prefers-reduced-motion: reduce) { .fl-flash { animation: none; } }

/* Floor and Overview buttons sit on one line (no extra top margin) */
:is(#reservations, #ovFloor) .btn-secondary { margin-top: 0; }

/* ring2table: the table list lives on the Overview, so Reservations has no "Floor & waitlist" tab */
body.brand-r2t .subnav-tab[data-rtab="floor"], body.brand-r2t .rs-tab[data-tab="floor"] { display: none !important; }

/* The restaurant name sits in the top bar; the white bar above each page only shows for the admin "Viewing" picker */
.header { padding: 0.6rem 1.5rem; margin-bottom: 1rem; }
.header:not(:has(.av-picker:not([hidden]))) { display: none; }
.tb-name { margin: 0; font: 700 0.95rem Nunito, system-ui, sans-serif; color: #fff; max-width: 16rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-email { display: none; }
@media (max-width: 1024px) {
    .tb-tabs:not(.at-end) { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); }
    .tb-tab { min-height: 44px; }
    .tb-name { max-width: 40vw; }
}
@media (max-width: 600px) {
    .tb-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .tb-mode-label { display: none; }
}

/* Phone: the waitlist folds to one line; its buttons share a row */
@media (max-width: 700px) {
    .content-section { padding: 1rem; }
    .header { padding: 0.5rem 1rem; }
    .wl-actions { flex-basis: 100%; }
    .wl-actions select { flex: 1 1 100%; }
    .wl-actions .btn { flex: 1; }
    .fl-clock { display: none; }
}
.bd-res .bd-st { flex: 0 1 auto; max-width: 8.5rem; white-space: normal; text-align: center; }
@media (max-width: 700px) {
    .bd-res { gap: 0.45rem; font-size: 0.95rem; }
    .bd-res .bd-time { width: 3.9rem; font-size: 0.9rem; }
    .bd-res .bd-st { max-width: 6.5rem; }
    /* wide tables scroll sideways inside their box instead of widening the page */
    .table, .table-container > table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
.bd-res .bd-time { white-space: nowrap; }
@media (max-width: 700px) {
    .bd-res .bd-time { width: 4.3rem; }
    .fl-stats { gap: 0.3rem; }
    button.fl-stat, .fl-stat { font-size: 0.8rem; padding: 0.3rem 0.6rem; }
}

/* ---------------------------------------------------------------- Installed app (PWA) and phones (owner 2026-11-13)
   Safe areas: a navy strip behind the phone's status bar; content never sits under the notch or home bar. */
body { padding-top: env(safe-area-inset-top); padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
body::before { content: ''; position: fixed; top: 0; left: 0; right: 0; height: env(safe-area-inset-top); background: var(--navy); z-index: 1000; }
.topbar { top: env(safe-area-inset-top); }
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
button, .btn, a, select, label, summary, [role="button"] { touch-action: manipulation; }
.tb-ico { display: none; }
@media (display-mode: standalone) { body { overscroll-behavior-y: none; } }

/* Install offer (js/services/pwa.js) */
.install-bar { display: flex; align-items: center; gap: 0.75rem; background: #fff; border: 1px solid #dde3ee; border-radius: 14px;
    padding: 0.7rem 0.8rem; margin: 0 0 1rem; box-shadow: 0 6px 20px rgba(18, 53, 107, 0.12); }
.install-bar[hidden] { display: none; }
.install-bar img { flex: none; border-radius: 10px; }
.install-text { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 0.85rem; color: #4a5d7e; }
.install-text strong { color: var(--navy); font-size: 0.95rem; }
.install-bar .btn { width: auto; flex: none; }
.install-close { flex: none; width: 44px; height: 44px; border: 0; background: none; font-size: 1.6rem; color: #6b7a90; cursor: pointer; border-radius: 10px; }

/* Phones: app-style bottom tab bar with icons, top bar = logo, restaurant name, screen mode, logout */
@media (max-width: 700px) {
    .tb-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 950; order: 0; flex-basis: auto; min-height: 0; align-self: auto;
        display: flex; gap: 0; overflow-x: auto; background: #fff; border-top: 1px solid #dde3ee; box-shadow: 0 -4px 14px rgba(18, 53, 107, 0.1);
        padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
        -webkit-mask-image: none !important; mask-image: none !important; }
    .tb-tab { flex: 1 0 58px; flex-direction: column; justify-content: center; gap: 3px; min-height: 58px; padding: 6px 2px 5px;
        font-size: 0.66rem; font-weight: 600; letter-spacing: -0.01em; color: #4a5d7e; background: none; border: 0; position: relative; }
    .tb-tab:hover { background: none; color: var(--navy); }
    .tb-tab.active { color: var(--navy); background: none; border: 0; }
    .tb-tab.active::before { content: ''; position: absolute; top: 0; left: 22%; right: 22%; height: 3px; border-radius: 0 0 3px 3px; background: var(--red); }
    .tb-tab .tb-ico { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
    .tb-tab.active .tb-ico { stroke-width: 2.2; }
    .tb-tab .plus-tag { display: none !important; }
    .tb-tab .nav-badge { position: absolute; top: 4px; left: calc(50% + 6px); margin: 0; font-size: 0.65rem; min-width: 1.1rem; }
    .topbar { flex-wrap: nowrap; padding: 0.4rem 10px; min-height: 56px; gap: 0.5rem; max-width: 100vw; box-sizing: border-box; }
    .tb-brand img { height: 36px; width: 36px; border-radius: 9px; content: url('/assets/img/app/r2o-192.png'); }
    html[data-brand="ring2table"] .tb-brand img { content: url('/assets/img/app/r2t-192.png'); }
    .tb-right { flex: 1 1 auto; justify-content: flex-end; gap: 0.4rem; min-width: 0; margin-left: 0; }
    .tb-name { position: static; width: auto; height: auto; clip: auto; flex: 1 1 auto; min-width: 0; max-width: none; overflow: hidden; text-overflow: ellipsis; font-size: 0.9rem; }
    .tb-mode { margin-right: 0; flex: none; }
    .tb-mode select { max-width: 6.8rem; min-height: 40px; padding: 0 0.3rem; }
    .tb-logout { flex: none; min-height: 40px; display: inline-flex; align-items: center; padding: 0 0.55rem; font-size: 0.8rem; }
    .dash-body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
    .subnav { position: sticky; top: calc(56px + env(safe-area-inset-top)); z-index: 800; }
    .install-bar { position: fixed; left: 10px; right: 10px; bottom: calc(68px + env(safe-area-inset-bottom)); z-index: 940; margin: 0; }
    /* touch-friendly controls */
    .btn, .btn-sm { min-height: 44px; }
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea { font-size: max(16px, 1em); }
}
@media (max-width: 340px) { .tb-name { display: none; } }
/* top bar right side: restaurant name, screen mode, logout */
.tb-right .tb-name { order: 0; } .tb-right .tb-mode { order: 1; } .tb-right .tb-email { order: 2; } .tb-right .tb-logout { order: 3; }
@media (max-width: 700px) {
    .demo-banner { font-size: 0.85rem; padding: 0.6rem 12px; gap: 0.5rem; }
    .demo-banner .btn { min-height: 40px; padding: 0.4rem 0.9rem; }
}

/* ---------------------------------------------------------------- Sub-menus (owner 2026-11-13)
   Every page with sub-pages (Reservations, Settings, Menu, Delivery, Admin) shows them as a bar across the top,
   under the main menu, on every screen size. No side menu anywhere, like the Overview. */
.dash-body { flex-direction: column; align-items: stretch; }
.subnav { position: sticky; top: calc(env(safe-area-inset-top) + var(--tb-h, 64px)); z-index: 800; width: auto; min-height: 0; max-height: none;
    align-self: stretch; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; background: #fff;
    border-right: none; border-bottom: 1px solid #dde3ee; padding: 0; box-shadow: 0 2px 6px rgba(18, 53, 107, 0.06); }
.subnav::-webkit-scrollbar { display: none; }
.subnav-group { display: flex; gap: 0.15rem; padding: 0 2rem; }
.subnav-group > div { display: contents; }
.subnav h3 { display: none; }
.subnav a, .subnav a.subnav-tab, .subnav a.subnav-jump { flex: none; white-space: nowrap; gap: 0.4rem; justify-content: center; min-height: 48px;
    padding: 0 0.95rem; border-left: none; border-bottom: 3px solid transparent; border-top: 3px solid transparent; font-size: 0.92rem; }
.subnav a:hover { background: var(--pale); }
.subnav a.active, .subnav a.subnav-tab.active, .subnav a.subnav-jump.active { background: none; border-left: none; border-bottom-color: var(--red); font-weight: 700; }
.subnav:not(.at-end) { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); }
.set-anchor { scroll-margin-top: calc(env(safe-area-inset-top) + var(--tb-h, 64px) + 60px); }
@media (max-width: 1024px) { .subnav-group { padding: 0 16px; } }
@media (max-width: 700px) { .subnav { top: calc(env(safe-area-inset-top) + var(--tb-h, 56px)); } .subnav a { padding: 0 0.75rem; font-size: 0.9rem; } }

/* ---------------------------------------------------------------- Phones: tables become cards (owner 2026-11-13)
   Bookings, Tables & rooms, combinations, Booking hours, Guests and Kiosk: one card per row, every field and
   button in view (no swiping sideways). Cells with data-label show their column name. */
@media (max-width: 700px) {
    .rs-table-wrap:has(> table.rs-cards), .table-container:has(> table.rs-cards) { overflow: visible; max-width: none; }
    table.rs-cards, .table-container > table.rs-cards { display: block; width: 100%; background: none; border: 0; overflow: visible; }
    table.rs-cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    table.rs-cards tbody { display: block; }
    table.rs-cards tr { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.75rem; background: #fff; border: 1px solid #dde3ee;
        border-radius: 12px; padding: 0.75rem 0.85rem; margin: 0 0 0.75rem; box-shadow: 0 2px 6px rgba(18, 53, 107, 0.06); }
    table.rs-cards td { display: flex; align-items: center; gap: 0.6rem; flex: 1 1 100%; min-width: 0; padding: 0; border: 0; white-space: normal; text-align: left; }
    table.rs-cards td[data-label]::before { content: attr(data-label); flex: 0 0 7.2rem; font-size: 0.8rem; font-weight: 700; color: #4a5d7e; }
    table.rs-cards td > :is(input:not([type=checkbox]), select) { flex: 1 1 auto; min-width: 0; max-width: none; width: auto; }
    table.rs-cards td.rc-head { font-size: 1.05rem; padding-bottom: 0.2rem; }
    table.rs-cards td.rc-foot { flex: 1 1 auto; padding-top: 0.35rem; border-top: 1px solid #eef1f5; }
    table.rs-cards td.rc-end { flex: 0 0 auto; justify-content: flex-end; }
    table.rs-cards .gc-num { text-align: left; }
    body.brand-r2t table.rs-cards .gc-orders { display: none; }
    table.rs-hours.rs-cards td[data-label] { flex-wrap: wrap; gap: 0.3rem 0.5rem; }
    table.rs-hours.rs-cards td[data-label]::before { flex: 1 0 100%; }
    table.rs-hours.rs-cards input[type=time] { flex: 1 1 0; min-width: 0; padding: 0.4rem 0.3rem; }
    /* Bookings: time and guest on top, then status, party and table, answers, and the buttons in a full row */
    table.rs-bookings tr.rs-row-cancelled { opacity: 0.6; }
    table.rs-bookings td.rc-time { order: 1; flex: 0 0 auto; display: block; font-size: 1.05rem; line-height: 1.25; }
    table.rs-bookings td.rc-guest { order: 2; flex: 1 1 0; display: block; }
    table.rs-bookings td.rc-guest .rc-name { font-size: 1.05rem; color: #1d2a3f; }
    table.rs-bookings td.rc-status { order: 3; display: block; padding: 0.35rem 0; border-top: 1px solid #eef1f5; }
    table.rs-bookings td.rc-status br { display: none; }
    table.rs-bookings td.rc-status .rs-muted { margin-left: 0.4rem; }
    table.rs-bookings td.rc-party { order: 4; flex: 0 0 auto; }
    table.rs-bookings td.rc-party::before { flex: none; }
    table.rs-bookings td.rc-table { order: 5; flex: 1 1 10rem; }
    table.rs-bookings td.rc-table::before { flex: none; }
    table.rs-bookings td.rc-answers { order: 6; align-items: flex-start; }
    table.rs-bookings td.rc-answers:not(:has(ul)) { display: none; }
    table.rs-bookings td.rs-actions { order: 7; display: flex; flex-wrap: wrap; gap: 0.5rem; padding-top: 0.5rem; border-top: 1px solid #eef1f5; }
    table.rs-bookings td.rs-actions:empty { display: none; }
    table.rs-bookings td.rs-actions > .btn, table.rs-bookings td.rs-actions > button { flex: 1 1 0; min-width: 6rem; margin: 0; }
}

/* Next for the host (js/services/reservations.js hostNextHtml) */
.hn { background: #fff; border: 2px solid var(--navy); border-radius: 12px; padding: 0.8rem 0.9rem; box-shadow: 0 4px 14px rgba(18, 53, 107, 0.1); }
.hn-head { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.3rem; }
.hn-title { margin: 0; font: 800 1.1rem Nunito, system-ui, sans-serif; color: var(--navy); }
.hn-count { font-size: 0.85rem; }
.hn-bell { margin-left: auto; background: none; border: 1px solid #dde3ee; border-radius: 999px; font: 600 0.8rem Inter, system-ui, sans-serif; color: var(--navy);
    min-height: 36px; padding: 0 0.7rem; cursor: pointer; touch-action: manipulation; }
.hn-bell[aria-pressed="false"] { color: #6b7a90; }
.hn-list { list-style: none; margin: 0; padding: 0; }
.hn-tip { display: flex; gap: 0.6rem; padding: 0.65rem 0; border-top: 1px solid #eef1f5; }
.hn-tip:first-child { border-top: 0; }
.hn-num { flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; font-size: 0.85rem; display: grid; place-items: center; margin-top: 0.1rem; }
.hn-body { flex: 1; min-width: 0; }
.hn-what { display: block; color: #1d2a3f; font-size: 1rem; line-height: 1.3; }
.hn-why { margin: 0.2rem 0 0.55rem; color: #4a5d7e; font-size: 0.9rem; line-height: 1.4; }
.hn-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.hn-actions .btn { width: auto; margin: 0; }
.hn-actions a.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.hn-skip { margin-left: auto; background: none; border: 0; color: #4a5d7e; text-decoration: underline; font: inherit; font-size: 0.85rem; min-height: 44px; padding: 0 0.5rem; cursor: pointer; }
.hn-more { background: none; border: 0; color: var(--navy); font: 600 0.9rem Inter, system-ui, sans-serif; text-decoration: underline; min-height: 44px; padding: 0; cursor: pointer; }
.hn-calm { margin: 0.2rem 0 0; color: #4a5d7e; }
.hn-calm strong { color: #1f7a3d; }
@media (max-width: 700px) { .hn-actions .btn { flex: 1 1 auto; min-height: 44px; } }
/* red / yellow / green board: red pulses slowly (once a second, far below any flash risk), still with reduced motion */
.hn-board { display: flex; align-items: center; flex-wrap: wrap; gap: 0.3rem 0.6rem; margin: 0.35rem 0 0.4rem; padding: 0.55rem 0.75rem; border-radius: 10px; font-size: 0.95rem; }
.hn-board strong { font: 800 1rem Nunito, system-ui, sans-serif; }
.hn-detail { font-size: 0.88rem; }
.hn-light { width: 0.9rem; height: 0.9rem; border-radius: 50%; flex: none; }
.hn-green { background: #e7f5ec; color: #145c2e; } .hn-green .hn-light { background: #1f7a3d; }
.hn-yellow { background: #fff4d1; color: #6b4b00; } .hn-yellow .hn-light { background: #e0a100; }
.hn-red { background: #D92735; color: #fff; } .hn-red .hn-light { background: #fff; }
.hn.hn-is-yellow { border-color: #e0a100; }
.hn.hn-is-red { border-color: #D92735; animation: hn-pulse 2s ease-in-out infinite; }
.hn-red { animation: hn-flash 2s ease-in-out infinite; }
@keyframes hn-pulse { 50% { box-shadow: 0 0 0 6px rgba(217, 39, 53, 0.35); } }
@keyframes hn-flash { 50% { background: #a81c28; } }
.hn-num.hn-n-yellow { background: #e0a100; color: #1d2a3f; }
.hn-num.hn-n-green { background: #1f7a3d; }
.hn-alerts { background: #f5f7fb; border: 1px solid #dde3ee; border-radius: 10px; padding: 0.4rem 0.75rem 0.5rem; margin: 0.3rem 0 0.5rem; }
.hn-alerts-h { margin: 0.4rem 0 0; font: 800 0.9rem Nunito, system-ui, sans-serif; color: var(--navy); }
.hn-alerts label.rs-check { display: flex; align-items: center; gap: 0.5rem; min-height: 44px; font-size: 0.92rem; }
.hn-alerts label.rs-check input { width: 20px; height: 20px; flex: none; margin: 0; }
.hn-alerts .rs-muted { margin: 0.3rem 0 0; }
.hn-bell[aria-expanded="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
#overview.hn-shake { animation: hn-shake 0.8s ease-in-out; }
@keyframes hn-shake { 10%, 90% { transform: translateX(-3px); } 20%, 80% { transform: translateX(6px); } 30%, 50%, 70% { transform: translateX(-10px); } 40%, 60% { transform: translateX(10px); } }
@media (prefers-reduced-motion: reduce) { .hn.hn-is-red, .hn-red, #overview.hn-shake { animation: none; } }

/* Admin -> Demo leads (adminDemos.js): cards on every screen size */
.ad-alerts { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.5rem 1rem; background: #f5f7fb; border: 1px solid #dde3ee; border-radius: 10px; padding: 0.75rem; margin: 0.75rem 0; }
.ad-alerts label { display: flex; gap: 0.5rem; font-weight: 600; font-size: 0.9rem; color: #1d2a3f; }
.ad-alert-on { align-items: center; min-height: 44px; }
.ad-alert-on input { width: 20px; height: 20px; margin: 0; }
.ad-alert-phone { flex-direction: column; gap: 0.25rem; }
.ad-alert-phone input { font-size: 16px; min-height: 44px; padding: 0.4rem 0.6rem; border: 1px solid #ced4da; border-radius: 6px; width: 13rem; max-width: 100%; }
.ad-alerts .btn { min-height: 44px; }
.ad-alerts .ac-status { flex-basis: 100%; margin: 0; }
.ad-summary { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin: 0.5rem 0; color: #4a5d7e; }
.ad-summary strong { color: var(--navy); font-size: 1.15rem; }
.ad-filters { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.5rem 0 0.75rem; }
.ad-chip { min-height: 44px; padding: 0 0.9rem; border: 1px solid var(--navy); border-radius: 999px; background: #fff; color: var(--navy); font: 600 0.9rem Inter, system-ui, sans-serif; cursor: pointer; }
.ad-chip span { font-weight: 400; opacity: 0.8; }
.ad-chip[aria-pressed="true"] { background: var(--navy); color: #fff; }
.ad-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 0.75rem; }
.ad-card { background: #fff; border: 1px solid #dde3ee; border-left: 5px solid #D92735; border-radius: 10px; padding: 0.75rem 0.9rem; display: flex; flex-direction: column; gap: 0.45rem; min-width: 0; }
.ad-card.ad-s-contacted { border-left-color: #e0a100; }
.ad-card.ad-s-signed_up { border-left-color: #1f7a3d; }
.ad-card.ad-s-not_interested { border-left-color: #9aa5b5; }
.ad-top { display: flex; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; }
.ad-who strong { display: block; font-size: 1.05rem; color: #1d2a3f; }
.ad-who span { color: #4a5d7e; font-size: 0.92rem; }
.ad-when { color: #5a6270; font-size: 0.82rem; }
.ad-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.ad-tag { font-size: 0.82rem; font-weight: 600; padding: 0.15rem 0.55rem; border-radius: 999px; }
.ad-opened { background: #e7f5ec; color: #145c2e; }
.ad-waiting { background: #eef1f5; color: #4a5d7e; }
.ad-signed { background: var(--navy); color: #fff; }
.ad-contact { margin: 0; font-size: 0.9rem; color: #1d2a3f; overflow-wrap: anywhere; }
.ad-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: flex-end; }
.ad-actions a.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; width: auto; min-height: 44px; margin: 0; }
.ad-status { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.8rem; font-weight: 600; color: #4a5d7e; margin-left: auto; }
.ad-status select { font-size: 16px; min-height: 44px; padding: 0.3rem 0.5rem; border: 1px solid #ced4da; border-radius: 6px; }
.ad-note { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.8rem; font-weight: 600; color: #4a5d7e; }
.ad-note textarea { font: inherit; font-size: 16px; font-weight: 400; padding: 0.4rem 0.55rem; border: 1px solid #ced4da; border-radius: 6px; resize: vertical; }

/* Booking settings: one box per topic + a Save bar that stays on screen (owner 2026-11-17) */
.rs-boxed .rs-box { background: #fff; border: 1px solid #e3e8f0; border-radius: 10px; padding: 1rem 1.1rem; margin-bottom: 1rem; }
.rs-boxed .rs-box h3 { margin-top: 0; }
.rs-boxed .rs-savebar { position: sticky; bottom: 0; z-index: 5; background: rgba(255,255,255,.96); border-top: 1px solid #e3e8f0; padding: 0.75rem 0; margin: 0; }
@media (max-width: 700px) { .rs-boxed .rs-savebar { bottom: calc(60px + env(safe-area-inset-bottom)); } }

/* Reservations menu in two rows: Daily (service) and Setup (owner 2026-11-17) */
.subnav-group.subnav-rows { flex-direction: column; gap: 0; padding: 0; }
.subnav-group.subnav-rows > .subnav-row { display: flex; align-items: center; gap: 0.15rem; padding: 0 2rem; overflow-x: auto; scrollbar-width: none; }
.subnav-group.subnav-rows > .subnav-row::-webkit-scrollbar { display: none; }
.subnav-row-setup { background: #f6f8fc; border-top: 1px solid #eef1f6; }
.subnav-row-setup a, .subnav .subnav-row-setup a.subnav-tab { min-height: 40px; font-size: 0.86rem; }
.subnav-label { flex: none; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #6b7a90; width: 7.2rem; }
@media (max-width: 1024px) { .subnav-group.subnav-rows > .subnav-row { padding: 0 16px; } }
@media (max-width: 700px) { .subnav-label { width: auto; margin-right: 0.4rem; } }
body.mode-manager .subnav-row-setup, body.mode-employee .subnav-row-setup { display: none !important; }
body.no-phone .grid-2:has(> .phone-only) { grid-template-columns: 1fr; }

/* Home layout (owner 2026-11-17): boxes in the order the restaurant picked; tables + today's bookings take two columns */
.ov-grid.ov-home { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 1rem; align-items: start; }
.ov-grid.ov-home > .ov-box { order: initial; min-width: 0; }
.ov-grid.ov-home > .ov-wide { grid-column: span 2; }
@media (max-width: 1000px) { .ov-grid.ov-home { display: flex; flex-direction: column; } }
.ov-layoutbar { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.75rem; justify-content: flex-end; margin: 0 0 0.75rem; }
.ov-layoutbar > .btn { width: auto; }
.ov-presets { flex: 1 1 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.6rem; }
.ov-presets .rs-muted { grid-column: 1 / -1; margin: 0; }
.ov-preset { text-align: left; background: #fff; border: 2px solid #dde3ee; border-radius: 10px; padding: 0.7rem 0.85rem; cursor: pointer; display: flex; flex-direction: column; gap: 0.2rem; font: inherit; color: inherit; }
.ov-preset strong { color: var(--navy); }
.ov-preset span { font-size: 0.85rem; color: #5b6b82; }
.ov-preset.active { border-color: var(--red); box-shadow: 0 0 0 3px rgba(217, 39, 53, 0.12); }
.ov-arranging > .ov-box { outline: 2px dashed #b8c4d8; outline-offset: 4px; border-radius: 10px; }
.ov-arranging .ov-handle { cursor: grab; touch-action: none; user-select: none; }
.ov-box.ov-dragging { opacity: 0.6; }
.ov-box.ov-dropzone { outline-color: var(--red) !important; outline-style: solid !important; }
.ov-arranging > .ov-box.ov-off { opacity: 0.45; }
.ov-handle { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; background: #eef2f8; border-radius: 8px; padding: 0.4rem 0.6rem; margin-bottom: 0.6rem; }
.ov-handle strong { flex: 1; color: var(--navy); }
.ov-handle .btn { width: auto; min-width: 2.4rem; }
.ov-show { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.9rem; }
body.mode-manager .ov-layoutbar, body.mode-employee .ov-layoutbar { display: none !important; }
.ap-wrap { overflow-x: auto; }
.rs-welcome-play { float: right; margin-left: .5rem; }
/* Settings -> Booking link: social pictures + website help (2026-11-17) */
.sp-step { margin: .8rem 0 .4rem; font-weight: 600; color: var(--navy, #12356B); }
.sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .5rem; }
.sp-pick { padding: 0; border: 3px solid transparent; border-radius: 10px; overflow: hidden; background: none; cursor: pointer; aspect-ratio: 4 / 3; }
.sp-pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-pick.on { border-color: #D92735; }
.sp-own { margin-top: .6rem; cursor: pointer; }
.sp-ai { margin: .8rem 0; } .sp-ai summary { cursor: pointer; font-weight: 600; color: var(--navy, #12356B); }
.sp-previews { display: flex; gap: 1rem; align-items: flex-end; flex-wrap: wrap; }
.sp-previews figure { margin: 0; text-align: center; font-size: .85rem; color: #5b6b86; }
.sp-previews canvas { display: block; border-radius: 8px; box-shadow: 0 4px 14px rgba(18,53,107,.18); }
.sp-previews canvas[data-sp-c="square"] { width: 260px; height: 260px; }
.sp-previews canvas[data-sp-c="story"] { width: 146px; height: 260px; }
.sp-msg { min-height: 1.2em; color: #5b6b86; }
.wh-help h4 { margin: 1.1rem 0 .3rem; }
.wh-steps { margin: .3rem 0 .6rem 1.1rem; padding: 0; line-height: 1.55; }
.wh-steps li { margin-bottom: .35rem; }
.wh-code { margin: .8rem 0; } .wh-code summary { cursor: pointer; color: var(--navy, #12356B); font-weight: 600; }
/* setup guide (2026-11-17): quick add, tap to join, capacity summary, try the booking page */
.pl-quick { display: inline-flex; gap: .3rem; margin-left: .5rem; vertical-align: middle; }
.pl-quick .btn { padding: .2rem .55rem; min-height: 30px; font-size: .85rem; }
.gc-bar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; background: #FFF4D6; border-radius: 10px; padding: .6rem .8rem; margin: .4rem 0 .8rem; }
.gc-empty { color: #5b6b86; }
.gc-list { list-style: none; padding: 0; margin: .4rem 0; } .gc-list li { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .4rem 0; border-bottom: 1px solid #e2e8f0; }
.cap-box { background: #eef6f0; border: 1px solid #cfe7d6; border-radius: 12px; padding: .9rem 1rem; margin: 0 0 1rem; }
.cap-big { font-size: 1.1rem; margin: 0 0 .5rem; color: #12356B; line-height: 1.5; }
.cap-rooms { margin: .2rem 0 .5rem 1.1rem; padding: 0; }
.cap-warn { background: #FFF4D6; border-radius: 8px; padding: .5rem .7rem; margin: .5rem 0 0; }
.btn-link { background: none; border: 0; padding: 0; color: #12356B; text-decoration: underline; cursor: pointer; font: inherit; }
.gd-try { display: flex; gap: 1rem; flex-wrap: wrap; align-items: flex-start; }
.gd-try > div:first-child { flex: 1 1 260px; }
.gd-phone { flex: 0 0 auto; width: 300px; height: 600px; border: 10px solid #1d2433; border-radius: 26px; overflow: hidden; background: #fff; }
.gd-phone iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 700px) { .gd-phone { width: 100%; height: 560px; } }

/* Staff logins (Settings -> Staff & screens) + staff badge in the top bar */
.stf-list { list-style: none; margin: 0 0 1rem; padding: 0; }
.stf-row { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; align-items: center; padding: .75rem 0; border-bottom: 1px solid var(--border, #e5e7eb); }
.stf-who { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.stf-mail { color: var(--muted, #6b7280); overflow-wrap: anywhere; }
.stf-status { font-size: .85rem; color: var(--muted, #6b7280); }
.stf-acts { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.stf-left { margin: .5rem 0; color: var(--muted, #6b7280); }
.stf-add .grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
@media (max-width: 700px) { .stf-add .grid-3 { grid-template-columns: 1fr; } }
.tb-staff { color: #fff; font-weight: 600; white-space: nowrap; }

/* Refer a friend (referrals.js) */
.rf-reward { background: #eef6ff; border: 1px solid #cfe2ff; border-radius: 10px; padding: .8rem 1rem; margin-bottom: 1rem; }
.rf-small { color: #5b6573; font-size: .88rem; }
.rf-reward .rf-small { display: block; margin-top: .2rem; }
.rf-label { font-weight: 600; display: block; margin-bottom: .3rem; }
.rf-linkrow { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-bottom: .4rem; }
.rf-linkrow input { flex: 1 1 260px; min-width: 0; padding: .55rem .7rem; border: 1px solid #ced4da; border-radius: 8px; font-size: 1rem; }
.rf-h { margin: 1.4rem 0 .5rem; }
.rf-list { list-style: none; padding: 0; margin: 0; }
.rf-list li { padding: .6rem 0; border-bottom: 1px solid #eef0f3; display: flex; flex-wrap: wrap; gap: .4rem .7rem; align-items: center; }
.rf-name { font-weight: 600; }
.rf-tag { white-space: nowrap; font-size: .75rem; font-weight: 700; border-radius: 999px; padding: .15rem .55rem; background: #e9ecef; color: #343a40; }
.rf-signed_up { background: #fff3cd; color: #7a5b00; }
.rf-qualified { background: #d1e7dd; color: #0f5132; }
.rf-rewarded { background: #cfe2ff; color: #12356b; }
.rf-void { background: #f1f3f5; color: #6c757d; }
.rf-program { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; margin-bottom: 1rem; }
.rf-program input[type=text] { width: min(340px, 100%); padding: .4rem .6rem; border: 1px solid #ced4da; border-radius: 6px; }
.rf-table { width: 100%; border-collapse: collapse; }
.rf-table th, .rf-table td { text-align: left; padding: .55rem .5rem; border-bottom: 1px solid #eef0f3; vertical-align: top; }
.ov-refer { display: flex; flex-wrap: wrap; gap: .4rem .8rem; align-items: center; background: #fff8e6; border: 1px solid #f3dfa8; border-radius: 10px; padding: .7rem 1rem; margin: 0 0 1rem; }
.ov-refer a { font-weight: 700; }
.ov-refer .btn-link { background: none; border: 0; padding: 0; color: #5b6573; text-decoration: underline; cursor: pointer; font: inherit; margin-left: auto; }
#clList tr.cl-flash td { animation: clFlash 2s ease-out; }
@keyframes clFlash { 0%, 40% { background: #fff3cd; } 100% { background: transparent; } }
/* booking reminder setting (reservations.js) */
.rs-remind { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: flex-end; margin-top: .8rem; }
.rs-remind label, .rs-remind #bsRemindWhen label { display: flex !important; flex-direction: row !important; gap: .5rem; align-items: center; margin: 0; font-weight: 600; }
.rs-remind select, .rs-remind input { width: auto !important; margin: 0 !important; }
#bsRemindWhen { display: flex; }
#bsRemindWhen[data-mode="off"] label, #bsRemindWhen[data-mode="day_before"] .rs-remind-hours, #bsRemindWhen[data-mode="hours_before"] .rs-remind-day { display: none !important; }
/* texts this month (textUsage.js) */
.tu-box { border: 1px solid #dfe5ee; border-radius: 10px; padding: .75rem 1rem; margin: .8rem 0; background: #fff; }
.tu-bar { height: 8px; background: #e9eef5; border-radius: 99px; overflow: hidden; margin: .45rem 0; }
.tu-bar span { display: block; height: 100%; background: #2e7d4f; border-radius: 99px; }
.tu-near .tu-bar span { background: #d99a00; }
.tu-over .tu-bar span { background: #c8102e; }
.tu-note { color: #5b6573; font-size: .88rem; }

/* Floor plan pieces (Plus, owner 2026-11-18): outside walls + entrance, doors, windows, bar, kitchen, restrooms... */
.pl-canvas > .pl-t { z-index: 3; }
.pl-walls { position: absolute; inset: 0; border: 6px solid #3b4656; border-radius: 6px; pointer-events: none; z-index: 1; }
.pl-k-patio .pl-walls { border: 3px dashed #7d9b83; }
.pc { position: absolute; box-sizing: border-box; transform: translate(-50%, -50%) rotate(var(--r)); z-index: 2; min-width: 8px; min-height: 6px;
    display: flex; align-items: center; justify-content: center; pointer-events: none; }
.pl-arranging .pc { pointer-events: auto; cursor: grab; touch-action: none; }
.pc-txt { display: inline-block; transform: rotate(calc(-1 * var(--r))); white-space: nowrap; font-weight: 800; font-size: clamp(0.58rem, 1.45cqw, 0.85rem);
    letter-spacing: 0.04em; text-transform: uppercase; color: #3b4656; pointer-events: none; }
.pc-wall { background: #3b4656; border-radius: 2px; }
.pc-window { background: #cfe6f7; border: 2px solid #3b4656; }
.pc-door { background: var(--floor); min-height: 10px; }
.pc-swing { position: absolute; left: 0; top: 100%; width: 100%; aspect-ratio: 1; border-left: 2.5px solid #3b4656;
    border-right: 1.5px dashed #8692a3; border-bottom: 1.5px dashed #8692a3; border-bottom-right-radius: 100%; box-sizing: border-box; pointer-events: none; }
.pc-entrance { background: var(--floor); min-height: 12px; border-left: 4px solid #2e7d32; border-right: 4px solid #2e7d32; }
.pc-entrance .pc-txt { position: absolute; top: calc(100% + 6px); background: #2e7d32; color: #fff; padding: 0.15em 0.55em; border-radius: 999px; }
.pc-bar { background: #8a6a4c; border: 2px solid #5e4632; border-radius: 6px; }
.pc-bar .pc-txt { color: #fff; }
.pc-stools { position: absolute; left: 6%; right: 6%; top: calc(100% + 3px); height: 12px; pointer-events: none;
    background: radial-gradient(circle, #5e4632 0 4.5px, transparent 5.5px) repeat-x; background-size: 22px 12px; }
.pc-kitchen { background: repeating-linear-gradient(45deg, #e6e9ee 0 8px, #d7dce3 8px 16px); border: 3px solid #3b4656; border-radius: 4px; }
.pc-restrooms { background: #e9f0f8; border: 3px solid #3b4656; border-radius: 4px; }
.pc-host { background: #fff4d6; border: 2px solid #c9a227; border-radius: 8px; }
.pc-stairs { background: repeating-linear-gradient(0deg, #e6e9ee 0 7px, #b9c0ca 7px 9px); border: 3px solid #3b4656; }
.pc-stairs .pc-txt { background: rgba(255,255,255,0.85); padding: 0 0.3em; border-radius: 4px; }
.pc-label { min-width: 0; }
.pc-label .pc-txt { color: #5b6678; background: rgba(247,243,236,0.85); padding: 0 0.35em; border-radius: 4px; }
.pc-sel { outline: 3px solid #1e88e5; outline-offset: 3px; z-index: 4; }
.pc:focus-visible { outline: 3px solid #1e88e5; outline-offset: 3px; }
.pc-handle { position: absolute; right: -11px; bottom: -11px; width: 20px; height: 20px; border-radius: 50%; background: #1e88e5;
    border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.3); cursor: nwse-resize; pointer-events: auto; }
.pl-placing .pl-canvas[data-area] { cursor: copy; box-shadow: inset 0 0 0 4px rgba(30,136,229,0.35); }
.pl-placing .pl-t, .pl-placing .pc { pointer-events: none; }
.pd-tools { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin: 0.5rem 0 0.75rem; padding: 0.55rem 0.7rem;
    background: #fff; border: 1px solid #d9e1ee; border-radius: 12px; }
.pd-lbl { color: var(--navy); margin-right: 0.2rem; }
.pd-tool { border: 1.5px solid #c9d4e6; background: #f6f8fc; color: var(--navy); border-radius: 999px; padding: 0.35rem 0.75rem;
    font: inherit; font-size: 0.88rem; font-weight: 600; cursor: pointer; min-height: 2.2rem; }
.pd-tool.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.pd-del { color: #c62828; border-color: #f0c2c2; }
.pd-sel { display: inline-flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin-left: auto; padding-left: 0.6rem; border-left: 2px solid #d9e1ee; }
.pd-help { flex-basis: 100%; font-size: 0.85rem; color: #5b6678; }
.pl-roomtools { display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; margin: 0 0 0.4rem; font-size: 0.85rem; }
body.no-floor-plan .pl-roomtools { display: none; }
/* names on block pieces shrink to fit the block (phones) */
.pc-kitchen, .pc-restrooms, .pc-host, .pc-stairs, .pc-bar { container-type: size; overflow: hidden; }
.pc-kitchen .pc-txt, .pc-restrooms .pc-txt, .pc-host .pc-txt, .pc-stairs .pc-txt, .pc-bar .pc-txt {
    white-space: normal; text-align: center; line-height: 1.05; max-width: 96cqw; font-size: clamp(0.42rem, 12cqw, 0.85rem); }
.pc-host .pc-txt { font-size: clamp(0.42rem, 16cqw, 0.8rem); }
.pc-word { font-weight: inherit; }
/* too small for the word: just the icon */
@container (max-width: 64px) { .pc-word { display: none; } }
.pc-txt > span[aria-hidden] { font-size: max(0.9rem, 1em); }

/* Admin -> Clients -> Client settings (owner 2026-11-18) */
.cl-open { all: unset; cursor: pointer; font-weight: 700; color: var(--navy); border-bottom: 1px dashed #9fb0cc; }
.cl-open:hover, .cl-open:focus-visible { color: #1e88e5; border-bottom-color: #1e88e5; outline: none; }
.cs-dialog { position: fixed; inset: 0; margin: auto; height: fit-content; width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 32px); border: none; border-radius: 14px; padding: 0; box-shadow: 0 20px 60px rgba(18,53,107,0.3); }
.cs-dialog::backdrop { background: rgba(18,30,50,0.45); }
.cs-form { padding: 1rem 1.2rem 1.1rem; display: flex; flex-direction: column; gap: 0.8rem; }
.cs-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.cs-head h3 { margin: 0; color: var(--navy); }
.cs-x { all: unset; cursor: pointer; font-size: 1.6rem; line-height: 1; color: #5b6678; padding: 0 0.3rem; }
.cs-sum { margin: 0; font-size: 0.88rem; color: #5b6678; line-height: 1.5; }
.cs-sec { border: 1px solid #d9e1ee; border-radius: 10px; padding: 0.6rem 0.8rem 0.7rem; margin: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.cs-sec legend { font-weight: 700; color: var(--navy); padding: 0 0.3rem; }
.cs-sec label { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.88rem; }
.cs-sec label.cs-radio { flex-direction: row; align-items: center; gap: 0.5rem; }
.cs-sec input[type=number] { width: 8rem; } .cs-sec input.cs-wide { width: 12rem; } .cs-sec input[type=text] { width: 100%; }
.cs-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }
#csCash { display: flex; flex-direction: column; gap: 0.5rem; padding-left: 1.6rem; } #csCash[hidden] { display: none; }
.cs-w9 { border-left: 4px solid #2e7d32; padding: 0.4rem 0.6rem; background: #f3faf3; border-radius: 6px; display: flex; flex-direction: column; gap: 0.35rem; }
.cs-w9-missing { border-left-color: #e65100; background: #fff6ec; }
.cs-warn { color: #b44a00; font-size: 0.85rem; font-weight: 600; }
.cs-note { margin: 0; font-size: 0.8rem; color: #718096; }
.cs-status { margin: 0; min-height: 1.2em; font-size: 0.88rem; color: #2e7d32; } .cs-status.cs-err { color: #c62828; }
.cs-actions { display: flex; justify-content: flex-end; gap: 0.5rem; }
.rf-w9 { display: inline-block; margin-left: 0.4rem; font-size: 0.75rem; font-weight: 700; color: #b44a00; }

/* ring2order resellers (js/services/resellerPortal.js, js/services/adminResellers.js) */
#resellerSection { --rs-primary: #12356B; --rs-accent: #D92735; }
.rs-portal { display: flex; flex-direction: column; gap: 0.75rem; }
.rs-portal h2, .rs-portal h3 { color: var(--rs-primary, #12356B); }
.rs-portal .btn-primary { background: var(--rs-accent, #D92735); border-color: var(--rs-accent, #D92735); }
.rs-portal label { display: flex; flex-direction: column; gap: 0.25rem; font-weight: 600; }
.rs-portal input:not([type=checkbox]):not([type=radio]):not([type=color]), .rs-portal select, .rs-portal textarea { font: inherit; padding: 0.5rem; border: 1px solid #cdd5e2; border-radius: 6px; }
.rs-portal fieldset, .ar-pricing fieldset, .ar-card fieldset { border: 1px solid #dde3ee; border-radius: 8px; padding: 0.5rem 0.75rem; display: flex; flex-direction: column; gap: 0.35rem; }
.rs-check { flex-direction: row !important; align-items: flex-start; gap: 0.5rem !important; font-weight: 400 !important; }
.rs-head { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; border-bottom: 4px solid var(--rs-accent, #D92735); padding-bottom: 0.5rem; }
.rs-head > div { flex: 1; min-width: 0; }
.rs-head h2 { margin: 0; }
.rs-logo { max-height: 48px; max-width: 160px; object-fit: contain; vertical-align: middle; }
.rs-box { background: #fff; border: 1px solid #dde3ee; border-radius: 10px; padding: 0.9rem 1rem; display: flex; flex-direction: column; gap: 0.6rem; }
.rs-wait { border-left: 5px solid #e0a100; }
.rs-balance { font-size: 1.1rem; margin: 0; }
.rs-balance strong { font-size: 1.6rem; color: var(--rs-primary, #12356B); }
.rs-low strong { color: #b42318; }
.rs-ach { white-space: pre-wrap; background: #f5f7fb; padding: 0.6rem; border-radius: 6px; font: inherit; margin: 0; }
.rs-inline { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; }
.rs-inline > label { flex: 1 1 160px; }
.rs-table-wrap { overflow-x: auto; }
.rs-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.rs-table td, .rs-table th { padding: 0.35rem 0.4rem; border-bottom: 1px solid #edf0f5; text-align: left; }
.rs-table .num { text-align: right; white-space: nowrap; }
.rs-neg { color: #b42318; }
.ar-pricing { border-left-color: #12356B; margin-bottom: 0.75rem; max-width: 760px; }
.ar-pricing label, .ar-card label { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.9rem; }
.ar-top { display: flex; justify-content: space-between; gap: 0.5rem; align-items: baseline; }
.ar-status { font-size: 0.8rem; font-weight: 700; padding: 0.1rem 0.5rem; border-radius: 999px; background: #eef2f8; color: #12356B; white-space: nowrap; }
.ar-s-in_review { border-left-color: #e0a100; }
.ar-s-approved { border-left-color: #1f7a3d; }
.ar-s-rejected, .ar-s-suspended { border-left-color: #9aa5b5; }
.ar-row { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.ar-row input, .ar-row select { flex: 1 1 120px; min-width: 0; padding: 0.35rem; }
.ar-balance strong { font-size: 1.2rem; color: #12356B; }

/* reseller client dashboards (js/brand.js): billing is the reseller's balance, not Stripe or minutes */
.reseller-client [data-spage="billing"], .reseller-client [data-jump="set-billing"] { display: none !important; }
.reseller-banner { background: #eef2f8; border-color: #12356B; }
.rs-client-top { display: flex; justify-content: space-between; gap: 0.5rem; align-items: baseline; flex-wrap: wrap; }
.rs-client-top h3 { margin: 0; }
.rs-paused { border-left: 5px solid #9aa5b5; }
.ai-disclosure { display: flex; gap: 0.5rem; align-items: center; font-weight: 600; margin-top: 1rem; }
.rs-tickets { display: grid; gap: 0.4rem; margin: 0.5rem 0 1rem; }
.rs-ticket { display: flex; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; text-align: left; padding: 0.6rem 0.75rem; border: 1px solid #dde3ee; border-radius: 8px; background: #fff; cursor: pointer; font: inherit; }
.rs-ticket:hover { border-color: var(--rs-primary, #12356B); }
.st-call { background: #f7f9fc; border: 1px solid #dde3ee; border-radius: 8px; padding: 0.6rem 0.75rem; margin: 0.5rem 0; }
.st-call audio { width: 100%; margin-top: 0.25rem; }
.st-call-none { color: #6c757d; margin: 0; }
.st-escalated { background: #fff7e6; border: 1px solid #f0c36d; border-radius: 8px; padding: 0.6rem 0.75rem; margin: 0.5rem 0; }
.st-escalated p { margin: 0.25rem 0; }
.st-escalate { margin: 0.5rem 0; }
.st-escalate summary { cursor: pointer; font-weight: 600; color: var(--rs-primary, #12356B); }
.ar-lookup-edit { background: none; border: 0; color: #12356B; text-decoration: underline; cursor: pointer; font-size: 0.85rem; margin-left: 0.25rem; }
.ar-lookup-form { margin-top: 0.5rem; }
.rs-photo-qr svg { width: 180px; height: 180px; display: block; margin: 0.5rem 0; }
.rs-capture-btn { display: block; text-align: center; margin: 1rem 0; font-size: 1.1rem; }
.rs-capture-preview { display: block; max-width: 100%; max-height: 50vh; border-radius: 12px; margin: 0.5rem auto 1rem; }
.ar-photo { display: flex; gap: 0.75rem; align-items: center; margin: 0.5rem 0; }
.ar-photo img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; border: 1px solid #dde3ee; cursor: zoom-in; background: #f3f5f9; }
.rs-capture-preview[hidden] { display: none; }
.ar-notax { background: #fff7e6; color: #8a5a00; margin-left: 0.4rem; }

/* reseller trial */
.rs-portal .rs-section{margin:1.25rem 0 .5rem;font-size:1.05rem}
.rs-trial{border-left:4px solid var(--rs-color, #2563eb)}
.rs-name-ideas{display:flex;flex-wrap:wrap;gap:.35rem;align-items:center;margin:.25rem 0 .5rem}
.ar-name{align-items:center}
.rs-portal .rs-name-ideas .btn{width:auto;flex:none;min-height:36px;padding:.3rem .85rem;margin:0}

/* Reseller clients (js/brand.js applyClientView): pages the reseller didn't give the restaurant's own login */
body.rc-no-menu .nav-link[data-section="menu"], body.rc-no-menu .nav-link[data-section="menu-options"],
body.rc-no-menu .nav-link[data-section="specials"], body.rc-no-menu .nav-link[data-section="upload-menu"],
body.rc-no-menu_scan .nav-link[data-section="upload-menu"],
body.rc-no-delivery .nav-link[data-section="delivery-addresses"], body.rc-no-delivery .nav-link[data-section="delivery-settings"],
body.rc-no-settings .nav-link[data-section="settings"],
body.rc-no-calls .nav-link[data-section="messages"],
body.rc-no-support .nav-link[data-section="support"]
{ display: none !important; }
.tb-agent { font-size: 0.75rem; font-weight: 600; color: rgba(255,255,255,0.85); border: 1px solid rgba(255,255,255,0.45); border-radius: 999px; padding: 0.1rem 0.5rem; white-space: nowrap; }
.reseller-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
body:not(.site-r2t) .r2t-site-only { display: none !important; }
.rs-portal .ad-filters { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.rs-portal .ad-filters .btn { width: auto; flex: 0 1 auto; margin: 0; }
.rs-portal .rs-msg { overflow-wrap: anywhere; }
