/* ============================================================
   FINANCEL — CARTÕES V3 PREMIUM
   Visual Glass / Metallic com alternância inteligente
   Layout 50/50 responsivo, Apple UX
   
   ⚠️ ATUALIZADO: Tokens base vêm de design-tokens-v4.css
   ============================================================ */

/* 
 * Tokens específicos da página de cartões
 * Tokens globais vêm de design-tokens-v4.css
 */
:root {
  --card-radius: 22px;
  --card-shadow: var(--fin-shadow-xl, 0 18px 44px rgba(0,0,0,0.65));
  --card-padding: 1.4rem;
}

/* -------------------------------------------------------------
   HARDENING ANTI-OVERFLOW (PÁGINA CARTÕES)
------------------------------------------------------------- */

.dashboard-container {
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  overflow-x: hidden;
}

/* Mantém a tela “contida” no desktop, sem ficar gigante */
@media (min-width: 1280px) {
  .lanc-grid {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
  }
}

.lanc-grid,
.dash-top-summary,
.dash-card {
  min-width: 0;
}

.header-left,
.header-middle,
.header-right,
.dash-top-badges,
.dash-top-right-actions {
  min-width: 0;
}

.dash-top-badges {
  flex-wrap: wrap;
}

.dash-top-badge {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-right {
  flex-wrap: wrap;
  gap: 10px;
}

.header-right > * {
  min-width: 0;
}

img, svg {
  max-width: 100%;
}

/* GRID PRINCIPAL — 1 coluna (cadastro em cima, lista embaixo) */
.lanc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  width: 100%;
  margin-top: 1rem;
}

/* Garante que os cards ocupem a largura toda do grid */
.lanc-form-card,
.lanc-list-card {
  grid-column: 1 / -1;
  min-width: 0;
}

@media (max-width: 880px) {
  .lanc-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 400px) {
  .lanc-grid {
    gap: 1rem;
    margin-top: 1rem;
  }

  .lanc-form-card,
  .lanc-list-card {
    padding: 1.2rem;
  }
}

/* FORM CARD */
.lanc-form-card {
  padding: 1.15rem;
  border-radius: var(--card-radius);
  background: var(--grad-card);
  border: 1px solid rgba(148,163,184,0.32);
  box-shadow: var(--shadow-strong);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

/* Ajuste fino de densidade (cadastro mais compacto) */
.lanc-form-card .lanc-input,
.lanc-form-card .lanc-select {
  padding: 0.65rem 0.8rem;
}

.lanc-form-card .lanc-field small {
  margin-top: 4px;
}

/* Cadastro mais compacto sem remover campos */
.lanc-field {
  margin: 0;
}

/* HEADER DE CADA CARD */
.dash-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .4rem;
  flex-wrap: wrap;
  gap: 10px;
}

.dash-card-header > * {
  min-width: 0;
}

.dash-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-300);
  display: flex;
  align-items: center;
  gap: 6px;
}

.dash-card-title-icon {
  width: 20px;
  height: 20px;
  opacity: .95;
}

/* CAMPOS */
.lanc-field label {
  font-size: .82rem;
  color: var(--text-soft);
  display: block;
  margin-bottom: 4px;
}

/* BOTÃO PRINCIPAL */
.lanc-actions {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
}

/* -------------------------------------------------------------
   SELETOR DE COR + PREVIEW INLINE (SIMPLIFICADO)
------------------------------------------------------------- */

.cartao-visual-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  flex-wrap: wrap;
  width: 100%;
}

.cartao-visual-controls {
  flex: 1 1 320px;
  min-width: 0;
}

.cartao-visual-controls small {
  min-width: 0 !important;
  flex: 1 1 auto;
}

/* -------------------------------------------------------------
   CARTÃO VISUAL 3D PREMIUM
------------------------------------------------------------- */

.cartao-preview-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 12px 0 4px 0;
}

.cartao-preview-wrapper--inline {
  width: auto;
  margin: 0;
  justify-content: flex-end;
  flex: 0 0 auto;
}

/* Preview bonito (apenas formato + cor) */
.cartao-color-preview {
  width: 280px;
  height: 168px;
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,0.28);
  box-shadow: 0 14px 34px rgba(0,0,0,0.45);
  position: relative;
  overflow: hidden;
  background: #111827;
}

.cartao-color-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 10%, rgba(255,255,255,0.26), transparent 60%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.cartao-color-preview::after {
  content: "";
  position: absolute;
  inset: -40% -60% auto auto;
  width: 220px;
  height: 220px;
  background: linear-gradient(135deg, rgba(255,255,255,0.18), transparent 60%);
  transform: rotate(18deg);
  pointer-events: none;
}

.cartao-color-preview-chip {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 44px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(250,204,21,0.85), rgba(148,163,184,0.4));
  border: 1px solid rgba(255,255,255,0.22);
}

.cartao-color-preview-hex {
  position: absolute;
  right: 12px;
  bottom: 12px;
  font-size: 0.72rem;
  font-weight: 800;
  color: rgba(248,250,252,0.92);
  background: rgba(15,23,42,0.55);
  border: 1px solid rgba(148,163,184,0.25);
  padding: 2px 8px;
  border-radius: 999px;
  max-width: calc(100% - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cartao-preview {
  width: 100%;
  max-width: 320px;
  height: 190px;
  border-radius: 22px;
  padding: 1.1rem;
  position: relative;
  overflow: hidden;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: .28s ease-in-out;
  transform-style: preserve-3d;
  background: linear-gradient(135deg, #111827 0%, #0b1221 60%, #0f172a 100%);
  border: 1px solid rgba(148,163,184,0.22);
  box-shadow: var(--card-shadow);
}

.cartao-preview--mini {
  max-width: 260px;
  height: 158px;
  padding: 0.9rem;
  border-radius: 18px;
}

.cartao-preview--mini #prevUsoWrapper {
  display: none;
}

.cartao-preview--mini .cartao-chip {
  width: 38px;
  height: 28px;
  border-radius: 6px;
}

.cartao-preview--mini .cartao-banco {
  top: 14px;
  right: 14px;
  font-size: 0.78rem;
}

.cartao-preview--mini .cartao-numero {
  font-size: 0.98rem;
  letter-spacing: 0.14rem;
}

.cartao-preview--mini .cartao-nome {
  font-size: 0.68rem;
}

.cartao-preview--mini .cartao-validade {
  font-size: 0.66rem;
}

.cartao-preview--mini .cartao-bandeira-icon {
  width: 46px;
  bottom: 12px;
  right: 12px;
}

@media (max-width: 520px) {
  .cartao-preview-wrapper--inline {
    width: 100%;
    justify-content: center;
  }
  .cartao-color-preview {
    width: min(360px, 100%);
    height: 156px;
  }
}

/* CHIP */
.cartao-chip {
  width: 42px;
  height: 32px;
  background: linear-gradient(135deg, #c5b98f, #978c61);
  border-radius: 6px;
  opacity: .92;
}

/* TEXTOS DO CARTÃO */
.cartao-banco {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: .86rem;
  font-weight: 600;
}

.cartao-numero {
  font-size: 1.12rem;
  letter-spacing: .18rem;
  font-weight: 700;
}

.cartao-nome {
  font-size: .75rem;
  opacity: .95;
  font-weight: 600;
  text-transform: uppercase;
}

.cartao-validade {
  font-size: .72rem;
  opacity: .9;
}

.cartao-bandeira-icon {
  width: 58px;
  position: absolute;
  bottom: 16px;
  right: 16px;
  opacity: .95;
}

/* -------------------------------------------------------------
   EFEITOS GLASS / METALLIC AUTOMÁTICOS
------------------------------------------------------------- */

/* GLASS */
.card-glass {
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  background: rgba(255,255,255,0.15) !important;
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow:
    0 12px 32px rgba(255,255,255,0.25),
    inset 0 0 20px rgba(255,255,255,0.35);
}

/* METALLIC */
.card-metallic {
  background: linear-gradient(145deg, #0a0a0a, #222) !important;
  border: 1px solid rgba(148,163,184,0.22);
  box-shadow:
    0 12px 32px rgba(0,0,0,0.72),
    inset 0 0 32px rgba(250,204,21,0.12);
  color: #e5e7eb;
}

/* BRILHO MOVENDO */
.card-glass::before,
.card-metallic::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(255,255,255,0.45), transparent 70%);
  mix-blend-mode: screen;
  animation: shineMove 4.8s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes shineMove {
  0% { transform: translateX(-8%) translateY(-6%); }
  100% { transform: translateX(8%) translateY(6%); }
}

/* -------------------------------------------------------------
   LISTA / TABELA
------------------------------------------------------------- */

.lanc-list-card {
  padding: var(--card-padding);
  border-radius: var(--card-radius);
  background: var(--grad-card);
  border: 1px solid rgba(148,163,184,0.32);
  box-shadow: var(--shadow-strong);
}

.cartoes-list-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  min-width: 0;
}

/* Lista UL gerada pelo JS não tem estilo dedicado e polui o layout.
   Mantemos apenas Tabela (desktop) + Cards (mobile). */
#cartoesList {
  display: none;
}

/* Desktop privilegia tabela; mobile privilegia lista vertical */
#tblCartoes { display: table; }
.lanc-mobile-list { display: none; }

@media (max-width: 1200px) {
  #tblCartoes { display: none; }
  #cartoesList { display: block; }
  #mobileCartoes { display: none; }
  .lanc-mobile-list { display: none; }
}

@media (min-width: 1201px) {
  .lanc-mobile-list { display: none; }
}

/* LISTA UL PARA MOBILE */
.accounts-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.account-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.account-left {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.account-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.account-name {
  font-weight: 500;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.account-meta {
  font-size: 0.875rem;
  color: #94a3b8;
}

.flag-pill {
  background: rgba(250, 204, 21, 0.2);
  color: #facc15;
  padding: 0.125rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  width: fit-content;
}

.account-balance {
  text-align: right;
  font-weight: 600;
  color: #10b981;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.account-balance span {
  font-size: 0.875rem;
  color: #94a3b8;
  font-weight: 400;
}

.account-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.btn-chip {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-chip:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-chip svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-edit {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
  color: #38bdf8;
}

.btn-edit:hover {
  background: rgba(56, 189, 248, 0.2);
}

.btn-del {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.btn-del:hover {
  background: rgba(239, 68, 68, 0.2);
}

@media (max-width: 768px) {
  .account-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .account-left {
    width: 100%;
  }
  
  .account-balance {
    width: 100%;
    text-align: left;
  }
  
  .account-actions {
    width: 100%;
    flex-direction: row;
    gap: 0.5rem;
  }
  
  .btn-chip {
    flex: 1;
    justify-content: center;
  }
}

.lanc-mobile-list .conta-mobile {
  background: var(--grad-card);
  border: 1px solid rgba(148,163,184,0.25);
  border-radius: 16px;
  padding: 0.9rem;
  box-shadow: var(--shadow-strong);
}

.lanc-mobile-list .conta-card-nome { color: var(--text-main); }
.lanc-mobile-list .conta-card-saldo { color: var(--gold-300); }
.lanc-mobile-list .conta-card-banco { color: var(--text-soft); }

/* TABELA DESKTOP */
#tblCartoes {
  margin-top: 0.9rem;
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.88rem;
  color: var(--text-main);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

#tblCartoes th,
#tblCartoes td {
  padding: 0.7rem 0.85rem;
  text-align: left;
  vertical-align: top;
  min-width: 0;
}

/* Evita vazamento por textos longos nas colunas descritivas */
#tblCartoes td:nth-child(1),
#tblCartoes td:nth-child(2) {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Valores permanecem legíveis e sem quebra */
#tblCartoes td:nth-child(3),
#tblCartoes td:nth-child(4) {
  white-space: nowrap;
}

#tblCartoes th {
  font-size: 0.74rem;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 2px solid rgba(250,204,21,0.25);
  background: linear-gradient(135deg, rgba(15,23,42,0.95), rgba(8,15,32,0.98));
  position: relative;
}

#tblCartoes th::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(250,204,21,0.5), transparent);
}

#tblCartoes tbody tr {
  border-bottom: 1px solid rgba(15,23,42,0.6);
  transition: all 0.2s ease;
  position: relative;
}

#tblCartoes tbody tr::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(135deg, #facc15, #fb923c);
  opacity: 0;
  transition: opacity 0.2s ease;
}

#tblCartoes tbody tr:hover::before {
  opacity: 1;
}

#tblCartoes tbody tr:hover {
  background: linear-gradient(90deg, rgba(250,204,21,0.08), rgba(251,146,60,0.05));
  transform: translateX(2px);
}

#tblCartoes tr:nth-child(even) td {
  background: rgba(15, 23, 42, 0.3);
}

#tblCartoes tbody tr:hover td {
  background: transparent;
}

#tblCartoes td:first-child {
  font-weight: 600;
  color: #e2e8f0;
}

#tblCartoes td:nth-child(3),
#tblCartoes td:nth-child(4) {
  font-weight: 700;
  color: #fde68a;
  font-size: 0.92rem;
}

.lanc-table-main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.lanc-table-main strong {
  font-weight: 600;
}

.lanc-table-main small {
  font-size: 0.72rem;
  color: rgba(148,163,184,0.85);
}

/* BOTÕES DE AÇÃO */
.btn-edit,
.btn-delete {
  padding: 0.42rem 0.8rem;
  border-radius: 9px;
  border: 1px solid;
  background: transparent;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

.btn-edit::before,
.btn-delete::before {
  content: '';
  position: absolute;
  inset: 0;
  background: currentColor;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.btn-edit {
  border-color: rgba(56,189,248,0.5);
  color: #38bdf8;
  background: linear-gradient(135deg, rgba(56,189,248,0.08), rgba(14,165,233,0.05));
}

.btn-edit:hover {
  background: linear-gradient(135deg, rgba(56,189,248,0.25), rgba(14,165,233,0.15));
  border-color: #0ea5e9;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(56,189,248,0.35), 0 0 30px rgba(56,189,248,0.2);
}

.btn-edit:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(56,189,248,0.3);
}

.btn-delete {
  border-color: rgba(239,68,68,0.5);
  color: #f87171;
  background: linear-gradient(135deg, rgba(239,68,68,0.08), rgba(220,38,38,0.05));
}

.btn-delete:hover {
  background: linear-gradient(135deg, rgba(239,68,68,0.25), rgba(220,38,38,0.15));
  border-color: #dc2626;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(239,68,68,0.35), 0 0 30px rgba(239,68,68,0.2);
}

.btn-delete:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(239,68,68,0.3);
}

.btn-edit svg,
.btn-delete svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.btn-edit span,
.btn-delete span {
  display: inline-block;
  position: relative;
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#tblCartoes td:last-child {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  padding: 0.65rem 0.75rem;
  flex-wrap: wrap;
}

#tblCartoes td:last-child .btn-edit,
#tblCartoes td:last-child .btn-delete {
  flex: 1 1 110px;
}

#tblCartoes .lanc-table-main strong {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* LISTA MOBILE */
#mobileCartoes {
  display: none;
  margin-top: 0.9rem;
  flex-direction: column;
  gap: 0.9rem;
}

.conta-mobile {
  border-radius: 16px;
  background: radial-gradient(circle at top left,
      rgba(15, 23, 42, 0.98),
      rgba(15, 23, 42, 0.96));
  border: 1px solid rgba(15, 23, 42, 0.9);
  padding: 0.8rem 0.9rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.conta-mobile header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.conta-mobile header > * {
  min-width: 0;
}

.conta-card-nome {
  font-size: 0.92rem;
  font-weight: 700;
  color: #e2e8f0;
  display: block;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.conta-card-banco {
  font-size: 0.75rem;
  color: #94a3b8;
  display: block;
  margin-top: 0.15rem;
}

.conta-card-saldo {
  font-size: 1rem;
  font-weight: 700;
  color: #fde68a;
  white-space: nowrap;
}

/* Ajusta os blocos inline gerados pelo JS no mobile */
.conta-mobile .meta {
  flex-wrap: wrap;
  gap: 8px;
}

.conta-mobile footer {
  flex-wrap: wrap;
}

.conta-mobile footer .btn-edit,
.conta-mobile footer .btn-delete {
  flex: 1 1 140px;
}

/* RESPONSIVO */
@media (max-width: 1400px) {
  .btn-edit,
  .btn-delete {
    padding: 0.45rem 0.85rem;
    font-size: 0.78rem;
  }
  
  .btn-edit svg,
  .btn-delete svg {
    width: 15px;
    height: 15px;
  }
}

@media (max-width: 1200px) {
  .btn-edit span,
  .btn-delete span {
    display: none;
  }
  
  .btn-edit,
  .btn-delete {
    padding: 0.5rem 0.6rem;
    border-radius: 8px;
  }
  
  .btn-edit svg,
  .btn-delete svg {
    width: 18px;
    height: 18px;
  }

  #tblCartoes td:last-child {
    gap: 0.5rem;
  }
}

@media (max-width: 960px) {
  .btn-edit span,
  .btn-delete span {
    display: inline-block;
  }
  
  .btn-edit,
  .btn-delete {
    padding: 0.5rem 1rem;
    flex: 1;
  }
}

/* ============================================================
   HISTÓRICO DO CARTÃO — ESTILOS PARA MOBILE E DESKTOP
   ============================================================ */

.hist-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.hist-bloco {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem;
}

.hist-title {
  font-size: 1rem;
  font-weight: 600;
  color: #facc15;
  margin-bottom: 0.75rem;
  display: block;
}

.hist-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hist-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hist-item:last-child {
  border-bottom: none;
}

.hist-item strong {
  font-weight: 500;
  color: #ffffff;
  display: block;
  margin-bottom: 0.25rem;
}

.hist-item small {
  color: #94a3b8;
  font-size: 0.875rem;
}

.hist-valor {
  font-weight: 600;
  font-size: 1rem;
}

.hist-out {
  color: #ef4444;
}

.hist-in {
  color: #10b981;
}

@media (max-width: 768px) {
  .hist-grid {
    gap: 0.75rem;
  }
  
  .hist-bloco {
    padding: 0.875rem;
    border-radius: 10px;
  }
  
  .hist-title {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }
  
  .hist-item {
    padding: 0.5rem 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .hist-item > div:first-child {
    width: 100%;
  }
  
  .hist-item > div:last-child {
    width: 100%;
    text-align: left !important;
  }
  
  .hist-valor {
    font-size: 0.95rem;
  }
}
