﻿/* GED-WEB-3F — styles fonctionnels Suivi & relances.
   La refonte décorative globale reste différée. */

.follow-hero,
.follow-tools,
.follow-card {
  background: #fff;
  border: 1px solid #dbe4f0;
  border-radius: 16px;
}

.follow-hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 20px 22px;
  margin-bottom: 16px;
}

.follow-hero h1 {
  margin: 3px 0 5px;
  font-size: 24px;
}

.follow-hero p,
.follow-card header p {
  margin: 0;
  color: #687790;
}

.follow-hero-actions,
.follow-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.follow-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.follow-kpis button {
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  background: #fff;
  color: #15233a;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
}

.follow-kpis button:hover,
.follow-kpis button.is-active {
  border-color: #7fa8ee;
  background: #f3f7ff;
}

.follow-kpis span {
  display: block;
  font-size: 12px;
  color: #66758d;
}

.follow-kpis strong {
  display: block;
  margin-top: 3px;
  font-size: 22px;
}

.follow-tools {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 170px 150px 110px;
  gap: 12px;
  align-items: end;
  padding: 14px;
}

.follow-tools label span,
.follow-dialog-body label > span {
  display: block;
  margin-bottom: 5px;
  color: #4b5a72;
  font-size: 12px;
  font-weight: 700;
}

.follow-tools input,
.follow-tools select,
.follow-dialog-body select,
.follow-dialog-body textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid #ced9e8;
  border-radius: 10px;
  background: #fff;
  padding: 8px 10px;
  font: inherit;
}

.follow-dialog-body textarea {
  resize: vertical;
}

.follow-status-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 2px 12px;
  color: #66758d;
  font-size: 12px;
}

.follow-loading {
  height: 3px;
  overflow: hidden;
}

.follow-loading.is-visible::before {
  content: "";
  display: block;
  width: 40%;
  height: 100%;
  background: #1f63dc;
  animation: follow-loading 1s linear infinite alternate;
}

@keyframes follow-loading {
  from { transform: translateX(0); }
  to { transform: translateX(150%); }
}

.follow-card {
  overflow: hidden;
}

.follow-card > header {
  padding: 16px 18px 12px;
  border-bottom: 1px solid #e5ebf3;
}

.follow-card h2 {
  margin: 0 0 3px;
  font-size: 18px;
}

.follow-table-wrap {
  overflow-x: auto;
}

.follow-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
}

.follow-table th {
  padding: 10px 12px;
  border-bottom: 1px solid #dfe7f1;
  background: #f7f9fc;
  color: #607089;
  font-size: 11px;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.follow-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #edf1f6;
  vertical-align: middle;
  font-size: 13px;
}

.follow-main,
.follow-responsible {
  display: grid;
  gap: 2px;
  min-width: 180px;
}

.follow-main {
  min-width: 230px;
}

.follow-main strong,
.follow-responsible strong {
  font-size: 13px;
}

.follow-main small,
.follow-responsible small {
  color: #7a8799;
}

.follow-instruction {
  max-width: 270px;
  color: #31435c;
}

.follow-badge,
.follow-due {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #edf2f8;
  color: #41516a;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.follow-badge.is-danger,
.follow-due.is-late {
  background: #fff0f0;
  color: #b42318;
}

.follow-badge.is-warning,
.follow-due.is-soon {
  background: #fff6dd;
  color: #895b00;
}

.follow-badge.is-info {
  background: #eaf3ff;
  color: #175cb8;
}

.follow-due.is-none {
  background: #f3f5f8;
  color: #6d7889;
}

.follow-reminder-count {
  display: grid;
  gap: 1px;
  border: 0;
  background: transparent;
  padding: 0;
  color: #2a3c56;
  text-align: left;
  cursor: pointer;
}

.follow-reminder-count strong {
  font-size: 14px;
}

.follow-reminder-count span {
  color: #758298;
  font-size: 10px;
  white-space: nowrap;
}

.follow-actions .btn,
.follow-actions .btn-secondary {
  min-height: 32px;
  padding: 6px 9px;
  font-size: 12px;
}

.follow-pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  align-items: center;
  padding: 13px 16px;
}

.follow-empty {
  padding: 24px;
  color: #6b788b;
  text-align: center;
}

.follow-mobile {
  display: none;
}

.follow-dialog {
  width: min(620px, calc(100vw - 24px));
  max-height: calc(100vh - 40px);
  border: 0;
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 20px 60px rgba(16, 31, 55, .26);
}

.follow-dialog::backdrop {
  background: rgba(15, 29, 50, .48);
}

.follow-dialog-shell {
  background: #fff;
}

.follow-dialog-shell > header,
.follow-dialog-shell > footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 15px 18px;
  border-bottom: 1px solid #e5ebf3;
}

.follow-dialog-shell > footer {
  justify-content: flex-end;
  border-top: 1px solid #e5ebf3;
  border-bottom: 0;
}

.follow-dialog-shell h2 {
  margin: 2px 0 2px;
  font-size: 19px;
}

.follow-dialog-shell p {
  margin: 0;
  color: #687790;
  font-size: 12px;
}

.follow-dialog-close {
  border: 0;
  background: transparent;
  color: #52617a;
  font-size: 27px;
  cursor: pointer;
}

.follow-dialog-body {
  display: grid;
  gap: 14px;
  padding: 18px;
  max-height: 60vh;
  overflow-y: auto;
}

.follow-history {
  display: grid;
  gap: 9px;
}

.follow-history-item {
  border: 1px solid #dfe7f1;
  border-radius: 11px;
  padding: 11px 12px;
}

.follow-history-item header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.follow-history-item time,
.follow-history-item small {
  color: #748199;
  font-size: 11px;
}

.follow-history-item p {
  margin: 9px 0 6px;
  color: #263850;
  white-space: pre-wrap;
}

@media (max-width: 1180px) {
  .follow-kpis {
    grid-template-columns: repeat(3, minmax(130px, 1fr));
  }

  .follow-tools {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .follow-hero {
    display: grid;
  }

  .follow-kpis {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .follow-tools {
    grid-template-columns: 1fr;
  }

  .follow-status-line {
    display: grid;
  }

  .follow-table-wrap {
    display: none;
  }

  .follow-mobile {
    display: grid;
    gap: 10px;
    padding: 12px;
  }

  .follow-mobile-card {
    border: 1px solid #dfe7f1;
    border-radius: 12px;
    background: #fff;
    padding: 12px;
  }

  .follow-mobile-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
  }

  .follow-mobile-card h3 {
    margin: 8px 0 5px;
    font-size: 15px;
  }

  .follow-mobile-card p {
    margin: 0 0 8px;
    color: #4f6078;
    font-size: 13px;
  }

  .follow-mobile-meta {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 10px;
    color: #687790;
    font-size: 12px;
  }

  .follow-mobile-meta button {
    border: 0;
    background: transparent;
    color: #175cb8;
    padding: 0;
    font: inherit;
    cursor: pointer;
  }
}
