/* AGIMEG's look for its own address and accounts (Luca 25/11/2026: «deve essere skinnata agimeg e non spro», «non serve
   full width»). Only on pages whose <html>/<body> carry .cq-ops-agimeg (ops/page.py document, skin «agimeg»): the
   agimeg.it palette (navy #152D49, brand red #C1282A, light greys), one font for everything: the dashboard's Barlow
   Condensed (Luca 25/11: «tutto lo stesso font»; Inter was the wrong one), the same 1440 px column as ScommessePRO's
   Ops («stessa larghezza»). The components stay the dashboard's own; only the variables and a few edges change.
   Navy is the accent (active tab, chips, relevance); red is the brand mark and the action buttons, never a state:
   errors use a darker red with a word. No coloured side bars and no shadows (AGIMEG UI rules). */

html.cq-ops-agimeg,body.cq-ops-agimeg{background:#F4F5F6;color:#152D49}
body.cq-ops-agimeg .cq-ops-barra{color:#6B7884}
body.cq-ops-agimeg .cq-ops-barra-sito{color:#152D49}
body.cq-ops-agimeg .cq-ops-barra-utente button{border-color:#D8DFE6;background:#FFFFFF;color:#152D49}
body.cq-ops-agimeg .cq-ops-barra-utente button:hover{background:#EDF1F5}

body.cq-ops-agimeg .cq-an-shell,body.cq-ops-agimeg .cq-ops{
  --o-surface:#FFFFFF;--o-bar:#F7F9FB;--o-raised:#EDF1F5;--o-line:#E1E6EC;
  --o-paper:#152D49;--o-text:#33475E;--o-muted:#6B7884;--o-accent:#152D49;--o-accent-ink:#FFFFFF;
  --o-second:#2F6DB5;--o-warn:#F3C24F;--o-warn-ink:#2A1D00;--o-bad:#A61E22;--o-bad-ink:#FFFFFF
}
body.cq-ops-agimeg .cq-ops-head{border-bottom:1px solid var(--o-line)}
body.cq-ops-agimeg .cq-ops .cq-ops-title span{color:#C1282A}
/* Tabs: white tiles, the active one navy with the red cut along its foot. */
body.cq-ops-agimeg .cq-an-tabs a{background:#FFFFFF}
body.cq-ops-agimeg .cq-an-tabs a[aria-current]{background:#152D49;border-color:#152D49;color:#FFFFFF!important;box-shadow:inset 0 -3px 0 #C1282A}
/* Action buttons: the brand red, like the CTA wedge of the Tessere box. */
body.cq-ops-agimeg .cq-pe .is-main button{border-color:#C1282A;background:#C1282A;color:#FFFFFF}
body.cq-ops-agimeg .cq-pe .is-main button:hover{border-color:#A61E22;background:#A61E22}
/* States: a published row is green and calm, a ready one navy; no white edge along the row. */
body.cq-ops-agimeg .cq-pe-status.is-pubblicata,body.cq-ops-agimeg .cq-pe .cq-ops-summary .is-done{background:#E3F1E7;color:#1D6B3A}
body.cq-ops-agimeg .cq-pe .cq-pe-plan tbody tr.cq-pe-row.is-pubblicata{background:#FBFCFD}
body.cq-ops-agimeg .cq-pe .cq-pe-plan tbody tr.cq-pe-row.is-pubblicata>:first-child{box-shadow:none}
body.cq-ops-agimeg .cq-pe-status.is-in_scrittura{color:#FFFFFF}
body.cq-ops-agimeg .cq-pe-alert{border-left:0;background:#FBEDED;color:#A61E22}
body.cq-ops-agimeg .cq-sg-ftable tr.is-bad th,body.cq-ops-agimeg .cq-sg-ftable tr.is-bad td{color:#A61E22}
body.cq-ops-agimeg .cq-sg-fonti summary strong{color:#A61E22}
/* The preview's article page already is white: a hairline sets it on the light page. */
body.cq-ops-agimeg .cq-com-article{border-top:1px solid var(--o-line)}

/* Login page (pagina.css draws it dark). */
body.cq-ops-agimeg .cq-ops-accesso-modulo label{color:#6B7884}
body.cq-ops-agimeg .cq-ops-accesso-modulo input{border-color:#D8DFE6;background:#FFFFFF;color:#152D49}
body.cq-ops-agimeg .cq-ops-accesso-modulo button{background:#C1282A;color:#FFFFFF}
body.cq-ops-agimeg .cq-ops-accesso-errore{background:#FBEDED;color:#A61E22}
/* Draft editions: the warning yellow is unreadable on white; a dark amber says «bozza» instead. */
body.cq-ops-agimeg .cq-com .cq-com-ed.is-draft .cq-pe-sub{color:#8A5A00}
