:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --nav: #364d63;
  --nav-sub: #ffffff;
  --nav-mid: #f1f5f9;
  --nav-dark: #293b4d;
  --brand: #364d63;
  --brand-2: #eef4f8;
  --gold: #fde047;
  --sel: #eef4f8;
  --sum-bg: #f8fafc;
  --tbl-head: #f8fafc;
  --ok: #129a3f;
  --err: #dc2626;
  --warn: #b45309;
  --info: #2563eb;
  font-family: 'Roboto', 'Inter', 'Segoe UI', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(54, 77, 99, .22) transparent;
}
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: rgba(54, 77, 99, .24); border-radius: 99px; }

html, body, #root {
  margin: 0;
  height: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
body {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  background: var(--bg);
  color: var(--ink);
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.row { display: flex; align-items: center; gap: 8px; }
.col { display: flex; flex-direction: column; gap: 8px; }
.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.right { text-align: right; }
.center { text-align: center; }
.small { font-size: 12px; }
.muted { color: var(--muted); }
.red { color: var(--err); }
.ok { color: var(--ok); }
.hide { display: none !important; }
.bo-ico { flex: none; vertical-align: middle; }

/* ---------- Shell & Sidebar Drawer (Back Office) ---------- */
.bo-shell {
  display: flex;
  width: 100%;
  max-width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  position: relative;
  background: #f8fafc;
}

.bo-side {
  width: 236px;
  flex: none;
  color: #0f172a;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
  box-shadow: 2px 0 14px rgba(15, 23, 42, .04);
  transition: width .2s ease, transform .2s ease;
  z-index: 60;
}
.bo-side.closed { width: 0; overflow: hidden; box-shadow: none; border-right: 0; }

.bo-drawer-backdrop {
  display: none;
}

@media (max-width: 900px) {
  .bo-side {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 248px;
    z-index: 60;
    box-shadow: 6px 0 24px rgba(15, 23, 42, .35);
  }
  .bo-side.closed {
    transform: translateX(-100%);
    width: 248px;
    pointer-events: none;
  }
  .bo-drawer-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .45);
    z-index: 55;
  }
}

.bo-brand {
  margin: 10px 10px 0;
  padding: 12px 14px;
  background: linear-gradient(145deg, #364d63 0%, #445e78 58%, #293b4d 100%);
  color: #fff;
  border: 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.bo-nav {
  flex: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  scrollbar-width: none;
}
.bo-nav::-webkit-scrollbar { display: none; }
.bo-nav button {
  position: relative;
  width: 100%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #334155;
  text-align: left;
  padding: 10px 12px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 11px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.bo-nav button:hover { background: #f8fafc; border-color: #cbd5e1; color: #364d63; }
.bo-nav button .bo-ico { color: #364d63; }
.bo-nav button.on {
  background: #eef4f8;
  border-color: #364d63;
  color: #364d63;
  font-weight: 700;
}

.bo-side-foot {
  padding: 12px 14px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
}

/* ---------- Topbar ---------- */
.bo-main {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
}
.bo-topbar {
  position: sticky;
  top: 0;
  z-index: 45;
  background: #ffffff;
  color: #0f172a;
  border-bottom: 1px solid #e2e8f0;
  padding: 10px 24px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .04);
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 100%;
}
.bo-topbar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-width: 0;
}
.bo-hamburger {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #364d63;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.bo-hamburger:hover { background: #eef4f8; }

.bo-refresh-btn {
  width: 36px;
  height: 36px;
  min-height: 36px !important;
  padding: 0 !important;
  flex: none;
  border-radius: 8px;
}
@keyframes boSpin { to { transform: rotate(360deg); } }
.bo-spin { animation: boSpin .8s linear infinite; }

.bo-welcome-box { position: relative; display: flex; align-items: center; gap: 10px; z-index: 80; }
.bo-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}
.bo-profile-btn:hover { background: #eef4f8; border-color: #94a3b8; }
.bo-profile-lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.bo-avatar-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #364d63;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex: none;
}
.bo-profile-dd {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: auto;
  width: 256px;
  z-index: 90;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .14);
  overflow: hidden;
}

/* ---------- Main Content, Cards & Stat Boxes ---------- */
.bo-content {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 20px 24px 36px;
  background: #f8fafc;
}

.bo-tpl-head { margin-bottom: 12px; }
.bo-tpl-title { font-size: 22px; font-weight: 700; color: #1e293b; margin: 0 0 4px; }
.bo-tpl-sub { font-size: 13px; color: #475569; margin: 0; }

.bo-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  min-width: 0;
  max-width: 100%;
}
.bo-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.bo-empty { padding: 28px 12px; text-align: center; color: var(--muted); }

.bo-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 14px; }
.bo-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 14px; }
.bo-stat-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(195px, 1fr)); gap: 12px; }
.bo-stat-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.bo-stat-box.click { cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.bo-stat-box.click:hover { border-color: var(--nav); box-shadow: 0 4px 12px rgba(54, 77, 99, .1); }
.bo-stat-lbl { font-size: 12.5px; color: #475569; font-weight: 600; }
.bo-stat-val { font-size: 24px; font-weight: 700; color: #1e293b; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; word-break: break-word; }
.bo-stat-sub { font-size: 12.5px; color: #64748b; }

/* ---------- Filter Panel, Toolbars & Segmented Tabs ---------- */
.bo-filter-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bo-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px 16px;
  align-items: end;
}
.bo-filter-lbl {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 700;
  color: #1e293b;
  min-width: 0;
}
.bo-filter-lbl > * { min-width: 0; }

.bo-segs {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--sum-bg);
  flex-wrap: wrap;
}
.bo-segs button {
  border: 0;
  border-right: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background .12s, color .12s;
}
.bo-segs button:last-child { border-right: 0; }
.bo-segs button:hover:not(.on) { background: var(--sum-bg); }
.bo-segs button.on { background: var(--nav); color: #fff; font-weight: 600; }
.bo-segs button.on .bo-ico { color: var(--gold); }

.bo-tbar { border: 1px solid #cbd5e1; border-radius: 4px; background: #fff; position: relative; }
.bo-tbar-search { display: flex; align-items: stretch; border-bottom: 1px solid #cbd5e1; border-radius: 4px 4px 0 0; overflow: hidden; flex-wrap: wrap; }
.bo-tbar-search:last-child { border-bottom: 0; border-radius: 4px; }
.bo-tbar-count {
  padding: 0 14px;
  min-height: 40px;
  display: flex;
  align-items: center;
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
  border-right: 1px solid #cbd5e1;
  white-space: nowrap;
  background: #fff;
}
.bo-tbar-input {
  flex: 1 1 180px;
  min-width: 140px;
  min-height: 40px;
  border: 0;
  padding: 0 12px;
  font-size: 13.5px;
  outline: none;
  background: #fff;
  color: #1e293b;
}
.bo-tbar-select {
  flex: 0 1 195px;
  min-width: 140px;
  min-height: 40px;
  border: 0;
  border-left: 1px solid #cbd5e1;
  padding: 0 10px;
  font-size: 13px;
  outline: none;
  background: #fff;
  color: #1e293b;
}
.bo-tbar-rbtn {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-left: 1px solid #cbd5e1;
  background: #fff;
  color: #1e293b;
  font-weight: 500;
  font-size: 13px;
}
.bo-tbar-rbtn:hover { background: #f8fafc; }

.bo-tbar-actions { display: flex; background: var(--nav); border-radius: 0 0 4px 4px; flex-wrap: wrap; }
.bo-tbar-actions:first-child { border-radius: 4px; }
.bo-tbar-act {
  flex: 1 1 120px;
  min-height: 48px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, .28);
  background: transparent;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 10px;
  font-size: 12.5px;
  font-weight: 500;
}
.bo-tbar-act:last-child { border-right: 0; }
.bo-tbar-act:hover:not(:disabled) { background: rgba(255, 255, 255, .14); }
.bo-tbar-act.active { background: var(--nav-dark); font-weight: 700; }

/* ---------- Buttons, Inputs, Badges & Tables ---------- */
.bo-btn {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.bo-btn:hover:not(:disabled) { background: #f8fafc; }
.bo-btn.sm { min-height: 32px; padding: 0 10px; font-size: 12.5px; }
.bo-btn.primary { background: var(--nav); border-color: var(--nav-dark); color: #fff; }
.bo-btn.primary:hover:not(:disabled) { background: var(--nav-dark); }
.bo-btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.bo-btn.danger { background: var(--err); border-color: var(--err); color: #fff; }
.bo-btn-filter {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 4px;
  background: #2574a9;
  border: 1px solid #1d5d88;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
}
.bo-btn-reset {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 4px;
  background: #14b886;
  border: 1px solid #0e966c;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
}
.bo-btn:disabled { opacity: .55; cursor: not-allowed; }

.bo-input {
  min-height: 38px;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  width: 100%;
}
.bo-input:focus {
  outline: none;
  border-color: var(--nav);
  box-shadow: 0 0 0 3px rgba(54, 77, 99, .12);
}
.bo-field { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); font-weight: 600; }

.bo-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #e2e8f0;
  color: #334155;
  white-space: nowrap;
}
.bo-badge.ok { background: #dcfce7; color: #166534; }
.bo-badge.err { background: #fee2e2; color: #991b1b; }
.bo-badge.warn { background: #fef08a; color: #854d0e; }
.bo-badge.info { background: #dbeafe; color: #1e40af; }

.bo-tbl-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: auto;
  max-height: 66vh;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
table.bo-tbl { width: 100%; border-collapse: collapse; }
.bo-tbl th, .bo-tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: 13px; }
.bo-tbl thead th { position: sticky; top: 0; z-index: 5; white-space: nowrap; }
table.bo-tbl.bo-slate th {
  background: var(--nav);
  color: #ffffff;
  font-weight: 700;
  border-bottom: 0;
  padding: 10px 12px;
  font-size: 12.5px;
}
table.bo-tbl.bo-slate th.num,
table.bo-tbl.bo-slate td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.bo-tbl.bo-slate tbody tr:nth-child(even) { background: #fafcff; }
table.bo-tbl.bo-slate tbody tr.click { cursor: pointer; }
table.bo-tbl.bo-slate tbody tr.click:hover { background: var(--sel); }
table.bo-tbl.bo-slate tr.bo-grand td { background: #eef4f8; font-weight: 700; border-top: 2px solid #cbd5e1; }

.bo-pager { display: flex; align-items: center; justify-content: center; gap: 0; margin-top: 12px; flex-wrap: wrap; }
.bo-pager button {
  min-width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-right: 0;
  background: #fff;
  color: #334155;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
}
.bo-pager button:first-child { border-radius: 4px 0 0 4px; }
.bo-pager button:last-child { border-radius: 0 4px 4px 0; border-right: 1px solid var(--line); }
.bo-pager button.on { background: var(--nav); color: #fff; border-color: var(--nav); font-weight: 700; }
.bo-pager button:disabled { color: #94a3b8; cursor: default; }

/* ---------- Summary Rows & Progress Bars ---------- */
.bo-row-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.bo-row-line:last-child { border-bottom: 0; }
.bo-row-line.total { font-weight: 700; font-size: 14.5px; background: #f8fafc; padding: 10px 8px; border-radius: 6px; margin: 2px 0; }
.bo-bar-track { height: 7px; background: #e2e8f0; border-radius: 4px; margin-top: 5px; overflow: hidden; }
.bo-bar-fill { display: block; height: 100%; background: var(--nav); border-radius: 4px; }

/* ---------- Login Screen (Back Office) ---------- */
.bo-login-wrap {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #0f172a;
  background-color: #ffffff;
  background-image: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
.bo-login-card {
  position: relative;
  z-index: 1;
  width: min(410px, 100%);
  padding: 34px 28px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 14px 40px rgba(15, 23, 42, .07);
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
}
.bo-login-logo { height: 42px; width: auto; margin: 0 auto 2px; }
.bo-login-card .bo-field {
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  gap: 6px;
}
.bo-login-card .bo-input {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
}
.bo-login-card .bo-input::placeholder { color: #94a3b8; }
.bo-login-card .bo-input:focus {
  outline: none;
  background: #ffffff;
  border-color: #364d63;
  box-shadow: 0 0 0 3px rgba(54, 77, 99, .14);
}
.bo-pass-wrap { position: relative; display: flex; align-items: center; }
.bo-pass-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.bo-pass-toggle:hover { background: #e2e8f0; color: #0f172a; }
.bo-login-submit {
  width: 100%;
  min-height: 46px;
  border-radius: 10px;
  border: 0;
  background: linear-gradient(135deg, #364d63 0%, #293b4d 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .2px;
  box-shadow: 0 8px 20px rgba(54, 77, 99, .24);
  transition: transform .12s, filter .12s, box-shadow .12s;
}
.bo-login-submit:hover:not(:disabled) { filter: brightness(1.06); box-shadow: 0 10px 24px rgba(54, 77, 99, .32); }
.bo-login-submit:active:not(:disabled) { transform: scale(.985); }
.bo-login-submit:disabled { opacity: .6; cursor: not-allowed; }
.bo-err {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 12.5px;
  text-align: left;
}
.bo-ok-msg {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 12.5px;
  text-align: left;
}

/* ---------- Modal & Toast (Back Office) ---------- */
.bo-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .5);
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: 95;
}
.bo-modal {
  background: #fff;
  border-radius: 10px;
  width: min(680px, 100%);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 23, 42, .28);
}
.bo-modal-head {
  padding: 12px 16px;
  background: var(--nav);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.bo-modal-body {
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bo-toast {
  position: fixed;
  top: 16px;
  right: 16px;
  background: #1e293b;
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  z-index: 110;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
}

.bo-info-banner {
  background: #fef9c3;
  border: 1px solid #fde047;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
  color: #1e293b;
}

.bo-formula-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--nav);
  border-radius: 6px;
  padding: 10px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  color: #0f172a;
  overflow-x: auto;
}

.bo-lap-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}
.bo-lap-group {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bo-lap-group-title {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #475569;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
}
.bo-lap-item {
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #1e293b;
  font-size: 13px;
  font-weight: 600;
  transition: background .12s, border-color .12s, color .12s;
}
.bo-lap-item:hover { background: #eef4f8; border-color: #94a3b8; color: var(--nav); }
.bo-lap-item.on { background: var(--nav); border-color: var(--nav-dark); color: #fff; }
.bo-lap-item small { display: block; font-size: 11.5px; font-weight: 400; opacity: .82; margin-top: 2px; }

.bo-paper {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bo-paper-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--nav);
}

@media (max-width: 600px) {
  .bo-topbar { padding: 8px 12px; }
  .bo-topbar-head { gap: 8px; }
  .bo-profile-btn { max-width: 170px; padding: 0 9px; gap: 6px; font-size: 12px; }
  .bo-content { padding: 12px 10px 28px; }
  .bo-card { padding: 12px; }
  .bo-paper { padding: 14px 12px; }
  .bo-filter-grid { grid-template-columns: 1fr; }
  .bo-tbar-select { flex: 1 1 100%; border-left: 0; border-top: 1px solid #cbd5e1; }
  .bo-tbar-rbtn { border-top: 1px solid #cbd5e1; }
  .bo-stat-val { font-size: 20px; }
}

@media print {
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  html, body, #root, .bo-shell, .bo-main, .bo-content, .bo-tbl-wrap {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    background: #fff !important;
  }
  .bo-content { padding: 0 !important; }
  .bo-side, .bo-drawer-backdrop, .bo-topbar, .bo-tpl-head, .bo-filter-panel, .no-print, .bo-toast, .bo-overlay {
    display: none !important;
  }
  .bo-paper { border: 0 !important; padding: 0 !important; }
  .bo-tbl thead th { position: static !important; }
  .bo-tbl th, .bo-tbl td { padding: 6px 8px !important; font-size: 11px !important; }
  @page { size: A4 landscape; margin: 10mm; }
}
