* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  height: 100%;
  min-height: 100%;
}

:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --line: #e8ebf0;
  --line-strong: #dfe3ea;
  --text: #17181c;
  --muted: #7b8190;
  --faint: #a2a8b5;
  --accent: #4d6bfe;
  --accent-soft: #eef2ff;
  --risk: #a4574d;
  --risk-soft: #f3e8e6;
  --tab-height: calc(58px + env(safe-area-inset-bottom, 0px));
  --content-bottom-space: 24px;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

body {
  margin: 0;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  overflow-x: hidden;
  background: var(--bg);
}

html.is-scroll-locked {
  overflow: hidden;
}

body.is-scroll-locked {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
  touch-action: manipulation;
}

button {
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  user-select: none;
}

button:active {
  opacity: 0.78;
}

button:disabled {
  cursor: wait;
  opacity: 0.58;
}

#app {
  width: min(100%, 430px);
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  background: var(--bg);
}

.app-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 15px 16px var(--content-bottom-space);
  scroll-padding-top: 14px;
  scroll-padding-bottom: var(--content-bottom-space);
  -webkit-overflow-scrolling: touch;
}

.app-scroll.is-scroll-locked {
  overflow: hidden;
}

.statusbar,
.topbar,
.section-head,
.tabs,
.tab,
.row,
.action-grid {
  display: flex;
  align-items: center;
}

.statusbar {
  height: 18px;
  justify-content: flex-start;
  color: #191a1a;
  font-size: 12px;
  font-weight: 600;
}

.topbar {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 8px;
  padding: 4px 0 10px;
}

.topbar > div {
  min-width: 0;
}

.topbar-title {
  position: relative;
  text-align: center;
}

.topbar-leading {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.topbar-title-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 100%;
}

.topbar span,
.panel-label,
.field label,
.row span,
.empty,
.hint {
  color: var(--muted);
  font-size: 12px;
}

.topbar h1 {
  overflow: hidden;
  margin: 0;
  font-size: 20px;
  line-height: 1.12;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-spacer {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
}

.topbar .icon-btn {
  width: 34px;
  height: 34px;
  justify-self: end;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.topbar-action-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.panel {
  margin-bottom: 9px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.hero {
  min-height: 112px;
}

.hero strong,
.metric strong,
.risk strong {
  display: block;
  margin-top: 12px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 560;
}

.hero p,
.metric p,
.risk p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.report-day-info {
  position: relative;
  flex: 0 0 auto;
}

.topbar-report-info {
  position: relative;
  top: auto;
  right: auto;
}

.topbar-report-info summary {
  width: 20px;
  height: 20px;
  font-size: 12px;
}

.report-day-info summary {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbfbfa;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  list-style: none;
}

.report-day-info summary::-webkit-details-marker {
  display: none;
}

.report-day-info[open] summary {
  border-color: var(--accent-soft);
  background: var(--accent-soft);
  color: var(--accent);
}

.report-day-info div {
  position: absolute;
  z-index: 10;
  top: calc(100% + 8px);
  right: 0;
  width: min(280px, calc(100vw - 42px));
  display: grid;
  gap: 6px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 34px rgba(24, 28, 40, 0.14);
  text-align: left;
}

.topbar-report-info div {
  width: min(250px, calc(100vw - 42px));
}

.report-day-info span,
.report-day-info p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.report-day-info span {
  color: var(--text);
  font-weight: 540;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.metric {
  min-height: 92px;
}

.metric strong {
  font-size: 23px;
}

.section-head {
  justify-content: space-between;
  margin-bottom: 10px;
}

.section-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.section-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 560;
}

.field {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.field:first-of-type {
  margin-top: 0;
}

.field-tip {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.grid > .field {
  margin-top: 0;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbfa;
  color: var(--text);
  outline: none;
  padding: 0 12px;
  font-size: 15px;
}

textarea {
  min-height: 78px;
  padding-top: 11px;
  resize: vertical;
}

.form-hint {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

input[readonly] {
  color: var(--muted);
  background: #f3f4f2;
}

.status-toggle {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 11px 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbfa;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

.status-toggle span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.status-toggle strong,
.status-toggle small,
.status-toggle b {
  font-weight: inherit;
}

.status-toggle strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 540;
}

.status-toggle small {
  color: var(--muted);
  font-size: 12px;
}

.switch-input {
  position: absolute;
  width: 1px;
  min-height: 0;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.status-toggle i {
  position: relative;
  flex: 0 0 auto;
  width: 50px;
  height: 30px;
  border-radius: 999px;
  background: #d9dde4;
  box-shadow: inset 0 0 0 1px rgba(23, 24, 28, 0.04);
  transition: background 0.18s ease;
}

.status-toggle i::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 7px rgba(23, 24, 28, 0.18);
  transition: transform 0.18s ease;
}

.status-toggle .status-on {
  display: none;
}

.switch-input:checked ~ span .status-on {
  display: inline;
}

.switch-input:checked ~ span .status-off {
  display: none;
}

.switch-input:checked ~ i {
  background: #34c759;
}

.switch-input:checked ~ i::after {
  transform: translateX(20px);
}

.switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 45px;
  height: 28px;
  cursor: pointer;
}

.switch input {
  position: absolute;
  width: 1px;
  min-height: 0;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #d9dde4;
  transition: background 0.16s ease;
}

.switch span::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 7px rgba(23, 24, 28, 0.16);
  transition: transform 0.16s ease;
}

.switch input:checked + span {
  background: #34c759;
}

.switch input:checked + span::after {
  transform: translateX(17px);
}

.primary,
.secondary,
.ghost,
.danger,
.text-btn {
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  font-weight: 540;
}

.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.secondary {
  border-color: var(--accent-soft);
  background: var(--accent-soft);
  color: var(--accent);
}

.danger {
  border-color: var(--risk-soft);
  background: var(--risk-soft);
  color: var(--risk);
}

.small {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.text-btn {
  min-height: 32px;
  padding: 0 10px;
  border-color: var(--line);
  color: var(--accent);
  font-size: 13px;
}

.full {
  width: 100%;
  margin-top: 12px;
}

.action-grid {
  gap: 8px;
}

.action-grid button {
  flex: 1;
}

.segment {
  display: grid;
  grid-template-columns: repeat(var(--segment-count, 3), 1fr);
  gap: 3px;
  margin-bottom: 10px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f0f1ef;
}

.segment button {
  min-height: 32px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
}

.segment .active {
  background: var(--surface);
  color: var(--text);
}

.range-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.range-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.range-fields label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.range-fields input {
  min-height: 38px;
  padding: 0 9px;
  font-size: 13px;
}

.range-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.trend-mini {
  height: 112px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(22px, 1fr);
  align-items: end;
  gap: 8px;
  padding-top: 6px;
}

.trend-mini-item {
  min-width: 0;
  display: grid;
  align-items: end;
  gap: 6px;
  text-align: center;
}

.trend-mini-item i {
  width: 100%;
  min-height: 6px;
  display: block;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, #6f83ff, #dfe5ff);
}

.trend-mini-item span {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.operation-hero p {
  max-width: 100%;
}

.rank-row,
.report-list-row,
.report-compare-line,
.report-supplement-line {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.rank-row:first-of-type,
.report-list-row:first-of-type,
.report-compare-line:first-of-type,
.report-supplement-line:first-of-type {
  border-top: 0;
}

button.report-list-row {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  font: inherit;
  text-align: left;
}

button.report-list-row:first-of-type {
  border-top: 0;
}

.report-store-row {
  cursor: pointer;
}

.rank-row b {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 560;
}

.rank-row div,
.report-list-row div,
.report-compare-line div {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 4px;
}

.rank-row strong,
.report-list-row strong,
.report-compare-line strong,
.report-supplement-line strong {
  overflow: hidden;
  color: var(--text);
  font-size: 15px;
  font-weight: 560;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-row span,
.report-list-row span,
.report-compare-line span,
.report-supplement-line span,
.report-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.rank-row em,
.report-list-row em,
.report-compare-line em {
  flex: 0 0 auto;
  color: var(--text);
  font-size: 14px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  font-weight: 560;
  text-align: right;
}

.report-list-row em small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.trend-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.trend-summary span {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbfa;
  color: var(--muted);
  font-size: 12px;
}

.trend-summary b {
  display: block;
  margin-bottom: 3px;
  color: var(--text);
  font-size: 15px;
  font-weight: 560;
  font-variant-numeric: tabular-nums;
}

.report-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
}

.report-section-panel {
  padding: 8px;
}

.report-store-scope {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 2px 2px 8px;
  border-bottom: 1px solid var(--line);
}

.report-store-scope span {
  color: var(--muted);
  font-size: 12px;
}

.report-store-scope strong {
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  font-weight: 560;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-store-scope .text-btn {
  min-height: 30px;
  padding: 0 8px;
  font-size: 12px;
}

.report-kind-segment {
  margin-top: 7px;
}

.report-kind-segment .segment {
  margin-bottom: 0;
}

.report-section-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.report-section-tabs button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbfa;
  color: var(--muted);
  font-size: 13px;
  font-weight: 540;
}

.report-section-tabs .active {
  border-color: var(--accent-soft);
  background: var(--accent-soft);
  color: var(--accent);
}

.report-table {
  display: grid;
}

.report-table-row {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1fr 0.72fr;
  gap: 7px;
  align-items: center;
  min-height: 42px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 12px;
}

.report-table-row:first-child {
  border-top: 0;
}

.report-table-head {
  min-height: 30px;
  color: var(--muted);
}

.report-table-row span,
.report-table-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-table-amount,
.report-table-status {
  display: grid;
  gap: 2px;
  line-height: 1.25;
}

.report-table-amount b,
.report-table-status b {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  font-size: 12px;
  font-weight: 560;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-table-amount small,
.report-table-status small {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-table-status small {
  color: inherit;
  opacity: 0.72;
}

.report-table-row strong {
  font-weight: 560;
  text-align: right;
}

.is-ok {
  color: #2f7d4f !important;
}

.is-warning {
  color: var(--risk) !important;
}

.report-supplement-line {
  align-items: flex-start;
}

.report-supplement-line strong {
  white-space: normal;
  text-align: right;
}

.export-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.manage-segment {
  grid-template-columns: repeat(5, 1fr);
}

.manage-filter {
  display: grid;
  gap: 10px;
}

.manage-filter .segment {
  margin-bottom: 0;
}

.manage-search-panel {
  padding: 10px;
}

.manage-search {
  min-height: 40px;
}

.manage-view-head {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.manage-view-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f3f4f2;
}

.manage-view-tabs button {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px;
  min-height: 34px;
  padding: 0 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
}

.manage-view-tabs strong,
.manage-view-tabs span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manage-view-tabs strong {
  font-size: 13px;
  font-weight: 540;
}

.manage-view-tabs span {
  color: inherit;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.manage-view-tabs .active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 5px rgba(35, 40, 32, 0.06);
}

.manage-view-head .section-actions {
  justify-content: flex-end;
}

.tree-summary {
  margin: -3px 0 9px;
  color: var(--muted);
  font-size: 12px;
}

.manage-approval-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(77, 107, 254, 0.12);
  border-radius: 12px;
  background: rgba(77, 107, 254, 0.05);
}

.manage-approval-head div {
  display: grid;
  gap: 2px;
}

.manage-approval-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 520;
}

.manage-approval-head strong {
  color: var(--text);
  font-size: 16px;
  line-height: 1.25;
  font-weight: 620;
}

.manage-approval-head em {
  flex: 0 0 auto;
  min-width: 42px;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent);
  font-size: 12px;
  font-style: normal;
  font-weight: 620;
  text-align: center;
}

.manage-approval-list {
  margin-bottom: 12px;
}

.store-tree {
  display: grid;
  gap: 2px;
}

.store-tree-node {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
  padding: 8px 0 8px 14px;
  border-left: 1px solid var(--line);
}

.store-tree-node::before,
.store-tree-store::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 0;
  width: 9px;
  border-top: 1px solid var(--line);
}

.store-tree-node strong,
.store-tree-node span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-tree-node strong {
  min-width: 0;
  font-size: 13px;
  font-weight: 540;
}

.store-tree-node span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
}

.store-tree-province {
  padding-left: 0;
  border-left: 0;
}

.store-tree-province::before {
  display: none;
}

.store-tree-city {
  margin-left: 8px;
}

.store-tree-county {
  margin-left: 20px;
}

.store-tree-store {
  position: relative;
  margin-left: 32px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.store-tree-store .editable-row {
  border-top-color: rgba(232, 235, 240, 0.72);
}

.store-tree-store .inline-panel {
  margin-left: 0;
}

.manage-group-list {
  display: grid;
  gap: 12px;
}

.manage-list-group {
  display: grid;
  gap: 2px;
}

.manage-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 30px;
  padding-top: 3px;
}

.manage-group-head strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 560;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manage-group-head span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
}

.manage-list-item .editable-row {
  border-top-color: rgba(232, 235, 240, 0.72);
}

.manage-list-item:first-of-type .editable-row {
  border-top: 0;
}

.sheet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.sheet-actions .full {
  margin-top: 0;
}

.chip-scroll {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.chip-scroll::-webkit-scrollbar {
  display: none;
}

.chip-scroll button {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbfbfa;
  color: var(--muted);
  font-size: 13px;
}

.chip-scroll .active {
  border-color: var(--accent-soft);
  background: var(--accent-soft);
  color: var(--accent);
}

.report-kind-panel form {
  display: grid;
  gap: 10px;
}

.temporary-batch-entry-panel {
  margin-top: 10px;
  margin-bottom: 0;
}

.temporary-batch-main-button {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
}

.temporary-batch-main-button span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.temporary-batch-main-button strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 590;
}

.temporary-batch-main-button em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.25;
}

.temporary-batch-main-button i {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-style: normal;
  font-weight: 560;
}

.temporary-batch-page {
  display: grid;
  gap: 10px;
}

.temporary-batch-page-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
}

.temporary-batch-page-head button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
}

.temporary-batch-page-head div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.temporary-batch-page-head span {
  color: var(--muted);
  font-size: 11px;
}

.temporary-batch-page-head strong {
  color: var(--text);
  font-size: 18px;
  font-weight: 620;
  line-height: 1.2;
}

.temporary-batch-page-list {
  display: grid;
  gap: 10px;
}

.temporary-people-panel {
  display: grid;
  gap: 7px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.temporary-people-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  list-style: none;
}

.temporary-people-head::-webkit-details-marker {
  display: none;
}

.temporary-people-head div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.temporary-people-head strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 610;
  line-height: 1.2;
}

.temporary-people-head span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.temporary-people-head em {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: #f3f5ff;
  color: var(--accent);
  font-size: 11.5px;
  font-style: normal;
  font-weight: 560;
}

.temporary-people-panel[open] .temporary-people-head em {
  background: #f4f4f1;
  color: var(--muted);
}

.temporary-people-tools {
  display: flex;
  justify-content: flex-end;
}

.temporary-people-tools button,
.temporary-person-mini-row button {
  flex: 0 0 auto;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7f7f4;
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 560;
}

.temporary-people-mini-list {
  display: grid;
  gap: 0;
}

.temporary-person-mini-row {
  min-height: 31px;
  display: grid;
  grid-template-columns: minmax(54px, 76px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 4px 0;
  border-top: 1px solid var(--line);
}

.temporary-person-mini-row:first-child {
  border-top: 0;
}

.temporary-person-mini-row.is-disabled {
  opacity: 0.55;
}

.temporary-person-mini-row strong {
  overflow: hidden;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 590;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.temporary-person-mini-row span {
  overflow: hidden;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.temporary-batch-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.temporary-batch-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.temporary-batch-card-head div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.temporary-batch-card-head strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 610;
  line-height: 1.22;
}

.temporary-batch-card-head span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.temporary-batch-card-head em {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f4f4f1;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 560;
}

.temporary-batch-scope {
  overflow: hidden;
  padding: 7px 9px;
  border-radius: 8px;
  background: #fbfbfa;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.temporary-batch-table-head,
.temporary-batch-row {
  display: grid;
  grid-template-columns: minmax(56px, 0.66fr) minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  column-gap: 6px;
}

.temporary-batch-table-head.is-single-input,
.temporary-batch-row.is-single-input {
  grid-template-columns: minmax(56px, 0.66fr) minmax(0, 2.06fr);
}

.temporary-batch-table-head {
  padding: 0 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.temporary-batch-table-head span:not(:first-child) {
  text-align: center;
}

.temporary-batch-list {
  display: grid;
  gap: 4px;
}

.temporary-batch-row {
  min-height: 38px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbfa;
}

.temporary-batch-row.is-submitted {
  background: #f4f4f1;
}

.temporary-batch-person {
  min-width: 0;
  display: grid;
  gap: 1px;
  align-content: center;
}

.temporary-batch-person strong {
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  font-weight: 590;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.temporary-batch-person span {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.temporary-batch-row input {
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  text-align: left;
}

.temporary-person-form.is-compact .field {
  gap: 5px;
  margin-top: 10px;
}

.temporary-person-form.is-compact input,
.temporary-person-form.is-compact select {
  min-height: 38px;
  font-size: 14px;
}

.temporary-person-form.is-compact .primary.full {
  min-height: 42px;
  margin-top: 14px;
}

.temporary-delegate-list {
  gap: 6px;
}

.temporary-delegate-list .captain-chip span {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12.5px;
}

.temporary-batch-confirm-list {
  display: grid;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbfa;
}

.temporary-batch-confirm-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.temporary-batch-confirm-list span,
.temporary-batch-confirm-list strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.temporary-batch-confirm-list span {
  color: var(--muted);
}

.temporary-batch-confirm-list strong {
  color: var(--text);
  font-weight: 560;
}

.report-scope-head {
  display: grid;
  gap: 3px;
  margin: 13px 2px 8px;
}

.report-scope-head strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 560;
}

.report-scope-head span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.report-scope-head.is-cross {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.report-kind-panel.is-cross-store {
  border-color: rgba(77, 107, 254, 0.16);
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.report-task-tabs {
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 5px;
  padding: 4px;
  margin-bottom: 9px;
}

.report-task-tabs button {
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  justify-items: center;
  align-content: center;
  gap: 3px;
  min-height: 44px;
  padding: 6px 3px 5px;
  text-align: center;
}

.report-task-tabs strong,
.report-task-tabs span {
  width: 100%;
  overflow: visible;
  line-height: 1.12;
  text-overflow: clip;
  white-space: normal;
}

.report-task-tabs strong {
  font-size: 13px;
  font-weight: 590;
}

.report-task-tabs span {
  font-size: 10.5px;
}

.report-task-tabs button[data-report-task="machine"] span {
  color: #d92d20;
  font-weight: 700;
}

.store-ledger-view {
  display: grid;
  gap: 10px;
}

.store-ledger-list,
.ledger-setting-grid {
  display: grid;
  gap: 9px;
}

.ledger-template-switch {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 8px;
}

.ledger-template-switch button {
  min-height: 54px;
  padding: 7px 4px 6px;
}

.store-ledger-template-pane {
  display: grid;
  gap: 0;
}

.store-ledger-template-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
}

.ledger-bulk-form {
  display: grid;
  gap: 12px;
}

.store-ledger-card,
.ledger-setting-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbfa;
}

.ledger-store-summary {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbfa;
}

.ledger-store-summary span {
  color: var(--muted);
  font-size: 12px;
}

.ledger-store-summary strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 15px;
  font-weight: 560;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-ledger-card.is-submitted {
  background: #f7f7f4;
}

.store-ledger-head {
  position: relative;
  display: block;
}

.store-ledger-head div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.store-ledger-head strong {
  overflow: hidden;
  padding-right: 58px;
  color: var(--text);
  font-size: 17px;
  font-weight: 650;
  line-height: 1.2;
  box-sizing: border-box;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-ledger-head em {
  width: fit-content;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(23, 24, 28, 0.05);
  color: var(--text);
  font-size: 11px;
  font-style: normal;
  font-weight: 590;
  line-height: 1.35;
}

.store-ledger-head span:not(.submit-state) {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-ledger-head > .submit-state {
  position: absolute;
  top: 0;
  right: 0;
}

.store-ledger-card .field label,
.store-ledger-card .ledger-cash-strip span,
.store-ledger-card .ledger-subhead strong,
.store-ledger-card .ledger-total-preview span,
.store-ledger-card .ledger-payments-head span {
  color: var(--text);
  font-weight: 600;
}

.ledger-subhead {
  display: grid;
  gap: 3px;
  padding-top: 2px;
}

.ledger-subhead span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.ledger-optional-cash {
  display: grid;
  gap: 6px;
  padding: 1px 0 2px;
}

.ledger-optional-cash > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 560;
}

.ledger-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ledger-mini-grid input {
  min-height: 34px;
  padding: 0 10px;
  border-color: rgba(23, 24, 28, 0.07);
  background: #fff;
  font-size: 12.5px;
}

.ledger-cash-strip,
.ledger-total-preview {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid rgba(23, 24, 28, 0.07);
  border-radius: 8px;
  background: #fff;
}

.ledger-cash-strip span,
.ledger-total-preview span,
.ledger-payments-head span,
.ledger-staff-picker > span {
  color: var(--muted);
  font-size: 12px;
}

.ledger-cash-strip strong,
.ledger-total-preview strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}

.ledger-initial-setup {
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid rgba(77, 107, 254, 0.14);
  border-radius: 8px;
  background: rgba(77, 107, 254, 0.045);
}

.ledger-initial-setup > div:first-child {
  display: grid;
  gap: 3px;
}

.ledger-initial-setup strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 620;
}

.ledger-initial-setup span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.ledger-initial-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.ledger-initial-action input {
  min-height: 36px;
  padding: 0 10px;
  background: #fff;
  font-size: 13px;
}

.ledger-initial-action button {
  min-height: 36px;
  padding: 0 13px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.ledger-total-preview strong {
  color: #c2410c;
}

.ledger-total-preview.is-soft {
  min-height: 34px;
  background: #fbfbfa;
}

.ledger-total-preview.is-soft strong {
  color: var(--text);
  font-size: 13px;
}

.ledger-total-preview strong.is-warning {
  color: var(--risk);
}

.ledger-total-preview strong.is-error {
  color: #d92d20;
}

.ledger-payments {
  display: grid;
  gap: 8px;
}

.ledger-payments-head,
.ledger-setting-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ledger-payments-head button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--accent);
  font-size: 12px;
  font-weight: 560;
}

.ledger-payment-code-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.ledger-payment-code-row label {
  grid-column: 1 / -1;
}

.ledger-payment-code-row input {
  min-height: 36px;
  padding: 0 9px;
  font-size: 12.5px;
}

.ledger-setting-head > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.ledger-setting-head strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 560;
}

.ledger-setting-head span,
.ledger-staff-picker small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.ledger-staff-picker {
  display: grid;
  gap: 7px;
}

.captain-chip-list.is-compact {
  gap: 6px;
}

.captain-chip-list.is-compact .captain-chip {
  min-height: 30px;
  padding: 5px 8px;
}

.amount-block-title span,
.machine-report-head span {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.25;
}

@media (max-width: 340px) {
  .machine-check-list {
    grid-template-columns: 1fr;
  }
}

.machine-report-panel {
  padding: 12px;
}

.machine-report-list {
  display: grid;
  gap: 9px;
}

.machine-report-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbfa;
}

.machine-report-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.machine-report-head div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.machine-report-head strong,
.machine-report-head span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.machine-report-head strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 560;
}

.machine-report-head em {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-style: normal;
}

.submit-state {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 560;
  white-space: nowrap;
}

.submit-state.is-open {
  background: #f4f4f1;
  color: var(--muted);
}

.submit-state.is-done {
  background: var(--accent-soft);
  color: var(--accent);
}

.submit-state-note {
  margin-top: -5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.machine-report-card.is-submitted {
  background: #f7f7f4;
}

.machine-report-card.is-activity-locked {
  border-color: rgba(176, 96, 0, 0.22);
  background: #fffaf1;
}

.report-kind-panel form.is-submitted .field input,
.machine-report-card.is-submitted .field input,
.machine-report-card.is-submitted .stub-upload {
  background: #f2f2ef;
}

.activity-report-block {
  display: grid;
  gap: 7px;
  padding-top: 2px;
}

.activity-report-note {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.activity-amount-grid {
  gap: 8px;
}

.activity-amount-field {
  margin-top: 0;
}

.activity-amount-field label {
  color: var(--muted);
  font-size: 11px;
}

.stub-upload {
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbfa;
}

.stub-upload-head {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.stub-title {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.stub-upload strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 560;
}

.stub-upload span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stub-actions {
  display: flex;
  justify-content: flex-end;
  flex: 0 0 auto;
  gap: 6px;
}

.stub-actions label {
  position: relative;
  min-width: 44px;
  min-height: 30px;
  display: inline-grid;
  grid-template-columns: auto auto;
  place-items: center;
  gap: 4px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--accent);
  font-size: 12px;
  font-weight: 540;
  overflow: hidden;
}

.stub-actions label.disabled {
  color: var(--muted);
  opacity: 0.62;
}

.stub-actions svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.stub-actions span {
  color: inherit;
  font-size: 12px;
  line-height: 1;
}

.stub-actions input {
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

.stub-preview {
  min-width: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.stub-preview[hidden] {
  display: none;
}

.stub-thumb {
  width: 44px;
  height: 44px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f0f1ee;
}

.stub-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.stub-preview > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.stub-preview strong {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stub-delete {
  min-height: 30px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #a84d3d;
  font-size: 12px;
  font-weight: 540;
}

.stub-delete:disabled {
  color: var(--muted);
  opacity: 0.6;
}

.amount-block {
  display: grid;
  gap: 8px;
  padding-top: 4px;
}

.amount-block-title {
  display: grid;
  gap: 3px;
}

.amount-block-title strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 560;
}

.scan-box {
  margin: 12px 0 2px;
}

.camera-card {
  min-height: 112px;
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: #fbfbfa;
}

.camera-card span {
  color: var(--muted);
  font-size: 12px;
}

.camera-card strong {
  color: var(--text);
  font-size: 18px;
  font-weight: 560;
}

.camera-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.row {
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  border-top: 1px solid var(--line);
}

.row:first-child {
  border-top: 0;
}

.row strong {
  display: block;
  font-size: 14px;
  font-weight: 540;
}

.row em {
  color: var(--accent);
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
}

.history-row span,
.history-row small,
.history-row-side span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.history-amount-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}

.history-amount-pair.is-compact {
  grid-template-columns: 1fr;
  gap: 3px;
}

.history-amount {
  min-width: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  font-size: 16px;
  font-weight: 560;
  line-height: 1.2;
  white-space: nowrap;
}

.history-amount i {
  font-size: 10px;
  font-style: normal;
  font-weight: 540;
}

.history-amount.is-sales {
  color: #c94f45;
}

.history-amount.is-redeem {
  color: #2d8a61;
}

.history-filter-panel {
  display: grid;
  gap: 8px;
}

.history-filter-panel .segment {
  margin-bottom: 0;
}

.me-menu-panel {
  padding: 0 14px;
}

.me-menu-row {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.me-menu-row div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.me-menu-row strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 560;
}

.me-menu-row span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.me-menu-row em {
  color: var(--faint);
  font-size: 22px;
  font-style: normal;
  line-height: 1;
}

.personal-report-hero {
  display: grid;
  gap: 12px;
}

.personal-report-total {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.personal-report-total div {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.personal-report-total span,
.personal-report-meta span,
.personal-summary-card span,
.personal-report-row span,
.personal-distribution-row span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.personal-report-total strong {
  min-width: 0;
  overflow: hidden;
  font-size: 28px;
  font-weight: 560;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.personal-report-total .is-sales,
.personal-summary-card .history-amount.is-sales,
.personal-report-row .history-amount.is-sales {
  color: #c94f45;
}

.personal-report-total .is-redeem,
.personal-summary-card .history-amount.is-redeem,
.personal-report-row .history-amount.is-redeem {
  color: #2d8a61;
}

.personal-report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.personal-report-meta span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: #f3f4f7;
}

.personal-chart-panel,
.personal-summary-panel,
.personal-kind-panel,
.personal-daily-panel,
.personal-cross-panel,
.personal-detail-panel {
  display: grid;
  gap: 10px;
}

.personal-chart-panel .section-head,
.personal-summary-panel .section-head,
.personal-kind-panel .section-head,
.personal-daily-panel .section-head,
.personal-cross-panel .section-head,
.personal-detail-panel .section-head {
  margin-bottom: 0;
}

.personal-kind-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.personal-kind-card {
  min-width: 0;
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbfa;
}

.personal-kind-head,
.personal-kind-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.personal-kind-head strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 560;
}

.personal-kind-head span,
.personal-kind-total span,
.personal-kind-line span,
.personal-panel-note,
.personal-daily-amount small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.personal-kind-total {
  display: grid;
  gap: 4px;
}

.personal-kind-total strong {
  overflow: hidden;
  color: #c94f45;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.personal-kind-lines {
  display: grid;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.personal-kind-line strong {
  flex: 0 0 auto;
  color: #c94f45;
  font-size: 12px;
  font-weight: 560;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.personal-kind-line .is-redeem {
  color: #2d8a61;
}

.personal-daily-table {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.personal-daily-row {
  display: grid;
  grid-template-columns: 52px repeat(3, minmax(0, 1fr));
  align-items: center;
  min-height: 47px;
  gap: 8px;
  padding: 8px 9px;
  border-top: 1px solid var(--line);
}

.personal-daily-row:first-child {
  border-top: 0;
}

.personal-daily-head {
  min-height: 34px;
  background: #f6f7f8;
}

.personal-daily-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 540;
}

.personal-daily-row > span:first-child {
  color: var(--text);
  font-size: 12px;
  font-weight: 560;
  white-space: nowrap;
}

.personal-daily-amount {
  min-width: 0;
  display: grid;
  gap: 2px;
  text-align: right;
}

.personal-daily-amount strong {
  overflow: hidden;
  color: #c94f45;
  font-size: 12px;
  font-weight: 560;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.personal-daily-amount.is-total strong {
  color: var(--text);
}

.personal-panel-note {
  margin: -2px 0 0;
}

.personal-trend-chart {
  height: 112px;
  display: grid;
  grid-template-columns: repeat(12, minmax(10px, 1fr));
  align-items: end;
  gap: 5px;
  padding-top: 6px;
}

.personal-trend-item {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 5px;
}

.personal-trend-item i {
  width: 100%;
  min-height: 8px;
  display: block;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, #5f73f6, #e2e7ff);
}

.personal-trend-item span {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.personal-distribution-chart,
.personal-report-list {
  display: grid;
}

.personal-distribution-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 74px;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.personal-distribution-row:first-child {
  border-top: 0;
}

.personal-distribution-row strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  font-weight: 540;
}

.personal-distribution-row em {
  color: #c94f45;
  font-size: 12px;
  font-style: normal;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.personal-distribution-meter {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef0f3;
}

.personal-distribution-meter i {
  display: block;
  height: 100%;
  min-width: 5px;
  border-radius: inherit;
  background: var(--accent);
}

.personal-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.personal-summary-card {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbfa;
}

.personal-summary-card .history-amount,
.personal-report-row .history-amount {
  font-size: 12px;
}

.personal-summary-card .history-amount-pair,
.personal-report-row .history-amount-pair {
  justify-items: end;
}

.personal-report-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.personal-report-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.personal-report-row:last-child {
  padding-bottom: 0;
}

.personal-report-row > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.personal-report-row strong,
.personal-report-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.personal-report-row strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 540;
}

.history-table-panel {
  display: grid;
  gap: 9px;
  overflow: hidden;
}

.history-table {
  width: 100%;
  min-width: 0;
  display: grid;
}

.history-table-row {
  min-width: 0;
  display: grid;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}

.history-table-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.history-detail-table .history-table-row {
  grid-template-columns: 42px minmax(0, 1fr) 78px 66px;
}

.history-table-head {
  color: var(--muted);
  font-size: 11px;
}

.history-table-row > span,
.history-table-row > strong {
  min-width: 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
}

.history-table-row > span:nth-child(3),
.history-table-row > strong:nth-child(3),
.history-table-row > span:nth-child(4),
.history-table-row > strong:nth-child(4) {
  text-align: right;
}

.history-table-main {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.history-table-main strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 540;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-table-main small,
.history-table-row small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.25;
}

.history-meta-lines {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.history-meta-lines small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-meta-lines small + small {
  color: #6b7280;
}

.history-detail-row > span:nth-child(3) {
  text-align: right;
  white-space: nowrap;
}

.history-detail-row > .history-amount-pair {
  justify-items: end;
}

.history-detail-row .history-amount {
  font-size: 12px;
}

.history-detail-row .history-status {
  justify-self: end;
}

.history-detail-row {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.history-detail-row.is-expanded {
  background: rgba(77, 107, 254, 0.035);
}

.history-status-cell {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.history-resubmit-btn,
.history-modify-btn {
  min-height: 24px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbfbfa;
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 540;
  white-space: nowrap;
}

.history-resubmit-btn {
  border-color: rgba(77, 107, 254, 0.28);
  background: var(--accent-soft);
  color: var(--accent);
}

.history-detail-panel {
  display: grid;
  gap: 10px;
  margin: -2px 0 5px 42px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbfa;
  scroll-margin-top: 18px;
  scroll-margin-bottom: calc(var(--content-bottom-space) + 8px);
}

.history-detail-lines {
  display: grid;
  gap: 6px;
}

.history-ledger-detail-lines {
  display: grid;
  gap: 0;
}

.history-ledger-detail-lines .detail-line:first-child {
  border-top: 1px solid var(--line);
}

.history-detail-amount-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
}

.history-detail-amount-grid.is-single {
  grid-template-columns: 1fr;
}

.history-detail-amount-grid.is-activity {
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0;
}

.history-detail-amount-card {
  min-width: 0;
  min-height: 42px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.history-detail-amount-card span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.history-detail-amount-card strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 16px;
  font-weight: 560;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.history-detail-amount-card.is-sales strong {
  color: #d95f52;
}

.history-detail-amount-card.is-redeem strong {
  color: #2f8f6b;
}

.history-detail-amount-row {
  min-height: 0;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: baseline;
  justify-content: stretch;
  gap: 9px;
  padding: 7px 0;
}

.history-detail-amount-row + .history-detail-amount-row {
  border-top: 1px solid var(--line);
}

.history-detail-amount-row > span {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.history-detail-amount-row > strong,
.history-detail-amount-value > strong {
  min-width: 0;
  overflow: hidden;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.history-detail-amount-row.is-sales > strong {
  color: #d95f52;
}

.history-detail-amount-row.is-redeem strong {
  color: #2f8f6b;
}

.history-detail-amount-value {
  min-width: 0;
  display: grid;
  justify-items: start;
  gap: 3px;
  overflow: visible;
}

.history-amount-breakdown {
  min-width: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.2;
  white-space: normal;
  font-variant-numeric: tabular-nums;
}

.history-amount-bracket,
.history-amount-plus,
.history-amount-part {
  flex: 0 0 auto;
}

.history-amount-bracket,
.history-amount-plus {
  color: var(--muted);
  font-weight: 400;
}

.history-amount-part {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}

.history-amount-number {
  color: #2f8f6b;
  font-size: 12.5px;
  font-weight: 620;
  font-variant-numeric: tabular-nums;
}

.history-amount-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.history-detail-actions {
  display: flex;
  justify-content: flex-end;
}

.history-stub-strip {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  padding: 7px 0 0;
  border-top: 1px solid var(--line);
}

.history-stub-strip > span {
  color: var(--muted);
  font-size: 12px;
  line-height: 28px;
}

.history-stub-strip > div {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.history-stub-button {
  min-width: 0;
  max-width: 100%;
  min-height: 28px;
  display: inline-grid;
  grid-template-columns: 12px minmax(0, auto) auto;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid rgba(77, 107, 254, 0.18);
  border-radius: 999px;
  background: rgba(77, 107, 254, 0.07);
  color: var(--accent);
}

.history-stub-button i {
  width: 11px;
  height: 13px;
  display: block;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  opacity: 0.8;
}

.history-stub-button strong {
  min-width: 0;
  overflow: hidden;
  font-size: 11px;
  font-weight: 560;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-stub-button small {
  color: rgba(77, 107, 254, 0.68);
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
}

.history-stub-button:disabled {
  opacity: 0.65;
}

.history-stub-button.is-loading small {
  color: var(--muted);
}

.history-list {
  display: grid;
  gap: 9px;
}

.history-day {
  margin-bottom: 0;
}

.history-rows {
  display: grid;
}

.history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.history-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.history-row:last-child {
  padding-bottom: 0;
}

.history-row-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.history-row-main strong {
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  font-weight: 540;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-row-side {
  display: grid;
  align-content: start;
  justify-items: end;
  gap: 5px;
  min-width: 78px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.history-status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f1f3f5;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  white-space: nowrap;
}

.history-status.is-done {
  background: var(--accent-soft);
  color: var(--accent);
}

.history-status.is-pending {
  background: #fff5dc;
  color: #8a641d;
}

.history-status.is-expired {
  background: #f1f3f5;
  color: #6b7280;
}

.history-status.is-voided {
  background: #f1f3f5;
  color: #6b7280;
}

.history-status.is-rejected {
  background: var(--risk-soft);
  color: var(--risk);
}

.history-link {
  margin-top: 10px;
}

.report-modify-dialog {
  text-align: left;
}

.report-modify-layer {
  z-index: 19;
}

.report-modify-dialog form {
  display: grid;
  gap: 12px;
}

.report-modify-head {
  margin-bottom: 0;
}

.editable-row {
  width: 100%;
  padding: 0;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  border-radius: 8px;
  transition: background-color 120ms ease;
}

.editable-row.is-selected {
  border-top-color: transparent;
  background: rgba(77, 107, 254, 0.035);
}

.row-main {
  min-height: 48px;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.row-main div,
.editable-row div {
  min-width: 0;
}

.editable-row strong,
.editable-row span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.editable-row em {
  min-width: 44px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfbfa;
  text-align: center;
}

.editable-row.is-disabled {
  color: var(--faint);
}

.editable-row.is-disabled strong,
.editable-row.is-disabled span {
  color: var(--faint);
}

.editable-row.is-disabled em {
  border-color: var(--line);
  background: #f1f2f4;
  color: var(--muted);
}

.inline-panel {
  margin: 6px 0 8px 8px;
  padding: 10px 11px;
  border-left: 1px solid var(--line);
  border-radius: 0 8px 8px 0;
  background: #fbfbfa;
  scroll-margin-top: 18px;
  scroll-margin-bottom: calc(var(--content-bottom-space) + 8px);
}

.inline-panel-inner {
  min-height: 0;
}

.detail-panel {
  display: grid;
  gap: 0;
}

.detail-title {
  margin-bottom: 5px;
}

.detail-title h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 560;
}

.store-detail-section {
  display: grid;
  gap: 0;
}

.store-detail-section .ledger-bulk-form.is-inline {
  gap: 9px;
}

.detail-line {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
}

.detail-title + .detail-line {
  border-top: 0;
}

.detail-line span {
  color: var(--muted);
  font-size: 12px;
}

.detail-line strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 540;
  line-height: 1.35;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
  padding-top: 8px;
}

.detail-edit {
  min-width: 54px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--accent);
  font-size: 12px;
  font-weight: 540;
}

.detail-edit:active {
  background: #f2f5ff;
}

.relation-section {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.relation-head,
.relation-row,
.relation-actions {
  display: flex;
  align-items: center;
}

.relation-head {
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 2px;
}

.relation-head strong {
  font-size: 13px;
  font-weight: 560;
}

.relation-head button,
.relation-row button {
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--accent);
  font-size: 12px;
  font-weight: 540;
  white-space: nowrap;
}

.relation-list {
  display: grid;
}

.relation-row {
  min-height: 42px;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(232, 235, 240, 0.72);
}

.relation-row:first-child {
  border-top: 0;
}

.relation-row div:first-child {
  min-width: 0;
}

.relation-row strong,
.relation-row span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.relation-row strong {
  font-size: 13px;
  font-weight: 540;
}

.relation-row span,
.relation-empty {
  color: var(--muted);
  font-size: 12px;
}

.relation-actions {
  flex: 0 0 auto;
  gap: 6px;
}

.relation-empty {
  padding: 9px 0 2px;
}

.regional-scope-form[data-scope-mode="stores"] .scope-area-fields,
.regional-scope-form:not([data-scope-mode="stores"]) .scope-store-fields,
.regional-scope-form[data-scope-mode="province"] [data-scope-city],
.regional-scope-form[data-scope-mode="province"] [data-scope-county],
.regional-scope-form[data-scope-mode="city"] [data-scope-county] {
  display: none;
}

.scope-store-fields {
  margin-top: 10px;
}

.manage-sheet-layer {
  position: fixed;
  inset: 0;
  z-index: 18;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px 12px 0;
  background: rgba(23, 24, 28, 0.18);
  backdrop-filter: blur(8px);
  overscroll-behavior: contain;
}

.manage-sheet {
  width: min(100%, 430px);
  max-height: min(82vh, 720px);
  overflow: auto;
  padding: 14px 14px 18px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 -18px 52px rgba(24, 28, 40, 0.16);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.sheet-head > div:first-child {
  min-width: 0;
}

.sheet-head-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.sheet-head-action {
  min-height: 32px;
  white-space: nowrap;
}

.compact-action {
  min-height: 28px;
  padding: 0 9px;
  border-color: rgba(77, 107, 254, 0.18);
  background: rgba(77, 107, 254, 0.06);
  font-size: 12px;
}

.sheet-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 560;
}

.sheet-head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.region-auto {
  display: grid;
  gap: 5px;
  margin-top: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbfa;
}

.region-auto span {
  color: var(--muted);
  font-size: 12px;
}

.region-auto strong {
  font-size: 14px;
  font-weight: 540;
}

.cross-store-request-panel,
.cross-store-sheet-section {
  border-top: 1px solid var(--line);
  padding-top: 11px;
  margin-top: 10px;
}

.cross-store-request-panel {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfbfa;
}

.cross-store-request-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.cross-store-request-form label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.cross-store-request-form label span {
  color: var(--muted);
  font-size: 12px;
}

.cross-store-request-form select {
  min-height: 34px;
  padding: 0 9px;
  font-size: 13px;
}

.cross-store-request-form button {
  min-height: 34px;
}

.cross-store-request-form p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.cross-store-machine-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.cross-store-machine-tags i {
  max-width: 100%;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  border-radius: 6px;
  background: #f3f5f8;
  color: #3b414c;
  font-size: 11px;
  font-style: normal;
  line-height: 1;
}

.cross-store-machine-tags.muted {
  color: var(--muted);
  font-size: 12px;
}

.tree-block {
  border-top: 1px solid var(--line);
  padding: 10px 0;
}

.tree-block:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.tree-root {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tree-root strong,
.tree-child strong {
  display: block;
  font-size: 14px;
  font-weight: 540;
}

.tree-root span,
.tree-child span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.tree-root em {
  color: var(--accent);
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
}

.tree-child {
  margin-left: 10px;
  padding: 9px 0 9px 12px;
  border-left: 1px solid var(--line);
}

.tree-city {
  margin-left: 8px;
}

.tree-county {
  margin-left: 20px;
}

.tree-store {
  margin-left: 32px;
}

.tree-store strong {
  font-weight: 500;
}

.check-list {
  display: grid;
  gap: 0;
}

.check-row {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
}

.check-row:first-child {
  border-top: 0;
}

.check-row.is-linked {
  color: var(--text);
}

.check-row.is-linked small {
  color: var(--accent);
}

.check-row input {
  width: 20px;
  min-height: 20px;
  accent-color: var(--accent);
}

.check-row span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.check-row strong {
  font-size: 14px;
  font-weight: 540;
}

.check-row small {
  color: var(--muted);
  font-size: 12px;
}

.captain-picker-hint {
  margin-top: -2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.promotion-activity-form[data-scope-mode="all"] [data-activity-region-fields] {
  display: none;
}

.promotion-activity-form[data-scope-mode="province"] [data-activity-city-field] {
  display: none;
}

.activity-lock-check {
  position: relative;
  min-height: 48px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbfa;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.activity-lock-input {
  position: absolute;
  width: 1px;
  min-height: 0;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.activity-lock-box {
  position: relative;
  width: 19px;
  height: 19px;
  border: 1px solid #c9ced6;
  border-radius: 5px;
  background: #fff;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.activity-lock-box::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 1.8px 1.8px 0;
  opacity: 0;
  transform: rotate(45deg) scale(0.82);
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.activity-lock-input:checked + .activity-lock-box {
  border-color: var(--accent);
  background: var(--accent);
}

.activity-lock-input:checked + .activity-lock-box::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

.activity-lock-check span:last-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.activity-lock-check strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 540;
}

.activity-lock-check small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.captain-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.captain-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.captain-chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.captain-chip span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  font-weight: 520;
}

.captain-chip input:checked + span {
  border-color: rgba(77, 107, 254, 0.26);
  background: rgba(77, 107, 254, 0.08);
  color: #263ec9;
}

.captain-chip.is-locked span {
  border-color: rgba(23, 24, 28, 0.14);
  background: #f2f3f5;
  color: var(--text);
}

.compact {
  min-height: 40px;
}

.approval-list {
  display: grid;
  gap: 10px;
}

.approval-card {
  display: grid;
  gap: 8px;
  padding: 11px;
  background: #fff;
}

.approval-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.approval-card-head > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.approval-card-head strong {
  overflow: hidden;
  color: var(--text);
  font-size: 15px;
  line-height: 1.25;
  font-weight: 560;
  text-overflow: ellipsis;
}

.approval-card-head em {
  flex: 0 0 auto;
  max-width: 48%;
  min-height: 22px;
  padding: 3px 7px;
  border-radius: 7px;
  background: #f1f3f5;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 540;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.approval-eyebrow,
.approval-summary,
.approval-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.approval-summary,
.approval-note {
  margin: 0;
}

.approval-meta-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 10px;
  padding: 6px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.approval-meta-strip span {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.approval-meta-strip span.is-wide {
  grid-column: 1 / -1;
  white-space: normal;
}

.approval-meta-strip b {
  margin-right: 5px;
  color: var(--muted);
  font-weight: 500;
}

.approval-amount-summary {
  display: grid;
  gap: 0;
  padding: 2px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.approval-amount-item {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 8px 0;
}

.approval-amount-item + .approval-amount-item {
  border-top: 1px solid var(--line);
}

.approval-amount-main {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.approval-amount-main span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.approval-amount-main strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 20px;
  font-weight: 620;
  line-height: 1.12;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.approval-amount-item.is-sales .approval-amount-main strong {
  color: #d95f52;
}

.approval-amount-item.is-redeem .approval-amount-main strong {
  color: #2f8f6b;
}

.approval-amount-breakdown {
  min-width: 0;
  display: flex;
  justify-content: flex-end;
}

.approval-amount-meta {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 10px;
}

.approval-amount-meta span {
  min-width: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  color: var(--text);
  font-size: 11px;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}

.approval-amount-meta b {
  color: var(--muted);
  font-weight: 500;
}

.approval-amount-meta em {
  color: var(--text);
  font-style: normal;
  font-weight: 540;
}

.approval-amount-meta .is-warning em {
  color: var(--risk);
}

.approval-compare-matrix {
  display: grid;
  gap: 0;
  padding: 2px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.approval-compare-header {
  min-width: 0;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 4px 0 6px;
  border-bottom: 1px solid var(--line);
}

.approval-compare-header b {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 560;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.approval-compare-line {
  min-width: 0;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding: 7px 0;
}

.approval-compare-line + .approval-compare-line {
  border-top: 1px solid var(--line);
}

.approval-compare-label {
  min-width: 0;
  padding-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.approval-compare-cell {
  min-width: 0;
  display: grid;
  justify-items: start;
  gap: 3px;
}

.approval-compare-cell b {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.approval-compare-cell strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.approval-compare-cell.is-sales strong {
  color: #d95f52;
}

.approval-compare-cell.is-redeem strong {
  color: #2f8f6b;
}

.approval-compare-cell.is-warning strong {
  color: var(--risk);
}

.approval-compare-breakdown {
  min-width: 0;
  display: flex;
}

.approval-compare-breakdown .history-amount-number {
  font-size: 11.5px;
}

.approval-compare-breakdown .history-amount-label {
  font-size: 9.5px;
}

.approval-compare-line.is-result .approval-compare-cell strong {
  font-size: 14px;
  font-weight: 620;
}

.approval-compare-line.is-result .approval-compare-cell.is-sales strong {
  color: #d95f52;
}

.approval-compare-line.is-result .approval-compare-cell.is-redeem strong {
  color: #2f8f6b;
}

.approval-compare {
  display: grid;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.approval-compare-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) minmax(0, 1fr) minmax(78px, 1.05fr);
  align-items: center;
  gap: 6px;
  min-height: 28px;
  border-top: 1px solid var(--line);
}

.approval-compare-row:first-child {
  border-top: 0;
}

.approval-compare-row span,
.approval-compare-row strong {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.approval-compare-row span {
  color: var(--text);
}

.approval-compare-row strong {
  color: var(--text);
  font-weight: 560;
}

.approval-compare-head {
  min-height: 24px;
}

.approval-compare-head span,
.approval-compare-head strong {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.approval-compare-row.is-sales strong {
  color: #d95f52;
}

.approval-compare-row.is-redeem strong {
  color: #2f8f6b;
}

.approval-activity-lines,
.history-activity-lines {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbfa;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.history-activity-lines {
  margin-top: -1px;
}

.approval-activity-lines::-webkit-scrollbar,
.history-activity-lines::-webkit-scrollbar {
  display: none;
}

.approval-activity-lines span,
.history-activity-lines span {
  display: inline-flex;
  align-items: baseline;
  flex: 0 0 auto;
  gap: 4px;
  color: var(--text);
  font-size: 12px;
}

.approval-activity-lines i,
.history-activity-lines i {
  flex: 0 0 auto;
  color: var(--faint);
  font-size: 12px;
  font-style: normal;
  font-weight: 560;
}

.approval-activity-lines em,
.history-activity-lines em {
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

.approval-activity-lines b,
.history-activity-lines b {
  color: var(--muted);
  font-weight: 500;
}

.approval-activity-lines .is-redeem-line,
.history-activity-lines .is-redeem-line,
.approval-activity-lines .is-redeem-line b,
.history-activity-lines .is-redeem-line b {
  color: #2f8f6b;
}

.approval-activity-lines .is-total,
.history-activity-lines .is-total {
  font-weight: 560;
}

.approval-activity-lines .is-total em,
.history-activity-lines .is-total em {
  font-size: 15px;
  font-weight: 650;
}

.approval-lines {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.approval-lines > div,
.approval-people span {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 8px;
  padding: 5px 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
}

.approval-lines > div + div,
.approval-people span + span {
  border-top: 1px solid var(--line);
}

.approval-lines span,
.approval-people b {
  color: var(--muted);
  font-weight: 500;
}

.approval-lines strong,
.approval-people span {
  min-width: 0;
}

.approval-lines strong {
  overflow: hidden;
  font-weight: 540;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.approval-people {
  display: grid;
  gap: 0;
}

.approval-people span {
  padding: 2px 0;
}

.approval-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.approval-metric {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 9px;
  border-radius: 8px;
  background: #f6f7f8;
}

.approval-metric span {
  color: var(--muted);
  font-size: 11px;
}

.approval-metric strong {
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  font-weight: 560;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.approval-metric.is-sales strong {
  color: #d95f52;
}

.approval-metric.is-redeem strong {
  color: #2f8f6b;
}

.approval-actions {
  gap: 6px;
  margin-top: 0;
}

.approval-actions button {
  min-height: 38px;
  font-size: 14px;
}

.approval-card .check-row {
  min-height: 42px;
}

.risk {
  border-color: #eadbd8;
  background: linear-gradient(180deg, #fff 0%, #fdfafa 100%);
}

.risk strong {
  color: var(--risk);
}

.notice {
  margin-bottom: 9px;
  padding: 11px 12px;
  border: 1px solid var(--accent-soft);
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  line-height: 1.5;
}

.notice.error {
  border-color: var(--risk-soft);
  background: var(--risk-soft);
  color: var(--risk);
}

.feedback-layer {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(247, 248, 250, 0.44);
  backdrop-filter: blur(10px);
}

.feedback-dialog {
  width: min(100%, 286px);
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 22px 18px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 52px rgba(24, 28, 40, 0.12);
  text-align: center;
}

.feedback-dialog strong {
  font-size: 18px;
  font-weight: 560;
}

.feedback-dialog p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.report-confirm-dialog,
.approval-confirm-dialog {
  width: min(100%, 354px);
  justify-items: stretch;
  gap: 10px;
  padding: 17px 16px 16px;
  text-align: left;
}

.approval-confirm-dialog {
  width: min(100%, 372px);
  max-height: min(86vh, 680px);
  gap: 8px;
  padding: 14px;
  overflow-y: auto;
}

.approval-confirm-dialog .confirm-title {
  justify-items: start;
  gap: 3px;
  text-align: left;
}

.approval-confirm-dialog .confirm-title strong {
  font-size: 17px;
}

.approval-confirm-dialog .confirm-title p {
  max-width: none;
  font-size: 12px;
}

.confirm-title {
  display: grid;
  justify-items: center;
  gap: 5px;
  text-align: center;
}

.confirm-title span {
  color: var(--muted);
  font-size: 11px;
}

.confirm-title strong {
  color: var(--text);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 560;
}

.confirm-title p {
  max-width: 280px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.confirm-title.is-danger strong {
  color: var(--risk);
}

.approval-confirm-action {
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  border: 1px solid rgba(77, 107, 254, 0.16);
  border-radius: 8px;
  background: var(--accent-soft);
}

.approval-confirm-action.is-reject {
  border-color: rgba(164, 87, 77, 0.18);
  background: var(--risk-soft);
}

.approval-confirm-action span {
  color: var(--muted);
  font-size: 11px;
}

.approval-confirm-action strong {
  min-width: 0;
  overflow: hidden;
  color: var(--accent);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 560;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.approval-confirm-action.is-reject strong {
  color: var(--risk);
}

.confirm-amount-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.confirm-amount-card {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 11px 10px;
  border-radius: 9px;
  background: #f6f7f8;
}

.confirm-amount-card span {
  color: var(--muted);
  font-size: 11px;
}

.confirm-amount-card strong {
  overflow: hidden;
  color: var(--text);
  font-size: 24px;
  line-height: 1.1;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.confirm-amount-card.is-sales strong {
  color: #d95f52;
}

.confirm-amount-card.is-redeem strong {
  color: #2f8f6b;
}

.confirm-amount-rows {
  display: grid;
  gap: 0;
  padding: 1px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.confirm-amount-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: baseline;
  gap: 9px;
  padding: 8px 0;
}

.confirm-amount-row + .confirm-amount-row {
  border-top: 1px solid var(--line);
}

.confirm-amount-row > span {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.confirm-amount-value {
  min-width: 0;
  display: grid;
  justify-items: start;
  gap: 3px;
}

.confirm-amount-value > strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 20px;
  font-weight: 650;
  line-height: 1.14;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.confirm-amount-row.is-sales .confirm-amount-value > strong {
  color: #d95f52;
}

.confirm-amount-row.is-redeem .confirm-amount-value > strong {
  color: #2f8f6b;
}

.confirm-focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.confirm-focus-item {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.confirm-focus-item.is-wide {
  grid-column: 1 / -1;
}

.confirm-focus-item span {
  color: var(--muted);
  font-size: 11px;
}

.confirm-focus-item strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  line-height: 1.3;
  font-weight: 560;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.confirm-focus-item.is-wide strong {
  white-space: normal;
}

.confirm-focus-item.is-warning strong {
  color: var(--risk);
}

.confirm-meta-list {
  display: grid;
  gap: 0;
  padding: 4px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.approval-confirm-dialog .confirm-meta-list {
  padding: 2px 0;
}

.approval-confirm-dialog .confirm-meta-list > div {
  grid-template-columns: 66px minmax(0, 1fr);
  padding: 4px 0;
}

.approval-confirm-dialog .approval-compare-line {
  grid-template-columns: 62px minmax(0, 1fr) minmax(0, 1fr);
  padding: 6px 0;
}

.approval-confirm-dialog .approval-compare-header {
  grid-template-columns: 62px minmax(0, 1fr) minmax(0, 1fr);
  padding: 3px 0 5px;
}

.approval-confirm-dialog .approval-compare-row {
  min-height: 27px;
}

.approval-confirm-dialog .approval-lines > div,
.approval-confirm-dialog .approval-people span {
  padding: 4px 0;
}

.confirm-meta-list > div {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 8px;
  padding: 5px 0;
}

.confirm-meta-list span {
  color: var(--muted);
  font-size: 11px;
}

.confirm-meta-list strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 540;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.confirm-meta-list .is-warning {
  color: var(--risk);
}

.confirm-meta-list .confirm-file-name {
  display: block;
  white-space: normal;
  word-break: break-all;
}

.confirm-stub-grid {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
}

.confirm-stub-grid > span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.confirm-stub-grid > div {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 7px;
}

.confirm-stub-thumb {
  width: 54px;
  height: 54px;
  min-height: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6f7f8;
  overflow: hidden;
}

.confirm-stub-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.feedback-dialog .confirm-impact {
  margin: -1px 0 0;
  padding: 8px 9px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  line-height: 1.45;
}

.feedback-dialog .confirm-impact.is-danger {
  background: var(--risk-soft);
  color: var(--risk);
}

.confirm-lines {
  width: 100%;
  margin-top: 4px;
  padding: 6px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.confirm-lines .detail-line {
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 7px;
  padding: 5px 0;
}

.confirm-lines .detail-line span {
  font-size: 11px;
}

.confirm-lines .detail-line strong {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.confirm-lines .confirm-file-name {
  display: block;
  max-width: 100%;
}

.report-confirm-dialog .action-grid,
.approval-confirm-dialog .action-grid {
  width: 100%;
}

.approval-confirm-dialog .action-grid {
  gap: 7px;
  padding-top: 1px;
}

.approval-confirm-dialog .action-grid button {
  min-height: 40px;
  font-size: 14px;
}

.stub-preview-dialog {
  position: relative;
  width: min(100%, 360px);
  display: grid;
  gap: 9px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 52px rgba(24, 28, 40, 0.14);
}

.stub-preview-dialog .icon-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.88);
}

.stub-preview-dialog img {
  width: 100%;
  max-height: 70vh;
  display: block;
  object-fit: contain;
  border-radius: 8px;
  background: #111;
}

.stub-preview-dialog span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feedback-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent-soft);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 19px;
  font-weight: 560;
}

.feedback-dialog.error .feedback-mark {
  border-color: var(--risk-soft);
  background: var(--risk-soft);
  color: var(--risk);
}

.loading-mark {
  border-color: var(--line);
  border-top-color: var(--accent);
  background: transparent;
  animation: feedback-spin 0.8s linear infinite;
}

@keyframes feedback-spin {
  to {
    transform: rotate(360deg);
  }
}

.tabs {
  position: relative;
  flex: 0 0 var(--tab-height);
  z-index: 12;
  width: 100%;
  height: var(--tab-height);
  justify-content: space-around;
  gap: 4px;
  padding: 5px 8px calc(5px + env(safe-area-inset-bottom, 0px));
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.tab {
  flex: 1;
  height: 48px;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #8b908e;
  font-size: 11px;
}

.tab-icon {
  width: 19px;
  height: 19px;
  fill: none;
  line-height: 1;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.tab.active {
  background: var(--accent-soft);
  color: var(--accent);
}

.empty {
  padding: 18px 0 4px;
  text-align: center;
}

.loading {
  min-height: 100vh;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 14px;
}
