/* ==========================================================================
   Inventory campaign: campaign list / board, session tabs, team counting (phone first), print pages
   Tokens and base classes come from app.css; print pages are always black on white.
   ========================================================================== */

/* ---------- Shared bits ---------- */
.bar.sm {
  height: 6px;
}
.xs.mono,
.mono.xs {
  font-variant-numeric: tabular-nums;
}
.neg {
  color: var(--bad);
  font-weight: 600;
}
.pos {
  color: var(--info);
  font-weight: 600;
}
.choice-grid.tight {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 132px), 1fr));
}
.warn-list {
  margin: 4px 0;
  padding-left: 18px;
  font-size: 13px;
}
.count-now {
  display: grid;
  gap: 10px;
}
.count-now .kpi-ic {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.count-now-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Campaign cards (list) ---------- */
.camp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}
.camp-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  color: inherit;
  min-width: 0;
}
.camp-card:hover {
  border-color: var(--line-2);
}
.cc-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.cc-name {
  font-size: 16px;
  line-height: 1.3;
}
.cc-prog,
.bc-prog {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}
@media (min-width: 640px) {
  .camp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1280px) {
  .camp-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- Campaign form ---------- */
.shift-times {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 6px 8px;
  font-size: 13px;
  color: var(--text-2);
}
.shift-times .input {
  text-align: center;
}
.site-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.site-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 40px;
  gap: 8px 10px;
  align-items: end;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
}
.site-row > .no {
  align-self: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface-3);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  grid-row: span 3;
}
.site-row > .field {
  grid-column: 2;
}
.site-row > .btn {
  grid-column: 3;
  grid-row: 1;
}
@container (min-width: 620px) {
  .site-row {
    grid-template-columns: 26px minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.2fr) 40px;
  }
  .site-row > .no {
    grid-row: auto;
  }
  .site-row > .field,
  .site-row > .btn {
    grid-column: auto;
    grid-row: auto;
  }
}
.row-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px 40px;
  gap: 8px;
  align-items: start;
}
.row-2.task {
  grid-template-columns: minmax(0, 1fr) 40px;
}
.row-2.task > .input:first-child {
  grid-column: 1 / -1;
}
@container (min-width: 620px) {
  .row-2.task {
    grid-template-columns: 200px minmax(0, 1fr) 40px;
  }
  .row-2.task > .input:first-child {
    grid-column: auto;
  }
}
.row-2 textarea.input {
  min-height: var(--field-h);
}
.tpl-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
}
.tpl-no {
  width: 58px;
  flex-shrink: 0;
  padding-top: 21px;
}
.tpl-no .input {
  text-align: center;
  font-weight: 700;
  padding: 0 4px;
}

/* ---------- Campaign board ---------- */
.board {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
@media (min-width: 900px) {
  .board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.board-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
}
.bc-h {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.bc-h b {
  display: block;
  font-size: 15px;
}
.bc-h .small {
  display: block;
  margin-top: 2px;
}
.bc-teams {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 4px 8px;
  align-items: start;
}
.bc-shift {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding-top: 2px;
}
.bc-tlist {
  display: grid;
  gap: 4px;
}
.bc-team {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 54px 16px;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
}
.bc-zones .bc-team {
  grid-template-columns: 44px minmax(0, 1fr) 54px;
  margin-top: 4px;
}
.bc-zones summary {
  cursor: pointer;
  color: var(--muted);
}
.bc-done {
  width: 15px;
  height: 15px;
  color: var(--ok);
}
.bc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.bc-f {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.plan-scroll {
  overflow-x: auto;
}
.plan-t {
  min-width: 560px;
}
.plan-t th.c,
.plan-t td.c {
  text-align: center;
}
.task-list {
  margin: 0;
  padding: 12px 16px 12px 36px;
  display: grid;
  gap: 8px;
}
.task-list li {
  display: grid;
  gap: 2px;
}
.tl-when {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
@media (min-width: 720px) {
  .task-list li {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 12px;
  }
}
.tpl-group {
  display: grid;
  gap: 6px;
}
.tpl-view {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 2px 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.tpl-view:last-child {
  border-bottom: 0;
}
.tpl-view > .muted {
  grid-column: 2;
}
@media (min-width: 720px) {
  .tpl-view {
    grid-template-columns: 80px minmax(0, 1.4fr) minmax(0, 1fr);
  }
  .tpl-view > .muted {
    grid-column: auto;
  }
}

/* ---------- Session tabs ---------- */
.prog-group {
  display: grid;
  gap: 4px;
}
.prog-row {
  display: grid;
  grid-template-columns: 34px minmax(70px, 0.9fr) minmax(0, 1.2fr) 56px 18px;
  align-items: center;
  gap: 10px;
  padding: 6px 4px;
  border-radius: var(--r-sm);
  color: inherit;
}
a.prog-row:hover {
  background: var(--surface-2);
}
.prog-row.static {
  grid-template-columns: 34px minmax(70px, 0.9fr) minmax(0, 1.2fr) 56px;
}
.team-box .prog-row.static {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 0;
}
.ok-ic {
  width: 16px;
  height: 16px;
  color: var(--ok);
}
.team-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}
@media (min-width: 720px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1280px) {
  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.team-box {
  padding: 12px 14px;
  display: grid;
  gap: 10px;
}
.team-box header {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.team-box header b,
.team-box header small {
  display: block;
}
.tc-no {
  min-width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
  font-family: var(--f-mono);
  flex-shrink: 0;
}
.tb-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tb-meta .icon {
  width: 13px;
  height: 13px;
}
.dept-sum {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.people {
  display: grid;
  gap: 8px;
}
.people-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 40px;
  gap: 6px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  align-items: center;
}
/* Phone: name + delete / department + team / role + account */
.people-row > :nth-child(1) {
  grid-column: 1 / 3;
}
.people-row > :nth-child(2),
.people-row > :nth-child(4) {
  grid-column: 1 / 2;
}
.people-row > :nth-child(3),
.people-row > :nth-child(5) {
  grid-column: 2 / 4;
}
.people-row > .btn {
  grid-column: 3;
  grid-row: 1;
}
@media (min-width: 1024px) {
  .people-h,
  .people-row {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 130px 150px minmax(0, 1.2fr) 40px;
  }
  .people-h {
    display: grid;
    gap: 6px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
  }
  .people-row {
    padding: 6px 10px;
  }
  .people-row > * {
    grid-column: auto !important;
    grid-row: auto !important;
  }
}
.lines-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.lines-tools > .search {
  flex: 1 1 260px;
}
.lines-tools > select.input {
  width: auto;
  min-width: 150px;
  flex: 0 1 200px;
}
.sm-select {
  height: 32px !important;
  padding: 0 6px !important;
  font-size: 13px !important;
  width: auto !important;
  min-width: 92px;
}
.lock-ic {
  width: 13px;
  height: 13px;
  color: var(--muted);
  margin-left: 4px;
  vertical-align: -2px;
}

/* ---------- Team counting (phone first) ---------- */
.team-pick {
  display: grid;
  gap: 8px;
}
.team-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  min-height: 64px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.team-card:hover {
  border-color: var(--line-2);
}
.team-card.on {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}
.team-card .tc-no {
  min-width: 44px;
  height: 44px;
  font-size: 15px;
}
.tc-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.tc-main small {
  color: var(--muted);
  font-size: 12.5px;
}
.tc-n {
  font-size: 13px;
  color: var(--muted);
}
.cnt-body {
  gap: 10px;
  max-width: 980px;
}
.cnt-head {
  position: sticky;
  top: calc(var(--topbar-h) + var(--safe-t));
  z-index: 20;
  margin: -12px -16px 0;
  padding: 10px 16px 10px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.5) blur(8px);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 8px;
}
.cnt-prog {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 10px;
}
.cnt-prog .bar {
  height: 10px;
}
.cnt-prog .bar i {
  background: var(--brand);
  transition: width 0.25s ease-out;
}
.cnt-prog .bar.ok i {
  background: var(--ok);
}
.cnt-syncdot {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--muted);
}
.cnt-syncdot span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--info);
  animation: pulse 1s ease-in-out infinite;
}
.cnt-team {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 99px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.cnt-team .icon {
  width: 16px;
  height: 16px;
}
/* Narrow phones: the three result buttons keep their text on one line */
@media (max-width: 420px) {
  .cnt-act .icon {
    display: none;
  }
  .cnt-act {
    font-size: 14.5px;
  }
}
.cnt-zones .chip {
  font-family: var(--f-mono);
  font-weight: 600;
  min-height: 34px;
  padding-inline: 13px;
}
.cnt-tools {
  display: grid;
  gap: 8px;
}
.cnt-tools .search {
  height: 40px;
}
.cnt-retry {
  align-items: center;
}
.cnt-list {
  display: grid;
  gap: 10px;
}
.cnt-line {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 12px 12px 10px;
  display: grid;
  gap: 10px;
  scroll-margin-top: 190px;
  box-shadow: var(--shadow-sm);
  transition:
    border-color 0.15s,
    background 0.3s;
}
.cnt-line.r-FOUND {
  border-left-color: var(--ok);
}
.cnt-line.r-DAMAGED {
  border-left-color: var(--warn);
}
.cnt-line.r-MISSING,
.cnt-line.r-SHORT {
  border-left-color: var(--bad);
}
.cnt-line.r-SURPLUS {
  border-left-color: var(--info);
}
.cnt-line.hit {
  background: var(--info-soft);
}
.cnt-top {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.cnt-name {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.cnt-name .code {
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--muted);
}
.cnt-name b {
  font-size: 15.5px;
  line-height: 1.3;
}
.cnt-name .sub {
  font-size: 12.5px;
  color: var(--muted);
}
.cnt-top .ev-btn {
  align-self: flex-start;
}
.cnt-acts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.cnt-act {
  min-height: 52px;
  border-radius: 12px;
  border: 1.5px solid var(--line-2);
  background: var(--surface-2);
  color: var(--text-2);
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  padding: 0 6px;
  transition:
    background 0.12s,
    border-color 0.12s,
    transform 0.08s;
}
.cnt-act .icon {
  width: 19px;
  height: 19px;
}
.cnt-act:disabled {
  cursor: default;
  opacity: 0.75;
}
.cnt-act.ok.on {
  background: var(--ok);
  border-color: var(--ok);
  color: #fff;
}
.cnt-act.warn.on {
  background: var(--warn);
  border-color: var(--warn);
  color: #fff;
}
.cnt-act.bad.on {
  background: var(--bad);
  border-color: var(--bad);
  color: #fff;
}
:root[data-theme='dark'] .cnt-act.on {
  color: #0e0e0d;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .cnt-act.on {
    color: #0e0e0d;
  }
}
.cnt-zonepick {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}
.cnt-qty {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.cnt-book {
  display: grid;
  justify-items: center;
  line-height: 1.15;
  padding: 4px 0;
  border-radius: 10px;
  background: var(--surface-3);
}
.cnt-book small {
  font-size: 10.5px;
  color: var(--muted);
}
.cnt-book b {
  font-size: 17px;
}
.cnt-stepper {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  gap: 6px;
  align-items: center;
}
.cnt-stepper.sm {
  grid-template-columns: 40px minmax(0, 1fr) 40px;
}
.step-btn {
  height: 52px;
  border-radius: 12px;
  border: 1.5px solid var(--line-2);
  background: var(--surface-2);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}
.step-btn .icon {
  width: 22px;
  height: 22px;
}
.step-btn:active {
  background: var(--surface-3);
}
.step-btn:disabled {
  opacity: 0.5;
  cursor: default;
}
.cnt-stepper.sm .step-btn {
  height: var(--field-h);
  border-radius: var(--r-sm);
}
.qty-input {
  text-align: center;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 22px !important;
  height: 52px !important;
  padding: 0 4px !important;
  -moz-appearance: textfield;
  appearance: textfield;
}
.cnt-stepper.sm .qty-input {
  height: var(--field-h) !important;
  font-size: 17px !important;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.cnt-none {
  height: 52px;
  padding: 0 10px;
}
.cnt-dmg {
  display: grid;
  grid-template-columns: auto 110px;
  justify-content: end;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--text-2);
}
.cnt-dmg .input {
  text-align: center;
  font-family: var(--f-mono);
}
.cnt-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  min-height: 24px;
}
.cnt-state {
  font-size: 12px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: none;
  font-family: inherit;
}
.cnt-state.bad {
  color: var(--bad);
  font-weight: 700;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 99px;
  background: var(--bad-soft);
}
.cnt-state .icon {
  width: 14px;
  height: 14px;
}
.cnt-sugg {
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
  margin-top: 4px;
}
.cnt-sugg-i {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 11px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.cnt-sugg-i:last-child {
  border-bottom: 0;
}
.cnt-sugg-i:hover {
  background: var(--surface-2);
}
.cnt-sugg-i small {
  color: var(--muted);
}
.cnt-cells {
  display: grid;
  gap: 4px;
}
.cnt-cell {
  display: grid;
  grid-template-columns: 80px 70px auto 1fr;
  gap: 8px;
  font-size: 13px;
  padding: 6px 10px;
  background: var(--surface-2);
  border-radius: var(--r-sm);
}
@media (min-width: 640px) {
  .cnt-tools {
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: center;
  }
  .cnt-head {
    margin-inline: -24px;
    padding-inline: 24px;
  }
}
@media (min-width: 1024px) {
  .cnt-head {
    margin: -16px -28px 0;
    padding: 12px 28px;
  }
  .cnt-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
  .cnt-zones {
    margin: 0;
  }
}
@media (hover: none) {
  .cnt-act:active,
  .step-btn:active,
  .team-card:active {
    transform: scale(0.97);
  }
}

/* ==========================================================================
   Print pages (always black on white)
   ========================================================================== */
/* ---------- Stickers ("tem kiểm kê") ---------- */
@page stickers {
  size: A4 portrait;
  margin: 8mm;
}
.sticker-sheet {
  page: stickers;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  grid-template-rows: repeat(var(--rows), minmax(0, 1fr));
  width: 100%;
  max-width: 760px;
  aspect-ratio: 194 / 281;
  padding: 0;
  gap: 0;
  overflow: hidden;
}
.stk {
  border: 0.5px dashed #9a958c;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2% 4%;
  min-width: 0;
  overflow: hidden;
  color: #111;
}
.stk-qr {
  width: 30%;
  flex-shrink: 0;
  aspect-ratio: 1;
}
.stk-qr svg {
  width: 100%;
  height: 100%;
  display: block;
}
.stk-b {
  min-width: 0;
  display: grid;
  gap: 1px;
  flex: 1;
}
.stk-h {
  display: flex;
  align-items: center;
  gap: 4px;
}
.stk-h b {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #b52229;
  white-space: nowrap;
}
.stk-logo {
  height: 14px;
  width: auto;
}
.stk-m {
  font-size: 7.5px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stk-f {
  font-size: 8.5px;
  white-space: nowrap;
  overflow: hidden;
}
.lay-65 .stk {
  padding: 2% 5%;
}
.lay-65 .stk-h b {
  font-size: 8px;
}
.lay-65 .stk-m {
  font-size: 5.5px;
}
.lay-65 .stk-f {
  font-size: 6.5px;
}

/* ---------- Documents: minutes, plan ---------- */
.paper.minutes,
.paper.plan {
  font-size: 12.5px;
  line-height: 1.45;
  max-width: 900px;
}
.doc-h {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.doc-org {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  margin-top: 4px;
}
.doc-r {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 2px;
  font-size: 11.5px;
}
.doc-r i {
  margin-top: 6px;
  color: #444;
}
.doc-title {
  text-align: center;
  font-size: 17px;
  letter-spacing: 0.02em;
  margin: 18px 0 2px;
  color: #111;
}
.doc-sub {
  text-align: center;
  color: #444;
  margin: 0 0 12px;
}
.doc-sub.big {
  font-size: 14px;
  font-weight: 600;
  color: #111;
}
.doc-sub.big span {
  font-size: 12px;
  font-weight: 400;
  color: #444;
}
.doc-dl {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 3px 12px;
  margin: 0 0 6px;
}
.doc-dl dt {
  color: #555;
}
.doc-dl dd {
  margin: 0;
  font-weight: 600;
}
.doc-h2 {
  font-size: 13px;
  margin: 16px 0 6px;
  color: #111;
  display: flex;
  align-items: center;
  gap: 8px;
}
.doc-h2 span:not(.plan-n) {
  font-weight: 400;
  color: #555;
}
.doc-t {
  min-width: 0;
}
.doc-t th,
.doc-t td {
  height: auto;
  min-height: 22px;
  font-size: 11.5px;
}
.doc-t td.r {
  text-align: right;
  white-space: nowrap;
}
.doc-t .sign-row td {
  height: 28px;
}
.mn-code {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px;
  color: #555;
}
.paper-t th small + small,
.doc-t td small {
  display: block;
  font-size: 10px;
  color: #555;
}
.muted-p {
  color: #777;
  font-style: italic;
}
.paper-t td.na {
  background: repeating-linear-gradient(135deg, #f1eee8 0 4px, #fff 4px 8px);
}
.doc-lines {
  display: grid;
  gap: 0;
}
.doc-lines span {
  border-bottom: 1px dotted #888;
  height: 24px;
}
.doc-sign {
  display: grid;
  gap: 12px;
  text-align: center;
  margin-top: 18px;
  min-height: 110px;
  font-weight: 700;
  break-inside: avoid;
}
.doc-sign.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.doc-sign.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.doc-sign small {
  display: block;
  font-weight: 400;
  color: #555;
}
.plan-kind {
  font-size: 15px;
  letter-spacing: 0.1em;
  color: #b52229;
}
.plan-boxes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #333;
  margin: 8px 0 12px;
}
.plan-boxes > div {
  padding: 8px 10px;
  border-right: 1px solid #333;
  display: grid;
  gap: 2px;
}
.plan-boxes > div:last-child {
  border-right: 0;
}
.plan-boxes small {
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: #666;
}
.plan-p {
  margin: 0 0 6px;
  text-align: justify;
}
.plan-n {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #1b1a18;
  color: #fff;
  font-size: 11px;
}
.plan-t th {
  text-align: center;
}
.plan-t th small {
  font-family: inherit;
  font-size: 10.5px;
}
.plan-to {
  margin-top: 14px;
  font-size: 11.5px;
}
@media (max-width: 639px) {
  .paper.minutes,
  .paper.plan {
    padding: 16px 14px;
  }
  .doc-h {
    flex-direction: column;
  }
  .doc-r {
    justify-items: start;
    text-align: left;
  }
  .doc-sign.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .plan-boxes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .plan-boxes > div:nth-child(2) {
    border-right: 0;
  }
  .plan-boxes > div:nth-child(-n + 2) {
    border-bottom: 1px solid #333;
  }
  .doc-t {
    font-size: 11px;
  }
  .paper.minutes .doc-t,
  .paper.plan .doc-t {
    display: block;
    overflow-x: auto;
  }
}
@media print {
  .sticker-sheet {
    width: 194mm;
    height: 281mm;
    max-width: none;
    aspect-ratio: auto;
    border: 0 !important;
    border-radius: 0 !important;
  }
  .stk {
    border-color: #c8c3b9;
  }
  .stk-h b {
    font-size: 10pt;
  }
  .stk-m {
    font-size: 6.5pt;
  }
  .stk-f {
    font-size: 7.5pt;
  }
  .lay-65 .stk-h b {
    font-size: 7pt;
  }
  .lay-65 .stk-m {
    font-size: 4.8pt;
  }
  .lay-65 .stk-f {
    font-size: 5.8pt;
  }
  .paper.minutes,
  .paper.plan {
    max-width: none;
    font-size: 10.5pt;
  }
  .doc-t th,
  .doc-t td {
    font-size: 9pt;
  }
  .doc-t thead {
    display: table-header-group;
  }
  .paper.minutes .doc-t,
  .paper.plan .doc-t {
    display: table;
  }
}

/* Phones: the counting screen has no page-header content (title sits in the top bar) – give the room to the list */
@media (max-width: 1023px) {
  .page-header:has(+ .cnt-body) {
    display: none;
  }
}
