* { box-sizing: border-box; }
/* 锁死横向：任何元素撑破也不允许整页左右滑 */
html, body { margin: 0; padding: 0; overflow-x: hidden; max-width: 100%; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: #F7F7F5;
  color: #1C1C1A;
  font-size: 14px;
  line-height: 1.55;
}
a { color: #185FA5; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-weight: 500; margin: 0 0 12px; }
h1 { font-size: 19px; }
h2 { font-size: 16px; }
h3 { font-size: 14px; }

.topbar {
  background: #FFFFFF;
  border-bottom: 1px solid #E4E4DE;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 22px;
  height: 52px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand { font-size: 14px; font-weight: 500; color: #1C1C1A; }
.brand span { color: #8A8A84; font-weight: 400; margin-left: 6px; }
.nav { display: flex; gap: 18px; flex: 1; }
.nav a { color: #4A4A46; font-size: 13.5px; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover { text-decoration: none; color: #1C1C1A; }
.nav a.on { color: #185FA5; border-bottom-color: #185FA5; }
.user { color: #6B6B66; font-size: 12.5px; display: flex; align-items: center; gap: 10px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 22px 20px 60px; }
.card {
  background: #FFFFFF;
  border: 1px solid #E4E4DE;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 16px;
}
.card h2 { display: flex; justify-content: space-between; align-items: center; }
.muted { color: #6B6B66; }
.small { font-size: 12.5px; }
.mono { font-family: "SF Mono", Consolas, monospace; font-size: 12.5px; }

.grid { display: grid; gap: 14px; }
/* minmax(0,1fr)：网格子项默认 min-width:auto，会被长内容（如宽表格）顶开撑破页面 */
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) {
  .g4, .g3, .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.stat { background: #FFFFFF; border: 1px solid #E4E4DE; border-radius: 10px; padding: 14px 16px; }
.stat .k { font-size: 12.5px; color: #6B6B66; }
.stat .v { font-size: 22px; font-weight: 500; margin-top: 4px; letter-spacing: -0.3px; }
.stat .v small { font-size: 12.5px; font-weight: 400; color: #8A8A84; margin-left: 4px; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th {
  text-align: left; font-weight: 500; color: #6B6B66; font-size: 12.5px;
  padding: 8px 10px; border-bottom: 1px solid #E4E4DE; white-space: nowrap;
}
td { padding: 9px 10px; border-bottom: 1px solid #F0F0EB; vertical-align: top; }
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #FBFBF9; }
.tbl-wrap { overflow-x: auto; }

.badge {
  display: inline-block; padding: 1px 8px; border-radius: 20px;
  font-size: 12px; line-height: 18px; white-space: nowrap;
}
.b-gray { background: #F1EFE8; color: #5F5E5A; }
.b-amber { background: #FAEEDA; color: #854F0B; }
.b-blue { background: #E6F1FB; color: #185FA5; }
.b-green { background: #EAF3DE; color: #3B6D11; }
.b-red { background: #FCEBEB; color: #A32D2D; }

.btn {
  display: inline-block; padding: 7px 14px; border-radius: 8px; border: 1px solid #D8D8D2;
  background: #FFFFFF; color: #1C1C1A; font-size: 13px; cursor: pointer;
  font-family: inherit; line-height: 1.4;
}
.btn:hover { background: #F4F4F0; text-decoration: none; }
.btn.primary { background: #185FA5; border-color: #185FA5; color: #fff; }
.btn.primary:hover { background: #134B84; }
.btn.danger { color: #A32D2D; border-color: #F0C9C9; }
.btn.sm { padding: 4px 10px; font-size: 12.5px; }

label { display: block; font-size: 12.5px; color: #6B6B66; margin-bottom: 4px; }
input[type=text], input[type=password], input[type=number], input[type=date],
select, textarea {
  width: 100%; padding: 8px 10px; border: 1px solid #D8D8D2; border-radius: 8px;
  font-size: 13.5px; font-family: inherit; background: #fff; color: #1C1C1A;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: #185FA5; }
.field { margin-bottom: 12px; }
/* 代收款：带 ¥ 前缀的金额输入 */
.money-box { display: flex; align-items: stretch; max-width: 220px; }
.money-box .money-pre {
  display: flex; align-items: center; padding: 0 10px;
  background: #F2F2EE; border: 1px solid #D8D8D2; border-right: 0;
  border-radius: 8px 0 0 8px; color: #6B6B66; font-size: 13px;
}
.money-box input {
  flex: 1; min-width: 0; margin: 0;
  border-radius: 0 8px 8px 0;
  font-variant-numeric: tabular-nums;
}
.row { display: flex; gap: 12px; }
.row > * { flex: 1; }
#timeRow[hidden] { display: none; }   /* 不上门时不显示时间/加急（.row 的 flex 会盖掉 hidden） */
form.inline { display: inline; }

.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; font-size: 13px; }
.flash.ok { background: #EAF3DE; color: #3B6D11; }
.flash.error { background: #FCEBEB; color: #A32D2D; }

.flow { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 0; }
.flow span { font-size: 12px; color: #8A8A84; }
.flow span.on { color: #185FA5; font-weight: 500; }

.item-row { display: grid; grid-template-columns: 2fr 80px 110px 40px; gap: 10px; margin-bottom: 8px; }
.detail-list { display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; font-size: 13px; }
.detail-list dt { color: #6B6B66; font-size: 12.5px; }
.detail-list dd { margin: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } .item-row { grid-template-columns: 1fr 70px 90px 36px; } }

.login-box { max-width: 340px; margin: 12vh auto; }
.login-box .card { padding: 26px; }
.empty { text-align: center; color: #8A8A84; padding: 30px 0; font-size: 13px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.hint { font-size: 12px; color: #8A8A84; margin-top: 4px; }

/* 手机端「添加到主屏幕」提示条 */
.a2hs {
  position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 50;
  display: flex; align-items: center; gap: 8px;
  background: #1C1C1A; color: #F7F7F5;
  padding: 10px 12px; border-radius: 10px;
  font-size: 12.5px; line-height: 1.4;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.a2hs[hidden] { display: none; }
.a2hs span { flex: 1; }
.a2hs button {
  font: inherit; font-size: 12px; cursor: pointer;
  background: #185FA5; color: #fff; border: 0; border-radius: 6px;
  padding: 5px 10px; white-space: nowrap;
}
.a2hs #a2hs-no {
  background: #3A3A36; color: #CFCFC8;
}
.a2hs #a2hs-x {
  background: transparent; color: #B9B9B3; font-size: 17px;
  padding: 0 4px; line-height: 1;
}

/* ===== 一键识别框 ===== */
.paste-box {
  border: 1px dashed #C9D9E8; background: #F6FAFD;
  border-radius: 10px; padding: 12px 14px; margin-bottom: 16px;
}
.paste-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.paste-head strong { font-size: 13px; color: #185FA5; font-weight: 500; }
.paste-box textarea {
  width: 100%; font: inherit; font-size: 13px; line-height: 1.6;
  padding: 9px 11px; border: 1px solid #DDE5EC; border-radius: 8px;
  background: #FFF; resize: vertical; color: #1C1C1A;
}
.paste-box textarea:focus { outline: none; border-color: #185FA5; }
.paste-actions { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.paste-actions #parseMsg { flex: 1; min-width: 160px; }

/* ===== 可搜索下拉框 ===== */
.combo { position: relative; }
.combo > input[type=text] { width: 100%; padding-right: 34px; }
.combo-arrow {
  position: absolute; right: 1px; top: 1px; bottom: 1px; width: 32px;
  border: 0; background: transparent; color: #6B6B66; cursor: pointer;
  font-size: 12px; border-radius: 0 7px 7px 0;
}
.combo-arrow:hover { background: #F1EFE8; color: #1C1C1A; }
.combo-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 40;
  max-height: 330px; overflow-y: auto;
  background: #FFF; border: 1px solid #DFDFD8; border-radius: 9px;
  box-shadow: 0 8px 24px rgba(28,28,26,.12);
}
.combo-list[hidden] { display: none; }
.combo-group {
  position: sticky; top: 0; z-index: 1;
  padding: 6px 11px; font-size: 11.5px; color: #8A8A84;
  background: #F7F7F5; border-bottom: 1px solid #EDEDE7;
}
.combo-item {
  display: block; padding: 8px 12px; cursor: pointer;
  border-bottom: 1px solid #F4F4F0; font-size: 13px;
}
.combo-item:last-child { border-bottom: 0; }
.combo-item:hover, .combo-item.act { background: #E6F1FB; }
.combo-item.off { color: #A9A9A3; cursor: not-allowed; background: #FBFBF9; }
.combo-item.off:hover { background: #FBFBF9; }
.combo-item.off .combo-name { color: #A9A9A3; }
.combo-item.blank { color: #185FA5; }
.combo-main { display: flex; align-items: center; gap: 6px; min-width: 0; }
.combo-name { font-weight: 500; flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 6px; }
.combo-tag {
  font-size: 10.5px; padding: 1px 6px; border-radius: 4px;
  background: #185FA5; color: #FFF; font-weight: 400; flex: 0 0 auto;
}
.combo-meta { font-size: 11.5px; color: #8A8A84; }
.combo-cnt { font-size: 11.5px; color: #3B6D11; flex: 0 0 auto; }
.combo-sub {
  display: flex; align-items: center; gap: 8px;
  margin-top: 3px; font-size: 11.5px; color: #8A8A84;
}
.combo-owner { font-size: 11.5px; color: #A9A9A3; margin-left: auto; flex: 0 0 auto; }
.combo-item.off .combo-owner { color: #B5762B; }
.combo-more, .combo-empty {
  padding: 9px 11px; font-size: 12px; color: #8A8A84; background: #FBFBF9;
}
.warn-text { color: #A32D2D; }

/* 账号页：渠道负责人快捷选择 */
.owner-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font: inherit; font-size: 12px; cursor: pointer;
  background: #FFF; color: #1C1C1A; border: 1px solid #DFDFD8;
  border-radius: 14px; padding: 3px 10px;
}
.chip:hover { border-color: #185FA5; color: #185FA5; }
.chip-done { background: #EAF3DE; border-color: #C9DFA8; color: #3B6D11; }
.chip-tick { margin-left: 2px; }

/* 产品行的机型搜索框 */
.model-combo { min-width: 0; }
.model-combo .combo-cnt { margin-left: auto; color: #3B6D11; }
.item-row .combo-list { max-height: 260px; }

/* 分渠道价矩阵 */
.price-matrix table { border-collapse: separate; border-spacing: 0; font-size: 12.5px; }
.price-matrix th, .price-matrix td { padding: 4px 6px; white-space: nowrap; }
.price-matrix th { position: sticky; top: 0; background: #F7F7F5; z-index: 2; }
.price-matrix .stick { position: sticky; left: 0; background: #FFF; z-index: 3; font-weight: 500; }
.price-matrix th.stick { z-index: 4; }
.price-matrix input.px {
  width: 74px; text-align: right; padding: 4px 6px; font-size: 12.5px;
  border: 1px solid #E4E4DE; border-radius: 5px;
}
.price-matrix input.px:focus { outline: none; border-color: #185FA5; }
.price-matrix input.px:not(:placeholder-shown) { background: #F2F8FF; border-color: #C9D9E8; }
.combo-tag.cat { background: #F1EFE8; color: #6B6B66; font-weight: 400; }

/* 加急勾选框：和日期框同高，点整行都能勾 */
.chk-box { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px;
  border: 1px solid #D8D8D2; border-radius: 8px; background: #fff; cursor: pointer;
  margin-bottom: 0; font-size: 13.5px; color: #1C1C1A; }
.chk-box input[type=checkbox] { width: 18px; height: 18px; margin: 0; accent-color: #185FA5; }
.chk-box:has(input:checked) { border-color: #E8A33D; background: #FFF8EC; }
.urgent-flag { color: #A32D2D; font-weight: 600; }

/* 必填标记 */
.req { display: inline-block; padding: 1px 6px; margin-left: 6px; border-radius: 4px;
  background: #FBEAEA; color: #A32D2D; font-size: 11px; font-weight: 600; vertical-align: 1px; }
/* 一排勾选框：加急 / 是否需退回 / 退什么 */
.chk-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chk-row .chk-box { flex: 0 0 auto; min-width: 84px; }
.chk-box input[type=radio] { width: 17px; height: 17px; margin: 0; accent-color: #185FA5; }
/* 列表里的退回标记：审单时一眼看到要退什么 */
.ret-line { color: #A32D2D; font-size: 12px; margin-top: 2px; }
.ret-flag { color: #A32D2D; font-weight: 600; margin-right: 6px; }
/* 代收款标记：师傅上门要收的钱，列表/详情/任务都要显眼 */
.cash-flag { display: inline-block; padding: 1px 7px; border-radius: 4px;
  background: #FFF4E5; color: #8A5A00; font-size: 12px; font-weight: 600; }
.cash-line { color: #8A5A00; font-size: 12px; margin-top: 2px; }
/* 交接表的代收款列：师傅要当面收的现金，加粗、右对齐、不能换行 */
.cash { font-weight: 700; color: #B3261E; white-space: nowrap; text-align: right; }

/* 服务项目分档：常规 / 拆锁 / 安装 */
.svc-group { border: 1px solid #E8E8E2; border-radius: 8px; padding: 10px 12px;
  margin-bottom: 8px; background: #FCFCFA; }
.svc-group.on { border-color: #185FA5; background: #F5F9FE; }
.svc-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; }
.svc-group .chk-row { gap: 6px; }

/* 售后单：故障 / 非故障 标记 */
.fault-tag { color: #A32D2D; font-weight: 600; margin-top: 1px; }
/* 故障单是否过保：保外收费 / 保修期内 */
.warranty-tag { display: inline-block; font-size: 11px; line-height: 16px; padding: 0 5px;
  border-radius: 3px; margin-left: 5px; font-weight: 600; vertical-align: 1px; }
.warranty-tag.out { background: #FCEBEB; color: #A32D2D; }
.warranty-tag.in { background: #EAF3DE; color: #3B6D11; }
.svc-tag { color: #3B6D11; font-weight: 600; margin-top: 1px; }
.svc-line { color: #6B4E00; margin-top: 1px; }
.fault-desc { margin-top: 5px; color: #4A4A46; font-size: 12.5px; line-height: 1.55;
  background: #FAFAF7; border-left: 2px solid #D8D8D2; padding: 6px 9px; border-radius: 0 6px 6px 0; }

/* ========== 手机端整体适配 ==========
   目标：页面零横向滚动、不缩放、顶栏菜单全部可见，
   贴合手机屏（类似 App 的固定观感）。 */
@media (max-width: 600px) {
  /* ---- 输入类字号提到 16px：低于 16px 时手机浏览器聚焦会自动放大页面，
     这是「页面忽大忽小」的根源，必须 >= 16px 才能根治 ---- */
  input, select, textarea { font-size: 16px !important; }

  /* 页面留接收窄，内容更满 */
  .wrap { padding: 14px 12px 60px; }

  /* 长序列号允许折行，避免表格把页面撑宽 */
  .mono { word-break: break-all; }

  /* ---- 顶栏：品牌一行 / 菜单网格(每行5个) / 用户一行 ---- */
  .topbar {
    flex-wrap: wrap;
    height: auto;
    padding: 8px 12px 4px;
    gap: 2px 10px;
  }
  .brand { width: 100%; }
  .user { width: 100%; justify-content: flex-end; padding-bottom: 4px; }
  .nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0 2px;
    border-top: 1px solid #F0F0EB;
    padding-top: 2px;
  }
  .nav a {
    text-align: center;
    white-space: nowrap;
    font-size: 13px;
    padding: 8px 0 6px;
    border-bottom-width: 2px;
  }

  /* ---- 表单行放不下就换行，不撑破页面 ---- */
  form.row, .row { flex-wrap: wrap; }
  form.row > * { min-width: 0; }
  form.row select { flex: 1 1 34%; }
  form.row input[type=text] { flex: 3 1 46%; }
  form.row .btn { flex: 0 0 72px; }

  /* 产品行：机型占满一整行（原来只有 1/4 宽，下拉文字被挤成竖排），
     数量 / 单价 / 删除排第二行 */
  .item-row {
    grid-template-columns: 1fr 1fr 44px;
    grid-template-areas: "model model model" "qty price del";
    row-gap: 8px;
  }
  .item-row .model-combo { grid-area: model; }
  .item-row .qty-in { grid-area: qty; }
  .item-row .price-in { grid-area: price; }
  .item-row > .btn { grid-area: del; height: 38px; }

  /* 下拉条目：加高到 44px 以上，好点好读 */
  .combo-item { padding: 12px; font-size: 14px; }
  .combo-sub { font-size: 12px; }
  .combo-list { max-height: 48vh; box-shadow: 0 10px 28px rgba(28,28,26,.20); }
  .combo-group { padding: 8px 12px; font-size: 12px; }

  /* 输入框加高，键盘弹起时也好点 */
  .combo > input[type=text] { height: 42px; }

  /* 卡片内表格仍然可以自己横向滑（不影响整页锁定） */
  .tbl-wrap { -webkit-overflow-scrolling: touch; }
}

/* ========== 门锁照片 ========== */
.photo-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.photo-item {
  position: relative; width: 88px; height: 88px; border-radius: 9px;
  overflow: hidden; border: 1px solid #E4E4DE; background: #F7F7F5;
}
.photo-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-item form { position: absolute; top: 3px; right: 3px; margin: 0; }
.photo-del {
  width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(20,20,18,.55); color: #FFF; font-size: 15px; line-height: 22px;
  cursor: pointer; text-align: center;
}
.photo-del:hover { background: #A32D2D; }
.photo-add {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 16px; margin-top: 8px;
  border: 1px dashed #C9C9C2; border-radius: 9px;
  color: #185FA5; background: #FFF; cursor: pointer; font-size: 13.5px;
}
.photo-add:hover { border-color: #185FA5; background: #F6FAFF; }
.photo-add[hidden] { display: none; }
@media (max-width: 600px) {
  .photo-item { width: 96px; height: 96px; }
  .photo-add { width: 100%; }
}

/* ---- 仓库岗：待出库 / 待入库 ---- */
.out-line {
  border: 1px solid #EDEDE7; border-radius: 8px;
  padding: 10px 12px; margin-bottom: 10px;
}
.out-line .out-head {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; margin-bottom: 6px;
}
.sn-pick { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.sn-pick .chip { font-size: 11.5px; padding: 2px 8px; }
.sn-pick .chip-done { background: #EAF3DE; border-color: #C9DFA8; color: #3B6D11; }

.ret { border-top: 1px solid #F0F0EB; padding: 12px 0; }
.card h2 + .ret { border-top: none; padding-top: 2px; }
.ret-top { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; flex-wrap: wrap; }
.ret-act { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; align-items: flex-start; }
.ret-act details { flex: 1 1 100%; }
.ret-act summary { list-style: none; cursor: pointer; }
.ret-act summary::-webkit-details-marker { display: none; }
.ret-in { margin-top: 10px; padding: 10px 12px; background: #FBFBF9; border-radius: 8px; }

/* 导航项目变多后横向滚动，不挤成两行 */
.nav { overflow-x: auto; scrollbar-width: none; min-width: 0; }
.nav::-webkit-scrollbar { display: none; }
.nav a { white-space: nowrap; }

/* ---- 派单转化 ---- */
.dsp { border-top: 1px solid #F0F0EB; padding: 10px 0; }
.card h2 + .dsp { border-top: none; padding-top: 2px; }
.dsp-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.dsp-text {
  margin: 0; padding: 10px 12px; background: #FBFBF9; border: 1px solid #EDEDE7;
  border-radius: 8px; font-size: 12.5px; line-height: 1.65; white-space: pre-wrap;
  word-break: break-all;
  font-family: "SF Mono", Consolas, monospace;
}

/* ---- 师傅团队固定配色（色值来源 app.py INSTALL_TEAMS，别在这里另写一套） ---- */
.team-dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 2px;
  margin-right: 6px; vertical-align: baseline; flex: none;
}
.team-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.team-legend .lg { font-size: 12.5px; color: #4A4A45; display: inline-flex; align-items: center; }
.team-card .tbl-wrap { background: #fff; }
.team-card .dsp {
  background: #fff; border: 1px solid rgba(0, 0, 0, .07);
  border-radius: 8px; padding: 10px 12px; margin-bottom: 10px;
}
.team-card .dsp:last-child { margin-bottom: 0; }

/* 撤销出库后留下的作废明细：灰掉+划掉，一眼看出这条不作数了 */
tr.voided td { color: #A8A8A2; text-decoration: line-through; }

/* ---- 出库核对：昨日 / 今日 / 明日 快捷键 ---- */
.day-tabs {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  margin: 0 0 14px;
}
.day-tabs .btn { display: inline-flex; align-items: center; gap: 6px; }
.day-tabs .dt { font-size: 11.5px; opacity: .72; font-variant-numeric: tabular-nums; }

/* 待出库：以后要出的单按日期分组时的小标题 */
.group-h {
  margin: 18px 0 10px; font-size: 13px; font-weight: 600; color: #6B6B66;
  letter-spacing: .3px;
}
.group-h:first-of-type { margin-top: 4px; }

/* 师傅上门总表：按约上门日分组的小标题行 */
.grp-row td {
  background: #F7F6F1; font-size: 12.5px; color: #3A3A36;
  padding: 7px 10px; border-top: 1px solid #E4E4DE;
}
.grp-row.is-today td { background: #FCEBEB; color: #A32D2D; }
.grp-row .small { margin-left: 6px; }

@media print {
  body { background: #fff; }
  .topbar, .no-print { display: none !important; }
  .card { box-shadow: none; border: 1px solid #DDD; }
  .team-card { break-inside: avoid; page-break-inside: avoid; }
  .team-card .tbl-wrap { overflow: visible; }
  table { font-size: 11px; }
}
