/* Elenco interrogazioni (interrogazioni/index). */
.ic-list h1 { margin: 1rem 0 .75rem; font-size: 1.5rem; font-weight: 700; color: #0b3d6b; text-align: center; }

.ic-list .kv-grid-table > thead > tr > th { padding: 8px 10px; vertical-align: bottom; white-space: nowrap; }
.ic-list .kv-grid-table > tbody > tr > td { padding: 7px 10px; vertical-align: top; line-height: 1.4; }
.ic-list .kv-grid-table > tbody > tr:hover > td { background: #eef5fc; }
.ic-list .panel-heading .panel-title { font-size: 1rem; font-weight: 600; }

.ic-num { font-weight: 700; color: #0b3d6b; font-variant-numeric: tabular-nums; }
.ic-name { font-weight: 600; }
.ic-sub { margin-top: 2px; color: #516579; font-size: .85rem; }
.ic-oggetto { min-width: 260px; }
.ic-col-num { width: 92px; white-space: nowrap; }
.ic-col-persona { width: 22%; }
.ic-col-dest { width: 14%; }
.ic-col-stato { width: 150px; white-space: nowrap; }
.ic-col-azioni { width: 84px; text-align: right; white-space: nowrap; }
.ic-col-azioni .btn + .btn { margin-left: 4px; }

.ic-badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.ic-badge--ok { background: #d9f2e3; color: #11643a; }
.ic-badge--wait { background: #fff1cc; color: #7a5300; }

.ic-expand { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border: 1px solid #c7d5e0; border-radius: 6px; color: #005b9f; background: #fff; font-size: 11px; }
.ic-expand:hover { background: #eef5fc; }
.ic-expand.is-open { background: #005b9f; border-color: #005b9f; color: #fff; }
.ic-list .kv-expand-icon-cell { vertical-align: top !important; }

.ic-pagination { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: .5rem 0 1.5rem; }
.ic-pagination > li > a, .ic-pagination > li > span { float: none; min-width: 34px; min-height: 34px; margin: 0; padding: 0 10px; border: 1px solid #d7dfe8; border-radius: 6px !important; font-size: .9rem; line-height: 1; }
.ic-pagination > li > a:hover, .ic-pagination > li > a:focus { background: #eef5fc; border-color: #9fbcd6; }
.ic-pagination > .active > a, .ic-pagination > .active > span { font-weight: 700; }
.ic-pagination > .disabled > a, .ic-pagination > .disabled > span { color: #a7b4c0; background: #f7f9fc; border-color: #e3e9ef; }

/* Dettaglio espandibile. */
.ic-list .kv-expanded-row > td, .ic-list .kv-expand-detail-row > td { background: #f4f8fc !important; padding: 0 !important; }
.ic-detail { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px 28px; padding: 12px 16px 14px 56px; border-left: 3px solid #005b9f; }
.ic-detail-docs { display: flex; flex-wrap: wrap; gap: 8px; }
.ic-doc { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; background: #fff; border: 1px solid #c7d5e0; border-radius: 8px; color: #0b3d6b; font-weight: 600; text-decoration: none; }
.ic-doc:hover, .ic-doc:focus { border-color: #005b9f; background: #eef5fc; text-decoration: none; color: #0b3d6b; }
.ic-doc-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 24px; border-radius: 4px; background: #b3261e; color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .03em; }
.ic-doc--none { padding: 6px 12px; color: #7a8a99; font-weight: 400; background: transparent; border-style: dashed; }
.ic-detail-facts { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 0; }
.ic-detail-facts dt, .ic-detail-label { font-size: .75rem; font-weight: 600; color: #516579; text-transform: uppercase; letter-spacing: .02em; }
.ic-detail-facts dd { margin: 0; font-weight: 600; }
.ic-detail-note { flex-basis: 100%; }
@media (max-width: 700px) { .ic-detail { padding-left: 16px; } }
.ic-doc--missing { color: #9a5b00; border-color: #e0b766; }

/* Associazioni (riusa lo stile dell'elenco interrogazioni). */
.ic-col-id { width: 56px; text-align: right; }
.ic-col-natura { width: 22%; }
.ic-col-data { width: 110px; white-space: nowrap; }
.ic-badge--off { background: #eceff3; color: #5a6b7b; }

/* Dettaglio associazioni: gruppi affiancati con coppie etichetta/valore. */
.ac-detail { align-items: stretch; }
.ac-group { flex: 1 1 320px; min-width: 0; }
.ac-group h4 { margin: 0 0 6px; }
.ac-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; margin: 0; }
.ac-facts dt { color: #516579; font-weight: 600; font-size: .875rem; }
.ac-facts dd { margin: 0; overflow-wrap: anywhere; }
.ac-note { margin: 0; }
