/* 家装公司管理系统 v0.2.1 —— 冷静工具感，无装饰性渐变/发光 */
:root {
  --bg: #f3f4f6;
  --surface: #ffffff;
  --ink: #1c2330;
  --ink-soft: #5c6573;
  --line: #e2e6eb;
  --line-strong: #cfd5dd;
  --brand: #243044;
  --brand-2: #1b2433;
  --brand-ink: #e8eef4;
  --brand-muted: #9aa7b8;
  --accent: #2c5f9e;
  --accent-hover: #245089;
  --ok-bg: #e6f4ea;
  --ok-ink: #1d6b38;
  --warn-bg: #fff4dc;
  --warn-ink: #8a5a00;
  --bad-bg: #fdeaea;
  --bad-ink: #a31f1f;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(28, 35, 48, 0.06);
  --shadow-md: 0 6px 18px rgba(28, 35, 48, 0.10);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --text-xs: 12px;
  --text-sm: 13px;
  --text: 14px;
  --text-lg: 16px;
  --text-xl: 20px;
  --text-title: 22px;
  --sidebar-w: 232px;
  --topbar-h: 52px;
  --content-max: 1280px;
  --focus: 0 0 0 3px rgba(44, 95, 158, 0.28);
  --font: -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: var(--text);
  line-height: 1.55;
  min-height: 100vh;
}
/* 登录后锁住窗口：侧栏通到视口底，右侧自己滚，避免内容把侧栏「撑断」 */
body.has-app {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  background: var(--surface);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}
.skip-link:focus { left: 8px; }

/* —— 壳层 —— */
.app-shell { min-height: 100vh; }
.app-shell.authed {
  display: flex;
  align-items: stretch;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg);
}
.app-body {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
.app-shell.authed .app-body {
  height: 100%;
  overflow: auto;
  overscroll-behavior: contain;
}
#app-main {
  flex: 1;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 20px 28px 40px;
}
.app-shell.guest #app-main { padding-top: 40px; }

.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background: var(--brand);
  color: var(--brand-ink);
  display: flex;
  flex-direction: column;
  align-self: stretch;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
.sidebar-brand {
  flex: 0 0 auto;
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar .brand, .topbar .brand {
  color: #fff;
  font-weight: 650;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-decoration: none;
  display: block;
  line-height: 1.35;
}
.sidebar .brand:hover, .topbar .brand:hover { text-decoration: none; color: #fff; }

.mainnav {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0 16px;
}
.nav-group { padding: 6px 0 10px; }
.nav-group-title {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: none;
  color: var(--brand-muted);
  padding: 8px 16px 4px;
  font-weight: 600;
}
.mainnav a {
  display: block;
  color: #d5dee8;
  text-decoration: none;
  padding: 8px 16px;
  margin: 1px 8px;
  border-radius: var(--radius-sm);
  line-height: 1.35;
  min-height: 36px;
}
.mainnav a:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.mainnav a[aria-current="page"] {
  background: rgba(255,255,255,.14);
  color: #fff;
  font-weight: 600;
}

.sidebar-foot {
  flex: 0 0 auto;
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.sidebar-foot .who {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #fff;
  font-size: 13px;
  margin-bottom: 8px;
}
.sidebar-foot .who .muted { color: var(--brand-muted); font-size: 12px; }
.nav-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #d5dee8;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  text-decoration: none;
  font-size: 13px;
  min-height: 36px;
}
.nav-logout:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--topbar-h);
  min-height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
}
.app-shell.guest .topbar {
  background: var(--brand);
  border-bottom-color: transparent;
  justify-content: space-between;
}
.topbar-title { font-weight: 650; font-size: 15px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.guest-links { display: flex; gap: 16px; }
.guest-links a { color: #d5dee8; text-decoration: none; }
.guest-links a:hover { color: #fff; }

.navtoggle {
  display: none;
  font: inherit;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  min-height: 40px;
  cursor: pointer;
}
.nav-mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 26, 36, 0.45);
  z-index: 40;
}
.nav-mask[hidden] { display: none !important; }

.foot { text-align: center; padding: 8px 16px 20px; color: var(--ink-soft); }

/* —— 字体与组件 —— */
h1 { font-size: var(--text-title); font-weight: 650; margin: 0 0 16px; letter-spacing: -0.02em; line-height: 1.3; }
h2 { font-size: var(--text-lg); font-weight: 650; margin: 0 0 12px; padding-left: 10px; border-left: 3px solid var(--accent); line-height: 1.35; }
h3 { font-size: var(--text); font-weight: 650; margin: 12px 0 8px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.auth-card {
  max-width: 400px;
  margin: 24px auto;
  padding: 24px 24px 20px;
}
.auth-card .row { flex-direction: column; align-items: stretch; gap: 6px; }
.auth-card label { width: auto; font-weight: 600; color: var(--ink); }
.auth-card input, .auth-card button { width: 100%; }
.auth-card h1 { margin-bottom: 18px; }

.tag[hidden], #copy-share-ok[hidden] { display: none !important; }
.tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  background: #eef2f7;
  color: var(--ink);
  font-size: var(--text-xs);
  margin-right: 4px;
  line-height: 1.6;
}
.ok, .tag.ok { background: var(--ok-bg); color: var(--ok-ink); }
.warn, .tag.warn { background: var(--warn-bg); color: var(--warn-ink); }
.bad, .tag.bad { background: var(--bad-bg); color: var(--bad-ink); }
.warnbox {
  background: var(--warn-bg);
  border: 1px solid #ecd192;
  color: var(--warn-ink);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin: 8px 0;
}
.off { color: var(--bad-ink); font-weight: 600; }
.muted { color: var(--ink-soft); font-size: var(--text-xs); }

.tablewrap { overflow-x: auto; max-width: 100%; }
table { width: 100%; border-collapse: collapse; margin: 6px 0; }
th, td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
th {
  background: #f7f8fa;
  font-weight: 650;
  font-size: var(--text-sm);
  color: var(--ink);
}
@media (min-width: 1100px) {
  .tablewrap { overflow: visible; }
  table tr:first-child th {
    position: sticky;
    top: var(--topbar-h);
    z-index: 2;
    box-shadow: 0 1px 0 var(--line);
  }
}

form.inline { display: inline; }
input, select, textarea {
  font: inherit;
  padding: 7px 9px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  max-width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: var(--focus); outline: none; }
textarea { width: 100%; min-height: 80px; }

button, .btn-primary, a.btn {
  font: inherit;
  padding: 7px 14px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  cursor: pointer;
  min-height: 36px;
}
button:hover, .btn-primary:hover, a.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
button.sec, a.btn.sec { background: #fff; color: var(--accent); }
button.sec:hover, a.btn.sec:hover { background: #f3f6fa; }
button:disabled { opacity: 0.55; cursor: not-allowed; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0; }
#msg { position: fixed; right: 16px; bottom: 16px; max-width: 420px; z-index: 80; }
#msg div {
  background: #243044;
  color: #fff;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin-top: 6px;
  box-shadow: var(--shadow-md);
}
img.thumb { height: 60px; border: 1px solid var(--line); margin: 2px; border-radius: 3px; }

.modal {
  position: fixed;
  inset: 0;
  background: rgba(20, 26, 36, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
  padding: 16px;
}
.modal[hidden] { display: none; }
.modal-box {
  background: var(--surface);
  max-width: 560px;
  width: 100%;
  padding: 20px 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  box-shadow: var(--shadow);
}
.kpi b { display: block; font-size: var(--text-xl); margin-top: 4px; letter-spacing: -0.02em; }

.bar { background: #e8edf3; border-radius: 4px; height: 8px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); }

.hero {
  background: var(--brand);
  color: #fff;
  padding: 28px 24px;
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.hero h1 { color: #fff; font-size: 24px; margin: 0 0 8px; }
.hero .muted, .hero div { color: #c5d0dc; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.svgbox { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: auto; max-width: 100%; }
.svgbox img { max-width: 100%; height: auto; }
.badge-sample { background: var(--warn-bg); color: var(--warn-ink); padding: 1px 8px; border-radius: 999px; font-size: 12px; }

/* —— 工地看板（深色、整齐） —— */
body.board { background: #101826; color: #e8eef4; }
body.board .topbar { background: #0c121c; border-bottom-color: #1c2a3d; color: #e8eef4; }
body.board .sidebar { background: #0c121c; }
body.board .card { background: #162033; border-color: #24344d; color: #e8eef4; box-shadow: none; }
body.board .kpi { background: #162033; border-color: #24344d; }
body.board th { background: #1a2942; color: #c9d6e8; }
body.board td, body.board th { border-color: #24344d; }
body.board h1 { font-size: 24px; }
body.board .kpi b { font-size: 28px; color: #d7e6f7; }
body.board .warnbox { background: #3a2c10; border-color: #7a5a1c; color: #ffd98a; }
body.board .muted { color: #93a1b5; }
body.board #app-main { max-width: none; }
body.board .foot { color: #93a1b5; }
body.board .bar { background: #24344d; }
body.board .bar i { background: #5b8fc7; }

/* —— 电脑 ≥1100：侧栏固定，菜单不换行 —— */
@media (min-width: 1100px) {
  .navtoggle, .nav-mask { display: none !important; }
  /* 让分组菜单在 900 高的窗口尽量一屏看完，需要时侧栏仍可滚动 */
  .mainnav a { padding: 6px 12px; min-height: 32px; margin: 0 8px; }
  .nav-group { padding: 4px 0 6px; }
  .nav-group-title { padding: 6px 16px 2px; }
}

/* —— 手机 / 窄屏：抽屉菜单 —— */
@media (max-width: 1099px) {
  body { font-size: 15px; }
  .app-shell.authed { display: block; height: 100vh; height: 100dvh; }
  .app-shell.authed .app-body { height: 100%; }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    height: 100vh;
    height: 100dvh;
    width: min(86vw, 320px);
    z-index: 50;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
  }
  body.nav-noanim .sidebar {
    transition: none;
    box-shadow: none;
  }
  body.navopen .sidebar { transform: translateX(0); box-shadow: var(--shadow-md); }
  .nav-mask { display: block; z-index: 45; }
  .navtoggle { display: inline-flex; align-items: center; }
  .mainnav a, .nav-logout { min-height: 44px; padding-top: 10px; padding-bottom: 10px; }
  #app-main { padding: 16px 14px 32px; }
  .grid, .cards { grid-template-columns: 1fr; }
  .tablewrap::before {
    content: "表格可左右滑动查看";
    display: block;
    font-size: 12px;
    color: var(--ink-soft);
    margin: 0 0 6px;
  }
  .tablewrap table { white-space: nowrap; }
  .row { flex-direction: column; align-items: stretch; }
  .row input, .row select, .row textarea, .row button { width: 100%; }
  input, select, textarea, button { font-size: 16px; padding: 10px 12px; min-height: 44px; }
  h1 { font-size: 18px; }
  .card { padding: 14px; }
  .auth-card { margin: 8px auto 24px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .sidebar-foot .who { display: flex; }
}

@media (max-width: 1099px) and (orientation: landscape) {
  .sidebar { width: min(70vw, 300px); }
  #app-main { padding: 12px 16px 24px; }
  .kpis { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 420px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .guest-links { gap: 10px; font-size: 14px; }
}

/* —— 项目总览（v0.2.2）—— */
.kpi-alert { border-color: #ecd192; background: #fffdf6; }
.kpi-wide b { font-size: 20px; }
.stage-bridge {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 4px 0 16px;
}
.stage-step {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  background: #f7f8fa;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 4px;
  overflow: visible;
}
.stage-step.is-on { background: #eef3f8; border-color: #c5d3e3; }
.stage-step-num { font-size: 18px; font-weight: 650; letter-spacing: -0.02em; }
.stage-step-label { font-size: 12px; color: var(--ink-soft); margin-top: 2px; line-height: 1.35; white-space: normal; overflow-wrap: break-word; min-height: 2.6em; }
.stage-join { display: none; }
.stage-row {
  display: grid;
  grid-template-columns: 7.5em minmax(0, 1fr) 2.2em;
  gap: 10px;
  align-items: center;
  margin: 6px 0;
}
.stage-name { font-size: 13px; color: var(--ink); }
.stage-count { text-align: right; font-variant-numeric: tabular-nums; font-weight: 650; }
.stage-bars .bar { height: 10px; background: #e8edf3; }
.stage-bars .bar i { background: var(--accent); }

.dash-board {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.dash-col {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 8px 8px;
  min-width: 0;
}
.dash-col-title { font-weight: 650; font-size: 13px; margin-bottom: 8px; }
.dash-card {
  display: block;
  background: #f7f8fa;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px;
  margin-bottom: 8px;
  color: inherit;
  text-decoration: none;
}
.dash-card:hover { border-color: var(--line-strong); text-decoration: none; }
.dash-card strong { display: block; font-size: 13px; margin-bottom: 4px; color: var(--ink); }
.dash-card.has-warn { border-color: #e0c57a; background: #fff9ec; }
.dash-empty { padding: 8px 2px; }

.dash-flags {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.flag-item {
  border-left: 3px solid #e0c57a;
  padding: 8px 0 8px 10px;
  margin: 8px 0;
}
.flag-item.is-bad { border-left-color: #c56b6b; }
.flag-list { margin: 6px 0 0; padding-left: 18px; color: var(--ink); }
.flag-list li { margin: 2px 0; }

@media (max-width: 1099px) {
  .stage-bridge { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .stage-step { min-width: 0; }
  .stage-row { grid-template-columns: 1fr auto; }
  .stage-row .bar { grid-column: 1 / -1; }
  .dash-board { grid-template-columns: 1fr; }
  .dash-flags { grid-template-columns: 1fr; }
}


/* v0.2.6 合同生成 / 导出 / 回传存档 */
a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
}
.contract-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 12px;
  margin: 10px 0;
}
.contract-actions label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--muted, #5b6573);
  min-width: 0;
}
.contract-actions label.chk {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}
.contract-actions input[type="file"],
.contract-actions select,
.contract-actions button,
.contract-actions a.btn {
  min-height: 44px;
}
.contract-extra {
  flex: 1 0 100%;
  border: 1px dashed var(--line-strong, #c9d3df);
  border-radius: var(--radius-sm, 6px);
  padding: 6px 10px;
  background: #fafbfc;
}
.contract-extra summary {
  cursor: pointer;
  color: var(--muted, #5b6573);
  min-height: 36px;
  display: flex;
  align-items: center;
}
.archive-list { margin-top: 8px; }
.archive-list ul { margin: 4px 0 0; padding-left: 18px; }
.contract-box p { margin: 6px 0; }
@media (max-width: 1099px) {
  .contract-actions label, .contract-actions button, .contract-actions a.btn,
  .contract-actions input, .contract-actions select {
    width: 100%;
  }
  .contract-actions label.chk { width: 100%; }
}


/* v0.2.7 案例图文卡片、转发预览 */
.share-grid { align-items: start; }
.share-preview {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 10px 12px;
  margin: 10px 0;
}
.share-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.share-thumb { width: 96px; }
.share-thumb img, .share-thumb .case-ph {
  width: 96px; height: 72px; object-fit: cover;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #f3f5f7;
}
.share-thumb span { display: block; font-size: 12px; color: var(--muted, #5b6573); margin-top: 4px; line-height: 1.3; }
.share-text {
  white-space: pre-wrap;
  word-break: break-word;
  font: inherit;
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
  color: var(--ink);
  background: transparent;
}
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin: 10px 0 16px;
}
.case-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.case-cover { position: relative; background: #eef1f4; aspect-ratio: 4 / 3; overflow: hidden; }
.case-cover img {
  width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in;
}
.case-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted, #5b6573); font-size: 13px; background: #eef1f4;
}
.case-badge { position: absolute; top: 8px; left: 8px; }
.case-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; }
.case-body h3 { margin: 0; font-size: 16px; font-weight: 650; }
.case-body p { margin: 0; font-size: 14px; line-height: 1.55; }
.case-thumbs { display: flex; flex-wrap: wrap; gap: 6px; }
.case-thumb {
  width: 56px; height: 42px; padding: 0; border: 1px solid var(--line);
  border-radius: var(--radius-sm); overflow: hidden; background: #fff; min-height: 42px;
}
.case-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-thumb.is-cover { border-color: var(--accent); }
.case-note { font-size: 12px; }
.case-upload, .case-create { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-top: 8px; }
.case-upload label, .case-create label { font-size: 13px; color: var(--muted, #5b6573); }
.case-photo-actions { font-size: 13px; }
.case-create { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 16px; }
.case-lightbox {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--surface);
  max-width: min(920px, 96vw);
}
.case-lightbox img { max-width: 100%; max-height: 80vh; display: block; }
.case-lightbox::backdrop { background: rgba(20, 28, 40, 0.45); }
@media (max-width: 1099px) {
  .share-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .case-upload label, .case-upload button, .case-create input, .case-create button, .case-create label {
    width: 100%;
  }
  .share-preview, #copy-share-text { width: 100%; }
  #copy-share-text { min-height: 44px; }
}


/* —— 报表页标题与导出 —— */
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
}
.page-head h1 { margin: 0 0 4px; }
.page-head .crumb { margin: 0 0 4px; font-size: var(--text-sm); }
.page-head .export-btn {
  flex: 0 0 auto;
  align-self: center;
  font-weight: 650;
  padding: 8px 18px;
  white-space: nowrap;
}
.report-entries .kpi { min-height: 88px; }
@media (max-width: 700px) {
  .page-head { flex-direction: column; align-items: stretch; }
  .page-head .export-btn { width: 100%; text-align: center; }
}
