/* Editorial plan view: the palette and fonts of ops.css and analytics.css (body text in the dashboard font too). */
.cq-ops.cq-pe{--o-second:#6cc4ff;--o-body:var(--o-font);
  overflow:visible;font:500 15px/1.4 var(--o-body);color:var(--o-text)}
.cq-pe .cq-ops-summary .is-info{background:var(--o-raised);color:var(--o-paper)}
.cq-pe-notice{margin:10px 12px 0!important;padding:8px 12px!important;border-radius:3px;font-size:15px}
.cq-pe-notice.is-ok{background:var(--o-accent);color:var(--o-accent-ink)}
.cq-pe-notice.is-bad{background:var(--o-bad);color:var(--o-bad-ink)}
.cq-pe-body{display:flex;flex-direction:column;gap:12px;padding:12px 0 0}

/* One table for every day: same columns, header once, a separator row per day. */
/* Automatic layout: the free width is shared by the columns, none of it left after the actions (Luca 24/10). */
.cq-pe .cq-pe-plan{width:100%;margin:0;border:0;border-collapse:collapse;table-layout:auto;background:transparent;font-variant-numeric:tabular-nums}
.cq-pe .cq-pe-plan th,.cq-pe .cq-pe-plan td{margin:0;padding:8px;border:0;border-bottom:1px solid var(--o-line);background:transparent;color:var(--o-text);
  text-align:left;vertical-align:middle;font:500 15px/1.35 var(--o-body);letter-spacing:0;text-transform:none;word-wrap:break-word}
/* Under WordPress's admin bar when it shows (Luca reads the page logged in), at the top otherwise. */
.cq-pe .cq-pe-plan thead th{position:sticky;top:var(--wp-admin--admin-bar--height,0px);z-index:2;padding:9px 8px;background:var(--o-raised);color:var(--o-text);font:600 15px/1 var(--o-font);text-transform:uppercase;letter-spacing:.02em;white-space:nowrap}
.cq-pe .cq-pe-plan .cq-pe-kickoff{padding-left:12px}
.cq-pe .cq-pe-plan .cq-pe-out{white-space:nowrap}
.cq-pe-date,.cq-pe-hour{display:block}
.cq-pe-hour{color:var(--o-muted)}
.cq-pe .cq-pe-plan .cq-pe-state{width:210px}
.cq-pe .cq-pe-plan .cq-pe-links{white-space:nowrap}
/* Links in the font of the match names and buttons, not the body font (Luca 24/10). */
.cq-pe .cq-pe-plan td.cq-pe-links a{font:600 15px/1.2 var(--o-font);text-underline-offset:2px}
.cq-pe .cq-pe-plan .cq-pe-cell-actions{width:1%;padding-right:12px;white-space:nowrap}
.cq-pe .cq-pe-plan .cq-pe-dayrow th{padding:16px 12px 8px;border-bottom:2px solid var(--o-accent);background:var(--o-surface);color:var(--o-paper)}
.cq-pe-dayrow th{white-space:nowrap}
.cq-pe-dayrow .cq-pe-form{float:right}
.cq-pe-dayname{color:var(--o-accent);font:700 22px/28px var(--o-font)}
.cq-pe-daycount{margin-left:10px;color:var(--o-muted);font:500 14px/28px var(--o-font)}
.cq-pe .cq-pe-plan tbody tr.cq-pe-row:hover>*{background:var(--o-bar)}
.cq-pe .cq-pe-plan td.cq-pe-kickoff{color:var(--o-paper);font:600 19px/1.1 var(--o-font);white-space:nowrap}
.cq-pe .cq-pe-plan th.cq-pe-match{color:var(--o-paper);font:600 17px/1.15 var(--o-font)}
.cq-pe-sub{display:block;margin-top:3px;color:var(--o-muted);font:500 14px/1.3 var(--o-body)}
.cq-pe-comp{color:var(--o-text)}
.cq-pe-reason{color:var(--o-second)}
.cq-pe-low{color:var(--o-warn)}
.cq-pe-alert{display:block;margin-top:4px;padding:3px 6px;border-left:3px solid var(--o-bad);background:var(--o-raised);color:var(--o-paper);font-size:14px}
.cq-pe-row.is-scartata>*,.cq-pe-row.is-esterna>*{opacity:.65}
.cq-pe-row.is-scartata .cq-pe-match{text-decoration:line-through}
.cq-pe a{color:var(--o-accent)!important;text-decoration:underline}
.cq-pe-status{display:inline-block;padding:2px 8px;border-radius:3px;background:var(--o-raised);color:var(--o-paper);font:600 14px/1.2 var(--o-font);white-space:nowrap}
.cq-pe-status.is-proposta{background:var(--o-warn);color:var(--o-warn-ink)}
.cq-pe-status.is-da_rivedere,.cq-pe-status.is-sospesa{background:var(--o-bad);color:var(--o-bad-ink)}
.cq-pe-status.is-bozza,.cq-pe-status.is-programmata{background:var(--o-accent);color:var(--o-accent-ink)}
/* Out on the site: the only light chip of the page, so a published row reads at a glance (Luca 22/10). */
.cq-pe-status.is-pubblicata,.cq-pe .cq-ops-summary .is-done{background:var(--o-paper);color:var(--o-surface)}
/* The whole published row too: a light wash and a white edge, the colours of its chip. */
.cq-pe .cq-pe-plan tbody tr.cq-pe-row.is-pubblicata{background:rgba(207,216,225,.09)}
.cq-pe .cq-pe-plan tbody tr.cq-pe-row.is-pubblicata>:first-child{box-shadow:inset 3px 0 0 var(--o-paper)}
.cq-pe-status.is-approvata{box-shadow:inset 0 0 0 1px var(--o-accent);color:var(--o-accent)}
.cq-pe-status.is-in_scrittura{background:var(--o-second);color:#04131f}
.cq-pe-next{color:var(--o-text)}

/* A light per planned pass (72h publication, 24h update, 4h news check) and the cost of the piece (Luca 24/10). */
.cq-pe .cq-pe-plan .cq-pe-lights{white-space:nowrap}
.cq-pe .cq-pe-plan thead .cq-pe-lights span{display:inline-block;width:28px;text-align:center;text-transform:none}
.cq-pe .cq-pe-plan .cq-pe-cost{white-space:nowrap}
.cq-pe .cq-pe-plan td.cq-pe-cost{color:var(--o-paper);font-weight:600;cursor:help}
.cq-pe-light{display:inline-block;width:28px;color:var(--o-muted);text-align:center;vertical-align:middle;cursor:help}
.cq-pe-light::before{content:'';display:inline-block;box-sizing:border-box;width:12px;height:12px;border-radius:50%;vertical-align:middle}
.cq-pe-light.is-none::before{display:none}
.cq-pe-light.is-todo::before{border:2px solid var(--o-muted)}
.cq-pe-light.is-wait::before{background:var(--o-warn)}
.cq-pe-light.is-ok::before{background:var(--o-accent)}
.cq-pe-light.is-ok.is-quiet::before{border:2px solid var(--o-accent);background:transparent}
.cq-pe-light.is-bad::before{background:var(--o-bad)}

/* Google clicks of a published piece, impressions under them (Luca 24/10). */
.cq-pe .cq-pe-plan .cq-pe-google{white-space:nowrap;cursor:help}
.cq-pe .cq-pe-plan thead .cq-pe-google{cursor:help}
.cq-pe .cq-pe-plan td.cq-pe-google b{color:var(--o-paper);font:600 17px/1 var(--o-font)}
/* Clicks towards the operators; their split opens at once in a box, on hover or tap (Luca 24/10). */
.cq-pe .cq-pe-plan .cq-pe-outbound{white-space:nowrap}
.cq-pe-tip{position:relative;display:inline-block;padding:2px 4px;border-bottom:1px dashed var(--o-accent);cursor:pointer;outline:0}
.cq-pe-tipbox{position:absolute;top:calc(100% + 6px);right:0;z-index:6;display:none;flex-direction:column;gap:3px;min-width:150px;padding:8px 10px;
  border:1px solid var(--o-accent);border-radius:4px;background:var(--o-bar);box-shadow:0 8px 24px rgba(0,0,0,.5);
  color:var(--o-paper);font:500 15px/1.3 var(--o-body);text-align:left;white-space:nowrap}
.cq-pe-tip:hover .cq-pe-tipbox,.cq-pe-tip:focus .cq-pe-tipbox{display:flex}
.cq-pe-tipbox>span{display:flex;justify-content:space-between;gap:16px}
.cq-pe-tipbox i{font-style:normal}
.cq-pe .cq-pe-tipbox b{color:var(--o-accent);font:600 15px/1.2 var(--o-font)}
.cq-pe-tipbox .cq-pe-tiphead{margin-bottom:2px;color:var(--o-muted);font:600 12px/1.2 var(--o-font);text-transform:uppercase;letter-spacing:.03em}
.cq-pe .cq-pe-plan td.cq-pe-outbound b{color:var(--o-accent);font:600 17px/1 var(--o-font)}

/* What worked on Google: a summary by competition and author, then every article. */
.cq-pe-results{display:flex;flex-direction:column;gap:8px;margin:8px 12px 0}
.cq-pe .cq-pe-h{margin:0;padding:0;color:var(--o-accent);font:700 22px/1.1 var(--o-font);letter-spacing:0;text-transform:none}
.cq-pe-note{margin:0!important;color:var(--o-muted);font-size:13px}
.cq-pe .cq-pe-table.cq-pe-sum td{text-align:right;white-space:nowrap}
.cq-pe .cq-pe-sum thead th:not(:first-child){text-align:right}
.cq-pe .cq-pe-table.cq-pe-sum tbody th{width:auto;white-space:normal;color:var(--o-paper);font:600 15px/1.2 var(--o-font)}
.cq-pe .cq-pe-sum td b{color:var(--o-paper);font:600 16px/1 var(--o-font)}
.cq-pe .cq-pe-sum tr.is-other>*{opacity:.7}
/* Readable labels, as in the plan (Luca 24/10): the first one too, which ops.css keeps small. */
.cq-pe .cq-pe-sum thead th,.cq-pe .cq-pe-sum thead th:first-child{color:var(--o-text);font:600 15px/1 var(--o-font);text-transform:uppercase;letter-spacing:.02em}
.cq-pe .cq-pe-sum thead th{position:sticky;top:var(--wp-admin--admin-bar--height,0px);z-index:2;background:var(--o-raised)}
/* Wide enough for the tables: no scroll box, so their headers stay in view while the page scrolls. */
@media(min-width:1081px){.cq-pe-results .cq-ops-scroll{overflow:visible}}
.cq-pe .cq-pe-sum tbody th a{color:var(--o-paper)!important}
.cq-pe-live{margin-left:4px;color:var(--o-second);font:500 14px/1.3 var(--o-body);cursor:help}
.cq-pe-recap .cq-pe-sum{max-width:560px}
.cq-pe .cq-pe-recap .cq-ops-table{min-width:0}
.cq-pe .cq-pe-recap tfoot th,.cq-pe .cq-pe-recap tfoot td{border-top:1px solid var(--o-line);color:var(--o-paper);font:600 15px/1.2 var(--o-font);text-align:right}
.cq-pe .cq-pe-recap tfoot th{text-align:left;padding-left:12px}
.cq-pe-each>summary{padding:6px 0;color:var(--o-muted);font:600 15px/1.2 var(--o-font);cursor:pointer}

/* Actions on one line against the right edge; «Altro» opens a menu over the rows below. */
.cq-pe-actions{display:flex;flex-wrap:nowrap;justify-content:flex-end;align-items:center;gap:4px}
.cq-pe-form{display:flex;flex-wrap:wrap;align-items:flex-end;gap:6px;margin:0}
.cq-pe button,.cq-pe-fold>summary{height:28px;margin:0;padding:3px 10px;border:1px solid var(--o-line);border-radius:3px;background:var(--o-raised);
  color:var(--o-paper);font:600 14px/20px var(--o-font);letter-spacing:0;text-transform:uppercase;cursor:pointer;box-shadow:none;white-space:nowrap}
.cq-pe .is-main button{border-color:var(--o-accent);background:var(--o-accent);color:var(--o-accent-ink)}
.cq-pe button:hover,.cq-pe-fold>summary:hover,.cq-pe-fold[open]>summary{border-color:var(--o-accent)}
.cq-pe-fold{position:relative}
.cq-pe-fold>summary{display:block;list-style:none}
.cq-pe-fold>summary::-webkit-details-marker{display:none}
.cq-pe-menu{position:absolute;top:32px;right:0;z-index:5;display:flex;flex-direction:column;gap:10px;width:280px;padding:10px;
  border:1px solid var(--o-accent);border-radius:4px;background:var(--o-bar);box-shadow:0 8px 24px rgba(0,0,0,.5)}
.cq-pe-menu .cq-pe-form{flex-direction:column;align-items:stretch}
.cq-pe label{display:flex;flex-direction:column;gap:3px;margin:0;color:var(--o-muted);font:600 12px/1 var(--o-font);text-transform:uppercase}
.cq-pe textarea,.cq-pe input[type=datetime-local],.cq-pe select{width:100%;margin:0;padding:6px 8px;border:1px solid var(--o-line);border-radius:3px;
  background:var(--o-raised);color:var(--o-paper);font:500 15px/1.3 var(--o-body);color-scheme:dark;text-transform:none}
.cq-pe a:focus-visible,.cq-pe button:focus-visible,.cq-pe summary:focus-visible,.cq-pe textarea:focus-visible,.cq-pe input:focus-visible,.cq-pe select:focus-visible{outline:2px solid var(--o-accent);outline-offset:2px}
.cq-pe .screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

.cq-pe-toggle{margin:0 12px!important;font-size:14px}
.cq-pe-extra{display:flex;flex-direction:column;margin:0 12px;border-top:1px solid var(--o-line)}
.cq-pe-extra>details{border-bottom:1px solid var(--o-line)}
.cq-pe-extra>details>summary{padding:8px 0;color:var(--o-muted);font:600 15px/1.2 var(--o-font);cursor:pointer}
.cq-pe-add .cq-pe-form{padding-bottom:10px}
.cq-pe-add label{flex:1 1 260px}
.cq-pe-table{min-width:640px!important}
.cq-pe .cq-pe-table td,.cq-pe .cq-pe-table tbody th{text-align:left;font:500 15px/1.3 var(--o-body)}
.cq-pe-clubs{padding:8px 0;font-size:15px}
.cq-pe-clubs p{margin:0 0 4px!important}
.cq-pe-clubs b{color:var(--o-paper)}

/* Below 1080px each match is a card: with the lights and the cost the match column needs the room. */
@media(max-width:1080px){
  .cq-pe .cq-pe-plan thead{display:none}
  .cq-pe .cq-pe-plan,.cq-pe .cq-pe-plan tbody{display:block;width:100%}
  .cq-pe .cq-pe-plan tr{display:grid;grid-template-columns:54px minmax(0,1fr);column-gap:6px;padding:10px 12px;border-bottom:1px solid var(--o-line)}
  .cq-pe .cq-pe-plan tr.cq-pe-dayrow{display:block;padding:0;border:0}
  .cq-pe .cq-pe-plan tbody tr.cq-pe-row.is-pubblicata{box-shadow:inset 3px 0 0 var(--o-paper)}
  .cq-pe .cq-pe-plan tbody tr.cq-pe-row.is-pubblicata>:first-child{box-shadow:none}
  .cq-pe .cq-pe-plan th,.cq-pe .cq-pe-plan td{display:block;width:auto!important;padding:2px 0;border:0}
  .cq-pe .cq-pe-plan .cq-pe-dayrow th{padding:16px 12px 8px;white-space:normal}
  .cq-pe .cq-pe-plan td.cq-pe-kickoff{grid-row:1/span 3;padding-left:0}
  .cq-pe .cq-pe-plan td:not(.cq-pe-kickoff):not(.cq-pe-cell-actions){grid-column:2}
  .cq-pe .cq-pe-plan .cq-pe-out::before{content:'Uscita: ';color:var(--o-muted)}
  .cq-pe-date,.cq-pe-hour{display:inline}
  .cq-pe-hour{color:inherit}
  .cq-pe .cq-pe-plan .cq-pe-cost::before{content:'Costo: ';color:var(--o-muted);font-weight:500}
  .cq-pe .cq-pe-plan .cq-pe-google::before{content:'Google: ';color:var(--o-muted)}
  .cq-pe .cq-pe-plan .cq-pe-outbound::before{content:'Operatori: ';color:var(--o-muted)}
  .cq-pe .cq-pe-plan td.cq-pe-outbound b{font:600 15px/1.35 var(--o-body)}
  .cq-pe .cq-pe-plan td.cq-pe-outbound b::after{content:' click'}
  .cq-pe .cq-pe-plan td.cq-pe-google b{font:600 15px/1.35 var(--o-body)}
  .cq-pe .cq-pe-plan td.cq-pe-google b::after{content:' click · '}
  .cq-pe .cq-pe-plan td.cq-pe-google .cq-pe-sub{display:inline;margin:0}
  .cq-pe-light{width:auto;margin-right:14px}
  .cq-pe-light::after{content:attr(data-pass);margin-left:5px;color:var(--o-muted);font-size:13px}
  .cq-pe .cq-pe-plan td.is-empty{display:none}
  .cq-pe .cq-pe-plan .cq-pe-cell-actions{grid-column:1/-1;padding:8px 0 0}
  /* The menu opens under the whole actions row, inside the card. */
  .cq-pe-actions{position:relative;justify-content:flex-start}
  .cq-pe-fold{position:static}
  .cq-pe-menu{right:auto;left:0;width:min(320px,100%)}
}
@media(max-width:480px){.cq-pe-dayrow .cq-pe-form{float:none;margin-top:6px}}

/* «Maggiorate» view (0.7.0): the form in a grid, the list as the plan's table. */
.cq-mg-add{margin:0 12px;padding:10px 12px;border:1px solid var(--o-line);border-radius:3px;background:var(--o-surface)}
.cq-mg-add>summary{cursor:pointer;color:var(--o-paper);font:600 17px/1.3 var(--o-font)}
.cq-mg-form{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:10px 14px;margin-top:12px}
.cq-mg-form label{display:flex;flex-direction:column;gap:4px;color:var(--o-muted);font:600 13px/1.3 var(--o-body)}
.cq-mg-form label.is-wide{grid-column:span 2}
.cq-mg-form input,.cq-mg-form select{padding:7px 8px;border:1px solid var(--o-line);border-radius:3px;background:var(--o-raised);color:var(--o-paper);font:500 15px/1.3 var(--o-body)}
.cq-mg-form small{color:var(--o-muted);font-size:12px;font-weight:500}
.cq-mg-hint{grid-column:1/-1;margin:0!important;color:var(--o-muted);font-size:14px}
.cq-mg-form button{grid-column:1/-1;justify-self:start;padding:9px 16px;border:0;border-radius:3px;background:var(--o-accent);color:var(--o-accent-ink);font:600 15px/1 var(--o-font);cursor:pointer}
.cq-pe .cq-mg-table .cq-mg-price{white-space:nowrap;font:600 17px/1 var(--o-font)}
.cq-mg-price s{color:var(--o-muted);font-weight:500}
.cq-mg-price b{font-weight:inherit}
.cq-mg-chip{display:inline-block;padding:3px 7px;border-radius:3px;background:var(--o-raised);color:var(--o-paper);font:600 13px/1.2 var(--o-body)}
.cq-mg-chip.is-done{background:var(--o-accent);color:var(--o-accent-ink)}
.cq-mg-chip.is-bad{background:var(--o-bad);color:var(--o-bad-ink)}
.cq-mg-chip.is-warn{background:var(--o-warn);color:var(--o-warn-ink)}
.cq-mg-row.is-ritirata>*{opacity:.6}
.cq-mg-fix{margin-right:8px;font:600 14px/1 var(--o-font)}
.cq-mg-row .cq-pe-form{display:inline-block}
@media (max-width:640px){.cq-mg-form label.is-wide{grid-column:auto}}

/* Consuntivo (Luca 31/10): Piano | Consuntivo as GA4 | GSC in Overview, month chips, KPIs and the billed articles. */
.cq-pe .cq-pe-sections{width:max-content;max-width:calc(100% - 24px);margin:12px 12px 0}
.cq-pe .cq-ops-meta a.cq-pe-billlink{color:var(--o-accent)!important;text-decoration:underline!important;text-underline-offset:2px}
.cq-pe .cq-an-kpi h4{margin:0 0 4px;color:var(--o-muted);font-size:13px;font-weight:600!important;text-transform:uppercase;letter-spacing:.03em}
.cq-pe .cq-an-value{margin:0;color:var(--o-paper);font:700 30px/1.05 var(--o-font);font-variant-numeric:tabular-nums}
.cq-pe .cq-an-change{margin:4px 0 0;font-size:13px}
.cq-pe .cq-pe-billtable td.cq-pe-billday,.cq-pe .cq-pe-billtable td.cq-pe-billkind{text-align:left}
.cq-pe .cq-pe-billtable thead th:nth-child(2),.cq-pe .cq-pe-billtable thead th:nth-child(3){text-align:left}
.cq-pe .cq-pe-billtable tbody th{min-width:260px}
.cq-pe .cq-pe-billtable tfoot th,.cq-pe .cq-pe-billtable tfoot td{border-top:1px solid var(--o-line);color:var(--o-paper);font:600 15px/1.2 var(--o-font);text-align:right}
.cq-pe .cq-pe-billtable tfoot th{text-align:left;padding-left:12px}
.cq-pe-billcsv{margin:0!important}
.cq-pe-billcsv a{margin-right:6px;color:var(--o-accent)!important;font:600 16px/1.2 var(--o-font)}
/* Phones: match day, article and cost in view; the kind shows in the title, updates and totals on wider screens. */
@media(max-width:600px){.cq-pe .cq-an-value{font-size:26px}
  .cq-pe .cq-ops-table.cq-pe-billtable{min-width:0!important}
  .cq-pe .cq-pe-billtable thead tr>:nth-child(n+3):not(:last-child),.cq-pe .cq-pe-billtable tbody tr>:nth-child(n+3):not(:last-child){display:none}
  .cq-pe .cq-pe-billtable tbody th{min-width:0}
  .cq-pe .cq-pe-billtable td.cq-pe-billday .cq-pe-hour{display:block}
  /* The totals are in the cards above the table. */
  .cq-pe .cq-pe-billtable tfoot{display:none}}

/* Schedine (058): the legs of each slip under its name, and the match picker in «Altro». */
.cq-sc-legs{margin:6px 0 0;padding-left:18px;font:500 14px/1.45 var(--o-body);color:var(--o-paper)}
.cq-sc-legs a{color:inherit}
.cq-sc-time{color:var(--o-muted);font-variant-numeric:tabular-nums}
.cq-sc-wait{padding:1px 5px;border-radius:3px;background:var(--o-warn);color:var(--o-warn-ink);font-size:12px}
.cq-sc-picks{margin:0 0 8px;padding:0;border:0}
.cq-sc-picks legend{margin-bottom:4px;font-weight:600}
.cq-sc-pick{display:block;margin:2px 0;font:500 14px/1.35 var(--o-body)}
