/******************************** estlilos para el modal editar ********************************/
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal__content {
  background-color: var(--color-bg-light);
  padding: 2rem;
  border-radius: 10px;
  width: 90%;
  max-width: 700px;
  animation: fadeIn 0.3s ease-in-out;

  display: grid;
  grid-template-columns: 1fr;
}

.hiden {
  display: none;
}

.container-btn-modal {
  display: flex;
  justify-content: space-between;
}

.modal__btn--edit {
  background-color: var(--color-warning-light);
  transition: background 0.3s ease, transform 0.3s ease;
}

.modal__btn--edit:hover {
  background-color: var(--color-btn-hover-4);
  transform: translateY(-8px);
}

.modal__btn--cancelar {
  background-color: var(--color-danger-light);
  transition: background 0.3s ease, transform 0.3s ease;
}

.modal__btn--cancelar:hover {
  background-color: var(--color-btn-hover-3);
  transform: translateY(-8px);
}

/******************************** estlilos para mensaje de error ********************************/
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.error__message {
  display: none;
  color: var(--color-danger-light);
  font-size: 0.85rem;
  margin-top: 4px;
}

/******************************** media queris ********************************/
@media (min-width: 650px) {
  .sumio__navbar {
    flex-direction: row;
    justify-content: space-between;
    padding-right: 10px;
  }

  .navbar__content--items {
    flex-direction: row;
  }

  .navbar__content--items a {
    width: auto;
  }

  .sumio__main {
    grid-template-columns: repeat(3, 1fr);
  }

  .sumio__paragraphs,
  .section--form,
  .section__expenses-cn {
    grid-column: 1 / 4;
  }

  .section--summary {
    grid-column: 1 / 2;
  }

  .section--filter {
    grid-column: 2 / 4;
  }

  .sumio__form {
    grid-template-columns: 1fr 1fr 200px;
  }

  .form-group {
    width: 100%;
  }

  #description-f {
    grid-column: 1 / 3;
  }

  #amount-f {
    grid-column: 3 / 4;
  }

  #category-f {
    grid-column: 1 / 2;
  }

  #type-f {
    grid-column: 2 / 3;
  }

  .container-btn-add {
    width: 100%;
    grid-column: 3 / 4;
  }

  .section--summary h2 {
    margin-bottom: 20px;
  }

  .btn--change,
  .btn--clear {
    width: 50px;
  }

  .modal__content {
    grid-template-columns: repeat(2, 1fr);
  }

  .modal__content h2 {
    grid-column: 1 / 3;
  }

  .modal__content form {
    grid-column: 1 / 3;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  #description-e {
    grid-column: 1 / 3;
  }

  #amount-e {
    grid-column: 1 / 2;
  }

  #category-e {
    grid-column: 2 / 3;
  }

  #type-e {
    grid-column: 1 / 2;
  }

  .container-btn-modal {
    grid-column: 2 / 3;
  }
}
