.kardex-report-actions { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; padding:12px 20px; border-bottom:1px solid var(--line); background:#f8faf9; }
.kardex-report-actions[hidden] { display:none; }
.kardex-report-actions p { margin:0; color:var(--muted); font-size:12px; }
.kardex-report-actions > div { display:flex; flex-wrap:wrap; gap:8px; }
.kardex-report-actions .button { min-height:35px; }
#kardexPrint { display:none; }
@page kardex-report { size:A4 landscape; margin:10mm 8mm 12mm; @bottom-right { content:'Página ' counter(page) ' de ' counter(pages); font:7pt Arial,sans-serif; } }
@media print {
  body.printing-kardex > *:not(#kardexPrint),body.printing-kardex dialog::backdrop { display:none!important; }
  body.printing-kardex { background:white!important; }
  body.printing-kardex #kardexPrint { display:block!important; position:static!important; page:kardex-report; width:auto; margin:0; padding:0; background:white; color:#172c27; font:8pt/1.3 Arial,sans-serif; }
  #kardexPrint * { box-sizing:border-box; letter-spacing:normal; }
  #kardexPrint .kardex-print-heading { display:flex; justify-content:space-between; gap:12mm; padding-bottom:4mm; border-bottom:1.5pt solid #17684f; }
  #kardexPrint h1 { margin:1mm 0; font-size:17pt; color:#104b3a; }
  #kardexPrint .kardex-print-heading p { margin:0; font-size:11pt; font-weight:700; }
  #kardexPrint .kardex-print-heading > div:last-child { text-align:right; }
  #kardexPrint .kardex-print-heading span { display:block; margin-top:1mm; }
  #kardexPrint .kardex-print-filters { display:grid; grid-template-columns:1fr 1fr 1.4fr; gap:2mm 5mm; margin:4mm 0; }
  #kardexPrint .kardex-print-filters b { margin-right:1mm; }
  #kardexPrint .kardex-print-filters .unit { grid-column:1/-1; }
  #kardexPrint .kardex-print-summary { display:flex; flex-wrap:wrap; gap:3mm 8mm; padding:3mm; margin-bottom:4mm; border:1px solid #ceded6; }
  #kardexPrint .kardex-print-summary span { display:block; margin-bottom:1mm; font-size:7pt; }
  #kardexPrint .kardex-print-summary strong { font-size:10pt; }
  #kardexPrint .kardex-print-table { width:100%; table-layout:fixed; border-collapse:collapse; font:7.5pt/1.25 Arial,sans-serif; }
  #kardexPrint th,#kardexPrint td { padding:2mm 1.3mm; border:1px solid #d2dcd7; vertical-align:top; color:#172c27; font:inherit; text-transform:none; white-space:normal; overflow-wrap:anywhere; }
  #kardexPrint thead { display:table-header-group; }
  #kardexPrint th { background:#e8f2ed; font-weight:700; text-align:left; }
  #kardexPrint td span { display:block; margin-top:1mm; }
  #kardexPrint td.numeric { text-align:right; overflow-wrap:normal; }
  #kardexPrint td.identifiers { white-space:pre-line; font-size:7pt; }
  #kardexPrint .inventory-report td { white-space:pre-line; }
  #kardexPrint .inventory-report td span { margin-top:0; }
  #kardexPrint tbody tr:nth-child(even) { background:#f7faf8; }
  #kardexPrint th:nth-child(1) { width:6%; }
  #kardexPrint th:nth-child(2) { width:11%; }
  #kardexPrint th:nth-child(3) { width:9%; }
  #kardexPrint th:nth-child(4) { width:18%; }
  #kardexPrint th:nth-child(5) { width:13%; }
  #kardexPrint th:nth-child(6),#kardexPrint th:nth-child(7) { width:5%; }
  #kardexPrint th:nth-child(8) { width:8%; }
  #kardexPrint th:nth-child(9),#kardexPrint th:nth-child(10) { width:9%; }
  #kardexPrint th:nth-child(11) { width:7%; }
  #kardexPrint .individual th:nth-child(4) { width:20%; }
  #kardexPrint .individual th:nth-child(5) { width:18%; }
  #kardexPrint .stock th:nth-child(1) { width:14%; }
  #kardexPrint .stock th:nth-child(2) { width:8%; }
  #kardexPrint .stock th:nth-child(3) { width:10%; }
  #kardexPrint .stock th:nth-child(4) { width:25%; }
  #kardexPrint .stock th:nth-child(5) { width:8%; }
  #kardexPrint .stock th:nth-child(6) { width:9%; }
  #kardexPrint .stock th:nth-child(7) { width:7%; }
  #kardexPrint .stock th:nth-child(8) { width:9%; }
  #kardexPrint .stock th:nth-child(9) { width:10%; }
  #kardexPrint .aging th:nth-child(1) { width:9%; }
  #kardexPrint .aging th:nth-child(2) { width:17%; }
  #kardexPrint .aging th:nth-child(3) { width:10%; }
  #kardexPrint .aging th:nth-child(4) { width:15%; }
  #kardexPrint .aging th:nth-child(5) { width:10%; }
  #kardexPrint .aging th:nth-child(6) { width:9%; }
  #kardexPrint .aging th:nth-child(7) { width:10%; }
  #kardexPrint .aging th:nth-child(8) { width:8%; }
  #kardexPrint .aging th:nth-child(9) { width:5%; }
  #kardexPrint .aging th:nth-child(10) { width:7%; }
}
