/* ═══ Panel de hoy (18/11/2026) — «el panel de tu negocio»: el día en grande, cuatro cifras con color y listas con UNA
   acción por fila. Degradado celeste sobre la tarjeta, como el reel; en oscuro, azul marino profundo. ═══ */
.nw-hoy { --hoy-azul: #0ea5e9; --hoy-naranja: #f59e0b; --hoy-morado: #8b5cf6; --hoy-verde: #10b981;
    position: relative; border-radius: 22px; padding: 26px 28px 28px; overflow: hidden;
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 38%, #ffffff 100%); border: 1px solid #dbeafe; box-shadow: var(--sombra); }
html[data-theme="dark"] .nw-hoy { background: linear-gradient(135deg, #0c2340 0%, #0f172a 55%, #111827 100%); border-color: #1e3a5f; }
.nw-hoy::before { content: ""; position: absolute; inset: -120px auto auto -80px; width: 380px; height: 380px; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(14,165,233,.22), transparent); pointer-events: none; }

/* Cabecera: fecha grande + pestañas por régimen + accesos a los reportes */
.nw-hoy-cab { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.nw-hoy-fecha small { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--tenue); }
.nw-hoy-fecha h1 { margin: 2px 0 6px; font-size: 2.3rem; line-height: 1.05; font-weight: 800; letter-spacing: -.02em; color: var(--txt); }
.nw-hoy-fecha p { margin: 0; font-size: .95rem; color: var(--tenue); max-width: 560px; }
.nw-hoy-cab-der { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.nw-hoy-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.72); border: 1px solid rgba(14,165,233,.18); backdrop-filter: blur(6px); }
html[data-theme="dark"] .nw-hoy-tabs { background: rgba(15,23,42,.6); border-color: #1e3a5f; }
.nw-hoy-tabs button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--tenue); font: inherit; font-size: .8rem; font-weight: 600; padding: 6px 13px; border-radius: 999px; cursor: pointer; }
.nw-hoy-tabs button i { font-style: normal; font-size: .68rem; padding: 1px 6px; border-radius: 999px; background: var(--gris-bg); }
.nw-hoy-tabs button.activa { background: #0f172a; color: #fff; box-shadow: 0 2px 8px rgba(15,23,42,.25); }
.nw-hoy-tabs button.activa i { background: rgba(255,255,255,.18); color: #fff; }
html[data-theme="dark"] .nw-hoy-tabs button.activa { background: #e2e8f0; color: #0f172a; }
.nw-hoy-reportes { display: flex; gap: 6px; }
.nw-hoy-reportes a { display: inline-flex; align-items: center; gap: 5px; font-size: .76rem; font-weight: 600; color: var(--tenue); text-decoration: none; padding: 5px 10px; border-radius: 999px; border: 1px solid transparent; }
.nw-hoy-reportes a:hover { color: var(--sunat); border-color: var(--sunat-suave); background: rgba(255,255,255,.6); }

/* Cuatro cifras */
.nw-hoy-kpis { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.nw-hoy-kpi { display: flex; flex-direction: column; gap: 2px; padding: 18px 18px 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--linea);
    text-decoration: none; color: inherit; box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 10px 30px -14px rgba(14,165,233,.35); transition: transform .15s, box-shadow .15s; }
.nw-hoy-kpi:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(16,24,40,.06), 0 16px 34px -14px rgba(14,165,233,.45); }
.nw-hoy-kpi b { font-size: 2.1rem; line-height: 1; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.nw-hoy-kpi b em { font-style: normal; font-size: 1rem; font-weight: 700; margin-right: 3px; opacity: .7; }
.nw-hoy-kpi span { margin-top: 8px; font-size: .86rem; font-weight: 700; color: var(--txt); }
.nw-hoy-kpi small { font-size: .74rem; color: var(--tenue); }
.nw-hoy-kpi.azul b { color: var(--hoy-azul); } .nw-hoy-kpi.naranja b { color: var(--hoy-naranja); }
.nw-hoy-kpi.morado b { color: var(--hoy-morado); } .nw-hoy-kpi.verde b { color: var(--hoy-verde); }
.nw-hoy-kpi.azul { border-top: 3px solid var(--hoy-azul); } .nw-hoy-kpi.naranja { border-top: 3px solid var(--hoy-naranja); }
.nw-hoy-kpi.morado { border-top: 3px solid var(--hoy-morado); } .nw-hoy-kpi.verde { border-top: 3px solid var(--hoy-verde); }

/* Dos columnas de tarjetas con listas */
.nw-hoy-grid { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.nw-hoy-tarjeta { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--linea); border-radius: 18px; padding: 16px 16px 12px; min-height: 230px; scroll-margin-top: 80px; }
.nw-hoy-tarjeta > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.nw-hoy-tarjeta h2 { margin: 0; font-size: 1rem; font-weight: 800; letter-spacing: -.01em; }
.nw-hoy-total { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--hoy-verde); }
.nw-hoy-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.nw-hoy-lista li { display: flex; align-items: center; gap: 12px; padding: 9px 8px; border-radius: 12px; border-bottom: 1px solid color-mix(in srgb, var(--linea) 70%, transparent); }
.nw-hoy-lista li:last-child { border-bottom: 0; }
.nw-hoy-lista li:hover { background: var(--hover); }
.nw-hoy-lista time { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--gris-bg); color: var(--tenue); line-height: 1; }
.nw-hoy-lista time b { font-size: 1.05rem; font-weight: 800; color: var(--txt); }
.nw-hoy-lista time small { font-size: .62rem; text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }
.nw-hoy-lista time.err { background: var(--err-bg); } .nw-hoy-lista time.err b { color: var(--err); }
.nw-hoy-lista time.warn { background: var(--warn-bg); } .nw-hoy-lista time.warn b { color: var(--warn); }
.nw-hoy-lista time.azul { background: #e0f2fe; } .nw-hoy-lista time.azul b { color: #0369a1; }
html[data-theme="dark"] .nw-hoy-lista time.azul { background: #0c4a6e; } html[data-theme="dark"] .nw-hoy-lista time.azul b { color: #7dd3fc; }
.nw-hoy-lista .nw-avatar { width: 34px; height: 34px; font-size: .7rem; flex: none; }
.nw-hoy-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.nw-hoy-lista time, .nw-hoy-lista .nw-hoy-chip, .nw-hoy-lista .nw-hoy-monto, .nw-hoy-lista .nw-hoy-accion { flex: none; }
.nw-hoy-txt b { font-size: .86rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nw-hoy-txt small { font-size: .74rem; color: var(--tenue); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nw-hoy-chip { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: .7rem; font-weight: 700; white-space: nowrap; background: var(--gris-bg); color: var(--tenue); }
.nw-hoy-chip.err { background: var(--err-bg); color: var(--err); } .nw-hoy-chip.warn { background: var(--warn-bg); color: var(--warn); }
.nw-hoy-chip.azul { background: #e0f2fe; color: #0369a1; } .nw-hoy-chip.naranja { background: #fef3c7; color: #b45309; }
.nw-hoy-chip.morado { background: #ede9fe; color: #6d28d9; } .nw-hoy-chip.gris { background: var(--gris-bg); color: var(--tenue); }
html[data-theme="dark"] .nw-hoy-chip.azul { background: #0c4a6e; color: #7dd3fc; } html[data-theme="dark"] .nw-hoy-chip.naranja { background: #78350f; color: #fcd34d; }
html[data-theme="dark"] .nw-hoy-chip.morado { background: #4c1d95; color: #c4b5fd; }
.nw-hoy-monto { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--txt); }
.nw-hoy-monto.justo { color: var(--hoy-morado); }
.nw-hoy-accion { display: inline-flex; align-items: center; justify-content: center; min-width: 84px; padding: 7px 12px; border-radius: 10px; font-size: .78rem; font-weight: 700; text-decoration: none;
    background: #0f172a; color: #fff; transition: background .15s, transform .1s; }
.nw-hoy-accion:hover { background: var(--sunat); color: #fff; transform: translateY(-1px); }
html[data-theme="dark"] .nw-hoy-accion { background: #e2e8f0; color: #0f172a; } html[data-theme="dark"] .nw-hoy-accion:hover { background: #fff; }
.nw-hoy-mas { align-self: center; margin-top: 8px; border: 0; background: transparent; color: var(--sunat); font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; padding: 6px 10px; border-radius: 8px; }
.nw-hoy-mas:hover { background: var(--sunat-suave); }
.nw-hoy-vacio { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; color: var(--tenue); padding: 18px; }
.nw-hoy-vacio b { color: var(--txt); font-size: .9rem; margin-top: 4px; } .nw-hoy-vacio span { font-size: .78rem; max-width: 300px; }
.nw-hoy.cargando .nw-hoy-kpi b { color: var(--tenue); opacity: .5; }

@media (max-width: 1100px) { .nw-hoy-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .nw-hoy-grid { grid-template-columns: minmax(0, 1fr); } }
.nw-hoy-tarjeta { min-width: 0; }
@media (max-width: 640px) {
    .nw-hoy { padding: 18px 14px 16px; border-radius: 16px; }
    .nw-hoy-fecha h1 { font-size: 1.8rem; }
    .nw-hoy-cab-der { align-items: flex-start; width: 100%; }
    .nw-hoy-tabs { max-width: 100%; overflow-x: auto; }
    .nw-hoy-kpis { grid-template-columns: 1fr 1fr; gap: 10px; } .nw-hoy-kpi { padding: 14px; } .nw-hoy-kpi b { font-size: 1.7rem; }
    .nw-hoy-lista li { flex-wrap: wrap; gap: 8px 10px; }
    .nw-hoy-lista time { display: none; }
    .nw-hoy-lista .nw-hoy-txt { flex-basis: calc(100% - 44px - 94px); }
    .nw-hoy-lista .nw-hoy-accion { min-width: 84px; }
    .nw-hoy-lista li .nw-hoy-chip, .nw-hoy-lista li .nw-hoy-monto { margin-left: 44px; }
}
