/* Quintleaf app (stage 1): login pages, app shell and people page, on top of demo.css. */

a.btn, a.btn-s { text-decoration: none; }

/* ---------- Login, codes, invites ---------- */
.auth { min-height: 100vh; display: grid; align-content: center; justify-items: center; gap: 20px; padding: 32px 16px; }
.auth-brand img { height: 34px; width: auto; }
.auth-card {
  width: 100%; max-width: 440px; padding: 28px; border-radius: 24px;
  display: grid; gap: 16px;
  background: var(--surface); box-shadow: 0 30px 60px -45px rgba(6, 24, 13, .45);
}
.auth-card--wide { max-width: 640px; }
.auth-card h1 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.auth-card .lead { max-width: none; }
.auth-tag { justify-self: start; }
.auth-form { display: grid; gap: 14px; }
.auth-form .btn { width: 100%; margin-top: 4px; }
.auth-error { padding: 10px 14px; border-radius: 14px; font-size: 14px; color: #8A2B12; background: #FBE7E1; }
.auth-ok { padding: 10px 14px; border-radius: 14px; font-size: 14px; color: var(--ok); background: var(--ok-bg); }
.auth-note { font-size: 13px; color: var(--muted); }
.auth-note a, .auth-foot a, .shell-foot a, .auth-details summary, .top-user a {
  color: var(--green-800); text-decoration: underline; text-underline-offset: 3px;
}
.auth-foot, .shell-foot { font-size: 12.5px; color: var(--muted); text-align: center; }
.shell-foot { padding: 0 var(--gut) var(--gut); }
.auth-field-static { display: grid; gap: 4px; font-size: 13.5px; color: var(--ink-2); }
.auth-field-static span { font-weight: 500; }
.auth-field-static b { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.auth-steps { list-style: decimal; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.qr { justify-self: center; width: 208px; height: 208px; padding: 4px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.qr svg { width: 100%; height: 100%; }
.auth-details { display: grid; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.auth-details summary { cursor: pointer; font-weight: 500; }
.auth-details p { margin-top: 6px; }
.secret, .codes li, .outbox-text, code {
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
.secret { padding: 10px 12px; border-radius: 12px; font-size: 14px; letter-spacing: .05em; overflow-wrap: anywhere; background: var(--bg); user-select: all; }
.codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; list-style: none; }
.codes li { padding: 10px 12px; border-radius: 12px; font-size: 16px; letter-spacing: .06em; text-align: center; background: var(--bg); }
.firm-list { display: grid; gap: 8px; }
.firm-choice {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; text-align: left;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2);
  transition: background-color 180ms ease, transform 160ms var(--ease-out);
}
.firm-choice:active { transform: scale(.98); }
.firm-choice b { display: block; }
.firm-choice small { display: block; font-size: 12.5px; color: var(--muted); }
.firm-choice.is-current { box-shadow: inset 0 0 0 2px var(--green-800); }
.inline-form { display: inline; }

/* ---------- App shell ---------- */
.shell-tabs .seg-btn { text-decoration: none; }
.shell-tabs .seg-btn[aria-current="page"] { color: #fff; background: var(--green-900); }
.shell-tabs .seg-btn[aria-current="page"] svg { color: #fff; }
.top-user { display: flex; flex-direction: column; align-items: flex-end; min-width: 0; font-size: 13.5px; line-height: 1.25; }
.top-user b { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-user small { font-size: 12px; color: var(--muted); white-space: nowrap; }
.top--admin { grid-template-columns: auto minmax(0, 1fr) auto; }
.admin-brand img { height: 26px; width: auto; }
.shell-empty { display: grid; gap: 6px; justify-items: center; padding: 48px 24px; }
.shell-empty a { color: var(--green-800); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Panels and forms in the app ---------- */
.panel { margin-top: 20px; padding: 20px; border-radius: 22px; display: grid; gap: 14px; background: var(--surface); }
.panel h2 { font-size: 16px; font-weight: 600; }
.panel .table-wrap { margin-top: 0; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.form-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.form-row .grow { flex: 1 1 240px; }
.form-row .q-field select { min-width: 180px; height: 44px; }
.status-msg { min-height: 1.45em; font-size: 13.5px; color: var(--muted); }
.status-msg:empty { display: none; }
.status-msg.is-error { color: #8A2B12; }
.status-msg.is-ok { color: var(--ok); }
.team-table td { cursor: default; }
.team-table tbody tr { cursor: default; }
.team-table select { height: 34px; font-size: 13.5px; }
.team-table .c-act { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.you { margin-left: 6px; font-size: 12px; font-weight: 500; color: var(--muted); }
.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats dt { font-size: 12.5px; color: var(--muted); }
.stats dd { font-size: 20px; font-weight: 600; }
.row-link { color: inherit; text-decoration: none; }
.row-link:hover b { text-decoration: underline; text-underline-offset: 3px; }
.admin-firms td { cursor: default; }
.admin-firms tbody tr { cursor: default; }
.admin-firms code { font-size: 12.5px; color: var(--ink-2); }

/* ---------- Dev outbox ---------- */
.outbox { display: grid; gap: 14px; list-style: none; }
.outbox-item { display: grid; gap: 8px; padding: 14px; border-radius: 16px; background: var(--bg); }
.outbox-meta { display: grid; gap: 2px; }
.outbox-meta small { font-size: 12.5px; color: var(--muted); }
.outbox-text { font-size: 12.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.outbox-text a { color: var(--green-800); }

@media (hover: hover) and (pointer: fine) {
  .firm-choice:hover { background: var(--green-50); }
}
@media (max-width: 760px) {
  .auth-card { padding: 22px 18px; }
  .codes { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top-user { display: none; }
  .team-table .c-act { justify-content: flex-start; }
}

/* ---------- Clients (stage 2) ---------- */
.head-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs { margin-bottom: 6px; font-size: 13px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a::after { content: " /"; }
.seg--plain .seg-btn[aria-pressed="true"] { color: #fff; background: var(--green-900); }
.seg--plain .seg-btn[aria-pressed="true"] em { color: rgba(255,255,255,.65); }
.filter-select, .q-field select, .bulk-bar select, .contact-add select, .map-row select {
  height: 42px; padding: 0 14px; border: 0; border-radius: 999px; font-size: 14px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
}
.q-field select { width: 100%; background: var(--bg); }
.q-field textarea { min-height: 76px; }
.q-field span small { font-weight: 400; }
.check-inline { display: inline-flex; align-items: center; gap: 8px; height: 44px; font-size: 14px; color: var(--ink-2); }
.check-inline input, .check-row input { width: 18px; height: 18px; accent-color: var(--green-800); }
.check-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 14px; font-size: 14px; color: var(--ink-2); background: var(--bg); cursor: pointer; }
.check-row input { flex: none; margin-top: 2px; }
.check-row span { display: grid; gap: 2px; }
.check-row small { font-size: 12.5px; color: var(--muted); }
.new-client .form-row { align-items: flex-end; }

/* The matrix: clients x what we expect */
.matrix-wrap { overflow-x: auto; }
.matrix { min-width: 980px; }
.matrix th, .matrix td { padding: 8px 10px; }
.matrix th { text-align: center; }
.matrix th.m-name, .matrix th:last-child { text-align: left; }
.matrix tbody tr { cursor: default; }
.matrix tbody tr.is-selected { background: var(--green-50); }
.matrix .m-check { width: 40px; text-align: center; }
.matrix .m-check input, .m-box { width: 18px; height: 18px; accent-color: var(--green-800); cursor: pointer; vertical-align: middle; }
.matrix .m-cell { text-align: center; white-space: nowrap; }
.matrix .m-name { min-width: 240px; }
.matrix .c-name { min-width: 0; gap: 10px; }
.matrix .c-name .av { width: 32px; height: 32px; font-size: 11.5px; }
.matrix .nm b { max-width: 300px; }
.matrix .m-acc { min-width: 170px; font-size: 13.5px; white-space: nowrap; }
.m-acc-select { width: 100%; max-width: 220px; height: 34px; padding: 0 10px; border: 0; border-radius: 999px; font-size: 13.5px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.matrix-foot { margin-top: 10px; font-size: 13px; }
/* Laptops (1024–1340 px; the full-size row needs ~1260 px of table): the whole row fits without
   scrolling sideways. Long names wrap to a second line instead of pushing "Счетоводител" off
   screen, and the steppers and padding get tighter. Below ~960 px (tablets, phones) the table
   still scrolls: min-width keeps the steppers usable. */
@media (max-width: 1340px) {
  .matrix { min-width: 900px; }
  .matrix th, .matrix td { padding: 8px 6px; }
  .matrix th { font-size: 12px; }
  .matrix .m-check { width: 32px; }
  .matrix .m-name { min-width: 0; }
  .matrix .nm b { max-width: 200px; white-space: normal; overflow-wrap: anywhere; }
  .matrix .stepper--sm .step { width: 24px; height: 26px; }
  .matrix .stepper--sm b { width: 24px; height: 26px; }
  .matrix .m-acc { min-width: 0; }
  .matrix .m-acc-select { max-width: 150px; padding: 0 8px; }
}
.bulk-bar {
  position: sticky; bottom: 16px; z-index: 30;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px;
  margin-top: 14px; padding: 10px 14px 10px 18px; border-radius: 999px;
  color: #EAF0EA; background: var(--green-950); box-shadow: 0 20px 40px -20px rgba(6,24,13,.6);
}
.bulk-bar b { font-size: 14px; color: #fff; }
.bulk-bar select, .bulk-bar input { height: 36px; color: var(--ink); background: #fff; box-shadow: none; }
.bulk-bar .bulk-num { width: 80px; padding: 0 12px; border: 0; border-radius: 999px; }
.bulk-bar .btn-s--dark { color: #3A2705; background: var(--gold); }
.bulk-bar .link-btn { color: #CFE3D5; }
/* Toasts sit above the bulk bar while it is shown, not on top of it. */
.view:has(.bulk-bar:not([hidden])) .toasts { bottom: 92px; }

/* Import */
.drop-zone {
  position: relative; display: grid; justify-items: center; gap: 4px; padding: 32px 20px; border-radius: 18px;
  text-align: center; font-size: 14.5px; color: var(--ink-2); background: var(--bg);
  box-shadow: inset 0 0 0 1.5px var(--line-2); cursor: pointer;
  transition: background-color 180ms ease, box-shadow 180ms ease;
}
.drop-zone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop-zone small { font-size: 12.5px; color: var(--muted); }
.drop-zone.is-over { background: var(--green-50); box-shadow: inset 0 0 0 2px var(--green-600); }
.drop-zone.is-busy { opacity: .6; pointer-events: none; }
.drop-zone:focus-within { outline: 2px solid var(--gold-600); outline-offset: 2px; }
.import-sum { display: flex; flex-wrap: wrap; gap: 8px; }
.import-wrap { max-height: 560px; overflow: auto; }
.import-table th { position: sticky; top: 0; z-index: 1; background: var(--surface); }
.import-table tbody tr { cursor: default; }
.import-table td { vertical-align: top; font-size: 14px; }
.import-table .imp-line { width: 56px; color: var(--muted); }
.import-table .imp-eik { white-space: nowrap; }
.import-table .imp-notes { min-width: 260px; font-size: 13px; }
.imp-errors { display: grid; gap: 2px; color: #8A2B12; }
.imp-errors li::before { content: "• "; }
tr.imp-error td:first-child { box-shadow: inset 3px 0 0 var(--warn); }
.map-list { display: grid; gap: 8px; }
.map-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 10px 14px; border-radius: 14px; background: var(--bg); }
.map-row > span { display: grid; }
.map-row small { font-size: 12.5px; color: var(--muted); }
.map-row select { min-width: 240px; background: #fff; }
.done-panel p { font-size: 15px; }

/* One client */
.client-view { max-width: 980px; }
.client-head { align-items: center; }
.client-title { font-size: 28px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; }
.client-view .dr-sec { margin-top: 28px; }
.sec-title { margin-bottom: 10px; font-size: 16px; font-weight: 600; }
.sec-title .muted { font-weight: 400; }
.client-view .panel { margin-top: 0; }
.client-view .prof { margin-bottom: 12px; }
.client-view .prof-row { min-height: 54px; }
.contact-list { display: grid; }
.contact { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.contact-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--ch-email); background: var(--ch-email-bg); }
.contact-ic svg { width: 15px; height: 15px; }
.contact-main { display: grid; min-width: 0; line-height: 1.3; }
.contact-main b { font-weight: 500; overflow-wrap: anywhere; }
.contact-main small { font-size: 12.5px; color: var(--muted); }
.contact-act { display: inline-flex; align-items: center; gap: 6px; }
.contact-empty, .item-empty { padding: 6px 0; font-size: 13.5px; }
.contact-add input, .item-add input, .item input {
  height: 40px; padding: 0 14px; border: 0; border-radius: 999px; font-size: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line);
}
.contact-add input { flex: 1 1 180px; min-width: 0; }
.contact-add select { height: 40px; background: var(--bg); }
.client-view .item-panel { margin-top: 12px; gap: 10px; }
.item-panel h3 { font-size: 15px; font-weight: 600; }
.item-panel h3 .muted { font-weight: 400; }
.item-note { font-size: 13px; }
.item-list { display: grid; gap: 6px; }
.item { display: flex; align-items: center; gap: 8px; }
.item > input { flex: 1 1 auto; min-width: 0; }
.last4-label { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }
.item input.last4 { width: 72px; padding: 0 10px; text-align: center; letter-spacing: .06em; }
.item-add { display: flex; gap: 8px; }
.item-add input { flex: 1 1 auto; min-width: 0; }
.tick--todo { background: none; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.archive-panel { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }

@media (hover: hover) and (pointer: fine) {
  .drop-zone:hover { background: var(--green-50); }
  .matrix tbody tr:hover { background: #FAFBF8; }
  .matrix tbody tr.is-selected:hover { background: var(--green-50); }
}
@media (max-width: 760px) {
  /* demo.css turns .clients tables into cards on phones; the matrix stays a table and scrolls. */
  .matrix thead { display: table-header-group; }
  .matrix tr { display: table-row; padding: 0; border: 0; }
  .matrix td { display: table-cell; padding: 8px 10px; border-bottom: 1px solid var(--line); }
  .bulk-bar { border-radius: 22px; }
  .archive-panel { grid-template-columns: 1fr; }
  .item { flex-wrap: wrap; }
}

/* Stage 3: documents, statuses of expected rows, personal link, "Качи без клиент". */
.st-row .dr-type-head { flex-wrap: wrap; }
.st-row .dr-type-head .st-ifany { margin-left: 0; }
.st-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 14px; margin-top: 6px; padding-left: 32px; }
.st-meta small { font-size: 12.5px; overflow-wrap: anywhere; }
.st-actions { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; margin-left: auto; }
.st-actions .link-btn { font-size: 12.5px; }
.doc-drop { min-height: 96px; }
.doc-list { display: grid; }
.doc { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; align-items: center; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.doc:last-child { border-bottom: 0; }
.doc-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; color: var(--green-600); background: var(--green-100); }
.doc-main { display: grid; min-width: 0; line-height: 1.3; }
.doc-main b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-main small { font-size: 12.5px; color: var(--muted); }
.doc-pills { display: inline-flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.doc-act { display: inline-flex; align-items: center; gap: 10px; }
.doc-empty { padding: 6px 0; font-size: 13.5px; }
.link-panel p { font-size: 14px; }
.link-fresh { padding: 12px 14px; border-radius: 14px; background: var(--gold-100); color: #5C3F0B; }
.link-copy { display: flex; gap: 8px; }
.link-url { flex: 1 1 auto; min-width: 0; height: 40px; padding: 0 14px; border: 0; border-radius: 999px; font-size: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2); }
body.is-dragging .client-view::after {
  content: "Пуснете файловете: отиват при този клиент"; position: fixed; inset: 12px; z-index: 50; display: grid; place-items: center;
  border-radius: 24px; font-size: 18px; font-weight: 600; color: var(--green-800); background: rgba(240,247,242,.86); box-shadow: inset 0 0 0 3px var(--green-600);
  pointer-events: none;
}
@media (max-width: 760px) {
  .doc { grid-template-columns: 40px minmax(0, 1fr); }
  .doc-pills, .doc-act { grid-column: 2; justify-content: flex-start; }
  .st-meta { padding-left: 0; }
}

/* ---- За преглед (stage 4): cards from the demo's review drawer, the document on the right ---- */
.review-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.review-list { display: grid; gap: 0; min-width: 0; }
.review-list .rv:first-of-type { margin-top: 0; }
.review-count { margin: 0 0 10px; font-size: 13.5px; }
.rv { box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: box-shadow .15s ease; }
.rv.is-open { box-shadow: inset 0 0 0 2px var(--green-600); }
.rv-open { border: 0; font: inherit; cursor: pointer; }
.rv-open:focus-visible { outline: 2px solid var(--green-600); outline-offset: 3px; }
.rv-reasons { margin: 0; padding-left: 18px; font-size: 13px; color: var(--ink-2); }
.rv-reasons li + li { margin-top: 2px; }
.rv-read { display: grid; gap: 2px; margin: 0; font-size: 13px; }
.rv-read small { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.rv-two { display: grid; grid-template-columns: minmax(132px, auto) minmax(0, 1fr); gap: 10px; }
.rv-act { gap: 8px; flex-wrap: wrap; }
.review-viewer { position: sticky; top: 16px; display: grid; gap: 12px; min-height: 320px; max-height: calc(100vh - 32px); overflow: auto; }
.review-viewer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.review-viewer-head b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review-img { display: block; max-width: 100%; height: auto; border-radius: 10px; box-shadow: 0 0 0 1px var(--line); }
.review-frame { width: 100%; height: 72vh; border: 0; border-radius: 10px; background: var(--bg); box-shadow: 0 0 0 1px var(--line); }
.admin-cost { display: grid; gap: 12px 20px; margin: 10px 0 18px; }
.admin-cost dd small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.admin-switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 900px) {
  .review-grid { grid-template-columns: minmax(0, 1fr); }
  .review-viewer { position: static; max-height: none; }
  .review-frame { height: 60vh; }
}
.review-teaser { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; text-decoration: none; color: inherit; background: var(--gold-100); }
.review-teaser b { font-size: 22px; }
.review-teaser[hidden] { display: none; }
@media (max-width: 560px) {
  .rv { grid-template-columns: minmax(0, 1fr); }
  .rv .rv-paper { display: none; }
  .rv-two { grid-template-columns: minmax(0, 1fr); }
}

/* Phones: the top menu (four sections) scrolls sideways instead of widening the page (stage 5). */
@media (max-width: 760px) {
  .top .shell-tabs { min-width: 0; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .top .shell-tabs::-webkit-scrollbar { display: none; }
}

/* Stage 9: "Свали всички за месеца (ZIP)" under the client's documents. */
.doc-zip { margin-top: 12px; font-size: 14px; }

/* ---------- "Само преглед" and the report of the test (stage 10) ---------- */
.read-only-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 var(--gut); padding: 12px 18px; border-radius: 18px;
  font-size: 14px; color: #5A3D07; background: var(--gold-100); box-shadow: inset 0 0 0 1px rgba(169, 120, 31, .25);
}
.read-only-bar b { font-weight: 600; }
.read-only-bar a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
/* What would change something is hidden; the server refuses it anyway (403). */
body[data-read-only] #unassigned,
body[data-read-only] #setup,
body[data-read-only] #deadlineChange,
body[data-read-only] .drop-zone,
body[data-read-only] .dr-drop,
body[data-read-only] [data-remind],
body[data-read-only] [data-key="remind-now"],
body[data-read-only] .c-remind-btn,
body[data-read-only] #remindAll { display: none !important; }

.report-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.report-month h2 small, .report-view h3 small { font-weight: 400; }
.report-view h3 { font-size: 14px; font-weight: 600; margin-top: 4px; }
.report-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.report-kpis .kpi { background: var(--bg); }
.report-kpis .kpi--main { box-shadow: inset 0 0 0 1px rgba(42, 107, 68, .35); }
.kpi-v--muted { color: var(--muted); }
.report-series { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); align-items: end; gap: 6px; height: 96px; }
.report-day { display: grid; grid-template-rows: 1fr auto; align-items: end; justify-items: center; gap: 4px; height: 100%; }
.report-day i { display: block; width: 100%; height: calc(var(--p, 0) * 100%); min-height: 2px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--green-500), var(--green-600)); }
.report-day small { font-size: 11px; color: var(--muted); }
.report-stats { display: grid; gap: 14px; }
.report-stats > div { display: flex; flex-direction: column; justify-content: space-between; gap: 4px; }
.report-stats dd small { font-size: 13px; font-weight: 500; color: var(--muted); }
.report-channels { display: grid; gap: 8px; }
.report-channel { display: grid; grid-template-columns: 170px minmax(0, 1fr) 56px; align-items: center; gap: 12px; font-size: 14px; }
.report-channel b { text-align: right; }
.report-table td { cursor: default; }
.report-table tbody tr { cursor: default; }
.report-how summary { cursor: pointer; font-weight: 600; }
.report-how ul { display: grid; gap: 6px; padding-left: 18px; font-size: 13.5px; color: var(--ink-2); }
.admin-trial .form-row .q-field input[type="date"] { height: 44px; }
.danger-zone { box-shadow: inset 0 0 0 1px rgba(138, 43, 18, .25); }
.btn--danger { color: #fff; background: #8A2B12; }
@media (max-width: 760px) {
  .report-channel { grid-template-columns: 120px minmax(0, 1fr) 44px; }
  .report-series { gap: 3px; }
}
@media print {
  .top, .shell-foot, .report-actions, .read-only-bar { display: none !important; }
  .app, .work { display: block; padding: 0; }
  body { background: #fff; }
  .panel, .report-kpis .kpi { break-inside: avoid; box-shadow: inset 0 0 0 1px var(--line); }
  .report-how { display: block; }
  .report-how ul { display: grid; }
}
