@media(min-width:701px){.modal:has(.invoice-dialog){padding:12px}.invoice-dialog{width:calc(100vw - 24px)!important;max-width:1800px!important;height:calc(100vh - 24px);max-height:none;border-radius:14px}.invoice-dialog #modalBody{height:100%;overflow:auto}.invoice-sheet{min-height:100%;display:flex;flex-direction:column}.invoice-products{flex:1}.invoice-table{width:100%;min-width:0!important;table-layout:fixed}.invoice-table th,.invoice-table td{padding:7px 5px}.invoice-table th:nth-child(1){width:42px}.invoice-table th:nth-child(2){width:17%}.invoice-table th:nth-child(3){width:14%}.invoice-table th:nth-child(4){width:11%}.invoice-table th:nth-child(5){width:10%}.invoice-table th:nth-child(6){width:58px}.invoice-table th:nth-child(7){width:78px}.invoice-table th:nth-child(8){width:90px}.invoice-table th:nth-child(9){width:76px}.invoice-table th:nth-child(10){width:108px}.invoice-table th:nth-child(11){width:42px}.invoice-table input,.invoice-table select{min-width:0!important;width:100%;padding:8px 6px;font-size:13px}.invoice-table .line-amount{min-width:0;font-size:13px}.invoice-bottom{grid-template-columns:minmax(400px,1fr) 370px}.invoice-actions{position:sticky;bottom:0;background:#fff;z-index:2;box-shadow:0 -8px 20px #173e320d}}
@media(max-width:700px){.invoice-products .table-wrap{overflow:visible;margin:0;padding:0}.invoice-table{display:block;min-width:0!important;border:0}.invoice-table thead{display:none}.invoice-table tbody{display:grid;gap:12px}.invoice-table tr{display:grid;grid-template-columns:1fr 1fr;gap:9px;padding:14px;background:#f8faf9;border:1px solid var(--line);border-radius:12px}.invoice-table td{display:block;border:0!important;padding:0}.invoice-table td:before{display:block;color:var(--muted);font-size:10px;margin-bottom:3px}.invoice-table td:nth-child(1){display:none}.invoice-table td:nth-child(2):before{content:'产品编号'}.invoice-table td:nth-child(3):before{content:'产品名称'}.invoice-table td:nth-child(4):before{content:'规格'}.invoice-table td:nth-child(5):before{content:'色号/批号'}.invoice-table td:nth-child(6):before{content:'单位'}.invoice-table td:nth-child(7):before{content:'数量'}.invoice-table td:nth-child(8):before{content:'单价'}.invoice-table td:nth-child(9):before{content:'金额'}.invoice-table td:nth-child(9){display:flex;flex-direction:column;justify-content:flex-end;font-size:17px;color:var(--green)}.invoice-table td:nth-child(10){display:flex;align-items:flex-end;justify-content:flex-end}.invoice-table td:nth-child(10) .danger{width:42px;height:40px}.invoice-table input{min-width:0!important;width:100%;height:40px}.invoice-products{padding-bottom:8px}}
.entity-dialog{width:min(780px,94vw)!important;max-width:780px!important;padding:0!important;overflow:hidden!important;border-radius:20px!important;box-shadow:0 30px 90px #09291f55!important}.entity-dialog>.close{z-index:2;top:20px!important;right:22px!important;width:42px;height:42px;border-radius:50%;background:#f0f5f2!important;color:#537067;transition:.18s ease}.entity-dialog>.close:hover{background:#e3eee9!important;transform:rotate(8deg)}.entity-dialog-head{display:flex;align-items:center;gap:17px;padding:29px 34px 24px;background:linear-gradient(135deg,#f1f9f5,#f9fbfa);border-bottom:1px solid #dfeae5}.entity-icon{display:grid;place-items:center;flex:0 0 58px;height:58px;border-radius:17px;background:linear-gradient(145deg,#176d58,#275b4e);color:#fff;font-size:23px;font-weight:800;box-shadow:0 12px 25px #176d5830}.entity-dialog-head small{color:#bb8740;letter-spacing:.2em;font-size:10px}.entity-dialog-head h2{margin:3px 0 2px;font-size:25px}.entity-dialog-head p{margin:0;color:#788681;font-size:13px}.entity-form{padding:27px 34px 30px}.entity-form .form-grid{gap:17px 18px}.entity-form .field label{font-size:13px;font-weight:650;color:#405d54;margin-bottom:7px}.entity-form .field label em{color:#c14d43;font-style:normal}.entity-form .field input,.entity-form .field select{height:50px;padding:0 14px;background:#fbfdfc;border-color:#dce6e1;border-radius:11px;transition:border .18s ease,box-shadow .18s ease,background .18s ease}.entity-form .field textarea{min-height:86px;padding:13px 14px;background:#fbfdfc;border-color:#dce6e1;border-radius:11px;resize:vertical}.entity-form .field input:focus,.entity-form .field select:focus,.entity-form .field textarea:focus{outline:0;border-color:#4b9a82;background:#fff;box-shadow:0 0 0 4px #2c806519}.entity-form .form-hint{margin:16px 0 0;padding:11px 14px;border-radius:10px;background:#fff8eb;color:#866735}.entity-actions{margin-top:24px!important;padding-top:20px;border-top:1px solid #e7ece9}.entity-actions button{min-width:110px;height:46px}.entity-actions .primary{box-shadow:0 9px 20px #176d5828}.entity-product-dialog{width:min(860px,95vw)!important;max-width:860px!important}.entity-product-dialog .entity-icon{background:linear-gradient(145deg,#9a6b34,#c79855)}.entity-product-dialog .entity-form{padding-top:24px}.entity-supplier-dialog .entity-icon{background:linear-gradient(145deg,#285e79,#3c819b)}@media(max-width:650px){.entity-dialog-head{padding:25px 22px 20px}.entity-dialog-head p{display:none}.entity-icon{flex-basis:50px;height:50px}.entity-form{padding:22px}.entity-form .form-grid{grid-template-columns:1fr}.entity-form .span2{grid-column:auto}.entity-actions button{flex:1}}
.entity-dialog{width:min(1040px,94vw)!important;max-width:1040px!important}.entity-product-dialog{width:min(1120px,95vw)!important;max-width:1120px!important}.entity-dialog-head{display:block!important;padding:34px 42px 31px!important;background:linear-gradient(135deg,#f1faf6,#edf7f3)!important}.entity-dialog-head small{display:block;margin-bottom:7px;font-size:11px!important;letter-spacing:.24em!important}.entity-dialog-head h2{margin:0 0 7px!important;font-size:29px!important;line-height:1.25}.entity-dialog-head p{font-size:14px!important}.entity-dialog .entity-icon{display:none!important}.entity-form{padding:29px 42px 34px!important}.entity-form .form-grid{gap:20px 24px!important}.entity-form .field label{margin-bottom:8px!important;font-size:13px!important}.entity-form .field input,.entity-form .field select{height:54px!important;padding:0 16px!important;font-size:15px}.entity-form .field textarea{min-height:92px!important;padding:15px 16px!important;font-size:15px}.entity-info-note{display:flex;flex-direction:column;gap:4px;margin-top:22px;padding:15px 18px;border-radius:13px;background:#f3f7f5;color:#65766f}.entity-info-note b{color:#176d58;font-size:14px}.entity-info-note span{font-size:13px}.entity-actions{margin-top:22px!important;padding-top:22px!important}.entity-actions button{min-width:124px!important;height:48px!important;font-size:14px}.entity-product-dialog .entity-dialog-head,.entity-supplier-dialog .entity-dialog-head{background:linear-gradient(135deg,#f2faf7,#edf7f3)!important}@media(max-width:700px){.entity-dialog-head{padding:27px 24px 23px!important}.entity-form{padding:23px 24px 27px!important}.entity-dialog-head h2{font-size:25px!important}.entity-info-note{margin-top:17px}}
.invoice-summary label span small{display:block;color:#96a29e;font-size:9px;font-weight:400}.invoice-summary .negative-discount-row{background:#eef8f3!important;border-left:3px solid #1a745d}.invoice-summary .negative-discount-row span,.invoice-summary .negative-discount-row input{color:#176d58!important;font-weight:700}.negative-discount-profit{background:#eef8f3!important;border-color:#c7e2d6!important}.negative-discount-profit b{color:#176d58!important}
.account-order-row{cursor:pointer;transition:background .16s ease,box-shadow .16s ease}.account-order-row:hover td{background:#f2f8f5!important}.account-order-row:hover{box-shadow:inset 3px 0 0 #1b725c}.account-cost-editor{display:flex;align-items:center;gap:7px;min-width:190px}.account-cost-editor input{width:105px!important;min-width:90px!important;padding:8px 9px!important;border:1px solid #cbdad4;border-radius:8px;text-align:right;font-weight:700}.account-cost-editor input:focus{outline:0;border-color:#278068;box-shadow:0 0 0 3px #27806818}.account-cost-editor button{padding:8px 11px!important;white-space:nowrap}.account-cost-locked{display:flex;flex-direction:column;gap:2px;min-width:110px}.account-cost-locked b{color:#43574f}.account-cost-locked small{color:#9b6b36;font-size:10px}.account-order-row input[type="checkbox"]{width:19px;height:19px;cursor:pointer}
.supplier-settle-cost{width:112px!important;min-width:100px!important;padding:9px!important;text-align:right}
.order-cost-note{display:block;margin-top:5px;color:#9a7742;white-space:nowrap}
.settlement-order-link{display:inline-block!important;padding:3px 0!important;color:#176d58!important;text-decoration:underline;text-underline-offset:3px;cursor:pointer!important}
.settlement-order-link:hover{color:#b47b2d!important}
.profit-detail-button{border:0!important;cursor:pointer;display:grid!important;grid-template-columns:auto auto;gap:0 9px;align-items:center;text-align:left;padding:9px 16px!important;transition:transform .18s ease,box-shadow .18s ease!important}.profit-detail-button span{font-size:12px}.profit-detail-button b{font-size:18px}.profit-detail-button em{grid-column:1/-1;font-size:10px;font-style:normal;opacity:.72}.profit-detail-button:hover{transform:translateY(-2px);box-shadow:0 10px 25px #176d5830}.profit-detail-dialog{width:min(1180px,95vw)!important;max-width:none!important;padding:0!important;overflow:hidden!important}.profit-detail{max-height:92vh;overflow:auto;padding:32px}.profit-detail-head{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:8px 4px 24px;border-bottom:1px solid #e4ece8}.profit-detail-head small,.profit-section-title small{letter-spacing:.2em;color:#bd8a43;font-size:10px}.profit-detail-head h2{margin:5px 0 3px;font-size:28px}.profit-detail-head p{margin:0;color:#778581}.profit-result{min-width:230px;padding:18px 22px;border-radius:16px;background:linear-gradient(135deg,#176d58,#245b4b);color:#fff;box-shadow:0 16px 34px #176d5830}.profit-result.loss{background:linear-gradient(135deg,#b8493f,#8d352f)}.profit-result span{display:block;opacity:.8}.profit-result strong{display:block;font-size:30px;margin-top:4px}.profit-flow{display:grid;grid-template-columns:repeat(11,auto);align-items:stretch;gap:8px;margin:22px 0}.profit-flow>div{min-width:125px;padding:15px;border:1px solid #e0e9e5;border-radius:12px;background:#f9fcfa}.profit-flow>i{align-self:center;color:#9da9a5;font-style:normal;font-size:18px}.profit-flow small{display:block;color:#778581}.profit-flow b{display:block;font-size:17px;margin-top:6px}.profit-flow .final{background:#e9f5ef;border-color:#cce3d8;color:#176d58}.profit-section{margin-top:18px;border:1px solid #e3ebe7;border-radius:16px;overflow:hidden}.profit-section-title{display:flex;justify-content:space-between;align-items:center;padding:18px 20px;background:#f6faf8}.profit-section-title h3{margin:3px 0 0}.profit-section-title>span{color:#778581}.profit-item-table th,.profit-item-table td{padding:13px 14px}.supplier-chip,.delivery-type-chip{display:inline-block;padding:4px 9px;border-radius:99px;background:#edf6f2;color:#176d58}.profit-gain{color:#176d58}.profit-loss{color:#b8493f}.delivery-profit-grid{display:grid;grid-template-columns:1.6fr repeat(4,1fr);gap:0}.delivery-profit-grid>div{padding:18px 20px;border-right:1px solid #e7ece9}.delivery-profit-grid>div:last-child{border-right:0}.delivery-profit-grid small,.delivery-profit-grid em{display:block;color:#778581;font-style:normal}.delivery-profit-grid b{display:block;margin:6px 0;font-size:17px}.delivery-profit-grid .delivery-total{background:#f1f8f5}.delivery-profit-grid .delivery-total b{color:#176d58;font-size:20px}.profit-note{margin-top:18px;padding:12px 15px;border-radius:10px;background:#fff8eb;color:#88662f}.profit-detail>.actions{padding-top:18px;border-top:1px solid #e8ecea}.profit-detail>.actions button{min-width:130px}@media(max-width:900px){.profit-detail{padding:22px}.profit-detail-head{align-items:stretch;flex-direction:column}.profit-result{width:100%}.profit-flow{display:flex;overflow-x:auto}.profit-flow>i{display:none}.delivery-profit-grid{grid-template-columns:1fr 1fr}.delivery-profit-grid>div{border-bottom:1px solid #e7ece9}.profit-item-table{min-width:850px}}
