#invoicePrintArea .ci-goods th:nth-child(1){width:9mm}#invoicePrintArea .ci-goods th:nth-child(2){width:20mm;text-align:center}#invoicePrintArea .ci-goods th:nth-child(3){width:auto;text-align:left}#invoicePrintArea .ci-goods th:nth-child(4){width:18mm;text-align:center}#invoicePrintArea .ci-goods th:nth-child(5){width:25mm;text-align:right}#invoicePrintArea .ci-goods th:nth-child(6){width:27mm;text-align:right}#invoicePrintArea .ci-goods td:nth-child(2),#invoicePrintArea .ci-goods td:nth-child(4){text-align:center}#invoicePrintArea .ci-goods td:nth-child(3){text-align:left}#invoicePrintArea .ci-goods td:nth-child(5),#invoicePrintArea .ci-goods td:nth-child(6){text-align:right}

/* V2.5.2: responsive SOP workspace and immediate loading feedback. */
.leader-detail-loading,.sop-loading{display:flex;min-height:150px;align-items:center;justify-content:center;gap:10px;color:#718096;background:#f8fafc;border:1px dashed #dce4ee;border-radius:12px;font-size:12px}.leader-detail-loading i,.sop-loading i{width:17px;height:17px;border:2px solid #cfdaea;border-top-color:#2563eb;border-radius:50%;animation:v252-spin .7s linear infinite}@keyframes v252-spin{to{transform:rotate(360deg)}}
#view-sop>.sop-workflow-actions{min-height:42px;margin:0 0 14px}.sop-quick-category{display:flex;align-items:center;gap:8px;margin-right:auto;padding:7px;background:#fff;border:1px solid #dce4ee;border-radius:11px;box-shadow:0 5px 16px rgba(20,31,50,.05)}.sop-quick-category.hidden{display:none!important}.sop-quick-category input{width:240px;padding:8px 10px}.sop-quick-category .btn{padding:8px 12px}
.sop-category{border-radius:15px}.sop-category-head{display:grid;grid-template-columns:minmax(0,1fr) auto 34px;align-items:center;gap:14px;padding:14px 16px;background:linear-gradient(180deg,#fff 0%,#f8fbff 100%)}.sop-category-identity{display:flex;align-items:center;min-width:0;gap:11px}.sop-category-identity h3{overflow:hidden;margin:0;color:#1e3553;font-size:15px;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}.sop-category-identity small{display:block;margin-top:4px;color:#8491a2;font-size:10px}.sop-module-grip,.sop-item-grip{display:grid;flex:0 0 auto;place-items:center;border:1px solid #d9e3ef;background:#f1f5fa;color:#6e8199;border-radius:9px;cursor:grab;user-select:none}.sop-module-grip{width:34px;height:34px}.sop-item-grip{width:27px;height:32px}.sop-module-grip:active,.sop-item-grip:active{cursor:grabbing;background:#e3edfa}.sop-module-grip span,.sop-item-grip span{font-size:18px;line-height:1;transform:rotate(90deg)}.sop-category.dragging{opacity:.58;outline:2px dashed #4d8be5;outline-offset:2px}.sop-category-actions{justify-content:flex-end;flex-wrap:wrap}.sop-category-actions button{padding:6px 9px;background:#fff}.sop-collapse{align-self:center;transition:transform .16s}.sop-category.collapsed .sop-collapse{transform:rotate(-90deg)}
.sop-item-card{display:grid;grid-template-columns:28px minmax(320px,1.6fr) minmax(250px,.8fr) 116px;align-items:start;gap:14px;padding:17px 16px}.sop-item-main{grid-column:2;min-width:0;padding:2px 2px 0}.sop-item-main h4{margin:0 0 8px;color:#20344e;font-size:13.5px}.sop-item-main p{margin:0;color:#53647a;line-height:1.78;font-size:11px}.sop-item-main>small{display:block;margin-top:9px;padding-top:8px;color:#748196;border-top:1px dashed #dfe6ee;font-size:10px}.sop-reference-panel{grid-column:3;min-width:0;padding:11px 12px;background:#f7faff;border:1px solid #dfe8f3;border-radius:11px}.sop-reference-title{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.sop-reference-title>span{color:#405b7c;font-size:10.5px;font-weight:850}.sop-reference-title>small{color:#8796aa;font-size:9px}.sop-attachments{display:grid;margin:0;gap:6px}.sop-attachments>span{display:grid;grid-template-columns:minmax(0,1fr) 24px;align-items:center;gap:5px;padding:0;background:transparent;border:0}.sop-attachments>span a{display:grid;grid-template-columns:27px minmax(0,1fr) auto;align-items:center;gap:7px;min-width:0;padding:7px 8px;color:#245da8;background:#fff;border:1px solid #d8e5f4;border-radius:8px;text-decoration:none}.sop-attachments>span a i{display:grid;width:25px;height:25px;place-items:center;color:#fff;background:#3977d2;border-radius:6px;font-size:7px;font-style:normal;font-weight:900}.sop-attachments>span a b{overflow:hidden;font-size:9.5px;text-overflow:ellipsis;white-space:nowrap}.sop-attachments>span a small{color:#8997a9;font-size:8px;white-space:nowrap}.sop-attachments>span>button{display:grid;width:23px;height:23px;place-items:center;padding:0;color:#cc4650;background:#fff;border:1px solid #f0d8db;border-radius:7px}.sop-no-file{display:block;padding:8px 0;color:#9aa7b7;text-align:center;font-size:9.5px}.sop-item-actions{grid-column:4;display:grid;align-content:start;justify-items:stretch;gap:7px}.sop-item-actions button{width:100%;padding:6px 8px}.sop-empty-category{display:flex;min-height:84px;align-items:center;justify-content:center;gap:12px;color:#8a97a8;background:#fbfcfe;font-size:11px}.sop-empty-category button{padding:7px 10px;color:#2563eb;background:#fff;border:1px solid #d8e4f3;border-radius:8px}

/* V2.5.2: document typography and bounded company logos. */
#quotePrintArea,#quotePrintArea *,#invoicePrintArea,#invoicePrintArea *{font-family:"Times New Roman",Times,serif}.qa-logo.image{display:flex;flex:0 0 32mm;width:32mm;height:16mm;align-items:center;justify-content:center;overflow:hidden;color:inherit;background:transparent;border:0;border-radius:0;letter-spacing:0}.qa-logo.image img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:left center}.ci-logo.image{display:flex;overflow:hidden;align-items:center;justify-content:center;background:transparent;border:0;border-radius:0}.ci-logo.image img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}.qa-brand{min-width:0}.qa-brand>div:last-child{min-width:0}.qa-brand>div:last-child strong,.qa-brand>div:last-child span{overflow-wrap:anywhere}

@media(max-width:1250px){.sop-item-card{grid-template-columns:28px minmax(260px,1fr) minmax(220px,.75fr)}.sop-item-actions{grid-column:2/-1;display:flex;justify-content:flex-end}.sop-item-actions button{width:auto}.sop-category-head{grid-template-columns:minmax(0,1fr) auto 34px}}
@media(max-width:850px){.sop-category-head{grid-template-columns:1fr 34px}.sop-category-actions{grid-column:1/-1;justify-content:flex-start}.sop-item-card{grid-template-columns:28px minmax(0,1fr)}.sop-reference-panel,.sop-item-actions{grid-column:2}.sop-item-actions{justify-content:flex-start}.sop-quick-category{flex-wrap:wrap}.sop-quick-category input{width:100%}}

/* CRM V2.6.0-r4.2 COMPACT SOP */
#view-tool-sop .sop-board{display:grid;gap:12px}
#view-tool-sop .sop-category{height:auto!important;min-height:0!important;border-radius:14px}
#view-tool-sop .sop-category-head{display:grid!important;grid-template-columns:minmax(260px,1fr) auto 34px!important;align-items:center!important;gap:12px!important;height:auto!important;min-height:72px!important;padding:12px 16px!important}
#view-tool-sop .sop-category.collapsed .sop-category-head{height:auto!important;min-height:72px!important;padding:12px 16px!important;border-bottom:0}
#view-tool-sop .sop-category-identity{display:flex;align-items:center;gap:11px;min-width:0}
#view-tool-sop .sop-category-identity h3{margin:0;font-size:15px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#view-tool-sop .sop-category-identity small{display:block;margin-top:4px;font-size:10px;line-height:1.3}
#view-tool-sop .sop-category-toolbar{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0}
#view-tool-sop .sop-category-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:nowrap}
#view-tool-sop .sop-category-actions button{width:auto!important;min-width:0;padding:6px 9px;white-space:nowrap}
#view-tool-sop .sop-category-status{width:auto!important;min-width:62px;padding:6px 11px!important;border-radius:999px!important;white-space:nowrap;font-weight:700}
#view-tool-sop .sop-collapse{align-self:center!important;margin:0!important}
#view-tool-sop .sop-category.collapsed .sop-category-items{display:none!important}
#view-tool-sop .sop-category-items{height:auto!important;min-height:0!important}
@media(max-width:980px){#view-tool-sop .sop-category-head{grid-template-columns:minmax(220px,1fr) 34px!important}#view-tool-sop .sop-category-toolbar{grid-column:1/-1;justify-content:flex-start;flex-wrap:wrap}#view-tool-sop .sop-category-actions{flex-wrap:wrap;justify-content:flex-start}}
