/* DM Sans (wght + opsz) + DM Mono, self-hosted: www/fonts/dm, the same files as the website */
@font-face{font-family:"DM Sans";font-style:normal;font-weight:100 1000;font-display:swap;src:url(../../fonts/dm/dm-sans-latin-opsz-normal.woff2) format("woff2-variations");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"DM Sans";font-style:normal;font-weight:100 1000;font-display:swap;src:url(../../fonts/dm/dm-sans-latin-ext-opsz-normal.woff2) format("woff2-variations");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"DM Mono";font-style:normal;font-weight:400;font-display:swap;src:url(../../fonts/dm/dm-mono-latin-400-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"DM Mono";font-style:normal;font-weight:400;font-display:swap;src:url(../../fonts/dm/dm-mono-latin-ext-400-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"DM Mono";font-style:normal;font-weight:500;font-display:swap;src:url(../../fonts/dm/dm-mono-latin-500-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"DM Mono";font-style:normal;font-weight:500;font-display:swap;src:url(../../fonts/dm/dm-mono-latin-ext-500-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}

/**
 * Vouchermat UI 2026 — design tokens + Bootstrap 5.3 skin + app shell.
 * Load AFTER bootstrap.min.css and vm-admin.css (legacy).
 * Dark mode: <html data-bs-theme="dark">.
 */

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
    /* palette "ledová" (redesign 2026-10): ice-blue canvas, blue → sky gradient accent, DM Sans */
    --vm-font: "DM Sans", "Segoe UI", ui-sans-serif, system-ui, -apple-system, sans-serif;
    --vm-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

    --vm-p-50: #EEF5FF; --vm-p-100: #EAF2FF; --vm-p-200: #C9DCFB; --vm-p-300: #7CC8F5; --vm-p-400: #5E95F5;
    --vm-p-500: #3A78F2; --vm-p-600: #2A62D0; --vm-p-700: #2251B0; --vm-p-800: #173F86; --vm-p-900: #0E2A52;

    --vm-primary: var(--vm-p-500);
    --vm-primary-rgb: 58, 120, 242;
    --vm-primary-hover: var(--vm-p-600);
    --vm-primary-soft: var(--vm-p-100);
    --vm-primary-text: var(--vm-p-600);
    --vm-on-primary: #FFFFFF;
    --vm-grad: linear-gradient(139deg, #3A78F2 0%, #7CC8F5 100%);
    --vm-grad-ui: linear-gradient(139deg, #3A78F2 0%, #7CC8F5 100%); /* owner dashboard original: the light gradient (the canvas had #2453C4 → #3570E8) */
    --vm-grad-tint: linear-gradient(180deg, #EEF5FF 0%, #FFFFFF 100%);
    --vm-bar: linear-gradient(180deg, #3A78F2 0%, #7CC8F5 100%);

    --vm-accent: #7CC8F5; --vm-accent-soft: #E6F6FE; --vm-accent-text: #0E6E8C;
    --vm-warm: #E0A100; --vm-warm-soft: #FFF4D6; --vm-warm-text: #7F5700;

    --vm-bg: #F2FAFF;
    --vm-surface: #FFFFFF;
    --vm-surface-2: #F7FBFF;
    --vm-sunken: #EEF5FF;
    --vm-border: rgba(7, 23, 46, .08);
    --vm-border-strong: rgba(7, 23, 46, .16);
    --vm-text: #07172E;
    --vm-text-2: #5B6472;
    --vm-text-3: #6B7584;
    --vm-ink: #07172E;

    --vm-success: #178454; --vm-success-soft: #E9F8F0;
    --vm-danger: #B9362D;  --vm-danger-soft: #FDECEA;
    --vm-warning: #7F5700; --vm-warning-soft: #FFF4D6;
    --vm-info: #2A62D0;    --vm-info-soft: #EAF2FF;

    /* Order states */
    --st-new-bg: #EAF2FF;  --st-new-fg: #2A62D0;  --st-new-bd: #EAF2FF;
    --st-paid-bg: #E9F8F0; --st-paid-fg: #178454; --st-paid-bd: #E9F8F0;
    --st-sent-bg: #E6F6FE; --st-sent-fg: #0E6E8C; --st-sent-bd: #E6F6FE;
    --st-part-bg: #F1EBFD; --st-part-fg: #6A3FC4; --st-part-bd: #F1EBFD;
    --st-ext-bg: #FFF4D6;  --st-ext-fg: #7F5700;  --st-ext-bd: #FFF4D6;
    --st-used-bg: #EEF1F5; --st-used-fg: #5B6472; --st-used-bd: #EEF1F5;
    --st-canc-bg: #FDECEA; --st-canc-fg: #B9362D; --st-canc-bd: #FDECEA;
    --st-exp-bg: #E4E8EE;  --st-exp-fg: #3B4553;  --st-exp-bd: #E4E8EE;

    --vm-r-sm: 8px; --vm-r: 10px; --vm-r-lg: 16px; --vm-r-xl: 18px; --vm-r-pill: 999px;

    --vm-sh-xs: 0 1px 2px rgba(7, 23, 46, .04);
    --vm-sh-sm: 0 4px 12px -8px rgba(7, 23, 46, .2);
    --vm-sh-md: 0 18px 40px -24px rgba(7, 23, 46, .25);
    --vm-sh-lg: 0 30px 60px -30px rgba(7, 23, 46, .35);
    --vm-sh-card: 0 18px 40px -24px rgba(7, 23, 46, .22);
    --vm-sh-brand: 0 10px 24px -8px rgba(58, 120, 242, .45);
    --vm-focus: 0 0 0 3px #7CC8F5;

    --vm-sb-w: 248px;
    --vm-topbar-h: 56px;
}

[data-bs-theme="dark"] {
    --vm-bg: #06111F;
    --vm-surface: #0C1B30;
    --vm-surface-2: #10213A;
    --vm-sunken: #0A182B;
    --vm-border: rgba(234, 242, 255, .09);
    --vm-border-strong: rgba(234, 242, 255, .18);
    --vm-text: #EAF2FF;
    --vm-text-2: #AEBBCE;
    --vm-text-3: #8C9AB0;
    --vm-ink: #EAF2FF;

    --vm-primary: #5E95F5;
    --vm-primary-rgb: 94, 149, 245;
    --vm-primary-hover: #7CB0FF;
    --vm-primary-soft: rgba(94, 149, 245, .18);
    --vm-primary-text: #8EBCFF;
    --vm-on-primary: #FFFFFF;
    --vm-grad-tint: linear-gradient(180deg, #132745 0%, #0C1B30 100%);

    --vm-accent-soft: rgba(124, 200, 245, .14); --vm-accent-text: #9AD8F8;
    --vm-warm-soft: rgba(224, 161, 0, .16); --vm-warm-text: #F2C766;

    --vm-success: #4CC484; --vm-success-soft: rgba(76, 196, 132, .14);
    --vm-danger: #F07575;  --vm-danger-soft: rgba(240, 117, 117, .14);
    --vm-warning: #F2C766; --vm-warning-soft: rgba(242, 199, 102, .14);
    --vm-info: #8EBCFF;    --vm-info-soft: rgba(94, 149, 245, .16);

    --st-new-bg: rgba(94, 149, 245, .16);   --st-new-fg: #A6C8FF;  --st-new-bd: transparent;
    --st-paid-bg: rgba(76, 196, 132, .14);  --st-paid-fg: #71D49E; --st-paid-bd: transparent;
    --st-sent-bg: rgba(124, 200, 245, .14); --st-sent-fg: #9AD8F8; --st-sent-bd: transparent;
    --st-part-bg: rgba(176, 148, 240, .16); --st-part-fg: #C1AAF5; --st-part-bd: transparent;
    --st-ext-bg: rgba(242, 199, 102, .15);  --st-ext-fg: #F2C766;  --st-ext-bd: transparent;
    --st-used-bg: rgba(174, 187, 206, .12); --st-used-fg: #C3CDDA; --st-used-bd: transparent;
    --st-canc-bg: rgba(240, 117, 117, .14); --st-canc-fg: #F39A9A; --st-canc-bd: transparent;
    --st-exp-bg: rgba(120, 135, 160, .2);   --st-exp-fg: #A9B6C8;  --st-exp-bd: transparent;

    --vm-sh-xs: 0 1px 2px rgba(0, 0, 0, .4);
    --vm-sh-sm: 0 1px 3px rgba(0, 0, 0, .5);
    --vm-sh-md: 0 8px 20px -6px rgba(0, 0, 0, .6);
    --vm-sh-lg: 0 18px 48px -10px rgba(0, 0, 0, .7);
    --vm-sh-card: 0 18px 40px -24px rgba(0, 0, 0, .6);
    --vm-sh-brand: 0 10px 24px -10px rgba(58, 120, 242, .6);
}

/* ==========================================================================
   2. Bootstrap mapping
   ========================================================================== */
:root,
[data-bs-theme="dark"] {
    --bs-font-sans-serif: var(--vm-font);
    --bs-font-monospace: var(--vm-mono);
    --bs-body-font-family: var(--vm-font);
    --bs-body-font-size: 14px;
    --bs-body-line-height: 1.43;
    --bs-body-color: var(--vm-text);
    --bs-body-bg: var(--vm-bg);
    --bs-emphasis-color: var(--vm-text);
    --bs-secondary-color: var(--vm-text-3);
    --bs-secondary-bg: var(--vm-sunken);
    --bs-tertiary-color: var(--vm-text-3);
    --bs-tertiary-bg: var(--vm-surface-2);
    --bs-heading-color: var(--vm-text);
    --bs-border-color: var(--vm-border);
    --bs-border-color-translucent: var(--vm-border);
    --bs-border-radius: var(--vm-r);
    --bs-border-radius-sm: var(--vm-r-sm);
    --bs-border-radius-lg: var(--vm-r-lg);
    --bs-border-radius-xl: var(--vm-r-xl);
    --bs-link-color: var(--vm-primary-text);
    --bs-link-color-rgb: var(--vm-primary-rgb);
    --bs-link-hover-color: var(--vm-primary-hover);
    --bs-link-hover-color-rgb: var(--vm-primary-rgb);
    --bs-primary: var(--vm-primary);
    --bs-primary-rgb: var(--vm-primary-rgb);
    --bs-primary-text-emphasis: var(--vm-primary-text);
    --bs-primary-bg-subtle: var(--vm-primary-soft);
    --bs-primary-border-subtle: var(--vm-p-200);
    --bs-success-text-emphasis: var(--vm-success);
    --bs-success-bg-subtle: var(--vm-success-soft);
    --bs-danger-text-emphasis: var(--vm-danger);
    --bs-danger-bg-subtle: var(--vm-danger-soft);
    --bs-warning-text-emphasis: var(--vm-warning);
    --bs-warning-bg-subtle: var(--vm-warning-soft);
    --bs-info-text-emphasis: var(--vm-info);
    --bs-info-bg-subtle: var(--vm-info-soft);
    --bs-focus-ring-color: rgba(58, 120, 242, .35);
    --bs-box-shadow-sm: var(--vm-sh-sm);
    --bs-box-shadow: var(--vm-sh-md);
    --bs-box-shadow-lg: var(--vm-sh-lg);

    /* legacy vm-admin.css tokens → new palette */
    --vm-font-family: var(--vm-font);
    --vm-primary-light: var(--vm-primary-soft);
    --vm-gray-50: var(--vm-surface-2);
    --vm-gray-100: var(--vm-sunken);
    --vm-gray-200: var(--vm-border);
    --vm-gray-300: var(--vm-border-strong);
    --vm-gray-400: var(--vm-text-3);
    --vm-gray-500: var(--vm-text-3);
    --vm-gray-600: var(--vm-text-2);
    --vm-gray-700: var(--vm-text-2);
    --vm-gray-800: var(--vm-text);
    --vm-gray-900: var(--vm-text);
    --vm-black: var(--vm-text);
    --vm-radius-sm: var(--vm-r-sm);
    --vm-radius: var(--vm-r);
    --vm-radius-lg: var(--vm-r-lg);
    --vm-radius-xl: var(--vm-r-xl);
    --vm-shadow-sm: var(--vm-sh-xs);
    --vm-shadow: var(--vm-sh-sm);
    --vm-shadow-md: var(--vm-sh-md);
    --vm-shadow-lg: var(--vm-sh-lg);
}

html { color-scheme: light; }
[data-bs-theme="dark"] { color-scheme: dark; }

body,
body.vouchermat-admin {
    font-family: var(--vm-font);
    font-size: 14px;
    line-height: 20px;
    color: var(--vm-text);
    background: var(--vm-bg);
    -webkit-font-smoothing: antialiased;
}

h1, .h1 { font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -.015em; }
h2, .h2 { font-size: 18px; line-height: 26px; font-weight: 600; letter-spacing: -.01em; }
h3, .h3 { font-size: 15px; line-height: 22px; font-weight: 600; }
h4, .h4, h5, .h5 { font-size: 14px; line-height: 20px; font-weight: 600; }
.text-muted, .text-secondary { color: var(--vm-text-3) !important; }
.text-primary { color: var(--vm-primary-text) !important; }
.text-success { color: var(--vm-success) !important; }
.text-danger { color: var(--vm-danger) !important; }
.text-warning { color: var(--vm-warning) !important; }
.bg-light { background-color: var(--vm-surface-2) !important; }
.bg-white { background-color: var(--vm-surface) !important; }
.border, .border-top, .border-bottom, .border-start, .border-end { border-color: var(--vm-border) !important; }
small, .small { font-size: 13px; }
code, kbd, pre, .font-monospace { font-family: var(--vm-mono); }
::selection { background: var(--vm-p-200); color: var(--vm-text); }
[data-bs-theme="dark"] ::selection { background: var(--vm-p-700); color: #fff; }

/* Utilities */
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--vm-mono); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.vm-muted { color: var(--vm-text-3) !important; }
.vm-t2 { color: var(--vm-text-2) !important; }
.vm-eyebrow { font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--vm-text-3); }
.vm-i { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; display: inline-block; vertical-align: -3px; }
.vm-i-lg { width: 20px; height: 20px; }
svg.feather { width: 16px; height: 16px; stroke-width: 1.75; vertical-align: -3px; }

/* ==========================================================================
   3. Bootstrap components
   ========================================================================== */

/* Buttons */
.btn {
    --bs-btn-font-weight: 500;
    --bs-btn-font-size: 14px;
    --bs-btn-line-height: 20px;
    --bs-btn-padding-x: 14px;
    --bs-btn-padding-y: 7px;
    --bs-btn-border-radius: var(--vm-r);
    --bs-btn-focus-box-shadow: var(--vm-focus);
    --bs-btn-disabled-opacity: .5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    transition: background-color .15s, border-color .15s, color .15s;
}
.btn-sm { --bs-btn-padding-x: 10px; --bs-btn-padding-y: 5px; --bs-btn-font-size: 13px; --bs-btn-line-height: 18px; gap: 6px; }
.btn-lg { --bs-btn-padding-x: 20px; --bs-btn-padding-y: 11px; --bs-btn-font-size: 15px; --bs-btn-border-radius: var(--vm-r); }
.btn-xs { --bs-btn-padding-x: 8px; --bs-btn-padding-y: 3px; --bs-btn-font-size: 12px; gap: 4px; }
.btn-block { width: 100%; }
.btn:focus-visible { box-shadow: var(--vm-focus); outline: 0; }

.btn-primary {
    --bs-btn-color: var(--vm-on-primary);
    --bs-btn-bg: var(--vm-primary);
    --bs-btn-border-color: var(--vm-primary);
    --bs-btn-hover-color: var(--vm-on-primary);
    --bs-btn-hover-bg: var(--vm-primary-hover);
    --bs-btn-hover-border-color: var(--vm-primary-hover);
    --bs-btn-active-color: var(--vm-on-primary);
    --bs-btn-active-bg: var(--vm-primary-hover);
    --bs-btn-active-border-color: var(--vm-primary-hover);
    --bs-btn-disabled-color: var(--vm-on-primary);
    --bs-btn-disabled-bg: var(--vm-primary);
    --bs-btn-disabled-border-color: var(--vm-primary);
}
.btn-secondary,
.btn-light,
.btn-outline-secondary,
.btn-outline-primary,
.btn-default {
    --bs-btn-color: var(--vm-text);
    --bs-btn-bg: var(--vm-surface);
    --bs-btn-border-color: var(--vm-border-strong);
    --bs-btn-hover-color: var(--vm-text);
    --bs-btn-hover-bg: var(--vm-surface-2);
    --bs-btn-hover-border-color: var(--vm-border-strong);
    --bs-btn-active-color: var(--vm-text);
    --bs-btn-active-bg: var(--vm-sunken);
    --bs-btn-active-border-color: var(--vm-border-strong);
    --bs-btn-disabled-color: var(--vm-text-3);
    --bs-btn-disabled-bg: var(--vm-surface);
    --bs-btn-disabled-border-color: var(--vm-border);
    box-shadow: var(--vm-sh-xs);
}
.btn-outline-primary { --bs-btn-color: var(--vm-primary-text); --bs-btn-hover-color: var(--vm-primary-text); }
.btn-ghost,
.btn-link {
    --bs-btn-color: var(--vm-text-2);
    --bs-btn-bg: transparent;
    --bs-btn-border-color: transparent;
    --bs-btn-hover-color: var(--vm-text);
    --bs-btn-hover-bg: var(--vm-sunken);
    --bs-btn-hover-border-color: transparent;
    --bs-btn-active-color: var(--vm-text);
    --bs-btn-active-bg: var(--vm-sunken);
    --bs-btn-active-border-color: transparent;
    text-decoration: none;
}
.btn-link { --bs-btn-color: var(--vm-primary-text); --bs-btn-hover-color: var(--vm-primary-hover); }
.btn-danger,
.btn-outline-danger {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--vm-danger);
    --bs-btn-border-color: var(--vm-danger);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #9A1C1C;
    --bs-btn-hover-border-color: #9A1C1C;
    --bs-btn-active-bg: #9A1C1C;
    --bs-btn-active-border-color: #9A1C1C;
}
.btn-outline-danger, .btn-danger-soft {
    --bs-btn-color: var(--vm-danger);
    --bs-btn-bg: var(--vm-danger-soft);
    --bs-btn-border-color: transparent;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--vm-danger);
    --bs-btn-hover-border-color: var(--vm-danger);
}
.btn-success,
.btn-outline-success {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--vm-success);
    --bs-btn-border-color: var(--vm-success);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #12613B;
    --bs-btn-hover-border-color: #12613B;
    --bs-btn-active-bg: #12613B;
}
.btn-warning, .btn-info {
    --bs-btn-color: var(--vm-text);
    --bs-btn-bg: var(--vm-warning-soft);
    --bs-btn-border-color: var(--st-ext-bd);
    --bs-btn-hover-color: var(--vm-text);
    --bs-btn-hover-bg: var(--st-ext-bd);
    --bs-btn-hover-border-color: var(--st-ext-bd);
}
.btn-info { --bs-btn-bg: var(--vm-info-soft); --bs-btn-border-color: var(--st-sent-bd); --bs-btn-hover-bg: var(--st-sent-bd); --bs-btn-hover-border-color: var(--st-sent-bd); }
[data-bs-theme="dark"] .btn-danger,
[data-bs-theme="dark"] .btn-success { --bs-btn-color: #0C1419; --bs-btn-hover-color: #0C1419; }
.btn-icon { width: 36px; height: 36px; padding: 0; }
.btn-sm.btn-icon { width: 30px; height: 30px; }

/* Forms */
.form-control,
.form-select {
    font-size: 14px;
    line-height: 20px;
    min-height: 38px;
    padding: 8px 12px;
    color: var(--vm-text);
    background-color: var(--vm-surface);
    border: 1px solid var(--vm-border-strong);
    border-radius: var(--vm-r);
    box-shadow: none;
}
.form-select { padding-right: 36px; }
.form-control-sm, .form-select-sm { min-height: 30px; padding-top: 4px; padding-bottom: 4px; font-size: 13px; }
.form-control-lg { min-height: 44px; font-size: 15px; }
.form-control::placeholder { color: var(--vm-text-3); }
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: var(--vm-p-400);
    box-shadow: var(--vm-focus);
    background-color: var(--vm-surface);
    color: var(--vm-text);
}
.form-control:disabled, .form-control[readonly], .form-select:disabled { background-color: var(--vm-surface-2); color: var(--vm-text-2); }
/* read-only fields must look locked at a glance: sunken, dashed, lock icon, no text cursor */
.form-control[readonly] { background-color: var(--vm-sunken); border-style: dashed; color: var(--vm-text-2); cursor: not-allowed; box-shadow: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238C9AA4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px 16px; }
.form-control[readonly]:focus { border-color: var(--vm-border-strong); box-shadow: none; }
.input-group:has(.form-control[readonly]) .input-group-text { background-color: var(--vm-sunken); border-style: dashed; color: var(--vm-text-3); }
.form-control.is-invalid, .form-select.is-invalid { border-color: var(--vm-danger); }
.form-control.is-valid, .form-select.is-valid { border-color: var(--vm-success); }
.invalid-feedback { color: var(--vm-danger); font-size: 12px; }
.form-label, .col-form-label, label.control-label { font-size: 13px; line-height: 18px; font-weight: 500; color: var(--vm-text); margin-bottom: 6px; }
.form-text { font-size: 12px; line-height: 16px; color: var(--vm-text-3); }
.form-check-input {
    width: 16px; height: 16px; margin-top: 2px;
    background-color: var(--vm-surface);
    border: 1.5px solid var(--vm-border-strong);
}
.form-check-input:checked { background-color: var(--vm-primary); border-color: var(--vm-primary); }
.form-switch .form-check-input { width: 36px; height: 20px; margin-top: 0; border: 0; background-color: var(--vm-border-strong); --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3.2' fill='%23fff'/%3e%3c/svg%3e"); }
.form-switch .form-check-input:checked { background-color: var(--vm-primary); }
/* Bootstrap paints the knob blue (#86b7fe) on :focus — keep it white; focus shown by the ring only, and only for keyboard */
.form-switch .form-check-input:focus { --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3.2' fill='%23fff'/%3e%3c/svg%3e"); border-color: transparent; box-shadow: none; }
.form-switch .form-check-input:focus-visible { box-shadow: var(--vm-focus); }
.input-group-text { background: var(--vm-surface-2); border-color: var(--vm-border-strong); color: var(--vm-text-3); font-size: 14px; }

/* Cards */
.card {
    --bs-card-bg: var(--vm-surface);
    --bs-card-border-color: var(--vm-border);
    --bs-card-border-radius: var(--vm-r-lg);
    --bs-card-inner-border-radius: calc(var(--vm-r-lg) - 1px);
    --bs-card-cap-bg: transparent;
    --bs-card-cap-padding-y: 16px;
    --bs-card-cap-padding-x: 20px;
    --bs-card-spacer-y: 20px;
    --bs-card-spacer-x: 20px;
    --bs-card-color: var(--vm-text);
    box-shadow: var(--vm-sh-xs);
}
.card-header { font-weight: 600; }
.card-footer { background: var(--vm-surface-2); }

/* Tables */
.table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--vm-text);
    --bs-table-border-color: var(--vm-border);
    --bs-table-striped-bg: var(--vm-surface-2);
    --bs-table-hover-bg: var(--vm-surface-2);
    --bs-table-hover-color: var(--vm-text);
    --bs-table-active-bg: var(--vm-primary-soft);
    font-size: 13px;
    line-height: 18px;
    margin-bottom: 0;
}
.table > :not(caption) > * > * { padding: 10px 12px; vertical-align: middle; }
.table > thead > tr > th,
.table > thead > tr > td {
    font-weight: 500;
    font-size: 12px;
    color: var(--vm-text-3);
    background: var(--vm-surface-2);
    white-space: nowrap;
    padding-top: 9px;
    padding-bottom: 9px;
}
.table > thead a:not(.btn) { color: var(--vm-text-3); }
.table-bordered > :not(caption) > * > * { border-width: 0 0 1px; }

/* Badges */
.badge {
    --bs-badge-font-size: 12px;
    --bs-badge-font-weight: 600;
    --bs-badge-padding-x: 8px;
    --bs-badge-padding-y: 4px;
    --bs-badge-border-radius: 999px;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    line-height: 1;
}
.badge.bg-primary { background: var(--vm-primary-soft) !important; color: var(--vm-primary-text); border-color: var(--vm-p-200); }
.badge.bg-success { background: var(--st-paid-bg) !important; color: var(--st-paid-fg); border-color: var(--st-paid-bd); }
.badge.bg-info { background: var(--st-sent-bg) !important; color: var(--st-sent-fg); border-color: var(--st-sent-bd); }
.badge.bg-warning { background: var(--st-ext-bg) !important; color: var(--st-ext-fg) !important; border-color: var(--st-ext-bd); }
.badge.bg-danger { background: var(--st-canc-bg) !important; color: var(--st-canc-fg); border-color: var(--st-canc-bd); }
.badge.bg-secondary, .badge.bg-light, .badge.bg-dark { background: var(--st-new-bg) !important; color: var(--st-new-fg) !important; border-color: var(--st-new-bd); }

/* Status badges (order states) */
.vm-badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap; border: 1px solid transparent; }
.vm-badge .vm-i, .vm-badge svg { width: 13px; height: 13px; stroke-width: 2.2; }
.st-new  { background: var(--st-new-bg);  color: var(--st-new-fg);  border-color: var(--st-new-bd); }
.st-paid { background: var(--st-paid-bg); color: var(--st-paid-fg); border-color: var(--st-paid-bd); }
.st-sent { background: var(--st-sent-bg); color: var(--st-sent-fg); border-color: var(--st-sent-bd); }
.st-part { background: var(--st-part-bg); color: var(--st-part-fg); border-color: var(--st-part-bd); }
.st-ext  { background: var(--st-ext-bg);  color: var(--st-ext-fg);  border-color: var(--st-ext-bd); }
.st-used { background: var(--st-used-bg); color: var(--st-used-fg); border-color: var(--st-used-bd); }
.st-canc { background: var(--st-canc-bg); color: var(--st-canc-fg); border-color: var(--st-canc-bd); }
.st-exp  { background: var(--st-exp-bg);  color: var(--st-exp-fg);  border-color: var(--st-exp-bd); }

.vm-tag { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 500; background: var(--vm-sunken); color: var(--vm-text-2); }
.vm-tag-pri { background: var(--vm-primary-soft); color: var(--vm-primary-text); }
.vm-tag-warm { background: var(--vm-warm-soft); color: var(--vm-warm-text); }

/* Alerts */
.alert {
    --bs-alert-padding-x: 14px;
    --bs-alert-padding-y: 12px;
    --bs-alert-border-radius: var(--vm-r-lg);
    --bs-alert-color: var(--vm-text);
    font-size: 13px;
    line-height: 18px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.alert > .vm-i, .alert > svg { margin-top: 1px; flex: none; }
.alert-info, .alert-primary { --bs-alert-bg: var(--vm-info-soft); --bs-alert-border-color: var(--st-sent-bd); }
.alert-info > .vm-i, .alert-primary > .vm-i { color: var(--vm-info); }
.alert-warning { --bs-alert-bg: var(--vm-warning-soft); --bs-alert-border-color: var(--st-ext-bd); }
.alert-warning > .vm-i { color: var(--vm-warning); }
.alert-danger, .alert-error { --bs-alert-bg: var(--vm-danger-soft); --bs-alert-border-color: var(--st-canc-bd); }
.alert-danger > .vm-i, .alert-error > .vm-i { color: var(--vm-danger); }
.alert-success { --bs-alert-bg: var(--vm-success-soft); --bs-alert-border-color: var(--st-paid-bd); }
.alert-success > .vm-i { color: var(--vm-success); }
.alert .alert-link { color: var(--vm-primary-text); font-weight: 600; }

/* Dropdowns */
.dropdown-menu {
    --bs-dropdown-bg: var(--vm-surface);
    --bs-dropdown-border-color: var(--vm-border);
    --bs-dropdown-border-radius: var(--vm-r-lg);
    --bs-dropdown-padding-x: 6px;
    --bs-dropdown-padding-y: 6px;
    --bs-dropdown-font-size: 13px;
    --bs-dropdown-link-color: var(--vm-text);
    --bs-dropdown-link-hover-color: var(--vm-text);
    --bs-dropdown-link-hover-bg: var(--vm-sunken);
    --bs-dropdown-link-active-color: var(--vm-text);
    --bs-dropdown-link-active-bg: var(--vm-sunken);
    --bs-dropdown-item-padding-x: 10px;
    --bs-dropdown-item-padding-y: 7px;
    --bs-dropdown-item-border-radius: 6px;
    --bs-dropdown-divider-bg: var(--vm-border);
    --bs-dropdown-header-color: var(--vm-text-3);
    box-shadow: var(--vm-sh-md);
    min-width: 220px;
    /* vm-admin.css animates via opacity/visibility — neutralise (transform must stay: Popper positions with it) */
    opacity: 1 !important;
    visibility: visible !important;
    transition: none !important;
}
.dropdown-menu:not(.show) { display: none; }
.dropdown-item { display: flex; align-items: center; gap: 10px; border-radius: 6px; }
.dropdown-item .vm-i, .dropdown-item svg { color: var(--vm-text-3); }
.dropdown-item.text-danger .vm-i { color: var(--vm-danger); }
.dropdown-header { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }

/* Modal */
.modal {
    --bs-modal-bg: var(--vm-surface);
    --bs-modal-border-color: var(--vm-border);
    --bs-modal-border-radius: var(--vm-r-xl);
    --bs-modal-inner-border-radius: calc(var(--vm-r-xl) - 1px);
    --bs-modal-box-shadow: var(--vm-sh-lg);
    --bs-modal-header-padding: 18px 24px;
    --bs-modal-padding: 24px;
    --bs-modal-header-border-color: var(--vm-border);
    --bs-modal-footer-border-color: var(--vm-border);
    --bs-modal-color: var(--vm-text);
}
.modal-title { font-size: 18px; line-height: 26px; font-weight: 600; }
.modal-footer { background: var(--vm-surface-2); border-radius: 0 0 var(--bs-modal-inner-border-radius) var(--bs-modal-inner-border-radius); }
.modal-backdrop { --bs-backdrop-bg: #081016; --bs-backdrop-opacity: .45; }
[data-bs-theme="dark"] .btn-close { filter: invert(1) grayscale(100%) brightness(200%); }

/* Nav tabs / pills */
.nav-tabs {
    --bs-nav-tabs-border-color: var(--vm-border);
    --bs-nav-tabs-link-active-color: var(--vm-text);
    --bs-nav-tabs-link-active-bg: transparent;
    --bs-nav-tabs-link-active-border-color: transparent;
    --bs-nav-link-color: var(--vm-text-3);
    --bs-nav-link-hover-color: var(--vm-text);
    gap: 4px;
}
.nav-tabs .nav-link { border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500; padding: 10px 12px; }
.nav-tabs .nav-link.active { border-bottom-color: var(--vm-primary); }
.nav-pills { --bs-nav-pills-link-active-bg: var(--vm-primary-soft); --bs-nav-pills-link-active-color: var(--vm-primary-text); --bs-nav-link-color: var(--vm-text-2); }

/* Pagination */
.pagination {
    --bs-pagination-color: var(--vm-text-2);
    --bs-pagination-bg: transparent;
    --bs-pagination-border-color: transparent;
    --bs-pagination-hover-color: var(--vm-text);
    --bs-pagination-hover-bg: var(--vm-sunken);
    --bs-pagination-hover-border-color: transparent;
    --bs-pagination-active-color: var(--vm-text);
    --bs-pagination-active-bg: var(--vm-surface);
    --bs-pagination-active-border-color: var(--vm-border-strong);
    --bs-pagination-disabled-bg: transparent;
    --bs-pagination-disabled-border-color: transparent;
    --bs-pagination-disabled-color: var(--vm-text-3);
    --bs-pagination-font-size: 13px;
    --bs-pagination-border-radius: 6px;
    --bs-pagination-focus-box-shadow: var(--vm-focus);
    gap: 4px;
}
.page-link { border-radius: 6px !important; min-width: 30px; text-align: center; }
.page-item.active .page-link { font-weight: 600; }

/* Progress */
.progress { --bs-progress-height: 8px; --bs-progress-bg: var(--vm-sunken); --bs-progress-border-radius: 999px; --bs-progress-bar-bg: var(--vm-primary); }

/* List group */
.list-group { --bs-list-group-bg: var(--vm-surface); --bs-list-group-border-color: var(--vm-border); --bs-list-group-color: var(--vm-text); --bs-list-group-action-hover-bg: var(--vm-surface-2); --bs-list-group-active-bg: var(--vm-primary-soft); --bs-list-group-active-color: var(--vm-primary-text); --bs-list-group-active-border-color: var(--vm-border); }

/* Offcanvas */
.offcanvas, .offcanvas-lg { --bs-offcanvas-bg: var(--vm-surface); --bs-offcanvas-color: var(--vm-text); --bs-offcanvas-border-color: var(--vm-border); }

/* Flatpickr — Vouchermat theme */
.flatpickr-calendar {
    font-family: var(--vm-font); font-size: 13px; width: 288px; padding: 8px;
    background: var(--vm-surface); color: var(--vm-text);
    border: 1px solid var(--vm-border); border-radius: var(--vm-r-lg); box-shadow: var(--vm-sh-md) !important;
}
.flatpickr-calendar::before, .flatpickr-calendar::after { display: none; }
.flatpickr-calendar.open { z-index: 2000; }
.flatpickr-months { align-items: center; padding: 0 0 6px; }
.flatpickr-months .flatpickr-month { height: 36px; color: var(--vm-text); fill: var(--vm-text); background: transparent; }
.flatpickr-current-month { font-size: 14px; font-weight: 600; padding-top: 8px; }
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year { font-weight: 600; color: var(--vm-text); background: transparent; }
.flatpickr-current-month .flatpickr-monthDropdown-months:hover,
.flatpickr-current-month .numInputWrapper:hover { background: var(--vm-sunken); border-radius: 6px; }
.flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month { background: var(--vm-surface); color: var(--vm-text); }
.flatpickr-months .flatpickr-prev-month, .flatpickr-months .flatpickr-next-month {
    top: 8px; width: 30px; height: 30px; padding: 7px; border-radius: 8px; color: var(--vm-text-2); fill: var(--vm-text-2);
}
.flatpickr-months .flatpickr-prev-month { left: 8px; }
.flatpickr-months .flatpickr-next-month { right: 8px; }
.flatpickr-months .flatpickr-prev-month:hover, .flatpickr-months .flatpickr-next-month:hover { background: var(--vm-sunken); }
.flatpickr-months .flatpickr-prev-month:hover svg, .flatpickr-months .flatpickr-next-month:hover svg { fill: var(--vm-text); }
.flatpickr-weekdays { background: transparent; height: 28px; }
span.flatpickr-weekday { background: transparent !important; color: var(--vm-text-3); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.flatpickr-days { width: 270px; }
.dayContainer { width: 270px; min-width: 270px; max-width: 270px; gap: 2px 0; }
.flatpickr-day {
    height: 34px; line-height: 34px; max-width: 38px; border-radius: 8px; border: 0;
    color: var(--vm-text); font-variant-numeric: tabular-nums;
}
.flatpickr-day:hover, .flatpickr-day:focus, .flatpickr-day.prevMonthDay:hover, .flatpickr-day.nextMonthDay:hover { background: var(--vm-sunken); color: var(--vm-text); border: 0; }
.flatpickr-day.today { border: 0; box-shadow: inset 0 0 0 1px var(--vm-p-300); color: var(--vm-primary-text); font-weight: 600; }
.flatpickr-day.today:hover { background: var(--vm-primary-soft); color: var(--vm-primary-text); }
.flatpickr-day.selected, .flatpickr-day.selected:hover, .flatpickr-day.startRange, .flatpickr-day.endRange,
.flatpickr-day.selected.prevMonthDay, .flatpickr-day.selected.nextMonthDay {
    background: var(--vm-primary); color: var(--vm-on-primary); border: 0; box-shadow: none; font-weight: 600;
}
.flatpickr-day.inRange { background: var(--vm-primary-soft); box-shadow: -2px 0 0 var(--vm-primary-soft), 2px 0 0 var(--vm-primary-soft); color: var(--vm-primary-text); border-radius: 0; }
.flatpickr-day.prevMonthDay, .flatpickr-day.nextMonthDay { color: var(--vm-text-3); opacity: .55; }
.flatpickr-day.flatpickr-disabled, .flatpickr-day.flatpickr-disabled:hover { color: var(--vm-text-3); opacity: .35; background: transparent; }
.numInputWrapper span.arrowUp::after { border-bottom-color: var(--vm-text-3); }
.numInputWrapper span.arrowDown::after { border-top-color: var(--vm-text-3); }
.flatpickr-time { border-top: 1px solid var(--vm-border) !important; }
.flatpickr-time input, .flatpickr-time .flatpickr-am-pm { color: var(--vm-text); }
.flatpickr-time input:hover, .flatpickr-time input:focus { background: var(--vm-sunken); }

/* SweetAlert2 */
.swal2-popup { font-family: var(--vm-font) !important; border-radius: var(--vm-r-xl) !important; background: var(--vm-surface) !important; color: var(--vm-text) !important; box-shadow: var(--vm-sh-lg) !important; padding: 24px !important; }
.swal2-title { font-size: 18px !important; font-weight: 600 !important; color: var(--vm-text) !important; }
.swal2-html-container { font-size: 14px !important; color: var(--vm-text-2) !important; }
.swal2-actions { gap: 8px; }
.swal2-styled { border-radius: var(--vm-r) !important; font-weight: 500 !important; font-size: 14px !important; padding: 8px 16px !important; margin: 0 !important; box-shadow: none !important; }
.swal2-styled.swal2-confirm { background: var(--vm-primary) !important; color: var(--vm-on-primary) !important; }
.swal2-styled.swal2-cancel { background: var(--vm-surface) !important; color: var(--vm-text) !important; border: 1px solid var(--vm-border-strong) !important; }
.swal2-styled.swal2-deny { background: var(--vm-danger) !important; }
.swal2-styled:focus { box-shadow: var(--vm-focus) !important; }

/* Notyf toasts */
.notyf__toast { background: var(--vm-surface) !important; color: var(--vm-text) !important; border: 1px solid var(--vm-border); border-radius: var(--vm-r-lg) !important; box-shadow: var(--vm-sh-lg) !important; font-size: 14px; padding: 0 14px !important; max-width: 420px !important; }
.notyf__wrapper { padding: 12px 0 !important; }
.notyf__ripple { display: none !important; }
.notyf__dismiss-btn { background: transparent !important; color: var(--vm-text-3) !important; opacity: 1 !important; }
.notyf__icon { width: 28px !important; height: 28px !important; border-radius: 999px; display: grid !important; place-items: center; margin-right: 12px !important; }
.notyf__toast--success .notyf__icon { background: var(--vm-success-soft); }
.notyf__toast--error .notyf__icon, .notyf__toast--danger .notyf__icon { background: var(--vm-danger-soft); }
.notyf__toast--warning .notyf__icon { background: var(--vm-warning-soft); color: var(--vm-warning) !important; }
.notyf__toast--info .notyf__icon { background: var(--vm-info-soft); color: var(--vm-info) !important; }
.notyf__icon--success { background: var(--vm-success) !important; }
.notyf__icon--error { background: var(--vm-danger) !important; }

/* ==========================================================================
   4. App shell
   ========================================================================== */
.vm-shell { display: flex; min-height: 100vh; background: var(--vm-bg); }

/* Sidebar (offcanvas below lg) */
.vm-sb {
    width: var(--vm-sb-w);
    flex: none;
    background: var(--vm-surface);
    border-right: 1px solid var(--vm-border);
}
.vm-sb .offcanvas-body,
.vm-sb-inner {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 12px;
    height: 100%;
    overflow-y: auto;
}
@media (min-width: 992px) {
    .vm-sb { position: sticky; top: 0; height: 100vh; z-index: 1030; } /* above page content so sidebar dropdowns overlay it */
    .vm-sb .offcanvas-body { overflow-y: auto; }
}
@media (max-width: 991.98px) {
    .vm-sb.offcanvas-lg { --bs-offcanvas-width: 280px; }
}
.vm-sb-logo { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 8px 12px; }
.vm-sb-logo img { height: 22px; width: auto; display: block; }
.vm-logo-dark { display: none !important; }
[data-bs-theme="dark"] .vm-logo-light { display: none !important; }
[data-bs-theme="dark"] .vm-logo-dark { display: block !important; }

/* Project switcher */
.vm-proj {
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 8px 10px; margin-bottom: 12px;
    border: 1px solid var(--vm-border); border-radius: var(--vm-r);
    background: var(--vm-surface-2);
    font: inherit; color: inherit; text-align: left; cursor: pointer;
}
.vm-proj:hover { border-color: var(--vm-border-strong); }
.vm-proj:focus-visible { outline: 0; box-shadow: var(--vm-focus); }
.vm-proj::after { display: none; }
.vm-proj-av { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; font-weight: 600; font-size: 13px; color: #fff; background: var(--vm-p-500); flex: none; text-transform: uppercase; }
.vm-proj-t { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.vm-proj-t b { font-weight: 600; font-size: 13px; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vm-proj-t span { font-size: 12px; line-height: 16px; color: var(--vm-text-3); }
.vm-proj-menu { width: calc(var(--vm-sb-w) - 24px); }
.vm-proj-menu .vm-proj-av { width: 24px; height: 24px; font-size: 11px; border-radius: 6px; }

/* Nav */
.vm-nav-sec { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--vm-text-3); padding: 14px 10px 6px; }
.vm-sb-link {
    display: flex; align-items: center; gap: 10px;
    padding: 0 10px; height: 36px;
    border-radius: var(--vm-r);
    color: var(--vm-text-2);
    font-weight: 500;
    text-decoration: none;
}
.vm-sb-link:hover { background: var(--vm-sunken); color: var(--vm-text); }
.vm-sb-link:focus-visible { outline: 0; box-shadow: var(--vm-focus); }
.vm-sb-link.is-active { background: var(--vm-primary-soft); color: var(--vm-primary-text); }
.vm-sb-link .vm-cnt { margin-left: auto; font-size: 12px; font-weight: 600; background: var(--vm-sunken); color: var(--vm-text-2); border-radius: 999px; padding: 0 7px; line-height: 20px; }
.vm-sb-link.is-active .vm-cnt { background: var(--vm-surface); color: var(--vm-primary-text); }
.vm-sb-foot { margin-top: auto; display: flex; flex-direction: column; gap: 4px; padding-top: 12px; border-top: 1px solid var(--vm-border); }
.vm-plan { border: 1px solid var(--vm-border); border-radius: var(--vm-r-lg); padding: 12px; display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; background: var(--vm-surface-2); font-size: 12px; line-height: 16px; color: var(--vm-text-3); }
.vm-plan a { font-size: 13px; font-weight: 500; }

/* Main column */
.vm-main-col { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.vm-topbar {
    position: sticky; top: 0; z-index: 1020;
    height: var(--vm-topbar-h);
    display: flex; align-items: center; gap: 8px;
    padding: 0 32px;
    background: var(--vm-surface);
    border-bottom: 1px solid var(--vm-border);
}
.vm-topbar .vm-spacer { flex: 1; }
.vm-topbar .btn { --bs-btn-padding-y: 5px; }
.vm-topbar-title { display: none; font-weight: 600; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vm-avatar { width: 32px; height: 32px; border-radius: 999px; background: var(--vm-accent-soft); color: var(--vm-accent-text); display: grid; place-items: center; font-weight: 600; font-size: 12px; flex: none; text-transform: uppercase; }
.vm-user-btn { display: inline-flex; align-items: center; gap: 8px; padding: 2px 8px 2px 2px; border: 0; background: transparent; border-radius: 999px; color: var(--vm-text); font: inherit; font-weight: 500; }
.vm-user-btn:hover { background: var(--vm-sunken); }
.vm-user-btn:focus-visible { outline: 0; box-shadow: var(--vm-focus); }
.vm-user-btn::after { display: none; }
.vm-user-btn .vm-user-meta { display: flex; flex-direction: column; text-align: left; line-height: 16px; }
.vm-user-btn .vm-user-meta small { font-size: 12px; color: var(--vm-text-3); font-weight: 400; }

.vm-page { padding: 24px 32px 48px; display: flex; flex-direction: column; gap: 24px; width: 100%; }
.vm-page-alerts { display: flex; flex-direction: column; gap: 8px; }
.vm-page-alerts .alert { margin: 0; }

/* Page head */
.vm-phead { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.vm-phead-t { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 240px; }
.vm-phead-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vm-phead .vm-page-title,
.vm-phead .vm-page-title h1 { margin: 0; padding: 0; font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -.015em; color: var(--vm-text); }
.vm-phead .vm-page-title p,
.vm-phead .vm-page-title .text-muted { margin: 4px 0 0; color: var(--vm-text-2) !important; font-size: 14px; }

/* Breadcrumbs (legacy markup: .vm-breadcrumb > ol > li) */
.vm-crumbs, .vm-phead .vm-breadcrumb { font-size: 13px; color: var(--vm-text-3); margin: 0; }
.vm-phead .vm-breadcrumb ol,
.vm-crumbs ol { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.vm-phead .vm-breadcrumb li,
.vm-crumbs li { display: inline-flex; align-items: center; gap: 6px; color: var(--vm-text-3); }
.vm-phead .vm-breadcrumb li + li::before,
.vm-crumbs li + li::before {
    content: "";
    width: 14px; height: 14px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m9 18 6-6-6-6'/%3e%3c/svg%3e") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m9 18 6-6-6-6'/%3e%3c/svg%3e") center / contain no-repeat;
    opacity: .8;
}
.vm-crumbs li::after { display: none !important; }
.vm-phead .vm-breadcrumb a,
.vm-crumbs a { color: var(--vm-text-3); text-decoration: none; }
.vm-phead .vm-breadcrumb a:hover,
.vm-crumbs a:hover { color: var(--vm-text); text-decoration: underline; }
.vm-phead .vm-breadcrumb li.active,
.vm-crumbs li.active { color: var(--vm-text-2); }

/* Footer */
.vm-foot { margin-top: auto; padding: 16px 32px; font-size: 12px; color: var(--vm-text-3); border-top: 1px solid var(--vm-border); }
.vm-foot a { color: var(--vm-text-3); }

/* Theme toggle icon swap */
.vm-theme-ic-dark { display: none; }
[data-bs-theme="dark"] .vm-theme-ic-dark { display: inline-block; }
[data-bs-theme="dark"] .vm-theme-ic-light { display: none; }

@media (max-width: 1199.98px) {
    .vm-page { padding: 20px 24px 40px; }
    .vm-topbar { padding: 0 24px; }
}
@media (max-width: 991.98px) {
    .vm-topbar { padding: 0 8px 0 4px; }
    .vm-topbar-title { display: block; }
    .vm-hide-md { display: none !important; }
}
@media (min-width: 992px) {
    .vm-show-md { display: none !important; }
}
@media (max-width: 767.98px) {
    .vm-page { padding: 16px 16px 32px; gap: 16px; }
    .vm-hide-sm { display: none !important; }
    .vm-phead-actions { width: 100%; }
    .vm-phead-actions > .btn { flex: 1; }
    .vm-foot { padding: 16px; }
}

/* ==========================================================================
   5. Shared components (design system)
   ========================================================================== */
.vm-kpi { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.vm-kpi-v { font-size: 28px; line-height: 34px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.vm-delta { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 0 6px; border-radius: 999px; line-height: 20px; }
.vm-delta.up { background: var(--vm-success-soft); color: var(--vm-success); }
.vm-delta.down { background: var(--vm-danger-soft); color: var(--vm-danger); }
.vm-seg { display: inline-flex; padding: 3px; background: var(--vm-sunken); border-radius: 9px; gap: 2px; }
.vm-seg > * { border: 0; background: transparent; font: inherit; font-size: 13px; font-weight: 500; color: var(--vm-text-2); height: 28px; padding: 0 12px; border-radius: 6px; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; text-decoration: none; }
.vm-seg > .on, .vm-seg > .active { background: var(--vm-surface); color: var(--vm-text); box-shadow: var(--vm-sh-sm); }
.vm-copy { display: flex; align-items: stretch; border: 1px solid var(--vm-border-strong); border-radius: var(--vm-r); overflow: hidden; background: var(--vm-sunken); }
.vm-copy code { flex: 1; min-width: 0; font-family: var(--vm-mono); font-size: 12px; line-height: 18px; padding: 10px 12px; color: var(--vm-text-2); white-space: pre; overflow: auto; }
.vm-copy .btn { border-radius: 0; border: 0; border-left: 1px solid var(--vm-border-strong); box-shadow: none; }
.vm-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 40px 24px; }
.vm-dl { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 10px 16px; font-size: 14px; margin: 0; }
.vm-dl dt { color: var(--vm-text-3); font-weight: 400; }
.vm-dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 767.98px) {
    .vm-dl { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
    .vm-dl dd { margin-bottom: 10px; }
}

/* ==========================================================================
   6. Legacy vm-admin.css classes → new look
   ========================================================================== */
.vm-card { background: var(--vm-surface); border: 1px solid var(--vm-border); border-radius: var(--vm-r-lg); box-shadow: var(--vm-sh-xs); }
.vm-card:hover { box-shadow: var(--vm-sh-xs); }
.vm-card-header { padding: 16px 20px; border-bottom: 1px solid var(--vm-border); background: transparent; }
.vm-card-title { font-size: 15px; line-height: 22px; font-weight: 600; color: var(--vm-text); margin: 0; }
.vm-card-body { padding: 20px; }
.vm-card-footer { padding: 12px 20px; border-top: 1px solid var(--vm-border); background: var(--vm-surface-2); border-radius: 0 0 var(--vm-r-lg) var(--vm-r-lg); }
.vm-section-title { font-size: 15px; line-height: 22px; font-weight: 600; color: var(--vm-text); }
.vm-content { padding: 0; }
.vm-container { max-width: none; padding: 0; }

.vm-form-label { font-size: 13px; line-height: 18px; font-weight: 500; color: var(--vm-text); margin-bottom: 6px; }
.vm-form-control { min-height: 38px; padding: 8px 12px; font-size: 14px; line-height: 20px; border: 1px solid var(--vm-border-strong); border-radius: var(--vm-r); background: var(--vm-surface); color: var(--vm-text); box-shadow: none; }
.vm-form-control:focus { border-color: var(--vm-p-400); box-shadow: var(--vm-focus); outline: 0; }
.vm-form-control[readonly] { background: var(--vm-surface-2); }
.vm-form-control.is-invalid { border-color: var(--vm-danger); }
.vm-form-text { font-size: 12px; color: var(--vm-text-3); }
.vm-form-feedback--error { color: var(--vm-danger); font-size: 12px; }

.vm-btn { border-radius: var(--vm-r); font-weight: 500; font-size: 14px; min-height: 36px; padding: 7px 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-shadow: none; transform: none !important; }
.vm-btn:hover { transform: none !important; }
.vm-btn--primary { background: var(--vm-primary); border-color: var(--vm-primary); color: var(--vm-on-primary); }
.vm-btn--primary:hover { background: var(--vm-primary-hover); border-color: var(--vm-primary-hover); color: var(--vm-on-primary); }
.vm-btn--secondary, .vm-btn--outline { background: var(--vm-surface); border: 1px solid var(--vm-border-strong); color: var(--vm-text); box-shadow: var(--vm-sh-xs); }
.vm-btn--secondary:hover, .vm-btn--outline:hover { background: var(--vm-surface-2); color: var(--vm-text); }
.vm-btn--success { background: var(--vm-success); border-color: var(--vm-success); }
.vm-btn--danger { background: var(--vm-danger); border-color: var(--vm-danger); }
.vm-btn--sm { min-height: 30px; padding: 5px 10px; font-size: 13px; }
.vm-btn--lg { min-height: 44px; padding: 11px 20px; font-size: 15px; }

.vm-alert { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--vm-r-lg); border: 1px solid; font-size: 13px; line-height: 18px; color: var(--vm-text); margin: 0; }
.vm-alert--info { background: var(--vm-info-soft); border-color: var(--st-sent-bd); }
.vm-alert--warning { background: var(--vm-warning-soft); border-color: var(--st-ext-bd); }
.vm-alert--success { background: var(--vm-success-soft); border-color: var(--st-paid-bd); }
.vm-alert--danger, .vm-alert--error { background: var(--vm-danger-soft); border-color: var(--st-canc-bd); }
.vm-alert-content { display: flex; gap: 12px; align-items: flex-start; }
.vm-alert-link { color: var(--vm-primary-text); font-weight: 600; }

.vm-metric-card { background: var(--vm-surface); border: 1px solid var(--vm-border); border-radius: var(--vm-r-lg); box-shadow: var(--vm-sh-xs); }
.vm-metric-number, .vm-metric-value { font-variant-numeric: tabular-nums; letter-spacing: -.02em; color: var(--vm-text); }
.vm-metric-label { color: var(--vm-text-2); }

.vm-table-responsive { border-radius: 0; border: 0; }
.vm-modal-content { border-radius: var(--vm-r-xl); border: 1px solid var(--vm-border); background: var(--vm-surface); }
.vm-modal-header { padding: 18px 24px; border-bottom: 1px solid var(--vm-border); background: transparent; }
.vm-modal-title { font-size: 18px; font-weight: 600; color: var(--vm-text); }
.vm-modal-body { padding: 24px; }
.vm-modal-footer { padding: 12px 24px; background: var(--vm-surface-2); border-top: 1px solid var(--vm-border); }

.code-box { background: var(--vm-sunken) !important; border: 1px solid var(--vm-border-strong); border-radius: var(--vm-r); color: var(--vm-text-2); }
.code-box pre { font-family: var(--vm-mono); font-size: 12px; color: var(--vm-text-2); }

/* Datagrid baseline */
.datagrid .table { background: var(--vm-surface); }
.datagrid .row-grid-bottom { color: var(--vm-text-3); font-size: 13px; }

/* ==========================================================================
   7. Auth (login / lost password)
   ========================================================================== */
.vm-auth { min-height: 100vh; display: flex; flex-wrap: wrap; background: var(--vm-surface); }
.vm-auth-hero {
    flex: 1 1 560px; min-width: 0; position: relative; overflow: hidden;
    background: var(--vm-grad-stage, linear-gradient(160deg, #07172E 0%, #0E2A52 60%, #173F86 100%)); color: #fff;
    padding: 48px clamp(24px, 5vw, 72px);
    display: flex; flex-direction: column; gap: 40px;
}
.vm-auth-hero > img.vm-auth-logo { height: 30px; width: auto; align-self: flex-start; position: relative; z-index: 1; }
.vm-auth-hero-copy { display: flex; flex-direction: column; gap: 20px; max-width: 520px; margin-top: auto; position: relative; z-index: 1; }
.vm-auth-hero h1 { font-size: 44px; line-height: 50px; font-weight: 600; letter-spacing: -.025em; text-wrap: balance; color: #fff; margin: 0; }
.vm-auth-hero p { font-size: 17px; line-height: 26px; color: rgba(255, 255, 255, .78); margin: 0; }
.vm-auth-feats { display: flex; flex-direction: column; gap: 14px; font-size: 15px; color: rgba(255, 255, 255, .88); position: relative; z-index: 1; }
.vm-auth-feat { display: flex; align-items: center; gap: 12px; }
.vm-auth-feat-ic { width: 28px; height: 28px; border-radius: 8px; background: rgba(124, 200, 245, .16); color: #7CC8F5; display: grid; place-items: center; flex: none; }
.vm-auth-logo-link { align-self: flex-start; position: relative; z-index: 1; display: inline-flex; border-radius: 8px; }
.vm-auth-logo-link:focus-visible { outline: 2px solid #7CC8F5; outline-offset: 4px; }
.vm-auth-logo-link img.vm-auth-logo { height: 30px; width: auto; display: block; transition: opacity .15s; }
.vm-auth-logo-link:hover img.vm-auth-logo { opacity: .85; }
/* rotating feature sets: all sets share one grid cell (no height jump), items enter one after another */
.vm-auth-feats-stage { display: grid; }
.vm-auth-feats-set { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 14px; visibility: hidden; }
.vm-auth-feats-set.is-on, .vm-auth-feats-set.is-out { visibility: visible; }
.vm-auth-feats-set .vm-auth-feat { opacity: 0; transform: translateY(10px); transition: opacity .45s ease, transform .45s ease; }
.vm-auth-feats-set.is-on .vm-auth-feat { opacity: 1; transform: none; }
.vm-auth-feats-set.is-on .vm-auth-feat:nth-child(2) { transition-delay: .08s; }
.vm-auth-feats-set.is-on .vm-auth-feat:nth-child(3) { transition-delay: .16s; }
.vm-auth-feats-set.is-out .vm-auth-feat { opacity: 0; transform: translateY(-10px); transition-duration: .3s; }
.vm-auth-feats-set.vm-no-anim .vm-auth-feat { transition: none; }
@media (prefers-reduced-motion: reduce) { .vm-auth-feats-set .vm-auth-feat { transition: none; } }
.vm-auth-copy { font-size: 13px; color: rgba(255, 255, 255, .55); position: relative; z-index: 1; }
.vm-auth-copy a { color: rgba(255, 255, 255, .7); }
.vm-auth-card {
    position: absolute; right: -60px; top: 120px; width: 300px; height: 176px;
    border-radius: 16px; background: var(--vm-grad);
    transform: rotate(-8deg); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5);
    padding: 20px; display: flex; flex-direction: column; justify-content: space-between; opacity: .9;
}
.vm-auth-card-eyebrow { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.vm-auth-card-v { font-size: 30px; font-weight: 600; }
.vm-auth-card-code { font-family: var(--vm-mono); font-size: 13px; opacity: .85; }
.vm-auth-card2 { position: absolute; right: 120px; top: 60px; width: 200px; height: 120px; border-radius: 14px; border: 1.5px dashed rgba(124, 200, 245, .4); transform: rotate(6deg); }

.vm-auth-main { flex: 1 1 480px; min-width: 0; padding: 32px clamp(20px, 4vw, 56px); display: flex; flex-direction: column; gap: 24px; background: var(--vm-surface); }
.vm-auth-top { display: flex; justify-content: flex-end; gap: 4px; }
.vm-auth-box { width: 100%; max-width: 400px; margin: auto; display: flex; flex-direction: column; gap: 24px; }
.vm-auth-box h2 { font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -.015em; margin: 0; }
.vm-auth-box .vm-auth-sub { color: var(--vm-text-2); margin: 6px 0 0; }
.vm-auth-box form { display: flex; flex-direction: column; gap: 16px; }
.vm-auth-box .form-control { min-height: 42px; }
.vm-auth-box .form-group { margin: 0 !important; }
.vm-auth-box .btn-primary[type="submit"], .vm-auth-box button[type="submit"] { width: 100%; --bs-btn-padding-y: 11px; --bs-btn-font-size: 15px; }
/* shared reset-form component renders its own title — the auth layout already has one */
.vm-auth-box .login-box-msg,
.vm-auth-box .login-box-msg + .text-muted { display: none; }
.vm-auth-box .alert { margin: 0; }
.vm-auth-links { display: flex; justify-content: center; gap: 16px; font-size: 12px; }
.vm-auth-links a { color: var(--vm-text-3); }
.vm-pw { position: relative; }
.vm-pw .form-control { padding-right: 44px; }
.vm-pw-toggle {
    /* anchored to the 42px input itself, not to the wrapper (validation messages may follow) */
    position: absolute; right: 6px; top: 21px; transform: translateY(-50%);
    width: 30px; height: 30px; padding: 0; color: var(--vm-text-3);
}
.vm-pw-toggle:hover { color: var(--vm-text); }
.vm-pw-toggle svg { width: 18px; height: 18px; }
.vm-pw-toggle .vm-ic-hide { display: none; }
.vm-pw-toggle[aria-pressed="true"] .vm-ic-show { display: none; }
.vm-pw-toggle[aria-pressed="true"] .vm-ic-hide { display: inline-block; }

@media (max-width: 1099.98px) {
    .vm-auth-hero { flex-basis: 100%; padding: 28px 24px; gap: 20px; }
    .vm-auth-hero h1 { font-size: 26px; line-height: 32px; }
    .vm-auth-hero p { font-size: 15px; line-height: 22px; }
    .vm-auth-hero-copy { margin-top: 0; }
    .vm-auth-feats, .vm-auth-card, .vm-auth-card2, .vm-auth-copy { display: none; }
}

/* near-zero instead of none: animationend / transitionend still fire (Notyf removes a toast only on
   animationend — with animation: none the flash message stayed on screen for good, e.g. iOS "Reduce Motion") */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
        transition-duration: .01ms !important; transition-delay: 0s !important;
    }
}

/* ==========================================================================
   8. Dashboard
   ========================================================================== */
.vm-card-h { display: flex; align-items: center; gap: 12px; padding: 14px 20px; min-height: 56px; border-bottom: 1px solid var(--vm-border); }
.vm-card-b { padding: 20px; }
.card > .table-responsive { border-radius: 0 0 var(--vm-r-lg) var(--vm-r-lg); }
.card > .table-responsive > .table > tbody > tr:last-child > td { border-bottom: 0; }

.vm-code { font-family: var(--vm-mono); font-weight: 500; font-size: 13px; color: var(--vm-text); text-decoration: none; }
a.vm-code:hover { color: var(--vm-primary-text); text-decoration: underline; }
.vm-cell2 { display: flex; flex-direction: column; gap: 1px; }
.vm-cell2 small { color: var(--vm-text-3); font-size: 12px; }

/* Attention strip */
.vm-attn { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 12px; }
.vm-attn-item {
    display: flex; align-items: center; gap: 14px; padding: 14px 16px;
    background: var(--vm-surface); border: 1px solid var(--vm-border); border-radius: var(--vm-r-lg); box-shadow: var(--vm-sh-xs);
    color: inherit; text-decoration: none;
}
.vm-attn-item:hover { border-color: var(--vm-border-strong); color: inherit; }
.vm-attn-item:focus-visible { outline: 0; box-shadow: var(--vm-focus); }
.vm-attn-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; border: 0; }
.vm-attn-t { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.vm-attn-t b { font-size: 13px; font-weight: 600; }
.vm-attn-t span { font-size: 12px; color: var(--vm-text-3); }

/* KPI row */
.vm-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.vm-kpi-hint { font-size: 12px; line-height: 16px; color: var(--vm-text-3); }
.vm-kpi .vm-delta svg { width: 12px; height: 12px; }
a.vm-kpi-link { color: inherit; text-decoration: none; }
a.vm-kpi-link:hover { border-color: var(--vm-border-strong); color: inherit; }

/* Main grid */
.vm-dash { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.vm-dash-main, .vm-dash-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* Bar chart */
.vm-chart { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; padding-top: 8px; }
.vm-chart-y { display: flex; flex-direction: column; justify-content: space-between; height: 180px; text-align: right; font-size: 12px; line-height: 12px; color: var(--vm-text-3); margin-top: -6px; margin-bottom: -6px; }
.vm-chart-plot {
    position: relative; height: 180px; display: flex; align-items: flex-end; gap: 3px; padding: 0 2px;
    border-bottom: 1px solid var(--vm-border-strong);
    background: repeating-linear-gradient(to bottom, var(--vm-border) 0 1px, transparent 1px 60px);
}
.vm-chart-col { flex: 1; height: 100%; display: flex; align-items: flex-end; position: relative; outline: 0; }
.vm-chart-bar { width: 100%; border-radius: 4px 4px 0 0; background: var(--vm-primary); opacity: .85; transition: opacity .15s; }
.vm-chart-col:hover .vm-chart-bar, .vm-chart-col:focus-visible .vm-chart-bar { opacity: 1; background: var(--vm-primary-hover); }
.vm-chart-tip {
    display: none; position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); z-index: 3;
    flex-direction: column; padding: 8px 10px; white-space: nowrap; pointer-events: none;
    background: var(--vm-surface); border: 1px solid var(--vm-border); border-radius: var(--vm-r); box-shadow: var(--vm-sh-md);
    font-size: 12px; color: var(--vm-text-3);
}
.vm-chart-tip b { font-size: 13px; color: var(--vm-text); font-weight: 600; }
.vm-chart-col:hover .vm-chart-tip, .vm-chart-col:focus-visible .vm-chart-tip { display: flex; top: auto; }
.vm-chart-col:first-child .vm-chart-tip, .vm-chart-col:nth-child(2) .vm-chart-tip { left: 0; transform: none; }
.vm-chart-col:last-child .vm-chart-tip, .vm-chart-col:nth-last-child(2) .vm-chart-tip { left: auto; right: 0; transform: none; }
.vm-chart-x { position: relative; height: 16px; font-size: 12px; color: var(--vm-text-3); }
.vm-chart-x span { position: absolute; left: calc((var(--i) + .5) / var(--n) * 100%); transform: translateX(-50%); white-space: nowrap; }

/* Quick actions */
.vm-qa { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 12px; }
.vm-qa .btn { justify-content: flex-start; min-height: 44px; }

/* Timeline */
.vm-tl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.vm-tl-i { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; position: relative; padding-bottom: 18px; }
.vm-tl-i::before { content: ""; position: absolute; left: 13.5px; top: 28px; bottom: 0; width: 1px; background: var(--vm-border); }
.vm-tl-i:last-child { padding-bottom: 0; }
.vm-tl-i:last-child::before { display: none; }
.vm-tl-dot { width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; border: 0; }
.vm-tl-dot .vm-i { width: 14px; height: 14px; }
.vm-tl-t { display: flex; flex-direction: column; min-width: 0; }
tr[data-vm-href] { cursor: pointer; }
/* order codes in the activity feed: the text font (the mono one looked foreign inside a sentence) */
.vm-tl-t .vm-code { font-family: inherit; font-weight: 600; font-size: inherit; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.vm-tl-t .vm-code { font-weight: 600; }

/* Empty states */
.vm-empty-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--vm-sunken); color: var(--vm-text-3); display: grid; place-items: center; }
.vm-empty-ic svg { width: 20px; height: 20px; }
.vm-ill { width: 168px; height: 134px; color: var(--vm-primary); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: block; }
.vm-ill .soft { fill: var(--vm-primary-soft); stroke: none; }
.vm-ill .acc { stroke: var(--vm-accent); }
.vm-ill .warm { stroke: var(--vm-warm); }

/* Onboarding */
.vm-onb { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); overflow: hidden; }
.vm-onb-steps { padding: 24px; display: flex; flex-direction: column; gap: 16px; border-right: 1px solid var(--vm-border); }
.vm-onb-ill { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 32px 24px; background: var(--vm-surface-2); }
.vm-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.vm-step { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--vm-border); border-radius: var(--vm-r-lg); background: var(--vm-surface); }
.vm-step.is-current { border-color: var(--vm-primary); box-shadow: 0 0 0 1px var(--vm-primary); background: var(--vm-primary-soft); }
.vm-step.is-done { background: var(--vm-surface-2); }
.vm-step-n { width: 28px; height: 28px; border-radius: 999px; border: 1.5px solid var(--vm-border-strong); color: var(--vm-text-3); display: grid; place-items: center; flex: none; font-weight: 600; font-size: 13px; }
.vm-step-n svg { width: 14px; height: 14px; stroke-width: 2.5; }
.vm-step.is-current .vm-step-n { border: 2px solid var(--vm-primary); color: var(--vm-primary); }
.vm-step.is-done .vm-step-n { border: 0; background: var(--vm-success); color: #fff; }
.vm-step-t { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.vm-step-t b { font-size: 13px; font-weight: 600; }
.vm-step-t span { font-size: 12px; color: var(--vm-text-3); }
.vm-step.is-current .vm-step-t span { color: var(--vm-text-2); }
.vm-step.is-done .vm-step-t b { text-decoration: line-through; color: var(--vm-text-3); font-weight: 500; }

/* Stacked distribution bar + legend */
.vm-stack { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--vm-sunken); gap: 2px; }
.vm-stack span { display: block; height: 100%; }
.vm-legend { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.vm-legend li { display: flex; align-items: center; gap: 8px; }
.vm-legend-dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.vm-legend-pct { width: 44px; text-align: right; font-size: 12px; }

/* Ranked list */
.vm-rank { list-style: none; margin: 0; padding: 8px 0; }
.vm-rank li { display: flex; align-items: center; gap: 12px; padding: 10px 20px; }
.vm-rank-n { width: 20px; color: var(--vm-text-3); font-size: 12px; font-weight: 600; }
.vm-rank-t { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.vm-rank-t b { font-size: 13px; font-weight: 500; }
.vm-rank-bar { height: 4px; border-radius: 999px; background: var(--vm-sunken); display: block; overflow: hidden; }
.vm-rank-bar span { display: block; height: 100%; background: var(--vm-primary); border-radius: 999px; }

/* Dashboard: seasonal tip, voucher lookup, card payouts, expired value */
.vm-season { display: flex; flex-direction: row; align-items: center; gap: 14px; padding: 14px 16px; position: relative; background: linear-gradient(90deg, var(--vm-accent-soft), var(--vm-surface) 70%); }
.vm-season-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--vm-surface); color: var(--vm-accent-text); box-shadow: var(--vm-sh-sm); }
.vm-season-t { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.vm-season-t b { font-size: 14px; font-weight: 600; }
.vm-season-t span { font-size: 13px; color: var(--vm-text-2); max-width: 720px; }
.vm-season-a { display: flex; gap: 8px; flex: none; padding-right: 32px; }
.vm-season-x { position: absolute; top: 8px; right: 8px; }
/* mobile app card: phones only (the admin in a desktop browser does not need it) */
.vm-app-promo { display: none; }
@media (max-width: 767.98px) { .vm-app-promo { display: flex; } }
.vm-lookup { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 12px 12px 0; }
.vm-lookup-f { position: relative; }
.vm-lookup-f svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--vm-text-3); pointer-events: none; }
.vm-lookup-f .form-control { padding-left: 36px; height: 44px; font-family: var(--vm-mono); text-transform: uppercase; }
.vm-lookup-f .form-control::placeholder { font-family: var(--vm-font, inherit); text-transform: none; }
.vm-lookup .btn { height: 44px; }
.vm-lookup-hint { grid-column: 1 / -1; font-size: 12px; color: var(--vm-text-3); }
.vm-cards-kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.vm-cards-kv > div { display: flex; flex-direction: column; gap: 2px; }
.vm-cards-kv b { font-size: 20px; line-height: 26px; font-weight: 600; }
.vm-cards-payout { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: var(--vm-sunken); color: var(--vm-text-2); }
.vm-cards-payout svg { width: 16px; height: 16px; flex: none; }
.vm-expired-v { font-size: 22px; line-height: 28px; font-weight: 600; }
@media (max-width: 767.98px) {
    .vm-season { flex-wrap: wrap; }
    .vm-season-t { flex-basis: calc(100% - 54px); padding-right: 28px; }
    .vm-season-a { padding-right: 0; width: 100%; }
    .vm-season-a .btn { flex: 1; }
}

@media (max-width: 1199.98px) {
    .vm-dash { grid-template-columns: minmax(0, 1fr); }
    .vm-dash-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
}
@media (max-width: 767.98px) {
    .vm-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .vm-kpis .vm-kpi { padding: 14px 16px; }
    .vm-kpis .vm-kpi-v { font-size: 20px; line-height: 26px; }
    .vm-onb { grid-template-columns: minmax(0, 1fr); }
    .vm-onb-steps { border-right: 0; border-bottom: 1px solid var(--vm-border); padding: 16px; }
    .vm-chart { grid-template-columns: 44px minmax(0, 1fr); }
    .vm-chart-plot { gap: 1px; }
}

/* Superadmin dashboard */
.vm-dash-sa { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.vm-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.vm-bars li { display: flex; flex-direction: column; gap: 6px; }
.vm-bar { height: 12px; border-radius: 4px; background: var(--vm-sunken); overflow: hidden; }
.vm-bar span { display: block; height: 100%; border-radius: 4px; }
.vm-proj-av-sm { width: 24px; height: 24px; font-size: 11px; border-radius: 6px; }
@media (max-width: 1199.98px) { .vm-dash-sa { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   9. AJAX (Naja): progress bar, live regions
   ========================================================================== */
.vm-contents { display: contents; }
.vm-progress {
    position: fixed; top: 0; left: 0; z-index: 2000; height: 2px; width: 0;
    background: var(--vm-primary); box-shadow: 0 0 8px rgba(var(--vm-primary-rgb), .5);
    opacity: 0; transition: width .4s ease, opacity .3s ease .2s;
    pointer-events: none;
}
.vm-busy .vm-progress { width: 80%; opacity: 1; transition: width 8s cubic-bezier(.1, .7, .2, 1), opacity .1s; }
.vm-busy .vm-live { opacity: .65; transition: opacity .2s .15s; }
.vm-live { transition: opacity .2s; display: flex; flex-direction: column; gap: 24px; }
@media (max-width: 767.98px) { .vm-live { gap: 16px; } }
.vm-snippet-in { animation: vm-snippet-in .35s ease-out; }
@keyframes vm-snippet-in { from { opacity: .4; } to { opacity: 1; } }

.vm-live-stamp { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--vm-text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.vm-live-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--vm-success); box-shadow: 0 0 0 0 rgba(24, 121, 74, .5); animation: vm-pulse 2s infinite; }
@keyframes vm-pulse { 0% { box-shadow: 0 0 0 0 rgba(24, 121, 74, .45); } 70% { box-shadow: 0 0 0 7px rgba(24, 121, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(24, 121, 74, 0); } }
[data-vm-refresh].is-spinning svg { animation: vm-spin .8s linear infinite; }
@keyframes vm-spin { to { transform: rotate(360deg); } }

/* Download in progress (vm-admin.js data-vm-download): content hidden, same size, spinner in the middle */
.vm-busy { position: relative; pointer-events: none; cursor: progress; color: transparent !important; }
.vm-busy > * { visibility: hidden; }
.vm-busy::after {
    content: ""; position: absolute; top: 50%; left: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px;
    border: 2px solid var(--vm-p-200); border-top-color: var(--vm-p-600); border-radius: 999px;
    animation: vm-spin .7s linear infinite;
}
/* the spinner is the only sign that something is happening: keep it turning (slowly) with reduced motion too */
@media (prefers-reduced-motion: reduce) { .vm-busy::after { animation: vm-spin 1.6s linear infinite !important; } }

/* ==========================================================================
   10. Shell additions: search, kbd hint, superadmin switcher
   ========================================================================== */
.vm-search {
    display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 8px 0 12px;
    width: 320px; max-width: 100%;
    border: 1px solid var(--vm-border); border-radius: var(--vm-r); background: var(--vm-surface-2); color: var(--vm-text-3);
}
.vm-search:focus-within { border-color: var(--vm-p-400); box-shadow: var(--vm-focus); background: var(--vm-surface); }
.vm-search svg { width: 16px; height: 16px; flex: none; }
.vm-search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: 0; font: inherit; color: var(--vm-text); }
.vm-search input::placeholder { color: var(--vm-text-3); }
.vm-search input::-webkit-search-cancel-button { display: none; }
.vm-kbd {
    font-family: var(--vm-mono); font-size: 11px; line-height: 16px; padding: 0 5px;
    border: 1px solid var(--vm-border); border-bottom-width: 2px; border-radius: 4px;
    color: var(--vm-text-3); background: var(--vm-surface);
}
.vm-search:focus-within .vm-kbd { display: none; }

a.vm-proj { color: inherit; text-decoration: none; }
a.vm-proj:hover { color: inherit; }
.vm-proj > svg { width: 16px; height: 16px; color: var(--vm-text-3); flex: none; }
.vm-proj-av-ink { background: var(--vm-ink); }
[data-bs-theme="dark"] .vm-proj-av-ink { background: var(--vm-p-700); }
.vm-proj-av svg { width: 16px; height: 16px; }
.vm-sb-logo .vm-tag { height: 20px; font-size: 11px; font-weight: 600; }
.vm-plan .vm-tag { height: 20px; }
.vm-tag-nowrap, .vm-plan .vm-tag { white-space: nowrap; flex: none; }
.vm-user-btn .vm-avatar { width: 30px; height: 30px; }
.vm-user-btn svg { width: 16px; height: 16px; color: var(--vm-text-3); }

/* Superadmin project switcher with search */
.vm-proj-search-menu { width: 300px; max-width: calc(100vw - 24px); padding: 6px; }
.vm-proj-search { position: relative; padding: 2px 2px 6px; }
.vm-proj-search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-60%); width: 14px; height: 14px; color: var(--vm-text-3); pointer-events: none; }
.vm-proj-search .form-control { padding-left: 30px; }
.vm-proj-results { max-height: 320px; overflow-y: auto; }
.vm-proj-search-menu .dropdown-item { gap: 10px; }
.vm-proj-item-t { display: flex; flex-direction: column; min-width: 0; line-height: 16px; }
.vm-proj-item-t b { font-weight: 500; font-size: 13px; }
.vm-proj-item-t small { font-size: 11px; color: var(--vm-text-3); }
.vm-proj-search-menu .dropdown-item.active .vm-proj-item-t small { color: inherit; }

/* ==========================================================================
   11. Order detail
   ========================================================================== */
.vm-od-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.vm-od-kpis > .vm-kpi + .vm-kpi { border-left: 1px solid var(--vm-border); }
.vm-od-kpis .progress { margin: 8px 0 2px; }
.vm-od-ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none; border: 0; }
.vm-od-ic svg { width: 15px; height: 15px; }
.vm-od-apply, .vm-od-extend { display: flex; flex-direction: column; gap: 16px; }
.vm-od-apply-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 220px)); gap: 16px; }
.vm-od-field { display: flex; flex-direction: column; }
.vm-od-field .form-label { margin-bottom: 6px; }
.vm-od-field .form-text { margin-top: 4px; }
.vm-od-field-wide { grid-column: span 2; }
.vm-od-field[hidden] { display: none; }
.vm-seg > label { cursor: pointer; margin: 0; }
.vm-seg > label:has(input:focus-visible) { box-shadow: var(--vm-focus); }
.vm-od-table { border: 1px solid var(--vm-border); border-radius: var(--vm-r); }
.vm-od-table .table > :last-child > tr:last-child > td { border-bottom: 0; }
.vm-od-qr { width: 96px; height: 96px; border-radius: 8px; border: 1px solid var(--vm-border); padding: 4px; background: #fff; flex: none; }
.vm-dl-compact { grid-template-columns: 110px minmax(0, 1fr); gap: 8px 12px; font-size: 13px; }
.vm-phead-actions .dropdown-item { gap: 10px; }
.vm-phead-actions .dropdown-item svg { width: 16px; height: 16px; }
.vm-dash-side > .btn-danger-soft { justify-content: center; }
.vm-tl-dot svg { width: 14px; height: 14px; }
@media (max-width: 1199.98px) {
    .vm-od-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vm-od-kpis > .vm-kpi:nth-child(3) { border-left: 0; }
    .vm-od-kpis > .vm-kpi:nth-child(n+3) { border-top: 1px solid var(--vm-border); }
}
@media (max-width: 575.98px) {
    .vm-od-kpis { grid-template-columns: minmax(0, 1fr); }
    .vm-od-kpis > .vm-kpi + .vm-kpi { border-left: 0; border-top: 1px solid var(--vm-border); }
    .vm-od-field-wide { grid-column: auto; }
}

/* ==========================================================================
   12. New order
   ========================================================================== */
.vm-step-badge { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: var(--vm-sunken); color: var(--vm-text-2); flex: none; }
.vm-opts { display: flex; flex-direction: column; gap: 8px; }
.vm-opt {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 0; cursor: pointer;
    border: 1px solid var(--vm-border); border-radius: var(--vm-r-lg); background: var(--vm-surface);
    transition: border-color .15s, background-color .15s;
}
.vm-opt:hover { border-color: var(--vm-border-strong); }
.vm-opt.on, .vm-audience .vm-opt:has(input:checked) { border-color: var(--vm-primary); box-shadow: 0 0 0 1px var(--vm-primary); background: var(--vm-primary-soft); }
.vm-audience .vm-opt { padding: 10px 12px; gap: 10px; }
.vm-opt.is-disabled { opacity: .5; cursor: not-allowed; }
.vm-opt.is-disabled:hover { border-color: var(--vm-border); }
.vm-opt .form-check-input { margin: 0; flex: none; border-radius: 999px; }
.vm-opt:has(input:focus-visible) { box-shadow: var(--vm-focus); }
.vm-opt-t { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.vm-opt-t b { font-size: 13px; font-weight: 600; }
.vm-opt-t small { font-size: 12px; color: var(--vm-text-3); }
.vm-nf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.vm-nf-grid[hidden] { display: none; }
.vm-nf-summary { position: sticky; top: calc(var(--vm-topbar-h) + var(--vm-imp-h, 0px) + 24px); overflow: hidden; }
.vm-nf-preview {
    display: flex; flex-direction: column; gap: 14px; padding: 18px 20px; color: #fff;
    background: linear-gradient(135deg, var(--vm-p-500), var(--vm-p-700));
}
.vm-nf-preview-name { font-size: 18px; line-height: 24px; }
.vm-nf-preview .mono { opacity: .85; }
.vm-nf-actions { display: flex; flex-direction: column; gap: 6px; padding: 12px 20px 20px; }
.vm-nf-actions .btn-lg { width: 100%; }
form.vm-dash > .vm-dash-main > .alert { margin: 0; }
@media (max-width: 767.98px) {
    .vm-nf-grid { grid-template-columns: minmax(0, 1fr); }
    .vm-nf-summary { position: static; }
}

/* Invalid inputs (native required / Nette validation) */
.form-control.is-invalid, .form-select.is-invalid,
.form-control:user-invalid, .form-select:user-invalid {
    border-color: var(--vm-danger);
    background-image: none;
    padding-right: 12px;
}
.form-control.is-invalid:focus, .form-select.is-invalid:focus,
.form-control:user-invalid:focus, .form-select:user-invalid:focus {
    border-color: var(--vm-danger);
    box-shadow: 0 0 0 3px rgba(180, 35, 35, .2);
}
.vm-pw .form-control.is-invalid, .vm-pw .form-control:user-invalid { padding-right: 44px; }

/* ==========================================================================
   13. Forms & services
   ========================================================================== */
.vm-grid-tab {
    display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px;
    font-weight: 500; color: var(--vm-text-3); white-space: nowrap; text-decoration: none;
    border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.vm-grid-tab:hover { color: var(--vm-text); text-decoration: none; }
.vm-grid-tab.is-active { color: var(--vm-text); border-bottom-color: var(--vm-primary); }
.vm-grid-tab .vm-tag { height: 18px; padding: 0 6px; font-size: 11px; }
.vm-grid-tab.is-active .vm-tag { background: var(--vm-primary-soft); color: var(--vm-primary-text); }

.vm-fs-sec + .vm-fs-sec { margin-top: 16px; }
.vm-fs-sec .vm-card-b { display: flex; flex-direction: column; gap: 16px; }
.vm-fs-sub { margin: 2px 0 0; font-size: 13px; color: var(--vm-text-3); font-weight: 400; }
.vm-fs-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.vm-fs-opts .vm-opt .form-check-input { border-radius: 4px; }
.vm-fs-rows { display: flex; flex-direction: column; }
.vm-fs-row { display: flex; align-items: center; gap: 16px; padding: 14px 0; margin: 0; cursor: pointer; border-top: 1px solid var(--vm-border); }
.vm-fs-row:first-child { border-top: 0; padding-top: 0; }
.vm-fs-row:last-child { padding-bottom: 0; }
.vm-fs-row .vm-opt-t b { font-weight: 500; }
.vm-fs-row .form-switch { margin: 0; padding: 0; min-height: 0; flex: none; }
.vm-fs-row .form-switch .form-check-input { margin: 0; float: none; cursor: pointer; }
.vm-fs-foot { display: flex; justify-content: flex-end; margin-top: 16px; }
@media (max-width: 640px) { .vm-fs-opts { grid-template-columns: minmax(0, 1fr); } }
.vm-page-tabs { display: flex; gap: 4px; box-shadow: inset 0 -1px 0 var(--vm-border); overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; margin-bottom: -8px; }
.vm-page-tabs .vm-grid-tab { margin-bottom: 0; } /* inset line instead of a border → the underline does not overflow (no vertical scrollbar) */
.vm-form-preview { padding: 12px; background: var(--vm-sunken); border-radius: 0 0 var(--vm-r-lg) var(--vm-r-lg); display: flex; justify-content: center; }
.vm-form-preview iframe { width: 100%; height: 520px; border: 1px solid var(--vm-border); border-radius: var(--vm-r); background: #fff; transition: width .2s; }
.vm-form-preview.is-mobile iframe { width: 375px; max-width: 100%; }
.vm-settings-wrap { max-width: 760px; }

/* ==========================================================================
   14. Project settings
   ========================================================================== */
.vm-settings { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: start; }
.vm-settings-nav { position: sticky; top: calc(var(--vm-topbar-h) + var(--vm-imp-h, 0px) + 24px); display: flex; flex-direction: column; gap: 2px; }
.vm-settings-body { display: flex; flex-direction: column; min-width: 0; max-width: 860px; }
.vm-settings-body > .vm-card { scroll-margin-top: calc(var(--vm-topbar-h) + var(--vm-imp-h, 0px) + 16px); }
.vm-settings-body [id^="s-"] { scroll-margin-top: calc(var(--vm-topbar-h) + var(--vm-imp-h, 0px) + 16px); }
.vm-settings .vm-section-title { font-size: 15px; font-weight: 600; margin-bottom: 16px; color: var(--vm-text); }
.vm-save-bar {
    position: sticky; bottom: 16px; z-index: 1010; margin-top: 8px;
    display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px;
    border-radius: var(--vm-r-lg); background: var(--vm-surface); border: 1px solid var(--vm-border); box-shadow: var(--vm-sh-md);
}
.vm-save-bar .vm-spacer { flex: 1; }
.vm-save-bar [data-vm-dirty-text], .vm-save-bar > .vm-i, .vm-save-bar [data-vm-discard] { visibility: hidden; }
.vm-save-bar.is-dirty { background: var(--vm-ink); color: #fff; border-color: transparent; box-shadow: var(--vm-sh-lg); }
[data-bs-theme="dark"] .vm-save-bar.is-dirty { background: #2A3843; }
.vm-save-bar.is-dirty [data-vm-dirty-text], .vm-save-bar.is-dirty > .vm-i, .vm-save-bar.is-dirty [data-vm-discard] { visibility: visible; }
.vm-save-bar.is-dirty .btn-ghost { --bs-btn-color: #DCE5EA; --bs-btn-hover-color: #fff; --bs-btn-hover-bg: rgba(255,255,255,.1); }
.vm-save-bar.is-dirty .btn-primary { --bs-btn-bg: #fff; --bs-btn-color: var(--vm-ink); --bs-btn-border-color: #fff; --bs-btn-hover-bg: #E8EEF2; --bs-btn-hover-color: var(--vm-ink); }
@media (max-width: 991.98px) {
    .vm-settings { grid-template-columns: minmax(0, 1fr); }
    .vm-settings-nav { position: static; flex-direction: row; overflow-x: auto; }
}
.vm-settings + .vm-save-bar { margin-left: 224px; max-width: 860px; }
.vm-settings .vm-section-title { text-transform: none; letter-spacing: -.005em; font-size: 15px; line-height: 22px; }
@media (max-width: 991.98px) { .vm-settings + .vm-save-bar { margin-left: 0; } }
.vm-fs-opts .vm-opt:has(input:checked) { border-color: var(--vm-primary); box-shadow: 0 0 0 1px var(--vm-primary); background: var(--vm-primary-soft); }
.vm-fs-opts .vm-opt .vm-i { width: 18px; height: 18px; flex: none; color: var(--vm-text-3); }
.vm-fs-opts .vm-opt:has(input:checked) .vm-i { color: var(--vm-primary-text); }
/* Inline validation message under the delivery tiles (LiveForm data-lfv-message-id target) */
#deliveryTypes-msg:empty { display: none; }
#deliveryTypes-msg.invalid-tooltip {
    position: static; display: flex; align-items: center; gap: 8px; max-width: none; margin: 0; padding: 8px 12px;
    font-size: 13px; font-weight: 500; color: var(--vm-danger); background: var(--vm-danger-soft); border-radius: var(--vm-r);
}
#deliveryTypes-msg.invalid-tooltip::before {
    content: ""; width: 16px; height: 16px; flex: none; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3e%3ccircle cx='12' cy='12' r='10'/%3e%3cpath d='M12 8v4M12 16h.01'/%3e%3c/svg%3e") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3e%3ccircle cx='12' cy='12' r='10'/%3e%3cpath d='M12 8v4M12 16h.01'/%3e%3c/svg%3e") center / contain no-repeat;
}
.vm-fs-opts:has(input.is-invalid) .vm-opt { border-color: var(--vm-danger); }
.vm-fs-opts:has(input.is-invalid) .vm-opt .form-check-input { border-color: var(--vm-danger); }

/* "Logged in as" bar (superadmin impersonating an owner): sticks above the topbar, which moves down by its height */
body:has(.vm-imp-bar) { --vm-imp-h: 41px; }
body:has(.vm-imp-bar) .vm-topbar { top: var(--vm-imp-h); }
.vm-imp-bar {
    position: sticky; top: 0; z-index: 1021; height: var(--vm-imp-h); box-sizing: border-box;
    display: flex; align-items: center; gap: 10px;
    padding: 8px 24px; background: var(--vm-warm-soft, #FFF4E5); color: var(--vm-warm-text, #7A4A00);
    border-bottom: 1px solid var(--vm-border); font-size: 13px;
}
.vm-imp-bar .vm-imp-mail { opacity: .75; }
.vm-imp-bar .vm-imp-back { background: var(--vm-surface); border: 1px solid var(--vm-border); color: var(--vm-text); font-weight: 500; }
.vm-imp-bar .vm-imp-back:hover { background: var(--vm-sunken); }
@media (max-width: 640px) { .vm-imp-bar { padding: 8px 16px; } .vm-imp-bar .vm-imp-mail { display: none; } }

/* ==========================================================================
   Project settings (design: Settings.dc.html)
   ========================================================================== */
.vm-set-form .vm-settings-body { gap: 16px; max-width: 760px; padding-bottom: 8px; }
.vm-set-card { scroll-margin-top: calc(var(--vm-topbar-h) + var(--vm-imp-h, 0px) + 16px); }
.vm-set-h { align-items: flex-start; gap: 16px; }
.vm-set-h-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vm-set-h .form-switch { padding: 0; min-height: 0; margin-top: 2px !important; flex: none; }
.vm-set-h .form-switch .form-check-input { margin: 0; float: none; cursor: pointer; }
.vm-set-b { display: flex; flex-direction: column; gap: 16px; }
/* Card with a header switch: body only while switched on */
.vm-set-card:has(> .vm-set-h .vm-set-toggle:not(:checked)) > .vm-set-b { display: none; }
.vm-set-card:has(> .vm-set-h .vm-set-toggle:not(:checked)) > .vm-set-h { border-bottom: 0; }
/* a second part of a card with its own switch (Platby převodem → Automatické párování plateb) */
.vm-set-sub { border-top: 1px solid var(--vm-border); }
.vm-set-card:has(> .vm-set-h .vm-set-toggle:not(:checked)) > .vm-set-sub { display: none; }
/* note shown only while the card's switch is off (Platby převodem vypnuté) */
.vm-set-off-note { display: none; }
.vm-set-card:has(> .vm-set-h .vm-set-toggle:not(:checked)) > .vm-set-off-note { display: block; }
.vm-set-sub:has(> .vm-set-h .vm-set-toggle:not(:checked)) > .vm-set-b { display: none; }
.vm-set-sub:has(> .vm-set-h .vm-set-toggle:not(:checked)) > .vm-set-h { border-bottom: 0; }
.vm-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.vm-field > .form-label { margin: 0; font-size: 13px; font-weight: 500; color: var(--vm-text); }
.vm-hint { font-size: 12px; line-height: 17px; color: var(--vm-text-3); }
.vm-field-narrow { width: 200px; flex: none; }
.vm-ig-sm { max-width: 200px; }
.vm-set-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.vm-set-grid-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.vm-set-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-end; }
.vm-set-row > .vm-field:not(.vm-field-narrow) { flex: 1; min-width: 220px; }
.vm-seg > label:has(input:checked) { background: var(--vm-surface); color: var(--vm-text); box-shadow: var(--vm-sh-sm); }
.vm-sb-link .vm-cnt-warn { background: var(--vm-warning-soft); color: var(--vm-warning); }
.vm-sb-link.is-active .vm-cnt-warn { background: var(--vm-warning-soft); color: var(--vm-warning); }
/* Logo */
.vm-logo-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.vm-logo-box {
    width: 160px; height: 96px; flex: none; display: grid; place-items: center; padding: 10px;
    border: 1px dashed var(--vm-border-strong); border-radius: var(--vm-r-lg); background: var(--vm-surface-2);
}
.vm-logo-box { overflow: hidden; }
.vm-logo-box img { display: block; width: auto; height: auto; max-width: 140px; max-height: 76px; object-fit: contain; }
.vm-logo-box .vm-logo-empty { width: 28px; height: 28px; color: var(--vm-text-3); }
.vm-logo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: 1; min-width: 220px; }
.vm-logo-actions .vm-hint { flex-basis: 100%; }
.vm-set-form .vm-save-bar { position: sticky; bottom: 16px; margin: 0; }
.vm-set-form .tox-tinymce { border-radius: var(--vm-r); border-color: var(--vm-border); }
@media (max-width: 640px) {
    .vm-set-grid, .vm-set-grid-2-1 { grid-template-columns: minmax(0, 1fr); }
    .vm-field-narrow, .vm-ig-sm { width: 100%; max-width: none; }
}
.vm-field > .vm-seg { align-self: flex-start; }
/* Payout account: Czech account vs. IBAN (EU) */
.vm-acc-cz, .vm-acc-eur { gap: 12px; }
.vm-acc-eur { padding-top: 16px; border-top: 1px solid var(--vm-border); }
.vm-acc-h { font-size: 14px; font-weight: 600; color: var(--vm-text); }
.vm-acc-switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0; cursor: pointer; }
[data-vm-currency-panel][hidden] { display: none; }
.vm-acc-cz[hidden] + .vm-acc-eur { padding-top: 0; border-top: 0; }
.vm-acc-cz [readonly] { background: var(--vm-surface-2); color: var(--vm-text-2); }

/* ==========================================================================
   Profile (design: Profile.dc.html)
   ========================================================================== */
.vm-prof { display: flex; flex-direction: column; gap: 16px; }
.vm-prof-head { display: flex; align-items: center; gap: 16px; }
.vm-prof-head-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vm-avatar-lg { width: 56px; height: 56px; font-size: 18px; flex: none; }
.vm-prof .vm-page-tabs { margin-bottom: 0; }
.vm-prof-card { max-width: none; }
.vm-prof-narrow { max-width: 420px; }
.vm-prof-narrow-2 { max-width: 860px; }
.vm-prof-free { border: 0; padding: 0; align-self: end; }
.vm-prof-current { display: flex; flex-direction: row; align-items: center; gap: 20px; padding: 20px; flex-wrap: wrap; }
.vm-prof-current-t { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 240px; }
.vm-display { font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--vm-text); }
.vm-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.vm-plan-card { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.vm-plan-card.is-featured { border: 2px solid var(--vm-primary); box-shadow: var(--vm-sh-md); }
.vm-plan-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.vm-plan-price [hidden], .vm-plan-card [hidden] { display: none !important; }
.vm-plan-feat { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--vm-text-2); }
.vm-plan-feat li { display: flex; align-items: flex-start; gap: 8px; }
.vm-plan-feat svg { width: 16px; height: 16px; color: var(--vm-success); flex: none; margin-top: 1px; }
.vm-plan-feat .vm-plan-feat-h { font-weight: 600; color: var(--vm-text); }
.vm-plan-period, .vm-plan-method { align-self: flex-start; }
.vm-seg > label.is-disabled { opacity: .45; cursor: not-allowed; }
.vm-seg > label.is-soon { cursor: not-allowed; gap: 6px; color: var(--vm-text-3, var(--vm-text-2)); }
.vm-seg > label.is-soon .vm-badge { height: 18px; padding: 0 7px; font-size: 11px; }
.vm-prof-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 40px 20px; text-align: center; }
.vm-prof-empty svg { width: 28px; height: 28px; color: var(--vm-text-3); }
.vm-prof-usage { width: 280px; max-width: 100%; display: flex; flex-direction: column; gap: 6px; }
.vm-prog { height: 6px; border-radius: 999px; background: var(--vm-sunken); overflow: hidden; }
.vm-prog > span { display: block; height: 100%; border-radius: inherit; background: var(--vm-primary); }
.vm-pay { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; }
.vm-pay-qr { width: 168px; height: 168px; flex: none; border: 1px solid var(--vm-border); border-radius: 12px; background: #fff; display: grid; place-items: center; padding: 8px; }
.vm-pay-qr img { width: 100%; height: 100%; object-fit: contain; }
.vm-pay-dl { flex: 1; min-width: 280px; grid-template-columns: 150px minmax(0, 1fr); }
.vm-pay-dl dd { display: flex; align-items: center; gap: 4px; }
.vm-pay-note { flex-basis: 100%; }
/* Passkeys */
.vm-pk-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.vm-pk-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--vm-border); }
.vm-pk-list li:first-child { border-top: 0; padding-top: 0; }
.vm-pk-list .vm-opt-t { flex: 1; min-width: 0; }
.vm-pk-ic { width: 32px; height: 32px; border-radius: 8px; background: var(--vm-primary-soft); color: var(--vm-primary-text); display: grid; place-items: center; flex: none; }
.vm-pk-ic svg { width: 16px; height: 16px; }
.vm-pk-add { display: flex; gap: 8px; max-width: 520px; }
.vm-pk-add .form-control { flex: 1; }
@media (max-width: 640px) { .vm-pk-add { flex-direction: column; } }
.vm-auth-or { display: flex; align-items: center; gap: 12px; color: var(--vm-text-3); font-size: 12px; }
.vm-auth-or::before, .vm-auth-or::after { content: ""; flex: 1; height: 1px; background: var(--vm-border); }
.vm-auth-or[hidden], [data-vm-pk-login][hidden] { display: none !important; }
/* Inline validation (vm-forms.js) */
.vm-seg:has(input.is-invalid) { box-shadow: 0 0 0 1px var(--vm-danger); }
.vm-opt:has(input.is-invalid) { border-color: var(--vm-danger); }
.vm-invalid { margin-top: 4px; font-size: 12px; }
/* Live new-order toast (vm-live.js) */
.vm-live-toast {
    position: fixed; right: 20px; bottom: 20px; z-index: 1090; display: flex; align-items: center; gap: 12px;
    max-width: calc(100vw - 40px); padding: 12px 12px 12px 16px; border-radius: var(--vm-r-lg);
    background: var(--vm-surface); border: 1px solid var(--vm-border); box-shadow: var(--vm-sh-lg);
    animation: vm-toast-in .25s ease-out;
}
.vm-live-toast > div { display: flex; flex-direction: column; font-size: 13px; min-width: 0; }
.vm-live-toast > div span { color: var(--vm-text-3); }
@keyframes vm-toast-in { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ==========================================================================
   Voucher editor focus mode (design: Voucher-editor) — sidebar becomes a 60px icon rail,
   topbar / page head / footer hidden, the editor fills the window. Only on the editor page.
   ========================================================================== */
@media (min-width: 992px) {
    body:has(#voucherEditor) { --vm-sb-w: 60px; }
    /* narrow rail: no reserved scrollbar gutter and never a horizontal scrollbar (the gutter made the 40px links 6px too wide) */
    body:has(#voucherEditor) .vm-sb-inner { padding-left: 10px; padding-right: 10px; align-items: center; overflow-x: hidden; scrollbar-gutter: auto; }
    body:has(#voucherEditor) .vm-sb .dropdown,
    body:has(#voucherEditor) .vm-nav-sec,
    body:has(#voucherEditor) .vm-plan,
    body:has(#voucherEditor) .vm-topbar,
    body:has(#voucherEditor) .vm-phead,
    body:has(#voucherEditor) .vm-page-alerts,
    body:has(#voucherEditor) .vm-foot { display: none !important; }
    body:has(#voucherEditor) .vm-sb-link { position: relative; width: 40px; height: 40px; padding: 0; justify-content: center; font-size: 0; gap: 0; }
    body:has(#voucherEditor) .vm-sb-link svg { width: 18px; height: 18px; margin: 0; }
    body:has(#voucherEditor) .vm-sb-link .vm-cnt { position: absolute; top: 0; right: -4px; font-size: 10px; line-height: 16px; padding: 0 5px; }
    body:has(#voucherEditor) .vm-sb-foot { border-top: 0; }
    body:has(#voucherEditor) .vm-sb-logo { padding: 4px 0 12px; justify-content: center; }
    body:has(#voucherEditor) .vm-sb-logo .vm-logo-light,
    body:has(#voucherEditor) .vm-sb-logo .vm-logo-dark,
    body:has(#voucherEditor) .vm-sb-logo .vm-tag { display: none !important; }
    body:has(#voucherEditor) .vm-sb-logo .vm-logo-mark-light { display: block; width: 28px; height: 28px; }
    [data-bs-theme="dark"] body:has(#voucherEditor) .vm-sb-logo .vm-logo-mark-light { display: none; }
    [data-bs-theme="dark"] body:has(#voucherEditor) .vm-sb-logo .vm-logo-mark-dark { display: block; width: 28px; height: 28px; }
    body:has(#voucherEditor) .vm-page { padding: 0; gap: 0; }
    body:has(#voucherEditor) #voucherEditor { --vm-ved-offset: 0px; }
    body:has(#voucherEditor):has(.vm-imp-bar) #voucherEditor { --vm-ved-offset: 41px; }
    /* collapsed rail: just the version number (full text in the tooltip), the unread dot in its corner */
    body:has(#voucherEditor) .vm-sb-version { position: relative; width: 40px; padding: 0; justify-content: center; font-size: 10px; gap: 0; }
    body:has(#voucherEditor) .vm-sb-version > span:not(.vm-mono):not(.vm-sb-version-dot) { display: none; }
    body:has(#voucherEditor) .vm-sb-version-dot { position: absolute; top: 0; right: 0; }
}
/* Logo mark only in the narrow editor rail */
.vm-sb-logo .vm-logo-mark { display: none; }

/* ---------- Superadmin: article editor (design Sa-blog) ---------- */
.vm-art { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.vm-art-main { flex: 999 1 560px; min-width: 0; overflow: hidden; }
.vm-art-body { display: flex; flex-direction: column; gap: 12px; padding: 32px 40px 40px; }
.vm-art-head { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 8px; }
.vm-art-title { border: 0; outline: 0; background: transparent; color: var(--vm-text); font: inherit; font-size: 34px; line-height: 42px; font-weight: 600; letter-spacing: -0.01em; width: 100%; padding: 0; }
.vm-art-title::placeholder { color: var(--vm-text-3); }
.vm-art-langs { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.vm-art-title.is-invalid { box-shadow: inset 0 -2px 0 var(--vm-danger); }
.vm-art-body .tox-tinymce { border: 0 !important; border-radius: 0 !important; }
.vm-art-body .tox .tox-editor-header { border-bottom: 1px solid var(--vm-border) !important; box-shadow: none !important; padding: 0 !important; }
.vm-art-body .tox .tox-toolbar__primary { background: transparent !important; justify-content: center; }
.vm-art-side { display: flex; flex-direction: column; gap: 16px; flex: 1 1 300px; max-width: 360px; position: sticky; top: 80px; }
.vm-art-card { display: flex; flex-direction: column; gap: 14px; }
.vm-art-card .h3 { margin: 0; }
.vm-art-fb { display: inline-flex; gap: 12px; }
.vm-art-fb > span { display: inline-flex; align-items: center; gap: 4px; }
.vm-art-fb svg { width: 14px; height: 14px; }
.vm-art-fb-yes { color: var(--vm-success); }
.vm-art-fb-no { color: var(--vm-danger); }
.vm-art-comment { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 10px; background: var(--vm-surface-2); border: 1px solid var(--vm-border); font-size: 14px; white-space: pre-line; }
.vm-art-comment .small { white-space: normal; }
@media (max-width: 991.98px) {
    .vm-art-body { padding: 20px 16px 24px; }
    .vm-art-title { font-size: 26px; line-height: 34px; }
    .vm-art-side { max-width: none; position: static; }
}

/* ---------- Help centre (design Help, Help-article, Help-panel) ---------- */
.vm-xs { font-size: 12px; line-height: 16px; }
.vm-help { display: flex; flex-direction: column; gap: 16px; }
.vm-help-display { font-size: 34px; line-height: 42px; font-weight: 600; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
.vm-help-hero { padding: 40px 40px 32px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.vm-help-search { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; max-width: 620px; height: 52px; padding: 0 16px; border-radius: 14px; background: var(--vm-surface); border: 1px solid var(--vm-border-strong); box-shadow: var(--vm-sh-sm); color: var(--vm-text-3); text-align: left; }
.vm-help-search:focus-within { border-color: var(--vm-primary); box-shadow: 0 0 0 3px var(--vm-primary-soft); }
.vm-help-search > svg { width: 20px; height: 20px; flex: none; }
.vm-help-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--vm-text); font-size: 16px; }
.vm-help-search input::-webkit-search-cancel-button { display: none; }
.vm-help-search-sm { height: 40px; border-radius: 10px; padding: 0 12px; gap: 8px; max-width: none; box-shadow: none; }
.vm-help-search-sm > svg { width: 16px; height: 16px; }
.vm-help-search-sm input { font-size: 14px; }
.vm-help-results { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0; max-height: 360px; overflow: auto; padding: 6px; border-radius: 12px; background: var(--vm-surface); border: 1px solid var(--vm-border); box-shadow: var(--vm-sh-lg); }
.vm-help-hit { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 8px; color: var(--vm-text); text-decoration: none; }
.vm-help-hit b { font-weight: 500; font-size: 14px; }
.vm-help-hit span { font-size: 12px; color: var(--vm-text-3); }
.vm-help-hit:hover, .vm-help-hit.is-active { background: var(--vm-sunken); color: var(--vm-text); }
.vm-help-hit-empty { padding: 10px; font-size: 13px; color: var(--vm-text-3); }
.vm-help-chips { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.vm-chip { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--vm-border-strong); background: var(--vm-surface); color: var(--vm-text-2); font-size: 13px; text-decoration: none; }
.vm-chip:hover { border-color: var(--vm-primary); color: var(--vm-primary-text); }

.vm-help-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.vm-help-cat { display: flex; flex-direction: row; gap: 14px; padding: 20px; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
a.vm-help-cat:hover { border-color: var(--vm-primary); box-shadow: var(--vm-sh-sm); color: inherit; }
.vm-help-cat.is-empty { opacity: .6; }
.vm-help-cat-t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.vm-help-cat-t b { font-size: 16px; font-weight: 600; color: var(--vm-text); }
.vm-help-ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--vm-primary-soft); color: var(--vm-primary-text); }
.vm-help-ic svg { width: 20px; height: 20px; }
.vm-help-ic-accent { border-radius: 999px; background: var(--vm-accent-soft); color: var(--vm-accent-text); }

.vm-help-main { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.vm-help-list { overflow: hidden; }
.vm-help-row { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--vm-border); color: inherit; text-decoration: none; }
.vm-help-row:last-child { border-bottom: 0; }
.vm-help-row:hover { background: var(--vm-sunken); color: inherit; }
.vm-help-row > svg { width: 18px; height: 18px; flex: none; }
.vm-help-row-t { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.vm-help-row-t b { font-weight: 500; color: var(--vm-text); }
.vm-help-side { display: flex; flex-direction: column; gap: 16px; }
.vm-help-support, .vm-help-setup { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.vm-help-support .btn { align-self: stretch; justify-content: center; }
.vm-help-setup { align-items: stretch; gap: 10px; }
.vm-help-setup .h3, .vm-help-support .h3 { margin: 0; }
.vm-help-setup .progress { height: 8px; }
.vm-help-next { display: inline-flex; align-items: center; gap: 8px; }
.vm-help-next svg { width: 14px; height: 14px; }

/* article */
.vm-help-article { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.vm-help-art { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.vm-help-meta { display: flex; gap: 12px; margin-top: -6px; }
.vm-help-prose { font-size: 15px; line-height: 24px; color: var(--vm-text); }
.vm-help-prose > :first-child { margin-top: 0; }
.vm-help-prose [data-f-id="pbf"] { display: none !important; }
.vm-help-prose h2 { font-size: 22px; line-height: 30px; font-weight: 600; margin: 28px 0 10px; scroll-margin-top: 90px; }
.vm-help-prose h3 { font-size: 17px; line-height: 24px; font-weight: 600; margin: 22px 0 8px; }
.vm-help-prose p, .vm-help-prose ul, .vm-help-prose ol { margin: 0 0 14px; }
.vm-help-prose li { margin-bottom: 6px; }
.vm-help-prose img { max-width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--vm-border); margin: 6px 0; }
.vm-help-prose a { color: var(--vm-primary-text); }
.vm-help-prose code { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 13px; padding: 1px 6px; border-radius: 6px; background: var(--vm-sunken); }
.vm-help-prose blockquote { margin: 0 0 14px; padding: 12px 16px; border-radius: 10px; background: var(--vm-primary-soft); color: var(--vm-text); }
.vm-help-prose table { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.vm-help-prose th, .vm-help-prose td { border: 1px solid var(--vm-border); padding: 6px 10px; }
.vm-help-feedback { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 16px; }
.vm-help-feedback-q { flex: 1; min-width: 200px; }
.vm-help-feedback.is-asking { flex-direction: column; align-items: stretch; }
.vm-help-feedback-form { display: flex; flex-direction: column; gap: 8px; }
.vm-help-feedback-form[hidden] { display: none; }
.vm-help-feedback-form .form-label { margin: 0; font-size: 13px; color: var(--vm-text-2); }
.vm-help-feedback-actions { display: flex; gap: 8px; }
.vm-help-aside { flex: 1 1 240px; max-width: 280px; display: flex; flex-direction: column; gap: 20px; position: sticky; top: 84px; }
.vm-help-toc { display: flex; flex-direction: column; gap: 2px; }
.vm-help-toc[hidden] { display: none; }
.vm-help-toc .vm-eyebrow { padding: 0 10px 6px; }
.vm-help-toc-a { display: flex; align-items: center; min-height: 32px; padding: 4px 10px; border-radius: 8px; font-size: 13px; color: var(--vm-text-2); text-decoration: none; }
.vm-help-toc-a:hover { background: var(--vm-sunken); color: var(--vm-text); }
.vm-help-toc-a.is-active { background: var(--vm-primary-soft); color: var(--vm-primary-text); font-weight: 500; }
.vm-help-related { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 1px solid var(--vm-border); }
.vm-help-aside > .btn { justify-content: center; }

/* contextual panel */
.vm-help-panel.offcanvas { width: 420px; max-width: 100vw; background: var(--vm-surface); border-left: 1px solid var(--vm-border); box-shadow: var(--vm-sh-lg); color: var(--vm-text); }
.vm-help-panel-h { display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 12px 0 20px; border-bottom: 1px solid var(--vm-border); flex: none; }
.vm-help-panel-h b { flex: 1; }
.vm-help-panel-ic { width: 20px; height: 20px; color: var(--vm-primary); }
.vm-help-panel-b { flex: 1; overflow: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 20px; }
.vm-help-panel-sec { display: flex; flex-direction: column; gap: 8px; }
.vm-help-panel-sec[hidden] { display: none; }
.vm-help-panel-list { display: flex; flex-direction: column; gap: 8px; }
.vm-help-opt { display: flex; flex-direction: column; gap: 0; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--vm-border); color: inherit; text-decoration: none; }
.vm-help-opt b { font-size: 13px; font-weight: 600; }
.vm-help-opt span { font-size: 12px; color: var(--vm-text-3); }
.vm-help-opt:hover { border-color: var(--vm-primary); color: inherit; }
.vm-help-kbd { display: flex; align-items: center; font-size: 13px; }
.vm-help-kbd .vm-t2 { flex: 1; }
.vm-help-panel-f { padding: 16px 20px; border-top: 1px solid var(--vm-border); display: flex; flex-direction: column; gap: 10px; background: var(--vm-surface-2); flex: none; }
.vm-help-panel-f .btn { justify-content: center; }

@media (max-width: 991.98px) {
    .vm-help-hero { padding: 28px 16px 24px; }
    .vm-help-display { font-size: 26px; line-height: 34px; }
    .vm-help-main { grid-template-columns: minmax(0, 1fr); }
    .vm-help-article { gap: 24px; }
    .vm-help-aside { max-width: none; position: static; }
}

/* ---------- What's new (design Changelog, Sa-changelog) ---------- */
.vm-mono { font-family: 'Geist Mono', ui-monospace, monospace; }
.vm-chip { cursor: pointer; gap: 6px; }
.vm-chip.is-on { background: var(--vm-primary-soft); border-color: var(--vm-primary); color: var(--vm-primary-text); }
.vm-cl { display: flex; flex-direction: column; }
.vm-cl-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.vm-cl-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.vm-cl-dot-new { background: var(--vm-primary); }
.vm-cl-dot-improved { background: var(--vm-accent-text); }
.vm-cl-dot-fixed { background: var(--vm-text-3); }
.vm-cl-release { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 32px; padding: 32px 0; border-bottom: 1px solid var(--vm-border); }
.vm-cl-release:first-of-type { padding-top: 0; }
.vm-cl-release[hidden] { display: none; }
.vm-cl-meta { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 84px; align-self: start; }
.vm-cl-version { display: inline-flex; align-items: center; gap: 8px; font-family: 'Geist Mono', ui-monospace, monospace; font-weight: 600; font-size: 15px; }
.vm-cl-version .vm-tag { font-family: inherit; height: 20px; font-size: 11px; }
.vm-cl-body { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.vm-cl-title-lg { font-size: 28px; line-height: 36px; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.vm-cl-title { font-size: 20px; line-height: 28px; font-weight: 600; margin: 0; }
.vm-cl-image { width: 100%; max-height: 420px; object-fit: cover; border-radius: 12px; border: 1px solid var(--vm-border); }
.vm-cl-intro { margin: 0; font-size: 15px; line-height: 24px; color: var(--vm-text-2); }
.vm-cl-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 22px; }
.vm-cl-items li { display: flex; align-items: flex-start; gap: 12px; }
.vm-cl-items li[hidden] { display: none; }
.vm-cl-type { flex: none; width: 92px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; font-size: 12px; font-weight: 500; }
.vm-cl-type-new { background: var(--vm-primary-soft); color: var(--vm-primary-text); }
.vm-cl-type-improved { background: var(--vm-accent-soft); color: var(--vm-accent-text); }
.vm-cl-type-fixed { background: var(--vm-sunken); color: var(--vm-text-2); }
.vm-cl-empty { display: flex; flex-direction: row; align-items: center; gap: 12px; }
.vm-cl-more { align-self: center; margin-top: 24px; }

/* sidebar: "v3.0.0 · What's new" under Help */
.vm-sb-version { display: flex; align-items: center; gap: 6px; padding: 0 10px 2px 38px; font-size: 11px; line-height: 16px; color: var(--vm-text-3); text-decoration: none; }
.vm-sb-version:hover, .vm-sb-version.is-active { color: var(--vm-primary-text); }
.vm-sb-version.is-active { font-weight: 600; }
.vm-sb-version-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--vm-warm); flex: none; }

/* superadmin editor */
.vm-clm { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 16px; align-items: start; }
.vm-clm-list { overflow: hidden; }
.vm-clm-bar { padding: 10px 12px; border-bottom: 1px solid var(--vm-border); }
.vm-clm-item { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-bottom: 1px solid var(--vm-border); color: inherit; text-decoration: none; }
.vm-clm-item:last-child { border-bottom: 0; }
.vm-clm-item:hover { background: var(--vm-sunken); color: inherit; }
.vm-clm-item.is-active { background: var(--vm-primary-soft); }
.vm-clm-item-h { display: flex; align-items: center; gap: 8px; }
.vm-clm-badge { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 500; }
.vm-clm-badge svg { width: 12px; height: 12px; }
.vm-clm-badge.is-published { background: var(--vm-success-soft, var(--vm-primary-soft)); color: var(--vm-success); }
.vm-clm-badge.is-draft { background: var(--vm-warm-soft); color: var(--vm-warm-text); }
.vm-clm-form { display: flex; flex-direction: column; }
.vm-clm-fields { display: flex; flex-direction: column; gap: 16px; }
.vm-clm-lang { display: flex; flex-direction: column; gap: 16px; }
.vm-clm-lang[hidden] { display: none; }
.vm-clm-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.vm-clm-items { display: flex; flex-direction: column; gap: 8px; }
.vm-clm-item-row { display: flex; align-items: center; gap: 8px; }
.vm-clm-item-row.is-dragging { opacity: .5; }
.vm-clm-grip { color: var(--vm-text-3); cursor: grab; display: inline-flex; }
.vm-clm-grip svg { width: 16px; height: 16px; }
.vm-clm-type { width: 150px; flex: none; }
.vm-clm-img { width: 100%; max-height: 160px; object-fit: cover; border-radius: 10px; border: 1px solid var(--vm-border); }
.vm-clm-drop { height: 96px; border: 1.5px dashed var(--vm-border-strong); border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--vm-text-3); font-size: 13px; cursor: pointer; margin: 0; }
.vm-clm-drop:hover { border-color: var(--vm-primary); color: var(--vm-primary-text); }
.vm-clm-drop svg { width: 16px; height: 16px; }
.vm-clm-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border: 1px solid var(--vm-border); border-radius: 10px; font-size: 13px; margin: 0; cursor: pointer; }
.vm-clm-toggle.form-switch { padding-left: 12px; }
.vm-clm-toggle .form-check-input { margin: 0; float: none; flex: none; }
.vm-clm-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--vm-border); background: var(--vm-surface-2); border-radius: 0 0 var(--vm-r-lg, 12px) var(--vm-r-lg, 12px); }
@media (max-width: 991.98px) {
    .vm-cl-release { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .vm-cl-meta { position: static; flex-direction: row; align-items: center; gap: 12px; }
    .vm-clm, .vm-clm-row { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Getting-started guide (vm-guide.js): outlined spot + tip ---- */
.vm-guide-spot { position: relative; z-index: 2; border-radius: var(--vm-r-lg); box-shadow: 0 0 0 2px var(--vm-primary), 0 0 0 7px rgba(var(--vm-primary-rgb), .18); animation: vm-guide-pulse 1.6s ease-out 3; }
.btn.vm-guide-spot { border-radius: var(--vm-r); }
@keyframes vm-guide-pulse {
    0% { box-shadow: 0 0 0 2px var(--vm-primary), 0 0 0 7px rgba(var(--vm-primary-rgb), .18); }
    50% { box-shadow: 0 0 0 2px var(--vm-primary), 0 0 0 13px rgba(var(--vm-primary-rgb), .06); }
    100% { box-shadow: 0 0 0 2px var(--vm-primary), 0 0 0 7px rgba(var(--vm-primary-rgb), .18); }
}
.vm-guide-tip { position: fixed; z-index: 1075; width: min(320px, calc(100vw - 32px)); padding: 14px 16px 12px; background: var(--vm-surface); color: var(--vm-text); border: 1px solid var(--vm-border); border-top: 3px solid var(--vm-primary); border-radius: var(--vm-r-lg); box-shadow: var(--vm-sh-lg); font-family: var(--vm-font); opacity: 0; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease; }
.vm-guide-tip.is-above { transform: translateY(-6px); }
.vm-guide-tip.is-in { opacity: 1; transform: none; }
.vm-guide-arrow { position: absolute; top: -9px; left: var(--vm-guide-arrow-x, 24px); width: 12px; height: 12px; margin-left: -6px; background: var(--vm-primary); transform: rotate(45deg); border-radius: 2px; }
.vm-guide-tip.is-right { transform: translateX(-6px); }
.vm-guide-tip.is-right.is-in { transform: none; }
.vm-guide-tip.is-right .vm-guide-arrow { top: var(--vm-guide-arrow-y, 24px); left: -7px; margin: -6px 0 0; background: var(--vm-surface); border-left: 1px solid var(--vm-border); border-bottom: 1px solid var(--vm-border); }
.vm-guide-tip.is-above .vm-guide-arrow { top: auto; bottom: -7px; background: var(--vm-surface); border-right: 1px solid var(--vm-border); border-bottom: 1px solid var(--vm-border); }
.vm-guide-kicker { display: block; font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--vm-primary-text); }
.vm-guide-title { display: block; margin-top: 2px; font-size: 15px; line-height: 22px; font-weight: 600; }
.vm-guide-text { margin: 4px 0 0; font-size: 13px; line-height: 20px; color: var(--vm-text-2); }
.vm-guide-foot { display: flex; justify-content: flex-end; margin-top: 10px; }
@media (prefers-reduced-motion: reduce) {
    .vm-guide-spot { animation: none; }
    .vm-guide-tip { transition: none; transform: none; }
}

/* Basic plan marker on "Add service" (Form › Services): quiet pill in the button's own colour */
.vm-add-svc { display: inline-flex; }
.vm-plan-pill { display: inline-flex; align-items: center; gap: 3px; margin-left: 4px; padding: 1px 7px 1px 6px; border-radius: var(--vm-r-pill); background: rgba(255, 255, 255, .16); font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: .02em; }
.vm-plan-pill svg { width: 11px; height: 11px; stroke-width: 2.25; }
.btn .vm-plan-plus { margin-left: 2px; font-size: 11px; line-height: 16px; padding: 0 7px; }

/* ==========================================================================
   18. Palette "ledová" (2026-10): component shapes from the design canvas
       (project/admin/*.dc.html, data-palette="ledova") mapped to the admin classes.
       Pill buttons and navigation, gradient primary, softer cards, uppercase table heads.
   ========================================================================== */
.vm-page-title h1, .vm-phead .vm-page-title h1, h1.h1, .h1 { font-size: 26px; line-height: 34px; letter-spacing: -.015em; text-wrap: balance; }
.h2, .h3, .card h2, .card h3 { letter-spacing: -.015em; }
.card { border-radius: var(--vm-r-lg); box-shadow: var(--vm-sh-card); }
.card > .card-footer:last-child { border-radius: 0 0 var(--vm-r-lg) var(--vm-r-lg); }
a.card:hover { background: var(--vm-sunken); }
.vm-kpi-v { font-size: 30px; line-height: 36px; letter-spacing: -.03em; }

/* shell */
.vm-sb { border-right-color: var(--vm-border-strong); }
.vm-proj { background: var(--vm-surface); border-radius: 14px; box-shadow: var(--vm-sh-sm); }
.vm-proj-av { background: var(--vm-ink); border-radius: 10px; }
[data-bs-theme="dark"] .vm-proj-av { background: #2A62D0; color: #fff; }
.vm-sb-link { min-height: 38px; padding-inline: 14px; border-radius: 999px; font-size: 13.5px; }
.vm-sb-link:hover { background: var(--vm-sunken); }
.vm-sb-link.is-active { background: var(--vm-grad-ui); color: #fff !important; box-shadow: var(--vm-sh-brand); }
.vm-sb-link.is-active .vm-i, .vm-sb-link.is-active svg { color: #fff; }
.vm-sb-link .vm-cnt { background: var(--vm-info-soft); color: var(--vm-info); }
.vm-sb-link.is-active .vm-cnt { background: rgba(255, 255, 255, .22); color: #fff; }
.vm-sb-foot { border-top-color: var(--vm-border); }
.vm-plan { background: var(--vm-grad-tint); border-radius: 14px; }
.vm-topbar { background: rgba(242, 250, 255, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
[data-bs-theme="dark"] .vm-topbar { background: rgba(6, 17, 31, .82); }
.vm-search { border-radius: 999px; background: var(--vm-surface); }
.vm-avatar { background: var(--vm-info-soft); color: var(--vm-info); }

/* buttons: pills, gradient primary, the leading icon in a disc */
.btn { --bs-btn-border-radius: 999px; --bs-btn-font-weight: 600; transition: transform .15s, filter .15s, background-color .15s; }
.btn-primary { --bs-btn-bg: transparent; background-image: var(--vm-grad-ui); background-color: var(--vm-p-600); border-color: transparent; color: #fff !important; box-shadow: var(--vm-sh-brand); }
.btn-primary:hover, .btn-primary:focus-visible { background-image: var(--vm-grad-ui); filter: brightness(1.05); border-color: transparent; }
.btn-primary:active, .btn-primary.active { background-image: var(--vm-grad-ui); filter: brightness(.96); transform: none; }
.btn-primary:disabled, .btn-primary.disabled { filter: saturate(.6); box-shadow: none; transform: none; }
.btn-secondary { background-color: var(--vm-surface); border-color: var(--vm-border); box-shadow: none; }
.btn-secondary:hover, .btn-ghost:hover { background-color: var(--vm-sunken); }
.btn-primary:not(.btn-icon):has(> svg:first-child:not(:last-child)),
.btn-secondary:not(.btn-icon):has(> svg:first-child:not(:last-child)) { padding-left: 6px; padding-right: 18px; gap: 8px; }
.btn-primary:not(.btn-icon) > svg:first-child:not(:last-child),
.btn-secondary:not(.btn-icon) > svg:first-child:not(:last-child) { width: 26px; height: 26px; padding: 6px; border-radius: 999px; stroke-width: 2.2; flex: none; }
.btn-primary:not(.btn-icon) > svg:first-child:not(:last-child) { background: #fff; color: #3A78F2; }
.btn-secondary:not(.btn-icon) > svg:first-child:not(:last-child) { background: var(--vm-ink); color: var(--vm-surface); }
.btn-sm:not(.btn-icon) > svg:first-child:not(:last-child) { width: 24px; height: 24px; padding: 5px; }
.btn-lg:not(.btn-icon) > svg:first-child:not(:last-child) { width: 32px; height: 32px; padding: 7px; }
.btn:focus-visible { box-shadow: none; outline: 3px solid #7CC8F5; outline-offset: 2px; }

/* form controls */
.form-control, .form-select, .input-group { border-radius: 10px; }
.vm-opt { border-radius: 14px; }
.vm-opt:has(input:checked) { border-color: #3A78F2; box-shadow: 0 0 0 1px #3A78F2; background: #EAF2FF; }
[data-bs-theme="dark"] .vm-opt:has(input:checked) { background: var(--vm-primary-soft); }
.form-check-input:checked { background-color: #3A78F2; border-color: #3A78F2; }
.vm-seg { background: var(--vm-surface); border: 1px solid var(--vm-border); border-radius: 999px; }
.vm-seg > * { border-radius: 999px; height: 30px; padding: 0 14px; }
.vm-seg > .on, .vm-seg > .active, .vm-seg > label:has(input:checked) { background: var(--vm-ink); color: var(--vm-surface); box-shadow: none; }
.vm-chip { border-style: solid; border-color: var(--vm-border-strong); }

/* tags, tables, paging, overlays */
.vm-tag { border-radius: 999px; font-weight: 600; }
/* long text (category names in grids) wraps inside the pill instead of spilling out of the fixed height */
.vm-tag-wrap { height: auto; min-height: 22px; padding-block: 3px; line-height: 1.3; white-space: normal; border-radius: 10px; }
.badge { border-color: transparent; }
.vm-datagrid .table > thead > tr > th, .table > thead > tr > th { text-transform: uppercase; letter-spacing: .06em; font-size: 11.5px; font-weight: 600; color: var(--vm-text-3); background: var(--vm-surface); }
.vm-datagrid .table > tbody > tr:hover > td, .table-hover > tbody > tr:hover > * { background: var(--vm-sunken); }
.page-link { border-radius: 999px !important; }
.page-item.active .page-link { background: var(--vm-ink); border-color: var(--vm-ink); color: var(--vm-surface); }
.alert, .vm-live-toast { border-radius: 14px; }
.vm-modal-content, .modal-content { border-radius: 20px; }
.dropdown-menu { border-radius: 14px; box-shadow: var(--vm-sh-md); }
.dropdown-item { border-radius: 10px; }

/* sidebar brand: mark + wordmark (owner-dashboard original); the voucher editor's collapsed sidebar keeps only the mark */
.vm-sb-logo > a { display: flex; align-items: center; gap: 8px; text-decoration: none; min-width: 0; }
.vm-sb-logo .vm-logo-mark-light { display: block; width: 34px; height: 34px; }
[data-bs-theme="dark"] .vm-sb-logo .vm-logo-mark-light { display: none; }
[data-bs-theme="dark"] .vm-sb-logo .vm-logo-mark-dark { display: block; width: 34px; height: 34px; }
.vm-sb-logo img.vm-logo-word { height: 17px; }
.vm-proj { background: var(--vm-bg); border: 1px solid var(--vm-border); border-radius: 12px; box-shadow: none; }

/* primary / secondary buttons: the leading icon in a disc also when it is the only element (text is a text node) */
.btn-primary:not(.btn-icon):has(> svg:first-child),
.btn-secondary:not(.btn-icon):not(.vm-qa > *):has(> svg:first-child) { padding-left: 6px; padding-right: 18px; gap: 8px; }
.btn-primary:not(.btn-icon) > svg:first-child,
.btn-secondary:not(.btn-icon):not(.vm-qa > *) > svg:first-child { width: 26px; height: 26px; padding: 6px; border-radius: 999px; stroke-width: 2.2; flex: none; }
.btn-primary:not(.btn-icon) > svg:first-child { background: #fff; color: #3A78F2; }
.btn-secondary:not(.btn-icon):not(.vm-qa > *) > svg:first-child { background: var(--vm-ink); color: var(--vm-surface); }
.btn-sm:not(.btn-icon) > svg:first-child { width: 24px; height: 24px; padding: 5px; }
/* quick actions: rounded rectangles with a plain icon, as in the original */
.vm-qa > .btn { border-radius: 12px; font-weight: 500; min-height: 44px; justify-content: flex-start; }
/* the sidebar is white as in the design (Bootstrap's .offcanvas-lg makes it transparent from lg up) */
.vm-sb, .vm-sb.offcanvas-lg { background-color: var(--vm-surface) !important; }
/* superadmin badge next to the wider brand block */
.vm-sb-logo .vm-tag { height: 18px; padding: 0 6px; font-size: 10px; flex: none; }


/* Settings: "Platby" groups transfer, card and bank pairing under one heading (one item in the section menu) */
.vm-set-group { display: flex; flex-direction: column; gap: 16px; scroll-margin-top: calc(var(--vm-topbar-h) + var(--vm-imp-h, 0px) + 16px); }
.vm-set-group-h { display: flex; flex-direction: column; gap: 4px; padding: 12px 4px 0; }
.vm-set-group-h .h2 { font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -.015em; }

/* sidebar brand + superadmin "Admin" badge: the badge used to overlap the wordmark (248px sidebar) */
.vm-sb-logo { gap: 8px; }
.vm-sb-logo img.vm-logo-word { flex: none; }
.vm-sb-logo:has(> .vm-tag) img.vm-logo-word { height: 15px; } /* superadmin: a little smaller wordmark leaves room for the badge */
.vm-sb-logo:has(> .vm-tag) > a { gap: 7px; }
.vm-sb-logo .vm-logo-mark-light,
[data-bs-theme="dark"] .vm-sb-logo .vm-logo-mark-dark { width: 30px; height: 30px; flex: none; }
.vm-sb-logo > .vm-tag { flex: none; font-size: 10px; line-height: 14px; padding: 2px 7px; letter-spacing: .02em; }

/* sidebar scroll: thin and quiet, visible only while hovering the menu */
.vm-sb .offcanvas-body,
.vm-sb-inner { scrollbar-width: thin; scrollbar-color: transparent transparent; scrollbar-gutter: stable; }
.vm-sb:hover .offcanvas-body,
.vm-sb:hover .vm-sb-inner { scrollbar-color: var(--vm-border-strong) transparent; }
.vm-sb .offcanvas-body::-webkit-scrollbar,
.vm-sb-inner::-webkit-scrollbar { width: 6px; }
.vm-sb .offcanvas-body::-webkit-scrollbar-track,
.vm-sb-inner::-webkit-scrollbar-track { background: transparent; }
.vm-sb .offcanvas-body::-webkit-scrollbar-thumb,
.vm-sb-inner::-webkit-scrollbar-thumb { background: transparent; border-radius: 999px; }
.vm-sb:hover .offcanvas-body::-webkit-scrollbar-thumb,
.vm-sb:hover .vm-sb-inner::-webkit-scrollbar-thumb { background: var(--vm-border-strong); }

/* Select (www/dist/js/vm-select.js): the native <select> stays hidden in the form, a button + dropdown menu replace it */
.vm-sel { position: relative; display: block; min-width: 0; }
.vm-sel.vm-sel-sm { display: inline-block; vertical-align: middle; }
.vm-sel-native { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; pointer-events: none; z-index: -1; }
.vm-sel-btn { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; cursor: pointer; background-image: none !important; padding-right: 10px; }
.vm-sel-btn:disabled { cursor: not-allowed; }
.vm-sel-val { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vm-sel-val.is-placeholder { color: var(--vm-text-3); }
.vm-sel-chev { flex: none; color: var(--vm-text-3); transition: transform .15s ease; }
.vm-sel.is-open .vm-sel-chev { transform: rotate(180deg); }
.vm-sel.is-open .vm-sel-btn { border-color: var(--vm-p-400); box-shadow: var(--vm-focus); }
.vm-sel-menu { position: fixed; z-index: 1080; min-width: 0; padding: 6px; }
.vm-sel-search { position: relative; padding: 0 0 6px; }
.vm-sel-search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-65%); color: var(--vm-text-3); pointer-events: none; }
.vm-sel-search .form-control { padding-left: 30px; }
.vm-sel-list { max-height: 280px; overflow-y: auto; overscroll-behavior: contain; }
.vm-sel-item { width: 100%; justify-content: space-between; text-align: left; white-space: normal; }
.vm-sel-item > span { min-width: 0; }
.vm-sel-item .vm-sel-tick { flex: none; color: var(--vm-primary); visibility: hidden; }
.vm-sel-item.is-selected { font-weight: 600; }
.vm-sel-item.is-selected .vm-sel-tick { visibility: visible; }
.vm-sel-item.active { background: var(--vm-sunken); }
.vm-sel-item:disabled { opacity: .5; }
.vm-sel-empty { padding: 10px; color: var(--vm-text-3); font-size: 13px; text-align: center; }

/* Plus order: discount code (User:profile → Tarif) */
.vm-discount { gap: 6px; }
.vm-discount-row { display: flex; gap: 8px; }
.vm-discount-row .form-control { flex: 1; min-width: 0; text-transform: uppercase; }
.vm-discount-row .btn { flex: none; }
