/*
 * OEM Parts Store admin theme
 * Loaded after the Velzon template CSS (layouts/head-css). Re-maps the template's
 * --vz-* variables to one palette per mode and restyles the shared components,
 * so pages keep their markup.
 */

/* ---------- Tokens ---------- */
html[data-bs-theme="light"],
html:not([data-bs-theme]) {
    --oem-bg: #f4f6fa;
    --oem-surface: #ffffff;
    --oem-surface-2: #f8fafc;
    --oem-surface-3: #eef2f7;
    --oem-border: #e3e8ef;
    --oem-border-strong: #cfd6e0;
    --oem-text: #0f172a;
    --oem-text-2: #334155;
    --oem-muted: #64748b;

    --oem-accent: #2563eb;
    --oem-accent-rgb: 37, 99, 235;
    --oem-accent-hover: #1d4ed8;
    --oem-accent-soft: rgba(37, 99, 235, 0.09);
    --oem-accent-text: #1d4ed8;

    --oem-success: #15803d;  --oem-success-soft: #dcfce7;  --oem-success-line: #86efac;
    --oem-warning: #b45309;  --oem-warning-soft: #fef3c7;  --oem-warning-line: #fcd34d;
    --oem-danger: #b91c1c;   --oem-danger-soft: #fee2e2;   --oem-danger-line: #fca5a5;
    --oem-info: #0369a1;     --oem-info-soft: #e0f2fe;     --oem-info-line: #7dd3fc;
    --oem-neutral: #475569;  --oem-neutral-soft: #e9eef5;  --oem-neutral-line: #cbd5e1;

    --oem-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.04);
    --oem-shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.10);
}

html[data-bs-theme="dark"] {
    --oem-bg: #0b1120;
    --oem-surface: #111a2b;
    --oem-surface-2: #152036;
    --oem-surface-3: #1b2843;
    --oem-border: #223049;
    --oem-border-strong: #2e3e5c;
    --oem-text: #e6ebf3;
    --oem-text-2: #c4cddb;
    --oem-muted: #8e9bb3;

    --oem-accent: #5b8cff;
    --oem-accent-rgb: 91, 140, 255;
    --oem-accent-hover: #7aa2ff;
    --oem-accent-soft: rgba(91, 140, 255, 0.14);
    --oem-accent-text: #9db9ff;

    --oem-success: #4ade80;  --oem-success-soft: rgba(34, 197, 94, 0.14);   --oem-success-line: rgba(74, 222, 128, 0.35);
    --oem-warning: #fbbf24;  --oem-warning-soft: rgba(245, 158, 11, 0.14);  --oem-warning-line: rgba(251, 191, 36, 0.35);
    --oem-danger: #f87171;   --oem-danger-soft: rgba(239, 68, 68, 0.14);    --oem-danger-line: rgba(248, 113, 113, 0.35);
    --oem-info: #38bdf8;     --oem-info-soft: rgba(14, 165, 233, 0.14);     --oem-info-line: rgba(56, 189, 248, 0.35);
    --oem-neutral: #b6c2d6;  --oem-neutral-soft: rgba(148, 163, 184, 0.14); --oem-neutral-line: rgba(148, 163, 184, 0.3);

    --oem-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    --oem-shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.45);
}

/* Map the template's variables onto the palette */
html[data-bs-theme] {
    --vz-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --vz-body-font-size: 0.875rem;
    --vz-body-bg: var(--oem-bg);
    --vz-body-color: var(--oem-text-2);
    --vz-emphasis-color: var(--oem-text);
    --vz-heading-color: var(--oem-text);
    --vz-secondary-color: var(--oem-muted);
    --vz-secondary-bg: var(--oem-surface);
    --vz-tertiary-bg: var(--oem-surface-2);
    --vz-border-color: var(--oem-border);
    --vz-border-color-translucent: var(--oem-border);
    --vz-link-color: var(--oem-accent-text);
    --vz-link-hover-color: var(--oem-accent-hover);
    --vz-primary: var(--oem-accent);
    --vz-primary-rgb: var(--oem-accent-rgb);
    --vz-primary-text-emphasis: var(--oem-accent-text);
    --vz-primary-bg-subtle: var(--oem-accent-soft);
    --vz-header-bg: var(--oem-surface);
    --vz-header-border: var(--oem-border);
    --vz-header-item-color: var(--oem-muted);
    --vz-topbar-user-bg: transparent;
    --vz-footer-bg: transparent;
    --vz-footer-color: var(--oem-muted);
    --vz-input-bg-custom: var(--oem-surface);
    --vz-input-border-custom: var(--oem-border-strong);
    --vz-card-bg-custom: var(--oem-surface);
    --vz-light: var(--oem-surface-3);
    --vz-light-rgb: 238, 242, 247;
}

html[data-bs-theme="dark"] {
    --vz-light-rgb: 27, 40, 67;
}

body {
    font-family: var(--vz-body-font-family);
    background-color: var(--oem-bg);
    color: var(--oem-text-2);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .h4, .h5 {
    color: var(--oem-text);
    font-family: var(--vz-body-font-family);
    letter-spacing: -0.01em;
}

.text-muted {
    color: var(--oem-muted) !important;
}

code {
    color: var(--oem-accent-text);
}

/* ---------- Sidebar ---------- */
html[data-sidebar="dark"] {
    --vz-vertical-menu-bg: #0e1628;
    --vz-vertical-menu-border: #0e1628;
    --vz-vertical-menu-item-color: #a9b4c8;
    --vz-vertical-menu-item-hover-color: #ffffff;
    --vz-vertical-menu-item-active-color: #ffffff;
    --vz-vertical-menu-item-active-bg: rgba(91, 140, 255, 0.16);
    --vz-vertical-menu-sub-item-color: #a9b4c8;
    --vz-vertical-menu-sub-item-hover-color: #ffffff;
    --vz-vertical-menu-sub-item-active-color: #ffffff;
    --vz-vertical-menu-title-color: #66748f;
    --vz-vertical-menu-box-shadow: none;
}

html[data-bs-theme="dark"][data-sidebar="dark"] {
    --vz-vertical-menu-bg: #0a1222;
    --vz-vertical-menu-border: var(--oem-border);
}

.app-menu {
    border-right: 1px solid var(--vz-vertical-menu-border);
}

.navbar-menu .navbar-nav .nav-link {
    font-weight: 500;
    font-size: 0.875rem;
    margin: 2px 12px;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.navbar-menu .navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.navbar-menu .navbar-nav .nav-link.active {
    background-color: var(--vz-vertical-menu-item-active-bg);
    color: var(--vz-vertical-menu-item-active-color);
    box-shadow: inset 3px 0 0 #5b8cff;
}

.navbar-menu .navbar-nav .nav-link i {
    font-size: 1.2rem;
    opacity: 0.9;
}

.navbar-menu .menu-title span {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.navbar-brand-box .oem-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 70px;
    color: #fff;
    text-decoration: none;
}

.oem-brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #5b8cff, #2563eb);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

/* collapsed sidebar: just the mark, centred */
[data-sidebar-size="sm"] .navbar-brand-box {
    padding-left: 0;
    padding-right: 0;
}

[data-sidebar-size="sm"] .navbar-brand-box .oem-brand {
    justify-content: center;
}

[data-sidebar-size="sm"] .oem-brand-name {
    display: none;
}

.oem-brand-name {
    font-weight: 600;
    font-size: 0.9375rem;
    line-height: 1.15;
    color: #fff;
    white-space: nowrap;
}

.oem-brand-name small {
    display: block;
    font-weight: 500;
    font-size: 0.6875rem;
    color: #8e9bb3;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ---------- Topbar ---------- */
#page-topbar {
    background-color: var(--oem-surface);
    border-bottom: 1px solid var(--oem-border);
    box-shadow: none;
}

.topbar-user .btn,
.topbar-user {
    background-color: transparent !important;
}

.btn-topbar.btn-ghost-secondary {
    color: var(--oem-muted);
}

.btn-topbar.btn-ghost-secondary:hover {
    background-color: var(--oem-surface-3);
    color: var(--oem-text);
}

.dropdown-menu {
    background-color: var(--oem-surface);
    border: 1px solid var(--oem-border);
    border-radius: 10px;
    box-shadow: var(--oem-shadow-lg);
}

.dropdown-item {
    color: var(--oem-text-2);
    border-radius: 6px;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--oem-surface-3);
    color: var(--oem-text);
}

/* ---------- Page header ---------- */
.page-content {
    padding-top: calc(70px + 1.5rem);
}

.page-title-box {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    margin: 0 0 1.25rem !important;
    padding: 0 !important;
}

.page-title-box h4 {
    font-size: 1.375rem !important;
    font-weight: 650;
    text-transform: none !important;
    color: var(--oem-text);
    margin-bottom: 0.15rem !important;
}

.page-title-box .oem-page-subtitle {
    color: var(--oem-muted);
    font-size: 0.875rem;
    margin: 0;
}

.page-title-box .breadcrumb {
    font-size: 0.8125rem;
}

.page-title-box .breadcrumb-item a {
    color: var(--oem-muted);
}

.page-title-box .breadcrumb-item.active {
    color: var(--oem-text-2);
}

/* ---------- Cards ---------- */
.card {
    background-color: var(--oem-surface);
    border: 1px solid var(--oem-border) !important;
    border-radius: 12px;
    box-shadow: var(--oem-shadow) !important;
    margin-bottom: 1.5rem;
}

.card.border-start {
    border-left-width: 1px !important;
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid var(--oem-border);
    padding: 1rem 1.25rem;
    border-radius: 12px 12px 0 0 !important;
}

/* coloured header bars from the template become plain */
.card-header.text-white,
.card-header[class*="bg-"] {
    background-color: transparent !important;
    color: var(--oem-text) !important;
}

.card-title,
.card-header h4,
.card-header h5 {
    font-size: 1rem !important;
    font-weight: 600;
    color: var(--oem-text);
    text-transform: none;
}

.card-body {
    padding: 1.25rem;
}

/* ---------- Tables ---------- */
.table {
    --vz-table-bg: transparent;
    --vz-table-color: var(--oem-text-2);
    --vz-table-border-color: var(--oem-border);
    --vz-table-hover-bg: var(--oem-accent-soft);
    --vz-table-hover-color: var(--oem-text);
    --vz-table-striped-bg: var(--oem-surface-2);
    color: var(--oem-text-2);
    margin-bottom: 0;
}

.table > :not(caption) > * > * {
    padding: 0.75rem 0.875rem;
    border-bottom-color: var(--oem-border);
    vertical-align: middle;
}

/* header rows: one neutral style for table-primary / table-light / table-dark heads */
.table > thead > tr > th,
.table thead.table-primary th,
.table thead.table-light th,
.table thead.table-dark th,
.table > thead.table-primary,
.table > thead.table-light,
.table > thead.table-dark {
    --vz-table-bg: var(--oem-surface-2);
    --vz-table-color: var(--oem-muted);
    --vz-table-border-color: var(--oem-border);
    background-color: var(--oem-surface-2) !important;
    color: var(--oem-muted) !important;
    font-size: 0.71875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    border-color: var(--oem-border) !important;
}

.table > thead > tr > th {
    border-bottom: 1px solid var(--oem-border) !important;
}

/* bordered tables: keep row lines only */
.table-bordered > :not(caption) > * > * {
    border-width: 0 0 1px 0 !important;
}

.table-bordered > :not(caption) > * {
    border-width: 0 !important;
}

.table-responsive {
    border: 1px solid var(--oem-border);
    border-radius: 10px;
}

.card-body > .table-responsive:only-child,
.card .table-responsive {
    background-color: var(--oem-surface);
}

.table > tbody > tr:last-child > * {
    border-bottom-width: 0 !important;
}

.table-hover > tbody > tr:hover > * {
    --vz-table-bg-state: var(--oem-accent-soft);
}

/* ---------- Badges (soft, one family) ---------- */
.badge {
    font-weight: 600;
    font-size: 0.71875rem;
    letter-spacing: 0.01em;
    padding: 0.35em 0.65em;
    border-radius: 999px;
    border: 1px solid transparent;
}

.badge.bg-success, .badge.bg-soft-success, .badge.bg-success-subtle { background-color: var(--oem-success-soft) !important; color: var(--oem-success) !important; border-color: var(--oem-success-line) !important; }
.badge.bg-warning, .badge.bg-soft-warning, .badge.bg-warning-subtle { background-color: var(--oem-warning-soft) !important; color: var(--oem-warning) !important; border-color: var(--oem-warning-line) !important; }
.badge.bg-danger,  .badge.bg-soft-danger,  .badge.bg-danger-subtle  { background-color: var(--oem-danger-soft) !important;  color: var(--oem-danger) !important;  border-color: var(--oem-danger-line) !important; }
.badge.bg-info,    .badge.bg-soft-info,    .badge.bg-info-subtle    { background-color: var(--oem-info-soft) !important;    color: var(--oem-info) !important;    border-color: var(--oem-info-line) !important; }
.badge.bg-primary, .badge.bg-soft-primary, .badge.bg-primary-subtle { background-color: var(--oem-accent-soft) !important;  color: var(--oem-accent-text) !important; border-color: rgba(var(--oem-accent-rgb), 0.3) !important; }
.badge.bg-secondary, .badge.bg-light, .badge.bg-dark, .badge.bg-soft-secondary,
.badge.bg-secondary-subtle { background-color: var(--oem-neutral-soft) !important; color: var(--oem-neutral) !important; border-color: var(--oem-neutral-line) !important; }

.badge .spinner-border,
.badge + .spinner-border {
    width: 0.8rem;
    height: 0.8rem;
    border-width: 0.15em;
}

/* ---------- Buttons ---------- */
.btn {
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 0.95rem;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.btn-sm {
    padding: 0.35rem 0.7rem;
    font-size: 0.8125rem;
    border-radius: 7px;
}

.btn-xs {
    border-radius: 6px;
}

.btn-primary {
    --vz-btn-bg: var(--oem-accent);
    --vz-btn-border-color: var(--oem-accent);
    --vz-btn-hover-bg: var(--oem-accent-hover);
    --vz-btn-hover-border-color: var(--oem-accent-hover);
    --vz-btn-active-bg: var(--oem-accent-hover);
    --vz-btn-active-border-color: var(--oem-accent-hover);
    --vz-btn-disabled-bg: var(--oem-accent);
    --vz-btn-disabled-border-color: var(--oem-accent);
    --vz-btn-color: #fff;
    --vz-btn-hover-color: #fff;
}

html[data-bs-theme="dark"] .btn-primary {
    --vz-btn-color: #0b1120;
    --vz-btn-hover-color: #0b1120;
    --vz-btn-active-color: #0b1120;
}

.btn-success {
    --vz-btn-bg: #16a34a;
    --vz-btn-border-color: #16a34a;
    --vz-btn-hover-bg: #15803d;
    --vz-btn-hover-border-color: #15803d;
    --vz-btn-disabled-bg: #16a34a;
    --vz-btn-disabled-border-color: #16a34a;
}

.btn-secondary,
.btn-light {
    --vz-btn-bg: var(--oem-surface-3);
    --vz-btn-border-color: var(--oem-border-strong);
    --vz-btn-color: var(--oem-text-2);
    --vz-btn-hover-bg: var(--oem-border);
    --vz-btn-hover-border-color: var(--oem-border-strong);
    --vz-btn-hover-color: var(--oem-text);
    --vz-btn-disabled-bg: var(--oem-surface-3);
    --vz-btn-disabled-border-color: var(--oem-border);
    --vz-btn-disabled-color: var(--oem-muted);
}

.btn-soft-primary {
    background-color: var(--oem-accent-soft) !important;
    color: var(--oem-accent-text) !important;
    border-color: transparent !important;
}

.btn-soft-primary:hover {
    background-color: var(--oem-accent) !important;
    color: #fff !important;
}

.btn-outline-warning,
.btn-outline-primary,
.btn-outline-danger,
.btn-outline-secondary {
    background-color: var(--oem-surface);
}

.btn:disabled,
.btn.disabled {
    opacity: 0.55;
}

/* buttons in table rows: one line, and soft colours for edit / view / delete */
.table .btn {
    white-space: nowrap;
}

.table .btn-sm {
    padding: 0.3rem 0.55rem;
}

.table .btn-info,
.table .btn-danger,
.table .btn-warning {
    background-color: var(--btn-soft-bg);
    border-color: transparent;
    color: var(--btn-soft-fg);
}

.table .btn-info:hover,
.table .btn-danger:hover,
.table .btn-warning:hover {
    background-color: var(--btn-soft-fg);
    border-color: var(--btn-soft-fg);
    color: var(--oem-surface);
}

.table .btn-info    { --btn-soft-bg: var(--oem-accent-soft); --btn-soft-fg: var(--oem-accent-text); }
.table .btn-danger  { --btn-soft-bg: var(--oem-danger-soft); --btn-soft-fg: var(--oem-danger); }
.table .btn-warning { --btn-soft-bg: var(--oem-warning-soft); --btn-soft-fg: var(--oem-warning); }

/* stand-alone danger / info buttons: calmer shades */
.btn-danger {
    --vz-btn-bg: #dc2626;
    --vz-btn-border-color: #dc2626;
    --vz-btn-hover-bg: #b91c1c;
    --vz-btn-hover-border-color: #b91c1c;
}

.btn-info {
    --vz-btn-bg: #0284c7;
    --vz-btn-border-color: #0284c7;
    --vz-btn-hover-bg: #0369a1;
    --vz-btn-hover-border-color: #0369a1;
}

.btn-warning {
    --vz-btn-bg: #f59e0b;
    --vz-btn-border-color: #f59e0b;
    --vz-btn-hover-bg: #d97706;
    --vz-btn-hover-border-color: #d97706;
    --vz-btn-color: #1f2937;
    --vz-btn-hover-color: #1f2937;
}

/* ---------- Alerts ---------- */
.alert {
    border-radius: 10px;
    border: 1px solid;
    border-left-width: 4px !important;
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
}

.alert.border-4 {
    border-width: 1px !important;
    border-left-width: 4px !important;
}

.alert-success { background-color: var(--oem-success-soft); color: var(--oem-success); border-color: var(--oem-success-line) !important; border-left-color: var(--oem-success) !important; }
.alert-warning { background-color: var(--oem-warning-soft); color: var(--oem-warning); border-color: var(--oem-warning-line) !important; border-left-color: var(--oem-warning) !important; }
.alert-danger  { background-color: var(--oem-danger-soft);  color: var(--oem-danger);  border-color: var(--oem-danger-line) !important;  border-left-color: var(--oem-danger) !important; }
.alert-info    { background-color: var(--oem-info-soft);    color: var(--oem-info);    border-color: var(--oem-info-line) !important;    border-left-color: var(--oem-info) !important; }
.alert-primary { background-color: var(--oem-accent-soft);  color: var(--oem-accent-text); border-color: rgba(var(--oem-accent-rgb), 0.3) !important; border-left-color: var(--oem-accent) !important; }

.alert strong,
.alert .alert-heading {
    color: inherit;
}

.alert code {
    color: inherit;
    background-color: rgba(127, 127, 127, 0.12);
    padding: 0.05rem 0.35rem;
    border-radius: 4px;
}

/* icons inside alerts take the alert colour, not the template's text-* colour */
.alert > i,
.alert > .d-flex > i {
    color: inherit !important;
}

/* ---------- Forms ---------- */
.form-label {
    font-weight: 500;
    color: var(--oem-text);
    font-size: 0.8125rem;
    margin-bottom: 0.4rem;
}

.form-control,
.form-select {
    background-color: var(--oem-surface);
    border: 1px solid var(--oem-border-strong);
    border-radius: 8px;
    color: var(--oem-text);
    font-size: 0.875rem;
    min-height: 40px;
}

.form-control::placeholder {
    color: var(--oem-muted);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--oem-accent);
    box-shadow: 0 0 0 3px var(--oem-accent-soft);
    background-color: var(--oem-surface);
    color: var(--oem-text);
}

.input-group-text {
    background-color: var(--oem-surface-2);
    border-color: var(--oem-border-strong);
    color: var(--oem-muted);
}

.form-check-input:checked {
    background-color: var(--oem-accent);
    border-color: var(--oem-accent);
}

.form-text {
    color: var(--oem-muted);
}

/* upload drop zones (upload pages / backup tool) */
.custom-file-upload {
    border: 2px dashed var(--oem-border-strong) !important;
    border-radius: 12px !important;
    background-color: var(--oem-surface-2);
    color: var(--oem-text-2);
}

.custom-file-upload:hover {
    background-color: var(--oem-accent-soft) !important;
    border-color: var(--oem-accent) !important;
}

.custom-file-upload i {
    color: var(--oem-accent) !important;
}

.custom-file-upload h4 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--oem-text-2);
}

/* ---------- Pagination ---------- */
.pagination {
    gap: 4px;
}

.page-link {
    border-radius: 7px !important;
    border: 1px solid var(--oem-border);
    background-color: var(--oem-surface);
    color: var(--oem-text-2);
    font-size: 0.8125rem;
}

.page-link:hover {
    background-color: var(--oem-surface-3);
    color: var(--oem-text);
}

.page-item.active .page-link {
    background-color: var(--oem-accent);
    border-color: var(--oem-accent);
    color: #fff;
}

.page-item.disabled .page-link {
    background-color: var(--oem-surface);
    color: var(--oem-muted);
    opacity: 0.6;
}

/* ---------- Modals, toasts, misc ---------- */
.modal-content {
    background-color: var(--oem-surface);
    border: 1px solid var(--oem-border);
    border-radius: 14px;
    box-shadow: var(--oem-shadow-lg);
}

.modal-header,
.modal-footer {
    border-color: var(--oem-border);
}

.modal-backdrop.show {
    opacity: 0.55;
    background-color: #0b1120;
}

/* delete confirmation (components/confirm-delete) */
.modal-sm-plus {
    max-width: 400px;
}

.oem-confirm-modal .modal-content {
    border-radius: 16px;
}

.oem-confirm-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--oem-danger-soft);
    color: var(--oem-danger);
    font-size: 1.6rem;
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0.06);
}

.oem-confirm-modal h5 {
    font-size: 1.125rem;
    font-weight: 600;
}

.oem-confirm-modal p {
    font-size: 0.875rem;
    line-height: 1.5;
}

.toast {
    border-radius: 10px;
    box-shadow: var(--oem-shadow-lg);
}

.footer {
    border-top: 1px solid var(--oem-border);
    color: var(--oem-muted);
    font-size: 0.8125rem;
}

.bg-light {
    background-color: var(--oem-surface-3) !important;
}

.border,
.border-top,
.border-bottom {
    border-color: var(--oem-border) !important;
}

hr {
    border-color: var(--oem-border);
    opacity: 1;
}

/* loading overlay card on the upload pages */
#loadingOverlay .bg-white {
    background-color: var(--oem-surface) !important;
    color: var(--oem-text-2);
    border-radius: 14px !important;
}

/* ---------- Avatars and profile ---------- */
.oem-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #5b8cff, #2563eb);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
}

.oem-details dt {
    font-weight: 500;
    color: var(--oem-muted);
    padding: 0.6rem 0;
    border-top: 1px solid var(--oem-border);
}

.oem-details dd {
    color: var(--oem-text);
    margin: 0;
    padding: 0.6rem 0;
    border-top: 1px solid var(--oem-border);
}

.topbar-user .dropdown-header {
    padding: 0.6rem 1rem;
    text-transform: none;
}

/* ---------- Sign-in page ---------- */
.oem-auth {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: 100vh;
    background-color: var(--oem-bg);
}

@media (min-width: 992px) {
    .oem-auth {
        grid-template-columns: minmax(380px, 5fr) 7fr;
    }
}

.oem-auth-brand {
    flex-direction: column;
    justify-content: space-between;
    padding: 2.5rem 3rem;
    color: #c9d3e6;
    background:
        radial-gradient(circle at 15% 10%, rgba(91, 140, 255, 0.28), transparent 45%),
        radial-gradient(circle at 90% 90%, rgba(37, 99, 235, 0.22), transparent 40%),
        #0e1628;
}

.oem-auth-brand .oem-brand,
.oem-auth-card .oem-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.oem-auth-card .oem-brand-name {
    color: var(--oem-text);
}

.oem-auth-pitch h1 {
    color: #fff;
    font-size: 2rem;
    font-weight: 650;
    line-height: 1.2;
    max-width: 22ch;
    margin-bottom: 1.5rem;
}

.oem-auth-pitch ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.oem-auth-pitch li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
    max-width: 44ch;
}

.oem-auth-pitch li i {
    color: #8fb0ff;
    font-size: 1.15rem;
    line-height: 1.3;
}

.oem-auth-foot {
    margin: 0;
    font-size: 0.8125rem;
    color: #7d8aa3;
}

.oem-auth-form {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.oem-auth-card {
    width: 100%;
    max-width: 400px;
    background-color: var(--oem-surface);
    border: 1px solid var(--oem-border);
    border-radius: 16px;
    box-shadow: var(--oem-shadow-lg);
    padding: 2.25rem 2rem;
}

.oem-auth-card h2 {
    font-size: 1.5rem;
    font-weight: 650;
    margin-bottom: 0.25rem;
}

.oem-auth-card .password-addon {
    height: 40px;
}

::selection {
    background-color: rgba(var(--oem-accent-rgb), 0.25);
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--oem-border-strong) transparent;
}
