/* 2026-05-29 - Consolidation dépôt / alertes / pilotage */
.deposit-hub {
  margin-bottom: 18px;
}

.deposit-panel {
  display: grid;
  gap: 16px;
  scroll-margin-top: 24px;
}

.deposit-panel:focus {
  outline: none;
}

.deposit-refusals {
  display: grid;
  gap: 16px;
}

.deposit-refusal-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.deposit-refusal-card {
  display: grid;
  gap: 7px;
  padding: 18px;
  border: 1px solid rgba(185, 28, 28, 0.12);
  border-radius: 24px;
  background: #fff7ed;
}

.deposit-refusal-card span {
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff;
  color: #b45309;
  font-weight: 950;
  font-size: 0.78rem;
}

.deposit-refusal-card strong {
  font-size: 1.2rem;
  color: var(--ink);
}

.deposit-refusal-card small,
.deposit-refusal-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 850;
}

.deposit-refusal-card p {
  padding-top: 8px;
  color: #b91c1c;
}

.follow-only-metrics {
  margin-bottom: 18px;
}

.alert-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.alert-actions button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 950;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.alert-actions button:first-child {
  border-color: rgba(22, 163, 74, 0.22);
  background: #ecfdf3;
  color: #15803d;
}

.alert-actions button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(17, 17, 17, 0.22);
}

.alert-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.done-alert-history {
  margin-top: 18px;
}

.garage-block-checkbox {
  min-height: 58px;
  align-self: end;
  display: flex !important;
  align-items: center;
  gap: 12px !important;
  padding: 14px 16px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 20px;
  background: #f8fafc;
  color: var(--ink) !important;
  font-weight: 950;
}

.garage-block-checkbox input {
  width: 22px;
  height: 22px;
  accent-color: #111;
}

.pilotage-four-blocks {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.today-card {
  background: #111;
  color: #fff;
}

.today-card .simple-card-head span {
  color: rgba(255, 255, 255, 0.68);
}

.today-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.today-action {
  min-height: 132px;
  display: grid;
  align-content: space-between;
  gap: 10px;
  padding: 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  text-decoration: none;
}

.today-action span,
.today-action small {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 900;
}

.today-action b {
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.pilotage-four-blocks .smart-chart-card {
  display: grid;
  gap: 18px;
}

@media (max-width: 1180px) {
  .pilotage-four-blocks {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .today-actions {
    grid-template-columns: 1fr;
  }

  .deposit-refusal-list {
    grid-template-columns: 1fr;
  }
}

/* 2026-05-29 - Espace employés complet */
.employee-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.employee-overview article {
  min-height: 118px;
  display: grid;
  align-content: space-between;
}

.employee-overview span,
.employee-overview small {
  color: var(--muted);
  font-weight: 900;
}

.employee-overview strong {
  font-size: clamp(2rem, 4vw, 3.8rem);
  letter-spacing: -0.08em;
}

.employee-row-link {
  text-decoration: none;
  color: inherit;
}

.employee-row.is-disabled {
  opacity: 0.56;
}

.employee-row-side {
  display: grid;
  justify-items: end;
  gap: 5px;
  text-align: right;
}

.employee-row-side small {
  color: var(--muted);
  font-weight: 850;
}

.employee-profile-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.employee-profile-hero h2 {
  margin: 10px 0 8px;
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.employee-profile-hero p {
  margin: 0;
  color: var(--muted);
  font-weight: 850;
}

.employee-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

/* L'action destructrice est mise à l'écart des actions bénignes (espace clair avant) pour éviter le clic réflexe. */
.employee-actions .big-button.danger {
  margin-left: 22px;
}

.employee-status-pill {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--muted);
  font-weight: 950;
}

.employee-status-pill.is-active {
  background: #dcfce7;
  color: #15803d;
}

.employee-status-pill.is-off {
  background: #fee2e2;
  color: #b91c1c;
}

.employee-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
  align-items: start;
}

.employee-focus-card {
  display: grid;
  gap: 16px;
}

.employee-doc-list,
.employee-activity-list,
.employee-document-form {
  display: grid;
  gap: 10px;
}

.employee-doc-row,
.employee-activity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 20px;
  background: #fff;
}

.employee-doc-row div,
.employee-activity-row {
  min-width: 0;
}

.employee-doc-row strong,
.employee-activity-row strong {
  display: block;
  color: var(--ink);
}

.employee-doc-row small,
.employee-activity-row small {
  color: var(--muted);
  font-weight: 850;
}

.employee-doc-row > span {
  min-width: 86px;
  padding: 8px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--ink);
  text-align: center;
  font-weight: 950;
}

.employee-doc-row.doc-ok > span {
  background: #dcfce7;
  color: #15803d;
}

.employee-doc-row.doc-soon > span {
  background: #fef3c7;
  color: #b45309;
}

.employee-doc-row.doc-expired > span,
.employee-doc-row.doc-missing > span {
  background: #fee2e2;
  color: #b91c1c;
}

.employee-bonus-box {
  display: grid;
  gap: 12px;
}

.employee-bonus-box > strong {
  font-size: clamp(2.6rem, 6vw, 5rem);
  letter-spacing: -0.08em;
  line-height: 0.9;
}

.employee-bonus-box p {
  margin: 0;
  color: var(--muted);
  font-weight: 850;
}

.employee-document-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.employee-document-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 900;
}

.employee-doc-notes,
.employee-document-form button,
.employee-document-form .save-state {
  grid-column: 1 / -1;
}

/* 2026-05-30 - Recherche véhicules */
.vehicle-search-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 18px;
  padding: 12px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.vehicle-search-input {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 0 16px;
  border-radius: 22px;
  background: #f8fafc;
}

.vehicle-search-input svg {
  flex: 0 0 auto;
  color: var(--muted);
}

.vehicle-search-input input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 900;
}

.vehicle-search-input button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.vehicle-search-card > span {
  white-space: nowrap;
  padding: 0 12px;
  color: var(--muted);
  font-weight: 950;
}

@media (max-width: 980px) {
  .employee-overview,
  .employee-profile-grid {
    grid-template-columns: 1fr;
  }

  .employee-profile-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .employee-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .employee-document-form {
    grid-template-columns: 1fr;
  }

  .vehicle-search-card {
    align-items: stretch;
    flex-direction: column;
  }

  .vehicle-search-card > span {
    padding: 0 6px 4px;
  }
}
