/* Shared V7 controls: consistent hierarchy and compact desktop spacing */
.jp-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:8px 12px;border:1px solid var(--jp-control-border,#dfe5eb);border-radius:7px;background:var(--jp-control-surface,#fff);color:var(--jp-control-text,#283449);font-size:12px;font-weight:650;text-decoration:none;cursor:pointer;margin:0}
.jp-btn .jp-icon,.jp-action-link .jp-icon{width:15px;height:15px;min-width:15px;min-height:15px}
.jp-btn:hover{background:#f7f9fb;color:#283449;text-decoration:none}
.jp-btn-primary{background:var(--jp-control-primary,#e53935);border-color:var(--jp-control-primary,#e53935);color:#fff}.jp-btn-primary:hover{background:var(--jp-control-primary-hover,#c72c2a);border-color:var(--jp-control-primary-hover,#e53935);color:#fff}
.jp-pin-surface .jp-btn-primary:active{background:var(--jp-control-primary-active);border-color:var(--jp-control-primary-active);color:#fff}
.jp-btn-sm{min-height:32px;padding:6px 10px;font-size:11px}
.jp-actions,.jp-table-actions,.jp-tabbar{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.jp-tabbar{width:max-content;max-width:100%;background:#f6f8fa;border:1px solid #e5eaf0;padding:4px;border-radius:9px;margin:10px 0 16px}
.jp-tabbar .jp-tab{display:inline-flex;align-items:center;min-height:34px;padding:7px 12px;border-radius:6px;color:#6c7788;text-decoration:none;font-weight:650;font-size:11px}
.jp-tabbar .jp-tab[aria-current=page]{background:#fff;color:#c22b29;box-shadow:0 1px 4px #1e293b18}
.jp-record-link{color:#293d56;font-weight:700;text-decoration:none}.jp-record-link:hover{color:#c22b29;text-decoration:underline}
.jp-action-link{display:inline-flex;align-items:center;gap:5px;color:#4f637e;font-weight:600;text-decoration:none;font-size:11px}.jp-action-link:hover{text-decoration:underline;color:#c22b29}
.jp-table-actions{gap:10px}
.jp-empty-state{text-align:center;padding:32px 18px;background:#f9fbfd;border:1px dashed #dde5ec;border-radius:9px;color:#718092}
.jp-empty-state .jp-icon{width:28px;height:28px;margin:0 auto 8px;color:#91a0b0}
.jp-empty-state strong{display:block;margin:6px;color:#344258}
.jp-page-instruction{padding:12px 15px;background:#f7f9fb;color:#5d6b80;border:1px solid #e6ebf0;border-radius:8px;font-size:12px}
.app-content>.scope-picker{display:flex;align-items:end;gap:9px;flex-wrap:wrap;margin:0 0 14px}
.app-content>.scope-picker label{display:flex;flex-direction:column;gap:3px;margin:0;max-width:220px;font-size:11px;color:#6c7789}
.app-content>.scope-picker select{width:100%;margin:0;min-height:38px;padding:7px 10px;font-size:12px}
.app-content>.scope-picker button{min-height:38px;margin:0;padding:7px 11px;font-size:11px;background:#fff;color:#344258;border:1px solid #dae1e9;border-radius:7px}
.app-content>.scope-picker button:hover{background:#f2f5f8;color:#ae2929}
.app-content>.scope-picker button .jp-icon{width:14px;height:14px}
.app-content>.scope-picker small{color:#8792a2;font-size:10px;line-height:1.4;max-width:280px}
.jp-customer-directory .jp-search{display:flex;flex-wrap:wrap;align-items:end;gap:9px;margin:14px 0}
.jp-customer-directory .jp-search label{min-width:230px;max-width:540px;flex:1;margin:0;font-size:11px}
.jp-customer-directory .jp-search input{margin:4px 0 0;min-height:39px}
.jp-customer-directory .jp-list-wrap{overflow-x:auto}
.jp-customer-directory table{font-size:12px}
.jp-customer-directory th,.jp-customer-directory td{padding:12px 10px}
.jp-quote-inbox .quote-request{max-width:none;border-color:#e3e9ef}
.jp-quote-inbox .quote-meta span{font-size:11px}
@media(max-width:760px){.app-content>.scope-picker{display:grid;grid-template-columns:minmax(0,1fr) auto}.app-content>.scope-picker label{max-width:none}.app-content>.scope-picker small{grid-column:1/-1}.jp-btn,.jp-tabbar .jp-tab{min-height:44px}.jp-customer-directory .jp-search label{min-width:100%}.jp-customer-directory .jp-search button{width:100%}.jp-tabbar{width:100%}.jp-tabbar .jp-tab{flex:1;justify-content:center}}
@media(max-width:1024px),(pointer:coarse){
 body .app-content .jp-btn,body .app-content .jp-action,body .app-content .jp-control,body .app-content .scope-picker button,body .app-content .scope-picker select{min-height:44px}
}
/* Existing order sheet: compact columns and secondary actions, owner reference04. */
.jp-orders-centre .jp-queue-table td{vertical-align:top;min-width:90px}
.jp-orders-centre .jp-queue-table td:nth-child(3){min-width:170px;max-width:250px}
.jp-orders-centre .centre-status input,.jp-orders-centre .centre-status select{max-width:180px}
.m1-order-more>summary{cursor:pointer;min-width:38px;min-height:38px;text-align:center;list-style:none}
.m1-order-menu{position:fixed;z-index:1000;min-width:210px;max-width:calc(100vw - 16px);padding:8px;background:var(--jp-control-surface,#fff);border:1px solid var(--jp-control-border,#dfe5eb);border-radius:7px;box-shadow:var(--jp-ui-shadow)}
.m1-order-menu>a{display:block;padding:8px;color:inherit;font:inherit}
.m1-order-menu form{margin:0}.m1-order-menu button{width:100%}
@media(max-width:1024px),(pointer:coarse){.m1-order-more>summary{min-height:44px;min-width:44px}}

.m1-order-menu [hidden]{display:none!important}


/* M1 owner-approved order-sheet status colours, reference 04. Status is not colour alone. */
.jp-orders-centre .m1-inline-status{display:inline-flex;flex-direction:column;gap:3px;max-width:190px}
.jp-orders-centre .m1-inline-status select,
.jp-orders-centre .m1-status-pill{
 display:inline-flex;align-items:center;min-height:35px;max-width:190px;
 padding:6px 10px;border:1px solid #d5d8de;border-radius:9px;
 background:#f7f8f9;color:#231F20;font-size:12px;font-weight:700;
 line-height:1.35;text-decoration:none;box-sizing:border-box;
}
.jp-orders-centre .m1-inline-status select{width:100%;cursor:pointer;padding-right:8px}
.jp-orders-centre .m1-inline-status select:disabled{cursor:progress;opacity:.72}
.jp-orders-centre .m1-inline-status select:focus-visible,
.jp-orders-centre .m1-status-pill:focus-visible{outline:2px solid #E53935;outline-offset:2px}
.jp-orders-centre [data-tone="working"].m1-inline-status select,
.jp-orders-centre .m1-status-pill[data-tone="working"]{
 background:#fff3d3;border-color:#f2d16f;color:#623c00;
}
.jp-orders-centre [data-tone="ready"].m1-inline-status select,
.jp-orders-centre .m1-status-pill[data-tone="ready"]{
 background:#e4f8db;border-color:#aee7a1;color:#175526;
}
.jp-orders-centre [data-tone="paid"].m1-inline-status select,
.jp-orders-centre .m1-status-pill[data-tone="paid"]{
 background:#e4f8db;border-color:#aee7a1;color:#175526;
}
.jp-orders-centre [data-tone="partial"].m1-inline-status select,
.jp-orders-centre .m1-status-pill[data-tone="partial"]{
 background:#fff0c9;border-color:#f8cf6c;color:#754100;
}
.jp-orders-centre [data-tone="deposit"].m1-inline-status select,
.jp-orders-centre .m1-status-pill[data-tone="deposit"]{
 background:#dcf3ff;border-color:#98d5f1;color:#145079;
}
.jp-orders-centre [data-tone="digitizing"].m1-inline-status select,
.jp-orders-centre .m1-status-pill[data-tone="digitizing"],
.jp-orders-centre .m1-digitizing-label[data-tone="digitizing"]{
 background:#f0dffc;border-color:#d6b3f3;color:#56247d;
}
.jp-orders-centre .m1-status-pill[data-tone="blocked"]{background:#fde8e6;border-color:#f1aaa4;color:#961e1b}
.jp-orders-centre .m1-status-pill[data-tone="delivered"]{background:#edf7ed;border-color:#c2e5c4;color:#205c2a}
.jp-orders-centre .m1-digitizing-label{display:inline-block;margin-top:5px;padding:3px 7px;border:1px solid #dee2e5;border-radius:7px;color:#59616e;font-size:11px;text-decoration:none}
.jp-orders-centre .m1-payment-status:hover{text-decoration:underline}
.jp-orders-centre [data-pickup].jp-btn{background:#168c2e;border-color:#168c2e;color:#fff;font-weight:750}
.jp-orders-centre [data-pickup].jp-btn:hover{background:#116c25;border-color:#116c25;color:#fff}
.jp-orders-centre .m1-order-feedback{margin:0 0 10px;padding:7px 10px;border-left:3px solid #168c2e;background:#f7faf7;color:#175526;font-size:12px}
.jp-orders-centre .m1-inline-status small[role="status"]{font-size:11px;line-height:1.3;color:#7c281d}
@media(max-width:1024px),(pointer:coarse){
 .jp-orders-centre .m1-inline-status select{min-height:44px}
 .jp-orders-centre .m1-status-pill{min-height:40px}
}


/* M1 compact approved sheet filters and real PIM thumbnails; no illustrative counts. */
.jp-orders-centre .m1-quick-filters{display:flex;flex-wrap:wrap;gap:7px;margin:9px 0 12px;align-items:center}
.jp-orders-centre .m1-quick-filter{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:5px 10px;border:1px solid #e3e3e3;border-radius:9px;background:#fff;color:#231F20;font-size:12px;font-weight:650;text-decoration:none;line-height:1.3}
.jp-orders-centre .m1-quick-filter.current{background:#E53935;border-color:#E53935;color:#fff}
.jp-orders-centre .m1-quick-filter:focus-visible{outline:2px solid #E53935;outline-offset:2px}
.jp-orders-centre .m1-order-thumb{float:left;width:44px;height:44px;object-fit:contain;max-width:44px;margin:0 8px 3px 0;border:1px solid #ececec;border-radius:7px;background:#fff}
.jp-orders-centre .jp-queue-table td:nth-child(4){min-width:50px;width:70px}
.jp-orders-centre .jp-queue-table td:nth-child(8){white-space:nowrap}
@media(max-width:1024px),(pointer:coarse){.jp-orders-centre .m1-quick-filter{min-height:42px}.jp-orders-centre .m1-quick-filters{gap:6px}}


/* M1 acceptance correction: direct reversible Delete/Restore, approved compact red treatment. */
.jp-orders-centre .m1-direct-archive{display:inline-flex;margin:0;align-items:center}
.jp-orders-centre .m1-direct-archive .jp-btn{min-height:35px;padding:5px 10px;font-size:12px;font-weight:700;border-radius:9px;white-space:nowrap}
.jp-orders-centre .m1-direct-archive .m1-delete{background:#fff;border:1px solid #E53935;color:#b91c1c}
.jp-orders-centre .m1-direct-archive .m1-delete:hover{background:#fff1ef;color:#a61b1b}
.jp-orders-centre .m1-direct-archive .m1-restore{background:#f7f8f9;border:1px solid #d5d8de;color:#231F20}
.jp-orders-centre .m1-direct-archive .jp-btn:focus-visible{outline:2px solid #E53935;outline-offset:2px}
@media(max-width:1024px),(pointer:coarse){.jp-orders-centre .m1-direct-archive .jp-btn{min-height:44px}}


/* M1 OWNER-LOCKED ORDERS SHEET — 1672×941 approved screenshot, scoped exclusively to orders.php.
   Real original orders/status/payment/production records; never sample counts or mock image paths. */
body.jp-orders-surface{--m1-ink:#231F20;--m1-line:#e9e9ea;--m1-red:#E53935;color:var(--m1-ink);background:#fff}
body.jp-orders-surface .app-header{display:flex;align-items:center;min-height:73px;height:auto;padding:8px 20px;gap:17px;background:#fff;border-bottom:1px solid #ececec;box-shadow:0 1px 5px rgba(20,20,20,.04)}
body.jp-orders-surface .app-header .brand{flex:0 0 auto;max-width:255px}
body.jp-orders-surface .app-header .brand img{max-width:250px;width:100%;height:auto}
body.jp-orders-surface .app-sidebar{display:none}
body.jp-orders-surface .app-content{margin:0!important;padding:22px 18px 18px!important;width:100%;max-width:none;min-width:0;box-sizing:border-box;background:#fff}
body.jp-orders-surface .app-content>.page-heading{display:none}
body.jp-orders-surface .app-content>.panel{border:0!important;background:transparent!important;border-radius:0!important;box-shadow:none!important;padding:0!important;margin:0!important;max-width:none!important}
body.jp-orders-surface .support-footer{display:none}
body.jp-orders-surface .m1-sheet-top-nav{display:flex;align-items:center;justify-content:space-between;gap:18px;min-width:0;flex:1}
body.jp-orders-surface .m1-sheet-nav-links{display:flex;gap:9px;align-items:center;justify-content:center;flex:1;min-width:0}
body.jp-orders-surface .m1-sheet-nav-links a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 15px;border:1px solid #e9e9e9;border-radius:13px;font-size:13px;font-weight:750;text-decoration:none;white-space:nowrap;color:#231F20;background:#fff}
body.jp-orders-surface .m1-sheet-nav-links a.current{background:var(--m1-red);color:#fff;border-color:var(--m1-red)}
body.jp-orders-surface .m1-sheet-top-nav .user-bar,
body.jp-orders-surface .m1-sheet-top-nav .scope-picker{margin:0}
body.jp-orders-surface .m1-sheet-top-nav .scope-picker{flex:0 0 auto}
body.jp-orders-surface .m1-sheet-operator{display:flex;align-items:center;gap:8px;min-width:140px;max-width:220px;font-size:11px}
body.jp-orders-surface .m1-sheet-operator .jp-icon{flex:0 0 auto}
body.jp-orders-surface .m1-sheet-top-nav .menu-toggle{flex:0 0 auto;min-height:42px;padding:8px 12px;color:#231F20;background:#fff;border:1px solid #ededed;border-radius:10px}
body.jp-orders-surface .m1-sheet-top-nav .menu-toggle .jp-icon{width:18px}
body.jp-orders-surface .jp-orders-centre{width:100%;max-width:none;padding:0;margin:0}
body.jp-orders-surface .m1-sheet-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 23px;min-width:0}
body.jp-orders-surface .m1-sheet-heading-title{display:flex;align-items:center;gap:16px;min-width:0}
body.jp-orders-surface .m1-sheet-heading-title h1{font-size:28px;line-height:1.1;font-weight:800;letter-spacing:-.03em;margin:0 0 7px;color:#101010}
body.jp-orders-surface .m1-sheet-heading-title p{margin:0;font-size:13px;color:#555;line-height:1.35}
body.jp-orders-surface .m1-sheet-title-icon{display:flex;align-items:center;justify-content:center;color:#c92a29;background:#fff0ee;width:58px;height:58px;border-radius:14px;flex:0 0 58px}
body.jp-orders-surface .m1-sheet-title-icon .jp-icon{width:32px;height:32px}
body.jp-orders-surface .m1-sheet-search{display:flex;align-items:center;flex:1 1 48%;max-width:800px;min-width:240px;position:relative;margin:0}
body.jp-orders-surface .m1-sheet-search input{width:100%;min-height:54px;padding:13px 46px 13px 18px;border:1px solid #d2d4d9;background:#fff;border-radius:20px;font-size:13px;color:#231F20;margin:0}
body.jp-orders-surface .m1-sheet-search button{position:absolute;right:10px;top:7px;width:39px;height:39px;border:0;border-radius:10px;background:transparent;color:#231F20;cursor:pointer;padding:7px}
body.jp-orders-surface .m1-quick-filters{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 22px}
body.jp-orders-surface .m1-filter-left,body.jp-orders-surface .m1-filter-right{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
body.jp-orders-surface .m1-quick-filter{display:inline-flex;align-items:center;gap:8px;min-height:50px;padding:8px 13px;border:1px solid #d9dade;border-radius:13px;color:#121212;font-size:12px;font-weight:750;background:#fff;text-decoration:none;white-space:nowrap;line-height:1.2}
body.jp-orders-surface .m1-quick-filter .jp-icon{width:19px;height:19px;color:#1c992f}
body.jp-orders-surface .m1-quick-filter strong{display:inline-flex;align-items:center;justify-content:center;min-width:25px;height:23px;padding:0 6px;border-radius:15px;font-weight:800;font-size:12px;background:#ededee;color:#131313}
body.jp-orders-surface .m1-quick-filter.current:not(.m1-filter-digitizing){background:#E53935;border-color:#E53935;color:#fff}
body.jp-orders-surface .m1-quick-filter.current:not(.m1-filter-digitizing) .jp-icon{color:#fff}
body.jp-orders-surface .m1-quick-filter.current:not(.m1-filter-digitizing) strong{background:#fff;color:#E53935}
body.jp-orders-surface .m1-filter-digitizing{background:#ffe8e6;border-color:#ffe8e6}
body.jp-orders-surface .m1-filter-digitizing .jp-icon{color:#b91d24}
body.jp-orders-surface .m1-filter-digitizing strong{color:#c81b25;background:#ffd0cd}
body.jp-orders-surface .m1-more-filters{position:relative}
body.jp-orders-surface .m1-more-filters summary{display:flex;gap:7px;align-items:center;min-height:50px;padding:8px 15px;border:1px solid #e1e1e1;border-radius:13px;background:#fff;font-size:12px;font-weight:750;cursor:pointer;list-style:none;white-space:nowrap}
body.jp-orders-surface .m1-more-filters summary::-webkit-details-marker{display:none}
body.jp-orders-surface .m1-more-filters summary .jp-icon{width:16px;height:16px}
body.jp-orders-surface .m1-more-filter-menu{position:absolute;right:0;top:calc(100% + 6px);z-index:50;width:196px;background:#fff;border:1px solid #dedede;border-radius:11px;box-shadow:0 8px 24px #0002;padding:7px}
body.jp-orders-surface .m1-more-filter-menu a{display:flex;justify-content:space-between;padding:9px 10px;text-decoration:none;color:#231F20;font-size:12px;border-radius:6px}
body.jp-orders-surface .m1-more-filter-menu a:hover{background:#fff0ee}
body.jp-orders-surface .m1-sheet-card{border:1px solid #ececed;border-radius:16px;box-shadow:0 2px 12px #00000009;overflow:visible;background:#fff}
body.jp-orders-surface .m1-sheet-card .jp-data-table{overflow-x:auto}
body.jp-orders-surface .m1-approved-sheet{width:100%;min-width:1050px;border-collapse:collapse;table-layout:fixed}
body.jp-orders-surface .m1-approved-sheet th{background:#f7f7f7;text-align:left;color:#171717;font-size:12px;font-weight:800;padding:20px 12px;white-space:nowrap}
body.jp-orders-surface .m1-approved-sheet th:nth-child(1){width:10%}
body.jp-orders-surface .m1-approved-sheet th:nth-child(2){width:11%}
body.jp-orders-surface .m1-approved-sheet th:nth-child(3){width:20%}
body.jp-orders-surface .m1-approved-sheet th:nth-child(4){width:5%}
body.jp-orders-surface .m1-approved-sheet th:nth-child(5){width:13%}
body.jp-orders-surface .m1-approved-sheet th:nth-child(6){width:12%}
body.jp-orders-surface .m1-approved-sheet th:nth-child(7){width:9%}
body.jp-orders-surface .m1-approved-sheet th:nth-child(8){width:8%}
body.jp-orders-surface .m1-approved-sheet th:nth-child(9){width:12%}
body.jp-orders-surface .m1-approved-sheet td{border-bottom:1px solid #ededed;padding:16px 12px!important;vertical-align:middle;font-size:12px;line-height:1.42;color:#171717;word-break:normal;overflow-wrap:anywhere}
body.jp-orders-surface .m1-approved-sheet tbody tr:last-child td{border-bottom:0}
body.jp-orders-surface .m1-order-ref a{font-weight:800;font-size:14px;color:#cb2928;text-decoration:underline}
body.jp-orders-surface .m1-order-ref small,body.jp-orders-surface .m1-order-customer small{display:block;margin-top:4px;font-size:11px;color:#606060;line-height:1.35}
body.jp-orders-surface .m1-order-customer strong{font-size:13px}
body.jp-orders-surface .m1-order-description{font-weight:600}
body.jp-orders-surface .m1-order-description .m1-order-thumb{float:left;width:52px;height:52px;max-width:52px;object-fit:contain;margin:0 10px 2px 0;border:0;background:transparent}
body.jp-orders-surface .m1-order-qty,body.jp-orders-surface .m1-order-total{font-size:14px;font-weight:750;white-space:nowrap;text-align:left}
body.jp-orders-surface .m1-inline-status{max-width:100%;width:100%;display:block}
body.jp-orders-surface .m1-inline-status select,body.jp-orders-surface .m1-payment-selector{display:block;width:100%;max-width:100%;min-height:38px;padding:7px 8px;font-size:12px;font-weight:750;border:1px solid #d5d8de;border-radius:10px;background:#f7f8f9;color:#231F20;cursor:pointer;text-overflow:ellipsis}
body.jp-orders-surface .m1-inline-status[data-tone="working"] select{background:#fff1cc;border-color:#ffd77b;color:#523800}
body.jp-orders-surface .m1-inline-status[data-tone="ready"] select,body.jp-orders-surface .m1-payment-selector[data-tone="paid"]{background:#def8d8;border-color:#a8e8a0;color:#105322}
body.jp-orders-surface .m1-inline-status[data-tone="digitizing"] select{background:#eee0ff;border-color:#d8b6fd;color:#54247b}
body.jp-orders-surface .m1-payment-selector[data-tone="deposit"]{background:#e0f3ff;border-color:#b4dcfa;color:#135582}
body.jp-orders-surface .m1-payment-selector[data-tone="partial"]{background:#ffe8be;border-color:#ffc875;color:#844313}
body.jp-orders-surface .m1-order-payment .m1-payment-detail{display:block;margin-top:5px;font-size:10px;color:#636363;line-height:1.35}
body.jp-orders-surface .m1-order-production .m1-subtle-link{font-size:10px;color:#875a6f;text-decoration:none;display:block;margin-top:4px}
body.jp-orders-surface .m1-order-actions .jp-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:nowrap}
body.jp-orders-surface .m1-order-actions .m1-pickup{min-height:38px;padding:6px 11px;font-size:12px;border-radius:10px;background:#128e27;color:#fff;white-space:nowrap}
body.jp-orders-surface .m1-message-button{display:inline-flex;align-items:center;justify-content:center;width:37px;height:37px;border:1px solid #ededed;border-radius:11px;color:#231F20;background:#fff;flex:0 0 37px}
body.jp-orders-surface .m1-order-more>summary{display:inline-flex;align-items:center;justify-content:center;width:39px;height:38px;min-width:39px;min-height:38px;border:1px solid #ededed;border-radius:11px;color:#231F20;background:#fff;letter-spacing:1px;font-weight:900;list-style:none}
body.jp-orders-surface .m1-order-menu{border:1px solid #e4e4e4;border-radius:12px;box-shadow:0 12px 28px #0002;background:#fff}
body.jp-orders-surface .m1-order-menu>a{font-size:13px;padding:11px 13px}
body.jp-orders-surface .m1-order-menu>a:hover{background:#fff0ee}
body.jp-orders-surface .m1-menu-delete{color:#c71c22!important;background:#fff;border:0;border-top:1px solid #eee;min-height:43px;padding:10px 13px;text-align:left;font-size:12px;font-weight:750;cursor:pointer}
body.jp-orders-surface .m1-menu-delete:hover{background:#fff0ee}
body.jp-orders-surface .m1-sheet-footer{display:flex;align-items:stretch;gap:20px;padding:14px 8px 10px;margin:0;border-top:1px solid #eee}
body.jp-orders-surface .m1-sheet-summary{display:flex;align-items:stretch;gap:9px;flex:1 1 52%}
body.jp-orders-surface .m1-summary-stat{display:grid;grid-template-columns:30px 1fr;grid-template-rows:1fr 1fr;align-items:center;gap:0 9px;min-width:102px;flex:1;background:#f9f9f9;border-radius:13px;padding:12px;color:#231F20}
body.jp-orders-surface .m1-summary-stat .jp-icon{grid-row:1/3;width:27px;height:27px;color:#E53935}
body.jp-orders-surface .m1-summary-stat strong{font-size:19px;line-height:1;font-weight:850}
body.jp-orders-surface .m1-summary-stat span{font-size:11px;white-space:nowrap}
body.jp-orders-surface .m1-summary-stat[data-summary="inproduction"] .jp-icon{color:#eaa000}
body.jp-orders-surface .m1-summary-stat[data-summary="ready"] .jp-icon{color:#138e2c}
body.jp-orders-surface .m1-summary-stat[data-summary="digitizing"] .jp-icon{color:#812c9e}
body.jp-orders-surface .m1-sheet-quick{display:flex;flex-direction:column;justify-content:center;gap:10px;border-left:1px solid #e7e7e7;padding:4px 15px;flex:1 1 48%}
body.jp-orders-surface .m1-sheet-quick>strong{font-size:13px}
body.jp-orders-surface .m1-sheet-quick>div{display:flex;gap:10px;flex-wrap:wrap}
body.jp-orders-surface .m1-sheet-quick .jp-btn{display:inline-flex;align-items:center;gap:6px;border-radius:10px;min-height:43px;padding:7px 13px;font-size:12px;font-weight:700;text-decoration:none}
body.jp-orders-surface .m1-sheet-quick .jp-btn-primary{background:#E53935;color:#fff}
body.jp-orders-surface .m1-row-limit{font-size:11px;color:#666;padding:8px 3px}
body.jp-orders-surface .m1-empty-orders{padding:40px;text-align:center;color:#777}
@media(max-width:1280px){
 body.jp-orders-surface .m1-sheet-nav-links{gap:4px}
 body.jp-orders-surface .m1-sheet-nav-links a{padding:7px 9px;font-size:12px}
 body.jp-orders-surface .m1-quick-filters{align-items:flex-start;flex-wrap:wrap}
 body.jp-orders-surface .m1-sheet-footer{flex-direction:column}
 body.jp-orders-surface .m1-sheet-quick{border-left:0;border-top:1px solid #eee;padding-top:12px}
}
@media(max-width:850px){
 body.jp-orders-surface .app-header{gap:8px;padding:8px 12px}
 body.jp-orders-surface .app-header .brand{max-width:150px}
 body.jp-orders-surface .m1-sheet-top-nav{gap:8px}
 body.jp-orders-surface .m1-sheet-nav-links{display:none}
 body.jp-orders-surface .m1-sheet-operator{min-width:0}
 body.jp-orders-surface .m1-sheet-heading{align-items:stretch;flex-direction:column}
 body.jp-orders-surface .m1-sheet-search{max-width:none;flex:1;min-width:0}
 body.jp-orders-surface .m1-sheet-summary{overflow-x:auto}
 body.jp-orders-surface .m1-sheet-heading-title h1{font-size:25px}
}
@media(max-width:550px){
 body.jp-orders-surface .app-header .brand{max-width:125px}
 body.jp-orders-surface .app-content{padding:12px 10px!important}
 body.jp-orders-surface .m1-sheet-title-icon{width:46px;height:46px;flex-basis:46px}
 body.jp-orders-surface .m1-filter-left,body.jp-orders-surface .m1-filter-right{gap:6px}
 body.jp-orders-surface .m1-quick-filter{min-height:44px;padding:7px 9px;font-size:11px}
 body.jp-orders-surface .m1-quick-filter .jp-icon{width:15px;height:15px}
 body.jp-orders-surface .m1-summary-stat{min-width:120px}
}
@media print{
 body.jp-orders-surface .app-header,body.jp-orders-surface .m1-quick-filters,
 body.jp-orders-surface .m1-sheet-search,body.jp-orders-surface .m1-sheet-quick,
 body.jp-orders-surface .m1-order-actions,body.jp-orders-surface .support-footer{display:none!important}
 body.jp-orders-surface .m1-approved-sheet{min-width:0;table-layout:auto}
 body.jp-orders-surface .m1-sheet-card{border:0;box-shadow:none}
}

/* Keep the screenshot's Menu functional at every viewport without exposing the default sidebar. */
body.jp-orders-surface .app-sidebar.open{display:block!important;position:fixed;top:73px;right:0;left:auto;bottom:0;width:min(280px,88vw);height:calc(100dvh - 73px);z-index:300;background:#fff;border-left:1px solid #eaeaea;box-shadow:-8px 10px 28px #0002;overflow:auto}
body.jp-orders-surface .m1-sheet-nav-links a:focus-visible,
body.jp-orders-surface .m1-more-filters summary:focus-visible,
body.jp-orders-surface .m1-quick-filter:focus-visible,
body.jp-orders-surface .m1-order-menu a:focus-visible,
body.jp-orders-surface .m1-order-menu button:focus-visible{outline:2px solid #E53935;outline-offset:2px}


/* M1 owner screenshot correction: fixed compact header; retain shift, till, operator
   switching and every original action. Previously the staff summary wrapped at
   individual letters, expanding the header to >200px. Only the Orders surface. */
@media(min-width:1101px){
 body.jp-orders-surface.jp-shell>.app-header{
  box-sizing:border-box;height:73px;min-height:73px;
  flex-wrap:nowrap;align-items:center;justify-content:space-between;
  gap:12px;padding:9px 17px;overflow:visible;
 }
 body.jp-orders-surface .app-header>.brand{
  flex:0 0 218px;width:218px;min-width:0;max-width:218px;
 }
 body.jp-orders-surface .app-header>.brand img{width:218px;max-width:100%;height:auto}
 body.jp-orders-surface .m1-sheet-top-nav{
  flex:1 1 auto;min-width:0;display:flex;align-items:center;
  justify-content:space-between;gap:12px;flex-wrap:nowrap;
 }
 body.jp-orders-surface .m1-sheet-top-nav .scope-picker{
  flex:0 0 auto;min-width:0;max-width:145px;
 }
 body.jp-orders-surface .m1-sheet-nav-links{
  flex:1 1 auto;min-width:0;display:flex;gap:6px;
  justify-content:center;align-items:center;flex-wrap:nowrap;
 }
 body.jp-orders-surface .m1-sheet-nav-links a{
  flex:0 0 auto;min-height:42px;padding:7px 9px;font-size:12px;gap:5px;
 }
 body.jp-orders-surface .m1-sheet-operator{
  flex:0 0 332px;width:332px;min-width:332px;max-width:332px;
  white-space:nowrap;flex-wrap:nowrap;justify-content:flex-end;
 }
 body.jp-orders-surface .m1-sheet-operator #staff-access-status{
  display:flex;flex:0 0 auto;align-items:center;gap:8px;
  white-space:nowrap;min-width:0;
 }
 body.jp-orders-surface .m1-sheet-operator .staff-header-controls{
  display:inline-flex;flex:0 0 auto;min-width:0;max-width:none;
 }
 body.jp-orders-surface .m1-sheet-operator .staff-header-controls>summary{
  white-space:nowrap;overflow-wrap:normal;word-break:normal;
  line-height:1.35;font-size:11px;max-width:none;
 }
 body.jp-orders-surface .m1-sheet-operator .staff-state,
 body.jp-orders-surface .m1-sheet-operator .staff-till-state{
  white-space:nowrap;overflow-wrap:normal;word-break:normal;
 }
 body.jp-orders-surface .m1-sheet-operator form{
  flex:0 0 auto;margin:0;white-space:nowrap;
 }
 body.jp-orders-surface .m1-sheet-operator form button{
  min-height:38px;padding:5px 7px;font-size:10px;white-space:nowrap;
 }
 body.jp-orders-surface .m1-sheet-top-nav>.menu-toggle{
  flex:0 0 auto;min-height:42px;margin:0;white-space:nowrap;
 }
}
@media(min-width:1101px) and (max-width:1400px){
 body.jp-orders-surface .m1-sheet-nav-links a{padding:6px 7px;font-size:11px}
 body.jp-orders-surface .app-header>.brand{flex-basis:185px;width:185px;max-width:185px}
 body.jp-orders-surface .app-header>.brand img{width:185px}
 body.jp-orders-surface .m1-sheet-operator{flex-basis:318px;min-width:318px;width:318px;max-width:318px}
}
@media(max-width:1100px){
 body.jp-orders-surface.jp-shell>.app-header{min-height:64px;height:auto;flex-wrap:nowrap;gap:9px;padding:9px 12px}
 body.jp-orders-surface .m1-sheet-top-nav{flex-wrap:nowrap;gap:9px}
 body.jp-orders-surface .m1-sheet-nav-links{display:none}
 body.jp-orders-surface .m1-sheet-operator{min-width:0;max-width:none;flex:1 1 auto;white-space:nowrap}
 body.jp-orders-surface .m1-sheet-operator #staff-access-status{min-width:0;white-space:nowrap}
 body.jp-orders-surface .m1-sheet-operator .staff-header-controls>summary{white-space:nowrap;overflow-wrap:normal;word-break:normal}
 body.jp-orders-surface .m1-sheet-operator .staff-till-state{display:none}
 body.jp-orders-surface .m1-sheet-operator form button{font-size:10px;white-space:nowrap}
}
@media(max-width:650px){
 body.jp-orders-surface.jp-shell>.app-header{flex-wrap:wrap;min-height:64px;align-items:center}
 body.jp-orders-surface .app-header>.brand{max-width:120px;flex:0 0 120px}
 body.jp-orders-surface .app-header>.brand img{width:120px}
 body.jp-orders-surface .m1-sheet-top-nav{flex:1 1 auto;min-width:0;flex-wrap:wrap;justify-content:flex-end}
 body.jp-orders-surface .m1-sheet-top-nav .scope-picker{max-width:100px}
 body.jp-orders-surface .m1-sheet-operator{display:flex;flex:1 1 100%;width:100%;justify-content:flex-end;order:2;min-width:0}
 body.jp-orders-surface .m1-sheet-operator #staff-access-status{min-width:0;flex:0 1 auto}
 body.jp-orders-surface .m1-sheet-operator .staff-header-controls>summary{font-size:10px}
 body.jp-orders-surface .m1-sheet-top-nav>.menu-toggle{min-width:40px;padding:7px}
}


/* M1 owner-approved sheet: dropdown opens real payment actions (not disabled OS-native grey options). */
body.jp-orders-surface .m1-payment-picker{position:relative;display:block;min-width:0}
body.jp-orders-surface .m1-payment-status{
 display:flex;align-items:center;justify-content:space-between;gap:8px;
 width:100%;min-height:39px;padding:7px 11px;border:1px solid #d5d8de;
 background:#f7f8f9;color:#231F20;border-radius:10px;box-sizing:border-box;
 font-size:12px;font-weight:750;cursor:pointer;list-style:none;
}
body.jp-orders-surface .m1-payment-status::-webkit-details-marker{display:none}
body.jp-orders-surface .m1-payment-status[data-tone="paid"]{background:#def8d8;border-color:#a8e8a0;color:#105322}
body.jp-orders-surface .m1-payment-status[data-tone="deposit"]{background:#e0f3ff;border-color:#b4dcfa;color:#135582}
body.jp-orders-surface .m1-payment-status[data-tone="partial"]{background:#ffe8be;border-color:#ffc875;color:#844313}
body.jp-orders-surface .m1-payment-menu{position:absolute;z-index:200;top:calc(100% + 5px);left:0;width:max(235px,100%);padding:6px;background:#fff;color:#231F20;border:1px solid #dedede;border-radius:10px;box-shadow:0 12px 28px #0002}
body.jp-orders-surface .m1-payment-menu button,body.jp-orders-surface .m1-payment-menu a{
 display:block;box-sizing:border-box;width:100%;min-height:39px;padding:9px 11px;margin:0;border:0;border-radius:7px;
 text-align:left;background:#fff;color:#231F20;text-decoration:none;font-size:12px;font-weight:650;cursor:pointer;
}
body.jp-orders-surface .m1-payment-menu button:hover,body.jp-orders-surface .m1-payment-menu a:hover{background:#fff1ef;color:#a41d1d}
body.jp-orders-surface .m1-payment-menu p{padding:8px;margin:0;font-size:11px;color:#9a2a22;line-height:1.4}
body.jp-orders-surface .m1-payment-status:focus-visible,body.jp-orders-surface .m1-payment-menu button:focus-visible{outline:2px solid #E53935;outline-offset:2px}
/* Dialog lives in the top layer, outside the scrollable table; compact and touchscreen-friendly. */
dialog.m1-inline-payment-dialog[open]{
 display:block;box-sizing:border-box;position:fixed;inset:0;margin:auto;
 width:min(475px,calc(100vw - 30px));max-height:calc(100dvh - 26px);overflow:auto;
 padding:20px;border:1px solid #ddd;background:#fff;color:#231F20;border-radius:16px;
 box-shadow:0 20px 55px #0003;z-index:1200;
}
dialog.m1-inline-payment-dialog::backdrop{background:rgba(0,0,0,.43)}
.m1-payment-capture{display:flex;flex-direction:column;gap:12px;margin:0;font-size:13px}
.m1-payment-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.m1-payment-head h2{font-size:20px;line-height:1.2;margin:0 0 4px;font-weight:800}
.m1-payment-head p{margin:0;color:#666}
.m1-payment-head .m1-dialog-close{border:1px solid #ddd;background:#fff;color:#231F20;min-width:34px;min-height:34px;border-radius:8px;font-size:22px;line-height:1;cursor:pointer}
.m1-payment-balance{margin:0;padding:10px 12px;background:#fafafa;border-radius:9px;font-weight:700}
.m1-payment-capture label:not([hidden]){display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:650}
.m1-payment-capture label[data-field="approved"]:not([hidden]){flex-direction:row;align-items:center}
.m1-payment-capture input:not([type=checkbox]),.m1-payment-capture select{width:100%;box-sizing:border-box;min-height:42px;border:1px solid #d3d3d3;border-radius:8px;padding:8px 10px;font:inherit;color:#231F20;background:#fff}
.m1-payment-capture label[hidden]{display:none!important}
.m1-payment-error{font-size:12px;min-height:16px;color:#9b1b1b;line-height:1.45;margin:0}
.m1-dialog-actions{display:flex;justify-content:flex-end;gap:10px}
.m1-dialog-actions button{min-height:42px;padding:8px 13px;border:1px solid #ddd;border-radius:9px;background:#fff;color:#231F20;font-size:12px;font-weight:700;cursor:pointer}
.m1-dialog-actions .m1-dialog-submit{background:#E53935;border-color:#E53935;color:#fff}
.m1-dialog-actions .m1-dialog-submit:disabled{opacity:.55;cursor:wait}
/* Modal accessibility: on POS the user must always see and close the active configurator. */
body.jp-pos-surface dialog.pos-configurator[open]{
 display:block;position:fixed;inset:0;margin:auto;box-sizing:border-box;
 width:min(940px,calc(100vw - 28px));max-height:calc(100dvh - 28px);overflow:auto;
 padding:20px;border:1px solid #dedede;border-radius:14px;background:#fff;color:#231F20;
 box-shadow:0 18px 50px #0004;z-index:1400;
}
body.jp-pos-surface dialog.pos-configurator::backdrop{background:rgba(0,0,0,.42)}
body.jp-pos-surface dialog.pos-configurator .jp-sourced-garment-preview{display:block;max-height:215px;width:100%;object-fit:contain;margin:8px auto;background:#fff}


/* P1: preserve deployed Orders sheet width and touch column fix from 58dfbad. */
body.jp-shell.jp-orders-surface:has(>#main-menu)>.app-content{width:100%}
body.jp-orders-surface .m1-approved-sheet{min-width:1050px!important}
body.jp-orders-surface .sr-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1200px){body.jp-orders-surface .m1-sheet-nav-links{display:none}}
/* Order Overview remains the approved compact spreadsheet on narrow devices.
   Suppress the older generic queue-card transform, which stretches operational rows. */
@media(max-width:760px){
 body.jp-orders-surface .jp-orders-centre .jp-data-table{overflow-x:auto;overscroll-behavior-x:contain}
 body.jp-orders-surface .jp-orders-centre .jp-data-table .m1-approved-sheet{display:table;min-width:1040px;width:100%}
 body.jp-orders-surface .jp-orders-centre .m1-approved-sheet thead{display:table-header-group}
 body.jp-orders-surface .jp-orders-centre .m1-approved-sheet tbody{display:table-row-group}
 body.jp-orders-surface .jp-orders-centre .m1-approved-sheet tr{display:table-row;border:0;border-radius:0;padding:0}
 body.jp-orders-surface .jp-orders-centre .m1-approved-sheet th,
 body.jp-orders-surface .jp-orders-centre .m1-approved-sheet td{display:table-cell;padding:12px 10px!important;border-bottom:1px solid #edf0f4!important}
 body.jp-orders-surface .jp-orders-centre .m1-approved-sheet td::before{display:none}
}
