:root {
  --oper-primary: #FF6A00;
  --oper-navy: #0B1F3B;
  --oper-bg: #F4F6F8;
  --oper-surface: #FFFFFF;
  --oper-border: #D9E0E8;
  --oper-text: #0B1F3B;
  --oper-muted: #5B6B7C;
  --oper-ok: #1B7F4E;
  --oper-warn: #B45309;
  --oper-danger: #B42318;
  --oper-radius: 14px;
  --oper-shadow: 0 8px 24px rgba(11, 31, 59, 0.08);
  --oper-touch: 48px;
  font-family: var(--sb-font, Roboto, "Segoe UI", system-ui, -apple-system, sans-serif);
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--oper-bg); color: var(--oper-text); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.oper-boot {
  min-height: 100vh;
  display: grid;
  place-content: center;
  gap: 12px;
  text-align: center;
  color: var(--oper-navy);
}
.oper-boot span { color: var(--oper-muted); }

#blazor-error-ui {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fee2e2;
  color: #7f1d1d;
  padding: 12px 16px;
  z-index: 1000;
}
#blazor-error-ui.show, #blazor-error-ui[style*="display: block"] { display: block; }

/* Shell / drawer / nav: ver operapp-shell.css (17.2.2) */

.oper-topbar {
  background: var(--oper-surface);
  border-bottom: 1px solid var(--oper-border);
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.oper-status-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.oper-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 700;
  border: 1px solid var(--oper-border);
  background: #fff;
}
.oper-chip.online { color: var(--oper-ok); border-color: #86efac; background: #ecfdf5; }
.oper-chip.offline { color: var(--oper-danger); border-color: #fecaca; background: #fef2f2; }
.oper-chip.sync { color: var(--oper-warn); border-color: #fcd34d; background: #fffbeb; }
.oper-chip.pending { color: var(--oper-navy); }

.oper-content { padding: var(--sb-content-padding, 24px); }
.oper-hero {
  background: linear-gradient(135deg, #0B1F3B 0%, #16365f 55%, #FF6A00 160%);
  color: #fff;
  border-radius: calc(var(--oper-radius) + 4px);
  padding: 24px;
  box-shadow: var(--oper-shadow);
  margin-bottom: 20px;
}
.oper-hero h1 { margin: 0 0 8px; font-size: 1.6rem; }
.oper-hero p { margin: 0; opacity: .9; }

.oper-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.oper-card, .oper-panel {
  background: var(--oper-surface);
  border: 1px solid var(--oper-border);
  border-radius: var(--oper-radius);
  box-shadow: var(--oper-shadow);
}
.oper-card {
  min-height: 120px;
  padding: 18px;
  display: grid;
  align-content: space-between;
  transition: transform .15s ease;
}
.oper-card:hover { transform: translateY(-2px); }
.oper-card strong { font-size: 1.1rem; }
.oper-card span { color: var(--oper-muted); font-size: .9rem; }

.oper-panel { padding: 18px; margin-bottom: 16px; }
.oper-panel h2, .oper-panel h3 { margin: 0 0 12px; }
.oper-muted { color: var(--oper-muted); }
.oper-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

.oper-btn {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  background: var(--oper-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.oper-btn.secondary {
  background: #fff;
  color: var(--oper-navy);
  border: 1px solid var(--oper-border);
}
.oper-btn.danger { background: var(--oper-danger); }
.oper-btn:disabled { opacity: .55; cursor: not-allowed; }

/* Dashboard operacional — mesma composição do Dashboard tenant:
   cabeçalho, boas-vindas com friso, quatro cards de resumo e acesso rápido. */
.oper-dashboard { display: grid; gap: 12px; }
.oper-page-heading { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 2px; }
.oper-page-heading h1 { margin: 0 0 6px; color: var(--oper-navy); font-size: 1.5rem; font-weight: 700; }
.oper-breadcrumb { display: inline-flex; align-items: center; gap: 6px; color: var(--oper-muted); font-size: .82rem; }
.oper-welcome-card {
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--oper-border);
  border-top: 3px solid var(--oper-primary);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(11,31,59,.12);
}
.oper-welcome-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
  background: var(--oper-primary); color: #fff; font-size: 1.15rem; font-weight: 700;
}
.oper-welcome-copy { min-width: 0; }
.oper-welcome-copy h2 { margin: 0 0 3px; color: var(--oper-navy); font-size: 1.15rem; }
.oper-welcome-copy p { margin: 0; color: #616161; font-size: .84rem; }
.oper-welcome-copy p span { margin: 0 5px; color: #9e9e9e; }
.oper-welcome-status { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.oper-sync-caption { color: var(--oper-muted); font-size: .74rem; }
.oper-dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.oper-dashboard-stat {
  min-height: 106px;
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--oper-border);
  border-top: 3px solid var(--oper-primary);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(11,31,59,.12);
}
.oper-dashboard-stat > .oper-icon { color: var(--oper-primary); margin-bottom: 2px; }
.oper-dashboard-stat strong { color: var(--oper-navy); font-size: 1.75rem; line-height: 1; }
.oper-dashboard-stat span:last-child { color: #616161; font-size: .76rem; }
.oper-dashboard-stat.has-attention { border-top-color: var(--oper-danger); }
.oper-dashboard-stat.has-attention > .oper-icon { color: var(--oper-danger); }
.oper-quick-panel {
  padding: 14px;
  background: #fff;
  border: 1px solid var(--oper-border);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(11,31,59,.1);
}
.oper-quick-panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.oper-quick-panel__head h2 { margin: 0; font-size: 1rem; color: var(--oper-navy); }
.oper-quick-panel__head p { margin: 3px 0 0; color: var(--oper-muted); font-size: .78rem; }
.oper-quick-actions { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 6px; }
.oper-quick-action {
  min-height: 40px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--oper-navy);
  border-radius: 8px;
  background: #fff;
  color: var(--oper-navy);
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}
.oper-quick-action:hover { border-color: var(--oper-primary); color: var(--oper-primary); background: #fff8f2; }
.oper-quick-action:disabled { opacity: .5; cursor: not-allowed; }

/* Radio/checkbox usam a cor da marca — mesma tonalidade laranja do MudRadio/MudCheckbox no AdminApp. */
input[type="radio"], input[type="checkbox"] {
  accent-color: var(--oper-primary);
  width: 18px;
  height: 18px;
}

.oper-form { display: grid; gap: 12px; max-width: 420px; }
.oper-sheet-wide .oper-form { max-width: none; width: 100%; }
.oper-form label { display: grid; gap: 6px; font-weight: 600; }
.oper-form input,
.oper-form textarea {
  min-height: var(--oper-touch);
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--oper-border);
  font: inherit;
  color: var(--oper-text);
  background: #fff;
}
.oper-form textarea { resize: vertical; }
.oper-form .oper-choice { display: flex; grid-template-columns: auto 1fr; align-items: center; }
.oper-quantity-control { display: grid; grid-template-columns: 48px minmax(70px, 1fr) 48px; gap: 8px; }
.oper-quantity-control input { text-align: center; width: 100%; }
.oper-segmented {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 4px;
  margin: 0 0 14px;
  padding: 4px;
  border: 1px solid var(--oper-border);
  border-radius: 12px;
  background: #fff;
}
.oper-segmented button {
  min-height: 40px;
  padding: 0 20px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--oper-muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.oper-segmented button.active { background: var(--oper-navy); color: #fff; }
.oper-management-list { display: grid; gap: 10px; }
.oper-management-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--oper-border);
}
.oper-management-row > div:first-child { display: grid; gap: 3px; }
.oper-management-row span { color: var(--oper-muted); font-size: .88rem; }
.oper-session-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid var(--oper-border);
  border-radius: 10px;
  background: #f8fafc;
  font-size: .88rem;
}
.oper-history-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr)) auto;
  align-items: end;
  gap: 12px;
}
.oper-history-filters label { display: grid; gap: 6px; font-size: .85rem; font-weight: 700; }
.oper-history-filters .oper-select,
.oper-history-filters .oper-search { width: 100%; max-width: none; }
.oper-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
}
.oper-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.oper-detail-grid > div { display: grid; gap: 4px; padding: 12px; border: 1px solid var(--oper-border); border-radius: 10px; }
.oper-detail-grid span { color: var(--oper-muted); font-size: .78rem; text-transform: uppercase; }
.oper-timeline { display: grid; gap: 0; }
.oper-timeline article { display: grid; gap: 3px; padding: 10px 0 10px 18px; border-left: 2px solid var(--oper-border); }
.oper-timeline span, .oper-timeline small { color: var(--oper-muted); }
@media (max-width: 900px) {
  .oper-history-filters, .oper-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .oper-history-filters, .oper-detail-grid { grid-template-columns: 1fr; }
  .oper-pagination { align-items: stretch; flex-direction: column; text-align: center; }
}
@media (max-width: 720px) {
  .oper-management-row { align-items: flex-start; flex-direction: column; }
}

/* Select "Seção" — mesmo raio/altura do MudSelect outlined usado em tables.css (AdminApp). */
.oper-select {
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--oper-border);
  background: #fff;
  color: var(--oper-text);
  font-weight: 500;
  max-width: 220px;
}

/* Divisor de seção/área — réplica exata de .tables-section-divider (AdminApp tables.css). */
.oper-tables-section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 12px;
  color: #5a7a9a;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
}
.oper-tables-section-divider::before,
.oper-tables-section-divider::after {
  content: "";
  flex: 1;
  border-top: 1px dashed #b8cfe0;
}
.oper-alert {
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 12px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
}
.oper-alert.error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.oper-alert.ok { background: #ecfdf5; border-color: #86efac; color: #166534; }

.oper-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.oper-table th, .oper-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--oper-border);
}
.oper-login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top right, rgba(255,106,0,.18), transparent 40%),
    linear-gradient(180deg, #0B1F3B 0%, #102744 40%, #F4F6F8 40%);
}
.oper-login-card {
  width: min(440px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--oper-shadow);
}
.oper-login-card img { width: 56px; height: 56px; margin-bottom: 12px; }

@media (max-width: 900px) {
  .oper-content { padding: 14px; }
  .oper-hero { padding: 18px; }
  .oper-hero h1 { font-size: 1.25rem; }
  .oper-table { font-size: .85rem; display: block; overflow-x: auto; }
}

@media (max-width: 430px) {
  .oper-topbar { padding: 10px 12px; }
  .oper-status-row { gap: 6px; }
  .oper-chip { font-size: .75rem; padding: 0 8px; }
  .oper-grid { grid-template-columns: 1fr; }
  .oper-login-card { padding: 20px 16px; }
  .oper-table { font-size: .82rem; display: block; overflow-x: auto; }
  .oper-actions { flex-direction: column; }
  .oper-actions .oper-btn { width: 100%; }
  .oper-attendance-bar { flex-direction: column; align-items: stretch; }
}

.oper-panel-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}
.oper-panel-head h2 { margin: 0 0 4px; }

.oper-filter-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.oper-filter-row .oper-chip-btn { flex: 0 0 auto; }
.oper-chip-btn {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--oper-border);
  background: #fff;
  color: var(--oper-navy);
  font-weight: 700;
  cursor: pointer;
}
.oper-chip-btn.active {
  background: var(--oper-navy);
  color: #fff;
  border-color: var(--oper-navy);
}

/* Legenda de status — mesmo padrão visual de .tables-legend (AdminApp tables.css) */
.oper-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  margin: 4px 0 16px;
}
.oper-legend__item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  color: var(--oper-muted);
  font-weight: 500;
}
.oper-legend__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(11, 31, 59, .12);
}

/* Grid de mesas — mesmas proporções de .tables-grid / .table-card (AdminApp tables.css) */
.oper-tables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.oper-tables-workspace {
  display: grid;
  grid-template-columns: minmax(360px, 48%) minmax(400px, 52%);
  gap: 20px;
  align-items: stretch;
  min-height: calc(100vh - 240px);
}
.oper-tables-map-panel,
.oper-table-detail-panel {
  min-width: 0;
  min-height: calc(100vh - 240px);
  background: linear-gradient(180deg, #edf3fa 0%, #e4ecf6 100%);
  border: 1px solid #b8cfe0;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(11,31,59,.08);
}
.oper-tables-map-panel { padding: 20px 22px 18px; }
.oper-table-detail-panel { overflow: hidden; display: flex; flex-direction: column; }
.oper-table-detail-panel--empty {
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 40px;
  text-align: center;
  color: #5a7a9a;
}
.oper-table-detail-panel--empty > .oper-icon { width: 56px; height: 56px; opacity: .42; }
.oper-table-detail-panel--empty strong { font-size: 1rem; }
.oper-table-detail-panel--empty span { font-size: .78rem; }
.oper-table-detail-backdrop { display: none; }
.oper-table-detail-close {
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.1); color: #fff; font-size: 1.5rem; cursor: pointer;
}
.oper-table-detail-body {
  flex: 1;
  padding: 18px 20px 20px;
  background: #f6f9fc;
  overflow-y: auto;
}
.oper-table-session-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
  margin: 14px 0;
}
.oper-table-session-summary > div {
  display: grid; gap: 3px; padding: 10px 12px;
  background: #fff; border: 1px solid #dde8f4; border-radius: 8px;
}
.oper-table-session-summary span { color: #5a7a9a; font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; }
.oper-table-session-summary strong { color: var(--oper-navy); font-size: .88rem; }
.oper-table-session-total {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px; padding: 14px;
  background: #f0f5fa; border: 1px solid #dde8f4; border-radius: 10px;
}
.oper-table-session-total strong { color: var(--oper-primary); font-size: 1.2rem; }
.oper-table-tile {
  position: relative;
  min-height: 108px;
  padding: 16px 12px;
  border-radius: 12px;
  border: 3px solid transparent;
  background: var(--oper-surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(11, 31, 59, .08);
  transition: transform .12s, box-shadow .12s;
}
.oper-table-tile:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(11, 31, 59, .16); }
.oper-table-tile.selected { box-shadow: 0 0 0 3px rgba(255,106,0,.65), 0 6px 16px rgba(11,31,59,.16); }
.oper-table-tile strong { font-size: 1.5rem; font-weight: 800; line-height: 1; color: var(--oper-navy); }
.oper-table-tile__timer {
  position: absolute; top: 6px; right: 8px;
  color: #5a7a9a; font-size: .68rem; font-weight: 700;
}
.oper-table-tile__capacity { color: #5a7a9a; font-size: .72rem; margin-top: 3px; }
.oper-table-tile__total { color: var(--oper-primary); font-size: .8rem; font-weight: 700; margin-top: 6px; }

/* Indicador discreto de reserva/fila no card do mapa (17.3.5) — não polui o card, apenas sinaliza. */
.oper-table-tile__hint {
  position: absolute;
  top: 6px;
  left: 8px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: .6rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.oper-table-tile__hint--arrived { background: rgba(255,106,0,.18); color: #c24700; }
.oper-table-tile__hint--reservation { background: rgba(123,31,162,.14); color: #7B1FA2; }
.oper-table-tile__hint--waitlist { background: rgba(21,101,192,.14); color: #1565C0; }
.oper-table-tile__label {
  margin-top: 5px; padding: 2px 8px; border-radius: 6px;
  background: rgba(255,255,255,.48); color: inherit; font-size: .68rem; font-weight: 700;
}

.oper-table-tile.free {
  background: linear-gradient(165deg, var(--oper-status-free-bg-1) 0%, var(--oper-status-free-bg-2) 100%);
  border-color: var(--oper-status-free);
}
.oper-table-tile.free strong { color: #1b5e20; }
.oper-table-tile.occupied {
  background: linear-gradient(165deg, var(--oper-status-occupied-bg-1) 0%, var(--oper-status-occupied-bg-2) 100%);
  border-color: var(--oper-status-occupied);
}
.oper-table-tile.occupied strong { color: #bf360c; }
.oper-table-tile.bill {
  background: linear-gradient(165deg, var(--oper-status-bill-bg-1) 0%, var(--oper-status-bill-bg-2) 100%);
  border-color: var(--oper-status-bill);
}
.oper-table-tile.bill strong { color: #e65100; }
.oper-table-tile.pending {
  background: linear-gradient(165deg, var(--oper-status-pending-bg-1) 0%, var(--oper-status-pending-bg-2) 100%);
  border-color: var(--oper-status-pending);
}
.oper-table-tile.pending strong { color: #0d47a1; }
.oper-table-tile.conflict {
  background: linear-gradient(165deg, var(--oper-status-conflict-bg-1) 0%, var(--oper-status-conflict-bg-2) 100%);
  border-color: var(--oper-status-conflict);
}
.oper-table-tile.conflict strong { color: #8e0000; }
.oper-table-tile.reserved {
  background: linear-gradient(165deg, var(--oper-status-reserved-bg-1) 0%, var(--oper-status-reserved-bg-2) 100%);
  border-color: var(--oper-status-reserved);
}
.oper-table-tile.reserved strong { color: #4a148c; }
.oper-table-tile.unavailable {
  background: linear-gradient(165deg, var(--oper-status-unavailable-bg-1) 0%, var(--oper-status-unavailable-bg-2) 100%);
  border-color: var(--oper-status-unavailable);
}
.oper-table-tile.unavailable strong { color: #616161; }

@media (max-width: 1280px) {
  .oper-tables-workspace { grid-template-columns: 1fr; min-height: auto; }
  .oper-tables-map-panel,
  .oper-table-detail-panel { min-height: auto; }
  .oper-table-detail-panel { min-height: 320px; }
}

@media (max-width: 768px) {
  .oper-tables-map-panel { padding: 14px; }
  .oper-table-detail-panel--empty { display: none; }
  .oper-table-detail-backdrop { display: block; }
  .oper-table-detail-panel:not(.oper-table-detail-panel--empty) {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(400px, 100%);
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    z-index: 90;
    box-shadow: -12px 0 32px rgba(11,31,59,.18);
  }
}

.oper-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 800;
  width: fit-content;
  border: 1px solid transparent;
}
.oper-status-badge.free { color: var(--oper-status-free); background: #ecfdf5; border-color: var(--oper-status-free); }
.oper-status-badge.occupied { color: var(--oper-status-occupied); background: #fff7ed; border-color: var(--oper-status-occupied); }
.oper-status-badge.bill { color: var(--oper-status-bill); background: #fffbeb; border-color: var(--oper-status-bill); }
.oper-status-badge.pending { color: var(--oper-status-pending); background: #eff6ff; border-color: var(--oper-status-pending); }
.oper-status-badge.conflict { color: var(--oper-status-conflict); background: #fef2f2; border-color: var(--oper-status-conflict); }
.oper-status-badge.reserved { color: var(--oper-status-reserved); background: #f3e5f5; border-color: var(--oper-status-reserved); }
.oper-status-badge.unavailable { color: var(--oper-status-unavailable); background: #f5f5f5; border-color: var(--oper-status-unavailable); }
.oper-status-badge.muted { color: var(--oper-muted); background: #f8fafc; border-color: var(--oper-border); }

/* Lista de balcão — comandas sem posição fixa (diferente de mesa numerada);
   mantém formato de lista, mas com acento de cor por status (mesma paleta das Mesas). */
.oper-counter-list { display: grid; gap: 10px; }
.oper-counter-card {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--oper-border);
  border-left: 4px solid var(--oper-border);
  background: #fff;
  display: grid;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(11, 31, 59, .05);
  transition: transform .12s, box-shadow .12s;
}
.oper-counter-card:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(11, 31, 59, .1); }
.oper-counter-card.occupied { border-left-color: var(--oper-status-occupied); }
.oper-counter-card.pending { border-left-color: var(--oper-status-pending); background: #eff6ff; }
.oper-counter-card.conflict { border-left-color: var(--oper-status-conflict); background: #fef2f2; }

.oper-btn-xl {
  min-height: 64px;
  font-size: 1.15rem;
  width: 100%;
  max-width: 420px;
}

.oper-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 31, 59, .45);
  z-index: 80;
}
.oper-sheet {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(400px, 100%);
  background: #fff;
  z-index: 90;
  padding: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: -12px 0 32px rgba(11, 31, 59, .18);
}
.oper-sheet h3 { margin: 0 0 4px; }
.oper-sheet > :not(.oper-sheet-head) { padding-left: 20px; padding-right: 20px; }
/* Faixa de título navy + friso laranja — mesmo padrão do MudDialogTitle (AdminApp ProductConfigureDialog). */
.oper-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--oper-navy);
  color: #fff;
  padding: 16px 20px;
  border-bottom: 3px solid var(--oper-primary);
  flex: 0 0 auto;
}
.oper-sheet-head h3 { color: #fff; font-size: 1.15rem; margin: 0; }
.oper-sheet-body { padding-top: 16px; display: flex; flex-direction: column; gap: 12px; flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.oper-sheet .oper-actions {
  margin-top: auto;
  position: sticky;
  bottom: 0;
  background: #fff;
  padding-top: 12px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--oper-border);
  z-index: 2;
}
.oper-sheet-wide { width: min(560px, 100%); }

/* Cabeçalho de atendimento — mesmo padrão visual de .table-session-header (AdminApp tables.css):
   faixa navy no topo do card, título + status + metadados, ações à direita. */
.oper-session-header {
  background: var(--oper-navy);
  color: #fff;
  padding: 16px 20px;
  border-radius: 14px 14px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.oper-session-header__title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
}
.oper-session-header__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: rgba(255, 255, 255, .8);
  margin-top: 4px;
}
.oper-session-header__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.oper-session-header .oper-btn.secondary {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .3);
  color: #fff;
}
.oper-session-body { padding: 18px 20px 20px; }

.oper-attendance-bar {
  position: sticky;
  bottom: 0;
  z-index: 15;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  margin: 16px -4px 0;
  background: #fff;
  border: 1px solid var(--oper-border);
  border-radius: 12px;
  box-shadow: 0 -6px 20px rgba(11, 31, 59, .08);
}

/* KPIs de resumo — mesmo padrão de .orders-kpi-card (AdminApp orders.css):
   card branco, friso esquerdo colorido, label caps pequeno, valor grande em negrito. */
.oper-kpi-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin: 12px 0 0;
}
.oper-kpi-card {
  flex: 0 0 112px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--oper-border);
  border-left: 4px solid var(--kpi-color, #607d8b);
  padding: 10px 14px;
  box-shadow: 0 1px 4px rgba(11, 31, 59, .05);
}
.oper-kpi-card__label { font-size: .72rem; color: var(--oper-muted); font-weight: 500; white-space: nowrap; }
.oper-kpi-card__value { font-size: 1.35rem; font-weight: 800; line-height: 1.2; color: var(--kpi-color, var(--oper-navy)); margin-top: 2px; }

.oper-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}
.oper-stat {
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--oper-border);
  font-size: .9rem;
  color: var(--oper-muted);
}
.oper-stat strong { color: var(--oper-navy); margin-left: 4px; }
.oper-search {
  width: 100%;
  min-height: var(--oper-touch);
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--oper-border);
  margin-top: 8px;
}
.oper-status-icon { margin-right: 4px; font-weight: 900; }

@media (max-width: 360px) {
  .oper-brand strong { font-size: .9rem; }
  .oper-brand small { font-size: .75rem; }
}

.oper-totals-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.oper-total-card {
  min-width: 160px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #FFF5EE;
  border: 1px solid #fdba74;
  display: grid;
  gap: 4px;
}
.oper-total-card strong { font-size: 1.25rem; color: var(--oper-primary); }
.oper-total-card.muted {
  background: #f8fafc;
  border-color: var(--oper-border);
}
.oper-total-card.muted strong { color: var(--oper-navy); }

.oper-order-lines { display: grid; gap: 10px; }
.oper-order-line {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--oper-border);
  border-left: 4px solid var(--oper-border);
  background: #fff;
  display: grid;
  gap: 10px;
  transition: transform .12s, box-shadow .12s;
}
.oper-order-line:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(11, 31, 59, .1); }
.oper-order-line.pending { border-left-color: var(--oper-status-pending); background: #eff6ff; }
.oper-order-line.conflict { border-left-color: var(--oper-status-conflict); background: #fef2f2; }
.oper-order-line-main { display: grid; gap: 4px; }
.oper-order-line-main strong { margin-right: 8px; }

/* Pedidos — lista tabular responsiva com as mesmas posições semânticas do AdminApp. */
.oper-orders-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}
.oper-orders-toolbar .oper-filter-row {
  min-width: 0;
  overflow-x: auto;
  flex-wrap: nowrap;
}
.oper-orders-search {
  flex: 0 0 min(260px, 32%);
  min-width: 190px;
}
.oper-orders-table {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--oper-border);
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(11,31,59,.06);
}
.oper-orders-table__head,
.oper-orders-table__row {
  display: grid;
  grid-template-columns: minmax(96px,1.05fr) minmax(96px,1.2fr) minmax(86px,.9fr) minmax(96px,.9fr) 42px minmax(78px,.75fr) 72px;
  gap: 10px;
  align-items: center;
}
.oper-orders-table__head {
  min-height: 34px;
  padding: 0 12px;
  background: #edf3fa;
  border-bottom: 1px solid #d6e2ee;
  color: #5a7a9a;
  font-size: .66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.oper-orders-table__row {
  min-height: 58px;
  padding: 8px 12px;
  border-bottom: 1px solid #e8eef5;
  border-left: 3px solid transparent;
  color: var(--oper-navy);
}
.oper-orders-table__row:last-child { border-bottom: 0; }
.oper-orders-table__row:hover { background: #fff8f2; }
.oper-orders-table__row.pending { border-left-color: var(--oper-status-pending); background: #f5f9ff; }
.oper-orders-table__row.conflict { border-left-color: var(--oper-status-conflict); background: #fff7f7; }
.oper-orders-cell { min-width: 0; font-size: .78rem; }
.oper-orders-cell > strong,
.oper-orders-cell > small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oper-orders-cell > strong { color: var(--oper-navy); font-size: .82rem; }
.oper-orders-cell > small { margin-top: 2px; color: #8a98a8; font-size: .65rem; }
.oper-orders-cell--number { text-align: center; font-weight: 700; }
.oper-orders-cell--total { text-align: right; font-weight: 700; white-space: nowrap; }
.oper-orders-cell--action {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--oper-primary);
  color: #fff;
  font-size: .64rem;
  font-weight: 800;
  text-transform: uppercase;
}
.oper-source-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 6px;
  border-radius: 4px;
  color: #fff;
  background: #9e9e9e;
  font-size: .62rem;
  font-weight: 700;
  white-space: nowrap;
}
.oper-source-badge.operapp { background: #0B1F3B; }
.oper-source-badge.pdv { background: #607D8B; }
.oper-source-badge.admin { background: #78909C; }
.oper-source-badge.ifood { background: #ea1d2c; }
.oper-source-badge.whatsapp { background: #25d366; }
.oper-source-badge.portal { background: #ff6a00; }

@media (max-width: 768px) {
  .oper-orders-toolbar { align-items: stretch; flex-direction: column-reverse; }
  .oper-orders-search { flex-basis: auto; width: 100%; min-width: 0; }
  .oper-orders-table { border: 0; background: transparent; box-shadow: none; display: grid; gap: 10px; overflow: visible; }
  .oper-orders-table__head { display: none; }
  .oper-orders-table__row {
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
    min-height: 0;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--oper-border);
    border-left: 4px solid var(--oper-border);
    border-radius: 12px;
  }
  .oper-orders-table__row.pending { border-left-color: var(--oper-status-pending); }
  .oper-orders-table__row.conflict { border-left-color: var(--oper-status-conflict); }
  .oper-orders-cell:nth-child(1),
  .oper-orders-cell:nth-child(2) { grid-column: 1; }
  .oper-orders-cell:nth-child(3),
  .oper-orders-cell:nth-child(4) { grid-column: 2; justify-self: end; }
  .oper-orders-cell:nth-child(5),
  .oper-orders-cell:nth-child(6) { grid-row: 3; }
  .oper-orders-cell--number { text-align: left; }
  .oper-orders-cell--action { grid-column: 2; grid-row: 3; min-width: 72px; }
}

.oper-qty-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.oper-qty-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--oper-border);
  background: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  cursor: pointer;
  color: var(--oper-navy);
}
.oper-qty-value {
  min-width: 28px;
  text-align: center;
  font-weight: 800;
  font-size: 1.1rem;
}

.oper-form-section {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--oper-border);
}
.oper-choice {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
  cursor: pointer;
}
.oper-choice input { width: 20px; height: 20px; }

.oper-product-pick-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  max-height: 55vh;
  overflow: auto;
}
.oper-product-pick {
  text-align: left;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--oper-border);
  background: #fff;
  display: grid;
  gap: 4px;
  cursor: pointer;
  min-height: var(--oper-touch);
}
.oper-product-pick:hover { border-color: var(--oper-primary); }

/* Atendimento — composição equivalente ao CounterOrderPanel:
   catálogo à esquerda e pedido/itens à direita em desktop. */
.oper-attendance-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}
.oper-attendance-catalog {
  min-width: 0;
  min-height: calc(100vh - 130px);
  padding: 20px;
  border-radius: 16px;
  border: 1px solid #c5d6e8;
  background: #e8eff7;
  box-shadow: 0 2px 8px rgba(11,31,59,.06);
}
.oper-attendance-section-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.oper-attendance-section-title h2 { margin: 0; color: var(--oper-navy); font-size: 1.1rem; }
.oper-attendance-section-title p { margin: 4px 0 8px; color: var(--oper-muted); font-size: .78rem; }
.oper-attendance-order { min-width: 0; }
.oper-attendance-order > .oper-panel { border-radius: 14px; }
.oper-inline-product-list {
  max-height: calc(100vh - 280px);
  overflow-y: auto;
  margin-top: 10px;
  background: #fff;
  border: 1px solid #dde8f4;
  border-radius: 10px;
}
.oper-inline-product {
  width: 100%;
  min-height: 54px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 0;
  border-bottom: 1px solid #f0f4f8;
  background: #fff;
  color: var(--oper-navy);
  text-align: left;
  cursor: pointer;
}
.oper-inline-product:hover { background: #fff5eb; }
.oper-inline-product > span { display: grid; gap: 2px; min-width: 0; }
.oper-inline-product strong { font-size: .88rem; }
.oper-inline-product small { color: var(--oper-muted); font-size: .68rem; }
.oper-inline-product b { color: var(--oper-primary); font-size: .78rem; white-space: nowrap; }

@media (min-width: 769px) {
  .oper-sheet,
  .oper-sheet-wide {
    left: 50%;
    right: auto;
    top: 50%;
    bottom: auto;
    width: min(720px, calc(100vw - 48px));
    max-height: calc(100vh - 48px);
    transform: translate(-50%, -50%);
    border-radius: 14px;
    box-shadow: 0 20px 56px rgba(11,31,59,.28);
  }
  .oper-form-section--inline {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    column-gap: 14px;
  }
  .oper-form-section--multi {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
  }
  .oper-form-section--inline > strong,
  .oper-form-section--multi > strong { grid-column: 1 / -1; }
  .oper-sheet .oper-form-section { margin: 9px 0; padding-bottom: 6px; }
  .oper-sheet .oper-choice { min-height: 36px; }
  /* Layout 2 colunas só em sheets de configuração de produto — NÃO em Delivery/Clientes. */
  .oper-sheet .oper-form.oper-form--config {
    max-width: none;
    grid-template-columns: minmax(120px, .7fr) minmax(240px, 1.3fr);
  }
  .oper-sheet .oper-form {
    max-width: none;
    grid-template-columns: 1fr;
  }
  .oper-dialog-actions { justify-content: flex-end; }
  .oper-dialog-actions .oper-btn { min-width: 112px; }
  .oper-config-total { width: 100%; display: flex; align-items: center; justify-content: space-between; }
}

@media (max-width: 1000px) and (min-width: 769px) {
  .oper-attendance-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
  .oper-attendance-catalog { padding: 14px; }
}

@media (max-width: 768px) {
  .oper-attendance-layout { grid-template-columns: 1fr; }
  /* Catálogo mobile controlado por .show-catalog-mobile / .show-order-mobile (17.3.4.2). */
}

@media (max-width: 1100px) {
  .oper-dashboard-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .oper-quick-actions { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 768px) {
  .oper-btn { min-height: var(--oper-touch); text-transform: none; font-size: .9rem; }
  .oper-dashboard-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .oper-quick-actions { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .oper-welcome-status { width: 100%; margin-left: 62px; justify-content: flex-start; }
}

@media (max-width: 430px) {
  .oper-page-heading h1 { font-size: 1.25rem; }
  .oper-welcome-card { flex-wrap: wrap; }
  .oper-welcome-status { margin-left: 0; }
  .oper-dashboard-stats { grid-template-columns: 1fr; }
  .oper-dashboard-stat { min-height: 94px; }
  .oper-quick-actions { grid-template-columns: 1fr; }
}

/* 17.3.2 — cliente, retirada e previsão */
.oper-customer-picker {
  display: grid;
  gap: 12px;
  position: relative;
}
.oper-customer-picker__outside-dismiss { display: none; }
.oper-customer-picker__search { position: relative; }
.oper-customer-picker__search input { width: 100%; }
.oper-customer-picker__offline { margin: 0; }
.oper-customer-picker__dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 4px;
  z-index: 60;
  max-height: 280px;
  overflow: auto;
  border: 1px solid var(--oper-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(11,31,59,.16);
}
.oper-customer-picker__option {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid #f0f4f8;
  background: #fff;
  text-align: left;
  display: grid;
  gap: 2px;
  cursor: pointer;
}
.oper-customer-picker__option:hover,
.oper-customer-picker__option.active {
  background: #fff5eb;
}
.oper-customer-picker__option-name { font-weight: 600; color: var(--oper-navy); }
.oper-customer-picker__option-phone { font-size: .82rem; color: var(--oper-muted); }
.oper-customer-picker__option-badge {
  font-size: .7rem;
  color: #1565c0;
  font-weight: 600;
}
.oper-customer-picker__state {
  padding: 12px;
  color: var(--oper-muted);
  font-size: .88rem;
}
.oper-customer-picker__state--error {
  display: grid;
  gap: 8px;
  color: #c62828;
}
.oper-customer-picker__retry { justify-self: start; min-height: 40px; }
.oper-customer-picker__load-more {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-top: 1px solid var(--oper-border);
  background: #f8fafc;
  color: var(--oper-navy);
  font-weight: 700;
  cursor: pointer;
}
.oper-customer-picker__load-more:hover { background: #eef3f8; }
.oper-customer-picker__load-more:disabled { cursor: wait; opacity: .7; }
.oper-customer-picker__linked {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #e8f1fb;
}
.oper-customer-picker__linked-badge {
  font-size: .78rem;
  font-weight: 700;
  color: #1565c0;
}
.oper-customer-picker__walkin { justify-self: start; }
.oper-customer-picker__create,
.oper-customer-picker__create-inline {
  justify-self: start;
  margin-top: 4px;
}
.oper-customer-picker__create {
  width: 100%;
  min-height: 44px;
  border: none;
  border-top: 1px solid var(--oper-border);
  background: #fff8f2;
  color: var(--oper-primary);
  font-weight: 700;
  cursor: pointer;
  padding: 10px 12px;
}
.oper-customer-picker__create:hover { background: #fff3e8; }

.oper-customer-form,
.oper-customer-address-form,
.oper-cep-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.oper-sheet-body > label:not(.oper-choice),
.oper-customer-form label:not(.oper-choice),
.oper-customer-address-form label:not(.oper-choice),
.oper-cep-fields label:not(.oper-choice) {
  display: grid;
  gap: 6px;
  min-width: 0;
  font-weight: 600;
  color: var(--oper-navy);
  font-size: .92rem;
}
.oper-sheet-body > label:not(.oper-choice) input:not([type="checkbox"]):not([type="radio"]),
.oper-sheet-body > label:not(.oper-choice) textarea,
.oper-sheet-body > label:not(.oper-choice) select,
.oper-customer-form label input,
.oper-customer-form label textarea,
.oper-customer-address-form label input,
.oper-customer-address-form label textarea,
.oper-cep-fields label input,
.oper-cep-fields label select {
  width: 100%;
  box-sizing: border-box;
  min-height: var(--oper-touch);
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--oper-border);
  font: inherit;
  font-weight: 400;
  color: var(--oper-text);
  background: #fff;
}
.oper-customer-form textarea,
.oper-customer-address-form textarea,
.oper-sheet-body > label:not(.oper-choice) textarea {
  min-height: 96px;
  resize: vertical;
}
.oper-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.oper-choice input[type="checkbox"],
.oper-choice input[type="radio"] {
  width: 18px;
  min-height: 18px;
  padding: 0;
}
.oper-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.oper-form-row--3 {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) 96px;
}
@media (max-width: 560px) {
  .oper-form-row,
  .oper-form-row--3 { grid-template-columns: 1fr; }
  .oper-cep-fields__uf { max-width: none; }
}
.oper-field-error {
  display: block;
  margin-top: 4px;
  font-size: .78rem;
  color: #c62828;
  font-weight: 600;
}
.oper-field-hint {
  display: block;
  margin-top: 4px;
  font-size: .78rem;
  color: var(--oper-muted);
}
.oper-cep-fields__cep-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.oper-cep-fields__cep-row input {
  width: auto;
  flex: 1 1 auto;
  min-width: 0;
}
.oper-cep-fields__lookup { min-height: 44px; white-space: nowrap; }
.oper-cep-fields__uf { max-width: 88px; }

.oper-customer-list { display: flex; flex-direction: column; gap: 8px; }
.oper-customer-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--oper-border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.oper-customer-row:hover { border-color: #c5d3e0; background: #f8fbff; }
.oper-customer-row__main { display: flex; flex-direction: column; gap: 2px; }
.oper-customer-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}
.oper-address-card {
  border: 1px solid var(--oper-border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 10px;
  background: #fff;
}
.oper-address-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.oper-address-card__action {
  margin-top: 8px;
  min-height: 38px;
  padding: 0 12px;
  font-size: .82rem;
}
.oper-duplicate-list {
  margin: 8px 0 0;
  padding-left: 18px;
}
.oper-duplicate-list__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.oper-duplicate-list__use {
  min-height: 36px;
  padding: 0 12px;
  font-size: .82rem;
}
.oper-customer-detail p { margin: 6px 0; }

.oper-pickup-code {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 8px;
  background: #fff3e0;
  color: #e65100;
  font-weight: 800;
  letter-spacing: .04em;
}
.oper-copy-action {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.oper-copy-action__feedback {
  font-weight: 700;
}
.oper-copy-action__feedback.ok { color: #1b5e20; }
.oper-copy-action__feedback.error { color: #b71c1c; }
.oper-pickup-code--large {
  font-size: 1.05rem;
  padding: 4px 10px;
}
.oper-pickup-code--hero {
  display: block;
  text-align: center;
  font-size: 2rem;
  padding: 16px;
  margin: 12px 0;
  border-radius: 14px;
  border: 2px dashed #ff6a00;
  background: #fff8f2;
}

.oper-delayed-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ffebee;
  color: #c62828;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.oper-estimate-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.oper-estimate-chip {
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--oper-border);
  background: #fff;
  color: var(--oper-navy);
  font-weight: 600;
  cursor: pointer;
}
.oper-estimate-chip.active {
  border-color: var(--oper-primary);
  background: #fff5eb;
  color: var(--oper-primary);
}

/* Delivery 17.3.4 — address cards, sticky summary, dispatch */
.oper-address-cards {
  display: grid;
  gap: 8px;
}
.oper-address-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--oper-border);
  background: #fff;
  color: var(--oper-navy);
  cursor: pointer;
  min-height: 64px;
}
.oper-address-card:hover:not(:disabled) {
  border-color: var(--oper-primary);
}
.oper-address-card.selected {
  border-color: var(--oper-primary);
  background: #fff5eb;
  box-shadow: inset 0 0 0 1px var(--oper-primary);
}
.oper-address-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
}
.oper-address-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e8eef5;
  color: var(--oper-navy);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.oper-address-card.selected .oper-address-card__badge {
  background: #ffe0c2;
  color: var(--oper-primary);
}

.oper-delivery-summary {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: grid;
  gap: 6px;
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--oper-border);
  background: linear-gradient(180deg, #f7f9fc 0%, #fff 100%);
  box-shadow: 0 -6px 16px rgba(11, 31, 59, 0.06);
  font-size: .9rem;
}
.oper-delivery-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}
.oper-delivery-summary strong {
  text-align: right;
  font-weight: 600;
}

.oper-payment-chips.oper-estimate-chips {
  margin-top: 4px;
}

.oper-dispatch-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--oper-border);
  background: #fff;
}
.oper-dispatch-card__main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.oper-dispatch-card__main > div:first-child {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.oper-dispatch-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.oper-dispatch-card__actions select {
  min-height: 44px;
  min-width: 160px;
}

/* ── 17.3.4.2 — design system operacional compartilhado ───────────────────── */
.oper-btn:focus-visible,
.oper-chip-btn:focus-visible,
.oper-search:focus-visible,
.oper-select:focus-visible,
.oper-icon-btn:focus-visible,
.oper-inline-product:focus-visible,
.oper-counter-card:focus-visible,
.oper-table-tile:focus-visible,
.oper-quick-action:focus-visible,
.oper-dashboard-stat:focus-visible,
.oper-customer-row:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: none;
  box-shadow: var(--sb-focus-ring);
}

.oper-empty-state {
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: 28px 20px;
  border: 1px dashed var(--oper-border);
  border-radius: var(--sb-radius-lg);
  background: #fafbfd;
}
.oper-empty-state__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff5eb;
  color: var(--oper-primary);
}
.oper-empty-state__title {
  color: var(--oper-navy);
  font-size: 1rem;
}
.oper-empty-state__message {
  margin: 0;
  color: var(--oper-muted);
  font-size: var(--sb-font-sm);
  max-width: 42ch;
}
.oper-empty-state__action { margin-top: 6px; }

.oper-offline-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  border-radius: 10px;
  border: 1px solid #ffe0b2;
  background: #fff8e1;
  color: var(--oper-navy);
}
.oper-offline-banner > .oper-icon { color: var(--oper-warn); flex: 0 0 auto; margin-top: 2px; }
.oper-offline-banner strong { display: block; font-size: .9rem; }
.oper-offline-banner span { display: block; color: var(--oper-muted); font-size: var(--sb-font-sm); }

.oper-skeleton { display: grid; gap: 10px; padding: 8px 0; }
.oper-skeleton__line {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e8eef5 0%, #f5f8fb 50%, #e8eef5 100%);
  background-size: 200% 100%;
  animation: oper-skeleton-shine 1.2s ease-in-out infinite;
}
@keyframes oper-skeleton-shine {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.oper-form-section__hint { margin: 0 0 8px; font-size: var(--sb-font-sm); font-weight: 400; }

.oper-stepper {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}
.oper-stepper__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--oper-border);
  background: #fff;
  color: var(--oper-muted);
  font-size: .78rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.oper-stepper__item:disabled {
  opacity: .45;
  cursor: not-allowed;
}
button.oper-stepper__item { appearance: none; }
.oper-stepper__item.active {
  border-color: var(--oper-primary);
  background: #fff5eb;
  color: var(--oper-navy);
}
.oper-stepper__item.done {
  border-color: #c8e6c9;
  background: #ecfdf5;
  color: var(--oper-ok);
}
.oper-stepper__num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: currentColor;
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
}
.oper-stepper__item.active .oper-stepper__num,
.oper-stepper__item.done .oper-stepper__num {
  background: var(--oper-primary);
  color: #fff;
}
.oper-stepper__item.done .oper-stepper__num { background: var(--oper-ok); }

.oper-segmented button .oper-nav-badge,
.oper-segmented .oper-tab-count {
  display: inline-flex;
  min-width: 20px;
  height: 20px;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: rgba(11, 31, 59, .08);
  color: var(--oper-navy);
  font-size: .7rem;
  font-weight: 700;
}
.oper-segmented button.active .oper-tab-count {
  background: rgba(255, 106, 0, .16);
  color: var(--oper-primary);
}

/* Início — cards do turno (não dashboard gerencial) */
.oper-turn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}
.oper-turn-card {
  min-height: 96px;
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--oper-border);
  border-top: 3px solid var(--oper-primary);
  border-radius: 10px;
  box-shadow: var(--sb-shadow);
  color: inherit;
  text-decoration: none;
  transition: border-color var(--sb-transition), transform var(--sb-transition);
}
.oper-turn-card:hover { border-top-color: var(--oper-navy); transform: translateY(-1px); }
.oper-turn-card.has-attention { border-top-color: var(--oper-danger); }
.oper-turn-card > .oper-icon { color: var(--oper-primary); }
.oper-turn-card.has-attention > .oper-icon { color: var(--oper-danger); }
.oper-turn-card strong { color: var(--oper-navy); font-size: 1.6rem; line-height: 1; }
.oper-turn-card span { color: var(--oper-muted); font-size: var(--sb-font-sm); }

.oper-sync-sections { display: grid; gap: 14px; }
.oper-sync-section h3 {
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
}
.oper-details {
  border: 1px solid var(--oper-border);
  border-radius: 10px;
  background: #fff;
  padding: 0 12px;
}
.oper-details > summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  color: var(--oper-navy);
  list-style: none;
}
.oper-details > summary::-webkit-details-marker { display: none; }
.oper-details[open] > summary { border-bottom: 1px solid var(--oper-border); margin-bottom: 10px; }
.oper-details__body { padding: 0 0 12px; color: var(--oper-muted); font-size: var(--sb-font-sm); }

/* Atendimento mobile: alternar Produtos / Pedido */
.oper-attendance-mobile-tabs {
  display: none;
  margin-bottom: 10px;
}
.oper-attendance-mobile-tabs .oper-segmented { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
.oper-attendance-layout.show-catalog-mobile .oper-attendance-catalog { display: block; }
.oper-attendance-layout.show-catalog-mobile .oper-attendance-order { display: none; }
.oper-attendance-layout.show-order-mobile .oper-attendance-catalog { display: none; }
.oper-attendance-layout.show-order-mobile .oper-attendance-order { display: block; }

.oper-counter-workspace { display: grid; gap: 14px; }
.oper-counter-card.selected {
  border-color: var(--oper-primary);
  box-shadow: 0 0 0 2px rgba(255, 106, 0, .18);
}
.oper-counter-detail-desktop { display: none; }
.oper-counter-detail {
  background: var(--oper-surface);
  border: 1px solid var(--oper-border);
  border-radius: var(--oper-radius);
  box-shadow: var(--oper-shadow);
  padding: 16px;
  display: grid;
  gap: 12px;
  align-content: start;
  max-height: calc(100vh - 220px);
  overflow: auto;
  position: sticky;
  top: 12px;
}
.oper-counter-detail__head h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--oper-navy);
}
.oper-counter-detail__body {
  display: grid;
  gap: 8px;
  font-size: .9rem;
}
.oper-counter-detail__body p { margin: 0; }

.oper-sheet-sticky {
  position: sticky;
  bottom: 0;
  z-index: 3;
  margin-top: 12px;
  padding: 12px 0 4px;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #fff 24%);
}

/* Delivery — etapas bloqueadas: desabilitadas em todos os viewports */
.oper-delivery-form .oper-form-section.oper-step-locked,
.oper-delivery-summary.oper-step-locked {
  opacity: .45;
  pointer-events: none;
  filter: grayscale(.15);
}

/* Delivery — etapas no mobile: oculta seções futuras */
@media (max-width: 900px) {
  .oper-delivery-form .oper-form-section.oper-step-locked,
  .oper-delivery-summary.oper-step-locked {
    display: none;
  }
}

@media (min-width: 1024px) {
  .oper-counter-workspace.has-selection {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
    align-items: start;
  }
  .oper-counter-detail-desktop { display: grid; }
  .oper-sheet-counter-detail,
  .oper-sheet-counter-detail-backdrop {
    display: none !important;
  }
}

@media (max-width: 1023px) {
  .oper-counter-detail-desktop { display: none !important; }
}

.oper-settings-grid {
  display: grid;
  gap: 10px;
}
.oper-settings-row {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--oper-border);
  border-radius: 10px;
  background: #fff;
}
.oper-settings-row span { color: var(--oper-muted); font-size: var(--sb-font-sm); }
.oper-settings-row strong { color: var(--oper-navy); }

@media (max-width: 768px) {
  .oper-attendance-mobile-tabs { display: block; }
  .oper-attendance-layout { grid-template-columns: 1fr; }
  .oper-attendance-layout:not(.show-catalog-mobile):not(.show-order-mobile) .oper-attendance-catalog { display: none; }
  .oper-attendance-layout.show-catalog-mobile .oper-attendance-catalog {
    display: block;
    min-height: auto;
  }
  .oper-inline-product-list { max-height: none; }
  .oper-turn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 430px) {
  .oper-turn-grid { grid-template-columns: 1fr; }
}

/* Delivery — etapas no mobile: oculta seções futuras até a anterior concluir (legado removido — ver acima) */

.oper-config-sticky {
  position: sticky;
  bottom: 0;
  z-index: 3;
  margin-top: auto;
  padding-top: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #fff 28%);
}

.oper-simple-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 6px;
  color: var(--oper-navy);
}

.oper-choice:has(input:checked) {
  border-color: var(--oper-primary);
  background: #fff8f2;
  border-radius: 10px;
  padding: 6px 8px;
}

/* ── 17.3.4.3 — densidade e hierarquia ─────────────────────────────────────── */
.oper-home { display: grid; gap: 14px; max-width: 1100px; }
.oper-home-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 4px 0 2px;
}
.oper-home-bar h1 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--oper-navy);
  font-weight: 700;
}
.oper-home-bar p { margin: 2px 0 0; font-size: .85rem; }
.oper-home-bar__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.oper-btn-compact {
  min-height: 36px !important;
  padding: 0 12px !important;
  font-size: .8rem !important;
  text-transform: none !important;
}
.oper-home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
}
.oper-home-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--oper-border);
  border-left: 3px solid var(--oper-primary);
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  box-shadow: var(--sb-shadow);
  transition: border-color var(--sb-transition), transform var(--sb-transition);
}
.oper-home-tile:hover { border-left-color: var(--oper-navy); transform: translateY(-1px); }
.oper-home-tile.attention { border-left-color: var(--oper-danger); }
.oper-home-tile > .oper-icon { color: var(--oper-primary); flex: 0 0 auto; }
.oper-home-tile.attention > .oper-icon { color: var(--oper-danger); }
.oper-home-tile strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1.1;
  color: var(--oper-navy);
}
.oper-home-tile span {
  display: block;
  font-size: .78rem;
  color: var(--oper-muted);
  margin-top: 2px;
}

/* Empty dentro de painel: sem “caixa na caixa” */
.oper-panel > .oper-empty-state,
.oper-sync-section > .oper-empty-state {
  border: 0;
  background: transparent;
  padding: 16px 4px;
}
.oper-panel:has(> .oper-empty-state) {
  padding-top: 10px;
  padding-bottom: 10px;
}

.oper-sheet-body {
  padding-bottom: 8px;
}
.oper-sheet-body:has(.oper-config-sticky) {
  padding-bottom: 0;
}
.oper-config-sticky {
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}
.oper-sheet-body:has(.oper-config-sticky) {
  padding-bottom: 0;
}
.oper-sheet-body:has(.oper-config-sticky) .oper-form--config,
.oper-sheet-body:has(.oper-config-sticky) .oper-form-section:last-of-type {
  padding-bottom: 88px; /* folga para sticky não cobrir última opção no mobile */
}
@media (min-width: 769px) {
  .oper-sheet-body:has(.oper-config-sticky) .oper-form--config,
  .oper-sheet-body:has(.oper-config-sticky) .oper-form-section:last-of-type {
    padding-bottom: 16px;
  }
  .oper-sheet.oper-sheet-wide {
    width: min(920px, calc(100vw - 48px));
  }
  /* Delivery novo: sheet amplo no desktop (alternativa 3 colunas rejeitada — ver relatório 17.3.4.4) */
  .oper-sheet.oper-sheet-delivery {
    width: min(980px, calc(100vw - 64px));
    max-height: min(92vh, 900px);
  }
  .oper-sheet.oper-sheet-delivery .oper-sheet-body {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.9fr);
    gap: 16px 20px;
    align-content: start;
  }
  .oper-sheet.oper-sheet-delivery .oper-stepper {
    grid-column: 1 / -1;
  }
  .oper-sheet.oper-sheet-delivery .oper-delivery-form {
    grid-column: 1;
    min-width: 0;
  }
  .oper-sheet.oper-sheet-delivery .oper-sheet-sticky {
    grid-column: 2;
    grid-row: 2 / span 3;
    align-self: start;
    position: sticky;
    top: 0;
    margin-top: 0;
    padding: 12px;
    border: 1px solid var(--oper-border);
    border-radius: 12px;
    background: #fff;
  }
  .oper-sheet.oper-sheet-delivery .oper-alert {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .oper-sheet.oper-sheet-delivery .oper-sheet-body {
    display: flex;
    flex-direction: column;
  }
  .oper-sheet.oper-sheet-delivery .oper-sheet-sticky {
    position: sticky;
    bottom: 0;
    grid-column: auto;
    border: none;
    padding: 12px 0 4px;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #fff 24%);
  }
}

.oper-settings-section {
  margin-bottom: 14px;
}
.oper-settings-section > h3 {
  margin: 0 0 8px;
  font-size: .92rem;
  color: var(--oper-navy);
}
.oper-settings-grid { gap: 8px; }

.oper-dispatch-card__actions .oper-btn:not(.secondary):not(.danger) {
  /* ação primária do estado */
}
.oper-counter-card {
  gap: 6px;
  padding: 12px 14px;
}

@media (max-width: 430px) {
  .oper-home-grid { grid-template-columns: 1fr; }
}

/* ── 17.3.4.3 — Clientes, Delivery, Histórico, Cardápio local ─────────────── */

.oper-customers-toolbar {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.oper-customers-search {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  font-size: 1rem;
}

.oper-customers-table {
  border: 1px solid var(--oper-border);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: var(--sb-shadow);
}
.oper-customers-table__head,
.oper-customers-table__row {
  display: grid;
  grid-template-columns: minmax(140px, 1.4fr) minmax(100px, 1fr) minmax(90px, .8fr) 64px 72px;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
}
.oper-customers-table__head {
  background: #f4f7fb;
  border-bottom: 1px solid var(--oper-border);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--oper-muted);
  letter-spacing: .04em;
}
.oper-customers-table__row {
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--oper-border);
  background: #fff;
  cursor: pointer;
  transition: background var(--sb-transition);
}
.oper-customers-table__row:last-child { border-bottom: 0; }
.oper-customers-table__row:hover { background: #fff8f2; }
.oper-customers-table__row.pending { border-left: 3px solid var(--oper-status-pending); background: #f5f9ff; }
.oper-customers-table__row.conflict { border-left: 3px solid var(--oper-status-conflict); background: #fff7f7; }
.oper-customers-cell { min-width: 0; font-size: .78rem; }
.oper-customers-cell > strong,
.oper-customers-cell > small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oper-customers-cell > strong { color: var(--oper-navy); font-size: .85rem; }
.oper-customers-cell > small { margin-top: 2px; color: #8a98a8; font-size: .65rem; }
.oper-customers-cell--number { text-align: center; font-weight: 700; }
.oper-customers-cell--action {
  text-align: right;
  font-weight: 700;
  color: var(--oper-primary);
  font-size: .78rem;
}
.oper-customer-detail-grid { margin: 12px 0; }

.oper-address-card--static {
  cursor: default;
  min-height: auto;
}
.oper-address-card--static:hover { border-color: var(--oper-border); }
.oper-address-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.oper-delivery-list,
.oper-dispatch-list {
  display: grid;
  gap: 10px;
}
.oper-delivery-card {
  display: grid;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--oper-border);
  border-left-width: 3px;
  background: #fff;
  cursor: pointer;
  transition: transform var(--sb-transition), box-shadow var(--sb-transition);
}
.oper-delivery-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(11, 31, 59, .1);
}
.oper-delivery-card.occupied { border-left-color: var(--oper-status-occupied); }
.oper-delivery-card.pending { border-left-color: var(--oper-status-pending); background: #f5f9ff; }
.oper-delivery-card.conflict { border-left-color: var(--oper-status-conflict); background: #fff7f7; }
.oper-delivery-card.free { border-left-color: var(--oper-status-free); }
.oper-delivery-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.oper-delivery-card__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}
.oper-delivery-card__title strong {
  color: var(--oper-primary);
  font-size: .95rem;
}
.oper-delivery-card__title span {
  color: var(--oper-navy);
  font-weight: 600;
}
.oper-delivery-card__meta {
  display: grid;
  gap: 3px;
  color: var(--oper-muted);
  font-size: .78rem;
}
.oper-delivery-card__action {
  font-size: .78rem;
  font-weight: 700;
  color: var(--oper-primary);
}

.oper-dispatch-card {
  border-left-width: 3px;
}
.oper-dispatch-card--waiting { border-left-color: var(--oper-status-pending); }
.oper-dispatch-card--assigned { border-left-color: #F9A825; }
.oper-dispatch-card--route { border-left-color: var(--oper-status-occupied); }
.oper-dispatch-card--seated { border-left-color: var(--oper-status-free); }
.oper-dispatch-card--ended { border-left-color: var(--oper-border); opacity: .8; }
.oper-dispatch-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.oper-dispatch-card__header > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}
.oper-dispatch-card__header strong {
  color: var(--oper-primary);
  font-size: .95rem;
}
.oper-dispatch-card__meta {
  display: grid;
  gap: 3px;
  color: var(--oper-muted);
  font-size: .78rem;
}
.oper-dispatch-card__occurrence {
  color: #c62828;
  font-weight: 600;
}

.oper-order-summary .oper-session-header {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--oper-border);
}
.oper-order-summary__total {
  color: var(--oper-primary);
  font-size: 1.05rem;
}

.oper-timeline--detailed {
  position: relative;
  padding-left: 4px;
}
.oper-timeline__item {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 12px;
  padding: 0 0 16px;
  border-left: 0;
}
.oper-timeline__dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--oper-primary);
  box-shadow: 0 0 0 3px #fff5eb;
}
.oper-timeline__content {
  display: grid;
  gap: 3px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--oper-border);
}
.oper-timeline__item:last-child .oper-timeline__content { border-bottom: 0; padding-bottom: 0; }
.oper-timeline__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.oper-timeline__head strong { color: var(--oper-navy); }
.oper-timeline__head time {
  color: var(--oper-muted);
  font-size: .78rem;
  white-space: nowrap;
}
.oper-timeline__content small {
  color: var(--oper-muted);
  font-size: .75rem;
}

.oper-menu-product-list {
  margin-top: 12px;
  border: 1px solid var(--oper-border);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.oper-menu-product {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #f0f4f8;
}
.oper-menu-product:last-child { border-bottom: 0; }
.oper-menu-product > div:first-child { display: grid; gap: 2px; min-width: 0; }
.oper-menu-product strong { color: var(--oper-navy); font-size: .88rem; }
.oper-menu-product small { color: var(--oper-muted); font-size: .72rem; }
.oper-menu-product__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}
.oper-menu-product__meta b {
  color: var(--oper-primary);
  font-size: .85rem;
  white-space: nowrap;
}

.oper-management-row.occupied { border-left: 3px solid var(--oper-status-occupied); padding-left: 10px; }
.oper-management-row.unavailable { opacity: .75; }

.oper-flash-ok {
  animation: oper-flash-in .25s ease-out;
}
@keyframes oper-flash-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.oper-sheet-config .oper-sheet-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.oper-orders-toolbar-panel {
  padding-top: 12px;
  padding-bottom: 12px;
}

@media (max-width: 768px) {
  .oper-home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .oper-home-bar h1 { font-size: 1.1rem; }
  .oper-customers-table__head { display: none; }
  .oper-customers-table__row {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 6px 10px;
  }
  .oper-customers-cell--name { grid-column: 1; }
  .oper-customers-cell:nth-child(3),
  .oper-customers-cell--number { grid-column: 2; justify-self: end; }
  .oper-customers-cell:nth-child(2) { grid-column: 1 / -1; }
  .oper-customers-cell--action { grid-column: 2; grid-row: 3; }
  .oper-delivery-card__header { flex-direction: column; align-items: flex-start; }
  .oper-dispatch-card__actions { flex-direction: column; align-items: stretch; }
  .oper-dispatch-card__actions .oper-btn,
  .oper-dispatch-card__actions .oper-select { width: 100%; }
}

/* Histórico operacional — cards */
.oper-history-list {
  display: grid;
  gap: 10px;
}
.oper-history-card {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--oper-border);
  border-radius: var(--oper-radius);
  box-shadow: var(--oper-shadow);
  border-left: 4px solid var(--oper-primary);
  transition: background .15s ease, transform .15s ease;
}
.oper-history-card:hover {
  background: #fff8f2;
  transform: translateY(-1px);
}
.oper-history-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.oper-history-card__title {
  display: grid;
  gap: 2px;
}
.oper-history-card__title strong {
  color: var(--oper-navy);
  font-size: .95rem;
}
.oper-history-card__title span {
  color: var(--oper-muted);
  font-size: .82rem;
}
.oper-history-card__body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  font-size: .85rem;
}
.oper-history-card__body > div {
  display: grid;
  gap: 2px;
}
.oper-history-card__body small {
  color: var(--oper-muted);
  font-size: .78rem;
}
.oper-history-card__action {
  justify-self: end;
  color: var(--oper-primary);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
}
@media (max-width: 768px) {
  .oper-history-card__body {
    grid-template-columns: 1fr;
  }
}
