/* Qonta's dropdown (Pencil "Components · Dropdown"), in place of the browser's own
   <select> everywhere: portal, staff panel, signup and public pages. The native
   select stays in the form underneath; q-select.js draws this over it. Hairline
   and flat, rounded like the rest: the trigger takes a field's 8px, the open list
   a card's 12px, and a highlighted option an 8px row inset from the panel edge. */

/* EVERY COLOUR HERE IS A TOKEN. This file is loaded after the shell's <style>,
   so a hex written here is the last word and no theme can reach it. Six of them
   were light: the trigger and the open list were `#fff`, which is why picking a
   customer on a dark page opened a white panel — the browser was never drawing
   it, Qonta was. The fallback after each comma is the light value, for a page
   that loads this without the shell's tokens. */

.q-sel-native {
  position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important;
  margin: 0 !important; padding: 0 !important; border: 0 !important; opacity: 0 !important;
  pointer-events: none !important; overflow: hidden !important;
}
/* The chevron each page drew beside its select: the trigger brings its own. */
.q-sel-parent > .ap-caret, .q-sel-parent > i[data-lucide^="chevron"], .q-sel-parent > svg[class*="lucide-chevron"] { display: none !important; }

.q-sel {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 8px;
  min-width: 0; text-align: left; cursor: pointer; background-color: var(--q-panel, #F4F4F4); color: var(--q-ink, #141414);
  font-family: inherit; line-height: 1.25; -webkit-tap-highlight-color: transparent;
}
.q-sel--plain { height: 40px; padding: 0 12px; border-radius: var(--r-field, 12px); border: 1px solid var(--q-control, #D9DEDB); font-size: 14px; }
.q-sel--block { display: flex; }
.q-sel:hover { border-color: var(--q-control-hover, #C5CCC8); }
.q-sel:focus { outline: none; }
.q-sel:focus-visible, .q-sel[aria-expanded="true"] { border-color: var(--q-ink, #0E1A17) !important; }
.q-sel[aria-expanded="true"] { box-shadow: inset 0 0 0 0.5px var(--q-ink, #0E1A17); }
.q-sel:disabled { cursor: default; background-color: var(--q-panel, #F7F9F8); color: var(--q-faint, #949D98); }
.q-sel__value { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-sel__value.is-placeholder { color: var(--q-faint, #949D98); }
.q-sel__chev { display: inline-flex; flex: none; color: var(--q-muted, #6B7671); }
.q-sel__chev svg { width: 16px; height: 16px; }
.q-sel[aria-expanded="true"] .q-sel__chev { color: var(--q-ink, #0E1A17); }
.q-sel:disabled .q-sel__chev { color: var(--q-faint, #949D98); }

/* Label inside the box (signup, Structure, every ap-field). The field draws the border. */
.ap-field .q-sel { display: flex; width: 100%; border: 0 !important; box-shadow: none !important; background: transparent; padding: 28px 40px 10px 14px; font-size: 16px; min-height: 0; height: auto; }
.ap-field .q-sel__chev { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); }
.ap-field:focus-within { border-color: var(--q-ink, #0E1A17); }
.q-field .q-sel { height: 52px; }

/* The open list */
.q-menu {
  position: fixed; z-index: 2147483000; box-sizing: border-box; background: var(--q-surface, #fff); color: var(--q-ink, #0E1A17);
  border: 1px solid var(--q-control, #D9DEDB); border-radius: var(--r-card, 18px); font-family: inherit; font-size: 14px; line-height: 1.3;
  display: flex; flex-direction: column; overflow: hidden;
}
.q-menu--compact { font-size: 14px; }
/* In dark, the list is a layer up from the field it opens under: lighter than the
   field and the sheet, with a firmer edge. Flat still, no shadow; without this it
   was darker than the field and read as one more box (owner, 28 Oct 2026). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .q-menu { background: var(--q-card, #262626); border-color: var(--q-control-hover, #4A4A4A); }
}
:root[data-theme="dark"] .q-menu { background: var(--q-card, #262626); border-color: var(--q-control-hover, #4A4A4A); }
.q-menu__list { overflow-y: auto; padding: 6px; overscroll-behavior: contain; }
.q-menu__search { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-bottom: 1px solid var(--q-line, #E2E6E3); flex: none; }
.q-menu__search svg { width: 16px; height: 16px; color: var(--q-muted, #6B7671); flex: none; }
.q-menu__search input { flex: 1; min-width: 0; height: 100%; border: 0 !important; outline: none; background: transparent; font: inherit; font-size: 14px; color: var(--q-ink, #0E1A17); padding: 0; box-shadow: none !important; }
.q-menu__search input::placeholder { color: var(--q-faint, #949D98); }
.q-opt { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 8px 10px; border-radius: var(--r-row, 10px); box-sizing: border-box; cursor: pointer; user-select: none; }
.q-menu--compact .q-opt { min-height: 40px; }
.q-opt.is-active { background: var(--q-active, #EFF2F0); }
.q-opt.is-selected .q-opt__text { font-weight: 600; }
.q-opt[aria-disabled="true"] { cursor: default; color: var(--q-faint, #949D98); }
.q-opt[aria-disabled="true"].is-active { background: transparent; }
.q-opt__lead { font-size: 12px; font-weight: 600; color: var(--q-muted, #6B7671); flex: none; }
.q-opt__text { flex: 1 1 auto; min-width: 0; overflow-wrap: break-word; }
.q-opt__text b { font-weight: 700; }
.q-opt__note { font-size: 12px; color: var(--q-faint, #949D98); flex: none; margin-left: 12px; white-space: nowrap; }
.q-opt__tick { width: 16px; height: 16px; flex: none; color: var(--q-pos, #0A7C56); visibility: hidden; }
.q-opt.is-selected .q-opt__tick { visibility: visible; }
.q-group { padding: 10px 10px 4px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--q-faint, #949D98); }
.q-menu__empty { padding: 18px 14px; font-size: 14px; }
.q-menu__empty small { display: block; margin-top: 4px; font-size: 14px; color: var(--q-muted, #6B7671); }
.q-menu__foot { flex: none; padding: 10px 14px; font-size: 12px; color: var(--q-muted, #6B7671); background: var(--q-panel, #F7F9F8); border-top: 1px solid var(--q-line, #E2E6E3); }

/* On a phone: a sheet from the bottom */
.q-scrim { position: fixed; inset: 0; z-index: 2147482999; background: var(--q-scrim, rgba(14, 26, 23, .35)); }
.q-menu--sheet { left: 0 !important; right: 0; bottom: 0; top: auto !important; width: auto !important; max-height: 72vh !important; border: 0; border-radius: var(--r-sheet, 20px) var(--r-sheet, 20px) 0 0; border-top: 1px solid var(--q-control, #D9DEDB); font-size: 16px; padding-bottom: env(safe-area-inset-bottom); }
.q-menu__grab { display: flex; justify-content: center; padding: 10px 0 4px; flex: none; }
.q-menu__grab span { width: 36px; height: 4px; border-radius: 2px; background: var(--q-control, #D9DEDB); }
.q-menu__head { display: flex; align-items: center; justify-content: space-between; padding: 8px 20px 12px; border-bottom: 1px solid var(--q-line, #E2E6E3); flex: none; font-size: 16px; font-weight: 600; }
.q-menu__head button { display: grid; place-items: center; width: 32px; height: 32px; margin-right: -6px; color: var(--q-ink, #0E1A17); background: transparent; border: 0; cursor: pointer; }
.q-menu__head svg { width: 18px; height: 18px; }
.q-menu--sheet .q-menu__search { padding: 0 20px; height: 48px; }
.q-menu--sheet .q-menu__list { padding: 0; }
.q-menu--sheet .q-opt { min-height: 52px; padding: 10px 20px; border-bottom: 1px solid var(--q-line, #E2E6E3); }
.q-menu--sheet .q-group { padding: 14px 20px 6px; }

/* Form checks (q-validate.js): the message inside the field, which keeps its size, and
   the field in red. */
.q-err { display: none; margin-top: 6px; font-size: 12px; line-height: 1.35; color: var(--q-neg, #C2553F); gap: 6px; align-items: flex-start; font-weight: 400; }
.q-err.on { display: flex; }
.q-err svg { width: 14px; height: 14px; flex: none; margin-top: 1px; }
.q-in.on { position: absolute !important; display: flex !important; align-items: center !important; gap: 6px; margin: 0 !important; padding: 0 !important; width: auto !important; min-width: 0;
  font-size: 12px !important; line-height: 18px !important; color: var(--q-neg, #C2553F) !important; white-space: nowrap; overflow: hidden; pointer-events: none; z-index: 1; box-sizing: border-box; }
.q-in.on > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.q-in.on svg { width: 12px !important; height: 12px !important; flex: none; margin: 0 !important; }
.q-in-lab.on { left: 14px; right: 14px; top: 9px; }
.q-bad-box > .ap-lab { visibility: hidden; }
.q-bad::placeholder { color: transparent !important; }
.q-bad .q-sel__value.is-placeholder { color: transparent !important; }
.q-sel-native[aria-invalid="true"] + .q-sel { border-color: var(--q-neg, #C2553F) !important; }
/* A select that reads as plain text until touched (base.html, q-inline): the trigger
   keeps the select's classes, so it opts out of the panel fill the same way. */
.q-sel.q-inline { background-color: transparent; border: 1px solid transparent; }
.q-sel.q-inline:hover { border-color: var(--q-line, #E6E6E6); }


/* Qonta's date picker (q-date.js, owner 2026-10-27): the field is a dropdown trigger
   saying the day in words; the panel is the dropdown's, holding the phone app's
   calendar (qonta-app components/DatePicker.tsx): one-tap days, Monday first, today
   ringed, the chosen day in ink. Tokens only, like everything in this file. */
.q-date { justify-content: flex-start; }
.q-date__icon { display: inline-flex; flex: none; color: var(--q-muted, #6B7671); }
.q-date__icon svg { width: 16px; height: 16px; }
.q-date .q-sel__value { flex: 1 1 auto; }
.q-sel-native[aria-invalid="true"] + .q-date, .q-date[aria-invalid="true"] { border-color: var(--q-neg, #C2553F) !important; }
.q-cal { width: 312px; }
.q-cal__body { display: flex; flex-direction: column; gap: 12px; padding: 12px; }
.q-cal__quick { display: flex; flex-wrap: wrap; gap: 6px; }
.q-cal__chip { height: 32px; padding: 0 12px; border-radius: 999px; border: 0; background: var(--q-card, #F2F2F2); color: var(--q-ink, #0E1A17); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.q-cal__chip:hover { background: var(--q-active, #EAEAEA); }
.q-cal__chip.is-on { background: var(--q-ink, #0E1A17); color: var(--q-on-ink, #fff); font-weight: 600; }
.q-cal__month { background: var(--q-panel, #F7F7F7); border-radius: var(--r-card, 14px); padding: 10px 8px 8px; }
.q-cal__head { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 8px; font-size: 14px; font-weight: 700; }
.q-cal__arrows { display: flex; gap: 6px; }
.q-cal__arrows button { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 999px; border: 0; background: var(--q-card, #ECECEC); color: var(--q-ink, #0E1A17); cursor: pointer; }
.q-cal__arrows button:disabled { color: var(--q-faint, #949D98); cursor: default; }
.q-cal__arrows svg { width: 15px; height: 15px; }
.q-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; }
.q-cal__wd { display: grid; place-items: center; height: 26px; font-size: 12px; font-weight: 600; color: var(--q-faint, #949D98); }
.q-cal__day { justify-self: center; width: 36px; height: 36px; border-radius: 999px; border: 0; background: transparent; color: var(--q-ink, #0E1A17); font: inherit; font-size: 14px; cursor: pointer; font-variant-numeric: tabular-nums; }
.q-cal__day:hover:not(:disabled):not(.is-on) { background: var(--q-active, #EAEAEA); }
.q-cal__day:focus { outline: none; }
.q-cal__day:focus-visible { box-shadow: 0 0 0 2px var(--q-ink, #0E1A17); }
.q-cal__day.is-today { box-shadow: inset 0 0 0 1.5px var(--q-ink, #0E1A17); font-weight: 600; }
.q-cal__day.is-on { background: var(--q-ink, #0E1A17); color: var(--q-on-ink, #fff); font-weight: 600; box-shadow: none; }
.q-cal__day:disabled { color: var(--q-control, #C9CFCC); cursor: default; }
.q-menu--sheet.q-cal { width: auto; }
.q-menu--sheet .q-cal__body { padding: 14px 20px 20px; }
.q-menu--sheet .q-cal__day { width: 40px; height: 40px; font-size: 14px; }

/* Date range (q-range.js, owner 28 Nov 2026: Money's Custom tab). Small on purpose
   ("minimal and small"): a row of one-tap ranges, one month, each day of the range
   a soft grey circle, and a slim foot with the range and Apply. */
.q-range { width: 272px; }
.q-rng__presets { display: flex; flex-wrap: wrap; gap: 4px; padding: 10px 10px 2px; }
.q-rng__preset { height: 24px; padding: 0 9px; border-radius: 999px; border: 0; background: var(--q-panel, #F3F3F3); color: var(--q-muted, #5D5D5D); font: inherit; font-size: 12px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.q-rng__preset:hover { color: var(--q-ink, #0D0D0D); background: var(--q-active, #EAEAEA); }
.q-rng__preset.is-on { background: var(--q-control, #D9D9D9); color: var(--q-ink, #0D0D0D); }
.q-range .q-cal__month { background: none; border-radius: 0; padding: 6px 8px 8px; }
.q-range .q-cal__head { padding: 2px 4px 4px; font-size: 13px; font-weight: 600; }
.q-range .q-cal__arrows { gap: 2px; }
.q-range .q-cal__arrows button { width: 24px; height: 24px; background: none; }
.q-range .q-cal__arrows button:hover:not(:disabled) { background: var(--q-active, #EAEAEA); }
.q-range .q-cal__arrows svg { width: 14px; height: 14px; }
.q-range .q-cal__grid { row-gap: 2px; column-gap: 0; }
.q-range .q-cal__wd { height: 22px; font-size: 11px; }
.q-range .q-cal__day { width: 30px; height: 30px; font-size: 13px; }
.q-range .q-cal__day.is-today { box-shadow: inset 0 0 0 1px var(--q-ink, #0D0D0D); }
.q-rng__cell { display: flex; justify-content: center; }
/* Each day of the range is its own soft grey circle; the two ends a shade deeper
   and bold (owner, 28 Nov 2026: "circle ... and use the soft gray"). No ink fill. */
.q-range .q-cal__day.is-in { background: var(--q-active, rgba(0,0,0,.08)); }
.q-range .q-cal__day.is-in:hover { background: var(--q-control, #D9D9D9); }
.q-range .q-cal__day.is-on { background: var(--q-control-hover, #CDCDCD); color: var(--q-ink, #0D0D0D); font-weight: 600; box-shadow: none; }
.q-rng__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px 8px 12px; border-top: 1px solid var(--q-line, #E5E5E5); }
.q-rng__says { min-width: 0; font-size: 12px; color: var(--q-muted, #5D5D5D); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-rng__says b { color: var(--q-ink, #0D0D0D); font-weight: 600; }
.q-rng__acts { display: flex; gap: 2px; flex: none; }
.q-rng__btn { height: 28px; padding: 0 10px; border-radius: 999px; border: 0; background: none; color: var(--q-muted, #5D5D5D); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.q-rng__btn:hover:not(:disabled) { color: var(--q-ink, #0D0D0D); }
.q-rng__btn:disabled { color: var(--q-faint, #8F8F8F); opacity: .6; cursor: default; }
.q-rng__btn--go { background: var(--q-ink, #0D0D0D); color: var(--q-on-ink, #fff); padding: 0 14px; }
.q-rng__btn--go:hover:not(:disabled) { color: var(--q-on-ink, #fff); opacity: .88; }
.q-rng__btn--go:disabled { background: var(--q-panel, #F3F3F3); color: var(--q-faint, #8F8F8F); }
/* Phone: the same panel as a sheet, with room to tap. */
.q-menu--sheet.q-range { width: auto; }
.q-menu--sheet .q-rng__presets { padding: 12px 20px 4px; }
.q-menu--sheet.q-range .q-cal__month { padding: 6px 16px 10px; }
.q-menu--sheet.q-range .q-cal__day { width: 40px; height: 40px; font-size: 14px; }
.q-menu--sheet .q-rng__foot { padding: 12px 20px; }

/* A money account's mark in a dropdown and on its field (q-select.js; owner, 28 Nov 2026):
   the bank's or MoMo's logo on a white tile, as on the account pages, or its initials.
   White in both themes on purpose (the account pages' `bg-white`): a bank's logo is
   drawn for white, so this is the logo's paper, not a theme colour. */
.q-mark { display: inline-grid; place-items: center; width: 22px; height: 22px; flex: none; overflow: hidden; border-radius: 6px; border: 1px solid var(--q-line, #E5E5E5); background: white; vertical-align: middle; margin-right: 8px; }
.q-mark img { width: 100%; height: 100%; object-fit: contain; padding: 2px; box-sizing: border-box; }
.q-mark--ini { background: var(--q-card, #EDEDED); border-color: transparent; color: var(--q-ink, #0D0D0D); font-size: 9px; font-weight: 600; letter-spacing: -0.02em; }
.q-opt .q-mark { margin-right: 0; }
.q-sel__value .q-mark { margin-top: -2px; }
