/* Stage 4 shares the existing ivory and forest-green shell. */
.lo-workspace,.lo-panel,.lo-results{display:flex;flex-direction:column;gap:20px;min-width:0}
.lo-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.lo-kpi{display:flex;flex-direction:column;gap:7px;padding:18px;text-align:left;color:var(--lv-foreground);font:inherit;cursor:pointer;min-width:0}
.lo-kpi:hover{background:var(--lv-muted)}.lo-kpi>span{font-size:12px;color:var(--lv-muted-foreground)}.lo-kpi strong{font-size:30px;line-height:1.2;font-weight:500;font-variant-numeric:tabular-nums}.lo-kpi small{font-size:11px;color:var(--lv-muted-foreground);line-height:1.6}
.lo-filters{display:flex;flex-wrap:wrap;gap:12px;align-items:end}.lo-filters label{display:flex;flex:1;flex-direction:column;gap:6px;font-size:12px;color:var(--lv-muted-foreground);min-width:150px}.lo-filters label:first-child{flex:2}.lo-filters .control{min-width:0;width:100%;max-width:100%}
.lo-tabs{max-width:100%}.lo-result-heading{display:flex;justify-content:space-between;color:var(--lv-muted-foreground);font-size:12px}.lo-result-heading p{margin:0}
.lo-message{padding:28px;text-align:center;font-size:14px;color:var(--lv-muted-foreground)}.lo-note{font-size:12px;line-height:1.7;color:var(--lv-muted-foreground);margin:0;padding:0 2px}.lv-card>.lo-note{padding:16px 20px}.lo-empty{grid-column:1/-1}.lo-empty h2{font-size:18px}
.lo-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.lo-actions .button{white-space:normal;max-width:100%;overflow-wrap:anywhere}
.lo-pill{display:inline-flex;border-radius:5px;padding:5px 8px;background:var(--lv-muted);color:var(--lv-muted-foreground);font-size:11px;line-height:1.4;max-width:100%;overflow-wrap:anywhere}.lo-good{background:#e9f0eb;color:#315c45}.lo-warn{background:#fbf0de;color:#8b5b18}.lo-late{color:#a34835!important}
.lo-eyebrow{font-size:10px;letter-spacing:.06em;color:var(--lv-muted-foreground);line-height:1.6}.lo-muted{color:var(--lv-muted-foreground);font-size:12px;line-height:1.7}.lo-card-top{display:flex;gap:10px;justify-content:space-between;align-items:flex-start;flex-wrap:wrap}
.lo-order-grid,.lo-machine-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.lo-order,.lo-machine{padding:20px;min-width:0;overflow-wrap:anywhere}.lo-order{display:flex;flex-direction:column;gap:14px}.lo-order h2,.lo-machine h2{font-size:17px;line-height:1.4;font-weight:500;margin:0}.lo-order p{margin:0}.lo-order>.button{margin-top:auto;align-self:flex-start}.lo-machine h2{margin:14px 0 8px}.lo-machine p{margin:8px 0}.lo-machine .machine-error:empty{display:none}
.lo-dates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding-top:14px;border-top:1px solid var(--lv-border);margin:0}.lo-dates div{min-width:0}.lo-dates dt{font-size:10px;color:var(--lv-muted-foreground);margin-bottom:6px}.lo-dates dd{margin:0;font-size:12px;font-variant-numeric:tabular-nums;line-height:1.6}
.lo-table{color:var(--lv-foreground);width:100%;border-collapse:collapse;text-align:left;font-size:12px;table-layout:fixed}.lo-table th{padding:12px 18px;background:var(--lv-muted);color:var(--lv-muted-foreground);font-weight:500;font-size:11px}.lo-table td{padding:18px;border-top:1px solid var(--lv-border);vertical-align:top;overflow-wrap:anywhere}.lo-table th:first-child{width:33%}.lo-table th:last-child{width:120px}.lo-table small{display:block;font-size:11px;color:var(--lv-muted-foreground);line-height:1.6}.lo-table strong{font-weight:500}.lo-quantity{font-size:17px;font-weight:500;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.lo-quantity small{display:inline!important;font-size:12px;color:var(--lv-muted-foreground)}.lo-zero{color:var(--lv-muted-foreground)}
.lo-movements{list-style:none;margin:0;padding:0}.lo-movements>li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px;padding:20px;border-top:1px solid var(--lv-border)}.lo-movements h3{font-size:15px;font-weight:500;margin:10px 0}.lo-movements p{margin:6px 0;font-size:12px;line-height:1.6;overflow-wrap:anywhere}.lo-movements small{display:block;font-size:11px;color:var(--lv-muted-foreground);line-height:1.7;overflow-wrap:anywhere}.lo-movement-side{display:flex;align-items:flex-end;flex-direction:column;gap:15px;max-width:190px}
.lo-pagination{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px;font-size:12px;color:var(--lv-muted-foreground)}.lo-files{padding:0 20px}.lo-files li{overflow-wrap:anywhere;border-color:var(--lv-border)}.lo-files span{color:var(--lv-muted-foreground)}
.lo-repair-reason{font-size:12px;line-height:1.7;padding:12px;background:var(--lv-muted);border-radius:6px;white-space:pre-wrap}.lo-repair-date{display:flex;flex-direction:column;gap:6px;font-size:12px;padding:12px 0 18px}.lo-repair-date span{font-size:10px;color:var(--lv-muted-foreground)}.lo-repair-date strong{font-weight:500}.lo-updated{font-size:10px;color:var(--lv-muted-foreground);line-height:1.6}.lo-edit{margin-top:14px;padding-top:14px;border-top:1px solid var(--lv-border)}.lo-edit summary{font-size:12px;cursor:pointer;line-height:1.6}.lo-edit .machine-form{margin-top:14px}.lo-edit .machine-ready{font-size:12px;margin-top:14px}.lo-edit .field>span{font-size:12px}.lo-edit .machine-form .control{min-width:0;width:100%}
.lo-request-flow{counter-reset:step;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;padding:18px;border:1px solid var(--lv-border);border-radius:8px}.lo-request-flow span{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--lv-muted-foreground);line-height:1.6}.lo-request-flow span:before{counter-increment:step;content:counter(step);background:#e9f0eb;color:#315c45;display:flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;flex-shrink:0}.lo-next{font-size:12px;padding:12px;background:var(--lv-muted);border-radius:6px;line-height:1.6}
#warehouse-dialog,#equipment-service-dialog{color:var(--lv-foreground);background:var(--lv-card);border:1px solid var(--lv-border);border-radius:10px}#warehouse-dialog .drawer-header,#warehouse-dialog .drawer-footer,#equipment-service-dialog .drawer-header{background:var(--lv-card);border-color:var(--lv-border)}
@media(max-width:1100px){.lo-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.lo-filters label{flex-basis:calc(50% - 12px)}.lo-filters label:first-child{flex-basis:calc(50% - 12px)}}
@media(max-width:760px){.lo-order-grid,.lo-machine-grid{grid-template-columns:1fr}.lo-workspace,.lo-panel,.lo-results{gap:16px}.lo-kpis{gap:8px}.lo-kpi{padding:14px}.lo-kpi strong{font-size:26px}.lo-filters label,.lo-filters label:first-child{flex-basis:100%;min-width:0}.lo-order,.lo-machine{padding:16px}.lo-workspace .lv-section-head{align-items:flex-start;flex-wrap:wrap}.lo-workspace .lv-section-head .lo-actions{width:100%}.lo-table,.lo-table tbody{display:block}.lo-table thead{display:none}.lo-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:16px;border-top:1px solid var(--lv-border)}.lo-table td{display:block;padding:0;border:0;min-width:0}.lo-table td:first-child,.lo-table td:last-child{grid-column:1/-1}.lo-table td[data-label]:before{content:attr(data-label);display:block;font-size:10px;color:var(--lv-muted-foreground);margin-bottom:5px}.lo-movements>li{grid-template-columns:1fr;padding:16px;gap:12px}.lo-movement-side{max-width:none;flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:wrap}.lo-request-flow{grid-template-columns:repeat(2,minmax(0,1fr));padding:14px}.lo-workspace .lo-tabs{gap:20px}.lo-pagination{padding:12px 0}.lv-card>.lo-pagination{padding:12px}.lo-files{padding:0 16px}}
@media(max-width:360px){.lo-kpi{padding:12px}.lo-kpi>span{font-size:11px}.lo-kpi small{font-size:10px}.lo-dates{grid-template-columns:1fr}.lo-request-flow{grid-template-columns:1fr}}
/* Pinned WarehouseSection stock cards: responsive two-column layout and explicit actions. */
.lo-stock-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.lo-stock-card{padding:16px;min-width:0;border-radius:8px}.lo-stock-card h2{font-size:16px;line-height:24px;overflow-wrap:anywhere;margin:8px 0 0}.lo-stock-card p{overflow-wrap:anywhere}.lo-stock-card .lo-stock-quantity{font-size:24px;font-weight:600;line-height:32px;margin:16px 0;font-variant-numeric:tabular-nums}.lo-stock-quantity small{font-size:16px}.lo-stock-card .button{min-height:44px}.lo-extra-filters{margin:12px 0}
@media(max-width:767px){.lo-stock-grid{grid-template-columns:minmax(0,1fr)}}
.lo-equipment-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}.lo-equipment-search{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px;margin:16px 0}.lo-equipment-search .button{min-height:44px}.lo-machine-grid .lo-machine{padding:16px;border-radius:8px}.lo-machine-grid .lo-machine h2{font-size:18px;font-weight:600}.lo-machine-dialog{padding:0 0 20px;border-bottom:1px solid var(--lv-border);margin-bottom:20px;min-width:0}.lo-machine-dialog .machine-form{display:grid;gap:12px}.lo-machine-dialog .control{width:100%;min-width:0}.lo-machine-dialog .button{min-height:44px}.lo-equipment .lo-order-grid{grid-template-columns:minmax(0,1fr)}
@media(max-width:767px){.lo-equipment-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:479px){.lo-equipment-search{grid-template-columns:minmax(0,1fr)}.lo-equipment-search .button{justify-self:start}}
