/* ============================================================
   /contabilidad — sobre brand.css + producto.css
   Filas texto + UI y las pantallas recreadas del módulo.
   ============================================================ */

.p-hero__price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 18px; font-size: 15px; color: var(--muted); }
.p-hero__price s { font-size: 15px; }
.p-hero__price b { font-family: var(--ff-display); font-weight: 600; font-size: 26px; color: var(--ink); }
.p-hero__price .chip { font-size: 12px; }

/* Filas: texto a un lado, pantalla al otro */
.c-row { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
.c-row + .c-row { margin-top: 88px; }
.c-row--flip > :first-child { order: 2; }
.c-row h3 { font-size: clamp(24px, 2.6vw, 30px); margin: 10px 0 12px; }
.c-row p { color: var(--muted); line-height: 1.6; }
.c-row .prod__list, .c-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.c-list li { display: flex; gap: 10px; line-height: 1.5; }
.c-list li::before { content: '✓'; color: var(--blue); font-weight: 600; }
@media (max-width: 1023px) {
  .c-row { grid-template-columns: 1fr; gap: 32px; }
  .c-row--flip > :first-child { order: 0; }
}

/* Fuentes: tres columnas de lo que se procesa */
.c-sources { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.c-source { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; }
.c-source h3 { font-size: 20px; margin-bottom: 6px; }
.c-source > p { color: var(--muted); font-size: 14px; line-height: 1.5; margin-bottom: 16px; }
.c-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.c-pills span { font-size: 13px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); white-space: nowrap; }
@media (max-width: 1023px) { .c-sources { grid-template-columns: 1fr; } }

/* Precio y activación */
.c-price { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.c-price .p-price { max-width: none; }
.c-price__old { font-family: var(--ff-body); font-weight: 400; font-size: 20px; color: var(--muted); margin-right: 8px; }
.c-activate { background: var(--blue-soft); border-radius: var(--radius-lg); padding: 32px; }
.c-activate h3 { font-size: 22px; margin-bottom: 14px; }
.c-activate ol { padding-left: 20px; display: grid; gap: 12px; line-height: 1.5; }
.c-activate .fine { margin-top: 20px; font-size: 14px; color: var(--muted); }
.c-activate a { color: var(--blue); }
@media (max-width: 1023px) { .c-price { grid-template-columns: 1fr; } }

/* ---------- Pantallas recreadas ---------- */
.ui--app { font-size: 12.5px; }
.app { display: grid; grid-template-columns: 168px 1fr; min-height: 320px; }
.app__side { border-right: 1px solid var(--line); padding: 14px 10px; background: #FBFAF7; }
.app__group { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 12px 8px 6px; }
.app__group:first-child { margin-top: 0; }
.app__item { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px; border-radius: 7px; color: var(--ink); white-space: nowrap; }
.app__item.is-active { background: var(--blue-soft); color: var(--blue); font-weight: 500; }
.app__dot { width: 6px; height: 6px; border-radius: 50%; background: #7C6CF2; }
.app__dot--warn { background: #E8A33B; }
.app__main { padding: 16px; min-width: 0; overflow-x: auto; }
.app__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.app__title { font-family: var(--ff-display); font-weight: 600; font-size: 15px; }
.app__btn { font-size: 11.5px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); white-space: nowrap; }
.app__btn--primary { background: var(--blue); border-color: var(--blue); color: var(--white); }
@media (max-width: 640px) { .app { grid-template-columns: 1fr; } .app__side { display: none; } }

/* Drag & drop */
.drop { border: 1.5px dashed #AFC0DE; border-radius: 12px; background: #F6F8FC; padding: 22px; text-align: center; color: var(--muted); }
.drop b { display: block; color: var(--ink); font-weight: 500; font-size: 14px; margin: 8px 0 2px; }
.drop svg { color: var(--blue); }
.drop.is-over { border-color: var(--blue); background: var(--blue-soft); }
.files { margin-top: 14px; display: grid; gap: 8px; }
.file { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.file__name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file__meta { display: block; color: var(--muted); font-size: 11.5px; font-weight: 400; }
.file__bar { height: 4px; border-radius: 99px; background: var(--blue-soft); overflow: hidden; margin-top: 6px; }
.file__bar i { display: block; height: 100%; width: 62%; background: var(--blue); }

/* Chips de estado extra */
.chip--warn { background: #FDF3E1; color: #9A5B06; }
.chip--err { background: #FDECEC; color: #B42318; }
.chip--muted { background: #EEF0F4; color: var(--muted); }

/* Plan de cuentas: niveles */
.ui__table .lvl-1 { font-weight: 600; }
.ui__table .lvl-2 td:first-child { padding-left: 22px; }
.ui__table .lvl-3 td:first-child { padding-left: 40px; }
.ui__table .code { font-family: var(--ff-mono); color: var(--muted); }

/* Bancos: tarjetas de cuentas arriba */
.banks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.bank { border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; white-space: nowrap; }
.bank.is-active { border-color: var(--blue); background: #F6F8FC; }
.bank small { display: block; color: var(--muted); font-size: 11px; }
.bank b { font-family: var(--ff-mono); font-weight: 500; }
.neg { color: #B42318; }

/* Cobertura: grilla de meses */
.cov { width: 100%; border-collapse: collapse; }
.cov th, .cov td { padding: 7px 4px; border-bottom: 1px solid #F0EEE8; text-align: center; white-space: nowrap; }
.cov th { color: var(--muted); font-weight: 500; font-size: 11.5px; }
.cov th:first-child, .cov td:first-child { text-align: left; padding-right: 12px; }
.cov .cov__group td { background: #F4F5F8; color: var(--muted); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; text-align: left; }
.st { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 11px; line-height: 1; }
.st--ok { background: var(--green-soft); color: #16A34A; }
.st--err { background: #FDECEC; color: #DC2626; }
.st--wait { background: #FDF3E1; color: #D97706; }
.st--none { background: #EEF0F4; color: #9AA1AE; }
.app__note { color: var(--muted); font-size: 12px; line-height: 1.5; margin-bottom: 12px; max-width: 520px; }
.app__tabs { display: flex; gap: 16px; border-bottom: 1px solid var(--line); margin-bottom: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.app__tabs span { padding: 0 0 8px; }
.app__tabs .is-active { color: var(--ink); font-weight: 500; box-shadow: inset 0 -2px 0 var(--blue); }
.app__field { font-size: 11.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 7px; padding: 5px 10px; white-space: nowrap; }
.app__field em { font-style: normal; color: #9AA1AE; margin-left: 6px; }
.app__search { font-size: 11.5px; color: #9AA1AE; border: 1px solid var(--line); border-radius: 7px; padding: 5px 10px; min-width: 170px; }
.ui__table td.file__name { font-weight: 500; }
.tree .code { margin-right: 6px; }
.ui__table .muted { color: var(--muted); }

/* Íconos lucide */
.i { width: 14px; height: 14px; flex: none; }
.drop .i { display: block; width: 24px; height: 24px; margin: 0 auto; }
.app__item > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.app__item .i { color: var(--muted); }
.app__item.is-active .i { color: var(--blue); }
.st .i { width: 12px; height: 12px; stroke-width: 2.4; }

/* Cobertura: texto arriba, grilla a todo el ancho */
.c-row--wide { grid-template-columns: 1fr; gap: 28px; }
.c-row--wide > div:first-child { max-width: 640px; }
.c-row--wide .cov td, .c-row--wide .cov th { padding: 8px 6px; }
@media (max-width: 640px) {
  .file__name { white-space: normal; }
  .banks { grid-template-columns: repeat(3, minmax(150px, 1fr)); }
}
