/* HABILLAGE VISUEL DE CE RAPPORT — repris du style adopté sur le rapport DRV / UTOPIA (style "B+D" : bandeau anthracite / rouge + police Segoe UI + coins arrondis), appliqué ici à… */

/* POLICE : Segoe UI partout (au lieu du mélange Arial Narrow/Segoe UI d'origine, --font est utilisée par common.css pour tous les champs de saisie, boutons, zone remarques, etc.). */
:root {
  --font: "Segoe UI", Inter, -apple-system, Arial, sans-serif;
}
body {
  font-family: var(--font);
}

/* TITRE D'EN-TÊTE : titre sur 2 lignes ("Rapport d'assistance à la mise en service" / "Passerelle GTB / GTC"), même police agrandie et même padding que sur le rapport DRV/Utopia… */
.page-header-title h1 {
  font-size: 24px;
  line-height: 1.18;
  letter-spacing: -0.2px;
}
/* Le titre sur 2 lignes en 24px prend plus de hauteur que l'original (19px). */
.page {
  padding-top: 5mm;
}
.page-header {
  margin-bottom: 2px;
  padding-bottom: 2px;
}

/* EN-TÊTES DE TABLEAU (<th>) : teinte anthracite au lieu du gris neutre --gray-header, pour un ensemble plus cohérent. */
table thead tr th,
table tr:first-child th,
th {
  background: #5a5f6c !important;
  color: #fff !important;
}

/* SOUS-TITRES DE BLOC : rouge Hitachi plein + texte blanc, au lieu du gris d'origine --gray-header. */
.sub-section-title {
  background: var(--red) !important;
  color: #fff !important;
}

/* CHAMPS DE SAISIE : gris plus foncé pour bien se détacher des cellules de tableau, coins arrondis et halo rouge au focus. */
input[type="text"],
input[type="date"],
input[type="time"],
select {
  background: #d7d9df !important;
  border-radius: 7px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
input[type="text"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
select:focus {
  background: #fffde7 !important;
  border-color: var(--red) !important;
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.12);
}
/* Les champs texte insérés dans des cellules de tableau restent transparents (ils suivent le fond de la cellule, zébrée ou non). */
td input[type="text"],
td input[type="date"],
td input[type="time"],
th input[type="text"],
th input[type="date"],
th input[type="time"] {
  background: transparent !important;
}

/* ===== BOUTONS D'ACTION : coins arrondis, cohérents avec le reste. ===== */
.btn {
  border-radius: 8px;
}

/* ZONES DE REMARQUES / SIGNATURE / PHOTO / AVERTISSEMENT : coins arrondis pour rester cohérent. */
.remarks-area,
.signature-pad-wrap,
.switch-cell,
.warning-box {
  border-radius: 8px;
}
/* Fond de la zone "Remarques" aligné sur le gris de zébrage plutôt que --gray-cell (un peu plus foncé). */
.remarks-area {
  background: #eef0f4 !important;
}
/* Titres "Signature intervenant"/"Signature client"/etc. */
.signature-label {
  background: #5a5f6c !important;
}

/* HOMOGÉNÉISATION DES TAILLES/GRAISSES DE POLICE DU CORPS DU RAPPORT (hors en-tête/pied de page, titres, sous-titres et en-têtes de tableau) : plusieurs libellés communs à tous les… */
.coord-label,
.intervenant-row .label,
.bus-row .label,
.cl-label {
  font-weight: 400 !important;
}
td.label-col {
  font-size: 11px !important;
  font-weight: 400 !important;
}

/* ===== PAGE & BLOCS : coins arrondis + ombre douce (style B) ===== */
.page {
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(20, 20, 30, 0.14);
  overflow: hidden;
}
.block,
.completion-block {
  border-radius: 12px;
  border-color: #e2e2e6;
  box-shadow: 0 2px 10px rgba(20, 20, 30, 0.06);
  overflow: hidden;
}

/* ===== LOGO D'EN-TÊTE : "BOSCH" en rouge (même rouge que le reste du rapport) ===== */
.hitachi-logo .logo-text {
  color: var(--red);
}

/* ===== BANDEAU DE SECTION : anthracite + liseré rouge, texte MAJUSCULE conservé (style D) ===== */
.section-title {
  background: #20232b !important;
  position: relative;
  padding-left: 18px !important;
  padding-right: 18px !important;
  text-transform: uppercase;
  /* Voir csnet2-style.css : arrondi propre du bandeau, nécessaire quand il
     est utilisé seul (pages "SUITE REMARQUES" générées à l'impression),
     sans effet indésirable ailleurs (bandeau à hauteur fixe). */
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}
.section-title::before,
.section-title::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--red);
}
.section-title::before {
  left: 0;
}
.section-title::after {
  right: 0;
}

/* "Test de fonctionnement" : ligne en 2 colonnes (Tests de communication concluants / Tests réalisés
   en la présence de). Grand écran et impression : les 2 groupes restent répartis sur la ligne comme
   avant. Petit écran : chaque libellé passe au-dessus de sa liste, les 2 listes sont calées en bas
   de ligne pour rester alignées. */
.cl-row.gtb-test-2col {
  display: grid;
  grid-template-columns: repeat(2, auto);
  justify-content: space-between;
  align-items: center;
}
.gtb-test-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.gtb-test-titre {
  flex: 0 0 auto !important;
}
@media screen and (max-width: 860px) {
  .cl-row.gtb-test-2col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    align-items: end;
    column-gap: 8px;
  }
  .gtb-test-cell {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 2px;
  }
  .gtb-test-titre {
    flex: 0 0 100% !important;
    width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
  }
  .gtb-test-cell select {
    max-width: 100%;
  }
}
