/* EFE dashboard */
:root {
  --red: #d7261e; --red-dark: #b01c15; --red-soft: #fdeceb;
  --ink: #17171e; --ink-2: #4a4a52; --muted: #7a7a83; --line: #e7e5df; --fill: #f6f5f1; --card: #fff;
  --night: #17171e; --night-2: #23232c;
  --good: #0ca30c; --good-soft: #e7f6e7; --warn: #c98500; --warn-soft: #fff4dc; --bad: #d03b3b; --bad-soft: #fbe9e9; --info: #2a78d6; --info-soft: #e8f1fc;
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100;
  --radius: 12px; --shadow: 0 1px 2px rgba(20, 20, 30, .05), 0 6px 20px rgba(20, 20, 30, .05);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--fill); color: var(--ink); font: 400 14px/1.5 "Roboto", system-ui, Arial, sans-serif; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3 { font-family: "Montserrat", Arial, sans-serif; margin: 0; letter-spacing: -.01em; }

/* ---------- shell ---------- */
.app { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--night); color: #fff; padding: 18px 14px; }
.side__logo { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.side__logo img { height: 40px; }
.side__logo span { font: 700 11px/1.2 "Montserrat", Arial, sans-serif; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .55); }
.nav { display: flex; flex-direction: column; gap: 2px; margin-top: 14px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px; color: rgba(255, 255, 255, .72); text-decoration: none; font-weight: 500; }
.nav a:hover { background: var(--night-2); color: #fff; }
.nav a.is-on { background: var(--red); color: #fff; }
.nav svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav .badge { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 99px; background: #fff; color: var(--red); font: 700 12px/18px "Roboto", Arial; text-align: center; }
.nav a.is-on .badge { background: rgba(0, 0, 0, .25); color: #fff; }
.side__foot { margin-top: auto; padding: 12px; border-radius: 10px; background: var(--night-2); font-size: 12px; color: rgba(255, 255, 255, .65); }
.side__foot b { display: block; color: #fff; font-size: 13px; }
.side__foot button { margin-top: 8px; padding: 6px 10px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 7px; background: none; color: #fff; font-size: 12px; }

.main { min-width: 0; padding: 22px clamp(16px, 2.6vw, 34px) 60px; }
.top { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.top h1 { font-size: 24px; font-weight: 800; }
.top p { margin: 2px 0 0; color: var(--muted); }
.top__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search { position: relative; }
.search input { width: 240px; padding: 10px 12px 10px 36px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.search svg { position: absolute; left: 11px; top: 11px; width: 16px; height: 16px; stroke: var(--muted); fill: none; stroke-width: 2; }
.search__res { position: absolute; z-index: 30; top: 44px; right: 0; width: 340px; max-height: 360px; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.search__res button { display: block; width: 100%; text-align: left; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--line); background: #fff; }
.search__res button:hover { background: var(--fill); }
.search__res small { color: var(--muted); }

/* ---------- buttons, pills ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-weight: 600; white-space: nowrap; text-decoration: none; }
.btn:hover { border-color: #cfccc4; }
.btn--red { background: var(--red); border-color: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn--dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--wa { background: #25d366; border-color: #25d366; color: #fff; }
.btn--sm { padding: 6px 11px; font-size: 13px; border-radius: 8px; }
.btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font: 600 12px/1.5 "Roboto", Arial; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill--request { background: var(--warn-soft); color: #8a5a00; }
.pill--confirmed { background: var(--info-soft); color: #1c5cab; }
.pill--active { background: var(--good-soft); color: #086b08; }
.pill--completed { background: #efeee9; color: var(--ink-2); }
.pill--cancelled, .pill--declined, .pill--maint { background: var(--bad-soft); color: #9c2424; }
.pill--free { background: var(--good-soft); color: #086b08; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--fill); color: var(--ink-2); font-size: 12px; font-weight: 600; }
.src { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.src i { width: 9px; height: 9px; border-radius: 2px; }

/* ---------- cards & grid ---------- */
.grid { display: grid; gap: 16px; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.card__h { display: flex; align-items: center; gap: 10px; padding: 16px 18px 0; flex-wrap: wrap; }
.card__h h2 { font-size: 15px; font-weight: 700; }
.card__h p { margin: 0; color: var(--muted); font-size: 13px; width: 100%; }
.card__h .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.card__b { padding: 14px 18px 18px; }
.mt { margin-top: 16px; }
.kpi { padding: 16px 18px; }
.kpi small { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 500; }
.kpi small svg { width: 16px; height: 16px; stroke: var(--red); fill: none; stroke-width: 2; }
.kpi b { display: block; margin-top: 6px; font: 800 28px/1.1 "Montserrat", Arial, sans-serif; }
.kpi span { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.kpi span.up { color: #086b08; }
.kpi--hero { background: var(--night); color: #fff; border-color: var(--night); }
.kpi--hero small, .kpi--hero span { color: rgba(255, 255, 255, .7); }
.kpi--hero small svg { stroke: #f0443a; }
button.kpi { text-align: left; width: 100%; }

/* ---------- lists & tables ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list li.click { cursor: pointer; }
.list .time { width: 54px; flex: none; font: 700 13px/1.2 "Montserrat", Arial; }
.list .who { min-width: 0; }
.list .who b { display: block; }
.list .who small { color: var(--muted); }
.list .end { margin-left: auto; display: flex; gap: 8px; align-items: center; flex: none; }
.thumb { width: 64px; height: 40px; flex: none; object-fit: contain; }
.empty { padding: 26px 10px; text-align: center; color: var(--muted); }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: 12.5px; white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr.click { cursor: pointer; }
.table tr.click:hover td { background: #fbfaf7; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-wrap { overflow-x: auto; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs button { padding: 7px 12px; border: 1px solid var(--line); border-radius: 99px; background: #fff; font-weight: 600; font-size: 13px; }
.tabs button.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.toolbar input, .toolbar select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }

/* ---------- requests ---------- */
.req { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 18px; border-bottom: 1px solid var(--line); }
.req:last-child { border-bottom: 0; }
.req img { width: 110px; height: 70px; object-fit: contain; }
.req h3 { font-size: 16px; }
.req .meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; color: var(--ink-2); font-size: 13px; }
.req .meta b { color: var(--ink); }
.req .acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.req .new { color: var(--red); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.flagbox { margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: var(--bad-soft); color: #8a1f1f; font-size: 13px; }

/* ---------- calendar ---------- */
.cal { position: relative; overflow-x: auto; }
.cal__grid { min-width: 1100px; }
.cal__head, .cal__row { display: grid; grid-template-columns: 190px repeat(var(--days), minmax(56px, 1fr)); }
.cal__head > div { padding: 8px 4px; text-align: center; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); }
.cal__head > div:first-child { border-left: 0; text-align: left; padding-left: 14px; position: sticky; left: 0; background: #fff; z-index: 3; }
.cal__head div.is-today { color: var(--red); font-weight: 700; }
.cal__head div b { display: block; font: 700 14px/1.2 "Montserrat", Arial; color: var(--ink); }
.cal__head div.is-today b { color: var(--red); }
.cal__group { padding: 10px 14px; background: var(--fill); font: 700 12px/1 "Montserrat", Arial; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.cal__row { position: relative; height: 46px; border-bottom: 1px solid var(--line); }
.cal__name { display: flex; flex-direction: column; justify-content: center; padding: 0 14px; border-right: 1px solid var(--line); background: #fff; position: sticky; left: 0; z-index: 2; }
.cal__name b { font-size: 13px; }
.cal__name small { color: var(--muted); font-size: 11.5px; }
.cal__cell { border-left: 1px solid #f0eee8; }
.cal__cell.is-today { background: #fdf3f2; }
.cal__cell.is-wkd { background: #faf9f6; }
.bar { position: absolute; top: 8px; height: 30px; border-radius: 7px; padding: 0 8px; display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; overflow: hidden; white-space: nowrap; cursor: pointer; z-index: 1; border: 2px solid #fff; }
.bar--confirmed { background: #dbe9fb; color: #164a8a; }
.bar--active { background: #d3efd3; color: #075c07; }
.bar--completed { background: #ebeae5; color: var(--ink-2); }
.bar--maint { background: repeating-linear-gradient(45deg, #fbe2e2, #fbe2e2 6px, #f6d0d0 6px, #f6d0d0 12px); color: #8a1f1f; cursor: default; }
.bar:hover { filter: brightness(.96); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* ---------- fleet ---------- */
.fleet { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.veh { padding: 14px 16px 16px; cursor: pointer; }
.veh img { display: block; width: 100%; height: 110px; object-fit: contain; }
.veh h3 { margin-top: 8px; font-size: 15px; }
.veh .row { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 13px; color: var(--ink-2); }
.veh .row b { color: var(--ink); }
.util { height: 6px; margin-top: 10px; border-radius: 99px; background: #eeece6; overflow: hidden; }
.util span { display: block; height: 100%; border-radius: 99px; background: var(--s1); }
.warnline { margin-top: 8px; font-size: 12.5px; color: #8a5a00; font-weight: 600; }
.warnline.bad { color: #9c2424; }

/* ---------- automations ---------- */
.auto { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.auto:last-child { border-bottom: 0; }
.auto__ic { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--red-soft); }
.auto__ic svg { width: 20px; height: 20px; stroke: var(--red); fill: none; stroke-width: 2; }
.auto h3 { font-size: 14.5px; }
.auto p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.switch { position: relative; width: 44px; height: 24px; flex: none; border-radius: 99px; background: #d9d6ce; border: 0; padding: 0; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.switch.is-on { background: var(--good); }
.switch.is-on::after { left: 23px; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.feed li:last-child { border-bottom: 0; }
.feed time { flex: none; width: 70px; color: var(--muted); font-size: 12px; }
.feed i { flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--good); }

/* ---------- charts ---------- */
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .ax { fill: var(--muted); font-size: 11px; }
.chart .gl { stroke: #eeece6; stroke-width: 1; }
.chart .hit { fill: transparent; cursor: pointer; }
.tip { position: absolute; z-index: 20; pointer-events: none; padding: 8px 10px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 12px; line-height: 1.4; white-space: nowrap; transform: translate(-50%, -110%); opacity: 0; transition: opacity .1s; }
.tip.is-on { opacity: 1; }
.tip b { font-size: 13px; }
.hbar { display: grid; grid-template-columns: 120px minmax(0, 1fr) 84px; gap: 10px; align-items: center; padding: 6px 0; font-size: 13px; }
.hbar__track { height: 14px; }
.hbar__fill { height: 100%; border-radius: 0 4px 4px 0; background: var(--s1); }
.hbar .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.progress { height: 12px; border-radius: 99px; background: #eeece6; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--good); border-radius: 99px; }

/* ---------- drawer & modal ---------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(15, 15, 22, .45); opacity: 0; pointer-events: none; transition: opacity .2s; }
.scrim.is-on { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; z-index: 50; top: 0; right: 0; bottom: 0; width: min(520px, 100vw); background: #fff; box-shadow: -10px 0 40px rgba(0, 0, 0, .15); transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column; }
.drawer.is-on { transform: none; }
.drawer__h { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer__h h2 { font-size: 18px; }
.drawer__h p { margin: 2px 0 0; color: var(--muted); }
.drawer__x { margin-left: auto; width: 36px; height: 36px; flex: none; border-radius: 9px; border: 1px solid var(--line); background: #fff; font-size: 18px; line-height: 1; }
.drawer__b { flex: 1; overflow-y: auto; padding: 18px 20px 24px; }
.drawer__f { display: flex; gap: 10px; flex-wrap: wrap; padding: 14px 20px; border-top: 1px solid var(--line); background: #fbfaf7; }
.kv { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 8px 12px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; }
.sec { margin-top: 20px; }
.sec h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); margin-bottom: 10px; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { position: relative; padding: 0 0 14px 26px; font-size: 13px; }
.steps li::before { content: ""; position: absolute; left: 4px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: #d9d6ce; }
.steps li::after { content: ""; position: absolute; left: 8px; top: 16px; bottom: 0; width: 2px; background: #eeece6; }
.steps li:last-child::after { display: none; }
.steps li.done::before { background: var(--good); }
.steps li small { display: block; color: var(--muted); }
.money { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.money td { padding: 6px 0; }
.money td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.money tr.total td { border-top: 1px solid var(--line); padding-top: 10px; font-weight: 700; font-size: 15px; }
.modal { position: fixed; z-index: 60; left: 50%; top: 50%; width: min(620px, calc(100vw - 24px)); max-height: calc(100vh - 40px); overflow: auto; transform: translate(-50%, -46%) scale(.98); opacity: 0; pointer-events: none; background: #fff; border-radius: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); transition: opacity .2s, transform .2s; }
.modal.is-on { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
.modal__h { padding: 20px 22px 0; }
.modal__h h2 { font-size: 19px; }
.modal__h p { margin: 4px 0 0; color: var(--muted); }
.modal__b { padding: 16px 22px; }
.modal__f { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; padding: 14px 22px 20px; }
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; margin-bottom: 5px; font-weight: 600; font-size: 13px; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.field textarea { min-height: 80px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.choice span { display: block; line-height: 1.3; }
.choice label { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 13px; }
.choice label:has(input:checked) { border-color: var(--red); background: var(--red-soft); }
.choice input { accent-color: var(--red); }
.choice small { display: block; color: var(--muted); }
.fuel { display: flex; gap: 4px; }
.fuel button { flex: 1; height: 30px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 12px; }
.fuel button.is-on { background: var(--good); border-color: var(--good); color: #fff; }
.photos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.photos button { aspect-ratio: 1; border-radius: 8px; background: var(--fill); border: 1px dashed #cfccc4; display: grid; place-items: center; font-size: 11px; color: var(--muted); padding: 0; }
.photos button.is-on { background: #e7f0e7; border: 1px solid #b9dcb9; color: #086b08; }
.note { margin: 10px 0 0; padding: 10px 12px; border-radius: 9px; background: var(--info-soft); color: #164a8a; font-size: 13px; }

/* ---------- email preview ---------- */
.mail { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.mail__top { padding: 10px 14px; background: var(--fill); font-size: 12.5px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.mail__top b { color: var(--ink); }
.mail__hero { padding: 16px; background: var(--night); text-align: center; }
.mail__hero img { height: 46px; }
.mail__body { padding: 16px 18px; font-size: 13.5px; }
.mail__body h4 { margin: 0 0 8px; font: 800 17px/1.2 "Montserrat", Arial; }
.mail__body p { margin: 0 0 8px; }
.mail__body table { width: 100%; margin: 10px 0; border-collapse: collapse; font-size: 13px; }
.mail__body td { padding: 5px 0; border-bottom: 1px solid #f0eee8; }
.mail__body td:first-child { color: var(--muted); width: 40%; }
.mail__cta { display: inline-block; margin-top: 8px; padding: 10px 16px; background: var(--red); color: #fff; border-radius: 8px; font-weight: 700; text-decoration: none; }

/* ---------- toast ---------- */
.toasts { position: fixed; z-index: 80; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; }
.toast { display: flex; gap: 10px; align-items: flex-start; max-width: 380px; padding: 12px 14px; border-radius: 12px; background: var(--ink); color: #fff; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); animation: tin .25s ease; }
.toast svg { flex: none; width: 18px; height: 18px; stroke: #5fd35f; fill: none; stroke-width: 2.4; margin-top: 1px; }
.toast small { display: block; color: rgba(255, 255, 255, .7); }
@keyframes tin { from { transform: translateY(10px); opacity: 0; } }

.demo-note { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 99px; background: var(--warn-soft); color: #8a5a00; font-size: 12px; font-weight: 600; white-space: nowrap; }
.hello { margin: 0 0 18px; padding: 18px 20px; border-radius: var(--radius); background: linear-gradient(110deg, var(--night) 0%, #2b2b36 100%); color: #fff; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hello h2 { font-size: 20px; }
.hello p { margin: 4px 0 0; color: rgba(255, 255, 255, .75); }
.hello .btns { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.hello .btn { border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; }
.hello .btn--red { background: var(--red); border-color: var(--red); }

/* ---------- mobile ---------- */
.mnav { display: none; }
@media (max-width: 1180px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g21 { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { display: none; }
  .main { padding: 16px 14px 96px; }
  .top { flex-wrap: wrap; }
  .top__right { width: 100%; margin: 0; flex-wrap: wrap; }
  .search { flex: 1; min-width: 180px; } .search input { width: 100%; }
  .search__res { width: 100%; }
  .g3, .g2 { grid-template-columns: 1fr; }
  .req { grid-template-columns: 1fr; gap: 10px; }
  .req img { width: 90px; height: 56px; }
  .req .acts { justify-content: flex-start; }
  .auto { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .auto .btn { grid-column: 2; justify-self: start; }
  .mnav { position: fixed; z-index: 35; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--night); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .mnav a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; color: rgba(255, 255, 255, .7); text-decoration: none; font-size: 10.5px; }
  .mnav a.is-on { color: #fff; }
  .mnav a.is-on svg { stroke: #f0443a; }
  .mnav svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; }
  .mnav .badge { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 17px; padding: 0 4px; border-radius: 99px; background: var(--red); color: #fff; font: 700 10px/16px Roboto, Arial; }
  .kv { grid-template-columns: 120px minmax(0, 1fr); }
  .hello .btns { margin-left: 0; }
  .toasts { left: 12px; right: 12px; bottom: 78px; }
}
@media (max-width: 520px) { .g4 { grid-template-columns: 1fr 1fr; gap: 10px; } .kpi b { font-size: 22px; } .row2 { grid-template-columns: 1fr; } .photos { grid-template-columns: repeat(4, 1fr); } .hbar { grid-template-columns: 90px minmax(0, 1fr) 72px; } }
@media (prefers-reduced-motion: reduce) { .drawer, .modal, .scrim, .switch::after, .toast { transition: none; animation: none; } }
.kpi--hero span.up { color: #7ee07e; }

/* ---------- built by Tap Aruba ---------- */
.side__tap { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 8px 2px; border-top: 1px solid rgba(255, 255, 255, .08); text-decoration: none; }
.side__tap span { font-size: 11px; color: rgba(255, 255, 255, .5); white-space: nowrap; }
.side__tap img { height: 22px; width: auto; opacity: .9; }
.side__tap:hover img { opacity: 1; }
.tapmark { display: block; margin: 28px 0 0; text-align: center; font-size: 12px; color: var(--muted); text-decoration: none; }
.tapmark b { color: var(--ink-2); }
@media (min-width: 901px) { .tapmark { display: none; } }
@media (max-width: 520px) { .hbar[style] { grid-template-columns: 1fr 64px !important; } .hbar[style] .hbar__track { grid-column: 1 / -1; grid-row: 2; } }
