:root {
  --ink: #1a1a17;
  --ink-2: #2a2924;
  --muted: #75736a;
  --line: #e7e3da;
  --line-dark: #d6d0c4;
  --paper: #f6f4ef;
  --card: #fffefb;
  --gold: #b9954c;
  --gold-deep: #8d6b2d;
  --gold-soft: #eee3ca;
  --green: #49745c;
  --red: #9d584d;
  --shadow: 0 18px 50px rgba(30, 29, 24, .08);
}

* { box-sizing: border-box; }

html { min-width: 1180px; background: var(--ink); }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 248px 1fr; }

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  color: #f4f0e6;
  background:
    radial-gradient(circle at 15% 0%, rgba(185, 149, 76, .2), transparent 26%),
    linear-gradient(180deg, #1d1d19 0%, #121310 100%);
  border-right: 1px solid rgba(255,255,255,.06);
  z-index: 5;
}

.brand {
  min-height: 92px;
  padding: 22px 22px;
  display: flex;
  gap: 13px;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(224, 193, 126, .65);
  color: #e1c580;
  font: 600 17px/1 Georgia, serif;
  letter-spacing: 1px;
  transform: rotate(45deg);
}

.brand-mark::first-line { transform: rotate(-45deg); }
.brand > div:last-child { display: grid; gap: 5px; }
.brand strong { font: 600 11px/1.2 Georgia, serif; letter-spacing: 1.8px; }
.brand span { color: #9f9d94; font-size: 12px; letter-spacing: 3px; }

.primary-nav { min-height: 0; padding: 24px 14px; overflow-y: auto; }
.nav-label { margin: 0 12px 10px; color: #77776f; font-size: 10px; font-weight: 700; letter-spacing: 2.4px; text-transform: uppercase; }

.nav-item {
  position: relative;
  width: 100%;
  height: 48px;
  padding: 0 14px;
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 12px;
  align-items: center;
  color: #aead9f;
  background: transparent;
  border: 0;
  border-radius: 7px;
  text-align: left;
  transition: .2s ease;
}

.nav-item::before { content: ""; position: absolute; left: -14px; width: 2px; height: 20px; background: transparent; }
.nav-item:hover { color: white; background: rgba(255,255,255,.04); }
.nav-item.is-active { color: #f6e5bd; background: linear-gradient(90deg, rgba(185,149,76,.18), rgba(185,149,76,.05)); }
.nav-item.is-active::before { background: #d2ad61; }
.nav-item svg { width: 19px; height: 19px; }
.nav-item span { font-weight: 550; letter-spacing: .3px; }
.nav-item em { padding: 3px 6px; color: #d6bc81; background: rgba(185,149,76,.14); border-radius: 20px; font-size: 9px; font-style: normal; }
.nav-item b { width: 20px; height: 20px; display: grid; place-items: center; color: #161611; background: #caa65c; border-radius: 50%; font-size: 10px; }
.nav-group { width: 100%; }
.nav-group-toggle { width: 100%; height: 48px; padding: 0 14px; display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; color: #aead9f; background: transparent; border: 0; border-radius: 7px; text-align: left; }
.nav-group-toggle:hover, .nav-group.is-active .nav-group-toggle { color: #f6e5bd; background: rgba(185,149,76,.08); }
.nav-group-toggle svg { width: 19px; height: 19px; }
.nav-group-toggle span { font-weight: 550; letter-spacing: .3px; }
.nav-group-toggle i { color: #77776f; font-size: 13px; font-style: normal; transition: transform .18s ease; }
.nav-group-toggle[aria-expanded="false"] i { transform: rotate(-90deg); }
.nav-submenu { display: none; margin: 0 0 4px 24px; padding: 2px 0 3px 12px; border-left: 1px solid rgba(208,176,107,.2); }
.nav-submenu.is-open { display: block; }
.nav-item.sub { height: 38px; padding: 0 9px; grid-template-columns: 1fr auto; gap: 8px; font-size: 12px; }
.nav-item.sub::before { left: -13px; height: 14px; }
.nav-item.sub em { font-size: 8px; }
.nav-item.sub b { width: 18px; height: 18px; font-size: 9px; }

.sidebar-footer { margin-top: auto; padding: 14px; border-top: 1px solid rgba(255,255,255,.07); }
.connection-dot { padding: 2px 10px 14px; display: flex; gap: 8px; align-items: center; color: #818078; font-size: 11px; }
.connection-dot i { width: 6px; height: 6px; background: #70a47e; border-radius: 50%; box-shadow: 0 0 0 4px rgba(112,164,126,.1); }
.operator-card { padding: 11px; display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; background: rgba(255,255,255,.045); border-radius: 7px; }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; color: #2a2316; background: linear-gradient(145deg, #e2ca98, #a7813a); border-radius: 50%; font-weight: 700; }
.operator-card div { display: grid; gap: 3px; }
.operator-card strong { font-size: 12px; font-weight: 600; }
.operator-card small { color: #77776f; font-size: 10px; }
.more { color: #77776f; letter-spacing: 1px; }

.workspace { min-width: 0; }
.topbar { height: 92px; padding: 0 34px; display: flex; align-items: center; justify-content: space-between; background: rgba(246,244,239,.96); border-bottom: 1px solid var(--line); }
.topbar h1 { margin: 3px 0 0; font-family: "Songti SC", STSong, Georgia, serif; font-size: 25px; font-weight: 600; letter-spacing: 1px; }
.eyebrow, .section-kicker { margin: 0; color: var(--gold-deep); font-size: 9px; font-weight: 800; letter-spacing: 2.2px; }
.topbar-actions { display: flex; gap: 12px; align-items: center; }

.global-search { width: 330px; height: 48px; padding: 0 12px; display: grid; grid-template-columns: 20px 1fr auto; gap: 9px; align-items: center; background: #ece9e2; border: 1px solid transparent; border-radius: 7px; color: #8c897f; }
.global-search:focus-within { background: white; border-color: #d7cfbe; }
.global-search svg { width: 18px; }
.global-search input { width: 100%; background: transparent; border: 0; outline: 0; color: var(--ink); font-size: 12px; }
.global-search kbd { padding: 3px 6px; color: #89867e; background: #f7f5f0; border: 1px solid #ddd8ce; border-radius: 4px; font: 10px/1 sans-serif; }

.gold-rate-button { height: 54px; padding: 0 12px; display: grid; grid-template-columns: 28px auto auto; gap: 9px; align-items: center; color: #efe8db; background: var(--ink); border: 1px solid #302f2a; border-radius: 7px; text-align: left; box-shadow: 0 8px 20px rgba(20,20,16,.1); }
.gold-rate-button svg { color: #d0ad63; }
.gold-rate-button span { display: grid; gap: 3px; }
.gold-rate-button small { color: #8f8d84; font-size: 9px; letter-spacing: .5px; }
.gold-rate-button strong { font-size: 12px; font-weight: 600; }
.gold-rate-button i { padding: 3px 5px; color: #bb9b5c; background: rgba(185,149,76,.12); border-radius: 3px; font-size: 9px; font-style: normal; }

.view { display: none; padding: 28px 34px 50px; animation: view-in .25s ease; }
.view.is-visible { display: block; }
@keyframes view-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

.hero-panel {
  position: relative;
  min-height: 326px;
  padding: 42px 48px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  overflow: hidden;
  color: #f6f2e9;
  background:
    linear-gradient(110deg, rgba(18,18,15,.98) 0%, rgba(33,31,24,.96) 56%, rgba(65,54,33,.96) 100%),
    #1c1c18;
  border: 1px solid #292822;
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.hero-panel::after { content: ""; position: absolute; inset: 0; opacity: .28; background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px); background-size: 32px 32px; mask-image: linear-gradient(90deg, transparent 15%, black 100%); }
.hero-copy { position: relative; z-index: 2; }
.soft-badge { display: inline-flex; padding: 6px 9px; color: #a57d36; background: #f1e7d2; border: 1px solid #e5d5b3; border-radius: 3px; font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.hero-copy .soft-badge { color: #d7b973; background: rgba(185,149,76,.1); border-color: rgba(185,149,76,.28); }
.hero-copy h2 { margin: 20px 0 13px; font-family: "Songti SC", STSong, Georgia, serif; font-size: 38px; line-height: 1.3; font-weight: 500; letter-spacing: 2px; }
.hero-copy h2 em { color: #d2af68; font-style: normal; }
.hero-copy > p { max-width: 470px; margin: 0; color: #aaa79d; font-size: 13px; line-height: 1.8; }
.hero-actions { margin-top: 28px; display: flex; gap: 10px; }

.button { height: 42px; padding: 0 17px; display: inline-flex; gap: 8px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 5px; font-size: 12px; font-weight: 650; letter-spacing: .3px; transition: .18s ease; }
.button svg { width: 16px; }
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .48; transform: none; box-shadow: none; }
.button-gold { color: #201d15; background: linear-gradient(135deg, #d5b66e, #ad8438); border-color: #d7ba79; box-shadow: 0 9px 24px rgba(185,149,76,.18); }
.button-dark { color: #f4eee0; background: #22221e; border-color: #3b3932; }
.button-light { color: var(--ink); background: var(--card); border-color: var(--line-dark); }
.button.full { width: 100%; }

.hero-visual { position: relative; z-index: 2; min-height: 220px; }
.orbital-ring { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(215,185,115,.25); border-radius: 50%; transform: translate(-50%, -50%) rotate(-15deg); }
.ring-one { width: 290px; height: 180px; }
.ring-two { width: 220px; height: 290px; transform: translate(-50%, -50%) rotate(52deg); }
.gem-core { position: absolute; left: 50%; top: 50%; width: 128px; height: 128px; display: grid; place-content: center; text-align: center; transform: translate(-50%, -50%) rotate(45deg); background: linear-gradient(145deg, rgba(206,173,101,.25), rgba(255,255,255,.02)); border: 1px solid rgba(227,199,133,.62); box-shadow: inset 0 0 34px rgba(228,195,120,.1), 0 0 50px rgba(0,0,0,.28); }
.gem-core::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(222,195,133,.25); }
.gem-core span, .gem-core small { transform: rotate(-45deg); }
.gem-core span { color: #e3c67f; font: 600 29px/1 Georgia, serif; letter-spacing: 3px; }
.gem-core small { margin-top: 8px; color: #8f8c82; font-size: 8px; letter-spacing: 2px; }
.floating-metric { position: absolute; min-width: 122px; padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; gap: 2px 7px; background: rgba(20,20,17,.8); border: 1px solid rgba(255,255,255,.09); backdrop-filter: blur(8px); }
.floating-metric small { grid-column: 1 / -1; color: #88877e; font-size: 9px; letter-spacing: 1px; }
.floating-metric strong { color: #eee3ca; font-size: 18px; }
.floating-metric span { align-self: end; color: #7e7b71; font-size: 10px; }
.metric-a { left: 5%; top: 12%; }
.metric-b { right: 1%; bottom: 8%; }

.metric-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.metric-grid.compact { grid-template-columns: repeat(3, 1fr); margin: 0 0 18px; }
.metric-card { position: relative; min-height: 156px; padding: 21px 22px; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 28px rgba(30,29,24,.035); }
.metric-head { display: flex; align-items: center; justify-content: space-between; color: #66645d; font-size: 11px; }
.metric-head i { color: #8f8c83; font-size: 9px; font-style: normal; }
.metric-head .trend-up { color: var(--green); }
.metric-card > strong { display: block; margin-top: 18px; font-family: "SF Pro Display", "PingFang SC", sans-serif; font-size: 25px; font-weight: 610; letter-spacing: -.5px; }
.metric-card > p { margin: 8px 0 0; color: #918e85; font-size: 10px; }
.sparkline { position: absolute; right: 20px; bottom: 20px; width: 75px; height: 32px; display: flex; gap: 4px; align-items: end; }
.sparkline i { flex: 1; background: linear-gradient(#c6a55d, #e8dbc0); border-radius: 2px 2px 0 0; }
.metric-rule { position: absolute; left: 22px; right: 22px; bottom: 24px; height: 3px; background: #eeeae2; }
.metric-rule span { display: block; height: 100%; background: #b9954c; }
.cost-card { background: #f1eee7; }
.cost-card.is-live { color: #f4efe5; background: #20201c; border-color: #292923; }
.cost-card.is-live .metric-head, .cost-card.is-live > p { color: #8f8c82; }
.cost-card.is-live > strong { color: #e0c27d; }
.cost-mark { position: absolute; right: -5px; bottom: 12px; color: rgba(28,28,24,.06); font: 800 26px/1 Georgia, serif; letter-spacing: 2px; }
.cost-mark.live { color: rgba(231,201,131,.08); }
.live-indicator { display: flex; gap: 5px; align-items: center; color: #bca468 !important; }
.live-indicator b { width: 5px; height: 5px; background: #bca468; border-radius: 50%; box-shadow: 0 0 0 4px rgba(188,164,104,.1); }

.dashboard-grid { margin-top: 18px; display: grid; grid-template-columns: 1.7fr .8fr; gap: 18px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 28px rgba(30,29,24,.035); }
.panel-heading { padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.panel-heading h3 { margin: 5px 0 0; font-family: "Songti SC", STSong, Georgia, serif; font-size: 17px; font-weight: 650; letter-spacing: .5px; }
.segmented { padding: 3px; display: flex; background: #efede7; border-radius: 5px; }
.segmented button { height: 26px; padding: 0 10px; color: #858279; background: transparent; border: 0; border-radius: 3px; font-size: 9px; }
.segmented button.is-active { color: var(--ink); background: white; box-shadow: 0 2px 8px rgba(30,29,24,.08); }
.text-button { display: inline-flex; gap: 4px; align-items: center; color: var(--gold-deep); background: transparent; border: 0; font-size: 10px; font-weight: 700; }
.text-button svg { width: 13px; }

.cost-comparison { min-height: 270px; padding: 26px 24px; display: grid; grid-template-columns: .7fr 1.3fr; gap: 30px; align-items: center; }
.cost-summary small { color: #8f8c83; font-size: 10px; }
.cost-summary strong { display: block; margin: 10px 0 9px; color: var(--gold-deep); font: 500 38px/1 Georgia, serif; }
.cost-summary p { margin: 0; color: #858279; font-size: 10px; line-height: 1.7; }
.cost-chart { position: relative; height: 220px; padding-left: 44px; }
.cost-chart svg { width: 100%; height: 190px; overflow: visible; stroke-linecap: round; }
.chart-labels { position: absolute; left: 0; top: 6px; bottom: 42px; display: flex; flex-direction: column; justify-content: space-between; color: #aaa69d; font-size: 8px; }
.chart-grid { stroke: #ece8df; stroke-width: 1; }
.chart-area { fill: url(#areaGold); stroke: none; }
.chart-line { fill: none; stroke-width: 2.4; }
.live-line { stroke: #ae8740; }
.book-line { stroke: #4a4943; stroke-width: 1.4; stroke-dasharray: 4 5; }
.chart-legend { display: flex; gap: 18px; color: #858279; font-size: 9px; }
.chart-legend span { display: flex; gap: 6px; align-items: center; }
.chart-legend i { width: 14px; height: 2px; }
.chart-legend i.gold { background: #ae8740; }
.chart-legend i.charcoal { background: #4a4943; }

.gold-panel { min-width: 320px; }
.metal-rate-list { padding: 4px 22px 0; }
.metal-rate-item { padding: 15px 0; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; border-bottom: 1px solid var(--line); }
.metal-rate-item:last-child { border-bottom: 0; }
.metal-rate-item div { display: grid; gap: 3px; }
.metal-rate-item strong { font-size: 12px; }
.metal-rate-item small { color: #9a978e; font-size: 9px; }
.metal-rate-item > b { font: 600 16px/1 Georgia, serif; }
.metal-rate-item > span { grid-column: 2; justify-self: end; color: var(--green); font-size: 8px; }
.data-note { margin: 0 22px 20px; padding: 11px 12px; color: #8d897f; background: #f5f2eb; border-left: 2px solid #c8a95f; font-size: 9px; line-height: 1.6; }
.data-empty { padding: 30px; display: grid; place-items: center; gap: 8px; color: #827e74; text-align: center; }
.data-empty strong { color: #4a4841; font: 600 17px/1.2 "Songti SC", STSong, serif; }
.data-empty p { max-width: 560px; margin: 0; color: #969188; font-size: 9px; line-height: 1.7; }
.cost-data-empty { min-height: 250px; align-content: center; background: linear-gradient(135deg, #fbfaf6, #f1ede4); }
.compact-empty { min-height: 92px; margin: 18px 46px 26px; border: 1px dashed #d9d2c6; border-radius: 6px; }
.sale-empty { margin-top: 20px; }
.full-empty { min-height: 280px; grid-column: 1/-1; }

.recent-panel { margin-top: 18px; }
.table-wrap { width: 100%; overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 12px 15px; color: #8d8a81; background: #f4f1ea; border-bottom: 1px solid var(--line); font-size: 9px; font-weight: 700; letter-spacing: .4px; text-align: left; white-space: nowrap; }
td { padding: 13px 15px; border-bottom: 1px solid #eeeae2; color: #54524c; font-size: 10px; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fbf9f4; }
.product-cell { display: flex; gap: 10px; align-items: center; }
.product-thumb { width: 31px; height: 31px; position: relative; display: grid; place-items: center; background: #272721; border-radius: 5px; }
.product-thumb::after { content: ""; width: 9px; height: 9px; border: 2px solid #d3b56f; transform: rotate(45deg); }
.product-cell div { display: grid; gap: 3px; }
.product-cell strong { color: var(--ink); font-size: 11px; }
.product-cell small { color: #aaa69c; font-size: 8px; }
.delta-up { color: var(--red); }
.delta-down { color: var(--green); }
.status { display: inline-flex; padding: 4px 7px; border-radius: 20px; font-size: 8px; font-weight: 700; }
.status.stocked { color: #4e765c; background: #e8f0e8; }
.status.warning { color: #8d6b2d; background: #f4ecd9; }
.status.transit { color: #536c83; background: #e6edf2; }

.inventory-page-head { margin-bottom: 14px; }
.inventory-live-strip { min-height: 45px; margin-bottom: 14px; padding: 0 16px; display: flex; align-items: center; gap: 12px; color: #d9d2c3; background: linear-gradient(90deg, #20201c, #2d291f); border: 1px solid #343229; border-radius: 7px; }
.inventory-live-strip > span { display: flex; gap: 8px; align-items: center; color: #e1c57f; font-size: 10px; font-weight: 700; }
.inventory-live-strip i { width: 7px; height: 7px; background: #72a17e; border-radius: 50%; box-shadow: 0 0 0 5px rgba(114,161,126,.12); }
.inventory-live-strip b { padding: 4px 7px; color: #90aa96; background: rgba(114,161,126,.1); border-radius: 3px; font-size: 8px; }
.inventory-live-strip p { margin-left: auto; color: #77746c; font-size: 9px; }
.inventory-kpis { margin-top: 0; }
.inventory-kpi { min-height: 144px; }
.inventory-kpi > strong { font-size: 24px; }
.inventory-kpi.book { background: #f1eee7; }
.inventory-kpi.live { color: #f4efe5; background: #20201c; border-color: #292923; }
.inventory-kpi.live .metric-head, .inventory-kpi.live > p { color: #8f8c82; }
.inventory-kpi.live > strong { color: #e0c27d; }
.inventory-kpi-mark { position: absolute; right: 12px; bottom: 10px; color: rgba(28,28,24,.055); font: 800 25px/1 Georgia, serif; letter-spacing: 2px; }
.inventory-kpi.live .inventory-kpi-mark { color: rgba(231,201,131,.07); }
.inventory-table-panel { margin-top: 16px; overflow: visible; }
.inventory-commandbar { min-height: 52px; padding: 8px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #e8e1d4; background: linear-gradient(100deg, #22221d, #2b2922); border-radius: 8px 8px 0 0; }
.inventory-command-group { display: flex; align-items: center; gap: 5px; }
.command-button { min-height: 34px; padding: 0 12px; display: inline-flex; align-items: center; gap: 7px; color: #d5cec1; background: transparent; border: 1px solid rgba(222,203,160,.14); border-radius: 4px; font-size: 9px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.command-button:hover, .command-button[aria-pressed="true"] { color: #ead495; background: rgba(202,169,91,.1); border-color: rgba(222,195,130,.35); }
.command-button svg { width: 15px; }
.inventory-selection { color: #8f8b82; font-size: 8px; white-space: nowrap; }
.column-settings { position: relative; }
.column-settings > summary { list-style: none; }
.column-settings > summary::-webkit-details-marker { display: none; }
.column-settings-popover { position: absolute; z-index: 8; top: 42px; right: 0; width: 270px; padding: 15px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; color: var(--ink); background: #fffefb; border: 1px solid #d7d0c3; border-radius: 6px; box-shadow: 0 22px 55px rgba(28,27,23,.22); }
.column-settings-popover > div { grid-column: 1/-1; padding-bottom: 10px; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); }
.column-settings-popover strong { font-size: 10px; }
.column-settings-popover button { padding: 0; color: var(--gold-deep); background: transparent; border: 0; font-size: 8px; cursor: pointer; }
.column-settings-popover label { display: flex; align-items: center; gap: 7px; color: #66635c; font-size: 9px; }
.column-settings-popover input, .inventory-detail-table input[type="checkbox"] { width: 14px; height: 14px; accent-color: #a9853e; }
.inventory-toolbar { padding: 16px; display: grid; grid-template-columns: repeat(6, minmax(118px, 1fr)); gap: 11px 10px; align-items: end; background: #fffefb; border: 1px solid var(--line); border-top: 0; }
.inventory-toolbar label, .advanced-inventory label { display: grid; gap: 6px; }
.inventory-toolbar label > span, .advanced-inventory label > span { color: #77736a; font-size: 8px; font-weight: 700; }
.inventory-toolbar select, .inventory-toolbar input { height: 37px; }
.inventory-code-filter { grid-column: span 2; }
.inventory-query-actions { grid-column: span 2; height: 37px; display: flex; gap: 7px; align-items: center; }
.inventory-query-actions .button { height: 37px; }
.inventory-query-actions svg { width: 14px; }
.inventory-query-actions .button-light.is-active { color: #846528; border-color: #b99b59; background: #f4ecd9; }
.inventory-reset { margin-left: 2px; }
.advanced-inventory { padding: 14px 16px; display: grid; grid-template-columns: 1.45fr repeat(6, minmax(110px, 1fr)); gap: 10px; align-items: end; background: #f2eee5; border: 1px solid #ded7ca; border-top: 0; }
.advanced-inventory[hidden] { display: none; }
.advanced-inventory > div { align-self: center; display: grid; gap: 3px; }
.advanced-inventory > div strong { font: 600 15px/1.2 "Songti SC", STSong, serif; }
.advanced-inventory > div p { margin: 0; color: #969188; font-size: 7px; }
.advanced-inventory input, .advanced-inventory select { height: 36px; }
.inventory-summary { min-height: 65px; display: grid; grid-template-columns: 1.25fr repeat(5, 1fr); color: #e5ded1; background: #2b2a24; border-top: 1px solid #3b382f; }
.inventory-summary > span { padding: 13px 16px; display: grid; gap: 6px; border-right: 1px solid rgba(255,255,255,.07); }
.inventory-summary > span:last-child { border-right: 0; }
.inventory-summary small { color: #827f77; font-size: 8px; }
.inventory-summary strong { color: #d7d0c3; font: 600 14px/1 Georgia, "Songti SC", serif; }
.inventory-summary > span:nth-child(5) strong { color: #e0c27d; }
.inventory-subtotals { padding: 10px 12px; display: flex; gap: 8px; overflow-x: auto; background: #f6f3ec; border: 1px solid var(--line); border-top: 0; }
.inventory-subtotals[hidden] { display: none; }
.inventory-subtotals span { min-width: 205px; padding: 9px 11px; display: grid; gap: 4px; background: #fffefb; border: 1px solid #e5dfd3; border-radius: 4px; }
.inventory-subtotals strong { color: #625a49; font-size: 9px; }
.inventory-subtotals small { color: #979289; font-size: 8px; }
.inventory-table-wrap { max-height: calc(100vh - 420px); min-height: 330px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.inventory-detail-table { min-width: 1790px; }
.inventory-detail-table thead { position: sticky; top: 0; z-index: 2; }
.inventory-detail-table td { height: 58px; }
.inventory-detail-table td > small { margin-top: 4px; display: block; color: #aaa69c; font-size: 7px; }
.inventory-detail-table .live-cost-cell { color: var(--gold-deep); font-weight: 750; }
.inventory-detail-table .rate-cell { color: #77746c; }
.inventory-detail-table .empty-inventory { height: 220px; color: #969289; text-align: center; }
.inventory-table-panel:not(.images-visible) .inventory-detail-table .product-thumb { display: none; }
.inventory-code { color: #3c3a34; font: 700 10px/1 monospace; letter-spacing: .2px; }
.tracking-badge { width: max-content; margin-top: 4px; padding: 2px 5px; display: block; color: #896b2e !important; background: #f3ead5; border-radius: 2px; font-size: 7px !important; }
.column-hidden { display: none !important; }
.stock-status { display: inline-flex; gap: 6px; align-items: center; }
.stock-status::before { content: ""; width: 5px; height: 5px; background: #638c70; border-radius: 50%; }
.stock-status.warning::before { background: #bd8b35; }
.stock-status.transit::before { background: #5d7c99; }
.inventory-table-foot { min-height: 45px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; color: #8c897f; background: #f7f4ed; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 8px 8px; font-size: 9px; }
.inventory-table-foot b { color: var(--gold-deep); }

.stocktake-page-head { margin-bottom: 15px; }
.stocktake-task-bar { min-height: 76px; padding: 13px 17px; display: grid; grid-template-columns: 1fr auto auto; gap: 28px; align-items: center; color: #eee8dc; background: linear-gradient(100deg, #20201c, #29261e); border: 1px solid #333128; border-radius: 8px; }
.stocktake-task-bar.is-empty { background: linear-gradient(100deg, #292823, #33312a); }
.stocktake-task-bar.is-empty .stocktake-running i { background: #918d84; box-shadow: 0 0 0 4px rgba(145,141,132,.1); }
.stocktake-task-bar > div { display: grid; grid-template-columns: auto auto 1fr; gap: 8px 11px; align-items: center; }
.stocktake-task-bar strong { font-size: 12px; }
.stocktake-task-bar p { grid-column: 1/-1; margin: 0; color: #8d8a81; font-size: 9px; }
.stocktake-running { padding: 4px 8px; display: inline-flex; gap: 6px; align-items: center; color: #8fb39a; background: rgba(95,139,108,.13); border-radius: 20px; font-size: 8px; font-weight: 700; }
.stocktake-running i, .scanner-connected i { width: 6px; height: 6px; background: #6da17b; border-radius: 50%; box-shadow: 0 0 0 4px rgba(109,161,123,.1); }
.stocktake-task-bar dl { margin: 0; display: flex; gap: 26px; }
.stocktake-task-bar dl div { display: grid; gap: 4px; }
.stocktake-task-bar dt { color: #77746c; font-size: 8px; }
.stocktake-task-bar dd { margin: 0; color: #d7d1c6; font-size: 10px; font-weight: 650; }
.miniapp-ready { padding: 7px 9px; color: #d0b574; background: rgba(185,149,76,.11); border: 1px solid rgba(185,149,76,.2); border-radius: 4px; font-size: 8px; font-weight: 700; }
.stocktake-bar-actions { display: flex !important; grid-template-columns: none !important; gap: 8px !important; align-items: center; justify-content: flex-end; }
.stocktake-bar-actions .text-button { color: #d0b574; }
.stocktake-steps { margin: 14px 0; display: grid; grid-template-columns: repeat(4,1fr); gap: 9px; }
.stocktake-steps article { min-height: 70px; padding: 13px 14px; display: flex; gap: 11px; align-items: center; background: #fffefb; border: 1px solid var(--line); border-radius: 7px; }
.stocktake-steps article.is-active { color: #f3ecdf; background: #24231e; border-color: #312f28; }
.stocktake-steps article.is-complete { background: #eef3ed; border-color: #d7e2d6; }
.stocktake-steps article.is-complete > span { color: #568066; }
.stocktake-steps article > span { color: #a77e35; font: 650 17px/1 Georgia, serif; }
.stocktake-steps article div { display: grid; gap: 4px; }
.stocktake-steps strong { font-size: 10px; }
.stocktake-steps p { margin: 0; color: #959188; font-size: 8px; line-height: 1.45; }
.stocktake-layout { display: grid; grid-template-columns: 1fr 320px; gap: 16px; align-items: start; }
.stocktake-workbench { overflow: hidden; }
.scanner-connected { display: flex; gap: 8px; align-items: center; color: #4f795e; font-size: 9px; font-weight: 700; }
.scan-entry { padding: 20px 22px 10px; display: grid; grid-template-columns: 46px minmax(260px,1fr) 82px auto; gap: 12px; align-items: end; }
.scan-glyph { width: 46px; height: 46px; display: grid; place-items: center; color: #d4b66f; background: #24241f; border-radius: 5px; }
.scan-glyph svg { width: 24px; }
.scan-entry label { display: grid; gap: 6px; }
.scan-entry label span { color: #66645d; font-size: 9px; font-weight: 700; }
.scan-entry input { height: 46px; font: 600 15px/1 monospace; letter-spacing: 1px; }
.scan-entry > input { text-align: center; }
.scan-entry .button { height: 46px; }
.scan-help { padding: 0 22px 17px 80px; display: flex; gap: 22px; color: #9a978e; font-size: 8px; }
.stocktake-candidates { margin: 0 22px 17px 80px; padding: 12px; display: grid; gap: 7px; background: #f8f3e9; border: 1px solid #e4d8bf; border-radius: 5px; }
.stocktake-candidates[hidden] { display: none; }
.stocktake-candidates > strong { color: #79673f; font-size: 9px; }
.stocktake-candidates button { padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 15px; text-align: left; background: #fffdf8; border: 1px solid #e2dbcf; border-radius: 4px; }
.stocktake-candidates button:hover { border-color: #bca16a; }
.stocktake-candidates button span { display: grid; gap: 3px; }
.stocktake-candidates button b { color: #2f2d27; font-size: 10px; }
.stocktake-candidates button small { color: #918d84; font-size: 8px; }
.stocktake-candidates button em { color: #826a36; font-size: 9px; font-style: normal; }
.stocktake-mini-metrics { display: grid; grid-template-columns: repeat(4,1fr); background: #f4f1ea; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stocktake-mini-metrics div { padding: 13px 16px; display: grid; gap: 5px; border-right: 1px solid #e4dfd5; }
.stocktake-mini-metrics div:last-child { border: 0; }
.stocktake-mini-metrics small { color: #8f8c83; font-size: 8px; }
.stocktake-mini-metrics strong { font: 650 18px/1 Georgia, serif; }
.stocktake-mini-metrics .has-difference strong { color: var(--red); }
.stocktake-line-toolbar { min-height: 58px; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.stocktake-line-toolbar > div { display: grid; gap: 4px; }
.stocktake-line-toolbar strong { font-size: 10px; }
.stocktake-line-toolbar small { color: #969289; font-size: 8px; }
.stocktake-line-toolbar input { width: 240px; height: 34px; }
.stocktake-scan-table { max-height: 330px; }
.stocktake-scan-table table { min-width: 1040px; }
.stocktake-scan-table td strong, .stocktake-scan-table td small { display: block; }
.stocktake-scan-table td small { margin-top: 4px; color: #969289; font-size: 8px; }
.stocktake-count-input { width: 78px; height: 31px; }
.stocktake-difference.has-value { color: #9a5c52; font-weight: 700; }
.scan-result { display: inline-flex; padding: 4px 7px; border-radius: 20px; font-size: 8px; font-weight: 700; }
.scan-result.normal { color: #4e765c; background: #e8f0e8; }
.scan-result.cross { color: #8d6b2d; background: #f4ecd9; }
.scan-result.unknown { color: #9b5e54; background: #f3e9e6; }
.scan-result.gain { color: #3f7181; background: #e6f0f3; }
.scan-result.loss { color: #9b5e54; background: #f3e9e6; }
.scan-result.pending { color: #837c6d; background: #efede7; }
.stocktake-summary-card { padding: 25px; color: #eee8dc; background: #20201c; border: 1px solid #292923; border-radius: 8px; box-shadow: 0 18px 45px rgba(24,23,19,.14); }
.stocktake-summary-card h3 { margin: 7px 0 17px; font: 500 21px/1.2 "Songti SC", STSong, serif; }
.stocktake-progress { --progress: 64.3%; position: relative; width: 168px; height: 168px; margin: 8px auto 18px; display: grid; place-items: center; background: conic-gradient(#c5a259 var(--progress), #34332d 0); border-radius: 50%; }
.stocktake-progress::before { content: ""; position: absolute; width: 140px; height: 140px; background: #20201c; border-radius: 50%; }
.stocktake-progress div { position: relative; z-index: 1; display: grid; gap: 6px; text-align: center; }
.stocktake-progress strong { color: #e0c27d; font: 600 26px/1 Georgia, serif; }
.stocktake-progress small { color: #858279; font-size: 8px; }
.stocktake-summary-card dl { margin: 0; }
.stocktake-summary-card dl div { padding: 9px 0; display: flex; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.08); }
.stocktake-summary-card dt { color: #8f8c83; font-size: 9px; }
.stocktake-summary-card dd { margin: 0; color: #d6d0c5; font-size: 10px; font-weight: 650; }
.stocktake-warning { margin: 16px 0; padding: 12px; color: #9f8b60; background: rgba(185,149,76,.09); border-left: 2px solid #b9954c; }
.stocktake-warning strong { color: #c9b17b; font-size: 9px; }
.stocktake-warning p { margin: 5px 0 0; color: #77746c; font-size: 8px; line-height: 1.6; }
.stocktake-summary-actions { display: grid; grid-template-columns: .72fr 1.28fr; gap: 8px; }
.stocktake-create-dialog { width: min(900px, calc(100vw - 48px)); }
.stocktake-create-fields { margin-top: 18px; }
.stocktake-history-wrap { margin-top: 18px; max-height: 520px; border: 1px solid var(--line); }
.stocktake-history-wrap table { min-width: 900px; }
.stocktake-history-wrap tr[data-stocktake-task-no] { cursor: pointer; }
.stocktake-history-wrap tr[data-stocktake-task-no]:hover { background: #f8f3e9; }
.stocktake-history-wrap td strong, .stocktake-history-wrap td small { display: block; }
.stocktake-history-wrap td small { margin-top: 4px; color: #969289; font-size: 8px; }

.page-actions { margin-bottom: 22px; display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.page-actions h2 { margin: 11px 0 5px; font-family: "Songti SC", STSong, Georgia, serif; font-size: 30px; font-weight: 550; letter-spacing: 1px; }
.page-actions p { margin: 0; color: #858279; font-size: 11px; }
.page-actions > div:last-child { display: flex; gap: 9px; }

.form-layout { display: grid; grid-template-columns: minmax(720px, 1fr) 320px; gap: 18px; align-items: start; }
.form-panel { padding: 8px 26px 28px; }
.form-section-title { margin: 26px 0 17px; padding-bottom: 12px; display: flex; gap: 11px; align-items: center; border-bottom: 1px solid var(--line); }
.form-section-title > span { color: var(--gold-deep); font: 600 18px/1 Georgia, serif; }
.form-section-title h3 { margin: 0; font: 600 15px/1.3 "Songti SC", STSong, serif; }
.form-section-title p { margin: 3px 0 0; color: #9a978e; font-size: 9px; }
.field-grid { display: grid; gap: 15px 13px; }
.field-grid.three { grid-template-columns: repeat(3, 1fr); }
.field-grid.four { grid-template-columns: repeat(4, 1fr); }
.field-grid label, .payment-select { display: grid; gap: 7px; }
.field-grid label > span, .payment-select > span { color: #68665f; font-size: 10px; font-weight: 600; }
.field-grid label.required > span::after { content: " ·"; color: #a06f42; }
input, select { width: 100%; height: 39px; padding: 0 11px; color: #2f2e29; background: #fbfaf6; border: 1px solid #ded9cf; border-radius: 4px; outline: none; font-size: 11px; }
input:focus, select:focus { border-color: #bfa66e; box-shadow: 0 0 0 3px rgba(185,149,76,.1); }
input[readonly] { color: #99958b; background: #f1eee7; }

.cost-insight { position: sticky; top: 112px; min-height: 540px; padding: 27px 25px; color: #eee8dc; background: linear-gradient(160deg, #24241f, #151612); border: 1px solid #2e2d27; border-radius: 8px; box-shadow: 0 18px 45px rgba(24,23,19,.18); }
.cost-insight h3 { margin: 7px 0 22px; font: 500 21px/1.2 "Songti SC", STSong, Georgia, serif; }
.cost-orbit { height: 210px; display: grid; place-items: center; background: radial-gradient(circle, rgba(185,149,76,.2) 0, rgba(185,149,76,.04) 38%, transparent 40%); }
.cost-orbit::before { content: ""; position: absolute; width: 172px; height: 172px; border: 1px solid rgba(208,176,107,.28); border-radius: 50%; }
.cost-orbit div { width: 144px; height: 144px; display: grid; place-content: center; text-align: center; border: 1px solid rgba(220,189,119,.56); transform: rotate(45deg); }
.cost-orbit div > * { transform: rotate(-45deg); }
.cost-orbit small { color: #99958b; font-size: 8px; letter-spacing: 1px; }
.cost-orbit strong { margin: 8px 0; color: #e2c47d; font: 600 19px/1 Georgia, serif; }
.cost-orbit span { color: #9a8060; font-size: 8px; }
.cost-insight dl { margin: 14px 0; }
.cost-insight dl div { padding: 11px 0; display: flex; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.08); }
.cost-insight dt { color: #858279; font-size: 9px; }
.cost-insight dd { margin: 0; color: #ded8cc; font-size: 10px; font-weight: 600; }
.cost-insight > p { margin: 15px 0 0; color: #77756d; font-size: 9px; line-height: 1.7; }

/* Operational inbound */
.inbound-integrity { margin-bottom: 18px; }
.inbound-form-panel { min-width: 0; }
.field-span-three { grid-column: span 3; }
.inbound-advanced { margin-top: 22px; padding: 0 16px 17px; background: #f4f1ea; border: 1px solid #e3ded3; border-radius: 6px; }
.inbound-advanced summary { padding: 15px 0; color: #514d44; cursor: pointer; font-size: 10px; font-weight: 750; }
.inbound-advanced summary small { margin-left: 8px; color: #969188; font-size: 8px; font-weight: 500; }
.inbound-line-remark { margin-top: 17px; }
.inbound-editor-actions { margin-top: 16px; display: flex; align-items: center; justify-content: flex-end; gap: 13px; }
.inbound-insight { min-height: 0; }
.inbound-draft-mini { margin-top: 18px; display: grid; grid-template-columns: repeat(2,1fr); border: 1px solid rgba(255,255,255,.08); }
.inbound-draft-mini span { padding: 11px; display: grid; gap: 5px; border-right: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); }
.inbound-draft-mini span:nth-child(2n) { border-right: 0; }
.inbound-draft-mini span:nth-last-child(-n+2) { border-bottom: 0; }
.inbound-draft-mini small { color: #858178; font-size: 8px; }
.inbound-draft-mini strong { color: #e2c47d; font-size: 11px; }
.inbound-lines-panel, .inbound-paste-panel, .inbound-history-panel { margin-top: 18px; overflow: hidden; }
.inbound-lines-panel .panel-heading > span { color: #8b877d; font-size: 9px; }
.panel-heading p { margin: 5px 0 0; color: #918d84; font-size: 9px; }
.inbound-lines-wrap { min-height: 190px; max-height: 460px; }
.inbound-lines-table { min-width: 1350px; }
.inbound-lines-table thead, .inbound-history-wrap thead { position: sticky; top: 0; z-index: 1; }
.inbound-lines-table td strong, .inbound-history-wrap td strong, .inbound-detail-lines td strong { display: block; color: #2c2b26; font-size: 10px; }
.inbound-lines-table td small, .inbound-history-wrap td small, .inbound-detail-lines td small { display: block; margin-top: 4px; color: #969289; font-size: 8px; }
.inbound-paste-panel { padding-bottom: 18px; }
.inbound-paste-panel textarea { width: calc(100% - 44px); margin: 18px 22px 0; min-height: 130px; font: 10px/1.65 ui-monospace, Consolas, monospace; white-space: pre; }
.inbound-paste-actions { padding: 12px 22px 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.inbound-paste-actions span { color: #89857c; font-size: 9px; }
.inbound-history-wrap { min-height: 230px; max-height: 520px; }
.inbound-history-wrap table { min-width: 1120px; }
.inbound-history-wrap tr[data-inbound-no] { cursor: pointer; }
.inbound-history-wrap tr[data-inbound-no]:hover { background: #f8f3e9; }
.inbound-row-actions { display: flex; gap: 9px; align-items: center; }
.inbound-row-actions.compact { min-width: 100px; }
.text-button.danger { color: #975b51; }
.readonly-tag { color: #9a968d; font-size: 8px; }
.status.pending { color: #8a6b31; background: #f3ead8; }
.status.cancelled { color: #92594f; background: #f3e8e5; }
.status.closed { color: #6e6b64; background: #ece9e2; }
.inbound-detail-lines-wrap { max-height: 440px; border: 1px solid var(--line); }
.inbound-detail-lines { min-width: 1600px; }
.inbound-detail-lines thead { position: sticky; top: 0; z-index: 1; }

.sales-layout { display: grid; grid-template-columns: 1fr 330px; gap: 18px; align-items: start; }
.sale-entry { padding: 25px; }
.member-lookup, .scan-product { display: grid; grid-template-columns: 32px 1fr auto; gap: 14px; align-items: end; }
.member-lookup > div, .scan-product > div { display: grid; gap: 7px; }
.member-lookup small, .scan-product small { color: #77746c; font-size: 10px; font-weight: 600; }
.member-lookup label, .scan-product label { position: relative; display: block; }
.member-lookup label svg, .scan-product label svg { position: absolute; left: 11px; top: 10px; width: 17px; color: #9c988d; }
.member-lookup label input, .scan-product label input { padding-left: 37px; height: 44px; }
.step-number { width: 32px; height: 32px; display: grid; place-items: center; color: #9a7738; background: #f1e7d3; border-radius: 50%; font: 600 11px/1 Georgia, serif; }
.match-pill { align-self: end; height: 44px; padding: 0 13px; display: grid; place-items: center; color: #4c745b; background: #e9f0e9; border-radius: 4px; font-size: 9px; font-weight: 700; }
.matched-member { margin: 18px 0 28px 46px; padding: 17px 18px; display: grid; grid-template-columns: 43px 1fr auto; gap: 13px; align-items: center; background: #f3f0e9; border: 1px solid #e5e0d5; border-radius: 6px; }
.member-avatar { width: 43px; height: 43px; display: grid; place-items: center; color: #261f13; background: linear-gradient(145deg, #dcc795, #a6813c); border-radius: 50%; font: 600 15px/1 Georgia, serif; }
.matched-member > div { display: grid; gap: 3px; }
.matched-member strong { font-size: 12px; }
.matched-member p { margin: 0; color: #8f8c83; font-size: 9px; }
.matched-member dl { display: flex; gap: 26px; }
.matched-member dl div { display: grid; gap: 4px; text-align: right; }
.matched-member dt { color: #9a978e; font-size: 8px; }
.matched-member dd { margin: 0; font-size: 12px; font-weight: 650; }
.scan-product { padding-top: 21px; border-top: 1px solid var(--line); }
.sale-line { margin: 20px 0 0 46px; padding: 16px; display: grid; grid-template-columns: 42px 1fr 100px 130px 24px; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 5px; }
.product-gem { width: 38px; height: 38px; display: grid; place-items: center; background: #24241f; border-radius: 4px; }
.product-gem::after { content: ""; width: 11px; height: 11px; border: 2px solid #d2b46d; transform: rotate(45deg); }
.sale-line > div:nth-child(2) { display: grid; gap: 4px; }
.sale-line strong { font-size: 11px; }
.sale-line p { margin: 0; color: #9a978e; font-size: 8px; }
.sale-line > span { color: #8b887f; font-size: 8px; line-height: 1.7; }
.sale-line > span b { color: var(--ink); font-size: 12px; }
.sale-line label { display: grid; gap: 5px; color: #77746c; font-size: 8px; }
.sale-line label input { height: 34px; }
.sale-line > button { color: #a7a39a; background: transparent; border: 0; font-size: 20px; }

.checkout-card { padding: 27px; color: #eee8dc; background: #20201c; border: 1px solid #292923; border-radius: 8px; box-shadow: 0 18px 45px rgba(24,23,19,.14); }
.checkout-card h3 { margin: 7px 0 22px; font: 500 21px/1.2 "Songti SC", STSong, serif; }
.checkout-card dl { margin: 0; }
.checkout-card dl div { padding: 10px 0; display: flex; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.08); }
.checkout-card dt { color: #8f8c83; font-size: 9px; }
.checkout-card dd { margin: 0; color: #d6d0c5; font-size: 10px; }
.checkout-total { padding: 20px 0 18px; display: flex; align-items: end; justify-content: space-between; }
.checkout-total small { color: #8f8c83; font-size: 9px; }
.checkout-total strong { color: #e0c27d; font: 600 25px/1 Georgia, serif; }
.points-earned { padding: 14px; display: grid; grid-template-columns: 1fr auto; gap: 4px; background: rgba(185,149,76,.11); border: 1px solid rgba(185,149,76,.18); }
.points-earned span { color: #c8b58b; font-size: 9px; }
.points-earned strong { color: #e0c27d; }
.points-earned small { grid-column: 1/-1; color: #78756d; font-size: 8px; }
.payment-select { margin-top: 18px; }
.payment-select > span { color: #959188; }
.payment-select select { color: #ded8cc; background: #2c2c27; border-color: #403f37; }
.checkout-card > p { margin: 16px 0 0; color: #77746c; font-size: 9px; line-height: 1.7; }

.operational-sales-layout { grid-template-columns: minmax(0, 1fr) 370px; }
.operational-sale-entry { min-width: 0; overflow: hidden; }
.operational-checkout { position: sticky; top: 112px; }
.operational-member-lookup { margin-bottom: 14px; }
.sale-member-result .data-empty { margin: 0 0 18px 46px; }
.sale-matched-member { margin-bottom: 18px; grid-template-columns: 43px minmax(0,1fr) auto auto; }
.sale-matched-member small { display: block; color: #8f8c83; font-size: 8px; line-height: 1.5; }
.sale-member-binding { color: #947235 !important; }
.sale-new-member { margin: -6px 0 20px 46px; padding: 14px; display: grid; grid-template-columns: minmax(180px,1fr) auto; gap: 12px; align-items: end; background: #faf7ef; border: 1px solid #e7dfcf; border-radius: 5px; }
.sale-new-member[hidden] { display: none; }
.sale-new-member label { display: grid; gap: 6px; }
.sale-new-member label span { color: #77736a; font-size: 9px; font-weight: 600; }
.sale-scan-row { display: grid; grid-template-columns: minmax(260px,1fr) 82px auto; gap: 10px; align-items: center; }
.sale-scan-row label { position: relative; }
.sale-scan-row label svg { position: absolute; left: 12px; top: 12px; width: 17px; color: #8d877c; }
.sale-scan-row label input { height: 42px; padding-left: 40px; font-family: ui-monospace, Consolas, monospace; }
.sale-scan-row > input, .sale-scan-row .button { height: 42px; }
.sale-stock-candidates { margin-top: 10px; padding: 12px; display: grid; gap: 7px; background: #f8f3e9; border: 1px solid #e4d8bf; border-radius: 5px; }
.sale-stock-candidates[hidden] { display: none; }
.sale-stock-candidates > strong { color: #79673f; font-size: 9px; }
.sale-stock-candidates button { padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 15px; text-align: left; background: #fffdf8; border: 1px solid #e2dbcf; border-radius: 4px; }
.sale-stock-candidates button:hover { border-color: #bca16a; }
.sale-stock-candidates button span { display: grid; gap: 3px; }
.sale-stock-candidates button b { color: #2f2d27; font-size: 10px; }
.sale-stock-candidates button small { color: #918d84; font-size: 8px; }
.sale-stock-candidates button em { color: #826a36; font-size: 9px; font-style: normal; }
.sale-draft-lines-wrap { min-height: 230px; max-height: 520px; margin-top: 14px; border: 1px solid var(--line); border-radius: 5px; }
.sale-draft-lines { min-width: 1160px; }
.sale-draft-lines thead { position: sticky; top: 0; z-index: 1; }
.sale-draft-lines td { vertical-align: top; }
.sale-draft-lines td > strong, .sale-draft-lines td > small { display: block; }
.sale-draft-lines td > small { margin-top: 4px; color: #969289; font-size: 8px; }
.sale-line-input { width: 88px; height: 32px; }
.sale-line-mode { width: 92px; height: 32px; }
.sale-line-pricing { min-width: 340px; display: grid; grid-template-columns: repeat(3, minmax(90px,1fr)); gap: 8px; align-items: end; }
.sale-line-pricing > span, .sale-line-pricing label { display: grid; gap: 5px; color: #7e7a71; font-size: 8px; }
.sale-line-pricing > span b { color: #34322d; font-size: 10px; }
.sale-line-pricing input, .sale-line-pricing select { width: 100%; height: 32px; }
.sale-pricing-required { color: #a06455 !important; font-size: 9px; }
.sale-line-amount { min-width: 95px; }
.sale-line-amount strong { color: #82652d; }
.operational-checkout dl input { width: 108px; height: 29px; color: #eee8dc; text-align: right; background: #2c2c27; border-color: #403f37; }
.sale-payment-head { margin: 20px 0 9px; display: flex; align-items: center; justify-content: space-between; }
.sale-payment-head > span { color: #aaa59a; font-size: 9px; font-weight: 650; }
.operational-checkout .text-button { color: #d1b56f; }
.sale-payment-rows { display: grid; gap: 9px; }
.sale-payment-row { padding: 9px; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) 24px; gap: 7px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08); border-radius: 4px; }
.sale-payment-row select { grid-column: 1; grid-row: 1; }
.sale-payment-row [data-sale-payment-amount] { grid-column: 2; grid-row: 1; }
.sale-payment-row [data-sale-payment-reference] { grid-column: 1; grid-row: 2; }
.sale-payment-row [data-sale-payment-remark] { grid-column: 2; grid-row: 2; }
.sale-payment-row .remove-line { grid-column: 3; grid-row: 1 / span 2; }
.sale-payment-row input, .sale-payment-row select { min-width: 0; height: 34px; color: #ded8cc; background: #2c2c27; border-color: #403f37; }
.sale-payment-gap { margin-top: 10px; padding: 8px 10px; color: #dfb4a9; background: rgba(147,77,64,.13); border: 1px solid rgba(174,100,86,.2); border-radius: 4px; font-size: 9px; }
.sale-payment-gap.is-balanced { color: #acd0b4; background: rgba(67,116,79,.14); border-color: rgba(90,137,101,.25); }
.sale-return-lines-wrap { margin-top: 18px; max-height: 350px; border: 1px solid var(--line); }
.sale-return-lines-wrap table { min-width: 820px; }
.sale-return-lines-wrap td strong, .sale-return-lines-wrap td small { display: block; }
.sale-return-lines-wrap td small { margin-top: 4px; color: #969289; font-size: 8px; }
.sale-return-fields { margin-top: 20px; }
.sale-return-dialog .record-dialog-body { max-height: calc(100vh - 220px); }
.sale-return-payment-head { margin-top: 20px; display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.sale-return-payment-head div { display: grid; gap: 4px; }
.sale-return-payment-head strong { font-size: 11px; }
.sale-return-payment-head span { color: #8d8980; font-size: 8px; }
.sale-return-payment-rows { margin-top: 10px; display: grid; gap: 8px; }
.sale-return-payment-row { display: grid; grid-template-columns: 140px 120px minmax(150px,1fr) minmax(150px,1fr) 32px; gap: 8px; align-items: center; }
.sale-return-payment-row input, .sale-return-payment-row select { min-width: 0; height: 36px; }
.sale-return-payment-row .remove-line { width: 32px; height: 32px; color: #8e6a62; background: #f2e7e4; border-radius: 50%; }
.sale-return-payment-gap { margin-top: 10px; padding: 9px 11px; color: #94564d; background: #f5e9e6; border: 1px solid #ead3ce; border-radius: 4px; font-size: 9px; }
.sale-return-payment-gap.is-balanced { color: #4e7657; background: #eaf2eb; border-color: #d4e4d6; }

.member-dashboard { display: grid; grid-template-columns: .85fr 1.15fr; gap: 18px; }
.member-profile { min-height: 260px; padding: 28px; display: grid; grid-template-columns: 66px 1fr; gap: 18px; align-content: start; }
.member-avatar.large { width: 66px; height: 66px; font-size: 22px; }
.member-profile h3 { margin: 10px 0 5px; font: 600 24px/1.2 "Songti SC", STSong, serif; }
.member-profile p { margin: 0; color: #8f8c83; font-size: 9px; }
.member-profile dl { grid-column: 1/-1; margin: 25px 0 0; padding-top: 22px; display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); }
.member-profile dl div { text-align: center; border-right: 1px solid var(--line); }
.member-profile dl div:last-child { border: 0; }
.member-profile dt { color: #969289; font-size: 9px; }
.member-profile dd { margin: 7px 0 0; font: 600 19px/1 Georgia, serif; }
.points-ledger { padding-bottom: 8px; }
.rule-chip { padding: 6px 8px; color: #86682e; background: #f1e8d5; border-radius: 3px; font-size: 8px; font-weight: 700; }
.ledger-row { margin: 0 22px; padding: 17px 0; display: grid; grid-template-columns: 31px 1fr auto 80px; gap: 11px; align-items: center; border-bottom: 1px solid var(--line); }
.ledger-row:last-child { border-bottom: 0; }
.ledger-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; font-size: 16px; }
.ledger-icon.plus { color: #4f795e; background: #e8f0e9; }
.ledger-icon.minus { color: #9b5e54; background: #f3e9e6; }
.ledger-row div { display: grid; gap: 3px; }
.ledger-row strong { font-size: 10px; }
.ledger-row p { margin: 0; color: #99958c; font-size: 8px; }
.ledger-row > b { color: var(--gold-deep); font-size: 11px; }
.ledger-row time { color: #99958c; font-size: 8px; text-align: right; }

.print-layout { display: grid; grid-template-columns: 1fr 360px; gap: 18px; }
.label-preview { min-height: 410px; display: grid; place-items: center; align-content: center; gap: 24px; background: radial-gradient(circle at center, #eeebe3, #ddd8cd); border: 1px solid #d5d0c6; border-radius: 8px; }
.label-preview > span { color: #8a877e; font-size: 9px; letter-spacing: 1px; }
.jewelry-label { position: relative; width: 520px; height: 245px; padding: 24px 27px; display: grid; grid-template-columns: 1.3fr .7fr; align-content: start; color: #171713; background: #fffdf7; box-shadow: 0 22px 40px rgba(30,28,22,.18); transform: rotate(-2deg); }
.jewelry-label::after { content: ""; position: absolute; inset: 9px; border: 1px solid #d7c8a7; pointer-events: none; }
.label-brand { grid-column: 1/-1; padding-bottom: 12px; margin-bottom: 13px; border-bottom: 1px solid #d8cdb5; font: 600 12px/1 Georgia, serif; letter-spacing: 2px; }
.jewelry-label > strong { font: 600 20px/1.3 "Songti SC", STSong, serif; }
.jewelry-label > p { grid-column: 1; margin: 7px 0; color: #5c594f; font-size: 10px; }
.jewelry-label > b { grid-column: 2; grid-row: 2/4; align-self: center; justify-self: end; font: 600 25px/1 Georgia, serif; }
.barcode { grid-column: 1; margin-top: 12px; height: 43px; display: flex; gap: 3px; align-items: stretch; }
.barcode i { background: #191914; }
.barcode i:nth-child(2n) { width: 2px; }
.barcode i:nth-child(3n) { width: 6px; }
.barcode i:nth-child(4n+1) { width: 3px; }
.jewelry-label > small { grid-column: 1; margin-top: 5px; font: 9px/1 monospace; letter-spacing: 2px; }
.print-control { padding: 28px; }
.print-control h3 { margin: 7px 0 25px; font: 600 21px/1.2 "Songti SC", STSong, serif; }
.printer-online { padding: 16px; display: grid; grid-template-columns: 10px 1fr auto; gap: 12px; align-items: center; background: #f1eee7; border: 1px solid #e3ddd2; }
.printer-online > i { width: 7px; height: 7px; background: #5f8b6c; border-radius: 50%; box-shadow: 0 0 0 5px rgba(95,139,108,.11); }
.printer-online div { display: grid; gap: 4px; }
.printer-online strong { font-size: 11px; }
.printer-online p { margin: 0; color: #8e8b82; font-size: 8px; }
.printer-online > span { color: #547760; font-size: 8px; font-weight: 700; }
.printer-online.is-offline > i { background: #9b978e; box-shadow: 0 0 0 5px rgba(155,151,142,.11); }
.printer-online.is-offline > span { color: #817d74; }
.print-control dl { margin: 22px 0; }
.print-control dl div { padding: 12px 0; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); }
.print-control dt { color: #8f8c83; font-size: 9px; }
.print-control dd { margin: 0; font-size: 10px; font-weight: 600; }

.report-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.report-card { position: relative; min-height: 220px; padding: 28px; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: 8px; transition: .2s ease; }
.report-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d8c9a8; }
.report-card > span { position: absolute; right: 22px; top: 17px; color: #eee9df; font: 700 48px/1 Georgia, serif; }
.report-card h3 { margin: 20px 0 11px; font: 600 20px/1.2 "Songti SC", STSong, serif; }
.report-card p { max-width: 460px; margin: 0; color: #858279; font-size: 10px; line-height: 1.75; }
.report-card button { margin-top: 28px; padding: 0; display: inline-flex; gap: 5px; align-items: center; color: var(--gold-deep); background: transparent; border: 0; font-size: 9px; font-weight: 700; }
.report-card button svg { width: 13px; }

/* Formal data workspaces */
.entity-kpis { grid-template-columns: repeat(4, 1fr) !important; }
.entity-kpis .metric-card { min-height: 132px; }
.entity-kpis .metric-card > strong { margin-top: 11px; font-size: 25px; }
.entity-panel { overflow: hidden; }
.entity-toolbar { padding: 18px 20px; display: grid; grid-template-columns: minmax(250px, 1.8fr) repeat(3, minmax(135px, .75fr)) auto auto; gap: 11px; align-items: end; background: #f1eee7; border-bottom: 1px solid var(--line); }
.entity-toolbar, .sales-items-toolbar, .report-filterbar { position: relative; z-index: 3; }
.entity-panel:has(.store-tree-trigger[aria-expanded="true"]), .sales-items-panel:has(.store-tree-trigger[aria-expanded="true"]), .report-workspace:has(.store-tree-trigger[aria-expanded="true"]) { overflow: visible; }
.entity-toolbar.member-toolbar { grid-template-columns: minmax(300px, 2fr) repeat(2, minmax(150px, .8fr)) auto auto; }
.entity-toolbar label, .report-filterbar label { display: grid; gap: 6px; }
.entity-toolbar label > span, .report-filterbar label > span { color: #77746c; font-size: 9px; font-weight: 700; }
.store-tree-select { position: relative; min-width: 0; }
.store-tree-trigger { position: relative; width: 100%; height: 39px; padding: 0 31px 0 11px; overflow: hidden; color: #2f2e29; background: #fbfaf6; border: 1px solid #ded9cf; border-radius: 4px; font-size: 11px; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.store-tree-trigger::after { content: "⌄"; position: absolute; top: 50%; right: 11px; color: #77746c; transform: translateY(-56%); transition: transform .16s ease; }
.store-tree-trigger[aria-expanded="true"] { border-color: #b9964d; box-shadow: 0 0 0 2px rgba(185,150,77,.11); }
.store-tree-trigger[aria-expanded="true"]::after { transform: translateY(-40%) rotate(180deg); }
.store-tree-trigger.has-partial { color: #8b6720; font-weight: 750; }
.store-tree-menu { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; width: max(240px, 100%); max-height: 330px; overflow-y: auto; padding: 8px; background: #fffdfa; border: 1px solid #ddd5c6; border-radius: 9px; box-shadow: 0 18px 42px rgba(38,34,26,.18); }
.store-tree-heading { padding: 4px 8px 8px; color: #918978; font-size: 8px; font-weight: 800; letter-spacing: .16em; }
.store-tree-menu button { width: 100%; display: flex; align-items: center; gap: 9px; padding: 8px; color: #4c4941; background: transparent; border: 0; border-radius: 6px; text-align: left; cursor: pointer; }
.store-tree-menu button:hover { background: #f6f0e4; }
.store-tree-select-all { margin-bottom: 5px; border-bottom: 1px solid #eee7da !important; border-radius: 6px 6px 0 0 !important; }
.store-tree-select-all strong, .store-tree-select-all small, .store-tree-company strong, .store-tree-company small { display: block; }
.store-tree-select-all strong { color: #635d51; font-size: 10px; }
.store-tree-select-all small { margin-top: 2px; color: #aaa18e; font-size: 8px; }
.store-tree-company { margin-bottom: 4px; background: #faf5ea !important; border: 1px solid #eadfc9 !important; }
.store-tree-company strong { color: #28261f; font-family: Georgia, "Times New Roman", serif; font-size: 12px; }
.store-tree-company small { margin-top: 2px; color: #9a917f; font-size: 8px; }
.store-tree-check { width: 16px; height: 16px; flex: 0 0 16px; display: grid; place-items: center; color: transparent; border: 1px solid #cfc7b7; border-radius: 4px; font-size: 10px; font-weight: 900; }
.store-tree-menu button.is-selected .store-tree-check { color: #fff; background: #aa8439; border-color: #aa8439; }
.store-tree-branches > span { display: block; padding: 5px 8px 3px 33px; color: #aaa18e; font-size: 8px; }
.store-tree-branches button { padding-left: 18px; }
.entity-toolbar .button, .report-filterbar .button { height: 39px; }
.entity-toolbar .text-button { height: 39px; justify-content: center; }
.entity-table-wrap { min-height: 350px; max-height: 560px; }
.entity-table-wrap table { min-width: 1080px; }
.entity-table-wrap tbody tr, .inventory-detail-table tbody tr { transition: background .16s ease, box-shadow .16s ease; }
.entity-table-wrap tbody tr[data-record-id], .inventory-detail-table tbody tr[data-item-id] { cursor: pointer; }
.entity-table-wrap tbody tr[data-record-id]:hover, .inventory-detail-table tbody tr[data-item-id]:hover { background: #f8f3e9; }
.inventory-detail-table tbody tr.is-selected { background: #f3ead8; box-shadow: inset 3px 0 #b9954c; }
.entity-table-wrap td strong { display: block; font-size: 10px; }
.entity-table-wrap td small { display: block; margin-top: 4px; color: #99958c; font-size: 8px; }
.entity-pagination { min-height: 54px; padding: 10px 18px; display: flex; align-items: center; justify-content: space-between; color: #89867d; background: #faf8f3; border-top: 1px solid var(--line); font-size: 9px; }
.entity-pagination > div { display: flex; gap: 8px; }
.entity-pagination .command-button:disabled { cursor: not-allowed; opacity: .42; }
.loading-cell { height: 180px !important; color: #89867d !important; text-align: center !important; font-size: 10px !important; }
.loading-cell > span, .dialog-loading > span { width: 17px; height: 17px; margin-right: 9px; display: inline-block; vertical-align: middle; border: 2px solid #ded6c5; border-top-color: #a47d37; border-radius: 50%; animation: jc-spin .8s linear infinite; }
@keyframes jc-spin { to { transform: rotate(360deg); } }
.data-integrity-note { margin: 0 0 17px; padding: 13px 16px; display: flex; gap: 12px; align-items: center; color: #796a4c; background: #f3ecdc; border: 1px solid #e4d6b7; border-left: 3px solid #b9954c; border-radius: 5px; }
.data-integrity-note strong { flex: 0 0 auto; font-size: 9px; letter-spacing: .4px; }
.data-integrity-note span { color: #807866; font-size: 9px; line-height: 1.6; }
.data-integrity-note.dark { margin: 20px 0; color: #d0b87e; background: rgba(185,149,76,.09); border-color: rgba(185,149,76,.18); }
.data-integrity-note.dark span { color: #8f897d; }
.entity-name { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; }
.entity-name > i { width: 34px; height: 34px; display: grid; place-items: center; color: #3c301d; background: linear-gradient(145deg, #e7d7b0, #b58e43); border-radius: 50%; font: 700 11px/1 Georgia, serif; font-style: normal; }
.masked-phone { font: 600 10px/1 monospace; letter-spacing: .5px; }
.status-pill { display: inline-flex; padding: 5px 8px; border-radius: 20px; color: #4e765c; background: #e8f0e8; font-size: 8px; font-weight: 750; white-space: nowrap; }
.status-pill.pending, .status-pill.draft { color: #8a6b31; background: #f3ead8; }
.status-pill.returned, .status-pill.rejected, .status-pill.voided { color: #92594f; background: #f3e8e5; }
.status-pill.approved, .status-pill.completed { color: #4e765c; background: #e7efe8; }

/* Sales line register */
.sales-item-kpis { grid-template-columns: repeat(5, 1fr) !important; }
.sales-item-kpis .metric-card { min-height: 126px; padding: 18px; }
.sales-item-kpis .metric-card > strong { margin-top: 10px; font-size: 22px; }
.sales-items-quality b { color: #7e4d43; font-weight: 750; }
.sales-items-panel { overflow: hidden; }
.sales-items-toolbar { padding: 16px 18px; display: grid; grid-template-columns: 1.7fr 1.25fr repeat(4, minmax(128px, .8fr)); gap: 11px 10px; align-items: end; background: #f1eee7; border-bottom: 1px solid var(--line); }
.sales-items-toolbar label { display: grid; gap: 6px; }
.sales-items-toolbar label > span { color: #77746c; font-size: 9px; font-weight: 700; }
.sales-items-toolbar input, .sales-items-toolbar select { height: 37px; }
.sales-items-toolbar .store-tree-trigger { height: 37px; }
.sale-product-link { max-width: 180px; padding: 0; overflow: hidden; color: #9a721f; background: none; border: 0; border-bottom: 1px dashed #b99a58; font: inherit; font-weight: 750; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.sale-product-link:hover { color: #5f4411; border-bottom-style: solid; }
.sales-items-search { grid-column: span 2; }
.sales-items-query-actions { height: 37px; display: flex; gap: 8px; align-items: center; }
.sales-items-query-actions .button { height: 37px; }
.sales-items-query-actions .text-button { height: 37px; }
.sales-items-print-heading { display: none; }
.sales-items-table-wrap { min-height: 390px; max-height: 600px; }
.sales-items-table { min-width: 2050px; }
.sales-items-table thead { position: sticky; top: 0; z-index: 2; }
.sales-items-table tbody tr[data-sales-no] { cursor: pointer; }
.sales-items-table tbody tr[data-sales-no]:hover { background: #f8f3e9; }
.sales-items-table td strong, .sale-detail-lines td strong { display: block; color: #2c2b26; font-size: 10px; }
.sales-items-table td small, .sale-detail-lines td small { display: block; margin-top: 4px; color: #969289; font-size: 8px; }
.sales-items-table th:nth-child(1) { min-width: 175px; }
.sales-items-table th:nth-child(2) { min-width: 150px; }
.sales-items-table th:nth-child(3) { min-width: 150px; }
.sales-items-table th:nth-child(8) { min-width: 145px; }
.sales-items-table th:nth-child(9) { min-width: 135px; }
.sales-items-table th:nth-child(11) { min-width: 150px; }
.sales-items-table th:nth-child(12) { min-width: 125px; }
.sales-items-table th:nth-child(13) { min-width: 180px; }
.line-remark { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.line-match { display: inline-flex; padding: 5px 8px; border-radius: 20px; font-size: 8px; font-weight: 750; white-space: nowrap; }
.line-match.matched { color: #4e765c; background: #e7efe8; }
.line-match.mismatch { color: #8a672d; background: #f3ead8; }
.line-match.unmatched { color: #92594f; background: #f3e8e5; }
.line-match.unknown { color: #6e6b64; background: #ece9e2; }
.order-quality-warning { margin-top: 18px; }
.sale-detail-lines-wrap { max-height: 420px; border: 1px solid var(--line); }
.sale-detail-lines { min-width: 1700px; }
.sale-detail-lines thead { position: sticky; top: 0; z-index: 1; }

/* Transfer builder */
.transfer-builder { display: grid; grid-template-columns: minmax(760px, 1fr) 310px; gap: 18px; align-items: start; }
.transfer-form-panel { padding-top: 6px; }
.field-span-two { grid-column: span 2; }
.transfer-scan-row { display: grid; grid-template-columns: 1fr 90px auto; gap: 10px; }
.transfer-scan-row label { position: relative; }
.transfer-scan-row label svg { position: absolute; left: 12px; top: 11px; width: 17px; color: #8d877c; }
.transfer-scan-row label input { height: 42px; padding-left: 40px; font-family: ui-monospace, Consolas, monospace; }
.transfer-scan-row > input, .transfer-scan-row .button { height: 42px; }
.transfer-lines-wrap { min-height: 235px; margin-top: 16px; border: 1px solid var(--line); border-radius: 5px; }
.transfer-lines-wrap table { min-width: 720px; }
.transfer-quantity { width: 72px; height: 31px; }
.remove-line { color: #9a5c52; background: transparent; border: 0; font-size: 18px; }
.transfer-summary-card { position: sticky; top: 112px; padding: 27px; color: #eee8dc; background: linear-gradient(155deg, #25251f, #161612); border: 1px solid #302f29; border-radius: 8px; box-shadow: 0 18px 45px rgba(24,23,19,.16); }
.transfer-summary-card h3 { margin: 8px 0 23px; font: 500 22px/1.2 "Songti SC", STSong, serif; }
.transfer-summary-card dl { margin: 0; }
.transfer-summary-card dl div { padding: 12px 0; display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.transfer-summary-card dt { color: #858178; font-size: 9px; }
.transfer-summary-card dd { margin: 0; color: #e2dbce; font-size: 10px; font-weight: 650; text-align: right; }
.transfer-summary-card .button + .button { margin-top: 9px; }

/* Record dialogs */
.record-dialog { width: min(1120px, calc(100vw - 48px)); max-height: calc(100vh - 48px); padding: 0; overflow: hidden; color: var(--ink); background: #fbfaf6; border: 1px solid #d9d2c5; border-radius: 10px; box-shadow: 0 36px 100px rgba(15,15,12,.38); }
.record-dialog::backdrop { background: rgba(18,18,15,.72); backdrop-filter: blur(5px); }
.record-dialog form { margin: 0; }
.record-dialog-head { min-height: 105px; padding: 24px 28px; display: flex; align-items: flex-start; justify-content: space-between; background: linear-gradient(120deg, #24241f, #171713); }
.record-dialog-head h2 { margin: 8px 0 5px; color: #f0eadd; font: 550 25px/1.2 "Songti SC", STSong, serif; }
.record-dialog-head p { margin: 0; color: #858279; font-size: 9px; }
.record-dialog-head .dialog-close { color: #aaa69d; background: rgba(255,255,255,.07); }
.record-dialog-body { max-height: calc(100vh - 220px); padding: 8px 28px 28px; overflow: auto; }
.dialog-section { padding: 21px 0; border-bottom: 1px solid var(--line); }
.dialog-section:last-child { border-bottom: 0; }
.dialog-section h3 { margin: 0 0 16px; display: flex; gap: 9px; align-items: center; font: 600 14px/1.2 "Songti SC", STSong, serif; }
.dialog-section h3 span { color: #a47c35; font: 650 12px/1 Georgia, serif; }
.textarea-field { display: grid; gap: 7px; }
.textarea-field > span { color: #68665f; font-size: 10px; font-weight: 600; }
textarea { width: 100%; padding: 11px; color: #2f2e29; background: #fbfaf6; border: 1px solid #ded9cf; border-radius: 4px; outline: none; resize: vertical; }
textarea:focus { border-color: #bfa66e; box-shadow: 0 0 0 3px rgba(185,149,76,.1); }
.record-dialog-actions { min-height: 70px; padding: 13px 28px; display: flex; gap: 9px; align-items: center; justify-content: flex-end; background: #f0ede6; border-top: 1px solid #ddd7cb; }
.record-dialog-actions > span { margin-right: auto; color: #8e8a80; font-size: 9px; }
.record-dialog-actions[hidden] { display: none; }
.profile-dialog, .order-dialog { width: min(1040px, calc(100vw - 48px)); }
.dialog-loading { min-height: 320px; display: grid; grid-template-columns: auto auto; gap: 5px; place-content: center; color: #89857c; font-size: 10px; }
.profile-hero { margin: 20px 0; padding: 22px; display: grid; grid-template-columns: 58px 1fr auto; gap: 15px; align-items: center; color: #eee8dc; background: linear-gradient(135deg, #25251f, #191915); border-radius: 7px; }
.profile-hero .member-avatar { width: 58px; height: 58px; }
.profile-hero h3 { margin: 0 0 5px; font: 550 22px/1.2 "Songti SC", STSong, serif; }
.profile-hero p { margin: 0; color: #8f8b82; font-size: 9px; }
.profile-hero dl { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(95px,1fr)); gap: 24px; text-align: right; }
.profile-hero dt { color: #827e75; font-size: 8px; }
.profile-hero dd { margin: 5px 0 0; color: #e3c57c; font: 600 17px/1 Georgia, serif; }
.profile-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 16px; }
.profile-block { padding: 20px; background: #fffefb; border: 1px solid var(--line); border-radius: 6px; }
.profile-block h4, .report-section h4 { margin: 0 0 16px; font: 600 15px/1.2 "Songti SC", STSong, serif; }
.profile-facts { display: grid; grid-template-columns: repeat(2,1fr); gap: 0 20px; }
.profile-facts div { padding: 11px 0; border-bottom: 1px solid var(--line); }
.profile-facts dt { color: #8f8b82; font-size: 8px; }
.profile-facts dd { margin: 5px 0 0; font-size: 10px; font-weight: 600; }
.profile-ledger, .profile-orders { max-height: 310px; overflow: auto; }
.profile-ledger .ledger-row { margin: 0; }
.source-summary-empty { min-height: 135px; padding: 24px; display: grid; place-content: center; text-align: center; color: #827d72; background: #f3efe7; border: 1px dashed #d8cdb8; border-radius: 5px; }
.source-summary-empty strong { color: #6e5b35; font-size: 11px; }
.source-summary-empty p { max-width: 470px; margin: 7px auto 0; font-size: 9px; line-height: 1.7; }
.order-summary-grid { margin: 18px 0; display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.order-summary-grid > div { padding: 14px; background: #f1eee7; border-radius: 5px; }
.order-summary-grid small { color: #8f8b82; font-size: 8px; }
.order-summary-grid strong { margin-top: 6px; display: block; font-size: 12px; }
.item-edit-dialog { width: min(1320px, calc(100vw - 36px)); }
.item-edit-dialog .record-dialog-head { min-height: 92px; padding-top: 19px; padding-bottom: 19px; }
.legacy-item-body { padding-top: 18px; }
.legacy-stock-strip { padding: 14px; display: grid; grid-template-columns: 1.05fr 1fr 1fr .75fr .9fr .8fr 1fr; gap: 9px; background: linear-gradient(135deg, #ede7da, #f6f2e9); border: 1px solid #dcd3c2; border-left: 3px solid #ad853b; border-radius: 6px; }
.legacy-stock-strip label, .legacy-product-grid label, .legacy-pricing-grid label { min-width: 0; display: grid; gap: 6px; }
.legacy-stock-strip label > span, .legacy-product-grid label > span, .legacy-pricing-grid label > span { color: #706b61; font-size: 9px; font-weight: 750; }
.legacy-stock-strip input { height: 35px; font-weight: 700; }
.legacy-product-section { padding-bottom: 18px; }
.legacy-product-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 11px; }
.legacy-span-two { grid-column: span 2; }
.legacy-remark-field { grid-column: span 2; }
.legacy-stone-section { padding-bottom: 17px; }
.legacy-stone-table-wrap { border: 1px solid #ded8cc; border-radius: 5px; }
.legacy-stone-table { min-width: 1100px; table-layout: fixed; }
.legacy-stone-table th { padding: 9px 7px; color: #736e64; background: #eee9df; font-size: 8px; text-align: center; }
.legacy-stone-table th:first-child { width: 145px; }
.legacy-stone-table td { padding: 6px; background: #fffefb; }
.legacy-stone-table input, .legacy-stone-table select { height: 33px; padding: 0 8px; text-align: center; }
.legacy-stone-table td:first-child input, .legacy-stone-table td:first-child select { text-align: left; font-weight: 700; }
.legacy-side-stone-row { background: #fbf8f1; }
.legacy-data-note { margin: 9px 0 0; color: #9a9387; font-size: 8px; line-height: 1.6; }
.legacy-pricing-section { border-bottom: 0; }
.legacy-pricing-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 11px; }

/* Reports */
.report-tabs { margin-bottom: 12px; padding: 5px; display: inline-flex; gap: 4px; background: #e9e5dc; border-radius: 6px; }
.report-tabs button { min-width: 160px; height: 39px; color: #77736a; background: transparent; border: 0; border-radius: 4px; font-size: 10px; font-weight: 700; }
.report-tabs button.is-active { color: #f2e9d6; background: #22221d; box-shadow: 0 7px 18px rgba(30,29,24,.14); }
.report-workspace { overflow: hidden; }
.report-filterbar { padding: 16px 20px; display: grid; grid-template-columns: repeat(3,minmax(170px,220px)) auto; gap: 11px; align-items: end; background: #f1eee7; border-bottom: 1px solid var(--line); }
.report-integrity { margin: 16px 20px 0; }
.report-panel { display: none; padding: 20px; }
.report-panel.is-active { display: block; }
.report-title { padding: 4px 2px 18px; display: flex; align-items: end; justify-content: space-between; }
.report-title h3 { margin: 7px 0 0; font: 600 23px/1.2 "Songti SC", STSong, serif; }
.report-title p { margin: 0; color: #918d83; font-size: 9px; }
.report-kpi-strip { display: grid; grid-template-columns: repeat(5,1fr); color: #eee8dc; background: #22221e; border-radius: 6px; overflow: hidden; }
.report-kpi-strip span { padding: 17px 19px; display: grid; gap: 7px; border-right: 1px solid rgba(255,255,255,.08); }
.report-kpi-strip span:last-child { border: 0; }
.report-kpi-strip small { color: #87837a; font-size: 8px; }
.report-kpi-strip strong { color: #e1c37b; font: 600 17px/1 Georgia, serif; }
.report-section { margin-top: 22px; }
.report-table-wrap { max-height: 360px; }
.report-flow-wrap { max-height: 560px; }
.report-flow-wrap table { min-width: 2350px; }
.report-flow-wrap thead tr:first-child th { color: #e0c27c; background: #25251f; border-right: 1px solid #3a3931; text-align: center; }
.report-flow-wrap thead tr:nth-child(2) th { background: #eae4d7; }
.report-flow-wrap td { text-align: right; }
.report-flow-wrap td:first-child { position: sticky; left: 0; z-index: 1; color: #282721; background: #fffefb; text-align: left; font-weight: 650; }
.report-value-missing { color: #aaa69d; }
.payment-report-filters { margin-bottom: 14px; padding: 14px; display: grid; grid-template-columns: repeat(4,minmax(150px,1fr)); gap: 10px; background: #f3f0e9; border: 1px solid #e2ddd2; border-radius: 6px; }
.payment-report-filters label { display: grid; gap: 6px; }
.payment-report-filters label > span { color: #77746c; font-size: 9px; font-weight: 700; }
.payment-report-kpis { grid-template-columns: repeat(4,1fr); }
.payment-method-summary { display: grid; grid-template-columns: repeat(3,minmax(180px,1fr)); gap: 10px; }
.payment-method-summary > div:not(.source-summary-empty) { padding: 14px 16px; display: grid; gap: 5px; background: #f3f0e9; border-left: 2px solid #bea05e; border-radius: 4px; }
.payment-method-summary > .source-summary-empty { grid-column: 1 / -1; }
.payment-method-summary span { color: #77736a; font-size: 9px; font-weight: 700; }
.payment-method-summary strong { color: #292821; font: 600 16px/1 Georgia,serif; }
.payment-method-summary small { color: #969188; font-size: 8px; }
.payment-report-wrap { max-height: 560px; }
.payment-report-wrap table { min-width: 1380px; }
.payment-report-wrap td strong, .payment-report-wrap td small { display: block; }
.payment-report-wrap td small { margin-top: 4px; color: #9a968d; font-size: 8px; }
.payment-business-type { display: inline-flex; padding: 5px 7px; color: #685f4e; background: #eee9df; border-radius: 99px; font-size: 8px; font-weight: 700; }
.payment-business-type.is-outflow { color: #884a43; background: #f4e7e4; }
.payment-amount.is-inflow { color: #48684f; }
.payment-amount.is-outflow { color: #984f47; }

.gold-dialog { width: 560px; padding: 0; color: var(--ink); background: #fbfaf6; border: 1px solid #d8d2c6; border-radius: 8px; box-shadow: 0 35px 90px rgba(15,15,12,.35); }
.gold-dialog::backdrop { background: rgba(20,20,17,.68); backdrop-filter: blur(4px); }
.gold-dialog form { padding: 28px; }
.dialog-heading { display: flex; justify-content: space-between; }
.dialog-heading h2 { margin: 8px 0 6px; font: 600 24px/1.2 "Songti SC", STSong, serif; }
.dialog-heading p { margin: 0; color: #858279; font-size: 10px; }
.dialog-close { width: 32px; height: 32px; color: #817e75; background: #f0ede6; border: 0; border-radius: 50%; font-size: 19px; }
.rate-edit-list { margin-top: 22px; }
.rate-edit-row { padding: 14px 0; display: grid; grid-template-columns: 1fr 155px; gap: 20px; align-items: center; border-bottom: 1px solid var(--line); }
.rate-edit-row div { display: grid; gap: 3px; }
.rate-edit-row strong { font-size: 11px; }
.rate-edit-row small { color: #97938a; font-size: 8px; }
.rate-edit-row label { position: relative; }
.rate-edit-row input { padding-left: 26px; text-align: right; }
.rate-edit-row label::before { content: "¥"; position: absolute; left: 10px; top: 11px; z-index: 1; color: #8f8c83; font-size: 10px; }
.formula-note { margin-top: 20px; padding: 14px; background: #f1eee7; border-left: 2px solid var(--gold); }
.formula-note strong { font-size: 10px; }
.formula-note p { margin: 5px 0 0; color: #817e75; font-size: 9px; line-height: 1.65; }
.dialog-actions { margin-top: 22px; display: flex; justify-content: flex-end; gap: 9px; }

.toast { position: fixed; right: 28px; bottom: 28px; min-width: 230px; padding: 14px 17px; display: flex; gap: 10px; align-items: center; color: #eee8dc; background: #20201c; border: 1px solid #3b3931; border-radius: 6px; box-shadow: 0 18px 45px rgba(18,18,15,.28); transform: translateY(80px); opacity: 0; transition: .25s ease; z-index: 20; }
.toast.is-visible { transform: translateY(0); opacity: 1; }
.toast i { width: 23px; height: 23px; display: grid; place-items: center; color: #242017; background: #c7a65f; border-radius: 50%; font-size: 11px; font-style: normal; }
.toast span { font-size: 11px; }
.toast.is-error { border-color: #70433c; }
.toast.is-error i { color: #fff2ee; background: #9d584d; }

@media (max-width: 1380px) {
  .view { padding-left: 25px; padding-right: 25px; }
  .topbar { padding-left: 25px; padding-right: 25px; }
  .hero-panel { padding-left: 35px; }
  .metric-card { padding-left: 17px; padding-right: 17px; }
  .metric-card > strong { font-size: 21px; }
  .field-grid.four { grid-template-columns: repeat(3, 1fr); }
  .form-layout { grid-template-columns: 1fr 290px; }
  .jewelry-label { width: 450px; }
  .inventory-toolbar { grid-template-columns: repeat(4, minmax(118px, 1fr)); }
  .advanced-inventory { grid-template-columns: repeat(4, minmax(118px, 1fr)); }
  .advanced-inventory > div { grid-column: span 2; }
  .inventory-summary { grid-template-columns: repeat(3, 1fr); }
  .inventory-summary > span { border-bottom: 1px solid rgba(255,255,255,.07); }
  .entity-toolbar { grid-template-columns: minmax(230px, 1.6fr) repeat(2, minmax(125px,.8fr)) auto auto; }
  .entity-toolbar label:nth-of-type(4) { grid-column: auto; }
  .sales-items-toolbar { grid-template-columns: repeat(4, minmax(130px, 1fr)); }
  .sales-items-search { grid-column: span 2; }
  .sales-items-query-actions { grid-column: span 2; }
  .transfer-builder { grid-template-columns: minmax(700px, 1fr) 285px; }
  .legacy-stock-strip { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .legacy-product-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
}

@media (max-width: 1100px) {
  .operational-sales-layout { grid-template-columns: 1fr; }
  .operational-checkout { position: static; }
  .stocktake-layout { grid-template-columns: 1fr; }
  .stocktake-summary-card { position: static; }
  .stocktake-task-bar { grid-template-columns: 1fr auto; }
  .stocktake-task-bar > dl { grid-column: 1 / -1; }
  .inbound-builder { grid-template-columns: 1fr; }
  .inbound-insight { position: static; }
  .inbound-product-fields, .inbound-form-panel .field-grid.four { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .inbound-form-panel .field-grid.three { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .field-span-three { grid-column: span 2; }
  .payment-report-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .payment-method-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .legacy-product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .legacy-pricing-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 720px) {
  .stocktake-task-bar { grid-template-columns: 1fr; gap: 14px; }
  .stocktake-task-bar > dl { flex-wrap: wrap; gap: 14px 24px; }
  .stocktake-bar-actions { justify-content: flex-start; }
  .stocktake-steps { grid-template-columns: repeat(2,1fr); }
  .scan-entry { grid-template-columns: 1fr; }
  .scan-glyph { display: none; }
  .scan-help { padding-left: 22px; flex-direction: column; gap: 6px; }
  .stocktake-candidates { margin-left: 22px; }
  .stocktake-mini-metrics { grid-template-columns: repeat(2,1fr); }
  .stocktake-line-toolbar { align-items: stretch; flex-direction: column; }
  .stocktake-line-toolbar input { width: 100%; }
  .stocktake-create-fields { grid-template-columns: 1fr !important; }
  .stocktake-create-fields .field-span-two { grid-column: auto; }
  .operational-member-lookup, .sale-scan-row, .sale-new-member { grid-template-columns: 1fr; margin-left: 0; }
  .operational-member-lookup .step-number { display: none; }
  .sale-member-result .data-empty, .sale-matched-member { margin-left: 0; }
  .sale-matched-member { grid-template-columns: 43px minmax(0,1fr) auto; }
  .sale-matched-member .text-button { grid-column: 2 / -1; justify-self: end; }
  .sale-return-fields { grid-template-columns: 1fr !important; }
  .sale-return-fields .field-span-two { grid-column: auto; }
  .sale-return-payment-head { align-items: stretch; flex-direction: column; }
  .sale-return-payment-row { grid-template-columns: 1fr 1fr 32px; }
  .sale-return-payment-row [data-sale-return-payment-method] { grid-column: 1; grid-row: 1; }
  .sale-return-payment-row [data-sale-return-payment-amount] { grid-column: 2; grid-row: 1; }
  .sale-return-payment-row [data-sale-return-payment-reference] { grid-column: 1; grid-row: 2; }
  .sale-return-payment-row [data-sale-return-payment-remark] { grid-column: 2; grid-row: 2; }
  .sale-return-payment-row .remove-line { grid-column: 3; grid-row: 1 / span 2; }
  .inbound-page-head, .inbound-paste-actions { align-items: stretch; flex-direction: column; }
  .inbound-page-head > div:last-child { width: 100%; }
  .inbound-page-head .button { flex: 1; }
  .inbound-product-fields, .inbound-form-panel .field-grid.four, .inbound-form-panel .field-grid.three { grid-template-columns: 1fr; }
  .legacy-stock-strip, .legacy-product-grid, .legacy-pricing-grid { grid-template-columns: 1fr; }
  .legacy-span-two, .legacy-remark-field { grid-column: auto; }
  .field-span-three { grid-column: auto; }
  .inbound-form-panel { padding-left: 16px; padding-right: 16px; }
  .inbound-paste-panel textarea { width: calc(100% - 32px); margin-left: 16px; margin-right: 16px; }
  .inbound-paste-actions { padding-left: 16px; padding-right: 16px; }
  .report-tabs { width: 100%; overflow-x: auto; }
  .report-tabs button { min-width: 145px; }
  .payment-report-filters, .payment-method-summary, .payment-report-kpis { grid-template-columns: 1fr; }
}

@media print {
  @page { size: landscape; margin: 10mm; }
  body.printing-inventory { background: #fff; }
  body.printing-inventory .sidebar,
  body.printing-inventory .topbar,
  body.printing-inventory .inventory-page-head,
  body.printing-inventory .inventory-live-strip,
  body.printing-inventory .inventory-kpis,
  body.printing-inventory .inventory-commandbar,
  body.printing-inventory .inventory-toolbar,
  body.printing-inventory .advanced-inventory,
  body.printing-inventory .inventory-summary,
  body.printing-inventory .inventory-subtotals,
  body.printing-inventory .inventory-table-foot,
  body.printing-inventory .toast { display: none !important; }
  body.printing-inventory .workspace { margin: 0; }
  body.printing-inventory .view[data-view-panel="inventory"] { padding: 0; }
  body.printing-inventory .inventory-table-panel { margin: 0; border: 0; box-shadow: none; }
  body.printing-inventory .inventory-table-wrap { max-height: none; overflow: visible; border: 0; }
  body.printing-inventory .inventory-detail-table { min-width: 0; font-size: 7px; }
  body.printing-inventory .inventory-detail-table th,
  body.printing-inventory .inventory-detail-table td { padding: 5px 6px; height: auto; }
  body.printing-inventory [data-column="select"] { display: none !important; }

  body.printing-sales-items { background: #fff; }
  body.printing-sales-items .sidebar,
  body.printing-sales-items .topbar,
  body.printing-sales-items .sales-items-page-head,
  body.printing-sales-items .sales-items-toolbar,
  body.printing-sales-items .entity-pagination,
  body.printing-sales-items .toast { display: none !important; }
  body.printing-sales-items .workspace { margin: 0; }
  body.printing-sales-items .view { display: none !important; }
  body.printing-sales-items .view[data-view-panel="sales-items"] { display: block !important; padding: 0; }
  body.printing-sales-items .sales-items-print-heading { margin-bottom: 8px; display: flex; justify-content: space-between; align-items: end; }
  body.printing-sales-items .sales-items-print-heading strong { font: 600 18px/1.2 "Songti SC", STSong, serif; }
  body.printing-sales-items .sales-items-print-heading span { color: #666; font-size: 7px; }
  body.printing-sales-items .sales-items-quality { margin: 0 0 8px; padding: 7px; }
  body.printing-sales-items .sales-item-kpis { margin: 0 0 8px; }
  body.printing-sales-items .sales-item-kpis .metric-card { min-height: 0; padding: 7px; box-shadow: none; }
  body.printing-sales-items .sales-item-kpis .metric-card > strong { margin-top: 4px; font-size: 12px; }
  body.printing-sales-items .sales-item-kpis .metric-card p { display: none; }
  body.printing-sales-items .sales-items-panel { border: 0; box-shadow: none; }
  body.printing-sales-items .sales-items-table-wrap { min-height: 0; max-height: none; overflow: visible; }
  body.printing-sales-items .sales-items-table { min-width: 0; width: 100%; table-layout: fixed; font-size: 6px; }
  body.printing-sales-items .sales-items-table th,
  body.printing-sales-items .sales-items-table td { min-width: 0; height: auto; padding: 3px 2px; white-space: normal; overflow-wrap: anywhere; }
  body.printing-sales-items .sales-items-table td strong { font-size: 6px; }
  body.printing-sales-items .sales-items-table td small,
  body.printing-sales-items .line-match { font-size: 5px; }

  body.printing-report { background: #fff; }
  body.printing-report .sidebar,
  body.printing-report .topbar,
  body.printing-report .page-actions,
  body.printing-report .report-tabs,
  body.printing-report .report-filterbar,
  body.printing-report .payment-report-filters,
  body.printing-report .toast { display: none !important; }
  body.printing-report .workspace { margin: 0; }
  body.printing-report .view { display: none !important; }
  body.printing-report .view[data-view-panel="reports"] { display: block !important; padding: 0; }
  body.printing-report .report-workspace { border: 0; box-shadow: none; }
  body.printing-report .report-panel { display: none !important; padding: 0; }
  body.printing-report .report-panel.is-active { display: block !important; }
  body.printing-report .report-integrity { margin: 8px 0 14px; }
  body.printing-report .report-table-wrap,
  body.printing-report .report-flow-wrap,
  body.printing-report .payment-report-wrap { max-height: none; overflow: visible; }
  body.printing-report table { font-size: 7px; }
  body.printing-report .report-flow-wrap table { min-width: 0; width: 100%; }
  body.printing-report th,
  body.printing-report td { padding: 4px 3px; }
}
