/* Hotel Anvelope – stiluri proprii, fără framework. Optimizat pentru tabletă în atelier. */
:root {
  --bg: #f3f5f7;
  --surface: #ffffff;
  --text: #1c2430;
  --muted: #647083;
  --border: #d9dee5;
  --primary: #1f5fbf;
  --primary-dark: #174a96;
  --primary-light: #e6eefb;
  --ok: #1e8e3e;
  --ok-bg: #e4f4e8;
  --warn: #b8860b;
  --warn-bg: #fdf3d8;
  --alert: #d9701a;
  --alert-bg: #fde8d6;
  --bad: #c62828;
  --bad-bg: #fbe3e3;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(20, 30, 50, .08), 0 1px 2px rgba(20, 30, 50, .06);
  --tap: 48px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.45;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .95em; background: var(--primary-light); padding: 1px 6px; border-radius: 6px; }
h1, h2, h3 { margin: 0 0 .5rem; line-height: 1.2; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.15rem; }
small { font-size: .85em; }
.muted { color: var(--muted); }
.inline { display: inline; }

/* ---- antet ---- */
.topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .6rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1.1rem; color: var(--text); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-icon { width: 28px; height: 28px; color: var(--primary); flex: none; }
.global-search { flex: 1; display: flex; gap: .5rem; position: relative; max-width: 720px; margin: 0 auto; }
.global-search input {
  flex: 1;
  min-height: var(--tap);
  font-size: 1.05rem;
  padding: 0 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}
.global-search input:focus { outline: none; border-color: var(--primary); background: #fff; }
.search-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(20, 30, 50, .15); max-height: 60vh; overflow: auto; z-index: 30;
}
.userbox { display: flex; align-items: center; gap: .6rem; white-space: nowrap; }
.user-name { font-weight: 600; }
.user-role { color: var(--muted); font-size: .85rem; }

/* ---- meniu ---- */
.mainnav {
  display: flex;
  gap: .25rem;
  padding: .35rem 1rem 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.mainnav a, .mainnav .disabled {
  display: inline-block;
  padding: .7rem 1rem;
  min-height: var(--tap);
  border-bottom: 3px solid transparent;
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}
.mainnav a:hover { text-decoration: none; background: var(--bg); }
.mainnav a.active { border-bottom-color: var(--primary); color: var(--primary); }
.mainnav .disabled { color: #a9b2bf; cursor: not-allowed; }

/* ---- conținut ---- */
.container { flex: 1; width: 100%; max-width: 1320px; margin: 0 auto; padding: 1.25rem 1rem 2rem; }
.footer { text-align: center; color: var(--muted); font-size: .85rem; padding: 1rem; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.quick-actions { display: flex; flex-wrap: wrap; gap: .5rem; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem 1.25rem; }
.card-title { display: flex; align-items: baseline; gap: .5rem; margin-bottom: .75rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 1rem; }

/* ---- statistici ---- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.stat { background: var(--surface); border: 1px solid var(--border); border-left: 5px solid var(--primary); border-radius: var(--radius); padding: .8rem 1rem; box-shadow: var(--shadow); }
.stat-value { font-size: 2rem; font-weight: 700; line-height: 1.1; }
.stat-label { color: var(--muted); font-size: .9rem; }
.stat-warn { border-left-color: var(--warn); }
.stat-alert { border-left-color: var(--alert); }
.stat-bad { border-left-color: var(--bad); }
.meter { height: 8px; background: var(--bg); border-radius: 4px; margin-top: .5rem; overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--primary); border-radius: 4px; }

/* ---- butoane ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 44px; padding: 0 1.1rem;
  border: 2px solid transparent; border-radius: var(--radius);
  font: inherit; font-weight: 600; font-size: 1rem; cursor: pointer; text-decoration: none;
  transition: background .12s, border-color .12s;
}
.btn:hover { text-decoration: none; }
.btn-lg { min-height: var(--tap); padding: 0 1.4rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--surface); color: var(--primary); border-color: var(--primary); }
.btn-secondary:hover { background: var(--primary-light); }
.btn-ghost { background: transparent; color: var(--muted); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg); color: var(--text); }
.btn.is-disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }

/* ---- formulare ---- */
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .3rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: var(--tap); font: inherit; font-size: 1.05rem;
  padding: .5rem .9rem; border: 2px solid var(--border); border-radius: var(--radius); background: #fff; color: var(--text);
}
.field textarea { min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.field-error { color: var(--bad); font-size: .9rem; margin-top: .3rem; }
.alert { padding: .75rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; font-weight: 500; }
.alert-error { background: var(--bad-bg); color: var(--bad); border: 1px solid #f1b4b4; }

/* ---- mesaje flash ---- */
.flash { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; border: 1px solid transparent; }
.flash-success { background: var(--ok-bg); color: var(--ok); border-color: #b7dfc2; }
.flash-info { background: var(--primary-light); color: var(--primary-dark); border-color: #c3d4f3; }
.flash-warning { background: var(--warn-bg); color: #7a5a00; border-color: #efd99a; }
.flash-error { background: var(--bad-bg); color: var(--bad); border-color: #f1b4b4; }
.flash-close { background: none; border: 0; font-size: 1.4rem; line-height: 1; cursor: pointer; color: inherit; min-width: 36px; min-height: 36px; }

/* ---- tabele ---- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { padding: .55rem .6rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; white-space: nowrap; }
.table th { color: var(--muted); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; }
.table tbody tr:hover { background: var(--bg); }

/* ---- badge-uri de stare (consecvente în toată aplicația) ---- */
.badge { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .82rem; font-weight: 600; white-space: nowrap; }
.cond-ok { background: var(--ok-bg); color: var(--ok); }
.cond-warn { background: var(--warn-bg); color: #7a5a00; }
.cond-alert { background: var(--alert-bg); color: var(--alert); }
.cond-bad { background: var(--bad-bg); color: var(--bad); }
.cond-none { background: var(--bg); color: var(--muted); }
.badge-bad { background: var(--bad-bg); color: var(--bad); }
.badge-channel { background: var(--primary-light); color: var(--primary-dark); }

/* ---- cronologie contacte ---- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { padding: .6rem 0; border-bottom: 1px solid var(--border); }
.timeline li:last-child { border-bottom: 0; }
.timeline-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .95rem; }
.timeline-subject { font-weight: 600; margin-top: .2rem; }
.timeline-body { color: var(--muted); font-size: .92rem; margin-top: .15rem; }

/* ---- autentificare ---- */
.auth-body { background: linear-gradient(160deg, #e9eef6 0%, var(--bg) 60%); }
.auth-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem 1rem; }
.auth-brand { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem; }
.auth-brand .brand-icon { width: 44px; height: 44px; }
.auth-company { font-size: 1.4rem; font-weight: 700; }
.auth-sub { color: var(--muted); }
.auth-card { width: 100%; max-width: 420px; padding: 1.5rem; }

/* ---- erori ---- */
.error-card { max-width: 520px; margin: 2rem auto; text-align: center; }
.error-code { font-size: 4rem; font-weight: 800; color: var(--border); line-height: 1; }
.error-message { font-size: 1.1rem; }

/* ---- etapa 2: liste, formulare, hartă, căutare ---- */
.req { color: var(--bad); }
.empty { color: var(--muted); margin: .5rem 0; }
.sub-title { margin-top: 1.25rem; font-size: 1rem; }
.plate { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .04em; }
.plate-input { text-transform: uppercase; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .06em; }
.big-link { font-size: 1.15rem; font-weight: 600; }
.btn-sm { min-height: 36px; padding: 0 .7rem; font-size: .9rem; }
.btn-danger { background: var(--bad); color: #fff; }
.btn-danger:hover { background: #a51f1f; }
.btn[disabled], .btn:disabled { opacity: .45; cursor: not-allowed; }
.badge-type { background: var(--bg); color: var(--muted); border: 1px solid var(--border); }
.num { text-align: right; }
.table .actions { text-align: right; white-space: nowrap; }
.table .actions form { display: inline; }
.table-compact th, .table-compact td { padding: .4rem .5rem; font-size: .9rem; }
.table-clickable tbody tr { cursor: pointer; }
.row-muted td { color: var(--muted); }
.row-link { color: inherit; }

.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem 1rem; margin-bottom: 1rem; }
.filters .field { flex: 1 1 260px; margin: 0; }
.filters .field-sm { flex: 0 1 200px; }
.filters-actions { display: flex; gap: .5rem; }

.form-card { max-width: 980px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 0 1.25rem; }
.form-grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.form-grid .field-full { grid-column: 1 / -1; }
.form-grid .field-sm { max-width: 180px; }
.form-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }
.segmented { display: flex; flex-wrap: wrap; gap: .5rem; }
.segmented label { display: inline-flex; align-items: center; gap: .4rem; min-height: var(--tap); padding: 0 1rem; border: 2px solid var(--border); border-radius: var(--radius); cursor: pointer; font-weight: 600; }
.segmented label:has(input:checked) { border-color: var(--primary); background: var(--primary-light); color: var(--primary-dark); }
.segmented input { margin: 0; }
.consents { border: 1px solid var(--border); border-radius: var(--radius); padding: .75rem 1rem; margin: 0 0 1rem; }
.consents legend { font-weight: 600; padding: 0 .4rem; }
.check { display: flex; align-items: center; gap: .6rem; min-height: 40px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; flex: none; }

.dl { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.25rem; margin: 0; }
.dl dt { color: var(--muted); font-weight: 600; }
.dl dd { margin: 0; }

.inline-form { margin-top: 1rem; }
.inline-form summary { list-style: none; display: inline-flex; }
.inline-form summary::-webkit-details-marker { display: none; }
.inline-form[open] summary { margin-bottom: .75rem; }
.inline-form form { border-top: 1px dashed var(--border); padding-top: .75rem; }
.inline-edit { display: inline-flex; gap: .35rem; align-items: center; }
.inline-edit input { width: 70px; min-height: 36px; padding: 0 .5rem; font: inherit; border: 2px solid var(--border); border-radius: 8px; text-align: center; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; padding-top: 1rem; }
.pagination [aria-disabled="true"] { opacity: .4; pointer-events: none; }

/* căutare instant */
.search-results { padding: .35rem 0; }
.search-item { display: flex; align-items: center; gap: .75rem; padding: .55rem .9rem; color: var(--text); cursor: pointer; min-height: 44px; }
.search-item:hover, .search-item.active { background: var(--primary-light); text-decoration: none; }
.search-item .search-type { flex: none; width: 58px; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.search-item .search-label { font-weight: 700; }
.search-item .search-sub { color: var(--muted); font-size: .88rem; }
.search-more, .search-empty { display: block; padding: .5rem .9rem; font-size: .9rem; color: var(--muted); }
.search-more { color: var(--primary); font-weight: 600; }

/* harta depozitului */
.legend { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: .75rem; font-size: .9rem; color: var(--muted); }
.cell-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: .3rem; }
.map-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 1rem; align-items: start; }
.map-zones { display: flex; flex-direction: column; gap: 1rem; }
.cells { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: .5rem; }
.cell { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 60px; border-radius: 8px; border: 2px solid transparent; color: var(--text); font-weight: 700; }
.cell:hover { text-decoration: none; filter: brightness(.96); }
.cell-occ { font-size: .78rem; font-weight: 500; color: var(--muted); }
.cell-free { background: var(--ok-bg); }
.cell-partial { background: var(--warn-bg); }
.cell-full { background: var(--bad-bg); }
.cell-expired { background: var(--alert-bg); }
.cell-active { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.map-detail { position: sticky; top: 76px; }
.set-list { list-style: none; margin: 0; padding: 0; }
.set-list li { padding: .5rem 0; border-bottom: 1px solid var(--border); font-size: .95rem; }
.set-list li:last-child { border-bottom: 0; }

@media (max-width: 900px) {
  .map-layout { grid-template-columns: 1fr; }
  .map-detail { position: static; }
  .dl { grid-template-columns: 1fr; gap: .1rem; }
  .dl dt { margin-top: .5rem; }
}

/* ---- etapa 3-4: predare, seturi, ridicare ---- */
.mt { margin-top: 1rem; }
.steps { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.steps li { padding: .35rem .8rem; border-radius: 999px; background: var(--bg); color: var(--muted); border: 1px solid var(--border); }
.steps li.active { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 600; }
.steps li.done { background: var(--ok-bg); color: var(--ok); border-color: #b7dfc2; }
.bigsearch { display: flex; gap: .5rem; margin-bottom: .75rem; }
.bigsearch input { flex: 1; min-height: 56px; font-size: 1.3rem; padding: 0 1rem; border: 2px solid var(--border); border-radius: var(--radius); }
.bigsearch input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.pick-list { list-style: none; margin: 0; padding: 0; }
.pick-list li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--border); }
.pick-list li:last-child { border-bottom: 0; }
.who { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; }
.loc-big { font-size: 1.3rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.card-wide { grid-column: 1 / -1; }
.alert-warn { background: var(--warn-bg); color: #7a5a00; border: 1px solid #efd99a; }
.doc-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .5rem; }
.sticky-actions { position: sticky; bottom: 0; background: var(--bg); padding: .75rem 0; z-index: 5; }
.filters-check { align-self: flex-end; margin-bottom: .2rem; }
.inline-form-sm { display: inline-block; margin: 0 0 0 .5rem; vertical-align: middle; }
.inline-form-sm form { border: 0; padding: .4rem 0 0; }
.badge.status-in_depozit { background: var(--primary-light); color: var(--primary-dark); }
.badge.status-rezervat_ridicare { background: var(--warn-bg); color: #7a5a00; }
.badge.status-ridicat { background: var(--ok-bg); color: var(--ok); }
.badge.status-abandonat { background: var(--bad-bg); color: var(--bad); }

.tires { display: grid; gap: .75rem; }
.tire-card { border: 1px solid var(--border); border-radius: var(--radius); padding: .75rem .9rem; background: #fcfdfe; }
.tire-head { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-bottom: .5rem; }
.tire-head select { min-height: 40px; font: inherit; padding: 0 .6rem; border: 2px solid var(--border); border-radius: 8px; }
.tire-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: .5rem .6rem; align-items: end; }
.tire-grid label { display: flex; flex-direction: column; font-size: .78rem; color: var(--muted); font-weight: 600; gap: .2rem; }
.tire-grid input { min-height: 44px; font: inherit; font-size: 1rem; padding: 0 .6rem; border: 2px solid var(--border); border-radius: 8px; width: 100%; color: var(--text); }
.tire-grid input:focus { outline: none; border-color: var(--primary); }
.tire-grid label:nth-child(1), .tire-grid label:nth-child(2) { grid-column: span 2; }
.tire-grid .tread input { border-color: #c9d6ea; background: var(--primary-light); font-weight: 700; text-align: center; }
.tire-cond { align-self: center; white-space: nowrap; }
.tire-defects { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border: 1px solid var(--border); border-radius: 999px; font-size: .85rem; cursor: pointer; min-height: 36px; }
.chip:has(input:checked) { background: var(--alert-bg); border-color: var(--alert); color: var(--alert); font-weight: 600; }
.chip input { margin: 0; }
.tire-notes { flex: 1 1 220px; min-height: 36px; font: inherit; font-size: .9rem; padding: 0 .6rem; border: 2px solid var(--border); border-radius: 8px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .6rem; margin-bottom: .75rem; }
.photo { margin: 0; }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); display: block; }
.photo figcaption { font-size: .8rem; margin-top: .25rem; line-height: 1.3; }
.photo-upload-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.photo-upload-row select { min-height: 44px; font: inherit; padding: 0 .6rem; border: 2px solid var(--border); border-radius: 8px; background: #fff; }
.file-btn { cursor: pointer; }
.upload-status { margin-top: .4rem; min-height: 1.2em; }
.pay-form { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; }
.pay-form .field { margin: 0; }

/* ---- etapa 5: contact ---- */
.btn-whatsapp { background: #25d366; color: #fff; border-color: #25d366; }
.btn-whatsapp:hover { background: #1ebe5a; }
.btn-whatsapp svg { flex: none; }
.contact-buttons { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .9rem; }
.contact-buttons [aria-disabled="true"] { opacity: .5; pointer-events: none; }
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--border); margin-bottom: 1rem; overflow-x: auto; }
.tab { padding: .7rem 1.1rem; min-height: var(--tap); display: inline-flex; align-items: center; border-bottom: 3px solid transparent; font-weight: 600; color: var(--text); white-space: nowrap; }
.tab:hover { text-decoration: none; background: var(--surface); }
.tab.active { border-bottom-color: var(--primary); color: var(--primary); }
.tab-disabled { opacity: .5; }
.contact-layout textarea { font-size: 1.05rem; line-height: 1.45; }

/* ---- etapa 6: campanii, rapoarte, administrare ---- */
.card-todo { margin-bottom: 1rem; border-left: 5px solid var(--alert); }
.bulk-card { margin-bottom: 1rem; }
.bar-cell { width: 18%; min-width: 80px; }
.bar { height: 14px; border-radius: 4px; min-width: 2px; }
.bar-in { background: var(--primary); }
.bar-out { background: var(--ok); }
.bar-rev { background: var(--warn); }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1rem; }
.admin-tile { color: var(--text); display: block; }
.admin-tile:hover { text-decoration: none; border-color: var(--primary); }
.admin-tile h2 { margin-bottom: .25rem; }
.code-block { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: .6rem .8rem; font-size: .82rem; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }
.table td.wrap { white-space: normal; min-width: 260px; }
tr.row-done td { opacity: .45; text-decoration: line-through; }

/* ---- responsive ---- */
@media (max-width: 900px) {
  .topbar { flex-wrap: wrap; }
  .global-search { order: 3; flex-basis: 100%; max-width: none; }
  .userbox .user-role { display: none; }
}
@media (max-width: 600px) {
  h1 { font-size: 1.35rem; }
  .container { padding: 1rem .75rem 1.5rem; }
  .card { padding: .9rem; }
  .stat-value { font-size: 1.6rem; }
  .userbox .user-name { display: none; }
}
@media print {
  .topbar, .mainnav, .footer, .quick-actions, .flash { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border-color: #999; }
}
