/* ═══════════════════════════════════════════════════════════════
   padres-extras.css  –  EduFood Panel Padres
   Estilos para: popup pedidos, detalle inline, salud,
                 controles (tiendas/categorías), imágenes productos
   ═══════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════
   PEDIDO ROW  (inyectado por JS en histList)
   ══════════════════════════════════════════════ */
.pedido-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 14px;
  border: 1.5px solid var(--gr, #f0f0f0);
  margin-bottom: 10px;
  cursor: pointer;
  transition: box-shadow .18s, border-color .18s, transform .12s;
  position: relative;
}
.pedido-row:hover {
  box-shadow: 0 4px 18px rgba(0,0,0,.09);
  border-color: var(--or, #f97316);
  transform: translateY(-1px);
}
.pedido-row .pr-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--or-l, #fff7ed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.pedido-row .pr-info  { flex: 1; min-width: 0; }
.pedido-row .pr-num   { font-size: .82rem; font-weight: 700; color: var(--ink, #1a1a1a); }
.pedido-row .pr-shop  { font-size: .71rem; color: var(--ink3, #888); margin-top: 1px; }
.pedido-row .pr-meta  { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.pr-badge {
  font-size: .65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}
.pr-badge.pendiente { background: #fef3c7; color: #92400e; }
.pr-badge.entregado { background: #d1fae5; color: #065f46; }
.pr-badge.cancelado { background: #fee2e2; color: #991b1b; }
.pr-badge.pagado    { background: #dcfce7; color: #166534; }
.pedido-row .pr-right  { text-align: right; flex-shrink: 0; }
.pedido-row .pr-price  { font-size: .98rem; font-weight: 800; color: var(--or, #f97316); }
.pedido-row .pr-time   { font-size: .65rem; color: var(--ink4, #aaa); margin-top: 2px; }
.pedido-row .pr-ver {
  margin-top: 6px;
  font-size: .67rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1.5px solid var(--or, #f97316);
  background: transparent;
  color: var(--or, #f97316);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.pedido-row .pr-ver:hover { background: var(--or, #f97316); color: #fff; }

/* ══════════════════════════════════════════════
   DETALLE INLINE (bloque que se expande abajo)
   ══════════════════════════════════════════════ */
.pedido-detail-block {
  background: linear-gradient(135deg, #fff9f4 0%, #fff 100%);
  border: 1.5px solid var(--or, #f97316);
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: hidden;
  animation: efSlideDown .25s ease;
}
@keyframes efSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.pdb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(90deg, var(--or, #f97316) 0%, #fb923c 100%);
  color: #fff;
}
.pdb-head-title { font-size: .82rem; font-weight: 800; }
.pdb-head-close {
  background: rgba(255,255,255,.2);
  border: none;
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  font-size: .8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.pdb-head-close:hover { background: rgba(255,255,255,.4); }
.pdb-body { padding: 14px 16px; }
.pdb-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 14px;
}
.pdb-status-row.entregado { background: #d1fae5; }
.pdb-status-row.pendiente { background: #fef3c7; }
.pdb-status-row.cancelado { background: #fee2e2; }
.pdb-status-icon { font-size: 1.4rem; }
.pdb-status-info .pdb-st-label {
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.pdb-status-info .pdb-st-label.entregado { color: #065f46; }
.pdb-status-info .pdb-st-label.pendiente { color: #92400e; }
.pdb-status-info .pdb-st-label.cancelado { color: #991b1b; }
.pdb-status-info .pdb-st-time { font-size: .68rem; color: #555; margin-top: 1px; }
.pdb-products-title {
  font-size: .72rem;
  font-weight: 700;
  color: var(--ink3, #888);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 10px;
}
.pdb-products { display: flex; flex-direction: column; gap: 8px; }
.pdb-product {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #f0f0f0;
}
.pdb-prod-img {
  width: 46px;
  height: 46px;
  border-radius: 9px;
  object-fit: cover;
  background: #f5f5f5;
  border: 1px solid #ebebeb;
  flex-shrink: 0;
}
.pdb-prod-img-placeholder {
  width: 46px;
  height: 46px;
  border-radius: 9px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #fed7aa, #fdba74);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.pdb-prod-info  { flex: 1; min-width: 0; }
.pdb-prod-name  { font-size: .8rem; font-weight: 700; color: var(--ink, #1a1a1a); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdb-prod-qty   { font-size: .67rem; color: var(--ink3, #888); margin-top: 1px; }
.pdb-prod-price { font-size: .85rem; font-weight: 800; color: var(--or, #f97316); flex-shrink: 0; }
.pdb-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: var(--or-l, #fff7ed);
  border-radius: 10px;
  margin-top: 12px;
}
.pdb-total-lbl { font-size: .74rem; font-weight: 700; color: var(--or-d, #c2410c); }
.pdb-total-val  { font-size: 1rem; font-weight: 900; color: var(--or, #f97316); }

/* ══════════════════════════════════════════════
   POPUP FLOTANTE
   ══════════════════════════════════════════════ */
.pedido-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.38);
  z-index: 9990;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: efFadeOverlay .18s ease;
  padding: 16px;
}
@keyframes efFadeOverlay {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.pedido-popup {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 60px rgba(0,0,0,.22);
  overflow: hidden;
  animation: efPopIn .22s cubic-bezier(.34,1.56,.64,1);
}
@keyframes efPopIn {
  from { opacity: 0; transform: scale(.88) translateY(20px); }
  to   { opacity: 1; transform: scale(1)   translateY(0); }
}
.pp-head {
  padding: 18px 20px 14px;
  background: linear-gradient(135deg, var(--or, #f97316), #fb923c);
  color: #fff;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.pp-head-num   { font-size: .9rem; font-weight: 800; letter-spacing: .3px; }
.pp-head-shop  { font-size: .74rem; opacity: .85; margin-top: 3px; }
.pp-head-price { font-size: 1.5rem; font-weight: 900; margin-top: 2px; }
.pp-close {
  background: rgba(255,255,255,.25);
  border: none;
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: .85rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.pp-close:hover { background: rgba(255,255,255,.45); }
.pp-body { padding: 16px 20px 20px; }
.pp-status {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 14px;
}
.pp-status.entregado { background: #d1fae5; }
.pp-status.pendiente { background: #fef3c7; }
.pp-status.cancelado { background: #fee2e2; }
.pp-st-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.pp-st-dot.entregado { background: #10b981; }
.pp-st-dot.pendiente { background: #f59e0b; }
.pp-st-dot.cancelado { background: #ef4444; }
.pp-st-text { font-size: .74rem; font-weight: 700; }
.pp-st-text.entregado { color: #065f46; }
.pp-st-text.pendiente { color: #92400e; }
.pp-st-text.cancelado { color: #991b1b; }
.pp-st-time { font-size: .68rem; color: #666; margin-left: auto; }
.pp-products-title {
  font-size: .7rem;
  font-weight: 700;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 9px;
}
.pp-products {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
}
.pp-product {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 11px;
  background: #fafafa;
  border-radius: 10px;
}
.pp-prod-img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  background: #f0f0f0;
  flex-shrink: 0;
}
.pp-prod-img-ph {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #fed7aa, #fdba74);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.pp-prod-name  { font-size: .78rem; font-weight: 700; color: #1a1a1a; }
.pp-prod-qty   { font-size: .66rem; color: #888; margin-top: 1px; }
.pp-prod-price { margin-left: auto; font-size: .84rem; font-weight: 800; color: var(--or, #f97316); }
.pp-actions { display: flex; gap: 9px; margin-top: 16px; }
.pp-btn-ghost {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: 1.5px solid #e5e5e5;
  background: #fff;
  font-size: .77rem;
  font-weight: 700;
  color: #555;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.pp-btn-ghost:hover { border-color: var(--or, #f97316); color: var(--or, #f97316); }
.pp-btn-primary {
  flex: 2;
  padding: 10px;
  border-radius: 10px;
  background: var(--or, #f97316);
  border: none;
  font-size: .77rem;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  transition: background .15s, transform .12s;
}
.pp-btn-primary:hover { background: #ea6c04; transform: translateY(-1px); }

/* ══════════════════════════════════════════════
   PANEL SALUD
   ══════════════════════════════════════════════ */
.salud-header-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border-radius: 14px;
  margin-bottom: 20px;
  border: 1.5px solid #a7f3d0;
}
.salud-banner-icon  { font-size: 2rem; flex-shrink: 0; }
.salud-banner-title { font-size: .95rem; font-weight: 800; color: #065f46; }
.salud-banner-sub   { font-size: .72rem; color: #047857; margin-top: 3px; }

.salud-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 700px) {
  .salud-grid { grid-template-columns: 1fr; }
}

.salud-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.salud-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1.5px solid #fca5a5;
  background: #fff;
  font-size: .73rem;
  font-weight: 600;
  color: #dc2626;
  cursor: pointer;
  transition: all .16s;
  user-select: none;
}
.salud-chip.active {
  background: #fca5a5;
  color: #7f1d1d;
  border-color: #f87171;
  box-shadow: 0 2px 8px rgba(220,38,38,.2);
}
.salud-chip-blue             { border-color: #93c5fd; color: #1d4ed8; }
.salud-chip-blue.active      { background: #bfdbfe; color: #1e3a8a; border-color: #60a5fa; box-shadow: 0 2px 8px rgba(59,130,246,.2); }
.salud-chip-green            { border-color: #6ee7b7; color: #059669; }
.salud-chip-green.active     { background: #a7f3d0; color: #065f46; border-color: #34d399; box-shadow: 0 2px 8px rgba(16,185,129,.2); }

/* ══════════════════════════════════════════════
   CONTROLES: bloqueo de tiendas y categorías
   ══════════════════════════════════════════════ */
.ctrl-card-full { grid-column: 1 / -1; }

.block-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 9px;
}
.block-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 11px;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  transition: all .16s;
  user-select: none;
}
.block-item:hover { border-color: #f97316; }
.block-item.blocked {
  background: #fee2e2;
  border-color: #fca5a5;
}
.block-item.blocked .bi-name { color: #dc2626; }
.block-item .bi-icon  { font-size: 1.1rem; flex-shrink: 0; }
.block-item .bi-info  { flex: 1; min-width: 0; }
.block-item .bi-name  {
  font-size: .76rem;
  font-weight: 700;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.block-item .bi-sub { font-size: .63rem; color: #888; margin-top: 1px; }
.block-item .bi-toggle {
  width: 34px;
  height: 20px;
  border-radius: 10px;
  background: #e5e7eb;
  position: relative;
  flex-shrink: 0;
  transition: background .2s;
}
.block-item .bi-toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.block-item.blocked .bi-toggle              { background: #ef4444; }
.block-item.blocked .bi-toggle::after       { transform: translateX(14px); }
.block-item-placeholder { color: #aaa; font-size: .76rem; padding: 10px; }

/* ══════════════════════════════════════════════
   IMÁGENES DE PRODUCTOS (popup y detalle)
   ══════════════════════════════════════════════ */
.pp-prod-img,
.pdb-prod-img {
  width: 46px;
  height: 46px;
  border-radius: 9px;
  object-fit: cover;
  background: #f5f5f5;
  border: 1px solid #ebebeb;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════
   SAVED CARDS (controles & salud)
═══════════════════════════════════════ */
.saved-card {
  background: var(--card);
  border: 1.5px solid var(--bdr);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: box-shadow .15s;
}
.saved-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.09); }
.sc-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--bdr);
}
.sc-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  flex-shrink: 0;
}
.sc-title { font-size: .8rem; font-weight: 700; color: var(--ink); }
.sc-date  { font-size: .68rem; color: var(--ink4); margin-top: 1px; }
.sc-body  {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 14px;
}
.sc-tag {
  font-size: .69rem;
  font-weight: 600;
  color: var(--ink2);
  background: var(--bg);
  border: 1px solid var(--bdr);
  border-radius: 20px;
  padding: 3px 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.sc-btn {
  width: 30px; height: 30px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem;
  transition: background .15s, transform .1s;
}
.sc-btn:active { transform: scale(.92); }
.sc-edit {
  background: var(--or-l);
  color: var(--or);
}
.sc-edit:hover { background: var(--or); color: #fff; }
.sc-del {
  background: #fee2e2;
  color: #dc2626;
}
.sc-del:hover { background: #dc2626; color: #fff; }

/* ═══════════════════════════════════════
   MULTI-HIJO SIDEBAR
═══════════════════════════════════════ */
.sb-child-active {
  background: var(--or-l) !important;
  border: 1.5px solid var(--or) !important;
}
.sb-child-active .sb-cname {
  color: #111 !important;
}
.sb-add-hijo {
  border: 1.5px dashed var(--bdr) !important;
}
.sb-add-hijo:hover {
  border-color: var(--or) !important;
  background: var(--or-l) !important;
}

/* ═══════════════════════════════════════
   PERFIL MULTI-HIJO
═══════════════════════════════════════ */
.profile-card-active {
  border-color: var(--or) !important;
  box-shadow: 0 0 0 3px var(--or-l) !important;
}

/* ═══════════════════════════════════════
   HIJO CARDS — pantalla completa horizontal
═══════════════════════════════════════ */
#hijosPerfilesContainer {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hijo-card-full {
  background: var(--card);
  border: 1.5px solid var(--bdr);
  border-radius: 14px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 24px;
  transition: box-shadow .18s, border-color .18s;
  width: 100%;
}
.hijo-card-full:hover { box-shadow: 0 4px 18px rgba(0,0,0,.09); }
.hijo-card-active {
  border-color: var(--or) !important;
  box-shadow: 0 0 0 3px var(--or-l) !important;
}
.hijo-card-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}
.hijo-av-big {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--or-l);
  color: var(--or);
  font-size: 1.4rem;
  font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hijo-nom-big {
  font-size: .95rem;
  font-weight: 800;
  color: var(--ink);
}
.hijo-role-tag {
  font-size: .72rem;
  color: var(--ink3);
  margin-top: 2px;
}
.hijo-active-dot { color: var(--or); font-weight: 700; }
.hijo-card-stats {
  display: flex;
  gap: 20px;
  padding: 0 20px;
  border-left: 1.5px solid var(--bdr);
  border-right: 1.5px solid var(--bdr);
}
.hijo-stat { text-align: center; }
.hijo-stat-val {
  font-size: 1rem;
  font-weight: 900;
  color: var(--ink);
}
.hijo-stat-lbl {
  font-size: .65rem;
  color: var(--ink4);
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 1px;
}
.hijo-card-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════
   BANNER: vista-solo-tarjetas
═══════════════════════════════════════ */
.form-hidden-banner {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--or-l);
  border: 1.5px solid var(--or);
  border-radius: 12px;
  margin-bottom: 16px;
}
.form-hidden-banner i { color: var(--or); font-size: 1.1rem; }
.form-hidden-banner span { flex:1; font-size:.8rem; color: var(--or-d); font-weight:600; }
.form-hidden-banner button {
  background: var(--or);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
}

/* Modal mv-head override para fondo blanco */
.modal-vincular .mhd { background:#fff !important; }
.modal-vincular h3 { color: #1a1a1a !important; }
.modal-vincular .mv-sub { color: #555 !important; }
.modal-vincular .mv-step-lbl { color: #333 !important; }
.modal-vincular .mv-hint { color: #333 !important; }
.modal-vincular .finput { color: #111 !important; }

/* ═══════════════════════════════════════
   PANEL FINANCIERO
═══════════════════════════════════════ */
.fin-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.fin-kpi {
  background: var(--card);
  border: 1.5px solid var(--bdr);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.fk-ico {
  width: 42px; height: 42px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.fk-val {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--ink);
  line-height: 1;
}
.fk-lbl {
  font-size: .67rem;
  color: var(--ink4);
  margin-top: 3px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.fin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.fin-card-big { grid-column: span 1; }
.fin-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Barras de categoría */
.fin-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
}
.fin-bar-lbl {
  width: 130px;
  font-size: .73rem;
  font-weight: 600;
  color: var(--ink2);
  flex-shrink: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: capitalize;
}
.fin-bar-track {
  flex: 1;
  height: 9px;
  background: var(--bg);
  border-radius: 20px;
  overflow: hidden;
}
.fin-bar-fill {
  height: 100%;
  border-radius: 20px;
  transition: width .6s ease;
}
.fin-bar-val {
  font-size: .75rem;
  font-weight: 800;
  width: 50px;
  text-align: right;
  flex-shrink: 0;
}
.fin-bar-pct {
  font-size: .67rem;
  color: var(--ink4);
  width: 36px;
  text-align: right;
  flex-shrink: 0;
}

/* Tiendas */
.fin-tienda-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.fin-tienda-av {
  width: 36px; height: 36px;
  border-radius: 9px;
  font-weight: 900;
  font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.fin-tienda-nom {
  font-size: .77rem;
  font-weight: 700;
  color: var(--ink);
}

/* Barras de días */
.fin-dias-chart {
  display: flex;
  gap: 8px;
  height: 130px;
  align-items: flex-end;
  padding-bottom: 4px;
}
.fin-dia-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  height: 100%;
  justify-content: flex-end;
}
.fin-dia-bar-wrap {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.fin-dia-bar {
  width: 80%;
  border-radius: 6px 6px 0 0;
  min-height: 4px;
  transition: height .5s ease;
}
.fin-dia-val {
  font-size: .59rem;
  font-weight: 700;
  color: var(--or);
  min-height: 14px;
}
.fin-dia-lbl {
  font-size: .65rem;
  color: var(--ink4);
  font-weight: 500;
}

/* Top productos */
.fin-prod-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--bdr);
}
.fin-prod-row:last-child { border-bottom: none; }
.fin-prod-rank {
  width: 22px; height: 22px;
  border-radius: 6px;
  font-size: .68rem;
  font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* Responsive financiero */
@media (max-width: 900px) {
  .fin-kpis { grid-template-columns: repeat(2,1fr); }
  .fin-grid, .fin-grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .fin-kpis { grid-template-columns: 1fr 1fr; }
  .fin-bar-lbl { width: 80px; font-size: .65rem; }
}

/* Saldo en verde en hijo cards del sidebar */
.sb-csaldo { color: #16a34a !important; }
