* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font-body);
  color: var(--uc-text);
  background: var(--uc-page);
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; margin: 0; color: var(--uc-navy); }
a { color: var(--uc-blue); }

.topbar {
  height: var(--header-h);
  background: var(--uc-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  border-bottom: 1px solid var(--uc-line);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  height: 46px;
  width: auto;
  object-fit: contain;
  display: block;
}
.brand-name span {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .12em;
  font-size: 11px;
  color: var(--uc-muted);
  text-transform: uppercase;
}
.brand-name strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--uc-navy);
  letter-spacing: .01em;
  line-height: 1.2;
  max-width: min(52vw, 480px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: none;
}
.who-drop { position: relative; }
.who-drop > summary { list-style: none; cursor: pointer; }
.who-drop > summary::-webkit-details-marker { display: none; }
.who {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  font-size: 13px;
  color: var(--uc-muted);
  line-height: 1.3;
  padding: 6px 10px 6px 6px;
  border: 1px solid #b8c6d4;
  border-radius: 999px;
  background: #d4dee8;
}
.who:hover, .who-drop[open] .who {
  border-color: var(--uc-navy);
  background: #c3d0dc;
  color: var(--uc-navy);
}
.who b { display: block; color: var(--uc-navy); font-size: 14px; }
.who small { display: block; font-size: 11px; color: var(--uc-footer); }
.who-caret {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--uc-navy);
  color: var(--uc-white);
  flex: 0 0 22px;
}
.who-drop[open] .who-caret { transform: rotate(180deg); }
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--uc-navy); color: var(--uc-navy);
  display: grid; place-items: center;
}
.who-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 200px;
  background: var(--uc-white);
  border: 1px solid var(--uc-line);
  border-radius: 8px;
  padding: 8px;
  z-index: 20;
  box-shadow: 0 8px 20px rgba(11, 44, 92, .08);
}
.who-panel a, .who-panel button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--uc-navy);
  text-decoration: none;
  font: 600 13px/1.3 var(--font-body);
  cursor: pointer;
}
.who-panel a:hover, .who-panel button:hover { background: #eef3f7; }
.who-panel form { margin: 0; }

.app-body { display: flex; min-height: calc(100vh - var(--header-h)); }
.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background: #f3f6f8;
  border-right: 1px solid var(--uc-line);
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.side-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 4px;
  border-radius: 8px;
  color: #7a8794;
  text-decoration: none;
  font-size: 10px;
  font-weight: 600;
}
.side-item.is-active { background: var(--uc-sky); color: var(--uc-white); }
.side-item:hover:not(.is-active) { background: #e4ebf0; color: var(--uc-navy); }

.page { flex: 1; padding: 22px 28px 48px; max-width: none; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  padding: 7px 12px;
  border: 1px solid var(--uc-line);
  border-radius: 6px;
  background: var(--uc-white);
  color: var(--uc-navy);
  text-decoration: none;
  font: 600 13px/1.2 var(--font-body);
}
.btn-back::before { content: "←"; font-weight: 700; }
.btn-back:hover { background: #eef3f7; border-color: var(--uc-sky); }
.page h2 { font-size: 30px; }
.kicker { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--uc-blue); font-weight: 700; }
.sub { color: var(--uc-muted); margin: 6px 0 0; }
.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.filters select, .filters input {
  border: 1px solid var(--uc-line);
  border-radius: 6px;
  padding: 8px 10px;
  font: 13px var(--font-body);
  background: var(--uc-white);
  color: var(--uc-text);
}
.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1.8fr) minmax(160px, 1fr) minmax(160px, 1fr) auto;
  gap: 12px 16px;
  align-items: end;
  width: 100%;
  box-sizing: border-box;
  background: var(--uc-white);
  border: 1px solid var(--uc-line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 0 0 16px;
}
.filter-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.filter-field label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--uc-muted);
}
.filter-bar select,
.filter-bar input[type="date"] {
  width: 100%;
  box-sizing: border-box;
  min-height: 38px;
  border: 1px solid var(--uc-line);
  border-radius: 6px;
  padding: 8px 10px;
  font: 13px var(--font-body);
  background: var(--uc-white);
  color: var(--uc-text);
}
.filter-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 1px;
}
.filter-actions .btn { margin-top: 0; }
.filter-bar.filter-bar-nomina {
  grid-template-columns: minmax(120px, .8fr) minmax(200px, 1.6fr) minmax(150px, 1fr) minmax(150px, 1fr) auto;
}

.kpis { display: grid; grid-template-columns: repeat(7, minmax(110px, 1fr)); gap: 10px; margin-bottom: 20px; }
.kpi {
  background: var(--uc-white);
  border: 1px solid var(--uc-line);
  border-radius: 8px;
  padding: 12px 10px 10px;
  text-align: center;
  border-bottom: 4px solid var(--uc-navy);
}
.kpi em { display: block; font-style: normal; font-size: 11px; color: var(--uc-muted); margin-top: 4px; }
.kpi strong { display: block; font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--uc-navy); line-height: 1; }
.kpi .ico { color: var(--uc-navy); }
a.kpi {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
a.kpi:hover {
  background: #f4f8fb;
  box-shadow: 0 2px 8px rgba(11, 44, 92, .08);
}
a.kpi:focus {
  outline: 2px solid var(--uc-sky);
  outline-offset: 2px;
}
.kpi.warn { border-bottom-color: var(--warn); }
.kpi.warn .ico { color: var(--warn); }
.kpi.ok { border-bottom-color: var(--ok); }
.kpi.ok .ico { color: var(--ok); }
.kpi.danger { border-bottom-color: var(--danger); }
.kpi.danger .ico { color: var(--danger); }

.charts { display: grid; grid-template-columns: 1.4fr .9fr; gap: 16px; }
.card {
  background: var(--uc-white);
  border: 1px solid var(--uc-line);
  border-radius: var(--radius);
  padding: 18px;
}
.card h3 { font-size: 15px; margin-bottom: 10px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--uc-muted); margin-bottom: 10px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; }
.chart-plot {
  display: grid;
  grid-template-columns: 36px 1fr;
  grid-template-rows: 180px auto;
  column-gap: 8px;
}
.chart-y {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 180px;
  text-align: right;
  font-size: 11px;
  line-height: 1;
  color: var(--uc-muted);
  font-variant-numeric: tabular-nums;
}
.chart-y span:first-child { transform: translateY(-2px); }
.chart-y span:last-child { transform: translateY(2px); }
.chart-area {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  height: 180px;
}
.chart-grid {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}
.chart-grid i {
  display: block;
  border-top: 1px dashed #c5ced8;
}
.chart-grid i:last-child { border-top-style: solid; border-top-color: var(--uc-line); }
.bars {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 180px;
}
.bar-group {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 100%;
}
.bar-group span {
  flex: 1;
  max-width: 18px;
  background: var(--uc-navy);
  border-radius: 3px 3px 0 0;
  min-height: 0;
}
.bar-group span.sel { background: var(--uc-sky); }
.chart-x {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.chart-x span {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-size: 10px;
  line-height: 1.2;
  color: var(--uc-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.donut-wrap { display: flex; justify-content: center; padding: 16px 0; }
.donut {
  width: 180px; height: 180px; border-radius: 50%;
  background: conic-gradient(var(--danger) 0 var(--pos), var(--ok) var(--pos) 100%);
  position: relative;
}
.donut::after {
  content: "";
  position: absolute; inset: 28px;
  background: var(--uc-white);
  border-radius: 50%;
}
.empty-chart { height: 180px; display: grid; place-items: center; color: var(--uc-footer); font-size: 13px; }
.chart-line-card { margin-top: 16px; overflow: visible; padding-top: 22px; }
.chart-line-card .chart-plot { grid-template-columns: 44px 1fr; padding-top: 8px; }
.chart-line-card .chart-area { overflow: visible; }
.line-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 180px;
  z-index: 1;
  overflow: visible;
}
.line-svg polygon { fill: rgba(26, 115, 184, .12); }
.line-svg polyline {
  fill: none;
  stroke: var(--uc-blue);
  stroke-width: 2.8;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.line-dots { position: absolute; inset: 0; z-index: 2; overflow: visible; }
.line-point {
  position: absolute;
  width: 0;
  height: 0;
}
.line-point i {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 10px;
  height: 10px;
  margin: 0 0 -5px -5px;
  border-radius: 50%;
  background: var(--uc-navy);
  border: 2px solid var(--uc-white);
  box-shadow: 0 0 0 1px var(--uc-navy);
}
.line-point.is-alta i { background: var(--uc-blue); width: 12px; height: 12px; margin: 0 0 -6px -6px; }
.line-tag {
  position: absolute;
  left: 0;
  bottom: 12px;
  transform: translateX(-50%);
  background: var(--uc-navy);
  color: var(--uc-white);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  padding: 3px 6px;
  border-radius: 4px;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(11, 44, 92, .2);
}
.line-tag em {
  font-style: normal;
  font-weight: 600;
  opacity: .85;
  margin-left: 2px;
}
.line-tag.is-total { background: var(--uc-muted); }

.card h3 { font-size: 16px; margin-bottom: 10px; }
.notice-error { background: #fdeaea; color: #8a1f1f; }
.btn-inline { width: auto; display: inline-flex; text-decoration: none; }
select, .field select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--uc-line);
  border-radius: 4px;
  font: 15px var(--font-body);
  background: var(--uc-white);
}
.filters select { width: auto; padding: 8px 10px; font-size: 13px; }
.stack .field { margin-bottom: 14px; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.form-grid-full { grid-column: 1 / -1; }
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
}
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; margin: 8px 0 16px; }

.login {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  place-items: center;
  padding: 32px 16px 48px;
}
.login-card {
  width: min(420px, 100%);
  background: var(--uc-white);
  border: 1px solid var(--uc-line);
  border-radius: var(--radius);
  padding: 16px 28px 28px;
  text-align: center;
  box-shadow: 0 10px 28px rgba(11, 44, 92, .16), 0 2px 8px rgba(11, 44, 92, .08);
}
.login-brand {
  background: var(--uc-white);
  padding: 8px 0 4px;
  margin-bottom: 18px;
}
.login-logo {
  display: block;
  width: 273px;
  max-width: 92%;
  height: auto;
  margin: 0 auto 2px;
}
.login-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .01em;
  line-height: 1.3;
  color: var(--uc-navy);
}
.login-client {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .02em;
  line-height: 1.35;
  text-align: center;
  color: var(--uc-navy);
}
.login-cert {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .01em;
  line-height: 1.45;
  text-align: center;
  color: var(--uc-text);
}
.login-org {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .01em;
  line-height: 1.45;
  text-align: center;
  color: var(--uc-text);
}
.field { text-align: left; margin-bottom: 14px; }
.field label { display: block; font-size: 12px; color: var(--uc-muted); margin-bottom: 6px; }
.field input {
  width: 100%;
  padding: 12px;
  background: var(--uc-white);
  border: 1px solid var(--uc-line);
  color: var(--uc-text);
  border-radius: 4px;
  font: 15px var(--font-body);
}
.field input:focus { outline: 2px solid var(--uc-sky); border-color: var(--uc-navy); }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 44px; }
.password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--uc-muted);
  cursor: pointer;
  border-radius: 4px;
  padding: 0;
}
.password-toggle:hover { color: var(--uc-navy); background: #eef3f7; }
.password-toggle:focus-visible { outline: 2px solid var(--uc-sky); color: var(--uc-navy); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 8px;
  padding: 12px 16px;
  background: var(--uc-navy);
  color: var(--uc-white);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font: 700 13px/1 var(--font-display);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.btn:hover { filter: brightness(1.08); }
.btn-danger { background: #8a1f1f; }
.login-foot { margin-top: 20px; font-size: 11px; color: var(--uc-footer); }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th {
  text-align: left;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--uc-muted);
  padding: 8px 10px;
  border-bottom: 1px solid var(--uc-line);
}
td { padding: 10px; border-bottom: 1px solid var(--uc-line); }
.table-scroll {
  max-height: 420px;
  overflow: auto;
  border: 1px solid var(--uc-line);
  border-radius: 6px;
}
.table-scroll table { margin: 0; }
.table-scroll thead th {
  position: sticky;
  top: 0;
  background: var(--uc-white);
  z-index: 1;
}
.table-scroll-carga { max-height: min(640px, 70vh); }
.card-hoja { margin-bottom: 16px; }
.card-hoja h3 { margin: 4px 0 0; }
.tabla-carga tr.is-sel td { background: #f4faf6; }
.th-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  margin-left: 6px;
  padding: 0 6px;
  border: 0;
  border-radius: 99px;
  background: var(--uc-blue);
  color: var(--uc-white);
  font: 700 11px/1 var(--font-display);
  cursor: pointer;
  vertical-align: middle;
}
.th-badge:hover, .th-badge.is-on { background: var(--uc-navy); }
.btn-resultado {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 6px 14px;
  background: var(--uc-white);
  color: var(--uc-blue);
  border: 1.5px solid var(--uc-blue);
  border-radius: 999px;
  cursor: pointer;
  font: 600 12px/1.2 var(--font-body);
}
.btn-resultado:hover { background: #eef6fb; }
.btn-text {
  background: none;
  border: 0;
  color: var(--uc-blue);
  font: 600 14px var(--font-body);
  cursor: pointer;
  padding: 8px 4px;
}
.radio {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  margin: 8px 0;
  cursor: pointer;
}
.radio input { width: 16px; height: 16px; accent-color: var(--uc-navy); }
.modal {
  border: 0;
  border-radius: 12px;
  padding: 0;
  width: min(420px, calc(100vw - 24px));
  box-shadow: 0 16px 40px rgba(11, 44, 92, .22);
}
.modal::backdrop { background: rgba(11, 44, 92, .45); }
.modal-body { padding: 18px 22px 20px; }
.modal-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--uc-line);
}
.modal-head h3 { flex: 1; font-size: 18px; }
.modal-ico { color: var(--uc-navy); display: grid; place-items: center; }
.modal-close {
  width: 32px;
  height: 32px;
  border: 0;
  background: none;
  font-size: 22px;
  line-height: 1;
  color: var(--uc-muted);
  cursor: pointer;
  border-radius: 6px;
}
.modal-close:hover { background: #eef3f7; color: var(--uc-navy); }
.modal-func { font-size: 14px; margin: 0 0 14px; }
.modal-label { font-size: 14px; font-weight: 600; color: var(--uc-navy); margin: 0 0 6px; }
.modal textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--uc-line);
  border-radius: 6px;
  font: 14px var(--font-body);
  resize: vertical;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}
.modal-actions .btn { margin-top: 0; width: auto; min-width: 120px; }
.pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
}
.pill-si { background: #e7f6ec; color: #1d7a38; }
.pill-sel { background: #22c55e; color: #fff; font-weight: 700; padding: 4px 12px; }
.pill-pend { background: #fff4d6; color: #9a6200; }
.pill-pos { background: #fde8e8; color: #b42318; }
.exam-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.exam-form select { width: auto; padding: 6px 8px; font-size: 12px; }
.exam-form input[type="text"] { width: 180px; padding: 6px 8px; font-size: 12px; border: 1px solid var(--uc-line); border-radius: 4px; }
.exam-form .btn { margin-top: 0; padding: 7px 10px; font-size: 11px; }
.note { font-size: 13px; color: var(--uc-muted); }
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.pager-arrow,
.pager-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--uc-line);
  border-radius: 6px;
  background: var(--uc-white);
  color: var(--uc-navy);
  text-decoration: none;
  font: 600 13px/1 var(--font-display);
}
.pager-arrow:hover,
.pager-num:hover {
  border-color: var(--uc-sky);
  background: #eef3f7;
}
.pager-num.is-current {
  background: var(--uc-navy);
  border-color: var(--uc-navy);
  color: var(--uc-white);
  cursor: default;
}
.pager-arrow.is-disabled {
  opacity: .38;
  cursor: default;
  pointer-events: none;
}
.pager-gap {
  min-width: 22px;
  text-align: center;
  color: var(--uc-muted);
  font-size: 14px;
}
.notice {
  background: #fff4d6;
  color: #9a6200;
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 16px;
  font-size: 13px;
}

.nav-check {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.nav-toggle, .nav-scrim, .nav-drawer-head { display: none; }

@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .charts { grid-template-columns: 1fr; }
  .filter-bar,
  .filter-bar.filter-bar-nomina { grid-template-columns: 1fr 1fr; }
  .filter-actions { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 800px) {
  :root { --header-h: 60px; }
  .topbar {
    height: var(--header-h);
    padding: 0 10px 0 8px;
    gap: 8px;
    position: relative;
    z-index: 50;
  }
  .nav-toggle {
    display: grid;
    gap: 4px;
    width: 42px;
    height: 42px;
    place-content: center;
    flex: 0 0 42px;
    border-radius: 8px;
    cursor: pointer;
    background: #eef3f7;
    border: 1px solid var(--uc-line);
  }
  .nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--uc-navy);
    border-radius: 1px;
    transition: transform .18s ease, opacity .18s ease;
  }
  body:has(#nav-open:checked) .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  body:has(#nav-open:checked) .nav-toggle span:nth-child(2) { opacity: 0; }
  body:has(#nav-open:checked) .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  body:has(#nav-open:checked) { overflow: hidden; }
  .brand { min-width: 0; gap: 8px; }
  .brand-logo { height: 34px; }
  .brand-name span { font-size: 9px; letter-spacing: .08em; }
  .brand-name strong { font-size: 14px; max-width: 38vw; }
  .who { padding: 4px; gap: 0; }
  .who-copy, .who small { display: none; }
  .who-caret { display: none; }
  .avatar { width: 36px; height: 36px; }
  .page { padding: 14px 12px 40px; min-width: 0; }
  .page h2 { font-size: 22px; }
  .page-head { flex-direction: column; gap: 12px; }
  .filters { width: 100%; }
  .filters select, .filters input, .filters .btn { width: 100%; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 8px; }
  .kpi { padding: 10px 8px 8px; }
  .kpi strong { font-size: 22px; }
  .filter-bar { grid-template-columns: 1fr; }
  .card { padding: 14px 12px; }
  .chart-line-card { overflow: visible; }
  .chart-plot { grid-template-columns: 28px 1fr; grid-template-rows: 150px auto; column-gap: 4px; }
  .chart-line-card .chart-plot { grid-template-columns: 36px 1fr; }
  .chart-y, .chart-area, .bars, .line-svg, .empty-chart { height: 150px; }
  .chart-y { font-size: 10px; }
  .chart-x span { font-size: 9px; }
  .donut { width: 160px; height: 160px; }
  table { font-size: 12px; }
  .form-grid { grid-template-columns: 1fr; }
  .nav-scrim {
    display: block;
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(11, 44, 92, .45);
    z-index: 35;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
  }
  #nav-open:checked ~ .nav-scrim {
    opacity: 1;
    pointer-events: auto;
  }
  .nav-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 8px 12px;
    color: var(--uc-navy);
    font-size: 14px;
  }
  .nav-close {
    font-size: 13px;
    font-weight: 700;
    color: var(--uc-blue);
    cursor: pointer;
  }
  .sidebar {
    display: flex;
    position: fixed;
    z-index: 40;
    top: var(--header-h);
    left: 0;
    bottom: 0;
    width: min(280px, 86vw);
    flex: none;
    padding: 16px 10px 24px;
    transform: translateX(-105%);
    transition: transform .2s ease;
    box-shadow: 8px 0 24px rgba(11, 44, 92, .12);
    overflow-y: auto;
  }
  #nav-open:checked ~ .sidebar { transform: translateX(0); }
  .side-item {
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    padding: 12px 12px;
    font-size: 14px;
  }
}
