:root {
  --ink: #121a2b;
  --ink-soft: #263149;
  --muted: #6f7890;
  --line: #e5e9f2;
  --surface: #ffffff;
  --bg: #f4f6fb;
  --navy: #091126;
  --navy-2: #111a35;
  --violet: #7549ee;
  --violet-2: #9d6cff;
  --cyan: #14bde9;
  --pink: #e93d83;
  --orange: #ff9f28;
  --green: #16b87b;
  --danger: #c83c54;
  --shadow: 0 18px 50px rgba(21, 31, 55, .07);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; min-height: 100vh; background: var(--bg); }
a { color: var(--violet); text-decoration: none; }
button, .button, input, select, textarea { font: inherit; }
.ui-icon { display: block; flex: 0 0 auto; }

/* Application shell */
.app-shell { display: grid; grid-template-columns: 268px minmax(0, 1fr); }
.sidebar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 100vh;
  padding: 24px 18px 16px;
  color: #dce3f8;
  background:
    radial-gradient(circle at 15% 6%, rgba(117, 73, 238, .32), transparent 26%),
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    var(--navy);
  background-size: auto, 22px 22px, 22px 22px, auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.brand { display: flex; align-items: center; gap: 12px; color: #fff; padding: 0 8px 20px; }
.brand-mark { width: 43px; height: 43px; border-radius: 13px; background: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px rgba(0,0,0,.25); }
.brand-mark img { width: 34px; height: 34px; }
.brand > span:last-child { display: grid; line-height: 1.05; }
.brand strong { font-size: 20px; letter-spacing: .07em; }
.brand small { color: #9aa6ca; margin-top: 5px; font-size: 11px; font-weight: 650; letter-spacing: .05em; }
.workspace { min-width: 0; margin: 0 2px 24px; padding: 12px; display: grid; grid-template-columns: 38px minmax(0,1fr) 7px; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.09); border-radius: 14px; background: rgba(255,255,255,.055); }
.workspace-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #d9cdff; background: linear-gradient(145deg, rgba(128,83,245,.42), rgba(62,45,135,.32)); }
.workspace > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.workspace small { color: #8592b8; font-size: 9px; text-transform: uppercase; letter-spacing: .09em; }
.workspace strong { color: #fff; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; }
.workspace > i { width: 7px; height: 7px; border-radius: 50%; background: #39d994; box-shadow: 0 0 0 4px rgba(57,217,148,.12); }
.nav-label { margin: 0 12px 8px; color: #66739b; font-size: 9px; text-transform: uppercase; letter-spacing: .16em; font-weight: 800; }
.sidebar nav { display: grid; gap: 4px; padding-right: 2px; overflow: auto; scrollbar-width: thin; }
.sidebar nav a { position: relative; display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 10px 12px; color: #9da8c8; border-radius: 11px; font-size: 13px; font-weight: 650; transition: .2s ease; }
.sidebar nav a:hover { color: #fff; background: rgba(255,255,255,.055); transform: translateX(2px); }
.sidebar nav a.active { color: #fff; background: linear-gradient(100deg, rgba(117,73,238,.34), rgba(117,73,238,.12)); box-shadow: inset 0 0 0 1px rgba(166,132,255,.13); }
.sidebar nav a.active svg { color: #b99fff; }
.sidebar nav a.active > i { position: absolute; width: 3px; height: 22px; right: -2px; border-radius: 3px; background: #8b62ff; box-shadow: 0 0 16px #8b62ff; }
.sidebar-footer { margin-top: auto; padding-top: 14px; display: grid; grid-template-columns: minmax(0,1fr) 38px; align-items: center; gap: 8px; border-top: 1px solid rgba(255,255,255,.07); }
.sidebar-user, .identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sidebar-user > span:last-child, .identity > span:last-child { min-width: 0; display: grid; gap: 2px; }
.sidebar-user strong, .identity strong { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user small { color: #7784aa; font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; color: #fff; background: linear-gradient(145deg, #8d64ff, #5431c2); font-size: 11px; font-weight: 800; box-shadow: 0 8px 18px rgba(87,49,194,.28); }
.nav-logout, .icon-button { position: relative; width: 38px; height: 38px; padding: 0; display: inline-grid; place-items: center; border: 1px solid transparent; border-radius: 11px; cursor: pointer; }
.nav-logout { color: #8592b7; background: rgba(255,255,255,.055); }
.nav-logout:hover { color: #fff; background: rgba(255,255,255,.1); }
.sidebar-scrim { display: none; }

.main { min-width: 0; padding-bottom: 46px; }
.topbar { position: sticky; top: 0; z-index: 20; height: 76px; padding: 0 32px; display: flex; align-items: center; gap: 18px; border-bottom: 1px solid rgba(221,225,237,.86); background: rgba(255,255,255,.88); backdrop-filter: blur(20px); }
.mobile-menu { display: none; }
.global-search { width: min(520px, 50vw); height: 42px; padding: 0 10px 0 14px; display: flex; align-items: center; gap: 10px; border: 1px solid #e1e5ef; border-radius: 12px; color: #8a93a8; background: #f7f8fb; transition: .2s; }
.global-search:focus-within { border-color: #baa9f5; background: #fff; box-shadow: 0 0 0 4px rgba(117,73,238,.08); }
.global-search input { flex: 1; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; box-shadow: none; }
.global-search kbd { padding: 4px 7px; border: 1px solid #dfe3ec; border-radius: 6px; color: #8d95a7; background: #fff; font: 10px/1.1 inherit; box-shadow: 0 1px 1px rgba(0,0,0,.03); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 11px; }
.environment-pill, .database-state { display: inline-flex; align-items: center; gap: 7px; color: #4d596f; font-size: 10px; font-weight: 750; }
.environment-pill { padding: 7px 10px; border: 1px solid #e5e8f0; border-radius: 999px; background: #fafbfc; }
.environment-pill i, .database-state i { width: 7px; height: 7px; border-radius: 50%; background: #20c987; box-shadow: 0 0 0 3px rgba(32,201,135,.13); }
.topbar .icon-button { color: #667086; background: #fff; border-color: #e6e9f1; }
.topbar .icon-button:hover { color: var(--violet); border-color: #cfc3f5; }
.notification-dot { position: absolute; top: 8px; right: 8px; width: 6px; height: 6px; border-radius: 50%; background: #f04b82; border: 1px solid #fff; }
.identity { padding-left: 4px; }
.identity small { color: #8a92a4; font-size: 9px; }

.page-canvas { padding-top: 1px; }
.page-head, .metrics, .panel-grid, .dashboard-grid, .recent-panel, .panel:not(.recent-panel), .card-grid, .flash { margin-left: 32px; margin-right: 32px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 31px 0 21px; }
.page-head h1 { margin: 3px 0 6px; color: var(--ink); font-size: clamp(26px, 2.5vw, 34px); line-height: 1.12; letter-spacing: -.045em; }
.page-head p { margin: 0; color: var(--muted); font-size: 13px; }
.eyebrow { color: var(--violet) !important; text-transform: uppercase; letter-spacing: .16em; font-size: 9px !important; font-weight: 850; }
.page-head-actions { display: flex; align-items: center; gap: 14px; }
.database-state { padding: 9px 12px; border: 1px solid #e5e9f0; border-radius: 10px; background: #fff; }

/* Reusable content */
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 15px; margin-bottom: 19px; }
.panel, .metrics > article { border: 1px solid rgba(225,229,239,.94); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.metrics > article { padding: 18px; display: grid; gap: 7px; }
.metrics > article > span { color: var(--muted); font-size: 10px; font-weight: 700; }
.metrics > article > strong { font-size: 24px; letter-spacing: -.035em; }
.metrics > article > small { color: var(--violet); font-size: 9px; }
.panel { padding: 22px; margin-bottom: 19px; }
.panel-grid { display: grid; gap: 18px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.panel h2, .panel-head h2 { margin: 2px 0 5px; font-size: 17px; letter-spacing: -.02em; }
.panel-head p { margin: 0; color: var(--muted); font-size: 11px; }
.panel-kicker { display: block; color: var(--violet); font-size: 8px; text-transform: uppercase; letter-spacing: .14em; font-weight: 850; }
.period-chip { padding: 7px 10px; border-radius: 8px; color: #70798d; background: #f5f6fa; font-size: 9px; font-weight: 700; }

.form-panel { margin-top: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; align-items: end; }
.stack-form { display: grid; gap: 15px; }
.form-grid label, .stack-form label, .inline-card label { display: grid; gap: 7px; color: #424c61; font-size: 11px; font-weight: 750; }
.span-2 { grid-column: 1/-1; }
input, select, textarea { width: 100%; padding: 11px 12px; border: 1px solid #dce1eb; border-radius: 10px; outline: 0; color: var(--ink); background: #fff; font-size: 12px; transition: .18s; }
input:focus, select:focus, textarea:focus { border-color: #9e85ef; box-shadow: 0 0 0 4px rgba(117,73,238,.09); }
textarea { min-height: 92px; resize: vertical; }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 12px; border: 1px solid #dbe0e9; border-radius: 9px; color: #354056; background: #fff; cursor: pointer; font-size: 11px; font-weight: 750; transition: .18s; }
button:hover, .button:hover { color: var(--violet); border-color: #bcaaf4; }
button.primary, .button.primary, .primary { padding: 11px 16px; color: #fff; border-color: var(--violet); background: linear-gradient(135deg, #7549ee, #8d62fa); box-shadow: 0 9px 20px rgba(117,73,238,.2); }
button.primary:hover, .button.primary:hover, .primary:hover { color: #fff; border-color: #6440ce; background: linear-gradient(135deg, #6840d8, #8153ee); transform: translateY(-1px); }

.table-wrap { overflow: auto; border: 1px solid #edf0f5; border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 11px; }
th { padding: 11px 13px; text-align: left; color: #8991a4; border-bottom: 1px solid #e8ebf2; background: #f8f9fc; text-transform: uppercase; letter-spacing: .09em; font-size: 8px; white-space: nowrap; }
td { padding: 13px; border-bottom: 1px solid #edf0f5; color: #424c60; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fbfbfe; }
td small, td strong { display: block; }
.actions { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.actions form { margin: 0; }
.empty { padding: 38px; display: grid; place-items: center; gap: 7px; text-align: center; color: var(--muted); border: 1px dashed #d7ddea; border-radius: 13px; background: #fafbfc; }
.empty > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: var(--violet); background: #eee9ff; }
.empty strong { color: var(--ink-soft); }
.empty p { margin: 0; font-size: 11px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 999px; color: #526076; background: #edf1f6; font-size: 9px; font-weight: 750; text-transform: capitalize; }
.badge > i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge.active, .badge.status-active, .badge.status-completed, .badge.status-paid, .badge.status-ready { color: #148257; background: #e1f6ed; }
.badge.pending, .badge.status-pending, .badge.status-in-progress, .badge.status-diagnosing { color: #9a6416; background: #fff2d6; }
.badge.suspended, .badge.disabled, .badge.status-suspended, .badge.status-disabled, .badge.status-expired, .badge.status-cancelled { color: #ad3b51; background: #fbe5ea; }
.flash { margin-top: 18px; padding: 12px 15px; display: flex; align-items: center; gap: 10px; color: #187b59; border: 1px solid #cfeee2; border-radius: 11px; background: #eaf8f3; font-size: 11px; transition: .3s; }
.flash > span { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px; color: #fff; background: #22b77e; font-weight: 800; }
.flash.error { color: #a73549; border-color: #f0ccd4; background: #fdeef1; }
.flash.error > span { background: #d74b62; }
.flash.fade { opacity: .22; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.card-grid .panel { margin: 0; }
.inline-card { position: absolute; right: 30px; z-index: 25; width: min(390px,85vw); padding: 16px; display: grid; gap: 10px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: 0 22px 60px rgba(14,23,43,.18); }
details summary { list-style: none; }
.activation-result code, .panel code { display: block; padding: 12px; border-radius: 8px; color: #5435ba; background: #f2effc; word-break: break-all; }

/* Dashboard */
.dashboard-metrics .metric-card { position: relative; min-height: 143px; padding: 18px; display: flex; flex-direction: column; overflow: hidden; color: #fff; border: 0; isolation: isolate; }
.metric-card.tone-violet { background: linear-gradient(135deg, #6640d5, #9767f5); box-shadow: 0 16px 35px rgba(112,69,221,.20); }
.metric-card.tone-cyan { background: linear-gradient(135deg, #087faa, #24c9ef); box-shadow: 0 16px 35px rgba(23,174,214,.19); }
.metric-card.tone-pink { background: linear-gradient(135deg, #c72b6b, #f15d9a); box-shadow: 0 16px 35px rgba(222,54,127,.17); }
.metric-card.tone-orange { background: linear-gradient(135deg, #e77b18, #ffb23c); box-shadow: 0 16px 35px rgba(240,142,30,.17); }
.metric-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.metric-top > span { color: rgba(255,255,255,.84); font-size: 10px; font-weight: 700; }
.metric-top > i { width: 31px; height: 31px; display: grid; place-items: center; color: #fff; border-radius: 9px; background: rgba(255,255,255,.17); }
.metric-card > strong { margin: 11px 0 5px; font-size: clamp(22px, 2vw, 29px); line-height: 1; letter-spacing: -.04em; }
.dashboard-metrics .metric-card > small { margin-top: auto; display: flex; align-items: center; gap: 5px; color: rgba(255,255,255,.82); font-size: 9px; }
.metric-card > small b { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 6px; background: rgba(255,255,255,.16); }
.metric-wave { position: absolute; z-index: -1; right: -6px; bottom: -5px; width: 62%; height: 54px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(260px,.8fr); gap: 19px; }
.dashboard-grid .panel { margin: 0 0 19px; }
.bar-chart { height: 240px; padding: 21px 6px 0; display: grid; grid-template-columns: repeat(6,minmax(42px,1fr)); gap: clamp(8px,2vw,25px); border-top: 1px solid #f0f2f6; background: repeating-linear-gradient(to bottom, transparent 0, transparent 53px, #f0f2f6 54px); }
.bar-column { min-width: 0; display: grid; grid-template-rows: 18px 1fr 22px; align-items: end; text-align: center; }
.bar-value { color: #7b8497; font-size: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 178px; display: flex; align-items: flex-end; justify-content: center; }
.bar-track > i { position: relative; width: min(34px, 74%); min-height: 6px; display: block; border-radius: 9px 9px 4px 4px; background: linear-gradient(to top, #6740d6, #9e79ff); box-shadow: 0 9px 19px rgba(112,72,218,.17); }
.bar-track > i > b { position: absolute; top: 5px; left: 5px; right: 5px; height: 28%; border-radius: 5px; background: linear-gradient(rgba(255,255,255,.25), transparent); }
.bar-column:nth-child(2n) .bar-track > i { background: linear-gradient(to top, #149bc3, #28d4f3); box-shadow: 0 9px 19px rgba(20,172,208,.17); }
.bar-label { color: #778096; font-size: 9px; font-weight: 700; }
.distribution-body { padding: 8px 4px 5px; display: grid; justify-items: center; gap: 25px; }
.donut { position: relative; width: 148px; height: 148px; display: grid; place-items: center; border-radius: 50%; box-shadow: 0 11px 28px rgba(31,39,64,.08); }
.donut::after { content: ''; position: absolute; width: 88px; height: 88px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px #f1f2f6; }
.donut > div { z-index: 1; display: grid; text-align: center; }
.donut strong { font-size: 24px; letter-spacing: -.04em; }
.donut span { color: #8a92a4; font-size: 9px; }
.legend { width: 100%; display: grid; gap: 9px; }
.legend > div { display: grid; grid-template-columns: 7px minmax(0,1fr) auto; align-items: center; gap: 8px; color: #687187; font-size: 9px; }
.legend > div i { width: 7px; height: 7px; border-radius: 3px; }
.legend > div strong { color: #303a4f; }
.legend-empty { margin: 0; text-align: center; color: var(--muted); font-size: 10px; }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--violet); font-size: 10px; font-weight: 750; }
.text-link:hover { color: #5630c2; }

/* Authentication and setup */
.auth-shell { min-height: 100vh; padding: 24px; display: grid; grid-template-columns: minmax(360px,1.08fr) minmax(360px,.92fr); gap: 24px; background: #f5f6fa; }
.auth-visual { position: relative; min-height: calc(100vh - 48px); overflow: hidden; border-radius: 25px; background: radial-gradient(circle at 23% 20%, rgba(124,77,255,.5), transparent 28%), radial-gradient(circle at 82% 78%, rgba(27,196,233,.24), transparent 26%), #081025; box-shadow: 0 25px 70px rgba(10,18,41,.2); }
.auth-grid { position: absolute; inset: 0; opacity: .3; background-image: linear-gradient(rgba(255,255,255,.07) 1px,transparent 1px), linear-gradient(90deg,rgba(255,255,255,.07) 1px,transparent 1px); background-size: 31px 31px; transform: perspective(500px) rotateX(5deg) scale(1.1); }
.auth-orb { position: absolute; border-radius: 50%; filter: blur(2px); }
.auth-orb.one { width: 230px; height: 230px; top: 9%; right: 10%; background: linear-gradient(145deg, rgba(236,70,142,.84), rgba(110,63,226,.22)); box-shadow: 0 30px 80px rgba(221,58,133,.25); }
.auth-orb.two { width: 150px; height: 150px; bottom: 16%; left: 14%; border: 26px solid rgba(31,202,239,.32); }
.auth-copy { position: absolute; z-index: 2; left: clamp(35px,6vw,80px); right: clamp(35px,6vw,80px); bottom: clamp(40px,8vh,90px); color: #fff; }
.auth-copy span { display: inline-flex; padding: 8px 11px; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; color: #cfc3ff; background: rgba(255,255,255,.07); text-transform: uppercase; letter-spacing: .13em; font-size: 9px; font-weight: 800; }
.auth-copy strong { display: block; max-width: 610px; margin-top: 18px; font-size: clamp(30px,4.2vw,59px); line-height: 1.02; letter-spacing: -.055em; }
.auth-copy p { max-width: 470px; margin: 18px 0 0; color: #9da9c9; line-height: 1.6; font-size: 13px; }
.auth-card { width: min(430px,100%); margin: auto; padding: 35px; border: 1px solid var(--line); border-radius: 21px; background: #fff; box-shadow: var(--shadow); }
.auth-card h1 { margin: 6px 0; font-size: 29px; letter-spacing: -.04em; }
.auth-card > p { color: var(--muted); font-size: 12px; line-height: 1.5; }
.auth-card > a { display: inline-block; margin-top: 18px; font-size: 11px; font-weight: 700; }

/* Documents */
.document { max-width: 850px; margin: 34px auto; padding: 50px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.document-head, .document-meta { display: flex; justify-content: space-between; gap: 30px; }
.document-head img { width: 52px; }
.document-head h1 { margin: 0; }
.document-meta { margin: 35px 0; }
.document-meta > div { display: grid; gap: 5px; }
.document-meta span { color: var(--muted); font-size: 11px; }
.totals { width: 300px; margin: 25px 0 0 auto; }
.totals p { display: flex; justify-content: space-between; padding: 8px; border-bottom: 1px solid var(--line); }
.receipt-amount { margin: 30px 0; padding: 30px; display: flex; justify-content: space-between; align-items: center; border-radius: 14px; background: #f2effd; }
.receipt-amount strong { font-size: 28px; }

@media (max-width: 1180px) {
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 940px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; left: 0; width: 268px; transform: translateX(-105%); transition: transform .25s ease; }
  .menu-open .sidebar { transform: none; }
  .sidebar-scrim { position: fixed; inset: 0; z-index: 29; width: 100%; height: 100%; border: 0; border-radius: 0; background: rgba(5,10,24,.48); backdrop-filter: blur(2px); }
  .menu-open .sidebar-scrim { display: block; }
  .mobile-menu { display: inline-grid; color: #59647a; border-color: #e2e6ee; background: #fff; }
  .topbar { padding: 0 18px; }
  .page-head, .metrics, .panel-grid, .dashboard-grid, .recent-panel, .panel:not(.recent-panel), .card-grid, .flash { margin-left: 18px; margin-right: 18px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .distribution-body { grid-template-columns: auto minmax(160px,1fr); align-items: center; justify-items: stretch; }
  .donut { justify-self: center; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-card { align-self: center; }
}

@media (max-width: 640px) {
  .topbar { height: 66px; gap: 10px; }
  .global-search { width: auto; flex: 1; }
  .global-search kbd, .environment-pill, .identity { display: none; }
  .topbar-actions { margin-left: 0; }
  .page-head { padding: 24px 0 18px; align-items: flex-start; flex-direction: column; }
  .dashboard-head { flex-direction: column; }
  .page-head-actions { width: 100%; justify-content: space-between; }
  .metrics, .form-grid, .card-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .bar-chart { height: 220px; gap: 4px; padding-left: 0; padding-right: 0; }
  .bar-track { height: 158px; }
  .bar-value { font-size: 7px; }
  .distribution-body { grid-template-columns: 1fr; }
  .recent-panel .panel-head { align-items: flex-start; flex-direction: column; }
  .auth-shell { padding: 14px; }
  .auth-card { padding: 26px 22px; }
  .document { margin: 0; padding: 24px; }
  .document-meta { display: grid; }
}

@media print {
  .sidebar, .topbar, .no-print, .flash { display: none !important; }
  .app-shell { display: block; }
  .main { padding: 0; }
  .document { max-width: none; margin: 0; border: 0; box-shadow: none; }
}
