/* ==========================================================
   AccountRater Pro — Terminal Pulido
   Sistema de diseño: navy + ámbar + teal de apoyo, sombras
   suaves, radios generosos, transiciones fluidas.
   ========================================================== */

:root {
  --navy: #10213a;
  --navy-2: #17304f;
  --navy-3: #1f3d63;
  --steel: #3b6ea5;
  --steel-light: #5f8fc4;
  --teal: #1c9c8a;
  --teal-dark: #147568;
  --amber: #e0973a;
  --amber-dark: #b8721c;
  --bg: #eef1f6;
  --bg-soft: #f5f7fa;
  --card: #ffffff;
  --ink: #1c2530;
  --ink-soft: #64707e;
  --ink-faint: #98a3b0;
  --border: #dde3ea;
  --border-soft: #e8ecf1;
  --danger: #c0432c;
  --danger-soft: #fbe7e2;
  --good: #2f7a4f;
  --good-soft: #e3f3e8;
  --steel-soft: #e8f0f9;
  --amber-soft: #fbecd9;

  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(16, 33, 58, 0.06), 0 1px 1px rgba(16, 33, 58, 0.04);
  --shadow-md: 0 4px 14px rgba(16, 33, 58, 0.09), 0 1px 3px rgba(16, 33, 58, 0.06);
  --shadow-lg: 0 10px 30px rgba(16, 33, 58, 0.14);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --sidebar-w: 224px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", -apple-system, "Roboto", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--steel); }

::selection { background: var(--amber); color: var(--navy); }

/* Foco visible accesible en toda la app */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------
   Barra de progreso global (htmx)
   ------------------------------------------------------------ */
#hx-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--amber), var(--teal));
  z-index: 9999; transition: width .3s var(--ease), opacity .25s var(--ease);
  opacity: 0;
}
#hx-progress.active { opacity: 1; width: 70%; }
#hx-progress.done { opacity: 0; width: 100%; transition: width .2s var(--ease), opacity .35s var(--ease) .1s; }

body.htmx-swapping #app-main { opacity: .45; transition: opacity .12s var(--ease); }
#app-main { transition: opacity .18s var(--ease); }

/* ------------------------------------------------------------
   Shell: sidebar + contenido
   ------------------------------------------------------------ */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 40;
  transition: transform .25s var(--ease);
}

.sidebar-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 16px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand-mark {
  background: var(--amber); color: var(--navy);
  font-weight: 800; font-size: 13px;
  padding: 6px 9px; border-radius: var(--radius-sm);
  letter-spacing: .5px; box-shadow: var(--shadow-sm);
}
.brand-name { color: #fff; font-size: 15px; letter-spacing: .2px; line-height: 1.25; }
.brand-name strong { color: var(--amber); }

.sidebar-nav { flex: 1; padding: 10px 8px; display: flex; flex-direction: column; gap: 2px; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 10px;
  color: #aebbcd; text-decoration: none;
  font-size: 13px; font-weight: 600;
  padding: 10px 12px; border-radius: var(--radius-sm);
  transition: background .15s var(--ease), color .15s var(--ease);
  white-space: nowrap;
}
.sidebar-nav a .ic { font-size: 15px; width: 18px; text-align: center; opacity: .85; }
.sidebar-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar-nav a.active {
  background: rgba(224, 151, 58, .14); color: #fff;
  box-shadow: inset 3px 0 0 var(--amber);
}

.sidebar-user {
  padding: 12px 16px 16px; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: #aebbcd;
}
.sidebar-user a { color: var(--amber); text-decoration: none; font-weight: 700; }
.sidebar-user a:hover { text-decoration: underline; }

.mobile-topbar {
  display: none;
  background: var(--navy); color: #fff;
  align-items: center; justify-content: space-between;
  padding: 10px 14px; position: sticky; top: 0; z-index: 45;
  border-bottom: 3px solid var(--amber);
}
.mobile-topbar .brand-name { font-size: 14px; }
#sidebar-toggle {
  background: none; border: none; color: #fff; font-size: 20px;
  cursor: pointer; padding: 4px 8px; line-height: 1;
}
.sidebar-scrim {
  display: none; position: fixed; inset: 0; background: rgba(10,16,26,.5);
  z-index: 39; opacity: 0; transition: opacity .2s var(--ease);
}

@media (max-width: 900px) {
  .mobile-topbar { display: flex; }
  .sidebar {
    position: fixed; top: 0; left: 0; height: 100vh;
    transform: translateX(-100%);
    box-shadow: var(--shadow-lg);
  }
  body.sidebar-open .sidebar { transform: translateX(0); }
  body.sidebar-open .sidebar-scrim { display: block; opacity: 1; }
  .app-main { width: 100%; }
}

.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.flash-wrap { max-width: 1300px; margin: 12px auto 0; padding: 0 20px; width: 100%; }
.flash {
  padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13px;
  margin-bottom: 8px; font-weight: 600; box-shadow: var(--shadow-sm);
  animation: flash-in .25s var(--ease);
}
@keyframes flash-in { from { opacity: 0; transform: translateY(-4px);} to { opacity: 1; transform: translateY(0);} }
.flash-ok { background: var(--good-soft); color: var(--good); border: 1px solid #b7dcc3; }
.flash-error { background: var(--danger-soft); color: var(--danger); border: 1px solid #edc3b6; }
.flash-warn-reanalizar { background: #fff4e0; color: var(--amber-dark); border: 1px solid #f0d59a; }

main#app-main { max-width: 1300px; margin: 0 auto; padding: 18px 20px 60px; width: 100%; }

/* ------------------------------------------------------------
   Migas de pan
   ------------------------------------------------------------ */
.breadcrumbs {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  font-size: 12px; color: var(--ink-soft); margin: 0 0 14px;
}
.breadcrumbs a { color: var(--steel); text-decoration: none; font-weight: 600; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .sep { color: var(--ink-faint); }
.breadcrumbs .current { color: var(--ink); font-weight: 700; }

/* ------------------------------------------------------------
   Layout genérico
   ------------------------------------------------------------ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s var(--ease);
}
.card-header {
  background: linear-gradient(90deg, var(--navy-2), var(--navy-3));
  color: #fff;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.card-body { padding: 16px; overflow-x: auto; }

.id-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 700px) { .id-grid { grid-template-columns: 1fr 1fr; } }

.field { margin-bottom: 12px; }
.field label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--ink-soft); margin-bottom: 4px;
}
.field input[type=text], .field input[type=number], .field input[type=search],
.field select, .field textarea {
  width: 100%; padding: 9px 11px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 13px; font-family: inherit; background: var(--bg-soft);
  transition: border-color .15s var(--ease), background .15s var(--ease), box-shadow .15s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); background: #fff;
  box-shadow: 0 0 0 3px rgba(28, 156, 138, .12);
}
.field-hint { font-size: 11px; color: var(--ink-soft); margin-top: 3px; }

.sino { display: flex; gap: 16px; margin-top: 4px; }
.sino label { font-weight: 500; color: var(--ink); font-size: 13px; display: flex; align-items: center; gap: 5px; }

.inline { display: flex; gap: 8px; align-items: center; }
.inline input, .inline select { width: auto; }

.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
@media (max-width: 700px) { .checklist { grid-template-columns: 1fr; } }
.checklist label { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 4px 0; }

/* ------------------------------------------------------------
   Botones
   ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 16px; border-radius: var(--radius-sm); border: none;
  font-weight: 700; font-size: 13px; cursor: pointer; text-decoration: none;
  text-align: center; transition: background .15s var(--ease), box-shadow .15s var(--ease),
  transform .1s var(--ease), opacity .15s var(--ease); position: relative;
}
.btn:active { transform: translateY(1px); }
.btn-block { display: flex; width: 100%; margin-bottom: 8px; }
.btn-accent { background: var(--amber); color: var(--navy); box-shadow: var(--shadow-sm); }
.btn-accent:hover { background: var(--amber-dark); box-shadow: var(--shadow-md); }
.btn-steel { background: var(--steel); color: #fff; box-shadow: var(--shadow-sm); }
.btn-steel:hover { background: #2f5c8a; box-shadow: var(--shadow-md); }
.btn-teal { background: var(--teal); color: #fff; box-shadow: var(--shadow-sm); }
.btn-teal:hover { background: var(--teal-dark); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--steel); border: 1px solid var(--steel); }
.btn-ghost:hover { background: #eaf1f9; }
.btn-danger { background: transparent; color: var(--danger); border: 1px solid var(--danger); }
.btn-danger:hover { background: var(--danger-soft); }
.btn-sm { padding: 6px 11px; font-size: 12px; }

/* Indicador de carga: se activa solo mientras htmx procesa ESTE elemento */
.btn .btn-spinner {
  display: none; width: 13px; height: 13px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin .6s linear infinite;
}
.htmx-request.btn .btn-spinner,
.htmx-request .btn .btn-spinner { display: inline-block; }
.htmx-request.btn .btn-label,
.htmx-request .btn .btn-label { opacity: .75; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn.htmx-request, button.htmx-request { pointer-events: none; opacity: .85; }

.upload-row { display: flex; gap: 10px; margin-bottom: 4px; flex-wrap: wrap; }
.upload-row form { flex: 1; min-width: 220px; display: flex; gap: 6px; }
.upload-row input[type=file] { flex: 1; font-size: 12px; }

table.simple { width: 100%; border-collapse: collapse; font-size: 13px; }
table.simple th {
  text-align: left; background: var(--bg-soft); color: var(--ink-soft);
  padding: 9px 10px; font-size: 11px; text-transform: uppercase; letter-spacing: .4px;
  border-bottom: 1px solid var(--border);
}
table.simple td { padding: 9px 10px; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
table.simple tr:last-child td { border-bottom: none; }
table.simple tr { transition: background .12s var(--ease); }
table.simple tbody tr:hover { background: var(--bg-soft); }

.table-compact { border-collapse: collapse; font-size: 13px; }
.table-compact th {
  text-align: left; background: var(--bg-soft); color: var(--ink-soft);
  padding: 7px 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .3px;
  border-bottom: 1px solid var(--border);
}
.table-compact td { padding: 6px 8px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }

.quote-list { list-style: none; padding: 0; margin: 0 0 8px; font-size: 13px; }
.quote-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 8px; border-bottom: 1px solid var(--border-soft);
  transition: background .12s var(--ease);
}
.quote-list li:hover { background: var(--bg-soft); }
.quote-list li:last-child { border-bottom: none; }

.results-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.result-card {
  border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden;
  background: #fff; box-shadow: var(--shadow-sm); transition: box-shadow .2s var(--ease), transform .15s var(--ease);
}
.result-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.result-card .rh { padding: 11px 14px; font-weight: 700; font-size: 13px; color: #fff; }
.result-card .rb { padding: 11px 14px; }
.result-card ul { margin: 0; padding-left: 18px; font-size: 13px; }
.result-card li { margin-bottom: 6px; }
.rh-cotizadas { background: var(--navy); }
.rh-lista { background: var(--good); }
.rh-pendiente { background: var(--amber-dark); }
.rh-rechazada { background: var(--danger); }
.rh-descartada { background: #6b7280; }
.rh-sininfo { background: #9ca3af; }

.badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; background: var(--bg-soft); color: var(--ink-soft); }

.section-title { font-size: 14px; font-weight: 700; color: var(--navy); margin: 4px 0 12px; }

.empty-note { color: var(--ink-soft); font-size: 13px; padding: 30px; text-align: center; }

.subtabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 14px; border-bottom: 1px solid var(--border); }
.subtabs a {
  padding: 9px 14px; font-size: 12px; font-weight: 700; text-decoration: none;
  color: var(--ink-soft); border-bottom: 2px solid transparent; transition: color .15s var(--ease), border-color .15s var(--ease);
}
.subtabs a:hover { color: var(--steel); }
.subtabs a.active { color: var(--steel); border-bottom-color: var(--steel); }

.filter-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.filter-row select { padding: 7px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; }

/* Caja de búsqueda para filtrar listas en vivo (JS) */
.search-box { position: relative; margin-bottom: 8px; }
.search-box input {
  width: 100%; padding: 8px 12px 8px 30px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 13px; background: var(--bg-soft);
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.search-box input:focus { outline: none; border-color: var(--teal); background: #fff; }
.search-box::before {
  content: "🔎"; position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  font-size: 12px; opacity: .5; pointer-events: none;
}

tr.urgente td { background: var(--danger-soft); color: var(--danger); font-weight: 600; }
tr.renov td { background: #eaf2fd; color: #0b3d91; }

.two-col { display: grid; grid-template-columns: 1fr 1.4fr; gap: 14px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

.market-list { list-style: none; margin: 0; padding: 0; max-height: 560px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.market-list li a {
  display: block; padding: 8px 12px; font-size: 13px; text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--border-soft); transition: background .12s var(--ease);
}
.market-list li a:hover { background: var(--bg-soft); }
.market-list li a.active { background: var(--steel); color: #fff; }
.market-list li:last-child a { border-bottom: none; }
.market-list li.hidden-by-filter { display: none; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.form-grid .field.full { grid-column: 1 / -1; }

.check-inline { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 6px 0; }

pre.email-body {
  white-space: pre-wrap; font-family: "Segoe UI", sans-serif; font-size: 13px;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px;
}

/* ------------------------------------------------------------
   Acordeón / secciones colapsables (Perfil del Cliente)
   ------------------------------------------------------------ */
.accordion-section {
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden; background: var(--card); box-shadow: var(--shadow-sm);
}
.accordion-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px; background: var(--bg-soft); border: none; cursor: pointer;
  font-size: 13px; font-weight: 700; color: var(--navy); text-align: left;
  transition: background .15s var(--ease);
}
.accordion-toggle:hover { background: #eef2f6; }
.accordion-toggle .chev { transition: transform .2s var(--ease); color: var(--ink-soft); font-size: 11px; }
.accordion-section.open .accordion-toggle .chev { transform: rotate(90deg); }
.accordion-body { padding: 16px; display: none; }
.accordion-section.open .accordion-body { display: block; animation: acc-in .18s var(--ease); }
@keyframes acc-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

/* ------------------------------------------------------------
   Dashboard (inicio)
   ------------------------------------------------------------ */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow-sm); transition: box-shadow .2s var(--ease), transform .15s var(--ease);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.stat-top { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.stat-icon {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.stat-icon-blue { background: var(--steel-soft); }
.stat-icon-amber { background: var(--amber-soft); }
.stat-icon-good { background: var(--good-soft); }
.stat-card .stat-label { font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.stat-card .stat-num { font-size: 24px; font-weight: 700; color: var(--navy); line-height: 1.1; }

/* ------------------------------------------------------------
   Inicio — encabezado, pastillas de estatus, últimas cuentas
   ------------------------------------------------------------ */
.inicio-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 4px; }
.inicio-fecha { font-size: 12px; color: var(--ink-soft); }
.inicio-recientes-header { display: flex; align-items: center; justify-content: space-between; }
.inicio-ver-todas { color: #fff; font-size: 12px; font-weight: 600; text-decoration: none; opacity: .9; }
.inicio-ver-todas:hover { text-decoration: underline; opacity: 1; }
.inicio-cuenta-link { color: var(--steel); font-weight: 600; text-decoration: none; }
.inicio-cuenta-link:hover { text-decoration: underline; }
.inicio-recientes-table tbody tr:hover { background: var(--bg-soft); }

.pill {
  display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 10px;
  border-radius: 999px; white-space: nowrap;
}
.pill-good { background: var(--good-soft); color: var(--good); }
.pill-warning { background: var(--amber-soft); color: var(--amber-dark); }
.pill-neutral { background: var(--bg-soft); color: var(--ink-soft); }
.inicio-td-cuenta { white-space: nowrap; }
.inicio-td-pills { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding-top: 8px; padding-bottom: 8px; }

.quick-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.quick-links a {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  text-decoration: none; color: var(--ink); font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow-sm); transition: box-shadow .15s var(--ease), transform .12s var(--ease), border-color .15s var(--ease);
}
.quick-links a:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); border-color: var(--steel-light); }

.recent-list { list-style: none; margin: 0; padding: 0; }
.recent-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 4px; border-bottom: 1px solid var(--border-soft); font-size: 13px;
}
.recent-list li:last-child { border-bottom: none; }
.recent-list a { text-decoration: none; color: var(--ink); font-weight: 600; }
.recent-list a:hover { color: var(--steel); }

/* ------------------------------------------------------------
   Admin > Mercados — árbol de 3 niveles + panel con pestañas
   ------------------------------------------------------------ */
.mkt-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 900px) { .mkt-layout { grid-template-columns: 1fr; } }

.mkt-tree { list-style: none; margin: 0; padding: 0; max-height: 640px; overflow-y: auto; }

.mkt-wholesaler { border-bottom: 1px solid var(--border-soft); }
.accordion-toggle.mkt-wholesaler-row {
  display: flex; align-items: center; justify-content: flex-start; gap: 7px;
  width: 100%; padding: 8px 6px; background: none; font-size: 13px; font-weight: 600;
  color: var(--ink); text-align: left;
}
.accordion-toggle.mkt-wholesaler-row:hover { background: var(--bg-soft); }
.mkt-wholesaler-row .chev { font-size: 10px; }
.mkt-icon { flex-shrink: 0; }
.mkt-name { color: var(--ink); text-decoration: none; }
.mkt-name:hover { color: var(--steel); }
.mkt-name.active { color: var(--steel); font-weight: 700; }
.mkt-wholesaler-count { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--ink-faint); }

.mkt-wholesaler .accordion-body.mkt-carriers { padding: 0 0 6px 0; }
.mkt-carrier-row {
  padding: 5px 6px 5px 28px; font-size: 12px; font-weight: 600; color: var(--ink-soft);
}
.mkt-programs { list-style: none; margin: 0; padding: 0; }
.mkt-program-row {
  display: flex; align-items: center; gap: 7px; padding: 5px 6px 5px 40px; font-size: 13px;
}
.mkt-program-row:hover { background: var(--bg-soft); }
.mkt-program-row.active { background: #eaf1f9; border-radius: var(--radius-sm); }
.mkt-program-row a { flex: 1; color: var(--ink); text-decoration: none; }
.mkt-program-row a:hover { color: var(--steel); }
.mkt-section-label {
  list-style: none; font-size: 12px; font-weight: 700; color: var(--ink-soft);
  padding: 10px 6px 4px; opacity: .85;
}

.mkt-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.mkt-dot.completo { background: var(--good); }
.mkt-dot.incompleto { background: var(--amber); }
.mkt-legend { font-size: 11px; color: var(--ink-soft); padding: 10px 4px 2px; display: flex; gap: 16px; }

/* Pestañas del panel de edición (General / Criterios / Tabla de Aseguradoras) */
.panel-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); padding: 0 12px; background: var(--bg-soft); }
.panel-tab {
  background: none; border: none; padding: 12px 12px; font-size: 13px; font-weight: 600;
  color: var(--ink-soft); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.panel-tab:hover { color: var(--ink); }
.panel-tab.active { color: var(--ink); border-bottom-color: var(--steel); }

.panel-actions {
  display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px;
  border-top: 1px solid var(--border); background: var(--bg-soft);
}
