/* =============================================================
   STYLE.CSS — Diseño Premium con Sidebar (Control Forestal)
   ============================================================= */

:root {
  --bg-app: #0f1115;
  --bg-sidebar: #161a1f;
  --bg-card: #1e242c;
  --bg-card-hover: #262d38;
  
  --accent-green: #2ecc71;
  --accent-amber: #f39c12;
  --accent-orange: #e67e22;
  --accent-blue: #3498db;
  
  --text-main: #e2e8f0;
  --text-dim: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.08);
  
  --sidebar-width: 300px;
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
}

/* ── LAYOUT ─────────────────────────────────────────────────── */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* ── SIDEBAR ────────────────────────────────────────────────── */
.app-sidebar {
  width: var(--sidebar-width);
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 100;
}

.sidebar-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-content {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}

.sidebar-section {
  margin-bottom: 32px;
}

.sidebar-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.sidebar-footer {
  padding: 16px 24px;
  font-size: 0.7rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border-color);
}

/* Logo */
.logo { display:flex; align-items:center; gap:12px; text-decoration:none; color:inherit; }
.logo-icon { font-size:1.8rem; }
.logo-text { font-size:1.1rem; font-weight:700; }
.logo-sub { font-size:0.75rem; color:var(--accent-green); text-transform:uppercase; font-weight:600; letter-spacing:1px; }

/* ── COMPONENTES SIDEBAR ────────────────────────────────────── */

/* Zona de Carga Compacta */
.upload-zone-compact {
  background: rgba(255,255,255,0.03);
  border: 2px dashed var(--border-color);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
}
.upload-zone-compact:hover { border-color: var(--accent-green); background: rgba(46,204,113,0.05); }
.upload-icon-mini { font-size: 1.5rem; margin-bottom: 8px; }
.upload-zone-compact p { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 12px; }

.upload-btn-mini {
  background: var(--bg-card);
  color: white;
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  width: 100%;
}
.upload-btn-mini:hover { background: var(--bg-card-hover); }

/* Filtros Verticales */
.filters-vertical { display: flex; flex-direction: column; gap: 16px; }
.filter-item label { display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 6px; color: var(--text-dim); }
.filter-item select, .filter-item input {
  width: 100%;
  background: var(--bg-app);
  border: 1px solid var(--border-color);
  color: white;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.9rem;
}

input[type="date"] {
  color-scheme: dark !important;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E") no-repeat center !important;
  background-size: 18px 18px !important;
  background-color: rgba(255, 255, 255, 0.15) !important;
  cursor: pointer !important;
  filter: none !important;
  opacity: 1 !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 6px !important;
  padding: 0 !important;
  margin-left: 8px !important;
  transition: all 0.2s ease !important;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
  background-color: #2ecc71 !important;
  transform: scale(1.1) !important;
}

.filter-actions { display: grid; grid-template-columns: 1fr 45px; gap: 8px; }
.btn-sidebar-apply {
  background: var(--accent-green);
  color: #000;
  border: none;
  padding: 10px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}
.btn-sidebar-reset {
  background: var(--bg-card);
  color: var(--text-dim);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
}

.btn-sidebar-print {
    width: 100%;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(46,204,113,0.2);
}

/* ── MAIN CONTENT ───────────────────────────────────────────── */
.app-main {
  flex: 1;
  padding: 40px;
  max-width: 1600px;
  margin: 0 auto;
}

.dashboard-header { margin-bottom: 40px; }
.dashboard-header h1 { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.dashboard-header p { color: var(--text-dim); font-size: 1rem; }

.dashboard-section { margin-bottom: 48px; }

/* ── KPIS EXPANDIDOS ─────────────────────────────────────────── */
.kpi-grid-expanded {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.kpi-card {
  background: var(--bg-card);
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease;
}
.kpi-card:hover { transform: translateY(-5px); }

.kpi-label { font-size: 0.85rem; font-weight: 600; color: var(--text-dim); margin-bottom: 12px; }
.kpi-value { font-size: 2.2rem; font-weight: 800; margin-bottom: 4px; }
.kpi-unit { font-size: 0.8rem; color: var(--text-dim); opacity: 0.8; }

.kpi-value.green { color: var(--accent-green); }
.kpi-value.amber { color: var(--accent-amber); }
.kpi-value.orange { color: var(--accent-orange); }
.kpi-value.blue  { color: var(--accent-blue); }

/* ── GRÁFICOS ────────────────────────────────────────────────── */
.charts-grid-expanded { margin-bottom: 24px; }
.chart-card {
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}
.chart-header { margin-bottom: 24px; display: flex; justify-content: space-between; align-items: center; }
.chart-title { font-weight: 700; font-size: 1.1rem; }

.chart-container-large { height: 450px; position: relative; }
.chart-container { height: 300px; position: relative; }

.charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* ── TABLAS ──────────────────────────────────────────────────── */
.table-card {
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  overflow: hidden;
}
.table-header { padding: 20px 24px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; }
.table-title { font-weight: 700; }
.table-wrapper { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 16px 24px; font-size: 0.85rem; color: var(--text-dim); border-bottom: 1px solid var(--border-color); }
td { padding: 16px 24px; border-bottom: 1px solid var(--border-color); font-size: 0.9rem; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }

.empty-msg { padding: 40px; text-align: center; color: var(--text-dim); }

/* ── TABLA RESUMEN ───────────────────────────────────────────── */
.resumen-group-header td {
  background: rgba(46, 204, 113, 0.08);
  border-top: 2px solid rgba(46, 204, 113, 0.25);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}
#tfoot-resumen td {
  background: rgba(255, 255, 255, 0.05);
  border-top: 2px solid var(--border-color);
}
.table-count {
  font-size: 0.8rem;
  color: var(--text-dim);
}


/* ── ANIMACIONES ────────────────────────────────────────────── */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.6s ease forwards; }

/* ── RESPONSIVIDAD ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .app-layout { flex-direction: column; }
  .app-sidebar { width: 100%; height: auto; position: relative; border-right: none; border-bottom: 1px solid var(--border-color); }
  .charts-row { grid-template-columns: 1fr; }
}

/* ── Header: pantalla vs impresión ───────────────────────────── */
.print-header { display: none; }
.screen-header { display: block; }

@media print {
  /* Reset de Layout */
  .app-layout { display: block !important; }
  .app-sidebar { display: none !important; }
  .app-main, .main-container {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 11pt !important;
  }

  /* Forzar colores de fondo y bordes en impresión */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* ── LOGO + TÍTULO en impresión ─────────────────────────────── */
  .screen-header { display: none !important; }
  .print-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
    margin-bottom: 24px !important;
    padding-bottom: 16px !important;
    border-bottom: 2px solid #333 !important;
  }
  .print-logo {
    width: 80px !important;
    height: auto !important;
    border-radius: 6px !important;
  }
  .print-header h1 {
    font-size: 22pt !important;
    color: #000 !important;
    margin: 0 0 4px 0 !important;
  }
  .print-header p {
    color: #333 !important;
    margin: 0 !important;
    font-size: 10pt !important;
  }
  #label-mes-actual {
    color: #000 !important;
    font-weight: bold !important;
  }


  /* Tarjetas y Contenedores */
  .kpi-card, .chart-card, .table-card {
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #bbb !important;
    box-shadow: none !important;
    margin-bottom: 24px !important;
  }

  .kpi-value { color: #000 !important; font-size: 1.8rem !important; }
  .kpi-label, .kpi-unit { color: #555 !important; }

  /* ── TÍTULOS DE SECCIÓN más grandes ────────────────────────── */
  .table-title {
    font-size: 14pt !important;
    font-weight: 800 !important;
    color: #000 !important;
  }
  .table-header {
    padding: 14px 20px !important;
    border-bottom: 2px solid #555 !important;
  }
  .table-count {
    color: #555 !important;
    font-size: 9pt !important;
  }

  /* Saltos de Página Robustos */
  .print-page-break {
    display: block !important;
    clear: both !important;
    page-break-after: always !important;
    break-after: always !important;
  }
  .print-page-start {
    display: block !important;
    clear: both !important;
    page-break-before: always !important;
    break-before: always !important;
    margin-top: 40px !important;
  }

  /* ── TABLAS: bordes oscuros visibles ───────────────────────── */
  table { border-collapse: collapse !important; width: 100% !important; }
  th, td {
    border: 1px solid #888 !important;
    padding: 8px 12px !important;
    color: #000 !important;
  }
  th {
    background: #e8e8e8 !important;
    font-weight: 700 !important;
    font-size: 10pt !important;
    border-color: #555 !important;
  }
  /* Filas de grupo (subtotales) */
  .resumen-group-header td {
    background: #ddeedd !important;
    border-color: #555 !important;
    font-weight: 700 !important;
  }
  tfoot td {
    background: #e0e0e0 !important;
    border-top: 2px solid #333 !important;
    font-weight: 700 !important;
  }

  /* Evitar saltos de página dentro de filas */
  .table-card, tr {
    break-inside: avoid-page !important;
  }
}

/* ── PESTAÑAS DE NAVEGACIÓN (SIDEBAR) ───────────────────────── */
.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  text-align: left;
}

.nav-item:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.2), rgba(39, 174, 96, 0.3));
  border-color: var(--accent-green);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(46, 204, 113, 0.15);
}

/* ── PROFORMA PDF TEMPLATE STYLES ─────────────────────────── */
.proforma-document-template {
  background: #ffffff;
  color: #111827;
  padding: 30px;
  border-radius: 8px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  margin-top: 10px;
}

.pdf-logo-bar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 12px;
}

.pdf-logo-img {
  max-height: 55px;
  width: auto;
}

.pdf-main-title {
  background-color: #00a651;
  color: #ffffff;
  text-align: center;
  font-weight: bold;
  font-size: 15px;
  padding: 6px 12px;
  letter-spacing: 0.5px;
  border-radius: 2px;
  margin-bottom: 12px;
}

.pdf-meta-box {
  margin-bottom: 12px;
}

.pdf-meta-table {
  width: 100%;
  border-collapse: collapse;
}

.pdf-meta-table td {
  padding: 4px 8px;
  font-size: 11px;
  color: #222222;
  border: 1px solid #e2e8f0;
}

.meta-label {
  font-weight: bold;
  background-color: #f8fafc;
  width: 15%;
}

.meta-val {
  width: 35%;
}

.bold-text {
  font-weight: bold;
}

.mes-badge {
  background-color: #0070c0;
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 2px;
  font-weight: bold;
}

.pdf-banner-alert {
  background-color: #00a651;
  color: #ffffff;
  text-align: center;
  font-weight: bold;
  font-size: 13px;
  padding: 6px 12px;
  margin-bottom: 14px;
  border-radius: 2px;
}

/* Tabla de traslados */
.pdf-table-traslados {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.pdf-table-traslados th {
  background-color: #00a651;
  color: #ffffff;
  font-weight: bold;
  font-size: 11px;
  padding: 8px;
  text-align: left;
  border: 1px solid #009347;
}

.pdf-table-traslados td {
  padding: 6px 8px;
  font-size: 11px;
  border: 1px solid #cbd5e1;
  color: #000000;
}

.row-total-traslados td {
  background-color: #f1f5f9;
  border-top: 2px solid #000000;
  font-weight: bold;
  font-size: 11px;
}

/* Sección inferior side-by-side */
.pdf-bottom-section {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
}

.pdf-descuentos-wrapper {
  flex: 1.2;
}

.pdf-box-header {
  background-color: #00a651;
  color: #ffffff;
  font-weight: bold;
  text-align: center;
  padding: 5px;
  font-size: 12px;
}

.pdf-table-descuentos {
  width: 100%;
  border-collapse: collapse;
}

.pdf-table-descuentos td {
  padding: 5px 8px;
  font-size: 11px;
  border: 1px solid #cbd5e1;
  color: #000000;
}

.row-total-descuentos td {
  background-color: #00a651;
  color: #ffffff;
  font-weight: bold;
  border-top: 1px solid #00a651;
}

.pdf-totales-wrapper {
  flex: 0.8;
}

.pdf-table-totales {
  width: 100%;
  border-collapse: collapse;
}

.pdf-table-totales td {
  padding: 6px 12px;
  font-size: 11px;
  border: 1px solid #cbd5e1;
  color: #000000;
}

.pdf-table-totales .lbl {
  font-weight: bold;
  background-color: #f8fafc;
  width: 50%;
}

.pdf-table-totales .val {
  text-align: right;
  font-weight: bold;
  width: 50%;
}

.row-a-pago td {
  background-color: #00a651 !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: bold !important;
  border-top: 2px solid #009347 !important;
}

/* Footer facturación */
.pdf-facturacion-box {
  margin-top: 20px;
}

.facturar-title {
  font-weight: bold;
  font-size: 12px;
  margin-bottom: 6px;
  color: #111827;
}

.facturar-content {
  background-color: #00a651;
  color: #ffffff;
  text-align: center;
  padding: 10px;
  border-radius: 2px;
  font-size: 11px;
  line-height: 1.5;
}

.facturar-content .company-name {
  font-weight: bold;
  font-size: 13px;
}

/* ── REGLAS DE IMPRESIÓN IMPRESCINDIBLES (@media print) ── */
@media print {
  @page {
    size: letter portrait;
    margin: 8mm 10mm;
  }

  /* Ocultar navegación y controles en impresión */
  .no-print,
  .app-sidebar,
  .nav-menu,
  .screen-header {
    display: none !important;
  }

  /* Ocultar la vista inactiva según la pestaña seleccionada */
  #view-dashboard[style*="display: none"],
  #view-dashboard[style*="display:none"] {
    display: none !important;
  }

  #view-proforma[style*="display: none"],
  #view-proforma[style*="display:none"] {
    display: none !important;
  }

  #view-conductores[style*="display: none"],
  #view-conductores[style*="display:none"] {
    display: none !important;
  }

  /* Estilos específicos cuando se imprime el Dashboard Despachos */
  #view-dashboard {
    display: block !important;
    width: 100% !important;
  }

  #view-dashboard .dashboard-header {
    display: block !important;
    margin-bottom: 20px !important;
  }

  #view-dashboard .print-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-bottom: 2px solid #00a651 !important;
    padding-bottom: 10px !important;
    margin-bottom: 20px !important;
  }

  #view-dashboard .print-header h1 {
    color: #111827 !important;
    font-size: 16pt !important;
    margin: 0 !important;
  }

  #view-dashboard .print-header p {
    color: #4b5563 !important;
    font-size: 10pt !important;
    margin: 4px 0 0 0 !important;
  }

  #view-dashboard .print-logo {
    max-height: 45px !important;
  }

  #view-dashboard .table-card {
    background: #ffffff !important;
    color: #000000 !important;
    box-shadow: none !important;
    border: 1px solid #cbd5e1 !important;
    margin-bottom: 20px !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  #view-dashboard .table-header {
    background: #f8fafc !important;
    border-bottom: 1px solid #cbd5e1 !important;
    color: #1e293b !important;
  }

  #view-dashboard table {
    width: 100% !important;
    border-collapse: collapse !important;
  }

  #view-dashboard table th {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
    padding: 6px 8px !important;
    font-size: 9.5pt !important;
  }

  #view-dashboard table td {
    color: #0f172a !important;
    border: 1px solid #e2e8f0 !important;
    padding: 5px 8px !important;
    font-size: 9pt !important;
  }

  #view-dashboard table tfoot td {
    background: #f8fafc !important;
    font-weight: bold !important;
  }


  body, html {
    background: #ffffff !important;
    color: #000000 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 9.5pt !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .app-layout, .app-main, .main-container, #view-proforma, #proforma-resultado, #view-conductores, #reporte-conductor-resultado {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .proforma-document-template {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    font-size: 9.5pt !important;
  }

  .pdf-logo-bar {
    margin-bottom: 6px !important;
  }

  .pdf-logo-img {
    max-height: 45px !important;
  }

  .pdf-main-title {
    font-size: 13pt !important;
    padding: 4px 8px !important;
    margin-bottom: 8px !important;
    background-color: #00a651 !important;
    color: #ffffff !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .pdf-meta-box {
    margin-bottom: 8px !important;
  }

  .pdf-meta-table td {
    font-size: 9.5pt !important;
    padding: 3px 6px !important;
  }

  .pdf-banner-alert {
    font-size: 10.5pt !important;
    padding: 4px 8px !important;
    margin-bottom: 8px !important;
    background-color: #00a651 !important;
    color: #ffffff !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .pdf-table-traslados {
    margin-bottom: 10px !important;
  }

  .pdf-table-traslados th {
    font-size: 9.5pt !important;
    padding: 4px 6px !important;
    background-color: #00a651 !important;
    color: #ffffff !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .pdf-table-traslados td {
    font-size: 9.5pt !important;
    padding: 4px 6px !important;
  }

  .row-total-traslados td {
    font-size: 9.5pt !important;
    padding: 4px 6px !important;
  }

  .pdf-bottom-section {
    display: flex !important;
    flex-direction: row !important;
    gap: 15px !important;
    margin-bottom: 10px !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .pdf-box-header {
    font-size: 10pt !important;
    padding: 4px !important;
    background-color: #00a651 !important;
    color: #ffffff !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .pdf-table-descuentos td {
    font-size: 9pt !important;
    padding: 4px 6px !important;
  }

  .row-total-descuentos td {
    background-color: #00a651 !important;
    color: #ffffff !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .pdf-table-totales td {
    font-size: 9.5pt !important;
    padding: 4px 8px !important;
  }

  .row-a-pago td {
    font-size: 11pt !important;
    padding: 5px 8px !important;
    background-color: #00a651 !important;
    color: #ffffff !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .pdf-facturacion-box {
    margin-top: 8px !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .facturar-title {
    font-size: 9.5pt !important;
    margin-bottom: 4px !important;
  }

  .facturar-content {
    font-size: 9.5pt !important;
    padding: 6px 10px !important;
    line-height: 1.3 !important;
    background-color: #00a651 !important;
    color: #ffffff !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .facturar-content .company-name {
    font-size: 11pt !important;
  }
}


