/* cod- 10-08-2026: diseño responsive e impresión A4 horizontal del Reporte de Compras v1. */
.purchases-report-page{display:grid;gap:1rem;color:#172433}.purchases-report-page-header{display:flex;align-items:end;justify-content:space-between;gap:1rem}.purchases-report-page-header p{margin:0 0 .2rem;color:#cf2634;font-size:.75rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.purchases-report-page-header h1{margin:0;color:#10293f;font-size:clamp(1.55rem,3vw,2.15rem)}.purchases-report-page-header span{color:#637180}.purchases-report-page button{border:0;border-radius:8px;padding:.67rem 1rem;background:#153b5a;color:#fff;font-weight:700;cursor:pointer}.purchases-report-page button:disabled{opacity:.55;cursor:default}.purchases-report-filters,.purchases-report-print,.purchases-report-state{border:1px solid #dfe5ea;border-radius:12px;background:#fff;box-shadow:0 6px 20px rgb(20 45 65 / 5%)}.purchases-report-filters{padding:1rem}.purchases-report-quick{display:flex;flex-wrap:wrap;gap:.4rem;margin-bottom:.8rem}.purchases-report-quick button{padding:.48rem .8rem;background:#edf2f6;color:#28445c}.purchases-report-quick button.active{background:#c92333;color:#fff}.purchases-report-filter-grid{display:grid;grid-template-columns:repeat(6,minmax(125px,1fr));align-items:end;gap:.7rem}.purchases-report-filter-grid label{display:grid;gap:.3rem;min-width:0;color:#536576;font-size:.75rem;font-weight:750}.purchases-report-filter-grid input,.purchases-report-filter-grid select{min-width:0;height:40px;border:1px solid #cfd8df;border-radius:7px;padding:0 .65rem;background:#fff;color:#172433}.purchases-report-search{grid-column:span 2}.purchases-report-error{margin-top:.75rem;padding:.65rem .8rem;border-radius:7px;background:#fff0f1;color:#ad1f2c}.purchases-report-state{display:grid;place-items:center;min-height:150px;padding:1rem;color:#637180}.purchases-report-state.denied{color:#ad1f2c}.purchases-report-print{padding:1.15rem;overflow:hidden}.purchases-report-print-header{display:grid;grid-template-columns:minmax(210px,.8fr) 2fr;gap:.55rem 1.5rem;padding-bottom:.9rem;border-bottom:2px solid #173a57}.purchases-report-brand strong{color:#c92333;font-size:.72rem;letter-spacing:.12em}.purchases-report-brand h1{margin:.12rem 0 0;color:#10293f;font-size:1.3rem}.purchases-report-meta{display:grid;grid-template-columns:repeat(4,minmax(100px,1fr));gap:.45rem 1rem;margin:0}.purchases-report-meta dt{color:#778593;font-size:.62rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.purchases-report-meta dd{margin:.06rem 0 0;color:#1c3449;font-size:.78rem;font-weight:750}.purchases-report-print-header>small{grid-column:1/-1;color:#687887}.purchases-report-print h2{margin:1.15rem 0 .45rem;padding-bottom:.3rem;border-bottom:1px solid #cdd7de;color:#375268;font-size:.72rem;letter-spacing:.1em;text-transform:uppercase}.purchases-report-summary{display:grid;grid-template-columns:repeat(6,minmax(135px,1fr));overflow-x:auto;border-top:1px solid #d9e0e5}.purchases-report-summary>div{display:grid;gap:.18rem;min-height:70px;padding:.68rem .72rem;border-bottom:1px solid #e3e8ec}.purchases-report-summary span{color:#71808e;font-size:.65rem;font-weight:750;text-transform:uppercase}.purchases-report-summary b{color:#173a57;font-size:1rem}.purchases-report-summary .total b{color:#087a61}.purchases-report-summary .largest b{color:#b52632}.purchases-report-table-wrap{max-width:100%;overflow-x:auto}.purchases-report-print table{width:100%;border-collapse:collapse;font-size:.75rem}.purchases-report-print th{padding:.55rem .48rem;border-block:1px solid #aab8c3;background:#f3f6f8;color:#516475;font-size:.61rem;letter-spacing:.035em;text-align:left;text-transform:uppercase;white-space:nowrap}.purchases-report-print td{padding:.55rem .48rem;border-bottom:1px solid #e2e7eb;vertical-align:top}.purchases-report-print .money,.purchases-report-print .quantity{text-align:right;white-space:nowrap}.purchases-report-print .key-value{color:#0b604e}.purchases-report-print .code{font-family:ui-monospace,monospace}.purchases-report-suppliers{min-width:620px}.purchases-report-products{min-width:880px}.purchases-report-main{min-width:1280px}.purchases-report-status{display:inline-block;border-radius:999px;padding:.2rem .42rem;background:#e3f4ee;color:#087054;font-size:.65rem;font-weight:750;white-space:nowrap}.purchases-report-note{margin:.5rem 0 0;padding:.55rem .7rem;background:#f7f9fa;color:#667887;font-size:.74rem}.purchases-report-empty{padding:.7rem;border-bottom:1px solid #e1e7eb;color:#687887}
@media(max-width:1100px){.purchases-report-filter-grid{grid-template-columns:repeat(3,minmax(130px,1fr))}.purchases-report-summary{grid-template-columns:repeat(3,minmax(150px,1fr))}.purchases-report-meta{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.purchases-report-page-header{align-items:stretch;flex-direction:column}.purchases-report-page-header button{width:100%}.purchases-report-filters,.purchases-report-print{padding:.72rem}.purchases-report-filter-grid{grid-template-columns:1fr}.purchases-report-search{grid-column:auto}.purchases-report-filter-grid>button{width:100%}.purchases-report-print-header{grid-template-columns:1fr}.purchases-report-meta{grid-template-columns:1fr 1fr}.purchases-report-summary{grid-template-columns:1fr;overflow:visible}}
@media print{@page purchases-report{size:A4 landscape;margin:8mm}html,body{width:auto!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;overflow:visible!important;background:#fff!important}body:has(.purchases-report-print) *:not(.purchases-report-print):not(.purchases-report-print *):not(:has(.purchases-report-print)){display:none!important}body:has(.purchases-report-print) *:has(.purchases-report-print){display:contents!important;position:static!important;inset:auto!important;width:auto!important;height:auto!important;min-height:0!important;max-height:none!important;margin:0!important;padding:0!important;overflow:visible!important;background:transparent!important;box-shadow:none!important}.purchases-report-print{page:purchases-report;display:block!important;position:static!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;overflow:visible!important;box-shadow:none!important;font-size:7pt!important}.purchases-report-print-header{grid-template-columns:.8fr 2.4fr!important;gap:2mm 7mm!important;padding-bottom:3mm!important}.purchases-report-meta{grid-template-columns:repeat(4,1fr)!important}.purchases-report-print h2{margin:4mm 0 1mm!important;padding-bottom:1mm!important;font-size:6.5pt!important;break-after:avoid}.purchases-report-summary{grid-template-columns:repeat(6,1fr)!important;overflow:visible!important}.purchases-report-summary>div{min-height:0!important;padding:1.6mm!important;background:#fff!important}.purchases-report-summary span{font-size:4.8pt!important}.purchases-report-summary b{font-size:7.2pt!important}.purchases-report-table-wrap{overflow:visible!important}.purchases-report-print table{min-width:0!important;font-size:5.4pt!important}.purchases-report-print thead{display:table-header-group}.purchases-report-print th,.purchases-report-print td{padding:1mm!important}.purchases-report-print th{background:#fff!important;font-size:4.6pt!important}.purchases-report-print tr,.purchases-report-print-header,.purchases-report-summary>div{break-inside:avoid;page-break-inside:avoid}.purchases-report-status{padding:0!important;background:#fff!important;color:#111!important}}
