.project-template-body .y-project-hero{grid-template-columns:1fr 1.7fr 1fr 1fr .8fr}
.project-template-body .y-project-quick-btn{min-height:32px;padding:0 10px;font-size:11px}
.project-template-body .y-project-meta-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;margin:-4px 0 14px;padding:12px 14px;border:1px solid #dce7f3;border-radius:11px;background:#fff;box-shadow:0 5px 14px rgba(36,78,126,.04)}
.project-template-body .y-project-meta-strip>div{min-width:0;padding:1px 14px;border-right:1px solid #e8eef5}
.project-template-body .y-project-meta-strip>div:last-child{border-right:0}
.project-template-body .y-project-meta-strip span{display:block;margin-bottom:6px;color:#8192a5;font-size:10px;font-weight:700}
.project-template-body .y-project-meta-strip b{display:block;overflow:hidden;color:#294766;font-size:12px;text-overflow:ellipsis;white-space:nowrap}
.project-template-body .y-project-meta-strip .y-project-status{font-size:10px}
.project-template-body .y-project-simple-overview{display:grid;gap:14px}
.project-template-body .y-project-simple-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.project-template-body .y-project-simple-metric{min-width:0;padding:15px 16px;border:1px solid #e2eaf3;border-radius:10px;background:#fff}
.project-template-body .y-project-simple-kpis .y-project-simple-metric{min-height:78px}
.project-template-body .y-project-simple-metric>span{display:block;color:#7d90a8;font-size:11px;font-weight:700}
.project-template-body .y-project-simple-metric>b{display:block;margin-top:8px;overflow:hidden;color:#19395e;font-size:18px;line-height:1.15;text-overflow:ellipsis;white-space:nowrap}
.project-template-body .y-project-simple-metric>small{display:block;margin-top:6px;overflow:hidden;color:#91a0b1;font-size:10px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}
.project-template-body .y-project-simple-kpis .y-project-simple-metric{border-top:3px solid #dce7f4}
.project-template-body .y-project-simple-kpis .y-project-simple-metric.blue{border-top-color:#2f73f5;background:#f8fbff}
.project-template-body .y-project-simple-kpis .y-project-simple-metric.green{border-top-color:#20b486;background:#f7fcfa}
.project-template-body .y-project-simple-kpis .y-project-simple-metric.orange{border-top-color:#efa32e;background:#fffaf2}
.project-template-body .y-project-simple-kpis .y-project-simple-metric.purple{border-top-color:#8764e8;background:#fbfaff}
.project-template-body .y-project-simple-kpis .y-project-simple-metric.green>b{color:#16815b}
.project-template-body .y-project-simple-kpis .y-project-simple-metric.orange>b{color:#b56d0e}
.project-template-body .y-project-simple-kpis .y-project-simple-metric.purple>b{color:#7257ca}
.project-template-body .y-project-simple-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:14px}
.project-template-body .y-project-simple-grid-secondary{grid-template-columns:repeat(2,minmax(0,1fr))}
.project-template-body .y-project-simple-panel{min-width:0;padding:17px 18px}
.project-template-body .y-project-simple-panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}
.project-template-body .y-project-simple-panel-head h2{margin:0;color:#243c5b;font-size:15px}
.project-template-body .y-project-simple-panel-head span{color:#8a9aae;font-size:10px}
.project-template-body .y-project-simple-panel-head .y-project-status{color:inherit;font-size:10px}
.project-template-body .y-project-simple-progress-list{display:grid;gap:13px}
.project-template-body .y-project-simple-progress{padding-bottom:11px;border-bottom:1px solid #edf1f5}
.project-template-body .y-project-simple-progress:last-child{padding-bottom:0;border-bottom:0}
.project-template-body .y-project-simple-progress-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:7px}
.project-template-body .y-project-simple-progress-head span{color:#6d819a;font-size:11px}
.project-template-body .y-project-simple-progress-head b{color:#294766;font-size:11px}
.project-template-body .y-project-simple-progress-line{display:flex;align-items:center;gap:10px}
.project-template-body .y-project-simple-progress-line .y-sales-progress-track{flex:1;width:auto;height:7px;background:#e8eef5;border-radius:99px;overflow:hidden}
.project-template-body .y-project-simple-progress-line .y-sales-progress-track i{display:block;height:100%;background:linear-gradient(90deg,#2871f5,#20b986);border-radius:inherit}
.project-template-body .y-project-simple-progress.orange .y-sales-progress-track i{background:#efa32e}
.project-template-body .y-project-simple-progress-line small{min-width:155px;color:#8a9aae;font-size:10px;text-align:right;white-space:nowrap}
.project-template-body .y-project-simple-delivery{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:1px}
.project-template-body .y-project-simple-delivery>div{display:flex;align-items:center;gap:9px}
.project-template-body .y-project-simple-delivery>div>span{color:#6d819a;font-size:11px}
.project-template-body .y-project-simple-delivery small{color:#8a9aae;font-size:10px;text-align:right;white-space:nowrap}
.project-template-body .y-project-simple-info-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 22px;margin:0}
.project-template-body .y-project-simple-info-list>div{display:grid;grid-template-columns:62px minmax(0,1fr);gap:8px;padding:11px 0;border-bottom:1px solid #edf1f5;font-size:11px}
.project-template-body .y-project-simple-info-list dt{color:#8998aa}
.project-template-body .y-project-simple-info-list dd{margin:0;overflow:hidden;color:#304a68;font-weight:700;text-overflow:ellipsis;white-space:nowrap}
.project-template-body .y-project-simple-mini-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.project-template-body .y-project-simple-grid-secondary .y-project-simple-metric{padding:12px 11px;background:#fbfcfe}
.project-template-body .y-project-simple-grid-secondary .y-project-simple-metric>b{font-size:15px}
.project-template-body .y-project-simple-metric.red>b{color:#c23d48}
.project-template-body .y-project-simple-metric.orange>b{color:#b56d0e}
.project-template-body .y-project-simple-alert-dot{display:block;width:8px!important;height:8px;border-radius:50%;background:#20b486;box-shadow:0 0 0 4px #20b4861e}
.project-template-body .y-project-simple-alert-dot.warning{background:#efa32e;box-shadow:0 0 0 4px #efa32e1e}
.project-template-body .y-project-simple-alert-dot.danger{background:#d85c64;box-shadow:0 0 0 4px #d85c641e}
.project-template-body .y-project-simple-stage{padding:17px 18px}
.project-template-body .y-project-simple-stage-line{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));position:relative;padding:0 8px}
.project-template-body .y-project-simple-stage-line:before{content:"";position:absolute;top:8px;right:12%;left:12%;height:2px;background:#dce6f0}
.project-template-body .y-project-simple-stage-item{position:relative;z-index:1;display:grid;justify-items:center;gap:7px;color:#93a1b2;font-size:10px}
.project-template-body .y-project-simple-stage-item i{width:16px;height:16px;border:4px solid #eef3f7;border-radius:50%;background:#d3dfeb}
.project-template-body .y-project-simple-stage-item.done i{background:#20b486}
.project-template-body .y-project-simple-stage-item.current{color:#315575;font-weight:800}
.project-template-body .y-project-simple-stage-item.current i{background:#246bfd;box-shadow:0 0 0 4px #246bfd1e}
.project-template-body .y-project-business-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.project-template-body .y-project-business-card{min-width:0;padding:16px 17px;border-top:3px solid #dce7f4}
.project-template-body .y-project-business-card.sales{border-top-color:#2f73f5;background:#f8fbff}
.project-template-body .y-project-business-card.procurement{border-top-color:#efa32e;background:#fffaf2}
.project-template-body .y-project-business-card.profit{border-top-color:#8764e8;background:#fbfaff}
.project-template-body .y-project-business-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.project-template-body .y-project-business-head span{display:block;color:#7187a2;font-size:11px;font-weight:700}
.project-template-body .y-project-business-head b{display:block;margin-top:4px;color:#9aa8b8;font-size:10px;font-weight:500}
.project-template-body .y-project-business-head i{display:grid;place-items:center;width:27px;height:27px;color:#276ded;background:#e8f1ff;border-radius:8px;font-size:14px;font-style:normal;font-weight:800}
.project-template-body .y-project-business-card.procurement .y-project-business-head i{color:#dc8616;background:#fff0d9}
.project-template-body .y-project-business-card.profit .y-project-business-head i{color:#7657d0;background:#f0eaff}
.project-template-body .y-project-business-total{display:block;margin:10px 0 12px;color:#17375e;font-size:20px;line-height:1.1;white-space:nowrap}
.project-template-body .y-project-business-card.procurement .y-project-business-total{color:#ad680a}
.project-template-body .y-project-business-card.profit .y-project-business-total{color:#7154c7}
.project-template-body .y-project-business-lines{display:grid;gap:7px;padding-top:10px;border-top:1px solid #e4ebf3}
.project-template-body .y-project-business-line{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#7b8ea5;font-size:10px}
.project-template-body .y-project-business-line b{overflow:hidden;color:#304b6b;font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.project-template-body .y-project-business-line b.success{color:#16815b}.project-template-body .y-project-business-line b.warning{color:#b56d0e}.project-template-body .y-project-business-line b.info{color:#286bd7}.project-template-body .y-project-business-line b.muted{color:#71839a;font-size:10px}
.project-template-body .y-project-execution-grid{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);gap:14px}
.project-template-body .y-project-risk-card{min-width:0;padding:17px 18px;border-top:3px solid #efa32e}
.project-template-body .y-project-risk-list{display:grid;gap:8px}
.project-template-body .y-project-risk-item{display:flex;align-items:flex-start;gap:9px;padding:9px 10px;border:1px solid #f0d9a5;border-radius:8px;background:#fffaf0}
.project-template-body .y-project-risk-item.danger{border-color:#f1c7cb;background:#fff5f5}.project-template-body .y-project-risk-item.success{border-color:#c7ead8;background:#f3fcf7}
.project-template-body .y-project-risk-mark{display:grid;place-items:center;flex:0 0 18px;width:18px;height:18px;color:#fff;background:#efa32e;border-radius:50%;font-size:11px;font-weight:900}.project-template-body .y-project-risk-item.danger .y-project-risk-mark{background:#d85c64}.project-template-body .y-project-risk-item.success .y-project-risk-mark{background:#20b486}
.project-template-body .y-project-risk-main{min-width:0;display:grid;gap:4px;flex:1}.project-template-body .y-project-risk-main>b{overflow:hidden;color:#8d5e13;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.project-template-body .y-project-risk-item.danger .y-project-risk-main>b{color:#b44750}.project-template-body .y-project-risk-main span{overflow:hidden;color:#8495a7;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.project-template-body .y-project-risk-main em{display:inline-block;width:25px;color:#a4afbc;font-style:normal}.project-template-body .y-project-risk-type{flex:0 0 auto;padding:3px 6px;color:#9a6c1e;background:#fff0d0;border-radius:5px;font-size:9px}.project-template-body .y-project-risk-item.danger .y-project-risk-type{color:#ad4d56;background:#ffe2e4}
.project-template-body .y-project-risk-empty{display:grid;justify-items:center;gap:6px;padding:22px;color:#16815b;background:#f3fcf7;border:1px solid #c7ead8;border-radius:8px}.project-template-body .y-project-risk-empty span{font-size:20px}.project-template-body .y-project-risk-empty b{font-size:12px}.project-template-body .y-project-risk-empty small{color:#7e9a8c;font-size:10px}
.project-template-body .y-project-timeline-card{padding:17px 18px}
.project-template-body .y-project-timeline-scroll{overflow-x:auto;padding:4px 0 8px;scrollbar-color:#a5b9d0 #edf2f7;scrollbar-width:thin}.project-template-body .y-project-timeline-scroll::-webkit-scrollbar{height:8px}.project-template-body .y-project-timeline-scroll::-webkit-scrollbar-track{background:#edf2f7;border-radius:8px}.project-template-body .y-project-timeline-scroll::-webkit-scrollbar-thumb{background:#a5b9d0;border-radius:8px}
.project-template-body .y-project-timeline{display:grid;grid-template-columns:repeat(9,minmax(96px,1fr));position:relative;min-width:900px;padding:5px 6px 0}.project-template-body .y-project-timeline:before{content:"";position:absolute;top:12px;right:5%;left:5%;height:2px;background:#dbe5ef}.project-template-body .y-project-timeline-item{position:relative;z-index:1;display:grid;justify-items:center;gap:6px;min-width:0;color:#99a7b7;font-size:10px;text-align:center}.project-template-body .y-project-timeline-item i{width:16px;height:16px;border:4px solid #eff3f7;border-radius:50%;background:#d5e0eb}.project-template-body .y-project-timeline-item.done{color:#4a6a87;font-weight:700}.project-template-body .y-project-timeline-item.done i{background:#20b486}.project-template-body .y-project-timeline-item.current{color:#2869d8;font-weight:800}.project-template-body .y-project-timeline-item.current i{background:#246bfd;box-shadow:0 0 0 4px #246bfd1d}.project-template-body .y-project-timeline-item b{max-width:100%;font-size:10px;line-height:1.35}.project-template-body .y-project-timeline-item small{color:#9aa7b6;font-size:9px;white-space:nowrap}
.project-template-body .y-project-material-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.project-template-body .y-project-material-grid .y-project-simple-metric{padding:12px 10px;background:#fbfcfe}.project-template-body .y-project-material-grid .y-project-simple-metric>b{font-size:15px}.project-template-body .y-project-finance-card{min-width:0}.project-template-body .y-project-finance-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.project-template-body .y-project-finance-grid .y-project-simple-metric{padding:10px;background:#fbfcfe}.project-template-body .y-project-finance-grid .y-project-simple-metric>b{font-size:14px}.project-template-body .y-project-attachments-card{padding:17px 18px}.project-template-body .y-project-attachments-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.project-template-body .y-project-attachment-item{display:flex;align-items:center;gap:9px;min-width:0;padding:10px;border:1px solid #e2eaf3;border-radius:8px;background:#fbfcfe}.project-template-body .y-project-attachment-icon{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;color:#286be1;background:#e9f1ff;border-radius:6px;font-size:13px}.project-template-body .y-project-attachment-item div{min-width:0}.project-template-body .y-project-attachment-item b{display:block;overflow:hidden;color:#385574;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.project-template-body .y-project-attachment-item small{display:block;margin-top:4px;overflow:hidden;color:#9aa7b6;font-size:9px;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:1100px){.project-template-body .y-project-simple-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.project-template-body .y-project-simple-mini-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1100px){.project-template-body .y-project-meta-strip{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:10px}.project-template-body .y-project-meta-strip>div:nth-child(3){border-right:0}.project-template-body .y-project-business-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.project-template-body .y-project-material-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.project-template-body .y-project-attachments-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.project-template-body .y-project-hero{grid-template-columns:1fr 1fr}.project-template-body .y-project-meta-strip{grid-template-columns:1fr 1fr}.project-template-body .y-project-meta-strip>div{border-right:0}.project-template-body .y-project-business-grid,.project-template-body .y-project-execution-grid,.project-template-body .y-project-simple-grid,.project-template-body .y-project-simple-grid-secondary{grid-template-columns:1fr}.project-template-body .y-project-material-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.project-template-body .y-project-finance-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.project-template-body .y-project-attachments-grid{grid-template-columns:1fr}.project-template-body .y-project-simple-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.project-template-body .y-project-simple-info-list{grid-template-columns:1fr}.project-template-body .y-project-simple-progress-line{display:block}.project-template-body .y-project-simple-progress-line small{display:block;margin-top:5px;text-align:left}.project-template-body .y-project-simple-delivery{align-items:flex-start;flex-direction:column}.project-template-body .y-project-simple-delivery small{text-align:left}.project-template-body .y-project-simple-stage-line{padding:0}.project-template-body .y-project-simple-stage-line:before{right:7%;left:7%}}

/* 第六批：客户应收与供应商应付用两张清晰的对账表展示。 */
.project-template-body .y-project-finance-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.project-template-body .y-project-finance-column{min-width:0;padding:15px 16px;border:1px solid #dfe8f2;border-radius:10px;background:#fbfcfe}
.project-template-body .y-project-finance-column--customer{border-top:3px solid #2f73f5}.project-template-body .y-project-finance-column--supplier{border-top:3px solid #efa32e}
.project-template-body .y-project-finance-column h3{margin:0;color:#203f63;font-size:16px}.project-template-body .y-project-finance-column>small{display:block;margin-top:6px;color:#8495a8;font-size:10px;line-height:1.5}
.project-template-body .y-project-finance-table{display:grid;margin-top:12px;border-top:1px solid #e2e9f1}
.project-template-body .y-project-finance-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px;padding:11px 2px;border-bottom:1px solid #e8eef4}
.project-template-body .y-project-finance-row span{color:#6f8299;font-size:11px}.project-template-body .y-project-finance-row b{color:#203f63;font-size:14px;text-align:right;white-space:nowrap}
.project-template-body .y-project-finance-row--paid b{color:#16815b}.project-template-body .y-project-finance-row--unpaid b{color:#b56d0e}
.project-template-body .y-project-finance-unavailable{cursor:help;color:#8b98a8!important;font-size:16px!important}
.project-template-body .y-project-card-badges{display:inline-flex;align-items:center;justify-content:flex-end;gap:6px}
@media(max-width:720px){.project-template-body .y-project-finance-columns{grid-template-columns:1fr}.project-template-body .y-project-hero{grid-template-columns:1fr 1fr}}
/* C323：项目净利润（暂不含企业所得税）+ 税额桥接 + 可选物流费。
   卡片就放在既有「销售 / 采购 / 预计毛利 / 实际毛利」同一块财务区里，横跨两列，
   不新增侧栏、独立台账或重复页面。 */
.project-template-body .y-project-business-card.netprofit{grid-column:span 2;border-top-color:#16815b;background:#f6fcf9}
.project-template-body .y-project-business-card.netprofit .y-project-business-head i{color:#16815b;background:#dff5ec}
.project-template-body .y-project-business-card.netprofit .y-project-business-total{color:#116a4a}
.project-template-body .y-project-business-card.netprofit .y-project-business-total--pending{color:#8a98aa;font-size:15px}
.project-template-body .y-project-netprofit-line b.success{color:#16815b}
.project-template-body .y-project-netprofit-excluded{margin-top:4px;padding:7px 9px;color:#7b6224;background:#fffbee;border:1px solid #f0e3b8;border-radius:7px;font-size:10px;line-height:1.65}
.project-template-body .y-project-vat-bridge{margin-top:7px;border:1px solid #d9e6f2;border-radius:7px;background:#fff}
.project-template-body .y-project-vat-bridge>summary{padding:7px 10px;color:#1e63d4;font-size:11px;font-weight:700;cursor:pointer;list-style:none}
.project-template-body .y-project-vat-bridge>summary::-webkit-details-marker{display:none}
.project-template-body .y-project-vat-bridge>summary:before{content:"▸ ";color:#8aa6c6}
.project-template-body .y-project-vat-bridge[open]>summary:before{content:"▾ "}
.project-template-body .y-project-vat-bridge-body{display:flex;flex-direction:column;gap:3px;padding:2px 10px 10px;border-top:1px solid #edf2f7}
.project-template-body .y-project-vat-bridge-row{display:flex;align-items:baseline;justify-content:space-between;gap:12px;font-size:11px;line-height:1.7}
.project-template-body .y-project-vat-bridge-row>span{flex:1 1 auto;min-width:0;color:#64748b}
.project-template-body .y-project-vat-bridge-row>b{flex:0 0 auto;color:#243c5b;white-space:nowrap;font-weight:700}
.project-template-body .y-project-vat-bridge-note{margin:7px 0 0;padding:7px 9px;color:#1f4a7a;background:#f1f7ff;border-radius:6px;font-size:10px;line-height:1.7}
.project-template-body .y-project-vat-bridge-note b{color:#0f3c70}
.project-template-body .y-project-vat-bridge-warn{margin:6px 0 0;padding:7px 9px;color:#9a3b3b;background:#fff1f1;border:1px solid #f3cfcf;border-radius:6px;font-size:10px;line-height:1.6}
.project-template-body .y-project-netprofit-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:8px}
.project-template-body .y-project-netprofit-actions .y-project-logistics-edit{padding:0;color:#1e63d4;background:transparent;border:0;font-size:11px;font-weight:800;cursor:pointer}
.project-template-body .y-project-netprofit-actions .y-project-logistics-edit:hover{text-decoration:underline}
.project-template-body .y-project-netprofit-readonly{color:#8a98aa;font-size:10px}
.project-template-body .y-project-logistics-stamp{flex:1 1 100%;color:#8a98aa;font-size:10px;line-height:1.6}
@media(max-width:720px){.project-template-body .y-project-business-card.netprofit{grid-column:auto}}
