/* Regras visuais da organização do turno e dos estados das mesas. */
/* Recepção: resumo curto, salão e fila em paralelo, relatórios sob demanda. */
.page-actions,.shift-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.page-actions > button { align-self: stretch; min-height: 48px; }
#host-view.preparing-shift .shift-start-action {
  grid-column: 1 / -1;
  min-height: 64px;
  width: 100%;
  font-size: 19px;
}
@media (min-width: 850px) {
  #host-view.preparing-shift .page-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
    align-items: center;
    gap: 28px;
    max-width: 920px;
    margin: 24px auto 48px;
    padding: 32px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
  }
  #host-view.preparing-shift .page-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #host-view.preparing-shift .shift-start-action { font-size: 16px; }
}
#host-view.preparing-shift .operational-panel,
#host-view .test-lab:not([open]) { display: none; }
#host-view.waiting-for-shared > * { display: none; }
.shift-panel-summary { font-weight: 650; }
.operational-panel[open] > .shift-panel-summary { margin-bottom: 12px; }
.shift-editor label.section-contrast {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin: 0 0 8px;
}
.shift-editor #section-outlines { width: 18px; height: 18px; min-height: 18px; padding: 0; }
.shift-editor .section-paint-map { min-width: 0; }
.shift-editor:not(.outlined-sections) .section-paint-map .plan-slot > button {
  background: var(--section-color);
  color: #fff;
}
.shift-editor:not(.outlined-sections) .section-paint-map .plan-slot > button small { display: none; }
.shift-editor:not(.outlined-sections) .section-paint-map .irregular-table polygon { fill: var(--section-color); }
@media (max-width: 720px) {
  .shift-editor .shift-fields label:has(#shift-period) { grid-column: 1 / -1; }
  .shift-editor .shift-fields #shift-period { font-size: 16px; }
}
#close-service-day { color: #6e4231; }
.settings-dialog .service-top { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
.settings-dialog .service-top button { flex: none; }
.section-pause-panel { padding: 14px; margin: 16px 0; border-radius: 12px; background: #f0f1f4; }
.section-pause-panel h3 { margin: 0; }
.section-pause-panel p, .settings-dialog .traffic-settings p { font-size: 13px; }
.settings-dialog .traffic-settings summary { font-size: 14px; font-weight: 600; }
.pause-map-floor.real-floor { min-width: 0; max-width: 340px; margin-inline: auto !important; }
.pause-map-table {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--section-color);
  border-radius: 4px;
  color: white;
  font-size: clamp(10px, 3vw, 14px);
  font-weight: 700;
}
.plan-round .pause-map-table { border-radius: 50%; }
.plan-wedge .pause-map-table { clip-path: polygon(0 100%, 100% 0, 100% 100%); padding: 22% 0 0 30%; }
.pause-map-table[data-paused="true"] { color: #223e36; background: #e3e6df; box-shadow: inset 0 0 0 2px var(--section-color); }
.settings-dialog #section-pauses { display: grid; gap: 6px; }
.section-pause-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border-left: 4px solid var(--section-color);
  border-radius: 5px;
  background: white;
}
.section-pause-row small { display: block; color: var(--muted); margin-top: 3px; }
.section-pause-row button { min-width: 88px; min-height: 44px; padding: 6px 8px; font-size: 12px; }
.host-more-actions { position: relative; }
.host-more-actions summary {
  display:flex; align-items:center; justify-content:center; gap:8px; list-style:none; min-height:44px;
  padding:0 12px; border-radius:8px; color:var(--muted); font-weight:650; font-size:14px; cursor:pointer;
}
.host-more-actions summary::-webkit-details-marker { display:none; }
.host-more-actions summary::after {
  content:''; width:6px; height:6px; border:solid currentColor; border-width:0 1.5px 1.5px 0;
  transform:translateY(-2px) rotate(45deg);
}
.host-more-actions[open] summary, .host-more-actions summary:hover { background:#eeecff; color:var(--green); }
#host-view .page-actions > .host-more-actions { align-self:stretch; }
#host-view .page-actions > .host-more-actions summary { height:100%; }
#host-view.preparing-shift .host-more-actions { grid-column:1 / -1; justify-self:end; }
.host-more-actions > div, .language-choices {
  position:absolute; inset-inline-end:0; top:calc(100% + 6px); z-index:12;
  display:grid; gap:6px; min-width:100%; width:max-content; max-width:calc(100vw - 32px);
  padding:6px; background:white; border:1px solid var(--line); border-radius:10px;
  box-shadow:0 6px 18px #203d3620;
}
.host-more-actions button { width:100%; min-height:44px; font-size:14px; text-align:start; }
.client-privacy { padding: 10px 12px; background: #f0f1f4; border-radius: 8px; }
.client-status .queue-ahead { margin-top: 16px; padding-top: 14px; border-top: 1px solid #d1d6df; }
.client-status .queue-ahead b { display: block; font-size: 42px; line-height: 1.15; color: var(--green); }
.client-status .queue-ahead p { margin: 6px 0 0; }
@media (max-width: 720px) {
  #host-view .host-more-actions { grid-column: 1 / -1; }
  #host-view .page-heading { margin-bottom: 14px; }
  #host-view .stats { margin-bottom: 12px; }
  #host-view #floor-plan .floor-plan-body { padding-inline: 7px; }
}
.traffic-mode-control {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  background: #e8eaf2;
}
.traffic-mode-control button { min-height: 44px; padding: 6px 8px; font-size: 12px; }
.traffic-mode-control button[aria-pressed="true"] { background: var(--green); color: white; }
#automatic-mode[data-mode="extreme"] { background: #fff0da; color: #784719; }
.day-history { margin: 12px 0; }
.day-history summary { padding: 4px 12px; border: 1px solid var(--line); border-radius: 8px; font-weight: 700; }
.day-history-row { display: flex; gap: 8px; margin-top: 8px; }
.day-charts > section { margin: 14px 0; padding: 12px; background: #f0f1f4; border-radius: 10px; }
.day-charts h3 { margin: 0 0 10px; }
.chart-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 8px; margin: 8px 0; font-size: 13px; }
.chart-bar { display: grid; grid-template-columns: minmax(0, 1fr) 36px; align-items: center; gap: 5px; }
.chart-fill { height: 9px; background: var(--green); border-radius: 4px; }
.chart-fill.series-1 { background: #a36b24; }
.service-confirmation { padding: 22px; }
.service-confirmation dl { margin: 16px 0; }
.service-confirmation dl div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.service-confirmation dd { margin: 0; font-size: 20px; font-weight: 700; }
.service-confirmation p { font-size: 14px; }
.service-shortcuts { display:flex; flex-wrap:wrap; gap:8px; }
.service-shortcuts:empty { display:none; }
.clear-waitlist { margin:0 0 16px; }
.floor-plan-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr));
  gap: 8px;
  margin-top: 12px;
}
.floor-plan-actions > button {
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 8px;
  font-size: 13px;
}
@media (max-width: 600px) {
  .floor-plan-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.schedule-dialog { padding: 20px; max-height: 92dvh; }
.schedule-dialog fieldset {
  min-width: 0;
  margin: 16px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.schedule-dialog legend { padding: 0 5px; font-size: 14px; font-weight: 700; }
.schedule-dialog label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(105px, 40%);
  align-items: center;
  margin: 0;
  padding: 5px 0;
}
.schedule-dialog input[type="time"] {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 6px;
  font-size: 16px;
  appearance: none;
}
.schedule-dialog input[type="time"] { height: 44px; text-align: center; }
.schedule-dialog input[type="time"]::-webkit-date-and-time-value {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  margin: 0;
}
.schedule-dialog .schedule-exception { background: #f6f7f2; }
.schedule-dialog .schedule-exception p { margin: 0 0 6px; }
.schedule-dialog .form-error:empty { display: none; }
.schedule-dialog .dialog-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 720px) {
  #host-view .page-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #host-view .page-actions > button { width: 100%; padding-inline: 8px; }
}
.mode-details{margin-top:12px;border-top:1px solid var(--line);padding-top:6px;font-size:12px;color:var(--muted)}
.mode-details summary{font-size:12px;min-height:30px;line-height:30px}
.mode-details p{margin:8px 0}
.settings-dialog{width:min(760px,94vw);max-height:88vh;overflow:auto;padding:24px}
dialog.day-panel{width:min(1040px,94vw);max-height:90vh;overflow:auto;margin:auto;padding:28px}
dialog.day-panel .service-top label{margin:0 0 0 auto}
.floor-area{min-width:0}
.server-pending{color:#875b21!important;font-weight:600}
.service-panel { background:#fff; border:1px solid var(--line); border-radius:12px; padding:24px; margin:0 0 30px; }
.service-top { display:flex; align-items:center; justify-content:space-between; gap:18px; }
.service-top .eyebrow { margin-bottom:8px; }
.service-top h2 { font-family:Georgia,serif; font-size:25px; font-weight:400; }
.service-top button { font-size:12px; }
.server-totals { display:grid; grid-template-columns:repeat(auto-fit,minmax(155px,1fr)); gap:12px; margin:20px 0; }
.server-total { border:1px solid #e2e6db; background:#f7f8f1; border-radius:8px; padding:15px; display:flex; flex-direction:column; gap:7px; }
.server-total b { font-size:13px; overflow-wrap:anywhere; }
.server-total>span { font-size:10px; color:var(--muted); }
.server-total strong { font-size:27px; font-weight:500; margin:5px 0; }
.server-total strong small { font-size:10px; font-weight:400; }
.service-controls { display:flex; align-items:flex-end; gap:15px; flex-wrap:wrap; }
.service-mode { display:flex; padding:4px; background:#edf0e7; border-radius:8px; gap:4px; }
.service-mode button { background:transparent; font-size:12px; min-width:85px; }
.service-mode button.selected { background:var(--green); color:white; }
.service-controls label { margin:0; font-size:11px; }
.service-controls input { width:170px; }
.service-controls>.primary { margin-left:auto; font-size:12px; }
.extra-search { display:flex; flex-direction:row; align-items:center; gap:9px; margin-top:18px; font-size:11px; font-weight:400; }
.extra-search input { width:17px; min-height:17px; height:17px; accent-color:var(--green); }
.shift-history { border-top:1px solid var(--line); margin-top:14px; padding-top:8px; font-size:11px; color:var(--muted); }
.shift-history p { line-height:1.8; }
.shift-editor { width:min(1050px,96vw); max-height:92vh; padding:28px; overflow:auto; }
.shift-fields { display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:15px; margin:20px 0 25px; }
.shift-fields label { margin-top:0; }
.shift-editor-columns { display:grid; grid-template-columns:1fr 1fr; gap:30px; }
.shift-editor h3 { margin:0 0 15px; font-size:15px; }
.roster-row { display:grid; grid-template-columns:25px 1fr 130px; align-items:end; gap:10px; margin-bottom:13px; }
.roster-row b { padding-bottom:15px; font-size:12px; color:var(--muted); }
.roster-row label { margin-top:0; font-size:10px; }
.roster-row input,.roster-row select { font-size:12px; }
.section-paint-map { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; padding:15px 0; }
.section-paint-map>div { display:flex; flex-direction:column; gap:7px; }
.section-paint-map button { display:flex; flex-direction:column; align-items:center; gap:3px; min-height:49px; padding:6px; border:2px solid var(--section-color); border-radius:7px; background:#fafaf6; color:var(--green); }
.section-paint-map button small { color:var(--section-color); font-size:9px; font-weight:500; }
.section-legend { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 15px; }
.section-legend span { font-size:10px; border-left:4px solid var(--section-color); padding-left:7px; }
.shift-editor .dialog-actions .primary { width:100%; }
.form-error { font-size:12px; color:#9a3327; min-height:20px; }
.room-legend { display:flex; flex-wrap:wrap; gap:12px; font-size:10px; margin:0 0 20px; color:var(--muted); }
.room-legend span { display:flex; align-items:center; gap:6px; }
.room-legend span:before { content:''; display:block; width:10px; height:10px; border-radius:50%; background:#c6cdc3; }
.room-legend .free:before { background:#5e9157; }
.room-legend .reserved:before { background:#d7b74b; }
.room-legend .occupied:before { background:#bd6455; }
.floor-table { min-height:125px; }
.floor-availability { font-size:9px; font-weight:700; }
.floor-section { font-size:8px; font-weight:400; color:var(--muted); }
.floor-table.room-free { background:#eaf3e5; border-color:#b9cfaf; }
.floor-table.room-free .tabletop { background:#caddc0; border-color:#9ab78a; }
.floor-table.room-reserved { background:#fff4d1; border-color:#d6bb64; }
.floor-table.room-reserved .tabletop { background:#ebd28d; border-color:#ccac48; color:#634b12; }
.floor-table.room-occupied { background:#f8e3df; border-color:#d5a093; }
.floor-table.room-occupied .tabletop { background:#e6bbb0; border-color:#c78e7f; color:#6b2e22; }
.floor-table.room-unknown { background:#eceee9; border-color:#d2d6cf; }
.floor-table.chosen { box-shadow:0 0 0 2px #305348; }
.floor-table.chosen .tabletop { color:var(--green); }
.group-assignment { font-size:11px; color:#536b51; margin:14px 0 0; line-height:1.7; }
.group-assignment.unlinked { padding:9px 12px; border-radius:7px; background:#fff0dd; color:#8b481c; }
.table-info { padding:17px; border:1px solid var(--line); background:#f5f4ed; border-radius:9px; margin-top:15px; }
.table-info b { font-size:13px; }
.table-info p { font-size:12px; }
.table-info button { font-size:12px; }
#rotation-owner-label { max-width:400px; font-size:12px; }
#quick-call { margin:10px 0 20px; }
#quick-call button { font-size:13px; }
.skip-server-button { margin:8px 0 0; display:block; }
@media(max-width:720px) {
  .service-panel { padding:18px; }
  .service-top { align-items:flex-start; flex-direction:column; gap:12px; }
  .service-top h2 { font-size:23px; }
  .server-totals { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .server-total { padding:12px; }
  .server-total strong { font-size:25px; }
  .service-controls { gap:12px; }
  .service-controls>.primary { width:100%; margin:0; }
  .service-mode button { min-width:65px; padding:8px 10px; }
  .service-controls input { width:135px; }
  .shift-editor { padding:18px; }
  .shift-editor-columns { grid-template-columns:1fr; gap:25px; }
  .shift-fields { grid-template-columns:1fr 1fr; }
  .roster-row { grid-template-columns:20px 1fr 105px; gap:7px; }
  .roster-row input,.roster-row select { padding:9px; }
  .floor-availability { font-size:8px; }
  .floor-section { font-size:8px; }
}
.traffic-settings { margin:20px 0; border-top:1px solid #ddd; padding-top:16px; }
.traffic-settings summary { cursor:pointer; font-weight:600; }
.traffic-rule {
  min-width: 0;
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f4f6f0;
}
.traffic-rule-busy { background: #faf2e6; }
.traffic-rule legend { padding: 0 5px; font-weight: 700; }
.traffic-rule p { margin: 0 0 8px; }
.traffic-rule label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 5px 0;
  font-size: 14px;
}
.traffic-rule input { width: 100%; min-width: 0; padding-inline: 6px; text-align: center; }
.traffic-settings form button { margin-top: 8px; }
.traffic-settings [role="alert"]:empty { display: none; }
#automatic-mode { border-radius:12px; padding:18px; background:#e8eaf2; }
#section-pauses { display:flex; flex-wrap:wrap; gap:10px; }
#section-pauses [data-paused="true"] { background:#e7e7e7; }
.floor-table.room-paused { background:#e6e7e8; border-color:#8b8e91; }
.room-legend .paused { color:#666; }
#traffic-error { color:#a23526; }
.service-panel.test-lab { background:#f2f3f9; }
.test-lab summary { cursor:pointer; }
.lab-scenario-options {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-block:14px 10px;
}
.lab-scenario-options button.secondary {
  display:grid;
  align-content:center;
  justify-items:start;
  gap:5px;
  min-height:80px;
  padding:12px;
  text-align:start;
  font-size:clamp(15px,4vw,18px);
}
.lab-scenario-options [data-scenario="normal"].secondary { background:#e7ebff; border-color:#c6d0fa; color:#29378d; }
.lab-scenario-options [data-scenario="extreme"].secondary { background:#903d25; border-color:#903d25; color:#fff; }
.lab-scenario-options small { font-size:13px; font-weight:550; }
.lab-scenario-footer { display:flex; align-items:center; flex-wrap:wrap; gap:8px 12px; }
.lab-live { margin-top:12px; padding-top:10px; border-top:1px solid var(--line); }
.lab-scenarios { display:flex; flex-wrap:wrap; gap:10px; margin-top:18px; }
.waiting-reason { color:#6c5930; background:#f7f3e8; border-radius:8px; padding:12px; }
.workload-warning { border-left:4px solid #bb7c35; background:#fff4df; padding:16px; line-height:1.7; }
.workload-warning b { display:block; font-size:11px; }
.move-dialog { width:min(650px,94vw); }
.floor-table.room-cleanup { background:#f4dfbf; border-color:#ab7932; }
.room-legend .cleanup { color:#ab7932; }
.floor-plan-heading { padding:18px; border-bottom:1px solid #d8ddcf; }
.floor-plan-heading h3 { margin:0; font-size:16px; }
.floor-plan-footer { border-top:1px solid #d8ddcf; padding-top:12px; }
.floor-owner { font-size:10px; font-weight:600; }
.table-popup { width:min(700px,95vw); max-height:90vh; padding:25px; overflow:auto; }
.table-popup::backdrop { background:rgba(25,45,38,.35); }
.table-popup p { line-height:1.7; }
.table-popup label { margin-top:16px; }
.table-popup .popup-check { display:flex; align-items:center; flex-direction:row; gap:10px; font-size:13px; }
.table-popup .popup-check input { width:20px; height:20px; min-height:20px; flex-shrink:0; }
.popup-release { border-top:1px solid var(--line); margin-top:22px; padding-top:5px; }
.popup-group-list { display:flex; flex-direction:column; gap:10px; }
.table-popup .popup-release { border:0; padding:0; margin:18px 0; }
.table-popup .popup-clean { width:100%; min-height:64px; font-size:20px; }
.table-popup .popup-next-party { width:100%; min-height:64px; font-size:18px; }
.popup-joining { background:#fbf2dc; border-left:4px solid #b78934; padding:16px; margin:20px 0; border-radius:8px; }
.popup-joining h3 { margin-top:0; }
.popup-joining article { border-top:1px solid #dfd4b6; padding:14px 0; }
.popup-joining button { width:100%; white-space:normal; }
.split-question { border:1px solid var(--line); border-radius:8px; margin:18px 0; padding:16px; }
.split-question legend { font-weight:600; line-height:1.5; }
.split-question label { display:flex; flex-direction:row; align-items:center; gap:12px; padding:10px 0; cursor:pointer; }
.split-question input { width:20px; height:20px; min-height:20px; flex-shrink:0; accent-color:var(--green); }
.split-answer { padding:12px; border-radius:8px; background:#edf0e6; }
.split-question[hidden] { display:none; }
.walk-in-banner { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px 12px; padding:12px; background:#e8eee2; border-left:5px solid #46664a; border-radius:8px; margin:12px 0 8px; }
.walk-in-banner h3 { margin:0; font-size:16px; line-height:1.4; }
.walk-in-banner p { line-height:1.6; }
.walk-in-banner[hidden] { display:none; }
.walk-in-picker { grid-column:1 / -1; min-width:0; }
.walk-in-size-heading { display:flex; justify-content:space-between; align-items:center; min-height:44px; gap:8px; }
.walk-in-size-title { font-size:13px; font-weight:650; margin:0; }
.walk-in-options { font-size:13px; align-self:start; }
.walk-in-options summary { min-height:44px; display:flex; align-items:center; cursor:pointer; }
.walk-in-options[open] { grid-column:1 / -1; }
.walk-in-options .rotation-switch { margin:0; }
.walk-in-turn-actions:not(:empty) { margin-top:8px; }
.walk-in-queue-prompt { grid-column:1 / -1; }
.walk-in-size-panel .walk-in-size-buttons {
  display:grid;
  grid-template-columns:repeat(9, minmax(44px, 1fr));
  gap:6px;
}
.walk-in-size-panel .walk-in-size-buttons[hidden] { display:none; }
.walk-in-size-buttons button { min-width:0; min-height:44px; padding:4px; }
.walk-in-size-buttons + .walk-in-size-buttons { margin-top:6px; }
@media (max-width:600px) {
  .walk-in-size-panel .walk-in-size-buttons { grid-template-columns:repeat(5,minmax(0,1fr)); }
}
.walk-in-options .rotation-switch { flex-direction:row; align-items:center; min-height:44px; cursor:pointer; }
.rotation-switch input { appearance:none; width:42px; height:24px; min-height:0; margin:0; padding:2px; border-radius:20px; background:#e1e6dd; cursor:pointer; }
.rotation-switch input::before { content:""; display:block; width:18px; height:18px; border-radius:50%; background:white; box-shadow:0 1px 3px #0003; }
.rotation-switch input:checked { background:var(--green); }
.rotation-switch input:checked::before { transform:translateX(18px); }
.walk-in-status { align-self:center; min-width:0; }
.menu-link { display:inline-flex; align-items:center; justify-content:center; min-height:48px; padding:12px 18px; border:1px solid var(--line); border-radius:8px; text-decoration:none; margin:12px 0; }
.queue-qr-dialog { text-align:center; }
.queue-qr-dialog .service-top { text-align:left; }
.queue-qr-picture { background:white; padding:8px; margin:12px auto; max-width:320px; }
.queue-qr-picture svg { display:block; width:100%; height:auto; }
.queue-qr-dialog p { font-size:14px; line-height:1.5; }
.guest-main { max-width:520px; margin:24px auto; padding:0 16px; }
.guest-page header { flex-wrap:wrap; }
.guest-page h1 { font-size:30px; }
.guest-page input,.guest-page select { font-size:16px; }
.guest-position { display:block; font-size:38px; }
.initial-occupancy-dialog { width:min(760px,94vw); max-height:92dvh; overflow-y:auto; }
.initial-occupancy-dialog .real-floor { min-width:0; }
.initial-occupancy-map button { border:2px solid #637a6c; color:var(--green); background:#f7f8f3; min-height:0; width:100%; height:100%; }
.initial-occupancy-map button[aria-pressed=true] { background:#203d36; color:white; }
.initial-occupancy-map button:disabled { opacity:.3; }
.initial-entry { display:grid; grid-template-columns:70px minmax(60px,1fr) minmax(120px,2fr); align-items:center; gap:10px; padding:12px 0; border-bottom:1px solid var(--line); }
.initial-entry label { margin:0; }
.initial-occupancy-dialog .dialog-actions { position:sticky; bottom:0; background:white; padding:10px 0; }
#notice.notice-important:not(:empty) {
  width:min(480px, calc(100vw - 32px));
  padding:16px 18px;
  font-size:16px;
  font-weight:600;
  line-height:1.45;
  bottom:max(20px, env(safe-area-inset-bottom));
}
.walk-in-queue-prompt { margin-top:8px; }
.walk-in-queue-prompt p { margin:0 0 10px; }
.walk-in-queue-prompt button { min-height:44px; }
#floor-plan .plan-scroll, .walk-in-status { scroll-margin-top:12px; }
.floor-table.walk-in-muted { opacity:.55; }
.floor-table.walk-in-muted.room-free { background:#e8eaf2; border-color:#cbd0df; }
.floor-table.walk-in-current { outline:3px solid #245635; outline-offset:-3px; }
#floor-plan .floor-table.walk-in-current.room-free { background:#c9e5ae; }
#floor-plan .real-floor .plan-wedge > .floor-table:not(:focus-visible) { outline:none; }
#floor-plan .plan-wedge:has(.floor-table.chosen) .irregular-table polygon { stroke:#305348; }
#floor-plan .plan-wedge:has(.floor-table:is(.join-picking,.join-drop-target)) .irregular-table polygon { stroke:#c57732; }
#floor-plan .plan-wedge:has(.walk-in-current.room-free) .irregular-table polygon { fill:#c9e5ae; stroke-width:8; }
#notice { pointer-events:none; }
.demo-erase { width:100%; margin-top:10px; }
#erase-feedback:empty, #erase-error:empty { display:none; }
.portfolio-links { display:flex; align-items:center; flex-wrap:wrap; gap:4px 18px; }
.portfolio-links a { display:inline-flex; align-items:center; min-height:44px; font-size:14px; text-underline-offset:3px; }
.portfolio-bar { justify-content:space-between; padding:4px 4%; background:#edf0f4; border-bottom:1px solid var(--line); }
.portfolio-bar a:last-child { background:var(--green); color:white; border-radius:8px; padding:0 12px; text-decoration:none; font-weight:600; }
.portfolio-bar a:last-child:hover { background:#30554b; }
@media(max-width:430px) {
  .portfolio-bar { gap:4px 8px; }
  .portfolio-bar a { font-size:12px; }
  .portfolio-bar a:last-child { padding:0 8px; }
}
.walk-in-join-suggestions { padding:12px 16px; background:#e8eee2; }
.walk-in-join-suggestions h4 { margin:0 0 8px; }
.walk-in-join-choices { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:8px; }
.walk-in-join-choices button { min-height:44px; padding:6px 10px; }
.walk-in-join-choices button[aria-pressed="true"] { border-color:#46664a; background:#d7e3cb; }
#walk-in-form { padding:16px; background:#eef0f4; border-radius:8px; margin-top:18px; }
#walk-in-form button { width:100%; margin-top:12px; }
.move-mini-map { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.move-mini-map>div { display:flex; flex-direction:column; gap:8px; }
.move-table { width:100%; min-height:58px; padding:8px; border:1px solid #c8d4bd; background:#eaf1e3; }
.move-table b,.move-table small { display:block; }
.move-table small { margin-top:4px; }
.move-table.unavailable { background:#eceee9; border-color:#ddd; }
.move-table[aria-pressed=true] { background:#203d36; color:white; outline:3px solid #d67440; }
.move-join-choices { display:flex; gap:10px; }
.move-join-choices .move-table.available:not([aria-pressed=true]) { background:#f3f4f6; border-color:var(--line); }
.presence-note { font-size:13px; color:var(--muted); }
.join-toolbar { margin-top:14px; display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.join-toolbar p { width:100%; margin:0; font-size:13px; line-height:1.6; }
.join-toolbar [hidden] { display:none; }
.floor-columns { position:relative; }
.floor-table { position:relative; user-select:none; }
.join-grip { position:absolute; top:3px; right:5px; font-size:20px; padding:5px; touch-action:none; cursor:grab; border-radius:5px; background:#ffffffb8; }
.floor-table.assembled { border-color:#417f8f; }
.floor-table.join-picking { outline:4px solid #c57732; }
.floor-table.join-drop-target { outline:5px solid #c57732; }
.assembly-label { color:#285b68!important; font-weight:700!important; }
.join-links { position:absolute; left:0; top:0; pointer-events:none; z-index:2; overflow:visible; }
.join-links line { stroke:#285b68; stroke-width:4; stroke-dasharray:7 5; }
.join-chain { position:absolute; z-index:3; transform:translate(-50%,-50%); width:42px; min-height:42px; padding:4px; border:2px solid #285b68; background:white; box-shadow:0 1px 5px #203d3650; }
.join-drag-ghost { position:fixed; z-index:9999; pointer-events:none; padding:12px; background:#203d36; color:white; border-radius:8px; }

.floor-reservation{font-weight:700;overflow-wrap:anywhere}.floor-large-warning:not(:empty){display:block;background:#fff2ce;color:#604611;border-radius:6px;padding:6px;font-size:.82rem;line-height:1.35}

.join-toolbar.selecting{position:fixed;bottom:12px;left:50%;transform:translateX(-50%);z-index:20;width:min(680px,calc(100vw - 32px));padding:14px;background:white;border:2px solid #285b68;border-radius:12px;box-shadow:0 3px 18px #0003}.popup-joining button{margin:6px 8px 6px 0}

.distribution-popup{width:min(100% - 24px, 560px);overflow-x:hidden}
.distribution-header{display:flex;justify-content:space-between;align-items:center;gap:8px}
.distribution-header h2{margin:0}
.distribution-consent,.shift-recovery{background:#f4f6f0;border-radius:10px;padding:12px}
.shift-recovery p{margin:0 0 8px}
.shift-recovery{margin-block:12px}
.distribution-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(90px,1fr);gap:6px 10px;padding:10px;margin-bottom:8px;border:1px solid var(--line);border-radius:8px}
.distribution-row label{min-width:0;margin:0}
.distribution-popup select{box-sizing:border-box;width:100%;min-width:0;font-size:16px}
.distribution-row [data-dist-owner],.distribution-row [data-dist-server]{grid-column:1/-1}
.distribution-popup [hidden],.shift-recovery[hidden],.shift-recovery [hidden],.undo-clear-tables[hidden]{display:none}
.distribution-bottom{margin-top:16px;padding-top:10px;border-top:1px solid var(--line)}
.distribution-bottom p{margin:0 0 8px}
.distribution-bottom .form-error:empty{display:none}
.distribution-bottom button{width:100%}
.distribution-adjacency{display:flex;align-items:center;gap:8px;margin:8px 0}
.distribution-adjacency input{width:20px;min-width:20px;min-height:20px}
.undo-clear-tables{margin:12px 16px}



/* A marca da seção permanece legível, mesmo fora da vez. */
#floor-section-key { margin-bottom: 8px; }
#floor-section-key[hidden] { display: none; }
#floor-section-key summary { font-size: 12px; font-weight: 650; min-height: 36px; }
.section-key-items { display: flex; flex-wrap: wrap; gap: 5px 10px; padding-bottom: 6px; }
.section-key-items small { width: 100%; font-size: 11px; }
.section-key-item { font-size: 11px; border-left: 3px solid var(--section-color); padding: 2px 5px; }
.floor-table.section-marked{border-top:5px solid var(--section-color)}.floor-table .floor-section{display:block;border:2px solid var(--section-color,#777);color:var(--section-color,#333);background:#fff;border-radius:5px;padding:5px 7px;font-size:11px;font-weight:700;line-height:1.35;margin:6px 0}.floor-table.walk-in-muted{opacity:1}.floor-table.walk-in-muted>:not(.floor-section){opacity:.55}.people-choice{border:0;padding:0;margin:16px 0}.people-choice legend{font-size:15px;font-weight:600;margin-bottom:12px}.people-buttons{display:grid;grid-template-columns:repeat(auto-fit,minmax(56px,1fr));gap:10px}#walk-in-form .people-buttons button{width:100%;min-height:56px;margin:0;font-size:22px;padding:8px}.people-buttons button[aria-pressed=true]{background:#203d36;color:white;outline:3px solid #c57732}

#floor-plan{overflow:visible}

.day-panel{background:white;border:1px solid var(--line);border-radius:12px;padding:24px;margin-bottom:30px}.day-panel h2{font-family:Georgia,serif;font-weight:400;font-size:25px}.day-panel label{font-size:12px}.day-panel>p{font-size:13px;line-height:1.6}.day-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}.day-metrics>div{background:#f0f1f4;border:1px solid #dce0e6;border-radius:8px;padding:16px}.day-metrics span{display:block;font-size:12px;color:var(--muted)}.day-metrics strong{display:block;font-size:30px;margin-top:8px}.day-table-wrap{overflow:auto}.day-table{width:100%;border-collapse:collapse;min-width:490px;text-align:left;font-size:14px}.day-table caption{text-align:left;font-weight:700;padding:12px 0}.day-table th,.day-table td{padding:12px 10px;border-bottom:1px solid #e1e4ea}.day-table thead{background:#f3f4f6}.day-table td{font-variant-numeric:tabular-nums}.day-table small{display:block;color:var(--muted);font-weight:400;font-size:11px;margin-top:5px}@media(max-width:600px){.day-panel{padding:16px}.day-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.day-metrics>div{padding:12px}}

/* Computador de teste: ações e duas vistas no mesmo espaço. */
@media(min-width:1180px){
  #host-view{max-width:1680px;padding:26px 28px 42px}
  header{height:76px;max-width:1624px;margin:0 auto;padding:0 28px}
  footer{max-width:1624px;margin:0 auto;padding:18px 28px}
  #host-view .page-heading{margin-bottom:18px}
  #host-view h1{font-family:inherit;font-size:30px;font-weight:650;letter-spacing:-1px;margin-bottom:6px}
  #host-view .eyebrow{margin-bottom:7px}
  #host-view .stats{margin-bottom:16px;border-radius:10px}
  #host-view .stats>div{padding:13px 20px;display:grid;grid-template-columns:1fr auto;align-items:center;gap:5px 14px}
  #host-view .stats strong{grid-column:2;grid-row:1/3;font-size:28px;line-height:1.3}
  #host-view .stats small{grid-column:1}
  #host-view .operational-panel{padding:18px 20px;margin-bottom:20px}
  #host-view .service-top h2{font-family:inherit;font-size:19px;font-weight:600;letter-spacing:-.3px}
  #host-view #shift-help{margin:7px 0 12px}
  #host-view .server-totals{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:12px 0 16px}
  #host-view .server-total{padding:10px 12px;gap:4px;display:grid;grid-template-columns:1fr auto;align-items:center}
  #host-view .server-total b{font-size:12px}
  #host-view .server-total>span{font-size:10px;grid-column:1}
  #host-view .server-total strong{font-size:23px;grid-column:2;grid-row:1/3;margin:0;text-align:right}
  #host-view .server-total strong small{display:block;font-size:9px}
  #host-view .server-pending{grid-column:1/-1!important}
  #host-view #automatic-mode{padding:12px 14px;font-size:13px;border-radius:7px}
  #host-view #automatic-mode[data-mode=extreme]{background:#fff1d9;color:#83551e}
  #host-view .service-controls{align-items:center}
  #host-view .service-controls label{flex-direction:row;align-items:center;gap:10px}
  #host-view .service-controls input{width:140px;min-height:42px}
  #host-view .service-controls>.primary{min-height:42px}
  #host-view .test-lab{padding:8px 18px;border-width:1px;margin-bottom:14px}
  #host-view .test-lab summary{font-size:12px}
  #host-view .test-lab[open]{padding:18px}
  #host-view .workspace{grid-template-columns:minmax(0,1.35fr) minmax(400px,1fr);gap:20px;align-items:start}
  #host-view .queue-area{min-width:0;position:sticky;top:16px;border:1px solid var(--line);border-radius:12px;background:#fff;padding:18px}
  #host-view .queue-area .section-heading{margin-bottom:12px}
  #host-view .queue-area h2{font-size:19px}
  #host-view .queue-area #order-hint{font-size:10px}
  #host-view .queue-area .filters{gap:4px;margin-bottom:12px}
  #host-view .queue-area .filters button{padding:8px 10px;font-size:11px;min-height:38px}
  #host-view #groups{max-height:calc(100vh - 160px);overflow:auto;scrollbar-gutter:stable;padding-right:5px;overscroll-behavior:contain}
  #host-view .group{padding:16px;margin-bottom:10px;background:#fafbf7}
  #host-view .group h3{font-size:15px}
  #host-view .group-actions{gap:6px;margin-top:12px}
  #host-view .group-actions button{padding:8px 11px;font-size:11px;min-height:40px}
  #host-view .group .meta{font-size:11px}
  #host-view .group .presence-note,#host-view .group .split-answer,#host-view .group .waiting-reason{font-size:12px}
  #host-view .group-section-title{margin:16px 0 10px}
  #host-view .table-choice{padding:0;margin:0}
  #host-view #floor-plan{margin-bottom:12px;background:#f0f1e9}
  #host-view .floor-plan-heading{padding:16px}
  #host-view .floor-plan-heading h3{font-size:18px}
  #host-view .join-toolbar{gap:7px;margin-top:10px}
  #host-view .join-toolbar p{font-size:11px;color:var(--muted)}
  #host-view .join-toolbar button{font-size:11px;min-height:38px;padding:8px 12px}
  #host-view .floor-plan-body{padding:12px 14px}
  #host-view .floor-caption{margin-bottom:12px}
  #host-view .room-legend{gap:8px 12px;margin-bottom:12px}
  #host-view .floor-columns{gap:12px}
  #host-view .floor-table{min-height:132px;padding:9px 5px;gap:4px;margin-bottom:12px}
  #host-view .floor-table .floor-section{font-size:9px;padding:3px 5px;margin:2px 0}
  #host-view .floor-owner{font-size:10px}
  #host-view .floor-recommended{font-size:10px}
  #host-view .floor-symbol{width:68px}
  #host-view .floor-large-warning:not(:empty){font-size:10px}
  #host-view .floor-reservation{font-size:10px}
  #host-view .floor-joins>span{width:100%;font-size:10px}
  #host-view .floor-joins button{min-height:42px;font-size:12px}
  #host-view .walk-in-banner{margin:0 0 12px;padding:14px}
  #host-view .walk-in-banner h3{font-size:17px}
  #host-view .walk-in-banner p,#host-view .walk-in-banner small{font-size:11px;margin:5px 0}
  #host-view .workspace aside{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:20px;border-top:1px solid var(--line);padding-top:16px}
  #host-view .guide{background:transparent;padding:0;font-size:12px}
  #host-view .activity{margin:0}
  #host-view .activity h3{margin:0 0 10px}
  #host-view .activity ol{margin:8px 0}
  #host-view .activity button{width:auto}
  #host-view .local-note{grid-column:1/-1;margin:0}
}
@media(max-width:1179px){
  .workspace{grid-template-columns:1fr}
  .workspace .floor-area{grid-row:1}
  .page-actions{width:100%}
  .page-actions button{flex:1}
}
@media(max-width:600px){
  dialog.day-panel{padding:18px}
  dialog.day-panel .service-top{display:grid;grid-template-columns:1fr auto;width:100%}
  dialog.day-panel .service-top label{grid-column:1/-1;grid-row:2;margin:0}
  .shift-actions{gap:6px}
  .shift-actions button{flex:1}
}

@media(min-width:1180px){
  #host-view .test-lab:not([open]){display:none}
  #host-view .operational-panel>.service-top .eyebrow{display:none}
  #host-view .operational-panel{padding:14px 18px}
  #host-view #shift-help{margin:5px 0 8px;font-size:11px}
  #host-view .server-totals{margin:8px 0 12px}
  #host-view .mode-details{margin-top:8px;padding-top:3px}
  #host-view .mode-details summary{min-height:24px;line-height:24px;font-size:11px}
}

/* Planta proporcional ao desenho de Leo. Rolagem lateral preserva alvos de toque. */
.plan-scroll{max-width:100%;overflow-x:auto;padding:8px 4px 14px;overscroll-behavior-x:contain}
.real-floor{position:relative;display:block!important;min-width:640px;width:100%;aspect-ratio:864/884;margin:0!important;padding:0!important;background:#fffef9;border-radius:6px}
.room-walls{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:1;overflow:visible}
.room-walls line{stroke:#26362e;stroke-width:5;stroke-linecap:round}
.real-floor .plan-slot{position:absolute;display:block;z-index:2;margin:0;min-width:0}
.real-floor .plan-slot>button,#host-view .real-floor .plan-slot>.floor-table{width:100%;height:100%;min-height:0;margin:0;padding:5px 3px;gap:2px;justify-content:center;align-items:center;display:flex;flex-direction:column;border-radius:5px;overflow:hidden;position:relative}
.real-floor .plan-round>button,#host-view .real-floor .plan-round>.floor-table{border-radius:50%}
.real-floor .plan-wedge>button,#host-view .real-floor .plan-wedge>.floor-table{clip-path:polygon(0 72%,92% 0,98% 72%,60% 100%);padding-top:30%}
#floor-plan .real-floor .floor-symbol{width:auto;max-width:100%;display:block}
#floor-plan .real-floor .chair-row{display:none}
#floor-plan .real-floor .tabletop{min-height:0;border:0;background:transparent;color:inherit;border-radius:0;font-size:24px;line-height:1.1}
#floor-plan .real-floor .floor-recommended,#floor-plan .real-floor .floor-section{display:none}
#floor-plan .real-floor .floor-owner{font-size:9px;max-width:94%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.2}
#floor-plan .real-floor .floor-availability{font-size:8px;line-height:1.15;max-width:95%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#floor-plan .real-floor .floor-table>small:not(.assembly-label){font-size:8px;line-height:1.2}
#floor-plan .real-floor .floor-reservation{font-size:8px;line-height:1.15;max-width:94%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#floor-plan .real-floor .floor-large-warning:not(:empty){position:absolute;left:3px;top:3px;border-radius:50%;width:12px;height:12px;padding:0;font-size:0;background:#bb772b;border:2px solid white}
#floor-plan .real-floor .floor-table.section-marked{border-top-width:5px}
#floor-plan .real-floor .plan-compact .floor-table>small,#floor-plan .real-floor .plan-compact .floor-owner,#floor-plan .real-floor .plan-compact .floor-availability,#floor-plan .real-floor .plan-compact .floor-reservation{display:none}
#floor-plan .real-floor .plan-compact .tabletop{font-size:20px}
#floor-plan .real-floor .assembly-label{font-size:8px;line-height:1.1;margin:0;max-width:90%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#floor-plan .real-floor .join-grip{top:1px;right:1px;font-size:14px;padding:2px;line-height:16px;opacity:0}
#floor-plan .real-floor .floor-table:hover .join-grip,#floor-plan .real-floor .floor-table:focus-visible .join-grip{opacity:1}
#floor-plan .real-floor .floor-table.chosen{outline:3px solid #305348;outline-offset:2px;box-shadow:none}
#floor-plan .real-floor .join-chain{border-radius:50%;width:34px;height:34px;min-height:34px;font-size:15px;padding:2px}
#floor-plan .real-floor .join-links{z-index:3}
#floor-plan .real-floor .join-chain{z-index:4}
.real-floor .plan-slot>button b{font-size:20px}
.real-floor .plan-slot>button small{font-size:9px;max-width:95%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.real-floor .plan-compact>button small{display:none}
.floor-version-note{padding:12px 16px;border:1px solid #d6c99b;background:#fff6dc;border-radius:8px;font-size:12px;line-height:1.6}
@media(hover:none){#floor-plan .real-floor .join-grip{opacity:1}}
@media(min-width:1180px){#host-view .real-floor.floor-columns{gap:0}}
/* No desenho, os detalhes completos ficam no toque e no título da mesa. */
#floor-plan .real-floor .floor-symbol{flex-shrink:0}
#floor-plan .real-floor .floor-availability{display:none}
#floor-plan .real-floor .floor-table:has(.floor-owner:not(:empty))>small:not(.assembly-label){display:none}
#floor-plan .real-floor .floor-table>span:empty,#floor-plan .real-floor .floor-table>small:empty{display:none}
#floor-plan .real-floor .floor-owner,#floor-plan .real-floor .floor-reservation{flex-shrink:0}
#floor-plan .real-floor .floor-table:has(.floor-reservation:not(:empty)) .floor-owner{display:none}
#floor-plan .real-floor .plan-slot>.floor-table{padding:2px 1px}
#floor-plan .real-floor .plan-wedge>.floor-table{padding-top:28%}
#floor-plan .real-floor .floor-table.section-marked{border-top-color:var(--section-color)}
#floor-plan .real-floor .floor-large-warning:not(:empty)::before{content:'!';display:block;color:white;font-size:9px;font-weight:800;line-height:9px;text-align:center}

/* Mesa 16: contorno da seção em toda a forma, sem recortar texto ou faixa. */
.real-floor .plan-wedge>button,#floor-plan .real-floor .plan-wedge>.floor-table{clip-path:none!important;border:0!important;background:transparent!important;padding:12px 2px 2px!important;box-shadow:none}
.irregular-table{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}
.irregular-table polygon{fill:#eef0f4;stroke:var(--section-color,#477b74);stroke-width:6;stroke-linejoin:round}
.plan-wedge:has(.room-free) .irregular-table polygon{fill:#eaf3e5}
.plan-wedge:has(.room-reserved) .irregular-table polygon{fill:#fff4d1}
.plan-wedge:has(.room-occupied) .irregular-table polygon{fill:#f8e3df}
.plan-wedge:has(.room-cleanup) .irregular-table polygon{fill:#f4dfbf}
.plan-wedge:has(.room-paused) .irregular-table polygon,.plan-wedge:has(.room-unknown) .irregular-table polygon,.plan-wedge:has(.walk-in-muted.room-free) .irregular-table polygon{fill:#e8eaf2}
.plan-wedge>button{z-index:1}
#floor-plan .real-floor .plan-wedge .tabletop{font-size:26px}
#floor-plan .real-floor .plan-wedge .floor-owner{font-size:10px}
#floor-plan .real-floor .plan-compact .tabletop{font-size:22px}
.popup-joining article p{margin:6px 0;font-size:13px}
.popup-joining details{margin-top:14px;font-size:13px}
.plan-wedge:has(button:disabled) .irregular-table polygon,.plan-wedge:has(.move-table.unavailable) .irregular-table polygon{fill:#eceee9;stroke:#b9c1b7}

/* Uma faixa separada evita que o painel fixo da fila cubra o histórico. */
#host-view>.activity{margin:0 0 16px;padding:12px 16px;border:1px solid var(--line);border-radius:10px;background:white;min-width:0}
.undo-bar{display:flex;align-items:center;justify-content:space-between;gap:16px}
.undo-bar>div{min-width:0}.undo-bar span{font-size:11px;color:var(--muted)}
.undo-bar p{margin:3px 0 0;font-size:13px;overflow-wrap:anywhere}
#host-view>.activity .undo-bar button{width:auto;flex-shrink:0;min-height:44px}
#host-view>.activity details{margin-top:4px}#host-view>.activity summary{font-size:11px;min-height:28px;line-height:28px;color:var(--muted)}
#host-view>.host-help{display:block;margin-top:20px;border-top:1px solid var(--line);padding-top:12px;min-width:0}
.host-help .guide{background:transparent;padding:0}.host-help .local-note{margin-top:12px}
/* O texto ocupa a parte larga inferior direita do triângulo da mesa 16. */
.real-floor .plan-wedge>button,#floor-plan .real-floor .plan-wedge>.floor-table{padding:44% 5% 5% 40%!important}
.real-floor .plan-wedge>button b,#floor-plan .real-floor .plan-wedge .tabletop{font-size:24px}
#floor-plan .real-floor .plan-wedge .floor-owner{font-size:8px}

#floor-plan .floor-plan-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
#floor-plan .floor-zoom {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  background: transparent;
  border-color: transparent;
}
#floor-plan:not(.map-expanded) .real-floor {
  min-width: 0;
  width: min(100%, clamp(240px, calc((100svh - var(--plan-overhead, 210px)) * 864 / 884), 820px));
  margin-inline: auto !important;
}
#floor-plan .plan-scroll { overflow-y: hidden; }
#floor-plan:not(.map-expanded) .plan-scroll { overflow: clip; }
#floor-plan .floor-legend > summary { font-size: 12px; font-weight: 650; }
@media (min-width: 601px) {
  #floor-plan .floor-legend > summary { display: none; }
}
@media (max-width: 600px) {
  #host-view .walk-in-banner,
  #host-view #floor-plan { margin-inline: calc(6px - 4vw); }
  #host-view .walk-in-banner { padding: 6px 10px 8px; }
  #host-view .walk-in-picker .walk-in-size-heading { min-height: 24px; }
  #host-view .walk-in-size-buttons button { font-size: 16px; }
  #host-view #floor-plan .floor-plan-heading { padding: 0 8px 0 10px; }
  #host-view #floor-plan .floor-plan-body { padding: 0; }
  #floor-plan .floor-plan-footer { padding: 4px 10px 10px; }
  #floor-plan:not(.map-expanded) .plan-scroll {
    /* Frame the 768 × 860 region inside the 864 × 884 drawing, leaving room for focus outlines. */
    width: min(100%, max(240px, calc((100svh - var(--plan-overhead, 210px)) * 768 / 860)));
    margin-inline: auto;
    padding: 0;
    overflow: clip;
    background: #fffef9;
  }
  #floor-plan:not(.map-expanded) .real-floor {
    width: 112.5%;
    margin: -3.125% -6.25% 0 !important;
  }
}
@media (max-width: 720px) {
  #floor-plan:not(.map-expanded) .real-floor .floor-table > small,
  #floor-plan:not(.map-expanded) .real-floor .floor-owner,
  #floor-plan:not(.map-expanded) .real-floor .floor-reservation,
  #floor-plan:not(.map-expanded) .real-floor .join-grip { display: none; }
  #floor-plan:not(.map-expanded) .real-floor .floor-table .tabletop { font-size: clamp(11px, 3.5vw, 18px); }
  #floor-plan.map-expanded .real-floor .join-grip { opacity: 1; min-width: 32px; min-height: 32px; display: grid; place-items: center; }
  #floor-plan .join-chain { touch-action: manipulation; }
}

.language-picker { width: auto; min-width: 0; min-height: 44px; }
@media (max-width: 720px) {
  header:has(.language-picker) { height: auto; min-height: 83px; flex-wrap: wrap; gap: 8px; padding-block: 10px; }
  header .language-picker { font-size: 12px; padding: 6px; }
}

.roster-row { grid-template-columns: 20px minmax(0,1fr) minmax(0,1fr); }
.roster-move { grid-column: 2 / -1; display: flex; justify-content: flex-end; gap: 6px; }
.roster-move button { min-height: 44px; min-width: 44px; padding: 4px; }
.section-paint-map .plan-slot > button b,
.section-paint-map .plan-slot > button small { flex: none; line-height: 1.1; }
.section-paint-map .plan-slot > button b { font-size: 17px; }
.section-paint-map .plan-slot > button small { display: block; font-size: 9px; }

@media (max-width: 720px) {
  .shift-editor {
    width: min(96vw, 540px);
    max-height: 94dvh;
    padding: 16px;
    overflow-x: hidden;
  }
  .shift-editor .service-top { flex-direction: row; align-items: center; gap: 8px; }
  .shift-editor .service-top button { flex-shrink: 0; }
  .shift-editor .shift-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shift-editor .shift-editor-columns { grid-template-columns: minmax(0, 1fr); }
  .shift-editor label,
  .shift-editor input,
  .shift-editor select { min-width: 0; }
  .shift-editor .roster-row {
    grid-template-columns: 20px minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
  }
  .shift-editor .roster-row > b { padding: 0; align-self: end; line-height: 44px; }
  .shift-editor .roster-move { grid-column: 2 / -1; }
  .shift-editor .section-paint-map { min-width: 0; }
  .shift-editor .section-paint-map .plan-slot > button { padding: 1px; gap: 0; }
  .shift-editor .section-paint-map .plan-slot > button b { font-size: clamp(10px, 3vw, 15px); }
  .shift-editor .section-paint-map .plan-slot > button small { font-size: clamp(7px, 2vw, 9px); }
}

@media (max-width: 360px) {
  .shift-editor .shift-fields { grid-template-columns: minmax(0, 1fr); }
  .shift-editor .roster-row { grid-template-columns: 20px minmax(0, 1fr); }
  .shift-editor .roster-row label { grid-column: 2; }
  .shift-editor .roster-row > b { grid-row: 1; }
  .shift-editor .section-paint-map { aspect-ratio: 3 / 4; }
  .shift-editor .section-paint-map .plan-slot > button { border-width: 1px; }
}

#floor-plan [data-table-number] { user-select: none; -webkit-user-select: none; }

#host-view.preparing-shift :is(.stats, .activity, .workspace, .host-help, .service-controls, .mode-details, #add) {
  display: none;
}
#host-view.preparing-shift .operational-panel { max-width: 720px; }
#host-view:not(.preparing-shift) #server-totals { display: none; }
#day-balance { margin: 12px 0; }
#day-report .day-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#table-popup .real-floor.move-mini-map { min-width: 0; }
@media (max-width: 600px) {
  #day-report .day-metrics > div { padding: 8px; }
  #table-popup .move-mini-map .plan-slot > button b { font-size: clamp(11px, 3.5vw, 18px); }
  #table-popup .move-mini-map .plan-slot > button small { display: none; }
}
#day-report { max-height: 90dvh; }
#day-report > .service-top {
  position: sticky;
  top: -28px;
  z-index: 2;
  background: white;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
#day-report .service-top > button { flex-shrink:0; }
.report-section::before { content:""; display:inline-block; width:.65em; height:.65em; margin-inline-end:.35em; border-radius:50%; background:var(--section-color); }
#shift-form .dialog-actions {
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  margin-top: 12px;
  padding: 6px 0;
  border-top: 1px solid var(--line);
}
#shift-form .dialog-actions .primary { width: auto; min-height: 44px; }
@media (max-width: 720px) {
  #shift-form .dialog-actions { align-items: stretch; }
}
#shift-error { margin: 0; }
#shift-error:empty { display: none; }
.shift-editor input[type="date"] { padding-block: 0; }
.shift-editor input[type="date"]::-webkit-date-and-time-value {
  display: flex;
  align-items: center;
  height: 46px;
  margin: 0;
}
@media (max-width: 600px) {
  #day-report > .service-top { top: -18px; }
  #day-report .service-top > button { grid-column:2; grid-row:1; }
  #day-report .day-table { min-width: 0; font-size: 12px; overflow-wrap: anywhere; }
  #day-report .day-table :is(th, td) { padding: 8px 4px; }
}

.join-capacity { min-width: 0; }
.join-capacity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
  gap: 6px;
}
.join-capacity-grid label { position: relative; margin: 0; }
.join-capacity-grid input { position: absolute; opacity: 0; width: 1px; min-height: 0; }
.join-capacity-grid span {
  display: grid;
  place-items: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 16px;
}
.join-capacity-grid input:checked + span { background: var(--green); color: white; }
.join-capacity-grid input:focus-visible + span { outline: 2px solid var(--orange); }
#join-setup-form .dialog-actions {
  position: sticky;
  bottom: -1px;
  padding: 8px 0;
  background: white;
}

.shift-editor .shift-editor-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.shift-editor .shift-editor-columns h3 { margin-bottom: 4px; }
.shift-editor .shift-editor-columns h3 + p { margin: 0 0 12px; }
.shift-map-editor { min-width: 0; }
.shift-map-content { max-width: 660px; }
.shift-map-content > button { margin: 6px 6px 0 0; }
.shift-editor label { min-width: 0; }
.shift-editor input, .shift-editor select {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 48px;
  min-height: 48px;
  padding: 8px;
}
.shift-editor input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.shift-editor input[type="date"], #day-date { appearance: none; -webkit-appearance: none; }
#day-report .service-top label { min-width: 0; max-width: 100%; }
.roster-section { position: relative; }
.roster-section::after {
  content: "";
  position: absolute;
  left: 10px;
  bottom: 19px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--section-color);
  pointer-events: none;
}
.shift-editor .roster-section select { padding-left: 26px; }
.shift-editor .roster { container-type: inline-size; }
.shift-editor .roster .roster-row {
  grid-template-columns: 20px minmax(0, 1fr) minmax(98px, .65fr) auto;
  align-items: end;
  gap: 6px;
}
.shift-editor .roster .roster-row label { grid-column: auto; }
.shift-editor .roster .roster-move { grid-column: auto; }
.shift-editor .roster-move button { height: 48px; }
@container (max-width: 360px) {
  .shift-editor .roster .roster-row {
    grid-template-columns: 16px minmax(0, 1fr) auto;
  }
  .shift-editor .roster .roster-row label:first-of-type { grid-column: 2 / -1; }
  .shift-editor .roster .roster-section { grid-column: 2; }
}
@media (max-width: 720px) {
  .shift-editor .shift-date-field { grid-column: 1 / -1; }
  .shift-editor .shift-editor-columns { grid-template-columns: minmax(0, 1fr); }
  .shift-editor .roster-row { align-items: end; }
  dialog input:not([type="checkbox"]):not([type="radio"]), dialog select { font-size: 16px; }
}

/* Acabamento da demo: ações com dimensões consistentes, sem alterar o mapa. */
#host-view .page-actions > button,
#host-view .floor-plan-actions > button,
#host-view .shift-actions > button,
#host-view .group-actions > button {
  min-height:48px; padding:10px 14px; line-height:1.25; font-size:14px;
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  white-space:normal; overflow-wrap:anywhere;
}
#host-view.preparing-shift .shift-start-action { min-height:64px; font-size:18px; }
.table-popup > .service-top { flex-direction:row; align-items:center; gap:12px; }
.table-popup > .service-top h2 { min-width:0; margin:0; }
.table-popup > .service-top button { flex-shrink:0; min-height:48px; }
.table-popup .group-actions > button { min-height:48px; }
.dialog-actions > button { min-height:48px; line-height:1.3; }
.language-picker { position:relative; margin:0; padding:0; font-size:14px; max-width:100%; }
.language-picker summary, .language-choices button {
  display:flex; align-items:center; gap:9px; min-height:44px; padding:8px 12px;
  color:var(--green); background:white; border-radius:8px; cursor:pointer; text-align:start;
}
.language-picker summary { border:1px solid var(--line); list-style:none; }
.language-picker summary::-webkit-details-marker { display:none; }
.language-choices button[aria-current="true"] { background:#e8eaf2; }
.language-flag { width:24px; height:16px; flex:none; border-radius:2px; }
@media (max-width:720px) {
  .host-more-actions > div, header nav ~ .language-picker .language-choices { inset-inline:auto; inset-inline-start:0; }
}
.map-help { padding:0 16px 14px; font-size:12px; color:var(--muted); }
.map-help summary { cursor:pointer; min-height:44px; display:flex; align-items:center; }
.map-help p { margin:0; line-height:1.5; }
.map-help[hidden],.join-toolbar p[hidden] { display:none; }
.client-priority { padding:12px; border-left:3px solid #af8937; border-radius:6px; background:#faf4df; font-size:14px; line-height:1.5; }
.client-privacy { font-size:13px; margin:16px 0; }
.client-privacy p { margin:0; line-height:1.5; }
.client-privacy summary { min-height:44px; display:flex; align-items:center; cursor:pointer; text-decoration:underline; font-weight:600; }
.client-privacy details[open] p + p { margin-top:10px; }
.guest-page #guest-form > button { width:100%; min-height:52px; }
@media (max-width:720px) {
  #host-view .group-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  #host-view .group-actions > .primary { grid-column:1/-1; }
  #host-view .group-actions > button { width:100%; }
  #host-view .page-actions > button { min-height:56px; }
  .table-popup { padding:18px; }
}


/* The diamond rotates behind the content, keeping the number and capacity centered. */
.real-floor .plan-diamond { transform: rotate(45deg); }
.real-floor .plan-diamond > button > :is(b, small, span) { transform: rotate(-45deg); }
#floor-plan .real-floor .plan-diamond > .floor-table.section-marked {
  border-left: clamp(3px, 1.25cqi, 9px) solid var(--section-color);
}
#floor-plan .real-floor .floor-table > :is(.floor-recommended,.floor-section,.floor-owner,.floor-reservation,.floor-availability) {
  display: none;
}

.pilot-shift-history { width: min(760px, calc(100% - 24px)); max-height: 90dvh; }
.shift-history-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; margin-block: 16px; }
.shift-history-filters input, .shift-history-filters select { width: 100%; min-width: 0; }
.shift-history-navigation:not([hidden]) { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.pilot-history-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.pilot-daily-report { width: min(850px, calc(100% - 24px)); max-height: 90dvh; }
.pilot-report-metrics { display:grid; grid-template-columns:repeat(auto-fit,minmax(145px,1fr)); gap:8px; }
.pilot-report-metrics div { padding:10px; background:#f2f2fa; border-radius:8px; }
.pilot-report-metrics dd { margin:4px 0 0; font-size:1.25em; font-weight:700; }
.pilot-report-primary div { background:#eeecff; }
.pilot-report-primary dt { font-weight:700; }
.pilot-report-details { margin-block: 0 16px; }
.pilot-report-details summary { cursor:pointer; font-size:.9em; }
.pilot-report-scroll { overflow:auto; margin-bottom:16px; }
.pilot-daily-report table { width:100%; border-collapse:collapse; }
.pilot-daily-report :is(th,td) { text-align:left; padding:7px; border-bottom:1px solid #dce0ef; }
.report-bar.seated { background:#cee5db; }

.pilot-chart-legend { display:flex; flex-wrap:wrap; gap:16px; margin-block:12px; }
.pilot-chart-legend span::before { content:""; display:inline-block; width:.8em; height:.8em; margin-inline-end:6px; border-radius:3px; background:#5148c8; }
.pilot-vertical-chart { display:grid; grid-template-columns:repeat(var(--hours),minmax(48px,1fr)); gap:4px; min-width:max-content; padding:24px 4px 4px; }
.pilot-chart-hour { text-align:center; font-size:12px; }
.pilot-chart-bars { display:flex; gap:3px; align-items:end; justify-content:center; height:160px; border-bottom:1px solid #bec2d4; margin-bottom:6px; background:repeating-linear-gradient(to top,transparent 0 39px,#e6e8f1 39px 40px); }
.pilot-chart-bars span { position:relative; width:34%; height:var(--height); background:#5148c8; border-radius:4px 4px 0 0; }
.pilot-chart-bars .seated { background:#288367; }
.pilot-chart-bars b { position:absolute; bottom:100%; left:50%; transform:translateX(-50%); color:#252940; }
.pilot-demand { margin-block-start: 24px; }
.pilot-demand-bar {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}
.pilot-demand-bar:focus-visible { outline: 2px solid #5148c8; outline-offset: -2px; }
.pilot-chart-bars .pilot-demand-stack {
  display: flex;
  flex-direction: column-reverse;
  width: 52%;
  background: transparent;
}
.pilot-demand-stack i { flex-basis: 0; }
.pilot-demand-stack i:last-child { border-radius: 4px 4px 0 0; }
.pilot-demand-stack .demand-historical { flex-grow: 1; }
.pilot-demand-stack .demand-seated, .pilot-chart-legend .demand-seated::before { background: #288367; }
.pilot-demand-stack .demand-called, .pilot-chart-legend .demand-called::before { background: #d99717; }
.pilot-demand-stack .demand-waiting, .pilot-chart-legend .demand-waiting::before { background: #bb434d; }
.pilot-demand-stack .demand-historical { background: #5148c8; }
.pilot-demand-detail { min-height: 1.5em; }
.pilot-daily-report [aria-pressed=true] { background:#eeecff; color:#4235aa; }

/* Keep each table number and its secondary label centered as one unit. */
#floor-plan .real-floor, #table-popup .move-mini-map { container-type: inline-size; }
#floor-plan .real-floor .floor-table .pilot-map-label,
#table-popup .move-mini-map .move-table .pilot-map-label {
  display: flex; flex: none; flex-direction: column; align-items: center; gap: 1px;
  line-height: 1; white-space: nowrap; max-width: 100%;
}
#floor-plan .real-floor .floor-table .pilot-map-label .tabletop,
#table-popup .move-mini-map .move-table .pilot-map-label b {
  display: block; padding: 0; margin: 0; line-height: 1;
  font-size: clamp(10px, 3.5cqi, 25px);
}
#floor-plan .real-floor .pilot-map-details {
  display: flex; align-items: center; justify-content: center; gap: clamp(1px, .6cqi, 5px);
}
#floor-plan .real-floor .pilot-map-initials:not(:empty) {
  display: block; padding: 2px; border-radius: 3px; line-height: 1; color: #fff;
  background: var(--section-color, #465169);
  background: color-mix(in srgb, var(--section-color, #465169) 82%, black);
  font-size: clamp(7px, 2.1cqi, 13px); font-weight: 750;
}
#floor-plan .real-floor .pilot-map-initials:empty { display: none; }
#floor-plan .real-floor .floor-table.section-marked { border-top-width: clamp(3px, 1.25cqi, 9px); }
#floor-plan .real-floor .floor-table.walk-in-current:not(.chosen, .join-member, :focus-visible) {
  outline: none;
  box-shadow: inset 0 0 0 2px #245635;
}
#floor-plan .real-floor .plan-wedge > .floor-table.walk-in-current:not(.chosen, .join-member, :focus-visible) {
  box-shadow: none;
}
@container (max-width: 410px) {
  #floor-plan .real-floor .pilot-map-details { gap: 1px; }
  #floor-plan .real-floor .pilot-map-initials:not(:empty) { padding: 1px; font-size: clamp(6px, 2cqi, 8px); }
}
#floor-plan .real-floor .floor-table .pilot-map-label small,
#table-popup .move-mini-map .move-table .pilot-map-label small {
  display: block; margin: 0; padding: 0; line-height: 1.05;
  font-size: clamp(6px, 1.55cqi, 10px);
}
#floor-plan .real-floor .floor-table .pilot-map-details small {
  font-size: clamp(8px, 2cqi, 13px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.table-seats {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin: 14px 0;
  padding: 16px 8px;
  background: #f5f6fa;
  border-radius: 10px;
  text-align: center;
}
.table-seats-diagram {
  --tabletop-width: 116px;
  --tabletop-height: 68px;
  --chair-clearance: 8px;
  --chair-gap: clamp(6px, 2vw, 12px);
  display: grid;
  grid-template-columns: auto minmax(var(--tabletop-width), max-content) auto;
  grid-template-rows: auto var(--tabletop-height) auto;
  grid-template-areas: ". north ." "west tabletop east" ". south .";
  align-items: center;
  justify-items: center;
}
.table-seats-side { display: flex; justify-content: space-evenly; gap: var(--chair-gap); }
.table-seats-side:is(.top, .bottom) { justify-self: stretch; }
.table-seats-side.top { grid-area: north; margin-bottom: var(--chair-clearance); }
.table-seats-side.bottom { grid-area: south; margin-top: var(--chair-clearance); }
.table-seats-side.left { grid-area: west; margin-right: var(--chair-clearance); }
.table-seats-side.right { grid-area: east; margin-left: var(--chair-clearance); }
.table-seats-side:is(.left, .right) { flex-direction: column; align-self: stretch; }
.table-seats-top {
  grid-area: tabletop;
  align-self: stretch;
  justify-self: stretch;
  display: grid;
  place-items: center;
  border: 2px solid #a9b0c9;
  border-radius: 7px;
  background: #e5e8f4;
  font-weight: 750;
}
.table-seat {
  box-sizing: border-box;
  width: 22px;
  height: 17px;
  border: 2px solid #727c93;
  border-radius: 5px;
  background: #fff;
}
.table-seats-side:is(.left, .right) .table-seat { width: 17px; height: 22px; }
.table-seat.filled { border-color: #22624d; background: #397761; }
.table-seats-diagram.short { --tabletop-width: 100px; }
.table-seats-diagram.square { --tabletop-width: var(--tabletop-height); }
.table-seats-diagram.wide:has(.top .table-seat:nth-child(4)) {
  --tabletop-width: 136px;
}
.table-seats-diagram.vertical {
  --tabletop-width: 68px;
  --tabletop-height: 116px;
}
.table-seats-diagram.diamond {
  --tabletop-width: 57px;
  --tabletop-height: 57px;
  transform: rotate(45deg);
  margin: 8px;
}
.table-seats-diagram.diamond .table-seats-top span { transform: rotate(-45deg); }
#table-popup .move-mini-map .move-table,
#host-view #floor-plan .real-floor .plan-slot > .floor-table { padding: 0 1px; }
#floor-plan .floor-table.walk-in-muted.room-free { background: #edf4e9; border-inline-color: #cedcc7; border-bottom-color: #cedcc7; }
#floor-plan .floor-table.walk-in-muted > .pilot-map-label { opacity: .8; }

.pilot-shift-history { padding: clamp(14px, 4vw, 28px); max-height: 86dvh; overflow: auto; }
.pilot-history-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pilot-shift-history .pilot-history-actions { gap: 8px; margin-block: 12px; }
.pilot-shift-history .shift-history-filters label { min-width: 0; margin-top: 0; }
.pilot-shift-history .shift-history-filters input { max-width: 100%; }
.pilot-shift-history .shift-history-filters input::-webkit-date-and-time-value { text-align: start; }
.pilot-shift-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
  margin: 0; padding: 10px 0; border-top: 1px solid var(--line);
}
@media (max-width: 440px) {
  .pilot-shift-history .shift-history-filters { grid-template-columns: 1fr; }
  .pilot-shift-history button { font-size: 13px; padding-inline: 10px; }
}

.pilot-server-chart { grid-template-columns: repeat(var(--hours),minmax(72px,1fr)); }
.pilot-server-chart .pilot-chart-bars { gap: 8px; }
.pilot-server-chart .pilot-chart-bars span { width: 32%; background: var(--server-color); }
.pilot-server-chart .pilot-chart-bars .server-tables { background: transparent; border: 2px solid var(--server-color); box-sizing: border-box; min-height: 0; }
.pilot-server-chart .pilot-chart-bars .server-tables[style="--height:0%"] { border: 0; }
.pilot-server-legend span:first-child::before { background: #687180; }
.pilot-server-legend span:last-child::before { background: transparent; box-shadow: inset 0 0 0 2px #687180; }
.pilot-server-chart .pilot-chart-hour > span { overflow-wrap: anywhere; display: block; }

@media (max-width: 600px) {
  .pilot-daily-report { padding:14px; }
  .pilot-daily-report > .service-top { flex-direction:row; align-items:center; gap:8px; }
  .pilot-daily-report > .service-top h2 { margin:0; }
  .pilot-daily-report .shift-history-filters {
    grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);
    column-gap:10px;
  }
  .pilot-daily-report .shift-history-filters label { min-width:0; margin:0; }
  .pilot-daily-report .shift-history-filters :is(input, select) {
    display:block;
    box-sizing:border-box;
    max-width:100%;
    height:44px;
    min-height:44px;
    padding:0 8px;
  }
  .pilot-daily-report .shift-history-filters input[type="date"] {
    -webkit-appearance:none;
    appearance:none;
  }
  .pilot-daily-report .shift-history-filters input[type="date"]::-webkit-date-and-time-value {
    display:flex;
    align-items:center;
    height:42px;
    min-width:0;
    margin:0;
    text-align:start;
  }
  .pilot-daily-report .pilot-report-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .pilot-daily-report .pilot-report-metrics div { padding:8px; font-size:.88em; }
  .pilot-report-details summary { padding-block:8px; }
  .pilot-hourly-chart {
    grid-template-columns:repeat(var(--hours),minmax(39px,1fr));
    min-width:0;
    padding-inline:0;
    gap:2px;
  }
  .pilot-hourly-chart[data-fit="true"] { grid-template-columns:repeat(var(--hours),minmax(0,1fr)); }
  .pilot-hourly-chart .pilot-chart-hour { min-width:0; font-size:11px; }
  .pilot-hourly-chart .pilot-chart-bars { height:132px; }
}

/* Maintenance remains accessible in setup; operational coordinates stay intact. */
.real-floor .plan-slot[hidden] { display:none; }
.pilot-environment-banner {
  position:sticky; top:0; z-index:40; padding:12px 18px;
  background:#fff3cd; color:#493700; border-bottom:1px solid #c79633;
  font-size:.875rem; font-weight:700; line-height:1.4; text-align:center;
  overflow-wrap:anywhere;
}
.pilot-shared-lab { scroll-margin-top:64px; }
.email-consent {
  display:grid; grid-template-columns:22px minmax(0,1fr); align-items:center;
  gap:12px; min-height:44px; font-size:14px; line-height:1.5; cursor:pointer;
}
.email-consent > input[type="checkbox"] {
  width:22px; height:22px; min-height:22px; padding:0; margin:0; cursor:pointer;
}
.email-consent-mode { font-size:14px; line-height:1.5; font-weight:600; margin:8px 0; }
@media(max-width:720px) {
  html[data-pilot-environment="test"] #host-view:not(.preparing-shift) .page-actions {
    grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px;
  }
}
.shift-map-modes { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-block:12px; }
.group-preview-menu { min-width:0; font-size:14px; }
.staff-invite-modes { margin:16px 0; padding:0; border:0; }
.staff-invite-modes legend { font-size:14px; font-weight:600; }
.staff-invite-modes label { display:grid; grid-template-columns:20px minmax(0,1fr); gap:12px; align-items:center; min-height:48px; margin-top:6px; font-size:14px; }
.staff-invite-modes input[type="radio"] { width:20px; height:20px; min-height:20px; margin:0; padding:0; }
#invite-mode-help,#manager-invite-delivery { font-size:14px; line-height:1.5; }
.staff-account-row > .staff-recover-invite { grid-column:1 / -1; justify-self:start; max-width:100%; overflow-wrap:normal; }
.staff-account-row > .staff-invite-row-status { grid-column:1 / -1; max-width:none; text-align:start; }
.staff-profile { font-size:14px; line-height:1.4; margin:8px 0; }
.staff-card #staff-reports.report-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.report-actions > .manager-report-action { min-height:58px; padding:14px; font-size:16px; line-height:1.4; white-space:normal; }
.manager-backup { margin-top:24px; }
.manager-backup h3 { font-size:16px; margin:16px 0 12px; }
.sample-report-banner { position:sticky; top:0; z-index:2; padding:12px 16px; margin:12px 0; border:1px solid #dbc881; border-radius:8px; background:#fff4cf; color:#574512; font-size:14px; font-weight:700; line-height:1.5; }
.sample-report-actions { margin-block:12px; }
.sample-report-actions > button { min-height:48px; white-space:normal; }
@media(max-width:600px){.staff-card #staff-reports.report-actions{grid-template-columns:minmax(0,1fr);}}
@media print{.sample-report-banner{position:static;}}
.security-meta { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:10px 16px; margin-block:24px; font-size:14px; line-height:1.5; }
.security-meta dt { color:var(--muted); }
.security-meta dd { margin:0; overflow-wrap:anywhere; }
.security-section { margin-top:28px; padding-top:24px; border-top:1px solid var(--line); }
.security-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:18px; }
.password-control { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; gap:8px; }
.password-control > input { min-width:0; }
.password-control > .password-toggle { width:46px; min-height:47px; padding:10px; display:grid; place-items:center; }
#staff-profile-link { margin:0; }
.account-switch { display:block; margin:10px auto; max-width:100%; min-height:44px; }
.section-color-picker { display:flex; flex-wrap:wrap; gap:10px; margin:12px 0 16px; }
.section-color-picker > button {
  width:48px; height:48px; min-height:48px; padding:0; border:3px solid transparent;
  border-radius:6px; background:var(--section-color); display:grid; place-items:center;
}
.section-color-picker > button[aria-pressed="true"] { border-color:#171a2b; }
.section-color-picker > button > span { visibility:hidden; background:white; color:#171a2b; font-size:18px; line-height:22px; width:22px; border-radius:3px; }
.section-color-picker > button[aria-pressed="true"] > span { visibility:visible; }
.named-section-control { display:flex; align-items:center; gap:10px; }
.selected-section-sample { flex:0 0 24px; height:24px; border:1px solid var(--line); border-radius:3px; }
.named-section-control > select { flex:1; min-width:0; }
.group-preview-menu > summary {
  display:flex; align-items:center; min-height:48px; padding:10px 14px; line-height:1.4;
  border:1px solid var(--line); border-radius:8px; background:white; cursor:pointer;
}
.group-preview-menu > a { display:block; min-height:48px; padding:12px; line-height:1.4; }
.shift-map-modes button { min-height:48px; padding:10px 8px; white-space:normal; }
.shift-map-modes button[aria-pressed="true"] { background:var(--green); color:white; }
@media(max-width:380px) {
  .shift-map-modes { grid-template-columns:minmax(0,1fr); }
}
.shift-map-zoom { min-height:44px; margin-bottom:8px; }
.shift-editor .shift-map-editor.map-enlarged .section-paint-map { min-width:660px; aspect-ratio:864 / 884; }
.shift-editor .shift-map-editor .plan-scroll { overflow:auto; overscroll-behavior:contain; }
.shift-map-tools > p,.maintenance-feedback { font-size:14px; line-height:1.5; margin:8px 0 16px; }
.maintenance-feedback { font-weight:600; }
.shift-editor .shift-map-editor .section-paint-map button[data-maintenance="true"] {
  background:#e8ebf0; color:#34433c; opacity:1; border:2px dashed #68766e;
}
.shift-editor .section-paint-map [data-maintenance="true"] b::after { content:' ×'; font-size:.85em; }
.shift-editor .section-paint-map [data-maintenance="true"] small { color:inherit; }
.shift-map-editor[data-map-mode="maintenance"] .section-paint-map [data-maintenance-busy="true"] { opacity:.55; }

/* Action groups own both row and wrapped-row spacing; avoid inline-button collisions. */
.action-stack { display:flex; flex-direction:column; align-items:stretch; gap:12px; }
.action-row { display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
.action-stack > :is(button,a),.action-row > :is(button,a) { margin:0; min-height:46px; }
.action-stack > :is(button,a) { width:100%; }
.staff-login-help,.guest-action-group { margin-top:16px; }
.staff-page .staff-card form,.guest-page .client-card form { display:grid; gap:16px; }
.staff-page .staff-card form > :is(label,fieldset,p,h3),.guest-page .client-card form > :is(label,fieldset,p) { margin:0; }
.staff-page .staff-card form > button[type="submit"],.guest-page .client-card form > button[type="submit"] { margin-top:0; }
.security-actions { gap:12px; }
.staff-page .staff-account-row { column-gap:12px; row-gap:12px; }
.pilot-host-page .group-actions,.pilot-host-page .shift-actions,.pilot-host-page .floor-plan-actions,
.pilot-host-page .join-toolbar,.pilot-host-page .dialog-actions,.pilot-daily-report .pilot-history-actions { gap:12px; }
#host-view .group-actions { gap:12px; }
.pilot-host-page .service-shortcuts,.pilot-host-page .lab-scenario-options { gap:12px; }
.staff-page .pilot-shift-management:not([hidden]) { gap:12px; }
.demo-view-bar > .action-row { justify-content:center; }
html[data-pilot-environment] body.pilot-host-page #host-view .page-actions { gap:12px; }
@media(max-width:720px){
  html[data-pilot-environment] body.pilot-host-page #host-view:not(.preparing-shift) .page-actions { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #host-view .page-actions > button { white-space:normal; min-width:0; }
}
.pilot-host-page .walk-in-turn-actions:not(:empty) { display:flex; flex-wrap:wrap; gap:12px; }
#shift-form .dialog-actions { gap:12px; }
.dialog-actions { flex-wrap:wrap; }
.dialog-actions > .form-error:not(:empty) { flex-basis:100%; margin:0; }
.pilot-host-page .group .mail > button { margin:12px 12px 0 0; }
