/* Reservation application only. Table geometry, permanent layouts and status semantics remain unchanged. */
body[data-v1-resa]{color-scheme:light;background:#f6f3ed;color:#2b251f;--ink:#2b251f;--muted:#766d61;--gold:#997344}
body[data-v1-resa] .app-header{background:#110e09;border-bottom-color:#8f6b30}
body[data-v1-resa] .app-header .brand{color:#d8b36a}
body[data-v1-resa] .app-header .brand small{color:#d8b36a}
body[data-v1-resa] .takeaway-controls a,
body[data-v1-resa] .app-footer a,
body[data-v1-resa] [data-admin-return]{color:#80612d}
body[data-v1-resa] #navigation .badge{background:#d8b36a;color:#201709}
body[data-v1-resa] #navigation button.active{color:#cce6fa;border-color:#6ca3cf;background:#203e54}
body[data-v1-resa] #main>.stats .stat,body[data-v1-resa] #main>.panel,body[data-v1-resa] .service-grid>.panel,body[data-v1-resa] .reservation-card{background:#fffaf1;color:#29251e;border-color:#d9cbb7;--ink:#29251e;--muted:#625b50;--gold:#80612d;--green:#286944;--blue:#286599;--orange:#9d611b;--red:#993d3b}
body[data-v1-resa] .floor-map{--ink:#f3eee2;--muted:#b8af9c;--gold:#d8b36a;--green:#82b696;--blue:#8cb8d7;--orange:#dbad67;--red:#db9290}
body[data-v1-resa] .panel input,body[data-v1-resa] .panel select,body[data-v1-resa] .panel textarea{background:#fff;color:#29251e}
body[data-v1-resa] .reservation-card .arrival{color:#80612d}
body[data-v1-resa] .takeaway-controls{max-width:1420px;margin:18px auto 0;padding:0 30px}
@media(max-width:650px){body[data-v1-resa] .takeaway-controls{padding:0 16px}}

body[data-v1-resa] .app-header{background:#241d18;color:#eadfcd}body[data-v1-resa] .login{background:#fffdf8;border:1px solid #ded7cc;color:#2b251f;border-radius:15px}body[data-v1-resa] .login input{background:#fff;color:#2b251f}body[data-v1-resa] .takeaway-shell{color:#2b251f}body[data-v1-resa] .navigation{border-color:#ded7cc}body[data-v1-resa] .reservation-card{border-radius:12px}

/* Floor filters sit outside .panel: explicit light controls prevent dark inherited ink on black. */
body[data-v1-resa] .toolbar input,body[data-v1-resa] .toolbar select{
 background:#fff;color:#29251e;border-color:#9c8d75;color-scheme:light;
}
body[data-v1-resa] .toolbar option{background:#fff;color:#29251e}
body[data-v1-resa] .toolbar input::-webkit-calendar-picker-indicator{filter:none;opacity:1}
body[data-v1-resa] .toolbar input:focus-visible,body[data-v1-resa] .toolbar select:focus-visible{outline:3px solid #286599;outline-offset:2px}

/* Shared readable filters and keyboard/touch contact suggestions. */
[data-v1-resa] .filters {align-items:flex-end;}
[data-v1-resa] .filters label {display:flex;flex-direction:column;gap:6px;margin:0;}
[data-v1-resa] .filters input,[data-v1-resa] .filters select,[data-v1-resa] .filters button {min-height:48px;margin:0;}
[data-booking-client-picker] {margin:12px 0;}
[data-booking-client-picker] .client-picker-list {display:grid;gap:5px;padding:8px;border:1px solid #b9c7d0;border-radius:8px;background:#fff;}
[data-booking-client-picker] .client-picker-list[hidden] {display:none;}
[data-booking-client-picker] [data-client-profile][hidden] {display:none;}
[data-booking-client-picker] button {width:100%;text-align:left;min-height:44px;color:#17242c;background:#edf5fc;}
[data-booking-client-picker] button[aria-selected="true"] {outline:2px solid #346d9e;background:#dceefe;}

/* Keep operational controls readable inside the V1 light panels and dark header. */
body[data-v1-resa] #account,
body[data-v1-resa] .form-actions [data-context-back],
body[data-v1-resa] .panel-header button,
body[data-v1-resa] .panel-header .button {
 color:#f3eee2;background:#2a241b;border-color:#8c7960;
}
body[data-v1-resa] button.primary,
body[data-v1-resa] .button.primary {color:#fffaf1;background:#755326;border-color:#755326;}
body[data-v1-resa] dialog {color:#f3eee2;--ink:#f3eee2;--muted:#c9bdab;--gold:#d8b36a;}
body[data-v1-resa] #toast {color:#f3eee2;}
@media(max-width:650px) {
 body[data-v1-resa] #navigation button {color:#d8d0c4;}
 body[data-v1-resa] #navigation button.active {color:#cce6fa;}
}

/* Retest 6A: readable text only. Preserve blue/teal navigation, table states and geometry. */
body[data-v1-resa] .app-header .header-right a[data-ui-language] {
 color:#d8b36a;
}
body[data-v1-resa] .page-heading .eyebrow,
body[data-v1-resa] .toolbar .date-readable {
 color:#80612d;
}
body[data-v1-resa] .form-actions button[data-resa-normal],
body[data-v1-resa] .form-actions button[data-view]:not(.primary):not(.danger):not(.confirm):not(.quiet),
body[data-v1-resa] .panel > button[data-view]:not(.primary):not(.danger):not(.confirm):not(.quiet),
body[data-v1-resa] .panel form > button:not(.primary):not(.danger):not(.confirm):not(.quiet) {
 color:#f3eee2;
 background:#2a241b;
}

/* Today: the floor follows the reservations instead of leaving a tall empty side column. */
body[data-v1-resa] .service-grid:has([data-floor-service]) {
 grid-template-columns:minmax(0,1fr);
 align-items:start;
}
body[data-v1-resa] .service-grid [data-floor-service] .floor-canvas {max-height:none;}
@media(min-width:1051px) {
 body[data-v1-resa] .service-grid [data-floor-service] .floor-rooms {grid-template-columns:repeat(3,minmax(0,1fr));}
 body[data-v1-resa] .service-grid [data-floor-service] .floor-room-card:nth-child(3) {
  grid-column:auto;max-width:none;justify-self:stretch;
 }
}

/* MR-030 mobile controls: keep Date / Service / Time readable on narrow iPhones. */
@media(max-width:700px){
 body[data-v1-resa] #main .toolbar{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-items:stretch}
 body[data-v1-resa] #main .toolbar>label,body[data-v1-resa] #main .toolbar>label:first-child,body[data-v1-resa] #main .toolbar>label.time-filter{display:grid;grid-column:1/-1;min-width:0;max-width:100%;width:100%;gap:6px;padding:0;margin:0}
 body[data-v1-resa] #main .toolbar input,body[data-v1-resa] #main .toolbar select{display:block;box-sizing:border-box;min-width:0;max-width:100%;width:100%;min-height:48px;height:48px;margin:0;font-size:16px}
 body[data-v1-resa] #filter-date{min-inline-size:0}
}

/* Operational counters retain the existing card design and native keyboard access. */
body[data-v1-resa] #main>.stats button.stat{text-align:left;font:inherit;cursor:pointer;min-height:44px;}
body[data-v1-resa] #main>.stats button.stat:focus-visible{outline:3px solid #346d9e;outline-offset:3px;}

body[data-v1-resa] .floor-direct-help{font:13px/1.65 Arial,sans-serif;color:#d9cbb3;margin:10px 0 15px}body[data-v1-resa] .floor-direct-help strong{display:inline-block;color:#ead3a0;margin-left:6px}body[data-v1-resa] .floor-table-symbol.is-held{cursor:grabbing}body[data-v1-resa] .floor-table-symbol.is-held .floor-hit{stroke:#f2c66a;stroke-width:4;fill:#d5b36b22;stroke-dasharray:none}

body[data-v1-resa] dialog[data-table-association]{box-sizing:border-box;width:min(560px,calc(100vw - 24px));max-height:90dvh;overflow:auto;padding:28px;border:1px solid #b99350;border-radius:14px;background:#fffaf1;color:#2b251f;--muted:#6b5b44}
body[data-v1-resa] [data-table-association] h2{padding-right:30px;margin:0 0 12px;font:26px Georgia,serif}
body[data-v1-resa] [data-association-form]{display:grid;gap:16px;margin-top:20px}
body[data-v1-resa] [data-association-form] label{display:grid;gap:7px;margin:0}
body[data-v1-resa] .association-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}
body[data-v1-resa] [data-association-form] select{box-sizing:border-box;width:100%;min-width:0;min-height:48px;font-size:16px;background:#fff;color:#2b251f}
body[data-v1-resa] [data-association-form] button{min-height:46px}
body[data-v1-resa] [data-association-form] [hidden]{display:none!important}
@media(max-width:450px){body[data-v1-resa] .association-fields{grid-template-columns:1fr}body[data-v1-resa] dialog[data-table-association]{padding:22px 18px}}

/* One compact, shared meal list for new and existing staff reservations. */
[data-v1-resa] .booking-meals{border-top:1px solid #b7a58a;margin-top:22px;padding-top:16px}
[data-v1-resa] .booking-meals h2{font-size:23px;margin:0 0 8px}
[data-v1-resa] .booking-meals h3{font-size:18px;margin:20px 0 8px}
[data-v1-resa] .booking-meal-row{display:grid;grid-template-columns:minmax(0,1fr) 90px auto;align-items:center;gap:10px;border-bottom:1px solid #b7a58a;padding:12px 0}
[data-v1-resa] .booking-meal-choice{display:flex;align-items:center;gap:10px;min-width:0;margin:0}
[data-v1-resa] .booking-meal-choice input{width:22px;height:22px;flex:0 0 22px;accent-color:#755326;margin:0}
[data-v1-resa] .booking-meal-choice span{display:grid;gap:5px;min-width:0}
[data-v1-resa] .booking-meal-choice small{font-size:13px;line-height:1.5}
[data-v1-resa] .booking-meal-qty{display:grid;gap:5px;font-size:13px;margin:0}
[data-v1-resa] .booking-meal-qty input{width:100%;box-sizing:border-box;min-height:44px;margin:0;font-size:16px}
[data-v1-resa] .booking-meal-row button{min-height:44px;margin:0}
[data-v1-resa] .booking-meal-warning,[data-v1-resa] .booking-meal-options{grid-column:1/-1;margin:0;font-size:14px;line-height:1.6}
[data-v1-resa] .booking-meal-warning{color:#a84323;font-weight:bold}
[data-v1-resa] .booking-meal-unavailable .booking-meal-choice{opacity:.8}
[data-v1-resa] [data-meal-total]{padding-top:14px;font-weight:bold}
[data-v1-resa] dialog.booking-meal-dialog{box-sizing:border-box;width:min(580px,calc(100vw - 24px));max-height:90dvh;padding:25px;background:#fffaf1;color:#29251e;--muted:#625b50;--ink:#29251e;--gold:#80612d;border:1px solid #b99350;border-radius:14px}
[data-v1-resa] .booking-meal-dialog h2{font-size:25px;margin-top:0}
[data-v1-resa] .booking-meal-dialog fieldset{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;border:1px solid #c7b89e;margin:16px 0;padding:12px}
[data-v1-resa] .booking-meal-dialog label{display:grid;gap:6px;min-width:0;margin:0}
[data-v1-resa] .booking-meal-dialog select{width:100%;min-width:0;min-height:46px;font-size:16px;box-sizing:border-box;background:#fff;color:#29251e}
[data-v1-resa] .booking-meal-dialog .form-actions{display:flex;justify-content:flex-end;gap:12px;flex-wrap:wrap}
[data-v1-resa] .booking-meal-summary{border-block:1px solid #7e705f;margin:20px 0;padding:14px 0}
[data-v1-resa] .booking-meal-summary>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 15px;margin:12px 0}
[data-v1-resa] .booking-meal-summary small,[data-v1-resa] .booking-meal-summary>div p{grid-column:1/-1;margin:0;line-height:1.6}
[data-v1-resa] .booking-meal-grand-total{display:flex;justify-content:space-between;gap:12px;border-top:1px solid #7e705f;padding-top:14px}
@media(max-width:550px){[data-v1-resa] .booking-meal-row{grid-template-columns:minmax(0,1fr) 78px}[data-v1-resa] .booking-meal-row>button{grid-column:1/-1;justify-self:start}[data-v1-resa] .booking-meal-dialog fieldset{grid-template-columns:1fr}}
[data-v1-resa] .booking-meal-row button,[data-v1-resa] .booking-meal-dialog button:not(.primary){color:#fffaf1;background:#2a241b;border-color:#8c7960}

/* Dark operational surfaces keep their own ink, independent of the light shell. */
body[data-v1-resa] .timeline-wrap {color:#f3eee2;--ink:#f3eee2;--muted:#d4c9b5;--gold:#ead3a0;--green:#a2dbb5;--blue:#afd9f7;--orange:#f1c780;--red:#f2b7b1;}
body[data-v1-resa] .timeline-label {color:#fff3d8;font-weight:700;}
body[data-v1-resa] .timeline-label small,body[data-v1-resa] .time-label {color:#e0d4bf;}
body[data-v1-resa] .timeline-booking {color:#f3eee2;}
body[data-v1-resa] .floor-direct-help {color:#625b50;}
body[data-v1-resa] .floor-direct-help strong {color:#755326;}
body[data-v1-resa] .floor-booking-name {fill:#fff5e0;font-family:Arial,sans-serif;font-size:18px;font-weight:700;pointer-events:none;}
/* The floor group panel stays dark when the surrounding reservation form is light. */
body[data-v1-resa] .cafe-floor .floor-group-controls{--ink:#f3eee2;--muted:#d4c9b5;--gold:#ead3a0}

body[data-v1-resa] .stat [data-reserved-table-count]{display:block;color:#625b50;margin-top:4px;font-size:12px;}
