/* ── Shell banco ── */
.bank-shell   { background: #f0f0f0; }
.bank-sidebar { background: #1a3a8f; border-right: none; }

.bank-logo {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,.15);
  margin-bottom: 6px;
}
.bank-logo-icon   { font-size: 26px; }
.bank-logo-name   { font-size: 11px; font-weight: bold; color: white; line-height: 1.3; }
.bank-logo-slogan { font-size: 9px;  color: rgba(255,255,255,.55); }

.bank-sidebar .nav-section { color: rgba(255,255,255,.4); padding: 8px 10px 3px; }
.bank-sidebar .nav-item    { color: rgba(255,255,255,.85); border-radius: 4px; margin: 1px 6px; }
.bank-sidebar .nav-item:hover  { background: rgba(255,255,255,.15); color: white; }
.bank-sidebar .nav-item.active { background: rgba(255,255,255,.25); color: white; }

.bank-main { background: #f8f8f8; padding: 14px 16px; overflow-y: auto; }
.bank-main h1 {
  font-size: 14px; color: #1a3a8f;
  border-bottom: 1px solid #d4d0c8;
  padding-bottom: 6px; margin-bottom: 12px;
}

/* ── Tip ── */
.bank-tip {
  background: #fffbe6; border: 1px solid #f0d060;
  border-radius: 4px; padding: 7px 10px;
  font-size: 11px; color: #7a6000; margin-bottom: 12px;
}

/* ── Saldo ── */
.bank-balance-card {
  background: linear-gradient(135deg, #1a3a8f, #2456c8);
  border-radius: 8px; padding: 16px 20px;
  color: white; margin-bottom: 12px;
  box-shadow: 0 3px 10px rgba(26,58,143,.3);
}
.bank-balance-label  { font-size: 11px; opacity: .75; }
.bank-balance-amount { font-size: 28px; font-weight: bold; margin: 4px 0; letter-spacing: 1px; }
.bank-balance-sub    { font-size: 10px; opacity: .6; }

/* ── Stats row ── */
.bank-stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px; margin-bottom: 14px;
}
.bank-stat-box {
  background: white; border: 1px solid #d4d0c8;
  border-radius: 6px; padding: 10px 8px;
  text-align: center;
}
.bank-stat-icon  { font-size: 18px; margin-bottom: 3px; }
.bank-stat-val   { font-size: 14px; font-weight: bold; color: #1a3a8f; }
.bank-stat-label { font-size: 9px; color: #888; margin-top: 2px; }

/* ── Mejor venta ── */
.bank-best-sale {
  display: flex; align-items: center; gap: 10px;
  background: white; border: 1px solid #ffd700;
  border-radius: 6px; padding: 8px 12px;
  margin-bottom: 12px;
}
.bank-best-icon   { font-size: 22px; }
.bank-best-label  { flex: 1; font-size: 12px; font-weight: bold; }
.bank-best-amount { font-size: 13px; font-weight: bold; }

/* ── Sección título ── */
.bank-section-title {
  font-size: 11px; font-weight: bold; color: #1a3a8f;
  margin: 12px 0 6px; text-transform: uppercase;
  letter-spacing: .4px;
}

/* ── Transacción ── */
.bank-tx-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 5px;
  border: 1px solid #e0e0e0; background: white;
  margin-bottom: 5px; font-size: 11px;
}
.bank-tx-item.tx-in  { border-left: 3px solid #1a7f1a; }
.bank-tx-item.tx-out { border-left: 3px solid #c00; }
.tx-icon   { font-size: 18px; flex-shrink: 0; }
.tx-info   { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.tx-label  { font-weight: bold; color: #222; }
.tx-cat    { font-size: 10px; color: #888; }
.tx-right  { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.tx-amount { font-weight: bold; font-size: 12px; }
.tx-time   { font-size: 10px; color: #aaa; }

/* ── Filtros movimientos ── */
.bank-filter-row {
  display: flex; gap: 6px; margin-bottom: 10px;
}
.bank-filter-btn {
  padding: 4px 12px; font-size: 11px;
  font-family: Tahoma, sans-serif;
  background: white; border: 1px solid #d4d0c8;
  border-radius: 12px; cursor: pointer;
  transition: background .1s, color .1s;
}
.bank-filter-btn:hover  { background: #e8f0ff; border-color: #1a3a8f; color: #1a3a8f; }
.bank-filter-btn.active { background: #1a3a8f; color: white; border-color: #1a3a8f; }

/* ── Fecha grupo ── */
.bank-date-group  { margin-bottom: 10px; }
.bank-date-label  {
  font-size: 10px; font-weight: bold; color: #888;
  text-transform: uppercase; letter-spacing: .5px;
  padding: 4px 0 3px; border-bottom: 1px solid #eee;
  margin-bottom: 4px;
}

/* ── Gráfico barras ── */
.bank-chart {
  display: flex; align-items: flex-end; gap: 6px;
  background: white; border: 1px solid #d4d0c8;
  border-radius: 6px; padding: 12px 10px 6px;
  margin-bottom: 6px; min-height: 110px;
}
.chart-col   { display: flex; flex-direction: column; align-items: center; gap: 3px; flex: 1; }
.chart-bars  { display: flex; align-items: flex-end; gap: 2px; height: 80px; }
.chart-bar   { width: 10px; border-radius: 3px 3px 0 0; min-height: 2px; transition: height .3s; }
.bar-in      { background: #1a7f1a; }
.bar-out     { background: #c00; }
.chart-label { font-size: 9px; color: #888; }
.chart-legend {
  display: flex; gap: 12px; font-size: 10px; color: #666;
  margin-bottom: 12px;
}
.legend-dot {
  display: inline-block; width: 8px; height: 8px;
  border-radius: 50%; margin-right: 3px;
}

/* ── Categorías ── */
.bank-cat-row {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 6px; font-size: 11px;
}
.bank-cat-name    { width: 110px; flex-shrink: 0; color: #444; }
.bank-cat-bar-wrap {
  flex: 1; height: 10px; background: #eee;
  border-radius: 5px; overflow: hidden;
}
.bank-cat-bar { height: 100%; background: #c00; border-radius: 5px; transition: width .3s; }
.bank-cat-val { width: 60px; text-align: right; font-weight: bold; flex-shrink: 0; }

/* ── ROI tabla ── */
.bank-roi-table   { border: 1px solid #d4d0c8; border-radius: 6px; overflow: hidden; margin-bottom: 12px; }
.bank-roi-header,
.bank-roi-row     { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; font-size: 11px; padding: 6px 10px; }
.bank-roi-header  { background: #1a3a8f; color: white; font-weight: bold; }
.bank-roi-row     { background: white; border-top: 1px solid #eee; }
.bank-roi-row:nth-child(even) { background: #f8f8f8; }

/* ── Tarjeta física ── */
.bank-card {
  background: linear-gradient(135deg, #1a3a8f 0%, #2456c8 60%, #1a7f6f 100%);
  border-radius: 12px; padding: 18px 20px 14px;
  color: white; width: 280px; margin: 0 auto 16px;
  box-shadow: 0 6px 20px rgba(26,58,143,.4);
  font-family: "Courier New", monospace;
  position: relative;
}
.bank-card-chip   { font-size: 22px; margin-bottom: 12px; opacity: .9; }
.bank-card-number { font-size: 15px; letter-spacing: 3px; margin-bottom: 14px; }
.bank-card-row    { display: flex; align-items: flex-end; justify-content: space-between; }
.bank-card-sublabel { font-size: 8px; opacity: .6; letter-spacing: 1px; margin-bottom: 2px; }
.bank-card-name   { font-size: 12px; letter-spacing: 1px; }
.bank-card-logo   { font-size: 28px; }
.bank-card-bank   {
  position: absolute; bottom: 10px; right: 14px;
  font-size: 9px; opacity: .5; font-family: Tahoma, sans-serif;
}

.bank-card-info {
  background: white; border: 1px solid #d4d0c8;
  border-radius: 6px; padding: 12px; font-size: 11px;
  line-height: 1.6; color: #444; max-width: 280px; margin: 0 auto;
}

/* ── Utilidades ── */
.green       { color: #1a7f1a; }
.red         { color: #c00; }
.bank-empty  { color: #aaa; font-size: 11px; padding: 20px 0; text-align: center; }