/* Native ERP adaptation of the shared Lovable design system. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.lp-production,.lp-worker{--lp-warn:oklch(.5 .11 65)}
.lp-eyebrow{display:block;font-size:10px;font-weight:500;letter-spacing:.06em;color:var(--lv-muted-foreground);line-height:1.7;overflow-wrap:anywhere}
.lp-status{display:inline-flex;align-items:center;gap:5px;border:1px solid var(--lv-border);border-radius:100px;padding:4px 9px;font-size:11px;font-weight:500;line-height:1.3;white-space:nowrap;background:var(--lv-muted);color:var(--lv-muted-foreground)}
.lp-status-running,.lp-status-confirmed{background:oklch(.945 .035 155);color:var(--lv-success);border-color:oklch(.45 .08 155 / .25)}
.lp-status-running:before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor}
.lp-status-paused,.lp-status-requested{background:oklch(.955 .05 82);color:var(--lp-warn);border-color:oklch(.5 .11 65 / .25)}
.lp-status-submitted{background:oklch(.955 .015 230);color:oklch(.42 .06 230);border-color:oklch(.42 .06 230 / .25)}
.lp-task-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.lp-task-heading>div{min-width:0}.lp-task-heading h2{font-size:18px;font-weight:600;line-height:1.4;margin:6px 0;color:var(--lv-foreground);overflow-wrap:anywhere}
.lp-task-heading p{font-size:12px;color:var(--lv-muted-foreground);line-height:1.6;margin:0;overflow-wrap:anywhere}
.lp-worker-card{padding:22px;display:flex;flex-direction:column;gap:18px;min-width:0}
.lp-featured{border-top:3px solid var(--lv-primary);background:linear-gradient(110deg,oklch(.975 .015 155),var(--lv-card) 65%)}
.lp-featured .lp-task-heading h2{font-size:24px}.lp-featured .lp-eyebrow{color:var(--lv-primary)}
.lp-task-facts{display:grid;grid-template-columns:1.15fr 1fr 1fr;gap:14px;padding:16px 0;border-top:1px solid var(--lv-border);border-bottom:1px solid var(--lv-border);align-items:center}
.lp-task-facts>div{display:flex;flex-direction:column;gap:6px;min-width:0}.lp-task-facts small{font-size:11px;color:var(--lv-muted-foreground)}
.lp-task-facts strong{font-size:15px;font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.lp-task-facts .lp-clock-large{font-size:40px;letter-spacing:-1.2px;line-height:1.15;color:var(--lv-primary)}
.lp-machine{display:flex;align-items:center;gap:9px;flex-wrap:wrap;font-size:12px;overflow-wrap:anywhere}.lp-stage-state{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--lv-muted-foreground)}
.lp-description{font-size:13px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;margin:0;padding:14px;border-radius:6px;background:var(--lv-muted)}
.lp-hint{font-size:12px;line-height:1.7;color:var(--lv-muted-foreground);margin:0}.lp-pause-reason{padding:10px 12px;background:oklch(.975 .03 82);border-left:2px solid var(--lv-ochre);font-size:12px;line-height:1.6;overflow-wrap:anywhere;margin:0}
.lp-task-actions,.lp-task-secondary,.lp-pause-presets{display:flex;gap:8px;flex-wrap:wrap}.lp-task-actions:empty{display:none}.lp-task-actions .button{min-height:44px;padding:11px 20px;font-size:14px}.lp-task-secondary{padding-top:12px;border-top:1px solid var(--lv-border)}
.lp-idle{display:flex;align-items:flex-start;gap:12px;padding:18px;border:1px solid var(--lv-border);border-radius:8px;font-size:13px;background:var(--lv-card)}.lp-idle strong{font-weight:500}.lp-idle p{color:var(--lv-muted-foreground);font-size:12px;line-height:1.6;margin:5px 0 0}.lp-idle-dot{width:9px;height:9px;flex-shrink:0;border-radius:50%;background:var(--lv-muted-foreground);margin-top:5px}
.lp-filter-tabs{display:flex;gap:8px;padding:16px 20px;flex-wrap:wrap}.lp-filter-tabs .status-filter>span{margin-left:5px;font-variant-numeric:tabular-nums;opacity:.8}
.lp-worker-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:0 20px 20px}.lp-worker-grid>.lv-empty{grid-column:1/-1}.lp-worker-grid .lp-worker-card{padding:18px}.lp-worker-grid .lp-task-facts{gap:10px;grid-template-columns:1fr 1fr}.lp-worker-grid .lp-task-facts>div:last-child{grid-column:1/-1}.lp-worker-grid .lp-task-heading{flex-wrap:wrap}
.lp-search{display:block;min-width:190px;max-width:300px;flex:1}.lp-search input{width:100%;font-size:13px}
.lp-production .lv-stat[aria-pressed=true]{border-color:var(--lv-primary);box-shadow:0 0 0 1px var(--lv-primary)}
.lp-production .production-filters{padding:16px 20px}.lp-production .production-periods{flex-wrap:wrap;min-width:0}.lp-production .production-plan-warning{margin:10px 20px;font-size:12px}
.lp-queue-item{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:18px 20px;border-bottom:1px solid var(--lv-border)}.lp-queue-item:last-child{border-bottom:0}.lp-queue-item>div:first-child{min-width:0}.lp-queue-item h3{font-size:14px;font-weight:500;line-height:1.5;margin:4px 0 9px;overflow-wrap:anywhere}
.lp-queue-meta{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:11px;color:var(--lv-muted-foreground)}.lp-queue-meta strong{font-weight:500;font-variant-numeric:tabular-nums}.lp-queue-item .danger-text{font-size:11px;margin:8px 0 0}.lp-queue-actions{display:flex;flex-direction:column;gap:8px;min-width:175px}.lp-queue-actions .button{justify-content:center}
.lp-orders-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.lp-orders-heading h2{font-size:16px;font-weight:600;margin:0}.lp-orders-heading>span{font-size:11px;color:var(--lv-muted-foreground)}
.lp-production .production-order{border-radius:8px;overflow:hidden}.lp-production .production-order-heading{padding:20px}.lp-production .production-order-name h2{font-size:18px;margin:5px 0}.lp-production .production-order-name h2 .link-button{font-size:18px;font-weight:500;text-align:left;color:var(--lv-foreground)}.lp-production .production-order-name>small{color:var(--lv-muted-foreground);font-size:10px;letter-spacing:.06em}.lp-production .production-order-name>p{font-size:11px;line-height:1.6;color:var(--lv-muted-foreground)}
.lp-production .production-order-overview{background:var(--lv-muted);border-color:var(--lv-border);padding:16px 20px}.lp-production .production-progress progress{accent-color:var(--lv-primary);height:6px}.lp-production .production-order-attention{font-size:11px;padding:12px 20px}.lp-production .production-expand{padding:13px 20px;color:var(--lv-primary);border-color:var(--lv-border);font-size:12px;background:var(--lv-card)}
.lp-production .production-stage,.lp-card-stages .production-stage{padding:18px 20px;row-gap:14px;border-color:var(--lv-border);font-size:12px}.lp-stage-work{grid-column:1/-1;display:flex;gap:10px 18px;flex-wrap:wrap;border-top:1px dashed var(--lv-border);padding-top:10px;font-size:11px;color:var(--lv-muted-foreground)}.lp-stage-work>span{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.lp-stage-work .lp-status{font-size:10px;padding:3px 7px}
.lp-production .production-stage-actions,.lp-card-stages .production-stage-actions{display:flex;flex-direction:column;gap:8px;align-items:stretch}.lp-card-stages{margin:16px -20px}.lp-card-stages .production-stage{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.lp-card-stages .production-stage-title{grid-column:1/-1}
.lp-pause-presets{margin-bottom:16px}.lp-pause-presets .button{min-height:40px}
.lp-task-actions button:disabled,.lp-queue-actions button:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:1000px){.lp-worker-grid{grid-template-columns:1fr}.lp-queue-item{align-items:flex-start}.lp-queue-actions{min-width:155px}}
@media(max-width:760px){.lp-worker-card,.lp-worker-grid .lp-worker-card{padding:16px;gap:15px}.lp-worker-grid{padding:0 12px 12px;gap:12px}.lp-filter-tabs{padding:12px;gap:6px}.lp-filter-tabs .status-filter{font-size:11px;min-height:36px}.lp-featured .lp-task-heading h2{font-size:21px}.lp-task-heading{flex-wrap:wrap}.lp-task-facts{grid-template-columns:1fr 1fr}.lp-featured .lp-task-facts>div:first-child{grid-column:1/-1}.lp-task-facts .lp-clock-large{font-size:38px}.lp-task-actions .button{flex:1}.lp-task-secondary .button{flex:1;min-height:40px}.lp-search{min-width:0;max-width:none;flex-basis:100%}.lp-search input{font-size:16px}.lp-production .production-filters{padding:12px}.lp-queue-item{flex-direction:column;padding:16px;gap:12px}.lp-queue-actions{flex-direction:row;flex-wrap:wrap;min-width:0;width:100%}.lp-queue-actions .button{flex:1;min-height:42px}.lp-production .production-order-heading{padding:16px;flex-wrap:wrap}.lp-production .production-order-overview{padding:16px}.lp-production .production-stage,.lp-card-stages .production-stage{padding:16px;grid-template-columns:1fr 1fr}.lp-production .production-stage-title,.lp-card-stages .production-stage-title{grid-column:1/-1}.lp-production .production-stage-actions,.lp-card-stages .production-stage-actions{grid-column:1/-1;flex-direction:row;flex-wrap:wrap}.lp-production .production-stage-actions .button,.lp-card-stages .production-stage-actions .button{flex:1;min-height:40px}.lp-production .production-order-attention{padding:12px 16px}.lp-production .production-plan-warning{margin:10px 16px}.lp-card-stages{margin:16px -16px}.lp-hint{font-size:12px}}
@media(max-width:380px){.lp-task-facts strong{font-size:13px}.lp-task-facts .lp-clock-large{font-size:34px}.lp-worker-grid{padding:0 8px 8px}.lp-worker-grid .lp-worker-card{padding:12px}.lp-task-actions .button,.lp-task-secondary .button{flex-basis:100%;justify-content:center}.lp-production .production-stage,.lp-card-stages .production-stage{grid-template-columns:1fr}.lp-stage-work>span{align-items:flex-start}.lp-queue-meta{gap:8px}}

/* Order-card production only: prototype b0ad08f numbered cards, native controls retained. */
.lp-order-production{display:flex;flex-direction:column;gap:12px;min-width:0}
.lp-order-production .lp-order-hint{margin:0;font-size:12px;line-height:1.625;color:var(--lv-muted-foreground)}
.lp-order-production .lp-order-stages{list-style:none;display:flex;flex-direction:column;gap:12px;margin:0;padding:0}
.lp-order-production .lp-order-stage{border:1px solid var(--lv-border);border-radius:8px;background:var(--lv-card);padding:16px;min-width:0}
.lp-order-production .lp-order-stage-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}
.lp-order-production .lp-order-stage-heading h3{margin:0;font-size:16px;line-height:1.5;font-weight:500;overflow-wrap:anywhere}
.lp-order-production .lp-order-stage-heading h3>span{color:var(--lv-muted-foreground)}
.lp-order-production .lp-order-stage-facts{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;margin:8px 0 0;font-size:14px;line-height:1.5}
.lp-order-production .lp-order-stage-facts dt{font-size:12px;line-height:1.625;color:var(--lv-muted-foreground)}
.lp-order-production .lp-order-stage-facts dd{margin:0;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.lp-order-production .lp-order-stage-instruction{margin:8px 0 0;padding:8px;border-radius:6px;background:color-mix(in oklch,var(--lv-muted) 60%,transparent);font-size:14px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.lp-order-production .lp-order-stage-pill{display:inline-flex;align-items:center;white-space:nowrap;border:1px solid;border-radius:9999px;padding:2px 10px;font-size:12px;line-height:1.5;font-weight:500}
.lp-order-production .lp-order-stage-pill-success{border-color:oklch(.45 .08 155 / .25);background:oklch(.945 .035 155);color:oklch(.45 .08 155)}
.lp-order-production .lp-order-stage-pill-danger{border-color:oklch(.5 .17 28 / .25);background:oklch(.955 .03 28);color:oklch(.5 .17 28)}
.lp-order-production .lp-order-stage-pill-warning{border-color:oklch(.5 .11 65 / .3);background:oklch(.955 .05 82);color:oklch(.5 .11 65)}
.lp-order-production .lp-order-stage-pill-progress{border-color:oklch(.68 .12 75 / .4);background:oklch(.955 .04 85);color:oklch(.5 .1 70)}
.lp-order-production .lp-order-stage-native{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.lp-order-production .lp-stage-work{margin-top:12px}
.lp-order-production .lp-order-native-actions{display:flex;flex-wrap:wrap;gap:8px}
@media(min-width:640px){.lp-order-production .lp-order-stage-facts{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:639px){.lp-order-production .lp-order-stage-native .button{min-height:44px;max-width:100%;white-space:normal}.lp-order-production .lp-order-native-actions .button{max-width:100%;white-space:normal}}
