:root{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;color:#1e293b;background:#f5f7fb;line-height:1.5;font-size:15px;--blue:#2563eb;--line:#e2e8f0;--muted:#64748b}*{box-sizing:border-box}body{margin:0;min-height:100vh;display:flex;flex-direction:column}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}button,input,select,textarea{font:inherit}button,a,input,select,textarea,summary{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #80b1ec;outline-offset:3px}button:disabled{opacity:.5;cursor:not-allowed}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;top:-70px;left:20px;z-index:30;padding:12px 20px;background:#fff;border:2px solid var(--blue);border-radius:4px}.skip-link:focus{top:10px}
.app-header{border-bottom:1px solid var(--line);background:#fff}.header-inner{display:flex;align-items:center;gap:36px;max-width:none;margin:auto;padding:0 28px;min-height:66px}.brand{display:flex;align-items:center;gap:20px;color:var(--blue);flex-shrink:0}.brand:hover{text-decoration:none}.brand-logo{display:block;width:145px;height:auto}.brand-caption{font-size:14px;font-weight:500;border-left:1px solid #d6dfe9;padding-left:20px}.app-header nav{display:flex;align-items:center;gap:8px;margin-left:0}.app-header nav>a{display:flex;align-items:center;font-size:14px;color:#64748b;padding:8px 13px;border-radius:5px}.app-header nav>a.is-current{color:#1d4ed8;background:#eff6ff;font-weight:600}.app-header nav>a:hover{text-decoration:none;color:var(--blue)}.account-menu{margin:0 0 0 auto;position:relative}.account-menu summary{display:flex;align-items:center;gap:20px;list-style:none;font-size:13px;font-weight:500;padding:13px 0;cursor:pointer;color:#4b5b70}.account-menu summary::-webkit-details-marker{display:none}.account-menu[open]>summary{margin-bottom:0}.account-panel{position:absolute;right:0;top:100%;z-index:20;min-width:180px;padding:8px;background:#fff;border:1px solid var(--line);box-shadow:0 5px 20px #24384f12;border-radius:5px}.account-panel a,.account-panel button{display:block;padding:10px 12px;width:100%;text-align:left;font-size:13px;border:0;background:none;color:#4b5b70;box-shadow:none}.account-panel a:hover,.account-panel button:hover{background:#f1f6fc;text-decoration:none}.account-panel form{margin:0}main{width:100%;max-width:none;margin:0 auto;padding:26px 28px 40px;flex:1;min-width:0}main:focus{outline:none}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:22px}h1{font-size:25px;line-height:1.25;letter-spacing:-.5px;font-weight:700;margin:0 0 5px}h2{font-size:18px;font-weight:600;letter-spacing:-.2px;margin:0 0 13px}h3{font-size:16px;font-weight:600}.eyebrow{font-size:12px;color:#687789;margin:10px 0;text-transform:none;letter-spacing:0;font-weight:500}.page-description{font-size:13px;color:var(--muted);margin:0}.button-link,button{display:inline-flex;justify-content:center;align-items:center;gap:8px;background:var(--blue);color:#fff;border:1px solid var(--blue);border-radius:6px;font-size:14px;font-weight:500;line-height:1.5;padding:8px 16px;cursor:pointer;white-space:nowrap;text-decoration:none}.button-link:hover,button:hover{background:#1d4ed8;text-decoration:none}.subtle{background:#fff;color:var(--blue);border:1px solid #c9d5e4}.subtle:hover{background:#f0f5fc}.primary-link{font-size:14px;font-weight:600}.card{background:#fff;border:1px solid var(--line);border-radius:7px;padding:22px;margin:20px 0}.orders-panel{padding:0;margin:0;overflow:hidden;box-shadow:0 1px 2px #0f172a04}.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;border-bottom:1px solid var(--line);padding:0 23px}.view-tabs{display:flex;gap:30px}.view-tabs a{font-size:14px;padding:12px 0 11px;border-bottom:2px solid transparent;color:#768296}.view-tabs a:hover{text-decoration:none;color:var(--blue)}.view-tabs .selected{color:var(--blue);border-bottom-color:var(--blue);font-weight:500}.result-count{font-size:12px;color:#7b8796;white-space:nowrap}.orders-toolbar{display:flex;align-items:center;gap:14px;padding:16px 0;margin:0}.search-field{display:flex;align-items:center;gap:10px;border:1px solid #cbd5e1;border-radius:4px;background:#fff;flex:1;max-width:450px;padding:0 12px}.search-field:focus-within{border-color:#548bc9}.search-field svg{width:17px;height:17px;stroke:#8997a9;fill:none;stroke-width:1.7;flex-shrink:0}.search-field input{background:none;border:0;width:100%;font-size:13px;padding:11px 0}.search-field input:focus-visible{outline:none}.check-label{display:flex;align-items:center;gap:7px;font-size:13px;color:#617187;white-space:nowrap;margin-left:auto;cursor:pointer}.orders-toolbar button{padding:10px 18px;font-size:13px}.clear-search{font-size:13px}.table-scroll{position:relative;overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left}th{background:#f8fafc;color:#64748b;font-size:12px;font-weight:600;white-space:nowrap}th,td{padding:13px 18px;border-bottom:1px solid #e8edf3}td{font-size:14px}td small{font-size:12px;margin-top:5px;color:#7c899a}.orders-table th:first-child,.orders-table td:first-child{padding-left:20px}.orders-table th:last-child,.orders-table td:last-child{padding-right:20px;text-align:right}.orders-table tbody tr:hover{background:#f9fbfe}.orders-table tbody tr:last-child td{border-bottom:0}.order-number{font-size:14px;font-weight:600;color:#1e40af}.customer-cell{color:#42546c}.row-arrow{display:inline-block;color:var(--blue);font-size:13px;padding:4px 0}.badge{display:inline-flex;align-items:center;gap:6px;background:#f0f4f9;color:#527293;font-size:12px;font-weight:500;border:1px solid #dce5ef;padding:4px 10px;border-radius:4px;white-space:nowrap}.badge[data-stage='Cutting'],.badge[data-stage='Overlock'],.badge[data-stage='Package / Ship']{background:#eaf3ff;color:#17539b;border-color:#cedff4}.badge[data-stage='Finished']{background:#e5effa;color:#23466e;border-color:#cfdeee}.badge[data-stage='On hold'],.badge[data-stage='Canceled']{background:#fff1ee;color:#a64c3b;border-color:#eedbd5}.shipment-cell{display:flex;align-items:center;gap:16px}.shipment-count{white-space:nowrap;font-size:13px;font-weight:500}.shipment-count>span{color:#8d99a8;font-weight:400}progress{appearance:none;border:0;display:block;width:76px;height:5px;border-radius:4px;background:#e8edf4;overflow:hidden}progress::-webkit-progress-bar{background:#e8edf4;border-radius:4px}progress::-webkit-progress-value{background:#4381c6;border-radius:4px}progress::-moz-progress-bar{background:#4381c6;border-radius:4px}.panel-footer{border-top:1px solid var(--line);padding:11px 20px;font-size:11px;color:#7a889a}.empty-state{padding:36px 16px;text-align:center}.empty-state h2{font-size:17px;margin-bottom:6px}.empty-state p{color:var(--muted);font-size:13px}.empty-state a{font-size:13px}footer{display:flex;justify-content:space-between;gap:14px;width:100%;max-width:1200px;margin:0 auto;padding:16px 28px;border-top:1px solid var(--line);font-size:11px;color:#8a97a7}.muted,small{color:var(--muted);font-size:12px}small{display:block}form{margin:12px 0}input,select,textarea{padding:11px 12px;border:1px solid #cbd5e1;border-radius:4px;max-width:100%;color:#2a3e56;background:#fff}input::placeholder,textarea::placeholder{color:#8c99aa}input:hover,select:hover,textarea:hover{border-color:#94b0d1}input[type=checkbox]{accent-color:var(--blue);width:16px;height:16px;margin:0 6px 0 0;vertical-align:middle;flex-shrink:0}label{display:block;font-size:13px;color:#42556e}label select{margin-left:12px}.inline{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.error,.notice{padding:16px 19px;border-radius:4px;margin:18px 0;font-size:13px;line-height:1.65}.notice{background:#eef5ff;border:1px solid #d4e3f6;color:#315b8d}.notice a{font-weight:600;text-decoration:underline}.danger,.error{background:#fff1ec;color:#9e493a}.errorlist{background:#fff4ef;border:1px solid #efd7cd;color:#9e493a;padding:14px 18px 14px 34px;border-radius:4px;font-size:13px}.errorlist:empty{display:none}.columns{display:grid;grid-template-columns:1fr 1.6fr;gap:24px}.columns>.card{min-width:0}.active{border-top:3px solid #4a80bd;background:#f8fbff;padding:24px;border-radius:4px}.active form>label{margin:17px 0}.active form>label>input:not([type=checkbox]){display:block;width:100%;margin-top:7px}.scan p{max-width:800px;font-size:13px;color:#6a7b90}.scan .inline{margin-top:9px}.scan input:not([type=checkbox]):not([type=hidden]){font-size:17px;flex:1;min-width:180px;padding:13px}.target{font-size:34px;font-weight:600}code{font-size:12px;overflow-wrap:anywhere;background:#f1f5fa;padding:5px;border-radius:3px}details{margin:20px 0}summary{cursor:pointer;font-size:13px;font-weight:500;color:#46658c}details[open]>summary{margin-bottom:16px}.supervisor{border-top:1px solid var(--line);padding-top:18px}.measurement input{max-width:130px}.print{border-bottom:1px solid var(--line);padding:15px 0}.review{background:#fff0c9;color:#70501c}.entry-form{max-width:980px}.entry-form>.card{padding:26px 30px}.entry-form .card>h2{padding-bottom:17px;border-bottom:1px solid var(--line);margin-bottom:21px}.entry-form input:not([type=checkbox]):not([type=hidden]),.entry-form textarea{display:block;width:100%;padding:12px;font:inherit;font-size:14px;margin-top:7px}.entry-form .form-field{margin:18px 0;max-width:630px}.entry-form label{font-size:13px;font-weight:500}.entry-form small,.entry-form .helptext{font-size:12px;color:#7e8b9d;margin-top:7px}.entry-form>button{min-width:130px;margin-right:14px}.entry-form>small{display:inline-block;max-width:600px;vertical-align:middle;line-height:1.7}.manual-line{display:grid;grid-template-columns:1fr 1fr;gap:8px 25px;border:1px solid var(--line);border-radius:4px;background:#fbfcff;padding:22px 24px;margin:24px 0}.manual-line legend{padding:0 10px;font-size:13px;font-weight:600;color:#52749d}.manual-line p{margin:5px 0 13px;font-size:12px;color:#7d8d9f}.manual-line p>strong{font-size:12px;font-weight:500}.manual-line output{display:block;color:#365c8b;font-size:14px;margin-top:5px;font-weight:500}.order-status{background:#f0f6ff;border:1px solid #d3e3f7;border-radius:5px;padding:25px 28px;margin:25px 0 20px}.order-status .eyebrow{color:#7391b6;margin-top:0}.order-status h2{font-size:26px;font-weight:600;letter-spacing:-.4px;margin:5px 0 10px;color:#224e85}.order-status p{margin:9px 0;font-size:14px;color:#5e789a}.order-status [data-order-count]{color:#214e85}.order-status small{font-size:12px;color:#7890ad}.order-status[data-stage='On hold']{background:#fff2ec;border-color:#efd9cb}.process{display:flex;gap:0;list-style:none;counter-reset:stage;padding:0;margin:20px 0 27px;border:1px solid var(--line);border-radius:4px;background:#fff;overflow:hidden}.process li{counter-increment:stage;display:flex;align-items:center;gap:10px;flex:1;padding:16px 20px;font-size:13px;color:#6783a6;border-right:1px solid var(--line)}.process li:last-child{border-right:0}.process li:before{content:counter(stage)'.';font-size:12px;color:#849bb7}.rug-row{padding:18px 0;border-bottom:1px solid var(--line)}.rug-row:last-child{border-bottom:0}.rug-row>.inline{justify-content:space-between}.rug-row strong{font-size:14px;font-weight:500}.rug-row details{margin:12px 0 0}.rug-row summary{font-size:12px;color:#7890af}.rug-barcode{display:block;width:600px;max-width:100%;margin:16px 0}.rug-row code{display:block}.no-print{margin:16px 0}.identity-label img{max-width:100%;width:500px}.identity-label strong{display:block}.login{max-width:450px;margin:35px auto;padding:35px!important}.login h1{font-size:25px;letter-spacing:-.3px;margin:12px 0}.login>p:not(.eyebrow){font-size:13px;color:#7d8da0}.login form{margin-top:27px}.login label{font-size:13px;font-weight:500}.login input{display:block;width:100%;margin-top:7px}.login button{width:100%;margin-top:10px}.login .muted{font-size:12px!important;line-height:1.7;margin-top:24px}.auth-layout .header-inner{justify-content:center}.auth-layout main{padding-top:20px}.auth-layout footer{justify-content:center}.auth-layout footer>span:last-child{display:none}
.orders-viewbar{padding:0;background:transparent}.orders-viewbar .view-tabs{gap:26px}.compact-entry>.card{box-shadow:0 1px 2px #0f172a03}
/* Compact working form: align related inputs and avoid nested oversized panels. */
.entry-heading .eyebrow{margin:0 0 5px}.entry-heading h1{margin-bottom:7px}.entry-heading>p:last-child{margin:0;color:var(--muted);font-size:13px}.entry-heading+.notice{font-size:12px;padding:11px 14px;margin:18px 0}
.compact-entry{max-width:none;margin-top:20px}.compact-entry>.card{padding:20px 22px;margin:18px 0}.compact-entry .card>h2{font-size:16px;padding-bottom:12px;margin-bottom:15px}.order-fields{display:grid;grid-template-columns:1fr 1fr;gap:20px}.compact-entry .form-field{margin:0;max-width:none}.compact-entry input:not([type=checkbox]):not([type=hidden]){padding:9px 11px;margin-top:6px;height:40px}.compact-entry small,.compact-entry .helptext{font-size:11px;margin-top:5px}.compact-entry details{margin:14px 0 0}.compact-entry details .form-field{margin-top:14px}.compact-entry label{font-size:12px}.compact-entry .manual-line{background:#fff;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:0 0 13px;margin:12px 0 17px;grid-template-columns:2fr .65fr 1.1fr 2fr;gap:8px 18px}.compact-entry .manual-line legend{padding:0;font-size:12px;color:#526783;margin-bottom:11px}.compact-entry .manual-line p{font-size:11px;margin:0 0 9px}.compact-entry .manual-line p:nth-last-child(2),.compact-entry .manual-line p:last-child{grid-column:span 2;background:#f5f8fc;border-radius:3px;padding:9px 12px;display:flex;align-items:baseline;gap:8px;margin:0}.compact-entry .manual-line p>strong{font-size:11px;white-space:nowrap}.compact-entry .manual-line output{display:inline;font-size:12px;margin-top:0}.compact-entry #add-manual-line{font-size:12px;padding:7px 12px}.compact-entry>button{padding:9px 18px}.compact-entry>small{font-size:11px}
@media(max-width:900px){.compact-entry .manual-line{grid-template-columns:1fr 1fr}.compact-entry .manual-line p:nth-last-child(2),.compact-entry .manual-line p:last-child{grid-column:span 1}}
@media(max-width:650px){.order-fields{grid-template-columns:1fr;gap:15px}.compact-entry>.card{padding:18px 16px}.compact-entry .manual-line{grid-template-columns:1fr;gap:12px 16px}.compact-entry .manual-line p:nth-last-child(2),.compact-entry .manual-line p:last-child{grid-column:auto}.compact-entry .manual-line output{font-size:12px}}
@media(max-width:900px){.header-inner{gap:25px;padding:0 24px}.brand{gap:16px}.brand-caption{padding-left:16px}.app-header nav{gap:20px;margin-left:0}main{padding:30px 24px 40px}.check-label{white-space:normal}.orders-toolbar{gap:13px}.process li{padding:14px 12px;gap:7px}.shipment-cell{gap:9px}footer{padding:20px 24px}}
@media(max-width:650px){.header-inner{flex-wrap:wrap;gap:0;padding:16px 18px 0;min-height:0}.brand{gap:13px}.brand-logo{width:125px}.brand-caption{font-size:13px;padding-left:13px}.account-menu{order:1}.account-menu summary{font-size:12px;gap:8px;padding:0}.app-header nav{order:2;flex-basis:100%;gap:25px;min-height:49px;margin-top:10px}.app-header nav>a{font-size:13px}.auth-layout .header-inner{padding-bottom:16px}.account-panel{top:calc(100% + 12px)}main{padding:25px 18px 35px}.page-heading{align-items:flex-start;gap:14px;margin-bottom:24px}h1{font-size:25px}.page-description{font-size:12px;max-width:235px}.page-heading .button-link{padding:9px 15px;font-size:13px;margin-top:4px}.panel-heading{padding:0 16px}.view-tabs{gap:22px}.view-tabs a{font-size:12px}.result-count{font-size:11px}.orders-toolbar{flex-wrap:wrap;padding:16px}.search-field{max-width:none;min-width:100%}.check-label{margin-left:0;margin-right:auto;font-size:12px}.orders-toolbar button{padding:8px 15px;font-size:12px}.orders-table{min-width:620px}.panel-footer{padding:14px 16px;font-size:11px}.card{padding:22px 18px}.columns{grid-template-columns:1fr;gap:0}.columns>.card{margin-bottom:0}.entry-form>.card{padding:22px 18px}.manual-line{grid-template-columns:1fr;gap:5px;padding:18px 16px}.entry-form>small{display:block;margin-top:14px}.order-status{padding:22px}.process{flex-wrap:wrap}.process li{flex:0 0 50%;border-bottom:1px solid var(--line);font-size:12px}.process li:nth-child(2){border-right:0}.process li:nth-child(n+3){border-bottom:0}.scan input:not([type=checkbox]):not([type=hidden]){min-width:100%;width:100%;font-size:15px}.scan .inline button{width:100%}footer{padding:18px;font-size:10px}.login{padding:27px!important;margin:20px auto}.auth-layout main{padding-top:0}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
@media print{.app-header,footer,.skip-link,.no-print,.mode{display:none!important}body{background:#fff;display:block!important}.identity-label{break-inside:avoid;box-shadow:none}.identity-label img{max-width:100%}}

/* The ordered cut length is the primary number at the cutting station. */
.cut-length-value{font-size:24px;line-height:1.3;color:#1e40af;white-space:nowrap}.scan .cut-target{padding:16px 20px;margin:18px 0;background:#eef5ff;border-left:4px solid var(--blue);border-radius:5px;font-size:13px;color:#456388}.scan .cut-target strong{display:block;font-size:48px;font-weight:700;line-height:1.2;color:#1e3a8a;margin-top:5px;letter-spacing:-1px}@media(max-width:650px){.cut-length-value{font-size:20px}.scan .cut-target strong{font-size:36px}}
