/* Mise à jour horaires : jours de CP, date de contrat et soldes à aujourd'hui. */

.hours-button.paid_leave,
.day-hours.paid_leave {
  color: #17633a;
  border-color: #9bcfb1;
  background: #eaf7ef;
}

.hours-button.paid_leave > span {
  display: inline-grid;
  place-items: center;
  min-width: 25px;
  padding: 0 4px;
  border-radius: 999px;
  color: #fff;
  background: #2e8b57;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.hours-button.paid_leave > strong,
.hours-button.paid_leave > b,
.day-hours.paid_leave {
  font-weight: 700;
}

.special-hours-entry.paid_leave {
  border-color: #a7d7bb;
  background: #eef9f2;
}

.special-hours-entry.paid_leave > span {
  color: #fff;
  background: #2e8b57;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.cp-duration-editor {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #c9e6d4;
  color: #174b2f;
  font-size: 12px;
  font-weight: 700;
}

.cp-duration-editor > span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.cp-duration-editor input {
  width: 86px;
  min-height: 38px;
  padding: 6px 9px;
  border: 1px solid #8fc7a7;
  border-radius: 8px;
  color: #173f2a;
  background: #fff;
  font: inherit;
}

.pc-contract-warning {
  margin: 16px 0 0;
  border-color: #e7b460;
  background: #fff8e8;
}

.personal-stats .stat strong {
  font-size: clamp(19px, 2vw, 27px);
  line-height: 1.05;
}

.user-modal input[type="date"] {
  min-height: 43px;
}

/* Quatre choix de saisie : horaires, 0 h, CP et récupération. */
.hours-mode > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Nouveau récapitulatif global des heures. */
.hour-balance-card table {
  min-width: 930px;
}

.hour-balance-card thead .pc-balance-groups th {
  padding-top: 13px;
  padding-bottom: 8px;
  color: #244d72;
  background: #eef4f9;
  border-bottom-color: #cfdce8;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.045em;
}

.hour-balance-card thead .pc-balance-groups th:first-child {
  text-align: left;
}

.hour-balance-card thead .pc-balance-columns th {
  text-align: center;
  font-size: 10px;
}

.hour-balance-card tbody td:not(:first-child) {
  text-align: center;
}

.hour-balance-card .pc-hours-value {
  color: #173d60;
  font-weight: 750;
  white-space: nowrap;
}

.hour-balance-card .table-user small {
  max-width: 220px;
}

.pc-balance-missing {
  color: #9a671c;
  background: #fffaf0;
  font-size: 12px;
  font-weight: 650;
}

.pc-balance-note {
  margin-bottom: 16px;
}

@media (max-width: 720px) {
  .cp-duration-editor {
    align-items: flex-start;
    flex-direction: column;
  }

  .personal-stats .stat strong {
    font-size: 20px;
  }

  .hours-mode > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
