:root {
  /* Colores */
  --dark-princ-color: #162341;
  --dark-princ-color-sombra: #1b3061;
  --dark-princ-border-color: #1c2c52;
  --dark-princ-transp-color: rgba(16, 25, 47, 0.5);
  --font-blanco-color: #fff;
  --font-azul-color: #164bac;
  --font-celeste-color: #8da5cc;
  --font-celeste-color-transp: #ffffffe7;
  --font-hover-color: #c2c2c2;
  --rojo: #f44336;
  --verde: #4caf50;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  overflow-x: hidden;
  font-family: "Montserrat", sans-serif;
  background: var(--dark-princ-color);
  color: var(--font-blanco-color);
}

h1,
h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1rem;
}

.nota-input .accordion {
  --bs-accordion-border-radius: 5px;
}

.accordion {
  --bs-accordion-bg: var(--dark-princ-color);
  --bs-accordion-color: var(--font-blanco-color);
  --bs-accordion-border-color: var(--font-azul-color);
}

.accordion-button {
  color: var(--font-blanco-color);
}

.accordion-btn {
  position: relative;
}

.icono-alerta {
  color: var(--font-azul-color);
  padding-right: 5px;
}

.tit-nota-imp {
  display: flex;
  justify-content: end;
  align-items: center;
  height: 39px;
  flex: 1;
  padding-right: 5px;
}

#notaImp span {
  font-size: 13px;
}

/* Flechita con fondo oscuro (acordeón cerrado) */
.accordion-button.collapsed::after {
  filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%)
    contrast(100%);
}

/* Flechita con fondo blanco (acordeón abierto) - sin filtro */
.accordion-button::after {
  filter: none;
}

.logo img {
  width: 50px;
  position: absolute;
  top: 10px;
  left: 2px;
  z-index: 10;
}

.nota-input {
  position: fixed;
  width: 100%;
  z-index: 20;
}

.backg-inputMov {
  background: var(--dark-princ-color);
  position: relative;
}

.gral-inputMov {
  background: var(--dark-princ-color);
  padding: 10px 10px 0 10px;
}

.inputMov {
  display: flex;
  flex-direction: column;
}

input::placeholder {
  color: var(--font-blanco-color);
  opacity: 0.7; /* Asegura que no sea muy transparente en algunos navegadores */
}

input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  /* Opcional: tamaño */
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.inputMov_fila-uno,
.inputMov_fila-dos,
.inputMov_fila-tres {
  display: flex;
}

.inputMov_fecha,
.inputMov_monto {
  width: 120px;
}

.inputMov_detalle,
.inputMov_fuente {
  flex: 1;
  min-width: 0;
}

.inputMov_fecha,
.inputMov_monto,
.inputMov_detalle,
.inputMov_fuente {
  background: none;
  color: var(--font-blanco-color);
  border-top: none;
  border-right: solid 2px var(--font-celeste-color);
  border-bottom: solid 2px var(--font-celeste-color);
  border-left: none;
  border-radius: 10px;
  margin: 2px;
  padding-left: 5px;
  margin: 2px;
  padding-left: 5px;
}

.inputMov_fecha:focus,
.inputMov_monto:focus,
.inputMov_detalle:focus,
.inputMov_fuente:focus {
  border-top: solid 2px var(--font-azul-color);
  border-right: none;
  border-bottom: none;
  border-left: solid 2px var(--font-azul-color);
  border-radius: 10px;
  outline: none; /* opcional: saca el contorno por defecto del navegador */
}

.inputMov_fuente {
  background-image: url("data:image/svg+xml;utf8,<svg fill='gray' height='14' viewBox='0 0 24 24' width='14' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
  padding-right: 25px;
}

.inputMov_fila-tres {
  height: 40px;
  margin-top: 15px;
}

.inputMov_tipo {
  padding: 5px;
}

.inputMov_tipo label:last-child {
  margin: 0 20px;
}

.botones {
  display: flex;
  flex: 1;
  min-width: 0;
  justify-content: center;
  padding-top: 2px;
  justify-content: end;
}

.botones button {
  border-radius: 10px;
  height: 30px;
  font-size: clamp(0.75rem, 0.438rem + 1.563vw, 1rem);
  margin: 0;
  width: clamp(
    4.375rem,
    -3.438rem + 39.063vw,
    10.625rem
  ); /* 70px-170px / 320px-576px*/
}

.botones button:nth-of-type(1) {
  background: var(--dark-princ-color-sombra);
  color: var(--font-blanco-color);
  border: solid 2px var(--font-azul-color);
  border-radius: 10px;
  font-weight: 500;
}

.botones button:nth-of-type(1):active {
  border: solid 2px var(--font-celeste-color);
}

.botones button:nth-of-type(2) {
  background: var(--font-celeste-color);
  color: var(--font-azul-color);
  border: solid 2px var(--font-azul-color);
  border-radius: 10px;
  font-weight: 500;
}

.botones button:nth-of-type(2):active {
  border: solid 2px var(--font-blanco-color);
}

.logo-inputMov,
.devGEP-inputMov {
  display: none;
}

.movimientos {
  padding: 237px 10px 10px 10px;
  overflow-x: hidden;
}

.gral-mes-selector {
  display: flex;
  justify-content: space-between;
}

#mes-selector {
  background: none;
  color: var(--font-blanco-color);
  border-top: none;
  border-right: solid 2px var(--font-celeste-color);
  border-bottom: solid 2px var(--font-celeste-color);
  border-left: none;
  border-radius: 10px;
}

#mes-selector option {
  background: var(--dark-princ-color);
}

.mes .accordion {
  border-radius: 20px;
}

#saldoInicial button {
  height: 25px;
  padding: 5px;
}

#saldoInicial .accordion-body {
  padding: 5px;
}

#saldoInicial .accordion-body ul {
  margin: 0;
}

#saldoInicial li {
  font-size: 0.75rem;
}

.gral-ingresos-gastos {
  display: flex;
  flex-direction: column;
}

.gral-ingresos-gastos h3 {
  margin: 5px 0;
}

.gral-ingresos-gastos th {
  font-size: 0.75rem;
  color: var(--font-celeste-color);
}

.gral-ingresos-gastos tr {
  font-size: 0.75rem;
}

table {
  border-collapse: collapse;
  width: 100%;
}
td,
th {
  border: 1px solid #dddddd;
  text-align: left;
  padding: 8px;
}

.th-fecha,
.td-fecha {
  min-width: 65px;
  max-width: 100px;
}

.th-detalle {
  min-width: 100px;
  max-width: 150px;
}

.td-detalle {
  max-width: 150px;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.th-fuente {
  min-width: 100px;
}

.td-fuente {
  max-width: 150px;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.th-acciones,
.td-acciones {
  min-width: 83px;
}

.td-acciones {
  padding-left: 10px;
}

.td-acciones button {
  background: none;
  border: none;
  padding: 0 5px;
  /* margin: 0 2px; */
  cursor: pointer;
  color: inherit;
  font-size: 1.2rem; /* Tamaño del icono */
}

.td-acciones button:hover {
  color: var(--font-celeste-color); /* Color al pasar el mouse */
}

.totales {
  display: flex;
  flex-direction: column;
  align-items: start;
  margin-top: 10px;
  flex-wrap: wrap;
  font-size: 0.75rem;
}
.saldo-fuente {
  padding: 1px;
  font-weight: 500;
}
.saldo-positivo {
  color: var(--verde);
}
.saldo-negativo {
  color: var(--rojo);
}

.totales div:last-child {
  font-size: 1rem;
  font-weight: bold;
}

.saldo-mes {
  margin-bottom: 10px;
}

.mes {
  padding: 7px 0;
  flex: 1 1 100%;
  border-top: solid 2px var(--font-celeste-color);
  border-radius: 0 10px;
  margin-top: 5px;
}

.mes:first-child {
  border-top: none;
  margin-top: 0;
}

.gral-ingresos table,
.gral-gastos table {
  width: 100%;
  margin-bottom: 7px;
  border-radius: 10px;
}

.ingresos,
.gastos {
  overflow-x: scroll;
}

body::-webkit-scrollbar,
.ingresos::-webkit-scrollbar,
.gastos::-webkit-scrollbar {
  background-color: var(--dark-princ-color-sombra);
  width: 5px;
  height: 5px;
}

body::-webkit-scrollbar-thumb,
.ingresos::-webkit-scrollbar-thumb,
.gastos::-webkit-scrollbar-thumb {
  background-color: var(--font-celeste-color);
}

#secciones-mensuales .mes:last-child {
  padding-bottom: 80px;
}

.backup {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: fixed;
  bottom: 0;
  background: var(--dark-princ-color);
  padding: 10px;
  width: 100vw;
  border-top: solid 1px var(--font-azul-color);
  border-radius: 0 10px;
}

#importar-json {
  display: none;
}

.backup-botones {
  position: relative;
  display: flex;
  flex: 1;
  min-width: 0;
  justify-content: center;
  padding-top: 2px;
  margin: 2px 2px 0 2px;
  height: 30px;
  font-size: clamp(0.75rem, 0.438rem + 1.563vw, 1rem);
  width: clamp(
    4.688rem,
    1.172rem + 17.578vw,
    7.5rem
  ); /*75px-120px / 320px-576px */
  background: var(--dark-princ-color-sombra);
  color: var(--font-blanco-color);
  border: solid 2px var(--font-azul-color);
  border-radius: 10px;
  font-weight: 500;
}

.backup-botones:active {
  border: solid 2px var(--font-celeste-color);
}

.backup-botones span {
  font-size: 10px;
}

.borrar {
  padding-top: 3px;
}

.backup-botones .acotacion {
  font-size: 8px;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.backup-botones i {
  padding: 0 2px;
}

.bi-filetype-json::before,
.bi-file-earmark-excel::before,
.bi-trash3::before {
  font-size: 18px;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-contenido {
  background: var(--font-celeste-color-transp);
  padding: 10px;
  border-radius: 10px;
  max-width: 300px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.modal p {
  color: var(--dark-princ-color);
  font-weight: 500;
}

.modal-botones button {
  margin: 5px;
  padding: 8px 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#confirmar-borrado {
  border: solid 3px var(--rojo);
  background: none;
  color: var(--rojo);
  font-weight: 500;
}

#cancelar-borrado {
  border: solid 3px var(--dark-princ-color);
  background: none;
  color: var(--dark-princ-color);
  font-weight: 500;
}

.diseño-web {
  position: fixed;
  bottom: 47px;
  right: 10px;
  text-decoration: none;
  color: var(--font-celeste-color);
}

/*=======================================================================================
  MEDIA QUERIES | Mobile First            
=======================================================================================*/

/* PANTALLA SMALL ms ≥576px | BOOTSTRAP sm */
@media (min-width: 576px) {
  .gral-inputMov {
    width: 576px;
  }

  .gral-mes-selector {
    width: 556px;
  }

  #saldoInicial {
    width: 556px;
  }

  .tit-nota-imp {
    padding-right: 20px;
  }

  .th-fecha,
  .td-fecha {
    min-width: 100px;
  }

  .th-detalle,
  .td-detalle,
  .th-fuente,
  .td-fuente {
    width: 50%;
  }

  .th-monto,
  .td-monto {
    min-width: 111px;
  }

  .th-porcentaje,
  .td-porcentaje {
    min-width: 60px;
  }

  .th-acciones,
  .td-acciones {
    width: 83px;
  }
}

/* PANTALLA MEDIUM md ≥768px | BOOTSTRAP md ===================================*/
@media (min-width: 768px) {
  .logo-inputMov {
    display: block;
    position: absolute;
    top: 0;
    right: 20px;
    width: 160px;
    height: 160px;
  }

  .devGEP-d,
  .devGEP-G {
    position: absolute;
  }
  .devGEP-d {
    top: 3px;
    left: 0px;
  }

  .devGEP-G {
    top: 47px;
    left: 23px;
  }
}

/* PANTALLA EXTRA LARGE lg ≥992px | BOOTSTRAP lg =====================================*/
@media (min-width: 992px) {
  .logo-inputMov {
    display: none;
  }
  .devGEP-inputMov {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 328px;
    height: 120px;
  }
  .devGEP-1,
  .devGEP-2,
  .devGEP-3,
  .devGEP-4,
  .devGEP-5,
  .devGEP-6 {
    position: absolute;
  }
  .devGEP-1 {
    top: -2px;
    left: -10px;
  }

  .devGEP-2 {
    top: 26px;
    left: 46px;
  }

  .devGEP-3 {
    top: 9px;
    left: 90px;
  }

  .devGEP-4 {
    top: 34px;
    left: 138px;
  }

  .devGEP-5 {
    top: 0;
    left: 196px;
  }

  .devGEP-6 {
    top: 32px;
    left: 245px;
  }
}

/* PANTALLA EXTRA LARGE xl ≥1200px | BOOTSTRAP xl =====================================*/
@media (min-width: 1200px) {
  .devGEP-inputMov {
    margin-right: 25px;
  }
}

/* PANTALLA EXTRA EXTRA LARGE xxl ≥1400px | BOOTSTRAP xxl =============================*/
@media (min-width: 1400px) {
  .devGEP-inputMov {
    margin-right: 75px;
  }
}

/* PANTALLA  ≥1690px (si es necesario) */
@media (min-width: 1690px) {
  .devGEP-inputMov {
    margin-right: 150px;
  }
}

/*=======================================================================================
  ANIMACIONES          
=======================================================================================*/

@keyframes opacidadA {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
@keyframes opacidadB {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
@keyframes opacidadC {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes flotanteA {
  0%, 100% { translate: 0 -3px; }
  50% { translate: 0 6px; }
}
@keyframes flotanteB {
  0%, 100% { translate: 0 -5px; }
  50% { translate: 0 10px; }
}
@keyframes flotanteC {
  0%, 100% { translate: 0 -2px; }
  50% { translate: 0 4px; }
}

