/* Artículo 360 · trazabilidad comercial: pedidos, albaranes y presupuestos reales. */
.warehouse-supply-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:12px}.warehouse-supply-summary-card,.warehouse-supply-trace-card{border:1px solid #cfe0f8;border-radius:14px;background:#fff;box-shadow:0 3px 12px rgba(17,67,131,.05)}.warehouse-supply-summary-card{padding:15px;background:linear-gradient(145deg,#f7fbff,#fff)}.warehouse-supply-summary-card small,.warehouse-supply-trace-card small{display:block;color:#52709a;font-size:.76rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase}.warehouse-supply-summary-card strong{display:block;margin-top:5px;color:#073d87;font-size:1.15rem;line-height:1.25}.warehouse-supply-summary-card span{display:block;margin-top:5px;color:#5d718f;font-size:.88rem}.warehouse-supply-section{margin:14px 0 8px;color:#082e68;font-size:1rem;font-weight:900}.warehouse-supply-trace{display:grid;gap:9px}.warehouse-supply-trace-card{display:grid;grid-template-columns:minmax(160px,1.1fr) minmax(180px,1.4fr) minmax(180px,1.2fr);gap:14px;align-items:start;padding:14px 16px}.warehouse-supply-trace-title{display:flex;align-items:center;gap:9px;color:#073d87;font-weight:900}.warehouse-supply-trace-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#eaf3ff;color:#0863cb;font-size:1rem}.warehouse-supply-trace-title span{display:block;color:#6c7e98;font-size:.8rem;font-weight:700;margin-top:2px}.warehouse-supply-trace-data{color:#304d78;font-size:.88rem;line-height:1.52}.warehouse-supply-trace-data b{color:#0b356e}.warehouse-supply-documents{display:flex;flex-wrap:wrap;gap:7px;align-content:flex-start}.warehouse-supply-document{display:inline-flex;align-items:center;gap:6px;border:1px solid #94bdf1;border-radius:8px;padding:6px 8px;color:#075abb;background:#f6fbff;font-size:.78rem;font-weight:800;text-decoration:none;max-width:100%}.warehouse-supply-document:hover{background:#eaf4ff;color:#063c83}.warehouse-supply-no-document{display:block;color:#71819a;font-size:.8rem;font-style:italic;padding-top:4px}@media (max-width:900px){.warehouse-supply-summary{grid-template-columns:1fr}.warehouse-supply-trace-card{grid-template-columns:1fr;gap:8px}}
.warehouse-supply-summary>article{padding:15px;border:1px solid #cfe0f8;border-radius:14px;background:linear-gradient(145deg,#f7fbff,#fff);box-shadow:0 3px 12px rgba(17,67,131,.05)}.warehouse-supply-summary>article b{display:block;margin-top:5px;color:#073d87;font-size:1.15rem;line-height:1.25}.warehouse-supply-trace>header{padding:2px 2px 5px}.warehouse-supply-trace>header h3{margin:3px 0 0;color:#073d87;font-size:1.06rem}.warehouse-supply-trace-card header{display:grid;gap:3px}.warehouse-supply-trace-card header>b{color:#073d87;line-height:1.35}.warehouse-supply-status{justify-self:start;border-radius:999px;background:#e7f6eb;color:#197a42;padding:4px 8px;font-size:.72rem;font-weight:800}.warehouse-supply-meta{display:flex;flex-wrap:wrap;gap:11px 18px;color:#304d78;font-size:.87rem}.warehouse-supply-meta>span{display:grid;gap:2px}.warehouse-supply-trace-card p{margin:0;color:#5b7190;font-size:.86rem;line-height:1.4}.warehouse-supply-documents a{display:inline-flex;align-items:center;gap:6px;border:1px solid #94bdf1;border-radius:8px;padding:6px 8px;color:#075abb;background:#f6fbff;font-size:.78rem;font-weight:800;text-decoration:none;max-width:100%}.warehouse-supply-documents a:hover{background:#eaf4ff;color:#063c83}.warehouse-supply-document-missing{display:block;color:#71819a;font-size:.8rem;font-style:italic}
.warehouse-supply-line-table{display:grid;gap:6px}.warehouse-supply-line-header,.warehouse-supply-line{display:grid;grid-template-columns:140px 280px 1.2fr 120px 220px minmax(220px,1.7fr) 130px 230px 150px;align-items:start;border:1px solid #d8e7f9;border-radius:10px;background:#fff}.warehouse-supply-line-header{background:#ecf4ff;font-weight:700;color:#0c4b89}.warehouse-supply-line{background:#fbfdff}.warehouse-supply-line-cell,.warehouse-supply-line-header>.warehouse-supply-line-cell{padding:8px 8px;color:#223d68;font-size:.82rem;line-height:1.35;word-break:break-word}.warehouse-supply-line-cell .warehouse-supply-document{margin-top:2px;white-space:nowrap}.warehouse-supply-line-cell .warehouse-supply-document-missing{display:block;white-space:nowrap}
@media (max-width:1280px){.warehouse-supply-line-table{overflow-x:auto;padding-bottom:4px}}

/* Contrato visual SmartWarehouse: operación industrial amplia y conectada. */
/* Tabla operativa de ubicaciones: la misma fuente de datos que el plano físico. */
.warehouse-location-table-wrap th.warehouse-sortable-column{padding:0;background:#f4f8ff;white-space:nowrap}
.warehouse-location-table-wrap th.warehouse-sortable-column button{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;border:0;background:transparent;color:#23466f;font:inherit;font-weight:800;padding:12px 14px;cursor:pointer;text-align:left}
.warehouse-location-table-wrap th.warehouse-sortable-column button:hover,.warehouse-location-table-wrap th.warehouse-sortable-column.is-sorted button{background:#e5f0ff;color:#075fc8}
.warehouse-location-table-wrap th.warehouse-sortable-column button span{font-size:13px;color:#0b70d1}
.warehouse-location-tabs{display:flex;gap:8px;align-items:center;padding:0 0 12px;border-bottom:1px solid #d9e5f5}.warehouse-location-tabs button{appearance:none;border:1px solid #bdd4f2;border-radius:9px;background:#fff;color:#074899;font:700 14px/1.2 "Segoe UI",sans-serif;padding:10px 14px;cursor:pointer}.warehouse-location-tabs button:hover,.warehouse-location-tabs button.active{background:#eaf3ff;border-color:#176cc9;color:#063d83}.warehouse-location-table-panel{min-height:0;padding:20px}.warehouse-location-table-head{display:flex;align-items:start;justify-content:space-between;gap:18px;padding:18px 0}.warehouse-location-table-head small{display:block;color:#42658d;font-weight:800;letter-spacing:.06em}.warehouse-location-table-head h2{margin:4px 0 6px;color:#092d62;font-size:25px}.warehouse-location-table-head p{margin:0;color:#5c7395}.warehouse-location-table-head>b{flex:0 0 auto;padding:10px 13px;border-radius:9px;background:#edf6ff;color:#0759bd}.warehouse-location-filters{display:grid;grid-template-columns:minmax(230px,2fr) repeat(3,minmax(145px,1fr));gap:12px;padding:14px;border:1px solid #d8e6f6;border-radius:12px;background:#f8fbff}.warehouse-location-filters label{display:grid;gap:6px;color:#315274;font-size:13px;font-weight:800}.warehouse-location-filters input,.warehouse-location-filters select{width:100%;min-height:40px;padding:8px 10px;border:1px solid #bdd3ee;border-radius:8px;background:#fff;color:#092d62;font:500 14px "Segoe UI",sans-serif}.warehouse-location-table-wrap{margin-top:16px;overflow:auto;border:1px solid #d5e2f3;border-radius:12px}.warehouse-location-table-wrap table{width:100%;min-width:780px;border-collapse:collapse;background:#fff}.warehouse-location-table-wrap th{padding:12px;text-align:left;background:#f1f7ff;color:#486989;font-size:12px;letter-spacing:.03em}.warehouse-location-table-wrap td{padding:12px;border-top:1px solid #e4edf8;color:#1f416d;font-size:14px}.warehouse-location-table-wrap tr:not(.warehouse-table-empty){cursor:pointer}.warehouse-location-table-wrap tbody tr:not(.warehouse-table-empty):hover,.warehouse-location-table-wrap tr.selected-row{background:#edf6ff}.warehouse-location-table-wrap td small{display:block;margin-top:3px;color:#66809f}.warehouse-location-status,.warehouse-location-type{display:inline-flex;align-items:center;border-radius:999px;padding:4px 8px;font-size:12px;font-weight:800}.warehouse-location-status.occupied{background:#fff1dd;color:#a35000}.warehouse-location-status.free{background:#e9f8ee;color:#17733f}.warehouse-location-type{background:#eef3fb;color:#456386}.warehouse-table-empty{text-align:center;color:#667e9d;padding:28px!important}@media(max-width:980px){.warehouse-location-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.warehouse-location-filters label:first-child{grid-column:1/-1}}@media(max-width:620px){.warehouse-location-table-panel{padding:14px}.warehouse-location-table-head{display:block}.warehouse-location-table-head>b{display:inline-block;margin-top:10px}.warehouse-location-filters{grid-template-columns:1fr}.warehouse-location-filters label:first-child{grid-column:auto}}

/* Inicio: indicadores visuales calculados únicamente desde las APIs de almacén. */
.warehouse-workspace:has(.warehouse-dashboard-compact){height:calc(100vh - 72px);box-sizing:border-box;overflow:hidden;padding:14px}.warehouse-dashboard-compact{display:grid;grid-template-rows:auto minmax(0,1fr);gap:13px;height:100%}.warehouse-dashboard-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.warehouse-dashboard-kpis button{display:grid;grid-template-columns:42px 1fr;grid-template-rows:auto auto auto;align-items:center;column-gap:9px;min-height:92px;padding:12px 14px;border:1px solid #d6e3f5;border-radius:11px;background:#fff;color:#073a7a;text-align:left;box-shadow:0 4px 14px #0d43850d}.warehouse-dashboard-kpis button:hover{border-color:#1265d8;background:#f2f7ff}.warehouse-dashboard-kpis span{grid-row:1/4;display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#edf5ff;color:#075bc9;font-size:21px}.warehouse-dashboard-kpis small{font-weight:800;font-size:12px}.warehouse-dashboard-kpis b{font-size:25px;line-height:1.05}.warehouse-dashboard-kpis em{font-size:11px;color:#587292;font-style:normal}.warehouse-dashboard-grid{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(240px,.82fr) minmax(240px,.82fr);gap:13px;min-height:0}.warehouse-dashboard-grid>article{display:grid;grid-template-rows:auto auto minmax(0,1fr);min-height:0;padding:16px;border:1px solid #d6e3f5;border-radius:12px;background:#fff;box-shadow:0 4px 14px #0d43850d}.warehouse-dashboard-grid header{display:flex;justify-content:space-between;align-items:flex-start;gap:9px}.warehouse-dashboard-grid header small{display:block;color:#5d7397;font-size:10px;font-weight:900;letter-spacing:.07em}.warehouse-dashboard-grid h2{margin:4px 0 0;color:#09285c;font-size:18px}.warehouse-dashboard-grid header .btn{min-height:32px;padding:6px 10px;font-size:12px}.warehouse-dashboard-grid dl{display:grid;gap:0;margin:12px 0 0}.warehouse-dashboard-grid dl div{display:flex;justify-content:space-between;gap:8px;padding:8px 0;border-bottom:1px solid #e5edf8}.warehouse-dashboard-grid dt{font-size:12px;color:#59708f}.warehouse-dashboard-grid dd{margin:0;color:#0754c4;font-size:15px;font-weight:800;text-align:right}.warehouse-dashboard-month .warehouse-movement-chart{min-height:70px;height:100%;max-height:124px;margin-top:12px;padding:8px 4px 0;gap:9px}.warehouse-dashboard-month .warehouse-movement-chart>div{min-width:42px;height:100%;gap:3px}.warehouse-dashboard-month .warehouse-movement-chart span{width:26px}.warehouse-dashboard-month .warehouse-movement-chart b{font-size:14px}.warehouse-dashboard-month .warehouse-movement-chart small{font-size:9px}.warehouse-dashboard-orders footer{display:flex;align-self:end;gap:8px;padding-top:12px}.warehouse-dashboard-orders footer .btn{flex:1;min-height:35px;padding:6px 8px;font-size:12px}@media(max-width:1120px){.warehouse-workspace:has(.warehouse-dashboard-compact){height:auto;overflow:visible}.warehouse-dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.warehouse-dashboard-orders{grid-column:1/-1}.warehouse-dashboard-grid>article{min-height:250px}}@media(max-width:760px){.warehouse-dashboard-kpis,.warehouse-dashboard-grid{grid-template-columns:1fr}.warehouse-dashboard-orders{grid-column:auto}.warehouse-workspace:has(.warehouse-dashboard-compact){height:auto;overflow:visible}}
.warehouse-dashboard-insights{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(280px,.8fr);gap:16px;margin:20px 0}.warehouse-dashboard-insights>article{min-height:250px;padding:20px;border:1px solid #d6e3f5;border-radius:13px;background:#fff;box-shadow:0 5px 18px #0d43850d}.warehouse-dashboard-insights header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.warehouse-dashboard-insights header small{display:block;color:#5d7397;font-size:11px;font-weight:800;letter-spacing:.04em}.warehouse-dashboard-insights h2{margin:5px 0 0;color:#09285c;font-size:20px}.warehouse-movement-chart{display:flex;align-items:end;gap:16px;min-height:157px;margin-top:22px;padding:12px 8px 0;border-bottom:2px solid #dbe7f5}.warehouse-movement-chart>div{display:grid;grid-template-rows:1fr auto auto;justify-items:center;min-width:72px;height:145px;gap:6px}.warehouse-movement-chart span{align-self:end;width:42px;min-height:9px;border-radius:8px 8px 0 0;background:linear-gradient(180deg,#39a1f0,#0759c9);box-shadow:0 3px 8px #0759c92b}.warehouse-movement-chart b{color:#073f8f;font-size:18px}.warehouse-movement-chart small{color:#59708f;font-size:11px;text-align:center}.warehouse-movement-chart>p{color:#607594}.warehouse-stock-health dl{display:grid;gap:0;margin:22px 0 0}.warehouse-stock-health dl div{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #e5edf8}.warehouse-stock-health dt{color:#59708f}.warehouse-stock-health dd{margin:0;color:#0754c4;font-size:18px;font-weight:800}@media(max-width:900px){.warehouse-dashboard-insights{grid-template-columns:1fr}.warehouse-dashboard-insights>article{min-height:0}}@media(max-width:560px){.warehouse-movement-chart{gap:7px;overflow:auto}.warehouse-movement-chart>div{min-width:58px}}
.warehouse.desktop{min-height:100%;background:#f5f8fd;color:#09285c}.warehouse .side{background:linear-gradient(180deg,#073b84,#0759b7);border-right:0}.warehouse .side .brand{min-height:74px;padding:14px 16px;border-bottom:1px solid #ffffff2b}.warehouse .side .brand>img{width:35px;height:35px;flex:0 0 35px}.warehouse .side .brand strong{font-size:16px;color:#fff}.warehouse .side .brand small{color:#d9eaff}.warehouse .side-nav{display:grid;gap:2px;padding:10px}.warehouse .side-nav button{min-height:37px;border-radius:7px;color:#eef6ff;font-size:13px}.warehouse .side-nav button.active,.warehouse .side-nav button:hover{background:#e7f1ff;color:#064895}.warehouse .side-nav button span{width:24px;text-align:center;font-size:17px}.warehouse .desktop-main{background:#f5f8fd}.warehouse-top{min-height:72px;background:linear-gradient(90deg,#073b84,#0759c9);color:#fff;border:0}.warehouse-top .eyebrow{color:#b9d9ff}.warehouse-top h1{font-size:22px;color:#fff}.warehouse-top .top-actions{gap:10px}.warehouse-top .icon-btn{width:38px;height:38px;border-color:#ffffff7d;background:#ffffff12;color:#fff}.warehouse .desk-content{max-width:1540px;margin:0 auto;padding:24px}.warehouse-reference-kpis{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.warehouse-reference-kpis .kpi{min-height:176px;padding:20px;border:1px solid #d6e3f5;border-radius:13px;background:#fff;box-shadow:0 6px 18px #0d438512;color:#083777;text-align:left}.warehouse-reference-kpis .kpi small,.warehouse-reference-kpis .kpi em,.warehouse-reference-kpis .kpi i{display:block}.warehouse-reference-kpis .kpi b{font-size:36px}.warehouse-reference-kpis .kpi i{margin-top:12px;color:#0759c9;font-style:normal;font-weight:800}.warehouse-quick-title{margin:27px 0 13px;font-size:20px}.warehouse-reference-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.warehouse-reference-actions button{display:grid;place-items:center;gap:10px;min-height:138px;padding:16px;border:1px solid #9fc1ee;border-radius:11px;background:#fff;color:#073f8f}.warehouse-reference-actions button:hover{background:#f1f7ff;border-color:#0759c9}.warehouse-reference-actions span{font-size:43px;line-height:1}.warehouse-reference-actions b{font-size:15px}.warehouse .panel{border-color:#d6e3f5;border-radius:13px;box-shadow:0 5px 18px #0d43850d}.warehouse .metric{min-height:68px;padding:13px 4px;border-bottom-color:#e5edf8}.warehouse .metric:last-child{border-bottom:0}.warehouse-locations .section-title,.warehouse-report .section-title{align-items:center}.warehouse-location-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:13px;margin-top:16px}.warehouse-location-grid button{display:grid;gap:6px;min-height:130px;padding:16px;border:1px solid #cbdcf2;border-radius:11px;background:linear-gradient(145deg,#fff,#f2f8ff);color:#09285c;text-align:left}.warehouse-location-grid button:hover{border-color:#0759c9;box-shadow:0 6px 18px #0759c91a}.warehouse-location-grid button b{font-size:18px;color:#064895}.warehouse-location-grid button small{color:#607594}.warehouse-report-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:18px}.warehouse-report-grid article{display:grid;gap:6px;padding:18px;border:1px solid #d8e5f5;border-radius:10px;background:#f8fbff}.warehouse-report-grid small{color:#59708f}.warehouse-report-grid b{font-size:27px;color:#074899}.warehouse-search-panel .section-title h2{font-size:23px;color:#09285c}.warehouse-search-actions input,.warehouse-search-actions .btn{min-height:46px}.warehouse-results{border:1px solid #d9e5f5;border-radius:11px;overflow:hidden}.warehouse-results>button:hover{background:#f3f8ff}.warehouse-operation{border-color:#4e8fe1}.warehouse-operation-types button{font-weight:750}.warehouse-operation-types button.active{background:#0759c9}.warehouse-movement-form .btn.primary{justify-self:start;min-width:230px}@media(max-width:1050px){.warehouse-reference-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.warehouse .desk-content{padding:16px}.warehouse .side{width:205px}.warehouse .side-nav button em{position:static;clip:auto}}@media(max-width:700px){.warehouse-reference-kpis,.warehouse-report-grid{grid-template-columns:1fr}.warehouse-reference-actions{grid-template-columns:1fr}.warehouse .side{width:72px}.warehouse .side .brand{padding:14px}.warehouse .side .brand>img{width:34px}.warehouse .side .brand>div,.warehouse .side-nav button em{position:absolute;clip:rect(0 0 0 0)}.warehouse .desk-content{padding:12px}.warehouse-top h1{font-size:18px}.warehouse-location-grid{grid-template-columns:1fr}}
/* Pedidos pendientes: obtenidos de las líneas de compra del artículo. */
.warehouse-article-incoming{background:#eff8ff!important;border-color:#b9daf8!important}
.warehouse-article-stock-layout{align-items:stretch}.warehouse-article-stock-layout>.warehouse-pending-purchases{display:grid;align-content:start;margin:0;padding:11px 14px;border:1px solid #d7e5f5;border-radius:8px;background:#fff}.warehouse-article-stock-layout>.warehouse-pending-purchases .warehouse-article-empty{padding:11px;font-size:.86rem}
.warehouse-pending-purchases{margin-top:14px;padding:16px 18px;border:1px solid #d7e5f5;border-radius:14px;background:#fff}
.warehouse-pending-purchases header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:10px}
.warehouse-pending-purchases header small{display:block;color:#35628f;font-size:.72rem;font-weight:800;letter-spacing:.08em}
.warehouse-pending-purchases h3{margin:3px 0 0;color:#07376e;font-size:1.05rem}
.warehouse-pending-purchases header>strong{color:#075bc5;font-size:1.15rem;white-space:nowrap}
.warehouse-pending-purchase-list{display:grid;gap:8px}
.warehouse-pending-purchase-list article{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:10px 12px;border:1px solid #e2edf8;border-radius:10px;background:#f7fbff}
.warehouse-pending-purchase-list b{display:block;color:#083d78}.warehouse-pending-purchase-list small{display:block;margin-top:3px;color:#5a7190}.warehouse-pending-purchase-list article>strong{color:#075bc5;white-space:nowrap}
@media (max-width:760px){.warehouse-pending-purchases header,.warehouse-pending-purchase-list article{align-items:flex-start;flex-direction:column;gap:6px}}

/* Gestor de artículos y captura de conocimiento: datos operativos, no maquetas. */
.warehouse-article-manager{padding:22px}.warehouse-article-manager>header,.warehouse-knowledge-capture>header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}.warehouse-article-manager h2,.warehouse-knowledge-capture h3{margin:4px 0;color:#07366e}.warehouse-article-manager header small,.warehouse-knowledge-capture header small{color:#2c639f;font-size:.74rem;font-weight:900;letter-spacing:.08em}.warehouse-article-manager header p,.warehouse-knowledge-capture header p{margin:5px 0 0;color:#587292}.warehouse-manager-filter{display:flex;gap:10px;margin-bottom:14px}.warehouse-manager-filter input{flex:1;min-width:0;padding:11px 12px;border:1px solid #bcd2ed;border-radius:9px;font:inherit}.warehouse-manager-list{display:grid;gap:9px}.warehouse-manager-list article{display:grid;grid-template-columns:56px minmax(0,1fr) auto;align-items:center;gap:13px;padding:11px;border:1px solid #d6e4f4;border-radius:10px;background:#fbfdff}.warehouse-manager-list img{width:56px;height:56px;object-fit:contain;border-radius:8px;background:#eef4fb}.warehouse-manager-list b,.warehouse-manager-list span,.warehouse-manager-list small{display:block}.warehouse-manager-list b{color:#073e86}.warehouse-manager-list span{margin-top:3px;color:#3f6188}.warehouse-manager-list small{margin-top:4px;color:#6a819e}.warehouse-manager-list footer{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px}.warehouse-article-editor-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.warehouse-article-editor-grid label,.warehouse-knowledge-capture label{display:grid;gap:6px;color:#294d76;font-size:.84rem;font-weight:800}.warehouse-article-editor-grid input,.warehouse-article-editor-grid select,.warehouse-article-editor-grid textarea,.warehouse-knowledge-capture input,.warehouse-knowledge-capture textarea{width:100%;box-sizing:border-box;border:1px solid #bfd3ed;border-radius:8px;background:#fff;padding:9px 10px;color:#123d70;font:inherit}.warehouse-article-editor-grid label.full{grid-column:1/-1}.warehouse-article-editor-grid small,.warehouse-knowledge-capture small{color:#647d9b;font-weight:600}.warehouse-article-manager form footer{display:flex;justify-content:flex-end;margin-top:16px}.warehouse-knowledge-capture{display:grid;gap:15px}.warehouse-knowledge-capture form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;padding:15px;border:1px solid #d5e4f5;border-radius:11px;background:#f9fcff}.warehouse-knowledge-capture form label:nth-of-type(3){grid-column:1/-1}.warehouse-knowledge-capture form .btn{justify-self:start}.warehouse-knowledge-history{display:grid;gap:8px}.warehouse-knowledge-history h4{margin:0;color:#073e86}.warehouse-knowledge-history article{display:grid;gap:4px;padding:10px 12px;border:1px solid #dce8f5;border-radius:8px;background:#fff}.warehouse-knowledge-history b{color:#073e86}.warehouse-knowledge-history span{color:#456687;white-space:pre-wrap}.warehouse-knowledge-history small{color:#7890aa}@media(max-width:900px){.warehouse-article-editor-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.warehouse-manager-list article{grid-template-columns:56px minmax(0,1fr)}.warehouse-manager-list footer{grid-column:1/-1;justify-content:flex-start}}@media(max-width:620px){.warehouse-article-editor-grid,.warehouse-knowledge-capture form{grid-template-columns:1fr}.warehouse-article-editor-grid label.full,.warehouse-knowledge-capture form label:nth-of-type(3){grid-column:auto}.warehouse-manager-filter,.warehouse-article-manager>header{display:grid}.warehouse-manager-list article{grid-template-columns:1fr}.warehouse-manager-list img{display:none}}

/* Artículo 360 · ubicación física: plano aéreo y matriz frontal del hueco real. */
.warehouse-manager-filter select{min-width:148px;padding:10px 12px;border:1px solid #bcd2ed;border-radius:9px;background:#fff;color:#173f70;font:inherit}.warehouse-manager-list article{grid-template-columns:56px minmax(0,1fr);cursor:pointer}.warehouse-manager-list article:hover,.warehouse-manager-list article:focus-visible{border-color:#1265d8;background:#f2f7ff;outline:2px solid #a9caf6;outline-offset:1px}.warehouse-article-management{display:grid;gap:7px;width:100%;margin-top:10px}.warehouse-article-management .btn{width:100%}.warehouse-article-inactive{display:block;padding:6px 8px;border-radius:7px;background:#fff4e5;color:#985708;font-weight:800}.warehouse-article-status{display:inline-flex;align-items:center;margin-left:8px;padding:3px 8px;border-radius:999px;font-size:.72rem;font-weight:800;letter-spacing:.02em;vertical-align:middle}.warehouse-article-status.active{background:#e5f7ed;color:#087d3d}.warehouse-article-status.inactive{background:#fff0e5;color:#a34b08}

/* Editor de artículos: formulario guiado, tipografía legible y galería real. */
.warehouse-article-editor{padding:18px 22px}.warehouse-article-editor>header{margin-bottom:13px}.warehouse-article-editor>header h2{font-weight:650;letter-spacing:-.01em}.warehouse-article-editor>header p{font-weight:400;line-height:1.45}.warehouse-article-editor-grid{grid-template-columns:1fr;gap:12px}.warehouse-editor-section,.warehouse-article-image-manager{grid-column:1/-1;border:1px solid #d3e2f3;border-radius:13px;background:#fbfdff;padding:14px}.warehouse-editor-section>header,.warehouse-article-image-manager>header{display:flex;align-items:center;justify-content:flex-start;gap:11px;margin:0 0 12px}.warehouse-editor-section>header>span{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:50%;background:#e6f1ff;color:#075bc8;font-size:.82rem;font-weight:700}.warehouse-editor-section h3,.warehouse-article-image-manager h3{margin:0;color:#123f73;font-size:1rem;font-weight:650}.warehouse-editor-section header p,.warehouse-article-image-manager header p{margin:2px 0 0;color:#617a97;font-size:.8rem;font-weight:400}.warehouse-editor-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}.warehouse-editor-fields label{display:grid;align-content:start;gap:6px;color:#355675;font-size:.8rem;font-weight:500}.warehouse-editor-fields label.wide{grid-column:span 2}.warehouse-editor-fields label.full{grid-column:1/-1}.warehouse-editor-fields label>span{font-weight:550}.warehouse-editor-fields input,.warehouse-editor-fields select,.warehouse-editor-fields textarea{width:100%;min-height:42px;box-sizing:border-box;border:1px solid #bfd3ed;border-radius:9px;background:#fff;padding:9px 11px;color:#173e6c;font-family:inherit;font-size:.9rem;font-weight:400!important;line-height:1.4}.warehouse-editor-fields textarea{min-height:72px;resize:vertical}.warehouse-editor-fields input:focus,.warehouse-editor-fields select:focus,.warehouse-editor-fields textarea:focus{border-color:#176bd6;outline:3px solid rgba(23,107,214,.12)}.warehouse-editor-fields input[readonly]{background:#f3f7fb;color:#55708d}.warehouse-editor-fields small{color:#6e839c;font-size:.72rem;font-weight:400}.warehouse-article-image-manager>header{justify-content:space-between}.warehouse-file-input{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;white-space:nowrap!important}.warehouse-image-add-button{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 auto;min-height:38px;padding:8px 13px!important;color:#075bc8!important;font-size:.82rem!important;font-weight:650!important;cursor:pointer}.warehouse-article-image-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,320px));gap:10px}.warehouse-article-image-card{display:grid;grid-template-columns:76px minmax(0,1fr) auto;align-items:center;gap:11px;min-height:76px;padding:8px;border:1px solid #cfe0f3;border-radius:10px;background:#fff}.warehouse-article-image-card.pending{border-color:#79acec;background:#f4f9ff}.warehouse-article-image-card img{width:76px;height:64px;object-fit:contain;border-radius:8px;background:#edf3fa}.warehouse-article-image-card strong,.warehouse-article-image-card span{display:block}.warehouse-article-image-card strong{overflow:hidden;color:#123f73;font-size:.84rem;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.warehouse-article-image-card span{margin-top:4px;color:#69809a;font-size:.74rem;font-weight:400}.warehouse-article-image-card .btn{padding:7px 9px;font-size:.74rem}.warehouse-article-image-empty{display:flex;align-items:center;gap:10px;min-height:72px;padding:9px 12px;border:1px dashed #b9cee7;border-radius:10px;background:#f8fbff;color:#5f7793}.warehouse-article-image-empty>span{font-size:1.7rem}.warehouse-article-image-empty strong,.warehouse-article-image-empty small{display:block}.warehouse-article-image-empty strong{color:#315779;font-size:.84rem;font-weight:550}.warehouse-article-image-empty small,.warehouse-image-help{margin-top:3px;color:#72879e;font-size:.73rem;font-weight:400}.warehouse-image-help{display:block;margin-top:8px}.warehouse-article-editor form>footer{position:sticky;bottom:0;z-index:2;margin:12px -4px -4px;padding:10px 4px 4px;background:linear-gradient(180deg,rgba(255,255,255,0),#fff 28%)}
@media(max-width:1100px){.warehouse-editor-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.warehouse-article-editor{padding:14px}.warehouse-editor-fields{grid-template-columns:1fr}.warehouse-editor-fields label.wide,.warehouse-editor-fields label.full{grid-column:auto}.warehouse-article-image-manager>header{align-items:flex-start;flex-direction:column}.warehouse-article-image-card{grid-template-columns:64px minmax(0,1fr)}.warehouse-article-image-card img{width:64px}.warehouse-article-image-card .btn{grid-column:1/-1}.warehouse-article-image-list{grid-template-columns:1fr}}
.warehouse-article-location-status{display:grid;gap:7px;padding:18px;border:1px solid #d7e5f5;border-radius:13px;background:#fff}.warehouse-article-location-status b{color:#073c7b;font-size:1.05rem}.warehouse-article-location-status span{color:#416283}.warehouse-article-location-status small{color:#687e99}
.warehouse-article-location-orientation{display:grid;gap:14px;padding:18px;border:1px solid #cfdef1;border-radius:14px;background:#fff}.warehouse-article-location-orientation>header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding-bottom:12px;border-bottom:1px solid #e2ebf7}.warehouse-article-location-orientation>header small{display:block;color:#2a629e;font-size:.72rem;font-weight:900;letter-spacing:.09em}.warehouse-article-location-orientation h3{margin:4px 0;color:#07366e;font-size:1.16rem}.warehouse-article-location-orientation>header p{margin:0;color:#5d7698}.warehouse-article-location-orientation>header>span{padding:7px 10px;border-radius:999px;background:#e6f7ee;color:#137b45;font-size:.78rem;font-weight:800}.warehouse-article-location-route{display:flex;align-items:stretch;flex-wrap:wrap;gap:7px}.warehouse-article-location-route>div{display:grid;gap:2px;min-width:74px;padding:8px 10px;border:1px solid #d3e3f5;border-radius:9px;background:#f8fbff}.warehouse-article-location-route>div.active{border-color:#0b6bd7;background:#e3f2ff;box-shadow:0 0 0 2px #8dcaff55}.warehouse-article-location-route small{color:#5b7697;font-size:.65rem;font-weight:800;text-transform:uppercase}.warehouse-article-location-route b{color:#073f82;font-size:.86rem}.warehouse-article-location-route>i{align-self:center;color:#1c72c7;font-size:1.35rem;font-style:normal}.warehouse-article-orientation-layout{display:grid;grid-template-columns:minmax(300px,1.35fr) minmax(220px,.65fr);gap:14px}.warehouse-article-orientation-layout>article{min-width:0;padding:14px;border:1px solid #d8e5f4;border-radius:12px;background:#f9fcff}.warehouse-article-orientation-map{display:grid;gap:10px}.warehouse-article-orientation-map-title{display:flex;align-items:center;justify-content:space-between;color:#073d7b}.warehouse-article-orientation-map-title span{color:#68819d;font-size:.76rem}.warehouse-article-orientation-aisle{position:relative;display:grid;place-items:center;min-height:200px;padding:26px;background:repeating-linear-gradient(90deg,#eef5fc 0 24px,#e3edf8 24px 25px),repeating-linear-gradient(0deg,transparent 0 24px,#dbe7f4 24px 25px);border:1px dashed #aec8e5;border-radius:10px;overflow:hidden}.warehouse-article-orientation-aisle:before,.warehouse-article-orientation-aisle:after{position:absolute;top:18px;bottom:18px;width:28%;border-top:3px solid #c9d8ea;border-bottom:3px solid #c9d8ea;content:""}.warehouse-article-orientation-aisle:before{left:0}.warehouse-article-orientation-aisle:after{right:0}.warehouse-article-orientation-rack{position:relative;z-index:1;display:grid;place-items:center;gap:5px;min-width:140px;min-height:76px;padding:8px 16px;border:3px solid #0875dc;border-radius:9px;background:repeating-linear-gradient(0deg,#8fc7f6 0 16px,#5aa8ea 16px 18px);box-shadow:0 0 0 7px #55aaff33;color:#fff;font-style:normal;text-align:center}.warehouse-article-orientation-rack b{font-size:1rem;text-shadow:0 1px 2px #063f74}.warehouse-article-orientation-rack span{font-size:.74rem;font-weight:800}.warehouse-article-orientation-aisle em{position:absolute;right:12px;bottom:10px;color:#1d659d;font-size:.72rem;font-style:normal}.warehouse-article-orientation-map>small{color:#5b7494;font-size:.76rem}.warehouse-article-orientation-front{display:grid;align-content:start;gap:10px}.warehouse-article-orientation-front>header{display:flex;justify-content:space-between;color:#0a427f}.warehouse-article-orientation-front>header small{color:#5f7897}.warehouse-article-orientation-drawer{display:grid;gap:7px;min-height:94px;padding:13px;border:2px solid #0875dc;border-radius:9px;background:linear-gradient(135deg,#e9f6ff,#cceaff);box-shadow:0 0 0 4px #54aefd33}.warehouse-article-orientation-drawer>b{color:#073d7b}.warehouse-article-orientation-drawer span{display:flex;align-items:center;gap:6px;color:#1e629e}.warehouse-article-orientation-drawer i{display:inline-grid;place-items:center;min-width:34px;padding:5px;border-radius:5px;background:#0875dc;color:#fff;font-size:.72rem;font-style:normal;font-weight:900}.warehouse-article-orientation-front p{margin:0;color:#456687;font-size:.84rem}.warehouse-article-location-orientation>footer{color:#617b98;font-size:.75rem}@media(max-width:760px){.warehouse-article-orientation-layout{grid-template-columns:1fr}.warehouse-article-location-orientation>header{display:block}.warehouse-article-location-orientation>header>span{display:inline-block;margin-top:8px}}
.warehouse-dashboard-month .warehouse-movement-chart{min-height:70px;height:100%;max-height:124px;margin-top:12px;padding:8px 4px 0;gap:9px}.warehouse-dashboard-month .warehouse-movement-chart>div{min-width:42px;height:100%;gap:3px}.warehouse-dashboard-month .warehouse-movement-chart span{width:26px}.warehouse-dashboard-month .warehouse-movement-chart b{font-size:14px}.warehouse-dashboard-month .warehouse-movement-chart small{font-size:9px}
.warehouse-article-location-visual{padding:16px;border:1px solid #cfdef1;border-radius:14px;background:#fff}.warehouse-article-location-visual>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:0 2px 14px;border-bottom:1px solid #e2ebf7}.warehouse-article-location-visual header small{display:block;color:#2a629e;font-size:.72rem;font-weight:800;letter-spacing:.09em}.warehouse-article-location-visual h3{margin:4px 0;color:#07366e;font-size:1.14rem}.warehouse-article-location-visual header p{margin:0;color:#5d7698}.warehouse-article-location-visual>header>span{padding:7px 10px;border-radius:999px;background:#eaf5ff;color:#0759bd;font-size:.78rem;font-weight:800}
.warehouse-article-location-grid{display:grid;grid-template-columns:minmax(260px,.8fr) minmax(360px,1.2fr);gap:14px;margin-top:14px}.warehouse-article-location-grid>article{min-width:0;padding:14px;border:1px solid #d8e5f4;border-radius:12px;background:#f9fcff}.warehouse-article-location-grid h4{margin:0;color:#073d7b;font-size:1rem}.warehouse-article-location-grid p{margin:4px 0 10px;color:#587292;font-size:.85rem}.warehouse-article-location-grid>article>small{display:block;margin-top:8px;color:#5b7494;font-size:.76rem}
.warehouse-article-map-frame{display:grid;place-items:center;min-height:212px;padding:12px;border:1px dashed #b9d0ec;border-radius:10px;background:radial-gradient(#dbe9f8 1px,transparent 1px) 0 0/12px 12px,#fafdff;overflow:auto}.warehouse-article-map{position:relative;border:2px solid #315e90;background:#fff;box-shadow:inset 0 0 0 7px #f2f7fd}.warehouse-article-map-rack{position:absolute;display:grid;place-items:center;box-sizing:border-box;min-width:5px;min-height:5px;border:1px solid #7397c2;background:#c9daf0}.warehouse-article-map-rack.active{z-index:2;border:2px solid #075bc7;background:#1e8df0;box-shadow:0 0 0 4px #70bfff55}.warehouse-article-map-rack b{max-width:100%;overflow:hidden;color:#fff;font-size:9px;line-height:1;text-align:center;text-overflow:ellipsis;white-space:nowrap}
.warehouse-article-front-rows{display:grid;gap:8px;max-height:280px;overflow:auto;padding-right:3px}.warehouse-article-front-row{padding:8px;border:1px solid #dce8f5;border-radius:9px;background:#fff}.warehouse-article-front-row header{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}.warehouse-article-front-row header b{color:#174e8c;font-size:.78rem}.warehouse-article-front-row header small{color:#2271b5;font-size:.7rem}.warehouse-article-front-grid{display:grid;grid-template-columns:repeat(12,minmax(52px,1fr));gap:5px}.warehouse-article-front-slot{display:grid;gap:4px;min-height:49px;padding:5px;border:1px solid #b8cde7;border-radius:6px;background:#f4f8fd;color:#356287}.warehouse-article-front-slot.active{border:2px solid #0766d3;background:#e0f1ff;box-shadow:0 0 0 2px #5cb3ff44}.warehouse-article-front-slot>b{font-size:.7rem;color:#0c4b91}.warehouse-article-front-slot>span{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px}.warehouse-article-front-slot i{padding:2px 0;border-radius:3px;background:#e4f5e9;color:#27804b;font-size:.58rem;font-style:normal;text-align:center}.warehouse-article-front-slot i.article{background:#0875dc;color:#fff}.warehouse-article-front-slot.merged small{font-size:.62rem;color:#5b7390}@media(max-width:900px){.warehouse-article-location-grid{grid-template-columns:1fr}.warehouse-article-location-visual>header{display:block}.warehouse-article-location-visual>header>span{display:inline-block;margin-top:9px}}@media(max-width:520px){.warehouse-article-front-grid{grid-template-columns:repeat(4,minmax(52px,1fr))}.warehouse-article-location-visual{padding:12px}}
/* El buscador se aplica solo al pulsar Buscar; el control mantiene el foco. */
.warehouse-location-search-control{display:flex;gap:8px;align-items:stretch}.warehouse-location-search-control input{flex:1;min-width:0}.warehouse-location-search-control .btn{min-height:40px;padding:8px 14px;white-space:nowrap}

/* Artículo 360: plano físico claro, con la estantería y el hueco real destacados. */
.warehouse-article-map-frame{min-height:246px;padding:14px}.warehouse-article-map-rack b{color:#17466f;font-weight:900}.warehouse-article-map-rack.active b{color:#fff;text-shadow:0 1px 2px #073b77}.warehouse-article-map-key{display:flex;align-items:center;gap:6px;margin-top:9px;color:#315d8a;font-size:.78rem;font-weight:700}.warehouse-article-map-key i{width:12px;height:12px;border:2px solid #075bc7;border-radius:3px;background:#1e8df0;box-shadow:0 0 0 2px #70bfff55}.warehouse-article-map-key span{color:#073d7b}.warehouse-article-front-row.current-row{border-color:#75b7fb;background:#f4faff;box-shadow:0 0 0 2px #b9dcff66}

/* Artículo 360 · ilustración dinámica de ubicación. No usa imágenes ni datos del navegador. */
.warehouse-article-location-illustrated .warehouse-article-location-grid{grid-template-columns:minmax(330px,.92fr) minmax(480px,1.08fr);align-items:stretch}.warehouse-article-location-illustrated .warehouse-article-location-grid>article{display:flex;min-height:470px;flex-direction:column}.warehouse-article-visual-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:9px;border-bottom:1px solid #d9e6f3}.warehouse-article-visual-heading small{display:block;color:#3770a9;font-size:.66rem;font-weight:900;letter-spacing:.08em}.warehouse-article-visual-heading h4{margin:3px 0 0}.warehouse-article-visual-heading>span{padding:6px 9px;border-radius:999px;background:#e7f4ff;color:#075bbf;font-size:.74rem;font-weight:900;white-space:nowrap}.warehouse-article-location-illustrated .warehouse-article-aerial{background:linear-gradient(145deg,#fafdff,#eff6fd)}.warehouse-article-location-illustrated .warehouse-article-map-frame{display:block;min-height:0;flex:1;margin-top:10px;padding:12px;overflow:hidden;border:1px solid #cbdced;background:linear-gradient(90deg,#e8edf2 0 8px,transparent 8px calc(100% - 8px),#e8edf2 calc(100% - 8px)),repeating-linear-gradient(0deg,#f5f7f8 0 35px,#e1e6e9 35px 36px),repeating-linear-gradient(90deg,transparent 0 35px,#e1e6e9 35px 36px);box-shadow:inset 0 0 0 1px #fafdff}.warehouse-article-location-illustrated .warehouse-article-map{width:100%!important;height:100%!important;min-height:320px;border:0;background:transparent;box-shadow:none}.warehouse-article-location-illustrated .warehouse-article-map-rack{display:grid;place-items:center;min-width:22px;min-height:20px;overflow:hidden;border:2px solid #485564;border-radius:2px;background:repeating-linear-gradient(90deg,#33404c 0 5px,#74879c 5px 7px,#17232e 7px 9px);box-shadow:0 2px 3px #263c501f;font-style:normal}.warehouse-article-location-illustrated .warehouse-article-map-rack:after{position:absolute;inset:12% 9%;background:repeating-linear-gradient(90deg,#314c67 0 11%,#90a8bf 11% 14%,#253c52 14% 23%);border:1px solid #172c41;content:""}.warehouse-article-location-illustrated .warehouse-article-map-rack b{position:relative;z-index:2;max-width:88%;overflow:hidden;padding:2px 4px;border-radius:3px;background:#f5fbff;color:#0d466f;font-size:clamp(8px,1vw,12px);line-height:1.1;text-align:center;text-overflow:ellipsis;white-space:nowrap;text-shadow:none}.warehouse-article-location-illustrated .warehouse-article-map-rack.active{z-index:3;border:3px solid #0875dc;background:repeating-linear-gradient(90deg,#16446b 0 5px,#5f95c6 5px 7px,#0a2948 7px 9px);box-shadow:0 0 0 4px #48a5ff55,0 4px 8px #17538e55}.warehouse-article-location-illustrated .warehouse-article-map-rack.active b{background:#0868d5;color:#fff}.warehouse-article-map-aisle-label{position:absolute;z-index:1;left:50%;top:50%;padding:4px 8px;border-radius:4px;background:#ffffffcc;color:#63809a;font-size:clamp(9px,1vw,13px);letter-spacing:.06em;transform:translate(-50%,-50%);white-space:nowrap}.warehouse-article-location-illustrated .warehouse-article-map-key{margin-bottom:0}.warehouse-article-location-illustrated .warehouse-article-front{background:linear-gradient(145deg,#fbfdff,#f3f7fb)}.warehouse-article-location-illustrated .warehouse-article-front>p{margin:8px 0;color:#57728f}.warehouse-article-rack-illustration{display:grid;grid-template-columns:42px minmax(0,1fr);flex:1;min-height:0;margin-top:3px;border:1px solid #aebdcb;border-radius:5px;background:linear-gradient(90deg,#d6dde4 0 3%,#ecf0f3 3% 97%,#c7d0d8 97%);box-shadow:inset 0 0 0 3px #677682}.warehouse-article-rack-illustration>aside{display:grid;grid-template-rows:repeat(var(--warehouse-article-levels,10),minmax(42px,1fr));gap:2px;align-content:stretch;padding:9px 4px 28px;background:#e5ebf1;border-right:2px solid #7b8b98}.warehouse-article-rack-illustration>aside>b{display:grid;place-items:center;color:#234f87;font-size:.76rem}.warehouse-article-rack-illustration>aside>b.active{border-radius:4px;background:#0875dc;color:#fff;box-shadow:0 0 0 2px #8bc7ff}.warehouse-article-rack-body{display:grid;grid-template-rows:minmax(0,1fr) 28px;min-width:0}.warehouse-article-location-illustrated .warehouse-article-front-rows{display:grid;grid-auto-rows:minmax(42px,1fr);max-height:none;min-height:0;gap:2px;overflow-y:auto;padding:7px 7px 4px;background:repeating-linear-gradient(0deg,#bac5cf 0 2px,#eef2f5 2px 45px)}.warehouse-article-location-illustrated .warehouse-article-front-row{display:grid;grid-template-columns:0 minmax(0,1fr);min-height:42px;padding:0;border:0;border-bottom:2px solid #2e3d4b;border-radius:0;background:transparent}.warehouse-article-location-illustrated .warehouse-article-front-row header{display:none}.warehouse-article-location-illustrated .warehouse-article-front-grid{grid-template-columns:repeat(var(--warehouse-article-columns),minmax(0,1fr));gap:4px;padding:4px 7px}.warehouse-article-location-illustrated .warehouse-article-front-slot{position:relative;display:grid;grid-template-rows:auto minmax(0,1fr);min-height:32px;overflow:hidden;padding:3px 5px;border:2px solid #263847;border-radius:3px;background:linear-gradient(180deg,#778a9d,#435768 48%,#263744 49%,#5f7487);box-shadow:inset 0 0 0 2px #92a1ae;color:#fff}.warehouse-article-location-illustrated .warehouse-article-front-slot>b{position:relative;z-index:2;color:#fff;font-size:.62rem;text-shadow:0 1px 1px #142536}.warehouse-article-location-illustrated .warehouse-article-front-slot>.warehouse-article-drawer-closed:after{display:block;width:42%;height:4px;margin:5px auto 0;border:1px solid #263542;border-radius:4px;background:#c6d0d9;box-shadow:0 1px 0 #f4f7f9;content:""}.warehouse-article-location-illustrated .warehouse-article-front-slot.active{z-index:3;border-color:#0875dc;background:linear-gradient(180deg,#5f9cd0,#225a91 48%,#174a7b 49%,#437eb4);box-shadow:0 0 0 3px #4aa9ff77,inset 0 0 0 2px #bce2ff}.warehouse-article-location-illustrated .warehouse-article-front-slot.merged,.warehouse-article-location-illustrated .warehouse-article-front-slot.row-only{place-items:center;background:linear-gradient(180deg,#edf2f6,#d5dee7);color:#50697d}.warehouse-article-location-illustrated .warehouse-article-front-slot.merged>b,.warehouse-article-location-illustrated .warehouse-article-front-slot.row-only>b{color:#36526b;text-shadow:none}.warehouse-article-location-illustrated .warehouse-article-front-slot small{color:#526d84;font-size:.58rem;text-align:center}.warehouse-article-open-drawer{display:grid;grid-template-rows:4px minmax(0,1fr);gap:2px;min-height:28px;padding:2px;border:1px solid #102a41;border-radius:2px;background:#1e3447;box-shadow:inset 0 2px 4px #0008,0 2px 2px #162433}.warehouse-article-drawer-handle{display:block;width:38%;height:3px;margin:0 auto;border-radius:3px;background:#c4d4e1;box-shadow:0 1px 1px #fff8}.warehouse-article-open-drawer>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(14px,1fr));gap:2px;min-height:0}.warehouse-article-open-drawer i{display:grid;place-items:center;min-width:0;border:1px solid #5e788f;border-radius:1px;background:linear-gradient(180deg,#e3edf4,#9eb2c2);color:#163c5e;font-size:.52rem;font-style:normal;font-weight:900}.warehouse-article-open-drawer i.article{border-color:#ffd467;background:linear-gradient(180deg,#ffecc0,#e9a72d);color:#123d66;box-shadow:0 0 0 1px #0b6ed955}.warehouse-article-rack-body>footer{display:grid;grid-template-columns:repeat(var(--warehouse-article-columns),minmax(0,1fr));gap:4px;padding:5px 14px 4px;background:#e5ebf1;border-top:2px solid #7a8996}.warehouse-article-rack-body>footer b{color:#234f87;font-size:.72rem;text-align:center}.warehouse-article-location-illustrated .warehouse-article-front>small{margin-top:7px}@media(max-width:1100px){.warehouse-article-location-illustrated .warehouse-article-location-grid{grid-template-columns:1fr}.warehouse-article-location-illustrated .warehouse-article-location-grid>article{min-height:420px}}@media(max-width:620px){.warehouse-article-location-illustrated .warehouse-article-location-grid>article{min-height:350px}.warehouse-article-rack-illustration{grid-template-columns:31px minmax(0,1fr)}.warehouse-article-rack-illustration>aside{padding-left:2px;padding-right:2px}.warehouse-article-location-illustrated .warehouse-article-front-grid{gap:2px;padding:3px}.warehouse-article-location-illustrated .warehouse-article-front-slot{padding:2px}.warehouse-article-rack-body>footer{padding-left:8px;padding-right:8px}}

/* Artículo 360 · trazabilidad legible de pedidos, presupuestos y recepciones. */
.warehouse-purchase-history{display:grid;gap:12px}.warehouse-purchase-history>header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:14px 16px;border:1px solid #cfe0f4;border-radius:12px;background:linear-gradient(135deg,#f8fbff,#edf6ff)}.warehouse-purchase-history>header small,.warehouse-purchase-card small,.warehouse-purchase-receipt small,.warehouse-purchase-quote small{display:block;color:#356795;font-size:.69rem;font-weight:900;letter-spacing:.075em}.warehouse-purchase-history h3{margin:3px 0;color:#073b78;font-size:1.1rem}.warehouse-purchase-history>header p{margin:4px 0 0;color:#587392}.warehouse-purchase-history>header>strong{align-self:center;padding:8px 10px;border-radius:999px;background:#e7f5ec;color:#167742;font-size:.78rem;white-space:nowrap}.warehouse-purchase-card,.warehouse-purchase-unlinked,.warehouse-purchase-quotes{display:grid;gap:11px;padding:14px 16px;border:1px solid #d4e3f4;border-radius:12px;background:#fff}.warehouse-purchase-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding-bottom:10px;border-bottom:1px solid #e3edf7}.warehouse-purchase-card h3{margin:3px 0;color:#073b78;font-size:1.08rem}.warehouse-purchase-card header p{margin:3px 0 0;color:#547392}.warehouse-purchase-status{padding:7px 10px;border-radius:999px;background:#e9f4ff;color:#0758b7;font-size:.76rem;font-weight:900;white-space:nowrap}.warehouse-purchase-data{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.warehouse-purchase-data>div,.warehouse-purchase-receipt>div,.warehouse-purchase-quote>div{display:grid;gap:3px;min-width:0;padding:9px 10px;border:1px solid #e1ebf6;border-radius:9px;background:#f9fcff}.warehouse-purchase-data b,.warehouse-purchase-receipt b,.warehouse-purchase-quote b{overflow-wrap:anywhere;color:#0b4384;font-size:.86rem}.warehouse-purchase-data span,.warehouse-purchase-receipt span,.warehouse-purchase-quote span{color:#5b7696;font-size:.78rem;line-height:1.35}.warehouse-purchase-updated,.warehouse-purchase-notes{margin:0;padding:8px 10px;border-radius:8px;background:#f5f9fd;color:#4f6d8e;font-size:.82rem}.warehouse-purchase-notes{border-left:3px solid #78aee7}.warehouse-purchase-receipts{display:grid;gap:8px;padding-top:2px}.warehouse-purchase-receipts h4,.warehouse-purchase-unlinked h4,.warehouse-purchase-quotes h4{margin:0;color:#0b4384;font-size:.88rem}.warehouse-purchase-receipts>p{margin:0;padding:9px 10px;border:1px dashed #c9dbee;border-radius:8px;color:#65809e;font-size:.82rem}.warehouse-purchase-receipt{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;padding:10px;border:1px solid #dae7f5;border-radius:10px;background:#fbfdff}.warehouse-purchase-receipt>.warehouse-purchase-notes,.warehouse-purchase-receipt>.warehouse-supply-documents{grid-column:1/-1}.warehouse-purchase-quote{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.warehouse-purchase-quote>.warehouse-purchase-notes,.warehouse-purchase-quote>.warehouse-supply-documents{grid-column:1/-1}.warehouse-purchase-unlinked,.warehouse-purchase-quotes{background:#fbfdff}.warehouse-purchase-unlinked>.warehouse-purchase-receipt{background:#fff}.warehouse-purchase-card .warehouse-supply-documents,.warehouse-purchase-receipt .warehouse-supply-documents,.warehouse-purchase-quote .warehouse-supply-documents{display:flex;flex-wrap:wrap;gap:7px}.warehouse-purchase-card .warehouse-supply-document,.warehouse-purchase-receipt .warehouse-supply-document,.warehouse-purchase-quote .warehouse-supply-document{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(max-width:1000px){.warehouse-purchase-data,.warehouse-purchase-receipt{grid-template-columns:repeat(2,minmax(0,1fr))}.warehouse-purchase-quote{grid-template-columns:1fr}}@media(max-width:620px){.warehouse-purchase-history>header,.warehouse-purchase-card>header{align-items:stretch;flex-direction:column}.warehouse-purchase-history>header>strong{align-self:flex-start}.warehouse-purchase-data,.warehouse-purchase-receipt{grid-template-columns:1fr}.warehouse-purchase-receipt>.warehouse-purchase-notes,.warehouse-purchase-receipt>.warehouse-supply-documents{grid-column:auto}}

/* Artículo 360: lectura completa de datos reales sin tablas horizontales. */
.warehouse-trace-rich{display:grid;gap:12px;min-width:0}.warehouse-trace-rich>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:14px 16px;border:1px solid #cfe0f4;border-radius:12px;background:linear-gradient(135deg,#f9fcff,#edf6ff)}.warehouse-trace-rich>header small,.warehouse-trace-rich-card small,.warehouse-movement-life-card small{display:block;color:#356795;font-size:.69rem;font-weight:900;letter-spacing:.07em}.warehouse-trace-rich>header h3{margin:3px 0;color:#073b78;font-size:1.12rem}.warehouse-trace-rich>header p{margin:4px 0 0;color:#587392;font-size:.86rem}.warehouse-trace-rich>header>strong{align-self:center;padding:7px 10px;border-radius:999px;background:#e7f5ec;color:#167742;font-size:.78rem;white-space:nowrap}.warehouse-trace-rich-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.warehouse-trace-rich-field{display:grid;align-content:start;gap:4px;min-width:0;padding:10px 11px;border:1px solid #d8e6f4;border-radius:10px;background:#fbfdff}.warehouse-trace-rich-field b{overflow-wrap:anywhere;color:#083f7e;font-size:.88rem;line-height:1.35}.warehouse-trace-rich-field.wide{grid-column:span 2}.warehouse-trace-rich-kpis .warehouse-trace-rich-field{background:linear-gradient(140deg,#f8fcff,#eff7ff)}.warehouse-trace-rich-kpis .warehouse-trace-rich-field b{font-size:1rem;color:#075dc2}.warehouse-trace-rich-list,.warehouse-movement-life-list{display:grid;gap:10px}.warehouse-trace-rich-card,.warehouse-movement-life-card{display:grid;gap:10px;min-width:0;padding:13px 14px;border:1px solid #d5e4f4;border-radius:12px;background:#fff}.warehouse-trace-rich-card>header,.warehouse-movement-life-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:9px;border-bottom:1px solid #e3edf7}.warehouse-trace-rich-card h4,.warehouse-movement-life-card h4{margin:3px 0 0;color:#073b78;font-size:1rem}.warehouse-trace-rich-card>header>strong,.warehouse-movement-life-card>header>strong{padding:6px 9px;border-radius:999px;background:#e9f4ff;color:#0758b7;font-size:.75rem;white-space:nowrap}.warehouse-trace-rich-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}.warehouse-movement-life-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.warehouse-movement-life-field{display:grid;gap:4px;min-width:0;padding:9px 10px;border:1px solid #e0ebf6;border-radius:9px;background:#f9fcff}.warehouse-movement-life-field span{overflow-wrap:anywhere;color:#174b85;font-size:.85rem;line-height:1.36}.warehouse-movement-life-field.notes{grid-column:span 2}.warehouse-movement-life-card footer{display:flex;flex-wrap:wrap;gap:7px}.warehouse-trace-rich .warehouse-supply-documents{display:flex;flex-wrap:wrap;gap:7px}.warehouse-trace-rich .warehouse-supply-document{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(max-width:1100px){.warehouse-trace-rich-grid,.warehouse-movement-life-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.warehouse-trace-rich>header,.warehouse-trace-rich-card>header,.warehouse-movement-life-card>header{align-items:stretch;flex-direction:column}.warehouse-trace-rich>header>strong,.warehouse-trace-rich-card>header>strong,.warehouse-movement-life-card>header>strong{align-self:flex-start}.warehouse-trace-rich-grid,.warehouse-movement-life-grid{grid-template-columns:1fr}.warehouse-trace-rich-field.wide,.warehouse-movement-life-field.notes{grid-column:auto}}

/* Artículo 360: registros compactos. La documentación se abre desde la fila, no se simula. */
.warehouse-identity-compact{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-content:start;gap:9px;min-width:0;overflow:hidden}.warehouse-identity-compact-field{display:grid;align-content:start;gap:5px;min-width:0;min-height:66px;padding:10px 12px;border:1px solid #d8e6f4;border-radius:10px;background:#fbfdff}.warehouse-identity-compact-field small{display:block;overflow:hidden;color:#577493;font-size:.72rem;line-height:1.15;text-overflow:ellipsis;white-space:nowrap}.warehouse-identity-compact-field b{display:-webkit-box;overflow:hidden;color:#083f7e;font-size:.88rem;line-height:1.32;overflow-wrap:anywhere;-webkit-box-orient:vertical;-webkit-line-clamp:2}.warehouse-identity-compact-field.wide{grid-column:span 2}.warehouse-identity-compact-field.wide b{-webkit-line-clamp:2}.warehouse-operation .warehouse-article-tab-content:has(> .warehouse-identity-compact){display:block!important;overflow:hidden!important}.warehouse-operation .warehouse-article-tab-content:has(> .warehouse-identity-compact)>.warehouse-identity-compact{height:100%}@media(max-width:1180px){.warehouse-identity-compact{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:760px){.warehouse-operation .warehouse-article-tab-content:has(> .warehouse-identity-compact){overflow:auto!important}.warehouse-identity-compact{grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible}.warehouse-identity-compact-field.wide{grid-column:span 2}}@media(max-width:520px){.warehouse-identity-compact{grid-template-columns:1fr}.warehouse-identity-compact-field.wide{grid-column:auto}}

.warehouse-article-trace-list{display:grid;gap:7px;min-width:0}.warehouse-article-trace-entry{display:flex;align-items:stretch;gap:0;min-width:0;border:1px solid #d5e4f4;border-radius:10px;background:#fff;overflow:hidden}.warehouse-article-trace-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;flex:1;min-width:0;border:0;background:#fff;color:#143b6a;padding:10px 12px;text-align:left}.warehouse-article-trace-row.has-documents{cursor:pointer}.warehouse-article-trace-row.has-documents:hover{background:#f1f7ff;box-shadow:inset 3px 0 #0c67ce}.warehouse-article-trace-row.no-documents{cursor:default}.warehouse-article-trace-row-main{display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:6px 13px;min-width:0}.warehouse-article-trace-cell{display:grid;gap:2px;min-width:0}.warehouse-article-trace-cell small{overflow:hidden;color:#5c7697;font-size:.63rem;font-weight:900;letter-spacing:.055em;text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap}.warehouse-article-trace-cell b{overflow-wrap:anywhere;color:#244d7f;font-size:.8rem;line-height:1.28}.warehouse-article-trace-cell.primary b{color:#063e83;font-size:.9rem}.warehouse-article-trace-row-document{align-self:center;padding:5px 8px;border:1px solid #b6d4f5;border-radius:7px;background:#edf6ff;color:#075cbe;font-size:.72rem;font-weight:900;white-space:nowrap}.warehouse-article-trace-row.no-documents .warehouse-article-trace-row-document{border-color:#dce6f1;background:#f7f9fc;color:#71829a;font-weight:700}.warehouse-article-trace-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex:0 0 auto;padding:8px;border-left:1px solid #e1ebf6}.warehouse-article-trace-actions .btn{min-height:31px;padding:6px 9px;font-size:.76rem;white-space:nowrap}@media(max-width:900px){.warehouse-article-trace-row{grid-template-columns:1fr;padding:9px 10px}.warehouse-article-trace-row-document{justify-self:start}.warehouse-article-trace-row-main{grid-template-columns:repeat(2,minmax(0,1fr))}.warehouse-article-trace-entry{align-items:stretch;flex-direction:column}.warehouse-article-trace-actions{justify-content:flex-start;border-top:1px solid #e1ebf6;border-left:0}}@media(max-width:540px){.warehouse-article-trace-row-main{grid-template-columns:1fr}}

/* Artículo 360: patrón único de listas. La cabecera no se desplaza con los registros. */
.warehouse-operation .warehouse-article-tab-content:has(> .warehouse-trace-rich):not(:has(.warehouse-reservation-form)){display:flex!important;overflow:hidden!important}
.warehouse-operation .warehouse-article-tab-content:has(> .warehouse-trace-rich):not(:has(.warehouse-reservation-form))>.warehouse-trace-rich{flex:1 1 auto;min-height:0}
.warehouse-operation .warehouse-trace-rich{display:flex;flex-direction:column;gap:8px;min-width:0}
.warehouse-operation .warehouse-trace-rich>header{flex:0 0 auto;align-items:center;min-height:54px;padding:8px 12px;border-radius:10px}
.warehouse-operation .warehouse-trace-rich>header h3{font-size:1rem}.warehouse-operation .warehouse-trace-rich>header p{font-size:.78rem;line-height:1.25}.warehouse-operation .warehouse-trace-rich>header>strong{font-size:.7rem}
.warehouse-operation .warehouse-article-trace-table{display:flex;flex:1 1 auto;flex-direction:column;min-height:0;border:1px solid #d5e4f4;border-radius:10px;background:#f8fbff;overflow:hidden}
.warehouse-operation .warehouse-article-trace-table-header{display:grid;grid-template-columns:minmax(150px,1.1fr) minmax(0,3.8fr) minmax(135px,.7fr);gap:10px;flex:0 0 auto;padding:8px 11px;border-bottom:1px solid #c7dcf2;background:#eaf3ff;color:#0b4384;font-size:.68rem;font-weight:900;letter-spacing:.045em;text-transform:uppercase}
.warehouse-operation .warehouse-article-trace-table-header span:last-child{text-align:right}
.warehouse-operation .warehouse-article-trace-list{display:grid;align-content:start;gap:6px;min-height:0;padding:6px;overflow:auto;scrollbar-gutter:stable}
.warehouse-operation .warehouse-article-trace-entry{border-radius:8px}
.warehouse-operation .warehouse-article-trace-row{padding:8px 10px;gap:9px}
.warehouse-operation .warehouse-article-trace-row-main{grid-template-columns:repeat(5,minmax(108px,1fr));gap:5px 10px}
.warehouse-operation .warehouse-article-ficha-table{border:0;background:transparent}
.warehouse-operation .warehouse-article-ficha-table .warehouse-article-trace-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;overflow:auto;padding:1px}
.warehouse-operation .warehouse-article-ficha-table .warehouse-article-trace-entry{min-height:0;border-color:#cfe0f4;border-radius:11px;background:linear-gradient(135deg,#fbfdff,#f2f8ff)}
.warehouse-operation .warehouse-article-ficha-table .warehouse-article-trace-row{padding:9px 11px;background:transparent}
.warehouse-operation .warehouse-article-ficha-table .warehouse-article-trace-row-main{grid-template-columns:repeat(5,minmax(92px,1fr));gap:5px 9px}
.warehouse-operation .warehouse-article-ficha-table .warehouse-article-trace-row-document{display:none}
@media(max-width:1180px){.warehouse-operation .warehouse-article-ficha-table .warehouse-article-trace-list{grid-template-columns:1fr}.warehouse-operation .warehouse-article-ficha-table .warehouse-article-trace-row-main{grid-template-columns:repeat(5,minmax(92px,1fr))}}
.warehouse-operation .warehouse-article-trace-cell{min-width:0}.warehouse-operation .warehouse-article-trace-cell small{font-size:.58rem}.warehouse-operation .warehouse-article-trace-cell b{font-size:.76rem;line-height:1.18}.warehouse-operation .warehouse-article-trace-cell.primary b{font-size:.84rem}.warehouse-operation .warehouse-article-trace-row-document{font-size:.67rem}
.warehouse-operation .warehouse-article-trace-actions{padding:6px}.warehouse-operation .warehouse-article-trace-actions .btn{min-height:29px;padding:5px 7px;font-size:.7rem}
.warehouse-operation .warehouse-article-trace-list .warehouse-article-empty{margin:2px;padding:18px}
@media(max-width:1180px){.warehouse-operation .warehouse-article-trace-row-main{grid-template-columns:repeat(3,minmax(120px,1fr))}.warehouse-operation .warehouse-article-trace-table-header{grid-template-columns:minmax(135px,1fr) minmax(0,2.8fr) minmax(110px,.65fr)}}
@media(max-width:760px){.warehouse-operation .warehouse-article-tab-content:has(> .warehouse-trace-rich):not(:has(.warehouse-reservation-form)){overflow:auto!important}.warehouse-operation .warehouse-trace-rich{min-height:auto}.warehouse-operation .warehouse-article-trace-table{min-height:360px}.warehouse-operation .warehouse-article-trace-row-main{grid-template-columns:repeat(2,minmax(110px,1fr))}.warehouse-operation .warehouse-article-trace-table-header{grid-template-columns:1fr 1fr}.warehouse-operation .warehouse-article-trace-table-header span:last-child{display:none}}

/* Artículo 360 · ciclo de compras. Tabla legible, cabecera fija y desplazamiento solo vertical. */
.warehouse-operation .warehouse-purchase-cycle-table{display:flex;flex:1 1 auto;flex-direction:column;min-width:0;min-height:0;border:1px solid #cbdff3;border-radius:10px;background:#fff;overflow:hidden}
.warehouse-operation .warehouse-purchase-cycle-head,.warehouse-operation .warehouse-purchase-cycle-row{display:grid;grid-template-columns:minmax(145px,1.05fr) minmax(145px,1.12fr) minmax(165px,1.18fr) minmax(150px,1.05fr) minmax(170px,1.18fr) minmax(190px,1.35fr);min-width:0}
.warehouse-operation .warehouse-purchase-cycle-head{z-index:2;flex:0 0 auto;border-bottom:1px solid #bcd5ef;background:#eaf3ff;color:#0a427f;font-size:.67rem;font-weight:900;letter-spacing:.035em;text-transform:uppercase}
.warehouse-operation .warehouse-purchase-cycle-head span{min-width:0;padding:9px 10px;border-right:1px solid #d4e4f4;overflow-wrap:anywhere}.warehouse-operation .warehouse-purchase-cycle-head span:last-child{border-right:0}
.warehouse-operation .warehouse-purchase-cycle-body{display:flex;flex:1 1 auto;flex-direction:column;gap:6px;min-width:0;min-height:0;padding:6px;overflow-x:hidden;overflow-y:auto;scrollbar-gutter:stable}
.warehouse-operation .warehouse-purchase-cycle-row{flex:0 0 auto;min-height:84px;padding:0;border:1px solid #d6e4f3;border-radius:8px;background:#fff;color:#173f70;text-align:left;overflow:hidden}
.warehouse-operation .warehouse-purchase-cycle-row.has-documents{cursor:pointer}.warehouse-operation .warehouse-purchase-cycle-row.has-documents:hover,.warehouse-operation .warehouse-purchase-cycle-row.has-documents:focus-visible{border-color:#69a8e8;background:#f4f9ff;box-shadow:inset 3px 0 #0869cf;outline:0}
.warehouse-operation .warehouse-purchase-cycle-row.no-documents{cursor:default}
.warehouse-operation .warehouse-purchase-cycle-cell{display:flex;flex-direction:column;gap:3px;justify-content:flex-start;min-width:0;padding:9px 10px;border-right:1px solid #e3edf7;overflow-wrap:anywhere}.warehouse-operation .warehouse-purchase-cycle-cell:last-child{border-right:0}
.warehouse-operation .warehouse-purchase-cycle-cell strong{color:#083e7b;font-size:.78rem;line-height:1.28}.warehouse-operation .warehouse-purchase-cycle-cell small{color:#52708f;font-size:.7rem;line-height:1.3}.warehouse-operation .warehouse-purchase-status{align-self:flex-start;margin-top:2px;padding:3px 7px;border-radius:999px;background:#e7f5ec!important;color:#167742!important;font-weight:850}.warehouse-operation .warehouse-purchase-documents{margin-top:auto;color:#075cbe!important;font-weight:850}
.warehouse-operation .warehouse-purchase-cycle-empty{display:grid;flex:1;place-items:center;min-height:180px}.warehouse-operation .warehouse-purchase-cycle-empty .warehouse-article-empty{width:100%;margin:0}
@media(max-width:1180px){.warehouse-operation .warehouse-purchase-cycle-head{display:none}.warehouse-operation .warehouse-purchase-cycle-row{grid-template-columns:repeat(3,minmax(0,1fr));min-height:0}.warehouse-operation .warehouse-purchase-cycle-cell:nth-child(3){border-right:0}.warehouse-operation .warehouse-purchase-cycle-cell:nth-child(-n+3){border-bottom:1px solid #e3edf7}}
@media(max-width:760px){.warehouse-operation .warehouse-purchase-cycle-table{min-height:430px}.warehouse-operation .warehouse-purchase-cycle-row{grid-template-columns:1fr}.warehouse-operation .warehouse-purchase-cycle-cell{border-right:0;border-bottom:1px solid #e3edf7}.warehouse-operation .warehouse-purchase-cycle-cell:last-child{border-bottom:0}}

/* Artículo 360 · integración real con Dynamics 365. */
.warehouse-dynamics-tab{display:grid;gap:16px}.warehouse-dynamics-tab>header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:16px;border:1px solid #cfe0f4;border-radius:13px;background:linear-gradient(135deg,#f7fbff,#edf6ff)}.warehouse-dynamics-tab small{color:#2766a4;font-size:.72rem;font-weight:800;letter-spacing:.08em}.warehouse-dynamics-tab h3,.warehouse-dynamics-section h4{margin:3px 0;color:#073d7b}.warehouse-dynamics-tab p{max-width:760px;margin:6px 0 0;color:#496a8d}.warehouse-dynamics-tab>header .btn{flex:0 0 auto}.warehouse-dynamics-section{display:grid;gap:8px;padding:14px;border:1px solid #d6e4f4;border-radius:12px;background:#fbfdff}.warehouse-dynamics-section h4{font-size:1rem}.warehouse-dynamics-section .warehouse-article-list{display:grid;gap:8px}.warehouse-dynamics-section .warehouse-article-list article{display:grid;gap:3px;padding:10px 12px;border:1px solid #dbe7f5;border-radius:8px;background:#fff}.warehouse-dynamics-section .warehouse-article-list b{color:#093f80}.warehouse-dynamics-section .warehouse-article-list span{color:#577493;font-size:.86rem}@media(max-width:720px){.warehouse-dynamics-tab>header{align-items:stretch;flex-direction:column}.warehouse-dynamics-tab>header .btn{width:100%}}

/* Artículo 360 · ficha maestra editable. No usa el patrón de listados. */
.warehouse-operation .warehouse-article-tab-content:has(> .warehouse-article-master){display:block!important;min-height:0;padding:10px 12px;overflow:hidden!important}
.warehouse-article-master{display:grid;align-content:start;gap:10px;height:100%;min-height:0;padding:0 3px 4px;overflow-x:hidden;overflow-y:auto;scrollbar-gutter:stable}
.warehouse-master-section{display:grid;gap:9px;padding:11px 12px;border:1px solid #cfe0f3;border-radius:12px;background:linear-gradient(135deg,#fbfdff 0%,#f2f8ff 100%)}
.warehouse-master-section>header{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;padding-bottom:6px;border-bottom:1px solid #dce9f6}
.warehouse-master-section>header h3{margin:0;color:#0a4383;font-size:.92rem;line-height:1.2}.warehouse-master-section>header p{margin:0;color:#617b99;font-size:.75rem;line-height:1.25}
.warehouse-master-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px 11px;min-width:0}
[data-consumable-characteristic][hidden]{display:none!important}
.warehouse-master-field{display:flex;min-width:0;flex-direction:column;gap:5px;color:#3f5e80;font-size:.75rem;font-weight:600;line-height:1.25}
.warehouse-master-field>span{padding-left:2px}.warehouse-master-field input,.warehouse-master-field select,.warehouse-master-field textarea{box-sizing:border-box;width:100%;min-width:0;border:1px solid #bcd2ec;border-radius:8px;background:#fff;color:#123e70;font:400 .88rem/1.35 "Segoe UI",Arial,sans-serif;outline:0}.warehouse-master-field input,.warehouse-master-field select{min-height:38px;padding:8px 10px}.warehouse-master-field textarea{min-height:72px;padding:9px 10px;resize:vertical}.warehouse-master-field input:focus,.warehouse-master-field select:focus,.warehouse-master-field textarea:focus{border-color:#1670d2;box-shadow:0 0 0 3px rgba(22,112,210,.12)}.warehouse-master-field input[readonly]{background:#edf3f9;color:#667e98;cursor:not-allowed}.warehouse-master-field select[multiple]{min-height:82px;padding:4px}.warehouse-master-field select[multiple] option{padding:5px 7px;border-radius:5px}
.warehouse-master-field.span-2{grid-column:span 2}.warehouse-master-field.span-4{grid-column:span 4}.warehouse-master-check{align-items:center;align-self:end;flex-direction:row;min-height:38px;padding:8px 10px;border:1px solid #c9dced;border-radius:8px;background:#fff}.warehouse-master-check input{width:17px;min-height:17px}.warehouse-master-check span{color:#164c84;font-size:.84rem}
.warehouse-master-summary{display:grid;grid-template-columns:repeat(3,minmax(105px,.65fr)) minmax(280px,2fr);gap:9px}.warehouse-master-summary article{display:grid;align-content:center;gap:3px;min-height:66px;padding:9px 11px;border:1px solid #d3e3f4;border-radius:10px;background:#fff}.warehouse-master-summary small{color:#607b9a;font-size:.7rem}.warehouse-master-summary b{color:#0757b8;font-size:1.05rem}.warehouse-master-summary .location{grid-template-columns:1fr auto;align-items:center}.warehouse-master-summary .location small,.warehouse-master-summary .location b{grid-column:1}.warehouse-master-summary .location b{overflow-wrap:anywhere;color:#123f73;font-size:.87rem}.warehouse-master-summary .location .btn{grid-column:2;grid-row:1/span 2;min-width:142px}
.warehouse-master-summary .location>div{grid-column:2;grid-row:1/span 2;display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.warehouse-master-summary .location>div .btn{grid-column:auto;grid-row:auto;min-width:110px}.warehouse-temporary-placement{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:10px 0;padding:12px 14px;border:1px solid #efc27e;border-left:5px solid #df8b23;border-radius:11px;background:#fff8ec;color:#553710}.warehouse-temporary-placement small{display:block;color:#9a5b0c;font-weight:800;letter-spacing:.04em}.warehouse-temporary-placement h4{margin:3px 0;color:#7c4300}.warehouse-temporary-placement p,.warehouse-temporary-placement span{margin:2px 0;font-size:.82rem}.warehouse-temporary-placement .btn{flex:0 0 auto}
.warehouse-stock-settings{grid-template-columns:repeat(3,minmax(150px,1fr));margin-top:9px}.warehouse-stock-settings .warehouse-master-field{min-height:58px}
.warehouse-master-location-picker{display:grid;grid-template-columns:minmax(240px,1fr) auto;gap:9px;padding:9px;border:1px solid #b9d7f4;border-radius:9px;background:#edf6ff}.warehouse-master-location-picker select{min-width:0;min-height:38px;border:1px solid #aac9eb;border-radius:7px;background:#fff;padding:7px 9px;color:#143f70;font:400 .86rem "Segoe UI",Arial,sans-serif}
.warehouse-master-footer{position:sticky;bottom:0;z-index:2;display:flex;align-items:center;justify-content:flex-end;gap:13px;padding:9px 10px;border:1px solid #c6dcf3;border-radius:10px;background:rgba(246,250,255,.96);box-shadow:0 -5px 14px rgba(23,67,113,.08);backdrop-filter:blur(5px)}.warehouse-master-footer span{margin-right:auto;color:#607997;font-size:.75rem}.warehouse-master-footer .btn{min-width:145px}.warehouse-master-footer .btn:disabled{opacity:.48;cursor:not-allowed;filter:grayscale(.35)}
.warehouse-master-transfer{margin-top:10px;padding:10px;border:1px solid #bed8f1;border-radius:11px;background:#f5faff}
@media(max-width:1180px){.warehouse-master-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.warehouse-master-field.span-4{grid-column:span 2}.warehouse-master-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.warehouse-master-summary .location{grid-column:span 3}}
@media(max-width:720px){.warehouse-article-master{overflow-y:auto}.warehouse-master-grid,.warehouse-master-summary{grid-template-columns:1fr}.warehouse-master-field.span-2,.warehouse-master-field.span-4,.warehouse-master-summary .location{grid-column:span 1}.warehouse-master-section>header{align-items:flex-start;flex-direction:column}.warehouse-master-location-picker{grid-template-columns:1fr}.warehouse-master-summary .location{grid-template-columns:1fr}.warehouse-master-summary .location .btn{grid-column:1;grid-row:auto;width:100%}}
.warehouse-inactive-search-toggle{display:inline-flex;align-items:center;align-self:center;gap:7px;color:#60738d;font-size:.78rem;font-weight:650;line-height:1.2;white-space:nowrap;cursor:pointer;user-select:none}.warehouse-inactive-search-toggle input{width:15px;height:15px;margin:0;flex:0 0 15px;accent-color:#1265d8}.warehouse-manager-inactive-only{padding:0 4px}.warehouse-results>button.is-inactive{border-color:#d6dde8;background:#f7f9fc}.warehouse-results>button.is-inactive:hover{border-color:#7b8da8;background:#eef2f7}.warehouse-result-status{display:inline-flex;align-items:center;width:max-content;margin-top:2px;padding:3px 8px;border-radius:999px;font-size:12px;font-weight:700}.warehouse-result-status.inactive{background:#e9edf3;color:#52647c}@media(max-width:900px){.warehouse-inactive-search-toggle{white-space:normal}}
.warehouse-result-status.obsolete{background:#fff0d6;color:#9a4b00}.warehouse-search-results-list>.warehouse-search-result.is-obsolete{border-left:4px solid #e69a23!important}.warehouse-result-replacement{display:flex;align-items:center;gap:8px;color:#8a4b05;font-size:12px}.warehouse-result-replacement>b{color:#6d3900;text-transform:uppercase;font-size:10px;letter-spacing:.04em}
.warehouse-kit-membership{display:grid;gap:7px;padding:11px 13px;border:1px solid #bcd8fa;border-radius:9px;background:#f4f9ff;color:#164d8d}.warehouse-kit-membership>div{display:flex;flex-wrap:wrap;gap:7px}.warehouse-kit-membership button{padding:6px 9px;border:1px solid #8abcf4;border-radius:7px;background:#fff;color:#0759bf;font-weight:750;cursor:pointer}.warehouse-kit-membership small{color:#617894}
.warehouse-search-results-list{display:grid;gap:8px;border:0!important;border-radius:0!important;overflow:visible!important}.warehouse-search-results-list>.warehouse-search-result{display:grid;grid-template-columns:76px minmax(0,1fr) 150px;align-items:center;gap:16px;min-height:104px;padding:12px 14px;border:1px solid #d8e5f5!important;border-radius:11px;background:#fff;color:#12345f;text-align:left;cursor:pointer}.warehouse-search-results-list>.warehouse-search-result:hover,.warehouse-search-results-list>.warehouse-search-result:focus-visible{border-color:#3480dc!important;background:#f4f9ff;box-shadow:0 5px 15px #0b5eb71a;outline:none}.warehouse-search-results-list .warehouse-result-thumbnail{width:72px!important;height:72px!important;border-radius:9px!important}.warehouse-search-results-list .warehouse-result-data{display:grid!important;gap:7px!important;min-width:0}.warehouse-search-results-list .warehouse-result-heading{display:flex!important;align-items:center;gap:8px;min-width:0}.warehouse-search-results-list .warehouse-result-heading>b{font-size:16px;color:#083f83;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.warehouse-search-results-list .warehouse-result-fields{display:grid!important;grid-template-columns:minmax(150px,.8fr) minmax(140px,.7fr) minmax(240px,1.8fr);gap:8px 16px}.warehouse-search-results-list .warehouse-result-fields small{display:grid!important;gap:2px;min-width:0;color:#4c6380;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.25}.warehouse-search-results-list .warehouse-result-fields small>b{font-size:10px;color:#6b83a0;text-transform:uppercase;letter-spacing:.04em}.warehouse-search-results-list .warehouse-result-knowledge{max-height:42px;overflow:hidden!important}.warehouse-search-results-list .warehouse-result-stock{display:grid!important;justify-items:end;gap:3px;padding-left:12px;border-left:1px solid #e0e9f5}.warehouse-search-results-list .warehouse-result-stock small{color:#6b83a0;font-size:11px;text-transform:uppercase}.warehouse-search-results-list .warehouse-result-stock strong{color:#0759bf;font-size:18px}.warehouse-search-results-list .warehouse-result-stock em{color:#356899;font-size:12px;font-weight:750}@media(max-width:900px){.warehouse-search-results-list>.warehouse-search-result{grid-template-columns:58px minmax(0,1fr)}.warehouse-search-results-list .warehouse-result-thumbnail{width:54px!important;height:54px!important}.warehouse-search-results-list .warehouse-result-fields{grid-template-columns:1fr 1fr}.warehouse-search-results-list .warehouse-result-knowledge{grid-column:1/-1}.warehouse-search-results-list .warehouse-result-stock{grid-column:2;justify-items:start;padding:8px 0 0;border-left:0;border-top:1px solid #e0e9f5}}

/* SmartWarehouse · gestor profesional de pedidos. Todo el estado procede de la API compartida. */
.warehouse-orders{box-sizing:border-box;display:flex;flex-direction:column;gap:10px;width:100%;height:100%;min-width:0;min-height:0;padding:12px 14px;overflow:hidden;color:#0a376d;background:#f4f8fd}
.warehouse-orders *{box-sizing:border-box}.warehouse-orders h2,.warehouse-orders h3,.warehouse-orders p{margin:0}.warehouse-orders .eyebrow{color:#25639f;font-size:.68rem;font-weight:800;letter-spacing:.09em}.warehouse-orders-head,.warehouse-order-detail-head{display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;gap:16px;padding:12px 14px;border:1px solid #cbdff3;border-radius:12px;background:#fff}.warehouse-orders-head h2,.warehouse-order-detail-head h2{margin:2px 0;color:#072f63;font-size:1.35rem}.warehouse-orders-head p,.warehouse-order-detail-head p{color:#587391;font-size:.82rem}.warehouse-orders-head.compact>div{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:4px 12px}.warehouse-orders-head.compact>div .btn{grid-row:1/3}.warehouse-orders-head.compact>div p{grid-column:2}
.warehouse-order-filters{display:grid;flex:0 0 auto;grid-template-columns:minmax(180px,1.45fr) minmax(150px,1fr) minmax(160px,1.1fr) minmax(120px,.8fr) minmax(125px,.75fr) minmax(125px,.75fr) auto;gap:8px;padding:10px;border:1px solid #cbdff3;border-radius:11px;background:#eaf3ff}.warehouse-order-filters label,.warehouse-order-form label,.receipt-assist label{display:grid;gap:4px;min-width:0;color:#355878;font-size:.7rem;font-weight:750}.warehouse-order-filters input,.warehouse-order-filters select,.warehouse-order-form input,.warehouse-order-form select,.warehouse-order-form textarea,.receipt-assist input,.receipt-assist select,.receipt-assist textarea{width:100%;min-width:0;min-height:38px;border:1px solid #b8d0eb;border-radius:8px;background:#fff;padding:7px 9px;color:#103c6d;font:400 .82rem/1.3 "Segoe UI",Arial,sans-serif}.warehouse-order-filters input:focus,.warehouse-order-filters select:focus,.warehouse-order-form :is(input,select,textarea):focus,.receipt-assist :is(input,select,textarea):focus{border-color:#176dcc;box-shadow:0 0 0 3px #176dcc1c;outline:0}.warehouse-order-filters .filter-actions{display:flex;align-items:flex-end;gap:6px}
.warehouse-order-table-wrap{flex:1 1 auto;min-height:0;border:1px solid #c8dcf1;border-radius:11px;background:#fff;overflow:auto;scrollbar-gutter:stable}.warehouse-order-table,.compact-table{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed}.warehouse-order-table thead,.compact-table thead{position:sticky;z-index:2;top:0;background:#e9f3ff;color:#0a427e;font-size:.68rem;text-align:left}.warehouse-order-table th,.warehouse-order-table td,.compact-table th,.compact-table td{padding:9px 10px;border-bottom:1px solid #dfebf7;overflow-wrap:anywhere;vertical-align:top}.warehouse-order-table tbody tr{cursor:pointer}.warehouse-order-table tbody tr:hover{background:#f1f7ff;box-shadow:inset 3px 0 #0c6bd2}.warehouse-order-table td{color:#183f6d;font-size:.78rem}.warehouse-order-table td strong,.warehouse-order-table td small{display:block}.warehouse-order-table td small{margin-top:3px;color:#67809a;font-size:.69rem}.warehouse-order-table th:nth-child(1){width:15%}.warehouse-order-table th:nth-child(2){width:16%}.warehouse-order-table th:nth-child(3){width:10%}.warehouse-order-table th:nth-child(4){width:13%}.warehouse-order-table th:nth-child(5){width:7%}.warehouse-order-table th:nth-child(6){width:10%}.warehouse-order-table th:nth-child(7){width:9%}.warehouse-order-table th:nth-child(8){width:12%}.warehouse-order-table th:nth-child(9){width:8%}.order-status{display:inline-flex;padding:4px 7px;border-radius:999px;background:#eaf2fb;color:#174f88;font-size:.68rem;font-weight:850}.order-status.approved,.order-status.received{background:#e5f6eb;color:#13713c}.order-status.sent,.order-status.partially_received{background:#fff2d7;color:#8b5b00}.order-status.cancelled{background:#fde8e8;color:#a72626}.warehouse-orders .empty{padding:18px;color:#71869d;text-align:center}
.warehouse-order-form{display:flex;flex:1 1 auto;flex-direction:column;gap:10px;min-height:0;padding:11px;border:1px solid #cbdff3;border-radius:12px;background:#fff;overflow:hidden}.order-general-grid{display:grid;flex:0 0 auto;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.order-general-grid .wide{grid-column:span 2}.order-general-grid textarea{min-height:52px;resize:vertical}.order-lines-head,.order-card>header{display:flex;align-items:center;justify-content:space-between;gap:12px}.order-lines-head{flex:0 0 auto;padding:3px 2px}.order-lines-head h3,.order-card h3{color:#083d79;font-size:.95rem}.order-lines-head p,.order-card p{color:#607a98;font-size:.76rem}.order-lines{display:flex;flex:1 1 auto;flex-direction:column;gap:7px;min-height:0;padding-right:3px;overflow-y:auto;scrollbar-gutter:stable}.order-line-editor{display:grid;grid-template-columns:32px 120px minmax(150px,1fr) minmax(155px,1.35fr) minmax(115px,.75fr) 78px 88px minmax(120px,.9fr) 34px;gap:6px;align-items:end;padding:8px;border:1px solid #d7e5f4;border-radius:9px;background:#f9fcff}.order-line-editor .line-number{display:grid;place-items:center;align-self:stretch;border-radius:7px;background:#e5f1ff;color:#075dbf;font-weight:850}.order-line-editor label{font-size:.64rem}.order-line-editor .line-notes{grid-column:4/9}.order-line-editor .icon-danger{align-self:center;width:32px;height:32px;border:1px solid #f1aaaa;border-radius:7px;background:#fff4f4;color:#b72020;cursor:pointer}.warehouse-order-form>footer{display:flex;flex:0 0 auto;justify-content:flex-end}
.warehouse-order-toast{position:fixed;z-index:10050;right:18px;top:82px;max-width:min(460px,calc(100vw - 36px));padding:11px 14px;border:1px solid #a8d4b8;border-radius:10px;background:#e8f8ee;color:#126c39;box-shadow:0 10px 28px #173e6b2b;font-size:.82rem}.warehouse-order-toast.error{border-color:#efaaaa;background:#fff0f0;color:#9d2020}
.warehouse-order-detail-head{align-items:flex-start}.warehouse-order-detail-head>div:first-child{display:grid;grid-template-columns:auto 1fr;gap:2px 10px}.warehouse-order-detail-head>div:first-child .btn{grid-row:1/4}.warehouse-order-detail-head h2,.warehouse-order-detail-head p{grid-column:2}.order-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px}.order-summary{display:grid;flex:0 0 auto;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.order-summary>span{display:grid;gap:2px;padding:8px 10px;border:1px solid #d6e5f4;border-radius:9px;background:#fff}.order-summary small{color:#607a98;font-size:.66rem}.order-summary b{color:#073d78;font-size:.82rem}.order-summary em{overflow:hidden;color:#69819a;font-size:.68rem;font-style:normal;text-overflow:ellipsis;white-space:nowrap}.order-detail-columns{display:grid;flex:1 1 auto;grid-template-columns:minmax(0,1fr) minmax(300px,31%);gap:9px;min-height:0}.order-detail-columns>main,.order-detail-columns>aside{display:flex;flex-direction:column;gap:9px;min-height:0;overflow-y:auto;scrollbar-gutter:stable}.order-card{display:grid;gap:8px;padding:10px;border:1px solid #cfdfef;border-radius:10px;background:#fff}.compact-table{font-size:.72rem}.compact-table th,.compact-table td{padding:7px 8px}.compact-table td small{display:block;margin-top:2px;color:#71869b}.order-document-list,.order-timeline{display:grid;gap:6px}.order-document-list article,.order-timeline article,.trace-row,.receipt-record{display:grid;grid-template-columns:auto 1fr auto;gap:7px;align-items:center;padding:7px 8px;border:1px solid #dfebf6;border-radius:8px;background:#f9fcff}.order-document-list article div,.order-timeline article div{min-width:0}.order-document-list small,.order-timeline p,.trace-row small,.receipt-record small{color:#667f99;font-size:.67rem}.order-timeline article i{width:8px;height:8px;border-radius:50%;background:#1670d2}.file-button{position:relative;display:flex!important;align-items:center;justify-content:center;cursor:pointer}.file-button input{position:absolute;width:1px;height:1px;opacity:0}.full{width:100%}.receipt-assist{flex:0 0 auto}.receipt-assist>header .confidence{padding:5px 8px;border-radius:999px;background:#e8f5ec;color:#16713d;font-size:.7rem;font-weight:850}.assist-questions{display:grid;gap:5px}.assist-questions p{padding:7px;border-radius:7px;background:#fff5dc;color:#795200;font-size:.72rem}.assist-lines{display:grid;max-height:280px;overflow-y:auto}.assist-line{display:grid;grid-template-columns:minmax(150px,1.2fr) 90px 80px minmax(135px,1fr) 130px minmax(120px,.9fr);gap:6px;align-items:center;padding:6px;border-bottom:1px solid #e0ebf6;font-size:.7rem}.assist-line.headings{position:sticky;z-index:2;top:0;background:#eaf3ff;color:#0a427f;font-weight:850}.assist-line span small{display:block;color:#6b829a}.label-fields{display:grid;grid-template-columns:1fr 52px;gap:4px}.assist-actions{display:flex;justify-content:flex-end;gap:7px}
@media(max-width:1250px){.warehouse-order-filters{grid-template-columns:repeat(4,minmax(0,1fr))}.warehouse-order-filters .filter-actions{align-items:end}.order-line-editor{grid-template-columns:32px 110px minmax(140px,1fr) minmax(150px,1.4fr) 105px 70px 80px 32px}.order-line-editor .line-notes{grid-column:3/8}.order-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.order-detail-columns{grid-template-columns:minmax(0,1fr) 310px}}
@media(max-width:900px){.warehouse-orders{height:auto;min-height:100%;overflow:auto}.warehouse-order-filters,.order-general-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.order-line-editor{grid-template-columns:32px 110px 1fr 1fr}.order-line-editor .line-notes{grid-column:2/5}.order-detail-columns{grid-template-columns:1fr}.order-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.assist-line{grid-template-columns:repeat(2,minmax(0,1fr))}.assist-line.headings{display:none}}

/* SmartVision: lectura real, identificación manual y revisión no bloqueante. */
.warehouse-orders .assist-source{display:inline-flex;margin-top:5px;color:#075dc0;font-size:.7rem;font-weight:750;text-decoration:none}
.warehouse-orders .assist-source:hover{text-decoration:underline}
.warehouse-orders .assist-line{grid-template-columns:minmax(145px,1.15fr) minmax(165px,1.25fr) 78px 72px minmax(125px,1fr) 120px minmax(105px,.8fr)}
.warehouse-orders .label-fields{grid-template-columns:1fr 48px}
@media(max-width:900px){.warehouse-orders .assist-line{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Artículo 360 · nueve áreas estables y perfil reparable conectado. */
.warehouse-operation .warehouse-article-tabs{grid-template-columns:repeat(9,minmax(0,1fr))!important}
.warehouse-master-flags{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:0 0 9px}.warehouse-master-flags label{display:flex;align-items:center;gap:7px;min-height:36px;padding:7px 9px;border:1px solid #cfe0f2;border-radius:8px;background:#f8fbff;color:#174775;font-size:.76rem;font-weight:750}.warehouse-master-flags input{accent-color:#1265d8}
.warehouse-repair-profile{display:grid;gap:9px;margin-bottom:10px;padding:10px 12px;border:1px solid #b9d3ee;border-radius:11px;background:#f7fbff}.warehouse-repair-profile>header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.warehouse-repair-profile h3,.warehouse-repair-profile p{margin:2px 0}.warehouse-repair-profile h3 strong{color:#075bc8}.warehouse-repair-profile p{color:#5c7590;font-size:.75rem}.warehouse-repair-switch{display:flex;align-items:center;gap:7px;padding:7px 10px;border-radius:999px;background:#e6f1ff;color:#0754ad;font-size:.76rem;font-weight:800;white-space:nowrap}.warehouse-repair-switch input{accent-color:#1265d8}.warehouse-repair-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.warehouse-repair-grid[hidden],.warehouse-master-grid[data-consumable-characteristic][hidden]{display:none!important}.warehouse-repair-grid label{display:grid;gap:4px;color:#315778;font-size:.68rem;font-weight:750}.warehouse-repair-grid .wide{grid-column:span 5}.warehouse-repair-grid :is(input,select,textarea){box-sizing:border-box;width:100%;min-width:0;border:1px solid #bcd1e8;border-radius:7px;background:#fff;padding:7px 8px;color:#153e69;font:inherit}.warehouse-repair-profile>footer{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#657d96;font-size:.68rem}
@media(max-width:1200px){.warehouse-operation .warehouse-article-tabs{grid-template-columns:repeat(5,minmax(0,1fr))!important}.warehouse-master-flags{grid-template-columns:repeat(2,minmax(0,1fr))}.warehouse-repair-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.warehouse-repair-grid .wide{grid-column:span 3}}
@media(max-width:720px){.warehouse-operation .warehouse-article-tabs{grid-template-columns:repeat(3,minmax(0,1fr))!important}.warehouse-master-flags,.warehouse-repair-grid{grid-template-columns:1fr}.warehouse-repair-grid .wide{grid-column:span 1}.warehouse-repair-profile>header,.warehouse-repair-profile>footer{align-items:stretch;flex-direction:column}}
.warehouse-master-permission,.warehouse-repair-profile fieldset{border:0;margin:0;padding:0;min-width:0}.warehouse-repair-profile fieldset{display:grid;gap:9px}.warehouse-repair-profile fieldset>header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.warehouse-repair-profile fieldset>footer{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#657d96;font-size:.68rem}.warehouse-master-permission:disabled,.warehouse-repair-profile fieldset:disabled{opacity:.78}.warehouse-readonly-note,.warehouse-repair-notice{margin:0 0 16px;padding:12px 16px;border:1px solid #bfd5f4;border-radius:10px;background:#eef6ff;color:#123f76;font-weight:700}.warehouse-repair-notice{border-color:#f1cf8e;background:#fff8e8;color:#754b00}.warehouse-trace-actions{display:flex;justify-content:flex-end;margin-top:14px}
@media(max-width:720px){.warehouse-repair-profile fieldset>header,.warehouse-repair-profile fieldset>footer{align-items:stretch;flex-direction:column}}

/* Artículo 360 · lectura completa y densidad adaptable sin scrolls anidados. */
.warehouse-operation .warehouse-article-tabs{grid-template-columns:repeat(9,minmax(0,1fr))!important;padding:0 14px!important}
.warehouse-operation .warehouse-article-tabs button{min-height:42px!important;height:42px!important;padding:5px 7px!important;font-size:11.5px!important;line-height:1.18!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:normal!important}
.warehouse-operation .warehouse-article-identification h2{display:-webkit-box!important;overflow:hidden!important;white-space:normal!important;text-overflow:clip!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important}
.warehouse-operation .warehouse-article-tab-content{scrollbar-gutter:auto!important}
.warehouse-operation .warehouse-article-tab-content:has(> .warehouse-article-master){padding:7px 9px!important}
.warehouse-article-master{padding:0!important;scrollbar-gutter:auto!important}
.warehouse-master-section{align-content:start;gap:4px;padding:6px 8px;border-radius:9px}
.warehouse-master-section>header{gap:8px;padding-bottom:4px}.warehouse-master-section>header h3{font-size:.84rem}.warehouse-master-section>header p{max-width:62%;font-size:.68rem}
.warehouse-master-grid{gap:4px 6px}.warehouse-master-field{gap:2px;font-size:.65rem;line-height:1.1}.warehouse-master-field input,.warehouse-master-field select{min-height:29px;padding:4px 7px;font-size:.76rem}.warehouse-master-field textarea{min-height:36px;height:36px;padding:4px 7px;font-size:.74rem;line-height:1.2;resize:none}.warehouse-master-field select[multiple]{min-height:36px;height:36px}
.warehouse-master-check{min-height:32px;padding:5px 7px}.warehouse-master-check span{font-size:.75rem}
.warehouse-master-summary{gap:5px}.warehouse-master-summary article{min-height:50px;padding:6px 8px}.warehouse-master-summary b{font-size:.9rem}.warehouse-master-summary .location .btn{min-width:116px;min-height:30px;padding:5px 8px;font-size:.7rem}
.warehouse-stock-settings{gap:5px;margin-top:5px}.warehouse-stock-settings .warehouse-master-field{min-height:0}
.warehouse-master-flags{gap:5px;margin:0}.warehouse-master-flags label{min-height:31px;padding:5px 7px;font-size:.69rem}
.warehouse-master-footer{position:static;padding:6px 8px;border-radius:8px;box-shadow:none}.warehouse-master-footer .btn{min-width:125px;min-height:31px;padding:5px 9px;font-size:.72rem}
@media(min-width:1201px){
  .warehouse-operation .warehouse-article-hero{min-height:84px!important;padding:7px 16px!important}
  .warehouse-operation .warehouse-article-photo,.warehouse-operation .warehouse-article-photo img{width:64px!important;height:64px!important}
  .warehouse-operation .warehouse-article-identification h2{font-size:20px!important}
  .warehouse-operation .warehouse-article-meta{margin-top:4px!important;font-size:11px!important}
  .warehouse-operation .warehouse-article-tab-content:has(> .warehouse-article-master){overflow:hidden!important}
  .warehouse-article-master{grid-template-columns:repeat(3,minmax(0,1fr));align-content:start;gap:5px;overflow:hidden!important}
  .warehouse-master-permission{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:max-content;align-content:start;grid-column:1/-1;gap:5px;min-height:0}
  .warehouse-master-permission>.warehouse-master-section:nth-of-type(1),.warehouse-master-permission>.warehouse-master-section:nth-of-type(3),.warehouse-master-permission>.warehouse-master-section:nth-of-type(5){grid-column:span 2}
  .warehouse-master-permission>.warehouse-master-section:nth-of-type(2),.warehouse-master-permission>.warehouse-master-section:nth-of-type(4),.warehouse-master-permission>.warehouse-master-section:nth-of-type(6){grid-column:span 1}
  .warehouse-master-permission>.warehouse-master-section:nth-of-type(2) .warehouse-master-grid,.warehouse-master-permission>.warehouse-master-section:nth-of-type(4) .warehouse-master-grid,.warehouse-master-permission>.warehouse-master-section:nth-of-type(6) .warehouse-master-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .warehouse-master-permission>.warehouse-master-section:nth-of-type(2) .span-2{grid-column:span 2}
  .warehouse-master-permission>.warehouse-master-section:nth-of-type(6) .span-2,.warehouse-master-permission>.warehouse-master-section:nth-of-type(6) .span-4{grid-column:span 1}
  .warehouse-master-permission>.warehouse-master-footer{grid-column:1/-1}
}
@media(max-width:1200px){
  .warehouse-operation .warehouse-article-tabs{grid-template-columns:repeat(9,minmax(0,1fr))!important}
  .warehouse-operation .warehouse-article-tabs button{min-height:44px!important;height:44px!important;font-size:10.5px!important}
  .warehouse-operation .warehouse-article-tab-content:has(> .warehouse-article-master){overflow:auto!important}
  .warehouse-article-master{height:auto;overflow:visible!important}
}
.warehouse-master-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;flex:0 0 auto;padding:4px;border:1px solid #c9dcf1;border-radius:9px;background:#eaf3fd}.warehouse-master-nav button{min-width:0;min-height:32px;border:0;border-radius:6px;background:transparent;color:#426486;font-size:.72rem;font-weight:750}.warehouse-master-nav button:hover{background:#f7fbff;color:#0757b8}.warehouse-master-nav button.active{background:#fff;color:#0757b8;box-shadow:0 1px 5px #124f8d21}
.warehouse-master-section[hidden]{display:none!important}
@media(min-width:721px){
  .warehouse-operation .warehouse-article-tab-content:has(> .warehouse-article-master){overflow:hidden!important}
  .warehouse-article-master{display:flex;flex-direction:column;height:100%;overflow:hidden!important}
  .warehouse-master-permission{display:flex!important;flex:1 1 auto;flex-direction:column;gap:6px;min-height:0}
  .warehouse-master-permission>.warehouse-master-section{flex:1 1 auto;grid-column:auto!important;min-height:0}
  .warehouse-master-permission>.warehouse-master-section .warehouse-master-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  .warehouse-master-permission>.warehouse-master-section .warehouse-master-field.span-2{grid-column:span 2!important}.warehouse-master-permission>.warehouse-master-section .warehouse-master-field.span-4{grid-column:span 4!important}
  .warehouse-master-permission>.warehouse-master-footer{grid-column:auto!important;flex:0 0 auto}
}
@media(max-width:900px){.warehouse-master-nav{grid-template-columns:repeat(3,minmax(0,1fr))}.warehouse-master-permission>.warehouse-master-section .warehouse-master-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.warehouse-master-permission>.warehouse-master-section .warehouse-master-field.span-4{grid-column:span 2!important}}
.warehouse-operation .warehouse-article-identification h2{font-size:18px!important}
@media(min-width:901px){
  .warehouse-operation .warehouse-article-tab-content:has(> .warehouse-reservation-form){display:grid!important;grid-template-columns:minmax(0,1.65fr) minmax(320px,.85fr);gap:8px;overflow:hidden!important}
  .warehouse-operation .warehouse-article-tab-content:has(> .warehouse-reservation-form)>.warehouse-reservation-form,.warehouse-operation .warehouse-article-tab-content:has(> .warehouse-reservation-form)>.warehouse-trace-rich{height:100%;min-height:0;overflow:hidden}
  .warehouse-operation .warehouse-reservation-form{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:0;padding:9px 11px}
  .warehouse-operation .warehouse-reservation-heading,.warehouse-operation .warehouse-reservation-form>.notice{grid-column:1/-1}
  .warehouse-operation .warehouse-reservation-heading{align-items:center;padding-bottom:6px}.warehouse-operation .warehouse-reservation-heading h3{font-size:1rem}.warehouse-operation .warehouse-reservation-heading p{font-size:.76rem}.warehouse-operation .warehouse-reservation-heading strong{padding:6px 9px;font-size:.74rem}
  .warehouse-operation .warehouse-reservation-form .field{gap:3px}.warehouse-operation .warehouse-reservation-form :is(input,select){min-height:32px;padding:5px 8px}.warehouse-operation .warehouse-reservation-form textarea{min-height:36px;height:36px;resize:none}.warehouse-operation .warehouse-reservation-form .field.full{grid-column:span 2}
  .warehouse-operation .warehouse-reservation-form>.btn{width:100%;min-width:0}
  .warehouse-operation .warehouse-article-tab-content:has(> .warehouse-reservation-form)>.warehouse-trace-rich .warehouse-article-trace-table-header{display:none}
  .warehouse-operation .warehouse-knowledge-capture{gap:7px}.warehouse-operation .warehouse-knowledge-capture>header{margin:0}.warehouse-operation .warehouse-knowledge-capture>header p{font-size:.76rem}.warehouse-operation .warehouse-knowledge-capture form{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:9px}.warehouse-operation .warehouse-knowledge-capture form label:nth-of-type(3){grid-column:span 2}.warehouse-operation .warehouse-knowledge-capture form :is(input,textarea){padding:6px 8px}.warehouse-operation .warehouse-knowledge-capture form textarea{min-height:48px;height:48px;resize:none}
  .warehouse-operation .warehouse-consumption-tab>.warehouse-article-detail{grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}.warehouse-operation .warehouse-consumption-tab>.warehouse-article-detail article{min-height:58px;padding:6px 8px}.warehouse-operation .warehouse-consumption-tab>.warehouse-article-detail article strong{margin-top:2px;font-size:.9rem}.warehouse-operation .warehouse-consumption-tab>.warehouse-article-detail article :is(b,span){font-size:.68rem}
}
@media(max-width:900px){.warehouse-operation .warehouse-article-tab-content:has(> .warehouse-reservation-form){display:block!important;overflow:auto!important}}

/* Artículo 360 · Reparables: control positivo y paneles legibles. */
.warehouse-repair-switch{display:grid;grid-template-columns:auto 1fr;column-gap:7px;row-gap:1px;min-width:174px;border:1px solid #b9d4f2;background:#eaf4ff}.warehouse-repair-switch input{grid-row:1/3;align-self:center}.warehouse-repair-switch span{color:#174a80;font-weight:850}.warehouse-repair-switch strong{color:#075bc8;font-size:.68rem}.warehouse-repair-notice[hidden]{display:none!important}
@media(min-width:901px){
  .warehouse-operation .warehouse-article-tab-content:has(> .warehouse-repair-profile):has(> .warehouse-trace-rich){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto minmax(0,1fr);gap:8px;overflow:hidden!important}
  .warehouse-operation .warehouse-article-tab-content:has(> .warehouse-repair-profile)>.warehouse-repair-profile{grid-column:1/-1;margin:0;padding:8px 10px}
  .warehouse-operation .warehouse-article-tab-content:has(> .warehouse-repair-profile)>.warehouse-trace-rich{min-height:0;overflow:hidden}
  .warehouse-operation .warehouse-article-tab-content:has(> .warehouse-repair-profile) .warehouse-article-trace-table-header{display:none}
  .warehouse-repair-profile fieldset{gap:6px}.warehouse-repair-profile fieldset>header{align-items:center;gap:10px}.warehouse-repair-profile fieldset>header h3{font-size:.96rem}.warehouse-repair-profile fieldset>header p{font-size:.72rem;line-height:1.2}
  .warehouse-repair-profile .warehouse-repair-notice{margin:0;padding:7px 10px;font-size:.72rem}
  .warehouse-repair-profile fieldset>footer{min-height:30px}.warehouse-repair-profile fieldset>footer .btn{min-height:30px;padding:5px 10px;font-size:.72rem}
  .warehouse-repair-grid{grid-template-columns:repeat(7,minmax(0,1fr));align-items:end;gap:6px}.warehouse-repair-grid .wide{grid-column:span 2}.warehouse-repair-grid :is(input,select){min-height:30px;padding:5px 7px}.warehouse-repair-grid textarea{min-height:30px;height:30px;padding:5px 7px;resize:none}
}
@media(max-width:900px){.warehouse-operation .warehouse-article-tab-content:has(> .warehouse-repair-profile){display:block!important;overflow:auto!important}.warehouse-operation .warehouse-article-tab-content:has(> .warehouse-repair-profile)>*{margin-bottom:8px}.warehouse-repair-switch{min-width:0}}

/* Pedidos de servicios y contratos periódicos */
.contract-fields{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;padding:10px;border:1px solid #afd1f4;border-radius:10px;background:#eef7ff}.contract-fields>header{grid-column:1/-1}.contract-fields>header h3{margin:0;color:#073d78;font-size:.88rem}.contract-fields>header p{margin:2px 0 0;color:#53799f;font-size:.7rem}.contract-fields .contract-instructions{grid-column:1/-1}.contract-fields textarea{min-height:54px}.service-contract-card{border-color:#91bfea;background:#fbfdff}.service-contract-card>header>div{display:grid;gap:2px}.provider-instruction{padding:9px 11px;border-left:4px solid #0d6ccc;border-radius:7px;background:#eaf4ff}.provider-instruction b{color:#073d78;font-size:.75rem}.provider-instruction p{margin-top:3px!important;color:#315e8b!important}.certification-periods{display:grid;gap:6px;max-height:310px;overflow-y:auto}.certification-period{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 10px;border:1px solid #d7e6f5;border-radius:8px;background:#fff}.certification-period>div:first-child{display:grid;gap:2px}.certification-period b{color:#123f70;font-size:.75rem}.certification-period small,.certification-period em{color:#607d9b;font-size:.67rem;font-style:normal}.certification-period>div:last-child{display:flex;flex:0 0 auto;gap:5px}.certification-period.certified{border-color:#8ed0a3;background:#f0fbf4}.certification-period.invoiced{border-color:#7eb8ef;background:#edf7ff}.certification-period.rejected{border-color:#eba8a8;background:#fff4f4}
@media(max-width:1250px){.contract-fields{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.contract-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.certification-period{align-items:stretch;flex-direction:column}.certification-period>div:last-child{flex-wrap:wrap}}

/* Conocimiento asistido: Vision propone; la persona revisa y confirma. */
.warehouse-knowledge-learning>header{align-items:center}.warehouse-vision-state{flex:0 0 auto;padding:7px 11px;border-radius:999px;background:#eef4fb;color:#4b6685;font-size:.76rem;font-weight:850}.warehouse-vision-state.ready{background:#e5f7ed;color:#087342}.warehouse-knowledge-learning form{display:grid;grid-template-columns:1fr 1fr;align-items:start}.warehouse-knowledge-learning fieldset{min-width:0;margin:0;padding:14px;border:1px solid #c9ddf3;border-radius:11px;background:#fff;display:grid;grid-template-columns:1fr 1fr;gap:11px}.warehouse-knowledge-learning fieldset legend{padding:0 7px;color:#0757ad;font-weight:900}.warehouse-knowledge-learning label.full{grid-column:1/-1}.warehouse-knowledge-learning form footer{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:18px;padding-top:4px}.warehouse-knowledge-learning form footer p{max-width:820px;margin:0;color:#557392;font-size:.8rem;line-height:1.4}.warehouse-visual-match{display:inline-flex;align-items:center;margin-left:8px;padding:3px 7px;border-radius:999px;background:#e6f6ed;color:#08733f;font-size:.7rem;font-weight:900}@media(max-width:1050px){.warehouse-knowledge-learning form{grid-template-columns:1fr}.warehouse-knowledge-learning form footer{grid-column:auto}}@media(max-width:620px){.warehouse-knowledge-learning fieldset{grid-template-columns:1fr}.warehouse-knowledge-learning label.full{grid-column:auto}.warehouse-knowledge-learning form footer{display:grid}}

/* Relaciones de artículos: selección explícita, lista visible y composición compacta. */
.warehouse-supply-core{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.warehouse-article-relation{display:grid;align-content:start;gap:6px;min-width:0;padding:8px 9px;border:1px solid #bfd8f2;border-radius:9px;background:#f8fbff}.warehouse-article-relation>header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.warehouse-article-relation>header div{display:grid;gap:2px;min-width:0}.warehouse-article-relation>header b{color:#123f74;font-size:.75rem}.warehouse-article-relation>header small{color:#5c7795;font-size:.62rem;line-height:1.2}.warehouse-article-relation>header>span{flex:0 0 auto;padding:2px 6px;border-radius:999px;background:#e3f0ff;color:#075bbd;font-size:.6rem;font-weight:800}.warehouse-article-relation-selected{display:flex;align-items:center;gap:5px;min-height:29px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}.warehouse-article-relation-selected>button{display:inline-flex;align-items:center;gap:6px;max-width:100%;min-height:25px;padding:3px 7px;border:1px solid #8fbced;border-radius:999px;background:#fff;color:#0a569f;font-size:.65rem;font-weight:700;white-space:nowrap;cursor:pointer}.warehouse-article-relation-selected>button span{overflow:hidden;text-overflow:ellipsis}.warehouse-article-relation-selected>button b{color:#9d2f2f;font-size:.85rem}.warehouse-article-relation-selected>em{color:#71869e;font-size:.66rem;font-style:normal}.warehouse-article-relation-add{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px}.warehouse-article-relation-add select{width:100%;min-width:0;min-height:30px;border:1px solid #bcd2ec;border-radius:7px;background:#fff;padding:4px 7px;color:#123e70;font-size:.71rem}.warehouse-article-relation-add .btn{min-height:30px;padding:4px 9px;font-size:.68rem}.warehouse-obsolescence{display:grid;grid-template-columns:minmax(170px,.65fr) minmax(0,2.45fr);align-items:start;gap:7px;padding:7px;border:1px solid #efd29d;border-radius:9px;background:#fffaf0}.warehouse-obsolescence>.warehouse-master-check{margin:0}.warehouse-obsolescence-fields{display:grid;grid-template-columns:minmax(320px,1.45fr) minmax(220px,1fr);gap:7px;min-width:0;margin:0;padding:0;border:0}.warehouse-obsolescence-fields>.warehouse-article-relation{padding:6px 7px;background:#fff}.warehouse-obsolescence-fields>.warehouse-master-field{align-self:stretch}.warehouse-obsolescence-fields>.warehouse-master-field input{min-height:30px}.warehouse-obsolescence-fields:disabled,.warehouse-consumable-fields:disabled{opacity:.55}.warehouse-obsolescence-fields :disabled,.warehouse-consumable-fields :disabled{cursor:not-allowed}.warehouse-consumable-fields{margin:0;padding:0;border:0}.warehouse-master-section[data-editor-section="supply"],.warehouse-master-section[data-master-section="supply"]{overflow:hidden}.warehouse-master-section[data-editor-section="supply"]>.warehouse-master-grid,.warehouse-master-section[data-master-section="supply"]>.warehouse-master-grid{align-content:start;grid-auto-rows:max-content}@media(max-width:900px){.warehouse-supply-core{grid-template-columns:1fr}.warehouse-obsolescence,.warehouse-obsolescence-fields{grid-template-columns:1fr}.warehouse-article-relation-selected{overflow-x:auto}.warehouse-master-section[data-editor-section="supply"],.warehouse-master-section[data-master-section="supply"]{overflow:visible}}

/* Manifiesto de recepción: pedido y documento siempre visibles sin truncar datos. */
.warehouse-orders .receipt-assist{flex:1 1 auto;min-width:0;min-height:0;overflow:auto;align-content:start}.receipt-assist .order-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.receipt-assist .order-summary>label{display:grid;gap:6px;min-width:0}.receipt-assist .order-summary select{width:100%;min-width:0}.receipt-assist .order-summary em{white-space:normal;overflow-wrap:anywhere}.receipt-assist .assist-line>span{min-width:0;overflow-wrap:anywhere}.receipt-assist .assist-line small{display:block}.receipt-assist pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:260px;overflow:auto}.receipt-assist footer{display:flex;justify-content:flex-end;padding:12px 0}@media(max-width:900px){.receipt-assist .order-summary{grid-template-columns:1fr}}

/* Entrada desde albarán: carga directa y lectura que se puede cotejar antes de mover stock. */
.receipt-dropzone-host{margin:0 0 8px}.receipt-dropzone{display:grid;grid-template-columns:auto auto minmax(180px,1fr);align-items:center;gap:8px;min-height:48px;padding:7px 11px;border:1px dashed #4c88c6;border-radius:9px;background:#f1f8ff;color:#064f9d;cursor:pointer;transition:.15s ease}.receipt-dropzone:hover,.receipt-dropzone.dragging{border-color:#0869c4;background:#e1f1ff;box-shadow:0 0 0 3px #c7e5ff}.receipt-dropzone>span{font-size:1.1rem}.receipt-dropzone b{font-size:.78rem}.receipt-dropzone small{color:#55799f;font-size:.68rem}.receipt-dropzone input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.receipt-readback{margin-bottom:8px;padding:10px 12px;border:1px solid #9bc8ee;border-radius:10px;background:#f7fbff}.receipt-readback header h4{margin:1px 0;color:#073d78;font-size:.95rem}.receipt-readback header p{margin:2px 0 0;color:#577798;font-size:.72rem}.receipt-readback-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-top:9px}.receipt-readback-fields article{display:grid;gap:2px;min-width:0;padding:7px 8px;border:1px solid #d0e3f5;border-radius:7px;background:#fff}.receipt-readback-fields small{color:#617d9d;font-size:.64rem}.receipt-readback-fields b{overflow-wrap:anywhere;color:#123f70;font-size:.79rem}.receipt-readback-lines{margin-top:9px;border:1px solid #d0e3f5;border-radius:7px;overflow:hidden;background:#fff}.receipt-readback-line{display:grid;grid-template-columns:.8fr 2.4fr 1.2fr;gap:10px;align-items:center;min-width:0;padding:7px 9px;border-top:1px solid #e0ebf6;color:#174a80;font-size:.75rem}.receipt-readback-line:first-child{border-top:0}.receipt-readback-line span{overflow-wrap:anywhere}.receipt-readback-line.headings{background:#eaf4ff;color:#174a80;font-size:.65rem;text-transform:uppercase}.receipt-readback-lines>.empty{padding:8px 10px;margin:0;color:#607c9b;font-size:.74rem}@media(max-width:900px){.receipt-dropzone{grid-template-columns:auto 1fr}.receipt-dropzone small{grid-column:1/-1}.receipt-readback-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.receipt-readback-line{grid-template-columns:1fr}.receipt-readback-line.headings{display:none}}
.receipt-progress{display:flex;align-items:center;gap:10px!important}.receipt-progress .receipt-clock{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#e3f1ff;color:#0866bd;font-size:1.2rem;animation:receipt-clock-spin 1.2s linear infinite}.receipt-progress>div{display:grid;gap:3px}.receipt-progress b{font-size:.76rem}.receipt-progress small{display:flex;gap:7px;flex-wrap:wrap}.receipt-progress i{color:#6f89a4;font-size:.62rem;font-style:normal}.receipt-progress i.active{color:#075bbd;font-weight:800}@keyframes receipt-clock-spin{to{transform:rotate(360deg)}}
/* Pedidos: densidad de trabajo estable, sin columnas con mínimos que desborden. */
.warehouse-orders.workspace-fill,
.warehouse-workspace > .warehouse-orders{padding:6px;gap:6px;min-width:0;max-width:100%;container-type:inline-size}
.warehouse-orders :is(.warehouse-orders-head,.warehouse-order-detail-head){padding:8px 10px;gap:8px;flex-wrap:wrap}
.warehouse-orders :is(.warehouse-orders-head,.warehouse-order-detail-head)>div{min-width:0;max-width:100%}
.warehouse-orders :is(.warehouse-orders-head,.warehouse-order-detail-head) h2{font-size:19px;line-height:1.2;overflow-wrap:anywhere}
.warehouse-orders :is(.warehouse-orders-head,.warehouse-order-detail-head) p{font-size:12px;line-height:1.3}
.warehouse-orders .btn{min-width:0;min-height:32px;height:auto;padding:6px 10px;font-size:12px;line-height:1.25;white-space:normal;max-width:100%}
.warehouse-orders :is(input,select,textarea){max-width:100%;box-sizing:border-box;font-weight:400}
.warehouse-orders :is(.warehouse-order-filters,.warehouse-order-form,.receipt-assist) :is(input,select,textarea){min-height:32px;padding:5px 6px;border-radius:5px;font-size:13px}
.warehouse-orders :is(.warehouse-order-filters,.warehouse-order-form,.receipt-assist) label{gap:3px;font-size:11px;font-weight:400}
.warehouse-orders .warehouse-order-filters{padding:7px;gap:6px;grid-template-columns:minmax(0,1.5fr) repeat(5,minmax(0,1fr)) auto}
.warehouse-orders .warehouse-order-form{padding:7px;gap:7px;overflow-y:auto;overflow-x:hidden}
.warehouse-orders .order-general-grid{gap:6px;grid-template-columns:repeat(4,minmax(0,1fr))}
.warehouse-orders .order-general-grid textarea{min-height:32px;height:32px}
.warehouse-orders .order-general-grid .contract-fields{grid-column:1/-1;padding:7px}
.warehouse-orders .order-lines{flex:1 0 auto;min-height:60px;gap:4px;padding:0;overflow:visible;scrollbar-gutter:auto}
.warehouse-orders .order-lines-head{gap:6px}
.warehouse-orders .order-lines-head p{font-size:11px}
.warehouse-orders .order-line-editor{flex:none;min-width:0;grid-template-columns:24px minmax(0,.9fr) minmax(0,.8fr) minmax(0,2fr) minmax(0,.65fr) minmax(0,.6fr) minmax(0,.8fr) minmax(0,1fr) minmax(0,1.1fr) 28px;gap:5px;padding:5px;border-radius:6px}
.warehouse-orders .order-line-editor.catalog-line{grid-template-columns:24px minmax(125px,1fr) minmax(250px,3fr) 85px 80px 100px 75px 85px minmax(150px,1.3fr) 34px}
.warehouse-orders .order-line-editor .line-notes{grid-column:auto}
.warehouse-orders .order-line-editor label>span{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;line-height:14px}
.warehouse-orders .order-line-editor :is(input,select){height:32px;min-width:0;width:100%;padding:4px;font-size:12px}
.warehouse-orders .order-line-editor .line-number{align-self:end;height:32px;font-size:12px}
.warehouse-orders .order-line-editor .icon-danger{width:28px;height:32px;align-self:end;margin:0}
.warehouse-orders .order-line-editor input[type=hidden]{display:none}
.warehouse-orders .warehouse-order-form>footer{position:sticky;bottom:-7px;z-index:3;padding:6px 0;background:#fff;border-top:1px solid #d7e5f4}
/* Payment switches are checkboxes, not full-width text fields. */
.warehouse-orders .warehouse-order-form .order-payment-check{display:flex!important;flex-direction:row!important;align-items:center!important;align-self:end;justify-content:flex-start;gap:7px!important;min-width:0;min-height:32px;margin:0;padding:0!important;cursor:pointer;font-size:12px!important;line-height:1.35!important}
.warehouse-orders .warehouse-order-form .order-payment-check input[type=checkbox]{appearance:auto!important;box-sizing:border-box!important;flex:0 0 16px!important;width:16px!important;height:16px!important;min-width:16px!important;max-width:16px!important;min-height:16px!important;max-height:16px!important;margin:0!important;padding:0!important;accent-color:#075dcc;cursor:pointer}
.warehouse-orders .warehouse-order-form .order-payment-check>span{min-width:0;white-space:normal;overflow-wrap:anywhere;font-weight:400}
.warehouse-orders .order-payment-plan>.order-general-grid{align-items:end}
.warehouse-orders .order-payment-plan .order-payment-help{margin:8px 0!important;font-size:12px!important;line-height:1.45!important;font-weight:400;white-space:normal;overflow-wrap:anywhere}
.warehouse-orders .order-header-conditions>.order-general-grid{align-items:start}
.warehouse-orders .warehouse-order-form .order-choice-value{display:block;min-width:0;margin:2px 0 0;color:#405976;font-size:12px!important;line-height:1.4;font-weight:400;white-space:normal;overflow-wrap:anywhere}
.warehouse-orders .warehouse-order-form .order-choice-value[hidden]{display:none!important}
.warehouse-orders .warehouse-order-form>footer{align-items:center;flex-wrap:wrap;gap:8px 12px}
.warehouse-orders .warehouse-order-form>footer>span{flex:1 1 280px;min-width:0;font-size:12px;line-height:1.4;white-space:normal;overflow-wrap:anywhere}
.warehouse-orders .warehouse-order-form>footer>.btn{flex:0 0 auto;margin:0}
.warehouse-orders .order-provider-picker{position:relative;display:grid;gap:3px;min-width:0}
.warehouse-orders .order-provider-search{display:flex;align-items:stretch;gap:6px;min-width:0}
.warehouse-orders .order-provider-search>input{flex:1 1 0;min-width:0}
.warehouse-orders .order-provider-search>.btn{flex:none;margin:0}
.warehouse-orders .order-provider-results{position:absolute;top:100%;left:0;right:0;z-index:20;max-height:240px;overflow-y:auto;overflow-x:hidden;padding:4px;border:1px solid #abc7e8;border-radius:6px;background:#fff;box-shadow:0 8px 20px #13386125}
.warehouse-orders .order-provider-results[hidden]{display:none!important}
.warehouse-orders .order-provider-results>button{display:grid;gap:2px;width:100%;min-width:0;padding:7px 9px;border:0;background:#fff;color:#123b63;text-align:left;font:400 13px/1.35 'Segoe UI',sans-serif;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
.warehouse-orders .order-provider-results>button:is(:hover,[aria-selected=true]){background:#e7f1ff}
.warehouse-orders .order-provider-results small,.warehouse-orders #order-provider-status{font-size:11px;line-height:1.35;color:#405976;overflow-wrap:anywhere}
.warehouse-orders #order-provider-status:empty{display:none}
.warehouse-orders .warehouse-order-table-wrap{overflow-x:hidden;overflow-y:auto}
.warehouse-orders :is(.warehouse-order-table,.compact-table){width:100%;min-width:0;table-layout:fixed;font-size:12px}
.warehouse-orders :is(.warehouse-order-table,.compact-table) :is(th,td){padding:6px;font-size:12px;line-height:1.3;overflow-wrap:anywhere}
.warehouse-orders :is(.warehouse-order-table,.compact-table) th{font-size:11px}
.desktop.warehouse .warehouse-orders :is(.warehouse-order-table,.compact-table) :is(th,td){padding:6px!important;font-size:12px!important;line-height:1.3!important}
.desktop.warehouse .warehouse-orders :is(.warehouse-order-table,.compact-table) th{font-size:11px!important}
.desktop.warehouse .warehouse-orders :is(.warehouse-order-table,.compact-table) td small{font-size:11px!important;line-height:1.3!important}
.warehouse-orders :is(.warehouse-order-table,.compact-table) td :is(b,strong){font-weight:600;font-size:inherit}
.warehouse-orders .order-status{max-width:100%;font-size:11px;padding:3px 5px;white-space:normal}
.warehouse-orders .order-summary{grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}
.warehouse-orders .order-summary>span{padding:6px 8px;min-width:0}
.warehouse-orders .order-summary :is(b,em){overflow-wrap:anywhere}
.warehouse-orders .order-detail-columns{display:block;overflow-y:auto;overflow-x:hidden}
.warehouse-orders .order-detail-columns>main,
.warehouse-orders .order-detail-columns>aside{display:grid;align-content:start;min-width:0;overflow:visible;scrollbar-gutter:auto;gap:7px}
.warehouse-orders .order-detail-columns>aside{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:7px}
.warehouse-orders .order-card{min-width:0;padding:8px;gap:6px}
.warehouse-orders .order-card>header{flex-wrap:wrap;min-width:0}
.warehouse-orders .order-card>header h3{font-size:15px}
.warehouse-orders .compact-table th:nth-child(1){width:13%}
.warehouse-orders .compact-table th:nth-child(2){width:30%}
.warehouse-orders .compact-table th:nth-child(3){width:13%}
.warehouse-orders .compact-table th:nth-child(n+4){width:11%}
.warehouse-orders :is(.order-timeline article,.order-document-list article,.trace-row,.receipt-record){min-width:0;grid-template-columns:auto minmax(0,1fr) auto;gap:6px;font-size:12px;overflow-wrap:anywhere}
.warehouse-orders .certification-period{min-width:0;flex-wrap:wrap}
.warehouse-orders .certification-period>div{min-width:0;max-width:100%;overflow-wrap:anywhere}
.warehouse-orders .certification-period>div:last-child{flex-wrap:wrap}
.warehouse-orders .receipt-assist{overflow-x:hidden}
.warehouse-orders .receipt-assist .order-summary{grid-template-columns:repeat(3,minmax(0,1fr))}
.warehouse-orders .assist-line{grid-template-columns:minmax(0,1.5fr) minmax(0,1.3fr) minmax(0,.7fr) minmax(0,.65fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1.1fr)}
.warehouse-orders .assist-line>*{min-width:0;max-width:100%}
.warehouse-orders .label-fields{grid-template-columns:minmax(0,1fr) minmax(0,.65fr)}
.warehouse-orders .receipt-readback{min-width:0;flex-shrink:0;padding:8px;margin:0}
.warehouse-orders .receipt-readback-lines{max-height:170px;overflow-y:auto;overflow-x:hidden}
.warehouse-orders .receipt-readback-line{grid-template-columns:minmax(0,.8fr) minmax(0,2.4fr) minmax(0,1.2fr)}
.warehouse-orders .receipt-assist footer{flex-wrap:wrap;gap:7px}
@container (max-width:1000px){
 .warehouse-orders .warehouse-order-filters{grid-template-columns:repeat(3,minmax(0,1fr))}
 .warehouse-orders .order-line-editor{gap:3px;padding:4px}
 .warehouse-orders .order-actions{justify-content:flex-start}
}
@container (max-width:650px){
 .warehouse-orders .order-general-grid,.warehouse-orders .warehouse-order-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
 .warehouse-orders .order-summary,.warehouse-orders .receipt-assist .order-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
 .warehouse-orders .order-detail-columns>aside{grid-template-columns:minmax(0,1fr)}
 .warehouse-orders .assist-line{grid-template-columns:repeat(2,minmax(0,1fr))}
 .warehouse-orders .assist-line.headings{display:none}
}
/* Pedido abierto: visor bajo demanda, cuatro bloques visibles sin reservar su altura. */
.warehouse-orders.workspace-fill .warehouse-order-detail-head>div:first-child .btn{align-self:center}
.warehouse-orders.workspace-fill .warehouse-order-detail-head{padding:6px 8px}
.warehouse-orders.workspace-fill .order-summary>span{padding:4px 7px;gap:1px}
.warehouse-orders.workspace-fill .order-detail-columns .order-timeline article{padding:4px 6px;gap:4px;line-height:1.2}
.warehouse-orders.workspace-fill .order-detail-columns .order-timeline :is(b,time,p){font-size:11px;line-height:1.25}
.warehouse-orders .order-detail-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;align-content:start;align-items:start}
.warehouse-orders .order-detail-columns>main,.warehouse-orders .order-detail-columns>aside{display:contents}
.warehouse-orders .order-detail-columns>main>.order-card:first-child{grid-column:1/-1}
.warehouse-orders .order-detail-columns>main>.warehouse-order-files{grid-column:1;grid-row:2}
.warehouse-orders .order-detail-columns>aside>.order-card:first-child{grid-column:2;grid-row:2}
.warehouse-orders .order-detail-columns>aside>.order-card:last-child{grid-column:2;grid-row:3}
.warehouse-orders .order-detail-columns>main>.order-card:not(:first-child){grid-column:1}
.warehouse-orders .order-detail-columns .order-card{align-content:start}
.warehouse-orders .order-detail-columns .order-card p{font-size:12px;line-height:1.35;margin:0}
.warehouse-orders .order-detail-columns .empty{padding:2px;text-align:left;min-height:0}
.warehouse-orders .order-detail-columns .btn{min-height:32px!important}
.warehouse-orders .order-timeline{max-height:180px;overflow-y:auto;overflow-x:hidden}
.warehouse-orders .warehouse-order-files{display:grid;gap:6px;min-height:0;padding:8px;border-radius:10px}
.warehouse-orders .warehouse-order-files>header{padding:0;border:0;background:transparent;gap:6px;flex-wrap:wrap}
.warehouse-orders .warehouse-order-files h3{font-size:15px;line-height:1.25;margin:0;overflow-wrap:anywhere}
.warehouse-orders .warehouse-order-files h3 small{display:inline;margin-left:6px;letter-spacing:0;font-size:11px;font-weight:400}
.warehouse-orders .warehouse-order-files-search{display:flex;align-items:center;gap:8px;font-size:11px}
.warehouse-orders .warehouse-order-files-search input{flex:1;min-width:0;height:32px;min-height:32px!important;padding:4px 8px!important;font-size:13px!important;font-weight:400;border:1px solid #bfd3eb;border-radius:6px}
.warehouse-orders .warehouse-order-files .warehouse-document-manager-list{grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));max-height:160px;gap:5px}
.warehouse-orders .warehouse-order-files .warehouse-document-manager-list>button{min-width:0;min-height:40px!important;grid-template-columns:30px minmax(0,1fr);padding:5px;gap:6px;font-size:12px}
.warehouse-orders .warehouse-order-files .warehouse-document-kind{width:28px;height:28px}
.warehouse-orders .warehouse-order-files [hidden]{display:none!important}
@container (max-width:750px){
 .warehouse-orders .order-detail-columns{grid-template-columns:minmax(0,1fr)}
 .warehouse-orders .order-detail-columns>main>*,.warehouse-orders .order-detail-columns>aside>*{grid-column:1!important;grid-row:auto!important}
}
.receipt-entry-actions{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.warehouse-orders .receipt-assist fieldset{border:0;padding:0;margin:0;min-width:0}
.warehouse-orders .manifest-row{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,.8fr) minmax(0,.8fr) minmax(0,1.2fr) minmax(0,1.8fr);gap:8px;padding:10px 6px;border-bottom:1px solid #cbdcf1;align-items:start;font-size:13px}
.warehouse-orders .manifest-row>*{min-width:0;overflow-wrap:anywhere}
.warehouse-orders .manifest-row label,.warehouse-orders .manifest-row small{display:block;font-size:12px;line-height:1.35;margin-bottom:4px}
.warehouse-orders .manifest-row input,.warehouse-orders .manifest-row select{width:100%;min-width:0;font-size:13px;padding:5px;height:34px;box-sizing:border-box}
.warehouse-orders .manifest-row button{font-size:12px;padding:5px;min-height:30px;height:auto;margin-top:4px;white-space:normal}
.warehouse-orders .manifest-material img{width:44px;height:44px;object-fit:contain;float:left;margin-right:6px}
.warehouse-orders .manifest-status{display:block;border-radius:5px;padding:4px 6px;font-size:12px;line-height:1.3;margin-bottom:5px}
.warehouse-orders .manifest-status.ok{color:#086438;background:#e7f5ed}
.warehouse-orders .manifest-status.warn{color:#825000;background:#fff3d5}
.warehouse-orders .manifest-status.bad{color:#a32020;background:#ffeded}
.warehouse-orders .manifest-extra form{display:grid;grid-template-columns:1fr 2fr 1fr auto;gap:8px;align-items:end;padding:8px 0}
.warehouse-orders .receipt-assist footer{position:sticky;bottom:0;background:#f5f9ff;z-index:2;display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:flex-end;border-top:1px solid #cbdcf1;padding:8px}
@media(max-width:1000px){.warehouse-orders .manifest-row{grid-template-columns:repeat(3,minmax(0,1fr))}.warehouse-orders .manifest-extra form{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.warehouse-orders .manifest-row{grid-template-columns:repeat(2,minmax(0,1fr))}.warehouse-orders .manifest-material{grid-column:1/-1}}
.receipt-entry-actions>.btn{flex:1 1 180px}
.receipt-manual-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.5fr);gap:8px;align-items:end;margin-bottom:8px}
.receipt-manual-fields label{display:grid;gap:4px;min-width:0}
.receipt-manual-fields input{width:100%;min-width:0}
.receipt-manual-fields p{margin:0;font-size:12px;line-height:1.3;color:#567391}
@media(max-width:800px){.receipt-manual-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.receipt-manual-fields p{grid-column:1/-1}}
/* Desktop navigation: spend height on entries, not duplicate shell padding. */
html body #app .desktop.warehouse>.side{display:flex!important;flex-direction:column!important;min-height:0!important;padding:0!important;overflow:visible!important}
html body #app .desktop.warehouse>.side>.brand{position:relative!important;inset:auto!important;width:100%!important;flex:0 0 var(--suite-header,64px)!important;min-height:var(--suite-header,64px)!important;margin:0!important;padding:0 16px!important}
html body #app .desktop.warehouse>.side>.side-nav{display:flex!important;flex-direction:column!important;flex:1 1 auto!important;min-height:0!important;gap:1px!important;margin:0!important;padding:6px 10px!important;overflow:visible!important}
html body #app .desktop.warehouse>.side>.side-nav>button,html body #app .desktop.warehouse .warehouse-admin-menu>summary{box-sizing:border-box!important;flex:0 0 auto!important;height:clamp(28px,4.6dvh,40px)!important;min-height:clamp(28px,4.6dvh,40px)!important;padding:4px 10px!important;gap:10px!important;font-size:14px!important;line-height:1.2!important}
html body #app .desktop.warehouse .side-nav :is(button,summary)>span{display:grid!important;place-items:center;width:24px!important;height:24px!important;flex:0 0 24px!important}
html body #app .desktop.warehouse .side-nav :is(button,summary)>span svg{width:22px!important;height:22px!important}
html body #app .desktop.warehouse .warehouse-admin-menu{position:relative!important;flex:none!important;margin:4px 0 0!important;padding:4px 0 0!important}
html body #app .desktop.warehouse .warehouse-admin-menu[open]>div{position:absolute!important;left:calc(100% + 10px)!important;bottom:0!important;z-index:1200!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:3px!important;box-sizing:border-box!important;width:min(360px,calc(100dvw - var(--suite-sidebar,264px) - 24px))!important;max-height:none!important;overflow:visible!important;margin:0!important;padding:8px!important;border:1px solid #bed2eb;border-radius:10px;background:#fff;box-shadow:0 10px 30px #123b6530}
html body #app .desktop.warehouse .warehouse-admin-menu>div>button{box-sizing:border-box!important;display:grid!important;grid-template-columns:24px minmax(0,1fr)!important;gap:8px!important;width:100%!important;min-width:0!important;height:auto!important;min-height:36px!important;margin:0!important;padding:6px 8px!important;font-size:13px!important;white-space:normal!important;text-align:left!important}
html body #app .desktop.warehouse .warehouse-admin-menu>div>button>em{min-width:0!important;max-width:100%!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere!important;line-height:1.3!important}
html body #app .desktop.warehouse>.side>.suite-sidebar-status{position:relative!important;inset:auto!important;flex:0 0 auto!important;width:calc(100% - 20px)!important;min-height:48px!important;margin:4px 10px 8px!important;padding:6px 9px!important;gap:8px!important;border-radius:9px!important}
html body #app .desktop.warehouse .suite-sidebar-status-icon{width:28px!important;height:28px!important;min-width:28px!important;font-size:20px!important}
html body #app .desktop.warehouse .suite-sidebar-status b{font-size:12px!important;line-height:1.2!important}
html body #app .desktop.warehouse .suite-sidebar-status small{font-size:11px!important;line-height:1.2!important}
/* Very short/zoomed windows retain access instead of clipping menu options. */
@media(max-height:600px){html body #app .desktop.warehouse .warehouse-admin-menu[open]>div{position:fixed!important;left:calc(var(--suite-sidebar,264px) + 8px)!important;bottom:8px!important;width:min(720px,calc(100dvw - var(--suite-sidebar,264px) - 16px))!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:760px){html body #app .desktop.warehouse .warehouse-admin-menu[open]>div{position:fixed!important;left:8px!important;bottom:8px!important;width:calc(100dvw - 16px)!important}}
@media(max-height:490px){html body #app .desktop.warehouse>.side>.side-nav{overflow-y:auto!important}}

/* Pedidos: selección en la línea y condiciones plegadas. */
.warehouse-orders .order-line-v2 label{font-size:13px;line-height:1.4}
.warehouse-orders .order-line-v2 :is(input,select){height:40px;font-size:14px;padding:7px}
.order-article-picker{display:flex;gap:5px;align-items:center;min-width:0}
.order-article-picker input{flex:1;min-width:0}
.order-article-picker button{flex:none;height:40px}
.warehouse-orders .order-header-conditions{grid-column:1/-1;border:1px solid #c7d9eb;border-radius:8px;padding:10px}
.order-header-conditions summary{cursor:pointer;font-size:14px;font-weight:700;color:#083d79}
.order-header-conditions[open]>div{margin-top:12px}
.order-header-conditions fieldset{margin-top:12px}
@media(max-width:1350px){.warehouse-orders .order-line-editor.catalog-line{grid-template-columns:24px minmax(125px,1fr) minmax(220px,2fr) 85px 80px 100px}.warehouse-orders .order-line-v2 .line-actions{grid-column:-2/-1;display:flex}}
@media(max-width:900px){.warehouse-orders .order-line-editor.catalog-line{grid-template-columns:24px repeat(2,minmax(0,1fr))}.warehouse-orders .order-line-v2 .line-description{grid-column:2/-1}.warehouse-orders .order-line-v2 .line-actions{grid-column:2/-1}}
.warehouse-order-pagination{display:flex;flex:0 0 auto;flex-wrap:wrap;align-items:center;gap:6px;font-size:12px}
.warehouse-order-pagination label{display:flex;align-items:center;gap:4px}
.warehouse-order-pagination input{width:70px;min-height:28px;padding:3px 5px;font-size:12px}
.warehouse-supplier-evidence{min-width:0;padding:8px 10px;border:1px solid #d6e3f1;border-radius:8px;background:#f7faff}
.warehouse-supplier-evidence summary{cursor:pointer;font-weight:600;color:#0756aa}
.warehouse-supplier-evidence p{margin:6px 0;color:#53657a;font-size:.85rem;line-height:1.4}
.warehouse-supplier-evidence section{padding:6px 0;border-top:1px solid #d6e3f1}
.warehouse-supplier-evidence section small{display:block;margin-top:3px;color:#53657a}
.warehouse-supplier-evidence ul{margin:5px 0;padding-left:18px}
.warehouse-supplier-evidence button{border:0;background:transparent;color:#0756aa;text-decoration:underline;padding:4px 2px;cursor:pointer;min-height:32px;font:inherit}
.warehouse-supplier-evidence button:focus-visible{outline:2px solid #0756aa;outline-offset:2px}

/* Canonical and legacy order states share visible, labelled colours. */
.warehouse-orders .order-status.received{background:#daf3e3;color:#145b31;border:1px solid #8cc8a1}
.warehouse-orders .order-status.cancelled{background:#fde3e3;color:#9e2525;border:1px solid #e6aaaa}
.warehouse-orders .order-status.sent,.warehouse-orders .order-status.partially_received{background:#fff0cd;color:#795000;border:1px solid #dcbe75}
.warehouse-orders .order-status.approved{background:#ddecff;color:#1a4c87;border:1px solid #a3c3e8}
.warehouse-orders .order-status.draft{background:#edf0f3;color:#4e5a66;border:1px solid #c5ced7}
.order-documentary-graph details{margin:8px 0;border:1px solid #d4e1eb;border-radius:7px;padding:10px}
.order-documentary-graph summary{font-weight:700;cursor:pointer}.order-documentary-graph article{display:grid;gap:5px;padding:9px 0;border-top:1px solid #e3ebf1}
.order-documentary-graph a{color:#0757a8;text-decoration:underline;overflow-wrap:anywhere}.order-documentary-graph small{color:#586d7e}
