/*
 * MECA Execucao v2
 * Linguagem visual da simulacao operacional aprovada, traduzida para os
 * tokens nativos do MECA. Todo o arquivo e deliberadamente isolado sob
 * .meca-execucao-v2 para nao alterar telas legadas ou outros modulos.
 */

.meca-execucao-v2 {
  --exec-primary: var(--meca-primary, #001a4d);
  --exec-primary-hover: var(--meca-primary-hover, #0a2f6e);
  --exec-primary-soft: var(--meca-primary-weak, #e8eefb);
  --exec-accent: var(--meca-accent, #f09000);
  --exec-accent-soft: var(--meca-warning-weak, #fff3e0);
  --exec-surface: var(--meca-surface, #fff);
  --exec-surface-subtle: var(--meca-surface-2, #f7f9fc);
  --exec-background: var(--meca-bg, #f4f6fa);
  --exec-text: var(--meca-text, #13203a);
  --exec-muted: var(--meca-muted, #5b6677);
  --exec-border: var(--meca-border, #e4e8ef);
  --exec-success: var(--meca-success, #15803d);
  --exec-success-soft: var(--meca-success-weak, #e7f6ec);
  --exec-warning: var(--meca-warning, #9a5b00);
  --exec-warning-soft: var(--meca-warning-weak, #fff3e0);
  --exec-danger: var(--meca-danger, #b91c1c);
  --exec-danger-soft: var(--meca-danger-weak, #fee2e2);
  --exec-info: #1d4ed8;
  --exec-info-soft: #eaf1ff;
  --exec-radius: 12px;
  --exec-radius-sm: 8px;
  --exec-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 5px 16px rgba(16, 24, 40, .06);
  --exec-shadow-raised: 0 12px 30px rgba(0, 26, 77, .12);
  width: 100%;
  min-width: 0;
  color: var(--exec-text);
}

.meca-execucao-v2,
.meca-execucao-v2 *,
.meca-execucao-v2 *::before,
.meca-execucao-v2 *::after {
  box-sizing: border-box;
}

.meca-execucao-v2 .meca-v2-shell,
.meca-execucao-v2.meca-v2-shell {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.meca-execucao-v2 .meca-v2-shell__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border: 1px solid var(--exec-border);
  border-radius: var(--exec-radius);
  background: linear-gradient(135deg, var(--exec-surface) 0%, var(--exec-surface-subtle) 100%);
  box-shadow: var(--exec-shadow);
}

.meca-execucao-v2 .meca-v2-shell__heading {
  min-width: min(100%, 320px);
  flex: 1 1 440px;
}

.meca-execucao-v2 .meca-v2-eyebrow {
  display: block;
  margin: 0 0 5px;
  color: var(--exec-primary);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .075em;
  line-height: 1.2;
  text-transform: uppercase;
}

.meca-execucao-v2 .meca-v2-title {
  margin: 0;
  color: var(--exec-text);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 760;
  letter-spacing: -.025em;
  line-height: 1.15;
}

.meca-execucao-v2 .meca-v2-subtitle,
.meca-execucao-v2 .meca-v2-context {
  max-width: 78ch;
  margin: 7px 0 0;
  color: var(--exec-muted);
  font-size: .9rem;
  line-height: 1.5;
}

.meca-execucao-v2 .meca-v2-toolbar,
.meca-execucao-v2 .meca-v2-toolbar__group,
.meca-execucao-v2 .meca-v2-actions,
.meca-execucao-v2 .meca-v2-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.meca-execucao-v2 .meca-v2-toolbar {
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid var(--exec-border);
  border-radius: var(--exec-radius);
  background: var(--exec-surface);
  box-shadow: var(--exec-shadow);
}

.meca-execucao-v2 .meca-v2-toolbar__group {
  flex: 1 1 auto;
}

.meca-execucao-v2 .meca-v2-field {
  display: grid;
  gap: 5px;
  min-width: min(100%, 180px);
  color: var(--exec-text);
  font-size: .78rem;
  font-weight: 700;
}

.meca-execucao-v2 .meca-v2-field input,
.meca-execucao-v2 .meca-v2-field select,
.meca-execucao-v2 .meca-v2-field textarea,
.meca-execucao-v2 .meca-v2-control {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--exec-border);
  border-radius: var(--exec-radius-sm);
  background: var(--exec-surface);
  color: var(--exec-text);
  font: inherit;
  font-weight: 500;
  line-height: 1.35;
  padding: 9px 11px;
  transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

/* Mantém formulários Django legados no mesmo contrato visual das telas v2. */
.meca-execucao-v2 .meca-field > :where(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea),
.meca-execucao-v2 .meca-form p > :where(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea) {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--exec-border);
  border-radius: var(--exec-radius-sm);
  background: var(--exec-surface);
  color: var(--exec-text);
  padding: 9px 11px;
}

.meca-execucao-v2 .meca-field > textarea,
.meca-execucao-v2 .meca-form p > textarea {
  min-height: 94px;
  resize: vertical;
}

.meca-execucao-v2 .meca-v2-field textarea,
.meca-execucao-v2 textarea.meca-v2-control {
  min-height: 94px;
  resize: vertical;
}

.meca-execucao-v2 .meca-v2-field input:focus,
.meca-execucao-v2 .meca-v2-field select:focus,
.meca-execucao-v2 .meca-v2-field textarea:focus,
.meca-execucao-v2 .meca-v2-control:focus,
.meca-execucao-v2 .meca-field > :where(input, select, textarea):focus,
.meca-execucao-v2 .meca-form p > :where(input, select, textarea):focus {
  border-color: var(--exec-accent);
  box-shadow: 0 0 0 3px rgba(240, 144, 0, .16);
  outline: 0;
}

.meca-execucao-v2 .meca-v2-field input:disabled,
.meca-execucao-v2 .meca-v2-field select:disabled,
.meca-execucao-v2 .meca-v2-field textarea:disabled,
.meca-execucao-v2 .meca-v2-control:disabled {
  cursor: not-allowed;
  background: var(--exec-surface-subtle);
  color: var(--exec-muted);
  opacity: .82;
}

.meca-execucao-v2 .meca-v2-tabs {
  display: flex;
  gap: 4px;
  width: 100%;
  padding: 4px;
  overflow-x: auto;
  border: 1px solid var(--exec-border);
  border-radius: var(--exec-radius);
  background: var(--exec-surface);
  box-shadow: var(--exec-shadow);
  scrollbar-width: thin;
}

.meca-execucao-v2 .meca-v2-tab {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 13px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--exec-muted);
  font: inherit;
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.meca-execucao-v2 .meca-v2-tab:hover {
  background: var(--exec-surface-subtle);
  color: var(--exec-primary);
}

.meca-execucao-v2 .meca-v2-tab.is-active,
.meca-execucao-v2 .meca-v2-tab[aria-current="page"],
.meca-execucao-v2 .meca-v2-tab[aria-selected="true"] {
  background: var(--exec-primary);
  color: #fff;
  box-shadow: 0 3px 9px rgba(0, 26, 77, .18);
}

.meca-execucao-v2 .meca-v2-tab[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: .55;
}

.meca-execucao-v2 .meca-v2-tab__count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  min-height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  font-size: .7rem;
}

.meca-execucao-v2 .meca-v2-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.meca-execucao-v2 .meca-v2-kpi,
.meca-execucao-v2 .meca-v2-stat {
  position: relative;
  min-width: 0;
  min-height: 126px;
  padding: 18px 20px;
  overflow: hidden;
  border: 1px solid var(--exec-border);
  border-radius: var(--exec-radius);
  background: var(--exec-surface);
  box-shadow: var(--exec-shadow);
}

.meca-execucao-v2 .meca-v2-kpi::before,
.meca-execucao-v2 .meca-v2-stat::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--exec-primary);
  content: "";
}

.meca-execucao-v2 .meca-v2-kpi[data-tone="success"]::before,
.meca-execucao-v2 .meca-v2-stat[data-tone="success"]::before { background: var(--exec-success); }
.meca-execucao-v2 .meca-v2-kpi[data-tone="warning"]::before,
.meca-execucao-v2 .meca-v2-stat[data-tone="warning"]::before { background: var(--exec-accent); }
.meca-execucao-v2 .meca-v2-kpi[data-tone="danger"]::before,
.meca-execucao-v2 .meca-v2-stat[data-tone="danger"]::before { background: var(--exec-danger); }

.meca-execucao-v2 .meca-v2-kpi__label,
.meca-execucao-v2 .meca-v2-stat__label {
  display: block;
  color: var(--exec-muted);
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.3;
}

.meca-execucao-v2 .meca-v2-kpi__value,
.meca-execucao-v2 .meca-v2-stat__value {
  display: block;
  margin: 8px 0 5px;
  color: var(--exec-text);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  font-weight: 780;
  letter-spacing: -.035em;
  line-height: 1;
}

.meca-execucao-v2 .meca-v2-kpi__note,
.meca-execucao-v2 .meca-v2-stat__note {
  display: block;
  color: var(--exec-muted);
  font-size: .76rem;
  line-height: 1.4;
}

.meca-execucao-v2 .meca-v2-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.meca-execucao-v2 .meca-v2-grid > * { min-width: 0; }
.meca-execucao-v2 .meca-v2-grid > :not([class*="meca-v2-col-"]) { grid-column: span 6; }
.meca-execucao-v2 .meca-v2-mobile-list { display: grid; gap: 12px; }
.meca-execucao-v2 .meca-v2-col-12 { grid-column: span 12; }
.meca-execucao-v2 .meca-v2-col-9 { grid-column: span 9; }
.meca-execucao-v2 .meca-v2-col-8 { grid-column: span 8; }
.meca-execucao-v2 .meca-v2-col-7 { grid-column: span 7; }
.meca-execucao-v2 .meca-v2-col-6 { grid-column: span 6; }
.meca-execucao-v2 .meca-v2-col-5 { grid-column: span 5; }
.meca-execucao-v2 .meca-v2-col-4 { grid-column: span 4; }
.meca-execucao-v2 .meca-v2-col-3 { grid-column: span 3; }

.meca-execucao-v2 .meca-v2-card {
  min-width: 0;
  padding: 18px 20px;
  border: 1px solid var(--exec-border);
  border-radius: var(--exec-radius);
  background: var(--exec-surface);
  box-shadow: var(--exec-shadow);
}

.meca-execucao-v2 .meca-v2-card--flat { box-shadow: none; }
.meca-execucao-v2 .meca-v2-card--subtle { background: var(--exec-surface-subtle); }
.meca-execucao-v2 .meca-v2-card--selected {
  border-color: rgba(0, 26, 77, .28);
  box-shadow: 0 0 0 2px var(--exec-primary-soft), var(--exec-shadow);
}

.meca-execucao-v2 .meca-v2-card__head,
.meca-execucao-v2 .meca-v2-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 14px;
}

.meca-execucao-v2 .meca-v2-section-head { margin-top: 4px; }

.meca-execucao-v2 .meca-v2-card__title,
.meca-execucao-v2 .meca-v2-section-title {
  margin: 0;
  color: var(--exec-text);
  font-size: 1rem;
  font-weight: 760;
  line-height: 1.3;
}

.meca-execucao-v2 .meca-v2-card__subtitle,
.meca-execucao-v2 .meca-v2-section-note {
  margin: 4px 0 0;
  color: var(--exec-muted);
  font-size: .78rem;
  line-height: 1.45;
}

.meca-execucao-v2 .meca-v2-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.meca-execucao-v2 .meca-v2-meta__item {
  min-width: 0;
  padding: 10px 12px;
  border-left: 2px solid var(--exec-border);
  background: var(--exec-surface-subtle);
}

.meca-execucao-v2 .meca-v2-meta__label,
.meca-execucao-v2 .meca-v2-meta__value {
  display: block;
  overflow-wrap: anywhere;
}

.meca-execucao-v2 .meca-v2-meta__label {
  color: var(--exec-muted);
  font-size: .72rem;
  line-height: 1.3;
}

.meca-execucao-v2 .meca-v2-meta__value {
  margin-top: 3px;
  color: var(--exec-text);
  font-size: .86rem;
  font-weight: 750;
  line-height: 1.35;
}

.meca-execucao-v2 .meca-v2-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  max-width: 100%;
  min-height: 25px;
  padding: 4px 9px;
  border: 1px solid var(--exec-border);
  border-radius: 999px;
  background: var(--exec-surface-subtle);
  color: var(--exec-muted);
  font-size: .69rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .025em;
}

.meca-execucao-v2 .meca-v2-badge[data-tone="primary"],
.meca-execucao-v2 .meca-v2-badge--primary { border-color: #c8d4ef; background: var(--exec-primary-soft); color: var(--exec-primary); }
.meca-execucao-v2 .meca-v2-badge[data-tone="success"],
.meca-execucao-v2 .meca-v2-badge--success { border-color: #bce2c8; background: var(--exec-success-soft); color: var(--exec-success); }
.meca-execucao-v2 .meca-v2-badge[data-tone="warning"],
.meca-execucao-v2 .meca-v2-badge--warning { border-color: #f0d3a4; background: var(--exec-warning-soft); color: var(--exec-warning); }
.meca-execucao-v2 .meca-v2-badge[data-tone="danger"],
.meca-execucao-v2 .meca-v2-badge--danger { border-color: #f0bcbc; background: var(--exec-danger-soft); color: var(--exec-danger); }
.meca-execucao-v2 .meca-v2-badge[data-tone="info"],
.meca-execucao-v2 .meca-v2-badge--info { border-color: #bfd0f5; background: var(--exec-info-soft); color: var(--exec-info); }
.meca-execucao-v2 .meca-v2-badge[data-tone="neutral"],
.meca-execucao-v2 .meca-v2-badge--neutral { border-color: var(--exec-border); background: var(--exec-surface-subtle); color: var(--exec-muted); }

.meca-execucao-v2 .meca-v2-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: currentColor;
}

.meca-execucao-v2 .meca-v2-state--success { color: var(--exec-success); }
.meca-execucao-v2 .meca-v2-state--warning { color: var(--exec-warning); }
.meca-execucao-v2 .meca-v2-state--danger { color: var(--exec-danger); }
.meca-execucao-v2 .meca-v2-state--muted { color: var(--exec-muted); }

.meca-execucao-v2 .meca-v2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--exec-border);
  border-radius: var(--exec-radius-sm);
  background: var(--exec-surface);
  color: var(--exec-primary);
  font: inherit;
  font-size: .79rem;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, background-color 120ms ease, box-shadow 120ms ease;
}

.meca-execucao-v2 .meca-v2-btn:hover {
  border-color: #c7d0df;
  background: var(--exec-surface-subtle);
  box-shadow: 0 3px 9px rgba(16, 24, 40, .07);
  transform: translateY(-1px);
}

.meca-execucao-v2 .meca-v2-btn--primary {
  border-color: var(--exec-primary);
  background: var(--exec-primary);
  color: #fff;
}

.meca-execucao-v2 .meca-v2-btn--primary:hover {
  border-color: var(--exec-primary-hover);
  background: var(--exec-primary-hover);
}

.meca-execucao-v2 .meca-v2-btn--accent {
  border-color: var(--exec-accent);
  background: var(--exec-accent);
  color: var(--meca-accent-ink, #3a2300);
}

.meca-execucao-v2 .meca-v2-btn--danger {
  border-color: var(--exec-danger);
  background: var(--exec-danger);
  color: #fff;
}

.meca-execucao-v2 .meca-v2-btn:disabled,
.meca-execucao-v2 .meca-v2-btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: .48;
  pointer-events: none;
  transform: none;
}

/* Compatibilidade visual das ações preservadas dos fluxos existentes. */
.meca-execucao-v2 .meca-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--exec-border);
  border-radius: var(--exec-radius-sm);
  background: var(--exec-surface);
  color: var(--exec-primary);
  font-size: .82rem;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
}

.meca-execucao-v2 .meca-btn:hover { border-color: #bcc6d4; background: var(--exec-surface-subtle); }
.meca-execucao-v2 .meca-btn--primary { border-color: var(--exec-primary); background: var(--exec-primary); color: #fff; }
.meca-execucao-v2 .meca-btn--primary:hover { background: var(--exec-primary-hover); color: #fff; }
.meca-execucao-v2 .meca-btn--danger { border-color: var(--exec-danger); background: var(--exec-danger); color: #fff; }
.meca-execucao-v2 .meca-btn--sm { min-height: 32px; padding: 6px 10px; font-size: .75rem; }

.meca-execucao-v2 .meca-v2-progress {
  width: 100%;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9edf3;
}

.meca-execucao-v2 .meca-v2-progress__bar {
  display: block;
  width: var(--meca-v2-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--exec-primary), #315a9f);
  transition: width 180ms ease;
}

.meca-execucao-v2 .meca-v2-progress[data-tone="success"] .meca-v2-progress__bar { background: var(--exec-success); }
.meca-execucao-v2 .meca-v2-progress[data-tone="warning"] .meca-v2-progress__bar { background: var(--exec-accent); }
.meca-execucao-v2 .meca-v2-progress[data-tone="danger"] .meca-v2-progress__bar { background: var(--exec-danger); }

.meca-execucao-v2 .meca-v2-stage-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}

.meca-execucao-v2 .meca-v2-stage {
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  min-height: 122px;
  padding: 13px;
  border: 1px solid var(--exec-border);
  border-top: 4px solid var(--exec-border);
  border-radius: var(--exec-radius-sm);
  background: var(--exec-surface);
  color: var(--exec-text);
  text-align: left;
}

.meca-execucao-v2 button.meca-v2-stage {
  font: inherit;
  cursor: pointer;
}

.meca-execucao-v2 button.meca-v2-stage:hover {
  border-color: #c9d1de;
  border-top-color: var(--exec-primary);
  box-shadow: var(--exec-shadow);
}

.meca-execucao-v2 .meca-v2-stage.is-active {
  border-color: #aabbd9;
  border-top-color: var(--exec-primary);
  background: var(--exec-primary-soft);
  box-shadow: 0 0 0 2px rgba(0, 26, 77, .08);
}

.meca-execucao-v2 .meca-v2-stage.is-done {
  border-top-color: var(--exec-success);
  background: var(--exec-success-soft);
}

.meca-execucao-v2 .meca-v2-stage.is-review {
  border-top-color: var(--exec-accent);
  background: var(--exec-warning-soft);
}

.meca-execucao-v2 .meca-v2-stage.is-locked {
  color: var(--exec-muted);
  background: var(--exec-surface-subtle);
}

.meca-execucao-v2 .meca-v2-stage__index {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--exec-primary-soft);
  color: var(--exec-primary);
  font-size: .72rem;
  font-weight: 800;
}

.meca-execucao-v2 .meca-v2-stage.is-done .meca-v2-stage__index { background: var(--exec-success); color: #fff; }
.meca-execucao-v2 .meca-v2-stage.is-review .meca-v2-stage__index { background: var(--exec-accent); color: var(--meca-accent-ink, #3a2300); }
.meca-execucao-v2 .meca-v2-stage.is-locked .meca-v2-stage__index { background: #e5e9ef; color: var(--exec-muted); }

.meca-execucao-v2 .meca-v2-stage__title {
  margin: 0;
  font-size: .85rem;
  font-weight: 760;
  line-height: 1.3;
}

.meca-execucao-v2 .meca-v2-stage__meta {
  color: var(--exec-muted);
  font-size: .7rem;
  line-height: 1.35;
}

.meca-execucao-v2 .meca-v2-checklist,
.meca-execucao-v2 .meca-v2-readiness,
.meca-execucao-v2 .meca-v2-evidence-list,
.meca-execucao-v2 .meca-v2-alert-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.meca-execucao-v2 .meca-v2-check,
.meca-execucao-v2 .meca-v2-readiness__row,
.meca-execucao-v2 .meca-v2-evidence,
.meca-execucao-v2 .meca-v2-alert {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 11px 0;
  border-bottom: 1px solid var(--exec-border);
}

.meca-execucao-v2 .meca-v2-check:last-child,
.meca-execucao-v2 .meca-v2-readiness__row:last-child,
.meca-execucao-v2 .meca-v2-evidence:last-child,
.meca-execucao-v2 .meca-v2-alert:last-child { border-bottom: 0; }

.meca-execucao-v2 .meca-v2-check {
  justify-content: flex-start;
  color: var(--exec-text);
  font-size: .84rem;
}

.meca-execucao-v2 .meca-v2-check input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--exec-primary);
}

.meca-execucao-v2 .meca-v2-check.is-done { color: var(--exec-muted); }
.meca-execucao-v2 .meca-v2-check.is-done .meca-v2-check__label { text-decoration: line-through; }

.meca-execucao-v2 .meca-v2-timeline {
  position: relative;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.meca-execucao-v2 .meca-v2-timeline::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 10px;
  width: 2px;
  background: var(--exec-border);
  content: "";
}

.meca-execucao-v2 .meca-v2-timeline__item {
  position: relative;
  min-width: 0;
  padding: 0 0 19px 34px;
}

.meca-execucao-v2 .meca-v2-timeline__item:last-child { padding-bottom: 0; }

.meca-execucao-v2 .meca-v2-timeline__marker {
  position: absolute;
  top: 3px;
  left: 3px;
  z-index: 1;
  width: 16px;
  height: 16px;
  border: 3px solid var(--exec-surface);
  border-radius: 50%;
  background: var(--exec-primary);
  box-shadow: 0 0 0 1px var(--exec-primary);
}

.meca-execucao-v2 .meca-v2-timeline__item[data-tone="success"] .meca-v2-timeline__marker { background: var(--exec-success); box-shadow: 0 0 0 1px var(--exec-success); }
.meca-execucao-v2 .meca-v2-timeline__item[data-tone="warning"] .meca-v2-timeline__marker { background: var(--exec-accent); box-shadow: 0 0 0 1px var(--exec-accent); }
.meca-execucao-v2 .meca-v2-timeline__item[data-tone="danger"] .meca-v2-timeline__marker { background: var(--exec-danger); box-shadow: 0 0 0 1px var(--exec-danger); }

.meca-execucao-v2 .meca-v2-timeline__title {
  display: block;
  margin: 0 0 3px;
  color: var(--exec-text);
  font-size: .84rem;
  font-weight: 750;
  line-height: 1.35;
}

.meca-execucao-v2 .meca-v2-timeline__meta,
.meca-execucao-v2 .meca-v2-timeline__text {
  display: block;
  color: var(--exec-muted);
  font-size: .75rem;
  line-height: 1.45;
}

.meca-execucao-v2 .meca-v2-flow,
.meca-execucao-v2 .meca-v2-macro-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 9px;
}

.meca-execucao-v2 .meca-v2-flow__step,
.meca-execucao-v2 .meca-v2-macro-flow__step {
  position: relative;
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid var(--exec-border);
  border-bottom: 3px solid var(--exec-border);
  border-radius: var(--exec-radius-sm);
  background: var(--exec-surface);
}

.meca-execucao-v2 .meca-v2-flow__step:not(:last-child)::after,
.meca-execucao-v2 .meca-v2-macro-flow__step:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -10px;
  z-index: 2;
  width: 10px;
  height: 2px;
  background: var(--exec-border);
  content: "";
}

.meca-execucao-v2 .meca-v2-flow__step.is-current,
.meca-execucao-v2 .meca-v2-macro-flow__step.is-current {
  border-color: #aabbd9;
  border-bottom-color: var(--exec-primary);
  background: var(--exec-primary-soft);
}

.meca-execucao-v2 .meca-v2-flow__step.is-done,
.meca-execucao-v2 .meca-v2-macro-flow__step.is-done {
  border-bottom-color: var(--exec-success);
  background: var(--exec-success-soft);
}

.meca-execucao-v2 .meca-v2-flow__step.is-warning,
.meca-execucao-v2 .meca-v2-macro-flow__step.is-human { border-bottom-color: var(--exec-accent); }
.meca-execucao-v2 .meca-v2-macro-flow__step.is-system { border-bottom-color: var(--exec-primary); }

.meca-execucao-v2 .meca-v2-flow__title {
  display: block;
  color: var(--exec-text);
  font-size: .8rem;
  font-weight: 780;
  line-height: 1.3;
}

.meca-execucao-v2 .meca-v2-flow__note {
  display: block;
  margin-top: 4px;
  color: var(--exec-muted);
  font-size: .7rem;
  line-height: 1.4;
}

/* Contrato direto usado pelas telas de governanca de prazo. */
.meca-execucao-v2 .meca-v2-deadline-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.meca-execucao-v2 .meca-v2-flow-step {
  position: relative;
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid var(--exec-border);
  border-bottom: 3px solid var(--exec-border);
  border-radius: var(--exec-radius-sm);
  background: var(--exec-surface);
  color: var(--exec-text);
  font-size: .8rem;
  line-height: 1.4;
}

.meca-execucao-v2 .meca-v2-flow-step > strong,
.meca-execucao-v2 .meca-v2-flow-step > span {
  display: block;
}

.meca-execucao-v2 .meca-v2-flow-step > strong { margin-bottom: 4px; }

.meca-execucao-v2 .meca-v2-flow-step > span {
  color: var(--exec-muted);
  font-size: .7rem;
  line-height: 1.35;
}

.meca-execucao-v2 .meca-v2-flow-step.is-current {
  border-color: #aabbd9;
  border-bottom-color: var(--exec-primary);
  background: var(--exec-primary-soft);
}

.meca-execucao-v2 .meca-v2-flow-step.is-done {
  border-bottom-color: var(--exec-success);
  background: var(--exec-success-soft);
}

.meca-execucao-v2 .meca-v2-flow-step.is-warning {
  border-bottom-color: var(--exec-accent);
  background: var(--exec-warning-soft);
}

.meca-execucao-v2 .meca-v2-flow-step.is-danger {
  border-bottom-color: var(--exec-danger);
  background: var(--exec-danger-soft);
}

.meca-execucao-v2 .meca-v2-capacity {
  display: grid;
  gap: 11px;
}

.meca-execucao-v2 .meca-v2-capacity__row {
  display: grid;
  grid-template-columns: minmax(120px, .85fr) minmax(160px, 2fr) minmax(74px, .55fr);
  gap: 11px;
  align-items: center;
}

.meca-execucao-v2 .meca-v2-capacity__person {
  min-width: 0;
  overflow: hidden;
  color: var(--exec-text);
  font-size: .8rem;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meca-execucao-v2 .meca-v2-capacity__bar {
  height: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9edf3;
}

.meca-execucao-v2 .meca-v2-capacity__fill {
  display: block;
  width: var(--meca-v2-capacity, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--exec-primary);
}

.meca-execucao-v2 .meca-v2-capacity__row[data-load="warning"] .meca-v2-capacity__fill { background: var(--exec-accent); }
.meca-execucao-v2 .meca-v2-capacity__row[data-load="danger"] .meca-v2-capacity__fill { background: var(--exec-danger); }
.meca-execucao-v2 .meca-v2-capacity__value { color: var(--exec-muted); font-size: .75rem; text-align: right; }

/* Nomes compactos preservados para paineis de carga da equipe. */
.meca-execucao-v2 .meca-v2-load-row {
  display: grid;
  grid-template-columns: minmax(120px, .85fr) minmax(160px, 2fr) minmax(74px, .55fr);
  gap: 11px;
  align-items: center;
}

.meca-execucao-v2 .meca-v2-load-bar {
  height: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9edf3;
}

.meca-execucao-v2 .meca-v2-load-bar > span,
.meca-execucao-v2 .meca-v2-load-bar__fill {
  display: block;
  width: var(--meca-v2-load, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--exec-primary);
}

.meca-execucao-v2 .meca-v2-load-row[data-load="warning"] .meca-v2-load-bar > span,
.meca-execucao-v2 .meca-v2-load-row[data-load="warning"] .meca-v2-load-bar__fill { background: var(--exec-accent); }
.meca-execucao-v2 .meca-v2-load-row[data-load="danger"] .meca-v2-load-bar > span,
.meca-execucao-v2 .meca-v2-load-row[data-load="danger"] .meca-v2-load-bar__fill { background: var(--exec-danger); }

.meca-execucao-v2 .meca-v2-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--exec-border);
  border-radius: var(--exec-radius);
  background: var(--exec-surface);
}

.meca-execucao-v2 .meca-v2-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  border-spacing: 0;
  color: var(--exec-text);
  font-size: .8rem;
}

.meca-execucao-v2 .meca-v2-table th,
.meca-execucao-v2 .meca-v2-table td {
  padding: 12px 13px;
  border-bottom: 1px solid var(--exec-border);
  text-align: left;
  vertical-align: middle;
}

.meca-execucao-v2 .meca-v2-table th {
  background: var(--exec-surface-subtle);
  color: var(--exec-muted);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
  white-space: nowrap;
}

.meca-execucao-v2 .meca-v2-table tbody tr:last-child td { border-bottom: 0; }
.meca-execucao-v2 .meca-v2-table tbody tr:hover td { background: rgba(232, 238, 251, .42); }

.meca-execucao-v2 .meca-v2-data-list {
  display: grid;
  min-width: 0;
  border-top: 1px solid var(--exec-border);
}

.meca-execucao-v2 .meca-v2-data-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.6fr) minmax(90px, .8fr) minmax(90px, .75fr) minmax(120px, 1fr) minmax(130px, 1.15fr);
  gap: 11px;
  align-items: center;
  min-width: 0;
  padding: 12px 2px;
  border-bottom: 1px solid var(--exec-border);
}

.meca-execucao-v2 .meca-v2-data-row--head {
  color: var(--exec-muted);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.meca-execucao-v2 .meca-v2-data-row > * { min-width: 0; overflow-wrap: anywhere; }

.meca-execucao-v2 .meca-v2-agenda {
  display: grid;
  gap: 0;
}

.meca-execucao-v2 .meca-v2-agenda__event {
  display: grid;
  grid-template-columns: minmax(78px, .5fr) minmax(190px, 2fr) minmax(120px, 1fr) minmax(110px, .8fr) auto;
  gap: 11px;
  align-items: center;
  min-width: 0;
  padding: 13px 10px;
  border-bottom: 1px solid var(--exec-border);
  border-left: 3px solid transparent;
}

.meca-execucao-v2 .meca-v2-agenda__event:hover { background: var(--exec-surface-subtle); }
.meca-execucao-v2 .meca-v2-agenda__event[data-status="risk"],
.meca-execucao-v2 .meca-v2-agenda__event[data-status="conflict"] { border-left-color: var(--exec-danger); background: rgba(254, 226, 226, .38); }
.meca-execucao-v2 .meca-v2-agenda__event[data-status="tentative"] { border-left-color: var(--exec-accent); }
.meca-execucao-v2 .meca-v2-agenda__event[data-status="confirmed"] { border-left-color: var(--exec-success); }

.meca-execucao-v2 .meca-v2-alert {
  align-items: flex-start;
  padding-left: 12px;
  border-left: 3px solid var(--exec-border);
}

.meca-execucao-v2 .meca-v2-alert[data-severity="alta"] { border-left-color: var(--exec-danger); }
.meca-execucao-v2 .meca-v2-alert[data-severity="media"] { border-left-color: var(--exec-accent); }
.meca-execucao-v2 .meca-v2-alert[data-severity="baixa"] { border-left-color: var(--exec-success); }

.meca-execucao-v2 .meca-v2-alert__body {
  flex: 1 1 260px;
  min-width: 0;
}

.meca-execucao-v2 .meca-v2-alert__title {
  display: block;
  color: var(--exec-text);
  font-size: .83rem;
  font-weight: 750;
  line-height: 1.35;
}

.meca-execucao-v2 .meca-v2-alert__text {
  display: block;
  margin-top: 3px;
  color: var(--exec-muted);
  font-size: .75rem;
  line-height: 1.45;
}

.meca-execucao-v2 .meca-v2-alert-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 9px;
  padding: 11px 0 11px 12px;
  border-bottom: 1px solid var(--exec-border);
  border-left: 3px solid var(--exec-border);
}

.meca-execucao-v2 .meca-v2-alert-row[data-severity="alta"],
.meca-execucao-v2 .meca-v2-alert-row--danger { border-left-color: var(--exec-danger); }
.meca-execucao-v2 .meca-v2-alert-row[data-severity="media"],
.meca-execucao-v2 .meca-v2-alert-row--warning { border-left-color: var(--exec-accent); }
.meca-execucao-v2 .meca-v2-alert-row[data-severity="baixa"],
.meca-execucao-v2 .meca-v2-alert-row--success { border-left-color: var(--exec-success); }

.meca-execucao-v2 .meca-v2-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.meca-execucao-v2 .meca-v2-form-grid__wide { grid-column: 1 / -1; }

.meca-deadline-page .meca-v2-form-grid {
  align-items: start;
}

.meca-deadline-page .meca-v2-form-grid .meca-field {
  align-self: start;
}

.meca-deadline-page .meca-v2-form-grid textarea {
  min-height: 92px;
  max-height: 160px;
}

.meca-execucao-v2 .meca-v2-empty,
.meca-execucao-v2 .meca-v2-message {
  padding: 18px;
  border: 1px dashed var(--exec-border);
  border-radius: var(--exec-radius);
  background: var(--exec-surface-subtle);
  color: var(--exec-muted);
  font-size: .82rem;
  line-height: 1.5;
  text-align: center;
}

.meca-execucao-v2 .meca-v2-message[data-tone="success"] { border-style: solid; border-color: #bce2c8; background: var(--exec-success-soft); color: var(--exec-success); }
.meca-execucao-v2 .meca-v2-message[data-tone="warning"] { border-style: solid; border-color: #f0d3a4; background: var(--exec-warning-soft); color: var(--exec-warning); }
.meca-execucao-v2 .meca-v2-message[data-tone="danger"] { border-style: solid; border-color: #f0bcbc; background: var(--exec-danger-soft); color: var(--exec-danger); }

.meca-execucao-v2 .meca-v2-divider {
  width: 100%;
  height: 1px;
  margin: 4px 0;
  border: 0;
  background: var(--exec-border);
}

.meca-execucao-v2 .meca-v2-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.meca-execucao-v2 .meca-v2-hidden { display: none !important; }

.meca-execucao-v2 :where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid rgba(240, 144, 0, .28);
  outline-offset: 2px;
}

@media (max-width: 1050px) {
  .meca-execucao-v2 .meca-v2-stage-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .meca-execucao-v2 .meca-v2-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meca-execucao-v2 .meca-v2-col-9,
  .meca-execucao-v2 .meca-v2-col-8,
  .meca-execucao-v2 .meca-v2-col-7 { grid-column: span 12; }
  .meca-execucao-v2 .meca-v2-col-5,
  .meca-execucao-v2 .meca-v2-col-4,
  .meca-execucao-v2 .meca-v2-col-3 { grid-column: span 6; }
}

@media (max-width: 780px) {
  .meca-execucao-v2 .meca-v2-shell,
  .meca-execucao-v2.meca-v2-shell { gap: 14px; }
  .meca-execucao-v2 .meca-v2-shell__header,
  .meca-execucao-v2 .meca-v2-card { padding: 16px; }
  .meca-execucao-v2 .meca-v2-kpis { grid-template-columns: 1fr; }
  .meca-execucao-v2 .meca-v2-kpi,
  .meca-execucao-v2 .meca-v2-stat { min-height: 0; }
  .meca-execucao-v2 .meca-v2-stage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meca-execucao-v2 .meca-v2-col-6,
  .meca-execucao-v2 .meca-v2-col-5,
  .meca-execucao-v2 .meca-v2-col-4,
  .meca-execucao-v2 .meca-v2-col-3 { grid-column: span 12; }
  .meca-execucao-v2 .meca-v2-grid > :not([class*="meca-v2-col-"]) { grid-column: span 12; }
  .meca-execucao-v2 .meca-v2-data-row,
  .meca-execucao-v2 .meca-v2-agenda__event {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 12px;
  }
  .meca-execucao-v2 .meca-v2-data-row--head { display: none; }
  .meca-execucao-v2 .meca-v2-agenda__event > :nth-child(2),
  .meca-execucao-v2 .meca-v2-data-row > :first-child { grid-column: 1 / -1; }
  .meca-execucao-v2 .meca-v2-flow__step:not(:last-child)::after,
  .meca-execucao-v2 .meca-v2-macro-flow__step:not(:last-child)::after { display: none; }
}

@media (max-width: 560px) {
  .meca-execucao-v2 .meca-v2-toolbar,
  .meca-execucao-v2 .meca-v2-toolbar__group,
  .meca-execucao-v2 .meca-v2-field { width: 100%; }
  .meca-execucao-v2 .meca-v2-toolbar__group { align-items: stretch; }
  .meca-execucao-v2 .meca-v2-tabs { border-radius: 9px; }
  .meca-execucao-v2 .meca-v2-tab { min-height: 42px; }
  .meca-execucao-v2 .meca-v2-meta,
  .meca-execucao-v2 .meca-v2-stage-grid,
  .meca-execucao-v2 .meca-v2-form-grid,
  .meca-execucao-v2 .meca-v2-deadline-flow,
  .meca-execucao-v2 .meca-v2-flow,
  .meca-execucao-v2 .meca-v2-macro-flow { grid-template-columns: 1fr; }
  .meca-execucao-v2 .meca-v2-form-grid__wide { grid-column: auto; }
  .meca-execucao-v2 .meca-v2-capacity__row { grid-template-columns: minmax(0, 1fr) auto; }
  .meca-execucao-v2 .meca-v2-load-row { grid-template-columns: minmax(0, 1fr) auto; }
  .meca-execucao-v2 .meca-v2-capacity__bar { grid-column: 1 / -1; grid-row: 2; }
  .meca-execucao-v2 .meca-v2-load-bar { grid-column: 1 / -1; grid-row: 2; }
  .meca-execucao-v2 .meca-v2-capacity__value { grid-column: 2; grid-row: 1; }
  .meca-execucao-v2 .meca-v2-actions { width: 100%; }
  .meca-execucao-v2 .meca-v2-actions .meca-v2-btn { flex: 1 1 100%; }
  .meca-execucao-v2 .meca-v2-data-row,
  .meca-execucao-v2 .meca-v2-agenda__event { grid-template-columns: 1fr; }
  .meca-execucao-v2 .meca-v2-agenda__event > *,
  .meca-execucao-v2 .meca-v2-data-row > * { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .meca-execucao-v2 .meca-v2-tab,
  .meca-execucao-v2 .meca-v2-btn,
  .meca-execucao-v2 .meca-v2-progress__bar,
  .meca-execucao-v2 .meca-v2-field input,
  .meca-execucao-v2 .meca-v2-field select,
  .meca-execucao-v2 .meca-v2-field textarea,
  .meca-execucao-v2 .meca-v2-control { transition: none; }
}

/* Detalhamento progressivo das etapas da tarefa. */
.meca-execucao-v2 a.meca-v2-stage {
  text-decoration: none;
}

.meca-execucao-v2 .meca-v2-stage.is-warning {
  border-top-color: var(--exec-danger);
  background: var(--exec-danger-soft);
}

.meca-execucao-v2 .meca-v2-stage.is-warning .meca-v2-stage__index {
  background: var(--exec-danger);
  color: #fff;
}

.meca-execucao-v2 .meca-v2-stage-details {
  display: grid;
  gap: 11px;
  margin-top: 16px;
}

.meca-execucao-v2 .meca-v2-stage-detail {
  scroll-margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--exec-border);
  border-left: 4px solid var(--exec-border);
  border-radius: var(--exec-radius);
  background: var(--exec-surface);
  box-shadow: var(--exec-shadow);
}

.meca-execucao-v2 .meca-v2-stage-detail.is-active { border-left-color: var(--exec-primary); }
.meca-execucao-v2 .meca-v2-stage-detail.is-review { border-left-color: var(--exec-accent); }
.meca-execucao-v2 .meca-v2-stage-detail.is-done { border-left-color: var(--exec-success); }
.meca-execucao-v2 .meca-v2-stage-detail.is-warning { border-left-color: var(--exec-danger); }

.meca-execucao-v2 .meca-v2-stage-detail__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 12px 15px;
  background: var(--exec-surface-subtle);
  color: var(--exec-text);
  cursor: pointer;
  list-style: none;
}

.meca-execucao-v2 .meca-v2-stage-detail__summary::-webkit-details-marker {
  display: none;
}

.meca-execucao-v2 .meca-v2-stage-detail__summary::after {
  margin-left: 2px;
  color: var(--exec-muted);
  font-size: 1rem;
  font-weight: 800;
  content: "+";
}

.meca-execucao-v2 .meca-v2-stage-detail[open] > .meca-v2-stage-detail__summary::after {
  content: "−";
}

.meca-execucao-v2 .meca-v2-stage-detail__summary > .meca-v2-badge {
  margin-left: auto;
}

.meca-execucao-v2 .meca-v2-stage-detail__heading {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.meca-execucao-v2 .meca-v2-stage-detail__heading > span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.meca-execucao-v2 .meca-v2-stage-detail__heading strong {
  overflow: hidden;
  font-size: .88rem;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meca-execucao-v2 .meca-v2-stage-detail__heading small {
  color: var(--exec-muted);
  font-size: .72rem;
  line-height: 1.35;
}

.meca-execucao-v2 .meca-v2-stage-detail__body {
  display: grid;
  gap: 14px;
  padding: 17px;
  border-top: 1px solid var(--exec-border);
}

.meca-execucao-v2 .meca-v2-stage-detail__lead {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.meca-execucao-v2 .meca-v2-stage-detail__lead > div:first-child {
  flex: 1 1 320px;
}

.meca-execucao-v2 .meca-v2-stage-detail__lead p {
  margin: 0;
  line-height: 1.5;
}

.meca-execucao-v2 .meca-v2-stage-detail__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  gap: 12px;
}

.meca-execucao-v2 .meca-v2-disclosure {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--exec-border);
}

.meca-execucao-v2 .meca-v2-disclosure > summary {
  color: var(--exec-primary);
  font-size: .79rem;
  font-weight: 750;
  cursor: pointer;
}

.meca-execucao-v2 .meca-v2-disclosure > form {
  margin-top: 12px;
}

@media (max-width: 780px) {
  .meca-execucao-v2 .meca-v2-stage-detail__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .meca-execucao-v2 .meca-v2-stage-detail__summary {
    align-items: flex-start;
    padding: 11px 12px;
  }

  .meca-execucao-v2 .meca-v2-stage-detail__summary > .meca-v2-badge {
    display: none;
  }

  .meca-execucao-v2 .meca-v2-stage-detail__body {
    padding: 13px;
  }

  .meca-execucao-v2 .meca-v2-stage-detail__lead .meca-v2-actions {
    width: 100%;
  }
}

/*
 * Camada SaaS 2026
 * Ajusta densidade, hierarquia e largura sem quebrar o contrato das classes
 * existentes. As classes de workspace abaixo ficam disponíveis para telas que
 * precisem evoluir a navegação sem criar um terceiro sistema visual.
 */
.meca-execucao-v2 {
  --exec-primary: #0b2e6f;
  --exec-primary-hover: #08245a;
  --exec-primary-soft: #eaf0fb;
  --exec-accent: #f59e0b;
  --exec-accent-soft: #fff4d9;
  --exec-surface: #fff;
  --exec-surface-subtle: #f6f8fb;
  --exec-background: #f2f5f8;
  --exec-text: #172033;
  --exec-muted: #536174;
  --exec-border: #d9e0e8;
  --exec-border-strong: #c2ccd8;
  --exec-success: #137a42;
  --exec-success-soft: #e9f7ef;
  --exec-warning: #8a4b00;
  --exec-warning-soft: #fff4df;
  --exec-danger: #b42318;
  --exec-danger-soft: #fff0ee;
  --exec-info: #175cd3;
  --exec-info-soft: #edf4ff;
  --exec-radius: 10px;
  --exec-radius-sm: 7px;
  --exec-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 2px 8px rgba(16, 24, 40, .035);
  --exec-shadow-raised: 0 10px 28px rgba(16, 24, 40, .12);
  font-size: 14px;
  line-height: 1.45;
}

.meca-execucao-v2.meca-container {
  width: 100%;
  max-width: 1480px;
  padding-inline: clamp(12px, 1.6vw, 24px);
}

.meca-execucao-v2 .meca-v2-shell,
.meca-execucao-v2.meca-v2-shell {
  width: min(100%, 1480px);
  max-width: 1480px;
  margin-inline: auto;
  gap: 12px;
}

.meca-execucao-v2 .meca-v2-shell__header {
  position: relative;
  align-items: center;
  gap: 12px 20px;
  padding: 16px 18px;
  overflow: hidden;
  border-color: var(--exec-border);
  background: var(--exec-surface);
  box-shadow: var(--exec-shadow);
}

.meca-execucao-v2 .meca-v2-shell__header::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--exec-primary), #2f64b7);
  content: "";
}

.meca-execucao-v2 .meca-v2-shell__heading {
  flex-basis: 520px;
}

.meca-execucao-v2 .meca-v2-eyebrow {
  margin-bottom: 3px;
  color: #31558c;
  font-size: .67rem;
  letter-spacing: .09em;
}

.meca-execucao-v2 .meca-v2-title,
.meca-execucao-v2 .meca-page-title {
  color: var(--exec-text);
  font-size: clamp(1.28rem, 1.7vw, 1.65rem);
  font-weight: 760;
  letter-spacing: -.022em;
  line-height: 1.18;
}

.meca-execucao-v2 .meca-v2-subtitle,
.meca-execucao-v2 .meca-page-sub,
.meca-execucao-v2 .meca-v2-context {
  margin-top: 4px;
  color: var(--exec-muted);
  font-size: .82rem;
  line-height: 1.42;
}

.meca-execucao-v2 .meca-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  margin: 0;
}

.meca-execucao-v2 .meca-v2-toolbar {
  gap: 8px;
  padding: 9px 11px;
  border-radius: var(--exec-radius);
  box-shadow: none;
}

/* Navegação de workspace: compacta, rolável e com estado ativo inequívoco. */
.meca-execucao-v2 .meca-v2-tabs {
  gap: 2px;
  min-height: 44px;
  padding: 3px;
  border-color: var(--exec-border);
  border-radius: 9px;
  background: #eef2f6;
  box-shadow: none;
  scroll-snap-type: x proximity;
}

.meca-execucao-v2 .meca-v2-tab {
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #47566a;
  font-size: .77rem;
  font-weight: 680;
  scroll-snap-align: start;
}

.meca-execucao-v2 .meca-v2-tab:hover {
  border-color: rgba(194, 204, 216, .8);
  background: rgba(255, 255, 255, .72);
  color: var(--exec-primary);
}

.meca-execucao-v2 .meca-v2-tab.is-active,
.meca-execucao-v2 .meca-v2-tab[aria-current="page"],
.meca-execucao-v2 .meca-v2-tab[aria-selected="true"] {
  border-color: #c9d5e7;
  background: var(--exec-surface);
  color: var(--exec-primary);
  box-shadow: 0 1px 3px rgba(16, 24, 40, .08), inset 0 -2px 0 var(--exec-primary);
}

.meca-execucao-v2 .meca-v2-tab[aria-disabled="true"] {
  border-color: transparent;
  background: transparent;
  color: #7a8798;
  opacity: .7;
}

.meca-execucao-v2 .meca-v2-workspace-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  min-height: 48px;
  padding: 7px 9px;
  border: 1px solid var(--exec-border);
  border-radius: var(--exec-radius);
  background: var(--exec-surface);
}

.meca-execucao-v2 .meca-v2-workspace-options {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}

.meca-execucao-v2 .meca-v2-workspace-switch {
  display: inline-grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: min(100%, 220px);
  min-height: 36px;
  padding: 4px 9px 4px 5px;
  border: 1px solid var(--exec-border);
  border-radius: 7px;
  background: var(--exec-surface);
  color: var(--exec-text);
  flex: 0 1 230px;
  text-align: left;
}

.meca-execucao-v2 .meca-v2-workspace-switch:hover {
  border-color: #aebcd0;
  background: #f8faff;
  text-decoration: none;
}

.meca-execucao-v2 .meca-v2-workspace-switch.is-active {
  border-color: #9db2d3;
  background: var(--exec-primary-soft);
  box-shadow: inset 0 0 0 1px rgba(11, 46, 111, .06);
}

.meca-execucao-v2 .meca-v2-workspace-switch:not(.is-active) .meca-v2-workspace-switch__mark {
  background: #e4eaf2;
  color: #536174;
}

.meca-execucao-v2 .meca-v2-workspace-switch__mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 6px;
  background: var(--exec-primary);
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
}

.meca-execucao-v2 .meca-v2-workspace-switch__text {
  display: grid;
  min-width: 0;
}

.meca-execucao-v2 .meca-v2-workspace-switch__label {
  color: var(--exec-muted);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.meca-execucao-v2 .meca-v2-workspace-switch__value {
  overflow: hidden;
  font-size: .78rem;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* KPIs cabem em uma única faixa em desktop e não dominam a página. */
.meca-execucao-v2 .meca-v2-kpis {
  grid-template-columns: repeat(auto-fit, minmax(172px, 1fr));
  gap: 9px;
}

.meca-execucao-v2 .meca-v2-kpi,
.meca-execucao-v2 .meca-v2-stat {
  min-height: 84px;
  padding: 11px 13px 10px 16px;
  border-radius: 9px;
  box-shadow: none;
}

.meca-execucao-v2 .meca-v2-kpi::before,
.meca-execucao-v2 .meca-v2-stat::before {
  width: 3px;
}

.meca-execucao-v2 .meca-v2-kpi__label,
.meca-execucao-v2 .meca-v2-stat__label {
  color: #5c6879;
  font-size: .68rem;
  font-weight: 720;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.meca-execucao-v2 .meca-v2-kpi__value,
.meca-execucao-v2 .meca-v2-stat__value {
  margin: 4px 0 3px;
  font-size: clamp(1.28rem, 1.8vw, 1.68rem);
  font-weight: 760;
  letter-spacing: -.025em;
  line-height: 1.05;
}

.meca-execucao-v2 .meca-v2-kpi__note,
.meca-execucao-v2 .meca-v2-stat__note {
  font-size: .68rem;
  line-height: 1.3;
}

/* Superfícies e grids de produto: pouco relevo e mais informação por dobra. */
.meca-execucao-v2 .meca-v2-grid {
  gap: 11px;
}

.meca-execucao-v2 .meca-v2-card,
.meca-execucao-v2 .meca-card {
  border-color: var(--exec-border);
  border-radius: var(--exec-radius);
  background: var(--exec-surface);
  box-shadow: var(--exec-shadow);
}

.meca-execucao-v2 .meca-v2-card {
  padding: 14px 15px;
}

.meca-execucao-v2 .meca-card:not(.meca-v2-card) {
  padding: 14px 15px;
}

.meca-execucao-v2 .meca-v2-card--subtle {
  border-color: #e3e8ef;
  background: var(--exec-surface-subtle);
  box-shadow: none;
}

.meca-execucao-v2 .meca-v2-card--selected {
  border-color: #9fb4d6;
  box-shadow: 0 0 0 2px rgba(11, 46, 111, .08);
}

.meca-execucao-v2 .meca-v2-card__head,
.meca-execucao-v2 .meca-v2-section-head,
.meca-execucao-v2 .meca-section__head {
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 10px;
}

.meca-execucao-v2 .meca-v2-card__title,
.meca-execucao-v2 .meca-v2-section-title,
.meca-execucao-v2 .meca-section__head h2 {
  color: var(--exec-text);
  font-size: .91rem;
  font-weight: 740;
  letter-spacing: -.01em;
}

.meca-execucao-v2 .meca-v2-card__subtitle,
.meca-execucao-v2 .meca-v2-section-note,
.meca-execucao-v2 .meca-section__meta {
  font-size: .72rem;
  line-height: 1.38;
}

.meca-execucao-v2 .meca-v2-meta {
  gap: 7px;
}

.meca-execucao-v2 .meca-v2-meta__item {
  padding: 7px 9px;
  border-left-color: #b9c6d7;
  border-radius: 0 5px 5px 0;
}

.meca-execucao-v2 .meca-v2-meta__label { font-size: .65rem; }
.meca-execucao-v2 .meca-v2-meta__value { font-size: .79rem; }

.meca-execucao-v2 .meca-v2-layout {
  display: grid;
  grid-template-columns: minmax(210px, 240px) minmax(0, 1fr);
  gap: 12px;
}

.meca-execucao-v2 .meca-v2-sidebar {
  align-self: start;
  padding: 10px;
  border: 1px solid var(--exec-border);
  border-radius: var(--exec-radius);
  background: var(--exec-surface);
  box-shadow: var(--exec-shadow);
}

.meca-execucao-v2 .meca-v2-main {
  display: grid;
  gap: 12px;
  min-width: 0;
}

/* Botões, badges e controles com altura de aplicação, não de landing page. */
.meca-execucao-v2 .meca-v2-actions,
.meca-execucao-v2 .meca-dashboard-actions,
.meca-execucao-v2 .meca-v2-inline {
  gap: 6px;
}

.meca-execucao-v2 .meca-v2-btn,
.meca-execucao-v2 .meca-btn {
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 7px;
  font-size: .74rem;
  font-weight: 700;
  box-shadow: none;
}

.meca-execucao-v2 .meca-v2-btn:hover,
.meca-execucao-v2 .meca-btn:hover {
  border-color: var(--exec-border-strong);
  box-shadow: 0 1px 3px rgba(16, 24, 40, .08);
  transform: none;
}

.meca-execucao-v2 .meca-v2-btn--primary,
.meca-execucao-v2 .meca-btn--primary {
  border-color: var(--exec-primary);
  background: var(--exec-primary);
  color: #fff;
}

.meca-execucao-v2 .meca-v2-badge,
.meca-execucao-v2 .meca-badge {
  min-height: 21px;
  padding: 3px 7px;
  font-size: .62rem;
  font-weight: 760;
  letter-spacing: .02em;
}

.meca-execucao-v2 .meca-v2-progress {
  height: 6px;
}

/* Tabelas compactas, com cabeçalho estável e leitura por linha. */
.meca-execucao-v2 .meca-v2-table-wrap,
.meca-execucao-v2 .meca-table-wrap {
  border-color: var(--exec-border);
  border-radius: 8px;
  background: var(--exec-surface);
  box-shadow: none;
  scrollbar-color: #b8c2cf transparent;
  scrollbar-width: thin;
}

.meca-execucao-v2 .meca-v2-table,
.meca-execucao-v2 .meca-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--exec-text);
  font-size: .76rem;
}

.meca-execucao-v2 .meca-v2-table th,
.meca-execucao-v2 .meca-v2-table td,
.meca-execucao-v2 .meca-table th,
.meca-execucao-v2 .meca-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #e7ebf0;
  line-height: 1.35;
  text-align: left;
  vertical-align: middle;
}

.meca-execucao-v2 .meca-v2-table th,
.meca-execucao-v2 .meca-table th {
  position: sticky;
  z-index: 1;
  top: 0;
  background: #f4f7fa;
  color: #4b596c;
  font-size: .64rem;
  font-weight: 760;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.meca-execucao-v2 .meca-v2-table tbody tr:nth-child(even) td,
.meca-execucao-v2 .meca-table tbody tr:nth-child(even) td {
  background: #fbfcfd;
}

.meca-execucao-v2 .meca-v2-table tbody tr:hover td,
.meca-execucao-v2 .meca-table tbody tr:hover td {
  background: #f0f5fc;
}

.meca-execucao-v2 .meca-v2-table a,
.meca-execucao-v2 .meca-table a {
  color: var(--exec-primary);
  font-weight: 680;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* Formulários: rótulo, ajuda, erro e controle seguem a mesma malha. */
.meca-execucao-v2 .meca-v2-form-grid {
  gap: 10px 12px;
}

.meca-execucao-v2 .meca-form {
  gap: 10px;
}

.meca-execucao-v2 .meca-form > p,
.meca-execucao-v2 .meca-field,
.meca-execucao-v2 .meca-v2-field {
  display: grid;
  gap: 4px;
  margin: 0;
  color: #344054;
  font-size: .72rem;
  font-weight: 680;
}

.meca-execucao-v2 .meca-form label,
.meca-execucao-v2 .meca-label,
.meca-execucao-v2 .meca-v2-field > label {
  color: #344054;
  font-size: .71rem;
  font-weight: 690;
}

.meca-execucao-v2 .meca-v2-field input,
.meca-execucao-v2 .meca-v2-field select,
.meca-execucao-v2 .meca-v2-field textarea,
.meca-execucao-v2 .meca-v2-control,
.meca-execucao-v2 .meca-input,
.meca-execucao-v2 .meca-select,
.meca-execucao-v2 .meca-textarea,
.meca-execucao-v2 .meca-field > :where(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea),
.meca-execucao-v2 .meca-form p > :where(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea) {
  min-height: 36px;
  border-color: #c7d0dc;
  border-radius: 7px;
  background: #fff;
  color: var(--exec-text);
  font-size: .78rem;
  font-weight: 500;
  padding: 7px 9px;
}

.meca-execucao-v2 .meca-v2-field textarea,
.meca-execucao-v2 textarea.meca-v2-control,
.meca-execucao-v2 .meca-textarea,
.meca-execucao-v2 .meca-field > textarea,
.meca-execucao-v2 .meca-form p > textarea {
  min-height: 78px;
}

.meca-execucao-v2 :where(input, select, textarea)::placeholder {
  color: #7a8798;
  opacity: 1;
}

.meca-execucao-v2 :where(input[type="checkbox"], input[type="radio"]) {
  accent-color: var(--exec-primary);
}

.meca-execucao-v2 .meca-v2-field input:focus,
.meca-execucao-v2 .meca-v2-field select:focus,
.meca-execucao-v2 .meca-v2-field textarea:focus,
.meca-execucao-v2 .meca-v2-control:focus,
.meca-execucao-v2 .meca-input:focus,
.meca-execucao-v2 .meca-select:focus,
.meca-execucao-v2 .meca-textarea:focus,
.meca-execucao-v2 .meca-field > :where(input, select, textarea):focus,
.meca-execucao-v2 .meca-form p > :where(input, select, textarea):focus {
  border-color: #5f82ba;
  box-shadow: 0 0 0 3px rgba(11, 46, 111, .13);
}

.meca-execucao-v2 .helptext,
.meca-execucao-v2 .meca-help {
  color: #667387;
  font-size: .66rem;
  font-weight: 500;
  line-height: 1.35;
}

.meca-execucao-v2 .errorlist {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 6px 8px;
  border-left: 3px solid var(--exec-danger);
  border-radius: 5px;
  background: var(--exec-danger-soft);
  color: #8f1d14;
  font-size: .69rem;
  font-weight: 650;
  list-style: none;
}

/* Fluxos, alertas e timelines perdem altura sem perder estados. */
.meca-execucao-v2 .meca-v2-check,
.meca-execucao-v2 .meca-v2-readiness__row,
.meca-execucao-v2 .meca-v2-evidence,
.meca-execucao-v2 .meca-v2-alert {
  padding-block: 8px;
}

.meca-execucao-v2 .meca-v2-alert {
  gap: 9px;
  padding-inline: 10px;
  border-left-width: 3px;
  border-radius: 7px;
  background: #fbfcfd;
}

.meca-execucao-v2 .meca-v2-alert__title { font-size: .79rem; }
.meca-execucao-v2 .meca-v2-alert__text { font-size: .71rem; line-height: 1.38; }

.meca-execucao-v2 .meca-v2-timeline { gap: 0; }
.meca-execucao-v2 .meca-v2-timeline__item { padding: 0 0 11px 23px; }
.meca-execucao-v2 .meca-v2-timeline__title { font-size: .78rem; }
.meca-execucao-v2 .meca-v2-timeline__meta,
.meca-execucao-v2 .meca-v2-timeline__text { font-size: .69rem; }

.meca-execucao-v2 .meca-v2-flow,
.meca-execucao-v2 .meca-v2-macro-flow,
.meca-execucao-v2 .meca-v2-deadline-flow {
  gap: 7px;
}

.meca-execucao-v2 .meca-v2-flow__step,
.meca-execucao-v2 .meca-v2-macro-flow__step,
.meca-execucao-v2 .meca-v2-flow-step {
  min-height: 68px;
  padding: 9px 10px;
  border-radius: 7px;
}

.meca-execucao-v2 .meca-v2-flow__title { font-size: .73rem; }
.meca-execucao-v2 .meca-v2-flow__note { font-size: .66rem; }

.meca-execucao-v2 .meca-v2-stage-grid { gap: 7px; }
.meca-execucao-v2 .meca-v2-stage { min-height: 78px; padding: 9px; }
.meca-execucao-v2 .meca-v2-stage-detail__summary { min-height: 50px; padding: 9px 11px; }
.meca-execucao-v2 .meca-v2-stage-detail__body { gap: 10px; padding: 12px; }

.meca-execucao-v2 .meca-v2-empty,
.meca-execucao-v2 .meca-v2-message {
  min-height: 0;
  padding: 14px;
  border-radius: 8px;
  font-size: .76rem;
}

.meca-execucao-v2 :where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid rgba(11, 46, 111, .28);
  outline-offset: 2px;
}

@media (max-width: 1100px) {
  .meca-execucao-v2 .meca-v2-layout {
    grid-template-columns: 1fr;
  }

  .meca-execucao-v2 .meca-v2-sidebar {
    display: flex;
    overflow-x: auto;
  }
}

@media (max-width: 780px) {
  .meca-execucao-v2,
  .meca-execucao-v2 .meca-v2-shell,
  .meca-execucao-v2.meca-v2-shell {
    gap: 10px;
  }

  .meca-execucao-v2 .meca-v2-shell__header,
  .meca-execucao-v2 .meca-v2-card,
  .meca-execucao-v2 .meca-card:not(.meca-v2-card) {
    padding: 12px;
  }

  .meca-execucao-v2 .meca-v2-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .meca-execucao-v2 .meca-v2-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .meca-execucao-v2 .meca-v2-table,
  .meca-execucao-v2 .meca-table {
    min-width: 680px;
  }

  .meca-execucao-v2 .meca-v2-tabs {
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 560px) {
  .meca-execucao-v2 .meca-v2-title,
  .meca-execucao-v2 .meca-page-title {
    font-size: 1.2rem;
  }

  .meca-execucao-v2 .meca-v2-tab {
    min-height: 36px;
  }

  .meca-execucao-v2 .meca-v2-actions .meca-v2-btn,
  .meca-execucao-v2 .meca-v2-actions .meca-btn {
    flex: 1 1 auto;
  }

  .meca-execucao-v2 .meca-v2-workspace-switch {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .meca-execucao-v2 .meca-v2-kpis,
  .meca-execucao-v2 .meca-v2-meta {
    grid-template-columns: 1fr;
  }

  .meca-execucao-v2 .meca-v2-kpi,
  .meca-execucao-v2 .meca-v2-stat {
    min-height: 76px;
  }
}

/* O shell operacional usa a largura da aplicação, sem a coluna estreita legada. */
.meca-main .meca-container--operacoes {
  max-width: 1480px;
  padding-inline: clamp(12px, 1.6vw, 24px);
}

.meca-topbar__profile {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: .7rem;
  font-weight: 750;
  letter-spacing: .025em;
  white-space: nowrap;
}

.meca-topbar__profile[data-tone="primary"] {
  border-color: rgba(245, 158, 11, .48);
  background: rgba(245, 158, 11, .14);
  color: #ffe3a6;
}

@media (max-width: 640px) {
  .meca-execucao-v2 .meca-v2-workspace-options,
  .meca-execucao-v2 .meca-v2-workspace-switch {
    width: 100%;
  }

  .meca-topbar__profile > span,
  .meca-topbar__profile > svg {
    display: none;
  }
}

@media (prefers-contrast: more) {
  .meca-execucao-v2 {
    --exec-border: #aeb9c7;
    --exec-muted: #3f4c5f;
  }

  .meca-execucao-v2 .meca-v2-card,
  .meca-execucao-v2 .meca-card,
  .meca-execucao-v2 .meca-v2-kpi,
  .meca-execucao-v2 .meca-v2-stat {
    box-shadow: none;
  }
}

@media print {
  .meca-execucao-v2 .meca-v2-tabs,
  .meca-execucao-v2 .meca-v2-actions,
  .meca-execucao-v2 .meca-dashboard-actions,
  .meca-execucao-v2 .meca-v2-workspace-bar {
    display: none !important;
  }

  .meca-execucao-v2 .meca-v2-shell,
  .meca-execucao-v2.meca-v2-shell {
    max-width: none;
  }

  .meca-execucao-v2 .meca-v2-card,
  .meca-execucao-v2 .meca-card,
  .meca-execucao-v2 .meca-v2-kpi,
  .meca-execucao-v2 .meca-v2-stat {
    break-inside: avoid;
    box-shadow: none;
  }
}

/* Perfil de capacidade diaria */
.meca-capacidade-page {
  --cap-recurring: #e5a900;
  --cap-recurring-ink: #765300;
  --cap-extraordinary: #e85d04;
  --cap-extraordinary-ink: #a43d00;
  --cap-free: #178357;
  --cap-free-ink: #116642;
  --cap-overtime: #d62228;
  --cap-overtime-ink: #a8161b;
  --cap-panel-border: #cbd5e1;
  --cap-divider: #d9e1e9;
}

.meca-capacidade-page > .meca-v2-shell {
  width: min(100%, 1980px);
  max-width: 1980px;
}

.meca-capacidade-page .meca-cap-profile,
.meca-capacidade-page .meca-cap-kpis,
.meca-capacidade-page .meca-cap-panel,
.meca-capacidade-page .meca-cap-rail {
  background: var(--exec-surface);
  border: 1px solid var(--cap-panel-border);
  box-shadow: 0 1px 2px rgb(15 23 42 / 5%), 0 8px 24px rgb(15 23 42 / 4%);
}

.meca-capacidade-page .meca-cap-profile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
  padding: 22px 24px;
  border-radius: 12px;
  border-left: 4px solid var(--exec-primary);
}

.meca-capacidade-page .meca-cap-profile__identity,
.meca-capacidade-page .meca-cap-profile__name-line,
.meca-capacidade-page .meca-cap-profile__actions {
  display: flex;
  align-items: center;
}

.meca-capacidade-page .meca-cap-profile__identity { gap: 16px; min-width: 0; }
.meca-capacidade-page .meca-cap-profile__name-line { flex-wrap: wrap; gap: 10px; }
.meca-capacidade-page .meca-cap-profile__actions { gap: 10px; flex: 0 0 auto; }

.meca-capacidade-page .meca-cap-avatar {
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  place-items: center;
  border: 1px solid #b9c9dd;
  border-radius: 50%;
  background: #e8eef7;
  color: var(--exec-primary);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .04em;
}

.meca-capacidade-page .meca-cap-profile__copy { min-width: 0; }
.meca-capacidade-page .meca-cap-profile__copy h1 { margin: 0; color: var(--exec-heading); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15; }
.meca-capacidade-page .meca-cap-profile__copy p { margin: 5px 0 0; color: var(--exec-muted); font-size: 14px; }
.meca-capacidade-page .meca-cap-profile__copy .meca-cap-profile__context { margin-top: 2px; font-size: 12px; }

.meca-capacidade-page .meca-cap-availability {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef2f6;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.meca-capacidade-page .meca-cap-availability > span { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.meca-capacidade-page .meca-cap-availability.is-available { background: #e5f5ee; color: var(--cap-free-ink); }
.meca-capacidade-page .meca-cap-availability.is-overloaded { background: #fde8e8; color: var(--cap-overtime-ink); }
.meca-capacidade-page .meca-cap-availability.is-full { background: #fff4dc; color: var(--cap-recurring-ink); }

.meca-capacidade-page .meca-cap-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 0;
  overflow: hidden;
  border-radius: 12px;
}

.meca-capacidade-page .meca-cap-kpi {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 86px;
  padding: 15px 18px;
  border-right: 1px solid var(--cap-divider);
  color: var(--exec-primary);
}

.meca-capacidade-page .meca-cap-kpi:last-child { border-right: 0; }
.meca-capacidade-page .meca-cap-kpi strong,
.meca-capacidade-page .meca-cap-kpi span { display: block; }
.meca-capacidade-page .meca-cap-kpi strong { color: var(--exec-heading); font-size: 23px; line-height: 1; }
.meca-capacidade-page .meca-cap-kpi span { margin-top: 6px; color: var(--exec-muted); font-size: 12px; }
.meca-capacidade-page .meca-cap-kpi.is-recurring { color: var(--cap-recurring); }
.meca-capacidade-page .meca-cap-kpi.is-extraordinary { color: var(--cap-extraordinary); }
.meca-capacidade-page .meca-cap-kpi.is-free { color: var(--cap-free); }
.meca-capacidade-page .meca-cap-kpi.is-overtime { color: var(--cap-overtime); }
.meca-capacidade-page .meca-cap-kpi__overtime { display: block; margin-top: 5px; color: var(--cap-overtime-ink); font-size: 10px; font-weight: 800; }

.meca-capacidade-page .meca-cap-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 520px);
  align-items: start;
  gap: 18px;
}

.meca-capacidade-page .meca-cap-main { display: grid; min-width: 0; gap: 18px; }
.meca-capacidade-page .meca-cap-panel { overflow: hidden; border-radius: 12px; }

.meca-capacidade-page .meca-cap-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--cap-divider);
}

.meca-capacidade-page .meca-cap-panel__head h2,
.meca-capacidade-page .meca-cap-panel__head h3,
.meca-capacidade-page .meca-cap-rail h2 { margin: 0; color: var(--exec-heading); font-size: 16px; }
.meca-capacidade-page .meca-cap-panel__head p { margin: 5px 0 0; color: var(--exec-muted); font-size: 12px; }
.meca-capacidade-page .meca-cap-panel__head > a,
.meca-capacidade-page .meca-cap-text-link { color: var(--exec-primary); font-size: 12px; font-weight: 800; text-decoration: none; }
.meca-capacidade-page .meca-cap-panel__head > a:hover,
.meca-capacidade-page .meca-cap-text-link:hover { text-decoration: underline; }

.meca-capacidade-page .meca-cap-load__head { align-items: center; }
.meca-capacidade-page .meca-cap-date-nav { display: flex; align-items: center; gap: 6px; }
.meca-capacidade-page .meca-cap-filter,
.meca-capacidade-page .meca-cap-date-current,
.meca-capacidade-page .meca-cap-window {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border: 1px solid var(--cap-panel-border);
  border-radius: 7px;
  background: #fff;
  color: #334155;
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.meca-capacidade-page .meca-cap-filter:hover,
.meca-capacidade-page .meca-cap-window:hover { border-color: #91a5bd; background: #f8fafc; }
.meca-capacidade-page .meca-cap-filter--icon { width: 34px; padding: 7px; }
.meca-capacidade-page .meca-cap-date-current { gap: 7px; background: #f8fafc; }
.meca-capacidade-page .meca-cap-window-tabs { display: inline-flex; margin-left: 4px; padding: 3px; border-radius: 8px; background: #edf1f5; }
.meca-capacidade-page .meca-cap-window { min-height: 28px; border: 0; background: transparent; }
.meca-capacidade-page .meca-cap-window.is-active { background: var(--exec-primary); color: #fff; box-shadow: 0 1px 3px rgb(15 23 42 / 18%); }

.meca-capacidade-page .meca-cap-load__body { display: grid; grid-template-columns: minmax(300px, .9fr) minmax(360px, 1.1fr); min-height: 306px; }
.meca-capacidade-page .meca-cap-chart-block { display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: center; gap: 12px; padding: 22px 20px; border-right: 1px solid var(--cap-divider); }
.meca-capacidade-page .meca-cap-donut-wrap { position: relative; width: 180px; max-width: 100%; margin-inline: auto; }
.meca-capacidade-page .meca-cap-donut { display: block; width: 100%; height: auto; overflow: visible; }
.meca-capacidade-page .meca-cap-donut__track { fill: none; stroke: #e7ebf0; stroke-width: 17; }
.meca-capacidade-page .meca-cap-donut__segment {
  fill: none;
  stroke-width: 17;
  stroke-dasharray: var(--cap-pct) 100;
  stroke-dashoffset: calc(var(--cap-offset) * -1);
  transform: rotate(-90deg);
  transform-origin: 60px 60px;
  transition: opacity .18s ease;
}
.meca-capacidade-page .meca-cap-donut__segment.is-recorrente { stroke: var(--cap-recurring); }
.meca-capacidade-page .meca-cap-donut__segment.is-extraordinaria { stroke: var(--cap-extraordinary); }
.meca-capacidade-page .meca-cap-donut__segment.is-livre { stroke: var(--cap-free); }
.meca-capacidade-page .meca-cap-donut__segment.is-extra-jornada { stroke: var(--cap-overtime); stroke-linecap: round; stroke-width: 5; }
.meca-capacidade-page .meca-cap-donut__center { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; pointer-events: none; }
.meca-capacidade-page .meca-cap-donut__center strong { color: var(--exec-heading); font-size: 27px; line-height: 1; }
.meca-capacidade-page .meca-cap-donut__center small { margin-top: 6px; color: var(--exec-muted); font-size: 11px; }

.meca-capacidade-page .meca-cap-legend { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.meca-capacidade-page .meca-cap-legend li { display: grid; grid-template-columns: 9px minmax(0,1fr) auto; align-items: center; gap: 8px; color: #334155; }
.meca-capacidade-page .meca-cap-legend li > span { width: 9px; height: 9px; border-radius: 50%; background: #94a3b8; }
.meca-capacidade-page .meca-cap-legend li > b { color: var(--exec-heading); font-size: 13px; }
.meca-capacidade-page .meca-cap-legend li > small { grid-column: 2 / -1; margin-top: -7px; color: var(--exec-muted); font-size: 10px; }
.meca-capacidade-page .meca-cap-legend li > strong { font-size: 11px; }
.meca-capacidade-page .meca-cap-legend li.is-recorrente > span { background: var(--cap-recurring); }
.meca-capacidade-page .meca-cap-legend li.is-extraordinaria > span { background: var(--cap-extraordinary); }
.meca-capacidade-page .meca-cap-legend li.is-livre > span { background: var(--cap-free); }
.meca-capacidade-page .meca-cap-legend li.is-extra-jornada > span { background: var(--cap-overtime); }

.meca-capacidade-page .meca-cap-next { min-width: 0; padding: 22px 20px; }
.meca-capacidade-page .meca-cap-next h3 { margin: 0 0 18px; color: var(--exec-heading); font-size: 14px; }
.meca-capacidade-page .meca-cap-next__list { display: grid; gap: 14px; }
.meca-capacidade-page .meca-cap-next__row { display: grid; grid-template-columns: 72px minmax(160px, 1fr) 105px; align-items: center; gap: 10px; }
.meca-capacidade-page .meca-cap-next__row > strong { color: #334155; font-size: 11px; }
.meca-capacidade-page .meca-cap-next__meter { min-width: 0; padding-right: 30%; }
.meca-capacidade-page .meca-cap-next__base { position: relative; display: flex; width: 100%; height: 13px; overflow: visible; border-radius: 999px; background: #edf1f5; }
.meca-capacidade-page .meca-cap-next__base > span { display: block; width: var(--cap-width); height: 100%; }
.meca-capacidade-page .meca-cap-next__base > span:first-child { border-radius: 999px 0 0 999px; }
.meca-capacidade-page .meca-cap-next__base .is-recurring { background: var(--cap-recurring); }
.meca-capacidade-page .meca-cap-next__base .is-extraordinary { background: var(--cap-extraordinary); }
.meca-capacidade-page .meca-cap-next__base .is-free { background: var(--cap-free); }
.meca-capacidade-page .meca-cap-next__base > i { position: absolute; top: -5px; right: 0; height: 23px; border-right: 1px dashed #64748b; }
.meca-capacidade-page .meca-cap-next__base .is-overtime { position: absolute; left: 100%; border-radius: 0 999px 999px 0; background: var(--cap-overtime); }
.meca-capacidade-page .meca-cap-next__result { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; text-align: right; font-size: 10px; font-weight: 800; white-space: nowrap; }
.meca-capacidade-page .meca-cap-next__result.is-free { color: var(--cap-free-ink); }
.meca-capacidade-page .meca-cap-next__result.is-overtime { color: var(--cap-overtime-ink); }
.meca-capacidade-page .meca-cap-next__overtime { display: inline-flex; align-items: center; gap: 2px; margin-left: 5px; color: var(--cap-overtime-ink); font-size: 10px; }

.meca-capacidade-page .meca-cap-task-list { padding: 6px 0; }
.meca-capacidade-page .meca-cap-list-more {
  display: block;
  padding: 11px 14px;
  border-top: 1px solid var(--cap-divider);
  color: var(--exec-blue);
  font-size: 11px;
  font-weight: 800;
  text-align: right;
}
.meca-capacidade-page .meca-cap-task {
  display: grid;
  grid-template-columns: 22px minmax(160px, 1fr) 125px 54px 90px;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 9px 20px;
  border-bottom: 1px solid #e7ebf0;
  color: #334155;
  text-decoration: none;
}
.meca-capacidade-page .meca-cap-task:last-child { border-bottom: 0; }
.meca-capacidade-page .meca-cap-task:hover { background: #f8fafc; }
.meca-capacidade-page .meca-cap-task > strong { overflow: hidden; color: var(--exec-heading); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.meca-capacidade-page .meca-cap-task > span { color: var(--exec-muted); font-size: 11px; }
.meca-capacidade-page .meca-cap-task > b { color: var(--exec-heading); font-size: 12px; text-align: right; }
.meca-capacidade-page .meca-cap-task > small { justify-self: end; padding: 4px 7px; border-radius: 999px; background: #eef2f6; color: #475569; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.meca-capacidade-page .meca-cap-task.is-recurring > svg { color: var(--cap-recurring); }
.meca-capacidade-page .meca-cap-task__marker { width: 9px; height: 9px; border-radius: 3px; background: var(--cap-extraordinary); }
.meca-capacidade-page .meca-cap-task.is-unscheduled { background: #fff9f0; }
.meca-capacidade-page .meca-cap-task.is-unscheduled > svg,
.meca-capacidade-page .meca-cap-task.is-unscheduled > small { color: var(--cap-overtime-ink); }
.meca-capacidade-page .meca-cap-empty { margin: 0; padding: 18px 20px; color: var(--exec-muted); font-size: 12px; }

.meca-capacidade-page .meca-cap-rail { position: sticky; top: 84px; overflow: hidden; border-radius: 12px; }
.meca-capacidade-page .meca-cap-rail__section { padding: 19px; border-bottom: 1px solid var(--cap-divider); }
.meca-capacidade-page .meca-cap-rail__section:last-child { border-bottom: 0; }
.meca-capacidade-page .meca-cap-rail__total { display: flex; align-items: baseline; gap: 7px; margin: 13px 0; }
.meca-capacidade-page .meca-cap-rail__total strong { font-size: 30px; line-height: 1; }
.meca-capacidade-page .meca-cap-rail__total span { font-size: 12px; font-weight: 700; }
.meca-capacidade-page .meca-cap-rail__total.is-free { color: var(--cap-free-ink); }
.meca-capacidade-page .meca-cap-rail__total.is-overtime { color: var(--cap-overtime-ink); }
.meca-capacidade-page .meca-cap-rail__total.is-secondary { margin-top: -7px; }
.meca-capacidade-page .meca-cap-rail__total.is-secondary strong { font-size: 17px; }
.meca-capacidade-page .meca-cap-availability-list { display: grid; gap: 2px; margin: 0 0 14px; padding: 0; list-style: none; }
.meca-capacidade-page .meca-cap-availability-list li { display: grid; grid-template-columns: 20px minmax(0,1fr) auto; align-items: center; gap: 7px; padding: 8px 0; border-bottom: 1px solid #edf1f5; color: #475569; font-size: 11px; }
.meca-capacidade-page .meca-cap-availability-list li svg { color: var(--cap-free); }
.meca-capacidade-page .meca-cap-availability-list li strong { color: var(--exec-heading); }
.meca-capacidade-page .meca-cap-availability-list li.is-muted { display: block; color: var(--exec-muted); }
.meca-capacidade-page .meca-cap-rail__action { width: 100%; justify-content: center; }
.meca-capacidade-page .meca-cap-rule { display: flex; align-items: flex-start; gap: 7px; margin: 12px 0 0; color: var(--cap-extraordinary-ink); font-size: 10px; line-height: 1.4; }
.meca-capacidade-page .meca-cap-rule svg { flex: 0 0 auto; }
.meca-capacidade-page .meca-cap-attention { display: grid; gap: 8px; margin-top: 13px; }
.meca-capacidade-page .meca-cap-attention > form { margin: 0; }
.meca-capacidade-page .meca-cap-attention > a,
.meca-capacidade-page .meca-cap-attention > form > button { display: grid; width: 100%; grid-template-columns: 22px minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 10px; border: 1px solid #ead9bd; border-radius: 8px; background: #fff9ee; color: #6b4c16; font: inherit; font-size: 10px; text-align: left; text-decoration: none; cursor: pointer; }
.meca-capacidade-page .meca-cap-attention > a strong { color: inherit; }
.meca-capacidade-page .meca-cap-attention > a.is-danger { border-color: #efc3c5; background: #fff1f1; color: var(--cap-overtime-ink); }
.meca-capacidade-page .meca-cap-attention > a.is-message,
.meca-capacidade-page .meca-cap-attention > form.is-message > button { border-color: #bfd2f2; background: #f1f6ff; color: #174c96; }
.meca-capacidade-page .meca-cap-rail__note { margin: 11px 0 8px; color: var(--exec-muted); font-size: 11px; line-height: 1.5; }
.meca-capacidade-page .meca-cap-source { display: grid; gap: 0; margin: 11px 0 14px; }
.meca-capacidade-page .meca-cap-source div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid #edf1f5; }
.meca-capacidade-page .meca-cap-source dt { color: var(--exec-muted); font-size: 10px; }
.meca-capacidade-page .meca-cap-source dd { margin: 0; color: var(--exec-heading); font-size: 10px; font-weight: 800; text-align: right; }

.meca-execucao-v2 .meca-cap-professional-link { display: inline-flex; align-items: center; gap: 6px; color: var(--exec-primary); font-weight: 800; text-decoration: none; }
.meca-execucao-v2 .meca-cap-professional-link::after { content: '\2192'; opacity: .55; transition: transform .15s ease, opacity .15s ease; }
.meca-execucao-v2 .meca-cap-professional-link:hover::after { opacity: 1; transform: translateX(2px); }

.meca-capacidade-page a:focus-visible,
.meca-capacidade-page button:focus-visible { outline: 3px solid rgb(36 99 168 / 32%); outline-offset: 2px; }

@media (max-width: 1180px) {
  .meca-capacidade-page .meca-cap-load__body { grid-template-columns: 1fr; }
  .meca-capacidade-page .meca-cap-chart-block { border-right: 0; border-bottom: 1px solid var(--cap-divider); }
}

@media (max-width: 980px) {
  .meca-capacidade-page .meca-cap-layout { grid-template-columns: 1fr; }
  .meca-capacidade-page .meca-cap-rail { position: static; }
}

@media (max-width: 780px) {
  .meca-capacidade-page .meca-cap-kpis { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .meca-capacidade-page .meca-cap-kpi:nth-child(2) { border-right: 0; }
  .meca-capacidade-page .meca-cap-kpi:nth-child(-n+2) { border-bottom: 1px solid var(--cap-divider); }
  .meca-capacidade-page .meca-cap-load__head { display: block; }
  .meca-capacidade-page .meca-cap-date-nav { margin-top: 13px; overflow-x: auto; padding-bottom: 4px; }
  .meca-capacidade-page .meca-cap-task { grid-template-columns: 22px minmax(0,1fr) auto; }
  .meca-capacidade-page .meca-cap-task > span { grid-column: 2; }
  .meca-capacidade-page .meca-cap-task > b { grid-column: 3; grid-row: 1; }
  .meca-capacidade-page .meca-cap-task > small { grid-column: 3; grid-row: 2; }
}

@media (max-width: 620px) {
  .meca-capacidade-page .meca-cap-profile { align-items: stretch; flex-direction: column; padding: 18px; }
  .meca-capacidade-page .meca-cap-profile__actions .meca-v2-btn { flex: 1; justify-content: center; }
  .meca-capacidade-page .meca-cap-chart-block { grid-template-columns: 1fr; }
  .meca-capacidade-page .meca-cap-legend { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .meca-capacidade-page .meca-cap-next__row { grid-template-columns: 58px minmax(130px,1fr); }
  .meca-capacidade-page .meca-cap-next__result { grid-column: 2; justify-content: flex-start; }
}

@media (max-width: 440px) {
  .meca-capacidade-page .meca-cap-kpis { grid-template-columns: 1fr; }
  .meca-capacidade-page .meca-cap-kpi { border-right: 0; border-bottom: 1px solid var(--cap-divider); }
  .meca-capacidade-page .meca-cap-kpi:last-child { border-bottom: 0; }
  .meca-capacidade-page .meca-cap-profile__actions { align-items: stretch; flex-direction: column; }
  .meca-capacidade-page .meca-cap-legend { grid-template-columns: 1fr; }
  .meca-capacidade-page .meca-cap-next,
  .meca-capacidade-page .meca-cap-panel__head,
  .meca-capacidade-page .meca-cap-task { padding-inline: 14px; }
}

@media (prefers-contrast: more) {
  .meca-capacidade-page { --cap-panel-border: #8796a8; --cap-divider: #a8b5c4; }
  .meca-capacidade-page .meca-cap-profile,
  .meca-capacidade-page .meca-cap-kpis,
  .meca-capacidade-page .meca-cap-panel,
  .meca-capacidade-page .meca-cap-rail { box-shadow: none; }
}

@media print {
  .meca-capacidade-page .meca-cap-profile__actions,
  .meca-capacidade-page .meca-cap-date-nav,
  .meca-capacidade-page .meca-cap-rail__action { display: none; }
  .meca-capacidade-page .meca-cap-layout { grid-template-columns: 1fr; }
  .meca-capacidade-page .meca-cap-rail { position: static; margin-top: 18px; }
}

/* Componentes compactos usados pelas telas editoriais e formulários v2. */
.meca-execucao-v2 .meca-v2-shell__header--compact {
  min-height: 0;
  padding: 12px 16px;
}

.meca-execucao-v2 .meca-v2-shell__header--compact .meca-v2-title {
  font-size: clamp(1.12rem, 1.45vw, 1.4rem);
}

.meca-execucao-v2 .meca-v2-shell__header--compact .meca-v2-subtitle {
  max-width: 90ch;
  margin-top: 2px;
}

.meca-execucao-v2 .meca-v2-toolbar--compact {
  min-height: 42px;
  gap: 6px 10px;
  padding: 6px 8px;
}

.meca-execucao-v2 .meca-v2-toolbar--compact .meca-v2-btn,
.meca-execucao-v2 .meca-v2-toolbar--compact .meca-btn {
  min-height: 32px;
  padding-block: 5px;
}

.meca-execucao-v2 .meca-v2-toolbar--compact :where(input, select) {
  min-height: 32px;
  padding-block: 5px;
}

.meca-execucao-v2 .meca-v2-summary-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  overflow: hidden;
  border: 1px solid var(--exec-border);
  border-radius: 9px;
  background: var(--exec-surface);
  box-shadow: var(--exec-shadow);
}

.meca-execucao-v2 .meca-v2-summary-item {
  position: relative;
  display: grid;
  align-content: center;
  gap: 2px;
  min-width: 0;
  min-height: 58px;
  padding: 8px 12px;
}

.meca-execucao-v2 .meca-v2-summary-item + .meca-v2-summary-item {
  border-left: 1px solid var(--exec-border);
}

.meca-execucao-v2 .meca-v2-summary-item::after {
  position: absolute;
  inset: auto 12px 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: transparent;
  content: "";
}

.meca-execucao-v2 .meca-v2-summary-item[data-tone="primary"]::after { background: var(--exec-primary); }
.meca-execucao-v2 .meca-v2-summary-item[data-tone="success"]::after { background: var(--exec-success); }
.meca-execucao-v2 .meca-v2-summary-item[data-tone="warning"]::after { background: var(--exec-accent); }
.meca-execucao-v2 .meca-v2-summary-item[data-tone="danger"]::after { background: var(--exec-danger); }

.meca-execucao-v2 .meca-v2-summary-item > :where(span, small):first-child,
.meca-execucao-v2 .meca-v2-summary-item__label {
  overflow: hidden;
  color: var(--exec-muted);
  font-size: .64rem;
  font-weight: 720;
  letter-spacing: .035em;
  line-height: 1.25;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.meca-execucao-v2 .meca-v2-summary-item > :where(strong, b),
.meca-execucao-v2 .meca-v2-summary-item__value {
  overflow: hidden;
  color: var(--exec-text);
  font-size: .94rem;
  font-weight: 750;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meca-execucao-v2 .meca-v2-empty--compact {
  display: block;
  min-height: 0;
  padding: 9px 11px;
  border-style: dashed;
  border-radius: 7px;
  font-size: .72rem;
  line-height: 1.4;
  text-align: left;
}

.meca-execucao-v2 .meca-v2-empty--compact > :where(strong, b) {
  color: var(--exec-text);
  font-size: .75rem;
}

.meca-execucao-v2 .meca-v2-form-layout {
  display: grid;
  grid-template-columns: minmax(250px, 4fr) minmax(0, 8fr);
  align-items: start;
  gap: 12px;
  min-width: 0;
}

.meca-execucao-v2 .meca-v2-form-card,
.meca-execucao-v2 .meca-v2-form-guide {
  min-width: 0;
  padding: 14px 15px;
  border: 1px solid var(--exec-border);
  border-radius: var(--exec-radius);
  background: var(--exec-surface);
  box-shadow: var(--exec-shadow);
}

.meca-execucao-v2 .meca-v2-form-card {
  display: grid;
  gap: 12px;
}

.meca-execucao-v2 .meca-v2-form-card > :where(h2, h3),
.meca-execucao-v2 .meca-v2-form-guide > :where(h2, h3) {
  margin: 0;
  color: var(--exec-text);
  font-size: .88rem;
  font-weight: 740;
  letter-spacing: -.01em;
}

.meca-execucao-v2 .meca-v2-form-guide {
  position: sticky;
  top: 12px;
  display: grid;
  gap: 10px;
  border-color: #cfdae8;
  background: linear-gradient(180deg, #fbfcff 0%, #f5f8fc 100%);
  box-shadow: none;
}

.meca-execucao-v2 .meca-v2-form-guide > p {
  margin: 0;
  color: var(--exec-muted);
  font-size: .72rem;
  line-height: 1.45;
}

.meca-execucao-v2 .meca-v2-brief-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  color: #3f4d60;
  font-size: .71rem;
  line-height: 1.4;
  list-style: none;
}

.meca-execucao-v2 .meca-v2-brief-list > li {
  position: relative;
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 0 0 7px 16px;
  border-bottom: 1px solid #e3e8ef;
}

.meca-execucao-v2 .meca-v2-brief-list > li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.meca-execucao-v2 .meca-v2-brief-list > li::before {
  position: absolute;
  top: .42em;
  left: 1px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--exec-primary);
  box-shadow: 0 0 0 3px var(--exec-primary-soft);
  content: "";
}

.meca-execucao-v2 .meca-v2-brief-list strong {
  color: var(--exec-text);
  font-weight: 720;
}

.meca-execucao-v2 .meca-v2-callout {
  display: grid;
  gap: 3px;
  padding: 9px 11px;
  border: 1px solid #cbd8ea;
  border-left: 3px solid var(--exec-primary);
  border-radius: 7px;
  background: var(--exec-info-soft);
  color: #263750;
  font-size: .71rem;
  line-height: 1.42;
}

.meca-execucao-v2 .meca-v2-callout > :where(strong, b, h3) {
  margin: 0;
  color: var(--exec-primary);
  font-size: .74rem;
  font-weight: 740;
}

.meca-execucao-v2 .meca-v2-callout > p {
  margin: 0;
}

.meca-execucao-v2 .meca-v2-callout[data-tone="success"] {
  border-color: #b9dfc8;
  border-left-color: var(--exec-success);
  background: var(--exec-success-soft);
  color: #225b39;
}

.meca-execucao-v2 .meca-v2-callout[data-tone="warning"] {
  border-color: #ead2a9;
  border-left-color: var(--exec-accent);
  background: var(--exec-warning-soft);
  color: #6f430c;
}

.meca-execucao-v2 .meca-v2-callout[data-tone="danger"] {
  border-color: #e8bcb7;
  border-left-color: var(--exec-danger);
  background: var(--exec-danger-soft);
  color: #852019;
}

@media (max-width: 980px) {
  .meca-execucao-v2 .meca-v2-form-layout {
    grid-template-columns: 1fr;
  }

  .meca-execucao-v2 .meca-v2-form-guide {
    position: static;
  }
}

@media (max-width: 640px) {
  .meca-execucao-v2 .meca-v2-summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .meca-execucao-v2 .meca-v2-summary-item + .meca-v2-summary-item {
    border-left: 0;
  }

  .meca-execucao-v2 .meca-v2-summary-item:nth-child(even) {
    border-left: 1px solid var(--exec-border);
  }

  .meca-execucao-v2 .meca-v2-summary-item:nth-child(n + 3) {
    border-top: 1px solid var(--exec-border);
  }

  .meca-execucao-v2 .meca-v2-shell__header--compact,
  .meca-execucao-v2 .meca-v2-form-card,
  .meca-execucao-v2 .meca-v2-form-guide {
    padding: 11px 12px;
  }
}

@media (max-width: 420px) {
  .meca-execucao-v2 .meca-v2-summary-strip {
    grid-template-columns: 1fr;
  }

  .meca-execucao-v2 .meca-v2-summary-item:nth-child(even) {
    border-left: 0;
  }

  .meca-execucao-v2 .meca-v2-summary-item + .meca-v2-summary-item {
    border-top: 1px solid var(--exec-border);
  }
}

/*
 * Camadas nitidas
 * Cria tres planos visuais consistentes nas telas operacionais:
 * canvas da pagina, modulos principais e conteudo interno.
 */
.meca-body--operacoes {
  --meca-bg: #edf1f5;
}

.meca-body--operacoes .meca-main {
  background: var(--meca-bg);
}

.meca-execucao-v2 {
  --exec-surface-subtle: #f5f7fa;
  --exec-inner-surface: #eef2f6;
  --exec-border: #c9d3df;
  --exec-border-strong: #aebdcd;
  --exec-shadow: 0 1px 2px rgba(16, 24, 40, .07), 0 4px 12px rgba(16, 24, 40, .08);
  --exec-shadow-soft: 0 1px 3px rgba(16, 24, 40, .08), 0 2px 7px rgba(16, 24, 40, .055);
}

.meca-execucao-v2 .meca-v2-shell,
.meca-execucao-v2.meca-v2-shell {
  gap: 14px;
}

.meca-execucao-v2 .meca-v2-shell__header,
.meca-execucao-v2 .meca-v2-workspace-bar,
.meca-execucao-v2 .meca-v2-toolbar,
.meca-execucao-v2 .meca-v2-card,
.meca-execucao-v2 .meca-card,
.meca-execucao-v2 .meca-v2-sidebar,
.meca-execucao-v2 .meca-v2-summary-strip,
.meca-execucao-v2 .meca-v2-form-card,
.meca-execucao-v2 .meca-v2-form-guide {
  border-color: var(--exec-border);
  background: var(--exec-surface);
  box-shadow: var(--exec-shadow);
}

.meca-execucao-v2 .meca-v2-kpi,
.meca-execucao-v2 .meca-v2-stat {
  border-color: var(--exec-border);
  background: var(--exec-surface);
  box-shadow: var(--exec-shadow-soft);
}

.meca-execucao-v2 .meca-v2-card--selected {
  border-color: #93abd0;
  box-shadow: 0 0 0 2px rgba(11, 46, 111, .08), var(--exec-shadow);
}

.meca-execucao-v2 .meca-v2-card--subtle,
.meca-execucao-v2 .meca-v2-card > .meca-v2-toolbar,
.meca-execucao-v2 .meca-card > .meca-v2-toolbar,
.meca-execucao-v2 .meca-v2-form-guide {
  border-color: var(--exec-border);
  background: var(--exec-inner-surface);
  box-shadow: none;
}

.meca-execucao-v2 .meca-v2-tabs {
  border-color: var(--exec-border);
  background: #e8edf3;
}

.meca-execucao-v2 .meca-v2-table-wrap,
.meca-execucao-v2 .meca-table-wrap {
  border-color: var(--exec-border-strong);
  background: var(--exec-inner-surface);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55);
}

.meca-execucao-v2 .meca-v2-table th,
.meca-execucao-v2 .meca-table th {
  background: var(--exec-inner-surface);
}

.meca-execucao-v2 .meca-v2-table tbody td,
.meca-execucao-v2 .meca-table tbody td {
  background: var(--exec-surface);
}

.meca-execucao-v2 .meca-v2-table tbody tr:nth-child(even) td,
.meca-execucao-v2 .meca-table tbody tr:nth-child(even) td {
  background: var(--exec-surface-subtle);
}

.meca-execucao-v2 .meca-v2-empty,
.meca-execucao-v2 .meca-v2-message:not([data-tone]),
.meca-execucao-v2 .meca-v2-meta__item {
  border-color: var(--exec-border);
  background: var(--exec-inner-surface);
}

.meca-execucao-v2 .meca-v2-empty--compact {
  display: grid;
  gap: 2px;
}

.meca-execucao-v2 .meca-v2-summary-item + .meca-v2-summary-item {
  border-color: var(--exec-border);
}

.meca-execucao-v2 .meca-v2-agenda__event {
  background: var(--exec-surface);
}

@media (prefers-contrast: more) {
  .meca-execucao-v2 {
    --exec-border: #a8b5c4;
    --exec-border-strong: #7f90a3;
  }

  .meca-execucao-v2 .meca-v2-shell__header,
  .meca-execucao-v2 .meca-v2-workspace-bar,
  .meca-execucao-v2 .meca-v2-toolbar,
  .meca-execucao-v2 .meca-v2-card,
  .meca-execucao-v2 .meca-card,
  .meca-execucao-v2 .meca-v2-kpi,
  .meca-execucao-v2 .meca-v2-stat,
  .meca-execucao-v2 .meca-v2-summary-strip {
    box-shadow: none;
  }
}

@media print {
  .meca-body--operacoes,
  .meca-body--operacoes .meca-main {
    background: #fff;
  }

  .meca-execucao-v2 .meca-v2-shell__header,
  .meca-execucao-v2 .meca-v2-workspace-bar,
  .meca-execucao-v2 .meca-v2-toolbar,
  .meca-execucao-v2 .meca-v2-card,
  .meca-execucao-v2 .meca-card,
  .meca-execucao-v2 .meca-v2-kpi,
  .meca-execucao-v2 .meca-v2-stat,
  .meca-execucao-v2 .meca-v2-summary-strip {
    box-shadow: none;
  }
}

/* Barra horizontal exclusiva do modulo Operacoes */
.meca-body--operacoes .meca-side,
.meca-body--operacoes .meca-scrim,
.meca-body--operacoes .meca-nav-toggle {
  display: none !important;
}

.meca-body--operacoes .meca-main,
html.meca-side-open .meca-body--operacoes .meca-main {
  width: 100%;
  margin-left: 0;
}

.meca-body--operacoes .meca-topbar {
  min-height: 64px;
  height: 64px;
  gap: 18px;
  padding: 0 clamp(16px, 2.4vw, 38px);
  box-shadow: 0 2px 12px rgb(5 22 58 / 18%);
}

.meca-body--operacoes .meca-topbar__inner {
  min-width: 0;
  height: 100%;
  gap: 18px;
}

.meca-body--operacoes .meca-ops-topbar__brand {
  display: inline-flex;
  height: 100%;
  flex: 0 0 auto;
  align-items: center;
  padding-right: 18px;
  border-right: 1px solid rgb(255 255 255 / 18%);
}

.meca-body--operacoes .meca-ops-topbar__brand img {
  display: block;
  width: 94px;
  height: auto;
}

.meca-body--operacoes .meca-ops-topbar__module {
  display: inline-flex;
  min-height: 38px;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 7px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.meca-body--operacoes .meca-ops-topbar__module:hover,
.meca-body--operacoes .meca-ops-topbar__module:focus-visible {
  background: rgb(255 255 255 / 9%);
}

.meca-body--operacoes .meca-ops-topbar__nav {
  display: flex;
  min-width: 0;
  height: 100%;
  flex: 1 1 auto;
  align-items: stretch;
  gap: 2px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.meca-body--operacoes .meca-ops-topbar__nav::-webkit-scrollbar { display: none; }

.meca-body--operacoes .meca-ops-topbar__nav a {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  padding: 0 10px;
  color: rgb(255 255 255 / 74%);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: color .16s ease, background-color .16s ease;
}

.meca-body--operacoes .meca-ops-topbar__nav a::after {
  position: absolute;
  right: 10px;
  bottom: 0;
  left: 10px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: transparent;
  content: "";
}

.meca-body--operacoes .meca-ops-topbar__nav a:hover,
.meca-body--operacoes .meca-ops-topbar__nav a:focus-visible,
.meca-body--operacoes .meca-ops-topbar__nav a.is-active {
  background: rgb(255 255 255 / 6%);
  color: #fff;
}

.meca-body--operacoes .meca-ops-topbar__nav a.is-active::after { background: var(--meca-accent, #f5a000); }

.meca-body--operacoes .meca-topbar__actions {
  min-width: 0;
  gap: 8px;
}

.meca-body--operacoes .meca-ops-topbar__search {
  display: flex;
  width: clamp(180px, 17vw, 270px);
  height: 36px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 8px;
  background: rgb(255 255 255 / 8%);
  color: rgb(255 255 255 / 72%);
  transition: border-color .16s ease, background-color .16s ease;
}

.meca-body--operacoes .meca-ops-topbar__search:focus-within {
  border-color: rgb(255 255 255 / 48%);
  background: rgb(255 255 255 / 13%);
}

.meca-body--operacoes .meca-ops-topbar__search svg { flex: 0 0 auto; }
.meca-body--operacoes .meca-ops-topbar__search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 11px;
}
.meca-body--operacoes .meca-ops-topbar__search input::placeholder { color: rgb(255 255 255 / 55%); }

@media (max-width: 1220px) {
  .meca-body--operacoes .meca-topbar { gap: 10px; padding-inline: 18px; }
  .meca-body--operacoes .meca-topbar__inner { gap: 10px; }
  .meca-body--operacoes .meca-ops-topbar__brand { padding-right: 12px; }
  .meca-body--operacoes .meca-ops-topbar__nav a { padding-inline: 8px; }
  .meca-body--operacoes .meca-ops-topbar__search { width: 190px; }
}

@media (max-width: 980px) {
  .meca-body--operacoes .meca-ops-topbar__search { display: none; }
  .meca-body--operacoes .meca-ops-topbar__brand img { width: 82px; }
  .meca-body--operacoes .meca-ops-topbar__module { padding-inline: 8px; }
}

@media (max-width: 720px) {
  .meca-body--operacoes .meca-topbar { height: 58px; min-height: 58px; padding-inline: 10px; }
  .meca-body--operacoes .meca-topbar__inner { gap: 6px; }
  .meca-body--operacoes .meca-ops-topbar__brand { padding-right: 8px; }
  .meca-body--operacoes .meca-ops-topbar__brand img { width: 70px; }
  .meca-body--operacoes .meca-ops-topbar__module span,
  .meca-body--operacoes .meca-ops-topbar__module svg:last-child,
  .meca-body--operacoes .meca-topbar__profile > span,
  .meca-body--operacoes .meca-topbar__profile > svg { display: none; }
  .meca-body--operacoes .meca-ops-topbar__module { width: 34px; min-height: 34px; justify-content: center; padding: 6px; }
  .meca-body--operacoes .meca-ops-topbar__nav a { padding-inline: 7px; font-size: 11px; }
  .meca-body--operacoes .meca-topbar__actions { flex: 0 0 auto; }
}

/* Recorrencias operacionais: linguagem aprovada, baseada em linhas e rails. */
.meca-ops-recurring { color: #0b2559; }
.meca-rec-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-block: 1px solid #d3dce8; background: #fff; }
.meca-rec-summary article { display: grid; gap: 3px; min-height: 86px; padding: 16px 18px; border-right: 1px solid #d3dce8; }
.meca-rec-summary article:last-child { border-right: 0; }
.meca-rec-summary small { color: #5e7699; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.meca-rec-summary strong { font-size: 24px; line-height: 1; }
.meca-rec-summary span { color: #60779a; font-size: 11px; }
.meca-rec-summary .is-warning { border-bottom: 3px solid #ef8a0c; }
.meca-rec-summary .is-success { border-bottom: 3px solid #22964a; }
.meca-rec-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(280px, 1fr); border-bottom: 1px solid #d3dce8; }
.meca-rec-main { min-width: 0; padding: 18px 10px 22px 0; border-right: 1px solid #d3dce8; }
.meca-rec-filters { display: grid; grid-template-columns: 1.5fr repeat(3, minmax(130px, .75fr)) auto; align-items: end; gap: 10px; padding: 0 8px 16px; }
.meca-rec-filters label,
.meca-rec-field { display: grid; gap: 6px; min-width: 0; color: #31517f; font-size: 10px; font-weight: 750; }
.meca-rec-filters input,
.meca-rec-filters select,
.meca-rec-field input,
.meca-rec-field select,
.meca-rec-field textarea { width: 100%; min-height: 40px; padding: 9px 11px; border: 1px solid #c8d3e2; border-radius: 5px; background: #fff; color: #17345f; font: inherit; font-size: 12px; }
.meca-rec-rules { border: 1px solid #c8d3e2; background: #fff; }
.meca-rec-rules > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px; border-bottom: 1px solid #c8d3e2; }
.meca-rec-rules h2 { margin: 0; font-size: 16px; }
.meca-rec-rules header p { margin: 4px 0 0; color: #60779a; font-size: 11px; }
.meca-rec-rules header > div:last-child { display: flex; align-items: center; gap: 14px; font-size: 11px; }
.meca-rec-rules header a { color: #0b4ddd; font-weight: 750; text-decoration: none; }
.meca-rec-table-wrap { overflow-x: auto; }
.meca-rec-table { width: 100%; min-width: 1080px; border-collapse: collapse; }
.meca-rec-table th { padding: 10px 12px; background: #eef2f7; color: #526b91; font-size: 9px; letter-spacing: .055em; text-align: left; text-transform: uppercase; }
.meca-rec-table td { position: relative; padding: 12px; border-bottom: 1px solid #dce4ef; color: #17345f; font-size: 11px; vertical-align: middle; }
.meca-rec-table tr:last-child td { border-bottom: 0; }
.meca-rec-table tbody tr:hover td { background: #f8faff; }
.meca-rec-table td:first-child { padding-left: 18px; }
.meca-rec-table td:first-child::before { position: absolute; inset: 0 auto 0 0; width: 3px; background: #22964a; content: ""; }
.meca-rec-table tr[data-state="atencao"] td:first-child::before { background: #ef8a0c; }
.meca-rec-table tr[data-state="pausada"] td:first-child::before { background: #8a99b0; }
.meca-rec-table td strong,
.meca-rec-table td small,
.meca-rec-table td em { display: block; }
.meca-rec-table td small { margin-top: 3px; color: #60779a; }
.meca-rec-table td em { margin-top: 4px; color: #778ba9; font-size: 9px; font-style: normal; font-weight: 750; text-transform: uppercase; }
.meca-rec-table td:last-child { white-space: nowrap; }
.meca-rec-table td:last-child form { display: inline; margin-left: 10px; }
.meca-rec-table td:last-child button { border: 0; background: transparent; color: #60779a; cursor: pointer; font-size: 11px; font-weight: 700; }
.meca-rec-state { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 4px; background: #eaf6ee; color: #208047; font-size: 10px; font-weight: 750; }
.meca-rec-state i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.meca-rec-state.is-atencao { background: #fff2e5; color: #c46800; }
.meca-rec-state.is-pausada { background: #eef1f5; color: #64748c; }
.meca-rec-muted { color: #8a99b0; }
.meca-rec-rules > footer { display: flex; align-items: center; gap: 18px; padding: 12px 16px; border-top: 1px solid #c8d3e2; color: #60779a; font-size: 11px; }
.meca-rec-rules > footer nav { display: flex; gap: 10px; margin-left: auto; }
.meca-rec-rules > footer a { color: #0b4ddd; font-weight: 750; text-decoration: none; }
.meca-rec-rail { display: flex; min-width: 0; flex-direction: column; background: #fff; }
.meca-rec-rail > section { padding: 20px 18px; border-bottom: 1px solid #dce4ef; }
.meca-rec-rail header { display: flex; gap: 10px; }
.meca-rec-rail header > span { width: 4px; height: 34px; border-radius: 3px; background: #1769ff; }
.meca-rec-rail header > span.is-warning { background: #ef8a0c; }
.meca-rec-rail h2 { margin: 0; font-size: 16px; }
.meca-rec-rail header p { margin: 3px 0 0; color: #60779a; font-size: 11px; }
.meca-rec-upcoming { margin-top: 12px; }
.meca-rec-upcoming h3 { margin: 0; padding: 8px 0; border-bottom: 1px solid #dce4ef; font-size: 11px; }
.meca-rec-upcoming > a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 2px; border-bottom: 1px solid #e4e9f0; color: #0b2559; text-decoration: none; }
.meca-rec-upcoming strong,
.meca-rec-upcoming small { display: block; }
.meca-rec-upcoming strong { font-size: 11px; }
.meca-rec-upcoming small,
.meca-rec-upcoming p { margin: 3px 0 0; color: #60779a; font-size: 10px; }
.meca-rec-upcoming b { color: #0b4ddd; font-size: 11px; }
.meca-rec-attention { display: grid; gap: 4px; margin-top: 14px; padding: 12px; border-left: 3px solid #ef8a0c; background: #fff7eb; color: #9d5100; text-decoration: none; }
.meca-rec-attention small { color: #9b6a34; }
.meca-rec-rail-empty { color: #60779a; font-size: 11px; }
.meca-rec-rule-note { margin: 14px 0 0; padding: 10px 12px; border-left: 3px solid #1769ff; background: #eef4ff; color: #3f6093; font-size: 11px; }

.meca-rec-history {
  margin-top: 16px;
  border: 1px solid #dce4ef;
  background: #fff;
}
.meca-rec-history > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid #e5ebf2;
}
.meca-rec-history h2,
.meca-rec-history p { margin: 0; }
.meca-rec-history p,
.meca-rec-history small { color: #64748b; }
.meca-rec-history__list > a {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 18px;
  border-bottom: 1px solid #edf1f6;
  color: #102a56;
  text-decoration: none;
}
.meca-rec-history__list > a > span { display: grid; gap: 3px; }
.meca-rec-history__list > a > span:last-child { text-align: right; }
.meca-rec-history__list > p { padding: 18px; }

.meca-rec-editor { display: grid; grid-template-columns: minmax(250px, .7fr) minmax(0, 2fr); gap: 14px; padding-top: 14px; }
.meca-rec-editor > aside { align-self: start; padding: 20px; border: 1px solid #c8d3e2; background: #fff; }
.meca-rec-editor > aside h2 { margin: 0; font-size: 17px; }
.meca-rec-editor > aside p { color: #60779a; font-size: 12px; line-height: 1.5; }
.meca-rec-editor > aside ol { display: grid; gap: 12px; margin: 20px 0; padding: 0; list-style: none; counter-reset: steps; }
.meca-rec-editor > aside li { display: grid; gap: 3px; padding-left: 34px; color: #17345f; counter-increment: steps; }
.meca-rec-editor > aside li::before { position: absolute; width: 23px; height: 23px; margin-left: -34px; border-radius: 50%; background: #0d2b6b; color: #fff; content: counter(steps); font-size: 11px; font-weight: 800; line-height: 23px; text-align: center; }
.meca-rec-editor > aside li span { color: #60779a; font-size: 11px; }
.meca-rec-editor > main { display: grid; gap: 12px; }
.meca-rec-editor > main > section { padding: 18px; border: 1px solid #c8d3e2; background: #fff; }
.meca-rec-editor section header { margin-bottom: 14px; }
.meca-rec-editor section header small { color: #0b4ddd; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.meca-rec-editor section header h2 { margin: 4px 0 0; font-size: 17px; }
.meca-rec-form-grid { display: grid; gap: 14px; }
.meca-rec-form-grid.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.meca-rec-form-grid.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.meca-rec-field small { color: #7185a3; font-weight: 500; }
.meca-rec-field em { color: #c42a35; font-size: 10px; font-style: normal; }
.meca-rec-check { display: flex; align-items: center; gap: 9px; min-height: 40px; color: #31517f; font-size: 11px; }
.meca-rec-check span { display: grid; gap: 3px; }
.meca-rec-check small { color: #7185a3; }
.meca-rec-form-span { grid-column: 1 / -1; }
.meca-rec-editor > main > footer { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 0; }
.meca-rec-errors { grid-column: 1 / -1; padding: 12px; border-left: 3px solid #e52a35; background: #fff0f1; color: #b7242f; }

@media (max-width: 1120px) {
  .meca-rec-summary { grid-template-columns: repeat(3, 1fr); }
  .meca-rec-summary article:nth-child(3) { border-right: 0; }
  .meca-rec-layout { grid-template-columns: 1fr; }
  .meca-rec-main { border-right: 0; padding-right: 0; }
  .meca-rec-rail { border-top: 1px solid #d3dce8; }
  .meca-rec-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .meca-rec-summary { grid-template-columns: 1fr 1fr; }
  .meca-rec-summary article { border-bottom: 1px solid #d3dce8; }
  .meca-rec-summary article:nth-child(even) { border-right: 0; }
  .meca-rec-editor { grid-template-columns: 1fr; }
  .meca-rec-form-grid.is-two,
  .meca-rec-form-grid.is-three,
  .meca-rec-filters { grid-template-columns: 1fr; }
  .meca-rec-rules > footer { align-items: flex-start; flex-direction: column; }
  .meca-rec-rules > footer nav { margin-left: 0; }
}

@media (max-width: 480px) {
  .meca-body--operacoes .meca-ops-topbar__brand { display: none; }
  .meca-body--operacoes .meca-ops-topbar__nav a { padding-inline: 6px; }
  .meca-body--operacoes .meca-topbar__actions .meca-bell { padding: 6px; }
}

@media print {
  .meca-body--operacoes .meca-topbar { position: static; box-shadow: none; }
  .meca-body--operacoes .meca-ops-topbar__nav,
  .meca-body--operacoes .meca-ops-topbar__search,
  .meca-body--operacoes .meca-topbar__actions { display: none; }
}

/* ===========================================================================
 * Paridade visual aprovada - Operações
 * Contrato: barra única do módulo, conteúdo ancorado e listas operacionais.
 * ========================================================================== */
.meca-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.meca-body--operacoes {
  --meca-bg: #f6f8fb;
}

.meca-body--operacoes .meca-topbar {
  min-height: 82px;
  height: 82px;
  gap: 22px;
  padding: 0 clamp(20px, 2vw, 34px);
  background: #062554;
  box-shadow: 0 1px 0 rgb(255 255 255 / 10%), 0 4px 16px rgb(2 17 45 / 16%);
}

.meca-body--operacoes .meca-topbar__inner {
  width: 0;
  min-width: 0;
  flex: 1 1 0;
  max-width: none;
  gap: 20px;
  overflow: hidden;
}

.meca-body--operacoes .meca-ops-topbar__brand {
  padding-right: 22px;
}

.meca-body--operacoes .meca-ops-topbar__brand img {
  width: 148px;
}

.meca-body--operacoes .meca-ops-topbar__module {
  min-height: 42px;
  gap: 10px;
  padding: 9px 13px;
  border: 1px solid rgb(255 255 255 / 28%);
  font-size: 14px;
}

.meca-body--operacoes .meca-ops-topbar__nav {
  gap: 5px;
}

.meca-body--operacoes .meca-ops-topbar__nav a {
  padding-inline: 12px;
  font-size: 13px;
}

.meca-body--operacoes .meca-ops-topbar__nav a::after {
  right: 12px;
  left: 12px;
  height: 4px;
  background: transparent;
}

.meca-body--operacoes .meca-ops-topbar__nav a.is-active::after {
  background: #246bfe;
}

.meca-body--operacoes .meca-topbar__actions {
  gap: 14px;
}

.meca-body--operacoes .meca-ops-searchbox {
  position: relative;
  width: clamp(300px, 22vw, 390px);
}

.meca-body--operacoes .meca-ops-search-open {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 8px;
  background: rgb(255 255 255 / 6%);
  color: #fff;
  cursor: pointer;
}

.meca-body--operacoes .meca-ops-search-open:hover,
.meca-body--operacoes .meca-ops-search-open:focus-visible {
  border-color: rgb(255 255 255 / 55%);
  background: rgb(255 255 255 / 13%);
}

.meca-body--operacoes .meca-ops-topbar__search {
  width: 100%;
  height: 42px;
  padding: 0 11px;
  border-color: rgb(255 255 255 / 24%);
  background: rgb(255 255 255 / 6%);
}

.meca-body--operacoes .meca-ops-topbar__search input {
  font-size: 13px;
}

.meca-body--operacoes .meca-ops-topbar__search kbd {
  flex: 0 0 auto;
  padding: 3px 6px;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 5px;
  background: rgb(255 255 255 / 7%);
  color: rgb(255 255 255 / 72%);
  font: 700 10px/1.2 inherit;
  white-space: nowrap;
}

.meca-body--operacoes .meca-ops-searchpanel {
  position: absolute;
  z-index: 1200;
  top: calc(100% + 10px);
  right: 0;
  width: min(460px, calc(100vw - 32px));
  max-height: min(620px, calc(100vh - 110px));
  overflow: auto;
  padding: 8px;
  border: 1px solid #cbd7e7;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 45px rgb(5 28 70 / 24%);
  color: #102a56;
}

.meca-body--operacoes .meca-ops-searchpanel[hidden] { display: none; }

.meca-body--operacoes .meca-ops-searchpanel__status {
  margin: 0;
  padding: 18px 14px;
  color: #5a7194;
  font-size: 12px;
  text-align: center;
}

.meca-body--operacoes .meca-ops-searchpanel__group + .meca-ops-searchpanel__group {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid #e4eaf2;
}

.meca-body--operacoes .meca-ops-searchpanel__group h3 {
  margin: 0;
  padding: 7px 10px 5px;
  color: #627797;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.meca-body--operacoes .meca-ops-searchpanel__item {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #102a56;
  text-decoration: none;
}

.meca-body--operacoes .meca-ops-searchpanel__item:hover,
.meca-body--operacoes .meca-ops-searchpanel__item.is-active {
  border-color: #bed2ef;
  background: #eef5ff;
}

.meca-body--operacoes .meca-ops-searchpanel__itembody {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.meca-body--operacoes .meca-ops-searchpanel__itembody strong,
.meca-body--operacoes .meca-ops-searchpanel__itembody small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meca-body--operacoes .meca-ops-searchpanel__itembody strong { font-size: 12px; }
.meca-body--operacoes .meca-ops-searchpanel__itembody small { color: #60779a; font-size: 10px; }
.meca-body--operacoes .meca-ops-searchpanel__action {
  flex: 0 0 auto;
  color: #075ee8;
  font-size: 11px;
  font-weight: 800;
}

.meca-body--operacoes .meca-topbar__profile,
.meca-body--operacoes .meca-topbar__profile[data-tone="primary"] {
  min-height: 42px;
  gap: 9px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0;
  font-family: inherit;
  cursor: pointer;
}

.meca-body--operacoes .meca-topbar__profilemenu {
  position: relative;
}

.meca-body--operacoes .meca-topbar__profile:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.meca-body--operacoes .meca-topbar__profile svg {
  transition: transform .15s ease;
}

.meca-body--operacoes .meca-topbar__profilemenu.is-open .meca-topbar__profile svg {
  transform: rotate(180deg);
}

.meca-body--operacoes .meca-topbar__profilepanel {
  position: absolute;
  z-index: 1200;
  top: calc(100% + 10px);
  right: 0;
  width: 238px;
  overflow: hidden;
  border: 1px solid #c7d3e3;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 16px 34px rgb(10 35 80 / 20%);
  color: #102a5d;
}

.meca-body--operacoes .meca-topbar__profilepanel[hidden] {
  display: none;
}

.meca-body--operacoes .meca-topbar__profileidentity {
  display: grid;
  gap: 3px;
  padding: 14px 15px;
  border-bottom: 1px solid #dce4ef;
  background: #f5f8fc;
}

.meca-body--operacoes .meca-topbar__profileidentity strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meca-body--operacoes .meca-topbar__profileidentity span {
  color: #657a9a;
  font-size: 10px;
}

.meca-body--operacoes .meca-topbar__profilepanel > a {
  display: block;
  padding: 11px 15px;
  border-bottom: 1px solid #edf1f6;
  color: #17345f;
  font-size: 11px;
  font-weight: 750;
  text-decoration: none;
}

.meca-body--operacoes .meca-topbar__profilepanel > a:hover,
.meca-body--operacoes .meca-topbar__profilepanel > a:focus-visible {
  background: #edf4ff;
  color: #0b4ddd;
  outline: 0;
}

.meca-body--operacoes .meca-topbar__profilepanel > a.is-logout {
  border-bottom: 0;
  color: #b4232c;
}

.meca-body--operacoes .meca-topbar__profile > b {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: #1769ef;
  color: #fff;
  font-size: 12px;
}

.meca-body--operacoes .meca-topbar__profile > span {
  font-weight: 750;
  white-space: nowrap;
}

.meca-body--operacoes .meca-main .meca-container--operacoes {
  width: 100%;
  max-width: none;
  padding: 0 clamp(12px, .9vw, 18px) 32px;
}

.meca-body--operacoes .meca-messages {
  max-width: none;
  margin: 14px auto 0;
}

/* Carteira operacional aprovada */
.meca-ops-board {
  width: 100%;
  max-width: none;
  padding: 0;
  color: #102a5d;
  font-size: 14px;
}

.meca-ops-board__frame {
  width: min(100%, 1980px);
  margin: 0 auto;
  border: 1px solid #dce4ef;
  border-top: 0;
  background: #edf2f7;
  box-shadow: 0 3px 18px rgb(22 45 83 / 7%);
}

.meca-ops-breadcrumb {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 40px;
  padding: 0 22px;
  border-bottom: 1px solid #e3e9f2;
  background: #fff;
  color: #667a9b;
  font-size: 13px;
}

.meca-ops-breadcrumb a { color: #31558c; text-decoration: none; }
.meca-ops-breadcrumb a:hover { text-decoration: underline; }

.meca-ops-pagehead {
  display: flex;
  min-height: 104px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 28px 18px 35px;
  border-bottom: 1px solid #e0e7f1;
  background: #fff;
}

.meca-ops-pagehead > div:first-child {
  position: relative;
}

.meca-ops-pagehead > div:first-child::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -22px;
  width: 4px;
  border-radius: 3px;
  background: #1769ff;
  content: "";
}

.meca-ops-pagehead h1 {
  margin: 0;
  color: #0a285d;
  font-size: clamp(24px, 2vw, 31px);
  font-weight: 760;
  letter-spacing: -.025em;
  line-height: 1.1;
}

.meca-ops-pagehead p {
  margin: 7px 0 0;
  color: #345995;
  font-size: 14px;
}

.meca-ops-pagehead__actions,
.meca-ops-sectionhead > div,
.meca-ops-signals {
  display: flex;
  align-items: center;
  gap: 12px;
}

.meca-ops-btn {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid #b7c7df;
  border-radius: 5px;
  background: #fff;
  color: #0a4bd8;
  font: 750 13px/1.2 inherit;
  text-decoration: none;
  cursor: pointer;
}

.meca-ops-btn:hover,
.meca-ops-btn:focus-visible { border-color: #6f94d1; background: #f5f8fd; }

.meca-ops-btn--primary {
  border-color: #0b4ddd;
  background: #0b4ddd;
  color: #fff;
  box-shadow: 0 3px 8px rgb(11 77 221 / 18%);
}

.meca-ops-btn--primary:hover,
.meca-ops-btn--primary:focus-visible { border-color: #073cad; background: #073cad; }

.meca-ops-scopebar {
  display: flex;
  min-height: 58px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 0 22px;
  border-bottom: 1px solid #dce4ef;
  background: #f9fbfd;
}

.meca-ops-scopebar nav { display: flex; align-items: flex-end; gap: 20px; }
.meca-ops-scopebar nav a {
  position: relative;
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  padding: 6px 14px 0;
  color: #31558c;
  font-weight: 700;
  text-decoration: none;
}
.meca-ops-scopebar nav a::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: transparent;
  content: "";
}
.meca-ops-scopebar nav a.is-active { color: #071e55; }
.meca-ops-scopebar nav a.is-active::after { background: #0d2b6b; }
.meca-ops-scopebar > p { margin: 0 0 16px; color: #31558c; }
.meca-ops-scopebar > p strong { color: #0b4ddd; }

.meca-ops-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  min-height: 98px;
  padding: 10px 18px;
  border-bottom: 1px solid #d8e1ec;
  background: #edf2f7;
}

.meca-ops-summary article {
  display: grid;
  grid-template-columns: 34px auto;
  grid-template-rows: auto auto;
  align-content: center;
  justify-content: center;
  column-gap: 14px;
  min-width: 0;
  padding: 14px 22px;
  border: 1px solid #c9d8ea;
  border-radius: 8px;
  background: #eef5ff;
  color: #0d5bf1;
  box-shadow: 0 2px 7px rgb(30 64 110 / 6%);
}
.meca-ops-summary article:last-child { border-right: 1px solid #b9ddc5; }
.meca-ops-summary article svg { grid-row: 1 / 3; align-self: center; }
.meca-ops-summary article strong { color: #071e55; font-size: 24px; line-height: 1; }
.meca-ops-summary article span { margin-top: 7px; color: #345995; font-size: 12px; }
.meca-ops-summary--text article {
  grid-template-columns: max-content minmax(0, 1fr);
  grid-template-rows: auto;
  align-items: center;
  justify-content: stretch;
}
.meca-ops-summary--text article span { margin-top: 0; }
.meca-ops-summary article[data-tone="warning"] { border-color: #e4b431; background: #fff5c9; color: #b96b00; box-shadow: inset 4px 0 #e4a400, 0 2px 7px rgb(30 64 110 / 6%); }
.meca-ops-summary article[data-tone="danger"] { border-color: #8f171c; background: #c62828; color: #fff; box-shadow: inset 4px 0 #8f171c, 0 2px 7px rgb(30 64 110 / 8%); }
.meca-ops-summary article[data-tone="danger"] strong,
.meca-ops-summary article[data-tone="danger"] span { color: #fff; }
.meca-ops-summary article[data-tone="success"] { border-color: #65ae79; background: #edf8f0; color: #17883a; box-shadow: inset 4px 0 #22964a, 0 2px 7px rgb(30 64 110 / 6%); }

.meca-ops-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: stretch;
  gap: 18px;
  padding: 18px;
  background: #edf2f7;
}

.meca-ops-workspace__main {
  min-width: 0;
  padding: 0;
  border-right: 0;
}

.meca-ops-priority {
  margin: 0;
  overflow: hidden;
  border: 1px solid #c7d4e3;
  border-left: 4px solid #315f9f;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 4px 14px rgb(30 64 110 / 7%);
}

.meca-ops-sectionhead {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 18px;
  border-bottom: 1px solid #d7e1ef;
  background: #fff;
}
.meca-ops-sectionhead__title { color: #0b59ea; }
.meca-ops-sectionhead__title > span { display: grid; gap: 2px; }
.meca-ops-sectionhead h2 { margin: 0; color: #0b2559; font-size: 17px; }
.meca-ops-sectionhead p { margin: 0; color: #546b91; font-size: 12px; }
.meca-ops-sectionhead a { color: #0b4ddd; font-size: 12px; font-weight: 750; text-decoration: none; }
.meca-ops-pill {
  padding: 6px 13px;
  border-radius: 999px;
  background: #e9f0ff;
  color: #0b4ddd;
  font-size: 12px;
  font-weight: 750;
}

.meca-ops-priority .meca-ops-sectionhead { border-bottom-color: #d7e1ef; background: #f7f9fc; }
.meca-ops-priority__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 10px; }
.meca-ops-priority__grid article { min-width: 0; padding: 12px 14px 10px; border: 1px solid #d7e1ef; border-radius: 7px; background: #fff; box-shadow: 0 2px 7px rgb(30 64 110 / 5%); }
.meca-ops-priority__grid article[data-state="warning"] { border-color: #e4b431; border-left: 3px solid #e4a400; background: #fff5c9; }
.meca-ops-priority__grid article[data-state="overdue"] {
  border-color: #a51d23;
  border-left: 3px solid #8f171c;
  background: linear-gradient(to bottom, #c62828 0, #c62828 38px, #fff 38px, #fff 100%);
}
.meca-ops-priority__grid article:last-child { border-right: 1px solid #d7e1ef; }
.meca-ops-priority__level { display: inline-flex; align-items: center; gap: 7px; color: #ad6500; font-size: 12px; font-weight: 760; }
.meca-ops-priority__level::before { width: 8px; height: 8px; border-radius: 50%; background: currentColor; content: ""; }
.meca-ops-priority__grid article[data-state="overdue"] .meca-ops-priority__level { color: #fff; }
.meca-ops-priority__task { display: grid; grid-template-columns: 27px minmax(0, 1fr); align-items: center; gap: 10px; margin-top: 8px; color: #f07700; }
.meca-ops-priority__grid article:has(.meca-ops-priority__task svg path[d^="M4 5"]) .meca-ops-priority__task { color: #0d5bf1; }
.meca-ops-priority__task div { min-width: 0; }
.meca-ops-priority__task strong,
.meca-ops-priority__task span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meca-ops-priority__task strong { color: #071e55; font-size: 13px; }
.meca-ops-priority__task span { margin-top: 4px; color: #45618f; font-size: 11px; }
.meca-ops-priority__grid article footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.meca-ops-priority__grid article footer span { overflow: hidden; color: #45618f; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.meca-ops-priority__grid article footer a { flex: 0 0 auto; color: #0b4ddd; font-size: 12px; font-weight: 760; text-decoration: none; }

.meca-ops-list { margin-top: 18px; padding: 14px; border: 1px solid #cad6e5; border-radius: 9px; background: #fff; box-shadow: 0 4px 14px rgb(30 64 110 / 7%); }
.meca-ops-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin: -14px -14px 14px;
  padding: 14px;
  border-bottom: 1px solid #d4deea;
  border-radius: 9px 9px 0 0;
  background: #f3f6fa;
}
.meca-ops-filters > label { flex: 1 1 145px; }
.meca-ops-filters > .meca-ops-searchfield { flex: 1.5 1 250px; }
.meca-ops-filters > .meca-ops-btn,
.meca-ops-filters > .meca-ops-filter-clear { flex: 0 0 auto; }
.meca-ops-filters > label:not(.meca-ops-searchfield) { display: grid; gap: 5px; color: #34517f; font-size: 11px; font-weight: 700; }
.meca-ops-filters input,
.meca-ops-filters select {
  width: 100%;
  min-height: 40px;
  border: 1px solid #b9c8dc;
  border-radius: 5px;
  background: #fff;
  color: #102a5d;
  font: 500 12px/1.2 inherit;
}
.meca-ops-filters > label:not(.meca-ops-searchfield) input,
.meca-ops-filters select { padding: 9px 11px; }
.meca-ops-searchfield { display: flex; min-height: 40px; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid #b9c8dc; border-radius: 5px; background: #fff; color: #637a9f; }
.meca-ops-searchfield input { min-height: 36px; padding: 0; border: 0; outline: 0; }
.meca-ops-filter-clear { align-self: center; color: #0b4ddd; font-size: 12px; font-weight: 700; text-decoration: none; }

.meca-ops-table-wrap { overflow-x: auto; border: 1px solid #becddd; border-radius: 7px; box-shadow: 0 2px 8px rgb(30 64 110 / 5%); }
.meca-ops-table { width: 100%; min-width: 1000px; border-collapse: separate; border-spacing: 0; color: #17345f; }
.meca-ops-table th {
  padding: 11px 12px;
  border-bottom: 1px solid #c8d3e2;
  background: #e9eff6;
  color: #31517f;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .02em;
  text-align: left;
  text-transform: uppercase;
}
.meca-ops-table td {
  position: relative;
  padding: 10px 12px;
  border-bottom: 1px solid #dbe3ee;
  background: #fff;
  font-size: 12px;
  vertical-align: middle;
}
.meca-ops-table tbody tr:nth-child(even) td { background: #f8fafc; }
.meca-ops-table tr:last-child td { border-bottom: 0; }
.meca-ops-table tbody tr:hover td { background: #eef5ff; }
.meca-ops-table tbody tr td:first-child { padding-left: 20px; }
.meca-ops-table tbody tr td:first-child::before { position: absolute; inset: 0 auto 0 0; width: 3px; background: #8fa2bd; content: ""; }
.meca-ops-table tbody tr[data-row-tone="danger"] td:first-child::before { background: #e52a35; }
.meca-ops-table tbody tr[data-row-tone="warning"] td:first-child::before { background: #ef8a0c; }
.meca-ops-table tbody tr[data-row-tone="success"] td:first-child::before { background: #22964a; }
.meca-ops-table td > strong,
.meca-ops-table td > small { display: block; }
.meca-ops-table td > small { margin-top: 3px; color: #667b9b; font-size: 10px; }
.meca-ops-tasklink { display: grid; gap: 3px; color: #0b2559; text-decoration: none; }
.meca-ops-tasklink strong { font-size: 12px; }
.meca-ops-tasklink small { color: #4c6b9d; font-size: 10px; }
.meca-ops-person,
.meca-ops-actionlink { color: #0a4bd8; font-weight: 750; text-decoration: none; }
.meca-ops-actionlink:hover,
.meca-ops-person:hover { text-decoration: underline; }
.meca-ops-status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 5px; background: #eef3fb; color: #2358a4; font-size: 10px; font-weight: 750; }
.meca-ops-status::before { width: 6px; height: 6px; border-radius: 50%; background: currentColor; content: ""; }
.meca-ops-status[data-status="em_execucao"] { background: #eaf6ee; color: #208047; }
.meca-ops-status[data-status="aguardando"] { background: #fff2e5; color: #c46800; }
.meca-ops-status[data-status="em_revisao"] { background: #e8f0ff; color: #0b4ddd; }
.meca-ops-status[data-status="concluida"] { background: #e8f5ed; color: #13753d; }
.meca-ops-status[data-status="cancelada"] { background: #f0f2f5; color: #627087; }
.meca-ops-signals { flex-wrap: wrap; gap: 6px; }
.meca-ops-signal { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 4px; background: #f1f4f8; color: #546b91; font-size: 10px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.meca-ops-signal[data-tone="document"] { background: #fff4e4; color: #d66b00; }
.meca-ops-signal[data-tone="message"] { background: #e9f1ff; color: #0b4ddd; }
.meca-ops-signal[data-tone="warning"] { background: #fff5c9; color: #9b5a00; }
.meca-ops-signal[data-tone="danger"] { background: #c62828; color: #fff; box-shadow: inset 0 0 0 1px #8f171c; }
.meca-ops-signal-button { border: 0; font-family: inherit; cursor: pointer; }
.meca-ops-deadline { display: flex; align-items: flex-start; gap: 7px; }
.meca-ops-deadline > svg { flex: 0 0 auto; margin-top: 1px; color: #5c76a1; }
.meca-ops-deadline span { display: grid; gap: 2px; }
.meca-ops-deadline small { color: #667b9b; font-size: 10px; }
.meca-ops-muted { color: #8a99b0; }
.meca-ops-list__footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 4px 0; color: #5f7596; font-size: 11px; }
.meca-ops-list__footer nav { display: flex; align-items: center; gap: 8px; }
.meca-ops-list__footer nav a,
.meca-ops-list__footer nav strong { padding: 6px 9px; border: 1px solid #c8d3e2; border-radius: 4px; color: #0b4ddd; text-decoration: none; }
.meca-ops-list__footer nav strong { border-color: #0b4ddd; background: #eef4ff; }
.meca-ops-select { width: 34px; text-align: center; }
.meca-ops-select input { width: 16px; height: 16px; accent-color: #0b4ddd; }
.meca-ops-bulk__bar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 10px 12px; border: 1px solid #b9c8dc; border-radius: 7px; background: #eef4fb; }
.meca-ops-bulk__bar label { display: flex; align-items: center; gap: 7px; color: #34517f; font-size: 11px; font-weight: 750; }
.meca-ops-bulk__bar select { min-height: 34px; padding: 6px 9px; border: 1px solid #b9c8dc; border-radius: 4px; background: #fff; color: #102a5d; }
.meca-ops-bulk__bar button:disabled { cursor: not-allowed; opacity: .45; }

.meca-ops-decisions { display: flex; min-width: 0; flex-direction: column; overflow: hidden; padding: 20px 16px 0; border: 1px solid #c4d4e8; border-radius: 9px; background: #f7faff; box-shadow: 0 4px 14px rgb(30 64 110 / 7%); }
.meca-ops-decisions > header { display: flex; align-items: flex-start; gap: 11px; padding-bottom: 16px; }
.meca-ops-decisions > header > span { width: 4px; height: 32px; border-radius: 4px; background: #1769ff; }
.meca-ops-decisions h2 { margin: 0; color: #0b2559; font-size: 17px; }
.meca-ops-decisions p { margin: 4px 0 0; color: #4f6d9a; font-size: 12px; }
.meca-ops-decisions__group h3 { margin: 0; padding: 9px 0; border-bottom: 1px solid #dce4ef; color: #0b2559; font-size: 12px; }
.meca-ops-decisions__group > a { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 9px; min-height: 60px; margin: 6px 0; padding: 9px 8px; border: 1px solid #d7e1ef; border-left: 3px solid #ef8a0c; border-radius: 6px; background: #fff; color: #0b2559; text-decoration: none; }
.meca-ops-decisions__group > a[data-tone="warning"] { border-left-color: #e4a400; background: #fffdf4; }
.meca-ops-decisions__group > a[data-tone="danger"] { border-color: #a51d23; border-left-color: #8f171c; background: #c62828; color: #fff; }
.meca-ops-decisions__group > a[data-tone="danger"] strong,
.meca-ops-decisions__group > a[data-tone="danger"] small,
.meca-ops-decisions__group > a[data-tone="danger"] b { color: #fff; }
.meca-ops-decisions__group > a:hover { border-color: #a9c1df; background: #eef5ff; }
.meca-ops-decisions__group > a[data-tone="danger"]:hover,
.meca-ops-decisions__group > a[data-tone="danger"]:focus-visible {
  border-color: #7f1318;
  border-left-color: #7f1318;
  background: #a51d23;
  color: #fff;
  outline: 3px solid rgba(165, 29, 35, 0.24);
  outline-offset: 2px;
}
.meca-ops-decisions__icon { font-size: 19px; text-align: center; }
.meca-ops-decisions__group strong,
.meca-ops-decisions__group small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meca-ops-decisions__group strong { font-size: 11px; }
.meca-ops-decisions__group small { margin-top: 4px; color: #60779a; font-size: 10px; }
.meca-ops-decisions__group b { color: #0b4ddd; font-size: 20px; }
.meca-ops-decisions__footer { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 22px 5px; border-top: 1px solid #dce4ef; color: #0b4ddd; font-size: 12px; font-weight: 750; text-decoration: none; }
.meca-ops-decisions__footer span { margin-left: auto; font-size: 20px; }

.meca-ops-empty { display: grid; justify-items: center; gap: 4px; padding: 20px; background: #f5f7fa; color: #60779a; text-align: center; }
.meca-ops-empty strong { color: #203d6b; }
.meca-ops-empty--rail { margin-top: 10px; border-radius: 6px; }

.meca-ops-dashboard .meca-ops-workspace__main {
  display: grid;
  align-content: start;
  gap: 18px;
  padding-top: 18px;
}

.meca-ops-command,
.meca-ops-team,
.meca-ops-queue,
.meca-ops-analytics > article {
  overflow: hidden;
  border: 1px solid #cbd7e6;
  border-radius: 6px;
  background: #fff;
}

.meca-ops-command__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.meca-ops-command__grid > a {
  position: relative;
  display: grid;
  min-height: 116px;
  align-content: center;
  gap: 5px;
  padding: 17px 56px 17px 20px;
  border-right: 1px solid #dbe3ee;
  border-bottom: 1px solid #dbe3ee;
  color: #17345f;
  text-decoration: none;
}

.meca-ops-command__grid > a:nth-child(even) { border-right: 0; }
.meca-ops-command__grid > a:hover { background: #f7faff; }
.meca-ops-command__grid > a::before { position: absolute; inset: 15px auto 15px 0; width: 3px; border-radius: 3px; background: #1769ff; content: ""; }
.meca-ops-command__grid > a[data-tone="warning"]::before { background: #ef8a0c; }
.meca-ops-command__grid > a[data-tone="danger"]::before { background: #e52a35; }
.meca-ops-command__grid > a > span { color: #557096; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.meca-ops-command__grid > a > strong { color: #0b2559; font-size: 13px; }
.meca-ops-command__grid > a > small { color: #60779a; font-size: 11px; }
.meca-ops-command__grid > a > b { position: absolute; right: 18px; bottom: 17px; color: #0b4ddd; font-size: 11px; }

.meca-ops-team .meca-ops-sectionhead,
.meca-ops-queue .meca-ops-sectionhead { min-height: 64px; }
.meca-ops-team .meca-ops-table-wrap,
.meca-ops-queue .meca-ops-table-wrap { border: 0; border-top: 1px solid #cbd7e6; border-radius: 0; }
.meca-ops-queue { padding-top: 0; }
.meca-ops-table--team { min-width: 860px; }
.meca-ops-table--team th:nth-last-child(-n+5),
.meca-ops-table--team td:nth-last-child(-n+5) { text-align: center; }

.meca-ops-analytics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.meca-ops-analytics > article { padding: 18px; }
.meca-ops-analytics header h2 { margin: 0; color: #0b2559; font-size: 15px; }
.meca-ops-analytics header p { margin: 4px 0 0; color: #60779a; font-size: 11px; }
.meca-ops-analytics .gx-chart { min-height: 250px; margin-top: 12px; }

@media (max-width: 1600px) {
  .meca-body--operacoes .meca-topbar { gap: 12px; padding-inline: 18px; }
  .meca-body--operacoes .meca-topbar__inner { gap: 12px; }
  .meca-body--operacoes .meca-ops-topbar__brand { padding-right: 12px; }
  .meca-body--operacoes .meca-ops-topbar__brand img { width: 106px; }
  .meca-body--operacoes .meca-ops-topbar__nav a { padding-inline: 9px; font-size: 12px; }
  .meca-body--operacoes .meca-ops-searchbox { width: 260px; }
  .meca-body--operacoes .meca-topbar__profile > span { display: none; }
  .meca-ops-workspace { grid-template-columns: minmax(0, 1fr) 330px; }
}

@media (max-width: 1160px) {
  .meca-body--operacoes .meca-ops-search-open { display: inline-flex; }
  .meca-body--operacoes .meca-ops-searchbox { display: none; }
  .meca-body--operacoes .meca-ops-searchbox.is-shortcut-open {
    display: block;
    position: fixed;
    z-index: 1350;
    top: 76px;
    left: 50%;
    width: min(520px, calc(100vw - 32px));
    transform: translateX(-50%);
  }
  .meca-body--operacoes .meca-ops-searchbox.is-shortcut-open .meca-ops-topbar__search {
    display: flex;
    border-color: #8fb5ea;
    background: #12366e;
    box-shadow: 0 14px 38px rgb(5 28 70 / 30%);
  }
  .meca-ops-workspace { grid-template-columns: 1fr; }
  .meca-ops-workspace__main { padding-right: 0; border-right: 0; }
  .meca-ops-decisions { padding: 20px; }
  .meca-ops-decisions__footer { margin-top: 16px; }
}

@media (max-width: 900px) {
  .meca-body--operacoes .meca-topbar {
    overflow: hidden;
  }
  .meca-body--operacoes .meca-topbar__inner {
    width: 0;
    min-width: 0;
    flex: 1 1 0;
    flex-direction: row;
    align-items: center;
    overflow: hidden;
  }
  .meca-body--operacoes .meca-ops-topbar__brand { display: none; }
  .meca-body--operacoes .meca-ops-topbar__module span,
  .meca-body--operacoes .meca-ops-topbar__module svg:last-child { display: none; }
  .meca-body--operacoes .meca-ops-topbar__module { width: 40px; justify-content: center; padding: 8px; }
  .meca-body--operacoes .meca-ops-topbar__nav {
    width: 0;
    min-width: 0;
    max-width: 100%;
    flex: 1 1 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-behavior: smooth;
    scrollbar-width: none;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
  }
  .meca-body--operacoes .meca-ops-topbar__nav::-webkit-scrollbar { display: none; }
  .meca-body--operacoes .meca-topbar__actions { flex: 0 0 auto; }
  .meca-ops-pagehead { align-items: flex-start; flex-direction: column; }
  .meca-ops-summary { grid-template-columns: repeat(2, 1fr); }
  .meca-ops-priority__grid { grid-template-columns: 1fr; }
  .meca-ops-priority__grid article { border-right: 1px solid #d7e1ef; border-bottom: 1px solid #d7e1ef; }
  .meca-ops-filters > label { flex-basis: calc(50% - 12px); }
  .meca-ops-command__grid,
  .meca-ops-analytics { grid-template-columns: 1fr; }
  .meca-ops-command__grid > a { border-right: 0; }
}

@media (max-width: 640px) {
  .meca-body--operacoes .meca-topbar__profilepanel { position: fixed; top: 62px; right: 10px; width: min(280px, calc(100vw - 20px)); }
  .meca-ops-pagehead { padding-inline: 24px 16px; }
  .meca-ops-pagehead__actions { width: 100%; flex-wrap: wrap; }
  .meca-ops-pagehead__actions .meca-ops-btn { flex: 1 1 150px; }
  .meca-ops-scopebar { align-items: stretch; flex-direction: column; padding-top: 8px; }
  .meca-ops-scopebar nav { overflow-x: auto; }
  .meca-ops-scopebar > p { margin: 0 0 10px; }
  .meca-ops-summary { grid-template-columns: 1fr; padding: 10px; }
  .meca-ops-summary article { justify-content: start; border: 1px solid #c9d8ea; }
  .meca-ops-summary article[data-tone="warning"] { border-color: #e4b431; }
  .meca-ops-summary article[data-tone="danger"] { border-color: #8f171c; }
  .meca-ops-summary article[data-tone="success"],
  .meca-ops-summary article:last-child { border: 1px solid #b9ddc5; }
  .meca-ops-workspace { gap: 12px; padding: 10px; }
  .meca-ops-sectionhead { align-items: flex-start; flex-direction: column; }
  .meca-ops-filters > label,
  .meca-ops-filters > .meca-ops-searchfield { flex-basis: 100%; }
  .meca-ops-list__footer { align-items: flex-start; flex-direction: column; }
}

/* Detalhe da tarefa no mesmo sistema visual da carteira operacional. */
.meca-ops-task-detail .meca-ops-detail-eyebrow {
  display: block;
  margin-bottom: 7px;
  color: #31558c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.meca-ops-task-detail .meca-ops-pagehead p {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.meca-ops-detail-summary article strong {
  font-size: clamp(18px, 1.5vw, 24px);
  white-space: nowrap;
}

.meca-ops-detail-nav {
  position: sticky;
  z-index: 15;
  top: 82px;
  display: flex;
  min-height: 52px;
  align-items: flex-end;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 22px;
  border-bottom: 1px solid #dce4ef;
  background: #f8fafc;
  box-shadow: 0 8px 18px rgb(6 37 84 / 8%);
}

.meca-ops-detail-nav::-webkit-scrollbar { display: none; }

.meca-ops-detail-nav a {
  position: relative;
  display: inline-flex;
  min-height: 51px;
  flex: 0 0 auto;
  align-items: center;
  padding: 6px 13px 0;
  color: #31558c;
  font-size: 12px;
  font-weight: 740;
  text-decoration: none;
}

.meca-ops-detail-nav a::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: transparent;
  content: "";
}

.meca-ops-detail-nav a:hover,
.meca-ops-detail-nav a:focus-visible,
.meca-ops-detail-nav a.is-active { color: #071e55; }
.meca-ops-detail-nav a.is-active::after { background: #0d2b6b; }

.meca-ops-detail-content {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: #f3f6fa;
}

.meca-ops-detail-content > [data-meca-task-panel][hidden] {
  display: none !important;
}

.meca-ops-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, .85fr);
  gap: 14px;
}

.meca-ops-detail-panel,
.meca-ops-task-detail .meca-ops-detail-content > .meca-card,
.meca-ops-task-detail .meca-ops-detail-content > section {
  min-width: 0;
  margin: 0;
  padding: 18px;
  border: 1px solid #cbd7e6;
  border-radius: 6px;
  background: #fff;
  box-shadow: none;
}

.meca-ops-detail-panel__head,
.meca-ops-task-detail .meca-section__head {
  display: flex;
  min-height: 42px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: -2px 0 14px;
  padding: 0 0 12px;
  border-bottom: 1px solid #dce4ef;
}

.meca-ops-detail-panel__head h2,
.meca-ops-task-detail .meca-section__head h2 {
  margin: 0;
  color: #0b2559;
  font-size: 16px;
  line-height: 1.25;
}

.meca-ops-detail-panel__head p,
.meca-ops-task-detail .meca-section__head p {
  margin: 4px 0 0;
  color: #60779a;
  font-size: 11px;
}

.meca-ops-task-detail .meca-section__meta {
  color: #557096;
  font-size: 11px;
  font-weight: 700;
}

.meca-ops-task-detail .meca-kv {
  margin: 0;
  color: #17345f;
  font-size: 12px;
}

.meca-ops-task-detail .meca-kv dt {
  color: #60779a;
  font-size: 11px;
  font-weight: 700;
}
.meca-ops-task-detail .meca-kv dd { margin: 0; }

.meca-ops-readiness .meca-v2-readiness { display: grid; gap: 0; }
.meca-ops-readiness .meca-v2-readiness__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 42px;
  padding: 8px 0;
  border-bottom: 1px solid #e1e7f0;
  color: #31517f;
  font-size: 12px;
}
.meca-ops-readiness .meca-v2-readiness__row:last-child { border-bottom: 0; }
.meca-ops-readiness .meca-v2-readiness__row strong { color: #0b2559; text-align: right; }

.meca-ops-task-detail .meca-table-wrap {
  overflow-x: auto;
  border: 1px solid #cbd7e6;
  border-radius: 5px;
}
.meca-ops-task-detail .meca-table { margin: 0; font-size: 12px; }
.meca-ops-task-detail .meca-table th {
  padding: 9px 11px;
  background: #f3f6fa;
  color: #31517f;
  font-size: 10px;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.meca-ops-task-detail .meca-table td { padding: 10px 11px; background: #fff; }

.meca-ops-management { border-left: 4px solid #1769ff !important; }
.meca-ops-management__head > div { min-width: 0; }
.meca-ops-management__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.meca-ops-management__grid > details {
  overflow: hidden;
  border: 1px solid #c7d4e5;
  border-radius: 5px;
  background: #fff;
}

.meca-ops-management__grid > details[data-tone="danger"] {
  border-color: #8f171c;
  box-shadow: inset 4px 0 #c62828;
}
.meca-ops-management__grid > details[data-tone="danger"] > summary small,
.meca-ops-management__grid > details[data-tone="danger"] > summary strong { color: #c62828; }
.meca-ops-management__grid > details[data-tone="warning"] {
  border-color: #e4b431;
  box-shadow: inset 4px 0 #e4a400;
}
.meca-ops-management__grid > details[data-tone="warning"] > summary small,
.meca-ops-management__grid > details[data-tone="warning"] > summary strong { color: #9f5b00; }
.meca-ops-management__grid > details[data-tone="success"] {
  border-color: #65ae79;
  box-shadow: inset 4px 0 #22964a;
}
.meca-ops-management__grid > details[data-tone="success"] > summary small,
.meca-ops-management__grid > details[data-tone="success"] > summary strong { color: #17883a; }

.meca-ops-management__grid > details[open] { border-color: #7fa5df; box-shadow: 0 3px 10px rgb(18 68 145 / 8%); }
.meca-ops-management__grid > details[data-tone="danger"][open] { border-color: #8f171c; box-shadow: inset 4px 0 #c62828, 0 3px 10px rgb(18 68 145 / 8%); }
.meca-ops-management__grid > details[data-tone="warning"][open] { border-color: #e4b431; box-shadow: inset 4px 0 #e4a400, 0 3px 10px rgb(18 68 145 / 8%); }
.meca-ops-management__grid > details[data-tone="success"][open] { border-color: #65ae79; box-shadow: inset 4px 0 #22964a, 0 3px 10px rgb(18 68 145 / 8%); }
.meca-ops-management__grid > details > summary {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: #f7f9fc;
  color: #0b2559;
  cursor: pointer;
  list-style: none;
}
.meca-ops-management__grid > details > summary::-webkit-details-marker { display: none; }
.meca-ops-management__grid > details > summary span { display: grid; gap: 4px; min-width: 0; }
.meca-ops-management__grid > details > summary small { color: #60779a; font-size: 10px; font-weight: 760; letter-spacing: .035em; text-transform: uppercase; }
.meca-ops-management__grid > details > summary strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.meca-ops-management__grid > details > summary b { flex: 0 0 auto; color: #0b4ddd; font-size: 11px; }

.meca-ops-compact-form {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid #dce4ef;
}
.meca-ops-compact-form p { display: grid; gap: 5px; margin: 0; }
.meca-ops-compact-form label { color: #31517f; font-size: 10px; font-weight: 750; }
.meca-ops-compact-form input,
.meca-ops-compact-form select,
.meca-ops-compact-form textarea {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #b9c8dc;
  border-radius: 5px;
  background: #fff;
  color: #102a5d;
  font: 500 12px/1.3 inherit;
}
.meca-ops-compact-form textarea { min-height: 68px; max-height: 96px; resize: vertical; }
.meca-ops-compact-form .meca-ops-btn { width: auto; justify-self: start; }

.meca-ops-task-detail .meca-dashboard-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.meca-ops-task-detail .meca-dashboard-actions .meca-btn,
.meca-ops-task-detail .meca-form > .meca-btn {
  width: auto;
  min-height: 38px;
  padding: 8px 13px;
}
.meca-ops-task-detail .meca-form > .meca-field textarea,
.meca-ops-task-detail .meca-form > textarea { min-height: 78px; }

.meca-ops-requirement {
  margin-top: 14px;
  border: 1px solid #cbd7e6;
  border-radius: 5px;
  background: #f8fafc;
}
.meca-ops-requirement > summary {
  padding: 12px 14px;
  color: #0b4ddd;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}
.meca-ops-requirement .meca-ops-compact-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #fff;
}
.meca-ops-requirement .meca-ops-compact-form .meca-ops-btn { align-self: end; }

.meca-ops-task-detail .meca-empty,
.meca-ops-task-detail .meca-v2-empty {
  padding: 18px;
  border-radius: 5px;
  background: #f5f7fa;
  color: #60779a;
  text-align: center;
}

@media (max-width: 1100px) {
  .meca-ops-detail-grid { grid-template-columns: 1fr; }
  .meca-ops-management__grid { grid-template-columns: 1fr; }
  .meca-ops-requirement .meca-ops-compact-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .meca-ops-detail-content { padding: 10px; }
  .meca-ops-detail-nav { padding-inline: 8px; }
  .meca-ops-detail-panel,
  .meca-ops-task-detail .meca-ops-detail-content > .meca-card,
  .meca-ops-task-detail .meca-ops-detail-content > section { padding: 14px; }
  .meca-ops-requirement .meca-ops-compact-form { grid-template-columns: 1fr; }
}

/* Perfil profissional aprovado: leitura da pessoa antes da agenda diária. */
.meca-profile-page { min-height: 100vh; background: #eef1f5; color: #112b57; }
.meca-profile-frame { width: min(1680px, calc(100% - 34px)); margin: 0 auto; padding: 18px 0 44px; }
.meca-profile-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 18px; border: 1px solid #ccd6e4; border-left: 4px solid #1769ff; background: #fff; }
.meca-profile-identity { display: flex; align-items: center; gap: 14px; min-width: 0; }
.meca-profile-identity small { color: #2760ad; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.meca-profile-identity h1 { margin: 3px 0; font-size: 25px; line-height: 1.1; }
.meca-profile-identity p { margin: 0; color: #647b9c; font-size: 12px; }
.meca-profile-availability { display: inline-flex; align-items: center; gap: 7px; margin-left: 10px; padding: 7px 10px; border: 1px solid currentColor; border-radius: 4px; font-size: 10px; font-weight: 750; white-space: nowrap; }
.meca-profile-availability i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.meca-profile-availability.is-success { color: #1d8b47; }
.meca-profile-availability.is-warning { color: #bd6800; }
.meca-profile-availability.is-danger { color: #d52d38; }
.meca-profile-actions { display: flex; gap: 8px; }
.meca-profile-tabs { display: flex; gap: 4px; margin-top: 12px; border: 1px solid #ccd6e4; background: #fff; }
.meca-profile-tabs a { padding: 13px 15px; border-bottom: 3px solid transparent; color: #415d87; font-size: 11px; font-weight: 750; text-decoration: none; }
.meca-profile-tabs a:hover,
.meca-profile-tabs a.is-active { border-bottom-color: #1769ff; background: #f3f7fd; color: #0d397b; }
.meca-profile-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 12px; border: 1px solid #ccd6e4; background: #fff; }
.meca-profile-kpis article { display: grid; gap: 4px; min-height: 91px; padding: 16px; border-right: 1px solid #d5deea; border-bottom: 3px solid #1769ff; }
.meca-profile-kpis article:last-child { border-right: 0; }
.meca-profile-kpis article.is-danger { border-bottom-color: #e52a35; }
.meca-profile-kpis article.is-warning { border-bottom-color: #ef8a0c; }
.meca-profile-kpis small { color: #5b7397; font-size: 9px; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.meca-profile-kpis strong { font-size: 24px; }
.meca-profile-kpis span { color: #69809f; font-size: 10px; }
.meca-profile-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(290px, 1fr); margin-top: 12px; border: 1px solid #ccd6e4; background: #fff; }
.meca-profile-layout > main { min-width: 0; border-right: 1px solid #ccd6e4; }
.meca-profile-section { padding: 18px; border-bottom: 1px solid #d6deea; }
.meca-profile-section > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.meca-profile-section h2 { margin: 0; font-size: 17px; }
.meca-profile-section header p { margin: 4px 0 0; color: #647b9c; font-size: 11px; }
.meca-profile-section header nav { display: flex; gap: 5px; }
.meca-profile-section header nav a { padding: 7px 9px; border: 1px solid #ccd6e4; border-radius: 4px; color: #335686; font-size: 10px; font-weight: 750; text-decoration: none; }
.meca-profile-section header nav a.is-active { border-color: #164799; background: #164799; color: #fff; }
.meca-profile-weeks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid #ccd6e4; }
.meca-profile-weeks article { display: grid; gap: 12px; padding: 14px; border-right: 1px solid #d6deea; }
.meca-profile-weeks article:last-child { border-right: 0; }
.meca-profile-weeks article > div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.meca-profile-weeks small { color: #5a7397; font-size: 10px; font-weight: 700; }
.meca-profile-weeks strong { font-size: 21px; }
.meca-profile-meter { position: relative; display: block; height: 10px; overflow: hidden; border-radius: 5px; background: #e3e9f1; }
.meca-profile-meter i { display: block; width: min(var(--profile-width), 100%); height: 100%; background: #1769ff; }
.meca-profile-meter b { position: absolute; inset: 0 0 0 auto; width: 2px; background: #0c2f69; }
.meca-profile-weeks article.is-danger .meca-profile-meter i { background: #e52a35; }
.meca-profile-weeks article p { display: grid; gap: 4px; margin: 0; color: #5b7397; font-size: 10px; }
.meca-profile-weeks article em { color: #22834a; font-size: 10px; font-style: normal; font-weight: 750; }
.meca-profile-weeks article.is-danger em { color: #d52d38; }
.meca-profile-overtime { display: block; margin-top: 5px; color: #d52d38; font-size: 10px; }
.meca-profile-filters { display: grid; grid-template-columns: minmax(220px, 1.4fr) minmax(170px, .7fr) auto; gap: 9px; margin-bottom: 12px; }
.meca-profile-filters input,
.meca-profile-filters select { min-height: 40px; padding: 9px 11px; border: 1px solid #c8d3e2; border-radius: 4px; background: #fff; color: #17345f; font: inherit; font-size: 11px; }
.meca-profile-tasklist { border: 1px solid #ccd6e4; }
.meca-profile-taskrow { position: relative; display: grid; grid-template-columns: minmax(240px, 2fr) minmax(95px, .7fr) minmax(100px, .7fr) minmax(150px, 1fr) auto; align-items: center; gap: 12px; min-height: 69px; padding: 10px 12px 10px 16px; border-bottom: 1px solid #d9e1eb; color: #17345f; }
.meca-profile-taskrow:last-child { border-bottom: 0; }
.meca-profile-taskrow::before { position: absolute; inset: 0 auto 0 0; width: 3px; background: #2ba058; content: ""; }
.meca-profile-taskrow[data-tone="warning"]::before { background: #ef8a0c; }
.meca-profile-taskrow[data-tone="danger"]::before { background: #e52a35; }
.meca-profile-taskrow strong,
.meca-profile-taskrow small { display: block; }
.meca-profile-taskrow small { margin-top: 3px; color: #647b9c; font-size: 10px; }
.meca-profile-task-title,
.meca-profile-task-action { color: inherit; text-decoration: none; }
.meca-profile-task-action,
.meca-profile-taskrow > form button { color: #0b4ddd; font: inherit; font-size: 11px; font-weight: 750; white-space: nowrap; }
.meca-profile-taskrow > form { margin: 0; }
.meca-profile-taskrow > form button { padding: 6px 0; border: 0; background: transparent; cursor: pointer; }
.meca-profile-task-title:hover strong,
.meca-profile-task-title:focus-visible strong,
.meca-profile-task-action:hover,
.meca-profile-task-action:focus-visible,
.meca-profile-taskrow > form button:hover,
.meca-profile-taskrow > form button:focus-visible { color: #0840b5; text-decoration: underline; }
.meca-profile-signals { display: flex; flex-wrap: wrap; gap: 5px; }
.meca-profile-signals i { padding: 4px 6px; border-radius: 4px; background: #edf1f6; color: #71829b; font-size: 9px; font-style: normal; font-weight: 750; }
.meca-profile-signals i[data-tone="message"] { background: #e7f0ff; color: #0b57c6; }
.meca-profile-signals i[data-tone="document"],
.meca-profile-signals i[data-tone="warning"] { background: #fff0df; color: #b65e00; }
.meca-profile-signals i[data-tone="danger"] { background: #fff0f0; color: #bd242b; }
.meca-profile-pagination { display: flex; justify-content: flex-end; gap: 12px; padding-top: 12px; color: #63799a; font-size: 10px; }
.meca-profile-pagination a { color: #0b4ddd; font-weight: 750; text-decoration: none; }
.meca-profile-diaries { border: 1px solid #ccd6e4; }
.meca-profile-diaries > a { position: relative; display: grid; grid-template-columns: minmax(230px, 1.7fr) minmax(95px, .65fr) minmax(130px, .8fr) minmax(90px, .65fr) auto; align-items: center; gap: 12px; min-height: 68px; padding: 10px 12px 10px 16px; border-bottom: 1px solid #d9e1eb; color: #17345f; text-decoration: none; }
.meca-profile-diaries > a:last-child { border-bottom: 0; }
.meca-profile-diaries > a::before { position: absolute; inset: 0 auto 0 0; width: 3px; background: #2ba058; content: ""; }
.meca-profile-diaries > a[data-tone="warning"]::before { background: #ef8a0c; }
.meca-profile-diaries > a[data-tone="danger"]::before { background: #e52a35; }
.meca-profile-diaries strong,
.meca-profile-diaries small { display: block; }
.meca-profile-diaries small { margin-top: 3px; color: #647b9c; font-size: 10px; }
.meca-profile-diaries > a > b { color: #0b4ddd; font-size: 11px; white-space: nowrap; }
.meca-profile-rail { min-width: 0; }
.meca-profile-rail > section { padding: 19px 17px; border-bottom: 1px solid #d6deea; }
.meca-profile-rail header { display: flex; gap: 10px; margin-bottom: 13px; }
.meca-profile-rail header > span { width: 4px; height: 34px; border-radius: 2px; background: #1769ff; }
.meca-profile-rail header > span.is-success { background: #22964a; }
.meca-profile-rail h2 { margin: 0; font-size: 16px; }
.meca-profile-rail header p,
.meca-profile-rail section > p { margin: 3px 0 0; color: #647b9c; font-size: 10px; line-height: 1.45; }
.meca-profile-rail section > a:not(.meca-ops-btn) { display: grid; gap: 4px; padding: 11px 2px; border-bottom: 1px solid #d9e1eb; color: #17345f; text-decoration: none; }
.meca-profile-rail section > a:not(.meca-ops-btn) small { color: #647b9c; }
.meca-profile-rail section > a:not(.meca-ops-btn) b { color: #0b4ddd; font-size: 10px; }
.meca-profile-rail section > form { margin: 0; border-bottom: 1px solid #d9e1eb; }
.meca-profile-rail section > form button { display: grid; width: 100%; gap: 4px; padding: 11px 2px; border: 0; background: transparent; color: #17345f; font: inherit; text-align: left; cursor: pointer; }
.meca-profile-rail section > form button small { color: #0b57c6; }
.meca-profile-rail section > form button b { color: #0b4ddd; font-size: 10px; }
.meca-profile-rail section > form button:hover,
.meca-profile-rail section > form button:focus-visible { background: #f3f7fd; }
.meca-profile-free { display: block; margin: 8px 0; color: #1e8848; font-size: 20px; }
.meca-profile-overtime-summary { display: block; margin: -2px 0 9px; color: #d52d38; font-size: 12px; }
.meca-profile-rail .meca-ops-btn { margin-top: 14px; }
.meca-profile-empty { color: #647b9c; font-size: 11px; }

@media (max-width: 1100px) {
  .meca-profile-kpis { grid-template-columns: repeat(3, 1fr); }
  .meca-profile-layout { grid-template-columns: 1fr; }
  .meca-profile-layout > main { border-right: 0; }
  .meca-profile-rail { border-top: 1px solid #ccd6e4; }
  .meca-profile-weeks { grid-template-columns: repeat(2, 1fr); }
  .meca-profile-weeks article:nth-child(2) { border-right: 0; }
}
@media (max-width: 720px) {
  .meca-profile-frame { width: calc(100% - 18px); }
  .meca-profile-head,
  .meca-profile-identity { align-items: flex-start; flex-direction: column; }
  .meca-profile-actions,
  .meca-profile-tabs { width: 100%; overflow-x: auto; }
  .meca-profile-kpis,
  .meca-profile-weeks { grid-template-columns: 1fr; }
  .meca-profile-weeks article { border-right: 0; border-bottom: 1px solid #d6deea; }
  .meca-profile-filters { grid-template-columns: 1fr; }
  .meca-profile-taskrow { grid-template-columns: 1fr 1fr; }
  .meca-profile-task-title { grid-column: 1 / -1; }
  .meca-profile-diaries > a { grid-template-columns: 1fr 1fr; }
  .meca-profile-diaries > a > span:first-child { grid-column: 1 / -1; }
}

/* Agenda da equipe: filtros operacionais e gerenciais */
.meca-execucao-v2 .meca-agenda-controls {
  display: grid;
  gap: 11px;
  padding: 12px;
  border: 1px solid var(--exec-border);
  border-radius: var(--exec-radius);
  background: var(--exec-surface);
  box-shadow: var(--exec-shadow);
}

.meca-execucao-v2 .meca-agenda-horizon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--exec-border);
}

.meca-execucao-v2 .meca-agenda-horizon__presets,
.meca-execucao-v2 .meca-agenda-quick-filters,
.meca-execucao-v2 .meca-agenda-filter-result > span,
.meca-execucao-v2 .meca-agenda-event-signals {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.meca-execucao-v2 .meca-agenda-horizon .meca-v2-btn {
  min-height: 32px;
  padding: 5px 11px;
}

.meca-execucao-v2 .meca-agenda-filter-form {
  display: grid;
  gap: 10px;
}

.meca-execucao-v2 .meca-agenda-filter-grid {
  display: grid;
  grid-template-columns:
    minmax(230px, 1.7fr)
    minmax(135px, .75fr)
    minmax(175px, 1fr)
    minmax(175px, 1fr)
    minmax(155px, .85fr)
    minmax(145px, .8fr)
    auto
    auto;
  align-items: end;
  gap: 9px;
}

.meca-execucao-v2 .meca-agenda-filter-grid > label,
.meca-execucao-v2 .meca-agenda-picker > summary {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.meca-execucao-v2 .meca-agenda-filter-grid > label > span,
.meca-execucao-v2 .meca-agenda-picker > summary > span {
  color: var(--exec-muted);
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .025em;
}

.meca-execucao-v2 .meca-agenda-filter-grid :where(input[type="search"], input[type="date"], select),
.meca-execucao-v2 .meca-agenda-picker > summary {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--exec-border);
  border-radius: var(--exec-radius-sm);
  background: var(--exec-surface);
  color: var(--exec-text);
  font: inherit;
  font-size: .77rem;
}

.meca-execucao-v2 .meca-agenda-filter-grid :where(input, select):focus-visible,
.meca-execucao-v2 .meca-agenda-picker > summary:focus-visible,
.meca-execucao-v2 .meca-agenda-advanced > summary:focus-visible,
.meca-execucao-v2 .meca-agenda-quick-filters a:focus-visible {
  border-color: var(--exec-info);
  outline: 3px solid rgba(29, 78, 216, .16);
  outline-offset: 1px;
}

.meca-execucao-v2 .meca-agenda-filter-grid > .meca-v2-btn {
  min-height: 38px;
  white-space: nowrap;
}

.meca-execucao-v2 .meca-agenda-picker {
  position: relative;
  min-width: 0;
}

.meca-execucao-v2 .meca-agenda-picker > summary {
  position: relative;
  padding-right: 30px;
  cursor: pointer;
  list-style: none;
}

.meca-execucao-v2 .meca-agenda-picker > summary::-webkit-details-marker,
.meca-execucao-v2 .meca-agenda-advanced > summary::-webkit-details-marker {
  display: none;
}

.meca-execucao-v2 .meca-agenda-picker > summary::after {
  position: absolute;
  top: 50%;
  right: 10px;
  color: var(--exec-muted);
  font-size: .72rem;
  content: "▾";
  transform: translateY(-50%);
}

.meca-execucao-v2 .meca-agenda-picker[open] > summary {
  border-color: var(--exec-info);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, .12);
}

.meca-execucao-v2 .meca-agenda-picker > summary strong {
  overflow: hidden;
  font-size: .75rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meca-execucao-v2 .meca-agenda-picker__panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  width: max(100%, 290px);
  max-width: min(370px, 80vw);
  overflow: hidden;
  border: 1px solid var(--exec-border);
  border-radius: var(--exec-radius-sm);
  background: var(--exec-surface);
  box-shadow: var(--exec-shadow-raised);
}

.meca-execucao-v2 .meca-agenda-picker__search {
  display: block;
  padding: 9px;
  border-bottom: 1px solid var(--exec-border);
  background: var(--exec-surface-subtle);
}

.meca-execucao-v2 .meca-agenda-picker__search input {
  min-height: 34px;
}

.meca-execucao-v2 .meca-agenda-picker__options {
  display: grid;
  max-height: 255px;
  overflow: auto;
  overscroll-behavior: contain;
}

.meca-execucao-v2 .meca-agenda-picker__options > label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 9px 11px;
  border-bottom: 1px solid var(--exec-border);
  cursor: pointer;
}

.meca-execucao-v2 .meca-agenda-picker__options > label:last-child {
  border-bottom: 0;
}

.meca-execucao-v2 .meca-agenda-picker__options > label:hover {
  background: var(--exec-surface-subtle);
}

.meca-execucao-v2 .meca-agenda-picker__options input {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  accent-color: var(--exec-primary);
}

.meca-execucao-v2 .meca-agenda-picker__options span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.meca-execucao-v2 .meca-agenda-picker__options strong,
.meca-execucao-v2 .meca-agenda-picker__options small {
  overflow-wrap: anywhere;
}

.meca-execucao-v2 .meca-agenda-picker__options strong {
  font-size: .75rem;
}

.meca-execucao-v2 .meca-agenda-picker__options small {
  color: var(--exec-muted);
  font-size: .65rem;
}

.meca-execucao-v2 .meca-agenda-advanced {
  border-top: 1px solid var(--exec-border);
}

.meca-execucao-v2 .meca-agenda-advanced > summary {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 6px;
  padding: 9px 2px 0;
  color: var(--exec-primary);
  font-size: .73rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.meca-execucao-v2 .meca-agenda-advanced > summary::before {
  content: "＋";
}

.meca-execucao-v2 .meca-agenda-advanced[open] > summary::before {
  content: "−";
}

.meca-execucao-v2 .meca-agenda-advanced > summary span {
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--exec-info-soft);
  color: var(--exec-info);
  font-size: .61rem;
  text-transform: uppercase;
}

.meca-execucao-v2 .meca-agenda-advanced__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(135px, 1fr));
  gap: 9px;
  padding-top: 10px;
}

.meca-execucao-v2 .meca-agenda-advanced fieldset {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--exec-border);
  border-radius: var(--exec-radius-sm);
}

.meca-execucao-v2 .meca-agenda-advanced legend {
  padding: 0 4px;
  color: var(--exec-primary);
  font-size: .68rem;
  font-weight: 800;
}

.meca-execucao-v2 .meca-agenda-advanced fieldset label {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: var(--exec-text);
  font-size: .69rem;
  line-height: 1.35;
}

.meca-execucao-v2 .meca-agenda-advanced fieldset input {
  flex: 0 0 auto;
  margin-top: 2px;
  accent-color: var(--exec-primary);
}

.meca-execucao-v2 .meca-agenda-advanced fieldset small {
  color: var(--exec-muted);
}

.meca-execucao-v2 .meca-agenda-quick-filters {
  padding-top: 1px;
}

.meca-execucao-v2 .meca-agenda-quick-filters a {
  display: inline-flex;
  min-height: 29px;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid var(--exec-border);
  border-radius: 999px;
  background: var(--exec-surface-subtle);
  color: var(--exec-muted);
  font-size: .66rem;
  font-weight: 720;
  text-decoration: none;
}

.meca-execucao-v2 .meca-agenda-quick-filters a strong {
  min-width: 18px;
  padding: 2px 5px;
  border-radius: 999px;
  background: var(--exec-surface);
  color: var(--exec-text);
  font-size: .62rem;
  text-align: center;
}

.meca-execucao-v2 .meca-agenda-quick-filters a:hover,
.meca-execucao-v2 .meca-agenda-quick-filters a.is-active {
  border-color: var(--exec-primary);
  background: var(--exec-primary-soft);
  color: var(--exec-primary);
}

.meca-execucao-v2 .meca-agenda-quick-filters a[data-tone="danger"]:not(.is-active) {
  border-color: color-mix(in srgb, var(--exec-danger) 28%, var(--exec-border));
  color: var(--exec-danger);
}

.meca-execucao-v2 .meca-agenda-quick-filters a[data-tone="warning"]:not(.is-active) {
  border-color: color-mix(in srgb, var(--exec-accent) 34%, var(--exec-border));
  color: var(--exec-warning);
}

.meca-execucao-v2 .meca-agenda-filter-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--exec-border);
  color: var(--exec-muted);
  font-size: .68rem;
}

.meca-execucao-v2 .meca-agenda-filter-result > strong {
  color: var(--exec-text);
}

.meca-execucao-v2 .meca-agenda-filter-result i {
  padding: 3px 6px;
  border-radius: 4px;
  background: var(--exec-info-soft);
  color: var(--exec-info);
  font-size: .63rem;
  font-style: normal;
  font-weight: 700;
}

.meca-execucao-v2 .meca-agenda-event-signals {
  margin-top: 5px;
}

.meca-execucao-v2 .meca-agenda-event-signals i {
  padding: 3px 5px;
  border-radius: 4px;
  background: var(--exec-info-soft);
  color: var(--exec-info);
  font-size: .58rem;
  font-style: normal;
  font-weight: 780;
}

.meca-execucao-v2 .meca-agenda-event-signals i[data-tone="danger"] {
  background: var(--exec-danger-soft);
  color: var(--exec-danger);
}

.meca-execucao-v2 .meca-agenda-event-signals i[data-tone="warning"] {
  background: var(--exec-warning-soft);
  color: var(--exec-warning);
}

@media (max-width: 1320px) {
  .meca-execucao-v2 .meca-agenda-filter-grid {
    grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(155px, 1fr));
  }
}

@media (max-width: 900px) {
  .meca-execucao-v2 .meca-agenda-horizon,
  .meca-execucao-v2 .meca-agenda-filter-result {
    align-items: flex-start;
    flex-direction: column;
  }

  .meca-execucao-v2 .meca-agenda-filter-grid,
  .meca-execucao-v2 .meca-agenda-advanced__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .meca-execucao-v2 .meca-agenda-controls {
    padding: 10px;
  }

  .meca-execucao-v2 .meca-agenda-filter-grid,
  .meca-execucao-v2 .meca-agenda-advanced__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .meca-execucao-v2 .meca-agenda-filter-grid > .meca-v2-btn {
    width: 100%;
  }

  .meca-execucao-v2 .meca-agenda-picker__panel {
    position: static;
    width: 100%;
    max-width: none;
    margin-top: 6px;
  }

  .meca-execucao-v2 .meca-agenda-horizon__presets {
    width: 100%;
  }

  .meca-execucao-v2 .meca-agenda-horizon__presets .meca-v2-btn {
    flex: 1 1 auto;
  }
}

@media print {
  .meca-execucao-v2 .meca-agenda-controls {
    display: none;
  }
}

/* Shell unificado: Operações usa o mesmo rail lateral dos demais módulos. */
.meca-body--operacoes .meca-side {
  display: flex !important;
}

.meca-body--operacoes .meca-main {
  width: auto;
  margin-left: var(--meca-rail-w);
}

html.meca-side-open .meca-body--operacoes .meca-main {
  width: auto;
  margin-left: var(--meca-side-w);
}

.meca-body--operacoes .meca-topbar {
  min-height: var(--meca-topbar-h);
  height: var(--meca-topbar-h);
  gap: var(--meca-space-2);
  padding: 0 var(--meca-space-4);
  overflow: visible;
  border-bottom: 1px solid var(--meca-border-on-dark);
  background: var(--meca-side-bg);
  box-shadow: none;
}

.meca-body--operacoes .meca-topbar__inner {
  width: auto;
  min-width: 0;
  height: auto;
  max-width: none;
  flex: 1 1 auto;
  gap: var(--meca-space-2);
  overflow: visible;
}

.meca-body--operacoes .meca-topbar__title {
  display: inline;
  color: var(--meca-on-primary);
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}

.meca-body--operacoes .meca-topbar__actions {
  gap: var(--meca-space-2);
}

.meca-body--operacoes .meca-topbar__profile {
  min-height: 38px;
}

.meca-body--operacoes .meca-topbar__profile > b {
  width: 32px;
  height: 32px;
  background: var(--meca-accent);
  color: var(--meca-accent-ink);
  font-size: 11px;
}

@media (max-width: 900px) {
  .meca-body--operacoes .meca-side {
    display: flex !important;
  }

  .meca-body--operacoes .meca-main,
  html.meca-side-open .meca-body--operacoes .meca-main {
    width: 100%;
    margin-left: 0;
  }

  .meca-body--operacoes .meca-topbar {
    min-height: var(--meca-topbar-h);
    height: var(--meca-topbar-h);
    padding: var(--meca-space-2) var(--meca-space-3);
    overflow: visible;
  }

  .meca-body--operacoes .meca-topbar__inner {
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
    overflow: visible;
  }

  .meca-body--operacoes .meca-nav-toggle:checked ~ .meca-scrim {
    display: block !important;
  }
}

@media (max-width: 640px) {
  .meca-body--operacoes .meca-topbar__profile > span,
  .meca-body--operacoes .meca-topbar__profile > svg,
  .meca-body--operacoes .meca-topbar__title {
    display: none;
  }
}
