/* ═══════════════════════════════════════════════════════════
   MODO PRODUÇÃO — tablet acabamento (10.1" landscape/portrait)
   ═══════════════════════════════════════════════════════════ */
body.modo-producao {
  font-size: 15px;
  background: #E8ECF3;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  /* Tokens — ajustados por orientação abaixo (tablet 10.1") */
  --acab-btn-h: 56px;
  --acab-btn-fs: 16px;
  --acab-thumb: 80px;
  --acab-os-num: 24px;
  --acab-chip-h: 44px;
  --acab-dock-h: 80px;
  --acab-pad-x: 16px;
}

body.modo-producao .sb { display: none !important; }
body.modo-producao .main-wrap { margin-left: 0 !important; }
body.modo-producao .tb-menu { display: none !important; }

body.modo-producao .topbar {
  height: 56px;
  padding: 0 16px;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
  background: #0D1526;
  border-bottom: none;
  box-shadow: 0 2px 16px rgba(0, 0, 0, .18);
}
body.modo-producao .tb-title {
  font-size: 16px;
  font-weight: 800;
  color: #F8FAFC;
  letter-spacing: -.2px;
}
body.modo-producao .tb-user .tb-uname { font-size: 13px; color: rgba(255,255,255,.75); }
body.modo-producao .tb-time { color: #F8FAFC; font-weight: 700; }

body.modo-producao .ca {
  padding: 14px var(--acab-pad-x) calc(var(--acab-dock-h) + 20px) !important;
  padding-bottom: calc(var(--acab-dock-h) + 20px + env(safe-area-inset-bottom)) !important;
  background: #E8ECF3;
}

body.modo-producao .acab-dock { display: flex; }

/* ─── Shell / layout ─── */
.acab-shell { max-width: 1280px; margin: 0 auto; }

.acab-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.acab-hero-text h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -.5px;
  line-height: 1.15;
}
.acab-hero-text p {
  margin: 6px 0 0;
  font-size: 14px;
  color: #64748B;
  font-weight: 500;
}
.acab-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ─── KPI tiles (dashboard) ─── */
.acab-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}
.acab-tile {
  position: relative;
  border: none;
  border-radius: 18px;
  padding: 20px 22px;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 20px rgba(15, 23, 42, .08);
}
.acab-tile:active { transform: scale(.98); }
.acab-tile-desp {
  background: linear-gradient(145deg, #FFFBEB 0%, #FEF3C7 100%);
  border: 2px solid #FCD34D;
}
.acab-tile-ret {
  background: linear-gradient(145deg, #F5F3FF 0%, #EDE9FE 100%);
  border: 2px solid #C4B5FD;
}
.acab-tile-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .7px;
  margin-bottom: 10px;
}
.acab-tile-desp .acab-tile-label { color: #B45309; }
.acab-tile-ret .acab-tile-label { color: #6D28D9; }
.acab-tile-val {
  font-family: var(--mono);
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
}
.acab-tile-desp .acab-tile-val { color: #D97706; }
.acab-tile-ret .acab-tile-val { color: #7C3AED; }
.acab-tile-sub {
  font-size: 13px;
  font-weight: 600;
  margin-top: 6px;
  opacity: .85;
}
.acab-tile-side {
  position: absolute;
  top: 18px;
  right: 18px;
  text-align: right;
}
.acab-tile-side-val {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 800;
  color: #059669;
}
.acab-tile-side-lbl { font-size: 10px; font-weight: 700; color: #64748B; margin-top: 2px; }
.acab-tile-alert {
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(220, 38, 38, .12);
  color: #DC2626;
  font-size: 12px;
  font-weight: 700;
}

/* ─── Stats row ─── */
.acab-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.acab-stat {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 14px 16px;
  border-left: 4px solid var(--acab-stat-accent, #2563EB);
  box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
}
.acab-stat-lbl {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #94A3B8;
  margin-bottom: 6px;
}
.acab-stat-val {
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 800;
  color: var(--acab-stat-accent, #2563EB);
}

/* ─── Queue panels ─── */
.acab-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
.acab-panel {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(15, 23, 42, .05);
}
.acab-panel-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #F1F5F9;
  background: #FAFBFD;
}
.acab-panel-title {
  font-size: 14px;
  font-weight: 800;
  color: #0F172A;
}
.acab-panel-bd { padding: 6px 14px 10px; max-height: 340px; overflow-y: auto; }
.acab-queue-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid #F1F5F9;
  cursor: pointer;
  transition: background .12s;
}
.acab-queue-item:last-child { border-bottom: none; }
.acab-queue-item:active { background: #F8FAFC; }
.acab-queue-os {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 800;
  color: #2563EB;
  flex-shrink: 0;
}
.acab-queue-body { flex: 1; min-width: 0; }
.acab-queue-cli {
  font-size: 14px;
  font-weight: 700;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.acab-queue-meta { font-size: 11px; color: #94A3B8; margin-top: 3px; }
.acab-queue-badge {
  flex-shrink: 0;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.acab-queue-badge.prod { background: #FEF3C7; color: #B45309; }
.acab-queue-badge.ok { background: #D1FAE5; color: #059669; }

/* ─── Alert strip ─── */
.acab-alerts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.acab-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.acab-alert:active { opacity: .9; }

/* ═══ PÁGINA OPERACIONAL (despacho / balcão) ═══ */
.pg-producao .acab-op-header {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 14px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, .05);
  position: sticky;
  top: 0;
  z-index: 40;
}
.pg-producao .acab-op-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.pg-producao .acab-op-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pg-producao .acab-op-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.pg-producao .acab-op-icon.desp { background: #FEF3C7; }
.pg-producao .acab-op-icon.ret { background: #EDE9FE; }
.pg-producao .acab-op-title h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -.3px;
}
.pg-producao .acab-op-title span {
  display: block;
  font-size: 12px;
  color: #64748B;
  font-weight: 500;
  margin-top: 2px;
}
.pg-producao .acab-op-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pg-producao .acab-date-inp {
  height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #E2E8F0;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  background: #F8FAFC;
}
.pg-producao .acab-search {
  flex: 1;
  min-width: 160px;
  max-width: 280px;
  position: relative;
}
.pg-producao .acab-search input {
  width: 100%;
  height: 44px;
  padding: 0 14px 0 40px;
  border-radius: 10px;
  border: 1px solid #E2E8F0;
  font-size: 14px;
  font-weight: 600;
  background: #F8FAFC;
}
.pg-producao .acab-search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94A3B8;
  pointer-events: none;
}

/* Tabs */
.acab-tabs {
  display: flex;
  gap: 6px;
  background: #F1F5F9;
  padding: 5px;
  border-radius: 12px;
  margin-bottom: 12px;
}
.acab-tab {
  flex: 1;
  min-height: 48px;
  border: none;
  border-radius: 9px;
  background: transparent;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  color: #64748B;
  cursor: pointer;
  transition: background .15s, color .15s, box-shadow .15s;
}
.acab-tab.active {
  background: #fff;
  color: #0F172A;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .08);
}
.acab-tab-count {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  background: #E2E8F0;
  color: #475569;
}
.acab-tab.active .acab-tab-count { background: #DBEAFE; color: #2563EB; }

/* Filter chips */
.acab-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.acab-chip {
  min-height: var(--acab-chip-h);
  padding: 0 16px;
  border-radius: 20px;
  border: 2px solid #E2E8F0;
  background: #fff;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  color: #64748B;
  cursor: pointer;
  transition: all .12s;
}
.acab-chip.active {
  border-color: #2563EB;
  background: #EFF6FF;
  color: #2563EB;
}
.acab-chip.warn.active {
  border-color: #F59E0B;
  background: #FFFBEB;
  color: #D97706;
}

/* KPI strip operacional */
.acab-op-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.acab-op-kpi {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 12px 14px;
  text-align: center;
}
.acab-op-kpi-lbl {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: #94A3B8;
  margin-bottom: 4px;
}
.acab-op-kpi-val {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

/* Transportadora chips */
.acab-transp-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 14px;
}
.acab-transp-lbl {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: #94A3B8;
  margin-right: 4px;
}

/* Cidade block */
.acab-cidade-block {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(15, 23, 42, .05);
  margin-bottom: 14px;
}
.acab-cidade-hd {
  padding: 14px 18px;
  border-bottom: 1px solid #F1F5F9;
  background: linear-gradient(180deg, #FAFBFD 0%, #F8FAFC 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.acab-cidade-nome {
  font-size: 17px;
  font-weight: 800;
  color: #0F172A;
}
.acab-cidade-meta {
  font-size: 13px;
  color: #64748B;
  margin-top: 2px;
  font-weight: 600;
}
.acab-cidade-btn {
  min-height: 48px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  border-radius: 12px !important;
  padding: 0 20px !important;
}

/* OS cards — grid no tablet */
.acab-os-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 700px) {
  .acab-os-grid { grid-template-columns: 1fr 1fr; gap: 1px; background: #F1F5F9; }
}
@media (min-width: 1100px) {
  .acab-os-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.acab-queue-item.urg-vermelho { background: #FEF2F2; border-left: 4px solid #DC2626; }
.acab-queue-item.urg-laranja { background: #FFFBEB; border-left: 4px solid #F59E0B; }
.acab-queue-item.urg-verde { background: #F0FDF4; border-left: 4px solid #059669; }
.acab-urg-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.acab-priority-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  padding: 10px 14px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
}
.acab-urg-leg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}
.acab-urg-leg i {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.acab-urg-leg.urg-vermelho i { background: #DC2626; }
.acab-urg-leg.urg-laranja i { background: #F59E0B; }
.acab-urg-leg.urg-verde i { background: #059669; }

.acab-priority-grid .acab-os-card:first-child { border-top: 2px solid #E2E8F0; }

.acab-os-card.urg-vermelho { background: #FEF2F2; border-left: 5px solid #DC2626; }
.acab-os-card.urg-laranja { background: #FFFBEB; border-left: 5px solid #F59E0B; }
.acab-os-card.urg-verde { background: #F0FDF4; border-left: 5px solid #059669; }
.acab-os-card.urg-vermelho.pronto { border-left-width: 5px; }
.acab-os-card.urg-laranja.pronto { border-left-width: 5px; }
.acab-os-card.urg-verde.pronto { border-left-width: 5px; }

.acab-urg-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  background: color-mix(in srgb, var(--urg) 12%, white);
  color: var(--urg);
  border: 1px solid color-mix(in srgb, var(--urg) 35%, white);
}

.acab-chip.urg-vermelho.active { background: #FEE2E2; border-color: #FECACA; color: #DC2626; }

.acab-os-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-bottom: 1px solid #F1F5F9;
  transition: background .12s;
}
.acab-os-card.atraso { background: #FFFBEB; }
.acab-os-card.pronto { border-left: 4px solid #059669; }
.acab-os-card.prod { border-left: 4px solid #F59E0B; }

.acab-os-main {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  flex: 1;
}
.acab-os-main:active { background: #F8FAFC; }

.acab-os-thumb {
  width: var(--acab-thumb);
  height: var(--acab-thumb);
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: #0F172A;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #E2E8F0;
}
.acab-os-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.acab-os-thumb-empty { color: #64748B; font-size: 28px; }

.acab-os-body { flex: 1; min-width: 0; }
.acab-os-num {
  font-family: var(--mono);
  font-size: var(--acab-os-num);
  font-weight: 800;
  color: #2563EB;
  line-height: 1;
}
.acab-os-cli {
  font-size: 15px;
  font-weight: 700;
  color: #0F172A;
  margin-top: 5px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.acab-os-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 8px;
  font-size: 12px;
  color: #64748B;
  font-weight: 600;
}
.acab-os-meta strong { color: #334155; }

.acab-os-status {
  flex-shrink: 0;
  align-self: flex-start;
  padding: 6px 11px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .35px;
}
.acab-os-status.st-prod { background: #FEF3C7; color: #B45309; }
.acab-os-status.st-conf { background: #D1FAE5; color: #059669; }
.acab-os-status.st-done { background: #E0E7FF; color: #4338CA; }

/* Stepper */
.acab-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 10px;
}
.acab-step {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #CBD5E1;
  text-transform: uppercase;
  letter-spacing: .2px;
}
.acab-step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #E2E8F0;
  flex-shrink: 0;
}
.acab-step.done { color: #059669; }
.acab-step.done .acab-step-dot { background: #059669; }
.acab-step.current { color: #2563EB; }
.acab-step.current .acab-step-dot {
  background: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .25);
}
.acab-step-line {
  width: 16px;
  height: 2px;
  background: #E2E8F0;
  margin: 0 4px;
  flex-shrink: 0;
}
.acab-step-line.done { background: #059669; }

/* Card actions */
.acab-os-actions {
  display: flex;
  gap: 8px;
  padding: 0 18px 16px;
}
.acab-os-actions .btn {
  flex: 1;
  min-height: var(--acab-btn-h) !important;
  font-size: var(--acab-btn-fs) !important;
  font-weight: 800 !important;
  border-radius: 12px !important;
  justify-content: center;
}
.acab-os-wait {
  padding: 10px 18px 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #94A3B8;
}
.acab-os-done {
  padding: 10px 18px 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #059669;
}

/* Empty state */
.acab-empty {
  text-align: center;
  padding: 56px 24px;
  color: #94A3B8;
}
.acab-empty-icon { font-size: 48px; margin-bottom: 12px; }
.acab-empty-title {
  font-size: 18px;
  font-weight: 800;
  color: #334155;
  margin-bottom: 4px;
}

/* Hint bar */
.acab-hint {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 12px;
  font-size: 13px;
  color: #1E40AF;
  line-height: 1.45;
  margin-bottom: 14px;
  font-weight: 500;
}
.acab-hint strong { font-weight: 800; }

/* ─── Dock inferior ─── */
.acab-dock {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  height: var(--acab-dock-h);
  padding: 8px 12px;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
  background: #0D1526;
  border-top: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, .28);
  align-items: stretch;
  justify-content: space-around;
  gap: 4px;
}
.acab-dock.hidden { display: none !important; }

.acab-dock-btn {
  position: relative;
  flex: 1;
  max-width: 140px;
  min-height: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: none;
  border-radius: 14px;
  background: transparent;
  color: rgba(255, 255, 255, .45);
  cursor: pointer;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 4px;
  transition: background .15s, color .15s;
}
.acab-dock-btn svg { width: 26px; height: 26px; flex-shrink: 0; }
.acab-dock-btn.active {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}
.acab-dock-btn.active svg { stroke: #60A5FA; }
.acab-dock-badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 22px);
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #EF4444;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(239, 68, 68, .5);
}
.acab-dock-sair {
  color: rgba(255, 255, 255, .35) !important;
  max-width: 64px;
}
.acab-dock-sair:active { background: rgba(239, 68, 68, .2); color: #FCA5A5 !important; }

/* Modal arte — tela cheia tablet */
body.modo-producao .ov-producao-full .modal {
  max-width: 100% !important;
  width: calc(100vw - 16px) !important;
  max-height: calc(100vh - 16px) !important;
  margin: 8px;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
}
body.modo-producao .ov-producao-full .mbody {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px !important;
}
body.modo-producao .ov-producao-full .mft .btn {
  min-height: 52px;
  flex: 1;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
}
body.modo-producao .ov-producao-full .mft { display: flex; gap: 8px; }

/* Localizar */
body.modo-producao .loc-camera-cta { max-width: 100% !important; }
body.modo-producao .loc-camera-cta { padding: 36px 20px !important; }
body.modo-producao .loc-camera-cta .loc-title { font-size: 20px !important; }
body.modo-producao #cameraWrap .loc-capture-btn {
  min-height: 56px;
  font-size: 16px;
  padding: 14px 36px;
}

body.modo-producao .loc-prod-wrap .loc-camera-card:active {
  transform: scale(.98);
  border-color: #60A5FA !important;
}

/* Modal arte — botões fixos no rodapé em retrato */
@media (orientation: portrait) and (max-width: 920px) {
  body.modo-producao .ov-producao-full .mft {
    position: sticky;
    bottom: 0;
    background: #fff;
    border-top: 1px solid #E2E8F0;
    padding: 12px 14px !important;
  }
  body.modo-producao .ov-producao-full .mft .btn {
    min-height: 56px;
    font-size: 16px;
  }
}

/* Botões globais produção */
body.modo-producao .btn { min-height: var(--acab-chip-h); font-size: 14px; padding: 0 18px; }
body.modo-producao .btn-g { min-height: var(--acab-btn-h); font-size: var(--acab-btn-fs); font-weight: 800; }

/* ═══════════════════════════════════════════════════════════
   TABLET 10.1" — retrato (~800×1280)
   Uma coluna, botões grandes, polegar na parte inferior
   ═══════════════════════════════════════════════════════════ */
@media (orientation: portrait) and (max-width: 920px) {
  body.modo-producao {
    --acab-btn-h: 60px;
    --acab-btn-fs: 17px;
    --acab-thumb: 92px;
    --acab-os-num: 26px;
    --acab-chip-h: 48px;
    --acab-dock-h: 84px;
    --acab-pad-x: 14px;
    font-size: 16px;
  }

  body.modo-producao .topbar { height: 52px; }
  body.modo-producao .tb-title { font-size: 15px; }

  .acab-hero { flex-direction: column; align-items: stretch; }
  .acab-hero-text h1 { font-size: 24px; }
  .acab-hero-actions { width: 100%; }
  .acab-hero-actions .btn { flex: 1; justify-content: center; min-height: 48px; }

  .acab-tiles,
  .acab-panels,
  .acab-stats { grid-template-columns: 1fr; }

  .acab-tile { padding: 22px 20px; min-height: 120px; }
  .acab-tile-val { font-size: 52px; }

  .acab-panel-bd { max-height: 280px; }

  .pg-producao .acab-op-top { flex-direction: column; align-items: stretch; }
  .pg-producao .acab-op-tools { width: 100%; }
  .pg-producao .acab-op-tools .acab-date-inp { flex: 1; min-width: 0; }
  .pg-producao .acab-search { max-width: none; width: 100%; margin-top: 12px; }
  .pg-producao .acab-search input { height: 48px; font-size: 16px; }

  .acab-tabs { width: 100%; }
  .acab-tab { min-height: 52px; font-size: 15px; }

  .acab-op-kpis { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .acab-op-kpi-val { font-size: 24px; }

  .acab-os-grid { grid-template-columns: 1fr !important; }

  .acab-os-main { padding: 18px 16px; gap: 16px; }
  .acab-os-cli { font-size: 16px; }
  .acab-os-meta { font-size: 13px; }

  /* Stepper: só bolinhas no retrato estreito — rótulos menores */
  .acab-step { font-size: 0; gap: 0; }
  .acab-step-dot { width: 12px; height: 12px; }
  .acab-step-line { width: 20px; }

  .acab-cidade-hd { flex-direction: column; align-items: stretch; }
  .acab-cidade-btn { width: 100%; min-height: 56px !important; }

  .acab-filters { gap: 6px; }
  .acab-chip { font-size: 14px; padding: 0 14px; }

  .acab-dock-btn { font-size: 10px; max-width: none; }
  .acab-dock-badge { right: 8px; top: 2px; min-width: 20px; height: 20px; font-size: 11px; }
}

/* ═══════════════════════════════════════════════════════════
   TABLET 10.1" — paisagem (~1280×800)
   Grid 3 colunas, painéis lado a lado, mais densidade
   ═══════════════════════════════════════════════════════════ */
@media (orientation: landscape) and (min-width: 900px) and (max-height: 920px) {
  body.modo-producao {
    --acab-btn-h: 52px;
    --acab-btn-fs: 15px;
    --acab-thumb: 68px;
    --acab-os-num: 20px;
    --acab-chip-h: 42px;
    --acab-dock-h: 72px;
    --acab-pad-x: 18px;
  }

  body.modo-producao .topbar { height: 48px; }
  body.modo-producao .ca { padding-top: 10px !important; }

  .acab-shell { max-width: 100%; }

  .acab-hero { margin-bottom: 12px; }
  .acab-hero-text h1 { font-size: 22px; }
  .acab-tiles { gap: 12px; margin-bottom: 12px; }
  .acab-tile { padding: 16px 18px; }
  .acab-tile-val { font-size: 40px; }

  .acab-stats { margin-bottom: 12px; }
  .acab-panels { gap: 12px; }
  .acab-panel-bd { max-height: 220px; }

  .pg-producao .acab-op-header { padding: 12px 16px; margin-bottom: 10px; }
  .pg-producao .acab-op-icon { width: 42px; height: 42px; font-size: 20px; }
  .pg-producao .acab-op-title h2 { font-size: 18px; }

  .acab-op-kpis { grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
  .acab-op-kpi { padding: 8px 10px; }
  .acab-op-kpi-val { font-size: 22px; }

  .acab-os-grid { grid-template-columns: 1fr 1fr 1fr !important; }

  .acab-os-main { padding: 12px 14px; gap: 10px; }
  .acab-os-actions { padding: 0 14px 12px; }
  .acab-hint { padding: 10px 14px; font-size: 12px; margin-bottom: 10px; }

  .acab-filters { margin-bottom: 10px; }

  .acab-dock-btn svg { width: 22px; height: 22px; }
  .acab-dock-btn { font-size: 10px; min-height: 48px; }
}

/* Paisagem média (2 colunas) */
@media (orientation: landscape) and (min-width: 700px) and (max-width: 899px) {
  .acab-os-grid { grid-template-columns: 1fr 1fr !important; }
  .acab-panels { grid-template-columns: 1fr 1fr; }
}

/* Telas estreitas genéricas */
@media (max-width: 720px) and (orientation: landscape) {
  .acab-op-kpis { grid-template-columns: repeat(4, 1fr); }
}
