/* MedSafe — the hospital report world: paper on a desk, 1px rules, one reserved red. */
:root {
  --desk: #E7EBEE; --paper: #FFFFFF; --ink: #14202B; --ink-2: #46535F; --ink-3: #6B7783;
  --rule: #CDD4DA; --rule-strong: #14202B; --band: #1F4E6B; --band-ink: #FFFFFF; --band-2: #3D6A86;
  --tint: #F3F6F8; --stop: #B3261E; --caution: #8A5200; --field: #8794A0;
  --ok: #1E6B45; --focus: #2F7FB8;
  --sans: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
  --mono: 'Source Code Pro', ui-monospace, Menlo, monospace;
  --bn: 'Hind Siliguri', 'Noto Sans Bengali', var(--sans);
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--desk); color: var(--ink); font: 400 16px/1.45 var(--sans); -webkit-font-smoothing: antialiased; }
::selection { background: #CFE0EC; color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
input, select, textarea, button { font: inherit; color: inherit; caret-color: var(--band); }
a { color: var(--band); text-underline-offset: 3px; text-decoration-thickness: 1px; }
[lang="bn"] { font-family: var(--bn); }
h1, h2, h3, p { margin: 0; }
svg.i { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
* { scrollbar-width: thin; scrollbar-color: #B7C1C9 transparent; }

/* ---- top bar ---- */
.bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: stretch; gap: 24px; padding: 0 clamp(16px, 3vw, 32px);
  background: var(--ink); color: #fff; min-height: 52px; }
.mark { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.mark svg { width: 22px; height: 22px; color: var(--band-2); }
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.tabs a { display: flex; align-items: center; padding: 0 14px; color: #B9C5CF; text-decoration: none; font-weight: 600; font-size: 15px;
  border-bottom: 3px solid transparent; white-space: nowrap; transition: color .2s; }
.tabs a:hover { color: #fff; }
.tabs a[aria-current] { color: #fff; border-bottom-color: #7FB2D6; }
.tabs .short, .status .short { display: none; }
@media (max-width: 860px) { .tabs .short, .status .short { display: inline; } }
.status { margin: 0; padding: 8px clamp(16px, 3vw, 32px); background: var(--paper); border-bottom: 1px solid var(--rule); font-size: 14px; color: var(--ink-2); }
.status b { font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2);
  border: 1px solid var(--ink-3); padding: 1px 6px; margin-right: 8px; }
.status span { margin-left: 6px; color: var(--ink-3); }

main { padding: 24px clamp(12px, 3vw, 32px) 72px; }
.view[hidden] { display: none !important; }

/* ---- shared controls ---- */
.lbl { display: block; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--ink-2); margin-bottom: 8px; }
.lbl.sub { font-weight: 600; margin-bottom: 6px; }
label { display: grid; gap: 4px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
input, select, textarea { width: 100%; min-width: 0; height: 40px; padding: 0 10px; background: var(--paper); border: 1px solid var(--field); border-radius: 0;
  font-size: 16px; font-weight: 400; color: var(--ink); transition: border-color .15s; }
textarea { height: auto; padding: 8px 10px; resize: vertical; }
select { appearance: none; padding-right: 30px; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2314202B' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 10px center; }
input:hover, select:hover, textarea:hover { border-color: var(--ink-3); }
input:focus, select:focus, textarea:focus { border-color: var(--band); outline: 1px solid var(--band); outline-offset: 0; }
input::placeholder, textarea::placeholder { color: #66727D; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 0; cursor: pointer;
  font-weight: 700; font-size: 15px; border: 1px solid transparent; transition: background-color .15s, color .15s, border-color .15s; white-space: nowrap; }
.btn.solid { background: var(--band); color: #fff; }
.btn.solid:hover { background: #173E56; }
.btn.line { background: var(--paper); border-color: var(--ink); color: var(--ink); }
.btn.line:hover { background: var(--ink); color: #fff; }
.btn.ghost-inv { background: transparent; border-color: rgb(255 255 255 / .55); color: #fff; }
.btn.ghost-inv:hover { background: #fff; color: var(--band); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 14px; }
.btn.wide { width: 100%; height: 48px; font-size: 16px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---- check view layout ---- */
.check { display: grid; grid-template-columns: 340px minmax(0, 880px); gap: 24px; justify-content: center; align-items: start; }
.req { background: var(--paper); border: 1px solid var(--rule); padding: 20px; display: grid; gap: 20px; position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow: auto; }
.hint { font-size: 14.5px; color: var(--ink-2); margin-top: -8px; }
.run { position: sticky; bottom: -20px; margin: 0 -20px -20px; padding: 12px 20px 20px; background: var(--paper); border-top: 1px solid var(--rule); }
.req h1 { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); padding-bottom: 12px; border-bottom: 1px solid var(--rule-strong); }
.cases { display: grid; border-top: 1px solid var(--rule); }
.case { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--rule); padding: 8px 4px 8px 8px; cursor: pointer; }
.case b { font-weight: 700; font-size: 15px; }
.case span { grid-column: 1; font-size: 13px; color: var(--ink-3); }
.case small { grid-row: 1 / 3; grid-column: 2; align-self: center; font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.case:hover { background: var(--tint); }
.case[aria-pressed="true"] { background: var(--ink); }
.case[aria-pressed="true"] b { color: #fff; }
.case[aria-pressed="true"] span, .case[aria-pressed="true"] small { color: #B9C5CF; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid2 legend { margin-bottom: 8px; }
.span2 { grid-column: span 2; }
.span3 { grid-column: 1 / -1; }
.unit-in { display: grid; grid-template-columns: 1fr auto; }
.unit-in i { font-style: normal; display: grid; place-items: center; padding: 0 10px; border: 1px solid var(--field); border-left: 0; background: var(--tint); font-size: 14px; color: var(--ink-2); font-weight: 400; }
.unit-in select { width: auto; border-left: 0; font-size: 14px; }
.toggles { display: flex; flex-wrap: wrap; gap: 6px; }
.toggle { position: relative; display: inline-flex; flex-direction: row; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 1px solid var(--field); font-size: 14px; font-weight: 400; color: var(--ink); cursor: pointer; user-select: none; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle:hover { border-color: var(--ink); }
.toggle:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.toggle:has(input:checked) { background: var(--ink); border-color: var(--ink); color: #fff; }
.add { display: grid; grid-template-columns: 1fr auto; }
.add .btn { border-left: 0; height: 40px; }
.meds { list-style: none; margin: 10px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.meds li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; padding: 7px 0 7px 4px; border-bottom: 1px solid var(--rule); font-size: 15px; }
.meds li b { font-weight: 700; }
.meds li small { display: block; font-size: 13px; color: var(--ink-3); }
.meds li small.warn { color: var(--caution); }
.meds li.unknown b { font-style: italic; font-weight: 600; }
.meds li.empty { color: var(--ink-3); font-size: 14px; grid-template-columns: 1fr; }
.rm { width: 36px; height: 36px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; color: var(--ink-3); }
.rm:hover { color: var(--ink); background: var(--tint); }
.req-summary { display: none; }

/* ---- report sheet ---- */
.sheet { background: var(--paper); box-shadow: 0 1px 2px rgb(20 32 43 / .06), 0 12px 32px -12px rgb(20 32 43 / .18); min-width: 0; }
#view-log .sheet, #view-adr .sheet { width: 100%; max-width: 940px; margin-inline: auto; }
.sheet.wide { max-width: 1240px; margin-inline: auto; }
.rh { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; background: var(--band); color: var(--band-ink); padding: 18px 28px 16px; }
.rh h1 { font-size: 22px; font-weight: 700; letter-spacing: -.005em; line-height: 1.15; }
.rh p { font-size: 14px; color: #C8D9E5; margin-top: 2px; }
.rh-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.rh .meta { text-align: right; font-family: var(--mono); font-size: 13px; color: #DCE8F0; line-height: 1.5; }
.rh .meta b { color: #fff; font-weight: 600; }
.rh .meta span { display: block; }
.sheet-body { padding: 8px 28px 28px; }
.sheet h2 { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin: 26px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--rule-strong);
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.sheet h2 .tally { font-weight: 600; font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.tally .s { color: var(--stop); font-weight: 600; }
.tally .c { color: var(--caution); font-weight: 600; }

/* demographics */
.demo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-bottom: 1px solid var(--rule); }
.demo div { padding: 10px 12px 10px 0; border-top: 1px solid var(--rule); min-width: 0; }
.demo div:nth-child(-n+3) { border-top: 0; }
.demo dt { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.demo dd { margin: 2px 0 0; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.demo dd.none { color: var(--ink-3); font-weight: 400; }

/* result tables */
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding: 8px 12px 6px 0; border-bottom: 1px solid var(--rule); white-space: nowrap; }
td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.num { font-family: var(--mono); font-size: 15px; white-space: nowrap; }
.num.hi { font-weight: 600; }
.unitc { color: var(--ink-3); font-size: 14px; }
.sub { color: var(--ink-2); font-size: 14px; }
.lab td:first-child .unitc { display: block; font-size: 13px; }
.flag { font-weight: 700; font-size: 12.5px; letter-spacing: .1em; white-space: nowrap; }
.flag.lab { color: var(--stop); }
.flag.stop { color: #fff; background: var(--stop); padding: 2px 6px; }
.flag.caution { color: var(--caution); }
.flag.advice { color: var(--band); }

.findings > tbody > tr > td:first-child { width: 104px; padding-left: 12px; }
.findings > thead > tr > th:first-child { padding-left: 12px; }
.find h3 { font-size: 17px; font-weight: 700; line-height: 1.3; }
.find h3 small { font-weight: 400; color: var(--ink-3); font-size: 14px; margin-left: 6px; }
.find p { margin-top: 4px; color: var(--ink-2); max-width: 68ch; }
.find p.do { color: var(--ink); font-weight: 600; }
.find .bn { margin-top: 8px; padding: 8px 10px; background: var(--tint); font-size: 16px; line-height: 1.6; max-width: 68ch; }
.src { width: 168px; font-size: 13px; color: var(--ink-3); }
.src .rid { display: block; font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.src a { display: inline-block; margin-top: 2px; line-height: 1.35; }
.st { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.st.ok { color: var(--ok); }
.st.bad { color: var(--ink-2); text-decoration: line-through; }

.resp { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.resp > span { font-size: 13px; font-weight: 700; color: var(--ink-2); margin-right: 4px; }
.resp button { height: 32px; padding: 0 10px; background: var(--paper); border: 1px solid var(--field); font-size: 14px; font-weight: 600; cursor: pointer; }
.resp button:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.stamp { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 4px 10px; border: 1.5px solid var(--ok); color: var(--ok);
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.stamp .i { width: 14px; height: 14px; }

.np { list-style: none; margin: 0; padding: 0; }
.np li { display: grid; grid-template-columns: 104px 1fr; gap: 0; padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.np li .flag { color: var(--ink-2); padding-left: 12px; }
.counsel { margin: 0; padding: 0 0 0 22px; font-family: var(--bn); font-size: 16.5px; line-height: 1.7; }
.counsel li { padding: 6px 0; border-bottom: 1px solid var(--rule); }
.counsel li b { font-family: var(--sans); }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.none-msg { padding: 12px 0; color: var(--ink-2); }

.rf { margin-top: 28px; padding-top: 14px; border-top: 2px solid var(--rule-strong); display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: end; }
.rf .method { font-size: 13.5px; color: var(--ink-2); max-width: 58ch; }
.sign { display: grid; gap: 6px; justify-items: end; }
.sign .signform { display: flex; }
.sign input { width: 200px; height: 36px; font-size: 15px; }
.sign .btn { height: 36px; border-left: 0; }
.signed { text-align: right; }
.signed .stamp { margin: 0; font-size: 13px; border-color: var(--band); color: var(--band); }
.signed p { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; font-family: var(--mono); }
.eor { text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .16em; color: var(--ink-3); margin-top: 22px; text-transform: uppercase; }

/* empty report */
.blank .sheet-body { padding-bottom: 40px; }
.blank .lead { font-size: 18px; font-weight: 600; margin-top: 18px; max-width: 46ch; }
.blank .lead + p { color: var(--ink-2); margin-top: 6px; max-width: 58ch; }
.blank .ghost-rows { margin-top: 22px; border-top: 1px solid var(--rule-strong); }
.blank .ghost-rows div { display: grid; grid-template-columns: 104px 1fr 140px; gap: 12px; padding: 14px 0 14px 12px; border-bottom: 1px solid var(--rule); }
.blank .ghost-rows i { display: block; height: 10px; background: var(--tint); }
.blank .ghost-rows i:nth-child(2) { width: 80%; }

/* registers */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--rule); margin: 18px 0 0; }
.stats div { padding: 10px 12px 12px 0; }
.stats dt { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.stats dd { margin: 2px 0 0; font-family: var(--mono); font-size: 22px; font-weight: 600; }
.stats dd small { font-size: 14px; color: var(--ink-3); font-weight: 400; }
.reg td { font-size: 15px; }
.reg td.when { font-family: var(--mono); font-size: 13px; white-space: nowrap; color: var(--ink-2); }
.reg .rid { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.foot-actions { margin-top: 18px; }
.team { display: grid; grid-template-columns: 260px 1fr; gap: 20px; align-items: end; padding: 16px 0 18px; border-bottom: 1px solid var(--rule-strong); }
.team p { font-size: 14.5px; color: var(--ink-2); }
.team p span { display: block; margin-top: 2px; }
.rules td { font-size: 14.5px; }
.rules td:nth-child(3) { min-width: 300px; }
.rules .bn { font-size: 15px; margin-top: 6px; padding: 6px 8px; background: var(--tint); }
.rules .rid { display: block; }
.rules .kind { font-size: 13px; color: var(--ink-2); display: block; margin-top: 2px; }
.rv { display: flex; gap: 4px; margin-top: 8px; flex-wrap: wrap; }
.rv button { height: 30px; padding: 0 9px; background: var(--paper); border: 1px solid var(--field); font-size: 13px; font-weight: 600; cursor: pointer; }
.rv button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ADR form */
.adr { display: grid; gap: 24px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.grid3 .span2 { grid-column: span 2; }
.naranjo { margin-top: 22px; border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule); }
.naranjo summary { display: flex; align-items: center; gap: 12px; padding: 12px 0; cursor: pointer; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; list-style: none; }
.naranjo summary::-webkit-details-marker { display: none; }
.naranjo .tog { display: grid; color: var(--ink-2); }
.naranjo .minus, .naranjo[open] .plus { display: none; }
.naranjo[open] .minus { display: block; }
.naranjo output { margin-left: auto; font-family: var(--mono); font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--band); }
.nar td { font-size: 15px; }
.nar td:last-child { width: 1%; white-space: nowrap; }
.seg { display: inline-flex; }
.seg label { position: relative; display: inline-flex; flex-direction: row; align-items: center; height: 32px; padding: 0 10px; border: 1px solid var(--field); margin-left: -1px; font-size: 14px; font-weight: 400; color: var(--ink); cursor: pointer; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label:has(input:checked) { background: var(--ink); border-color: var(--ink); color: #fff; z-index: 1; }
.seg label:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 1px; z-index: 2; }
.signrow { margin-top: 22px; align-items: end; }
.adr .sheet-body > h2:first-child { margin-top: 18px; }

/* stamp lands when a response or signature is recorded */
@media (prefers-reduced-motion: no-preference) { .stamp.fresh { animation: stamp .35s var(--ease) backwards; } }
@keyframes stamp { from { opacity: 0; transform: scale(1.12); } }

/* ---- responsive ---- */
@media (max-width: 1100px) {
  .check { grid-template-columns: 300px minmax(0, 1fr); gap: 16px; }
  .src { width: 130px; }
}
@media (max-width: 860px) {
  main { padding: 12px 0 56px; }
  .bar { gap: 12px; padding: 0 12px; }
  .tabs a { padding: 0 10px; font-size: 15px; }
  .tabs .long, .status .long { display: none; }
  .status { padding: 7px 12px; font-size: 13.5px; }
  .status span[lang] { display: none; }
  .check { grid-template-columns: 1fr; gap: 12px; }
  .req { position: static; max-height: none; overflow: visible; border-inline: 0; }
  .run { bottom: 0; }
  .check:not(.has-report) #report { display: none; }
  .check.has-report .req { display: none; }
  .check.has-report .req-summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: sticky; top: 52px; z-index: 5;
    background: var(--paper); border-bottom: 1px solid var(--rule); padding: 8px 12px; font-size: 14px; color: var(--ink-2); }
  .req-summary b { color: var(--ink); }
  .sheet { box-shadow: none; }
  .rh { padding: 10px 16px; align-items: baseline; }
  .rh h1 { font-size: 17px; }
  .rh p { display: none; }
  .rh .meta { text-align: left; font-size: 12px; }
  .rh .meta span { display: inline; }
  .sheet-body { padding: 4px 16px 24px; }
  .demo { grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .demo div { display: flex; gap: 6px; align-items: baseline; padding: 6px 0; border-top: 0 !important; min-width: 0; }
  .demo dt { font-size: 11px; flex: none; }
  .demo dd { margin: 0; font-size: 14.5px; overflow-wrap: anywhere; }
  .demo div:first-child { grid-column: 1 / -1; }
  .findings thead { display: none; }
  .findings, .findings tbody, .findings tr, .findings td { display: block; width: auto !important; }
  .findings tr { border-bottom: 1px solid var(--rule); padding: 10px 12px; }
  .findings td { border: 0; padding: 0 !important; background: none !important; box-shadow: none !important; }
  .findings td.src { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
  .findings td.src .rid, .findings td.src a, .findings td.src .st { display: inline; margin: 0; }
  .find h3 { margin-top: 2px; }
  .np li { grid-template-columns: 84px 1fr; }
  .resp { display: grid; grid-template-columns: repeat(3, 1fr); }
  .resp > span { grid-column: 1 / -1; }
  .resp button { height: 44px; padding: 0 6px; line-height: 1.15; white-space: normal; }
  .toggle, .btn.sm, .rv button, .seg label { min-height: 40px; height: auto; }
  .sheet h2 { margin-top: 20px; }
  .rh .meta { font-size: 12.5px; }
  .demo dd { font-size: 15px; }
  .np li .flag { padding-left: 0; }
  .rf { grid-template-columns: 1fr; }
  .sign { justify-items: stretch; }
  .sign input { width: 100%; }
  .signed { text-align: left; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team { grid-template-columns: 1fr; }
  .grid3 { grid-template-columns: 1fr 1fr; }
  .grid3 .span2 { grid-column: 1 / -1; }
  .reg thead, .rules thead { display: none; }
  .reg, .reg tbody, .reg tr, .reg td, .rules, .rules tbody, .rules tr, .rules td { display: block; width: auto; min-width: 0 !important; }
  .reg tr, .rules tr { padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .reg td, .rules td { border: 0; padding: 2px 0; }
  .rules td:first-child { display: flex; gap: 10px; align-items: baseline; }
  .rules td:first-child .kind { margin: 0; }
  .nar tr { display: grid; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
  .nar td { border: 0; padding: 0; }
  .adr { gap: 12px; }
  .blank .ghost-rows div { grid-template-columns: 72px 1fr; }
  .blank .ghost-rows i:nth-child(3) { display: none; }
}
@media (max-width: 420px) {
  .tabs a { padding: 0 8px; font-size: 13.5px; }
  .grid2 { gap: 10px; }
}

/* ---- print: only the Bangla slip ---- */
.slip { display: none; }
@media print {
  body > *:not(.slip) { display: none !important; }
  body { background: #fff; }
  .slip { display: block; font: 13pt/1.65 var(--bn); color: #000; padding: 10mm; }
  .slip h1 { font-size: 19pt; border-bottom: 2px solid #000; padding-bottom: 6px; margin-bottom: 10px; }
  .slip ol li { margin-bottom: 8px; }
  .slip .sign { margin-top: 28px; display: block; }
  .slip .fine { font: 9pt var(--sans); color: #444; margin-top: 16px; }
}
