:root {
  --navy: #111111;
  --navy-2: #050505;
  --teal: #bd1522;
  --teal-soft: #f8e9eb;
  --gold: #bd1522;
  --ink: #171717;
  --muted: #6c6c6c;
  --line: #dedede;
  --container-line: #bcc4cf;
  --surface: #ffffff;
  --canvas: #f5f5f5;
  --danger: #a64040;
  --warning: #9a6a17;
  --success: #287353;
  --info: #2767b1;
  --progress-low: #c92835;
  --progress-medium: #d59b20;
  --progress-high: #26865c;
  --radius: 10px;
  --shadow: 0 1px 2px rgb(12 40 47 / 6%), 0 8px 28px rgb(12 40 47 / 5%);
}

* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
html { color-scheme: light; }
body { margin: 0; min-width: 320px; background: var(--canvas); color: var(--ink); font: 14px/1.5 Inter, "Segoe UI", Arial, sans-serif; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 6px; font-size: clamp(24px, 3vw, 32px); line-height: 1.15; letter-spacing: -.03em; }
h2 { margin-bottom: 3px; font-size: 17px; letter-spacing: -.01em; }
p { color: var(--muted); }
[hidden] { display: none !important; }
.visually-hidden { position: fixed !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; }

.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; width: 238px; padding: 22px 14px 18px; background: var(--navy-2); color: #fff; display: flex; flex-direction: column; }
.brand { display: block; margin: 0 5px 20px; padding: 8px; border-radius: 6px; background: #fff; box-shadow: 0 5px 20px rgb(0 0 0 / 20%); }
.brand-logo { display: block; width: 100%; height: auto; }
.project-ribbon { margin: -9px 8px 18px; padding: 9px 11px; border-left: 2px solid var(--gold); background: rgb(255 255 255 / 5%); }
.project-ribbon span, .project-ribbon strong { display: block; }
.project-ribbon span { color: #e63b47; font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.project-ribbon strong { margin-top: 3px; color: #d8e4e6; font-size: 9px; line-height: 1.35; }
.nav { display: grid; gap: 3px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 7px; color: #c7c7c7; font-size: 13px; font-weight: 600; }
.nav a span { width: 18px; text-align: center; font-size: 15px; color: #999; }
.nav a .nav-icon { height: 18px; display: inline-grid; flex: 0 0 18px; place-items: center; }
.nav a .nav-icon svg { width: 17px; height: 17px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav a:hover { background: rgb(255 255 255 / 5%); color: #fff; }
.nav a.active { background: #292929; color: #fff; box-shadow: inset 3px 0 0 var(--teal); }
.nav a.active span { color: #fff; }
.nav a[href="/mapa-interactivo"] { font-size: 11px; letter-spacing: -.01em; white-space: nowrap; }
.nav-divider { height: 1px; margin: 9px 10px; background: rgb(255 255 255 / 10%); }
.sidebar-session { min-width: 0; margin-top: auto; padding: 11px 12px; border: 1px solid rgb(255 255 255 / 10%); border-radius: 8px; background: rgb(255 255 255 / 5%); }
.sidebar-session-user { min-width: 0; display: flex; align-items: center; gap: 9px; }
.sidebar-user-avatar { width: 32px; height: 32px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid rgb(255 255 255 / 24%); border-radius: 50%; background: linear-gradient(145deg, #343434, #0d0d0d); color: #fff; font-size: 10px; font-weight: 900; }
.sidebar-session-user small, .sidebar-session-user strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-session-user small { color: #aeb1b5; font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.sidebar-session-user strong { color: #fff; font-size: 9px; letter-spacing: .02em; }
.sidebar-logout-form { margin: 6px 0 0 41px; line-height: 1; }
.sidebar-logout-form button { padding: 0; border: 0; background: transparent; color: #ee4a55; cursor: pointer; font-size: 8px; font-weight: 900; text-decoration: underline; text-underline-offset: 2px; }
.sidebar-logout-form button:hover { color: #fff; }
.sidebar-personal-back { min-height: 30px; display: flex; align-items: center; gap: 6px; margin: 0 0 10px; padding: 6px 8px; border: 1px solid rgb(255 255 255 / 13%); border-radius: 6px; background: rgb(255 255 255 / 6%); color: #fff; font-size: 9px; font-weight: 800; }
.sidebar-personal-back:hover { border-color: rgb(238 74 85 / 75%); background: rgb(189 21 34 / 18%); }
.app-shell { min-width: 0; margin-left: 238px; min-height: 100vh; }
.topbar { display: none; }
.eyebrow { margin: 0; color: var(--teal); font-size: 10px; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; }
.main-content { width: min(1480px, 100%); min-width: 0; margin: auto; padding: 28px 30px 48px; }
.main-content { user-select: text; }
.button, .icon-button, .copy-button { user-select: none; }
.menu-button { display: none; }
.sidebar-scrim { display: none; }

.page-heading { margin-bottom: 22px; }
.page-heading p:last-child { margin: 0; }
.split-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.form-heading { margin-bottom: 17px; }
.back-link { display: inline-block; margin-bottom: 12px; color: var(--teal); font-size: 12px; font-weight: 700; }
.required, label span b, .consent-check b { color: var(--danger); }
.panel { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.panel-header p { margin: 0; font-size: 12px; }
.text-link { color: var(--teal); font-size: 12px; font-weight: 700; }

.button { min-height: 39px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 14px; border: 1px solid transparent; border-radius: 7px; cursor: pointer; font-weight: 700; font-size: 12px; transition: background .16s, border-color .16s, transform .08s; }
.button:active { transform: translateY(1px); }
.button.primary { background: var(--navy); color: #fff; }
.button.primary:hover { background: var(--teal); }
.button.secondary { background: #fff; color: var(--ink); border-color: #cbd7d9; }
.button.secondary:hover { border-color: var(--teal); color: var(--teal); }
.button.danger-quiet { border-color: #e6caca; background: #fff; color: var(--danger); }
.button.small { min-height: 34px; padding: 6px 11px; }
.button:disabled { opacity: .55; cursor: wait; }
.button[aria-disabled="true"] { opacity: .48; cursor: not-allowed; pointer-events: none; }
.icon-button { width: 36px; height: 36px; border: 0; border-radius: 7px; background: transparent; cursor: pointer; color: var(--ink); font-size: 20px; }
.icon-button:hover { background: var(--canvas); }

.resources-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.resources-heading p:last-child { max-width: 680px; }
.resources-heading-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.route-report-button { flex: 0 0 auto; background: #e30613 !important; color: #fff !important; border-color: #e30613 !important; box-shadow: 0 7px 16px rgb(227 6 19 / 18%); }
.route-report-button:hover { background: #bd0010 !important; border-color: #bd0010 !important; }
.route-report-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body[data-page="mapa-interactivo"] .resources-heading { align-items: center; gap: 14px; }
body[data-page="mapa-interactivo"] .resources-heading > div { min-width: 0; }
body[data-page="mapa-interactivo"] .resources-heading h1 { margin-bottom: 4px; font-size: clamp(21px, 2.2vw, 32px); white-space: nowrap; }
.resources-count { flex: 0 0 auto; padding: 6px 10px; border: 1px solid #d8dde5; border-radius: 999px; background: #fff; color: #475467; font-size: 10px; font-weight: 800; }
.resources-library-stack { display: grid; gap: 16px; }
.foreign-route-panel { overflow: hidden; border-top: 3px solid #e30613; }
.foreign-route-header { align-items: flex-start; }
.foreign-route-header h2 { margin: 2px 0 4px; color: #101828; font-size: 17px; }
.foreign-route-header p:last-child { max-width: 820px; margin: 0; color: #667085; font-size: 10px; line-height: 1.5; }
.foreign-route-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.foreign-route-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid #d8dee7; background: #f7f8fa; }
.foreign-route-summary > div { min-width: 0; padding: 12px 16px; border-right: 1px solid #d8dee7; }
.foreign-route-summary > div:last-child { border-right: 0; }
.foreign-route-summary span { display: block; margin-bottom: 3px; color: #667085; font-size: 7.5px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.foreign-route-summary strong { display: block; color: #101828; font-size: 20px; line-height: 1.1; }
.foreign-route-filters { display: grid; grid-template-columns: minmax(230px, 1.4fr) repeat(3, minmax(145px, 1fr)) auto; align-items: end; gap: 10px; padding: 11px 14px; border-bottom: 1px solid #d8dee7; background: #fff; }
.foreign-route-filters label { min-width: 0; display: grid; gap: 5px; }
.foreign-route-filters label > span { color: #667085; font-size: 7px; font-weight: 900; letter-spacing: .045em; text-transform: uppercase; }
.foreign-route-filters input { width: 100%; min-height: 38px; padding: 8px 11px; border: 1px solid #ccd3dd; border-radius: 8px; background: #fff; color: #101828; font-size: 9px; outline: none; }
.foreign-route-filters input:focus { border-color: #e30613; box-shadow: 0 0 0 3px rgb(227 6 19 / 9%); }
.foreign-route-filters .button { min-height: 38px; }
.foreign-route-layout { min-height: 0; height: 450px; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr); }
.foreign-route-map-wrap { position: relative; min-width: 0; min-height: 0; border-left: 1px solid #d8dee7; background: #eef1f4; }
.foreign-route-map { width: 100%; height: 100%; background: #eef1f4; }
.foreign-route-legend { position: absolute; z-index: 500; left: 12px; bottom: 12px; display: flex; flex-wrap: wrap; gap: 10px; padding: 8px 10px; border: 1px solid rgb(16 24 40 / 16%); border-radius: 8px; background: rgb(255 255 255 / 94%); box-shadow: 0 6px 18px rgb(16 24 40 / 12%); color: #344054; font-size: 7px; font-weight: 850; }
.foreign-route-legend span { display: inline-flex; align-items: center; gap: 5px; }
.foreign-route-legend i { display: inline-block; flex: 0 0 auto; }
.route-legend-person { width: 10px; height: 10px; border: 2px solid #fff; border-radius: 50%; background: #111923; box-shadow: 0 0 0 1px #111923; }
.route-legend-destination { width: 12px; height: 12px; border: 2px solid #fff; border-radius: 50%; background: #e30613; box-shadow: 0 0 0 1px #e30613; }
.route-legend-line { width: 22px; height: 4px; border-radius: 999px; background: #e30613; box-shadow: 0 0 0 1px #111923; }
.foreign-route-sidebar { min-width: 0; min-height: 0; height: auto; display: flex; flex-direction: column; background: linear-gradient(180deg, #fff, #fafbfc); }
.foreign-route-sidebar-head { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; border-bottom: 1px solid #dfe4ea; }
.foreign-route-sidebar-head > div { min-width: 0; display: grid; gap: 2px; }
.foreign-route-sidebar-head small { color: #e30613; font-size: 7px; font-weight: 900; letter-spacing: .07em; }
.foreign-route-sidebar-head strong { overflow: hidden; color: #101828; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.foreign-route-sidebar-head > span { flex: 0 0 auto; padding: 5px 7px; border-radius: 999px; background: #111923; color: #fff; font-size: 7px; font-weight: 900; }
.foreign-route-groups { min-height: 0; flex: 1; padding: 12px; overflow-y: auto; background: #f5f7fa; scrollbar-color: #b7bec8 #f1f3f6; scrollbar-width: thin; }
.route-state-group { max-width: 980px; margin: 0 auto 12px; overflow: hidden; border: 1px solid #cdd4de; border-radius: 9px; background: #fff; box-shadow: 0 3px 10px rgb(16 24 40 / 5%); }
.route-state-group:last-child { margin-bottom: 0; }
.route-state-header { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border: 0; background: #111923; color: #fff; cursor: pointer; text-align: left; }
.route-state-header:hover { background: #202a37; }
.route-state-header:focus-visible { position: relative; z-index: 1; outline: 2px solid #e30613; outline-offset: -2px; }
.route-state-header strong { font-size: 10px; letter-spacing: .035em; }
.route-state-header span { display: inline-flex; align-items: center; gap: 9px; font-size: 7px; font-weight: 850; }
.route-state-header i { width: 7px; height: 7px; display: block; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s ease; }
.route-state-group.collapsed .route-state-header i { transform: rotate(-45deg) translate(-1px, -1px); }
.route-state-content { display: grid; grid-template-rows: 1fr; opacity: 1; transition: grid-template-rows .22s ease, opacity .18s ease; }
.route-state-content-inner { min-height: 0; overflow: hidden; }
.route-state-group.collapsed .route-state-content { grid-template-rows: 0fr; opacity: 0; }
.route-city-group + .route-city-group { border-top: 1px solid #d9dee6; }
.route-city-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 10px; background: #eef1f5; color: #344054; }
.route-city-heading strong { font-size: 8px; letter-spacing: .025em; }
.route-city-heading span { min-width: 24px; padding: 3px 6px; border-radius: 999px; background: #fff; color: #b9000b; font-size: 7px; font-weight: 900; text-align: center; }
.route-city-group table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.route-city-group th, .route-city-group td { padding: 7px 10px; border-top: 1px solid #e2e6ec; color: #344054; font-size: 8px; line-height: 1.3; text-align: left; vertical-align: middle; }
.route-city-group th { border-top: 0; background: #fafbfc; color: #667085; font-size: 6.5px; letter-spacing: .045em; }
.route-city-group th:first-child, .route-city-group td:first-child { width: 55%; }
.route-city-group th:nth-child(2), .route-city-group td:nth-child(2) { width: 25%; }
.route-city-group th:last-child, .route-city-group td:last-child { width: 20%; text-align: right; }
.route-city-group tbody tr:nth-child(even) { background: #fafafa; }
.route-city-group td a { color: #101828; font-weight: 800; text-decoration: none; }
.route-city-group td a:hover { color: #c6000d; text-decoration: underline; }
.route-map-person-button { min-width: 0; padding: 5px 7px; border: 1px solid #d2d7df; border-radius: 6px; background: #fff; color: #b9000b; cursor: pointer; font-size: 6.5px; font-weight: 900; white-space: nowrap; }
.route-map-person-button:hover { border-color: #e30613; background: #fff2f3; }
.route-map-person-button:disabled { border-color: #e2e6ec; background: #f5f6f8; color: #98a2b3; cursor: not-allowed; }
.foreign-route-stops { min-height: 0; flex: 1; margin: 0; padding: 12px 20px 18px; overflow-y: auto; list-style: none; scrollbar-color: #b7bec8 #f1f3f6; scrollbar-width: thin; }
.foreign-route-stops li { position: relative; min-width: 0; max-width: 780px; min-height: 48px; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 12px; margin: 0 auto; padding: 5px 12px 5px 0; border-radius: 8px; }
.foreign-route-stops li::before { content: ""; position: absolute; z-index: 0; top: 36px; bottom: -12px; left: 15px; width: 2px; background: linear-gradient(#e30613, #bbc2cc); }
.foreign-route-stops li:last-child::before { display: none; }
.foreign-route-stops li:hover { background: #fff4f5; }
.foreign-route-stops li > span { position: relative; z-index: 1; width: 30px; height: 30px; display: grid; place-items: center; border: 2px solid #e30613; border-radius: 50%; background: #fff; color: #b9000b; box-shadow: 0 2px 7px rgb(16 24 40 / 12%); font-size: 7px; font-weight: 900; }
.foreign-route-stops li:last-child > span { border-color: #e30613; background: #e30613; color: #fff; box-shadow: 0 3px 10px rgb(227 6 19 / 25%); }
.foreign-route-stops li > div { min-width: 0; display: grid; gap: 1px; }
.foreign-route-stops strong { overflow: hidden; color: #101828; font-size: 10px; letter-spacing: .02em; text-overflow: ellipsis; white-space: nowrap; }
.foreign-route-stops small { overflow: hidden; color: #7a8492; font-size: 7px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.foreign-route-stops b { min-width: 34px; padding: 5px 8px; border: 1px solid #d8dee7; border-radius: 999px; background: #fff; color: #344054; font-size: 7px; text-align: center; }
.foreign-route-loading { display: block !important; padding: 20px !important; color: #667085; font-size: 9px; text-align: center; }
.foreign-route-loading.error { color: #c81420; }
.foreign-route-warning { margin: 9px; padding: 9px 10px; border: 1px solid #f0c16e; border-radius: 7px; background: #fff8e8; color: #7a4d00; font-size: 7.5px; font-weight: 750; line-height: 1.45; }
.foreign-route-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 13px; border-top: 1px solid #d8dee7; background: #f7f8fa; color: #667085; font-size: 7px; font-weight: 700; }
.route-cluster-shell, .route-person-point, .route-destination-point { background: transparent; border: 0; }
.route-cluster-shell span { width: 42px; height: 42px; display: grid; place-items: center; border: 4px solid rgb(255 255 255 / 92%); border-radius: 50%; background: #111923; box-shadow: 0 3px 12px rgb(16 24 40 / 32%); color: #fff; font-size: 11px; font-weight: 900; }
.route-person-point span { width: 16px; height: 16px; display: block; border: 3px solid #fff; border-radius: 50%; background: #111923; box-shadow: 0 2px 7px rgb(16 24 40 / 35%); }
.route-destination-point span { width: 42px; height: 42px; display: grid; place-items: center; border: 4px solid #fff; border-radius: 50%; background: #e30613; box-shadow: 0 4px 14px rgb(227 6 19 / 36%); color: #fff; font-size: 9px; font-weight: 950; }
.route-person-popup { min-width: 190px; display: grid; gap: 5px; padding: 2px; }
.route-person-popup small { color: #e30613; font-size: 7px; font-weight: 900; letter-spacing: .04em; }
.route-person-popup strong { color: #101828; font-size: 10px; line-height: 1.35; }
.route-person-popup > span { color: #667085; font-size: 8px; font-weight: 750; }
.route-person-popup a { width: fit-content; margin-top: 2px; color: #b9000b; font-size: 8px; font-weight: 850; text-decoration: none; }
.route-person-popup a:hover { text-decoration: underline; }
.route-popup-warning { width: fit-content; padding: 3px 5px; border-radius: 4px; background: #fff2d6; color: #8a5100 !important; font-size: 6.5px !important; }
.route-person-popup.destination { min-width: 170px; }
.foreign-route-map .leaflet-control-zoom a { color: #111923; }
.foreign-route-map .leaflet-popup-content-wrapper { border-radius: 8px; box-shadow: 0 8px 24px rgb(16 24 40 / 20%); }
.foreign-route-map .leaflet-popup-content { margin: 12px 14px; }
.resource-library, .course-library { overflow: hidden; border-top: 3px solid #e30613; }
.resource-library-header, .course-library-header { align-items: flex-start; }
.resource-library-header p:last-child, .course-library-header p:last-child { max-width: 720px; margin-top: 3px; }
.resource-list, .course-list { display: grid; padding: 0 18px 8px; background: #fff; }
.resource-item, .course-item { min-width: 0; display: grid; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid #dfe4ea; }
.resource-item:first-child, .course-item:first-child { border-top: 0; }
.resource-item { grid-template-columns: 70px minmax(240px, 1.35fr) minmax(240px, .85fr) auto; }
.resource-item-file { position: relative; width: 58px; height: 62px; display: grid; place-items: center; border-radius: 9px; background: linear-gradient(145deg, #101722, #080d14); }
.resource-file-icon { width: 34px; height: 39px; display: grid; place-items: center; }
.resource-file-icon svg { width: 29px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.resource-format { position: absolute; right: -4px; bottom: 5px; padding: 3px 6px; border: 2px solid #fff; border-radius: 5px; background: #e30613; color: #fff; font-size: 7px; font-weight: 900; letter-spacing: .08em; }
.resource-item-body { min-width: 0; }
.resource-item-body h2 { margin: 0 0 4px; color: #101828; font-size: 13px; line-height: 1.3; }
.resource-item-body p { margin: 0 0 6px; color: #667085; font-size: 9px; }
.resource-filename { display: block; overflow: hidden; color: #475467; font-size: 8px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.resource-item-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.resource-item-details div { min-width: 0; padding-left: 11px; border-left: 2px solid #edf0f4; }
.resource-item-details dt { margin-bottom: 4px; color: #7a8492; font-size: 7px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.resource-item-details dd { min-width: 0; margin: 0; overflow: hidden; color: #344054; font-size: 8px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.resource-item-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.resource-item-actions .button { min-width: 104px; padding-inline: 9px; }
.resource-item-actions svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.resource-empty { padding: 40px 24px; text-align: center; }
.resource-empty p { margin-bottom: 0; }
.resource-upload-modal { width: min(540px, calc(100% - 24px)); }
.resource-upload-form { display: grid; gap: 14px; padding: 20px; }
.resource-upload-help { margin: -4px 0 0; font-size: 10px; }
.resource-file-picker { display: grid; gap: 6px; padding: 14px; border: 1px dashed #aeb8c5; border-radius: 9px; background: #f8fafc; cursor: pointer; }
.resource-file-picker:hover { border-color: #e30613; background: #fff8f8; }
.resource-file-picker input { position: fixed; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.resource-file-picker strong { color: #344054; font-size: 11px; }
.resource-file-picker strong.selected { color: #b9000b; }
.resource-file-picker small { color: #667085; font-size: 8px; }
.resource-upload-status { min-height: 17px; margin: -3px 0 0; color: #667085; font-size: 9px; font-weight: 800; }
.resource-upload-status.loading { color: #2767b1; }
.resource-upload-status.success { color: #287353; }
.resource-upload-status.error { color: #c81420; }
.course-item { grid-template-columns: minmax(230px, 1.05fr) minmax(330px, 1.35fr) minmax(190px, .8fr) auto; }
.course-item-identity { min-width: 0; display: flex; align-items: flex-start; gap: 10px; }
.course-type-mark { flex: 0 0 auto; padding: 6px 8px; border-radius: 6px; background: #101722; color: #fff; font-size: 8px; font-weight: 900; letter-spacing: .08em; }
.course-item-identity h3 { margin: 0 0 4px; color: #101828; font-size: 12px; line-height: 1.35; }
.course-item-identity small { color: #b9000b; font-size: 8px; font-weight: 850; }
.course-item-details { display: grid; grid-template-columns: .8fr 1fr 1.2fr; gap: 11px; margin: 0; }
.course-item-details div { min-width: 0; padding-left: 10px; border-left: 2px solid #edf0f4; }
.course-item-details dt, .course-item-label { margin-bottom: 4px; color: #7a8492; font-size: 7px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.course-item-details dd { min-width: 0; margin: 0; overflow-wrap: anywhere; color: #344054; font-size: 8px; font-weight: 750; line-height: 1.35; }
.course-item-positions { min-width: 0; }
.course-item-positions > div { display: flex; flex-wrap: wrap; gap: 4px; }
.course-item-positions > div span { padding: 4px 6px; border: 1px solid #d8dde5; border-radius: 999px; background: #f8fafc; color: #344054; font-size: 7px; font-weight: 800; }
.course-item-footer { min-width: 250px; display: grid; justify-items: end; gap: 7px; }
.course-item-footer > small { color: #667085; font-size: 7px; font-weight: 750; text-align: right; }
.course-item-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; }
.course-action-grid { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 7px; }
.course-action-grid .button { min-width: 0; width: 100%; min-height: 32px; display: inline-flex; padding: 6px 8px; align-items: center; justify-content: center; text-align: center; white-space: nowrap; }
.course-delete-button { flex: 0 0 auto; padding: 6px 9px; font-size: 8px; }
.course-delete-button:disabled { opacity: .5; cursor: wait; }
.course-detail-back { margin-bottom: 12px; }
.course-detail-heading { align-items: flex-start; }
.course-detail-heading h1 { max-width: 900px; }
.course-detail-heading-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.course-detail-summary { margin-bottom: 16px; overflow: hidden; border-top: 3px solid #e30613; }
.course-detail-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.course-detail-fact { min-width: 0; padding: 15px 17px; border-right: 1px solid #e0e4ea; border-bottom: 1px solid #e0e4ea; }
.course-detail-fact:nth-child(4n) { border-right: 0; }
.course-detail-fact-wide { grid-column: span 2; }
.course-detail-fact span { display: block; margin-bottom: 5px; color: #667085; font-size: 8px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.course-detail-fact strong { display: block; overflow-wrap: anywhere; color: #101828; font-size: 11px; line-height: 1.4; }
.course-detail-positions { display: flex; flex-wrap: wrap; gap: 5px; }
.course-detail-positions i { padding: 4px 7px; border: 1px solid #d8dde5; border-radius: 999px; background: #f8fafc; color: #344054; font-size: 8px; font-style: normal; font-weight: 800; }
.course-people-panel { overflow: hidden; }
.course-people-count { padding: 6px 9px; border-radius: 999px; background: #eef1f5; color: #344054; font-size: 8px; font-weight: 900; }
.course-people-list { display: grid; }
.course-person-row { display: grid; grid-template-columns: 96px minmax(210px, 280px) 140px 150px 100px 125px 90px; justify-content: start; align-items: stretch; min-width: 0; border-top: 1px solid #e2e6eb; }
.course-person-row:first-child { border-top: 0; }
.course-person-row > div { min-width: 0; display: flex; align-items: center; padding: 11px 10px; overflow-wrap: anywhere; color: #344054; font-size: 8px; font-weight: 700; line-height: 1.35; }
.course-person-row > div + div { border-left: 1px solid #edf0f4; }
.course-person-header { background: #f3f5f8; }
.course-person-header > div { align-items: center; color: #667085; font-size: 7px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.course-person-name { color: #101828; font-weight: 850; text-decoration: none; }
.course-person-name:hover { color: #c5000c; text-decoration: underline; }
.course-person-identity { align-items: flex-start !important; flex-direction: column; justify-content: center; gap: 4px; }
.course-person-name { display: block; line-height: 1.3; }
.course-person-project { display: block; color: #7a8492; font-size: 6.5px; font-weight: 800; line-height: 1.3; text-transform: uppercase; }
.course-person-curp { color: #101828; font-size: 8px; letter-spacing: .012em; white-space: nowrap; }
.course-person-dc3 { display: flex; justify-content: center; }
.course-person-dc3 .button { width: 100%; min-height: 30px; padding-inline: 6px; justify-content: center; font-size: 7px; white-space: nowrap; }
.dc3-status-required { color: #7a8492; font-size: 6.5px; font-weight: 850; line-height: 1.3; text-align: center; }
.dc3-batch-button.is-preparing { cursor: wait; }
.dc3-batch-region { position: fixed; z-index: 1700; right: 18px; bottom: 18px; width: min(370px, calc(100vw - 28px)); display: grid; gap: 9px; }
.dc3-batch-card { display: grid; gap: 9px; padding: 14px; border: 1px solid #9fa9b7; border-left: 4px solid #2563eb; border-radius: 10px; background: #fff; box-shadow: 0 14px 36px rgb(16 24 40 / 20%); animation: page-enter .2s ease both; }
.dc3-batch-card.ready { border-left-color: #16813d; }
.dc3-batch-card.failed { border-left-color: #c81420; }
.dc3-batch-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.dc3-batch-card-head > div { min-width: 0; display: grid; gap: 3px; }
.dc3-batch-card-head small { color: #e30613; font-size: 7px; font-weight: 900; letter-spacing: .08em; }
.dc3-batch-card-head strong { overflow: hidden; color: #101828; font-size: 10px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.dc3-batch-live { flex: 0 0 auto; padding: 4px 6px; border-radius: 999px; background: #eaf1ff; color: #2563eb; font-size: 6.5px; font-weight: 900; letter-spacing: .06em; }
.dc3-batch-dismiss { flex: 0 0 auto; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: #f1f3f6; color: #667085; cursor: pointer; font-size: 16px; }
.dc3-batch-progress { height: 7px; overflow: hidden; border-radius: 999px; background: #e9edf3; }
.dc3-batch-progress i { display: block; height: 100%; border-radius: inherit; background: #2563eb; transition: width .35s ease; }
.dc3-batch-card.ready .dc3-batch-progress i { background: #16813d; }
.dc3-batch-card.failed .dc3-batch-progress i { background: #c81420; }
.dc3-batch-status, .dc3-batch-counts { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dc3-batch-status { color: #344054; font-size: 9px; font-weight: 850; }
.dc3-batch-status b { color: #101828; }
.dc3-batch-counts { color: #667085; font-size: 7.5px; font-weight: 750; }
.dc3-batch-download, .dc3-batch-retry { width: 100%; }
.dc3-batch-region { position: fixed; inset: 0; width: min(760px, calc(100vw - 32px)); max-width: calc(100vw - 32px); max-height: min(82vh, 760px); margin: auto; padding: 0; overflow: hidden; box-sizing: border-box; border: 1px solid #aeb8c6; border-radius: 14px; background: #f8fafc; box-shadow: 0 24px 70px rgb(16 24 40 / 28%); }
dialog.dc3-batch-region:not([open]) { display: none; }
dialog.dc3-batch-region[open] { display: block; }
.dc3-batch-region::backdrop { background: rgb(9 16 25 / 48%); backdrop-filter: blur(2px); }
.dc3-batch-modal { display: grid; max-height: min(78vh, 720px); grid-template-rows: auto minmax(0, 1fr); }
.dc3-batch-modal-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; border-bottom: 1px solid #d8dee8; background: #fff; }
.dc3-batch-modal-header > div { display: grid; gap: 3px; }
.dc3-batch-modal-header small { color: #c8102e; font-size: 8px; font-weight: 900; letter-spacing: .09em; }
.dc3-batch-modal-header strong { color: #17202c; font-size: 16px; }
.dc3-batch-modal-close { width: 30px; height: 30px; padding: 0; border: 1px solid #cbd3de; border-radius: 50%; background: #fff; color: #596273; font-size: 20px; line-height: 1; cursor: pointer; }
.dc3-batch-modal-close:hover { border-color: #c8102e; color: #c8102e; background: #fff5f6; }
.dc3-batch-list { display: grid; gap: 10px; padding: 14px; overflow-y: auto; }
.dc3-batch-list:empty::after { content: "No hay procesos activos."; padding: 28px 12px; color: #667085; font-size: 11px; text-align: center; }
.dc3-batch-list .dc3-batch-card { width: auto; }
.dc3-batch-table-head { display: grid; grid-template-columns: minmax(130px, 1.35fr) minmax(140px, 1.4fr) minmax(64px, .55fr) minmax(108px, .8fr); gap: 10px; padding: 8px 14px; border-bottom: 1px solid #d8dee8; background: #f1f4f8; color: #667085; font-size: 8px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.dc3-batch-row { display: grid; grid-template-columns: minmax(130px, 1.35fr) minmax(140px, 1.4fr) minmax(64px, .55fr) minmax(108px, .8fr); gap: 10px; align-items: center; min-width: 0; padding: 12px 14px; box-sizing: border-box; border: 1px solid #cbd3de; border-radius: 9px; background: #fff; box-shadow: 0 2px 6px rgb(16 24 40 / 5%); }
.dc3-batch-row.ready { border-left: 4px solid #16813d; background: #fbfefc; }
.dc3-batch-row.failed { border-left: 4px solid #c81420; background: #fffafb; }
.dc3-batch-row > div { min-width: 0; }
.dc3-batch-row-course { display: grid; gap: 4px; }
.dc3-batch-row-course strong { overflow: hidden; color: #17202c; font-size: 11px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.dc3-batch-row-course small, .dc3-batch-row-counts small { color: #667085; font-size: 8px; line-height: 1.3; }
.dc3-batch-row-progress { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 8px; }
.dc3-batch-row-progress .dc3-batch-progress { grid-column: 1 / -1; }
.dc3-batch-row-progress span { overflow: hidden; color: #344054; font-size: 8px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.dc3-batch-row-progress b, .dc3-batch-row-counts strong { color: #17202c; font-size: 10px; font-variant-numeric: tabular-nums; }
.dc3-batch-row-counts { display: grid; gap: 3px; }
.dc3-batch-row-action { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.dc3-batch-row-action .button { min-width: 0; width: 100%; white-space: nowrap; }
.dc3-batch-row-action .dc3-batch-live { white-space: nowrap; }
@media (max-width: 620px) {
  .dc3-batch-table-head { display: none; }
  .dc3-batch-row { grid-template-columns: minmax(0, 1fr) auto; gap: 9px; padding: 12px; }
  .dc3-batch-row-course, .dc3-batch-row-progress { grid-column: 1 / -1; }
  .dc3-batch-row-counts { grid-column: 1; }
  .dc3-batch-row-action { grid-column: 2; grid-row: 3; }
}
@media (min-width: 621px) and (max-width: 760px) {
  .dc3-batch-table-head, .dc3-batch-row { grid-template-columns: minmax(110px, 1.2fr) minmax(120px, 1.3fr) minmax(58px, .5fr) minmax(96px, .8fr); gap: 7px; }
  .dc3-batch-row { padding: 10px; }
  .dc3-batch-row-action { gap: 4px; }
}
.course-person-cell-label { display: none; }
.course-people-empty { padding: 38px 20px; text-align: center; }
.course-people-empty strong { display: block; margin-bottom: 4px; font-size: 11px; }
.course-people-empty p { margin: 0; color: #667085; font-size: 9px; }
.course-empty { padding: 34px 20px; text-align: center; }
.course-empty strong { font-size: 11px; }
.course-empty p { margin: 4px 0 0; font-size: 9px; }
.course-create-modal { width: min(720px, calc(100% - 24px)); }
.course-create-form { display: grid; gap: 14px; padding: 20px; }
.course-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.course-form-grid label { min-width: 0; display: grid; gap: 5px; }
.course-form-grid label > span, .course-position-selector legend { color: #475467; font-size: 9px; font-weight: 850; letter-spacing: .035em; text-transform: uppercase; }
.course-form-grid label > span b, .course-position-selector legend b { color: var(--danger); }
.course-form-grid input { width: 100%; min-width: 0; text-transform: uppercase; }
.course-form-grid input[type="number"], .course-form-grid input[type="date"] { text-transform: none; }
.course-signature-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, .95fr); align-items: center; gap: 14px; padding: 12px; border: 1px solid #b8c1cd; border-radius: 10px; background: linear-gradient(115deg, #fff 55%, #f7f8fa); }
.course-signature-copy { min-width: 0; display: flex; align-items: center; gap: 10px; }
.course-signature-copy > div { min-width: 0; display: grid; gap: 3px; }
.course-signature-copy strong { color: #101828; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.course-signature-copy small { color: #667085; font-size: 8px; font-weight: 700; }
.course-signature-icon { width: 34px; height: 34px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 8px; background: #fff0f1; color: #d60614; }
.course-signature-icon svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.course-signature-picker { min-width: 0; display: grid; grid-template-columns: 58px minmax(0, 1fr); align-items: center; gap: 10px; padding: 8px; border: 1px dashed #9ea9b7; border-radius: 8px; background: #fff; cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.course-signature-picker:hover { transform: translateY(-1px); border-color: #e30613; box-shadow: 0 5px 14px rgb(16 24 40 / 8%); }
.course-signature-picker input { position: fixed; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.course-signature-picker > span:last-child { min-width: 0; display: grid; gap: 3px; }
.course-signature-picker strong { overflow: hidden; color: #344054; font-size: 9px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.course-signature-picker small { color: #667085; font-size: 7px; font-weight: 700; }
.course-signature-preview { height: 42px; display: grid; place-items: center; border: 1px solid #d8dee7; border-radius: 6px; background: #f6f7f9 center / contain no-repeat; color: #98a2b3; font-size: 7px; font-weight: 900; letter-spacing: .08em; }
.course-signature-preview.has-image { background-color: #fff; }
.course-field-wide { grid-column: 1 / -1; }
.course-position-selector { margin: 0; padding: 12px; border: 1px solid #cbd2dc; border-radius: 9px; background: #f8fafc; }
.course-position-selector legend { padding: 0 6px; }
.course-position-selector > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.course-position-selector label { min-width: 0; display: flex; align-items: center; gap: 7px; padding: 9px; border: 1px solid #dce1e7; border-radius: 7px; background: #fff; cursor: pointer; }
.course-position-selector label:has(input:checked) { border-color: rgb(227 6 19 / 52%); background: #fff5f6; box-shadow: inset 3px 0 #e30613; }
.course-position-selector input { flex: 0 0 auto; width: 16px; min-height: 16px; margin: 0; accent-color: #e30613; }
.course-position-selector span { min-width: 0; font-size: 9px; font-weight: 800; }

.dashboard-top-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(310px, .65fr); gap: 10px; margin-bottom: 10px; }
.project-overview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; overflow: hidden; }
.project-fact { min-width: 0; padding: 15px 18px; border-left: 1px solid var(--line); }
.project-fact:first-child { border-left: 0; }
.project-fact span, .project-fact strong { display: block; }
.project-fact span { margin-bottom: 4px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.project-fact strong { overflow-wrap: anywhere; font-size: 12px; }
.project-fact.primary-fact { grid-column: 1 / -1; border-bottom: 1px solid var(--line); box-shadow: inset 3px 0 0 var(--teal); }
.project-overview .project-fact:nth-child(2) { border-left: 0; }
.dashboard-period-panel { margin-bottom: 14px; overflow: hidden; border-top: 3px solid var(--teal); }
.dashboard-report-panel { display: flex; flex-direction: column; gap: 9px; margin: 0; padding: 13px 15px; border-left: 3px solid #191919; }
.dashboard-top-grid .dashboard-report-panel { grid-column: 2; grid-row: 1 / span 2; }
.dashboard-top-grid .dashboard-period-panel { margin: 0; }
.dashboard-report-title h2 { margin: 1px 0 2px; font-size: 16px; }
.dashboard-report-title p { margin-bottom: 0; font-size: 10px; }
.dashboard-report-panel form { display: grid; grid-template-columns: 1fr; align-items: end; gap: 8px; }
.dashboard-report-panel form select { min-height: 36px; }
.dashboard-report-panel > small { margin-top: auto; color: var(--muted); font-size: 8px; }
.dashboard-report-panel .report-inventory-filter small { color: #667085; font-size: 8px; line-height: 1.35; }
.dashboard-period-form { display: grid; grid-template-columns: minmax(260px, 1fr) 170px 170px auto; align-items: end; gap: 13px; padding: 17px 18px 13px; }
.dashboard-period-title h2 { margin: 2px 0 3px; font-size: 17px; }
.dashboard-period-title p { margin-bottom: 0; font-size: 10px; }
.dashboard-last-updated { display: block; margin-top: 4px; color: #667085; font-size: 8px; font-weight: 750; letter-spacing: .02em; }
.dashboard-period-shortcuts { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px 15px; }
.dashboard-period-shortcuts button[data-period] { min-height: 28px; padding: 4px 10px; border: 1px solid #d5dcdd; border-radius: 14px; background: #fff; color: var(--muted); cursor: pointer; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.dashboard-period-shortcuts button[data-period]:hover { border-color: var(--teal); color: var(--teal); }
.dashboard-empty-notice { margin: 0 0 14px; padding: 13px 16px; border: 1px solid #d8ddde; border-left: 4px solid var(--teal); border-radius: 7px; background: #f7f9f9; color: var(--muted); font-size: 10px; font-weight: 800; }
.dashboard-metric-group { margin-bottom: 20px; padding: 17px; border: 1px solid var(--container-line); border-radius: 10px; box-shadow: 0 4px 16px rgb(0 0 0 / 3%); }
.dashboard-period-results { border-top: 3px solid var(--teal); background: #f7faf9; }
.dashboard-current-results { border-top: 3px solid #202020; background: #f7f7f8; }
.dashboard-metric-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 15px; }
.dashboard-metric-heading h2 { margin: 0 0 3px; font-size: 18px; }
.dashboard-metric-heading p { margin-bottom: 0; font-size: 10px; }
.dashboard-scope-badge { flex: 0 0 auto; padding: 6px 9px; border: 1px solid; border-radius: 5px; font-size: 8px; font-weight: 900; letter-spacing: .05em; }
.dashboard-scope-badge.filtered { border-color: #bdd4d1; background: #eaf3f1; color: var(--teal); }
.dashboard-scope-badge.current { border-color: #d0d1d2; background: #eceeef; color: #333; }
.dashboard-current-badges { display: flex; align-items: center; gap: 7px; }
.dashboard-metric-group .stat-grid { margin-bottom: 14px; }
.dashboard-metric-group .dashboard-activity-panel { margin-bottom: 14px; }
.dashboard-chart-panel { margin-bottom: 0; overflow: hidden; }
.dashboard-insight-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr); align-items: start; gap: 10px; margin-bottom: 12px; }
.dashboard-insight-grid .dashboard-metric-group { min-width: 0; margin-bottom: 0; }
.dashboard-period-detail-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.dashboard-insight-grid .stat-grid.four-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dashboard-insight-grid .dashboard-metric-heading { align-items: flex-start; }
.dashboard-insight-grid .dashboard-metric-heading > div:first-child { min-width: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.stat-grid.four-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-card { position: relative; overflow: hidden; padding: 18px 19px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.stat-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--teal); }
.stat-card.warning::before { background: #6d6d6d; }
.stat-card.rejected::before { background: var(--danger); }
.stat-card.approved::before { background: var(--success); }
.stat-card.approved strong { color: var(--success); }
.dashboard-current-results .current-metrics-grid .stat-card.approved { grid-column: 1 / -1; }
.stat-card.metric-added::before { background: #777c82; }
.stat-card.metric-sent::before { background: var(--info); }
.stat-card.metric-released::before { background: var(--success); }
.stat-card.metric-rejected::before { background: var(--danger); }
.stat-card.metric-added strong { color: #555b60; }
.stat-card.metric-sent strong { color: var(--info); }
.stat-card.metric-released strong { color: var(--success); }
.stat-card.metric-rejected strong { color: var(--danger); }
.stat-card span, .stat-card small { display: block; color: var(--muted); }
.stat-card span { font-size: 12px; font-weight: 600; }
.stat-card strong { display: block; margin: 7px 0 1px; font-size: 29px; line-height: 1; }
.stat-card small { font-size: 10px; }
.dashboard-activity-panel { margin-bottom: 18px; overflow: hidden; border-top: 3px solid #191919; }
.dashboard-total-badge { padding: 5px 8px; border-radius: 4px; background: #f0f1f2; color: var(--muted); font-size: 8px; font-weight: 900; white-space: nowrap; }
.dashboard-activity-wrap { max-height: 330px; overflow: auto; border-top: 1px solid var(--line); }
.dashboard-activity-table { width: 100%; min-width: 590px; border-collapse: collapse; }
.dashboard-activity-table th, .dashboard-activity-table td { padding: 10px 15px; border-bottom: 1px solid #ececee; text-align: left; font-size: 10px; }
.dashboard-activity-table th { position: sticky; top: 0; z-index: 1; background: #f7f7f8; color: var(--muted); font-size: 8px; text-transform: uppercase; }
.dashboard-activity-table td:not(:first-child), .dashboard-activity-table th:not(:first-child) { text-align: center; }
.dashboard-activity-table .dashboard-no-data { padding: 24px 15px; color: var(--muted); font-weight: 700; text-align: center; }
.activity-value { min-width: 27px; display: inline-grid; place-items: center; padding: 4px 7px; border-radius: 4px; background: color-mix(in srgb, var(--series-color, #64748b) 10%, white); color: var(--series-color, #344054); font-weight: 900; }
.activity-value.added { color: var(--ink); }
.activity-value.sent { background: #e9f1fb; color: var(--info); }
.activity-value.released { background: #e8f3ed; color: var(--success); }
.activity-value.rejected { background: #fff0f1; color: var(--danger); }

body[data-page="dashboard"] .main-content { padding-top: 20px; padding-bottom: 28px; }
body[data-page="dashboard"] .page-heading { margin-bottom: 13px; }
body[data-page="dashboard"] .page-heading h1 { font-size: clamp(23px, 2.4vw, 29px); }
body[data-page="dashboard"] .project-overview { margin-bottom: 10px; }
body[data-page="dashboard"] .project-fact { padding: 11px 15px; }
body[data-page="dashboard"] .project-fact.primary-fact strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body[data-page="dashboard"] .dashboard-period-panel { margin-bottom: 10px; }
body[data-page="dashboard"] .dashboard-period-form { gap: 10px; padding: 11px 15px 8px; }
body[data-page="dashboard"] .dashboard-period-shortcuts { gap: 5px; padding: 0 15px 10px; }
body[data-page="dashboard"] .dashboard-metric-group { margin-bottom: 12px; padding: 12px; }
body[data-page="dashboard"] .dashboard-metric-heading { gap: 12px; margin-bottom: 10px; }
body[data-page="dashboard"] .dashboard-metric-heading h2 { font-size: 16px; }
body[data-page="dashboard"] .dashboard-metric-group .stat-grid { gap: 10px; margin-bottom: 10px; }
body[data-page="dashboard"] .stat-card { padding: 12px 14px; }
body[data-page="dashboard"] .stat-card strong { margin-top: 4px; font-size: 25px; }
body[data-page="dashboard"] .panel-header { padding: 11px 14px; }
body[data-page="dashboard"] .dashboard-activity-panel { margin-bottom: 0; }
body[data-page="dashboard"] .dashboard-activity-wrap { max-height: 230px; }
body[data-page="dashboard"] .dashboard-activity-table th,
body[data-page="dashboard"] .dashboard-activity-table td { padding: 8px 10px; }
body[data-page="dashboard"] .status-chart { min-height: 0; gap: 8px; padding: 13px 14px; }
body[data-page="dashboard"] .dashboard-recruiter-panel .status-chart { align-content: start; }
body[data-page="dashboard"] .status-row { gap: 9px; }
body[data-page="dashboard"] .privacy-banner { padding: 10px 13px; }
body[data-page="dashboard"] .dashboard-insight-grid .dashboard-activity-table { min-width: 520px; }
body[data-page="dashboard"] .dashboard-insight-grid .dashboard-recruiter-panel { min-height: 170px; }
body[data-page="dashboard"] .dashboard-current-results .dashboard-chart-panel { margin-top: 2px; }
.dashboard-filter-alert { margin: 0 0 14px; overflow: hidden; border: 1px solid #e4c889; border-left: 4px solid #b7790c; border-radius: 8px; background: #fffaf0; box-shadow: 0 3px 10px rgb(112 76 13 / 7%); }
.dashboard-filter-alert > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border-bottom: 1px solid #f0ddb1; }
.dashboard-filter-alert header span { display: block; color: #8b6017; font-size: 8px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.dashboard-filter-alert h3 { margin: 3px 0 2px; color: #533b0d; font-size: 13px; }
.dashboard-filter-alert p { margin: 0; color: #806426; font-size: 9px; }
.dashboard-filter-alert-actions > strong { min-width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: #b7790c; color: #fff; font-size: 13px; }
.dashboard-filter-alert-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 7px; }
.dashboard-filter-alert-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(225px, 1fr)); gap: 1px; background: #f0ddb1; }
.dashboard-filter-alert-list a { min-width: 0; padding: 10px 13px; background: #fffdf8; }
.dashboard-filter-alert-list a:hover { background: #fff6df; }
.dashboard-filter-alert-list strong, .dashboard-filter-alert-list span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-filter-alert-list strong { color: #302509; font-size: 10px; }
.dashboard-filter-alert-list span { margin-top: 3px; color: #8b6e32; font-size: 8px; font-weight: 800; }
.dashboard-filter-alert:not(.has-followups) { border-color: #dfe3e5; border-left-color: #aeb5ba; background: #fafbfb; box-shadow: none; }
.dashboard-filter-alert:not(.has-followups) > header { border-bottom-color: #e7eaeb; }
.dashboard-filter-alert:not(.has-followups) header span { color: #657277; }
.dashboard-filter-alert:not(.has-followups) h3 { color: #3e484c; }
.dashboard-filter-alert:not(.has-followups) p { color: #6d777b; }
.dashboard-filter-alert:not(.has-followups) .dashboard-filter-alert-actions > strong { background: #9ba4a8; }
.dashboard-filter-alert:not(.has-followups) .dashboard-filter-alert-list { background: #e7eaeb; }
.dashboard-filter-alert-empty { display: block; padding: 9px 13px; background: #fff; color: #69757a; font-size: 8px; font-weight: 900; letter-spacing: .035em; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(290px, .8fr); gap: 18px; margin-bottom: 18px; }
.status-chart { min-height: 240px; padding: 20px; display: grid; gap: 13px; align-content: center; }
.status-row { display: grid; grid-template-columns: 155px 1fr 30px; align-items: center; gap: 12px; font-size: 12px; }
.status-row span { text-transform: uppercase; }
.recruiter-row { grid-template-columns: minmax(110px, 1.2fr) minmax(80px, 1fr) 30px; }
.status-row strong { text-align: right; }
.bar-track, .progress-track { overflow: hidden; height: 7px; border-radius: 9px; background: #e8eeee; }
.bar-track i, .progress-track i { display: block; height: 100%; border-radius: inherit; background: var(--teal); transition: width .4s ease; }
.quick-panel > a { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; padding: 15px 19px; border-bottom: 1px solid var(--line); }
.quick-panel > a:last-child { border-bottom: 0; }
.quick-panel > a:hover { background: #f9fbfb; }
.quick-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 7px; background: var(--teal-soft); color: var(--teal); font-weight: 800; }
.quick-panel strong, .quick-panel small { display: block; }
.quick-panel strong { font-size: 12px; }
.quick-panel small { color: var(--muted); font-size: 10px; }
.quick-panel b { color: var(--muted); font-size: 20px; }
.privacy-banner { display: flex; align-items: flex-start; gap: 13px; padding: 14px 17px; border: 1px solid #cbdede; border-radius: 9px; background: var(--teal-soft); }
.privacy-banner p { margin: 2px 0 0; font-size: 11px; }
.privacy-icon { flex: 0 0 auto; width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--teal); border-radius: 50%; color: var(--teal); font-weight: 800; }

label { display: grid; align-content: start; gap: 5px; color: var(--ink); font-size: 11px; font-weight: 700; }
input, select, textarea { width: 100%; min-height: 39px; padding: 8px 10px; border: 1px solid #cbd6d8; border-radius: 6px; background: #fff; color: var(--ink); outline: none; font-weight: 400; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgb(31 106 114 / 10%); }
input:disabled { background: #f1f4f4; color: var(--muted); }
.uppercase { text-transform: uppercase; }
.record-form input:not([type="email"]), .record-form textarea, .record-form select { text-transform: uppercase; }
.record-form input[type="email"] { text-transform: lowercase; }
.field-error { min-height: 13px; color: var(--danger); font-size: 10px; font-weight: 500; }
.invalid input, .invalid select, .invalid textarea { border-color: var(--danger); }

.filter-panel { margin-bottom: 14px; padding: 17px; }
.filter-panel-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: -2px 0 15px; padding: 0 0 12px; border-bottom: 1px solid #e1e2e4; }
.filter-panel-heading h2 { margin: 0 0 2px; font-size: 16px; }
.filter-panel-heading p { margin: 0; font-size: 10px; }
.people-filter-mode { display: inline-flex; flex-wrap: wrap; flex-shrink: 0; gap: 4px; padding: 4px; border: 1px solid #cbd2dd; border-radius: 9px; background: #f5f6f8; }
.people-filter-mode button { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 7px 12px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #475467; font-size: 11px; font-weight: 800; cursor: pointer; }
.people-filter-mode button.active { background: #bd1522; border-color: #bd1522; color: #fff; box-shadow: 0 2px 5px rgb(16 24 40 / 12%); }
.people-filter-mode button span { min-width: 20px; padding: 2px 5px; border-radius: 999px; background: rgb(0 0 0 / 7%); font-size: 9px; text-align: center; }
.people-filter-mode button.active span { background: rgb(255 255 255 / 20%); }
.people-filter-help { margin: 0 0 12px; font-size: 10px; line-height: 1.4; }
.active-people-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; padding-top: 11px; border-top: 1px solid #e1e2e4; }
.active-filter-chip { max-width: 100%; padding: 5px 8px; border: 1px solid #cbd5e1; border-radius: 6px; background: #f1f5f9; color: #334155; font-size: 9px; font-weight: 750; overflow-wrap: anywhere; }
.active-filter-chip.exclude { border-color: #efb6bd; background: #fff1f2; color: #a6101d; }
@media (max-width: 700px) { .filter-panel-heading { align-items: flex-start; flex-direction: column; gap: 9px; } }
.filters { display: grid; grid-template-columns: minmax(210px, 1.7fr) repeat(5, minmax(130px, 1fr)); align-items: end; gap: 12px; }
.filters > * { min-width: 0; }
.filter-panel .filters select {
  min-height: 43px;
  padding: 9px 44px 9px 12px;
  border: 1px solid #bfc2c6;
  border-radius: 10px;
  background-color: #f8f9fa;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23bd1522' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
    linear-gradient(90deg, transparent calc(100% - 39px), #eceeef calc(100% - 39px));
  background-position: right 11px center, 0 0;
  background-size: 16px 16px, 100% 100%;
  color: #26282a;
  font-size: 10px;
  font-weight: 750;
  box-shadow: 0 2px 6px rgb(0 0 0 / 6%), inset 0 1px #fff;
}
.filter-panel .filters select:hover {
  border-color: #989ca0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%239b0f19' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
    linear-gradient(90deg, transparent calc(100% - 39px), #f2e5e7 calc(100% - 39px));
  box-shadow: 0 4px 10px rgb(0 0 0 / 9%);
}
.filter-panel .filters select:focus {
  border-color: var(--teal);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgb(189 21 34 / 13%), 0 4px 10px rgb(0 0 0 / 7%);
}
.filter-panel .filters select option { background: #fff; color: #202124; font-weight: 600; }
.filter-panel .filters select.filter-native-select { position: absolute; width: 1px; min-height: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; border: 0; opacity: 0; clip-path: inset(50%); pointer-events: none; }
.custom-filter-select { min-width: 0; position: relative; }
.custom-filter-select.open { z-index: 40; }
/* La animación de entrada crea un contexto de apilamiento por panel. */
.filter-panel:has(.custom-filter-select.open) { position: relative; z-index: 60; }
.custom-filter-select-trigger { width: 100%; min-height: 43px; display: grid; grid-template-columns: minmax(0, 1fr) 40px; align-items: stretch; padding: 0; overflow: hidden; border: 1px solid #bfc2c6; border-radius: 10px; background: #f8f9fa; color: #26282a; cursor: pointer; box-shadow: 0 2px 6px rgb(0 0 0 / 6%), inset 0 1px #fff; font-size: 10px; font-weight: 750; text-align: left; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; }
.custom-filter-select-trigger > span { min-width: 0; align-self: center; padding: 9px 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: uppercase; }
.custom-filter-select-trigger > i { position: relative; display: grid; place-items: center; border-left: 1px solid #e1e3e5; background: #eceeef; }
.custom-filter-select-trigger > i::before { width: 7px; height: 7px; border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal); content: ""; transform: translateY(-2px) rotate(45deg); transition: transform .16s ease; }
.custom-filter-select-trigger:hover { border-color: #989ca0; background: #fff; box-shadow: 0 4px 10px rgb(0 0 0 / 9%); }
.custom-filter-select-trigger:hover > i { background: #f2e5e7; }
.custom-filter-select.open .custom-filter-select-trigger { border-color: var(--teal); background: #fff; box-shadow: 0 0 0 3px rgb(189 21 34 / 13%), 0 4px 10px rgb(0 0 0 / 8%); }
.custom-filter-select.open .custom-filter-select-trigger > i::before { transform: translateY(2px) rotate(225deg); }
.custom-filter-select-menu { width: max(100%, 280px); max-width: calc(100vw - 24px); position: absolute; z-index: 45; top: calc(100% + 7px); left: 0; max-height: 320px; overflow-y: auto; padding: 6px; border: 1px solid #c5c8cb; border-radius: 11px; background: rgb(255 255 255 / 98%); box-shadow: 0 16px 38px rgb(0 0 0 / 18%), 0 2px 8px rgb(0 0 0 / 8%); scrollbar-color: #c1c3c6 #f2f3f4; scrollbar-width: thin; backdrop-filter: blur(8px); }
.custom-filter-select.opens-left .custom-filter-select-menu { right: 0; left: auto; }
.custom-filter-select.opens-upward .custom-filter-select-menu { top: auto; bottom: calc(100% + 7px); }
.custom-filter-select-option { width: 100%; min-height: 38px; display: grid; grid-template-columns: minmax(0, 1fr) 23px; align-items: center; gap: 7px; padding: 8px 9px 8px 11px; border: 0; border-radius: 7px; background: transparent; color: #333639; cursor: pointer; font-size: 9px; font-weight: 750; text-align: left; text-transform: uppercase; }
.custom-filter-select-option + .custom-filter-select-option { margin-top: 2px; }
.custom-filter-select-option > span { overflow-wrap: anywhere; }
.custom-filter-select-option > i { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: transparent; font-size: 10px; font-style: normal; }
.custom-filter-select-option:hover, .custom-filter-select-option:focus-visible { background: #f3f4f5; color: #111; outline: 0; }
.custom-filter-select-option.selected { background: #fff0f2; color: #96131d; font-weight: 900; }
.custom-filter-select-option.selected > i { background: var(--teal); color: #fff; }
.custom-filter-select.multiple .custom-filter-select-option > i { border: 1px solid #c9ced6; border-radius: 5px; }
.custom-filter-select.multiple .custom-filter-select-option.selected > i { border-color: var(--teal); }
.modern-native-select { position: absolute !important; width: 1px !important; min-width: 1px !important; height: 1px !important; min-height: 1px !important; margin: 0 !important; padding: 0 !important; overflow: hidden !important; border: 0 !important; opacity: 0 !important; clip-path: inset(50%) !important; pointer-events: none !important; }
.modern-select { width: 100%; min-width: 0; position: relative; }
.modern-select-trigger { width: 100%; min-height: 39px; display: grid; grid-template-columns: minmax(0, 1fr) 38px; align-items: stretch; padding: 0; overflow: hidden; border: 1px solid #bfc2c6; border-radius: 8px; background: linear-gradient(180deg, #fff 0%, #f8f9fa 100%); color: #26282a; cursor: pointer; box-shadow: 0 2px 6px rgb(0 0 0 / 6%), inset 0 1px #fff; font-size: 10px; font-weight: 750; text-align: left; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; }
.modern-select-trigger > span { min-width: 0; align-self: center; padding: 9px 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modern-select-trigger > i { position: relative; display: grid; place-items: center; border-left: 1px solid #e1e3e5; background: #f0f1f2; }
.modern-select-trigger > i::before { width: 7px; height: 7px; border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal); content: ""; transform: translateY(-2px) rotate(45deg); transition: transform .16s ease; }
.modern-select-trigger:hover { border-color: #989ca0; background: #fff; box-shadow: 0 4px 10px rgb(0 0 0 / 9%); }
.modern-select-trigger:hover > i { background: #f5e8e9; }
.modern-select.open .modern-select-trigger { border-color: var(--teal); background: #fff; box-shadow: 0 0 0 3px rgb(189 21 34 / 13%), 0 4px 10px rgb(0 0 0 / 8%); }
.modern-select.open .modern-select-trigger > i::before { transform: translateY(2px) rotate(225deg); }
.modern-select.disabled { opacity: .58; }
.modern-select-trigger:disabled { cursor: not-allowed; }
.modern-select.invalid .modern-select-trigger { border-color: var(--danger); }
.modern-select-menu { max-width: calc(100vw - 20px); max-height: 286px; position: fixed; z-index: 1200; overflow-y: auto; padding: 6px; border: 1px solid #c5c8cb; border-radius: 11px; background: rgb(255 255 255 / 99%); box-shadow: 0 18px 42px rgb(0 0 0 / 22%), 0 3px 9px rgb(0 0 0 / 10%); scrollbar-color: #c1c3c6 #f2f3f4; scrollbar-width: thin; backdrop-filter: blur(8px); }
.modern-select-menu[popover] { inset: auto; margin: 0; }
.modern-select-option { width: 100%; min-height: 37px; display: grid; grid-template-columns: minmax(0, 1fr) 23px; align-items: center; gap: 8px; padding: 7px 8px 7px 11px; border: 0; border-radius: 7px; background: transparent; color: #333639; cursor: pointer; font-size: 9px; font-weight: 750; text-align: left; text-transform: uppercase; }
.modern-select-option + .modern-select-option { margin-top: 2px; }
.modern-select-option > span { overflow-wrap: anywhere; }
.modern-select-option > i { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: transparent; font-size: 10px; font-style: normal; }
.modern-select-option:hover, .modern-select-option:focus-visible { background: #f3f4f5; color: #111; outline: 0; }
.modern-select-option.selected { background: #fff0f2; color: #96131d; font-weight: 900; }
.modern-select-option.selected > i { background: var(--teal); color: #fff; }
.modern-select-option:disabled { color: #aaa; cursor: not-allowed; }
.modern-select-option[hidden] { display: none !important; }
.modern-select-search { width: 100%; min-width: 0; min-height: 42px; padding-right: 34px; border: 1px solid #e30613; border-radius: 8px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23e30613' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") no-repeat right 10px center; box-shadow: 0 0 0 3px rgb(227 6 19 / 8%); color: #20252d; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.modern-select-search[hidden] { display: none !important; }
.modern-select-menu.no-matches::after { content: attr(data-empty-message); display: block; padding: 12px 10px; color: #667085; font-size: 8px; font-weight: 850; text-align: center; }
.modern-select-menu:not([hidden]),
.custom-filter-select-menu:not([hidden]) {
  transform-origin: top center;
  animation: select-menu-reveal .18s cubic-bezier(.2, .72, .3, 1) both;
}
.modern-select-menu:not([hidden]) .modern-select-option,
.custom-filter-select-menu:not([hidden]) .custom-filter-select-option {
  animation: select-option-reveal .16s ease-out both;
}
.modern-select-menu:not([hidden]) .modern-select-option:nth-child(2),
.custom-filter-select-menu:not([hidden]) .custom-filter-select-option:nth-child(2) { animation-delay: .018s; }
.modern-select-menu:not([hidden]) .modern-select-option:nth-child(3),
.custom-filter-select-menu:not([hidden]) .custom-filter-select-option:nth-child(3) { animation-delay: .036s; }
.modern-select-menu:not([hidden]) .modern-select-option:nth-child(4),
.custom-filter-select-menu:not([hidden]) .custom-filter-select-option:nth-child(4) { animation-delay: .054s; }
.modern-select-menu:not([hidden]) .modern-select-option:nth-child(n+5),
.custom-filter-select-menu:not([hidden]) .custom-filter-select-option:nth-child(n+5) { animation-delay: .07s; }
@keyframes select-menu-reveal {
  from { opacity: 0; transform: translateY(-5px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes select-option-reveal {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}
.date-capture .modern-select { align-self: stretch; }
.date-capture .modern-select-trigger { min-height: 33px; height: 100%; grid-template-columns: minmax(0, 1fr) 24px; border: 0; border-left: 1px solid #e3e4e6; border-radius: 0; background: transparent; box-shadow: none; font-size: 9px; }
.date-capture .modern-select-trigger > span { padding: 5px 4px; }
.date-capture .modern-select-trigger > i { border-left: 0; background: transparent; }
.inline-status-select + .modern-select .modern-select-trigger { min-height: 32px; border-color: rgb(40 115 83 / 25%); background: #edf6f1; color: #246548; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.validation-filter-bar .modern-select-trigger { min-height: 38px; }
.dashboard-report-panel .modern-select-trigger { min-height: 36px; }
.check-filter { min-height: 39px; grid-template-columns: auto 1fr; align-items: center; }
.check-filter input, .inactive-toggle input { width: 16px; min-height: 16px; accent-color: var(--teal); }
.filter-actions { display: flex; justify-content: flex-end; gap: 8px; grid-column: -3 / -1; }
.auto-filter-hint { align-self: center; color: var(--muted); font-size: 10px; }
.table-panel { overflow: visible; }
.table-toolbar { min-height: 67px; }
.personal-toolbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 13px; }
.people-export-button { min-height: 44px; white-space: nowrap; }
.people-export-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.export-people-modal { width: min(790px, calc(100vw - 28px)); }
.export-people-modal form { display: grid; gap: 13px; }
.export-people-help { margin: 0; color: #596273; font-size: 10px; line-height: 1.5; }
.export-people-summary { padding: 10px 12px; border: 1px solid #d9dee6; border-left: 3px solid var(--teal); border-radius: 7px; background: #f8fafc; color: #344054; font-size: 9px; font-weight: 900; letter-spacing: .025em; }
.export-column-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.export-column-toolbar > strong { color: #344054; font-size: 10px; text-transform: uppercase; }
.export-column-toolbar > div { display: flex; gap: 10px; }
.export-column-toolbar .text-button { padding: 0; border: 0; background: transparent; color: var(--teal); cursor: pointer; font-size: 9px; font-weight: 900; text-transform: uppercase; }
.export-column-toolbar .text-button:hover { text-decoration: underline; }
.export-column-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.export-column-grid label { min-height: 44px; display: flex; align-items: center; gap: 8px; padding: 8px 9px; border: 1px solid #d9dee6; border-radius: 7px; background: #fff; cursor: pointer; transition: border-color .14s ease, background .14s ease, box-shadow .14s ease; }
.export-column-grid label:has(input:checked) { border-color: #e3a6ab; background: #fff4f5; box-shadow: inset 3px 0 0 var(--teal); }
.export-column-grid label:has(input:disabled:not(:checked)) { opacity: .48; cursor: not-allowed; }
.export-column-grid input { width: 16px; min-width: 16px; min-height: 16px; accent-color: var(--teal); }
.export-column-grid span { color: #344054; font-size: 9px; font-weight: 800; line-height: 1.25; }
.export-column-order-help { margin: -3px 0 0; font-size: 10px; color: #667085; line-height: 1.5; }
.export-column-item { min-width: 0; position: relative; display: flex; align-items: stretch; border: 1px solid #d9dee6; border-radius: 7px; background: #fff; }
.export-column-item:has(input:checked) { border-color: #e3a6ab; background: #fff4f5; }
.export-column-item label, .export-column-item label:has(input:checked) { flex: 1; min-width: 0; gap: 6px; padding: 8px 7px 8px 0; border: 0; background: transparent; box-shadow: none; }
.export-column-item .export-column-handle { flex: 0 0 27px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 6px 0 0 6px; background: transparent; color: #87909f; cursor: grab; touch-action: none; user-select: none; }
.export-column-handle svg { width: 11px; height: 17px; fill: currentColor; }
.export-column-handle:hover { color: var(--teal); background: #f7e9eb; }
.export-column-handle:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
.export-column-item.reordering { opacity: .55; border-color: var(--teal); }
.export-column-grid.is-reordering, .export-column-grid.is-reordering .export-column-handle { cursor: grabbing; user-select: none; }
.export-column-item.drop-before::before, .export-column-item.drop-after::after { content: ""; position: absolute; top: -3px; bottom: -3px; width: 3px; border-radius: 3px; background: var(--teal); pointer-events: none; }
.export-column-item.drop-before::before { left: -6px; }
.export-column-item.drop-after::after { right: -6px; }
.export-column-count { margin: 0; color: #667085; font-size: 8px; font-weight: 900; text-align: right; }
.export-column-count.invalid { color: var(--danger); }
.people-group-control { position: relative; z-index: 35; }
.people-group-trigger { min-width: 176px; min-height: 38px; display: grid; grid-template-columns: 22px minmax(0, 1fr) 24px; align-items: center; gap: 7px; padding: 0 7px 0 10px; border: 1px solid #c5cbd3; border-radius: 8px; background: linear-gradient(180deg, #fff, #f7f8fa); color: #344054; cursor: pointer; box-shadow: 0 2px 6px rgb(16 24 40 / 6%); font-size: 9px; font-weight: 850; text-align: left; text-transform: uppercase; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.people-group-trigger:hover { border-color: #9da6b2; box-shadow: 0 5px 12px rgb(16 24 40 / 10%); transform: translateY(-1px); }
.people-group-trigger:focus-visible, .people-group-control.open .people-group-trigger { border-color: #e30613; outline: 0; box-shadow: 0 0 0 3px rgb(227 6 19 / 10%); }
.people-group-trigger svg { width: 18px; height: 18px; fill: none; stroke: #e30613; stroke-width: 1.8; stroke-linecap: round; }
.people-group-trigger > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.people-group-trigger > i { width: 24px; height: 24px; position: relative; border-radius: 6px; background: #eef0f3; }
.people-group-trigger > i::before { width: 6px; height: 6px; position: absolute; top: 7px; left: 8px; border-right: 2px solid #667085; border-bottom: 2px solid #667085; content: ""; transform: rotate(45deg); transition: transform .16s ease; }
.people-group-control.open .people-group-trigger > i::before { top: 10px; transform: rotate(225deg); }
.people-group-menu { width: 285px; max-width: calc(100vw - 28px); position: absolute; z-index: 50; top: calc(100% + 7px); right: 0; padding: 6px; border: 1px solid #c6ccd5; border-radius: 11px; background: rgb(255 255 255 / 99%); box-shadow: 0 18px 42px rgb(16 24 40 / 20%); animation: select-menu-reveal .18s cubic-bezier(.2, .72, .3, 1) both; }
.people-group-menu > button { width: 100%; min-height: 43px; display: grid; grid-template-columns: minmax(0, 1fr) 24px; grid-template-rows: auto auto; align-items: center; column-gap: 8px; padding: 7px 8px 7px 11px; border: 0; border-radius: 7px; background: transparent; color: #344054; cursor: pointer; text-align: left; }
.people-group-menu > button + button { margin-top: 2px; }
.people-group-menu > button span { grid-column: 1; color: #20252d; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.people-group-menu > button small { grid-column: 1; color: #7a8493; font-size: 7px; font-weight: 650; }
.people-group-menu > button i { width: 21px; height: 21px; display: grid; grid-column: 2; grid-row: 1 / 3; place-items: center; border-radius: 50%; color: transparent; font-size: 10px; font-style: normal; }
.people-group-menu > button:hover, .people-group-menu > button:focus-visible { background: #f3f5f7; outline: 0; }
.people-group-menu > button.selected { background: #fff0f1; }
.people-group-menu > button.selected span { color: #b9000b; }
.people-group-menu > button.selected i { background: #e30613; color: #fff; }
.inactive-toggle { display: flex; grid-template-columns: auto 1fr; align-items: center; color: var(--muted); }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.data-table th { padding: 11px 13px; background: #f7f9f9; border-bottom: 1px solid var(--line); color: #536569; text-align: left; text-transform: uppercase; letter-spacing: .04em; font-size: 9px; }
.data-table th.sortable-column { padding: 0; }
.sort-button { display: flex; width: 100%; min-height: 38px; align-items: center; gap: 6px; padding: 10px 13px; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 800; letter-spacing: inherit; text-align: left; text-transform: inherit; cursor: pointer; }
.sort-button:hover, .sort-button:focus-visible { background: #f0f2f2; color: var(--text); outline: none; }
.sort-button.active { color: var(--red); }
.sort-arrow { display: inline-grid; width: 13px; height: 13px; place-items: center; color: var(--red); font-size: 13px; font-weight: 900; line-height: 1; }
.data-table td { padding: 13px; border-bottom: 1px solid #e7ecec; vertical-align: middle; }
.data-table tbody tr:hover { background: #fbfcfc; }
.data-table tbody tr.inactive-row { opacity: .6; }
.data-table .name-cell strong, .data-table .name-cell small { display: block; }
.data-table .name-cell small, .stacked-cell small { color: var(--muted); margin-top: 2px; }
.id-column { width: 126px; min-width: 126px; white-space: nowrap; }
.record-id { display: inline-block; color: var(--muted); font-weight: 700; white-space: nowrap; word-break: keep-all; overflow-wrap: normal; }
.person-entry-button { display: inline-flex; max-width: 100%; align-items: center; min-height: 31px; padding: 5px 9px; border: 1px solid rgb(189 21 34 / 35%); border-radius: 5px; background: #fff; color: var(--teal); font-weight: 800; line-height: 1.3; }
.person-entry-button:hover { border-color: var(--teal); background: var(--teal-soft); color: #8f0f19; }
.stacked-cell span, .stacked-cell small { display: block; }
.id-link { color: var(--teal); font-weight: 800; }
.status-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 8px; border-radius: 20px; background: #e8f2ed; color: var(--success); font-size: 10px; font-weight: 800; white-space: nowrap; }
.status-badge.pending { background: #faf1dc; color: var(--warning); }
.status-badge.waitlist { border-color: #e7c47b; background: #fff6df; color: #9a5b00; }
.status-badge.other-project { border-color: #c7d2fe; background: #eef2ff; color: #4338ca; }
.status-badge.closed { border-color: #b8c1cc; background: #e9edf2; color: #475569; }
.people-group-value-badge.status-closed { border-color: #b8c1cc; background: #e9edf2; color: #475569; box-shadow: inset 3px 0 0 #64748b; }
.status-badge.inactive { background: #f5e8e8; color: var(--danger); }
.status-cell { width: 185px; min-width: 185px; white-space: nowrap; }
.person-status-summary { display: grid; justify-items: center; gap: 3px; text-align: center; }
.person-status-summary > small { color: #8b6017; font-size: 8px; font-weight: 900; letter-spacing: .02em; line-height: 1.2; white-space: nowrap; }
.person-card-top > .person-status-summary { flex: 0 0 auto; max-width: 52%; }
.person-card-top > .person-status-summary > small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.inline-status-select { width: 100%; min-width: 165px; height: 32px; padding: 5px 27px 5px 9px; border: 1px solid rgb(40 115 83 / 25%); border-radius: 6px; background-color: #edf6f1; color: #246548; cursor: pointer; font-size: 9px; font-weight: 800; line-height: 1; text-transform: uppercase; white-space: nowrap; }
.inline-status-select.pending { border-color: rgb(154 106 23 / 25%); background-color: #fff7e5; color: #8b6017; }
.inline-status-select.inactive { border-color: rgb(166 64 64 / 25%); background-color: #f8eded; color: var(--danger); }
.inline-status-select:hover { border-color: var(--teal); }
.inline-status-select.is-saving { cursor: wait; opacity: .65; }
.inline-status-select.compact { min-width: 0; margin-top: 4px; }
.progress-cell { min-width: 125px; }
.progress-cell > div:first-child { display: flex; justify-content: space-between; margin-bottom: 5px; }
.progress-cell strong { font-size: 10px; }
.progress-track { height: 6px; }
.progress-track.progress-low i { background: linear-gradient(90deg, #a9121e, var(--progress-low)); }
.progress-track.progress-medium i { background: linear-gradient(90deg, #b7790c, var(--progress-medium)); }
.progress-track.progress-high i { background: linear-gradient(90deg, #176844, var(--progress-high)); }
.pending-count { display: inline-grid; min-width: 25px; height: 25px; place-items: center; border-radius: 50%; background: #eef2f2; color: var(--muted); font-weight: 800; }
.muted-text { color: var(--muted); font-size: 10px; }
.missing-docs { display: flex; max-width: 220px; flex-wrap: wrap; gap: 4px; white-space: normal; }
.missing-docs span { padding: 3px 6px; border-radius: 4px; background: #f8e9eb; color: #9d1520; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.complete-label { display: inline-flex; padding: 4px 7px; border-radius: 4px; background: #e8f2ed; color: var(--success); font-size: 9px; font-weight: 800; white-space: normal; }
.actions-cell { text-align: right !important; }
.action-group { display: flex; justify-content: flex-end; gap: 5px; }
.personal-data-table .action-group, .grouped-data-table .action-group { flex-wrap: wrap; }
.person-card-actions { flex-wrap: wrap; }
.action-link { min-height: 31px; display: inline-flex; align-items: center; padding: 5px 8px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--teal); font-weight: 700; }
.action-link:hover { border-color: var(--teal); }
.action-link:is(button) { font: inherit; cursor: pointer; }
.action-link:disabled { opacity: .48; cursor: not-allowed; transform: none; }
.conformity-list-action { gap: 5px; white-space: nowrap; }
.waitlist-quick-action { gap: 5px; white-space: nowrap; }
.waitlist-action-dot { width: 7px; height: 7px; flex: 0 0 auto; border: 1px solid #c88715; border-radius: 50%; background: #eba620; box-shadow: 0 0 0 2px #fff6df; }
.conformity-action-dot { width: 7px; height: 7px; flex: 0 0 auto; border: 1px solid #aeb5bf; border-radius: 50%; background: #d8dde4; }
.conformity-action-dot.sent { border-color: #c78c20; background: #e7ad3d; }
.conformity-action-dot.complete { border-color: #23734f; background: #2d9467; }
.conformity-action-dot.rejected { border-color: #a82631; background: #d74350; }
.conformity-list-modal form { display: grid; gap: 13px; }
.conformity-list-help { margin: 0; padding: 10px 12px; border-left: 3px solid #e30613; border-radius: 6px; background: #f8f9fb; color: #596273; font-size: 9px; line-height: 1.5; }
.conformity-list-current { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid #dfe3e9; border-radius: 7px; }
.conformity-list-current > span, .conformity-list-field > span { color: #667085; font-size: 8px; font-weight: 850; text-transform: uppercase; }
.conformity-list-field { display: grid; gap: 5px; }
.conformity-list-field select { width: 100%; }
.table-message { padding: 35px !important; color: var(--muted); text-align: center; }
.people-cards { display: none; }
.people-status-groups { display: grid; gap: 10px; padding: 12px; background: #f3f4f5; }
.people-status-group { min-width: 0; overflow: hidden; border: 1px solid var(--container-line); border-radius: 9px; background: #fff; box-shadow: 0 3px 12px rgb(0 0 0 / 5%); }
.people-status-group > summary { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 14px; background: linear-gradient(180deg, #fff 0%, #f7f7f8 100%); cursor: pointer; list-style: none; user-select: none; }
.people-status-group > summary::-webkit-details-marker { display: none; }
.people-status-group > summary:hover { background: #fff7f8; }
.people-status-group > summary:focus-visible { outline: 3px solid rgb(189 21 34 / 18%); outline-offset: -3px; }
.people-status-group-title { min-width: 0; display: flex; align-items: center; gap: 9px; }
.people-status-group-title small { color: var(--muted); font-size: 9px; font-weight: 900; white-space: nowrap; }
.people-group-value-badge { display: block; max-width: min(520px, 65vw); overflow: hidden; padding: 5px 9px; border: 1px solid #cfd5dd; border-radius: 6px; background: #eef1f5; color: #344054; font-size: 9px; font-weight: 900; letter-spacing: .025em; text-overflow: ellipsis; white-space: nowrap; }
.people-group-value-badge.complete { border-color: #b8dec9; background: #eaf7ef; color: #067647; }
.people-group-value-badge.status-success { border-color: #9fd5b5; background: #e7f6ed; color: #067647; box-shadow: inset 3px 0 0 #079455; }
.people-group-value-badge.status-other-project { border-color: #c7d2fe; background: #eef2ff; color: #4338ca; box-shadow: inset 3px 0 0 #4f46e5; }
.people-group-value-badge.status-pending { border-color: #ead29c; background: #fff7e5; color: #8a5a05; box-shadow: inset 3px 0 0 #eaaa08; }
.people-group-value-badge.status-inactive { border-color: #efb4b8; background: #fff0f1; color: #b42318; box-shadow: inset 3px 0 0 #e30613; }
.origin-badge { display: inline-flex; min-width: 58px; align-items: center; justify-content: center; padding: 4px 7px; border: 1px solid #c9d1dc; border-radius: 999px; background: #f2f4f7; color: #475467; font-size: 8px; font-weight: 900; letter-spacing: .035em; white-space: nowrap; }
.origin-badge.local { border-color: #a9d9bc; background: #eaf7ef; color: #067647; }
.origin-badge.foreign { border-color: #b8cbed; background: #edf4ff; color: #175cd3; }
.people-status-group-chevron { width: 22px; height: 22px; flex: 0 0 auto; position: relative; border-radius: 5px; background: #f0f1f2; }
.people-status-group-chevron::before { width: 7px; height: 7px; position: absolute; top: 6px; left: 7px; border-right: 2px solid #6a6d71; border-bottom: 2px solid #6a6d71; content: ""; transform: rotate(45deg); transition: transform .16s ease, border-color .16s ease; }
.people-status-group[open] > summary { border-bottom: 1px solid var(--container-line); background: #fff; box-shadow: inset 3px 0 var(--teal); }
.people-status-group[open] .people-status-group-chevron { background: #f8e9eb; }
.people-status-group[open] .people-status-group-chevron::before { top: 9px; border-color: var(--teal); transform: rotate(225deg); }
.people-status-group-content { min-width: 0; }
.personal-data-table, .grouped-data-table { min-width: 1160px; }
.locality-column, .locality-cell { min-width: 105px; }
.locality-cell { color: #344054; font-size: 9px; font-weight: 800; white-space: normal; }
.people-status-cards { display: none; }

.record-form { display: grid; gap: 14px; padding-bottom: 76px; }
.form-section { padding: 20px; }
.section-title { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.section-title > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 6px; background: var(--navy); color: #fff; font-size: 9px; font-weight: 800; }
.section-title p { margin: 0; font-size: 11px; }
.form-grid { display: grid; gap: 15px 13px; }
.form-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.form-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.consent-section { padding: 17px 20px; }
.employee-number-note { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid #cbdede; border-radius: 7px; background: var(--teal-soft); }
.employee-number-note strong { color: var(--navy); font-size: 11px; }
.employee-number-note span { color: var(--muted); font-size: 10px; }
.consent-check { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.consent-check input { width: 17px; min-height: 17px; margin-top: 3px; accent-color: var(--teal); }
.consent-check span, .consent-check strong { display: block; }
.consent-check span { color: var(--muted); font-weight: 400; }
.consent-check strong { margin-bottom: 2px; color: var(--ink); font-size: 12px; }
.sticky-actions { position: fixed; z-index: 10; right: 0; bottom: 0; left: 238px; display: flex; justify-content: flex-end; gap: 9px; padding: 12px 30px; background: rgb(255 255 255 / 96%); border-top: 1px solid var(--line); backdrop-filter: blur(8px); }

.modern-form-heading { position: relative; overflow: hidden; padding: 21px 23px; border: 1px solid var(--container-line); border-top: 3px solid var(--teal); border-radius: 12px; background: linear-gradient(135deg, #fff 0%, #fafafa 72%, #f8e9eb 100%); box-shadow: var(--shadow); }
.modern-form-heading::after { content: "EIM"; position: absolute; right: 22px; bottom: -27px; color: rgb(189 21 34 / 5%); font-size: 86px; font-weight: 950; letter-spacing: -.08em; pointer-events: none; }
.modern-form-heading > * { position: relative; z-index: 1; }
.modern-form-heading > p:not(.eyebrow) { max-width: 720px; margin-bottom: 14px; font-size: 12px; }
.form-heading-meta { max-width: 520px; display: flex; align-items: center; gap: 9px; }
.form-heading-meta span { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.form-heading-meta b { width: 19px; height: 19px; display: inline-grid; place-items: center; border-radius: 50%; background: #1a1a1a; color: #fff; font-size: 8px; }
.form-heading-meta i { width: 34px; height: 1px; background: #cfd1d3; }
.modern-record-form .form-section { position: relative; overflow: hidden; padding: 24px; border-radius: 12px; }
.modern-record-form .form-section::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: linear-gradient(180deg, var(--teal), #8d0d16); }
.modern-record-form .section-title { margin-bottom: 22px; }
.modern-record-form .section-title > span { border-radius: 8px; background: linear-gradient(145deg, #d01b28, #991019); box-shadow: 0 5px 12px rgb(189 21 34 / 18%); }
.modern-record-form label > span:first-child { color: #4c4d50; font-size: 9px; font-weight: 850; letter-spacing: .045em; text-transform: uppercase; }
.modern-record-form input, .modern-record-form select, .modern-record-form textarea { min-height: 43px; border-color: #c9cbcf; background-color: #fdfdfd; }
.modern-record-form select { padding-right: 34px; cursor: pointer; }
.modern-record-form textarea[readonly] { border-style: dashed; background: #f7f7f8; color: #44464a; font-size: 11px; line-height: 1.5; }
.modern-record-form .project-field { min-width: 0; grid-column: span 3; }
.project-select { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-field > small { overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.labor-date-card { gap: 7px; padding: 13px 14px; border: 1px solid; border-radius: 10px; }
.labor-date-card > span:first-child { font-size: 10px !important; }
.labor-date-card > small { font-size: 8px; font-weight: 700; }
.income-date-field { border-color: rgb(40 115 83 / 42%); background: #f2f8f5; box-shadow: inset 3px 0 #287353; }
.income-date-field > span:first-child, .income-date-field > small { color: #246548 !important; }
.income-date-field input { border-color: rgb(40 115 83 / 35%); background: #fff; }
.termination-date-field { border-color: rgb(166 64 64 / 38%); background: #fff5f5; box-shadow: inset 3px 0 #a64040; }
.termination-date-field > span:first-child, .termination-date-field > small { color: #922e35 !important; }
.termination-date-field input { border-color: rgb(166 64 64 / 32%); background: #fff; }
.date-capture-field { align-self: start; }
.date-capture { min-width: 0; display: grid; grid-template-columns: 38px minmax(64px, .7fr) minmax(120px, 1.4fr) minmax(82px, .8fr); gap: 6px; padding: 5px; border: 1px solid #c9cbcf; border-radius: 8px; background: #fdfdfd; box-shadow: inset 0 1px 2px rgb(0 0 0 / 3%); transition: border-color .15s ease, box-shadow .15s ease; }
.date-capture:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgb(189 21 34 / 11%); }
.date-capture-icon { display: grid; place-items: center; border-radius: 6px; background: #1c1c1d; color: #fff; font-size: 13px; }
.date-capture select { min-width: 0; min-height: 33px; padding: 5px 7px; border: 0; border-left: 1px solid #e3e4e6; border-radius: 0; background: transparent; box-shadow: none; font-size: 10px; font-weight: 750; }
.date-capture select:focus { box-shadow: none; }
.date-format-hint { color: var(--muted); font-size: 8px; font-weight: 650; letter-spacing: .035em; text-transform: uppercase; }
.invalid .date-capture { border-color: var(--danger); box-shadow: 0 0 0 3px rgb(166 64 64 / 9%); }

.loading-page { padding: 50px; text-align: center; color: var(--muted); }
.record-hero { display: grid; grid-template-columns: 1fr auto; gap: 20px; margin-bottom: 14px; padding: 20px; }
.record-identity { min-width: 0; display: flex; align-items: center; gap: 15px; }
.record-identity > div:last-child { min-width: 0; }
.person-monogram { flex: 0 0 auto; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 9px; background: var(--navy); color: #fff; font-weight: 800; letter-spacing: .04em; }
.credential-photo { position: relative; flex: 0 0 auto; width: 88px; height: 116px; display: flex; align-items: center; flex-direction: column; justify-content: center; overflow: hidden; border: 1px solid #bfc1c4; border-radius: 8px; background: linear-gradient(145deg, #f7f7f8, #e7e8ea); box-shadow: 0 7px 18px rgb(0 0 0 / 10%); color: #272727; }
.credential-photo::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 4px; background: var(--teal); }
.credential-user-icon { position: relative; width: 47px; height: 47px; margin-bottom: 8px; border: 1px solid #d0d1d3; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgb(0 0 0 / 7%); }
.credential-user-icon::before { content: ""; position: absolute; top: 16%; left: 50%; width: 30%; height: 30%; border-radius: 50%; background: #5c5e61; transform: translateX(-50%); }
.credential-user-icon::after { content: ""; position: absolute; bottom: 10%; left: 50%; width: 58%; height: 45%; border-radius: 50% 50% 22% 22%; background: #5c5e61; transform: translateX(-50%); }
.credential-photo span, .credential-photo small { display: block; line-height: 1.2; text-align: center; }
.credential-photo span { font-size: 7px; font-weight: 900; letter-spacing: .09em; }
.credential-photo small { margin-top: 2px; color: #777; font-size: 6px; font-weight: 700; }
.record-photo-control { padding: 0; font: inherit; cursor: pointer; isolation: isolate; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.record-photo-control:hover { border-color: #e30613; box-shadow: 0 9px 24px rgb(227 6 19 / 16%); transform: translateY(-1px); }
.record-photo-control:focus-visible { outline: 3px solid rgb(227 6 19 / 22%); outline-offset: 3px; }
.record-photo-control:disabled { cursor: wait; opacity: .72; transform: none; }
.record-photo-action { position: absolute; z-index: 2; right: 5px; bottom: 7px; left: 5px; min-height: 22px; display: grid !important; place-items: center; padding: 3px 5px; border-radius: 5px; background: rgb(8 15 24 / 88%); color: #fff; font-size: 7px !important; font-weight: 850; letter-spacing: .045em !important; line-height: 1.1 !important; text-transform: uppercase; opacity: 0; transform: translateY(4px); transition: opacity .18s ease, transform .18s ease; pointer-events: none; }
.record-photo-control:hover .record-photo-action, .record-photo-control:focus-visible .record-photo-action { opacity: 1; transform: translateY(0); }
.record-photo-control:not(:has(img:not([hidden]))) .record-photo-action { display: none !important; }
.record-title-line { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.record-title-line h1 { margin: 0; overflow-wrap: anywhere; font-size: 23px; }
.record-status-stack { display: grid; justify-items: center; gap: 3px; text-align: center; }
.record-status-stack > small { color: #8b6017; font-size: 8px; font-weight: 900; letter-spacing: .025em; text-transform: uppercase; white-space: nowrap; }
.record-meta-lines { display: grid; gap: 3px; margin: 9px 0 0; }
.record-meta-lines > div { min-width: 0; display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 8px; align-items: baseline; }
.record-meta-lines dt { color: var(--teal); font-size: 8px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.record-meta-lines dd { min-width: 0; margin: 0; overflow-wrap: anywhere; font-size: 11px; font-weight: 750; line-height: 1.35; }
.record-actions { display: grid; width: min(390px, 100%); grid-template-columns: repeat(2, minmax(0, 1fr)); align-self: start; gap: 8px; }
.filter-result-actions { display: contents; }
.record-actions .button { width: 100%; min-width: 0; justify-content: center; text-align: center; }
.record-actions #otherProjectStatus { grid-column: 1 / -1; border-color: #c7d2fe; background: #eef2ff; color: #4338ca; }
.record-status-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 12px; margin-bottom: 12px; }
.record-status-card { min-width: 0; height: 100%; padding: 15px; border: 1px solid #c7cdd5; border-radius: 10px; background: linear-gradient(135deg, #fafbfc, #fff); box-shadow: 0 4px 12px rgb(16 24 40 / 4%); }
.conditions-conformity { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 14px; border-left: 4px solid #20252d; }
.conditions-conformity-copy { min-width: 0; }
.conditions-conformity-copy > span { display: block; margin-bottom: 2px; color: #e30613; font-size: 7px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.conditions-conformity-copy h2 { margin: 0 0 3px; font-size: 13px; }
.conditions-conformity-copy p { margin: 0; color: #667085; font-size: 8px; line-height: 1.45; }
.conditions-conformity-badge { display: inline-flex; min-height: 28px; align-items: center; justify-content: center; padding: 5px 10px; border: 1px solid #ccd2da; border-radius: 999px; background: #f0f2f5; color: #475467; font-size: 8px; font-weight: 900; white-space: nowrap; }
.conditions-conformity-badge.pending { border-color: #e8cd8b; background: #fff7e3; color: #8a5c08; }
.conditions-conformity-badge.complete { border-color: #a9d3bd; background: #edf8f2; color: #20724d; }
.conditions-conformity-badge.rejected { border-color: #e7b4b8; background: #fff0f1; color: #a82631; }
.conditions-conformity-form { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(155px, 1fr) auto; align-items: end; gap: 7px; }
.conditions-conformity-form label { min-width: 0; display: grid; gap: 4px; }
.conditions-conformity-form label > span { color: #667085; font-size: 7px; font-weight: 850; text-transform: uppercase; }
.conditions-conformity-form select { min-width: 155px; }
.conditions-conformity-form .button { min-height: 34px; }
.conditions-conformity > small { grid-column: 1 / -1; color: #7b8491; font-size: 7px; font-weight: 800; text-align: left; }
.filter-result-options { display: grid; gap: 8px; margin: 15px 0 4px; padding: 0; border: 0; }
.filter-result-options label { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid #d9dbde; border-radius: 8px; background: #fafafa; cursor: pointer; }
.filter-result-options label:has(input:checked) { border-color: rgb(189 21 34 / 52%); background: #fff4f5; box-shadow: inset 3px 0 var(--teal); }
.filter-result-options input { width: 17px; min-height: 17px; margin: 0; accent-color: var(--teal); }
.filter-result-options strong, .filter-result-options small { display: block; }
.filter-result-options strong { color: #26282a; font-size: 11px; text-transform: uppercase; }
.filter-result-options small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.filter-result-datetime { display: grid; gap: 5px; padding: 11px 12px; border: 1px solid #d9dbde; border-radius: 8px; background: #fafafa; }
.filter-result-datetime > span { color: var(--teal); font-size: 9px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.filter-result-datetime > span b { color: var(--danger); }
.filter-result-datetime input { width: 100%; min-width: 0; background: #fff; }
.filter-result-datetime small { color: var(--muted); font-size: 8px; line-height: 1.4; }
.progress-summary { display: flex; flex-direction: column; justify-content: center; padding-block: 10px; border-left: 4px solid var(--teal); }
.progress-summary-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.progress-summary-heading span { display: block; margin-bottom: 2px; color: var(--teal); font-size: 7px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.progress-summary-heading h2 { margin: 0; font-size: 13px; }
.progress-summary strong { color: var(--teal); font-size: 20px; line-height: 1; white-space: nowrap; }
.progress-track.large { height: 9px; }
.progress-summary > small { display: block; min-height: 11px; margin-top: 7px; overflow: hidden; color: var(--muted); font-size: 8px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.progress-pending-compact { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 3px; margin-top: 7px; padding-top: 7px; border-top: 1px solid #dde1e6; }
.progress-pending-compact > span { padding-left: 6px; color: var(--teal); font-size: 7px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.record-pending-list { min-width: 0; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 3px 4px; overflow: visible; }
.record-pending-list span { flex: 0 0 auto; padding: 2px 5px; border: 1px solid #e8c5c8; border-radius: 5px; background: #fff5f6; color: #8d1922; font-size: 7px; font-weight: 800; white-space: nowrap; }
.record-pending-list span.complete { border-color: #bdd9ca; background: #eff8f3; color: var(--success); }
.category-selector { min-width: 0; margin: 0; padding: 13px; border: 1px solid var(--line); border-radius: 8px; }
.category-selector legend { padding: 0 5px; color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.category-selector legend b { color: var(--red); }
.category-selector > p { margin: 0 0 10px; color: var(--muted); font-size: 10px; }
.category-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.category-option { display: flex; min-height: 40px; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; background: #fff; cursor: pointer; }
.category-option:has(input:checked) { border-color: var(--red); background: #fff6f7; box-shadow: 0 0 0 1px rgb(184 18 31 / 8%); }
.category-option input { width: 16px; height: 16px; accent-color: var(--red); }
.category-option span { color: var(--text); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.category-selector.invalid { border-color: var(--red); background: #fff8f8; }
.tabs { display: flex; gap: 3px; overflow-x: auto; margin-bottom: 14px; padding: 4px; background: #e6ecec; border-radius: 9px; }
.tabs button { flex: 0 0 auto; min-height: 37px; padding: 7px 14px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; font-size: 11px; font-weight: 700; }
.tabs button.active { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgb(0 0 0 / 7%); }
.count-pill { min-width: 19px; height: 19px; display: inline-grid; place-items: center; margin-left: 3px; border-radius: 10px; background: #e8eeee; font-size: 9px; }
.tab-panel { display: none; overflow: hidden; }
.tab-panel.active { display: block; }
.sensitive-label { padding: 4px 8px; border-radius: 4px; background: #f7eeee; color: var(--danger); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.detail-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 5px 20px 20px; }
.detail-grid > div { min-width: 0; padding: 15px 10px 8px 0; border-bottom: 1px solid #edf0f0; }
.detail-grid dt { margin-bottom: 4px; color: var(--teal); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.detail-grid dd { min-width: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 7px; overflow-wrap: anywhere; margin: 0; font-size: 12px; font-weight: 600; }
.detail-grid dd span { min-width: 0; overflow-wrap: anywhere; }
.personal-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 18px 20px 22px; background: #f5f6f7; }
.personal-group { min-width: 0; overflow: hidden; border: 1px solid var(--container-line); border-radius: 9px; background: #fff; box-shadow: 0 3px 12px rgb(0 0 0 / 5%); }
.personal-group-identification, .personal-group-address, .personal-group-emergency { grid-column: 1 / -1; }
.personal-group-header { min-height: 61px; display: flex; align-items: center; gap: 11px; padding: 12px 15px; border-bottom: 1px solid #e7e8e9; background: linear-gradient(180deg, #fff, #fafafa); }
.personal-group-marker { width: 4px; height: 34px; flex: 0 0 auto; border-radius: 4px; background: var(--teal); }
.personal-group-header h3 { margin: 0 0 2px; color: var(--ink); font-size: 14px; line-height: 1.2; text-transform: uppercase; letter-spacing: .025em; }
.personal-group-header p { margin: 0; color: var(--muted); font-size: 10px; }
.personal-detail-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; }
.personal-group-civil .personal-detail-grid, .personal-group-contact .personal-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.personal-detail-grid > div { min-height: 77px; padding: 15px; }
.personal-detail-grid > div:nth-child(4n), .personal-detail-grid > div:nth-child(3n), .personal-detail-grid > div:nth-child(2n) { border-right: 1px solid #e8e9eb; }
.personal-detail-grid > div:nth-child(3n) { border-right: 0; }
.personal-group-civil .personal-detail-grid > div:nth-child(3n), .personal-group-contact .personal-detail-grid > div:nth-child(3n) { border-right: 1px solid #e8e9eb; }
.personal-group-civil .personal-detail-grid > div:nth-child(2n), .personal-group-contact .personal-detail-grid > div:nth-child(2n) { border-right: 0; }
.personal-detail-grid dt { margin-bottom: 8px; font-size: 10px; letter-spacing: .055em; }
.personal-detail-grid dd { min-height: 31px; font-size: 14px; line-height: 1.35; }
.personal-detail-grid .copy-button { margin-top: 1px; padding: 3px 6px; font-size: 8px; }
.personal-detail-grid .detail-item-wide { grid-column: span 3; }
.personal-detail-grid .detail-item-full { grid-column: 1 / -1; }
.copy-button { flex: 0 0 auto; padding: 2px 5px; border: 1px solid #d6d6d6; border-radius: 4px; background: #fff; color: var(--muted); cursor: pointer; font-size: 8px; font-weight: 700; }
.copy-button:hover { border-color: var(--teal); color: var(--teal); }
.prominent-copy { padding: 4px 7px; font-size: 9px; }
.observation-box { min-height: 150px; margin: 0; padding: 20px; white-space: pre-wrap; }
.document-guide { color: var(--muted); font-size: 10px; font-weight: 700; }
.document-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; gap: 12px; padding: 15px; }
.document-card { min-width: 0; height: 350px; min-height: 350px; display: flex; flex-direction: column; overflow: hidden; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.document-card.received { border-top: 3px solid var(--success); }
.document-card.missing { border-top: 3px solid var(--teal); background: #fffbfb; }
.document-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.document-number { color: #aaa; font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.document-state { padding: 3px 7px; border-radius: 12px; background: #f8e9eb; color: #9d1520; font-size: 9px; font-weight: 800; }
.document-card.received .document-state { background: #e8f2ed; color: var(--success); }
.document-card h3 { min-height: 38px; display: -webkit-box; margin: 10px 0 8px; overflow: hidden; overflow-wrap: anywhere; font-size: 15px; line-height: 1.25; text-transform: uppercase; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.document-card > p { display: -webkit-box; margin: 0 0 10px; overflow: hidden; font-size: 10px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.document-file { min-width: 0; margin-bottom: 14px; padding: 10px; border-radius: 6px; background: #f5f5f5; }
.document-file strong, .document-file small { display: block; }
.document-file strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.document-file small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.document-file-list { min-height: 0; display: grid; align-content: start; gap: 8px; margin-bottom: 10px; overflow-y: auto; padding-right: 2px; scrollbar-color: #b7bec8 #eef1f4; scrollbar-width: thin; }
.document-file-list.multiple-files { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.document-file-tile { min-width: 0; overflow: hidden; border: 1px solid #d9dde3; border-radius: 10px; background: #fff; box-shadow: 0 6px 15px rgb(16 24 40 / 7%); }
.document-file-preview, .document-generated-preview-link { position: relative; height: 145px; min-height: 145px; display: grid; overflow: hidden; place-items: center; border-bottom: 1px solid #d9dde3; background: linear-gradient(145deg, #f7f8fa, #e9edf2); color: inherit; text-decoration: none; cursor: pointer; }
.document-file-list.multiple-files .document-file-preview { height: 88px; min-height: 88px; }
.document-file-preview.image-preview { background-color: #eef1f4; background-image: linear-gradient(45deg, #e2e6eb 25%, transparent 25%), linear-gradient(-45deg, #e2e6eb 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e2e6eb 75%), linear-gradient(-45deg, transparent 75%, #e2e6eb 75%); background-position: 0 0, 0 7px, 7px -7px, -7px 0; background-size: 14px 14px; }
.document-file-preview img, .document-generated-preview-link > img { width: 100%; height: 100%; min-height: 0; object-fit: contain; transition: transform .22s ease; }
.document-file-preview:hover img, .document-file-preview:focus-visible img, .document-generated-preview-link:hover > img, .document-generated-preview-link:focus-visible > img { transform: scale(1.025); }
.document-file-preview:focus-visible, .document-generated-preview-link:focus-visible { outline: 3px solid rgb(227 6 19 / 28%); outline-offset: -3px; }
.document-preview-sheet { position: relative; width: 112px; height: 116px; margin-bottom: 12px; padding: 20px 14px 12px; border: 1px solid #c9ced6; border-radius: 4px; background: #fff; box-shadow: 0 8px 18px rgb(16 24 40 / 16%); }
.document-preview-sheet::after { content: ""; position: absolute; top: -1px; right: -1px; width: 24px; height: 24px; border-bottom: 1px solid #c9ced6; border-left: 1px solid #c9ced6; background: linear-gradient(225deg, #e9edf2 49%, #fff 51%); }
.document-preview-filetype { display: inline-grid; min-width: 38px; min-height: 23px; place-items: center; padding: 3px 6px; border-radius: 4px; background: #e30613; color: #fff; font-size: 10px; font-weight: 950; letter-spacing: .08em; }
.document-preview-lines { display: grid; gap: 7px; margin-top: 13px; }
.document-preview-lines i { height: 3px; border-radius: 4px; background: #d7dce3; }
.document-preview-lines i:nth-child(2) { width: 78%; }
.document-preview-lines i:nth-child(3) { width: 90%; }
.document-preview-lines i:nth-child(4) { width: 58%; }
.document-pdf-preview { width: calc(100% + 18px); height: 100%; display: block; margin-right: -18px; border: 0; background: #f3f5f8; pointer-events: none; }
.document-file-meta { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto 30px; align-items: center; gap: 7px; padding: 9px 10px; }
.document-file-data { min-width: 0; }
.document-file-data strong, .document-file-data small { display: block; }
.document-file-data strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.document-file-data small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.document-download-button { min-height: 30px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 5px 8px; border: 1px solid #d9000d; border-radius: 7px; background: linear-gradient(180deg, #f20a18, #d9000d); color: #fff; box-shadow: 0 4px 10px rgb(227 6 19 / 16%); font-size: 8px; font-weight: 900; text-decoration: none; text-transform: uppercase; transition: border-color .15s ease, background .15s ease, box-shadow .15s ease, transform .15s ease; }
.document-download-button span { color: #fff; font-size: 14px; line-height: .7; }
.document-download-button:hover { border-color: #bb000b; background: linear-gradient(180deg, #e30613, #bf000b); color: #fff; box-shadow: 0 6px 14px rgb(227 6 19 / 24%); transform: translateY(-1px); }
.document-download-button:hover span { color: #fff; }
.document-file-list.multiple-files .document-file-meta { grid-template-columns: minmax(0, 1fr) 28px; gap: 6px; padding: 7px; }
.document-file-list.multiple-files .document-file-data { grid-column: 1; grid-row: 1; }
.document-file-list.multiple-files .document-file-data strong { font-size: 8px; }
.document-file-list.multiple-files .document-file-data small { font-size: 7px; }
.document-file-list.multiple-files .document-download-button { grid-column: 1 / -1; grid-row: 2; min-height: 26px; padding: 4px 6px; }
.document-file-list.multiple-files .document-delete-button { grid-column: 2; grid-row: 1; width: 28px; height: 28px; }
.document-delete-button { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 1px solid #e5b7bb; border-radius: 7px; background: #fff6f7; color: #9d1520; cursor: pointer; font-size: 18px; line-height: 1; }
.document-delete-button:hover { border-color: #9d1520; background: #9d1520; color: #fff; }
.document-delete-button:disabled { opacity: .45; cursor: wait; }
.document-card-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.document-card-actions .button { flex: 1 1 auto; }
.document-empty-preview { min-height: 150px; display: grid; place-items: center; align-content: center; gap: 6px; margin-bottom: 10px; padding: 15px; border: 1px dashed #c8ced6; border-radius: 10px; background: linear-gradient(145deg, #fbfcfd, #f3f5f7); text-align: center; }
.document-empty-preview strong { color: #485260; font-size: 11px; text-transform: uppercase; }
.document-empty-preview small { max-width: 245px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.document-empty-icon { position: relative; width: 50px; height: 58px; display: grid; gap: 6px; padding: 17px 10px 9px; border: 2px solid #aeb6c1; border-radius: 5px; background: #fff; }
.document-empty-icon::after { content: "+"; position: absolute; right: -8px; bottom: -7px; width: 22px; height: 22px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; background: #e30613; color: #fff; font-size: 15px; font-style: normal; font-weight: 900; }
.document-empty-icon i { height: 3px; border-radius: 3px; background: #d7dce3; }
.timeline { padding: 8px 22px 22px; }
.timeline-item { position: relative; display: grid; grid-template-columns: 130px 1fr; gap: 22px; padding: 14px 0 14px 18px; border-left: 1px solid var(--line); }
.timeline-item::before { content: ""; position: absolute; top: 20px; left: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.timeline-item time { color: var(--muted); font-size: 10px; }
.timeline-item strong, .timeline-item small { display: block; }
.timeline-item small { color: var(--muted); }

.modal { width: min(650px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 0; overflow-y: auto; overscroll-behavior: contain; box-sizing: border-box; border: 0; border-radius: 11px; box-shadow: 0 25px 80px rgb(7 31 36 / 35%); }
.modal::backdrop { background: rgb(10 31 35 / 58%); backdrop-filter: blur(2px); }
.modal form { padding: 21px; }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 15px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.modal-header h2 { font-size: 19px; }
.modal-note { padding: 10px 12px; border-radius: 6px; background: var(--teal-soft); font-size: 11px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.eim-date-control { position: relative; min-width: 0; display: flex; align-items: stretch; }
.eim-date-control > input { width: 100%; padding-right: 43px; }
.eim-date-control > input::-webkit-calendar-picker-indicator { opacity: 0; width: 34px; cursor: pointer; }
.eim-calendar-trigger { position: absolute; top: 1px; right: 1px; bottom: 1px; width: 39px; display: grid; place-items: center; padding: 0; border: 0; border-left: 1px solid #d6dbe3; border-radius: 0 7px 7px 0; background: #f7f8fa; color: #111821; cursor: pointer; transition: color .16s ease, background .16s ease, box-shadow .16s ease; }
.eim-calendar-trigger:hover, .eim-calendar-trigger[aria-expanded="true"] { background: #fff0f1; color: #d70714; box-shadow: inset 0 0 0 1px rgb(227 6 19 / 15%); }
.eim-calendar-trigger svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.eim-calendar-panel { position: fixed; z-index: 3000; margin: 0; padding: 13px; overflow: visible; border: 1px solid #cfd5df; border-radius: 12px; background: #fff; color: #101828; box-shadow: 0 18px 46px rgb(11 18 32 / 24%); animation: eim-calendar-enter .16s ease-out; }
.eim-calendar-panel[hidden] { display: none; }
@keyframes eim-calendar-enter { from { opacity: 0; transform: translateY(-5px) scale(.985); } }
.eim-calendar-head { display: grid; grid-template-columns: 34px minmax(0, 1fr) 34px; align-items: center; gap: 7px; margin-bottom: 10px; }
.eim-calendar-head strong { text-align: center; font-size: 13px; text-transform: uppercase; }
.eim-calendar-head button { width: 34px; height: 34px; border: 1px solid #d8dde5; border-radius: 8px; background: #f8f9fb; color: #344054; font-size: 22px; line-height: 1; cursor: pointer; }
.eim-calendar-head button:hover { border-color: #e30613; background: #fff1f2; color: #d70714; }
.eim-calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.eim-calendar-weekday { display: grid; height: 24px; place-items: center; color: #7a8495; font-size: 9px; font-weight: 900; }
.eim-calendar-day { aspect-ratio: 1; min-width: 0; padding: 0; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #1d2939; font-size: 11px; font-weight: 750; cursor: pointer; }
.eim-calendar-day:hover:not(:disabled) { border-color: #f1a5aa; background: #fff1f2; color: #be0712; }
.eim-calendar-day.outside { color: #a9b0bd; }
.eim-calendar-day.today { border-color: #e30613; color: #d70714; }
.eim-calendar-day.selected { border-color: #e30613; background: #e30613; color: #fff; box-shadow: 0 3px 8px rgb(227 6 19 / 24%); }
.eim-calendar-day:disabled { color: #d4d7dc; cursor: not-allowed; }
.eim-calendar-time { display: grid; grid-template-columns: 1fr 62px auto 62px; align-items: center; gap: 7px; margin-top: 10px; padding: 9px; border: 1px solid #e1e5eb; border-radius: 8px; background: #f8f9fb; }
.eim-calendar-time[hidden] { display: none; }
.eim-calendar-time span { color: #475467; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.eim-calendar-time input { min-width: 0; height: 34px; padding: 5px; text-align: center; }
.eim-calendar-time b { color: #667085; }
.eim-calendar-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 11px; padding-top: 10px; border-top: 1px solid #e5e8ed; }
.eim-calendar-foot > span { display: flex; gap: 6px; }
.eim-calendar-foot button { min-height: 32px; padding: 6px 13px; border: 1px solid #d4d9e1; border-radius: 7px; background: #fff; color: #344054; font-size: 9px; font-weight: 900; text-transform: uppercase; cursor: pointer; }
.eim-calendar-foot button.primary { border-color: #e30613; background: #e30613; color: #fff; }
.people-custom-list-actions #bulkDopingGafete { display: inline-flex; align-items: center; gap: 7px; }
.people-custom-list-actions #bulkDopingGafete span { min-width: 20px; height: 20px; display: inline-grid; place-items: center; padding: 0 5px; border-radius: 999px; background: rgb(255 255 255 / 20%); color: inherit; font-size: 9px; letter-spacing: 0; }
.people-custom-list-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 8px 0; padding: 10px 12px; border: 1px solid #bac3cf; border-left: 4px solid #e30613; border-radius: 9px; background: linear-gradient(90deg, #fff7f7, #fff); box-shadow: 0 5px 14px rgb(16 24 40 / 6%); }
.people-custom-list-bar[hidden] { display: none; }
.people-bulk-selection-bar { border-bottom-color: #afbed2; background: linear-gradient(90deg, #f3f7fd, #fff 62%); }
.people-bulk-selection-bar > div:first-child > span { color: #244f87; }
.people-bulk-selection-bar > div:first-child strong b { color: #b31624; font-size: inherit; }
.people-custom-list-bar > div:first-child { min-width: 190px; display: grid; gap: 2px; }
.people-custom-list-bar > div:first-child > span { color: #d70714; font-size: 7px; font-weight: 950; letter-spacing: .09em; }
.people-custom-list-bar > div:first-child > strong { color: #101828; font-size: 12px; }
.people-custom-list-bar > div:first-child > small { color: #667085; font-size: 8px; }
.people-custom-list-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.people-custom-list-actions .button { min-height: 32px; padding: 6px 9px; font-size: 8px; }
.eim-calendar-trigger:disabled { color: #a9afb9; background: #f2f3f5; cursor: not-allowed; }
.people-group-value-badge.doping-aprobado { border-color: #a8d5b5; background: #ecfdf3; color: #107337; }
.people-group-value-badge.doping-programado { border-color: #b7cce8; background: #edf5ff; color: #175da5; }
.people-group-value-badge.doping-pendiente { border-color: #ecd596; background: #fff8e5; color: #8a5a00; }
.people-group-value-badge.doping-no-aprobado { border-color: #efb2b7; background: #fff0f1; color: #bd0712; }
@media (max-width: 760px) {
  .people-custom-list-bar { align-items: stretch; flex-direction: column; }
  .people-custom-list-actions { justify-content: stretch; }
  .people-custom-list-actions .button { flex: 1 1 145px; }
}
.compact-modal { width: min(470px, calc(100% - 28px)); }
.compact-modal form { display: grid; gap: 13px; }
.delete-warning { margin: 0; padding: 11px 12px; border-left: 3px solid var(--teal); border-radius: 5px; background: var(--teal-soft); font-size: 11px; }
.name-review-modal { width: min(680px, calc(100% - 28px)); }
.name-review-content { padding: 21px; }
.name-review-intro { margin: 0 0 14px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.name-review-warnings { display: grid; gap: 9px; }
.name-review-warning { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 14px; border: 1px solid #ead7aa; border-radius: 8px; background: #fffaf0; }
.name-review-warning div { display: grid; gap: 3px; }
.name-review-warning span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .09em; }
.name-review-warning strong { color: var(--ink); font-size: 17px; }
.name-review-warning div:last-of-type strong { color: var(--teal); }
.name-review-warning p { grid-column: 1 / -1; margin: 1px 0 0; color: #765014; font-size: 12px; font-weight: 700; }
.name-review-arrow { color: var(--teal) !important; font-size: 20px !important; }
.name-review-note { margin: 12px 0 0; padding-left: 10px; border-left: 3px solid var(--teal); color: var(--muted); font-size: 11px; line-height: 1.5; }
.name-review-actions { flex-wrap: wrap; }
.person-preview-modal { width: min(1040px, calc(100% - 28px)); overflow: hidden; }
.person-preview-content { max-height: calc(100vh - 28px); overflow-y: auto; padding: 24px; scrollbar-color: #bbb #f3f3f3; scrollbar-width: thin; }
.preview-intro { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; padding: 12px 14px; border: 1px solid #d8dcde; border-radius: 8px; background: #f7f8f8; }
.preview-intro > span { flex: 0 0 auto; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #1b1b1b; color: #fff; font-size: 12px; font-weight: 900; }
.preview-intro strong, .preview-intro p { display: block; }
.preview-intro strong { font-size: 12px; }
.preview-intro p { margin: 1px 0 0; font-size: 10px; }
.preview-suggestion-section { width: min(820px, 100%); margin: 0 auto 14px; padding: 11px 12px; border: 1px solid #e5d7b7; border-radius: 8px; background: #fffdf8; }
.preview-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.preview-section-heading span { color: #916418; font-size: 8px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.preview-section-heading h3 { margin: 1px 0 0; font-size: 12px; text-transform: uppercase; }
.preview-section-heading .button { min-height: 30px; padding: 5px 9px; font-size: 8px; }
.preview-suggestion-section .name-review-warnings { gap: 6px; }
.preview-suggestion-section .name-review-warning { grid-template-columns: 96px minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; padding: 9px 10px; border-color: #e7dcc2; border-radius: 6px; background: #fff; }
.preview-suggestion-section .name-review-warning span { font-size: 7px; letter-spacing: .065em; }
.preview-suggestion-section .name-review-warning strong { font-size: 13px; }
.preview-suggestion-section .name-review-arrow { font-size: 15px !important; }
.preview-suggestion-section .name-warning-field { align-self: stretch; display: grid; place-items: center; padding: 5px 6px; border-radius: 5px; background: #f3f3f4; color: #56585b; text-align: center; }
.preview-suggestion-section .name-review-warning p { grid-column: 2 / -1; }
.preview-suggestion-section .name-review-warning p { color: #765d2c; font-size: 9px; font-weight: 650; line-height: 1.35; }
.preview-suggestion-section .name-review-note { margin-top: 8px; padding-left: 8px; border-left-width: 2px; font-size: 9px; line-height: 1.4; }
.person-preview-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.person-preview-group { min-width: 0; overflow: hidden; border: 1px solid #dfe1e3; border-radius: 9px; background: #fff; }
.person-preview-group header { display: flex; align-items: center; gap: 9px; padding: 11px 13px; border-bottom: 1px solid #e2e3e5; background: linear-gradient(180deg, #fafafa, #f3f3f4); }
.person-preview-group header span { color: var(--teal); font-size: 8px; font-weight: 900; }
.person-preview-group header h3 { margin: 0; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.person-preview-group dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.person-preview-group dl > div { min-width: 0; padding: 10px 12px; border-right: 1px solid #ececee; border-bottom: 1px solid #ececee; }
.person-preview-group dl > div:nth-child(2n) { border-right: 0; }
.person-preview-group .preview-item-wide { grid-column: 1 / -1; border-right: 0; }
.person-preview-group dt { margin-bottom: 3px; color: var(--teal); font-size: 7px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.person-preview-group dd { margin: 0; overflow-wrap: anywhere; color: #242527; font-size: 10px; font-weight: 750; line-height: 1.4; }
.person-preview-actions { position: sticky; bottom: -24px; z-index: 2; margin: 18px -24px -24px; padding: 13px 24px; border-top: 1px solid #d9dadd; background: rgb(255 255 255 / 97%); box-shadow: 0 -7px 22px rgb(0 0 0 / 5%); }
.app-confirm-content { padding: 21px; }
.app-confirm-message { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 11px; padding: 14px; border: 1px solid #e0e1e3; border-radius: 8px; background: #f8f8f9; }
.app-confirm-message > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #1b1b1b; color: #fff; font-size: 14px; font-weight: 900; }
.app-confirm-message p { margin: 0; color: #353638; font-size: 12px; line-height: 1.55; }
.delete-person-name { margin: 0; color: var(--ink); font-size: 12px; font-weight: 800; }
#deleteConfirmation { text-transform: lowercase; }

.empty-state { max-width: 620px; margin: 60px auto; padding: 55px; text-align: center; }
.empty-mark { display: inline-grid; width: 65px; height: 45px; place-items: center; margin-bottom: 16px; border: 1px solid var(--navy); border-radius: 4px; box-shadow: inset 0 -3px 0 var(--gold); color: var(--navy); font-weight: 800; letter-spacing: .12em; }
.empty-state p { max-width: 450px; margin: 0 auto 21px; }
.toast-region { position: fixed; z-index: 10000; inset: 78px 18px auto auto; display: grid; gap: 8px; width: max-content; max-width: calc(100vw - 36px); margin: 0; padding: 0; overflow: visible; border: 0; background: transparent; color: inherit; }
.toast { min-width: 290px; max-width: 390px; display: grid; grid-template-columns: 25px minmax(0, 1fr); align-items: center; gap: 9px; padding: 12px 14px; border: 1px solid #d6ded9; border-left: 4px solid var(--success); border-radius: 9px; background: #fff; color: #222; box-shadow: 0 14px 38px rgb(0 0 0 / 18%); font-size: 11px; font-weight: 700; animation: slide-in .2s ease; }
.toast::before { content: "✓"; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #e5f2eb; color: var(--success); font-size: 10px; font-weight: 950; }
.toast.error { border-color: #ead1d3; border-left-color: var(--danger); background: #fffafa; }
.toast.error::before { content: "!"; background: #f7e5e6; color: var(--danger); }
.filter-notification-region { position: fixed; z-index: 9998; right: 18px; bottom: 18px; width: min(410px, calc(100vw - 36px)); pointer-events: none; }
.filter-update-notification { position: relative; overflow: hidden; padding: 14px; border: 1px solid #d8ddda; border-top: 3px solid var(--success); border-radius: 10px; background: #fff; box-shadow: 0 18px 48px rgb(0 0 0 / 22%); pointer-events: auto; animation: filter-notification-in .24s ease; }
.filter-update-notification::after { content: ""; position: absolute; inset: 0 0 auto 50%; height: 3px; background: var(--danger); }
.filter-notification-close { position: absolute; z-index: 1; top: 7px; right: 8px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: transparent; color: #777; cursor: pointer; font-size: 18px; line-height: 1; }
.filter-notification-close:hover { background: #f1f1f1; color: #111; }
.filter-notification-heading { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 10px; padding-right: 26px; }
.filter-notification-heading > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #e7f4ed; color: var(--success); font-weight: 950; }
.filter-notification-heading small, .filter-notification-heading strong { display: block; }
.filter-notification-heading small { color: var(--muted); font-size: 7px; font-weight: 900; letter-spacing: .1em; }
.filter-notification-heading strong { margin-top: 1px; font-size: 13px; }
.filter-notification-counts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 11px; }
.filter-notification-counts span { display: flex; align-items: baseline; gap: 6px; padding: 8px 10px; border-radius: 7px; font-size: 10px; font-weight: 800; }
.filter-notification-counts b { font-size: 18px; line-height: 1; }
.filter-notification-counts .released { background: #e9f5ef; color: var(--success); }
.filter-notification-counts .rejected { background: #fbecee; color: var(--danger); }
.filter-notification-names { margin: 9px 2px 0; font-size: 9px; line-height: 1.45; }
.filter-notification-names.released b { color: var(--success); }
.filter-notification-names.rejected b { color: var(--danger); }
@keyframes filter-notification-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes slide-in { from { opacity: 0; transform: translateX(15px); } }

/* Refinamiento visual ejecutivo EIM */
body {
  background:
    linear-gradient(135deg, rgb(255 255 255 / 72%) 0, transparent 36%),
    #f3f4f5;
}

.sidebar {
  background: linear-gradient(180deg, #090909 0%, #151515 58%, #080808 100%);
  box-shadow: 10px 0 34px rgb(0 0 0 / 9%);
}
.brand { border: 1px solid rgb(255 255 255 / 16%); }
.nav a { position: relative; border: 1px solid transparent; transition: background .16s ease, border-color .16s ease, color .16s ease; }
.nav a:hover { border-color: rgb(255 255 255 / 8%); background: rgb(255 255 255 / 7%); }
.nav a.active { border-color: rgb(189 21 34 / 34%); background: linear-gradient(90deg, rgb(189 21 34 / 23%), rgb(255 255 255 / 7%)); box-shadow: inset 3px 0 0 var(--teal); }

.topbar {
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 5px 22px rgb(0 0 0 / 4%);
}

.page-heading h1 { color: #101010; }
.page-heading .eyebrow { margin-bottom: 5px; }
.panel {
  border-color: var(--container-line);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 6%), 0 12px 30px rgb(0 0 0 / 6%);
}
.panel-header {
  background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
  border-bottom-color: #e1e2e4;
}
.panel-header h2 { color: #161616; }

.button { position: relative; overflow: hidden; border-radius: 8px; letter-spacing: .015em; box-shadow: 0 2px 5px rgb(0 0 0 / 7%); transition: transform .14s ease, box-shadow .14s ease, background .16s ease, border-color .16s ease, color .16s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 5px 13px rgb(0 0 0 / 11%); }
.button:active:not(:disabled) { transform: translateY(0); box-shadow: 0 1px 3px rgb(0 0 0 / 8%); }
.button.primary { background: linear-gradient(180deg, #2b2b2c 0%, #090909 100%); border-color: #090909; box-shadow: 0 4px 11px rgb(0 0 0 / 16%), inset 0 1px rgb(255 255 255 / 12%); }
.button.primary:hover { background: linear-gradient(180deg, #d32230 0%, #9f0e19 100%); border-color: #920d17; box-shadow: 0 6px 16px rgb(189 21 34 / 23%); }
.button.secondary { border-color: #c7c9cc; background: linear-gradient(180deg, #fff 0%, #f4f5f6 100%); box-shadow: 0 2px 5px rgb(0 0 0 / 6%), inset 0 1px #fff; }
.button.secondary:hover { border-color: #a8aaad; background: #fff; }
.button.danger-quiet { border-color: #dfbfc2; background: linear-gradient(180deg, #fff 0%, #fff6f7 100%); }
.button.small { border-radius: 7px; }
.button:focus-visible, .icon-button:focus-visible, .copy-button:focus-visible, a:focus-visible {
  outline: 3px solid rgb(189 21 34 / 22%);
  outline-offset: 2px;
}

input, select, textarea {
  border-color: #cfd1d4;
  border-radius: 8px;
  box-shadow: inset 0 1px 2px rgb(0 0 0 / 3%);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
select {
  appearance: none;
  padding-right: 36px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='m3.25 5.25 3.75 3.5 3.75-3.5' fill='none' stroke='%23515559' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"), linear-gradient(180deg, #fff 0%, #fafafa 100%);
  background-repeat: no-repeat;
  background-position: right 11px center, 0 0;
  background-size: 14px 14px, 100% 100%;
  cursor: pointer;
}
select:hover { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='m3.25 5.25 3.75 3.5 3.75-3.5' fill='none' stroke='%23bd1522' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"), linear-gradient(180deg, #fff 0%, #f7f7f8 100%); }
select:disabled { cursor: not-allowed; }
input:hover, select:hover, textarea:hover { border-color: #b7b9bd; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgb(189 21 34 / 11%); }
.date-capture select { background-color: transparent; background-image: none; }
.inline-status-select, .inline-status-select:hover {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='m3.25 5.25 3.75 3.5 3.75-3.5' fill='none' stroke='%23515559' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.filter-panel { border-top: 3px solid #1b1b1b; }
.filters label > span:first-child { color: #4a4a4a; font-size: 9px; letter-spacing: .04em; text-transform: uppercase; }

.table-panel { border-top: 3px solid var(--teal); }
.table-wrap { scrollbar-color: #b7b7b7 #f1f1f1; scrollbar-width: thin; }
.data-table { background: #fff; }
.data-table th {
  height: 39px;
  padding-block: 10px;
  border-right: 1px solid #e3e4e6;
  background: linear-gradient(180deg, #f6f6f7 0%, #eeeeef 100%);
  color: #3f4144;
  white-space: nowrap;
}
.data-table th:last-child, .data-table td:last-child { border-right: 0; }
.data-table td { border-right: 1px solid #ececee; border-bottom-color: #e4e5e7; }
.data-table tbody tr:nth-child(even) { background: #fbfbfc; }
.data-table tbody tr:hover { background: #fff5f6; box-shadow: inset 3px 0 0 var(--teal); }
.data-table tbody tr { transition: background .13s ease, box-shadow .13s ease; }
.table-toolbar { background: #fff; }
.record-id { color: #55585c; font-family: Consolas, "Courier New", monospace; letter-spacing: -.02em; }
.person-entry-button { border-radius: 7px; background: linear-gradient(180deg, #fff 0%, #fbfbfb 100%); box-shadow: 0 2px 4px rgb(0 0 0 / 5%); transition: background .15s ease, border-color .15s ease, transform .1s ease, box-shadow .15s ease; }
.person-entry-button:hover { transform: translateY(-1px); box-shadow: 0 4px 9px rgb(189 21 34 / 10%); }
.action-link { border-color: #c9cbce; border-radius: 7px; background: linear-gradient(180deg, #fff 0%, #f5f6f6 100%); box-shadow: 0 2px 4px rgb(0 0 0 / 5%); transition: transform .12s ease, box-shadow .12s ease, border-color .15s ease, color .15s ease; }
.action-link:hover { transform: translateY(-1px); box-shadow: 0 4px 9px rgb(0 0 0 / 8%); }

.status-badge { border: 1px solid rgb(40 115 83 / 18%); box-shadow: inset 0 1px 0 rgb(255 255 255 / 55%); }
.status-badge.pending { border-color: rgb(154 106 23 / 19%); }
.status-badge.inactive { border-color: rgb(166 64 64 / 20%); }
.progress-track { border: 1px solid #e0e1e3; background: #ececee; }
.progress-track i { background: linear-gradient(90deg, #97101a, #cf2330); }
.progress-track.progress-low i { background: linear-gradient(90deg, #a9121e, var(--progress-low)); }
.progress-track.progress-medium i { background: linear-gradient(90deg, #b7790c, var(--progress-medium)); }
.progress-track.progress-high i { background: linear-gradient(90deg, #176844, var(--progress-high)); }
.status-row.status-approved .bar-track i { background: linear-gradient(90deg, #176844, var(--progress-high)); }
.status-row.status-sent .bar-track i { background: linear-gradient(90deg, #1d4ed8, #4f83f1); }
.status-row.status-ready .bar-track i { background: linear-gradient(90deg, #1e4f88, var(--info)); }
.status-row.status-attention .bar-track i { background: linear-gradient(90deg, #a9121e, var(--progress-low)); }
.status-row.status-neutral .bar-track i { background: linear-gradient(90deg, #6c6f73, #96999d); }
.status-row.recruiter-row .bar-track i { background: linear-gradient(90deg, #97101a, #cf2330); }

.record-hero { position: relative; overflow: hidden; border-top: 3px solid var(--teal); }
.record-hero::after { content: ""; position: absolute; inset: 0 0 auto auto; width: 150px; height: 150px; background: radial-gradient(circle at top right, rgb(189 21 34 / 7%), transparent 68%); pointer-events: none; }
.person-monogram { background: linear-gradient(145deg, #2b2b2b, #050505); box-shadow: 0 6px 15px rgb(0 0 0 / 14%); }

.tabs {
  gap: 7px;
  padding: 6px;
  border: 1px solid var(--container-line);
  background: rgb(255 255 255 / 94%);
  border-radius: 11px;
  box-shadow: 0 5px 18px rgb(0 0 0 / 5%);
}
.tabs button {
  position: relative;
  min-height: 40px;
  padding-inline: 16px;
  border: 1px solid transparent;
  background: #f5f5f6;
  color: #5b5d61;
  transition: color .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.tabs button:hover { border-color: #d5d6d8; background: #fff; color: #181818; }
.tabs button.active {
  border-color: #111;
  background: linear-gradient(180deg, #292929 0%, #0b0b0b 100%);
  color: #fff;
  box-shadow: 0 5px 13px rgb(0 0 0 / 16%);
}
.tabs button.active::after { content: ""; position: absolute; right: 16px; bottom: -1px; left: 16px; height: 3px; border-radius: 3px 3px 0 0; background: var(--teal); }
.tabs button.active .count-pill { background: var(--teal); color: #fff; }
.tab-panel.active { animation: panel-reveal .16s ease-out; }
@keyframes panel-reveal { from { opacity: .55; transform: translateY(3px); } }

.detail-grid { background: #fff; }
.detail-grid > div {
  padding: 15px 13px 11px;
  border-right: 1px solid #e8e9eb;
  border-bottom: 1px solid #e8e9eb;
  background: linear-gradient(180deg, #fff, #fdfdfd);
}
.detail-grid > div:nth-child(4n) { border-right: 0; }
.detail-grid dt { margin-bottom: 6px; }
.detail-grid dd { min-height: 27px; align-items: center; }
.copy-button { background: #f7f7f8; transition: border-color .15s ease, background .15s ease, color .15s ease; }
.copy-button:hover { background: var(--teal-soft); }

.document-card { border-color: var(--container-line); box-shadow: 0 5px 18px rgb(0 0 0 / 5%); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.document-card:hover { transform: translateY(-2px); border-color: #c6c7c9; box-shadow: 0 10px 25px rgb(0 0 0 / 8%); }
.document-card.received { border-top-color: #287353; }
.document-card.missing { border-top-color: var(--teal); }
.document-file { border: 1px solid #e6e7e9; }

.stat-card { border-color: var(--container-line); transition: transform .15s ease, box-shadow .15s ease; }
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgb(0 0 0 / 8%); }
.project-overview { border-top: 3px solid #181818; }
.project-fact strong { color: #222; }
.status-chart { background: linear-gradient(180deg, #fff, #fdfdfd); }

.modal { border: 1px solid rgb(255 255 255 / 18%); }
.modal-header { position: relative; }
.modal-header::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: linear-gradient(90deg, var(--teal), transparent 72%); }
.toast { border-radius: 8px; box-shadow: 0 14px 36px rgb(0 0 0 / 25%); }

.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 15% 20%, #292929 0, #111 38%, #050505 100%); }
.login-shell { width: min(450px, 100%); }
.login-card { overflow: hidden; background: #fff; border-radius: 12px; box-shadow: 0 28px 90px rgb(0 0 0 / 42%); }
.login-brand { padding: 24px 34px; border-bottom: 4px solid var(--teal); background: #fff; }
.login-brand img { display: block; width: min(285px, 100%); height: auto; margin: auto; }
.login-content { padding: 30px 34px 34px; }
.login-content h1 { font-size: 28px; }
.login-content > p:not(.eyebrow) { margin-bottom: 22px; font-size: 12px; }
.login-form { display: grid; gap: 15px; }
.login-form select { text-transform: uppercase; }
.login-submit { width: 100%; margin-top: 4px; background: var(--teal) !important; }
.login-submit:hover { background: #9e101b !important; }
.login-error { margin-bottom: 16px; padding: 10px 12px; border-left: 3px solid var(--teal); border-radius: 5px; background: var(--teal-soft); color: #8d101a; font-size: 11px; font-weight: 700; }
.login-footer { margin: 14px 0 0; color: #aaa; text-align: center; font-size: 9px; letter-spacing: .08em; }

.audit-filter-panel { margin-bottom: 14px; padding: 17px; }
.audit-filters { display: grid; grid-template-columns: minmax(240px, 2fr) minmax(180px, 1fr) minmax(160px, 1fr) auto; align-items: end; gap: 12px; }
.audit-table-wrap { max-height: calc(100vh - 290px); overflow: auto; }
.audit-table thead { position: sticky; z-index: 1; top: 0; }
.audit-table td { overflow-wrap: anywhere; text-transform: uppercase; }
.audit-person-link { display: grid; gap: 2px; min-width: 175px; color: var(--ink); text-decoration: none; }
.audit-person-link:hover strong { color: var(--teal); text-decoration: underline; }
.audit-person-link small, .audit-no-person { color: var(--muted); font-size: 9px; font-weight: 700; }
.audit-cards { display: none; }
.audit-card { padding: 14px; border-bottom: 1px solid var(--line); }
.audit-card > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.audit-card strong { font-size: 11px; }
.audit-card time, .audit-card small { color: var(--muted); font-size: 9px; }
.audit-card p { margin: 5px 0 2px; color: var(--ink); font-size: 10px; }
.audit-card .audit-person-link { margin-top: 8px; }

.users-layout { display: grid; grid-template-columns: minmax(260px, .65fr) minmax(0, 1.6fr); align-items: start; gap: 16px; }
.admin-section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin: 24px 2px 10px; }
.admin-section-heading h2 { margin: 2px 0 0; font-size: 18px; }
.backup-admin-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr); align-items: stretch; gap: 16px; }
.backup-control-panel { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 17px; padding: 22px; border-top: 3px solid var(--teal); }
.backup-control-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; background: var(--teal-soft); color: var(--teal); font-size: 27px; font-weight: 900; }
.backup-control-copy h2 { margin: 3px 0 7px; font-size: 18px; }
.backup-control-copy > p:not(.eyebrow) { max-width: 590px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.backup-create-button { min-width: 160px; }
.backup-last-status { display: flex; flex-wrap: wrap; gap: 5px 11px; margin-top: 13px; padding: 9px 11px; border-radius: 6px; font-size: 9px; }
.backup-last-status strong { font-size: 9px; }
.backup-last-status.current { background: #e7f2ec; color: var(--success); }
.backup-last-status.overdue { background: #fff0f1; color: var(--danger); }
.backup-history-panel { overflow: hidden; border-top: 3px solid #202020; }
.backup-history { max-height: 250px; overflow: auto; }
.backup-history-item { display: grid; grid-template-columns: minmax(130px, 1.05fr) minmax(125px, 1fr) auto; align-items: center; gap: 9px; padding: 12px 14px; border-top: 1px solid var(--line); }
.backup-history-item:first-child { border-top: 0; }
.backup-history-item > div:first-child { display: grid; gap: 2px; }
.backup-history-item strong { font-size: 10px; }
.backup-history-item small { overflow-wrap: anywhere; color: var(--muted); font-size: 8px; }
.backup-history-meta { display: flex; flex-wrap: wrap; gap: 5px 9px; color: var(--muted); font-size: 8px; font-weight: 800; }
.backup-history-item.invalid { background: #fff0f1; }
.backup-history-item .button { white-space: nowrap; }
.backup-progress-overlay { position: fixed; z-index: 1200; inset: 0; display: grid; place-items: center; padding: 20px; background: rgb(15 15 15 / 72%); backdrop-filter: blur(3px); }
.backup-progress-card { width: min(470px, 100%); padding: 32px; border-top: 4px solid var(--teal); border-radius: 10px; background: #fff; box-shadow: 0 25px 70px rgb(0 0 0 / 35%); text-align: center; }
.backup-progress-card h2 { margin: 6px 0 9px; font-size: 23px; }
.backup-progress-card > p:not(.eyebrow) { margin: 0 0 14px; color: var(--muted); font-size: 11px; }
.backup-progress-card > strong { display: block; padding: 10px; border-radius: 6px; background: #f4f5f6; color: var(--teal); font-size: 10px; }
.backup-spinner { width: 42px; height: 42px; display: block; margin: 0 auto 16px; border: 4px solid #e3e4e5; border-top-color: var(--teal); border-radius: 50%; animation: backup-spin .8s linear infinite; }
@keyframes backup-spin { to { transform: rotate(360deg); } }
.user-create-form { display: grid; gap: 14px; padding: 20px; }
.user-create-form input { text-transform: uppercase; }
.admin-lock { color: var(--muted); font-size: 9px; font-weight: 800; }
.user-cards { display: none; }
.user-card { padding: 14px; border-bottom: 1px solid var(--line); }
.user-card > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.user-card p { margin: 5px 0 12px; font-size: 10px; }

.tools-grid { display: grid; grid-template-columns: minmax(0, 920px); gap: 16px; }
.tool-card { overflow: hidden; }
.tool-image-link { display: block; overflow: hidden; background: #0d3e70; }
.tool-image-link img { display: block; width: 100%; height: auto; transition: transform .18s ease, opacity .18s ease; }
.tool-image-link:hover img { transform: scale(1.008); opacity: .94; }
.tool-card-content { padding: 20px 22px 23px; }
.tool-card-content h2 { margin: 5px 0 7px; font-size: 20px; }
.tool-card-content h2 a { color: var(--ink); }
.tool-card-content h2 a:hover { color: var(--teal); }
.tool-card-content h2 span { color: var(--teal); }
.tool-card-content > p:last-child { max-width: 680px; margin: 0; font-size: 12px; }

.filter-tool-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.filter-safety-notice { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; margin-bottom: 14px; padding: 15px 18px; border: 1px solid #dfb7ba; border-left: 4px solid var(--teal); border-radius: 8px; background: #fff7f8; }
.filter-safety-notice strong { grid-row: span 2; align-self: center; color: #96131d; font-size: 12px; text-transform: uppercase; }
.filter-safety-notice p { margin: 0; color: #5f4c4e; font-size: 11px; }
.filter-verification-notice { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 13px 17px; border: 1px solid #d9c28b; border-radius: 8px; background: #fff9e9; }
.filter-verification-notice > span { width: 29px; height: 29px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: #191919; color: #fff; font-size: 15px; font-weight: 900; }
.filter-verification-notice strong { display: block; margin-bottom: 2px; color: #684c0c; font-size: 12px; text-transform: uppercase; }
.filter-verification-notice p { margin: 0; color: #6f6245; font-size: 10px; }
.filter-process-panel { margin-bottom: 14px; overflow: hidden; border-top: 3px solid #1a1a1a; }
.filter-process-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 18px 20px 21px; }
.filter-process-grid input[readonly] { background: #f4f4f5; color: #555; }
.filter-process-grid .manual-field { border-color: #dfc785; background: #fff9e8; color: #795b18; font-weight: 800; }
.process-readiness { padding: 5px 9px; border-radius: 14px; font-size: 9px; font-weight: 900; text-transform: uppercase; white-space: nowrap; }
.process-readiness.pending { background: #fff1dc; color: #8b6017; }
.process-readiness.ready { background: #e8f2ed; color: var(--success); }
.filter-candidates-panel { overflow: hidden; border-top: 3px solid var(--teal); }
.filter-candidates-header { min-height: 72px; }
.filter-legend { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.filter-legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.filter-candidate-list { display: grid; gap: 10px; padding: 14px; background: #f5f6f7; }
.filter-candidate-card { min-width: 0; display: grid; grid-template-columns: minmax(230px, 1.15fr) minmax(460px, 2fr) 165px; align-items: center; gap: 18px; padding: 15px 16px; border: 1px solid var(--container-line); border-radius: 8px; background: #fff; box-shadow: 0 2px 8px rgb(0 0 0 / 5%); }
.filter-candidate-main { min-width: 0; }
.filter-candidate-title { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.filter-candidate-main h3 { margin: 7px 0 3px; overflow-wrap: anywhere; font-size: 14px; }
.filter-candidate-main h3 a { color: var(--ink); }
.filter-candidate-main h3 a:hover { color: var(--teal); }
.filter-candidate-main > p { margin: 0; color: var(--muted); font-size: 10px; font-weight: 700; }
.filter-candidate-data { min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.filter-candidate-data > div { min-width: 0; padding: 4px 11px; border-left: 1px solid #e6e7e8; }
.filter-candidate-data dt { margin-bottom: 5px; color: var(--teal); font-size: 8px; font-weight: 900; text-transform: uppercase; }
.filter-candidate-data dd { margin: 0; overflow-wrap: anywhere; font-size: 11px; font-weight: 700; }
.filter-candidate-action { display: grid; gap: 5px; text-align: center; }
.filter-candidate-action .button { width: 100%; }
.filter-candidate-action small { color: var(--muted); font-size: 7px; font-weight: 800; letter-spacing: .03em; }

.workflow-panel { margin-bottom: 14px; overflow: hidden; border-top: 3px solid #1b1b1b; }
.important-dates-panel { margin-bottom: 14px; overflow: hidden; border-top: 3px solid var(--teal); }
.important-dates-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); background: #f5f6f7; }
.important-date-card { position: relative; min-width: 0; min-height: 126px; padding: 15px 13px 13px; border-right: 1px solid #e0e2e3; background: #fff; }
.important-date-card:last-child { border-right: 0; }
.important-date-number { display: block; margin-bottom: 10px; color: var(--teal); font-size: 9px; font-weight: 900; letter-spacing: .09em; }
.important-date-card dt { min-height: 27px; color: var(--teal); font-size: 8px; font-weight: 900; line-height: 1.35; text-transform: uppercase; }
.important-date-card dd { display: flex; align-items: flex-start; gap: 5px; margin: 8px 0 9px; }
.important-date-card dd strong { min-width: 0; overflow-wrap: anywhere; font-size: 11px; line-height: 1.35; }
.important-date-card dd .copy-button { flex: 0 0 auto; }
.important-date-card > small { display: block; color: var(--muted); font-size: 7px; font-weight: 800; line-height: 1.35; }
.workflow-header { align-items: center; }
.workflow-header p { margin-bottom: 0; }
.workflow-missing { display: flex; align-items: flex-start; gap: 15px; padding: 12px 20px; border-block: 1px solid #ececee; background: #fafafa; }
.workflow-missing > strong { flex: 0 0 auto; padding-top: 4px; color: var(--teal); font-size: 9px; letter-spacing: .05em; }
.workflow-missing > div { min-width: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.workflow-missing span, .workflow-pending-list span { display: inline-flex; max-width: 100%; padding: 3px 7px; border: 1px solid #e8c5c8; border-radius: 4px; background: #fff5f6; color: #8d1922; font-size: 8px; font-weight: 800; line-height: 1.3; }
.workflow-missing span.complete { border-color: #bdd9ca; background: #eff8f3; color: var(--success); }
.identity-discrepancy-notice { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 14px 18px 0; padding: 13px 15px; border: 1px solid #e5c677; border-left: 4px solid #b7790c; border-radius: 9px; background: #fff9e9; }
.identity-discrepancy-notice > div { min-width: 0; }
.identity-discrepancy-notice span { color: #9a6507; font-size: 8px; font-weight: 900; letter-spacing: .08em; }
.identity-discrepancy-notice h3 { margin: 2px 0 3px; font-size: 14px; }
.identity-discrepancy-notice p { margin: 0; font-size: 10px; line-height: 1.45; }
.identity-discrepancy-notice small { display: block; margin-top: 5px; color: var(--muted); font-size: 7px; font-weight: 800; }
.identity-discrepancy-notice .button { flex: 0 0 auto; }
.identity-discrepancy-notice.accepted { border-color: #b9d8ca; border-left-color: #287353; background: #f2f8f5; }
.identity-discrepancy-notice.accepted span { color: #287353; }
.workflow-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 16px 18px 20px; background: #f5f6f7; }
.validation-card, .filter-action-card { min-width: 0; display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 15px; border: 1px solid var(--container-line); border-radius: 8px; background: #fff; box-shadow: 0 2px 8px rgb(0 0 0 / 5%); }
.validation-card-head, .filter-action-card > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.validation-card-head > div, .filter-action-card > div:first-child { min-width: 0; }
.validation-card-head > div { display: flex; align-items: center; gap: 8px; }
.validation-card-head > div > span, .filter-action-number { color: var(--teal); font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.validation-card h3, .filter-action-card h3 { margin: 0; font-size: 13px; text-transform: uppercase; }
.validation-card > p, .filter-action-card > p { min-height: 44px; margin: 0; font-size: 10px; }
.validation-card > p strong, .validation-card > p span { display: block; }
.validation-card > p span { margin-top: 2px; color: var(--muted); }
.local-validation-ok { color: var(--success); }
.local-validation-error { color: var(--danger); }
.official-validation-link { align-self: flex-start; }
.validation-card label, .filter-action-card label { display: grid; gap: 4px; }
.validation-card label > span, .filter-action-card label > span { color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.validation-card input, .validation-card select, .validation-card textarea, .filter-action-card input { width: 100%; min-width: 0; }
.validation-card textarea { resize: vertical; }
.validation-card.exception-accepted { border-color: #b9d8ca; box-shadow: inset 0 3px #287353, 0 2px 8px rgb(0 0 0 / 5%); }
.validation-card.exception-accepted > label,
.validation-card.exception-accepted > button[type="submit"] { display: none; }
.validation-captured-value { padding: 9px 10px; border: 1px solid #dfe1e3; border-radius: 6px; background: #f7f8f8; }
.validation-captured-value > span { display: block; margin-bottom: 5px; color: var(--teal); font-size: 8px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.validation-captured-value > div { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.validation-captured-value strong { min-width: 0; overflow-wrap: anywhere; font-size: 11px; letter-spacing: .035em; }
.corrected-identifier-field { padding: 9px; border: 1px solid #e4b9bd; border-radius: 6px; background: #fff7f8; }
.corrected-identifier-field input { text-transform: uppercase; }
.validation-resource-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.validation-resource-actions .button { flex: 1 1 145px; }
.validation-meta { min-height: 25px; margin-top: auto; color: var(--muted); font-size: 8px; line-height: 1.4; }
.filter-action-card > small { margin-top: auto; color: var(--muted); font-size: 8px; }
.filter-send-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0; padding: 9px; border-radius: 5px; background: #f5f5f5; }
.filter-send-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-send-actions .button { flex: 1 1 145px; justify-content: center; }
.filter-send-meta dt { color: var(--muted); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.filter-send-meta dd { margin: 2px 0 0; overflow-wrap: anywhere; font-size: 9px; font-weight: 700; }
.workflow-pending-list small { align-self: center; color: var(--muted); font-size: 8px; font-weight: 800; }
.pending-more { flex: 1 0 100%; }
.pending-more summary { width: fit-content; cursor: pointer; color: var(--muted); font-size: 8px; font-weight: 900; list-style: none; }
.pending-more summary::-webkit-details-marker { display: none; }
.pending-more > div { display: flex; flex-wrap: wrap; gap: 4px; padding-top: 5px; }
.process-link { white-space: nowrap; }

.integration-panel { overflow: hidden; border-top: 3px solid var(--teal); }
.integration-brand { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 20px; border-bottom: 1px solid var(--line); }
.integration-brand h2, .integration-brand p { margin-bottom: 0; }
.integration-brand h2 { font-size: 20px; }
.integration-brand p:last-child { margin-top: 3px; font-size: 11px; }
.gmail-mark { width: 48px; height: 48px; display: grid; place-items: center; border: 2px solid #d6d6d6; border-radius: 9px; background: #fff; color: #bd1522; font-size: 23px; font-weight: 900; box-shadow: 0 3px 10px rgb(0 0 0 / 6%); }
.integration-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0 20px; }
.integration-grid > div { min-width: 0; padding: 17px 14px 17px 0; border-bottom: 1px solid var(--line); }
.integration-grid span, .integration-grid strong { display: block; overflow-wrap: anywhere; }
.integration-grid span { margin-bottom: 4px; color: var(--teal); font-size: 8px; font-weight: 900; text-transform: uppercase; }
.integration-grid strong { font-size: 12px; }
.integration-message { margin: 17px 20px 0; padding: 11px 13px; border-left: 3px solid #1d1d1d; border-radius: 5px; background: #f5f5f5; color: var(--muted); font-size: 11px; }
.integration-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 20px 18px; }
.integration-safety { padding: 15px 20px; border-top: 1px solid #ead8da; background: #fff8f8; }
.integration-safety strong { display: block; margin-bottom: 3px; color: #8f1520; font-size: 10px; text-transform: uppercase; }
.integration-safety p { margin: 0; font-size: 10px; }

.validation-inbox-panel { margin-top: 16px; overflow: hidden; border-top: 3px solid #1b1b1b; }
.validation-inbox-header { align-items: center; }
.validation-inbox-header h2, .validation-inbox-header p { margin-bottom: 0; }
.validation-inbox-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.validation-filter-bar { display: grid; grid-template-columns: minmax(250px, 1.6fr) minmax(155px, .7fr) minmax(225px, 1fr) auto; align-items: end; gap: 10px; padding: 13px 18px; border-top: 1px solid var(--line); background: #f7f8f8; }
.validation-filter-bar label { min-width: 0; display: grid; gap: 5px; }
.validation-filter-bar label > span { color: var(--teal); font-size: 8px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.validation-filter-bar input, .validation-filter-bar select { width: 100%; min-height: 38px; border: 1px solid #cfd3d5; border-radius: 6px; background: #fff; font-size: 10px; font-weight: 750; }
.validation-filter-bar input:focus, .validation-filter-bar select:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgb(185 24 36 / 10%); outline: 0; }
.validation-filter-bar .button { min-height: 38px; white-space: nowrap; }
.validation-email-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fafafa; }
.validation-email-summary > div { padding: 14px 18px; border-right: 1px solid var(--line); }
.validation-email-summary > div:last-child { border-right: 0; }
.validation-email-summary span, .validation-email-summary strong { display: block; }
.validation-email-summary span { margin-bottom: 3px; color: var(--muted); font-size: 8px; font-weight: 900; text-transform: uppercase; }
.validation-email-summary strong { font-size: 20px; }
.validation-confirmation-note { display: flex; align-items: center; gap: 12px; margin: 14px; padding: 11px 13px; border: 1px solid #dfc98d; border-radius: 6px; background: #fff9e9; }
.validation-confirmation-note strong { flex: 0 0 auto; color: #765810; font-size: 9px; text-transform: uppercase; }
.validation-confirmation-note span { color: #6c6248; font-size: 9px; }
.validation-email-results { display: grid; gap: 10px; padding: 0 14px 16px; }
.validation-email-results.is-syncing { position: relative; cursor: progress; }
.validation-email-results.is-syncing::after { position: sticky; z-index: 4; top: 82px; display: block; width: max-content; max-width: calc(100% - 20px); margin: 8px 10px -38px auto; padding: 7px 10px; border: 1px solid #e1c3c5; border-radius: 6px; background: #fff7f7; box-shadow: 0 5px 16px rgb(20 20 20 / 9%); color: var(--red); content: "Actualizando validaciones…"; font-size: 9px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.validation-email-results.empty-state { min-height: 88px; place-items: center; color: var(--muted); font-size: 11px; text-align: center; }
.validation-day-group { overflow: hidden; border: 1px solid var(--container-line); border-radius: 8px; background: #fff; box-shadow: 0 2px 8px rgb(0 0 0 / 5%); }
.validation-day-header { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #f5f6f7; box-shadow: inset 3px 0 var(--teal); }
.validation-day-header span { color: var(--teal); font-size: 7px; font-weight: 900; letter-spacing: .08em; }
.validation-day-header h3 { margin: 3px 0 0; font-size: 13px; text-transform: capitalize; }
.validation-day-header > strong { padding: 4px 7px; border-radius: 4px; background: #e9eaeb; color: var(--muted); font-size: 8px; white-space: nowrap; }
.validation-day-hours { display: grid; }
.validation-hour-group { display: grid; grid-template-columns: 82px minmax(0, 1fr); border-bottom: 1px solid #e1e3e4; }
.validation-hour-group:last-child { border-bottom: 0; }
.validation-hour-header { display: flex; align-items: center; flex-direction: column; justify-content: center; gap: 4px; padding: 12px 8px; border-right: 1px solid #e1e3e4; background: #f8f9f9; text-align: center; }
.validation-hour-header time { font-size: 13px; font-weight: 900; white-space: nowrap; }
.validation-hour-header span { color: var(--teal); font-size: 7px; font-weight: 900; }
.mail-read-state { min-height: 22px; display: inline-flex; align-items: center; flex: 0 0 auto; justify-self: start; padding: 4px 8px; border-radius: 4px; background: #e9eaeb; color: #5d6268; font-size: 7px; font-weight: 900; line-height: 1; white-space: nowrap; }
.mail-read-state.unread { background: #e9f1ee; color: var(--success); }
.validation-day-people { display: grid; }
.validation-email-person { min-width: 0; display: grid; grid-template-columns: minmax(320px, 460px) max-content max-content; align-items: start; justify-content: start; column-gap: 8px; row-gap: 6px; padding: 11px 14px; border-bottom: 1px solid #ececee; }
.validation-email-person:last-child { border-bottom: 0; }
.validation-email-person:has(input:checked) { background: #f2f8f5; box-shadow: inset 3px 0 var(--success); }
.validation-email-person.review { cursor: default; background: #fdfafa; }
.validation-email-person.approved { cursor: default; background: #f2f8f5; box-shadow: inset 3px 0 var(--success); }
.validation-email-person.rejected { background: #fdf2f3; box-shadow: inset 3px 0 var(--danger); }
.validation-email-person.warning { background: #fff8e8; box-shadow: inset 3px 0 #b7790c; }
.validation-email-person input { width: 16px; height: 16px; accent-color: var(--teal); }
.validation-person-identity { min-width: 0; }
.validation-person-identity strong, .validation-person-identity small { display: block; overflow-wrap: anywhere; }
.validation-person-identity strong { font-size: 11px; }
.validation-person-identity strong a { color: var(--ink); }
.validation-person-identity strong a:hover { color: var(--teal); }
.validation-person-identity small { margin-top: 3px; color: var(--muted); font-size: 8px; font-weight: 700; }
.validation-person-identity .validation-typo-note { width: fit-content; max-width: 100%; margin-top: 5px; padding: 3px 6px; border: 1px solid #e4c889; border-radius: 4px; background: #fff5da; color: #80560b; font-weight: 900; }
.match-result { width: fit-content; min-height: 22px; max-width: min(240px, 100%); display: inline-flex; align-items: center; justify-content: center; justify-self: start; padding: 4px 8px; border-radius: 4px; font-size: 7px; font-weight: 900; line-height: 1.15; text-align: center; white-space: normal; }
.match-result.ready { background: #e6f2ec; color: var(--success); }
.match-result.pending { background: #fff0f1; color: #961722; }
.match-result.approved { border: 1px solid #bad8c8; background: #e6f2ec; color: var(--success); }
.match-result.rejected { border: 1px solid #e6b8bc; background: #fff0f1; color: var(--danger); }
.match-result.warning { border: 1px solid #e4c889; background: #fff5da; color: #80560b; }
.validation-sync-panel { overflow: hidden; border-top: 3px solid var(--teal); }
.validation-sync-state { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.validation-sync-state > div { min-width: 0; padding: 15px 18px; border-right: 1px solid var(--line); }
.validation-sync-state > div:last-child { border-right: 0; }
.validation-sync-state span, .validation-sync-state strong { display: block; overflow-wrap: anywhere; }
.validation-sync-state span { margin-bottom: 4px; color: var(--teal); font-size: 8px; font-weight: 900; text-transform: uppercase; }
.validation-sync-state strong { font-size: 11px; }
.validation-sync-panel > p { margin: 0; padding: 10px 18px; border-top: 1px solid var(--line); background: #f7f8f8; color: var(--muted); font-size: 9px; font-weight: 750; }
.validation-pagination { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 14px; border-top: 1px solid var(--line); background: #fafafa; }
.validation-pagination strong { min-width: 120px; color: var(--muted); font-size: 9px; text-align: center; }

@media (max-width: 1180px) {
  .filters { grid-template-columns: repeat(3, 1fr); }
  .filter-actions { grid-column: auto; }
  .form-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span-3, .modern-record-form .project-field { grid-column: span 2; }
  .span-4 { grid-column: span 2; }
  .detail-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .detail-grid > div:nth-child(4n) { border-right: 1px solid #e8e9eb; }
  .detail-grid > div:nth-child(3n) { border-right: 0; }
  .document-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filter-candidate-card { grid-template-columns: minmax(220px, 1fr) minmax(380px, 1.7fr); }
  .filter-candidate-action { grid-column: 1 / -1; justify-self: end; width: 180px; }
  .workflow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-action-card { grid-column: 1 / -1; }
  .dashboard-period-form { grid-template-columns: minmax(240px, 1fr) 160px 160px; }
  .dashboard-period-form .button { grid-column: 2 / -1; justify-self: end; }
  .important-dates-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .important-date-card:nth-child(3) { border-right: 0; }
  .important-date-card:nth-child(n+4) { border-top: 1px solid #e0e2e3; }
}

@media (max-width: 1100px) {
  .dashboard-period-detail-grid { grid-template-columns: 1fr; }
  .dashboard-report-panel { grid-template-columns: 1fr; }
  .dashboard-report-panel > small { grid-column: auto; }
  .category-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .table-panel > .table-wrap { display: none; }
  .table-panel .people-cards { display: grid; gap: 10px; padding: 12px; }
  .people-status-table-wrap { display: none; }
  .people-status-cards { display: grid; gap: 10px; padding: 12px; }
}

@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; }
  body.menu-open .sidebar { transform: none; }
  .sidebar-scrim { position: fixed; inset: 0; z-index: 19; background: rgb(0 0 0 / 35%); }
  body.menu-open .sidebar-scrim { display: block; }
  .app-shell { margin-left: 0; }
  .menu-button { display: block; }
  .topbar { height: 52px; position: sticky; top: 0; z-index: 15; display: flex; align-items: center; justify-content: flex-start; padding: 0 18px; border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
  .main-content { padding: 22px 18px 42px; }
  .sticky-actions { left: 0; padding-right: 18px; }
  .stat-grid, .stat-grid.four-metrics { grid-template-columns: repeat(2, 1fr); }
  .dashboard-top-grid, .dashboard-insight-grid { grid-template-columns: 1fr; }
  .dashboard-top-grid .dashboard-report-panel { grid-column: auto; grid-row: auto; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .record-hero { grid-template-columns: 1fr; }
  .record-actions { width: 100%; grid-row: 2; }
  .audit-filters { grid-template-columns: 1fr 1fr; }
  .audit-filters .search-field { grid-column: span 2; }
  .users-layout { grid-template-columns: 1fr; }
  .backup-admin-grid { grid-template-columns: 1fr; }
  .dashboard-period-form { grid-template-columns: 1fr 1fr; }
  .dashboard-period-title { grid-column: 1 / -1; }
  .dashboard-period-form .button { grid-column: auto; justify-self: stretch; }
  .personal-groups { grid-template-columns: 1fr; }
  .personal-group { grid-column: 1; }
  .personal-detail-grid, .personal-group-civil .personal-detail-grid, .personal-group-contact .personal-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .personal-group-identification .personal-detail-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .personal-detail-grid > div:nth-child(3n) { border-right: 1px solid #e8e9eb; }
  .personal-detail-grid > div:nth-child(2n) { border-right: 0; }
  .personal-detail-grid .detail-item-wide { grid-column: span 2; }
  .personal-group-identification .personal-detail-grid .detail-item-full { grid-column: 1 / -1; }
  .filter-process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .validation-filter-bar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .validation-filter-search { grid-column: 1 / -1; }
  .validation-filter-bar .button { justify-self: stretch; }
  .validation-email-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .validation-email-summary > div:nth-child(2) { border-right: 0; }
  .filter-candidate-card { grid-template-columns: 1fr; }
  .filter-candidate-data > div:first-child { border-left: 0; }
  .filter-candidate-action { grid-column: auto; justify-self: stretch; width: auto; }
}

@media (max-width: 700px) {
  .document-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .course-signature-section { grid-template-columns: 1fr; }
  .record-status-grid { grid-template-columns: 1fr; }
  .conditions-conformity { grid-template-columns: 1fr; }
  .conditions-conformity-badge { justify-self: start; }
  .conditions-conformity-form { grid-column: auto; grid-template-columns: 1fr; }
  .conditions-conformity > small { grid-column: auto; }
  .backup-control-panel { grid-template-columns: 45px minmax(0, 1fr); padding: 17px; }
  .backup-control-icon { width: 43px; height: 43px; font-size: 23px; }
  .backup-create-button { grid-column: 1 / -1; width: 100%; }
  .backup-history-item { grid-template-columns: 1fr auto; }
  .backup-history-meta { grid-column: 1; }
  .backup-history-item .button { grid-column: 2; grid-row: 1 / span 2; }
  .dashboard-report-panel form { grid-template-columns: 1fr; }
  .category-options { grid-template-columns: 1fr; }
  .dashboard-metric-heading { align-items: flex-start; flex-direction: column; gap: 9px; }
  .dashboard-current-badges { flex-wrap: wrap; }
  .split-heading { align-items: stretch; flex-direction: column; }
  .split-heading .button { align-self: flex-start; }
  .project-overview { grid-template-columns: 1fr; }
  .project-fact { border-top: 1px solid var(--line); border-left: 0; }
  .project-fact:first-child { border-top: 0; }
  .filters { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: span 2; }
  .table-panel > .table-wrap { display: none; }
  .people-cards { display: grid; gap: 10px; padding: 12px; }
  .person-card { padding: 14px; border: 1px solid var(--line); border-radius: 8px; }
  .person-card-top { display: flex; align-items: start; justify-content: space-between; gap: 8px; }
  .person-card h3 { margin: 0 0 2px; font-size: 14px; }
  .person-card p { margin: 0; font-size: 10px; }
  .person-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 13px 0; }
  .person-card-grid span { display: block; color: var(--muted); font-size: 9px; }
  .person-card-grid strong { display: block; font-size: 11px; }
  .person-card-status-field { grid-column: 1 / -1; }
  .person-card-actions { display: flex; gap: 6px; }
  .person-card-missing { margin: 0 0 13px; padding-top: 10px; border-top: 1px solid var(--line); }
  .person-card-missing > span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 9px; }
  .form-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid > div:nth-child(3n) { border-right: 1px solid #e8e9eb; }
  .detail-grid > div:nth-child(2n) { border-right: 0; }
  .record-identity { align-items: flex-start; }
  .record-title-line { align-items: flex-start; flex-direction: column; gap: 5px; }
  .timeline-item { grid-template-columns: 1fr; gap: 3px; }
  .audit-table-wrap { display: none; }
  .audit-cards { display: block; }
  .users-layout .table-wrap { display: none; }
  .user-cards { display: block; }
  .filter-tool-heading { align-items: flex-start; flex-direction: column; }
  .filter-safety-notice { grid-template-columns: 1fr; }
  .filter-safety-notice strong { grid-row: auto; }
  .filter-candidates-header { align-items: flex-start; flex-direction: column; }
  .filter-candidate-data { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 0; }
  .filter-candidate-data > div:nth-child(odd) { border-left: 0; }
  .workflow-grid { grid-template-columns: 1fr; }
  .filter-action-card { grid-column: auto; }
  .workflow-missing { align-items: stretch; flex-direction: column; gap: 7px; }
  .identity-discrepancy-notice { align-items: stretch; flex-direction: column; gap: 10px; }
  .identity-discrepancy-notice .button { width: 100%; }
  .important-dates-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .important-date-card:nth-child(3) { border-right: 1px solid #e0e2e3; }
  .important-date-card:nth-child(2n) { border-right: 0; }
  .important-date-card:nth-child(n+3) { border-top: 1px solid #e0e2e3; }
  .integration-grid { grid-template-columns: 1fr; }
  .integration-brand { grid-template-columns: auto 1fr; }
  .integration-brand > .status-badge { grid-column: 1 / -1; justify-self: start; }
  .validation-inbox-header { align-items: stretch; flex-direction: column; }
.validation-inbox-actions .button { flex: 1; }
.validation-hour-group { grid-template-columns: 1fr; }
  .validation-hour-header { min-height: 40px; align-items: center; flex-direction: row; justify-content: flex-start; padding: 8px 12px; border-right: 0; border-bottom: 1px solid #e1e3e4; }
  .validation-email-person { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .validation-person-identity { grid-column: 1; }
  .validation-email-person > .mail-read-state { grid-column: 1; justify-self: start; }
  .match-result { grid-column: 1; justify-self: start; white-space: normal; }
}

@media (max-width: 480px) {
  .validation-filter-bar { grid-template-columns: 1fr; padding: 12px; }
  .validation-filter-search { grid-column: auto; }
  .backup-history-item { grid-template-columns: 1fr; }
  .backup-history-item .button { grid-column: 1; grid-row: auto; width: 100%; }
  .backup-progress-card { padding: 24px 18px; }
  .main-content { padding-inline: 12px; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .dashboard-period-form { grid-template-columns: 1fr; padding: 14px; }
  .dashboard-period-title, .dashboard-period-form .button { grid-column: auto; }
  .dashboard-period-shortcuts { padding-inline: 14px; }
  .stat-card { padding: 14px; }
  .stat-card strong { font-size: 24px; }
  .filters, .form-grid.cols-4, .form-grid.cols-3, .form-grid.cols-2 { grid-template-columns: 1fr; }
  .search-field, .span-2, .span-3, .span-4 { grid-column: span 1; }
  .modern-record-form .project-field { grid-column: span 1; }
  .modern-form-heading { padding: 18px; }
  .form-heading-meta { gap: 6px; }
  .form-heading-meta i { width: 16px; }
  .date-capture { grid-template-columns: 34px minmax(54px, .65fr) minmax(102px, 1.35fr) minmax(72px, .8fr); gap: 3px; }
  .date-capture select { padding-inline: 4px; font-size: 9px; }
  .filter-actions { justify-content: stretch; }
  .filter-actions .button { flex: 1; }
  .table-toolbar { align-items: stretch; flex-direction: column; }
  .personal-toolbar-actions { align-items: stretch; flex-direction: column; gap: 9px; }
  .people-group-control, .people-group-trigger { width: 100%; }
  .people-group-menu { right: auto; left: 0; width: 100%; }
  .inactive-toggle { min-height: 34px; }
  .custom-filter-select-menu { max-height: 235px; }
  .people-status-groups { gap: 8px; padding: 9px; }
  .people-status-group > summary { min-height: 50px; padding: 10px 11px; }
  .people-status-group-title { align-items: flex-start; flex-direction: column; gap: 4px; }
  .people-group-value-badge { max-width: calc(100vw - 92px); }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-grid > div { border-right: 0; }
  .personal-groups { gap: 11px; padding: 12px; }
  .personal-group-header { min-height: 56px; padding: 11px 12px; }
  .personal-group-header h3 { font-size: 13px; }
  .personal-detail-grid, .personal-group-civil .personal-detail-grid, .personal-group-contact .personal-detail-grid { grid-template-columns: 1fr; }
  .personal-group-identification .personal-detail-grid { grid-template-columns: 1fr; }
  .personal-detail-grid > div, .personal-group-civil .personal-detail-grid > div, .personal-group-contact .personal-detail-grid > div { min-height: 70px; padding: 13px; border-right: 0; }
  .personal-detail-grid .detail-item-wide { grid-column: span 1; }
  .personal-detail-grid dd { font-size: 13px; }
  .document-grid { grid-template-columns: 1fr; padding: 12px; }
  .record-hero { padding: 15px; }
  .person-monogram { width: 43px; height: 43px; }
  .credential-photo { width: 70px; height: 92px; border-radius: 7px; }
  .credential-user-icon { width: 38px; height: 38px; margin-bottom: 5px; }
  .credential-user-icon::before { top: 16%; width: 30%; height: 30%; }
  .credential-user-icon::after { bottom: 10%; width: 58%; height: 45%; }
  .record-title-line h1 { font-size: 19px; }
  .record-actions .button { min-height: 41px; }
  .modal form { padding: 16px; }
  .name-review-content { padding: 16px; }
  .name-review-warning { grid-template-columns: 1fr; gap: 7px; }
  .name-review-arrow { display: none; }
  .name-review-actions .button { width: 100%; }
  .person-preview-content { padding: 16px; }
  .person-preview-groups { grid-template-columns: 1fr; }
  .person-preview-group dl { grid-template-columns: 1fr; }
  .person-preview-group dl > div { border-right: 0; }
  .preview-section-heading { align-items: stretch; flex-direction: column; }
  .preview-suggestion-section .name-review-warning { grid-template-columns: 1fr; }
  .preview-suggestion-section .name-review-warning p { grid-column: 1; }
  .person-preview-actions { bottom: -16px; flex-direction: column-reverse; margin: 16px -16px -16px; padding: 12px 16px; }
  .person-preview-actions .button { width: 100%; }
  .app-confirm-content { padding: 16px; }
  .login-page { padding: 12px; }
  .login-brand { padding: 19px 25px; }
  .login-content { padding: 24px 22px 27px; }
  .audit-filters { grid-template-columns: 1fr; }
  .audit-filters .search-field { grid-column: span 1; }
  .tool-card-content { padding: 17px; }
  .tool-card-content h2 { font-size: 17px; }
  .filter-process-grid { grid-template-columns: 1fr; padding: 14px; }
  .filter-candidate-list { padding: 10px; }
  .filter-candidate-card { gap: 14px; padding: 14px; }
  .filter-candidate-data { grid-template-columns: 1fr; gap: 0; }
  .filter-candidate-data > div { padding: 9px 0; border-bottom: 1px solid #ececee; border-left: 0; }
  .workflow-grid { padding: 10px; }
  .important-dates-grid { grid-template-columns: 1fr; }
  .important-date-card, .important-date-card:nth-child(3) { min-height: 0; border-top: 1px solid #e0e2e3; border-right: 0; }
  .important-date-card:first-child { border-top: 0; }
  .validation-email-summary { grid-template-columns: 1fr 1fr; }
  .validation-email-summary > div { padding: 12px; }
  .validation-sync-state { grid-template-columns: 1fr; }
  .validation-sync-state > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .validation-sync-state > div:last-child { border-bottom: 0; }
  .validation-change-item { grid-template-columns: 68px minmax(0, 1fr); }
  .validation-pagination { gap: 7px; }
  .validation-pagination .button { min-width: 0; padding-inline: 9px; }
  .validation-confirmation-note { align-items: flex-start; flex-direction: column; gap: 4px; }
}

/* Inventario EIM */
.inventory-page { display: grid; gap: 14px; }
.inventory-heading { min-height: 0; margin-bottom: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.inventory-heading > div:first-child { max-width: 720px; }
.inventory-heading-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.inventory-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.inventory-summary article { min-height: 88px; position: relative; overflow: hidden; padding: 16px 17px; border: 1px solid var(--container-line); border-radius: 10px; background: #fff; box-shadow: var(--shadow); }
.inventory-summary article::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: #68717e; }
.inventory-summary article.epp::before { background: var(--info); }
.inventory-summary article.consumable::before { background: var(--teal); }
.inventory-summary article.shortage::before { background: #d28a16; }
.inventory-summary span { display: block; color: #727b88; font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.inventory-summary strong { display: block; margin-top: 5px; color: #111827; font-size: 28px; line-height: 1; }
.inventory-filter-panel, .inventory-catalog-panel, .inventory-plan-panel, .inventory-stock-panel, .inventory-movement-panel { border-color: var(--container-line); }
.inventory-filter-panel, .inventory-catalog-panel, .inventory-plan-panel, .inventory-stock-panel, .inventory-movement-panel { padding: 16px; }
.inventory-page .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
.inventory-page .section-heading h2 { margin: 2px 0 2px; font-size: 17px; }
.inventory-page .section-heading p:last-child { margin: 0; font-size: 10px; }
.inventory-selection-count, .inventory-panel-count { flex: 0 0 auto; padding: 5px 9px; border: 1px solid #d4dae2; border-radius: 999px; background: #f7f8fa; color: #586273; font-size: 9px; font-weight: 900; letter-spacing: .04em; }
.inventory-catalog-heading-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 9px; }
.inventory-collapsible-content[hidden] { display: none !important; }
.inventory-section-title-toggle { display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 2px 0; border: 0; background: transparent; color: var(--teal); cursor: pointer; font-size: 9px; font-weight: 900; letter-spacing: .1em; line-height: 1.2; text-transform: uppercase; }
.inventory-section-title-toggle:hover, .inventory-section-title-toggle:focus-visible { color: #8f101a; outline: none; }
.inventory-section-title-toggle:focus-visible { box-shadow: 0 2px 0 currentColor; }
.inventory-section-title-toggle i { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .18s ease; }
.inventory-section-title-toggle.collapsed i { transform: translateY(2px) rotate(225deg); }
.inventory-section-toggle { min-height: 31px; display: inline-grid; grid-template-columns: auto 17px; align-items: center; gap: 7px; padding: 5px 8px 5px 10px; border: 1px solid #c6ced9; border-radius: 7px; background: #fff; color: #394658; cursor: pointer; font-size: 8px; font-weight: 900; text-transform: uppercase; transition: border-color .15s, color .15s, background .15s, box-shadow .15s; }
.inventory-section-toggle:hover, .inventory-section-toggle:focus-visible { border-color: var(--teal); background: #fff6f7; color: #ae1521; box-shadow: 0 0 0 3px rgb(189 21 34 / 8%); outline: 0; }
.inventory-section-toggle i { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .18s ease; }
.inventory-section-toggle.collapsed i { transform: translateY(2px) rotate(225deg); }
.inventory-catalog-view-switch { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid #ccd3dc; border-radius: 8px; background: #f1f3f6; }
.inventory-catalog-view-switch button { min-height: 29px; padding: 5px 10px; border: 0; border-radius: 6px; background: transparent; color: #606b7a; cursor: pointer; font-size: 8px; font-weight: 900; transition: background .15s, color .15s, box-shadow .15s; }
.inventory-catalog-view-switch button.active { background: #fff; color: var(--teal); box-shadow: 0 2px 7px rgb(17 26 39 / 10%), inset 0 -2px 0 var(--teal); }
.inventory-filters { display: grid; grid-template-columns: 70px minmax(170px, 1.1fr) minmax(125px, .65fr) minmax(165px, .9fr) minmax(170px, 1fr) 76px; gap: 9px; align-items: end; }
.inventory-filters label, .inventory-modal-grid label { min-width: 0; display: grid; gap: 5px; }
.inventory-filters label > span, .inventory-modal-grid label > span { color: #4c5665; font-size: 9px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.inventory-filters input, .inventory-filters select, .inventory-modal-grid input, .inventory-modal-grid select, .inventory-modal-grid textarea { width: 100%; min-height: 39px; border: 1px solid #c7cfda; border-radius: 7px; background: #fff; color: #1d2633; padding: 8px 10px; outline: none; }
.inventory-filters input:focus, .inventory-filters select:focus, .inventory-modal-grid input:focus, .inventory-modal-grid select:focus, .inventory-modal-grid textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgb(189 21 34 / 9%); }
.inventory-card-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.inventory-card { min-width: 0; position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #cbd2dc; border-radius: 10px; background: #fff; transition: border-color .16s, box-shadow .16s, transform .16s; }
.inventory-card:hover { border-color: #9aa6b5; transform: translateY(-1px); box-shadow: 0 9px 22px rgb(22 31 44 / 8%); }
.inventory-card.selected { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal), 0 8px 22px rgb(189 21 34 / 10%); }
.inventory-card-check { position: absolute; z-index: 3; top: 9px; left: 9px; width: 24px; height: 24px; cursor: pointer; }
.inventory-card-check input { position: absolute; opacity: 0; }
.inventory-card-check span { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid #aeb8c6; border-radius: 6px; background: rgb(255 255 255 / 92%); box-shadow: 0 2px 6px rgb(0 0 0 / 10%); }
.inventory-card-check input:checked + span { border-color: var(--teal); background: var(--teal); }
.inventory-card-check input:checked + span::after { content: "✓"; color: #fff; font-size: 15px; font-weight: 900; }
.inventory-card-image { flex: 0 0 auto; height: 118px; position: relative; overflow: hidden; padding: 0; border: 0; border-bottom: 1px solid #d9dfe7; background: #f4f6f8; cursor: pointer; }
.inventory-card-image img { position: absolute; inset: 0; width: 100%; height: 100%; min-width: 0; min-height: 0; box-sizing: border-box; padding: 7px; display: block; object-fit: contain; transition: filter .2s; }
.inventory-card-image:hover img { filter: brightness(.94); }
.inventory-card-image span { position: absolute; right: 7px; bottom: 7px; padding: 4px 6px; border-radius: 5px; background: rgb(7 13 22 / 82%); color: #fff; font-size: 7px; font-weight: 900; letter-spacing: .05em; opacity: 0; transform: translateY(3px); transition: opacity .16s, transform .16s; }
.inventory-card-image:hover span { opacity: 1; transform: translateY(0); }
.inventory-image-remove { position: absolute; z-index: 3; top: 8px; right: 8px; width: 26px; height: 26px; border: 1px solid rgb(255 255 255 / 70%); border-radius: 50%; background: rgb(17 24 39 / 78%); color: #fff; cursor: pointer; font-size: 17px; line-height: 1; }
.inventory-image-remove:hover { background: var(--teal); }
.inventory-card-body { flex: 1; padding: 11px 12px 9px; }
.inventory-card-body h3 { min-height: 34px; margin: 7px 0 8px; color: #18212e; font-size: 11px; line-height: 1.35; }
.inventory-type { display: inline-flex; max-width: 100%; padding: 3px 6px; border-radius: 999px; background: #eef3fa; color: #2963a3; font-size: 7px; font-weight: 900; letter-spacing: .06em; white-space: nowrap; }
.inventory-type.consumable { background: #f9ebed; color: #a91824; }
.inventory-card-stock { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; padding-top: 7px; border-top: 1px solid #e5e8ed; }
.inventory-card-stock span { color: #7a8493; font-size: 7px; font-weight: 900; letter-spacing: .06em; }
.inventory-card-stock strong { color: #141c28; font-size: 17px; }
.inventory-card-stock small { color: #6a7483; font-size: 7px; }
.inventory-card-demand { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; border-top: 1px solid #d9dfe7; padding-top: 8px; }
.inventory-card-demand > div { min-width: 0; display: grid; grid-template-rows: 32px auto; align-items: center; gap: 3px; padding: 5px 3px; border-radius: 5px; background: #f2f5f8; text-align: center; }
.inventory-card-demand span { color: #5d6a7b; font-size: 6.5px; font-weight: 850; line-height: 1.3; text-transform: uppercase; overflow-wrap: anywhere; }
.inventory-card-demand span small { display: block; font-size: 5.5px; font-weight: 700; }
.inventory-card-demand strong { color: #172233; font-size: 16px; line-height: 1.2; overflow-wrap: anywhere; }
.inventory-card-demand .required { background: #edf1f7; }
.inventory-card-demand .pending, .inventory-catalog-shortage.pending { background: #fff0f1; color: #b41927; }
.inventory-card-demand .pending strong { color: #b41927; }
.inventory-card-demand .complete, .inventory-catalog-shortage.complete { background: #ebf7ef; color: #16713c; }
.inventory-card-demand .surplus, .inventory-catalog-shortage.surplus { background: #eaf3ff; color: #155ca8; }
.inventory-card-demand .complete strong { color: #16713c; }
.inventory-card-demand .unspecified, .inventory-catalog-shortage.unspecified { background: #f1f3f6; color: #768293; }
.inventory-card-demand-unit { display: block; margin-top: 4px; color: #768293; font-size: 6.5px; font-weight: 800; text-align: right; }
.inventory-profile-tags { min-height: 38px; display: flex; align-content: flex-start; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.inventory-profile-tags span { padding: 3px 5px; border-radius: 4px; background: #f0f2f5; color: #626d7b; font-size: 6.5px; font-weight: 800; }
.inventory-card footer { padding: 0 10px 10px; }
.inventory-item-actions { display: grid; gap: 5px; }
.inventory-item-actions .button { white-space: normal; }
.inventory-card footer .button { width: 100%; min-height: 32px; padding: 5px 8px; font-size: 9px; }
.inventory-catalog-table-view { min-width: 0; }
.inventory-table.inventory-catalog-table { min-width: 700px; table-layout: fixed; }
.inventory-catalog-table th:nth-child(1) { width: 4%; }
.inventory-catalog-table th:nth-child(2) { width: 14%; }
.inventory-catalog-table th:nth-child(3) { width: 38%; }
.inventory-catalog-table th:nth-child(4) { width: 14%; }
.inventory-catalog-table th:nth-child(5) { width: 30%; }
.inventory-catalog-demand-table th:nth-child(1) { width: 4%; }
.inventory-catalog-demand-table th:nth-child(2) { width: 12%; }
.inventory-catalog-demand-table th:nth-child(3) { width: 25%; }
.inventory-catalog-demand-table th:nth-child(4) { width: 12%; }
.inventory-catalog-demand-table th:nth-child(5) { width: 12%; }
.inventory-catalog-demand-table th:nth-child(6) { width: 11%; }
.inventory-catalog-demand-table th:nth-child(7) { width: 24%; }
.inventory-catalog-demand-table th { white-space: normal; text-align: center; line-height: 1.4; }
.inventory-catalog-demand-table th:nth-child(3) { text-align: left; }
.inventory-catalog-demand-table th small { display: block; margin-top: 2px; color: #8390a0; font-size: 6px; }
.inventory-catalog-demand-table td:nth-child(4), .inventory-catalog-demand-table td:nth-child(5), .inventory-catalog-demand-table td:nth-child(6) { text-align: center; }
.inventory-catalog-demand-table .inventory-table-image { width: min(96px, 100%); }
.inventory-catalog-required { background: #f5f7fa; }
.inventory-catalog-required strong { color: #172233; font-size: 16px; }
.inventory-catalog-shortage { display: inline-grid; place-items: center; min-width: 58px; max-width: 100%; min-height: 40px; padding: 3px 7px; border-radius: 6px; overflow-wrap: anywhere; }
.inventory-catalog-shortage small { font-size: 6.5px; font-weight: 900; letter-spacing: .04em; }
.inventory-catalog-shortage strong { font-size: 15px; font-weight: 850; }
.inventory-catalog-table tbody tr.selected { background: #fff4f5; box-shadow: inset 3px 0 0 var(--teal); }
.inventory-table-check { width: 22px; height: 22px; display: block; cursor: pointer; }
.inventory-table-check input { position: absolute; opacity: 0; }
.inventory-table-check span { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid #aeb8c6; border-radius: 5px; background: #fff; }
.inventory-table-check input:checked + span { border-color: var(--teal); background: var(--teal); }
.inventory-table-check input:checked + span::after { content: "✓"; color: #fff; font-size: 13px; font-weight: 900; }
.inventory-table-image-cell { position: relative; }
.inventory-table-image { width: 96px; height: 66px; position: relative; display: block; overflow: hidden; padding: 4px; border: 1px solid #d2d9e2; border-radius: 7px; background: #f5f7f9; cursor: pointer; }
.inventory-table-image img { position: absolute; inset: 0; width: 100%; height: 100%; min-width: 0; min-height: 0; box-sizing: border-box; padding: 4px; display: block; object-fit: contain; }
.inventory-table-image > span { position: absolute; inset: auto 4px 4px; padding: 3px; border-radius: 4px; background: rgb(11 18 27 / 82%); color: #fff; font-size: 6px; font-weight: 900; text-align: center; opacity: 0; transition: opacity .15s; }
.inventory-table-image:hover > span { opacity: 1; }
.inventory-image-remove.table-image-remove { top: 4px; right: auto; left: 92px; width: 20px; height: 20px; font-size: 13px; }
.inventory-catalog-table td:nth-child(3) > strong { margin-bottom: 5px; color: #172130; font-size: 10px; }
.inventory-profile-tags.table-tags { min-height: 0; margin: 0; }
.inventory-profile-tags.table-tags span { font-size: 6.5px; }
.inventory-table-stock { color: #141c28; font-size: 16px !important; }
.inventory-table-wrap { width: 100%; overflow-x: auto; border: 1px solid #d9dee6; border-radius: 8px; }
.inventory-table { width: 100%; min-width: 1080px; border-collapse: collapse; background: #fff; font-size: 9px; }
.inventory-table.compact { min-width: 680px; }
.inventory-table th { padding: 8px 9px; background: #f2f4f7; color: #667182; font-size: 7.5px; letter-spacing: .05em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.inventory-table td { padding: 8px 9px; border-top: 1px solid #e3e7ec; color: #273140; vertical-align: middle; }
.inventory-table td > strong, .inventory-table td > small { display: block; }
.inventory-table td > small { max-width: 190px; margin-top: 2px; overflow: hidden; color: #7b8492; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.inventory-plan-heading { align-items: center; }
.inventory-plan-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.inventory-plan-actions .button { min-width: 142px; }
.inventory-plan-tabs { display: inline-flex; gap: 4px; margin-top: 12px; padding: 4px; border: 1px solid #ccd3dc; border-radius: 9px; background: #f1f3f6; }
.inventory-plan-tabs button { min-width: 108px; min-height: 34px; border: 0; border-radius: 6px; background: transparent; color: #5e6978; padding: 6px 12px; font-size: 8.5px; font-weight: 900; cursor: pointer; transition: color .16s, background .16s, box-shadow .16s, transform .16s; }
.inventory-plan-tabs button:hover { color: #1e2937; transform: translateY(-1px); }
.inventory-plan-tabs button.active { background: #fff; color: var(--teal); box-shadow: 0 2px 8px rgb(18 28 42 / 10%), inset 0 -2px 0 var(--teal); }
.inventory-plan-tab-filters { display: grid; grid-template-columns: minmax(190px, 1fr) minmax(160px, .65fr) minmax(190px, .8fr) 105px; gap: 8px; align-items: end; margin: 9px 0 12px; padding: 10px; border: 1px solid #d1d7df; border-radius: 9px; background: #fafbfc; }
.inventory-plan-tab-filters.inventory-plan-search-only { max-width: 560px; grid-template-columns: minmax(260px, 1fr); margin-top: 12px; }
.inventory-plan-tab-filters label { display: grid; gap: 4px; min-width: 0; }
.inventory-plan-tab-filters label > span { color: #667181; font-size: 8.5px; font-weight: 900; letter-spacing: .055em; text-transform: uppercase; }
.inventory-plan-tab-filters input, .inventory-plan-tab-filters select { width: 100%; min-height: 38px; border: 1px solid #c6cfda; border-radius: 7px; background: #fff; padding: 7px 10px; color: #1d2735; font-size: 10px; outline: none; }
.inventory-plan-tab-filters input:focus, .inventory-plan-tab-filters select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgb(189 21 34 / 9%); }
.inventory-section-search { max-width: 620px; margin: 0 0 12px; padding: 10px; border: 1px solid #c8d0da; border-radius: 9px; background: linear-gradient(135deg, #f8f9fb 0%, #fff 100%); }
.inventory-section-search label { position: relative; display: grid; gap: 5px; min-width: 0; }
.inventory-section-search label > span { color: #bd1522; font-size: 8px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.inventory-section-search input { width: 100%; min-height: 40px; border: 1px solid #abb6c4; border-radius: 8px; background: #fff; padding: 8px 12px 8px 38px; color: #172130; font-size: 10px; outline: none; box-shadow: inset 0 1px 2px rgb(17 25 39 / 4%); transition: border-color .16s, box-shadow .16s; }
.inventory-section-search label::before { content: ""; position: absolute; bottom: 15px; left: 13px; width: 11px; height: 11px; border: 1.7px solid #596779; border-radius: 50%; pointer-events: none; }
.inventory-section-search label::after { content: ""; position: absolute; bottom: 11px; left: 24px; width: 6px; height: 1.7px; background: #596779; transform: rotate(45deg); transform-origin: left center; pointer-events: none; }
.inventory-section-search input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgb(189 21 34 / 9%); }
.inventory-drag-symbol { width: 28px; height: 28px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid #9bc6a7; border-radius: 7px; background: #fff; color: #167337; font-size: 16px; font-weight: 900; letter-spacing: -3px; }
.inventory-plan-groups { display: grid; gap: 14px; }
.inventory-plan-type { overflow: hidden; border: 1px solid #bec7d3; border-radius: 10px; background: #f7f8fa; }
.inventory-plan-type > summary { min-height: 56px; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto 22px; align-items: center; gap: 11px; padding: 10px 14px; border-bottom: 1px solid #cbd2dc; background: #111a27; color: #fff; cursor: pointer; list-style: none; }
.inventory-plan-type > summary::-webkit-details-marker { display: none; }
.inventory-plan-type.consumable > summary { background: #263343; }
.inventory-plan-type > summary > span { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid rgb(255 255 255 / 28%); border-radius: 8px; color: #ff5964; font-size: 10px; font-weight: 900; }
.inventory-plan-type > summary p { margin: 0 0 2px; color: #aeb9c8; font-size: 7px; font-weight: 900; letter-spacing: .1em; }
.inventory-plan-type > summary h3 { margin: 0; color: #fff; font-size: 15px; }
.inventory-plan-type > summary > b { padding: 5px 8px; border-radius: 999px; background: rgb(255 255 255 / 10%); color: #fff; font-size: 7px; }
.inventory-plan-type > summary > i { width: 22px; height: 22px; position: relative; display: block; border: 1px solid rgb(255 255 255 / 28%); border-radius: 50%; }
.inventory-plan-type > summary > i::before, .inventory-plan-type > summary > i::after { content: ""; position: absolute; top: 50%; left: 50%; width: 8px; height: 1.5px; border-radius: 2px; background: #fff; transform: translate(-50%, -50%); }
.inventory-plan-type > summary > i::after { transform: translate(-50%, -50%) rotate(90deg); transition: opacity .15s; }
.inventory-plan-type[open] > summary > i::after { opacity: 0; }
.inventory-plan-type:not([open]) > summary { border-bottom-color: transparent; }
.inventory-plan-project { margin: 10px; overflow: hidden; border: 1px solid #cbd2dc; border-radius: 9px; background: #fff; }
.inventory-plan-project > summary { list-style: none; cursor: pointer; }
.inventory-plan-project > summary::-webkit-details-marker { display: none; }
.inventory-plan-project-heading { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border-bottom: 1px solid #d8dee6; background: #f2f4f7; }
.inventory-plan-project-heading div > * { display: block; }
.inventory-plan-project-heading span { color: #7b8593; font-size: 7px; font-weight: 900; letter-spacing: .08em; }
.inventory-plan-project-heading strong { margin-top: 2px; color: #111c2b; font-size: 12px; }
.inventory-plan-project-heading small { margin-top: 2px; color: #697485; font-size: 8px; font-weight: 700; }
.inventory-plan-project-heading > b { padding: 5px 8px; border-radius: 6px; background: #fff; color: var(--teal); font-size: 8px; box-shadow: inset 0 0 0 1px #d5dbe4; }
.inventory-plan-project-heading > i, .inventory-plan-focus > summary i { width: 22px; height: 22px; position: relative; flex: 0 0 auto; display: block; border: 1px solid #c5ced9; border-radius: 50%; background: #fff; }
.inventory-plan-project-heading > i::before, .inventory-plan-project-heading > i::after, .inventory-plan-focus > summary i::before, .inventory-plan-focus > summary i::after { content: ""; position: absolute; top: 50%; left: 50%; width: 8px; height: 1.5px; border-radius: 2px; background: #526071; transform: translate(-50%, -50%); }
.inventory-plan-project-heading > i::after, .inventory-plan-focus > summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: opacity .15s; }
.inventory-plan-project[open] > .inventory-plan-project-heading > i::after, .inventory-plan-focus[open] > summary i::after { opacity: 0; }
.inventory-plan-project:not([open]) > .inventory-plan-project-heading { border-bottom-color: transparent; }
.inventory-plan-project-content > .inventory-plan-type { margin: 8px; }
.inventory-plan-project-content > .inventory-plan-type > summary { min-height: 45px; }
.inventory-plan-categories { display: grid; gap: 7px; padding: 8px; }
.inventory-plan-category { overflow: hidden; border: 1px solid #d2d8e1; border-radius: 8px; background: #fff; }
.inventory-plan-category > summary { min-height: 50px; display: grid; grid-template-columns: minmax(220px, 1fr) 110px 108px 22px; gap: 10px; align-items: center; padding: 7px 10px; background: #fafbfc; cursor: pointer; list-style: none; }
.inventory-plan-category > summary::-webkit-details-marker { display: none; }
.inventory-plan-category > summary > div { min-width: 0; }
.inventory-plan-category > summary strong, .inventory-plan-category > summary small { display: block; }
.inventory-plan-category > summary strong { color: #182332; font-size: 11.5px; }
.inventory-plan-category > summary small { margin-top: 2px; overflow: hidden; color: #788291; font-size: 8.5px; text-overflow: ellipsis; white-space: nowrap; }
.inventory-plan-category > summary label { display: grid; grid-template-columns: auto 58px; align-items: center; gap: 7px; color: #596575; font-size: 8.5px; font-weight: 900; }
.inventory-plan-category > summary input { width: 54px; height: 32px; border: 1px solid #bdc7d4; border-radius: 6px; background: #fff; padding: 5px; color: #172130; font-weight: 900; text-align: center; }
.inventory-category-state { justify-self: end; padding: 5px 8px; border-radius: 999px; background: #eaf6ed; color: #177438; font-size: 8px; font-weight: 900; white-space: nowrap; }
.inventory-category-state.pending { background: #fff1dc; color: #9a5c00; }
.inventory-plan-category > summary i { width: 20px; height: 20px; position: relative; display: block; border: 1px solid #c8d0db; border-radius: 50%; background: #fff; }
.inventory-plan-category > summary i::before, .inventory-plan-category > summary i::after { content: ""; position: absolute; top: 50%; left: 50%; width: 8px; height: 1.5px; border-radius: 2px; background: #526071; transform: translate(-50%, -50%); }
.inventory-plan-category > summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: opacity .15s; }
.inventory-plan-category[open] > summary i::after { opacity: 0; }
.inventory-plan-category[open] > summary { border-bottom: 1px solid #d5dbe4; background: #f4f7fa; }
.inventory-category-editor.standalone { display: grid; grid-template-columns: minmax(220px, 1fr) 110px 108px; gap: 10px; align-items: center; margin: 8px; padding: 8px 10px; border: 1px solid #d2d8e1; border-left: 3px solid var(--teal); border-radius: 7px; background: #fafbfc; }
.inventory-category-editor.standalone > div > *, .inventory-category-editor.standalone label > * { display: block; }
.inventory-category-editor.standalone strong { color: #182332; font-size: 10px; }
.inventory-category-editor.standalone small { margin-top: 2px; color: #788291; font-size: 7px; }
.inventory-category-editor.standalone label { display: grid; grid-template-columns: auto 54px; gap: 6px; align-items: center; color: #6b7584; font-size: 7px; font-weight: 900; }
.inventory-category-editor.standalone input { width: 54px; height: 32px; border: 1px solid #bdc7d4; border-radius: 6px; padding: 5px; font-weight: 900; text-align: center; }
.inventory-plan-focus { overflow: hidden; border: 1px solid #bdc6d2; border-radius: 10px; background: #f5f7f9; }
.inventory-plan-focus > summary { min-height: 54px; display: grid; grid-template-columns: minmax(0, 1fr) auto 24px; gap: 11px; align-items: center; padding: 10px 13px; background: #121c29; color: #fff; cursor: pointer; list-style: none; }
.inventory-plan-focus > summary::-webkit-details-marker { display: none; }
.inventory-plan-focus > summary div > * { display: block; }
.inventory-plan-focus > summary span { color: #aab5c4; font-size: 7px; font-weight: 900; letter-spacing: .08em; }
.inventory-plan-focus > summary strong { margin-top: 2px; font-size: 13px; }
.inventory-plan-focus > summary b { padding: 5px 8px; border-radius: 999px; background: rgb(255 255 255 / 10%); color: #fff; font-size: 7px; }
.inventory-plan-focus-content { padding: 2px 0; }
.inventory-week-table { min-width: 900px; table-layout: fixed; }
.inventory-week-table th:nth-child(1) { width: 28%; }
.inventory-week-table th:nth-child(2) { width: 14%; }
.inventory-week-table th:nth-child(3) { width: 14%; }
.inventory-week-table th:nth-child(4) { width: 13%; }
.inventory-week-table th:nth-child(5) { width: 31%; }
.inventory-week-table.flat { min-width: 850px; }
.inventory-week-table.flat th:nth-child(1) { width: 20%; }
.inventory-week-table.flat th:nth-child(2) { width: 18%; }
.inventory-week-table.flat th:nth-child(3) { width: 10%; }
.inventory-week-table.flat th:nth-child(4) { width: 8%; }
.inventory-week-table.flat th:nth-child(5) { width: 10%; }
.inventory-week-table.flat th:nth-child(6) { width: 10%; }
.inventory-week-table.flat th:nth-child(7) { width: 24%; }
.inventory-week-table.consolidated { min-width: 930px; table-layout: fixed; }
.inventory-week-table.consolidated th:nth-child(1) { width: 20%; }
.inventory-week-table.consolidated th:nth-child(2) { width: 18%; }
.inventory-week-table.consolidated th:nth-child(3) { width: 10%; }
.inventory-week-table.consolidated th:nth-child(4) { width: 9%; }
.inventory-week-table.consolidated th:nth-child(5) { width: 10%; }
.inventory-week-table.consolidated th:nth-child(6) { width: 11%; }
.inventory-week-table.consolidated th:nth-child(7) { width: 22%; }
.inventory-week-table.consolidated th { line-height: 1.25; white-space: normal; }
.inventory-category-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.inventory-consolidated-total { color: var(--teal); font-size: 14px !important; }
.inventory-consolidated-note { max-width: none !important; overflow: visible !important; line-height: 1.35; text-overflow: clip !important; white-space: normal !important; }
.inventory-matrix-wrap { border-color: #aeb9c7; border-radius: 0; box-shadow: 0 5px 16px rgb(18 28 42 / 5%); }
.inventory-week-table.inventory-matrix-table { min-width: 980px; table-layout: fixed; font-size: 10px; }
.inventory-matrix-table th { padding: 9px 6px; border-right: 1px solid #cfd6df; background: #e9edf2; color: #445164; font-size: 8.5px; line-height: 1.25; text-align: center; white-space: normal; }
.inventory-matrix-table th:first-child { width: 245px; position: sticky; z-index: 3; left: 0; padding-left: 12px; text-align: left; }
.inventory-matrix-table th:nth-child(n+2):nth-child(-n+7) { width: 78px; }
.inventory-matrix-table th:nth-child(8) { width: 96px; }
.inventory-matrix-table th:last-child { width: 132px; border-left: 1px solid #b9c3cf; background: #e3e9ee; }
.inventory-matrix-table td { height: 52px; padding: 5px 7px; border-right: 1px solid #dce2e9; text-align: center; }
.inventory-matrix-table tbody tr { transition: background .14s, box-shadow .14s; }
.inventory-matrix-table tbody tr:hover td { background: #f7f9fb; }
.inventory-matrix-table tbody tr:hover td:first-child { background: #f7f9fb; box-shadow: inset 3px 0 0 var(--teal), 5px 0 9px rgb(18 28 42 / 5%); }
.inventory-matrix-table td:first-child { position: sticky; z-index: 2; left: 0; background: #fff; text-align: left; box-shadow: 5px 0 9px rgb(18 28 42 / 4%); }
.inventory-matrix-table tr:nth-child(even) td:first-child { background: #fbfcfd; }
.inventory-matrix-article { padding-left: 40px !important; }
.inventory-matrix-article > div > strong { display: block; color: #152031; font-size: 11px; line-height: 1.25; }
.inventory-matrix-article > div > small { max-width: 205px; display: block; margin-top: 2px; overflow: hidden; color: #687587; font-size: 8px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.inventory-drag-handle { width: 23px; height: 34px; position: absolute; top: 50%; left: 6px; display: grid; place-items: center; padding: 0; border: 1px solid #b8c3d0; border-radius: 6px; background: #fff; color: #697687; cursor: grab; touch-action: none; transition: border-color .15s, color .15s, background .15s, transform .15s; transform: translateY(-50%); }
.inventory-drag-handle span { margin-left: -2px; font-size: 15px; font-weight: 900; letter-spacing: -4px; line-height: 1; }
.inventory-drag-handle:hover, .inventory-drag-handle:focus-visible { border-color: var(--teal); background: #fff3f4; color: var(--teal); outline: none; }
.inventory-drag-handle:active { cursor: grabbing; transform: translateY(-50%) scale(.96); }
.inventory-matrix-table tr.inventory-row-dragging { opacity: .62; box-shadow: inset 4px 0 0 var(--teal); }
.inventory-matrix-table tr.inventory-drop-target td { border-top: 2px solid var(--teal); }
.inventory-order-saving { pointer-events: none; opacity: .72; }
.inventory-matrix-note { color: #8c5b10 !important; }
.inventory-matrix-quantity strong { color: #253244; font-size: 11.5px !important; }
.inventory-matrix-quantity.not-applicable { background: #f7f8fa; color: #a5adba; }
.inventory-matrix-calculated { background: #f2f7f4; }
.inventory-matrix-calculated strong { color: #17783b; font-size: 14px !important; }
.inventory-matrix-manual { border-left: 1px solid #c9d1dc; background: #fff; }
.inventory-matrix-table tr:nth-child(even) .inventory-matrix-manual { background: #fbfcfd; }
.inventory-matrix-manual input { width: 100%; min-height: 34px; border: 1px solid #aab6c4; border-radius: 7px; background: #fff; color: #152130; font-size: 13px; font-weight: 900; text-align: center; outline: none; }
.inventory-matrix-manual input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgb(189 21 34 / 10%); }
.inventory-matrix-manual small { max-width: 130px !important; margin: 3px auto 0 !important; color: #697587 !important; font-size: 7.5px !important; line-height: 1.15; }
.inventory-matrix-manual.changed { background: #fff8e8 !important; }
.inventory-matrix-manual.changed input { border-color: #d99524; }
.inventory-matrix-manual.changed small { color: #9c6208 !important; }
.inventory-consolidated-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 14px; }
.inventory-consolidated-split > .inventory-plan-type { min-width: 0; margin: 0; }
.inventory-consolidated-split > .inventory-plan-type.tool { grid-column: 1 / -1; }
.inventory-consolidated-split .inventory-plan-type-content { padding: 0; }
.inventory-consolidated-split .inventory-matrix-wrap { overflow-x: auto; }
.inventory-week-table.inventory-final-list { min-width: 430px; }
.inventory-table.inventory-week-table.inventory-final-list th { width: auto; position: static; padding-inline: 4px; text-align: center; }
.inventory-week-table.inventory-final-list th:nth-child(3) { text-align: left; }
.inventory-order-col { width: 30px; }
.inventory-image-col { width: 66px; }
.inventory-unit-col { width: 104px; }
.inventory-total-col { width: 104px; }
.inventory-final-list td { height: 64px; padding-block: 5px; }
.inventory-final-list td:first-child { position: static; background: #fff; box-shadow: none; text-align: center; }
.inventory-final-list tr:nth-child(even) td:first-child { background: #fbfcfd; }
.inventory-final-list tbody tr:hover td:first-child { background: #f7f9fb; box-shadow: none; }
.inventory-final-list .inventory-matrix-article { position: relative; padding-left: 8px !important; background: inherit; box-shadow: none; text-align: left; overflow-wrap: anywhere; }
.inventory-final-list .inventory-order-cell { padding: 3px; }
.inventory-order-cell .inventory-drag-handle { position: static; width: 22px; height: 32px; margin: auto; transform: none; }
.inventory-order-cell .inventory-drag-handle:active { transform: scale(.96); }
.inventory-item-link { color: #152031; text-decoration: none; font-weight: 850; text-underline-offset: 3px; }
.inventory-item-link:hover, .inventory-item-link:focus-visible { color: var(--teal); text-decoration: underline; }
.inventory-final-list .inventory-matrix-article > div > strong { font-size: 11.5px; line-height: 1.2; }
.inventory-final-image { padding-inline: 3px !important; }
.inventory-final-image button { position: relative; width: 100%; height: 54px; display: block; overflow: hidden; box-sizing: border-box; margin: auto; padding: 0; border: 1px solid #c5ced9; border-radius: 7px; background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.inventory-final-image button:hover, .inventory-final-image button:focus-visible { border-color: var(--teal); box-shadow: 0 0 0 3px rgb(189 21 34 / 9%); outline: none; transform: translateY(-1px); }
.inventory-final-image img { position: absolute; inset: 0; width: 100%; height: 100%; min-width: 0; min-height: 0; box-sizing: border-box; padding: 4px; display: block; object-fit: contain; object-position: center; }
.inventory-matrix-unit { background: #f8fafb; }
.inventory-matrix-unit select { width: 100%; min-height: 38px; border: 1px solid #aeb9c7; border-radius: 7px; background: #fff; padding: 6px 22px 6px 6px; color: #182332; font-size: 10px; font-weight: 900; text-align: center; outline: none; cursor: pointer; }
.inventory-matrix-unit select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgb(189 21 34 / 9%); }
.inventory-unit-select .modern-select-trigger > span { padding-inline: 8px; text-align: center; }
.inventory-unit-select .modern-select-trigger { grid-template-columns: minmax(0, 1fr) 24px; font-size: 10px; }
.inventory-unit-select-menu .modern-select-option > span { text-align: center; }
.inventory-matrix-unit small { display: block; margin-top: 4px; color: #6c7888; font-size: 7.5px; font-weight: 900; }
.inventory-matrix-unit.changed { background: #fff8e8; }
.inventory-matrix-unit.changed select { border-color: #d99524; }
.inventory-matrix-unit.changed small { color: #9c6208; }
.inventory-final-list .inventory-matrix-manual { padding-inline: 12px; }
.inventory-final-list .inventory-matrix-manual input { min-height: 38px; font-size: 14px; }
.inventory-final-list .inventory-matrix-manual { padding-inline: 6px; }
.inventory-final-empty td { height: 96px !important; padding: 18px !important; background: #fafbfc !important; color: #778293; text-align: center !important; }
.inventory-final-empty strong, .inventory-final-empty span { display: block; }
.inventory-final-empty strong { color: #465365; font-size: 10px; }
.inventory-final-empty span { margin-top: 4px; font-size: 8px; }
.inventory-tool-contract-layout { display: grid; gap: 12px; padding: 11px; background: #eef1f5; }
.inventory-tool-project, .inventory-tool-area, .inventory-tool-category-group { min-width: 0; overflow: hidden; border: 1px solid #b9c3cf; border-radius: 10px; background: #fff; }
.inventory-tool-project { box-shadow: 0 3px 12px rgb(17 25 39 / 5%); }
.inventory-tool-project > summary, .inventory-tool-area > summary, .inventory-tool-category-group > summary { list-style: none; cursor: pointer; user-select: none; }
.inventory-tool-project > summary::-webkit-details-marker, .inventory-tool-area > summary::-webkit-details-marker, .inventory-tool-category-group > summary::-webkit-details-marker { display: none; }
.inventory-tool-project-header { min-height: 58px; display: grid; grid-template-columns: minmax(0, 1fr) auto 24px; align-items: center; gap: 14px; padding: 10px 13px; background: #151f2d; color: #fff; }
.inventory-tool-project-header div > * { display: block; }
.inventory-tool-project-header span { color: #ff6771; font-size: 7px; font-weight: 900; letter-spacing: .08em; }
.inventory-tool-project-header strong { margin-top: 2px; font-size: 13px; }
.inventory-tool-project-header small { margin-top: 2px; max-width: 760px; overflow: hidden; color: #b8c2cf; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.inventory-tool-project-header > b { padding: 5px 8px; border: 1px solid rgb(255 255 255 / 22%); border-radius: 999px; color: #fff; font-size: 7px; white-space: nowrap; }
.inventory-tool-project-header > i, .inventory-tool-area > summary > i, .inventory-tool-category-group > summary > i { width: 9px; height: 9px; justify-self: center; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .18s ease; }
.inventory-tool-project[open] > .inventory-tool-project-header > i, .inventory-tool-area[open] > summary > i, .inventory-tool-category-group[open] > summary > i { transform: rotate(225deg); }
.inventory-tool-project-body { display: grid; gap: 9px; padding: 9px; }
.inventory-tool-area > summary, .inventory-tool-category-group > summary { min-height: 46px; display: grid; grid-template-columns: minmax(0, 1fr) auto 22px; align-items: center; gap: 10px; padding: 8px 11px; border-bottom: 1px solid transparent; }
.inventory-tool-area[open] > summary, .inventory-tool-category-group[open] > summary { border-bottom-color: #d5dbe3; }
.inventory-tool-area > summary div > *, .inventory-tool-category-group > summary div > * { display: block; }
.inventory-tool-area > summary span, .inventory-tool-category-group > summary span { color: #bd1522; font-size: 7px; font-weight: 900; letter-spacing: .08em; }
.inventory-tool-area > summary strong, .inventory-tool-category-group > summary strong { margin-top: 2px; color: #172233; font-size: 10px; }
.inventory-tool-area > summary b, .inventory-tool-category-group > summary b { color: #687486; font-size: 7px; white-space: nowrap; }
.inventory-tool-area { border-color: #cbd3dd; border-radius: 8px; background: #f7f9fb; }
.inventory-tool-area > summary { background: #f0f3f6; }
.inventory-tool-area-body { display: grid; gap: 7px; padding: 7px; }
.inventory-tool-category-group { border-color: #d4dae3; border-radius: 7px; }
.inventory-tool-category-group > summary { min-height: 40px; border-left: 3px solid #d71b28; background: #fafbfc; }
.inventory-tool-category-group > summary b { min-width: 70px; padding: 4px 7px; border-radius: 999px; background: #feecef; color: #ae1823; text-align: center; }
.inventory-tool-list { display: grid; }
.inventory-tool-list-item { min-height: 68px; display: grid; grid-template-columns: 54px minmax(200px, 1fr) 104px 74px 78px 82px; gap: 8px; align-items: center; padding: 7px 9px; border-top: 1px solid #e2e6ec; background: #fff; }
.inventory-tool-list-item:first-child { border-top: 0; }
.inventory-tool-list-item.changed { background: #fffaf0; }
.inventory-tool-list-image { width: 52px; height: 54px; position: relative; overflow: hidden; padding: 2px; border: 1px solid #c9d1dc; border-radius: 6px; background: #f7f9fb; cursor: pointer; }
.inventory-tool-list-image img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 3px; box-sizing: border-box; object-fit: contain; }
.inventory-tool-list-name { min-width: 0; }
.inventory-tool-list-name > strong { display: block; font-size: 10px; line-height: 1.25; overflow-wrap: anywhere; }
.inventory-tool-list-name > small { display: block; margin-top: 3px; color: #7a5a20; font-size: 7px; line-height: 1.25; }
.inventory-tool-list-name > .inventory-tool-context { color: #657286; font-weight: 850; }
.inventory-tool-list-item label, .inventory-tool-list-number, .inventory-tool-list-item .inventory-tool-missing { min-width: 0; display: grid; gap: 3px; align-content: center; text-align: center; }
.inventory-tool-list-item label > span, .inventory-tool-list-number > span, .inventory-tool-list-item .inventory-tool-missing > span { color: #768293; font-size: 6.5px; font-weight: 900; }
.inventory-tool-list-item select, .inventory-tool-list-item input { width: 100%; height: 34px; border: 1px solid #b8c2cf; border-radius: 6px; background: #fff; padding: 3px; color: #172233; font-size: 9px; font-weight: 900; text-align: center; outline: none; }
.inventory-tool-list-item select:focus, .inventory-tool-list-item input:focus { border-color: var(--teal); box-shadow: 0 0 0 2px rgb(189 21 34 / 9%); }
.inventory-tool-list-item .inventory-tool-reserve input { border-color: #d4a34e; background: #fffaf0; color: #8a5500; }
.inventory-tool-list-item .inventory-tool-reserve.changed input { border-color: #bd1522; background: #fff0f2; }
.inventory-tool-list-number strong, .inventory-tool-list-item .inventory-tool-missing strong { font-size: 12px; }
.inventory-tool-list-item .inventory-tool-missing { min-height: 44px; border-radius: 6px; }
.inventory-tool-stock.changed { background: #fff8e8; }
.inventory-tool-stock.changed input { border-color: #d99524; }
.inventory-tool-missing.pending { background: #fff2f2; color: #ae1823; }
.inventory-tool-missing.complete { background: #edf8f0; color: #14723a; }
.inventory-tool-missing.surplus { background: #eaf3ff; color: #155ca8; }
.inventory-tool-summary-container { padding: 11px 11px 0; background: #eef1f5; }
.inventory-tool-summary > summary { border-left: 4px solid #e30613; }
.inventory-tool-summary-body { display: grid; gap: 10px; padding: 11px; background: #fff; }
.inventory-tool-summary-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.inventory-tool-summary-toolbar p { flex: 1 1 300px; max-width: 660px; margin: 0; color: #627083; font-size: 8px; line-height: 1.5; }
.inventory-tool-summary-toolbar .button { flex: 0 0 auto; min-height: 34px; }
.inventory-tool-summary-toolbar .button.active { background: #fff0f2; border-color: #e30613; color: #bd1522; }
.inventory-tool-summary-table-wrap { min-width: 0; overflow: auto; border: 1px solid #b9c3cf; border-radius: 8px; }
.inventory-table.inventory-tool-summary-table { width: 100%; min-width: 1080px; table-layout: fixed; font-size: 9px; }
.inventory-tool-summary-table .tool-summary-name-col { width: 23%; }
.inventory-tool-summary-table .tool-summary-unit-col { width: 6%; }
.inventory-tool-summary-table .tool-summary-metric-col { width: 7%; }
.inventory-tool-summary-table th, .inventory-tool-summary-table td { padding: 8px 5px; border-right: 1px solid #d6dce5; text-align: center; overflow-wrap: anywhere; }
.inventory-tool-summary-table th { white-space: normal; line-height: 1.3; font-size: 7px; letter-spacing: .015em; }
.inventory-tool-summary-table th:last-child, .inventory-tool-summary-table td:last-child { border-right: 0; }
.inventory-tool-summary-table thead tr:last-child th { border-top: 1px solid #c6cfda; background: #f6f8fb; }
.inventory-tool-summary-table th.tool-summary-project-title { background: #e6ecf3; color: #172233; }
.tool-summary-project-title > strong { display: block; font-size: 9px; }
.tool-summary-project-title > span { display: block; margin-top: 4px; color: #596779; font-size: 7px; }
.inventory-tool-summary-table .tool-summary-subtotal { background: #eef2f7; color: #172233; font-weight: 850; }
.inventory-tool-summary-table .tool-summary-total { background: #fceff1; color: #a41b27; font-weight: 900; }
.inventory-tool-summary-table .tool-summary-total strong { font-size: 12px; }
.inventory-tool-summary-table th.tool-summary-shortage { color: #a41b27; }
.inventory-tool-summary-table th.tool-summary-shortage,
.inventory-tool-summary-table td:last-child { white-space: nowrap; overflow-wrap: normal; word-break: keep-all; }
.tool-summary-item { display: flex; align-items: center; gap: 8px; text-align: left; }
.tool-summary-item > div { min-width: 0; }
.tool-summary-item > div > strong { font-size: 9px; line-height: 1.35; }
.tool-summary-item small { display: block; margin-top: 4px; font-size: 6.5px; line-height: 1.3; color: #6a7789; }
.tool-summary-item .inventory-tool-list-image { flex: 0 0 40px; width: 40px; height: 44px; }
.inventory-tool-summary-table .tool-summary-unit { font-size: 7px; font-weight: 800; }
.inventory-tool-summary-table .inventory-tool-stock { display: block; border-radius: 6px; }
.inventory-tool-summary-table .inventory-tool-stock input { width: 100%; min-width: 0; height: 36px; padding: 3px; text-align: center; border: 1px solid #b8c2cf; border-radius: 6px; background: #fff; color: #172233; font-size: 11px; font-weight: 850; }
.inventory-tool-summary-table .inventory-tool-stock.changed input { border-color: #d99524; background: #fff8e8; }
.inventory-tool-summary-table .inventory-tool-reserve { display: grid; place-items: center; gap: 2px; border-radius: 6px; }
.inventory-tool-summary-table .inventory-tool-reserve input { width: 100%; min-width: 0; height: 36px; padding: 3px; border: 1px solid #d4a34e; border-radius: 6px; background: #fffaf0; color: #8a5500; font-size: 11px; font-weight: 900; text-align: center; }
.inventory-tool-summary-table .inventory-tool-reserve.changed input { border-color: #bd1522; background: #fff0f2; }
.inventory-tool-summary-table .inventory-tool-reserve.inherited { min-height: 36px; border: 1px solid #dfc483; background: #fff8e8; color: #8a5500; }
.inventory-tool-summary-table .inventory-tool-reserve.inherited strong { font-size: 11px; }
.inventory-tool-summary-table .inventory-tool-reserve.inherited small { margin: 0; color: #8a6a2f; font-size: 5.5px; }
.inventory-tool-summary-table th.tool-summary-reserve { color: #8a5500; background: #fff5df; }
.inventory-tool-summary-table .inventory-tool-missing { display: grid; place-items: center; min-height: 36px; border-radius: 6px; font-size: 12px; font-weight: 900; }
.inventory-tool-summary-table .inventory-tool-difference { position: relative; display: grid; place-items: center; gap: 1px; min-height: 40px; padding: 3px; border: 1px solid transparent; border-radius: 7px; white-space: nowrap; overflow-wrap: normal; word-break: keep-all; font-size: 12px; font-weight: 900; }
.inventory-tool-summary-table .inventory-tool-difference input { width: 100%; min-width: 46px; height: 24px; padding: 2px 4px; border: 0; outline: 0; background: transparent; color: inherit; font: inherit; text-align: center; }
.inventory-tool-summary-table .inventory-tool-difference input::placeholder { color: currentColor; opacity: 1; }
.inventory-tool-summary-table .inventory-tool-difference small { font-size: 5.5px; line-height: 1; letter-spacing: .08em; color: currentColor; opacity: .72; }
.inventory-tool-summary-table .inventory-tool-difference.manual { border-style: dashed; border-color: currentColor; }
.inventory-tool-summary-table .inventory-tool-difference.changed { box-shadow: 0 0 0 2px rgba(189, 21, 34, .18); }
.inventory-tool-summary-table .inventory-tool-difference.negative { background: #fff0f0; color: #b42318; }
.inventory-tool-summary-table .inventory-tool-difference.positive { background: #ecf8f0; color: #16733e; }
.inventory-tool-summary-table .inventory-tool-difference.zero { border-color: #3a9a63; background: #e5f6eb; color: #111927; }
.inventory-tool-summary-table .inventory-tool-difference.zero::before { content: ""; position: absolute; left: 5px; top: 8px; width: 8px; height: 5px; border-left: 2px solid #238a51; border-bottom: 2px solid #238a51; transform: rotate(-45deg); }
.inventory-tool-summary-table tbody tr:hover > td:not(.tool-summary-subtotal):not(.tool-summary-total) { background: #fafbfc; }
.inventory-tool-summary-category > .inventory-tool-summary-table-wrap { border: 0; border-radius: 0; }
.inventory-kit-toggle { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 0; border: 0; background: transparent; color: #172233; text-align: left; cursor: pointer; }
.inventory-kit-toggle strong { font: inherit; font-weight: 900; line-height: 1.35; }
.inventory-kit-toggle i { flex: 0 0 8px; width: 8px; height: 8px; border-right: 2px solid #bd1522; border-bottom: 2px solid #bd1522; transform: rotate(45deg); transition: transform .18s ease; }
.inventory-kit-toggle[aria-expanded="true"] i { transform: rotate(225deg); }
.inventory-kit-component-row td { background: #f7f9fc; border-top: 1px dashed #bdc7d3; }
.inventory-kit-component-row:hover td { background: #f1f5f9 !important; }
.tool-summary-item.kit-component { padding-left: 13px; }
.tool-summary-item.kit-component .inventory-kit-component-image { flex: 0 0 36px; width: 36px; height: 38px; border-radius: 7px; background: #fff; }
.tool-summary-item.kit-component .inventory-kit-component-image img { padding: 2px; }
.inventory-kit-index { display: grid; place-items: center; flex: 0 0 26px; min-height: 26px; border-radius: 7px; background: #e8edf4; color: #657386; font-size: 7px; font-weight: 900; }
.inventory-tool-reference-row > td { padding: 0 !important; background: #f7f9fc; }
.inventory-tool-reference-panel { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(520px, 2.2fr); gap: 14px; align-items: center; padding: 12px 14px; border-top: 1px dashed #b9c3cf; text-align: left; }
.inventory-tool-reference-copy { display: grid; gap: 5px; align-content: center; }
.inventory-tool-reference-copy strong { color: #bd1522; font-size: 8px; letter-spacing: .09em; }
.inventory-tool-reference-copy span { max-width: 380px; color: #5e6b7d; font-size: 7px; font-weight: 700; line-height: 1.45; }
.inventory-tool-reference-grid { display: grid; grid-template-columns: repeat(8, minmax(58px, 1fr)); gap: 7px; }
.inventory-tool-reference-grid figure { display: grid; grid-template-rows: 54px auto; gap: 4px; align-items: center; min-width: 0; margin: 0; padding: 5px; border: 1px solid #d8dee7; border-radius: 7px; background: #fff; }
.inventory-tool-reference-grid img { width: 100%; height: 54px; object-fit: contain; }
.inventory-tool-reference-grid figcaption { color: #263244; font-size: 6px; font-weight: 800; line-height: 1.25; text-align: center; }
@media (max-width: 1180px) {
  .inventory-tool-reference-panel { grid-template-columns: 1fr; }
  .inventory-tool-reference-grid { grid-template-columns: repeat(4, minmax(70px, 1fr)); }
}
.inventory-kit-complete-stock { display: grid; place-items: center; gap: 1px; min-height: 36px; padding: 4px; border: 1px solid #b9c5d2; border-radius: 7px; background: #f7f9fc; }
.inventory-kit-complete-stock strong { color: #172233; font-size: 12px; }
.inventory-kit-complete-stock span, .inventory-kit-complete-stock small, .inventory-kit-complete { display: block; color: #667487; font-size: 6px; font-weight: 850; line-height: 1.25; }
.inventory-kit-complete { margin-top: 3px; text-align: center; }
.inventory-catalog-groups { display: grid; gap: 12px; }
.inventory-catalog-type { margin: 0; }
.inventory-catalog-type > .inventory-plan-type-content { padding: 10px; background: #f5f7f9; }
.inventory-catalog-type.tool > .inventory-plan-type-content { padding: 0; }
.inventory-catalog-type .inventory-card-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.inventory-catalog-type .inventory-catalog-table { min-width: 700px; }
.inventory-tool-additional { margin: 10px; overflow: hidden; border: 1px solid #cbd3dd; border-radius: 9px; background: #fff; }
.inventory-tool-additional > header { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 11px; border-bottom: 1px solid #d8dee6; background: #eef2f6; }
.inventory-tool-additional > header span { color: #172233; font-size: 9px; font-weight: 900; }
.inventory-tool-additional > header b { padding: 3px 7px; border-radius: 999px; background: #feecef; color: #af1823; font-size: 7px; }
.inventory-tool-additional .inventory-card-grid, .inventory-tool-additional .inventory-table-wrap { margin: 8px; }
@media (max-width: 900px) {
  .inventory-tool-list-item { grid-template-columns: 50px minmax(0, 1fr) repeat(4, minmax(64px, 78px)); gap: 6px; }
  .inventory-tool-list-image { width: 48px; height: 52px; }
}
@media (max-width: 720px) {
  .inventory-tool-contract-layout { padding: 7px; }
  .inventory-tool-project-header { grid-template-columns: minmax(0, 1fr) 22px; }
  .inventory-tool-project-header > b { display: none; }
  .inventory-tool-list-item { grid-template-columns: 48px repeat(4, minmax(0, 1fr)); grid-template-rows: auto auto; }
  .inventory-tool-list-image { grid-row: 1 / span 2; }
  .inventory-tool-list-name { grid-column: 2 / -1; }
}
@media (max-width: 520px) {
  .inventory-tool-area > summary, .inventory-tool-category-group > summary { grid-template-columns: minmax(0, 1fr) 20px; }
  .inventory-tool-area > summary > b, .inventory-tool-category-group > summary > b { display: none; }
  .inventory-tool-list-item { grid-template-columns: 46px repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto auto; }
  .inventory-tool-list-image { grid-row: 1 / span 3; }
  .inventory-tool-list-name { grid-column: 2 / -1; }
}
@media (max-width: 1200px) {
  .inventory-catalog-type .inventory-card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .inventory-consolidated-split { grid-template-columns: 1fr; }
}
.inventory-week-table td { padding: 6px 8px; }
.inventory-week-table td > strong { font-size: 10px; }
.inventory-week-table .inventory-table-wrap { border: 0; border-radius: 0; }
.inventory-condition-tag { display: inline-block; margin-top: 3px; padding: 2px 6px; border-radius: 999px; background: #fff0da; color: #945600; font-size: 7.5px; font-weight: 900; }
.inventory-category-badge { display: inline-flex; max-width: 100%; padding: 4px 7px; overflow: hidden; border: 1px solid #b8d9c1; border-radius: 999px; background: #edf8f0; color: #16753a; font-size: 8px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.inventory-plan-input.people { background: #f7f9fb; color: #283545; }
.inventory-plan-input, .inventory-plan-note { width: 100%; border: 1px solid #c7d0dc; border-radius: 6px; background: #fff; color: #1f2937; outline: none; }
.inventory-plan-input { min-height: 34px; padding: 5px 7px; font-size: 10px; font-weight: 800; text-align: right; }
.inventory-plan-input.total { border-color: #e3a9ae; background: #fffafb; color: #9d1823; }
.inventory-plan-note { min-height: 38px; resize: vertical; padding: 6px 7px; font-size: 9px; line-height: 1.3; }
.inventory-plan-input:focus, .inventory-plan-note:focus, .inventory-plan-category > summary input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgb(189 21 34 / 9%); }
.inventory-result { display: inline-flex; padding: 4px 7px; border-radius: 999px; font-size: 7.5px; font-weight: 900; white-space: nowrap; }
.inventory-result.covered { background: #e9f5ed; color: #237141; }
.inventory-result.shortage { background: #fff0e2; color: #a85610; }
.inventory-plan-delete { width: 28px; height: 28px; color: var(--danger); }
.inventory-lower-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr); gap: 14px; align-items: start; }
.inventory-movement-list { max-height: 330px; display: grid; overflow-y: auto; }
.inventory-movement-list article { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 9px; align-items: center; padding: 9px 2px; border-top: 1px solid #e2e6ec; }
.inventory-movement-list article:first-child { border-top: 0; }
.inventory-movement-list article div > * { display: block; }
.inventory-movement-list article strong { color: #1d2633; font-size: 9px; }
.inventory-movement-list article span, .inventory-movement-list article small { color: #707a88; font-size: 7.5px; }
.inventory-movement-list article > b { font-size: 9px; white-space: nowrap; }
.inventory-movement-mark { width: 7px; height: 28px; border-radius: 999px; background: #68717e; }
.inventory-movement-mark.entrada { background: var(--success); }
.inventory-movement-mark.salida { background: var(--teal); }
.inventory-movement-mark.ajuste { background: var(--info); }
.inventory-empty { min-height: 110px; grid-column: 1 / -1; display: grid; place-content: center; gap: 3px; color: #788290; text-align: center; }
.inventory-empty strong, .inventory-empty span { display: block; }
.inventory-empty.inline { min-height: 70px; }
.inventory-modal { width: min(620px, calc(100vw - 28px)); }
.inventory-plan-modal { width: min(880px, calc(100vw - 28px)); }
.inventory-modal form, .inventory-plan-modal form { padding: 19px; }
.inventory-modal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-top: 12px; }
.inventory-modal-grid .wide { grid-column: 1 / -1; }
.inventory-modal-grid textarea { resize: vertical; }
.inventory-plan-preview { max-height: 360px; margin-top: 14px; overflow-y: auto; border: 1px solid #d7dde5; border-radius: 8px; }
.inventory-plan-preview-row { min-height: 58px; display: grid; grid-template-columns: minmax(0, 1fr) 110px 54px; gap: 9px; align-items: center; padding: 8px 10px; border-top: 1px solid #e1e5eb; }
.inventory-plan-preview-row:first-child { border-top: 0; }
.inventory-plan-preview-row span > * { display: block; }
.inventory-plan-preview-row strong { font-size: 9px; }
.inventory-plan-preview-row small { margin-top: 2px; color: #6f7886; font-size: 7px; }
.inventory-plan-preview-row input { width: 100%; min-height: 36px; border: 1px solid #c7cfda; border-radius: 6px; padding: 7px; }
.inventory-plan-preview-row > b { color: #677181; font-size: 8px; }
.inventory-form-note { margin: 9px 0 0; padding: 8px 10px; border-left: 3px solid #d99a2b; background: #fff9ed; color: #6d5a32; font-size: 8px; }
.button.compact { min-height: 29px; padding: 4px 8px; font-size: 8px; }

@media (max-width: 1200px) {
  .inventory-card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .inventory-filters { grid-template-columns: 80px repeat(2, minmax(180px, 1fr)); }
  .inventory-search { grid-column: span 2; }
  .inventory-plan-tab-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .inventory-summary, .inventory-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inventory-lower-grid { grid-template-columns: 1fr; }
  .inventory-heading { align-items: flex-start; flex-direction: column; }
  .inventory-plan-category > summary { grid-template-columns: minmax(180px, 1fr) 105px 22px; }
  .inventory-category-state { display: none; }
}
@media (max-width: 620px) {
  .inventory-section-search { max-width: none; }
  .inventory-filters, .inventory-modal-grid, .inventory-summary { grid-template-columns: 1fr 1fr; }
  .inventory-filters .inventory-search, .inventory-filters .button, .inventory-modal-grid .wide { grid-column: 1 / -1; }
  .inventory-card-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .inventory-card-image { height: 104px; }
  .inventory-plan-preview-row { grid-template-columns: minmax(0, 1fr) 86px; }
  .inventory-plan-preview-row > b { display: none; }
  .inventory-plan-heading { align-items: flex-start; }
  .inventory-plan-heading, .inventory-plan-actions { flex-direction: column; }
  .inventory-plan-actions { width: 100%; align-items: stretch; }
  .inventory-plan-category > summary { grid-template-columns: minmax(0, 1fr) 88px 22px; }
  .inventory-plan-category > summary label { grid-template-columns: 1fr; gap: 2px; }
  .inventory-plan-category > summary input { width: 100%; }
  .inventory-plan-project-heading small { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .inventory-plan-tabs { width: 100%; }
  .inventory-plan-tabs button { min-width: 0; flex: 1; padding-inline: 5px; }
  .inventory-plan-tab-filters { grid-template-columns: 1fr; }
  .inventory-plan-tab-filters.inventory-plan-search-only { max-width: none; }
}

/* Requerimientos contractuales */
body[data-page="requerimientos"] .main-content { max-width: 1540px; }
.project-requirements-section { margin: 22px 0 14px; scroll-margin-top: 18px; }
.project-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 0 2px 12px; }
.project-section-heading h2 { margin: 3px 0 4px; color: #101828; font-size: 21px; }
.project-section-heading p:last-child { margin: 0; color: #667085; font-size: 9px; }
.requirements-heading { align-items: end; }
.requirements-project-select { width: min(420px, 100%); }
.requirements-project-select label { display: grid; gap: 6px; }
.requirements-project-select label > span { color: #667085; font-size: 8px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.requirements-project-select select { width: 100%; }
.requirements-project { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; margin-bottom: 14px; padding: 18px 20px; border-left: 4px solid #e30613; }
.requirements-project h2 { margin: 3px 0 6px; color: #101828; font-size: 18px; }
.requirements-project p:last-child { max-width: 1020px; margin: 0; color: #667085; font-size: 10px; line-height: 1.45; }
.requirements-project > a { min-width: 205px; display: grid; grid-template-columns: 1fr auto; gap: 3px 14px; padding: 12px 14px; border: 1px solid #cfd5de; border-radius: 9px; color: #101828; background: #fafbfc; }
.requirements-project > a span { grid-column: 1; color: #667085; font-size: 8px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.requirements-project > a strong { grid-column: 1; font-size: 13px; }
.requirements-project > a i { grid-column: 2; grid-row: 1 / 3; align-self: center; color: #e30613; font-style: normal; font-size: 19px; }
.requirements-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.requirement-stat { min-height: 112px; display: grid; align-content: center; gap: 4px; padding: 15px 17px; border: 1px solid #cbd2dc; border-radius: 11px; background: #fff; box-shadow: var(--shadow); }
.requirement-stat span { min-height: 24px; color: #667085; font-size: 9px; font-weight: 850; line-height: 1.25; text-transform: uppercase; }
.requirement-stat strong { color: #101828; font-size: 29px; line-height: 1; }
.requirement-stat small { color: #667085; font-size: 8px; font-weight: 750; }
.requirement-stat.stat-total { border-top: 3px solid #344054; }
.requirement-stat.stat-conforming { border-top: 3px solid #15803d; }
.requirement-stat.stat-conforming strong { color: #15803d; }
.requirement-stat.stat-missing { border-top: 3px solid #e30613; }
.requirement-stat.stat-missing strong { color: #c60c17; }
.requirement-reconciliation { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; padding: 13px 16px; border-color: #d4dbe4; background: #f8fafc; }
.requirement-reconciliation > span { flex: 0 0 25px; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: #111827; color: #fff; font: 800 12px/1 serif; }
.requirement-reconciliation strong { color: #101828; font-size: 11px; }
.requirement-reconciliation p { margin: 3px 0 0; color: #667085; font-size: 9px; line-height: 1.45; }
.requirements-matrix, .requirements-support { margin-bottom: 14px; overflow: hidden; }
.requirements-matrix > .panel-header, .requirements-support > .panel-header { padding: 16px 18px; border-bottom: 1px solid #cbd2dc; }
.requirements-matrix .panel-header h2, .requirements-support .panel-header h2 { margin: 2px 0 4px; font-size: 17px; }
.requirements-matrix .panel-header p, .requirements-support .panel-header p { font-size: 9px; }
.requirements-truth-badge { padding: 7px 10px; border: 1px solid #a8d5b5; border-radius: 999px; background: #ecfdf3; color: #107337; font-size: 8px; font-weight: 900; letter-spacing: .05em; }
.requirements-table-wrap { overflow-x: auto; }
.requirements-table { width: 100%; min-width: 900px; border-collapse: collapse; }
.requirements-table th, .requirements-table td { padding: 11px 13px; border-bottom: 1px solid #dde2e9; text-align: left; vertical-align: middle; }
.requirements-table thead th { background: #f3f5f8; color: #475467; font-size: 8px; letter-spacing: .04em; text-transform: uppercase; }
.requirements-table thead th:not(:first-child), .requirements-table .number-cell { text-align: center; }
.requirements-table .requirements-table-groups th { padding-block: 8px; border-bottom-color: #cbd2dc; text-align: center; }
.requirements-table .requirements-table-groups th:first-child { text-align: left; background: #e9edf2; }
.requirements-table .requirements-table-groups th:nth-child(2) { background: #e9edf2; color: #344054; }
.requirements-table .requirements-table-groups th:last-child { background: #e5f4e9; color: #107337; }
.requirements-table tbody tr:hover { background: #fafbfc; }
.requirements-table td:first-child strong { display: block; color: #101828; font-size: 10px; }
.requirements-table td:first-child small { display: block; margin-top: 3px; color: #667085; font-size: 8px; }
.requirement-category-row { background: #f2faf4; }
.requirement-category-row > td:first-child { box-shadow: inset 3px 0 #55a568; }
.requirements-table tbody .requirement-category-row:hover, .requirement-category-row:has(.requirement-category-toggle[aria-expanded="true"]) { background: #e9f7ed; }
.requirement-category-toggle { width: 100%; min-width: 210px; display: block; padding: 2px 0; border: 0; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.requirement-category-toggle > span { min-width: 0; }
.requirement-category-toggle:hover strong { color: #107337; }
.requirement-category-toggle:focus-visible { outline: 2px solid rgb(21 128 61 / 32%); outline-offset: 3px; border-radius: 5px; }
.requirement-people-row[hidden], .requirement-people-panel[hidden] { display: none; }
.requirements-table .requirement-people-row > td { padding: 0; background: #f6f8fa; }
.requirement-people-panel { padding: 12px 14px 14px; border-top: 1px solid #cfe2d5; background: #f6f8fa; animation: panel-reveal .2s ease both; }
.requirement-people-panel > header { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 9px; }
.requirement-people-panel > header div { display: grid; gap: 2px; }
.requirement-people-panel > header strong { color: #101828; font-size: 10px; }
.requirement-people-panel > header span, .requirement-people-panel > header small { color: #667085; font-size: 8px; font-weight: 700; }
.requirement-origin-groups { display: grid; gap: 11px; }
.requirement-origin-group { width: min(100%, 805px); overflow: hidden; border: 1px solid #c4d4c9; border-radius: 9px; background: #fff; }
.requirement-origin-toggle { width: 100%; min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 7px 11px; border: 0; color: #126c35; background: #e8f5ec; text-align: left; cursor: pointer; transition: background .16s ease; }
.requirement-origin-toggle:hover, .requirement-origin-toggle[aria-expanded="true"] { background: #dcf0e2; }
.requirement-origin-toggle:focus-visible { outline: 2px solid rgb(21 128 61 / 32%); outline-offset: -3px; }
.requirement-origin-toggle strong { font-size: 9px; }
.requirement-origin-toggle span { padding: 3px 7px; border-radius: 999px; color: #126c35; background: #fff; font-size: 7px; font-weight: 900; }
.requirement-origin-group:has(.requirement-origin-toggle[aria-expanded="true"]) .requirement-origin-toggle { border-bottom: 1px solid #d7e2da; }
.requirement-origin-group > .requirement-people-list[hidden] { display: none; }
.requirement-people-list { width: min(100%, 805px); overflow-x: auto; border: 1px solid #cbd5ce; border-radius: 8px; background: #fff; }
.requirement-origin-group .requirement-people-list { width: 100%; border: 0; border-radius: 0; }
.requirement-person-list-head, .requirement-person-row { min-width: 780px; display: grid; grid-template-columns: 116px 285px 132px 117px 80px; align-items: center; gap: 8px; padding: 7px 9px; }
.requirement-person-list-head { border-bottom: 1px solid #d8e1da; color: #667085; background: #edf6f0; font-size: 7px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.requirement-person-row { min-height: 39px; border-bottom: 1px solid #e3e7eb; color: #344054; font-size: 8px; transition: background .15s ease; }
.requirement-person-row:last-child { border-bottom: 0; }
.requirement-person-row:hover { background: #f2faf4; }
.requirements-table td:first-child .requirement-person-row strong, .requirement-person-row strong { overflow: hidden; display: block; margin: 0; color: #101828; font-size: 8px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.requirement-person-id { color: #475467; font-size: 8px; font-weight: 850; white-space: nowrap; }
.requirement-person-phone { color: #344054; font-size: 8px; font-weight: 750; white-space: nowrap; }
.requirement-person-status { justify-self: start; padding: 4px 7px; border: 1px solid #a8d5b5; border-radius: 999px; color: #107337; background: #ecfdf3; font-size: 7px; font-weight: 900; line-height: 1.15; text-align: center; text-transform: uppercase; white-space: nowrap; }
.requirement-person-status[data-status="Conforme"] { border-color: #a8d5b5; color: #107337; background: #ecfdf3; }
.requirement-people-empty { grid-column: 1 / -1; margin: 0; padding: 12px; border: 1px dashed #cbd2dc; border-radius: 8px; color: #667085; background: #fff; font-size: 9px; text-align: center; }
.requirements-assigned-only { overflow: hidden; }
.requirements-assigned-only > .panel-header { padding: 16px 18px; border-bottom: 1px solid #cbd2dc; }
.assigned-only-toggle { min-height: 55px; padding: 10px 18px; border-bottom: 1px solid #cfe2d5; background: #f2faf4; box-shadow: inset 3px 0 #55a568; }
.assigned-only-toggle > span > strong { display: block; color: #101828; font-size: 10px; }
.assigned-only-toggle > span > small { display: block; margin-top: 3px; color: #667085; font-size: 8px; }
.assigned-only-panel { border-top: 0; border-bottom: 1px solid #d7dde6; }
.requirements-table .number-cell { font-size: 13px; font-weight: 850; }
.requirements-table .required-number { color: #344054; background: #fafbfc; }
.requirements-table .conforming-number { color: #15803d; }
.requirements-table .missing-number { color: #c60c17; }
.requirement-progress { width: 100%; min-width: 88px; height: 6px; overflow: hidden; border-radius: 999px; background: #e4e7ec; }
.requirement-progress span { display: block; height: 100%; border-radius: inherit; background: #15803d; }
.coverage-label { display: block; margin-top: 4px; color: #667085; font-size: 7px; font-weight: 800; text-align: right; }
.requirements-table tfoot th { border-bottom: 0; background: #111821; color: #fff; font-size: 9px; text-align: center; }
.requirements-table tfoot th:first-child { text-align: left; }
.support-requirement-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: #d9dfe7; }
.support-requirement-grid article { min-height: 88px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: center; gap: 4px 12px; padding: 13px 16px; background: #fff; }
.support-requirement-grid span { color: #344054; font-size: 9px; font-weight: 800; line-height: 1.25; }
.support-requirement-grid strong { grid-column: 2; grid-row: 1 / 3; align-self: center; color: #101828; font-size: 24px; }
.support-requirement-grid small { color: #667085; font-size: 8px; text-transform: uppercase; }
.requirements-tools-heading { margin: 22px 2px 10px; }
.requirements-tools-heading h2 { margin: 2px 0 3px; font-size: 19px; }
.requirements-tools-heading p { color: #667085; font-size: 9px; }
.requirements-area-grid { display: grid; gap: 14px; }
.requirement-area { overflow: hidden; }
.requirement-area > summary { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 18px; border-left: 4px solid #e30613; cursor: pointer; list-style: none; background: #fff; }
.requirement-area > summary::-webkit-details-marker { display: none; }
.requirement-area > summary span { color: #e30613; font-size: 8px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.requirement-area > summary h3 { margin: 3px 0; color: #101828; font-size: 17px; }
.requirement-area > summary p { margin: 0; color: #667085; font-size: 9px; }
.requirement-area > summary i { color: #667085; font-style: normal; font-size: 22px; transition: transform .18s ease; }
.requirement-area[open] > summary { border-bottom: 1px solid #cbd2dc; }
.requirement-area[open] > summary i { transform: rotate(180deg); }
.requirement-area-body { padding: 14px; background: #f5f7fa; }
.personal-tools-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.personal-tools-grid > section, .general-tools { overflow: hidden; border: 1px solid #cbd2dc; border-radius: 9px; background: #fff; }
.personal-tools-grid header, .general-tools header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-bottom: 1px solid #dde2e9; background: #f9fafb; }
.personal-tools-grid h4, .general-tools h4 { margin: 0; color: #101828; font-size: 10px; }
.personal-tools-grid header span, .general-tools header span { color: #e30613; font-size: 8px; font-weight: 900; text-transform: uppercase; }
.personal-tools-grid ul { margin: 0; padding: 5px 12px 10px 28px; }
.personal-tools-grid li { padding: 5px 0; color: #344054; font-size: 8px; }
.personal-tools-grid li strong { font-size: 8px; }
.personal-tools-grid li small, .general-tools article small { display: block; margin-top: 2px; color: #667085; font-size: 7px; line-height: 1.35; }
.general-tools { margin-top: 10px; }
.general-tools > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: #e0e4ea; }
.general-tools article { min-height: 62px; display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: start; gap: 9px; padding: 10px; background: #fff; }
.general-tools article > b { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 7px; background: #111821; color: #fff; font-size: 11px; }
.general-tools article p { margin: 1px 0 0; color: #344054; font-size: 8px; }
.general-tools article strong { font-size: 8px; }
.requirements-epp-note { margin: 10px 0 0; padding: 9px 11px; border-left: 3px solid #e30613; background: #fff; color: #475467; font-size: 8px; font-weight: 750; }
.requirements-empty { display: grid; justify-items: start; gap: 8px; padding: 28px; }
.requirements-empty p { margin: 0; color: #667085; }

@media (max-width: 1100px) {
  .requirements-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .support-requirement-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .personal-tools-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .requirements-heading { align-items: stretch; }
  .requirements-project { grid-template-columns: 1fr; }
  .requirements-project > a { min-width: 0; }
  .requirements-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .requirement-stat { min-height: 100px; }
  .support-requirement-grid, .general-tools > div { grid-template-columns: 1fr; }
  .requirements-truth-badge { display: none; }
  .requirement-area-body { padding: 9px; }
}

/* Credencial de personal y verificación pública del proyecto. */
.credential-button { border-color: #101828; background: #101828; color: #fff; }
.credential-button:hover { border-color: #293446; background: #293446; }
.credential-photo > img { width: 100%; height: 100%; object-fit: cover; }
.credential-photo > div { display: flex; width: 100%; height: 100%; align-items: center; flex-direction: column; justify-content: center; }
.credential-page-heading { display: flex; width: 100%; max-width: min(860px, calc(100vw - 500px)); margin: 0 auto 16px; align-items: center; justify-content: space-between; gap: 14px; }
.credential-page-actions { display: flex; align-items: center; gap: 10px; }
.credential-back-link { display: inline-flex; min-height: 40px; padding: 0 14px; align-items: center; gap: 8px; border: 1px solid #c7ced8; border-radius: 9px; background: #fff; color: #344054; font-size: 12px; font-weight: 800; text-decoration: none; box-shadow: 0 2px 7px rgb(16 24 40 / 5%); }
.credential-back-link:hover { border-color: #e30613; color: #c7000c; }
.person-credential-stage { display: grid; width: 100%; max-width: min(860px, calc(100vw - 500px)); min-width: 0; margin-inline: auto; justify-items: center; gap: 14px; }
.person-credential-card { position: relative; display: grid; grid-template-rows: 14.4% 44% 20.8% 20.8%; width: 100%; max-width: 860px; aspect-ratio: 85.6 / 54; overflow: hidden; border: 1px solid #8f9aaa; border-radius: 18px; background: #fff; box-shadow: 0 28px 70px rgb(10 17 27 / 20%); color: #101828; box-sizing: border-box; }
.person-credential-card::before { content: ""; position: absolute; z-index: 5; top: 0; bottom: 0; left: 0; width: 7px; background: linear-gradient(#ff1726, #be000b); }
.person-credential-header { position: relative; display: flex; min-height: 0; padding: 10px 24px 9px 31px; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 3px solid #e30613; background: linear-gradient(112deg, #080d14 0%, #101823 64%, #202b38 100%); color: #fff; }
.person-credential-header::after { content: ""; position: absolute; top: -50px; right: 24%; width: 180px; height: 180px; border: 1px solid rgb(255 255 255 / 5%); transform: rotate(35deg); }
.person-credential-header img { position: relative; z-index: 1; width: 176px; max-height: 58px; padding: 5px 8px; border-radius: 7px; background: #fff; object-fit: contain; object-position: left center; box-shadow: 0 5px 16px rgb(0 0 0 / 22%); }
.person-credential-header div { display: grid; justify-items: end; gap: 5px; }
.person-credential-header span { color: #ff4b55; font-size: 11px; font-weight: 900; letter-spacing: .14em; }
.person-credential-header strong { color: #fff; font-size: 18px; letter-spacing: .04em; }
.person-credential-header small { color: #c7ced8; font-size: 8px; font-weight: 850; letter-spacing: .05em; }
.person-credential-body { position: relative; display: grid; grid-template-columns: 172px minmax(0, 1fr); min-height: 0; gap: 22px; padding: 20px 26px 18px 31px; background: radial-gradient(circle at 96% 10%, rgb(227 6 19 / 6%), transparent 31%), #fff; }
.person-credential-body::after { content: "EIM"; position: absolute; right: 24px; bottom: -15px; color: rgb(16 24 40 / 2.5%); font-size: 112px; font-weight: 950; letter-spacing: -.08em; pointer-events: none; }
.person-credential-photo { position: relative; z-index: 1; width: 172px; height: 100%; min-height: 0; overflow: hidden; border: 1px solid #aeb7c4; border-bottom: 4px solid #e30613; border-radius: 13px; background: linear-gradient(145deg, #f9fafb, #e6e9ee); box-shadow: 0 9px 22px rgb(16 24 40 / 10%); }
.person-credential-photo > img { width: 100%; height: 100%; object-fit: cover; }
.credential-photo-fallback { display: flex; width: 100%; height: 100%; align-items: center; flex-direction: column; justify-content: center; gap: 12px; color: #667085; }
.credential-photo-fallback .credential-user-icon { width: 80px; height: 80px; }
.credential-photo-fallback span { font-size: 9px; font-weight: 900; letter-spacing: .11em; }
.person-credential-person { position: relative; z-index: 1; min-width: 0; }
.person-credential-person > small, .person-credential-project small { color: #e30613; font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.person-credential-person h1 { margin: 5px 0 14px; padding-bottom: 8px; border-bottom: 2px solid #e30613; color: #0b111a; font-size: clamp(22px, 2.6vw, 31px); line-height: 1.04; overflow-wrap: anywhere; text-transform: uppercase; }
.person-credential-person h1.long-value { font-size: 22px; }
.person-credential-person dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; gap: 12px 20px; }
.person-credential-person dl > div { min-width: 0; padding-bottom: 8px; border-bottom: 1px solid #e3e7ed; }
.person-credential-person dt, .person-credential-project dt { margin-bottom: 3px; color: #7a8492; font-size: 8px; font-weight: 900; letter-spacing: .08em; }
.person-credential-person dd, .person-credential-project dd { margin: 0; overflow-wrap: anywhere; font-size: 13px; font-weight: 850; }
#credentialPosition { display: inline-flex; max-width: 100%; padding: 3px 8px; border-radius: 999px; background: #111a26; color: #fff; line-height: 1.15; letter-spacing: .04em; white-space: normal; box-sizing: border-box; }
#credentialPosition.long-value { padding: 3px 6px; font-size: 10px; letter-spacing: .015em; }
.person-credential-person .credential-wide-field { grid-column: 1 / -1; }
.person-credential-project { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr); min-height: 0; gap: 20px; padding: 13px 24px 12px 31px; border-block: 1px solid #cbd2dc; background: linear-gradient(105deg, #f1f4f7, #fafbfc 70%); }
.person-credential-project > div, .person-credential-project dl { min-width: 0; }
.person-credential-project p { margin: 4px 0 0; font-size: 9.5px; font-weight: 800; line-height: 1.32; text-transform: uppercase; }
.credential-operation-window { display: block; margin-top: 5px; color: #475467; font-size: 7.5px; font-weight: 900; letter-spacing: .035em; }
.person-credential-project dl { display: grid; grid-template-columns: 1fr 1fr; margin: 0; gap: 8px 16px; }
.person-credential-project dl > div:first-child { grid-column: 1 / -1; }
.credential-company-field dd { line-height: 1.16; overflow-wrap: anywhere; }
.person-credential-footer { display: flex; min-height: 0; padding: 10px 26px 11px 31px; align-items: center; justify-content: flex-end; gap: 18px; background: linear-gradient(110deg, #080d14, #151f2b); }
.person-credential-footer > div { display: grid; justify-items: end; gap: 4px; text-align: right; }
.person-credential-footer strong { color: #ff4b55; font-size: 13px; letter-spacing: .075em; }
.person-credential-footer span { color: #c7ced8; font-size: 11px; }
.person-credential-footer .credential-duration { color: #fff; font-size: 10px; font-weight: 850; letter-spacing: .035em; }
.person-credential-qr { width: 98px; height: 98px; padding: 5px; border: 2px solid #fff; border-radius: 9px; background: #fff; box-shadow: 0 5px 16px rgb(0 0 0 / 26%); }
.credential-privacy-note { max-width: 760px; margin: 0; color: #667085; font-size: 10px; line-height: 1.5; text-align: center; }

.project-verification-page { min-height: 100vh; margin: 0; background: radial-gradient(circle at 85% 10%, rgb(227 6 19 / 12%), transparent 30%), #f2f4f7; color: #101828; }
.project-verification-shell { display: grid; min-height: 100vh; padding: 24px; place-items: center; }
.project-verification-card { width: min(100%, 720px); overflow: hidden; border: 1px solid #b9c1cc; border-radius: 18px; background: #fff; box-shadow: 0 28px 70px rgb(16 24 40 / 15%); }
.project-verification-card > header { display: flex; padding: 22px 25px; align-items: center; justify-content: space-between; border-bottom: 4px solid #e30613; }
.project-verification-card > header img { width: min(250px, 68%); max-height: 74px; object-fit: contain; object-position: left center; }
.verification-check { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; background: #eaf7ee; color: #16813d; font-size: 27px; font-weight: 900; }
.project-verification-title { padding: 25px 26px 18px; }
.project-verification-title p { margin: 0 0 7px; color: #e30613; font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.project-verification-title h1 { margin: 0 0 7px; font-size: clamp(27px, 6vw, 42px); line-height: 1.05; }
.project-verification-title > span { color: #475467; font-size: 13px; font-weight: 800; }
.project-verification-card > section { margin: 0 26px; padding: 18px; border: 1px solid #d4dae3; border-left: 4px solid #e30613; border-radius: 10px; background: #f8fafc; }
.project-verification-card > section small { color: #e30613; font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.project-verification-card > section h2 { margin: 6px 0 0; font-size: 15px; line-height: 1.45; }
.project-location-highlight { color: #e30613; font-weight: 950; }
.project-verification-facts { display: grid; grid-template-columns: 1fr 1fr; margin: 22px 26px; gap: 11px; }
.project-verification-facts > div { padding: 13px 14px; border: 1px solid #d8dee6; border-radius: 9px; }
.project-verification-facts dt { margin-bottom: 5px; color: #7a8492; font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.project-verification-facts dd { margin: 0; font-size: 12px; font-weight: 850; overflow-wrap: anywhere; }
.verification-phone { color: inherit; text-decoration-color: #e30613; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.verification-phone:hover { color: #c7000c; }
.project-verification-card > footer { padding: 15px 26px 18px; border-top: 1px solid #e1e5eb; color: #667085; font-size: 10px; line-height: 1.5; }

.generated-credential-document { position: relative; overflow: hidden; }
.generated-credential-document::after { content: "GENERADA"; position: absolute; top: 15px; right: -33px; width: 118px; padding: 4px 0; transform: rotate(38deg); background: #16813d; color: #fff; font-size: 7px; font-weight: 900; letter-spacing: .12em; text-align: center; }
.document-generated-preview-link { height: 125px; min-height: 125px; margin: 0 0 9px; border: 1px solid #b8c0ca; border-radius: 9px; background: #eef1f5; }
.credential-preview-link { aspect-ratio: 1.586 / 1; }
.credential-preview-link > img { position: absolute; inset: 0; min-height: 100%; object-fit: cover; }
.credential-preview-placeholder { display: grid; place-items: center; gap: 4px; color: #101828; text-align: center; }
.credential-preview-placeholder b { font-size: 31px; font-weight: 950; letter-spacing: -.12em; }
.credential-preview-placeholder b span { color: #e30613; }
.credential-preview-placeholder small { color: #667085; font-size: 8px; font-weight: 900; letter-spacing: .08em; }
.credential-preview-link.preview-unavailable > img { display: none; }
.generated-credential-document .document-card-actions { display: grid; grid-template-columns: 1fr; gap: 7px; }
.generated-dc3-document { position: relative; overflow: hidden; }
.generated-dc3-document::after { content: "GENERADO"; position: absolute; top: 15px; right: -33px; width: 118px; padding: 4px 0; transform: rotate(38deg); background: #16813d; color: #fff; font-size: 7px; font-weight: 900; letter-spacing: .12em; text-align: center; }
.dc3-preview-link { background: linear-gradient(145deg, #f5f7fa, #e6eaf0); }
.generated-dc3-page { position: relative; width: min(82%, 190px); height: 102px; display: grid; align-content: start; gap: 5px; margin-bottom: 5px; padding: 11px 13px 8px; border: 1px solid #bcc3cd; border-top: 5px solid #e30613; border-radius: 3px; background: #fff; box-shadow: 0 8px 20px rgb(16 24 40 / 16%); }
.generated-dc3-page b { position: absolute; top: 10px; right: 11px; padding: 4px 6px; border-radius: 4px; background: #e30613; color: #fff; font-size: 9px; letter-spacing: .06em; }
.generated-dc3-page strong { max-width: calc(100% - 48px); color: #101828; font-size: 8px; line-height: 1.25; }
.generated-dc3-page small { max-width: calc(100% - 24px); overflow: hidden; color: #667085; font-size: 8px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.generated-dc3-page i { height: 3px; margin-top: 3px; border-radius: 2px; background: #d8dde4; }
.generated-dc3-page i:nth-of-type(2) { width: 82%; }
.generated-dc3-page i:nth-of-type(3) { width: 60%; }
.generated-contract-page { border-top-color: #101828; }
.generated-contract-page b { background: #101828; }
.generated-contract-page strong { max-width: calc(100% - 44px); }
.generated-contract-document::after { background: #101828; }
.document-generated-name { min-width: 0; margin: 0 0 12px; padding: 8px 9px; border: 1px solid #e1e5eb; border-radius: 6px; background: #f8fafc; }
.document-generated-name span, .document-generated-name strong { display: block; }
.document-generated-name span { margin-bottom: 2px; color: #667085; font-size: 7px; font-weight: 850; text-transform: uppercase; }
.document-generated-name strong { overflow: hidden; color: #344054; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.generated-dc3-document .document-card-actions { display: grid; grid-template-columns: 1fr; gap: 7px; }
.generated-dc3-document > p { -webkit-line-clamp: 2; }
.generated-dc3-document .document-generated-name { margin-bottom: 8px; padding-block: 6px; }

@media (max-width: 700px) {
  .credential-page-heading { align-items: stretch; flex-direction: column; }
  .credential-page-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .person-credential-card { grid-template-rows: auto; aspect-ratio: auto; }
  .person-credential-header { min-height: 75px; padding: 13px 16px 12px 23px; }
  .person-credential-header img { width: 140px; }
  .person-credential-header span { font-size: 8px; }
  .person-credential-header strong { font-size: 12px; }
  .person-credential-body { grid-template-columns: 110px minmax(0, 1fr); gap: 13px; padding: 16px 14px 15px 23px; }
  .person-credential-photo { width: 110px; height: 145px; }
  .credential-photo-fallback .credential-user-icon { width: 53px; height: 53px; }
  .person-credential-person h1 { margin-bottom: 12px; font-size: 19px; }
  .person-credential-person dl { grid-template-columns: 1fr; gap: 6px; }
  .person-credential-person dl > div { padding-bottom: 4px; }
  .person-credential-person dd { font-size: 10px; }
  .person-credential-project { grid-template-columns: 1fr; gap: 14px; padding: 14px 14px 14px 23px; }
  .person-credential-project dl { grid-template-columns: 1fr 1fr; }
  .person-credential-footer { min-height: 122px; padding: 12px 14px 13px 23px; }
  .person-credential-footer > div { justify-items: start; text-align: left; }
  .person-credential-qr { width: 104px; height: 104px; flex: 0 0 auto; }
  .project-verification-shell { padding: 13px; }
  .project-verification-card > header, .project-verification-title { padding-inline: 18px; }
  .project-verification-card > section, .project-verification-facts { margin-inline: 18px; }
  .project-verification-facts { grid-template-columns: 1fr; }
}

@media (max-width: 1300px) and (min-width: 701px) {
  .person-credential-body { grid-template-columns: 160px minmax(0, 1fr); gap: 18px; padding: 14px 20px 12px 28px; }
  .person-credential-photo { width: 160px; }
  .person-credential-person h1 { margin-bottom: 8px; font-size: 25px; }
  .person-credential-person dl { gap: 5px 16px; }
  .person-credential-person dl > div { padding-bottom: 4px; }
  .person-credential-person dt, .person-credential-project dt { font-size: 7px; }
  .person-credential-person dd, .person-credential-project dd { font-size: 11px; }
  .person-credential-project { grid-template-columns: minmax(0, 1.35fr) minmax(270px, 1fr); gap: 16px; padding: 9px 20px 8px 28px; }
  .person-credential-project p { font-size: 8px; line-height: 1.18; }
  .credential-operation-window { margin-top: 3px; font-size: 6.5px; }
  .person-credential-project dl { gap: 5px 12px; }
  .person-credential-footer { padding: 6px 20px 7px 28px; gap: 14px; }
  .person-credential-qr { width: 80px; height: 80px; padding: 4px; }
}

@media print {
  @page { size: 85.6mm 53.98mm; margin: 0; }
  html:has(.person-credential-card), body:has(.person-credential-card) { width: 85.6mm; height: 53.98mm; margin: 0; overflow: hidden; background: #fff; }
  body:has(.person-credential-card) .sidebar,
  body:has(.person-credential-card) .topbar,
  body:has(.person-credential-card) .credential-page-heading,
  body:has(.person-credential-card) .credential-privacy-note,
  body:has(.person-credential-card) .toast-region,
  body:has(.person-credential-card) .filter-notification-region { display: none !important; }
  body:has(.person-credential-card) .app-shell { margin: 0; }
  body:has(.person-credential-card) .main-content { width: 85.6mm; height: 53.98mm; padding: 0; overflow: hidden; }
  .person-credential-stage { display: block; width: 85.6mm; height: 53.98mm; max-width: none; margin: 0; }
  .person-credential-card { grid-template-rows: 7.8mm 23.7mm 11.2mm 11.28mm; width: 85.6mm; min-width: 85.6mm; max-width: none; height: 53.98mm; aspect-ratio: auto; border: .2mm solid #aeb7c4; border-radius: 2.2mm; box-shadow: none; box-sizing: border-box; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .person-credential-card::before { width: .7mm; }
  .person-credential-header { padding: .65mm 2.1mm .55mm 2.8mm; gap: 1.5mm; border-bottom-width: .35mm; }
  .person-credential-header img { width: 18mm; height: 5.6mm; max-height: 5.6mm; padding: .3mm .5mm; border-radius: .6mm; box-sizing: border-box; }
  .person-credential-header div { gap: .3mm; }
  .person-credential-header span { font-size: 3pt; letter-spacing: .08em; }
  .person-credential-header strong { font-size: 5.6pt; letter-spacing: .02em; }
  .person-credential-header small { font-size: 2.1pt; letter-spacing: .02em; }
  .person-credential-body { grid-template-columns: 16.2mm minmax(0, 1fr); gap: 2.2mm; padding: 1.8mm 2.2mm 1.5mm 2.8mm; }
  .person-credential-photo { width: 16.2mm; border-width: .2mm; border-bottom-width: .4mm; border-radius: 1.3mm; }
  .credential-photo-fallback { gap: 1mm; }
  .credential-photo-fallback .credential-user-icon { width: 7.8mm; height: 7.8mm; margin: 0; border-width: .15mm; }
  .credential-photo-fallback span { font-size: 2.1pt; letter-spacing: .07em; }
  .person-credential-person > small, .person-credential-project small { font-size: 2.2pt; letter-spacing: .07em; }
  .person-credential-person h1 { margin: .4mm 0 1.2mm; padding-bottom: .5mm; border-bottom-width: .15mm; font-size: 7.1pt; line-height: 1.02; }
  .person-credential-person h1.long-value { font-size: 6.1pt; }
  .person-credential-person dl { gap: 1mm 2mm; }
  .person-credential-person dl > div { padding-bottom: .5mm; border-bottom-width: .15mm; }
  .person-credential-person dt, .person-credential-project dt { margin-bottom: .2mm; font-size: 1.8pt; letter-spacing: .05em; }
  .person-credential-person dd, .person-credential-project dd { font-size: 3.2pt; }
  #credentialPosition { padding: .25mm .7mm; line-height: 1.05; }
  #credentialPosition.long-value { padding: .2mm .45mm; font-size: 2.55pt; letter-spacing: 0; }
  .person-credential-body::after { right: 2mm; bottom: -1mm; font-size: 12mm; }
  .person-credential-project { grid-template-columns: minmax(0, 1.35fr) minmax(28mm, 1fr); gap: 2mm; padding: 1.1mm 2.1mm 1mm 2.8mm; }
  .person-credential-project p { margin-top: .35mm; font-size: 2.15pt; line-height: 1.18; }
  .credential-operation-window { margin-top: .4mm; font-size: 1.75pt; letter-spacing: .01em; }
  .person-credential-project dl { gap: .65mm 1.3mm; }
  .credential-company-field dd { font-size: 2.7pt; line-height: 1.08; }
  .person-credential-footer { padding: .8mm 2.1mm .9mm 2.8mm; gap: 1.6mm; }
  .person-credential-footer > div { gap: .3mm; }
  .person-credential-footer strong { font-size: 2.4pt; letter-spacing: .05em; }
  .person-credential-footer span { font-size: 1.8pt; }
  .person-credential-qr { width: 9mm; height: 9mm; padding: .35mm; border-width: .15mm; border-radius: .8mm; box-sizing: border-box; }
}

/* Sistema visual EIM 2026 -------------------------------------------------- */
:root {
  --navy: #090d12;
  --navy-2: #070b10;
  --teal: #e30613;
  --teal-soft: #fff0f1;
  --gold: #e30613;
  --ink: #111827;
  --muted: #667085;
  --line: #e4e8ee;
  --container-line: #bcc4cf;
  --surface: #fff;
  --canvas: #f7f8fa;
  --danger: #dc2626;
  --warning: #ea580c;
  --success: #16813d;
  --info: #2563eb;
  --radius: 12px;
  --shadow: 0 1px 2px rgb(16 24 40 / 4%), 0 5px 16px rgb(16 24 40 / 5%);
}

body {
  background: #f7f8fa;
  color: var(--ink);
  font-family: Inter, "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  font-size: 13px;
}

h1 { color: #0d1117; font-size: clamp(28px, 3vw, 38px); font-weight: 760; letter-spacing: -.045em; }
h2 { color: #141922; font-weight: 740; letter-spacing: -.025em; }
p { color: var(--muted); }
.eyebrow { color: var(--teal); font-weight: 800; letter-spacing: .045em; }

.sidebar {
  width: 254px;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  box-sizing: border-box;
  overflow: hidden;
  padding: 22px 14px 16px;
  border-right: 1px solid rgb(255 255 255 / 7%);
  background:
    radial-gradient(circle at 25% 6%, rgb(38 47 59 / 48%), transparent 28%),
    linear-gradient(180deg, #091019 0%, #050a10 62%, #080d13 100%);
  box-shadow: 8px 0 30px rgb(16 24 40 / 9%);
}

.brand {
  margin: 0 9px 25px;
  padding: 10px 11px;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 8px 24px rgb(0 0 0 / 24%);
}
.brand-logo { max-height: 72px; object-fit: contain; }
.project-ribbon {
  margin: 0 0 24px;
  padding: 12px 14px;
  border: 1px solid rgb(255 255 255 / 17%);
  border-left: 1px solid rgb(255 255 255 / 17%);
  border-radius: 10px;
  background: linear-gradient(145deg, rgb(255 255 255 / 7%), rgb(255 255 255 / 2%));
}
.project-ribbon span { margin-bottom: 7px; color: #9ba4b0; font-size: 9px; }
.project-ribbon strong { color: #f4f6f8; font-size: 11px; line-height: 1.45; }

.brand, .project-ribbon { flex: 0 0 auto; }
.nav {
  min-height: 0;
  flex: 1 1 auto;
  align-content: start;
  gap: 6px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 1px 5px 10px 0;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgb(227 6 19 / 78%) rgb(255 255 255 / 6%);
  overscroll-behavior: contain;
}
.nav::-webkit-scrollbar { width: 7px; }
.nav::-webkit-scrollbar-track { border-radius: 999px; background: rgb(255 255 255 / 5%); }
.nav::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 999px; background: rgb(227 6 19 / 82%); background-clip: padding-box; }
.nav::-webkit-scrollbar-thumb:hover { background: #ff1724; background-clip: padding-box; }
.nav a {
  min-height: 48px;
  gap: 13px;
  padding: 11px 14px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #d1d6dd;
  font-size: 13px;
  font-weight: 650;
}
.nav a span { color: #d8dde4; }
.nav a:hover { border-color: rgb(255 255 255 / 8%); background: rgb(255 255 255 / 6%); }
.nav a.active {
  border-color: rgb(227 6 19 / 35%);
  background: linear-gradient(90deg, rgb(227 6 19 / 62%), rgb(227 6 19 / 14%) 72%, rgb(255 255 255 / 6%));
  box-shadow: inset 3px 0 0 #ff1724, 0 8px 24px rgb(0 0 0 / 16%);
}
.nav-divider { margin: 13px 8px; background: rgb(255 255 255 / 12%); }

.sidebar-session {
  flex: 0 0 auto;
  margin-top: 12px;
  padding: 13px;
  border-color: rgb(255 255 255 / 18%);
  border-radius: 11px;
  background: rgb(255 255 255 / 3%);
}
.sidebar-user-avatar {
  width: 40px;
  height: 40px;
  border-color: rgb(227 6 19 / 75%);
  background: #111821;
  font-size: 12px;
}
.sidebar-session-user { gap: 11px; }
.sidebar-session-user small { color: #9ea7b3; font-size: 8px; }
.sidebar-session-user strong { margin-top: 2px; color: #fff; font-size: 10px; line-height: 1.35; white-space: normal; }
.sidebar-logout-form { margin: 9px 0 0 51px; padding-top: 8px; border-top: 1px solid rgb(255 255 255 / 9%); }
.sidebar-logout-form button { color: #ff5b65; font-size: 9px; text-decoration: none; }
.sidebar-personal-back { min-height: 38px; margin-bottom: 12px; padding: 9px 10px; border-radius: 8px; font-size: 10px; }

@media (max-height: 760px) and (min-width: 901px) {
  .sidebar { padding-top: 12px; padding-bottom: 10px; }
  .brand { margin-bottom: 12px; padding: 7px 9px; }
  .brand-logo { max-height: 50px; }
  .project-ribbon { margin-bottom: 12px; padding: 8px 11px; }
  .project-ribbon span { margin-bottom: 3px; }
  .nav { gap: 3px; padding-bottom: 6px; }
  .nav a { min-height: 41px; padding: 8px 11px; }
  .nav-divider { margin: 7px 8px; }
  .sidebar-session { margin-top: 8px; padding: 9px 10px; }
  .sidebar-user-avatar { width: 34px; height: 34px; }
  .sidebar-logout-form { margin-top: 6px; margin-left: 45px; padding-top: 5px; }
}

.app-shell { margin-left: 254px; }
.main-content { width: min(1600px, 100%); padding: 28px 34px 48px; }
.page-heading { min-height: 78px; margin-bottom: 18px; }
.page-heading h1 { margin-bottom: 5px; }
.page-heading p:last-child { font-size: 13px; }
.split-heading { align-items: center; }

.panel {
  border: 1px solid var(--container-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}
.panel-header { padding: 16px 18px; background: #fff; }
.panel-header h2 { font-size: 16px; }
.panel-header p { font-size: 10px; }

.button {
  min-height: 41px;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 750;
  box-shadow: none;
}
.button.primary {
  border-color: #d9000d;
  background: linear-gradient(180deg, #f20a18, #d9000d);
  color: #fff;
  box-shadow: 0 5px 12px rgb(227 6 19 / 18%);
}
.button.primary:hover { border-color: #bb000b; background: linear-gradient(180deg, #e30613, #bf000b); }
.button.secondary { border-color: #d6dce5; background: #fff; color: #344054; box-shadow: 0 1px 2px rgb(16 24 40 / 4%); }
.button.secondary:hover { border-color: #aeb7c4; color: #111827; }
.button.danger-quiet { border-color: #f3b8bc; background: #fff7f7; color: #c81420; }

label { gap: 6px; color: #344054; font-weight: 680; }
input, select, textarea {
  min-height: 42px;
  padding: 9px 12px;
  border-color: #d5dbe4;
  border-radius: 8px;
  background-color: #fff;
  color: #1d2939;
  box-shadow: 0 1px 2px rgb(16 24 40 / 3%);
}
input:hover, select:hover, textarea:hover { border-color: #aeb7c4; }
input:focus, select:focus, textarea:focus { border-color: #e30613; box-shadow: 0 0 0 3px rgb(227 6 19 / 9%); }
.modern-select-trigger, .custom-filter-select-trigger {
  min-height: 42px;
  border-color: #d5dbe4;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgb(16 24 40 / 3%);
}
.modern-select-trigger > i, .custom-filter-select-trigger > i { border-left-color: #e7eaf0; background: #fafbfc; }
.modern-select-menu, .custom-filter-select-menu { border-color: #d8dee7; border-radius: 10px; box-shadow: 0 18px 44px rgb(16 24 40 / 16%); }
.modern-select-option.selected, .custom-filter-select-option.selected { background: #fff0f1; color: #b9000b; }

/* Dashboard */
body[data-page="dashboard"] .main-content { padding-top: 25px; padding-bottom: 34px; }
body[data-page="dashboard"] .page-heading { margin-bottom: 17px; }
body[data-page="dashboard"] .page-heading h1 { font-size: clamp(30px, 3vw, 38px); }

/* Expedientes contractuales de proyectos */
.dashboard-contract-links { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.dashboard-contract-links a { color: #c90a17; font-weight: 900; text-decoration: none; text-underline-offset: 3px; }
.dashboard-contract-links a:hover, .dashboard-contract-links a:focus-visible { color: #8f0710; text-decoration: underline; }
.dashboard-contract-links i { color: #98a2b3; font-style: normal; }
.projects-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.projects-total, .project-period-badge { display: inline-flex; min-height: 30px; align-items: center; padding: 6px 10px; border: 1px solid #f0b6bb; border-radius: 999px; background: #fff4f5; color: #a50a15; font-size: 8px; font-weight: 900; letter-spacing: .06em; white-space: nowrap; }
.projects-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.project-card { min-width: 0; display: flex; flex-direction: column; gap: 15px; padding: 20px; overflow: hidden; border-top: 3px solid #101722; }
.project-card-header { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: start; gap: 12px; }
.project-card-index { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 9px; background: #101722; color: #fff; font-size: 13px; font-weight: 900; }
.project-card-header p { margin: 0 0 4px; color: #e30613; font-size: 8px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.project-card-header h2 { margin: 0; font-size: 16px; line-height: 1.28; }
.project-contract-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 12px; padding: 12px 14px; border: 1px solid #edc0c4; border-radius: 9px; background: linear-gradient(135deg, #fff7f8, #fff); color: inherit; text-decoration: none; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.project-contract-link span { grid-column: 1; color: #7a8492; font-size: 7px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.project-contract-link strong { grid-column: 1; color: #bd1522; font-size: 16px; letter-spacing: .025em; }
.project-contract-link i { grid-column: 2; grid-row: 1 / 3; align-self: center; color: #bd1522; font-size: 22px; font-style: normal; }
.project-contract-link:hover, .project-contract-link:focus-visible { border-color: #df5660; box-shadow: 0 8px 20px rgb(189 21 34 / 10%); transform: translateY(-1px); }
.project-card-description { margin: 0; color: #475467; font-size: 10px; font-weight: 650; line-height: 1.55; }
.project-card-facts { display: grid; grid-template-columns: 1.25fr .75fr .8fr; gap: 9px; margin: auto 0 0; }
.project-card-facts div { min-width: 0; padding: 9px 10px; border: 1px solid #e1e5ea; border-radius: 8px; background: #f8fafc; }
.project-card-facts dt { margin-bottom: 4px; color: #7a8492; font-size: 7px; font-weight: 850; text-transform: uppercase; }
.project-card-facts dd { margin: 0; color: #101828; font-size: 10px; font-weight: 850; overflow-wrap: anywhere; }
.project-card footer { display: flex; justify-content: flex-end; }
.project-detail-back { margin-bottom: 10px; }
.project-detail-back a { display: inline-flex; align-items: center; gap: 7px; color: #475467; font-size: 10px; font-weight: 850; text-decoration: none; }
.project-detail-back a span { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid #d6dbe1; border-radius: 50%; background: #fff; color: #bd1522; }
.project-detail-back a:hover { color: #bd1522; }
.project-record-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; margin-bottom: 14px; padding: 20px; border-left: 4px solid #e30613; overflow: hidden; }
.project-record-title .eyebrow { margin-bottom: 5px; }
.project-record-title h1 { max-width: 920px; margin: 0 0 13px; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.18; }
.project-record-contract { display: inline-flex; align-items: baseline; gap: 9px; color: inherit; text-decoration: none; }
.project-record-contract span { color: #7a8492; font-size: 8px; font-weight: 900; text-transform: uppercase; }
.project-record-contract strong { color: #bd1522; font-size: 15px; }
.project-record-contract:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.project-record-stats { display: grid; grid-template-columns: repeat(3, minmax(100px, 1fr)); gap: 8px; }
.project-record-stats div { padding: 12px; border: 1px solid #dce1e7; border-radius: 9px; background: #f8fafc; }
.project-record-stats span, .project-record-stats strong { display: block; }
.project-record-stats span { margin-bottom: 5px; color: #667085; font-size: 7px; font-weight: 850; text-transform: uppercase; }
.project-record-stats strong { color: #101828; font-size: 20px; }
.project-information { margin-bottom: 14px; padding: 18px; }
.project-contract-overview { position: relative; display: block; margin-bottom: 14px; padding-right: calc(35% + 14px); }
.project-contract-overview .project-information { min-width: 0; width: 100%; margin: 0; }
.project-contract-overview .project-contract-library { position: absolute; top: 0; right: 0; bottom: 0; width: 35%; min-width: 0; height: auto; min-height: 0; display: flex; flex-direction: column; margin: 0; overflow: hidden; }
.project-contract-overview .project-information-grid { grid-template-columns: 1fr; }
.project-contract-overview .project-contract-header { align-items: flex-start; flex-direction: column; gap: 10px; }
.project-contract-overview .project-contract-header > div:last-child { width: 100%; justify-content: space-between; flex-wrap: wrap; }
.project-contract-overview .project-document-grid { flex: 1 1 auto; min-height: 0; grid-template-columns: 1fr; overflow: hidden; }
.project-contract-overview .project-document-card { min-height: 0; height: 100%; }
.project-contract-overview .project-document-preview { flex: 1 1 120px; min-height: 105px; height: auto; }
.project-contract-overview .project-document-body { gap: 5px; padding: 8px 10px; }
.project-contract-overview .project-document-body dl div { padding-left: 5px; }
.project-contract-overview .project-document-card footer { gap: 6px; padding: 0 10px 9px; }
.project-contract-overview .project-document-card footer .button { min-height: 32px; padding-block: 6px; }
.project-contract-overview .project-document-empty { min-height: 0; height: 100%; padding: 14px; }
.project-information-grid { display: grid; grid-template-columns: minmax(280px, 1.15fr) minmax(0, 1fr); gap: 14px; }
.project-information-object { padding: 15px; border-left: 4px solid #e30613; border-radius: 8px; background: #f7f8fa; }
.project-information-object span { display: block; margin-bottom: 7px; color: #e30613; font-size: 8px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.project-information-object p { margin: 0; color: #344054; font-size: 11px; font-weight: 700; line-height: 1.55; }
.project-information-grid > dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.project-information-grid > dl div { min-width: 0; padding: 10px 11px; border: 1px solid #e1e5ea; border-radius: 8px; background: #fff; }
.project-information-grid dt { margin-bottom: 4px; color: #7a8492; font-size: 7px; font-weight: 850; text-transform: uppercase; }
.project-information-grid dd { margin: 0; color: #101828; font-size: 9px; font-weight: 850; line-height: 1.4; overflow-wrap: anywhere; }
.project-contract-library { padding: 18px; }
.project-contract-header > div:last-child { display: flex; align-items: center; gap: 8px; }
.project-document-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.project-document-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #cfd5dd; border-radius: 10px; background: #fff; box-shadow: 0 5px 16px rgb(16 24 40 / 5%); }
.project-document-preview { position: relative; height: 185px; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid #d8dde4; background: linear-gradient(145deg, #f5f7f9, #e6ebf0); }
.project-document-preview object, .project-document-preview img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.project-document-fallback { position: absolute; z-index: 0; width: 110px; height: 135px; display: grid; align-content: center; gap: 9px; padding: 17px; border: 1px solid #cfd5dc; border-radius: 6px; background: #fff; box-shadow: 0 8px 20px rgb(16 24 40 / 12%); }
.project-document-fallback strong { color: #e30613; font-size: 17px; }
.project-document-fallback i { height: 4px; border-radius: 3px; background: #d8dde3; }
.project-document-body { min-width: 0; display: grid; gap: 8px; padding: 12px; }
.project-document-type { color: #e30613; font-size: 7px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.project-document-body h3 { margin: 0; overflow: hidden; font-size: 11px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.project-document-body dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; }
.project-document-body dl div { min-width: 0; padding-left: 7px; border-left: 2px solid #edf0f3; }
.project-document-body dt { margin-bottom: 3px; color: #7a8492; font-size: 6px; font-weight: 850; text-transform: uppercase; }
.project-document-body dd { margin: 0; overflow: hidden; color: #344054; font-size: 7px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.project-document-card footer { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: auto; padding: 0 12px 12px; }
.project-document-card footer .button { width: 100%; justify-content: center; }
.project-document-empty { grid-column: 1 / -1; min-height: 190px; display: grid; place-items: center; align-content: center; gap: 5px; padding: 25px; border: 1px dashed #cbd2da; border-radius: 10px; background: #fafbfc; text-align: center; }
.project-document-empty > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #fff0f1; color: #d20b18; font-size: 24px; }
.project-document-empty h3, .project-document-empty p { margin: 0; }
.project-document-empty h3 { font-size: 13px; }
.project-document-empty p { color: #667085; font-size: 9px; }
.project-exports-panel { display: grid; gap: 14px; margin-bottom: 14px; padding: 0; overflow: visible; border-top: 3px solid #e30613; }
.project-exports-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 18px 0; }
.project-exports-heading h2, .project-exports-heading p { margin: 0; }
.project-exports-heading h2 { font-size: 16px; }
.project-exports-heading p:last-child { margin-top: 4px; color: #667085; font-size: 9px; }
.project-exports-heading > span { flex: 0 0 auto; padding: 6px 9px; border: 1px solid #d9dee5; border-radius: 999px; background: #f7f8fa; color: #475467; font-size: 7px; font-weight: 900; letter-spacing: .06em; }
.project-export-filter-panel { position: relative; z-index: 4; display: grid; gap: 9px; margin: 0 18px; padding: 12px; border: 1px solid #d7dde5; border-radius: 10px; background: #f8fafc; }
.project-export-filter-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.project-export-filter-heading h3, .project-export-filter-heading p { margin: 0; }
.project-export-filter-heading h3 { color: #101828; font-size: 11px; }
.project-export-filter-heading p { margin-top: 3px; color: #667085; font-size: 8px; }
.project-export-fixed-scope { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 5px; }
.project-export-fixed-scope span { padding: 4px 6px; border: 1px solid #d6dce5; border-radius: 999px; background: #fff; color: #475467; font-size: 6.5px; font-weight: 900; letter-spacing: .04em; }
.project-export-fixed-scope strong { min-width: 126px; padding: 5px 8px; border-radius: 6px; background: #eaf7f0; color: #146c43; font-size: 8px; text-align: center; }
.project-export-fixed-scope strong.empty { background: #fff0f1; color: #bd1522; }
.project-export-fixed-scope strong.error { background: #fff6e8; color: #a65300; }
.project-export-filter-form { display: grid; gap: 9px; }
.project-export-filter-toolbar { display: grid; grid-template-columns: minmax(260px, 1fr) auto auto minmax(150px, 190px); align-items: end; gap: 8px; }
.project-export-filter-mode { align-self: end; justify-self: end; padding: 2px; gap: 2px; }
.project-export-filter-mode button { min-height: 28px; padding: 4px 9px; font-size: 9px; }
.project-export-filter-mode button span { min-width: 16px; padding: 1px 3px; }
.project-export-filter-selects { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; gap: 8px; }
.project-export-filter-form label { min-width: 0; display: grid; gap: 4px; }
.project-export-filter-form label[hidden] { display: none; }
.project-export-filter-form label > span { color: #4a5565; font-size: 7px; font-weight: 900; letter-spacing: .035em; text-transform: uppercase; }
.project-export-search input { width: 100%; min-height: 34px; padding: 7px 10px; border: 1px solid #c7cfda; border-radius: 8px; background: #fff; color: #1d2735; font-size: 9px; outline: none; }
.project-export-search input:focus { border-color: #bd1522; box-shadow: 0 0 0 3px rgb(189 21 34 / 10%); }
.project-export-batch { min-width: 0; }
.project-export-batch .modern-select-trigger { min-height: 34px; background: #fff; }
.project-export-filter-form select.filter-native-select,
.project-export-filter-selects select[multiple] {
  position: absolute !important;
  width: 1px !important;
  min-width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.project-export-filter-form .custom-filter-select-trigger { min-height: 34px; grid-template-columns: minmax(0, 1fr) 30px; border-radius: 8px; background: #fff; font-size: 8px; }
.project-export-filter-form .custom-filter-select-trigger > span { padding: 6px 9px; }
.project-export-filter-form .button { min-height: 34px; padding-inline: 12px; }
.project-export-select-menu { width: max(100%, 250px); max-height: 310px; padding: 7px; }
.project-export-select-search { width: 100%; min-height: 34px; margin-bottom: 6px; padding: 7px 32px 7px 9px; border: 1px solid #d0d5dd; border-radius: 7px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%23bd1522' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") no-repeat right 9px center; color: #20252d; font-size: 8px; font-weight: 750; outline: none; text-transform: uppercase; }
.project-export-select-search:focus { border-color: #bd1522; box-shadow: 0 0 0 3px rgb(189 21 34 / 9%); }
.project-export-select-options { max-height: 250px; overflow-y: auto; scrollbar-color: #c1c3c6 #f2f3f4; scrollbar-width: thin; }
.project-export-select-menu.no-matches::after { content: "SIN COINCIDENCIAS"; display: block; padding: 13px 8px; color: #667085; font-size: 8px; font-weight: 850; text-align: center; }
.project-export-filter-panel .active-people-filters { margin-top: 0; padding-top: 8px; }
.project-export-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 10px; padding: 0 18px 18px; }
.project-export-option { min-width: 0; min-height: 158px; display: grid; grid-template-columns: 48px minmax(0, 1fr); grid-template-rows: minmax(72px, 1fr) auto; align-items: start; align-content: stretch; gap: 12px; padding: 13px; overflow: hidden; border: 1px solid #d7dde5; border-radius: 10px; background: linear-gradient(135deg, #fff, #fafbfc); }
.project-export-option.pdf { border-left: 3px solid #e30613; }
.project-export-option.excel { border-left: 3px solid #18794e; }
.project-export-option.camp { border-left: 3px solid #315d91; }
.project-export-filetype { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 9px; background: #eef1f5; color: #344054; font-size: 9px; font-weight: 950; letter-spacing: .04em; }
.project-export-option.excel .project-export-filetype { background: #eaf7f0; color: #146c43; }
.project-export-option.pdf .project-export-filetype { background: #fff0f1; color: #bd1522; }
.project-export-option.camp .project-export-filetype { background: #eef4fb; color: #244f87; }
.project-export-option > div { min-width: 0; align-self: center; overflow-wrap: anywhere; }
.project-export-option small { display: block; margin-bottom: 4px; color: #7a8492; font-size: 6.5px; font-weight: 900; line-height: 1.25; letter-spacing: .06em; }
.project-export-option h3 { margin: 0; color: #101828; font-size: 12px; line-height: 1.25; }
.project-export-option p { margin: 4px 0 0; color: #667085; font-size: 8px; line-height: 1.45; }
.project-export-option .button { min-width: 0; width: 100%; min-height: 38px; grid-column: 1 / -1; align-self: end; justify-content: center; padding: 8px 10px; line-height: 1.25; text-align: center; white-space: normal; }
.project-export-option .button span { font-size: 14px; line-height: 1; }
.project-export-modal { width: min(590px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; border: 1px solid #cfd6df; border-radius: 14px; background: #fff; }
.project-export-progress-card { min-width: 0; display: grid; padding: 0; }
.project-export-modal-header { margin: 0; padding: 20px 22px 16px; background: linear-gradient(135deg, #fff, #fafbfc); }
.project-export-modal-header h2 { margin: 2px 0 0; }
.project-export-progress-body { min-width: 0; padding: 20px 22px; }
.project-export-progress-body > p:first-child { min-height: 16px; margin: 0 0 13px; color: #667085; font-size: 10px; line-height: 1.5; }
.project-export-progress-row { display: grid; grid-template-columns: minmax(0, 1fr) 48px; align-items: center; gap: 10px; }
.project-export-progress { height: 9px; overflow: hidden; border: 1px solid #d9dee5; border-radius: 999px; background: #edf0f3; }
.project-export-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #a80c17, #e30613); transition: width .3s ease; }
.project-export-progress-row > strong { color: #bd1522; font-size: 14px; text-align: right; }
.project-export-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.project-export-modal.is-azure .project-export-stats { grid-template-columns: 1fr; }
.project-export-modal.is-azure [data-export-stat="documents"] { display: none; }
.project-export-stats div { min-width: 0; padding: 11px 12px; border: 1px solid #dce1e7; border-radius: 8px; background: #f8fafc; }
.project-export-stats span, .project-export-stats b { display: block; }
.project-export-stats span { color: #667085; font-size: 7px; font-weight: 850; text-transform: uppercase; }
.project-export-stats b { margin-top: 4px; color: #101828; font-size: 13px; }
.project-export-progress-body .resource-upload-status { margin: 4px 0 0; padding: 9px 10px; border: 1px solid #f2c7ca; border-radius: 7px; background: #fff5f6; line-height: 1.45; }
.project-export-modal-actions { margin: 0; padding: 14px 22px; border-top: 1px solid #e1e5ea; background: #f7f8fa; }
.project-export-modal-actions .button { min-width: 116px; justify-content: center; }

@media (max-width: 1000px) {
  .project-contract-overview { display: grid; grid-template-columns: 1fr; padding-right: 0; }
  .project-contract-overview .project-contract-library { position: static; width: auto; height: auto; min-height: 0; overflow: visible; }
  .project-contract-overview .project-information-grid { grid-template-columns: minmax(280px, 1.15fr) minmax(0, 1fr); }
  .project-contract-overview .project-document-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-contract-overview .project-document-card { height: auto; }
  .project-contract-overview .project-document-preview { flex: none; height: 185px; }
  .project-document-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-information-grid { grid-template-columns: 1fr; }
  .project-export-options { grid-template-columns: 1fr; }
  .project-export-filter-selects { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .projects-heading { align-items: flex-start; flex-direction: column; }
  .projects-grid, .project-document-grid { grid-template-columns: 1fr; }
  .project-record-hero { grid-template-columns: 1fr; }
  .project-record-stats { width: 100%; }
  .project-record-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-section-heading { align-items: flex-start; flex-direction: column; }
  .project-information-grid > dl { grid-template-columns: 1fr; }
  .project-contract-header, .project-contract-header > div:last-child { align-items: stretch; flex-direction: column; }
  .project-contract-header > div:last-child .button { width: 100%; }
  .project-contract-overview .project-information-grid, .project-contract-overview .project-document-grid { grid-template-columns: 1fr; }
  .project-export-stats { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .project-exports-heading { align-items: flex-start; }
  .project-exports-heading > span { display: none; }
  .project-export-filter-panel { margin-inline: 10px; padding: 10px; }
  .project-export-filter-heading { display: grid; }
  .project-export-fixed-scope { justify-content: flex-start; }
  .project-export-filter-toolbar, .project-export-filter-selects { grid-template-columns: 1fr; }
  .project-export-filter-mode { justify-self: stretch; }
  .project-export-filter-mode button { flex: 1; }
  .project-export-option { grid-template-columns: 42px minmax(0, 1fr); }
  .project-export-filetype { width: 42px; height: 42px; }
  .project-export-option .button { grid-column: 1 / -1; width: 100%; }
  .project-export-modal { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); }
  .project-export-modal-header, .project-export-progress-body { padding-inline: 16px; }
  .project-export-modal-actions { padding: 12px 16px; }
}
.dashboard-top-grid {
  grid-template-columns: minmax(360px, 1fr) 420px;
  grid-template-areas: "project report";
  gap: 14px;
  margin-bottom: 14px;
}
.dashboard-top-grid .project-overview { grid-area: project; margin: 0; }
.dashboard-top-grid .dashboard-report-panel {
  grid-area: report;
  grid-template-columns: 1fr;
  align-content: center;
  gap: 10px;
  margin: 0;
  padding: 15px 17px;
}
.dashboard-top-grid .dashboard-report-panel form { grid-template-columns: minmax(0, 1fr) auto; }
.dashboard-top-grid .dashboard-report-panel > small { padding-left: 0; border-left: 0; }
.project-overview {
  border: 1px solid var(--container-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}
.dashboard-project-selector {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: end;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid #e4e8ee;
  background: linear-gradient(135deg, #fafbfc, #fff);
}
.dashboard-project-selector label { min-width: 0; display: grid; gap: 5px; }
.dashboard-project-selector label > span {
  color: #e30613;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.dashboard-project-selector select { width: 100%; min-height: 38px; font-size: 9px; font-weight: 800; }
.dashboard-project-selector > small {
  align-self: center;
  max-width: 230px;
  color: #667085;
  font-size: 8px;
  font-weight: 850;
  line-height: 1.35;
  text-align: right;
}
.project-fact { padding: 16px 18px; }
.project-fact.primary-fact { padding-left: 21px; box-shadow: inset 3px 0 #e30613; }
.project-fact span { color: #667085; }
.project-fact strong { color: #161c25; }
.dashboard-period-panel { border-top: 0; }
.dashboard-period-form { padding: 16px 18px 12px; }
.dashboard-period-shortcuts { gap: 8px; padding: 0 18px 16px; }
.dashboard-period-shortcuts button[data-period] {
  min-height: 34px;
  padding: 6px 15px;
  border-color: #dce1e8;
  border-radius: 7px;
  color: #344054;
  font-size: 9px;
}
.dashboard-period-shortcuts button[data-period]:hover { border-color: #e30613; background: #fff5f5; }
.dashboard-period-shortcuts button[data-period].active,
.dashboard-period-shortcuts button[data-period][aria-pressed="true"] { border-color: #e30613; background: #e30613; color: #fff; box-shadow: 0 3px 8px rgb(227 6 19 / 18%); }
.dashboard-period-shortcuts { align-items: center; }
.dashboard-period-shortcuts .dashboard-period-apply { min-width: 145px; min-height: 34px; margin-left: auto; padding-block: 6px; white-space: nowrap; }
.dashboard-utility-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) 420px;
  align-items: stretch;
  gap: 14px;
  margin-bottom: 14px;
}
.dashboard-utility-grid .dashboard-filter-alert,
.dashboard-utility-grid .dashboard-period-panel {
  min-width: 0;
  height: 242px;
  margin: 0;
}
.dashboard-utility-grid .dashboard-filter-alert {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
body[data-page="dashboard"] .dashboard-utility-grid .dashboard-period-panel { margin: 0; }
.dashboard-utility-grid .dashboard-report-panel {
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
  gap: 10px;
  margin: 0;
  padding: 15px 17px;
}
.dashboard-utility-grid .dashboard-report-panel form { grid-template-columns: minmax(0, 1fr) auto; }
.dashboard-utility-grid .dashboard-report-panel > small { padding-left: 0; border-left: 0; }
.dashboard-report-panel {
  display: grid;
  grid-template-columns: minmax(220px, .9fr) minmax(430px, 1.55fr) minmax(115px, .45fr);
  align-items: center;
  gap: 22px;
  padding: 16px 20px;
  border-left: 0;
}
.dashboard-report-panel form { grid-template-columns: minmax(260px, 1fr) auto; gap: 12px; }
.report-state-filter { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 10px; border: 1px solid #dce1e8; border-left: 3px solid #e30613; border-radius: 8px; background: #fafbfc; animation: report-state-enter .18s ease both; }
.report-state-filter[hidden] { display: none; }
.report-state-filter label { min-width: 0; display: grid; gap: 4px; }
.report-state-filter label > span { color: #667085; font-size: 7px; font-weight: 850; letter-spacing: .035em; text-transform: uppercase; }
.report-state-filter input, .report-state-filter .modern-select-trigger { min-height: 36px; }
.report-state-filter > small { color: #667085; font-size: 7px; font-weight: 750; }
@keyframes report-state-enter { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.dashboard-report-panel > small { margin: 0; padding-left: 20px; border-left: 1px solid #e5e9ef; }
.dashboard-filter-alert {
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid var(--container-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}
.dashboard-filter-alert > header {
  min-height: 88px;
  padding: 16px 18px;
  border-bottom: 1px solid #e3e7ed;
  background: #fff;
}
.dashboard-filter-alert header span { color: #e30613; font-size: 9px; letter-spacing: .09em; }
.dashboard-filter-alert h3 { margin: 4px 0 3px; color: #101828; font-size: 14px; }
.dashboard-filter-alert p { color: #667085; font-size: 9px; }
.dashboard-filter-alert > header > strong {
  min-width: 42px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0 10px;
  border: 1px solid #d5dbe4;
  border-radius: 9px;
  background: #f8fafc;
  color: #344054;
  font-size: 16px;
}
.dashboard-filter-alert-list {
  flex: 1 1 auto;
  min-height: 0;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 1px;
  overflow-x: hidden;
  overflow-y: auto;
  background: #dfe4eb;
  scrollbar-color: #aeb8c5 transparent;
  scrollbar-width: thin;
}
.dashboard-filter-alert-list::-webkit-scrollbar { width: 7px; }
.dashboard-filter-alert-list::-webkit-scrollbar-track { background: transparent; }
.dashboard-filter-alert-list::-webkit-scrollbar-thumb { border: 2px solid #fff; border-radius: 999px; background: #aeb8c5; }
.dashboard-filter-alert-list a { min-height: 50px; background: #fff; }
.dashboard-filter-alert-list a:hover { background: #f8fafc; }
.dashboard-filter-alert-list strong { color: #101828; }
.dashboard-filter-alert-list span { color: #667085; }
.dashboard-filter-alert:not(.has-followups) {
  border-color: var(--container-line);
  background: #fff;
  box-shadow: var(--shadow);
}
.dashboard-filter-alert:not(.has-followups) > header { border-bottom-color: #e3e7ed; }
.dashboard-filter-alert:not(.has-followups) header span { color: #e30613; }
.dashboard-filter-alert:not(.has-followups) h3 { color: #101828; }
.dashboard-filter-alert:not(.has-followups) p { color: #667085; }
.dashboard-filter-alert:not(.has-followups) .dashboard-filter-alert-list { background: #dfe4eb; }
.dashboard-filter-alert.has-followups { border-color: #d9c38f; }
.dashboard-filter-alert.has-followups > header { border-bottom-color: #eadfbe; }
.dashboard-filter-alert.has-followups > header > strong { border-color: #e2cc98; background: #fff8e8; color: #9a6a17; }
.dashboard-filter-alert-empty { min-height: 42px; display: flex; align-items: center; padding: 10px 18px; background: #fff; color: #667085; }

/* Personal: contenedores con una separación visual más clara. */
body[data-page="personal"] .filter-panel,
body[data-page="personal"] .table-panel {
  border-color: var(--container-line);
  box-shadow: var(--shadow);
}
body[data-page="personal"] .filter-panel-heading,
body[data-page="personal"] .table-panel > .panel-header {
  border-bottom-color: #c5ccd6;
}
body[data-page="personal"] .people-status-groups { background: #edf0f4; }
body[data-page="personal"] .people-status-group {
  border-color: #c7ced8;
  box-shadow: 0 2px 8px rgb(16 24 40 / 4%);
}
body[data-page="personal"] .people-status-group[open] > summary { border-bottom-color: #c3cad4; }
.dashboard-metric-group {
  padding: 14px;
  border: 1px solid var(--container-line);
  border-top: 1px solid var(--container-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}
.dashboard-insight-grid { grid-template-columns: minmax(0, 1.15fr) minmax(390px, .85fr); gap: 14px; }
.dashboard-insight-grid { grid-template-columns: minmax(0, 1fr); }
.dashboard-metric-heading { padding: 2px 2px 4px; }
.status-metric-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.status-metric-card { --status-tone: #667085; --status-soft: #f2f4f7; min-width: 0; min-height: 112px; display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: start; gap: 11px; padding: 14px; border: 1px solid #c9d0da; border-radius: 10px; background: #fff; cursor: pointer; box-shadow: 0 2px 8px rgb(16 24 40 / 4%); transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.status-metric-card:hover { transform: translateY(-2px); border-color: var(--status-tone); box-shadow: 0 9px 22px rgb(16 24 40 / 8%); }
.status-metric-card:active { transform: translateY(0); }
.status-metric-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 9px; background: var(--status-soft); color: var(--status-tone); }
.status-metric-icon svg { width: 22px; height: 22px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.status-metric-card > div { min-width: 0; }
.status-metric-card > div > span { display: block; min-height: 30px; color: #344054; font-size: 9px; font-weight: 800; line-height: 1.35; text-transform: uppercase; }
.status-metric-card strong { display: block; margin: 2px 0 4px; color: var(--status-tone); font-size: 27px; line-height: 1; }
.status-metric-card small { display: block; overflow: hidden; color: #7a8492; font-size: 8px; line-height: 1.3; text-overflow: ellipsis; }
.status-total-summary { min-width: 108px; display: grid; grid-template-columns: auto auto; align-items: center; gap: 9px; padding: 8px 12px; border: 1px solid #dce3eb; border-radius: 9px; background: #f8fafc; }
.status-total-summary span { color: #667085; font-size: 8px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.status-total-summary strong { color: #101828; font-size: 22px; line-height: 1; }
.status-capture { --status-tone: #667085; --status-soft: #f2f4f7; }
.status-correction { --status-tone: #c4212d; --status-soft: #fff0f1; }
.status-validation { --status-tone: #c27700; --status-soft: #fff7e8; }
.status-ready { --status-tone: #0f6ea8; --status-soft: #edf7fc; }
.status-sent { --status-tone: #2563eb; --status-soft: #edf4ff; }
.status-approved { --status-tone: #16813d; --status-soft: #edf8f0; }
.status-waitlist { --status-tone: #b86b06; --status-soft: #fff6df; }
.status-other-project { --status-tone: #4f46e5; --status-soft: #eef2ff; }
.status-regulation-sent { --status-tone: #b7790c; --status-soft: #fff7e5; }
.status-conforming { --status-tone: #16813d; --status-soft: #edf8f0; }
.status-nonconforming { --status-tone: #c4212d; --status-soft: #fff0f1; }
.status-not-approved { --status-tone: #dc2626; --status-soft: #fff0f1; }
.dashboard-period-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 4px 2px 12px; padding-top: 15px; border-top: 1px solid #e7eaf0; }
.dashboard-period-section-heading h2 { margin: 0 0 3px; font-size: 16px; }
.dashboard-period-section-heading p { margin: 0; font-size: 10px; }
.dashboard-scope-badge, .dashboard-total-badge { border-radius: 999px; }
.dashboard-scope-badge.filtered { border-color: #d8e4ff; background: #eef4ff; color: #245dcc; }
.dashboard-scope-badge.current { border-color: #d5eadb; background: #edf8f0; color: #16813d; }
.dashboard-total-badge { background: #edf8f0; color: #16813d; }
.stat-card {
  min-height: 106px;
  padding: 16px 16px 14px 68px;
  border-color: #c9d0da;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgb(16 24 40 / 4%);
}
.stat-card::before {
  inset: 15px auto auto 15px;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: #f2f4f7;
}
.stat-card::after {
  content: "";
  position: absolute;
  top: 25px;
  left: 26px;
  width: 14px;
  height: 14px;
  border: 2px solid #667085;
  border-radius: 50%;
}
.stat-card.metric-sent::before { background: #edf4ff; }
.stat-card.metric-sent::after { border-color: #2563eb; transform: rotate(-20deg); }
.stat-card.metric-released::before, .stat-card.approved::before { background: #edf8f0; }
.stat-card.metric-released::after, .stat-card.approved::after { border-color: #16813d; }
.stat-card.metric-rejected::before, .stat-card.rejected::before { background: #fff0f1; }
.stat-card.metric-rejected::after, .stat-card.rejected::after { border-color: #dc2626; border-radius: 3px; transform: rotate(45deg); }
.stat-card.warning::before { background: #fff5eb; }
.stat-card.warning::after { border-color: #ea580c; }
.stat-card span { color: #344054; font-size: 11px; }
.stat-card strong { margin-top: 8px; color: #101828; font-size: 28px; }
.stat-card small { color: #667085; }
body[data-page="dashboard"] .stat-card { padding: 16px 16px 14px 68px; }
body[data-page="dashboard"] .stat-card strong { margin-top: 8px; font-size: 28px; }
.dashboard-current-results .current-metrics-grid .stat-card.approved { grid-column: auto; }
.dashboard-activity-panel, .dashboard-chart-panel { border-top: 0; }
.dashboard-activity-header { align-items: center; }
.activity-display-controls { min-width: 330px; display: grid; justify-items: end; gap: 6px; }
.activity-view-switch { display: inline-flex; flex: 0 0 auto; gap: 3px; padding: 3px; border: 1px solid #dce1e8; border-radius: 8px; background: #f7f8fa; }
.activity-view-switch button { min-height: 30px; padding: 5px 12px; border: 0; border-radius: 6px; background: transparent; color: #667085; cursor: pointer; font-size: 9px; font-weight: 800; text-transform: uppercase; transition: background .15s ease, color .15s ease, box-shadow .15s ease; }
.activity-view-switch button:hover { color: #b9000b; }
.activity-view-switch button.active,
.activity-view-switch button[aria-pressed="true"] { background: #e30613; color: #fff; box-shadow: 0 3px 8px rgb(227 6 19 / 18%); }
.activity-chart-options {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-5px) scale(.985);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.activity-chart-options.is-visible { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0) scale(1); transition-delay: 0s; }
.activity-mode-switch {
  min-height: 28px;
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-5px) scale(.98);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s, border-color .2s ease, background .2s ease;
}
.activity-mode-switch.is-visible {
  border-color: #e1e5eb;
  background: #fff;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition-delay: 0s;
}
.activity-mode-switch button { min-height: 24px; padding: 4px 9px; border: 0; border-radius: 5px; background: transparent; color: #667085; cursor: pointer; font-size: 8px; font-weight: 800; text-transform: uppercase; transition: background .15s ease, color .15s ease, box-shadow .15s ease; }
.activity-mode-switch button:hover { background: #f5f6f8; color: #b9000b; }
.activity-mode-switch button.active,
.activity-mode-switch button[aria-pressed="true"] { background: #fff0f1; color: #b9000b; box-shadow: inset 0 0 0 1px #efc2c5; }
.activity-series-filter { min-width: 150px; display: grid; grid-template-columns: auto minmax(108px, 1fr); align-items: center; gap: 6px; }
.activity-series-filter > span { color: #667085; font-size: 8px; font-weight: 800; text-transform: uppercase; white-space: nowrap; }
.activity-series-filter .modern-select-trigger { min-height: 30px; grid-template-columns: minmax(0, 1fr) 28px; font-size: 8px; text-transform: uppercase; }
.activity-series-filter .modern-select-trigger > span { padding: 5px 7px; }
body[data-page="dashboard"] .dashboard-activity-panel { display: flex; flex-direction: column; }
body[data-page="dashboard"] .dashboard-activity-panel .dashboard-activity-content { height: 350px; min-height: 350px; max-height: 350px; flex: 0 0 350px; overflow: hidden; background: #fff; }
.dashboard-activity-content > .dashboard-activity-chart,
.dashboard-activity-content > .dashboard-activity-wrap { height: 100%; min-height: 0; max-height: 100%; box-sizing: border-box; }
.dashboard-activity-chart { padding: 13px 17px 10px; background: #fff; }
body[data-page="dashboard"] .dashboard-activity-panel .dashboard-activity-wrap { max-height: none; overflow: auto; }
.activity-chart-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 16px; min-height: 28px; padding: 2px 4px 8px; color: #667085; font-size: 9px; font-weight: 650; }
.activity-chart-legend span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.activity-chart-legend i { width: 9px; height: 9px; border-radius: 50%; background: var(--series-color, #7b8491); }
.activity-chart-legend i.sent { background: #2563eb; }
.activity-chart-legend i.released { background: #16813d; }
.activity-chart-legend i.rejected { background: #dc2626; }
.activity-chart-legend strong { color: #101828; font-size: 10px; }
.activity-chart-canvas { width: 100%; overflow: hidden; }
.activity-chart-canvas svg { display: block; width: 100%; height: auto; min-height: 245px; overflow: visible; }
.activity-chart-grid line { stroke: #e9edf2; stroke-width: 1; }
.activity-chart-grid text { fill: #98a2b3; font-size: 11px; text-anchor: end; }
.activity-chart-x-label { fill: #667085; font-size: 10px; font-weight: 700; text-anchor: middle; }
.activity-chart-line { fill: none; stroke: var(--series-color, #7b8491); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.activity-chart-line.sent { stroke: #2563eb; }
.activity-chart-line.released { stroke: #16813d; }
.activity-chart-line.rejected { stroke: #dc2626; }
.activity-chart-dot { fill: #fff; stroke: var(--series-color, #7b8491); stroke-width: 3; vector-effect: non-scaling-stroke; }
.activity-chart-dot.sent { stroke: #2563eb; }
.activity-chart-dot.released { stroke: #16813d; }
.activity-chart-dot.rejected { stroke: #dc2626; }
.dashboard-activity-chart.animate .activity-chart-line { stroke-dasharray: 2200; stroke-dashoffset: 2200; animation: activity-line-draw .8s cubic-bezier(.22,.8,.35,1) forwards; }
.dashboard-activity-chart.animate .activity-chart-dot { opacity: 0; transform-box: fill-box; transform-origin: center; animation: activity-dot-in .25s ease-out forwards; animation-delay: calc(.3s + var(--dot-delay)); }
.dashboard-chart-empty { min-height: 270px; display: grid; place-items: center; padding: 24px; color: #667085; font-size: 10px; font-weight: 700; text-align: center; }
@keyframes activity-line-draw { to { stroke-dashoffset: 0; } }
@keyframes activity-dot-in { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
.dashboard-activity-table th, .data-table th { background: #f8fafc; color: #667085; }
.activity-table-heading { display: inline-flex; align-items: center; justify-content: center; gap: 5px; white-space: nowrap; }
.activity-table-heading i { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--series-color, #64748b); }
.status-chart { background: #fff; }
.bar-track { height: 8px; background: #edf0f4; }
.privacy-banner { border-color: #dce3eb; background: #f8fafc; }
body[data-page="dashboard"] .dashboard-period-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
body[data-page="dashboard"] .dashboard-period-title { grid-column: 1 / -1; }
body[data-page="dashboard"] .dashboard-period-form > .button { grid-column: 1 / -1; justify-self: stretch; width: 100%; min-width: 0; white-space: nowrap; }

/* Listados y filtros */
.filter-panel { padding: 18px; border-top: 0; }
.filter-panel-heading { margin: 0 0 15px; }
.filter-panel-heading h2 { font-size: 17px; }
.filters { gap: 13px; }
.filter-panel .filters select, .custom-filter-select-trigger { background-color: #fff; }
.table-panel { border-top: 0; }
.table-toolbar { min-height: 64px; }
.data-table th { height: 44px; border-right: 0; font-size: 8px; }
.data-table td { padding: 14px 13px; border-right: 0; border-bottom-color: #edf0f3; }
.data-table tbody tr:nth-child(even) { background: #fbfcfd; }
.data-table tbody tr:hover { background: #fff7f7; box-shadow: inset 3px 0 0 #e30613; }
.person-entry-button { border-color: transparent; background: transparent; color: #b9000b; box-shadow: none; }
.person-entry-button:hover { border-color: #f0c4c7; background: #fff0f1; box-shadow: none; }
.people-status-group { border-color: #c7ced8; border-radius: 10px; }
.people-status-group > summary { background: #f8fafc; }

/* Formularios y expedientes */
.modern-form-heading { border-color: var(--container-line); border-top: 0; border-left: 4px solid #e30613; background: #fff; box-shadow: var(--shadow); }
.form-section { border-top: 0; }
.section-title { background: #f8fafc; }
.modern-record-form .section-title > span { background: linear-gradient(145deg, #f20a18, #c9000c); color: #fff; }
.category-option:has(input:checked) { border-color: #e30613; background: #fff4f4; box-shadow: 0 0 0 2px rgb(227 6 19 / 8%); }
.sticky-actions { background: rgb(247 248 250 / 92%); }
.record-hero { border-top: 0; border-left: 4px solid #e30613; }
.record-hero::after { background: radial-gradient(circle at top right, rgb(227 6 19 / 6%), transparent 68%); }
.record-title-line h1 { color: #101828; }
.record-meta-lines dt, .detail-grid dt, .personal-detail-grid dt { color: #c7000c; }
.tabs { border-color: var(--container-line); border-radius: 10px; background: #fff; }
.tabs button { border-radius: 7px; background: transparent; color: #667085; }
.tabs button.active { border-color: #e30613; background: #e30613; color: #fff; box-shadow: 0 4px 12px rgb(227 6 19 / 18%); }
.tabs button.active::after { display: none; }
.personal-group, .document-card, .validation-card, .filter-action-card { border-color: #c7ced8; border-radius: 10px; box-shadow: 0 2px 8px rgb(16 24 40 / 4%); }
.filter-candidate-card, .validation-day-group, .person-preview-group { border-color: #c7ced8; border-radius: 10px; box-shadow: 0 2px 8px rgb(16 24 40 / 4%); }
.personal-group-header, .validation-card-head { background: #f8fafc; }
.document-card.received { border-top-color: #16813d; }
.document-card.missing { border-top-color: #e30613; }

/* Secciones administrativas */
.validation-sync-panel, .validation-inbox-panel, .integration-panel, .backup-control-panel, .user-create-panel, .audit-filter-panel { border-top: 0; }
.validation-sync-panel, .integration-panel, .backup-control-panel { border-left: 4px solid #e30613; }
.validation-filter-bar, .audit-filters { background: #f8fafc; }
.validation-hour-group, .validation-email-person { border-color: #e1e6ed; }
.backup-control-icon, .gmail-mark { background: #fff0f1; color: #e30613; }
.integration-brand { background: #f8fafc; }

.login-page {
  background:
    radial-gradient(circle at 18% 16%, rgb(227 6 19 / 18%), transparent 27%),
    radial-gradient(circle at 82% 78%, rgb(44 56 72 / 34%), transparent 30%),
    #070c12;
}
.login-card { border: 1px solid rgb(255 255 255 / 10%); border-radius: 15px; box-shadow: 0 28px 85px rgb(0 0 0 / 45%); }
.login-brand { border-bottom-color: #e30613; }
.login-submit { background: linear-gradient(180deg, #f20a18, #d9000d) !important; }

/* Entrada uniforme para cada vista de la aplicación. */
.main-content > * {
  animation: page-content-enter .34s cubic-bezier(.2, .72, .3, 1) both;
}
.main-content > :nth-child(2) { animation-delay: .035s; }
.main-content > :nth-child(3) { animation-delay: .07s; }
.main-content > :nth-child(4) { animation-delay: .095s; }
.main-content > :nth-child(n+5) { animation-delay: .115s; }
@keyframes page-content-enter {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1180px) {
  .dashboard-report-panel { grid-template-columns: 1fr; gap: 12px; }
  .dashboard-report-panel > small { padding-left: 0; border-left: 0; }
  .course-item { grid-template-columns: minmax(220px, 1fr) minmax(320px, 1.3fr) auto; }
  .course-item-positions { grid-column: 1 / 3; }
  .course-item-footer { grid-column: 3; grid-row: 1 / 3; align-self: center; }
  .resource-item { grid-template-columns: 70px minmax(220px, 1fr) auto; }
  .resource-item-details { grid-column: 2; }
  .resource-item-actions { grid-column: 3; grid-row: 1 / 3; }
}

@media (max-width: 1350px) and (min-width: 1181px) {
  .dashboard-period-form { grid-template-columns: 1fr 1fr; }
  .dashboard-period-title { grid-column: 1 / -1; }
  .dashboard-period-form .button { grid-column: 1 / -1; }
  .dashboard-report-panel { grid-template-columns: minmax(210px, .75fr) minmax(390px, 1.45fr) minmax(105px, .4fr); gap: 14px; }
  .dashboard-report-panel form { grid-template-columns: minmax(220px, 1fr) auto; }
}

@media (max-width: 1450px) {
  .status-metric-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  body[data-page="dashboard"] .dashboard-period-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  body[data-page="dashboard"] .dashboard-period-title { grid-column: 1 / -1; }
  body[data-page="dashboard"] .dashboard-period-form .button { grid-column: 1 / -1; justify-self: stretch; width: 100%; }
  .course-item { grid-template-columns: minmax(220px, 1fr) minmax(320px, 1.3fr) auto; }
  .course-item-positions { grid-column: 1 / 3; }
  .course-item-footer { grid-column: 3; grid-row: 1 / 3; align-self: center; }
  .resource-item { grid-template-columns: 70px minmax(220px, 1fr) auto; }
  .resource-item-details { grid-column: 2; }
  .resource-item-actions { grid-column: 3; grid-row: 1 / 3; }
}

@media (max-width: 1000px) {
  .status-metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dashboard-top-grid { grid-template-columns: 1fr; grid-template-areas: "project" "report"; }
  .dashboard-utility-grid { grid-template-columns: 1fr; }
  .dashboard-utility-grid .dashboard-period-panel { height: auto; }
  .dashboard-utility-grid .dashboard-filter-alert { height: 242px; }
  .dashboard-insight-grid { grid-template-columns: 1fr; }
  .foreign-route-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foreign-route-layout { height: auto; grid-template-columns: 1fr; }
  .foreign-route-map-wrap { height: 350px; border-top: 1px solid #d8dee7; border-left: 0; }
  .foreign-route-sidebar { height: 360px; }
}

@media (max-width: 900px) {
  .sidebar { width: 254px; }
  .app-shell { margin-left: 0; }
  .topbar { height: 58px; background: rgb(255 255 255 / 95%); }
  .main-content { padding: 22px 18px 42px; }
  .credential-page-heading, .person-credential-stage { max-width: calc(100vw - 36px); }
  .course-person-header { display: none; }
  .course-people-list { padding: 10px; gap: 9px; background: #f7f8fa; }
  .course-person-row:not(.course-person-header) { grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid #ccd3dc; border-radius: 9px; background: #fff; box-shadow: 0 2px 7px rgb(16 24 40 / 4%); }
  .course-person-row:not(.course-person-header) > div { display: block; padding: 9px 11px; }
  .course-person-row:not(.course-person-header) > div + div { border-left: 0; }
  .course-person-row:not(.course-person-header) > div:nth-child(2) { grid-column: 1 / -1; }
  .course-person-cell-label { display: block; margin-bottom: 3px; color: #667085; font-size: 7px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
  .course-item, .resource-item { grid-template-columns: 62px minmax(0, 1fr); gap: 10px; }
  .course-item-identity { grid-column: 1 / -1; }
  .course-item-details, .course-item-positions, .course-item-footer,
  .resource-item-details, .resource-item-actions { grid-column: 2; grid-row: auto; }
  .course-item-footer { min-width: 0; justify-items: start; }
  .course-item-footer > small { text-align: left; }
  .resource-item-file { grid-row: 1 / 4; align-self: start; }
  .resource-item-actions { justify-content: flex-start; }
}

@media (max-width: 700px) {
  .export-column-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .export-column-toolbar { align-items: flex-start; flex-direction: column; }
  .resources-heading { align-items: flex-start; }
  body[data-page="mapa-interactivo"] .resources-heading { flex-wrap: wrap; }
  body[data-page="mapa-interactivo"] .route-report-button { width: 100%; }
  .resources-heading-actions { align-items: flex-end; flex-direction: column; }
  .foreign-route-header { align-items: flex-start; flex-direction: column; }
  .foreign-route-actions { width: 100%; justify-content: space-between; }
  .foreign-route-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foreign-route-summary > div:nth-child(2) { border-right: 0; }
  .foreign-route-summary > div:nth-child(-n+2) { border-bottom: 1px solid #d8dee7; }
  .foreign-route-filters { grid-template-columns: 1fr; }
  .foreign-route-filters .button { width: 100%; }
  .foreign-route-map-wrap, .foreign-route-map { height: 320px; }
  .foreign-route-layout { min-height: 0; }
  .foreign-route-footer { align-items: flex-start; flex-direction: column; gap: 4px; }
  .foreign-route-legend { right: 9px; left: 9px; justify-content: center; }
  .foreign-route-groups { padding: 8px; }
  .route-city-group th, .route-city-group td { padding: 7px 8px; font-size: 7.5px; }
  .route-city-group th:first-child, .route-city-group td:first-child { width: 49%; }
  .route-city-group th:nth-child(2), .route-city-group td:nth-child(2) { width: 27%; }
  .route-city-group th:last-child, .route-city-group td:last-child { width: 24%; }
  .resource-list, .course-list { padding-inline: 12px; }
  .course-item-details, .resource-item-details { grid-template-columns: 1fr; gap: 7px; }
  .course-item-details div, .resource-item-details div { padding-left: 8px; }
  .course-item-actions, .resource-item-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .course-item-actions .button, .resource-item-actions .button { min-width: 0; width: 100%; }
  .course-form-grid, .course-position-selector > div { grid-template-columns: 1fr; }
  .course-field-wide { grid-column: auto; }
  .course-detail-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .course-detail-fact { border-right: 1px solid #e0e4ea; }
  .course-detail-fact:nth-child(2n) { border-right: 0; }
  .course-detail-fact-wide { grid-column: 1 / -1; }
  .page-heading { min-height: 0; }
  .dashboard-report-panel form { grid-template-columns: 1fr; }
  .dashboard-utility-grid .dashboard-report-panel form { grid-template-columns: 1fr; }
  body[data-page="dashboard"] .dashboard-period-form { grid-template-columns: 1fr; }
  body[data-page="dashboard"] .dashboard-period-title,
  body[data-page="dashboard"] .dashboard-period-form .button { grid-column: auto; }
  .dashboard-activity-header { align-items: flex-start; flex-direction: column; }
  .activity-display-controls { width: 100%; justify-items: stretch; }
  .status-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .status-metric-card { min-height: 102px; grid-template-columns: 34px minmax(0, 1fr); gap: 9px; padding: 12px; }
  .status-metric-icon { width: 34px; height: 34px; }
  .status-metric-icon svg { width: 19px; height: 19px; }
  .dashboard-period-section-heading { align-items: flex-start; flex-direction: column; }
  .activity-view-switch { align-self: stretch; }
  .activity-view-switch button { flex: 1; }
  .activity-mode-switch { width: 100%; }
  .activity-mode-switch button { flex: 1; }
  .activity-chart-options { width: 100%; align-items: stretch; flex-direction: column; }
  .activity-series-filter { width: 100%; grid-template-columns: 88px minmax(0, 1fr); }
  .dashboard-activity-chart { min-height: 280px; padding-inline: 8px; }
  body[data-page="dashboard"] .dashboard-activity-panel .dashboard-activity-content { height: 320px; min-height: 320px; max-height: 320px; flex-basis: 320px; }
  .dashboard-period-shortcuts .dashboard-period-apply { flex: 1 0 100%; width: 100%; margin-left: 0; }
  .activity-chart-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: start; gap: 6px 10px; }
  .activity-chart-canvas { overflow-x: auto; }
  .activity-chart-canvas svg { width: 760px; max-width: none; }
  body[data-page="dashboard"] .stat-card { min-height: 104px; padding-left: 62px; }
  .stat-card::before { left: 13px; }
  .stat-card::after { left: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .main-content > * { animation: none; }
  .dashboard-activity-chart.animate .activity-chart-line,
  .dashboard-activity-chart.animate .activity-chart-dot { animation: none; opacity: 1; stroke-dashoffset: 0; }
  .activity-mode-switch { transition: none; }
  .activity-chart-options { transition: none; }
  .modern-select-menu:not([hidden]),
  .custom-filter-select-menu:not([hidden]),
  .modern-select-menu:not([hidden]) .modern-select-option,
  .custom-filter-select-menu:not([hidden]) .custom-filter-select-option { animation: none; }
}

@media (max-width: 480px) {
  .main-content { padding-inline: 12px; }
  h1, body[data-page="dashboard"] .page-heading h1 { font-size: 27px; }
  .stat-grid, .stat-grid.four-metrics { grid-template-columns: 1fr 1fr; }
  body[data-page="dashboard"] .stat-card { min-height: 98px; padding: 13px 11px 12px; }
  .stat-card::before, .stat-card::after { display: none; }
  .stat-card strong { font-size: 25px; }
  .project-overview { grid-template-columns: 1fr; }
  .dashboard-project-selector { grid-template-columns: 1fr; align-items: stretch; }
  .dashboard-project-selector > small { max-width: none; text-align: left; }
  .project-fact { border-top: 1px solid var(--line); border-left: 0; }
  .project-fact.primary-fact { border-top: 0; }
  .course-detail-summary-grid, .course-person-row:not(.course-person-header) { grid-template-columns: 1fr; }
  .course-detail-fact, .course-detail-fact:nth-child(2n) { border-right: 0; }
  .course-detail-fact-wide, .course-person-row:not(.course-person-header) > div:nth-child(2) { grid-column: auto; }
}
