*{box-sizing:border-box}body{margin:0;background:white;color:#333;font-family:"Helvetica Neue",Arial,sans-serif;font-size:14px}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:default}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #79a8d4;outline-offset:2px}[hidden]{display:none!important}.notice{position:fixed;right:20px;top:14px;z-index:50;max-width:550px;padding:12px 18px;background:#fff8e8;border:1px solid #d6af62;border-radius:4px;box-shadow:0 4px 20px #0002}.notice.error{background:#fff0ee;border-color:#cf746b}.login{width:370px;margin:10vh auto;padding:28px;border:1px solid #ddd;border-radius:4px}.login>img{max-width:180px;max-height:100px;object-fit:contain}.login h1{font-size:25px}.login label,.user-form label{display:block;margin:14px 0}.login small{display:block;color:#888;margin-top:24px}#login-error{color:#a33;margin:12px 0}aside{width:56px;position:fixed;left:0;top:0;bottom:0;background:#f4f4f4;border-right:1px solid #ddd;overflow-y:auto;z-index:10}aside button{width:55px;height:52px;display:flex;align-items:center;justify-content:center;border:0;border-bottom:1px solid #ddd;background:transparent}aside button:hover,aside button.active{background:#d8e9f5;box-shadow:inset 3px 0 #337ab7}aside img{width:34px;height:34px;object-fit:contain}main{margin-left:56px;padding:0 20px 40px}.topbar{height:65px;display:flex;align-items:center;gap:15px;border-bottom:1px solid #eee}.topbar img{max-width:125px;max-height:50px;object-fit:contain}.environment{background:#fff5d7;padding:4px 9px;color:#806021;border-radius:3px;font-size:12px}#account{margin-left:auto}.intro{display:flex;gap:100px;padding:28px 20px 15px;align-items:center;min-height:250px}.producer{line-height:1.6}.producer strong{font-size:17px}.producer p{margin-top:10px}#calendar{width:232px;flex:none;border:1px solid #aaa;padding:3px;border-radius:4px;background:#fff;font-size:13px}.calendar-head{display:flex;justify-content:space-between;align-items:center;background:#ddd;border:1px solid #aaa;border-radius:3px;padding:5px;font-weight:bold}.calendar-head button{border:0;background:none;padding:2px 8px}.calendar-week,.calendar-days{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;text-align:center}.calendar-week{font-weight:bold;padding:5px 0}.calendar-days button{border:1px solid #ccc;background:#eee;color:#555;min-height:25px;padding:2px}.calendar-days button.selected{background:#337ab7;color:#fff;border-color:#286090}.calendar-days button.today{border:2px solid #e1ba55}.calendar-days button.known:after{content:'·';font-weight:bold}.toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:10px 0}.toolbar h1{font-size:25px;margin:0 10px 0 0;font-weight:400}.compact{width:165px}.subbar{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:12px 0;color:#777;font-size:12px}.link-button{border:0;background:transparent;color:#337ab7;padding:0;text-decoration:underline}.grid-scroll{overflow:auto;border-top:1px solid #ddd;max-height:66vh}table{width:100%;border-collapse:collapse}th,td{border:1px solid #ddd;padding:7px;vertical-align:middle}th{background:#f5f5f5;font-weight:600}#grid th{position:sticky;top:0;z-index:2;min-width:110px;text-align:center}#grid th:first-child{min-width:290px;text-align:left;left:0;z-index:3}#grid td:first-child{min-width:290px;max-width:370px;background:white;position:sticky;left:0;z-index:1}#grid .quantity{background:#dbf3dc;width:100%;min-width:82px;height:34px;text-align:center;border:1px solid #aaa;border-radius:4px;padding:5px}#grid .quantity:disabled{background:#eef1ed;color:#444}#grid .quantity.changed{background:#fff0ba;border-color:#c68c21}#grid .additional{display:block;background:#eee;color:#666;text-align:center;margin-top:4px;padding:3px;border:1px solid #ddd;border-radius:3px}#grid .total{background:#111;color:white;text-align:center;font-weight:bold;min-width:75px}#grid .not-applicable{color:#999;text-align:center;background:#fafafa}.journal{margin-top:30px}.journal h2,h2{font-size:20px;font-weight:400}.journal table{font-size:12px}.journal details{margin:12px 0}.empty{padding:32px;background:#fafafa;border:1px solid #ddd;color:#666}.inline-form{display:flex;gap:8px;margin:20px 0;max-width:800px}.label-layout{display:grid;grid-template-columns:minmax(300px,45%) 1fr;gap:30px}.label-result{display:block;width:100%;text-align:left;background:white;border:1px solid #ddd;padding:12px;margin-bottom:5px}.label-result:hover{background:#edf5fa}.label-result small{display:block;color:#777;margin-top:5px}#label-form label{display:inline-block;margin:12px 15px 12px 0}#label-preview{width:100%;height:600px;border:1px solid #ddd;margin-top:20px}.user-form{max-width:600px}.user-form fieldset{padding:10px;border:1px solid #ddd;margin-bottom:15px}.user-form legend{font-size:15px;width:auto;padding:0 5px}.warehouse-check{display:inline-block!important;margin:5px 15px 5px 0!important;font-weight:400}dialog{width:min(950px,95vw);max-height:95vh;border:1px solid #aaa;border-radius:4px;padding:25px}dialog::backdrop{background:#0005}.dialog-actions{display:flex;justify-content:flex-end;gap:8px}.bon-title{font-size:22px}.bon-meta{display:flex;justify-content:space-between;margin:25px 0}.journal-meta{color:#777}.status-warning{color:#8a6426}.user-form input[type=checkbox]{margin-right:5px}@media(max-width:800px){main{padding:0 10px 20px}.intro{gap:25px;padding:20px 0}.producer{font-size:11px}.topbar img{max-width:80px}.environment{font-size:10px}.toolbar h1{font-size:20px}.label-layout{grid-template-columns:1fr}.subbar{align-items:flex-start;flex-direction:column}}@media print{aside,.topbar,#calendar,.toolbar button,.toolbar select,.subbar,.journal,.notice,.dialog-actions{display:none!important}main{margin:0;padding:0}.intro{min-height:0;padding:0;margin:0}.producer{font-size:11px}.grid-scroll{max-height:none;overflow:visible}#grid th,#grid td:first-child{position:static}#grid th,#grid td{padding:3px;font-size:9px;min-width:0!important}#grid td:first-child,#grid th:first-child{min-width:120px!important}#grid .quantity{min-width:0;height:auto;padding:1px;border:0}.toolbar h1{font-size:18px}.total{print-color-adjust:exact;-webkit-print-color-adjust:exact}body.print-delivery #workspace{display:none}body.print-delivery dialog{position:static;display:block;width:100%;border:0;max-height:none}body.print-delivery dialog::backdrop{background:white}}

.complements-status{padding:8px 12px;margin:8px 0;color:#345642;background:#f0f7f2;border:1px solid #d4e6d9;font-size:13px}.complements-warning{color:#765017;background:#fff7e6;border-color:#ead2a4}.complements-status p{margin:4px 0}.complements-status ul{margin:4px 0}

.topbar{min-height:65px;height:auto;flex-wrap:wrap;padding:8px 0}#client-pdf-status{margin:22px 0 16px;max-width:850px}#client-pdf-view h1{font-size:25px;font-weight:400}

.history-filter{display:flex;gap:12px;flex-wrap:wrap;align-items:end;margin:24px 0}.history-filter label{font-weight:400;margin:0}.history-filter input[type=search]{min-width:260px}.history-results,.history-lines{overflow:auto}.history-results td{white-space:nowrap}.history-pagination{display:flex;gap:20px;align-items:center;justify-content:center;margin:18px 0}.history-description{white-space:pre-wrap;font-size:12px;max-width:700px}.history-lines small{display:block;color:#777}.history-lines td:nth-child(3){white-space:nowrap;text-align:right}#history-detail{scroll-margin-top:20px;margin:30px 0}#history-meta{color:#666;max-width:950px}@media print{.history-filter,.history-pagination,#history-results button{display:none!important}.history-lines{overflow:visible}}

/* Compact working view: the product grid owns the vertical scroll. */
@media screen {
  aside { width:48px; }
  aside button { width:47px; height:42px; }
  aside img { width:28px; height:28px; }
  main { margin-left:48px; padding:0 12px 8px; height:100vh; height:100dvh; display:flex; flex-direction:column; min-width:0; overflow:hidden; }
  .topbar { min-height:46px; padding:5px 0; gap:10px; flex-shrink:0; font-size:12px; }
  .topbar img { max-width:100px; max-height:35px; }
  .environment { padding:3px 6px; font-size:11px; }
  main > section { min-height:0; overflow:auto; }
  #grid-view { display:flex; flex:1; flex-direction:column; overflow:hidden; }
  .intro { min-height:0; padding:7px 0 3px; gap:16px; flex-shrink:0; }
  .producer { display:none; }
  .date-controls { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
  .date-controls label { margin:0 4px 0 0; font-size:13px; }
  #delivery-date { width:150px; height:30px; padding:3px 6px; font-size:13px; }
  .date-controls > button { min-width:32px; min-height:30px; padding:1px 9px; font-size:20px; line-height:1; }
  #calendar-panel { position:relative; }
  #calendar-panel > summary { padding:5px 8px; min-height:30px; cursor:pointer; color:#286090; font-size:13px; }
  #calendar-panel[open] > summary { background:#eaf3fa; border-radius:3px; }
  #calendar { position:absolute; left:0; top:100%; width:232px; z-index:20; box-shadow:0 5px 18px #0003; }
  .toolbar { gap:6px; margin:4px 0; flex-shrink:0; }
  .toolbar h1 { font-size:20px; margin-right:6px; line-height:1.3; }
  #grid-view .toolbar .btn { font-size:12px; padding:5px 9px; min-height:30px; }
  #grid-view .toolbar .compact { height:30px; width:155px; padding:3px 6px; font-size:12px; }
  .subbar { gap:10px; margin:4px 0; flex-shrink:0; }
  #status { margin-left:auto; }
  .grid-scroll-actions { display:flex; gap:4px; flex:none; }
  .grid-scroll-actions .btn { min-height:28px; padding:3px 7px; font-size:12px; }
  .complements-status { padding:4px 8px; margin:3px 0 6px; font-size:12px; flex-shrink:0; }
  .complements-warning { max-height:18vh; overflow:auto; }
  .grid-scroll { flex:1; min-height:100px; max-height:none; overflow:auto; overscroll-behavior:contain; border:1px solid #ccc; scrollbar-gutter:stable; scrollbar-color:#8799a6 #edf1f4; scroll-padding-top:65px; }
  .grid-scroll:focus-visible { outline:2px solid #337ab7; outline-offset:1px; }
  #grid table { border-collapse:separate; border-spacing:0; font-size:13px; }
  #grid th,#grid td { padding:4px 5px; border-width:0 1px 1px 0; }
  #grid th { min-width:94px; box-shadow:0 1px #bbb; }
  #grid th .link-button { font-size:11px; line-height:1.2; min-height:24px; }
  #grid th:first-child,#grid td:first-child { min-width:250px; max-width:310px; width:26%; line-height:1.3; box-shadow:1px 0 #ccc; }
  #grid th:last-child { min-width:60px; position:sticky; right:0; z-index:3; }
  #grid .quantity-cell { display:flex; flex-direction:column; align-items:stretch; gap:2px; min-width:0; }
  #grid .quantity { min-width:46px; width:100%; flex:none; height:30px; padding:3px; font-size:14px; border-radius:3px; }
  #grid .additional { display:block; flex:none; width:100%; min-width:0; min-height:15px; margin:0; padding:1px 3px; font-size:11px; line-height:1.25; border:0; white-space:normal; overflow-wrap:anywhere; }
  #grid .total { position:sticky; right:0; min-width:60px; z-index:1; font-size:13px; }
  #grid tbody tr:hover > td:first-child { background:#f3f8fc; }
  #activity-details { flex:none; margin-top:5px; border:1px solid #ddd; border-radius:3px; font-size:12px; }
  #activity-details > summary { cursor:pointer; padding:6px 9px; min-height:30px; background:#f6f7f8; }
  .activity-content { max-height:30vh; overflow:auto; padding:0 10px 10px; }
  .activity-content .journal { margin-top:12px; }
  .activity-content h2 { font-size:17px; margin:8px 0; }
  .activity-content .journal table { font-size:12px; }
  #labels-view,#users-view,#history-view,#client-pdf-view { flex:1; padding-bottom:20px; }
}
@media screen and (max-width:800px) {
  main { padding:0 7px 6px; }
  .topbar { gap:6px; }
  .topbar img { max-width:70px; }
  .environment { display:none; }
  #account { font-size:11px; }
  .subbar { flex-direction:row; flex-wrap:wrap; align-items:center; gap:5px 9px; }
  #status { order:3; flex-basis:100%; margin-left:0; font-size:11px; }
  .grid-scroll-actions { margin-left:auto; }
  #grid th:first-child,#grid td:first-child { min-width:180px; max-width:230px; width:30%; }
  .toolbar h1 { width:100%; font-size:18px; }
  #calendar { left:auto; right:0; }
  .notice { left:55px; right:10px; max-width:none; }
}
@media screen and (pointer:coarse) {
  #grid .quantity { min-height:38px; font-size:16px; }
  .date-controls > button,#delivery-date { min-height:36px; }
}
@media screen and (max-height:540px) {
  main { height:auto; min-height:100vh; overflow:visible; }
  #grid-view { overflow:visible; }
  .grid-scroll { flex:none; height:65vh; min-height:180px; }
}
@media print {
  .date-controls,.grid-scroll-actions,#activity-details { display:none!important; }
  .quantity-cell { display:block; }
}
@media screen and (max-width:600px) {
  .date-controls { position:relative; width:100%; }
  #calendar-panel { position:static; }
  #calendar { left:0; right:auto; top:100%; }
}
@media screen and (max-width:600px) and (max-height:700px) {
  main { height:auto; min-height:100dvh; overflow:visible; }
  #grid-view { overflow:visible; }
  .grid-scroll { flex:none; height:55vh; min-height:180px; }
}

/* Production: compact rows at the browser's normal 100% scale, with orders below. */
.customer-orders{margin:14px 0 8px;scroll-margin-top:12px}
.customer-orders-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.customer-orders-heading h2{font-size:18px;margin:8px 0}
.customer-orders-help{font-size:12px;color:#666;margin:4px 0 10px}
.customer-order{margin:0 0 12px;border:1px solid #d5dee5;border-radius:4px;overflow:hidden}
.customer-order h3{font-size:13px;margin:0;padding:8px 10px;background:#eef3f7}
.customer-order table{font-size:12px}
.customer-order th,.customer-order td{padding:5px 8px;border:0;border-top:1px solid #e5e9ed}
.customer-order th{background:#fafbfc}
.customer-order th:first-child,.customer-order td:first-child{width:20%}
.customer-order .order-quantity,.customer-order th:last-child{text-align:right;width:80px}
.order-integrated{font-size:11px;font-weight:normal;color:#3e714e;margin-left:8px}
.product-filter{margin:0;width:220px;max-width:100%;font-weight:normal}
#product-filter{height:28px;padding:3px 7px;font-size:12px}
@media screen{
 main{height:auto;min-height:100dvh;overflow:visible}
 #grid-view{display:block;overflow:visible;flex:none}
 .grid-scroll{height:60vh;min-height:260px;max-height:760px;overscroll-behavior:auto;scroll-padding-top:50px}
 #grid table{font-size:12px;table-layout:fixed;width:100%;min-width:700px}
 #grid th,#grid td{padding:3px 4px;overflow-wrap:anywhere}
 #grid th{min-width:68px;font-size:11px;line-height:1.2}
 #grid th .link-button{font-size:10px;min-height:20px}
 #grid th:first-child,#grid td:first-child{min-width:190px;max-width:240px;width:22%;line-height:1.2}
 #grid th:last-child,#grid .total{min-width:48px;width:52px;font-size:12px}
 #grid .quantity{min-width:30px;height:26px;padding:2px;font-size:12px}
 #grid .additional{min-width:0;font-size:11px;padding:1px 2px}
 #activity-details{margin-top:14px}
 .activity-content{max-height:none}
 #labels-view,#users-view,#history-view,#client-pdf-view{overflow:visible}
}
@media screen and (max-width:800px){
 #grid table{table-layout:auto}
 #grid th:first-child,#grid td:first-child{min-width:165px;max-width:200px;width:200px}
 #grid th:not(:first-child){min-width:75px}
 .product-filter{width:190px}
}
@media screen and (pointer:coarse){#grid .quantity{min-height:38px;font-size:16px}}
@media print{.customer-orders-heading button{display:none!important}.customer-order{break-inside:avoid}.customer-orders{margin-top:12px}.order-integrated{font-size:9px}}

/* Store order entry shares the compact production page. */
.customer-orders-heading{flex-wrap:wrap;justify-content:flex-start}
.customer-orders-heading h2{margin-right:auto}
.integrated-orders-title{font-size:15px;margin:18px 0 5px}
.order-form-fields{display:grid;grid-template-columns:150px 160px minmax(180px,1fr) minmax(150px,1fr);gap:12px;margin:20px 0 12px}
.order-form-fields label,.order-notes-label{font-weight:400}
.order-notes-label{display:block}
.order-entry-layout{display:grid;grid-template-columns:minmax(240px,1fr) minmax(320px,1.4fr);gap:24px;margin:20px 0}
.order-entry-layout h2{font-size:18px;margin:0 0 12px}
.order-product-results{max-height:420px;overflow:auto;margin-top:8px;border:1px solid #ddd;border-radius:4px}
.order-product{display:block;width:100%;background:white;border:0;border-bottom:1px solid #e5e9ed;text-align:left;padding:9px 12px;font-size:13px}
.order-product:hover,.order-product:focus-visible{background:#edf5fa}
.order-product small{display:block;color:#777;font-size:11px}
#client-order-cart table{font-size:13px;margin-bottom:12px}
#client-order-cart input{width:86px;max-width:100%;height:30px;padding:4px 6px}
#client-order-cart th:last-child,#client-order-cart td:last-child{width:65px}
.order-reference,.order-notes,.order-error{padding:0 10px;margin:7px 0;font-size:12px}
.order-notes{white-space:pre-wrap}.order-error{color:#a33}
.order-pending{display:inline-block;color:#775b19;font-size:11px;font-weight:400;margin-left:8px}
#client-order-status{padding:10px 0;font-size:13px}
@media screen{#client-order-view{overflow:visible;padding-bottom:20px}}
@media screen and (max-width:900px){.order-form-fields{grid-template-columns:1fr 1fr}}
@media screen and (max-width:650px){.order-entry-layout{grid-template-columns:1fr;gap:16px}.order-product-results{max-height:230px}.order-form-fields{gap:8px}.customer-orders-heading{gap:7px}.customer-orders-heading h2{flex-basis:100%}#client-order-view h1{font-size:20px}}
@media print{#customer-order-requests,.customer-orders-help{display:none!important}.customer-order th,.customer-order td{font-size:9px}.customer-orders-heading h2{font-size:15px}}

/* Familiar Daxit production identity; customer orders have their own workspace. */
.primary-navigation{display:flex;align-items:stretch;align-self:stretch;gap:5px}
.primary-link{padding:8px 14px;background:transparent;border:0;border-bottom:3px solid transparent;color:#555;font-size:14px}
.primary-link:hover{background:#f5f5f5;color:#286090}.primary-link.active{border-bottom-color:#337ab7;color:#286090;font-weight:600}
.primary-link:disabled{opacity:.55}
@media screen{
 aside{background:#fff;border-right:1px solid #bbb;box-shadow:2px 0 3px #0001}
 aside button{border-bottom:0;height:46px}
 aside button:hover,aside button.active{background:#eef6fc;box-shadow:inset 3px 0 #337ab7}
 main{padding:0 22px 28px;margin-left:48px;height:auto;min-height:100dvh;display:block;overflow:visible}
 .topbar{min-height:48px;gap:14px;padding:0;border-bottom:1px solid #ddd}
 .topbar img{max-width:100px;max-height:34px}.environment{font-size:10px;background:#f8f8f8;color:#777}
 #grid-view{display:block;overflow:visible}
 .intro{min-height:0;padding:18px 0 17px;gap:76px;align-items:flex-start}
 .date-controls{display:block;width:232px;flex:none}
 .date-controls>label,.date-controls>button,.date-controls>#delivery-date{display:none}
 #calendar-panel{position:static}#calendar-panel>summary{display:none}
 #calendar{position:static;width:232px;box-shadow:none;font-size:12px;padding:3px;border:1px solid #bbb}
 .calendar-head{padding:3px;background:#e6e6e6;border:1px solid #ccc}
 .calendar-days button{min-height:23px}.calendar-week{padding:4px 0}
 .producer{display:block;font-size:11px;line-height:1.45;padding-top:5px;color:#777}
 .producer strong{font-size:12px;color:#555}.producer p{margin:4px 0 0}
 #grid-view>.toolbar{border-top:1px solid #ddd;padding:9px 0 5px;margin:0;gap:7px;align-items:center}
 #grid-view .toolbar h1{font-size:16px;font-weight:700;flex:1;line-height:1.4;margin-right:12px}
 #grid-view .toolbar .btn{font-size:12px;min-height:32px;padding:5px 11px}
 #lock{background:transparent;border-color:transparent;color:#777;padding:4px 7px!important}
 #save{background:#c12e2a;border-color:#b52b27}#save:hover:not(:disabled){background:#a92622}
 #grid-view .subbar{margin:5px 0 8px;gap:12px;flex-wrap:wrap;font-size:12px}
 #grid-view #mode{width:156px;height:28px;padding:3px 6px;font-size:12px;margin-left:auto}
 #grid-view #status{font-size:11px;margin-left:0;color:#777}
 .complements-status{background:transparent;border:0;color:#777;font-size:11px;padding:0;margin:0 0 6px}
 .complements-warning{padding:7px 10px;background:#fff7e6;border:1px solid #ead2a4;color:#765017}
 .grid-scroll{height:calc(100dvh - 350px);min-height:300px;max-height:none;border:1px solid #ddd;scroll-padding-top:66px}
 #grid table{font-size:13px;table-layout:fixed;min-width:760px;border-collapse:separate;border-spacing:0}
 #grid th{background:#fff;font-size:12px;line-height:1.4;min-width:76px;padding:8px 5px;border-top:0}
 #grid th .link-button{font-size:11px;min-height:22px;font-weight:400}
 #grid td{padding:4px 5px;border-color:#ddd}
 #grid th:first-child,#grid td:first-child{width:23%;min-width:210px;max-width:none;overflow-wrap:normal;line-height:1.35}
 #grid td:first-child{font-weight:500;background:#fff}
 #grid tbody tr:nth-child(even)>td:not(.total){background:#e5e3e3}
 #grid tbody tr:nth-child(odd)>td:not(.total){background:#fff}
 #grid tbody tr:hover>td:first-child{background:#f1f6f9}
 #grid .quantity-cell{gap:2px}
 #grid .quantity{height:32px;min-width:30px;background:#ccfdd8;border:1px solid #ddd;border-radius:2px;font-size:14px;padding:3px;color:#333}
 #grid .quantity:disabled{background:#ccfdd8;color:#445349;opacity:1}
 #grid .quantity.nonzero{border:2px solid #fdccd5}
 #grid .quantity.changed{background:#fff0ba;border-color:#c68c21}
 #grid .quantity[aria-invalid=true]{border:2px solid #a33}
 #grid .additional{background:#fff;border:1px solid #e4e4e4;border-radius:1px;color:#555;font-size:12px;line-height:16px;min-height:20px;padding:1px 4px;text-align:left}
 #grid .total,#grid th:last-child{width:62px;min-width:52px}
 #grid .total{font-size:14px;background:#000;color:#fff;font-weight:700}
 #activity-details{margin-top:12px}.activity-content{max-height:none}
}
.orders-workspace{max-width:1180px;margin:24px auto 0;color:#333}
.orders-page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:18px}
.eyebrow{color:#777;font-size:11px;text-transform:uppercase;letter-spacing:.08em;margin:0 0 4px}
.orders-page-heading h1{font-size:26px;font-weight:500;margin:0 0 5px}.orders-page-heading p:last-child{margin:0;color:#777;font-size:13px}
.order-store-links{display:flex;gap:6px;border-bottom:1px solid #e5e5e5;padding:0 0 15px;margin-bottom:18px}
.order-store-links a{display:inline-block;padding:5px 12px;border:1px solid #ddd;border-radius:3px;background:#fff;color:#337ab7;font-size:12px}
.order-store-links a:hover{background:#edf5fa;text-decoration:none}
.orders-controls{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #ddd}
.order-view-switch{display:flex;gap:3px}
.order-view-switch button{background:transparent;border:0;border-bottom:3px solid transparent;padding:12px 15px;font-size:14px;color:#666}
.order-view-switch button[aria-selected=true]{color:#337ab7;border-bottom-color:#337ab7;font-weight:600}.order-view-switch button:hover{background:#f7f9fb}
.orders-controls>.btn{font-size:12px}
.order-scope{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;padding:18px 0 0}.order-scope label{font-size:12px;font-weight:600;margin:0;color:#555}.order-scope .form-control{margin-top:5px;width:190px;height:34px;font-weight:400}.order-scope>.btn{height:34px;font-size:12px}
#client-order-status{font-size:12px;color:#666;margin:0;padding:12px 0;min-height:40px}
.orders-section-heading{display:flex;align-items:center;gap:10px;margin-top:10px}.orders-section-heading h2{font-size:18px;font-weight:500;margin:0}.order-count{font-size:12px;color:#777}
.order-section-help{font-size:12px;color:#777;line-height:1.5;margin:7px 0 12px}
#client-order-history{margin-top:12px}.customer-order h3{background:#f4f6f8;padding:10px 12px;font-size:14px;font-weight:500}.customer-order table{font-size:13px}.customer-order .order-pending{float:right;font-size:11px;margin-top:1px}.order-reference,.order-notes,.order-error{padding:0 12px;font-size:12px}
.integrated-orders-details{margin-top:22px;border-top:1px solid #ddd;padding:12px 0}.integrated-orders-details>summary{font-size:13px;color:#555;cursor:pointer;padding:5px 0}.integrated-orders-details .order-section-help{margin-top:10px}
.order-customer-fields{display:grid;grid-template-columns:1.3fr 1fr;gap:18px;max-width:800px;margin:10px 0 14px}.order-customer-fields label,.order-notes-label{font-size:13px;font-weight:500}.order-customer-fields input,.order-notes-label textarea{margin-top:5px}.field-optional{font-size:11px;color:#888;font-weight:400;margin-left:5px}.order-notes-label{max-width:800px}
.order-entry-layout{grid-template-columns:minmax(260px,1fr) minmax(350px,1.15fr);gap:24px;margin-top:24px}.order-entry-layout h2{font-size:16px;font-weight:500}.order-cart-panel{background:#fafbfc;border:1px solid #e1e5e8;border-radius:4px;padding:16px}.order-product-results{max-height:380px}.order-product{font-size:13px;padding:10px 12px}.order-product:after{content:'+';float:right;font-size:18px;color:#337ab7}.order-product small{font-size:11px}.order-cart-panel .empty{background:#fff;padding:20px;font-size:13px}#client-order-submit{width:100%;min-height:38px;font-size:14px}
@media screen and (max-width:1000px){.environment{display:none}.topbar{gap:9px}.primary-link{padding:8px 10px;font-size:13px}#grid-view #status{flex-basis:100%}.grid-scroll{height:calc(100dvh - 385px)}}
@media screen and (max-width:800px){
 main{padding:0 10px 20px}.topbar{flex-wrap:wrap;padding:4px 0}.topbar img{max-width:70px}.primary-navigation{order:3;width:100%;border-top:1px solid #eee}.primary-link{flex:1;text-align:center;min-height:38px}.topbar #show-history{margin-left:auto}.topbar #account{margin-left:0}
 .intro{padding:10px 0;gap:10px}.producer{display:none}.date-controls{display:flex;align-items:center;flex-wrap:wrap;width:auto;gap:5px}.date-controls>label,.date-controls>button,.date-controls>#delivery-date{display:block}.date-controls>label{font-size:12px}.date-controls>button{min-width:30px}.date-controls>#delivery-date{width:145px}
 #calendar-panel{position:relative}#calendar-panel>summary{display:block}#calendar{position:absolute;left:0;top:100%;z-index:20;background:#fff;box-shadow:0 5px 18px #0003}
 #grid-view .toolbar h1{flex-basis:100%;font-size:16px}#grid-view .toolbar .btn{padding:5px 8px}.grid-scroll{height:calc(100dvh - 290px);min-height:280px}
 #grid table{table-layout:auto}#grid th:first-child,#grid td:first-child{width:210px;min-width:180px;max-width:230px}.orders-workspace{margin-top:18px}.orders-page-heading{align-items:flex-start}.orders-page-heading h1{font-size:22px}.orders-page-heading>.btn{font-size:11px}.order-entry-layout{grid-template-columns:1fr}.orders-controls{gap:8px}.order-view-switch button{padding:10px;font-size:13px}.order-customer-fields{gap:12px}
}
@media screen and (max-width:520px){.topbar #show-history{font-size:11px}.topbar #account{font-size:10px}.topbar #logout{font-size:11px}.orders-page-heading{display:block}.orders-page-heading>.btn{margin-top:12px}.order-store-links{flex-wrap:wrap}.orders-controls{flex-wrap:wrap;padding-bottom:8px}.order-scope{gap:9px}.order-scope .form-control{width:145px}.order-customer-fields{grid-template-columns:1fr}.customer-order .order-pending{float:none;display:block;margin:5px 0 0}}
@media screen and (pointer:coarse){#grid .quantity{height:38px;font-size:16px}.order-product{min-height:44px}}
@media print{.primary-navigation,.order-store-links,.orders-controls,.order-scope,.orders-page-heading>button{display:none!important}.orders-workspace{margin:0}.integrated-orders-details{border:0}#grid .quantity.nonzero{border:0}}

@media screen and (max-width:600px){#calendar-panel{position:static}#calendar{left:0;right:auto;top:100%}}

/* The production table fits the screen; only its rows scroll. */
@media screen {
 body.production-shell{height:100dvh;overflow:hidden}
 .production-shell main{height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden;padding:0 12px 6px}
 .production-shell .topbar{min-height:39px;flex-wrap:nowrap;gap:10px;font-size:11px;flex:none}
 .production-shell .topbar img{max-height:27px;max-width:84px}
 .production-shell .primary-link{font-size:12px;padding:5px 10px}
 .production-shell .topbar .btn{font-size:11px;padding:4px 7px}
 .production-shell #grid-view{display:flex;flex:1;min-height:0;flex-direction:column;overflow:hidden}
 .production-shell .intro{padding:5px 0;gap:20px;flex:none;align-items:center}
 .production-shell .date-controls{display:flex;align-items:center;gap:5px;width:auto;position:relative}
 .production-shell .date-controls>label,.production-shell .date-controls>button,.production-shell .date-controls>#delivery-date{display:block}
 .production-shell .date-controls>label{font-size:11px}
 .production-shell .date-controls>button{min-height:26px;min-width:27px;padding:1px 7px;font-size:17px}
 .production-shell #delivery-date{width:137px;height:26px;font-size:12px;padding:2px 5px}
 .production-shell #calendar-panel{position:relative}
 .production-shell #calendar-panel>summary{display:block;min-height:26px;padding:4px 7px;font-size:11px}
 .production-shell #calendar{position:absolute;left:0;top:100%;z-index:20;width:232px;background:#fff;box-shadow:0 4px 15px #0003}
 .production-shell .producer{margin-left:auto;padding:0;font-size:10px;line-height:1.2;text-align:right}
 .production-shell .producer strong{font-size:10px}.production-shell .producer p{display:none}
 .production-shell #grid-view>.toolbar{padding:4px 0;margin:0;gap:6px;flex:none}
 .production-shell #grid-view .toolbar h1{font-size:15px;margin:0;flex:1}
 .production-shell #grid-view .toolbar .btn{min-height:27px;font-size:11px;padding:4px 8px}
 .production-shell #grid-view .subbar{margin:4px 0;gap:8px;flex:none;font-size:11px}
 .production-shell .product-filter{width:200px}.production-shell #product-filter{height:25px;font-size:11px}
 .production-shell #grid-view #mode{height:25px;font-size:11px;width:142px}
 .production-shell #grid-view #status{font-size:10px;flex-basis:auto}
 .production-shell .grid-scroll-actions .btn{min-height:25px;padding:2px 5px;font-size:11px}
 .production-shell .complements-status{margin:0 0 4px;font-size:10px;flex:none;max-height:65px;overflow:auto}
 .production-shell .grid-scroll{flex:1;min-height:0;height:auto;max-height:none;overflow:auto;overscroll-behavior:contain;scroll-padding-top:44px}
 .production-shell #grid table{font-size:12px;min-width:680px}
 .production-shell #grid th{padding:4px;font-size:11px;line-height:1.15}
 .production-shell #grid th .link-button{font-size:10px;min-height:19px}
 .production-shell #grid td{padding:2px 4px;height:32px}
 .production-shell #grid th:first-child,.production-shell #grid td:first-child{width:24%;min-width:170px;line-height:1.2}
 .production-shell #grid .quantity-cell{display:flex;flex-direction:column;align-items:stretch;gap:1px}
 .production-shell #grid .quantity{width:100%;flex:none;min-width:28px;height:25px;min-height:0;font-size:12px;padding:2px}
 .production-shell #grid .additional{flex:none;width:100%;min-width:22px;min-height:18px;line-height:14px;font-size:10px;padding:1px 3px;white-space:nowrap}
 .production-shell #grid .total,.production-shell #grid th:last-child{width:50px;min-width:45px;font-size:12px}
 .production-shell #activity-details{margin-top:5px;flex:none;font-size:11px;max-height:30vh;overflow:auto}
 .production-shell #activity-details>summary{min-height:25px;padding:4px 8px;position:sticky;top:0;z-index:2}
 .production-shell .activity-content{max-height:22vh;overflow:auto}
}
/* Orders are a dedicated storefront page, without the production navigation. */
@media screen {
 body.orders-shell{background:#f3f5f7}
 .orders-shell #navigation,.orders-shell .primary-navigation,.orders-shell #show-history{display:none}
 .orders-shell main{margin:0;padding:0 24px 32px;height:auto;min-height:100dvh;max-width:1248px;margin-inline:auto;overflow:visible}
 .orders-shell .topbar{height:58px;min-height:58px;flex-wrap:nowrap;border-bottom:1px solid #dce2e7;gap:16px}
 .orders-shell .topbar img{max-width:105px;max-height:36px}
 .orders-shell #account{font-size:13px;color:#555}
 .orders-shell .orders-workspace{max-width:none;margin:22px 0 0}
 .orders-shell .orders-page-heading{margin-bottom:15px}
 .orders-shell .orders-page-heading h1{font-size:27px;color:#26394a}
 .orders-shell .orders-page-heading p:last-child{font-size:13px}
 .orders-shell .order-store-links{margin-bottom:12px;padding-bottom:12px}
 .orders-shell .orders-controls{border-bottom:1px solid #d4dce3}
 .orders-shell .order-view-switch button{padding:10px 16px;font-size:14px}
 .orders-shell .order-view-switch button[aria-selected=true]{background:#fff;border-radius:5px 5px 0 0}
 .orders-shell .order-scope{padding-top:14px;gap:14px}
 .orders-shell .order-scope .form-control{background:#fff}
 .orders-shell #client-order-status{min-height:32px;padding:9px 0;color:#5b6974}
 .orders-shell #client-order-entry-panel{background:#fff;border:1px solid #dde4e9;border-radius:6px;padding:18px 20px}
 .orders-shell .order-step-heading{font-size:16px;font-weight:600;margin:0 0 12px;color:#26394a}
 .orders-shell .order-step-heading span{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;height:22px;width:22px;background:#e9f2f9;color:#286090;font-size:12px;margin-right:6px}
 .orders-shell .order-customer-fields{grid-template-columns:1.3fr 1fr;margin:0 0 10px;gap:14px;max-width:none}
 .orders-shell .order-notes-label{max-width:none;margin-bottom:0}
 .orders-shell .order-notes-label textarea{height:44px;min-height:38px;resize:vertical}
 .orders-shell .order-entry-layout{grid-template-columns:minmax(260px,1fr) minmax(350px,1fr);gap:24px;margin:18px 0 0}
 .orders-shell .order-product-results{max-height:290px;border-color:#dde4e9}
 .orders-shell .order-product{font-size:13px;padding:9px 11px;min-height:44px}
 .orders-shell .order-cart-panel{background:#f7f9fb;border:1px solid #dbe3ea;padding:14px;border-radius:5px}
 .orders-shell #client-order-cart{max-height:230px;overflow:auto}
 .orders-shell #client-order-cart th:first-child,.orders-shell #client-order-cart td:first-child{width:auto}
 .orders-shell #client-order-cart th:nth-child(2){width:85px}
 .orders-shell #client-order-submit{min-height:40px;font-weight:600}
 .orders-shell #client-order-follow-panel{background:#fff;border:1px solid #dde4e9;border-radius:6px;padding:15px 20px}
 .orders-shell .orders-section-heading{margin-top:0}
 .orders-shell #client-pdf-view{max-width:950px;margin:24px auto;background:#fff;padding:20px;border-radius:6px;border:1px solid #dde4e9}
 .orders-shell .notice{left:auto;right:24px}
}
@media screen and (max-width:1000px){
 .production-shell #grid-view #status{flex-basis:100%}
 .production-shell .producer{display:none}
 .production-shell #grid-view #mode{margin-left:auto}
}
@media screen and (max-width:800px){
 .production-shell .topbar{min-height:36px;gap:5px;flex-wrap:wrap}
 .production-shell .topbar .primary-navigation{order:3;width:100%;min-height:30px}
 .production-shell .primary-link{min-height:30px;padding:4px 8px}
 .production-shell #grid-view .toolbar h1{flex-basis:100%}
 .production-shell .date-controls{width:100%;flex-wrap:wrap}
 .production-shell #calendar-panel{position:static}
 .production-shell #calendar{left:0;top:100%}
 .production-shell #grid table{table-layout:auto}
 .production-shell #grid th:first-child,.production-shell #grid td:first-child{width:180px;min-width:160px;max-width:200px}
 .production-shell #grid th:not(:first-child){min-width:76px}
 .orders-shell main{padding:0 12px 24px}
 .orders-shell .orders-page-heading h1{font-size:23px}
 .orders-shell .order-entry-layout{grid-template-columns:1fr}
 .orders-shell #client-order-entry-panel,.orders-shell #client-order-follow-panel{padding:15px}
}
@media screen and (max-width:520px){
 .production-shell .topbar #show-history{display:none}
 .production-shell .topbar img{max-width:65px}
 .production-shell .product-filter{width:160px}
 .production-shell #grid-view .subbar{gap:5px}
 .orders-shell .order-customer-fields{grid-template-columns:1fr;gap:8px}
 .orders-shell .topbar{height:50px;min-height:50px}
 .orders-shell .order-view-switch button{padding:9px 10px;font-size:13px}
}
@media screen and (pointer:coarse){.production-shell #grid .quantity{height:34px;font-size:16px}.production-shell #grid td{height:40px}}

/* Scale the complete desktop workspace, leaving its controls at physical size.
   The table DOM stays intact while resizing or changing display scale. */
@media screen{
 .production-display-controls{position:fixed;inset:0 0 auto;height:28px;z-index:40;display:flex;align-items:center;gap:5px;padding:2px 8px;background:#f5f6f7;border-bottom:1px solid #ccd3da;color:#46515a;font-size:12px;white-space:nowrap}
 .production-display-controls button{height:23px;min-width:42px;padding:1px 7px;border:1px solid #c8d0d8;border-radius:3px;background:#fff;color:#285d85;font-size:12px;line-height:18px}
 .production-display-controls button[aria-pressed=true]{background:#337ab7;border-color:#286090;color:#fff}
 .production-display-controls output{margin-left:auto;color:#66717c;font-size:11px}
 .production-shell #production-viewport{position:fixed;inset:28px 0 0;overflow-x:auto;overflow-y:hidden;overscroll-behavior:contain}
 .production-shell #production-canvas{position:relative;width:var(--production-visual-width,1200px);height:100%;min-height:0;overflow:hidden}
 .production-shell #workspace{position:absolute;left:0;top:0;width:var(--production-logical-width,1200px);height:var(--production-logical-height,100%);transform:scale(var(--production-scale,1));transform-origin:0 0;overflow:hidden}
 .production-shell #navigation{position:absolute;width:48px;top:0;bottom:0;left:0}
 .production-shell main{height:100%;min-height:0;margin-left:48px;padding:0 12px 6px}
 .production-shell .topbar{min-height:39px;flex-wrap:nowrap;gap:10px;padding:0;font-size:11px}
 .production-shell .topbar img{max-height:27px;max-width:84px}
 .production-shell .topbar .primary-navigation{order:0;width:auto;min-height:0;border-top:0}
 .production-shell .primary-link{min-height:0;font-size:12px;padding:5px 10px;flex:none}
 .production-shell .topbar #show-history{display:inline-block;margin-left:0;font-size:11px}
 .production-shell .topbar #account{margin-left:auto;font-size:11px}
 .production-shell .topbar #logout{font-size:11px}
 .production-shell .date-controls{width:auto;flex-wrap:nowrap}
 .production-shell #calendar-panel{position:relative}
 .production-shell #calendar{left:0;right:auto;top:100%}
 .production-shell .producer{display:block}
 .production-shell #grid-view .toolbar h1{flex-basis:auto;font-size:15px}
 .production-shell #grid-view .subbar{flex-direction:row;flex-wrap:nowrap;align-items:center;gap:8px}
 .production-shell .product-filter{width:200px;flex:none}
 .production-shell #grid-view #mode{margin-left:auto;flex:none}
 .production-shell #grid-view #status{order:0;flex-basis:auto;margin-left:0;font-size:10px}
 .production-shell .grid-scroll-actions{margin-left:0}
 .production-shell #grid table{width:100%;min-width:680px;table-layout:fixed}
 .production-shell #grid th:not(:first-child){min-width:0}
 .production-shell #grid th:first-child,.production-shell #grid td:first-child{width:24%;min-width:170px;max-width:none;line-height:1.2}
 .production-shell #grid .quantity{height:25px;min-height:0;font-size:12px}
 .production-shell #grid td{height:auto}
}
@media print{
 #production-display-controls{display:none!important}
 #production-viewport,#production-canvas,#workspace{position:static!important;transform:none!important;width:auto!important;height:auto!important;overflow:visible!important}
}

/* The small printer remains beside each total without widening the compact grid. */
#grid .product-unit-kg{color:#c92222;font-size:.9em;font-weight:700;white-space:nowrap}
#grid .label-print-column{width:28px;min-width:28px;max-width:28px;padding:3px 2px;text-align:center;vertical-align:top}
#grid .product-label-print{display:inline-flex;align-items:center;justify-content:center;width:24px;height:25px;padding:3px;border:0;border-radius:2px;background:transparent;color:#337ab7;vertical-align:top}
#grid .product-label-print:hover,#grid .product-label-print:focus-visible{background:#e6f0f7;outline:1px solid #337ab7}
#grid .product-label-print:disabled{opacity:.5;cursor:default}
#grid .product-label-print svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
@media screen{
 #grid .total,#grid .total-heading{position:sticky;right:28px}
 #grid .total-heading{width:62px;min-width:52px;z-index:3}
 #grid .label-print-column{position:sticky;right:0;z-index:1}
 #grid th.label-print-column{z-index:3}
 .production-shell #grid .total-heading{width:50px;min-width:45px;font-size:12px}
 .production-shell #grid th.label-print-column{width:28px;min-width:28px}
 .production-shell #grid .label-print-column{padding:3px 2px}
}
@media print{#grid .label-print-column{display:none}#grid .total,#grid .total-heading{position:static}#grid .product-unit-kg{print-color-adjust:exact;-webkit-print-color-adjust:exact}}
