/* App-only styles on top of vorreon.css (the design-system components). */
body { margin: 0; background: var(--bg, #f7f5f2); }
/* :where keeps these at zero specificity so component colours (e.g. a primary button made from <a>) win on hover */
:where(a) { color: var(--link, #684a8b); }
:where(a):hover { color: var(--primary-hover, #533b70); }
.field-validation-valid { display: none; }
.v-input.input-validation-error { border-color: var(--terakota-700, #8e553b); }
.v-shell__main > * { margin-top: 0; margin-bottom: 0; }

/* Auth pages: brand panel on the left, form card on the right */
.auth { min-height: 100vh; display: flex; flex-wrap: wrap; background: var(--bg, #f7f5f2); color: var(--text, #443e3a); font-family: var(--font-sans, "Instrument Sans", system-ui, sans-serif); font-size: 16px; line-height: 1.6; }
.auth__brand { flex: 1 1 480px; box-sizing: border-box; padding: 48px; background: var(--surface-deep, #2a1f39); display: flex; flex-direction: column; justify-content: space-between; gap: 48px; overflow: hidden; }
.auth__logo { display: block; width: 177px; height: 48px; }
.auth__pitch { display: flex; flex-direction: column; gap: 24px; max-width: 460px; }
.auth__scan { display: flex; flex-direction: column; gap: 12px; }
.auth__scan span { display: block; border-radius: 2px; }
.auth__headline { margin: 0; font-family: var(--font-display, "Bricolage Grotesque", system-ui, sans-serif); font-size: 56px; font-weight: 800; line-height: 1; letter-spacing: -0.025em; color: var(--pasir-50, #f7f5f2); }
.auth__lede { margin: 0; font-size: 18px; color: var(--pasir-300, #d8d2cc); }
.auth__legal { font-family: var(--font-mono, "Geist Mono", ui-monospace, monospace); font-size: 12px; letter-spacing: 0.04em; color: var(--anggrek-300, #b7a2cf); }
.auth__main { flex: 999 1 560px; min-width: 0; box-sizing: border-box; padding: 48px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; }
.auth__card { width: 100%; max-width: 420px; padding: 32px; gap: 24px; }
.auth__form { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.auth__footer { padding-top: 16px; border-top: 1px solid var(--border, #e2ddd6); font-size: 14px; line-height: 1.5; color: var(--text-muted, #5e5751); }
.auth__copy { margin: 0; font-size: 12px; color: var(--text-muted, #5e5751); }
.auth__forgot { font-size: 14px; font-weight: 500; }
/* Phones: drop the brand panel so the form is the first thing on screen */
@media (max-width: 760px) { .auth__brand { display: none; } .auth__main { padding: 24px 16px; justify-content: flex-start; } .auth__card { padding: 24px; } }

/* Shared bits inside the admin and customer shell */
.page-form { max-width: 560px; }
.cols { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.cols > * { flex: 1 1 340px; min-width: 0; }
.cols > .cols__wide { flex: 2 1 520px; }
.muted { color: var(--text-muted, #5e5751); }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px 16px; text-align: center; border: 1px dashed var(--border-strong, #d8d2cc); border-radius: var(--radius-lg, 10px); }
.empty-state__title { margin: 0; font-weight: 600; color: var(--ink, #2d2926); }
.empty-state__text { margin: 0; font-size: 14px; color: var(--text-muted, #5e5751); }
.empty-state .v-stat__icon { width: 44px; height: 44px; }

/* Customer detail header */
.profile-head { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.profile-head__who { display: flex; align-items: center; gap: 20px; min-width: 0; }
.profile-head__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.profile-head__name { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.profile-head__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 14px; color: var(--text-muted, #5e5751); }
.profile-head__meta span { display: inline-flex; align-items: center; gap: 6px; }
.profile-head__meta .v-icon { width: 16px; height: 16px; }
.profile-head form { margin: 0; }
.auth__card--wide { max-width: 720px; }
.totp-setup { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 32px; }
.totp-setup > .qr { flex: 1 1 220px; }
.totp-setup__form { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.qr { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.qr svg { display: block; width: 200px; height: 200px; }

.vm-metrics__ranges { display: flex; flex-wrap: wrap; gap: 8px; }
.vm-metrics__charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.vm-metrics__chart { margin: 0; min-width: 0; }
.vm-metrics__chart figcaption { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.vm-metrics__chart > div { position: relative; height: 200px; }
.vm-metrics__chart.is-loading > div { opacity: 0.4; }
.vm-metrics__spinner { display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: vm-spin 0.8s linear infinite; }
@keyframes vm-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .vm-metrics__spinner { animation-duration: 3s; } }

.vm-console__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.vm-console__screen { height: 70vh; min-height: 320px; background: #000; border-radius: 8px; overflow: hidden; }
.vm-console__screen:fullscreen { height: 100%; border-radius: 0; }

/* Billing */
.v-badge--warning { background: #fff6e5; border-color: #f2d39b; color: #7a4f00; }
@media print {
    .v-sidenav, .v-topbar, .no-print { display: none !important; }
    .invoice-document { border: none; box-shadow: none; }
}
