/* সরকার ট্রেডিং কর্পোরেশন — অ্যাপের ডিজাইন */
@font-face { font-family: 'SolaimanLipi'; src: url('../fonts/solaimanlipi-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'SolaimanLipi'; src: url('../fonts/solaimanlipi-bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --ink: #1C2321; --muted: #56625B; --line: #E4E1D8; --line2: #D8D4C8; --bg: #F4F2EC; --card: #FFFFFF; --soft: #F7F6F1;
  --green-900: #0F3322; --green-700: #1E5631; --green-50: #EEF4EF; --green-25: #F6FAF7;
  --gold: #C9A227; --gold-text: #8A5A12; --gold-50: #FBF3E2; --gold-light: #E9C463;
  --red: #9A3412; --red-50: #FDECEA; --blue: #1F4E8C; --blue-50: #EAF0F8; --purple: #5B3A8A; --purple-50: #F1ECF7;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'SolaimanLipi', sans-serif; font-size: 16px; color: var(--ink); background: var(--bg); line-height: 1.5; }
input, select, textarea, button { font-family: inherit; font-size: inherit; color: inherit; }
a { color: var(--green-700); }
a:hover { color: var(--green-900); }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.25; }
.muted { color: var(--muted); }
.ic { flex: 0 0 auto; vertical-align: middle; }
.inline { display: inline; }
.hidden { display: none !important; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.strong { font-weight: 700; }
.green { color: var(--green-700); }
.red { color: var(--red); }
.gold { color: var(--gold-text); }

/* ---------- কাঠামো ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar { width: 264px; flex: 0 0 264px; background: var(--green-900); color: #fff; padding: 20px 14px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 18px; margin-bottom: 8px; border-bottom: 1px solid #24503A; color: #fff; text-decoration: none; }
.brand strong { display: block; font-size: 19px; }
.brand small { display: block; font-size: 13px; color: var(--gold-light); }
.nav-group { font-size: 12px; color: #9DB8A6; padding: 14px 14px 4px; }
.nav-link { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 9px; color: #fff; text-decoration: none; font-size: 16px; }
.nav-link .ic { opacity: .8; }
.nav-link:hover { background: #1A4630; color: #fff; }
.nav-link.active { background: var(--green-700); font-weight: 700; }
.nav-user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 14px 10px 0; border-top: 1px solid #24503A; }
.nav-user strong { display: block; font-size: 15px; }
.nav-user small { color: #B9CEC0; font-size: 13px; }
.avatar { width: 36px; height: 36px; border-radius: 999px; background: #24503A; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.avatar.sm { width: 30px; height: 30px; background: var(--green-700); font-size: 14px; }
.main { flex: 1; min-width: 0; padding: 20px 28px 40px; display: flex; flex-direction: column; gap: 18px; }
.nav-toggle, .nav-backdrop, .nav-open { display: none; }

/* ---------- উপরের হেডার ---------- */
.topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; position: sticky; top: 8px; z-index: 20; }
.global-search { flex: 1 1 300px; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; background: var(--soft); border-radius: 10px; color: var(--muted); }
.global-search input, .global-search input[type=search] { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--ink); height: auto; padding: 0; }
kbd { font-family: inherit; font-size: 12px; color: var(--muted); border: 1px solid var(--line2); border-radius: 6px; padding: 1px 6px; background: #fff; }
.period-form select { height: 44px; }
.icon-btn { position: relative; width: 44px; height: 44px; border: 1px solid var(--line2); border-radius: 10px; background: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; list-style: none; }
.icon-btn::-webkit-details-marker { display: none; }
.badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 999px; background: #B42318; color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.notif { position: relative; }
.notif summary { list-style: none; }
.dropdown { position: absolute; right: 0; top: 52px; min-width: 280px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(15,51,34,.14); padding: 10px; display: flex; flex-direction: column; gap: 4px; z-index: 30; }
.dropdown a { display: flex; gap: 8px; align-items: center; padding: 9px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.dropdown a:hover { background: var(--soft); }
.dropdown strong { padding: 6px 10px; }

/* ---------- শিরোনাম, কার্ড ---------- */
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.page-head h1 { font-size: 28px; }
.crumb { font-size: 14px; color: var(--muted); }
.sub { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.card > h2, .card-head h2 { font-size: 19px; }
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.card.dark { background: var(--green-900); color: #fff; border-color: var(--green-900); }
.card.dark .muted { color: #C3D6C9; }
.card.warn { background: #FFF6E0; border-color: #E8D29A; color: #5A3B06; }
.section-no { color: var(--gold-text); }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.split { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.split > .grow { flex: 999 1 620px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.split > .side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.between { justify-content: space-between; }

/* ---------- KPI ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.kpi-label { font-size: 15px; color: var(--muted); }
.kpi-value { font-size: 26px; font-weight: 700; margin-top: 4px; }
.kpi-sub { font-size: 14px; color: var(--muted); }
.kpi.dark { background: var(--green-900); border-color: var(--green-900); color: #fff; }
.kpi.dark .kpi-label, .kpi.dark .kpi-sub { color: #C3D6C9; }
.kpi.dark .kpi-value { color: var(--gold-light); }
.kpi.warn { background: #FFF6E0; border-color: #E8D29A; }

/* ---------- ফর্ম ---------- */
label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: #3E4A43; }
input[type=text], input[type=search], input[type=tel], input[type=password], input[type=date], input[type=datetime-local], input[type=number], input[type=email], select, textarea {
  height: 46px; border: 1px solid var(--line2); border-radius: 9px; padding: 0 12px; background: #fff; color: var(--ink); width: 100%; min-width: 0;
}
textarea { height: auto; min-height: 80px; padding: 10px 12px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--green-700); outline-offset: 0; border-color: var(--green-700); }
.num { text-align: right; }
select.strong, input.strong { border: 2px solid var(--green-700); font-weight: 700; background: var(--green-25); }
.check { flex-direction: row; align-items: center; gap: 10px; min-height: 36px; }
.check input { width: 20px; height: 20px; accent-color: var(--green-700); }
.hint { font-size: 13px; color: var(--muted); }
.loc-summary { margin: 10px 0 0; font-size: 15px; }
fieldset { border: 0; padding: 0; margin: 0; }

/* ---------- বাটন ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line2); background: #fff; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--soft); color: var(--ink); }
.btn-primary { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.btn-primary:hover { background: var(--green-900); color: #fff; }
.btn-outline { border: 2px solid var(--green-700); color: var(--green-700); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--green-900); }
.btn-lg { height: 54px; font-size: 17px; }
.btn-sm { height: 36px; padding: 0 12px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-danger-ghost { border: 0; background: transparent; color: var(--red); }
.btn-danger-ghost:hover { background: var(--red-50); color: var(--red); }

/* ---------- চিপ, পিল ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line2); background: #fff; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 700; cursor: pointer; }
.chip.on { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.pill-green { background: var(--green-50); color: var(--green-700); }
.pill-amber { background: var(--gold-50); color: #7A4806; }
.pill-red { background: var(--red-50); color: var(--red); }
.pill-blue { background: var(--blue-50); color: var(--blue); }
.pill-purple { background: var(--purple-50); color: var(--purple); }
.pill-teal { background: #E6F4F1; color: #0F5E52; }
.pill-gray { background: #F3F1EA; color: #3E4A43; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 999px; margin-right: 6px; }

/* ---------- টেবিল ---------- */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 15px; }
table.t th { text-align: left; color: var(--muted); font-weight: 700; padding: 10px 8px; border-bottom: 1px solid var(--line); background: var(--soft); white-space: nowrap; }
table.t td { padding: 11px 8px; border-bottom: 1px solid #F0EDE5; vertical-align: top; }
table.t tr:hover td { background: #FCFBF8; }
table.t tfoot td { font-weight: 700; background: var(--soft); border-bottom: 0; }
table.t .sub { font-size: 13px; color: var(--muted); margin: 0; }
table.t td.actions-cell { white-space: nowrap; text-align: right; }
table.items input, table.items select { height: 44px; }
table.items td { padding: 10px 6px; }
table.items .w-sm { width: 74px; }
table.items .w-md { width: 100px; }
.mk-cell { background: var(--green-25); }
.mk-cell input { border: 2px solid var(--green-700); font-weight: 700; }
.pager { display: flex; align-items: center; gap: 12px; justify-content: flex-end; padding-top: 12px; font-size: 14px; color: var(--muted); }
.empty { padding: 36px; text-align: center; color: var(--muted); }

/* ---------- ফিল্টার বার ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.filters label { font-size: 13px; }
.filters input, .filters select { height: 42px; }
.filters .grow { flex: 1 1 220px; }

/* ---------- বিশেষ ---------- */
.flash { padding: 12px 16px; border-radius: 12px; font-size: 15px; }
.flash-ok { background: var(--green-50); border: 1px solid #CFE0D4; color: var(--green-900); }
.flash-err { background: var(--red-50); border: 1px solid #F3C7BE; color: var(--red); }
.flash-warn { background: #FFF6E0; border: 1px solid #E8D29A; color: #5A3B06; }
.bar { display: flex; height: 26px; border-radius: 8px; overflow: hidden; background: #E4E1D8; }
.bar > span { display: block; height: 100%; }
.legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 14px; font-size: 14px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.sum-row.total { border-top: 1px solid #2B5A3C; padding-top: 12px; margin-top: 4px; align-items: baseline; }
.big { font-size: 26px; font-weight: 700; }
.gold-big { font-size: 26px; font-weight: 700; color: var(--gold-light); }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.seg label { flex-direction: row; justify-content: center; align-items: center; height: 44px; border: 2px solid var(--line2); border-radius: 9px; font-weight: 700; color: var(--ink); cursor: pointer; position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg label:has(input:checked) { border-color: var(--green-700); background: var(--green-50); color: var(--green-700); }
.switch { display: flex; flex-direction: row; align-items: center; gap: 14px; border: 2px solid #E8D29A; background: #FFFBF1; border-radius: 12px; padding: 14px 16px; cursor: pointer; color: var(--ink); }
.switch:has(input:checked) { border-color: var(--green-700); background: var(--green-50); }
.switch input { position: absolute; opacity: 0; }
.switch .track { width: 50px; height: 28px; border-radius: 999px; background: #B8B2A3; position: relative; flex: 0 0 auto; transition: background .15s; }
.switch .track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 999px; background: #fff; transition: left .15s; }
.switch:has(input:checked) .track { background: var(--green-700); }
.switch:has(input:checked) .track::after { left: 25px; }
.switch:focus-within { outline: 2px solid var(--green-700); outline-offset: 2px; }
.agent-list { display: flex; flex-direction: column; gap: 8px; }
.agent-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; border: 2px solid #EFECE4; background: #fff; text-decoration: none; color: var(--ink); }
.agent-item.on { border-color: var(--green-700); background: var(--green-25); }
.agent-item .grow { flex: 1; min-width: 0; }
.agent-item small { display: block; color: var(--muted); font-size: 13px; }
.qr-box { display: inline-block; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px; }
.qr-box svg { display: block; }

/* ---------- লগইন ---------- */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; background: var(--green-900); }
.login-card { width: 100%; max-width: 420px; background: #fff; border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.login-card .brand-lg { text-align: center; }
.login-card .brand-lg strong { display: block; font-size: 28px; color: var(--green-900); }
.login-card .brand-lg small { color: var(--gold-text); font-weight: 700; }

/* ---------- মোবাইল ---------- */
@media (max-width: 900px) {
  .sidebar { position: fixed; left: 0; top: 0; z-index: 50; transform: translateX(-100%); transition: transform .2s; }
  .nav-toggle:checked ~ .app .sidebar { transform: none; }
  .nav-toggle:checked ~ .app .nav-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 40; }
  .nav-open { display: inline-flex; }
  .main { padding: 12px 16px 32px; }
  .topbar { position: static; }
  .page-head h1 { font-size: 24px; }
  kbd { display: none; }
}


/* ---------- প্রিন্ট সেন্টার ---------- */
.pc-list { display: flex; flex-direction: column; }
.pc-head, .pc-row { display: grid; grid-template-columns: 34px minmax(110px, .9fr) minmax(120px, 1fr) minmax(140px, 1.5fr) minmax(100px, .8fr) minmax(280px, 2fr); gap: 12px; align-items: center; padding: 12px 10px; }
.pc-head { background: var(--soft); border-radius: 10px; color: var(--muted); font-weight: 700; font-size: 14px; padding: 10px; }
.pc-row { border-bottom: 1px solid #F0EDE5; }
.pc-row:last-child { border-bottom: 0; }
.pc-row:hover { background: #FCFBF8; }
.pc-row.sel { background: var(--green-25); }
.pc-row input[type=checkbox], .pc-head input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--green-700); }
.pc-no strong { display: block; font-size: 16px; }
.pc-no small, .pc-kind small, .pc-amt small { display: block; color: var(--muted); font-size: 13px; }
.pc-who { min-width: 0; overflow-wrap: anywhere; }
.pc-amt { text-align: right; font-weight: 700; white-space: nowrap; }
.pc-amt small { font-weight: 400; }
.pc-pick { display: flex; gap: 8px; min-width: 0; }
.pc-pick select { height: 42px; flex: 1; min-width: 0; font-size: 14px; }
.pc-pick .btn { height: 42px; flex: 0 0 auto; }
.pc-bar { position: sticky; bottom: 12px; z-index: 15; display: none; align-items: center; gap: 12px; background: var(--green-900); color: #fff; border-radius: 14px; padding: 10px 12px 10px 18px; box-shadow: 0 10px 30px rgba(15,51,34,.3); }
.pc-bar.show { display: flex; }
.pc-bar .grow { flex: 1; font-weight: 700; }
.pc-bar select { height: 42px; width: auto; }
.chips-scroll { width: 100%; }
.pc-setup { display: grid; grid-template-columns: auto repeat(3, minmax(150px, 1fr)) auto; gap: 10px 14px; align-items: end; background: var(--green-25); border: 1px solid #CFE0D4; border-radius: 12px; padding: 12px 14px; margin: 0 0 14px; }
.pc-setup label { font-size: 13px; font-weight: 700; color: var(--green-900); }
.pc-setup select { height: 42px; }
.pc-setup .check { font-weight: 400; min-height: 42px; }
.pc-setup-title { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--green-700); height: 42px; }
.pc-setup-hint { grid-column: 1 / -1; margin: 0; }
@media (max-width: 1100px) { .pc-setup { grid-template-columns: 1fr 1fr 1fr; } .pc-setup-title { grid-column: 1 / -1; height: auto; } }
@media (max-width: 760px) { .pc-setup { grid-template-columns: 1fr 1fr; } .pc-setup label:nth-of-type(3), .pc-setup .check { grid-column: 1 / -1; } }

/* ---------- মোবাইল টেবিল = কার্ড ---------- */
@media (max-width: 760px) {
  .table-wrap { overflow: visible; }
  table.t.cardify { min-width: 0 !important; border-collapse: separate; }
  table.t.cardify thead { display: none; }
  table.t.cardify, table.t.cardify tbody, table.t.cardify tfoot, table.t.cardify tr, table.t.cardify td { display: block; width: 100% !important; }
  table.t.cardify tr { border: 1px solid var(--line); border-radius: 12px; padding: 6px 12px; margin-bottom: 10px; background: #fff; }
  table.t.cardify tfoot tr { background: var(--soft); }
  table.t.cardify tr:hover td { background: transparent; }
  table.t.cardify td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px dashed #ECE8DE; text-align: right; white-space: normal; background: transparent !important; }
  table.t.cardify td:last-child { border-bottom: 0; }
  table.t.cardify td::before { content: attr(data-label); flex: 0 0 38%; text-align: left; color: var(--muted); font-size: 13px; font-weight: 700; }
  table.t.cardify td[data-label=""]::before { display: none; }
  table.t.cardify td[data-label=""] { justify-content: flex-end; }
  table.t.cardify td.c-empty { display: none; }
  table.t.cardify td.actions-cell { justify-content: flex-end; flex-wrap: wrap; }
  table.t.cardify td > * { min-width: 0; }
  table.t.cardify td .sub { text-align: right; }
  table.t.items td { flex-direction: column; align-items: stretch; text-align: left; }
  table.t.items td::before { flex: none; }
  table.t.items td.right { text-align: right; }
  table.t.items input, table.t.items select { width: 100% !important; }

  .topbar { flex-wrap: nowrap; gap: 8px; padding: 8px; }
  .global-search { flex: 1 1 0; min-width: 0; height: 42px; padding: 0 10px; }
  .global-search input::placeholder { font-size: 14px; }
  .period-form { display: none; }
  .tb-new .lbl { display: none; }
  .tb-new { width: 42px; padding: 0; }
  .icon-btn { width: 42px; height: 42px; flex: 0 0 auto; }
  .dropdown { position: fixed; left: 12px; right: 12px; top: 64px; min-width: 0; }
  .main { padding: 10px 12px 28px; gap: 14px; }
  .card { padding: 16px; }
  .page-head h1 { font-size: 22px; }
  .page-head .actions { width: 100%; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 12px; }
  .kpi-label { font-size: 13px; }
  .kpi-value { font-size: 20px; overflow-wrap: anywhere; }
  .kpi-sub { font-size: 12px; }
  .filters { display: grid; grid-template-columns: 1fr 1fr; padding: 12px; }
  .filters > .chips, .filters > .grow, .filters > label.grow { grid-column: 1 / -1; }
  .filters > .btn { grid-column: 1 / -1; width: 100%; }
  .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; height: 38px; }
  .pager { justify-content: center; flex-wrap: wrap; }

  .pc-head { display: none; }
  .pc-row { grid-template-columns: 28px 1fr auto; grid-template-areas: "c no amt" "c kind kind" "c who who" "pick pick pick"; gap: 6px 10px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; padding: 12px; }
  .pc-row:last-child { border-bottom: 1px solid var(--line); }
  .pc-row > .pc-c { grid-area: c; align-self: start; }
  .pc-row > .pc-no { grid-area: no; }
  .pc-row > .pc-kind { grid-area: kind; display: flex; gap: 8px; align-items: center; }
  .pc-row > .pc-kind small { display: inline; }
  .pc-row > .pc-who { grid-area: who; font-size: 15px; }
  .pc-row > .pc-amt { grid-area: amt; align-self: start; }
  .pc-row > .pc-pick { grid-area: pick; margin-top: 6px; }
  .pc-bar { bottom: 8px; flex-wrap: wrap; padding: 10px 12px; }
  .pc-bar .grow { flex-basis: 100%; }
  .pc-bar select { flex: 1; }
}
@media (max-width: 380px) {
  .kpis { grid-template-columns: 1fr; }
}

/* ---------- রিপোর্ট প্রিন্ট ---------- */
@media print {
  .pc-bar, .sidebar, .topbar, .filters, .actions, .nav-open, .btn { display: none !important; }
  body { background: #fff; }
  .main { padding: 0; }
  .card, .kpi { break-inside: avoid; border-color: #ccc; }
}
