.purchases-module{--purchase-ink:#101e3d;--purchase-muted:#5a6f91;--purchase-border:#c8d5e8;--purchase-bg:#f5f7fa;--purchase-orange:#e95400;color:var(--purchase-ink);font-family:'ERP Plex UI',system-ui,sans-serif;font-size:13px;line-height:1.4;padding:16px;display:flex;flex-direction:column;gap:12px;min-width:0;height:100%;overflow:auto;background:var(--purchase-bg)}
.purchases-module *{box-sizing:border-box;font-family:inherit}.purchases-module h1{font-size:20px;line-height:1.3;margin:0;font-weight:600}.purchases-module h2{font-size:14px;margin:0;font-weight:600}.purchases-module p{margin:4px 0;color:var(--purchase-muted)}
.purchase-head,.purchase-actions,.purchase-toolbar,.purchase-footer,.purchase-section-title,.purchase-dialog header{display:flex;align-items:center;justify-content:space-between;gap:8px}.purchase-head{align-items:flex-start}.purchase-actions{justify-content:flex-end;flex-wrap:wrap}.purchase-toolbar input{flex:1;min-width:160px}.purchase-toolbar select{width:168px}
.purchases-module button,.purchases-module input,.purchases-module select,.purchases-module textarea{font:inherit;border:1px solid var(--purchase-border);border-radius:3px;color:var(--purchase-ink);background:white;min-height:34px;padding:6px 10px;box-shadow:none}.purchases-module button{cursor:pointer;font-weight:500;white-space:nowrap}.purchases-module button:hover:not(:disabled){border-color:var(--purchase-orange);background:#fff4eb}.purchases-module :is(button,input,select,textarea):focus-visible{outline:2px solid var(--purchase-orange);outline-offset:2px}.purchases-module button:disabled{opacity:.5;cursor:not-allowed}.purchases-module input:disabled,.purchases-module textarea:disabled,.purchases-module select:disabled{background:#f4f6f9;color:#364866;opacity:1}.purchases-module .purchase-primary{background:var(--purchase-orange);border-color:var(--purchase-orange);color:white}.purchases-module .purchase-primary:hover:not(:disabled){background:#c44800;color:white}.purchases-module .purchase-dark{background:var(--purchase-ink);color:white}.purchases-module .purchase-dark:hover:not(:disabled){background:#243b64;color:white}
.purchase-table-wrap{border:1px solid var(--purchase-border);background:white;overflow:auto;min-height:180px;flex:1}.purchases-module table{border-collapse:collapse;width:100%;font-size:13px}.purchases-module th{font-size:11px;text-transform:uppercase;letter-spacing:.04em;background:#f5f7fa;color:var(--purchase-muted);text-align:left;position:sticky;top:0}.purchases-module td,.purchases-module th{padding:9px 12px;border-bottom:1px solid #e3eaf3}.purchases-module small{display:block;font-size:12px;color:var(--purchase-muted);font-weight:400}.purchase-money{text-align:right!important;white-space:nowrap;font-variant-numeric:tabular-nums}.purchase-status{display:inline-flex;width:100px;height:24px;justify-content:center;align-items:center;border-radius:3px;font-size:12px;font-weight:600;flex-shrink:0}.purchase-status.BORRADOR{background:#ffc42c;color:#523900}.purchase-status.CONFIRMADA{background:#008544;color:white}.purchase-status.ANULADA{background:#e8edf4;color:#5a6475}.purchase-empty{padding:48px 24px;text-align:center;color:var(--purchase-muted)}.purchase-footer{font-size:12px;padding:8px 0}.purchase-error,.purchase-notice{padding:10px 12px;border:1px solid #f1b8b8;background:#fff2f2;color:#a52020;border-radius:3px}.purchase-notice{border-color:#e5ce86;background:#fffbed;color:#705716}.purchase-fields{border:1px solid var(--purchase-border);background:white;margin:0;padding:12px;display:grid;grid-template-columns:140px minmax(180px,1fr) 145px;gap:10px}.purchases-module label{display:flex;flex-direction:column;gap:4px;color:var(--purchase-muted);font-size:12px;font-weight:500;min-width:0}.purchases-module label input,.purchases-module label select,.purchases-module label textarea{width:100%;font-size:13px;font-weight:400}.purchases-module .purchase-back{border:0;background:transparent;padding:0;min-height:26px;color:var(--purchase-muted);font-size:12px}.purchase-help{font-size:12px;max-width:1000px}.purchase-lines{background:white;border:1px solid var(--purchase-border)}.purchase-line{display:grid;grid-template-columns:minmax(210px,1fr) 76px 66px 86px 110px 28px;align-items:start;gap:8px;padding:12px;border-bottom:1px solid #e3eaf3}.purchase-line:last-child{border-bottom:0}.purchase-line input[type=number]{text-align:right;font-variant-numeric:tabular-nums}.purchase-description{min-width:0}.purchases-module .purchase-link{display:flex;align-items:center;justify-content:space-between;width:100%;margin-top:6px;white-space:normal;text-align:left;color:#086535;border-color:#b6d9c4;background:#f1faf5;min-height:30px;font-size:12px}.purchases-module .purchase-unlinked{color:#a34400;border-color:#eac6a9;background:#fff5eb}.purchases-module .purchase-remove{padding:0;min-height:28px;width:28px;margin-top:22px;color:#b12626}.purchases-module .purchase-code{display:flex;flex-direction:row;align-items:center;font-size:11px;margin-top:6px}.purchases-module .purchase-code input{max-width:125px;min-height:26px;height:26px;padding:3px 6px;font-size:12px}.purchase-bottom{display:grid;grid-template-columns:1fr 280px;gap:18px}.purchase-bottom textarea{resize:vertical;min-height:80px}.purchase-totals{display:grid;gap:8px}.purchase-totals>span,.purchase-totals>label{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:10px}.purchase-totals label input{width:112px;text-align:right}.purchase-totals strong{font-variant-numeric:tabular-nums}.purchase-difference{color:#b91c1c}.purchase-files{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.purchase-files button{max-width:100%;white-space:normal}.purchase-editor-footer{border-top:1px solid var(--purchase-border);align-items:flex-start;flex-wrap:wrap}.purchase-editor-footer p{max-width:450px;font-size:12px}.purchase-history{border-top:1px solid var(--purchase-border);padding:10px 0;font-size:12px}.purchase-history summary{cursor:pointer;font-weight:600}.purchase-dialog{border:1px solid var(--purchase-border);border-radius:6px;padding:18px;width:min(640px,94vw);max-height:85vh;color:var(--purchase-ink);background:white;box-shadow:0 16px 50px #101e3d33}.purchase-dialog::backdrop{background:#101e3d80}.purchase-dialog header{margin-bottom:12px}.purchase-dialog>input{width:100%}.purchase-picker-results{max-height:50vh;overflow:auto;margin-top:12px}.purchase-picker-results>button{width:100%;display:flex;justify-content:space-between;gap:12px;text-align:left;white-space:normal;padding:10px;margin-bottom:6px}.purchase-picker-results>button>span:last-child{text-align:right;white-space:nowrap}.purchase-confirm{max-width:460px}.purchase-confirm p{margin:12px 0}.purchase-confirm footer{margin-top:18px}
@media(max-width:1050px){.purchase-line{grid-template-columns:minmax(170px,1fr) 64px 58px 76px 92px 26px;gap:6px;padding:10px}.purchases-module{padding:12px}.purchase-head{flex-wrap:wrap}.purchases-module td,.purchases-module th{padding:8px}.purchase-code{flex-wrap:wrap}}
@media(max-width:680px){.purchase-fields{grid-template-columns:1fr 1fr}.purchase-supplier{grid-column:1/-1}.purchase-line{grid-template-columns:1fr 1fr 1fr}.purchase-description{grid-column:1/-1}.purchase-line .purchase-remove{margin:0;justify-self:end}.purchase-bottom{grid-template-columns:1fr}.purchase-toolbar,.purchase-footer{flex-wrap:wrap}.purchase-toolbar input{width:100%}.purchase-head .purchase-actions{justify-content:flex-start}.purchase-dialog button{min-height:44px}.purchase-totals{max-width:360px;width:100%;justify-self:end}}
.purchases-module :is(input,select,textarea){background:#fff!important;color:var(--purchase-ink)!important}
.purchases-module :is(input,select,textarea):disabled{background:#f4f6f9!important;color:#364866!important}
.purchases-module{box-sizing:border-box}
/*$vite$:1*/