*{margin:0;padding:0;box-sizing:border-box}
:root{--pri:#1a5276;--pri2:#2980b9;--accent:#16a085;--bg:#f4f6f9;--line:#e2e8f0;--txt:#1f2d3d;--sub:#6b7c93;--danger:#c0392b;--warn:#e67e22;--ok:#27ae60;--sidebar:#0e2a3f}
body{font-family:'Noto Sans SC','Microsoft YaHei',sans-serif;background:var(--bg);color:var(--txt);font-size:14px;min-width:1180px}
.app{display:flex;min-height:100vh}
.sidebar{width:228px;background:var(--sidebar);color:#cdd9e5;display:flex;flex-direction:column;position:fixed;top:0;bottom:0;left:0;overflow-y:auto}
.logo{padding:20px 18px;font-size:17px;font-weight:700;color:#fff;border-bottom:1px solid rgba(255,255,255,.08);letter-spacing:1px}
.logo small{display:block;font-size:11px;font-weight:400;color:#7fa3bd;margin-top:4px}
.nav-group{padding:10px 0 4px}
.nav-title{padding:8px 18px 4px;font-size:11px;color:#6d8ba3;letter-spacing:2px}
.nav-item{padding:9px 18px;cursor:pointer;display:flex;align-items:center;gap:9px;font-size:13.5px;border-left:3px solid transparent;transition:.15s}
.nav-item:hover{background:rgba(255,255,255,.06);color:#fff}
.nav-item.active{background:rgba(41,128,185,.25);border-left-color:var(--pri2);color:#fff}
.nav-item .dot{width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.55}
.side-foot{margin-top:auto;padding:14px 18px;font-size:11px;color:#5d7891;border-top:1px solid rgba(255,255,255,.08)}
.main{flex:1;margin-left:228px;display:flex;flex-direction:column;min-width:0}
.topbar{background:#fff;height:58px;display:flex;align-items:center;gap:16px;padding:0 24px;border-bottom:1px solid var(--line);position:sticky;top:0;left:0;z-index:40;width:100%}
.topbar h1{font-size:17px;font-weight:700}
.page-title{display:flex;align-items:center;gap:6px;font-size:17px;font-weight:700}
.bc-link{color:#2980b9;text-decoration:none;cursor:pointer;font-weight:500}
.bc-link:hover{text-decoration:underline}
.bc-sep{color:#95a5a6;font-weight:400;font-size:14px}
.bc-current{color:#1a1a1a;font-weight:700}
.search-box{margin-left:auto;flex:none;width:300px;max-width:42vw;background:#fff;border:1px solid #d8e2ec;border-radius:9px;padding:8px 12px;cursor:pointer;color:#5d6d7e;display:flex;align-items:center;gap:8px;box-shadow:0 1px 2px rgba(16,42,63,.04);transition:.15s;user-select:none}
.search-box:hover{border-color:var(--pri2);box-shadow:0 2px 8px rgba(26,82,118,.10)}
.search-box>span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.search-box kbd{flex:none;font-size:11px;background:#eef2f6;border:1px solid var(--line);border-radius:5px;padding:2px 7px;color:#5d6d7e;font-weight:500}
.user-chip{display:flex;align-items:center;gap:8px;font-size:13px}
.user-chip .av{width:30px;height:30px;border-radius:50%;background:var(--pri2);color:#fff;display:flex;align-items:center;justify-content:center;font-size:12px}
.user-chip button{border:1px solid var(--line);background:#fff;border-radius:6px;padding:4px 9px;font-size:12px;cursor:pointer}
.content{padding:22px 24px;flex:1}
.kpi-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}
.kpi{background:#fff;border:1px solid var(--line);border-radius:10px;padding:16px 18px;cursor:pointer;transition:.15s}
.kpi:hover{box-shadow:0 4px 14px rgba(26,82,118,.12);transform:translateY(-1px)}
.kpi .lab{color:var(--sub);font-size:12.5px}.kpi .val{display:flex;align-items:flex-end;gap:6px;font-size:24px;font-weight:700;margin-top:6px;color:var(--pri)}.kpi .sub{font-size:11.5px;color:var(--sub);margin-top:4px}
.kpi-trend,.kpi-trend.up,.kpi-trend.down{flex:none;font-size:10.5px;font-weight:700;line-height:1;margin-bottom:3px}.kpi-trend{color:#7f8c8d}.kpi-trend.up{color:#1c9b61}.kpi-trend.down{color:#c0392b}
.kpi-card{background:#fff;border:1px solid var(--line);border-radius:8px;padding:10px 12px;cursor:pointer;transition:.15s}
.kpi-card:hover{border-color:var(--pri2);box-shadow:0 4px 14px rgba(26,82,118,.12);transform:translateY(-1px)}
.kpi-card .v{font-size:20px;font-weight:700;color:var(--pri)}.kpi-card .l{font-size:11.5px;color:var(--sub);margin-top:4px}
.panel{background:#fff;border:1px solid var(--line);border-radius:10px;padding:16px 18px;margin-bottom:16px}
.panel h3{font-size:14.5px;margin-bottom:12px}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.chart{width:100%;height:300px}.chart-sm{width:100%;height:260px}
.billing-panel{display:flex;flex-direction:column}
.billing-summary{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:22px}
.billing-summary>div{background:#f7fafc;border:1px solid #e8eef4;border-radius:8px;padding:10px 12px;cursor:pointer;transition:.15s}.billing-summary>div:hover{border-color:var(--pri2);box-shadow:0 4px 14px rgba(26,82,118,.1);transform:translateY(-1px)}
.billing-summary span{display:block;font-size:12px;color:var(--sub);margin-bottom:5px}.billing-summary b{font-size:19px;color:var(--pri)}
.progress-row{margin-bottom:20px;cursor:pointer;border-radius:8px;padding:3px 4px;transition:.15s}.progress-row:hover{background:#f7fafc}.progress-row:last-child{margin-bottom:0}
.progress-head,.progress-foot{display:flex;justify-content:space-between;gap:12px;font-size:12.5px}.progress-head{margin-bottom:7px}.progress-head b{color:var(--pri);font-size:13px}.progress-foot{color:var(--sub);margin-top:6px}
.progress-track{height:10px;background:#e8eef4;border-radius:8px;overflow:hidden}.progress-track i{display:block;height:100%;border-radius:8px;min-width:0}
.service-layout{display:grid;grid-template-columns:minmax(170px,.8fr) minmax(0,1.4fr);grid-template-areas:"kpis kpis" "type owner";gap:14px;align-items:stretch}
.service-kpis{grid-area:kpis;grid-template-columns:0.75fr 1.25fr;margin-bottom:0}
.service-kpis .kpi{padding:12px 14px}
.service-status .lab{white-space:nowrap}.service-status-values{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:8px}
.service-status-values span{display:flex;align-items:baseline;gap:5px;min-width:0}.service-status-values b{font-size:20px;color:var(--pri)}.service-status-values small{font-size:11px;color:var(--sub)}
.service-type{grid-area:type;min-height:260px}.service-type .chart-sm{height:100%;min-height:260px}
.service-owner{grid-area:owner;min-width:0}.service-owner .chart-sm{height:100%;min-height:260px}
.hint{color:var(--sub);font-size:12px}
.toolbar{display:flex;gap:10px;align-items:center;margin-bottom:14px;flex-wrap:wrap}
.btn{background:var(--pri2);color:#fff;border:none;border-radius:7px;padding:8px 15px;font-size:13px;cursor:pointer;font-family:inherit}
.btn:hover{background:var(--pri)}
.btn.ghost{background:#fff;color:var(--pri);border:1px solid var(--pri2)}.btn.ghost:hover{background:#eaf2f9}
.btn.sm{padding:4px 10px;font-size:12px}
.btn.danger{background:var(--danger)}
.input,.select{padding:8px 11px;border:1px solid var(--line);border-radius:7px;font-size:13px;font-family:inherit;background:#fff;color:var(--txt)}
table{width:100%;border-collapse:collapse;font-size:13px}
th{background:#f0f4f8;text-align:left;padding:10px 11px;color:var(--sub);font-weight:500;white-space:nowrap;border-bottom:1px solid var(--line)}
td{padding:9px 11px;border-bottom:1px solid #eef2f6;vertical-align:top}
td.ops{white-space:nowrap;text-align:center;position:sticky;right:0;background:#fff;z-index:2;box-shadow:-4px 0 6px -4px rgba(0,0,0,.08)}
td.ops .btn,td.ops .select{margin-left:0}
th.ops{position:sticky;right:0;background:#f0f4f8;z-index:3;text-align:center}
tr:hover td.ops{background:#f8fafc}
tr:hover td{background:#f8fafc}
.t-wrap{background:#fff;border:1px solid var(--line);border-radius:10px;overflow:auto}
.product-price-wrap{overflow-x:hidden}
.product-price-table{table-layout:fixed;font-size:11.5px}
.product-price-table th{padding:7px 4px;text-align:center;white-space:normal;line-height:1.2;word-break:keep-all}
.product-price-table th .th-sub{display:block;margin-top:1px;font-size:10px;font-weight:400;color:#8a9aab}
.product-price-table td{padding:7px 4px;text-align:center;vertical-align:middle;line-height:1.3;word-break:break-word;overflow-wrap:anywhere}
.product-price-table th:nth-child(1),.product-price-table td:nth-child(1){width:10%}
.product-price-table th:nth-child(2),.product-price-table td:nth-child(2){width:8.5%}
.product-price-table th:nth-child(3),.product-price-table td:nth-child(3){width:15%}
.product-price-table th:nth-child(4),.product-price-table td:nth-child(4){width:3.5%}
.product-price-table th:nth-child(5),.product-price-table td:nth-child(5){width:7%}
.product-price-table th:nth-child(6),.product-price-table td:nth-child(6){width:6.5%}
.product-price-table th:nth-child(7),.product-price-table td:nth-child(7){width:7%}
.product-price-table th:nth-child(8),.product-price-table td:nth-child(8){width:4.5%}
.product-price-table th:nth-child(9),.product-price-table td:nth-child(9){width:7%}
.product-price-table th:nth-child(10),.product-price-table td:nth-child(10){width:7.5%}
.product-price-table th:nth-child(11),.product-price-table td:nth-child(11){width:6.5%}
.product-price-table th:nth-child(12),.product-price-table td:nth-child(12){width:7%}
.product-price-table th:nth-child(13),.product-price-table td:nth-child(13){width:10%}
.product-price-table .clamp2{display:block;max-width:none!important;overflow:visible;-webkit-line-clamp:unset}
.product-price-table .btn.sm{padding:3px 6px;white-space:nowrap}
.wr2-wrap{overflow-x:hidden}
.wr2-table{table-layout:fixed;font-size:12.5px}
.wr2-table th{padding:9px 6px;text-align:center;white-space:normal;line-height:1.25;word-break:keep-all}
.wr2-table th .th-sub{display:block;margin-top:2px;font-size:10.5px;font-weight:400;color:#8a9aab}
.wr2-table td{padding:10px 7px;vertical-align:top;word-break:break-word;overflow-wrap:anywhere}
.wr2-table td:nth-child(1){text-align:center}
.wr2-table th:nth-child(1),.wr2-table td:nth-child(1){width:9%}
.wr2-table th:nth-child(2),.wr2-table td:nth-child(2){width:31%}
.wr2-table th:nth-child(3),.wr2-table td:nth-child(3){width:31%}
.wr2-table th:nth-child(4),.wr2-table td:nth-child(4){width:20%}
.wr2-table th:nth-child(5),.wr2-table td:nth-child(5){width:9%}
.wr2-content{max-height:320px;overflow:auto;white-space:pre-wrap;line-height:1.55;text-align:left}
.wr2-note{max-height:180px;font-size:12px}
.wr2-meta{margin-top:4px;font-size:10.5px;color:var(--sub);line-height:1.35}
.wr2-empty{color:#a4afba;font-size:12px}
.tag{display:inline-block;padding:2px 9px;border-radius:11px;font-size:11.5px;white-space:nowrap}
.t-blue{background:#e8f1fa;color:#1a5276}.t-green{background:#e6f6ee;color:#1e7e45}.t-orange{background:#fdf0e3;color:#b35e12}
.t-red{background:#fbeae8;color:#a03024}.t-gray{background:#eef1f4;color:#5d6d7e}.t-purple{background:#f0ebfa;color:#5b3aa0}
.chip{display:inline-flex;align-items:center;gap:8px;background:#e8f1fa;color:var(--pri);border:1px solid #c5dcee;border-radius:14px;padding:4px 12px;font-size:12.5px;margin-bottom:12px}
.chip button{border:none;background:none;color:var(--pri);cursor:pointer;font-size:14px;line-height:1}
button.chip{margin-bottom:0;cursor:pointer;background:#fff;color:#43526a;border:1px solid #d5dbe3;border-radius:14px;padding:4px 12px;font-size:12.5px;font-family:inherit;display:inline-flex;align-items:center;gap:6px}
button.chip:hover{border-color:var(--pri)}
button.chip.chip-on{background:var(--pri);color:#fff;border-color:var(--pri)}
.mask{position:fixed;inset:0;background:rgba(15,32,48,.45);z-index:50;display:none;align-items:flex-start;justify-content:center;overflow-y:auto;padding:40px 16px;box-sizing:border-box}
.mask.show{display:flex}
.modal{background:#fff;border-radius:12px;width:640px;max-width:100%;padding:22px 24px;box-sizing:border-box;margin:0 auto;position:relative;overflow:auto;min-width:480px;min-height:300px;max-height:88vh}
.modal .resize-handle{position:absolute;right:1px;bottom:1px;width:15px;height:15px;cursor:nwse-resize;z-index:9;user-select:none;-webkit-user-select:none;touch-action:none;background:linear-gradient(135deg,transparent 0,transparent 49%,#b9c6d2 50%,#b9c6d2 58%,transparent 59%,transparent 68%,#b9c6d2 69%,#b9c6d2 77%,transparent 78%,transparent 87%,#b9c6d2 88%);border-radius:0 0 10px 0;opacity:.85}
.modal .resize-handle:hover{opacity:1;background:linear-gradient(135deg,transparent 0,transparent 49%,var(--pri) 50%,var(--pri) 58%,transparent 59%,transparent 68%,var(--pri) 69%,var(--pri) 77%,transparent 78%,transparent 87%,var(--pri) 88%)}
.modal.wide{width:1100px;max-width:100%;min-width:760px}
.modal h2{font-size:16px;margin-bottom:16px}
.modal .modal-close{position:absolute;right:10px;top:10px;width:28px;height:28px;line-height:26px;text-align:center;font-size:20px;color:#8a96a3;background:transparent;border:0;border-radius:7px;cursor:pointer;padding:0;z-index:10}
.modal .modal-close:hover{background:#f0f4f8;color:#1d2b3a}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px 16px;min-width:0}
.fg{display:flex;flex-direction:column;gap:5px;min-width:0}.fg.full{grid-column:1/-1}.fg label{font-size:12.5px;color:var(--sub);line-height:1.4;flex:0 0 auto}
.fg input,.fg select,.fg textarea{padding:8px 10px;border:1px solid var(--line);border-radius:7px;font-size:13px;font-family:inherit;width:100%;box-sizing:border-box;min-width:0}
.fg textarea{resize:vertical;min-height:90px;overflow:auto}
.modal-foot{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}
/* 周报汇总：每人一行纵向加大，内容保留换行，便于阅读 */
.t-wrap.wr table tbody td{padding:12px 10px;vertical-align:top;line-height:1.75}
.t-wrap.wr table tbody td:first-child{white-space:nowrap;min-width:88px}
.t-wrap.wr table tbody td:nth-child(3){white-space:pre-wrap;min-width:320px}
.t-wrap.wr table tbody td:nth-child(4){white-space:pre-wrap;min-width:220px}
.t-wrap.wr table thead th.ops{width:80px}
.t-wrap.wr table tbody tr:hover td{background:#f8fafc}
.items-box{border:1px solid var(--line);border-radius:8px;padding:10px;margin-top:4px}
.ms-box{display:flex;flex-wrap:wrap;gap:4px 10px;max-height:120px;overflow-y:auto;padding:6px 8px;border:1px solid var(--line);border-radius:8px;margin-top:4px}
.ms-box label{display:inline-flex;align-items:center;gap:4px}
.item-row{display:grid;grid-template-columns:3.2fr 0.6fr 0.8fr 0.8fr 1fr 30px;gap:6px;margin-bottom:8px;align-items:center}
.item-row.po{grid-template-columns:2.2fr 0.4fr 0.55fr 0.55fr 0.7fr 0.7fr 26px;gap:5px}
.item-head{font-size:11px;color:var(--sub);font-weight:600;padding:0 2px;margin-bottom:6px;align-items:end}
.item-head span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.item-prod-2col{gap:4px}
.item-prod-2col .item-sel{min-width:0;padding:5px 4px;border:1px solid var(--line);border-radius:6px;font-size:12px;font-family:inherit;background:#fff}
.item-prod-2col .item-sel:first-child{flex:0 0 120px}
.item-prod-2col .item-sel:nth-child(2){flex:1}
.item-prod-2col .sku-tag{margin-left:0;flex-shrink:0;max-width:90px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}
.item-row input[readonly]{background:#f4f7fa;color:#555}
.item-row input{padding:5px 6px;border:1px solid var(--line);border-radius:6px;font-size:12px;font-family:inherit;min-width:0}
#itemsBox{overflow-x:auto;padding-bottom:4px}
.sku-tag{display:inline-block;padding:1px 6px;font-size:11px;background:#e8f4fd;color:#2980b9;border-radius:3px;white-space:nowrap;margin-left:4px;flex-shrink:0}
.sku-tag.sku-empty{background:#fef0f0;color:#e74c3c}
.item-prod-wrap{display:flex;align-items:center;min-width:0}
.item-prod-wrap input{flex:1;min-width:0}
.item-prod-wrap .btn{flex-shrink:0;margin-left:4px;padding:3px 8px;font-size:11px}
.minus{width:26px;height:26px;border-radius:6px;border:1px solid var(--line);background:#fff;color:var(--danger);cursor:pointer}
.calc-line{background:#f0f6fb;border-radius:8px;padding:10px 12px;font-size:13px;margin-top:10px;line-height:1.9}.calc-line b{color:var(--pri)}
.board{display:grid;grid-template-columns:repeat(5,minmax(180px,1fr));gap:10px;overflow-x:auto;padding-bottom:8px}
.arch-board{grid-template-columns:repeat(2,minmax(200px,1fr))}
.col{background:#eef2f6;border-radius:9px;padding:9px;min-height:200px}
.col-h{font-size:12.5px;font-weight:700;margin-bottom:8px;display:flex;justify-content:space-between;color:var(--pri)}
.owner-group{margin-bottom:10px}
.owner-label{display:flex;justify-content:space-between;align-items:center;font-size:12px;font-weight:600;color:#334155;border-radius:6px;padding:5px 9px;margin-bottom:6px}
.opp-card{background:#fff;border-radius:8px;padding:9px 10px;margin-bottom:8px;border:1px solid var(--line);cursor:pointer;box-shadow:0 1px 2px rgba(0,0,0,.03)}
.opp-card:hover{border-color:var(--pri2)}
.opp-card .t{font-size:12.5px;font-weight:500;margin-bottom:5px}
.opp-card .m{font-size:11.5px;color:var(--sub);display:flex;justify-content:space-between}
.opp-acts{margin-top:6px;display:flex;gap:4px;justify-content:flex-end;flex-wrap:wrap}
.opp-acts .btn{padding:3px 8px;font-size:11px}
.btn.win{background:#27ae60;color:#fff;border-color:#27ae60}
.arch-title{margin:16px 0 8px;font-weight:700;color:#1f2d3d;font-size:13.5px}
.arch-board{grid-template-columns:repeat(2,minmax(260px,1fr))}
.arch-col{background:#eef6f0}
.arch-col .term-h{color:#c0392b}
.arch-col .won-h{color:#27ae60}
.search-modal{background:#fff;border-radius:14px;width:640px;max-width:94%;margin-top:8vh;overflow:hidden;box-shadow:0 18px 50px rgba(15,32,48,.22)}
.search-modal .s-head{padding:14px 16px;border-bottom:1px solid var(--line);display:flex;gap:10px;align-items:center;background:#f7fafc}
.search-modal .s-head input{flex:1;border:none;font-size:15px;padding:6px 4px;font-family:inherit}.search-modal .s-head input:focus{outline:none}
.s-results{max-height:56vh;overflow-y:auto;padding:8px 0}
.s-group-t{padding:8px 16px 3px;font-size:11.5px;color:var(--sub);letter-spacing:1px}
.s-item{padding:9px 16px;cursor:pointer;display:flex;justify-content:space-between;gap:12px}.s-item:hover{background:#f0f6fb}
.s-item .si-t{font-size:13.5px}.s-item .si-s{font-size:12px;color:var(--sub)}
.s-empty{padding:26px;text-align:center;color:var(--sub);font-size:13px}
.empty{padding:40px;text-align:center;color:var(--sub)}
.pager{display:flex;justify-content:space-between;align-items:center;margin-top:12px;font-size:12.5px;color:var(--sub);flex-wrap:wrap;gap:8px}
.pager-r{display:flex;gap:6px;align-items:center}.pager .select{padding:4px 8px;font-size:12.5px}
.rate-row{display:flex;align-items:center;gap:8px;margin-bottom:10px}.rate-row label{width:300px;font-size:13px;color:var(--sub)}.rate-row input{flex:1;padding:8px 10px;border:1px solid var(--line);border-radius:7px;font-size:13px;font-family:inherit}
.perm-box{border:1px solid var(--line);border-radius:8px;max-height:360px;overflow-y:auto;padding:8px 14px}
.perm-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 2px;border-bottom:1px dashed #e8eef4;font-size:13px}.perm-row:last-child{border-bottom:none}
.perm-row select{width:112px;padding:5px 8px;border:1px solid var(--line);border-radius:6px;font-family:inherit;background:#fff}
.contacts-box{border:1px solid var(--line);border-radius:8px;padding:10px;margin-top:4px}
.contact-row{display:grid;grid-template-columns:1fr 1fr 1.1fr 1.3fr 88px 1fr 30px;gap:8px;margin-bottom:8px;align-items:center}
.contact-row input,.contact-row select{padding:6px 8px;border:1px solid var(--line);border-radius:6px;font-size:12.5px;font-family:inherit;background:#fff}
.contact-detail{background:#f8fafc;border:1px solid #e8eef4;border-radius:8px;padding:10px 12px}
.contact-detail table{font-size:12.5px;margin-bottom:8px}
.contact-detail table th{background:#eef2f6;padding:6px 9px;font-weight:500}
.contact-detail table td{padding:6px 9px;border-bottom:1px solid #e8eef4;background:#fff}
.pay-box{border:1px solid var(--line);border-radius:8px;padding:10px;margin-top:4px}
.pay-row{display:grid;grid-template-columns:1.2fr 1fr 1fr 30px;gap:8px;margin-bottom:8px;align-items:center}
.pay-row input{padding:6px 8px;border:1px solid var(--line);border-radius:6px;font-size:12.5px;font-family:inherit;background:#fff}
.clamp2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.45;font-size:12.5px}
#pBody td b{font-weight:600;font-size:12.5px}
.att-box{border:1px dashed var(--line);border-radius:9px;padding:12px;background:#fafbfc}
.att-hint{font-size:12px;color:var(--sub);margin-left:10px}
.att-list{margin-top:10px;display:flex;flex-direction:column;gap:6px}
.att-row{display:flex;align-items:center;gap:8px;font-size:13px;background:#fff;border:1px solid var(--line);border-radius:7px;padding:7px 10px}
.att-ico{flex:none}.att-name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.att-state{flex:none;font-size:11.5px;padding:2px 8px;border-radius:10px}
.s-done{background:#e6f7ee;color:#1a7f4b}.s-busy{background:#eef3fb;color:#2980b9}.s-err{background:#fdecea;color:#c0392b}.s-pend{background:#fff4e0;color:#b26a00}
.att-link,.att-del{flex:none;border:none;background:none;cursor:pointer;font-size:12.5px;padding:2px 6px}
.att-link{color:var(--pri)}.att-del{color:var(--danger,#c0392b)}
.att-msg{margin-top:8px}.att-fill{font-size:12.5px;color:#1a7f4b;background:#e6f7ee;border-radius:6px;padding:5px 9px;display:inline-block}
.selm{display:flex;gap:6px;align-items:stretch;width:100%;min-width:0}.selm .selm-sel{flex:1;min-width:0}.selm .selm-sel select{width:100%}.selm-in{flex:1;min-width:0;padding:8px 10px;border:1px solid var(--line);border-radius:7px;font-size:13px;font-family:inherit}
.selm-btn{flex:none;border:1px solid var(--line);background:#f4f7fb;color:var(--pri);border-radius:7px;padding:0 10px;font-size:12px;cursor:pointer;white-space:nowrap}.selm-btn:hover{background:#e8f0fa}
.combo{position:relative}
.combo-in{width:100%}
.combo-list{display:none;position:absolute;z-index:80;left:0;right:0;max-height:264px;overflow:auto;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:0 10px 26px rgba(20,50,90,.16);margin-top:2px}
.combo-list.open{display:block}
.combo-opt{padding:7px 12px;cursor:pointer;font-size:13px;line-height:1.3}
.combo-opt:hover{background:#eaf3fb;color:#1a5276}
.combo-empty{padding:8px 12px;color:#94a3b8;font-size:12px}
.pipe-pop{display:none;position:absolute;top:38px;left:0;right:0;z-index:70;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:0 10px 26px rgba(20,50,90,.16);padding:6px 10px;min-width:190px;max-height:330px;overflow-y:auto;overflow-x:hidden;box-sizing:border-box}
.pipe-pop label{display:flex;align-items:center;gap:8px;padding:5px 8px;font-weight:400;font-size:13px;cursor:pointer;border-radius:5px;transition:background .15s;line-height:1.3}.pipe-pop label:hover{background:#eaf3fb}.pipe-pop label input[type="checkbox"]{flex:none;margin:0;cursor:pointer;width:15px;height:15px;accent-color:#2980b9}
.nb-chips{margin-top:6px;display:flex;flex-wrap:wrap;gap:6px}
.nb-chip{display:inline-block;background:#eaf3fb;color:#1f6aa5;border:1px solid #cfe3f5;border-radius:14px;padding:2px 10px;font-size:12px}
.nb-hint{font-size:12px;color:#9aa3ad}
.pipe-pop-ops{display:flex;gap:14px;border-bottom:1px dashed var(--line);padding-bottom:5px;margin-bottom:5px}
.pipe-pop-ops a{color:#2980b9;cursor:pointer;font-size:12px}

/* ===== 开票记录行组件（invoiceRows）===== */
.inv-box{border:1px solid var(--line);border-radius:8px;padding:8px;background:#fbfcfe}
.inv-row{border:1px solid var(--line);border-radius:8px;padding:6px 8px;margin-bottom:8px;background:#fff}
.inv-row:last-child{margin-bottom:0}
.inv-line1,.inv-line2{display:grid;gap:5px;margin-bottom:5px;align-items:center}
.inv-line1{grid-template-columns:1.3fr 1.1fr 0.9fr 0.7fr 0.6fr 0.7fr 0.9fr 26px}
.inv-line2{grid-template-columns:1.1fr 1.1fr 1.8fr auto}
.inv-field{display:flex;flex-direction:column;gap:2px;min-width:0}
.inv-field>span:first-child{font-size:10px;line-height:1.2;color:#7f8c8d;padding-left:2px;white-space:nowrap}
.inv-line1 .minus,.inv-line2 .minus{align-self:end}
.inv-line1:last-child,.inv-line2:last-child{margin-bottom:0}
.inv-row input,.inv-row select{padding:4px 6px;border:1px solid var(--line);border-radius:5px;font-size:12px;font-family:inherit;min-width:0;width:100%;box-sizing:border-box;background:#fff}
.inv-row input:focus,.inv-row select:focus{outline:none;border-color:#4a7cf7;box-shadow:0 0 0 1px rgba(74,124,247,.2)}
.inv-row .minus{width:26px;height:26px;border:1px solid #e2e6ee;background:#fff;color:#999;border-radius:5px;cursor:pointer;font-size:14px;line-height:1;display:flex;align-items:center;justify-content:center}
.inv-row .minus:hover{color:#e34d59;border-color:#e34d59;background:#fff5f5}
.inv-att{display:flex;align-items:center;gap:5px;flex-wrap:wrap;min-width:0}
.att-chip{display:inline-flex;align-items:center;gap:3px;background:#eef4ff;border:1px solid #cfe0ff;border-radius:4px;padding:1px 5px;font-size:11px;color:#1a56c4;max-width:200px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.att-chip .att-del{background:none;border:none;color:#889;cursor:pointer;font-size:13px;line-height:1;padding:0 2px;flex:none}
.att-chip .att-del:hover{color:#e34d59}

/* 弹性弹窗：header/foot 固定，内容区滚动，textarea 随弹窗双向缩放（纯 CSS，无 JS 干预） */
.modal.modal-flex{display:flex;flex-direction:column;overflow:hidden}
.modal.modal-flex h2{flex:0 0 auto}
.modal.modal-flex .form-grid{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;overflow-y:auto;gap:13px;padding-right:4px}
.modal.modal-flex .fg{flex:0 0 auto;width:100%}
.modal.modal-flex .fg:has(textarea){flex:1 1 137px;min-height:137px;display:flex;flex-direction:column}
.modal.modal-flex .fg:has(textarea) textarea{flex:1 1 auto;min-height:112px;resize:none}
.modal.modal-flex .modal-foot{flex:0 0 auto;margin-top:14px}

/* ===== 数据看板：品牌多平台宣发日历 ===== */
.growth-calendar-panel{padding:16px 16px 18px}
.gc-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
.gc-head h3{margin:0}
.gc-tabs{display:inline-flex;border:1px solid #cfd9e4;border-radius:8px;overflow:hidden;background:#f5f8fb}
.gc-tabs button{border:none;background:transparent;color:#52677a;font-family:inherit;font-size:12.5px;padding:7px 14px;cursor:pointer;border-right:1px solid #cfd9e4}
.gc-tabs button:last-child{border-right:none}.gc-tabs button.active{background:#fff;color:#1d5f96;font-weight:700;box-shadow:0 1px 3px rgba(20,50,90,.12)}
.gc-toolbar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;border-top:1px solid #e5ebf1;border-bottom:1px solid #e5ebf1;padding:10px 0;margin-bottom:12px}
.gc-toolbar label{display:flex;align-items:center;gap:7px;font-size:12.5px;color:#4d6072;white-space:nowrap}
.gc-toolbar select{height:32px;min-width:116px;border:1px solid #cfd9e4;border-radius:6px;background:#fff;color:#1f2d3d;font-family:inherit;font-size:12.5px;padding:0 26px 0 9px}
.gc-week-nav{display:flex;align-items:center;gap:5px;margin-left:auto}
.gc-week-nav button{height:30px;min-width:30px;border:1px solid #cfd9e4;background:#fff;border-radius:6px;color:#33546f;font-family:inherit;font-size:18px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center}
.gc-week-nav button:hover{background:#eef5fb}.gc-week-nav button.gc-today{font-size:12px;padding:0 10px;color:#2c6b9e}.gc-week-nav span{font-size:12.5px;color:#26394c;font-weight:600;min-width:134px;text-align:center}
.gc-range-wrap{display:none;margin-left:auto}
.gc-body{min-height:280px}.gc-week{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:14px;align-items:start}
.gc-matrix-wrap{min-width:0;max-height:520px;overflow:auto;border:1px solid #dde5ec;border-radius:8px;background:#fff}
.gc-matrix{width:100%;min-width:0;border-collapse:separate;border-spacing:0;table-layout:fixed}
.gc-matrix th,.gc-matrix td{width:84px;min-width:84px;box-sizing:border-box;border-right:1px solid #e6edf3;border-bottom:1px solid #e6edf3;vertical-align:top}
.gc-matrix thead th{position:sticky;top:0;z-index:3;background:#f5f8fb;color:#35516b;text-align:center;font-size:12px;font-weight:600;padding:8px 5px;height:48px}
.gc-matrix thead th:first-child,.gc-matrix tbody th{position:sticky;left:0;z-index:4;width:78px;min-width:78px;background:#f5f8fb}
.gc-matrix thead th:first-child{z-index:6;text-align:left;padding-left:12px}.gc-matrix thead th span{display:block}.gc-matrix thead th small{display:block;margin-top:2px;font-size:10.5px;color:#8494a3;font-weight:400}
.gc-matrix tbody th{text-align:left;padding:10px 10px;font-size:12.5px;color:#26394c;font-weight:700;background:#f8fafc}
.gc-matrix tbody td{padding:6px;height:112px;background:#fff}.gc-cell{display:flex;flex-direction:row;flex-wrap:wrap;gap:4px;min-height:60px}
.gc-chip{display:block;width:calc(50% - 2px);border:1px solid color-mix(in srgb,var(--gc-color) 54%,#fff);border-left:3px solid var(--gc-color);border-radius:5px;background:color-mix(in srgb,var(--gc-color) 9%,#fff);padding:4px;text-align:left;font-family:inherit;cursor:pointer;overflow:hidden}
.gc-chip:hover{background:color-mix(in srgb,var(--gc-color) 17%,#fff)}.gc-chip b{display:block;color:var(--gc-color);font-size:11px;line-height:1.15;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gc-chip span{display:block;margin-top:2px;color:#536779;font-size:10.5px;line-height:1.1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gc-summary{border-left:1px solid #e4eaf0;padding-left:14px;min-width:0}.gc-summary-title{font-size:12.5px;color:#25384b;font-weight:700;margin:0 0 9px}.gc-summary-title.platform{margin-top:18px;padding-top:12px;border-top:1px solid #e8eef4}
.gc-summary-line{display:flex;align-items:baseline;justify-content:space-between;gap:8px;font-size:12px;color:#627587;padding:5px 0}.gc-summary-line b{font-size:22px;color:#1f4564;line-height:1}.gc-summary-line b.green{color:#1c9b61}.gc-summary-line b.blue{color:#2b78b7}.gc-summary-line b.muted{color:#8393a3;font-size:16px}
.gc-rank-list{display:flex;flex-direction:column;gap:8px}.gc-rank-row{display:grid;grid-template-columns:minmax(58px,1fr) 58px 24px;align-items:center;gap:6px;font-size:11.5px;color:#43586b}.gc-rank-row>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gc-rank-row>div{height:6px;border-radius:4px;background:#edf1f5;overflow:hidden}.gc-rank-row i{display:block;height:100%;border-radius:4px;background:#3c8ec8}.gc-rank-row b{text-align:right;color:#25384b;font-size:11.5px}.gc-rank-list.compact{margin-top:1px}
.gc-history{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:14px;align-items:start}.gc-history-chart-wrap{min-width:0;border:1px solid #e0e7ee;border-radius:8px;background:#fff;padding:4px 8px 0}.gc-history-chart{height:360px;min-width:0}
.gc-empty{display:flex;align-items:center;justify-content:center;min-height:220px;color:#8a99a8;font-size:13px}.gc-empty.small{min-height:52px;font-size:11.5px;justify-content:flex-start}
@media (max-width:980px){.gc-week,.gc-history{grid-template-columns:minmax(0,1fr)}.gc-summary{border-left:none;border-top:1px solid #e4eaf0;padding:13px 0 0}.gc-week-nav{margin-left:0}.gc-range-wrap{margin-left:0}.gc-history-chart{height:320px}}
