/* Intesa Selection — dashboard gestionale. Palette derivata dal template baresto. */
:root {
	--isd-primary: #009444;
	--isd-primary-d: #00702f;
	--isd-tertiary: #4d8065;
	--isd-bg: #f4f6f5;
	--isd-card: #ffffff;
	--isd-ink: #1c2421;
	--isd-muted: #6b7770;
	--isd-line: #e3e8e5;
	--isd-danger: #c0392b;
	--isd-radius: 14px;
	--isd-shadow: 0 6px 26px rgba(0, 0, 0, .08);
}

* { box-sizing: border-box; }

body.isd {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	background: var(--isd-bg);
	color: var(--isd-ink);
	line-height: 1.55;
}

a { color: var(--isd-primary); text-decoration: none; }

/* ── Topbar ─────────────────────────────────────────────────────────────── */
.isd-topbar {
	background: #0a0a0a;
	color: #fff;
	padding: 14px 26px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
}
.isd-topbar .isd-brand { display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; }
.isd-topbar img { height: 38px; width: auto; }
.isd-topbar .isd-brand-txt { font-weight: 700; letter-spacing: .04em; }
.isd-topbar .isd-brand-txt small { display: block; font-weight: 400; font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: var(--isd-primary); }
.isd-logout { color: #fff; opacity: .8; font-size: 13px; border: 1px solid rgba(255,255,255,.25); padding: 7px 16px; border-radius: 50px; transition: .2s; }
.isd-logout:hover { opacity: 1; border-color: var(--isd-primary); }

/* Ritorno al gestionale: dentro una sezione l'unica uscita era il logout.
   Geometria identica a .isd-logout:
   stessa altezza e stesso raggio, così le due pill sono allineate. */
.isd-top-acts { display: flex; align-items: center; gap: 10px; }
.isd-logout, .isd-topback {
	display: inline-flex; align-items: center; justify-content: center; gap: 7px;
	height: 34px; padding: 0 16px; border-radius: 50px; line-height: 1;
	font-size: 13px; text-decoration: none; color: #fff; opacity: .8;
	border: 1px solid rgba(255,255,255,.25); transition: .2s;
}
.isd-topback:hover { opacity: 1; border-color: var(--isd-primary); color: #fff; }
.isd-topback svg { width: 15px; height: 15px; }
/* Sotto i 700px il logo e due pill non convivono: resta la sola freccia. */
@media (max-width: 700px) {
	.isd-topback span { display: none; }
	.isd-topback { padding: 0 11px; }
}

/* ── Layout ─────────────────────────────────────────────────────────────── */
/* Sfondo = immagine del sito (in var --isd-hero sul body), sfocata e scurita per leggibilità.
   Layer separato così il blur non tocca i contenuti. */
body.isd.has-bg { background: #0f1310; }
body.isd.has-bg::before { content: ""; position: fixed; inset: -20px; z-index: 0; pointer-events: none;
	background-image: var(--isd-hero); background-size: cover; background-position: center;
	filter: blur(8px) brightness(.5) saturate(.9); transform: scale(1.05); }
body.isd.has-bg::after { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
	background: linear-gradient(rgba(12,15,13,.74), rgba(12,15,13,.84)); }
body.isd.has-bg .isd-topbar, body.isd.has-bg .isd-wrap { position: relative; z-index: 1; }

.isd-wrap { max-width: 1100px; margin: 0 auto; padding: 34px 22px 70px; }
.isd-page-title { font-size: 26px; font-weight: 700; margin: 0 0 4px; }
.isd-page-sub { color: var(--isd-muted); margin: 0 0 28px; font-size: 14px; }
body.isd.has-bg .isd-page-title { color: #fff; }
body.isd.has-bg .isd-page-sub { color: rgba(255,255,255,.82); }
body.isd.has-bg .isd-page-sub b { color: #fff; }

.isd-grid2 { display: grid; grid-template-columns: 1fr 1.3fr; gap: 26px; align-items: start; }
@media (max-width: 860px) { .isd-grid2 { grid-template-columns: 1fr; } }

.isd-card {
	background: var(--isd-card);
	border-radius: var(--isd-radius);
	box-shadow: var(--isd-shadow);
	padding: 24px 26px;
}
.isd-card h2 { font-size: 17px; margin: 0 0 18px; display: flex; align-items: center; gap: 9px; }
.isd-card h2 .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--isd-primary); }

/* ── Form ───────────────────────────────────────────────────────────────── */
.isd-field { margin-bottom: 16px; }
.isd-field label { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--isd-muted); margin-bottom: 6px; }
.isd-field input[type=text],
.isd-field input[type=date],
.isd-field input[type=password],
.isd-field input[type=email],
.isd-field input[type=tel],
.isd-field input[type=number],
.isd-field textarea {
	width: 100%;
	border: 1px solid var(--isd-line);
	border-radius: 10px;
	padding: 11px 13px;
	font-size: 14px;
	font-family: inherit;
	color: var(--isd-ink);
	background: #fbfcfb;
	transition: .15s;
}
.isd-field textarea { min-height: 110px; resize: vertical; }
.isd-field input:focus, .isd-field textarea:focus { outline: none; border-color: var(--isd-primary); background: #fff; box-shadow: 0 0 0 3px rgba(0,148,68,.12); }
.isd-field .hint { font-size: 12px; color: var(--isd-muted); margin-top: 5px; }

.isd-filepreview { margin-top: 10px; }
.isd-filepreview img { max-height: 120px; border-radius: 10px; border: 1px solid var(--isd-line); }

.isd-btn {
	display: inline-flex; align-items: center; gap: 8px;
	background: var(--isd-primary); color: #fff; border: none;
	border-radius: 50px; padding: 12px 26px; font-size: 14px; font-weight: 600;
	cursor: pointer; transition: .2s;
}
.isd-btn:hover { background: var(--isd-primary-d); }
.isd-btn-ghost { background: transparent; color: var(--isd-muted); border: 1px solid var(--isd-line); }
.isd-btn-ghost:hover { background: #fff; color: var(--isd-ink); }
.isd-btn-danger { background: transparent; color: var(--isd-danger); border: 1px solid rgba(192,57,43,.3); padding: 7px 14px; font-size: 13px; }
.isd-btn-danger:hover { background: var(--isd-danger); color: #fff; }

/* ── Alert / flash ──────────────────────────────────────────────────────── */
.isd-flash { padding: 13px 18px; border-radius: 10px; margin-bottom: 22px; font-size: 14px; }
.isd-flash.ok { background: #e6f4ec; color: #00702f; border: 1px solid #b7ddc6; }
.isd-flash.err { background: #fbe9e7; color: #a5281b; border: 1px solid #f1c0ba; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.isd-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.isd-head .isd-page-title, .isd-head .isd-page-sub { margin-bottom: 0; }
.isd-head .isd-page-sub { margin-top: 6px; max-width: 640px; }
.isd-yearpill { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); border-radius: 14px; padding: 10px 22px; backdrop-filter: blur(6px); }
.isd-yearpill span { font-size: 10px; text-transform: uppercase; letter-spacing: .22em; color: rgba(255,255,255,.7); }
.isd-yearpill b { font-size: 26px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; line-height: 1.1; }
body.isd:not(.has-bg) .isd-yearpill { background: var(--isd-card); border-color: var(--isd-line); }
body.isd:not(.has-bg) .isd-yearpill span { color: var(--isd-muted); }
body.isd:not(.has-bg) .isd-yearpill b { color: var(--isd-ink); }

/* ── Riepilogo: barra glass + pallini trimestri ─────────────────────────── */
.isd-summary { display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap;
	background: rgba(12,15,13,.55); border: 1px solid rgba(255,255,255,.14); border-radius: 16px;
	padding: 16px 24px; margin-bottom: 24px; backdrop-filter: blur(12px); }
body.isd:not(.has-bg) .isd-summary { background: var(--isd-card); border-color: var(--isd-line); box-shadow: var(--isd-shadow); }

.isd-summary-now { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.isd-summary-now .k { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: #46d07e; }
.isd-summary-now .v { font-size: 18px; font-weight: 700; color: #fff; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.isd:not(.has-bg) .isd-summary-now .v { color: var(--isd-ink); }
body.isd:not(.has-bg) .isd-summary-now .k { color: var(--isd-primary); }

.isd-summary-track { display: flex; align-items: center; gap: 22px; flex-shrink: 0; }
.isd-qdots { display: flex; gap: 14px; }
.isd-qd { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.isd-qd small { font-size: 10px; font-weight: 700; letter-spacing: .04em; color: rgba(255,255,255,.6); }
body.isd:not(.has-bg) .isd-qd small { color: var(--isd-muted); }
.isd-qd .dot { width: 13px; height: 13px; border-radius: 50%; border: 2px solid rgba(255,255,255,.45); background: transparent; box-sizing: border-box; }
body.isd:not(.has-bg) .isd-qd .dot { border-color: var(--isd-line); }
.isd-qd .dot.is-fill { background: rgba(255,255,255,.85); border-color: transparent; }   /* compilato */
body.isd:not(.has-bg) .isd-qd .dot.is-fill { background: var(--isd-muted); }
.isd-qd .dot.is-attivo.is-fill { background: var(--isd-primary); }                          /* in vetrina ora */
.isd-qd .dot.is-now { box-shadow: 0 0 0 3px rgba(0,148,68,.5); border-color: var(--isd-primary); }
.isd-qd .dot.is-now:not(.is-fill) { background: rgba(0,148,68,.25); }

.isd-summary-meta { font-size: 13px; color: rgba(255,255,255,.85); white-space: nowrap; }
.isd-summary-meta b { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.isd-summary-meta .sep { margin: 0 8px; opacity: .5; }
body.isd:not(.has-bg) .isd-summary-meta { color: var(--isd-muted); }
body.isd:not(.has-bg) .isd-summary-meta b { color: var(--isd-ink); }
@media (max-width: 560px) { .isd-summary { gap: 14px; } .isd-summary-track { width: 100%; justify-content: space-between; gap: 14px; } }

/* ── Griglia slot trimestrali ───────────────────────────────────────────── */
.isd-slot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1040px) { .isd-slot-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .isd-slot-grid { grid-template-columns: 1fr; } }

.isd-slot { background: var(--isd-card); border-radius: var(--isd-radius); box-shadow: var(--isd-shadow); border: 1px solid var(--isd-line); display: flex; flex-direction: column; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.isd-slot:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(0,0,0,.13); }
.isd-slot.is-attivo { border-color: var(--isd-primary); box-shadow: 0 0 0 2px rgba(0,148,68,.25), var(--isd-shadow); }

/* Slot vuoto: discreto, una sola CTA (l'intera card è cliccabile) */
.isd-slot.is-empty { background: rgba(255,255,255,.55); border: 1.5px dashed #c4cdc7; box-shadow: none; text-decoration: none; color: inherit; }
.isd-slot.is-empty:hover { transform: translateY(-3px); border-color: var(--isd-primary); background: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.12); }
.isd-slot.is-empty .isd-slot-q .qn,
.isd-slot.is-empty .isd-slot-q .qp { color: var(--isd-muted); }
.isd-empty-cta { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; padding: 26px 16px 30px; color: var(--isd-muted); transition: color .18s; }
.isd-slot.is-empty:hover .isd-empty-cta { color: var(--isd-primary-d); }
.isd-empty-cta .plus { font-size: 32px; font-weight: 300; line-height: 1; color: var(--isd-tertiary); }
.isd-slot.is-empty:hover .isd-empty-cta .plus { color: var(--isd-primary); }
.isd-empty-cta .t { font-size: 14px; font-weight: 700; color: var(--isd-ink); }
.isd-empty-cta .s { font-size: 12px; color: var(--isd-muted); }

.isd-slot-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 15px 15px 12px; }
.isd-slot-q { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.isd-slot-q .qn { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--isd-primary); }
.isd-slot-q .qp { font-size: 14.5px; font-weight: 700; color: var(--isd-ink); white-space: nowrap; line-height: 1.2; }
.isd-slot-q .qd { font-size: 11px; font-weight: 500; color: var(--isd-muted); white-space: nowrap; }

.isd-slot-media { position: relative; aspect-ratio: 16/10; background: #0d0d0d; }
.isd-slot-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.isd-slot-media .ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #aeb8b2; background: linear-gradient(135deg, #eef1ef, #dfe4e1); }
.isd-slot-media .ph svg { opacity: .8; }
.isd-slot-media.noimg img { display: none; }

.isd-slot-body { padding: 14px 16px 6px; flex: 1; }
.isd-slot-title { font-size: 15px; font-weight: 700; color: var(--isd-ink); line-height: 1.3; margin-top: 7px; }
.isd-slot-marca { font-size: 12px; color: var(--isd-muted); margin-top: 3px; }
.isd-chip { display: inline-block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--isd-primary-d); background: #e7f3ec; border: 1px solid #cfe7d8; padding: 3px 10px; border-radius: 50px; }

.isd-slot-foot { display: flex; align-items: center; gap: 8px; padding: 12px 15px 15px; }
.isd-slot-foot .isd-btn { flex: 1; justify-content: center; }
.isd-slot-foot form { display: inline-flex; }

.isd-btn.sm { padding: 9px 16px; font-size: 13px; }
.isd-btn-danger.sm { padding: 9px 13px; flex: 0 0 auto !important; }

.isd-badge { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 4px 10px; border-radius: 50px; white-space: nowrap; flex-shrink: 0; }
.isd-badge.attivo { background: var(--isd-primary); color: #fff; }
.isd-badge.programmato { background: #fff4e0; color: #9a6b00; border: 1px solid #f0dcae; }
.isd-badge.concluso { background: #ececec; color: #888; }

/* ── Modale form ────────────────────────────────────────────────────────── */
body.isd.modal-open { overflow: hidden; }
.isd-modal { position: fixed; inset: 0; z-index: 999; display: none; align-items: flex-start; justify-content: center; padding: 40px 18px; background: rgba(8,10,9,.6); backdrop-filter: blur(3px); overflow: auto; }
.isd-modal.open { display: flex; }
.isd-modal-card { background: var(--isd-card); border-radius: 20px; width: 100%; max-width: 740px; box-shadow: 0 30px 80px rgba(0,0,0,.45); animation: iselModalIn .26s cubic-bezier(.2,.8,.25,1); overflow: hidden; }
@keyframes iselModalIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.isd-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 22px 28px 18px; border-bottom: 1px solid var(--isd-line); background: linear-gradient(180deg, #fbfdfc, #fff); }
.isd-modal-head h2 { font-size: 20px; margin: 0; letter-spacing: -.01em; }
.isd-modal-sub { font-size: 12px; color: var(--isd-primary); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; display: inline-block; }
.isd-modal-x { font-size: 26px; line-height: 1; color: var(--isd-muted); width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 10px; transition: .15s; flex-shrink: 0; }
.isd-modal-x:hover { background: #f0f2f1; color: var(--isd-ink); }
.isd-modal-form { padding: 0; }

/* Layout 2 colonne: dettagli + immagine */
.isd-form-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 26px; padding: 24px 28px 6px; }
@media (max-width: 620px) { .isd-form-grid { grid-template-columns: 1fr; gap: 8px; } }
.isd-form-main { min-width: 0; }
.isd-form-main .isd-field:last-child { margin-bottom: 0; }
.isd-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 420px) { .isd-field-row { grid-template-columns: 1fr; } }
.isd-field label small { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--isd-muted); }
.isd-lock { font-size: 11px; }

/* Select con chevron custom */
.isd-select-wrap { position: relative; }
.isd-select-wrap::after { content: ""; position: absolute; right: 14px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--isd-muted); border-bottom: 2px solid var(--isd-muted); transform: translateY(-65%) rotate(45deg); pointer-events: none; }
.isd-field select { width: 100%; border: 1px solid var(--isd-line); border-radius: 11px; padding: 12px 38px 12px 14px; font-size: 14px; font-family: inherit; color: var(--isd-ink); background: #fbfcfb; transition: .15s; appearance: none; -webkit-appearance: none; cursor: pointer; }
.isd-field select:focus { outline: none; border-color: var(--isd-primary); background: #fff; box-shadow: 0 0 0 3px rgba(0,148,68,.12); }
.isd-field select:disabled { opacity: .65; cursor: not-allowed; background: #f1f3f2; }

/* Dropzone immagine */
.isd-form-side > label { display: block; }
.isd-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 188px; border: 2px dashed var(--isd-line); border-radius: 14px; background: #fbfcfb; color: var(--isd-muted); cursor: pointer; overflow: hidden; transition: border-color .18s, background .18s; text-align: center; padding: 16px; }
.isd-drop:hover { border-color: var(--isd-primary); background: #f3f9f5; color: var(--isd-primary-d); }
.isd-drop .isd-drop-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.isd-drop .isd-drop-ph { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.isd-drop .isd-drop-t { font-size: 13px; font-weight: 600; color: var(--isd-ink); }
.isd-drop .isd-drop-h { font-size: 11px; color: var(--isd-muted); letter-spacing: .02em; }
.isd-drop .isd-drop-edit { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); background: rgba(10,12,11,.78); color: #fff; font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: 50px; opacity: 0; transition: opacity .18s; }
.isd-drop.has-img .isd-drop-ph { display: none; }
.isd-drop.has-img:hover .isd-drop-edit { opacity: 1; }
.isd-drop.has-img { border-style: solid; border-color: transparent; }

.isd-modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 28px; position: sticky; bottom: 0; background: var(--isd-card); border-top: 1px solid var(--isd-line); }

/* ── Login ──────────────────────────────────────────────────────────────── */
.isd-login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 22px; background: #0a0a0a; }
.isd-login-card { background: #fff; border-radius: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.4); padding: 40px 38px; width: 100%; max-width: 400px; }
.isd-login-card .isd-login-logo { text-align: center; margin-bottom: 26px; }
/* Fascia scura: il logo del tenant è bianco e su sfondo chiaro sparirebbe. */
.isd-login-card .isd-login-logo.dark-band { background: #0a0a0a; border-radius: 14px; padding: 22px 18px; display: flex; align-items: center; justify-content: center; }
.isd-login-card .isd-login-logo img { height: 54px; max-width: 100%; }
.isd-login-card h1 { font-size: 21px; margin: 0 0 4px; text-align: center; }
.isd-login-card .sub { text-align: center; color: var(--isd-muted); font-size: 13px; margin: 0 0 26px; }
.isd-login-card .isd-btn { width: 100%; justify-content: center; margin-top: 6px; }

/* ══════════════════════════════════════════════════════════════════════════
   HUB (2 voci) · back link · Gestione Card
   ══════════════════════════════════════════════════════════════════════════ */

/* Hub tiles */
.isd-hub { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 720px) { .isd-hub { grid-template-columns: 1fr; } }
.isd-hub-tile {
	display: flex; align-items: center; gap: 18px;
	background: var(--isd-card); border-radius: var(--isd-radius);
	box-shadow: var(--isd-shadow); padding: 26px 24px;
	color: var(--isd-ink); border: 1px solid transparent;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.isd-hub-tile:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,.16); border-color: var(--isd-primary); }
.isd-hub-ico { flex: 0 0 auto; width: 58px; height: 58px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: rgba(0,148,68,.1); color: var(--isd-primary); }
.isd-hub-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.isd-hub-title { font-size: 19px; font-weight: 700; }
.isd-hub-desc { font-size: 13.5px; color: var(--isd-muted); line-height: 1.45; }
.isd-hub-meta { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--isd-primary); margin-top: 6px; }
.isd-hub-arrow { flex: 0 0 auto; font-size: 22px; color: var(--isd-muted); transition: transform .18s ease, color .18s ease; }
.isd-hub-tile:hover .isd-hub-arrow { color: var(--isd-primary); transform: translateX(4px); }

/* Gestione Card — tabella */
.icd-tablecard { padding: 0; overflow: hidden; }
.icd-table-scroll { overflow-x: auto; }
.icd-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.icd-table th { text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--isd-muted); padding: 15px 16px; border-bottom: 1px solid var(--isd-line); white-space: nowrap; background: #fafbfa; }
.icd-table td { padding: 14px 16px; border-bottom: 1px solid var(--isd-line); vertical-align: middle; }
.icd-table tr:last-child td { border-bottom: 0; }
.icd-table tr:hover td { background: #fafcfb; }
.icd-num { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.icd-sub { display: block; font-size: 12px; color: var(--isd-muted); margin-top: 2px; }
.ta-c { text-align: center; } .ta-r { text-align: right; }
.icd-actions { white-space: nowrap; }
.icd-actions .isd-btn { display: inline-flex; }
.icd-badge { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 4px 11px; border-radius: 50px; }
.icd-badge.is-on { background: #e6f4ec; color: #00702f; }
.icd-badge.is-off { background: #fff3e0; color: #b26a00; }
.icd-empty { text-align: center; padding: 40px 24px; }
.icd-empty p { color: var(--isd-muted); margin: 0 0 16px; }

/* Gestione Card — form modale */
.icd-modal-card { max-width: 780px; }
.icd-form { padding: 24px 28px 6px; }
.icd-sec { font-size: 15px; font-weight: 700; color: var(--isd-primary); margin: 4px 0 12px; }
.icd-sec + .icd-cardbox { margin-bottom: 22px; }
.icd-cardbox { background: #f1f3f2; border: 1px solid var(--isd-line); border-radius: var(--isd-radius); padding: 20px 20px 4px; margin-bottom: 22px; }
.icd-cardbox .isd-field-row { margin-bottom: 0; }
.icd-note { font-size: 12px; color: var(--isd-muted); margin: 4px 0 12px; }
.icd-form h3.icd-sec:not(:first-child) { margin-top: 8px; }
.icd-row3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 560px) { .icd-row3 { grid-template-columns: 1fr; } }
