/* =========================================================================
   Operacional — Visao geral v2 (redesign do Claude Design)
   -------------------------------------------------------------------------
   Regras de convivencia (validadas por scripts/validate-css.mjs):
   - Toda regra comeca por #operacionalShell.op-v2. A classe .op-v2 so entra na
     casca quando a flag de sessao OPERACIONAL_VISAO_GERAL_V2 libera o usuario.
   - Tokens com prefixo exclusivo --opv2-* (declarados so no bloco de tokens).
   - font-size sempre por token --opv2-fs-* (sem literal nas regras).
   - Nada de .app-shell/.sidebar soltos: essas classes sao compartilhadas com
     Financeiro, Comercial e Atendimento.
   ========================================================================= */

/* OPV2-TOKENS */
#operacionalShell.op-v2 {
  --opv2-bg: #f3f1ec;
  --opv2-surface: #ffffff;
  --opv2-surface-2: #f8f6f2;
  --opv2-surface-3: #efece6;
  --opv2-track: #e9e5de;
  --opv2-line: #e6e1d8;
  --opv2-line-2: #d8d1c5;
  --opv2-control: #948c80;
  --opv2-ink: #20262f;
  --opv2-ink-2: #3d434e;
  --opv2-muted: #625a51;
  --opv2-faint: #6e665c;
  --opv2-neutral-ink: #564f47;
  --opv2-row-hover: #f7f5f0;

  --opv2-green: #1f9a68;
  --opv2-green-ink: #0a7049;
  --opv2-green-soft: #e3f3eb;
  --opv2-green-line: #b9e0cc;
  --opv2-red: #d4572f;
  --opv2-red-ink: #ad3a19;
  --opv2-red-soft: #fbe9e2;
  --opv2-red-value: #c0431f;
  --opv2-red-line: #f0c6b7;
  --opv2-amber: #c98a12;
  --opv2-amber-ink: #835400;
  --opv2-amber-soft: #fcf0d6;
  --opv2-amber-line: #ecd29a;
  --opv2-blue: #2f6fad;
  --opv2-blue-ink: #245f98;
  --opv2-blue-soft: #e8f0f9;
  --opv2-blue-2: #6b9bd1;
  --opv2-blue-line: #c5d8ec;
  --opv2-blue-hover: #285f95;
  --opv2-link-hover: #1d4f80;
  --opv2-brand: #a56b00;
  --opv2-brand-text: #976200;
  --opv2-brand-soft: #f7eddb;
  --opv2-brand-ink: #7a4f00;
  --opv2-card-hover-line: #d8c7a3;

  --opv2-r-band: 18px;
  --opv2-r-card: 16px;
  --opv2-r-panel: 14px;
  --opv2-r-inner: 12px;
  --opv2-r-alert: 10px;
  --opv2-r-control: 9px;
  --opv2-r-pill: 999px;

  --opv2-shadow-card: 0 1px 0 rgba(32, 38, 47, .03), 0 10px 24px -20px rgba(32, 38, 47, .35);
  --opv2-shadow-pop: 0 2px 4px rgba(32, 38, 47, .06), 0 24px 48px -16px rgba(32, 38, 47, .32);
  --opv2-shadow-hover: 0 12px 26px -18px rgba(165, 107, 0, .45);
  --opv2-shadow-drawer: 0 4px 10px rgba(20, 16, 10, .10), 0 40px 90px -20px rgba(20, 16, 10, .45);
  --opv2-backdrop: rgba(28, 24, 18, .46);
  --opv2-focus: 2px solid #2f6fad;

  --opv2-font-display: "Inter", "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --opv2-font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --opv2-font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Escala tipografica fechada (papeis). Os tres menores seguem a escala global. */
  --opv2-fs-mini: 11px;
  --opv2-fs-caption: var(--fs-xs);
  --opv2-fs-note: 13px;
  --opv2-fs-body: 14px;
  --opv2-fs-lead: 15px;
  --opv2-fs-section: 17px;
  --opv2-fs-h3: 18px;
  --opv2-fs-h2: 20px;
  --opv2-fs-unit: 22px;
  --opv2-fs-measure: 26px;
  --opv2-fs-summary: 30px;
  --opv2-fs-page: 30px;
  --opv2-fs-pair: 34px;
  --opv2-fs-card: 40px;
  --opv2-fs-big-sm: 38px;
  --opv2-fs-big-md: 42px;
  --opv2-fs-big: 50px;
  --opv2-fs-unit-sm: 17px;
  --opv2-fs-card-sm: 32px;
  --opv2-fs-mobile-title: 20px;
}
/* /OPV2-TOKENS */

/* ---------------- casca ---------------- */
#operacionalShell.op-v2 {
  background: var(--opv2-bg);
  color: var(--opv2-ink);
  font-family: var(--opv2-font-body);
}
#operacionalShell.op-v2 .opv2-num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
#operacionalShell.op-v2 :is(button, a, input, select, textarea, [tabindex]):focus-visible {
  outline: var(--opv2-focus);
  outline-offset: 2px;
}
#operacionalShell.op-v2 .opv2-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
#operacionalShell.op-v2 .opv2-ico { flex: none; display: block; }

@media screen {
  #operacionalShell.op-v2 .content {
    max-width: 1920px;
    padding: 16px 34px 28px;
  }
}

/* barra lateral */
#operacionalShell.op-v2 .sidebar {
  background: var(--opv2-surface);
  border-right: 1px solid var(--opv2-line);
  padding: 18px 12px 16px;
  z-index: 60;
}
#operacionalShell.op-v2 .brand { padding: 4px 6px 18px; gap: 10px; }
#operacionalShell.op-v2 .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--opv2-brand);
  box-shadow: none;
  font-family: var(--opv2-font-display);
  font-size: var(--opv2-fs-lead);
  font-weight: 700;
}
#operacionalShell.op-v2 .brand .brand-mark { display: grid; place-items: center; flex: none; color: #ffffff; }
#operacionalShell.op-v2 .brand strong { font-family: var(--opv2-font-display); font-size: var(--opv2-fs-body); font-weight: 700; color: var(--opv2-ink); }
#operacionalShell.op-v2 .brand div > span { font-size: var(--opv2-fs-note); color: var(--opv2-muted); }
#operacionalShell.op-v2 .nav-list { gap: 2px; }
#operacionalShell.op-v2 .nav-item {
  min-height: 40px;
  border-radius: var(--opv2-r-control);
  padding: 8px 10px;
  gap: 10px;
  color: var(--opv2-ink-2);
  font-family: var(--opv2-font-body);
  font-size: var(--opv2-fs-body);
  font-weight: 500;
  box-shadow: none;
}
#operacionalShell.op-v2 .nav-item::before { display: none; }
#operacionalShell.op-v2 .nav-item .op-nav-ico {
  display: inline-flex;
  width: 18px;
  color: var(--opv2-faint);
}
#operacionalShell.op-v2 .nav-item:hover { background: var(--opv2-surface-3); color: var(--opv2-ink); }
#operacionalShell.op-v2 .nav-item.active {
  background: var(--opv2-brand-soft);
  color: var(--opv2-brand-ink);
  font-weight: 600;
  box-shadow: none;
}
#operacionalShell.op-v2 .nav-item.active .op-nav-ico { color: var(--opv2-brand); }
#operacionalShell.op-v2 .nav-item.central-back { color: var(--opv2-muted); font-weight: 500; }
#operacionalShell.op-v2 .nav-item.logout-button { color: var(--opv2-red-ink); font-weight: 600; margin-top: auto; }
#operacionalShell.op-v2 .nav-item.logout-button:hover { background: var(--opv2-red-soft); }
#operacionalShell.op-v2 .nav-subitem.active { background: var(--opv2-brand-soft); color: var(--opv2-brand-ink); }

/* cabecalho com status */
#operacionalShell.op-v2 .topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 16px;
  min-height: 56px;
  margin-bottom: 14px;
}
#operacionalShell.op-v2 .topbar > div:not(.opv2-header-status) { min-width: 0; }
#operacionalShell.op-v2 .topbar .eyebrow {
  margin: 0 0 4px;
  font-family: var(--opv2-font-display);
  font-size: var(--opv2-fs-caption);
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--opv2-brand-text);
}
#operacionalShell.op-v2 .topbar h1 {
  font-family: var(--opv2-font-display);
  font-size: var(--opv2-fs-page);
  font-weight: 700;
  letter-spacing: -.012em;
  line-height: 1.1;
  color: var(--opv2-ink);
}
#operacionalShell.op-v2 #operacionalStatusLine { display: none; }
#operacionalShell.op-v2 .opv2-header-status { display: contents; }
#operacionalShell.op-v2 .opv2-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 12px;
  margin-left: auto;
  font-size: var(--opv2-fs-note);
  color: var(--opv2-muted);
}
#operacionalShell.op-v2 .opv2-status-endpoint b { color: var(--opv2-ink-2); font-weight: 600; }
#operacionalShell.op-v2 .opv2-status-divider { width: 1px; height: 18px; background: var(--opv2-line-2); }
#operacionalShell.op-v2 .opv2-status-mobile,
#operacionalShell.op-v2 .opv2-icon-btn.opv2-status-refresh-icon,
#operacionalShell.op-v2 .opv2-icon-btn.opv2-menu-btn { display: none; }
#operacionalShell.op-v2 .opv2-source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 2px 10px 2px 8px;
  border-radius: var(--opv2-r-pill);
  background: var(--opv2-blue-soft);
  color: var(--opv2-blue-ink);
  font-size: var(--opv2-fs-caption);
  font-weight: 600;
  white-space: nowrap;
}
#operacionalShell.op-v2 .opv2-source.is-loading { background: var(--opv2-surface-3); color: var(--opv2-ink-2); }
#operacionalShell.op-v2 .opv2-source.is-error { background: var(--opv2-red-soft); color: var(--opv2-red-ink); }

/* ---------------- controles basicos ---------------- */
#operacionalShell.op-v2 .opv2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 14px;
  border: 1px solid var(--opv2-control);
  border-radius: var(--opv2-r-control);
  background: var(--opv2-surface);
  color: var(--opv2-ink);
  font-family: var(--opv2-font-body);
  font-size: var(--opv2-fs-body);
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
#operacionalShell.op-v2 .opv2-btn:hover:not(:disabled) { background: var(--opv2-surface-2); border-color: var(--opv2-ink-2); }
#operacionalShell.op-v2 .opv2-btn:disabled { background: var(--opv2-surface-3); color: var(--opv2-faint); border-color: var(--opv2-line-2); cursor: default; }
#operacionalShell.op-v2 .opv2-btn.opv2-btn-sm { min-height: 32px; padding: 5px 12px; font-size: var(--opv2-fs-note); }
#operacionalShell.op-v2 .opv2-btn.is-primary { background: var(--opv2-blue); border-color: var(--opv2-blue); color: #ffffff; }
#operacionalShell.op-v2 .opv2-btn.is-primary:hover:not(:disabled) { background: var(--opv2-blue-hover); border-color: var(--opv2-blue-hover); }
#operacionalShell.op-v2 .opv2-btn.is-lg { min-height: 44px; padding: 10px 18px; }
#operacionalShell.op-v2 .opv2-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--opv2-ink-2);
  cursor: pointer;
}
#operacionalShell.op-v2 .opv2-icon-btn:hover:not(:disabled) { background: var(--opv2-surface-3); color: var(--opv2-ink); }
#operacionalShell.op-v2 .opv2-icon-btn:disabled { color: var(--opv2-faint); cursor: default; }
#operacionalShell.op-v2 .opv2-link {
  border: 0;
  padding: 2px 0;
  background: none;
  color: var(--opv2-blue-ink);
  font-family: var(--opv2-font-body);
  font-size: var(--opv2-fs-note);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  white-space: nowrap;
}
#operacionalShell.op-v2 .opv2-link:hover { color: var(--opv2-link-hover); text-decoration-thickness: 2px; }

#operacionalShell.op-v2 .opv2-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px 3px 8px;
  border-radius: var(--opv2-r-pill);
  background: var(--opv2-surface-3);
  color: var(--opv2-neutral-ink);
  font-size: var(--opv2-fs-caption);
  font-weight: 600;
  line-height: 16px;
  white-space: nowrap;
}
#operacionalShell.op-v2 .opv2-badge.is-sm { padding: 1px 7px; font-size: var(--opv2-fs-mini); line-height: 15px; }
#operacionalShell.op-v2 .opv2-badge.is-red { background: var(--opv2-red-soft); color: var(--opv2-red-ink); }
#operacionalShell.op-v2 .opv2-badge.is-amber { background: var(--opv2-amber-soft); color: var(--opv2-amber-ink); }
#operacionalShell.op-v2 .opv2-badge.is-green { background: var(--opv2-green-soft); color: var(--opv2-green-ink); }
#operacionalShell.op-v2 .opv2-badge.is-blue { background: var(--opv2-blue-soft); color: var(--opv2-blue-ink); }

#operacionalShell.op-v2 .opv2-spinner {
  display: inline-block;
  flex: none;
  width: 14px;
  height: 14px;
  border: 2px solid var(--opv2-track);
  border-top-color: var(--opv2-brand);
  border-radius: 50%;
  animation: opv2-spin .8s linear infinite;
}
#operacionalShell.op-v2 .opv2-spinner.is-lg { width: 20px; height: 20px; border-width: 2.5px; }
@keyframes opv2-spin { to { transform: rotate(360deg); } }
@keyframes opv2-shimmer { 0% { background-position: -360px 0; } 100% { background-position: 360px 0; } }

/* "i" + tooltip */
#operacionalShell.op-v2 .opv2-info-wrap { position: relative; display: inline-flex; }
#operacionalShell.op-v2 .opv2-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--opv2-faint);
  cursor: pointer;
}
#operacionalShell.op-v2 .opv2-info:hover,
#operacionalShell.op-v2 .opv2-info[aria-expanded="true"] { background: var(--opv2-surface-3); color: var(--opv2-ink); }
#operacionalShell.op-v2 .opv2-info-wrap.is-inline .opv2-info { width: 24px; height: 24px; }
#operacionalShell.op-v2 .opv2-tip {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  right: -8px;
  display: grid;
  gap: 4px;
  width: max-content;
  max-width: min(330px, calc(100vw - 32px));
  padding: 10px 12px;
  border-radius: var(--opv2-r-alert);
  background: var(--opv2-ink);
  box-shadow: var(--opv2-shadow-pop);
  color: #e7e3dc;
  font-family: var(--opv2-font-body);
  font-size: var(--opv2-fs-note);
  font-weight: 400;
  line-height: 18px;
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  white-space: normal;
  transform: translateX(var(--opv2-tip-shift, 0px));
}
#operacionalShell.op-v2 .opv2-tip[hidden] { display: none; }
#operacionalShell.op-v2 .opv2-tip::before {
  content: "";
  position: absolute;
  top: -5px;
  right: calc(17px + var(--opv2-tip-shift, 0px));
  width: 10px;
  height: 10px;
  background: var(--opv2-ink);
  transform: rotate(45deg);
}
#operacionalShell.op-v2 .opv2-tip strong { color: #ffffff; font-weight: 600; }

/* medidor */
#operacionalShell.op-v2 .opv2-meter {
  position: relative;
  display: block;
  height: 8px;
  min-width: 0;
  border-radius: 4px;
  background: var(--opv2-track);
}
#operacionalShell.op-v2 .opv2-meter-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 4px;
  background: var(--opv2-ink-2);
}
#operacionalShell.op-v2 .opv2-meter-fill.is-dentro { background: var(--opv2-green); }
#operacionalShell.op-v2 .opv2-meter-fill.is-fora { background: var(--opv2-red); }
#operacionalShell.op-v2 .opv2-meter-tick {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  margin-left: -1px;
  background: var(--opv2-ink);
  border-radius: 1px;
}
#operacionalShell.op-v2 .opv2-meter.is-sem-base {
  background: repeating-linear-gradient(135deg, var(--opv2-track) 0 6px, var(--opv2-surface-2) 6px 12px);
  box-shadow: inset 0 0 0 1px var(--opv2-line-2);
}
#operacionalShell.op-v2 .opv2-dot {
  display: inline-block;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--opv2-faint);
}
#operacionalShell.op-v2 .opv2-dot.is-agendamento { background: var(--opv2-blue); }
#operacionalShell.op-v2 .opv2-dot.is-conclusao { background: var(--opv2-blue-2); }

/* ---------------- pagina ---------------- */
#operacionalShell.op-v2 .op-body { display: block; }
#operacionalShell.op-v2 .opv2-page {
  container-type: inline-size;
  container-name: opv2page;
  display: grid;
  gap: 14px;
  min-width: 0;
}
#operacionalShell.op-v2 .opv2-h2 {
  margin: 0;
  font-family: var(--opv2-font-display);
  font-size: var(--opv2-fs-section);
  font-weight: 600;
  line-height: 22px;
  color: var(--opv2-ink);
}
#operacionalShell.op-v2 .opv2-h2.is-lg { font-size: var(--opv2-fs-h2); font-weight: 700; line-height: 26px; }
#operacionalShell.op-v2 .opv2-h3 {
  margin: 0;
  font-family: var(--opv2-font-display);
  font-size: var(--opv2-fs-h3);
  font-weight: 600;
  line-height: 23px;
  color: var(--opv2-ink);
}
#operacionalShell.op-v2 .opv2-sub { margin: 0; font-size: var(--opv2-fs-note); line-height: 18px; color: var(--opv2-muted); }
#operacionalShell.op-v2 .opv2-overline {
  font-family: var(--opv2-font-display);
  font-size: var(--opv2-fs-caption);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--opv2-faint);
}

/* pulso */
#operacionalShell.op-v2 .opv2-pulse {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px 26px 16px;
  border: 1px solid var(--opv2-line);
  border-radius: var(--opv2-r-band);
  background: var(--opv2-surface);
  box-shadow: var(--opv2-shadow-card);
}
#operacionalShell.op-v2 .opv2-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
}
#operacionalShell.op-v2 .opv2-pulse-grid {
  display: grid;
  grid-template-columns: max-content minmax(150px, 1fr) max-content 1px minmax(0, 1.9fr);
  align-items: center;
  column-gap: 32px;
  row-gap: 14px;
  min-width: 0;
}
#operacionalShell.op-v2 .opv2-metric { position: relative; min-width: 0; }
#operacionalShell.op-v2 .opv2-metric-link {
  display: grid;
  gap: 4px;
  width: 100%;
  margin: -6px -10px -8px;
  padding: 6px 40px 8px 10px;
  border: 0;
  border-radius: var(--opv2-r-inner);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .15s;
}
#operacionalShell.op-v2 .opv2-metric-link:hover { background: var(--opv2-surface-2); }
#operacionalShell.op-v2 .opv2-big {
  font-family: var(--opv2-font-display);
  font-size: var(--opv2-fs-big);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--opv2-ink);
}
#operacionalShell.op-v2 .opv2-metric-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; }
#operacionalShell.op-v2 .opv2-metric-label { font-size: var(--opv2-fs-body); font-weight: 600; line-height: 18px; color: var(--opv2-ink-2); }
#operacionalShell.op-v2 .opv2-comp {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 2px 9px;
  border-radius: var(--opv2-r-pill);
  background: var(--opv2-surface-3);
  color: var(--opv2-muted);
  font-size: var(--opv2-fs-note);
  line-height: 18px;
  white-space: nowrap;
}
#operacionalShell.op-v2 .opv2-comp b { color: var(--opv2-ink-2); font-weight: 600; }
#operacionalShell.op-v2 .opv2-comp-hidden { font-size: var(--opv2-fs-note); font-style: italic; color: var(--opv2-faint); }
#operacionalShell.op-v2 .opv2-info-wrap.is-metric { position: absolute; top: -4px; right: -8px; }
#operacionalShell.op-v2 .opv2-saldo {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 0;
}
#operacionalShell.op-v2 .opv2-saldo-pill {
  padding: 4px 12px;
  border: 1px solid var(--opv2-line-2);
  border-radius: var(--opv2-r-pill);
  background: var(--opv2-surface);
  color: var(--opv2-ink-2);
  font-size: var(--opv2-fs-body);
  white-space: nowrap;
}
#operacionalShell.op-v2 .opv2-saldo-pill b { font-family: var(--opv2-font-display); font-weight: 700; color: var(--opv2-ink); }
#operacionalShell.op-v2 .opv2-saldo-line { display: flex; align-items: center; width: 100%; color: var(--opv2-control); }
#operacionalShell.op-v2 .opv2-saldo-line > span { flex: 1; border-top: 2px dashed var(--opv2-line-2); }
#operacionalShell.op-v2 .opv2-saldo-caption { font-size: var(--opv2-fs-caption); color: var(--opv2-faint); white-space: nowrap; }
#operacionalShell.op-v2 .opv2-saldo-short { display: none; }
#operacionalShell.op-v2 .opv2-rule { align-self: stretch; width: 1px; background: var(--opv2-line); }
#operacionalShell.op-v2 .opv2-waiting { position: relative; display: grid; gap: 10px; min-width: 0; }
#operacionalShell.op-v2 .opv2-waiting-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
#operacionalShell.op-v2 .opv2-waiting-total { font-size: var(--opv2-fs-note); color: var(--opv2-muted); }
#operacionalShell.op-v2 .opv2-waiting-total b { color: var(--opv2-ink); font-weight: 700; }
#operacionalShell.op-v2 .opv2-waiting-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
#operacionalShell.op-v2 .opv2-metric-sm .opv2-metric-row { flex-wrap: nowrap; align-items: flex-start; gap: 8px; }
#operacionalShell.op-v2 .opv2-metric-sm .opv2-dot { margin-top: 5px; }
#operacionalShell.op-v2 .opv2-stack { display: flex; gap: 2px; height: 8px; border-radius: 4px; overflow: hidden; background: var(--opv2-track); }
#operacionalShell.op-v2 .opv2-stack > span { flex-basis: 0; min-width: 2px; }
#operacionalShell.op-v2 .opv2-stack .is-agendamento { background: var(--opv2-blue); }
#operacionalShell.op-v2 .opv2-stack .is-conclusao { background: var(--opv2-blue-2); }
#operacionalShell.op-v2 .opv2-waiting.is-na .opv2-info-wrap { position: absolute; top: -4px; right: -8px; }
#operacionalShell.op-v2 .opv2-waiting-na { margin: 0; padding: 18px 0; font-size: var(--opv2-fs-body); color: var(--opv2-muted); }

/* qualidade e ritmo */
#operacionalShell.op-v2 .opv2-quality { min-width: 0; }
#operacionalShell.op-v2 .opv2-quality-title { display: none; margin-bottom: 10px; }
#operacionalShell.op-v2 .opv2-quality-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
#operacionalShell.op-v2 .opv2-qcard-wrap { position: relative; display: flex; min-width: 0; }
#operacionalShell.op-v2 .opv2-qcard {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  min-width: 0;
  min-height: 132px;
  padding: 14px 20px 12px;
  border: 1px solid var(--opv2-line);
  border-radius: var(--opv2-r-card);
  background: var(--opv2-surface);
  box-shadow: var(--opv2-shadow-card);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
#operacionalShell.op-v2 .opv2-qcard:hover { border-color: var(--opv2-card-hover-line); box-shadow: var(--opv2-shadow-hover); }
#operacionalShell.op-v2 .opv2-qcard-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding-right: 30px; min-height: 22px; }
#operacionalShell.op-v2 .opv2-qcard-title { font-size: var(--opv2-fs-body); font-weight: 600; line-height: 18px; color: var(--opv2-ink-2); }
#operacionalShell.op-v2 .opv2-qcard-body { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; min-height: 44px; }
#operacionalShell.op-v2 .opv2-qcard-value {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  font-family: var(--opv2-font-display);
  font-size: var(--opv2-fs-card);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--opv2-ink);
  white-space: nowrap;
}
#operacionalShell.op-v2 .opv2-qcard-value.is-red { color: var(--opv2-red-value); }
#operacionalShell.op-v2 .opv2-qcard-value.is-faint { color: var(--opv2-faint); }
#operacionalShell.op-v2 .opv2-unit { margin-left: .06em; font-size: var(--opv2-fs-unit); font-weight: 600; letter-spacing: 0; color: var(--opv2-ink-2); }
#operacionalShell.op-v2 .opv2-qcard-value.is-red .opv2-unit { color: var(--opv2-red-value); }
#operacionalShell.op-v2 .opv2-unit-gap { display: inline-block; width: .28em; }
#operacionalShell.op-v2 .opv2-trend-box { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
#operacionalShell.op-v2 .opv2-trend { display: block; flex: none; width: 150px; height: 44px; }
#operacionalShell.op-v2 .opv2-trend-caption { display: none; height: 16px; font-size: var(--opv2-fs-mini); line-height: 16px; color: var(--opv2-faint); white-space: nowrap; }
#operacionalShell.op-v2 .opv2-trend svg { display: block; width: 100%; height: 100%; overflow: visible; }
#operacionalShell.op-v2 .opv2-spark { position: relative; display: block; width: 100%; height: 100%; }
#operacionalShell.op-v2 .opv2-spark svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
#operacionalShell.op-v2 .opv2-spark-area { fill: var(--opv2-blue); opacity: .10; }
#operacionalShell.op-v2 .opv2-spark-line { fill: none; stroke: var(--opv2-blue); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
#operacionalShell.op-v2 .opv2-spark-end,
#operacionalShell.op-v2 .opv2-spark-point {
  position: absolute;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border: 1.8px solid var(--opv2-surface);
  border-radius: 50%;
  background: var(--opv2-blue);
  box-sizing: content-box;
}
#operacionalShell.op-v2 .opv2-spark-point { width: 4px; height: 4px; margin: -2px 0 0 -2px; border: 0; }
#operacionalShell.op-v2 .opv2-spark-gap { position: absolute; bottom: -2px; margin-left: -4px; color: var(--opv2-faint); line-height: 0; }
#operacionalShell.op-v2 .opv2-donut { flex: none; }
#operacionalShell.op-v2 .opv2-donut-track { fill: none; stroke: var(--opv2-track); stroke-width: 7; }
#operacionalShell.op-v2 .opv2-donut-arc { fill: none; stroke: var(--opv2-blue); stroke-width: 7; stroke-linecap: round; }
#operacionalShell.op-v2 .opv2-qcard-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  min-width: 0;
  font-size: var(--opv2-fs-note);
  line-height: 18px;
  color: var(--opv2-muted);
}
#operacionalShell.op-v2 .opv2-qcard-context { display: block; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#operacionalShell.op-v2 .opv2-qcard-context .opv2-badge { vertical-align: 1px; }
#operacionalShell.op-v2 .opv2-qcard-context b { color: var(--opv2-ink); font-weight: 600; }
#operacionalShell.op-v2 .opv2-qcard-more { display: inline-flex; align-items: center; gap: 4px; flex: none; color: var(--opv2-faint); }
#operacionalShell.op-v2 .opv2-trend-label { font-size: var(--opv2-fs-mini); white-space: nowrap; }
#operacionalShell.op-v2 .opv2-info-wrap.is-card { position: absolute; top: 9px; right: 12px; }

/* metas */
#operacionalShell.op-v2 .opv2-goals { display: grid; gap: 12px; min-width: 0; }
#operacionalShell.op-v2 .opv2-goals-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 16px; }
#operacionalShell.op-v2 .opv2-goals-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; }
#operacionalShell.op-v2 .opv2-goals-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; gap: 16px; }
#operacionalShell.op-v2 .opv2-goal {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 16px 20px 14px;
  border: 1px solid var(--opv2-line);
  border-radius: var(--opv2-r-card);
  background: var(--opv2-surface);
  box-shadow: var(--opv2-shadow-card);
}
#operacionalShell.op-v2 .opv2-goal-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
#operacionalShell.op-v2 .opv2-kicker {
  font-family: var(--opv2-font-display);
  font-size: var(--opv2-fs-caption);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--opv2-faint);
}
#operacionalShell.op-v2 .opv2-goal-body { display: grid; align-content: start; gap: 12px; min-width: 0; }
#operacionalShell.op-v2 .opv2-goal-empty { margin: 0; font-size: var(--opv2-fs-note); color: var(--opv2-muted); }
#operacionalShell.op-v2 .opv2-goal-sub { margin: -6px 0 0; font-size: var(--opv2-fs-note); line-height: 18px; color: var(--opv2-muted); }
#operacionalShell.op-v2 .opv2-goal-note { display: flex; align-items: flex-start; gap: 6px; margin: 0; font-size: var(--opv2-fs-note); color: var(--opv2-amber-ink); }
#operacionalShell.op-v2 .opv2-goal-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  min-height: 34px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--opv2-line);
  font-size: var(--opv2-fs-note);
  line-height: 18px;
  color: var(--opv2-ink-2);
}
#operacionalShell.op-v2 .opv2-goal-foot.is-aviso { color: var(--opv2-amber-ink); }
#operacionalShell.op-v2 .opv2-goal-foot.is-aviso > .opv2-ico { color: var(--opv2-amber); }
#operacionalShell.op-v2 .opv2-goal-foot .opv2-link { margin-left: auto; }
#operacionalShell.op-v2 .opv2-goal-foot.is-actions { justify-content: space-between; }
#operacionalShell.op-v2 .opv2-goal-foot-text { min-width: 0; }
#operacionalShell.op-v2 .opv2-goal-foot-text.is-muted { color: var(--opv2-muted); }

#operacionalShell.op-v2 .opv2-sla-summary { display: flex; align-items: center; gap: 12px; min-width: 0; }
#operacionalShell.op-v2 .opv2-sla-summary strong {
  flex: none;
  font-family: var(--opv2-font-display);
  font-size: var(--opv2-fs-summary);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1;
}
#operacionalShell.op-v2 .opv2-sla-summary span { max-width: 250px; font-size: var(--opv2-fs-note); line-height: 18px; color: var(--opv2-muted); }
#operacionalShell.op-v2 .opv2-sla-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
#operacionalShell.op-v2 .opv2-sla-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px 108px 18px;
  align-items: center;
  gap: 10px;
  min-height: 21px;
}
#operacionalShell.op-v2 .opv2-sla-name { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: var(--opv2-fs-body); color: var(--opv2-ink); }
#operacionalShell.op-v2 .opv2-sla-name-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#operacionalShell.op-v2 .opv2-sla-warn { color: var(--opv2-amber); }
#operacionalShell.op-v2 .opv2-sla-val { font-size: var(--opv2-fs-note); color: var(--opv2-muted); text-align: right; white-space: nowrap; }
#operacionalShell.op-v2 .opv2-sla-val b { color: var(--opv2-ink); font-weight: 600; }
#operacionalShell.op-v2 .opv2-sla-val .is-faint,
#operacionalShell.op-v2 .opv2-sla-row.is-sem-dados .opv2-sla-target { color: var(--opv2-faint); }
#operacionalShell.op-v2 .opv2-sla-ico { display: inline-flex; justify-content: center; color: var(--opv2-faint); }
#operacionalShell.op-v2 .opv2-sla-ico.is-dentro { color: var(--opv2-green-ink); }
#operacionalShell.op-v2 .opv2-sla-ico.is-fora { color: var(--opv2-red-ink); }

#operacionalShell.op-v2 .opv2-measure { display: grid; gap: 8px; min-width: 0; }
#operacionalShell.op-v2 .opv2-measure-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
#operacionalShell.op-v2 .opv2-measure-label { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: var(--opv2-fs-body); font-weight: 600; color: var(--opv2-ink-2); }
#operacionalShell.op-v2 .opv2-measure-tag { padding: 1px 7px; border-radius: var(--opv2-r-pill); background: var(--opv2-amber-soft); color: var(--opv2-amber-ink); font-size: var(--opv2-fs-mini); font-weight: 600; }
#operacionalShell.op-v2 .opv2-measure-value {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--opv2-font-display);
  font-size: var(--opv2-fs-measure);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1;
}
#operacionalShell.op-v2 .opv2-measure-value .opv2-unit,
#operacionalShell.op-v2 .opv2-pair-value .opv2-unit { font-size: var(--opv2-fs-unit-sm); }
#operacionalShell.op-v2 .opv2-measure-detail { margin: 0; font-size: var(--opv2-fs-note); line-height: 18px; color: var(--opv2-muted); }
#operacionalShell.op-v2 .opv2-measure-detail b { color: var(--opv2-ink); font-weight: 600; }
#operacionalShell.op-v2 .opv2-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
#operacionalShell.op-v2 .opv2-pair > div { display: grid; gap: 4px; min-width: 0; }
#operacionalShell.op-v2 .opv2-pair-label { font-size: var(--opv2-fs-note); color: var(--opv2-muted); }
#operacionalShell.op-v2 .opv2-pair-value {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--opv2-font-display);
  font-size: var(--opv2-fs-pair);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--opv2-ink);
}
#operacionalShell.op-v2 .opv2-pair-value.is-faint { color: var(--opv2-faint); }
#operacionalShell.op-v2 .opv2-scale-note { margin-top: -6px; font-size: var(--opv2-fs-caption); color: var(--opv2-faint); }
#operacionalShell.op-v2 .opv2-families { display: grid; gap: 6px; }
#operacionalShell.op-v2 .opv2-families-label { font-size: var(--opv2-fs-note); color: var(--opv2-muted); }
#operacionalShell.op-v2 .opv2-families-list { display: flex; flex-wrap: wrap; gap: 6px; }
#operacionalShell.op-v2 .opv2-family-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px 2px 8px;
  border: 1px solid var(--opv2-line);
  border-radius: var(--opv2-r-pill);
  background: var(--opv2-surface-2);
  font-size: var(--opv2-fs-note);
  color: var(--opv2-ink-2);
}
#operacionalShell.op-v2 .opv2-remediation {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--opv2-amber-line);
  border-radius: var(--opv2-r-alert);
  background: var(--opv2-amber-soft);
  color: var(--opv2-amber-ink);
  font-size: var(--opv2-fs-note);
}
#operacionalShell.op-v2 .opv2-remediation p { margin: 0; }
#operacionalShell.op-v2 .opv2-remediation .opv2-btn { justify-self: start; }

/* ---------------- barra de filtros ---------------- */
#operacionalShell.op-v2 .opv2-bar-host { position: relative; z-index: 30; margin-bottom: 14px; }
#operacionalShell.op-v2 .opv2-bar-wrap { position: relative; display: grid; gap: 10px; }
#operacionalShell.op-v2 .opv2-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--opv2-line);
  border-radius: var(--opv2-r-panel);
  background: var(--opv2-surface);
  box-shadow: var(--opv2-shadow-card);
}
#operacionalShell.op-v2 .opv2-bar-group { display: flex; align-items: center; gap: 10px; min-width: 0; }
#operacionalShell.op-v2 .opv2-bar-base { gap: 8px; }
#operacionalShell.op-v2 .opv2-bar-label {
  font-size: var(--opv2-fs-caption);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--opv2-muted);
  white-space: nowrap;
}
#operacionalShell.op-v2 .opv2-bar-divider { flex: none; width: 1px; height: 28px; background: var(--opv2-line); }
#operacionalShell.op-v2 .opv2-bar-spacer { flex: 1 1 0; min-width: 0; }
#operacionalShell.op-v2 .opv2-bar-tools { flex: 0 1 auto; }
#operacionalShell.op-v2 .opv2-seg {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: var(--opv2-r-alert);
  background: var(--opv2-surface-3);
}
#operacionalShell.op-v2 .opv2-seg.is-full { display: flex; width: 100%; box-sizing: border-box; }
#operacionalShell.op-v2 .opv2-seg.is-full .opv2-seg-item { flex: 1 1 0; min-height: 40px; }
#operacionalShell.op-v2 .opv2-seg-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--opv2-muted);
  font-family: var(--opv2-font-body);
  font-size: var(--opv2-fs-body);
  font-weight: 500;
  line-height: 18px;
  white-space: nowrap;
  cursor: pointer;
}
#operacionalShell.op-v2 .opv2-seg-item:hover { color: var(--opv2-ink); background: rgba(255, 255, 255, .6); }
#operacionalShell.op-v2 .opv2-seg-item[aria-pressed="true"] {
  border-color: var(--opv2-line-2);
  background: var(--opv2-surface);
  color: var(--opv2-ink);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(32, 38, 47, .10);
}
#operacionalShell.op-v2 .opv2-dates {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 38px;
  padding: 0 6px 0 10px;
  border: 1px solid var(--opv2-control);
  border-radius: var(--opv2-r-control);
  background: var(--opv2-surface);
  color: var(--opv2-muted);
  box-sizing: border-box;
}
#operacionalShell.op-v2 .opv2-dates.is-invalid { border-color: var(--opv2-red); }
#operacionalShell.op-v2 .opv2-dates.is-full { display: flex; width: 100%; min-height: 44px; }
#operacionalShell.op-v2 .opv2-dates.is-full .opv2-date { flex: 1 1 0; min-width: 0; }
#operacionalShell.op-v2 .opv2-date {
  width: 132px;
  height: 34px;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: var(--opv2-ink);
  font-family: var(--opv2-font-body);
  font-size: var(--opv2-fs-body);
  font-variant-numeric: tabular-nums;
}
#operacionalShell.op-v2 .opv2-date:focus-visible { outline-offset: 0; }
#operacionalShell.op-v2 .opv2-dates-sep { color: var(--opv2-faint); }
#operacionalShell.op-v2 .opv2-date-hint { font-size: var(--opv2-fs-caption); color: var(--opv2-red-ink); }
#operacionalShell.op-v2 .opv2-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 300px;
  min-width: 200px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--opv2-control);
  border-radius: var(--opv2-r-control);
  background: var(--opv2-surface);
  color: var(--opv2-faint);
  box-sizing: border-box;
}
#operacionalShell.op-v2 .opv2-search:focus-within { border-color: var(--opv2-blue); box-shadow: 0 0 0 3px var(--opv2-blue-soft); }
#operacionalShell.op-v2 .opv2-search input {
  flex: 1 1 auto;
  min-width: 0;
  height: 34px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--opv2-ink);
  font-family: var(--opv2-font-body);
  font-size: var(--opv2-fs-body);
}
#operacionalShell.op-v2 .opv2-search.is-pane { flex: none; width: 100%; min-width: 0; }
#operacionalShell.op-v2 .opv2-search.is-lg { min-height: 44px; }
#operacionalShell.op-v2 .opv2-more-btn.is-active { background: var(--opv2-blue-soft); border-color: var(--opv2-blue-line); color: var(--opv2-blue-ink); }
#operacionalShell.op-v2 .opv2-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--opv2-r-pill);
  background: var(--opv2-blue);
  color: #ffffff;
  font-size: var(--opv2-fs-caption);
  font-weight: 700;
  box-sizing: border-box;
}
#operacionalShell.op-v2 .opv2-count.is-amber { background: var(--opv2-amber-ink); }
#operacionalShell.op-v2 .opv2-count.is-inverse { background: #ffffff; color: var(--opv2-blue-ink); }
#operacionalShell.op-v2 .opv2-pending-marker { display: inline-flex; align-items: center; gap: 6px; font-size: var(--opv2-fs-note); font-weight: 600; color: var(--opv2-amber-ink); white-space: nowrap; }
#operacionalShell.op-v2 .opv2-pending-marker .opv2-ico { color: var(--opv2-amber); }
#operacionalShell.op-v2 .opv2-btn.is-ghost { border-color: transparent; background: transparent; color: var(--opv2-ink-2); }
#operacionalShell.op-v2 .opv2-btn.is-ghost:hover:not(:disabled) { background: var(--opv2-surface-3); border-color: transparent; }
#operacionalShell.op-v2 .opv2-icon-btn.is-sm { width: 34px; height: 34px; }

/* chips */
#operacionalShell.op-v2 .opv2-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
#operacionalShell.op-v2 .opv2-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-height: 30px;
  padding: 2px 3px 2px 12px;
  border: 1px solid var(--opv2-blue-line);
  border-radius: var(--opv2-r-pill);
  background: var(--opv2-blue-soft);
  color: var(--opv2-blue-ink);
  font-size: var(--opv2-fs-note);
  box-sizing: border-box;
}
#operacionalShell.op-v2 .opv2-chip-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#operacionalShell.op-v2 .opv2-chip-text > span { font-weight: 500; }
#operacionalShell.op-v2 .opv2-chip-text b { font-weight: 600; }
#operacionalShell.op-v2 .opv2-chip.is-pendente,
#operacionalShell.op-v2 .opv2-chip.is-remocao { border: 1px dashed var(--opv2-amber); background: var(--opv2-amber-soft); color: var(--opv2-amber-ink); }
#operacionalShell.op-v2 .opv2-chip-tag {
  padding: 1px 7px;
  border-radius: var(--opv2-r-pill);
  background: var(--opv2-surface);
  font-size: var(--opv2-fs-mini);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
#operacionalShell.op-v2 .opv2-chip-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
#operacionalShell.op-v2 .opv2-chip-x:hover { background: rgba(32, 38, 47, .08); }
#operacionalShell.op-v2 .opv2-chips-hint { font-size: var(--opv2-fs-note); color: var(--opv2-muted); }
#operacionalShell.op-v2 .opv2-chips-notice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 3px 2px 10px;
  border-radius: var(--opv2-r-pill);
  background: var(--opv2-surface-3);
  color: var(--opv2-ink-2);
  font-size: var(--opv2-fs-note);
}

/* Mais filtros */
#operacionalShell.op-v2 .opv2-more {
  position: absolute;
  z-index: 35;
  top: 64px;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(780px, 100%);
  max-height: min(640px, calc(100dvh - 180px));
  border: 1px solid var(--opv2-line-2);
  border-radius: var(--opv2-r-card);
  background: var(--opv2-surface);
  box-shadow: var(--opv2-shadow-pop);
  overflow: hidden;
}
#operacionalShell.op-v2 .opv2-more-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--opv2-line); }
#operacionalShell.op-v2 .opv2-more-title { margin: 0; font-family: var(--opv2-font-display); font-size: var(--opv2-fs-section); font-weight: 700; color: var(--opv2-ink); }
#operacionalShell.op-v2 .opv2-more-head .opv2-icon-btn { margin-left: auto; }
#operacionalShell.op-v2 .opv2-more-body { display: grid; grid-template-columns: 250px minmax(0, 1fr); flex: 1 1 auto; min-height: 0; }
#operacionalShell.op-v2 .opv2-more-list {
  display: grid;
  align-content: start;
  gap: 2px;
  margin: 0;
  padding: 8px;
  overflow-y: auto;
  list-style: none;
  background: var(--opv2-surface-2);
  border-right: 1px solid var(--opv2-line);
}
#operacionalShell.op-v2 .opv2-more-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 6px 8px 6px 12px;
  border: 1px solid transparent;
  border-radius: var(--opv2-r-alert);
  background: transparent;
  color: var(--opv2-faint);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
#operacionalShell.op-v2 .opv2-more-item:hover { background: var(--opv2-surface-3); }
#operacionalShell.op-v2 .opv2-more-item.is-current { border-color: var(--opv2-line); background: var(--opv2-surface); box-shadow: 0 1px 2px rgba(32, 38, 47, .06); }
#operacionalShell.op-v2 .opv2-more-item-text { display: grid; flex: 1 1 auto; min-width: 0; }
#operacionalShell.op-v2 .opv2-more-item-name { font-size: var(--opv2-fs-body); font-weight: 600; color: var(--opv2-ink); }
#operacionalShell.op-v2 .opv2-more-item-value { overflow: hidden; font-size: var(--opv2-fs-note); color: var(--opv2-muted); text-overflow: ellipsis; white-space: nowrap; }
#operacionalShell.op-v2 .opv2-more-item-value.is-set,
#operacionalShell.op-v2 .opv2-acc-value.is-set { color: var(--opv2-blue-ink); font-weight: 600; }
#operacionalShell.op-v2 .opv2-pending-tag { font-size: var(--opv2-fs-mini); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--opv2-amber-ink); white-space: nowrap; }
#operacionalShell.op-v2 .opv2-more-pane { display: flex; flex-direction: column; gap: 10px; min-width: 0; min-height: 0; padding: 14px 20px 10px; }
#operacionalShell.op-v2 .opv2-more-pane-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
#operacionalShell.op-v2 .opv2-more-pane-title { margin: 0; font-family: var(--opv2-font-display); font-size: var(--opv2-fs-lead); font-weight: 600; color: var(--opv2-ink); }
#operacionalShell.op-v2 .opv2-more-pane-sub { margin: 2px 0 0; font-size: var(--opv2-fs-note); color: var(--opv2-muted); }
#operacionalShell.op-v2 .opv2-options { display: grid; align-content: start; gap: 2px; flex: 1 1 auto; min-height: 120px; max-height: 360px; overflow-y: auto; }
#operacionalShell.op-v2 .opv2-options.is-sheet { max-height: none; min-height: 0; overflow: visible; }
#operacionalShell.op-v2 .opv2-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 36px;
  padding: 4px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--opv2-ink-2);
  font-family: var(--opv2-font-body);
  font-size: var(--opv2-fs-body);
  text-align: left;
  cursor: pointer;
}
#operacionalShell.op-v2 .opv2-option:hover { background: var(--opv2-row-hover); }
#operacionalShell.op-v2 .opv2-option.is-on { background: var(--opv2-blue-soft); color: var(--opv2-ink); font-weight: 600; }
#operacionalShell.op-v2 .opv2-option-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--opv2-control);
  border-radius: 5px;
  background: var(--opv2-surface);
  color: #ffffff;
  box-sizing: border-box;
}
#operacionalShell.op-v2 .opv2-option-box.is-radio { border-radius: 50%; }
#operacionalShell.op-v2 .opv2-option.is-on .opv2-option-box { border-color: var(--opv2-blue); background: var(--opv2-blue); }
#operacionalShell.op-v2 .opv2-option.is-on .opv2-option-box.is-radio { background: var(--opv2-surface); box-shadow: inset 0 0 0 4px var(--opv2-blue); }
#operacionalShell.op-v2 .opv2-option-label { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
#operacionalShell.op-v2 .opv2-option-n { color: var(--opv2-muted); font-size: var(--opv2-fs-note); }
#operacionalShell.op-v2 .opv2-options-empty,
#operacionalShell.op-v2 .opv2-options-note { margin: 0; font-size: var(--opv2-fs-note); color: var(--opv2-faint); }
#operacionalShell.op-v2 .opv2-more-foot { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-top: 1px solid var(--opv2-line); background: var(--opv2-surface); }
#operacionalShell.op-v2 .opv2-more-foot-hint { flex: 1 1 auto; font-size: var(--opv2-fs-note); color: var(--opv2-muted); }

/* celular */
#operacionalShell.op-v2 .opv2-bar-mobile { display: grid; gap: 10px; }
#operacionalShell.op-v2 .opv2-period-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--opv2-control);
  border-radius: var(--opv2-r-control);
  background: var(--opv2-surface);
  color: var(--opv2-ink-2);
  font-family: var(--opv2-font-body);
  font-size: var(--opv2-fs-body);
  text-align: left;
  cursor: pointer;
}
#operacionalShell.op-v2 .opv2-period-text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#operacionalShell.op-v2 .opv2-period-text b { color: var(--opv2-ink); font-weight: 600; }
#operacionalShell.op-v2 .opv2-bar-mobile-row { display: flex; gap: 8px; }
#operacionalShell.op-v2 .opv2-bar-mobile-row .opv2-search { flex: 1 1 auto; min-width: 0; min-height: 44px; }
#operacionalShell.op-v2 .opv2-bar-mobile-row .opv2-filters-btn { flex: none; }

#operacionalShell.op-v2 .opv2-sheet-backdrop { position: fixed; z-index: 95; inset: 0; background: rgba(28, 24, 18, .42); }
#operacionalShell.op-v2 .opv2-sheet {
  position: fixed;
  z-index: 96;
  top: 56px;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  border-radius: 20px 20px 0 0;
  background: var(--opv2-surface);
  box-shadow: 0 -20px 40px -20px rgba(20, 16, 10, .4);
}
#operacionalShell.op-v2 .opv2-sheet-grab { align-self: center; width: 40px; height: 4px; margin: 8px 0 2px; border-radius: 2px; background: var(--opv2-line-2); }
#operacionalShell.op-v2 .opv2-sheet-head { display: flex; align-items: center; gap: 10px; padding: 4px 8px 8px 16px; }
#operacionalShell.op-v2 .opv2-sheet-title { margin: 0; font-family: var(--opv2-font-display); font-size: var(--opv2-fs-h2); font-weight: 700; }
#operacionalShell.op-v2 .opv2-sheet-head .opv2-icon-btn { margin-left: auto; }
#operacionalShell.op-v2 .opv2-sheet-body { display: grid; align-content: start; gap: 18px; flex: 1 1 auto; min-height: 0; padding: 4px 16px 16px; overflow-y: auto; overscroll-behavior: contain; }
#operacionalShell.op-v2 .opv2-sheet-section { display: grid; gap: 10px; }
#operacionalShell.op-v2 .opv2-sheet-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
#operacionalShell.op-v2 .opv2-sheet-section-head h3 { margin: 0; font-size: var(--opv2-fs-lead); font-weight: 600; color: var(--opv2-ink); }
#operacionalShell.op-v2 .opv2-sheet-section-head span { font-size: var(--opv2-fs-caption); color: var(--opv2-faint); }
#operacionalShell.op-v2 .opv2-preset-chips { display: flex; flex-wrap: wrap; gap: 8px; }
#operacionalShell.op-v2 .opv2-preset-chip {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--opv2-line-2);
  border-radius: var(--opv2-r-pill);
  background: var(--opv2-surface);
  color: var(--opv2-ink-2);
  font-family: var(--opv2-font-body);
  font-size: var(--opv2-fs-body);
  cursor: pointer;
}
#operacionalShell.op-v2 .opv2-preset-chip[aria-pressed="true"] { border-color: var(--opv2-ink); background: var(--opv2-ink); color: #ffffff; font-weight: 600; }
#operacionalShell.op-v2 .opv2-accordion { display: grid; border-top: 1px solid var(--opv2-line); }
#operacionalShell.op-v2 .opv2-acc { border-bottom: 1px solid var(--opv2-line); }
#operacionalShell.op-v2 .opv2-acc-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 56px;
  padding: 6px 4px;
  border: 0;
  background: transparent;
  color: var(--opv2-faint);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
#operacionalShell.op-v2 .opv2-acc-text { display: grid; flex: 1 1 auto; min-width: 0; }
#operacionalShell.op-v2 .opv2-acc-name { font-size: var(--opv2-fs-lead); font-weight: 600; color: var(--opv2-ink); }
#operacionalShell.op-v2 .opv2-acc-value { overflow: hidden; font-size: var(--opv2-fs-note); color: var(--opv2-muted); text-overflow: ellipsis; white-space: nowrap; }
#operacionalShell.op-v2 .opv2-acc-body { display: grid; gap: 8px; padding: 0 0 12px; }
#operacionalShell.op-v2 .opv2-acc-body .opv2-option { min-height: 40px; }
#operacionalShell.op-v2 .opv2-acc-body .opv2-link { justify-self: start; }
#operacionalShell.op-v2 .opv2-sheet-foot {
  display: flex;
  gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--opv2-line);
  background: var(--opv2-surface);
}
#operacionalShell.op-v2 .opv2-sheet-foot .opv2-apply { flex: 1 1 auto; }

@media (max-width: 1679px) {
  #operacionalShell.op-v2 .opv2-bar-period { flex: 1 1 auto; flex-wrap: wrap; }
  #operacionalShell.op-v2 .opv2-bar-period .opv2-seg-item { padding: 0 9px; }
  #operacionalShell.op-v2 .opv2-bar-divider.is-period,
  #operacionalShell.op-v2 .opv2-bar-spacer { display: none; }
  #operacionalShell.op-v2 .opv2-bar-tools {
    flex: 1 1 100%;
    margin: 0 -12px -10px;
    padding: 10px 12px;
    border-top: 1px solid var(--opv2-line);
  }
  #operacionalShell.op-v2 .opv2-bar-tools .opv2-search { flex: 1 1 auto; min-width: 180px; }
  #operacionalShell.op-v2 .opv2-bar-tools .opv2-bar-divider { display: none; }
}

@media (max-width: 1119px) {
  #operacionalShell.op-v2 .opv2-bar-group.opv2-bar-period { flex-basis: 100%; }
  #operacionalShell.op-v2 .opv2-bar-period .opv2-seg { flex-wrap: wrap; }
  #operacionalShell.op-v2 .opv2-more { top: 110px; }
  #operacionalShell.op-v2 .opv2-more-body { grid-template-columns: 200px minmax(0, 1fr); }
  #operacionalShell.op-v2 .opv2-more-foot-hint { display: none; }
}

/* ---------------- estados ---------------- */
#operacionalShell.op-v2 .opv2-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  padding: 10px 16px;
  border: 1px solid var(--opv2-line);
  border-radius: var(--opv2-r-alert);
  font-size: var(--opv2-fs-body);
  line-height: 19px;
}
#operacionalShell.op-v2 .opv2-banner p { margin: 0; }
#operacionalShell.op-v2 .opv2-banner.is-amber { background: var(--opv2-amber-soft); border-color: var(--opv2-amber-line); color: var(--opv2-amber-ink); }
#operacionalShell.op-v2 .opv2-banner.is-amber > .opv2-ico { color: var(--opv2-amber); }

#operacionalShell.op-v2 .opv2-dashboard-body { position: relative; min-width: 0; }
#operacionalShell.op-v2 .opv2-refresh-overlay {
  position: absolute;
  z-index: 25;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 120px;
  border-radius: var(--opv2-r-card);
  background: rgba(243, 241, 236, .66);
  backdrop-filter: blur(1.5px);
}
#operacionalShell.op-v2 .opv2-refresh-overlay[hidden] { display: none; }
#operacionalShell.op-v2 .opv2-refresh-pill {
  position: sticky;
  top: 120px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: var(--opv2-r-pill);
  background: var(--opv2-surface);
  box-shadow: var(--opv2-shadow-pop);
}
#operacionalShell.op-v2 .opv2-refresh-copy { display: grid; gap: 2px; }
#operacionalShell.op-v2 .opv2-refresh-copy strong { font-family: var(--opv2-font-display); font-size: var(--opv2-fs-lead); font-weight: 700; }
#operacionalShell.op-v2 .opv2-refresh-copy span { font-size: var(--opv2-fs-body); color: var(--opv2-muted); }
#operacionalShell.op-v2 #operacionalDashboard.is-refreshing { opacity: 1; pointer-events: auto; }
#operacionalShell.op-v2 #operacionalDashboard.is-refreshing::after { display: none; }
#operacionalShell.op-v2 #operacionalDashboard.is-refreshing .opv2-dashboard-body > :not(.opv2-refresh-overlay) { pointer-events: none; }

#operacionalShell.op-v2 .opv2-skeleton { display: grid; gap: 14px; }
#operacionalShell.op-v2 .opv2-skel {
  display: block;
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--opv2-surface-3) 0, #f7f5f1 180px, var(--opv2-surface-3) 360px);
  background-size: 720px 100%;
  animation: opv2-shimmer 1.4s linear infinite;
}
#operacionalShell.op-v2 .opv2-skel-bar,
#operacionalShell.op-v2 .opv2-skel-pulse,
#operacionalShell.op-v2 .opv2-skel-card,
#operacionalShell.op-v2 .opv2-skel-goal,
#operacionalShell.op-v2 .opv2-skel-panel {
  border: 1px solid var(--opv2-line);
  border-radius: var(--opv2-r-card);
  background: var(--opv2-surface);
}
#operacionalShell.op-v2 .opv2-skel-bar { display: flex; align-items: center; gap: 12px; height: 60px; padding: 10px 12px; overflow: hidden; border-radius: var(--opv2-r-panel); }
#operacionalShell.op-v2 .opv2-skel-spacer { flex: 1; }
#operacionalShell.op-v2 .opv2-skel-pulse { display: grid; gap: 18px; height: 180px; padding: 16px 26px; overflow: hidden; border-radius: var(--opv2-r-band); }
#operacionalShell.op-v2 .opv2-skel-pulse-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
#operacionalShell.op-v2 .opv2-skel-col { display: grid; gap: 10px; }
#operacionalShell.op-v2 .opv2-skel-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
#operacionalShell.op-v2 .opv2-skel-card { display: grid; gap: 14px; height: 142px; padding: 14px 20px; overflow: hidden; }
#operacionalShell.op-v2 .opv2-skel-row { display: flex; justify-content: space-between; gap: 12px; }
#operacionalShell.op-v2 .opv2-skel-goals-head { display: flex; justify-content: space-between; margin-top: 4px; }
#operacionalShell.op-v2 .opv2-skel-goals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
#operacionalShell.op-v2 .opv2-skel-goal { display: grid; align-content: start; gap: 12px; height: 318px; padding: 16px 20px; overflow: hidden; }
#operacionalShell.op-v2 .opv2-skel-panel.h-320 { height: 320px; }
#operacionalShell.op-v2 .opv2-skel-panel.h-240 { height: 240px; }
#operacionalShell.op-v2 .opv2-skel-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
#operacionalShell.op-v2 .opv2-skel.w-70 { width: 70px; }
#operacionalShell.op-v2 .opv2-skel.w-90 { width: 90px; flex: none; }
#operacionalShell.op-v2 .opv2-skel.w-110 { width: 110px; flex: none; }
#operacionalShell.op-v2 .opv2-skel.w-140 { width: 140px; flex: none; }
#operacionalShell.op-v2 .opv2-skel.w-150 { width: 150px; max-width: 100%; flex: none; }
#operacionalShell.op-v2 .opv2-skel.w-180 { width: 180px; }
#operacionalShell.op-v2 .opv2-skel.w-190 { width: 190px; max-width: 100%; }
#operacionalShell.op-v2 .opv2-skel.w-220 { width: 220px; }
#operacionalShell.op-v2 .opv2-skel.w-240 { width: 240px; flex: 0 1 auto; }
#operacionalShell.op-v2 .opv2-skel.w-300 { width: 300px; flex: 0 1 auto; }
#operacionalShell.op-v2 .opv2-skel.w-430 { width: 430px; flex: 0 1 auto; }
#operacionalShell.op-v2 .opv2-skel.w-40p { width: 40%; }
#operacionalShell.op-v2 .opv2-skel.w-45p { width: 45%; }
#operacionalShell.op-v2 .opv2-skel.w-50p { width: 50%; }
#operacionalShell.op-v2 .opv2-skel.w-55p { width: 55%; }
#operacionalShell.op-v2 .opv2-skel.w-60p { width: 60%; }
#operacionalShell.op-v2 .opv2-skel.w-65p { width: 65%; }
#operacionalShell.op-v2 .opv2-skel.w-100p { width: 100%; }
#operacionalShell.op-v2 .opv2-skel.h-8 { height: 8px; }
#operacionalShell.op-v2 .opv2-skel.h-11 { height: 11px; }
#operacionalShell.op-v2 .opv2-skel.h-12 { height: 12px; }
#operacionalShell.op-v2 .opv2-skel.h-16 { height: 16px; }
#operacionalShell.op-v2 .opv2-skel.h-18 { height: 18px; }
#operacionalShell.op-v2 .opv2-skel.h-22 { height: 22px; }
#operacionalShell.op-v2 .opv2-skel.h-34 { height: 34px; }
#operacionalShell.op-v2 .opv2-skel.h-38 { height: 38px; }
#operacionalShell.op-v2 .opv2-skel.h-40 { height: 40px; }
#operacionalShell.op-v2 .opv2-skel.h-44 { height: 44px; }
#operacionalShell.op-v2 .opv2-skel.h-50 { height: 50px; }

#operacionalShell.op-v2 #operacionalErrorState { display: none; }
#operacionalShell.op-v2 .opv2-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: min(560px, 100%);
  margin: 90px auto 0;
  padding: 40px 36px;
  border: 1px solid var(--opv2-line);
  border-radius: 20px;
  background: var(--opv2-surface);
  box-shadow: var(--opv2-shadow-card);
  box-sizing: border-box;
  text-align: center;
}
#operacionalShell.op-v2 .opv2-error-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--opv2-red-soft);
  color: var(--opv2-red-ink);
}
#operacionalShell.op-v2 .opv2-error-title { margin: 0; font-family: var(--opv2-font-display); font-size: var(--opv2-fs-unit); font-weight: 700; color: var(--opv2-ink); }
#operacionalShell.op-v2 .opv2-error-text { margin: 0; font-size: var(--opv2-fs-body); color: var(--opv2-muted); }
#operacionalShell.op-v2 .opv2-error-detail { margin: 0; font-size: var(--opv2-fs-caption); color: var(--opv2-faint); }

/* ---------------- pele v2 das janelas e paginas ainda legadas (D11) ----------------
   So cor, raio, tipografia e posicao: a estrutura e os ganchos das telas legadas nao
   mudam. Os tokens globais sao redefinidos APENAS dentro do shell do Operacional com
   a flag; Financeiro, Comercial e Atendimento continuam lendo os valores originais. */
#operacionalShell.op-v2 {
  --bg: #f3f1ec;
  --surface: #ffffff;
  --surface-muted: #f8f6f2;
  --border: #e6e1d8;
  --text: #20262f;
  --muted: #625a51;
  --ink-soft: #3d434e;
  --green: #1f9a68;
  --green-soft: #e3f3eb;
  --green-deep: #0a7049;
  --red: #d4572f;
  --red-soft: #fbe9e2;
  --red-deep: #ad3a19;
  --blue: #2f6fad;
  --blue-soft: #e8f0f9;
  --blue-deep: #245f98;
  --yellow: #a56b00;
  --yellow-soft: #fcf0d6;
  --amber-soft: #fcf0d6;
  --amber-deep: #835400;
  --radius-lg: 14px;
  --shadow: 0 1px 0 rgba(32, 38, 47, .03), 0 10px 24px -20px rgba(32, 38, 47, .35);
}

#operacionalShell.op-v2 :is(.op-panel, .op-card) {
  border-color: var(--opv2-line);
  border-radius: var(--opv2-r-card);
  box-shadow: var(--opv2-shadow-card);
}
#operacionalShell.op-v2 :is(.op-h2, .op-h3, .op-drawer-title, .op-ficha-os, .op-card-val) { font-family: var(--opv2-font-display); }
#operacionalShell.op-v2 .op-card-lbl { color: var(--opv2-ink-2); }
#operacionalShell.op-v2 :is(.op-card-sub, .op-panel-sub) { color: var(--opv2-muted); }
#operacionalShell.op-v2 .op-segset { border-radius: var(--opv2-r-alert); background: var(--opv2-surface-3); }
#operacionalShell.op-v2 .op-seg { color: var(--opv2-muted); }
#operacionalShell.op-v2 .op-seg.is-on { color: var(--opv2-ink); box-shadow: 0 1px 2px rgba(32, 38, 47, .10); }
#operacionalShell.op-v2 :is(.op-input, .op-select) {
  border-color: var(--opv2-control);
  border-radius: var(--opv2-r-control);
  color: var(--opv2-ink);
  font-size: var(--opv2-fs-body);
}
#operacionalShell.op-v2 :is(.op-input, .op-select):focus-visible { border-color: var(--opv2-blue); box-shadow: 0 0 0 3px var(--opv2-blue-soft); outline: none; }
#operacionalShell.op-v2 .op-apply {
  border-radius: var(--opv2-r-control);
  background: var(--opv2-blue);
  box-shadow: none;
  font-size: var(--opv2-fs-body);
}
#operacionalShell.op-v2 .op-apply:hover:not(:disabled) { background: var(--opv2-blue-hover); }
#operacionalShell.op-v2 :is(.op-more, .op-btn-csv, .op-btn-excel) {
  border: 1px solid var(--opv2-control);
  border-radius: var(--opv2-r-control);
  background: var(--opv2-surface);
  color: var(--opv2-ink);
  font-weight: 600;
}
#operacionalShell.op-v2 :is(.op-more, .op-btn-csv, .op-btn-excel):hover:not(:disabled) { background: var(--opv2-surface-2); border-color: var(--opv2-ink-2); }
#operacionalShell.op-v2 .op-x {
  width: 40px;
  height: 40px;
  border-color: var(--opv2-line-2);
  border-radius: 50%;
  color: var(--opv2-ink-2);
}
#operacionalShell.op-v2 .op-x:hover:not(:disabled) { background: var(--opv2-surface-3); color: var(--opv2-ink); }
#operacionalShell.op-v2 .op-th {
  color: var(--opv2-muted);
  font-size: var(--opv2-fs-caption);
  letter-spacing: .04em;
  border-bottom-color: var(--opv2-line);
  background: var(--opv2-surface-2);
}
#operacionalShell.op-v2 .op-th.is-on,
#operacionalShell.op-v2 .op-th[data-op-sort]:hover { color: var(--opv2-ink); }
#operacionalShell.op-v2 .op-table tbody tr { border-bottom-color: var(--opv2-line); }
#operacionalShell.op-v2 .op-table tbody tr:hover { background: var(--opv2-row-hover); }
#operacionalShell.op-v2 .op-table td { color: var(--opv2-ink-2); }
#operacionalShell.op-v2 .op-goal-status.is-success { background: var(--opv2-green-soft); color: var(--opv2-green-ink); }
#operacionalShell.op-v2 .op-goal-status.is-danger { background: var(--opv2-red-soft); color: var(--opv2-red-ink); }
#operacionalShell.op-v2 .op-goal-status.is-warning { background: var(--opv2-amber-soft); color: var(--opv2-amber-ink); }
#operacionalShell.op-v2 .op-goal-status.is-neutral { background: var(--opv2-surface-3); color: var(--opv2-neutral-ink); }

/* janelas: fundo, moldura e cabecalho */
#operacionalShell.op-v2 :is(.op-overlay, .op-ov) { background: var(--opv2-backdrop); }
#operacionalShell.op-v2 :is(.op-modal, .op-ct-modal, .op-ficha) {
  border: 1px solid var(--opv2-line);
  border-radius: var(--opv2-r-band);
  box-shadow: var(--opv2-shadow-drawer);
}
#operacionalShell.op-v2 :is(.op-modal-head, .op-ct-head, .op-drawer-head, .op-ficha-head) { border-bottom-color: var(--opv2-line); }
#operacionalShell.op-v2 :is(.op-modal-foot) { border-top-color: var(--opv2-line); }
#operacionalShell.op-v2 :is(.op-eyebrow, .op-ct-kicker) {
  color: var(--opv2-brand-text);
  font-family: var(--opv2-font-display);
  font-size: var(--opv2-fs-caption);
  font-weight: 600;
  letter-spacing: .13em;
}
#operacionalShell.op-v2 .op-ct-head h2,
#operacionalShell.op-v2 .op-drawer-title {
  font-family: var(--opv2-font-display);
  font-size: var(--opv2-fs-measure);
  font-weight: 700;
  letter-spacing: -.012em;
  line-height: 1.15;
  color: var(--opv2-ink);
}
#operacionalShell.op-v2 :is(.op-drawer-sub, .op-ct-head p) { color: var(--opv2-muted); font-size: var(--opv2-fs-body); }
#operacionalShell.op-v2 .op-indicator-tab.is-on { color: var(--opv2-ink); border-bottom-color: var(--opv2-brand); }

/* Recorte: janela centralizada no desktop, tela cheia no celular */
#operacionalShell.op-v2 .op-drawer { background: var(--opv2-surface); }
#operacionalShell.op-v2 .op-drawer-head { padding: 18px 28px 16px; }
@media (min-width: 721px) {
  #operacionalShell.op-v2 .op-overlay-right { align-items: center; justify-content: center; padding: 24px; }
  #operacionalShell.op-v2 :is(.op-drawer, .op-drawer-wide, .op-drawer-xwide) {
    width: min(1320px, 94vw);
    height: min(855px, 90dvh);
    border: 1px solid var(--opv2-line);
    border-radius: var(--opv2-r-band);
    box-shadow: var(--opv2-shadow-drawer);
    overflow: hidden;
  }
}
@media (max-width: 720px) {
  #operacionalShell.op-v2 :is(.op-drawer, .op-drawer-wide, .op-drawer-xwide) { width: 100%; height: 100%; border-radius: 0; }
  #operacionalShell.op-v2 .op-drawer-head { padding: 14px 16px 12px; }
  #operacionalShell.op-v2 .op-drawer-title { font-size: var(--opv2-fs-h2); }
}

/* Configuracoes > Metas (Fase 6): estrutura legada, apresentacao v2 */
#operacionalShell.op-v2 .opv2-cfg-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 14px; }
#operacionalShell.op-v2 .opv2-cfg-note { flex: 1 1 320px; margin: 0; font-size: var(--opv2-fs-note); color: var(--opv2-muted); }
#operacionalShell.op-v2 .opv2-banner.is-neutral { background: var(--opv2-surface-3); border-color: var(--opv2-line); color: var(--opv2-ink-2); }
#operacionalShell.op-v2 .op-goals-catalog-item { border-radius: var(--opv2-r-alert); }
#operacionalShell.op-v2 .op-goals-catalog-item.is-on { border-color: #e8d2a6; background: var(--opv2-brand-soft); color: var(--opv2-brand-ink); }
#operacionalShell.op-v2 .op-goals-catalog-item .opv2-badge { justify-self: start; }
#operacionalShell.op-v2 .op-goal-formula { border: 1px solid var(--opv2-blue-line); border-radius: var(--opv2-r-alert); background: var(--opv2-blue-soft); color: var(--opv2-blue-ink); }
#operacionalShell.op-v2 .opv2-closed-month { color: var(--opv2-faint); white-space: nowrap; }
#operacionalShell.op-v2 .opv2-closed-month .opv2-ico { display: inline-block; margin-right: 3px; vertical-align: -2px; }
#operacionalShell.op-v2 .opv2-goal-save { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
#operacionalShell.op-v2 .opv2-goal-save .op-apply { display: inline-flex; align-items: center; gap: 8px; }
#operacionalShell.op-v2 .opv2-goal-save-hint { font-size: var(--opv2-fs-note); color: var(--opv2-muted); }

/* ---------------- janelas v2 (Ficha, SLA inconsistentes, Recorte) ---------------- */
#operacionalShell.op-v2 .opv2-window {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--opv2-line);
  border-radius: var(--opv2-r-band);
  background: var(--opv2-surface);
  box-shadow: var(--opv2-shadow-drawer);
  color: var(--opv2-ink);
  font-family: var(--opv2-font-body);
  animation: none;
}
#operacionalShell.op-v2 .opv2-window-backdrop.is-stacked { background: rgba(28, 24, 18, .34); }
#operacionalShell.op-v2 .opv2-window-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 28px 16px;
  border-bottom: 1px solid var(--opv2-line);
}
#operacionalShell.op-v2 .opv2-window-titles { display: grid; gap: 4px; min-width: 0; }
#operacionalShell.op-v2 .opv2-window-eyebrow-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
#operacionalShell.op-v2 .opv2-window-eyebrow {
  font-family: var(--opv2-font-display);
  font-size: var(--opv2-fs-caption);
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--opv2-brand-text);
}
#operacionalShell.op-v2 .opv2-window-title {
  margin: 0;
  font-family: var(--opv2-font-display);
  font-size: var(--opv2-fs-measure);
  font-weight: 700;
  letter-spacing: -.012em;
  line-height: 1.15;
  color: var(--opv2-ink);
}
#operacionalShell.op-v2 .opv2-window-title.is-mono { font-family: var(--opv2-font-mono); font-weight: 600; }
#operacionalShell.op-v2 .opv2-window-desc { max-width: 880px; margin: 0; font-size: var(--opv2-fs-body); line-height: 20px; color: var(--opv2-muted); }
#operacionalShell.op-v2 .opv2-window-desc.is-sub { color: var(--opv2-faint); font-size: var(--opv2-fs-note); }
#operacionalShell.op-v2 .opv2-window-actions { display: flex; align-items: center; gap: 10px; flex: none; }
#operacionalShell.op-v2 .opv2-window-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--opv2-line-2);
  border-radius: 50%;
  background: var(--opv2-surface);
  color: var(--opv2-ink-2);
  cursor: pointer;
}
#operacionalShell.op-v2 .opv2-window-close:hover { background: var(--opv2-surface-3); color: var(--opv2-ink); }
#operacionalShell.op-v2 .opv2-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 0 28px;
  border-bottom: 1px solid var(--opv2-line);
  background: var(--opv2-surface-2);
}
#operacionalShell.op-v2 .opv2-context-hint { font-size: var(--opv2-fs-note); color: var(--opv2-faint); white-space: nowrap; }
#operacionalShell.op-v2 .opv2-tabs { display: flex; align-self: stretch; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: thin; }
#operacionalShell.op-v2 .opv2-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 12px;
  border: 0;
  border-bottom: 0;
  background: transparent;
  box-shadow: none;
  color: var(--opv2-muted);
  font-family: var(--opv2-font-body);
  font-size: var(--opv2-fs-body);
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}
#operacionalShell.op-v2 .opv2-tab:hover { box-shadow: inset 0 -3px 0 var(--opv2-line-2); color: var(--opv2-ink); }
#operacionalShell.op-v2 .opv2-tab.is-on { box-shadow: inset 0 -3px 0 var(--opv2-brand); color: var(--opv2-ink); font-weight: 700; }
#operacionalShell.op-v2 .opv2-tab-count { padding: 1px 8px; border-radius: var(--opv2-r-pill); background: var(--opv2-surface-3); font-size: var(--opv2-fs-caption); font-weight: 600; color: var(--opv2-neutral-ink); }
#operacionalShell.op-v2 .opv2-tab.is-on .opv2-tab-count { background: var(--opv2-brand-soft); color: var(--opv2-brand-ink); }
#operacionalShell.op-v2 .opv2-window-body { display: grid; align-content: start; gap: 16px; flex: 1 1 auto; min-height: 0; padding: 20px 28px 24px; overflow: auto; }
#operacionalShell.op-v2 .opv2-window-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  min-height: 56px;
  padding: 8px 28px;
  border-top: 1px solid var(--opv2-line);
  background: var(--opv2-surface);
  font-size: var(--opv2-fs-body);
  color: var(--opv2-ink-2);
}
#operacionalShell.op-v2 .opv2-window-foot-extra { color: var(--opv2-muted); }
#operacionalShell.op-v2 .opv2-window-note { margin: 0; font-size: var(--opv2-fs-note); color: var(--opv2-faint); }
#operacionalShell.op-v2 .opv2-window-loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 32px; color: var(--opv2-muted); }
#operacionalShell.op-v2 .opv2-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
#operacionalShell.op-v2 .opv2-pager-text { font-size: var(--opv2-fs-body); color: var(--opv2-ink-2); }
#operacionalShell.op-v2 .opv2-mono { font-family: var(--opv2-font-mono); font-size: var(--opv2-fs-note); font-variant-numeric: tabular-nums; }
#operacionalShell.op-v2 .opv2-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: var(--opv2-r-pill);
  background: var(--opv2-surface-3);
  color: var(--opv2-neutral-ink);
  font-size: var(--opv2-fs-caption);
  font-weight: 600;
  white-space: nowrap;
}
#operacionalShell.op-v2 .opv2-pill.is-green { background: var(--opv2-green-soft); color: var(--opv2-green-ink); }
#operacionalShell.op-v2 .opv2-pill.is-blue { background: var(--opv2-blue-soft); color: var(--opv2-blue-ink); }
#operacionalShell.op-v2 .opv2-pill.is-red { background: var(--opv2-red-soft); color: var(--opv2-red-ink); }
#operacionalShell.op-v2 .opv2-banner.is-red { background: var(--opv2-red-soft); border-color: var(--opv2-red-line); color: var(--opv2-red-ink); }
#operacionalShell.op-v2 .opv2-banner.is-blue { background: var(--opv2-blue-soft); border-color: var(--opv2-blue-line); color: var(--opv2-blue-ink); }
#operacionalShell.op-v2 .opv2-banner .opv2-btn { margin-left: auto; }
#operacionalShell.op-v2 .opv2-empty-box {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin: 12px 0;
  padding: 28px 16px;
  border: 1px dashed var(--opv2-line-2);
  border-radius: var(--opv2-r-inner);
  color: var(--opv2-muted);
  text-align: center;
}
#operacionalShell.op-v2 .opv2-empty-box strong { font-family: var(--opv2-font-display); font-size: var(--opv2-fs-section); color: var(--opv2-ink); }
#operacionalShell.op-v2 .opv2-table-wrap { min-width: 0; overflow: auto; border: 1px solid var(--opv2-line); border-radius: var(--opv2-r-inner); }
#operacionalShell.op-v2 .opv2-table { width: 100%; border-collapse: collapse; font-size: var(--opv2-fs-body); }
#operacionalShell.op-v2 .opv2-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 10px 12px;
  border-bottom: 1px solid var(--opv2-line);
  background: var(--opv2-surface-2);
  color: var(--opv2-muted);
  font-size: var(--opv2-fs-caption);
  font-weight: 600;
  letter-spacing: .04em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
#operacionalShell.op-v2 .opv2-table td { padding: 8px 12px; border-bottom: 1px solid var(--opv2-line); color: var(--opv2-ink-2); vertical-align: middle; }
#operacionalShell.op-v2 .opv2-table tbody tr:hover { background: var(--opv2-row-hover); }
#operacionalShell.op-v2 .opv2-table tbody tr[data-op-ficha] { cursor: pointer; }
#operacionalShell.op-v2 .opv2-cell-stack { display: grid; justify-items: start; gap: 4px; }
#operacionalShell.op-v2 .opv2-stamp { display: grid; gap: 2px; font-family: var(--opv2-font-mono); font-size: var(--opv2-fs-note); }
#operacionalShell.op-v2 .opv2-stamp small { color: var(--opv2-faint); font-size: var(--opv2-fs-caption); }
#operacionalShell.op-v2 .opv2-stamp small.is-alert { color: var(--opv2-red-ink); font-weight: 700; }
#operacionalShell.op-v2 .opv2-refinements { display: flex; flex-wrap: wrap; gap: 12px; }
#operacionalShell.op-v2 .opv2-field { display: grid; gap: 4px; min-width: 200px; font-size: var(--opv2-fs-caption); font-weight: 600; color: var(--opv2-muted); }
#operacionalShell.op-v2 .opv2-field.is-grow { flex: 1 1 240px; }
#operacionalShell.op-v2 :is(.opv2-select, .opv2-input) {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--opv2-control);
  border-radius: var(--opv2-r-control);
  background: var(--opv2-surface);
  color: var(--opv2-ink);
  font-family: var(--opv2-font-body);
  font-size: var(--opv2-fs-body);
  box-sizing: border-box;
}
#operacionalShell.op-v2 .opv2-counters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: var(--opv2-fs-note); color: var(--opv2-muted); }
#operacionalShell.op-v2 .opv2-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
#operacionalShell.op-v2 .opv2-search.is-toolbar { flex: 0 1 360px; min-width: 220px; }
#operacionalShell.op-v2 .opv2-toolbar .opv2-select { flex: 0 1 240px; min-width: 0; max-width: none; }
#operacionalShell.op-v2 .opv2-export-status:empty { display: none; }
#operacionalShell.op-v2 .opv2-export-status { font-size: var(--opv2-fs-note); color: var(--opv2-muted); }
#operacionalShell.op-v2 .opv2-export { position: relative; }
#operacionalShell.op-v2 .opv2-export-menu {
  position: absolute;
  z-index: 5;
  top: calc(100% + 6px);
  right: 0;
  display: grid;
  width: 300px;
  padding: 6px;
  border: 1px solid var(--opv2-line-2);
  border-radius: var(--opv2-r-inner);
  background: var(--opv2-surface);
  box-shadow: var(--opv2-shadow-pop);
}
#operacionalShell.op-v2 .opv2-export-menu[hidden] { display: none; }
#operacionalShell.op-v2 .opv2-export-item {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--opv2-ink);
  font-family: var(--opv2-font-body);
  text-align: left;
  cursor: pointer;
}
#operacionalShell.op-v2 .opv2-export-item:hover:not(:disabled),
#operacionalShell.op-v2 .opv2-export-item:focus-visible { background: var(--opv2-row-hover); }
#operacionalShell.op-v2 .opv2-export-item:disabled { color: var(--opv2-faint); cursor: default; }
#operacionalShell.op-v2 .opv2-export-item strong { font-size: var(--opv2-fs-body); font-weight: 600; }
#operacionalShell.op-v2 .opv2-export-item span { font-size: var(--opv2-fs-caption); color: var(--opv2-muted); }

/* Ficha */
#operacionalShell.op-v2 .opv2-ficha { width: min(1000px, 94vw); max-height: min(640px, 90dvh); }
#operacionalShell.op-v2 .opv2-kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; margin: 0; }
#operacionalShell.op-v2 .opv2-kv-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; border-bottom: 1px solid var(--opv2-line); }
#operacionalShell.op-v2 .opv2-kv-row dt { font-size: var(--opv2-fs-body); color: var(--opv2-muted); }
#operacionalShell.op-v2 .opv2-kv-row dd { margin: 0; font-size: var(--opv2-fs-body); font-weight: 600; text-align: right; overflow-wrap: anywhere; }
#operacionalShell.op-v2 .opv2-toast {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--opv2-r-pill);
  background: var(--opv2-ink);
  color: #ffffff;
  font-size: var(--opv2-fs-body);
  font-weight: 600;
  transform: translateX(-50%);
  box-shadow: var(--opv2-shadow-pop);
}

/* SLA inconsistentes */
#operacionalShell.op-v2 .opv2-sla-window { width: min(1040px, 94vw); max-height: min(720px, 90dvh); padding: 0; }

/* Recorte: resumo, barras por tipo em duas colunas */
#operacionalShell.op-v2 .opv2-recorte .op-indicator-summary { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 16px; align-items: stretch; margin: 0; }
#operacionalShell.op-v2 .opv2-recorte .op-indicator-summary.is-rebooking { grid-template-columns: minmax(0, 1fr); }
#operacionalShell.op-v2 .opv2-recorte .op-indicator-total {
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--opv2-line);
  border-radius: var(--opv2-r-inner);
  background: var(--opv2-surface-2);
}
#operacionalShell.op-v2 .opv2-recorte .op-indicator-total span { font-size: var(--opv2-fs-note); color: var(--opv2-muted); }
#operacionalShell.op-v2 .opv2-recorte .op-indicator-total strong { font-family: var(--opv2-font-display); font-size: var(--opv2-fs-card); font-weight: 700; letter-spacing: -.02em; color: var(--opv2-ink); }
#operacionalShell.op-v2 .opv2-recorte .op-indicator-chart-wrap { padding: 14px 16px; border: 1px solid var(--opv2-line); border-radius: var(--opv2-r-panel); }
#operacionalShell.op-v2 .opv2-recorte .op-indicator-chart { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 24px; }
#operacionalShell.op-v2 .opv2-recorte .op-indicator-bar-fill { background: var(--opv2-blue); }

@media (min-width: 721px) {
  #operacionalShell.op-v2 .opv2-window-backdrop.op-overlay-right { align-items: center; justify-content: center; padding: 24px; }
  #operacionalShell.op-v2 .opv2-recorte { width: min(1320px, 94vw); height: min(855px, 90dvh); }
}
@media (max-width: 720px) {
  #operacionalShell.op-v2 .opv2-window-backdrop { padding: 0; }
  #operacionalShell.op-v2 :is(.opv2-recorte, .opv2-ficha, .opv2-sla-window) { width: 100%; height: 100%; max-height: none; border: 0; border-radius: 0; }
  #operacionalShell.op-v2 .opv2-window-head { padding: 12px 16px; gap: 12px; }
  #operacionalShell.op-v2 .opv2-window-title { font-size: var(--opv2-fs-mobile-title); }
  #operacionalShell.op-v2 .opv2-window-body { padding: 12px 16px 16px; gap: 12px; }
  #operacionalShell.op-v2 .opv2-window-foot { padding: 8px 16px; }
  #operacionalShell.op-v2 .opv2-context { padding: 0 8px; }
  #operacionalShell.op-v2 .opv2-context-hint { display: none; }
  #operacionalShell.op-v2 .opv2-kv { grid-template-columns: minmax(0, 1fr); }
  #operacionalShell.op-v2 .opv2-recorte .op-indicator-summary { grid-template-columns: minmax(0, 1fr); }
  #operacionalShell.op-v2 .opv2-recorte .op-indicator-chart { grid-template-columns: minmax(0, 1fr); }
  #operacionalShell.op-v2 .opv2-export .opv2-btn > span,
  #operacionalShell.op-v2 .opv2-export .opv2-btn > .opv2-ico:last-child { display: none; }
  #operacionalShell.op-v2 .opv2-export .opv2-btn { width: 44px; min-height: 44px; padding: 0; }
  #operacionalShell.op-v2 .opv2-window-close { width: 44px; height: 44px; }
  #operacionalShell.op-v2 .opv2-export-menu { width: min(300px, calc(100vw - 32px)); }
  #operacionalShell.op-v2 .opv2-search.is-toolbar { flex: 1 1 100%; }
}

/* ---------------- gaveta (tablet e celular) ---------------- */
#operacionalShell.op-v2 .opv2-drawer-backdrop {
  position: fixed;
  z-index: 85;
  inset: 0;
  background: var(--opv2-backdrop);
}
#operacionalShell.op-v2 .opv2-drawer-backdrop[hidden] { display: none; }

@media (max-width: 1119px) {
  #operacionalShell.op-v2:not(.hidden) { display: block; }
  #operacionalShell.op-v2 .sidebar {
    position: fixed;
    z-index: 90;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(300px, 86vw);
    height: auto;
    overflow-y: auto;
    border-right: 1px solid var(--opv2-line);
    border-bottom: 0;
    box-shadow: var(--opv2-shadow-drawer);
    transform: translateX(-105%);
    visibility: hidden;
    transition: transform .2s ease, visibility 0s linear .2s;
  }
  #operacionalShell.op-v2.opv2-drawer-open .sidebar {
    transform: none;
    visibility: visible;
    transition: transform .2s ease;
  }
  #operacionalShell.op-v2 .nav-list { flex-direction: column; flex-wrap: nowrap; display: flex; }
  #operacionalShell.op-v2 .content.content { padding: 12px 24px 28px; }
  #operacionalShell.op-v2 .topbar { align-items: center; flex-direction: row; min-height: 0; }
  #operacionalShell.op-v2 .opv2-icon-btn.opv2-menu-btn { display: inline-flex; order: -1; margin-left: -10px; }
  #operacionalShell.op-v2 .topbar > div:not(.opv2-header-status) { flex: 1 1 auto; }
}

@media (max-width: 720px) {
  #operacionalShell.op-v2 .content.content.content { padding: 8px 16px 28px; }
  #operacionalShell.op-v2 .topbar { gap: 4px 8px; margin-bottom: 12px; }
  #operacionalShell.op-v2 .topbar .eyebrow { font-size: var(--opv2-fs-mini); margin-bottom: 2px; }
  #operacionalShell.op-v2 .topbar h1 { font-size: var(--opv2-fs-mobile-title); }
  #operacionalShell.op-v2 .opv2-status { display: none; }
  #operacionalShell.op-v2 .opv2-icon-btn.opv2-status-refresh-icon { display: inline-flex; order: 2; margin-right: -10px; }
  #operacionalShell.op-v2 .opv2-status-mobile {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    order: 3;
    flex-basis: 100%;
    font-size: var(--opv2-fs-caption);
    color: var(--opv2-muted);
  }
}

@media screen and (max-width: 1679px) {
  #operacionalShell.op-v2 .content { padding: 16px 24px 24px; }
}

@media (min-width: 721px) and (max-width: 1679px) {
  #operacionalShell.op-v2 .opv2-status-endpoint,
  #operacionalShell.op-v2 .opv2-status-divider { display: none; }
}

/* ---------------- layout da pagina por largura util ---------------- */
@container opv2page (max-width: 1559px) {
  #operacionalShell.op-v2 .opv2-pulse { padding: 14px 20px 16px; }
  #operacionalShell.op-v2 .opv2-pulse-grid { grid-template-columns: minmax(0, 1fr) 104px minmax(0, 1fr) 1px minmax(0, 1.35fr); column-gap: 20px; }
  #operacionalShell.op-v2 .opv2-big { font-size: var(--opv2-fs-big-md); }
  #operacionalShell.op-v2 .opv2-waiting-cols { gap: 16px; }
  #operacionalShell.op-v2 .opv2-saldo-long { display: none; }
  #operacionalShell.op-v2 .opv2-saldo-short { display: inline; }
  #operacionalShell.op-v2 .opv2-qcard { padding: 14px 16px 12px; }
  #operacionalShell.op-v2 .opv2-qcard-value { font-size: var(--opv2-fs-card-sm); }
  #operacionalShell.op-v2 .opv2-unit { font-size: var(--opv2-fs-unit-sm); }
  #operacionalShell.op-v2 .opv2-qcard-body:not(.is-donut) { flex-direction: column; align-items: stretch; gap: 8px; }
  #operacionalShell.op-v2 .opv2-qcard-body .opv2-trend-box { align-items: stretch; }
  #operacionalShell.op-v2 .opv2-qcard-body .opv2-trend { width: 100%; height: 40px; }
  #operacionalShell.op-v2 .opv2-trend-caption { display: block; text-align: right; }
  #operacionalShell.op-v2 .opv2-trend-label { display: none; }
  #operacionalShell.op-v2 .opv2-qcard-hint { display: none; }
  #operacionalShell.op-v2 .opv2-goals-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #operacionalShell.op-v2 .opv2-sla-row { grid-template-columns: minmax(0, 1fr) minmax(60px, 110px) 108px 18px; }
}

@container opv2page (max-width: 1079px) {
  #operacionalShell.op-v2 .opv2-pulse-grid { grid-template-columns: minmax(0, 1fr) 104px minmax(0, 1fr); }
  #operacionalShell.op-v2 .opv2-rule { display: none; }
  #operacionalShell.op-v2 .opv2-waiting { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid var(--opv2-line); }
  #operacionalShell.op-v2 .opv2-quality-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #operacionalShell.op-v2 .opv2-qcard-body:not(.is-donut) { flex-direction: row; align-items: flex-end; }
  #operacionalShell.op-v2 .opv2-qcard-body .opv2-trend-box { align-items: flex-end; }
  #operacionalShell.op-v2 .opv2-qcard-body .opv2-trend { width: 150px; height: 44px; }
  #operacionalShell.op-v2 .opv2-goals-grid { grid-template-columns: minmax(0, 1fr); }
}

@container opv2page (max-width: 699px) {
  #operacionalShell.op-v2 .opv2-page { gap: 14px; }
  #operacionalShell.op-v2 .opv2-pulse { padding: 16px; gap: 14px; }
  #operacionalShell.op-v2 .opv2-pulse-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  #operacionalShell.op-v2 .opv2-big { font-size: var(--opv2-fs-big-sm); }
  #operacionalShell.op-v2 .opv2-metric-abertas { grid-column: 1; grid-row: 1; }
  #operacionalShell.op-v2 .opv2-metric-encerradas { grid-column: 2; grid-row: 1; }
  #operacionalShell.op-v2 .opv2-metric-link { padding-right: 30px; }
  #operacionalShell.op-v2 .opv2-comp { flex-wrap: wrap; white-space: normal; }
  #operacionalShell.op-v2 .opv2-saldo { grid-column: 1 / -1; grid-row: 2; justify-items: stretch; }
  #operacionalShell.op-v2 .opv2-saldo-pill { display: flex; justify-content: center; gap: 6px; }
  #operacionalShell.op-v2 .opv2-saldo-pill::after { content: "· entrou − saiu"; color: var(--opv2-faint); }
  #operacionalShell.op-v2 .opv2-saldo-line,
  #operacionalShell.op-v2 .opv2-saldo-caption { display: none; }
  #operacionalShell.op-v2 .opv2-waiting { grid-row: 3; }
  #operacionalShell.op-v2 .opv2-quality-title { display: block; }
  #operacionalShell.op-v2 .opv2-quality-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  #operacionalShell.op-v2 .opv2-qcard { min-height: 0; padding: 12px 16px 10px; }
  #operacionalShell.op-v2 .opv2-qcard-body .opv2-trend { width: 116px; height: 38px; }
  #operacionalShell.op-v2 .opv2-donut { width: 40px; height: 40px; }
  #operacionalShell.op-v2 .opv2-goals-head { flex-direction: column; align-items: stretch; }
  #operacionalShell.op-v2 .opv2-goals-title { display: grid; }
  #operacionalShell.op-v2 .opv2-goals-head .opv2-btn { min-height: 44px; width: 100%; }
  #operacionalShell.op-v2 .opv2-goal { padding: 14px 16px 12px; }
  #operacionalShell.op-v2 .opv2-sla-row { grid-template-columns: minmax(0, 1fr) auto 18px; row-gap: 6px; }
  #operacionalShell.op-v2 .opv2-sla-row .opv2-meter { grid-column: 1 / -1; grid-row: 2; }
  #operacionalShell.op-v2 .opv2-pair-value { font-size: var(--opv2-fs-summary); }
}

@media (prefers-reduced-motion: reduce) {
  #operacionalShell.op-v2 .opv2-skel,
  #operacionalShell.op-v2 .opv2-spinner { animation: none; }
  #operacionalShell.op-v2 .sidebar { transition: none; }
}

@media print {
  #operacionalShell.op-v2 .opv2-header-status,
  #operacionalShell.op-v2 .opv2-info-wrap,
  #operacionalShell.op-v2 .opv2-menu-btn,
  #operacionalShell.op-v2 .opv2-drawer-backdrop { display: none; }
}
