:root{
  --brand:#0F3E6E;
  --brand-2:#1E73D8;
  --accent:#4FA9E8;
  --bg:#F2F6FC;
  --card:#fff;
  --line:#DBE6F3;
  --text:#102A45;
  --text-2:#4A647F;
  --text-3:#8299B2;
  --green:#0E8A5C;
  --red:#C93A3A;
  --amber:#B67A1F;
  --radius:10px;
}
*{box-sizing:border-box;}
body{
  margin:0;background:var(--bg);color:var(--text);
  font-family:"Microsoft YaHei","PingFang SC","Segoe UI",system-ui,sans-serif;
  font-size:14px;-webkit-font-smoothing:antialiased;
}
.hide{display:none !important;}
a{color:var(--brand-2);text-decoration:none;cursor:pointer;}
h1,h2,h3,h4{margin:0;font-weight:600;}

/* 登录 */
.login-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#08284D,#0F3E6E 55%,#1E73D8);}
.login-card{width:380px;background:#fff;border-radius:14px;padding:34px 32px 30px;
  box-shadow:0 24px 60px rgba(0,0,0,.28);}
.brand{display:flex;gap:14px;align-items:center;margin-bottom:26px;}
.brand-mark{background:var(--brand);color:#CFE8FA;font-weight:700;font-size:13px;
  padding:10px 12px;border-radius:8px;letter-spacing:.5px;white-space:nowrap;}
.brand h1{font-size:20px;margin-bottom:6px;}
.brand p{margin:0;color:var(--text-2);font-size:12.5px;}
.field{display:block;margin-bottom:16px;}
.field span{display:block;font-size:12.5px;color:var(--text-2);margin-bottom:6px;}
.field input,.field select{width:100%;height:40px;padding:0 12px;border:1px solid var(--line);
  border-radius:8px;font-size:14px;background:#FAFCFE;outline:none;}
.field input:focus,.field select:focus{border-color:var(--brand-2);background:#fff;}
.err-line{color:var(--red);font-size:12.5px;min-height:18px;margin-top:6px;}
.login-tip{color:var(--text-3);font-size:12px;text-align:center;margin:14px 0 0;}

/* 按钮 */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;
  height:34px;padding:0 14px;border-radius:8px;border:1px solid transparent;
  font-size:13px;cursor:pointer;background:#fff;color:var(--text);white-space:nowrap;
  font-family:inherit;transition:.15s;}
.btn:hover{transform:translateY(-1px);}
.btn-primary{background:var(--brand);color:#fff;}
.btn-primary:hover{background:var(--brand-2);}
.btn-ghost{background:#fff;border-color:var(--line);color:var(--text-2);}
.btn-ghost:hover{border-color:#C3D5E6;color:var(--text);}
.btn-danger{background:#fff;border-color:#E7BFC0;color:var(--red);}
.btn-sm{height:28px;padding:0 10px;font-size:12.5px;}
.btn-block{width:100%;height:42px;font-size:15px;}
.btn:disabled{opacity:.45;cursor:not-allowed;transform:none;}

/* 顶栏 */
.topbar{height:58px;background:var(--brand);color:#fff;display:flex;align-items:center;
  padding:0 22px;gap:28px;position:sticky;top:0;z-index:20;box-shadow:0 1px 10px rgba(0,0,0,.15);}
.topbar-left{display:flex;align-items:center;gap:10px;}
.logo{background:#CFE8FA;color:var(--brand);font-weight:700;font-size:12.5px;padding:6px 10px;border-radius:6px;letter-spacing:.5px;}
.app-name{font-size:15px;letter-spacing:1px;color:#E3F1FB;}
.tabs{display:flex;gap:4px;flex:1;}
.tab{background:transparent;border:none;color:#BFD6EB;font-size:14px;padding:8px 14px;
  border-radius:6px;cursor:pointer;font-family:inherit;}
.tab:hover{background:rgba(255,255,255,.1);color:#fff;}
.tab.active{background:#CFE8FA;color:var(--brand);font-weight:600;}
.topbar-right{display:flex;align-items:center;gap:12px;}
.who{font-size:12.5px;color:#BFD6EB;}
.topbar .btn-ghost{background:transparent;border-color:rgba(255,255,255,.3);color:#E3F0FB;}
.topbar .btn-ghost:hover{background:rgba(255,255,255,.12);color:#fff;}

main{padding:20px 22px 40px;max-width:1680px;margin:0 auto;}
.page.hide{display:none;}
.panel{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);
  padding:16px 18px;margin-bottom:16px;}
.panel h3{font-size:13.5px;color:var(--text-2);margin-bottom:14px;font-weight:600;
  padding-left:9px;border-left:3px solid var(--accent);}

/* KPI */
.kpi-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px;margin-bottom:16px;}
.kpi{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:16px 18px;}
.kpi-label{font-size:12.5px;color:var(--text-3);margin-bottom:8px;}
.kpi-value{font-size:22px;font-weight:700;letter-spacing:.5px;color:var(--brand);}
.kpi-sub{font-size:12px;color:var(--text-2);margin-top:6px;}

.panel-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:16px;}
.bar-list{display:flex;flex-direction:column;gap:12px;}
.bar-top{display:flex;justify-content:space-between;font-size:12.5px;margin-bottom:5px;}
.bar-k{color:var(--text);font-weight:600;}
.bar-t{color:var(--text-2);}
.bar-track{height:6px;background:#EDF3FA;border-radius:3px;overflow:hidden;}
.bar-fill{height:100%;background:linear-gradient(90deg,var(--brand-2),var(--accent));border-radius:3px;}

/* 筛选 */
.filter-bar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;background:#fff;
  border:1px solid var(--line);border-radius:var(--radius);padding:12px 14px;margin-bottom:12px;}
.filter-bar input,.filter-bar select{height:34px;padding:0 10px;border:1px solid var(--line);
  border-radius:7px;font-size:13px;background:#FAFCFE;outline:none;font-family:inherit;color:var(--text);}
.filter-bar input[type=text]{width:330px;}
.filter-bar input:focus,.filter-bar select:focus{border-color:var(--brand-2);background:#fff;}
.spacer{flex:1;}

.list-meta{font-size:12.5px;color:var(--text-2);margin:0 2px 10px;}
.list-meta b{color:var(--brand);}

/* 表格 */
.table-scroll{overflow:auto;border:1px solid var(--line);border-radius:var(--radius);background:#fff;}
.grid-table{border-collapse:collapse;width:100%;font-size:13px;}
.grid-table th{background:#F1F6FC;color:var(--text-2);font-weight:600;font-size:12.5px;
  text-align:left;padding:11px 12px;border-bottom:1px solid var(--line);white-space:nowrap;position:sticky;top:0;z-index:5;}
.grid-table td{padding:10px 12px;border-bottom:1px solid #EDF3FA;vertical-align:middle;white-space:nowrap;}
.grid-table tbody tr{cursor:pointer;}
.grid-table tbody tr:hover{background:#F5F9FE;}
.grid-table td.num{text-align:right;font-variant-numeric:tabular-nums;}
.grid-table td.mono{font-family:Consolas,Menlo,monospace;font-size:12.5px;color:var(--text-2);}
.grid-table td.wrap{max-width:220px;overflow:hidden;text-overflow:ellipsis;}
.grid-table td.pos{color:var(--green);font-weight:600;}
.grid-table td.neg{color:var(--red);font-weight:600;}
.grid-table td.ops{white-space:nowrap;}
.grid-table .muted{color:var(--text-3);font-size:12.5px;}
.grid-table .empty{text-align:center;color:var(--text-3);padding:34px 0;}
/* 仓库卡片 */
.wh-card{display:flex;align-items:stretch;}
.wh-card .card-main{flex:1 1 auto;min-width:0;}
.w-house{display:inline-block;font-size:11px;color:#3D5E80;background:#EDF4FB;border-radius:4px;
  padding:1px 6px;margin-left:2px;flex:0 0 auto;}
.card-wh{display:flex;flex-direction:column;justify-content:center;gap:6px;padding-left:16px;margin-left:8px;
  min-width:172px;border-left:1px dashed #DFEAF6;}
.cwh{display:flex;align-items:center;gap:6px;font-size:12px;color:#66798C;white-space:nowrap;}
.cwh>span{color:#93A9BE;width:26px;flex:0 0 auto;}
.cwh-d{font-style:normal;color:#7D8FA0;font-size:11.5px;margin-left:4px;}
.cwh-p{font-style:normal;color:#40566B;font-size:11.5px;max-width:70px;overflow:hidden;text-overflow:ellipsis;}
.wh-sec{margin-bottom:20px;background:#EFF7FE;border:1px solid #D3E7F8;border-left:4px solid #2F7DBF;
  border-radius:10px;padding:12px 16px 6px;}
.wh-sec h4{font-size:13px;color:#1B5C97;font-weight:700;margin-bottom:6px;padding-left:0;border-left:0;}
.wh-sec .detail-grid{border-top:0;}
.wh-sec .dg-k{color:#7A93AA;}
.wh-sec .dg-v{font-weight:600;color:#20364D;}
.wh-sec .w-inflag{margin-left:0;}
.sec-title{font-size:13px;color:#3A5570;font-weight:700;border-left:3px solid #2F7DBF;
  padding-left:8px;margin:0 0 10px;letter-spacing:.5px;}
.wh-table{font-size:12px;}
.wh-table th,.wh-table td{padding:9px 8px;}
.wh-table th{white-space:nowrap;}
.wh-table .w-status{width:60px;}
.wh-table .w-house{display:inline-block;font-size:11px;color:#3D5E80;background:#EDF4FB;border-radius:4px;
  padding:1px 6px;margin-bottom:4px;}
.wh-table .w-no{font-size:12px;color:#40566B;font-weight:500;}
.wh-table .w-marks{font-weight:700;color:#15304D;font-size:13.5px;max-width:220px;overflow:hidden;text-overflow:ellipsis;}
.wh-table .w-goods{font-weight:400;font-size:12px;color:#7C8B9E;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.wh-table .w-qty{font-variant-numeric:tabular-nums;}
.wh-table .w-sub{color:var(--text-3);font-size:12px;margin-top:3px;}
.wh-table .w-seq{font-style:normal;font-weight:400;font-size:11px;color:#A7B6C6;margin-left:6px;}
.wh-cell{display:grid;grid-template-columns:34px 1fr;gap:4px 6px;align-items:center;min-width:150px;}
.wh-two{display:flex;align-items:center;gap:3px;}
.wh-two span{font-size:10px;color:#9AA8B6;flex:0 0 auto;}
.wh-two .wh-in{min-width:0;}
.w-time .wh-in{display:block;width:116px;min-width:0;}
.w-flag{margin-top:2px;}
.w-inflag{display:inline-block;font-size:10px;padding:0 5px;border-radius:4px;}
.w-inflag.ok{background:#E4F5EA;color:#28794A;}
.w-inflag.no{background:#F1F3F6;color:#8A98A6;}
.wh-in.wh-note{min-width:110px;}
.wh-cell .wh-lab{font-size:11px;color:#8A99A8;}
.wh-in{width:100%;min-width:52px;border:1px solid transparent;border-radius:6px;background:transparent;
  padding:4px 5px;font:inherit;font-size:12px;color:var(--text);}
.wh-in:hover{border-color:#D5E4F4;background:#FAFCFF;}
.wh-in:focus{outline:none;border-color:#8FB6DE;background:#fff;box-shadow:0 0 0 2px rgba(64,126,190,.12);}
.wh-in.saved{background:#EAF7EE;border-color:#BFE3C9;}
input[type="date"].wh-in{font-size:10.5px;}
.chk-inline{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--text-2);cursor:pointer;}

.tag{display:inline-block;padding:2px 8px;border-radius:10px;font-size:12px;background:#EDF3FA;color:var(--text-2);}
.tag-done{background:#E7EBF0;color:#556575;}
.tag-arrive{background:#FFF3C9;color:#87670A;}
.tag-sent{background:#E1F5E7;color:#20753F;}
.tag-stock{background:#FCE3EF;color:#AA3363;}
.tag-wait{background:#EDF1F5;color:#647A8E;}
.tag-bad{background:#FBE5E5;color:#B33333;}
.tag-hold{background:#FFEBD6;color:#8A5410;}
.tag-cancel{background:#E8E8EC;color:#6A6A78;}

.link{border:none;background:none;color:var(--brand-2);cursor:pointer;font-size:12.5px;
  padding:0 6px;font-family:inherit;}
.link:hover{text-decoration:underline;}
.link.danger{color:var(--red);}

.pager{display:flex;align-items:center;gap:12px;margin-top:12px;}
.pg-info{font-size:12.5px;color:var(--text-2);}
.pg-size{height:30px;border:1px solid var(--line);border-radius:7px;background:#fff;font-size:12.5px;padding:0 8px;}

/* 弹窗 */
.modal{position:fixed;inset:0;background:rgba(8,32,58,.55);display:flex;align-items:center;
  justify-content:center;z-index:60;padding:24px;}
.modal.hide{display:none;}
.modal-box{background:#fff;border-radius:12px;width:min(1100px,96vw);max-height:92vh;display:flex;flex-direction:column;
  box-shadow:0 30px 80px rgba(0,0,0,.35);}
.modal-head{display:flex;align-items:center;justify-content:space-between;padding:11px 20px;border-bottom:1px solid var(--line);}
.modal-head h2{font-size:13px;color:#6b829c;letter-spacing:.5px;}
.modal-body{overflow:auto;padding:18px 20px;}
.modal-foot{display:flex;justify-content:flex-end;gap:10px;padding:14px 20px;border-top:1px solid var(--line);background:#FAFCFE;border-radius:0 0 12px 12px;}

/* 详情 */
.detail-head{display:flex;gap:16px;align-items:center;padding-bottom:16px;border-bottom:1px dashed var(--line);margin-bottom:16px;}
.dh-seq{background:#FDF1DF;color:#8a5f13;font-weight:700;padding:10px 14px;border-radius:8px;font-family:Consolas,monospace;}
/* 详情左侧：货物状态大标签（替代原序号块）；序号降为小灰字放副标题末 */
.dh-status{font-size:14px;font-weight:700;padding:12px 16px;border-radius:10px;white-space:nowrap;line-height:1.2;
  background:#EDF3FA;color:#3f5f80;box-shadow:0 1px 0 rgba(255,255,255,.6) inset;}
.dh-status.s-done{background:#E7EBF0;color:#4F5F6E;}
.dh-status.s-arrive{background:#FFF3C9;color:#836408;}
.dh-status.s-sent{background:#E1F5E7;color:#20753F;}
.dh-status.s-stock{background:#FCE3EF;color:#A9305F;}
.dh-status.s-wait{background:#EDF1F5;color:#647A8E;}
.dh-status.s-bad{background:#FBE5E5;color:#AB2E2E;}
.dh-status.s-hold{background:#FFEBD6;color:#8A5410;}
.dh-status.s-cancel{background:#E8E8EC;color:#6A6A78;}
.dh-status.s-plain{background:#EDF3FA;color:#3f5f80;}
.dh-seq-mini{font-size:11.5px;color:#93A9BE;margin-left:4px;}
.dh-sales{font-size:11.5px;color:#93A9BE;margin-left:6px;white-space:nowrap;}
.dh-title{font-size:17px;font-weight:700;margin-bottom:5px;}
.dh-sub{font-size:12.5px;color:var(--text-2);}
.dh-sub2{margin-top:4px;}
.detail-group{margin-bottom:18px;}
.detail-group h4{font-size:13px;color:var(--brand-2);margin-bottom:8px;padding-left:8px;border-left:3px solid var(--accent);}
.detail-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:0 18px;
  background:transparent;border:0;border-top:1px solid var(--line);border-radius:0;overflow:visible;}
.dg-item{background:transparent;padding:7px 2px 7px 0;display:flex;align-items:baseline;gap:10px;
  border-bottom:1px dashed #EEF3FA;}
.dg-k{font-size:11.5px;color:var(--text-3);min-width:58px;flex:0 0 auto;}
.dg-v{font-size:13px;color:var(--text);word-break:break-all;flex:1 1 auto;}

/* 表单 */
.form-group{border:1px solid var(--line);border-radius:10px;padding:14px 16px 16px;margin-bottom:14px;}
.form-group legend{font-size:12.5px;color:var(--brand-2);font-weight:600;padding:0 8px;}
.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px 14px;}
.form-item{display:flex;flex-direction:column;gap:5px;}
.form-item.wide{grid-column:span 2;}
.form-item span{font-size:12px;color:var(--text-2);}
.form-item input,.form-item select{height:34px;padding:0 9px;border:1px solid var(--line);border-radius:7px;
  font-size:13px;background:#FAFCFE;outline:none;font-family:inherit;color:var(--text);}
.form-item input:focus,.form-item select:focus{border-color:var(--brand-2);background:#fff;}
.calc-tip{margin-top:6px;font-size:12px;color:var(--text-3);line-height:1.7;}
/* 只读公式字段 & 行内提示 */
.form-item input.ro{background:#F3F7FC;color:#607F9C;cursor:default;}
.form-item input::placeholder{color:#A7BAD0;}
.hint-inline{font-size:11px;color:var(--text-3);line-height:1.4;}

/* 账号 */
.stack{display:flex;flex-direction:column;gap:12px;}
.row-form{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px;}
.row-form input,.row-form select{height:34px;padding:0 10px;border:1px solid var(--line);border-radius:7px;font-size:13px;background:#FAFCFE;outline:none;}
.row-form input{width:130px;}
.user-list{display:flex;flex-direction:column;gap:8px;}
.user-row{display:grid;grid-template-columns:1fr 1fr 90px 100px 60px;align-items:center;
  padding:9px 12px;border:1px solid var(--line);border-radius:8px;font-size:13px;}
.u-name{font-weight:600;}
.u-real,.u-role,.u-self{color:var(--text-2);font-size:12.5px;}
.empty{color:var(--text-3);font-size:13px;padding:18px 0;text-align:center;}

@media (max-width:900px){
  .filter-bar input[type=text]{width:100%;}
  .topbar{gap:12px;padding:0 12px;}
  .app-name{display:none;}
}

/* 勾选框与对账标记 */
.chk{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 10px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--text-2);font-size:12.5px;cursor:pointer;}
.chk input{width:16px;height:16px;accent-color:#0E8A5C;cursor:pointer;}
.ok-chk{color:#0E8A5C;font-weight:700;}
.no-chk{color:var(--text-3);}

/* 顶部关键数字条 */
.kpi-bar{display:flex;flex-wrap:wrap;gap:8px;padding:10px;border-radius:12px;background:#EEF5FD;border:1px solid #D8E6F5;margin-bottom:14px;}
.kpi-cell{flex:1 1 92px;min-width:88px;display:flex;flex-direction:column;gap:2px;padding:7px 9px;border-radius:9px;background:#fff;border:1px solid #E4EEF9;}
.kpi-k{font-size:11px;color:#6E86A0;letter-spacing:.4px;}
.kpi-v{font-size:17px;font-weight:700;color:#12283F;line-height:1.15;}
.kpi-sub{font-size:10.5px;color:#8AA0B8;}
.kpi-cell.g .kpi-v{color:#0E8A5C;}
.kpi-cell.neg .kpi-v{color:#C0392B;}
/* 折叠长分组 */
.more-fields{margin-top:8px;border-top:1px dashed #DEE9F5;padding-top:6px;}
.more-fields summary{cursor:pointer;font-size:12px;color:#4F6C8C;list-style:none;padding:2px 0;user-select:none;}
.more-fields summary::-webkit-details-marker{display:none;}
.more-fields summary::before{content:"▸ ";}
.more-fields[open] summary::before{content:"▾ ";}
.more-fields .form-grid{margin-top:8px;}

/* 台账卡片列表 */
.card-list{display:flex;flex-direction:column;gap:8px;}
.card{display:flex;gap:14px;align-items:center;justify-content:space-between;padding:11px 14px;background:#fff;border:1px solid #DBE7F4;border-radius:12px;cursor:pointer;transition:border-color .15s,box-shadow .15s;}
.card:hover{border-color:#A9C8E6;box-shadow:0 2px 10px rgba(30,115,216,.10);}
.card-main{min-width:0;flex:1 1 auto;display:flex;flex-direction:column;gap:5px;}
.card-top{display:flex;align-items:center;gap:8px;min-width:0;}
.card-title{font-weight:700;font-size:15px;color:#0F3355;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:44vw;}
/* 列表卡片上的货物状态：实心大标签，放最左侧 */
.card-tag{flex:0 0 auto;font-size:12.5px;font-weight:700;padding:4px 11px;border-radius:8px;
  background:#EDF1F5;color:#556575;letter-spacing:.5px;white-space:nowrap;}
.card-tag.t-done{background:#E7EBF0;color:#4F5F6E;}
.card-tag.t-arrive{background:#FFF3C9;color:#836408;}
.card-tag.t-sent{background:#E1F5E7;color:#20753F;}
.card-tag.t-stock{background:#FCE3EF;color:#A9305F;}
.card-tag.t-wait{background:#EDF1F5;color:#647A8E;}
.card-tag.t-bad{background:#FBE5E5;color:#AB2E2E;}
.card-tag.t-hold{background:#FFEBD6;color:#8A5410;}
.card-tag.t-cancel{background:#E8E8EC;color:#6A6A78;}
.card-tag.t-plain{background:#EDF1F5;color:#556575;}
.card-seq{font-size:11.5px;color:#8AA0B8;}
.card-meta{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:12px;color:#6E86A0;}
.card-meta b{color:#2C4660;font-weight:600;}
.card-qty{color:#8AA0B8;}
.card-nums{display:flex;align-items:center;gap:16px;flex:0 0 auto;flex-wrap:wrap;justify-content:flex-end;}
.cn{display:flex;flex-direction:column;align-items:flex-end;gap:1px;min-width:64px;}
.cn span{font-size:10.5px;color:#8fa198;letter-spacing:.3px;}
.cn b{font-size:14.5px;font-weight:700;color:#17304A;font-variant-numeric:tabular-nums;}
.cn.pos b{color:#0E8A5C;}
.cn.neg b{color:#C0392B;}
.cn.margin b{font-size:12.5px;color:#5A7290;font-weight:600;}
.card-ops{display:flex;gap:6px;margin-left:4px;}
@media (max-width:760px){
  .card{flex-direction:column;align-items:stretch;gap:9px;}
  .card-nums{justify-content:space-between;gap:8px;}
  .cn{align-items:flex-start;min-width:0;}
  .card-title{max-width:none;}
}


/* ===== 品牌蓝主题：logo 与顶栏 ===== */
.topbar{background:linear-gradient(90deg,#0B3259 0%,#124C93 60%,#175CB4 100%);}
.topbar .logo{height:38px;width:auto;max-width:210px;background:#fff;border-radius:9px;padding:4px 10px;object-fit:contain;box-shadow:0 2px 8px rgba(0,0,0,.14);}
.brand-logo{height:48px;width:auto;max-width:230px;object-fit:contain;background:#fff;border-radius:9px;padding:6px 10px;border:1px solid #E3EEFA;}
.login-card{padding-top:30px;}

/* ===== 详情页：重点数字条 + 费用币种下拉 ===== */
.detail-head{align-items:flex-start;}
.detail-head .dh-main{flex:1;}
.detail-head .dh-title{font-size:18px;color:#0F3E6E;}
.price-duo{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:16px;}
.price-duo .pd{background:#F4F9FF;border:1px solid #DCE9F8;border-radius:12px;padding:12px 14px;}
.price-duo .pd span{display:block;font-size:12px;color:#8299B2;}
.price-duo .pd b{display:block;font-size:19px;line-height:1.2;color:#0F3E6E;margin:5px 0 3px;letter-spacing:-.01em;}
.price-duo .pd i{font-style:normal;font-size:12px;color:#4A647F;}
.price-duo .pd.pos b{color:#0E8A5C;}
.price-duo .pd.neg b{color:#C93A3A;}
.money-wrap{display:flex;align-items:center;border:1px solid var(--line);border-radius:7px;overflow:hidden;background:#fff;height:34px;}
.money-wrap input{flex:1;min-width:0;height:100%;border:none!important;border-radius:0!important;background:transparent!important;padding:0 9px;}
.money-wrap input:focus{background:#fff!important;}
.money-wrap select.cur{border:none;border-left:1px solid var(--line);background:#F5F9FF;color:#0F3E6E;
  font-weight:700;font-size:13px;width:52px;height:100%;padding:0 4px;cursor:pointer;outline:none;}
.cur-hint{font-size:11.5px;color:#8299B2;margin-left:4px;}
.money-wrap select.cur.mode{width:76px;font-weight:600;}
/* ===== 应收/成本 汇总计算条 ===== */
.calc-slot{margin-top:10px;}
.calc-box{background:#F4F9FF;border:1px solid #DCE9F8;border-left:3px solid #1E73D8;border-radius:10px;padding:10px 14px;}
.calc-box .cb-row{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;padding:3px 0;}
.calc-box .cb-k{font-size:12px;color:#4A647F;min-width:64px;}
.calc-box .cb-row b{font-size:17px;color:#0F3E6E;letter-spacing:-.01em;}
.calc-box .cb-row.strong{border-top:1px dashed #CDE0F4;margin-top:4px;padding-top:7px;}
.calc-box .cb-row.strong b{color:#124C93;}
.calc-box .cb-eq{font-size:12px;color:#6E86A0;}
/* 汇总条与上下分组的呼吸间距 */
.calc-slot{margin:12px 0 22px;}
.calc-box{margin:0;padding:12px 14px 14px;}
.calc-box + .detail-group,.calc-box + .form-group{margin-top:22px;}
.detail-group:has(+ .calc-box){margin-bottom:0;}
/* ===== 对账表 ===== */
.rec-table th{position:sticky;top:0;z-index:2;}
.rec-table td{vertical-align:middle;font-size:13px;}
.rec-table .rec-title{font-weight:600;color:#17304A;max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.rec-table .rec-sub{font-size:11.5px;color:#8299B2;}
.rec-input{width:100px;height:30px;padding:0 8px;border:1px solid #DCE9F8;border-radius:6px;background:#fff;font-size:13px;}
.rec-input:focus{outline:none;border-color:#1E73D8;background:#F4F9FF;}
.rec-table td.neg{color:#C93A3A;font-weight:600;}
.rec-table td.pos{color:#0E8A5C;font-weight:600;}
.rec-table td.miss{color:#B67A1F;font-weight:600;}
.chk-mini{display:inline-flex;align-items:center;gap:5px;font-size:12px;color:#4A647F;cursor:pointer;}
.empty-cell{text-align:center;color:#8299B2;padding:20px 0;}

/* 仓库情况：区块内直接编辑 */
.wh-form { display:flex; flex-direction:column; gap:10px; margin-top:6px; }
.wh-row { display:flex; flex-wrap:wrap; gap:10px 14px; align-items:flex-end; }
.wh-f { display:flex; flex-direction:column; gap:4px; }
.wh-f.w2 { min-width:150px; }
.wh-f > span { font-size:12px; color:#5B7186; }
.wh-edit { border:1px solid #C6D8E8; background:#fff; border-radius:8px; padding:6px 9px; font-size:13px; color:#22364A; min-width:120px; outline:none; }
.wh-edit:focus { border-color:#2F7DBF; box-shadow:0 0 0 3px rgba(47,125,191,.13); }
.wh-edit[type="date"] { min-width:140px; }
.wh-box { display:flex; align-items:center; gap:6px; background:#fff; border:1px solid #D3E2EF; border-radius:10px; padding:6px 8px; }
.wh-box > b { font-size:12px; color:#2F7DBF; min-width:28px; }
.wh-box .wh-edit { min-width:92px; border:none; background:#F6FAFD; }
.wh-tip { font-size:12px; color:#7C8FA3; }
.wm-wh i, .wm-wh em { font-style:normal; color:#8CA0B3; margin-right:3px; font-size:12px; }
.wm-wh i { color:#2F7DBF; }
.cwh-row { display:flex; gap:12px; }
.cwh-pick { margin-top:6px; font-size:12px; color:#5B7186; }
.card-wh { min-width: 214px; }
.cwh-row { flex-direction: column; gap: 4px; }
.wh-fold { margin: 14px 0 4px; background:#EFF7FE; border:1px solid #D3E7F8; border-left:3px solid #2F7DBF; border-radius:10px; padding:8px 14px; }
.wh-fold summary { cursor:pointer; font-size:13px; color:#1B5C97; font-weight:700; }
.wh-fold summary::marker { color:#2F7DBF; }
.wh-fold .detail-grid { margin-top:8px; }

.locked { background:#F7FAFD !important; border-color:transparent !important; color:#54708A !important; cursor:default; box-shadow:none !important; }
.locked:hover { border-color:#DCE7F2 !important; }
.wh-edit.locked { background:#F2F7FC !important; }

/* 解锁态：浅黄底 + 橙色边框，和锁定态形成明显对比 */
.edit-lock input:not(.locked):not([readonly]),
.edit-lock select:not(.locked),
.edit-lock .wh-edit:not(.locked) {
  background: #FFF8E1 !important;
  border-color: #F0B84B !important;
  color: #7A4A00 !important;
  box-shadow: 0 0 0 2px rgba(240, 184, 75, .18) !important;
}
.edit-lock .locked {
  background: #F2F6FA !important;
  border-color: #E1EAF3 !important;
  color: #7C8FA3 !important;
}

.field-hint {
  position: fixed; z-index: 9999;
  max-width: 280px; padding: 7px 11px;
  background: #22364A; color: #FFF;
  font-size: 12.5px; line-height: 1.5;
  border-radius: 8px; box-shadow: 0 6px 18px rgba(26, 46, 68, .25);
  pointer-events: none;
}
.field-hint::after {
  content: ''; position: absolute; left: 50%; bottom: -5px;
  width: 10px; height: 10px; margin-left: -5px;
  background: #22364A; transform: rotate(45deg);
}

/* 锁定态更彻底：看起来就是普通文字，双击才变成输入框 */
.edit-lock input.locked,
.edit-lock select.locked,
.edit-lock textarea.locked {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  appearance: none;
  -webkit-appearance: none;
  padding: 2px 0 !important;
  color: #22364A !important;
  font-weight: 600;
  cursor: default;
  width: 100%;
}
.edit-lock select.locked { background-image: none !important; padding-right: 0 !important; }
/* 带货币下拉的金额框：锁定时整体变成一行文字 */
.edit-lock .form-item:has(input.locked) .money-wrap {
  border: none !important; background: transparent !important; box-shadow: none !important; padding: 0 !important;
}
.edit-lock .form-item:has(input.locked) .cur {
  background: transparent !important; border: none !important; color: #93A9BE !important;
  padding: 0 0 0 2px !important; width: 24px; appearance: none; -webkit-appearance: none;
  font-weight: 400;
}
.edit-lock .form-item:has(input.locked) .cur { cursor: default; }
/* 锁定时标签更轻，数值更突出 */
.edit-lock .form-item > span { color: #8CA0B3; font-size: 12px; }
.edit-lock .wh-box.locked,
.edit-lock .wh-edit.locked { background: transparent !important; border: none !important; box-shadow: none !important; padding-left: 0 !important; }
.edit-lock .wh-box { border: none !important; padding: 0 !important; background: transparent !important; }

.edit-lock input[type="checkbox"].locked,
.edit-lock input[type="radio"].locked { appearance: auto; -webkit-appearance: auto; width: auto; padding: 0 !important; }
.edit-lock input[type="date"].locked { appearance: auto; -webkit-appearance: auto; }

.wh-fold-h { font-size: 13px; color: #1B5C97; font-weight: 700; margin-bottom: 10px; }

/* 数字输入框不显示上下箭头 */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

/* 应收指标条：客单价 × 计费量 = 客户运费 + 其他应收 = 总应收 */
.recv-kpi { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.rk { background: #F5FAFF; border: 1px solid #DCEAF7; border-radius: 8px; padding: 6px 12px 7px; min-width: 104px; }
.rk span { display: block; font-size: 11.5px; color: #8AA0B4; margin-bottom: 2px; }
.rk b { display: block; font-size: 15px; font-weight: 700; color: #12395F; line-height: 1.25; }
.rk b i { font-style: normal; font-size: 11px; font-weight: 400; color: #8AA0B4; }
.rk.quote { background: #EEF6FF; border-color: #CFE2F8; }
.rk.quote b { color: #0B63B8; }
.rk.total { background: #FFF4EC; border-color: #F3D2BB; }
.rk.total span { color: #B4703E; }
.rk.total b { color: #C2410C; font-size: 16px; }
.rk-op { color: #A7BCCE; font-weight: 700; font-size: 15px; }

/* 单价：数字框与单位下拉等宽，各占一半 */
.money-wrap:has(select.cur.mode) { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.money-wrap:has(select.cur.mode) input { width: 100% !important; min-width: 0; }
.money-wrap:has(select.cur.mode) select.cur.mode { width: 100% !important; min-width: 0; text-align: center; text-align-last: center; }
.edit-lock .form-item:has(input.locked) .cur.mode { width: 100% !important; }

/* 单价（数字+方式下拉）：锁定与编辑状态几何完全一致，切换不跳宽 */
.form-item:has(select.cur.mode) .money-wrap {
  border: 1px solid #D9E3EE !important;
  background: #fff !important;
  height: 34px;
  padding: 0 !important;
  box-sizing: border-box;
}
.form-item:has(select.cur.mode) .money-wrap input {
  padding: 0 8px !important;
  height: 100% !important;
  box-sizing: border-box;
}
.form-item:has(select.cur.mode) .money-wrap select.cur.mode {
  padding: 0 4px !important;
  height: 100% !important;
  box-sizing: border-box;
  border-left: 1px solid #E3EBF3 !important;
  text-align: center;
  text-align-last: center;
}
/* 锁定态：只换底色和文字颜色，尺寸与边框一律不动 */
.edit-lock .form-item:has(select.cur.mode):has(input.locked) .money-wrap {
  border-color: #E7EEF6 !important;
  background: #FCFDFF !important;
}
.edit-lock .form-item:has(select.cur.mode) input.locked {
  font-weight: 600 !important;
}

/* 所有金额框统一几何：数字固定 84px，单位紧随其后；锁定/编辑完全同尺寸 */
.money-wrap {
  display: inline-flex !important;
  width: auto !important;
  max-width: 100%;
  align-items: center;
  height: 34px !important;
  padding: 0 !important;
  background: #fff !important;
  border: 1px solid #D9E3EE !important;
  border-radius: 7px;
  overflow: hidden;
  box-sizing: border-box;
}
.money-wrap input {
  flex: 0 0 84px !important;
  width: 84px !important;
  min-width: 0 !important;
  height: 100% !important;
  padding: 0 8px !important;
  border: none !important;
  background: transparent !important;
  box-sizing: border-box;
}
.money-wrap select.cur {
  flex: 0 0 44px !important;
  width: 44px !important;
  height: 100% !important;
  padding: 0 2px !important;
  border: none !important;
  border-left: 1px solid #E7EEF6 !important;
  background: #F6FAFF !important;
  color: #4A6A88 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  text-align: center;
  text-align-last: center;
  box-sizing: border-box;
}
.money-wrap select.cur.mode {
  flex: 0 0 76px !important;
  width: 76px !important;
  text-align: center;
  text-align-last: center;
}
/* 锁定态：只改颜色，不碰任何尺寸 */
.edit-lock .form-item:has(input.locked) .money-wrap {
  border-color: #E7EEF6 !important;
  background: #FBFDFF !important;
}
.edit-lock .form-item:has(input.locked) .money-wrap input {
  padding: 0 8px !important;
  font-weight: 600;
}
.edit-lock .form-item:has(input.locked) .cur,
.edit-lock .form-item:has(input.locked) .cur.mode {
  background: transparent !important;
  border-left: 1px solid #EDF3F9 !important;
  color: #93A9BE !important;
  padding: 0 2px !important;
  width: auto !important;
}
.edit-lock .form-item:has(input.locked) select.cur { flex: 0 0 44px !important; width: 44px !important; }
.edit-lock .form-item:has(input.locked) select.cur.mode { flex: 0 0 76px !important; width: 76px !important; }

/* ===== 发货单详情/编辑 新版 UI ===== */
#modalBody { padding: 16px 18px 4px; }

/* 顶部信息条 */
.detail-head {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; margin-bottom: 12px;
  background: #F6FAFE; border: 1px solid #E3EDF7; border-radius: 10px;
}
.dh-status { flex: 0 0 auto; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.dh-main { min-width: 0; }
.dh-title { font-size: 17px; font-weight: 700; color: #16334D; line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dh-sub { font-size: 12.5px; color: #7D93A8; margin-top: 3px; }
.dh-sales { color: #9BB0C4; }

/* 顶部四个数字 */
.price-duo { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.price-duo .pd { background: #fff; border: 1px solid #E4EDF6; border-radius: 9px; padding: 9px 13px; }
.price-duo .pd span { display: block; font-size: 11.5px; color: #8CA0B3; margin-bottom: 3px; }
.price-duo .pd b { font-size: 16px; font-weight: 700; color: #16334D; letter-spacing: .2px; }
.price-duo .pd.pos b { color: #0E8A5C; }
.price-duo .pd.neg b { color: #C93A3A; }

/* 区块卡片 */
.fx-sec { background: #fff; border: 1px solid #E6EEF6; border-radius: 10px; padding: 12px 14px 13px; margin-bottom: 12px; }
.fx-sec-h { font-size: 13px; font-weight: 700; color: #1B5C97; padding-left: 9px;
  border-left: 3px solid #2E7FD1; line-height: 1.2; margin-bottom: 10px; }

/* 字段网格：标签右对齐 + 值区固定行高 */
.fx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 18px; }
@media (max-width: 900px) { .fx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .fx-grid { grid-template-columns: 1fr; } }
.fx-it { display: flex; align-items: center; gap: 8px; min-width: 0; height: 34px;
  border-bottom: 1px dashed #EFF4F9; }
.fx-it.fx-wide { grid-column: span 2; }
.fx-lb { flex: 0 0 76px; text-align: right; font-size: 12px; color: #8CA0B3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-ctl { flex: 1 1 auto; min-width: 0; }

/* 所有可编辑控件：边框常驻（锁定时透明），切换不跳尺寸 */
.fx-ctl input, .fx-ctl select {
  width: 100%; height: 28px; padding: 0 7px; font-size: 13px; font-family: inherit;
  color: #1E3448; background: transparent; border: 1px solid transparent;
  border-radius: 5px; outline: none; box-sizing: border-box;
}
.fx-ctl input::placeholder { color: #AFC0D1; }
.fx-ctl input.locked, .fx-ctl select.locked { color: #1E3448; font-weight: 600; }
/* 解锁后可编辑：浅黄底 + 橙边框 */
.edit-lock .fx-ctl input:not(.locked),
.edit-lock .fx-ctl select:not(.locked) { background: #FFF9E6; border-color: #E9B44C; }
.fx-ctl input.ro { color: #5E7C99; background: #F5F9FD; border-color: #EAF1F8; }
.fx-ctl input[type="number"] { -moz-appearance: textfield; }
.fx-ctl input[type="number"]::-webkit-outer-spin-button,
.fx-ctl input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* 金额：数字 + 单位，两者宽度在锁定/编辑时完全一致 */
.fx-money { display: flex; align-items: center; height: 28px; }
.fx-money input { flex: 1 1 auto; min-width: 0; }
.fx-money select.fx-u {
  flex: 0 0 44px; width: 44px; padding: 0; text-align: center; text-align-last: center;
  font-size: 12px; color: #7D93A8; border-left: 1px solid transparent;
  -webkit-appearance: none; appearance: none;
}
.fx-money select.fx-u.fx-u-lg { flex: 0 0 68px; width: 68px; }
.edit-lock .fx-money select.fx-u:not(.locked) { border-left-color: #E9B44C; }
.fx-money select.fx-u.locked { border-left-color: #E9F0F7; color: #93A9BE; }

/* 勾选项 */
.fx-chk { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #1E3448; }

/* 应收关系条 */
.recv-kpi { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.rk { background: #F5FAFF; border: 1px solid #DCEAF7; border-radius: 8px; padding: 6px 12px 7px; min-width: 100px; }
.rk span { display: block; font-size: 11.5px; color: #8AA0B4; margin-bottom: 2px; }
.rk b { display: block; font-size: 14px; font-weight: 700; color: #16334D; line-height: 1.3; }
.rk b i { font-style: normal; font-size: 11px; font-weight: 400; color: #8AA0B4; }
.rk.quote { background: #EEF6FF; border-color: #CFE2F8; }
.rk.quote b { color: #0B63B8; }
.rk.total { background: #FFF4EC; border-color: #F3D2BB; }
.rk.total span { color: #B4703E; }
.rk.total b { color: #C2410C; font-size: 15px; }
.rk-op { color: #A7BCCE; font-weight: 700; font-size: 14px; }

/* 底部提示 */
.calc-tip { font-size: 12px; color: #93A6B9; }

/* 覆盖历史锁定样式，保证新版几何统一 */
.fx-ctl input, .fx-ctl select { padding: 0 7px !important; }
.fx-ctl input.locked, .fx-ctl select.locked {
  background: transparent !important; border-color: transparent !important;
  padding: 0 7px !important; color: #1E3448 !important; font-weight: 600; cursor: default;
}
.edit-lock .fx-ctl input:not(.locked), .edit-lock .fx-ctl select:not(.locked) {
  background: #FFF9E6 !important; border-color: #E9B44C !important;
}
.fx-money select.fx-u {
  padding: 0 !important; width: 44px !important; flex: 0 0 44px !important;
  border: none !important; border-left: 1px solid #EDF3F9 !important;
  border-radius: 0 !important; background: transparent !important;
  height: 24px !important; color: #93A9BE !important;
}
.fx-money select.fx-u.fx-u-lg { width: 68px !important; flex: 0 0 68px !important; }
.edit-lock .fx-money select.fx-u:not(.locked) {
  background: #FFF9E6 !important; border-left-color: #E9B44C !important; color: #6B5940 !important;
}
.fx-money input { padding: 0 7px !important; }

/* 金额：数字与单位紧邻，不再被推到行尾 */
.fx-money { display: inline-flex !important; width: auto !important; max-width: 100%; align-items: center; }
.fx-money input { flex: 0 0 92px !important; width: 92px !important; min-width: 0 !important; }
.fx-money select.fx-u { flex: 0 0 44px !important; width: 44px !important; }
.fx-money select.fx-u.fx-u-lg { flex: 0 0 68px !important; width: 68px !important; }

/* 自动计算的只读字段：不要显示成可编辑的黄色 */
.fx-ctl input.ro,
.edit-lock .fx-ctl input.ro {
  background: #F4F8FC !important;
  border-color: #E6EEF7 !important;
  color: #587793 !important;
  font-weight: 600;
  cursor: default;
}

/* 标签列稍宽，避免「垫付运费(成本)」被截断 */
.fx-lb { flex: 0 0 88px !important; font-size: 11.5px !important; }

/* 价格信息：左应收、右成本 两列 */
.price-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; }
.price-col { min-width: 0; }
.pc-h { font-size: 12px; font-weight: 700; color: #5C7A96; letter-spacing: .5px;
  padding: 0 0 4px 9px; border-left: 3px solid #B9D3EC; margin-bottom: 2px; }
@media (max-width: 760px) { .price-2col { grid-template-columns: 1fr; gap: 14px; } }

/* 金额：宽度统一、紧贴 */
.fx-money input { flex: 0 0 112px !important; width: 112px !important; }
.fx-ctl .fx-it { border-bottom: 1px dashed #F1F5F9; }

/* 金额控件铺满整行：数字区自适应，单位固定在行尾，右侧不再留空白 */
.fx-money { display: flex !important; width: 100% !important; max-width: 100%; align-items: center; }
.fx-money input { flex: 1 1 auto !important; width: auto !important; min-width: 0 !important; }
.fx-money select.fx-u { flex: 0 0 46px !important; width: 46px !important; }
.fx-money select.fx-u.fx-u-lg { flex: 0 0 72px !important; width: 72px !important; }
/* 单位区加一点点浅底，视觉上收住行尾 */
.fx-money select.fx-u { border-left: 1px solid #EDF3F9 !important; background: #FAFCFF !important; }
.edit-lock .fx-money select.fx-u:not(.locked) { border-left-color: #E9B44C !important; background: #FFF9E6 !important; }
.fx-money select.fx-u.locked { background: transparent !important; }

/* 锁定字段整格不可点，双击由外层捕捉解锁 */
.fx-ctl input.locked, .fx-ctl select.locked { pointer-events: none; }
.fx-ctl .fx-it { cursor: default; }

/* 方式下拉：空值时只显示一个箭头，不写「方式」字样 */
.fx-money select.fx-u {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M0 0h10L5 6z' fill='%23A9BCCB'/></svg>");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 14px !important;
  text-align: left !important;
  text-align-last: left !important;
  text-overflow: ellipsis;
}
.fx-money select.fx-u:not(.locked)::selection { background: transparent; }
/* 选中具体方式时留出箭头的空间 */
.fx-money select.fx-u.fx-u-lg { padding-right: 15px !important; }

/* 长文本字段整行铺满，避免三列网格排得参差 */
.fx-it.fx-wide { grid-column: 1 / -1 !important; }

/* 方式下拉的箭头（覆盖此前的 background 简写） */
.fx-money select.fx-u {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M0 0h10L5 6z' fill='%23A9BCCB'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: right 5px center !important;
  background-size: 9px 6px !important;
  padding-right: 16px !important;
  text-align: left !important;
  text-align-last: left !important;
}
/* 单位区宽度统一，行尾对齐 */
.fx-money select.fx-u { flex: 0 0 48px !important; width: 48px !important; }
.fx-money select.fx-u.fx-u-lg { flex: 0 0 76px !important; width: 76px !important; }

/* 只读/禁用字段统一观感（密度、各类自动计算项） */
.fx-ctl input[disabled],
.fx-ctl input.ro,
.edit-lock .fx-ctl input[disabled] {
  background: #F4F8FC !important;
  border-color: #E6EEF7 !important;
  color: #587793 !important;
  font-weight: 600;
  cursor: default;
  -webkit-text-fill-color: #587793;
  opacity: 1;
}

/* 金额行在锁定态也读得懂：数字区占满，单位紧随其后形成一条完整控件 */
.fx-money { border-radius: 5px; overflow: hidden; }
.fx-money input.locked {
  background: #FAFCFF !important;
  border: 1px solid #EDF3F9 !important;
  border-right: none !important;
  border-radius: 5px 0 0 5px !important;
}
.fx-money select.fx-u.locked {
  background: #F6FAFE !important;
  border: 1px solid #EDF3F9 !important;
  border-left: 1px solid #EDF3F9 !important;
  border-radius: 0 5px 5px 0 !important;
  color: #7F96AC !important;
}
.fx-money input.ro {
  border-right: none !important;
  border-radius: 5px 0 0 5px !important;
}
/* 锁定时的占位符用浅灰，不要跟着正文变深 */
.fx-ctl input.locked::placeholder { color: #AFC0D1 !important; font-weight: 400 !important; }
/* 编辑态保持整条连续 */
.edit-lock .fx-money input:not(.locked) { border-right: none !important; border-radius: 5px 0 0 5px !important; }
.edit-lock .fx-money select.fx-u:not(.locked) { border-left: 1px solid #E9B44C !important; border-radius: 0 5px 5px 0 !important; }

/* 恢复方式下拉箭头（此前的底色简写把箭头图覆盖了） */
.fx-money select.fx-u {
  background-color: #FBFDFF !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M0 0h10L5 6z' fill='%23A9BCCB'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: right 7px center !important;
  background-size: 9px 6px !important;
  padding-right: 18px !important;
}
.edit-lock .fx-money select.fx-u:not(.locked) { background-color: #FFF9E6 !important; }

/* 仓库图片区块 */
.wh-imgs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wi { position: relative; width: 84px; height: 64px; border-radius: 6px; overflow: hidden;
  border: 1px solid #E3ECF5; background: #F7FAFD; }
.wi img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.wi-x { position: absolute; top: 2px; right: 2px; width: 16px; height: 16px; line-height: 15px;
  text-align: center; border-radius: 50%; background: rgba(16,42,66,.72); color: #fff;
  font-size: 12px; cursor: pointer; font-weight: 400; }
.wh-add { position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 84px; height: 64px; border: 1px dashed #C7D9EA; border-radius: 6px;
  color: #7E97AD; font-size: 12px; cursor: pointer; background: #FCFEFF; }
.wh-add:hover { border-color: #2E7FD1; color: #2E7FD1; }
.wh-add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.wh-imgs.busy { opacity: .6; }
.fx-it.fx-wide .fx-ctl .wh-imgs { padding: 4px 0 2px; }

/* 图片行需要额外高度，避免缩略图被行高裁切 */
.fx-it.fx-imgrow { height: auto; min-height: 74px; align-items: center; padding: 6px 0; }
.fx-it.fx-imgrow .fx-lb { align-self: center; }
.fx-it.fx-imgrow .fx-ctl { padding: 2px 0; }

/* 留痕：标题下的最近改动人 + 右键气泡 */
.dh-edit { margin-top: 4px; font-size: 12px; color: #7E97AD; }
.tip-pop { position: fixed; z-index: 9999; width: 250px; padding: 10px 12px; border-radius: 8px;
  background: #0F2740; color: #E8F1FA; box-shadow: 0 8px 24px rgba(9,25,40,.35);
  font-size: 12px; line-height: 1.6; pointer-events: none; }
.tip-pop .tp-h { font-size: 12px; color: #8FB6D8; margin-bottom: 4px; }
.tip-pop .tp-row b { color: #fff; font-weight: 600; }
.tip-pop .tp-f { color: #B9D2E8; }
.tip-pop .tp-more { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.12); color: #9FBBD4; }

/* 留痕气泡里的新旧值列表 */
.tip-pop { width: 300px; }
.tip-pop .tp-list { margin-top: 6px; }
.tip-pop .tp-d { display: flex; align-items: center; gap: 6px; padding: 2px 0; }
.tip-pop .tp-d .tp-k { flex: 0 0 66px; color: #8FB6D8; }
.tip-pop .tp-d .tp-o { color: #F0A9A9; text-decoration: line-through; max-width: 78px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tip-pop .tp-d i { color: #6E8CA6; font-style: normal; }
.tip-pop .tp-d .tp-n { color: #8FE0B0; max-width: 78px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

