* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 14px; color: #2c3e50; background: #eef1f6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
input, select, button { font-family: inherit; font-size: 14px; }
input, select {
  padding: 8px 11px; border: 1px solid #ccd4dd; border-radius: 6px;
  background: #fff; min-width: 120px; color: #2c3e50;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
input:hover, select:hover { border-color: #b6c1cd; }
input:focus, select:focus { outline: none; border-color: #2f6fae; box-shadow: 0 0 0 3px rgba(47,111,174,.12); }
input:disabled, select:disabled { background: #f3f5f8; color: #99a3ad; cursor: not-allowed; }
#ct-type option[value=""] { color: #9aa4b0; }
button { cursor: pointer; }

/* 细滚动条 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c3ccd6; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #a7b2be; }

/* ---------------- 登录 ---------------- */
.login-wrap {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh;
  background: linear-gradient(160deg, #e6edf6 0%, #d6e3f2 55%, #c9d9ee 100%);
}
.login-box {
  width: 380px; padding: 42px 38px; background: #fff; border-radius: 14px;
  box-shadow: 0 12px 40px rgba(26,58,96,.14);
}
.login-box h1 {
  font-size: 24px; text-align: center; margin-bottom: 8px; color: #1f4e79;
  letter-spacing: 2px;
}
.login-sub { text-align: center; color: #8a94a0; margin-bottom: 28px; font-size: 13px; }

/* ---------------- 通用布局 ---------------- */
.field { margin-bottom: 14px; display: flex; flex-direction: column; }
.field label { margin-bottom: 5px; color: #55606e; font-size: 13px; font-weight: 600; }
.field input, .field select { width: 100%; }
.grid2 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 16px; }

.form-inline { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; align-items: center; }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-bottom: 16px; align-items: flex-end; }
.inline-check { flex-direction: row; align-items: center; }
.inline-check label { display: flex; align-items: center; gap: 6px; margin: 0; }
.inline-check input { min-width: auto; width: auto; }
.chk-row { display: flex; flex-wrap: wrap; gap: 14px; }
.chk-row label { display: flex; align-items: center; gap: 5px; font-weight: normal; }
.chk-row input { min-width: auto; width: auto; }
.chip {
  display: inline-block; background: #eef6ff; border: 1px solid #c4d8ef;
  border-radius: 14px; padding: 3px 12px; margin: 2px 6px 2px 0; font-size: 13px;
}
.chip a { color: #c0392b; text-decoration: none; margin-left: 4px; font-weight: bold; }
.cp-row { display: inline-flex; align-items: center; gap: 6px; margin: 4px 12px 4px 0; }
.cp-row input { min-width: 110px; width: 110px; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-block; padding: 9px 22px; border: 1px solid #c6cdd6;
  border-radius: 7px; background: #fff; color: #2c3e50; text-decoration: none;
  text-align: center; line-height: 1.5; font-weight: 500; letter-spacing: .5px;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .05s;
}
.btn:hover { border-color: #aeb8c4; box-shadow: 0 1px 4px rgba(20,40,70,.08); background: #fbfcfd; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: #2f6fae; border-color: #2f6fae; color: #fff; }
.btn.primary:hover { background: #275d94; border-color: #275d94; box-shadow: 0 3px 10px rgba(47,111,174,.28); }
.btn.danger { color: #c0392b; border-color: #e2b8b2; }
.btn.danger:hover { background: #fdf0ee; border-color: #d89a92; box-shadow: none; }
.btn.block { width: 100%; margin-top: 10px; padding: 10px 20px; font-size: 15px; letter-spacing: 4px; }
.btn[disabled], .btn.disabled { background: #eef0f3; border-color: #d7dce2; color: #a2abb5; cursor: not-allowed; box-shadow: none; }
.actions { display: flex; gap: 10px; align-items: center; margin-top: 14px; }
.msg { color: #c0392b; min-height: 18px; margin-top: 8px; font-size: 13px; }
.tip { color: #7d8895; font-size: 12px; margin-bottom: 12px; line-height: 1.7; }

/* ---------------- 顶栏 ---------------- */
header {
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(90deg, #1d3a5f 0%, #22497a 100%);
  color: #fff; padding: 12px 24px; flex-wrap: wrap; gap: 8px;
  box-shadow: 0 2px 10px rgba(15,35,60,.18); position: sticky; top: 0; z-index: 50;
}
.brand { font-size: 19px; font-weight: bold; letter-spacing: 1px; }
.brand::before { content: "■"; color: #5aa3e8; margin-right: 8px; font-size: 14px; }
nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav-item {
  background: transparent; border: none; color: #c6d6ea; padding: 8px 16px;
  border-radius: 6px; font-size: 14px; transition: background .15s, color .15s;
}
.nav-item:hover { background: rgba(255,255,255,.14); color: #fff; }
.nav-item.active { background: #fff; color: #1d3a5f; font-weight: bold; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.user-box { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.user-box a { color: #c6d6ea; text-decoration: none; }
.user-box a:hover { color: #fff; }
.user-box .badge.count { background: #e2544f; color: #fff; }
.todo-wrap { position: relative; }
.todo-wrap .caret { font-size: 10px; margin-left: 3px; color: #c6d6ea; }
.todo-panel {
  position: absolute; right: 0; top: 34px; z-index: 200;
  width: 380px; max-height: 480px; display: flex; flex-direction: column;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15,23,42,.18); color: #334155;
}
.todo-panel-head {
  padding: 10px 14px; font-weight: 700; font-size: 14px; color: #1f3d5f;
  border-bottom: 1px solid #eef2f7;
}
.todo-panel-list { overflow-y: auto; padding: 6px 10px; font-size: 13px; line-height: 1.5; }
.todo-panel-list .todo-item {
  display: block; color: #334155; text-decoration: none;
  padding: 7px 6px; border-bottom: 1px dashed #eef2f7;
}
.todo-panel-list .todo-item:hover { background: #f5f8fc; border-radius: 6px; }
#todo-open-list .todo-item { display: block; color: #334155; text-decoration: none; padding: 7px 6px; border-bottom: 1px dashed #eef2f7; }
#todo-open-list .todo-item:hover { background: #f5f8fc; border-radius: 6px; }
#todo-open-list .todo-item b { color: #dc2626; margin-right: 4px; }
.todo-panel-list .todo-item b { color: #dc2626; margin-right: 6px; }
.todo-panel-foot { padding: 8px 14px; border-top: 1px solid #eef2f7; text-align: center; }
.todo-panel-foot a { color: #2563eb; text-decoration: none; font-size: 13px; }

/* ---------------- 主区 / 面板 ---------------- */
main { max-width: 1600px; margin: 22px auto; padding: 0 20px; }
.view { display: block; }
.panel {
  background: #fff; border-radius: 10px; padding: 20px 24px;
  margin-bottom: 18px; box-shadow: 0 2px 12px rgba(20,45,80,.06);
  border: 1px solid #e4e9f0;
}
.panel h2 {
  font-size: 16px; margin-bottom: 16px; color: #1f3d5f; font-weight: 700;
  padding-left: 10px; border-left: 4px solid #2f6fae; line-height: 1.3;
}

/* ---------------- 统计卡片 ---------------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat {
  background: linear-gradient(180deg, #f4f8fd 0%, #fff 100%);
  border: 1px solid #e2eaf3; border-radius: 10px; padding: 16px 10px; text-align: center;
  transition: transform .12s, box-shadow .12s;
}
.stat:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(20,45,80,.1); }
.stat .num { font-size: 26px; font-weight: bold; color: #2f6fae; }
.stat .lbl { color: #8a94a0; font-size: 13px; margin-top: 5px; }

.price-preview {
  margin-top: 14px; padding: 12px 14px; background: #eef6ff; border-radius: 8px;
  font-size: 15px; font-weight: bold; color: #1f4e79; border: 1px solid #cfe2f5;
}

/* ---------------- 子页签 ---------------- */
.subnav { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.sub-item {
  padding: 7px 18px; border: 1px solid #cdd5df; background: #fff;
  border-radius: 18px; color: #55606e; font-size: 13px;
  transition: all .15s;
}
.sub-item:hover { border-color: #2f6fae; color: #2f6fae; }
.sub-item.active { background: #2f6fae; border-color: #2f6fae; color: #fff; font-weight: 600; }

/* ---------------- 表格 ---------------- */
.table-wrap { overflow: auto; max-height: max(60vh, calc(100vh - 300px)); border: 1px solid #e4e9f0; border-radius: 8px; }
.table-wrap thead th { position: sticky; top: 0; z-index: 2; background: #f2f6fb; box-shadow: 0 1px 0 #e4e9f0; }

/* ---------------- 生产任务预览计划表 ---------------- */
.plan-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.plan-table thead th { background: #1f3d5f; color: #fff; font-size: 15px; font-weight: 700; padding: 10px 12px; white-space: nowrap; border: 1px solid #16304c; text-align: center; }
.plan-table td { padding: 9px 12px; border: 1px solid #e2e7ef; font-size: 14px; }
.plan-table tbody tr:nth-child(even) td { background: #f9fbfd; }
.plan-table td.remark { background: #fdecec; color: #c0392b; font-weight: 700; font-size: 13px; }
.plan-table tr.sum-row td { background: #e6eef7; font-weight: 700; font-size: 15px; color: #1f3d5f; }
.plan-table tr.sum-row td:last-child { text-align: center; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { padding: 10px 12px; border-bottom: 1px solid #edf1f5; text-align: left; white-space: nowrap; }
th { background: #f2f6fb; color: #47566a; font-weight: 600; }
tbody tr:nth-child(even) td { background: #f9fbfd; }
tbody tr { transition: background .12s; }
tbody tr:hover td { background: #eef4fa; }
.p-group td { background: #e6eef7 !important; font-weight: bold; color: #1f3d5f; }
.p-even td { background: #fbfcfe !important; }
td.num, th.num { text-align: right; }
.report-table td:last-child { text-align: right; }
.row-total td { font-weight: bold; background: #f0f4fa !important; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 12px; font-weight: 500; }
.badge.pending { background: #fdecec; color: #c0392b; }
.badge.ok { background: #e8f5e9; color: #2e7d32; }
.badge.warn { background: #fff3e0; color: #e65100; }

/* ---------------- 弹窗 ---------------- */
.modal-mask{position:fixed;inset:0;background:rgba(15,32,52,.55);display:flex;align-items:center;justify-content:center;z-index:99}
.modal{background:#fff;border-radius:12px;padding:20px 24px;min-width:560px;max-width:92vw;box-shadow:0 16px 50px rgba(0,0,0,.28);max-height:88vh;overflow-y:auto}
.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px;font-weight:600;font-size:15px;color:#1f3d5f;border-bottom:1px solid #edf1f5;padding-bottom:10px}
.modal .grid2{display:grid;grid-template-columns:repeat(2,1fr);gap:4px 14px;font-size:14px}
.modal .report-table{margin-top:4px}

/* ---------------- 配合比表 ---------------- */
.spec-cell{white-space:nowrap}
.spec-cell select{width:74px;box-sizing:border-box;margin-right:2px}
.spec-cell input.spec-custom{width:74px;background:#fffbe8}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:6px 14px}
.mix-table{min-width:0}
.mix-table th{font-size:13px;padding:6px 6px}
.mix-table td{padding:5px 4px}
.mix-table td input{width:60px;box-sizing:border-box;font-size:13px;padding:3px 4px}
.mix-table td select{width:74px;box-sizing:border-box;font-size:13px;padding:3px 2px}
.mix-table td.spec-cell input.spec-custom{width:74px}
.mix-table{table-layout:auto;width:auto}
.mix-table th{white-space:normal;word-break:break-all}

/* 配合比编辑器：上部信息紧凑，材料表放大突出 */
#mix-editor .grid3{grid-template-columns:repeat(3,1fr);gap:3px 10px;margin-bottom:4px}
#mix-editor .grid3 .field{margin-bottom:6px}
#mix-editor .grid3 .field label{font-size:12px;margin-bottom:2px;color:#5d6b7a}
#mix-editor .grid3 .field input,
#mix-editor .grid3 .field select{padding:5px 8px;font-size:13px;min-width:80px;border-radius:5px}
#mix-editor .mix-table th{font-size:14px;padding:7px 6px;font-weight:700;background:#eaf1f9;border:1px solid #d8e4f0}
#mix-editor .mix-table td{padding:6px 5px;font-size:14px;border:1px solid #e4e9f0}
#mix-editor .mix-table td input{width:80px;font-size:14px;padding:5px 5px;height:32px;border-radius:5px}
#mix-editor .mix-table td select{width:92px;font-size:14px;padding:5px 2px;height:32px;border-radius:5px}
#mix-editor .mix-table td.spec-cell input.spec-custom{width:92px}
#mix-editor .mix-table tbody tr:hover td{background:#f5f9fd}

/* 原材料库存 只读角色隐藏删除列 */
.ro-hide-del .isf-del { display: none; }

@media (max-width: 900px) {
  .grid2 { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .grid2 { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .form-inline, .filter-row { flex-direction: column; align-items: stretch; }
  .form-inline input, .form-inline select { width: 100%; }
}

/* ================= 手机端优化（≤640px） ================= */
@media (max-width: 640px) {
  body { font-size: 15px; }
  input, select { font-size: 15px; min-width: 0; width: 100%; padding: 9px 8px; }
  input[type=checkbox], .inline-check input, .chk-row input { width: auto; min-width: auto; }

  /* 顶栏：紧凑 + 导航横向滑动 */
  header { padding: 8px 10px; gap: 6px; position: static; }
  .brand { font-size: 16px; }
  .brand::before { display: none; }
  nav { order: 3; width: 100%; flex-wrap: nowrap; overflow-x: auto;
        -webkit-overflow-scrolling: touch; padding-bottom: 2px; gap: 4px; }
  .nav-item { padding: 7px 13px; font-size: 14px; white-space: nowrap; }
  .user-box { font-size: 12px; gap: 8px; }
  .user-box a { padding: 4px 2px; }

  /* 主区 / 面板 */
  main { max-width: 100%; margin: 12px auto; padding: 0 10px; }
  .panel { padding: 14px 12px; border-radius: 8px; margin-bottom: 12px; }
  .panel h2 { font-size: 15px; margin-bottom: 12px; }

  /* 表单 */
  .grid2 { grid-template-columns: 1fr 1fr; gap: 8px 10px; }
  .grid3 { grid-template-columns: 1fr 1fr; gap: 6px 10px; }
  .field { margin-bottom: 10px; }
  .field label { font-size: 12px; }
  .form-inline, .filter-row { gap: 8px; }
  .chk-row { gap: 10px; }

  /* 按钮：加大点击区 */
  .btn { padding: 10px 16px; border-radius: 7px; }
  .btn.block { padding: 12px 16px; font-size: 16px; letter-spacing: 3px; }
  .actions { flex-wrap: wrap; gap: 8px; }

  /* 表格：紧凑 */
  th, td { padding: 8px 8px; font-size: 13px; }
  .table-wrap { border-radius: 6px; }

  /* 子页签：横向滑动 */
  .subnav { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
            padding-bottom: 4px; gap: 6px; }
  .sub-item { white-space: nowrap; padding: 7px 15px; font-size: 13px; }

  /* 登录页 */
  .login-wrap { background: linear-gradient(160deg, #e6edf6 0%, #d6e3f2 55%, #c9d9ee 100%); }
  .login-box { width: 92%; max-width: 380px; padding: 34px 24px; }

  /* 弹窗 */
  .modal { min-width: 0; width: 96%; max-width: 96vw; padding: 14px 12px; border-radius: 10px; }
  .modal .grid2 { grid-template-columns: 1fr 1fr; gap: 4px 8px; }
  .modal-head { font-size: 14px; }

  /* 统计卡 */
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat .num { font-size: 22px; }

  /* 配合比表 */
  .mix-table td input, .mix-table td select { font-size: 12px; padding: 4px 3px; }

  /* 提示条 */
  .tip { font-size: 12px; }

  /* 表格行按钮链接：加大点击 */
  a.u-edit, a.u-del, td a { padding: 3px 2px; }
}

/* ---------- 台账表头勾选筛选 ---------- */
.ledger-tbl th { vertical-align: bottom; }
.ledger-tbl th.th-col { cursor: pointer; white-space: nowrap; user-select: none; }
.ledger-tbl th.th-col:hover { background: #f1f5f9; }
.ledger-tbl .th-arrow { color: #94a3b8; font-size: 11px; margin-left: 2px; font-weight: 400; }
.ledger-tbl th.th-active { background: #fff3e0; color: #e65100; }
.ledger-tbl th.th-active .th-arrow { color: #e65100; font-weight: 700; }
.lf-panel {
  position: fixed; z-index: 999; min-width: 190px; max-width: 280px;
  background: #fff; border: 1px solid #cbd5e1; border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15); overflow: hidden;
  display: flex; flex-direction: column; font-size: 13px;
}
.lf-head {
  display: flex; align-items: center; gap: 6px; padding: 6px 8px;
  border-bottom: 1px solid #e2e8f0; background: #f8fafc; font-weight: 700;
}
.lf-head .btn { font-size: 12px; padding: 2px 8px; margin-left: auto; }
.lf-head .btn + .btn { margin-left: 0; }
.lf-opts { overflow-y: auto; padding: 4px 6px; max-height: 240px; }
.lf-opt { display: flex; align-items: center; gap: 6px; padding: 3px 2px; cursor: pointer; }
.lf-opt:hover { background: #f1f5f9; }
.lf-opt input { margin: 0; }
.lf-opt span { word-break: break-all; }
.ledger-tbl tfoot td { border-top: 2px solid #94a3b8; }
.ledger-tbl tr.led-hl td { background: #fff8e1 !important; }

/* 台账：固定列宽（展开不跳动）+ 前5列横向锁定 + 展开明细底色区分 */
/* 列宽总和 1810px（含 padding，box-sizing 保证 left 精确对齐），超过常见窗口 → 必出横向滚动条 */
.ledger-tbl { table-layout: fixed; width: 1910px; }
.ledger-tbl th, .ledger-tbl td { box-sizing: border-box; padding: 6px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 施工单位/项目名称/部位/附加 允许换行完整显示，不截断 */
.ledger-tbl th:nth-child(3), .ledger-tbl td:nth-child(3),
.ledger-tbl th:nth-child(4), .ledger-tbl td:nth-child(4),
.ledger-tbl th:nth-child(6), .ledger-tbl td:nth-child(6),
.ledger-tbl th:nth-child(10), .ledger-tbl td:nth-child(10) { white-space: normal; overflow: visible; }
.ledger-tbl th:nth-child(1), .ledger-tbl td:nth-child(1) { width: 130px; }
.ledger-tbl th:nth-child(2), .ledger-tbl td:nth-child(2) { width: 70px; }
.ledger-tbl th:nth-child(3), .ledger-tbl td:nth-child(3) { width: 180px; }
.ledger-tbl th:nth-child(4), .ledger-tbl td:nth-child(4) { width: 230px; }
.ledger-tbl th:nth-child(5), .ledger-tbl td:nth-child(5) { width: 120px; }
.ledger-tbl th:nth-child(6), .ledger-tbl td:nth-child(6) { width: 180px; }
.ledger-tbl th:nth-child(7), .ledger-tbl td:nth-child(7) { width: 80px; }
.ledger-tbl th:nth-child(8), .ledger-tbl td:nth-child(8) { width: 70px; }
.ledger-tbl th:nth-child(9), .ledger-tbl td:nth-child(9) { width: 110px; }
.ledger-tbl th:nth-child(10), .ledger-tbl td:nth-child(10) { width: 150px; }
.ledger-tbl th:nth-child(11), .ledger-tbl td:nth-child(11) { width: 70px; }
.ledger-tbl th:nth-child(12), .ledger-tbl td:nth-child(12) { width: 150px; }
.ledger-tbl th:nth-child(13), .ledger-tbl td:nth-child(13) { width: 90px; }
.ledger-tbl th:nth-child(14), .ledger-tbl td:nth-child(14) { width: 80px; }
.ledger-tbl th:nth-child(15), .ledger-tbl td:nth-child(15) { width: 80px; }
.ledger-tbl th:nth-child(16), .ledger-tbl td:nth-child(16) { width: 130px; }
/* 前5列：日期/时间/施工单位/项目名称/客户 横向锁定（left = 前列宽度之和） */
.ledger-tbl th:nth-child(-n+5), .ledger-tbl td:nth-child(-n+5) { position: sticky; z-index: 1; }
.ledger-tbl thead th:nth-child(-n+5) { z-index: 4; }
.ledger-tbl th:nth-child(1), .ledger-tbl td:nth-child(1) { left: 0; }
.ledger-tbl th:nth-child(2), .ledger-tbl td:nth-child(2) { left: 130px; }
.ledger-tbl th:nth-child(3), .ledger-tbl td:nth-child(3) { left: 200px; }
.ledger-tbl th:nth-child(4), .ledger-tbl td:nth-child(4) { left: 380px; }
.ledger-tbl th:nth-child(5), .ledger-tbl td:nth-child(5) { left: 610px; }
.ledger-tbl tbody td:nth-child(-n+5) { background: #fff; }
.ledger-tbl tbody tr.ldetail td:nth-child(-n+5) { background: #f5f7fa; }
.ledger-tbl tfoot td:nth-child(-n+5) { background: #f8fafc; }
/* 展开明细底色（浅灰），一眼看出是展开部分 */
.ledger-tbl tbody tr.ldetail td { background: #f5f7fa; }
.ledger-tbl tbody tr.lgroup:hover td { background: #f0f6ff; }
.ledger-tbl tbody tr.lgroup:hover td:nth-child(-n+5) { background: #f0f6ff; }
.ledger-tbl .lg-arrow { display: inline-block; width: 12px; color: #2f6fae; font-size: 11px; }

/* ===== 库存图（罐仓卡片） ===== */
.tank-grid { margin-top: 6px; }
.tank-row { display: flex; flex-wrap: wrap; gap: 10px; }
.tank-card {
  position: relative; min-width: 132px; flex: 1 1 132px; max-width: 190px;
  border: 1px solid #d7dee8; border-radius: 10px; padding: 10px 12px;
  background: #fff; box-shadow: 0 1px 3px rgba(15,23,42,.06);
  border-top: 4px solid #8b9bb4;
}
.tank-silo { border-top-color: #4f7db8; }
.tank-bunker { border-top-color: #b08a4f; }
.tank-oil { border-top-color: #64748b; }
.tank-drum { border-top-color: #7c6fae; }
.tank-name { font-size: 15px; font-weight: 700; color: #1f3d5f; }
.tank-mat { font-size: 12px; color: #5b6b7f; margin: 3px 0 6px; min-height: 16px; }
.tank-val { font-size: 22px; font-weight: 800; color: #0f172a; line-height: 1.1; }
.tank-val .tank-unit { font-size: 12px; font-weight: 400; color: #8a94a0; }
.tank-inout { font-size: 11px; color: #8a94a0; margin-top: 5px; }
.tank-low { border-color: #fca5a5; background: #fef2f2; }
.tank-low .tank-warn { margin-top: 6px; font-size: 11px; color: #b91c1c; font-weight: 700; }
.tank-neg .tank-val { color: #dc2626; }
.ta-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ta-row input { flex: 1; }
.tank-mat-total { margin-top: 10px; padding: 8px 12px; background: #f8fafc; border-radius: 8px; font-size: 12px; color: #334155; line-height: 1.7; }
.tank-svg-wrap svg { display: block; }

.ledger-tbl tfoot td.num { white-space: nowrap; overflow: visible; text-overflow: clip; }
.ledger-tbl tfoot td { white-space: nowrap; overflow: visible; }
