
.enertik-hidden{display:none!important}
:root{--st-primary:#16a34a;--st-secondary:#0a8f5b;--st-border:#e5e7eb;--st-muted:#6b7280;--st-card:#fff;--st-bg:#f9fafb;--st-text:#111827}
.enertik-st-wrap{max-width:760px;margin:24px auto;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Arial;color:var(--st-text)}
.st-card{background:var(--st-card);border:1px solid var(--st-border);border-radius:16px;padding:16px 18px;margin-bottom:16px;box-shadow:0 6px 18px rgba(0,0,0,.04)}
.st-header{background:linear-gradient(0deg, var(--st-primary) 0%, #1fb36a 100%); color:#fff; border:none}
.st-header .st-title{color:#fff;font-size:26px;font-weight:800;margin:4px 0}
.st-header .st-sub{margin:0;color:#e6ffef}
.st-mode{margin-top:10px;display:flex;gap:10px}
.st-mode-btn{background:#fff;color:#064e3b;border:1px solid rgba(255,255,255,.4);padding:8px 12px;border-radius:10px;cursor:pointer}
.st-mode-btn.active{background:#064e3b;color:#fff}
.st-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.st-col-2{grid-column:span 2}
@media(max-width:900px){.st-row{grid-template-columns:1fr}.st-col-2{grid-column:span 1}}
.st-col label{display:block;font-weight:600;margin-bottom:6px}
.st-col input,.st-col select{width:100%;padding:10px 12px;border-radius:10px;border:1px solid var(--st-border);background:#fff}
.st-col small{display:block;color:var(--st-muted);margin-top:4px}
.st-sep{border:none;border-top:1px dashed var(--st-border);margin:10px 0}
.st-actions{display:flex;gap:12px;margin-top:4px;flex-wrap:wrap}
.st-btn{padding:10px 14px;border-radius:10px;border:1px solid var(--st-border);background:#fff;cursor:pointer;box-shadow:0 1px 0 rgba(0,0,0,.04)}
.st-btn-primary{background:var(--st-primary);border-color:var(--st-primary);color:#fff;font-weight:700;box-shadow:0 4px 16px rgba(22,163,74,.22)}
.st-disclaimer{margin-top:14px;padding:10px 12px;border-radius:10px;border:1px dashed var(--st-border);background:var(--st-bg);color:#374151;font-size:13px}
.st-badge{display:inline-block;padding:4px 8px;border-radius:999px;font-size:12px;border:1px solid var(--st-border)}
.st-badge-ok{background:#ecfdf5;border-color:#a7f3d0;color:#065f46}
.st-badge-warn{background:#fff7ed;border-color:#fed7aa;color:#9a3412}
.st-badge-muted{background:#f3f4f6;color:#374151}
.st-results .st-results-header{display:flex;align-items:baseline;justify-content:space-between}
.st-results-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:8px}
@media(max-width:900px){.st-results-grid{grid-template-columns:1fr}}
.st-result-item{border:1px solid var(--st-border);border-radius:12px;padding:12px;background:#fff}
.st-result-title{margin:0 0 4px 0;font-weight:700;color:#111}
.st-result-value{font-weight:800;font-size:18px}
.st-result-note{color:var(--st-muted);font-size:13px;margin-top:4px}
.st-monthly{margin-top:16px}
.st-monthly-table-wrap{overflow:auto}
.st-table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid var(--st-border);border-radius:12px;overflow:hidden}
.st-table th,.st-table td{padding:10px;border-bottom:1px solid var(--st-border);text-align:right}
.st-table th:first-child,.st-table td:first-child{text-align:left}
.st-table thead th{background:#f3f4f6}
.st-table tfoot th{background:#f9fafb;font-weight:800}
/* Basic/Advanced visibility */
.enertik-st-wrap[data-mode="basic"] .st-adv-only{display:none!important}
.enertik-st-wrap[data-mode="basic"] #st_monthly_card{display:none!important}


/* Center header and mode buttons */
.st-header{ text-align:center }
.st-mode{ justify-content:center }
.st-actions-calc{ justify-content:center }

/* v1.2.2 tweaks */
.st-header{text-align:center}
.st-mode{justify-content:center}
.st-mode-btn{background:#fff;color:#064e3b;border:1px solid rgba(255,255,255,.4)}
.st-mode-btn.active{background:#064e3b;color:#fff}
.st-actions-calc{justify-content:center;margin-top:16px}
.st-actions-calc .st-btn-primary{width:100%}

/* v1.2.3 mode styles */
.st-header{text-align:center}
.st-mode{justify-content:center;gap:10px}
.st-mode-btn{background:#fff;color:#064e3b;border:1px solid rgba(0,0,0,.1);padding:8px 14px;border-radius:10px;cursor:pointer}
.st-mode-btn.active{background:#064e3b;color:#fff;border-color:#064e3b}

/* Mode toggle */
.st-mode-toggle{display:flex; gap:.5rem; justify-content:center; margin:.5rem 0 1rem}
.st-mode-btn{padding:.5rem .9rem; border-radius:8px; border:1px solid var(--st-primary,#16a34a); background:#f8fafc; color:#075985; font-weight:600; cursor:pointer}
.st-mode-btn.active{background:var(--st-primary,#16a34a); color:#fff; border-color:var(--st-primary,#16a34a)}
/* Advanced blocks hidden in basic by default */
body.enertik-st-basic .st-adv-block{display:none}
body.enertik-st-adv .st-adv-block{display:block}
/* Calcular full width */
#st-calc-btn{width:100%; margin-top:12px}
/* tighter container */
#enertik-st-wrap .st-container{max-width:760px}
/* Manual HSP card visibility */
body.enertik-st-adv #st-hsp-manual-card{display:block}
body.enertik-st-basic #st-hsp-manual-card{display:none}
