/* Gestor — Comex — Lead Time de Importação */
#gestorComexLeadTimeTab .cx-hub {
  background: #f1f5f9;
  border-radius: 16px;
  padding: 20px;
  margin: 0;
}
#gestorComexLeadTimeTab .cx-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 20px 22px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
#gestorComexLeadTimeTab .cx-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
#gestorComexLeadTimeTab .cx-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
}
#gestorComexLeadTimeTab .cx-subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  color: #64748b;
  max-width: 640px;
  line-height: 1.45;
}
#gestorComexLeadTimeTab .cx-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
#gestorComexLeadTimeTab .cx-asof {
  font-size: 12px;
  color: #64748b;
}
#gestorComexLeadTimeTab .cx-asof strong {
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}
#gestorComexLeadTimeTab .cx-btn {
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: #0f172a;
  color: #fff;
}
#gestorComexLeadTimeTab .cx-btn:hover { background: #1e293b; }
#gestorComexLeadTimeTab .cx-btn.secondary {
  background: #fff;
  color: #334155;
  border: 1px solid #e2e8f0;
}
#gestorComexLeadTimeTab .cx-btn.secondary:hover { background: #f8fafc; }
#gestorComexLeadTimeTab .cx-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
#gestorComexLeadTimeTab .cx-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  align-items: end;
  margin-bottom: 16px;
}
#gestorComexLeadTimeTab .cx-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
#gestorComexLeadTimeTab .cx-field label {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
#gestorComexLeadTimeTab .cx-field input,
#gestorComexLeadTimeTab .cx-field select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  background: #fff;
  color: #0f172a;
}
#gestorComexLeadTimeTab .cx-field input:focus,
#gestorComexLeadTimeTab .cx-field select:focus {
  outline: 2px solid #cbd5e1;
  outline-offset: 1px;
}
#gestorComexLeadTimeTab .cx-field-actions {
  justify-content: flex-end;
}
#gestorComexLeadTimeTab .cx-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
#gestorComexLeadTimeTab .cx-kpi {
  appearance: none;
  display: block;
  width: 100%;
  text-align: left;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  color: inherit;
}
#gestorComexLeadTimeTab .cx-kpi:hover {
  background: #f1f5f9;
}
#gestorComexLeadTimeTab .cx-kpi:focus-visible {
  outline: 2px solid #94a3b8;
  outline-offset: 2px;
}
#gestorComexLeadTimeTab .cx-kpi.is-on {
  background: #eff6ff;
  border-color: #bfdbfe;
}
#gestorComexLeadTimeTab .cx-kpi-label {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
}
#gestorComexLeadTimeTab .cx-kpi-name {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  text-transform: none;
}
#gestorComexLeadTimeTab .cx-kpi-value {
  margin-top: 4px;
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}
#gestorComexLeadTimeTab .cx-status {
  margin: 0 0 12px;
  min-height: 1.2em;
  font-size: 13px;
  color: #475569;
}
#gestorComexLeadTimeTab .cx-status.is-err {
  color: #b91c1c;
}
#gestorComexLeadTimeTab .cx-table-wrap {
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
#gestorComexLeadTimeTab table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
#gestorComexLeadTimeTab th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  text-align: left;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
  z-index: 1;
}
#gestorComexLeadTimeTab th[data-cx-sort] {
  cursor: pointer;
  user-select: none;
}
#gestorComexLeadTimeTab th[data-cx-sort]:hover {
  color: #0f172a;
}
#gestorComexLeadTimeTab th[data-cx-sort].is-asc::after,
#gestorComexLeadTimeTab th[data-cx-sort].is-desc::after {
  margin-left: 4px;
  font-size: 9px;
  color: #334155;
}
#gestorComexLeadTimeTab th[data-cx-sort].is-asc::after { content: "▲"; }
#gestorComexLeadTimeTab th[data-cx-sort].is-desc::after { content: "▼"; }
#gestorComexLeadTimeTab td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: top;
}
#gestorComexLeadTimeTab .cx-num {
  font-variant-numeric: tabular-nums;
  text-align: right;
}
#gestorComexLeadTimeTab th.cx-num {
  text-align: right;
}
#gestorComexLeadTimeTab .cx-sku {
  font-weight: 700;
  color: #0f172a;
}
#gestorComexLeadTimeTab .cx-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  padding: 0 7px;
  background: #e2e8f0;
  color: #475569;
}
#gestorComexLeadTimeTab .cx-badge[data-phase="1"],
#gestorComexLeadTimeTab .cx-badge[data-phase="2"] {
  background: #e2e8f0;
  color: #475569;
}
#gestorComexLeadTimeTab .cx-badge[data-phase="3"],
#gestorComexLeadTimeTab .cx-badge[data-phase="4"] {
  background: #ffedd5;
  color: #c2410c;
}
#gestorComexLeadTimeTab .cx-badge[data-phase="5"] {
  background: #dcfce7;
  color: #15803d;
}
#gestorComexLeadTimeTab .cx-row {
  cursor: pointer;
}
#gestorComexLeadTimeTab .cx-row:hover {
  background: #f8fafc;
}
#gestorComexLeadTimeTab .cx-row.is-open {
  background: #eff6ff;
}
#gestorComexLeadTimeTab .cx-muted {
  color: #64748b;
  font-size: 12px;
}
#gestorComexLeadTimeTab .cx-alert {
  display: inline-flex;
  align-items: center;
  margin: 4px 4px 0 0;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #fee2e2;
  color: #991b1b;
}
#gestorComexLeadTimeTab .cx-detail td {
  background: #f8fafc;
  padding: 8px 12px 14px;
}
#gestorComexLeadTimeTab .cx-drop {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
#gestorComexLeadTimeTab .cx-opt {
  appearance: none;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
#gestorComexLeadTimeTab .cx-opt:hover {
  background: #f1f5f9;
}
#gestorComexLeadTimeTab .cx-opt:focus-visible {
  outline: 2px solid #94a3b8;
  outline-offset: 2px;
}
#gestorComexLeadTimeTab .cx-opt.is-on {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e3a8a;
}
#gestorComexLeadTimeTab .cx-drop-body {
  margin-top: 10px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
#gestorComexLeadTimeTab .cx-kvgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px 16px;
  margin: 0;
}
#gestorComexLeadTimeTab .cx-kv {
  margin: 0;
}
#gestorComexLeadTimeTab .cx-kv dt {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}
#gestorComexLeadTimeTab .cx-kv dd {
  margin: 2px 0 0;
  color: #0f172a;
  font-size: 13px;
}
#gestorComexLeadTimeTab .cx-section-label {
  margin: 12px 0 4px;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}
#gestorComexLeadTimeTab .cx-empty-note {
  margin: 0;
}
#gestorComexLeadTimeTab .cx-exp li {
  grid-template-columns: 7rem 1fr auto;
}
#gestorComexLeadTimeTab .cx-lots {
  margin: 0;
  padding: 0;
  list-style: none;
}
#gestorComexLeadTimeTab .cx-lots li {
  display: grid;
  grid-template-columns: 8.5rem auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid #e2e8f0;
  font-size: 13px;
}
#gestorComexLeadTimeTab .cx-empty-row {
  text-align: center;
  color: #94a3b8;
  padding: 28px 16px;
  font-size: 13px;
}
#gestorComexLeadTimeTab .cx-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
#gestorComexLeadTimeTab .cx-pagination span {
  font-size: 12px;
  color: #64748b;
}
@media (max-width: 820px) {
  #gestorComexLeadTimeTab .cx-lots li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
