/* ═══════════════ Card ═══════════════ */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-1);
}
.card-pad { padding: 18px; }
.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}
.card-head h2 { font-size: 14.5px; font-weight: 600; }
.card-head p { font-size: 12px; color: var(--tx-3); margin-top: -1px; }
.card-body { padding: 18px; }
.card-body.tight { padding: 8px; }
.card-foot { padding: 12px 18px; border-top: 1px solid var(--line); }

.card-link { transition: box-shadow var(--fast), transform var(--fast), border-color var(--fast); }
.card-link:hover { box-shadow: var(--sh-3); transform: translateY(-2px); border-color: var(--line-2); }

.section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700;
  margin-bottom: 12px;
}
.section-title i { color: var(--accent); font-size: 13px; }
.section-title .more { margin-inline-start: auto; font-size: 12px; font-weight: 600; color: var(--accent); }

/* ═══════════════ Grid ═══════════════ */
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); }
.grid-auto-sm { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }
.split { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; align-items: start; }

@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-auto { grid-template-columns: 1fr; }
  .grid-auto-sm { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════ Button ═══════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 0 16px;
  height: 40px;
  border-radius: var(--r);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: all var(--fast);
  border: 1px solid transparent;
}
.btn i { font-size: 13px; }
.btn:active { transform: scale(.975); }

.btn-primary {
  background: linear-gradient(135deg, var(--brand-soft), var(--brand));
  color: #fff;
  box-shadow: 0 2px 8px rgba(8,48,47,.2);
}
.btn-primary:hover { box-shadow: 0 5px 16px rgba(8,48,47,.28); }

.btn-accent {
  background: linear-gradient(135deg, var(--accent-mint), var(--accent));
  color: var(--brand-deep);
  box-shadow: 0 2px 10px rgba(0,200,123,.3);
}
.btn-accent:hover { box-shadow: 0 5px 18px rgba(0,200,123,.4); }

.btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--tx-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--tx-1); border-color: var(--tx-4); }

.btn-quiet { color: var(--tx-2); }
.btn-quiet:hover { background: var(--surface-2); color: var(--tx-1); }

.btn-danger { background: var(--danger-bg); color: var(--danger); }
.btn-danger:hover { background: #fcdad6; }

.btn-sm { height: 33px; padding: 0 12px; font-size: 12.5px; border-radius: var(--r-sm); }
.btn-xs { height: 28px; padding: 0 10px; font-size: 11.5px; border-radius: var(--r-sm); gap: 5px; }
.btn-xs i { font-size: 11px; }
.btn-block { width: 100%; }
.btn-icon { width: 40px; padding: 0; }
.btn-sm.btn-icon { width: 33px; }

/* ═══════════════ Badge / pill ═══════════════ */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.badge i { font-size: 9px; }
.badge-ok     { background: var(--ok-bg);     color: #067a4e; }
.badge-warn   { background: var(--warn-bg);   color: #a35a06; }
.badge-danger { background: var(--danger-bg); color: #b42318; }
.badge-info   { background: var(--info-bg);   color: #0c63b0; }
.badge-purple { background: var(--purple-bg); color: #4a45d6; }
.badge-teal   { background: var(--teal-bg);   color: #0b7a6f; }
.badge-neutral{ background: var(--surface-3); color: var(--tx-2); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px;
  border-radius: var(--r-full);
  background: var(--surface);
  border: 1px solid var(--line-2);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--tx-2);
  transition: all var(--fast);
}
.chip:hover { border-color: var(--accent); color: var(--brand); }
.chip.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
}
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.chip-row::-webkit-scrollbar { height: 0; }

/* ═══════════════ Avatar ═══════════════ */
.avatar {
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-en);
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--brand-soft), var(--brand));
  letter-spacing: -.02em;
}
.avatar.sq { border-radius: var(--r); }

/* ═══════════════ KPI tile ═══════════════ */
.kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 15px 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  position: relative;
  overflow: hidden;
  text-align: start;
  transition: box-shadow var(--fast), transform var(--fast);
}
.kpi.clickable:hover { box-shadow: var(--sh-3); transform: translateY(-2px); }
.kpi::after {
  content: '';
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  width: 3px; height: 100%;
  background: var(--kpi, var(--accent));
}
.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kpi-icon {
  width: 32px; height: 32px;
  border-radius: 9px;
  display: grid; place-items: center;
  background: var(--kpi-bg, var(--accent-faint));
  color: var(--kpi, var(--accent));
  font-size: 13px;
}
.kpi-label { font-size: 12px; color: var(--tx-3); font-weight: 500; }
.kpi-value { font-family: var(--font-en); font-size: 23px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.kpi-value small { font-size: 12px; font-weight: 500; color: var(--tx-3); margin-inline-start: 3px; }
.kpi-foot { font-size: 11.5px; color: var(--tx-3); display: flex; align-items: center; gap: 5px; }
.kpi-delta { font-family: var(--font-en); font-weight: 600; font-size: 11.5px; display: inline-flex; align-items: center; gap: 3px; }
.kpi-delta.up { color: var(--ok); }
.kpi-delta.down { color: var(--danger); }

/* ═══════════════ Progress ═══════════════ */
.bar {
  height: 7px;
  background: var(--surface-3);
  border-radius: var(--r-full);
  overflow: hidden;
}
.bar > i {
  display: block;
  height: 100%;
  border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--accent), var(--accent-mint));
  transition: width .7s var(--ease);
}
.bar.thin { height: 5px; }
.bar > i.warn   { background: linear-gradient(90deg, #e8920c, #f5b544); }
.bar > i.danger { background: linear-gradient(90deg, #d92d20, #f0685c); }

.ring { --p: 0; --ring-c: var(--accent); position: relative; display: grid; place-items: center; flex-shrink: 0; }
.ring::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  background: conic-gradient(var(--ring-c) calc(var(--p) * 1%), var(--surface-3) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
}
.ring b { font-family: var(--font-en); font-weight: 700; letter-spacing: -.03em; }

/* ═══════════════ List row ═══════════════ */
.list { display: flex; flex-direction: column; }
.list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r);
  transition: background var(--fast);
  text-align: start;
  width: 100%;
}
.list-row + .list-row { box-shadow: 0 -1px 0 var(--line); }
.list-row:hover { background: var(--surface-2); }
.list-row .lead { flex-shrink: 0; }
.list-row .body { flex: 1; min-width: 0; }
.list-row .body b { display: block; font-size: 13.5px; font-weight: 600; }
.list-row .body small { font-size: 12px; color: var(--tx-3); display: block; }
.list-row .trail { flex-shrink: 0; text-align: end; }

.dot-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid; place-items: center;
  font-size: 13px;
  flex-shrink: 0;
}

/* ═══════════════ Table ═══════════════ */
.table-wrap { overflow-x: auto; }
table.tbl { min-width: 560px; }
.tbl th {
  text-align: start;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--tx-3);
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  background: var(--surface-2);
}
.tbl th:first-child { border-start-start-radius: var(--r-sm); }
.tbl th:last-child { border-start-end-radius: var(--r-sm); }
.tbl td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  vertical-align: middle;
}
.tbl tbody tr { transition: background var(--fast); }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl tbody tr:last-child td { border-bottom: none; }

/* ═══════════════ Form ═══════════════ */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 12.5px; font-weight: 600; color: var(--tx-2); }
.field > label .req { color: var(--danger); }
.field .hint { font-size: 11.5px; color: var(--tx-4); }

.input, .select, .textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  padding: 0 13px;
  height: 42px;
  font-size: 13.5px;
  transition: border-color var(--fast), box-shadow var(--fast);
}
.textarea { height: auto; padding: 11px 13px; resize: vertical; line-height: 1.6; }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.input::placeholder, .textarea::placeholder { color: var(--tx-4); }
.select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b8384' stroke-width='3'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: left 13px center; padding-inline-end: 13px; padding-inline-start: 34px; }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

.search-box { position: relative; flex: 1; min-width: 0; }
.search-box i {
  position: absolute;
  inset-inline-start: 13px;
  top: 50%; transform: translateY(-50%);
  color: var(--tx-4);
  font-size: 13px;
  pointer-events: none;
}
.search-box .input { padding-inline-start: 36px; }

/* ═══════════════ Modal & drawer ═══════════════ */
.overlay {
  position: fixed; inset: 0;
  background: rgba(8,48,47,.44);
  backdrop-filter: blur(3px);
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  animation: fade .2s ease both;
}
.modal {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-4);
  width: 100%;
  max-width: 520px;
  max-height: calc(100dvh - 40px);
  display: flex;
  flex-direction: column;
  animation: rise .3s var(--ease) both;
  overflow: hidden;
}
.modal.lg { max-width: 780px; }
.modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.modal-head h2 { font-size: 15.5px; font-weight: 700; }
.modal-head p { font-size: 12px; color: var(--tx-3); margin-top: -1px; }
.modal-body { padding: 20px; overflow-y: auto; flex: 1; }
.modal-foot {
  display: flex; align-items: center; justify-content: flex-end; gap: 9px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  flex-shrink: 0;
}

/* Drawer — slides from the inline-start edge (right in RTL) */
.drawer {
  position: fixed;
  inset-block: 0;
  inset-inline-end: 0;
  width: min(560px, 100vw);
  background: var(--surface);
  box-shadow: var(--sh-4);
  z-index: 85;
  display: flex;
  flex-direction: column;
  animation: drawer-in .32s var(--ease) both;
}
@keyframes drawer-in { from { transform: translateX(-100%); } to { transform: none; } }
html[dir="ltr"] .drawer { animation-name: drawer-in-ltr; }
@keyframes drawer-in-ltr { from { transform: translateX(100%); } to { transform: none; } }

@media (max-width: 640px) {
  .modal { max-width: 100%; }
  .drawer { width: 100vw; }
  .modal-foot { flex-direction: column-reverse; }
  .modal-foot .btn { width: 100%; }
}

/* ═══════════════ Empty state ═══════════════ */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 24px;
  gap: 5px;
}
.empty .ic {
  width: 56px; height: 56px;
  border-radius: 17px;
  display: grid; place-items: center;
  background: var(--surface-2);
  color: var(--tx-4);
  font-size: 21px;
  margin-bottom: 8px;
}
.empty b { font-size: 14.5px; font-weight: 600; }
.empty p { font-size: 12.5px; color: var(--tx-3); max-width: 320px; }
.empty .btn { margin-top: 12px; }

/* ═══════════════ Toast ═══════════════ */
.toast-host {
  position: fixed;
  bottom: 20px;
  inset-inline-start: 20px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.toast {
  display: flex; align-items: center; gap: 11px;
  background: var(--brand);
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--r);
  box-shadow: var(--sh-4);
  min-width: 260px;
  max-width: 380px;
  animation: rise .3s var(--ease) both;
}
.toast i { font-size: 15px; flex-shrink: 0; }
.toast.ok i { color: var(--accent-mint); }
.toast.err i { color: #ff8a80; }
.toast b { font-size: 13.5px; font-weight: 600; display: block; }
.toast small { font-size: 12px; opacity: .8; }
@media (max-width: 640px) {
  .toast-host { inset-inline: 14px; bottom: calc(var(--tabbar-h) + 14px); }
  .toast { min-width: 0; max-width: none; }
}

/* ═══════════════ Timeline ═══════════════ */
.timeline { position: relative; padding-inline-start: 26px; }
.timeline::before {
  content: '';
  position: absolute;
  inset-inline-start: 9px;
  top: 6px; bottom: 6px;
  width: 2px;
  background: var(--line);
}
.tl-item { position: relative; padding-bottom: 18px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: '';
  position: absolute;
  inset-inline-start: -22px;
  top: 5px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--tl, var(--accent));
}

/* ═══════════════ Tabs ═══════════════ */
.tabs {
  display: flex;
  gap: 3px;
  background: var(--surface-2);
  padding: 4px;
  border-radius: var(--r);
  overflow-x: auto;
}
.tabs::-webkit-scrollbar { height: 0; }
.tabs button {
  flex: 1;
  min-width: max-content;
  padding: 8px 15px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--tx-3);
  white-space: nowrap;
  transition: all var(--fast);
}
.tabs button.active { background: var(--surface); color: var(--brand); box-shadow: var(--sh-1); }

/* ═══════════════ Page header ═══════════════ */
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.page-head .titles h1 { font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.page-head .titles p { font-size: 13px; color: var(--tx-3); margin-top: 2px; }
.page-head .acts { display: flex; gap: 8px; flex-wrap: wrap; }

/* ═══════════════ Hero (Command Center / My Work) ═══════════════ */
.hero {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  border-radius: var(--r-lg);
  padding: 24px 26px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset-inline-end: -70px;
  top: -90px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,255,145,.22), transparent 68%);
}
.hero::after {
  content: '';
  position: absolute;
  inset-inline-end: 8%;
  bottom: -120px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,255,145,.09), transparent 70%);
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.hero p { font-size: 13.5px; color: rgba(255,255,255,.68); margin-top: 3px; }
.hero-stats {
  display: flex;
  gap: 26px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.hero-stat small { display: block; font-size: 11.5px; color: rgba(255,255,255,.6); font-weight: 500; }
.hero-stat b {
  font-family: var(--font-en);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.03em;
}
.hero-stat b em { font-style: normal; font-size: 12px; font-weight: 500; color: rgba(255,255,255,.6); }

@media (max-width: 640px) {
  .hero { padding: 20px; }
  .hero h1 { font-size: 19px; }
  .hero-stats { gap: 18px; }
  .hero-stat b { font-size: 18px; }
}

/* ═══════════════ Demo-data notice ═══════════════ */
.demo-flag {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--warn-bg);
  border: 1px solid #f3d9a8;
  color: #8a4c05;
  border-radius: var(--r);
  padding: 9px 14px;
  font-size: 12.5px;
  font-weight: 500;
  margin-bottom: 16px;
}
.demo-flag i { font-size: 13px; flex-shrink: 0; }

/* ═══════════════ Trace chain (plan → execution) ═══════════════ */
.trace {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 4px;
}
.trace-step {
  flex: 1;
  min-width: 128px;
  padding: 13px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  position: relative;
  text-align: start;
  transition: all var(--fast);
}
.trace-step:first-child { border-start-start-radius: var(--r); border-end-start-radius: var(--r); }
.trace-step:last-child { border-start-end-radius: var(--r); border-end-end-radius: var(--r); }
.trace-step + .trace-step { border-inline-start: none; }
.trace-step:hover { background: var(--surface-2); }
.trace-step small { display: block; font-size: 11px; color: var(--tx-3); font-weight: 500; margin-bottom: 3px; }
.trace-step b { font-family: var(--font-en); font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.trace-step .sub { font-size: 11px; color: var(--tx-4); }
.trace-step.done { background: var(--accent-faint); border-color: #b6f2d7; }
.trace-step.done small { color: #0b7a55; }

/* ═══════════════ Performance scorecard ═══════════════ */
.scorecard .rank {
  width: 26px; height: 26px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: var(--surface-2);
  color: var(--tx-3);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.scorecard:first-of-type .rank { background: var(--warn-bg); color: #a35a06; }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 560px) {
  .metric-grid { grid-template-columns: 1fr; gap: 11px; }
}

/* ═══════════════ Command palette (global search) ═══════════════ */
.sr-overlay { align-items: flex-start; padding-top: 12vh; }
.sr-panel {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-4);
  width: 100%;
  max-width: 560px;
  overflow: hidden;
  animation: rise .26s var(--ease) both;
  display: flex;
  flex-direction: column;
  max-height: 70vh;
}
.sr-input {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.sr-input > i { color: var(--tx-4); font-size: 14px; }
.sr-input input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: none;
  font-size: 15px;
  font-weight: 500;
}
.sr-input input::placeholder { color: var(--tx-4); font-weight: 400; }
.sr-input kbd {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 600;
  color: var(--tx-4);
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: 5px;
  padding: 2px 6px;
}
.sr-results { overflow-y: auto; padding: 6px; }
.sr-group + .sr-group { margin-top: 4px; }
.sr-group-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--tx-4);
  text-transform: uppercase;
  padding: 9px 12px 5px;
}
.sr-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--r);
  text-align: start;
  transition: background var(--fast);
}
.sr-item:hover { background: var(--surface-2); }
.sr-item b { display: block; font-size: 13.5px; font-weight: 600; }
.sr-item small { display: block; font-size: 11.5px; color: var(--tx-3); }
.sr-ic {
  width: 32px; height: 32px;
  border-radius: 9px;
  display: grid; place-items: center;
  background: var(--surface-2);
  color: var(--tx-3);
  font-size: 12px;
  flex-shrink: 0;
}
.sr-item:hover .sr-ic { background: var(--accent-faint); color: var(--accent); }

/* Unread notification row */
.list-row.unread { background: var(--accent-faint); }
.list-row.unread:hover { background: #ddfbec; }
.unread-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .sr-overlay { padding: 0; align-items: stretch; }
  .sr-panel { max-width: 100%; max-height: 100dvh; border-radius: 0; }
}

/* ═══════════════ Print ═══════════════ */
@media print {
  .sidebar, .tabbar, .topbar, .no-print, .demo-flag,
  .page-head .acts, .btn { display: none !important; }
  .main { margin: 0 !important; }
  .page { padding: 0 !important; }
  body { background: #fff; }
  .card { box-shadow: none; border-color: #d9e3e0; break-inside: avoid; }
  .tbl th { background: #f2f7f5 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .bar > i, .badge { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
