/* infoSAT 0.1.14 — "carpeta contable": tinta sobre papel, números tabulares, la línea de tiempo como columna vertebral.
   El despacho redefine --marca (y --marca-2) desde Marca del despacho. */

/* ───── Tokens ───── */
:root {
  --marca: #1C2B4A;
  --marca-2: #1C2B4A;
  --papel: #F4F6F9;
  --hoja: #FFFFFF;
  --grafito: #1F2633;
  --lapiz: #5B6474;
  --renglon: #E2E7EE;
  --renglon-2: #CDD5E0;
  --ok: #1E7F5C;
  --alerta: #A86400;
  --error: #B3261E;
  --info: #2D5BBA;
  --marca-suave: color-mix(in srgb, var(--marca) 9%, var(--hoja));
  --marca-texto: var(--marca);
  --radio: 10px;
  --radio-sm: 7px;
  --bs-font-sans-serif: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --bs-body-font-size: .9375rem;
  --bs-body-bg: var(--papel);
  --bs-body-color: var(--grafito);
  --bs-secondary-color: var(--lapiz);
  --bs-tertiary-bg: var(--papel);
  --bs-border-color: var(--renglon);
  --bs-link-color-rgb: 28, 43, 74;
  --bs-primary: var(--marca);
  --bs-success: var(--ok);
  --bs-danger: var(--error);
  --bs-warning: var(--alerta);
  --bs-border-radius: var(--radio-sm);
  --bs-card-border-radius: var(--radio);
}
:root[data-bs-theme="dark"] {
  --papel: #10151F;
  --hoja: #171E2B;
  --grafito: #E5E9F0;
  --lapiz: #9AA4B5;
  --renglon: #263042;
  --renglon-2: #34405A;
  --ok: #4CC08F;
  --alerta: #E3A23B;
  --error: #F07A72;
  --info: #7FA4F0;
  --marca-suave: color-mix(in srgb, var(--marca) 30%, var(--hoja));
  --marca-texto: color-mix(in srgb, var(--marca) 35%, #FFFFFF);
  --bs-body-bg: var(--papel);
  --bs-body-color: var(--grafito);
  --bs-secondary-color: var(--lapiz);
  --bs-tertiary-bg: var(--papel);
  --bs-border-color: var(--renglon);
  --bs-link-color-rgb: 170, 190, 235;
}

/* ───── Base ───── */
body { font-family: var(--bs-font-sans-serif); background: var(--papel); color: var(--grafito); font-feature-settings: "tnum" 1, "cv11" 1; -webkit-font-smoothing: antialiased; }
a { color: var(--marca-texto); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--marca-texto); }
.text-mono, .rfc { font-variant-numeric: tabular-nums; letter-spacing: .02em; font-weight: 600; }
.small, small { font-size: .8125rem; }
.text-body-secondary { color: var(--lapiz) !important; }
:focus-visible { outline: 2px solid var(--marca-texto); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Títulos de página: el documento empieza por su nombre */
.app-content h1.h4, .app-content h1.h5, .portal-main h1.h4 { font-size: 1.5rem; font-weight: 700; letter-spacing: -.015em; color: var(--grafito); }
.app-content .card-title.h6, .app-content h2.h6 { font-size: .9375rem; font-weight: 650; letter-spacing: -.005em; }

/* ───── Estructura AdminLTE ───── */
.app-wrapper { background: var(--papel); }
.app-header { background: var(--papel) !important; border-bottom: 1px solid var(--renglon); box-shadow: none; min-height: 56px; }
.app-header .nav-link { color: var(--lapiz); }
.app-header .titulo-pagina { color: var(--grafito); font-weight: 600; }
.app-header .brand-mono { width: 32px; height: 32px; font-size: .8rem; }

.app-sidebar { background: var(--hoja) !important; border-right: 1px solid var(--renglon); box-shadow: none !important; --lte-sidebar-width: 252px; }
.app-sidebar .sidebar-brand { border-bottom: 1px solid var(--renglon); height: auto; min-height: 64px; padding: 12px 16px; justify-content: flex-start; }
.app-sidebar .brand-link { display: flex; align-items: center; gap: 10px; color: var(--grafito); text-decoration: none; padding: 0; }
.app-sidebar .brand-logo { width: 34px; height: 34px; border-radius: 8px; object-fit: contain; background: #fff; border: 1px solid var(--renglon); padding: 3px; flex: 0 0 auto; }
.brand-mono { width: 34px; height: 34px; border-radius: 8px; background: var(--marca); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .95rem; flex: 0 0 auto; }
.app-sidebar .brand-text { font-weight: 650; font-size: .95rem; line-height: 1.15; white-space: normal; }
.app-sidebar .brand-text small { display: block; font-weight: 400; color: var(--lapiz); font-size: .75rem; }
.app-sidebar .sidebar-wrapper { padding: 10px 10px 24px; }
.app-sidebar .nav-header { color: var(--lapiz) !important; font-size: .75rem; font-weight: 600; padding: 16px 12px 6px; letter-spacing: 0; text-transform: none; }
.app-sidebar .sidebar-menu .nav-link { color: var(--grafito) !important; border-radius: var(--radio-sm); padding: 7px 12px; margin: 1px 0; font-size: .9rem; position: relative; }
.app-sidebar .sidebar-menu .nav-link .nav-icon { color: var(--lapiz); font-size: 1.05rem; }
.app-sidebar .sidebar-menu .nav-link:hover { background: var(--papel) !important; }
.app-sidebar .sidebar-menu .nav-link.active { background: var(--marca-suave) !important; color: var(--marca-texto) !important; font-weight: 600; box-shadow: none; }
.app-sidebar .sidebar-menu .nav-link.active .nav-icon { color: var(--marca-texto); }
.app-sidebar .sidebar-menu .nav-link.active::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--marca); }
.app-sidebar .sidebar-menu .nav-link.disabled { color: var(--lapiz) !important; opacity: .6; }

.app-main { background: var(--papel); }
.app-content { padding-top: 1.25rem; padding-bottom: 2rem; }
.app-content > .container-fluid { max-width: 1320px; }
.app-footer { background: transparent; border-top: 1px solid var(--renglon); color: var(--lapiz); }

/* ───── Superficies ───── */
.card { background: var(--hoja); border: 1px solid var(--renglon); border-radius: var(--radio); box-shadow: none; --bs-card-cap-bg: transparent; }
.card-header { background: transparent; border-bottom: 1px solid var(--renglon); padding: .8rem 1rem; }
.card-footer { background: transparent; border-top: 1px solid var(--renglon); }
.card .list-group-item { background: transparent; border-color: var(--renglon); }
.card.card-body { padding: 1rem; }

/* Tablas: renglones de libro */
.table { --bs-table-bg: transparent; --bs-table-hover-bg: var(--marca-suave); color: var(--grafito); margin-bottom: 0; }
.table > thead th { font-size: .75rem; font-weight: 600; color: var(--lapiz); border-bottom: 1px solid var(--renglon-2); padding-top: .7rem; padding-bottom: .55rem; white-space: nowrap; background: var(--hoja); }
.table > tbody td { border-color: var(--renglon); padding-top: .65rem; padding-bottom: .65rem; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Botones e insumos */
.btn { border-radius: var(--radio-sm); font-weight: 600; font-size: .875rem; padding: .45rem .9rem; }
.btn-sm { font-size: .8125rem; padding: .3rem .65rem; }
.btn-primary {
  --bs-btn-bg: var(--marca); --bs-btn-border-color: var(--marca); --bs-btn-color: #fff;
  --bs-btn-hover-bg: color-mix(in srgb, var(--marca) 86%, #000); --bs-btn-hover-border-color: color-mix(in srgb, var(--marca) 86%, #000);
  --bs-btn-active-bg: color-mix(in srgb, var(--marca) 76%, #000); --bs-btn-active-border-color: color-mix(in srgb, var(--marca) 76%, #000);
  --bs-btn-disabled-bg: var(--marca); --bs-btn-disabled-border-color: var(--marca);
}
.btn-outline-primary { --bs-btn-color: var(--marca-texto); --bs-btn-border-color: var(--renglon-2); --bs-btn-hover-bg: var(--marca-suave); --bs-btn-hover-color: var(--marca-texto); --bs-btn-hover-border-color: var(--marca); --bs-btn-active-bg: var(--marca-suave); --bs-btn-active-color: var(--marca-texto); }
.btn-outline-secondary { --bs-btn-color: var(--grafito); --bs-btn-border-color: var(--renglon-2); --bs-btn-hover-bg: var(--papel); --bs-btn-hover-color: var(--grafito); --bs-btn-hover-border-color: var(--renglon-2); }
.form-control, .form-select { border-color: var(--renglon-2); border-radius: var(--radio-sm); background-color: var(--hoja); color: var(--grafito); font-size: .9rem; }
.form-control:focus, .form-select:focus { border-color: var(--marca); box-shadow: 0 0 0 3px color-mix(in srgb, var(--marca) 18%, transparent); }
.form-label { font-weight: 600; font-size: .8125rem; color: var(--grafito); margin-bottom: .3rem; }
.form-text { color: var(--lapiz); }
.form-check-input { width: 1.15em; height: 1.15em; border: 1.5px solid var(--lapiz); background-color: var(--hoja); }
.form-check-input:checked { background-color: var(--marca); border-color: var(--marca); }
.form-check:not(.form-switch) .form-check-input[type=checkbox]:checked { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m5 10 3.5 3.5L15 6.5'/%3e%3c/svg%3e"); background-size: 100% 100%; }
[data-bs-theme="dark"] .form-check-input:checked { border-color: var(--marca-texto); box-shadow: 0 0 0 1px var(--marca-texto); }
.form-switch .form-check-input { width: 2.1em; }
/* Condiciones comerciales elegidas */
.cond-lista { list-style: none; counter-reset: cond; padding: 0; margin: 0 0 .5rem; }
.cond-item { counter-increment: cond; display: flex; align-items: center; gap: .5rem; padding: .4rem .6rem; border: 1px solid var(--renglon); border-radius: var(--radio-sm); background: var(--hoja); margin-bottom: .35rem; font-size: .875rem; }
.cond-item::before { content: counter(cond) ")"; font-weight: 600; color: var(--lapiz); min-width: 1.4em; }
.cond-item .bi-check2-circle { color: var(--ok); }
.input-group-text { background: var(--papel); border-color: var(--renglon-2); color: var(--lapiz); font-size: .85rem; }

/* Alertas sobrias: barra de color a la izquierda */
.alert { border: 1px solid var(--renglon); border-left-width: 4px; background: var(--hoja); color: var(--grafito); border-radius: var(--radio-sm); font-size: .9rem; }
.alert-success { border-left-color: var(--ok); }
.alert-danger { border-left-color: var(--error); }
.alert-warning { border-left-color: var(--alerta); }
.alert-info { border-left-color: var(--info); }

/* Estados con texto + punto de color (no dependen solo del color) */
.badge { font-weight: 600; font-size: .75rem; border-radius: 999px; padding: .3em .65em; }
.text-bg-success, .text-bg-danger, .text-bg-warning, .text-bg-info, .text-bg-secondary, .text-bg-light {
  background: var(--papel) !important; color: var(--grafito) !important; border: 1px solid var(--renglon-2);
}
.text-bg-success::before, .text-bg-danger::before, .text-bg-warning::before, .text-bg-info::before, .text-bg-secondary::before {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; background: var(--lapiz);
}
.text-bg-success::before { background: var(--ok); }
.text-bg-danger::before { background: var(--error); }
.text-bg-warning::before { background: var(--alerta); }
.text-bg-info::before { background: var(--info); }

/* Indicadores: una sola franja, no tarjetas sueltas */
.franja { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); background: var(--hoja); border: 1px solid var(--renglon); border-radius: var(--radio); margin-bottom: 1rem; }
.franja > div { padding: .9rem 1.1rem; border-right: 1px solid var(--renglon); }
.franja > div:last-child { border-right: 0; }
.franja .etq { font-size: .8rem; color: var(--lapiz); }
.franja .val { font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.franja .val small { font-size: .85rem; font-weight: 500; color: var(--lapiz); }
.franja a { font-size: .8rem; }
@media (max-width: 575.98px) { .franja > div { border-right: 0; border-bottom: 1px solid var(--renglon); } .franja > div:last-child { border-bottom: 0; } }
/* Compatibilidad con vistas anteriores */
.kpi { border: 1px solid var(--renglon); }
.kpi .valor { font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; }

/* ───── Línea de tiempo: la columna vertebral ───── */
.tl { position: relative; }
.tl-dia { position: relative; padding-left: 92px; margin-bottom: .5rem; }
.tl-fecha { position: absolute; left: 0; top: .1rem; width: 76px; text-align: right; font-size: .78rem; color: var(--lapiz); line-height: 1.2; }
.tl-fecha b { display: block; font-size: 1.15rem; color: var(--grafito); font-weight: 700; letter-spacing: -.01em; }
.tl-dia::before { content: ""; position: absolute; left: 86px; top: 0; bottom: -.5rem; width: 2px; background: var(--renglon); }
.tl-ev { position: relative; padding: .55rem .9rem .6rem; margin-bottom: .4rem; background: var(--hoja); border: 1px solid var(--renglon); border-radius: var(--radio-sm); }
.tl-ev::before { content: ""; position: absolute; left: -5px; top: .95rem; width: 10px; height: 10px; border-radius: 50%; background: var(--hoja); border: 2px solid var(--lapiz); transform: translateX(-50%); }
.tl-ev.ok::before { border-color: var(--ok); background: var(--ok); }
.tl-ev.alerta::before { border-color: var(--alerta); background: var(--alerta); }
.tl-ev.info::before { border-color: var(--info); }
.tl-ev .tl-tit { font-weight: 600; font-size: .9rem; display: flex; gap: .5rem; align-items: baseline; }
.tl-ev .tl-tit i { color: var(--lapiz); }
.tl-ev .tl-meta { font-size: .78rem; color: var(--lapiz); margin-top: 2px; }
.tl-ev .tl-det { font-size: .85rem; margin-top: 3px; white-space: pre-line; }
.tl-ev.interna { background: repeating-linear-gradient(-45deg, var(--hoja), var(--hoja) 8px, var(--papel) 8px, var(--papel) 16px); }
.tl-vacia { color: var(--lapiz); font-size: .9rem; padding: 1rem 0; }
@media (max-width: 575.98px) { .tl-dia { padding-left: 18px; } .tl-fecha { position: static; width: auto; text-align: left; margin-bottom: .3rem; } .tl-fecha b { display: inline; font-size: .95rem; margin-right: 4px; } .tl-dia::before { left: 4px; } .tl-ev::before { left: -13px; } }

/* Semáforo de vigencia (expediente) */
.vig { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; white-space: nowrap; }
.vig::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lapiz); }
.vig.ok::before { background: var(--ok); }
.vig.alerta::before { background: var(--alerta); }
.vig.error::before { background: var(--error); }
.vig.falta { color: var(--lapiz); }
.vig.falta::before { background: transparent; border: 1.5px dashed var(--lapiz); }

/* Estado de cuenta */
.libro td.cargo { color: var(--grafito); }
.libro td.abono { color: var(--ok); }
.libro tr.cancelado td { color: var(--lapiz); text-decoration: line-through; }
.saldo-grande { font-size: 2rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* Barra de clima/tipo de cambio: toma la marca y el tema */
.hub-strip { --red: var(--marca); --red-text: var(--marca-texto); --panel: var(--hoja); --ink: var(--grafito);
  --line: var(--renglon); --line-2: var(--renglon-2); --muted: var(--lapiz); --soft: var(--lapiz); margin: 0 0 1rem; border-top-width: 1px; border-radius: var(--radio); }

/* ───── Acceso (login) ───── */
.acceso { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 480px); background: var(--papel); }
.acceso-lado { background: var(--marca); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.acceso-lado .marca-txt { font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; }
.acceso-lado .marca-txt i { margin-right: 6px; }
.acceso-lado h2 { font-size: 2.1rem; font-weight: 700; letter-spacing: -.025em; line-height: 1.15; max-width: 16ch; margin: 0 0 .75rem; }
.acceso-lado p { color: rgba(255,255,255,.75); max-width: 42ch; margin: 0; }
/* Calendario del mes: el 17 es el día que importa */
.cal { display: grid; grid-template-columns: repeat(7, 34px); gap: 6px; margin: 2rem 0; }
.cal span { height: 34px; border-radius: 6px; display: grid; place-items: center; font-size: .8rem; color: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.12); }
.cal span.hoy { color: #fff; border-color: rgba(255,255,255,.6); }
.cal span.limite { background: #fff; color: var(--marca); font-weight: 700; border-color: #fff; }
.cal span.vacio { border: 0; }
.cal-nota { font-size: .85rem; color: rgba(255,255,255,.7); }
.acceso-form { display: flex; align-items: center; justify-content: center; padding: 32px 20px; }
.acceso-form .caja { width: 100%; max-width: 380px; }
.acceso-form h1 { font-size: 1.5rem; font-weight: 700; letter-spacing: -.015em; margin-bottom: .25rem; }
.acceso-form .sub { color: var(--lapiz); margin-bottom: 1.5rem; }
@media (max-width: 860px) { .acceso { grid-template-columns: 1fr; } .acceso-lado { padding: 28px 24px; } .acceso-lado h2 { font-size: 1.5rem; } .cal { display: none; } }

/* Compatibilidad: diseño anterior de login */
.login-box { width: min(420px, calc(100% - 32px)); }

/* ───── Portal ───── */
.portal-nav { background: var(--hoja); border-bottom: 1px solid var(--renglon); }
.portal-nav .navbar-brand { color: var(--grafito); font-weight: 650; }
.portal-nav .nav-link { color: var(--lapiz); font-weight: 500; border-radius: var(--radio-sm); padding: .4rem .75rem; }
.portal-nav .nav-link.active { color: var(--marca-texto); background: var(--marca-suave); font-weight: 600; }
.portal-main { max-width: 1040px; }

/* Varios */
.qr { display: inline-block; background: #fff; padding: 8px; border-radius: 8px; border: 1px solid var(--renglon); }
.qr svg, .qr img { display: block; width: 180px; height: 180px; }
.codigos { font-variant-numeric: tabular-nums; font-size: 1.05rem; columns: 2; font-weight: 600; }
.paso-wizard .paso { flex: 1; text-align: center; font-size: .8rem; color: var(--lapiz); position: relative; }
.paso-wizard .paso:not(:last-child)::after { content: ""; position: absolute; top: 15px; left: calc(50% + 20px); right: calc(-50% + 20px); height: 2px; background: var(--renglon); }
.paso-wizard .paso.hecho:not(:last-child)::after { background: var(--marca); }
.paso-wizard .paso .num { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; align-items: center; justify-content: center; border: 2px solid var(--renglon-2); background: var(--hoja); font-weight: 700; margin-bottom: 4px; }
.paso-wizard .paso.hecho .num { background: var(--marca); border-color: var(--marca); color: #fff; }
.paso-wizard .paso.actual .num { border-color: var(--marca); color: var(--marca-texto); }
.paso-wizard .paso.actual { color: var(--grafito); font-weight: 600; }
.fila + .fila { border-top: 1px dashed var(--renglon-2); padding-top: .75rem; margin-top: .75rem; }
.detalle-json { max-width: 420px; white-space: pre-wrap; word-break: break-word; font-size: .75rem; }
.estado { font-size: .75rem; font-weight: 600; }
.dropdown-menu { border-color: var(--renglon); border-radius: var(--radio-sm); box-shadow: 0 8px 24px rgba(16, 24, 40, .08); font-size: .9rem; }
@media (max-width: 575.98px) { .paso-wizard .paso .txt { display: none; } .paso-wizard .paso:not(:last-child)::after { left: calc(50% + 18px); right: calc(-50% + 18px); } }

/* ───── Cierre mensual ───── */
progress.avance { display: block; width: 120px; height: 6px; border: 0; border-radius: 3px; background: var(--renglon); overflow: hidden; appearance: none; margin-bottom: 2px; }
progress.avance::-webkit-progress-bar { background: var(--renglon); border-radius: 3px; }
progress.avance::-webkit-progress-value { background: var(--marca); border-radius: 3px; }
progress.avance::-moz-progress-bar { background: var(--marca); border-radius: 3px; }
progress.avance.completo::-webkit-progress-value { background: var(--ok); }
progress.avance.completo::-moz-progress-bar { background: var(--ok); }
progress.avance.ancho { width: 100%; height: 8px; }
.lista-mes { list-style: none; margin: 0; padding: 0; }
.lista-mes > li { display: flex; gap: .75rem; align-items: flex-start; padding: .7rem 1rem; border-top: 1px solid var(--renglon); }
.lista-mes > li:first-child { border-top: 0; }
.lista-mes .marca { flex: 0 0 22px; height: 22px; border-radius: 50%; border: 1.5px dashed var(--lapiz); display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; margin-top: 1px; }
.lista-mes .recibido .marca { background: var(--ok); border: 0; color: #fff; }
.lista-mes .no_aplica .marca { background: var(--renglon); border: 0; color: var(--lapiz); }
.lista-mes .no_aplica .nombre { color: var(--lapiz); text-decoration: line-through; }
.lista-mes .cuerpo { flex: 1; min-width: 0; }
.lista-mes .cuerpo .small a { word-break: break-all; }
.lista-mes .acciones { display: flex; gap: .25rem; flex-wrap: wrap; justify-content: flex-end; }
.sello-cierre { border: 1px solid var(--ok); color: var(--ok); border-radius: var(--radio); padding: .6rem .9rem; display: flex; gap: .6rem; align-items: center; }

/* ───── Solicitudes: hilo ───── */
.hilo { display: flex; flex-direction: column; gap: .6rem; }
.hilo .msg { max-width: 85%; background: var(--hoja); border: 1px solid var(--renglon); border-radius: var(--radio); padding: .65rem .9rem; align-self: flex-start; }
.hilo .msg.mio { align-self: flex-end; border-color: color-mix(in srgb, var(--marca) 35%, var(--renglon)); background: color-mix(in srgb, var(--marca) 5%, var(--hoja)); }
.hilo .msg.interno { background: repeating-linear-gradient(-45deg, var(--hoja), var(--hoja) 8px, var(--papel) 8px, var(--papel) 16px); border-style: dashed; }
.hilo .msg-meta { font-size: .78rem; color: var(--lapiz); margin-bottom: 2px; }
.hilo .msg-txt { white-space: pre-line; overflow-wrap: anywhere; }
.hilo .msg-adj { font-size: .85rem; margin-top: 4px; overflow-wrap: anywhere; }
@media (max-width: 575.98px) { .hilo .msg { max-width: 100%; } }
code { color: var(--grafito); background: var(--papel); padding: 0 3px; border-radius: 3px; }
.correo-txt { white-space: pre-line; overflow-wrap: anywhere; font-size: .92rem; max-height: 70vh; overflow: auto; }
.nube-permisos { display: flex; gap: .75rem; border: 1px solid color-mix(in srgb, var(--ok) 40%, var(--renglon)); background: color-mix(in srgb, var(--ok) 6%, var(--hoja)); border-radius: var(--radio); padding: .85rem 1rem; font-size: .85rem; }
.nube-permisos > i { color: var(--ok); font-size: 1.3rem; line-height: 1; }
.nube-permisos ul { padding-left: 1.1rem; margin: .35rem 0; }
.btn-nube { justify-content: center; display: flex; align-items: center; }

/* ───── Cotizaciones ───── */
.pre-line { white-space: pre-line; }
.totales td { padding: .2rem .75rem; border: 0; }
.totales tr:last-child td { border-top: 2px solid var(--marca); }
.partida input { font-variant-numeric: tabular-nums; }
.w-acuse { max-width: 180px; }

/* Firma dibujada */
.firma-lienzo { border: 1.5px dashed var(--bs-border-color); border-radius: .5rem; background: #fff; max-width: 600px; }
.firma-lienzo canvas { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; touch-action: none; cursor: crosshair; }
