/*
 * FLUX AuditFlow · 结算审核工作台
 * 基础样式逐字来自 src-baseline/style.formatted.css（上游 style.css 的 prettier 展开版），
 * 末尾追加「流程引导层」样式（FlowBar / NextStep 卡）。
 * 只新增类名，不修改上游已有选择器的取值，避免改变既有观感。
 */

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f4f6f8;
  color: #1e3040;
  font:
    14px/1.6 'Segoe UI',
    'Microsoft YaHei',
    sans-serif;
}
aside {
  position: fixed;
  width: 230px;
  background: #102d32;
  color: #d1e2e2;
  height: 100vh;
  padding: 30px 20px;
}
.brand {
  font-size: 30px;
  letter-spacing: 4px;
  color: #fff;
  font-weight: 750;
}
.brand span {
  display: block;
  font-size: 11px;
  letter-spacing: 1px;
  color: #9ebbbc;
}
.project {
  border: 1px solid #365257;
  border-radius: 8px;
  margin: 35px 0 25px;
  padding: 12px;
  font-size: 12px;
}

/* 多项目 / 多期间选择器（侧栏） */
.project select {
  width: 100%;
  box-sizing: border-box;
  margin-top: 6px;
  padding: 5px 6px;
  font-size: 12px;
  border-radius: 5px;
  border: 1px solid #365257;
  background: #f7fbfc;
  color: #1f3438;
}
nav button {
  display: block;
  width: 100%;
  background: none;
  text-align: left;
  color: #bdcfd0;
  border: 0;
  margin: 6px 0;
  padding: 13px 10px;
}
nav button.active {
  background: #234a4e;
  color: #fff;
  border-left: 3px solid #85d9bc;
}
.asidefoot {
  position: absolute;
  bottom: 25px;
  font-size: 21px;
  color: #88abae;
}
.asidefoot small {
  display: block;
  font-size: 11px;
  margin-top: 16px;
}
main {
  margin-left: 230px;
}
header {
  height: 76px;
  background: white;
  border-bottom: 1px solid #e2e7ea;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  color: #667883;
}

/* 登录身份与退出按钮（鉴权改造新增） */
header .whoami {
  margin-left: auto;
  padding-left: 16px;
  color: #2f3a40;
  font-size: 13px;
}
header .logout-btn {
  margin-left: 10px;
  padding: 7px 12px;
  border: 1px solid #cfdbdf;
  border-radius: 5px;
  background: white;
  color: #4b5b64;
  cursor: pointer;
  font-size: 13px;
}
header .logout-btn:hover {
  border-color: #1f6feb;
  color: #1f6feb;
}
select,
input {
  padding: 9px;
  border: 1px solid #cfdbdf;
  border-radius: 5px;
  background: white;
  color: #243f45;
}
select {
  margin-left: 10px;
}
.notice {
  background: #fff5de;
  color: #785e2d;
  padding: 10px 34px;
  font-size: 12px;
}
section {
  padding: 28px 34px;
  max-width: 1500px;
}
.eyebrow {
  color: #33736a;
  letter-spacing: 2px;
  font-size: 11px;
}
h1 {
  font-size: 28px;
  margin: 4px 0 8px;
  letter-spacing: -0.5px;
}
h2 {
  font-size: 17px;
  margin: 0 0 15px;
}
h3 {
  font-size: 14px;
  margin: 5px 0;
}
p {
  color: #687b85;
}
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 20px 0;
}
.card,
.panel {
  background: white;
  border: 1px solid #e0e7e8;
  border-radius: 10px;
  padding: 22px;
}
.card small {
  color: #74858e;
}
.card b {
  display: block;
  font-size: 28px;
  margin-top: 8px;
}
.panel {
  margin: 18px 0;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.between {
  justify-content: space-between;
}
button,
.upload {
  font: inherit;
  border-radius: 6px;
  border: 1px solid #c6d6d7;
  background: #fff;
  color: #24514d;
  padding: 9px 16px;
  cursor: pointer;
}
button.primary {
  background: #176657;
  border-color: #176657;
  color: white;
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
button:hover:not(:disabled) {
  filter: brightness(0.95);
}
.pill {
  font-size: 11px;
  background: #e5f1ec;
  color: #246252;
  padding: 4px 9px;
  border-radius: 20px;
}
.warn {
  background: #fff0da;
  color: #93662b;
}
.bad {
  color: #bd553e;
}
.muted {
  color: #7c8c94;
  font-size: 12px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  font-size: 12px;
  font-weight: 500;
  color: #7a8c94;
  background: #f7f9fa;
}
td,
th {
  padding: 14px 10px;
  border-bottom: 1px solid #edf0f1;
}
details {
  margin: 12px 0;
  border: 1px solid #e2e9e8;
  border-radius: 7px;
  padding: 14px;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
.chain {
  border-left: 2px solid #a3c7bb;
  padding-left: 18px;
  margin: 18px 5px;
}
.chain div {
  padding: 10px 0;
}
.chain b {
  display: block;
  color: #285c52;
}
.log {
  font-size: 12px;
  border-bottom: 1px solid #edf0f0;
  padding: 9px 0;
}
code {
  background: #edf4f1;
  padding: 2px 6px;
}
footer {
  padding: 10px 34px 25px;
  color: #8a989e;
  font-size: 11px;
}
.empty {
  padding: 30px;
  color: #74888c;
  text-align: center;
}
a {
  color: #216e60;
}
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: #153d36;
  color: white;
  padding: 14px 24px;
  z-index: 10;
  border-radius: 6px;
  max-width: 80vw;
}

/* ===================== 流程引导层 · FlowBar ===================== */
#flowbar {
  background: #fff;
  border-bottom: 1px solid #e2e7ea;
}
.flowbar {
  padding: 9px 34px;
  overflow-x: auto;
}
.flowsteps {
  list-style: none;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  min-width: 720px;
}
.flowstep {
  position: relative;
  flex: 1 1 0;
  display: flex;
  justify-content: center;
}
.flowstep::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 1px;
  background: #e0e7e8;
  z-index: 0;
}
.flowstep:last-child::after {
  display: none;
}
.flowbtn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #e0e7e8;
  background: #f7f9fa;
  color: #7c8c94;
  border-radius: 20px;
  padding: 5px 13px;
  font-size: 12px;
  line-height: 1.5;
  white-space: nowrap;
  cursor: default;
}
button.flowbtn {
  cursor: pointer;
}
.flowbtn.done {
  background: #e5f1ec;
  color: #246252;
  border-color: #cfe5dc;
}
.flowbtn.current {
  background: #fff0da;
  color: #93662b;
  border-color: #f0d9b0;
  font-weight: 600;
}
.flowbtn.blocked {
  background: #fdeeea;
  color: #bd553e;
  border-color: #f2cfc5;
}
.flowbtn.pending {
  background: #f7f9fa;
  color: #9aa8ae;
  border-color: #e6ebec;
}
.flowdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c7d2d4;
  flex: 0 0 auto;
}
.flowbtn.done .flowdot {
  background: #2f8f74;
}
.flowbtn.current .flowdot {
  background: #d99b3f;
}
.flowbtn.blocked .flowdot {
  background: #bd553e;
}
.flowflag {
  font-style: normal;
  font-size: 10px;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 8px;
  background: #bd553e;
  color: #fff;
}
.flowstep.active .flowbtn {
  box-shadow: 0 0 0 2px rgba(23, 102, 87, 0.18);
}

/* ===================== 流程引导层 · NextStep ===================== */
#nextstep {
  padding: 0 34px 14px;
  max-width: 1500px;
}
.nextstep {
  background: #fff;
  border: 1px solid #e0e7e8;
  border-left: 3px solid #176657;
  border-radius: 10px;
  padding: 16px 20px;
}
.nextstep-done {
  border-left-color: #2f8f74;
}
.nextstep-done .ns-head b {
  color: #2f8f74;
}
.ns-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.ns-head b {
  color: #176657;
  font-size: 12px;
  letter-spacing: 2px;
}
.ns-title {
  font-size: 16px;
  font-weight: 600;
}
.ns-actor {
  color: #687b85;
  font-size: 13px;
  margin-top: 4px;
}
.ns-hint {
  color: #7c8c94;
  font-size: 12px;
  margin-top: 4px;
}
.ns-reason {
  color: #93662b;
  font-size: 12px;
  margin-top: 6px;
}
.ns-unlock {
  color: #bd553e;
  font-size: 12px;
  margin-top: 6px;
}
.ns-cta {
  margin-top: 12px;
}
.ns-cta button {
  font-size: 13px;
  padding: 7px 14px;
}

@media (max-width: 850px) {
  aside {
    position: static;
    width: 100%;
    height: auto;
    padding: 12px 20px;
  }
  .project,
  .asidefoot {
    display: none;
  }
  nav {
    display: flex;
    overflow: auto;
  }
  nav button {
    min-width: 130px;
  }
  main {
    margin: 0;
  }
  header {
    padding: 12px;
    height: auto;
    flex-wrap: wrap;
    gap: 8px;
  }
  section {
    padding: 20px 14px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .notice {
    padding: 10px 14px;
  }
  .panel {
    overflow: auto;
  }
  .top {
    display: block;
  }
  .flowbar {
    padding: 9px 14px;
  }
  #nextstep {
    padding: 0 14px 14px;
  }
}

/* ---------------------------------------------------------------------------
 * 引导层 · 禁用原因说明
 * 灰按钮必须说明「为什么灰、怎么解除」—— 否则用户会以为是坏掉了。
 * --------------------------------------------------------------------------- */
.disabled-hint {
  display: inline-block;
  margin-left: 10px;
  font-size: 12px;
  color: #9a6b6b;
  vertical-align: middle;
}

aside{overflow-y:auto}

.basis-views,.basis-options{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}.basis-picker button[aria-selected="true"]{background:#19685a;color:#fff;border-color:#19685a}.basis-picker{border-top:3px solid #a9c6b5}
