@charset "UTF-8";
/* 淘客回本看板（创达）· 视觉增强、折叠侧边栏、双楼层配色与移动端自适应 */

.sidebar {
  transition: transform .22s cubic-bezier(.22, 1, .36, 1), opacity .18s ease;
}
.workspace {
  transition: margin-left .22s cubic-bezier(.22, 1, .36, 1), width .22s cubic-bezier(.22, 1, .36, 1);
}
.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.sidebar-head .brand {
  min-width: 0;
  flex: 1;
}
.sidebar-close-btn {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-raised);
  color: var(--muted);
  flex-shrink: 0;
  transition: background .15s, color .15s, border-color .15s;
}
.sidebar-close-btn:hover {
  background: var(--surface-hover);
  border-color: var(--accent-edge);
  color: var(--accent-ink);
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.sidebar-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-raised);
  color: var(--ink);
  font-size: 12px;
  font-weight: 550;
  box-shadow: var(--inner-shadow);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .15s, border-color .15s, color .15s;
}
.sidebar-toggle:hover {
  background: var(--surface-hover);
  border-color: var(--accent-edge);
  color: var(--accent-ink);
}
.sidebar-toggle.is-collapsed {
  color: var(--accent-ink);
  background: var(--accent-soft);
  border-color: var(--accent-edge);
}
.sidebar-toggle-icon { flex-shrink: 0; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--brand-fill);
  color: #ffffff;
  font-size: 20px;
  font-weight: 750;
  box-shadow: var(--brand-shadow);
  flex-shrink: 0;
}

/* 侧边栏导航区独立滚动 */
.sidebar-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  margin: 0 -6px;
  padding: 0 6px 10px;
  scrollbar-color: var(--scroll-thumb) transparent;
  scrollbar-width: thin;
}
.sidebar-scroll .sidebar-label:first-child { margin-top: 20px; }
.sidebar-floor-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  font-weight: 650;
  color: var(--muted);
  padding: 10px 10px 4px;
  letter-spacing: .4px;
}
.sidebar-floor-heading:first-child { padding-top: 2px; }
.sidebar nav a,
.sidebar .nav-link { justify-content: flex-start; }
.sidebar nav a > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar nav a small {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.sidebar nav a small.is-done {
  color: var(--success);
  font-weight: 600;
}
.sidebar-owner-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.sidebar-owner-dot.floor-11 { background: var(--team-blue); }
.sidebar-owner-dot.floor-9 { background: var(--team-green); }
.sidebar-owner-dot.floor-other { background: var(--team-gray); }

#backdrop { display: none; }

/* 周期格式与详情页快速切批 */
.duration {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .16em .28em;
  max-width: 100%;
  font-size: inherit;
  color: inherit;
  font-variant-numeric: tabular-nums;
}
.duration .duration-part { display: inline; white-space: nowrap; font-size: inherit; color: inherit; }
.duration .duration-unit { font-size: inherit; color: inherit; }
.duration .duration-exact {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  margin: 0;
  letter-spacing: 0;
}
.duration-value { font-size: clamp(22px, 2.1vw, 30px); }
.duration-value > .duration {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  margin: 0;
  letter-spacing: inherit;
  line-height: 1.4;
}
.duration-value .duration-unit {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0;
}
.duration-cell { min-width: 102px; white-space: normal; }

.detail-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 14px;
}
.detail-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}
.detail-switcher select {
  min-width: 0;
  max-width: 240px;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 9px;
}

/* 楼层徽章（11楼蓝 / 9楼绿） */
.team-badge.floor-11 {
  color: var(--team-blue);
  background: var(--team-blue-bg);
  border-color: var(--team-blue-edge);
}
.team-badge.floor-9 {
  color: var(--team-green);
  background: var(--team-green-bg);
  border-color: var(--team-green-edge);
}
.team-badge.floor-other {
  color: var(--team-gray);
  background: var(--team-gray-bg);
  border-color: var(--team-gray-edge);
}

.team-filter.floor-11.active {
  color: var(--team-blue);
  background: var(--team-blue-bg);
  border-color: var(--team-blue-edge);
}
.team-filter.floor-9.active {
  color: var(--team-green);
  background: var(--team-green-bg);
  border-color: var(--team-green-edge);
}

/* 顶部指标卡口径角标 */
.stat-card .stat-label {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding-right: 24px;
}
.stat-scope {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 650;
  padding: 1.5px 6px;
  border-radius: 5px;
  letter-spacing: .2px;
  line-height: 1.35;
}
.stat-scope.is-full {
  color: var(--accent-ink);
  background: var(--accent-soft);
  border: 1px solid var(--accent-edge);
}
.stat-scope.is-single {
  color: var(--teal);
  background: var(--success-soft);
  border: 1px solid var(--success-edge);
}
.stat-unit {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-left: 3px;
  letter-spacing: 0;
}

/* 双维度筛选胶囊栏 */
.filter-bar-multi {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 12px 16px;
  margin-bottom: 16px;
  border: 1px solid var(--glass-edge);
  border-radius: 15px;
  background: var(--surface);
  box-shadow: var(--glass-shadow);
}
.filter-groups {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  min-width: 0;
}
.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.filter-divider {
  width: 1px;
  height: 20px;
  background: var(--border-strong);
  flex-shrink: 0;
}
.filter-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
}
.filter-reset-btn {
  padding: 4px 10px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--surface-raised);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  transition: background .15s, border-color .15s;
}
.filter-reset-btn:hover {
  background: var(--surface-hover);
  border-color: var(--accent-edge);
  color: var(--accent-ink);
}

/* 焦点面板：楼层盘子汇总 */
.owner-focus-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.owner-focus-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  padding: 7px 9px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-size: 11px;
  text-align: left;
  transition: background .14s, border-color .14s;
}
.owner-focus-row:hover {
  background: var(--surface-hover);
  border-color: var(--accent-edge);
}
.owner-focus-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.owner-focus-left small {
  color: var(--muted);
  font-size: 10.5px;
  white-space: nowrap;
}
.owner-focus-right {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.owner-focus-right b {
  font-weight: 700;
  color: var(--ink);
}
.owner-focus-right span {
  font-size: 11px;
  font-weight: 650;
  color: var(--accent-ink);
}
.owner-focus-right span.is-done {
  color: var(--success);
}

/* 作战明细表：双口径账面与数字右对齐 */
.num-col {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
th.num-col { text-align: right; }
.total-ledger-cell {
  min-width: 126px;
  max-width: 158px;
}
.batch-table th,
.batch-table td {
  padding: 12px 10px;
}
.batch-table th:first-child,
.batch-table td:first-child { padding-left: 18px; }
.batch-table th:last-child,
.batch-table td:last-child { padding-right: 18px; }
.batch-table .col-ledger { min-width: 124px; }
.batch-table .col-recent { min-width: 144px; }
.batch-table .col-recent .recent-month-strip { justify-content: flex-end; }
.batch-table .variant-progress { min-width: 96px; }
.table-wrap th,
.table-wrap td { white-space: nowrap; }
.ledger-cell .ledger-line > span,
.total-ledger-cell .ledger-line > span { white-space: nowrap; }
.cell-note {
  display: block;
  font-size: 10.5px;
  color: var(--quiet);
  margin-top: 3px;
}
.profit-badge {
  display: inline-flex;
  align-items: center;
  padding: 2.5px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: var(--success);
  background: var(--success-soft);
  border: 1px solid var(--success-edge);
}

/* 详情页双卡片与口径提示 */
.cost-card.is-full-batch { border-color: var(--border-strong); }
.cost-rate.accent { color: var(--accent-ink); }
.cost-rate.done { color: var(--success); }
.detail-note-banner {
  margin: 0 22px 16px;
  padding: 9px 13px;
  border-radius: 10px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.6;
}
.date-inferred-tag {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--orange);
  background: var(--warning-soft);
  border: 1px solid var(--warning-edge);
}

/* 对比页：双楼层分组选批 */
.fund-groups.floor-2-cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.fund-groups.floor-2-cols .fund-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.fund-groups.floor-2-cols .fund-batches {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.compare-stage-note-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--warning-soft);
  border: 1px solid var(--warning-edge);
  color: var(--orange);
  font-size: 11px;
  font-weight: 550;
}
.compare-subline-tip { margin: 0 24px 10px; }
.milestone-done {
  background: var(--success-soft);
  color: var(--success);
  font-weight: 700;
}

/* 登录页左侧看点卡片 */
.login-feature-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 26px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow);
}
.login-feature-item strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.login-feature-item span {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.45;
}

.empty {
  text-align: center;
  padding: 36px 20px;
  color: var(--muted);
}

@media (max-width: 1150px) {
  .fund-groups.floor-2-cols .fund-batches {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 901px) {
  html[data-sidebar="collapsed"] .sidebar {
    transform: translateX(calc(-100% - 28px));
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
  }
  html[data-sidebar="collapsed"] .workspace {
    margin-left: 0;
    width: 100%;
  }
  html[data-sidebar="collapsed"] main {
    max-width: 1720px;
  }
}

@media (max-width: 900px) {
  .sidebar {
    inset: 10px auto 10px 10px;
    width: 232px;
    padding: 22px 14px 16px;
    transform: translateX(calc(-100% - 24px));
    transition: transform .2s cubic-bezier(.22, 1, .36, 1);
    z-index: 70;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .sidebar.open {
    transform: translateX(0);
    background: var(--surface-solid);
  }
  .workspace {
    margin-left: 0;
    width: 100%;
  }
  #backdrop:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 60;
    background: var(--backdrop);
    border: 0;
    padding: 0;
  }
}

@media (max-width: 760px) {
  .topbar-left { gap: 8px; }
  .sidebar-toggle { min-height: 32px; padding: 0 9px; font-size: 11.5px; }
  .topbar #breadcrumb {
    display: block;
    max-width: 46vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
  }
  .top-actions { margin-left: auto; }
  .stats .stat-value { font-size: clamp(16px, 4.3vw, 22px); }
  .stat-scope { display: none; }
  .panel { min-width: 0; }
  .date-badge { display: block; }

  .toolbar {
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
  }
  .toolbar .spacer { display: none; }
  .toolbar .toolbar-label { white-space: nowrap; }
  .toolbar select,
  .toolbar input[type="search"],
  .toolbar input[type="date"] {
    flex: 1 1 130px;
    min-width: 116px;
    max-width: 100%;
    width: auto;
  }

  .filter-bar-multi { padding: 11px 12px; }
  .filter-divider { display: none; }
  .filter-groups { gap: 8px; }
  .filter-meta { margin-left: 0; width: 100%; justify-content: space-between; }

  .detail-switcher { width: 100%; justify-content: space-between; }
  .detail-switcher select { flex: 1; max-width: none; }

  .batch-table .col-age,
  .batch-table .col-total-ledger,
  .batch-table .col-gap,
  .batch-table .col-recent,
  .batch-table .col-status { display: none; }
  .batch-table th,
  .batch-table td { padding: 11px 8px; }
  .batch-table th:first-child,
  .batch-table td:first-child { padding-left: 12px; }
  .batch-table th:last-child,
  .batch-table td:last-child { padding-right: 12px; }
  .batch-table .col-ledger { min-width: 114px; }
  .batch-table .variant-progress { min-width: 82px; }
  .batch-cell strong { max-width: 122px; }

  .fund-groups.floor-2-cols { grid-template-columns: 1fr; }
  .compare-subline-tip { margin: 0 16px 10px; }
  .login-feature-card { display: none; }
}

@media (max-width: 520px) {
  .sidebar-toggle {
    padding: 0;
    width: 34px;
    justify-content: center;
  }
  .sidebar-toggle-label { display: none; }
}
