/* Additions on top of the old compiled Tailwind file (app.css). */
[hidden] { display: none !important; }
body { font-family: Poppins, sans-serif; }
#free { scroll-margin-top: 5rem; }
html { scroll-behavior: smooth; }
/* Admin dashboard (2026-10-16). */
.admin-count { min-width: 2.5rem; }
@media (min-width: 640px) { .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .admin-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.viewing-as { background: #b50600; color: #fff; }
.viewing-as button { background: #fff; color: #111; }
.viewing-as button:hover { background: #f3f3f3; }
/* Admin users table on phones: one card per user, code count beside the email. */
.admin-users .c-label { display: none; }
@media (max-width: 639px) {
  .admin-users thead, .admin-users .c-date { display: none; }
  .admin-users tr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 16px 24px; }
  .admin-users td { padding: 0 !important; }
  .admin-users .c-user { flex: 1 0 100%; }
  .admin-users .c-label { display: inline; margin-left: 4px; }
  .admin-users .c-actions { flex: 1 0 100%; padding-top: 8px !important; }
  .admin-users .c-actions > div { justify-content: flex-start; flex-wrap: wrap; }
  .admin-users .c-actions > div { gap: 6px; }
  .admin-users .c-actions button { padding-left: 8px; padding-right: 8px; gap: 6px; }
  .admin-users .c-actions .sm\:inline { display: inline; }
}
/* Workspaces + team page (2026-10-16): utilities missing from the old compiled Tailwind file. */
.max-w-\[1200px\] { max-width: 1200px; }
.max-w-full { max-width: 100%; }
.self-start { align-self: flex-start; }
@media (min-width: 640px) { .sm\:self-auto { align-self: auto; } }
.pl-3 { padding-left: 0.75rem; }
.pl-4 { padding-left: 1rem; }
.pr-8 { padding-right: 2rem; }
.right-2 { right: 0.5rem; }
#ws-switch { min-width: 260px; }
#ws-switch option[disabled], #moveTo option[disabled] { display: none; }
@media (min-width: 640px) { .sm\:p-12 { padding: 3rem; } }
/* Announcements (2026-10-20). */
.ann-dot { position: absolute; top: 4px; right: 4px; width: 9px; height: 9px; border-radius: 9999px; background: #b50600; box-shadow: 0 0 0 2px #fff; }
.dark .ann-dot { box-shadow: 0 0 0 2px #000; }
.first\:border-t-0:first-child { border-top-width: 0; }
@media (min-width: 640px) { .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.break-words { overflow-wrap: anywhere; }
.no-underline { text-decoration: none; }
textarea:disabled { opacity: .5; }
/* Rich text: announcement bodies (pop-up, bell list, editor) and the editor toolbar. */
.ann-body > * + * { margin-top: .85em; }
.ann-body h2 { font-size: 1.35em; font-weight: 700; line-height: 1.25; color: inherit; }
.ann-body h3 { font-size: 1.15em; font-weight: 600; line-height: 1.3; }
.ann-body h2, .ann-body h3 { color: #fff; } .light .ann-body h2, .light .ann-body h3 { color: #111827; }
.ann-body ul { list-style: disc; padding-left: 1.4em; } .ann-body ol { list-style: decimal; padding-left: 1.4em; }
.ann-body li + li { margin-top: .3em; }
.ann-body a { color: #b50600; text-decoration: underline; text-underline-offset: 2px; }
.ann-body blockquote { border-left: 3px solid #b50600; padding-left: 1em; font-style: italic; }
.ann-body img { display: block; max-width: 100%; height: auto; border-radius: 8px; }
.ann-body strong, .ann-body b { font-weight: 700; }
.ann-toolbar { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px; border-bottom: 1px solid rgba(255,255,255,.12); }
.light .ann-toolbar { border-color: #e5e7eb; background: #f9fafb; }
.ann-tool { min-width: 36px; height: 36px; padding: 0 8px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; color: inherit; }
.ann-tool:hover { background: rgba(127,127,127,.15); } .ann-tool.is-on { background: rgba(181,6,0,.15); color: #b50600; }
.ann-sep { width: 1px; margin: 6px 4px; background: rgba(127,127,127,.3); }
.ann-editable { min-height: 220px; max-height: 480px; overflow-y: auto; padding: 14px 16px; outline: none; line-height: 1.6; }
.light .ann-editable { background: #fff; color: #111827; }
.ann-editable:empty::before { content: attr(data-placeholder); color: #9ca3af; }
.ann-editable.is-busy { opacity: .6; cursor: progress; }
.ann-editor:focus-within { box-shadow: 0 0 0 3px rgba(181,6,0,.2); }
/* Scan analytics (2026-10-20): KPI tiles + single-series line chart. Light: brand red #b50600; dark: #ef4444 (validated). */
.cqr-stat { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 1.75rem; font-weight: 600; line-height: 1.15; }
.cqr-chart { position: relative; width: 100%; --c-line: #ef4444; --c-grid: rgba(255,255,255,.08); --c-text: #9ca3af; --c-surface: #111827; }
.light .cqr-chart { --c-line: #b50600; --c-grid: #e5e7eb; --c-text: #6b7280; --c-surface: #ffffff; }
.cqr-svg { display: block; max-width: 100%; overflow: visible; }
.cqr-grid { stroke: var(--c-grid); stroke-width: 1; }
.cqr-tick { fill: var(--c-text); font-size: 11px; font-family: 'JetBrains Mono', ui-monospace, monospace; }
.cqr-area { fill: var(--c-line); opacity: .1; }
.cqr-line { fill: none; stroke: var(--c-line); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.cqr-cross { stroke: var(--c-text); stroke-width: 1; opacity: .6; }
.cqr-dot { fill: var(--c-line); stroke: var(--c-surface); stroke-width: 2; }
.cqr-svg rect:focus { outline: none; } .cqr-svg rect:focus-visible { outline: 2px solid var(--c-line); outline-offset: 2px; }
.cqr-tip { position: absolute; pointer-events: none; padding: 6px 10px; border-radius: 6px; background: #111827; color: #fff; font-size: 12px; line-height: 1.35; white-space: nowrap; box-shadow: 0 4px 12px rgba(0,0,0,.2); display: flex; flex-direction: column; }
.cqr-tip strong { font-size: 14px; } .cqr-tip span { color: #d1d5db; }
.dark .cqr-tip { background: #f9fafb; color: #111827; } .dark .cqr-tip span { color: #4b5563; }
.cqr-table-wrap { max-height: 280px; overflow-y: auto; }
@media (max-width: 639px) {
  #qr-analytics .flex.items-center.gap-3 { flex-wrap: wrap; width: 100%; }
  #qr-analytics .flex.items-center.gap-3 > .relative { flex: 1 1 100%; }
  #an-qr, #an-tf { width: 100%; min-width: 0; }
}
/* Signup: "I'm signing up as an individual" grays out the business name (2026-10-20). */
#f-individual { accent-color: #b50600; }
.select-none { user-select: none; }
#f-company:disabled { opacity: .45; cursor: not-allowed; }
.light #f-company:disabled { background-color: #eef0f3; opacity: 1; color: #9ca3af; }
.light #f-company:disabled::placeholder { color: transparent; }
.dark #f-company:disabled::placeholder { color: transparent; }
/* Delete account button (2026-10-20). */
.bg-red-600 { background-color: #dc2626; } .hover\:bg-red-700:hover { background-color: #b91c1c; }
.light .bg-red-600, .light .bg-red-600 * { color: #fff; }
/* Support pop-up (2026-10-20). */
.sup-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sup-done { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 320px; padding: 48px 32px; }
.sup-done[hidden] { display: none; }
[data-modal="support"] { transition: opacity .4s ease; }
[data-modal="support"].is-fading { opacity: 0; }
