* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Arial", sans-serif;
}

body {
  background-color: #1c1c1e;
  color: white;
}

.container {
  max-width: 400px;
  margin: 0 auto;
  padding: 20px;
}

/* Header Section */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.back-arrow, .logout {
  color: white; /* Color de la X */
  text-decoration: none; /* Sin subrayado */
}

.back-arrow svg, .logout svg {
  width: 24px;
  height: 24px;
  cursor: pointer;
  transition: transform 0.2s ease; /* Añadido para la animación */
}

.back-arrow svg:hover, .logout svg:hover {
  transform: scale(1.2); /* Hace que la flecha y la X aumenten al pasar el cursor */
}

.back-arrow, .logout, .edit {
  color: white; /* Color de la X */
  text-decoration: none; /* Sin subrayado */
}

.back-arrow svg, .logout svg, .edit svg {
  width: 24px;
  height: 24px;
  cursor: pointer;
  transition: transform 0.2s ease; /* Añadido para la animación */
}

.back-arrow svg:hover, .logout svg:hover, .edit svg:hover {
  transform: scale(1.2); /* Hace que la flecha y la X aumenten al pasar el cursor */
}

.logout_index {
  position: absolute; /* Posiciona el ícono de forma absoluta dentro del h1 */
  top: 50%; /* Centra verticalmente en el h1 */
  right: 10px; /* Ajusta el margen a la derecha según sea necesario */
  transform: translateY(-50%); /* Centra el ícono verticalmente */
  cursor: pointer; /* Cambia el cursor a mano al pasar el mouse sobre el ícono */
}

.logout_index svg {
  width: 24px; /* Ajusta el tamaño del ícono */
  height: 24px;
  transition: transform 0.2s ease; /* Efecto de transición para el hover */
}

.logout_index svg:hover {
  transform: scale(1.2); /* Efecto de aumento al pasar el cursor */
}

.header h1 {
  font-size: 1.5rem;
}

.icons {
  display: flex;
  gap: 10px;
}

.user-icon,
.wifi-icon,
.battery-icon {
  font-size: 1rem;
}

/* Balance Card Section */
.balance-card {
  background: linear-gradient(145deg, #a72828, #d18d10); /* Green gradient */
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 8px;
  margin-top: 20px;
  color: white;
}

.balance-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #e6e6e6;
}

.balance-header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  display: inline;
}

.balance-header h1 span {
  font-size: 1.5rem;
}

.monthly-receivables {
  font-size: 1rem;
  color: #ffb2a4;
  margin-bottom: 10px;
  margin-top: 10px;
}

.balance_type {
  font-size: 0.755rem;
  color: #ffb2a4;

}


.balance-reason {
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 7px;
  margin-top: 4px;
}

.balance-details p {
  font-size: 0.9rem;
  margin-bottom: 5px;
}

/* Transactions Section */
.transactions {
  margin-bottom: 20px;
}

.transactions h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.transaction {
  background-color: #333;
  text-decoration: none; /* Eliminar el subrayado */
  color: inherit; /* Heredar el color del texto del elemento padre */
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between; /* Alinea el contenido entre izquierda y derecha */
  align-items: center; /* Centra verticalmente los elementos */
  padding: 15px;
  margin: 10px 0;
  font-family: Arial, sans-serif;
}

.left-side {
  display: flex;
  flex-direction: column; /* Mantén los elementos en columna a la izquierda */
}

.right-side {
  text-align: right; /* Alinea el texto a la derecha */
}

.transaction h3 {
  font-size: 1.2rem;
  color: #f7f7f7;
  margin: 0;
}

.transaction h3:hover {
  font-size: 1.2rem;
  color: #f7f7f7;
  margin: 0;
}

.transaction .balance-reason {
  font-size: 1rem;
  color: #666;
  margin: 5px 0;
}

.transaction .date {
  font-size: 0.9rem;
  color: #999;
}

.transaction .balance {
  font-size: 1.5rem;
  font-weight: bold;
  background: linear-gradient(120deg, #6d6b69, #8a8077); /* Degradado */
  -webkit-background-clip: text; /* Recorta el fondo al texto (solo en WebKit) */
  -webkit-text-fill-color: transparent; /* Hace el texto transparente para que se vea el degradado */
  margin-bottom: 5px;
}

.transaction .monthly-gain {
  font-size: 0.9rem;
  color: #666;
}

.transaction .transacction-reference {
  font-size: 0.9rem;
  color: #e94f29;
}

.transaction .transacction-type {
  font-size: 0.9rem;
  color: #e99029;
}

.transaction p {
  font-size: 1rem;
}

.balance {
  color: #e46803;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.debit {
  color: #ff0000;
}

.date {
  font-size: 0.8rem;
  color: #aaa;
}


/* Action Buttons */
.actions_button {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    gap: 10px; /* Espacio entre los botones */
}

.button_action-cripto {
    background-color: #1c1c1e00; /* Color de fondo deseado */
    border: 2px solid #562bff; /* Borde de color especificado */
    color: white; /* Color del texto */
    padding: 9px; /* Espaciado interno */
    border-radius: 10px; /* Bordes redondeados */
    cursor: pointer; /* Cursor en forma de puntero */
    width: 100%; /* Botón llena el contenedor */
    position: relative; /* Para permitir el uso de pseudo-elementos */
    overflow: hidden; /* Evitar que el degradado sobresalga */
    transition: background-color 0.3s; /* Transición suave para el efecto hover */
    font-size: 1rem;
    color: #ffffff;
}

.button_action-budget {
    background-color: #1c1e1e00; /* Color de fondo deseado */
    border: 2px solid #1dd2ea; /* Borde de color especificado */
    color: white; /* Color del texto */
    padding: 9px; /* Espaciado interno */
    border-radius: 10px; /* Bordes redondeados */
    cursor: pointer; /* Cursor en forma de puntero */
    width: 100%; /* Botón llena el contenedor */
    position: relative; /* Para permitir el uso de pseudo-elementos */
    overflow: hidden; /* Evitar que el degradado sobresalga */
    transition: background-color 0.3s; /* Transición suave para el efecto hover */
    font-size: 1rem;
    color: #ffffff;
}

/* Efecto hover */
.button_action-cripto:hover {
    background-color: #562bff; /* Cambia el fondo al color del borde al hacer hover */
}


.button_action-budget:hover {
    background-color: #1dd2ea; /* Cambia el fondo al color del borde al hacer hover */
}

.button_action {
    background-color: #1c1c1e00; /* Color de fondo deseado */
    border: 2px solid #d16710; /* Borde de color especificado */
    color: white; /* Color del texto */
    padding: 9px; /* Espaciado interno */
    border-radius: 10px; /* Bordes redondeados */
    cursor: pointer; /* Cursor en forma de puntero */
    width: 100%; /* Botón llena el contenedor */
    position: relative; /* Para permitir el uso de pseudo-elementos */
    overflow: hidden; /* Evitar que el degradado sobresalga */
    transition: background-color 0.3s; /* Transición suave para el efecto hover */
    font-size: 1rem;
    color: #ffffff;
}

/* Degradado alrededor del borde */
.button_action::before {
    content: '';
    position: absolute;
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    border-radius: 10px; /* Bordes redondeados */
    z-index: -1; /* Coloca el degradado detrás del botón */
    padding: 4px; /* Espacio para que el degradado se vea como borde */
    transform: scale(1); /* Mantener el tamaño original del degradado */
}

/* Efecto hover */
.button_action:hover {
    background-color: #d16710; /* Cambia el fondo al color del borde al hacer hover */
}

/* Asegúrate de que el texto esté en la parte superior */
.button_action span {
    position: relative;
    z-index: 1; /* Coloca el texto encima del degradado */
}


/* Search Box Styling */
.search-box {
  display: flex;
  align-items: center;
  border: 2px solid;
  border-radius: 6px; /* Rounded border */
  border-color: #d16710; /* Rounded border */
  padding: 5px;
  background-color: transparent; /* Transparent background */
  width: 100%; /* Full width to match the transaction buttons */
  height: 45px; /* Same height as buttons */
  margin-bottom: 15px; /* Add some space below */
}

.search-box input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 1rem;
  background-color: transparent; /* Transparent input */
  color: #ffffff;
  padding-left: 10px;
}

.search-box input::placeholder {
  color: #999;
}

.search-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* Search Box Styling CRIPTO */
.search-box-cripto {
  display: flex;
  align-items: center;
  border: 2px solid;
  border-radius: 6px; /* Rounded border */
  border-color: #562bff; /* Rounded border */
  padding: 5px;
  background-color: transparent; /* Transparent background */
  width: 100%; /* Full width to match the transaction buttons */
  height: 45px; /* Same height as buttons */
  margin-bottom: 15px; /* Add some space below */
}

.search-box-cripto input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 1rem;
  background-color: transparent; /* Transparent input */
  color: #ffffff;
  padding-left: 10px;
}

.search-box-cripto input::placeholder {
  color: #999;
}

.search-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.search-btn svg {
  width: 20px;
  height: 20px;
  color: #fffefd; /* You can adjust this to match the gradient if desired */
}

.form {
  max-width: 600px; /* Ancho máximo del formulario */
  margin-top: 13px; /* Centrar el formulario */
  padding: 20px;
  border-radius: 8px; /* Bordes redondeados */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Sombra sutil */
  background-color: #272727; /* Color de fondo */
}

.form h2 {
  text-align: center; /* Centrar el título */
  margin-bottom: 20px; /* Espacio debajo del título */
}

.form-group {
  margin-bottom: 15px; /* Espacio entre los grupos de formulario */
}

.form-group label {
  display: block; /* Hacer que la etiqueta ocupe todo el ancho */
  margin-bottom: 5px; /* Espacio debajo de la etiqueta */
  color: #d16710;
  font-size: 1rem;
  font-weight: bold;
}

.form-group input {
  width: 100%; /* Ancho completo */
  padding: 10px; /* Relleno interno */
  border-radius: 8px; /* Bordes redondeados para entradas */
  border: 2px solid #9c8f81; /* Borde de color especificado */
  color: #fcfcfc; /* Color del texto */
  background-color: #272727; /* Color de fondo */
}

/* Estilo para el texto del placeholder */
.form-group input::placeholder {
  color: #fcfcfc; /* Color del texto del placeholder */
  opacity: 0.7; /* Opacidad del placeholder para mejor legibilidad */
}

.form-group select {
  width: 100%; /* Ancho completo */
  padding: 10px; /* Relleno interno */
  border-radius: 8px; /* Bordes redondeados para entradas */
  border: 2px solid #9c8f81; /* Borde de color especificado */
  color: #fcfcfc; /* Color del texto */
  background-color: #272727; /* Color de fondo */
}

.form-group select option {
  background-color: #272727; /* Color de fondo para opciones */
  color: #fcfcfc; /* Color del texto de las opciones */
}

/* Eliminar el subrayado y mantener el color del texto normal para el enlace del cliente */
.customer-link {
  text-decoration: none; /* Elimina el subrayado */
  color: inherit; /* Mantiene el color del texto del contenedor */
}

/* Eliminar el subrayado y mantener el color del texto normal para el enlace del resto del div */
.transaction-link {
  text-decoration: none; /* Elimina el subrayado */
  color: inherit; /* Mantiene el color del texto del contenedor */
}

/* Opcional: Cambiar el color del enlace al pasar el ratón */
.customer-link:hover,
.transaction-link:hover {
  color: inherit; /* O puedes definir un color específico */
}

.button_action_alternative {
  background-color: #1c1c1e00; /* Color de fondo deseado */
  border: 2px solid #b80a44; /* Borde de color especificado */
  color: white; /* Color del texto */
  padding: 9px; /* Espaciado interno */
  border-radius: 10px; /* Bordes redondeados */
  cursor: pointer; /* Cursor en forma de puntero */
  width: 100%; /* Botón llena el contenedor */
  position: relative; /* Para permitir el uso de pseudo-elementos */
  overflow: hidden; /* Evitar que el degradado sobresalga */
  transition: background-color 0.3s; /* Transición suave para el efecto hover */
  font-size: 1rem;
  color: #ffffff;
}

/* Degradado alrededor del borde */
.button_action_alternative::before {
  content: '';
  position: absolute;
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0; 
  border-radius: 10px; /* Bordes redondeados */
  z-index: -1; /* Coloca el degradado detrás del botón */
  padding: 4px; /* Espacio para que el degradado se vea como borde */
  transform: scale(1); /* Mantener el tamaño original del degradado */
}

/* Efecto hover */
.button_action_alternative:hover {
  background-color: #b80a44; /* Cambia el fondo al color del borde al hacer hover */
}

/* Asegúrate de que el texto esté en la parte superior */
.button_action_alternative span {
  position: relative;
  z-index: 1; /* Coloca el texto encima del degradado */
}

.button_action_others {
  background-color: #1c1c1e00; /* Color de fondo deseado */
  border: 2px solid rgb(3, 139, 60); /* Borde de color especificado */
  color: white; /* Color del texto */
  padding: 9px; /* Espaciado interno */
  border-radius: 10px; /* Bordes redondeados */
  cursor: pointer; /* Cursor en forma de puntero */
  width: 100%; /* Botón llena el contenedor */
  position: relative; /* Para permitir el uso de pseudo-elementos */
  overflow: hidden; /* Evitar que el degradado sobresalga */
  transition: background-color 0.3s; /* Transición suave para el efecto hover */
  font-size: 1rem;
  color: #ffffff;
}

/* Degradado alrededor del borde */
.button_action_others::before {
  content: '';
  position: absolute;
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0; 
  border-radius: 10px; /* Bordes redondeados */
  z-index: -1; /* Coloca el degradado detrás del botón */
  padding: 4px; /* Espacio para que el degradado se vea como borde */
  transform: scale(1); /* Mantener el tamaño original del degradado */
}

/* Efecto hover */
.button_action_others:hover {
  background-color: rgb(3, 139, 60); /* Cambia el fondo al color del borde al hacer hover */
}

/* Asegúrate de que el texto esté en la parte superior */
.button_action_others span {
  position: relative;
  z-index: 1; /* Coloca el texto encima del degradado */
}


/* Fondo negro para la pantalla al mostrar el loader */
#loader-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.527); /* Fondo negro */
  z-index: 1000;

}

/* Estilos para el loader centrado */
#loader {
  display: none;
  border: 8px solid rgb(255, 255, 255); /* Borde gris claro y semi-transparente */
  border-radius: 50%;
  border-top: 8px solid #FF9900; /* Parte superior naranja */
  width: 50px;
  height: 50px;
  animation: spin 1s cubic-bezier(0.25, 0.56, 0.67, 0.65) infinite;
  position: fixed;
  top: 50%;
  left: 45%;
  transform: translate(-50%, -50%);
  background-color: transparent; /* Centro transparente */
  z-index: 1001;
}

/* Animación de giro */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/* criptos */

.profit-positive {
    color: #8cef15;
}

.profit-negative {
    color: #ef3c3c;
}

.profit-neutral {
    color: gray;
}

.transaction .transacction-averageprice {
  font-size: 0.9rem;
  color: #29e993;
}



.transaction .transacction-neutro {
  font-size: 0.9rem;
  color: #747474;
}

.tabla-balance {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  font-size: 13px;
}

.tabla-balance th,
.tabla-balance td {
  text-align: center;
  padding: 10px 6px;
  white-space: nowrap;
  font-size: 12px;
}

.tabla-balance thead tr {
  background-color: #1f1f1f;
  border-radius: 12px;
}

.tabla-balance thead th {
  background-color: #1f1f1f;
  color: white;
  font-weight: 600;
  border: none;
}

.tabla-balance thead th:first-child {
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

.tabla-balance thead th:last-child {
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

.tabla-balance tbody tr {
  background-color: #2c2c2c;
  color: white;
  border-radius: 12px;
  transition: background 0.2s;
}

.tabla-container {
  background: linear-gradient(to bottom, #8e2de2, #4a00e0);
  color: white;
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  overflow-x: auto;
}

.tabla-container h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.tabla-container h1 .negativo {
  color: #ff5f5f;
}

.tabla-cripto {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 14px;
}

.tabla-cripto th,
.tabla-cripto td {
  padding: 10px;
  text-align: center;
  background-color: #1e1e1e;
  color: white;
  border-bottom: 1px solid #444;
}

.tabla-cripto th {
  background-color: #000;
  font-weight: bold;
}

.fila-total td {
  background-color: #111;
  font-weight: bold;
}

@media screen and (max-width: 480px) {
  .tabla-cripto {
    font-size: 12px;
  }
}


.tabla-balance tbody td {
  background-color: #2c2c2c;
  font-size: 13px;
  border: none;
}

.tabla-balance tbody tr:hover {
  background-color: #3a3a3a;
}

.tabla-balance tbody tr td:first-child {
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

.tabla-balance tbody tr td:last-child {
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

.balance-details {
    display: flex;
    justify-content: center;
    padding: 0 10px;
}

.tabla-balance {
    width: 100%;
    max-width: 500px; /* o 100% si querés que se expanda */
}

/* Balance Card Section */
.balance-card-cripto {
  background: linear-gradient(145deg, #a728a5, #3710d1); /* Green gradient */
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 8px;
  margin-top: 20px;
  color: white;
}

.balance-card-budget {
  background: linear-gradient(135deg, #107c8a, #17426c) !important;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 8px;
  margin-top: 20px;
  color: white;
}

.fila-total {
    background-color: #1f1f1f !important; /* más oscuro y forzado */
    color: white;
    font-weight: bold;
}


.fila-total td {
    background-color: transparent !important;

}

/* Bordes redondeados para la fila final */
.fila-total td:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}
.fila-total td:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.transaction .balance-reason-cripto {
  font-size: 0.7rem;
  color: #666;
  margin: 1px 0;
}

.transaction .monthly-gain-cripto-inversion {
  font-size: 0.9rem;
  color: #666;
  margin: 2.5px 0;
}

.transaction .monthly-gain-cripto-transacciones {
  font-size: 0.9rem;
  color: #666;
  margin: 2.5px 0;
}

.transaction .monthly-gain-cripto-precio-promedio {
  font-size: 0.9rem;
  color: #ea65e8;
  margin: 2.5px 0;
}

.transaction .transacction-actualprice {
  font-size: 0.9rem;
  color: #7356e6;
}

.transaction .balance-cripto {
  font-size: 1.5rem;
  font-weight: bold;
  background: linear-gradient(120deg, #d89ed8, #a292e3); /* Degradado */
  -webkit-background-clip: text; /* Recorta el fondo al texto (solo en WebKit) */
  -webkit-text-fill-color: transparent; /* Hace el texto transparente para que se vea el degradado */
  margin-bottom: 5px;
}

.coin-logo {
    width: 20px;
    height: 20px;
    margin-left: 6px;
    vertical-align: middle;
    border-radius: 50%;
}

.form-group textarea {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 2px solid #9c8f81;
  background-color: #272727;
  color: #fcfcfc;
  font-size: 0.95rem;
  resize: vertical;
  min-height: 120px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group textarea::placeholder {
  color: #fcfcfc;
  opacity: 0.6;
}

.form-group textarea:focus {
  outline: none;
  border-color: #d16710;
  box-shadow: 0 0 0 2px rgba(209, 103, 16, 0.4);
}

.checkbox-label {
  display: flex;
  align-items: center; /* Centra verticalmente */
  font-size: 0.9rem; /* Más pequeño */
  font-weight: normal; /* Quita negrita */
  color: #9c8f81;
  cursor: pointer;
  user-select: none;
  gap: 8px;
}

.checkbox-label span {
  font-size: 0.9rem;
  font-weight: normal;
  color: #9c8f81;
}


.checkbox-label input[type="checkbox"] {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid #9c8f81;
  border-radius: 4px;
  background-color: #27272700;
  position: relative;
  cursor: pointer;
  display: inline-block;
  vertical-align: middle;
  padding-bottom: 7px;
  padding-right: 7px;
}

/* Checkmark */
.checkbox-label input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 5px;
  width: 4px;
  height: 8px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  display: none;



}

/* Mostrar checkmark cuando está marcado */
.checkbox-label input[type="checkbox"]:checked::after {
  display: block;
}

.checkbox-label input[type="checkbox"]:checked {
  background-color: #d16710;
  border-color: #d16710;
}

.checkbox-label input[type="checkbox"] {
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.button_action_menu {
  background-color: #343434;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.button_action_menu:hover {
  background-color: #555;
}

.search-and-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.search-and-menu .search-box {
  flex-grow: 1;
}

/* Ajustar botón de menú para que tenga mismo alto que input */
.button_action_menu {
  height: 45px; /* mismo alto que .search-box */
  min-width: 50px; /* más ancho que antes */
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  border: 2px solid #555;
  background-color: #343434;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* Hover opcional */
.button_action_menu:hover {
  background-color: #555;
}

/* Espaciado entre opciones del menú */
.menu-options button + div {
  margin-bottom: 10px;
}

.menu-option-btn {
  margin-bottom: 10px;
  width: 100%; /* mantiene consistencia */
}
.button-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.box-button {
  flex: 1; /* Cada botón toma el mismo espacio */
  background-color: #272727;
  border: 2px solid #272727;
  color: white;
  padding: 8px 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background-color 0.3s ease;
  text-align: center;
}

.box-button-active {
  flex: 1; /* Cada botón toma el mismo espacio */
  background-color: #272727;
  border: 2px solid #272727;
  color: #d16710;
  padding: 8px 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background-color 0.3s ease;
  text-align: center;
}

.box-button:hover {
  color: #d16710;
}

.box-button-cripto {
  flex: 1; /* Cada botón toma el mismo espacio */
  background-color: #272727;
  border: 2px solid #272727;
  color: white;
  padding: 8px 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background-color 0.3s ease;
  text-align: center;
}

.box-button-budget {
  flex: 1; /* Cada botón toma el mismo espacio */
  background-color: #272727;
  border: 2px solid #272727;
  color: white;
  padding: 8px 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background-color 0.3s ease;
  text-align: center;
}

.box-button-cripto-active {
  flex: 1; /* Cada botón toma el mismo espacio */
  background-color: #272727;
  border: 2px solid #272727;
  color: #562bff;
  padding: 8px 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background-color 0.3s ease;
  text-align: center;
}

.box-button-budget-active {
  flex: 1; /* Cada botón toma el mismo espacio */
  background-color: #272727;
  border: 2px solid #272727;
  color: #1dd2ea;
  padding: 8px 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background-color 0.3s ease;
  text-align: center;
}

.box-button-cripto:hover {
  color: #562bff;
}

.box-button-budget:hover {
  color: #1dd2ea;
}
.logout_index {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid #ff3c3c;
  border-radius: 8px;
  margin-left: 10px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.logout_index:hover {
  background-color: #ff3c3c;
}

/* =========================================================
   PRESUPUESTO – estilos aislados (tabla-presupuesto)
   ========================================================= */

/* Wrapper valor+flecha siempre juntos */
.tabla-presupuesto .value-wrap{
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px !important;
  font-variant-numeric: tabular-nums;
}

/* Indicadores (sin fondo) */
.tabla-presupuesto .trend{
  font-weight: 900;
  font-size: 1.05em;
  line-height: 1;
  padding: 0;
  border: 0;
  background: transparent;
}

.tabla-presupuesto .trend-good{ color: #2ee59d; }
.tabla-presupuesto .trend-bad{ color: #ff5b5b; }
.tabla-presupuesto .trend-neutral{ color: rgba(255,255,255,0.65); }

/* Periodo “título” */
.tabla-presupuesto .period-title{
  font-weight: 850;
  letter-spacing: 0.2px;
}

/* =========================================================
   MÓVIL – Cards legibles y consistentes
   ========================================================= */
@media (max-width: 520px){

  .balance-card-cripto .responsive-table-wrapper{
    padding: 12px 0 !important;
  }

  .tabla-balance.tabla-presupuesto thead{
    display: none !important;
  }

  .tabla-balance.tabla-presupuesto,
  .tabla-balance.tabla-presupuesto tbody{
    display: block !important;
    width: 100% !important;
  }

  /* Cards más anchas */
  .tabla-balance.tabla-presupuesto tr{
    display: block !important;
    width: 100% !important;           /* más ancho */
    margin: 14px auto !important;

    background: rgba(0,0,0,0.42) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    border-radius: 22px !important;

    padding: 16px 16px !important;
    box-shadow: 0 14px 32px rgba(0,0,0,0.30) !important;

    overflow: hidden;
  }

  /* Layout consistente: label izquierda, valor derecha */
  .tabla-balance.tabla-presupuesto td{
    display: grid !important;
  grid-template-columns: 1.25fr auto !important; /* más espacio para etiquetas */
  column-gap: 65px !important;                   /* separa texto de número */
  padding: 12px 2px !important;                  /* un poco más alto */
    align-items: center !important;

    padding: 10px 2px !important;
    margin: 0 !important;

    background: transparent !important;
    border: 0 !important;
    white-space: nowrap !important;

    font-size: 0.95rem !important;
    line-height: 1.15 !important;

    text-align: left !important;
  }

  /* separador */
  .tabla-balance.tabla-presupuesto td + td{
    border-top: 1px solid rgba(255,255,255,0.08) !important;
  }

  /* Etiquetas */
  .tabla-balance.tabla-presupuesto td::before{
    font-weight: 650 !important;
    opacity: 0.72 !important;
    letter-spacing: 0.25px;
  }

  /* Colocar el valor SIEMPRE a la derecha */
  .tabla-balance.tabla-presupuesto td .value-wrap{
    justify-self: end !important;
    text-align: right !important;
  }

  /* Periodo como H3 centrado */
  .tabla-balance.tabla-presupuesto td.period-cell{
    display: block !important;
    text-align: center !important;
    padding: 6px 0 14px 0 !important;
    border-top: 0 !important;
  }

  .tabla-balance.tabla-presupuesto td.period-cell::before{
    display: none !important;
  }

  .tabla-balance.tabla-presupuesto td.period-cell .period-title{
    display: inline-block !important;
    font-size: 1.15rem !important;
    font-weight: 850 !important;
    opacity: 0.95 !important;
  }

  /* Labels por columna (2..8) */
  .tabla-balance.tabla-presupuesto td:nth-of-type(2)::before{ content: "Ing. Real"; }
  .tabla-balance.tabla-presupuesto td:nth-of-type(3)::before{ content: "Gas. Pres."; }
  .tabla-balance.tabla-presupuesto td:nth-of-type(4)::before{ content: "Gas. Real"; }
  .tabla-balance.tabla-presupuesto td:nth-of-type(5)::before{ content: "Var Gas. ₡"; }
  .tabla-balance.tabla-presupuesto td:nth-of-type(6)::before{ content: "Var Gas. %"; }
  .tabla-balance.tabla-presupuesto td:nth-of-type(7)::before{ content: "Resultado"; }
  .tabla-balance.tabla-presupuesto td:nth-of-type(8)::before{ content: "Patrimonio"; }

  /* Destacar Resultado y Patrimonio */
  .tabla-balance.tabla-presupuesto td:nth-of-type(7),
  .tabla-balance.tabla-presupuesto td:nth-of-type(8){
    font-weight: 800 !important;
    font-size: 1.05rem !important;
  }

  /* Total card premium */
  .tabla-balance.tabla-presupuesto tr.fila-total{
    background: linear-gradient(135deg, #1dd2ea, #17426c) !important;
    border: 1px solid rgba(255,255,255,0.22) !important;
  }

  .tabla-balance.tabla-presupuesto tr.fila-total td + td{
    border-top: 1px solid rgba(255,255,255,0.16) !important;
  }
}

/* =========================
   Budget Detail Accordion (NUEVO / SOLO PARA budget_detail.php)
========================= */

.bd-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.10);
  margin-bottom: 14px;
}

.bd-back{
  border: 0;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 900;
  color: rgba(255,255,255,.92);
  background: rgba(255,255,255,.08);
}

.bd-period-title{
  font-weight: 1000;
  font-size: 1.05rem;
  text-align: center;
  flex: 1;
  color: rgba(255,255,255,.95);
}

.bd-wrapper{
  padding: 8px 4px 4px 4px;
}

/* Accordion layout */
.bd-accordion{
  display: grid;
  gap: 14px;
}

.bd-cat{
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.16);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

.bd-cat-head{
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 14px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.bd-cat-head.is-open{
  background: rgba(255,255,255,.04);
}

.bd-cat-left{
  display: grid;
  gap: 4px;
  text-align: left;
  min-width: 0;
}

.bd-cat-title{
  font-weight: 1000;
  font-size: 1.05rem;
  letter-spacing: .2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bd-cat-meta{
  font-size: .85rem;
  color: rgba(255,255,255,.70);
}

.bd-cat-right{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.bd-cat-var{
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 1000;
  white-space: nowrap;
}

.bd-cat-var .bd-ico{
  font-weight: 1000;
}

.bd-cat-var .bd-val{
  font-variant-numeric: tabular-nums;
}

.bd-cat-var .bd-pct{
  font-size: .85rem;
  opacity: .85;
}

.bd-chev{
  opacity: .75;
  font-size: 1.1rem;
}

.bd-cat-body{
  padding: 10px 14px 14px 14px;
  border-top: 1px solid rgba(255,255,255,.10);
}

.bd-items{
  display: grid;
  gap: 10px;
}

.bd-item{
  border-radius: 14px;
  padding: 12px 12px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.08);
}

.bd-item-name{
  font-weight: 1000;
  margin-bottom: 10px;
}

.bd-item-cols{
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  gap: 10px;
}

.bd-kv{
  display: grid;
  gap: 4px;
}

.bd-kv span{
  font-size: .78rem;
  color: rgba(255,255,255,.68);
}

.bd-kv strong{
  font-size: .95rem;
  font-variant-numeric: tabular-nums;
}

.bd-kv-var strong{
  display: inline-flex;
  gap: 8px;
  align-items: baseline;
}

.bd-subpct{
  margin-top: 4px;
  font-size: .78rem;
  color: rgba(255,255,255,.70);
}

/* Finanzas: + ahorro verde, - sobregasto rojo, = neutro */
.var-up{ color:#2ee59d; }
.var-down{ color:#ff5a6a; }
.var-eq{ color:rgba(255,255,255,.60); }

/* Mobile */
@media (max-width: 420px){
  .bd-cat-head{ padding: 14px 12px; }
  .bd-cat-body{ padding: 10px 12px 12px 12px; }
  .bd-item-cols{ grid-template-columns: 1fr 1fr; }
  .bd-kv-var{ grid-column: 1 / -1; }
  .bd-period-title{ font-size: 1rem; }
}

/* ===== Detalle: Var en una sola línea y con colores ===== */
.detalle-var-line{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:10px;
}

.detalle-var-label{
  opacity:.85;
  font-weight:600;
}

.detalle-var-right{
  display:flex;
  justify-content:flex-end;
  flex:1;
}

.trend{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  font-weight:700;
  white-space:nowrap;
}

.trend-icon{
  font-weight:900;
  font-size:14px;
  line-height:1;
}

/* Colores (mejor práctica: verde=mejora, rojo=peor, neutro=igual) */
.trend.up{ color:#3fe38a; }     /* mejora */
.trend.down{ color:#ff4d4d; }   /* empeora */
.trend.eq{ color:rgba(255,255,255,.65); } /* neutro */

/* Separación fina entre monto y % */
.trend-pct{
  font-weight:700;
  opacity:.9;
}

/* ===== Detalle (items) - NUEVAS CLASES para no afectar otras páginas ===== */

.bd-item{
  margin-top: 12px;
  padding: 14px 14px 12px;
  border-radius: 18px;
  background: rgba(0,0,0,.18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}

.bd-item-title{
  font-weight: 800;
  margin-bottom: 10px;
  font-size: 15px;
  letter-spacing: .2px;
}

/* 2 columnas: Pres y Real; Var ocupa toda la fila */
.bd-item-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
}

.bd-kv{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,.06);
}

.bd-kv:first-child,
.bd-kv:nth-child(2){
  border-top: none;
}

/* Var ocupa fila completa */
.bd-kv-var{
  grid-column: 1 / -1;
}

/* Etiquetas y valores */
.bd-label{
  opacity: .78;
  font-weight: 700;
}

.bd-value{
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

/* VAR derecha: flecha + ₡ + % en una sola línea */
.bd-var-right{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap: 10px;
  white-space: nowrap;
  font-weight: 900;
  margin-left: auto;
  text-align: right;
}

/* Flecha SIN fondo */
.bd-trend-icon{
  font-weight: 1000;
  font-size: 14px;
  line-height: 1;
}

/* Monto y % */
.bd-var-monto{ font-weight: 900; }
.bd-var-pct{
  font-weight: 800;
  opacity: .9;
}

/* Colores (mejor práctica financiera: verde=mejora, rojo=peor, gris=neutro) */
.bd-var-right.up   { color: #37e58a; }   /* ahorro */
.bd-var-right.down { color: #ff4d4d; }   /* sobregasto */
.bd-var-right.eq   { color: rgba(255,255,255,.65); } /* igual */

/* Responsive: más aire en pantallas pequeñas */
@media (max-width: 420px){
  .bd-item{ padding: 14px; }
  .bd-item-grid{ gap: 8px 12px; }
}

/* ===== Budget Detail: items en 1 sola línea (Pres | Real + Var) ===== */
.bd-item { padding: 12px 12px 14px; }
.bd-item-title{
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 10px;
  color: rgba(255,255,255,.95);
}

.bd-line{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.bd-kv{
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.bd-lbl{
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,.60);
  letter-spacing: .2px;
}

.bd-num{
  font-size: 13px;
  font-weight: 800;
  color: rgba(255,255,255,.95);
  white-space: nowrap;
}

.bd-kv-right{
  margin-left: auto;
  justify-content: flex-end;
  gap: 10px;
}

/* Var pegada a la derecha del Real, sin fondo */
.bd-var{
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
  font-weight: 800;
  font-size: 13px;
}

.bd-ic{
  font-weight: 900;
  margin-right: 2px;
}

/* Colores (mejores prácticas financieras: ahorro=verde, sobregasto=rojo, igual=neutral) */
.bd-var.up   { color: #2ee59d; }
.bd-var.down { color: #ff5b6e; }
.bd-var.eq   { color: rgba(255,255,255,.65); }

/* El monto y % un toque más suaves que el número principal */
.bd-varm{ opacity: .95; }
.bd-varp{ opacity: .75; font-weight: 800; }

a {
    color: inherit;       /* Hereda el color del texto del elemento padre */
    text-decoration: none; /* Elimina el subrayado */
}

/* =========================
   BUDGET DETAIL v2 (bd2-*)
   No afecta otras páginas
========================= */

.bd2-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 10px 8px 14px 8px;
}
.bd2-back{
  border: 0;
  background: rgba(255,255,255,0.12);
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  cursor:pointer;
}
.bd2-period{
  flex: 1;
  text-align:center;
  font-weight: 800;
  font-size: 18px;
  color:#fff;
}
.bd2-spacer{ width: 72px; } /* para balancear el botón */

.bd2-wrapper{
  padding: 8px 6px 14px 6px;
}

/* “Monthly” card */
.bd2-month{
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  padding: 14px 14px 12px 14px;
  margin: 8px 6px 14px 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.20);
}
.bd2-month-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom: 10px;
}
.bd2-month-title{
  font-weight: 800;
  color: rgba(255,255,255,0.85);
}
.bd2-month-pct{
  font-weight: 900;
  color: rgba(255,255,255,0.92);
}
.bd2-month-meta{
  display:flex;
  justify-content:space-between;
  gap: 10px;
  margin-top: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.78);
}
.bd2-blue{ color: rgba(120,190,255,0.95); }

/* Bars */
.bd2-bar{
  width: 100%;
  height: 12px;
  background: rgba(255,255,255,0.14);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
}
.bd2-bar-fill{
  height: 100%;
  width: 0%;
  background: rgba(90,170,255,0.95);
  border-radius: 999px;
}
.bd2-bar-fill.is-over{
  background: rgba(255,85,85,0.95);
}
.bd2-bar-sm{ height: 10px; margin-top: 10px; }
.bd2-bar-xs{ height: 8px; margin-top: 10px; opacity: 0.9; }

.bd2-accordion{
  display:flex;
  flex-direction:column;
  gap: 12px;
  padding: 0 6px 10px 6px;
}

/* Category card */
.bd2-cat{
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.20);
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
}
.bd2-cat-head{
  width: 100%;
  text-align:left;
  border: 0;
  background: transparent;
  padding: 14px 14px 12px 14px;
  color: #fff;
  cursor:pointer;
}
.bd2-cat-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}
.bd2-cat-name{
  font-size: 16px;
  font-weight: 900;
  color: rgba(255,255,255,0.92);
}
.bd2-cat-pct{
  font-size: 14px;
  font-weight: 900;
  color: rgba(255,255,255,0.92);
}

.bd2-cat-bottom{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 10px;
  margin-top: 10px;
}
.bd2-cat-amounts{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.80);
}

/* Var “financiera” */
.bd2-cat-var{
  display:flex;
  align-items:center;
  gap: 8px;
  font-weight: 900;
  white-space: nowrap;
}
.bd2-chev{ margin-left: 6px; opacity: 0.85; }

/* Trend colors (best practice) */
.t-up{ color: rgba(68,214,125,0.95); }    /* ahorro -> verde */
.t-down{ color: rgba(255,85,85,0.95); }  /* sobregasto -> rojo */
.t-eq{ color: rgba(220,220,220,0.85); }  /* neutro -> gris */

.bd2-tr{ font-size: 14px; line-height: 1; }
.bd2-trval{ font-size: 13px; }
.bd2-trpct{ font-size: 13px; opacity: 0.92; }

/* Body / items */
.bd2-cat-body{
  padding: 12px 12px 14px 12px;
  border-top: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.14);
}
.bd2-items{
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.bd2-item{
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 12px 12px 12px 12px;
}
.bd2-item-title{
  font-weight: 900;
  color: rgba(255,255,255,0.92);
  margin-bottom: 10px;
}
.bd2-item-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}

/* Aquí va lo que pedís: Pres + Real + Var TODO en una misma línea */
.bd2-item-nums{
  width: 100%;
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255,255,255,0.80);
}
.bd2-item-nums > span{
  display:inline-flex;
  gap: 6px;
}

/* Var compacta pegada a la derecha del Real */
.bd2-var{
  margin-left: auto;
  display:inline-flex;
  align-items:baseline;
  gap: 8px;
  font-weight: 900;
  white-space: nowrap;
}

/* Mobile: mejorar respiración */
@media (max-width: 420px){
  .bd2-wrapper{ padding: 8px 4px 12px 4px; }
  .bd2-month{ margin: 8px 4px 12px 4px; }
  .bd2-accordion{ padding: 0 4px 10px 4px; }
  .bd2-month-meta{ font-size: 12px; }
}
/* =========================
   Budget Detail (nuevo layout tipo app)
   ========================= */

.bd-wrapper {
  width: 100%;
}

.bd-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 6px 0 2px;
}

.bd-cat-head {
  width: 100%;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding: 14px 14px 12px;
  background: rgba(0,0,0,.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: left;
  position: relative;
}

.bd-cat-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.bd-cat-title {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: .2px;
}

.bd-cat-pres {
  font-size: 13px;
  color: rgba(255,255,255,.85);
  font-weight: 700;
  white-space: nowrap;
}

.bd-bar {
  width: 100%;
  height: 14px;
  background: rgba(255,255,255,.22);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.bd-bar-fill {
  height: 100%;
  background: rgba(255,255,255,.95); /* barra blanca */
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 34px; /* para que el % no se corte */
}

.bd-bar-pct {
  font-size: 12px;
  font-weight: 900;
  color: #000; /* texto negro dentro de la barra */
  line-height: 1;
  padding: 0 8px;
}

.bd-cat-bottom {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 750;
}

.bd-cat-real,
.bd-item-real {
  color: rgba(255,255,255,.92); /* NO celeste */
}

.bd-cat-var,
.bd-item-var {
  color: rgba(255,255,255,.85);
  font-weight: 800;
  white-space: nowrap;
}

.bd-chev {
  position: absolute;
  right: 14px;
  top: 14px;
  color: rgba(255,255,255,.75);
  font-size: 16px;
}

.bd-cat-body {
  margin-top: 10px;
}

.bd-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 2px 2px;
}

.bd-item {
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  padding: 12px;
  background: rgba(0,0,0,.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.bd-item-title {
  font-size: 14px;
  font-weight: 850;
  color: #fff;
  margin-bottom: 8px;
}

.bd-item-pres {
  font-size: 12px;
  font-weight: 750;
  color: rgba(255,255,255,.80);
  margin-bottom: 8px;
}

.bd-bar--mini {
  height: 10px;
}

.bd-bar--mini .bd-bar-pct {
  font-size: 11px;
  padding: 0 6px;
}

.bd-item-bottom {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 800;
}
/* =============================
   Budget Detail v2 (bd2-*)
   Pegar al final del styles.css
============================= */

.bd2-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 14px 14px 10px 14px;
}

.bd2-back{
  border: 0;
  background: rgba(0,0,0,0.22);
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
}

.bd2-period{
  flex: 1;
  text-align: center;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.2px;
  color: #fff;
  padding-right: 46px; /* compensa el botón volver para quedar centrado visualmente */
}

.bd2-wrapper{
  padding: 10px 12px 18px 12px;
}

.bd2-accordion{
  display:flex;
  flex-direction:column;
  gap: 12px;
}

.bd2-cat{
  border-radius: 18px;
  overflow: hidden;
  background: rgba(0,0,0,0.16);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

.bd2-head{
  width:100%;
  text-align:left;
  border:0;
  background: linear-gradient(180deg, rgba(0,0,0,0.18), rgba(0,0,0,0.10));
  padding: 14px 14px 12px 14px;
  color:#fff;
  cursor:pointer;
  position: relative;
}

.bd2-head-row{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap: 10px;
}

.bd2-title{
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.2px;
  line-height: 1.15;
}

.bd2-pct{
  font-size: 16px;
  font-weight: 900;
  opacity: 0.95;
}

.bd2-pres{
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  opacity: 0.92;
}

.bd2-bar{
  margin-top: 10px;
  height: 18px;
  border-radius: 999px;
  background: rgb(136 136 136 / 21%);
  overflow: hidden;
  position: relative;
}

.bd2-bar-fill{
  height:100%;
background: linear-gradient(41deg, #c8bfbf, #8e9aa6);
  border-radius: 999px;
  position: relative;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  min-width: 34px; /* para que el % no se pierda */
}

.bd2-bar-text{
  color:#FAFAFA;                 /* % dentro en negro */
  font-weight: 900;
  font-size: 12px;
  padding-right: 10px;
  white-space: nowrap;
}

.bd2-foot{
  margin-top: 10px;
  display:flex;
  justify-content:space-between;
  gap: 10px;
  font-size: 13px;
  font-weight: 800;
  opacity: 0.95;
}

.bd2-foot-left,
.bd2-foot-right{
  color:#fff; /* sin celeste */
}

.bd2-chev{
  position:absolute;
  right: 12px;
  top: 14px;
  opacity: 0.9;
  font-weight: 900;
}

.bd2-body{
  padding: 8px 12px 14px 12px;
  background: rgba(0,0,0,0.10);
  border-top: 1px solid rgba(255,255,255,0.10);
}

.bd2-items{
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.bd2-item{
  border-radius: 16px;
  padding: 12px;
  background: rgba(0,0,0,0.16);
  border: 1px solid rgba(255,255,255,0.08);
}

.bd2-item-name{
  font-size: 15px;
  font-weight: 900;
  margin-bottom: 8px;
}

.bd2-item-pres{
  font-size: 12px;
  font-weight: 700;
  opacity: 0.92;
}

/* barra más pequeña en detalles */
.bd2-bar-sm{
  height: 14px;
  margin-top: 8px;
}

.bd2-foot-sm{
  font-size: 12px;
  margin-top: 8px;
  opacity: 0.95;
}

/* Mobile tuning */
@media (max-width: 420px){
  .bd2-title{ font-size: 17px; }
  .bd2-period{ font-size: 17px; }
  .bd2-bar{ height: 16px; }
  .bd2-bar-text{ font-size: 11px; padding-right: 8px; }
}
