/*
 * View 样式：finance table and footer 20261124。
 * 源码：frontend/src/views/styles/112-finance-table-and-footer-20261124.css
 * 依赖：页面 DOM 的既有 class/id；加载位置由 frontend/src/modules.json 决定。
 * 维护：保留选择器作用域及层叠顺序；修改后构建并检查桌面/手机布局。
 */

/* 财务：订单计费明细（桌面为表格，手机仍为卡片）。配色与订单卡片一致：
   墨绿 #18302f / 主绿 #17634e / 辅助灰 #788580 / 线 #e1e9e4 / 卡片底 #f7faf8 / 费用底 #eaf2ef */
.accounting-order-list.acc-table{display:block;overflow-x:auto;border:1px solid #e1e9e4;border-left:3px solid #54877b;border-radius:13px;background:#f7faf8;box-shadow:inset 0 1px 0 #ffffffcc,0 2px 7px #28473509;margin:10px 0}
.acc-table .acc-row{display:grid;grid-template-columns:minmax(128px,1.1fr) minmax(100px,.9fr) minmax(200px,2.2fr) 84px minmax(104px,.95fr) 96px 92px 104px 58px;align-items:center;gap:10px;min-width:1000px;padding:9px 14px;border-top:1px solid #e8eee9;font-size:12px;color:#18302f;background:#fbfdfc}
.acc-table.acc-agency .acc-row{grid-template-columns:minmax(128px,1.1fr) minmax(100px,.9fr) minmax(200px,2.2fr) 84px minmax(104px,.95fr) 96px 92px 104px 104px 58px;min-width:1100px}
.acc-table .acc-head{position:sticky;top:0;z-index:1;border-top:0;background:#eaf2ef;color:#657f77;font-size:11px;padding-top:8px;padding-bottom:8px}
.acc-table .acc-row>*{min-width:0}
.acc-table .num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.acc-table .acc-item:hover>.acc-row{background:#f3f8f5}
.acc-no{display:block;font-weight:700;color:#18302f;font-variant-numeric:tabular-nums;white-space:nowrap}
.acc-tag{display:inline-block;margin-top:3px;padding:2px 6px;border-radius:999px;font-size:10px;line-height:1.35;white-space:nowrap;color:#9c7069;background:#f5efec}
.acc-tag[data-state=done]{color:#5b7b67;background:#edf4ee}
.acc-tag[data-state=cancelled]{color:#87908b;background:#f0f2f0}
.acc-who{display:flex;flex-direction:column;align-items:flex-start;gap:3px}
.acc-user,.acc-company{max-width:100%;padding:1px 6px;border-radius:3px;font-size:10.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.acc-user{background:#eef2ef;color:#52665c}
.acc-company{background:#e8eef9;color:#345c8a}
.acc-line{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.acc-sub{display:block;color:#788580;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.acc-route b{font-weight:600;color:#18302f}
.acc-dot{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;margin:0 5px 0 0;border-radius:5px;background:#f1f3f4;color:#8a9197;font-size:9px;font-style:normal;vertical-align:1px}
.acc-dot+b+.acc-dot{margin-left:10px}
.acc-wait{color:#9c7069}
.acc-total{font-weight:700;color:#17634e;font-size:13px}
.acc-table .acc-toggle{margin:0!important;min-height:28px!important;padding:3px 8px!important;font-size:11px!important;border-radius:8px!important;justify-self:end}
.acc-table .acc-toggle[aria-expanded=true]{background:#eaf2ef!important;border-color:#d3e3da!important;color:#17634e!important}
.acc-table .acc-detail{min-width:1000px;padding:12px 14px 14px;background:#f7faf8;border-top:1px solid #e8eee9;font-size:12px;color:#657f77}
.acc-table.acc-agency .acc-detail{min-width:1100px}
.acc-calc{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}
.acc-calc.has-customer{grid-template-columns:repeat(4,minmax(0,1fr)) minmax(0,1.1fr)}
.acc-step{position:relative;display:flex;flex-direction:column;gap:6px;min-width:0;padding:10px 12px;background:#fbfdfc;border:1px solid #e2eae6;border-radius:9px;box-shadow:0 1px 2px #27463406}
.acc-step+.acc-step::before{content:'→';position:absolute;left:-17px;top:50%;transform:translateY(-50%);color:#a3b0a9;font-size:13px}
.acc-calc>.acc-step:nth-child(3)::before{content:'+'}
.acc-calc>.acc-step:nth-child(4)::before{content:'='}
.acc-calc>.acc-step:nth-child(5)::before{content:'';left:-12px;top:10px;bottom:10px;transform:none;border-left:1px dashed #d3ddd7}
.acc-step h5{display:flex;align-items:center;gap:6px;margin:0;font-size:11px;font-weight:600;color:#657f77}
.acc-step h5 i{display:inline-grid;place-items:center;width:17px;height:17px;border-radius:5px;background:#f1f3f4;color:#8a9197;font-style:normal;font-size:10px}
.acc-formula{font-size:11.5px;line-height:1.65;color:#788580;font-variant-numeric:tabular-nums}
.acc-formula b{color:#18302f;font-weight:600}
.acc-note{color:#a3b0a9;font-size:10.5px}
.acc-result{margin-top:auto;font-size:17px;font-weight:700;color:#18302f;font-variant-numeric:tabular-nums}
.acc-step.is-total{background:#eaf2ef;border-color:#d3e3da}
.acc-step.is-total h5 i{background:#d9e9e0;color:#17634e}
.acc-step.is-total .acc-result{font-size:19px;color:#17634e}
.acc-step.is-customer{background:#f4f7fc;border-color:#dbe4f3}
.acc-step.is-customer h5 i{background:#e8eef9;color:#345c8a}
.acc-step.is-customer .acc-result{color:#345c8a}
.acc-step.is-wait{border-style:dashed}
.acc-step.is-wait .acc-result{font-size:13px;font-weight:600}
.acc-goods{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:12px}
.acc-goods-label{font-size:11px;color:#788580;margin-right:2px}
.acc-good{padding:2px 8px;border-radius:999px;background:#fff;border:1px solid #e2eae6;font-size:11px;color:#657f77;font-variant-numeric:tabular-nums}
.acc-good b{color:#18302f;font-weight:600}
.acc-mismatch{margin:10px 0 0;font-size:11px;color:#9c7069}
/* 页面底部：贴在页面最底部，与页面同底色，无边框、无白底 */
@media(min-width:851px){
 body.signed>main:has(>footer.site-foot){display:flex;flex-direction:column;min-height:100vh}
 body.signed>main:has(>footer.site-foot)>.content{flex:0 0 auto;width:100%}
 body>main>footer.site-foot{display:flex;align-items:center;justify-content:space-between;gap:8px 24px;flex-wrap:wrap;max-width:none;margin:auto 0 0;padding:28px 96px 20px 32px;border:0;background:transparent;font-size:11.5px;color:#a3b0a9}
 footer.site-foot span{margin:0!important;display:inline}
 .site-foot-brand{display:flex;align-items:center;gap:6px;min-width:0}
 .site-foot-brand b{color:#7d8f86;font-weight:600}
 .site-foot-brand .site-foot-tagline::before{content:'·';margin:0 6px 0 0;color:#c2ccc6}
}

.accounting-order-list .acc-user.order-user-tag{display:inline-block;width:fit-content;max-width:100%;padding:2px 7px;border-radius:5px;background:#eef2ef;color:#52665c;margin-top:3px}
