/* === COULEUR DU RÔLE ========================================== */
:root {
  --accent:       #059669;
  --accent-dark:  #047857;
  --accent-light: #d1fae5;
}

/* === ÉCRAN DE CONNEXION (même structure que validateur) ======= */
.login-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  background: linear-gradient(160deg, var(--accent-light) 0%, var(--gray-50) 60%);
}
.login-box {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 32px 28px;
  width: 100%; max-width: 360px;
  text-align: center;
}
.login-icon {
  width: 64px; height: 64px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.login-icon .material-icons-round { font-size: 32px; color: var(--accent); }
.login-box h2 { font-size: 20px; margin-bottom: 6px; }
.login-box .desc { font-size: 14px; color: var(--gray-500); margin-bottom: 24px; }
.code-input {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 4px;
}

/* === STATS BAR ================================================ */
.stats-bar {
  display: flex;
  gap: 0;
  background: white;
  border-bottom: 1px solid var(--gray-200);
}
.stat-item {
  flex: 1;
  padding: 12px 8px;
  text-align: center;
  border-right: 1px solid var(--gray-200);
}
.stat-item:last-child { border-right: none; }
.stat-item .val { font-size: 20px; font-weight: 700; color: var(--accent); }
.stat-item .lbl { font-size: 11px; color: var(--gray-500); margin-top: 2px; }

/* === LISTE DES DEMANDES ======================================= */
.requests-list { padding: 16px; }

.request-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow .2s, transform .1s;
}
.request-card:active { transform: scale(.99); }
.request-card:hover  { box-shadow: var(--shadow-md); }

.rc-header {
  padding: 12px 16px;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--gray-100);
}
.rc-header .ref  { font-size: 13px; font-weight: 700; color: var(--accent); }
.rc-header .date { font-size: 12px; color: var(--gray-400); }
.rc-body           { padding: 12px 16px; }
.rc-body .requester { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.rc-body .dept     { font-size: 13px; color: var(--gray-500); margin-bottom: 10px; }
.rc-body .montant  { font-size: 22px; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.rc-body .meta     { display: flex; gap: 8px; flex-wrap: wrap; }
.rc-footer         { padding: 10px 16px; background: var(--gray-50); display: flex; align-items: center; justify-content: space-between; }
.rc-footer .desc   { font-size: 12px; color: var(--gray-500); font-style: italic; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* === MODAL DÉCAISSEMENT ======================================= */
.modal-demande-info {
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 16px;
}
.modal-demande-info .requester { font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.modal-demande-info .row       { display: flex; justify-content: space-between; font-size: 13px; padding: 3px 0; }
.modal-demande-info .row .l    { color: var(--gray-500); }
.modal-demande-info .row .v    { font-weight: 600; }
.modal-demande-info .montant   { font-size: 24px; font-weight: 700; color: var(--accent); margin-top: 8px; }

/* Lien fichier */
.file-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--accent); text-decoration: none; font-weight: 500; margin-top: 4px;
}
.file-link:hover { text-decoration: underline; }

/* Compteur */
.count-badge {
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 12px;
  margin-left: 6px;
}
