/* ================================================================
   diseno3.css — Mejoras de diseño 4 a 7 (17/10/2026). Va DESPUÉS de los demás: solo afina.
   Para volver atrás basta con quitar el <link> de index.html.
   ================================================================ */

/* ── 4. Cabecera compacta en las páginas que aún tenían título grande + párrafo ──
   El título y la explicación van en UNA línea; la explicación se corta con «…» y se lee entera
   al pasar el mouse (index.html copia el texto al title). */
.nw-cabecera { margin-bottom: 10px; align-items: center; gap: 10px; }
.nw-cabecera > div:first-child { display: flex; align-items: baseline; gap: 12px; min-width: 0; flex: 1 1 360px; }
.nw-cabecera h1 { font-size: 1.15rem; margin: 0; white-space: nowrap; letter-spacing: -.01em; }
.nw-cabecera .nw-sub { font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; cursor: help; }
@media (max-width: 640px) {
    .nw-cabecera > div:first-child { flex-direction: column; gap: 2px; align-items: stretch; }
}

/* Tablero: saludo más bajo, la fecha y el resumen en una línea. */
.nw-t3-cab { margin: 0 0 10px; align-items: center; }
.nw-t3-cab h1 { font-size: 1.25rem; margin: 0 0 2px; }
.nw-t3-cab p { font-size: .84rem; }
.nw-t3-fecha { font-size: .72rem; }

/* ── 5. La empresa de trabajo se ve SOLO arriba (SelectorEmpresa). En las barras de cada página
   EmpresaElegida ya no pinta nada si la empresa está bien; solo sale si falta elegirla o si su
   Clave SOL tiene problema. El hueco vacío se esconde. */
.nw-filtro-emp:not(:has(.nw-emp-chip)) { display: none; }
.nw-emp-chip.aviso { border-color: rgba(245, 158, 11, .5); }

/* ── 6. Contraste: textos secundarios un tono más claros (oscuro) / más oscuros (claro) ── */
:root { --tenue: #545d6b; }
html[data-theme="dark"] { --tenue: #aab6c8; }
/* Títulos de los indicadores del Tablero en tipo oración: en mayúsculas se cortaban. */
.nw-t3-met-tit { text-transform: none; letter-spacing: 0; font-size: .8rem; }
/* Tablas sobre la imagen de fondo: fondo liso, sin que se transparente el dibujo. */
.nw-tabla-envoltura { background: var(--card); }

/* ── 7. Botones de las filas iguales a las hojas compactas (nw-hj-btn): 28 px, letra chica,
   y «Pasar a alguien» / «Chat» como icono con su explicación en el tooltip. ── */
.nw-msj .nw-btn-chico { height: 28px; padding: 0 9px; font-size: .76rem; border-radius: 7px; gap: 5px; }
.nw-msj .nw-msj-asignar, .nw-msj .nw-msj-chat { min-width: 30px; justify-content: center; padding: 0 7px; }
.nw-msj { padding-top: 9px; padding-bottom: 9px; }

/* ── Buzón por empresa compacto (17/10/2026) ── */
.nw-buzon-compacto { grid-template-columns: 250px minmax(0, 1fr); gap: 10px; align-items: stretch; }
.nw-buzon-compacto .nw-buzon-empresas { position: static; max-height: none; padding: 8px; gap: 6px; overflow: hidden; }
.nw-buzon-compacto .nw-lista-emp { flex: 1; min-height: 0; gap: 0; }
.nw-buzon-compacto .nw-item-emp { padding: 4px 6px; border-radius: 7px; font-size: .8rem; min-height: 30px; gap: 7px; }
.nw-buzon-compacto .nw-item-emp .nw-avatar.chico { width: 22px; height: 22px; font-size: .62rem; flex-shrink: 0; }
.nw-buzon-compacto .nw-globo { font-size: .66rem; min-width: 18px; height: 18px; }
.nw-buzon-vacio { display: flex; align-items: center; justify-content: center; }
.nw-buzon-hoja tbody tr { cursor: pointer; }
.nw-buzon-hoja tbody tr.no-leido td { font-weight: 600; }
.nw-buzon-hoja td { white-space: nowrap; }
.nw-buzon-hoja .nw-buz-asunto { width: 100%; }
.nw-buz-asunto-txt { display: block; min-width: 200px; max-width: min(560px, 30vw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nw-buzon-hoja td .nw-chip { display: inline-block; max-width: 170px; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.nw-buzon-compacto .nw-buzon-empresas .nw-hj-buscar { flex: 0 0 28px; }
.nw-cierre-barra .nw-hj-buscar.nw-buz-buscar { flex: 0 1 130px; min-width: 110px; }
.nw-buzon-hoja .nw-buz-fecha small { color: var(--tenue); font-weight: 400; }
.nw-buzon-hoja .nw-chip, .nw-buzon-hoja .nw-etapa { font-size: .68rem; }
.nw-buzon-hoja .nw-fila-acciones .nw-btn-chico { height: 24px; padding: 0 8px; font-size: .74rem; }
@media (max-width: 900px) {
    .nw-buzon-compacto { grid-template-columns: 1fr; }
    .nw-buzon-compacto .nw-buzon-empresas { height: 220px !important; }
}
/* La hoja del buzón cabe en el ancho: columnas chicas fijas y el asunto con el resto («…», entero en el tooltip de la fila). */
.nw-buzon-hoja table { table-layout: fixed; width: 100%; min-width: 640px; }
.nw-buzon-hoja th:nth-child(1) { width: 24px; }
.nw-buzon-hoja th:nth-child(2) { width: 88px; }
.nw-buzon-hoja th:nth-child(4) { width: 150px; }
.nw-buzon-hoja th:nth-child(5) { width: 44px; }
.nw-buzon-hoja th:nth-child(6) { width: 112px; }
.nw-buzon-hoja th:nth-child(7) { width: 106px; }
.nw-buzon-hoja .nw-buz-asunto-txt { min-width: 0; max-width: none; }
.nw-buzon-hoja td .nw-chip { max-width: 100%; }
.nw-buzon-hoja .nw-buz-fecha small { display: none; }

/* ── Bandeja compacta (17/10/2026) ── */
.nw-band-etapas button b { margin-left: 4px; font-variant-numeric: tabular-nums; }
.nw-band-etapas button.atender b { color: var(--err); } .nw-band-etapas button.proceso b { color: #d97706; } .nw-band-etapas button.espera b { color: var(--sunat); }
.nw-cierre-barra .nw-hj-buscar.nw-band-buscar { flex: 0 1 200px; min-width: 140px; }
.nw-band-barra .nw-cg-sel { max-width: 180px; }
.nw-band-hoja table { table-layout: fixed; width: 100%; min-width: 760px; }
.nw-band-hoja th:nth-child(1) { width: 24px; }
.nw-band-hoja th:nth-child(2) { width: 200px; }
.nw-band-hoja th:nth-child(4) { width: 150px; }
.nw-band-hoja th:nth-child(5) { width: 124px; }
.nw-band-hoja th:nth-child(6) { width: 88px; }
.nw-band-hoja th:nth-child(7) { width: 172px; }
.nw-band-hoja td { white-space: nowrap; }
.nw-band-hoja tbody tr { cursor: pointer; }
.nw-band-hoja tbody tr.no-leido td { font-weight: 600; }
.nw-band-hoja .nw-chip, .nw-band-hoja .nw-etapa { font-size: .68rem; display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.nw-band-hoja .nw-buz-asunto-txt { min-width: 0; max-width: none; }
.nw-band-emp { display: flex; align-items: center; gap: 6px; }
.nw-band-emp .nw-avatar.chico { width: 22px; height: 22px; font-size: .62rem; flex-shrink: 0; }
.nw-band-emp-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.nw-band-acc { display: flex; gap: 4px; align-items: center; justify-content: flex-end; }
.nw-band-acc .nw-btn-chico { height: 24px !important; padding: 0 7px !important; font-size: .74rem !important; }

/* Enviar el IGV del mes (17/10/2026) */
.nw-igv-envio-vista { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 4px; }
.nw-igv-envio-vista > div { border: 1px solid var(--linea); border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.nw-igv-envio-vista span { font-size: .72rem; color: var(--tenue); }
.nw-igv-envio-vista b { font-size: 1rem; font-variant-numeric: tabular-nums; }
.nw-igv-envio-vista .rojo b { color: var(--err); } .nw-igv-envio-vista .verde b { color: #059669; }
.nw-igv-envio-vista small { display: flex; justify-content: space-between; gap: 6px; font-size: .74rem; color: var(--tenue); }
.nw-igv-envio-vista small i { font-style: normal; color: var(--txt); font-variant-numeric: tabular-nums; }
.nw-igv-envio-vista b { margin-top: 2px; font-size: .86rem; }
.nw-igv-envio-vista b.grande { font-size: 1.2rem; margin-top: auto; }
/* IGV del mes: ventas y compras con un tinte suave para leer los dos bloques de 4 columnas (17/10/2026) */
.nw-igv-hoja th.v, .nw-igv-hoja td.v { background: rgba(37, 99, 235, .05); }
.nw-igv-hoja th.c, .nw-igv-hoja td.c { background: rgba(8, 145, 178, .06); }
.nw-igv-hoja .nw-sire-razon { max-width: 170px; }
.nw-igv-hoja td, .nw-igv-hoja th { padding-left: 6px !important; padding-right: 6px !important; }
.nw-igv-hoja td.num { font-size: .78rem; }
.nw-igv-hoja .nw-fila-acciones .nw-hj-ico { width: 22px; height: 22px; min-width: 22px; }
/* IGV del mes con «Saldo ant.» y «A pagar» (13 columnas): más apretada para caber a 1366 px (17/10/2026). */
.nw-igv-hoja .nw-sire-razon small { display: none; }
.nw-igv-hoja .nw-sire-razon { max-width: 138px; }
.nw-igv-hoja td, .nw-igv-hoja th { padding-left: 4px !important; padding-right: 4px !important; }
.nw-igv-hoja td.num { font-size: .74rem; }
.nw-igv-hoja th { font-size: .66rem !important; letter-spacing: 0 !important; }

/* IGV del mes programado + tarjeta del Tablero (18/10/2026) */
.nw-igv-prog { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 4px 0 6px 22px; }
.nw-igv-prog .nw-igv-dias { width: 140px; height: 30px; }
a.nw-igv-nota { text-decoration: none; }
.nw-t3-igv { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 8px 22px; padding: 12px 16px; margin: 12px 0; }
.nw-t3-igv-tit h3 { margin: 0; font-size: .95rem; }
.nw-t3-igv-tit small, .nw-t3-igv-total small { display: block; font-size: .74rem; color: var(--tenue); }
.nw-t3-igv-total b { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.nw-t3-igv-top { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.nw-t3-igv-top span { display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--linea); border-radius: 999px; padding: 3px 10px; font-size: .76rem; max-width: 260px; }
.nw-t3-igv-top i { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.nw-t3-igv-top b { color: var(--err); font-variant-numeric: tabular-nums; }
.nw-t3-igv-pie { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
@media (max-width: 900px) { .nw-t3-igv { grid-template-columns: 1fr 1fr; } .nw-t3-igv-top { grid-column: 1 / -1; } }
/* Selects e inputs chicos de 30 px: sin el relleno vertical de .nw-input (cortaba el texto: «lunes» salía a medias). */
.nw-input.nw-cg-sel, .nw-igv-prog .nw-input { padding-top: 0; padding-bottom: 0; }

/* ── Pantallas que faltaban (18/10/2026): Empresas, Cronograma, Descargas, Liquidación, Consulta RUC/DNI, Configuración… ──
   Toda cabecera .nw-cabecera con acciones: botones y selectores de 30 px (antes 40 px), como las hojas compactas. */
.nw-cabecera .nw-acciones { gap: 6px; flex-wrap: wrap; }
.nw-cabecera .nw-acciones .nw-btn { height: 30px; padding: 0 12px; font-size: .8rem; border-radius: 8px; }
.nw-cabecera .nw-acciones .nw-seg button { padding: 4px 10px; font-size: .8rem; }
.nw-cabecera .nw-acciones .nw-input { height: 30px; padding-top: 0; padding-bottom: 0; font-size: .82rem; }
/* La franja «Tu Clave SOL está protegida» cerrada: una línea fina (abierta, igual que antes). */
.nw-seg-sol:not(.abierto) .nw-seg-sol-cab { padding: 6px 12px; }
.nw-seg-sol:not(.abierto) .nw-seg-sol-cab small { display: none; }
.nw-seg-sol:not(.abierto) { margin-bottom: 8px; }
/* Empresas como hoja: filas de 30 px, nombre en una línea. */
.nw-emp-hoja td { white-space: nowrap; }
.nw-emp-hoja .nw-emp-celda { display: flex; align-items: center; gap: 6px; max-width: 250px; }
.nw-emp-hoja .nw-emp-celda b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.nw-emp-hoja .nw-avatar.chico { width: 22px; height: 22px; font-size: .62rem; flex-shrink: 0; }
.nw-emp-hoja .nw-chip { font-size: .66rem; }
.nw-emp-hoja .nw-ico-btn { width: 24px; height: 24px; }
.nw-emp-hoja .nw-fila-acciones { padding-top: 1px !important; padding-bottom: 1px !important; }

/* ── Celular (18/10/2026): las hojas de IGV del mes, Bandeja y Buzón pasan a TARJETAS (nw-tabla-tarjetas, ≤ 760 px).
   Cada tarjeta muestra lo esencial (data-l = rótulo); lo demás (nw-m-no) se oculta. La empresa/asunto va arriba, sin rótulo. */
@media (max-width: 760px) {
    .nw-igv-hoja table, .nw-band-hoja table, .nw-buzon-hoja table { table-layout: auto !important; min-width: 0 !important; width: 100%; }
    .nw-igv-hoja thead, .nw-band-hoja thead, .nw-buzon-hoja thead, .nw-igv-hoja tfoot { display: none !important; }
    .nw-tabla-tarjetas td.nw-m-no { display: none !important; }
    .nw-tabla-tarjetas td { white-space: normal !important; height: auto !important; background: none !important; }
    /* .nw-sire-tabla fija 30 px por fila: en tarjeta, cada fila crece con su contenido (si no, se enciman). */
    .nw-sire-tabla .nw-tabla-tarjetas tbody tr { height: auto !important; }
    .nw-tabla-tarjetas td.nw-m-tit, .nw-tabla-tarjetas td.nw-m-ancho { justify-content: flex-start; text-align: left; font-weight: 600; }
    .nw-tabla-tarjetas td.nw-m-ancho .nw-buz-asunto-txt { white-space: normal; overflow: visible; }
    .nw-tabla-tarjetas .nw-sire-razon, .nw-tabla-tarjetas .nw-band-emp-txt { max-width: none !important; white-space: normal; }
    .nw-tabla-tarjetas td.nw-fila-acciones { justify-content: flex-end; padding-top: 6px !important; }
    .nw-tabla-tarjetas td.nw-fila-acciones > div { justify-content: flex-end; }
    .nw-igv-hoja td.num { font-size: .86rem !important; }
    .nw-hoja-alta { height: auto !important; max-height: none; }
    .nw-band-barra .nw-cierre-estado { display: none; }   /* las pestañas ya muestran los números */
}

/* ── Buzón tipo GMAIL (24/10/2026) ───────────────────────────────────────────────────────────────── */
.nw-gm { display: grid; grid-template-columns: 256px minmax(0, 1fr); gap: 8px; }
.nw-gm-lado { display: flex; flex-direction: column; gap: 8px; min-height: 0; overflow: hidden; padding: 4px 0; }
.nw-gm-redactar { display: inline-flex; align-items: center; gap: 12px; align-self: flex-start; height: 52px; padding: 0 22px 0 16px;
  border: 0; border-radius: 16px; background: var(--card); color: var(--txt); font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,.18), 0 1px 4px rgba(0,0,0,.12); transition: box-shadow .15s; }
.nw-gm-redactar:hover:not(:disabled) { box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.nw-gm-redactar:disabled { opacity: .55; cursor: default; }
.nw-gm-filtroemp { display: flex; align-items: center; gap: 6px; height: 30px; margin: 0 10px 0 4px; padding: 0 10px; border-radius: 15px;
  background: color-mix(in srgb, var(--tenue) 12%, transparent); color: var(--tenue); }
.nw-gm-filtroemp input { border: 0; outline: 0; background: none; font: inherit; font-size: .8rem; color: var(--txt); width: 100%; }
.nw-gm-carpetas { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; padding-right: 8px; }
.nw-gm-carpeta { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 12px 0 14px; border: 0; background: none; font: inherit;
  font-size: .84rem; color: var(--txt); text-align: left; cursor: pointer; border-radius: 0 16px 16px 0; flex-shrink: 0; }
.nw-gm-carpeta:hover { background: color-mix(in srgb, var(--tenue) 14%, transparent); }
.nw-gm-carpeta.activo { background: var(--sunat-suave); color: var(--sunat); font-weight: 700; }
.nw-gm-carpeta.con { font-weight: 700; }
.nw-gm-carpeta .nw-avatar.chico { width: 20px; height: 20px; font-size: .58rem; flex-shrink: 0; }
.nw-gm-carpeta-txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nw-gm-cuenta { font-size: .74rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.nw-gm-cuenta.err { color: var(--err); }

.nw-gm-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; background: var(--card);
  border-radius: 16px; border: 1px solid var(--linea); }
.nw-gm-cab { display: flex; align-items: center; gap: 10px; padding: 8px 12px; }
.nw-gm-buscar { flex: 1; max-width: 720px; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-radius: 22px;
  background: color-mix(in srgb, var(--tenue) 13%, transparent); color: var(--tenue); }
.nw-gm-buscar:focus-within { background: var(--card); box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.nw-gm-buscar input { flex: 1; border: 0; outline: 0; background: none; font: inherit; font-size: .92rem; color: var(--txt); min-width: 0; }
.nw-gm-ico { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: var(--tenue); cursor: pointer; flex-shrink: 0; }
.nw-gm-ico:hover:not(:disabled) { background: color-mix(in srgb, var(--tenue) 15%, transparent); color: var(--txt); }
.nw-gm-ico:disabled { opacity: .4; cursor: default; }
.nw-gm-barra { display: flex; align-items: center; gap: 4px; padding: 0 12px 4px 8px; min-height: 40px; }
.nw-gm-chip { height: 28px; padding: 0 12px; border-radius: 14px; border: 1px solid var(--linea); background: none; color: var(--txt); font: inherit; font-size: .78rem; cursor: pointer; margin-left: 6px; }
.nw-gm-chip.activo { background: var(--sunat-suave); border-color: transparent; color: var(--sunat); font-weight: 600; }
.nw-gm-chip b { margin-left: 4px; color: var(--err); }
.nw-gm-estado { margin-left: 12px; font-size: .76rem; color: var(--tenue); }
.nw-gm-pag { margin-left: auto; font-size: .78rem; color: var(--tenue); font-variant-numeric: tabular-nums; }
.nw-gm-tabs { display: flex; border-bottom: 1px solid var(--linea); }
.nw-gm-tabs button { display: flex; align-items: center; gap: 12px; min-width: 220px; height: 52px; padding: 0 16px; border: 0; background: none;
  font: inherit; font-size: .88rem; color: var(--tenue); cursor: pointer; border-bottom: 3px solid transparent; }
.nw-gm-tabs button:hover { background: color-mix(in srgb, var(--tenue) 8%, transparent); }
.nw-gm-tabs button.activo { color: var(--sunat); border-bottom-color: var(--sunat); font-weight: 600; }
.nw-gm-nuevas { font-size: .66rem; font-weight: 700; background: var(--sunat); color: #fff; border-radius: 9px; padding: 1px 7px; }
.nw-gm-vacio { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--tenue); padding: 30px; text-align: center; }
.nw-gm-lista { flex: 1; min-height: 0; overflow-y: auto; }
.nw-gm-fila { display: grid; grid-template-columns: 22px minmax(120px, 200px) minmax(0, 1fr) 24px 96px; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px 0 10px; border-bottom: 1px solid var(--linea); cursor: pointer; font-size: .875rem; position: relative; }
.nw-gm-fila.leido { background: color-mix(in srgb, var(--tenue) 7%, var(--card)); color: var(--txt); }
.nw-gm-fila.nuevo { background: var(--card); font-weight: 700; }
.nw-gm-fila:hover { box-shadow: inset 1px 0 0 var(--linea), inset -1px 0 0 var(--linea), 0 1px 3px rgba(0,0,0,.22); z-index: 1; }
.nw-gm-punto { width: 8px; height: 8px; border-radius: 50%; justify-self: center; }
.nw-gm-fila.nuevo .nw-gm-punto { background: var(--sunat); }
.nw-gm-de { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nw-gm-txt { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; white-space: nowrap; }
.nw-gm-asunto { overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
.nw-gm-txt .nw-etapa, .nw-gm-txt .nw-chip { font-size: .66rem; flex-shrink: 0; font-weight: 600; }
.nw-gm-cat { color: var(--tenue); font-weight: 400; overflow: hidden; text-overflow: ellipsis; flex: 1 1 0; min-width: 0; }
.nw-gm-clip { color: var(--tenue); display: inline-grid; place-items: center; }
.nw-gm-fecha { justify-self: end; font-size: .78rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.nw-gm-fila.nuevo .nw-gm-fecha { color: var(--txt); }
.nw-gm-fila.leido .nw-gm-fecha { color: var(--tenue); }
.nw-gm-acc { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); display: none; }
.nw-gm-acc .nw-btn-chico { height: 26px; padding: 0 10px; font-size: .74rem; }
.nw-gm-fila:hover .nw-gm-acc { display: block; }
.nw-gm-fila:hover .nw-gm-fecha { visibility: hidden; }
@media (max-width: 900px) {
  .nw-gm { grid-template-columns: 1fr; }
  .nw-gm-lado { height: auto !important; max-height: 260px; }
  .nw-gm-redactar { height: 44px; }
  .nw-gm-tabs button { min-width: 0; flex: 1; }
}
@media (max-width: 600px) {
  .nw-gm-fila { grid-template-columns: 14px minmax(0, 1fr) auto; grid-template-rows: auto auto; height: auto; padding: 8px 12px 8px 8px; row-gap: 2px; }
  .nw-gm-punto { grid-row: 1 / 3; }
  .nw-gm-de { grid-column: 2; }
  .nw-gm-fecha { grid-column: 3; grid-row: 1; }
  .nw-gm-txt { grid-column: 2 / 4; grid-row: 2; }
  .nw-gm-clip { display: none; }
  .nw-gm-cat { display: none; }
  /* En el celular no hay «pasar el mouse»: queda la fecha; Culminar está dentro del mensaje. */
  .nw-gm-fila:hover .nw-gm-acc { display: none; }
  .nw-gm-fila:hover .nw-gm-fecha { visibility: visible; }
  .nw-gm-estado, .nw-gm-pag { display: none; }
}
.nw-gm-nuevas { white-space: nowrap; }
@media (max-width: 600px) { .nw-gm-tabs button { gap: 6px; padding: 0 8px; font-size: .82rem; } }

/* ── Bandeja estilo GMAIL (25/10/2026) ── */
.nw-gm-h1 { margin: 0 6px 0 4px; font-size: 1.15rem; font-weight: 700; white-space: nowrap; }
.nw-gm-sel { height: 40px; padding: 0 30px 0 14px; border-radius: 20px; border: 1px solid var(--linea); background-color: var(--card);
  color: var(--txt); font: inherit; font-size: .84rem; max-width: 220px; cursor: pointer; }
.nw-band-gm .nw-gm-buscar { max-width: none; }
.nw-gm-chip.alerta { border-color: color-mix(in srgb, var(--err) 45%, transparent); color: var(--err); }
.nw-gm-chip.alerta.activo { background: color-mix(in srgb, var(--err) 14%, transparent); }
.nw-gm-chip.alerta b { color: inherit; margin: 0 4px 0 0; }
.nw-band-tabs button { min-width: 150px; }
.nw-band-tabs .nw-gm-nuevas { background: var(--tenue); }
.nw-band-tabs .nw-gm-nuevas.atender { background: var(--err); } .nw-band-tabs .nw-gm-nuevas.proceso { background: #d97706; }
.nw-band-tabs .nw-gm-nuevas.espera { background: var(--sunat); } .nw-band-tabs .nw-gm-nuevas.pend { background: var(--sunat); }
.nw-band-fila { grid-template-columns: 22px minmax(150px, 230px) minmax(0, 1fr) 24px 80px; }
.nw-band-de { display: flex; align-items: center; gap: 8px; min-width: 0; }
.nw-band-de .nw-avatar.chico { width: 24px; height: 24px; font-size: .6rem; flex-shrink: 0; }
.nw-band-de-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.nw-gm-clip.nuevo { color: var(--sunat); }
.nw-band-acc { display: none; align-items: center; gap: 2px; background: inherit; padding-left: 8px; }
.nw-gm-fila:hover .nw-band-acc { display: flex; }
.nw-band-acc .nw-gm-ico { width: 32px; height: 32px; }
/* Gmail no grita: no leído = 600 (antes 700) para que 280 avisos sin leer no sean una pared de negritas. */
.nw-gm-fila.nuevo { font-weight: 600; }
@media (max-width: 900px) { .nw-band-gm .nw-gm-cab { flex-wrap: wrap; } .nw-gm-sel { flex: 1; max-width: none; } .nw-band-tabs button { min-width: 0; } }
@media (max-width: 600px) {
  .nw-band-fila { grid-template-columns: 14px minmax(0, 1fr) auto; }
  .nw-gm-fila:hover .nw-band-acc { display: none; }
  .nw-band-tabs { overflow-x: auto; }
  .nw-band-tabs button span { white-space: nowrap; }
  .nw-gm-h1 { display: none; }
}

/* ── Hojas compactas más amables (25/10/2026, «lo compacto no se ve muy bien»): 34 px por fila, encabezado liviano,
   resaltado al pasar el mouse y chips en tipo oración. Aplica a IGV del mes, Empresas, Revisión, Detracciones… ── */
.nw-dj-hoja td { height: 34px; }
.nw-dj-hoja td, .nw-dj-hoja th { font-size: .82rem; }
.nw-dj-hoja thead th { font-size: .68rem; font-weight: 600; letter-spacing: .04em; color: var(--tenue); background: var(--card);
  border-bottom: 1px solid var(--linea); }
.nw-dj-hoja tbody tr { transition: background .12s; }
.nw-dj-hoja tbody tr:hover td { background: color-mix(in srgb, var(--sunat) 6%, var(--card)) !important; }
.nw-dj-hoja tbody td { border-color: color-mix(in srgb, var(--linea) 70%, transparent); }
.nw-dj-hoja .nw-chip { text-transform: none; letter-spacing: 0; font-weight: 600; border-radius: 6px; }
.nw-sire-tabla tbody tr { height: 34px; }

/* ── Clientes de NotiWeb / cobranza (07/11/2026) ── */
.nw-adm-hoja td { white-space: nowrap; }
.nw-adm-cli { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.nw-adm-cli b { overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.nw-adm-cli small { color: var(--tenue); font-size: .72rem; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.nw-adm-acc { display: flex; gap: 4px; align-items: center; justify-content: flex-end; }
.nw-adm-acc a.nw-hj-btn { text-decoration: none; }

/* ── Descargar SIRE: tres opciones + lista de propuestas generadas (07/11/2026, como Execont) ── */
.nw-sd-opc { display: flex; gap: 2px; padding: 2px; border-radius: 8px; background: var(--gris-bg); flex-wrap: wrap; }
.nw-sd-opc button { border: 0; background: none; padding: 5px 12px; font: inherit; font-size: .82rem; font-weight: 600; color: var(--tenue);
  border-radius: 6px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.nw-sd-opc button.activo { background: var(--card); color: var(--sunat); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.nw-sd-opc button:disabled { cursor: default; opacity: .6; }
.nw-sd-punto { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--linea); display: inline-block; flex: none; box-sizing: border-box; }
.nw-sd-opc button.activo .nw-sd-punto, .nw-sd-punto.on { border-color: var(--sunat); background: radial-gradient(circle, var(--sunat) 0 3px, transparent 3.5px); }
.nw-sd-ayuda { font-size: .78rem; color: var(--tenue); margin: -2px 2px 8px; }
.nw-sd-tickets { background: var(--card); border: 1px solid var(--linea); border-radius: 10px; padding: 8px 10px; margin-bottom: 10px; }
.nw-sd-tk-barra { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; font-size: .84rem; }
.nw-sd-otro { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--tenue); font-size: .78rem; }
.nw-sd-tk-tabla { max-height: 300px; overflow: auto; }
.nw-sd-tk-tabla tbody tr { cursor: pointer; user-select: none; }
.nw-sd-tk-tabla tbody tr.sel td { background: color-mix(in srgb, var(--sunat) 10%, transparent); }
.nw-sd-tk-tabla tbody tr.apagado { cursor: default; opacity: .55; }
.nw-sd-tk-tabla td.mono { font-family: ui-monospace, Consolas, monospace; font-size: .8rem; }
.nw-sd-tk-tabla td, .nw-sd-tk-tabla th { white-space: nowrap; padding-top: 5px; padding-bottom: 5px; }
.nw-sd-otro .nw-sd-ticket { width: 150px; }
.nw-sd-tk-tabla td:first-child, .nw-sd-tk-tabla th:first-child { width: 26px; text-align: center; }
.nw-sd-arch { max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .76rem; color: var(--tenue); }
@media (max-width: 700px) {
  .nw-sd-otro { margin-left: 0; width: 100%; }
  .nw-sd-arch { display: none; }
  .nw-sd-tk-tabla th:last-child { display: none; }
}

/* ── Marco COMÚN estilo Gmail para Control de declaraciones, Deudas y cobranza y Revisión general (07/11/2026) ──
   Mismo armazón que Bandeja/Buzón: cabecera (título + período + buscador grande), barra (íconos · resumen · acción),
   vistas como PESTAÑAS con su número y la tabla DENTRO de la tarjeta, a todo el alto (.nw-hoja-alta en la sección). */
.nw-gm-hoja .nw-gm-cab { flex-wrap: wrap; row-gap: 6px; }
.nw-gm-hoja .nw-gm-buscar { max-width: none; flex: 1 1 260px; min-width: 200px; }
.nw-gm-hoja .nw-gm-h1 { flex-shrink: 0; }
.nw-gm-periodo { display: inline-flex; align-items: center; gap: 2px; height: 40px; padding: 0 4px; border-radius: 20px;
  border: 1px solid var(--linea); white-space: nowrap; font-size: .86rem; }
.nw-gm-periodo b { min-width: 118px; text-align: center; }
.nw-gm-periodo .nw-gm-ico { width: 30px; height: 30px; font-size: 1.1rem; }
.nw-gm-alterna { display: inline-flex; gap: 2px; padding: 3px; border-radius: 20px; background: color-mix(in srgb, var(--tenue) 13%, transparent); }
.nw-gm-alterna button { border: 0; background: none; height: 34px; padding: 0 14px; border-radius: 17px; font: inherit; font-size: .82rem;
  color: var(--tenue); cursor: pointer; max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nw-gm-alterna button.activo { background: var(--card); color: var(--sunat); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.nw-gm-accion { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 18px; border: 0; border-radius: 18px;
  background: var(--sunat); color: #fff; font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer; text-decoration: none; margin-left: 8px; white-space: nowrap; }
.nw-gm-accion:hover:not(:disabled) { filter: brightness(1.08); box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.nw-gm-accion:disabled { opacity: .5; cursor: default; }
.nw-gm-vacio .nw-gm-accion { margin: 8px 0 0; }
.nw-gm-vacio h3 { margin: 4px 0 0; color: var(--txt); font-size: 1rem; }
.nw-gm-vacio p { margin: 0; max-width: 460px; }
.nw-gm-pag .nw-giro { vertical-align: middle; margin-right: 4px; }
.nw-gm-monto { color: var(--txt); font-size: .9rem; margin-left: 4px; }
.nw-gm-chip.aviso { border-color: color-mix(in srgb, var(--warn) 45%, transparent); color: var(--warn); cursor: default; }
.nw-gm-chip.aviso b { color: inherit; margin: 0 4px 0 0; }
span.nw-gm-chip { display: inline-flex; align-items: center; cursor: default; }
.nw-gm-vistas button { min-width: 150px; }
.nw-gm-nuevas.gris { background: var(--tenue); } .nw-gm-nuevas.ok { background: var(--ok); }
.nw-gm-nuevas.warn { background: #d97706; } .nw-gm-nuevas.err { background: var(--err); }
/* La tabla y lo que va encima (pasos, avisos, barra de la hoja) dentro de la tarjeta. */
.nw-gm-hoja > .nw-alerta, .nw-gm-hoja > .nw-hj-estado, .nw-gm-hoja > .nw-rev-pasos, .nw-gm-hoja > .nw-hj-barra { margin: 8px 12px 0; }
.nw-gm-hoja > .nw-hj-barra:last-of-type { margin-bottom: 6px; }
.nw-gm-main .nw-gm-tabla { flex: 1 1 auto; min-height: 0; height: auto !important; max-height: none !important; overflow: auto;
  margin: 0; border: 0; border-top: 1px solid var(--linea); border-radius: 0; box-shadow: none; }
@media (max-width: 900px) {
  .nw-gm-hoja .nw-gm-cab { flex-wrap: wrap; }
  .nw-gm-hoja .nw-gm-buscar { flex-basis: 100%; order: 5; }
  .nw-gm-vistas { overflow-x: auto; } .nw-gm-vistas button { min-width: 0; flex: 1; } .nw-gm-vistas button span { white-space: nowrap; }
}
@media (max-width: 600px) {
  .nw-gm-hoja .nw-gm-h1 { display: block; flex-basis: 100%; }
  .nw-gm-accion { padding: 0 12px; margin-left: auto; }
  .nw-gm-alterna button { max-width: 140px; }
  .nw-gm-vistas button { flex: 0 0 auto; padding: 0 12px; gap: 6px; }
}

/* ── Primeros pasos en el Tablero (07/11/2026, Componentes/GuiaInicio.razor) ── */
.nw-guia { background: var(--card); border: 1px solid var(--linea); border-radius: 16px; padding: 14px 16px 16px; margin: 0 0 14px;
  background-image: linear-gradient(135deg, color-mix(in srgb, var(--sunat) 9%, transparent), transparent 55%); }
.nw-guia-cab { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.nw-guia-cab h2 { margin: 0; font-size: 1.02rem; }
.nw-guia-cab p { margin: 2px 0 0; font-size: .8rem; color: var(--tenue); }
.nw-guia-cab > div:first-child { flex: 1; min-width: 0; }
.nw-guia-barra { width: 180px; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--tenue) 20%, transparent); overflow: hidden; flex-shrink: 0; }
.nw-guia-barra i { display: block; height: 100%; background: var(--ok); border-radius: 3px; transition: width .4s; }
.nw-guia-pasos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.nw-guia-pasos li { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; border: 1px solid var(--linea);
  background: var(--card); min-width: 0; }
.nw-guia-pasos li.actual { border-color: var(--sunat); box-shadow: 0 0 0 1px var(--sunat) inset; }
.nw-guia-pasos li.hecho { opacity: .72; background: color-mix(in srgb, var(--ok) 6%, var(--card)); }
.nw-guia-n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 700;
  background: color-mix(in srgb, var(--tenue) 18%, transparent); color: var(--txt); }
.nw-guia-pasos li.actual .nw-guia-n { background: var(--sunat); color: #fff; }
.nw-guia-pasos li.hecho .nw-guia-n { background: var(--ok); color: #fff; }
.nw-guia-txt { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.nw-guia-txt b { font-size: .86rem; }
.nw-guia-txt small { font-size: .75rem; color: var(--tenue); line-height: 1.35; }
.nw-guia-btn { align-self: flex-start; display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 15px;
  border: 1px solid var(--linea); background: none; color: var(--txt); font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; max-width: 100%; }
.nw-guia-btn.prim { background: var(--sunat); border-color: transparent; color: #fff; }
.nw-guia-btn:disabled { opacity: .5; cursor: default; }
@media (max-width: 1100px) { .nw-guia-pasos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .nw-guia-pasos { grid-template-columns: 1fr; }
  .nw-guia-pasos li { display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 10px; row-gap: 8px; align-items: center; padding: 10px 12px; }
  .nw-guia-btn { grid-column: 2; }
  .nw-guia-pasos li.hecho .nw-guia-txt small { display: none; }
  .nw-guia-barra { width: 80px; }
}

/* ── Configuración en pestañas (07/11/2026) ── */
.nw-cfg-tabs { display: flex; gap: 4px; margin: -4px 0 14px; padding: 4px; border-radius: 14px; background: var(--card); border: 1px solid var(--linea); overflow-x: auto; }
.nw-cfg-tabs button { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border: 0; border-radius: 10px; background: none;
  font: inherit; font-size: .84rem; font-weight: 600; color: var(--tenue); cursor: pointer; white-space: nowrap; }
.nw-cfg-tabs button:hover { background: color-mix(in srgb, var(--tenue) 10%, transparent); color: var(--txt); }
.nw-cfg-tabs button.activo { background: var(--sunat-suave); color: var(--sunat); }
.nw-cfg-oculta { display: none !important; }
.nw-cfg-pie { position: sticky; bottom: 0; z-index: 2; display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 12px;
  padding: 10px 110px 10px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--linea); box-shadow: 0 -4px 16px rgba(0,0,0,.18); }   /* 110 px: el búho y el chat flotante tapaban el botón */
@media (max-width: 600px) { .nw-cfg-tabs button span { display: none; } .nw-cfg-tabs button.activo span { display: inline; } .nw-cfg-pie .nw-tenue { display: none; } }

/* ── Accesos directos más compactos (07/11/2026): una fila por empresa, 56 px, botones a la derecha. ── */
.nw-acc-lista { gap: 6px; }
.nw-acc-emp { padding: 8px 14px !important; border-radius: 12px; }
.nw-acc-cab .nw-avatar.chico { width: 30px; height: 30px; font-size: .7rem; }
.nw-acc-cab b { font-size: .88rem; }
.nw-acc-botones .nw-btn, .nw-acc-botones button { height: 30px; font-size: .78rem; }
@media (min-width: 1100px) { .nw-acc-emp { flex-wrap: nowrap; } .nw-acc-cab { flex: 1 1 320px; min-width: 0; } .nw-acc-cab b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .nw-acc-botones { flex-wrap: nowrap; flex-shrink: 0; } }

/* ── Tarjeta «Procesando…» al centro, como la de Execont (07/11/2026; aspecto Execont 13/11/2026): tarjeta clara con
   sombra, anillo que gira en el azul de la marca, «Procesando…» en negrita, el detalle en azul y una barra abajo
   (de avance con N de M; si no, se desplaza sola). pointer-events: none → no tapa nada. ── */
.nw-carga { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 70; pointer-events: none;
  width: min(480px, calc(100vw - 32px)); padding: 18px 22px 0; border-radius: 16px; background: var(--card);
  border: 1px solid color-mix(in srgb, var(--sunat) 25%, var(--linea)); box-shadow: 0 18px 50px rgba(0,0,0,.35); overflow: hidden;
  animation: nw-carga-entra .18s ease-out; }
@keyframes nw-carga-entra { from { opacity: 0; transform: translate(-50%, -46%); } to { opacity: 1; transform: translate(-50%, -50%); } }
.nw-carga-fila { display: flex; align-items: center; gap: 18px; padding-bottom: 16px; }
.nw-carga-anillo { width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; border: 5px solid color-mix(in srgb, var(--sunat) 18%, transparent);
  border-top-color: var(--sunat); animation: nw-giro .9s linear infinite; }
.nw-carga-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nw-carga-txt b { font-size: 1.05rem; }
.nw-carga-txt span { font-size: .9rem; color: var(--sunat); overflow: hidden; text-overflow: ellipsis; }
.nw-carga-txt small { font-size: .76rem; color: var(--tenue); margin-top: 2px; }
.nw-carga-barra { height: 7px; margin: 0 -22px; background: color-mix(in srgb, var(--sunat) 15%, transparent); overflow: hidden; }
.nw-carga-barra i { display: block; height: 100%; background: linear-gradient(90deg, var(--sunat), #06b6d4); transition: width .3s; }
.nw-carga-barra.indet i { width: 40%; animation: nw-carga-corre 1.4s ease-in-out infinite; }
@keyframes nw-carga-corre { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
@media (max-width: 600px) { .nw-carga { top: auto; bottom: 90px; transform: translateX(-50%); } @keyframes nw-carga-entra { from { opacity: 0; } to { opacity: 1; } } }
/* IGV del mes: el estado («Consultando 1/5…», «Lunes y jueves…») se apilaba en vertical a 1366 px (07/11/2026). */
.nw-igv-barra .nw-cierre-estado, .nw-cierre-barra .nw-cierre-estado { flex: 1 1 220px; min-width: 0; }
.nw-cierre-estado > * { white-space: nowrap; }

/* ── IGV del mes rediseñado (07/11/2026): patrón Stripe / QuickBooks / Xero — indicadores, filas con aire, grupos de columnas ── */
.nw-igv2-mes { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 20px; border: 1px solid var(--linea); color: var(--tenue); }
.nw-igv2-mes input { border: 0; outline: 0; background: none; font: inherit; font-size: .86rem; font-weight: 600; color: var(--txt); width: 150px; }
.nw-igv2-mes input::-webkit-calendar-picker-indicator { opacity: .6; cursor: pointer; }
.nw-igv2-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; padding: 4px 12px 12px; }
.nw-igv2-kpi { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--linea);
  background: color-mix(in srgb, var(--tenue) 5%, var(--card)); min-width: 0; }
.nw-igv2-kpi span { font-size: .74rem; color: var(--tenue); font-weight: 600; letter-spacing: .02em; }
.nw-igv2-kpi b { font-size: 1.25rem; font-variant-numeric: tabular-nums; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nw-igv2-kpi small { font-size: .72rem; color: var(--tenue); }
.nw-igv2-kpi.rojo { border-color: color-mix(in srgb, var(--err) 35%, var(--linea)); background: color-mix(in srgb, var(--err) 7%, var(--card)); }
.nw-igv2-kpi.rojo b { color: var(--err); }
.nw-igv2-kpi.verde { border-color: color-mix(in srgb, var(--ok) 35%, var(--linea)); background: color-mix(in srgb, var(--ok) 7%, var(--card)); }
.nw-igv2-kpi.verde b { color: var(--ok); }
.nw-igv2-kpi.gris b { color: var(--tenue); }
.nw-igv2-hoja { overflow: auto; }
.nw-igv2-tabla { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .86rem; min-width: 1180px; }
.nw-igv2-tabla th, .nw-igv2-tabla td { padding: 0 12px; text-align: left; border-bottom: 1px solid color-mix(in srgb, var(--linea) 70%, transparent); white-space: nowrap; }
.nw-igv2-tabla thead th { position: sticky; z-index: 2; background: var(--card); font-size: .7rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--tenue); height: 36px; }
.nw-igv2-tabla thead tr:nth-child(2) th { top: 32px; }
.nw-igv2-grupos th { top: 0; height: 32px; text-align: center !important; font-size: .68rem; border-bottom: 0; }
.nw-igv2-grupos th.g-res, .nw-igv2-grupos th.g-v, .nw-igv2-grupos th.g-c { position: sticky; }
.nw-igv2-grupos th.g-v { color: #2563eb; } .nw-igv2-grupos th.g-c { color: #0891b2; }
.nw-igv2-grupos th.g-res::after, .nw-igv2-grupos th.g-v::after, .nw-igv2-grupos th.g-c::after { content: ""; display: block; height: 2px; margin: 4px 10px 0; border-radius: 2px; background: currentColor; opacity: .55; }
.nw-igv2-tabla tbody td { height: 52px; font-variant-numeric: tabular-nums; }
.nw-igv2-tabla .num { text-align: right; }
.nw-igv2-tabla th.num { text-align: right; }
.nw-igv2-tabla td.v, .nw-igv2-tabla th.v { background: rgba(37, 99, 235, .035); }
.nw-igv2-tabla td.c, .nw-igv2-tabla th.c { background: rgba(8, 145, 178, .045); }
.nw-igv2-tabla td.res, .nw-igv2-tabla th.res { font-weight: 700; border-right: 1px solid var(--linea); }
.nw-igv2-tabla td.tot, .nw-igv2-tabla th.tot { border-right: 1px solid var(--linea); }
.nw-igv2-tabla td.tenue { color: var(--tenue); font-weight: 400; }
.nw-igv2-tabla td.sinlibro { text-align: center; font-size: .8rem; }
.nw-igv2-tabla td.nw-igv2-sin { text-align: left; }
.nw-igv2-tabla tbody tr { transition: background .12s; }
.nw-igv2-tabla tbody tr:hover td { background: color-mix(in srgb, var(--sunat) 6%, var(--card)); }
.nw-igv2-tabla .verde { color: var(--ok); } .nw-igv2-tabla .rojo { color: var(--err); }
.nw-igv2-emp { min-width: 240px; }
.nw-igv2-empc { display: flex; align-items: center; gap: 10px; min-width: 0; }
.nw-igv2-empc .nw-avatar.chico { width: 30px; height: 30px; font-size: .66rem; flex-shrink: 0; }
.nw-igv2-empc div { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.nw-igv2-empc b { font-size: .86rem; max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.nw-igv2-empc small { font-size: .72rem; color: var(--tenue); }
.nw-igv2-chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 12px; font-size: .74rem; font-weight: 600; white-space: nowrap; }
.nw-igv2-chip.rojo { background: color-mix(in srgb, var(--err) 14%, transparent); color: var(--err); }
.nw-igv2-chip.verde { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.nw-igv2-chip.gris { background: color-mix(in srgb, var(--tenue) 16%, transparent); color: var(--tenue); }
.nw-igv2-chip .nw-giro { width: 11px; height: 11px; }
.nw-igv2-leer { border: 1px solid var(--linea); background: none; color: var(--sunat); font: inherit; font-size: .74rem; font-weight: 600; height: 26px; padding: 0 10px; border-radius: 13px; cursor: pointer; }
.nw-igv2-leer:hover:not(:disabled) { background: var(--sunat-suave); }
.nw-igv2-acc { width: 120px; }
.nw-igv2-acc .nw-gm-ico { width: 32px; height: 32px; opacity: .35; }
.nw-igv2-tabla tbody tr:hover .nw-igv2-acc .nw-gm-ico { opacity: 1; }
.nw-igv2-tabla tfoot td { height: 46px; font-weight: 700; border-top: 2px solid var(--linea); border-bottom: 0; background: color-mix(in srgb, var(--tenue) 5%, var(--card)); position: sticky; bottom: 0; }
.nw-igv2-tabla tfoot td:first-child { color: var(--tenue); font-weight: 600; font-size: .8rem; }
@media (max-width: 1100px) { .nw-igv2-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .nw-igv2-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 4px 10px 10px; }
  .nw-igv2-kpi b { font-size: 1.05rem; }
  .nw-igv2-tabla { min-width: 0; }
  .nw-igv2-tabla thead, .nw-igv2-tabla tfoot { display: none; }
  .nw-igv2-tabla tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; padding: 10px 12px; border-bottom: 1px solid var(--linea); }
  .nw-igv2-tabla tbody td { display: flex; justify-content: space-between; align-items: center; gap: 10px; height: auto; min-height: 26px; padding: 0; border: 0; background: none !important; white-space: normal; }
  .nw-igv2-tabla tbody td::before { content: attr(data-l); color: var(--tenue); font-size: .72rem; }
  .nw-igv2-tabla tbody td:not([data-l])::before { content: none; }
  .nw-igv2-tabla td.nw-igv2-emp { grid-column: 1 / -1; }
  .nw-igv2-empc b { max-width: none; white-space: normal; }
  .nw-igv2-tabla td.res, .nw-igv2-tabla td.tot { border-right: 0; }
  .nw-igv2-tabla td.sinlibro { grid-column: 1 / -1; justify-content: flex-start; }
  .nw-igv2-tabla td.nw-igv2-acc { grid-column: 1 / -1; justify-content: flex-end; width: auto; }
  .nw-igv2-acc .nw-gm-ico { opacity: 1; }
}
.nw-igv2-mes { display: inline-flex !important; flex-direction: row !important; margin: 0; }   /* el label de .nw-form lo ponía en columna */
a.nw-gm-chip { text-decoration: none; display: inline-flex; align-items: center; }
.nw-gm-barra .nw-gm-chip { white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 600px) { .nw-igv2 .nw-gm-barra { flex-wrap: wrap; row-gap: 6px; } .nw-igv2 .nw-gm-accion { margin-left: auto; } .nw-igv2-tabla tbody tr { grid-template-columns: 1fr; } }

/* ── Dos tableros: Buzón | Vencimientos (07/11/2026) ── */
.nw-t5-switch { display: flex; gap: 8px; margin: 0 0 14px; }
.nw-t5-switch a { display: flex; align-items: center; gap: 12px; flex: 1; max-width: 360px; min-height: 60px; padding: 8px 18px; border-radius: 14px;
  border: 1px solid var(--linea); background: var(--card); color: var(--tenue); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.nw-t5-switch a:hover { border-color: color-mix(in srgb, var(--sunat) 40%, var(--linea)); }
.nw-t5-switch a.activo { border-color: var(--sunat); box-shadow: 0 0 0 1px var(--sunat) inset, 0 6px 18px rgba(0,0,0,.12); color: var(--txt);
  background: linear-gradient(135deg, color-mix(in srgb, var(--sunat) 10%, var(--card)), var(--card)); }
.nw-t5-switch a span { display: flex; flex-direction: column; line-height: 1.2; flex: 1; min-width: 0; }
.nw-t5-switch a b { font-size: .98rem; }
.nw-t5-switch a small { font-size: .74rem; color: var(--tenue); }
.nw-t5-switch a.activo svg { color: var(--sunat); }
.nw-t5-n { font-style: normal; font-size: .74rem; font-weight: 700; min-width: 24px; height: 24px; padding: 0 8px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.nw-t5-n.azul { background: var(--sunat); } .nw-t5-n.ambar { background: #d97706; }
.nw-t3-metricas.cuatro { grid-template-columns: 1.25fr repeat(3, minmax(0, 1fr)); }
.nw-t3-met-cifra.chica { font-size: 1.35rem; }
.nw-t3-met-cifra.ambar { color: #d97706; } .nw-t3-met-cifra.verde { color: var(--ok); }
.nw-t5-ancha { margin-bottom: 14px; }
.nw-t4-lista.dos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.nw-t5-igv { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--linea); }
.nw-t5-igv header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.nw-t5-igv h4 { margin: 0; font-size: .86rem; }
.nw-t5-igv > span { display: flex; justify-content: space-between; gap: 10px; font-size: .82rem; }
.nw-t5-igv > span i { font-style: normal; color: var(--tenue); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.nw-t5-igv > span b { font-variant-numeric: tabular-nums; color: var(--err); white-space: nowrap; }
.nw-t5-igv .nw-enlace-chico { align-self: flex-end; }
.nw-t5-tabla .nw-chip { text-transform: none; letter-spacing: 0; }
@media (max-width: 900px) { .nw-t3-metricas.cuatro { grid-template-columns: repeat(2, minmax(0, 1fr)); } .nw-t4-lista.dos { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .nw-t5-switch a { padding: 8px 10px; min-height: 52px; } .nw-t5-switch a small { display: none; } }

/* ── Barra superior (07/11/2026, captura a 1920 px: el menú dejaba sin sitio al selector de empresa y el Ctrl K se montaba
   sobre el avatar). El selector de empresa SIEMPRE visible con ancho mínimo; el buscador cede antes que él. ── */
.menu-arriba .nw-selemp { flex: 0 1 260px; min-width: 190px; }
.menu-arriba .nw-bus-btn { flex: 0 1 220px; min-width: 44px; }
.menu-arriba .nw-top { gap: 8px; }
@media (max-width: 1800px) { .menu-arriba .nw-arr-menu > a.nw-arr-op span { display: none; } }
@media (max-width: 1500px) { .menu-arriba .nw-bus-txt, .menu-arriba .nw-bus-btn kbd { display: none; } .menu-arriba .nw-bus-btn { padding: 0 10px; } }

/* ── Tableros v2 (07/11/2026): un solo listado con filtros + gráficos SVG. Patrón Alegra/Stripe: aire, cifras grandes, desglose. ── */
.nw-t6-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.nw-t6-kpi { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--linea); background: var(--card);
  text-align: left; color: var(--txt); text-decoration: none; font: inherit; cursor: default; min-width: 0; min-height: 150px; }
a.nw-t6-kpi, button.nw-t6-kpi { cursor: pointer; transition: box-shadow .15s, border-color .15s; }
a.nw-t6-kpi:hover, button.nw-t6-kpi:hover { border-color: color-mix(in srgb, var(--sunat) 40%, var(--linea)); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.nw-t6-kpi.ancha { grid-column: span 2; }
.nw-t6-kpi-cab { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.nw-t6-kpi-cab span { font-size: .76rem; font-weight: 600; color: var(--tenue); letter-spacing: .02em; }
.nw-t6-kpi-cab b { font-size: 1.15rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nw-t6-kpi-cab b.azul { color: var(--sunat); } .nw-t6-kpi-cab b.rojo { color: var(--err); } .nw-t6-kpi-cab b.verde { color: var(--ok); }
.nw-t6-kpi-cab b.ambar { color: #d97706; } .nw-t6-kpi-cab b.gris { color: var(--tenue); font-size: .9rem; }
.nw-t6-dona-fila { display: flex; align-items: center; gap: 14px; flex: 1; }
.nw-t6-dona { width: 92px; height: 92px; flex-shrink: 0; color: var(--tenue); }
.nw-t6-dona text { fill: var(--txt); font-family: inherit; }
.nw-t6-dona text.grande { font-size: 17px; font-weight: 800; } .nw-t6-dona text.chico { font-size: 8px; fill: var(--tenue); }
.nw-t6-leyenda { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; font-size: .78rem; min-width: 0; }
.nw-t6-leyenda li { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.nw-t6-leyenda i { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.nw-t6-leyenda b { margin-left: auto; font-variant-numeric: tabular-nums; }
.nw-t6-barras { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; flex: 1; justify-content: center; }
.nw-t6-barras li { display: grid; grid-template-columns: minmax(0, 1fr) 90px 34px; align-items: center; gap: 8px; font-size: .76rem; }
.nw-t6-barras li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nw-t6-barras li i { display: block; height: 7px; border-radius: 4px; background: color-mix(in srgb, var(--tenue) 18%, transparent); overflow: hidden; }
.nw-t6-barras li i b { display: block; height: 100%; border-radius: 4px; background: var(--sunat); min-width: 3px; }
.nw-t6-barras li i b.rojo { background: var(--err); }
.nw-t6-barras li em { font-style: normal; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.nw-t6-lista-chica { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: .78rem; }
.nw-t6-lista-chica li { display: flex; align-items: center; gap: 8px; }
.nw-t6-nada { flex: 1; display: grid; place-items: center; color: var(--tenue); font-size: .78rem; text-align: center; padding: 6px; }
.nw-t6-cal { display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); gap: 4px; flex: 1; align-items: end; }
.nw-t6-cal-dia { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.nw-t6-cal-barra { width: 100%; height: 54px; display: flex; flex-direction: column-reverse; align-items: stretch; border-radius: 4px; background: color-mix(in srgb, var(--tenue) 8%, transparent); overflow: hidden; }
.nw-t6-cal-barra i { display: block; width: 100%; }
.nw-t6-cal-barra i.pdt { background: var(--sunat); } .nw-t6-cal-barra i.sire { background: #0891b2; }
.nw-t6-cal-dia em { font-style: normal; font-size: .68rem; font-weight: 700; height: 12px; line-height: 12px; }
.nw-t6-cal-dia span { font-size: .72rem; font-weight: 600; display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.nw-t6-cal-dia span small { font-size: .58rem; color: var(--tenue); font-weight: 500; }
.nw-t6-cal-dia.hoy span { color: var(--sunat); }
.nw-t6-cal-dia.hoy .nw-t6-cal-barra { outline: 1px solid var(--sunat); }
.nw-t6-cal-ley { display: flex; gap: 14px; font-size: .68rem; color: var(--tenue); }
.nw-t6-cal-ley i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 4px; vertical-align: middle; }
.nw-t6-cal-ley i.sire { background: #0891b2; } .nw-t6-cal-ley i.pdt { background: var(--sunat); }
.nw-t6-lista { padding: 0; overflow: hidden; }
.nw-t6-lista-cab { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px 6px; flex-wrap: wrap; }
.nw-t6-lista-cab h3 { margin: 0; font-size: 1rem; } .nw-t6-lista-cab small { color: var(--tenue); font-size: .76rem; }
.nw-gm-buscar.chico { height: 36px; max-width: 320px; flex: 0 1 320px; min-width: 200px; }
.nw-t6-filtros { display: flex; gap: 6px; padding: 6px 16px 10px; overflow-x: auto; }
.nw-t6-filtros button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 15px; border: 1px solid var(--linea); background: none;
  font: inherit; font-size: .78rem; font-weight: 600; color: var(--tenue); cursor: pointer; white-space: nowrap; }
.nw-t6-filtros button b { font-size: .7rem; padding: 0 6px; border-radius: 8px; background: color-mix(in srgb, var(--tenue) 16%, transparent); color: var(--txt); }
.nw-t6-filtros button.err b { background: color-mix(in srgb, var(--err) 14%, transparent); color: var(--err); }
.nw-t6-filtros button.warn b { background: color-mix(in srgb, #d97706 16%, transparent); color: #d97706; }
.nw-t6-filtros button.ok b { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.nw-t6-filtros button.activo { background: var(--sunat); border-color: transparent; color: #fff; }
.nw-t6-filtros button.activo b { background: rgba(255,255,255,.25); color: #fff; }
.nw-t6-tabla-env { border: 0; border-radius: 0; box-shadow: none; border-top: 1px solid var(--linea); }
.nw-t6-tabla tbody td { height: 56px; }
.nw-t6-que { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .8rem; }
.nw-t6-vacio { text-align: center; color: var(--tenue); padding: 28px !important; }
@media (max-width: 1100px) { .nw-t6-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .nw-t6-kpis { grid-template-columns: 1fr; } .nw-t6-kpi.ancha { grid-column: auto; } .nw-t6-cal-barra { height: 40px; } .nw-gm-buscar.chico { flex-basis: 100%; max-width: none; } }
.nw-cfg-sub { margin: 14px 0 2px; font-size: .9rem; }
.nw-t7-mes { height: 38px; } .nw-t7-mes input { width: 140px; }

/* ── Visor del mensaje: una barra de pestañas para las acciones (08/11/2026) ── */
.nw-visor-tabs { display: flex; gap: 4px; margin: 16px 0 0; border-bottom: 1px solid var(--linea); }
.nw-visor-tabs button { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px;
  background: none; font: inherit; font-size: .84rem; font-weight: 600; color: var(--tenue); cursor: pointer; white-space: nowrap; }
.nw-visor-tabs button:hover { color: var(--txt); background: color-mix(in srgb, var(--tenue) 8%, transparent); border-radius: 8px 8px 0 0; }
.nw-visor-tabs button.activo { color: var(--sunat); border-bottom-color: var(--sunat); }
.nw-visor-tabs button b { font-size: .68rem; padding: 1px 7px; border-radius: 9px; background: var(--sunat); color: #fff; }
.nw-visor-panel { padding: 12px 2px 4px; animation: nw-carga-entra .15s ease-out; }
.nw-visor-panel .nw-segui-ayuda { display: block; margin-bottom: 8px; }
@media (max-width: 600px) { .nw-visor-tabs { overflow-x: auto; } .nw-visor-tabs button { padding: 0 10px; font-size: .78rem; } }

/* ── Presentación mensual: vista POR ÍTEM (08/11/2026) ── */
.nw-items-hoja td.nw-item-desc { max-width: 420px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nw-items-hoja tr.nw-item-fila:not(.primera) td { border-top: 0; color: var(--txt); }
.nw-items-hoja tr.nw-item-fila.primera td { border-top: 1px solid var(--linea); }
.nw-items-hoja tr.nw-item-fila.sin td { background: color-mix(in srgb, #d97706 5%, var(--card)); }
.nw-items-hoja tr.nw-item-fila:not(.primera) td:nth-child(-n+3) { background: color-mix(in srgb, var(--tenue) 4%, transparent); }

/* ── 13/11/2026: empresa de trabajo desde cualquier lista · acceso SUNAT con logo en Presentación mensual · pregunta pendiente ── */
.nw-elegible { cursor: pointer; border-radius: 10px; margin: -4px -6px; padding: 4px 6px; transition: background .12s; }
.nw-elegible:hover { background: color-mix(in srgb, var(--primario, #3b82f6) 10%, transparent); }
.nw-elegible:hover b { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--txt, #fff) 40%, transparent); text-underline-offset: 2px; }
.nw-cierre-sunat { display: inline-flex; align-items: center; margin-left: auto; }
.nw-sol-principal.con-logo, .nw-sol-flecha.con-logo { background: #c8102e !important; border-color: #c8102e !important; color: #fff !important; font-weight: 700; }
.nw-sol-principal.con-logo { gap: 7px; padding-left: 9px; }
.nw-sol-principal.con-logo:hover:not(:disabled), .nw-sol-flecha.con-logo:hover:not(:disabled) { background: #a50d26 !important; border-color: #a50d26 !important; }
.nw-sol-principal.con-logo:disabled, .nw-sol-flecha.con-logo:disabled { opacity: .45; }
.nw-sol-logo { height: 13px; width: auto; display: inline-block; vertical-align: middle; }
.nw-sire-pregunta.pendiente { border: 1px solid rgba(245, 158, 11, .65); border-radius: 10px; padding: 8px 10px; background: rgba(245, 158, 11, .08); }
.nw-sire-falta { color: #d97706; font-weight: 600; margin-right: auto; font-size: .78rem; align-self: center; }
.nw-sire-falta.suave { color: var(--tenue); font-weight: 500; }
.nw-vacio-err { max-width: 720px; margin: 0 auto 6px; padding: 8px 12px; border-radius: 10px; background: rgba(239, 68, 68, .1); border: 1px solid rgba(239, 68, 68, .4); }
.nw-vacio-botones { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 4px; }
.nw-vacio-botones .nw-btn { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 900px) { .nw-cierre-sunat .nw-sol-principal span { display: none; } }
/* Paso 3 · botones de envío por fila (13/11/2026) */
.nw-dj-envios { white-space: nowrap; }
.nw-dj-env { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; font-size: .8rem; font-weight: 700; border-radius: 8px; border: 1px solid transparent; }
.nw-dj-env.correo { background: #2563eb; color: #fff; }
.nw-dj-env.correo:hover:not(:disabled) { background: #1d4ed8; }
.nw-dj-env.wa { background: #16a34a; color: #fff; }
.nw-dj-env.wa:hover:not(:disabled) { background: #15803d; }
.nw-dj-env:disabled { opacity: .4; }
.nw-hj-estado .warn { color: #d97706; font-weight: 600; }
/* Pie de totales de la hoja de comprobantes (16/11/2026) */
.nw-sire-pie td { position: sticky; bottom: 0; z-index: 1; background: var(--card); border-top: 2px solid var(--linea); padding: 10px 8px; font-size: 1rem; font-weight: 700; white-space: nowrap; }
.nw-sire-pie .nw-sire-pie-rot { font-size: .78rem; font-weight: 600; color: var(--tenue); text-transform: uppercase; letter-spacing: .04em; text-align: right; }
.nw-sire-pie .nw-sire-pie-total { font-size: 1.1rem; color: var(--txt); }
/* Hoja completa del SIRE (16/11/2026): todas las columnas, numeradas, edición por celda */
.nw-sire-hoja-completa table { table-layout: auto; min-width: 100%; }
.nw-sire-hoja-completa thead th { white-space: nowrap; min-width: 84px; vertical-align: bottom; }
.nw-sire-hoja-completa thead th small { display: block; color: var(--tenue); font-size: .62rem; font-weight: 600; }
.nw-sire-hoja-completa thead th span { font-size: .68rem; }
.nw-sire-hoja-completa td { white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; cursor: cell; font-size: .78rem; padding: 4px 8px; }
.nw-sire-hoja-completa .nw-shc-n { position: sticky; left: 0; z-index: 2; background: var(--card); color: var(--tenue); font-size: .7rem; text-align: right; min-width: 38px; cursor: default; }
.nw-sire-hoja-completa thead th.nw-shc-n { z-index: 3; }
.nw-sire-hoja-completa td.nw-shc-cambiada { background: rgba(245, 158, 11, .16); }
.nw-sire-hoja-completa td.nw-fila-acciones { cursor: default; }
.nw-shc-input { width: 100%; min-width: 90px; font: inherit; font-size: .78rem; padding: 2px 4px; border: 1px solid #3b82f6; border-radius: 4px; background: var(--card); color: var(--txt); outline: 0; }
.nw-shc-cuenta { align-self: center; white-space: nowrap; }
.nw-shc-form { display: grid; gap: 10px; }
.nw-shc-form label { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; }
.nw-shc-form label.nw-check { flex-direction: row; align-items: center; }
.nw-sire-ref { display: block; color: var(--tenue); font-size: .72rem; }
.nw-hj-subir { position: relative; overflow: hidden; cursor: pointer; display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 5px; white-space: nowrap; font-size: .8rem; font-weight: 600; line-height: 1; }
.nw-hj-subir input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.nw-shc-pie td { font-size: .9rem; padding: 8px; }
.nw-shc-pie td.nw-sire-pie-rot { text-align: left; white-space: nowrap; }
.nw-shc-pie td.nw-shc-n { z-index: 3; }
/* IGV Justo en la liquidación (16/11/2026) */
.nw-liq-justo { margin: 10px 4px 2px; padding: 10px 12px; border: 1px solid var(--linea); border-radius: 10px; display: grid; gap: 6px; font-size: .84rem; }
.nw-liq-justo.si { border-color: rgba(217, 119, 6, .55); background: rgba(245, 158, 11, .07); }
.nw-liq-justo > b { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--tenue); }
.nw-liq-justo .nw-sire-opciones { margin-top: 2px; }
.nw-liq-justo a { color: inherit; font-weight: 600; }
.nw-kpi small.warn { color: #d97706; font-weight: 600; }
/* Liquidación con el diseño del Declara Fácil 621 (16/11/2026): concepto | [cas][importe] | [cas][IGV] */
.nw-liq-tabla td.nw-liq-con { width: 100%; }
.nw-liq-tabla td.nw-liq-caja { white-space: nowrap; text-align: right; padding-left: 6px !important; padding-right: 6px !important; }
.nw-liq-caja .nw-cas { display: inline-block; vertical-align: middle; min-width: 38px; text-align: center; padding: 0 7px; height: 28px; line-height: 26px;
    background: var(--gris-bg); border: 1px solid var(--linea); border-right: 0; border-radius: 6px 0 0 6px; font-size: .74rem; color: var(--tenue); font-variant-numeric: tabular-nums; }
.nw-liq-caja .nw-liq-num { display: inline-block; vertical-align: middle; width: 128px; height: 28px; border-radius: 0 6px 6px 0; margin: 0; }
.nw-liq-caja .nw-liq-val { display: inline-block; vertical-align: middle; width: 128px; height: 28px; line-height: 26px; padding: 0 8px; text-align: right;
    background: color-mix(in srgb, var(--tenue) 12%, var(--card)); border: 1px solid var(--linea); border-radius: 0 6px 6px 0; font-variant-numeric: tabular-nums; }
.nw-liq-caja .nw-liq-val.total { font-weight: 700; color: var(--txt); }
.nw-liq-tot td { background: transparent; }
.nw-liq-tot td.nw-liq-con { font-weight: 700; }
.nw-cierre-panel .nw-liq-caja .nw-cas, .nw-cierre-panel .nw-liq-caja .nw-liq-val, .nw-cierre-panel .nw-liq-caja .nw-liq-num { height: 26px; line-height: 24px; }
/* Resumen del pago con el saldo de detracciones (17/11/2026) */
.nw-liq-pago { margin-top: 16px; }
.nw-liq-pago .nw-liq-pago-nota { display: block; font-weight: 400; font-size: .74rem; color: #d97706; }
.nw-liq-pago .nw-liq-num::placeholder { color: var(--tenue); font-size: .78rem; }
.nw-liq-pago .nw-liq-efectivo td.nw-liq-con { color: var(--sunat); font-size: .95rem; }
.nw-liq-pago .nw-liq-efectivo .nw-liq-val.total { color: #fff; background: var(--sunat); border-color: var(--sunat); font-size: .98rem; }
.nw-liq-pago > .nw-chico { margin-top: 6px; }
@media (max-width: 760px) { .nw-liq-pago .nw-liq-caja .nw-liq-val, .nw-liq-pago .nw-liq-caja .nw-liq-num { width: 104px; } }
/* Visor por comprobante y descargas rápidas (17/11/2026) */
.nw-arch-grupo { display: inline-flex; align-items: center; gap: 3px; margin-right: 8px; padding-right: 8px; border-right: 1px solid var(--linea); }
.nw-arch-grupo .nw-arch { font-size: .68rem; padding: 1px 6px; }
.nw-shc-acc { white-space: nowrap; cursor: default; }
.nw-shc-desc { max-width: 320px !important; cursor: pointer; }
.nw-shc-placa { font-weight: 600; letter-spacing: .03em; }
.nw-sire-placa { white-space: nowrap; }
.nw-dsc-rapido { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
/* Barra de la hoja de comprobantes en dos filas (17/11/2026) */
.nw-hj2 { flex-direction: column; align-items: stretch; gap: 6px; }
.nw-hj2 .nw-hj-fila { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nw-hj2 .nw-hj2-buscar { flex: 1 1 220px; min-width: 180px; max-width: 420px; }
.nw-hj2 .nw-hj-der { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.nw-hj2 .nw-hj-crece { flex: 1 1 auto; }
.nw-hj2 .nw-hj-acc { gap: 6px; flex-wrap: wrap; }
.nw-hj2 .nw-hj-ico { height: 28px; width: 28px; display: inline-grid; place-items: center; border: 1px solid var(--linea); border-radius: 7px; background: var(--card); }
.nw-hj-lista-filtros { width: 320px; }
.nw-hj-lista button.nw-hj-fi { display: flex; align-items: center; gap: 10px; width: 100%; }
.nw-hj-fi .nw-hj-fi-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.nw-hj-cnt { min-width: 28px; padding: 1px 8px; border-radius: 999px; background: var(--gris-bg); color: var(--txt); font-size: .74rem; font-weight: 700; text-align: center; }
.nw-hj-cnt.err { background: var(--err-bg); color: var(--err); } .nw-hj-cnt.warn { background: var(--warn-bg); color: var(--warn); }
.nw-hj-cnt.ok { background: var(--ok-bg); color: var(--ok); } .nw-hj-cnt.info { background: var(--sunat-suave); color: var(--sunat); }
.nw-hj-lista button.activo { background: var(--sunat-suave); }
.nw-hj-lista label.nw-hj-subir-item { position: relative; overflow: hidden; display: flex !important; flex-direction: column !important; gap: 0; padding: 6px 10px; border-radius: 7px; cursor: pointer; font-size: inherit; }
.nw-hj-lista label.nw-hj-subir-item:hover { background: var(--hover); }
.nw-hj-lista label.nw-hj-subir-item b { font-size: .84rem; } .nw-hj-lista label.nw-hj-subir-item small { font-size: .72rem; color: var(--tenue); font-weight: 400; }
.nw-hj-lista label.nw-hj-subir-item input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.nw-hj-lista.nw-hj-lista-izq { left: 0; right: auto; }
/* Secuencia del SIRE (17/11/2026) */
.nw-sp { display: inline-flex; align-items: center; gap: 3px; margin-right: 4px; }
.nw-sp-i { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 999px; background: var(--gris-bg); color: var(--tenue); font-size: .7rem; font-weight: 700; white-space: nowrap; }
.nw-sp-i em { font-style: normal; font-weight: 600; }
.nw-sp-i.hecho { background: var(--ok-bg); color: var(--ok); }
.nw-sp-i.actual { background: var(--sunat-suave); color: var(--sunat); outline: 1px solid var(--sunat); }
@media (max-width: 1500px) { .nw-sp-i:not(.actual) em { display: none; } }
.nw-hj-lista-sire { width: 360px; }
.nw-hj-lista-tit { font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tenue); padding: 8px 10px 2px; }
.nw-hj-lista-tit:first-child { padding-top: 4px; }
.nw-hj-lista-sol { display: flex; flex-direction: column; gap: 4px; padding: 6px 10px 8px; }
.nw-hj-lista-sol small { font-size: .72rem; color: var(--tenue); }
.nw-hj-lista button:disabled { opacity: .45; cursor: default; }
/* Estado del ticket del SIRE (17/11/2026) */
.nw-hj-estado .nw-ticket { padding: 3px 10px !important; border-radius: 999px; font-weight: 500; }
.nw-hj-estado .nw-ticket.warn { background: var(--warn-bg) !important; color: var(--warn); }
.nw-hj-estado .nw-ticket.ok { background: var(--ok-bg) !important; color: var(--ok); }
.nw-hj-estado .nw-ticket.err { background: var(--err-bg) !important; color: var(--err); }
.nw-hj-estado .nw-hj-btn { height: 26px; font-size: .76rem; }
.nw-sp-nota { white-space: nowrap; }
/* IGV Justo en el tablero (17/11/2026) */
.nw-t6-justo { border-top: 1px dashed var(--linea); padding-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.nw-t6-justo-cab { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: .72rem; font-weight: 700; color: var(--info); }
.nw-t6-justo-cab b { font-variant-numeric: tabular-nums; }
.nw-t6-justo ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.nw-t6-justo li { display: grid; grid-template-columns: minmax(0, 1fr) auto 44px; align-items: center; gap: 8px; font-size: .74rem; }
.nw-t6-justo li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nw-t6-justo li small { color: var(--tenue); white-space: nowrap; }
.nw-t6-justo li em { font-style: normal; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; color: var(--info); }
.nw-ij-cab { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.nw-ij-seg { display: inline-flex; border: 1px solid var(--linea); border-radius: 999px; overflow: hidden; }
.nw-ij-seg button { border: 0; background: transparent; padding: 5px 12px; font-size: .78rem; font-weight: 600; color: var(--tenue); cursor: pointer; }
.nw-ij-seg button.activa { background: var(--sunat); color: #fff; }
.nw-ij-obs { display: block; font-size: .7rem; color: var(--tenue); max-width: 260px; white-space: normal; }
