:root{--ink:#203b3e;--muted:#718181;--orange:#e46d3c;--green:#216d60;--line:#e2e8e4;--paper:#f5f7f3;--white:#fff;--font:"Microsoft JhengHei","PingFang TC",system-ui,sans-serif}*{box-sizing:border-box}body{margin:0;font-family:var(--font);background:var(--paper);color:var(--ink);font-size:14px}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer;border:1px solid var(--line);border-radius:7px;padding:9px 14px;background:#fff;color:var(--ink);font-weight:600}button:hover{border-color:var(--green);background:#f3f8f6}button:disabled{opacity:.5;cursor:wait}a{color:var(--green)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #ed9b6d;outline-offset:2px}.primary{background:var(--green);color:#fff;border-color:var(--green)}.primary:hover{background:#184f46}.orange{background:var(--orange);color:white;border-color:var(--orange)}.quiet{background:transparent;border-color:transparent}.danger{color:#b34736}.sidebar{width:226px;background:#fff;position:fixed;inset:0 auto 0 0;border-right:1px solid var(--line);display:flex;flex-direction:column;padding:30px 18px;z-index:5}.brand{display:flex;gap:12px;align-items:center;text-decoration:none;color:var(--ink);font-size:27px;font-weight:800;letter-spacing:-1px;padding:0 9px}.brand-icon{display:grid;place-items:center;width:40px;height:44px;background:var(--orange);color:#fff;border-radius:12px 5px 12px 5px;font-size:31px}.brand small{display:block;font-size:10px;letter-spacing:3px;font-weight:500;margin-top:3px}.workspace{border:1px solid var(--line);padding:12px 10px;font-size:10px;margin:30px 0 22px;border-radius:7px;letter-spacing:.6px}.workspace span{float:right;color:var(--muted)}nav{display:grid;gap:7px}nav a{display:flex;align-items:center;gap:13px;padding:12px 14px;border-radius:7px;color:#617375;text-decoration:none}nav a.active{background:#eaf3ee;color:var(--green);font-weight:700}nav .nav-icon{width:22px;font-size:17px}nav .count{margin-left:auto;font-size:11px;background:#e3eae5;padding:1px 7px;border-radius:5px}.sidebar-bottom{margin-top:auto;padding:20px 12px 0;font-size:12px;color:var(--muted);line-height:2}.sidebar-bottom small{display:block;padding-left:15px;font-size:10px}.dot{display:inline-block;background:#75a48d;width:6px;height:6px;border-radius:50%;margin-right:6px}.main-shell{margin-left:226px}.demo-banner{background:#fff3e7;border-bottom:1px solid #f0ddc8;padding:9px 34px;font-size:11px;color:#95562f;display:flex;justify-content:space-between}.topbar{height:83px;background:#fff;border-bottom:1px solid var(--line);padding:0 34px;display:flex;align-items:center;justify-content:space-between}.topbar small{display:block;font-size:9px;letter-spacing:1.7px;color:var(--muted);margin-top:6px}.top-actions{display:flex;align-items:center;gap:20px}.avatar{width:33px;height:33px;background:#e7eee8;border-radius:50%;display:grid;place-items:center;font-weight:bold}main{max-width:1420px;margin:auto;padding:33px 34px 45px;min-height:calc(100vh - 210px)}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:27px}.eyebrow{font-size:10px;letter-spacing:2px;color:#6a847c;font-weight:700}h1{font-size:29px;letter-spacing:-.8px;margin:8px 0 8px;font-weight:700}h2{font-size:17px;margin:0}h3{font-size:14px;margin:0 0 9px}p{line-height:1.8}.subtle{color:var(--muted);font-size:12px;margin:0}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:17px;margin-bottom:25px}.stat{padding:20px 22px;border:1px solid var(--line);background:#fff;border-radius:10px}.stat-top{display:flex;justify-content:space-between;color:var(--muted);font-size:12px}.stat-symbol{font-size:18px;color:var(--green)}.stat strong{font-size:34px;display:block;font-weight:600;margin:11px 0 5px;letter-spacing:-1px}.stat small{font-size:10px;color:var(--muted)}.panel{background:#fff;border:1px solid var(--line);border-radius:10px;margin-bottom:22px;overflow:hidden}.panel-head{padding:20px 22px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:12px}.panel-body{padding:22px}.split{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(280px,1fr);gap:22px}.hero-panel{background:var(--green);color:#fff;border-radius:10px;padding:25px;margin-bottom:22px}.hero-panel p{font-size:12px;color:#d0e3da;margin:13px 0 20px}.hero-panel .eyebrow{color:#b2d5c5}.flow{display:flex;gap:8px;flex-wrap:wrap;font-size:10px}.flow span{padding:6px 9px;border:1px solid #5c9586;border-radius:5px}.flow i{align-self:center;color:#9cc7b5}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}th{color:#7b8989;background:#fafcf9;font-size:11px;font-weight:500;padding:13px 22px}td{padding:17px 22px;border-top:1px solid #eef1ed;font-size:12px}td .subtle{font-size:10px;margin-top:5px}.number{font-size:10px;letter-spacing:.4px;color:var(--muted);display:block;margin-bottom:6px}.money{font-variant-numeric:tabular-nums;text-align:right}.badge{display:inline-block;border-radius:5px;font-size:10px;line-height:1.4;padding:5px 8px;background:#eef2ee;color:#60756c}.badge.green{color:#246c54;background:#e9f4ec}.badge.amber{background:#fff2dc;color:#a16b1e}.badge.red{background:#fcebe7;color:#a54c3b}.badge.blue{background:#eaf0f8;color:#526f94}.actions{display:flex;gap:7px;flex-wrap:wrap}.actions button{font-size:11px;padding:7px 10px}.empty{padding:35px 22px;text-align:center;color:var(--muted);font-size:12px}.empty p{margin:8px auto 15px;max-width:440px}.activity{display:flex;gap:12px;padding:13px 0;border-bottom:1px solid #edf1ed}.activity:last-child{border:0}.activity .circle{width:26px;height:26px;background:#edf4ee;color:var(--green);border-radius:50%;display:grid;place-items:center;flex-shrink:0}.activity p{font-size:11px;margin:0}.activity small{font-size:9px;color:var(--muted)}.toolbar{display:flex;align-items:center;gap:10px;margin-bottom:20px;flex-wrap:wrap}.search{max-width:350px;flex:1}.notice{padding:13px 16px;background:#fff5e8;border:1px solid #f1dfc8;border-radius:7px;font-size:12px;line-height:1.8;color:#906333;margin-bottom:20px}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.job{padding:22px;background:#fff;border:1px solid var(--line);border-radius:10px}.job .badge{margin:12px 0}.job p{font-size:12px;color:var(--muted)}.step-track{display:flex;margin:18px 0;gap:5px}.step-track span{height:4px;flex:1;background:#e7ece6;border-radius:3px}.step-track span.done{background:#7baf94}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:20px}.detail-field{background:#f5f8f4;border-radius:6px;padding:14px}.detail-field small{display:block;color:var(--muted);font-size:10px;margin-bottom:6px}.error{color:#a44735;font-size:12px;background:#fff1ec;padding:12px;border-radius:6px}.error:empty{display:none}.success{color:var(--green)}footer{padding:18px 34px;color:#93a09b;font-size:10px;border-top:1px solid var(--line);display:flex;justify-content:space-between}dialog{border:none;border-radius:12px;padding:0;width:min(850px,calc(100% - 28px));max-height:88vh;color:var(--ink);box-shadow:0 25px 80px #17392d33}dialog::backdrop{background:#17372f66;backdrop-filter:blur(3px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;padding:20px 25px;border-bottom:1px solid var(--line);position:sticky;top:0;background:#fff;z-index:1}#dialog-content{padding:24px}.icon-button{font-size:25px;border:0;padding:0 8px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.form-grid .full{grid-column:1/-1}label{display:block;font-size:12px;margin-bottom:7px;font-weight:600}input,select,textarea{width:100%;border:1px solid #d8e2db;border-radius:6px;padding:10px 11px;color:var(--ink);background:#fff}textarea{min-height:72px;resize:vertical}.line-input{border:1px solid var(--line);border-radius:8px;padding:17px;margin:15px 0}.line-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:23px;border-top:1px solid var(--line);padding-top:18px}.item-grid{display:grid;grid-template-columns:minmax(160px,1fr) 100px 130px;gap:12px;align-items:end}.field-help{font-size:10px;color:var(--muted);margin:6px 0 0}.batch-row{padding:14px 0;border-bottom:1px solid var(--line);display:grid;grid-template-columns:1fr 125px;gap:18px;align-items:center}.batch-row small{display:block;margin-top:7px;color:var(--muted)}.batch-row.purchase-row{grid-template-columns:1fr 100px 120px}#toast{position:fixed;right:28px;bottom:25px;background:#203f36;color:#fff;border-radius:8px;padding:15px 22px;box-shadow:0 10px 30px #0002;z-index:20;max-width:500px}.setup-list{display:grid;gap:12px}.setup-item{display:flex;gap:12px;padding:16px;border:1px solid var(--line);border-radius:7px}.setup-item p{margin:4px 0 0;font-size:12px;color:var(--muted)}@media(max-width:1100px){.sidebar{width:190px}.main-shell{margin-left:190px}.stats{gap:10px}.stat{padding:16px}.split{grid-template-columns:1fr}.cards{grid-template-columns:repeat(2,1fr)}main{padding:25px}.topbar{padding:0 25px}th,td{padding:14px}.brand{font-size:23px}}@media(max-width:720px), (max-width:1000px) and (pointer:coarse){.sidebar{position:static;width:100%;padding:15px;border-right:0}.brand{font-size:23px}.brand-icon{height:34px;width:34px}.workspace,.sidebar-bottom{display:none}nav{display:flex;overflow:auto;margin-top:17px;gap:5px}nav a{flex-shrink:0;font-size:12px;padding:8px}nav .nav-icon,nav .count{display:none}.main-shell{margin:0}.demo-banner{padding:8px 16px;font-size:9px}.topbar{height:65px;padding:0 17px}.top-actions{gap:5px}main{padding:22px 16px}.stats{grid-template-columns:1fr 1fr}.stat strong{font-size:28px}.page-heading{align-items:flex-start}h1{font-size:24px}.page-heading button{font-size:11px}.cards{grid-template-columns:1fr}.form-grid,.detail-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}.item-grid{grid-template-columns:1fr 1fr}.item-grid>div:first-child{grid-column:1/-1}.batch-row.purchase-row{grid-template-columns:1fr 80px 90px}footer{padding:17px;font-size:9px}#dialog-content{padding:17px}.panel-head{padding:17px}.search{min-width:180px}}@media print{body>*{display:none!important}body>dialog[open]{display:block!important;position:static;width:100%;max-height:none;box-shadow:none}.dialog-head button,.form-actions,dialog button{display:none!important}.notice{color:#a44735}.panel{break-inside:avoid}dialog::backdrop{display:none}}
.split > div, .panel, .main-shell { min-width: 0; } @media(max-width:720px), (max-width:1000px) and (pointer:coarse){.page-heading{flex-direction:column;align-items:flex-start}.page-heading button{white-space:nowrap}.panel-head a{white-space:nowrap;font-size:12px}}

/* Quote versions and touch-friendly layouts; the same workflow at every width. */
td{white-space:normal;overflow-wrap:anywhere}td:first-child{min-width:150px}td .actions{min-width:180px}.form-actions{flex-wrap:wrap}.quote-total{font-size:18px;font-weight:700;text-align:right;padding:15px;background:#edf4ee;border-radius:7px}.dialog-head h2{overflow-wrap:anywhere}.dialog-head .icon-button{flex-shrink:0}dialog{max-height:88dvh}.detail-field{overflow-wrap:anywhere}
@media(max-width:720px), (max-width:1000px) and (pointer:coarse){
  button,.actions button,nav a{min-height:44px}.actions button{padding:10px 14px;font-size:13px}input,select,textarea{font-size:16px;min-width:0}.form-grid>div,.item-grid>div{min-width:0}
  dialog{width:calc(100% - 16px);max-height:94dvh}.dialog-head{padding:14px 17px}.dialog-head h2{font-size:16px}.icon-button{min-width:44px}
  .table-wrap{overflow:visible}table,tbody,tr,td{display:block;width:100%;white-space:normal}thead{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%)}tr{padding:14px 17px;border-top:1px solid var(--line)}td{border:0;padding:7px 0;min-width:0!important;overflow-wrap:anywhere}td::before{content:attr(data-label);display:block;color:var(--muted);font-size:10px;margin-bottom:4px}td[data-label=""]::before{display:none}td .actions{min-width:0;gap:8px}.table-wrap tr:first-child{border-top:0}
  .batch-row,.batch-row.purchase-row{grid-template-columns:1fr 1fr;gap:12px}.batch-row>div:first-child{grid-column:1/-1}.form-actions{gap:8px}.form-actions button{flex:1 1 auto}.line-input{padding:12px}.item-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  #toast{left:12px;right:12px;bottom:12px;max-width:none;padding:12px 16px}.demo-banner{gap:10px}.demo-banner span{min-width:0}footer{gap:14px;flex-wrap:wrap}
}
@media print{table{display:table}thead{position:static;display:table-header-group;width:auto;height:auto;clip-path:none}tbody{display:table-row-group}tr{display:table-row}td{display:table-cell}td::before{display:none}dialog{max-height:none}}

/* Bynock orange is the primary action colour; status colours remain semantic. */
:root{--ink:#362d28;--muted:#786c63;--orange:#c65319;--green:#b94a15;--line:#eadfd7;--paper:#faf7f3}
button:hover{background:#fff3e8;border-color:#c65319}.primary{background:#bd4c16;border-color:#bd4c16;color:#fff}.primary:hover{background:#993b0e}.brand-icon{background:#d55b1e}
nav a{color:#75685f}nav a.active{background:#fff0e3;color:#a9400e}nav .count{background:#f6dfcd}.avatar{background:#fff0e3;color:#aa4211}.dot{background:#d55b1e}
.stat{text-decoration:none;color:var(--ink);display:block;transition:border-color .15s}.stat:hover{border-color:#c65319}.stat strong{color:#b94a15}.stat-symbol{color:#bd4c16}
.quote-total{background:#fff1e5;color:#a8400f}.detail-field{background:#faf5ef}.activity .circle{background:#fff0e3;color:#ad4617}.step-track span.done{background:#d57239}
th{background:#fcf9f5}td{border-color:#f0e8e0}dialog{box-shadow:0 25px 80px #39251433}dialog::backdrop{background:#37291e66}#toast{background:#493025}.sidebar-bottom{color:#786c63}
@media(max-width:720px), (max-width:1000px) and (pointer:coarse){.stat{padding:16px}.stat-top{font-size:12px}.page-heading{margin-bottom:20px}}
@media(max-width:720px), (max-width:1000px) and (pointer:coarse){
  .topbar{height:50px;justify-content:flex-end}.topbar>div:first-child{display:none}.page-heading{flex-direction:row;align-items:center;gap:10px}.page-heading h1{margin:0}.page-heading button{font-size:12px;padding:10px}
  tbody tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:14px}td:first-child,td:last-child{grid-column:1/-1}td .number{margin-bottom:4px}.form-actions button{font-size:13px}
}
@media print{tbody tr{display:table-row}}
.discard-confirm{margin:16px 17px 0}.discard-confirm p{margin:0 0 10px}
.signed-out>.sidebar,.signed-out>.main-shell{display:none}.auth-shell{min-height:100dvh;display:grid;place-items:center;padding:24px}.auth-shell[hidden]{display:none}.auth-card{width:min(420px,100%);padding:32px;background:white;border:1px solid var(--line);border-radius:14px;box-shadow:0 15px 50px #7d3f1110}.auth-card .brand{margin-bottom:25px}.auth-card h1{font-size:25px;margin-bottom:20px}.auth-card label,#entry-form>label{margin-top:16px}.auth-card form>.primary{width:100%;margin-top:20px;min-height:44px}.auth-card>.field-help{margin-top:22px}.user-label{font-size:12px;max-width:220px;overflow-wrap:anywhere}.check-row{display:flex;align-items:center;gap:10px}.check-row input{width:20px;height:20px;min-height:20px}.top-actions{gap:12px}.stats:has(>.stat:only-child){grid-template-columns:minmax(0,300px)}
@media(max-width:720px), (max-width:1000px) and (pointer:coarse){.auth-shell{padding:16px}.auth-card{padding:25px 20px}.topbar{height:auto;min-height:55px;padding:8px 16px}.top-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px}.user-label{max-width:180px;font-size:11px}.auth-card input{font-size:16px}}
#dialog-content p,.field-help{overflow-wrap:anywhere}

.document-fields{margin:16px 0;padding:14px;border:1px solid #e7d6cb;border-radius:10px}.document-fields summary{cursor:pointer;font-weight:600;color:#a9470e}.document-fields[open] summary{margin-bottom:12px}.wide-field{grid-column:1/-1}

.brand-logo{width:42px;height:42px;object-fit:contain;flex-shrink:0}.brand{gap:12px}@media(max-width:720px), (max-width:1000px) and (pointer:coarse){.brand-logo{width:36px;height:36px}}

/* Document actions remain reachable on a narrow screen, including long forms. */
.document-toolbar{margin-bottom:18px;padding-bottom:14px;border-bottom:1px solid var(--line)}
.pdf-ready,.dialog-status{padding:12px 17px;background:#fff3e8;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.pdf-ready[hidden],.dialog-status[hidden]{display:none}
.pdf-ready p{margin:0 0 8px}.pdf-ready a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 14px;margin-right:8px;border:1px solid var(--orange);border-radius:7px;text-decoration:none;background:#fff}
#dialog-title:focus{outline:none}
@media(max-width:720px), (max-width:1000px) and (pointer:coarse){
  dialog[open]{display:flex;flex-direction:column;overflow:hidden;max-height:calc(100dvh - 16px);max-width:calc(100% - 16px)}
  .dialog-head{position:static;flex-shrink:0;gap:8px}.dialog-head h2{min-width:0}
  #dialog-content{min-height:0;overflow-y:auto;overscroll-behavior-y:contain;scroll-padding-block:20px 100px}
  .pdf-ready,.dialog-status,.discard-confirm{flex-shrink:0}
  #entry-form>.form-actions{position:sticky;bottom:-17px;z-index:2;margin-inline:-17px;padding:12px 17px calc(12px + env(safe-area-inset-bottom,0px));background:#fff;box-shadow:0 -4px 12px #3925140b}
  #entry-form input,#entry-form select,#entry-form textarea{max-width:100%;min-height:44px;scroll-margin-block:75px 110px}
  input[type=date]{min-width:0;max-width:100%;appearance:none}
  .document-fields summary{min-height:44px;padding-block:10px}.document-fields{padding:10px}
  .document-toolbar{gap:8px}.document-toolbar button{flex:1 1 auto}
  .page-heading>div{min-width:0}.page-heading button{flex-shrink:0}
}
@media(max-width:360px){.item-grid{grid-template-columns:minmax(0,1fr)}.item-grid>div:first-child{grid-column:auto}}
@media print{dialog[open]{display:block;overflow:visible;max-height:none;max-width:none}.pdf-ready,.dialog-status{display:none!important}#dialog-content{overflow:visible}.document-toolbar{display:none}}

/* Keep the background in place while a document is open. */
body:has(dialog[open]){overflow:hidden}

.batch-row,.batch-row>div{min-width:0;overflow-wrap:anywhere}.batch-row small{white-space:pre-wrap}

.batch-summary{flex:0 0 100%;margin:0;color:#a8400f;font-size:16px;font-weight:700;text-align:right}
@media print{body:has(dialog[open]){overflow:visible}#dialog-content{height:auto;max-height:none}}

.job{min-width:0;overflow-wrap:anywhere}.job .actions{flex-wrap:wrap}.item-spec{white-space:pre-wrap;overflow-wrap:anywhere}
.delivery-packaging{grid-column:1/-1;display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:12px}.delivery-packaging>div{min-width:0}.delivery-packaging input{min-width:0}
@media(max-width:480px){.delivery-packaging{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.delivery-packaging>div:first-child{grid-column:1/-1}.delivery-line{grid-template-columns:minmax(0,1fr) 100px}}

.company-filters{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:16px}.company-filters button{min-height:44px;padding-inline:22px}.company-filters span{margin-left:8px;opacity:.8}
.company-fields{border:0;padding:0;margin:0;min-width:0}.company-section{margin-top:24px}.company-section>.line-top{gap:10px;flex-wrap:wrap;margin-bottom:4px}
.company-row{border:1px solid var(--line);border-radius:8px;padding:16px;margin-top:12px;background:#fffcf9}.company-row .form-grid>div{min-width:0}.company-row input,.company-row textarea{min-width:0}
.default-choice{display:flex;align-items:center;gap:8px;margin:0;min-height:44px;cursor:pointer}.default-choice input[type=radio]{width:18px;height:18px;min-height:18px!important;accent-color:var(--orange);padding:0;flex-shrink:0}
.company-empty{font-size:12px;color:var(--muted);padding:12px 0}.company-empty[hidden]{display:none}
#company-document-pickers{margin-bottom:16px}#company-document-pickers select{min-width:0;width:100%}
@media(max-width:720px), (max-width:1000px) and (pointer:coarse){.company-row{padding:12px}.company-section>.line-top button,.company-row button{min-height:44px}.company-filters button{flex:1}.company-fields .form-grid{grid-template-columns:minmax(0,1fr)}}

.finance-report table { min-width: 520px; }
.finance-report th,.finance-report td { white-space: normal; overflow-wrap: anywhere; }
.finance-section th,.finance-total td { font-weight: 700; background: #fff6eb; }
.finance-report tbody tr { display: table-row; }
.finance-report tbody td,.finance-report tbody th { display: table-cell; }
.finance-report td::before { display: none; }

.finance-report { overflow-x: auto; }
.finance-report table { display: table; width: 100%; }
.finance-report tbody { display: table-row-group; width: auto; }
.finance-report tr { width: auto; padding: 0; }
.finance-report th,.finance-report td { width: auto; padding: 12px; }
.password-field{display:flex;align-items:stretch;gap:8px;min-width:0}.password-field input{min-width:0;flex:1}.password-field button{flex-shrink:0;min-width:64px;min-height:44px}.password-field button[aria-pressed=true]{background:#fff2e8;border-color:var(--orange)}
.heading-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.view-choice{display:flex;gap:4px;padding:3px;border:1px solid var(--line);border-radius:8px;background:#fff}.view-choice button{min-height:38px;border:0;padding:8px 16px}.view-choice button[aria-pressed=true]{background:var(--orange);color:#fff}
.record-layout{min-width:0}.record-layout.layout-list .table-wrap{overflow-x:auto}.record-layout.layout-list table{display:table;width:100%;min-width:680px}.record-layout.layout-list thead{display:table-header-group;position:static;width:auto;height:auto;clip-path:none;overflow:visible}.record-layout.layout-list tbody{display:table-row-group}.record-layout.layout-list tr{display:table-row;padding:0;width:auto}.record-layout.layout-list th,.record-layout.layout-list td{display:table-cell;width:auto;padding:14px;vertical-align:top;border-bottom:1px solid var(--line)}.record-layout.layout-list td::before{display:none}.record-layout.layout-list td strong{display:block}
.record-layout.layout-cards .table-wrap{overflow:visible}.record-layout.layout-cards table{display:block;width:100%;min-width:0}.record-layout.layout-cards thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.record-layout.layout-cards tbody{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,290px),1fr));gap:16px;padding:16px}.record-layout.layout-cards tr{display:block;width:auto;min-width:0;border:1px solid var(--line);border-radius:8px;padding:16px;background:#fff}.record-layout.layout-cards td{display:block;min-width:0!important;width:auto;border:0;padding:7px 0;overflow-wrap:anywhere}.record-layout.layout-cards td::before{display:block;content:attr(data-label);font-size:11px;color:var(--muted);margin-bottom:4px}.record-layout.layout-cards td strong{display:block}.record-layout.layout-cards td .actions{min-width:0;flex-wrap:wrap}
@media(max-width:720px){.record-layout .page-heading{flex-wrap:wrap;gap:16px}.record-layout .page-heading>div:first-child{flex-basis:100%}.heading-actions{width:100%;justify-content:space-between}.view-choice button{min-height:44px}.record-layout.layout-list .table-wrap{max-width:100%}}

[data-design-form] [hidden]{display:none!important}[data-design-form] .form-grid>div{min-width:0}[data-design-form] textarea{min-height:96px}[data-design-form] select,[data-design-form] input{min-width:0}

.order-progress-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.order-progress-card{border:1px solid var(--line);border-radius:8px;padding:14px;background:#fffaf5;min-width:0}.order-progress-card small{display:block;color:var(--muted);margin-bottom:8px}.order-progress-card strong{font-size:14px;overflow-wrap:anywhere}.order-section{margin:14px 0;border:1px solid var(--line);border-radius:8px;overflow:hidden}.order-section>summary{padding:14px;cursor:pointer;font-weight:600}.order-section .empty{padding:20px}.order-overview table{min-width:0}.order-overview td{overflow-wrap:anywhere}@media(max-width:720px){.order-progress-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Unified orange navigation icons, with a quiet active indicator. */
#nav a{position:relative;gap:12px;min-height:44px;border-radius:9px;transition:background-color .15s,color .15s}
#nav .nav-icon{display:grid;place-items:center;width:22px;height:22px;flex:0 0 22px;color:#d45b1d}
#nav .nav-icon svg{display:block;width:20px;height:20px}
#nav a:hover{background:#fff7f0;color:#9d4319}
#nav a.active{background:#fff0e3;color:#a9400e;font-weight:600}
#nav a.active .nav-icon{color:#bd4c16}
#nav a.active::before{content:"";position:absolute;left:0;top:13px;bottom:13px;width:3px;border-radius:3px;background:#d45b1d}
@media(min-width:721px) and (pointer:fine), (min-width:1001px){.sidebar>.brand{flex-shrink:0}#nav{min-height:0;overflow-y:auto;scrollbar-width:thin}.sidebar-bottom{flex-shrink:0}}
@media(max-width:720px), (max-width:1000px) and (pointer:coarse){#nav .nav-icon{display:none}#nav a.active::before{display:none}}
@media(prefers-reduced-motion:reduce){#nav a{transition:none}}

.backup-panel>summary{display:flex;align-items:center;gap:16px;min-height:64px;padding:18px 22px;cursor:pointer;font-weight:600;list-style:none}.backup-panel>summary::-webkit-details-marker{display:none}.backup-summary-info{margin-left:auto;font-weight:400;font-size:12px;color:var(--muted)}.backup-chevron{color:var(--orange);transition:transform .15s}.backup-panel[open] .backup-chevron{transform:rotate(180deg)}.backup-panel>summary:focus-visible{outline:3px solid #ed9b6d;outline-offset:-4px}.backup-panel[open]>summary{border-bottom:1px solid var(--line)}
@media(max-width:720px){.backup-panel>summary{padding:16px;flex-wrap:wrap;gap:8px}.backup-summary-info{order:3;flex-basis:100%;font-size:11px}.backup-chevron{margin-left:auto}}
