/* Pannello Installazioni — scheda della installazione (drawer) y compositor de email.
   Prefijos sc- (scheda) y cm- (compositor): no chocan con app.css. Solo variables de tokens.css.
   Mismo diseño que la scheda del Pannello Allacci (pratica.css). Tema claro. */

/* ------------------------------------------------------------------ raíz del drawer */
.ui-drawer.sc-drawer { width: min(1060px, 98vw); }
/* avisos de promemoria (E1) con la scheda abierta: no tapan su cabecera (contactos, "Impianto").
   Si cabe, a la izquierda del drawer; si no, debajo de la cabecera. */
@media (min-width: 900px) {
  body:has(> .ui-drawer-wrap .sc-drawer) .nt-stack { top: 150px; }
}
@media (min-width: 1440px) {
  body:not(.ch-aperta):has(> .ui-drawer-wrap .sc-drawer) .nt-stack {
    top: calc(var(--tb-h) + 10px); right: calc(min(1060px, 98vw) + 10px);
    width: min(360px, calc(100vw - min(1060px, 98vw) - 20px));
  }
}
.sc-root { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--bg); outline: none; container-type: inline-size; container-name: scheda; }
.sc-root.sc-dragging::after {
  content: ""; position: absolute; inset: 8px; z-index: 30; pointer-events: none;
  border: 2px dashed var(--brand-500); border-radius: var(--r-lg); background: rgba(58, 170, 53, .04);
}
.sc-faint { color: var(--faint); }
.sc-mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: .01em; }
.sc-pre { white-space: pre-wrap; }
.sc-mt { margin-top: 12px; }
.sc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sc-a { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--brand); cursor: pointer; }
.sc-a .i { width: 13px; height: 13px; }
.sc-a:hover { text-decoration: underline; }
.sc-lnk { color: inherit; text-decoration: none; }
.sc-lnk:hover { color: var(--brand-600); text-decoration: underline; text-underline-offset: 2px; }
.sc-warn-t { color: var(--warn); font-weight: 600; }
.sc-rosso-t { color: var(--danger); font-weight: 600; }
.sc-ok-ic { width: 14px !important; height: 14px !important; margin-right: 4px; color: var(--ok); stroke-width: 2.6; vertical-align: -2px; }
.sc-empty-t { font-weight: 650; color: var(--ink); margin-bottom: 4px; }
.sc-arrow { color: var(--faint); font-weight: 600; }
.sc-dsep { margin: 0 7px; color: var(--faint); }
.sc-spin { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: sc-rot .7s linear infinite; opacity: .85; flex: none; vertical-align: -2px; }
.sc-spin.sc-w { color: #fff; }
@keyframes sc-rot { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ cabecera (con el color de la squadra) */
.sc-head {
  --gc: var(--brand);
  position: relative; flex: none; padding: 16px 28px 15px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--gc) 9%, white) 0, var(--surface) 82px);
}
.sc-head::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--gc); }
.sc-head-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; row-gap: 8px; min-height: 30px; }
.sc-crumbs { display: flex; align-items: center; gap: 6px; min-width: 0; flex-wrap: wrap; }
.sc-sq {
  --gc: var(--brand);
  display: inline-flex; align-items: center; gap: 6px; height: 26px; max-width: 360px; padding: 0 11px 0 8px; border: 0; border-radius: 999px;
  background: var(--gc); color: #fff; font: inherit; font-size: 12px; white-space: nowrap; cursor: pointer;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--gc) 35%, transparent); transition: filter .12s, box-shadow .12s;
}
.sc-sq:hover { filter: brightness(.95); }
.sc-sq:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--gc) 30%, transparent); }
.sc-sq .i { width: 15px; height: 15px; stroke-width: 2.1; flex: none; }
.sc-sq b { font-weight: 700; letter-spacing: .02em; }
.sc-sq-n { padding-left: 7px; border-left: 1px solid rgba(255, 255, 255, .38); font-weight: 500; opacity: .93; overflow: hidden; text-overflow: ellipsis; }
.sc-sq.sc-sq-vuota { background: var(--surface); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); border: 1px dashed #C5CDC7; }
.sc-id { margin-left: 2px; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.sc-head-act { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-left: auto; }
.sc-head-act .sc-btn-prim { border-color: var(--brand-100); background: var(--brand-50); color: var(--brand-600); }
.sc-head-act .sc-btn-prim:hover { border-color: #B9DFB1; background: #E2F2DE; }
.sc-caret { width: 13px !important; height: 13px !important; margin-left: -2px; opacity: .6; }
.sc-vsep { width: 1px; height: 20px; margin: 0 2px; background: var(--line); }
.sc-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 10px; }
.sc-title { margin: 0; min-width: 0; font-size: 23px; line-height: 1.2; font-weight: 700; letter-spacing: -.015em; color: var(--ink); overflow-wrap: anywhere; }
.sc-star {
  display: grid; place-items: center; width: 32px; height: 32px; flex: none; border: 0; border-radius: 9px;
  background: transparent; color: #C5CDC7; cursor: pointer; transition: background .12s, color .12s, transform .12s;
}
.sc-star .i { width: 20px; height: 20px; }
.sc-star:hover { background: var(--surface-3); color: #D49B0A; }
.sc-star:active { transform: scale(.92); }
.sc-star.sc-on { color: #D49B0A; }
.sc-star.sc-on .i { fill: var(--sun); }
.sc-star:focus-visible { outline: none; box-shadow: var(--focus); }
.sc-flags { display: flex; flex-wrap: wrap; gap: 6px; margin-left: 4px; }
.sc-flags-b { margin: 12px 0 0; }
.chip.sc-flag { background: var(--warn-50); color: #8A4B08; box-shadow: inset 0 0 0 1px var(--warn-100); }
.chip.sc-flag .i { color: var(--warn); }
.chip.sc-flag.sc-rosso { background: var(--danger-50); color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger-100); }
.chip.sc-flag.sc-rosso .i { color: var(--danger); }
.sc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 9px; font-size: 13px; color: var(--ink-2); }
.sc-meta-i { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.sc-meta-i > .i { width: 15px; height: 15px; color: var(--faint); flex: none; }
button.sc-meta-i, a.sc-meta-i { margin: -3px -7px; padding: 3px 7px; border: 0; border-radius: 7px; background: none; color: inherit; font: inherit; cursor: pointer; }
button.sc-meta-i:hover, a.sc-meta-i:hover { background: var(--surface-3); text-decoration: none; }
.sc-meta-k { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; color: var(--faint); }
.sc-meta-warn { color: var(--warn) !important; font-weight: 600; }
.sc-meta-warn > .i { color: var(--warn) !important; }
.sc-ext { width: 12px !important; height: 12px !important; opacity: 0; transition: opacity .12s; }
a.sc-meta-i:hover .sc-ext { opacity: .6; }
.sc-copy { display: inline-flex; align-items: center; gap: 6px; margin: -3px -7px; padding: 3px 7px; border: 0; border-radius: 7px; background: none; color: inherit; font: inherit; cursor: pointer; min-width: 0; }
.sc-copy:hover { background: var(--surface-3); }
.sc-copy-ic { width: 13px !important; height: 13px !important; opacity: 0; transition: opacity .12s; flex: none; }
.sc-copy:hover .sc-copy-ic, .sc-file:hover .sc-copy-ic, .sc-flist-i:hover .sc-copy-ic { opacity: .7; }
.sc-wa { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-left: 1px; border-radius: 7px; color: #1FA855; }
.sc-wa .i { width: 16px; height: 16px; }
.sc-wa:hover { background: #E7F8EE; }
.sc-add { color: var(--brand-600) !important; font-weight: 600; }
.sc-add > .i { color: var(--brand) !important; }
.sc-inline { width: 240px; height: 28px; font-size: 13px; }
.sc-ibtn { display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; border: 0; border-radius: 6px; background: none; color: var(--faint); cursor: pointer; }
.sc-ibtn:hover { background: var(--surface-3); color: var(--ink-2); }
.sc-ibtn:focus-visible { outline: none; box-shadow: var(--focus); }
.sc-ibtn .i { width: 14px; height: 14px; }
.sc-ibtn-sm { width: 22px; height: 22px; margin-left: -2px; opacity: .55; }
.sc-ibtn-sm:hover { opacity: 1; }
.sc-ibtn-sm .i { width: 12px; height: 12px; }
.sc-skel-chip { width: 150px; height: 24px; }
.sc-skel-title { width: 300px; height: 26px; margin-top: 14px; }
.sc-skel-sub { width: 460px; max-width: 80%; height: 14px; margin-top: 10px; }

/* ------------------------------------------------------------------ zona con scroll y tarjetas */
/* abajo deja sitio al botón flotante del asistente */
.sc-scroll { position: relative; flex: 1; min-height: 0; overflow-y: auto; padding: 18px 28px 92px; scroll-padding-top: 60px; }
.sc-top { display: flex; flex-direction: column; gap: 12px; }
.sc-stack { display: flex; flex-direction: column; gap: 14px; }
.sc-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-xs); min-width: 0; }
.sc-pad { padding: 18px; margin-bottom: 12px; }
.sc-card-h { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 14px 10px 18px; border-bottom: 1px solid var(--line-2); }
.sc-card-h > .i { width: 16px; height: 16px; color: var(--muted); flex: none; }
.sc-card-h h4 { margin: 0; font-size: 13.5px; font-weight: 650; color: var(--ink); white-space: nowrap; }
.sc-card-h-flat { border-bottom: 0; }
.sc-card-f { padding: 9px 18px 11px; border-top: 1px solid var(--line-2); }
.sc-count { padding: 1px 8px; border-radius: 999px; background: var(--surface-3); font-size: 11.5px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.sc-vuoto { display: flex; align-items: center; gap: 9px; padding: 16px 18px; font-size: 13px; color: var(--muted); }
.sc-vuoto > .i { width: 17px; height: 17px; color: var(--faint); flex: none; }
.sc-vuoto-in { padding: 12px; border: 1px dashed var(--line); border-radius: 10px; background: var(--surface-2); align-items: flex-start; }
.sc-duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }

/* chips propios (estado, squadra, tipo, documento) */
.chip.sc-chip-st { --c: var(--muted); background: color-mix(in srgb, var(--c) 11%, white); color: color-mix(in srgb, var(--c) 82%, black); }
.chip.sc-chip-st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex: none; }
.chip.sc-chip-sq { --c: var(--muted); background: var(--surface); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.chip.sc-chip-sq::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: var(--c); flex: none; }
.chip.sc-chip-sq.sc-vuota { color: var(--faint); }
.chip.sc-chip-sq.sc-vuota::before { background: none; border: 1px dashed var(--faint); }
.chip.sc-chip-tipo { background: var(--surface-3); color: var(--muted); }
.chip.sc-chip-doc { background: var(--info-50); color: var(--info); }

/* barra de documentos ok/totali */
.sc-docbar { display: inline-flex; align-items: center; gap: 8px; min-width: 120px; }
.sc-docbar-t { position: relative; flex: 1; height: 7px; min-width: 60px; border-radius: 7px; background: var(--line-2); overflow: hidden; }
.sc-docbar-f { position: absolute; inset: 0 auto 0 0; border-radius: 7px; background: #E59A1B; transition: width .3s ease; }
.sc-docbar.sc-ok .sc-docbar-f { background: var(--ok); }
.sc-docbar-l { font-size: 11.5px; font-weight: 700; color: var(--warn); font-variant-numeric: tabular-nums; }
.sc-docbar.sc-ok .sc-docbar-l { color: var(--ok); }

/* ------------------------------------------------------------------ flusso (stepper) */
.sc-flow { overflow: hidden; }
.sc-stepper { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 16px 10px 12px; }
.sc-step {
  --tc: var(--t-avvio);
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0;
  padding: 0 2px; border: 0; background: none; color: var(--muted); font: inherit; cursor: pointer;
}
.sc-step::before { content: ""; position: absolute; top: 14px; right: calc(50% + 18px); width: calc(100% - 36px); height: 2px; border-radius: 2px; background: var(--line); }
.sc-step:first-child::before { display: none; }
.sc-step.sc-st-done::before, .sc-step.sc-st-cur::before { background: var(--ok); }
.sc-step-dot {
  position: relative; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--line); color: var(--faint); font-size: 12px; font-weight: 700;
  font-variant-numeric: tabular-nums; transition: transform .12s, border-color .12s, box-shadow .12s;
}
.sc-step:hover .sc-step-dot { transform: scale(1.07); border-color: #C3CDC6; }
.sc-step:focus-visible { outline: none; }
.sc-step:focus-visible .sc-step-dot { box-shadow: var(--focus); }
.sc-step.sc-st-done .sc-step-dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.sc-step.sc-st-done .sc-step-dot .i { width: 15px; height: 15px; stroke-width: 2.8; }
.sc-step.sc-st-cur .sc-step-dot { background: var(--tc); border-color: var(--tc); color: #fff; box-shadow: 0 0 0 5px color-mix(in srgb, var(--tc) 13%, white); }
.sc-step-l { max-width: 100%; overflow: hidden; font-size: 12px; font-weight: 600; line-height: 1.2; text-align: center; color: var(--ink-2); text-wrap: balance; }
.sc-step.sc-st-todo .sc-step-l, .sc-step.sc-st-off .sc-step-l { color: var(--muted); font-weight: 500; }
.sc-step.sc-st-cur .sc-step-l { color: var(--tc); font-weight: 700; }
.sc-step-s { min-height: 15px; font-size: 11px; color: var(--faint); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sc-step-s.sc-fut { color: var(--info); font-weight: 600; }
.sc-step.sc-st-cur .sc-step-s { color: var(--tc); font-weight: 600; }
.sc-step.sc-st-nn::before { background: var(--ok); }
.sc-step.sc-st-nn .sc-step-dot { background: var(--surface-3); border-color: var(--line); color: var(--faint); }
.sc-step.sc-st-nn .sc-step-l { color: var(--faint); font-weight: 500; }
.sc-stepper.sc-is-off .sc-step { opacity: .5; }
.sc-stepper.sc-is-off .sc-step-dot { border-style: dashed; }
.sc-off { display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px; background: var(--tb-ferma); border-bottom: 1px solid #F3DDB8; color: var(--t-ferma); }
.sc-off[data-st="annullata"] { background: var(--tb-chiusa); border-color: var(--line); color: var(--t-chiusa); }
.sc-off > .i { width: 20px; height: 20px; margin-top: 1px; flex: none; }
.sc-off-t { font-size: 14px; font-weight: 700; }
.sc-off-t span { font-weight: 500; opacity: .85; }
.sc-off-s { margin-top: 2px; font-size: 12.5px; color: var(--ink-2); }

/* ------------------------------------------------------------------ controles */
.sc-ctrl { display: flex; flex-direction: column; gap: 12px; padding: 14px 18px 15px; border-top: 1px solid var(--line-2); }
.sc-ctrl-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.15fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.sc-ctrl-row.sc-ctrl-date { grid-template-columns: minmax(0, 1.1fr) minmax(0, .62fr) minmax(0, .95fr) minmax(0, 1.25fr); }
.sc-irow { display: flex; align-items: center; gap: 12px; min-height: 30px; }
.sc-irow > .sc-lbl { flex: none; width: 82px; }
.sc-irow > .sc-seg, .sc-irow > .sc-prob { flex: 1; min-width: 0; }
.sc-f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sc-lbl { display: flex; align-items: baseline; gap: 6px; margin: 0; font-size: 11.5px; font-weight: 600; letter-spacing: .01em; color: var(--muted); }
.sc-hint { font-size: 11px; font-weight: 500; color: var(--faint); }
.sc-f-sub { display: flex; align-items: center; gap: 5px; min-height: 16px; font-size: 11.5px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sc-f-sub .i { width: 12px; height: 12px; color: var(--faint); flex: none; }
.sc-f-sub:first-letter { text-transform: uppercase; }
.sc-dsel { --c: var(--muted); position: relative; }
.sc-dsel .select { padding-left: 30px; font-weight: 600; color: var(--ink); }
.sc-dsel-dot {
  position: absolute; left: 12px; top: 50%; width: 9px; height: 9px; border-radius: 50%; transform: translateY(-50%);
  background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, white); pointer-events: none;
}
.sc-pick {
  display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0; height: 36px; padding: 0 10px 0 8px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); font: inherit; font-size: 13px;
  text-align: left; cursor: pointer; transition: border-color .12s, background .12s;
}
.sc-pick:hover { border-color: #CCD5CE; background: var(--surface-2); }
.sc-pick:focus-visible { outline: none; box-shadow: var(--focus); }
.sc-pick > .i:first-child { width: 16px; height: 16px; margin-left: 2px; color: var(--muted); flex: none; }
.sc-pick > .i:last-child { width: 15px; height: 15px; color: var(--faint); flex: none; }
.sc-pick b { font-weight: 650; }
.sc-pick.sc-pick-ro { cursor: default; background: var(--surface-2); }
.sc-pick.sc-conf-ok { border-color: #BFE7CC; background: var(--ok-50); color: #15622F; }
.sc-pick.sc-conf-ok > .i:first-child { color: var(--ok); stroke-width: 2.4; }
.sc-conf-btn { width: 100%; height: 36px; }
.sc-seg { display: flex; flex-wrap: wrap; gap: 5px; }
.sc-seg-i {
  --ac: var(--muted);
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink-2); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
}
.sc-seg-i::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ac); flex: none; }
.sc-seg-i.sc-seg-none { width: 34px; justify-content: center; padding: 0; border-radius: 50%; color: var(--muted); }
.sc-seg-i.sc-seg-none::before { display: none; }
.sc-seg-i:hover { border-color: #C6CFC8; background: var(--surface-2); }
.sc-seg-i:focus-visible { outline: none; box-shadow: var(--focus); }
.sc-seg-i.sc-on {
  border-color: color-mix(in srgb, var(--ac) 50%, white); background: color-mix(in srgb, var(--ac) 11%, white);
  color: color-mix(in srgb, var(--ac) 78%, black); box-shadow: 0 0 0 1px color-mix(in srgb, var(--ac) 35%, white);
}
.sc-seg-i.sc-seg-none.sc-on { border-color: #B9C3BC; background: var(--surface-3); color: var(--ink-2); box-shadow: 0 0 0 1px #DCE2DD; }
.sc-prob { display: flex; align-items: center; gap: 12px; min-height: 30px; }
.sc-prob-off { font-size: 12.5px; color: var(--faint); }
.sc-prob-in { flex: 1; min-width: 0; }
.sc-prob.sc-on .sc-prob-in { border-color: #F5C2BC; background: var(--danger-50); color: #8A1C12; font-weight: 500; }
.sc-prob.sc-on .sc-prob-in:focus { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(217, 45, 32, .14); }
.sc-switch { position: relative; display: inline-flex; align-items: center; gap: 9px; flex: none; cursor: pointer; user-select: none; }
.sc-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.sc-switch-t { position: relative; flex: none; width: 34px; height: 20px; border-radius: 999px; background: #D3DAD5; transition: background .15s; }
.sc-switch-t::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .15s; }
.sc-switch input:checked + .sc-switch-t { background: var(--danger); }
.sc-switch input:checked + .sc-switch-t::after { transform: translateX(14px); }
.sc-switch input:focus-visible + .sc-switch-t { box-shadow: var(--focus); }
.sc-switch-l { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.sc-switch-l .i { width: 15px; height: 15px; color: var(--danger); }

/* ------------------------------------------------------------------ suggerimenti (tarjeta amarilla) */
.sc-sugg { padding: 5px; border: 1px solid #F0DF9C; border-radius: var(--r-lg); background: linear-gradient(180deg, #FFFCEC, #FFF7D6); }
.sc-sugg-h { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; padding: 5px 10px 7px; font-size: 13px; color: #5C4600; }
.sc-sugg-h > .i { width: 17px; height: 17px; color: #C99A06; }
.sc-sugg-h span { font-size: 12px; color: #8C7A3A; }
.sc-sugg-i { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid #F1E6BF; border-radius: 10px; background: var(--surface); }
.sc-sugg-i + .sc-sugg-i { margin-top: 5px; }
.sc-sugg-ic { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 9px; background: var(--sun-50); color: #B08300; }
.sc-sugg-ic .i { width: 16px; height: 16px; }
.sc-sugg-ic[data-t="stato"] { background: var(--info-50); color: var(--info); }
.sc-sugg-ic[data-t="documento"], .sc-sugg-ic[data-t="ddt"] { background: var(--brand-50); color: var(--brand); }
.sc-sugg-ic[data-t="data"] { background: #F3EEFE; color: #7C3AED; }
.sc-sugg-ic[data-t="associa_email"] { background: var(--info-50); color: var(--info); }
.sc-sugg-c { display: flex; flex: 1; flex-wrap: wrap; align-items: center; gap: 2px 10px; min-width: 0; line-height: 22px; }
.sc-sugg-t { font-size: 13px; font-weight: 600; color: var(--ink); }
.sc-sugg-d { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-size: 12px; font-weight: 500; }
.sc-sugg-d .chip { height: 21px; }
.sc-sugg-f { max-width: 260px; }
.sc-sugg-kv { color: var(--ink-2); }
.sc-sugg-m { font-size: 11.5px; color: var(--faint); white-space: nowrap; }
.sc-sugg-m .sc-a { font-size: 11.5px; }
.sc-sugg-b { display: flex; flex: none; gap: 6px; }
.sc-sugg-more { display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; margin-top: 5px; padding: 6px; border: 0; border-radius: 8px; background: none; color: #7A6418; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.sc-sugg-more:hover { background: rgba(255, 255, 255, .6); }
.sc-sugg-more .i { width: 14px; height: 14px; }

/* ------------------------------------------------------------------ pestañas */
.sc-tabs {
  position: sticky; top: -18px; z-index: 8; display: flex; align-items: center; gap: 2px; margin: 16px -28px 16px; padding: 0 22px;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.sc-tab {
  position: relative; display: inline-flex; align-items: center; gap: 7px; height: 46px; padding: 0 12px; border: 0; background: none;
  color: var(--muted); font: inherit; font-size: 13.5px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: color .12s;
}
.sc-tab:hover { color: var(--ink); }
.sc-tab:focus-visible { outline: none; color: var(--ink); box-shadow: inset 0 0 0 2px rgba(58, 170, 53, .25); border-radius: 8px; }
.sc-tab.sc-on { color: var(--ink); }
.sc-tab.sc-on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--brand); }
.sc-badge {
  display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 6px; border-radius: 999px;
  background: var(--surface-3); color: var(--muted); font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1;
}
.sc-badge .i { width: 12px; height: 12px; stroke-width: 2.6; }
.sc-badge.sc-rosso { background: var(--danger-50); color: var(--danger); }
.sc-badge.sc-blu { background: var(--info-50); color: var(--info); }
.sc-badge.sc-giallo { background: var(--warn-100); color: var(--warn); }
.sc-badge.sc-verde { background: var(--brand-50); color: var(--brand-600); }
.sc-badge.sc-ok { padding: 0; background: var(--ok-50); color: var(--ok); }
.sc-ask {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border: 1px solid #DCD3F7; border-radius: 999px;
  background: linear-gradient(180deg, #FBF9FF, #F3EFFE); color: #5B3FC4; font: inherit; font-size: 12.5px; font-weight: 650; cursor: pointer;
  transition: border-color .12s, box-shadow .12s;
}
.sc-ask .i { width: 15px; height: 15px; }
.sc-ask:hover { border-color: #C5B7F2; box-shadow: 0 2px 8px rgba(91, 63, 196, .12); }
.sc-ask:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(124, 58, 237, .2); }

/* ------------------------------------------------------------------ Riepilogo */
.sc-next { --lc: var(--brand); --lb: var(--brand-50); position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.sc-next::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--lc); }
.sc-next[data-lv="urgente"] { --lc: var(--danger); --lb: var(--danger-50); }
.sc-next[data-lv="attenzione"] { --lc: #D97706; --lb: var(--warn-50); }
.sc-next[data-lv="info"] { --lc: var(--info); --lb: var(--info-50); }
.sc-next[data-lv="ok"] { --lc: var(--ok); --lb: var(--ok-50); box-shadow: var(--shadow-xs); }
.sc-next[data-lv="chiusa"] { --lc: var(--t-chiusa); --lb: var(--tb-chiusa); box-shadow: var(--shadow-xs); }
.sc-next-main { display: flex; align-items: center; gap: 16px; padding: 18px 20px 18px 22px; }
.sc-next-ic { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 13px; background: var(--lb); color: var(--lc); }
.sc-next-ic .i { width: 22px; height: 22px; }
.sc-next-b { flex: 1; min-width: 0; }
.sc-next-k { font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--lc); }
.sc-next-t { margin-top: 2px; font-size: 16px; font-weight: 650; line-height: 1.35; color: var(--ink); }
.sc-next-s { margin-top: 3px; font-size: 13px; color: var(--muted); }
.sc-next-a { display: flex; flex: none; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.sc-next-more { padding: 10px 20px 10px 22px; border-top: 1px solid var(--line-2); background: var(--surface-2); }
.sc-next-mk { margin: 2px 0; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.sc-next-r { --lc2: var(--muted); display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; color: var(--ink-2); }
.sc-next-r + .sc-next-r { border-top: 1px dashed var(--line); }
.sc-next-r b { font-weight: 600; color: var(--ink); }
.sc-next-r[data-lv="urgente"] { --lc2: var(--danger); }
.sc-next-r[data-lv="attenzione"] { --lc2: #D97706; }
.sc-next-r[data-lv="info"] { --lc2: var(--info); }
.sc-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--lc2); }
.sc-lav-b { padding: 14px 18px 16px; }
.sc-lav-desc { font-size: 15.5px; font-weight: 650; line-height: 1.4; color: var(--ink); overflow-wrap: anywhere; }
.sc-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-top: 12px; }
.sc-tile { display: flex; align-items: flex-start; gap: 10px; min-width: 0; padding: 11px 12px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface-2); }
.sc-tile.sc-tile-wide { grid-column: span 2; }
.sc-tile > .i { width: 30px; height: 30px; padding: 6px; flex: none; border-radius: 9px; background: var(--brand-50); color: var(--brand); box-sizing: border-box; }
.sc-tile-b { min-width: 0; }
.sc-tile-k { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.sc-tile-v { margin-top: 1px; font-size: 17px; font-weight: 700; line-height: 1.25; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sc-tile-v small { font-size: 12px; font-weight: 600; color: var(--muted); }
.sc-tile-s { margin-top: 1px; font-size: 12px; color: var(--muted); }
.sc-kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 7px 16px; margin: 0; padding: 14px 18px 16px; font-size: 12.5px; }
.sc-kv.sc-kv-in { padding: 14px 0 0; }
.sc-kv dt { color: var(--faint); font-weight: 500; }
.sc-kv dd { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-width: 0; margin: 0; color: var(--ink-2); overflow-wrap: anywhere; }
.sc-noteop { display: flex; gap: 10px; margin-top: 14px; padding: 12px 14px; border: 1px solid var(--danger-100); border-radius: 12px; background: var(--danger-50); color: #8A1C12; font-size: 13px; font-weight: 600; }
.sc-noteop > .i { width: 17px; height: 17px; margin-top: 1px; color: var(--danger); flex: none; }
.sc-noteop-k { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--danger); }
.sc-proms { display: flex; flex-direction: column; padding: 6px; }
.sc-prom { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; }
.sc-prom + .sc-prom { box-shadow: inset 0 1px 0 var(--line-2); }
.sc-prom > .i { width: 28px; height: 28px; padding: 6px; flex: none; border-radius: 9px; background: #F3EEFE; color: #7C3AED; box-sizing: border-box; }
.sc-prom.sc-scad > .i { background: var(--danger-50); color: var(--danger); }
.sc-prom-t { font-size: 13px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.sc-prom-m { font-size: 12px; color: var(--muted); }
.sc-mails { display: flex; flex-direction: column; padding: 6px; }
.sc-mail { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 12px; border: 0; border-radius: 10px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.sc-mail.sc-mini { padding: 9px 10px; gap: 10px; }
.sc-mail + .sc-mail { box-shadow: inset 0 1px 0 var(--line-2); }
.sc-mail:hover { background: var(--surface-2); box-shadow: none; }
.sc-mail:hover + .sc-mail { box-shadow: none; }
.sc-mail:focus-visible { outline: none; box-shadow: var(--focus); }
.sc-mail-dir { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--info-50); color: var(--info); }
.sc-mini .sc-mail-dir { width: 28px; height: 28px; }
.sc-mail-dir .i { width: 15px; height: 15px; }
.sc-mail-dir[data-dir="out"] { background: var(--brand-50); color: var(--brand); }
.sc-mail-dir.sc-lg { width: 42px; height: 42px; }
.sc-mail-dir.sc-lg .i { width: 19px; height: 19px; }
.sc-mail-b { display: flex; flex: 1; flex-direction: column; gap: 1px; min-width: 0; }
.sc-mail-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sc-mail-who { min-width: 0; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.sc-mail.sc-nuova .sc-mail-who::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--info); vertical-align: 1px; }
.sc-mail.sc-nuova .sc-mail-who, .sc-mail.sc-nuova .sc-mail-o { color: var(--ink); font-weight: 700; }
.sc-mail-o { font-size: 13.5px; font-weight: 550; color: var(--ink); }
.sc-mini .sc-mail-o { font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.sc-mail-p { font-size: 12.5px; color: var(--muted); }
.sc-mail-dt { font-size: 11.5px; color: var(--faint); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sc-cat { flex: none; padding: 1px 6px; border-radius: 5px; background: var(--surface-3); font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.sc-cat[data-cat="installatore"] { background: var(--tb-lavori); color: var(--t-lavori); }
.sc-cat[data-cat="cliente"] { background: var(--warn-50); color: var(--warn); }
.sc-cat[data-cat="interno"] { background: var(--brand-50); color: var(--brand-600); }
.sc-cat[data-cat="fornitore"] { background: var(--info-50); color: var(--info); }
.sc-cat.sc-cat-prop { background: var(--sun-50); color: #8C6D00; box-shadow: inset 0 0 0 1px #F0DF9C; }
.sc-clip { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.sc-clip .i { width: 13px; height: 13px; }
.sc-links { display: flex; flex-direction: column; padding: 6px; }
.sc-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.sc-link + .sc-link { box-shadow: inset 0 1px 0 var(--line-2); }
.sc-link:hover { background: var(--surface-2); box-shadow: none; }
.sc-link:focus-visible { outline: none; box-shadow: var(--focus); }
.sc-link-d { flex: none; width: 82px; font-size: 12.5px; font-weight: 650; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sc-link-b { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sc-link-n { font-size: 13px; font-weight: 600; color: var(--ink); }
.sc-link-c { display: flex; flex-wrap: wrap; gap: 5px; }
.sc-link-go { width: 15px !important; height: 15px !important; color: var(--faint); flex: none; }
.sc-cart-b { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px 16px 18px; }
.sc-cart-nome { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; color: var(--ink); }
.sc-cart-nome > .i { width: 17px; height: 17px; color: var(--brand); flex: none; }
.sc-paths { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface-2); }
.sc-path { display: flex; align-items: center; gap: 8px; padding: 5px 5px 5px 10px; font-size: 12px; }
.sc-path + .sc-path { border-top: 1px solid var(--line-2); }
.sc-path-k { flex: none; width: 66px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.sc-path-v { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); }
.sc-cart-info { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.sc-cart-info .i { width: 14px; height: 14px; color: var(--faint); }

/* ------------------------------------------------------------------ Materiale (DDT) */
.sc-ddt { overflow: hidden; }
.sc-ddt-h { display: flex; align-items: center; gap: 12px; padding: 14px 16px 14px 18px; border-bottom: 1px solid var(--line-2); background: linear-gradient(180deg, #FFFBF3, var(--surface)); }
.sc-ddt-ic { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 11px; background: #FEF3E6; color: var(--t-tica); }
.sc-ddt-ic .i { width: 19px; height: 19px; }
.sc-ddt-ic.sc-prev-ic { background: var(--info-50); color: var(--info); }
.sc-prev .sc-ddt-h { background: linear-gradient(180deg, #F7FAFF, var(--surface)); }
.sc-ddt-t { min-width: 0; }
.sc-ddt-n { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 15px; color: var(--ink-2); }
.sc-ddt-n b { font-size: 16px; font-weight: 750; color: var(--ink); font-variant-numeric: tabular-nums; }
.sc-ddt-n span { color: var(--muted); }
.sc-ddt-n .sc-count { align-self: center; }
.sc-ddt-s { margin-top: 2px; font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.sc-ddt-s b { font-weight: 650; color: var(--ink-2); }
.sc-mat-wrap { overflow-x: auto; }
table.sc-mat { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.sc-mat th { padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.sc-mat td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; color: var(--ink-2); }
.sc-mat tbody tr:last-child td { border-bottom: 0; }
.sc-mat tbody tr:hover td { background: #FAFCFA; }
.sc-mat .sc-mat-ic { width: 46px; padding-right: 0; padding-left: 16px; }
.sc-mat .sc-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sc-mat td.sc-num b { font-size: 15px; font-weight: 750; color: var(--ink); }
.sc-mat td.sc-num small { color: var(--faint); font-size: 11px; }
.sc-cat-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--surface-3); color: var(--muted); }
.sc-cat-ic .i { width: 16px; height: 16px; }
.sc-cat-ic[data-cat="pannello"] { background: #EAF1FE; color: #2563EB; }
.sc-cat-ic[data-cat="inverter"] { background: #F3EEFE; color: #7C3AED; }
.sc-cat-ic[data-cat="batteria"], .sc-cat-ic[data-cat="bms"], .sc-cat-ic[data-cat="ups"] { background: var(--ok-50); color: var(--ok); }
.sc-cat-ic[data-cat="box"] { background: #E3F7F4; color: #0D9488; }
.sc-cat-ic[data-cat="meter"], .sc-cat-ic[data-cat="kit"], .sc-cat-ic[data-cat="rete"] { background: #E5F5F9; color: #0E7490; }
.sc-cat-ic[data-cat="ottimizzatore"], .sc-cat-ic[data-cat="wallbox"] { background: var(--sun-50); color: #A16207; }
.sc-cat-ic[data-cat="quadro"] { background: #FCEBF4; color: #C0267A; }
.sc-cat-ic[data-cat="struttura"], .sc-cat-ic[data-cat="servizio"] { background: #FEF3E6; color: var(--t-tica); }
.sc-mat-d { font-weight: 650; color: var(--ink); overflow-wrap: anywhere; }
.sc-mat-x { margin-top: 2px; font-size: 11.5px; color: var(--muted); }
.sc-mat-marca { font-weight: 650; white-space: nowrap; }
.sc-mat-mod { font-weight: 600; color: var(--ink-2); overflow-wrap: anywhere; }
.sc-code { display: inline-block; margin-top: 2px; padding: 1px 6px; border-radius: 5px; background: var(--surface-3); font-family: var(--mono); font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.sc-tots { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px 14px 18px; border-top: 1px solid var(--line-2); background: var(--surface-2); }
.sc-tots-card .sc-tots { border-top: 0; background: none; border-radius: var(--r-lg); }
.sc-tots-k { flex-basis: 100%; margin-bottom: 2px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.sc-tot { display: inline-flex; align-items: center; gap: 8px; min-width: 0; padding: 6px 12px 6px 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 13px; color: var(--ink-2); box-shadow: var(--shadow-xs); }
.sc-tot > .i { width: 26px; height: 26px; padding: 5px; flex: none; border-radius: 8px; background: var(--brand-50); color: var(--brand); box-sizing: border-box; }
.sc-tot b { font-weight: 750; color: var(--ink); }
.sc-det { border-top: 1px solid var(--line-2); }
.sc-det summary { display: flex; align-items: center; gap: 6px; padding: 10px 18px; font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; list-style: none; }
.sc-det summary::-webkit-details-marker { display: none; }
.sc-det summary:hover { color: var(--ink); }
.sc-det summary:focus-visible { outline: none; box-shadow: inset var(--focus); }
.sc-det[open] > summary .sc-sum-ic { transform: rotate(90deg); }
.sc-sum-ic { width: 14px !important; height: 14px !important; color: var(--faint); transition: transform .15s; flex: none; }
.sc-det .sc-kv { padding-top: 2px; }
.sc-det-card { border-top: 1px solid var(--line); overflow: hidden; }
.sc-det-card > summary { padding: 13px 18px; }
.sc-det-card[open] > summary { border-bottom: 1px solid var(--line-2); }
.sc-contratto { margin: 0; padding: 14px 18px; overflow: auto; white-space: pre-wrap; font: 12.5px/1.55 var(--mono); color: var(--ink-2); background: var(--surface-2); }
.sc-contr-vuoto { padding: 0 18px 18px; }
.sc-contr-vuoto .sc-contratto { border-radius: 10px; border: 1px solid var(--line-2); }
.sc-avv { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 16px; border: 1px solid #F5D79F; border-radius: var(--r); background: var(--warn-50); color: #7A3306; font-size: 13px; }
.sc-avv > .i { width: 18px; height: 18px; color: var(--warn); flex: none; }
.sc-avv b { font-weight: 700; }
.sc-avv .small { color: #8A4B08; }
.sc-avv.sc-avv-in { margin: 0 14px 12px; }

/* schede tecniche dei prodotti (tarjeta en Materiale) */
.sc-sch .sc-card-h .btn.ghost { text-decoration: none; }
.sc-schede { display: flex; flex-direction: column; padding: 6px; }
.sc-sch-i { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; transition: background .1s, opacity .12s; }
.sc-sch-i + .sc-sch-i { box-shadow: inset 0 1px 0 var(--line-2); }
.sc-sch-i:hover { background: var(--surface-2); box-shadow: none; }
.sc-sch-i:hover + .sc-sch-i { box-shadow: none; }
.sc-sch-i.sc-sch-off .sc-sch-b, .sc-sch-i.sc-sch-off .sc-cat-ic { opacity: .5; }
.sc-sch-cb { display: grid; place-items: center; flex: none; width: 22px; cursor: pointer; }
.sc-sch-cb input { width: 16px; height: 16px; margin: 0; accent-color: var(--brand); cursor: pointer; }
.sc-sch-b { flex: 1; min-width: 0; }
.sc-sch-t { font-size: 13.5px; font-weight: 650; color: var(--ink); overflow-wrap: anywhere; }
.sc-sch-m { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 8px; margin-top: 3px; font-size: 12px; color: var(--muted); }
.sc-sch-mo { color: var(--ink-2); }
.sc-sch-load { padding: 4px 18px 12px; }

/* monitoraggio impianto (tarjeta en Riepilogo + atajo en la cabecera) */
.sc-mon .sc-card-h .btn.ghost { text-decoration: none; }
.sc-mon button.sc-a { padding: 0; border: 0; background: none; font: inherit; font-size: 12px; font-weight: 600; color: var(--brand); cursor: pointer; }
.sc-mon button.sc-a:focus-visible { outline: none; border-radius: 4px; box-shadow: var(--focus); }
.sc-mon-load { padding: 4px 18px 12px; }
.sc-mon-l { display: flex; flex-direction: column; padding: 6px; }
.sc-mon-i { padding: 11px 12px 12px; border-radius: 10px; }
.sc-mon-i + .sc-mon-i, .sc-mon-scelta + .sc-mon-i, .sc-mon-i + .sc-mon-scelta { box-shadow: inset 0 1px 0 var(--line-2); }
.sc-mon-h { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sc-mon-ic { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--surface-3); color: var(--muted); }
.sc-mon-ic .i { width: 17px; height: 17px; }
.sc-mon-ok .sc-mon-ic { background: var(--ok-50); color: var(--ok); }
.sc-mon-ic-q { border: 1px dashed var(--line); background: var(--surface-2); color: var(--faint); }
.sc-mon-t { flex: 1; min-width: 0; }
.sc-mon-n { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13.5px; font-weight: 650; color: var(--ink); }
.sc-mon-m { margin-top: 2px; font-size: 12px; color: var(--muted); }
.sc-mon-ver { padding: 1px 7px; border-radius: 999px; background: var(--warn-50); box-shadow: inset 0 0 0 1px var(--warn-100); font-size: 10.5px; font-weight: 700; color: #8A4B08; white-space: nowrap; cursor: help; }
.sc-mon-app { display: inline-flex; flex: none; flex-wrap: wrap; align-items: center; gap: 4px 8px; max-width: 46%; font-size: 12px; color: var(--muted); }
.sc-mon-app > .i { width: 14px; height: 14px; color: var(--faint); flex: none; }
.sc-mon-app b { font-weight: 600; color: var(--ink-2); }
.sc-mon-a { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; padding-left: 46px; }
.sc-mon-a .btn { text-decoration: none; }
.sc-mon-wait { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.sc-mon-nocred { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.sc-mon-nocred > .i { width: 14px; height: 14px; color: var(--faint); flex: none; }
.sc-mon-warn { display: flex; align-items: center; gap: 8px; margin: 10px 0 0 46px; padding: 8px 11px; border: 1px solid #F5D79F; border-radius: 9px; background: var(--warn-50); font-size: 12.5px; color: #7A3306; }
.sc-mon-warn > .i { width: 15px; height: 15px; color: var(--warn); flex: none; }
.sc-mon-link { display: flex; align-items: center; gap: 6px; min-width: 0; margin: 9px 0 0 46px; font-size: 12px; color: var(--muted); }
.sc-mon-link > .i { width: 13px; height: 13px; color: var(--faint); flex: none; }
.sc-mon-url { flex: 0 1 auto; min-width: 0; font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); }
.sc-mon-link .sc-faint { flex: none; white-space: nowrap; }
.sc-mon-link .sc-a { flex: none; margin-left: 4px; }
.sc-mon-form { margin: 11px 0 0 46px; }
.sc-mon-lbl { display: block; margin-bottom: 5px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.sc-mon-fr { display: flex; align-items: center; gap: 6px; min-width: 0; }
.sc-mon-fr .input { flex: 1; min-width: 0; font-family: var(--mono); font-size: 12px; }
.sc-mon-fr .input::placeholder { font-family: var(--font); }
.sc-mon-fr .btn { flex: none; }
.sc-mon-scelta { padding: 11px 12px; }
.sc-mon-sc { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sc-mon-sc .select { flex: none; width: 230px; max-width: 100%; }
.sc-mon-altro, .sc-mon-piu {
  display: inline-flex; align-items: center; align-self: flex-start; gap: 6px; margin: 2px 4px 4px; padding: 6px 10px; border: 0; border-radius: 8px;
  background: none; color: var(--brand-600); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.sc-mon-altro .i, .sc-mon-piu .i { width: 14px; height: 14px; }
.sc-mon-altro:hover, .sc-mon-piu:hover { background: var(--surface-3); }
.sc-mon-altro:focus-visible, .sc-mon-piu:focus-visible { outline: none; box-shadow: var(--focus); }
.sc-mon-not { display: flex; flex-direction: column; padding: 8px 6px 6px; border-top: 1px solid var(--line-2); }
.sc-mon-nk { display: flex; align-items: center; gap: 8px; padding: 2px 12px 5px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.sc-mon-nk .sc-count { letter-spacing: 0; text-transform: none; }
.sc-mon-e {
  display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; padding: 6px 12px; border: 0; border-radius: 8px;
  background: none; color: var(--ink-2); font: inherit; font-size: 12.5px; text-align: left; cursor: pointer;
}
.sc-mon-e:hover { background: var(--surface-2); }
.sc-mon-e:focus-visible { outline: none; box-shadow: var(--focus); }
.sc-mon-eic { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 7px; background: var(--surface-3); color: var(--muted); }
.sc-mon-eic .i { width: 13px; height: 13px; }
.sc-mon-e[data-t="allarme"] .sc-mon-eic { background: var(--danger-50); color: var(--danger); }
.sc-mon-e[data-t="rapporto"] .sc-mon-eic { background: var(--info-50); color: var(--info); }
.sc-mon-ed { flex: none; min-width: 92px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sc-mon-eo { flex: 1; min-width: 0; }
.sc-mon-e[data-t="allarme"] .sc-mon-eo { font-weight: 600; color: var(--ink); }
.sc-mon-tag { flex: none; padding: 1px 7px; border-radius: 999px; background: var(--danger-50); font-size: 10.5px; font-weight: 700; color: var(--danger); }
.sc-meta-mon > .i:not(.sc-ext) { color: var(--ok) !important; }
.sc-meta-mon > span:first-of-type { font-weight: 600; }

/* ------------------------------------------------------------------ Documenti */
.sc-docs-h { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; padding: 16px 18px; }
.sc-docs-sum { display: flex; flex: 1 1 330px; align-items: center; gap: 14px; min-width: 0; }
.sc-docs-n { display: flex; align-items: baseline; gap: 3px; padding: 8px 12px; border-radius: 12px; background: var(--warn-50); color: var(--warn); font-variant-numeric: tabular-nums; }
.sc-docs-n b { font-size: 22px; line-height: 1; font-weight: 700; }
.sc-docs-n span { font-size: 13px; font-weight: 600; }
.sc-docs-n .i { align-self: center; width: 16px; height: 16px; stroke-width: 2.6; }
.sc-docs-n.sc-ok { background: var(--ok-50); color: var(--ok); }
.sc-docs-t { font-size: 14px; font-weight: 650; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-docs-bar { margin-top: 7px; }
.sc-docs-bar .sc-docbar { width: 260px; max-width: 100%; }
.sc-docs-btn { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sc-docs-inv { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--ok); }
.sc-docs-inv .i { width: 14px; height: 14px; stroke-width: 2.6; }
.sc-docg { overflow: hidden; }
.sc-docg-h { display: flex; align-items: center; justify-content: space-between; padding: 13px 18px 6px; }
.sc-docg-h h4 { margin: 0; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sc-docg-l { padding: 0 6px 6px; }
.sc-doc { --dc: var(--faint); --db: var(--surface-3); position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 10px; transition: background .1s; }
.sc-doc + .sc-doc { box-shadow: inset 0 1px 0 var(--line-2); }
.sc-doc:hover { background: var(--surface-2); box-shadow: none; }
.sc-doc:hover + .sc-doc { box-shadow: none; }
.sc-doc[data-st="ok"] { --dc: var(--ok); --db: var(--ok-50); }
.sc-doc[data-st="rich"] { --dc: var(--info); --db: var(--info-50); }
.sc-doc[data-st="manc"] { --dc: var(--danger); --db: var(--danger-50); }
.sc-doc-ic { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--db); color: var(--dc); }
.sc-doc-ic .i { width: 16px; height: 16px; }
.sc-doc[data-st="ok"] .sc-doc-ic .i { stroke-width: 2.6; }
.sc-doc-main { flex: 1; min-width: 0; }
.sc-doc-l { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.sc-doc-n { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.sc-doc[data-st="nn"] .sc-doc-n { color: var(--faint); font-weight: 500; text-decoration: line-through; }
.sc-doc[data-st="att"] .sc-doc-n { color: var(--muted); font-weight: 500; }
.sc-chi { padding: 1px 6px; border-radius: 5px; background: var(--surface-3); font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.sc-doc-s { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; margin-top: 3px; font-size: 12px; }
.sc-doc-st { font-weight: 600; color: var(--dc); }
.sc-doc[data-st="att"] .sc-doc-st, .sc-doc[data-st="nn"] .sc-doc-st { font-weight: 500; }
.sc-src { padding: 1px 7px; border-radius: 999px; background: var(--surface-3); font-size: 10.5px; font-weight: 650; color: var(--ink-2); }
.sc-src[data-f="cartella"] { background: #EEF2F7; color: #475569; }
.sc-src[data-f="upload"] { background: var(--brand-50); color: var(--brand-600); }
.sc-src[data-f="email"] { background: var(--info-50); color: var(--info); }
.sc-file {
  display: inline-flex; align-items: center; gap: 5px; min-width: 0; max-width: 340px; margin: -2px 0; padding: 2px 6px; border: 0; border-radius: 6px;
  background: none; color: var(--ink-2); font: inherit; font-size: 12px; text-decoration: none; cursor: pointer;
}
.sc-file:hover { background: var(--surface-3); }
.sc-file > .i { flex: none; width: 13px; height: 13px; color: var(--faint); }
a.sc-file { color: var(--brand-600); }
.sc-doc-nota { margin-top: 3px; font-size: 12px; font-style: italic; color: var(--muted); }
.sc-doc-act { display: flex; flex: none; align-items: center; gap: 2px; opacity: .55; transition: opacity .12s; }
.sc-doc:hover .sc-doc-act, .sc-doc:focus-within .sc-doc-act { opacity: 1; }
.sc-ia { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; transition: background .1s, color .1s; }
.sc-ia:hover { border-color: var(--line); background: var(--surface); color: var(--ink); }
.sc-ia:focus-visible { outline: none; box-shadow: var(--focus); }
.sc-ia .i { width: 16px; height: 16px; }
.sc-ia.sc-on { background: var(--db); color: var(--dc); }
.sc-ia-sep { width: 1px; height: 18px; margin: 0 4px; background: var(--line); }
.sc-doc-drop {
  position: absolute; inset: 2px; z-index: 2; display: none; align-items: center; justify-content: center; gap: 8px; pointer-events: none;
  border: 2px dashed var(--brand-500); border-radius: 10px; background: rgba(237, 247, 235, .95); color: var(--brand-600); font-size: 13px; font-weight: 650;
}
.sc-doc-drop .i { width: 17px; height: 17px; }
.sc-doc.sc-over .sc-doc-drop { display: flex; }
.sc-drop {
  display: flex; flex-direction: column; align-items: center; gap: 3px; width: 100%; padding: 22px 16px; border: 1.5px dashed #C5D0C8;
  border-radius: var(--r-lg); background: var(--surface); color: var(--ink-2); font: inherit; font-size: 13px; cursor: pointer; transition: border-color .12s, background .12s;
}
.sc-drop > .i { width: 26px; height: 26px; margin-bottom: 4px; padding: 5px; border-radius: 9px; background: var(--brand-50); color: var(--brand); box-sizing: content-box; }
.sc-drop:hover, .sc-drop.sc-over { border-color: var(--brand-500); background: var(--brand-50); }
.sc-drop:focus-visible { outline: none; box-shadow: var(--focus); }
.sc-flist { display: flex; flex-direction: column; padding: 6px; }
.sc-flist-i { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--ink-2); font-size: 13px; }
.sc-flist-i:hover { background: var(--surface-2); }
.sc-flist-i > .i:first-child { width: 16px; height: 16px; color: var(--muted); flex: none; }
.sc-upl-i { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.sc-upl-r { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(180px, 250px) 84px; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line-2); }
.sc-upl-r > .i { width: 18px; height: 18px; color: var(--muted); }
.sc-upl-n { display: flex; flex-direction: column; min-width: 0; font-size: 13px; font-weight: 600; }
.sc-upl-st { font-size: 11.5px; font-weight: 600; text-align: right; color: var(--faint); }
.sc-upl-st.sc-run { color: var(--info); }
.sc-upl-st.sc-okt { color: var(--ok); }
.sc-upl-st.sc-ko { color: var(--danger); }

/* ------------------------------------------------------------------ lector de email */
.sc-reader-modal .ui-modal { max-height: calc(100vh - 40px); }
.sc-reader { display: flex; flex-direction: column; gap: 14px; }
.sc-reader-h { display: flex; align-items: flex-start; gap: 14px; }
.sc-reader-o { font-size: 17px; font-weight: 650; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
.sc-reader-m { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; font-size: 12.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.sc-reader-m b { margin-right: 6px; font-weight: 600; color: var(--faint); }
.sc-reader-dt { flex: none; font-size: 12px; text-align: right; color: var(--muted); white-space: nowrap; }
.sc-att { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }
.sc-att-i { display: flex; align-items: center; gap: 10px; padding: 8px 10px; font-size: 13px; }
.sc-att-i + .sc-att-i { border-top: 1px solid var(--line-2); }
.sc-att-i > .i { width: 15px; height: 15px; color: var(--muted); flex: none; }
.sc-reader-b { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.sc-reader-f { display: block; width: 100%; height: min(56vh, 560px); border: 0; background: #fff; }
.sc-reader-t { max-height: 56vh; margin: 0; padding: 16px 18px; overflow: auto; white-space: pre-wrap; font: 13.5px/1.55 var(--font); color: var(--ink-2); }
.sc-reader-x { margin-top: -6px; text-align: right; }
.sc-thread { display: flex; flex-direction: column; gap: 2px; }
.sc-thread-i { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border: 0; border-radius: 8px; background: none; color: var(--ink-2); font: inherit; font-size: 12.5px; text-align: left; cursor: pointer; }
.sc-thread-i:hover { background: var(--surface-2); }
.sc-thread-i.sc-on { background: var(--brand-50); }
.sc-thread-i > .i { width: 14px; height: 14px; color: var(--muted); flex: none; }

/* ------------------------------------------------------------------ Cronologia */
.sc-nota { padding: 12px 14px; transition: border-color .12s, box-shadow .12s; }
.sc-nota:focus-within { border-color: var(--brand-500); box-shadow: var(--focus); }
.sc-nota-ta { min-height: 66px; padding: 4px 2px; border: 0; background: transparent; font-size: 14px; resize: vertical; }
.sc-nota-ta:focus { border: 0; box-shadow: none; }
.sc-nota-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line-2); }
.sc-filtri { display: flex; flex-wrap: wrap; gap: 4px; }
.sc-filtro { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border: 1px solid transparent; border-radius: 999px; background: none; color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.sc-filtro span { font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.sc-filtro:hover { background: var(--surface-3); color: var(--ink); }
.sc-filtro:focus-visible { outline: none; box-shadow: var(--focus); }
.sc-filtro.sc-on { border-color: var(--line); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-xs); }
.sc-filtro:disabled { opacity: .45; cursor: default; background: none; }
.sc-tline { position: relative; }
.sc-tline::before { content: ""; position: absolute; left: 17px; top: 30px; bottom: 30px; width: 2px; border-radius: 2px; background: var(--line); }
.sc-day { position: relative; padding: 14px 0 8px 50px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sc-day::before { content: ""; position: absolute; left: 14px; top: 50%; width: 8px; height: 8px; margin-top: 2px; border-radius: 50%; background: var(--bg); border: 2px solid #CBD3CD; }
.sc-day:first-child { padding-top: 0; }
.sc-day:first-child::before { margin-top: -5px; }
.sc-ev { --ec: var(--muted); --eb: var(--surface-3); position: relative; display: flex; gap: 14px; padding-bottom: 10px; }
.sc-ev-ic { position: relative; z-index: 1; display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--eb); color: var(--ec); }
.sc-ev-ic .i { width: 16px; height: 16px; }
.sc-ev[data-t="nota"] { --ec: #B08300; --eb: var(--sun-50); }
.sc-ev[data-t="stato"], .sc-ev[data-t="creazione"] { --ec: var(--info); --eb: var(--info-50); }
.sc-ev[data-t="data"], .sc-ev[data-t="squadra"] { --ec: #7C3AED; --eb: #F3EEFE; }
.sc-ev[data-t="conferma"] { --ec: #0D9488; --eb: #E3F7F4; }
.sc-ev[data-t="documento"], .sc-ev[data-t="cartella"] { --ec: var(--brand); --eb: var(--brand-50); }
.sc-ev[data-t="ddt"] { --ec: var(--t-tica); --eb: #FEF3E6; }
.sc-ev[data-t="email_in"] { --ec: var(--info); --eb: var(--info-50); }
.sc-ev[data-t="email_out"] { --ec: var(--brand-600); --eb: var(--brand-50); }
.sc-ev[data-t="promemoria"] { --ec: #7C3AED; --eb: #F3EEFE; }
.sc-ev[data-t="suggerimento"] { --ec: #B08300; --eb: var(--sun-50); }
.sc-ev[data-t="problema"] { --ec: var(--danger); --eb: var(--danger-50); }
.sc-ev[data-t="assistente"] { --ec: #5B3FC4; --eb: #F3EFFE; }
.sc-ev[data-t="monitoraggio"] { --ec: #475569; --eb: #EEF2F6; }
.sc-ev-b { flex: 1; min-width: 0; padding: 10px 14px 11px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-xs); }
.sc-ev-h { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 12.5px; }
.sc-ev-h > b { max-width: 240px; font-weight: 650; color: var(--ink); }
.sc-ev-h .avatar { width: 22px; height: 22px; font-size: 9.5px; }
.sc-av-neutro { background: #94A39A; }
.sc-ev-dt { font-size: 11.5px; color: var(--faint); white-space: nowrap; font-variant-numeric: tabular-nums; cursor: default; }
.sc-ev-t { margin-top: 6px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); overflow-wrap: anywhere; }
.sc-ev-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.sc-sys { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 7px; background: var(--surface-3); color: var(--muted); }
.sc-sys .i { width: 13px; height: 13px; }
.sc-sys[data-sys="posta"] { background: var(--info-50); color: var(--info); }
.sc-sys[data-sys="cartella"] { background: var(--brand-50); color: var(--brand); }
.sc-sys[data-sys="excel"] { background: var(--sun-50); color: #9A7B10; }
.sc-sys[data-sys="master"] { background: #EEF2F7; color: #475569; }
.sc-sys[data-sys="assistente"] { background: #F3EFFE; color: #5B3FC4; }
.sc-diff { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; font-size: 12.5px; }
.sc-diff-r { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.sc-diff-k { min-width: 130px; font-weight: 600; color: var(--muted); }
.sc-diff-a { color: var(--faint); text-decoration: line-through; }
.sc-diff-b { font-weight: 600; color: var(--ink); }
.sc-diff-n { padding: 0 6px; border-radius: 5px; background: var(--ok-50); color: var(--ok); font-size: 10.5px; font-weight: 700; }
.sc-mmini { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 8px; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface-2); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.sc-mmini:hover { border-color: var(--line); background: var(--surface-3); }
.sc-mmini-b { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.sc-mmini-o, .sc-mmini-p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-mmini-o { font-size: 13px; font-weight: 600; color: var(--ink); }
.sc-mmini-p { font-size: 12px; color: var(--muted); }

/* ------------------------------------------------------------------ Dati */
.sc-dati { display: flex; flex-direction: column; gap: 14px; }
.sc-dati-int { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); font-size: 12.5px; color: var(--muted); }
.sc-dati-int > .i { width: 15px; height: 15px; color: var(--info); flex: none; }
.sc-dati-int b { color: var(--ink-2); }
.sc-g12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; padding: 16px 18px 18px; }
.sc-fld { position: relative; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.sc-fld.sc-s1 { grid-column: span 1; } .sc-fld.sc-s2 { grid-column: span 2; } .sc-fld.sc-s3 { grid-column: span 3; }
.sc-fld.sc-s4 { grid-column: span 4; } .sc-fld.sc-s6 { grid-column: span 6; } .sc-fld.sc-s8 { grid-column: span 8; } .sc-fld.sc-s12 { grid-column: span 12; }
.sc-fld-h { display: flex; align-items: center; gap: 6px; min-width: 0; min-height: 17px; }
.sc-fld-h .sc-lbl { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-fld.sc-dirty .input, .sc-fld.sc-dirty .select, .sc-fld.sc-dirty .textarea { border-color: #E5B84B; background-color: #FFFCF0; }
.sc-fld.sc-dirty .sc-lbl { color: var(--warn); }
.sc-fld.sc-haserr .input, .sc-fld.sc-haserr .select, .sc-fld.sc-haserr .textarea { border-color: var(--danger); background-color: var(--danger-50); }
.sc-fld.sc-conf .input, .sc-fld.sc-conf .select, .sc-fld.sc-conf .textarea { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(217, 45, 32, .12); }
.sc-man { display: inline-flex; align-items: center; gap: 3px; flex: none; padding: 0 6px; height: 17px; border-radius: 999px; background: var(--sun-50); color: #8A6400; font-size: 10px; font-weight: 700; box-shadow: inset 0 0 0 1px #F2DB8C; cursor: help; }
.sc-man .i { width: 10px; height: 10px; }
.sc-man.sc-man-ic { padding: 0 4px; }
.sc-fonte { flex: none; padding: 0 6px; height: 17px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--surface-3); color: var(--muted); font-size: 10px; font-weight: 700; cursor: help; }
.sc-fonte[data-f="manuale"] { background: var(--sun-50); color: #8A6400; }
.sc-fonte[data-f="ddt"] { background: #FEF3E6; color: var(--t-tica); }
.sc-fonte[data-f="master"] { background: var(--b2-50); color: var(--b2); }
.sc-fst { display: inline-flex; align-items: center; gap: 4px; flex: none; font-size: 11px; font-weight: 600; white-space: nowrap; }
.sc-fst .sc-spin { width: 11px; height: 11px; border-width: 1.5px; }
.sc-fst .i { width: 12px; height: 12px; stroke-width: 2.6; }
.sc-fst.sc-run { color: var(--info); }
.sc-fst.sc-okt { color: var(--ok); animation: fade .2s; }
.sc-err { font-size: 11.5px; font-weight: 600; color: var(--danger); }
.sc-err:empty { display: none; }
.sc-up { text-transform: uppercase; }
.sc-up::placeholder { text-transform: none; }
.sc-mono-in { font-family: var(--mono); font-size: 13px; letter-spacing: .02em; }
.sc-suf { position: relative; }
.sc-suf .input { padding-right: 46px; font-variant-numeric: tabular-nums; }
.sc-suf span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 12.5px; font-weight: 600; color: var(--faint); pointer-events: none; }
.sc-conf-v { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 6px; padding: 6px 8px; border-radius: 8px; background: var(--danger-50); font-size: 11.5px; color: #8A1C12; }
.sc-conf-v .i { flex: none; width: 13px; height: 13px; color: var(--danger); }
.sc-conf-v b { overflow-wrap: anywhere; }
.sc-flagsel { display: flex; flex-wrap: wrap; gap: 6px; }
.sc-flagopt { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px 0 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: 12.5px; font-weight: 600; cursor: pointer; user-select: none; transition: background .12s, border-color .12s; }
.sc-flagopt input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.sc-flagopt .i { width: 14px; height: 14px; color: var(--faint); }
.sc-flagopt:hover { border-color: #C6CFC8; background: var(--surface-2); }
.sc-flagopt:focus-within { box-shadow: var(--focus); }
.sc-flagopt.sc-on { border-color: #F5D79F; background: var(--warn-50); color: #8A4B08; }
.sc-flagopt.sc-on .i { color: var(--warn); }

/* conflicto (modal) */
.sc-cf { display: flex; gap: 12px; }
.sc-cf-ic { width: 22px !important; height: 22px !important; color: var(--danger); flex: none; }
.sc-cf-t { margin: 0 0 10px; font-size: 13.5px; color: var(--ink-2); }
.sc-cf-l { display: flex; flex-direction: column; overflow: hidden; margin-bottom: 10px; border: 1px solid var(--danger-100); border-radius: 10px; }
.sc-cf-r { display: grid; grid-template-columns: minmax(110px, .9fr) repeat(3, minmax(0, 1fr)); gap: 4px 12px; padding: 8px 12px; font-size: 12.5px; color: var(--ink-2); }
.sc-cf-r + .sc-cf-r { border-top: 1px solid var(--line-2); }
.sc-cf-r b { color: var(--ink); overflow-wrap: anywhere; }
.sc-cf-k { font-weight: 700; color: #7A1D15; }

/* ------------------------------------------------------------------ popover (menús) */
.sc-pop {
  position: fixed; z-index: 95; min-width: 230px; max-width: 330px; padding: 5px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); box-shadow: 0 14px 36px rgba(16, 32, 20, .16), 0 2px 6px rgba(16, 32, 20, .06); animation: pop .12s ease-out;
}
.sc-pop.sc-largo { min-width: 300px; max-width: 390px; }
.sc-pop-h { padding: 8px 10px 5px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.sc-pop-l { max-height: min(74vh, 640px); overflow: auto; }
.sc-pop-i { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: var(--ink-2); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.sc-pop-i:hover, .sc-pop-i:focus-visible { outline: none; background: var(--surface-3); color: var(--ink); }
.sc-pop-i:disabled { opacity: .45; cursor: default; background: none; }
.sc-pop-i > .i { width: 16px; height: 16px; color: var(--muted); flex: none; }
.sc-pop-tx { display: flex; flex-direction: column; min-width: 0; }
.sc-pop-tx small { overflow: hidden; font-size: 11.5px; color: var(--faint); text-overflow: ellipsis; white-space: nowrap; }
.sc-pop-i.sc-on { font-weight: 600; color: var(--ink); }
.sc-pop-i .sc-pop-ok { color: var(--brand); }
.sc-pop-i.sc-danger, .sc-pop-i.sc-danger > .i { color: var(--danger); }
.sc-pop-sep { height: 1px; margin: 4px 6px; background: var(--line-2); }

/* ------------------------------------------------------------------ modales propios */
.sc-ask-m { display: flex; flex-direction: column; gap: 6px; }
.sc-ask-i { margin: 0 0 8px; font-size: 13px; color: var(--ink-2); }
.sc-confm { display: flex; flex-direction: column; gap: 10px; }
.sc-confm-sum { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); font-size: 14px; color: var(--ink); }
.sc-confm-sum > .i { width: 32px; height: 32px; padding: 7px; flex: none; border-radius: 10px; background: #E3F7F4; color: #0D9488; box-sizing: border-box; }
.sc-canali { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 4px; }
.sc-canale { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border: 1.5px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--ink-2); font: inherit; font-size: 13.5px; font-weight: 650; cursor: pointer; transition: border-color .12s, background .12s; }
.sc-canale .i { width: 17px; height: 17px; color: var(--muted); }
.sc-canale:hover { border-color: #C6CFC8; }
.sc-canale:focus-visible { outline: none; box-shadow: var(--focus); }
.sc-canale.sc-on { border-color: #0D9488; background: #E3F7F4; color: #0B6B62; box-shadow: 0 0 0 3px rgba(13, 148, 136, .12); }
.sc-canale.sc-on .i { color: #0D9488; }
.sc-conf-mail { margin-top: 4px; font-size: 13px; color: var(--ink-2); }
.sc-confm-l { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line-2); }
.sc-promm { display: flex; flex-direction: column; gap: 14px; }
.sc-pr-r { display: flex; gap: 8px; }
.sc-pr-r .input:first-child { width: 170px; }
.sc-pr-r .input:last-child { width: 120px; }
.sc-pr-c { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.sc-qchip { height: 26px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.sc-qchip:hover { border-color: #C6CFC8; background: var(--surface-2); }
.sc-qchip.sc-on { border-color: var(--brand-100); background: var(--brand-50); color: var(--brand-600); }
.sc-cartm { display: flex; flex-direction: column; gap: 10px; }

/* ------------------------------------------------------------------ compositor de email */
.cm-modal .ui-modal { height: min(880px, calc(100vh - 48px)); }
.cm-modal .ui-modal-b { display: flex; flex: 1; min-height: 0; padding: 0; overflow: hidden; }
.cm { display: grid; grid-template-columns: minmax(0, 1fr) 300px; width: 100%; min-height: 0; }
.cm-main { display: flex; flex-direction: column; min-height: 0; padding: 4px 22px 18px; overflow: auto; }
.cm-side { display: flex; flex-direction: column; gap: 20px; padding: 16px; overflow: auto; border-left: 1px solid var(--line-2); background: var(--surface-2); }
.cm-ko, .cm-err { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 4px; padding: 10px 12px; border: 1px solid var(--danger-100); border-radius: 10px; background: var(--danger-50); color: #7A1D15; font-size: 13px; }
.cm-ko .i, .cm-err .i { flex: none; width: 16px; height: 16px; margin-top: 1px; color: var(--danger); }
.cm-ko .sc-a { font-size: 13px; }
.cm-avv { display: flex; flex-direction: column; gap: 4px; margin: 12px 0 2px; padding: 9px 12px; border: 1px solid var(--warn-100); border-radius: 10px; background: var(--warn-50); color: #7A3306; font-size: 12.5px; }
.cm-avv div { display: flex; align-items: flex-start; gap: 7px; }
.cm-avv .i { flex: none; width: 14px; height: 14px; margin-top: 2px; color: var(--warn); }
.cm-row { display: flex; align-items: flex-start; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line-2); }
.cm-lbl { flex: none; width: 66px; padding-top: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.cm-field { flex: 1; min-width: 0; }
.cm-row .select { max-width: 460px; }
.cm-desc { margin-top: 5px; font-size: 12px; color: var(--muted); }
.cm-desc:empty { display: none; }
.cm-rcpt { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; min-height: 36px; padding: 4px 0; cursor: text; }
.cm-rc { display: inline-flex; align-items: center; gap: 3px; max-width: 100%; height: 26px; padding: 0 3px 0 10px; border: 1px solid var(--brand-100); border-radius: 999px; background: var(--brand-50); color: var(--brand-600); font-size: 12.5px; font-weight: 600; }
.cm-rc.cm-bad { border-color: var(--danger-100); background: var(--danger-50); color: var(--danger); }
.cm-rc span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-rc button { display: grid; place-items: center; width: 20px; height: 20px; border: 0; border-radius: 50%; background: none; color: inherit; opacity: .65; cursor: pointer; }
.cm-rc button:hover { background: rgba(0, 0, 0, .07); opacity: 1; }
.cm-rc button .i { width: 12px; height: 12px; }
.cm-rcpt-in { flex: 1; min-width: 170px; height: 28px; border: 0; background: none; outline: none; font-size: 13.5px; }
.cm-rcpt-in.cm-bad { color: var(--danger); text-decoration: underline wavy var(--danger); text-underline-offset: 3px; }
.cm-cc-t { padding: 8px 8px; border: 0; border-radius: 7px; background: none; color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.cm-cc-t:hover { background: var(--surface-3); color: var(--ink); }
.cm-row-sugg { padding: 6px 0 4px; border-bottom: 0; }
.cm-sp-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cm-sp-k { margin-right: 2px; font-size: 11.5px; font-weight: 600; color: var(--faint); }
.cm-sp { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; height: 28px; padding: 0 10px; border: 1px dashed #C5D0C8; border-radius: 8px; background: var(--surface); color: var(--ink-2); font: inherit; font-size: 12px; cursor: pointer; transition: border-color .12s, background .12s; }
.cm-sp:hover { border-style: solid; border-color: var(--brand-500); background: var(--brand-50); }
.cm-sp .i { width: 14px; height: 14px; color: var(--muted); flex: none; }
.cm-sp-l { font-weight: 600; white-space: nowrap; }
.cm-sp-e { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--faint); }
.cm-ogg { padding-left: 0; border-color: transparent; font-size: 14.5px; font-weight: 600; }
.cm-ogg:focus { border-color: transparent; box-shadow: none; }
.cm-ed { display: flex; flex: 1; flex-direction: column; min-height: 340px; margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); transition: border-color .12s, box-shadow .12s; }
.cm-ed:focus-within { border-color: var(--brand-500); box-shadow: var(--focus); }
.cm-ed-tb { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 6px 8px; border-bottom: 1px solid var(--line-2); border-radius: 12px 12px 0 0; background: var(--surface-2); }
.cm-ed-tb > button { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 7px; background: none; color: var(--ink-2); font: inherit; font-size: 14px; cursor: pointer; }
.cm-ed-tb > button:hover { background: var(--surface-3); }
.cm-ed-tb > button:disabled { opacity: .35; cursor: default; }
.cm-ed-tb > button .i { width: 16px; height: 16px; }
.cm-ed-link { display: flex; align-items: center; gap: 6px; margin-left: 6px; }
.cm-ed-link .input { width: 230px; }
.cm-ed-vis { display: inline-flex; padding: 2px; border-radius: 9px; background: var(--surface-3); }
.cm-ed-vis button { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border: 0; border-radius: 7px; background: none; color: var(--muted); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.cm-ed-vis button .i { width: 14px; height: 14px; }
.cm-ed-vis button.sc-on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-xs); }
.cm-ed-load { display: flex; align-items: center; gap: 8px; padding: 10px 16px 0; font-size: 12.5px; color: var(--muted); }
.cm-editor { flex: 1; min-height: 260px; padding: 18px 22px; overflow: auto; outline: none; color: #1F2A24; font: 14px/1.6 var(--font); overflow-wrap: anywhere; }
.cm-editor p { margin: 0 0 .85em; }
.cm-editor ul, .cm-editor ol { margin: 0 0 .85em; padding-left: 1.4em; }
.cm-editor a { color: var(--brand-600); text-decoration: underline; }
.cm-editor blockquote { margin: 0 0 .85em 2px; padding: 2px 0 2px 12px; border-left: 3px solid var(--brand-100); color: #4B5852; }
.cm-editor table { border-collapse: collapse; margin: 0 0 .85em; }
.cm-editor td, .cm-editor th { padding: 5px 9px; border: 1px solid var(--line); vertical-align: top; }
.cm-editor img { max-width: 100%; height: auto; }
.cm-editor.cm-dim { opacity: .35; pointer-events: none; }
.cm-ed-prev { flex: 1; width: 100%; min-height: 420px; border: 0; border-radius: 0 0 12px 12px; background: #EEF1EE; }
.cm-ed-foot { padding: 7px 12px; border-top: 1px solid var(--line-2); font-size: 11.5px; }
.cm-busy .cm-main, .cm-busy .cm-side { opacity: .65; pointer-events: none; }
.cm-sec h5 { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cm-sec h5 .i { width: 14px; height: 14px; }
.cm-sec h5 .sc-badge { margin-left: 2px; }
.cm-side-p { display: flex; flex-direction: column; gap: 7px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.cm-side-n { font-size: 14px; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.cm-side-o { font-size: 13px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.cm-side-c { display: flex; flex-wrap: wrap; gap: 6px; }
.cm-side-m { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12px; color: var(--muted); }
.cm-side-m .i { flex: none; width: 14px; height: 14px; }
.cm-sqw { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.cm-docs ul { margin: 0 0 8px; padding: 10px 12px 10px 28px; border-radius: 10px; background: var(--info-50); color: #1E3A8A; font-size: 12.5px; }
.cm-docs li + li { margin-top: 3px; }
.cm-att-g { display: flex; flex-direction: column; gap: 1px; margin-bottom: 12px; }
.cm-att-gh { display: flex; align-items: center; gap: 5px; margin: 2px 0 4px; font-size: 11.5px; font-weight: 600; color: var(--faint); }
.cm-att-sugg { padding: 6px; border: 1px solid #F0DF9C; border-radius: 10px; background: var(--sun-50); }
.cm-att-sugg .cm-att-gh { color: #8C6D00; }
.cm-att-c { display: flex; align-items: flex-start; gap: 9px; padding: 7px 8px; border-radius: 8px; cursor: pointer; }
.cm-att-c:hover { background: var(--surface); }
.cm-att-c input { flex: none; width: 15px; height: 15px; margin: 2px 0 0; accent-color: var(--brand); }
.cm-att-c.cm-caric { opacity: .6; }
.cm-att-n { display: flex; flex-direction: column; min-width: 0; font-size: 12.5px; color: var(--ink-2); }
.cm-att-n .i { width: 13px; height: 13px; margin-right: 4px; vertical-align: -2px; color: var(--muted); }
.cm-att-s { font-size: 11px; color: var(--faint); }
.cm-att-vuoto { margin-bottom: 10px; padding: 12px; border: 1px dashed var(--line); border-radius: 10px; background: var(--surface); font-size: 12.5px; color: var(--muted); }
.cm-att-tot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 2px 0 10px; padding: 7px 10px; border-radius: 9px; background: var(--surface); font-size: 12px; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); }
.cm-att-tot b { color: var(--ink); font-variant-numeric: tabular-nums; }
.cm-att-tot.cm-troppo { background: var(--danger-50); color: #7A1D15; box-shadow: inset 0 0 0 1px var(--danger-100); }
.cm-att-tot.cm-troppo b { color: var(--danger); }
.cm-att-avv { display: flex; align-items: flex-start; gap: 7px; margin: -4px 0 10px; font-size: 12px; line-height: 1.4; color: #7A1D15; }
.cm-att-avv .i { flex: none; width: 14px; height: 14px; margin-top: 1px; color: var(--danger); }
.cm-att-btn { display: flex; flex-wrap: wrap; gap: 6px; }
.cm-att-btn .btn { flex: 1 1 120px; }
/* buscador de schede tecniche (modal) */
.cm-sch { display: flex; flex-direction: column; gap: 12px; }
.cm-sch-q { position: relative; }
.cm-sch-q > .i { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; color: var(--faint); transform: translateY(-50%); pointer-events: none; }
.cm-sch-q .input { height: 40px; padding-left: 36px; font-size: 14px; }
.cm-sch-l { display: flex; flex-direction: column; min-height: 120px; max-height: min(56vh, 520px); overflow: auto; padding: 4px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface-2); }
.cm-sch-i { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; background: var(--surface); }
.cm-sch-i + .cm-sch-i { margin-top: 4px; }
.cm-sch-i.cm-dis { background: transparent; }
.cm-sch-i.cm-dis .cm-sch-b { opacity: .6; }
.cm-sch-b { flex: 1; min-width: 0; }
.cm-sch-t { font-size: 13.5px; font-weight: 650; color: var(--ink); overflow-wrap: anywhere; }
.cm-sch-m { margin-top: 2px; font-size: 12px; color: var(--muted); }
.cm-sch-s { margin-top: 3px; font-size: 11.5px; line-height: 1.4; color: var(--faint); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; }
.cm-ris { display: inline-flex; align-items: center; gap: 3px; color: #8A4B08; font-weight: 700; }
.cm-ris .i { width: 12px; height: 12px; }
.cm-sch-v { display: flex; align-items: center; gap: 8px; margin: auto; padding: 18px; font-size: 13px; color: var(--muted); }
.cm-sch-v > .i { width: 18px; height: 18px; color: var(--faint); }

/* ------------------------------------------------------------------ stampa */
.sc-print { display: none; }
@media print {
  body.sc-printing > *:not(.sc-print) { display: none !important; }
  body.sc-printing { background: #fff; }
  body.sc-printing .sc-print { display: block; padding: 0; color: #111; font: 11pt/1.45 Arial, Helvetica, sans-serif; }
  .sc-print header { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 3px solid #2E8B2E; }
  .sc-print h1 { margin: 0; font-size: 20pt; }
  .sc-print h2 { margin: 16px 0 6px; font-size: 13pt; color: #1F5FBF; }
  .sc-print h3 { margin: 16px 0 6px; font-size: 11pt; text-transform: uppercase; letter-spacing: .04em; color: #444; }
  .sc-print .sub { color: #555; }
  .sc-print .dx { text-align: right; font-size: 9pt; color: #555; }
  .sc-print .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; }
  .sc-print .kv { display: flex; gap: 8px; }
  .sc-print .kv span { min-width: 110px; color: #666; }
  .sc-print .flags { color: #B45309; font-weight: 700; }
  .sc-print .note { margin: 8px 0; padding: 8px 10px; border: 2px solid #D92D20; color: #B42318; font-weight: 700; }
  .sc-print table { width: 100%; border-collapse: collapse; }
  .sc-print th, .sc-print td { padding: 5px 7px; border: 1px solid #BBB; text-align: left; vertical-align: top; }
  .sc-print th { background: #EEE; font-size: 9pt; text-transform: uppercase; }
  .sc-print .n { text-align: right; white-space: nowrap; }
  @page { margin: 14mm; }
}

/* ------------------------------------------------------------------ drawer estrecho (container queries: también con el asistente abierto) */
@container scheda (max-width: 860px) {
  .sc-head, .sc-scroll { padding-left: 18px; padding-right: 18px; }
  .sc-tabs { margin-left: -18px; margin-right: -18px; padding: 0 12px; overflow-x: auto; }
  .sc-head-act .sc-bl { display: none; }
  .sc-head-act .btn:not(.icon) { padding: 0 9px; }
  .sc-head-act .sc-btn-prim .sc-bl { display: inline; }
  .sc-ask span { display: none; }
  .sc-ctrl-row.sc-ctrl-date { grid-template-columns: minmax(0, 1fr) minmax(0, .7fr) minmax(0, 1fr); }
  .sc-ctrl-row.sc-ctrl-date > .sc-f:last-child { grid-column: 1 / -1; }
  .sc-mon-lg { display: none; }
}
@container scheda (max-width: 720px) {
  .sc-duo, .sc-ctrl-row, .sc-ctrl-row.sc-ctrl-date { grid-template-columns: minmax(0, 1fr); }
  .sc-step-l { font-size: 11px; }
  .sc-step-s { display: none; }
  .sc-g12 .sc-fld { grid-column: span 12; }
  .sc-next-main { flex-wrap: wrap; }
  .sc-next-a { width: 100%; justify-content: flex-start; }
  .sc-sugg-i { flex-wrap: wrap; }
  .sc-tile.sc-tile-wide { grid-column: auto; }
  .sc-mat .sc-mat-marca { white-space: normal; }
  .sc-irow { align-items: flex-start; flex-direction: column; gap: 6px; }
  .sc-mon-h, .sc-mon-sc { flex-wrap: wrap; }
  .sc-mon-app { max-width: none; width: 100%; padding-left: 46px; }
  .sc-mon-a { padding-left: 0; }
  .sc-mon-warn, .sc-mon-link, .sc-mon-form { margin-left: 0; }
  .sc-mon-sc .select { width: 100%; }
  .sc-mon-ed { min-width: 0; }
}
@media (max-width: 900px) {
  .cm { grid-template-columns: minmax(0, 1fr); }
  .cm-side { border-left: 0; border-top: 1px solid var(--line-2); }
  .cm-modal .ui-modal { height: calc(100vh - 24px); }
  .sc-cf-r { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .sc-step-dot, .sc-docbar-f, .sc-star, .sc-pop { transition: none; animation: none; }
}
