:root{--ink:#153b3a;--green:#087f70;--line:#dce7e5;--muted:#526d6a}*{box-sizing:border-box}body{margin:0;background:#f3f7f6;color:var(--ink);font:16px/1.5 system-ui,sans-serif}aside{position:fixed;width:230px;height:100vh;background:#123e3b;color:#fff;padding:32px 24px}.brand{color:white;text-decoration:none;font-size:30px;display:block}.brand small{display:block;font-size:10px;letter-spacing:2px;margin-left:30px}.caption{font-size:11px;letter-spacing:1.5px;color:#a8ccc3;margin-top:56px}.nav{display:block;border-radius:12px;background:#23544f;color:#fff;text-decoration:none;padding:14px}.aside-note{position:absolute;bottom:34px;font-size:13px;color:#b4d2cb}.workspace{margin-left:230px}header{height:80px;background:white;border-bottom:1px solid var(--line);padding:20px 40px;display:flex;align-items:center;justify-content:space-between}header form{display:flex;align-items:center;gap:16px}main{padding:40px;max-width:1450px;margin:auto}.eyebrow{color:var(--green);font-size:12px;font-weight:750;letter-spacing:1.6px}h1{font-size:34px;line-height:1.2;letter-spacing:-1px;margin:12px 0}h2{font-size:20px;margin:0 0 18px}.intro{margin-bottom:32px}.intro p,.muted{color:var(--muted)}.card{background:white;border:1px solid var(--line);border-radius:18px;padding:28px;box-shadow:0 4px 18px #123e3b05}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:24px}.columns{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);gap:24px}.icon{display:inline-grid;place-items:center;width:50px;height:50px;background:#fff1d5;color:#825b0d;border-radius:14px;font-size:30px;margin-bottom:18px}.button,button{background:var(--green);color:#fff;border:0;border-radius:10px;padding:13px 20px;min-height:46px;font:inherit;font-weight:650;cursor:pointer;text-decoration:none;display:inline-block}.quiet{background:#eef5f3;color:var(--ink)}input,select{display:block;width:100%;padding:12px;border:1px solid #9eb7b1;border-radius:8px;margin-top:6px;font:inherit;background:white;color:var(--ink)}label{font-weight:650;font-size:14px}input:focus,select:focus,a:focus-visible,button:focus-visible{outline:3px solid #e8b846;outline-offset:3px}.login{max-width:450px}.notice{padding:15px 20px;border-radius:10px;background:#d9f3e9;margin-bottom:20px}.errorlist{color:#ac2737;padding-left:20px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left}th{font-size:12px;text-transform:uppercase;color:var(--muted);background:#f7faf9}td,th{padding:14px 12px;border-bottom:1px solid var(--line)}.empty{padding:36px 12px;color:var(--muted)}.roadmap{border-left:4px solid #e8b846;margin-top:32px;padding:12px 24px}.roadmap p{color:var(--muted)}footer{color:var(--muted);font-size:12px;padding:24px 40px}.back{color:var(--green);display:inline-block;margin-bottom:24px}@media(max-width:900px){aside{position:static;width:auto;height:auto;padding:16px 24px}.brand{font-size:24px}.caption,.aside-note,.nav{display:none}.workspace{margin:0}.columns{grid-template-columns:1fr}header{height:auto;padding:16px 24px}main{padding:24px}h1{font-size:28px}.card{padding:20px}}

.tabs{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 24px}.tabs a{background:#fff;border:1px solid var(--line);border-radius:10px;padding:12px 16px;color:var(--ink);text-decoration:none;min-height:46px}.tabs a:hover{background:#e3f0ec}.badge{display:inline-block;border-radius:8px;padding:3px 8px;background:#def4e9;color:#155642;font-size:12px;font-weight:650}.pending{color:#85570b;background:#fff1d5}.text-link{color:#076b61;font-weight:650}.form-card{max-width:760px}input[type=checkbox]{display:inline-block;width:24px;height:24px;vertical-align:middle;margin-right:8px}details{margin-top:8px}summary{cursor:pointer;padding:6px;border-radius:6px;font-size:13px}.helptext{display:block;font-size:13px;color:var(--muted)}

.columns{align-items:start}.columns>*{min-width:0}.product-layout{grid-template-columns:1fr}.product-fields{display:grid;grid-template-columns:1fr 1fr;gap:20px}.product-fields fieldset{border:1px solid var(--line);border-radius:12px;min-width:0;padding:8px 20px}.product-fields legend{font-weight:700;color:var(--green);padding:0 8px}.icon-definitions{position:absolute;width:0;height:0;overflow:hidden}.nav-icon{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.tabs a{display:inline-flex;align-items:center;gap:8px}.tabs a:nth-child(3n+1) .nav-icon{color:#ba7917}.tabs a:nth-child(3n+2) .nav-icon{color:#2878a3}.tabs a:nth-child(3n) .nav-icon{color:#087f70}@media(max-width:700px){.product-fields{grid-template-columns:minmax(0,1fr)}.columns{grid-template-columns:minmax(0,1fr)}header{gap:12px}header form{gap:10px}}

.commercial-stack{display:grid;gap:24px}.actions{display:flex;gap:12px;flex-wrap:wrap}.subtotal{text-align:right;font-size:20px;font-weight:750}td{overflow-wrap:anywhere}.helptext{overflow-wrap:anywhere}

@media(max-width:700px){.revision-table,.revision-table tbody,.revision-table tr,.revision-table td{display:block;width:100%}.revision-table thead{display:none}.revision-table tr{border:1px solid var(--line);border-radius:12px;margin:8px 0 20px}.revision-table td{padding:12px 14px}.revision-table td:last-child{border-bottom:0}.revision-table td::before{content:attr(data-label);display:block;font-size:11px;text-transform:uppercase;font-weight:700;color:var(--muted);margin-bottom:6px}.subtotal{text-align:left;font-size:18px}}

textarea{display:block;width:100%;font:inherit;padding:12px;border:1px solid #9eb7b1;border-radius:8px;resize:vertical}

/* Public customer portal: visible branding without the internal sidebar. */
.approval-layout header .brand{color:var(--green);font-weight:750}.approval-layout main{max-width:1100px}.approval-layout header{gap:20px}main>.card{margin-bottom:24px}.approval-layout article+article{border-top:1px solid var(--line);margin-top:24px;padding-top:12px}

/* Module shell: stable primary navigation and a scoped secondary navigation. */
.app-sidebar{width:244px;padding:28px 20px;overflow-y:auto;display:flex;flex-direction:column;gap:8px}.workspace{margin-left:244px}.company-context{margin:25px 0 8px;padding:14px 12px;background:#ffffff0b;border:1px solid #ffffff20;border-radius:12px;display:grid;gap:5px;font-size:13px}.company-context span{font-size:11px;color:#b7d5cf}.company-context a{font-size:12px;color:#b7e7dc}.app-sidebar .caption{margin:16px 12px 5px}.module-nav{display:grid;gap:5px}.module-link{display:flex;align-items:center;gap:12px;color:#d8e9e5;text-decoration:none;padding:12px;border-radius:10px;font-size:14px;font-weight:600;min-height:46px}.module-link:hover{background:#ffffff12;color:white}.module-link.selected{background:#ffffff1c;color:white;box-shadow:inset 3px 0 #63d6b7}.module-link .nav-icon{width:21px;height:21px;color:var(--module-color,#b9d7cf)}.sidebar-foot{margin-top:auto;padding:28px 12px 4px;font-size:11px;color:#a8ccc3}.module-sales{--module-color:#2777b7;--module-soft:#e9f3fc}.module-purchases{--module-color:#b87516;--module-soft:#fff4df}.module-stock{--module-color:#188575;--module-soft:#e5f5ee}.module-planning{--module-color:#855cbd;--module-soft:#f1ebfb}.module-catalog{--module-color:#b35b37;--module-soft:#fcf0e8}.module-settings{--module-color:#62768c;--module-soft:#edf1f6}.module-link.module-sales{--module-color:#81bef0}.module-link.module-purchases{--module-color:#f0bc65}.module-link.module-stock{--module-color:#74d4b6}.module-link.module-planning{--module-color:#c6acf2}.module-link.module-catalog{--module-color:#f3af88}.module-link.module-settings{--module-color:#b6c9df}main{max-width:1500px;padding:32px 40px}.breadcrumb{display:flex;gap:10px;align-items:center;margin-bottom:20px;font-size:13px;color:var(--muted)}.breadcrumb a{color:var(--green)}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 18px}.section-heading h2{margin:0;font-size:18px}.module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.module-card{position:relative;display:block;background:white;border:1px solid var(--line);border-top:3px solid var(--module-color);border-radius:14px;padding:24px;text-decoration:none;color:var(--ink);transition:box-shadow .15s,transform .15s}.module-card:hover{transform:translateY(-2px);box-shadow:0 8px 25px #153b3a10}.module-symbol{display:inline-flex;background:var(--module-soft);color:var(--module-color);padding:12px;border-radius:12px;margin-bottom:20px}.module-card h2{margin-bottom:8px}.module-card p{font-size:14px;color:var(--muted);min-height:42px;margin:0 0 20px}.module-cta{display:flex;justify-content:space-between;font-size:13px;font-weight:700;color:var(--module-color)}.planned-section{margin-top:34px;padding-top:26px;border-top:1px solid var(--line)}.planned-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.planned-card{display:flex;gap:12px;border:1px dashed #cbd9d6;border-radius:12px;padding:18px;color:var(--muted)}.planned-card h3{font-size:14px;margin:0 0 4px}.planned-card p{font-size:12px;margin:0}.planned-section>.muted{font-size:12px}.section-tabs{gap:6px;border-bottom:1px solid var(--line);padding-bottom:14px}.section-tabs a{padding:10px 15px;font-size:14px;border-color:transparent;background:transparent}.section-tabs a.active{color:var(--green);background:#e1f2ec;border-color:#b9dcd0;font-weight:750}.skip-link{position:absolute;left:260px;top:-80px;background:white;padding:12px;z-index:10}.skip-link:focus{top:8px}header{height:72px}main>.back{font-size:13px;margin-bottom:16px}
@media(max-width:1100px){.module-grid,.planned-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.app-sidebar{position:static;width:100%;height:auto;padding:16px 20px;display:block}.workspace{margin-left:0}.company-context{margin:12px 0;display:flex;align-items:center;gap:12px;flex-wrap:wrap}.module-nav{display:flex;gap:6px;overflow-x:auto;padding:8px 0}.module-link{white-space:nowrap;flex-shrink:0;padding:10px 12px}.sidebar-foot,.app-sidebar .caption{display:none}main{padding:24px}.skip-link{left:20px}.brand small{margin-left:25px}}
@media(max-width:560px){.module-grid,.planned-grid{grid-template-columns:1fr}.module-card{padding:20px}.module-symbol{margin-bottom:14px}.module-card p{min-height:0}header{padding:14px 20px;height:auto;align-items:flex-start;font-size:13px}header form{gap:8px;flex-wrap:wrap;justify-content:flex-end}main{padding:20px}.section-heading{align-items:flex-start}.section-heading h2{font-size:16px}.section-tabs{flex-wrap:nowrap;overflow:auto}.section-tabs a{white-space:nowrap}.company-context span{display:none}}
.module-adm{--module-color:#b35b37;--module-soft:#fcf0e8}.module-finance{--module-color:#188575;--module-soft:#e5f5ee}.module-dispatch{--module-color:#b87516;--module-soft:#fff4df}.module-bi{--module-color:#855cbd;--module-soft:#f1ebfb}.module-link.module-adm{--module-color:#f3af88}.module-link.module-finance{--module-color:#74d4b6}.module-link.module-dispatch{--module-color:#f0bc65}.module-link.module-bi{--module-color:#c6acf2}.nav-pending{margin-left:auto;font-size:9px;font-weight:500;color:#b4ccc6;border:1px solid #ffffff25;border-radius:4px;padding:1px 4px}.module-links-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.module-action{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:24px;border:1px solid var(--line);border-radius:12px;background:white;color:var(--ink);text-decoration:none}.module-action:hover{border-color:var(--green);background:#fafffd}.module-note{padding:18px;border-left:3px solid #c6acf2;color:var(--muted);margin-top:24px;font-size:14px}.module-placeholder h2{margin-top:20px}.module-card .badge{margin-bottom:12px}@media(max-width:600px){.module-links-grid{grid-template-columns:1fr}}

/* Canto: neutral metal-inspired palette, restrained accents, unboxed icons. */
:root{--ink:#292e34;--green:#424a54;--line:#e4e6e9;--muted:#727981}body{background:#f7f8fa;color:var(--ink)}.app-sidebar{background:#fff;color:#30363d;border-right:1px solid var(--line)}.brand{color:#343a42;letter-spacing:-1px;font-size:29px}.brand small{color:#848a92;letter-spacing:2px;font-size:9px}.company-context{background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:16px 10px 20px}.company-context span,.company-context a{color:#818891}.app-sidebar .caption{color:#959ba2;font-size:10px}.module-link{color:#737a83;font-weight:500;border-radius:7px}.module-link:hover{background:#f5f6f8;color:#292e34}.module-link.selected{background:#f0f2f5;color:#252b32;box-shadow:none;font-weight:650}.module-link .nav-icon{stroke-width:1.6}.sidebar-foot{color:#989ea5}.module-link.module-sales,.module-sales{--module-color:#7592b4;--module-soft:transparent}.module-link.module-planning,.module-planning{--module-color:#a092b2;--module-soft:transparent}.module-link.module-adm,.module-adm{--module-color:#909aa7;--module-soft:transparent}.module-link.module-finance,.module-finance{--module-color:#88a296;--module-soft:transparent}.module-link.module-dispatch,.module-dispatch{--module-color:#b49d7d;--module-soft:transparent}.module-link.module-purchases,.module-purchases{--module-color:#a79380;--module-soft:transparent}.module-link.module-stock,.module-stock{--module-color:#86a1a4;--module-soft:transparent}.module-link.module-bi,.module-bi{--module-color:#9b94b5;--module-soft:transparent}.nav-pending{color:#a1a6ad;border:0;padding:0;font-size:9px}.module-symbol{background:transparent;border:0;border-radius:0;padding:0;margin-bottom:20px}.module-symbol .nav-icon{width:30px;height:30px;stroke-width:1.6}.module-card{border:0;border-radius:10px;padding:26px;box-shadow:none}.module-card:hover{box-shadow:0 4px 18px #202a3508;transform:none;background:#fff}.module-card h2{font-size:18px;font-weight:650}.module-card p{font-size:13px;color:#848a92}.module-cta{color:#747d88;font-weight:500;font-size:12px}.module-grid{gap:2px;background:#eceef1;border:1px solid #eceef1;border-radius:12px;overflow:hidden}.module-card{border-radius:0}.section-heading h2{font-size:15px;color:#737b85;font-weight:500}.badge{background:#edf0f3;color:#757d86;border-radius:4px;font-size:10px;font-weight:500}.badge.pending{color:#9499a1;background:#f3f4f6}.eyebrow{color:#8b929c;font-size:10px;font-weight:600;letter-spacing:1.3px}h1{font-size:30px;font-weight:650;letter-spacing:-.8px}.intro{margin-bottom:34px}.intro p{font-size:14px}.card{border-color:#e8eaed;border-radius:10px;box-shadow:none;padding:25px}.button,button{background:#454d58;border-radius:7px;font-size:14px;font-weight:550}.quiet{background:#f1f3f5;color:#69727c}.text-link,.back,.breadcrumb a{color:#637286}.section-tabs a{color:#818992;border-radius:6px}.section-tabs a.active{color:#343e4a;background:#edf0f4;border-color:transparent;font-weight:600}.tabs a:hover{background:#f0f2f5}.notice{background:#edf3f0;color:#52675c}.module-action{border:0;border-bottom:1px solid var(--line);border-radius:0;padding:24px 4px;background:transparent;font-size:14px}.module-action:hover{background:#f1f3f5;border-color:var(--line)}.module-action strong{font-weight:550}.module-action span{color:#a6acb3}.module-note{border-color:#d9dce2;font-size:12px}.breadcrumb{color:#8b929b;font-size:12px}header{background:#ffffffb0;padding:18px 40px;font-size:13px;color:#848c95}.section-tabs{margin-bottom:28px}.module-placeholder{max-width:700px}.module-placeholder h2{font-size:18px}.module-placeholder p{font-size:14px;color:var(--muted)}.icon{background:transparent;border:0;border-radius:0;color:#9ba1aa}input,select,textarea{border-color:#d7dce1;border-radius:6px}input:focus,select:focus,a:focus-visible,button:focus-visible{outline-color:#aab8ca}.skip-link{color:var(--ink)}
@media(min-width:1250px){.module-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.module-card{min-height:218px}}
@media(max-width:900px){.app-sidebar{border-bottom:1px solid var(--line);border-right:0}.company-context{margin:0;padding:12px 0;border-bottom:0}.module-link{padding:9px 11px}.module-symbol .nav-icon{width:26px;height:26px}header{padding:16px 24px}}
.canto-logo{display:block;width:126px;height:auto;max-width:100%;margin:0 auto}.brand{padding:2px 8px 6px}.app-sidebar{padding-top:20px}.company-context{margin-top:14px}:root{--ink:#243648;--green:#173e59}.button,button{background:#173e59}.module-link.selected{color:#163e58;background:#f0f5f8}.module-link.selected .nav-icon{color:#4296bb}.eyebrow{color:#8095a4}.text-link,.back,.breadcrumb a{color:#52748b}.module-card h2{color:#203d53}.section-tabs a.active{color:#254c66;background:#edf4f8}.module-sales{--module-color:#6198b3}.module-symbol{border:0;background:none;padding:0}.module-link .nav-icon{border:0;background:none}.company-context strong{font-weight:500}@media(max-width:900px){.canto-logo{width:88px;margin:0}.brand{padding:0}}
.module-link.module-billing,.module-billing{--module-color:#8298aa;--module-soft:transparent}

/* Persistent left rail: each module name sits below its unboxed icon. */
.app-sidebar{position:fixed;inset:0 auto 0 0;width:118px;height:100vh;height:100dvh;padding:16px 8px;display:flex;flex-direction:column;border-right:1px solid var(--line);border-bottom:0;overflow-y:auto;gap:6px;z-index:5}
.workspace{margin-left:118px;min-width:0}.app-sidebar .brand{padding:0 4px 6px}.app-sidebar .canto-logo{width:90px;margin:0 auto}
.company-context{display:grid;gap:5px;margin:0;padding:8px 2px 12px;text-align:center;font-size:11px;border-bottom:1px solid var(--line)}.company-context strong{overflow-wrap:anywhere;line-height:1.3}.company-context span{display:block;font-size:10px}.company-context a{font-size:10px}.app-sidebar .caption{display:none}
.module-nav{display:flex;flex-direction:column;overflow:visible;gap:4px;padding:4px 0}.module-link{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;white-space:normal;text-align:center;min-height:66px;padding:9px 3px;font-size:11px;line-height:1.3;flex-shrink:0}.module-link .nav-icon{width:25px;height:25px}.nav-pending{margin:0;font-size:8px;line-height:1}.sidebar-foot{display:none}.skip-link{left:126px}.module-label{display:block}
@media(max-width:900px){.app-sidebar{width:96px;padding:12px 6px}.workspace{margin-left:96px}.app-sidebar .canto-logo{width:78px}.module-link{font-size:10px;min-height:62px}.skip-link{left:104px}.module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.app-sidebar{width:82px;padding:10px 4px}.workspace{margin-left:82px}.app-sidebar .canto-logo{width:66px}.company-context{font-size:10px}.company-context span{font-size:9px}.module-link{min-height:60px;font-size:9px;gap:4px}.module-link .nav-icon{width:23px;height:23px}.nav-pending{font-size:8px}.workspace header{padding:12px;flex-wrap:wrap;gap:8px}.workspace header form{justify-content:flex-start}.workspace main{padding:18px 12px}.workspace footer{padding:18px 12px}.module-grid{grid-template-columns:minmax(0,1fr)}.module-card{padding:20px}.skip-link{left:88px}}

/* Secondary navigation stays above the workspace, never in the left rail. */
.section-tabs{display:flex;flex-wrap:wrap;gap:8px;align-items:stretch;margin:0 0 26px;padding:4px 0 18px;border-bottom:1px solid var(--line)}.section-tabs a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-width:90px;max-width:140px;min-height:80px;padding:10px 12px;border:0;border-radius:6px;font-size:11px;line-height:1.3;text-align:center;white-space:normal}.section-tabs .nav-icon{width:24px;height:24px;background:none;border:0}.section-tabs a:nth-child(3n+1) .nav-icon{color:#a79380}.section-tabs a:nth-child(3n+2) .nav-icon{color:#6198b3}.section-tabs a:nth-child(3n) .nav-icon{color:#88a296}.section-tabs a.active{box-shadow:inset 0 -2px #4296bb}.section-tabs a span{display:block}
@media(max-width:900px){.section-tabs{flex-wrap:nowrap;overflow-x:auto}.section-tabs a{min-width:86px;flex-shrink:0;max-width:110px}}

/* Visão geral: shortcuts are icon + label, without tiles or permanent frames. */
.module-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(112px,1fr));gap:28px 14px;background:transparent;border:0;border-radius:0;overflow:visible}
.module-card,.module-card:hover{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:10px;min-height:0;padding:10px 4px;background:transparent;border:0;border-radius:0;box-shadow:none;text-align:center;text-decoration:none;transform:none}
.module-card .module-symbol{display:flex;align-items:center;justify-content:center;margin:0;padding:0;width:46px;height:46px;color:var(--module-color,#328eb5);background:transparent;border:0}
.module-card .module-symbol .nav-icon{width:38px;height:38px;stroke-width:1.7}
.module-card .module-name{max-width:100%;color:#173e59;font-size:14px;font-weight:600;line-height:1.25;overflow-wrap:anywhere}
.module-card:hover .module-name{text-decoration:underline;text-underline-offset:3px}
.module-card:hover .module-symbol{color:#2285ad}
.module-card:focus-visible{outline:3px solid #1686ad;outline-offset:3px;border-radius:4px}
.approval-agenda{margin-top:42px;max-width:900px}
.approval-agenda .section-heading{border-bottom:1px solid var(--line);padding-bottom:10px}
.approval-agenda .section-heading span{color:#36586c;font-size:13px}
.approval-agenda ul{list-style:none;margin:0;padding:0}
.approval-agenda li+li{border-top:1px solid var(--line)}
.approval-agenda li a{display:flex;align-items:center;gap:10px 24px;flex-wrap:wrap;padding:14px 2px;color:#173e59;text-decoration:none}
.approval-agenda li a:hover strong{text-decoration:underline;text-underline-offset:3px}
.approval-agenda li a:focus-visible{outline:3px solid #1686ad;outline-offset:3px}
.approval-agenda li strong{font-weight:600}
.approval-agenda li span{flex:1;min-width:150px;overflow-wrap:anywhere}
.approval-agenda li time{color:#607381;font-size:12px}
@media(max-width:600px){.module-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 8px}.module-card .module-symbol{width:42px;height:42px}.module-card .module-symbol .nav-icon{width:34px;height:34px}.approval-agenda li a{display:grid;gap:4px}}

.customer-editor{margin-top:24px}.customer-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.customer-fields fieldset{border:0;min-width:0;padding:0;margin:0}.customer-fields legend{font-weight:700;margin-bottom:8px}.customer-fields small{display:block;color:var(--muted)}@media(max-width:800px){.customer-fields{grid-template-columns:minmax(0,1fr)}}

/* Compact financial filters and totals; no module card frames. */
.finance-filters{display:flex;flex-wrap:wrap;gap:12px 20px;align-items:end;margin:20px 0}.finance-filters p{flex:1 1 180px;margin:0}.finance-filters button{align-self:end}.finance-totals{margin:24px 0;padding:12px 0;border-block:1px solid var(--line)}.finance-totals p{margin:6px 0}.finance-new-entry>summary{cursor:pointer;font-weight:650;padding:18px 0}

/* Keep load checklists readable without widening the workspace. */
.table-scroll{max-width:100%;overflow-x:auto;margin:24px 0}.table-scroll td{vertical-align:top;overflow-wrap:anywhere}.table-scroll caption{text-align:left;font-weight:600;padding:12px 0}

.signature-pad{display:block;width:min(100%,640px);height:auto;border:1px solid #afbfca;border-radius:6px;background:#fff;touch-action:none}
.delivery-evidence{display:block;max-width:min(100%,800px);max-height:650px;object-fit:contain}
.delivery-signature{max-height:250px}

.delivery-items{min-width:520px}

/* Operational controls: readable labels and predictable compact columns. */
a.button,a.button:visited,button{color:#fff;overflow-wrap:normal;word-break:normal}
a.button.quiet,a.button.quiet:visited,button.quiet{background:#edf3f7;color:#16445e}
button{white-space:nowrap}.button{max-width:100%;text-align:center}
.order-items{min-width:690px}.order-items td,.order-items th{overflow-wrap:normal;word-break:normal}
.order-items td:first-child{width:100%;min-width:280px;overflow-wrap:break-word}
.order-items td:not(:first-child){white-space:nowrap}.order-items th:not(:first-child){min-width:90px}
.order-flow{margin:20px 0}.order-steps{list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:0;margin:0 0 20px}
.order-steps li{border-top:3px solid #137ba1;padding:12px 0;min-width:0;color:#526474}
.order-steps a{display:block;text-decoration:none;color:#15465e}.order-steps strong,.order-steps span{display:block}.order-steps span{font-size:13px;margin-top:6px}
.next-action{border-top:1px solid var(--line);padding-top:16px;display:flex;gap:16px;justify-content:space-between;align-items:center;flex-wrap:wrap}.next-action p{flex:1 1 280px;margin:0}.next-action .button{flex:0 1 auto}
.module-link.module-sales,.module-sales{--module-color:#1676cf}.module-link.module-planning,.module-planning{--module-color:#8351c7}.module-link.module-adm,.module-adm{--module-color:#42647b}.module-link.module-finance,.module-finance{--module-color:#008565}.module-link.module-dispatch,.module-dispatch{--module-color:#be7109}.module-link.module-purchases,.module-purchases{--module-color:#bf631a}.module-link.module-stock,.module-stock{--module-color:#00878d}.module-link.module-bi,.module-bi{--module-color:#7951bb}.module-link.module-billing,.module-billing{--module-color:#3468b2}.module-link.module-users,.module-users{--module-color:#ba4582}
.section-tabs a:nth-child(3n+1) .nav-icon{color:#b56a16}.section-tabs a:nth-child(3n+2) .nav-icon{color:#1684b9}.section-tabs a:nth-child(3n) .nav-icon{color:#00876b}.nav-icon{stroke-width:1.9}
@media(max-width:1000px){.order-steps{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.order-steps{grid-template-columns:1fr}.next-action .button{width:100%}}

.price-table td:not(:first-child){white-space:nowrap;overflow-wrap:normal;word-break:normal}.price-table .badge{white-space:normal}.module-link.selected .nav-icon{color:var(--module-color,#1676cf)}.module-home{--module-color:#00876b}
/* Keep each quotation check and its next action together on desktop/tablets. */
.quote-checks{list-style:none;padding:0;margin:1rem 0}
.quote-checks li{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;padding:1rem 0;border-bottom:1px solid #dce4ea}
.quote-checks li>span{flex:1;min-width:0}
.quote-checks a,.quote-checks small{flex-shrink:0}
@media(max-width:700px){.quote-checks li{align-items:flex-start;flex-direction:column;gap:.5rem}}

/* Order progress remains readable in narrow browser panels and tablets. */
.readiness-table td,.readiness-table th,.order-stock-table td,.order-stock-table th{overflow-wrap:normal;word-break:normal;vertical-align:top}
.readiness-table td:first-child{min-width:140px}.readiness-table td:nth-child(2){min-width:160px}
.order-stock-table td:nth-child(n+3){white-space:nowrap}
@media(max-width:760px){
 .readiness-table,.readiness-table tbody,.readiness-table tr,.readiness-table td,.order-stock-table,.order-stock-table tbody,.order-stock-table tr,.order-stock-table td{display:block;width:100%;min-width:0}
 .readiness-table thead,.order-stock-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .readiness-table tr,.order-stock-table tr{padding:16px 0;border-bottom:1px solid var(--line)}
 .readiness-table td,.order-stock-table td{padding:4px 0;border:0;white-space:normal}
 .readiness-table td:nth-child(2){font-weight:650;color:#526474}
 .readiness-table p{margin:6px 0}
 .order-stock-table td[data-label]::before{content:attr(data-label);display:block;color:var(--muted);font-size:12px;font-weight:600}
 .order-stock-table td:first-child a{overflow-wrap:anywhere}
}

/* Touch-first machine queue: one task at a time, technical details on demand. */
.queue-heading h1{margin:4px 0 8px}.queue-heading p{margin-top:0;color:#526578}.queue-filters{background:#fff;border:1px solid #dce5ed;border-radius:12px;padding:16px;margin:20px 0}.queue-filters summary,.queue-history>summary,.queue-details>summary{cursor:pointer;font-weight:650;min-height:44px;display:flex;align-items:center;gap:8px}.queue-filters summary:before,.queue-history>summary:before,.queue-details>summary:before{content:'+';font-size:20px;color:#176da4}details[open]>summary:before{content:'−'}.queue-filters form{max-width:600px}.machine-queues{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:24px;align-items:start}.machine-queue{min-width:0}.machine-heading{background:#173e59;color:white;padding:18px 20px;border-radius:14px 14px 0 0;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.machine-heading h2{color:white;margin:0 0 4px;font-size:21px}.machine-heading span{font-size:13px}.queue-badge{background:#e4edf5;color:#22415e;border-radius:100px;padding:6px 10px;font-size:13px;font-weight:700;display:inline-block}.queue-badge.done{background:#dcf5e7;color:#146b3b}.queue-badge.ready{background:#dcedff;color:#125e9a}.queue-badge.blocked{background:#fff0d3;color:#845200}.production-task{background:#fff;border:1px solid #dce5ed;border-top:4px solid #2088bd;border-radius:12px;padding:22px;margin:16px 0;min-width:0}.production-task.task-done{border-top-color:#2d9b65}.task-topline{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between}.task-topline strong{font-size:17px}.task-topline strong span{color:#596d7e}.production-task h3{font-size:20px;line-height:1.45;word-break:normal;margin:18px 0}.task-measures{display:grid;grid-template-columns:1fr 1fr;gap:12px}.task-measures>div{padding:16px;background:#eef6fc;border-radius:10px}.task-measures strong{display:block;font-size:28px;color:#123e60;white-space:nowrap}.task-measures span{display:block;margin-top:4px;color:#53697a}.task-instructions{padding:14px;background:#fff8e8;border-left:4px solid #e6a12c;border-radius:6px;line-height:1.6}.task-face{padding:16px 0;border-top:1px solid #e3eaf0}.face-heading{display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between}.task-face progress{width:100%;height:12px;margin-top:12px;accent-color:#168754}.task-counts{font-size:14px;color:#53697a}.production-task button,.production-task select{min-height:48px;font-size:16px;word-break:normal;white-space:normal}.production-task form{margin:12px 0}.production-task form>button{width:100%}.queue-details{border-top:1px solid #e3eaf0;padding-top:8px;font-size:14px;color:#506477}.queue-details dl{display:grid;grid-template-columns:auto 1fr;gap:8px 16px}.queue-details dd{margin:0;overflow-wrap:anywhere}.queue-empty{background:#fff;padding:24px;border:1px solid #dce5ed;border-radius:0 0 12px 12px}.queue-empty p{margin-bottom:0;color:#596d7e}.queue-history>summary{padding:12px;color:#1b6797}.operator-access{padding:24px;border-left:5px solid #efad26;background:#fff8e8;border-radius:10px}.operator-access h2{margin-top:0}@media(max-width:700px){.production-task{padding:16px}.machine-queues{grid-template-columns:minmax(0,1fr)}.task-measures strong{font-size:25px}.queue-details dl{grid-template-columns:1fr}.queue-details dt{font-weight:700}}

/* Machine worklist: compact rows first; actions open only for the chosen OP. */
.production-screen .app-sidebar{display:none}.production-screen .workspace{margin-left:0}.production-screen main{max-width:1200px;margin:auto;padding:20px 28px}.production-screen header{padding:12px 28px}.production-screen .notice{font-size:13px;padding:10px 14px}.queue-back{display:inline-block;margin-bottom:12px;font-weight:650}.production-screen .machine-queues{display:flex;flex-direction:column;gap:20px}.production-screen .machine-queue{width:100%}.production-screen .queue-heading p{margin-bottom:10px}.production-screen .queue-filters{margin:12px 0}.task-row{padding:0;background:white;border:0;border-bottom:1px solid #d8e2eb;border-radius:0}.task-row-summary,.task-list-head{display:grid;grid-template-columns:80px 105px 120px minmax(100px,1fr) 50px;align-items:center;gap:12px;padding:16px 20px}.task-list-head{background:#edf3f8;color:#50677a;font-size:12px;font-weight:700;padding-block:10px}.task-row-summary{min-height:66px;cursor:pointer;list-style:none;font-size:18px}.task-row-summary::-webkit-details-marker{display:none}.task-row-summary::before,details[open]>.task-row-summary::before{display:none}.task-row-summary strong{color:#123e5b}.task-row-summary small{font-size:13px;color:#516879}.task-open{font-size:14px;color:#086aa1;font-weight:700}.task-row[open]>.task-row-summary{background:#e6f3ff;box-shadow:inset 4px 0 #1683bf}.task-row-content{padding:4px 20px 20px}.task-row-content h3{margin-top:12px}.task-order{font-size:14px;color:#526578}.queue-history{padding:0;border:1px solid #dce5ed;background:white}.queue-history>summary{padding:8px 20px;font-size:14px}.production-screen .queue-empty{padding:16px 20px}.production-screen .queue-empty p{margin-bottom:0}.task-row-summary .queue-badge{font-size:12px}
@media(max-width:700px){.production-screen main{padding:16px 12px}.production-screen header{padding:10px 12px}.task-row-summary,.task-list-head{grid-template-columns:55px 65px 90px minmax(70px,1fr) 35px;gap:6px;padding:13px 10px}.task-row-summary{font-size:16px}.task-list-head{font-size:10px}.task-row-summary .queue-badge{font-size:11px;padding:5px 6px}.task-open{font-size:12px}.task-row-content{padding:4px 12px 16px}.task-row{padding:0}}

/* One production order per customer order; item IDs follow both machines. */
.op-group {margin:1rem 0 1.5rem;border:1px solid #ccdce7;border-radius:12px;overflow:hidden;background:#fff}
.op-group-heading {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;background:#eaf3fa;border-bottom:1px solid #ccdce7}
.op-group-heading h3 {margin:0;font-size:1.2rem;color:#123d58}
.op-group-heading h3 span {display:inline-block;margin-left:16px;font-size:1rem;font-weight:500}
.op-group-heading>span {font-size:.9rem;color:#405e70}
.op-group .task-row {margin:0;border:0;border-radius:0;border-bottom:1px solid #e1e8ee}
.op-group .task-row:last-child {border-bottom:0}
.task-machine {margin:.35rem 0;color:#405e70;font-size:.95rem}
@media(max-width:600px){.op-group-heading{align-items:flex-start}.op-group-heading h3 span{display:block;margin:3px 0 0}.op-group-heading>span{max-width:100px;text-align:right}}

/* PCP: one compact order row, with machine and item details on demand. */
.status-overview{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0}.status-overview>span{background:#fff;border:1px solid #dce5ed;border-radius:10px;padding:12px 18px;color:#42576a}.status-overview strong{color:#153f59;font-size:1.2rem;margin-right:5px}.status-caption{font-size:.85rem;color:#54697c;margin:12px 0}.status-orders{background:#fff;border:1px solid #dce5ed;border-radius:12px;overflow:hidden}.status-order-head,.status-order-summary{display:grid;grid-template-columns:1fr .6fr 1fr 1fr .8fr 1.1fr;gap:18px;align-items:center;padding:16px 20px}.status-order-head{background:#edf3f7;color:#405c70;font-size:.8rem;font-weight:700;text-transform:uppercase}.status-order{border-top:1px solid #e0e8ef}.status-order-summary{cursor:pointer;list-style:none;min-height:84px}.status-order-summary::-webkit-details-marker{display:none}.status-order-summary:hover{background:#f5f9fc}.status-order-summary:focus-visible,.status-machine>summary:focus-visible{outline:3px solid #1684bd;outline-offset:-3px}.status-order-summary small,.status-table small{display:block;font-size:.8rem;line-height:1.4;color:#536b7d;margin-top:4px}.status-order-number strong{font-size:1.05rem;color:#123c57}.status-order-summary progress{display:block;max-width:130px;width:100%;height:7px;margin-top:8px;accent-color:#168363}.status-pill{display:inline-block;padding:5px 9px;border-radius:6px;font-size:.8rem;font-weight:700;line-height:1.4;white-space:normal}.status-working{background:#e1f1ff;color:#075f9a}.status-warning{background:#fff0cf;color:#855000}.status-done{background:#dbf4e9;color:#126444}.status-muted{background:#edf0f3;color:#536575}.status-expand{color:#17638c!important}.status-order[open]>.status-order-summary{background:#edf7fd;border-bottom:1px solid #dce5ed}.status-order-body{padding:4px 20px 20px;background:#f8fafc}.status-machine{border:1px solid #d8e3ec;border-radius:8px;margin-top:12px;background:#fff;overflow:hidden}.status-machine>summary{padding:16px;cursor:pointer;min-height:48px;color:#184b69}.status-machine>summary span{display:inline-block;margin-left:16px;font-size:.85rem;color:#4c6579}.status-table-wrap{overflow-x:auto}.status-table{width:100%;min-width:690px;margin:0;table-layout:auto}.status-table th,.status-table td{padding:12px 14px;word-break:normal;overflow-wrap:normal;font-size:.85rem}.status-table th{font-size:.75rem}.status-table td:first-child{white-space:nowrap}.status-machine-link{display:inline-block;padding:14px 16px;font-weight:600}.status-links{display:flex;gap:20px;flex-wrap:wrap;padding:16px 0}.status-machine .status-links{padding:14px 16px}.status-secondary{margin-top:18px;border:1px solid #dce5ed;background:#fff;border-radius:8px;padding:14px 18px}.status-secondary>summary{cursor:pointer;font-weight:600;color:#23516c;min-height:28px}.status-day-form{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:12px 0}.status-day-form p{margin:0;max-width:260px}.status-day-form button{margin:0}.status-mobile-label{display:none!important}
@media(max-width:700px){.status-order-head{display:none}.status-order-summary{grid-template-columns:1fr 1fr;gap:12px;padding:16px}.status-order-summary>span:last-child{grid-column:1/-1;display:flex;gap:12px;align-items:center;justify-content:space-between}.status-mobile-label{display:block!important}.status-order-body{padding:4px 10px 14px}.status-machine>summary span{display:block;margin:6px 0 0 16px}.status-overview{gap:8px}.status-overview>span{padding:10px 12px;font-size:.85rem;flex:1}.status-overview strong{display:block}.status-table th,.status-table td{padding:10px}}
.status-order-summary::before,details[open]>.status-order-summary::before,.status-machine>summary::before,.status-secondary>summary::before{display:none}

/* Same item list and touch targets throughout assembly, drying and quality. */
.stage-navigation{display:flex;flex-wrap:wrap;gap:10px 22px;align-items:center;margin:12px 0 22px;border-bottom:1px solid #dce5ed;padding-bottom:12px;font-size:.9rem}
.stage-navigation a,.stage-navigation strong{display:inline-flex;align-items:center;min-height:44px}
.stage-navigation strong{color:#136a91;border-bottom:3px solid #2088bd}
.stage-count{display:block;margin-top:5px}.task-row-content form{max-width:620px}
.task-row-summary:focus-visible{outline:3px solid #1684bd;outline-offset:-3px}

/* Dedicated operator account: no application navigation in this layout. */
.machine-only .operator-header{display:flex;align-items:center;gap:16px;border-bottom:1px solid #dce5ed;background:#fff}
.machine-only .operator-header>span{margin-left:auto}.machine-only .operator-header form{margin:0}
.machine-only .operator-header button{min-height:44px}.machine-only .queue-heading{margin:8px 0 16px}
.machine-only .queue-heading h1{font-size:26px;margin:6px 0}.machine-only .queue-heading p{font-size:15px}
.machine-only .machine-heading{padding:14px 18px}.machine-only .machine-heading h2{font-size:20px}

/* Machine completion stays on the item row, with production instructions visible. */
.machine-item-row,.machine-list-head{grid-template-columns:100px 105px 120px minmax(100px,1fr) minmax(220px,300px)}
.machine-item-row{cursor:default}.machine-item-row strong small{font-weight:500}
.machine-item-action form{margin:0}.piece-finish-form{display:grid;gap:6px}
.piece-finish-form label{font-size:12px;margin:0}.piece-finish-form select{width:100%;min-height:40px;margin:3px 0 0}
.piece-finish-form button{width:100%;min-height:48px;white-space:normal;margin:0;font-size:16px;background:#087545;color:white}
.piece-finish-form button:disabled{background:#64748b}.piece-finish-form small{font-size:12px}
.machine-item-specification{padding:0 20px 14px;font-size:14px}.machine-item-specification p{margin:4px 0;line-height:1.45}
.finish-complete{color:#087545;font-size:14px;font-weight:700}
@media(max-width:900px){.machine-item-row,.machine-list-head{grid-template-columns:75px 80px 95px minmax(80px,1fr) minmax(180px,220px);gap:8px;padding-inline:12px}.machine-item-specification{padding-inline:12px}}
@media(max-width:620px){.machine-list-head{display:none}.machine-item-row{grid-template-columns:1fr 1fr 1fr;gap:10px}.machine-item-action{grid-column:2/4}.machine-item-row>span:nth-child(4){grid-column:1}.machine-item-specification{padding-top:6px}}

.stage-material{grid-column:1/-1;background:#fff4d6;border-left:4px solid #d18b00;padding:8px 12px;font-size:15px;color:#624500}.stage-material strong{color:#624500}

/* Read-only production documents, suitable for paper and tablet. */
.op-document-search{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:20px 0}.op-document-search input{flex:1;min-width:180px}.op-document-page{background:#eef3f7;color:#193b50}.op-document-toolbar{max-width:1000px;margin:20px auto;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 20px}.op-document{max-width:1000px;margin:0 auto 36px;background:white;padding:36px;box-sizing:border-box;border:1px solid #d6e1e9;border-radius:12px}.op-document-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;background:none;padding:0 0 24px;border-bottom:3px solid #17415a}.op-document-heading img{width:110px;height:auto}.op-document-heading h1{margin:4px 0;font-size:32px}.op-document-heading p{margin:4px 0}.op-document-version h2{font-size:20px;margin-top:26px}.op-document-version h2 small{font-size:14px}.op-document-customer{background:#f1f6fa;padding:16px;border-radius:8px}.op-document-customer h3{margin:0 0 8px}.op-document-customer p{margin:6px 0}.op-document-item{border:1px solid #cbdbe5;border-radius:8px;margin:16px 0;overflow:hidden;break-inside:avoid}.op-document-item-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#e8f2f8;padding:12px 16px}.op-document-item h3{margin:0}.op-document-item h4{margin:16px;font-size:17px}.op-document-specs{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:0 16px;margin-bottom:16px}.op-document-specs dt{font-size:12px;font-weight:700;color:#526b7a}.op-document-specs dd{margin:4px 0 0}.op-document-instructions{padding:12px 16px;margin:0;background:#fff9e8}.op-document-notice{background:#fff3cf;padding:10px 14px}.op-document footer{padding:20px 0 0;margin-top:20px;border-top:1px solid #d6e1e9;font-size:12px}.op-group-heading a{color:inherit;text-decoration:underline;text-underline-offset:4px}
@media(max-width:600px){.op-document{padding:16px;border-radius:0}.op-document-heading{flex-wrap:wrap;gap:12px}.op-document-heading img{width:75px}.op-document-item-heading{flex-wrap:wrap}.op-document-specs{grid-template-columns:1fr}.op-document-toolbar{padding:0 12px}}
@media print{@page{size:A4;margin:12mm}.op-document-page{background:white}.op-document-toolbar{display:none!important}.op-document{border:0;padding:0;margin:0;max-width:none;font-size:10pt;box-shadow:none}.op-document-heading h1{font-size:24pt}.op-document-heading img{width:90px}.op-document-item h4{font-size:11pt}.op-document-specs{gap:8px}.op-document-item-heading,.op-document-customer,.op-document-instructions{-webkit-print-color-adjust:exact;print-color-adjust:exact}.op-document footer{position:static}}
.item-specification{padding:12px 18px;background:#f8fbfd;border-top:1px solid #e1eaf0;font-size:14px;line-height:1.5}.item-specification-faces{display:flex;flex-wrap:wrap;gap:10px 24px;margin-top:8px}.item-specification-faces>span{flex:1;min-width:180px}.item-specification-faces small{display:block;color:#536e7e;font-weight:700}.item-specification-faces .item-eps{background:#fff3cc;padding:6px 10px;border-radius:6px}.item-specification .task-instructions{margin:10px 0 0}.machine-item-specification .item-specification{padding:0;border:0}
.item-drying-clocks:empty{display:none}.item-drying-clocks{padding:8px 18px}.drying-clock{display:flex;flex-wrap:wrap;align-items:center;gap:8px 20px;background:#fff7df;border-left:4px solid #e7a51b;padding:12px;margin:6px 0;font-size:14px}.drying-clock small{flex-basis:100%;font-weight:700;color:#79550e}

/* Compact planning queues: one row per allocation and sheet face. */
.machine-queue-list{padding:0;overflow:hidden;margin-bottom:1rem}
.machine-queue-list>header{display:flex;align-items:baseline;gap:1rem;padding:1rem 1.25rem;background:#eaf4fa}
.machine-queue-list>header h2{margin:0;font-size:1.1rem}
.machine-queue-list .table-wrap{overflow-x:auto}
.machine-queue-list table{margin:0;width:100%;min-width:920px}
.machine-queue-list th,.machine-queue-list td{padding:.75rem;vertical-align:top}
.machine-queue-list .queue-nowrap{white-space:nowrap}
.machine-queue-list .queue-date{display:block;margin-top:.4rem;white-space:nowrap;color:#526474}
.machine-queue-list .queue-specification{min-width:300px;max-width:520px}
.machine-queue-list .item-specification{margin:0;padding:0;border:0;background:none}
.machine-queue-list .item-specification-faces{font-size:.85rem;gap:.4rem}
.machine-queue-list .task-instructions{font-size:.85rem;margin:.4rem 0 0}
.queue-empty-machine{padding:.65rem 1rem;margin:.4rem 0;border:1px solid #dbe3ea;border-radius:8px;background:#fff;color:#526474}

.machine-item-action .item-label-button{font-size:.9rem;min-height:44px;white-space:nowrap}.machine-item-action>form{margin:0}.machine-item-action{gap:.5rem;flex-wrap:wrap}

/* Production: the current sheet and its actions share one compact item row. */
.production-screen main{max-width:1120px}
.production-screen .op-group-heading{height:auto;min-height:50px;padding:10px 12px;gap:12px;flex-wrap:wrap}
.production-screen .op-group-heading h3{font-size:17px}
.production-screen .op-group-heading h3 span{font-size:14px;margin-left:12px}
.op-group-meta{display:flex;gap:8px 18px;align-items:center;justify-content:flex-end;flex-wrap:wrap;font-size:12px;color:#53697a}
.dispatch-deadline{font-size:12px;color:#53697a}.dispatch-deadline strong{font-weight:650;color:#173e59}
.schedule-status{display:inline-block;padding:2px 6px;border-radius:4px;font-size:12px;font-weight:650;background:#e7f2ff;color:#176ba4;white-space:nowrap}.schedule-status.schedule-done{background:#e0f4e9;color:#087545}.schedule-status.schedule-late{background:#fff0ed;color:#a43229}.stage-dispatch-status{margin:0;padding:8px 18px;font-size:12px;color:#53697a}
.machine-compact-row,.machine-compact-head{display:grid;grid-template-columns:minmax(100px,1.3fr) minmax(80px,1fr) minmax(70px,.85fr) minmax(90px,1.1fr) minmax(70px,.8fr) minmax(95px,1.1fr) 216px;align-items:center;gap:8px;padding:10px 12px}
.machine-compact-head{background:#edf3f8;color:#50677a;font-size:12px;font-weight:700;padding-block:7px}
.machine-compact-row{min-height:80px;font-size:14px;border-bottom:1px solid #e1e8ee}
.machine-compact-row:last-child{border-bottom:0}.machine-compact-row strong{font-weight:650;color:#173e59}
.machine-compact-row small{display:block;font-size:12px;color:#53697a;margin-top:3px;line-height:1.35}
.machine-compact-count,.machine-compact-length{font-variant-numeric:tabular-nums;white-space:nowrap}
.machine-compact-ping{font-size:13px;overflow-wrap:normal;word-break:normal}.machine-compact-count small{font-size:11px;white-space:normal}.compact-done{color:#087545;font-weight:650}
.production-schedule-status{display:table;margin-top:4px;padding:2px 6px;border-radius:4px;font-size:12px;font-weight:650;background:#e7f2ff;color:#176ba4}
.production-schedule-status.done{background:#e0f4e9;color:#087545}.production-schedule-status.late{background:#fff0ed;color:#a43229}
.machine-compact-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;justify-content:end;gap:4px 6px;min-width:0}
.machine-compact-actions form{margin:0;min-width:0}.machine-compact-actions .piece-finish-form{display:block;grid-column:1;min-width:0}
.machine-compact-actions .piece-finish-form.multiple-lots{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px;grid-column:1/-1}
.machine-compact-actions .compact-lot{margin:0;min-width:0}
.machine-compact-actions .compact-lot select{margin:0;width:100%;min-height:44px;font-size:13px;padding:6px;white-space:nowrap;text-overflow:ellipsis}
.machine-compact-actions .piece-finish-form button{width:100%;min-height:44px;padding:9px 10px;font-size:13px;white-space:nowrap}
.machine-compact-actions .item-label-button,.machine-compact-actions .item-label-button:visited{display:inline-flex;align-items:center;justify-content:center;margin:0;padding:9px 10px;min-height:44px;width:auto;font-size:13px;white-space:nowrap;background:#edf3f8;color:#173e59;border:1px solid #d8e2eb}
.machine-compact-actions>.item-label-button,.machine-compact-actions>form:not(.piece-finish-form){grid-column:2;justify-self:end}
.machine-compact-actions .compact-no-permission{font-size:11px;margin:0;white-space:normal}
.compact-lot-detail{grid-column:1/-1;min-width:0;text-align:right;font-size:12px;color:#53697a}
.compact-lot-detail summary{display:inline-flex;align-items:center;min-height:24px;text-decoration:underline;text-underline-offset:3px;cursor:pointer;list-style:none;max-width:100%;overflow-wrap:anywhere}
.compact-lot-detail summary::-webkit-details-marker{display:none}.compact-lot-detail>div{background:#f7fafc;border:1px solid #d8e2eb;border-radius:6px;text-align:left;margin-top:5px;padding:8px 10px;overflow-wrap:anywhere}
.compact-lot-detail>div>span,.compact-lot-detail>div>strong{display:block}.compact-lot-detail>div>strong{font-size:12px;white-space:normal}
.compact-mobile-label{display:none}
.compact-operation-notice{margin:0;padding:6px 14px;background:#fff3d3;color:#775300;font-size:12px}
.compact-not-applicable{color:#61788a}.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1100px){.production-screen main{padding-inline:14px}}
@media(max-width:900px){.machine-compact-head{display:none}.machine-compact-row{grid-template-columns:minmax(95px,1fr) 80px 78px 100px;gap:8px 14px;padding:12px}.machine-compact-type{grid-column:1}.machine-compact-color{grid-column:2}.machine-compact-eps{grid-column:3}.machine-compact-ping{grid-column:4}.machine-compact-length{grid-column:2}.machine-compact-count{grid-column:3/5}.machine-compact-actions{grid-column:1/-1;grid-template-columns:minmax(0,1fr) auto;justify-self:end;min-width:216px;max-width:100%}.compact-mobile-label{display:block;color:#53697a;font-size:12px;margin-bottom:2px}.compact-lot-detail{text-align:right}.machine-compact-row small{font-size:12px}.production-screen .op-group-heading h3 span{display:inline-block;margin:0 0 0 10px}.op-group-meta{font-size:12px}.machine-compact-count small{font-size:11px}}
@media(max-width:550px){.production-screen main{padding-inline:10px}.production-screen .op-group-heading{align-items:flex-start}.op-group-meta{justify-content:flex-start;width:100%;gap:5px 12px}.machine-compact-row{grid-template-columns:minmax(80px,1fr) minmax(70px,1fr) minmax(68px,1fr);gap:10px;padding:12px 10px}.machine-compact-type{grid-column:1}.machine-compact-color{grid-column:2}.machine-compact-eps{grid-column:3}.machine-compact-ping{grid-column:1}.machine-compact-length{grid-column:2}.machine-compact-count{grid-column:3}.machine-compact-actions{grid-column:1/-1;justify-self:start;min-width:0;width:min(100%,270px)}.compact-lot-detail{text-align:left}.machine-compact-actions .piece-finish-form.multiple-lots{grid-template-columns:minmax(0,1fr) auto}.production-screen .op-group-heading h3{font-size:17px}.production-screen .op-group-heading h3 span{font-size:14px}}
@media(pointer:coarse){.compact-lot-detail summary{min-height:44px}}

/* Payment entry keeps the parcel list and the receipt action together. */
.payment-entry{margin-top:24px;scroll-margin-top:24px}.payment-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 24px;margin-bottom:20px}.payment-field{min-width:0}.payment-field>label{display:block;margin-bottom:6px}.payment-field .helptext{display:block;font-size:13px;margin-top:5px}.payment-field-wide{grid-column:1/-1}.payment-field input[type=checkbox]{width:auto;margin-right:8px}.finance-paid{background:#dcf5e8;color:#116d43}.finance-overdue{background:#fff0df;color:#9b4d08}@media(max-width:650px){.payment-fields{grid-template-columns:1fr}.payment-field-wide{grid-column:auto}}
.payment-methods-table{min-width:540px}.payment-methods-table td{overflow-wrap:normal;word-break:normal}.payment-methods-table td:last-child{white-space:nowrap}

/* Reviewed delivery windows and composition/color sequence. */
.production-window{display:block;font-size:.85rem}.planning-warning{color:#9a3412;background:#fff3db;padding:.35rem .6rem;border-radius:6px;font-weight:600;display:block}.production-sequence-heading{padding:.45rem .8rem;margin:1rem 0 .35rem;color:#17435b;background:#e4f2f5;border-left:4px solid #0e7490;font-size:1rem}.production-sequence-band th{background:#e4f2f5;color:#17435b}.op-group-meta{flex-wrap:wrap}

@media (max-width: 600px) {
  .catalog-list { padding: 14px; }
  .catalog-table { table-layout: fixed; }
  .catalog-table th, .catalog-table td {
    padding: 8px 6px;
    word-break: normal;
    overflow-wrap: anywhere;
  }
  .catalog-table th.catalog-action { width: 62px; }
  .catalog-table .catalog-action a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    white-space: nowrap;
  }
}
