/* Paleta documentada en Planeación 2027. NOMAD23 conduce las superficies
   y la navegación; salvia y arcilla de Grupo Vargo distinguen indicadores. */
:root {
  --ink: #f6f2ee;
  --sub: #d8cdc8;
  --paper: #fff;
  --glass-dark:
    radial-gradient(ellipse 90% 58px at 15% -30px,rgba(255,255,255,.77),transparent 96%),
    radial-gradient(ellipse 90% 34px at 96% calc(100% + 23px),rgba(255,255,255,.64),transparent 96%),
    linear-gradient(116deg,transparent 8%,rgba(255,255,255,.025) 20%,rgba(255,255,255,.16) 30%,rgba(255,255,255,.035) 35%,transparent 47%),
    linear-gradient(130deg,rgba(59,52,50,.44),rgba(27,24,23,.72) 27%,rgba(32,29,28,.74) 72%,rgba(61,54,52,.47));
  --glass-shadow: inset 0 1px 1px rgba(255,255,255,.91),inset 1px 0 2px rgba(255,255,255,.32),
    inset 0 -2px 3px rgba(255,255,255,.24),0 1px 3px rgba(40,34,33,.22),0 12px 24px -13px rgba(40,34,33,.46);
  --red: #f0b4a7;
  --line: rgba(216,205,200,.22);
  --olive: #d8cdc8;
  --olive-dark: #726765;
  --gold: #e7d7c9;
}
html { background: #fff !important; }
body { min-height: 100vh; isolation: isolate; }
body::before { display: none; }
#dashboard-isotype-background img {
  height: auto; right: auto; transform: translate(-50%,-50%); filter: brightness(0);
}
#dashboard-isotype-background #dashboard-isotype-n {
  width: min(50vw,72svh,54rem); left: 23%; top: 38%; opacity: .17;
}
#dashboard-isotype-background #dashboard-isotype-secondary {
  width: min(36vw,53svh,38rem); left: 81%; top: 70%; opacity: .13;
}
@keyframes nomad-float { from { translate: -1vw -.8vh; } to { translate: 1vw 1.2vh; } }
@media (prefers-reduced-motion: no-preference) {
  #dashboard-isotype-n { animation: nomad-float 9s ease-in-out infinite alternate; }
  #dashboard-isotype-secondary { animation: nomad-float 11s -5s ease-in-out infinite alternate-reverse; }
}
.workspace, .sticky-top, .kpis, .card, footer { max-width: none; }
.sticky-top { width: 100%; margin-inline: auto; }
.workspace { width: 100%; margin-inline: auto; }
.sticky-top {
  background: var(--glass-dark) !important;
}
.sticky-top .main-operation.activo, .subnav button[aria-pressed=true] {
  color: #201d1c; background: #d8cdc8; border-color: #d8cdc8; box-shadow: 0 3px 16px rgba(114,103,101,.26);
}
.sticky-top .main-operation:not(.activo):hover, .secondary:hover { background: #504a48; border-color: #8f8380; }
.primary { background: #e1d7d3; color: #231f1f; border-color: #e1d7d3; }
.primary:hover { background: #f6f2ee; }
.eyebrow { color: #d8cdc8; }
.headline { gap: 14px 24px; }
.headline h1 { font-size: clamp(25px,2.05vw,37px); }
.headline p { line-height: 1.5; }
.panel-view, .workspace, .split>*, .card, .filters>.field-inline, .field, .field-inline, .controls { min-width: 0; }
.panel-view:focus { outline: none; }
.card, .kpi, dialog {
  background: var(--glass-dark);
}
.card, .kpi, .sticky-top, dialog {
  border: 1px solid rgba(255,255,255,.52);
  border-radius: 18px;
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(9px) saturate(135%);
  backdrop-filter: blur(9px) saturate(135%);
}
.kpi:nth-child(3) { border-bottom-color: #c4c7af; }
.kpi:nth-child(4) { border-bottom-color: #d6b7a5; }
.kpi::before, .card::before {
  inset: 0; width: auto; height: auto; border-radius: inherit;
  padding: 1.5px; filter: none;
  background: linear-gradient(132deg,#fff 0%,rgba(255,255,255,.12) 24%,transparent 45%,rgba(255,255,255,.7) 77%,transparent 95%);
  mask: linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  mask-composite: exclude; pointer-events: none;
}
.kpi, .card { --sub: #f1eae6; }
.kpi-val { text-shadow: 0 1px 3px rgba(28,24,23,.33); }
dialog::backdrop { background: rgba(27,24,23,.57); }
@supports not (mask-composite: exclude) {
  .kpi::before, .card::before { display: none; }
}
.kpis { grid-template-columns: repeat(4,minmax(0,1fr)); }
.metrics .kpi-val { font-size: clamp(25px,2.5vw,43px); line-height: 1.08; }
.btn, button, .table-link, input, select { touch-action: manipulation; }
.table-link { color: #f2decd; }
.bar-fill { background: #b9aba7; }
.trend-row .bar-fill { background: linear-gradient(90deg,#726765,#ddd2ce); }
.panel table.tbl { width: 100%; font-size: 13px; }
.tbl th, .tbl td { line-height: 1.45; }
.tbl thead th { color: #e2dbd7; background: #3d3837; }
.table-wrap {
  max-width: 100%; overflow: auto; overscroll-behavior-x: contain; scrollbar-gutter: auto;
  scrollbar-color: #8f8380 #282523; -webkit-overflow-scrolling: touch;
}
.table-wrap:focus-visible { outline: 2px solid #d8cdc8; outline-offset: -2px; }
.table-wrap .tbl td:not(:first-child) { font-variant-numeric: tabular-nums; }
.table-wrap .tbl td { overflow-wrap: break-word; }
.field input, .field select, .field textarea, .field-inline input, .field-inline select {
  width: 100%; max-width: 100%; color: #f6f2ee; background: #34302f; border-color: #847876;
}
.primary, .secondary, .field input, .field select, .field-inline input, .field-inline select { min-height: 40px; }
.dialog-head, .dialog-body, .dialog-body form, .form-grid { min-width: 0; }
.dialog-head h2, .dialog-body p, .history li { overflow-wrap: anywhere; }
.dialog-head .icon-button { flex: 0 0 auto; }
.dialog-body form { padding: 1px; }
dialog { max-width: calc(100vw - 20px); max-height: calc(100dvh - 24px); overscroll-behavior: contain; }
.card h2 { line-height: 1.32; }
.pair { flex-wrap: wrap; }
.utility #identity { overflow-wrap: anywhere; }
.sticky-top .nav-bar { min-width: 0; }
@media (max-width: 1080px) {
  .sticky-top { flex-wrap: wrap; justify-content: space-between; }
  .sticky-top header { flex: 1 1 325px; }
  .sticky-top .nav-bar { flex: 1 1 auto; margin-inline-start: 0; }
  .panel table.tbl { font-size: 12px; }
  .table-wrap .tbl th, .table-wrap .tbl td { padding: 9px 10px; }
}
@media (max-width: 900px) {
  .sticky-top, .workspace { width: 100% !important; margin-inline: auto !important; }
  .sticky-top { padding: 12px 15px !important; gap: 10px; }
  .sticky-top header { flex: 1 1 100%; }
  .sticky-top .nav-bar, .sticky-top nav { width: 100%; }
  .sticky-top nav { display: flex; justify-content: flex-start; flex-wrap: wrap; }
  .sticky-top .main-operation { min-height: 43px; }
  .table-wrap .tbl { width: max-content; min-width: 100%; max-width: none; }
  .table-wrap .tbl thead th:first-child, .table-wrap .tbl tbody td:first-child {
    position: sticky; left: 0; z-index: 1; max-width: min(180px,41vw); white-space: normal;
    background: #302b2a; box-shadow: 1px 0 0 #635a57;
  }
  .table-wrap .tbl thead th:first-child { z-index: 2; background: #3d3837; }
  .table-wrap .tbl td { max-width: min(280px,68vw); }
  .table-link { min-height: 42px; padding-block: 4px; }
}
@media (max-width: 700px) {
  .sticky-top .header-open-box span { display: inline; }
  .sticky-top .header-update { display: flex; }
  .sticky-top .dashboard-logos { width: 82px; min-width: 70px; max-width: 110px; }
  .sticky-top .dashboard-logos .population-logo { flex-basis: 100%; }
  .sticky-top .dashboard-logos .population-logo img { height: 36px; }
  .sticky-top .header-open-box { font-size: 9px; line-height: 1.25; gap: 5px; }
  .sticky-top .header-open-box b { font-size: 20px; }
  .sticky-top .header-update { padding-inline-start: 8px; font-size: 8px; }
  .sticky-top .header-update b { font-size: 10px; }
  .sticky-top nav { gap: 6px; }
  .sticky-top .main-operation { flex: 1 1 auto; padding-inline: 8px; }
  .kpis, .grid.kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metrics .kpi-val { font-size: clamp(23px,4.4vw,30px); }
  .controls, .filters, .subnav { max-width: 100%; }
  .card-head { flex-wrap: wrap; }
  .card-head .field-inline { max-width: 100%; }
  .field input, .field select, .field textarea, .field-inline input, .field-inline select { font-size: 16px; }
  .primary, .secondary, .plain, .subnav button, .field input, .field select, .field-inline input, .field-inline select { min-height: 44px; }
  .utility .icon-button, .dialog-head .icon-button { width: 40px; height: 40px; }
}
@media (max-width: 480px) {
  body { padding: 8px 9px 16px !important; }
  .sticky-top { padding: 8px 9px !important; margin-bottom: 14px; }
  .sticky-top header { gap: 5px; }
  .sticky-top nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; }
  .sticky-top nav:has(>button:only-child) { grid-template-columns: 1fr; }
  .sticky-top .main-operation { padding: 6px 4px; line-height: 1.25; font-size: 11px; }
  .utility { gap: 5px; }
  .headline .controls { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
  .headline .controls [data-form=create] { grid-column: 1 / -1; }
  .controls .field-inline input[type=month], .field input[type=date] { min-width: 0; }
  .headline p, .flow-section .section-note { font-size: 12px; }
  .form-grid { grid-template-columns: minmax(0,1fr); }
  .dialog-body label { min-width: 0; }
  .dialog-head { padding-inline: 13px; }
  .dialog-body { padding-inline: 13px; }
  .dialog-body .end { flex-wrap: wrap; }
  .utility .actions { gap: 3px; }
}
.headline, .utility, .flow-section > .section-heading, footer { color: #3d3837; }
.headline h1, .section-heading h2, .crumb strong { color: #302b2a; }
.headline p, .headline .eyebrow, .headline .field-inline, .section-note,
.utility .crumb, .utility .logout, .utility #identity, .utility .crumb span, footer { color: #564e4c; }
.headline .secondary, .utility .icon-button, .section-heading .subnav {
  color: #f6f2ee; background: rgba(54,48,47,.88); border-color: #726765;
}
.metrics .kpi-sub, .metrics .kpi-lbl { color: #f6f2ee; }
.headline { margin-block: clamp(16px,2.2vw,34px); }
.sticky-top header {
  display: grid; grid-template-columns: clamp(118px,17vw,150px) minmax(70px,max-content) max-content;
  align-items: center; justify-content: start; gap: clamp(6px,1.4vw,20px);
}
.sticky-top header .dashboard-logos { width: 100%; min-width: 0; max-width: none; }
.sticky-top header .dashboard-logos .population-logo { flex: 1 1 100%; }
.sticky-top header .dashboard-logos .population-logo img { height: clamp(40px,5vw,49px); object-fit: contain; }
.sticky-top header .header-open-box { min-width: 0; }
.section-heading .subnav button { min-height: 38px; }
@media (min-width: 701px) and (max-width: 940px) {
  .grid.kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 540px) {
  #dashboard-isotype-background #dashboard-isotype-n { width: 68vw; left: 20%; }
  #dashboard-isotype-background #dashboard-isotype-secondary { width: 54vw; left: 83%; }
  .section-heading .subnav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); width: 100%; }
  .section-heading .subnav button { min-height: 44px; }
  .headline > div:first-child { width: 100%; }
}
@media (max-height: 520px) and (orientation: landscape) {
  dialog { max-height: calc(100dvh - 10px); overflow-y: auto; }
  .dialog-head { padding-block: 7px; }
}
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,340px),1fr)); gap: 16px; align-items: start; }
.guide-intro, .guide-grid .card { padding: clamp(18px,2.5vw,32px); }
.guide-intro { margin-bottom: 16px; }
.guide-intro p, .guide-grid p, .guide-grid dd { line-height: 1.55; max-width: 81ch; margin-block: .4em .9em; }
.guide-grid ol { padding-inline-start: 1.5em; }
.guide-grid li { padding-inline-start: .25em; }
.guide-grid dt, .guide-grid li::marker { font-weight: 700; }
.guide-grid dt { margin-top: 1em; }
.guide-steps .field { max-width: 23rem; margin-bottom: 1em; }
.exec-summary { align-items:stretch; }
.exec-summary > .card { margin:0; width:100%; }
.exec-step { display:grid; grid-template-columns:minmax(0,1fr) auto 4em; align-items:baseline; gap:4px 10px; margin-top:13px; }
.exec-step b,.exec-step small { text-align:right; font-variant-numeric:tabular-nums; }
.exec-step b { font-size:1.25em; }
.exec-track { grid-column:1/-1; height:8px; border-radius:8px; overflow:hidden; background:rgba(255,255,255,.11); }
.exec-track i { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#939580,#f6f2ee); }
.exec-summary .trend { display:grid; gap:12px; }
.exec-summary .trend-row .bar-track { height:8px; }
@media (prefers-reduced-motion:no-preference) {
  .exec-track i,.exec-summary .bar-fill { transform-origin:left; animation:exec-fill .65s ease-out both; }
}
.exec-kpis .kpi-val,.exec-summary .trend-row b { font-variant-numeric:tabular-nums; }
@keyframes exec-fill { from { transform:scaleX(0); } to { transform:scaleX(1); } }
.test-controls { display:flex; align-items:center; flex-wrap:wrap; gap:8px 12px; margin-bottom:16px; color:#3d3837; }
.test-controls .secondary { background:#494241; color:#f6f2ee; }
@media screen and (min-width: 1650px) {
  body { padding-inline: clamp(24px,1.5vw,64px); font-size: clamp(15px,.85vw,22px); }
  .sticky-top header { margin-inline-start: 0; }
  .sticky-top .nav-bar { margin-inline-end: 0; }
  .sticky-top .main-operation, .field-inline, .primary, .secondary,
  .panel table.tbl, .flow-section .flow-name { font-size: clamp(14px,.83vw,21px); }
  .headline h1 { font-size: clamp(34px,2vw,56px); }
  .card h2, .section-heading h2 { font-size: clamp(20px,1.1vw,32px); }
  .metrics .kpi-val { font-size: clamp(41px,2.25vw,68px); }
  .metrics .kpi-lbl, .metrics .kpi-sub, .flow-value small, .section-note { font-size: clamp(13px,.73vw,19px); }
  .flow-section .flow-row { min-height: clamp(52px,3vw,78px); }
  .flow-section .flow-value strong { font-size: clamp(20px,1.15vw,29px); }
  .guide-grid > .card { width: 100%; margin-inline: 0; }
  .guide-intro p, .guide-grid li p, .guide-grid dd { font-size: clamp(15px,.85vw,22px); }
}
@media screen and (min-width: 1800px) {
  .panel-view:has(> .guide-grid) {
    display: grid; grid-template-columns: minmax(0,.75fr) repeat(2,minmax(0,1.2fr));
    gap: 0 clamp(18px,1.3vw,44px); align-items: start;
  }
  .panel-view:has(> .guide-grid) > .headline { grid-column: 1 / -1; }
  .guide-intro { width: 100%; }
  .guide-grid { display: contents; }
}
@media print {
  .sticky-top, .card, .kpi { background: #fff !important; color: #222; box-shadow: none; }
  .sticky-top header { background: #3d3837; }
  .sticky-top nav, .utility, .controls { display: none; }
  .workspace { max-width: 100%; }
}
.exec-production { margin:0; }
.exec-production > div { display:flex; align-items:baseline; justify-content:space-between; gap:20px; padding:13px 0; border-bottom:1px solid rgba(255,255,255,.16); }
.exec-production > div:last-child { border-bottom:0; }
.exec-production dd { margin:0; font-weight:650; font-variant-numeric:tabular-nums; white-space:nowrap; }
.exec-summary .card-head { align-items:center; }
.exec-kpis ~ .flow-section .source-flow { display:none; }
.exec-detail,body:has(.exec-kpis) dialog button.primary,body:has(.exec-kpis) dialog button.secondary,body:has(.exec-kpis) dialog .dialog-head button { border-radius:12px; min-height:40px; padding-inline:16px; font-weight:600; border:1px solid rgba(255,255,255,.29); }
body:has(.exec-kpis) dialog .dialog-head button { display:grid; place-items:center; min-width:40px; padding:0; font-size:22px; line-height:1; color:#fff; background:rgba(255,255,255,.08); }
body:has(.exec-kpis) dialog .secondary,.exec-detail { color:#f6f2ee; background:rgba(255,255,255,.09); }
body:has(.exec-kpis) dialog button:not(:disabled):hover,.exec-detail:hover { filter:brightness(1.12); }
body:has(.exec-kpis) dialog button:focus-visible,.exec-detail:focus-visible { outline:2px solid #eee4d3; outline-offset:3px; }

@media screen {
  html {
    background: color-mix(in srgb, #d8cdc8 44%, #fff) !important;
  }
}
.guide-question { border-bottom:1px solid var(--line); }
.guide-question:last-child { border-bottom:0; }
.guide-question summary { cursor:pointer; font-weight:600; padding:12px 0; }
.guide-question p { margin:0 0 14px; line-height:1.5; }
