/*
* demo.css
* File include item demo only specific css only
******************************************************************************/

.menu .app-brand.demo {
  height: 64px;
  margin-top: 12px;
}

.app-brand-logo.demo svg {
  width: 22px;
  height: 38px;
}

.app-brand-text.demo {
  font-size: 1.4rem;
  letter-spacing: -0.5px;
}

/* ! For .layout-navbar-fixed added fix padding top tpo .layout-page */
/* Detached navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
  padding-top: 76px !important;
}

/* Default navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 64px !important;
}

/* Navbar page z-index issue solution */
.content-wrapper .navbar {
  z-index: auto;
}

/*
* Content
******************************************************************************/

.demo-blocks>* {
  display: block !important;
}

.demo-inline-spacing>* {
  margin: 1rem 0.375rem 0 0 !important;
}

.demo-vertical-spacing>* {
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
}

.demo-vertical-spacing.demo-only-element> :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-lg>* {
  margin-top: 1.875rem !important;
  margin-bottom: 0 !important;
}

.demo-vertical-spacing-lg.demo-only-element> :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-xl>* {
  margin-top: 5rem !important;
  margin-bottom: 0 !important;
}

.demo-vertical-spacing-xl.demo-only-element> :first-child {
  margin-top: 0 !important;
}

.rtl-only {
  display: none !important;
  text-align: left !important;
  direction: ltr !important;
}

[dir='rtl'] .rtl-only {
  display: block !important;
}

/*
* Layout demo
******************************************************************************/

.layout-demo-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  margin-top: 1rem;
}

.layout-demo-placeholder img {
  width: 900px;
}

.layout-demo-info {
  text-align: center;
  margin-top: 1rem;
}


/* ============================================
   TARJETA DE BALANCE - ESTILO CLARO
   ============================================ */

/* Contenedor principal de la tarjeta */
.card-balance {
  background: #ffffff !important;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem 1.25rem 1.5rem;
  color: #697a8d;
  box-shadow: 0 2px 6px 0 rgba(67, 89, 113, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #d9dee3;
  height: 100%;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-balance:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px 0 rgba(67, 89, 113, 0.16);
}

/* Fila superior: "Balance" + ícono de ajustes */
.card-balance .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.1rem;
  padding: 0;
  background: transparent;
  border: none;
}

.card-balance .card-header .label {
  font-size: 0.7rem;
  letter-spacing: 0.8px;
  opacity: 0.7;
  font-weight: 600;
  text-transform: uppercase;
  color: #697a8d;
}

.card-balance .card-header .icon-settings {
  color: #a1acb8;
  font-size: 1rem;
  cursor: default;
  transition: color 0.2s ease;
}

.card-balance .card-header .icon-settings:hover {
  color: #697a8d;
}

/* Monto principal (balance total) */
.card-balance .balance-amount {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 0.2rem 0 0.6rem 0;
  line-height: 1.2;
  color: #233446;
}

.card-balance .balance-amount .currency {
  font-size: 1.3rem;
  font-weight: 500;
  margin-right: 0.1rem;
  opacity: 0.6;
  color: #697a8d;
}

/* Detalle de ingresos y egresos */
.card-balance .row-stats {
  display: flex;
  justify-content: space-between;
  background: #FAF8F9;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  margin: 0.1rem 0 0.75rem 0;
  border: 1px solid #eceef1;
}

.card-balance .stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.card-balance .stat-item .stat-label {
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  /*opacity: 0.5;*/
  margin-bottom: 0.05rem;
  font-weight: 900;
  color: #697a8d;
}

.card-balance .stat-item .stat-value {
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.2px;
}

.card-balance .stat-item .stat-value.income {
  color: #F2A4C4;
}

.card-balance .stat-item .stat-value.expense {
  color: #ff3e1d;
}

/* Línea divisoria sutil */
.card-balance .divider-light {
  width: 100%;
  height: 1px;
  background: #d9dee3;
  margin: 0.1rem 0 0.75rem 0;
  opacity: 0.5;
}

/* Fila inferior: nombre de cuenta + número (simulado) */
.card-balance .footer-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.card-balance .account-name {
  display: flex;
  flex-direction: column;
}

.card-balance .account-name .label {
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  /*opacity: 0.4;*/
  margin-bottom: 0.1rem;
  font-weight: 900;
  color: #697a8d;
}

.card-balance .account-name .name {
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
  color: #233446;
}

.card-balance .card-number {
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  letter-spacing: 2px;
  /*opacity: 0.5;*/
  background: #FAF8F9;
  padding: 0.15rem 0.6rem;
  border-radius: 1.5rem;
  border: 1px solid #eceef1;
  color: #697a8d;
}

/* Ajuste para que se vea más pulcro */
.card-balance * {
  box-sizing: border-box;
}

/* Pequeño toque responsive */
@media (max-width: 420px) {
  .card-balance {
    padding: 1rem 1rem 1.25rem 1rem;
    border-radius: 0.5rem;
    min-height: 170px;
  }

  .card-balance .balance-amount {
    font-size: 1.6rem;
  }

  .card-balance .balance-amount .currency {
    font-size: 1.1rem;
  }

  .card-balance .row-stats {
    flex-direction: column;
    gap: 0.3rem;
    align-items: stretch;
    padding: 0.5rem 0.75rem;
  }

  .card-balance .stat-item {
    flex-direction: row;
    justify-content: space-between;
    border-bottom: 1px solid #eceef1;
    padding: 0.15rem 0;
  }

  .card-balance .stat-item:last-child {
    border-bottom: none;
  }

  .card-balance .stat-item .stat-label {
    margin-bottom: 0;
    font-size: 0.55rem;
  }

  .card-balance .stat-item .stat-value {
    font-size: 0.8rem;
  }

  .card-balance .footer-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .card-balance .card-number {
    align-self: flex-start;
    font-size: 0.7rem;
  }
}

/* Añade esto a tu archivo CSS */
.swal2-container {
    z-index: 99999 !important;
}