/* One visual language for every screen (owner, 2026-10-26: "the whole look, applied consistently, not only the Dashboard"). The references' common ground, kept
   to Aqari's own identity: large soft corners, a card is a lifted white (or dark) surface on a warm page, capsules for anything pressed, segmented toggles with a
   filled track and a white thumb, calm shadows. Colours stay the app's tokens (the company's own colours come through --dp / --da); nothing here sets a colour
   that is not a token or a neutral, so light, dark and the company's dark all follow. Loaded after the screens' own sheets so it is one place to tune. */
:root{ --r-card:24px; --sh-soft:0 1px 0 rgba(255,255,255,.7) inset, 0 12px 32px -22px rgba(19,33,58,.35), 0 1px 3px rgba(19,33,58,.05) }
html[data-company-dark="true"]{ --sh-soft:0 1px 0 rgba(255,255,255,.04) inset, 0 14px 34px -22px rgba(0,0,0,.7) }
@media(prefers-color-scheme:dark){ html.native-ios{ --sh-soft:0 1px 0 rgba(255,255,255,.04) inset, 0 14px 34px -22px rgba(0,0,0,.7) } }

/* a warm wash behind the page on a wide screen (light only): a hint of the company's accent top right and of green bottom left, never a pattern */
@media(min-width:901px){
  html:not([data-company-dark="true"]) body{ background:radial-gradient(1100px 520px at 88% -8%, color-mix(in srgb, var(--da, var(--brass)) 11%, transparent), transparent 62%), radial-gradient(900px 480px at -6% 108%, color-mix(in srgb, var(--nile) 8%, transparent), transparent 60%), var(--surface) fixed }
}

/* cards: one radius, one soft lift */
.panel, .dcard, .cfcard, .ucard, .ecard, .lcard, .pcard-img{ border-radius:var(--r-card) }
.panel, .dcard, .cfcard, .ucard, .ecard{ box-shadow:var(--sh-soft); border-color:color-mix(in srgb, var(--line) 70%, transparent) }
.ledger{ border-radius:28px }
@media(max-width:700px){ .panel, .dcard, .cfcard, .ucard, .ecard, .lcard, .pcard-img{ border-radius:22px } .ledger{ border-radius:26px } }

/* anything pressed is a capsule */
.btn{ border-radius:100px }
.btn.sm{ min-height:34px }

/* segmented toggles: a filled track, the chosen segment a lifted thumb (6M / 12M, This month / Last month, Weeks / Months, status filters) */
.seg{ border:0; background:color-mix(in srgb, var(--line) 55%, transparent); padding:3px; gap:2px; border-radius:100px }
.seg button{ border-radius:100px; transition:background-color .2s var(--mo-ease, ease), color .2s, box-shadow .2s }
.seg button[aria-pressed="true"]{ background:var(--card); color:var(--ink); font-weight:700; box-shadow:0 1px 3px rgba(19,33,58,.18), 0 4px 10px -6px rgba(19,33,58,.3) }

/* headings inside a card sit a little looser, so a card reads as a card */
.panel > h3{ padding:15px 18px }

/* a pointer: cards lift a hair, the way the Dashboard's do (transform only) */
@media(hover:hover) and (pointer:fine){
  .ucard, .ecard, .lcard{ transition:transform .2s var(--mo-ease, ease), box-shadow .2s }
  .ucard:hover, .ecard:hover, .lcard:hover{ transform:translateY(-2px) }
}
@media(prefers-reduced-motion:reduce){ .ucard, .ecard, .lcard, .seg button{ transition:none } .ucard:hover, .ecard:hover, .lcard:hover{ transform:none } }

/* ---- tables on a wide screen: a tinted header, a row that lights under the pointer, actions in one tidy row ---- */
@media(min-width:901px){
  table th{ background:color-mix(in srgb, var(--line-soft) 70%, transparent); letter-spacing:.01em }
  table tbody tr{ transition:background-color .15s }
  table tbody tr:hover{ background:color-mix(in srgb, var(--line-soft) 55%, transparent) }
  html:root .chq-acts{ display:flex; flex-wrap:wrap; justify-content:flex-end; gap:6px; width:auto }
  html:root .chq-acts .btn{ min-height:36px; padding:0 14px; white-space:nowrap }
}
@media(min-width:1100px){ html:root .chq-acts{ flex-wrap:nowrap } td:has(> .chq-acts){ white-space:nowrap; width:1% } td:has(> b:only-child){ white-space:nowrap } }
@media(prefers-reduced-motion:reduce){ table tbody tr{ transition:none } }
