/* Grow Together client portal — brand: navy #0B1533, royal blue #1754F8, cyan #00D7FC, tint #EEF3FF, Poppins */
:root {
  --navy: #0b1533; --blue: #1754f8; --blue-d: #0f3fc0; --cyan: #00d7fc; --cyan-d: #00a9cf; --tint: #eef3ff;
  --bg: #f6f8fc; --card: #fff; --line: #e3e8f2; --text: #0b1533; --muted: #5d6680; --radius: 14px;
  --green: #12a150; --red: #d93a3a; --orange: #e07a10; --yellow: #c79a00;
  --shadow: 0 1px 2px rgba(11, 21, 51, .05), 0 6px 24px rgba(11, 21, 51, .06);
  --grad: linear-gradient(135deg, #1754f8 0%, #00d7fc 100%);
  --side: 248px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--text); background: var(--bg); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.25; }
h1 { font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 16px; font-weight: 600; }
h4 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
p { margin: 0 0 .7em; }
code { background: var(--tint); padding: 2px 6px; border-radius: 6px; font-size: 12px; word-break: break-word; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.center { text-align: center; }
.pre { white-space: pre-wrap; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.icon { display: inline-flex; line-height: 0; }
.spacer { flex: 1; }
.late { color: var(--red); font-weight: 600; }
.soon { color: var(--orange); font-weight: 600; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.row-between h3 { margin: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 16px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--navy);
  font: 500 14px 'Poppins', sans-serif; cursor: pointer; transition: .15s; white-space: nowrap; text-decoration: none !important; }
.btn:hover { border-color: #c6d2ec; background: #fafcff; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-d); }
.btn.ghost { background: transparent; }
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn.danger.ghost { background: transparent; color: var(--red); border-color: #f3c9c9; }
.btn.warn { background: #fff4e8; border-color: #f6c58e; color: #9a4f00; }
.btn.wa { background: #25d366; border-color: #25d366; color: #fff; }
.btn.sm { padding: 6px 11px; font-size: 13px; border-radius: 8px; }
.btn.block { width: 100%; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--navy); }
.icon-btn:hover { background: var(--tint); }

/* Pills */
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.tone-green { background: #ddf5e7; color: #0d6e38; } .tone-blue { background: #e1eaff; color: #1240b8; }
.tone-yellow { background: #fff3c4; color: #7a5d00; } .tone-orange { background: #ffe8d1; color: #934c00; }
.tone-red { background: #fde0e0; color: #a42222; } .tone-gray { background: #eceff5; color: #4a5370; }
.tone-purple { background: #efe4ff; color: #5b2bb0; } .tone-teal { background: #d6f5f5; color: #0a6767; }

/* Brand */
.brand { display: flex; align-items: center; gap: 10px; }
.brand-name { font-weight: 800; font-size: 20px; letter-spacing: -.01em; line-height: 1.1; }
.brand.small .brand-name { font-size: 16px; }
.brand-sub { font-size: 9px; letter-spacing: .18em; color: var(--muted); font-weight: 600; }
.navy { color: var(--navy); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Auth */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1.1fr; }
.auth.single { grid-template-columns: 1fr; }
.auth-side { background: var(--navy); color: #fff; position: relative; overflow: hidden; display: flex; align-items: center; padding: 48px; }
.auth-side::after { content: ''; position: absolute; width: 520px; height: 520px; right: -180px; bottom: -200px; border-radius: 50%; background: var(--grad); opacity: .35; filter: blur(10px); }
.auth-side-inner { position: relative; z-index: 1; max-width: 420px; }
.auth-side h2 { font-size: 34px; font-weight: 800; margin: 24px 0 12px; }
.auth-side p { color: #c9d3ef; font-size: 15px; }
.auth-points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; color: #e8eeff; }
.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 20px; background: #fff; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card.center { text-align: center; }
.auth-card.center .brand { justify-content: center; }
.auth-card h1 { margin-top: 28px; font-size: 24px; }
.auth-form { display: grid; gap: 14px; margin-top: 18px; }
.auth-form label { display: grid; gap: 6px; font-weight: 500; font-size: 13px; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; font-size: 13px; }
.foot { margin-top: 40px; }
.form-error { color: var(--red); font-size: 13px; min-height: 0; }
.form-error:empty, .form-ok:empty { display: none; }
.form-ok { color: var(--green); background: #e8f8ef; padding: 10px 12px; border-radius: 10px; font-size: 13px; }

/* Inputs */
input, select, textarea { font: 400 14px 'Poppins', sans-serif; color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; background: #fff; width: 100%; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23, 84, 248, .14); }
textarea { resize: vertical; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--blue); padding: 0; }

/* Layout */
.layout { display: flex; min-height: 100vh; }
.side { width: var(--side); background: #fff; border-right: 1px solid var(--line); position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; padding: 18px 14px; z-index: 30; transition: transform .2s; }
.side-top { padding: 4px 8px 18px; }
.side-client { margin: 0 8px 14px; padding: 10px 12px; background: var(--tint); border-radius: 10px; display: grid; }
.side nav { display: grid; gap: 2px; flex: 1; overflow-y: auto; align-content: start; }
.side nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; color: var(--muted); font-weight: 500; text-decoration: none; }
.side nav a:hover { background: #f3f6fd; color: var(--navy); }
.side nav a.active { background: var(--tint); color: var(--blue); }
.side-foot { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 10px; }
.me { display: flex; gap: 10px; align-items: center; padding: 0 6px; min-width: 0; }
.me > div { min-width: 0; } .me .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 12px; }
.content { flex: 1; margin-left: var(--side); min-width: 0; }
.topbar { display: none; }
.main { padding: 28px 32px 60px; max-width: 1280px; outline: none; }
.scrim { display: none; }
.boot { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.loading { display: flex; align-items: center; gap: 12px; color: var(--muted); padding: 30px 0; }
.spinner { width: 22px; height: 22px; border: 3px solid var(--tint); border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head p { margin: 0; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 8px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); margin-bottom: 18px; }
.card > .btn { margin-top: 6px; }
.card-head { margin-bottom: 12px; }
.embed-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.embed-head h3 { margin: 0; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; align-items: start; }
.dash-grid .card { margin: 0; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stats-grid.small { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.stats-grid.small .stat { box-shadow: none; background: var(--tint); border-color: transparent; padding: 10px 12px; }
.stat-label { font-size: 12px; color: var(--muted); font-weight: 500; }
.stat-value { font-size: 24px; font-weight: 700; margin-top: 2px; letter-spacing: -.01em; }
.stats-grid.small .stat-value { font-size: 18px; }
.stat-sub { font-size: 12px; color: var(--muted); }
.stat.tone-down .stat-sub { color: var(--red); }
.stat:first-child { border-top: 3px solid var(--blue); }

.list { list-style: none; padding: 0; margin: 0; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #eef1f7; }
.list li:last-child { border-bottom: 0; }
.list li.stack { display: grid; gap: 6px; }
.list.plain li { padding: 7px 0; }
.quote { margin-top: 4px; padding: 6px 10px; border-left: 3px solid var(--cyan); background: #f4fbff; border-radius: 0 8px 8px 0; font-size: 13px; }

.callout { background: var(--tint); border: 1px solid #d5e0fb; border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; }
.callout.big { padding: 18px 20px; }
.callout.action { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--navy); background: linear-gradient(135deg, #e7eeff, #e3fbff); text-decoration: none; }
.callout ol { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 6px; }

.empty { text-align: center; padding: 50px 20px; background: #fff; border: 1px dashed #cfd8ea; border-radius: var(--radius); }
.empty-art { width: 60px; height: 60px; margin: 0 auto 12px; border-radius: 16px; background: var(--tint); color: var(--blue); display: flex; align-items: center; justify-content: center; }

/* Toolbar */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters select { width: auto; min-width: 150px; padding: 7px 10px; }
.legend { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; width: 100%; }
.legend-item { font-size: 13px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.seg button { border: 0; background: transparent; padding: 7px 14px; font: 500 13px 'Poppins', sans-serif; cursor: pointer; color: var(--muted); }
.seg button.on { background: var(--tint); color: var(--blue); }
.seg.right { float: right; margin: -8px 0 12px; }
.month-nav { display: flex; align-items: center; gap: 8px; }
.month-label { min-width: 150px; text-align: center; font-size: 17px; }

/* Table */
.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; clear: both; }
.card .table-wrap { box-shadow: none; }
.search { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--muted); }
.search input { border: 0; padding: 4px 0; box-shadow: none !important; }
.table-scroll { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); background: #fafbfe; padding: 10px 14px; border-bottom: 1px solid var(--line); cursor: pointer; user-select: none; white-space: nowrap; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid #eef1f7; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; }
.tbl tr.clickable { cursor: pointer; }
.tbl tr.clickable:hover td { background: #f8faff; }
.who { display: flex; align-items: center; gap: 10px; }
.who .avatar { width: 32px; height: 32px; border-radius: 9px; font-size: 11px; }
.prog-cell { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.prog-cell.big { margin: 10px 0; }
.progress { flex: 1; height: 8px; background: #e8edf7; border-radius: 99px; overflow: hidden; }
.progress > div { height: 100%; background: var(--grad); border-radius: 99px; }

/* Board */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 10px; clear: both; }
.board-col { background: #eef2f9; border-radius: var(--radius); padding: 10px; min-height: 200px; transition: background .15s; }
.board-col.over { background: #dfe8fd; outline: 2px dashed var(--blue); }
.board-head { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 10px; }
.board-card { background: #fff; border-radius: 10px; padding: 11px 12px; margin-bottom: 8px; box-shadow: 0 1px 2px rgba(11,21,51,.08); cursor: grab; border: 1px solid transparent; }
.board-card:hover { border-color: #c8d5f3; }
.board-card.dragging { opacity: .5; }
.card-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; font-size: 12px; }

/* Calendar */
.cal-scroll { overflow-x: auto; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(120px, 1fr)); background: var(--line); gap: 1px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-width: 840px; }
.cal-wd { background: #fafbfe; padding: 8px 10px; font-size: 12px; font-weight: 600; color: var(--muted); }
.cal-day { background: #fff; min-height: 118px; padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.cal-day.out { background: #fafbfd; }
.cal-day.can-add { cursor: pointer; }
.cal-day.can-add:hover { background: #fbfcff; }
.cal-day.today { background: #f5f8ff; }
.cal-day.today .cal-num { color: var(--blue); font-weight: 700; }
.cal-num { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 600; width: 100%; border-radius: 6px; padding: 1px 6px; }
.cal-add { opacity: 0; color: var(--blue); font-size: 16px; }
.cal-day:hover .cal-add { opacity: 1; }
.chip { display: flex; align-items: center; gap: 5px; width: 100%; text-align: left; border: 0; border-left: 3px solid var(--muted); background: #f1f3f8; border-radius: 6px; padding: 4px 6px; font: 500 11.5px 'Poppins', sans-serif; color: var(--navy); cursor: pointer; }
.chip:hover { filter: brightness(.97); }
.chip-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-fmt { font-size: 10px; opacity: .7; }
.chip.status-idea { border-color: #9aa3b8; background: #f1f3f8; }
.chip.status-in-design { border-color: #7c4ddb; background: #f3ecff; }
.chip.status-awaiting-approval { border-color: var(--orange); background: #fff2e3; }
.chip.status-changes-requested { border-color: var(--red); background: #fde8e8; }
.chip.status-approved { border-color: var(--green); background: #e3f7eb; }
.chip.status-scheduled { border-color: var(--blue); background: #e5ecff; }
.chip.status-posted { border-color: #0a8f8f; background: #dcf5f5; }

/* Posts / reports */
.post-view { display: grid; gap: 14px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; color: var(--muted); font-size: 13px; }
.caption { background: #fafbfe; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.hashtags { color: var(--blue); font-size: 13px; margin: 0; }
.review { background: #f4fbff; border: 1px solid #c8eefa; border-radius: 12px; padding: 14px; display: grid; gap: 10px; }
.report-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-bottom: 14px; }
.report-card { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; cursor: pointer; font-family: inherit; box-shadow: var(--shadow); transition: .15s; }
.report-card:hover { border-color: var(--blue); transform: translateY(-1px); }
.rc-top { display: flex; justify-content: space-between; align-items: center; font-size: 16px; }
.rc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.rc-stats div { display: grid; }
.rc-stats b { font-size: 17px; }
.chart-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.chart { width: 100%; height: auto; }
.chart-val { font-size: 11px; fill: var(--navy); font-weight: 600; font-family: Poppins, sans-serif; }
.chart-lab { font-size: 11px; fill: var(--muted); font-family: Poppins, sans-serif; }
.scope { margin-top: 10px; }
.thread { margin-top: 12px; }
.thread summary { cursor: pointer; color: var(--blue); font-weight: 500; display: inline-flex; gap: 6px; align-items: center; }

/* Comments */
.comments { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; }
.comment-list { display: grid; gap: 8px; max-height: 280px; overflow-y: auto; margin-bottom: 10px; }
.comment { background: #f4f6fb; border-radius: 12px; padding: 8px 12px; max-width: 85%; }
.comment.mine { background: var(--tint); justify-self: end; }
.comment-meta { font-size: 12px; }
.comment-body { white-space: pre-wrap; word-break: break-word; }
.comment-new { display: flex; gap: 8px; align-items: flex-end; }

/* Modal */
.modal-back { position: fixed; inset: 0; background: rgba(11, 21, 51, .45); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; z-index: 100; overflow-y: auto; animation: fade .15s; }
.modal { background: #fff; border-radius: 18px; width: 100%; max-width: 520px; box-shadow: 0 20px 60px rgba(11, 21, 51, .3); animation: pop .18s; }
.modal.wide { max-width: 760px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px 8px; gap: 12px; }
.modal-head h3 { margin: 0; font-size: 18px; }
.modal-body { padding: 8px 22px 22px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.field { display: grid; gap: 5px; align-content: start; }
.field.full, .form-grid > .form-error, .form-actions.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 500; }
.field.inline { display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 8px; grid-column: 1 / -1; }
.req { color: var(--red); }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 13px; cursor: pointer; }
.check:has(input:checked) { background: var(--tint); border-color: #b9caf7; color: var(--blue); }
.form-actions { display: flex; gap: 10px; align-items: center; justify-content: flex-end; margin-top: 6px; flex-wrap: wrap; }
.quick-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.inline-form { display: flex; gap: 8px; align-items: center; margin: 10px 0; }
.inline-form input, .inline-form select { max-width: 320px; }

/* People & HR */
.nav-section { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #9aa3b8; padding: 14px 12px 4px; }
a.me { text-decoration: none; color: var(--navy); border-radius: 10px; padding: 6px; margin: 0 -0px; }
a.me:hover, a.me.active { background: var(--tint); }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.two-col > .card { margin-bottom: 18px; }
.checkin { background: linear-gradient(135deg, #0b1533 0%, #13265e 100%); color: #fff; border: 0; }
.checkin .muted { color: #b8c4e6; }
.checkin h3 { color: #fff; margin: 2px 0 6px; font-size: 18px; }
.checkin .meta-row { color: #dfe6ff; }
.checkin select { width: auto; background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.25); }
.checkin select option { color: var(--navy); }
.checkin .btn:not(.primary) { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.3); }
.checkin .btn.primary { background: var(--cyan); border-color: var(--cyan); color: var(--navy); font-weight: 600; }
.checkin-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.checkin-right { display: grid; justify-items: end; gap: 4px; }
.clock { font-size: 26px; font-weight: 700; }
.inline-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-link { background: var(--tint); color: var(--blue); padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; }
.filters .check { background: #fff; }
.row-between input[type=date] { width: auto; }
@media (max-width: 900px) { .checkin-right { justify-items: start; } }

.setup-steps { padding-left: 20px; display: grid; gap: 8px; margin: 12px 0 16px; }

/* Toasts */
#toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 200; }
.toast { background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.2); opacity: 0; transform: translateY(10px); transition: .25s; font-size: 14px; }
.toast.error { background: var(--red); }
.toast.show { opacity: 1; transform: none; }

/* Mobile */
@media (max-width: 900px) {
  .side { transform: translateX(-100%); box-shadow: 0 0 40px rgba(0,0,0,.2); }
  body.nav-open .side { transform: none; }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(11,21,51,.35); z-index: 25; }
  .content { margin-left: 0; }
  .topbar { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
  .main { padding: 20px 16px 60px; }
  h1 { font-size: 22px; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-value { font-size: 19px; }
  .dash-grid { grid-template-columns: 1fr; }
  .tbl thead { display: none; }
  .tbl tr { display: block; border-bottom: 1px solid var(--line); padding: 6px 0; }
  .tbl td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 6px 14px; text-align: right; }
  .tbl td::before { content: attr(data-label); color: var(--muted); font-size: 12px; text-align: left; }
  .tbl .r { text-align: right; }
  .inline-form { flex-wrap: wrap; }
  .modal-back { padding: 0; align-items: flex-end; }
  .modal { border-radius: 18px 18px 0 0; max-height: 92vh; overflow-y: auto; }
  .seg.right { float: none; margin: 0 0 12px; }
}

/* Print reports as PDF */
@media print {
  .side, .topbar, .no-print, .modal-head .icon-btn, .main { display: none !important; }
  .modal-back { position: static; background: none; padding: 0; }
  .modal { box-shadow: none; max-width: none; }
  body { background: #fff; }
}
