/* Estilos de facturas.html (antes en <style> dentro de la página). */
/* Densidad de la tabla de facturas (solo esta página): aprovechar el ancho
       real de la pantalla y truncar menos los nombres/conceptos. */
    .cell-num { max-width: 130px; }
    .cell-concepto { max-width: 200px; }
    .cell-pgc { max-width: 135px; }
    @media (min-width: 1024px) {
      .cell-truncate { max-width: min(14vw, 300px); }
      .cell-concepto { max-width: min(15vw, 340px); }
      .cell-num { max-width: 150px; }
      .cell-pgc { max-width: 135px; }
      /* En escritorio, el min-height táctil de 44px (style.css) engorda cada fila */
      .table-wrapper button { min-height: 0; }
    }
    /* Acciones siempre visibles: columna fija a la derecha de la tabla, aunque la
       tabla sea más ancha que la pantalla (antes había que desplazarse para verlas). */
    .col-acciones {
      position: sticky; right: 0; z-index: 1;
      background: #fff;
      box-shadow: -8px 0 8px -8px rgba(15, 23, 42, 0.18);
    }
    thead .col-acciones { background: #f9fafb; }
    html.theme-dark .col-acciones { background: #15243a; }
    html.theme-dark thead .col-acciones { background: #0f1d30; }
    .row-action {
      display: inline-flex; align-items: center; justify-content: center;
      width: 2rem; height: 2rem; border-radius: 0.5rem; border-width: 1px;
      transition: background-color .15s ease;
    }
    .row-action svg { width: 1rem; height: 1rem; }
    @media (max-width: 639px) {
      /* Móvil: emisor ocupa el hueco que dejan las acciones fijas */
      .cell-emisor { max-width: calc(100vw - 13.5rem); }
    }
