/* Bloque principal */
.report {
  padding: 20px;
  margin-top: 80px; /* espacio desde la barra superior */
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden; /* previene scroll horizontal */
}

/* Header */
.report__header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.report__icon {
  height: 40px;
  margin-right: 10px;
}
.report__title {
  font-weight: bold;
  font-size: 14px;
}

/* Controles */
.report__controls {
  display: flex;
  justify-content: center;
  margin-bottom: 2em;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}
.report__control {
  flex: 1 1 auto;
  min-width: 150px;
}
.report__delete-icon {
  cursor: pointer;
  height: 30px;
  margin-right: 10px;
  padding-top: 8px;
}

/* Dropdowns */
.dropdown--date {
  width: 100%;
  max-width: 370px; /* límite superior */
  font-size: 12px;
  text-align: left;
}
.dropdown--currency {
  width: 100%;
  max-width: 100px;
  font-size: 12px;
  text-align: left;
}

/* Tabs */
.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1rem;
  gap: 5px;
  width: 100%;
  box-sizing: border-box;
}
.tabs__tab {
  flex: 1 1 auto;
  min-width: 120px;
  text-align: center;
  font-weight: bold;
  font-size: 12px;
  padding: 6px 10px;
  margin: 2px 0;
  background-color: white;
  border-top: 1px solid white;
  border-bottom: 3px solid rgb(9, 31, 52);
  cursor: pointer;
  box-sizing: border-box;
}
.tabs__tab--selected {
  border-top: 1px solid #d6d6d6;
  border-bottom: 1px solid white;
  background-color: white;
  color: rgb(9, 31, 52);
  font-weight: bold;
}

/* ------------------- Responsive ------------------- */

/* Tablets y pantallas medianas (<992px) */
@media (max-width: 991px) {
  .report {
    padding: 15px;
  }
  .report__controls {
    flex-direction: column;
    align-items: stretch;
  }
  .dropdown--date,
  .dropdown--currency {
    max-width: 100%;
  }
  .tabs {
    flex-direction: column;
  }
  .tabs__tab {
    width: 100%;
  }
}

/* Móviles (<576px) */
@media (max-width: 575px) {
  .report {
    padding: 10px;
  }
  .report__header {
    justify-content: center;
    text-align: center;
  }
  .report__title {
    font-size: 12px;
  }
}
