#section-liste-revenus {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  color: #263247;
}

#section-liste-revenus[hidden],
#section-liste-revenus [hidden] {
  display: none !important;
}

#section-liste-revenus > header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

#section-liste-revenus h1 {
  margin: 0;
  color: #193b7a;
  font-size: 28px;
}

#section-liste-revenus header nav {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 8px;
  color: #64748b;
  font-size: 14px;
}

#section-liste-revenus header nav a {
  color: #244d9b;
  text-decoration: none;
}

#section-liste-revenus header nav a:hover {
  text-decoration: underline;
}

#section-liste-revenus header nav [aria-current="page"] {
  color: #334155;
  font-weight: 600;
}

#section-liste-revenus button {
  min-height: 42px;
  padding: 10px 16px;
  border: 0;
  border-radius: 5px;
  background: #244d9b;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

#section-liste-revenus button:hover {
  background: #193b7a;
}

#section-liste-revenus .etat-vide {
  display: flex;
  min-height: 280px;
  max-width: 680px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 32px auto;
  padding: 36px 24px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  text-align: center;
}

#section-liste-revenus .etat-vide > div[aria-hidden="true"] {
  margin-bottom: 12px;
  font-size: 40px;
}

#section-liste-revenus .etat-vide h2 {
  margin: 0 0 8px;
  color: #263247;
  font-size: 20px;
}

#section-liste-revenus .etat-vide p {
  margin: 0;
  color: #64748b;
  line-height: 1.6;
}

#liste-revenus {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
}

#liste-revenus table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

#liste-revenus th,
#liste-revenus td {
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

#liste-revenus th {
  background: #f4f6fa;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
}

#liste-revenus tbody tr:last-child td {
  border-bottom: 0;
}

#section-liste-revenus a:focus-visible,
#section-liste-revenus button:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 3px;
}

@media (max-width: 600px) {
  #section-liste-revenus h1 {
    font-size: 24px;
  }

  #section-liste-revenus > header {
    align-items: flex-start;
    flex-direction: column;
  }

  #section-liste-revenus .etat-vide {
    min-height: 240px;
    margin: 24px auto;
    padding: 28px 16px;
  }

  #liste-revenus th,
  #liste-revenus td {
    padding: 10px;
  }
}




#modal-ajout-revenu {
  width: min(540px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100% - 32px);
  padding: 0;
  overflow: auto;
  border: 1px solid #dbe2ea;
  border-radius: 8px;
  background: #fff;
  color: #263247;
  box-shadow: 0 18px 50px rgb(20 35 60 / 20%);
}

#modal-ajout-revenu::backdrop {
  background: rgb(20 35 60 / 45%);
}

#formulaire-ajout-revenu {
  display: grid;
  gap: 8px;
  padding: 24px;
}

#formulaire-ajout-revenu > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

#titre-modal-ajout-revenu {
  margin: 0;
  color: #193b7a;
  font-size: 22px;
}

#formulario-ajout-revenu label {
  margin-top: 8px;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
}

#formulaire-ajout-revenu input,
#formulaire-ajout-revenu select {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  background: #fff;
  color: #263247;
  font: inherit;
}

#formulaire-ajout-revenu .actions-modal-revenu {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

#formulaire-ajout-revenu button {
  min-height: 40px;
  padding: 9px 15px;
  border: 0;
  border-radius: 5px;
  background: #244d9b;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

#formulaire-ajout-revenu button:hover {
  background: #193b7a;
}

#formulaire-ajout-revenu #btn-fermer-modal-revenu {
  display: grid;
  width: 36px;
  min-width: 36px;
  min-height: 36px;
  place-items: center;
  padding: 0;
  border: 1px solid #dbe2ea;
  background: #fff;
  color: #526176;
  font-size: 22px;
}

#formulaire-ajout-revenu #btn-fermer-modal-revenu:hover {
  background: #f4f6fa;
  color: #193b7a;
}

#formulaire-ajout-revenu #btn-annuler-modal-revenu {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
}

#formulaire-ajout-revenu #btn-annuler-modal-revenu:hover {
  background: #f4f6fa;
}

#message-modal-revenu {
  min-height: 1.5em;
  margin: 4px 0 0;
  color: #526176;
  font-size: 14px;
}

#formulaire-ajout-revenu input:focus-visible,
#formulaire-ajout-revenu select:focus-visible,
#formulaire-ajout-revenu button:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 2px;
}

@media (max-width: 520px) {
  #formulaire-ajout-revenu {
    padding: 20px 16px;
  }

  #formulaire-ajout-revenu .actions-modal-revenu {
    flex-direction: column-reverse;
  }

  #formulaire-ajout-revenu .actions-modal-revenu button {
    width: 100%;
  }
}