/* ==========================================================================
   NESTPRO — Project Management Portal design system
   Lemon Tree Hotel, Darjeeling
   Palette: deep navy, royal blue, NESTPRO orange + the six calendar states.
   ========================================================================== */

:root {
  --navy: #172554;
  --navy-700: #1d2f68;
  --navy-600: #24397c;
  --blue: #2563EB;
  --blue-soft: #eaf0fe;
  --orange: #F28C28;
  --orange-soft: #fdf1e3;
  --green: #16A34A;
  --green-soft: #e8f6ee;
  --yellow: #EAB308;
  --yellow-soft: #fdf6e0;
  --red: #DC2626;
  --red-soft: #fdeaea;
  --purple: #7C3AED;
  --purple-soft: #f1ecfd;
  --grey: #64748B;
  --grey-soft: #eef1f6;

  --bg: #F5F7FB;
  --surface: #FFFFFF;
  --line: #E3E8F0;
  --text: #172554;
  --muted: #64748B;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(23, 37, 84, .06), 0 1px 3px rgba(23, 37, 84, .05);
  --shadow: 0 4px 14px rgba(23, 37, 84, .07);
  --shadow-lg: 0 18px 40px rgba(23, 37, 84, .16);
  --sidebar-w: 254px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, h4 { margin: 0 0 .4rem; font-weight: 650; letter-spacing: -.015em; color: var(--navy); }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.18rem; }
h3 { font-size: 1.02rem; }
h4 { font-size: .93rem; }
p { margin: 0 0 .7rem; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
small { font-size: .8rem; }
code, pre { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .82rem; }

/* ---------------------------------------------------------------- shell */

.app { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background: linear-gradient(180deg, var(--navy) 0%, #132049 100%);
  color: #d7dff2;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 40;
}

.brand { padding: 18px 18px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand__logo {
  background: #fff;
  border-radius: 10px;
  padding: 10px 13px;
  box-shadow: 0 6px 18px rgba(0,0,0,.22);
}
.brand__logo img { display: block; width: 100%; height: auto; }
.brand__sub { font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; color: #8fa2cc; margin-top: 10px; }

.nav { padding: 14px 12px; flex: 1; overflow-y: auto; }
.nav__label { font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; color: #7d90bd; padding: 12px 10px 6px; }
.nav__item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: 10px;
  color: #c9d4ee; font-size: .9rem; font-weight: 500;
  margin-bottom: 2px; transition: background .16s, color .16s;
}
.nav__item:hover { background: rgba(255,255,255,.07); color: #fff; text-decoration: none; }
.nav__item.is-active { background: var(--orange); color: #1c1206; font-weight: 650; box-shadow: 0 6px 16px rgba(242,140,40,.3); }
.nav__item .ico { width: 18px; height: 18px; flex: 0 0 18px; }
.nav__badge { margin-left: auto; background: var(--red); color: #fff; font-size: .68rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.nav__item.is-active .nav__badge { background: rgba(0,0,0,.28); }

.sidebar__foot { padding: 14px; border-top: 1px solid rgba(255,255,255,.08); font-size: .74rem; color: #8fa2cc; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  height: 62px; background: var(--surface); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px; padding: 0 22px;
  position: sticky; top: 0; z-index: 30;
}
.topbar__titles { min-width: 0; }
.topbar__title { font-weight: 650; font-size: 1.02rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__meta { font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__spacer { flex: 1; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; position: relative; color: var(--navy);
}
.icon-btn:hover { background: var(--grey-soft); }
.icon-btn__dot {
  position: absolute; top: 5px; right: 5px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: var(--red); color: #fff; font-size: .62rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--blue-soft); color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .82rem;
}
.user-chip { display: flex; align-items: center; gap: 10px; }
.user-chip__name { font-size: .85rem; font-weight: 600; line-height: 1.15; }
.user-chip__role { font-size: .72rem; color: var(--muted); }

.content { padding: 24px; flex: 1; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; margin-bottom: 20px; }
.page-head__text { margin-right: auto; }
.page-head p { color: var(--muted); margin: 0; font-size: .88rem; }
.hamburger { display: none; }
.sidebar__close { display: none; }

/* ---------------------------------------------------------------- cards */

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); margin-bottom: 18px; min-width: 0;
}
.card__head {
  padding: 15px 18px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.card__head h2, .card__head h3 { margin: 0; }
.card__head .spacer { flex: 1; }
.card__body { padding: 18px; }
.card__body--flush { padding: 0; }
.card__foot { padding: 13px 18px; border-top: 1px solid var(--line); background: #fbfcfe; border-radius: 0 0 var(--radius) var(--radius); }

.grid { display: grid; gap: 16px; }
.grid > * { min-width: 0; }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* ---------------------------------------------------------------- KPI */

.kpi {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 17px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform .15s, box-shadow .15s;
}
.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.kpi::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent, var(--blue)); }
.kpi__label { font-size: .73rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; }
.kpi__value { font-size: 1.72rem; font-weight: 700; line-height: 1.15; margin-top: 6px; color: var(--navy); }
.kpi__hint { font-size: .76rem; color: var(--muted); margin-top: 4px; }
.kpi--green  { --accent: var(--green); }
.kpi--red    { --accent: var(--red); }
.kpi--yellow { --accent: var(--yellow); }
.kpi--blue   { --accent: var(--blue); }
.kpi--purple { --accent: var(--purple); }
.kpi--orange { --accent: var(--orange); }
.kpi--grey   { --accent: var(--grey); }

/* ---------------------------------------------------------------- badges */

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .73rem; font-weight: 650; padding: 3px 9px; border-radius: 999px;
  border: 1px solid transparent; white-space: nowrap;
}
.badge--green  { background: var(--green-soft);  color: #12692f; border-color: #bfe6cc; }
.badge--yellow { background: var(--yellow-soft); color: #8a6a03; border-color: #f0dfa3; }
.badge--red    { background: var(--red-soft);    color: #9c1c1c; border-color: #f3c4c4; }
.badge--blue   { background: var(--blue-soft);   color: #1b4bb8; border-color: #c4d6fb; }
.badge--purple { background: var(--purple-soft); color: #5b27b8; border-color: #d8c9f7; }
.badge--grey   { background: var(--grey-soft);   color: #47536b; border-color: #dbe1ea; }
.badge--ghost  { background: transparent; border: 1px dashed #cbd5e1; color: var(--muted); margin-left: 5px; }

.pill { font-size: .69rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; text-transform: uppercase; letter-spacing: .04em; }
.pill--urgent { background: var(--red); color: #fff; }
.pill--high   { background: var(--orange); color: #241202; }
.pill--medium { background: var(--blue-soft); color: #1b4bb8; }
.pill--low    { background: var(--grey-soft); color: #47536b; }

.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot--green { background: var(--green); } .dot--yellow { background: var(--yellow); }
.dot--red { background: var(--red); }     .dot--blue { background: var(--blue); }
.dot--purple { background: var(--purple); } .dot--grey { background: var(--grey); }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 15px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-size: .87rem; font-weight: 600; cursor: pointer;
  transition: background .15s, box-shadow .15s, transform .05s; white-space: nowrap; text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: #1d4ed8; text-decoration: none; }
.btn--brand { background: var(--orange); color: #241202; }
.btn--brand:hover { background: #e07d18; text-decoration: none; }
.btn--ghost { background: var(--surface); border-color: var(--line); color: var(--navy); }
.btn--ghost:hover { background: var(--grey-soft); text-decoration: none; }
.btn--danger { background: var(--red); color: #fff; }
.btn--danger:hover { background: #b91c1c; text-decoration: none; }
.btn--success { background: var(--green); color: #fff; }
.btn--success:hover { background: #15803d; text-decoration: none; }
.btn--sm { padding: 6px 11px; font-size: .8rem; border-radius: 8px; }
.btn--lg { padding: 12px 22px; font-size: .95rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }

/* ---------------------------------------------------------------- forms */

.field { margin-bottom: 15px; }
.field > label, .label { display: block; font-size: .8rem; font-weight: 650; color: var(--navy); margin-bottom: 6px; }
.label .req { color: var(--red); }
.input, .select, .textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: .9rem; color: var(--text); background: var(--surface);
  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(37,99,235,.13);
}
.textarea { min-height: 88px; resize: vertical; }
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: var(--red); }
.hint { font-size: .76rem; color: var(--muted); margin-top: 5px; }
.error-text { font-size: .77rem; color: var(--red); margin-top: 5px; font-weight: 500; }
.form-grid { display: grid; gap: 0 16px; }
.form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; margin: 0 0 18px; }
legend { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 0 8px; }
.check { display: flex; align-items: flex-start; gap: 9px; font-size: .87rem; }
.check input { margin-top: 3px; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.filters .field { margin-bottom: 0; min-width: 150px; }

/* ---------------------------------------------------------------- tables */

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
table.table { width: 100%; border-collapse: collapse; font-size: .87rem; }
table.table th {
  text-align: left; padding: 11px 14px; background: #f7f9fd; color: var(--muted);
  font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.table tbody tr:hover { background: #fafbfe; }
table.table tbody tr:last-child td { border-bottom: none; }
table.table .num { text-align: right; font-variant-numeric: tabular-nums; }
table.table.compact td, table.table.compact th { padding: 8px 10px; }

/* ---------------------------------------------------------------- progress */

.bar { height: 8px; border-radius: 999px; background: var(--grey-soft); overflow: hidden; min-width: 90px; }
.bar__fill { height: 100%; border-radius: 999px; background: var(--blue); transition: width .3s; }
.bar__fill--green { background: var(--green); }
.bar__fill--orange { background: var(--orange); }
.bar__fill--red { background: var(--red); }
.bar-row { display: flex; align-items: center; gap: 10px; }
.bar-row .bar { flex: 1; }
.bar-row span { font-size: .78rem; font-weight: 650; font-variant-numeric: tabular-nums; min-width: 42px; text-align: right; }

/* ---------------------------------------------------------------- alerts */

.alert { padding: 12px 15px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: .88rem; border: 1px solid; display: flex; gap: 10px; align-items: flex-start; }
.alert--success { background: var(--green-soft); border-color: #bfe6cc; color: #12692f; }
.alert--danger  { background: var(--red-soft); border-color: #f3c4c4; color: #9c1c1c; }
.alert--warning { background: var(--yellow-soft); border-color: #f0dfa3; color: #8a6a03; }
.alert--info    { background: var(--blue-soft); border-color: #c4d6fb; color: #1b4bb8; }

.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty h3 { color: var(--navy); margin-bottom: 6px; }
.empty p { font-size: .88rem; margin-bottom: 14px; }

/* ---------------------------------------------------------------- target cards */

.task { border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 16px; margin-bottom: 12px; background: var(--surface); position: relative; transition: box-shadow .15s; }
.task:hover { box-shadow: var(--shadow); }
.task::before { content: ""; position: absolute; left: -1px; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; background: var(--state, var(--blue)); }
.task--green { --state: var(--green); } .task--yellow { --state: var(--yellow); }
.task--red { --state: var(--red); }     .task--blue { --state: var(--blue); }
.task--purple { --state: var(--purple); } .task--grey { --state: var(--grey); }
.task__top { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.task__code { font-size: .76rem; font-weight: 700; color: var(--muted); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.task__title { font-size: .98rem; font-weight: 650; color: var(--navy); margin: 2px 0 4px; }
.task__loc { font-size: .8rem; color: var(--muted); }
.task__meta { display: flex; gap: 14px; flex-wrap: wrap; margin: 10px 0 12px; font-size: .8rem; }
.task__meta b { font-weight: 650; color: var(--navy); }
.task__foot { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.meta-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .86rem; }
.meta-row:last-child { border-bottom: none; }
.meta-row dt { color: var(--muted); margin: 0; }
.meta-row dd { margin: 0; font-weight: 600; text-align: right; }

/* ---------------------------------------------------------------- photos */

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(146px, 1fr)); gap: 11px; }
.photo { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: #f8fafc; position: relative; }
.photo img { width: 100%; height: 118px; object-fit: cover; display: block; cursor: zoom-in; }
.photo__cap { padding: 6px 8px; font-size: .73rem; color: var(--muted); }
.photo__tag { position: absolute; top: 6px; left: 6px; background: rgba(23,37,84,.85); color: #fff; font-size: .62rem; padding: 2px 7px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.caption-block { margin-top: 10px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: var(--radius-sm); background: #f8fafc; }
.photo--add { display: flex; align-items: center; justify-content: center; min-height: 118px; border-style: dashed; color: var(--muted); cursor: pointer; font-size: .8rem; text-align: center; padding: 10px; }
.photo--add:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.compare figure { margin: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: #f8fafc; }
.compare img { width: 100%; height: 230px; object-fit: cover; display: block; }
.compare figcaption { padding: 8px 12px; font-size: .78rem; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }

/* lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(9,14,30,.9); display: none; align-items: center; justify-content: center; z-index: 200; padding: 24px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 86vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox__close { position: absolute; top: 18px; right: 22px; }

/* ---------------------------------------------------------------- calendar */

.cal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cal__bar { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.cal__title { font-size: 1.08rem; font-weight: 700; color: var(--navy); min-width: 190px; }
.cal__nav { display: flex; gap: 6px; }
.cal__legend { display: flex; gap: 14px; flex-wrap: wrap; padding: 11px 16px; border-bottom: 1px solid var(--line); background: #fbfcfe; font-size: .77rem; color: var(--muted); }
.cal__legend span { display: inline-flex; align-items: center; gap: 6px; }

.cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal__dow { padding: 9px 10px; font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; background: #f7f9fd; border-bottom: 1px solid var(--line); text-align: center; }
.cal__cell { min-height: 118px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 7px; cursor: pointer; transition: background .14s; position: relative; }
.cal__cell:nth-child(7n+7) { border-right: none; }
.cal__cell:hover { background: #f6f9ff; }
.cal__cell.is-out { background: #fafbfd; color: #b6c0d1; cursor: default; }
.cal__cell.is-today { background: var(--orange-soft); box-shadow: inset 0 0 0 2px var(--orange); }
.cal__cell.has-events { background: #fcfdff; }
.cal__date { font-size: .8rem; font-weight: 700; color: var(--navy); margin-bottom: 5px; display: flex; align-items: center; gap: 6px; }
.cal__cell.is-out .cal__date { color: #c2cad8; font-weight: 500; }
.cal__count { margin-left: auto; font-size: .64rem; background: var(--grey-soft); color: var(--muted); border-radius: 999px; padding: 1px 6px; font-weight: 700; }
.chip {
  display: block; font-size: .685rem; line-height: 1.25; padding: 3px 6px; border-radius: 5px;
  margin-bottom: 3px; border-left: 3px solid; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--navy); background: #f6f8fc;
}
.chip--green  { border-color: var(--green);  background: var(--green-soft); }
.chip--yellow { border-color: var(--yellow); background: var(--yellow-soft); }
.chip--red    { border-color: var(--red);    background: var(--red-soft); }
.chip--blue   { border-color: var(--blue);   background: var(--blue-soft); }
.chip--purple { border-color: var(--purple); background: var(--purple-soft); }
.chip--grey   { border-color: var(--grey);   background: var(--grey-soft); color: var(--muted); text-decoration: line-through; }
.cal__more { font-size: .66rem; color: var(--blue); font-weight: 650; }

.cal__week { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 10px; }
.cal__daycol { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px; min-height: 190px; }
.cal__daycol.is-today { border-color: var(--orange); box-shadow: 0 0 0 2px var(--orange-soft); }
.cal__daycol h4 { font-size: .8rem; margin-bottom: 9px; color: var(--navy); }

/* side panel */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--surface); box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .22s ease; z-index: 120; display: flex; flex-direction: column; }
.drawer.is-open { transform: translateX(0); }
.drawer__head { padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.drawer__body { padding: 16px 18px; overflow-y: auto; flex: 1; }
.scrim { position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 110; opacity: 0; pointer-events: none; transition: opacity .2s; }
.scrim.is-open { opacity: 1; pointer-events: auto; }

/* ---------------------------------------------------------------- modal */

.modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 150; padding: 18px; }
.modal.is-open { display: flex; }
.modal__panel { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg); width: min(560px, 100%); max-height: 88vh; overflow-y: auto; }
.modal__head { padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; }
.modal__body { padding: 18px; }
.modal__foot { padding: 14px 18px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; }

/* ---------------------------------------------------------------- thread */

.thread { display: flex; flex-direction: column; gap: 12px; }
.msg { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; background: #fbfcfe; }
.msg--own { background: var(--blue-soft); border-color: #c4d6fb; }
.msg--staff { background: var(--orange-soft); border-color: #f2d7b3; }
.msg__who { display: flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; color: var(--navy); margin-bottom: 5px; }
.msg__when { margin-left: auto; font-weight: 500; color: var(--muted); font-size: .72rem; }
.msg__body { font-size: .88rem; white-space: pre-wrap; }

/* ---------------------------------------------------------------- charts */

.chart { display: flex; align-items: flex-end; gap: 7px; height: 168px; padding-top: 10px; }
.chart__col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.chart__bars { display: flex; align-items: flex-end; gap: 3px; height: 132px; width: 100%; justify-content: center; }
.chart__bar { width: 13px; border-radius: 4px 4px 0 0; background: var(--blue); min-height: 2px; position: relative; }
.chart__bar--actual { background: var(--green); }
.chart__bar--plan { background: #93b4f5; }
.chart__label { font-size: .68rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.chart-legend { display: flex; gap: 16px; font-size: .76rem; color: var(--muted); margin-top: 10px; flex-wrap: wrap; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }

.hbar { margin-bottom: 11px; }
.hbar__top { display: flex; justify-content: space-between; font-size: .82rem; margin-bottom: 4px; }
.hbar__track { height: 9px; background: var(--grey-soft); border-radius: 999px; overflow: hidden; display: flex; }
.hbar__official { height: 100%; background: var(--green); }
.hbar__reported { height: 100%; background: #93b4f5; }

.donut-wrap { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.donut { width: 148px; height: 148px; border-radius: 50%; position: relative; flex: 0 0 148px; }
.donut::after { content: ""; position: absolute; inset: 26px; background: var(--surface); border-radius: 50%; }
.donut__center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 2; }
.donut__center b { font-size: 1.4rem; color: var(--navy); }
.donut__center span { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* ---------------------------------------------------------------- misc */

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tab { padding: 9px 15px; font-size: .86rem; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tab:hover { color: var(--navy); text-decoration: none; }
.tab.is-active { color: var(--blue); border-bottom-color: var(--blue); }

.pagination { display: flex; gap: 6px; justify-content: center; padding: 16px 0 4px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: .82rem; background: var(--surface); }
.pagination .is-current { background: var(--blue); color: #fff; border-color: var(--blue); font-weight: 650; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 4px; bottom: 4px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 15px 26px; }
.timeline li::before { content: ""; position: absolute; left: 2px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 3px solid var(--blue); }
.timeline li.t--red::before { border-color: var(--red); }
.timeline li.t--green::before { border-color: var(--green); }
.timeline li.t--purple::before { border-color: var(--purple); }
.timeline li.t--grey::before { border-color: var(--grey); }
.timeline__when { font-size: .72rem; color: var(--muted); }
.timeline__what { font-size: .86rem; }

.drop-zone { border: 2px dashed var(--line); border-radius: var(--radius); padding: 22px; text-align: center; color: var(--muted); background: #fbfcfe; cursor: pointer; }
.drop-zone.is-over { border-color: var(--orange); background: var(--orange-soft); }
.pending-shots { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.pending-shots figure { margin: 0; position: relative; }
.pending-shots img { width: 66px; height: 66px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.pending-shots button { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; border: none; background: var(--red); color: #fff; cursor: pointer; font-size: .72rem; line-height: 1; }

.stat-list { list-style: none; margin: 0; padding: 0; }
.stat-list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .86rem; }
.stat-list li:last-child { border-bottom: none; }
.stat-list .who { font-weight: 600; }
.stat-list .when { margin-left: auto; color: var(--muted); font-size: .76rem; white-space: nowrap; }

.muted { color: var(--muted); }
.small { font-size: .8rem; }
.right { text-align: right; }
.center { text-align: center; }
.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-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; }
.flex { display: flex; gap: 10px; align-items: center; }
.flex-between { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.hidden { display: none !important; }

/* ---------------------------------------------------------------- login */

.auth-body { background: #eef2f9; }

.auth-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(430px, .92fr);
  background: var(--bg);
}

.auth-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: 42px clamp(34px, 4.6vw, 72px) 34px;
  color: #dbe4f7;
  background:
    radial-gradient(110% 80% at 90% 4%, rgba(242,140,40,.20), transparent 54%),
    radial-gradient(90% 80% at 0% 100%, rgba(37,99,235,.36), transparent 62%),
    linear-gradient(152deg, #101b3d 0%, #172554 48%, #1e3a7c 100%);
}
/* Blueprint grid, faded toward the edges. */
.auth-hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(125% 105% at 18% 0%, #000 20%, transparent 76%);
          mask-image: radial-gradient(125% 105% at 18% 0%, #000 20%, transparent 76%);
}
.auth-hero::after {
  content: "";
  position: absolute; z-index: -1;
  width: min(620px, 64vw); aspect-ratio: 1;
  right: -190px; bottom: -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242,140,40,.22) 0%, rgba(242,140,40,.06) 52%, transparent 70%);
}

.auth-hero__top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.auth-hero__mark {
  width: fit-content; background: #fff; border-radius: 14px; padding: 12px 16px;
  box-shadow: 0 14px 34px rgba(4,10,30,.38);
}
.auth-hero__mark img { display: block; width: clamp(150px, 15vw, 196px); height: auto; }
.auth-hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 13px; border-radius: 999px;
  font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #c7d3ee; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  white-space: nowrap;
}
.auth-hero__badge .pulse {
  width: 7px; height: 7px; border-radius: 50%; background: #34D399;
  box-shadow: 0 0 0 4px rgba(52,211,153,.16);
}

.auth-hero__body { position: relative; max-width: 560px; padding: 8px 0; }
.auth-hero__eyebrow {
  display: flex; align-items: center; gap: 11px;
  margin: 0 0 18px; font-size: .7rem; font-weight: 700;
  letter-spacing: .17em; text-transform: uppercase; color: #9db1e0;
}
.auth-hero__eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--orange); }
.auth-hero h1 {
  margin: 0 0 20px; max-width: 540px;
  font-size: clamp(2.05rem, 3.5vw, 3.1rem); line-height: 1.06;
  font-weight: 720; letter-spacing: -.032em; color: #fff;
}
.auth-hero h1 span {
  display: block;
  background: linear-gradient(92deg, #ffffff 8%, #b7c7ea 92%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.auth-hero__lede { max-width: 460px; margin: 0 0 30px; color: #b9c7e8; font-size: .97rem; line-height: 1.65; }

.auth-hero__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 15px; max-width: 470px; }
.auth-hero__points li { display: flex; align-items: flex-start; gap: 13px; }
.auth-hero__points .ic {
  flex: 0 0 auto; width: 37px; height: 37px; border-radius: 11px;
  display: grid; place-items: center;
  color: #f6b26a; background: rgba(242,140,40,.13);
  border: 1px solid rgba(242,140,40,.28);
}
.auth-hero__points svg { width: 17px; height: 17px; }
.auth-hero__points b { display: block; color: #eef2fb; font-size: .88rem; font-weight: 650; letter-spacing: -.005em; }
.auth-hero__points span { color: #9fb0d8; font-size: .8rem; line-height: 1.45; }

.auth-hero__foot {
  position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
  padding-top: 22px; border-top: 1px solid rgba(255,255,255,.09);
  font-size: .73rem; letter-spacing: .02em; color: #8fa3d0;
}
.auth-hero__foot .sep { width: 4px; height: 4px; border-radius: 50%; background: #5a6f9f; }

.auth-portal {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px;
  padding: 48px clamp(20px, 4vw, 56px);
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(242,140,40,.07), transparent 58%),
    linear-gradient(180deg, #f7f9fd 0%, #edf1f8 100%);
}
.auth-card {
  width: min(432px, 100%);
  padding: clamp(22px, 2.6vw, 34px);
  background: var(--surface);
  border: 1px solid rgba(23,37,84,.08);
  border-radius: 22px;
  box-shadow: 0 1px 2px rgba(23,37,84,.05), 0 24px 60px -18px rgba(23,37,84,.28);
  animation: auth-rise .5s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes auth-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.auth-switch {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px;
  padding: 5px;
  background: #eef1f7;
  border: 1px solid rgba(23,37,84,.06);
  border-radius: 13px;
}
.auth-switch a {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 6px; border-radius: 9px;
  font-size: .79rem; font-weight: 650; color: var(--muted); white-space: nowrap;
  transition: color .18s, background .18s, box-shadow .18s;
}
.auth-switch svg { width: 15px; height: 15px; opacity: .65; flex: 0 0 auto; transition: opacity .18s, color .18s; }
.auth-switch a:hover { text-decoration: none; color: var(--navy); }
.auth-switch a.is-active {
  background: #fff; color: var(--navy);
  box-shadow: var(--shadow-sm), inset 0 0 0 1px rgba(23,37,84,.05);
}
.auth-switch a.is-active svg { opacity: 1; color: var(--orange); }

.auth-head { margin-top: 22px; }
.auth-kicker {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 8px; font-size: .66rem; font-weight: 750;
  letter-spacing: .16em; text-transform: uppercase; color: var(--orange);
}
.auth-kicker::before { content: ""; width: 16px; height: 2px; border-radius: 2px; background: currentColor; }
.auth-head h2 { margin: 0 0 6px; font-size: 1.45rem; letter-spacing: -.022em; }
.auth-sub { margin: 0 0 22px; color: var(--muted); font-size: .875rem; line-height: 1.55; }

.auth-field { margin-bottom: 15px; }
.auth-field > label { display: block; margin-bottom: 7px; font-size: .78rem; font-weight: 650; color: var(--navy); }
.auth-input {
  position: relative; display: flex; align-items: center;
  background: #fbfcfe; border: 1px solid #dde3ee; border-radius: 12px;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.auth-input:focus-within {
  background: #fff; border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}
.auth-input__icon {
  position: absolute; left: 14px; width: 17px; height: 17px;
  color: #8b98b0; pointer-events: none; transition: color .18s;
}
.auth-input:focus-within .auth-input__icon { color: var(--blue); }
.auth-input input {
  width: 100%; height: 50px; margin: 0; padding: 0 48px 0 42px;
  border: none; outline: none; background: transparent; border-radius: 12px;
  font: inherit; font-size: 1rem; color: var(--navy);
}
.auth-input--plain input { padding-right: 14px; }
.auth-input input::placeholder { color: #a4aec0; }
.auth-input input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #fbfcfe inset; -webkit-text-fill-color: var(--navy); }

.auth-reveal {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; display: grid; place-items: center;
  border: none; border-radius: 8px; background: transparent;
  color: #8b98b0; cursor: pointer; transition: color .18s, background .18s;
}
.auth-reveal:hover { color: var(--navy); background: #eef1f7; }
.auth-reveal svg { width: 17px; height: 17px; }
.auth-reveal .eye-off { display: none; }
.auth-reveal[aria-pressed="true"] .eye-on { display: none; }
.auth-reveal[aria-pressed="true"] .eye-off { display: block; }

.auth-submit {
  width: 100%; height: 52px; margin-top: 7px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  border: none; border-radius: 13px; cursor: pointer;
  font: inherit; font-size: .96rem; font-weight: 700; letter-spacing: .01em;
  color: #221100;
  background: linear-gradient(180deg, #F79A3D 0%, #F28C28 55%, #E67E17 100%);
  box-shadow: 0 12px 26px -10px rgba(242,140,40,.65), inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s;
}
.auth-submit:hover {
  filter: brightness(1.03); transform: translateY(-1px);
  box-shadow: 0 16px 32px -10px rgba(242,140,40,.7), inset 0 1px 0 rgba(255,255,255,.35);
}
.auth-submit:active { transform: translateY(0); }
.auth-submit svg { width: 17px; height: 17px; transition: transform .16s; }
.auth-submit:hover svg { transform: translateX(3px); }
.auth-submit:focus-visible, .auth-switch a:focus-visible, .auth-reveal:focus-visible {
  outline: 3px solid rgba(37,99,235,.35); outline-offset: 2px;
}

.auth-note {
  display: flex; align-items: flex-start; gap: 9px;
  margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: .76rem; line-height: 1.5;
}
.auth-note svg { flex: 0 0 auto; width: 15px; height: 15px; margin-top: 1px; color: #94a3b8; }

.auth-legal { max-width: 432px; margin: 0; text-align: center; color: #7e8ba2; font-size: .72rem; letter-spacing: .015em; line-height: 1.55; }

@media (max-width: 1180px) {
  .auth-shell { grid-template-columns: minmax(0, 1fr) minmax(400px, .95fr); }
  .auth-hero__points { display: none; }
}

@media (max-width: 900px) {
  .auth-shell {
    grid-template-columns: 1fr; grid-template-rows: auto 1fr;
    background-color: #eef2f9;
    background-image:
      linear-gradient(rgba(23,37,84,.028) 1px, transparent 1px),
      linear-gradient(90deg, rgba(23,37,84,.028) 1px, transparent 1px);
    background-size: 64px 64px;
  }
  .auth-hero {
    gap: 22px; justify-content: flex-start;
    padding: 24px clamp(18px, 5vw, 34px) 76px;
    border-radius: 0 0 26px 26px;
  }
  .auth-hero::before { background-size: 56px 56px; }
  .auth-hero__top .auth-hero__badge { display: none; }
  .auth-hero__mark { padding: 9px 13px; border-radius: 12px; }
  .auth-hero__mark img { width: clamp(124px, 24vw, 152px); }
  .auth-hero__body { padding: 0; }
  .auth-hero__eyebrow { margin-bottom: 10px; font-size: .64rem; }
  .auth-hero h1 { font-size: clamp(1.55rem, 5.4vw, 2.05rem); margin-bottom: 8px; }
  .auth-hero h1 span { display: inline; background: none; -webkit-background-clip: initial; background-clip: initial; color: #b7c7ea; font-weight: 500; }
  .auth-hero h1 span::before { content: " — "; }
  .auth-hero__lede { display: none; }
  .auth-hero__foot { display: none; }
  .auth-portal {
    z-index: 1; margin-top: -24px; justify-content: flex-start;
    padding: 0 clamp(14px, 4vw, 28px) 34px;
    background: transparent;
  }
  .auth-portal > .auth-card { margin-top: auto; }
  .auth-portal > .auth-legal { margin-bottom: auto; }
  .auth-card { width: min(440px, 100%); }
}

@media (max-width: 560px) {
  .auth-hero { padding: 20px 18px 30px; }
  .auth-portal { padding: 0 12px 26px; gap: 16px; }
  .auth-card {
    padding: 22px 18px 20px; border-radius: 18px;
    box-shadow: 0 18px 44px -20px rgba(23,37,84,.35);
  }
  .auth-switch a { gap: 5px; padding: 9px 3px; font-size: .735rem; }
  .auth-switch svg { display: none; }
  .auth-head h2 { font-size: 1.32rem; }
  .auth-sub { margin-bottom: 18px; }
  .auth-input input { height: 48px; }
  .auth-submit { height: 50px; }
  .auth-legal { padding: 0 10px; }
}

@media (max-width: 360px) {
  .auth-card { padding: 20px 15px 18px; }
  .auth-switch a { font-size: .69rem; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-card { animation: none; }
  .auth-submit, .auth-submit svg, .auth-reveal, .auth-switch a, .auth-input, .auth-input__icon { transition: none; }
  .auth-submit:hover { transform: none; }
  .auth-submit:hover svg { transform: none; }
}

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1280px) {
  .grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0;
    width: min(300px, 86vw); flex-basis: auto;
    height: 100vh; height: 100dvh;
    transform: translateX(-100%);
    transition: transform .24s cubic-bezier(.2, .7, .2, 1);
    z-index: 115;
    box-shadow: 0 0 46px rgba(7, 12, 30, .45);
  }
  body.nav-open .sidebar { transform: translateX(0); }
  body.nav-open { overflow: hidden; }
  .hamburger { display: inline-flex; }
  .sidebar__close {
    display: inline-flex; position: absolute; top: 14px; right: 12px; z-index: 2;
    width: 34px; height: 34px; border-radius: 9px;
    border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: #fff;
  }
  .sidebar__close:hover { background: rgba(255,255,255,.16); }
  .brand { padding-right: 56px; }
  .nav__item { min-height: 44px; }
  .sidebar__foot { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .grid--3, .grid--auto { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--2 { grid-template-columns: 1fr; }
  .cal__cell { min-height: 96px; }
}

@media (max-width: 760px) {
  .content { padding: 16px 14px 30px; }
  .topbar { padding: 0 12px; gap: 10px; height: 58px; }
  .topbar__title { font-size: .98rem; }
  .topbar__meta { display: none; }
  .user-chip__text { display: none; }
  .avatar { width: 32px; height: 32px; font-size: .76rem; }
  .topbar .icon-btn { width: 36px; height: 36px; }
  .page-head { gap: 10px; margin-bottom: 16px; align-items: flex-start; }
  .page-head__text { width: 100%; margin-right: 0; }
  .page-head h1 { font-size: 1.34rem; }
  .page-head p { font-size: .82rem; }
  .page-head .btn-row { width: 100%; gap: 8px; }
  .page-head .btn-row .btn { flex: 1 1 auto; padding: 9px 12px; font-size: .82rem; }
  .grid--4, .grid--3, .grid--5, .grid--auto { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid--2, .form-grid--3 { grid-template-columns: 1fr; }
  .card__body { padding: 15px; }
  .card__head { padding: 13px 15px; }
  .kpi { padding: 14px; }
  .kpi__value { font-size: 1.42rem; }
  .kpi__label { font-size: .68rem; }
  .kpi__hint { font-size: .72rem; }
  .stat-list li { flex-wrap: wrap; row-gap: 2px; }
  .stat-list .when { white-space: normal; }
  .stat-list .who { overflow-wrap: anywhere; }
  .hbar__top { gap: 8px; }
  .cal__grid { font-size: .7rem; }
  .cal__cell { min-height: 78px; padding: 4px; }
  .cal__cell.is-out { display: none; }
  .chip { font-size: .6rem; padding: 2px 4px; }
  .compare { grid-template-columns: 1fr; }
  .filters .field { min-width: 100%; }
  .drawer { width: 100%; }
}

@media (max-width: 560px) {
  .content { padding: 14px 12px 28px; }
  .grid--4, .grid--3, .grid--auto { grid-template-columns: 1fr; }
  .page-head .btn-row .btn { flex: 1 1 calc(50% - 4px); }
  .card__body { padding: 14px; }
  .card__head { padding: 12px 14px; }
  .card__head h2, .card__head h3 { font-size: .98rem; }
  .donut { width: 126px; height: 126px; flex-basis: 126px; }
  .donut::after { inset: 22px; }
  .donut__center b { font-size: 1.22rem; }
  .donut-wrap { gap: 14px; }
}

/* Supervisor panel is used on a phone at the site: single column, big tap targets. */
@media (max-width: 620px) {
  body.role-site_supervisor .grid--4,
  body.role-site_supervisor .grid--3,
  body.role-site_supervisor .grid--2 { grid-template-columns: 1fr; }
  body.role-site_supervisor .btn { padding: 12px 16px; font-size: .95rem; }
  body.role-site_supervisor .photo-grid { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
  body.role-site_supervisor .task__foot .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .sidebar { transition: none; }
}

@media print {
  .sidebar, .topbar, .btn, .filters, .hamburger, .drawer, .scrim, .no-print { display: none !important; }
  .content { padding: 0; }
  .card, .kpi, .task { break-inside: avoid; box-shadow: none; }
  body { background: #fff; font-size: 11px; }
}
