/* ================================================================
 *  Ouvidoria Municipal — Design System (CSS nativo, sem frameworks)
 *  Direção: ferramenta cívica, utilitária e precisa. Cor única de
 *  acento (petróleo), tipografia com contraste, dados em monoespaçada.
 * ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@500;600&display=swap');

/* ---- Tokens: tema claro ---------------------------------------- */
:root {
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Code", monospace;

  --bg: #eef1f4;
  --surface: #ffffff;
  --surface-2: #f7f9fb;
  --sidebar: #0f1d27;
  --sidebar-2: #16242f;
  --border: #e1e6ec;
  --border-strong: #cdd5de;

  --text: #18222c;
  --text-muted: #586470;
  --text-faint: #8b96a3;
  --on-dark: #e9eef2;
  --on-dark-muted: #8ba0ad;

  --accent: #0d5c74;
  --accent-hover: #0a4a5e;
  --accent-soft: #e3f0f3;
  --accent-text: #0a4a5e;

  --ok: #2e7d52;     --ok-soft: #e4f1e9;
  --warn: #946200;   --warn-soft: #f6edd9;
  --info: #1f5d99;   --info-soft: #e3edf7;
  --danger: #ad3b3b; --danger-soft: #f6e4e4;

  --geral: #3b4b9a;  --geral-soft: #e6e8f5;
  --sus: #1f7a5a;    --sus-soft: #def0e8;

  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(16,24,40,.04), 0 1px 3px rgba(16,24,40,.06);
  --shadow-pop: 0 6px 20px rgba(16,24,40,.10);

  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-8: 32px;
  --sidebar-w: 248px;
}

/* ---- Tokens: tema escuro --------------------------------------- */
:root[data-theme="dark"] {
  --bg: #0c1116;
  --surface: #141b22;
  --surface-2: #19222b;
  --sidebar: #0a1015;
  --sidebar-2: #121b22;
  --border: #243039;
  --border-strong: #324250;

  --text: #e7edf2;
  --text-muted: #9aa7b3;
  --text-faint: #6b7884;
  --on-dark: #e7edf2;
  --on-dark-muted: #8294a1;

  --accent: #2a91ad;
  --accent-hover: #38a6c2;
  --accent-soft: #11313a;
  --accent-text: #6fc7da;

  --ok: #5bb985;     --ok-soft: #16302450;
  --warn: #d2a23e;   --warn-soft: #34290f50;
  --info: #5b9bd6;   --info-soft: #16273850;
  --danger: #d96b6b; --danger-soft: #34191950;

  --geral: #8a97d8;  --geral-soft: #1d233f50;
  --sus: #5fbf95;    --sus-soft: #14302450;

  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 1px 3px rgba(0,0,0,.4);
  --shadow-pop: 0 8px 24px rgba(0,0,0,.5);
}

/* ---- Base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; margin: 0; color: var(--text); }
.mono { font-family: var(--font-mono); }
.vazio { color: var(--text-faint); font-size: 13px; padding: var(--sp-4); text-align: center; }

/* ================================================================
 *  LAYOUT — Painel administrativo
 * ================================================================ */
.layout { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--sidebar);
  color: var(--on-dark);
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
}
.sidebar__brand {
  display: block;
  padding: var(--sp-5) var(--sp-5) var(--sp-4);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.sidebar__brand .brand-logo { display: block; width: 120px; height: 34px; object-fit: contain; object-position: left center; }
.sidebar__brand .brand-sys {
  display: block; margin-top: 8px;
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark-muted);
}

.sidebar__user {
  padding: var(--sp-3) var(--sp-5);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.sidebar__user .nome { font-weight: 600; font-size: 13px; color: #fff; }
.sidebar__user .nivel { font-size: 11px; color: var(--accent-text); }

.nav { flex: 1; overflow-y: auto; padding: var(--sp-3) 0; }
.nav__sec {
  font-size: 10px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--on-dark-muted); padding: var(--sp-4) var(--sp-5) var(--sp-2);
}
.nav__link {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: 9px var(--sp-5); font-size: 13.5px;
  color: var(--on-dark-muted);
  border-left: 2px solid transparent;
}
.nav__link:hover { background: rgba(255,255,255,.05); color: var(--on-dark); text-decoration: none; }
.nav__link.is-active { background: rgba(255,255,255,.07); color: #fff; border-left-color: var(--accent); }
.nav__link .ic { flex-shrink: 0; opacity: .9; }
.nav__badge {
  margin-left: auto; background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 20px; font-family: var(--font-mono);
}
.sidebar__foot { padding: var(--sp-3) var(--sp-5); border-top: 1px solid rgba(255,255,255,.07); }
.sidebar__foot a { color: #d98a8a; display: flex; align-items: center; gap: var(--sp-3); font-size: 13.5px; padding: 6px 0; }
.sidebar__foot a:hover { color: #f0a5a5; text-decoration: none; }

.main { flex: 1; margin-left: var(--sidebar-w); display: flex; flex-direction: column; min-width: 0; }
.topbar {
  display: flex; align-items: center; gap: var(--sp-3);
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: var(--sp-3) var(--sp-6); position: sticky; top: 0; z-index: 20;
}
.topbar h1 { font-size: 16px; }
.topbar__right { margin-left: auto; display: flex; align-items: center; gap: var(--sp-4); }
.topbar__clock { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }
.content { padding: var(--sp-6); max-width: 1180px; width: 100%; }

.btn-ico {
  background: none; border: 1px solid var(--border); color: var(--text-muted);
  width: 34px; height: 34px; border-radius: var(--radius-sm); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-ico:hover { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); }
.btn-menu { display: none; }

/* ================================================================
 *  COMPONENTES
 * ================================================================ */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.card__head {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5); border-bottom: 1px solid var(--border);
}
.card__head h3 { font-size: 13px; color: var(--text); display: flex; align-items: center; gap: var(--sp-2); }
.card__head .ic { color: var(--accent); }
.card__body { padding: var(--sp-5); }

/* Botões */
.btn {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-sans); font-size: 13.5px; font-weight: 600;
  padding: 9px 16px; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer; line-height: 1; white-space: nowrap;
  transition: background-color .12s ease, border-color .12s ease;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--danger { background: var(--surface); color: var(--danger); border-color: var(--border-strong); }
.btn--danger:hover { background: var(--danger-soft); border-color: var(--danger); }
.btn--sm { padding: 6px 11px; font-size: 12.5px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Campos de formulário */
.field { margin-bottom: var(--sp-4); }
.field > label {
  display: block; font-size: 11px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 5px;
}
.input, .select, .textarea {
  width: 100%; font-family: var(--font-sans); font-size: 14px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); padding: 9px 11px; line-height: 1.4;
}
.textarea { resize: vertical; min-height: 110px; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.input::placeholder, .textarea::placeholder { color: var(--text-faint); }
.help { font-size: 12px; color: var(--text-faint); margin-top: 4px; }
.check { display: flex; align-items: center; gap: var(--sp-2); font-size: 13.5px; color: var(--text); cursor: pointer; }
.check input { width: 15px; height: 15px; accent-color: var(--accent); }

fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-4); margin: 0; }
fieldset legend { font-size: 12px; font-weight: 600; color: var(--text); padding: 0 var(--sp-2); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.row-end { display: flex; align-items: center; justify-content: flex-end; gap: var(--sp-3); }

/* Tabelas */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl thead th {
  text-align: left; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-faint); font-weight: 600; padding: 11px var(--sp-4);
  background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.tbl tbody td { padding: 11px var(--sp-4); border-bottom: 1px solid var(--border); color: var(--text); }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl .proto { font-family: var(--font-mono); font-weight: 600; color: var(--accent-text); }
.tbl .num { font-family: var(--font-mono); }
.cell-muted { color: var(--text-muted); font-size: 12.5px; }
.cell-clip { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acoes { display: flex; gap: 4px; }
.acoes a, .acoes button {
  width: 30px; height: 30px; border-radius: var(--radius-sm); border: 1px solid transparent;
  background: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-muted);
}
.acoes a:hover { background: var(--accent-soft); color: var(--accent-text); text-decoration: none; }
.acoes .del:hover { background: var(--danger-soft); color: var(--danger); }

/* Badges e tags */
.badge, .tag {
  display: inline-block; font-size: 11.5px; font-weight: 600; line-height: 1;
  padding: 4px 9px; border-radius: 20px; white-space: nowrap;
}
.badge--aberto { background: var(--info-soft); color: var(--info); }
.badge--andamento { background: var(--warn-soft); color: var(--warn); }
.badge--respondido { background: var(--accent-soft); color: var(--accent-text); }
.badge--encerrado { background: var(--ok-soft); color: var(--ok); }
.badge--reaberto { background: var(--info-soft); color: var(--info); }
.badge--semresp { background: var(--danger-soft); color: var(--danger); }
.badge--neutro { background: var(--surface-2); color: var(--text-muted); }
.badge--admin { background: var(--geral-soft); color: var(--geral); }
.badge--ativo { background: var(--ok-soft); color: var(--ok); }
.badge--inativo { background: var(--danger-soft); color: var(--danger); }
.tag--geral { background: var(--geral-soft); color: var(--geral); }
.tag--sus { background: var(--sus-soft); color: var(--sus); }

/* Alertas */
.alert {
  display: flex; align-items: flex-start; gap: var(--sp-2);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--sp-3) var(--sp-4); font-size: 13.5px; margin-bottom: var(--sp-5);
}
.alert .ic { flex-shrink: 0; margin-top: 1px; }
.alert--ok { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 30%, transparent); color: var(--ok); }
.alert--erro { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 30%, transparent); color: var(--danger); }
.alert--info { background: var(--info-soft); border-color: color-mix(in srgb, var(--info) 28%, transparent); color: var(--info); }
.alert ul { margin: 0; padding-left: 18px; }
.alert .alert__close { margin-left: auto; background: none; border: none; color: inherit; cursor: pointer; opacity: .6; }
.alert .alert__close:hover { opacity: 1; }

/* Cartões de estatística */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); margin-bottom: var(--sp-5); }
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--sp-4); box-shadow: var(--shadow); display: flex; align-items: center; gap: var(--sp-3);
}
.stat__ic { width: 38px; height: 38px; border-radius: var(--radius-sm); display: grid; place-items: center; flex-shrink: 0; background: var(--accent-soft); color: var(--accent-text); }
.stat__val { font-family: var(--font-mono); font-size: 22px; font-weight: 600; line-height: 1; color: var(--text); }
.stat__lbl { font-size: 12px; color: var(--text-muted); margin-top: 3px; }

/* Gráficos */
.charts { display: grid; grid-template-columns: 2fr 1fr; gap: var(--sp-5); margin-bottom: var(--sp-5); }
.chart { width: 100%; height: auto; }
.chart-grid { stroke: var(--border); stroke-width: 1; }
.chart-label { font-family: var(--font-mono); font-size: 9px; fill: var(--text-faint); }
.bar--a { fill: var(--geral); }
.bar--b { fill: var(--sus); }
.chart-legend { display: flex; gap: var(--sp-4); justify-content: center; font-size: 12px; color: var(--text-muted); margin-top: var(--sp-2); }
.chart-legend--col { flex-direction: column; gap: 6px; align-items: flex-start; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot--a, .dot--0 { background: var(--geral); }
.dot--b, .dot--1 { background: var(--sus); }
.dot--2 { background: var(--warn); }
.dot--3 { background: var(--ok); }
.donut { width: 150px; height: 150px; margin: 0 auto; display: block; }
.donut-track { stroke: var(--border); }
.donut-seg--0 { stroke: var(--info); } .donut-seg--1 { stroke: var(--warn); }
.donut-seg--2 { stroke: var(--accent); } .donut-seg--3 { stroke: var(--ok); }
.donut-total { font-family: var(--font-mono); font-size: 26px; font-weight: 600; fill: var(--text); }

.hbars { display: flex; flex-direction: column; gap: 9px; }
.hbar-row { display: grid; grid-template-columns: 150px 1fr 34px; align-items: center; gap: var(--sp-3); font-size: 12.5px; }
.hbar-label { color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-track { background: var(--surface-2); border-radius: 20px; height: 9px; overflow: hidden; }
.hbar-fill { display: block; height: 100%; border-radius: 20px; }
.hbar-fill--geral { background: var(--geral); }
.hbar-fill--sus { background: var(--sus); }
.hbar-val { font-family: var(--font-mono); text-align: right; color: var(--text); }

/* Barra de página */
.pagebar { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-5); }
.pagebar .spacer { margin-left: auto; }
.toolbar { display: flex; gap: var(--sp-2); flex-wrap: wrap; align-items: center; }
.toolbar .input, .toolbar .select { width: auto; padding: 7px 10px; font-size: 13px; }
.search-wrap { position: relative; }
.search-wrap .ic { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); color: var(--text-faint); }
.search-wrap .input { padding-left: 32px; }

.pager { display: flex; gap: 4px; justify-content: center; padding: var(--sp-4); border-top: 1px solid var(--border); }
.pager a { padding: 6px 11px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-muted); font-size: 13px; font-family: var(--font-mono); }
.pager a:hover { background: var(--surface-2); text-decoration: none; }
.pager a.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Definições (ficha) */
.defs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4) var(--sp-6); }
.defs dt { font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 2px; }
.defs dd { margin: 0; color: var(--text); font-size: 14px; }
.defs .col2 { grid-column: 1 / -1; }
.protohead {
  background: var(--sidebar); color: #fff; border-radius: var(--radius);
  padding: var(--sp-6); display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); flex-wrap: wrap;
}
.protohead .lbl { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-muted); }
.protohead .proto { font-family: var(--font-mono); font-size: 34px; font-weight: 600; line-height: 1.1; }
.protohead .tags { display: flex; gap: var(--sp-2); margin-top: var(--sp-2); }
.protohead .when { text-align: right; font-size: 12.5px; color: var(--on-dark-muted); }
.protohead .when b { color: #fff; display: block; font-weight: 600; }
.bloco-texto {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: var(--sp-4); white-space: pre-line; line-height: 1.6; color: var(--text);
}
.bloco-resp { background: var(--ok-soft); border-left: 3px solid var(--ok); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: var(--sp-4); white-space: pre-line; line-height: 1.6; color: var(--text); }
.split { display: grid; grid-template-columns: 2fr 1fr; gap: var(--sp-5); }
.stack { display: flex; flex-direction: column; gap: var(--sp-5); }
.status-pick { display: flex; flex-direction: column; gap: 6px; }
.status-pick button {
  text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 8px 11px; cursor: pointer; font-size: 13px; color: var(--text); display: flex; align-items: center; gap: var(--sp-2);
}
.status-pick button:hover { background: var(--surface-2); }
.status-pick button.is-current { border-color: var(--accent); background: var(--accent-soft); }

/* Notas internas */
.notas { display: flex; flex-direction: column; gap: var(--sp-3); }
.nota {
  background: var(--surface-2); border: 1px solid var(--border);
  border-left: 3px solid var(--warn); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: var(--sp-3) var(--sp-4);
}
.nota__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-2); margin-bottom: 4px; }
.nota__autor { font-weight: 600; font-size: 13px; color: var(--text); }
.nota__quando { font-size: 11.5px; color: var(--text-faint); font-family: var(--font-mono); }
.nota__corpo { font-size: 13.5px; line-height: 1.55; color: var(--text); white-space: pre-line; }
.nota--mine { border-left-color: var(--accent); }

/* Bloco de encaminhamento */
.encbox { background: var(--accent-soft); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: var(--sp-3) var(--sp-4); font-size: 13px; color: var(--text); }
.encbox b { color: var(--accent-text); }

/* ================================================================
 *  TELAS PÚBLICAS (login e consulta)
 * ================================================================ */
.public {
  min-height: 100vh; display: grid; place-items: center; padding: var(--sp-5);
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(13,92,116,.10), transparent 60%),
    var(--bg);
}
.public__box { width: 100%; max-width: 408px; }
.public__card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-pop); overflow: hidden; }
.public__head { background: var(--sidebar); color: #fff; padding: var(--sp-6); text-align: center; }
.public__head .mark { width: 46px; height: 46px; border-radius: 11px; background: rgba(255,255,255,.10); display: grid; place-items: center; margin: 0 auto var(--sp-3); color: var(--accent-text); }
.public__head .public__brasao { width: 155px; height: 44px; max-width: 80%; margin: 0 auto var(--sp-4); display: block; object-fit: contain; }
.public__head h1 { color: #fff; font-size: 18px; }
.public__head p { margin: 4px 0 0; font-size: 13px; color: var(--on-dark-muted); }
.public__body { padding: var(--sp-6); }
.public__foot { text-align: center; font-size: 12px; color: var(--text-faint); margin-top: var(--sp-4); line-height: 1.9; }
.public__dev { display: inline-flex; align-items: center; gap: 7px; color: var(--text-muted); }
.public__dev-plate { display: inline-flex; align-items: center; }
.public__dev-plate img { width: 32px; height: 36px; display: block; object-fit: contain; }
.pwd-wrap { position: relative; }
.pwd-wrap .toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-faint); cursor: pointer; padding: 4px; }
.lgpd-note { font-size: 12px; color: var(--text-muted); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: var(--sp-3); line-height: 1.5; }
.lgpd-note b { color: var(--text); }

.consulta-wrap { width: 100%; max-width: 680px; }

/* Rodapé */
.foot { padding: var(--sp-3) var(--sp-6); border-top: 1px solid var(--border); color: var(--text-faint); font-size: 12px; display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); flex-wrap: wrap; margin-top: auto; }
.foot .mono { font-size: 11.5px; }
.foot-dev { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); }
.foot-dev__plate { display: inline-flex; align-items: center; }
.foot-dev__plate img { width: 32px; height: 36px; display: block; object-fit: contain; }

/* ================================================================
 *  RESPONSIVO
 * ================================================================ */
.overlay { display: none; }
@media (max-width: 920px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--shadow-pop); }
  .sidebar.is-open { transform: translateX(0); }
  .main { margin-left: 0; }
  .btn-menu { display: inline-flex; }
  .overlay.is-open { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 35; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .charts, .split, .grid-2, .defs { grid-template-columns: 1fr; }
  .hbar-row { grid-template-columns: 110px 1fr 30px; }
}
@media print {
  .sidebar, .topbar, .foot, .no-print { display: none !important; }
  .main { margin-left: 0; }
  body { background: #fff; }
  .card { box-shadow: none; border-color: #ccc; }
}
