/* ============================================================================
   AUGON — Pages de GESTION agents (tables) : conteneur .au-gestion
   Ex. E-prestation « demandes des citoyens ». Charte AUGON : carte + en-tête
   bleu dégradé + lignes alternées + recherche stylée.
   ========================================================================== */

.au-gestion {
  --augon-blue: #4b6fa8;
  --augon-blue-d: #3a5a9b;
  --augon-ink: #2b3a55;
  --augon-line: #e6ebf3;
  max-width: 1240px;
  margin: 20px auto 44px;
  padding: 0 8px;
}

.au-gestion__title {
  margin: 0 0 18px;
  font-size: 24px;
  font-weight: 800;
  color: var(--augon-blue-d);
  letter-spacing: .3px;
}

/* --- Recherche (filtre exposé) --- */
.au-gestion .views-exposed-form {
  display: flex !important;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
  margin: 0 0 22px;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid var(--augon-line);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(43, 58, 85, .07);
}
.au-gestion .views-exposed-form .form-item { margin: 0 !important; }
.au-gestion .views-exposed-form label {
  display: block;
  margin: 0 0 7px;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--augon-blue-d);
}
.au-gestion .views-exposed-form input[type="text"] {
  width: 300px;
  max-width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  font-size: 15px;
  background: #f8fafd;
  border: 1.5px solid #d8e0ec;
  border-radius: 9px;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.au-gestion .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);
}
.au-gestion .views-exposed-form input[type="submit"],
.au-gestion .views-exposed-form button[type="submit"] {
  padding: 11px 26px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .3px;
  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, filter .15s;
}
.au-gestion .views-exposed-form input[type="submit"]:hover { transform: translateY(-2px); filter: brightness(1.05); }

/* --- Conteneur scrollable --- */
.au-gestion .views-element-container,
.au-gestion .view-content { overflow-x: auto; }

/* --- Tableau --- */
.au-gestion table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  margin: 0;
  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: 14px;
}
.au-gestion 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: 14px 16px !important;
  border: none !important;
  white-space: nowrap;
}
.au-gestion thead th a, .au-gestion thead th a:hover { color: #fff !important; text-decoration: underline; }
.au-gestion tbody tr { background: #fff !important; transition: background .15s; }
.au-gestion tbody tr:nth-child(even) { background: #f7f9fc !important; }
.au-gestion tbody tr:hover { background: #eef3fb !important; }
.au-gestion tbody td {
  color: var(--augon-ink) !important;
  padding: 12px 16px !important;
  border: none !important;
  border-bottom: 1px solid var(--augon-line) !important;
  vertical-align: middle;
}
.au-gestion tbody tr:last-child td { border-bottom: none !important; }

/* Booléens Payé / Validé en pastille */
.au-gestion td.views-field-field-is-payed,
.au-gestion td.views-field-field-valider { font-weight: 700; }

/* icône Consulter */
.au-gestion img.tpdfsize { width: 26px; height: auto; vertical-align: middle; transition: transform .15s; }
.au-gestion a:hover img.tpdfsize { transform: scale(1.15); }

/* --- Pager --- */
.au-gestion .pager__items, .au-gestion .pager { justify-content: center; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }

/* --- Responsive --- */
@media (max-width: 640px) {
  .au-gestion .views-exposed-form { flex-direction: column; align-items: stretch; padding: 18px; }
  .au-gestion .views-exposed-form input[type="text"] { width: 100%; }
}

/* --- RTL --- */
[dir="rtl"] .au-gestion thead th,
[dir="rtl"] .au-gestion tbody td { text-align: right; }
