/**
 * @copyright © 2026 易企网ERP订货系统. 保留所有权利.
 * 本文件为系统源码之一，仅供授权使用，禁止未经授权的复制、修改与分发。
 */
/* ==========================================================================
   v1.2.22 · 进销存 / 订货系统 UI 结构重构层
   --------------------------------------------------------------------------
   背景：admin.css → theme.css → ui.css 三层历史覆盖，最终把侧栏压成 68px
   纯图标窄条（.sb-name{display:none}），二级菜单又是竖排裸链接，顶部 tabs
   再重复一遍，形成「双导航 + 大片留白 + 纯表格」的观感。
   本文件最后加载，用更高权重统一框架，并提供 x-* 组件库给新版业务页使用。
   ★ 只作用于 body.merchant / .app / .x-**，不改登录页、不改 JS 契约。
   ★ [hidden] 必须保留且置顶（登录遮罩铁律）。
   ========================================================================== */
[hidden], .hidden { display: none !important; }

body.merchant {
  --x-primary: #e5361f;
  --x-primary-2: #c52a16;
  --x-primary-soft: #fdeceb;
  --x-ink: #101828;
  --x-ink-2: #475467;
  --x-ink-3: #98a2b3;
  --x-line: #e7ecf3;
  --x-line-2: #dbe3ee;
  --x-bg: #f4f7fb;
  --x-card: #ffffff;
  --x-ok: #12a150;
  --x-warn: #e8890c;
  --x-err: #e5484d;
  --x-violet: #7f56d9;
  --x-r: 12px;
  --x-r-sm: 8px;
  --x-shadow: 0 1px 2px rgba(16,24,40,.04), 0 6px 18px rgba(16,24,40,.035);
}

/* ==========================================================================
   1. 框架：宽侧栏 + 分组二级菜单 + 干净顶栏
   ========================================================================== */
body.merchant .app .sidebar {
  width: 216px !important;
  min-width: 216px;
  background: linear-gradient(178deg, #14243c 0%, #0d1a2d 100%);
  border-right: 1px solid rgba(255,255,255,.06);
  box-shadow: 2px 0 16px rgba(10,22,40,.06);
  z-index: 12;
}
body.merchant .app .sb-brand {
  height: 62px !important;
  padding: 0 16px !important;
  display: flex !important;
  align-items: center;
  justify-content: flex-start !important;
  gap: 10px;
  background: rgba(255,255,255,.025);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
body.merchant .app .sb-logo {
  width: 32px !important; height: 32px !important;
  border-radius: 9px;
  background: linear-gradient(135deg, #3b82f6, #6aa5ff);
  display: inline-flex !important; align-items: center; justify-content: center;
  flex: none;
  box-shadow: 0 4px 14px rgba(59,130,246,.35);
}
body.merchant .app .sb-logo .ico { width: 18px; height: 18px; color: #fff; }
body.merchant .app .sb-name {
  display: block !important;
  font-size: 14px; font-weight: 650; color: #f1f6ff;
  letter-spacing: .2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
body.merchant .app .sb-menu { padding: 4px 10px 8px; overflow-y: auto; }
body.merchant .app .sb-menu-label {
  padding: 16px 12px 7px !important;
  font-size: 10.5px; letter-spacing: 1.2px; color: #617b9a;
  text-transform: uppercase; font-weight: 600;
}
body.merchant .app .sb-item { margin: 1px 0; }
body.merchant .app .sb-item > a {
  height: 34px !important;
  padding: 0 12px !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  border-radius: 9px !important;
  border-left: 0 !important;
  color: #aabdd6 !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: .5px !important;
  text-transform: uppercase !important;
  position: relative;
  transition: background .16s ease, color .16s ease;
}
body.merchant .app .sb-item > a > span { display: inline !important; }
body.merchant .app .sb-item > a .ico { width: 17px !important; height: 17px !important; color: #7e97b6; flex: none; }
body.merchant .app .sb-item > a:hover { background: rgba(255,255,255,.075) !important; color: #fff !important; }
body.merchant .app .sb-item.on > a {
  background: linear-gradient(90deg, rgba(229, 54, 31, .96), rgba(229, 54, 31, .55)) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(229, 54, 31, .28);
}
body.merchant .app .sb-item.on > a::before {
  content: ''; display: block; position: absolute; left: -10px; top: 9px;
  width: 3px; height: 22px; border-radius: 0 3px 3px 0; background: #7db2ff;
}
body.merchant .app .sb-item.on > a .ico { color: #fff !important; }
body.merchant .app .sb-foot { height: 42px; font-size: 11px; color: #5f7795; border-top: 1px solid rgba(255,255,255,.06); }

body.merchant .app .main { background: var(--x-bg); }
body.merchant .app .topbar {
  height: 62px !important; min-height: 62px;
  background: #fff !important;
  border-bottom: 1px solid var(--x-line) !important;
  box-shadow: 0 1px 3px rgba(16,24,40,.03);
  padding: 0 22px !important;
  display: flex; align-items: center; justify-content: space-between;
  z-index: 10;
}
body.merchant .app .tb-left { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
body.merchant .app .tb-title { font-size: 16px !important; font-weight: 650; color: var(--x-ink); margin: 0; }
body.merchant .app .tb-crumb { font-size: 12.5px; color: var(--x-ink-3); }
body.merchant .app .tb-crumb::before { content: '/'; margin-right: 8px; color: #d0d7e2; }
body.merchant .app .tb-right { display: flex; align-items: center; gap: 14px; }
body.merchant .app .tb-search {
  display: flex; align-items: center; height: 34px;
  background: #f6f8fc; border: 1px solid var(--x-line);
  border-radius: 18px; padding: 0 4px 0 12px;
}
body.merchant .app .tb-search input { border: 0; background: transparent; width: 190px; font-size: 12.5px; color: var(--x-ink); }
body.merchant .app .tb-search-btn {
  height: 26px; padding: 0 14px; border: 0; border-radius: 14px;
  background: var(--x-primary); color: #fff; font-size: 12px; cursor: pointer;
}
body.merchant .app .tb-user { gap: 7px; font-size: 12.5px; color: var(--x-ink-2); }
body.merchant .app .tb-user .avatar {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg,#3b82f6,#7aa8ff); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 600;
}

/* 授权横幅降噪：改成右上角轻量提示，不再横贯整屏 */
body.merchant .app .banner {
  margin: 8px 22px 0 !important; padding: 5px 12px !important;
  border-radius: 8px; font-size: 11.5px !important; line-height: 1.5;
  background: #f8fafc !important; border: 1px solid #edf1f6 !important; color: #98a2b3 !important;
}

body.merchant .app .body { display: flex; align-items: stretch; }
body.merchant .app .subnav {
  width: 186px !important; min-width: 186px;
  background: #fff !important;
  border-right: 1px solid var(--x-line) !important;
  padding: 16px 10px 24px !important;
  overflow-y: auto;
}
body.merchant .app .sub-group {
  padding: 14px 10px 6px !important;
  font-size: 10.5px; letter-spacing: .6px; color: var(--x-ink-3); font-weight: 600;
}
body.merchant .app .subnav a {
  display: flex !important; align-items: center;
  height: 34px !important; padding: 0 11px !important;
  margin: 1px 0 !important;
  border-radius: 8px !important; border-left: 0 !important;
  color: var(--x-ink-2) !important; font-size: 12.5px !important;
  position: relative; transition: background .15s ease;
}
body.merchant .app .subnav a:hover { background: #f5f8fd !important; color: var(--x-primary) !important; }
body.merchant .app .subnav a.on {
  background: var(--x-primary-soft) !important; color: var(--x-primary) !important; font-weight: 650;
}
body.merchant .app .subnav a.on::before {
  content: ''; position: absolute; left: 0; top: 9px; width: 3px; height: 16px;
  border-radius: 0 3px 3px 0; background: var(--x-primary);
}
body.merchant .app .content { min-width: 0; flex: 1; background: var(--x-bg); }
body.merchant .app .tabs {
  background: #fff !important; border-bottom: 1px solid var(--x-line) !important;
  padding: 0 22px !important; height: 42px !important; min-height: 42px;
  display: flex; align-items: stretch; gap: 4px;
}
body.merchant .app .tabs .tab {
  display: inline-flex; align-items: center; padding: 0 14px;
  font-size: 12.5px; color: var(--x-ink-2); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
body.merchant .app .tabs .tab.on { color: var(--x-primary) !important; border-bottom-color: var(--x-primary); font-weight: 650; }
body.merchant .app .page { padding: 20px 22px 36px !important; max-width: 1680px; }

/* ==========================================================================
   2. x-* 组件库（新版业务页统一使用，不污染旧页）
   ========================================================================== */
.x-page { color: var(--x-ink); font-size: 13px; }
.x-page * { box-sizing: border-box; }
.x-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.x-head h3 { margin: 0; font-size: 19px; font-weight: 680; letter-spacing: -.2px; color: var(--x-ink); }
.x-head p { margin: 5px 0 0; font-size: 12.5px; color: var(--x-ink-3); line-height: 1.6; }
.x-head-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.x-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--x-line-2);
  background: #fff; color: var(--x-ink-2); font-size: 12.5px; font-weight: 550;
  cursor: pointer; white-space: nowrap; transition: all .15s ease;
}
.x-btn:hover { border-color: #f3c9c0; color: var(--x-primary); background: #fafcff; }
.x-btn.primary { background: var(--x-primary); border-color: var(--x-primary); color: #fff; box-shadow: 0 3px 10px rgba(229, 54, 31, .18); }
.x-btn.primary:hover { background: var(--x-primary-2); color: #fff; }
.x-btn.ghost { border-color: transparent; background: transparent; }
.x-btn.danger { color: var(--x-err); border-color: #f5c6c8; }
.x-btn.sm { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 7px; }
.x-btn:disabled { opacity: .5; cursor: not-allowed; }

.x-card {
  background: var(--x-card); border: 1px solid var(--x-line); border-radius: var(--x-r);
  box-shadow: var(--x-shadow); margin-bottom: 16px; overflow: hidden;
}
.x-card-hd {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--x-line);
}
.x-card-hd h4 { margin: 0; font-size: 14px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.x-card-hd h4::before { content: ''; width: 3px; height: 14px; border-radius: 2px; background: var(--x-primary); }
.x-card-hd .sub { font-size: 12px; color: var(--x-ink-3); font-weight: 400; }
.x-card-bd { padding: 16px 18px; }
.x-card-bd.tight { padding: 0; }

.x-kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 16px; }
.x-kpi {
  position: relative; background: #fff; border: 1px solid var(--x-line); border-radius: var(--x-r);
  padding: 16px 18px; box-shadow: var(--x-shadow); min-height: 112px; overflow: hidden;
}
.x-kpi::after { content: ''; position: absolute; right: -26px; top: -26px; width: 86px; height: 86px; border-radius: 50%; background: var(--x-primary-soft); opacity: .65; }
.x-kpi .lb { font-size: 12px; color: var(--x-ink-3); position: relative; z-index: 1; }
.x-kpi .vl { font-size: 25px; font-weight: 700; letter-spacing: -.6px; margin: 9px 0 6px; color: var(--x-ink); position: relative; z-index: 1; }
.x-kpi .ft { font-size: 11.5px; color: var(--x-ink-3); position: relative; z-index: 1; }
.x-kpi .ft b { color: var(--x-ok); font-weight: 600; }
.x-kpi .ic { position: absolute; right: 16px; top: 16px; width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 15px; z-index: 2; }
.x-kpi.k2::after { background: #eafaf1; } .x-kpi.k2 .ic { background: #eafaf1; color: var(--x-ok); }
.x-kpi.k3::after { background: #fff5e6; } .x-kpi.k3 .ic { background: #fff5e6; color: var(--x-warn); }
.x-kpi.k4::after { background: #f2edff; } .x-kpi.k4 .ic { background: #f2edff; color: var(--x-violet); }
.x-kpi.k1::after { background: var(--x-primary-soft); } .x-kpi.k1 .ic { background: var(--x-primary-soft); color: var(--x-primary); }

.x-grid2 { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(0,1fr); gap: 16px; }
.x-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }

.x-toolbar {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  padding: 12px 16px; border-bottom: 1px solid var(--x-line); background: #fcfdff;
}
.x-toolbar .grow { flex: 1; min-width: 8px; }
.x-ipt, .x-sel {
  height: 32px; padding: 0 10px; border: 1px solid var(--x-line-2); border-radius: 7px;
  background: #fff; color: var(--x-ink); font-size: 12.5px; outline: none; min-width: 0;
}
.x-ipt:focus, .x-sel:focus { border-color: #93b4f8; box-shadow: 0 0 0 3px rgba(229, 54, 31, .09); }
.x-ipt::placeholder { color: #aab4c3; }
.x-seg { display: inline-flex; padding: 3px; background: #f1f4f9; border-radius: 9px; gap: 2px; flex-wrap: wrap; }
.x-seg button {
  height: 27px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent;
  color: var(--x-ink-2); font-size: 12.5px; cursor: pointer; white-space: nowrap;
}
.x-seg button.on { background: #fff; color: var(--x-primary); font-weight: 650; box-shadow: 0 1px 4px rgba(16,24,40,.10); }
.x-seg button .n { margin-left: 5px; font-size: 11px; color: var(--x-ink-3); }

.x-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.x-tbl th {
  background: #f8fafd; color: var(--x-ink-2); font-weight: 600; text-align: left;
  padding: 10px 14px; border-bottom: 1px solid var(--x-line); white-space: nowrap; position: sticky; top: 0; z-index: 1;
}
.x-tbl td { padding: 11px 14px; border-bottom: 1px solid #f0f3f8; color: var(--x-ink); vertical-align: middle; }
.x-tbl tbody tr:hover { background: #f8fbff; }
.x-tbl tbody tr:last-child td { border-bottom: 0; }
.x-tbl .num { font-variant-numeric: tabular-nums; }
.x-tbl .mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; color: var(--x-ink-2); }
.x-tbl .right { text-align: right; }
.x-tbl .link { color: var(--x-primary); cursor: pointer; font-weight: 550; }
.x-tbl .link:hover { text-decoration: underline; }
.x-tbl-wrap { overflow-x: auto; }

.x-tag {
  display: inline-flex; align-items: center; gap: 4px; height: 21px; padding: 0 8px;
  border-radius: 6px; font-size: 11.5px; font-weight: 550; white-space: nowrap;
}
.x-tag::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.x-tag.blue { background: #fdeceb; color: #e5361f; }
.x-tag.green { background: #eafaf1; color: #0f8a46; }
.x-tag.orange { background: #fff5e6; color: #b76a06; }
.x-tag.red { background: #fdeded; color: #d13b40; }
.x-tag.gray { background: #f1f3f7; color: #7a879b; }
.x-tag.violet { background: #f3edff; color: #7040c8; }

.x-flow { display: flex; align-items: stretch; gap: 0; padding: 4px 0; flex-wrap: wrap; }
.x-step {
  flex: 1 1 0; min-width: 118px; position: relative; padding: 14px 10px 14px 14px;
  background: #fafcff; border: 1px solid var(--x-line); border-right: 0;
  cursor: pointer; transition: background .16s ease;
}
.x-step:first-child { border-radius: 10px 0 0 10px; }
.x-step:last-child { border-right: 1px solid var(--x-line); border-radius: 0 10px 10px 0; }
.x-step:hover { background: var(--x-primary-soft); }
.x-step::after {
  content: ''; position: absolute; right: -8px; top: 50%; width: 14px; height: 14px;
  border-top: 1px solid var(--x-line-2); border-right: 1px solid var(--x-line-2);
  transform: translateY(-50%) rotate(45deg); background: inherit; z-index: 1;
}
.x-step:last-child::after { display: none; }
.x-step .st { font-size: 12.5px; font-weight: 650; color: var(--x-ink); display: flex; align-items: center; gap: 7px; }
.x-step .si { width: 20px; height: 20px; border-radius: 6px; background: var(--x-primary-soft); color: var(--x-primary); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.x-step .sn { font-size: 21px; font-weight: 700; margin: 8px 0 2px; color: var(--x-primary); font-variant-numeric: tabular-nums; }
.x-step .sd { font-size: 11.5px; color: var(--x-ink-3); }
.x-step.warn .sn { color: var(--x-warn); }

.x-list { display: flex; flex-direction: column; }
.x-list .it {
  display: flex; align-items: center; gap: 10px; padding: 11px 0;
  border-bottom: 1px dashed #edf1f7; cursor: pointer;
}
.x-list .it:last-child { border-bottom: 0; }
.x-list .it:hover .tt { color: var(--x-primary); }
.x-list .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--x-primary); flex: none; }
.x-list .dot.w { background: var(--x-warn); } .x-list .dot.e { background: var(--x-err); } .x-list .dot.g { background: var(--x-ok); }
.x-list .tt { font-size: 12.5px; color: var(--x-ink); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x-list .meta { font-size: 11.5px; color: var(--x-ink-3); white-space: nowrap; }

.x-quick { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.x-quick a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 6px; border-radius: 10px; background: #fafcff; border: 1px solid var(--x-line);
  color: var(--x-ink-2); font-size: 12.5px; cursor: pointer; transition: all .16s ease;
}
.x-quick a:hover { background: var(--x-primary-soft); border-color: #c9dcff; color: var(--x-primary); transform: translateY(-2px); }
.x-quick .qi { width: 34px; height: 34px; border-radius: 10px; background: #fff; border: 1px solid var(--x-line); display: flex; align-items: center; justify-content: center; font-size: 17px; }

.x-timeline { position: relative; padding: 4px 0 4px 20px; }
.x-timeline::before { content: ''; position: absolute; left: 6px; top: 12px; bottom: 12px; width: 1px; background: var(--x-line-2); }
.x-tl { position: relative; padding: 0 0 16px 0; }
.x-tl:last-child { padding-bottom: 0; }
.x-tl::before { content: ''; position: absolute; left: -18px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 2px solid var(--x-primary); }
.x-tl.gray::before { border-color: #c8d1de; }
.x-tl .t { font-size: 12.5px; font-weight: 600; color: var(--x-ink); }
.x-tl .d { font-size: 11.5px; color: var(--x-ink-3); margin-top: 3px; }
.x-tl .c { font-size: 12px; color: var(--x-ink-2); margin-top: 4px; }

.x-form { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px 18px; }
.x-form.one { grid-template-columns: 1fr; }
.x-f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.x-f.full { grid-column: 1 / -1; }
.x-f > label { font-size: 12px; color: var(--x-ink-2); font-weight: 550; }
.x-f > label i { color: var(--x-err); font-style: normal; }
.x-f .x-ipt, .x-f .x-sel, .x-f textarea { width: 100%; }
.x-f textarea { border: 1px solid var(--x-line-2); border-radius: 7px; padding: 8px 10px; font-size: 12.5px; min-height: 68px; resize: vertical; }
.x-fgroup { grid-column: 1 / -1; font-size: 12.5px; font-weight: 650; color: var(--x-ink); padding: 6px 0 2px; border-bottom: 1px solid var(--x-line); margin-top: 2px; }
.x-hint { font-size: 11.5px; color: var(--x-ink-3); }

.x-kanban { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 10px; }
.x-kcol { background: #f8fafd; border: 1px solid var(--x-line); border-radius: 10px; padding: 10px; min-height: 150px; }
.x-kcol h5 { margin: 0 0 8px; font-size: 12px; color: var(--x-ink-2); display: flex; justify-content: space-between; }
.x-kcard { background: #fff; border: 1px solid var(--x-line); border-radius: 8px; padding: 9px 10px; margin-bottom: 8px; font-size: 12px; cursor: pointer; }
.x-kcard:hover { border-color: #f3c9c0; }
.x-kcard b { display: block; font-size: 12.5px; margin-bottom: 3px; }
.x-kcard span { color: var(--x-ink-3); font-size: 11.5px; }

.x-empty { padding: 44px 16px; text-align: center; color: var(--x-ink-3); font-size: 12.5px; }
.x-empty .ei { font-size: 30px; display: block; margin-bottom: 8px; opacity: .55; }
.x-alert { padding: 10px 14px; border-radius: 9px; font-size: 12.5px; margin-bottom: 14px; line-height: 1.6; }
.x-alert.info { background: #fdeceb; color: #c52a16; border: 1px solid #d9e6ff; }
.x-alert.warn { background: #fff8ec; color: #96620a; border: 1px solid #fde7bd; }
.x-alert.ok { background: #eafaf1; color: #0f8a46; border: 1px solid #c9efd9; }
.x-bar { height: 6px; border-radius: 4px; background: #eef1f6; overflow: hidden; }
.x-bar > i { display: block; height: 100%; border-radius: 4px; background: var(--x-primary); }
.x-bar.warn > i { background: var(--x-warn); }
.x-pager { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 16px; font-size: 12px; color: var(--x-ink-3); }
.x-muted { color: var(--x-ink-3); }
.x-right { text-align: right; }
.x-strong { font-weight: 650; }
.x-nowrap { white-space: nowrap; }

/* 抽屉 */
.x-drawer-mask { position: fixed; inset: 0; background: rgba(15,23,42,.38); z-index: 3000; display: flex; justify-content: flex-end; touch-action: pan-y; overscroll-behavior-x: none; }
.x-drawer { width: min(660px, 94vw); height: 100%; background: #fff; box-shadow: -12px 0 36px rgba(15,23,42,.16); display: flex; flex-direction: column; animation: xSlide .2s ease; }
@keyframes xSlide { from { transform: translateX(28px); opacity: .6; } to { transform: translateX(0); opacity: 1; } }
.x-drawer .dh { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--x-line); }
.x-drawer .dh h4 { margin: 0; font-size: 15.5px; font-weight: 650; }
.x-drawer .dh .cl { cursor: pointer; font-size: 22px; line-height: 1; color: var(--x-ink-3); }
.x-drawer .db { flex: 1; overflow-y: auto; padding: 18px 20px; }
.x-drawer .df { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--x-line); flex-wrap: wrap; }

.x-sect { margin-bottom: 18px; }
.x-sect h5 { margin: 0 0 10px; font-size: 13px; font-weight: 650; display: flex; align-items: center; gap: 7px; }
.x-sect h5::before { content: ''; width: 3px; height: 13px; border-radius: 2px; background: var(--x-primary); }
.x-kv { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px 16px; font-size: 12.5px; }
.x-kv div { display: flex; gap: 8px; }
.x-kv span { color: var(--x-ink-3); min-width: 68px; }
.x-kv b { font-weight: 600; color: var(--x-ink); }

.x-toast { position: fixed; left: 50%; top: 22px; transform: translateX(-50%); z-index: 7000; background: #101828; color: #fff; padding: 10px 18px; border-radius: 9px; font-size: 12.5px; box-shadow: 0 8px 24px rgba(16,24,40,.24); }

@media (max-width: 1300px) {
  .x-kpis { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .x-grid2 { grid-template-columns: 1fr; }
  .x-quick { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .x-kanban { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 980px) {
  body.merchant .app .sidebar { width: 62px !important; min-width: 62px; }
  body.merchant .app .sb-name, body.merchant .app .sb-menu-label { display: none !important; }
  body.merchant .app .sb-item > a { justify-content: center !important; padding: 0 !important; }
  body.merchant .app .sb-item > a > span { display: none !important; }
  body.merchant .app .subnav { width: 140px !important; min-width: 140px; }
  body.merchant .app .tb-search { display: none; }
  .x-grid3, .x-form { grid-template-columns: 1fr; }
}
