/* Astra CRM — theme matches astrawebsolution.com */
:root {
	--navy: #0b1f3a;
	--navy-2: #12305a;
	--ink: #06122a;
	--orange: #f39a3b;
	--orange-2: #ffb766;
	--orange-soft: #fde7cf;
	--cream: #fff6ea;
	--paper: #fffdf9;
	--white: #ffffff;
	--muted: #8a9bb8;
	--text: #0b1f3a;
	--text-2: #4a5d7c;
	--line: rgba(255, 255, 255, .12);
	--line-dark: rgba(11, 31, 58, .12);
	--field-bg: #f8fafc;
	--field-line: #dbe2ec;
	--radius: 22px;
	--radius-sm: 14px;
	--shadow: 0 20px 60px -20px rgba(6, 18, 42, .45);
	--shadow-sm: 0 6px 24px -12px rgba(6, 18, 42, .25);
	--font-display: "Bricolage Grotesque", "Space Grotesk", system-ui, sans-serif;
	--font-body: "Inter", system-ui, sans-serif;
	--green: #10b981;
	--blue: #3b82f6;
	--red: #ef4444;
	--pink: #ec4899;
	--purple: #8b5cf6;
	--sidebar-w: 264px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
	font-family: var(--font-body);
	background: var(--cream);
	color: var(--text);
	-webkit-font-smoothing: antialiased;
	font-size: 15px;
	line-height: 1.5;
}
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -.02em; margin: 0; line-height: 1.15; }
img, svg { max-width: 100%; }
.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; }
.text-right { text-align: right; }
.hidden { display: none !important; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-badge {
	display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px;
	background: var(--navy); border: 1px solid var(--line); flex: none;
	transition: transform .5s cubic-bezier(.34, 1.56, .64, 1);
}
.logo:hover .logo-badge { transform: rotate(-12deg) scale(1.08); }
.logo-word { font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: -.02em; line-height: 1; white-space: nowrap; }
.logo-word em { font-style: normal; color: var(--orange); }
.logo-sub { display: block; font-family: var(--font-body); font-weight: 600; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 10px 20px; border-radius: 999px; font: 600 14px/1.2 var(--font-body);
	border: 2px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap;
	transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: var(--ink); }
.btn-primary:hover { background: var(--orange-2); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); }
.btn-ghost { border-color: var(--line-dark); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--navy); }
.btn-danger { background: #fee2e2; color: #b91c1c; }
.btn-danger:hover { background: #fecaca; }
.btn-success { background: #d1fae5; color: #047857; }
.btn-success:hover { background: #a7f3d0; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-xs { padding: 4px 10px; font-size: 12px; border-width: 1.5px; }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn i { font-size: 1.05em; }
.icon-btn {
	display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
	border: 1.5px solid var(--line-dark); background: #fff; color: var(--text); cursor: pointer; text-decoration: none;
}
.icon-btn:hover { border-color: var(--navy); }
.icon-btn.danger:hover { border-color: var(--red); color: var(--red); }

/* ---------- App shell ---------- */
.app { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
.sidebar {
	background: var(--ink); color: #fff; position: sticky; top: 0; height: 100vh;
	display: flex; flex-direction: column; padding: 22px 16px; overflow-y: auto;
	background-image: radial-gradient(600px 300px at -10% -10%, rgba(243, 154, 59, .16), transparent 60%);
}
.sidebar .logo { padding: 2px 8px 22px; color: #fff; }
.nav-label { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 16px 12px 8px; }
.nav a {
	display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px;
	color: #c9d4e6; text-decoration: none; font-weight: 500; font-size: 14.5px; transition: background .2s, color .2s;
}
.nav a i { font-size: 17px; width: 20px; text-align: center; }
.nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav a.active { background: var(--orange); color: var(--ink); font-weight: 600; }
.nav a .count { margin-left: auto; background: rgba(255, 255, 255, .12); color: #fff; font-size: 11.5px; font-weight: 600; padding: 1px 8px; border-radius: 999px; }
.nav a.active .count { background: var(--ink); color: #fff; }
.sidebar-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.sidebar-foot .user { display: flex; align-items: center; gap: 10px; padding: 8px; }
.sidebar-foot .user small { display: block; color: var(--muted); font-size: 12px; }

.avatar {
	display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
	background: var(--orange); color: var(--ink); font-weight: 700; font-size: 13px; flex: none;
}
.avatar.lg { width: 56px; height: 56px; font-size: 19px; }
.avatar.navy { background: var(--navy); color: #fff; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
	display: flex; align-items: center; gap: 16px; padding: 16px 32px; background: rgba(255, 246, 234, .85);
	backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line-dark);
}
.topbar .crumbs { font-size: 13px; color: var(--muted); }
.topbar .crumbs a { text-decoration: none; }
.topbar .crumbs a:hover { color: var(--text); }
.topbar .spacer { flex: 1; }
.menu-toggle { display: none; }
.content { padding: 28px 32px 48px; width: 100%; max-width: 100%; margin: 0; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin-bottom: 8px; }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--orange); border-radius: 2px; }
.page-head h1 { font-size: 30px; font-weight: 800; }
.page-head p { margin: 6px 0 0; color: var(--text-2); }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Cards ---------- */
.card { background: var(--paper); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.card + .card { margin-top: 20px; }
.grid > .card + .card, .grid > a.card + a.card { margin-top: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.card-head h2, .card-head h3 { font-size: 18px; font-weight: 700; }
.card.flush { padding: 0; overflow: hidden; }
.card.flush .card-head { padding: 20px 24px 0; }
.card.navy { background: var(--navy); color: #fff; border-color: transparent; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }

/* stat tiles */
.stat { position: relative; overflow: hidden; }
.stat .stat-label { font-size: 13px; font-weight: 600; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.stat .stat-value { font-family: var(--font-display); font-size: 32px; font-weight: 800; margin-top: 10px; letter-spacing: -.03em; }
.stat .stat-foot { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.stat .stat-icon { position: absolute; right: 18px; top: 18px; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-size: 19px; background: var(--orange-soft); color: #b45f0b; }
.stat.navy .stat-label { color: #c9d4e6; }
.stat.navy .stat-icon { background: rgba(243, 154, 59, .18); color: var(--orange); }
.stat a.stretched { position: absolute; inset: 0; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line-dark); white-space: nowrap; background: var(--paper); }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line-dark); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: #fff8ef; }
.table .row-title { font-weight: 600; text-decoration: none; }
.table .row-title:hover { color: #c86f12; }
.table .sub { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; }
.empty { padding: 48px 24px; text-align: center; color: var(--muted); }
.empty i { font-size: 34px; display: block; margin-bottom: 8px; color: var(--orange); }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: #eef2f7; color: #475569; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge-new, .badge-open, .badge-planning, .badge-draft, .badge-pending { background: #e0ecff; color: #1d4ed8; }
.badge-contacted, .badge-screening, .badge-sent, .badge-in-progress, .badge-medium { background: #fff1de; color: #b45f0b; }
.badge-qualified, .badge-shortlisted, .badge-review, .badge-partial, .badge-waiting { background: #f3e8ff; color: #7e22ce; }
.badge-proposal, .badge-interview, .badge-offered { background: #fce7f3; color: #be185d; }
.badge-won, .badge-hired, .badge-completed, .badge-paid, .badge-approved, .badge-active, .badge-low { background: #d1fae5; color: #047857; }
.badge-lost, .badge-rejected, .badge-cancelled, .badge-overdue, .badge-inactive, .badge-urgent { background: #fee2e2; color: #b91c1c; }
.badge-on-hold, .badge-closed { background: #e5e7eb; color: #374151; }
.badge-high { background: #ffedd5; color: #c2410c; }
.badge-admin { background: var(--navy); color: #fff; }
.badge-client { background: var(--orange-soft); color: #9a520b; }
.badge-jobseeker { background: #e0f2fe; color: #0369a1; }
.badge-website { background: #fff1de; color: #b45f0b; }
.badge-manual, .badge-portal { background: #e0ecff; color: #1d4ed8; }

.chip { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #eef2f7; font-size: 12px; font-weight: 500; margin: 2px 4px 2px 0; }
.stars { color: var(--orange); letter-spacing: 1px; white-space: nowrap; }
.stars .off { color: #d7dee9; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field label, .label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--text); }
.field label .req { color: var(--orange); }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.input, .field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=url], .field input[type=password],
.field input[type=number], .field input[type=date], .field input[type=file], .field select, .field textarea, .filters input, .filters select {
	width: 100%; padding: 11px 14px; border-radius: 12px; border: 1.5px solid var(--field-line); background: var(--field-bg);
	font: inherit; color: var(--navy); transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .filters input:focus, .filters select:focus, .input:focus {
	outline: none; border-color: var(--orange); background: #fff; box-shadow: 0 0 0 4px rgba(243, 154, 59, .15);
}
.field .error { color: #b91c1c; font-size: 12.5px; margin-top: 6px; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; flex-wrap: wrap; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--orange); }
.range-row { display: flex; align-items: center; gap: 14px; }
.range-row input[type=range] { flex: 1; accent-color: var(--orange); }
.range-row output { font-weight: 700; min-width: 44px; text-align: right; }
.inline-form { display: inline; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line-dark); }
.filters input[type=search] { max-width: 280px; }
.filters select { width: auto; min-width: 150px; }
.filters .btn { padding: 9px 16px; }

/* status tabs (pipeline) */
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.pills a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line-dark); text-decoration: none; font-size: 13.5px; font-weight: 500; background: #fff; }
.pills a b { font-weight: 700; color: var(--muted); font-size: 12px; }
.pills a.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.pills a.active b { color: var(--orange); }

/* ---------- Alerts ---------- */
.alert { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 18px; border-radius: 14px; margin-bottom: 18px; font-size: 14px; font-weight: 500; }
.alert-success { background: #d1fae5; color: #065f46; }
.alert-error { background: #fee2e2; color: #991b1b; }
.alert-info { background: #e0ecff; color: #1e3a8a; }
.alert-close { background: none; border: 0; font-size: 20px; line-height: 1; cursor: pointer; color: inherit; opacity: .6; }
.alert-close:hover { opacity: 1; }

/* ---------- Detail lists ---------- */
dl.details { display: grid; grid-template-columns: 140px 1fr; gap: 10px 16px; margin: 0; font-size: 14px; }
dl.details dt { color: var(--muted); font-weight: 500; }
dl.details dd { margin: 0; word-break: break-word; }
.prose { white-space: pre-wrap; line-height: 1.65; color: var(--text-2); }

/* timeline / thread */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 20px 26px; }
.timeline li::before { content: ""; position: absolute; left: 6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.timeline li::after { content: ""; position: absolute; left: 10.5px; top: 20px; bottom: 0; width: 1px; background: var(--line-dark); }
.timeline li:last-child::after { display: none; }
.timeline .meta { font-size: 12.5px; color: var(--muted); }
.timeline .body { margin-top: 4px; white-space: pre-wrap; }

.thread { display: flex; flex-direction: column; gap: 14px; }
.msg { display: flex; gap: 12px; max-width: 86%; }
.msg .bubble { background: #fff; border: 1px solid var(--line-dark); border-radius: 4px 18px 18px 18px; padding: 12px 16px; }
.msg .bubble .meta { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.msg .bubble .text { white-space: pre-wrap; }
.msg.mine { margin-left: auto; flex-direction: row-reverse; }
.msg.mine .bubble { background: var(--navy); color: #fff; border-color: transparent; border-radius: 18px 4px 18px 18px; }
.msg.mine .bubble .meta { color: #9fb0cc; }

/* progress */
.progress { height: 8px; border-radius: 999px; background: #e8edf4; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--orange), var(--orange-2)); border-radius: inherit; }
.progress-label { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }

/* bar chart (pure CSS) */
.bars { display: flex; align-items: flex-end; gap: 14px; height: 180px; padding-top: 16px; }
.bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.bars .bar span.fill { width: 100%; max-width: 44px; background: var(--navy); border-radius: 10px 10px 4px 4px; min-height: 4px; transition: height .6s cubic-bezier(.22, 1, .36, 1); position: relative; }
.bars .bar:last-child span.fill { background: var(--orange); }
.bars .bar small { font-size: 11.5px; color: var(--muted); }
.bars .bar b { font-size: 12px; font-weight: 700; }

/* pager */
.pager { display: flex; gap: 6px; justify-content: center; padding: 18px; flex-wrap: wrap; }
.pager a, .pager span { display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 10px; border-radius: 10px; border: 1.5px solid var(--line-dark); text-decoration: none; font-size: 14px; font-weight: 500; background: #fff; }
.pager a:hover { border-color: var(--navy); }
.pager .current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* invoice items editor */
.items-table input { padding: 9px 12px; border-radius: 10px; border: 1.5px solid var(--field-line); background: var(--field-bg); font: inherit; width: 100%; }
.items-table input:focus { outline: none; border-color: var(--orange); background: #fff; }
.items-table td { padding: 8px 6px; border-bottom: 0; }
.totals { margin-left: auto; width: 100%; max-width: 340px; font-size: 14px; }
.totals .row { display: flex; justify-content: space-between; padding: 7px 0; }
.totals .row.grand { border-top: 2px solid var(--navy); margin-top: 6px; padding-top: 12px; font-family: var(--font-display); font-size: 20px; font-weight: 800; }

/* job cards */
.job-card { display: flex; flex-direction: column; gap: 10px; }
.job-card h3 { font-size: 18px; }
.job-card .meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--text-2); }
.job-card .meta i { color: var(--orange); }
.job-card .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 12px; }

/* status stepper */
.stepper { display: flex; gap: 6px; flex-wrap: wrap; }
.stepper span { flex: 1; min-width: 70px; text-align: center; font-size: 11.5px; font-weight: 600; padding: 7px 6px; border-radius: 8px; background: #eef2f7; color: var(--muted); }
.stepper span.done { background: var(--orange-soft); color: #9a520b; }
.stepper span.current { background: var(--navy); color: #fff; }
.stepper span.bad { background: #fee2e2; color: #b91c1c; }

/* ---------- Auth pages ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; background: var(--cream); }
.auth-hero {
	background: var(--ink); color: #fff; padding: 48px 56px; display: flex; flex-direction: column; position: relative; overflow: hidden;
	background-image: radial-gradient(700px 420px at 110% 110%, rgba(243, 154, 59, .28), transparent 60%), radial-gradient(500px 300px at -10% -10%, rgba(59, 130, 246, .18), transparent 60%);
}
.auth-hero .logo { color: #fff; }
.auth-hero .hero-copy { margin-top: auto; margin-bottom: auto; max-width: 520px; padding: 40px 0; }
.auth-hero h1 { font-size: clamp(34px, 4.2vw, 56px); font-weight: 800; letter-spacing: -.035em; }
.auth-hero h1 em { font-style: normal; color: var(--orange); }
.auth-hero p { color: #c9d4e6; font-size: 17px; margin-top: 18px; line-height: 1.6; }
.auth-hero .points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.auth-hero .points li { display: flex; gap: 12px; align-items: center; color: #e2e8f2; }
.auth-hero .points i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(243, 154, 59, .16); color: var(--orange); }
.auth-hero .foot { font-size: 13px; color: var(--muted); display: flex; gap: 18px; flex-wrap: wrap; }
.auth-hero .trident { position: absolute; right: -40px; bottom: -30px; width: 340px; opacity: .06; pointer-events: none; }
.auth-panel { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card h2 { font-size: 32px; font-weight: 800; }
.auth-card .lead { color: var(--text-2); margin: 8px 0 28px; }
.auth-card .field { margin-bottom: 18px; }
.auth-card .row-between { display: flex; justify-content: space-between; align-items: center; margin: -4px 0 22px; font-size: 14px; }
.auth-card .row-between a, .auth-card .alt a { color: #c86f12; font-weight: 600; text-decoration: none; }
.auth-card .alt { text-align: center; margin-top: 22px; font-size: 14px; color: var(--text-2); }
.pw-wrap { position: relative; }
.pw-wrap button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; font-size: 17px; }
.auth-mobile-logo { display: none; margin-bottom: 28px; }

/* ---------- Print (invoices) ---------- */
.invoice-doc { background: #fff; border-radius: var(--radius); padding: 40px; border: 1px solid var(--line-dark); }
.invoice-doc .inv-head { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 2px solid var(--navy); }
.invoice-doc .inv-title { font-family: var(--font-display); font-size: 34px; font-weight: 800; color: var(--navy); }
.invoice-doc .parties { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 24px 0; }
.invoice-doc .parties h4 { font-family: var(--font-body); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.invoice-doc .table th { background: var(--navy); color: #fff; }
.invoice-doc .table th:first-child { border-radius: 10px 0 0 10px; }
.invoice-doc .table th:last-child { border-radius: 0 10px 10px 0; }

@media print {
	.sidebar, .topbar, .no-print, .page-head .page-actions, .alert { display: none !important; }
	.app { display: block; }
	body { background: #fff; }
	.content { padding: 0; }
	.invoice-doc { border: 0; padding: 0; }
	.card { box-shadow: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
	.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.grid-main { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
	.app { grid-template-columns: 1fr; }
	.sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: var(--sidebar-w); z-index: 50; transform: translateX(-100%); transition: transform .3s ease; }
	body.nav-open .sidebar { transform: none; box-shadow: var(--shadow); }
	body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(6, 18, 42, .45); z-index: 40; }
	.menu-toggle { display: inline-grid; }
	.topbar { padding: 12px 16px; }
	.content { padding: 20px 16px 40px; }
	.grid-3, .grid-2 { grid-template-columns: 1fr; }
	.auth { grid-template-columns: 1fr; }
	.auth-hero { display: none; }
	.auth-mobile-logo { display: inline-flex; }
}
@media (max-width: 640px) {
	.grid-4 { grid-template-columns: 1fr 1fr; gap: 12px; }
	.stat .stat-value { font-size: 24px; }
	.stat .stat-icon { display: none; }
	.form-grid { grid-template-columns: 1fr; }
	.page-head h1 { font-size: 24px; }
	dl.details { grid-template-columns: 1fr; gap: 2px; }
	dl.details dd { margin-bottom: 10px; }
	.card { padding: 18px; border-radius: 18px; }
	.invoice-doc { padding: 20px; }
	.invoice-doc .parties { grid-template-columns: 1fr; }
	.msg { max-width: 100%; }
	.filters input[type=search] { max-width: none; }
	.filters select { flex: 1; }
}
