/* Judiciales 2.0: componentes compartidos y jerarquía visual institucional. */
:root{--navy:#17324c;--blue:#245d92;--teal:#087e83;--muted:#627489;--line:#dce4ec;--sidebar-width:218px;background:#f4f7fa;color:#202124;font-size:14px}
body{background:#f4f7fa}button,.button{font-size:12px;min-height:38px;border-radius:6px;transition:background .12s,border-color .12s;line-height:1.4}button:hover,.button:hover{filter:none;background:#076b70;color:#fff}button.secondary:hover,.button.secondary:hover{background:#edf4f8;color:var(--text-primary41);border-color:#aebfce}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #2485c273;outline-offset:2px}button:disabled:hover{filter:none}button.danger:hover{background:#fff0ee;color:#a6382d;border-color:#d5948e}.smallbutton{min-height:32px;padding:6px 10px;font-size:11px}
input,select,textarea{font-size:13px;border-color:#c7d4e1;min-height:40px;border-radius:6px}label{color:#202124;font-size:12px;line-height:1.45}input::placeholder,textarea::placeholder{color:#45474a}h1,h2,h3{color:#202124;letter-spacing:-.35px}h2{font-size:25px;line-height:1.3}p{color:#45474a}summary{cursor:pointer;color:#45474a;font-size:12px}.eyebrow{font-size:10px;font-weight:650;letter-spacing:.55px;color:#45474a}
body>header{height:66px;min-height:66px;position:sticky;top:0;z-index:8;padding:0 26px 0 0;gap:20px;background:#fff;color:#202124;border-bottom:1px solid var(--line)}.brand{align-self:stretch;width:var(--sidebar-width);min-width:var(--sidebar-width);padding:0 20px;background:#162d45;gap:12px;color:#fff}.brand strong{font-size:20px}.brand small{font-size:10px;color:#b7cadc}.mark{width:36px;height:36px;border-radius:7px;font-size:22px;flex-shrink:0;border-color:#4d6b86}.topright{margin-left:auto;gap:12px;white-space:nowrap}.topright .tag{background:#eef4f8;border:1px solid #dce7ed;color:#45474a;letter-spacing:0;font-size:10px;border-radius:4px;padding:4px 7px}.topright .ghost{border-color:#d9e3eb;color:#45474a;background:white;min-height:32px;font-size:11px;padding:6px 10px}#who{font-size:11px}#header-location{display:flex;align-items:center;gap:10px;font-size:12px;min-width:0}#header-location>span{color:#45474a}#header-location strong{font-weight:600}#menu-toggle20{display:none}
.shell{max-width:none;grid-template-columns:var(--sidebar-width) minmax(0,1fr);min-height:calc(100vh - 66px)}.app-sidebar{position:sticky;top:66px;height:calc(100vh - 66px);overflow:auto;background:#162d45;padding:16px 13px;display:flex;flex-direction:column;border:0}.app-sidebar nav{gap:0}.nav-group{padding:7px 0 12px;margin-bottom:3px;border-bottom:1px solid #39526966}.nav-group:last-child{border:0}.nav-group>p{font-size:9px;letter-spacing:.9px;color:#91adc4;margin:5px 10px 9px;font-weight:650}.nav-group button{display:flex;align-items:center;gap:12px;width:100%;padding:10px 12px;margin:2px 0;min-height:38px;font-size:12px;font-weight:500;border-radius:5px;border:0;color:#dce7f1}.nav-group svg{width:18px;height:18px;flex-shrink:0;color:#b0c8dd}.nav-group button.active{background:#2b4c68;border-left:3px solid #5dc2c2;padding-left:9px;color:#fff}.nav-group button.active svg{color:#d6ffff}.nav-group button:hover{background:#26435e;color:white}.sidefoot{margin-top:auto;padding:15px 10px 2px;border-top:1px solid #39526966;color:#b3cedc;font-size:10px}.sidefoot span::before{content:'';display:inline-block;width:7px;height:7px;border-radius:50%;background:#42bca4;margin-right:7px}.sidefoot small{font-size:9px;color:#8faabe;margin-top:6px}main{padding:24px 26px 36px;max-width:2100px;width:100%;margin:0 auto}
.pagehead{margin:0 0 22px;align-items:center;gap:18px}.pagehead h2{color:#202124;margin-bottom:5px;font-size:26px}.pagehead .eyebrow{display:none}.pagehead p{font-size:12px;color:#45474a;line-height:1.5}.pagehead .actions{justify-content:flex-end}.panel,.tablewrap,.stat,.rowcard{border-radius:8px;box-shadow:none;background:#fff}.panel{padding:22px}.stats{gap:10px}.stat{padding:14px 16px}.stat strong{font-size:25px;color:#45474a}.stat span{font-size:11px;color:#45474a}.tablewrap{max-height:none;overflow:auto;border-color:var(--line)}table{font-size:12px}th{font-size:10px;text-transform:none;letter-spacing:0;background:#f5f8fb;font-weight:650;color:#45474a}th,td{padding:13px 14px;border-bottom-color:#e4eaf0}td{vertical-align:middle}tbody tr:last-child td{border-bottom:0}td strong{font-weight:650}tbody tr:hover{background:#fafcfe}.badge{border-radius:4px;font-size:10px;padding:4px 8px}.badge.warn{background:#fff3d9;color:#8f5f15}.actions{gap:7px}.row-more{font-size:11px;position:relative}.row-more>summary{list-style:none;min-height:32px;padding:7px 10px;border:1px solid #d3dfe9;background:#fff;border-radius:5px;color:#202124;font-weight:600;font-size:11px}.row-more>summary::after{content:' ⋯';margin-left:5px}.row-more[open]>summary{background:#eaf1f7}.row-more-items{display:flex;flex-wrap:wrap;gap:6px;padding-top:7px}.row-more-items button{font-size:11px}.pagination{font-size:11px;gap:12px;flex-wrap:wrap;margin-top:14px;color:#45474a}.notice:empty{display:none}#notice:not(:empty){margin-bottom:18px}.notice{font-size:12px;border-radius:6px;padding:12px 15px}.notice p{margin:8px 0}.notice.warning{background:#fff9ed;border-color:#ead6a5}
.contextbar{background:#fff;border:1px solid var(--line);border-left:3px solid var(--teal);border-radius:7px;margin-bottom:20px;padding:13px 17px;display:flex;align-items:start;gap:20px}.context-title{flex:1;min-width:0}.context-title>span{font-size:9px;color:#45474a;letter-spacing:.6px}.contextbar #selected-case{font-size:13px;color:#202124;font-weight:600;margin:5px 0;line-height:1.5}.contextbar details{flex:1.5;min-width:0}.contextbar details>summary{padding:6px;font-size:12px;font-weight:600;color:var(--text-primary41)}.contextbar.has-case details:not([open]){flex:0 0 auto}.contextbar details>label{font-size:10px;color:#45474a;margin:8px 0}.contextrow{display:flex;flex-wrap:wrap;gap:6px}.contextrow input{max-width:none;min-width:180px;flex:1 0 210px}.contextrow button{font-size:11px;padding:8px 10px}.contextbar:not(.has-case){background:#fff}.contextbar:not(.has-case) .context-title{display:none}.contextbar:not(.has-case) summary{display:none}.case-tabs{flex-direction:row;gap:4px;border-bottom:1px solid var(--line);margin-bottom:22px;flex-wrap:wrap}.case-tabs button{color:#45474a;font-size:12px;background:transparent;min-height:38px;border-radius:0;border:0;border-bottom:2px solid transparent;padding:10px 16px}.case-tabs button.active{border-left:0;padding-left:16px;background:transparent;color:#202124;border-bottom-color:var(--teal);font-weight:650}.case-tabs button:hover{background:#ecf3f8;color:#202124}.case-detail{margin-bottom:0}.source-fields20{padding-top:10px;border-top:1px solid var(--line)}.source-fields20 pre{margin-top:14px}
.home-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:21px}.home-totals>div{background:#fff;border:1px solid var(--line);border-radius:8px;padding:16px 20px;display:flex;align-items:center;gap:18px}.home-totals svg{width:38px;height:38px;padding:8px;stroke:#45768e;border-radius:50%;background:#eef5f9}.home-totals strong{font-size:26px;line-height:1.2;color:#202124;display:block}.home-totals small{display:block;font-size:11px;margin-top:4px;color:#45474a}.home-search{display:flex;align-items:end;gap:12px;margin:0 0 16px}.home-search label{margin:0;flex:0 0 160px}.home-search label.search-label{flex:1}.home-search input,.home-search select{margin-top:6px}.search-input{position:relative}.search-input svg{position:absolute;width:17px;height:17px;left:12px;top:12px;color:#45474a}.search-input input{padding-left:37px}.home-search>button{height:40px}.case-workspace{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(280px,1fr);gap:18px;align-items:start}.case-results{min-width:0}.case-results th:last-child{width:87px}.case-results th:first-child{min-width:118px}.case-results td{font-size:12px;padding:14px 12px}.case-subject{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-weight:600;line-height:1.6}.case-agency{font-size:10px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.case-results .is-selected{background:#e8f5f5}.case-results .is-selected td:first-child{box-shadow:inset 3px 0 var(--teal)}.case-preview{position:sticky;top:88px;display:block;background:#fff;padding:22px;border:1px solid var(--line);border-radius:8px;height:auto;color:#202124;min-width:0}.preview-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.preview-heading h2{font-size:24px;margin:10px 0}.preview-subject{font-size:13px;line-height:1.6;color:#202124;font-weight:600;overflow-wrap:anywhere}.case-preview .fields{grid-template-columns:minmax(0,1fr);gap:12px;margin:20px 0}.case-preview .fields>div{display:grid;grid-template-columns:82px minmax(0,1fr);gap:10px}.case-preview dd{font-size:12px}.preview-counts{border-block:1px solid #e6ecf2;padding:12px 0;display:flex;flex-direction:column;gap:10px;margin:14px 0}.preview-counts span{display:flex;justify-content:space-between;font-size:11px;color:#45474a}.preview-counts b{color:#202124}.preview-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:20px}.preview-actions button:first-child{grid-column:1/-1}.preview-actions button{font-size:11px}.case-preview-empty{text-align:center;padding:45px 8px}.case-preview-empty>svg,.selection-empty>svg{width:48px;height:48px;color:#8daabe;margin-bottom:16px}.case-preview-empty h3{font-size:14px}.case-preview-empty p{font-size:12px}.selection-empty{text-align:center;padding:50px 20px}.selection-empty h3{font-size:17px}.selection-empty p{margin-bottom:24px}
.parts-switch{display:flex;gap:10px;margin:0 0 20px}.parts-switch>button{flex:1;display:grid;grid-template-columns:25px 1fr;gap:4px 10px;text-align:left;align-items:center;background:#fff;color:#202124;border:1px solid var(--line);padding:14px 18px;font-size:13px}.parts-switch svg{width:23px;height:23px;grid-row:span 2}.parts-switch small{color:#45474a;font-size:10px;font-weight:400}.parts-switch>button[aria-selected=true]{border-color:#5999a4;background:#edf8f8;box-shadow:inset 0 -2px var(--teal);color:#202124}.wa-section{border-top:1px solid var(--line);padding:22px}.wa-section .eyebrow{display:none}.wa-new-button{background:var(--teal);color:#fff;border:1px solid var(--teal);box-shadow:none;min-height:40px;font-size:12px;padding:10px 15px}.wa-new-button:hover{background:#086f73}.wa-new-button svg{width:20px;height:20px}.wa-template-badge{font-size:11px;border-radius:5px;background:#eff5f8;color:#45474a}.wa-stages20{display:flex;gap:10px;padding:16px 24px 0}.wa-stages20>span{padding:10px 15px;border:1px solid var(--line);border-radius:6px;flex:1;display:flex;align-items:center;gap:10px;font-size:12px;color:#45474a;background:#fafcfe}.wa-stages20 b{border:1px solid #c9d5df;width:23px;height:23px;border-radius:50%;display:grid;place-items:center;font-size:11px}.wa-stages20 .current{border-color:#278591;background:#eff9f9;color:#202124;font-weight:600}.wa-stages20 .current b{background:var(--teal);color:white;border-color:var(--teal)}
dialog{border-radius:10px;border-color:#cddae4;box-shadow:0 20px 80px #0f2c4140}dialog::backdrop{background:#11293e75}#editor .dialoghead,#text-editor .dialoghead{background:#f6f9fc;border-bottom:1px solid var(--line);padding:18px 24px}#editor .dialoghead h2,#text-editor .dialoghead h2{font-size:21px}#editor .dialoghead .eyebrow,#text-editor .dialoghead .eyebrow{color:#45474a;font-size:11px}#editor-form{background:#fff}#editor .dialogfoot{padding:14px 0}.editor-tabs{background:#fff;border-bottom:1px solid var(--line);padding:10px 0}.editor-tabs button{border-radius:5px;font-size:12px}.editor-tabs button.active{background:#245578;border-color:#245578}.live-totals{background:#f0f5fa;color:#45474a;font-size:11px}.rowcard{padding:18px;background:#fff}.rowcard[open]{background:#fafcfe}.rowcard summary{color:#202124;font-weight:650}.text-group>summary{background:#f5f9fc;font-size:13px;color:#202124;font-weight:650}.text-group{border-color:var(--line);border-radius:7px}.text-field small{border-radius:4px;padding:2px 6px;background:#edf4f7;font-size:10px;color:#45474a}.text-field textarea{font-size:13px;line-height:1.6}.text-preview{background:#fbfdff;border-color:var(--line);border-radius:8px;padding:22px;top:0}.text-preview pre{font:12px/1.8 ui-monospace,Consolas,monospace;color:#202124;background:white;padding:17px;border:1px solid #e5edf3;border-radius:6px}.text-help{font-size:11px;line-height:1.6}.text-controls{background:#f7fafc;border-block:1px solid #e5edf3;gap:12px;padding:16px 24px}.text-controls label{font-size:11px}.text-layout{gap:22px}.text-field>div>button,.text-field button{font-size:10px}.text-field{margin-bottom:20px}.text-notes summary{font-size:11px}.text-preview h3{font-size:15px}#text-editor .dialogfoot{padding:14px 24px}
#report-form>.filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0 0 16px}#report-form>.filters>button{justify-self:start;align-self:end}#report-results:empty{display:none}#report-results:not(:empty){padding-top:22px;border-top:1px solid var(--line)}body[data-page=account] #page>.panel{max-width:850px}body[data-page=account] .pagehead{max-width:850px}.access{margin:60px auto;gap:60px}.access h1{font-size:34px;color:#202124;line-height:1.2}.access .panel{padding:30px;border-top:3px solid #33758a}.access .intro .eyebrow{font-size:10px;color:#45474a}.access .intro p{font-size:13px;color:#45474a}.access button{font-size:13px}.access h2{font-size:23px}
/* Resumen estadístico: tarjetas, evolución y mapa visibles en el mismo espacio. */
.dashboard{max-width:none}.dash-hero{background:none;border-radius:0;color:#202124;box-shadow:none;padding:0;min-height:0;display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;gap:22px;overflow:visible}.dash-hero::after,.dash-hero::before,.dash-hero-symbol{display:none}.dash-hero h1{font-size:27px;line-height:1.25;margin:0 0 4px;letter-spacing:-.5px;color:#202124}.dash-hero-copy>p{font-size:11px;color:#45474a;margin:3px 0}.dash-hero-copy>.dash-kicker{display:none}.dash-period{border:0;border-radius:0;padding:0;color:#45474a;background:none;font-size:10px;margin-top:7px}.dash-hero-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;min-width:0}.dash-hero-actions button{border:1px solid #c8d7e4;background:#fff;color:#202124;min-height:37px;padding:9px 12px;font-size:11px;border-radius:6px;white-space:nowrap}.dash-hero-actions button#statistics-pdf{background:#193d58;border-color:#193d58;color:#fff}.dash-hero-actions button#dashboard-present{background:#fff;color:#202124}.dash-hero-actions button:hover{background:#eaf2f8;color:#202124}.dash-hero-actions svg{width:16px;height:16px}.dash-filter{padding:14px 16px;border-radius:8px;margin-bottom:16px;gap:12px;grid-template-columns:minmax(132px,.9fr) minmax(132px,.9fr) minmax(180px,1.5fr) minmax(135px,1fr) auto;align-items:end}.dash-filter input,.dash-filter select{min-height:36px;font-size:12px;padding:7px 9px}.dash-filter label{font-size:10px}.dash-filter .dash-check{font-size:10px;line-height:1.4;gap:6px;padding-bottom:3px}.dash-presets{margin:0;gap:6px}.dash-presets button{padding:5px 9px;min-height:27px;font-size:10px;background:#f1f5f9;color:#45474a;border:1px solid #e1e8f0}.dash-filter #dashboard-apply{background:#244b6b;min-height:36px;border-color:#244b6b;font-size:11px;padding:8px 13px}.dash-tabbar{margin:0 0 16px;gap:14px}.dash-tabbar>div{background:transparent;border-bottom:1px solid var(--line);border-radius:0;padding:0}.dash-tabbar button{border-radius:0;padding:9px 15px;font-size:11px;border:0;border-bottom:2px solid transparent;color:#45474a;background:transparent}.dash-tabbar button[aria-selected=true]{border-bottom-color:var(--teal);background:none;box-shadow:none;color:#202124}.dash-tabbar>span{font-size:9px}.dash-cards{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin:0 0 16px}.dash-card{min-height:145px;padding:15px;border-radius:8px;background:#fff!important;border:1px solid #dce5ee;border-top:3px solid var(--accent);box-shadow:none;text-align:left}.dash-card:hover{background:#f8fbfd!important;box-shadow:0 5px 18px #1b466612;transform:translateY(-2px);color:#202124}.dash-card::before,.dash-card::after{display:none}.dash-card strong{font-size:31px;line-height:1.25;margin:9px 0 5px}.dash-card-label{font-size:11px;font-weight:650;padding:0 27px 0 0;line-height:1.5;display:block;min-height:30px}.dash-card-detail{font-size:9px;line-height:1.4;display:block}.dash-card-icon{right:11px;top:12px;padding:5px;border-radius:7px;background:var(--tint);height:28px;width:28px}.dash-card-icon svg{width:18px;height:18px}.dash-spark{display:none}.dash-card-link{font-size:9px;margin-top:10px}.dash-card-link svg{width:11px;height:11px}.dash-delta{font-size:10px;margin-top:7px}.dash-delta small{font-size:9px}.dash-highlights{border:1px solid var(--line);background:#fff;border-radius:7px;padding:10px 15px;gap:10px 25px;font-size:11px;margin:0 0 16px}.dash-highlights b{font-size:16px}.dash-overview20{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:16px;margin:16px 0}.dash-overview20>*{min-width:0}.dash-panel{border-radius:8px;box-shadow:none;border:1px solid var(--line);padding:18px;background:#fff}.dash-panel-head{gap:12px;align-items:start;margin-bottom:12px}.dash-panel h3{font-size:15px;color:#202124;margin:0 0 4px}.dash-panel-head p{font-size:10px;line-height:1.5;color:#45474a;margin:3px 0 0}.dash-chart{height:295px}.dash-chart-controls{gap:6px;margin-top:8px}.dash-chart-controls label{font-size:10px;margin:0}.dash-chart-controls select{min-height:29px;font-size:11px;padding:5px 9px}.dash-chart-controls button{font-size:10px;min-height:28px;padding:5px 8px}.dash-image{border:1px solid #dce6ef;background:#fff;color:#45474a;border-radius:5px;width:29px;height:29px;min-height:29px;padding:5px;flex-shrink:0}.dash-image svg{width:16px;height:16px}.dash-lower20{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;margin:16px 0}.classification-cards{margin:0;display:grid;grid-template-columns:1fr;gap:12px}.classification-card{grid-template-columns:minmax(0,1fr) 98px;background:#fff!important;padding:15px 18px;border-radius:8px;border:1px solid var(--line);box-shadow:none}.classification-card .eyebrow{font-size:8px}.classification-card h3{font-size:13px;margin:4px 0 7px}.classification-card strong{font-size:28px;line-height:1.1}.classification-card p{font-size:9px;margin:5px 0}.classification-card button{font-size:10px;min-height:26px;padding:5px 8px}.classification-chart{width:98px;height:98px}.dash-charts,.dash-result-footer{gap:16px}.dash-secondary-cards{gap:10px}.dash-secondary{padding:16px;border-radius:7px}.dash-method{border-radius:6px}.dash-method summary{font-size:11px}.dashboard .dash-kicker{font-size:9px}.dashboard #dash-map-chart{height:480px;min-height:0;border-radius:6px;border:1px solid #d9e7ef}.dash-map-panel{margin:0 0 18px}.map-panel-actions20{display:flex;align-items:center;gap:8px}.map-expand20{font-size:10px;background:#fff;color:#45474a;border:0;min-height:28px;padding:4px 0;white-space:nowrap}.map-expand20:hover{background:#eff5fa;color:#202124}.dash-map-tools{gap:10px;margin:10px 0 12px}.dash-map-tools label{min-width:0;flex:1;font-size:10px}.dash-map-tools select{min-height:33px;font-size:11px;padding:6px 8px}.dash-map-tools button{font-size:10px;min-height:30px;padding:5px 8px}.dash-map-source{font-size:9px!important;color:#45474a!important;line-height:1.5!important}.dash-map-legend{font-size:10px;line-height:1.5;gap:6px}.dash-map-legend>span:last-child{font-size:9px}.map-overview20 #dash-map-panel{margin:0;height:100%;padding:18px}.map-overview20 #dash-map-chart{height:250px}.map-overview20 .map-description20,.map-overview20 #dash-map-reset{display:none}.map-overview20 .dash-map-tools{margin:8px 0;gap:8px}.map-overview20 .dash-map-tools label:first-child{flex:1.1}.map-overview20 .dash-map-tools label:nth-child(2){flex:1}.map-overview20 .dash-highlights{padding:0;margin:0 0 9px;border:0;gap:6px 12px;font-size:9px;background:none}.map-overview20 .dash-highlights b{font-size:12px}.map-overview20 .dash-highlights>span:last-child:not(:nth-child(4)){display:none}.map-overview20 .dash-map-legend{margin:7px 0}.map-overview20 .dash-map-legend>span:last-child{display:none}.map-overview20 .dash-map-source{margin:0!important;font-size:8px!important}.map-overview20 .dash-panel-head{margin-bottom:4px}.map-overview20 .dash-panel-head .dash-kicker{display:none}.map-overview20 .map-panel-actions20 .dash-image{display:none}.dash-item-card{border-radius:7px;padding:16px;background:#f5f9fc;box-shadow:none}.dash-item-card:hover{box-shadow:0 4px 12px #294d6814}.dash-item-card .item-icon svg{width:32px;height:32px}.dash-element-switch button{font-size:11px;min-height:30px;border-radius:5px}.dashboard-present main{max-width:none;padding:24px 32px}.dashboard-present .dash-hero h1{font-size:30px}.dashboard-present .dash-cards{grid-template-columns:repeat(6,minmax(0,1fr))}
@media(min-width:1700px){.dash-chart{height:340px}.map-overview20 #dash-map-chart{height:295px}.dash-card{min-height:156px}.dash-card strong{font-size:36px}.dash-card-label{font-size:12px}.dash-card-detail{font-size:10px}.dash-card-link{font-size:10px}}
@media(max-width:1200px){:root{--sidebar-width:196px}main{padding:20px}.brand{padding:0 15px}.topright .tag{display:none}#header-location{font-size:11px}.dash-card{padding:12px;min-height:150px}.dash-card-label{padding-right:0;padding-top:30px}.dash-card-icon{left:11px;top:9px}.dash-card strong{font-size:28px}.dash-hero h1{font-size:23px}.dash-hero-actions{justify-content:flex-end}.dash-hero-actions button{font-size:10px;padding:8px}.dash-hero-actions button[data-action=daily-new]{display:block}.dash-filter{grid-template-columns:repeat(3,minmax(0,1fr))}.dash-filter .dash-check{grid-column:1/3}.dash-filter #dashboard-apply{justify-self:end}.dash-overview20{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.case-workspace{grid-template-columns:minmax(0,1.6fr) minmax(260px,1fr)}.case-preview{padding:17px}.case-results td{padding:12px 9px}.case-results th:last-child{width:73px}.home-search>button{font-size:10px}.dash-chart-controls{max-width:100%}}
@media(max-width:1000px){.dash-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.dash-card{min-height:138px;padding:15px}.dash-card-label{padding:0 27px 0 0}.dash-card-icon{left:auto;right:11px;top:12px}.case-workspace{grid-template-columns:minmax(0,1fr)}.case-preview{position:static}.case-preview .fields{grid-template-columns:repeat(2,minmax(0,1fr))}.preview-actions{grid-template-columns:repeat(3,minmax(0,1fr))}.preview-actions button:first-child{grid-column:auto}.case-preview-empty{padding:20px}.dash-overview20,.dash-lower20{grid-template-columns:1fr}.classification-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.dash-hero{align-items:start}.dash-hero-actions{max-width:255px}.home-search{flex-wrap:wrap}.home-search .search-label{flex:1 0 60%}.home-totals>div{padding:14px;gap:10px}.home-totals strong{font-size:24px}.home-totals svg{width:30px;height:30px;padding:6px}#report-form>.filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:820px){:root{--sidebar-width:200px}body>header{height:62px;min-height:62px;padding-right:14px;gap:10px}.brand{width:auto;min-width:0;background:#fff;color:#202124;padding:0 10px 0 16px}.brand small{display:none}.brand strong{font-size:18px}.mark{width:31px;height:31px;font-size:19px;background:#17334d;color:white;border:0}.brand .mark{display:none}#menu-toggle20{display:block;color:#202124;font-size:20px;min-height:34px}#header-location{display:none}#who{max-width:110px;font-size:10px;white-space:normal}.topright{gap:7px}.topright .ghost{font-size:10px}.shell{display:block;min-height:calc(100vh - 62px)}.app-sidebar{position:fixed;top:62px;bottom:0;left:0;width:218px;height:calc(100vh - 62px);z-index:10;display:none;padding:14px 12px;box-shadow:10px 0 35px #152d4550;overflow:auto}.nav-open .app-sidebar{display:flex}.app-sidebar nav{flex-direction:column;overflow:visible}.sidefoot{display:block}.nav-group>p{display:block}.nav-group button{white-space:normal}.nav-group{padding-bottom:10px}main{padding:18px}.pagehead h2{font-size:24px}.contextbar{flex-direction:column;gap:6px;padding:12px}.contextbar details{width:100%}.contextbar.has-case details:not([open]){flex:auto}.case-preview .fields{grid-template-columns:1fr}.access{grid-template-columns:1fr;gap:20px;margin:35px auto;max-width:560px}.access .intro h1{font-size:27px}.access .intro h1 br{display:none}.access .panel{padding:23px}.text-layout{grid-template-columns:1fr}.text-preview{position:static}.text-controls{flex-wrap:wrap}.wa-stages20{padding:12px 15px 0;gap:6px}.wa-stages20>span{padding:8px;font-size:10px;gap:6px}.wa-stages20 b{width:19px;height:19px}.dashboard-present main{padding:15px}.dashboard-present .dash-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.dash-hero h1{font-size:25px}.dash-hero-actions{max-width:none}.dash-hero{flex-wrap:wrap}.dash-filter{padding:12px}.map-overview20 #dash-map-chart{height:310px}}
@media(max-width:540px){main{padding:14px}.home-totals{gap:7px}.home-totals>div{padding:12px 10px;gap:6px}.home-totals svg{display:none}.home-totals strong{font-size:23px}.home-totals small{font-size:9px}.home-search label.search-label{flex-basis:100%}.home-search label{flex:1}.home-search>button{flex:1}.pagehead{gap:12px}.pagehead .actions{justify-content:flex-start}.parts-switch{gap:7px}.parts-switch>button{padding:10px;font-size:11px;grid-template-columns:1fr}.parts-switch svg{display:none}.parts-switch small{font-size:9px}.case-tabs button{font-size:11px;padding:9px 10px}.case-tabs button.active{padding-left:10px}.preview-actions{grid-template-columns:1fr 1fr}.preview-actions button:first-child{grid-column:1/-1}.dash-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.dash-card{min-height:145px}.dash-filter{grid-template-columns:repeat(2,minmax(0,1fr))}.dash-filter label:nth-child(3){grid-column:1/-1}.dash-filter .dash-check{grid-column:1/-1}.dash-filter #dashboard-apply{grid-column:1/-1;justify-self:stretch}.dash-presets{grid-column:1/-1}.dash-tabbar{flex-wrap:wrap}.dash-tabbar>span{width:100%;margin:0}.dash-tabbar button{padding:9px 12px}.dash-panel{padding:14px}.map-overview20 #dash-map-panel{padding:14px}.dash-map-tools{flex-wrap:wrap}.dash-map-tools label{flex-basis:100%!important}.classification-cards{grid-template-columns:1fr}.dash-hero-actions{gap:5px}.dash-hero-actions button{padding:7px;font-size:10px}.dash-hero-actions svg{width:14px;height:14px}.home-totals small{line-height:1.35}.text-preview{padding:14px}#report-form>.filters{grid-template-columns:1fr}.case-results .tablewrap{border-radius:6px}.case-results th:first-child{min-width:94px}.case-results td{font-size:11px}.case-results td:nth-child(3),.case-results th:nth-child(3){display:none}.case-results .smallbutton{font-size:10px;padding:5px}.contextrow input{flex-basis:100%}}
@media(prefers-reduced-motion:reduce){button,.button,.dash-card{transition:none!important;transform:none!important}}

.dash-filter{display:grid}.dash-hero-actions{flex-direction:row}.dash-filter label{min-width:0}.dash-filter .dash-presets{grid-column:1/-1}.stage-badge20{font-size:10px;padding:5px 8px;border-radius:4px;background:#eef3f7;color:#45474a;white-space:nowrap}.stage-INICIO{background:#eaf4ff;color:#45474a}.stage-FINALIZACION{background:#e6f5ef;color:#202124}.stage-ADELANTO{background:#fff3dc;color:#876126}
.dash-hero-copy>p:not(.dash-kicker){color:#45474a;font-size:11px}
.dash-hero-actions button[data-action=daily-new]{color:#202124;background:#fff;border-color:#c8d7e4}
.dash-hero-actions button#dashboard-present{border-color:#c8d7e4;background:#fff;color:#202124}
.case-preview>.eyebrow{color:#45474a}
.case-results th:last-child{width:98px}.case-results .smallbutton{white-space:nowrap;padding:7px 9px}
@media(min-width:1001px){
 .dash-hero{margin-bottom:12px}.dash-period{margin-top:5px}
 .dash-filter{padding:12px;margin:0 0 10px;gap:8px 12px}.dash-presets{padding-top:0}
 .dash-tabbar{margin:0 0 12px}.dash-tabbar button{padding:7px 14px}
 .dash-card{padding:12px;min-height:126px}.dash-card-label{min-height:28px;font-size:10px;line-height:1.35}
 .dash-card strong{font-size:30px;line-height:1.15;margin:5px 0 4px}.dash-card-link{margin-top:7px}
 .dash-cards{margin-bottom:12px}.dash-overview20{margin:12px 0}
 .dash-card-detail{min-height:14px}.dash-panel{padding:15px}.map-overview20 #dash-map-panel{padding:15px}
 .map-overview20 .dash-panel-head{margin-bottom:0}.map-overview20 .dash-map-tools{margin:6px 0}
 .map-overview20 #dash-map-panel{display:flex;flex-direction:column}
 .map-overview20 .dash-map-tools label:first-child{display:flex;align-items:center;gap:12px;white-space:nowrap}
 .map-overview20 .dash-map-tools label:first-child select{flex:1;width:0;margin:0}
 .map-overview20 .dash-map-tools label:nth-child(2){display:none}
 .map-overview20 #dash-map-coverage{order:1;margin:8px 0 0}
 .map-overview20 .dash-map-legend{order:2}.map-overview20 .dash-map-source{order:3}
}
