/* =====================================================================
   Ascend Accounting Firm — Admin portal & client portal styles
   ===================================================================== */
:root {
  --blue: #1D4ED8; --blue-600: #1E40AF; --blue-50: #EEF3FF; --blue-100: #DCE6FB;
  --navy: #0B1F4D; --navy-2: #0E2860; --ink: #0F1B3D; --text: #46536F; --muted: #6B7896;
  --line: #E4E9F2; --bg: #F4F7FC; --card: #FFFFFF;
  --green: #15803D; --green-bg: #E6F6EC; --amber: #B45309; --amber-bg: #FEF3E2; --red: #B91C1C; --red-bg: #FDECEC;
  --gray-bg: #EEF1F6; --radius: 14px; --shadow: 0 4px 18px rgba(15, 35, 90, .06);
  --sidebar: 268px;
  --font: 'Plus Jakarta Sans', 'Segoe UI', Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); margin: 0 0 .4em; line-height: 1.2; letter-spacing: -.01em; }
.ico { width: 20px; height: 20px; flex: none; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid #93B4FF; outline-offset: 2px; border-radius: 6px; }

/* ---------- Layout ---------- */
.app { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); background: var(--navy); color: #C9D7F2; overflow-y: auto; z-index: 40; transform: translateX(-100%); transition: transform .25s; padding-bottom: 24px; }
.sidebar.open { transform: none; box-shadow: 0 0 0 100vmax rgba(5, 12, 35, .45); }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 18px 20px; background: #fff; color: var(--navy); height: 72px; }
.brand-mark { width: 48px; height: 34px; color: var(--blue); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-size: 1.25rem; letter-spacing: .08em; font-weight: 800; color: var(--navy); }
.brand-text small { font-size: .55rem; letter-spacing: .28em; font-weight: 700; margin-top: 4px; color: var(--navy); }
.nav { padding: 14px 12px; }
.nav-label { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: #8FA6D6; font-weight: 700; padding: 16px 12px 6px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: #DCE6FB; font-weight: 500; font-size: .92rem; }
.nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.nav a.active { background: var(--blue); color: #fff; font-weight: 600; }
.nav a .ico { width: 19px; height: 19px; opacity: .9; }
.nav .count { margin-left: auto; background: #EF4444; color: #fff; font-size: .7rem; font-weight: 700; border-radius: 999px; padding: 1px 7px; }

.main { min-height: 100vh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); height: 64px; display: flex; align-items: center; gap: 12px; padding: 0 16px; }
.menu-btn { width: 42px; height: 42px; border: 0; background: var(--bg); border-radius: 10px; display: grid; place-items: center; color: var(--navy); cursor: pointer; }
.top-search { flex: 1; max-width: 560px; position: relative; display: none; }
.top-search input { width: 100%; padding: 10px 14px 10px 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font: inherit; font-size: .9rem; }
.top-search .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { position: relative; width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; color: var(--navy); background: transparent; border: 0; cursor: pointer; }
.icon-btn:hover { background: var(--bg); }
.icon-btn .dot { position: absolute; top: 6px; right: 6px; min-width: 18px; height: 18px; border-radius: 999px; background: #EF4444; color: #fff; font-size: .68rem; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }
.user-menu { position: relative; }
.user-btn { display: flex; align-items: center; gap: 10px; background: none; border: 0; cursor: pointer; padding: 4px 6px; border-radius: 10px; font: inherit; text-align: left; }
.user-btn:hover { background: var(--bg); }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--blue-100); color: var(--blue); display: grid; place-items: center; font-weight: 800; font-size: .85rem; flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 30px; height: 30px; font-size: .72rem; }
.user-btn .who { display: none; }
.user-btn .who strong { display: block; color: var(--ink); font-size: .9rem; }
.user-btn .who small { color: var(--muted); font-size: .76rem; }
.dropdown { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(15, 35, 90, .14); min-width: 220px; padding: 6px; display: none; z-index: 50; }
.dropdown.open { display: block; }
.dropdown a, .dropdown button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 8px; color: var(--ink); font: inherit; font-size: .9rem; background: none; border: 0; cursor: pointer; text-align: left; }
.dropdown a:hover, .dropdown button:hover { background: var(--bg); }
.notif-list { max-height: 360px; overflow-y: auto; min-width: 300px; }
.notif-list a { align-items: flex-start; }
.notif-list small { display: block; color: var(--muted); font-size: .76rem; }

.content { padding: 20px 16px 40px; flex: 1; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.page-head h1 { font-size: 1.55rem; margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.page-head .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.date-chip { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: .85rem; }
.date-chip .ico { color: var(--muted); }

/* ---------- Cards / grid ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card-head h2 { font-size: 1.08rem; margin: 0; }
.card-head a { font-size: .85rem; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.card-head a .ico { width: 16px; height: 16px; }
.grid { display: grid; gap: 16px; }
.kpis { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 460px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.kpi { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.kpi-ico { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-100); color: var(--blue); flex: none; }
.kpi-ico.teal { background: #DDF4EE; color: #0F766E; }
.kpi-ico .ico { width: 26px; height: 26px; }
.kpi small { color: var(--muted); font-size: .8rem; display: block; }
.kpi b { color: var(--ink); font-size: 1.45rem; line-height: 1.2; display: block; }
.kpi .trend { font-size: .76rem; font-weight: 700; color: var(--green); }
.kpi .trend.down { color: var(--red); }
.kpi .trend span { color: var(--muted); font-weight: 500; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 10px 12px; background: #F7F9FD; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line); color: var(--ink); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: #FAFBFE; }
.table .num { text-align: right; white-space: nowrap; }
.table .actions { text-align: right; white-space: nowrap; }
.cell-main { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.cell-sub { display: block; font-size: .78rem; color: var(--muted); font-weight: 400; }
.row-actions { display: inline-flex; gap: 4px; }
.row-actions a, .row-actions button { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; color: var(--muted); background: none; border: 0; cursor: pointer; }
.row-actions a:hover, .row-actions button:hover { background: var(--bg); color: var(--blue); }
.row-actions .danger:hover { color: var(--red); background: var(--red-bg); }
.row-actions .ico { width: 17px; height: 17px; }

@media (max-width: 719px) {
  .table.responsive thead { display: none; }
  .table.responsive, .table.responsive tbody, .table.responsive tr, .table.responsive td { display: block; width: 100%; }
  .table.responsive tr { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; padding: 6px 4px; background: #fff; }
  .table.responsive td { border: 0; padding: 6px 10px; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .table.responsive td::before { content: attr(data-label); font-size: .74rem; font-weight: 700; text-transform: uppercase; color: var(--muted); text-align: left; letter-spacing: .04em; }
  .table.responsive td.actions::before { content: ''; }
  .table.responsive td:first-child { font-size: 1rem; }
  .table.responsive tr:hover td { background: none; }
}

/* ---------- Badges ---------- */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; white-space: nowrap; }
.badge-green { background: var(--green-bg); color: var(--green); }
.badge-blue { background: var(--blue-50); color: var(--blue); }
.badge-amber { background: var(--amber-bg); color: var(--amber); }
.badge-red { background: var(--red-bg); color: var(--red); }
.badge-gray { background: var(--gray-bg); color: #5B6680; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 10px; background: var(--blue); color: #fff; border: 1.5px solid var(--blue); font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.btn .ico { width: 18px; height: 18px; }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-light:hover { background: var(--bg); color: var(--ink); border-color: var(--line); }
.btn-danger { background: var(--red); border-color: var(--red); }
.btn-danger:hover { background: #991B1B; border-color: #991B1B; }
.btn-sm { padding: 7px 12px; font-size: .82rem; }
.btn-block { width: 100%; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field .hint { font-size: .78rem; color: var(--muted); margin-top: 4px; }
.field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea { width: 100%; padding: 10px 12px; border: 1px solid #D6DEEC; border-radius: 10px; font: inherit; font-size: .92rem; color: var(--ink); background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(29, 78, 216, .12); }
.field textarea { min-height: 110px; resize: vertical; }
.field textarea.html { min-height: 280px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; }
.req { color: var(--red); }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500 !important; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.filters input, .filters select { padding: 9px 12px; border: 1px solid #D6DEEC; border-radius: 10px; font: inherit; font-size: .88rem; background: #fff; }
.filters input[type=search] { flex: 1 1 220px; }
.thumb { width: 64px; height: 44px; object-fit: cover; border-radius: 8px; background: var(--bg); }
.current-file { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: .85rem; }

.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-weight: 600; font-size: .9rem; }
.alert-success { background: var(--green-bg); color: var(--green); }
.alert-error { background: var(--red-bg); color: var(--red); }
.alert-info { background: var(--blue-50); color: var(--blue-600); }

.pagination { display: flex; gap: 6px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
.pagination a { min-width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); font-weight: 600; font-size: .85rem; background: #fff; }
.pagination a.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.pagination .dots { align-self: center; color: var(--muted); }
.empty-state { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty-state .ico { width: 44px; height: 44px; color: #B5C3DE; margin-bottom: 8px; }
.muted { color: var(--muted); }
.text-right { text-align: right; }

/* ---------- Dashboard pieces ---------- */
.chart { width: 100%; height: auto; display: block; }
.chart text { font-family: var(--font); font-size: 11px; fill: var(--muted); }
.legend { display: flex; gap: 18px; justify-content: center; font-size: .8rem; margin-top: 6px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.task-list { list-style: none; margin: 0; padding: 0; }
.task-list li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.task-list li:last-child { border-bottom: 0; }
.task-list .t { flex: 1; min-width: 0; }
.task-list .t strong { display: block; color: var(--ink); font-size: .9rem; font-weight: 600; }
.task-list .t small { color: var(--muted); font-size: .78rem; }
.task-list form { margin: 0; }
.task-check { width: 22px; height: 22px; border: 2px solid #C4CFE3; border-radius: 6px; background: #fff; cursor: pointer; display: grid; place-items: center; padding: 0; color: transparent; }
.task-check:hover { border-color: var(--blue); color: var(--blue); }
.task-check .ico { width: 14px; height: 14px; stroke-width: 3; }
.due { font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.due.today { background: var(--red-bg); color: var(--red); }
.due.soon { background: var(--amber-bg); color: var(--amber); }
.due.later { background: var(--blue-50); color: var(--blue); }
.quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.quick a { display: flex; flex-direction: column; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 16px 8px; color: var(--ink); font-weight: 600; font-size: .85rem; text-align: center; }
.quick a:hover { border-color: var(--blue-100); background: var(--blue-50); }
.quick .ico { width: 28px; height: 28px; }
.qa-blue { color: var(--blue); } .qa-green { color: #16A34A; } .qa-purple { color: #7C3AED; } .qa-orange { color: #EA580C; } .qa-pink { color: #DB2777; } .qa-teal { color: #0D9488; }

/* Detail views */
.detail-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.detail-grid dt { font-size: .74rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.detail-grid dd { margin: 2px 0 0; color: var(--ink); white-space: pre-wrap; }
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tabs a { padding: 10px 14px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; font-size: .9rem; }
.tabs a.active { color: var(--blue); border-color: var(--blue); }

/* Invoice */
.invoice-paper { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.inv-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; border-bottom: 2px solid var(--navy); padding-bottom: 18px; margin-bottom: 18px; }
.inv-totals { margin-left: auto; width: min(340px, 100%); }
.inv-totals div { display: flex; justify-content: space-between; padding: 6px 0; }
.inv-totals .grand { border-top: 2px solid var(--navy); font-weight: 800; color: var(--ink); font-size: 1.1rem; margin-top: 4px; padding-top: 10px; }
.items-table input { width: 100%; padding: 8px 10px; border: 1px solid #D6DEEC; border-radius: 8px; font: inherit; font-size: .88rem; }
.items-table td { padding: 6px; }

/* Chat admin */
.chat-layout { display: grid; gap: 16px; }
.chat-list a { display: flex; gap: 10px; padding: 12px; border-radius: 10px; color: var(--ink); border: 1px solid transparent; }
.chat-list a:hover { background: var(--bg); }
.chat-list a.active { background: var(--blue-50); border-color: var(--blue-100); }
.chat-list .t { flex: 1; min-width: 0; }
.chat-list .t small { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-thread { height: 420px; overflow-y: auto; background: var(--bg); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 80%; padding: 9px 13px; border-radius: 12px; font-size: .9rem; white-space: pre-wrap; word-wrap: break-word; }
.msg time { display: block; font-size: .68rem; opacity: .65; margin-top: 3px; }
.msg.visitor { background: #fff; color: var(--ink); border-bottom-left-radius: 4px; }
.msg.bot { background: #fff; color: var(--muted); border: 1px dashed #C9D4EA; border-bottom-left-radius: 4px; }
.msg.admin { background: var(--blue); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.chat-reply { display: flex; gap: 8px; margin-top: 12px; }
.chat-reply input { flex: 1; padding: 11px 14px; border: 1px solid #D6DEEC; border-radius: 10px; font: inherit; min-width: 0; }

/* Media library */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.media-item { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.media-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--bg); }
.media-item .meta { padding: 8px 10px; font-size: .76rem; }
.media-item .meta input { width: 100%; font-size: .7rem; padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; margin-top: 4px; color: var(--muted); }

/* Permissions */
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 16px; }
.perm-group h4 { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 16px 0 8px; }

/* ---------- Auth pages ---------- */
.auth { min-height: 100vh; display: grid; background: #fff; }
.auth-side { display: none; position: relative; background: linear-gradient(150deg, var(--navy) 0%, #12347E 55%, var(--blue) 100%); color: #fff; padding: 56px; overflow: hidden; clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%); }
.auth-side::after { content: ''; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%; background: rgba(255, 255, 255, .06); }
.auth-side .brand-mark { color: #fff; }
.auth-side .brand-text strong, .auth-side .brand-text small { color: #fff; }
.auth-side h1 { color: #fff; font-size: 2.9rem; margin: 70px 0 14px; max-width: 460px; }
.auth-side h1 span { color: #7FA7FF; }
.auth-side p { color: #C9D7F2; max-width: 420px; }
.auth-features { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 20px; max-width: 420px; }
.auth-features li { display: flex; gap: 14px; }
.auth-features .ico { width: 30px; height: 30px; color: #fff; }
.auth-features strong { display: block; color: #fff; }
.auth-features small { color: #C9D7F2; }
.auth-main { display: grid; place-items: center; padding: 32px 16px; background: linear-gradient(180deg, #F7F9FD, #fff); }
.auth-card { width: min(440px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 50px rgba(15, 35, 90, .1); padding: 36px 28px; }
.auth-card .center { text-align: center; }
.auth-card .brand { justify-content: center; display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.auth-card h2 { font-size: 1.6rem; margin-bottom: 4px; }
.auth-card .sub { color: var(--muted); margin-bottom: 24px; }
.input-icon { position: relative; }
.input-icon > .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; pointer-events: none; }
.input-icon input { padding-left: 42px !important; padding-top: 13px !important; padding-bottom: 13px !important; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; border-radius: 8px; }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .88rem; margin: 4px 0 18px; }
.auth-foot { text-align: center; font-size: .82rem; color: var(--muted); margin-top: 20px; }

/* ---------- Portal top nav ---------- */
.portal-top { background: #fff; border-bottom: 1px solid var(--line); }
.portal-top .inner { width: min(1100px, 100% - 32px); margin: 0 auto; display: flex; align-items: center; gap: 16px; height: 68px; }
.portal-top nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; }
.portal-top nav a { padding: 8px 12px; border-radius: 8px; color: var(--ink); font-weight: 600; font-size: .9rem; white-space: nowrap; }
.portal-top nav a.active { background: var(--blue-50); color: var(--blue); }
.portal-wrap { width: min(1100px, 100% - 32px); margin: 0 auto; padding: 24px 0 48px; }

/* ---------- Breakpoints ---------- */
@media (min-width: 640px) {
  .form-grid.two { grid-template-columns: 1fr 1fr; }
  .form-grid .full { grid-column: 1 / -1; }
  .detail-grid { grid-template-columns: 1fr 1fr; }
  .quick { grid-template-columns: repeat(3, 1fr); }
  .top-search { display: block; }
  .user-btn .who { display: block; }
  .content { padding: 24px; }
}
@media (min-width: 1024px) {
  .sidebar { transform: none; }
  .sidebar.open { box-shadow: none; }
  .main { margin-left: var(--sidebar); }
  .menu-btn { display: none; }
  .topbar { padding: 0 28px; height: 72px; }
  .content { padding: 28px; }
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .grid.g-2-1 { grid-template-columns: 1.7fr 1fr; }
  .grid.g-1-1 { grid-template-columns: 1fr 1fr; }
  .chat-layout { grid-template-columns: 320px 1fr; }
  .auth { grid-template-columns: 1.05fr 1fr; }
  .auth-side { display: block; }
  .detail-grid.three { grid-template-columns: repeat(3, 1fr); }
}
@media print {
  .sidebar, .topbar, .page-head .actions, .no-print { display: none !important; }
  .main { margin: 0 !important; }
  .content { padding: 0 !important; }
  body { background: #fff; }
  .invoice-paper { box-shadow: none; border: 0; padding: 0; }
}
