/* Lume O&M publico: leitura visual alinhada ao dashboard de /portal/usina.
   Escopo completo em .om-monitor: não modifica o painel privado. */
.om-monitor{padding:clamp(38px,5vw,65px) 0;margin-bottom:38px;color:#1b1b1b}
.om-monitor-heading{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,.62fr);gap:26px;align-items:end;margin-bottom:24px}
.site-acesso .om-monitor-heading h2{font-size:clamp(31px,3.3vw,49px);color:#fff;letter-spacing:-.045em;line-height:1.1;font-weight:850;margin:12px 0 0}
.om-monitor-heading>p{color:#d1c8b9;font-size:15px;line-height:1.6;margin:0}
.om-monitor-dashboard{border:1px solid #dbdfe3;border-radius:18px;background:#fff;color:#242424;padding:clamp(12px,2vw,27px);box-shadow:0 10px 35px #0505051f}
.om-monitor-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:14px;border-radius:12px;padding:12px 15px;background:#faf8f1;border:1px solid #e4dccd;margin-bottom:14px}
.om-live-indicator{display:inline-flex;align-items:center;gap:8px;color:#6d6356;font-weight:800;font-size:12px}
.om-live-indicator:before{content:"";width:9px;height:9px;border-radius:100%;background:#9da4aa}
.om-live-indicator[data-state="online"]{color:#138149}.om-live-indicator[data-state="online"]:before{background:#1dab5a}
.om-live-indicator[data-state="stale"]{color:#ad6e0a}.om-live-indicator[data-state="stale"]:before{background:#f3ae25}
.om-last-sync{color:#70675d;font-size:11px;margin-right:auto}
.om-monitor-toolbar button,.om-portal-chart header button,.om-expanded [data-om-dialog-close]{cursor:pointer;background:#fff;border:1px solid #dedede;padding:7px 10px;border-radius:7px;color:#403b31;font-size:11px;font-weight:750;font-family:inherit}
.om-monitor-toolbar button{border-color:#edb939}.om-monitor-dashboard button:hover{border-color:#ffa600;background:#fff7dd}
.om-monitor button:focus-visible{outline:2px solid #eaa300;outline-offset:3px}
.om-monitor-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:16px}
.om-monitor-stats article{background:linear-gradient(130deg,#fff,#fff0c3);border:1px solid #e2dfd9;border-radius:13px;padding:14px 19px;min-width:0}
.om-monitor-stats span{display:block;font-size:10px;letter-spacing:.035em;font-weight:850;color:#846236}
.om-monitor-stats strong{display:inline-block;font-size:clamp(23px,2.5vw,36px);font-weight:850;letter-spacing:-.045em;color:#252525;line-height:1.25;margin-top:8px;font-variant-numeric:tabular-nums}
.om-monitor-stats small{margin-left:5px;font-size:12px;color:#a66300;font-weight:800}
.om-portal-intel{border:1px solid #d9dadb;border-radius:18px;padding:clamp(12px,1.3vw,18px);margin-bottom:17px}
.om-intel-title{display:flex;gap:14px;align-items:start;justify-content:space-between;flex-wrap:wrap;margin-bottom:12px}
.om-intel-title h3{margin:0 0 3px;font-size:16px;font-weight:850;color:#191919}
.om-intel-title p{font-size:12px;color:#626262;margin:0;line-height:1.5}
.om-intel-title>span{background:#f9fafb;border:1px solid #e4e6e9;color:#373737;font-size:10px;font-weight:800;border-radius:22px;padding:5px 9px}
.om-intel-panels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:18px}
.om-intel-panel{border:1px solid #dfdfdf;border-radius:18px;background:#fff;min-width:0;padding:14px 13px 15px;position:relative;overflow:hidden}
.om-intel-panel:before{content:"";height:100%;width:4px;background:#dc7a05;position:absolute;top:0;left:0}.om-intel-panel.is-green:before{background:#1ab75a}.om-intel-panel.is-amber:before{background:#f5a20a}
.om-intel-panel header{display:flex;gap:9px;align-items:flex-start}
.om-intel-icon{width:32px;height:32px;border-radius:11px;background:#fff4e5;display:grid;place-items:center;flex:none;font-size:17px;color:#e27a00}
.om-intel-panel.is-green .om-intel-icon{color:#16a34a;background:#e5f9ec}
.om-intel-panel header h4{color:#1e1e1e;font-size:13px;font-weight:850;margin:1px 0 3px;line-height:1.25}
.om-intel-panel header small{font-size:10px;color:#ac570a;line-height:1.35;display:block}
.om-intel-value{display:flex;gap:2px;align-items:baseline;margin:14px 0 0}
.om-intel-value strong{font-size:clamp(28px,3vw,39px);font-weight:850;letter-spacing:-.055em;line-height:1.1;color:#242424}
.om-intel-value small{font-size:13px;color:#ac570a;font-weight:850}
.om-intel-panel>p{font-size:10px;color:#a85004;margin:4px 0 9px}
.om-meter{width:100%;height:8px;background:#f7edd4;border-radius:8px;overflow:hidden;margin:9px 0 13px}
.om-meter span{display:block;width:0;height:100%;background:linear-gradient(90deg,#c96c00,#f4b432);transition:width .4s}
.om-intel-panel.is-green .om-meter span{background:linear-gradient(90deg,#16a34a,#55c98b)}
.om-stat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.om-stat-grid>div{background:linear-gradient(130deg,#fff,#fff0c7);border:1px solid #e3ddca;border-radius:11px;padding:10px;min-width:0}
.om-stat-grid small{display:block;color:#a75710;font-size:9px;font-weight:850;line-height:1.3}
.om-stat-grid strong{display:block;color:#242424;font-size:clamp(13px,1.25vw,17px);font-weight:850;font-variant-numeric:tabular-nums;letter-spacing:-.03em;overflow-wrap:anywhere;margin:2px 0}
.om-stat-grid em{display:block;font-size:9px;font-style:normal;color:#a75710}
.om-portal-chart-grid,.om-monitor-charts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.om-monitor-charts{margin-top:17px}
.om-portal-chart{border:1px solid #e0e2e6;border-radius:17px;background:#fff;padding:clamp(12px,1.4vw,17px);min-width:0;overflow:hidden}
.om-monitor-chart--wide{grid-column:1/-1}
.om-portal-chart header{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:9px}
.om-portal-chart h4{font-size:14px;font-weight:850;color:#222;margin:0 0 4px;line-height:1.3}
.om-portal-chart header p,.om-inverters header p{font-size:11px;color:#777;margin:0;line-height:1.45}
.om-portal-chart header button{white-space:nowrap;flex:none}
.om-chart-legend{display:flex;align-items:center;flex-wrap:wrap;gap:11px;margin:0 0 5px;font-size:10px;color:#5e5e5e}
.om-chart-legend>span{display:inline-flex;align-items:center;gap:4px}
.om-dot{width:12px;height:12px;border:2px solid;border-radius:50%;display:inline-block;background:#fff}
.om-dot.blue{border-color:#2466ed}.om-dot.green{border-color:#17a44d}.om-dot.orange{border-color:#f19c05}
.om-chart-surface{height:290px;min-width:0;position:relative;display:block;overflow:hidden}
.om-chart-surface>p{font-size:12px;color:#807970;line-height:1.55;text-align:center;margin:0;padding:80px 8px}
.om-chart-surface svg{display:block;width:100%;height:100%;overflow:visible}
.om-chart-surface svg text{fill:#777;font-family:inherit;font-size:11px}
.om-chart-surface .om-chart-grid{stroke:#e5e8ef;stroke-width:1}
.om-chart-surface .om-chart-grid.vertical{stroke:#f4f4f4}
.om-chart-surface .om-chart-axis{font-size:10px;fill:#797f88}
.om-chart-surface .om-chart-line{fill:none;stroke-width:2.9;stroke-linejoin:round;stroke-linecap:round}
.om-chart-surface .om-chart-line.projected{stroke-dasharray:6 6}
.om-chart-surface .om-chart-area{fill:#2769fa0e}
.om-chart-surface .om-point{cursor:crosshair;stroke:#fff;stroke-width:2}
.om-chart-surface .om-chart-bar{fill:#3b72ec;cursor:crosshair}
.om-chart-surface .om-chart-bar.is-today{fill:#f8a11b}
.om-chart-surface .om-crosshair{stroke:#939dad;stroke-width:1;stroke-dasharray:4 4;pointer-events:none}
.om-chart-tooltip{pointer-events:none;position:absolute;z-index:2;max-width:210px;background:#292929;color:#fff;border-radius:7px;padding:8px 10px;font-size:11px;line-height:1.55;box-shadow:0 6px 15px #0003;white-space:pre-line}
.om-monitor-footnote{color:#6f6f6f;font-size:11px;line-height:1.55;margin:16px 0 0}
.om-inverters{padding:17px;border:1px solid #dadfe2;background:#fff;border-radius:16px;margin-top:16px}
.om-inverters header{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:14px}
.om-inverters h3{color:#1a1a1a;font-size:16px;font-weight:850;margin:0 0 4px}
.om-live-tag{background:#e8f8ed;color:#13864d;font-size:10px;font-weight:850;padding:5px 9px;border-radius:20px;white-space:nowrap}
.om-inverter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.om-inverter-grid>p{font-size:12px;color:#7b7b7b;grid-column:1/-1}
.om-inverter-card{border:1px solid #e0e0e0;border-left:4px solid #18a75b;border-radius:14px;padding:13px;background:#fff}
.om-inverter-card.is-stale{border-left-color:#b8b8b8}
.om-inverter-card h4{font-size:13px;font-weight:850;color:#222;margin:0 0 10px}
.om-inverter-card .om-inverter-power{background:#fff0c0;border-radius:10px;padding:12px}
.om-inverter-card .om-inverter-power small{display:block;font-size:9px;font-weight:850;color:#766145}
.om-inverter-card .om-inverter-power strong{display:block;color:#e2a400;font-size:clamp(21px,2vw,30px);font-weight:850}
.om-inverter-card footer{font-size:10px;color:#13884b;font-weight:850;padding-top:10px}
.om-inverter-card.is-stale footer{color:#8c8c8c}
.om-heat-scroll{overflow:auto;width:100%;padding:3px 0 7px}
.om-heat-grid{min-width:615px;display:grid;grid-template-columns:38px repeat(16,minmax(20px,1fr));gap:4px;align-items:stretch}
.om-heat-grid .om-heat-axis{font-size:10px;color:#666;text-align:center;align-self:center}
.om-heat-grid .om-heat-axis.day{text-align:left}
.om-heat-cell{height:24px;border-radius:4px;background:#ebebeb;border:0;cursor:help;position:relative}
.om-heat-footer{font-size:10px;color:#666;margin-top:5px}
.om-expanded{width:min(97vw,1350px);max-width:1350px;max-height:94vh;border:1px solid #ddd;border-radius:18px;background:#fff;padding:25px;color:#161616;box-shadow:0 24px 60px #0006}
.om-expanded::backdrop{background:#000b}
.om-expanded [data-om-dialog-close]{float:right}
.om-expanded h3{font-size:20px;margin:0 0 18px;color:#171717}
.om-expanded .om-chart-surface{height:70vh;min-height:300px}
@media(max-width:1050px){.om-intel-panels{grid-template-columns:1fr 1fr}.om-intel-panels article:last-child{grid-column:1/-1}.om-inverter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.om-monitor-heading{grid-template-columns:1fr;gap:12px}.om-portal-chart-grid,.om-monitor-charts{grid-template-columns:1fr}.om-monitor-chart--wide{grid-column:auto}}
@media(max-width:590px){.om-monitor-stats,.om-intel-panels,.om-inverter-grid{grid-template-columns:1fr}.om-intel-panels article:last-child{grid-column:auto}.om-stat-grid{grid-template-columns:1fr 1fr}.om-monitor-stats article{padding:12px 15px}.om-monitor-stats strong{font-size:25px}.om-monitor-dashboard{padding:10px}.om-portal-chart{padding:11px}.om-chart-surface{height:245px}.om-inverters{padding:12px}.om-expanded{padding:12px}.om-expanded .om-chart-surface{height:64vh}}
@media(prefers-reduced-motion:reduce){.om-meter span{transition:none}}
