:root {
  --bg: #fff;
  --surface: #fff;
  --ink: #243342;
  --muted: #566879;
  --line: #dce3e9;
  --blue: #244f79;
  --blue-dark: #173c60;
  --nav: #f6f8fa;
  --green: #356957;
  --amber: #795b28;
  --radius: 4px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.5 var(--font);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  touch-action: manipulation;
}
button,
summary {
  cursor: pointer;
}
:focus-visible {
  outline: 3px solid #72a6d9;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 28px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin-bottom: 0;
  overflow-wrap: anywhere;
}
h2 {
  font-size: 17px;
  font-weight: 650;
  margin-bottom: 18px;
}
h3 {
  font-size: 14px;
}
small {
  font-size: 12px;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}
.skip {
  position: absolute;
  left: 16px;
  top: -70px;
  background: #fff;
  padding: 12px;
  z-index: 30;
}
.skip:focus {
  top: 10px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.topbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 28px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  flex-shrink: 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #233b51;
  flex-shrink: 0;
}
.brand:hover {
  text-decoration: none;
}
.brand-mark,
.auth-mark {
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}
.brand-mark {
  width: 48px;
  height: 48px;
}
.topbar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  min-width: 0;
}
.topbar-right form {
  margin: 0;
}
.demo-tag {
  font-size: 11px;
  padding: 4px 8px;
  border: 1px solid #e1d5af;
  background: #faf7ec;
  color: #725a2d;
  border-radius: 3px;
}
.operator {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  min-width: 0;
  color: #475b6d;
}
.avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #e8eef5;
  border: 1px solid #dae3ec;
  color: #345a7c;
  font-size: 12px;
  font-weight: 700;
}
.logout {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 1px solid #c5d0db;
  padding: 7px 11px;
  border-radius: 4px;
  color: #52677b;
  font-size: 12px;
}
.layout {
  display: grid;
  grid-template-columns: 214px minmax(0, 1fr);
  flex: 1;
  min-height: 0;
}
.sidebar {
  border-right: 1px solid var(--line);
  background: var(--nav);
  padding: 30px 13px 24px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.nav-caption {
  color: #85919d;
  font-size: 10px;
  letter-spacing: 1.2px;
  font-weight: 600;
  padding: 0 12px 13px;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border-radius: 4px;
  color: #526170;
  font-size: 13px;
}
.sidebar nav a.active {
  color: #224d78;
  background: #e3ebf4;
  font-weight: 600;
  box-shadow: none;
}
.sidebar nav a:hover {
  background: #e8edf3;
  text-decoration: none;
}
.nav-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
}
.nav-icon svg {
  width: 100%;
  height: 100%;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 60px 9px 0;
  font-size: 11px;
  display: grid;
  gap: 7px;
}
.sidebar-bottom span {
  color: #9099a3;
  font-size: 11px;
  margin-top: 6px;
}
.main {
  padding: 31px 32px 36px;
  min-width: 0;
  max-width: 1800px;
  width: 100%;
  flex: 1;
  margin-inline: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.page-heading > div { min-width: 0; }
.page-heading p {
  color: var(--muted);
  margin: 0;
  font-size: 13px;
}
.actions {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.button,
button[type="submit"],
.auth-wrap button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid #b7c3ce;
  border-radius: var(--radius);
  background: #fff;
  color: #354b60;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none;
}
.button:hover {
  background: #f0f4f8;
  text-decoration: none;
  border-color: #8a9eb2;
}
.button.primary,
button.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}
.button.primary:hover {
  background: var(--blue-dark);
}
.button.quiet {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  box-shadow: none;
}
.button.small {
  min-height: 32px;
  font-size: 12px;
  padding: 3px 11px;
}
.button:disabled {
  color: #a3adb7;
  border-color: #e0e5eb;
  background: #f8f9fb;
  cursor: default;
  box-shadow: none;
}
.summary-strip {
  display: flex;
  gap: 0;
  margin-bottom: 22px;
  font-size: 12px;
  color: var(--muted);
}
.summary-strip span {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 0 25px;
  border-right: 1px solid #cbd5df;
}
.summary-strip span:first-child {
  padding-left: 0;
}
.summary-strip span:last-child {
  border: 0;
}
.summary-strip strong {
  font-size: 22px;
  line-height: 1;
  font-weight: 650;
  color: #334b62;
  font-variant-numeric: tabular-nums;
}
.workspace {
  min-width: 0;
  background: var(--surface);
}
.filters {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.search-row {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 18px;
}
.search-box {
  position: relative;
  max-width: 570px;
  width: 100%;
}
.search-box input {
  padding-left: 37px;
  height: 38px;
  width: 100%;
  font-size: 13px;
}
.search-icon {
  position: absolute;
  top: 10px;
  left: 12px;
  width: 17px;
  height: 17px;
  color: #7c8b99;
}
.search-icon svg {
  width: 100%;
  height: 100%;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
select,
textarea {
  border: 1px solid #bcc8d3;
  border-radius: 3px;
  padding: 8px 10px;
  background: #fff;
  color: var(--ink);
  min-height: 36px;
  max-width: 100%;
  font-size: 14px;
}
input::placeholder {
  color: #677787;
}
.search-box input#busqueda {
  padding-left: 37px;
}
textarea {
  resize: vertical;
  min-height: 88px;
}
.filter-row {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
}
.filter-row label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #465b6d;
  flex: 1 1 150px;
  min-width: 0;
}
.filter-row input { width: 100%; min-width: 0; }
.filter-row select {
  font-size: 13px;
  width: 100%;
  padding: 7px 26px 7px 9px;
  min-height: 38px;
}
.filter-row .filter-apply {
  min-height: 38px;
  padding: 7px 12px;
}
.catalog-main-filters,
.catalog-extra-filters {
  display: grid;
  gap: 16px;
  align-items: start;
}
.catalog-main-filters {
  grid-template-columns: 1.15fr 1.15fr 1fr;
}
.catalog-filters label,
.catalog-field {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.catalog-filters input,
.catalog-filters select {
  width: 100%;
  min-width: 0;
  font-weight: 400;
}
.catalog-help {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin: 10px 0 17px;
  font-size: 12px;
  color: var(--muted);
}
.catalog-help p { margin: 0; }
.catalog-more {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
.catalog-more summary {
  color: var(--blue);
  font-weight: 600;
  min-height: 30px;
}
.catalog-more summary svg {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin: 0 5px;
}
.catalog-more summary span {
  margin-left: 10px;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
.catalog-extra-filters {
  grid-template-columns: minmax(125px, 1fr) minmax(180px, 1.8fr) 85px repeat(2, minmax(120px, 1fr));
  padding: 12px 0 7px;
}
.catalog-filter-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.filter-pending {
  color: var(--amber);
  font-size: 12px;
}
.catalog-filter-errors {
  padding: 12px 22px;
  background: #fff4df;
  color: #694619;
}
.catalog-filter-errors p { margin: 4px 0; }
.catalog-results { background: transparent; }
.catalog-results .table-toolbar { flex-wrap: wrap; gap: 8px; }
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0 22px 16px;
}
.active-filters li { max-width: 100%; }
.active-filters a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid #bdcfdf;
  border-radius: 4px;
  background: var(--surface);
  color: var(--blue-dark);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.active-filters a:hover { background: #e8f0f8; text-decoration: none; }
.filter-remove { font-size: 20px; line-height: 1; }
@media (max-width: 1100px) {
  .catalog-extra-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .catalog-main-filters,
  .catalog-extra-filters { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .catalog-more summary span { display: block; margin: 5px 0 0 20px; }
  .catalog-filter-actions .button { min-height: 44px; }
  .active-filters { padding: 0 15px 15px; }
  .active-filters a { min-height: 44px; }
}
.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 12px 22px;
  color: var(--muted);
  font-size: 12px;
}
.table-toolbar strong {
  color: #405366;
}
.table-scroll {
  width: 100%;
  overflow: auto;
}
.data-table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 13px;
  table-layout: auto;
}
.data-table th {
  font-size: 12px;
  color: #465b6d;
  letter-spacing: 0.15px;
  font-weight: 600;
  background: #f5f7fa;
  padding: 11px 15px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.data-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #e7ecf1;
  vertical-align: middle;
  line-height: 1.55;
  overflow-wrap: break-word;
  max-width: 420px;
}
.data-table th:first-child,
.data-table td:first-child {
  padding-left: 22px;
}
.data-table th:last-child,
.data-table td:last-child {
  padding-right: 22px;
}
.data-table tr:last-child td {
  border-bottom: 0;
}
.data-table tbody tr:hover {
  background: #f7faff;
}
.person-link {
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.mono {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  letter-spacing: 0.2px;
}
.number {
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  text-align: right;
  font-weight: 600;
}
.muted {
  color: var(--muted);
}
.nowrap {
  white-space: nowrap;
}
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid #dae2e9;
  background: #f0f3f6;
  color: #627486;
  border-radius: 3px;
  padding: 3px 7px;
  white-space: nowrap;
}
.badge.afiliacion_informada,
.badge.stage-resuelto,
.badge.stage-aplicada {
  background: #eaf3ee;
  border-color: #d3e5d9;
  color: #376650;
}
.badge.ausencia_informada {
  background: #eef3f9;
  border-color: #d7e2ee;
  color: #496989;
}
.badge.baja_informada {
  background: #f5efe9;
  border-color: #e8ddce;
  color: #886844;
}
.badge.stage-documentacion,
.badge.stage-observado,
.badge.stage-error {
  background: #fbf3e4;
  border-color: #edddb8;
  color: #88652c;
}
.badge.stage-firmado,
.badge.stage-presentado {
  background: #e9eff7;
  border-color: #cedceb;
  color: #45658c;
}
.source-caption {
  display: block;
  color: #566879;
  font-size: 11px;
  margin-top: 4px;
}
.row-note {
  display: block;
  font-size: 11px;
  color: #8c6938;
  margin-top: 4px;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 13px 22px;
  font-size: 11px;
  color: var(--muted);
}
.pagination > div {
  display: flex;
  gap: 6px;
}
.footnote {
  font-size: 11px;
  line-height: 1.65;
  color: #566879;
  margin: 13px 0 0;
}
.export-menu {
  position: relative;
}
.export-menu summary {
  list-style: none;
}
.export-menu summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin: 0 0 3px 6px;
}
.export-menu > div {
  position: absolute;
  right: 0;
  top: 35px;
  min-width: 150px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 5px 16px #23344815;
  border-radius: 4px;
  padding: 5px;
  z-index: 5;
}
.export-menu a {
  display: block;
  padding: 9px;
  font-size: 12px;
}
.empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--muted);
}
.empty h2 {
  margin-bottom: 8px;
  color: #485e73;
}
.empty p {
  margin-bottom: 18px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 17px;
  font-size: 12px;
  min-height: 28px;
}
.record-number {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.9px;
  color: #748597;
  margin-bottom: 8px;
}
.record-number strong {
  font:
    600 13px "SFMono-Regular",
    Consolas,
    monospace;
  letter-spacing: 0;
  color: #36536d;
  margin-left: 7px;
}
.tabs {
  display: flex;
  border-bottom: 1px solid #c8d3de;
  gap: 6px;
  overflow-x: auto;
}
.tabs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  font-size: 12px;
  color: #536a80;
  border: 1px solid transparent;
  white-space: nowrap;
  min-height: 46px;
}
.tabs a.selected {
  background: white;
  border: 1px solid #c8d3de;
  border-bottom-color: white;
  color: var(--blue);
  font-weight: 600;
  border-radius: 4px 4px 0 0;
  box-shadow: none;
  border-bottom: 2px solid var(--blue);
}
.detail-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 26px;
  margin-bottom: 22px;
}
.tabs + .detail-panel {
  border-top: 0;
  border-top-left-radius: 0;
}
.detail-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 295px;
  gap: 34px;
}
.record-aside {
  border-left: 1px solid var(--line);
  padding-left: 27px;
}
.record-aside h2 {
  font-size: 13px;
}
.record-aside small {
  line-height: 1.6;
}
.data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 23px 30px;
  margin: 0 0 24px;
}
.data-grid dt {
  font-size: 12px;
  color: #566879;
  margin-bottom: 6px;
}
.data-grid dd {
  margin: 0;
  font-size: 13px;
  color: #354b60;
  overflow-wrap: anywhere;
}
.data-grid dd small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
}
.span-2 {
  grid-column: span 2;
}
.evidence-summary {
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: 0 0 19px;
  margin-bottom: 16px;
  border-bottom: 1px solid #e7ecf1;
}
.evidence-summary strong {
  font-size: 13px;
}
.evidence-summary small {
  color: var(--muted);
  font-size: 11px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 15px;
}
.section-heading h2 {
  margin: 0;
}
.note {
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}
.note > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.note small {
  color: var(--muted);
}
.note p {
  margin: 10px 0 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.form-panel {
  max-width: 1020px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 21px 26px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.field label {
  font-size: 13px;
  font-weight: 600;
  color: #465b6d;
}
.field input,
.field select,
.field textarea {
  width: 100%;
}
.field small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.field input[type="checkbox"] {
  width: 17px;
  height: 17px;
  order: -1;
  accent-color: var(--blue);
}
.field:has(textarea) {
  grid-column: 1/-1;
}
.field:has(input[type="checkbox"]) {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  grid-column: 1/-1;
}
.field:has(input[type="file"]) {
  grid-column: 1/-1;
}
fieldset {
  margin: 0 0 28px;
  padding: 0 0 27px;
  border: 0;
  border-bottom: 1px solid var(--line);
}
legend {
  font-size: 16px;
  font-weight: 600;
  padding: 0 0 20px;
}
.form-actions {
  display: flex;
  gap: 9px;
  margin-top: 27px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.form-details {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.form-details summary {
  font-size: 13px;
  font-weight: 600;
  color: #4c637b;
}
.form-details .form-grid {
  margin-top: 21px;
}
.form-details p {
  font-size: 12px;
  margin: 14px 0;
}
.errorlist {
  padding: 0;
  list-style: none;
  margin: 4px 0;
  color: #a6413d;
  font-size: 12px;
}
.invalid input,
.invalid select,
.invalid textarea {
  border-color: #b76660;
}
.notice {
  padding: 13px 17px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 3px;
  margin-bottom: 18px;
  font-size: 13px;
}
.notice.success {
  background: #f0f7f2;
  border-color: #c4dccb;
  color: #345d42;
}
.notice.warning,
.review-notice {
  background: #fcf8ed;
  border-color: #e5d5ad;
  color: #765d30;
}
.notice.error {
  background: #fcf0ef;
  border-color: #e6c3bf;
  color: #92453c;
}
.notice.info {
  background: #eef5fa;
  border-color: #c6d9e7;
  color: #3a5c78;
}
.review-notice {
  border: 1px solid #e5d5ad;
  padding: 20px 25px;
  margin-bottom: 22px;
  border-radius: 4px;
}
.review-notice h2 {
  margin-bottom: 10px;
  color: #765d30;
  font-size: 15px;
}
.review-notice ul {
  padding-left: 20px;
  margin: 10px 0;
}
.review-notice li {
  margin-bottom: 6px;
  font-size: 13px;
}
.review-notice p {
  font-size: 11px;
  margin-bottom: 0;
}
.document-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.document {
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.document img {
  width: 100%;
  height: 170px;
  object-fit: contain;
  background: #eef1f5;
  display: block;
}
.document > div {
  padding: 14px;
  display: grid;
  gap: 7px;
}
.document strong {
  font-size: 13px;
}
.document small {
  color: var(--muted);
}
.document a {
  font-size: 12px;
}
.confirm-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.confirm-bar p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.audit-detail {
  font-size: 11px;
  max-width: 380px;
  overflow-wrap: anywhere;
}
.audit-detail dt {
  font-weight: 600;
  margin-top: 6px;
}
.audit-detail dd {
  margin: 0;
  color: var(--muted);
}
.prose {
  max-width: 950px;
  line-height: 1.8;
}
.prose h2 {
  margin-top: 24px;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose li {
  margin-bottom: 7px;
}
.prose code {
  font-size: 12px;
  background: #eef2f7;
  padding: 2px 5px;
}
.without-sidebar {
  display: flex;
}
.without-sidebar .main {
  margin: auto;
}
.auth-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding-top: 50px;
}
.auth-wrap > h1,
.auth-wrap > h2 {
  font-size: 24px;
}
.auth-wrap > form,
.auth-wrap > section {
  background: white;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.auth-wrap form p {
  display: grid;
  gap: 7px;
}
.auth-wrap form input {
  width: 100%;
}
.auth-wrap form input[type="checkbox"] {
  width: auto;
}
.auth-wrap form ul {
  padding-left: 20px;
}
.auth-wrap form button {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
.auth-wrap form svg {
  max-width: 230px;
  height: auto;
}
.auth-panel {
  width: 440px;
  max-width: 100%;
  margin: 0 auto;
}
.auth-panel h1 {
  font-size: 25px;
  margin-top: 22px;
}
.auth-panel > p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 25px;
}
.auth-panel form .field {
  margin-bottom: 19px;
}
.auth-panel form button {
  width: 100%;
  margin-top: 9px;
}
.auth-panel .auth-mark {
  width: 144px;
  height: 144px;
}
.auth-brand {
  display: inline-flex;
  vertical-align: top;
}
.auth-wrap.login-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  max-width: 900px;
  padding: 64px 32px;
}
.login-wrap > .demo-tag {
  display: block;
  align-self: center;
}
.auth-wrap > .auth-login {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  grid-template-areas: "heading brand" "form brand" "help brand";
  column-gap: 56px;
  width: 100%;
  padding: 48px;
}
.auth-login h1 {
  grid-area: heading;
  margin-top: 0;
}
.auth-login > form {
  grid-area: form;
  min-width: 0;
}
.auth-login > .footnote {
  grid-area: help;
}
.auth-login .auth-brand {
  grid-area: brand;
  place-self: center;
  width: 240px;
}
.auth-login .auth-mark {
  width: 100%;
  height: auto;
}
@media (max-width: 760px) {
  .auth-wrap.login-wrap {
    padding: 32px 16px;
  }
  .auth-wrap > .auth-login {
    grid-template-columns: minmax(0, 1fr) 72px;
    grid-template-areas: "heading brand" "form form" "help help";
    column-gap: 16px;
  }
  .auth-panel.auth-login > h1 {
    align-self: center;
    margin-bottom: 0;
  }
  .auth-login > form {
    margin-top: 28px;
  }
  .auth-login .auth-brand {
    width: 72px;
  }
}
.auth-wrap ul {
  line-height: 1.9;
}
.private-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #dce4ed;
  background: #f6f8fb;
  border-radius: 4px;
  padding: 5px 9px;
  font-size: 11px;
  color: #536a80;
  white-space: nowrap;
}
@media (min-width: 1600px) {
  .main {
    padding-left: 42px;
    padding-right: 42px;
  }
  .data-table td {
    padding-top: 14px;
    padding-bottom: 14px;
  }
}
@media (max-width: 1150px) {
  .layout {
    grid-template-columns: 176px minmax(0, 1fr);
  }
  .sidebar {
    padding-left: 8px;
    padding-right: 8px;
  }
  .main {
    padding: 25px 21px;
  }
  .topbar {
    padding: 0 20px;
  }
  .topbar-right {
    gap: 15px;
  }
  .demo-tag {
    font-size: 10px;
  }
  .detail-columns {
    grid-template-columns: 1fr 245px;
    gap: 24px;
  }
  .filter-row label {
    min-width: 140px;
  }
  .filter-row label:nth-child(3) {
    min-width: 200px;
  }
  .page-heading {
    align-items: start;
  }
  .people-table td,
  .people-table th {
    padding-left: 12px;
    padding-right: 12px;
  }
}
@media (max-width: 760px) {
  .topbar {
    height: auto;
    min-height: 62px;
    padding: 12px 16px;
    align-items: center;
    gap: 12px;
  }
  .brand {
    gap: 9px;
  }
  .brand-mark {
    width: 40px;
    height: 40px;
  }
  .topbar-right {
    gap: 10px;
  }
  .operator {
    font-size: 11px;
  }
  .operator .avatar {
    display: none;
  }
  .demo-tag {
    display: none;
  }
  .logout {
    padding-left: 10px;
    font-size: 12px;
  }
  .layout {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .sidebar {
    min-height: 0;
    padding: 0 8px;
    background: white;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-caption,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    flex-direction: row;
    overflow: auto;
    gap: 0;
  }
  .sidebar nav a {
    flex: 1;
    flex-direction: column;
    gap: 5px;
    min-width: 68px;
    padding: 12px 7px;
    font-size: 10px;
    border-radius: 0;
  }
  .sidebar nav a.active {
    box-shadow: inset 0 -2px #326291;
  }
  .nav-icon {
    width: 17px;
    height: 17px;
  }
  .main {
    padding: 24px 14px 28px;
  }
  .page-heading {
    flex-direction: column;
    gap: 14px;
    margin-bottom: 19px;
  }
  h1 {
    font-size: 24px;
  }
  .actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .summary-strip {
    gap: 0;
    flex-wrap: wrap;
    row-gap: 14px;
    margin-bottom: 19px;
  }
  .summary-strip span {
    font-size: 10px;
    padding: 0 12px;
    gap: 5px;
  }
  .summary-strip strong {
    font-size: 19px;
  }
  .filters {
    padding: 16px 0;
  }
  .search-row {
    flex-wrap: wrap;
    gap: 7px;
  }
  .search-box {
    max-width: none;
  }
  .search-row .button {
    flex: 1;
  }
  .filter-row {
    gap: 12px;
  }
  .filter-row label {
    flex: 1 1 150px;
    min-width: 0;
    max-width: 100%;
  }
  .filter-row label:nth-child(3) {
    min-width: 0;
  }
  .filter-row .filter-apply {
    align-self: end;
  }
  .table-toolbar {
    padding: 12px 0;
  }
  .data-table th:first-child,
  .data-table td:first-child {
    padding-left: 15px;
  }
  .data-table th:last-child,
  .data-table td:last-child {
    padding-right: 15px;
  }
  .data-table td {
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .people-table .mobile-secondary {
    display: none;
  }
  .people-table .person-name {
    min-width: 125px;
  }
  .person-link {
    font-size: 13px;
    white-space: normal;
  }
  .mono {
    font-size: 11px;
  }
  .people-table .button {
    min-height: 35px;
  }
  .people-table td {
    padding-left: 8px;
    padding-right: 8px;
  }
  .pagination {
    padding: 13px 15px;
  }
  .pagination .button {
    min-height: 36px;
  }
  .detail-panel {
    padding: 19px 16px;
  }
  .detail-columns {
    display: block;
  }
  .record-aside {
    margin-top: 25px;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 22px 0 0;
  }
  .data-grid {
    gap: 20px;
  }
  .tabs {
    gap: 0;
  }
  .tabs a {
    padding: 11px 13px;
  }
  .section-heading {
    align-items: start;
    gap: 12px;
  }
  .section-heading h2 {
    font-size: 15px;
  }
  .section-heading .button {
    font-size: 11px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .form-panel {
    padding: 22px 17px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .data-grid {
    grid-template-columns: 1fr 1fr;
  }
  .form-actions {
    position: static;
    background: white;
    padding: 13px 0;
    margin-bottom: 0;
  }
  .note > div {
    display: block;
  }
  .note small {
    display: block;
    margin-top: 4px;
  }
  .confirm-bar {
    display: block;
  }
  .confirm-bar p {
    margin-bottom: 14px;
  }
  .confirm-bar .button {
    white-space: normal;
    width: 100%;
  }
  .review-notice {
    padding: 18px;
  }
  .auth-wrap {
    padding: 25px 14px;
  }
  .auth-panel {
    padding: 24px !important;
  }
  .prose {
    font-size: 13px;
  }
  .document-grid {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

:root {
  --brand-font: "Trebuchet MS", "Segoe UI", Tahoma, sans-serif;
  --footer-ink: #596c7e;
}
.brand-name {
  font: 700 24px/1 var(--brand-font);
  letter-spacing: -0.8px;
}
.brand:focus-visible,
.auth-brand:focus-visible {
  outline-offset: 7px;
  border-radius: 4px;
}
.icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  stroke-width: 1.8;
}
.sidebar nav .icon {
  width: 19px;
  height: 19px;
}
.private-label .icon {
  width: 14px;
  height: 14px;
}
.operator > span:last-child {
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-bottom a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
  color: #5b7084;
}
.sidebar-bottom a:hover {
  color: var(--blue);
}
.sidebar-bottom .icon {
  width: 16px;
  height: 16px;
}
.logout:hover {
  background: #f0f4f8;
  border-color: #8a9eb2;
  color: var(--blue);
}
.topbar-right button.logout {
  min-height: 34px;
  font-size: 12px;
  padding: 6px 11px;
  color: #52677b;
}
.content-area {
  min-width: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.app-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px 32px;
  flex-wrap: wrap;
  padding: 19px 32px 22px;
  border-top: 1px solid #d6dfe8;
  background: #f3f6f9;
  color: var(--footer-ink);
  font-size: 11px;
  line-height: 1.7;
  flex-shrink: 0;
}
.app-footer p {
  margin: 0;
}
.copyright strong {
  font-weight: 600;
}
.confidential-notice {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}
.confidential-notice .icon {
  width: 14px;
  height: 14px;
  margin-top: 3px;
}
.mobile-utilities,
.demo-mobile {
  display: none;
}
.without-sidebar .app-footer {
  justify-content: center;
  gap: 16px 40px;
}
.auth-wrap .icon {
  width: 16px;
  height: 16px;
}
.auth-panel h1 {
  letter-spacing: -0.6px;
}
.auth-security-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: #eaf0f7;
  border: 1px solid #d6e1ed;
  border-radius: 8px;
  color: var(--blue);
}
.auth-security-mark .icon {
  width: 24px;
  height: 24px;
}
.auth-panel form .actions {
  flex-wrap: nowrap;
}
.auth-panel form .actions .button {
  flex: 1;
}
.auth-panel form button:not(.primary) {
  background: white;
  color: #52677b;
  border-color: #bbc9d7;
}
.back-link .icon {
  width: 14px;
  height: 14px;
}
.tabs .icon {
  width: 15px;
  height: 15px;
}
.document > div > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  justify-self: start;
}
.search-box .search-shortcut {
  position: absolute;
  right: 11px;
  top: 8px;
  border: 1px solid #d4dde6;
  background: #f6f8fa;
  border-radius: 3px;
  color: #748598;
  padding: 0 5px;
  font: 12px/20px var(--font);
  pointer-events: none;
}
.search-box input#busqueda {
  padding-right: 36px;
}
@media (min-width: 1600px) {
  .app-footer {
    padding-inline: 42px;
  }
}
@media (max-width: 1150px) {
  .topbar-right {
    gap: 12px;
  }
  .demo-tag {
    font-size: 10px;
    padding: 4px 6px;
  }
  .private-label {
    font-size: 10px;
  }
  .operator > span:last-child {
    max-width: 140px;
  }
  .app-footer {
    padding-inline: 21px;
  }
}
@media (max-width: 900px) and (min-width: 761px) {
  .topbar-right .demo-tag {
    display: none;
  }
  .demo-mobile {
    display: block;
    background: #faf7ec;
    border-bottom: 1px solid #e1d5af;
    color: #725a2d;
    text-align: center;
    font-size: 10px;
    padding: 3px 12px;
  }
  .operator > span:last-child {
    max-width: 110px;
  }
}
@media (max-width: 760px) {
  .topbar {
    min-height: 66px;
    padding: 12px 15px;
    gap: 12px;
  }
  .brand-name {
    font-size: 22px;
  }
  .topbar-right {
    gap: 10px;
  }
  .private-label {
    padding: 6px;
  }
  .private-label > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .operator {
    font-size: 11px;
  }
  .operator > span:last-child {
    max-width: 105px;
  }
  .topbar-right button.logout {
    min-height: 34px;
    padding: 6px 9px;
  }
  .logout .icon {
    width: 14px;
    height: 14px;
  }
  .sidebar {
    flex-shrink: 0;
  }
  .sidebar nav .icon {
    width: 18px;
    height: 18px;
  }
  .app-footer {
    padding: 18px 16px 22px;
    gap: 13px;
    font-size: 11px;
    flex-direction: column;
  }
  .without-sidebar .app-footer {
    align-items: flex-start;
    gap: 13px;
  }
  .mobile-utilities {
    display: flex;
    align-items: center;
    gap: 22px;
    padding-top: 5px;
  }
  .mobile-utilities a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
  }
  .demo-mobile {
    display: block;
    background: #faf7ec;
    border-bottom: 1px solid #e1d5af;
    color: #725a2d;
    text-align: center;
    font-size: 10px;
    padding: 3px 12px;
  }
  .tabs a {
    padding: 12px;
  }
  .tabs .icon {
    width: 14px;
    height: 14px;
  }
  .search-shortcut {
    display: none;
  }
  .button .icon {
    width: 15px;
    height: 15px;
  }
  .people-table .button .icon {
    display: none;
  }
}
@media (max-width: 420px) {
  .operator {
    display: flex;
  }
  .operator .avatar {
    display: grid;
    width: 28px;
    height: 28px;
  }
  .operator > span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .topbar-right {
    gap: 8px;
  }
  .brand-name {
    font-size: 21px;
  }
}

@media (max-width: 760px) {
  .signed-out .private-label {
    padding: 5px 9px;
  }
  .signed-out .private-label > span {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
  }
}

.selection-bar { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 20px; border-top:1px solid var(--line,#dce2e8); border-bottom:1px solid var(--line,#dce2e8); background:#f5f8fb; }
.selection-bar form { margin:0; }
.select-cell { width:42px; text-align:center; }
.select-cell input, .sheet-choice input { width:18px; height:18px; accent-color:#244f79; cursor:pointer; }
.sheet-choice { display:flex; align-items:center; gap:12px; padding:12px 0; border-bottom:1px solid #e3e8ee; }
.print-history { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:16px 0; border-bottom:1px solid #e3e8ee; }
.print-history:last-child { border-bottom:0; }
.document-shortcuts { margin:18px 0; }
.nav-count { margin-left:auto; font-size:12px; font-weight:700; background:#e5edf6; border-radius:10px; padding:1px 7px; }
#datos-ficha, #documentos-ficha { scroll-margin-top:100px; }
@media(max-width:700px) { .selection-bar,.print-history { align-items:flex-start; flex-direction:column; } .selection-bar { padding:12px; } }

.family-chooser { margin:0 0 22px; padding:16px 0; border-block:1px solid var(--line,#dce2e8); }
.family-chooser summary { cursor:pointer; font-weight:600; }
.family-chooser p { margin:14px 0; }
.family-candidate { display:flex; justify-content:space-between; align-items:center; gap:18px; padding:14px 0; border-bottom:1px solid var(--line,#dce2e8); }
.family-candidate small { display:block; margin-top:4px; overflow-wrap:anywhere; }
.family-actions { display:flex; flex-wrap:wrap; gap:8px; }
.family-candidate > div:first-child { min-width:0; overflow-wrap:anywhere; }
.family-reuse { margin-top:20px; }
.family-chooser .form-actions { position:static; background:transparent; flex-wrap:wrap; }
[data-family-pagination][hidden] { display:none; }
@media(max-width:760px) { .family-candidate { flex-direction:column; align-items:stretch; } .family-actions .button { white-space:normal; } }

[data-resignation-options] { margin-top: 24px; }

.table-scroll { position: relative; min-width: 0; max-width: 100%; overscroll-behavior-x: contain; }
.table-toolbar { flex-wrap: wrap; gap: 12px; }
.form-actions { flex-wrap: wrap; }
.data-table tfoot td, .data-table tfoot th { border-top: 1px solid var(--line); background: #f5f7fa; }
.data-table th.numeric { text-align: right; }
.data-table .person-name { min-width: 170px; }
.data-table .file-name { min-width: 180px; max-width: 360px; overflow-wrap: anywhere; }
.record-context { margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line); font-weight: 600; overflow-wrap: anywhere; }
.page-heading + .tabs { margin-top: 4px; }
.auth-panel h1 { margin-bottom: 26px; }
.auth-panel .footnote { margin: 20px 0 0; font-size: 12px; }
.empty { font-size: 14px; padding: 32px 20px; }
button, .button, summary { user-select: none; }
button:active:not(:disabled), .button:active { filter: brightness(.94); }
input[type="checkbox"] { accent-color: var(--blue); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #a6413d; }
:where(h1, h2, h3, [id]) { scroll-margin-top: 90px; }
@media (hover: hover) and (pointer: fine) {
  .sidebar nav a:hover { background: #e9eef3; }
}
@media (max-width: 760px) {
  .data-table .person-name { min-width: 125px; }
  .button, button[type="submit"], .button.small, .logout, .pagination .button { min-height: 44px; }
  .page-heading .button { white-space: normal; text-align: center; }
  .section-heading { flex-wrap: wrap; }
  .table-toolbar .actions { gap: 6px; }
  .data-table .select-cell { padding-inline: 8px; }
  .filter-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-row label, .filter-row label:nth-child(3) { min-width: 0; }
  .filter-row .button { align-self: end; }
}
@media (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea, .filter-row select, .search-box input { font-size: 16px; min-height: 44px; }
}
.image-upload-form {
  display: grid;
  gap: 16px;
  padding-bottom: 24px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.image-upload-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
}
.image-upload-form input[type="file"] {
  padding: 8px;
  min-height: 48px;
}
.image-upload-form input[type="file"]::file-selector-button {
  background: #f5f7fa;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  border: 1px solid #bcc8d3;
  border-radius: var(--radius);
  padding: 7px 12px;
  margin-right: 12px;
  cursor: pointer;
}
.image-upload-form .optional {
  color: var(--muted);
  font-weight: 400;
}
.image-upload-form .field-help {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 12px;
  max-width: 78ch;
  line-height: 1.6;
}
.image-upload-form [data-upload-feedback] {
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.image-upload-form [data-upload-feedback]:empty { display: none; }
.image-upload-form progress {
  width: 100%;
  height: 10px;
  accent-color: var(--blue);
}
.image-batch-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.image-results {
  justify-content: flex-start;
  padding-inline: 0;
}
.image-results .search-box { flex: 1 1 280px; }
.image-results select { min-width: 160px; }
.image-table .file-name { width: 36%; min-width: 220px; }
.image-table .image-result { min-width: 200px; overflow-wrap: anywhere; }
.image-table .row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.image-table .number { font-size: 13px; }
.image-table td { vertical-align: top; }
@media (max-width: 760px) {
  .image-upload-fields { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .image-upload-form input[type="file"]::file-selector-button { min-height: 44px; }
  .image-batch-meta { display: grid; gap: 5px; }
  .image-results .search-box { flex-basis: 100%; max-width: none; }
  .image-results select { flex: 1; min-width: 0; }
}

.quick-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.quick-filters a { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 16px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); font-size: 15px; }
.quick-filters a.selected { background: var(--blue); border-color: var(--blue); color: white; font-weight: 600; }
.quick-filters a:hover { text-decoration: none; border-color: var(--blue); }
.people-workspace { border: 0; border-radius: 0; box-shadow: none; }
.file-present { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; color: var(--green); }
.document-list .document-file { display: flex; gap: 12px; align-items: center; min-width: 190px; max-width: 420px; overflow-wrap: anywhere; }
.document-file img { flex: none; object-fit: contain; background: var(--nav); border: 1px solid var(--line); }
@media (max-width: 700px) {
  .quick-filters { gap: 4px; }
  .quick-filters a { padding-inline: 12px; }
}

.directory-heading { margin-bottom: 8px; gap: 16px; }
.directory-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.directory-title h1 { overflow-wrap: anywhere; }
.icon-button { padding: 10px; flex: none; }
.directory-toolbar { position: relative; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; min-height: 64px; padding-block: 8px 12px; }
.result-count { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.result-count strong { color: var(--ink); font-weight: 600; }
.directory-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.compact-menu { position: relative; }
.compact-menu summary, .filter-menu summary { list-style: none; cursor: pointer; }
.compact-menu summary::-webkit-details-marker, .filter-menu summary::-webkit-details-marker { display: none; }
.compact-menu summary::after { content: ''; width: 6px; height: 6px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg); margin: 0 2px 3px 6px; }
.compact-menu[open] > summary, .filter-menu[open] > summary { background: var(--nav); }
.menu-panel, .filter-panel { position: absolute; right: 0; top: 100%; z-index: 12; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 24px #23344818; }
.menu-panel { width: max-content; min-width: 210px; max-width: min(340px, calc(100vw - 48px)); padding: 6px; }
.menu-panel a, .menu-panel button { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 10px 12px; color: var(--ink); font-size: 15px; text-align: left; border: 0; background: transparent; width: 100%; white-space: normal; }
.menu-panel a:hover, .menu-panel button:hover, .menu-panel [aria-current] { background: var(--nav); text-decoration: none; }
.menu-panel [aria-current] { font-weight: 600; }
.menu-panel span { color: var(--muted); font-variant-numeric: tabular-nums; }
.menu-panel .menu-separator { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; }
.filter-panel { width: min(680px, 100%); padding: 20px; max-height: min(75vh, 760px); overflow-y: auto; overscroll-behavior: contain; }
.filter-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.filter-grid label, .filter-grid .catalog-field { display: grid; align-content: start; gap: 7px; font-size: 14px; font-weight: 500; min-width: 0; }
.filter-grid input, .filter-grid select { width: 100%; min-width: 0; min-height: 44px; font-size: 16px; }
.filter-wide { grid-column: 1 / -1; }
.filter-actions { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.filter-advanced { margin-top: 16px; }
.filter-advanced > summary { padding: 8px 0; color: var(--blue); cursor: pointer; }
.filter-advanced .filter-grid { margin-top: 12px; }
.filter-panel .field-help { color: var(--muted); font-size: 13px; margin: 16px 0 0; }
.filter-panel .active-filters { padding: 12px 0 0; }
.directory-heading .section-menu { flex: none; }
@media (max-width: 700px) {
  .directory-heading { align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .directory-heading h1 { font-size: 23px; }
  .directory-heading .section-menu { margin-left: 0; }
  .directory-toolbar { gap: 8px; padding-block: 8px; }
  .directory-tools { margin-left: auto; }
  .directory-toolbar .button, .directory-heading .button { min-height: 44px; }
  .filter-panel { width: 100%; padding: 16px; max-height: 70vh; }
  .filter-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .section-menu .menu-panel { right: auto; left: 0; }
  .filter-actions { position: sticky; bottom: -16px; background: var(--surface); padding-block: 12px; margin-top: 8px; }
}
.filter-panel { display: flex; flex-direction: column; overflow: hidden; }
.filter-body { overflow-y: auto; overscroll-behavior: contain; min-height: 0; padding: 2px; }
.filter-actions { flex: none; }
@media (max-width: 700px) {
  .filter-panel { position: fixed; top: 150px; left: 16px; right: 16px; width: auto; max-height: calc(100dvh - 170px); }
  .filter-actions { position: static; margin-top: 8px; padding: 8px 0 0; }
}

.data-grid dt { font-weight: 700; color: var(--ink); }
.person-heading { margin-bottom: 24px; }
.person-heading h1 { font-size: clamp(22px, 2.4vw, 30px); }
.person-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 36%); gap: 36px; align-items: start; }
.person-section { min-width: 0; padding-block: 22px; border-top: 1px solid var(--line); }
.person-section h2 { font-size: 18px; margin: 0 0 20px; }
.person-section .section-heading { margin-bottom: 20px; }
.person-section .section-heading h2 { margin: 0; }
.person-overview .data-grid { gap: 20px 24px; margin-bottom: 0; }
.person-overview .data-grid dt, .person-overview .data-grid dd { font-size: 14px; line-height: 1.5; }
.person-overview .table-scroll { margin-top: 18px; }
.person-overview .section-empty { color: var(--muted); font-size: 14px; margin: 0; }
.person-overview .section-empty + .button { margin-top: 16px; }
.person-document { margin: 0 0 24px; }
.document-preview { display: block; background: var(--nav); border: 1px solid var(--line); border-radius: var(--radius); }
.document-preview img { display: block; width: 100%; height: auto; max-height: 330px; object-fit: contain; }
.person-document figcaption { padding-top: 10px; font-size: 14px; overflow-wrap: anywhere; }
.document-review-note { display: block; margin-top: 7px; color: var(--ink); }
.document-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 10px; }
.person-history { padding-block: 14px; border-top: 1px solid var(--line); }
.person-history > summary { cursor: pointer; padding-block: 8px; font-size: 14px; font-weight: 600; }
.person-history[open] > summary { margin-bottom: 16px; }
.person-reference .reference-row + .reference-row { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 20px; }
.person-note { padding-block: 12px; border-bottom: 1px solid var(--line); }
.person-note div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.person-note small { color: var(--muted); }
.person-note p { margin: 8px 0 0; }
@media (max-width: 900px) { .person-main { grid-template-columns: minmax(0, 1fr); gap: 0; } .person-document { max-width: 600px; } }
@media (max-width: 540px) { .person-overview .data-grid { gap: 18px 16px; } .person-heading { margin-bottom: 16px; } .person-section h2 { font-size: 17px; } .person-overview .data-grid dt, .person-overview .data-grid dd { font-size: 14px; } }
