:root {
  --navy: #1f4d36;
  --navy-2: #2a6346;
  --teal: #2f7a4c;
  --teal-soft: #e8f5ee;
  --orange: #e36414;
  --cream: #eef5ef;
  --paper: #fbfefb;
  --ink: #1c2b22;
  --muted: #5b6b61;
  --line: #d7e4da;
  --rojo: #c1121f;
  --rojo-bg: #fde8ea;
  --amarillo: #c9a227;
  --amarillo-bg: #fff4cc;
  --verde: #1f7a45;
  --verde-bg: #e3f6ea;
  --azul: #1d6fd8;
  --azul-bg: #e8f1fc;
  --gris: #6c757d;
  --shadow: 0 8px 24px rgba(31, 77, 54, 0.08);
  --radius: 12px;
}

* { box-sizing: border-box; }
html {
  font-size: clamp(12.5px, 0.28vw + 12px, 14px);
}
html, body { margin: 0; padding: 0; }
body {
  font-family: "Outfit", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, #d7efdf 0%, transparent 50%),
    radial-gradient(900px 400px at 100% 0%, #e7f3e8 0%, transparent 46%),
    var(--cream);
  min-height: 100vh;
  line-height: 1.32;
  overflow-x: hidden;
}

a { color: var(--teal); }
img { max-width: 100%; }

.app-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 6px 12px;
  background: var(--navy);
  color: white;
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: wrap;
}
.brand-badge {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  padding: 3px 10px 3px 3px;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  line-height: 1.15;
  white-space: nowrap;
  border: 1.5px solid #fff;
}
.brand-badge-icon,
img.brand-badge-icon {
  width: auto;
  height: auto;
  max-width: 160px;
  max-height: 40px;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
  background: transparent;
  flex-shrink: 0;
}
.brand-badge-copy strong {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
}
.brand-badge-copy small {
  display: block;
  margin-top: 1px;
  font-size: 10px;
  color: #c5d9cc;
  letter-spacing: .02em;
}
.brand-admin {
  color: #e3b21a;
  font-weight: 700;
}
.nav a.nav-admin { color: #d7efe0; }
.user-chip-admin {
  color: #fff8dc;
  border: 1px solid rgba(255, 213, 74, .4);
  background: rgba(255, 213, 74, .12);
}
.page-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 10px;
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  font-size: 13px;
}
.page-back:hover { text-decoration: underline; }
.nav {
  display: flex;
  gap: 4px;
  width: 100%;
  min-width: 0;
  overflow: visible;
  flex-wrap: wrap;
}
.nav a, .user-chip, .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  border-radius: 999px;
  padding: 5px 10px;
  font-weight: 600;
  font-size: 12.5px;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}
.nav a { color: #d7efe0; }
.nav a:hover { background: rgba(255,255,255,.12); color: white; }
.nav a.nav-active {
  color: #FFD54F !important;
  background: transparent;
}
.nav a.nav-active:hover {
  color: #FFD54F !important;
  background: rgba(255,255,255,.12);
}
.user-box {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  margin-left: auto;
  min-width: max-content;
}
.user-chip {
  background: rgba(255,255,255,.1);
  color: white;
  font-size: 12px;
  max-width: none;
  overflow: visible;
  text-overflow: unset;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-light { background: white; color: var(--navy); }
.btn-primary { background: var(--teal); color: white; }
.btn-orange { background: var(--orange); color: white; }
.btn-ghost { background: transparent; color: var(--navy); border: 1px solid var(--line); }
.btn-danger { background: var(--rojo); color: white; }

.wrap { width: min(1480px, calc(100% - 16px)); margin: 10px auto 24px; }
.hero, .card, .panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px 12px;
}
.wrap .card { padding: 10px 12px !important; }
.hero { margin-bottom: 10px; }
.hero h1, .card h2, h1, h2, h3 { margin: 0 0 4px; letter-spacing: -.02em; font-size: 1.18rem; }
h2 { font-size: 1rem; }
.muted { color: var(--muted); font-size: 0.88em; }
.legend { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.grid-2 { display: grid; grid-template-columns: 1.1fr 1fr; gap: 10px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.grid-3 .company-card { padding: 8px 10px; }
.grid-3 .company-card strong { font-size: 1.2rem; display: block; line-height: 1.1; }
.grid-3 .company-card div { font-size: 11.5px; }
.grid-docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.modules { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.module-card {
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.module-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(31,77,54,.14); }
.module-card img { height: 120px; width: 100%; object-fit: cover; display: block; }
.module-card .body { padding: 10px 12px 12px; }
.kpis { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }

.kpi, .pill {
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}
.semaforo-rojo, .kpi-rojo { background: var(--rojo-bg); color: var(--rojo); }
.semaforo-amarillo, .kpi-amarillo { background: var(--amarillo-bg); color: #8a6d12; }
.semaforo-verde, .kpi-verde { background: var(--verde-bg); color: var(--verde); }
.semaforo-gris { background: #eef3ef; color: var(--gris); }
.semaforo-na { background: #eef3ef; color: var(--gris); }

/* Badges compactos de estado (Contratistas / Sucursales) */
.estado-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 2px 7px 2px 6px;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
}
.estado-badge__mark {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: currentColor;
}
.estado-badge__text {
  flex-shrink: 0;
}
.estado-badge.estado-pendiente {
  background: var(--amarillo-bg);
  color: #8a6d12;
}
.estado-badge.estado-revision {
  background: var(--azul-bg, #e8f1fc);
  color: var(--azul, #1d6fd8);
}
.estado-badge.estado-rechazada,
.estado-badge.estado-observada {
  background: var(--rojo-bg);
  color: var(--rojo);
}
.estado-badge.estado-aprobada {
  background: var(--verde-bg);
  color: var(--verde);
}
.estado-badge.estado-aprobada .estado-badge__mark {
  width: 9px;
  height: 9px;
  border-radius: 0;
  background: transparent;
  position: relative;
}
.estado-badge.estado-aprobada .estado-badge__mark::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 1px;
  width: 6px;
  height: 3px;
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
}
.estado-badge.estado-inactiva {
  background: #eef3ef;
  color: var(--gris);
}
.company-card .top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}
.company-card .top > strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.company-card, .doc-card, .alert-item {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  text-decoration: none;
  color: inherit;
}
.company-card { display: flex; flex-direction: column; gap: 6px; position: relative; }
.company-card__link { display: block; color: inherit; text-decoration: none; min-width: 0; }
.company-card__link::after { content: ""; position: absolute; inset: 0; }
.company-card .revision-actions { position: relative; z-index: 1; }
.company-card:hover { border-color: #b7d8c4; }
.company-card strong { font-size: 1rem; }
.revision-meta {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  min-height: 28px;
}
.revision-titular {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--azul, #1d6fd8);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.revision-tiempo { font-size: 10px; color: var(--muted); }
.revision-avance { min-height: 4px; font-size: 10.5px; font-weight: 700; color: var(--ink); }
.revision-actions { display: flex; flex-wrap: wrap; gap: 4px; }
.revision-actions .btn { padding: 3px 8px; font-size: 10.5px; min-height: 0; }
.revision-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 8px 0;
}
.revision-bar .revision-meta { margin-top: 0; }
.doc-card { display: flex; flex-direction: column; gap: 4px; min-height: 0; }
.doc-card .top { display: flex; justify-content: space-between; gap: 8px; align-items: start; }
.alert-list { display: flex; flex-direction: column; gap: 6px; }
.alert-item { display: flex; justify-content: space-between; gap: 10px; align-items: center; }

.table-wrap {
  overflow: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: white;
  -webkit-overflow-scrolling: touch;
}
table { width: 100%; border-collapse: collapse; }
th, td {
  padding: 5px 7px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
  vertical-align: middle;
  white-space: nowrap;
}
th { background: var(--navy); color: white; font-weight: 600; position: sticky; top: 0; z-index: 1; }
.table-actions { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.table-actions form { display: inline-flex; gap: 4px; align-items: center; }
.table-actions .btn { padding: 4px 8px; font-size: 11px; min-height: 0; }
.clave-input {
  width: 120px;
  padding: 4px 6px;
  font-size: 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.clave-propia {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 180px;
}
.clave-propia input { margin: 0; }
.import-box { padding: 16px !important; }
.import-box input[type="file"] { margin-top: 4px; }
.cell-wrap { white-space: normal; max-width: 140px; }
.doc-queue { display: grid; gap: 8px; }
.doc-queue-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: var(--shadow);
  overflow-wrap: break-word;
}
.doc-queue-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.doc-queue-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 6px 0 2px;
  color: var(--muted);
  font-size: 12px;
}
.req-leyenda { margin: 0 0 12px; max-width: 70ch; }
.req-list { display: grid; gap: 8px; min-width: 0; }
.req-head, .req-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 8px 16px;
  align-items: center;
  min-width: 0;
}
.req-head {
  padding: 0 14px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.req-row {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  overflow-wrap: anywhere;
}
.req-row:hover { border-color: var(--teal); }
.req-main { min-width: 0; }
.req-main strong { display: block; color: var(--ink); }
.req-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}
.req-vig, .req-rev, .req-sin-archivo {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 14px;
}
.req-sin-archivo { grid-column: 2 / span 2; color: var(--gris); }
.vig-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex: 0 0 11px;
  background: #94A3B8;
}
.vig-dot.nivel-verde { background: #22C55E; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.28); }
.vig-dot.nivel-amarillo { background: #F59E0B; box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.28); }
.vig-dot.nivel-rojo { background: #EF4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.24); }
.vig-dot.nivel-gris { background: #94A3B8; box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.28); }
.req-rev.semaforo-verde { color: var(--verde); }
.req-rev.semaforo-rojo { color: var(--rojo); }
.req-rev.semaforo-gris { color: var(--gris); }
.doc-cell {
  display: block;
  border-radius: 8px;
  padding: 3px 5px;
  text-decoration: none;
  min-width: 0;
  white-space: nowrap;
  font-size: 11px;
  line-height: 1.2;
}
.doc-cell span { display: block; font-size: 10px; opacity: .85; }

form { display: grid; gap: 10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
label { display: block; font-size: 12px; font-weight: 650; margin-bottom: 4px; }
input, select, textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  background: white;
}
input[readonly] { background: #eef5ef; color: var(--muted); }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.flash { padding: 8px 10px; border-radius: 8px; margin-bottom: 10px; font-weight: 600; font-size: 13px; }
.flash.success { background: var(--verde-bg); color: var(--verde); }
.flash.danger { background: var(--rojo-bg); color: var(--rojo); }
.flash.warning { background: var(--amarillo-bg); color: #8a6d12; }

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 16px;
}
.login-card {
  width: min(480px, calc(100vw - 32px));
  max-width: 480px;
  padding: 22px 22px 24px;
  box-sizing: border-box;
}
.login-card .brand-badge {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 12px;
  justify-content: center;
}
.login-card .brand-badge-icon {
  max-width: 220px;
  max-height: 52px;
}
.login-page .brand-admin { color: #e3b21a; }
.login-lead {
  margin: 0;
  min-height: 4.2em;
}
.login-card h1 { font-size: 1.35rem; }
.login-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 12px 0 14px;
}
.login-switch a {
  text-align: center;
  padding: 8px 6px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--navy);
  background: var(--teal-soft);
  font-weight: 650;
  font-size: 12px;
  line-height: 1.25;
}
.login-switch a .brand-admin {
  color: inherit;
  font-weight: inherit;
}
.login-switch a.active {
  background: var(--teal);
  color: #FFD54F;
}
.login-switch-3 { grid-template-columns: 1fr 1fr 1fr; }
.login-switch-3 a { font-size: 11px; padding: 8px 4px; }
.login-form { width: 100%; }
.login-form .login-submit {
  width: 100%;
  justify-content: center;
}
.campo-clave { position: relative; }
.campo-clave input { padding-right: 42px; }
.ojo-clave {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.ojo-clave:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.ojo-clave svg { width: 18px; height: 18px; display: block; }
.ojo-clave .ojo-oculto { display: none; }
.ojo-clave[aria-pressed="true"] .ojo-visible { display: none; }
.ojo-clave[aria-pressed="true"] .ojo-oculto { display: block; }
.rut-ayuda { margin: 4px 0 0; font-size: 12px; color: var(--rojo); }
.key-box {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  background: var(--teal-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 10px 0;
}
.key-box code {
  display: block;
  font-size: 15px;
  letter-spacing: .05em;
  margin: 2px 0;
}

.status-banner {
  border-radius: 10px;
  padding: 8px 10px;
  margin: 10px 0;
  font-weight: 600;
  font-size: 13px;
}
.status-banner a { color: inherit; }
button:disabled, .btn:disabled { opacity: .45; cursor: not-allowed; }
.filebox {
  border: 1.5px dashed #b7d8c4;
  border-radius: 10px;
  padding: 12px;
  background: #f4faf5;
}
.preview-frame {
  width: 100%;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  margin-top: 8px;
}
.preview-img {
  display: block;
  max-width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  margin-top: 8px;
}
.check-line {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-weight: 500;
}
.plain-list {
  margin: 8px 0 0;
  padding-left: 16px;
}
.plain-list a { font-weight: 700; }
.validacion-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.validacion-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: white;
}
.validacion-card p {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.pool-tabs {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.pool-tab {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
}
.pool-tab.is-active {
  background: #143528;
  border-color: #143528;
  color: #fff;
}
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: end;
  margin-top: 8px;
}
.filter-bar .btn { height: 34px; }

@media (max-width: 1100px) {
  .wrap { width: calc(100% - 12px); }
}

@media (max-width: 1366px) {
  html { font-size: 13px; }
  .wrap { width: calc(100% - 12px); }
  th, td { font-size: 11px; padding: 4px 6px; }
}

@media (max-width: 900px) {
  .grid-2, .modules, .form-grid, .validacion-box { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .app-header { padding: 6px 8px; }
  .module-card img { height: 100px; }
  .hero { padding: 10px; }
  .preview-frame { min-height: 240px; }
  input, select, textarea { font-size: 16px; }
  .btn, .nav a { min-height: 34px; }
  .key-box { flex-direction: column; align-items: stretch; }
  .login-switch { grid-template-columns: 1fr 1fr; }
  .login-switch-3 { grid-template-columns: 1fr 1fr 1fr; }
  .table-wide { min-width: 720px; }
  th, td { font-size: 11px; padding: 4px 5px; }
  .filter-bar select { min-width: 0; width: 100%; }
}

.panel-top {
  display: flex;
  gap: 18px;
  align-items: center;
  margin: 8px 0 18px;
  min-width: 0;
}
.panel-donut {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 168px;
}
.panel-donut span {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: var(--paper);
  display: grid;
  place-items: center;
  text-align: center;
  line-height: 1.1;
}
.panel-donut small { display: block; color: var(--muted); font-size: 12px; }
.panel-leyenda, .panel-kpis, #panel-alertas, #panel-filas { min-width: 0; }
.panel-leyenda { display: grid; gap: 6px; }
.panel-leyenda a, .panel-kpi {
  color: inherit;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}
.panel-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.panel-kpi { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.panel-alerta {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  overflow-wrap: anywhere;
}
.panel-alerta .btn { margin-top: 8px; }
.filtro-requisitos { padding: 16px; margin-bottom: 16px; }
.filtro-requisitos h2 { margin: 0 0 10px; font-size: 1.05rem; }
.filtro-etiqueta { display: block; font-weight: 600; margin: 8px 0 6px; }
.filtro-opciones { display: flex; flex-wrap: wrap; gap: 8px; }
.filtro-opcion {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}
.filtro-opcion-on { border: 2px solid #0f172a; font-weight: 700; }
.filtro-cuenta { background: #f1f5f9; border-radius: 999px; padding: 0 8px; font-size: 12px; }
.panel-graficos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.panel-grafico {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  min-width: 0;
}
.panel-grafico h3 { margin: 0 0 10px; font-size: 1rem; }
.panel-donut-sm { width: 132px; height: 132px; flex-basis: 132px; margin: 0 auto 10px; }
.panel-donut-sm span { width: 86px; height: 86px; }
.panel-grafico ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.panel-grafico li { display: flex; align-items: center; gap: 8px; }
.panel-grafico li strong { margin-left: auto; }
.panel-muestra { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 10px; }

@media (max-width: 900px) {
  .panel-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel-top { align-items: flex-start; }
}
@media (max-width: 640px) {
  .panel-top { flex-direction: column; }
  .panel-kpis { grid-template-columns: 1fr; }
  .panel-donut { flex-basis: auto; }
}
@media (max-width: 640px) {
  .login-card .brand-badge-icon { max-width: 112px; max-height: 40px; }
  .hero h1 { font-size: 1.05rem; }
  .user-box { flex-basis: 100%; min-width: 0; margin-left: 0; }
  .user-chip { white-space: normal; }
  .doc-queue-head .btn { width: 100%; justify-content: center; }
  .req-head { display: none; }
  .req-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .req-sin-archivo { grid-column: auto; }
  .login-card { width: min(480px, calc(100vw - 24px)); padding: 16px; }
  .login-lead { min-height: 0; }
}
