/* ======================================================================
   COUVERTURE DES INTERVENTIONS (SIBGRO-072) — carte « Couverture » et
   grille « ce que couvre chaque formule ».
   Le dessin vient du serveur (Couverture::carte / grilleHtml, inc/isobl.php).
   Chargée par inc/template_start.php (CRM) et par sav_report.php (page du
   technicien, autonome).
   ====================================================================== */

.couv-carte {
	--couv: #6b7280;
	margin: 8px 0; padding: 10px 12px;
	border: 1px solid var(--couv);
	border-left-width: 5px;
	border-radius: 6px;
	background: color-mix(in srgb, var(--couv) 8%, #fff);
	color: #1b2030; font-size: 13px; line-height: 1.4; text-align: left;
}
.couv-carte.couv-couvert    { --couv: #1e8449; }
.couv-carte.couv-facturable { --couv: #d35400; }
.couv-carte.couv-aucune     { --couv: #c0392b; }
.couv-carte.couv-a_verifier { --couv: #6b7280; }

.couv-tete { display: flex; align-items: flex-start; gap: 10px; }
.couv-tete .couv-ico { font-size: 22px; color: var(--couv); flex: 0 0 auto; line-height: 1; }
.couv-tete strong { display: block; color: var(--couv); font-size: 14px; }
.couv-tete .couv-note { margin-top: 3px; font-size: 12px; font-style: italic; }

.couv-liste {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 2px 14px; margin: 8px 0 0; padding: 8px 0 0;
	border-top: 1px dashed color-mix(in srgb, var(--couv) 35%, transparent);
	list-style: none; font-size: 12px;
}
.couv-liste li { display: flex; align-items: center; gap: 5px; }
.couv-liste .couv-ok i  { color: #1e8449; }
.couv-liste .couv-non   { color: #8a8f99; }
.couv-liste .couv-non i { color: #c0392b; }
.couv-liste li.couv-demande { font-weight: 700; color: inherit; }
.couv-pied { margin-top: 6px; font-size: 11px; opacity: .75; }

/* Page du technicien : pas de police d'icônes chargée → pastilles textuelles */
.couv-carte .couv-puce { display: inline-block; width: 14px; text-align: center; font-weight: 700; }

/* Passage : motif quand on va contre l'avis, rappel de signature */
.couv-motif { margin-top: 6px; }
.couv-motif label { font-weight: 600; font-size: 12px; }
.couv-signature {
	display: flex; align-items: center; gap: 8px;
	margin: 8px 0; padding: 8px 12px; border-radius: 6px;
	border: 1px solid #d35400; background: color-mix(in srgb, #d35400 9%, #fff);
	color: #1b2030; font-size: 13px;
}
.couv-signature i { color: #d35400; font-size: 18px; }
.couv-badge {
	display: inline-block; padding: 0 7px; border-radius: 10px;
	font-size: 11px; font-weight: 600; line-height: 18px; white-space: nowrap; color: #fff;
}
.couv-badge.couv-couvert    { background: #1e8449; }
.couv-badge.couv-facturable { background: #d35400; }
.couv-badge.couv-aucune     { background: #c0392b; }
.couv-badge.couv-a_verifier { background: #6b7280; }

/* Grille de Paramètres */
.couv-grille { width: 100%; border-collapse: collapse; font-size: 12px; }
.couv-grille th, .couv-grille td { padding: 6px 8px; border-bottom: 1px solid rgba(0, 0, 0, .08); }
.couv-grille thead th { text-align: center; font-weight: 600; vertical-align: bottom; }
.couv-grille thead th:first-child, .couv-grille tbody th { text-align: left; }
.couv-grille tbody th small { display: block; font-weight: 400; opacity: .7; }
.couv-grille td { text-align: center; }
.couv-grille input[type=checkbox] { width: 16px; height: 16px; cursor: pointer; }
.couv-grille tr.couv-rien th { opacity: .75; }

/* Mode sombre du thème V3 */
.v2-dark .couv-carte { background: color-mix(in srgb, var(--couv) 20%, #1b2030); color: #f4f7fb; }
.v2-dark .couv-tete strong { color: #fff; }
.v2-dark .couv-liste .couv-non { color: #aab0bb; }
.v2-dark .couv-signature { background: color-mix(in srgb, #d35400 22%, #1b2030); color: #f4f7fb; }
