:root {
  --blue-900: #06213f;
  --blue-800: #0a2d54;
  --blue-700: #0b4d9e;
  --blue-600: #1361c4;
  --blue-500: #2f7fe0;
  --blue-100: #e8f2fe;
  --blue-50: #f4f9ff;
  --white: #ffffff;
  --gray-100: #f5f7fa;
  --gray-200: #eaeef3;
  --gray-300: #d9e1ea;
  --gray-500: #8494a6;
  --gray-700: #4a5a6b;
  --text: #16283c;
  --danger: #e5484d;
  --danger-dark: #c53a3e;
  --success: #1f9d55;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(10, 45, 84, 0.08);

  --dark-bg: #05070d;
  --dark-card: #10131f;
  --dark-card-2: #161a2b;
  --dark-border: #232840;
  --dark-text: #eef2fb;
  --dark-text-dim: #c3cbdd;
  --accent-blue: #3f8cff;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--gray-100);
  color: var(--text);
}

a { color: var(--blue-700); text-decoration: none; }
a:hover { text-decoration: underline; }

button { font-family: inherit; cursor: pointer; }

/* ===== App shell (menu no topo, estilo referencia) ===== */
.gc-shell { display: flex; flex-direction: column; min-height: 100vh; }

.gc-header {
  background: var(--blue-700);
  color: var(--white);
}
.gc-header-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 24px;
  height: 60px;
}
.gc-header-logo { display: flex; align-items: center; }
.gc-header-logo-img { height: 24px; width: auto; display: block; }

.gc-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  font-size: 20px;
  color: var(--white);
  cursor: pointer;
  border-radius: 6px;
  width: 36px;
  height: 36px;
  margin-left: auto;
}
.gc-nav-toggle:hover { background: rgba(255,255,255,0.12); }

.gc-header-user { margin-left: auto; position: relative; }
.gc-header-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  padding: 5px 12px 5px 5px;
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
}
.gc-header-user-btn:hover { background: rgba(255,255,255,0.18); }
.gc-header-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--white);
  color: var(--blue-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
}
.gc-header-username { white-space: nowrap; }
.gc-caret-down { font-size: 9px; opacity: 0.75; }

.gc-nav {
  background: var(--white);
  border-bottom: 1px solid var(--gray-300);
  position: sticky;
  top: 0;
  z-index: 15;
}
.gc-nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  padding: 0 24px;
  gap: 4px;
}
.gc-nav-categories {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: nowrap;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}
.gc-nav-categories::-webkit-scrollbar { height: 4px; }
.gc-nav-categories::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 4px; }
.gc-nav-cat { position: relative; display: flex; flex-shrink: 0; }
.gc-nav-cat-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 700;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  padding: 0 12px;
  height: 52px;
  white-space: nowrap;
}
.gc-nav-cat-btn:hover { color: var(--blue-700); }
.gc-nav-cat.open .gc-nav-cat-btn { color: var(--blue-700); border-bottom-color: var(--blue-600); }
.gc-nav-cat.open .gc-caret-down { transform: rotate(180deg); }

/* Links diretos no menu do topo, sem dropdown (ex: area de Chamados) */
.gc-nav-flat-link {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 700;
  padding: 0 12px;
  height: 52px;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.gc-nav-flat-link:hover { color: var(--blue-700); text-decoration: none; }
.gc-nav-flat-link.active { color: var(--blue-700); border-bottom-color: var(--blue-600); }

.gc-nav-region { margin-left: auto; flex-shrink: 0; position: relative; display: flex; align-items: center; }
.gc-nav-region-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-900);
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 700;
}
.gc-nav-region-btn:hover { background: var(--blue-800); }

/* Dropdowns genericos (categorias, usuario, regiao) */
.gc-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  box-shadow: 0 12px 32px -8px rgba(10,45,84,0.25);
  padding: 8px;
  z-index: 30;
  flex-direction: column;
  gap: 2px;
}
.gc-dropdown.open { display: flex; }
.gc-dropdown-right { left: auto; right: 0; }

.gc-dropdown-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  padding: 9px 10px;
  border-radius: 8px;
}
.gc-dropdown-link:hover { background: var(--gray-100); text-decoration: none; }
.gc-dropdown-link.active { background: var(--blue-100); color: var(--blue-700); font-weight: 700; }

.gc-dropdown-empty {
  color: var(--gray-500);
  font-style: italic;
  padding: 9px 10px;
  font-size: 12.5px;
}

.gc-dropdown-header { padding: 8px 10px 10px 10px; border-bottom: 1px solid var(--gray-200); margin-bottom: 4px; }
.gc-dropdown-header-name { font-size: 14px; font-weight: 700; color: var(--blue-900); }
.gc-dropdown-header-sector { font-size: 11px; font-weight: 600; color: var(--blue-600); margin-top: 2px; }
.gc-dropdown-divider { height: 1px; background: var(--gray-200); margin: 6px 2px; }
.gc-dropdown-exit:hover { color: var(--danger-dark); }

.nav-tab-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--white);
  flex-shrink: 0;
}

.badge-new {
  background: var(--success);
  color: var(--white);
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 10px;
  letter-spacing: 0.03em;
}

.ambiente-toggle-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--gray-500);
  letter-spacing: 0.05em;
  padding: 0 2px;
}

.ambiente-toggle {
  display: flex;
  gap: 6px;
  padding: 6px 2px 2px 2px;
}

.ambiente-btn {
  flex: 1;
  text-align: center;
  padding: 6px 4px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  color: var(--gray-700);
}
.ambiente-btn:hover { text-decoration: none; border-color: var(--blue-500); }
.ambiente-btn.active { background: var(--blue-900); color: var(--white); border-color: var(--blue-900); }

.footer-icon { font-size: 14px; width: 18px; text-align: center; }

.gc-page-title {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  font-size: 15px;
  font-weight: 700;
  color: var(--blue-900);
  padding: 12px 24px;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

.content { padding: 28px; flex: 1; max-width: 1440px; margin: 0 auto; width: 100%; }

.page-heading { font-size: 22px; color: var(--blue-900); margin: 0 0 20px 0; }

/* ===== Maquinas (Programacao) ===== */
.page-banner {
  max-width: 1128px;
  margin: 0 auto 22px auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.page-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.page-banner-shine { position: relative; }
.page-banner-shine::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 35%;
  height: 100%;
  background: linear-gradient(75deg,
    transparent 0%,
    rgba(255,255,255,0.10) 40%,
    rgba(255,255,255,0.45) 50%,
    rgba(255,255,255,0.10) 60%,
    transparent 100%);
  pointer-events: none;
  animation: bannerShine 6s ease-in-out infinite;
}
@keyframes bannerShine {
  0%   { left: -60%; }
  30%  { left: 130%; }
  100% { left: 130%; }
}

.page-banner-maquina img {
  height: 170px;
  object-fit: cover;
  object-position: center 30%;
}

.machines-header {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 20px;
}
.machines-header .page-heading { margin: 0; }
.machines-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-600);
  background: var(--blue-100);
  padding: 4px 12px;
  border-radius: 20px;
}

.factory-corridor-row {
  grid-column: 1 / -1;
  position: relative;
  height: 22px;
  margin: -4px 0;
}
.factory-robot {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 20px;
  line-height: 1;
  white-space: nowrap;
  will-change: left, transform;
}

.factory-robot.cart-mode { width: 20px; height: 20px; }
.cart-body { position: relative; display: block; font-size: 20px; }
.cart-rider {
  position: absolute;
  top: -9px;
  left: 3px;
  font-size: 11px;
}
.cart-load {
  position: absolute;
  top: -3px;
  left: 8px;
  font-size: 10px;
}

.machine-card-glow {
  animation: machineCardGlow 1.1s ease-in-out infinite;
  z-index: 2;
}
@keyframes machineCardGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(47,127,224,0), var(--shadow); }
  50% { box-shadow: 0 0 22px 6px rgba(47,127,224,0.6), var(--shadow); }
}

.machines-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 14px;
}
.machine-card-spacer { visibility: hidden; }
@media (max-width: 900px) {
  .machines-grid { grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); }
  .machine-card-spacer { display: none; }
}

.machine-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(180deg, var(--white) 0%, var(--gray-100) 100%);
  border: 1px solid var(--gray-300);
  border-top: 3px solid var(--blue-500);
  border-radius: 10px;
  padding: 14px 8px 12px 8px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.machine-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-blue);
  border-top-color: var(--accent-blue);
  box-shadow: 0 8px 20px rgba(47,127,224,0.22);
}

.machine-status-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gray-300);
}

.machine-card-manutencao,
.machine-card-inoperante {
  background: linear-gradient(180deg, #fff5f5 0%, #ffe3e3 100%);
  border-color: #f3b9b9;
  border-top-color: var(--danger);
}
.machine-card-manutencao:hover,
.machine-card-inoperante:hover {
  border-color: var(--danger);
  border-top-color: var(--danger);
  box-shadow: 0 8px 20px rgba(229,72,77,0.22);
}
.machine-card-manutencao .machine-status-dot,
.machine-card-inoperante .machine-status-dot { background: var(--danger); }

.machine-card-sem-programacao {
  background: linear-gradient(180deg, #fffbeb 0%, #fff3c4 100%);
  border-color: #f0d38a;
  border-top-color: #b8860b;
}
.machine-card-sem-programacao:hover {
  border-color: #b8860b;
  border-top-color: #b8860b;
  box-shadow: 0 8px 20px rgba(184,134,11,0.22);
}
.machine-card-sem-programacao .machine-status-dot { background: #b8860b; }

.machine-status-ribbon {
  display: inline-block;
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 1.5px 6px;
  border-radius: 6px;
  margin-bottom: 4px;
  white-space: nowrap;
}
.machine-status-ribbon-red { background: var(--danger); color: var(--white); }
.machine-status-ribbon-yellow { background: #b8860b; color: var(--white); }

.machine-ind-row { display: flex; justify-content: center; align-items: center; height: 18px; margin-bottom: 3px; }
.machine-ind { height: 16px; width: 24px; object-fit: contain; border-radius: 2px; }
.machine-ind-logo { height: 17px; width: auto; max-width: 56px; border-radius: 0; }
.machine-ind-exp { font-size: 9px; font-weight: 800; letter-spacing: 0.08em; color: #64748b; background: #e8eef6; border-radius: 4px; padding: 1px 6px; }
.machine-est {
  margin-top: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.machine-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 4px;
  transition: transform 0.12s ease;
}
.machine-card:hover .machine-icon { transform: scale(1.06); }

.machine-label {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gray-500);
  text-transform: uppercase;
  margin-bottom: 1px;
}

.machine-number {
  display: block;
  font-size: 22px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--blue-800, var(--blue-700));
}

.machines-empty { color: var(--gray-500); font-size: 14px; }

.machine-backlink {
  display: inline-block;
  color: var(--blue-600);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 14px;
}
.machine-backlink:hover { color: var(--blue-800, var(--blue-700)); }

.section-subtitle { font-size: 14px; color: var(--blue-900); margin: 0 0 14px 0; }

.machine-detail-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 18px;
  align-items: start;
  margin-bottom: 28px;
}
@media (max-width: 900px) {
  .machine-detail-grid { grid-template-columns: 1fr; }
}

.badge-ok, .badge-off, .badge-info, .badge-neutral, .badge-danger, .badge-warn {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  white-space: nowrap;
}
.badge-ok { background: #d7f4e0; color: var(--success); }
.badge-off { background: #fde3e3; color: var(--danger); }
.badge-danger { background: var(--danger); color: var(--white); }
.badge-warn { background: #b8860b; color: var(--white); }
.badge-info { background: var(--blue-100); color: var(--blue-700); }
.badge-neutral { background: var(--gray-200); color: var(--gray-700); }

.programar-form { display: flex; flex-direction: column; gap: 12px; }
.programar-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-700);
}
.programar-input { width: 100%; padding: 9px 10px; font-size: 13.5px; }
.programar-submit { margin-top: 4px; align-self: flex-start; }

.machine-hint { margin-top: 12px; font-size: 12px; color: var(--gray-500); }

.programacoes-title { margin-top: 4px; }

.programacoes-list { display: flex; flex-direction: column; gap: 8px; }

.programacao-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--success);
  border-radius: 8px;
  padding: 10px 14px;
}
.programacao-card.programacao-rejeitada { border-left-color: var(--danger); }

.programacao-info { display: flex; flex-direction: column; gap: 2px; }
.programacao-info strong { font-size: 13.5px; color: var(--blue-900); }
.programacao-info span { font-size: 12px; color: var(--gray-500); }

/* ===== Toolbar de producao por maquina ===== */
.prod-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}
.prod-toolbar-title { display: flex; align-items: center; gap: 12px; }
.prod-toolbar-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--blue-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.prod-toolbar-heading { margin: 0; font-size: 18px; }
.prod-toolbar-meta { font-size: 12px; color: var(--gray-500); display: flex; gap: 6px; margin-top: 2px; }

.prod-toolbar-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.prod-btn {
  border: 1px solid var(--gray-300);
  background: var(--white);
  color: var(--gray-700);
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.prod-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.prod-btn:not(:disabled):hover { border-color: var(--accent-blue); color: var(--blue-700); }
.prod-btn-warn { color: #b8860b; border-color: #f0d38a; background: #fff8e8; }
.prod-btn-accent { color: var(--blue-700); border-color: var(--blue-300, var(--accent-blue)); background: var(--blue-100); }
.prod-btn-primary { background: var(--blue-700); color: var(--white); border-color: var(--blue-700); }
.prod-btn-primary:hover { filter: brightness(1.08); }

.prod-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.prod-search {
  flex: 1;
  min-width: 220px;
  padding: 9px 12px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-size: 13px;
}
.prod-filters .status-select { color: var(--gray-500); font-weight: 500; }
.prod-filters select:disabled, .prod-search:disabled { background: var(--gray-100); cursor: not-allowed; }

.prod-table-produto { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pedidos-paginacao {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px 4px 4px;
  font-size: 12.5px;
  color: var(--gray-500);
}
.pedidos-paginacao-botoes { display: flex; gap: 8px; }

.machine-summary-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--blue-600);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 18px;
}
.machine-summary-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.machine-summary-icon { font-size: 16px; }
.machine-summary-head strong { color: var(--blue-900); font-size: 15px; }
.machine-summary-count { font-size: 12px; color: var(--gray-500); }
.machine-summary-verificar { margin-left: auto; }
.machine-summary-updated { font-size: 12px; color: var(--gray-500); margin-top: 8px; }

.machine-summary-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--gray-500);
}
.machine-stat strong { color: var(--gray-700); font-weight: 700; }

.prod-table-empty { text-align: center; color: var(--gray-500); padding: 22px !important; font-size: 13px; }

.programar-header { display: flex; align-items: center; justify-content: space-between; }

.prod-comments { margin-top: 18px; }

/* ===== Modal ===== */
.modal-backdrop[hidden] { display: none; }
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}
.modal-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  max-width: 640px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.modal-close {
  border: none;
  background: none;
  font-size: 22px;
  line-height: 1;
  color: var(--gray-500);
  cursor: pointer;
  padding: 2px 6px;
}
.modal-close:hover { color: var(--gray-700); }

.rejeicao-card {
  background: #fdecec;
  border: 1px solid #f3b9b9;
  color: #9c2a2a;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  margin: -2px 0 6px 0;
}

/* ===== Category grid (dashboard) ===== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.category-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  border-top: 4px solid var(--blue-600);
}

.category-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.category-card-header .cat-emoji { font-size: 20px; }
.category-card-header h3 { margin: 0; font-size: 15px; color: var(--blue-900); }

.category-card-tabs { display: flex; flex-wrap: wrap; gap: 8px; }

.tab-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-100);
  color: var(--blue-700);
  padding: 6px 12px 6px 6px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}
.tab-pill:hover { background: var(--blue-600); color: var(--white); text-decoration: none; }
.tab-pill:hover .tab-pill-icon { filter: brightness(1.3); }
.tab-pill-icon {
  width: 20px; height: 20px; border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: var(--white); flex-shrink: 0;
}
.tab-pill-empty { background: var(--gray-100); color: var(--gray-500); font-style: italic; font-weight: 400; }

/* ===== Guest / gateway dark theme ===== */
.standalone-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--dark-bg); }
.standalone-page > .flash-container { max-width: 400px; margin: 16px auto 0 auto; width: 100%; padding: 0 16px; }

.gateway-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 1.5px) 0 0/22px 22px,
    radial-gradient(ellipse at 30% 20%, rgba(63,140,255,0.18), transparent 60%),
    var(--dark-bg);
}

.gateway-card {
  background: linear-gradient(180deg, var(--dark-card), var(--dark-card-2));
  border: 1px solid var(--dark-border);
  border-radius: 20px;
  padding: 34px 32px 26px 32px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}
.gateway-card-narrow { max-width: 370px; }

.gateway-logo { text-align: center; margin-bottom: 22px; }

/* logo Conexão (imagem), estática */
.wordmark-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px auto;
}

.wordmark-logo {
  width: 190px;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 14px rgba(63,140,255,0.45));
}
.wordmark-logo-sm { width: 150px; }

.gateway-logo h1 {
  font-size: 20px;
  letter-spacing: 0.08em;
  color: var(--dark-text);
  margin: 0;
  font-weight: 800;
}

.gateway-subtitle {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: #a9d2ff;
  font-weight: 700;
  margin: 8px 0 0 0;
  line-height: 1.7;
  text-shadow: 0 1px 3px rgba(0,0,0,0.95), 0 0 10px rgba(0,0,0,0.8);
}

.gateway-section-label {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--dark-text-dim);
  font-weight: 700;
  margin: 0 0 16px 0;
}

.gateway-option {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--dark-border);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}
.gateway-option:hover {
  text-decoration: none;
  transform: translateY(-2px);
  border-color: var(--accent-blue);
  background: rgba(63,140,255,0.08);
}

.gateway-option-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  font-style: italic;
  color: var(--white);
  flex-shrink: 0;
}
.gateway-option-blue .gateway-option-icon { background: linear-gradient(135deg, #2a3a63, #3f8cff); }
.gateway-option-teal .gateway-option-icon { background: linear-gradient(135deg, #17463f, #1f9d8f); }

.gateway-option-icon-img { padding: 7px; perspective: 300px; }
.gateway-option-icon-img img { width: 100%; height: 100%; object-fit: contain; }

.claude-spin-3d {
  animation: claude-spin-3d 3.5s linear infinite;
}
@keyframes claude-spin-3d {
  from { transform: rotateY(0deg); }
  to   { transform: rotateY(360deg); }
}

.factory-smoke {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: factory-smoke-puff 2.6s ease-in infinite;
}
.factory-smoke:nth-of-type(1) { animation-delay: 0s; }
.factory-smoke:nth-of-type(2) { animation-delay: 0.7s; }
.factory-smoke:nth-of-type(3) { animation-delay: 1.4s; }
@keyframes factory-smoke-puff {
  0%   { transform: translateY(0) scale(0.7); opacity: 0; }
  25%  { opacity: 0.65; }
  100% { transform: translateY(-7px) scale(1.4); opacity: 0; }
}

.gateway-option-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; text-align: left; }
.gateway-option-text strong { color: var(--dark-text); font-size: 13px; letter-spacing: 0.03em; }
.gateway-option-text span { color: var(--dark-text-dim); font-size: 11px; text-align: left; overflow-wrap: break-word; max-width: 100%; }

.gateway-countries { display: flex; gap: 12px; margin-bottom: 18px; }
.gateway-country {
  flex: 1;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--dark-border);
  border-radius: 14px;
  padding: 22px 10px;
  text-align: center;
  color: var(--dark-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.gateway-country:hover { text-decoration: none; border-color: var(--accent-blue); background: rgba(63,140,255,0.08); }
.flag-icon { position: relative; display: inline-flex; border-radius: 4px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,0.18); }
.flag-icon svg, .flag-icon img { display: block; object-fit: cover; }
.flag-icon-sm { border-radius: 2px; }

/* efeito "laminado" passando nas bandeiras, em loop infinito */
.flag-icon::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,0.8) 50%, transparent 100%);
  transform: skewX(-20deg);
  animation: flag-shine 2.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes flag-shine {
  0%   { left: -60%; }
  55%  { left: 130%; }
  100% { left: 130%; }
}
.gateway-country strong { font-size: 12px; letter-spacing: 0.04em; }

.gateway-back {
  display: block;
  text-align: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--dark-border);
  color: var(--dark-text-dim);
  padding: 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.gateway-back:hover { text-decoration: none; color: var(--dark-text); border-color: var(--accent-blue); }
.gateway-back-sm { margin-top: 16px; padding: 9px; font-size: 11.5px; }


.ambiente-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--dark-border);
  color: var(--dark-text-dim);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  border-radius: 20px;
  margin: 0 auto 18px auto;
  width: fit-content;
}

.gateway-card h2 { text-align: center; font-size: 19px; color: var(--dark-text); margin: 0 0 20px 0; }

.gateway-card form { display: flex; flex-direction: column; gap: 4px; }
.gateway-card label { font-size: 12px; font-weight: 700; color: var(--dark-text-dim); margin-top: 10px; }
.gateway-card input, .gateway-card select {
  padding: 11px 12px;
  border: 1px solid var(--dark-border);
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  background: rgba(255,255,255,0.03);
  color: var(--dark-text);
}
.gateway-card input:focus, .gateway-card select:focus { border-color: var(--accent-blue); box-shadow: 0 0 0 3px rgba(63,140,255,0.15); }
.gateway-card select option { background: var(--dark-card); color: var(--dark-text); }

.auth-switch { text-align: center; font-size: 13px; margin-top: 18px; color: var(--dark-text-dim); }
.auth-switch a { color: var(--accent-blue); }

/* ===== Buttons ===== */
.btn-primary {
  background: var(--blue-700);
  color: var(--white);
  border: none;
  padding: 11px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
}
.btn-primary:hover { background: var(--blue-600); text-decoration: none; }
.btn-block { width: 100%; margin-top: 16px; }

.gateway-card .btn-primary { background: linear-gradient(135deg, var(--blue-700), var(--accent-blue)); }

.btn-small { padding: 7px 12px; font-size: 12.5px; border-radius: 6px; }

.btn-danger { background: var(--danger); color: var(--white); border: none; font-weight: 700; }
.btn-danger:hover { background: var(--danger-dark); }
.btn-danger:disabled { background: var(--gray-300); cursor: not-allowed; }

/* ===== Tables / admin ===== */
.table-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 20px;
}

.table-scroll { overflow-x: auto; }

.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.data-table th {
  text-align: left;
  color: var(--gray-700);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 10px 12px;
  border-bottom: 2px solid var(--gray-200);
  white-space: nowrap;
}
.data-table td { padding: 12px; border-bottom: 1px solid var(--gray-200); vertical-align: top; }
.data-table tr:last-child td { border-bottom: none; }

.checkbox-cell { text-align: center; }

.inline-config-form { display: flex; flex-direction: column; gap: 8px; min-width: 260px; }

.status-select { padding: 6px 8px; border-radius: 6px; border: 1px solid var(--gray-300); font-weight: 700; font-size: 12.5px; width: fit-content; }
.status-select.status-ativo { color: var(--success); }
.status-select.status-pendente { color: #b8860b; }
.status-select.status-bloqueado { color: var(--danger); }

.sectors-cell { display: flex; flex-wrap: wrap; gap: 6px; }

.badge-reset-solicitado {
  display: inline-block;
  width: fit-content;
  background: #fff3cd;
  border: 1px solid #e8b93b;
  color: #8a6300;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 12px;
}

.pill-input-small {
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid var(--gray-300);
  font-size: 12.5px;
  width: fit-content;
}

.checkbox-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  padding: 4px 9px;
  border-radius: 14px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--gray-700);
}
.checkbox-pill input { margin: 0; }
.checkbox-admin { background: var(--blue-100); border-color: var(--blue-500); color: var(--blue-700); }

.inline-add-form { display: flex; gap: 10px; margin-bottom: 18px; }
.inline-add-form input { flex: 1; padding: 10px 12px; border: 1px solid var(--gray-300); border-radius: 8px; font-size: 14px; }

.permissions-cat-title { color: var(--blue-900); font-size: 15px; margin: 0 0 12px 0; }

/* ===== Trocar senha ===== */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  max-width: 420px;
}
.form-card label { display: block; font-size: 12.5px; font-weight: 700; color: var(--gray-700); margin: 14px 0 6px 0; }
.form-card input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-size: 14px;
}
.form-card input:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--blue-100); }

/* ===== Flash messages ===== */
.flash-container { margin-bottom: 18px; display: flex; flex-direction: column; gap: 8px; }
.flash { padding: 12px 16px; border-radius: 8px; font-size: 14px; font-weight: 600; }
.flash-success { background: #e6f7ec; color: var(--success); border: 1px solid #b9e8c9; }
.flash-aviso_desenho { background: #dc2626; color: #fff; border: 2px solid #991b1b; font-weight: 800; animation: avisoDesenhoPisca 1.1s infinite; }
@keyframes avisoDesenhoPisca { 0%,100% { opacity: 1; } 50% { opacity: .5; } }
.flash-error { background: #fdecec; color: var(--danger-dark); border: 1px solid #f6c4c4; }

.standalone-page .flash-success { background: rgba(31,157,85,0.12); color: #4ade80; border: 1px solid rgba(74,222,128,0.3); }
.standalone-page .flash-error { background: rgba(229,72,77,0.12); color: #f87171; border: 1px solid rgba(248,113,113,0.3); }

.standalone-error { max-width: 380px; margin: 20px auto 0 auto; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 50px 30px; text-align: center; color: var(--gray-700); }

/* ===== Placeholder / error pages ===== */
.placeholder-page {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 60px 30px;
  text-align: center;
  color: var(--gray-700);
}
.placeholder-icon { font-size: 46px; margin-bottom: 16px; }
.placeholder-page h2 { color: var(--blue-900); margin: 0 0 10px 0; }

/* ===== Chamados home ===== */
.chamados-hero {
  background: linear-gradient(120deg, #e9fbf3, #eaf3ff);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 22px;
}
.chamados-hero h1 { margin: 0; font-size: 21px; color: var(--blue-900); }
.chamados-hero p { margin: 4px 0 0 0; font-size: 12px; letter-spacing: 0.06em; color: var(--gray-700); font-weight: 700; }

.chamados-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.chamados-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  border-left: 4px solid var(--blue-500);
}
.chamados-card.teal { border-left-color: #1f9d8f; }
.chamados-card-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--blue-100); color: var(--blue-700);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  margin-bottom: 14px;
}
.chamados-card.teal .chamados-card-icon { background: #e3faf6; color: #1f9d8f; }
.chamados-card h3 { margin: 0 0 6px 0; font-size: 15px; color: var(--blue-900); }
.chamados-card p { margin: 0 0 14px 0; font-size: 13px; color: var(--gray-700); }

/* ===== Responsive (menu no topo vira gaveta no celular) ===== */
@media (max-width: 900px) {
  .gc-header-inner { padding: 0 14px; }
  .gc-header-username { display: none; }
  .gc-nav-toggle { display: flex; }

  .gc-nav {
    display: none;
    position: fixed;
    left: 0; right: 0; top: 60px; bottom: 0;
    z-index: 25;
    overflow-y: auto;
    box-shadow: 0 12px 24px -8px rgba(10,45,84,0.25);
  }
  .gc-nav.open { display: block; }
  .gc-nav-inner { flex-direction: column; padding: 10px 12px; gap: 0; }
  .gc-nav-categories { flex-direction: column; width: 100%; }
  .gc-nav-cat { flex-direction: column; width: 100%; }
  .gc-nav-cat-btn {
    width: 100%;
    justify-content: space-between;
    height: auto;
    padding: 13px 8px;
    border-bottom: 1px solid var(--gray-200);
  }
  .gc-nav-cat.open .gc-nav-cat-btn { border-bottom-color: var(--gray-200); }
  .gc-nav-cat .gc-caret-down { transition: transform 0.15s ease; }
  .gc-nav-cat.open .gc-caret-down { transform: rotate(180deg); }
  .gc-nav-flat-link {
    width: 100%;
    height: auto;
    padding: 13px 8px;
    border-bottom: 1px solid var(--gray-200);
  }

  .gc-nav .gc-dropdown {
    position: static;
    display: none;
    width: 100%;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 4px 0 8px 12px;
  }
  .gc-nav .gc-dropdown.open { display: flex; }

  .gc-nav-region { margin: 10px 0 0 0; width: 100%; }
  .gc-nav-region-btn { width: 100%; justify-content: space-between; }

  .gc-page-title { padding: 10px 14px; }
  .content { padding: 16px; }
}

@media (max-width: 480px) {
  .gc-header-logo-img { height: 20px; }
  .gc-header-user .gc-dropdown { min-width: 0; max-width: calc(100vw - 28px); }
}

/* ===== Login com fundo estilo paisagem (referência T-Cloud) ===== */
.photo-login-page {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 900px 500px at 50% 100%, rgba(255,158,66,0.28), transparent 70%),
    radial-gradient(ellipse 700px 400px at 15% 30%, rgba(120,170,255,0.10), transparent 70%),
    linear-gradient(180deg, #0a1420 0%, #16233a 30%, #223349 55%, #4a3a2e 85%, #5c4630 100%);
}
.photo-login-page-gt {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}
.photo-login-page-gt::before {
  background: radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,0.25) 100%);
}

.photo-login-page-slideshow::before {
  background: rgba(6, 10, 18, 0.55);
}
.photo-login-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}

.photo-login-envbadge {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 8px 16px;
  border-radius: 999px;
}

.photo-login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  background: rgba(12, 17, 26, 0.1);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  padding: 38px 32px 30px 32px;
  box-shadow: 0 25px 70px rgba(0,0,0,0.55);
  text-align: center;
  text-shadow: 0 1px 3px rgba(0,0,0,0.95), 0 0 10px rgba(0,0,0,0.8);
}

.photo-login-logo {
  width: 170px;
  height: auto;
  margin: 0 auto 26px auto;
  display: block;
  filter: drop-shadow(0 0 14px rgba(63,140,255,0.4));
}

.photo-login-title {
  color: #ffffff;
  font-size: 21px;
  font-weight: 700;
  margin: 0 0 6px 0;
}

.photo-login-sub {
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 20px 0;
}

.photo-login-card form { display: flex; flex-direction: column; gap: 12px; }

.pill-input {
  width: 100%;
  padding: 13px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.95);
  color: #16283c;
  font-size: 14px;
  outline: none;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.pill-input::placeholder { color: #8494a6; }
.pill-input:focus { border-color: var(--accent-blue); box-shadow: 0 0 0 3px rgba(63,140,255,0.35); }

.photo-login-forgot {
  display: block;
  text-align: right;
  color: rgba(255,255,255,0.75);
  font-size: 12.5px;
  font-weight: 600;
  margin: -8px 2px 14px 0;
}
.photo-login-forgot:hover { color: #8ecbff; }

.pill-button {
  width: 100%;
  padding: 13px 20px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--blue-700), var(--accent-blue));
  color: #fff;
  font-weight: 700;
  font-size: 14.5px;
  margin-top: 4px;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.1s ease;
}
.pill-button:hover { filter: brightness(1.1); }
.pill-button:active { transform: translateY(1px); }

.photo-login-switch {
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  margin: 20px 0 0 0;
}
.photo-login-switch a { color: #8ecbff; font-weight: 700; }

.photo-login-backlink {
  display: block;
  margin-top: 14px;
  color: rgba(255,255,255,0.55);
  font-size: 12px;
  font-weight: 600;
}
.photo-login-backlink:hover { color: rgba(255,255,255,0.85); }

.photo-login-footer {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  z-index: 1;
  text-align: center;
  color: rgba(255,255,255,0.85);
  font-size: 11px;
  letter-spacing: 0.03em;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.95), 0 0 10px rgba(0,0,0,0.8);
}
.photo-login-footer-dev { color: rgba(255,255,255,0.9); }
.photo-login-footer-dev a { color: #a9d2ff; font-weight: 700; }

/* checklist de requisitos da senha (cadastro), em selos numa linha só */
.password-checklist {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 2px 4px 2px;
}
.pw-rule {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.22);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.6);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.pw-rule-icon {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.45;
  transition: opacity 0.2s ease, stroke 0.2s ease;
}
.pw-rule.met {
  background: rgba(63,163,77,0.22);
  border-color: rgba(90,210,110,0.75);
  color: #d3ffdb;
}
.pw-rule.met .pw-rule-icon {
  stroke: #6ee888;
  opacity: 1;
}

/* campo de senha com olho de mostrar/ocultar */
.pw-field-wrap { position: relative; }
.pw-field-wrap input { padding-right: 46px !important; }
.toggle-password {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #6b7688;
}
.toggle-password:hover { background: rgba(0,0,0,0.06); }
.eye-icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.eye-closed { display: none; }
.toggle-password.showing .eye-open { display: none; }
.toggle-password.showing .eye-closed { display: block; }

/* honeypot: invisivel para gente, mas um robo que preenche tudo cega vai cair */
.honeypot-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* divisor "ou" + botão LinkedIn */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: rgba(255,255,255,0.55);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.auth-divider::before, .auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.25);
}

.linkedin-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 20px;
  border-radius: 999px;
  background: #0a66c2;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  transition: filter 0.15s ease;
}
.linkedin-button:hover { filter: brightness(1.1); text-decoration: none; color: #fff; }
.linkedin-icon { width: 19px; height: 19px; flex-shrink: 0; }

.field-hint {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  margin: -6px 2px 8px 2px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9);
}

/* ===== Visao Geral (dashboard cards) ===== */
.vg-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.vg-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vg-card-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--gray-700);
  font-weight: 600;
}
.vg-card-value { font-size: 30px; font-weight: 700; color: var(--gray-900, #1a1a1a); }
.vg-card-value-total { font-size: 16px; font-weight: 500; color: var(--gray-700); }
.vg-card-sub { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.vg-section-title { font-size: 15px; font-weight: 700; margin: 0 0 12px 0; }

/* ===== Visao Geral v2 (estilo PCP Hub) ===== */
.vg-hero {
  text-align: center;
  padding: 32px 16px 8px 16px;
}
.vg-hero-eyebrow {
  display: block;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--gray-700);
  font-weight: 700;
  margin-bottom: 6px;
}
.vg-hero-title {
  font-family: 'Courier New', monospace;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 8px 0;
  color: var(--gray-900, #1a1a1a);
}
.vg-hero-sub { color: var(--gray-700); font-size: 14px; margin: 0 0 20px 0; }

.vg-card-top { display: flex; align-items: center; justify-content: space-between; }
.vg-card-icon {
  width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #fff;
}
.vg-card-foot { font-size: 12px; color: var(--gray-700); }

.vg-client-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.vg-client-name { font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; font-weight: 700; color: var(--gray-700); }

.vg-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
@media (max-width: 800px) {
  .vg-two-col { grid-template-columns: 1fr; }
}

.vg-bars { display: flex; flex-direction: column; gap: 14px; }
.vg-bar-row { display: grid; grid-template-columns: 110px 1fr 70px; align-items: center; gap: 10px; }
.vg-bar-label { font-size: 12.5px; font-weight: 600; color: var(--gray-700); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vg-bar-track { height: 8px; border-radius: 4px; background: var(--gray-200); overflow: hidden; }
.vg-bar-fill { height: 100%; background: linear-gradient(90deg, #1f2937, #4b5563); border-radius: 4px; }
.vg-bar-fill-alt { background: linear-gradient(90deg, #2f7fe0, #60a5fa); }
.vg-bar-value { font-size: 12px; font-weight: 700; text-align: right; color: var(--gray-700); }

.vg-dark-panel {
  background: linear-gradient(160deg, #0b0f19, #1a1f2e);
  border-radius: var(--radius);
  padding: 26px 24px;
  margin-top: 24px;
  color: #e5e7eb;
}
.vg-dark-eyebrow { font-size: 11px; letter-spacing: 0.1em; color: #9ca3af; font-weight: 700; }
.vg-dark-title { font-size: 18px; font-weight: 700; margin: 4px 0 20px 0; color: #fff; }
.vg-dark-row { display: grid; grid-template-columns: 170px 1fr 70px; align-items: center; gap: 12px; margin-bottom: 14px; }
.vg-dark-row-label { font-size: 12.5px; color: #cbd5e1; white-space: nowrap; }
.vg-dark-track { height: 6px; border-radius: 3px; background: rgba(255,255,255,0.08); overflow: hidden; }
.vg-dark-fill { height: 100%; background: linear-gradient(90deg, #2f7fe0, #60a5fa); border-radius: 3px; }
.vg-dark-fill-purple { background: linear-gradient(90deg, #7c3aed, #c084fc); }
.vg-dark-row-value { text-align: right; font-weight: 700; color: #fff; font-size: 13px; }

.vg-dark-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}
@media (max-width: 800px) {
  .vg-dark-two-col { grid-template-columns: 1fr; }
}
.vg-dark-sub-panel {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 16px 18px;
}
.vg-dark-tag {
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: 0.05em;
  background: rgba(255,255,255,0.08);
  color: #cbd5e1;
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.vg-dark-sub-title { font-size: 15px; font-weight: 700; color: #fff; margin: 0 0 4px 0; }
.vg-dark-sub-desc { font-size: 12px; color: #9ca3af; margin: 0 0 12px 0; }
.vg-dark-stat-box {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  padding: 10px 12px;
}
.vg-dark-stat-label { font-size: 11.5px; color: #9ca3af; }
.vg-dark-stat-value { font-size: 20px; font-weight: 800; color: #fff; }
.vg-dark-mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.vg-dark-mini-box { border-radius: 8px; padding: 10px 8px; text-align: center; }
.vg-dark-mini-value { display: block; font-size: 18px; font-weight: 800; }
.vg-dark-mini-label { display: block; font-size: 10px; color: #9ca3af; margin-top: 2px; }
.vg-dark-mini-ok { background: rgba(34,197,94,0.12); }
.vg-dark-mini-ok .vg-dark-mini-value { color: #4ade80; }
.vg-dark-mini-warn { background: rgba(234,179,8,0.12); }
.vg-dark-mini-warn .vg-dark-mini-value { color: #facc15; }
.vg-dark-mini-danger { background: rgba(239,68,68,0.12); }
.vg-dark-mini-danger .vg-dark-mini-value { color: #f87171; }

/* ===== Visao Geral: cards e barras clicaveis + modal ===== */
.vg-card-clickable, .vg-bar-row-clickable {
  border: none;
  cursor: pointer;
  text-align: left;
  font: inherit;
  width: 100%;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.vg-card-clickable:hover, .vg-bar-row-clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
.vg-bar-row-clickable { background: transparent; padding: 0; }
.vg-dark-sub-panel-link { cursor: pointer; text-align: left; border: 1px solid rgba(255,255,255,0.08); font: inherit; }
.vg-dark-sub-panel-link:hover { background: rgba(255,255,255,0.07); }
.vg-modal-body { max-height: 60vh; overflow-y: auto; }
.vg-modal-body .prod-table-empty { padding: 20px 0; text-align: center; color: var(--gray-700); }

/* ===== Visao Geral: modal de segmento (lista estilo cards) ===== */
.vg-modal-subtitle { font-size: 12.5px; color: var(--gray-700); margin: 0 0 14px 0; }
.vg-modal-list { display: flex; flex-direction: column; gap: 10px; }
.vg-modal-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--gray-100, #f5f7fa);
  border-radius: 10px;
  padding: 12px 14px;
}
.vg-modal-item-title { display: block; font-size: 14px; font-weight: 700; color: var(--gray-900, #1a1a1a); }
.vg-modal-item-sub { display: block; font-size: 12px; color: var(--gray-700); margin-top: 2px; }
.vg-modal-item-right { text-align: right; flex-shrink: 0; }
.vg-modal-item-value { display: block; font-size: 13px; font-weight: 700; color: #16a34a; }
.vg-modal-item-badge {
  display: inline-block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-700);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 2px 8px;
}

/* ===== Pre-Selecao / Pre-Programacao ===== */
.presel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.presel-title { font-size: 24px; font-weight: 800; margin: 0 0 4px 0; }
.presel-subtitle { font-size: 13px; color: var(--gray-700); margin: 0; }
.presel-sync-btn { background: var(--blue-600, #2f7fe0); color: #fff; border: none; font-weight: 600; }

.presel-tabs { display: flex; gap: 6px; margin-bottom: 18px; border-bottom: 1px solid var(--gray-200); }
.presel-tab {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  border-radius: 8px 8px 0 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.presel-tab-active { background: var(--white); color: var(--gray-900, #1a1a1a); box-shadow: 0 -2px 0 var(--blue-600, #2f7fe0) inset; }
.presel-tab-badge {
  background: #e0972f;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 999px;
  padding: 1px 6px;
}

.presel-panel {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 22px;
  color: #1e293b;
}
.presel-panel-head { margin-bottom: 14px; }
.presel-panel-title { font-size: 17px; font-weight: 700; color: #0f172a; margin: 0 0 4px 0; }
.presel-panel-sub { font-size: 12.5px; color: #64748b; margin: 0; }
.presel-grid-label { font-size: 11px; letter-spacing: 0.05em; color: #9ca3af; font-weight: 700; margin: 10px 0 8px 0; }

.presel-machine-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.presel-machine-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  color: #d1d5db;
  background: rgba(255,255,255,0.04);
  white-space: nowrap;
}
.presel-est-none { color: #6b7280; border-style: dashed; }
.presel-est-COMUM { background: #b8860b; color: #fff; border-color: transparent; }
.presel-est-PLANO { background: #2f7fe0; color: #fff; border-color: transparent; }
.presel-est-XPREMIUM { background: #0d9488; color: #fff; border-color: transparent; }
.presel-est-XNEW { background: #db2777; color: #fff; border-color: transparent; }
.presel-est-NOVA { background: #7c3aed; color: #fff; border-color: transparent; }
.presel-est-COMFORT { background: #059669; color: #fff; border-color: transparent; }

.presel-panel .data-table th { color: #64748b; border-bottom-color: #e2e8f0; }
.presel-panel .data-table td { color: #1e293b; border-bottom-color: #e2e8f0; }
.presel-panel .prod-table-empty { color: #64748b; }

.presel-est-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.presel-mover-form { display: flex; gap: 6px; align-items: center; }
.presel-mover-input {
  width: 56px;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
  font-size: 12.5px;
}
.presel-delete-btn {
  background: none;
  border: none;
  color: #f87171;
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
}
.presel-delete-btn:hover { color: #ef4444; }

/* ===== Pre-Selecao: sugestoes de maquina ===== */
.presel-sugeridas { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.presel-sugeridas-label { font-size: 10px; color: #64748b; font-weight: 700; letter-spacing: 0.04em; }
.presel-sugerida-chip {
  background: #dbeafe;
  border: 1px solid #93c5fd;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  cursor: pointer;
}
.presel-sugerida-chip:hover { background: #bfdbfe; }
.presel-cli { text-align: center; }
.presel-avulsa { display: inline-block; margin-top: 4px; font-size: 10px; font-weight: 800; letter-spacing: .04em; padding: 2px 8px; border-radius: 999px; background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; white-space: nowrap; }
.presel-dt-input { width: 110px; padding: 5px 8px; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; color: #0f172a; font-size: 12.5px; font-weight: 600; }
.presel-dt-input::placeholder { color: #b45309; font-weight: 800; }
.presel-dt-input:focus { outline: 2px solid #bfdbfe; border-color: #2f7fe0; }
.presel-dt-ok { background: #dcfce7; border-color: #22c55e; }

/* ===== Gestao Comercial (modelo de indicadores) ===== */
.comercial-btn-integracao {
  background: var(--gray-200);
  color: var(--gray-700);
  border: 1px dashed var(--gray-300);
  font-weight: 600;
  cursor: not-allowed;
  white-space: nowrap;
}
.comercial-modelo-tag {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #fde68a;
}
.comercial-meta-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.comercial-meta-valor { font-size: 22px; font-weight: 800; color: var(--gray-900, #1a1a1a); }
.comercial-meta-de { font-size: 12.5px; color: var(--gray-700); }

.comercial-split-bar {
  display: flex;
  height: 14px;
  border-radius: 7px;
  overflow: hidden;
  margin-top: 6px;
}
.comercial-split-legend { display: flex; gap: 16px; margin-top: 8px; font-size: 12.5px; color: var(--gray-700); flex-wrap: wrap; }
.comercial-legend-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }

.comercial-cols-chart {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  height: 140px;
  padding-top: 10px;
}
.comercial-col-item { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; }
.comercial-col-value { font-size: 11px; font-weight: 700; color: var(--gray-700); }
.comercial-col-bar {
  width: 100%;
  max-width: 34px;
  background: linear-gradient(180deg, #60a5fa, #2f7fe0);
  border-radius: 5px 5px 0 0;
}
.comercial-col-label { font-size: 11px; color: var(--gray-700); font-weight: 600; }

/* ===== Gestao Comercial: cambio em tempo real + indicadores avancados ===== */
.comercial-cambio-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 4px;
}
.comercial-cambio-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px 16px;
  flex: 1;
  min-width: 180px;
}
.comercial-cambio-real { background: var(--gray-100); box-shadow: none; border: 1px dashed var(--gray-300); }
.comercial-cambio-flag { font-size: 22px; }
.comercial-cambio-label { display: block; font-size: 11px; font-weight: 700; color: var(--gray-700); text-transform: uppercase; letter-spacing: 0.02em; }
.comercial-cambio-label small { font-weight: 500; text-transform: none; opacity: 0.7; }
.comercial-cambio-valor { display: block; font-size: 17px; font-weight: 800; color: var(--gray-900, #1a1a1a); }
.comercial-cambio-var { display: block; font-size: 11px; font-weight: 700; }
.comercial-cambio-base { color: var(--gray-500); font-weight: 500; }
.comercial-cambio-hora { font-size: 11px; color: var(--gray-500); white-space: nowrap; }

.comercial-adv-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.comercial-adv-card { gap: 4px; }
.comercial-adv-desc { font-size: 11.5px; color: var(--gray-700); margin: 6px 0 0 0; line-height: 1.4; }

/* ===== Indicadores Comerciais Avancados (estilo dashboard internacional) ===== */
.comercial-adv-header { display: flex; flex-direction: column; gap: 2px; margin-top: 26px; }
.comercial-adv-group-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-700);
  margin: 22px 0 10px 0;
}
.comercial-adv-grid2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 14px;
}

.comercial-adv-card {
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 16px 18px;
  border-left: 4px solid var(--gray-300);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.comercial-status-good { border-left-color: #16a34a; }
.comercial-status-warning { border-left-color: #e0972f; }
.comercial-status-critical { border-left-color: #dc2626; }

.comercial-adv-card-top { display: flex; align-items: flex-start; gap: 10px; }
.comercial-adv-icon-wrap {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.comercial-adv-title-wrap { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.comercial-adv-label { font-size: 12.5px; font-weight: 700; color: var(--gray-700); line-height: 1.25; }

.comercial-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 2px 8px;
  border-radius: 999px;
  width: fit-content;
}
.comercial-status-dot { width: 6px; height: 6px; border-radius: 50%; }
.comercial-status-pill-good { background: #dcfce7; color: #166534; }
.comercial-status-pill-good .comercial-status-dot { background: #16a34a; }
.comercial-status-pill-warning { background: #fef3c7; color: #92400e; }
.comercial-status-pill-warning .comercial-status-dot { background: #e0972f; }
.comercial-status-pill-critical { background: #fee2e2; color: #991b1b; }
.comercial-status-pill-critical .comercial-status-dot { background: #dc2626; }

.comercial-adv-value-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.comercial-adv-value { font-size: 26px; font-weight: 800; color: var(--gray-900, #1a1a1a); }
.comercial-adv-trend { font-size: 12px; font-weight: 700; }
.comercial-trend-up { color: #16a34a; }
.comercial-trend-down { color: #dc2626; }

.comercial-adv-spark { width: 100%; height: 34px; }
.comercial-spark-svg { width: 100%; height: 100%; display: block; }

.comercial-adv-meta-row { display: flex; align-items: center; gap: 8px; }
.comercial-adv-meta-label { font-size: 11px; font-weight: 600; color: var(--gray-700); white-space: nowrap; }

.comercial-adv-desc { font-size: 11.5px; color: var(--gray-700); margin: 0; line-height: 1.4; }

/* ===== KPI cards v3 — bold/premium style (Indicadores Avancados) ===== */
.kpi-card {
  position: relative;
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 1px 3px rgba(16,24,40,0.06), 0 8px 20px -12px rgba(16,24,40,0.15);
  padding: 20px 22px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.kpi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
}
.kpi-card-good::before { background: linear-gradient(90deg, #16a34a, #4ade80); }
.kpi-card-warning::before { background: linear-gradient(90deg, #e0972f, #fbbf24); }
.kpi-card-critical::before { background: linear-gradient(90deg, #dc2626, #f87171); }
.kpi-card:hover { box-shadow: 0 2px 6px rgba(16,24,40,0.08), 0 14px 28px -12px rgba(16,24,40,0.22); transform: translateY(-2px); }

.kpi-card-head { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.kpi-icon-chip {
  width: 38px; height: 38px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
  box-shadow: 0 3px 8px -2px rgba(0,0,0,0.25);
}
.kpi-icon-chip-good { background: linear-gradient(140deg, #22c55e, #15803d); }
.kpi-icon-chip-warning { background: linear-gradient(140deg, #f59e0b, #b45309); }
.kpi-icon-chip-critical { background: linear-gradient(140deg, #f87171, #b91c1c); }
.kpi-label { font-size: 13px; font-weight: 700; color: var(--gray-700); line-height: 1.25; flex: 1; }

.kpi-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 999px;
}
.kpi-status-pill-good { background: #dcfce7; color: #166534; }
.kpi-status-pill-warning { background: #fef3c7; color: #92400e; }
.kpi-status-pill-critical { background: #fee2e2; color: #991b1b; }
.kpi-status-dot { width: 6px; height: 6px; border-radius: 50%; }
.kpi-status-dot-good { background: #16a34a; }
.kpi-status-dot-warning { background: #e0972f; }
.kpi-status-dot-critical { background: #dc2626; }

.kpi-value-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.kpi-value { font-size: 34px; font-weight: 800; color: var(--gray-900, #101828); letter-spacing: -0.02em; line-height: 1; }
.kpi-trend-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
}
.kpi-trend-up { background: #dcfce7; color: #166534; }
.kpi-trend-down { background: #fee2e2; color: #991b1b; }

.kpi-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  padding: 10px 0;
}
.kpi-stat { display: flex; flex-direction: column; gap: 2px; padding: 0 10px; border-left: 1px solid var(--gray-100); }
.kpi-stat:first-child { border-left: none; padding-left: 0; }
.kpi-stat-label { font-size: 10px; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.02em; }
.kpi-stat-value { font-size: 14.5px; font-weight: 800; color: var(--gray-700); }

.kpi-spark-full { width: 100%; height: 52px; }
.kpi-spark-full .comercial-spark-svg { width: 100%; height: 100%; }

.kpi-progress-block { display: flex; flex-direction: column; gap: 6px; }
.kpi-progress-head { display: flex; align-items: center; justify-content: space-between; }
.kpi-meta-tag { font-size: 11px; font-weight: 700; color: var(--gray-700); }
.kpi-progress-pct { font-size: 12px; font-weight: 800; color: var(--gray-900, #101828); }
.kpi-progress-track { height: 7px; border-radius: 4px; background: var(--gray-100); overflow: hidden; }
.kpi-progress-fill { height: 100%; border-radius: 4px; }
.kpi-progress-fill-good { background: linear-gradient(90deg, #16a34a, #4ade80); }
.kpi-progress-fill-warning { background: linear-gradient(90deg, #e0972f, #fbbf24); }
.kpi-progress-fill-critical { background: linear-gradient(90deg, #dc2626, #f87171); }
.kpi-meta-insight { font-size: 11px; font-weight: 800; white-space: nowrap; }
.kpi-meta-insight-ok { color: #16a34a; }
.kpi-meta-insight-warning { color: #b45309; }
.kpi-meta-insight-critical { color: #dc2626; }

.kpi-desc { font-size: 11.5px; color: var(--gray-500); margin: 0; line-height: 1.45; padding-top: 2px; }

/* ===== Pedidos Comercial: indicadores de clientes + por pais ===== */
.comercial-cliente-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.comercial-cliente-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.comercial-cliente-icon { font-size: 20px; line-height: 1; }
.comercial-cliente-label { display: block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--gray-500); }
.comercial-cliente-valor { display: block; font-size: 16px; font-weight: 800; color: var(--gray-900, #101828); margin-top: 2px; }
.comercial-cliente-sub { display: block; font-size: 11px; color: var(--gray-700); margin-top: 2px; }

.vg-bar-row-wide { grid-template-columns: 130px 1fr 190px; }

/* ===== Controle do Estoque (Almoxarifado) ===== */
.estoque-rotatividade-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .estoque-rotatividade-grid { grid-template-columns: 1fr; } }
.estoque-rot-title { font-size: 13px; font-weight: 800; margin: 0 0 12px 0; }
.estoque-rot-title-alta { color: #166534; }
.estoque-rot-title-media { color: #92400e; }
.estoque-rot-title-baixa { color: #991b1b; }
.estoque-rot-list { display: flex; flex-direction: column; gap: 8px; }
.estoque-rot-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--gray-100);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gray-700);
}
.estoque-rot-item-kg { font-weight: 800; color: var(--gray-900, #101828); white-space: nowrap; }

/* ===== Carrossel "laminado" em loop (Supply Chain) ===== */
.kpi-carousel {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}
.kpi-carousel-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: kpi-carousel-scroll 32s linear infinite;
}
.kpi-carousel:hover .kpi-carousel-track { animation-play-state: paused; }
.kpi-carousel-item { width: 320px; flex-shrink: 0; }
.kpi-carousel-item .kpi-card { height: 100%; }

@keyframes kpi-carousel-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .kpi-carousel-track { animation: none; }
}

/* ===== Saved Drawing ===== */
.sd-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.sd-title { font-size: 22px; font-weight: 800; color: var(--blue-900); margin: 0 0 4px 0; display: flex; align-items: center; gap: 8px; }
.sd-subtitle { font-size: 13px; color: var(--gray-700); max-width: 640px; margin: 0; }
.sd-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.sd-input, .sd-select {
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--gray-300);
  background: var(--white);
  padding: 0 12px;
  font-size: 13px;
  color: var(--text);
  font-family: inherit;
}
.sd-input { width: 220px; }

.sd-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--gray-200); margin-bottom: 16px; flex-wrap: wrap; }
.sd-tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  padding: 9px 14px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: 6px;
}
.sd-tab:hover { color: var(--blue-700); }
.sd-tab.active { color: var(--blue-700); border-bottom-color: var(--blue-600); }
.sd-count {
  background: var(--gray-200);
  color: var(--gray-700);
  font-size: 11px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 999px;
}
.sd-tab.active .sd-count { background: var(--blue-100); color: var(--blue-700); }

.sd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.sd-empty { color: var(--gray-500); font-size: 14px; padding: 24px 0; grid-column: 1 / -1; }

.sd-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sd-card.is-saved { border-color: rgba(31,157,85,0.4); background: rgba(31,157,85,0.04); }
.sd-card.is-pending { border-color: rgba(184,134,11,0.4); background: rgba(184,134,11,0.05); }

.sd-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.sd-card-article { font-size: 14.5px; font-weight: 800; color: var(--blue-900); }
.sd-badge {
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.sd-badge-saved { background: rgba(31,157,85,0.16); color: var(--success); }
.sd-badge-pending { background: rgba(184,134,11,0.16); color: #8a6d19; }
.sd-badge-position { background: var(--blue-100); color: var(--blue-700); }

.sd-card-meta { display: flex; gap: 14px; font-size: 12.5px; color: var(--gray-700); font-weight: 600; }
.sd-card-client { font-size: 12px; color: var(--gray-700); }
.sd-card-position { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 11.5px; }
.sd-muted { color: var(--gray-500); }

.sd-note { display: flex; gap: 6px; border-radius: 8px; padding: 7px 9px; font-size: 11.5px; line-height: 1.4; }
.sd-note-info { background: rgba(19,97,196,0.08); color: var(--blue-700); border: 1px solid rgba(19,97,196,0.2); }
.sd-note-warn { background: rgba(184,134,11,0.1); color: #8a6d19; border: 1px solid rgba(184,134,11,0.25); }

.sd-saved-by { font-size: 11.5px; color: var(--success); }
.sd-moved { font-size: 12px; color: #1e3a8a; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 8px; padding: 5px 9px; margin: 6px 0; }
.sd-observation { font-size: 12px; font-style: italic; color: var(--gray-700); border-left: 2px solid var(--blue-500); padding-left: 8px; }

.sd-card-actions { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 4px; }
.sd-card-actions form { flex: 1; min-width: 120px; }
.sd-obs-toggle { flex: 1; min-width: 120px; }
.sd-obs-toggle summary { list-style: none; cursor: pointer; }
.sd-obs-toggle summary::-webkit-details-marker { display: none; }
.sd-obs-form { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.sd-obs-form textarea {
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  padding: 8px;
  font-size: 12.5px;
  font-family: inherit;
  resize: vertical;
}

.sd-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 12.5px;
  font-weight: 700;
  border: 1px solid transparent;
  font-family: inherit;
}
.sd-btn-success { background: var(--success); color: var(--white); }
.sd-btn-success:hover { background: #188046; }
.sd-btn-outline { background: var(--white); border-color: var(--gray-300); color: var(--text); }
.sd-btn-outline:hover { background: var(--gray-100); }
.sd-btn-ghost { background: transparent; color: var(--gray-700); }
.sd-btn-ghost:hover { background: var(--gray-100); }
.sd-btn-danger { background: var(--white); border-color: rgba(229,72,77,0.4); color: var(--danger-dark); }
.sd-btn-danger:hover { background: rgba(229,72,77,0.08); }
.sd-btn-primary { background: var(--blue-600); color: var(--white); }
.sd-btn-primary:hover { background: var(--blue-700); }

.sd-table-wrap { overflow-x: auto; border: 1px solid var(--gray-200); border-radius: 10px; }
.sd-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.sd-table th {
  text-align: left;
  padding: 8px 10px;
  background: var(--gray-100);
  color: var(--gray-700);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.sd-table td { padding: 8px 10px; border-top: 1px solid var(--gray-200); }

/* ===== Base de Dados ===== */
.bd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-top: 18px; }
.bd-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-top: 3px solid var(--gray-300);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bd-card-stub { opacity: 0.75; }
.bd-card-head { display: flex; align-items: center; gap: 10px; }
.bd-card-head h3 { font-size: 13.5px; font-weight: 800; color: var(--blue-900); margin: 0; }
.bd-card-icon {
  width: 34px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.bd-card-desc { font-size: 12px; color: var(--gray-700); line-height: 1.45; margin: 0; }
.bd-count { font-size: 11px; font-weight: 700; color: var(--blue-700); margin: 0; }

.bd-search { display: flex; gap: 6px; }
.bd-search input {
  flex: 1;
  height: 34px;
  border-radius: 7px;
  border: 1px solid var(--gray-300);
  padding: 0 10px;
  font-size: 12.5px;
  font-family: inherit;
}

.bd-form { display: flex; flex-wrap: wrap; gap: 6px; background: var(--gray-100); border-radius: 8px; padding: 8px; }
.bd-form input, .bd-form select {
  flex: 1;
  min-width: 90px;
  height: 34px;
  border-radius: 7px;
  border: 1px solid var(--gray-300);
  padding: 0 8px;
  font-size: 12px;
  font-family: inherit;
}

.bd-list { display: flex; flex-direction: column; gap: 2px; }
.bd-list-scroll { max-height: 220px; overflow-y: auto; }
.bd-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--text);
}
.bd-row:hover { background: var(--gray-100); }
.bd-row-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-del {
  background: transparent;
  border: none;
  color: var(--gray-500);
  font-size: 12px;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  flex-shrink: 0;
}
.bd-del:hover { background: rgba(229,72,77,0.1); color: var(--danger-dark); }

.bd-pager { display: flex; flex-wrap: wrap; gap: 4px; }
.bd-pager a {
  min-width: 26px;
  text-align: center;
  padding: 3px 6px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-700);
  background: var(--gray-100);
}
.bd-pager a:hover { background: var(--blue-100); text-decoration: none; }
.bd-pager a.active { background: var(--blue-600); color: var(--white); }

/* ===== Chamados: novo chamado / suporte ===== */
.ticket-choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.ticket-choice-card {
  display: flex; flex-direction: column; gap: 6px; text-align: left; cursor: pointer;
  background: var(--white); border: 1px solid var(--gray-200); border-left: 4px solid var(--blue-500);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; font: inherit; color: var(--text);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.ticket-choice-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(10, 45, 84, 0.12); }
.ticket-choice-card.amber { border-left-color: #f59e0b; }
.ticket-choice-card strong { font-size: 16px; color: var(--blue-900); }
.ticket-choice-card small { font-size: 13px; color: var(--gray-700); }
.ticket-choice-icon { font-size: 26px; }

.ticket-form {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px; max-width: 760px; display: flex; flex-direction: column; gap: 12px;
}
.ticket-form[hidden], .dev-step[hidden], .ticket-choice[hidden], .ticket-note[hidden], .ticket-input[hidden] { display: none; }
.ticket-form h2 { margin: 0 0 4px 0; font-size: 18px; color: var(--blue-900); }
.ticket-input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--gray-300); border-radius: 8px;
  font: inherit; font-size: 14px; background: var(--white); color: var(--text);
}
.ticket-input:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--blue-100); }
textarea.ticket-input { resize: vertical; }
.ticket-field { display: flex; flex-direction: column; gap: 6px; }
.ticket-field > span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray-500); }
.ticket-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.ticket-note { margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--gray-100); border: 1px solid var(--gray-200); font-size: 12.5px; color: var(--gray-700); }
.ticket-note.amber { background: #fffbeb; border-color: #fde68a; color: #3b2f0b; line-height: 1.55; display: flex; flex-direction: column; gap: 10px; }
.ticket-file { font-size: 13px; }
.ticket-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.ticket-btn-outline { background: var(--white); border: 1px solid var(--gray-300); color: var(--gray-700); cursor: pointer; }
.ticket-btn-amber { background: #f59e0b; color: #1c1403; border: none; font-weight: 700; cursor: pointer; text-decoration: none; }
.ticket-btn-amber:hover { background: #d97706; text-decoration: none; }

.dev-step { display: flex; flex-direction: column; gap: 12px; }
.dev-step-title { margin: 0; font-weight: 700; color: var(--blue-900); }
.dev-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.dev-service {
  display: flex; flex-direction: column; gap: 4px; text-align: left; cursor: pointer; font: inherit;
  background: var(--white); border: 1px solid var(--gray-200); border-radius: 10px; padding: 12px; color: var(--text);
}
.dev-service:hover { border-color: #f59e0b; background: #fffbeb; }
.dev-service strong { font-size: 14px; color: var(--blue-900); }
.dev-service small { font-size: 12px; color: var(--gray-700); }
.dev-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.dev-badge { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--gray-300); color: var(--gray-700); }
.dev-badge.amber { background: #fef3c7; border-color: #fcd34d; color: #92400e; }

.ticket-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.ticket-toolbar h2 { margin: 0; font-size: 20px; color: var(--blue-900); }
.ticket-toolbar-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ticket-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 18px; }
.ticket-kpi { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; border-top: 3px solid var(--blue-700); }
.ticket-kpi span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray-500); font-weight: 700; }
.ticket-kpi strong { display: block; font-size: 24px; color: var(--blue-900); margin-top: 4px; }
.ticket-kpi.amber { border-top-color: #f59e0b; }
.ticket-kpi.blue { border-top-color: var(--blue-500); }
.ticket-kpi.green { border-top-color: var(--success); }
.ticket-kpi.red { border-top-color: var(--danger); }
.ticket-kpi.amber-dark { border-top-color: #b45309; }
.ticket-sub { font-size: 12px; color: var(--gray-700); margin-top: 3px; }
.ticket-thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ticket-thumbs img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; border: 1px solid var(--gray-300); }
.ticket-empty { margin: 0; padding: 30px 10px; text-align: center; color: var(--gray-700); }
.ticket-badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; white-space: nowrap; border: 1px solid transparent; }
.ticket-badge.status-aberto { background: #fef3c7; color: #b45309; border-color: #fcd34d; }
.ticket-badge.status-em_andamento { background: var(--blue-100); color: var(--blue-700); border-color: #bcd8fb; }
.ticket-badge.status-aguardando { background: #f3e8ff; color: #7e22ce; border-color: #e0c3fc; }
.ticket-badge.status-resolvido { background: #d7f4e0; color: var(--success); border-color: #b9e8c9; }
.ticket-badge.status-cancelado, .ticket-badge.prio-baixa { background: var(--gray-200); color: var(--gray-700); }
.ticket-badge.prio-media { background: var(--blue-100); color: var(--blue-700); }
.ticket-badge.prio-alta { background: #ffedd5; color: #c2410c; }
.ticket-badge.prio-critica { background: #fde3e3; color: var(--danger-dark); }

/* ===== Comercial ME ===== */
.cme-grupos { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.cme-grupo {
  background: var(--white); border: 1px solid var(--gray-300); color: var(--gray-700); cursor: pointer;
  padding: 9px 16px; border-radius: 999px; font: inherit; font-size: 13.5px; font-weight: 600;
}
.cme-grupo:hover { border-color: var(--blue-500); color: var(--blue-700); }
.cme-grupo.active { background: var(--blue-700); border-color: var(--blue-700); color: var(--white); }
.cme-contagem { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 999px; font-size: 11.5px; background: rgba(127,127,127,0.18); }
.cme-grupo.active .cme-contagem { background: rgba(255,255,255,0.25); }
.cme [hidden] { display: none !important; }

.cme-kpis small { display: block; margin-top: 4px; font-size: 12px; color: var(--gray-500); }
.cme-kpis .ticket-kpi strong { font-size: 22px; }
.cme-rankings { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; margin-bottom: 4px; }
.cme-ranking h3, .cme-tit-lista { margin: 0 0 14px 0; font-size: 15px; color: var(--blue-900); }
.cme-barra-linha { display: grid; grid-template-columns: minmax(90px, 160px) 1fr auto; gap: 10px; align-items: center; margin-bottom: 9px; font-size: 13px; }
.cme-barra-nome { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.cme-barra { background: var(--gray-200); border-radius: 999px; height: 10px; overflow: hidden; }
.cme-barra i { display: block; height: 100%; background: var(--blue-500); border-radius: 999px; }
.cme-barra-valor { font-weight: 700; color: var(--blue-900); font-variant-numeric: tabular-nums; }
.cme-fonte { color: var(--gray-500); font-size: 12.5px; }
.cme-num { text-align: right; font-variant-numeric: tabular-nums; }

.cme-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.cme-pill {
  background: var(--blue-50); border: 1px solid var(--blue-100); color: var(--blue-700); cursor: pointer;
  padding: 7px 13px; border-radius: 8px; font: inherit; font-size: 13px; font-weight: 600;
}
.cme-pill:hover { border-color: var(--blue-500); }
.cme-pill.active { background: var(--blue-500); border-color: var(--blue-500); color: var(--white); }
.cme-barra-topo { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.cme-barra-topo h3 { margin: 0; font-size: 17px; color: var(--blue-900); }
.cme-meta { margin: 4px 0 0 0; font-size: 12.5px; color: var(--gray-500); }
.cme-ferramentas { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cme-ferramentas .ticket-input { width: 260px; }
.cme-scroll { max-height: 640px; overflow: auto; border: 1px solid var(--gray-200); border-radius: 8px; }
.cme-tabela { font-size: 12.5px; }
.cme-tabela th { position: sticky; top: 0; background: var(--gray-100); z-index: 1; max-width: 220px; overflow: hidden; text-overflow: ellipsis; font-size: 11.5px; }
.cme-tabela th.cme-ordenavel { cursor: pointer; user-select: none; }
.cme-tabela th.cme-ordenavel:hover { color: var(--blue-700); }
.cme-tabela td { max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 8px 12px; }
.cme-tabela tbody tr:hover td { background: var(--blue-50); }
.cme-rodape { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 12px; font-size: 13px; color: var(--gray-700); }
.cme-paginacao { display: flex; align-items: center; gap: 10px; }
.cme-paginacao button:disabled { opacity: 0.45; cursor: default; }

/* ---- Comercial ME: paineis ---- */
.cme-subgrupos { margin-top: -6px; }
.cme-filtros { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; }
.cme-filtro { display: flex; flex-direction: column; gap: 4px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; color: var(--gray-500); }
.cme-filtro select { min-width: 180px; max-width: 280px; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 13.5px; }
.cme-fontes { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 16px; margin-bottom: 18px; border-left: 4px solid var(--success); }
.cme-fontes.atencao { border-left-color: #e0972f; }
.cme-fontes-topo { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cme-fontes-topo strong { color: var(--blue-900); font-size: 14px; }
.cme-fontes-topo .btn-small { margin-left: auto; }
.cme-fontes-lista { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.cme-fonte-linha { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 13px; }
.cme-fonte-met { margin: 4px 0 2px 0; font-size: 12.5px; color: var(--gray-700); }
.cme-chip { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--blue-50); color: var(--blue-700); }
.cme-badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.cme-badge.verde { background: #dcf5e6; color: #11703c; }
.cme-badge.ambar { background: #fdefd2; color: #8a5a0c; }
.cme-badge.vermelho { background: #fde1e2; color: #a3262b; }
.cme-badge.azul { background: #dde9fb; color: #1d58a8; }
.cme-badge.cinza { background: #e8ebf1; color: #566077; }
.cme-kpigrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin-bottom: 18px; }
.cme-kpi { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; border-top: 3px solid var(--blue-700); }
.cme-kpi.verde { border-top-color: var(--success); }
.cme-kpi.ambar { border-top-color: #e0972f; }
.cme-kpi.vermelho { border-top-color: var(--danger); }
.cme-kpi.azul { border-top-color: var(--blue-500); }
.cme-kpi-rotulo { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray-500); font-weight: 700; }
.cme-kpi strong { display: block; font-size: 24px; color: var(--blue-900); margin-top: 4px; font-variant-numeric: tabular-nums; }
.cme-kpi-rodape { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cme-kpi-rodape small { font-size: 12px; color: var(--gray-500); }
.cme-delta { font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.cme-delta.up { background: #dcf5e6; color: #11703c; }
.cme-delta.down { background: #fde1e2; color: #a3262b; }
.cme-graficos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.cme-grafico.inteira { grid-column: 1 / -1; }
.cme-grafico h3, .cme-tcard h3 { margin: 0 0 12px 0; font-size: 15px; color: var(--blue-900); }
.cme-canvas { position: relative; height: 280px; }
.cme-canvas.alto { height: 360px; }
.cme-tcard { margin-bottom: 18px; }
.cme-tcard .cme-scroll { max-height: 420px; }
.cme-tcard .cme-scroll.aberta { max-height: 640px; }
.cme-vermais { margin-top: 10px; }
.cme-pos { color: #11703c; } .cme-neg { color: #a3262b; }
.cme-carregando { opacity: 0.55; transition: opacity .15s; }
@media (max-width: 900px) { .cme-graficos { grid-template-columns: minmax(0, 1fr); } }
.cme-clicavel { cursor: pointer; }
.cme-kpi.cme-clicavel:hover { box-shadow: 0 4px 16px rgba(10,45,84,0.16); }
.cme-tabela tbody tr.cme-clicavel:hover td, .cme-tcard tbody tr.cme-clicavel:hover td { background: var(--blue-50); }
.cme-auto { margin-bottom: 16px; }
.cme-auto .cme-canvas { height: 240px; }
.cme-modal { position: fixed; inset: 0; background: rgba(8,20,40,0.55); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.cme-modal[hidden] { display: none; }
.cme-modal-box { position: relative; background: var(--white); border-radius: var(--radius); padding: 22px 24px; max-width: 640px; width: 100%; max-height: 85vh; overflow: auto; box-shadow: 0 10px 40px rgba(0,0,0,0.3); }
.cme-modal-box h3 { margin: 0 30px 14px 0; font-size: 16px; color: var(--blue-900); }
.cme-modal-fechar { position: absolute; top: 10px; right: 14px; border: 0; background: none; font-size: 26px; cursor: pointer; color: var(--gray-500); }
.cme-detalhe th { width: 38%; text-align: left; font-size: 12px; color: var(--gray-500); text-transform: uppercase; letter-spacing: .04em; vertical-align: top; }
.cme-detalhe td { white-space: normal; word-break: break-word; }
/* valores em destaque */
.cme-tcard td.cme-num, .cme-tabela td.cme-num { font-weight: 700; color: var(--blue-900); }
.cme-kpi strong { font-size: 27px; letter-spacing: -0.01em; }
.cme-kpi.verde strong { color: #11703c; } .cme-kpi.vermelho strong { color: #a3262b; } .cme-kpi.ambar strong { color: #8a5a0c; }
/* seletor de pais do Comercial ME */
.cme-hero { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.cme-regioes { display: inline-flex; background: var(--white); border-radius: 999px; padding: 4px; box-shadow: var(--shadow); gap: 4px; }
.cme-regiao { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 7px 16px 7px 10px; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 700; color: var(--gray-700); }
.cme-regiao img { border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,0.12); object-fit: cover; }
.cme-regiao:hover { background: var(--blue-50); }
.cme-regiao.active { background: var(--blue-700); color: var(--white); }
/* real + dolar */
.cme-hero-dir { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cme-cambio { display: inline-flex; align-items: center; gap: 8px; background: var(--white); border-radius: 999px; padding: 6px 12px; box-shadow: var(--shadow); font-size: 12.5px; font-weight: 700; color: var(--gray-700); }
.cme-cambio[hidden] { display: none; }
.cme-cambio input { width: 62px; border: 1px solid var(--gray-200); border-radius: 6px; padding: 3px 6px; font-weight: 700; font-size: 13px; }
.cme-kpi-alt { margin-top: 2px; font-size: 17px; font-weight: 800; color: #11703c; font-variant-numeric: tabular-nums; }
.cme-celula-alt { font-size: 11px; font-weight: 600; color: #11703c; }
/* BI Comercial */
.bi-status { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; max-width: 520px; }
.bi-st-linha { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.bi-aviso { font-size: 12.5px; color: #8a5a0c; background: #fdefd2; padding: 4px 10px; border-radius: 8px; font-weight: 600; }
.bi-gerar { margin-bottom: 16px; }
.bi-gerar-titulo { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.bi-gerar-form { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.bi-btn { padding: 9px 18px; font-weight: 700; }
.bi-progresso { margin-top: 12px; padding: 10px 14px; background: var(--blue-50); border-radius: 8px; font-weight: 600; color: var(--blue-900); }
.bi-gerado { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bi-relatorio { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.bi-rel-linha { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.bi-downloads { margin-left: auto; display: inline-flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.bi .cme-grupos { align-items: center; }
/* Slide mensal (BI Comercial) */
.sl-card { margin-bottom: 16px; }
.sl-card h3 { margin: 0 0 10px 0; font-size: 15px; color: var(--blue-900); letter-spacing: .02em; }
.sl-tab th.sl-grupo { text-align: center; background: var(--blue-700); color: #fff; font-size: 12px; letter-spacing: .05em; }
.sl-tab td, .sl-tab th { padding: 6px 10px; font-size: 13px; white-space: nowrap; }
.sl-tab .sl-rot { font-weight: 700; color: var(--blue-900); max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.sl-tab td.sl-real { font-weight: 800; }
.sl-verde { background: #ccffcc; } .sl-amar { background: #ffffcc; }
.sl-verm { background: #ff0000; color: #fff; font-weight: 700; } .sl-pos { color: #11703c; font-weight: 700; }
.sl-total td { font-weight: 800; background: var(--blue-50); border-top: 2px solid var(--blue-700); }
.sl-plano td { font-style: italic; background: #f5f6fa; }
.sl-chk { flex-direction: row; align-items: center; gap: 4px; text-transform: none; letter-spacing: 0; font-weight: 600; }
.sl-gerado { margin-left: auto; align-self: center; }
.sl-obs { margin: 14px 4px 28px; max-width: 900px; }
.sl-total td.sl-verm { background: #ff0000; color: #fff; }
.sl-total td.sl-verde { background: #ccffcc; } .sl-total td.sl-amar { background: #ffffcc; }
.sl-th2 { line-height: 1.25; } .sl-th2b { font-weight: 600; opacity: .85; font-size: 11.5px; }
.sl-grafico { margin-bottom: 18px; }
.sl-g-topo { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 14px; margin-bottom: 6px; }
.sl-g-topo h3 { margin: 0 0 2px 0; font-size: 17px; color: var(--blue-900); }
.sl-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.sl-chip { background: var(--blue-50); border-radius: 10px; padding: 7px 14px; display: flex; flex-direction: column; min-width: 120px; }
.sl-chip span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-500); font-weight: 700; }
.sl-chip strong { font-size: 17px; color: var(--blue-900); font-variant-numeric: tabular-nums; }
.sl-chip.ok strong { color: #11703c; } .sl-chip.baixo strong { color: #c53a3e; }
.sl-g-canvas { position: relative; height: 380px; }
/* slide: numeros e cabecalhos centralizados */
.sl-tab th.cme-num, .sl-tab td.cme-num { text-align: center; }
.sl-tab td.sl-rot { text-align: left; }
.sl-plano td.sl-verm { background: #ff0000; color: #fff; font-style: normal; }
/* atingimento do plano (barras de progresso) */
.sl-prog-topo { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.sl-prog-topo h3 { margin: 0; font-size: 16px; color: var(--blue-900); }
.sl-toggle { display: inline-flex; background: var(--gray-100); border-radius: 999px; padding: 3px; }
.sl-toggle button { border: 0; background: transparent; padding: 5px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--gray-700); cursor: pointer; }
.sl-toggle button.ativo { background: var(--blue-700); color: #fff; }
.sl-prog-lista { display: flex; flex-direction: column; gap: 16px; }
.sl-prog-item { display: grid; grid-template-columns: minmax(110px, 160px) 1fr minmax(120px, 170px) 54px; gap: 14px; align-items: center; }
.sl-prog-nome { font-weight: 700; font-size: 13px; color: var(--blue-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sl-prog-pista { position: relative; height: 14px; background: #eef1f7; border-radius: 999px; }
.sl-prog-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; min-width: 4px; }
.sl-prog-fill.verde { background: #1f9d55; } .sl-prog-fill.ambar { background: #e0972f; } .sl-prog-fill.verm { background: #e5484d; } .sl-prog-fill.cinza { background: #b6bfd0; }
.sl-prog-marca { position: absolute; top: -4px; bottom: -4px; width: 2px; background: #10263F; border-radius: 2px; }
.sl-prog-val { display: flex; flex-direction: column; line-height: 1.25; font-variant-numeric: tabular-nums; }
.sl-prog-val strong { font-size: 14px; color: var(--blue-900); } .sl-prog-val span { font-size: 11.5px; color: var(--gray-500); }
.sl-prog-pct { font-weight: 800; font-size: 15px; text-align: right; }
.sl-prog-pct.verde { color: #11703c; } .sl-prog-pct.ambar { color: #b4690e; } .sl-prog-pct.verm { color: #c53a3e; } .sl-prog-pct.cinza { color: var(--gray-500); }
.sl-prog-leg { margin-top: 14px; font-size: 11.5px; color: var(--gray-500); }
@media (max-width: 700px) { .sl-prog-item { grid-template-columns: 1fr 54px; } .sl-prog-pista, .sl-prog-val { grid-column: 1 / -1; } }

/* ===== Slide mensal: visual de apresentacao ===== */
.sl-nav { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 6px 0 16px; position: sticky; top: 0; z-index: 5; background: rgba(245,247,251,0.94); padding: 8px 0; backdrop-filter: blur(4px); }
.sl-nav a { padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--gray-200); font-size: 12.5px; font-weight: 700; color: var(--blue-700); text-decoration: none; }
.sl-nav a:hover { background: var(--blue-50); border-color: var(--blue-500); }
.sl-imprimir { margin-left: auto; }
.sl-card { border-radius: 14px; padding: 22px 24px 18px; margin-bottom: 20px; scroll-margin-top: 70px; }
.sl-sec-topo { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.sl-num { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #0a3d8f, #2f7fe0); color: #fff; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; flex: none; }
.sl-sec-topo h3 { margin: 0; font-size: 18px; color: var(--blue-900); letter-spacing: .01em; }
.sl-sub { margin: 2px 0 0; font-size: 12.5px; color: var(--gray-500); }
.sl2 { border-collapse: separate; border-spacing: 0; width: 100%; }
.sl2 th, .sl2 td { padding: 11px 12px; font-size: 14px; border-bottom: 1px solid #eef1f6; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sl2 th.sl-grupo { background: linear-gradient(90deg, #0a3d8f, #1d5fc4); color: #fff; text-align: center; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; border: 0; padding: 9px 12px; }
.sl2 th.sl-grupo2 { background: linear-gradient(90deg, #12315e, #0a3d8f); border-left: 4px solid #fff; }
.sl2 th.sl-th2 { background: #f6f8fc; color: #4a5872; border-bottom: 2px solid #dfe5f0; font-size: 12.5px; }
.sl2 td.sl-ini, .sl2 th.sl-th2:nth-child(7) { border-left: 4px solid #eef1f6; }
.sl2 tbody tr:nth-child(even) td { background: #fbfcfe; }
.sl2 tbody tr:hover td { background: #f0f5ff; }
.sl2 td.sl-rot { text-align: left; font-weight: 700; color: var(--blue-900); position: sticky; left: 0; background: #fff; min-width: 190px; }
.sl2 tbody tr:nth-child(even) td.sl-rot { background: #fbfcfe; }
.sl2 td.sl-real span { font-weight: 800; font-size: 15px; }
.sl2 td.sl-ok span { color: #11703c; } .sl2 td.sl-baixo span { color: #b4690e; }
.sl-pill { display: inline-block; min-width: 62px; padding: 4px 10px; border-radius: 999px; font-weight: 800; font-size: 12.5px; text-align: center; }
.sl-pill.p-verm { background: #fde1e2; color: #b4232a; } .sl-pill.p-amar { background: #fdf0d5; color: #9a5b05; }
.sl-pill.p-ver { background: #dcf5e6; color: #11703c; } .sl-pill.p-neu { color: #a0a9ba; background: transparent; font-weight: 600; }
.sl2 tr.sl-total td { background: #0a3d8f !important; color: #fff !important; font-weight: 800; border-bottom: 0; }
.sl2 tr.sl-total td span, .sl2 tr.sl-total td.sl-rot { color: #fff !important; background: transparent; }
.sl2 tr.sl-total .sl-pill { background: rgba(255,255,255,0.16); color: #fff; }
.sl2 tr.sl-total .sl-pill.p-verm { background: #e5484d; } .sl2 tr.sl-total .sl-pill.p-ver { background: #1f9d55; }
.sl2 tr.sl-plano td { font-style: italic; background: #f5f6fa; color: #4a5872; }
.sl2 tr.sl-plano td.sl-rot { background: #f5f6fa; }

@media print {
  @page { size: A4 landscape; margin: 9mm; }
  header, .gc-nav, .gc-page-title, .cme-hero, .bi-gerar, #biVisoes, #biSlideFiltros, .sl-nav, .gc-topbar { display: none !important; }
  body, .content, main { background: #fff !important; padding: 0 !important; }
  .sl-card, .sl-grafico, .sl-prog { break-inside: avoid; box-shadow: none !important; border: 1px solid #dfe5f0; }
  .sl2 th, .sl2 td { font-size: 11px; padding: 5px 7px; }
  .cme-kpigrid { break-inside: avoid; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.sl-chip-per { padding: 5px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 800; letter-spacing: .03em; }
.sl-chip-per.mes { background: #e4efff; color: #0a3d8f; } .sl-chip-per.acum { background: #0a3d8f; color: #fff; }
.sl-atualizar { align-self: flex-end; padding: 8px 18px; font-weight: 800; border-radius: 8px; }
.sl-atualizar:disabled { opacity: .6; cursor: default; }
.bi-info { font-size: 12.5px; color: #0a3d8f; background: #e4efff; padding: 4px 10px; border-radius: 8px; font-weight: 600; }
/* aviso de painel em atualizacao */
.bi-conteudo { position: relative; min-height: 220px; }
.bi-overlay { position: absolute; inset: 0; z-index: 20; background: rgba(238,242,250,0.84); backdrop-filter: blur(3px); display: flex; justify-content: center; align-items: flex-start; border-radius: 12px; }
.bi-overlay[hidden] { display: none; }
.bi-overlay-box { position: sticky; top: 90px; text-align: center; padding: 26px 34px; background: #fff; border-radius: 16px; box-shadow: 0 10px 40px rgba(10,45,84,0.22); max-width: 520px; margin-top: 40px; border-top: 4px solid #e0972f; }
.bi-engrenagem { color: #0a3d8f; animation: bi-gira 2.4s linear infinite; }
@keyframes bi-gira { to { transform: rotate(360deg); } }
.bi-overlay-tit { margin-top: 14px; font-weight: 800; font-size: 17px; letter-spacing: .02em; color: #0a2d54; line-height: 1.35; }
.bi-overlay-msg { margin-top: 8px; font-size: 13px; color: var(--gray-500); min-height: 18px; }
@media (prefers-reduced-motion: reduce) { .bi-engrenagem { animation-duration: 6s; } }

/* Relatorio Pedidos: faixa de status da atualizacao pela API */
.ped-status { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin: .5rem 0 1rem; padding: .55rem .9rem; border-radius: 10px; background: #eef5ff; border: 1px solid #d5e3fa; color: #17325c; font-size: .88rem; }
.ped-status .btn-small { margin-left: auto; }
.ped-dot { width: 9px; height: 9px; border-radius: 50%; background: #2aa55a; flex: none; }
.ped-rodando .ped-dot { background: #e0932b; animation: pedPulso 1s ease-in-out infinite; }
.ped-erro { background: #fdeeee; border-color: #f3caca; color: #7a1d1d; }
.ped-erro .ped-dot { background: #d13b3b; }
@keyframes pedPulso { 50% { opacity: .25; } }

.ped-unidade { font-size: .78rem; color: #6b7a90; margin-top: 2px; }

/* Tabelas centralizadas (Sequencias de Producao e Relatorio Pedidos) */
.tab-centro { border-collapse: separate; border-spacing: 0; }
.tab-centro th { text-align: center; vertical-align: middle; background: #f3f6fb; color: #3b4a63; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; padding: 12px 6px; border-bottom: 2px solid #dde5f0; position: sticky; top: 0; z-index: 1; line-height: 1.25; }
.tab-centro td { text-align: center; vertical-align: middle; padding: 12px 6px; border-bottom: 1px solid #edf1f7; font-variant-numeric: tabular-nums; }
.tab-centro tbody tr:nth-child(even) td { background: #fafcff; }
.tab-centro tbody tr:hover td { background: #eef5ff; }
.tab-centro .prod-table-produto { max-width: 280px; margin: 0 auto; }
.tab-centro .ped-unidade { text-align: center; }
.seq-table td { white-space: nowrap; }
.seq-table .seq-cliente, .seq-table .seq-artigo { font-weight: 600; color: #17325c; }
.seq-table .seq-cliente { white-space: normal; min-width: 120px; }
.seq-num { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 15px; background: #e8f0fc; color: #0b4a9e; font-weight: 700; }
.seq-produzindo td { background: #fff !important; }
.seq-produzindo .seq-num { background: #2aa55a; color: #fff; }
/* cor das LETRAS da linha pela situacao da OP no TOTVS: PCP fase 1 (aguardando liberacao) amarelo, PCP fase 2 azul claro, estoque (local 34) verde claro, malharia (local 23) verde escuro */
.seq-table tr.sit-fase1 { --seq-cor: #a87400; }
.seq-table tr.sit-fase1:not(.seq-atraso) td, .seq-table tr.sit-fase1:not(.seq-atraso) .seq-cliente, .seq-table tr.sit-fase1:not(.seq-atraso) .seq-artigo, .seq-table tr.sit-fase1:not(.seq-atraso) .seq-falta, .seq-table tr.sit-fase1:not(.seq-atraso) .seq-pct { color: #a87400 !important; }
.seq-table tr.sit-fase2 { --seq-cor: #3aa3f2; }
.seq-table tr.sit-fase2:not(.seq-atraso) td, .seq-table tr.sit-fase2:not(.seq-atraso) .seq-cliente, .seq-table tr.sit-fase2:not(.seq-atraso) .seq-artigo, .seq-table tr.sit-fase2:not(.seq-atraso) .seq-falta, .seq-table tr.sit-fase2:not(.seq-atraso) .seq-pct { color: #3aa3f2 !important; }
.seq-table tr.sit-estoque { --seq-cor: #36b85e; }
.seq-table tr.sit-estoque:not(.seq-atraso) td, .seq-table tr.sit-estoque:not(.seq-atraso) .seq-cliente, .seq-table tr.sit-estoque:not(.seq-atraso) .seq-artigo, .seq-table tr.sit-estoque:not(.seq-atraso) .seq-falta, .seq-table tr.sit-estoque:not(.seq-atraso) .seq-pct { color: #36b85e !important; }
.seq-table tr.sit-malharia { --seq-cor: #0f5c32; }
.seq-table tr.sit-malharia:not(.seq-atraso) td, .seq-table tr.sit-malharia:not(.seq-atraso) .seq-cliente, .seq-table tr.sit-malharia:not(.seq-atraso) .seq-artigo, .seq-table tr.sit-malharia:not(.seq-atraso) .seq-falta, .seq-table tr.sit-malharia:not(.seq-atraso) .seq-pct { color: #0f5c32 !important; }
.seq-table tr.sit-fase1 td, .seq-table tr.sit-fase2 td, .seq-table tr.sit-estoque td, .seq-table tr.sit-malharia td { font-weight: 700; }
.seq-table tr[class*="sit-"] .seq-op-btn, .seq-table tr[class*="sit-"] .badge-ok, .seq-table tr[class*="sit-"] .badge-info, .seq-table tr[class*="sit-"] .badge-warn, .seq-table tr[class*="sit-"] .badge-neutral { font-weight: 700; }
.seq-legenda { display: flex; gap: 14px; flex-wrap: wrap; margin: 6px 0 12px; font-size: 12px; color: #475569; }
.seq-legenda span { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.seq-op { display: inline-block; padding: 3px 9px; border-radius: 6px; background: #eef1f6; color: #17325c; font-weight: 700; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.seq-falta { font-weight: 700; color: #b45309; }
.seq-prog { min-width: 84px; }
.seq-prog strong { display: block; margin-bottom: 4px; }
.seq-barra { display: block; width: 64px; height: 5px; margin: 0 auto; border-radius: 3px; background: #dbe4f0; overflow: hidden; }
.seq-barra > span { display: block; height: 100%; background: #2aa55a; }
.seq-table td:nth-child(12), .seq-table td:nth-child(14) { white-space: normal; line-height: 1.25; }
.seq-pct { display: block; margin-top: 3px; font-size: .72rem; font-weight: 700; color: #2a7a4b; }
.seq-prog strong { margin-bottom: 3px; }

/* Janela MALHARIA PESAGEM (clique na OP) */
.seq-op-btn { border: 0; cursor: pointer; transition: background .15s, color .15s; }
.seq-op-btn:hover { background: #0b4a9e; color: #fff; }
.op-modal-box { width: min(900px, 94vw); max-width: 94vw; }
.op-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 8px 0 14px; }
.op-kpi { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 8px; border: 1px solid #dde5f0; border-radius: 12px; background: #f7f9fd; text-align: center; }
.op-kpi-rot { font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #5b6b85; }
.op-kpi-val { font-size: 1.35rem; color: #17325c; }
.op-kpi-sub { font-size: .72rem; color: #7a889d; }
.op-local { display: inline-block; padding: 3px 10px; border-radius: 12px; background: #e3f6ea; color: #1f7a45; font-weight: 700; font-size: .75rem; }
.tab-centro tbody tr.op-fora td { background: #fdeeee; color: #a32121; font-weight: 600; }
.op-modal-rodape { margin: 10px 0 0; text-align: center; font-size: .75rem; color: #7a889d; }
.op-kpi-un { font-size: .6em; font-weight: 700; color: #5b6b85; }
.op-ultima { margin: 4px 0 10px; text-align: center; font-weight: 700; color: #17325c; }

/* Historico de OPs (Finalizadas / Canceladas) */
.hist-modal-box { width: min(1100px, 95vw); max-width: 95vw; }
.hist-abas { display: flex; gap: 8px; justify-content: center; margin: 4px 0 12px; }
.hist-aba { border: 1px solid #dde5f0; background: #f3f6fb; color: #3b4a63; padding: 7px 18px; border-radius: 20px; font-weight: 700; font-size: .8rem; cursor: pointer; }
.hist-aba-ativa { background: #0b4a9e; color: #fff; border-color: #0b4a9e; }
.hist-motivo { min-width: 240px; }
.hist-motivo-txt { font-weight: 600; color: #17325c; margin-bottom: 2px; }
.hist-caixa { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.hist-caixa textarea { width: 100%; padding: 6px 8px; border: 1px solid #cfd8e6; border-radius: 8px; font: inherit; }
.hist-erro { color: #a32121; font-size: .78rem; }

.bi-ped-aviso { background: #fff7e0; border: 1px solid #f0c24b; color: #7a5200; border-radius: 12px; padding: 10px 16px; font-weight: 700; margin-bottom: 14px; animation: biPedPisca 1.2s ease-in-out 3; }
@keyframes biPedPisca { 0%, 100% { box-shadow: none; } 50% { box-shadow: 0 0 0 4px rgba(240,194,75,.45); } }

.bi-ao-vivo { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #fff; border: 1px solid #d6e4f5; border-left: 5px solid #1f9d55; border-radius: 12px; padding: 12px 18px; margin-bottom: 14px; }
.bi-ao-vivo strong { color: #11703c; letter-spacing: .06em; font-size: 12px; }
.bi-ao-vivo-txt { font-weight: 800; color: var(--blue-900); font-size: 15px; font-variant-numeric: tabular-nums; }
.bi-ao-vivo-ponto { width: 10px; height: 10px; border-radius: 50%; background: #1f9d55; animation: biPonto 1.4s ease-in-out infinite; }
@keyframes biPonto { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(31,157,85,.5); } 50% { opacity: .55; box-shadow: 0 0 0 6px rgba(31,157,85,0); } }

.sl-chip-sub { font-size: 11px; color: var(--gray-500); font-weight: 600; margin-top: 2px; white-space: nowrap; }

.bi-ped-up { cursor: pointer; }
.sl-carteira td.sl-rot { font-weight: 600; color: var(--gray-700); }
.sl-carteira td, .sl-pivo td { font-variant-numeric: tabular-nums; }
.sl-pivo { max-width: 860px; }
.sl-pivo-grupo td { background: var(--blue-50); font-weight: 800; color: var(--blue-900); }
.sl-pivo-item { padding-left: 28px !important; }

#biPedCorpo .cme-kpi-rodape small { white-space: pre-line; line-height: 1.45; }

.sl-carteira-var td, .sl-carteira-ate td { font-weight: 700; background: #fafcff; }
.sl-carteira .sl-up { color: #11703c; }
.sl-carteira .sl-down { color: #c0272d; }

/* Carteira compacta (colunas juntas, como na planilha) */
.sl-carteira-wrap { max-width: 100%; }
.sl-carteira { width: auto !important; min-width: 0; margin: 0; border-collapse: separate; border-spacing: 0; }
.sl-carteira th, .sl-carteira td { padding: 5px 12px !important; font-size: 12.5px; }
.sl-carteira td.cme-num, .sl-carteira th.cme-num { text-align: right; min-width: 84px; font-variant-numeric: tabular-nums; }
.sl-carteira td.sl-rot { min-width: 70px; }
.sl-carteira tbody tr:nth-child(even) td { background: #f8fafd; }
.sl-carteira tbody tr:hover td { background: #eef4ff; }
.sl-carteira .sl-c-mt { color: #324a66; }
.sl-carteira th.sl-h-mt { background: #5b6b80; color: #fff; }
.sl-cart-grupo th { text-align: center !important; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #fff; padding: 6px 10px !important; }
.sl-cart-grupo .sl-g-ped { background: #1f4e79; }
.sl-cart-grupo .sl-g-tk { background: #6fa3d1; }
.sl-cart-grupo .sl-g-mt { background: #5b6b80; }
.sl-carteira .sl-total td { background: #eaf2fb !important; }
.bi-metas { margin-bottom: 14px; }

/* ===== Indicadores executivos (Entrada de pedidos) ===== */
.ex-secao { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #46586e; margin: 22px 0 10px; display: flex; align-items: center; gap: 10px; }
.ex-secao::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, #d5dfec, transparent); }
.ex-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 6px; }
.ex-card { position: relative; background: #fff; border: 1px solid #e1e9f3; border-radius: 14px; padding: 18px 20px 16px; box-shadow: 0 1px 2px rgba(16,38,63,.04), 0 8px 22px rgba(16,38,63,.05); overflow: hidden; }
.ex-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--ex-cor, #2f7fe0); }
.ex-card.atual { background: linear-gradient(180deg, #f3f8ff 0%, #fff 70%); border-color: #bcd6f5; box-shadow: 0 2px 4px rgba(47,127,224,.10), 0 12px 28px rgba(47,127,224,.12); }
.ex-rot { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: .09em; color: #5d6e84; text-transform: uppercase; }
.ex-tag { font-size: 10px; font-weight: 700; letter-spacing: .05em; padding: 3px 9px; border-radius: 999px; background: #eef2f8; color: #546880; white-space: nowrap; }
.ex-tag.vivo { background: #e3f5ea; color: #11703c; }
.ex-val { font-size: 29px; font-weight: 800; color: #0f2540; margin: 12px 0 8px; font-variant-numeric: tabular-nums; letter-spacing: -.015em; line-height: 1.1; }
.ex-delta { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-bottom: 4px; }
.ex-delta.up { background: #e3f5ea; color: #11703c; }
.ex-delta.down { background: #fdeaea; color: #b62027; }
.ex-sub { font-size: 12.5px; color: #6a7b90; margin-top: 7px; line-height: 1.45; font-variant-numeric: tabular-nums; }
.ex-bar { height: 8px; border-radius: 8px; background: #e6ecf4; overflow: hidden; margin: 6px 0 4px; }
.ex-bar span { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--ex-cor, #2f7fe0), color-mix(in srgb, var(--ex-cor, #2f7fe0) 60%, #fff)); }
.ex-barrot { font-size: 11.5px; font-weight: 700; color: #6a7b90; }
.ex-vivo { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 22px; margin: 16px 0 4px; padding: 15px 22px; border-radius: 14px; background: linear-gradient(100deg, #0b2a4a, #12395f); color: #fff; box-shadow: 0 8px 22px rgba(11,42,74,.22); }
.ex-vivo-lbl { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 800; letter-spacing: .14em; color: #8be8b1; }
.ex-vivo-ponto { width: 9px; height: 9px; border-radius: 50%; background: #3ddc84; animation: biPonto 1.4s ease-in-out infinite; }
.ex-vivo-hora { font-size: 13px; color: #aebfd3; font-variant-numeric: tabular-nums; }
.ex-vivo-cli { font-size: 17px; font-weight: 800; letter-spacing: .01em; }
.ex-vivo-mt { font-size: 14px; color: #d4e0ee; font-variant-numeric: tabular-nums; }
.ex-vivo-val { margin-left: auto; font-size: 18px; font-weight: 800; color: #8be8b1; font-variant-numeric: tabular-nums; }
.bi-ped-aviso { background: #fff; border: 1px solid #cfe0f5; border-left: 5px solid #2f7fe0; color: #0f2540; border-radius: 12px; padding: 12px 18px; font-weight: 700; margin-bottom: 14px; box-shadow: 0 8px 22px rgba(16,38,63,.10); animation: biPedPisca 1.2s ease-in-out 3; }

/* ===== Faixa fixa "atualizacao em tempo real" (topo das abas Comercial) ===== */
.gc-vivo { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 22px; padding: 9px 24px; background: linear-gradient(100deg, #0b2a4a, #12395f); color: #fff; border-top: 1px solid rgba(255,255,255,.08); }
.gc-vivo[hidden] { display: none; }
.gc-vivo-lbl { display: flex; align-items: center; gap: 9px; font-size: 10.5px; font-weight: 800; letter-spacing: .14em; color: #8be8b1; }
.gc-vivo-ponto { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; animation: biPonto 1.4s ease-in-out infinite; }
.gc-vivo-hora { font-size: 12.5px; color: #aebfd3; font-variant-numeric: tabular-nums; }
.gc-vivo-cli { font-size: 15px; font-weight: 800; }
.gc-vivo-mt { font-size: 13px; color: #d4e0ee; font-variant-numeric: tabular-nums; }
.gc-vivo-imp { font-size: 12px; font-style: italic; color: #aebfd3; }
.gc-vivo-chk { font-size: 11px; color: #7f97b2; font-variant-numeric: tabular-nums; margin-left: auto; }
.gc-vivo-chk + .gc-vivo-val { margin-left: 0; }
.gc-vivo-val { margin-left: auto; font-size: 16px; font-weight: 800; color: #8be8b1; font-variant-numeric: tabular-nums; }
.gc-vivo.novo { animation: gcVivoNovo 1.6s ease-out 2; }
@keyframes gcVivoNovo { 0% { box-shadow: inset 0 0 0 0 rgba(61,220,132,0); } 40% { box-shadow: inset 0 0 0 40px rgba(61,220,132,.28); } 100% { box-shadow: inset 0 0 0 0 rgba(61,220,132,0); } }

.ex-como { margin: 10px 2px 4px; font-size: 12.5px; color: #4b5d73; }
.ex-como summary { cursor: pointer; font-weight: 700; color: #2a5da8; width: fit-content; }
.ex-como p { margin: 6px 0 0; line-height: 1.5; }

/* Dados Malharia (Controle de Producao): hero executivo; fica aqui (e nao em classes do Tailwind) para nao depender do CSS compilado */
.cp-hero { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; padding: 24px; align-items: center; }
.cp-hero-metrics { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 24px; padding: 0 28px; border-left: 1px solid rgba(255,255,255,.12); border-right: 1px solid rgba(255,255,255,.12); align-items: center; }
.cp-hero-data { text-align: right; }
.cp-maq { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cp-maq-img { position: relative; width: 104px; height: 125px; }
.cp-maq-img img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0,0,0,.35)); }
.cp-maq-fio { position: absolute; left: 28.5%; width: 47%; top: 60.5%; height: 17.5%; overflow: hidden; border-radius: 0 0 46% 46% / 0 0 22% 22%; pointer-events: none;
  background: repeating-linear-gradient(0deg, #8c8c8c 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, #8c8c8c 0 1px, transparent 1px 3px), linear-gradient(#f4f4f4, #cfcfcf); }
.cp-maq-fio::before { content: ""; position: absolute; inset: 0 0 38% 0; background: linear-gradient(90deg, #0c0c0c 0 20%, transparent 20% 50%) 0 0 / 50% 100%; animation: cpGira 2.2s linear infinite; }
.cp-maq-fio::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.55), transparent 22%, transparent 78%, rgba(0,0,0,.55)); }
.cp-maq-img:not(.rodando) .cp-maq-fio { display: none; }
.cp-maq-img.rodando img { animation: cpRespira 2.4s ease-in-out infinite; }
.cp-maq-rot { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #8be8b1; }
.cp-maq-rot i { width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; animation: biPonto 1.4s ease-in-out infinite; }
.cp-maq-img:not(.rodando) + .cp-maq-rot { color: #ffb4b4; }
.cp-maq-img:not(.rodando) + .cp-maq-rot i { background: #ff6b6b; animation: none; }
@keyframes cpRespira { 0%, 100% { filter: drop-shadow(0 8px 10px rgba(0,0,0,.35)) brightness(1); } 50% { filter: drop-shadow(0 8px 10px rgba(0,0,0,.35)) brightness(1.08); } }
@keyframes cpVibraOff { 0% { transform: translate(0, 0); } 25% { transform: translate(.6px, -.5px); } 50% { transform: translate(0, .4px); } 75% { transform: translate(-.6px, -.3px); } 100% { transform: translate(0, 0); } }
@keyframes cpGira { from { background-position: 0 0; } to { background-position: 100% 0; } }
@media (max-width: 1100px) { .cp-hero { grid-template-columns: 1fr; } .cp-hero-metrics { border: 0; padding: 0; grid-template-columns: repeat(2, 1fr); } .cp-hero-data { text-align: left; } }
.op-sem-base td { color: var(--muted, #6b7a90); }

.pd-card .ex-grid { margin: 6px 0 16px; }
.pd-ok { padding: 18px; border-radius: 12px; background: #e9f7ee; color: #11703c; font-weight: 700; text-align: center; }
.pd-pill { display: inline-block; font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.pd-pill.down { background: #fdeaea; color: #b62027; }
.pd-pill.up { background: #e3f5ea; color: #11703c; }
.pd-bar { height: 5px; border-radius: 5px; background: #edf1f7; margin: 5px auto 0; width: 90px; overflow: hidden; }
.pd-bar span { display: block; height: 100%; border-radius: 5px; }
.pd-bar span.down { background: linear-gradient(90deg, #ff8a8a, #c0272d); }
.pd-bar span.up { background: linear-gradient(90deg, #7ddba0, #1f9d55); }
.pd-pill.dup { background: #fff3dc; color: #9a6200; }
.cd-card .cd-det { font-size: 12px; color: #5d6e84; white-space: normal; max-width: 360px; }
.cd-card .ex-grid { margin: 6px 0 16px; }

/* OP atrasada (termino da malharia depois da data do cliente): as letras da linha piscam devagar em vermelho */
@keyframes seqPisca { 0%, 100% { color: var(--seq-cor, #1e293b); } 50% { color: #e11d1d; } }
.seq-table tr.seq-atraso td, .seq-table tr.seq-atraso td .seq-cliente, .seq-table tr.seq-atraso td .seq-artigo, .seq-table tr.seq-atraso td .seq-falta, .seq-table tr.seq-atraso td .seq-pct, .seq-table tr.seq-atraso td strong { animation: seqPisca 3.6s ease-in-out infinite; font-weight: 700; }
/* maquina em gargalo (tem OP passando da data do cliente): card vermelho; pisca devagar 5 s (2 vezes) e para 5 s, e repete */
@keyframes cardGargalo {
  0%, 25%, 50%, 100% { background: #fff1f1; box-shadow: 0 0 0 0 rgba(225, 29, 29, 0); }
  12.5%, 37.5% { background: #ffc9c9; box-shadow: 0 0 0 4px rgba(225, 29, 29, .35); }
}
.machine-card-gargalo { border-color: #e11d1d !important; border-top-color: #e11d1d !important; background: #fff1f1; animation: cardGargalo 10s ease-in-out infinite; }
.machine-summary-card.machine-card-gargalo { background: #fff1f1; }

/* maquina em manutencao: robozinhos trabalhando no card */
.machine-robos { display: flex; gap: 4px; justify-content: center; align-items: flex-end; margin: 6px 0 2px; font-size: 20px; line-height: 1; }
.machine-robos span { display: inline-block; animation: roboTrabalha 1.1s ease-in-out infinite; transform-origin: 50% 100%; }
.machine-robos span:nth-child(2) { animation: robosFerramenta .9s ease-in-out infinite; transform-origin: 20% 80%; font-size: 17px; }
.machine-robos span:nth-child(3) { animation-delay: .35s; }
@keyframes roboTrabalha { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-4px) rotate(4deg); } }
@keyframes robosFerramenta { 0%, 100% { transform: rotate(-25deg); } 50% { transform: rotate(25deg); } }

/* OP bloqueada no TOTVS: alerta translucido no quadro da situacao e faixa acima da tabela */
.sit-bloq-alerta { display: inline-block; background: rgba(220,38,38,.14); border: 1px solid rgba(220,38,38,.55); color: #b91c1c; font-weight: 800; font-size: 11px; line-height: 1.25; padding: 5px 8px; border-radius: 8px; text-align: center; animation: sitBloqPisca 1.6s ease-in-out infinite; }
@keyframes sitBloqPisca { 0%,100% { background: rgba(220,38,38,.14); } 50% { background: rgba(220,38,38,.30); } }
.sit-bloq-banner { background: rgba(220,38,38,.10); border: 1px solid rgba(220,38,38,.45); color: #b91c1c; font-weight: 800; font-size: 13px; padding: 8px 12px; border-radius: 10px; margin: 6px 0 10px; }
.seq-table td.seq-sit { min-width: 120px; white-space: nowrap; }
.seq-table td.seq-sit .badge-ok, .seq-table td.seq-sit .badge-info, .seq-table td.seq-sit .badge-warn, .seq-table td.seq-sit .badge-neutral, .seq-table td.seq-sit .badge-danger { font-size: 12px; padding: 5px 10px; }

/* rodape do site: creditos com link para o LinkedIn */
.site-rodape { text-align: center; padding: 18px 16px 22px; font-size: 12.5px; color: #64748b; letter-spacing: .02em; }
.site-rodape a { color: #1d4ed8; font-weight: 700; text-decoration: none; border-bottom: 1px solid transparent; }
.site-rodape a:hover { color: #1e40af; border-bottom-color: #1e40af; }

.site-rodape .selos { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 14px; }
.site-rodape .selo { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 7px 12px; text-decoration: none; color: #0f172a; box-shadow: 0 1px 3px rgba(15,23,42,.06); border-bottom: 1px solid #e2e8f0; }
.site-rodape .selo:hover { box-shadow: 0 4px 12px rgba(15,23,42,.14); border-bottom-color: #e2e8f0; }
.site-rodape .selo svg { width: 28px; height: 28px; flex: none; }
.site-rodape .selo span { display: flex; flex-direction: column; text-align: left; line-height: 1.2; }
.site-rodape .selo b { font-size: 12px; font-weight: 800; color: #0f172a; }
.site-rodape .selo small { font-size: 10.5px; color: #64748b; }
.site-rodape .pol { font-weight: 600; color: #475569; }

.site-rodape .copy-final { margin-top: 12px; padding-top: 12px; border-top: 1px solid #e2e8f0; font-size: 12px; color: #64748b; }
.site-rodape .orbita { font-weight: 800; letter-spacing: .02em; color: #0f172a; }
.site-rodape .orbita b { color: #6d28d9; margin-left: 2px; }
@media print { .site-rodape { display: none !important; } }

.flash-aviso { background: #fff7e6; color: #92400e; border: 1px solid #f3d9a4; font-weight: 700; }

/* Saved Drawing: selos de tecnologia e tratamento da ficha */
.tec-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 4px 3px 10px; border-radius: 999px; background: linear-gradient(135deg, #0e7490, #155e75); color: #fff; font-weight: 800; font-size: 12px; letter-spacing: .02em; box-shadow: 0 1px 3px rgba(14, 116, 144, .35); line-height: 1; white-space: nowrap; }
.tec-pill .tec-star { font-style: normal; color: #fde68a; font-size: 12px; }
.tec-pill .tec-cod { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 20px; padding: 0 5px; border-radius: 999px; background: #fff; color: #0e7490; font-size: 11px; font-weight: 900; }
.tec-pill.cinza { background: #e2e8f0; color: #475569; box-shadow: none; }
.tec-pill.cinza .tec-cod { background: #94a3b8; color: #fff; }
.tec-pill.tec-exp { background: linear-gradient(135deg, #c2410c, #9a3412); padding: 3px 10px; box-shadow: 0 1px 3px rgba(194, 65, 12, .35); }
.tec-trat { display: flex; flex-wrap: wrap; gap: 5px; align-items: baseline; font-size: 12.5px; line-height: 1.35; color: #475569; background: #f1f5f9; border-left: 3px solid #0e7490; border-radius: 6px; padding: 6px 10px; margin: 8px 0; }
.tec-trat b { color: #0f172a; font-weight: 800; }

/* Saved Drawing: caixa de conferencia ao lado do botao Marcar como salvo (artigos com tecnologia identificada) */
.sd-marcar-confere { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sd-confere { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: #92400e; background: #fff7e6; border: 1px solid #f3d9a4; border-radius: 8px; padding: 7px 10px; cursor: pointer; }
.sd-confere input { width: 17px; height: 17px; accent-color: #16a34a; cursor: pointer; }
.sd-marcar-confere .sd-btn:disabled { opacity: .45; cursor: not-allowed; }

/* aviso de termos no cadastro (mesmo estilo claro do resto da tela) */
.reg-termos { margin: 16px 2px 0; font-size: 12.5px; line-height: 1.55; color: rgba(255,255,255,0.88); text-align: left; text-shadow: 0 1px 3px rgba(0,0,0,0.65); }
.reg-termos a { color: #fff; font-weight: 800; text-decoration: underline; }
