/* ============================================================
   设计系统 v2 · 现代柔和仪表盘（Soft Dashboard）
   风格：靛蓝-紫渐变强调 + 大圆角 + 柔和阴影 + 放大排版
   内容区水平居中（max-width 1200）并整体放大字号与间距
   ============================================================ */
:root {
  --bg: #EDF1F8;
  --surface: #FFFFFF;
  --surface-2: #F6F8FC;
  --text: #0F172A;
  --text-2: #4B5563;
  --text-3: #94A3B8;
  --border: #E6EAF2;
  --border-strong: #D4DAE6;
  --primary: #4F46E5;
  --primary-2: #8B5CF6;
  --primary-hover: #4338CA;
  --primary-soft: #EEF0FF;
  --primary-grad: linear-gradient(135deg, #4F46E5 0%, #8B5CF6 100%);
  --success: #12B76A;
  --success-soft: #E7FBF1;
  --danger: #F04438;
  --danger-soft: #FEECEB;
  --warning: #F79009;
  --warning-soft: #FFF4E5;
  --info: #2E90FA;
  --info-soft: #E8F2FF;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow-sm: 0 1px 2px rgba(16,24,40,.04), 0 6px 16px rgba(16,24,40,.06);
  --shadow-md: 0 14px 38px rgba(16,24,40,.12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --mono: "SF Mono", "Cascadia Code", Consolas, "Liberation Mono", monospace;
  --content-max: 1200px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  background-image: radial-gradient(1100px 520px at 12% -8%, #E4EAFB 0%, rgba(228,234,251,0) 60%);
  background-attachment: fixed;
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

/* —— 顶部导航（旧版兼容） —— */
.navbar { height: 60px; background: var(--surface); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 28px; position: sticky; top: 0; z-index: 20; }
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; }
.nav-brand .dot { width: 12px; height: 12px; border-radius: 4px; background: var(--primary-grad); display: inline-block; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link { padding: 8px 16px; border-radius: var(--radius-sm); text-decoration: none; color: var(--text-2); font-size: 15px; font-weight: 500; transition: all .15s; }
.nav-link:hover { background: var(--surface-2); color: var(--text); }
.nav-link.active { background: var(--primary-soft); color: var(--primary); }
.nav-right { display: flex; align-items: center; gap: 12px; }

/* —— 环境药丸 —— */
.env-pill { font-size: 13px; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); padding: 5px 13px; border-radius: 999px; }

/* —— 布局容器（旧版兼容） —— */
.container { max-width: var(--content-max); margin: 0 auto; padding: 32px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; flex-wrap: wrap; gap: 12px; }
.page-title { font-size: 22px; font-weight: 700; margin: 0; }
.page-sub { color: var(--text-2); font-size: 14px; margin-top: 5px; }

/* ============================================================
   侧边栏 + 顶栏
   ============================================================ */
.layout { display: flex; min-height: 100vh; }
.sidebar { width: 252px; flex: none; background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.sidebar-brand { height: 64px; display: flex; align-items: center; gap: 11px; padding: 0 22px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 16px; letter-spacing: .2px; }
.sidebar-brand .dot { width: 26px; height: 26px; border-radius: 8px; background: var(--primary-grad); display: inline-block; box-shadow: 0 4px 10px rgba(79,70,229,.35); flex: none; }
.sidebar-nav { padding: 16px 14px; flex: 1; overflow-y: auto; }
.sidebar-link { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm); color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 550; margin-bottom: 5px; transition: all .16s; }
.sidebar-link:hover { background: var(--surface-2); color: var(--text); }
.sidebar-link.active { background: var(--primary-soft); color: var(--primary); font-weight: 650; box-shadow: inset 0 0 0 1px rgba(79,70,229,.12); }
.sidebar-link .ico { width: 20px; text-align: center; font-size: 17px; }
.sidebar-link .badge-count { margin-left: auto; background: var(--danger); color: #fff; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 8px; min-width: 22px; text-align: center; }
.sidebar-foot { padding: 15px 20px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-3); display: flex; align-items: center; gap: 8px; }
.sidebar-foot .live { width: 8px; height: 8px; border-radius: 50%; background: var(--success); display: inline-block; box-shadow: 0 0 0 3px var(--success-soft); }

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar { height: 64px; flex: none; background: rgba(255,255,255,.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 30px; position: sticky; top: 0; z-index: 20; }
.topbar-left { display: flex; align-items: center; gap: 14px; }
.topbar-left .page-title { font-size: 18px; font-weight: 700; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.hamburger { display: none; border: none; background: transparent; font-size: 22px; cursor: pointer; color: var(--text-2); }

/* —— 内容区：水平居中 + 放大 —— */
.content { padding: 36px 32px 64px; max-width: var(--content-max); width: 100%; margin: 0 auto; }
/* 订单页列多（11 列），宽屏时给更宽的画布，一屏看全不用横滚；窄屏仍受窗口宽度约束 */
body[data-page="orders"] { --content-max: 1600px; }

/* ============================================================
   卡片 / KPI / 区块标题
   ============================================================ */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 26px 28px; }
.card + .card { margin-top: 18px; }
.card-title { font-size: 16.5px; font-weight: 700; margin: 0 0 18px; display: flex; align-items: center; gap: 9px; }
.card-title .sub { font-weight: 400; color: var(--text-3); font-size: 13px; }
/* 卡片标题行（标题 + 右侧按钮），折叠卡片用 */
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 18px; }
.card-head .card-title { margin: 0; }
.subtle-bar { color: var(--text-3); font-size: 13.5px; margin: -10px 0 16px; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--primary-grad); opacity: .9; }
.kpi .label { font-size: 14px; color: var(--text-2); }
.kpi .num { font-size: 36px; font-weight: 750; margin-top: 8px; font-variant-numeric: tabular-nums; letter-spacing: -.5px; }
.kpi .num.muted { color: var(--text-3); }
.kpi .trend { font-size: 12.5px; color: var(--text-3); margin-top: 3px; }

.section { margin-top: 28px; }
.section-title { font-size: 17px; font-weight: 700; margin: 0 0 14px; display: flex; align-items: center; gap: 9px; }
.section-title::before { content: ""; width: 4px; height: 17px; background: var(--primary-grad); border-radius: 2px; display: inline-block; }

/* ============================================================
   表格
   ============================================================ */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); }
/* 横向滚动条（订单列表列多，窄屏会横滚）：做得细一点，不抢视觉 */
.table-wrap::-webkit-scrollbar { height: 10px; }
.table-wrap::-webkit-scrollbar-track { background: var(--surface-2); border-radius: 999px; }
.table-wrap::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }
.table-wrap::-webkit-scrollbar-thumb:hover { background: var(--text-3); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead th { text-align: left; padding: 14px 16px; background: var(--surface-2); color: var(--text-2); font-weight: 650; border-bottom: 1px solid var(--border); white-space: nowrap; }
tbody td { padding: 14px 16px; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--surface-2); }
.mono { font-family: var(--mono); font-size: 13px; color: var(--text-2); }
.empty { padding: 34px; text-align: center; color: var(--text-3); font-size: 14.5px; }

/* 订单列表：列多（12 列），要让每列都显示完整而不是被挤压。
   做法：给表格一个最小宽度，内容不换行，容器横向滚动；
   「操作」列吸附在右侧常驻可见，滚动时不用来回找按钮。 */
.orders-table { min-width: 1120px; }
.orders-table thead th,
.orders-table tbody td { padding: 13px 10px; }
.orders-table tbody td { white-space: nowrap; }
/* 来源店铺：店名一行、店铺编号一行（硬换行），比单行窄 40px，把宽度让给状态列 */
.orders-table thead th:nth-child(3),
.orders-table tbody td.shop-cell { white-space: nowrap; }
.orders-table tbody td.shop-cell .mono { opacity: .65; }
/* 状态列：徽章 +（失败时）下方错误码 */
.orders-table tbody td.status-cell { white-space: nowrap; }
.orders-table tbody td.status-cell .err-code { font-size: 12px; color: var(--danger); opacity: .85; }
.orders-table tbody td .badge { white-space: nowrap; }
/* 操作列：两个按钮横排不换行 */
.orders-table th:last-child,
.orders-table td:last-child { white-space: nowrap; min-width: 118px; }
.orders-table td:last-child .btn + .btn { margin-left: 6px; }
/* 吸附右侧（不透明背景 + 左侧投影，滚动时区分层次） */
.orders-table thead th:last-child,
.orders-table tbody td:last-child {
  position: sticky;
  right: 0;
  z-index: 1;
  background: var(--surface);
  box-shadow: -8px 0 10px -8px rgba(15, 23, 42, .16);
}
.orders-table thead th:last-child { background: var(--surface-2); z-index: 2; }
.orders-table tbody tr:hover td:last-child { background: var(--surface-2); }
/* 复选框列吸附在左侧，滚动时勾选不用来回找 */
.orders-table thead th:first-child,
.orders-table tbody td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--surface);
  box-shadow: 8px 0 10px -8px rgba(15, 23, 42, .16);
}
.orders-table thead th:first-child { background: var(--surface-2); z-index: 2; }
.orders-table tbody tr:hover td:first-child { background: var(--surface-2); }

/* ============================================================
   状态徽章 / 进度
   ============================================================ */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 650; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.success { background: var(--success-soft); color: var(--success); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.warning { background: var(--warning-soft); color: var(--warning); }
.badge.info { background: var(--info-soft); color: var(--info); }
.badge.muted { background: #F1F5F9; color: var(--text-3); }

.progress { height: 9px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--primary-grad); border-radius: 999px; transition: width .4s ease; }
.progress.success > i { background: var(--success); }
.progress.warning > i { background: var(--warning); }
.progress.danger > i { background: var(--danger); }
.progress-label { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-2); margin: 10px 0 6px; }

/* ============================================================
   按钮
   ============================================================ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid transparent; border-radius: var(--radius-sm); padding: 11px 20px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all .15s; font-family: inherit; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary-grad); color: #fff; box-shadow: 0 4px 12px rgba(79,70,229,.28); }
.btn-primary:hover { filter: brightness(1.06); box-shadow: 0 6px 16px rgba(79,70,229,.36); }
.btn-ghost { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--text-3); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #D92D20; }
.btn-sm { padding: 8px 14px; font-size: 13.5px; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

/* ============================================================
   表单
   ============================================================ */
.form-row { display: flex; align-items: center; gap: 14px; margin: 16px 0; }
.form-row > label { width: 160px; flex: none; font-size: 14.5px; color: var(--text-2); }
.form-row .control { flex: 1; display: flex; gap: 10px; align-items: center; }
.form-row label.checkbox { width: auto; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
/* 文本/数字类输入框统一样式；末尾 input:not([type]) 兜底覆盖未显式写 type 的默认文本框，
   避免它们落到浏览器原生外观、与其它输入框不一致（复选框/单选框等因带 type 不会被匹配）。 */
input[type=text], input[type=password], input[type=number], input[type=datetime-local],
input[type=date], input[type=time], input[type=month], input[type=week], input:not([type]) {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font-size: 15px; font-family: inherit; color: var(--text); background: var(--surface); transition: border-color .15s, box-shadow .15s;
}
input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
/* 下拉框：与输入框同款外观（原生 select 默认样式太窄且高度不一致） */
select {
  padding: 11px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font-size: 15px; font-family: inherit; color: var(--text); background: var(--surface);
  transition: border-color .15s, box-shadow .15s; cursor: pointer;
}
select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.hint { color: var(--text-3); font-size: 13px; line-height: 1.6; margin: 8px 0 0; }
.hint.ok { color: var(--success); }
.hint.warn { color: var(--warning); }
.actions { display: flex; align-items: center; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.msg { font-size: 14px; }
.msg.ok { color: var(--success); }
.msg.err { color: var(--danger); }

/* —— 环境切换 tabs —— */
.tabs { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 4px; gap: 3px; }
.tab { padding: 8px 16px; border: none; background: transparent; border-radius: 999px; cursor: pointer; font-size: 14px; color: var(--text-2); font-family: inherit; font-weight: 550; transition: all .15s; }
.tab.active { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }

/* —— 提示条 —— */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; margin: 14px 0; }
.alert.info { background: var(--info-soft); color: #1E40AF; }
.alert.warn { background: var(--warning-soft); color: #92400E; }
.alert pre { white-space: pre-wrap; margin: 6px 0 0; font-family: var(--mono); font-size: 12.5px; }

/* ============================================================
   工具条 / 搜索 / 分段 / 分页
   ============================================================ */
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar .spacer { flex: 1; }
.search-input { max-width: 320px; }
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px; gap: 3px; flex-wrap: wrap; }
.seg button { border: none; background: transparent; border-radius: 8px; padding: 8px 14px; cursor: pointer; font-size: 14px; color: var(--text-2); font-family: inherit; font-weight: 550; transition: all .15s; }
.seg button.active { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }
.pager { display: flex; align-items: center; gap: 10px; justify-content: flex-end; margin-top: 18px; font-size: 14px; color: var(--text-2); }
.pager button { min-width: 36px; }

/* ============================================================
   告警列表
   ============================================================ */
.alert-list { display: flex; flex-direction: column; gap: 12px; }
.alert-item { display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); text-decoration: none; color: inherit; transition: border-color .15s, background .15s; }
.alert-item:hover { border-color: var(--border-strong); background: #fff; }
.alert-item .ico { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; flex: none; }
.alert-item .ico.warn { background: var(--warning); }
.alert-item .ico.danger { background: var(--danger); }
.alert-item .ico.info { background: var(--info); }
.alert-item .body { flex: 1; font-size: 14px; }
.alert-item .body .meta { color: var(--text-3); font-size: 12.5px; margin-top: 4px; }

/* —— 两栏 —— */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; } }

/* —— KPI 趋势角标 —— */
.kpi .delta { font-size: 12px; font-weight: 600; }
.delta.up { color: var(--success); }
.delta.down { color: var(--danger); }

/* ============================================================
   模态框 / 键值 / Toast
   ============================================================ */
.modal-mask { position: fixed; inset: 0; background: rgba(15,23,42,.5); backdrop-filter: blur(2px); display: none; align-items: flex-start; justify-content: center; padding: 64px 16px; z-index: 50; overflow-y: auto; }
.modal-mask.show { display: flex; }
.modal { width: 100%; max-width: 720px; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-md); overflow: hidden; }
.modal-head { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-head h3 { margin: 0; font-size: 18px; }
.modal-body { padding: 22px 24px; max-height: 62vh; overflow-y: auto; }
.modal-foot { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 12px; }
.modal-close { border: none; background: transparent; font-size: 26px; cursor: pointer; color: var(--text-3); line-height: 1; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 11px 18px; font-size: 14.5px; }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; word-break: break-all; }
.kv dd .mono { font-size: 12.5px; }

.toast-wrap { position: fixed; right: 24px; bottom: 24px; display: flex; flex-direction: column; gap: 12px; z-index: 60; }
.toast { background: var(--text); color: #fff; padding: 14px 20px; border-radius: 12px; font-size: 14.5px; box-shadow: var(--shadow-md); max-width: 400px; animation: toastIn .2s ease; }
.toast.ok { background: var(--success); }
.toast.err { background: var(--danger); }
.toast.warn { background: var(--warning); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* —— 店铺行（探测店铺结果） —— */
.shop-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-top: 8px; background: var(--surface-2); }

/* ============================================================
   登录页
   ============================================================ */
.login-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #EEF2FF 0%, #EDF1F8 55%, #FFFFFF 100%); padding: 20px; }
.login-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-md); padding: 40px 34px; text-align: center; }
.login-logo { width: 52px; height: 52px; border-radius: 14px; background: var(--primary-grad); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 24px; margin-bottom: 16px; box-shadow: 0 6px 16px rgba(79,70,229,.35); }
.login-card h1 { font-size: 20px; margin: 0 0 6px; }
.login-card p { color: var(--text-2); font-size: 14px; margin: 0 0 26px; }
.login-card input { text-align: center; letter-spacing: 3px; padding: 13px 14px; font-size: 16px; }
.login-card .btn { width: 100%; margin-top: 18px; padding: 13px 20px; font-size: 16px; }
.login-error { color: var(--danger); font-size: 13.5px; margin-top: 14px; min-height: 18px; }
/* 备案号（ICP 备案号 / 公安备案号）——固定在登录页底部 */
.login-foot { position: fixed; left: 0; right: 0; bottom: 14px; display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-3); }
.login-foot a { color: var(--text-3); text-decoration: none; }
.login-foot a:hover { color: var(--primary); text-decoration: underline; }

/* 站内页脚：备案号（内页首页亦需展示） */
.app-foot { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; padding: 22px 12px 8px; font-size: 12.5px; color: var(--text-3); }
.app-foot a { color: var(--text-3); text-decoration: none; }
.app-foot a:hover { color: var(--primary); text-decoration: underline; }

/* ============================================================
   历史补数进度
   ============================================================ */
.backfill-progress { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.bf-row { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; font-size: 13.5px; color: var(--text-1); margin: 4px 0; }
.bf-row b { color: var(--text-0); font-weight: 600; }
.bf-stats { font-size: 13px; color: var(--text-2); }
.bf-bar { height: 10px; background: var(--surface-3, #e9edf5); border-radius: 999px; overflow: hidden; margin: 8px 0; }
.bf-bar-in { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent, #7c5cff)); border-radius: 999px; transition: width .4s ease; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 880px) {
  .sidebar { position: fixed; left: 0; top: 0; z-index: 40; transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--shadow-md); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(15,23,42,.35); z-index: 35; }
  .hamburger { display: block; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .content { padding: 20px 16px 48px; }
  .form-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .form-row > label { width: auto; }
  .kpi-grid { grid-template-columns: 1fr; }
}
