/* ============================================================================
   AUGON — Pages de SUIVI (e-services)
   • /espace-de-suivi-rokhas        (vue espace_telechargement)
   • /pre-instruction/suivi-de-la-note (vue suivi_de_la_pre_instruction)
   Vues Drupal : formulaire à filtre exposé + tableau de résultats.
   Charte AUGON : bleu #4b6fa8 → #3a5a9b. Scopé par classe body de page.
   ========================================================================== */

/* Variables locales (réutilise la charte des autres feuilles) */
.path-espace-de-suivi-rokhas,
.path-pre-instruction,
.path-reclamation,
.path-rdv,
.path-suivi-e-prestation {
  --augon-blue: #4b6fa8;
  --augon-blue-d: #3a5a9b;
  --augon-ink: #2b3a55;
  --augon-line: #e6ebf3;
}/* ----------------------------------------------------------------------------
   1) FORMULAIRE DE RECHERCHE (filtre exposé)
   -------------------------------------------------------------------------- */
.path-espace-de-suivi-rokhas .views-exposed-form,
.path-pre-instruction .views-exposed-form,
.path-reclamation .views-exposed-form,
.path-rdv .views-exposed-form,
.path-suivi-e-prestation .views-exposed-form {
  display: flex !important;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 18px;
  max-width: 820px;
  margin: 0 auto;
  padding: 26px 28px;
  background: #fff;
  border: 1px solid var(--augon-line);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(43, 58, 85, .07);
}/* Champ (label + input) */
.path-espace-de-suivi-rokhas .views-exposed-form .form-item,
.path-pre-instruction .views-exposed-form .form-item,
.path-reclamation .views-exposed-form .form-item,
.path-rdv .views-exposed-form .form-item,
.path-suivi-e-prestation .views-exposed-form .form-item {
  margin: 0 !important;
  flex: 1 1 300px;
  min-width: 240px;
}.path-espace-de-suivi-rokhas .views-exposed-form label,
.path-pre-instruction .views-exposed-form label,
.path-reclamation .views-exposed-form label,
.path-rdv .views-exposed-form label,
.path-suivi-e-prestation .views-exposed-form label {
  display: block !important;
  float: none !important;
  width: auto !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
  font-weight: 700;
  font-size: 14px;
  color: var(--augon-blue-d);
}.path-espace-de-suivi-rokhas .views-exposed-form input[type="text"],
.path-pre-instruction .views-exposed-form input[type="text"],
.path-reclamation .views-exposed-form input[type="text"],
.path-rdv .views-exposed-form input[type="text"],
.path-suivi-e-prestation .views-exposed-form input[type="text"] {
  display: block;
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
  height: auto;
  margin: 0;
  padding: 12px 15px;
  font-size: 15px;
  color: #1f2a44;
  background: #f8fafd;
  border: 1.5px solid #d8e0ec;
  border-radius: 9px;
  transition: border-color .18s, box-shadow .18s, background .18s;
}.path-espace-de-suivi-rokhas .views-exposed-form input[type="text"]:focus,
.path-pre-instruction .views-exposed-form input[type="text"]:focus,
.path-reclamation .views-exposed-form input[type="text"]:focus,
.path-rdv .views-exposed-form input[type="text"]:focus,
.path-suivi-e-prestation .views-exposed-form input[type="text"]:focus {
  outline: none;
  background: #fff;
  border-color: var(--augon-blue);
  box-shadow: 0 0 0 4px rgba(75, 111, 168, .16);
}/* Bouton RECHERCHER / VALIDER — CTA dégradé */
.path-espace-de-suivi-rokhas .views-exposed-form .form-actions,
.path-pre-instruction .views-exposed-form .form-actions,
.path-reclamation .views-exposed-form .form-actions,
.path-rdv .views-exposed-form .form-actions,
.path-suivi-e-prestation .views-exposed-form .form-actions {
  margin: 0 !important;
  flex: 0 0 auto;
}.path-espace-de-suivi-rokhas .views-exposed-form input[type="submit"],
.path-pre-instruction .views-exposed-form input[type="submit"],
.path-reclamation .views-exposed-form input[type="submit"],
.path-rdv .views-exposed-form input[type="submit"],
.path-suivi-e-prestation .views-exposed-form input[type="submit"] {
  margin: 0;
  padding: 12px 30px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: #fff;
  border: none;
  border-radius: 9px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--augon-blue) 0%, var(--augon-blue-d) 100%);
  box-shadow: 0 8px 18px rgba(58, 90, 155, .28);
  transition: transform .15s, box-shadow .15s, filter .15s;
}.path-espace-de-suivi-rokhas .views-exposed-form input[type="submit"]:hover,
.path-pre-instruction .views-exposed-form input[type="submit"]:hover,
.path-reclamation .views-exposed-form input[type="submit"]:hover,
.path-rdv .views-exposed-form input[type="submit"]:hover,
.path-suivi-e-prestation .views-exposed-form input[type="submit"]:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 12px 24px rgba(58, 90, 155, .36);
}/* ----------------------------------------------------------------------------
   2) TABLEAU DE RÉSULTATS
   (le thème d'origine peignait la ligne en rouge brique #a8615f
    avec des bordures #c0504d — on remet une table claire à en-tête bleu)
   -------------------------------------------------------------------------- */
.path-espace-de-suivi-rokhas .view,
.path-pre-instruction .view,
.path-reclamation .view,
.path-rdv .view,
.path-suivi-e-prestation .view {
  margin-top: 26px;
}/* Conteneur scrollable sur petit écran (table large) */
.path-espace-de-suivi-rokhas .view .views-element-container,
.path-pre-instruction .view .views-element-container,
.path-reclamation .view .views-element-container,
.path-rdv .view .views-element-container,
.path-espace-de-suivi-rokhas .view > div,
.path-pre-instruction .view > div,
.path-reclamation .view > div,
.path-rdv .view > div,
.path-suivi-e-prestation .view .views-element-container,
.path-suivi-e-prestation .view > div {
  overflow-x: auto;
}.path-espace-de-suivi-rokhas table,
.path-pre-instruction table,
.path-reclamation table,
.path-rdv table,
.path-suivi-e-prestation table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  margin: 0 auto;
  background: #fff !important;
  border: 1px solid var(--augon-line) !important;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(43, 58, 85, .07);
  font-size: 14.5px;
}/* En-tête bleu */
.path-espace-de-suivi-rokhas table thead th,
.path-pre-instruction table thead th,
.path-reclamation table thead th,
.path-rdv table thead th,
.path-suivi-e-prestation table thead th {
  background: linear-gradient(135deg, var(--augon-blue) 0%, var(--augon-blue-d) 100%) !important;
  color: #fff !important;
  font-weight: 700;
  text-align: left;
  padding: 15px 18px !important;
  border: none !important;
  white-space: nowrap;
}/* Corps : fond clair,
texte foncé,
séparateurs gris doux
   (override du rouge brique de la classe .instruction-view) */
.path-espace-de-suivi-rokhas table tbody tr,
.path-pre-instruction table tbody tr,
.path-reclamation table tbody tr,
.path-rdv table tbody tr,
.path-espace-de-suivi-rokhas table tbody tr.instruction-view,
.path-pre-instruction table tbody tr.instruction-view,
.path-reclamation table tbody tr.instruction-view,
.path-rdv table tbody tr.instruction-view,
.path-suivi-e-prestation table tbody tr,
.path-suivi-e-prestation table tbody tr.instruction-view {
  background: #fff !important;
  transition: background .15s;
}.path-espace-de-suivi-rokhas table tbody tr:nth-child(even),
.path-pre-instruction table tbody tr:nth-child(even),
.path-reclamation table tbody tr:nth-child(even),
.path-rdv table tbody tr:nth-child(even),
.path-suivi-e-prestation table tbody tr:nth-child(even) {
  background: #f7f9fc !important;
}.path-espace-de-suivi-rokhas table tbody tr:hover,
.path-pre-instruction table tbody tr:hover,
.path-reclamation table tbody tr:hover,
.path-rdv table tbody tr:hover,
.path-espace-de-suivi-rokhas table tbody tr.instruction-view:hover,
.path-pre-instruction table tbody tr.instruction-view:hover,
.path-reclamation table tbody tr.instruction-view:hover,
.path-rdv table tbody tr.instruction-view:hover,
.path-suivi-e-prestation table tbody tr:hover,
.path-suivi-e-prestation table tbody tr.instruction-view:hover {
  background: #eef3fb !important;
}.path-espace-de-suivi-rokhas table tbody td,
.path-pre-instruction table tbody td,
.path-reclamation table tbody td,
.path-rdv table tbody td,
.path-suivi-e-prestation table tbody td {
  color: var(--augon-ink) !important;
  padding: 14px 18px !important;
  border: none !important;
  border-bottom: 1px solid var(--augon-line) !important;
  vertical-align: middle;
}.path-espace-de-suivi-rokhas table tbody tr:last-child td,
.path-pre-instruction table tbody tr:last-child td,
.path-reclamation table tbody tr:last-child td,
.path-rdv table tbody tr:last-child td,
.path-suivi-e-prestation table tbody tr:last-child td {
  border-bottom: none !important;
}/* Montant (prix Commerce) mis en valeur */
.path-espace-de-suivi-rokhas table td.views-field-variations-target-id,
.path-pre-instruction table td.views-field-variations-target-id,
.path-reclamation table td.views-field-variations-target-id,
.path-rdv table td.views-field-variations-target-id,
.path-suivi-e-prestation table td.views-field-variations-target-id {
  font-weight: 700;
  color: var(--augon-blue-d) !important;
  white-space: nowrap;
}/* ----------------------------------------------------------------------------
   3) MESSAGE « AUCUN RÉSULTAT »  (vue vide)
   -------------------------------------------------------------------------- */
.path-espace-de-suivi-rokhas .view-empty,
.path-pre-instruction .view-empty,
.path-reclamation .view-empty,
.path-rdv .view-empty,
.path-suivi-e-prestation .view-empty {
  max-width: 820px;
  margin: 24px auto 0;
  padding: 18px 22px;
  background: #fff6f5;
  border: 1px solid #f3c9c4;
  border-left: 4px solid #d9534f;
  border-radius: 10px;
  color: #8a3b37;
  font-size: 15px;
}

/* ----------------------------------------------------------------------------
   4) MOBILE — tableaux de suivi en CARTES EMPILÉES
   Sur petit écran, un tableau à plusieurs colonnes déborde/est illisible.
   On transforme chaque ligne en carte et chaque cellule en ligne « libellé :
   valeur ». Le libellé est fourni par ::before (le thème « au » ne génère pas
   d'attribut data-label). Appliqué aux 4 pages de suivi.
   -------------------------------------------------------------------------- */
@media (max-width: 700px) {.path-espace-de-suivi-rokhas table,
.path-pre-instruction table,
.path-reclamation table,
.path-rdv table,
.path-suivi-e-prestation table {
    display: block;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
    background: transparent !important;
  }.path-espace-de-suivi-rokhas table thead,
.path-pre-instruction table thead,
.path-reclamation table thead,
.path-rdv table thead,
.path-suivi-e-prestation table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }.path-espace-de-suivi-rokhas table tbody,
.path-pre-instruction table tbody,
.path-reclamation table tbody,
.path-rdv table tbody,
.path-suivi-e-prestation table tbody {
    display: block;
  }.path-espace-de-suivi-rokhas table tbody tr,
.path-pre-instruction table tbody tr,
.path-reclamation table tbody tr,
.path-rdv table tbody tr,
.path-suivi-e-prestation table tbody tr {
    display: block;
    margin: 0 0 16px !important;
    background: #fff !important;
    border: 1px solid var(--augon-line) !important;
    border-radius: 12px !important;
    box-shadow: 0 6px 18px rgba(43, 58, 85, .08) !important;
    overflow: hidden;
  }.path-espace-de-suivi-rokhas table tbody td,
.path-pre-instruction table tbody td,
.path-reclamation table tbody td,
.path-rdv table tbody td,
.path-suivi-e-prestation table tbody td {
    display: flex !important;
    justify-content: space-between;
    align-items: baseline;
    gap: 14px;
    padding: 11px 14px !important;
    border: none !important;
    border-bottom: 1px solid #eef1f6 !important;
    text-align: right;
    white-space: normal !important;
    word-break: break-word;
  }.path-espace-de-suivi-rokhas table tbody tr td:last-child,
.path-pre-instruction table tbody tr td:last-child,
.path-reclamation table tbody tr td:last-child,
.path-rdv table tbody tr td:last-child,
.path-suivi-e-prestation table tbody tr td:last-child {
    border-bottom: none !important;
  }.path-espace-de-suivi-rokhas table tbody td::before,
.path-pre-instruction table tbody td::before,
.path-reclamation table tbody td::before,
.path-rdv table tbody td::before,
.path-suivi-e-prestation table tbody td::before {
    font-weight: 700;
    color: var(--augon-blue-d);
    text-align: left;
    flex: 0 0 42%;
    white-space: normal;
  }

  /* Libellés par colonne — page de suivi RÉCLAMATION */
  .path-reclamation td.views-field-title::before { content: "Objet"; }
  .path-reclamation td.views-field-field-uuid::before { content: "Code de suivi"; }
  .path-reclamation td.views-field-field-statut-reclamation::before { content: "Statut"; }
  .path-reclamation td.views-field-field-avis-de-la-l-agence::before { content: "Avis de l’agence"; }
  .path-reclamation td.views-field-field-reponse::before { content: "Réponse"; }
  .path-reclamation td.views-field-field-date-reponse::before { content: "Date de réponse"; }

  /* Libellés par colonne — page de suivi E-PRESTATION */
  .path-suivi-e-prestation td.views-field-title::before { content: "Dossier"; }
  .path-suivi-e-prestation td.views-field-field-nom-du-petitionnaire::before { content: "Pétitionnaire"; }
  .path-suivi-e-prestation td.views-field-field-commune::before { content: "Commune"; }
  .path-suivi-e-prestation td.views-field-field-is-payed::before { content: "Payé"; }
  .path-suivi-e-prestation td.views-field-field-valider::before { content: "Validé"; }
  .path-suivi-e-prestation td.views-field-created::before { content: "Date de dépôt"; }

  /* Libellés par colonne — page de suivi RDV */
  .path-rdv td.views-field-title::before { content: "Objet"; }
  .path-rdv td.views-field-field-uuid::before { content: "Code de suivi"; }
  .path-rdv td.views-field-field-rdv-theme::before { content: "Thème"; }
  .path-rdv td.views-field-field-date-de-rdv::before { content: "Date du RDV"; }
  .path-rdv td.views-field-field-cheking::before { content: "Traité"; }
  .path-rdv td.views-field-augon-statut::before { content: "Statut"; }

  /* Libellés par colonne — page de suivi PRÉ-INSTRUCTION */
  .path-pre-instruction td.views-field-title::before { content: "Demande"; }
  .path-pre-instruction td.views-field-field-aubm-observations::before { content: "Observations de l’agence"; }
  .path-pre-instruction td.views-field-field-fichier-attache::before { content: "Fichier joint"; }
}

/* ----------------------------------------------------------------------------
   4) RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {.path-espace-de-suivi-rokhas .views-exposed-form,
.path-pre-instruction .views-exposed-form,
.path-reclamation .views-exposed-form,
.path-rdv .views-exposed-form,
.path-suivi-e-prestation .views-exposed-form {
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
  }.path-espace-de-suivi-rokhas .views-exposed-form input[type="submit"],
.path-pre-instruction .views-exposed-form input[type="submit"],
.path-reclamation .views-exposed-form input[type="submit"],
.path-rdv .views-exposed-form input[type="submit"],
.path-suivi-e-prestation .views-exposed-form input[type="submit"] {
    width: 100%;
  }
}

/* ----------------------------------------------------------------------------
   4b) STATUT (champ augon_statut — augon_cmi.module)
   -------------------------------------------------------------------------- */
/* Badges RDV */
.augon-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}
.augon-badge--ok { background: #e3f4ea; color: #1d7a46; }
.augon-badge--wait { background: #fff4dc; color: #9a6400; }
.augon-badge__note {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #6b7686;
}

/* Bloc statut pré-instruction */
.augon-statut {
  margin: 18px 0 10px;
  padding: 24px 26px;
  background: #fff;
  border: 1px solid #e6ebf3;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(31, 58, 95, .08);
  color: #2b3a55;
}
.augon-statut__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-bottom: 22px;
  font-size: 14.5px;
}
.augon-statut__meta strong { color: #1f3a5f; }

.augon-steps {
  display: flex;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  counter-reset: augon-step;
}
.augon-steps li {
  flex: 1;
  position: relative;
  padding-top: 42px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #8a94a6;
  counter-increment: augon-step;
}
.augon-steps li::before {
  content: counter(augon-step);
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 1;
  width: 32px;
  height: 32px;
  margin-left: -16px;
  border-radius: 50%;
  background: #e6ebf3;
  color: #8a94a6;
  font-weight: 700;
  line-height: 32px;
}
.augon-steps li + li::after {
  content: "";
  position: absolute;
  top: 15px;
  right: 50%;
  width: 100%;
  height: 3px;
  background: #e6ebf3;
}
.augon-steps li.is-done { color: #1d7a46; }
.augon-steps li.is-done::before { content: "✓"; background: #1d7a46; color: #fff; }
.augon-steps li.is-done::after { background: #1d7a46; }
.augon-steps li.is-current { color: #1f3a5f; }
.augon-steps li.is-current:not(.is-done)::before { background: #3a5a9b; color: #fff; box-shadow: 0 0 0 5px rgba(58, 90, 155, .18); }
.augon-steps li.is-current:not(.is-done)::after { background: linear-gradient(90deg, #1d7a46, #3a5a9b); }

.augon-statut__box {
  padding: 16px 18px;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.7;
}
.augon-statut__box--wait { background: #fff8e8; border-left: 4px solid #e0a100; }
.augon-statut__box--ok { background: #f1f8f4; border-left: 4px solid #1d7a46; }
.augon-statut__box h3 { margin: 0 0 8px; font-size: 17px; color: #1f3a5f; }
.augon-statut__obs { margin: 0 0 10px; }
.augon-statut__files { margin: 0 0 8px; padding-left: 1.2em; }
.augon-statut__files a { font-weight: 600; color: #3a5a9b; text-decoration: underline; }
.augon-statut__date { margin: 0; font-size: 12.5px; color: #6b7686; }

@media (max-width: 575px) {
  .augon-statut { padding: 18px 16px; }
  .augon-steps li { font-size: 12.5px; }
}

[dir="rtl"] .augon-steps li + li::after { right: auto; left: 50%; }
[dir="rtl"] .augon-statut__box--wait,
[dir="rtl"] .augon-statut__box--ok { border-left: 0; border-right: 4px solid; }
[dir="rtl"] .augon-statut__box--wait { border-right-color: #e0a100; }
[dir="rtl"] .augon-statut__box--ok { border-right-color: #1d7a46; }
[dir="rtl"] .augon-statut__files { padding-left: 0; padding-right: 1.2em; }

/* ----------------------------------------------------------------------------
   5) RTL (version arabe)
   -------------------------------------------------------------------------- */
[dir="rtl"] .path-espace-de-suivi-rokhas table thead th,
[dir="rtl"] .path-pre-instruction table thead th,
[dir="rtl"] .path-espace-de-suivi-rokhas table tbody td,
[dir="rtl"] .path-pre-instruction table tbody td {
  text-align: right;
}
