/* DalyAccounting R16. Public BI demo: scoped design; never modifies ERP's authenticated tables. */
.daly16-bi{--bi-white:#f4fbff;--bi-muted:#bed5e5;--bi-sky:#56c9ff;--bi-teal:#49e6bc;--bi-border:rgba(114,177,218,.22);color:var(--bi-white);background:radial-gradient(ellipse at 90% 0,rgba(12,134,156,.18),transparent 45%),#07172b;border:1px solid #25455b;box-shadow:0 24px 60px rgba(0,0,0,.17);padding:clamp(18px,2.5vw,36px);}
.daly16-bi *, .daly16-bi *:before,.daly16-bi *:after{box-sizing:border-box}
.daly16-bi h2,.daly16-bi h3{color:var(--bi-white)!important}
.daly16-bi .daly16-eyebrow{font-size:.69rem;letter-spacing:.13em;font-weight:900;color:#73dfc5;display:block;margin-bottom:8px;text-transform:uppercase}
.daly16-headline{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:22px}
.daly16-headline h2{font-weight:900;font-size:clamp(1.8rem,2.8vw,2.65rem);margin:0 0 10px;letter-spacing:-.04em;line-height:1.1}
.daly16-headline h2 span{color:#78ead2}
.daly16-headline p{max-width:780px;margin:0;color:var(--bi-muted);line-height:1.65;font-size:.94rem}
.daly16-badges{display:flex;gap:7px;flex-wrap:wrap;align-items:center;justify-content:flex-end;flex:0 0 auto}
.daly16-badges span{border:1px solid #315771;border-radius:22px;padding:7px 11px;font-size:.73rem;font-weight:800;color:#d0e3f2;background:#0c2740}
.daly16-badges .daly16-demo-badge{color:#102e2e;background:#6eebca;border-color:#6eebca}
.daly16-controls{display:flex;gap:16px;align-items:flex-end;flex-wrap:wrap;border-radius:14px;background:#0d2840;padding:14px;border:1px solid #254965}
.daly16-controls label{font-size:.77rem;color:#c1d8e8;font-weight:800;display:grid;gap:7px}
.daly16-controls select{font:inherit;color:#f1fdff;background:#123b57;border:1px solid #48728c;padding:10px 35px 10px 12px;min-height:41px;border-radius:9px;cursor:pointer}
.daly16-period-wrap>span{display:block;font-size:.77rem;color:#c1d8e8;font-weight:800;margin-bottom:7px}
.daly16-period{display:flex;flex-wrap:wrap;gap:4px;background:#06192e;padding:3px;border-radius:10px;border:1px solid #234b68}
.daly16-period button,.daly16-export{font:inherit;font-size:.79rem;font-weight:900;padding:10px 13px;border-radius:8px;color:#bed6e7;border:0;background:transparent;cursor:pointer;white-space:nowrap}
.daly16-period button[aria-pressed="true"]{background:#6becbf;color:#0b2b39}
.daly16-export{margin-left:auto;border:1px solid #4e86a5;color:#eaf8ff;background:#17405c;padding:11px 16px}
.daly16-export:hover,.daly16-bi button:hover{filter:brightness(1.13)}
.daly16-bi :is(select,button,[tabindex]):focus-visible{outline:3px solid #fbd772;outline-offset:3px}
.daly16-source{color:#91b8d2!important;font-size:.76rem;line-height:1.45;margin:12px 0 20px}
.daly16-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:16px}
.daly16-kpi{background:linear-gradient(155deg,#103149,#0b2035);border-radius:15px;border:1px solid #2a5269;padding:19px;min-width:0;box-shadow:inset 0 1px rgba(255,255,255,.03)}
.daly16-kpi-top{display:flex;align-items:start;justify-content:space-between;gap:9px}
.daly16-kpi-top span:first-child{color:#d2e4f0;font-size:.81rem;font-weight:800}
.daly16-kpi-icon{height:29px;width:29px;border-radius:9px;display:grid;place-items:center;color:#68eacf;background:rgba(69,230,188,.1);font-size:1.05rem}
.daly16-kpi strong{display:block;font-weight:900;color:#fff;letter-spacing:-.045em;font-size:clamp(1.35rem,2.15vw,2rem);margin:9px 0 6px}
.daly16-kpi small{display:block;color:#aad6e6;font-size:.74rem;min-height:2.6em;line-height:1.4}
.daly16-kpi small.warn{color:#ffcb8c}
.daly16-kpi-meter{height:4px;border-radius:999px;background:#203c53;margin-top:15px;overflow:hidden}
.daly16-kpi-meter i{display:block;background:linear-gradient(90deg,#3aa9e9,#58ebbd);height:100%;width:0;transition:width .3s}
.daly16-main-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(300px,1fr);gap:15px;margin-bottom:15px}
.daly16-bottom-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(310px,1fr);gap:15px}
.daly16-panel{background:linear-gradient(135deg,#0e2941,#081d32);border-radius:17px;border:1px solid #294961;padding:clamp(15px,1.6vw,24px);min-width:0;color:#f1f9ff}
.daly16-panel-heading{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:13px}
.daly16-panel-heading h3{font-size:1.07rem;margin:0!important;font-weight:900}
.daly16-detail{font-size:.72rem;color:#a4c4dc;font-weight:700;white-space:normal;text-align:right}
.daly16-chart-legend{display:flex;align-items:center;gap:20px;flex-wrap:wrap;color:#cbdfed;font-size:.73rem;margin:7px 0 0}
.daly16-chart-legend>span{display:flex;align-items:center;gap:7px}
.daly16-chart-legend>.daly16-detail{margin-left:auto}
.daly16-dot{display:inline-block;width:9px;height:9px;border-radius:50%}
.daly16-dot.inc{background:#53c2fe}.daly16-dot.exp{background:#50e1b6}
.daly16-trend-plot{min-height:268px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.daly16-trend-plot svg{width:100%;height:auto;display:block;max-height:320px}
.daly16-trend-plot .bi-grid{stroke:#2f526b;stroke-width:1;stroke-dasharray:3 5}
.daly16-trend-plot .bi-axis{fill:#a9c8dc;font-size:12px}
.daly16-trend-plot .bi-series-inc{stroke:#53c2fe;fill:none;stroke-width:3.2;stroke-linecap:round;stroke-linejoin:round}
.daly16-trend-plot .bi-series-exp{stroke:#50e1b6;fill:none;stroke-width:3.2;stroke-linecap:round;stroke-linejoin:round}
.daly16-trend-plot .bi-marker{stroke:#081d32;stroke-width:3;cursor:pointer}
.daly16-trend-plot .bi-marker:focus-visible{stroke:#fff;stroke-width:6}
.daly16-caption{font-size:.76rem;color:#a9c9dd;line-height:1.5;margin:12px 0 0}
.daly16-waterfall svg{display:block;width:100%;height:auto;max-height:260px}
.daly16-waterfall{min-height:219px;display:flex;align-items:center;justify-content:center}
.daly16-ministat{border:1px solid #27546c;border-radius:11px;background:#12374b;padding:11px 14px;display:flex;align-items:center;justify-content:space-between;gap:8px;color:#cae2eb;font-size:.79rem}
.daly16-ministat strong{color:#79efc9;font-size:1.1rem}
.daly16-table-scroll{overflow-x:auto;border:1px solid #294d65;border-radius:11px}
.daly16-table{width:100%;border-collapse:collapse;border-spacing:0;text-align:left;color:#e8f6ff!important;font-size:.85rem;min-width:620px;background:#0b263a!important}
.daly16-table thead,.daly16-table th{background:#173a52!important;color:#d5eefe!important}
.daly16-table th{font-size:.69rem;text-transform:uppercase;letter-spacing:.04em;font-weight:900;padding:12px 12px;border-bottom:1px solid #385c73}
.daly16-table td{color:#e6f6fb!important;background:#102d43!important;border-bottom:1px solid #25465a;padding:14px 12px;font-size:.81rem;font-weight:600}
.daly16-table tr:nth-child(even) td{background:#0b253a!important}
.daly16-table tr:hover td,.daly16-table tr.bi-active td{background:#194660!important}
.daly16-table .daly16-num{text-align:right;font-variant-numeric:tabular-nums}
.daly16-table button{background:none;border:none;padding:2px;text-decoration:underline;text-underline-offset:4px;font:inherit;color:#a5eaff;font-weight:800;cursor:pointer}
.daly16-table .bi-chip{display:inline-block;padding:5px 9px;border-radius:999px;font-weight:900;font-size:.68rem;white-space:nowrap}
.daly16-table .bi-chip.green{background:#174737;color:#b9f8d4}
.daly16-table .bi-chip.amber{background:#503b20;color:#ffe0a3}
.daly16-table .bi-chip.red{background:#592d32;color:#ffd0d3}
.daly16-health{display:flex;gap:17px;align-items:center;justify-content:center;margin:12px 0 16px}
.daly16-health-dial{height:116px;width:116px;flex:0 0 116px;border-radius:50%;background:radial-gradient(closest-side,#102a41 77%,transparent 79%),conic-gradient(#50e0b6 60%,#29475f 60%);display:flex;flex-direction:column;justify-content:center;align-items:center}
.daly16-health-dial strong{color:#efffff;font-size:1.5rem;font-weight:900}.daly16-health-dial span{font-size:.65rem;color:#b9d9eb}
.daly16-health-metrics{display:grid;gap:9px;flex:1}
.daly16-health-metrics>div{display:flex;justify-content:space-between;align-items:center;padding-bottom:6px;border-bottom:1px solid #264860;color:#c5ddea;font-size:.78rem}
.daly16-health-metrics b{color:#f0fdff;font-size:.87rem}
.daly16-insight{margin-top:18px;border-left:3px solid #55dcbb;background:#123b4b;color:#e0f1fb;border-radius:5px 10px 10px 5px;padding:13px 14px;line-height:1.5;font-size:.83rem}
.daly16-insight strong{display:block;color:#80f1ce;margin-bottom:5px}
.daly16-footer{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;border-top:1px solid #23445a;padding-top:18px;margin-top:17px;font-size:.75rem;color:#a8cadd}
.daly16-footer strong{font-weight:700;color:#a3dcd9}
@media(max-width:1100px){.daly16-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.daly16-main-grid,.daly16-bottom-grid{grid-template-columns:1fr}}
@media(max-width:660px){.daly16-headline{flex-direction:column}.daly16-badges{justify-content:flex-start}.daly16-kpis{grid-template-columns:1fr}.daly16-period-wrap{order:1}.daly16-export{margin-left:0}.daly16-chart-legend>.daly16-detail{margin-left:0}.daly16-health{justify-content:flex-start}.daly16-controls{gap:11px}}
@media(prefers-reduced-motion:reduce){.daly16-kpi-meter i{transition:none}}

/* R32.3: acceso clicable al laboratorio independiente */
.daly16-badges a.daly16-demo-badge{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;cursor:pointer;min-height:38px}.daly16-badges a.daly16-demo-badge:hover{filter:brightness(1.12);outline:2px solid #1769ba;outline-offset:2px}
