* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --azul: #0b2a4a; --azul2: #12456f; --gris: #f4f6f8; --linea: #d7dee5;
  --texto: #1c2b36; --muted: #6a7c8c; --acento: #c8102e;
}
body { font-family: "Segoe UI", Arial, sans-serif; background: var(--gris); color: var(--texto); }
header.top {
  background: var(--azul); color: #fff; padding: 14px 22px;
  display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap;
}
header.top h1 { font-size: 19px; font-weight: 600; letter-spacing: .3px; }
header.top .sub { font-size: 13px; opacity: .85; }
header.top nav { margin-left: auto; display: flex; gap: 8px; }
header.top nav a {
  color: #fff; text-decoration: none; font-size: 13px; padding: 7px 14px;
  border: 1px solid rgba(255,255,255,.35); border-radius: 6px;
}
header.top nav a.activo, header.top nav a:hover { background: rgba(255,255,255,.15); }
.panel { max-width: 1240px; margin: 18px auto; padding: 0 16px; }
.tarjetas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.tarjeta {
  background: #fff; border: 1px solid var(--linea); border-radius: 8px;
  padding: 12px 18px; min-width: 150px; flex: 1;
}
.tarjeta .num { font-size: 22px; font-weight: 700; color: var(--azul); }
.tarjeta .lbl { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.filtros {
  background: #fff; border: 1px solid var(--linea); border-radius: 8px;
  padding: 12px 14px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  margin-bottom: 14px;
}
.filtros label { font-size: 12px; color: var(--muted); }
.filtros select, .filtros input {
  font-size: 14px; padding: 7px 10px; border: 1px solid var(--linea); border-radius: 6px;
  background: #fff; color: var(--texto);
}
.filtros input[type=search] { flex: 1; min-width: 220px; }
table.datos {
  width: 100%; border-collapse: collapse; background: #fff;
  border: 1px solid var(--linea); border-radius: 8px; overflow: hidden; font-size: 13.5px;
}
table.datos th {
  background: var(--azul2); color: #fff; text-align: left; padding: 9px 10px;
  font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .4px;
  position: sticky; top: 0;
}
table.datos td { padding: 7px 10px; border-top: 1px solid var(--linea); }
table.datos tr:nth-child(even) td { background: #f8fafc; }
table.datos tr:hover td { background: #eef4f9; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; }
.pill.PIC { background: #e3f0e3; color: #1e6b1e; }
.pill.SIC { background: #e8ecf7; color: #2a4d9b; }
.pill.POS { background: #f7ecd9; color: #9a6b12; }
.paginacion { display: flex; gap: 10px; align-items: center; justify-content: center; margin: 14px 0 30px; }
.paginacion button {
  font-size: 13px; padding: 7px 16px; border: 1px solid var(--linea); background: #fff;
  border-radius: 6px; cursor: pointer;
}
.paginacion button:disabled { opacity: .4; cursor: default; }
.paginacion .info { font-size: 13px; color: var(--muted); }
.totales-filtro { font-size: 13px; color: var(--azul); font-weight: 600; margin-left: auto; }
