:root{--ink:#172a35;--muted:#77868d;--line:#e3e9e9;--green:#13776a;--bg:#f4f7f7;--dark:#102f32}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.65 'Segoe UI','Microsoft YaHei',sans-serif}a{color:var(--green);text-decoration:none}button,a,input,select{touch-action:manipulation}.sidebar{width:236px;position:fixed;inset:0 auto 0 0;background:var(--dark);color:#fff;padding:32px 20px;display:flex;flex-direction:column}.brand{font-size:30px;font-weight:800;color:#fff;display:flex;gap:14px;align-items:center;padding:0 12px 30px}.brand>span{font-size:19px;letter-spacing:2px}.brand small{display:block;font-size:8px;font-weight:400;letter-spacing:1.6px;color:#86aaa9}.nav-label{font-size:11px;color:#799b9d;padding:18px 14px 9px;letter-spacing:2px}nav a{display:block;padding:11px 14px;margin:4px 0;color:#a7c2c2;border-radius:7px}nav a.active,nav a:hover{background:#24504f;color:#fff}nav small{font-size:10px;float:right;opacity:.55}.sidebar-bottom{margin-top:auto;padding:24px 12px 0;font-size:12px;color:#a7c2c2}.sidebar-bottom small{display:block;margin:7px 0 0 15px;color:#6b9293}.status-dot{display:inline-block;width:6px;height:6px;background:#73cbb6;border-radius:100%;margin-right:5px}.shell{margin-left:236px}.topbar{height:82px;background:#fff;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 36px;font-size:13px}.user{display:flex;align-items:center;gap:13px}.user small{display:block;color:var(--muted);font-size:11px}.avatar{width:34px;height:34px;background:#e7f3ef;border-radius:50%;display:grid;place-items:center;color:var(--green)}main{max-width:1540px;margin:auto;padding:26px 36px}.environment{color:#94753e;font-size:11px;letter-spacing:.5px;background:#fcf7ec;border:1px solid #efe5cd;border-radius:6px;padding:9px 14px;margin-bottom:27px}.heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:26px}h1{font-size:27px;line-height:1.3;margin:4px 0 8px;font-weight:650;letter-spacing:-.6px}h2{font-size:17px;margin:0 0 16px}h3{font-size:14px}.eyebrow{font-size:11px;font-weight:600;letter-spacing:2px;color:var(--green)}p{margin:8px 0}.muted,.hint{color:var(--muted)}.hint{font-size:12px}.button,button{display:inline-block;border:1px solid var(--green);background:var(--green);color:white;border-radius:6px;padding:9px 17px;font:inherit;cursor:pointer}.button.secondary,button.secondary{background:#fff;border:1px solid var(--line);color:var(--ink)}button.text-button{border:0;background:none;color:var(--muted);padding:4px}.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:28px}.card,.panel{background:white;border:1px solid var(--line);border-radius:9px}.card{padding:21px 24px}.card .metric{font-size:34px;font-weight:600;letter-spacing:-1px;margin:11px 0 2px}.card .hint{font-size:11px}.panel{padding:24px;margin-bottom:22px}.panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.panel-head h2{margin:0}.split{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);gap:22px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;white-space:nowrap;font-size:13px}th{background:#f7f9f9;color:#7b898e;font-weight:500;text-align:left;font-size:12px}th,td{padding:13px 15px;border-bottom:1px solid #edf1f1}tbody tr:hover{background:#f7fbfa}td:first-child,th:first-child{position:sticky;left:0;background:inherit}td small{display:block;color:var(--muted);font-size:11px}.empty{text-align:center;padding:46px 18px;color:var(--muted)}.badge{display:inline-block;border-radius:5px;padding:3px 8px;background:#edf5f2;color:#428578;font-size:11px}.badge.wait{background:#fbf4e4;color:#a48340}.message{padding:12px 18px;margin-bottom:18px;border-radius:6px;background:#e5f3ec}.message.error,.errorlist{background:#fff0ee;color:#a14131}.errorlist{padding:10px 25px;border-radius:4px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.field label{display:block;font-size:12px;color:#5c7077;margin-bottom:6px}input,select,textarea{border:1px solid #dbe3e3;border-radius:5px;padding:9px 11px;background:#fff;color:var(--ink);font:inherit;width:100%;max-width:100%}input:focus,select:focus,textarea:focus{outline:2px solid #9ccbbf;outline-offset:1px}input[type=checkbox]{width:auto}input[type=number].qty{width:86px}select[multiple]{min-height:130px}.submit-row{margin-top:24px}.filter{display:flex;gap:12px;margin-bottom:20px}.filter input,.filter select{max-width:280px}.detail-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.detail-grid span{display:block;font-size:12px;color:var(--muted)}.detail-grid strong{font-weight:500;overflow-wrap:anywhere}.total{font-size:28px;font-weight:600;color:var(--green)}.timeline{border-left:1px solid var(--line);padding-left:18px}.timeline p{margin:0 0 20px}.timeline small{display:block;color:var(--muted)}.notice{padding:16px;border-left:3px solid #d6aa5d;background:#fcf8ee;color:#8b713e;font-size:13px}.task{padding:14px 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:12px}.task small{display:block;color:var(--muted)}details summary{cursor:pointer;color:var(--green);padding:10px 0}.quote-paper{max-width:900px;margin:auto}.quote-paper .logo{font-size:27px;letter-spacing:3px;font-weight:700;color:var(--green)}.quote-total{text-align:right;line-height:2.2}.quote-total .total{line-height:1.4}footer{font-size:11px;color:#99a5a7;margin:32px 0}.login-page{min-height:100vh;display:grid;grid-template-columns:1.1fr 1fr}.login-art{background:var(--dark);color:#fff;padding:10vw 7vw;display:flex;flex-direction:column;justify-content:center}.login-art h1{font-size:48px;line-height:1.3}.login-art p{color:#a6c1be;font-size:17px}.login-art .eyebrow{color:#8dccb9;margin-bottom:30px}.login-form{display:grid;place-items:center;padding:40px}.login-form section{max-width:380px;width:100%}.login-form button{width:100%;margin-top:16px}.login-form p{margin:20px 0}.login-form label{display:block;margin-bottom:7px}.steps{display:flex;gap:9px;margin:25px 0;flex-wrap:wrap}.steps span{background:#eaf1ef;border-radius:4px;padding:7px 12px;color:#52716b;font-size:12px}@media(max-width:1000px){.sidebar{width:195px;padding:25px 10px}.shell{margin-left:195px}.topbar{padding:0 22px}main{padding:22px}.cards{grid-template-columns:repeat(2,1fr)}.split{grid-template-columns:1fr}.detail-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:650px){.sidebar{position:static;width:100%;padding:12px}.brand{padding:5px 8px 10px;font-size:20px}.brand small,.nav-label,.sidebar-bottom,nav small{display:none}.sidebar nav{display:flex;overflow:auto;gap:3px}.sidebar nav a{white-space:nowrap;padding:7px 10px;font-size:12px}.shell{margin-left:0}.topbar{height:64px;padding:0 16px}.topbar>span{display:none}main{padding:18px 12px}.heading{align-items:start}h1{font-size:23px}.cards{gap:10px}.card{padding:16px}.card .metric{font-size:27px}.panel{padding:17px}.form-grid,.detail-grid{grid-template-columns:1fr}.login-page{grid-template-columns:1fr}.login-art{padding:35px}.login-art h1{font-size:30px}.login-art .eyebrow{margin-bottom:10px}.login-form{padding:30px}.user{gap:8px}}@media print{.sidebar,.topbar,.environment,footer,.no-print{display:none!important}.shell{margin:0}main{padding:0}.panel{border:0}body{background:#fff}.quote-paper{max-width:none}}

.quote-workspace{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(340px,1fr);gap:24px;align-items:start}.cart-panel{position:sticky;top:20px}.product-catalog{max-height:700px;overflow:auto}.product-tile{display:flex;justify-content:space-between;gap:16px;padding:20px 0;border-bottom:1px solid var(--line)}.product-tile[hidden]{display:none}.product-buy{text-align:right;color:var(--green)}.quantity-control{display:flex;align-items:center;margin:8px 0}.quantity-control button{padding:5px 10px}.quantity-control input{width:60px!important;text-align:center;margin:0 4px}.quote-preview-brand{font-size:25px;font-weight:750;letter-spacing:2px;color:var(--green);border-bottom:2px solid var(--green);padding:15px 0}.quote-preview-brand small{display:block;font-size:10px;font-weight:400}.cart-items{min-height:160px}.cart-line{padding:15px 0;border-bottom:1px solid var(--line);display:grid;grid-template-columns:1fr auto}.cart-line small{grid-column:1;color:var(--muted)}.cart-line span{grid-column:2;grid-row:1}.quote-summary>div{display:flex;justify-content:space-between;padding:10px 0}.quote-summary .usd-total{margin-top:12px;padding:18px 12px;background:#edf6f2;color:var(--green);font-size:19px}.save-quote{width:100%;margin-top:15px}@media(max-width:1000px){.quote-workspace{grid-template-columns:1fr}.cart-panel{position:static}}

#quotation-workspace>.panel .form-grid{grid-template-columns:repeat(4,minmax(0,1fr))}@media(max-width:1000px){#quotation-workspace>.panel .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){#quotation-workspace>.panel .form-grid{grid-template-columns:1fr}}

body{background:#fff}.sidebar{display:flex;flex-direction:column;height:100dvh;overflow:hidden}.sidebar nav{flex:1;min-height:0;overflow-y:auto}.brand{flex-shrink:0}.account-dock{flex-shrink:0;border-top:1px solid #315355;padding:16px 6px 0;margin-top:16px;color:#c0dada;font-size:13px}.account-profile{display:flex;align-items:center;gap:10px;margin-bottom:12px}.account-profile small{display:block;font-size:11px;color:#90b2b5;margin-top:4px}.account-dock a{color:#c0dada}.account-actions{display:flex;justify-content:space-between;align-items:center;margin-top:12px}.account-actions button{color:#c0dada;font-size:12px}.account-actions form{margin:0}.shell{min-height:100vh;background:#fff}.shell>main{max-width:none;width:100%;margin:0;min-height:100vh}.shell>main.quote-workspace{min-height:100vh}.ticket-table{min-width:1600px}.ticket-table td{vertical-align:top;white-space:normal}.ticket-table .customer-info{min-width:230px}.ticket-table .payment-link{display:block;max-width:230px;overflow-wrap:anywhere}.account-dock .avatar{flex-shrink:0}.lead-add{margin-top:24px}.lead-add summary{display:inline-block;padding:12px 20px;background:var(--green);color:#fff;border-radius:6px}.lead-add form{margin-top:20px}.filter{flex-wrap:wrap}
@media(max-width:650px){.sidebar{height:auto;overflow:visible}.sidebar nav{flex:none}.account-dock{margin-top:12px;padding-top:10px}.account-profile{margin-bottom:6px}.account-actions{justify-content:flex-start;gap:20px}.shell>main{min-height:0}}

@media(min-width:651px){.sidebar{padding-top:24px;padding-bottom:20px}.brand{padding-bottom:12px}.nav-label{padding-top:12px}.sidebar nav a{padding-top:8px;padding-bottom:8px;margin:2px 0}.sidebar nav{scrollbar-width:thin;scrollbar-color:#406465 transparent}}.ticket-table{min-width:1320px}

.link-request-panel{max-width:1000px}.link-request-panel h2{margin-top:28px}.image-drop{border:1px dashed #8dbbb5;border-radius:8px;padding:20px;background:#f8fbfa}.image-drop label{display:block;cursor:pointer;margin-bottom:12px}.image-drop img{display:block;max-width:100%;max-height:460px;object-fit:contain;margin-top:16px}.image-drop img[hidden]{display:none}.ticket-picture{display:block;max-width:140px;max-height:90px;object-fit:contain;margin-bottom:8px}.ticket-table{min-width:2100px}.ticket-table td{min-width:90px}.ticket-table .review-form{width:180px}.review-form input,.review-form select{margin-bottom:6px}.review-form button{padding:6px 10px}.ticket-table .customer-info{min-width:230px}

.ticket-table{min-width:1750px;font-size:12px}.ticket-table td,.ticket-table th{padding:12px 10px}.ticket-table .review-form{width:125px}.ticket-table input[name=received_usd]{width:120px}.ticket-table td:first-child{min-width:145px}.ticket-table .payment-link{max-width:170px}.ticket-table .customer-info{min-width:220px}.ticket-table .ticket-picture{max-width:110px}

.shell>main.native-quote-workspace{padding:0;height:100dvh;overflow:hidden}.native-quote-frame{border:0;width:100%;height:100%;display:block}

/* Shared menu heading and full-width link table. */
.shell>main>.heading{min-height:64px;align-items:center;margin-bottom:26px}.shell>main>.heading h1{font-size:27px;line-height:1.3;margin:4px 0 8px;font-weight:650}.shell>main>.heading .eyebrow{font-size:11px;font-weight:600;letter-spacing:2px}.back-link{display:inline-block;margin:-10px 0 20px}.customer-fields{display:grid;grid-template-columns:1fr;gap:18px}.ticket-panel{padding:20px 16px}.ticket-table-wrap{width:100%}.ticket-table{width:100%;min-width:0;table-layout:fixed;white-space:normal;font-size:12px}.ticket-table th,.ticket-table td,.ticket-table td:first-child,.ticket-table .customer-info{min-width:0;position:static;overflow-wrap:anywhere;white-space:normal;padding:12px 5px}.ticket-table th:nth-child(1){width:10%}.ticket-table th:nth-child(2){width:7%}.ticket-table th:nth-child(3){width:5%}.ticket-table th:nth-child(4){width:7%}.ticket-table th:nth-child(5){width:16%}.ticket-table th:nth-child(6){width:5%}.ticket-table th:nth-child(7){width:7%}.ticket-table th:nth-child(8){width:10%}.ticket-table th:nth-child(9){width:5%}.ticket-table th:nth-child(n+10){width:7%}.ticket-table .ticket-picture,.ticket-table .payment-link,.ticket-table .review-form,.ticket-table input[name=received_usd]{max-width:100%;width:100%;min-width:0}.ticket-table button,.ticket-table select,.ticket-table input{font-size:11px;padding:6px 3px;white-space:normal;min-width:0}.ticket-table .badge{padding:3px;white-space:normal}.ticket-panel .filter{align-items:center}.ticket-panel .filter .button{white-space:nowrap}.lead-table{table-layout:fixed;white-space:normal}.lead-table th,.lead-table td{padding:12px 6px;overflow-wrap:anywhere}.lead-table th:first-child{width:165px}.lead-table th:nth-child(2){width:120px}.lead-table input,.lead-table select{font-size:12px;padding:7px 3px;min-width:0}.lead-table td:first-child select{margin-top:6px}.lead-row-actions{margin-top:20px}[hidden]{display:none!important}

.link-statistics{display:flex;gap:40px;text-align:right}.link-statistics span{display:block;color:var(--muted);font-size:12px}.link-statistics strong{display:block;font-size:25px;font-weight:600;color:var(--green)}
.workflow-table th:nth-child(n){width:auto}.workflow-table th.customer-column{width:15%}.workflow-table th:nth-child(2){width:9%}.workflow-table td{font-size:11px}.workflow-table .ticket-picture{max-height:65px}.workflow-table td small{font-size:10px}
.link-compose-page .back-link{margin:0 0 10px}.link-compose-page .link-request-panel{max-width:none;padding:18px;margin-bottom:0}.link-compose-grid{display:grid;grid-template-columns:minmax(220px,.9fr) minmax(340px,1.1fr);gap:28px}.link-request-panel .link-compose-grid h2{margin:0 0 10px;font-size:15px}.link-compose-grid .customer-fields{gap:6px}.link-compose-grid .field{display:grid;grid-template-columns:88px minmax(0,1fr);gap:8px;align-items:center}.link-compose-grid .field label{margin:0;font-size:12px}.link-compose-grid input,.link-compose-grid select{padding:5px 8px;font-size:13px;height:32px}.link-compose-grid .errorlist{grid-column:1/-1;margin:0}.compact-payment{display:grid;gap:6px;margin-top:14px}.link-compose-grid .submit-row{margin-top:12px;text-align:right}.link-compose-grid .image-drop{padding:14px;min-height:220px;height:calc(100% - 36px);max-height:420px;display:flex;flex-direction:column;align-items:center;justify-content:center;outline:none}.image-drop.dragover,.image-drop:focus{border-color:var(--green);background:#edf7f4}.image-preview-box{position:relative;max-width:100%;min-height:0}.link-compose-grid .image-drop img{max-height:360px;margin:0;max-width:100%;object-fit:contain}.remove-image{position:absolute;right:4px;top:4px;border-radius:50%;width:26px;height:26px;padding:0;line-height:24px;background:#fff;color:#345;border:1px solid #c9d8d5;font-size:20px;box-shadow:0 1px 5px #0002}.remove-image:hover{background:#fff0ee;color:#a14131}.link-compose-grid .image-preview-box{max-height:100%}.quote-image-section{min-height:0}dialog{border:1px solid var(--line);border-radius:12px;padding:24px;width:min(540px,90vw);max-height:90vh}dialog::backdrop{background:#102f3277}dialog .panel-head{margin-bottom:8px}dialog .image-drop{min-height:150px;text-align:center;margin:14px 0}dialog .image-drop img{max-height:45vh;margin:12px auto 0}#paymentUploadError,#quoteImageError{color:#a14131;font-size:12px}.lead-table th:nth-child(2){width:auto}
@media(max-height:760px) and (min-width:901px){.link-compose-grid .image-drop img{max-height:300px}.link-compose-grid .image-drop{max-height:350px}.link-compose-page .link-request-panel{padding:14px}.link-compose-grid{gap:20px}.link-compose-grid .field input,.link-compose-grid .field select{height:29px}.link-compose-grid .customer-fields{gap:4px}}
@media(max-width:900px){.link-statistics{gap:18px}.link-compose-grid{grid-template-columns:1fr}.link-compose-grid .image-drop{height:180px;min-height:120px}.link-compose-grid .image-drop img{max-height:150px}.link-compose-grid{gap:16px}}

/* Reusable summary cards for ERP menus. */
.summary-grid{display:grid;gap:10px;padding:10px;border-radius:10px;background:#eef6f5;grid-template-columns:repeat(3,minmax(0,1fr))}
.summary-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:74px;padding:9px 16px;background:#fff;border:1px solid #d7e7e4;border-radius:7px;text-align:center}
.summary-label{font-size:12px;color:var(--muted)}.summary-value{font-size:26px;line-height:1.25;font-weight:700;color:#174d53;font-variant-numeric:tabular-nums}
.summary-inline{width:min(480px,55%)}.summary-dashboard{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:28px}
.workflow-table th,.workflow-table td{text-align:center;vertical-align:middle}
.workflow-table th.picture-column{width:78px}.workflow-table .ticket-thumbnail{display:flex;align-items:center;justify-content:center;width:64px;height:64px;margin:0 auto 5px;background:#f4f8f8;border:1px solid var(--line);border-radius:5px;overflow:hidden;cursor:zoom-in}
.workflow-table .ticket-picture{width:100%;height:100%;max-width:100%;max-height:100%;margin:0;object-fit:contain}
.workflow-table .review-form,.workflow-table .payment-link{margin-inline:auto}.workflow-table .customer-info strong,.workflow-table .customer-info small{white-space:normal;overflow-wrap:anywhere}
.image-viewer{width:min(1000px,94vw);max-width:94vw;padding:16px}.image-viewer img{display:block;max-width:100%;max-height:78vh;object-fit:contain;margin:0 auto}.image-viewer .panel-head h2{font-size:15px}.image-viewer .text-button{font-size:24px;line-height:1}
.lead-table th:first-child{width:130px}.lead-table th:nth-child(2){width:90px}.lead-table td:first-child select{margin:0}
.link-compose-grid .field{grid-template-columns:112px minmax(0,1fr)}
@media(max-height:760px) and (min-width:901px){.link-compose-page .back-link{margin-bottom:8px}.link-request-panel .link-compose-grid h2{margin-bottom:8px}.link-compose-grid .field input,.link-compose-grid .field select{height:27px;padding:3px 8px}.link-compose-grid .customer-fields,.compact-payment{gap:4px}.compact-payment{margin-top:10px}.link-compose-grid .submit-row{margin-top:8px}.link-compose-grid .submit-row button{padding:6px 17px}}
@media(max-width:650px){.heading{flex-wrap:wrap}.summary-inline{width:100%}.summary-card{padding:8px;min-height:68px}.summary-value{font-size:24px}.summary-dashboard{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Payment-link composer: quotation, shipping and resource information. */
.link-three-columns{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:stretch}
.link-three-columns>section{min-width:0}.link-three-columns .field{grid-template-columns:96px minmax(0,1fr)}
.link-three-columns .shipping-section .field{grid-template-columns:90px minmax(0,1fr)}
.link-three-columns .customer-fields{gap:10px}.link-three-columns .image-drop{height:calc(100% - 35px);min-height:280px;max-height:none}
.link-three-columns .image-drop img{max-height:320px;width:100%}.link-three-columns .shipping-section,.link-three-columns .resource-section{padding-left:24px;border-left:1px solid var(--line)}
.link-three-columns{grid-template-columns:minmax(260px,1.02fr) minmax(310px,1fr) minmax(350px,1.18fr);gap:18px}.link-shipping-items ul{margin:4px 0;padding-left:18px}.link-shipping-items li{font-size:12px;padding:2px 0}
.link-confirmation{display:flex;align-items:center;gap:8px;min-width:0}.link-confirmation>input:not([type=checkbox]){flex:1;min-width:0}.link-confirmation label{display:flex!important;align-items:center;gap:5px;white-space:nowrap;font-size:11px!important}.link-confirmation input[type=checkbox]{width:15px;height:15px;margin:0;accent-color:var(--green)}.link-shipping-items table{width:100%;border-collapse:collapse}.link-shipping-items th,.link-shipping-items td{padding:3px 6px;text-align:left;border-bottom:1px solid var(--line)}
.link-request-panel .link-three-columns h2{margin:0 0 16px}
.link-payment-bar{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:24px;align-items:start;border-top:1px solid var(--line);padding-top:18px;margin-top:22px}
.link-payment-bar .field{display:grid;grid-template-columns:90px minmax(0,1fr);align-items:center;gap:8px}.link-payment-bar .field label{margin:0}.link-payment-bar input,.link-payment-bar select{height:36px;font-size:13px;padding:5px 8px}.link-payment-bar button{height:36px;padding:5px 22px}.link-payment-bar .errorlist{grid-column:1/-1;margin:0}
@media(max-width:1400px) and (min-width:901px){.link-three-columns{gap:16px}.link-three-columns .shipping-section,.link-three-columns .resource-section{padding-left:16px}.link-three-columns .resource-section .field{grid-template-columns:88px minmax(0,1fr)}.link-three-columns input,.link-three-columns select{padding-inline:5px}}
@media(max-height:760px) and (min-width:901px){.link-three-columns .customer-fields{gap:8px}.link-three-columns .field input,.link-three-columns .field select{height:30px}.link-three-columns .image-drop{min-height:280px;max-height:none}.link-request-panel .link-three-columns h2{margin-bottom:12px}.link-payment-bar{margin-top:18px;padding-top:16px}}
@media(max-width:900px){.link-three-columns{grid-template-columns:1fr}.link-three-columns .shipping-section,.link-three-columns .resource-section{border-left:0;border-top:1px solid var(--line);padding:16px 0 0}.link-three-columns .shipping-section .field,.link-three-columns .resource-section .field{grid-template-columns:96px minmax(0,1fr)}.link-three-columns .image-drop{height:180px;min-height:180px}.link-three-columns .image-drop img{max-height:150px}.link-payment-bar{grid-template-columns:1fr;gap:12px}.link-payment-bar button{justify-self:end}}

.link-compose-actions{display:flex;justify-content:flex-end;margin-top:18px}.link-compose-actions button{height:36px;padding:5px 22px}
/* Spreadsheet-style order ledger. */
.shell>main.ledger-workspace{height:100dvh;min-height:500px;display:flex;flex-direction:column;padding:26px 28px 20px;overflow:hidden}
.ledger-summary{grid-template-columns:130px 220px;padding:7px;gap:7px}.ledger-summary .summary-card{min-height:64px;padding:6px 12px}.ledger-summary .summary-value{font-size:24px}
.ledger-panel{display:flex;flex-direction:column;flex:1;min-height:0;background:#fff;border:1px solid #dce5e6;border-radius:9px;overflow:hidden}
.ledger-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px}.ledger-toolbar .filter{margin:0;align-items:center;min-width:0;flex:1}.ledger-toolbar .filter input:not([type=hidden]){max-width:340px;width:100%}.ledger-toolbar button,.ledger-toolbar .button{white-space:nowrap;font-size:12px;padding:7px 13px}
.ledger-sections{display:flex;gap:4px;align-items:center;padding:0 18px 12px;flex:none}.ledger-sections>button{background:transparent;color:#607980;border:1px solid transparent;border-radius:5px;font-size:12px;padding:5px 12px;white-space:nowrap}.ledger-sections>button:hover{background:#f1f7f6}.ledger-sections>button.active{color:#106f65;background:#eaf5f2;border-color:#d1e7e1}#ledgerStatus{margin-left:auto;font-size:12px;color:#13776a;white-space:normal}
.ledger-scroll{overflow:auto;flex:1;min-height:120px;width:100%;position:relative;border-top:1px solid #dce5e6;scrollbar-color:#a6bbb8 #f0f5f4;scrollbar-width:auto;background:repeating-linear-gradient(to bottom,#fff 0,#fff 71px,#edf1f1 71px,#edf1f1 72px)}
.ledger-table{border-collapse:separate;border-spacing:0;table-layout:fixed;font-size:12px;line-height:1.45;white-space:normal}
.ledger-table th,.ledger-table td{text-align:center;vertical-align:middle;padding:5px 7px;border-right:1px solid #e3e9e9;border-bottom:1px solid #e3e9e9;overflow-wrap:anywhere}
.ledger-table th{position:sticky;top:0;z-index:3;height:44px;background:#f2f6f6;color:#48626a;font-size:11px;font-weight:600;border-top:3px solid #72aeb0;white-space:nowrap}
.ledger-table th.group-base{border-top-color:#438d89}.ledger-table th.group-customer{border-top-color:#7aa0c5}.ledger-table th.group-payment{border-top-color:#b7a271}.ledger-table th.group-factory{border-top-color:#8b9db9}.ledger-table th.group-logistics{border-top-color:#77a68c}.ledger-table th.group-settlement,.ledger-table th.group-profit{border-top-color:#b79cc5}
.ledger-table td{background:#fff;height:72px}.ledger-table tbody tr:nth-child(even) td{background:#f9fbfb}.ledger-table tbody tr:hover td{background:#f0f8f5}
.ledger-table .ledger-fixed{position:sticky;z-index:2}.ledger-table .fixed-1{left:0}.ledger-table .fixed-2{left:116px;box-shadow:3px 0 5px #153b3210;border-right-color:#bdcfcc}.ledger-table th.ledger-fixed{z-index:5;background:#edf4f3}
.ledger-table .ledger-cell-button,.ledger-cell-text{display:block;width:100%;border:0;background:transparent;color:#24444f;padding:3px 2px;font-size:12px;text-align:center;white-space:pre-line;border-radius:3px;line-height:1.5;max-height:61px;overflow:hidden}
.ledger-table .ledger-cell-button:hover,.ledger-table .ledger-cell-button:focus-visible{background:#e1f0eb;outline:1px solid #a0c8bc;color:#12675c}.ledger-table .kind-select .ledger-cell-button{background:#edf2f2;font-size:11px;padding:4px 12px 4px 4px;position:relative}.ledger-table .kind-select .ledger-cell-button:after{content:'⌄';position:absolute;right:3px;color:#7c9698}.ledger-table .kind-address .ledger-cell-button,.ledger-table .kind-products .ledger-cell-button,.ledger-table .kind-address .ledger-cell-text,.ledger-table .kind-products .ledger-cell-text{font-size:11px;max-height:100px}.ledger-table .kind-address{height:112px}.ledger-table .kind-money{font-variant-numeric:tabular-nums}.ledger-table .kind-checkbox input{accent-color:#14796d;width:14px;height:14px;padding:0;margin:0;vertical-align:middle;cursor:pointer}.ledger-table .kind-checkbox input:disabled{cursor:default;opacity:.75}
.ledger-thumbnail{width:56px;height:56px;display:flex;align-items:center;justify-content:center;margin:auto;border:1px solid #dbe6e5;border-radius:4px;background:#f5f9f8;overflow:hidden;cursor:zoom-in}.ledger-thumbnail img{width:100%;height:100%;object-fit:contain}.ledger-table .kind-image{position:relative}.ledger-image-change{display:none;position:absolute;bottom:0;right:0;padding:1px 4px;border-radius:3px;font-size:10px;background:#176e65e6}.kind-image:hover .ledger-image-change,.kind-image:focus-within .ledger-image-change{display:block}.ledger-image-empty{width:28px;height:28px;border:1px dashed #cadbd7;color:#92aaa5;background:#f8fbfa;padding:0;border-radius:4px}.ledger-image-empty:hover{border-color:#14796d;color:#14796d}.ledger-empty{color:#a3b4b6}
.ledger-footer{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#7a8e93;padding:9px 16px;border-top:1px solid #dce5e6;flex:none;background:#fafcfc}.ledger-editor-field{display:block;margin:12px 0}.ledger-editor-field>span{display:block;color:#658087;font-size:12px;margin-bottom:5px}.ledger-editor-field textarea{resize:vertical}.ledger-dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}#ledgerEditError{color:#b24639;font-size:12px}.ledger-upload-zone{border:1px dashed #abc9c1;background:#f5faf8;border-radius:6px;padding:32px 10px;text-align:center;color:#587f77}.ledger-upload-preview{display:block;max-height:230px;max-width:100%;margin:auto}
@media(max-width:1100px){.shell>main.ledger-workspace{padding:20px 18px}.ledger-summary{grid-template-columns:100px 170px}.ledger-sections{gap:0;padding-inline:10px;flex-wrap:wrap}.ledger-sections>button{padding-inline:8px}.ledger-toolbar{padding:12px}.ledger-toolbar .filter input:not([type=hidden]){max-width:250px}}
@media(max-width:650px){.shell>main.ledger-workspace{height:calc(100dvh - 145px);min-height:600px}.ledger-summary{width:100%;grid-template-columns:1fr 1.5fr}.ledger-toolbar{flex-wrap:wrap}.ledger-toolbar .filter input:not([type=hidden]){max-width:none}}
.ledger-table .kind-address{height:72px}.ledger-table .kind-address .ledger-cell-button,.ledger-table .kind-products .ledger-cell-button,.ledger-table .kind-address .ledger-cell-text,.ledger-table .kind-products .ledger-cell-text{max-height:60px}.ledger-inline-input{width:100%;padding:5px 3px;font-size:12px;border:1px solid #76ac9f;min-width:0;height:32px;text-align:center}.ledger-table th[data-column=number]{font-weight:650}
.ledger-table tr.is-saving{pointer-events:none;opacity:.65}


/* One compact title row for every ERP page; embedded software keeps its full canvas. */
:root{--page-title-height:54px;--page-title-gap:14px;--page-inset-top:12px;--page-inset-inline:20px}
.shell>main:not(.native-quote-workspace):not(.quote-workspace){padding:var(--page-inset-top) var(--page-inset-inline) 20px}
.shell>main>.heading{height:var(--page-title-height);min-height:var(--page-title-height);max-height:var(--page-title-height);flex:0 0 var(--page-title-height);display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:16px;margin:0 0 var(--page-title-gap)}
.shell>main>.heading>div:first-child:not(.summary-grid){min-width:0}
.shell>main>.heading .eyebrow{font-size:11px;line-height:14px;letter-spacing:2px;font-weight:600;white-space:nowrap}
.shell>main>.heading h1{font-size:27px;line-height:1.2;font-weight:650;letter-spacing:-.6px;margin:3px 0 0;white-space:nowrap}
.shell>main>.heading>.summary-grid{height:100%;min-height:0;max-height:100%;padding:4px;gap:6px;margin:0;align-items:stretch;flex-shrink:0;border-radius:8px;width:min(480px,55%)}
.shell>main>.heading>.ledger-summary{width:min(360px,48%);grid-template-columns:minmax(90px,1fr) minmax(0,1.65fr)}
.shell>main>.heading .summary-card{height:100%;min-height:0;min-width:0;padding:3px 10px;gap:1px;border-radius:5px}
.shell>main>.heading .summary-label{font-size:11px;line-height:14px;white-space:nowrap}
.shell>main>.heading .summary-value{font-size:22px;line-height:24px;white-space:nowrap;max-width:100%;font-variant-numeric:tabular-nums}
.shell>main>.heading>.button,.shell>main>.heading>button{padding:7px 13px;font-size:12px;white-space:nowrap;flex-shrink:0}
.shell>main>.heading>.actions{flex-wrap:nowrap;max-height:100%}
@media(max-width:650px){
 :root{--page-inset-inline:12px}
 .shell>main>.heading{gap:8px}
 .shell>main>.heading .eyebrow{font-size:9px;letter-spacing:1px;line-height:14px}
 .shell>main>.heading h1{font-size:24px;line-height:1.25}
 .shell>main>.heading>.summary-grid{width:55%;padding:3px;gap:3px}
 .shell>main>.heading .summary-card{padding:2px 3px}
 .shell>main>.heading .summary-label{font-size:9px;line-height:13px}
 .shell>main>.heading .summary-value{font-size:16px;line-height:22px}
 .shell>main>.heading>.ledger-summary{grid-template-columns:minmax(0,1fr) minmax(0,1.65fr)}
}
.queue-badge{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 5px;margin-left:6px;border-radius:10px;background:#f9d881;color:#193d42;font-size:11px;font-weight:700}.queue-badge[hidden],.queue-toast[hidden]{display:none}.queue-toast{position:fixed;right:20px;bottom:20px;z-index:80;max-width:340px;padding:16px 20px;border:1px solid #c4dedb;border-radius:10px;background:white;box-shadow:0 8px 28px #12353325;font-size:13px}.queue-toast strong{display:block;margin-right:24px}.queue-toast>a{display:block;margin-top:9px}.queue-toast>button{position:absolute;right:10px;top:8px;font-size:20px}.workflow-table button:disabled,[data-claim-form] button:disabled,[data-reply-form] button:disabled{opacity:.5;cursor:not-allowed}.workflow-table [data-maker-cell]>span{display:block;margin-bottom:5px}
.finance-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.finance-toolbar>span:first-child{font-weight:700}.finance-table{table-layout:fixed;width:100%;min-width:800px}.finance-table th,.finance-table td{text-align:center;vertical-align:middle;overflow-wrap:anywhere;padding:14px 10px}.finance-table input,.finance-table select{width:100%;min-width:0;padding:8px 6px;font-size:13px}.finance-table tbody td{border-right:1px solid #edf2f2}.finance-table tbody td:last-child{border-right:0}.finance-direction{display:inline-block;border-radius:5px;padding:4px 9px;font-size:12px}.finance-direction.income{background:#e9f5ef;color:#1a7659}.finance-direction.expense{background:#fff0ec;color:#a75337}.finance-note{white-space:pre-wrap}.finance-edit{display:inline-block;margin-top:6px;font-size:12px}.finance-add-row td{text-align:left!important;padding:16px 10px!important}.finance-editor{background:#f6faf9}.finance-editor-actions{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:8px}.finance-editor-actions button{padding:7px 14px}.finance-table tfoot{background:#eef7f6}.finance-table tfoot th{font-size:16px}.finance-table tfoot td{border-left:1px solid #d8e7e5}.finance-table tfoot span{display:block;font-size:12px;color:#718893}.finance-table tfoot strong{display:block;margin-top:5px;font-size:20px;line-height:1.4;color:#155b6a;font-variant-numeric:tabular-nums}.finance-help{margin:14px 0 0;color:#78909b;font-size:12px}.finance-table .errorlist{padding-left:0;list-style:none;text-align:left;font-size:12px}.finance-editor:target{scroll-margin-top:12px}.finance-table .finance-editor input[type=date]{min-width:118px}@media(max-width:900px){.finance-toolbar{align-items:flex-start;flex-direction:column}.finance-table tfoot strong{font-size:18px}}
.registration-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:18px;text-align:left}.finance-add-row .registration-actions{margin-top:0}.registration-status{font-size:12px;color:#6e8790}.registration-status[data-state=saved]{color:#147b68}.registration-status[data-state=error],.registration-error{color:#b4493b}.registration-error{font-size:12px;margin:10px 0 0}.registration-error:empty{display:none}.registration-editor{background:#f5faf9}.registration-editor input:focus,.registration-editor select:focus{outline:2px solid #80bcb2;outline-offset:1px}.registration-editor [aria-invalid=true]{border-color:#bd5140}.registration-actions .text-button{font-size:12px;padding:6px 0}.registration-actions .text-button:disabled{opacity:.45;cursor:wait}.registration-editor:target{scroll-margin-top:12px}
.link-confirmation>select{flex:1;min-width:0}
.link-shipping-items{align-items:start!important}.link-shipping-items input{width:100%;min-width:0}
.link-shipping-items .shipment-quantity{display:flex;gap:5px;align-items:center}.shipment-quantity input{width:70px}.shipment-quantity button{padding:4px 8px;background:transparent;color:#6e8581}

.logistics-country-buttons{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.logistics-country-add{background:#137e70!important;color:white!important;margin:0!important}.logistics-country-item{position:relative;display:inline-flex}.logistics-country-remove{position:absolute;right:-7px;top:-7px;width:16px;height:16px;padding:0!important;font-size:12px;border-radius:50%}
