/* Gestión 2: panel propio sobre el mismo motor y los mismos datos privados. */
html[data-gestion2="live"] .g2-dashboard{--g2-deep:#101d18;--g2-leaf:#254c3b;--g2-gold:#bd9f66;--g2-ink:#223a30;--g2-muted:#7d8c83;--g2-stroke:#e7ebe5;--g2-paper:#fff;color:var(--g2-ink);padding:4px 0 36px}
html[data-gestion2="live"] .g2-dashboard button{cursor:pointer}
html[data-gestion2="live"] .g2-hero{position:relative;overflow:hidden;background:linear-gradient(115deg,#12251c,#1e3a2a 75%,#294934);color:#f5eee0;border-radius:17px;min-height:272px;padding:46px clamp(24px,4vw,56px);display:flex;justify-content:space-between;align-items:center;gap:20px;margin:0 0 20px;isolation:isolate;box-shadow:0 18px 44px #12302214}
html[data-gestion2="live"] .g2-hero:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 87% 50%,#dfc98a21,transparent 42%);pointer-events:none}
html[data-gestion2="live"] .g2-hero-copy{position:relative;z-index:2;max-width:650px}
html[data-gestion2="live"] .g2-kicker{font-size:10px;letter-spacing:.17em;color:#e1c58b;font-weight:750;display:block;margin-bottom:17px}
html[data-gestion2="live"] .g2-hero h1{font-family:Georgia,"Times New Roman",serif;font-weight:400;font-size:clamp(32px,3.7vw,49px);line-height:1.12;letter-spacing:-1.5px;color:#fff}
html[data-gestion2="live"] .g2-hero h1 em{font-weight:400;font-style:italic;color:#dfc590}
html[data-gestion2="live"] .g2-hero-copy p{font-size:13px;line-height:1.75;color:#c4d3c7;margin-top:15px;max-width:440px}
html[data-gestion2="live"] .g2-hero-actions{display:flex;flex-wrap:wrap;gap:11px;margin-top:27px}
html[data-gestion2="live"] .g2-hero-actions button,html[data-gestion2="live"] .g2-goal>button{display:inline-flex;gap:10px;align-items:center;justify-content:center;border-radius:9px;min-height:42px;padding:11px 17px;font-size:12px;font-weight:650;transition:transform .15s,background .15s}
html[data-gestion2="live"] .g2-hero-actions button:hover,html[data-gestion2="live"] .g2-goal>button:hover{transform:translateY(-1px)}
html[data-gestion2="live"] .g2-action-primary{background:#c8ad74;color:#17291f;border:1px solid #c8ad74}
html[data-gestion2="live"] .g2-action-secondary{background:#ffffff0d;color:#f9f3de;border:1px solid #d1bc8a6b}
html[data-gestion2="live"] .g2-hero-art{position:relative;flex:0 0 226px;height:215px;display:flex;align-items:center;flex-direction:column;justify-content:center;color:#e2c68b}
html[data-gestion2="live"] .g2-orbit{position:absolute;border:1px solid #d7bb8160;border-radius:50%;transform:rotate(-20deg)}
html[data-gestion2="live"] .g2-orbit-one{inset:4% 0}
html[data-gestion2="live"] .g2-orbit-two{inset:16% 12%;border-color:#cfb07837}
html[data-gestion2="live"] .g2-orbit-three{inset:28% 24%;border-color:#c2a3656e}
html[data-gestion2="live"] .g2-hero-art strong{font-size:61px;font-family:Georgia,serif;font-weight:400;letter-spacing:-3px;position:relative}
html[data-gestion2="live"] .g2-hero-art small{font-size:9px;letter-spacing:.36em;position:relative}
html[data-gestion2="live"] .g2-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:18px}
html[data-gestion2="live"] .g2-kpi{min-width:0;background:var(--g2-paper);border:1px solid var(--g2-stroke);border-radius:13px;padding:21px 21px 19px;box-shadow:0 6px 24px #193f2607}
html[data-gestion2="live"] .g2-kpi-label{display:flex;align-items:center;justify-content:space-between;gap:7px;color:#7f8c82;font-size:11px;font-weight:650}
html[data-gestion2="live"] .g2-kpi-label svg{color:#a98b54;flex:0 0 auto}
html[data-gestion2="live"] .g2-kpi-value{display:block;margin:21px 0 17px;letter-spacing:-.9px;font-size:clamp(20px,2.2vw,31px);font-weight:650;color:#213f30;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}
html[data-gestion2="live"] .g2-kpi p{display:flex;align-items:center;gap:8px;color:#8c968d;font-size:10px;line-height:1.5}
html[data-gestion2="live"] .g2-dot{display:inline-block;flex:0 0 6px;width:6px;height:6px;border-radius:50%;background:#4b9771}
html[data-gestion2="live"] .g2-dot.gold{background:#b99a5d}
html[data-gestion2="live"] .g2-main-grid,html[data-gestion2="live"] .g2-bottom-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,1fr);gap:18px;margin-bottom:18px}
html[data-gestion2="live"] .g2-bottom-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
html[data-gestion2="live"] .g2-panel{min-width:0;background:var(--g2-paper);border:1px solid var(--g2-stroke);border-radius:14px;box-shadow:0 6px 24px #193f2608;padding:24px 26px}
html[data-gestion2="live"] .g2-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:20px}
html[data-gestion2="live"] .g2-eyebrow{font-size:9px;letter-spacing:.16em;color:#ad915d;font-weight:800;display:block;margin-bottom:9px}
html[data-gestion2="live"] .g2-panel h2,html[data-gestion2="live"] .g2-tools h2{font-family:Georgia,"Times New Roman",serif;font-size:clamp(19px,2vw,25px);line-height:1.25;font-weight:400;color:#263d30}
html[data-gestion2="live"] .g2-panel-head p{font-size:11px;color:#8b978c;line-height:1.6;margin-top:6px}
html[data-gestion2="live"] .g2-range{display:flex;flex-wrap:nowrap;gap:2px;border:1px solid #e1e7df;padding:3px;border-radius:9px;flex:0 0 auto}
html[data-gestion2="live"] .g2-range button{background:none;border:0;border-radius:6px;padding:7px 9px;min-height:28px;color:#788679;font-size:10px;white-space:nowrap}
html[data-gestion2="live"] .g2-range button[aria-pressed=true]{background:#203b2e;color:#f9f3e5}
html[data-gestion2="live"] .g2-income-total{display:flex;justify-content:space-between;align-items:end;gap:12px;margin:0 0 8px;padding-bottom:12px;border-bottom:1px solid #f0f2ed}
html[data-gestion2="live"] .g2-income-total span{font-size:9px;letter-spacing:.12em;font-weight:750;color:#94a095;display:block}
html[data-gestion2="live"] .g2-income-total strong{display:block;font-size:26px;letter-spacing:-.7px;margin-top:6px;color:#214932}
html[data-gestion2="live"] .g2-income-total small{color:#8d998f;font-size:10px}
html[data-gestion2="live"] .g2-chart{height:265px;width:100%;min-width:0}
html[data-gestion2="live"] .g2-private-chart{height:265px;display:flex;align-items:center;justify-content:center;border:1px dashed #d4ddd4;background:#f8f9f5;color:#63796b;border-radius:10px;font-size:12px}
html[data-gestion2="live"] .g2-chart-legend{display:flex;flex-wrap:wrap;gap:15px;margin-top:4px;margin-bottom:17px;font-size:10px;color:#819084}
html[data-gestion2="live"] .g2-chart-legend span{display:inline-flex;gap:6px;align-items:center}
html[data-gestion2="live"] .g2-legend{display:inline-block;width:16px;height:3px;border-radius:4px}
html[data-gestion2="live"] .g2-legend.real{background:#2c6a51}
html[data-gestion2="live"] .g2-legend.announced{background:#b79c69}
html[data-gestion2="live"] .g2-legend.estimated{background:repeating-linear-gradient(90deg,#8ba99b 0px,#8ba99b 4px,transparent 4px,transparent 7px)}
html[data-gestion2="live"] .g2-panel-foot{border-top:1px solid #edf0e9;padding-top:15px;margin-top:14px;display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
html[data-gestion2="live"] .g2-panel-foot>span{font-size:10px;color:#8a968c}
html[data-gestion2="live"] .g2-panel-foot button{background:none;border:0;padding:6px 0;color:#3c6d54;display:inline-flex;align-items:center;gap:8px;font-size:11px;font-weight:750}
html[data-gestion2="live"] .g2-panel-foot button:hover{text-decoration:underline}
html[data-gestion2="live"] .g2-payment-list{display:grid;gap:0}
html[data-gestion2="live"] .g2-payment{display:flex;gap:11px;align-items:center;min-width:0;padding:14px 0;border-bottom:1px solid #eff1ec}
html[data-gestion2="live"] .g2-payment:last-child{border-bottom:0}
html[data-gestion2="live"] .g2-payment-date{flex:0 0 51px;height:51px;border:1px solid #e3e9de;border-radius:10px;background:#f8faf7;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px}
html[data-gestion2="live"] .g2-payment-date strong{font-size:17px;color:#315340}
html[data-gestion2="live"] .g2-payment-date small{font-size:8px;color:#8b9c8e;white-space:nowrap}
html[data-gestion2="live"] .g2-payment-company{flex:1;min-width:0}
html[data-gestion2="live"] .g2-payment-company strong{font-size:11px;font-weight:750;color:#304736;display:block;overflow-wrap:anywhere}
html[data-gestion2="live"] .g2-payment-company span{display:block;color:#94a098;font-size:9px;margin-top:5px}
html[data-gestion2="live"] .g2-payment-amount{font-size:12px;font-weight:750;color:#2d684e;white-space:nowrap}
html[data-gestion2="live"] .g2-allocation-body{display:flex;align-items:center;gap:12px;min-height:235px}
html[data-gestion2="live"] .g2-donut{position:relative;width:205px;height:205px;flex:0 0 205px}
html[data-gestion2="live"] .g2-donut-center{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;pointer-events:none}
html[data-gestion2="live"] .g2-donut-center strong{font-size:27px;color:#365a43}
html[data-gestion2="live"] .g2-donut-center span{font-size:10px;color:#9aab9f}
html[data-gestion2="live"] .g2-private-donut{flex:0 0 205px;height:205px;display:grid;place-items:center;color:#819285;font-size:12px;background:#f8faf7;border:1px dashed #d2dfd4;border-radius:50%}
html[data-gestion2="live"] .g2-sector-list{flex:1;min-width:0;list-style:none;padding:0;margin:0}
html[data-gestion2="live"] .g2-sector-list li{display:flex;align-items:center;gap:8px;padding:8px 0;font-size:10px;border-bottom:1px solid #f0f2ed}
html[data-gestion2="live"] .g2-sector-list li:last-child{border-bottom:0}
html[data-gestion2="live"] .g2-sector-list li i{width:8px;height:8px;border-radius:50%;flex:0 0 8px}
html[data-gestion2="live"] .g2-sector-list li span{flex:1;min-width:0;overflow-wrap:anywhere;color:#6d7c70}
html[data-gestion2="live"] .g2-sector-list li strong{white-space:nowrap;color:#2e4f3c}
html[data-gestion2="live"] .g2-leader-list{display:grid;gap:0}
html[data-gestion2="live"] .g2-leader{display:flex;align-items:center;gap:11px;padding:13px 0;border-bottom:1px solid #eff1ec}
html[data-gestion2="live"] .g2-leader:last-child{border-bottom:0}
html[data-gestion2="live"] .g2-company-mark{display:grid;place-items:center;background:#e9f0e9;border:1px solid #d8e5d9;border-radius:50%;font-size:9px;font-weight:800;color:#406c4c;width:36px;height:36px;flex:0 0 36px}
html[data-gestion2="live"] .g2-leader-main{flex:1;min-width:0}
html[data-gestion2="live"] .g2-leader-main>div:first-child{display:flex;justify-content:space-between;gap:7px;align-items:center}
html[data-gestion2="live"] .g2-leader-main strong{font-size:11px;color:#2c4735;overflow-wrap:anywhere}
html[data-gestion2="live"] .g2-leader-main small{color:#94a098;font-size:9px;white-space:nowrap}
html[data-gestion2="live"] .g2-leader-track{background:#edf1ec;border-radius:5px;height:5px;margin-top:9px;overflow:hidden}
html[data-gestion2="live"] .g2-leader-track i{height:100%;display:block;max-width:100%;background:linear-gradient(90deg,#79a98d,#335e46);border-radius:5px}
html[data-gestion2="live"] .g2-leader-value{font-size:11px;color:#2f5c42;white-space:nowrap}
html[data-gestion2="live"] .g2-empty{font-size:12px;color:#84968a;line-height:1.65;padding:25px 0}
html[data-gestion2="live"] .g2-goal{display:flex;justify-content:space-between;gap:25px;align-items:center;background:linear-gradient(115deg,#f1efdf,#f7f7ef);border:1px solid #e5e3ca;border-radius:14px;padding:28px 36px;margin-bottom:18px}
html[data-gestion2="live"] .g2-goal .g2-kicker{color:#907341;margin-bottom:10px}
html[data-gestion2="live"] .g2-goal h2{font-family:Georgia,serif;font-size:clamp(21px,2.5vw,29px);color:#294734;font-weight:400}
html[data-gestion2="live"] .g2-goal p{font-size:12px;color:#697e70;margin:9px 0 12px;line-height:1.55}
html[data-gestion2="live"] .g2-goal small{font-size:11px;color:#728575}
html[data-gestion2="live"] .g2-goal>div{flex:1;min-width:0}
html[data-gestion2="live"] .g2-progress{height:7px;border-radius:9px;max-width:550px;background:#dce5d7;overflow:hidden;margin-bottom:9px}
html[data-gestion2="live"] .g2-progress i{display:block;height:100%;background:linear-gradient(90deg,#a8a36f,#357357);border-radius:9px}
html[data-gestion2="live"] .g2-goal>button{background:#1d4c37;color:#fff;border:0;flex:0 0 auto}
html[data-gestion2="live"] .g2-tools{border:1px solid var(--g2-stroke);background:#fff;border-radius:14px;padding:28px 30px;margin-bottom:14px}
html[data-gestion2="live"] .g2-tools-head p{font-size:12px;color:#87978a;margin-top:8px}
html[data-gestion2="live"] .g2-tools-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:23px}
html[data-gestion2="live"] .g2-tool{display:flex;text-align:left;align-items:center;gap:12px;border:1px solid #e8ebe4;background:#fbfcf9;border-radius:11px;padding:17px 15px;min-width:0;transition:border-color .15s,transform .15s}
html[data-gestion2="live"] .g2-tool:hover{border-color:#b9cdbb;transform:translateY(-1px);background:#f5f8f3}
html[data-gestion2="live"] .g2-tool>svg:first-child{flex:0 0 auto;color:#568268}
html[data-gestion2="live"] .g2-tool>span{flex:1;min-width:0}
html[data-gestion2="live"] .g2-tool strong{display:block;color:#263f31;font-size:11px}
html[data-gestion2="live"] .g2-tool small{display:block;color:#8b988e;font-size:9px;margin-top:5px;line-height:1.3}
html[data-gestion2="live"] .g2-tool>svg:last-child{color:#9aad9a;flex:0 0 auto}
html[data-gestion2="live"] .g2-source-note{display:flex;align-items:center;gap:7px;color:#8b9b8c;font-size:10px;line-height:1.55;padding:4px 0}
html[data-gestion2="live"] .g2-source-note svg{flex:0 0 auto}
@media(max-width:1250px){
 html[data-gestion2="live"] .g2-main-grid,html[data-gestion2="live"] .g2-bottom-grid{grid-template-columns:1fr}
 html[data-gestion2="live"] .g2-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 html[data-gestion2="live"] .g2-tools-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
 html[data-gestion2="live"] .g2-dashboard{padding-top:0}
 html[data-gestion2="live"] .g2-hero{border-radius:12px;padding:30px 24px;min-height:0;margin-bottom:14px}
 html[data-gestion2="live"] .g2-hero-art{display:none}
 html[data-gestion2="live"] .g2-kpi-grid{gap:10px;margin-bottom:14px}
 html[data-gestion2="live"] .g2-kpi{padding:15px 13px}
 html[data-gestion2="live"] .g2-kpi-label{font-size:10px}
 html[data-gestion2="live"] .g2-kpi-value{margin:14px 0 10px;font-size:clamp(17px,4vw,22px)}
 html[data-gestion2="live"] .g2-kpi p{font-size:9px}
 html[data-gestion2="live"] .g2-main-grid,html[data-gestion2="live"] .g2-bottom-grid{gap:12px;margin-bottom:12px}
 html[data-gestion2="live"] .g2-panel{padding:20px 16px}
 html[data-gestion2="live"] .g2-goal{padding:24px 19px;flex-direction:column;align-items:stretch;gap:16px}
 html[data-gestion2="live"] .g2-tools{padding:22px 17px}
}
@media(max-width:460px){
 html[data-gestion2="live"] .g2-hero{padding:27px 20px}
 html[data-gestion2="live"] .g2-hero h1{font-size:34px}
 html[data-gestion2="live"] .g2-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 html[data-gestion2="live"] .g2-kpi-label svg{width:14px}
 html[data-gestion2="live"] .g2-kpi-value{font-size:17px}
 html[data-gestion2="live"] .g2-panel-head{flex-wrap:wrap}
 html[data-gestion2="live"] .g2-income-total{align-items:start;flex-direction:column}
 html[data-gestion2="live"] .g2-payment{gap:8px}
 html[data-gestion2="live"] .g2-payment-date{flex-basis:44px;height:44px}
 html[data-gestion2="live"] .g2-payment-amount{font-size:10px}
 html[data-gestion2="live"] .g2-allocation-body{flex-direction:column;align-items:stretch}
 html[data-gestion2="live"] .g2-donut,html[data-gestion2="live"] .g2-private-donut{align-self:center}
 html[data-gestion2="live"] .g2-tools-grid{grid-template-columns:1fr;gap:8px}
 html[data-gestion2="live"] .g2-tool{padding:14px}
}
/* Keep the second layout legible when the existing manager dark theme is enabled. */
html[data-gestion2="live"][data-theme="dark"] .g2-dashboard{--g2-paper:#20271f;--g2-stroke:#3c493e;--g2-ink:#e6eedf;color:#e6eedf}
html[data-gestion2="live"][data-theme="dark"] :is(.g2-kpi,.g2-panel,.g2-tools){background:#20271f;border-color:#3c493e}
html[data-gestion2="live"][data-theme="dark"] :is(.g2-kpi-value,.g2-income-total strong,.g2-panel h2,.g2-tools h2,.g2-payment-company strong,.g2-leader-main strong,.g2-leader-value,.g2-sector-list li strong,.g2-tool strong){color:#f0efe1}
html[data-gestion2="live"][data-theme="dark"] :is(.g2-tool,.g2-payment-date){background:#283429;border-color:#455345}
html[data-gestion2="live"][data-theme="dark"] .g2-goal{background:linear-gradient(115deg,#28382c,#253227);border-color:#53664a}
html[data-gestion2="live"][data-theme="dark"] .g2-goal h2{color:#f0efe1}
html[data-gestion2="live"][data-theme="dark"] .g2-range button[aria-pressed=true]{background:#cbac74;color:#18291f}

/* Resumen de efectivo realmente cobrado y previsiones restantes del mes en curso. */
html[data-gestion2="live"] .g2-month-progress{background:#fff;border:1px solid #e7ebe5;border-radius:14px;padding:23px 27px 18px;margin:0 0 18px;box-shadow:0 6px 24px #193f2608}
html[data-gestion2="live"] .g2-month-progress-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:17px}
html[data-gestion2="live"] .g2-month-progress-head h2{font:400 clamp(19px,2vw,25px)/1.2 Georgia,"Times New Roman",serif;color:#294632;text-transform:none}
html[data-gestion2="live"] .g2-month-progress-head p{color:#839287;font-size:11px;line-height:1.55;margin-top:6px}
html[data-gestion2="live"] .g2-month-progress-head button{background:none;border:0;color:#346f4f;font-weight:750;font-size:11px;display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
html[data-gestion2="live"] .g2-month-progress-head button:hover{text-decoration:underline}
html[data-gestion2="live"] .g2-month-breakdown{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
html[data-gestion2="live"] .g2-month-item{min-width:0;border:1px solid #e6ebe3;background:#fafbf8;border-radius:11px;padding:17px 18px;display:flex;flex-direction:column;gap:9px}
html[data-gestion2="live"] .g2-month-collected{background:#e9f1e9;border-color:#caddca}
html[data-gestion2="live"] .g2-month-item>span{font-size:11px;font-weight:720;color:#58715e}
html[data-gestion2="live"] .g2-month-item>strong{font-size:clamp(21px,2.3vw,30px);font-weight:720;font-variant-numeric:tabular-nums;letter-spacing:-.6px;color:#285b40;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-gestion2="live"] .g2-month-item>small{font-size:10px;color:#839287;line-height:1.45}
html[data-gestion2="live"] .g2-month-caption{font-size:10px;color:#849388;line-height:1.6;margin:12px 0 0}
html[data-gestion2="live"][data-theme="dark"] .g2-month-progress{background:#20271f;border-color:#3c493e}
html[data-gestion2="live"][data-theme="dark"] .g2-month-progress-head h2{color:#f1eee0}
html[data-gestion2="live"][data-theme="dark"] .g2-month-item{background:#293429;border-color:#455345}
html[data-gestion2="live"][data-theme="dark"] .g2-month-collected{background:#304938;border-color:#54715a}
html[data-gestion2="live"][data-theme="dark"] .g2-month-item>strong{color:#e1ebd7}
@media(max-width:700px){
 html[data-gestion2="live"] .g2-month-progress{padding:20px 16px 16px;margin-bottom:12px}
 html[data-gestion2="live"] .g2-month-progress-head{align-items:flex-start;flex-wrap:wrap}
 html[data-gestion2="live"] .g2-month-breakdown{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 html[data-gestion2="live"] .g2-month-collected{grid-column:span 2}
 html[data-gestion2="live"] .g2-month-item{padding:14px 13px}
 html[data-gestion2="live"] .g2-month-item>strong{font-size:22px}
}
@media(max-width:360px){
 html[data-gestion2="live"] .g2-month-item>strong{font-size:18px}
}

/* Confirmación manual de cobros: disponible solo en Gestión 2. */
html[data-gestion2="live"] .g2-payment-receipt{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap}
html[data-gestion2="live"] .g2-payment-action{border:1px solid #b3cbb8;color:#285b43;background:#f1f8f1;border-radius:8px;padding:6px 9px;font-size:10px;font-weight:750;white-space:nowrap}
html[data-gestion2="live"] .g2-payment-action:hover{background:#e1efdf}
html[data-gestion2="live"] .g2-quick-receipt{white-space:nowrap;display:inline-flex;align-items:center;gap:5px}
html[data-gestion2="live"][data-theme="dark"] .g2-payment-action{background:#2a4234;color:#e5f3df;border-color:#4a785d}
@media(max-width:460px){
 html[data-gestion2="live"] .g2-payment-receipt{flex-direction:column;align-items:flex-end;gap:6px}
 html[data-gestion2="live"] .g2-payment-action{padding:5px 7px;font-size:9px}
}
