/* Disseminazione Progetti */
.pm-dissem-hidden {
	display: none !important;
}

.pm-dissem-tabs-nav {
	margin: 1em 0 0;
}

.pm-dissem-tab-panel {
	margin-top: 1em;
}

.pm-dissem-social-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 12px;
	margin: 1em 0;
}

.pm-dissem-soc-card {
	text-align: left;
	padding: 0;
	border: 1px solid #c3c4c7;
	background: #fff;
	border-radius: 4px;
	overflow: hidden;
	cursor: pointer;
	transition: box-shadow 0.15s ease;
}

.pm-dissem-soc-card:hover,
.pm-dissem-soc-card.is-selected {
	box-shadow: 0 0 0 2px #2271b1;
	border-color: #2271b1;
}

.pm-dissem-soc-card img {
	width: 100%;
	height: 120px;
	object-fit: cover;
	display: block;
}

.pm-dissem-soc-thumb-ph {
	height: 120px;
	background: linear-gradient(135deg, #eef2f7, #dbe4f0);
}

.pm-dissem-soc-title {
	display: block;
	padding: 8px 10px;
	font-weight: 600;
	font-size: 13px;
	line-height: 1.35;
}

.pm-dissem-img-preview-wrap {
	margin-top: 12px;
	max-width: 520px;
}

.pm-dissem-img-preview-wrap img {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.pm-dissem-acc {
	margin: 12px 0;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	padding: 0 12px;
	background: #fff;
}

.pm-dissem-acc-summary {
	cursor: pointer;
	font-weight: 600;
	padding: 10px 0;
	list-style: none;
}

.pm-dissem-acc-summary::-webkit-details-marker {
	display: none;
}

.pm-dissem-acc-body {
	padding-bottom: 12px;
	border-top: 1px solid #f0f0f1;
}

.pm-dissem-chart {
	min-height: 280px;
	margin: 12px 0;
	position: relative;
}

.pm-dissem-soc-li,
.pm-dissem-soc-tw {
	margin: 10px 0;
}

.pm-dissem-soc-li textarea,
.pm-dissem-soc-tw textarea {
	width: 100%;
	font-family: inherit;
}

/* ── Tab Report: layout progetto, lunghezza, prompt, dropzone ─────────────── */

.pm-dissem-report-intro {
	max-width: 880px;
	margin-bottom: 1.25em;
	line-height: 1.45;
}

.pm-dissem-field {
	margin-bottom: 1.25em;
}

.pm-dissem-field-label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	color: #1d2327;
}

.pm-dissem-project-row {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 14px 16px;
	background: linear-gradient(135deg, #f8fafc 0%, #fff 55%);
	border: 1px solid #dcdcde;
	border-radius: 8px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.pm-dissem-field-icon {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #2271b1;
	color: #fff;
	border-radius: 10px;
	font-size: 22px;
	line-height: 1;
}

.pm-dissem-field-main {
	flex: 1;
	min-width: 0;
}

.pm-dissem-project-select {
	width: 100%;
	max-width: 100%;
	min-height: 38px;
	font-size: 14px;
}

.pm-dissem-pdf-banner {
	margin-top: 0;
	padding: 10px 14px;
	background: #f0f6fc;
	border: 1px solid #c5d9ed;
	border-radius: 6px;
}

.pm-dissem-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0;
	cursor: pointer;
	font-weight: 500;
	line-height: 1.45;
}

.pm-dissem-checkbox-label input[type='checkbox'] {
	margin-top: 3px;
}

.pm-dissem-length-select {
	min-width: min(100%, 420px);
	min-height: 36px;
	font-size: 14px;
}

.pm-dissem-prompt-area {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	font-family: inherit;
	line-height: 1.45;
}

.pm-dissem-docs-field .description {
	margin-top: 4px;
	max-width: 880px;
}

.pm-dissem-docs-stack {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 8px;
}

.pm-dissem-dropzone {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 22px 18px;
	min-height: 120px;
	border: 2px dashed #c3c4c7;
	border-radius: 8px;
	background: #fafbfc;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
	outline: none;
}

.pm-dissem-dropzone:hover {
	border-color: #2271b1;
	background: #f3f7fb;
}

.pm-dissem-dropzone:focus-visible {
	box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.25);
	border-color: #2271b1;
}

.pm-dissem-dropzone.is-dragover {
	border-color: #2271b1;
	background: #eaf3fb;
	border-style: solid;
	box-shadow: inset 0 0 0 3px rgba(34, 113, 177, 0.15);
}

.pm-dissem-dropzone.has-file {
	border-style: solid;
	border-color: #2c8c3c;
	background: #f7fbf6;
}

.pm-dissem-dropzone.has-error {
	border-color: #d63638;
	background: #fdf3f4;
}

.pm-dissem-dropzone-input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
	z-index: 2;
}

.pm-dissem-dropzone-empty {
	text-align: center;
	pointer-events: none;
	color: #1d2327;
}

.pm-dissem-dropzone-icon {
	color: #2271b1;
	line-height: 0;
	margin-bottom: 4px;
}

.pm-dissem-dropzone-text {
	font-size: 14px;
	line-height: 1.45;
}

.pm-dissem-dropzone-muted {
	color: #646970;
	font-weight: 400;
	margin-left: 4px;
}

.pm-dissem-dropzone-hint {
	color: #50575e;
	font-size: 12.5px;
	margin-top: 6px;
	line-height: 1.35;
}

.pm-dissem-dropzone-error {
	color: #b32d2e;
	font-size: 12.5px;
	margin-top: 8px;
	margin-bottom: 0;
}

.pm-dissem-docs-list-wrap .pm-dissem-dropzone-list {
	list-style: none;
	margin: 0;
	padding: 6px 2px 10px;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	gap: 10px;
	width: 100%;
	align-items: stretch;
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: thin;
	box-sizing: border-box;
}

.pm-dissem-dz-item {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 6px;
	flex: 0 0 auto;
	width: 156px;
	min-height: 0;
	padding: 10px 8px;
	margin: 0;
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	border-top: 3px solid #2271b1;
}

.pm-dissem-dz-icon {
	align-self: center;
	flex: 0 0 auto;
	line-height: 0;
	padding: 4px 0;
}

.pm-dissem-ext-badge {
	display: inline-block;
	min-width: 2.5em;
	padding: 5px 8px;
	border-radius: 5px;
	font-size: 11px;
	font-weight: 700;
	text-align: center;
	letter-spacing: 0.02em;
	background: #646970;
	color: #fff;
}

.pm-dissem-ext-badge--pdf {
	background: #c0392b;
}

.pm-dissem-ext-badge--docx,
.pm-dissem-ext-badge--doc {
	background: #2b579a;
}

.pm-dissem-ext-badge--txt,
.pm-dissem-ext-badge--md {
	background: #50575e;
}

.pm-dissem-dz-body {
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
	display: flex;
	flex-direction: column;
	text-align: left;
}

.pm-dissem-dz-name {
	font-size: 12px;
	font-weight: 600;
	color: #1d2327;
	line-height: 1.3;
	word-break: break-word;
	max-height: 3.9em;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
}

.pm-dissem-dz-meta {
	font-size: 11px;
	color: #50575e;
	margin-top: 4px;
	line-height: 1.25;
}

.pm-dissem-dz-type-label {
	display: block;
	margin-top: 6px;
	font-size: 11px;
	color: #1d2327;
	font-weight: 500;
	line-height: 1.25;
}

.pm-dissem-dz-type {
	display: block;
	margin-top: 4px;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	font-size: 11px;
	line-height: 1.3;
	padding: 3px 4px;
	min-height: 28px;
}

.pm-dissem-dz-remove {
	flex: 0 0 auto;
	align-self: center;
	margin-top: 6px;
	color: #b32d2e !important;
	cursor: pointer;
	padding: 4px 6px;
	background: transparent;
	border: 0;
	font-size: 11px;
	white-space: nowrap;
	text-decoration: none;
}

.pm-dissem-dz-remove:hover {
	color: #8b1f20 !important;
	text-decoration: underline;
}

.pm-dissem-actions-row {
	margin-top: 0.5em;
	margin-bottom: 0;
}

/* Anteprima disseminazione (solo dopo «Genera»): accordion + audit tabella */
.pm-dissem-preview-stack {
	margin-top: 1.5em;
}

.pm-dissem-acc-root .pm-dissem-preview-details {
	margin-bottom: 10px;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	background: #fff;
}

.pm-dissem-preview-summary {
	cursor: pointer;
	font-weight: 600;
	padding: 12px 14px;
	list-style: none;
}

.pm-dissem-preview-summary::-webkit-details-marker {
	display: none;
}

.pm-dissem-preview-details[open] > .pm-dissem-preview-summary {
	border-bottom: 1px solid #f0f0f1;
}

.pm-dissem-details-inner {
	padding: 12px 14px;
}

.pm-dissem-editor-shell .mce-edit-area,
.pm-dissem-editor-shell textarea {
	min-height: 200px;
}

.pm-dissem-audit-table {
	margin-top: 4px;
}

.pm-dissem-audit-col-label {
	width: 18%;
	vertical-align: top;
}

.pm-dissem-audit-col-status {
	width: 12%;
	vertical-align: top;
}

.pm-dissem-audit-col-input {
	width: 34%;
	vertical-align: top;
}

.pm-dissem-audit-col-why {
	vertical-align: top;
	font-size: 12px;
}

.pm-dissem-audit-ok {
	color: #00a32a;
	font-weight: 600;
}

.pm-dissem-audit-warn {
	color: #dba617;
	font-weight: 600;
}

.pm-dissem-save-row {
	margin-top: 1em;
}

.pm-dissem-full-pdf-field {
	margin: 12px 0 0;
}
.pm-dissem-full-pdf-name {
	display: block;
	margin: 6px 0;
	font-weight: 600;
	min-height: 1.35em;
	color: #1d2327;
	word-break: break-word;
}
.pm-dissem-full-pdf-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 6px;
}

/* Progress bar generazione report */
.pm-dissem-progress-outer {
	margin-top: 14px;
}

.pm-dissem-progress-track {
	position: relative;
	width: 100%;
	height: 30px;
	background: #F5F6F9;
	border-radius: 15px;
	overflow: hidden;
	box-shadow: inset 0 1px 4px rgba(14, 54, 88, 0.12), 0 1px 2px rgba(14, 54, 88, 0.06);
}

.pm-dissem-progress-fill {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	background: linear-gradient(90deg, #6BC6A5 0%, #145997 55%, #0E3658 100%);
	border-radius: 15px;
	transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
	min-width: 0;
}

.pm-dissem-progress-fill::after {
	content: '';
	position: absolute;
	top: 0;
	left: -70%;
	width: 55%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
	animation: pm-dissem-shimmer 2s ease-in-out infinite;
}

@keyframes pm-dissem-shimmer {
	0% { left: -70%; }
	100% { left: 120%; }
}

.pm-dissem-progress-num {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
	color: #fff;
	text-shadow: 0 1px 3px rgba(14, 54, 88, 0.5);
	letter-spacing: 0.3px;
	z-index: 2;
	pointer-events: none;
}

.pm-dissem-progress-status {
	margin: 7px 0 0;
	font-size: 12.5px;
	color: #435A62;
	letter-spacing: 0.2px;
	font-style: italic;
}

/* Immagini e grafici nell'output del report: ridotti al 50% */
.pm-dissem-acc-body img,
.pm-dissem-details-inner img {
	max-width: 50%;
	height: auto;
	display: block;
}

.pm-dissem-chart {
	max-width: 50%;
}

/* ── Meta WP: obiettivo, partner, task accordion (preview + report finale) ── */

.pm-dissem-wp-meta {
	margin: 0 0 14px;
	padding: 12px 14px;
	background: #f5f8fc;
	border: 1px solid #d8e3f0;
	border-radius: 6px;
}

.pm-dissem-wp-objective {
	margin: 0 0 10px;
	color: #1d2327;
	line-height: 1.45;
}

.pm-dissem-wp-meta-label {
	display: block;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #50575e;
	margin: 8px 0 6px;
}

.pm-dissem-partner-chips {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.pm-dissem-partner-chip {
	display: inline-block;
	padding: 4px 10px;
	background: #fff;
	border: 1px solid #c5d9ed;
	border-left: 3px solid #2271b1;
	border-radius: 4px;
	font-size: 12.5px;
	color: #1d2327;
	line-height: 1.35;
	margin: 0;
}

.pm-dissem-partner-chip--task {
	border-left-color: #6c757d;
	background: #fafbfc;
}

.pm-dissem-wp-tasks {
	margin-top: 10px;
}

.pm-dissem-task {
	margin: 6px 0;
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 4px;
}

.pm-dissem-task[open] {
	border-color: #2271b1;
}

.pm-dissem-task-summary {
	cursor: pointer;
	padding: 8px 12px;
	font-weight: 600;
	font-size: 13px;
	color: #1d2327;
	list-style: none;
	position: relative;
	padding-right: 28px;
}

.pm-dissem-task-summary::-webkit-details-marker {
	display: none;
}

.pm-dissem-task-summary::after {
	content: '+';
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	font-weight: 400;
	font-size: 16px;
	color: #2271b1;
	line-height: 1;
}

.pm-dissem-task[open] > .pm-dissem-task-summary::after {
	content: '−';
}

.pm-dissem-task-body {
	padding: 0 12px 10px;
	border-top: 1px solid #f0f0f1;
}

.pm-dissem-task-meta-label {
	display: block;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: #50575e;
	margin: 8px 0 6px;
	text-transform: uppercase;
}

.pm-dissem-task-empty {
	margin: 8px 0 0;
	color: #6c757d;
	font-size: 12.5px;
}

/* Badge nel riassunto della tendina WP (partner/task count) */
.pm-dissem-wp-summary-badge {
	display: inline-block;
	margin-left: 8px;
	padding: 2px 8px;
	background: #e8eef6;
	border-radius: 10px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: #2271b1;
	vertical-align: middle;
}

/* Inline error message dentro un blocco WP (es. errore Perplexity per la sezione) */
.pm-dissem-inline-msg {
	margin: 0;
	padding: 8px 10px;
	background: #fdf3f4;
	border: 1px solid #e6c0c0;
	border-radius: 4px;
	color: #8b1f20;
	font-size: 12.5px;
}

/* Stream WP: placeholder loading nelle tendine ancora in attesa di risposta */
.pm-dissem-wp-details.is-loading > .pm-dissem-preview-summary {
	background: linear-gradient(90deg, #fff 0%, #f0f6fc 50%, #fff 100%);
	background-size: 200% 100%;
	animation: pm-dissem-loading-shimmer 2.2s linear infinite;
}

@keyframes pm-dissem-loading-shimmer {
	0%   { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

.pm-dissem-wp-details.is-loading > .pm-dissem-preview-summary::before {
	content: '⟳';
	display: inline-block;
	margin-right: 8px;
	color: #2271b1;
	font-weight: 700;
	animation: pm-dissem-loading-spin 1.4s linear infinite;
}

@keyframes pm-dissem-loading-spin {
	from { transform: rotate(0deg); }
	to   { transform: rotate(360deg); }
}

.pm-dissem-wp-loading {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 8px 0 10px;
	padding: 12px 14px;
	background: #f0f6fc;
	border: 1px dashed #c5d9ed;
	border-radius: 6px;
	color: #1d2327;
	font-size: 13px;
}

.pm-dissem-wp-loading-spinner {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	border: 2px solid #c5d9ed;
	border-top-color: #2271b1;
	border-radius: 50%;
	animation: pm-dissem-loading-spin 0.9s linear infinite;
}

.pm-dissem-wp-loading-text {
	font-weight: 500;
	color: #1d2327;
}

.pm-dissem-wp-details.is-loaded > .pm-dissem-preview-summary {
	background: transparent;
	animation: none;
}

.pm-dissem-wp-details.is-loaded > .pm-dissem-preview-summary::before {
	display: none;
}

/* ============================================================
   PIANO ECONOMICO-FINANZIARIO PER PARTNER
   ============================================================ */

#pm-dissem-details-finance > .pm-dissem-preview-summary {
	background: #fff7e6;
	border-left: 4px solid #f59e0b;
}

.pm-dissem-finance-panels {
	padding: 4px 0;
}

.pm-dissem-finance-project-summary {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 14px 16px;
	margin: 0 0 18px;
}

.pm-dissem-finance-project-summary h3 {
	margin: 0 0 10px;
	font-size: 14px;
	color: #0f172a;
	font-weight: 700;
	letter-spacing: 0.01em;
}

.pm-dissem-finance-partners {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.pm-dissem-acc-partner {
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
	transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.pm-dissem-acc-partner:hover {
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.pm-dissem-acc-partner > .pm-dissem-acc-summary {
	padding: 11px 14px;
	cursor: pointer;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	background: #fff;
	border-bottom: 1px solid transparent;
	transition: background 0.15s ease;
}

.pm-dissem-acc-partner[open] > .pm-dissem-acc-summary {
	background: #f8fafc;
	border-bottom-color: #e2e8f0;
}

.pm-dissem-acc-partner > .pm-dissem-acc-summary:hover {
	background: #f1f5f9;
}

.pm-dissem-partner-name {
	font-size: 14px;
	color: #0f172a;
	font-weight: 700;
}

.pm-dissem-partner-role-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 3px 8px;
	border-radius: 999px;
	line-height: 1.4;
}

.pm-dissem-partner-role-badge--proponente {
	background: #fef3c7;
	color: #92400e;
	border: 1px solid #fcd34d;
}

.pm-dissem-partner-role-badge--partecipante {
	background: #dbeafe;
	color: #1e3a8a;
	border: 1px solid #93c5fd;
}

.pm-dissem-partner-pct {
	margin-left: auto;
	font-size: 12px;
	font-weight: 600;
	color: #475569;
	background: #f1f5f9;
	padding: 3px 8px;
	border-radius: 6px;
}

.pm-dissem-partner-body {
	padding: 14px 16px 16px;
	background: #ffffff;
}

.pm-dissem-partner-meta-grid {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 4px 14px;
	margin: 0 0 14px;
	font-size: 13px;
}

.pm-dissem-partner-meta-grid dt {
	color: #64748b;
	font-weight: 600;
	white-space: nowrap;
}

.pm-dissem-partner-meta-grid dd {
	margin: 0;
	color: #0f172a;
}

.pm-dissem-finance-scroll {
	overflow-x: auto;
	margin: 0 -2px;
}

.pm-dissem-finance-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 12.5px;
	background: #fff;
}

.pm-dissem-finance-table th,
.pm-dissem-finance-table td {
	padding: 8px 10px;
	border: 1px solid #e2e8f0;
	text-align: right;
	vertical-align: middle;
	white-space: nowrap;
}

.pm-dissem-finance-table th {
	background: #f8fafc;
	color: #0f172a;
	font-weight: 700;
	text-align: center;
	font-size: 12px;
}

.pm-dissem-finance-table th.pm-dissem-th-group {
	background: #eff6ff;
	color: #1e3a8a;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	font-size: 11px;
}

.pm-dissem-finance-table thead tr:nth-child(2) th {
	background: #f1f5f9;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.01em;
}

.pm-dissem-finance-table td:first-child,
.pm-dissem-finance-table th:first-child {
	text-align: left;
	color: #334155;
	white-space: normal;
	max-width: 280px;
}

.pm-dissem-finance-row-total {
	background: #fef3c7;
}

.pm-dissem-finance-row-total th,
.pm-dissem-finance-row-total td {
	background: #fef3c7;
	font-weight: 700;
	color: #78350f;
	border-top: 2px solid #f59e0b;
}

/* Riga sotto-totale per intervento (Azione X.Y - Intervento X.Y.Z). */
.pm-dissem-finance-row-subtotal {
	background: #ecfdf5;
}

.pm-dissem-finance-row-subtotal th,
.pm-dissem-finance-row-subtotal td {
	background: #ecfdf5;
	font-weight: 700;
	color: #065f46;
	border-top: 2px solid #10b981;
	font-size: 12.5px;
}

/* Riga voce di spesa con tutti i valori a 0 (cella visivamente vuota nel proforma). */
.pm-dissem-finance-row-empty td {
	color: #94a3b8;
	background: #fafafa;
	font-style: italic;
}

.pm-dissem-finance-row-empty td:first-child {
	color: #64748b;
	font-style: normal;
}

/* Blocco per intervento (Azione/Intervento) con la sua intestazione h4. */
.pm-dissem-intervention-block {
	margin: 0 0 16px;
}

.pm-dissem-intervention-block:last-child {
	margin-bottom: 6px;
}

.pm-dissem-intervention-heading {
	margin: 14px 0 8px;
	padding: 8px 12px;
	background: linear-gradient(90deg, #d1fae5 0%, #ecfdf5 100%);
	border-left: 4px solid #10b981;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 700;
	color: #065f46;
	letter-spacing: 0.01em;
	line-height: 1.3;
}

/* Tabella "Totale generale partner" mostrata sotto le tabelle per intervento. */
.pm-dissem-partner-grand-total {
	margin-top: 4px;
}

.pm-dissem-finance-table--grand {
	background: #fff7ed;
}

.pm-dissem-finance-table--grand thead th {
	background: #fed7aa;
	color: #7c2d12;
}

.pm-dissem-finance-table--grand .pm-dissem-th-group {
	background: #fdba74;
	color: #7c2d12;
}

.pm-dissem-finance-table--summary {
	margin: 0;
}

.pm-dissem-finance-table--summary th[scope="row"] {
	text-align: left;
	background: #f8fafc;
	color: #0f172a;
	font-weight: 600;
}

.pm-dissem-partner-no-data,
.pm-dissem-partner-notes {
	margin: 6px 0 0;
	font-size: 12.5px;
	color: #475569;
}

.pm-dissem-partner-notes {
	background: #f8fafc;
	border-left: 3px solid #cbd5e1;
	padding: 8px 12px;
	border-radius: 0 6px 6px 0;
}

.pm-dissem-finance-summary-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	padding: 3px 8px;
	border-radius: 999px;
	background: #f59e0b;
	color: #fff;
	margin-left: 6px;
	line-height: 1.4;
}

@media (max-width: 720px) {
	.pm-dissem-acc-partner > .pm-dissem-acc-summary {
		flex-wrap: wrap;
	}
	.pm-dissem-partner-pct {
		margin-left: 0;
	}
	.pm-dissem-partner-meta-grid {
		grid-template-columns: 1fr;
	}
	.pm-dissem-finance-table {
		font-size: 11.5px;
	}
}

/* ── Sezioni budget supplementari (C.3, C.4, C.5) ── */
.pm-dissem-budget-supplement-wrap {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid #e2e8f0;
}
.pm-dissem-budget-supplement {
	display: flex;
	flex-direction: column;
	gap: 28px;
}
.pm-dissem-budget-section-title {
	font-size: 14px;
	font-weight: 600;
	color: #1e293b;
	margin: 0 0 10px;
	padding-bottom: 6px;
	border-bottom: 2px solid #e2e8f0;
}
