/* =========================================================
   WHY · Updates — design system
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg:            #f4f5f8;
  --surface:       #ffffff;
  --surface-2:     #f8f9fb;
  --surface-3:     #eef0f5;
  --border:        #e4e7ee;
  --border-strong: #d3d8e3;
  --text:          #16192a;
  --text-2:        #4b5266;
  --muted:         #79809a;
  --accent:        #5b5bd6;
  --accent-soft:   #ececfb;
  --accent-text:   #4a4ac4;
  --ok:            #12855f;
  --ok-soft:       #e2f5ee;
  --warn:          #b25e09;
  --warn-soft:     #fdf0dd;
  --bad:           #cc2f3e;
  --bad-soft:      #fdeaec;
  --info:          #0b6bab;
  --info-soft:     #e4f1fb;
  --shadow-sm:     0 1px 2px rgba(16,20,40,.06), 0 1px 1px rgba(16,20,40,.04);
  --shadow-md:     0 4px 16px rgba(16,20,40,.08);
  --shadow-lg:     0 12px 40px rgba(16,20,40,.14);
  --radius:        12px;
  --radius-sm:     8px;
  --sidebar-w:     252px;
}

[data-theme="dark"] {
  --bg:            #0e1016;
  --surface:       #161a23;
  --surface-2:     #1b202b;
  --surface-3:     #222836;
  --border:        #262d3b;
  --border-strong: #333c4d;
  --text:          #e9ecf3;
  --text-2:        #b3bacb;
  --muted:         #838ca3;
  --accent:        #7b7bf0;
  --accent-soft:   #23234a;
  --accent-text:   #a9a9fb;
  --ok:            #3ddba0;
  --ok-soft:       #122e26;
  --warn:          #f0ad4e;
  --warn-soft:     #33260f;
  --bad:           #ff6b7a;
  --bad-soft:      #3a1a20;
  --info:          #58b6f5;
  --info-soft:     #12283a;
  --shadow-sm:     0 1px 2px rgba(0,0,0,.4);
  --shadow-md:     0 4px 18px rgba(0,0,0,.45);
  --shadow-lg:     0 16px 48px rgba(0,0,0,.55);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 14.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -.01em; }
p { margin: 0 0 .6em; }
p:last-child { margin-bottom: 0; }
hr { border: 0; border-top: 1px solid var(--border); margin: 18px 0; }

.ico { width: 18px; height: 18px; flex: none; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.right { text-align: right; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
.strong { font-weight: 600; }

/* ------------------------------------------------------------- shell --- */

.app { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex: none;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 40;
}
.sidebar__brand {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 16px 12px;
  font-weight: 700; font-size: 15px; letter-spacing: -.02em;
}
.brand { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.brand:hover { text-decoration: none; opacity: .85; }
.brand-img { height: 22px; width: auto; display: block; }
.brand-img--white { display: none; }
[data-theme="dark"] .brand-img--ink   { display: none; }
[data-theme="dark"] .brand-img--white { display: block; }
.brand-sub {
  font-size: 12px; font-weight: 600; letter-spacing: .01em;
  color: var(--muted); white-space: nowrap;
}
.brand-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar .sidebar__close { display: none; margin-left: auto; }
.sidebar__cta { margin: 0 12px 10px; }

.nav { padding: 6px 10px 16px; overflow-y: auto; flex: 1; }
.nav__group {
  font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); font-weight: 600; padding: 14px 10px 6px;
}
.nav__link {
  display: flex; align-items: center; gap: 10px;
  padding: 8.5px 10px; margin-bottom: 2px;
  border-radius: var(--radius-sm);
  color: var(--text-2); font-weight: 500; font-size: 14px;
}
.nav__link:hover { background: var(--surface-3); color: var(--text); text-decoration: none; }
.nav__link.is-active { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
.nav__link .ico { opacity: .85; }
.nav__link .pill { margin-left: auto; }

.sidebar__foot { border-top: 1px solid var(--border); padding: 10px 12px; }
.who { display: flex; align-items: center; gap: 9px; }
.who__txt { flex: 1; min-width: 0; line-height: 1.25; }
.who__txt strong { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who__txt a { font-size: 11.5px; color: var(--muted); }

.sidebar-backdrop { display: none; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 14px;
  padding: 12px 22px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar__title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar h1 { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__sub { font-size: 12.5px; color: var(--muted); margin: 1px 0 0; }
.backlink {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2);
}
.backlink:hover { background: var(--surface-3); }
.topbar__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.searchbox {
  margin-left: auto; position: relative; display: flex; align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 0 10px; height: 36px; width: 230px;
  color: var(--muted);
}
.searchbox:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.searchbox input {
  border: 0; background: transparent; outline: none; color: var(--text);
  padding: 0 6px; width: 100%; font: inherit; font-size: 13.5px;
}

.content { padding: 22px; flex: 1; width: 100%; max-width: 1440px; }
.foot {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 18px 22px; color: var(--muted); font-size: 12px;
  border-top: 1px solid var(--border);
}

/* ------------------------------------------------------------ blocks --- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card--pad { padding: 18px; }
a.card:hover { text-decoration: none; border-color: var(--border-strong); box-shadow: var(--shadow-md); }

.card__head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
}
.card__head h2, .card__head h3 { font-size: 14.5px; }
.card__head .spacer { margin-left: auto; }
.card__body { padding: 18px; }
.card__foot { padding: 12px 18px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); }

.grid { display: grid; gap: 16px; }
.grid--stats { grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row--tight { gap: 6px; }
.spread { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.mt { margin-top: 16px; }
.mb { margin-bottom: 16px; }

.stat { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.stat__ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.stat__ico .ico { width: 20px; height: 20px; }
.stat__ico--ok    { background: var(--ok-soft);    color: var(--ok); }
.stat__ico--warn  { background: var(--warn-soft);  color: var(--warn); }
.stat__ico--bad   { background: var(--bad-soft);   color: var(--bad); }
.stat__ico--info  { background: var(--info-soft);  color: var(--info); }
.stat__ico--muted { background: var(--surface-3);  color: var(--muted); }
.stat__value { font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.stat__label { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.stat__hint  { font-size: 11.5px; color: var(--muted); margin-top: 3px; }

/* ------------------------------------------------------------ badges --- */

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2.5px 8px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; white-space: nowrap;
  background: var(--surface-3); color: var(--text-2);
}
.badge--ok    { background: var(--ok-soft);    color: var(--ok); }
.badge--warn  { background: var(--warn-soft);  color: var(--warn); }
.badge--bad   { background: var(--bad-soft);   color: var(--bad); }
.badge--info  { background: var(--info-soft);  color: var(--info); }
.badge--accent{ background: var(--accent-soft);color: var(--accent-text); }
.badge--muted { background: var(--surface-3);  color: var(--muted); }

.pill {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  display: inline-grid; place-items: center; font-size: 11px; font-weight: 700;
  background: var(--surface-3); color: var(--text-2);
}
.pill--bad { background: var(--bad); color: #fff; }

.avatar {
  width: 30px; height: 30px; border-radius: 50%;
  display: inline-grid; place-items: center; flex: none;
  color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
}
.avatar--xs { width: 22px; height: 22px; font-size: 9.5px; }
.avatar--lg { width: 44px; height: 44px; font-size: 16px; }

.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.dot--ok { background: var(--ok); } .dot--warn { background: var(--warn); }
.dot--bad { background: var(--bad); } .dot--muted { background: var(--muted); }

/* ----------------------------------------------------------- buttons --- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 14px;
  border-radius: 9px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text);
  font: inherit; font-size: 13.5px; font-weight: 550; cursor: pointer;
  transition: background .12s, border-color .12s, transform .06s;
  white-space: nowrap;
}
.btn:hover { background: var(--surface-3); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 1px 3px rgba(91,91,214,.35); }
.btn--primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn--danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, transparent); background: var(--bad-soft); }
.btn--danger:hover { background: color-mix(in srgb, var(--bad) 18%, transparent); }
.btn--ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn--ghost:hover { background: var(--surface-3); }
.btn--sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.btn--block { width: 100%; }
.btn .ico { width: 16px; height: 16px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.icon-btn {
  width: 36px; height: 36px; flex: none;
  display: inline-grid; place-items: center;
  border-radius: 9px; border: 1px solid transparent;
  background: transparent; color: var(--text-2); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-3); color: var(--text); text-decoration: none; }

[data-theme-toggle] .ico-moon { display: none; }
[data-theme="dark"] [data-theme-toggle] .ico-sun { display: none; }
[data-theme="dark"] [data-theme-toggle] .ico-moon { display: block; }

/* ------------------------------------------------------------ tables --- */

.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th {
  text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); font-weight: 600; padding: 10px 14px;
  border-bottom: 1px solid var(--border); background: var(--surface-2);
  white-space: nowrap; position: sticky; top: 0;
}
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl .col-actions { text-align: right; white-space: nowrap; width: 1%; }
.tbl .col-actions .row { flex-wrap: nowrap; justify-content: flex-end; }
.tbl a.link-strong { color: var(--text); font-weight: 600; }
.tbl a.link-strong:hover { color: var(--accent-text); }

.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty__ico { width: 34px; height: 34px; opacity: .45; margin-bottom: 8px; }
.empty h3 { font-size: 15px; color: var(--text); margin-bottom: 4px; }
.empty p { font-size: 13px; margin-bottom: 14px; }

/* ------------------------------------------------------------- forms --- */

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px 16px; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field > label, .lbl {
  font-size: 12.5px; font-weight: 600; color: var(--text-2);
  display: flex; align-items: center; gap: 6px;
}
.field .hint { font-size: 11.5px; color: var(--muted); }
.req { color: var(--bad); }

input[type=text], input[type=url], input[type=email], input[type=password], input[type=number],
input[type=date], input[type=datetime-local], input[type=search], input[type=tel], select, textarea {
  width: 100%; font: inherit; font-size: 13.5px;
  color: var(--text); background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: 9px;
  padding: 8px 11px; min-height: 36px; outline: none;
  transition: border-color .12s, box-shadow .12s;
}
textarea { min-height: 84px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2379809a' stroke-width='2' stroke-linecap='round'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 9px center; background-size: 16px;
  padding-right: 30px;
}
[data-theme="dark"] input[type=date], [data-theme="dark"] input[type=datetime-local] { color-scheme: dark; }

.check { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; cursor: pointer; }
.check input[type=checkbox], .check input[type=radio] {
  width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--accent); flex: none; cursor: pointer;
}
.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px 16px; }

.switch-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.switch-card {
  border: 1px solid var(--border-strong); border-radius: 10px; padding: 10px 12px;
  display: flex; align-items: center; gap: 9px; cursor: pointer; background: var(--surface);
  font-size: 13.5px; font-weight: 550;
}
.switch-card:hover { border-color: var(--accent); }
.switch-card input { accent-color: var(--accent); }
.switch-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }

.form-actions {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  padding: 14px 18px; border-top: 1px solid var(--border);
  background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius);
  position: sticky; bottom: 0; z-index: 5;
}
.form-actions .spacer { margin-left: auto; }

fieldset.section { border: 0; padding: 0; margin: 0 0 22px; }
fieldset.section > legend {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); padding: 0 0 10px;
}

/* -------------------------------------------------------- items table --- */

.items { width: 100%; border-collapse: collapse; }
.items th {
  font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted);
  text-align: left; padding: 0 8px 6px; font-weight: 600;
}
.items td { padding: 3px 4px; }
.items input, .items select { min-height: 34px; padding: 6px 9px; font-size: 13px; }
.items .col-x { width: 36px; }
.item-row.is-removed { display: none; }

/* ------------------------------------------------------------ alerts --- */

.alert {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 14px; border-radius: 10px; margin-bottom: 16px;
  font-size: 13.5px; font-weight: 500;
  border: 1px solid transparent;
}
.alert--ok   { background: var(--ok-soft);   color: var(--ok);   border-color: color-mix(in srgb, var(--ok) 25%, transparent); }
.alert--err  { background: var(--bad-soft);  color: var(--bad);  border-color: color-mix(in srgb, var(--bad) 25%, transparent); }
.alert--warn { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.alert--info { background: var(--info-soft); color: var(--info); border-color: color-mix(in srgb, var(--info) 25%, transparent); }

/* ------------------------------------------------------------ filters -- */

.filters {
  display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap;
  padding: 14px 16px; margin-bottom: 16px;
}
.filters .field { flex: 1 1 150px; max-width: 220px; }
.filters .field--wide { flex: 2 1 220px; max-width: 320px; }

/* ------------------------------------------------------------- chart --- */

.chart { display: flex; align-items: flex-end; gap: 4px; width: 100%; }
.chart__col { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; min-width: 0; }
.chart__barwrap { flex: 1; display: flex; align-items: flex-end; padding: 0 3px; }
.chart__bar {
  width: 100%; border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 55%, transparent));
  transition: opacity .12s;
}
.chart__col:hover .chart__bar { opacity: .82; }
.chart__val { text-align: center; font-size: 11px; font-weight: 700; color: var(--text-2); padding-top: 5px; }
.chart__label { text-align: center; font-size: 10.5px; color: var(--muted); padding-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.meter { height: 7px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.meter__fill { height: 100%; border-radius: 999px; background: var(--accent); }
.meter__fill--ok { background: var(--ok); } .meter__fill--warn { background: var(--warn); }
.meter__fill--bad { background: var(--bad); }

/* ---------------------------------------------------------- timeline --- */

.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.tl-item { position: relative; padding: 0 0 18px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ''; position: absolute; left: -22px; top: 5px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--accent);
}
.tl-item--ok::before   { border-color: var(--ok); }
.tl-item--warn::before { border-color: var(--warn); }
.tl-item--bad::before  { border-color: var(--bad); }
.tl-date { font-size: 12px; color: var(--muted); }

/* ------------------------------------------------------------ pager ---- */

.pager { display: flex; gap: 4px; align-items: center; justify-content: center; padding: 14px; flex-wrap: wrap; }
.pager__item {
  min-width: 32px; height: 32px; padding: 0 8px;
  display: inline-grid; place-items: center; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-2); font-size: 13px; font-weight: 550;
}
.pager__item:hover { background: var(--surface-3); text-decoration: none; }
.pager__item.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.pager__item.is-disabled { opacity: .4; pointer-events: none; }
.pager__dots { color: var(--muted); padding: 0 2px; }

/* ------------------------------------------------------------- misc ---- */

.kv { display: grid; grid-template-columns: minmax(110px, auto) 1fr; gap: 9px 14px; font-size: 13.5px; }
.kv dt { color: var(--muted); font-size: 12.5px; }
.kv dd { margin: 0; word-break: break-word; }

.tag {
  display: inline-block; padding: 2px 8px; border-radius: 6px;
  background: var(--surface-3); color: var(--text-2); font-size: 11.5px; font-weight: 550;
}

.note-box {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 14px;
  font-size: 13.5px; white-space: pre-wrap; word-break: break-word;
}

.only-mobile { display: none; }

/* --------------------------------------------------------------- bare -- */

body.bare { display: grid; place-items: center; padding: 24px; background:
  radial-gradient(1200px 600px at 50% -10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent), var(--bg); }
.bare__wrap { width: 100%; max-width: 420px; }
.bare__brand {
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.bare__brand .brand-img { height: 30px; }
.bare .card { box-shadow: var(--shadow-lg); }

/* ------------------------------------------------------------ mobile --- */

@media (max-width: 960px) {
  .searchbox { width: 150px; }
}
@media (max-width: 820px) {
  .only-mobile { display: inline-grid; }
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0;
    transform: translateX(-102%); transition: transform .22s ease;
    box-shadow: var(--shadow-lg);
  }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .sidebar-backdrop {
    display: block; position: fixed; inset: 0; z-index: 35;
    background: rgba(6,8,16,.5);
  }
  .sidebar .sidebar__close { display: inline-grid; }
  .content { padding: 16px; }
  .topbar { padding: 10px 14px; gap: 8px; }
  .topbar h1 { font-size: 16px; }
  .searchbox { display: none; }
  .form-actions { position: static; }
}
@media (max-width: 520px) {
  .topbar__sub { display: none; }
  .btn-label-sm { display: none; }
}

/* ------------------------------------------------------------- print --- */

@media print {
  .sidebar, .topbar, .foot, .no-print, .form-actions { display: none !important; }
  body { background: #fff; font-size: 11.5pt; }
  .content { padding: 0; max-width: none; }
  .card { box-shadow: none; border-color: #ccc; break-inside: avoid; }
  a { color: #000; }
  .print-only { display: block !important; }
}
.print-only { display: none; }
