.customer-requests-view{padding:28px clamp(22px,4vw,56px) 64px;background:#f4f6fb;min-height:calc(100vh - 72px);color:#15255e}.customer-requests-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:28px 34px;border-radius:28px;background:linear-gradient(118deg,#19265d,#3f58c7);color:#fff;box-shadow:0 18px 42px rgba(21,37,94,.16)}.customer-requests-hero span,.customer-request-detail-empty>span{font-size:.7rem;font-weight:900;letter-spacing:.15em;color:#ffb7b2}.customer-requests-hero h1{margin:6px 0 4px;font-size:clamp(1.85rem,3vw,2.7rem)}.customer-requests-hero p{margin:0;color:#e8ecff}.customer-requests-hero-actions{display:flex;gap:10px;flex-wrap:wrap}.customer-requests-hero button{border:1px solid rgba(255,255,255,.36);border-radius:13px;padding:13px 17px;background:rgba(255,255,255,.1);color:#fff;font-weight:900}.customer-requests-hero button.primary{background:#fff;color:#3048b6}.customer-request-kpis{display:grid;grid-template-columns:repeat(6,minmax(130px,1fr));gap:12px;margin:18px 0}.customer-request-kpis button{min-width:0;padding:17px;text-align:left;border:1px solid #d9dfef;border-radius:18px;background:#fff;color:#68728f;box-shadow:0 8px 24px rgba(25,38,93,.05)}.customer-request-kpis button.active{border-color:#354bc1;box-shadow:inset 0 4px #c53c36}.customer-request-kpis span{display:block;font-weight:800}.customer-request-kpis strong{display:block;margin:5px 0;color:#17255d;font-size:1.75rem}.customer-request-kpis small{font-size:.72rem}.customer-request-workspace{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(340px,.8fr);gap:16px}.customer-request-list-panel,.customer-request-detail{border:1px solid #d9dfed;border-radius:22px;background:#fff;box-shadow:0 12px 32px rgba(20,36,88,.07);overflow:hidden}.customer-request-filters{display:grid;grid-template-columns:minmax(260px,1.5fr) minmax(170px,.7fr) minmax(180px,.8fr) auto;gap:10px;padding:16px;border-bottom:1px solid #e2e6f0}.customer-request-filters input,.customer-request-filters select,.customer-request-filters button{width:100%;min-height:44px;border:1px solid #d4dbea;border-radius:12px;background:#fff;color:#18265e;padding:0 13px}.customer-request-filters label.search{position:relative}.customer-request-filters label.search span{position:absolute;left:14px;top:12px;color:#c43934}.customer-request-filters label.search input{padding-left:38px}.customer-request-filters button{font-weight:800;color:#3249bc}.customer-request-message{margin:0;padding:0 16px;color:#a34235}.customer-request-table-wrap{overflow:auto}.customer-request-table{width:100%;border-collapse:collapse;min-width:850px}.customer-request-table th{padding:12px 14px;background:#f3f5fa;color:#78819d;text-align:left;font-size:.68rem;letter-spacing:.08em;text-transform:uppercase}.customer-request-table td{padding:14px;border-top:1px solid #e6e9f1;vertical-align:top}.customer-request-table tr{cursor:pointer}.customer-request-table tr:hover,.customer-request-table tr.selected{background:#f2f5ff}.request-status,.request-payment{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border-radius:999px;font-size:.69rem;font-weight:900;white-space:nowrap}.request-status.pending{background:#fff1d9;color:#9b5b00}.request-status.internal_transfer{background:#e9efff;color:#2847b4}.request-status.ready{background:#e3f5e9;color:#176e3a}.request-status.delivered{background:#edf0f4;color:#343b4b}.request-status.failed{background:#fde9e8;color:#a6302d}.request-payment.partial{background:#fff1d9;color:#965a00}.request-payment.paid{background:#e3f5e9;color:#176e3a}.request-payment.unpaid{background:#f0f2f7;color:#616a82}.request-primary{display:block;color:#15255e;font-weight:900}.request-secondary{display:block;margin-top:3px;color:#7c849b;font-size:.73rem}.request-age{font-weight:900;color:#a34235}.customer-request-detail{padding:22px;min-height:520px}.customer-request-detail-empty{display:grid;place-items:start;align-content:center;min-height:420px;padding:24px}.customer-request-detail-empty h2{font-size:1.8rem;margin:8px 0}.customer-request-detail-empty p{color:#7b849c;line-height:1.6}.customer-requests-nav-count{display:inline-grid;place-items:center;min-width:21px;height:21px;margin-left:4px;border-radius:999px;background:#c43d37;color:#fff;font-size:.68rem}.request-detail-head{display:flex;justify-content:space-between;gap:12px;padding-bottom:16px;border-bottom:1px solid #e1e5ef}.request-detail-head h2{margin:4px 0}.request-detail-section{padding:16px 0;border-bottom:1px solid #e5e8f0}.request-detail-section h3{margin:0 0 10px;font-size:.82rem;text-transform:uppercase;letter-spacing:.08em;color:#7a8298}.request-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.request-detail-grid div,.request-payment-card{padding:11px;border-radius:12px;background:#f5f7fb}.request-detail-grid span,.request-payment-card span{display:block;font-size:.68rem;color:#7d859c}.request-detail-grid b,.request-payment-card b{display:block;margin-top:4px}.request-payment-card{background:#eef2ff}.request-payment-row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.request-payment-row b{font-size:1.1rem}.request-detail-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.request-detail-actions button{border:1px solid #cfd6e8;border-radius:11px;padding:10px 12px;background:#fff;color:#2f45b5;font-weight:850}.request-detail-actions button.primary{background:#3a50c4;color:#fff;border-color:#3a50c4}@media(max-width:1100px){.customer-request-kpis{grid-template-columns:repeat(3,1fr)}.customer-request-workspace{grid-template-columns:1fr}.customer-request-detail{min-height:auto}.customer-request-filters{grid-template-columns:1fr 1fr}}@media(max-width:700px){.customer-requests-view{padding:16px 12px 40px}.customer-requests-hero{align-items:flex-start;flex-direction:column;padding:22px}.customer-request-kpis{display:flex;overflow:auto}.customer-request-kpis button{min-width:145px}.customer-request-filters{grid-template-columns:1fr}.customer-request-detail{padding:16px}}

.master-data-view{padding:28px clamp(22px,4vw,56px) 64px;background:#f4f6fb;min-height:calc(100vh - 72px);color:#15255e}.master-data-hero{display:flex;justify-content:space-between;align-items:center;gap:22px;padding:28px 34px;border-radius:28px;background:linear-gradient(118deg,#1b295f,#435dcc);color:#fff}.master-data-hero.supplier{background:linear-gradient(118deg,#23325e,#3c6a87)}.master-data-hero span{font-size:.7rem;font-weight:900;letter-spacing:.14em;color:#ffb8b3}.master-data-hero h1{margin:5px 0;font-size:2.4rem}.master-data-hero p{margin:0;color:#e7ecff}.master-data-hero button{border:0;border-radius:13px;padding:13px 18px;background:#fff;color:#3148b7;font-weight:900}.master-data-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:18px 0}.master-data-kpis article{padding:18px 20px;border:1px solid #d8deec;border-radius:18px;background:#fff}.master-data-kpis span,.master-data-kpis small{display:block;color:#7a839a}.master-data-kpis strong{display:block;margin:4px 0;color:#17255d;font-size:1.8rem}.master-data-panel{border:1px solid #d8deec;border-radius:22px;background:#fff;overflow:hidden}.master-data-filters{display:grid;grid-template-columns:minmax(300px,1fr) minmax(130px,180px) auto;gap:10px;padding:16px;border-bottom:1px solid #e1e5ef}.master-data-filters label{position:relative}.master-data-filters label span{position:absolute;left:14px;top:12px;color:#c33b35}.master-data-filters input,.master-data-filters select,.master-data-filters button{width:100%;min-height:44px;border:1px solid #d4dbea;border-radius:12px;background:#fff;padding:0 13px;color:#17255d}.master-data-filters input{padding-left:38px}.master-data-filters button{font-weight:850;color:#3047b7}.master-data-message{min-height:0;margin:0;padding:0 16px;color:#a33d35}.master-data-table-wrap{overflow:auto}.master-data-table{width:100%;min-width:780px;border-collapse:collapse}.master-data-table th{padding:12px 16px;background:#f3f5fa;text-align:left;color:#798198;font-size:.68rem;text-transform:uppercase;letter-spacing:.08em}.master-data-table td{padding:14px 16px;border-top:1px solid #e5e8f0}.master-data-table b,.master-data-table small{display:block}.master-data-table small{margin-top:3px;color:#7d859b}.master-data-table button{border:1px solid #cfd6e8;border-radius:9px;background:#fff;color:#3047b7;padding:8px 10px;font-weight:800}.master-status{display:inline-flex;padding:6px 9px;border-radius:999px;background:#e3f5e9;color:#176e3a;font-size:.7rem;font-weight:900}.master-status.inactive{background:#f2f3f6;color:#6c7384}

.workflow-dialog{width:min(920px,calc(100vw - 28px));max-height:calc(100dvh - 28px);padding:0;border:0;border-radius:22px;background:#fff;color:#15255e;box-shadow:0 30px 80px rgba(9,20,58,.34);overflow:hidden}.workflow-dialog.compact{width:min(700px,calc(100vw - 28px))}.workflow-dialog::backdrop{background:rgba(10,18,51,.65)}.workflow-dialog-window{display:flex;flex-direction:column;width:100%;min-width:0;height:min(920px,calc(100dvh - 28px));max-height:calc(100dvh - 28px);overflow:hidden}.workflow-dialog-window>header{display:flex;flex:0 0 auto;justify-content:space-between;gap:18px;padding:18px 24px;border-bottom:1px solid #e0e4ee;background:#fff}.workflow-dialog-window>header span{font-size:.68rem;font-weight:900;letter-spacing:.13em;color:#c33b35}.workflow-dialog-window>header h2{margin:4px 0;font-size:1.45rem}.workflow-dialog-window>header p{margin:0;color:#747d96}.workflow-dialog-window>header button{flex:0 0 42px;height:42px;border:0;border-radius:11px;background:#f1f3f8;color:#35405d;font-size:1.15rem}.workflow-dialog-body{flex:1 1 auto;min-width:0;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.workflow-dialog-sections{width:100%;min-width:0}.workflow-dialog-window>section,.workflow-dialog-body>section,.workflow-dialog-sections>section{padding:16px 24px;border-bottom:1px solid #e4e7ef;overflow:visible}.workflow-dialog-window>section h3,.workflow-dialog-body>section h3,.workflow-dialog-sections>section h3{margin:0 0 11px;font-size:.78rem;text-transform:uppercase;letter-spacing:.08em;color:#7b8398}.workflow-section-heading{display:flex;justify-content:space-between;gap:12px;align-items:center}.workflow-form-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px 12px;min-width:0}.workflow-form-grid label{display:flex;min-width:0;flex-direction:column;gap:5px}.workflow-form-grid label.span-two{grid-column:1/-1}.workflow-form-grid label.checkbox{flex-direction:row;align-items:center;padding-top:22px}.workflow-form-grid label>span{font-size:.72rem;font-weight:850;color:#5f6985}.workflow-form-grid input,.workflow-form-grid select,.workflow-form-grid textarea{width:100%;max-width:100%;box-sizing:border-box;border:1px solid #d2d9e9;border-radius:11px;background:#fff;color:#14235b;padding:10px 12px;font:inherit}.workflow-form-grid textarea{resize:vertical}.workflow-dialog-window>footer{display:flex;flex:0 0 auto;justify-content:flex-end;gap:10px;padding:14px 24px;background:#fafbfe;border-top:1px solid #e4e7ef;box-shadow:0 -8px 20px rgba(14,29,75,.05)}.workflow-dialog-window>footer button{border:1px solid #ccd4e7;border-radius:11px;padding:11px 15px;background:#fff;color:#3047b8;font-weight:900}.workflow-dialog-window>footer button.primary{border-color:#3b50c5;background:#3b50c5;color:#fff}.workflow-form-message{min-height:20px;margin:0;padding:10px 24px;color:#a13c35}.workflow-form-message.success{color:#176e3a}.workflow-safety-note{display:flex;gap:10px;margin-top:14px;padding:12px;border-radius:12px;background:#fff4d9;color:#7d570c}.workflow-safety-note b,.workflow-safety-note span{display:block}.request-product-kind{display:inline-flex;padding:6px 9px;border-radius:999px;font-size:.7rem;font-weight:900}.request-product-kind.temporary{background:#fff1da;color:#8a5700}.request-product-kind.catalogued{background:#e4f4e9;color:#176e3a}.request-product-matches{margin-top:14px;padding:13px;border-radius:14px;background:#f2f5ff}.request-product-matches>div:first-child b,.request-product-matches>div:first-child span{display:block}.request-product-match{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:8px;padding:10px;border-radius:10px;background:#fff}.request-product-match button{border:0;border-radius:9px;padding:8px 10px;background:#3a50c4;color:#fff;font-weight:800}.request-payment-dialog-summary{display:grid!important;grid-template-columns:repeat(3,1fr);gap:10px}.request-payment-dialog-summary div{padding:14px;border-radius:13px;background:#eef2ff}.request-payment-dialog-summary span,.request-payment-dialog-summary b{display:block}.request-payment-dialog-summary span{font-size:.7rem;color:#77809a}.request-payment-dialog-summary b{margin-top:4px;font-size:1.25rem}.request-timeline{display:grid;gap:10px}.request-timeline article{position:relative;padding-left:20px}.request-timeline article:before{content:"";position:absolute;left:2px;top:5px;width:9px;height:9px;border-radius:50%;background:#4056c8}.request-timeline article:after{content:"";position:absolute;left:6px;top:16px;bottom:-12px;width:1px;background:#d6dced}.request-timeline article:last-child:after{display:none}.request-timeline b,.request-timeline span,.request-timeline small{display:block}.request-timeline span,.request-timeline small{color:#7b849b;font-size:.72rem}.request-payment-history{display:grid;gap:8px;margin-top:12px}.request-payment-history article{display:flex;justify-content:space-between;gap:10px;padding:10px;border-radius:11px;background:#f6f7fb}.request-payment-history b,.request-payment-history span{display:block}.request-payment-history span{font-size:.7rem;color:#7a8399}

@media(max-width:1100px){.customer-request-filters{grid-template-columns:1fr 1fr 1fr}.master-data-filters{grid-template-columns:1fr auto}.master-data-filters select{grid-column:1/-1}}@media(max-width:700px){.master-data-view{padding:16px 12px 40px}.master-data-hero{align-items:flex-start;flex-direction:column;padding:22px}.master-data-kpis{display:flex;overflow:auto}.master-data-kpis article{min-width:190px}.master-data-filters{grid-template-columns:1fr}.workflow-dialog{width:calc(100vw - 12px);max-height:calc(100dvh - 12px);border-radius:16px}.workflow-dialog-window{height:calc(100dvh - 12px);max-height:calc(100dvh - 12px)}.workflow-form-grid{grid-template-columns:minmax(0,1fr)}.workflow-form-grid label.span-two{grid-column:auto}.request-payment-dialog-summary{grid-template-columns:1fr}.workflow-dialog-window>section,.workflow-dialog-body>section,.workflow-dialog-sections>section{padding:14px 16px}.workflow-dialog-window>header,.workflow-dialog-window>footer{padding:14px 16px}.workflow-dialog-window>header h2{font-size:1.2rem}.workflow-dialog-window>header p{font-size:.82rem}.workflow-dialog-window>footer button{flex:1}.workflow-form-message{padding:10px 16px}}

/* Flujo integrado de cliente, encargo y abono. */
.request-customer-search{position:relative}.request-customer-search>small,.request-customer-save>small{color:#7b849b;font-size:.7rem}.request-customer-matches{position:absolute;z-index:20;left:0;right:0;top:66px;max-height:220px;overflow:auto;border:1px solid #cfd6e8;border-radius:12px;background:#fff;box-shadow:0 16px 36px rgba(14,29,75,.18)}.request-customer-matches button{display:grid;width:100%;gap:3px;padding:11px 13px;border:0;border-bottom:1px solid #e6e9f1;background:#fff;text-align:left;color:#15255e}.request-customer-matches button:last-child{border-bottom:0}.request-customer-matches button:hover,.request-customer-matches button:focus{background:#eef2ff}.request-customer-matches b{font-size:.82rem}.request-customer-matches span{font-size:.72rem;color:#737d97}.request-customer-empty{padding:12px;color:#7b849b;font-size:.76rem}.request-customer-save{display:grid!important;grid-template-columns:auto 1fr;column-gap:8px;align-items:center;padding:10px 12px;border:1px solid #dfe4ef;border-radius:11px;background:#f8f9fc}.request-customer-save input{width:auto!important;grid-row:1/3}.request-customer-save span,.request-customer-save small{grid-column:2}.workflow-footer-actions{display:flex;gap:10px}.request-immediate-payment>.workflow-section-heading{margin-bottom:14px}.request-immediate-payment>.workflow-section-heading p{margin:4px 0 0;color:#747d96}.request-immediate-payment-fields{margin-top:14px}.request-immediate-payment .workflow-form-message{padding:10px 0}.workflow-form-message.warning{color:#8a5700}.request-fiscal-retry{border:1px solid #c53c36;border-radius:11px;padding:10px 13px;background:#fff;color:#a43833;font-weight:900}.request-product-kind.catalog{background:#e4f4e9;color:#176e3a}
.request-payment-point-help{margin-top:1px;color:#737d97;font-size:.7rem;line-height:1.35}.workflow-form-grid select.request-payment-point-missing{border-color:#d9a74b;background:#fff9e9;color:#7d570c}.workflow-form-grid select option:disabled{color:#8a91a4}
.request-cart-selection{margin:0 0 14px;padding:13px;border:1px solid #d5dced;border-radius:14px;background:#f5f7ff}.request-cart-selection-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.request-cart-selection-head b,.request-cart-selection-head span{display:block}.request-cart-selection-head span,.request-cart-selection>small{margin-top:3px;color:#737d97;font-size:.7rem}.request-cart-selection-head button{flex:0 0 auto;border:1px solid #c7d0e8;border-radius:9px;padding:8px 10px;background:#fff;color:#3048b9;font-size:.72rem;font-weight:900}.request-cart-selection-rows{display:grid;gap:7px;margin:10px 0}.request-cart-selection-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:9px;align-items:center;padding:9px 10px;border:1px solid #dfe4f0;border-radius:11px;background:#fff}.request-cart-selection-row input{width:17px;height:17px}.request-cart-selection-row b,.request-cart-selection-row small{display:block}.request-cart-selection-row small{margin-top:2px;color:#788199;font-size:.68rem}.request-cart-selection-row strong{white-space:nowrap;color:#192962}.request-detail-items{display:grid;gap:8px;margin-bottom:12px}.request-detail-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:10px 11px;border-radius:11px;background:#f5f7fb}.request-detail-item b,.request-detail-item small{display:block}.request-detail-item small{margin-top:3px;color:#7b8499;font-size:.68rem}.request-detail-item strong{white-space:nowrap;color:#192962}

@media(max-height:820px) and (min-width:701px){.workflow-dialog{max-height:calc(100dvh - 16px)}.workflow-dialog-window{height:calc(100dvh - 16px);max-height:calc(100dvh - 16px)}.workflow-dialog-window>header{padding:13px 20px}.workflow-dialog-window>header h2{font-size:1.25rem}.workflow-dialog-body>section,.workflow-dialog-sections>section{padding:12px 20px}.workflow-form-grid input,.workflow-form-grid select,.workflow-form-grid textarea{padding:8px 10px}.workflow-dialog-window>footer{padding:10px 20px}}
@media(max-width:700px){.workflow-footer-actions{display:grid;grid-template-columns:1fr;width:100%}.workflow-dialog-window>footer{flex-wrap:wrap}.request-customer-matches{position:static;margin-top:5px}.request-immediate-payment>.workflow-section-heading{align-items:flex-start}.request-immediate-payment>.workflow-section-heading .request-payment{flex:0 0 auto}.request-cart-selection-head{flex-direction:column}.request-cart-selection-row{grid-template-columns:auto minmax(0,1fr)}.request-cart-selection-row strong{grid-column:2}}
.empty [data-create-uncatalogued-request]{display:block;margin:14px auto 0;min-height:38px;padding:0 15px;border:1px solid #bcc9ed;border-radius:10px;background:#eef2ff;color:#2948b8;font-size:11px;font-weight:950;cursor:pointer}
.request-timeline{display:grid;gap:10px;margin:10px 0 0;padding:0;list-style:none}.request-timeline li{display:grid;grid-template-columns:12px minmax(0,1fr);gap:8px;align-items:start}.request-timeline i{width:9px;height:9px;margin-top:4px;border:2px solid #3150c8;border-radius:50%;background:#fff}.request-timeline b,.request-timeline span{display:block}.request-timeline b{color:#17265b;font-size:10px}.request-timeline span{margin-top:2px;color:#7a8498;font-size:8px;line-height:1.4}

/* Encargo con múltiples artículos: ventana amplia y datos comerciales por línea. */
.workflow-dialog:not(.compact){width:min(1240px,calc(100vw - 24px))}.request-cart-selection{padding:16px;background:#f3f6ff}.request-cart-selection-rows{gap:10px}.request-cart-selection-row{display:grid;grid-template-columns:62px minmax(190px,.72fr) minmax(520px,1.55fr);gap:14px;align-items:start;padding:14px;border-color:#d7deef;box-shadow:0 4px 12px rgba(22,39,94,.04)}.request-cart-selection-row.selected{border-color:#9aace4;box-shadow:0 0 0 2px rgba(63,83,191,.08)}.request-cart-selection-check{display:flex;align-items:center;gap:6px;padding-top:24px;color:#3047b8;font-size:.7rem;font-weight:900}.request-cart-selection-row .request-cart-selection-check input{width:18px;height:18px;margin:0}.request-cart-line-main{padding-top:20px;min-width:0}.request-cart-line-main b{overflow-wrap:anywhere;color:#15255e;font-size:.82rem}.request-cart-line-main small{margin-top:5px!important;line-height:1.35}.request-cart-line-fields{display:grid;grid-template-columns:minmax(150px,1.25fr) minmax(135px,1fr) 90px 112px 112px;gap:8px;align-items:end}.request-cart-line-fields label{display:grid;gap:5px;min-width:0}.request-cart-line-fields label>span,.request-cart-line-total>span{color:#68728d;font-size:.64rem;font-weight:850}.request-cart-line-fields input,.request-cart-line-fields select{width:100%;height:39px;box-sizing:border-box;border:1px solid #ccd5e8;border-radius:9px;background:#fff;color:#14235b;padding:0 9px;font:inherit;font-size:.76rem}.request-cart-line-fields input[type="number"]{text-align:right}.request-cart-line-total{display:grid;align-content:end;gap:5px;min-height:60px;padding:0 4px 4px}.request-cart-line-total strong{font-size:.84rem}.request-cart-selection>small{display:block;margin-top:10px!important;font-weight:850;color:#263d9e}.request-detail-item small+small{margin-top:5px;color:#475577}
@media(max-width:980px){.request-cart-selection-row{grid-template-columns:62px minmax(0,1fr)}.request-cart-line-fields{grid-column:1/-1;grid-template-columns:minmax(180px,1.25fr) minmax(150px,1fr) 90px 112px 112px}.request-cart-line-main{padding-top:18px}}
@media(max-width:700px){.workflow-dialog:not(.compact){width:calc(100vw - 12px)}.request-cart-selection-row{grid-template-columns:54px minmax(0,1fr);padding:11px;gap:10px}.request-cart-line-fields{grid-template-columns:1fr 1fr}.request-cart-line-fields label.supplier{grid-column:1/-1}.request-cart-line-total{min-height:0;padding:4px 2px}.request-cart-selection-check{padding-top:19px}.request-cart-line-main{padding-top:14px}}
.request-immediate-payment-fields input:disabled,.request-immediate-payment-fields select:disabled{background:#f1f3f8;color:#7b849a;cursor:not-allowed}.workflow-dialog-window>footer button:disabled{border-color:#d9deea;background:#eef1f6;color:#778098;cursor:not-allowed}.workflow-dialog-window>footer #customerRequestImmediateAnother{border-color:#8fa0da;background:#eef2ff;color:#2f47b8}

/* Logística mixta: proveedor o traslado se define en cada artículo. */
.request-cart-line-fields{grid-template-columns:minmax(145px,1.05fr) minmax(175px,1.25fr) minmax(125px,.95fr) 78px 108px 94px}.request-cart-line-fields label[hidden]{display:none}.request-cart-line-fields label.origin select{border-color:#9daee0;background:#f7f9ff;font-weight:850}.request-cart-line-fields label.supplier select,.request-cart-line-fields label.origin-branch select{border-color:#b7c4e7}.request-mixed-origin-help{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid #cdd7f0;border-radius:12px;background:#f1f5ff;color:#263b91}.request-mixed-origin-help[hidden]{display:none}.request-mixed-origin-help b{white-space:nowrap}.request-mixed-origin-help span{color:#5e6c91;font-size:.76rem;line-height:1.4}
@media(max-width:1080px){.request-cart-selection-row{grid-template-columns:58px minmax(0,1fr)}.request-cart-line-fields{grid-column:1/-1;grid-template-columns:minmax(145px,1fr) minmax(175px,1.25fr) minmax(125px,.9fr) 78px 108px 94px}}
@media(max-width:860px){.request-cart-line-fields{grid-template-columns:repeat(3,minmax(0,1fr))}.request-cart-line-total{min-height:0;padding:4px 2px}}
@media(max-width:600px){.request-cart-line-fields{grid-template-columns:1fr 1fr}.request-cart-line-fields label.origin,.request-cart-line-fields label.supplier,.request-cart-line-fields label.origin-branch{grid-column:1/-1}.request-mixed-origin-help{align-items:flex-start;flex-direction:column;gap:4px}}

/* Señal visual clara al pasar desde la ficha del encargo al abono. */
#customerRequestImmediatePayment .workflow-section-heading{margin:-2px 0 16px;padding:14px 16px;border:1px solid #cbd5f0;border-left:6px solid #c53c36;border-radius:13px;background:linear-gradient(105deg,#eef2ff,#f8f9ff);box-shadow:0 5px 14px rgba(31,49,117,.07)}#customerRequestImmediatePayment .workflow-section-heading h3{margin:0 0 5px;color:#17265d;font-size:1.02rem;letter-spacing:.045em}#customerRequestImmediatePayment .workflow-section-heading p{margin:0;color:#65708e;line-height:1.45}

/* Alineación segura del formulario principal, incluso si el navegador conservó desplazamiento lateral. */
#customerRequestDialog #customerRequestFormSections{width:100%;max-width:100%;margin:0}
#customerRequestDialog #customerRequestFormSections>section{width:100%;max-width:100%;margin:0;padding-left:28px!important;padding-right:28px!important}
@media(max-width:700px){#customerRequestDialog #customerRequestFormSections>section{padding-left:18px!important;padding-right:18px!important}}

/* Listado más compacto: cliente al triple y repuesto al doble del ancho original visible. */
.customer-request-table{min-width:1400px;table-layout:fixed}
.customer-request-table .request-col-status{width:110px}
.customer-request-table .request-col-customer{width:330px}
.customer-request-table .request-col-product{width:270px}
.customer-request-table .request-col-origin{width:300px}
.customer-request-table .request-col-delivery{width:140px}
.customer-request-table .request-col-payment{width:210px}
.customer-request-table .request-col-action{width:40px}
.customer-request-table th,.customer-request-table td{padding-top:10px;padding-bottom:10px}
.customer-request-table td:nth-child(2) .request-primary,.customer-request-table td:nth-child(2) .request-secondary,.customer-request-table td:nth-child(3) .request-primary,.customer-request-table td:nth-child(3) .request-secondary{line-height:1.25}

/* Opción 3: listado compacto y detalle lateral expandible. */
.customer-request-table-wrap{overflow:visible}
.customer-request-table{min-width:0;table-layout:auto}
.customer-request-table th{padding:12px 14px}
.customer-request-table td{padding:0}
.request-list-card{padding:13px 14px}
.request-list-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.request-list-card-head .request-primary{min-width:0}
.request-list-card .request-list-product{margin-top:7px;color:#4f5e82;font-weight:850}
.request-list-card .request-order-date{display:block;margin-top:7px;color:#747f9a;font-size:.73rem}
.request-list-card .request-order-date b{color:#17265d}
.request-detail-head-actions{display:grid;justify-items:end;gap:9px;text-align:right}
.request-detail-head-actions>strong{color:#17265d;font-size:1.2rem}
.request-detail-head-actions button{border:1px solid #aebbe3;border-radius:10px;padding:9px 11px;background:#f2f5ff;color:#3048b8;font-weight:850;white-space:nowrap}
.request-detail-order-date{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:14px;padding:12px 14px;border-left:5px solid #c53c36;border-radius:11px;background:#f1f4fd}
.request-detail-order-date span{color:#747e98}
.request-detail-order-date b{color:#17265d;white-space:nowrap}
.customer-request-workspace.detail-expanded{display:block}
.customer-request-workspace.detail-expanded .customer-request-list-panel{display:none}
.customer-request-workspace.detail-expanded .customer-request-detail{width:100%}
.customer-request-list-panel .customer-request-filters{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.customer-request-list-panel .customer-request-filters label.search{grid-column:1/-1}
@media(min-width:1101px){.customer-request-workspace{grid-template-columns:minmax(360px,.82fr) minmax(0,1.65fr);align-items:start}}
@media(min-width:701px) and (max-width:1100px){.customer-request-list-panel .customer-request-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.customer-request-list-panel .customer-request-filters label.search{grid-column:span 2}}
@media(max-width:700px){.customer-request-list-panel .customer-request-filters{grid-template-columns:1fr}.customer-request-list-panel .customer-request-filters label.search{grid-column:auto}.request-detail-head{align-items:flex-start}.request-detail-order-date{align-items:flex-start;flex-direction:column;gap:4px}.request-detail-order-date b{white-space:normal}}

/* Encargo manual con varios repuestos: una tarjeta completa por línea. */
.request-manual-items{display:grid;gap:12px}
.request-manual-item-rows{display:grid;gap:14px}
.request-manual-item{overflow:hidden;border:1px solid #d7deef;border-radius:14px;background:#fff;box-shadow:0 4px 14px rgba(22,39,94,.05)}
.request-manual-item-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center;padding:13px 15px;background:#f1f4ff;border-bottom:1px solid #d7deef}
.request-manual-item-head>div{min-width:0}
.request-manual-item-head span,.request-manual-item-head b,.request-manual-item-head small{display:block}
.request-manual-item-head span{color:#6e7892;font-size:.68rem;font-weight:900;text-transform:uppercase;letter-spacing:.04em}
.request-manual-item-head b{margin-top:3px;overflow-wrap:anywhere;color:#16265e;font-size:.9rem}
.request-manual-item-head small{margin-top:3px;color:#76819b;font-size:.69rem}
.request-manual-item-head>div:last-child{display:grid;justify-items:end;gap:3px;text-align:right}
.request-manual-item-head strong{color:#2943ae;font-size:.9rem;white-space:nowrap}
.request-manual-remove{border:0;padding:4px 0;background:transparent;color:#a33e37;font:inherit;font-size:.68rem;font-weight:900;cursor:pointer}
.request-manual-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;padding:14px 15px}
.request-manual-fields label,.request-manual-logistics label{display:grid;gap:6px;min-width:0}
.request-manual-fields label.name,.request-manual-fields label.vehicle{grid-column:span 2}
.request-manual-fields label>span,.request-manual-logistics label>span{color:#5f6984;font-size:.69rem;font-weight:900}
.request-manual-fields input,.request-manual-logistics select{width:100%;height:41px;box-sizing:border-box;border:1px solid #cbd4e8;border-radius:10px;background:#fff;color:#14235b;padding:0 11px;font:inherit;font-size:.78rem}
.request-manual-fields input[type="number"]{text-align:right}
.request-manual-logistics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;padding:0 15px 14px}
.request-manual-logistics:before{content:"Logística de este repuesto";grid-column:1/-1;padding-top:11px;border-top:1px solid #e1e6f1;color:#263b91;font-size:.69rem;font-weight:900}
.request-manual-add{width:100%;min-height:43px;border:1px dashed #91a3db;border-radius:11px;background:#f3f6ff;color:#2e47b6;font:inherit;font-size:.74rem;font-weight:900;cursor:pointer}
.request-manual-summary{display:flex;align-items:center;justify-content:flex-end;gap:18px;padding:2px 4px;color:#65708a;font-size:.72rem}
.request-manual-summary strong{color:#17275e;font-size:.92rem}
.request-fulfillment-overview{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px;margin-bottom:12px;background:#eef2ff;border-radius:12px;font-size:.875rem}
.request-fulfillment-overview>div:first-child{display:grid;gap:4px}.request-fulfillment-overview>div:last-child{display:flex;gap:12px;flex-wrap:wrap}
.request-fulfillment-line{border:1px solid #d9dfed;border-radius:12px;overflow:hidden;background:#fff}
.request-fulfillment-line>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px;cursor:pointer;background:#f5f7fb;list-style:none}
.request-fulfillment-line>summary:before{content:'▸';color:#3a50c4}.request-fulfillment-line[open]>summary:before{content:'▾'}
.request-fulfillment-line-main{min-width:0;flex:1}.request-fulfillment-line-main b,.request-fulfillment-line-main small{display:block;overflow-wrap:anywhere}.request-fulfillment-line-main small{margin-top:5px;font-size:.8125rem;color:#64708b}
.request-fulfillment-line-progress{display:grid;gap:5px;min-width:135px;font-size:.875rem}.request-fulfillment-line-progress i{height:5px;background:#dce2ee;border-radius:6px;overflow:hidden}.request-fulfillment-line-progress em{display:block;height:100%;background:#3a50c4}
.request-fulfillment-chip{font-size:.8125rem;font-weight:800;color:#44516c}.request-fulfillment-chip.received{color:#176e3a}.request-fulfillment-chip.in_transit{color:#3048b6}
.request-fulfillment-line-body{padding:14px}.request-fulfillment-line-totals,.request-fulfillment-counts{display:flex;flex-wrap:wrap;gap:10px;font-size:.8125rem;color:#64708b;margin-bottom:10px}
.request-fulfillment-records{display:grid;gap:10px}.request-fulfillment-record{padding:12px;border:1px solid #e1e5ef;border-radius:10px}.request-fulfillment-record-head{display:flex;gap:10px;justify-content:space-between;margin-bottom:10px}.request-fulfillment-record-head span,.request-fulfillment-record small{display:block;font-size:.8125rem;margin-top:4px;overflow-wrap:anywhere}
.request-fulfillment-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.request-fulfillment-actions button,.request-fulfillment-create{border:1px solid #ccd5e8;border-radius:9px;padding:9px 12px;background:white;color:#3048b6;font-size:.875rem;font-weight:800}.request-fulfillment-create{margin-top:12px}.request-fulfillment-actions button.danger{color:#a34235}
.request-fulfillment-commercial-pending{color:#176e3a}.request-fulfillment-empty,.request-fulfillment-loading{font-size:.875rem;color:#64708b}.request-fulfillment-dialog-summary{margin-bottom:16px;font-weight:800;line-height:1.5}.request-fulfillment-safety{display:block;font-size:.875rem;line-height:1.5}
@media(max-width:700px){.request-fulfillment-line>summary{flex-wrap:wrap}.request-fulfillment-line-progress{margin-left:20px;width:100%}.request-fulfillment-record-head{flex-direction:column}}
@media(max-width:900px){.request-manual-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.request-manual-logistics{grid-template-columns:1fr 1fr}.request-manual-logistics label:first-of-type{grid-column:1/-1}}
@media(max-width:700px){.request-manual-item-head{grid-template-columns:1fr}.request-manual-item-head>div:last-child{justify-items:start;text-align:left}.request-manual-fields,.request-manual-logistics{grid-template-columns:1fr}.request-manual-fields label.name,.request-manual-fields label.vehicle,.request-manual-logistics label:first-of-type{grid-column:auto}.request-manual-summary{align-items:flex-end;flex-direction:column;gap:3px}}

/* Devoluciones de encargos: resumen compacto y operación por artículo. */
.request-return-summary{border:1px solid #d9dfed;border-radius:12px;background:#fff;overflow:hidden}.request-return-summary>summary{padding:13px 14px;background:#f5f7fb;cursor:pointer;list-style:none}.request-return-summary>summary:before{content:'▸';margin-right:8px;color:#3a50c4}.request-return-summary[open]>summary:before{content:'▾'}.request-return-summary>summary span,.request-return-summary>summary b,.request-return-summary>summary small{display:inline}.request-return-summary>summary small{margin-left:8px;color:#65708b}.request-return-body{display:grid;gap:10px;padding:13px}.request-return-line,.request-return-pending{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 11px;border:1px solid #e1e5ef;border-radius:10px;background:#fff}.request-return-line b,.request-return-line small,.request-return-pending b,.request-return-pending small{display:block}.request-return-line small,.request-return-pending small{margin-top:3px;color:#6f7891;font-size:.75rem}.request-return-line strong{white-space:nowrap;color:#2c45b3}.request-return-body>button,.request-return-pending button{justify-self:start;border:1px solid #cbd4e8;border-radius:9px;padding:9px 12px;background:#fff;color:#3048b6;font-weight:850}.request-return-body>button.primary{border-color:#3a50c4;background:#3a50c4;color:#fff}.request-return-pending-list{display:grid;gap:8px;padding-top:5px;border-top:1px solid #e5e8f0}.request-return-pending-list h4{margin:4px 0;color:#17265d}.request-return-dialog .workflow-dialog-body{padding:0 24px 16px}.request-return-dialog .workflow-dialog-body>section{padding:16px 0}.request-return-choices{display:grid;gap:9px;margin-top:12px}.request-return-choice{display:grid;grid-template-columns:auto minmax(0,1fr) 92px 150px;gap:10px;align-items:end;padding:11px;border:1px solid #dbe1ee;border-radius:11px;background:#f8f9fc}.request-return-choice>input{width:18px;height:18px;align-self:center}.request-return-choice b,.request-return-choice small{display:block}.request-return-choice small{margin-top:3px;color:#6d7790;font-size:.72rem}.request-return-choice label{display:grid;gap:4px;color:#65708b;font-size:.68rem;font-weight:850}.request-return-choice input[type=number],.request-return-choice select,.request-return-dialog #customerRequestReturnLocation{width:100%;box-sizing:border-box;border:1px solid #ccd5e8;border-radius:9px;background:#fff;padding:9px;color:#17265d}.request-return-dialog .workflow-safety-note{font-size:.8rem;line-height:1.45}
@media(max-width:700px){.request-return-choice{grid-template-columns:auto minmax(0,1fr)}.request-return-choice label{grid-column:2}.request-return-line,.request-return-pending{align-items:flex-start;flex-direction:column}.request-return-summary>summary small{display:block;margin:4px 0 0 22px}.request-return-dialog .workflow-dialog-body{padding:0 16px 12px}}
.request-payment-reconcile{width:100%;min-height:42px;padding:11px 14px;border:1px solid #c59b4c;border-radius:11px;background:#fff6df;color:#704b0b;font:inherit;font-size:.86rem;font-weight:750;line-height:1.4;cursor:pointer;text-wrap:balance}
.request-payment-reconcile:hover{background:#ffedc2;border-color:#9a701f}
.request-payment-reconcile:focus-visible{outline:3px solid #4760bd;outline-offset:3px}
.request-payment-reconcile:disabled{opacity:.65;cursor:wait}
