/* Copied from the Vorreon design system (components/bundle.css). Update it there first, then copy here. */
/* Vorreon components. Plain CSS classes (v-*), no JavaScript.
   Every value reads a design-system token with the light-theme value as fallback,
   so the file works on its own (Razor app, Design canvas) and follows tokens.css themes when loaded. */

/* ---------- Shell: page layout with the admin side navigation ---------- */
.v-shell { 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; }
.v-shell__main { flex: 999 1 640px; min-width: 0; box-sizing: border-box; padding: 32px 48px 48px; display: flex; flex-direction: column; gap: 24px; }
.v-page-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.v-page-header__title { margin: 0; font-family: var(--font-display, "Bricolage Grotesque", system-ui, sans-serif); font-size: 28px; font-weight: 700; line-height: 1.2; color: var(--ink, #2d2926); }
.v-page-header__subtitle { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--text-muted, #5e5751); }

.v-shell__body { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; }
.v-shell__body > .v-shell__main { flex: 1 1 auto; }

/* ---------- Topbar ---------- */
.v-topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; min-height: 64px; box-sizing: border-box; padding: 12px 48px; background: var(--surface, #ffffff); border-bottom: 1px solid var(--border, #e2ddd6); }
.v-topbar__crumbs { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--text-muted, #5e5751); }
.v-topbar__crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--pasir-400, #c9c2ba); }
.v-topbar__crumbs a { color: var(--text-muted, #5e5751); text-decoration: none; }
.v-topbar__crumbs a:hover { color: var(--link, #684a8b); text-decoration: underline; }
.v-topbar__crumbs [aria-current="page"] { color: var(--ink, #2d2926); font-weight: 600; }
.v-avatar { flex: none; width: 36px; height: 36px; border-radius: var(--radius-full, 999px); background: var(--anggrek-100, #eae3f1); color: var(--anggrek-700, #533b70); display: grid; place-items: center; font-size: 14px; font-weight: 600; }
@media (max-width: 760px) { .v-topbar { padding: 12px 16px; } }

/* ---------- Menu: account dropdown on native <details>, no JavaScript ---------- */
.v-menu { position: relative; }
.v-menu > summary { list-style: none; display: flex; align-items: center; gap: 12px; min-height: 44px; box-sizing: border-box; padding: 4px 10px 4px 4px; border-radius: var(--radius-md, 6px); font-size: 14px; color: var(--ink, #2d2926); cursor: pointer; user-select: none; }
.v-menu > summary::-webkit-details-marker { display: none; }
.v-menu > summary:hover, .v-menu[open] > summary { background: var(--surface-muted, #f1ece6); }
.v-menu > summary:focus-visible { outline: 2px solid var(--primary, #684a8b); outline-offset: 2px; }
.v-menu__chevron { flex: none; width: 16px; height: 16px; color: var(--text-muted, #5e5751); }
.v-menu[open] .v-menu__chevron { transform: rotate(180deg); }
.v-menu__panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 200px; box-sizing: border-box; padding: 6px; background: var(--surface, #ffffff); border: 1px solid var(--border, #e2ddd6); border-radius: var(--radius-lg, 10px); box-shadow: var(--shadow-lg, 0 14px 36px rgba(45, 41, 38, 0.12)); display: flex; flex-direction: column; }
.v-menu__panel form { margin: 0; }
.v-menu__item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; box-sizing: border-box; padding: 0 12px; border: 0; border-radius: var(--radius-sm, 4px); background: transparent; font: inherit; font-size: 14px; color: var(--ink, #2d2926); text-align: left; text-decoration: none; cursor: pointer; }
.v-menu__item:hover { background: var(--surface-muted, #f1ece6); color: var(--ink, #2d2926); }
.v-menu__item:focus-visible { outline: 2px solid var(--primary, #684a8b); outline-offset: -2px; }

/* ---------- SideNav ---------- */
.v-sidenav { flex: 1 1 240px; max-width: 280px; box-sizing: border-box; padding: 0 16px 24px; background: var(--surface-deep, #2a1f39); color: var(--text-on-deep, #d8d2cc); display: flex; flex-direction: column; gap: 24px; }
.v-sidenav__brand { display: flex; align-items: center; min-height: 64px; box-sizing: border-box; margin: 0 -16px; padding: 12px 28px; border-bottom: 1px solid var(--anggrek-800, #3e2d54); }
.v-sidenav__brand:hover { background: var(--anggrek-800, #3e2d54); }
.v-sidenav__brand:focus-visible { outline: 2px solid var(--anggrek-300, #b7a2cf); outline-offset: -4px; }
.v-sidenav__brand img { display: block; width: 148px; height: 40px; }
.v-sidenav__nav { display: flex; flex-direction: column; gap: 4px; }
.v-sidenav__link { display: flex; align-items: center; gap: 12px; min-height: 44px; box-sizing: border-box; padding: 10px 12px; border-radius: var(--radius-md, 6px); color: var(--text-on-deep, #d8d2cc); font-size: 14px; font-weight: 500; text-decoration: none; }
.v-sidenav__link:hover { background: var(--anggrek-800, #3e2d54); color: var(--pasir-0, #ffffff); }
.v-sidenav__link[aria-current="page"] { background: var(--anggrek-800, #3e2d54); color: var(--pasir-0, #ffffff); font-weight: 600; }
.v-sidenav__link svg { flex: none; width: 18px; height: 18px; }
.v-sidenav__footer { margin-top: auto; padding: 16px 12px 0; border-top: 1px solid var(--anggrek-800, #3e2d54); display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.v-sidenav__user { overflow-wrap: anywhere; color: var(--anggrek-200, #d4c7e3); }
@media (max-width: 760px) { .v-sidenav { max-width: none; flex-basis: 100%; } .v-sidenav__nav { flex-direction: row; flex-wrap: wrap; } .v-shell__main { padding: 24px 16px 32px; } }

/* ---------- Button ---------- */
.v-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; box-sizing: border-box; padding: 0 20px; border: 1px solid transparent; border-radius: var(--radius-md, 6px); font: inherit; font-size: 16px; font-weight: 600; line-height: 1; text-decoration: none; cursor: pointer; white-space: nowrap; }
.v-btn--primary { background: var(--primary, #684a8b); color: var(--on-primary, #ffffff); }
.v-btn--primary:hover { background: var(--primary-hover, #533b70); color: var(--on-primary, #ffffff); }
.v-btn--secondary { background: var(--surface, #ffffff); color: var(--ink, #2d2926); border-color: var(--border-strong, #d8d2cc); }
.v-btn--secondary:hover { background: var(--surface-muted, #f1ece6); color: var(--ink, #2d2926); }
.v-btn--ghost { background: transparent; color: var(--link, #684a8b); }
.v-btn--ghost:hover { background: var(--anggrek-50, #f5f2f8); color: var(--primary-hover, #533b70); }
.v-btn--danger { background: var(--terakota-700, #8e553b); color: var(--pasir-0, #ffffff); }
.v-btn--danger:hover { background: #7a4832; color: var(--pasir-0, #ffffff); }
.v-btn--on-deep { background: transparent; color: var(--text-on-deep, #d8d2cc); border-color: var(--anggrek-700, #533b70); }
.v-btn--on-deep:hover { background: var(--anggrek-800, #3e2d54); color: var(--pasir-0, #ffffff); }
.v-btn--sm { height: 36px; padding: 0 14px; font-size: 14px; }
.v-btn--block { display: flex; width: 100%; }
.v-btn:disabled, .v-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; pointer-events: none; }
.v-btn:focus-visible, .v-input:focus-visible, .v-check input:focus-visible, .v-sidenav__link:focus-visible, .v-link:focus-visible { outline: 2px solid var(--primary, #684a8b); outline-offset: 2px; }
.v-sidenav .v-sidenav__link:focus-visible, .v-sidenav .v-btn:focus-visible { outline-color: var(--anggrek-300, #b7a2cf); }

/* ---------- Link ---------- */
.v-link { color: var(--link, #684a8b); font-weight: 600; text-decoration: none; }
.v-link:hover { color: var(--primary-hover, #533b70); text-decoration: underline; }

/* ---------- TextField ---------- */
.v-field { display: flex; flex-direction: column; gap: 6px; }
.v-field__label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.v-field__label { font-size: 14px; font-weight: 600; color: var(--text, #443e3a); }
.v-field__hint { font-size: 14px; color: var(--text-muted, #5e5751); }
.v-field__error { font-size: 14px; color: var(--terakota-700, #8e553b); }
.v-input { height: 44px; width: 100%; box-sizing: border-box; padding: 0 12px; font: inherit; font-size: 16px; color: var(--ink, #2d2926); background: var(--surface, #ffffff); border: 1px solid var(--border-control, #7d756e); border-radius: var(--radius-sm, 4px); }
.v-input::placeholder { color: var(--text-muted, #5e5751); }
.v-input[aria-invalid="true"] { border-color: var(--terakota-700, #8e553b); }
.v-search { display: flex; gap: 8px; flex-wrap: wrap; }
.v-search .v-input { flex: 1 1 240px; width: auto; }

/* ---------- Checkbox ---------- */
.v-check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; color: var(--text, #443e3a); cursor: pointer; }
.v-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--primary, #684a8b); }

/* ---------- Alert ---------- */
.v-alert { box-sizing: border-box; padding: 12px 16px; border: 1px solid; border-radius: var(--radius-sm, 4px); font-size: 14px; line-height: 1.5; }
.v-alert--error { background: var(--terakota-50, #faf3ee); border-color: var(--terakota-200, #e7c4ad); color: var(--terakota-700, #8e553b); }
.v-alert--success { background: var(--surface, #ffffff); border-color: var(--pandan-300, #9fb898); color: var(--online-text, #3f5239); }
.v-alert--info { background: var(--anggrek-50, #f5f2f8); border-color: var(--anggrek-100, #eae3f1); color: var(--anggrek-700, #533b70); }

/* ---------- Badge ---------- */
.v-badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: var(--radius-full, 999px); border: 1px solid transparent; font-size: 12px; font-weight: 600; line-height: 20px; white-space: nowrap; }
.v-badge__dot { width: 8px; height: 8px; border-radius: var(--radius-full, 999px); background: currentColor; }
.v-badge--active { background: var(--surface, #ffffff); border-color: var(--pandan-300, #9fb898); color: var(--online-text, #3f5239); }
.v-badge--active .v-badge__dot { background: var(--online, #657f5e); }
.v-badge--inactive { background: var(--surface-muted, #f1ece6); color: var(--text-muted, #5e5751); }
.v-badge--brand { background: var(--anggrek-50, #f5f2f8); border-color: var(--anggrek-100, #eae3f1); color: var(--anggrek-700, #533b70); }

/* ---------- Card ---------- */
.v-card { box-sizing: border-box; padding: 24px; background: var(--surface, #ffffff); border: 1px solid var(--border, #e2ddd6); border-radius: var(--radius-lg, 10px); box-shadow: var(--shadow-sm, 0 1px 3px rgba(45, 41, 38, 0.07)); display: flex; flex-direction: column; gap: 16px; }
.v-card__header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.v-card__title { margin: 0; font-family: var(--font-display, "Bricolage Grotesque", system-ui, sans-serif); font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--ink, #2d2926); }
.v-dl { margin: 0; display: grid; grid-template-columns: minmax(120px, max-content) minmax(0, 1fr); gap: 12px 24px; font-size: 14px; }
.v-dl dt { color: var(--text-muted, #5e5751); }
.v-dl dd { margin: 0; color: var(--ink, #2d2926); overflow-wrap: anywhere; }

/* ---------- StatCard ---------- */
.v-stat { box-sizing: border-box; padding: 20px 24px; background: var(--surface, #ffffff); border: 1px solid var(--border, #e2ddd6); border-radius: var(--radius-lg, 10px); display: flex; flex-direction: column; gap: 4px; }
.v-stat__label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted, #5e5751); }
.v-stat__value { font-family: var(--font-display, "Bricolage Grotesque", system-ui, sans-serif); font-size: 40px; font-weight: 800; line-height: 1.1; letter-spacing: -0.025em; color: var(--ink, #2d2926); }
.v-stat__meta { font-size: 14px; color: var(--text-muted, #5e5751); }
.v-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }

/* ---------- DataTable ---------- */
.v-table-wrap { overflow-x: auto; background: var(--surface, #ffffff); border: 1px solid var(--border, #e2ddd6); border-radius: var(--radius-lg, 10px); }
.v-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.v-table th { padding: 12px 16px; background: var(--surface-muted, #f1ece6); text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted, #5e5751); white-space: nowrap; }
.v-table td { padding: 12px 16px; border-top: 1px solid var(--border, #e2ddd6); color: var(--text, #443e3a); vertical-align: middle; }
.v-table tbody tr:hover td { background: var(--anggrek-50, #f5f2f8); }
.v-table__strong { color: var(--ink, #2d2926); font-weight: 600; }
.v-table__mono { font-family: var(--font-mono, "Geist Mono", ui-monospace, monospace); font-size: 12px; letter-spacing: .04em; }
.v-table__empty { padding: 32px 16px; text-align: center; color: var(--text-muted, #5e5751); }

/* ---------- Pagination ---------- */
.v-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--text-muted, #5e5751); }
.v-pagination__buttons { display: flex; gap: 8px; }

/* ---------- Modal: confirmation on the native popover API, no JavaScript ---------- */
.v-modal { margin: auto; width: min(420px, calc(100vw - 32px)); box-sizing: border-box; padding: 24px; background: var(--surface, #ffffff); color: var(--text, #443e3a); border: 1px solid var(--border, #e2ddd6); border-radius: var(--radius-xl, 14px); box-shadow: var(--shadow-lg, 0 14px 36px rgba(45, 41, 38, 0.12)); font-family: var(--font-sans, "Instrument Sans", system-ui, sans-serif); font-size: 16px; line-height: 1.6; }
.v-modal:popover-open, .v-modal:not([popover]) { display: flex; flex-direction: column; gap: 16px; }
.v-modal::backdrop { background: var(--overlay, rgba(42, 31, 57, 0.45)); }
.v-modal__title { margin: 0; font-family: var(--font-display, "Bricolage Grotesque", system-ui, sans-serif); font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--ink, #2d2926); }
.v-modal__text { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-muted, #5e5751); }
.v-modal__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.v-modal__actions form { margin: 0; }

/* ---------- Icon: Lucide line icons (ISC licence) as inline SVG, colour follows text ---------- */
.v-icon { flex: none; width: 18px; height: 18px; }
.v-icon, .v-sidenav__link svg { stroke-linecap: round; stroke-linejoin: round; }
.v-btn--sm .v-icon, .v-menu__item .v-icon { width: 16px; height: 16px; }
.v-menu__item .v-icon { color: var(--text-muted, #5e5751); }
.v-alert { display: flex; align-items: flex-start; gap: 10px; }
.v-alert .v-icon { margin-top: 1px; }
.v-search__field { position: relative; flex: 1 1 240px; display: flex; }
.v-search__field .v-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted, #5e5751); pointer-events: none; }
.v-search__field .v-input { flex: 1 1 auto; width: 100%; padding-left: 40px; }
.v-stat__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.v-stat__icon { flex: none; width: 36px; height: 36px; border-radius: var(--radius-md, 6px); background: var(--anggrek-50, #f5f2f8); color: var(--anggrek-600, #684a8b); display: grid; place-items: center; }
.v-stat__icon .v-icon { width: 20px; height: 20px; }

/* ---------- Menu as a button (e.g. Filter next to the search field) ---------- */
.v-menu > summary.v-btn { gap: 8px; padding: 0 14px 0 16px; font-size: 16px; }
.v-menu__label { padding: 8px 12px 4px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted, #5e5751); }
.v-menu__item[aria-current="true"] { font-weight: 600; color: var(--primary, #684a8b); }
.v-avatar--lg { width: 64px; height: 64px; font-family: var(--font-display, "Bricolage Grotesque", system-ui, sans-serif); font-size: 22px; font-weight: 700; }
.v-btn--icon { width: 44px; padding: 0; }
.v-btn--sm.v-btn--icon { width: 36px; }

/* ---------- Checklist: live password rules (state toggled by a few lines of page JS) ---------- */
.v-checklist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.5; color: var(--text-muted, #5e5751); }
.v-checklist li { display: flex; align-items: center; gap: 8px; }
.v-checklist .v-icon { width: 16px; height: 16px; }
.v-checklist__on { display: none; }
.v-checklist .is-met { color: var(--online-text, #3f5239); }
.v-checklist .is-met .v-checklist__on { display: block; }
.v-checklist .is-met .v-checklist__off { display: none; }
