
/* ============================================================
   ESTIBA ADMIN — DASHBOARD PREMIUM V3
   Capa visual no destructiva. No modifica datos ni tablas.
   ============================================================ */
:root{
  --estiba-wine:#741a24; --estiba-wine-2:#5a111a; --estiba-ink:#171717;
  --estiba-muted:#747474; --estiba-bg:#f5f3ef; --estiba-card:#fff;
  --estiba-line:rgba(25,25,25,.08); --estiba-radius:22px;
}
#inicio.estiba-home-v3{background:var(--estiba-bg);padding:0!important}
.estiba-v3-shell{max-width:1500px;margin:0 auto;padding:28px}
.estiba-v3-top{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:22px}
.estiba-v3-eyebrow{font-size:12px;letter-spacing:.13em;text-transform:uppercase;font-weight:800;color:var(--estiba-wine)}
.estiba-v3-title{margin:5px 0 3px;font-size:clamp(27px,3vw,42px);line-height:1.05;color:var(--estiba-ink)}
.estiba-v3-sub{color:var(--estiba-muted);font-size:14px}
.estiba-v3-date{font-size:13px;color:var(--estiba-muted);white-space:nowrap}
.estiba-v3-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:16px}
.estiba-v3-card{background:var(--estiba-card);border:1px solid var(--estiba-line);border-radius:var(--estiba-radius);padding:20px;box-shadow:0 12px 34px rgba(0,0,0,.045);min-width:0}
.estiba-v3-card.hero{grid-column:span 5;background:linear-gradient(145deg,var(--estiba-wine),var(--estiba-wine-2));color:#fff;border:0;padding:26px}
.estiba-v3-card.sales{grid-column:span 3}.estiba-v3-card.pe{grid-column:span 4}
.estiba-v3-card.flow{grid-column:span 7}.estiba-v3-card.control{grid-column:span 5}
.estiba-v3-card.actions{grid-column:span 12}.estiba-v3-card.alerts{grid-column:span 12}
.estiba-v3-label{font-size:12px;letter-spacing:.07em;text-transform:uppercase;font-weight:800;color:var(--estiba-muted)}
.hero .estiba-v3-label{color:rgba(255,255,255,.72)}
.estiba-v3-value{font-size:clamp(28px,3vw,45px);font-weight:850;letter-spacing:-.04em;margin:9px 0 5px;line-height:1}
.estiba-v3-note{font-size:12px;color:var(--estiba-muted);line-height:1.45}
.hero .estiba-v3-note{color:rgba(255,255,255,.72)}
.estiba-v3-mini-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:16px}
.estiba-v3-mini{padding:13px;border-radius:16px;background:#f8f7f4}
.estiba-v3-mini span{display:block;color:var(--estiba-muted);font-size:11px;margin-bottom:5px}
.estiba-v3-mini strong{font-size:17px;color:var(--estiba-ink)}
.estiba-v3-progress{height:10px;background:#eeeae5;border-radius:999px;overflow:hidden;margin:17px 0 9px}
.estiba-v3-progress>div{height:100%;width:0;background:var(--estiba-wine);border-radius:inherit;transition:width .7s ease}
.estiba-v3-progress-meta{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:var(--estiba-muted)}
.estiba-v3-flow-row{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:16px}
.estiba-v3-flow-item{padding:14px;border-radius:16px;background:#f8f7f4}
.estiba-v3-flow-item span{font-size:11px;color:var(--estiba-muted);display:block;margin-bottom:5px}
.estiba-v3-flow-item strong{font-size:16px}
.estiba-v3-section-title{font-size:18px;margin:0;color:var(--estiba-ink)}
.estiba-v3-actions{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;margin-top:15px}
.estiba-v3-action{border:1px solid var(--estiba-line);background:#faf9f7;border-radius:16px;padding:15px 12px;text-align:left;cursor:pointer;transition:.18s ease;color:var(--estiba-ink)}
.estiba-v3-action:hover{transform:translateY(-2px);box-shadow:0 8px 22px rgba(0,0,0,.06)}
.estiba-v3-action b{display:block;font-size:13px;margin-bottom:4px}.estiba-v3-action small{font-size:11px;color:var(--estiba-muted)}
.estiba-v3-status{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border-radius:999px;background:#f3efe9;font-size:11px;font-weight:750;color:#5b5147}
.estiba-v3-dot{width:7px;height:7px;border-radius:50%;background:#aa7c42}
.estiba-v3-available-after{margin-top:14px;padding-top:14px;border-top:1px solid rgba(255,255,255,.16);display:flex;justify-content:space-between;gap:12px;align-items:end}
.estiba-v3-available-after span{font-size:11px;color:rgba(255,255,255,.7)}.estiba-v3-available-after strong{font-size:18px}
.estiba-v3-error{padding:12px 14px;border-radius:14px;background:#fff7ed;color:#8a4b12;font-size:12px;margin-top:12px}
@media(max-width:1100px){
 .estiba-v3-card.hero,.estiba-v3-card.sales,.estiba-v3-card.pe{grid-column:span 12}
 .estiba-v3-card.flow,.estiba-v3-card.control{grid-column:span 12}
 .estiba-v3-actions{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:680px){
 .estiba-v3-shell{padding:16px 13px 30px}.estiba-v3-top{align-items:flex-start;flex-direction:column}
 .estiba-v3-grid{gap:12px}.estiba-v3-card{padding:17px;border-radius:18px}.estiba-v3-card.hero{padding:20px}
 .estiba-v3-flow-row{grid-template-columns:repeat(2,1fr)}.estiba-v3-actions{grid-template-columns:repeat(2,1fr)}
 .estiba-v3-mini-grid{grid-template-columns:1fr 1fr}.estiba-v3-date{white-space:normal}
}

/* ESTIBA ADMIN V7 — Estructura profesional del resultado */
.estiba-v3-card.structure{grid-column:span 8}.estiba-v3-card.nonop{grid-column:span 4}
.estiba-v7-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}
.estiba-v7-total{text-align:right}.estiba-v7-total span{display:block;font-size:11px;color:var(--estiba-muted)}.estiba-v7-total strong{font-size:22px}
.estiba-v7-bar{display:flex;height:14px;border-radius:999px;overflow:hidden;background:#eeeae5;margin:20px 0 16px;gap:2px}
.estiba-v7-bar span{display:block;min-width:0;background:var(--estiba-wine)}
.estiba-v7-bar span:nth-child(2){opacity:.72}.estiba-v7-bar span:nth-child(3){opacity:.45}.estiba-v7-bar span:nth-child(4){background:#262626}
.estiba-v7-table{border-top:1px solid var(--estiba-line)}
.estiba-v7-row{display:grid;grid-template-columns:minmax(0,1fr) 150px 90px;gap:12px;align-items:center;padding:12px 4px;border-bottom:1px solid var(--estiba-line);font-size:13px}
.estiba-v7-row.head{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:var(--estiba-muted);font-weight:800}
.estiba-v7-row strong,.estiba-v7-row b{text-align:right}.estiba-v7-row small{display:block;color:var(--estiba-muted);font-weight:400}
.estiba-v7-row.total{font-weight:800;background:#faf9f7;border-radius:12px;padding-left:10px;padding-right:10px}
.estiba-v7-thousand{margin-top:15px;padding:14px 16px;border-radius:16px;background:#f8f7f4;display:flex;justify-content:space-between;gap:16px;align-items:center;font-size:12px}
.estiba-v7-thousand strong{text-align:right;font-size:12px}
.estiba-v7-inc{margin-top:10px;font-size:11px;color:var(--estiba-muted)}
@media(max-width:1100px){.estiba-v3-card.structure,.estiba-v3-card.nonop{grid-column:span 12}}
@media(max-width:680px){.estiba-v7-head{flex-direction:column}.estiba-v7-total{text-align:left}.estiba-v7-row{grid-template-columns:minmax(0,1fr) 110px 62px}.estiba-v7-thousand{align-items:flex-start;flex-direction:column}.estiba-v7-thousand strong{text-align:left}}
