:root{
  --navy:#08264d;--navy2:#0d3868;--blue:#0797d2;--blue2:#1aa5df;--cyan:#e9f7fd;
  --teal:#0aa6a2;--green:#13ad78;--green-bg:#eaf9f3;--red:#df5368;--red-bg:#fff0f3;
  --amber:#dda326;--amber-bg:#fff8e8;--purple:#7257d8;--ink:#102c4c;--muted:#69819a;
  --line:#d9e7f0;--line2:#edf3f7;--bg:#f3f8fb;--card:#fff;--shadow:0 18px 55px rgba(10,47,84,.09)
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:radial-gradient(circle at 80% -10%,#e1f5fd 0,transparent 28%),var(--bg)}button,input{font:inherit}.hidden{display:none!important}.muted{color:var(--muted)}
.topbar{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.95);backdrop-filter:blur(16px);border-bottom:1px solid rgba(210,228,239,.9)}.topbar-inner{max-width:1450px;margin:auto;height:72px;padding:0 28px;display:flex;align-items:center;justify-content:space-between}.top-logo{height:42px;width:auto;display:block}.brand{display:flex;align-items:center}.top-actions{display:flex;gap:12px;align-items:center}.user-chip{padding:8px 13px;border-radius:999px;background:#eef6fa;color:var(--navy);font-size:13px;font-weight:800}.ghost-btn,.primary-btn{border:0;border-radius:12px;padding:11px 16px;font-weight:800;cursor:pointer;transition:.2s}.ghost-btn{background:#eef5f9;color:var(--navy)}.ghost-btn:hover{background:#e4eff5}.primary-btn{background:linear-gradient(135deg,var(--navy2),var(--blue));color:white;box-shadow:0 8px 22px rgba(6,119,172,.22)}.primary-btn:hover{transform:translateY(-1px)}.primary-btn:disabled{opacity:.6;cursor:wait;transform:none}
.app-shell{max-width:1450px;margin:auto;padding:30px 28px 80px}.hero-panel{display:grid;grid-template-columns:1.15fr .85fr;gap:28px;align-items:center;background:linear-gradient(135deg,#08264d,#0b467c 72%,#0b83b7);color:white;padding:34px;border-radius:26px;box-shadow:0 25px 65px rgba(8,38,77,.18);overflow:hidden;position:relative}.hero-panel:after{content:"";position:absolute;width:330px;height:330px;border:1px solid rgba(255,255,255,.12);border-radius:50%;right:-110px;top:-160px;box-shadow:0 0 0 65px rgba(255,255,255,.035),0 0 0 130px rgba(255,255,255,.025)}.hero-copy,.search-box{position:relative;z-index:2}.eyebrow,.section-kicker{font-size:11px;font-weight:900;letter-spacing:.17em;margin:0 0 8px;color:#21b7ee}.hero-panel .eyebrow{color:#7ad9fb}.hero-panel h1{font-size:34px;line-height:1.05;margin:0 0 12px}.hero-panel p{margin:0;color:#d4e7f3;max-width:640px}.search-box{background:white;color:var(--ink);padding:20px;border-radius:18px}.search-box label{display:block;font-size:12px;font-weight:900;margin-bottom:8px}.search-row{display:flex;gap:10px}.search-row input{flex:1;min-width:0;border:1px solid #ccdde8;border-radius:12px;padding:13px 14px;color:var(--ink);outline:none}.search-row input:focus{border-color:var(--blue);box-shadow:0 0 0 4px rgba(7,151,210,.10)}.form-message{min-height:18px;margin-top:8px;font-size:12px}.form-message.error{color:#c43d54;font-weight:700}
.empty-state{padding:120px 20px;text-align:center;color:var(--muted)}.empty-state h2{color:var(--navy);margin:18px 0 8px}.empty-state p{margin:0}.empty-orbit{width:70px;height:70px;border-radius:50%;border:1px solid #bcd7e7;margin:auto;position:relative}.empty-orbit:before{content:"";position:absolute;inset:12px;border-radius:50%;border:2px solid #5ebcde}.empty-orbit span{position:absolute;width:10px;height:10px;background:var(--blue);border-radius:50%;top:3px;left:29px}
.report{margin-top:28px}.report-cover{display:flex;align-items:flex-start;justify-content:space-between;padding:28px 30px;background:white;border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow)}.report-cover h2{font-size:30px;margin:0 0 8px;color:var(--navy)}.report-meta{margin:0;color:var(--muted);font-size:14px}.report-tags{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.report-tags span,.soft-badge,.section-pill{display:inline-flex;padding:6px 10px;border-radius:999px;background:#edf6fa;color:#42627d;font-size:11px;font-weight:800}.section-nav{position:sticky;top:84px;z-index:40;margin:14px 0 0;padding:8px;background:rgba(255,255,255,.94);backdrop-filter:blur(12px);border:1px solid var(--line);border-radius:15px;display:flex;gap:4px;box-shadow:0 8px 25px rgba(10,47,84,.06)}.section-nav a{text-decoration:none;color:#52708a;font-weight:800;font-size:12px;padding:8px 12px;border-radius:10px}.section-nav a:hover{background:#edf6fa;color:var(--navy)}
.report-section{scroll-margin-top:142px;padding-top:34px}.section-title-row{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:16px}.section-title-row h3{font-size:25px;margin:0;color:var(--navy)}.section-date{font-size:12px;color:var(--muted)}.section-pill{background:var(--navy);color:white}.section-pill.neutral{background:#edf4f7;color:#536f85}
.card{background:var(--card);border:1px solid var(--line);border-radius:18px;box-shadow:0 10px 32px rgba(11,53,91,.055)}.executive-grid{display:grid;grid-template-columns:1fr 1fr 1.12fr;gap:14px}.score-card,.nse-card,.exposure-card{padding:20px;min-height:250px}.card-title-row{display:flex;align-items:center;justify-content:space-between;font-size:13px;font-weight:900;color:var(--navy)}
.score-gauge{display:grid;place-items:center;margin:14px auto 8px;height:152px}.gauge{width:150px;height:150px;border-radius:50%;background:conic-gradient(var(--green) var(--score-pct),#e8f0f5 0);display:grid;place-items:center;position:relative}.gauge:after{content:"";position:absolute;inset:14px;border-radius:50%;background:white}.gauge-inner{position:relative;z-index:1;text-align:center}.gauge-inner strong{display:block;font-size:40px;color:var(--navy);line-height:1}.gauge-inner small{font-size:10px;color:var(--muted)}.score-caption{text-align:center;display:flex;align-items:center;justify-content:center;gap:8px}.score-caption span{font-size:11px;color:var(--muted)}.score-class{padding:5px 9px;border-radius:999px;font-size:11px}.score-class.excellent,.score-class.good{background:var(--green-bg);color:#087752}.score-class.medium{background:var(--amber-bg);color:#986a00}.score-class.high{background:var(--red-bg);color:#b93e53}
.nse-main{text-align:center;padding:24px 0 20px}.nse-main span{display:block;font-size:62px;font-weight:900;color:var(--blue);line-height:1}.nse-main small{color:var(--muted);font-size:11px}.nse-bands{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.nse-bands div{background:#f3f8fb;border-radius:10px;padding:8px;text-align:center}.nse-bands small,.metric-split small{display:block;color:var(--muted);font-size:9px}.nse-bands strong{font-size:14px;color:var(--navy)}.big-money{font-size:38px;font-weight:900;color:var(--navy);margin:43px 0 24px;letter-spacing:-.03em}.metric-split{display:grid;grid-template-columns:1fr 1fr;gap:8px}.metric-split div{padding:10px;border-radius:12px;background:#f4f9fc}.metric-split strong{display:block;font-size:18px;margin-top:2px}
.summary-metrics{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;margin-top:12px}.metric-card{background:white;border:1px solid var(--line);border-radius:14px;padding:14px}.metric-card small{display:block;color:var(--muted);font-size:10px;font-weight:800}.metric-card strong{display:block;font-size:18px;color:var(--navy);margin:5px 0 2px}.metric-card span{font-size:9px;color:#8296a8}.metric-card.negative strong{color:var(--red)}
.status-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-top:12px}.status-item{display:flex;gap:10px;align-items:center;padding:12px 13px;background:white;border:1px solid var(--line);border-radius:14px}.status-item>span{width:28px;height:28px;border-radius:9px;display:grid;place-items:center;font-weight:900}.status-item.good>span{background:var(--green-bg);color:var(--green)}.status-item.warn>span{background:var(--amber-bg);color:var(--amber)}.status-item.neutral>span{background:#eef4f7;color:#69819a}.status-item small{display:block;color:var(--muted);font-size:9px}.status-item strong{display:block;font-size:12px;color:var(--navy);margin-top:2px}
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:14px}.two-col.wide-left{grid-template-columns:1.65fr .8fr}.three-col{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:14px}.section-card{padding:18px}.section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}.section-heading h4{margin:0;color:var(--navy);font-size:15px}.section-heading p{margin:4px 0 0;font-size:10px;color:var(--muted)}.mini-title{font-size:11px;font-weight:900;letter-spacing:.06em;text-transform:uppercase;color:#3f637f;margin-bottom:9px}.legend-dot{width:9px;height:9px;border-radius:50%;display:block;margin-top:4px}.legend-dot.blue{background:var(--blue)}
.chart-host{min-height:250px;width:100%;overflow:hidden}.chart-host.tall{min-height:350px}.line-chart{width:100%;height:auto;display:block}.grid-line{stroke:#e4edf3;stroke-width:1}.axis-text{fill:#7890a4;font-size:10px}.trend-line{stroke:var(--blue);stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round}.trend-dot{fill:white;stroke:var(--blue);stroke-width:2}.chart-legend{display:flex;flex-wrap:wrap;gap:8px 14px;padding:0 4px 8px;font-size:9px;color:#58738a}.chart-legend span{display:flex;align-items:center;gap:5px}.chart-legend i{width:8px;height:8px;border-radius:50%}
.donut-layout{display:flex;flex-direction:column;align-items:center;gap:15px;padding:10px 0}.donut{width:165px;height:165px;border-radius:50%;display:grid;place-items:center;position:relative;background:#eaf1f5}.donut:after{content:"";position:absolute;inset:26px;background:white;border-radius:50%}.donut>div,.donut-empty{position:relative;z-index:1;text-align:center}.donut strong{display:block;font-size:16px;color:var(--navy)}.donut small{font-size:9px;color:var(--muted)}.donut-legend{width:100%}.donut-legend div{display:grid;grid-template-columns:9px 1fr auto;align-items:center;gap:7px;padding:5px 0;border-bottom:1px dashed #e5edf2;font-size:9px}.donut-legend i{width:8px;height:8px;border-radius:50%}.donut-legend b{color:var(--navy)}
.detail-list{margin:0}.detail-row{display:grid;grid-template-columns:42% 58%;gap:8px;padding:8px 0;border-bottom:1px solid var(--line2);font-size:10px}.detail-row:last-child{border-bottom:0}.detail-row dt{color:var(--muted)}.detail-row dd{margin:0;text-align:right;font-weight:800;color:var(--navy);word-break:break-word}.detail-row.negative dd{color:var(--red)}.detail-list.emphasis .detail-row{padding:11px 0;font-size:11px}.compact-cards .section-card{min-height:180px}
.entity-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:14px}.entity-kpi{padding:14px}.entity-kpi-top{display:flex;justify-content:space-between;align-items:center}.entity-kpi-top span{width:24px;height:24px;border-radius:8px;display:grid;place-items:center;background:#eaf6fb;color:var(--blue);font-weight:900;font-size:10px}.entity-kpi-top b{font-size:9px;background:var(--green-bg);color:#087752;border-radius:999px;padding:4px 7px}.entity-kpi>strong{display:block;font-size:11px;margin:10px 0 5px;min-height:28px}.entity-kpi-money{font-size:18px;font-weight:900;color:var(--navy)}.mini-progress,.bar{height:5px;background:#eaf1f5;border-radius:999px;overflow:hidden;margin:8px 0 4px}.mini-progress i,.bar span{display:block;height:100%;background:linear-gradient(90deg,var(--blue),#39c4e5);border-radius:999px}.entity-kpi>small{font-size:8px;color:var(--muted)}
.financial-bottom{grid-template-columns:1.35fr .8fr}.heatmap-wrap{overflow-x:auto}.heatmap{border-collapse:separate;border-spacing:3px;width:100%;font-size:8px;min-width:700px}.heatmap th{font-size:8px;color:var(--muted);font-weight:800;padding:4px}.heatmap td{padding:6px 4px;text-align:center;border-radius:5px;font-weight:800}.heatmap td:first-child{text-align:left;background:none!important;color:var(--ink);min-width:110px}.heatmap .na{background:#f2f5f7;color:#a2b0ba}.heatmap .s0{background:#edf1f3;color:#728595}.heatmap .s1{background:#ddf7ea;color:#087752}.heatmap .s2{background:#fff1c7;color:#966700}.heatmap .s3{background:#ffe0cf;color:#ad5524}.heatmap .s4{background:#ffd8df;color:#b73e52}.heatmap-legend{display:flex;gap:10px;margin-top:7px;font-size:8px;color:var(--muted)}.heatmap-legend span{display:flex;align-items:center;gap:4px}.heatmap-legend i{width:11px;height:11px;border-radius:3px}.entity-row{padding:9px 0;border-bottom:1px solid var(--line2);position:relative}.entity-row:last-child{border-bottom:0}.entity-name{display:flex;align-items:center;gap:8px;padding-right:85px}.rank{width:23px;height:23px;border-radius:8px;display:grid;place-items:center;background:#eaf6fb;color:var(--blue);font-size:9px;font-weight:900}.entity-name strong{display:block;font-size:10px}.entity-name small{display:block;color:var(--muted);font-size:8px;margin-top:2px}.entity-amount{position:absolute;right:0;top:11px;font-size:10px;font-weight:900}.bar{margin-left:31px;height:4px}
.timeline{position:relative;padding-left:20px}.timeline:before{content:"";position:absolute;left:6px;top:7px;bottom:7px;width:2px;background:#dce9f0}.timeline-item{position:relative;padding:0 0 18px 14px}.timeline-item:last-child{padding-bottom:0}.timeline-item>span{position:absolute;left:-19px;top:4px;width:12px;height:12px;border-radius:50%;background:#a9bac6;border:3px solid white;box-shadow:0 0 0 1px #cddce5}.timeline-item.current>span{background:var(--green);box-shadow:0 0 0 1px #96dfc6}.timeline-item strong{display:block;font-size:11px}.timeline-item small,.timeline-item em{display:block;color:var(--muted);font-size:9px;margin-top:3px;font-style:normal}.tax-cards{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-bottom:15px}.tax-card{padding:12px;border:1px solid var(--line);border-radius:12px;background:#f9fcfd}.tax-card small{display:block;font-size:9px;color:var(--muted)}.tax-card strong{display:block;margin-top:5px;font-size:10px;color:var(--navy)}.inside-grid{margin-top:0;border-top:1px solid var(--line2);padding-top:14px}.simple-list .list-row{padding:8px 0;border-bottom:1px solid var(--line2)}.simple-list .list-row:last-child{border-bottom:0}.list-row strong{display:block;font-size:10px}.list-row span{display:block;font-size:9px;color:var(--muted);margin-top:2px}.asset-cards{display:grid;grid-template-columns:1fr 1fr;gap:8px}.asset-card{padding:13px;border-radius:13px;background:#f5fafc;border:1px solid var(--line)}.asset-card small,.asset-card span{display:block;font-size:8px;color:var(--muted)}.asset-card strong{display:block;font-size:13px;color:var(--navy);margin:4px 0}.highlight-row{display:flex;justify-content:space-between;align-items:center;padding:12px;border-radius:12px;background:#edf7fb;margin-bottom:8px;font-size:10px}.highlight-row strong{font-size:18px}.subsection-label{font-size:9px;font-weight:900;color:var(--muted);text-transform:uppercase;letter-spacing:.08em;margin:12px 0 4px}
.compliance-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.compliance-item{display:flex;gap:12px;padding:15px;border-radius:16px;border:1px solid}.compliance-item.ok{background:var(--green-bg);border-color:#c8eddf}.compliance-item.unknown{background:var(--amber-bg);border-color:#f0dfae}.compliance-item.danger{background:var(--red-bg);border-color:#f3c9d0}.compliance-icon{width:36px;height:36px;border-radius:12px;display:grid;place-items:center;font-weight:900;flex:0 0 auto}.ok .compliance-icon{background:#cff0e2;color:#087752}.unknown .compliance-icon{background:#f7e6ae;color:#916600}.danger .compliance-icon{background:#f6d4da;color:#b73e52}.compliance-item strong{display:block;font-size:11px}.compliance-item small{display:block;font-size:8px;color:var(--muted);margin:2px 0 7px}.compliance-item b{font-size:10px}.method-note{margin-top:10px;padding:11px 13px;border-radius:12px;background:#fff8e7;border:1px solid #f1dfaa;font-size:9px;color:#755a13}.availability-chart>div{display:grid;grid-template-columns:120px 1fr 28px;align-items:center;gap:9px;padding:6px 0;font-size:9px}.availability-chart>div>div{height:8px;background:#edf2f5;border-radius:999px;overflow:hidden}.availability-chart i{display:block;height:100%;background:linear-gradient(90deg,var(--teal),#47c8c5);border-radius:999px}.availability-chart strong{text-align:right}.query-list{display:grid;grid-template-columns:repeat(2,1fr);gap:7px}.query-list>div{display:flex;justify-content:space-between;gap:10px;padding:9px 11px;background:#f6fafc;border-radius:11px}.query-list strong{font-size:9px}.query-list span{font-size:8px;color:var(--muted);white-space:nowrap}
.graph-legend{display:flex;gap:13px;flex-wrap:wrap;font-size:9px;color:var(--muted);margin-bottom:8px}.graph-legend span{display:flex;gap:5px;align-items:center}.graph-legend i{width:14px;height:4px;border-radius:3px;display:block}.g-family{background:#df6483}.g-company{background:#16aa79}.g-person{background:#338bd1}.g-secondary{background:repeating-linear-gradient(90deg,#8ea6b7 0 4px,transparent 4px 7px)}.relations-graph{width:100%;overflow:auto;border-radius:14px;background:linear-gradient(180deg,#fbfdfe,#f5fafc);border:1px solid var(--line2)}.relations-graph svg{display:block;width:100%;min-width:900px;height:auto}.edge-company{stroke:#16aa79;stroke-width:3;opacity:.55}.edge-secondary{stroke:#8ea6b7;stroke-width:1.5;stroke-dasharray:6 6;opacity:.65}.edge-family{stroke:#df6483;stroke-width:3}.node-main circle{fill:#08264d;stroke:white;stroke-width:6}.node-main text{fill:white;font-size:13px;font-weight:900}.node-sub{font-size:8px!important;font-weight:700!important;opacity:.78}.node-company rect{fill:#e8f8f2;stroke:#8adcc0;stroke-width:1.5}.node-company text{fill:#0d5f48;font-size:10px;font-weight:800}.node-person circle{fill:#eaf4fc;stroke:#78b7e6;stroke-width:1.5}.node-person .initials{fill:#237bbd;font-size:11px;font-weight:900}.node-person>text:last-child{fill:#42647e;font-size:9px;font-weight:700}.node-family rect{fill:#fff0f4;stroke:#efaabd}.node-family text{fill:#a93f5d;font-size:9px;font-weight:800}.graph-note{font-size:8px;color:var(--muted);margin:8px 0 0}.relations-detail{grid-template-columns:1.18fr .82fr}.data-table-wrap{overflow:auto}.data-table{width:100%;border-collapse:collapse;font-size:9px}.data-table th{text-align:left;color:var(--muted);padding:7px;border-bottom:1px solid var(--line);font-size:8px}.data-table td{padding:9px 7px;border-bottom:1px solid var(--line2);vertical-align:top}.data-table td strong{display:block;font-size:9px}.data-table td small{display:block;color:var(--muted);font-size:8px;margin-top:2px}.relation-person{display:flex;gap:8px;padding:8px 0;border-bottom:1px solid var(--line2)}.relation-person>span{width:30px;height:30px;border-radius:10px;background:#eaf4fc;color:#237bbd;display:grid;place-items:center;font-size:9px;font-weight:900;flex:0 0 auto}.relation-person.family>span{background:#fff0f4;color:#ae4562}.relation-person strong{font-size:10px}.relation-person small{display:block;font-size:8px;color:var(--muted);margin-top:2px}.edicts-list details{border:1px solid var(--line);border-radius:12px;margin-bottom:7px;overflow:hidden}.edicts-list summary{display:flex;gap:12px;align-items:center;padding:11px 13px;cursor:pointer;background:#fafcfd}.edicts-list summary span{font-size:8px;color:var(--muted);min-width:75px}.edicts-list summary strong{font-size:10px}.edicts-list p{font-size:9px;line-height:1.55;color:#49667e;padding:0 13px 13px;margin:0}.report-footer{display:flex;justify-content:space-between;gap:20px;margin-top:26px;padding:16px 4px;border-top:1px solid var(--line);font-size:9px;color:var(--muted)}.empty-inline{margin:10px 0;color:var(--muted);font-size:10px}
.loader-overlay{position:fixed;inset:0;z-index:100;background:rgba(5,28,53,.5);backdrop-filter:blur(5px);display:grid;place-items:center}.loader-card{width:min(340px,90vw);background:white;border-radius:20px;padding:28px;text-align:center;box-shadow:0 25px 80px rgba(0,0,0,.2)}.loader-card strong,.loader-card small{display:block}.loader-card small{color:var(--muted);font-size:10px;margin-top:5px}.spinner{width:34px;height:34px;border:4px solid #d9edf6;border-top-color:var(--blue);border-radius:50%;display:block;margin:0 auto 14px;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}


/* ===== V5.2 patch: missing component styles ===== */
.score-class.very-high{background:var(--red-bg);color:#b93e53}
.metric-card{display:flex;gap:12px;align-items:flex-start}
.metric-icon{width:34px;height:34px;border-radius:12px;background:#edf7fb;color:var(--blue);display:grid;place-items:center;font-size:15px;font-weight:900;flex:0 0 auto}
.metric-card.negative .metric-icon{background:var(--red-bg);color:var(--red)}
.financial-overview{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:14px}
.financial-main-kpi{display:flex;align-items:flex-start;gap:14px;background:white;border:1px solid var(--line);border-radius:18px;padding:18px;box-shadow:0 10px 32px rgba(11,53,91,.055)}
.financial-main-kpi.ok{background:linear-gradient(180deg,#f6fcfa,#fff);border-color:#cfe9dd}
.financial-main-kpi small{display:block;font-size:10px;color:var(--muted);font-weight:800}
.financial-main-kpi strong{display:block;font-size:17px;color:var(--navy);margin-top:4px}
.financial-main-kpi em{display:block;font-size:10px;color:#5d7891;margin-top:4px;font-style:normal}
.visual-icon{width:42px;height:42px;border-radius:14px;background:#eef7fb;color:var(--blue);display:grid;place-items:center;font-size:20px;font-weight:900;flex:0 0 auto}
.visual-icon.bank{background:#eef8f4;color:var(--green)}
.visual-icon.doc{background:#fff8e8;color:#ad7c09}
.visual-icon.check{background:#eaf9f3;color:#087752}
.semi-gauge{position:relative;width:260px;height:150px;margin:4px auto 6px}
.semi-track{position:absolute;left:10px;right:10px;bottom:18px;height:120px;border-radius:120px 120px 0 0;background:conic-gradient(from 180deg at 50% 100%,#df5368 0deg 36deg,#f27c3a 36deg 72deg,#e3ad2e 72deg 108deg,#28b87a 108deg 144deg,#0a9d69 144deg 180deg)}
.semi-hole{position:absolute;left:42px;right:42px;bottom:18px;height:88px;border-radius:88px 88px 0 0;background:white;border:1px solid #eef3f7;border-bottom:0}
.semi-needle{position:absolute;left:50%;bottom:18px;width:3px;height:94px;transform-origin:center bottom;transform:translateX(-50%) rotate(var(--needle-angle));z-index:3}
.semi-needle span{display:block;width:100%;height:100%;background:linear-gradient(180deg,#0d3868,#1aa5df);border-radius:999px}
.semi-needle:after{content:"";position:absolute;left:50%;bottom:-7px;transform:translateX(-50%);width:16px;height:16px;border-radius:50%;background:var(--navy);box-shadow:0 0 0 4px white}
.semi-value{position:absolute;left:50%;bottom:28px;transform:translateX(-50%);text-align:center;z-index:4}
.semi-value small{display:block;font-size:10px;color:var(--muted);font-weight:800}
.semi-value strong{display:block;font-size:36px;line-height:1;color:var(--navy);letter-spacing:-.03em}
.semi-value span{display:block;font-size:11px;color:#6d8699;margin-top:2px}
.semi-tick{position:absolute;bottom:0;font-size:10px;color:#6f8799;font-weight:800;transform:translateX(-50%)}
.tick-0{left:16px;bottom:22px}.tick-20{left:52px;bottom:76px}.tick-40{left:87px;bottom:114px}.tick-60{left:173px;bottom:114px}.tick-80{left:208px;bottom:76px}.tick-100{left:244px;bottom:22px}
.risk-scale{margin-top:10px}
.risk-scale-bar{position:relative;display:grid;grid-template-columns:repeat(5,1fr);gap:6px}
.risk-scale-bar i{display:block;height:10px;border-radius:999px}
.risk-scale-bar i:nth-child(1){background:#df5368}.risk-scale-bar i:nth-child(2){background:#f27c3a}.risk-scale-bar i:nth-child(3){background:#e3ad2e}.risk-scale-bar i:nth-child(4){background:#28b87a}.risk-scale-bar i:nth-child(5){background:#0a9d69}
.risk-marker{position:absolute;top:-5px;width:12px;height:12px;border-radius:50%;background:var(--navy);border:3px solid white;box-shadow:0 2px 8px rgba(8,38,77,.18);transform:translateX(-50%)}
.risk-scale-labels{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin-top:8px;font-size:10px;color:#638096;text-align:center;font-weight:700}
.nse-single-note{display:flex;justify-content:space-between;align-items:center;gap:12px;background:#f4f9fc;border:1px solid var(--line2);border-radius:14px;padding:12px 14px;margin-top:8px}
.nse-single-note span{font-size:11px;color:var(--muted)}
.nse-single-note strong{font-size:14px;color:var(--navy)}
.chart-legend.prominent.detailed{gap:10px;padding:0 0 12px}
.chart-legend.prominent.detailed span{background:#f6fafc;border:1px solid var(--line2);border-radius:12px;padding:7px 10px;display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.chart-legend.prominent.detailed i{width:10px;height:10px;border-radius:3px}
.chart-legend.prominent.detailed b{font-size:10px;color:var(--navy)}
.chart-legend.prominent.detailed small{font-size:9px;color:var(--muted)}
.history-list{display:grid;gap:10px}
.history-row{display:grid;grid-template-columns:108px 1fr;gap:14px;padding:12px 0;border-bottom:1px solid var(--line2)}
.history-row:last-child{border-bottom:0}
.history-row time{font-size:12px;font-weight:800;color:var(--navy)}
.history-row strong{display:block;font-size:12px;color:var(--navy);line-height:1.35}
.history-row small{display:block;font-size:10px;color:var(--muted);margin-top:4px}
.territorial-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.territorial-card{padding:13px;border-radius:14px;background:#f6fafd;border:1px solid var(--line)}
.territorial-card small{display:block;font-size:9px;color:var(--muted);font-weight:800}
.territorial-card strong{display:block;font-size:22px;color:var(--navy);margin:6px 0 4px;line-height:1}
.territorial-card span{display:block;font-size:10px;color:#668198}
.territorial-meta{display:flex;flex-wrap:wrap;gap:16px;margin-top:12px;font-size:11px;color:#5f7b92}
.aportes-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:12px}
.aporte-kpi{display:flex;gap:10px;align-items:center;padding:13px;border-radius:14px;border:1px solid var(--line);background:#f9fcfd}
.aporte-kpi-icon{width:28px;height:28px;border-radius:10px;display:grid;place-items:center;font-weight:900;font-size:13px;flex:0 0 auto}
.aporte-kpi.ok{background:#f1fbf6;border-color:#d5efe3}.aporte-kpi.ok .aporte-kpi-icon{background:#dbf4e7;color:#087752}
.aporte-kpi.bad{background:#fff5f6;border-color:#f1d5db}.aporte-kpi.bad .aporte-kpi-icon{background:#ffe3e7;color:#b73e52}
.aporte-kpi.unknown,.aporte-kpi.neutral{background:#f7fafc}.aporte-kpi.unknown .aporte-kpi-icon,.aporte-kpi.neutral .aporte-kpi-icon{background:#eef3f7;color:#6f8799}
.aporte-kpi small{display:block;font-size:9px;color:var(--muted)}
.aporte-kpi strong{display:block;font-size:11px;color:var(--navy);margin-top:2px}
.aportes-visual-layout{display:grid;grid-template-columns:1fr 250px;gap:12px;align-items:start}
.aportes-history,.aportes-compliance{min-height:100%}
.aportes-empty{display:flex;flex-direction:column;gap:3px;padding:14px;border-radius:14px;background:#f7fafc;border:1px dashed #cadbe7}
.aportes-empty strong{font-size:12px;color:var(--navy)}
.aportes-empty span{font-size:10px;color:var(--muted)}
.aporte-status{display:inline-flex;align-items:center;justify-content:center;min-width:66px;padding:6px 8px;border-radius:999px;font-size:8px;font-weight:800}
.aporte-status.ok{background:#eaf9f3;color:#087752}.aporte-status.bad{background:#fff0f3;color:#b73e52}.aporte-status.unknown,.aporte-status.neutral{background:#eef4f7;color:#678096}
.compliance-ring{--pct:0; width:150px;height:150px;margin:8px auto 10px;border-radius:50%;background:conic-gradient(var(--green) calc(var(--pct)*1%),#e9f0f4 0);display:grid;place-items:center;position:relative}
.compliance-ring:after{content:"";position:absolute;inset:16px;background:white;border-radius:50%;box-shadow:inset 0 0 0 1px #eef3f7}
.compliance-ring>div{position:relative;z-index:1;text-align:center}
.compliance-ring small{display:block;font-size:10px;color:var(--muted);font-weight:800}
.compliance-ring strong{display:block;font-size:26px;color:var(--navy)}
.aportes-compliance p{margin:0;text-align:center;font-size:10px;color:var(--muted);line-height:1.5}
.obra-social-grid{display:grid;gap:10px}
.obra-social-card{display:flex;gap:14px;align-items:flex-start;padding:14px;border-radius:15px;background:#f8fbfd;border:1px solid var(--line)}
.obra-social-icon{width:42px;height:42px;border-radius:14px;background:#edf7fb;color:var(--blue);display:grid;place-items:center;font-size:13px;font-weight:900;flex:0 0 auto}
.obra-social-card strong{display:block;font-size:11px;color:var(--navy)}
.obra-social-card span{display:block;font-size:10px;color:#46627a;margin-top:3px}
.obra-social-card small{display:block;font-size:10px;color:var(--muted);margin-top:4px}
.query-chart,.query-bars{display:grid;gap:10px;align-items:end;min-height:160px}
.mini-bars{display:flex;align-items:flex-end;gap:10px;min-height:150px;padding-top:10px}
.mini-bar{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:6px}
.mini-bar strong{font-size:10px;color:var(--navy)}
.mini-bar i{display:block;width:100%;max-width:36px;border-radius:12px 12px 4px 4px;background:linear-gradient(180deg,#1aa5df,#0d7fb3)}
.mini-bar span{font-size:9px;color:var(--muted);white-space:nowrap}
.query-bar-row{display:grid;grid-template-columns:minmax(120px,1fr) 1fr 28px;align-items:center;gap:10px;font-size:10px}
.query-bar-row>span{color:#456178}
.query-bar-row>div{height:10px;background:#edf3f7;border-radius:999px;overflow:hidden}
.query-bar-row i{display:block;height:100%;background:linear-gradient(90deg,var(--purple),#9c89ef);border-radius:999px}
.query-bar-row strong{text-align:right;color:var(--navy)}

.search-help{margin-top:9px;font-size:10px;line-height:1.4;color:#6b8298}
.search-results{margin-top:14px;border-top:1px solid #e4edf3;padding-top:12px}
.search-results-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:9px}
.search-results-head strong{font-size:11px;color:var(--navy)}
.search-results-head span{font-size:9px;color:var(--muted)}
.search-result-list{display:grid;gap:8px;max-height:330px;overflow:auto;padding-right:2px}
.search-result-card{display:grid;grid-template-columns:auto 1fr auto;gap:11px;align-items:center;padding:11px;border:1px solid #dce9f0;background:#f9fcfd;border-radius:14px}
.search-result-type{font-size:7px;font-weight:900;letter-spacing:.08em;border-radius:999px;padding:5px 7px;background:#e9f7fd;color:#087eaf}
.search-result-type.company{background:#eaf9f3;color:#087752}
.search-result-main{min-width:0}
.search-result-main strong{display:block;font-size:11px;color:var(--navy);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.search-result-main span{display:block;font-size:9px;color:#5e7890;margin-top:3px}
.search-result-main small{display:block;font-size:9px;color:#8095a7;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.search-result-action{border:0;background:var(--navy);color:white;border-radius:10px;padding:9px 11px;font-size:9px;font-weight:900;cursor:pointer;white-space:nowrap}
.search-result-action:hover{background:var(--blue)}
.search-no-results{display:flex;flex-direction:column;gap:3px;padding:13px;border-radius:12px;background:#f7fafc;border:1px dashed #cadbe7}
.search-no-results strong{font-size:11px;color:var(--navy)}.search-no-results span{font-size:9px;color:var(--muted)}

@media(max-width:1100px){.financial-overview{grid-template-columns:repeat(2,1fr)}.territorial-grid,.aportes-summary{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.search-result-card{grid-template-columns:1fr}.search-result-type{justify-self:start}.search-result-action{width:100%;padding:12px}.search-results-head{align-items:flex-start;flex-direction:column;gap:2px}.search-result-list{max-height:430px}.financial-overview,.territorial-grid,.aportes-summary,.aportes-visual-layout{grid-template-columns:1fr}.history-row{grid-template-columns:1fr;gap:4px}.semi-gauge{transform:scale(.9);transform-origin:center top}.query-bar-row{grid-template-columns:1fr}}

@media(max-width:1100px){.summary-metrics{grid-template-columns:repeat(3,1fr)}.status-grid{grid-template-columns:repeat(3,1fr)}.executive-grid{grid-template-columns:1fr 1fr}.exposure-card{grid-column:1/-1;min-height:auto}.big-money{margin:25px 0}.entity-cards{grid-template-columns:repeat(2,1fr)}.compliance-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.topbar-inner,.app-shell{padding-left:16px;padding-right:16px}.hero-panel{grid-template-columns:1fr;padding:24px}.hero-panel h1{font-size:28px}.search-row{flex-direction:column}.section-nav{overflow-x:auto;white-space:nowrap;top:76px}.executive-grid,.two-col,.two-col.wide-left,.three-col,.financial-bottom,.relations-detail{grid-template-columns:1fr}.summary-metrics{grid-template-columns:1fr 1fr}.status-grid{grid-template-columns:1fr 1fr}.entity-cards,.tax-cards,.compliance-grid{grid-template-columns:1fr 1fr}.query-list{grid-template-columns:1fr}.report-cover{flex-direction:column;gap:14px}.report-cover h2{font-size:24px}.section-title-row{align-items:flex-start;gap:8px;flex-direction:column}.chart-host{overflow-x:auto}.line-chart{min-width:700px}.availability-chart>div{grid-template-columns:90px 1fr 24px}.top-logo{height:36px}.user-chip{display:none}}
@media(max-width:460px){.summary-metrics,.status-grid,.entity-cards,.tax-cards,.compliance-grid,.asset-cards{grid-template-columns:1fr}.nse-bands{grid-template-columns:1fr 1fr}.app-shell{padding-top:18px}.hero-panel{border-radius:20px}.report-cover{padding:20px}.section-card{padding:15px}}

@page{size:A4 portrait;margin:10mm}
@media print{
  html,body{background:#fff!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important;color-adjust:exact!important}
  body{margin:0;padding:0}
  .no-print,.topbar,.hero-panel,.empty-state,.loader-overlay{display:none!important}
  .app-shell{max-width:none;padding:0}
  .report{display:block!important}
  .report-cover{box-shadow:none;border:1px solid #dceaf2;border-radius:18px;margin:0 0 6mm 0;padding:8mm}
  .report-section{box-shadow:none;border-radius:0;border:0;border-top:1px solid #dceaf2;margin:0;padding:9mm 7mm;overflow:visible;break-before:page;page-break-before:always;break-inside:auto;page-break-inside:auto}
  .report-section:first-of-type{break-before:auto;page-break-before:auto}
  .report-section:after{display:block;right:7mm;top:7mm;width:40mm;height:12mm}
  .section-title-row{padding-right:46mm}
  .financial-overview{grid-template-columns:repeat(4,1fr)}
  .executive-grid{grid-template-columns:1.15fr .95fr .8fr}
  .summary-metrics{grid-template-columns:repeat(6,1fr)}
  .status-grid{grid-template-columns:repeat(6,1fr)}
  .entity-cards{grid-template-columns:repeat(4,1fr)}
  .aportes-visual-layout{grid-template-columns:1fr 45mm}
  .consultation-visuals{grid-template-columns:1fr 1fr}
  .edicts-list{grid-template-columns:repeat(2,1fr)}
  .card,.metric-card,.entity-kpi,.financial-main-kpi,article,table,svg,.chart-host,.relation-graph-card,.heatmap-wrap,.aportes-matrix-wrap,.data-table-wrap{break-inside:avoid;page-break-inside:avoid}
  .chart-host,.heatmap-wrap,.aportes-matrix-wrap,.data-table-wrap{overflow:visible!important}
  .line-chart,svg{max-width:100%!important;height:auto!important}
  .semi-gauge{transform:scale(.82);transform-origin:center top}
  .score-card,.nse-card,.exposure-card{min-height:250px}
  .relations-graph{min-height:110mm}
  .relations-graph svg{max-height:110mm}
  .report-footer{margin-top:6mm;padding-top:4mm;break-inside:avoid;page-break-inside:avoid}
}


/* ===== V5.3 Mobile login / webapp experience ===== */
.login-body{min-height:100svh;margin:0;background:linear-gradient(135deg,#071f41 0%,#0a3767 48%,#0b8aba 100%);color:var(--ink);overflow-x:hidden;padding:max(0px,env(safe-area-inset-top)) max(0px,env(safe-area-inset-right)) max(0px,env(safe-area-inset-bottom)) max(0px,env(safe-area-inset-left))}
.login-shell{min-height:100svh;display:grid;grid-template-columns:minmax(0,1.08fr) minmax(420px,.92fr);background:white}
.login-brand{position:relative;display:flex;flex-direction:column;justify-content:center;gap:34px;padding:clamp(48px,7vw,100px);background:radial-gradient(circle at 20% 15%,rgba(42,189,230,.22),transparent 30%),linear-gradient(145deg,#071e40 0%,#0a3260 52%,#0b79aa 100%);color:white;overflow:hidden}
.login-brand:before,.login-brand:after{content:"";position:absolute;border-radius:50%;border:1px solid rgba(255,255,255,.11);pointer-events:none}.login-brand:before{width:460px;height:460px;right:-180px;top:-190px;box-shadow:0 0 0 72px rgba(255,255,255,.025),0 0 0 145px rgba(255,255,255,.018)}.login-brand:after{width:280px;height:280px;left:-120px;bottom:-120px}
.login-brand>*{position:relative;z-index:1}.brand-logo{width:min(320px,72%);height:auto;object-fit:contain;object-position:left center;filter:drop-shadow(0 12px 30px rgba(0,0,0,.12))}.login-brand .eyebrow{color:#68d5f8;margin-bottom:14px}.login-brand h1{margin:0;max-width:760px;font-size:clamp(38px,4vw,64px);line-height:1.02;letter-spacing:-.035em}.login-brand .lead{margin:18px 0 0;max-width:650px;color:#d8ebf6;font-size:clamp(16px,1.3vw,20px);line-height:1.55}
.brand-feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;max-width:780px}.brand-feature-grid>div{padding:18px;border:1px solid rgba(255,255,255,.13);border-radius:18px;background:rgba(255,255,255,.075);backdrop-filter:blur(8px)}.brand-feature-grid span{display:grid;place-items:center;width:31px;height:31px;border-radius:10px;background:rgba(105,216,250,.15);color:#7cddfb;font-size:11px;font-weight:900}.brand-feature-grid strong{display:block;margin-top:12px;font-size:13px;color:white}.brand-feature-grid small{display:block;margin-top:5px;font-size:11px;line-height:1.4;color:#c7deec}
.login-card-wrap{display:grid;place-items:center;padding:clamp(28px,5vw,74px);background:radial-gradient(circle at 100% 0,#e7f8fd 0,transparent 32%),#f5f9fc}.login-card{width:min(100%,520px);padding:clamp(26px,4vw,46px);background:white;border:1px solid #d9e7f0;border-radius:28px;box-shadow:0 28px 80px rgba(8,38,77,.12)}.mobile-brand{display:none}.login-card .eyebrow{margin-bottom:8px}.login-card h2{margin:0;color:var(--navy);font-size:clamp(30px,3vw,42px);letter-spacing:-.025em}.login-card>.muted{margin:8px 0 26px;line-height:1.5}.login-card label{display:block;color:var(--navy);font-size:12px;font-weight:900;margin-top:15px}.login-card input{display:block;width:100%;height:54px;margin-top:8px;border:1px solid #cbdce7;border-radius:14px;background:#fbfdfe;padding:0 15px;color:var(--ink);font-size:16px;outline:none;transition:.18s}.login-card input:focus{border-color:var(--blue);background:white;box-shadow:0 0 0 4px rgba(7,151,210,.1)}.login-card .primary-btn{width:100%;min-height:54px;margin-top:22px;border-radius:14px;font-size:15px}.login-card .form-message{min-height:22px;margin-top:12px}.secure-note{display:flex;align-items:flex-start;gap:8px;margin:18px 0 0;padding-top:16px;border-top:1px solid #edf3f7;color:#6b8397;font-size:11px;line-height:1.45}.mobile-app-hint{display:flex;align-items:flex-start;gap:10px;margin:-10px 0 22px;padding:11px 12px;border-radius:13px;background:#eef8fc;border:1px solid #d8edf6}.mobile-app-hint>span{display:grid;place-items:center;flex:0 0 auto;width:28px;height:28px;border-radius:9px;background:white;color:var(--blue);font-weight:900}.mobile-app-hint p{margin:1px 0 0;color:#55758c;font-size:10px;line-height:1.45}

@media(max-width:980px){
  .login-shell{grid-template-columns:1fr;min-height:100svh;background:linear-gradient(160deg,#071f41 0,#0a4e7f 48%,#eaf7fc 48.2%,#f5f9fc 100%)}
  .login-brand{display:none}
  .login-card-wrap{min-height:100svh;padding:calc(28px + env(safe-area-inset-top)) 18px calc(28px + env(safe-area-inset-bottom));background:transparent;align-items:center}
  .login-card{width:min(100%,480px);border-radius:26px;padding:28px 24px 26px;box-shadow:0 24px 70px rgba(5,31,65,.24)}
  .mobile-brand{display:flex;justify-content:center;margin:-4px 0 22px;padding:12px 18px;border-radius:18px;background:#08264d}
  .mobile-brand img{width:min(260px,78%);height:auto;display:block}
  .login-card h2{text-align:center;font-size:32px}.login-card .eyebrow{text-align:center}.login-card>.muted{text-align:center;margin-bottom:24px}
  .mobile-app-hint{margin-top:-8px}
}
@media(max-width:520px){
  .login-card-wrap{padding-left:12px;padding-right:12px;align-items:center}
  .login-card{padding:24px 18px 22px;border-radius:22px}
  .mobile-brand{margin-bottom:18px;padding:10px 14px}
  .login-card input{height:56px;border-radius:13px}
  .login-card .primary-btn{min-height:56px}
  .secure-note{font-size:10px}
}
@media(max-height:700px) and (max-width:980px){.login-card-wrap{align-items:start}.login-card{margin-top:10px}.mobile-app-hint{display:none}}


/* ===== V5.4 - Pulido visual ejecutivo ===== */
.score-card{background:linear-gradient(180deg,#ffffff 0%,#fbfdfe 100%)}
.score-gauge{height:176px;margin:8px auto 2px;display:grid;place-items:center}
.score-svg{width:100%;max-width:410px;height:180px;overflow:visible;display:block}
.score-svg-track{fill:none;stroke:#edf2f5;stroke-width:34;stroke-linecap:butt}
.score-svg-arc{fill:none;stroke:url(#scoreArcGradient);stroke-width:34;stroke-linecap:butt}
.score-svg-tick{stroke:#ffffff;stroke-width:3.2;opacity:.95}
.score-svg-label{fill:#69819a;font-size:11px;font-weight:800}
.score-svg-needle{stroke:#08264d;stroke-width:5;stroke-linecap:round}
.score-svg-hub{fill:#08264d;stroke:#ffffff;stroke-width:4}
.score-svg-hub-inner{fill:#18a5d8}
.score-svg-caption{fill:#6d8498;font-size:10px;font-weight:900;letter-spacing:.12em}
.score-svg-value{fill:#08264d;font-size:38px;font-weight:900;letter-spacing:-.04em}
.score-caption{margin-top:0}
.risk-scale{margin-top:7px}
.risk-scale-labels span{display:flex;flex-direction:column;gap:1px}
.nse-card{background:linear-gradient(180deg,#ffffff 0%,#f8fcfe 100%)}
.exposure-card{background:linear-gradient(180deg,#ffffff 0%,#f8fcfe 100%)}
.executive-grid>.card{box-shadow:0 12px 34px rgba(10,47,84,.07)}
.section-title-row h3{letter-spacing:-.02em}
.section-subtitle{margin:5px 0 0;color:#607c93;font-size:11px}
@media(max-width:760px){.score-gauge{height:160px}.score-svg{height:165px}.score-svg-value{font-size:34px}}
@media print{.score-svg{height:42mm}.score-gauge{height:43mm}.score-svg-track,.score-svg-arc,.score-svg-needle,.score-svg-tick{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}}


/* ===== V5.4.1 mobile safe-area patch ===== */
.topbar{
  padding-top:env(safe-area-inset-top,0px);
}
.topbar-inner{
  min-height:72px;
  height:72px;
}
.section-nav{
  top:calc(84px + env(safe-area-inset-top,0px));
}
@media(max-width:760px){
  .topbar-inner{
    min-height:68px;
    height:68px;
    padding-left:max(16px,env(safe-area-inset-left,0px));
    padding-right:max(16px,env(safe-area-inset-right,0px));
  }
  .top-actions .ghost-btn{
    min-height:44px;
    padding:10px 14px;
    touch-action:manipulation;
  }
  .section-nav{
    top:calc(72px + env(safe-area-inset-top,0px));
  }
}

/* ===== V5.5: personas juridicas, alertas y aportes ===== */
.risk-alerts{align-items:stretch}.risk-alert-card{position:relative;overflow:hidden}.risk-alert-card.has-alert{border-color:#f1c9d0;background:linear-gradient(180deg,#fffafb,#fff)}.risk-alert-card.has-alert:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--red)}
.risk-alert-list{display:grid;gap:9px}.risk-alert-item{display:flex;gap:11px;align-items:flex-start;padding:11px 12px;border-radius:13px;border:1px solid var(--line);background:#f8fbfd}.risk-alert-item.danger{background:#fff5f6;border-color:#f3d0d6}.risk-alert-icon{width:30px;height:30px;border-radius:10px;background:#f7dce1;color:#b73e52;display:grid;place-items:center;font-weight:900;flex:0 0 auto}.risk-alert-item strong{display:block;font-size:11px;color:var(--navy)}.risk-alert-item small,.risk-alert-item em{display:block;font-size:9px;color:var(--muted);margin-top:3px;font-style:normal}.positive-empty{display:flex;gap:11px;align-items:center;padding:13px;border-radius:13px;background:#f1fbf6;border:1px solid #d3eee1}.positive-empty>span{width:30px;height:30px;border-radius:10px;background:#d9f2e7;color:#087752;display:grid;place-items:center;font-weight:900}.positive-empty strong{display:block;font-size:11px;color:#0c664c}.positive-empty small{display:block;font-size:9px;color:#638276;margin-top:2px}
.company-mode .nse-card{background:linear-gradient(145deg,#f7fbfd,#eef7fb)}.company-mode .nse-main span{font-size:54px;color:var(--navy)}.company-mode .nse-single-note strong{max-width:58%;text-align:right;font-size:11px}.company-mode .status-grid{grid-template-columns:repeat(6,1fr)}
.contributions-card{border-color:#d7e9f2}.aportes-matrix-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:14px;background:white}.aportes-matrix{width:100%;border-collapse:collapse;min-width:690px}.aportes-matrix th{background:#f3f8fb;color:#4c6880;font-size:9px;padding:10px 9px;border-bottom:1px solid var(--line);text-align:center}.aportes-matrix th:first-child{text-align:left}.aportes-matrix td{padding:9px;border-bottom:1px solid #edf3f7;text-align:center;font-size:9px}.aportes-matrix td:first-child{text-align:left;font-weight:800;color:#405f77;background:#fbfdfe}.aportes-matrix tr:last-child td{border-bottom:0}.aporte-status.ok{min-width:72px}.compliance-ring{box-shadow:0 10px 28px rgba(8,38,77,.07)}
@media(max-width:760px){.company-mode .status-grid{grid-template-columns:1fr 1fr}.risk-alerts{grid-template-columns:1fr}.risk-alert-item{padding:10px}.company-mode .nse-single-note{align-items:flex-start;flex-direction:column}.company-mode .nse-single-note strong{max-width:none;text-align:left}}
@media print{.risk-alert-card,.risk-alert-item,.positive-empty{break-inside:avoid;page-break-inside:avoid}.aportes-matrix-wrap{overflow:visible!important}.aportes-matrix{min-width:0;font-size:7px}.risk-alerts{grid-template-columns:1fr 1fr}}

/* ===== V5.7 visualizacion BCRA + aportes ===== */
.heading-with-icon{display:flex;align-items:center;gap:12px}
.section-visual-icon{width:42px;height:42px;border-radius:13px;background:linear-gradient(145deg,#e8f7fd,#d8effa);display:grid;place-items:center;color:#0b8fc8;font-weight:900;font-size:19px;box-shadow:inset 0 0 0 1px #d7edf7;flex:0 0 auto}
.section-visual-icon.shield{color:#1976d2}.section-visual-icon.chart{font-size:23px}.section-visual-icon.bars{font-size:20px}
.bcra-reference-card{margin:14px 0;background:linear-gradient(180deg,#fff,#fbfdfe)}
.bcra-reference-heading{margin-bottom:12px}
.bcra-situation-reference{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}
.bcra-ref-item{display:flex;gap:12px;align-items:flex-start;min-height:108px;padding:15px 14px;border-radius:15px;border:1px solid transparent;transition:.18s}
.bcra-ref-item .bcra-ref-dot{width:34px;height:34px;border-radius:50%;background:var(--sit-color);box-shadow:0 8px 20px color-mix(in srgb,var(--sit-color) 30%,transparent);flex:0 0 auto}
.bcra-ref-item strong{display:block;font-size:11px;color:var(--navy);line-height:1.25}.bcra-ref-item small{display:block;margin-top:6px;font-size:9px;line-height:1.45;color:#617b91}
.bcra-ref-item.sit-1{background:#eaf9f3;border-color:#d8f0e5}.bcra-ref-item.sit-2{background:#fff8e8;border-color:#f4e8c5}.bcra-ref-item.sit-3{background:#fff2e9;border-color:#f5dccd}.bcra-ref-item.sit-4{background:#fff0f3;border-color:#f4d6dd}.bcra-ref-item.sit-5{background:#fdecee;border-color:#efcdd1}
.bcra-ref-item.active{transform:translateY(-2px);box-shadow:0 10px 25px rgba(8,38,77,.09);outline:2px solid rgba(8,38,77,.08)}
.situation-kpi .visual-icon.doc{background:color-mix(in srgb,var(--sit-color) 14%,white);color:var(--sit-color)}
.entity-cards{grid-template-columns:repeat(auto-fit,minmax(205px,1fr))}
.entity-kpi{position:relative;overflow:hidden;border-top:4px solid var(--entity-color);background:linear-gradient(180deg,#fff,#fbfdfe)}
.entity-kpi:before{content:"";position:absolute;right:-28px;top:-28px;width:80px;height:80px;border-radius:50%;background:color-mix(in srgb,var(--entity-color) 10%,transparent)}
.entity-title-line{display:flex;align-items:flex-start;gap:8px;margin:10px 0 5px;min-height:30px}.entity-title-line strong{font-size:11px;line-height:1.3}.entity-color-dot,.entity-inline-dot{width:10px;height:10px;border-radius:50%;display:inline-block;flex:0 0 auto}.entity-inline-dot{margin-right:6px;vertical-align:1px}
.entity-rank{background:color-mix(in srgb,var(--entity-color) 14%,white)!important;color:var(--entity-color)!important}
.entity-sit{display:inline-flex;align-items:center;border-radius:999px;padding:4px 7px;font-size:8px;font-weight:900;white-space:nowrap}.entity-sit.sit-1{background:#eaf9f3;color:#087752}.entity-sit.sit-2{background:#fff3ca;color:#946700}.entity-sit.sit-3{background:#ffe2cf;color:#ad5524}.entity-sit.sit-4{background:#ffd8df;color:#b73e52}.entity-sit.sit-5{background:#f8cbd0;color:#9e1f2a}.entity-sit.sit-0{background:#eef3f7;color:#718596}
.entity-composition-card{margin-top:14px}.entity-color-legend{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px!important;margin-bottom:6px}.entity-color-legend span{background:#f8fbfd;border:1px solid var(--line);padding:8px 10px;border-radius:12px}.entity-color-legend i{width:13px!important;height:13px!important;border-radius:50%!important;box-shadow:0 3px 8px color-mix(in srgb,var(--entity-color) 35%,transparent)}.entity-color-legend b{font-size:9px!important;line-height:1.25}
.chart-scroll{overflow-x:auto;padding-bottom:2px}.entity-stacked-chart{min-width:980px}.entity-axis-label{font-size:8px}.axis-title{fill:#5d768b;font-size:10px;font-weight:800}
.heatmap .s5{background:#f6c8ce;color:#991e2a}.heatmap-legend.detailed{flex-wrap:wrap;gap:7px 12px}.heatmap-legend.detailed span{font-size:8px;padding:4px 7px;border-radius:999px;background:#f8fbfd;border:1px solid var(--line2)}.heatmap-legend .s5{background:#f6c8ce}
.entity-row{border-left:3px solid var(--entity-color);padding-left:9px;border-radius:6px}.entity-name small{display:flex;align-items:center;flex-wrap:wrap;gap:4px;margin-top:4px}
.contributions-card{background:linear-gradient(180deg,#fff,#fbfdfe);border-color:#d9e9f2}.contributions-heading{padding-bottom:4px;border-bottom:1px solid #edf3f7}.aportes-summary:empty{display:none}.aportes-visual-layout{grid-template-columns:minmax(0,1fr) 270px;gap:20px;align-items:stretch}.aportes-history{display:flex;align-items:stretch}.aportes-matrix-wrap{width:100%;border-radius:15px;box-shadow:0 8px 24px rgba(8,38,77,.04)}.aportes-matrix.visual{min-width:720px}.aportes-matrix.visual th{background:#f2f7fa;color:#19395e;font-size:10px;padding:12px 10px}.aportes-matrix.visual th:first-child{font-size:10px}.aportes-matrix.visual td{padding:0;border-right:1px solid #edf3f7}.aportes-matrix.visual td:first-child{padding:12px 14px;font-size:10px;background:#f8fbfd}.aporte-cell{transition:.15s}.aporte-cell.ok{background:linear-gradient(180deg,#effbf6,#e7f8f0)}.aporte-cell.bad{background:linear-gradient(180deg,#fff3f5,#ffe9ed)}.aporte-cell.unknown,.aporte-cell.neutral{background:#f7fafc}.aporte-status{min-width:0;width:100%;padding:12px 8px;border-radius:0;background:transparent!important;font-size:9px}.aporte-status.ok{color:#089568}.aporte-status.ok:before{content:"✓";display:inline-grid;place-items:center;width:21px;height:21px;border-radius:50%;background:#17b87e;color:white;margin-right:6px;font-size:11px}.aporte-status.bad:before{content:"!";display:inline-grid;place-items:center;width:21px;height:21px;border-radius:50%;background:#df5368;color:white;margin-right:6px;font-size:11px}.aporte-status.ok,.aporte-status.bad,.aporte-status.unknown,.aporte-status.neutral{font-weight:900}
.aportes-compliance{border-left:1px dashed #d9e5ed;padding-left:20px;display:flex;flex-direction:column;justify-content:center}.compliance-ring.large{width:178px;height:178px;margin:4px auto 12px;background:conic-gradient(#0db47b calc(var(--pct)*1%),#e7eef2 0);box-shadow:0 12px 30px rgba(13,180,123,.12)}.compliance-ring.large:after{inset:21px}.compliance-ring.large small{font-size:12px}.compliance-ring.large strong{font-size:32px}.aportes-note{display:flex;gap:10px;align-items:flex-start;background:#eef7fd;border:1px solid #dcecf7;border-radius:13px;padding:13px}.aportes-note>span{width:22px;height:22px;border-radius:50%;background:#2a9fe8;color:white;display:grid;place-items:center;font-weight:900;font-size:11px;flex:0 0 auto}.aportes-note p{margin:0!important;text-align:left!important;color:#4c6a84!important;font-size:9px!important;line-height:1.5!important}
@media(max-width:1000px){.bcra-situation-reference{grid-template-columns:repeat(2,1fr)}.aportes-visual-layout{grid-template-columns:1fr}.aportes-compliance{border-left:0;border-top:1px dashed #d9e5ed;padding-left:0;padding-top:18px}}
@media(max-width:620px){.bcra-situation-reference{grid-template-columns:1fr}.bcra-ref-item{min-height:0}.entity-color-legend{grid-template-columns:1fr 1fr}.section-visual-icon{width:36px;height:36px}.aportes-matrix.visual{min-width:690px}}
@media print{.bcra-reference-card,.entity-composition-card,.contributions-card{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}.bcra-situation-reference{grid-template-columns:repeat(5,1fr)}.bcra-ref-item{min-height:88px;padding:10px}.entity-stacked-chart{min-width:0}.chart-scroll{overflow:visible}.aportes-visual-layout{grid-template-columns:1fr 45mm;gap:6mm}.aportes-compliance{padding-left:4mm}.compliance-ring.large{width:36mm;height:36mm}.aportes-matrix.visual{min-width:0}.aporte-status{font-size:6.5pt}.aporte-status.ok:before,.aporte-status.bad:before{width:4mm;height:4mm;margin-right:1mm}}


/* ===== V5.8 Premium visual layer ===== */
:root{
  --premium-bg:#f5f8fc;
  --premium-panel:#ffffff;
  --premium-border:#e2ebf2;
  --premium-shadow:0 14px 40px rgba(16,57,92,.07);
  --premium-shadow-strong:0 24px 65px rgba(8,38,77,.10)
}
body.app-body{background:linear-gradient(180deg,#f6f9fc 0%,#eef5f9 100%)}
.app-frame{min-height:100vh;display:grid;grid-template-columns:178px minmax(0,1fr)}
.app-main{min-width:0}
.side-rail{position:sticky;top:0;height:100vh;background:linear-gradient(180deg,#07254a 0%,#0a386a 52%,#0a2d56 100%);color:white;padding:18px 12px 16px;display:flex;flex-direction:column;z-index:70;box-shadow:14px 0 40px rgba(6,34,69,.08)}
.side-brand{display:block;padding:2px 10px 22px;border-bottom:1px solid rgba(255,255,255,.10)}
.side-brand img{width:135px;max-width:100%;display:block}
.side-menu{display:grid;gap:7px;margin-top:18px}.side-link{display:flex;align-items:center;gap:11px;padding:11px 12px;border-radius:11px;color:#d7e7f4;text-decoration:none;font-size:11px;transition:.18s}.side-link span{width:23px;height:23px;border-radius:8px;display:grid;place-items:center;color:#b7daf0;font-size:14px}.side-link b{font-weight:700}.side-link:hover{background:rgba(255,255,255,.07);color:white}.side-link.active{background:linear-gradient(90deg,#155b9b,#1f6db1);color:white;box-shadow:0 8px 20px rgba(0,0,0,.13)}.side-link.active span{background:rgba(255,255,255,.12);color:white}.side-foot{margin-top:auto;padding:12px 10px;color:#8fb6d2;font-size:9px;letter-spacing:.08em}
.topbar{position:sticky;top:0;background:rgba(255,255,255,.92);box-shadow:0 1px 0 rgba(206,224,235,.8)}.topbar-inner{max-width:none;height:68px;padding:0 30px}.topbar-context{display:flex;align-items:center;gap:20px}.breadcrumb{display:flex;align-items:center;gap:8px;color:#7890a3;font-size:11px}.breadcrumb i{font-style:normal;color:#9db0bf}.breadcrumb strong{color:var(--navy);font-size:12px}.topbar .brand{display:none}
.app-shell{max-width:1540px;padding:24px 30px 72px}
.hero-panel{border-radius:22px;padding:28px 30px;box-shadow:0 18px 45px rgba(8,38,77,.14);background:linear-gradient(135deg,#08264d 0%,#0b3d70 62%,#0b7aa9 100%)}
.search-box{border:1px solid rgba(255,255,255,.22);box-shadow:0 16px 36px rgba(0,0,0,.08)}
.report-cover{border-color:var(--premium-border);border-radius:20px;box-shadow:var(--premium-shadow);padding:24px 26px}
.section-nav{top:80px;border-color:var(--premium-border);box-shadow:0 8px 24px rgba(15,58,95,.05);padding:6px}
.section-nav a{font-size:11px;padding:8px 13px}.section-nav a:hover{background:#eaf4fa}
.report-section{padding-top:28px}.section-title-row{margin-bottom:14px}.section-title-row h3{font-size:27px;letter-spacing:-.02em}.section-subtitle{margin:5px 0 0;font-size:11px;color:#6f8799}.section-kicker{font-size:9px;letter-spacing:.14em}
.card{border-color:var(--premium-border);border-radius:20px;box-shadow:var(--premium-shadow);background:linear-gradient(180deg,#fff 0%,#fdfefe 100%)}
.section-card{padding:20px}.section-heading h4{font-size:16px;letter-spacing:-.01em}.section-heading p{font-size:10px;line-height:1.45}
.executive-grid{grid-template-columns:1.12fr .95fr .93fr;gap:16px}.score-card,.nse-card,.exposure-card{padding:22px;min-height:280px}.score-card{background:radial-gradient(circle at 50% 12%,#f0fbff 0%,#fff 44%)}.nse-card{background:linear-gradient(145deg,#ffffff 0%,#f4fbfe 100%)}.exposure-card{background:linear-gradient(145deg,#ffffff 0%,#f6fbff 100%)}
.card-title-row{font-size:12px}.soft-badge{background:#edf5fa;color:#345975;padding:6px 10px}
.nse-main{padding:31px 0 25px}.nse-main span{font-size:68px;letter-spacing:-.04em}.nse-single-note{background:#f5fafc;border-color:#e3eef4;padding:11px 13px}
.big-money{font-size:42px;margin:46px 0 26px}.metric-split div{background:#f5f9fc;border:1px solid #eaf1f5}
.summary-metrics{gap:12px;margin-top:14px}.metric-card{border-color:var(--premium-border);border-radius:16px;padding:15px 14px;box-shadow:0 8px 24px rgba(12,54,91,.035)}.metric-card strong{font-size:19px}.metric-icon{width:36px;height:36px;border-radius:12px}
.status-grid{gap:12px}.status-item{border-color:var(--premium-border);border-radius:16px;padding:13px 14px;box-shadow:0 7px 20px rgba(15,58,95,.03)}
.two-col,.three-col{gap:16px;margin-top:16px}.two-col.wide-left{grid-template-columns:1.7fr .8fr}
.chart-host{min-height:275px}.chart-host.tall{min-height:390px}.grid-line{stroke:#e7eef4}.axis-text{fill:#6f8799}.trend-line{stroke-width:3}
.financial-overview{gap:14px;margin-bottom:16px}.financial-main-kpi{border-color:var(--premium-border);border-radius:18px;padding:17px 16px;box-shadow:0 8px 24px rgba(15,58,95,.04);min-height:92px}.financial-main-kpi strong{font-size:18px}.visual-icon{width:40px;height:40px}
.entity-cards{gap:12px;margin-bottom:16px}.entity-kpi{border-radius:18px;padding:15px 15px 14px;border:1px solid var(--premium-border);border-top:4px solid var(--entity-color);box-shadow:0 8px 25px rgba(15,58,95,.04)}.entity-kpi-money{font-size:20px!important}.entity-title-line strong{font-size:10px}.mini-progress{height:7px;border-radius:999px;background:#edf3f7;overflow:hidden}
.bcra-reference-card{margin:16px 0;padding:20px;background:white}.bcra-situation-reference{gap:12px}.bcra-ref-item{min-height:110px;border-radius:17px;padding:15px 14px;align-items:center}.bcra-ref-item .bcra-ref-dot{width:38px;height:38px;box-shadow:0 8px 20px color-mix(in srgb,var(--sit-color) 26%,transparent)}.bcra-ref-item strong{font-size:10.5px}.bcra-ref-item small{font-size:8.5px}.bcra-ref-item.active{outline:2px solid color-mix(in srgb,var(--sit-color) 34%,white);box-shadow:0 14px 28px color-mix(in srgb,var(--sit-color) 15%,transparent)}
.entity-composition-card{padding:20px 20px 16px}.entity-color-legend{grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:8px 10px!important;margin-bottom:12px}.entity-color-legend span{background:#f8fbfd;border-color:#e4edf3;border-radius:12px;padding:8px 10px}.entity-color-legend i{width:12px!important;height:12px!important}.entity-color-legend b{font-size:9px!important}.entity-stacked-chart{min-width:1040px}.chart-scroll{border-radius:14px;background:linear-gradient(180deg,#fff,#fbfdfe);padding:6px 4px 0}
.heatmap-wrap{border-radius:14px;overflow:auto}.heatmap table{border-collapse:separate;border-spacing:3px}.heatmap th{font-size:8px}.heatmap td{border-radius:6px;font-weight:800}.heatmap .s1{background:#dff5eb;color:#087752}.heatmap .s2{background:#fff2c8;color:#906300}.heatmap .s3{background:#ffe0cd;color:#ad5524}.heatmap .s4{background:#ffd6de;color:#b73e52}.heatmap .s5{background:#f3c7ce;color:#991e2a}
.contributions-card{padding:20px;background:white;border-color:var(--premium-border)}.contributions-heading{margin-bottom:16px}.aportes-visual-layout{grid-template-columns:minmax(0,1fr) 250px;gap:22px}.aportes-matrix-wrap{border-color:#e3edf3;box-shadow:none;border-radius:16px}.aportes-matrix.visual th{background:#f2f7fb;padding:13px 10px;color:#173c64}.aportes-matrix.visual td:first-child{background:#f8fbfd;font-size:10px}.aporte-cell.ok{background:#eaf9f3}.aporte-status{font-size:9px;padding:13px 7px}.aporte-status.ok:before{width:22px;height:22px;background:#0fb47a}.aportes-compliance{padding-left:22px}.compliance-ring.large{width:170px;height:170px;background:conic-gradient(#0fb47a calc(var(--pct)*1%),#e8eef2 0);box-shadow:none}.compliance-ring.large:after{inset:19px}.compliance-ring.large strong{font-size:34px}.aportes-note{background:#eef7fd;border-color:#dbeaf4;border-radius:14px;padding:12px 13px}
.method-note{border-radius:14px;background:#fff9e8;border-color:#f1e5bf}.availability-chart{background:#fbfdfe;border:1px solid #edf3f7;border-radius:14px;padding:10px 12px}
.relation-graph-card{overflow:hidden}.relations-graph{background:radial-gradient(circle at center,#f8fcfe 0%,#f3f8fb 65%,#eef5f8 100%);border-radius:16px;border:1px solid #e5eef4;padding:10px}
.report-footer{padding:18px 4px;color:#7890a3}
@media(max-width:1180px){.app-frame{grid-template-columns:150px minmax(0,1fr)}.side-link{padding:10px 9px}.side-brand img{width:118px}.app-shell{padding-left:22px;padding-right:22px}.executive-grid{grid-template-columns:1fr 1fr}.exposure-card{grid-column:1/-1}.bcra-situation-reference{grid-template-columns:repeat(3,1fr)}}
@media(max-width:900px){.app-frame{display:block}.side-rail{display:none!important}.topbar .brand{display:flex}.breadcrumb{display:none}.app-shell{padding-left:16px;padding-right:16px}.executive-grid{grid-template-columns:1fr}.exposure-card{grid-column:auto}.bcra-situation-reference{grid-template-columns:1fr 1fr}.aportes-visual-layout{grid-template-columns:1fr}.aportes-compliance{border-left:0;border-top:1px dashed #d9e5ed;padding-left:0;padding-top:16px}.financial-overview{grid-template-columns:1fr 1fr}.entity-color-legend{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.topbar-inner{height:72px;padding-left:14px;padding-right:14px}.app-shell{padding-top:16px}.hero-panel{padding:22px 18px}.report-cover{padding:18px}.report-section{padding-top:22px}.section-title-row h3{font-size:23px}.summary-metrics,.status-grid,.financial-overview,.entity-cards,.bcra-situation-reference,.entity-color-legend{grid-template-columns:1fr}.section-card{padding:16px}.score-card,.nse-card,.exposure-card{padding:18px;min-height:auto}.nse-main span{font-size:56px}.big-money{font-size:34px;margin:30px 0 20px}.aportes-matrix.visual{min-width:690px}.compliance-ring.large{width:150px;height:150px}}
@media print{.side-rail{display:none!important}.app-frame{display:block}.app-main{display:block}.topbar{display:none!important}.app-shell{max-width:none;padding:0}.card{box-shadow:none!important}.report-section{background:white}.entity-stacked-chart{min-width:0}.aportes-visual-layout{grid-template-columns:1fr 45mm}}


/* ===== V5.9 - Print/PDF hardened layout ===== */
@page{size:A4 portrait;margin:8mm 8mm 10mm 8mm}
@media print{
  *{box-sizing:border-box!important}
  html,body{width:auto!important;min-width:0!important;height:auto!important;margin:0!important;padding:0!important;background:#fff!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important;color-adjust:exact!important}
  body.app-body{font-size:8.5pt!important;overflow:visible!important}
  .app-frame,.app-main{display:block!important;min-height:0!important;width:auto!important}
  .side-rail,.topbar,.hero-panel,.section-nav,.report-actions,.empty-state,.loader-overlay,.no-print{display:none!important}
  .app-shell{display:block!important;width:auto!important;max-width:none!important;margin:0!important;padding:0!important}
  .report{display:block!important;width:auto!important;max-width:none!important;margin:0!important;padding:0!important}

  /* Compact report identity on first page */
  .report-cover{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:6mm!important;width:100%!important;margin:0 0 5mm 0!important;padding:4.5mm 5.5mm!important;border:0.35mm solid #dce8ef!important;border-radius:3.5mm!important;background:linear-gradient(135deg,#f8fcfe 0%,#fff 72%)!important;box-shadow:none!important;break-inside:avoid!important;page-break-inside:avoid!important}
  .report-cover h2{margin:1mm 0 1mm!important;font-size:17pt!important;line-height:1.08!important;color:#08264d!important;letter-spacing:-.02em!important}
  .report-cover .eyebrow{font-size:6.5pt!important;letter-spacing:.12em!important;margin:0!important}
  .report-meta{font-size:7.5pt!important;line-height:1.35!important;margin:0!important}
  .report-tags{margin-top:2mm!important;gap:1.5mm!important}
  .report-tags span{font-size:6.5pt!important;padding:1mm 2mm!important}

  /* Major report sections */
  .report-section{display:block!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:#fff!important;box-shadow:none!important;overflow:visible!important;break-inside:auto!important;page-break-inside:auto!important}
  .report-section + .report-section{break-before:page!important;page-break-before:always!important}
  .report-section:after{display:none!important}
  .section-title-row{display:flex!important;flex-direction:row!important;align-items:flex-start!important;justify-content:space-between!important;gap:5mm!important;margin:0 0 4mm!important;padding:0 0 2.5mm!important;border-bottom:0.35mm solid #dce8ef!important}
  .section-title-row h3{font-size:17pt!important;line-height:1.06!important;margin:.5mm 0 0!important;color:#08264d!important}
  .section-kicker{font-size:6pt!important;letter-spacing:.12em!important;margin:0!important}
  .section-subtitle{font-size:7.4pt!important;line-height:1.35!important;margin:1.2mm 0 0!important;color:#617b90!important}
  .section-date,.section-pill{font-size:7pt!important;white-space:nowrap!important;padding:1.5mm 2.2mm!important}

  /* Shared card system */
  .card{background:#fff!important;border:0.3mm solid #dfe9ef!important;border-radius:3.2mm!important;box-shadow:none!important}
  .section-card{padding:3.5mm!important;margin:0!important}
  .section-heading{margin-bottom:2.5mm!important;gap:3mm!important}
  .section-heading h4{font-size:10.5pt!important;line-height:1.15!important;margin:0!important}
  .section-heading p{font-size:6.8pt!important;line-height:1.3!important;margin:.8mm 0 0!important}
  .mini-title{font-size:7pt!important;margin-bottom:1.8mm!important}
  .soft-badge{font-size:6.5pt!important;padding:1mm 1.8mm!important}

  /* Stable print grids */
  .executive-grid{display:grid!important;grid-template-columns:1.08fr .9fr .9fr!important;gap:3mm!important;margin:0 0 3mm!important}
  .summary-metrics{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:2.5mm!important;margin:0 0 3mm!important}
  .status-grid{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:2.5mm!important;margin:0 0 3mm!important}
  .two-col{display:grid!important;grid-template-columns:1fr 1fr!important;gap:3mm!important;margin-top:3mm!important}
  .two-col.wide-left{grid-template-columns:1.55fr .85fr!important}
  .three-col{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:3mm!important;margin-top:3mm!important}
  .financial-overview{display:grid!important;grid-template-columns:repeat(2,1fr)!important;gap:2.5mm!important;margin:0 0 3mm!important}
  .entity-cards{display:grid!important;grid-template-columns:repeat(2,1fr)!important;gap:2.5mm!important;margin:0 0 3mm!important}
  .financial-bottom,.risk-alerts,.relations-detail,.consultation-visuals{grid-template-columns:1fr 1fr!important}
  .tax-cards{grid-template-columns:repeat(5,1fr)!important;gap:2mm!important}
  .asset-cards{grid-template-columns:repeat(2,1fr)!important;gap:2mm!important}
  .compliance-grid{grid-template-columns:repeat(4,1fr)!important;gap:2.5mm!important}
  .edicts-list{grid-template-columns:repeat(2,1fr)!important;gap:2.5mm!important}

  /* Small components should never split */
  .score-card,.nse-card,.exposure-card,.metric-card,.status-item,.financial-main-kpi,.entity-kpi,.bcra-ref-item,.risk-alert-item,.compliance-item,.asset-card,.obra-social-card,.query-item,.report-cover{break-inside:avoid!important;page-break-inside:avoid!important}
  .score-card,.nse-card,.exposure-card{min-height:0!important;padding:3.5mm!important}
  .card-title-row{font-size:7.5pt!important}
  .nse-main{padding:5mm 0 4mm!important}
  .nse-main span{font-size:34pt!important}
  .nse-main small{font-size:7pt!important}
  .nse-single-note{padding:2.2mm 2.5mm!important;border-radius:2.5mm!important}
  .nse-single-note span{font-size:6.4pt!important}.nse-single-note strong{font-size:7.2pt!important}
  .big-money{font-size:23pt!important;margin:7mm 0 5mm!important}
  .metric-split{gap:2mm!important}.metric-split div{padding:2mm!important}
  .metric-split small{font-size:6pt!important}.metric-split strong{font-size:10pt!important}
  .metric-card{padding:2.5mm!important;gap:2mm!important;border-radius:2.5mm!important}
  .metric-card small{font-size:6pt!important}.metric-card strong{font-size:11pt!important}.metric-card span{font-size:6pt!important}
  .metric-icon{width:8mm!important;height:8mm!important;font-size:9pt!important;border-radius:2.4mm!important}
  .status-item{padding:2.4mm!important;border-radius:2.5mm!important}.status-item small{font-size:6pt!important}.status-item strong{font-size:8pt!important}

  /* Score: use vector gauge, compact but readable */
  .score-gauge{height:36mm!important;min-height:0!important;margin:0!important;overflow:visible!important}
  .score-svg{width:100%!important;height:36mm!important;max-width:58mm!important;margin:0 auto!important;display:block!important}
  .score-caption{margin-top:1mm!important;gap:2mm!important}.score-caption strong{font-size:7.5pt!important}.score-caption span{font-size:6.5pt!important}
  .risk-scale{margin-top:2mm!important}.risk-scale-labels{font-size:5.5pt!important}.risk-scale-bar i{height:2mm!important}

  /* Charts: always fit printable width; never preserve desktop min-widths */
  .chart-host,.chart-scroll,.heatmap-wrap,.aportes-matrix-wrap,.data-table-wrap{width:100%!important;max-width:100%!important;min-width:0!important;overflow:visible!important}
  .chart-host{min-height:0!important;height:auto!important}
  .chart-host.tall{min-height:0!important;height:auto!important}
  .line-chart,.entity-stacked-chart,.chart-host svg,.relations-graph svg{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;height:auto!important}
  .entity-stacked-chart{max-height:82mm!important}
  .chart-scroll{padding:1mm 0 0!important;background:#fff!important}
  .entity-color-legend{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:1.4mm 2mm!important;margin-bottom:2mm!important}
  .entity-color-legend span{padding:1.4mm 1.8mm!important;border-radius:2mm!important;min-width:0!important}
  .entity-color-legend i{width:2.5mm!important;height:2.5mm!important}.entity-color-legend b{font-size:5.8pt!important}.entity-color-legend small{font-size:5.2pt!important}
  .trend-chart .axis-text,.entity-stacked-chart .axis-text{font-size:7px!important}

  /* BCRA visual blocks */
  .bcra-reference-card,.entity-composition-card,.contributions-card,.relation-graph-card{break-inside:avoid!important;page-break-inside:avoid!important}
  .bcra-reference-card,.entity-composition-card{padding:3.5mm!important;margin:3mm 0 0!important}
  .bcra-situation-reference{display:grid!important;grid-template-columns:repeat(5,1fr)!important;gap:1.6mm!important}
  .bcra-ref-item{min-height:23mm!important;padding:2.4mm!important;border-radius:2.5mm!important;gap:1.5mm!important}
  .bcra-ref-item .bcra-ref-dot{width:7mm!important;height:7mm!important}.bcra-ref-item strong{font-size:6.5pt!important}.bcra-ref-item small{font-size:5.5pt!important;line-height:1.25!important}
  .financial-main-kpi{padding:2.8mm!important;min-height:19mm!important;gap:2mm!important;border-radius:2.7mm!important}
  .financial-main-kpi small{font-size:5.8pt!important}.financial-main-kpi strong{font-size:10pt!important}.financial-main-kpi em{font-size:5.5pt!important}
  .visual-icon{width:8mm!important;height:8mm!important;font-size:9pt!important;border-radius:2.5mm!important}
  .entity-kpi{padding:2.6mm!important;border-radius:2.8mm!important;border-top-width:1mm!important}.entity-kpi-money{font-size:11pt!important}.entity-title-line strong{font-size:6.2pt!important}.entity-kpi small{font-size:5.5pt!important}

  /* 24-month BCRA matrix scales to A4 instead of overflowing */
  .heatmap table{width:100%!important;min-width:0!important;table-layout:fixed!important;border-spacing:.7mm!important}
  .heatmap th,.heatmap td{padding:.8mm .3mm!important;font-size:5.3pt!important;line-height:1.05!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;text-align:center!important}
  .heatmap th:first-child,.heatmap td:first-child{width:29mm!important;text-align:left!important;white-space:normal!important;font-size:5.5pt!important}
  .heatmap-legend{font-size:5.5pt!important;gap:1.5mm!important;margin-top:1.5mm!important;flex-wrap:wrap!important}

  /* Profile / fiscal / AFIP */
  .timeline{gap:1.5mm!important}.timeline-item{padding:2mm 0 2mm 4mm!important}.timeline-item strong{font-size:7pt!important}.timeline-item span,.timeline-item small{font-size:5.8pt!important}
  .detail-list{gap:0!important}.detail-row{padding:1.4mm 0!important}.detail-row dt,.detail-row dd{font-size:6.5pt!important;line-height:1.25!important}
  .tax-card{padding:2.2mm!important;border-radius:2.5mm!important}.tax-card small{font-size:5.3pt!important}.tax-card strong{font-size:6.4pt!important}
  .simple-list>div,.history-row{padding:1.8mm 0!important}.simple-list strong,.history-row strong{font-size:6.4pt!important}.simple-list span,.simple-list small,.history-row small,.history-row time{font-size:5.7pt!important;line-height:1.3!important}
  .territorial-grid{grid-template-columns:repeat(4,1fr)!important;gap:1.5mm!important}.territorial-card{padding:2.2mm!important}.territorial-card strong{font-size:13pt!important}.territorial-card small,.territorial-card span{font-size:5.5pt!important}.territorial-meta{font-size:5.7pt!important;margin-top:2mm!important}

  /* Contributions: preserve visual table + compliance ring in one printable block */
  .contributions-card{padding:3.5mm!important;margin-top:3mm!important}
  .aportes-summary{display:none!important}
  .aportes-visual-layout{display:grid!important;grid-template-columns:minmax(0,1fr) 37mm!important;gap:4mm!important;align-items:stretch!important}
  .aportes-history,.aportes-compliance{min-width:0!important}
  .aportes-matrix-wrap{border-radius:2.5mm!important}
  .aportes-matrix,.aportes-matrix.visual{width:100%!important;min-width:0!important;table-layout:fixed!important;font-size:6.2pt!important}
  .aportes-matrix th,.aportes-matrix td{padding:2mm 1mm!important;line-height:1.15!important;text-align:center!important}
  .aportes-matrix th:first-child,.aportes-matrix td:first-child{width:34mm!important;text-align:left!important}
  .aporte-status{font-size:5.8pt!important;padding:1.2mm .8mm!important;white-space:nowrap!important}
  .aporte-status.ok:before,.aporte-status.bad:before{width:4mm!important;height:4mm!important;margin-right:.7mm!important}
  .aportes-compliance{padding:3mm 0 0 3mm!important;border-left:.3mm dashed #d7e4ec!important;border-top:0!important}
  .compliance-ring.large{width:31mm!important;height:31mm!important;margin:0 auto 3mm!important}
  .compliance-ring.large:after{inset:4.5mm!important}.compliance-ring.large strong{font-size:17pt!important}.compliance-ring.large small{font-size:6pt!important}
  .aportes-note{font-size:5.8pt!important;line-height:1.35!important;padding:2.5mm!important;border-radius:2.3mm!important}

  /* Compliance and relationships */
  .compliance-item{padding:3mm!important;min-height:24mm!important}.compliance-item small{font-size:5.8pt!important}.compliance-item strong{font-size:8pt!important}.compliance-item span{font-size:5.5pt!important}
  .method-note{padding:2.5mm!important;font-size:6pt!important;line-height:1.35!important}
  .query-list{grid-template-columns:repeat(2,1fr)!important;gap:1.6mm!important}.query-item{padding:2mm!important}.query-item strong{font-size:6.2pt!important}.query-item span{font-size:5.5pt!important}
  .relations-graph{min-height:0!important;height:80mm!important;padding:2mm!important;overflow:hidden!important}
  .relations-graph svg{max-height:76mm!important;object-fit:contain!important}
  .relation-company-table,.data-table{width:100%!important;table-layout:fixed!important;font-size:6pt!important}
  .relation-company-table th,.relation-company-table td,.data-table th,.data-table td{padding:1.5mm!important;line-height:1.2!important;white-space:normal!important;overflow-wrap:anywhere!important}
  .edicts-list{gap:2mm!important}.edict-card{padding:2.5mm!important}.edict-card strong{font-size:6.3pt!important}.edict-card p,.edict-card small{font-size:5.5pt!important;line-height:1.3!important}

  /* Avoid large blank gaps at page bottoms */
  .report-section>.two-col,.report-section>.three-col,.report-section>.financial-overview,.report-section>.entity-cards,.report-section>.summary-metrics,.report-section>.status-grid{break-inside:auto!important;page-break-inside:auto!important}
  .report-footer{margin-top:4mm!important;padding-top:2.5mm!important;border-top:.3mm solid #dce8ef!important;font-size:6pt!important;break-inside:avoid!important;page-break-inside:avoid!important}
}

/* V5.9 - deterministic BCRA continuation page */
@media print{
  .financial-bottom{break-before:page!important;page-break-before:always!important;margin-top:0!important;padding-top:0!important}
  .financial-bottom:before{content:"Sistema Financiero / BCRA - continuación";grid-column:1/-1;display:block;font-size:14pt;font-weight:900;line-height:1.1;color:#08264d;padding:0 0 2.5mm;margin:0 0 1mm;border-bottom:.35mm solid #dce8ef}
}


/* ===== V5.10 - Search reset + compact BCRA + entity legend fix ===== */
/* Entity colors: the marker must be a real sized flex item, not an inline <i>. */
.entity-color-legend span{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:9px!important;text-align:left!important}
.entity-color-legend i{display:inline-block!important;flex:0 0 12px!important;width:12px!important;height:12px!important;min-width:12px!important;min-height:12px!important;border-radius:50%!important;border:2px solid rgba(255,255,255,.96)!important;outline:1px solid color-mix(in srgb,var(--entity-color) 45%,#cbd9e3)!important;box-shadow:0 3px 10px color-mix(in srgb,var(--entity-color) 32%,transparent)!important}
.entity-color-legend b{min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}

/* BCRA situation is a reference legend, so it should not dominate the report. */
.bcra-reference-card{padding:14px 16px!important;margin:12px 0!important}
.bcra-reference-heading{margin-bottom:9px!important}
.bcra-reference-heading .section-visual-icon{width:38px!important;height:38px!important;border-radius:12px!important;font-size:17px!important}
.bcra-reference-heading h4{font-size:14px!important;margin:0 0 2px!important}
.bcra-reference-heading p{font-size:9px!important;line-height:1.35!important}
.bcra-situation-reference{gap:8px!important}
.bcra-ref-item{min-height:66px!important;padding:9px 10px!important;border-radius:13px!important;gap:8px!important;align-items:center!important}
.bcra-ref-item .bcra-ref-dot{width:20px!important;height:20px!important;flex:0 0 20px!important;box-shadow:0 4px 12px color-mix(in srgb,var(--sit-color) 22%,transparent)!important}
.bcra-ref-item strong{font-size:9px!important;line-height:1.2!important}
.bcra-ref-item small{margin-top:3px!important;font-size:7.5px!important;line-height:1.3!important}
.bcra-ref-item.active{transform:none!important;outline:2px solid color-mix(in srgb,var(--sit-color) 34%,white)!important;box-shadow:0 7px 18px color-mix(in srgb,var(--sit-color) 12%,transparent)!important}

/* More compact entity legend, while preserving strong color identification. */
.entity-composition-card{padding-top:17px!important}
.entity-color-legend{grid-template-columns:repeat(auto-fit,minmax(185px,1fr))!important;gap:7px 9px!important;margin-bottom:10px!important}
.entity-color-legend span{padding:7px 9px!important;border-radius:11px!important;background:linear-gradient(180deg,#fbfdfe,#f5f9fc)!important;border-left:4px solid var(--entity-color)!important}
.entity-color-legend b{font-size:8.5px!important;color:#23435f!important}

@media(max-width:900px){
  .bcra-ref-item{min-height:60px!important}
  .entity-color-legend{grid-template-columns:1fr 1fr!important}
}
@media(max-width:560px){
  .bcra-reference-card{padding:13px!important}
  .bcra-situation-reference{grid-template-columns:1fr 1fr!important}
  .bcra-ref-item{min-height:58px!important}
  .bcra-ref-item:last-child{grid-column:1/-1!important}
  .entity-color-legend{grid-template-columns:1fr!important}
}
@media print{
  .bcra-reference-card{padding:3mm!important;margin:2.5mm 0!important}
  .bcra-reference-heading{margin-bottom:2mm!important}
  .bcra-situation-reference{grid-template-columns:repeat(5,1fr)!important;gap:1.2mm!important}
  .bcra-ref-item{min-height:17mm!important;padding:1.8mm!important;border-radius:2.2mm!important;gap:1.2mm!important}
  .bcra-ref-item .bcra-ref-dot{width:4.2mm!important;height:4.2mm!important;flex-basis:4.2mm!important}
  .bcra-ref-item strong{font-size:5.9pt!important}.bcra-ref-item small{font-size:4.9pt!important;line-height:1.2!important}
  .entity-color-legend{grid-template-columns:repeat(3,1fr)!important;gap:1.2mm 1.6mm!important;margin-bottom:1.5mm!important}
  .entity-color-legend span{padding:1.2mm 1.5mm!important;gap:1.4mm!important}
  .entity-color-legend i{width:2.5mm!important;height:2.5mm!important;min-width:2.5mm!important;min-height:2.5mm!important;flex-basis:2.5mm!important;border-width:.35mm!important}
  .entity-color-legend b{font-size:5.6pt!important}
}


/* ===== V5.11 - clean search state + compact BCRA reference + unmistakable entity colors ===== */

/* Compact BCRA reference: a legend, not a primary content block. */
.bcra-reference-card{padding:12px 14px!important;margin:10px 0 12px!important}
.bcra-reference-heading{margin-bottom:7px!important}
.bcra-reference-heading .section-visual-icon{width:34px!important;height:34px!important;border-radius:11px!important;font-size:15px!important}
.bcra-reference-heading h4{font-size:13px!important;margin:0 0 1px!important}
.bcra-reference-heading p{font-size:8.5px!important;line-height:1.3!important}
.bcra-situation-reference{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:7px!important}
.bcra-ref-item{min-height:42px!important;padding:7px 9px!important;border-radius:12px!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:7px!important;position:relative!important;overflow:hidden!important}
.bcra-ref-item .bcra-ref-dot{display:inline-block!important;width:14px!important;height:14px!important;min-width:14px!important;min-height:14px!important;flex:0 0 14px!important;border-radius:50%!important;box-shadow:0 0 0 3px rgba(255,255,255,.7)!important}
.bcra-ref-item strong{font-size:8.5px!important;line-height:1.15!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.bcra-ref-item em{margin-left:auto!important;font-size:6.5px!important;line-height:1!important;font-style:normal!important;font-weight:900!important;text-transform:uppercase!important;letter-spacing:.05em!important;padding:4px 5px!important;border-radius:999px!important;background:var(--sit-color)!important;color:white!important;flex:0 0 auto!important}
.bcra-ref-item.active{outline:2px solid var(--sit-color)!important;outline-offset:-1px!important;box-shadow:0 5px 14px rgba(8,38,77,.08)!important}

/* Entity legend: explicit color swatch + explicit colored border. */
.entity-color-legend{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(190px,1fr))!important;gap:7px 9px!important;margin:0 0 10px!important;padding:0!important}
.entity-color-legend .entity-legend-item{display:flex!important;align-items:center!important;gap:8px!important;min-width:0!important;padding:7px 10px!important;border:1px solid #dfeaf1!important;border-left:5px solid var(--entity-color)!important;border-radius:11px!important;background:linear-gradient(180deg,#ffffff,#f7fafc)!important;box-shadow:0 3px 10px rgba(8,38,77,.035)!important}
.entity-color-legend .entity-swatch{display:inline-block!important;width:13px!important;height:13px!important;min-width:13px!important;min-height:13px!important;flex:0 0 13px!important;border-radius:50%!important;border:2px solid #fff!important;box-shadow:0 0 0 1px rgba(8,38,77,.12),0 2px 6px rgba(8,38,77,.12)!important}
.entity-color-legend .entity-legend-item b{font-size:8.5px!important;line-height:1.2!important;color:#173f61!important;min-width:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}

/* Reinforce the same entity color in current BCRA cards and rows. */
.entity-kpi{border-top:4px solid var(--entity-color)!important}
.entity-row{border-left:3px solid var(--entity-color)!important;padding-left:8px!important}
.entity-color-dot,.entity-inline-dot{display:inline-block!important;border:2px solid #fff!important;box-shadow:0 0 0 1px rgba(8,38,77,.12)!important}

@media(max-width:980px){
  .bcra-situation-reference{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .entity-color-legend{grid-template-columns:1fr 1fr!important}
}
@media(max-width:620px){
  .bcra-situation-reference{grid-template-columns:1fr 1fr!important}
  .bcra-ref-item{min-height:40px!important}
  .bcra-ref-item:last-child{grid-column:1/-1!important}
  .entity-color-legend{grid-template-columns:1fr!important}
}

@media print{
  .bcra-reference-card{padding:2.5mm!important;margin:2mm 0 2.5mm!important}
  .bcra-reference-heading{margin-bottom:1.5mm!important}
  .bcra-reference-heading .section-visual-icon{width:8mm!important;height:8mm!important}
  .bcra-situation-reference{grid-template-columns:repeat(5,1fr)!important;gap:1mm!important}
  .bcra-ref-item{min-height:10mm!important;padding:1.2mm 1.5mm!important;border-radius:2mm!important;gap:1.1mm!important;break-inside:avoid!important;page-break-inside:avoid!important}
  .bcra-ref-item .bcra-ref-dot{width:3mm!important;height:3mm!important;min-width:3mm!important;min-height:3mm!important;flex-basis:3mm!important;border-width:.35mm!important}
  .bcra-ref-item strong{font-size:5.4pt!important}.bcra-ref-item em{font-size:4.3pt!important;padding:.7mm 1mm!important}
  .entity-color-legend{grid-template-columns:repeat(3,1fr)!important;gap:1.1mm 1.4mm!important;margin-bottom:1.4mm!important}
  .entity-color-legend .entity-legend-item{padding:1.1mm 1.3mm!important;gap:1.2mm!important;border-left-width:1.2mm!important;border-radius:1.8mm!important;break-inside:avoid!important;page-break-inside:avoid!important}
  .entity-color-legend .entity-swatch{width:2.6mm!important;height:2.6mm!important;min-width:2.6mm!important;min-height:2.6mm!important;flex-basis:2.6mm!important;border-width:.3mm!important}
  .entity-color-legend .entity-legend-item b{font-size:5.5pt!important}
  .entity-kpi{border-top-width:.8mm!important}
  .entity-row{border-left-width:.7mm!important;padding-left:1.5mm!important}
}

/* === V5.11.1 FIX: entity legend swatches === */
.entity-color-legend > .entity-legend-item{
  display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:9px!important;
  min-width:0!important;padding:7px 10px!important;border:1px solid #dfeaf1!important;
  border-left:5px solid var(--entity-color)!important;border-radius:11px!important;
  background:linear-gradient(180deg,#ffffff,#f7fafc)!important;
}
.entity-color-legend > .entity-legend-item > .entity-swatch{
  display:inline-block!important;flex:0 0 14px!important;width:14px!important;height:14px!important;
  min-width:14px!important;min-height:14px!important;border-radius:50%!important;
  background:var(--entity-color)!important;background-color:var(--entity-color)!important;
  border:2px solid #fff!important;outline:2px solid color-mix(in srgb,var(--entity-color) 55%,#c6d6e2)!important;
  box-shadow:0 2px 8px color-mix(in srgb,var(--entity-color) 34%,transparent)!important;
}
.entity-color-legend > .entity-legend-item > b{
  min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
}
@media print{
  .entity-color-legend > .entity-legend-item{padding:1.1mm 1.3mm!important;gap:1.2mm!important;border-left-width:1.2mm!important}
  .entity-color-legend > .entity-legend-item > .entity-swatch{width:2.8mm!important;height:2.8mm!important;min-width:2.8mm!important;min-height:2.8mm!important;flex-basis:2.8mm!important;outline-width:.35mm!important}
}


/* ===== V5.11.2 - entity legend hard color rendering ===== */
.entity-color-legend .entity-legend-item{
  position:relative!important;
  overflow:hidden!important;
}
.entity-color-legend .entity-swatch-svg{
  display:block!important;
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  flex:0 0 18px!important;
}
.entity-color-legend .entity-swatch-svg circle{vector-effect:non-scaling-stroke}
@media print{
  .entity-color-legend .entity-swatch-svg{width:3.1mm!important;height:3.1mm!important;min-width:3.1mm!important;flex-basis:3.1mm!important}
}


/* ===== V5.11.3 - CSP-safe entity colors (no inline styles) ===== */
.entity-c0{--entity-color:#2a9fe8;--entity-tint:#e9f6fe}
.entity-c1{--entity-color:#ff7f50;--entity-tint:#fff0ea}
.entity-c2{--entity-color:#f6c44c;--entity-tint:#fff8df}
.entity-c3{--entity-color:#9b67e8;--entity-tint:#f3ecff}
.entity-c4{--entity-color:#a9bfd7;--entity-tint:#f0f5fa}
.entity-c5{--entity-color:#24b89a;--entity-tint:#eaf9f5}
.entity-c6{--entity-color:#e76d8a;--entity-tint:#fff0f4}
.entity-c7{--entity-color:#3f7bd9;--entity-tint:#edf3fe}
.entity-c8{--entity-color:#8a5bd3;--entity-tint:#f2ecfb}
.entity-c9{--entity-color:#607d8b;--entity-tint:#eef3f5}
.entity-c10{--entity-color:#34b7c9;--entity-tint:#eaf9fb}
.entity-c11{--entity-color:#4f7fc7;--entity-tint:#edf3fb}
.entity-c12{--entity-color:#8a9bad;--entity-tint:#f1f4f7}

.entity-color-legend .entity-legend-item{
  border-left-color:var(--entity-color)!important;
  background:linear-gradient(90deg,var(--entity-tint) 0%,#fff 54%)!important;
}
.entity-color-legend .entity-swatch{
  display:inline-block!important;width:15px!important;height:15px!important;min-width:15px!important;min-height:15px!important;flex:0 0 15px!important;
  border-radius:50%!important;background:var(--entity-color)!important;border:2px solid #fff!important;
  box-shadow:0 0 0 2px var(--entity-color),0 2px 7px rgba(8,38,77,.12)!important;
}
.entity-kpi[class*="entity-c"]{border-top-color:var(--entity-color)!important;background:linear-gradient(180deg,var(--entity-tint),#fff 44%)!important}
.entity-kpi[class*="entity-c"] .entity-color-dot,.entity-row[class*="entity-c"] .entity-inline-dot{background:var(--entity-color)!important}
.entity-kpi[class*="entity-c"] .entity-rank,.entity-row[class*="entity-c"] .rank{background:var(--entity-color)!important;color:#fff!important}
.entity-row[class*="entity-c"]{border-left-color:var(--entity-color)!important;background:linear-gradient(90deg,var(--entity-tint),transparent 28%)!important}
.entity-progress,.entity-row-progress{width:100%;height:8px;border:0;border-radius:999px;overflow:hidden;background:#edf3f7;appearance:none;-webkit-appearance:none}
.entity-progress::-webkit-progress-bar,.entity-row-progress::-webkit-progress-bar{background:#edf3f7;border-radius:999px}
.entity-progress::-webkit-progress-value,.entity-row-progress::-webkit-progress-value{background:var(--entity-color);border-radius:999px}
.entity-progress::-moz-progress-bar,.entity-row-progress::-moz-progress-bar{background:var(--entity-color);border-radius:999px}
.entity-row-progress{height:7px;align-self:center}

@media print{
  .entity-color-legend .entity-swatch{width:3mm!important;height:3mm!important;min-width:3mm!important;min-height:3mm!important;flex-basis:3mm!important;box-shadow:0 0 0 .35mm var(--entity-color)!important}
  .entity-progress,.entity-row-progress{height:1.5mm!important}
}


/* ===== V5.12 · Relaciones compactas e interactivas ===== */
.relation-graph-card{padding-bottom:14px}
.relations-graph{max-height:500px;overflow:auto;padding:8px;background:radial-gradient(circle at center,#fbfdff 0%,#f5f9fc 58%,#eef5f8 100%)}
.relations-graph svg{width:100%;max-height:470px;min-width:760px;height:auto}
.relation-clickable{cursor:pointer;outline:none}
.relation-clickable .relation-node-bg,.relation-clickable circle{transition:stroke .18s ease,fill .18s ease,filter .18s ease,opacity .18s ease}
.relation-clickable:hover .relation-node-bg,.relation-clickable:focus-visible .relation-node-bg{stroke:#159bd3;stroke-width:2.4;filter:drop-shadow(0 4px 7px rgba(9,78,119,.14))}
.relation-clickable:hover circle,.relation-clickable:focus-visible circle{stroke:#159bd3;stroke-width:2.2;filter:drop-shadow(0 3px 6px rgba(9,78,119,.13))}
.relation-clickable:focus-visible{outline:none}
.node-person .person-pill{fill:#f4f9fd;stroke:#b8d9ef;stroke-width:1.2}
.node-person .relation-pill-label{fill:#315a76;font-size:8.5px;font-weight:800}
.relation-overflow{fill:#8094a4;font-size:8px;font-weight:700}
.relation-query-btn{appearance:none;border:1px solid #bcdbea;background:#eef8fc;color:#0879ad;border-radius:9px;padding:6px 9px;font:inherit;font-size:8px;font-weight:900;cursor:pointer;white-space:nowrap}
.relation-query-btn:hover,.relation-query-btn:focus-visible{background:#0e93c9;color:#fff;border-color:#0e93c9;outline:none}
.relation-action{cursor:pointer;border-radius:10px;padding-left:5px;padding-right:5px;transition:background .16s ease,transform .16s ease}
.relation-action:hover,.relation-action:focus-visible{background:#f2f8fb;outline:2px solid #c7e5f2;outline-offset:1px}
.graph-note{font-size:8.5px;line-height:1.45;color:#627e93}
.form-message.info{color:#0879ad;background:#edf8fc;border:1px solid #c9e7f2;border-radius:10px;padding:7px 10px}
@media(max-width:760px){.relations-graph{max-height:430px}.relations-graph svg{min-width:760px;max-height:410px}.relation-query-btn{width:100%;padding:8px}}
@media print{.relations-graph{height:70mm!important;max-height:70mm!important;padding:1.5mm!important}.relations-graph svg{max-height:67mm!important;min-width:0!important}.relation-query-btn{display:none!important}.relation-clickable{cursor:default!important}.graph-note{font-size:6pt!important}}

/* V5.12.1 - estados de mora externa */
.risk-alert-card.has-resolved-only{border-color:#cfeadd;background:linear-gradient(180deg,#f7fcfa,#fff)}
.risk-alert-card.has-resolved-only:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--green)}
.risk-alert-item.resolved{background:#f1fbf6;border-color:#cfeadd}
.risk-alert-item.resolved .risk-alert-icon{background:#d9f2e7;color:#087752}
.risk-alert-item.warning{background:#fff9ec;border-color:#f0dfaf}
.risk-alert-item.warning .risk-alert-icon{background:#fff0c8;color:#9a6b00}
.risk-state-label{display:inline-flex;align-items:center;margin-top:5px;padding:3px 8px;border-radius:999px;font-size:8px;font-weight:900;letter-spacing:.02em}
.risk-state-label.danger{background:#ffe3e7;color:#b73e52}
.risk-state-label.resolved{background:#dff5e9;color:#087752}
.risk-state-label.warning{background:#fff0c8;color:#8a6200}


/* V5.12.2 - historia laboral navegable */
.labor-timeline-action{cursor:pointer;display:grid;grid-template-columns:1fr auto;align-items:center;column-gap:12px;padding:9px 10px 12px 14px!important;margin-left:-8px;border-radius:12px;transition:background .16s ease,box-shadow .16s ease,transform .16s ease}
.labor-timeline-action:hover,.labor-timeline-action:focus-visible{background:#f2f9fc;box-shadow:inset 0 0 0 1px #cce7f2;outline:none;transform:translateX(2px)}
.labor-timeline-action>span:first-child{left:-11px!important;top:13px!important}
.labor-query-hint{display:inline-flex!important;align-items:center;gap:5px!important;color:#0879ad!important;background:#eaf7fc!important;border:1px solid #c7e6f2!important;border-radius:999px!important;padding:5px 9px!important;font-size:8px!important;font-weight:900!important;white-space:nowrap!important;margin:0!important}
.labor-query-hint b{font-size:11px;line-height:1}
@media(max-width:760px){.labor-timeline-action{grid-template-columns:1fr;padding-right:8px!important}.labor-query-hint{justify-self:start;margin-top:7px!important}}
@media print{.labor-timeline-action{display:block!important;padding:2mm 0 2mm 4mm!important;margin-left:0!important;transform:none!important;box-shadow:none!important;background:transparent!important}.labor-query-hint{display:none!important}}


/* ===== V5.13 - Historia laboral pulida + grafo arrastrable ===== */
.labor-query-hint{
  position:static!important;left:auto!important;top:auto!important;width:auto!important;height:auto!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;
  color:#0879ad!important;background:#eef8fc!important;border:1px solid #c7e6f2!important;border-radius:999px!important;
  padding:6px 10px!important;font-size:8px!important;font-weight:900!important;white-space:nowrap!important;margin:0!important;
  box-shadow:0 3px 10px rgba(8,121,173,.06)!important
}
.labor-query-hint svg{display:block;flex:0 0 16px;stroke:currentColor}
.labor-query-hint span{position:static!important;width:auto!important;height:auto!important;background:none!important;border:0!important;box-shadow:none!important}
.labor-timeline-action:hover .labor-query-hint,.labor-timeline-action:focus-visible .labor-query-hint{background:#0e93c9!important;color:#fff!important;border-color:#0e93c9!important}

.graph-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0 10px;padding:8px 10px;border:1px solid #dceaf2;border-radius:12px;background:#f8fbfd}
.graph-drag-hint{display:inline-flex;align-items:center;gap:7px;color:#52718a;font-size:8.5px;font-weight:800}
.graph-drag-hint svg{color:#168dc5;flex:0 0 auto}
.graph-reset-btn{appearance:none;border:1px solid #c6deea;background:#fff;color:#0b6f9d;border-radius:10px;padding:7px 10px;display:inline-flex;align-items:center;gap:6px;font-size:8px;font-weight:900;cursor:pointer;box-shadow:0 3px 9px rgba(15,73,104,.04)}
.graph-reset-btn:hover,.graph-reset-btn:focus-visible{background:#eaf7fc;border-color:#99cde2;outline:none}
.graph-reset-btn svg{display:block}
.relation-network-svg{touch-action:none;user-select:none;-webkit-user-select:none}
.relation-draggable{cursor:grab}
.relation-draggable.dragging{cursor:grabbing}
.relation-draggable.dragging .relation-node-bg,.relation-draggable.dragging circle{filter:drop-shadow(0 8px 12px rgba(8,38,77,.18));stroke-width:2.3}
.relation-network-svg.is-dragging .relation-draggable:not(.dragging){opacity:.82}
.edge-company,.edge-secondary,.edge-family{pointer-events:none;transition:x1 .08s linear,y1 .08s linear,x2 .08s linear,y2 .08s linear}
@media(max-width:760px){.graph-toolbar{align-items:flex-start;flex-direction:column}.graph-reset-btn{align-self:flex-start}.graph-drag-hint{font-size:9px}.relation-draggable{cursor:grab}}
@media print{.graph-toolbar{display:none!important}.relation-draggable{cursor:default!important}.relation-network-svg{touch-action:auto!important}}

/* ===== V6.0 - Portal de consultas ===== */
.portal-module.hidden{display:none!important}
.side-menu-divider{height:1px;background:rgba(255,255,255,.13);margin:8px 10px 6px}
.side-sub-link{min-height:34px;padding:7px 10px!important;opacity:.72}
.side-sub-link span{font-size:9px!important;letter-spacing:.05em}
.side-sub-link b{font-size:10px!important}
.side-sub-link:hover{opacity:1}
.mobile-module-nav{display:none;gap:8px;overflow-x:auto;margin:0 0 16px;padding:4px 0 8px;scrollbar-width:none}
.mobile-module-nav::-webkit-scrollbar{display:none}
.mobile-module-btn{border:1px solid #d8e6ef;background:#fff;color:#48667d;border-radius:999px;padding:9px 14px;font:800 11px/1 inherit;white-space:nowrap;box-shadow:0 4px 14px rgba(8,38,77,.035)}
.mobile-module-btn.active{background:#0b477d;color:#fff;border-color:#0b477d;box-shadow:0 8px 18px rgba(11,71,125,.18)}
.module-page{padding-bottom:42px}
.module-header{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:18px;margin-bottom:18px;padding:24px 26px;border:1px solid #dce9f1;border-radius:24px;background:linear-gradient(135deg,#fff 0%,#f7fbfd 100%);box-shadow:0 16px 42px rgba(8,38,77,.07);overflow:hidden}
.module-header:after{content:"";position:absolute;width:230px;height:230px;border-radius:50%;right:-95px;top:-115px;background:radial-gradient(circle,rgba(31,174,225,.11),rgba(31,174,225,0) 70%);pointer-events:none}
.module-header>*,.module-search-card>*{position:relative;z-index:1}
.module-icon{width:58px;height:58px;border-radius:18px;display:grid;place-items:center;font-size:20px;font-weight:1000;color:white;box-shadow:0 10px 24px rgba(8,38,77,.12)}
.module-icon-car{background:linear-gradient(145deg,#0f80b9,#0bb6d9)}
.module-icon-contact{background:linear-gradient(145deg,#6257c8,#8e78df)}
.module-icon-control{background:linear-gradient(145deg,#058c69,#16b98d)}
.module-eyebrow{margin:0 0 5px;color:#0996cf;font-size:9px;font-weight:1000;letter-spacing:.18em}
.module-header h1{margin:0;color:#08264d;font-size:28px;letter-spacing:-.02em}
.module-header p:not(.module-eyebrow){margin:6px 0 0;color:#617e94;font-size:12px;max-width:720px}
.module-refresh-btn{align-self:center;white-space:nowrap}
.module-search-card{padding:20px 22px;margin-bottom:18px;border:1px solid #dce9f1;background:#fff;box-shadow:0 12px 34px rgba(8,38,77,.055)}
.module-form{display:grid;grid-template-columns:minmax(240px,.85fr) minmax(360px,1.15fr);gap:18px;align-items:center}
.module-form-copy h2,.module-list-head h2{margin:0;color:#08264d;font-size:17px}
.module-form-copy p,.module-list-head p{margin:5px 0 0;color:#71899d;font-size:10px;line-height:1.45}
.module-search-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}
.module-search-row input,.module-form.stacked input{width:100%;border:1px solid #cadde9;border-radius:13px;padding:13px 14px;background:#fbfdfe;color:#08264d;outline:none;font-size:13px;box-sizing:border-box}
.module-search-row input:focus,.module-form.stacked input:focus{border-color:#13a1d7;box-shadow:0 0 0 4px rgba(19,161,215,.10);background:#fff}
.module-form>.form-message{grid-column:2}
.module-results{display:grid;gap:16px}
.module-results-head{display:flex;align-items:center;justify-content:space-between;padding:4px 2px}
.module-results-head>div{display:flex;align-items:center;gap:10px}
.module-results-head strong{display:block;color:#08264d;font-size:13px}
.module-results-head small{display:block;color:#71899d;font-size:9px;margin-top:2px}
.module-count{min-width:36px;height:36px;padding:0 8px;border-radius:12px;background:#e9f6fb;color:#087eaf;display:grid;place-items:center;font-size:15px;font-weight:1000}
.module-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:180px;border:1px dashed #cbdde8;border-radius:20px;background:#f9fcfd;padding:24px;text-align:center}
.module-empty.small{min-height:100px}
.module-empty.error{border-color:#f0cbd2;background:#fff8f9}
.module-empty strong{color:#08264d;font-size:15px}
.module-empty span{margin-top:5px;color:#71899d;font-size:11px}
.vehicle-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.vehicle-card,.contact-card{position:relative;border:1px solid #d9e7ef;border-radius:20px;background:#fff;padding:20px;box-shadow:0 12px 34px rgba(8,38,77,.055);overflow:hidden}
.vehicle-card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:linear-gradient(#0798d2,#20b9da)}
.vehicle-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.vehicle-plate{display:inline-flex;padding:8px 14px;border:2px solid #08264d;border-radius:8px;background:#f7fbfd;color:#08264d;font:1000 18px/1.1 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.08em}
.vehicle-record-badge{background:#eef7fb;color:#5d778d;border-radius:999px;padding:6px 9px;font-size:8px;font-weight:900}
.vehicle-model{margin:16px 0 14px}
.vehicle-model small{display:block;color:#0c99cf;font-size:9px;font-weight:900;letter-spacing:.08em}
.vehicle-model strong{display:block;margin-top:3px;color:#08264d;font-size:17px;line-height:1.2}
.vehicle-details{display:grid;grid-template-columns:1fr 1fr;gap:9px 16px;padding:13px 0;border-top:1px solid #eef3f6;border-bottom:1px solid #eef3f6}
.vehicle-details span,.contact-meta span{display:block;color:#7790a3;font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.07em}
.vehicle-details strong,.contact-meta strong{display:block;color:#183b5c;font-size:11px;margin-top:3px}
.vehicle-location{display:flex;flex-direction:column;gap:2px;padding:12px 0;color:#47667e;font-size:10px}
.vehicle-location small{color:#8399aa;font-size:9px}
.module-link-btn{border:0;border-radius:10px;background:#e9f6fb;color:#087ead;padding:9px 12px;font:900 10px/1 inherit;cursor:pointer;transition:.18s ease}
.module-link-btn:hover{background:#0b93c9;color:#fff;transform:translateY(-1px)}
.module-link-btn.compact{padding:7px 10px;font-size:9px}
.contact-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.contact-card:before{content:"";position:absolute;left:0;right:0;top:0;height:4px;background:linear-gradient(90deg,#7366d6,#23abd7)}
.contact-phone{padding-bottom:12px;border-bottom:1px solid #edf3f6}
.contact-phone span{display:block;color:#7766cb;font-size:8px;font-weight:1000;letter-spacing:.14em}
.contact-phone strong{display:block;margin-top:3px;color:#08264d;font-size:23px;letter-spacing:-.02em}
.contact-person{padding:13px 0}
.contact-person strong{display:block;color:#08264d;font-size:12px}
.contact-person span{display:block;color:#648096;font-size:9px;margin-top:4px;line-height:1.5}
.contact-meta{padding:10px 12px;margin-bottom:12px;border-radius:11px;background:#f7fafc}
.control-layout{display:grid;grid-template-columns:minmax(290px,.72fr) minmax(0,1.28fr);gap:18px;align-items:start}
.control-add-card{margin:0}
.module-form.stacked{display:grid;grid-template-columns:1fr;gap:9px;align-items:stretch}
.module-form.stacked .module-form-copy{margin-bottom:6px}
.module-form.stacked label{font-size:9px;font-weight:900;color:#49677e;margin-top:3px}
.module-form.stacked>.form-message{grid-column:auto}
.control-list-card{padding:20px 22px;border:1px solid #dce9f1;box-shadow:0 12px 34px rgba(8,38,77,.055)}
.module-list-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:12px}
.control-list{display:grid;gap:8px}
.control-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:11px 12px;border:1px solid #e0eaf0;border-radius:14px;background:#fbfdfe;transition:.16s ease}
.control-row:hover{border-color:#bdd9e7;background:#fff;box-shadow:0 7px 18px rgba(8,38,77,.045)}
.control-avatar{width:36px;height:36px;border-radius:12px;display:grid;place-items:center;background:#e6f8f2;color:#07805f;font-size:13px;font-weight:1000}
.control-main strong{display:block;color:#08264d;font-size:11px}
.control-main span{display:block;color:#58758b;font-size:9px;margin-top:3px}
.control-main small{display:block;color:#8b9eac;font-size:8px;margin-top:2px}
.control-actions{display:flex;gap:7px;align-items:center}
.danger-link-btn{border:0;background:#fff0f2;color:#bc4056;border-radius:9px;padding:7px 9px;font:900 9px/1 inherit;cursor:pointer}
.danger-link-btn:hover{background:#cb435b;color:#fff}
.form-message.success{color:#067b5b;font-weight:800}

@media(max-width:1180px){
  .contact-grid{grid-template-columns:1fr 1fr}
  .control-layout{grid-template-columns:1fr}
}
@media(max-width:900px){
  .mobile-module-nav{display:flex}
  .module-header{grid-template-columns:auto minmax(0,1fr);padding:20px}
  .module-refresh-btn{grid-column:1/-1;justify-self:start}
  .module-form{grid-template-columns:1fr}
  .module-form>.form-message{grid-column:auto}
  .vehicle-grid,.contact-grid{grid-template-columns:1fr}
}
@media(max-width:560px){
  .module-header{grid-template-columns:1fr;gap:12px;padding:18px;border-radius:19px}
  .module-icon{width:48px;height:48px;border-radius:15px}
  .module-header h1{font-size:24px}
  .module-search-card,.control-list-card{padding:16px;border-radius:17px}
  .module-search-row{grid-template-columns:1fr}
  .vehicle-card,.contact-card{padding:16px;border-radius:17px}
  .vehicle-details{grid-template-columns:1fr}
  .contact-phone strong{font-size:20px}
  .control-row{grid-template-columns:auto minmax(0,1fr)}
  .control-actions{grid-column:1/-1;justify-content:flex-end}
}
@media print{
  .mobile-module-nav,.module-page{display:none!important}
  #reportModuleView{display:block!important}
}


/* ===== V6.1 Gestión de usuarios + Auditoría ===== */
.module-header-users:after{background:radial-gradient(circle,rgba(109,92,230,.13),rgba(109,92,230,0) 70%)}
.module-header-audit:after{background:radial-gradient(circle,rgba(15,157,105,.13),rgba(15,157,105,0) 70%)}
.module-icon-users{background:linear-gradient(145deg,#7366d6,#5144bd)}
.module-icon-audit{background:linear-gradient(145deg,#19a775,#0b7c59)}
.module-role-badge{justify-self:end;padding:8px 12px;border-radius:999px;background:#f3f7fa;border:1px solid #dbe7ee;color:#48677d;font-size:9px;font-weight:900;white-space:nowrap}
.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:18px}.admin-grid.lower{align-items:start}
.admin-search-card{margin:0}.admin-results-card,.admin-editor-card,.admin-security-card{padding:20px 22px;border:1px solid #dce9f1;box-shadow:0 12px 34px rgba(8,38,77,.055);margin-bottom:18px}
.admin-table-wrap{overflow:auto;border:1px solid #e2ebf0;border-radius:14px;background:#fff}.admin-table{width:100%;border-collapse:collapse;min-width:680px}.admin-table th{position:sticky;top:0;background:#f3f8fb;color:#557187;font-size:8px;text-transform:uppercase;letter-spacing:.07em;text-align:left;padding:10px 11px;border-bottom:1px solid #dce8ef}.admin-table td{padding:10px 11px;border-bottom:1px solid #edf3f6;color:#244860;font-size:9px;vertical-align:middle}.admin-table tbody tr:hover{background:#f9fcfd}.admin-table code{font-size:8px;color:#5f7586}.admin-empty{color:#9aabb7}.admin-bool{display:inline-flex;padding:4px 7px;border-radius:999px;font-size:8px;font-weight:900}.admin-bool.yes{background:#e8f8f1;color:#087852}.admin-bool.no{background:#eef3f6;color:#657d8d}
.table-actions{display:flex;gap:6px;flex-wrap:wrap}.mini-action-btn{border:1px solid #bcd7e6;background:#edf8fd;color:#087cae;border-radius:9px;padding:6px 8px;font:800 8px/1 inherit;cursor:pointer}.mini-action-btn.secondary{background:#f4f1ff;border-color:#d9d1f7;color:#6555bd}
.json-editor{width:100%;min-height:270px;resize:vertical;border:1px solid #cbdde8;border-radius:14px;padding:14px;background:#0d2035;color:#dcecff;font:12px/1.55 ui-monospace,SFMono-Regular,Consolas,monospace;box-sizing:border-box;outline:none}.json-editor:focus{border-color:#27a8da;box-shadow:0 0 0 4px rgba(39,168,218,.10)}
.admin-action-row,.security-actions,.password-action{display:flex;gap:8px;align-items:center;margin-top:12px;flex-wrap:wrap}.text-btn{border:0;background:transparent;color:#6c8190;font-weight:800;cursor:pointer;padding:9px}.security-btn{border:1px solid transparent;border-radius:10px;padding:9px 11px;font:900 9px/1 inherit;cursor:pointer}.security-btn.warning{background:#fff7e6;border-color:#f1d79f;color:#956600}.security-btn.danger{background:#fff0f2;border-color:#efc7cf;color:#b43d51}.security-btn.success{background:#eaf9f3;border-color:#c9e9dc;color:#087752}.password-action input{flex:1;min-width:180px;border:1px solid #cadde9;border-radius:12px;padding:11px 12px;background:#fbfdfe}
.audit-filter-card{padding:18px 20px}.audit-form{display:grid;grid-template-columns:1fr 1fr 1fr auto auto;gap:10px;align-items:end}.audit-form label{display:block;color:#617e94;font-size:9px;font-weight:900;margin-bottom:5px}.audit-form label span{font-weight:600;color:#97a7b3}.audit-form input{width:100%;border:1px solid #cadde9;border-radius:12px;padding:11px 12px;background:#fbfdfe;box-sizing:border-box}.audit-form button:disabled{opacity:.45;cursor:not-allowed}
.audit-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 18px}.audit-kpi{padding:16px 18px;border:1px solid #dce9f1;border-radius:18px;background:linear-gradient(145deg,#fff,#f7fbfd);box-shadow:0 10px 28px rgba(8,38,77,.045)}.audit-kpi small{display:block;color:#70899c;font-size:8px;text-transform:uppercase;font-weight:900;letter-spacing:.06em}.audit-kpi strong{display:block;color:#08264d;font-size:26px;margin-top:5px}.audit-kpi span{display:block;color:#8194a3;font-size:8px;margin-top:2px}
@media(max-width:1000px){.admin-grid{grid-template-columns:1fr}.audit-form{grid-template-columns:1fr 1fr}.audit-form button{width:100%}.audit-kpis{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.module-role-badge{justify-self:start}.audit-form{grid-template-columns:1fr}.audit-kpis{grid-template-columns:1fr}.admin-results-card,.admin-editor-card,.admin-security-card{padding:16px}.json-editor{min-height:220px}.password-action{align-items:stretch}.password-action input,.password-action button{width:100%}}
@media print{#usersModuleView,#auditModuleView{display:none!important}}

/* === V6.2 · NSE multi-modelo y permisos dinámicos === */
.nse-additional-models{display:grid;gap:8px;margin-top:10px}
.nse-additional-models:empty{display:none}
.nse-model-chip{display:grid;grid-template-columns:auto auto;align-items:center;gap:3px 10px;padding:9px 11px;border:1px solid var(--line2);border-radius:12px;background:#fff}
.nse-model-chip span{font-size:10px;font-weight:800;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.nse-model-chip strong{justify-self:end;color:var(--navy);font-size:13px}
.nse-model-chip small{grid-column:1/-1;color:#607d91;font-size:10px;line-height:1.35}
@media print{.nse-additional-models{gap:1.4mm;margin-top:1.6mm}.nse-model-chip{padding:1.4mm 1.8mm;border-radius:2mm}.nse-model-chip span,.nse-model-chip small{font-size:5.8pt}.nse-model-chip strong{font-size:6.8pt}}


/* V6.3 · Superadministración de permisos */
.module-header-portal-admin:after{background:radial-gradient(circle,rgba(47,109,217,.14),rgba(47,109,217,0) 70%)}
.module-icon-portal-admin{background:linear-gradient(145deg,#0b3569,#1d6eb5);color:#fff;font-size:20px}
.module-role-badge.superadmin{background:#eaf2ff;color:#174f9f;border-color:#cddffc}
.portal-admin-rule-card{padding:22px}.permission-rule-flow{display:grid;grid-template-columns:1fr auto 1fr auto 1fr;gap:12px;align-items:center;margin-top:18px}.permission-rule-flow>div{padding:14px;border:1px solid #e1ebf1;border-radius:15px;background:#f9fcfe}.permission-rule-flow>div strong{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:#e9f2f8;color:#0b4d79;font-size:11px;margin-bottom:9px}.permission-rule-flow>div span{display:block;color:#123d5c;font-weight:900;font-size:10px}.permission-rule-flow>div small{display:block;color:#70899a;font-size:9px;line-height:1.5;margin-top:4px}.permission-rule-flow>i{color:#9cb0be;font-style:normal;font-weight:900}
.permission-user-list{display:grid;gap:8px}.permission-user-row{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:20px;align-items:center;text-align:left;border:1px solid #e2ebf0;background:#fff;border-radius:13px;padding:13px 15px;cursor:pointer;transition:.18s ease}.permission-user-row:hover:not(:disabled){border-color:#b9d8ea;box-shadow:0 7px 20px rgba(8,38,77,.06);transform:translateY(-1px)}.permission-user-row:disabled{opacity:.55;cursor:not-allowed}.permission-user-main strong{display:block;color:#113e5d;font-size:11px}.permission-user-main small,.permission-user-meta small{display:block;color:#778f9f;font-size:9px;margin-top:3px}.permission-user-meta{text-align:right}.permission-user-meta b{display:block;color:#335c75;font-size:9px}.permission-user-action{font-size:9px;font-weight:900;color:#1877aa;white-space:nowrap}
.permission-editor{display:grid;gap:18px;margin-top:18px}.permission-editor-card{padding:24px}.permission-editor-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;border-bottom:1px solid #e8eff3;padding-bottom:17px}.permission-editor-head h2{margin:2px 0 0;color:#0a3559;font-size:22px}.permission-editor-head p:not(.module-eyebrow){margin:5px 0 0;color:#698396;font-size:10px}.permission-editor-badges{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.soft-badge.preview{background:#fff4df;color:#956000;border-color:#f0d39d}.permission-preview-note{margin:16px 0;padding:12px 14px;border-radius:12px;background:#fff8e9;border:1px solid #f1d9a7;color:#7d5a17;font-size:9px;line-height:1.6}.permission-legend{display:flex;gap:18px;flex-wrap:wrap;margin:16px 0;color:#617b8d;font-size:9px;font-weight:700}.permission-legend span{display:flex;align-items:center;gap:6px}.permission-legend .dot{width:9px;height:9px;border-radius:50%}.permission-legend .dot.plan{background:#27a576}.permission-legend .dot.available-off{background:#6f9fb9}.permission-legend .dot.user-on{background:#168c64}.permission-legend .dot.user-off{background:#e0a02c}.permission-legend .dot.locked{background:#9baab5}
.permission-components{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.permission-component{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;border:1px solid #e2ebf0;border-radius:14px;padding:13px 14px;background:#fff;cursor:pointer}.permission-component.locked{background:#f6f8f9;cursor:not-allowed;opacity:.76}.permission-component.available-off{background:#f5fafc;border-color:#cfe0e8}.permission-component.user-on{background:#effaf6;border-color:#bfe5d7}.permission-component.user-off{background:#fffaf1;border-color:#edd9b1}.permission-check{position:relative;width:34px;height:20px;display:block}.permission-check input{position:absolute;opacity:0;pointer-events:none}.permission-check i{position:absolute;inset:0;border-radius:999px;background:#cdd9e0;transition:.18s}.permission-check i:after{content:"";position:absolute;width:14px;height:14px;border-radius:50%;background:#fff;left:3px;top:3px;box-shadow:0 1px 4px rgba(0,0,0,.2);transition:.18s}.permission-check input:checked+i{background:#1d9d70}.permission-check input:checked+i:after{transform:translateX(14px)}.permission-check input:disabled+i{background:#bdc8cf}.permission-component-copy strong{display:block;color:#173f5b;font-size:10px}.permission-component-copy small{display:block;color:#7a91a0;font-size:8px;line-height:1.45;margin-top:3px}.permission-status{display:inline-flex;padding:5px 8px;border-radius:999px;font-size:7px;font-weight:900;white-space:nowrap}.permission-status.plan-on{background:#e9f8f1;color:#087653}.permission-status.available-off{background:#eaf4f8;color:#49798f}.permission-status.user-on{background:#ddf6ec;color:#087653}.permission-status.user-off{background:#fff0ce;color:#8a5c00}.permission-status.locked{background:#e9eef1;color:#657984}.permission-actions{margin-top:18px}.permission-audit-card{margin-bottom:20px}.permission-audit-table{min-width:650px}
@media(max-width:900px){.permission-rule-flow{grid-template-columns:1fr}.permission-rule-flow>i{display:none}.permission-components{grid-template-columns:1fr}.permission-user-row{grid-template-columns:1fr auto}.permission-user-action{grid-column:1/-1}.permission-editor-head{flex-direction:column}.permission-editor-badges{justify-content:flex-start}}

/* V6.4 - Informacion Aduanera */
.module-header-aduana:after{background:radial-gradient(circle,rgba(20,146,129,.14),rgba(20,146,129,0) 70%)}
.module-icon-aduana{background:linear-gradient(145deg,#087e78,#19a99a);color:#fff;font-size:22px}
.aduana-connection{display:flex;align-items:center;gap:8px;padding:9px 12px;border:1px solid #dbe8ee;border-radius:999px;background:#fff;color:#6f8798;font-size:9px;font-weight:900;white-space:nowrap}
.aduana-connection>span{width:9px;height:9px;border-radius:50%;background:#aab7c0;box-shadow:0 0 0 4px rgba(170,183,192,.12)}
.aduana-connection.online{color:#087752;border-color:#cbe8dc;background:#f6fcfa}.aduana-connection.online>span{background:#1f9d68;box-shadow:0 0 0 4px rgba(31,157,104,.12)}
.aduana-search-card{padding:22px 24px}.aduana-search-head{margin-bottom:4px}
.aduana-levels{display:flex;gap:10px;flex-wrap:wrap;margin:17px 0}.aduana-level{min-width:180px;padding:12px 14px;border:1px solid #dce8ef;border-radius:13px;background:#fff}.aduana-level strong,.aduana-level span{display:block}.aduana-level strong{font-size:9px;color:#204d67;letter-spacing:.04em}.aduana-level span{margin-top:3px;color:#7b909f;font-size:8px}.aduana-level.active{border:2px solid #e9b532;box-shadow:0 0 0 3px rgba(233,181,50,.08)}.aduana-level.disabled{opacity:.48;background:#f7f9fa}
.aduana-notice{margin:0 0 14px;padding:11px 13px;border-radius:11px;background:#edf8fb;border:1px solid #d1eaf2;color:#2d6a7f;font-size:9px;font-weight:800}
.aduana-grid,.aduana-advanced-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.aduana-field{display:block;min-width:0}.aduana-field>span{display:block;margin-bottom:6px;color:#4e6c80;font-size:9px;font-weight:900}.aduana-field input,.aduana-field select,.aduana-ranking-field select{width:100%;height:42px;border:1px solid #cadde9;border-radius:11px;padding:0 11px;background:#fbfdfe;color:#123b58;outline:none;font-size:10px}.aduana-field input:focus,.aduana-field select:focus,.aduana-ranking-field select:focus{border-color:#13a1d7;box-shadow:0 0 0 4px rgba(19,161,215,.10);background:#fff}.aduana-field.span2{grid-column:span 2}.aduana-field.span4{grid-column:span 4}.aduana-autocomplete{position:relative}.aduana-suggestions{position:absolute;z-index:40;top:65px;left:0;right:0;max-height:270px;overflow:auto;border:1px solid #dce8ef;border-radius:12px;background:#fff;box-shadow:0 16px 35px rgba(7,45,78,.15)}.aduana-suggestions button{display:block;width:100%;padding:10px 12px;border:0;border-bottom:1px solid #eef3f6;background:#fff;text-align:left;cursor:pointer}.aduana-suggestions button:hover{background:#eef8fb}.aduana-suggestions strong{display:block;color:#173f5b;font-size:9px}.aduana-suggestions small{display:block;margin-top:3px;color:#79909f;font-size:8px}
.aduana-advanced-toggle{margin:12px 0 0;padding-left:0;color:#14769b}.aduana-advanced-grid{margin-top:13px;padding-top:15px;border-top:1px dashed #dce8ef}
.aduana-actions{display:flex;gap:9px;align-items:flex-end;margin-top:18px;padding-top:16px;border-top:1px solid #edf3f6}.aduana-actions-spacer{flex:1}.aduana-ranking-field{min-width:220px}.aduana-ranking-field>span{display:block;margin:0 0 5px;color:#6b8292;font-size:8px;font-weight:900}.aduana-actions button:disabled,.aduana-pagination button:disabled,.aduana-export-btn:disabled{opacity:.45;cursor:not-allowed;transform:none}
.aduana-results-card{margin-bottom:18px;overflow:hidden}.aduana-results-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:19px 21px;border-bottom:1px solid #e4edf2}.aduana-results-head h2{margin:2px 0 0;color:#0b3558;font-size:18px}.aduana-results-head p:not(.module-eyebrow){margin:4px 0 0;color:#748c9c;font-size:9px}.aduana-export-btn{border:0;border-radius:11px;padding:10px 14px;background:#107c41;color:#fff;font-size:9px;font-weight:900;cursor:pointer;box-shadow:0 7px 18px rgba(16,124,65,.18)}.aduana-export-btn:hover:not(:disabled){background:#0b6735;transform:translateY(-1px)}
.aduana-export-progress{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 20px;background:#f5faf7;border-bottom:1px solid #e1eee7}.aduana-export-progress>div{height:8px;border-radius:999px;background:#dfeae4;overflow:hidden}.aduana-export-progress>div>span{display:block;width:0;height:100%;background:#1c9a60;border-radius:999px;transition:.18s}.aduana-export-progress strong{color:#15784d;font-size:9px}
.aduana-table-wrap{width:100%;overflow:auto;max-height:560px}.aduana-table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:9px}.aduana-table th{position:sticky;top:0;z-index:2;background:#f3f8fb;color:#557187;font-size:8px;text-transform:uppercase;letter-spacing:.04em;text-align:left;padding:10px 11px;border-bottom:1px solid #dce8ef}.aduana-table td{max-width:330px;overflow:hidden;text-overflow:ellipsis;padding:10px 11px;border-bottom:1px solid #edf3f6;color:#244860}.aduana-table tbody tr:hover td{background:#f9fcfd}
.aduana-pagination{display:flex;justify-content:flex-end;align-items:center;gap:12px;padding:14px 18px;border-top:1px solid #edf3f6}.aduana-pagination span{color:#657f91;font-size:9px;font-weight:800}
@media(max-width:1050px){.aduana-grid,.aduana-advanced-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.aduana-field.span4{grid-column:span 2}.aduana-actions{flex-wrap:wrap}.aduana-actions-spacer{display:none}.aduana-ranking-field{flex:1;min-width:180px}}
@media(max-width:650px){.aduana-grid,.aduana-advanced-grid{grid-template-columns:1fr}.aduana-field.span2,.aduana-field.span4{grid-column:span 1}.aduana-actions{align-items:stretch}.aduana-actions>*{width:100%}.aduana-ranking-field{min-width:0}.aduana-results-head{align-items:flex-start;flex-direction:column}.aduana-export-btn{width:100%}.aduana-pagination{justify-content:space-between}.aduana-connection{justify-self:start}}
@media print{#aduanaModuleView{display:none!important}}

/* V6.5 · búsqueda segura de usuarios */
.module-form.stacked select{width:100%;border:1px solid #cadde9;border-radius:13px;padding:13px 14px;background:#fbfdfe;color:#08264d;outline:none;font-size:13px;box-sizing:border-box}
.module-form.stacked select:focus{border-color:#13a1d7;box-shadow:0 0 0 4px rgba(19,161,215,.10);background:#fff}
.module-form.stacked input:disabled{background:#eef3f6;color:#8aa0af;cursor:not-allowed}
.permission-users-table td,.permission-users-table th{vertical-align:middle}
.permission-users-table td:last-child,.permission-users-table th:last-child{text-align:right}
.permission-users-pager{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:14px 0 2px}
.permission-users-pager span{font-size:11px;color:#667f91;font-weight:700}
.permission-users-pager button:disabled,.mini-action-btn:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:760px){.permission-users-pager{justify-content:space-between}.permission-users-table{min-width:760px}}


/* ===== V6.6.5 · territorial, productos financieros y detalle BCRA ===== */
.territorial-card.interpreted{display:flex;flex-direction:column;gap:6px;min-height:145px;background:linear-gradient(180deg,#f8fbfd,#f2f8fb)}
.territorial-card-head{display:flex;align-items:flex-end;justify-content:space-between;gap:8px}
.territorial-card.interpreted .territorial-card-head strong{font-size:18px;margin:0;white-space:nowrap}
.territorial-card.interpreted>b{font-size:11px;color:#173b5e}
.territorial-card.interpreted>span{font-size:9px;line-height:1.45;color:#607d92}
.financial-product-card{border-color:#dbe8f0;background:linear-gradient(180deg,#fff,#fbfdfe)}
.financial-product-insight{display:block}.financial-product-state{display:flex;flex-direction:column;gap:5px;padding:14px 15px;border:1px solid #e2edf3;border-radius:14px;background:#f7fafc}
.financial-product-state.ok{background:#effaf5;border-color:#ccebdd}.financial-product-state strong{font-size:13px;color:#10395e}.financial-product-state span{font-size:10px;color:#5d788e;line-height:1.45}.financial-product-state small{font-size:8px;color:#8195a6}
.financial-product-entities{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}.financial-product-entities span{padding:5px 8px;border-radius:999px;background:white;border:1px solid #d6e6ef;color:#315d7d;font-size:8px;font-weight:800}
.bcra-history-detail{padding:0;overflow:hidden}.bcra-history-detail>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 18px;cursor:pointer;list-style:none}.bcra-history-detail>summary::-webkit-details-marker{display:none}.bcra-history-detail>summary span{display:flex;flex-direction:column;gap:2px}.bcra-history-detail>summary strong{font-size:11px;color:#173b5e}.bcra-history-detail>summary small{font-size:8px;color:#7890a3}.bcra-history-detail>summary b{font-size:8px;color:#50718a;background:#eef5f9;padding:6px 9px;border-radius:999px}.bcra-history-detail[open]>summary{border-bottom:1px solid #e6eef3}.bcra-history-detail-body{padding:14px 18px}.bcra-history-table-wrap{max-height:520px;overflow:auto}.bcra-history-table{min-width:680px}.cheque-detail{display:flex!important;flex-wrap:wrap;gap:4px 10px;margin-top:4px}.cheque-detail span{font-size:8px;color:#6a8397}.cheque-detail b{color:#405f77}
.print-only-legal{display:none}.report-legal-notice{font-size:7px;line-height:1.4;color:#61798d;border-top:1px solid #dbe6ed;border-bottom:1px solid #dbe6ed;padding:7px 0;margin:6px 0 12px;text-transform:uppercase}.report-legal-notice.legal-footer{margin-top:18px}
@media(max-width:760px){.territorial-card.interpreted{min-height:0}.bcra-history-detail-body{padding:10px}.financial-product-state{padding:12px}}
@media print{.print-only-legal{display:block!important}.report-legal-notice{font-size:5.2pt!important;line-height:1.3!important;padding:1.8mm 0!important;margin:2mm 0 3mm!important}.bcra-history-detail{display:none!important}.financial-product-card{break-inside:avoid!important}.territorial-card.interpreted{min-height:0!important}.territorial-card.interpreted>span{font-size:5.3pt!important;line-height:1.25!important}}

/* ===== Login PeyPe Analytics - V6.6 visual refresh ===== */

.login-brand.login-brand-minimal{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:clamp(42px,6vw,92px);
  overflow:hidden;
  background:
    radial-gradient(circle at 18% 18%,rgba(36,205,235,.20),transparent 30%),
    radial-gradient(circle at 82% 78%,rgba(10,177,222,.18),transparent 33%),
    linear-gradient(145deg,#061f41 0%,#0a3565 55%,#0b79a9 100%);
}

.login-brand.login-brand-minimal:before{
  content:"";
  position:absolute;
  width:520px;
  height:520px;
  right:-170px;
  top:-190px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.10);
  box-shadow:
    0 0 0 75px rgba(255,255,255,.025),
    0 0 0 150px rgba(255,255,255,.016);
  pointer-events:none;
}

.login-brand.login-brand-minimal:after{
  content:"";
  position:absolute;
  width:310px;
  height:310px;
  left:-145px;
  bottom:-145px;
  border-radius:50%;
  border:1px solid rgba(83,218,250,.14);
  pointer-events:none;
}

.login-brand-center{
  position:relative;
  z-index:2;
  width:min(600px,82%);
  padding:clamp(22px,3vw,36px);
  border:1px solid rgba(255,255,255,.11);
  border-radius:30px;
  background:rgba(3,25,56,.30);
  box-shadow:
    0 30px 80px rgba(2,20,45,.22),
    inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}

.login-brand-center .brand-logo{
  display:block;
  width:100%;
  max-width:520px;
  height:auto;
  margin:0 auto;
  object-fit:contain;
  filter:none;
}

@media(max-width:980px){
  .login-brand.login-brand-minimal{
    display:none;
  }
}


/* ===== LOGO SOBRE LOGIN V2 ===== */

.login-card-wrap{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:22px;
}

.login-main-logo-link{
  display:block;
  width:min(350px,72%);
  text-decoration:none;
  border-radius:18px;
  transition:transform .18s ease,filter .18s ease;
}

.login-main-logo-link:hover{
  transform:translateY(-2px);
  filter:brightness(1.07);
}

.login-main-logo{
  display:block;
  width:100%;
  height:auto;
  border-radius:16px;
  box-shadow:0 14px 36px rgba(8,38,77,.14);
}

.login-card{
  width:min(100%,520px);
}

@media(max-width:980px){
  .login-main-logo-link{
    width:min(300px,78%);
  }

  .login-card-wrap{
    gap:18px;
  }
}


/* ===== LOGO EMBEBIDO LOGIN V3 ===== */

.login-card-wrap{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}

.login-card{
  width:min(100%, 520px);
}

.login-card-logo-link{
  display:flex;
  justify-content:center;
  align-items:center;
  margin:0 0 26px 0;
  text-decoration:none;
}

.login-card-logo{
  display:block;
  width:min(290px, 78%);
  height:auto;
  border-radius:16px;
  box-shadow:0 10px 28px rgba(8,38,77,.12);
}

@media(max-width:980px){
  .login-card-logo{
    width:min(250px, 82%);
  }

  .login-card-logo-link{
    margin:0 0 22px 0;
  }
}



/* V6.7 VALIDADOR_IDENTIDAD */
.validator-portal-module{margin:0;padding:0}
.validator-portal-shell{background:#eef4f7;border:1px solid #d7e4ea;border-radius:22px;overflow:hidden;box-shadow:0 18px 45px rgba(8,38,77,.08)}
.validator-frame{display:block;width:100%;height:calc(100vh - 118px);min-height:720px;border:0;background:#f5f8fa}
@media(max-width:760px){.validator-portal-shell{border-radius:16px}.validator-frame{height:calc(100vh - 150px);min-height:660px}}


/* ===== V6.8 CONSUMO CLIENTES ========================================= */

.consumo-dashboard{
  display:grid;
  gap:20px;
  padding-bottom:40px;
}

.consumo-hero{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
  padding:28px 30px;
  border-radius:22px;
  color:white;
  background:
    radial-gradient(
      circle at 92% 10%,
      rgba(40,190,235,.22),
      transparent 30%
    ),
    linear-gradient(
      135deg,
      #08264d 0%,
      #0b3d70 62%,
      #0b7aa9 100%
    );
  box-shadow:0 18px 45px rgba(8,38,77,.14);
}

.consumo-hero .module-eyebrow{
  color:#7ad9fb;
}

.consumo-hero h1{
  margin:4px 0 8px;
  font-size:32px;
}

.consumo-hero p{
  max-width:760px;
  margin:0;
  color:#d6eaf5;
  line-height:1.5;
}

.consumo-updated-box{
  min-width:210px;
  padding:15px 17px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:15px;
  background:rgba(255,255,255,.08);
}

.consumo-updated-box span{
  display:block;
  margin-bottom:5px;
  color:#bcdceb;
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.consumo-updated-box strong{
  display:block;
  font-size:13px;
}


.consumo-toolbar{
  display:flex;
  align-items:flex-end;
  gap:12px;
  flex-wrap:wrap;
  padding:17px 18px;
  border:1px solid #dce8f0;
  border-radius:17px;
  background:white;
}

.consumo-toolbar label{
  display:grid;
  gap:6px;
  color:#526e82;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.06em;
}

.consumo-toolbar input,
.consumo-filters input,
.consumo-filters select{
  min-height:42px;
  border:1px solid #cadce7;
  border-radius:11px;
  background:#fbfdfe;
  padding:0 12px;
  color:#17344e;
  outline:none;
}

.consumo-toolbar input:focus,
.consumo-filters input:focus,
.consumo-filters select:focus{
  border-color:#0797d2;
  box-shadow:0 0 0 3px rgba(7,151,210,.09);
}


.consumo-kpis{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}

.consumo-kpi{
  position:relative;
  overflow:hidden;
  min-height:132px;
  padding:19px 20px;
  border:1px solid #dce8f0;
  border-radius:18px;
  background:white;
  box-shadow:0 10px 28px rgba(8,38,77,.055);
}

.consumo-kpi:after{
  content:"";
  position:absolute;
  width:90px;
  height:90px;
  right:-34px;
  top:-34px;
  border-radius:50%;
  background:#edf8fc;
}

.consumo-kpi>span{
  display:block;
  position:relative;
  z-index:1;
  color:#668195;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.06em;
}

.consumo-kpi>strong{
  display:block;
  position:relative;
  z-index:1;
  margin-top:12px;
  color:#08264d;
  font-size:29px;
  letter-spacing:-.03em;
}

.consumo-kpi>small{
  display:block;
  position:relative;
  z-index:1;
  margin-top:7px;
  color:#71899a;
}

.consumo-kpi-alert{
  border-color:#f1d5d8;
}

.consumo-kpi-alert:after{
  background:#fff1f2;
}


.consumo-panel{
  padding:21px;
  border-radius:20px;
}

.consumo-panel-heading{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  margin-bottom:18px;
}

.consumo-panel-heading h2{
  margin:3px 0 0;
  color:#08264d;
  font-size:21px;
}

.consumo-table-count{
  color:#658095;
  font-size:12px;
  font-weight:800;
}


.consumo-chart{
  width:100%;
  min-height:280px;
  overflow-x:auto;
}

.consumo-bars{
  display:flex;
  align-items:flex-end;
  gap:8px;
  height:280px;
  min-width:720px;
  padding:12px 6px 0;
  border-bottom:1px solid #dce8f0;
}

.consumo-bar-item{
  display:grid;
  grid-template-rows:26px 1fr 26px;
  flex:1 1 0;
  min-width:35px;
  height:100%;
  text-align:center;
}

.consumo-bar-value{
  overflow:hidden;
  color:#678196;
  font-size:9px;
  font-weight:700;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.consumo-bar-track{
  display:flex;
  align-items:flex-end;
  justify-content:center;
  height:100%;
}

.consumo-bar{
  width:min(28px,70%);
  min-height:4px;
  border-radius:7px 7px 2px 2px;
  background:linear-gradient(
    180deg,
    #21b7ee,
    #0a5b91
  );
  transition:.18s;
}

.consumo-bar-item:hover .consumo-bar{
  opacity:.75;
}

.consumo-bar-label{
  padding-top:7px;
  color:#567287;
  font-size:10px;
  font-weight:800;
}


.consumo-filters{
  display:grid;
  grid-template-columns:minmax(220px,1fr) repeat(3,minmax(160px,auto));
  gap:10px;
  margin-bottom:16px;
}

.consumo-table-wrap{
  overflow:auto;
  border:1px solid #dce8f0;
  border-radius:14px;
}

.consumo-table{
  width:100%;
  min-width:1180px;
  border-collapse:collapse;
  background:white;
  font-size:12px;
}

.consumo-table th{
  position:sticky;
  top:0;
  z-index:2;
  padding:11px 12px;
  border-bottom:1px solid #d5e3ec;
  background:#f4f9fc;
  color:#526f84;
  text-align:left;
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.055em;
}

.consumo-table td{
  padding:11px 12px;
  border-bottom:1px solid #edf3f7;
  color:#34536a;
  vertical-align:middle;
}

.consumo-table tbody tr:hover{
  background:#f8fcfe;
}

.consumo-table td.num{
  text-align:right;
  font-variant-numeric:tabular-nums;
}

.consumo-client-name{
  color:#08264d;
}


.consumo-status{
  display:inline-flex;
  align-items:center;
  min-height:26px;
  padding:4px 8px;
  border-radius:999px;
  background:#eef3f6;
  color:#536d7e;
  font-size:9px;
  font-weight:900;
  white-space:nowrap;
}

.consumo-status.is-ok{
  background:#e9f7ef;
  color:#23744a;
}

.consumo-status.is-danger{
  background:#fdebed;
  color:#ba354a;
}

.consumo-status.is-info{
  background:#e8f5fc;
  color:#176d9b;
}

.consumo-status.is-neutral{
  background:#eef1f4;
  color:#536878;
}

.consumo-empty{
  display:grid;
  place-items:center;
  min-height:120px;
  padding:20px;
  color:#71899a;
  text-align:center;
}


@media(max-width:1100px){

  .consumo-kpis{
    grid-template-columns:1fr 1fr;
  }

  .consumo-filters{
    grid-template-columns:1fr 1fr;
  }

}


@media(max-width:700px){

  .consumo-hero{
    flex-direction:column;
    padding:22px 18px;
  }

  .consumo-hero h1{
    font-size:27px;
  }

  .consumo-updated-box{
    width:100%;
  }

  .consumo-kpis{
    grid-template-columns:1fr;
  }

  .consumo-filters{
    grid-template-columns:1fr;
  }

  .consumo-toolbar{
    align-items:stretch;
  }

  .consumo-toolbar label,
  .consumo-toolbar input,
  .consumo-toolbar button{
    width:100%;
  }

}


/* ===== FIN V6.8 CONSUMO CLIENTES ===================================== */



/* ===== V6.8.1 GRAFICO CONSUMO CLIENTES =============================== */

.consumo-chart-summary{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:10px;
}

.consumo-chart-summary>div{
  min-width:150px;
  padding:10px 13px;
  border:1px solid #deebf2;
  border-radius:12px;
  background:#f8fcfe;
}

.consumo-chart-summary span{
  display:block;
  color:#71899a;
  font-size:9px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.07em;
}

.consumo-chart-summary strong{
  display:block;
  margin-top:4px;
  color:#08264d;
  font-size:18px;
}


.consumo-svg-wrap{
  width:100%;
  overflow-x:auto;
}

.consumo-line-svg{
  display:block;
  width:100%;
  min-width:760px;
  height:auto;
}


.consumo-svg-grid{
  stroke:#dce8f0;
  stroke-width:1;
  stroke-dasharray:4 5;
}


.consumo-svg-area{
  fill:url(#consumoAreaGradient);
}


.consumo-svg-line{
  fill:none;
  stroke:#087eb7;
  stroke-width:4;
  stroke-linecap:round;
  stroke-linejoin:round;
}


.consumo-svg-point circle{
  fill:#fff;
  stroke:#0797d2;
  stroke-width:3;
  transition:.15s;
}


.consumo-svg-point:hover circle{
  r:7;
  fill:#0797d2;
}


.consumo-svg-y-label,
.consumo-svg-x-label,
.consumo-svg-axis-title{
  fill:#6c8495;
  font-family:inherit;
}


.consumo-svg-y-label{
  font-size:11px;
}


.consumo-svg-x-label{
  font-size:11px;
  font-weight:800;
}


.consumo-svg-axis-title{
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.06em;
}


/* ===== FIN V6.8.1 ==================================================== */



/* ===== V6.8.2 CHARTS CONSUMO CLIENTES =============================== */

.consumo-chart-grid{
  display:grid;
  grid-template-columns:1.5fr 1fr;
  gap:18px;
}

.consumo-graph-card{
  border:1px solid #dce8f0;
  border-radius:18px;
  background:#fff;
  padding:18px;
}

.consumo-graph-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}

.consumo-graph-header span{
  display:block;
  color:#0797d2;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.consumo-graph-header h3{
  margin:6px 0 0;
  color:#08264d;
  font-size:24px;
  line-height:1.15;
}

.consumo-mini-stats{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.consumo-mini-stats>div{
  min-width:120px;
  padding:10px 12px;
  border:1px solid #dce8f0;
  border-radius:12px;
  background:#f8fcfe;
}

.consumo-mini-stats small{
  display:block;
  color:#7890a2;
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.06em;
}

.consumo-mini-stats strong{
  display:block;
  margin-top:4px;
  color:#08264d;
  font-size:18px;
}

.consumo-mini-stats span{
  display:block;
  margin-top:4px;
  color:#6f8798;
  font-size:11px;
  font-weight:700;
  text-transform:none;
  letter-spacing:0;
}

.consumo-day-bars{
  display:flex;
  align-items:flex-end;
  gap:10px;
  min-height:340px;
  padding:12px 6px 0;
  overflow-x:auto;
  border-bottom:1px solid #dce8f0;
}

.consumo-day-bar-item{
  display:grid;
  grid-template-rows:30px 1fr 26px;
  flex:1 1 0;
  min-width:52px;
  height:100%;
  text-align:center;
}

.consumo-day-bar-value{
  color:#5d7890;
  font-size:11px;
  font-weight:800;
  white-space:nowrap;
}

.consumo-day-bar-track{
  display:flex;
  align-items:flex-end;
  justify-content:center;
  height:100%;
}

.consumo-day-bar{
  width:34px;
  min-height:10px;
  border-radius:10px 10px 3px 3px;
  background:linear-gradient(180deg,#25c0f3 0%,#0a5b91 100%);
  box-shadow:0 10px 20px rgba(10,91,145,.18);
  transition:transform .15s ease, opacity .15s ease;
}

.consumo-day-bar-item:hover .consumo-day-bar{
  transform:translateY(-2px);
  opacity:.9;
}

.consumo-day-bar-label{
  padding-top:8px;
  color:#506d84;
  font-size:12px;
  font-weight:900;
}

.consumo-donut-layout{
  display:grid;
  grid-template-columns:240px 1fr;
  align-items:center;
  gap:20px;
  min-height:340px;
}

.consumo-donut{
  position:relative;
  width:220px;
  height:220px;
  margin:auto;
  border-radius:50%;
}

.consumo-donut::after{
  content:"";
  position:absolute;
  inset:26px;
  border-radius:50%;
  background:#fff;
  box-shadow:inset 0 0 0 1px #e5eef4;
}

.consumo-donut-center{
  position:absolute;
  inset:0;
  z-index:2;
  display:grid;
  place-items:center;
  text-align:center;
  padding:58px;
}

.consumo-donut-center strong{
  display:block;
  color:#08264d;
  font-size:24px;
  line-height:1.1;
}

.consumo-donut-center span{
  display:block;
  margin-top:6px;
  color:#6f8798;
  font-size:12px;
  font-weight:700;
}

.consumo-donut-legend{
  display:grid;
  gap:12px;
}

.consumo-donut-legend-item{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:10px 12px;
  border:1px solid #e2ecf2;
  border-radius:12px;
  background:#fbfdfe;
}

.consumo-donut-dot{
  width:12px;
  height:12px;
  margin-top:4px;
  border-radius:50%;
  flex:0 0 12px;
}

.consumo-donut-legend-text strong{
  display:block;
  color:#08264d;
  font-size:13px;
}

.consumo-donut-legend-text small{
  display:block;
  margin-top:3px;
  color:#6f8798;
  font-size:12px;
}

@media(max-width:1100px){
  .consumo-chart-grid{
    grid-template-columns:1fr;
  }

  .consumo-donut-layout{
    grid-template-columns:1fr;
  }
}

@media(max-width:700px){
  .consumo-graph-header{
    flex-direction:column;
  }

  .consumo-day-bar-item{
    min-width:58px;
  }

  .consumo-day-bar{
    width:28px;
  }

  .consumo-donut{
    width:190px;
    height:190px;
  }

  .consumo-donut::after{
    inset:22px;
  }
}

/* ===== FIN V6.8.2 =================================================== */



/* Aislamiento de datos personales entre consultas */
body.company-mode #obraSocialSection,
#obraSocialSection.hidden {
  display: none !important;
}


/* ADMIN_V2_PREVIEW: legacy DOM retained for safe rollback. */
.admin-v2-embedded-host { display: none; }
body.admin-v2-preview #usersModuleView > :not(.admin-v2-embedded-host),
body.admin-v2-preview #auditModuleView > :not(.admin-v2-embedded-host) { display: none !important; }
body.admin-v2-preview .admin-v2-embedded-host { display: block; width: 100%; }
.admin-v2-embedded-host iframe {
  display: block; width: 100%; min-height: min(950px, 85vh); height: calc(100vh - 150px);
  border: 1px solid #dbe7f0; border-radius: 18px; background: #fff;
}
.admin-v2-embed-status { font-size: 13px; color: #4b647d; padding: 8px 4px; }
@media(max-width:760px) { .admin-v2-embedded-host iframe { min-height: 750px; height: calc(100vh - 100px); } }


/* HISTORICO_CONSUMO_2026_V1: panel anual, sin dependencias graficas externas. */
.consumo-auto-refresh-hint{align-self:center;margin-left:auto;color:#668195;font-size:11px;font-weight:700}
.consumo-historico-panel{display:grid;gap:18px}
.consumo-historico-heading{margin-bottom:0}
.consumo-historico-subtitle{margin:8px 0 0;color:#6c8495;font-size:13px;line-height:1.45}
.consumo-historico-actions{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap}
.consumo-historico-actions label{display:grid;gap:6px;color:#526e82;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.05em}
.consumo-historico-actions select{height:40px;padding:0 12px;border:1px solid #cadce7;border-radius:11px;background:#fbfdfe;color:#17344e}
.consumo-historico-actions button{min-height:40px}
.consumo-historico-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.consumo-historico-kpis>div{padding:14px 16px;border:1px solid #dce8f0;border-radius:14px;background:#f8fcfe;min-width:0}
.consumo-historico-kpis span{display:block;color:#6c8495;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.05em}
.consumo-historico-kpis strong{display:block;margin:7px 0 4px;color:#08264d;font-size:25px;letter-spacing:-.025em;font-variant-numeric:tabular-nums}
.consumo-historico-kpis small{color:#71899a;font-size:11px;line-height:1.4}
.consumo-historico-graficos{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:16px}
.consumo-historico-grafico{padding:17px;border:1px solid #dce8f0;border-radius:16px;min-width:0}
.consumo-historico-grafico-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;margin-bottom:12px;flex-wrap:wrap}
.consumo-historico-grafico-head h3{margin:0;color:#08264d;font-size:17px}
.consumo-historico-grafico-head small{color:#71899a;font-size:11px}
.consumo-historico-barras{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:6px;min-height:265px}
.consumo-hist-mes{display:grid;grid-template-rows:32px 1fr 20px 18px;gap:4px;min-width:0;padding:0;border:0;background:transparent;text-align:center;color:#526e82;cursor:pointer;font:inherit}
.consumo-hist-mes-num{align-self:end;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;font-weight:800;color:#244c6a}
.consumo-hist-mes-track{display:flex;align-items:flex-end;justify-content:center;min-height:155px;border-bottom:1px solid #dce8f0;background:linear-gradient(to top,#f7fbfd,transparent);border-radius:5px 5px 0 0}
.consumo-hist-mes-bar{display:block;width:65%;max-width:30px;min-height:0;border-radius:7px 7px 0 0;background:linear-gradient(180deg,#24bbed,#0b5d96);transition:filter .15s}
.consumo-hist-mes.is-actual .consumo-hist-mes-bar{background:linear-gradient(180deg,#39c8e9,#0876ac)}
.consumo-hist-mes.is-disponible:hover .consumo-hist-mes-bar,.consumo-hist-mes.is-disponible:focus-visible .consumo-hist-mes-bar{filter:brightness(1.25)}
.consumo-hist-mes:focus-visible{outline:2px solid #0797d2;outline-offset:3px;border-radius:6px}
.consumo-hist-mes:disabled{cursor:default;opacity:.65}
.consumo-hist-mes-label{font-size:11px;font-weight:900}
.consumo-hist-mes-status{font-size:9px;white-space:nowrap;color:#7790a2}
.consumo-hist-mes.is-ausente .consumo-hist-mes-track{background:repeating-linear-gradient(45deg,#f6f9fb,#f6f9fb 5px,#f0f4f7 5px,#f0f4f7 10px)}
.consumo-historico-linea{min-height:245px;display:grid;align-items:center}
.consumo-hist-linea-svg{display:block;width:100%;height:auto;overflow:visible}
.consumo-hist-linea-guia{stroke:#dce8f0;stroke-dasharray:4 5}
.consumo-hist-linea-path{fill:none;stroke:#087eb7;stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round}
.consumo-hist-linea-punto{fill:#fff;stroke:#087eb7;stroke-width:3}
.consumo-hist-linea-valor,.consumo-hist-linea-mes{fill:#668195;font-family:inherit;font-size:11px}
.consumo-historico-aviso{padding:12px 14px;border:1px solid #dce8f0;border-radius:12px;background:#f8fcfe;color:#526e82;font-size:12px;line-height:1.5}
.consumo-historico-aviso.is-warning{background:#fffaf0;border-color:#f2dfb4;color:#8a5c19}
.consumo-historico-tabla-wrap{overflow-x:auto;border:1px solid #dce8f0;border-radius:12px}
.consumo-historico-tabla{width:100%;border-collapse:collapse;min-width:660px;font-size:12px}
.consumo-historico-tabla th{padding:11px 12px;background:#f4f9fc;text-align:left;color:#526f84;text-transform:uppercase;font-size:10px;letter-spacing:.04em}
.consumo-historico-tabla td{padding:10px 12px;border-top:1px solid #edf3f7;color:#34536a}
.consumo-historico-tabla td.num{text-align:right;font-variant-numeric:tabular-nums}
.consumo-hist-estado{display:inline-block;padding:4px 9px;border-radius:99px;background:#eaf6fb;color:#0a5b91;font-size:10px;font-weight:800}
.consumo-hist-estado.is-ausente{background:#f0f3f5;color:#6f8494}
.consumo-hist-abrir{padding:5px 9px;border:1px solid #bcd9e8;border-radius:8px;background:#f0f9fd;color:#0a5b91;font-weight:800;cursor:pointer}
.consumo-hist-abrir:hover{background:#dff3fc}
.consumo-historico-facturacion{margin:0;padding:12px 15px;border-left:4px solid #d9a14c;border-radius:8px;background:#fff9ed;color:#755526;font-size:12px;line-height:1.55}
.consumo-historico-facturacion[hidden]{display:none!important}
@media(max-width:1150px){.consumo-historico-graficos{grid-template-columns:1fr}.consumo-historico-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.consumo-historico-heading{flex-direction:column}.consumo-historico-actions{width:100%}.consumo-historico-kpis{grid-template-columns:1fr 1fr}.consumo-historico-kpis strong{font-size:21px}.consumo-historico-grafico{padding:12px}.consumo-historico-barras{overflow-x:auto;grid-template-columns:repeat(12,minmax(44px,1fr))}.consumo-auto-refresh-hint{margin-left:0}}


/* PEYPE_BCRA_COLORES_POR_SITUACION_V1 */
/* En tarjetas y detalle vigente, el color representa la situacion BCRA.
   Los graficos de composicion mantienen su paleta por entidad. */
.entity-kpi.sit-0,.entity-row.sit-0{--entity-color:#8496a6;--entity-tint:#f1f5f8}
.entity-kpi.sit-1,.entity-row.sit-1{--entity-color:#13966a;--entity-tint:#eaf8f0}
.entity-kpi.sit-2,.entity-row.sit-2{--entity-color:#b98912;--entity-tint:#fff8e3}
.entity-kpi.sit-3,.entity-row.sit-3{--entity-color:#d96b28;--entity-tint:#fff1e6}
.entity-kpi.sit-4,.entity-row.sit-4{--entity-color:#d94857;--entity-tint:#fff0f2}
.entity-kpi.sit-5,.entity-row.sit-5{--entity-color:#aa263c;--entity-tint:#fdebf0}
.entity-kpi[class*="sit-"]{
  border-top-color:var(--entity-color)!important;
  background:linear-gradient(180deg,var(--entity-tint),#fff 45%)!important;
}
.entity-kpi[class*="sit-"] .entity-color-dot,
.entity-row[class*="sit-"] .entity-inline-dot{
  background:var(--entity-color)!important;
}
.entity-kpi[class*="sit-"] .entity-rank,
.entity-row[class*="sit-"] .rank{
  background:var(--entity-color)!important;
  color:#fff!important;
}
.entity-row[class*="sit-"]{
  border-left-color:var(--entity-color)!important;
  background:linear-gradient(90deg,var(--entity-tint),transparent 28%)!important;
}
.entity-kpi[class*="sit-"] .entity-progress::-webkit-progress-value,
.entity-row[class*="sit-"] .entity-row-progress::-webkit-progress-value{
  background:var(--entity-color)!important;
}
.entity-kpi[class*="sit-"] .entity-progress::-moz-progress-bar,
.entity-row[class*="sit-"] .entity-row-progress::-moz-progress-bar{
  background:var(--entity-color)!important;
}

/* PEYPE_MOTOR_MENU_G1_START */
.mobile-module-nav a[data-motor-grupo1]{display:inline-flex;align-items:center;text-decoration:none;cursor:pointer}
/* PEYPE_MOTOR_MENU_G1_END */
