* {
  padding: 0;
  margin: 0;
}

body {
  font-family: Inter, sans-serif;
  background-color: #e7eaeb;
}

nav ul {
  list-style: none;
}

nav ul li a {
  text-decoration: none;
  color: aliceblue;
  /* background-color: black; */
  display: block;
  padding: 30px;
}
nav ul li a:hover {
  background-color: #a29bfe;
}

nav ul li a.active {
  background-color: #e84393;
}

nav ul li a.active:hover {
  background-color: #fd79a8;
}

.menu {
  background-color: #6c5ce7;
  min-height: 100vh;
  width: 200px;
  display: flex;
}

.content {
  display: flex;
  flex-direction: column;
  width: 100%;
  /* justify-content: center; */
  align-items: center;
}

.layout {
  display: flex;
}

.layout h1 {
  color: #0984e3;
  font-weight: bold;
}
.titulo {
  margin-top: 60px;
}

/* EMPEZAMOS CON ESTILOS GENERALES DE LA TABLA */
.tabla-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.tabla-recurrentes {
  border-collapse: collapse;
  font-family: Lato, sans-serif;
}

.tabla {
  position: relative;
}

.tabla-recurrentes th,
.tabla-recurrentes td {
  padding: 12px 16px;
}

.tabla-recurrentes th {
  background-color: #6c5ce7;
  border: 1px solid black;
  color: white;
}

.tabla-recurrentes td {
  border: 1px solid black;
}

.tabla-recurrentes tr:nth-child(odd) {
  background-color: #dfe6e9;
}

.tabla-recurrentes tr:nth-child(even) {
  background-color: #b2bec3;
}

.tabla-recurrentes tr:hover {
  background-color: #a29bfe;
}

.tabla-recurrentes tbody tr {
  transition: background-color 0.5s ease;
}

/* para la datatable */
.dt-container {
  margin: 10px;
  padding: 15px;
}

.dt-length label,
.dt-length select {
  font-family: sans-serif;
  font-size: 15px;
}

.dt-search label,
input {
  font-family: sans-serif;
  font-size: 15px;
}

.dt-search input {
  margin-left: 5px;
}

.dt-search {
  padding: 10px 0px;
}

.dt-info {
  font-family: sans-serif;
  font-size: 15px;
  padding-bottom: 10px;
}

.dt-column-title {
  margin-right: 5px;
}

/* .dt-paging-button {
      font-family: sans-serif;
      font-size: 15px;
      padding: 0px 5px;
    } */

/* botones de paginado */
.dt-paging-button {
  align-items: center;
  background-color: #6c5ce7;
  /* background-image: linear-gradient(rgba(179, 132, 201, .84), rgba(57, 31, 91, .84) 50%); */
  border-radius: 42px;
  border-width: 0;
  box-shadow:
    rgba(57, 31, 91, 0.24) 0 2px 2px,
    rgba(179, 132, 201, 0.4) 0 8px 12px;
  color: #ffffff;
  cursor: pointer;
  /* display: flex; */
  font-family: Quicksand, sans-serif;
  font-size: 15px;
  font-weight: 700;
  justify-content: center;
  letter-spacing: 0.04em;
  line-height: 16px;
  padding: 7px 8px;
  text-align: center;
  text-decoration: none;
  text-shadow:
    rgba(255, 255, 255, 0.4) 0 0 4px,
    rgba(255, 255, 255, 0.2) 0 0 12px,
    rgba(57, 31, 91, 0.6) 1px 1px 4px,
    rgba(57, 31, 91, 0.32) 4px 4px 16px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  vertical-align: baseline;
  margin: 0px 2px;
}

/* esto es para los botones de ordenamiento ascendente y descendente de las columnas */
.dt-paging-button:hover {
  background-color: #a29bfe;
}

.dt-column-order::before {
  content: "▲";
  font-size: 12px;
}

.dt-column-order::after {
  content: "▼";
  font-size: 12px;
}

.dt-column-order::before,
.dt-column-order::after {
  color: #b2bec3;
}

.dt-ordering-asc .dt-column-order::before {
  color: #ffeaa7;
}

.dt-ordering-desc .dt-column-order::after {
  color: #ffeaa7;
}

/* boton para agregar registro */

.button-20 {
  appearance: button;
  background-color: #0984e3;
  background-image: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.15),
    rgba(255, 255, 255, 0)
  );
  border: 1px solid #0984e3;
  border-radius: 1rem;
  box-shadow:
    rgba(255, 255, 255, 0.15) 0 1px 0 inset,
    rgba(46, 54, 80, 0.075) 0 1px 1px;
  box-sizing: border-box;
  color: #ffffff;
  cursor: pointer;
  display: inline-block;
  font-family: Inter, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  margin: 0;
  padding: 0.5rem 1rem;
  text-align: center;
  text-transform: none;
  transition:
    color 0.15s ease-in-out,
    background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  vertical-align: middle;
}

.button-20:focus:not(:focus-visible),
.button-20:focus {
  outline: 0;
}

.button-20:hover {
  background-color: #74b9ff;
  border-color: #74b9ff;
}

/* .button-20:focus {
  background-color: #413fc5;
  border-color: #3e3bba;
  box-shadow:
    rgba(255, 255, 255, 0.15) 0 1px 0 inset,
    rgba(46, 54, 80, 0.075) 0 1px 1px,
    rgba(104, 101, 235, 0.5) 0 0 0 0.2rem;
} */

.button-20:active {
  background-color: #3e3bba;
  background-image: none;
  border-color: #3a38ae;
  box-shadow: rgba(46, 54, 80, 0.125) 0 3px 5px inset;
}

.button-20:active:focus {
  box-shadow:
    rgba(46, 54, 80, 0.125) 0 3px 5px inset,
    rgba(104, 101, 235, 0.5) 0 0 0 0.2rem;
}

.button-20:disabled {
  background-image: none;
  box-shadow: none;
  opacity: 0.65;
  pointer-events: none;
}

.button-20 {
  position: absolute;
  top: 40px;
  right: 30px;
}

.button-20.guardar {
  background-color: #6c5ce7;
  border: none;
  position: inherit;
}

.button-20.guardar:hover {
  background-color: #a29bfe;
}

.button-20.editar {
  background-color: #fd79a8;
  border: none;
  position: inherit;
}

.tabla-recurrentes tbody tr:hover .button-20.editar:hover {
  background-color: #e84393;
}

/* para modal de guardado/edicion */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

#modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 20px;
  border-radius: 12px;
  width: 400px;
}

.close-btn {
  position: absolute;
  color: black;
  top: 10px;
  right: 10px;
  font-size: 24px;
  cursor: pointer;
  display: block;
}

.nice-form-group {
  margin-bottom: 15px;
}

.nice-form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #0984e3;
}

.nice-form-group input,
.nice-form-group select {
  width: 100%;
  padding: 8px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.nice-form-group:last-child {
  display: flex;
  justify-content: center;
}

.nice-form-group:first-child {
  margin-top: 15px;
}

/* para totales de recurrentes */
.totales p {
  display: inline-block;
  font-size: 20px;
  font-weight: bold;
}

.totales h2 {
  color: #0984e3;
  display: inline-block;
  width: 200px;
  text-align: end;
}
