:root {
    --fm-primary: #0f8f8a;
    --fm-primary-600: #087b78;
    --fm-primary-700: #066764;
    --fm-primary-soft: #e8f7f5;
    --fm-primary-softer: #f3fbfa;
    --fm-green-soft: #eaf8ef;
    --fm-amber-soft: #fff6df;
    --fm-blue-soft: #edf5ff;
    --fm-purple-soft: #f4efff;
    --fm-bg: #f7fafb;
    --fm-surface: #ffffff;
    --fm-surface-muted: #f3f6f7;
    --fm-border: #dfe8ea;
    --fm-border-strong: #c7d7da;
    --fm-text: #17252a;
    --fm-muted: #64747b;
    --fm-shadow: 0 14px 34px rgba(15, 46, 54, 0.07);
    --fm-shadow-soft: 0 8px 22px rgba(15, 46, 54, 0.05);
    --fm-radius: 18px;
    --fm-radius-sm: 12px;
}

html {
    background: var(--fm-bg);
}

body,
.fi-body,
.fi-layout {
    background:
        radial-gradient(circle at top right, rgba(15, 143, 138, 0.11), transparent 34rem),
        linear-gradient(180deg, #fbfefe 0%, var(--fm-bg) 24rem);
    color: var(--fm-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.fi-main {
    background: transparent;
    min-width: 0;
    padding-top: 0 !important;
}

.fi-main-ctn {
    min-width: 0;
}

.fi-page {
    gap: 1.25rem;
}

.fi-header {
    background: transparent;
    border: 0;
    box-shadow: none;
    margin: 0;
    padding-bottom: 0.5rem;
}

.fi-header-heading {
    color: var(--fm-text);
    font-size: clamp(1.55rem, 2vw, 2.15rem);
    font-weight: 800;
    letter-spacing: 0;
}

.fi-header-subheading {
    color: var(--fm-muted);
}

.fi-topbar {
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid rgba(199, 215, 218, 0.7);
    box-shadow: 0 10px 28px rgba(15, 46, 54, 0.04);
    backdrop-filter: blur(18px);
}

.fi-sidebar {
    background: linear-gradient(180deg, #ffffff 0%, #f4fbfa 100%);
    border-right: 1px solid var(--fm-border);
    box-shadow: 8px 0 30px rgba(15, 46, 54, 0.06);
}

.fi-sidebar-header {
    background: transparent;
    border-bottom: 1px solid rgba(223, 232, 234, 0.76);
    box-shadow: none;
    min-height: 5rem;
}

.fi-sidebar-header .fi-logo,
.fi-sidebar-header a {
    color: var(--fm-text) !important;
}

.fi-sidebar-nav {
    padding: 1rem 0.85rem;
}

.fi-sidebar-group-label {
    color: #839198;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fi-sidebar-item a {
    border: 1px solid transparent;
    border-radius: 14px;
    color: #3b5158;
    font-weight: 700;
    margin: 0.2rem 0;
    min-height: 2.9rem;
    transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease, color 150ms ease;
}

.fi-sidebar-item a:hover {
    background: var(--fm-primary-softer);
    border-color: #cbe9e7;
    color: var(--fm-primary-700);
    transform: translateX(2px);
}

.fi-sidebar-item.fi-active a {
    background: linear-gradient(135deg, #f0fbfa 0%, #dff5f3 100%);
    border-color: #b7dfdc;
    box-shadow: 0 9px 20px rgba(15, 143, 138, 0.12);
    color: var(--fm-primary-700);
}

.fi-sidebar-item svg,
.fi-sidebar-item-icon {
    color: currentColor;
}

.fi-sidebar-item-badge {
    background: var(--fm-primary);
    color: #ffffff;
}

.fi-btn {
    border-radius: 12px !important;
    font-weight: 800;
    transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.fi-btn:hover {
    transform: translateY(-1px);
}

.fi-btn-color-primary,
.fi-ac-btn-action {
    background: linear-gradient(135deg, var(--fm-primary), var(--fm-primary-600)) !important;
    box-shadow: 0 10px 20px rgba(15, 143, 138, 0.18);
}

.fi-btn-color-primary:hover,
.fi-btn-color-primary:focus,
.fi-btn-color-primary:active {
    background: linear-gradient(135deg, var(--fm-primary-600), var(--fm-primary-700)) !important;
}

.fi-section,
.fi-ta-ctn,
.fi-fo-component-ctn {
    border-color: var(--fm-border) !important;
    border-radius: var(--fm-radius) !important;
    box-shadow: var(--fm-shadow-soft) !important;
}

.fi-section {
    background: rgba(255, 255, 255, 0.96) !important;
}

.fi-section-header-heading,
.fi-ta-header-heading {
    color: var(--fm-text);
    font-weight: 800;
}

.fi-input-wrp,
.fi-select-input,
.fi-textarea,
.fi-fo-field-wrp input,
.fi-fo-field-wrp textarea,
.fi-fo-field-wrp select {
    border-radius: 12px !important;
}

.fi-input-wrp:focus-within {
    box-shadow: 0 0 0 3px rgba(15, 143, 138, 0.13) !important;
}

.fi-ta {
    min-width: 0;
}

.fi-ta-table {
    min-width: 100%;
}

.fi-ta-text,
.fi-ta-cell {
    min-width: 0;
    white-space: normal;
    word-break: break-word;
}

.fi-ta-header,
.fi-ta-content,
.fi-ta-footer {
    background: #ffffff;
}

.fi-ta-row {
    transition: background-color 120ms ease;
}

.fi-ta-row:hover {
    background: var(--fm-primary-softer);
}

.fi-badge {
    border-radius: 999px;
    font-weight: 800;
}

.fi-dropdown-panel {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid var(--fm-border);
    border-radius: 16px !important;
    box-shadow: var(--fm-shadow);
    overflow: hidden;
}

.fi-user-menu .fi-avatar,
.fi-topbar .fi-avatar {
    border: 2px solid #ffffff;
    box-shadow: 0 8px 18px rgba(15, 46, 54, 0.13);
}

.fi-dropdown-list {
    padding: 0.45rem !important;
}

.fi-dropdown-list-item {
    border-radius: 12px !important;
    color: var(--fm-text) !important;
    font-weight: 800;
}

.fi-dropdown-list-item:hover,
.fi-dropdown-list-item:focus {
    background: var(--fm-primary-softer) !important;
    color: var(--fm-primary-700) !important;
}

.fi-dropdown-list-item-icon {
    color: var(--fm-primary-700) !important;
}

.fi-modal-window {
    border-radius: 20px !important;
    box-shadow: 0 24px 70px rgba(15, 46, 54, 0.18) !important;
}

.fi-pagination,
.fi-ta-filters {
    border-color: var(--fm-border);
}

.fi-loading-indicator {
    background: linear-gradient(90deg, var(--fm-primary), #62c8c1) !important;
}

.fi-no-notification,
.fi-ta-empty-state,
.fi-section-empty-state {
    color: var(--fm-muted);
}

.fi-notification {
    border: 1px solid var(--fm-border) !important;
    border-radius: 16px !important;
    box-shadow: var(--fm-shadow) !important;
}

.fi-notification-title {
    color: var(--fm-text);
    font-weight: 900;
}

.fi-notification-body {
    color: var(--fm-muted);
}

.fi-modal-heading {
    color: var(--fm-text);
    font-weight: 900;
}

.fi-modal-description {
    color: var(--fm-muted);
}

.fi-tabs {
    border-radius: 14px;
}

.fi-tabs-item-active {
    background: var(--fm-primary-soft) !important;
    color: var(--fm-primary-700) !important;
}

.fm-page-shell {
    display: grid;
    gap: 1.25rem;
    margin-top: -0.25rem;
}

.fm-dashboard-hero {
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #eefaf8 100%);
    border: 1px solid var(--fm-border);
    border-radius: 24px;
    box-shadow: var(--fm-shadow);
    display: flex;
    gap: 1.25rem;
    justify-content: space-between;
    padding: clamp(1.2rem, 2.5vw, 2rem);
}

.fm-eyebrow {
    color: var(--fm-primary-700);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.fm-dashboard-hero h1 {
    color: var(--fm-text);
    font-size: clamp(1.8rem, 3vw, 2.65rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.05;
    margin: 0;
}

.fm-dashboard-hero p {
    color: var(--fm-muted);
    margin: 0.65rem 0 0;
    max-width: 44rem;
}

.fm-hero-actions,
.fm-quick-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.fm-grid {
    display: grid;
    gap: 1rem;
}

.fm-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fm-two-col {
    grid-template-columns: minmax(0, 1.45fr) minmax(20rem, 0.85fr);
}

.fm-three-col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fm-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--fm-border);
    border-radius: var(--fm-radius);
    box-shadow: var(--fm-shadow-soft);
    min-width: 0;
    overflow: hidden;
}

.fm-card-padded {
    padding: clamp(1rem, 2vw, 1.35rem);
}

.fm-stat-card {
    display: flex;
    gap: 1rem;
    min-height: 8.5rem;
}

.fm-stat-icon {
    align-items: center;
    border-radius: 16px;
    display: inline-flex;
    flex: 0 0 auto;
    height: 3.25rem;
    justify-content: center;
    width: 3.25rem;
}

.fm-stat-icon svg {
    height: 1.55rem;
    width: 1.55rem;
}

.fm-tone-teal { background: var(--fm-primary-soft); color: var(--fm-primary-700); }
.fm-tone-amber { background: var(--fm-amber-soft); color: #b36a00; }
.fm-tone-blue { background: var(--fm-blue-soft); color: #1766b1; }
.fm-tone-purple { background: var(--fm-purple-soft); color: #6741a5; }
.fm-tone-green { background: var(--fm-green-soft); color: #16814a; }

.fm-stat-label {
    color: var(--fm-muted);
    font-size: 0.84rem;
    font-weight: 800;
}

.fm-stat-value {
    color: var(--fm-text);
    font-size: clamp(1.55rem, 3vw, 2.2rem);
    font-weight: 900;
    line-height: 1.08;
    margin-top: 0.3rem;
}

.fm-stat-delta {
    color: var(--fm-muted);
    font-size: 0.78rem;
    font-weight: 700;
    margin-top: 0.55rem;
}

.fm-card-header {
    align-items: center;
    border-bottom: 1px solid rgba(223, 232, 234, 0.75);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1.1rem 1.25rem;
}

.fm-card-title {
    color: var(--fm-text);
    font-size: 1rem;
    font-weight: 900;
}

.fm-card-subtitle {
    color: var(--fm-muted);
    font-size: 0.82rem;
    margin-top: 0.15rem;
}

.fm-link {
    color: var(--fm-primary-700);
    font-size: 0.86rem;
    font-weight: 900;
    text-decoration: none;
}

.fm-link:hover {
    color: var(--fm-primary);
}

.fm-button,
.fm-button-secondary {
    align-items: center;
    border-radius: 12px;
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 900;
    gap: 0.45rem;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0 1rem;
    text-decoration: none;
    transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
    white-space: nowrap;
}

.fm-button {
    background: linear-gradient(135deg, var(--fm-primary), var(--fm-primary-600));
    box-shadow: 0 10px 20px rgba(15, 143, 138, 0.18);
    color: #ffffff !important;
}

.fm-button-secondary {
    background: #ffffff;
    border: 1px solid var(--fm-border-strong);
    color: var(--fm-primary-700) !important;
}

.fm-button:hover,
.fm-button-secondary:hover {
    transform: translateY(-1px);
}

.fm-chart-wrap {
    padding: 1rem 1.25rem 1.25rem;
}

.fm-chart {
    min-height: 17rem;
    width: 100%;
}

.fm-chart svg {
    display: block;
    height: 100%;
    min-height: 17rem;
    overflow: visible;
    width: 100%;
}

.fm-list {
    display: grid;
    gap: 0.65rem;
    padding: 1rem;
}

.fm-list-row {
    align-items: center;
    background: #ffffff;
    border: 1px solid #edf2f3;
    border-radius: 14px;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 0.85rem;
}

.fm-list-main {
    min-width: 0;
}

.fm-list-title {
    color: var(--fm-text);
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fm-list-meta {
    color: var(--fm-muted);
    font-size: 0.82rem;
    margin-top: 0.15rem;
}

.fm-pill {
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.75rem;
    font-weight: 900;
    padding: 0.35rem 0.65rem;
    text-transform: capitalize;
    white-space: nowrap;
}

.fm-pill-pending { background: var(--fm-amber-soft); color: #a96000; }
.fm-pill-accepted,
.fm-pill-confirmed,
.fm-pill-checked_in,
.fm-pill-in_progress,
.fm-pill-awaiting_approval,
.fm-pill-completed,
.fm-pill-active,
.fm-pill-paid { background: var(--fm-green-soft); color: #137342; }
.fm-pill-cancelled,
.fm-pill-declined,
.fm-pill-no_show,
.fm-pill-failed,
.fm-pill-rejected { background: #fff0ef; color: #b42318; }
.fm-pill-neutral { background: var(--fm-primary-soft); color: var(--fm-primary-700); }

.fm-progress-track {
    background: #e8eff1;
    border-radius: 999px;
    height: 0.75rem;
    overflow: hidden;
}

.fm-progress-bar {
    background: linear-gradient(90deg, var(--fm-primary), #54c4bb);
    border-radius: inherit;
    height: 100%;
}

.fm-check-list {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.fm-check-item {
    align-items: center;
    color: #33454b;
    display: flex;
    gap: 0.65rem;
    min-width: 0;
}

.fm-check-dot {
    align-items: center;
    border: 1px solid #c9d7da;
    border-radius: 999px;
    color: transparent;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.7rem;
    height: 1.05rem;
    justify-content: center;
    width: 1.05rem;
}

.fm-check-dot-done {
    background: #18a267;
    border-color: #18a267;
    color: #ffffff;
}

.fm-empty {
    color: var(--fm-muted);
    padding: 1.5rem;
    text-align: center;
}

.fm-package-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fm-package-price {
    color: var(--fm-text);
    font-size: 2rem;
    font-weight: 900;
}

.fm-billing-current {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 1rem;
}

.fm-billing-meta {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 1.25rem;
}

.fm-billing-meta div {
    background: var(--fm-primary-softer);
    border: 1px solid #d3ecea;
    border-radius: 14px;
    padding: 0.85rem;
}

.fm-billing-meta span {
    color: var(--fm-muted);
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
}

.fm-billing-meta strong {
    color: var(--fm-text);
    display: block;
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

.fm-upgrade-note {
    background: var(--fm-amber-soft);
    border: 1px solid #f5d994;
    border-radius: 14px;
    color: #8a5400;
    font-weight: 800;
    margin-top: 1rem;
    padding: 0.85rem;
}

.fm-pricing-card {
    position: relative;
}

.fm-pricing-card-featured {
    border-color: #8ed7d2;
    box-shadow: 0 20px 46px rgba(15, 143, 138, 0.12);
}

.fm-pricing-card-current {
    outline: 3px solid rgba(15, 143, 138, 0.18);
}

.fm-pricing-topline {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: space-between;
}

.fm-plan-diff {
    background: #fbfdfd;
    border: 1px solid var(--fm-border);
    border-radius: 14px;
    color: var(--fm-muted);
    display: grid;
    font-size: 0.82rem;
    font-weight: 700;
    gap: 0.35rem;
    margin-top: 1rem;
    padding: 0.85rem;
}

.fm-plan-diff strong {
    color: var(--fm-text);
}

.fm-responsive-table {
    overflow-x: auto;
    width: 100%;
}

.fm-comparison-table {
    border-collapse: collapse;
    min-width: 48rem;
    width: 100%;
}

.fm-comparison-table th,
.fm-comparison-table td {
    border-bottom: 1px solid var(--fm-border);
    color: var(--fm-text);
    padding: 0.95rem 1rem;
    text-align: left;
    vertical-align: top;
}

.fm-comparison-table th {
    background: var(--fm-primary-softer);
    color: var(--fm-primary-700);
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.fm-comparison-table td {
    color: #40545b;
    font-size: 0.88rem;
    font-weight: 700;
}

.fm-profile-hero {
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #eefaf8 100%);
    border: 1px solid var(--fm-border);
    border-radius: 24px;
    box-shadow: var(--fm-shadow);
    display: flex;
    gap: 1.25rem;
    justify-content: space-between;
    padding: clamp(1.2rem, 2.5vw, 2rem);
}

.fm-profile-identity {
    align-items: center;
    display: flex;
    gap: 1rem;
    min-width: 0;
}

.fm-profile-avatar {
    align-items: center;
    background: linear-gradient(135deg, var(--fm-primary), #6fcac1);
    border: 5px solid #ffffff;
    border-radius: 999px;
    box-shadow: var(--fm-shadow);
    color: #ffffff;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 1.45rem;
    font-weight: 900;
    height: 5rem;
    justify-content: center;
    overflow: hidden;
    width: 5rem;
}

.fm-profile-avatar img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.fm-profile-hero h1 {
    color: var(--fm-text);
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.08;
    margin: 0;
}

.fm-profile-hero p,
.fm-profile-copy {
    color: var(--fm-muted);
    margin: 0.45rem 0 0;
}

.fm-profile-layout {
    align-items: start;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1.4fr) minmax(18rem, 0.6fr);
}

.fm-profile-heading {
    color: var(--fm-text);
    font-size: 1.55rem;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.15;
    margin: 0;
}

.fm-form-stack {
    margin-top: 1.25rem;
}

.fm-profile-actions {
    border-top: 1px solid var(--fm-border);
    margin-top: 1.25rem;
    padding-top: 1.25rem;
}

.fm-profile-links {
    display: grid;
    gap: 0.65rem;
    margin-top: 1rem;
}

.fm-profile-links a {
    background: #ffffff;
    border: 1px solid var(--fm-border);
    border-radius: 14px;
    color: var(--fm-text);
    display: grid;
    gap: 0.2rem;
    padding: 0.9rem;
    text-decoration: none;
    transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.fm-profile-links a:hover {
    background: var(--fm-primary-softer);
    border-color: #b7dfdc;
    box-shadow: var(--fm-shadow-soft);
    transform: translateY(-1px);
}

.fm-profile-links span {
    color: var(--fm-primary-700);
    font-weight: 900;
}

.fm-profile-links small {
    color: var(--fm-muted);
    font-size: 0.8rem;
    line-height: 1.35;
}

@media (max-width: 1280px) {
    .fm-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fm-two-col,
    .fm-three-col,
    .fm-package-grid,
    .fm-profile-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .fi-main {
        padding-inline: 0.75rem !important;
    }

    .fm-dashboard-hero,
    .fm-profile-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .fm-profile-identity {
        align-items: flex-start;
    }

    .fm-stat-grid {
        grid-template-columns: 1fr;
    }

    .fm-list-row {
        align-items: flex-start;
        grid-template-columns: 1fr;
    }

    .fm-billing-meta {
        grid-template-columns: 1fr;
    }

    .fm-button,
    .fm-button-secondary {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .fi-ta-content {
        overflow-x: hidden;
    }

    .fi-ta-table {
        width: 100%;
    }
}

/* Vehicles Manager portal refresh: compact SaaS dashboard style. */
:root {
    --fm-primary: #0b8f89;
    --fm-primary-600: #087b78;
    --fm-primary-700: #055f62;
    --fm-primary-soft: #e9f8f6;
    --fm-primary-softer: #f4fbfa;
    --fm-bg: #f6f8fa;
    --fm-surface: #ffffff;
    --fm-border: #dde7ea;
    --fm-border-strong: #c9d8dc;
    --fm-text: #14272f;
    --fm-muted: #64717d;
    --fm-sidebar: #063f46;
    --fm-sidebar-deep: #022f36;
    --fm-sidebar-active: #0b9a96;
    --fm-shadow: 0 8px 22px rgba(11, 44, 51, 0.08);
    --fm-shadow-soft: 0 1px 3px rgba(11, 44, 51, 0.07);
    --fm-radius: 10px;
    --fm-radius-sm: 8px;
}

html,
body {
    font-size: 14px;
}

body,
.fi-body,
.fi-layout {
    background: var(--fm-bg) !important;
    color: var(--fm-text);
}

.fi-main {
    padding-top: 1.25rem !important;
}

.fi-main,
.fi-main-ctn {
    background: var(--fm-bg) !important;
}

.fi-page {
    gap: 1rem;
}

.fi-header {
    padding: 0 0 .7rem !important;
}

.fi-header-heading {
    color: var(--fm-text);
    font-size: 1.35rem;
    font-weight: 850;
    letter-spacing: 0;
}

.fi-header-subheading {
    color: var(--fm-muted);
    font-size: .84rem;
}

.fi-topbar {
    background: #ffffff !important;
    border-bottom: 1px solid var(--fm-border) !important;
    box-shadow: none !important;
    min-height: 4.35rem;
}

.fi-sidebar {
    background:
        radial-gradient(circle at 22% 8%, rgba(26, 183, 176, .22), transparent 13rem),
        linear-gradient(180deg, var(--fm-sidebar) 0%, var(--fm-sidebar-deep) 100%) !important;
    border-right: 0 !important;
    box-shadow: none !important;
}

.fi-sidebar-header {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, .1) !important;
    min-height: 4.75rem;
    padding-inline: 1.1rem !important;
}

.fi-sidebar-header .fi-logo,
.fi-sidebar-header a {
    color: #ffffff !important;
}

.fi-sidebar-nav {
    padding: 1rem .85rem !important;
}

.fi-sidebar-group {
    gap: .35rem !important;
}

.fi-sidebar-group-label {
    color: rgba(227, 249, 247, .58) !important;
    font-size: .68rem;
    font-weight: 800;
}

.fi-sidebar-item a {
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    color: rgba(236, 251, 250, .86) !important;
    font-size: .88rem;
    font-weight: 720;
    min-height: 2.65rem;
    padding-inline: .85rem !important;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.fi-sidebar-item a:hover {
    background: rgba(255, 255, 255, .08) !important;
    border-color: rgba(255, 255, 255, .08) !important;
    color: #ffffff !important;
    transform: translateX(2px);
}

.fi-sidebar-item.fi-active a {
    background: linear-gradient(135deg, #11a8a2, #087b78) !important;
    border-color: rgba(255, 255, 255, .16) !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .16) !important;
    color: #ffffff !important;
}

.fi-sidebar-item-icon,
.fi-sidebar-item svg {
    color: currentColor !important;
    height: 1.15rem;
    width: 1.15rem;
}

.fi-sidebar-item-label {
    font-size: .88rem !important;
}

.fi-sidebar-item-badge {
    background: #12a9a3 !important;
    color: #ffffff !important;
}

.fi-btn {
    border-radius: 8px !important;
    font-size: .86rem;
    font-weight: 800;
    min-height: 2.35rem;
}

.fi-btn:hover {
    transform: translateY(-1px);
}

.fi-btn-color-primary,
.fi-ac-btn-action {
    background: linear-gradient(135deg, var(--fm-primary), var(--fm-primary-600)) !important;
    box-shadow: 0 8px 16px rgba(11, 143, 137, .18) !important;
}

.fi-section,
.fi-ta-ctn,
.fi-fo-component-ctn,
.fi-modal-window,
.fi-dropdown-panel {
    border-color: var(--fm-border) !important;
    border-radius: 10px !important;
    box-shadow: var(--fm-shadow-soft) !important;
}

.fi-section {
    background: #ffffff !important;
}

.fi-section-header,
.fi-ta-header,
.fi-ta-footer {
    background: #ffffff !important;
}

.fi-section-header-heading,
.fi-ta-header-heading {
    color: var(--fm-text);
    font-size: 1rem;
    font-weight: 850;
}

.fi-input-wrp,
.fi-select-input,
.fi-textarea,
.fi-fo-field-wrp input,
.fi-fo-field-wrp textarea,
.fi-fo-field-wrp select {
    border-radius: 8px !important;
}

.fi-ta-row {
    min-height: 3.05rem;
}

.fi-ta-cell,
.fi-ta-text {
    color: #263941;
    font-size: .82rem;
}

.fi-badge {
    border-radius: 6px;
    font-size: .74rem;
    font-weight: 760;
}

.fi-dropdown-panel {
    overflow: hidden;
}

.fi-dropdown-list-item {
    border-radius: 8px !important;
    font-size: .86rem;
    font-weight: 760;
}

.fi-user-menu .fi-avatar,
.fi-topbar .fi-avatar {
    box-shadow: 0 0 0 3px #ffffff, 0 7px 16px rgba(12, 42, 48, .14);
}

.fm-page-shell {
    gap: 1rem;
    margin-top: 0;
}

.fm-dashboard-hero,
.fm-profile-hero {
    background: linear-gradient(135deg, #ffffff 0%, #f0faf9 100%);
    border-radius: 12px;
    box-shadow: var(--fm-shadow-soft);
    padding: 1rem 1.15rem;
}

.fm-dashboard-hero h1,
.fm-profile-hero h1 {
    font-size: 1.55rem;
    line-height: 1.12;
}

.fm-dashboard-hero p,
.fm-profile-hero p,
.fm-profile-copy {
    font-size: .9rem;
}

.fm-eyebrow {
    font-size: .72rem;
    letter-spacing: .06em;
}

.fm-grid {
    gap: 1rem;
}

.fm-stat-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.fm-two-col {
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.55fr);
}

.fm-three-col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fm-card {
    background: #ffffff;
    border: 1px solid var(--fm-border);
    border-radius: 10px;
    box-shadow: var(--fm-shadow-soft);
}

.fm-card-padded {
    padding: 1rem;
}

.fm-stat-card {
    align-items: flex-start;
    display: grid;
    gap: .8rem;
    min-height: 8rem;
}

.fm-stat-icon {
    border-radius: 9px;
    height: 2.45rem;
    width: 2.45rem;
}

.fm-stat-icon svg {
    height: 1.1rem;
    width: 1.1rem;
}

.fm-stat-label {
    font-size: .82rem;
    font-weight: 700;
}

.fm-stat-value {
    font-size: 1.65rem;
    font-weight: 850;
    margin-top: .45rem;
}

.fm-stat-delta {
    color: #21a366;
    font-size: .78rem;
    font-weight: 760;
    margin-top: .5rem;
}

.fm-card-header {
    padding: 1rem 1rem .85rem;
}

.fm-card-title {
    font-size: .98rem;
    font-weight: 850;
}

.fm-card-subtitle {
    font-size: .8rem;
}

.fm-link {
    color: var(--fm-primary-700);
    font-size: .82rem;
    font-weight: 800;
}

.fm-button,
.fm-button-secondary {
    border-radius: 8px;
    font-size: .84rem;
    font-weight: 820;
    min-height: 2.35rem;
    padding: 0 .85rem;
}

.fm-button {
    background: linear-gradient(135deg, var(--fm-primary), var(--fm-primary-600));
    box-shadow: 0 8px 16px rgba(11, 143, 137, .17);
}

.fm-button-secondary {
    border-color: var(--fm-border-strong);
    color: var(--fm-primary-700) !important;
}

.fm-chart-wrap {
    padding: .8rem 1rem 1rem;
}

.fm-chart,
.fm-chart svg,
.fm-chart-wrap svg {
    min-height: 14rem;
}

.fm-list {
    gap: .55rem;
    padding: .85rem;
}

.fm-list-row {
    border-color: #edf2f4;
    border-radius: 8px;
    gap: .75rem;
    padding: .72rem .8rem;
}

.fm-list-title {
    font-size: .88rem;
    font-weight: 820;
}

.fm-list-meta {
    font-size: .78rem;
}

.fm-pill {
    border-radius: 6px;
    font-size: .72rem;
    font-weight: 780;
    padding: .28rem .55rem;
}

.fm-progress-track {
    height: .55rem;
}

.fm-check-list {
    gap: .55rem;
}

.fm-check-item {
    font-size: .84rem;
}

.fm-package-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fm-package-price {
    font-size: 1.65rem;
}

.fm-profile-avatar {
    border-width: 3px;
    font-size: 1.05rem;
    height: 4rem;
    width: 4rem;
}

@media (min-width: 1281px) {
    .fm-stat-grid:has(.fm-stat-card:nth-child(6)) {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1380px) {
    .fm-stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .fm-two-col,
    .fm-three-col,
    .fm-package-grid,
    .fm-profile-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .fi-main {
        padding-inline: .8rem !important;
        padding-top: 1rem !important;
    }

    .fm-stat-grid {
        grid-template-columns: 1fr;
    }

    .fm-dashboard-hero,
    .fm-profile-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .fm-button,
    .fm-button-secondary {
        width: 100%;
    }
}

.fi-topbar > nav {
    background: #ffffff !important;
    box-shadow: none !important;
    gap: 1.25rem !important;
    min-height: 4.25rem !important;
    padding-inline: 1.75rem !important;
}

.vm-topbar-breadcrumb {
    align-items: center;
    color: #798792;
    display: flex;
    flex: 0 0 auto;
    font-size: .82rem;
    font-weight: 760;
    gap: .7rem;
    min-width: 13rem;
    white-space: nowrap;
}

.vm-topbar-breadcrumb a {
    color: var(--fm-primary);
    text-decoration: none;
}

.vm-topbar-breadcrumb a:hover {
    color: var(--fm-primary-700);
}

.vm-topbar-breadcrumb svg {
    color: #a5b1b8;
    height: .9rem;
    width: .9rem;
}

.vm-topbar-actions {
    align-items: center;
    display: flex;
    gap: 1rem;
}

.vm-date-range,
.vm-topbar-search,
.vm-topbar-bell {
    background: #ffffff;
    border: 1px solid var(--fm-border);
    border-radius: 8px;
    color: #273a43;
    min-height: 2.45rem;
}

.vm-date-range {
    align-items: center;
    cursor: default;
    display: inline-flex;
    font-size: .79rem;
    font-weight: 760;
    gap: .8rem;
    justify-content: space-between;
    min-width: 15.7rem;
    padding: 0 .85rem;
}

.vm-date-range svg,
.vm-topbar-search svg,
.vm-topbar-bell svg {
    color: #5c6c77;
    height: 1rem;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 1rem;
}

.vm-topbar-search {
    align-items: center;
    display: flex;
    min-width: 15.8rem;
    padding-inline: .8rem .45rem;
}

.vm-topbar-search input {
    background: transparent;
    border: 0;
    color: var(--fm-text);
    font-size: .8rem;
    font-weight: 650;
    min-width: 0;
    outline: 0;
    width: 100%;
}

.vm-topbar-search input::placeholder {
    color: #9aa6ae;
}

.vm-topbar-search button,
.vm-topbar-bell {
    align-items: center;
    border: 0;
    display: inline-flex;
    justify-content: center;
}

.vm-topbar-search button {
    background: transparent;
    cursor: pointer;
    height: 2rem;
    width: 2rem;
}

.vm-topbar-bell {
    border-color: transparent;
    height: 2.45rem;
    text-decoration: none;
    width: 2.45rem;
}

.vm-topbar-bell:hover,
.vm-topbar-search:focus-within,
.vm-date-range:hover {
    border-color: #b8d9d6;
    box-shadow: 0 0 0 3px rgba(11, 143, 137, .08);
}

.fi-topbar [x-persist^="topbar.end"] {
    gap: 1rem !important;
}

.fi-topbar .fi-user-menu {
    margin-left: .15rem;
}

.vm-topbar-user-meta {
    display: grid;
    line-height: 1.1;
    margin-left: -.45rem;
    min-width: 6rem;
}

.vm-topbar-user-meta strong {
    color: var(--fm-text);
    font-size: .82rem;
    font-weight: 850;
    max-width: 9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vm-topbar-user-meta span {
    color: var(--fm-muted);
    font-size: .74rem;
    font-weight: 700;
    margin-top: .15rem;
}

@media (max-width: 1200px) {
    .vm-topbar-breadcrumb {
        min-width: auto;
    }

    .vm-date-range {
        min-width: 13rem;
    }

    .vm-topbar-search {
        min-width: 12.5rem;
    }
}

@media (max-width: 920px) {
    .fi-topbar > nav {
        gap: .75rem !important;
        padding-inline: 1rem !important;
    }

    .vm-topbar-breadcrumb span,
    .vm-date-range {
        display: none;
    }

    .vm-topbar-search {
        min-width: 10rem;
    }

    .vm-topbar-user-meta {
        display: none;
    }
}

@media (max-width: 640px) {
    .vm-topbar-breadcrumb {
        display: none;
    }

    .vm-topbar-actions {
        gap: .35rem;
    }

    .vm-topbar-search {
        display: none;
    }
}

/* Reference dashboard layout */
:root {
    --sidebar-width: 16.1rem;
}

.fi-main {
    padding: 1.55rem 1.55rem 1.2rem !important;
}

.fi-page {
    max-width: none !important;
}

body:has(.vm-dashboard) .fi-page > .fi-header {
    display: none;
}

.fi-sidebar {
    width: var(--sidebar-width) !important;
}

.fi-sidebar-nav {
    gap: 1.15rem !important;
    padding: 1rem .85rem 0 !important;
}

.fi-sidebar-nav-groups {
    gap: .35rem !important;
}

.fi-sidebar-group-items {
    gap: .32rem !important;
}

.fi-sidebar-item a {
    min-height: 2.85rem;
}

.vm-sidebar-footer {
    display: grid;
    gap: 1.05rem;
    padding: 0 1rem 1.25rem;
}

.vm-help-card {
    background: rgba(255, 255, 255, .055);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 8px;
    color: #ffffff;
    display: grid;
    gap: .55rem;
    padding: 1rem;
}

.vm-help-icon {
    align-items: center;
    background: rgba(255, 255, 255, .14);
    border-radius: 8px;
    display: inline-flex;
    height: 2.2rem;
    justify-content: center;
    width: 2.2rem;
}

.vm-help-icon svg {
    height: 1.1rem;
    stroke: #dffbf8;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    width: 1.1rem;
}

.vm-help-card strong {
    font-size: .91rem;
    font-weight: 850;
}

.vm-help-card p {
    color: rgba(232, 253, 251, .78);
    font-size: .76rem;
    line-height: 1.35;
    margin: 0;
}

.vm-help-card a {
    align-items: center;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 6px;
    color: #ffffff;
    display: flex;
    font-size: .76rem;
    font-weight: 820;
    justify-content: space-between;
    min-height: 2.25rem;
    padding: 0 .7rem;
    text-decoration: none;
}

.vm-collapse-btn {
    align-items: center;
    background: transparent;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: rgba(236, 251, 250, .86);
    cursor: pointer;
    display: flex;
    font-size: .82rem;
    font-weight: 760;
    gap: .85rem;
    min-height: 2.2rem;
    padding-top: .8rem;
    text-align: left;
}

.vm-dashboard {
    display: grid;
    gap: 1rem;
}

.vm-stat-row {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.vm-stat-card,
.vm-panel {
    background: #ffffff;
    border: 1px solid #dfe7ea;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(17, 35, 42, .035);
}

.vm-stat-card {
    display: grid;
    min-height: 9.55rem;
    padding: 1.15rem;
}

.vm-stat-icon {
    align-items: center;
    border-radius: 10px;
    display: inline-flex;
    height: 2.25rem;
    justify-content: center;
    width: 2.25rem;
}

.vm-stat-icon svg {
    height: 1rem;
    width: 1rem;
}

.vm-inline-icon {
    display: block;
    flex: 0 0 auto;
    height: 1em;
    max-height: 1em;
    max-width: 1em;
    width: 1em;
}

.vm-tone-teal,
.vm-tone-green,
.vm-tone-blue {
    background: #e6f8f6;
    color: #008b84;
}

.vm-tone-amber {
    background: #fff4de;
    color: #df6d1e;
}

.vm-tone-purple {
    background: #f0efff;
    color: #6550b9;
}

.vm-stat-label {
    color: #596a75;
    font-size: .84rem;
    font-weight: 680;
    margin-top: .9rem;
}

.vm-stat-card strong {
    color: #10242d;
    font-size: 1.72rem;
    font-weight: 820;
    letter-spacing: 0;
    line-height: 1;
    margin-top: .2rem;
}

.vm-stat-change {
    align-items: center;
    color: #1eaa62;
    display: flex;
    font-size: .76rem;
    font-weight: 780;
    gap: .45rem;
    margin-top: .8rem;
}

.vm-stat-change svg {
    height: .55rem;
    width: .55rem;
}

.vm-stat-change.vm-negative,
.vm-tone-amber + .vm-stat-label + strong + .vm-stat-change {
    color: #f06423;
}

.vm-dashboard-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(19rem, .78fr) minmax(0, 2fr);
}

.vm-quick-actions,
.vm-workshop-metrics {
    margin-top: .1rem;
}

.vm-quick-grid {
    display: grid;
    gap: .8rem;
    grid-template-columns: repeat(6, minmax(7.5rem, 1fr));
    padding: 0 1.1rem 1.1rem;
}

.vm-quick-action {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dfe7ea;
    border-radius: 12px;
    color: #10242d;
    display: grid;
    gap: .5rem;
    grid-template-rows: auto minmax(2.1rem, auto);
    min-height: 5.6rem;
    min-width: 0;
    padding: .8rem;
    text-align: center;
    text-decoration: none;
    transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.vm-quick-action:hover {
    border-color: #9bd7d3;
    box-shadow: 0 12px 24px rgba(15, 143, 138, .1);
    transform: translateY(-1px);
}

.vm-quick-action .vm-quick-icon {
    align-items: center;
    background: #e6f8f6;
    border-radius: 999px;
    color: #008b84;
    display: inline-flex;
    height: 2.2rem;
    justify-content: center;
    justify-self: center;
    width: 2.2rem;
}

.vm-quick-action .vm-quick-icon svg,
.vm-quick-action .vm-quick-icon .vm-inline-icon {
    display: block;
    height: 1.05rem !important;
    max-height: 1.05rem !important;
    max-width: 1.05rem !important;
    width: 1.05rem !important;
}

.vm-quick-action strong {
    font-size: .78rem;
    font-weight: 820;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.vm-metric-grid {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    padding: 0 1.1rem 1.1rem;
}

.vm-mini-metric {
    background: #ffffff;
    border: 1px solid #dfe7ea;
    border-radius: 12px;
    display: grid;
    gap: .35rem;
    min-height: 4.75rem;
    padding: .8rem;
}

.vm-mini-metric span {
    color: #687984;
    font-size: .72rem;
    font-weight: 760;
    line-height: 1.25;
}

.vm-mini-metric strong {
    color: #10242d;
    font-size: 1.08rem;
    font-weight: 850;
    line-height: 1.1;
}

.vm-mini-teal strong,
.vm-mini-green strong {
    color: #008b84;
}

.vm-mini-amber strong {
    color: #c87500;
}

.vm-mini-danger strong {
    color: #e33a24;
}

.vm-panel {
    min-width: 0;
    overflow: hidden;
}

.vm-panel-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    min-height: 3.2rem;
    padding: 1rem 1.1rem .7rem;
}

.vm-panel-header h2 {
    color: #17272f;
    font-size: .98rem;
    font-weight: 820;
    line-height: 1.2;
    margin: 0;
}

.vm-panel-header a {
    color: #4b5d67;
    font-size: .78rem;
    font-weight: 760;
    text-decoration: none;
}

.vm-donut-layout {
    align-items: center;
    display: grid;
    gap: 1.15rem;
    grid-template-columns: minmax(9.5rem, .85fr) minmax(8.5rem, 1fr);
    padding: .9rem 1.1rem 1rem;
}

.vm-donut {
    align-items: center;
    aspect-ratio: 1;
    background: var(--donut);
    border-radius: 999px;
    display: grid;
    justify-self: center;
    max-width: 10.6rem;
    padding: 1.8rem;
    width: 100%;
}

.vm-donut > div {
    align-items: center;
    background: #ffffff;
    border-radius: inherit;
    display: grid;
    height: 100%;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.vm-donut strong {
    color: #10242d;
    font-size: 1.55rem;
    font-weight: 790;
    line-height: 1;
}

.vm-donut span {
    color: #687984;
    font-size: .76rem;
    margin-top: .35rem;
}

.vm-donut-legend {
    display: grid;
    gap: .78rem;
}

.vm-legend-row {
    align-items: start;
    display: grid;
    gap: .62rem;
    grid-template-columns: auto minmax(0, 1fr);
}

.vm-legend-dot {
    border-radius: 999px;
    height: .48rem;
    margin-top: .35rem;
    width: .48rem;
}

.vm-legend-row strong {
    color: #263943;
    display: block;
    font-size: .82rem;
    font-weight: 740;
}

.vm-legend-row span:last-child {
    color: #667781;
    display: block;
    font-size: .76rem;
    margin-top: .2rem;
}

.vm-outline-link {
    align-items: center;
    border: 1px solid #d8e2e5;
    border-radius: 6px;
    color: #31444e;
    display: inline-flex;
    font-size: .78rem;
    font-weight: 760;
    gap: 1rem;
    margin: .35rem 1.1rem 1.15rem;
    min-height: 2.25rem;
    padding: 0 .8rem;
    text-decoration: none;
}

.vm-chart-select {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dfe7ea;
    border-radius: 6px;
    color: #283b45;
    display: inline-flex;
    font-size: .8rem;
    font-weight: 740;
    gap: .45rem;
    min-height: 2rem;
    padding: 0 .75rem;
}

.vm-line-chart {
    display: block;
    height: 16.3rem;
    padding: .2rem 1.1rem 0;
    width: 100%;
}

.vm-line-chart line {
    stroke: #dfe7ea;
    stroke-dasharray: 3 3;
    stroke-width: 1;
}

.vm-line-chart polygon {
    fill: rgba(0, 139, 132, .1);
}

.vm-line-chart polyline {
    fill: none;
    stroke: #008b84;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
}

.vm-line-chart text {
    fill: #73838d;
    font-size: 10px;
}

.vm-trend-summary {
    align-items: center;
    border-top: 1px solid #dfe7ea;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    margin: 0 1.1rem;
    padding: .9rem 0 1rem;
}

.vm-summary-item {
    display: grid;
    gap: .25rem;
}

.vm-summary-item span {
    color: #687984;
    font-size: .75rem;
    font-weight: 700;
}

.vm-summary-item strong {
    color: #10242d;
    font-size: .95rem;
    font-weight: 820;
}

.vm-summary-teal strong {
    color: #008b84;
}

.vm-summary-danger strong {
    color: #f04d23;
}

.vm-trend-summary a {
    color: #4b5d67;
    font-size: .76rem;
    font-weight: 760;
    text-decoration: none;
    white-space: nowrap;
}

.vm-table-panel {
    margin-top: .1rem;
}

.vm-table-wrap {
    overflow-x: auto;
    padding: 0 1rem;
}

.vm-table {
    border-collapse: collapse;
    min-width: 58rem;
    width: 100%;
}

.vm-table th {
    border-bottom: 1px solid #dfe7ea;
    color: #4d5f69;
    font-size: .74rem;
    font-weight: 760;
    padding: .72rem .7rem;
    text-align: left;
}

.vm-table td {
    border-bottom: 1px solid #edf2f4;
    color: #31444e;
    font-size: .78rem;
    padding: .7rem;
    vertical-align: middle;
}

.vm-table td > a {
    color: #008b84;
    font-weight: 790;
    text-decoration: none;
}

.vm-person {
    align-items: center;
    display: flex;
    gap: .55rem;
    min-width: 0;
}

.vm-person span {
    align-items: center;
    background: #dcefed;
    border-radius: 999px;
    color: #076f6c;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: .66rem;
    font-weight: 850;
    height: 1.45rem;
    justify-content: center;
    width: 1.45rem;
}

.vm-person strong {
    color: #243740;
    font-size: .78rem;
    font-weight: 760;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vm-status {
    border-radius: 5px;
    display: inline-flex;
    font-size: .7rem;
    font-weight: 780;
    padding: .28rem .55rem;
    text-transform: capitalize;
}

.vm-status-paid,
.vm-status-succeeded,
.vm-status-completed,
.vm-status-accepted,
.vm-status-confirmed,
.vm-status-checked_in,
.vm-status-in_progress,
.vm-status-awaiting_approval,
.vm-status-active {
    background: #dff5e8;
    color: #16814a;
}

.vm-status-pending,
.vm-status-requested {
    background: #fff1d6;
    color: #c87500;
}

.vm-status-failed,
.vm-status-cancelled,
.vm-status-declined,
.vm-status-no_show,
.vm-status-refunded {
    background: #ffe6e3;
    color: #e33a24;
}

.vm-row-menu {
    background: transparent;
    border: 0;
    color: #71828b;
    cursor: pointer;
    font-size: .9rem;
}

.vm-empty-state {
    color: #73838d;
    padding: 1.2rem;
    text-align: center;
}

.vm-table-footer {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: .85rem 1.05rem 1rem;
}

.vm-table-footer > span {
    color: #667781;
    font-size: .76rem;
}

.vm-pagination {
    align-items: center;
    display: flex;
    gap: .35rem;
}

.vm-pagination button,
.vm-pagination span {
    align-items: center;
    background: #ffffff;
    border: 1px solid transparent;
    border-radius: 5px;
    color: #344750;
    display: inline-flex;
    font-size: .78rem;
    height: 1.85rem;
    justify-content: center;
    min-width: 1.85rem;
}

.vm-pagination button {
    cursor: pointer;
}

.vm-pagination .active {
    border-color: #9bd7d3;
    color: #008b84;
}

@media (max-width: 1320px) {
    .vm-stat-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .vm-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .vm-quick-grid,
    .vm-metric-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .fi-main {
        padding: 1rem !important;
    }

    .vm-stat-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vm-quick-grid,
    .vm-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vm-trend-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .vm-stat-row,
    .vm-quick-grid,
    .vm-metric-grid,
    .vm-donut-layout,
    .vm-trend-summary {
        grid-template-columns: 1fr;
    }

    .vm-stat-card {
        min-height: auto;
    }

    .vm-table-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: .8rem;
    }
}

/* Sidebar readability and collapse polish */
.fi-sidebar {
    background:
        radial-gradient(circle at 22% 7%, rgba(31, 204, 196, .2), transparent 12rem),
        linear-gradient(180deg, #075f64 0%, #043e45 48%, #023038 100%) !important;
    color: #f4fffd !important;
    transition: width 180ms ease, transform 180ms ease !important;
}

.fi-sidebar-open {
    width: var(--sidebar-width) !important;
}

.fi-sidebar-header {
    border-bottom-color: rgba(255, 255, 255, .12) !important;
}

.fi-sidebar-header .fi-icon-btn {
    color: #e9fffc !important;
}

.fi-sidebar-header .fi-icon-btn:hover {
    background: rgba(255, 255, 255, .1) !important;
    color: #ffffff !important;
}

.fi-sidebar-nav {
    scrollbar-color: rgba(129, 226, 219, .48) rgba(2, 48, 56, .42);
    scrollbar-width: thin;
}

.fi-sidebar-nav::-webkit-scrollbar {
    width: .55rem;
}

.fi-sidebar-nav::-webkit-scrollbar-track {
    background: rgba(2, 48, 56, .42);
    border-radius: 999px;
}

.fi-sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(129, 226, 219, .48);
    border: 2px solid rgba(2, 48, 56, .42);
    border-radius: 999px;
}

.fi-sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(159, 244, 238, .75);
}

.fi-sidebar-nav::-webkit-scrollbar-button {
    display: none;
    height: 0;
    width: 0;
}

.fi-sidebar-group-label {
    color: rgba(227, 255, 252, .72) !important;
}

.fi-sidebar-item a,
.fi-sidebar-item-label,
.fi-sidebar-item-icon,
.fi-sidebar-item svg {
    color: #f2fffd !important;
}

.fi-sidebar-item a {
    background: transparent !important;
    border-color: transparent !important;
    font-weight: 780 !important;
}

.fi-sidebar-item a:hover,
.fi-sidebar-item a:focus-visible {
    background: rgba(255, 255, 255, .1) !important;
    border-color: rgba(255, 255, 255, .12) !important;
    color: #ffffff !important;
}

.fi-sidebar-item a:hover .fi-sidebar-item-label,
.fi-sidebar-item a:focus-visible .fi-sidebar-item-label,
.fi-sidebar-item a:hover .fi-sidebar-item-icon,
.fi-sidebar-item a:focus-visible .fi-sidebar-item-icon {
    color: #ffffff !important;
}

.fi-sidebar-item.fi-active a {
    background: linear-gradient(135deg, #15aaa5 0%, #0b8f89 100%) !important;
    border-color: rgba(255, 255, 255, .2) !important;
    box-shadow: 0 12px 26px rgba(0, 0, 0, .18) !important;
    color: #ffffff !important;
}

.fi-sidebar-item.fi-active .fi-sidebar-item-label,
.fi-sidebar-item.fi-active .fi-sidebar-item-icon,
.fi-sidebar-item.fi-active svg {
    color: #ffffff !important;
}

.fi-sidebar-sub-group-items {
    margin-inline-start: .65rem !important;
}

.fi-sidebar-item-badge,
.fi-badge {
    border-radius: 8px !important;
}

.fi-sidebar .fi-badge {
    background: #f2fffd !important;
    color: #087b78 !important;
    font-weight: 850 !important;
}

.vm-sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, .08);
    margin-top: .65rem;
    padding-top: 1rem;
}

.vm-help-card {
    background: rgba(255, 255, 255, .075);
    border-color: rgba(255, 255, 255, .13);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}

.vm-help-card,
.vm-help-card strong,
.vm-help-card a {
    color: #ffffff !important;
}

.vm-help-card p {
    color: rgba(232, 253, 251, .84) !important;
}

.vm-collapse-btn {
    border-top: 0;
    color: #f2fffd;
    justify-content: flex-start;
    min-height: 2.65rem;
    padding: .25rem .1rem 0;
    width: 100%;
}

.vm-collapse-btn:hover {
    color: #ffffff;
}

.vm-collapse-icon {
    align-items: center;
    display: inline-flex;
    flex: 0 0 2rem;
    font-weight: 900;
    justify-content: center;
}

.vm-collapse-label {
    font-weight: 850;
}

@media (min-width: 1024px) {
    .fi-sidebar:not(.fi-sidebar-open) {
        width: var(--collapsed-sidebar-width) !important;
    }

    .fi-sidebar:not(.fi-sidebar-open) .fi-sidebar-header {
        justify-content: center;
        padding-inline: .65rem !important;
    }

    .fi-sidebar:not(.fi-sidebar-open) .fi-sidebar-nav {
        padding-inline: .65rem !important;
    }

    .fi-sidebar:not(.fi-sidebar-open) .fi-sidebar-item a {
        justify-content: center !important;
        padding-inline: 0 !important;
    }

    .fi-sidebar:not(.fi-sidebar-open) .fi-sidebar-item-icon,
    .fi-sidebar:not(.fi-sidebar-open) .fi-sidebar-item svg {
        height: 1.35rem !important;
        width: 1.35rem !important;
    }

    .fi-sidebar:not(.fi-sidebar-open) .vm-sidebar-footer {
        padding-inline: .65rem;
    }

    .fi-sidebar:not(.fi-sidebar-open) .vm-help-card,
    .fi-sidebar:not(.fi-sidebar-open) .vm-collapse-label {
        display: none !important;
    }

    .fi-sidebar:not(.fi-sidebar-open) .vm-collapse-btn {
        align-items: center;
        justify-content: center;
        padding-top: .35rem;
    }
}

@media (max-width: 1023px) {
    .vm-sidebar-footer {
        padding-bottom: 1rem;
    }
}

/* Final sidebar UI guardrails */
.fi-sidebar {
    background:
        radial-gradient(circle at 22% 7%, rgba(35, 215, 206, .2), transparent 12rem),
        linear-gradient(180deg, #076168 0%, #04484f 48%, #02353d 100%) !important;
    border-right: 0 !important;
    color: #f5fffd !important;
    overflow: hidden !important;
}

.fi-sidebar,
.fi-sidebar * {
    scrollbar-color: rgba(139, 237, 229, .52) rgba(2, 48, 56, .45);
}

.fi-sidebar-nav {
    padding: 1rem .85rem .6rem !important;
    scrollbar-color: rgba(139, 237, 229, .52) rgba(2, 48, 56, .45) !important;
    scrollbar-width: thin !important;
}

.fi-sidebar-nav::-webkit-scrollbar {
    width: .55rem;
}

.fi-sidebar-nav::-webkit-scrollbar-track {
    background: rgba(2, 48, 56, .45);
    border-radius: 999px;
}

.fi-sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(139, 237, 229, .52);
    border: 2px solid rgba(2, 48, 56, .45);
    border-radius: 999px;
}

.fi-sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(184, 255, 250, .78);
}

.fi-sidebar-nav::-webkit-scrollbar-button {
    display: none;
    height: 0;
    width: 0;
}

.fi-sidebar-header {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, .12) !important;
}

.fi-sidebar .fi-logo,
.fi-sidebar-header a,
.fi-sidebar-header span,
.fi-sidebar-header .fi-icon-btn,
.fi-sidebar-header .fi-icon-btn svg {
    color: #ffffff !important;
}

.fi-sidebar-group-button {
    border-radius: 8px !important;
    color: #f5fffd !important;
}

.fi-sidebar-group-button:hover {
    background: rgba(255, 255, 255, .09) !important;
}

.fi-sidebar-group-label,
.fi-sidebar-group-icon,
.fi-sidebar-group-collapse-button,
.fi-sidebar-group-collapse-button svg {
    color: rgba(239, 255, 253, .9) !important;
}

.fi-sidebar-item-button,
.fi-sidebar-item a {
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    color: #f2fffd !important;
    font-weight: 800 !important;
}

.fi-sidebar-item-label,
.fi-sidebar-item-icon,
.fi-sidebar-item svg,
.fi-sidebar-item a span {
    color: #f2fffd !important;
}

.fi-sidebar-item a:hover,
.fi-sidebar-item a:focus-visible,
.fi-sidebar-item-button:hover,
.fi-sidebar-item-button:focus-visible {
    background: rgba(255, 255, 255, .11) !important;
    border-color: rgba(255, 255, 255, .16) !important;
    color: #ffffff !important;
}

.fi-sidebar-item a:hover .fi-sidebar-item-label,
.fi-sidebar-item a:hover .fi-sidebar-item-icon,
.fi-sidebar-item a:hover svg,
.fi-sidebar-item a:focus-visible .fi-sidebar-item-label,
.fi-sidebar-item a:focus-visible .fi-sidebar-item-icon,
.fi-sidebar-item a:focus-visible svg {
    color: #ffffff !important;
}

.fi-sidebar-item.fi-active a,
.fi-sidebar-item.fi-active .fi-sidebar-item-button {
    background: linear-gradient(135deg, #18aaa5 0%, #0b8f89 100%) !important;
    border-color: rgba(255, 255, 255, .24) !important;
    box-shadow: 0 12px 26px rgba(0, 0, 0, .18) !important;
    color: #ffffff !important;
}

.fi-sidebar-item.fi-active .fi-sidebar-item-label,
.fi-sidebar-item.fi-active .fi-sidebar-item-icon,
.fi-sidebar-item.fi-active svg,
.fi-sidebar-item.fi-active span {
    color: #ffffff !important;
}

.fi-sidebar .fi-badge,
.fi-sidebar-item-badge {
    background: #f4fffd !important;
    color: #087b78 !important;
    font-weight: 900 !important;
}

.fi-sidebar-sub-group-items {
    margin-top: .18rem !important;
}

.fi-sidebar-item-grouped-border div {
    background-color: rgba(220, 252, 249, .56) !important;
}

.vm-sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, .1) !important;
    padding: 1rem 1rem 1.25rem !important;
}

.vm-help-card {
    background: rgba(255, 255, 255, .075) !important;
    border: 1px solid rgba(255, 255, 255, .14) !important;
    border-radius: 8px !important;
    color: #ffffff !important;
}

.vm-help-icon {
    background: rgba(255, 255, 255, .14) !important;
}

.vm-help-card strong,
.vm-help-card a {
    color: #ffffff !important;
}

.vm-help-card p {
    color: rgba(232, 253, 251, .84) !important;
}

.vm-collapse-btn {
    align-items: center !important;
    border: 0 !important;
    color: #f2fffd !important;
    cursor: pointer !important;
    display: flex !important;
    justify-content: flex-start !important;
    min-height: 2.55rem !important;
    padding: .2rem 0 0 !important;
    transition: color 150ms ease, transform 150ms ease !important;
}

.vm-collapse-btn:hover,
.vm-collapse-btn:focus-visible {
    color: #ffffff !important;
    transform: translateX(1px);
}

.vm-collapse-icon {
    align-items: center;
    display: inline-flex;
    flex: 0 0 2rem;
    font-weight: 950;
    justify-content: center;
}

.vm-collapse-label {
    color: inherit !important;
    font-weight: 850;
}

@media (min-width: 1024px) {
    .fi-sidebar {
        transition: width 180ms ease !important;
    }

    .fi-sidebar:not(.fi-sidebar-open) {
        width: var(--collapsed-sidebar-width) !important;
    }

    .fi-sidebar:not(.fi-sidebar-open) .fi-sidebar-nav {
        padding-inline: .65rem !important;
    }

    .fi-sidebar:not(.fi-sidebar-open) .fi-sidebar-item a,
    .fi-sidebar:not(.fi-sidebar-open) .fi-sidebar-item-button {
        justify-content: center !important;
        padding-inline: 0 !important;
    }

    .fi-sidebar:not(.fi-sidebar-open) .fi-sidebar-item-icon,
    .fi-sidebar:not(.fi-sidebar-open) .fi-sidebar-item svg,
    .fi-sidebar:not(.fi-sidebar-open) .fi-sidebar-group-icon,
    .fi-sidebar:not(.fi-sidebar-open) .fi-sidebar-group-button svg {
        height: 1.35rem !important;
        width: 1.35rem !important;
    }

    .fi-sidebar:not(.fi-sidebar-open) .vm-sidebar-footer {
        padding-inline: .65rem !important;
    }

    .fi-sidebar:not(.fi-sidebar-open) .vm-help-card,
    .fi-sidebar:not(.fi-sidebar-open) .vm-collapse-label {
        display: none !important;
    }

    .fi-sidebar:not(.fi-sidebar-open) .vm-collapse-btn {
        justify-content: center !important;
        padding-top: .35rem !important;
    }
}

@media (max-width: 1023px) {
    .fi-sidebar {
        box-shadow: 18px 0 50px rgba(2, 48, 56, .26) !important;
    }
}

/* Main administrator Business Profiles reference layout */
body:has(.vm-business-profiles) .fi-page > .fi-header {
    display: none;
}

.vm-business-profiles {
    display: grid;
    gap: 1.55rem;
}

.vmb-page-heading {
    display: grid;
    gap: .42rem;
    padding: .25rem .35rem 0;
}

.vmb-page-heading h1 {
    color: #10242d;
    font-size: 1.72rem;
    font-weight: 860;
    letter-spacing: 0;
    line-height: 1.12;
    margin: 0;
}

.vmb-page-heading p {
    color: #5f6f7b;
    font-size: .96rem;
    font-weight: 560;
    margin: 0;
}

.vmb-stats {
    display: grid;
    gap: 1.45rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vmb-stat-card {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dfe7ea;
    border-radius: 8px;
    box-shadow: 0 9px 24px rgba(17, 35, 42, .06);
    display: grid;
    gap: 1rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 8.15rem;
    padding: 1.55rem;
}

.vmb-stat-icon {
    align-items: center;
    border-radius: 14px;
    display: inline-flex;
    height: 4.35rem;
    justify-content: center;
    width: 4.35rem;
}

.vmb-icon {
    display: block;
    height: 1.28rem;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 1.28rem;
}

.vmb-stat-icon .vmb-icon {
    height: 1.75rem;
    width: 1.75rem;
}

.vmb-tone-teal {
    background: #def5f2;
    color: #008b84;
}

.vmb-tone-green {
    background: #e5f7e9;
    color: #15915a;
}

.vmb-tone-amber {
    background: #fff1da;
    color: #e28100;
}

.vmb-stat-copy {
    display: grid;
    min-width: 0;
}

.vmb-stat-copy span {
    color: #536575;
    font-size: .9rem;
    font-weight: 720;
}

.vmb-stat-copy strong {
    color: #0f2230;
    font-size: 1.62rem;
    font-weight: 880;
    line-height: 1.05;
    margin-top: .45rem;
}

.vmb-stat-copy small {
    color: #5f6f7b;
    font-size: .8rem;
    font-weight: 560;
    margin-top: .35rem;
}

.vmb-stat-delta {
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    font-size: .82rem;
    font-weight: 820;
    gap: .35rem;
    justify-self: end;
    padding: .48rem .7rem;
}

.vmb-stat-delta svg {
    height: .72rem;
    width: .72rem;
}

.vmb-delta-teal,
.vmb-delta-green {
    background: #ddf5e5;
    color: #13965a;
}

.vmb-delta-amber {
    background: #fff3df;
    color: #ed7c00;
}

.vmb-table-card {
    background: #ffffff;
    border: 1px solid #dfe7ea;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(17, 35, 42, .06);
    overflow: hidden;
}

.vmb-toolbar {
    align-items: center;
    display: grid;
    gap: 1.4rem;
    grid-template-columns: minmax(16rem, 1.3fr) minmax(10rem, .86fr) minmax(10rem, .86fr) minmax(9rem, .75fr) minmax(9.6rem, auto);
    padding: 2rem 1.55rem 1.85rem;
}

.vmb-search,
.vmb-select,
.vmb-filter-button,
.vmb-add-button,
.vmb-per-page {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dce5e9;
    border-radius: 8px;
    color: #233746;
    display: flex;
    min-height: 3.1rem;
}

.vmb-search {
    gap: .78rem;
    padding: 0 1rem;
}

.vmb-search .vmb-icon {
    color: #5f7284;
    flex: 0 0 auto;
    height: 1.18rem;
    width: 1.18rem;
}

.vmb-search input {
    background: transparent;
    border: 0;
    color: #10242d;
    font-size: .92rem;
    font-weight: 560;
    min-width: 0;
    outline: 0;
    width: 100%;
}

.vmb-search input::placeholder {
    color: #93a2ad;
}

.vmb-select {
    display: grid;
    gap: .05rem;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: .36rem .85rem .28rem 1rem;
    position: relative;
}

.vmb-select span {
    color: #6f7d88;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1;
}

.vmb-select select,
.vmb-per-page select {
    appearance: none;
    background: transparent;
    border: 0;
    color: #233746;
    font-size: .88rem;
    font-weight: 690;
    grid-column: 1;
    outline: 0;
    padding: 0;
    width: 100%;
}

.vmb-select .vmb-icon,
.vmb-per-page .vmb-icon {
    color: #536575;
    grid-column: 2;
    grid-row: 1 / span 2;
    height: 1rem;
    pointer-events: none;
    width: 1rem;
}

.vmb-filter-button,
.vmb-add-button {
    font-size: .9rem;
    font-weight: 760;
    gap: .6rem;
    justify-content: center;
    text-decoration: none;
}

.vmb-filter-button {
    cursor: pointer;
    padding: 0 1rem;
}

.vmb-filter-button .vmb-icon {
    height: 1.05rem;
    width: 1.05rem;
}

.vmb-add-button {
    background: linear-gradient(135deg, #078c88, #006f72);
    border-color: #007d7a;
    box-shadow: 0 10px 20px rgba(0, 119, 116, .2);
    color: #ffffff !important;
    justify-self: end;
    min-width: 11.4rem;
}

.vmb-add-button:hover {
    background: linear-gradient(135deg, #087f7b, #005f63);
}

.vmb-table-wrap {
    overflow-x: auto;
}

.vmb-table {
    border-collapse: collapse;
    min-width: 84rem;
    width: 100%;
}

.vmb-table th {
    border-top: 1px solid #edf2f4;
    border-bottom: 1px solid #dfe7ea;
    color: #10242d;
    font-size: .86rem;
    font-weight: 820;
    padding: 1.25rem 1.5rem;
    text-align: left;
    white-space: nowrap;
}

.vmb-table td {
    border-bottom: 1px solid #edf2f4;
    color: #273b4a;
    font-size: .84rem;
    padding: 1.72rem 1.5rem;
    vertical-align: middle;
}

.vmb-business-cell {
    align-items: center;
    display: grid;
    gap: .92rem;
    grid-template-columns: auto minmax(0, 1fr);
    min-width: 16rem;
}

.vmb-business-avatar {
    align-items: center;
    background: #d3f1ef;
    border-radius: 8px;
    color: #008b84;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: .95rem;
    font-weight: 850;
    height: 3.15rem;
    justify-content: center;
    width: 3.15rem;
}

.vmb-business-cell strong,
.vmb-owner-cell strong,
.vmb-date-cell strong,
.vmb-staff-count strong {
    color: #10242d;
    display: block;
    font-size: .9rem;
    font-weight: 820;
    line-height: 1.22;
}

.vmb-business-cell span:not(.vmb-business-avatar),
.vmb-owner-cell span,
.vmb-date-cell span,
.vmb-staff-count span,
.vmb-plan-cell small,
.vmb-subscription-cell small {
    color: #596c79;
    display: block;
    font-size: .8rem;
    font-weight: 560;
    margin-top: .38rem;
}

.vmb-business-cell small {
    align-items: center;
    color: #647581;
    display: flex;
    font-size: .76rem;
    gap: .28rem;
    margin-top: .42rem;
}

.vmb-business-cell small .vmb-icon {
    height: .82rem;
    width: .82rem;
}

.vmb-owner-cell,
.vmb-date-cell,
.vmb-staff-count,
.vmb-plan-cell,
.vmb-subscription-cell {
    display: grid;
    min-width: 0;
}

.vmb-pill {
    border-radius: 7px;
    display: inline-flex;
    font-size: .82rem;
    font-weight: 780;
    justify-self: start;
    line-height: 1;
    padding: .55rem .78rem;
    text-transform: capitalize;
    white-space: nowrap;
}

.vmb-plan-premium {
    background: #f1eaff;
    color: #4f20d1;
}

.vmb-plan-basic {
    background: #e8f4ff;
    color: #006bb4;
}

.vmb-plan-none {
    background: #eef2f4;
    color: #5c6b75;
}

.vmb-subscription-active,
.vmb-status-approved {
    background: #ddf5e5;
    color: #12905b;
}

.vmb-subscription-trial,
.vmb-subscription-trialing,
.vmb-subscription-pending,
.vmb-status-pending {
    background: #fff2dc;
    color: #ed7c00;
}

.vmb-subscription-cancelled,
.vmb-subscription-expired,
.vmb-subscription-past_due,
.vmb-status-rejected,
.vmb-status-disabled {
    background: #ffe9e6;
    color: #d93424;
}

.vmb-subscription-none {
    background: #eef2f4;
    color: #657582;
}

.vmb-action-button {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dce5e9;
    border-radius: 8px;
    color: #536575;
    display: inline-flex;
    height: 3rem;
    justify-content: center;
    text-decoration: none;
    width: 3.65rem;
}

.vmb-action-menu {
    display: inline-flex;
    position: relative;
}

.vmb-action-menu summary {
    cursor: pointer;
    list-style: none;
}

.vmb-action-menu summary::-webkit-details-marker {
    display: none;
}

.vmb-action-button:hover {
    border-color: #98d4d0;
    color: #008b84;
}

.vmb-action-button .vmb-icon {
    height: 1.25rem;
    width: 1.25rem;
}

.vmb-action-panel {
    background: #ffffff;
    border: 1px solid #dce5e9;
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(17, 35, 42, .16);
    display: grid;
    gap: .12rem;
    min-width: 16.5rem;
    padding: .45rem;
    position: absolute;
    right: 0;
    top: calc(100% + .45rem);
    z-index: 40;
}

.vmb-action-panel a,
.vmb-action-panel button {
    background: transparent;
    border: 0;
    border-radius: 7px;
    color: #233746;
    cursor: pointer;
    display: block;
    font-size: .82rem;
    font-weight: 720;
    padding: .68rem .78rem;
    text-align: left;
    text-decoration: none;
    width: 100%;
}

.vmb-action-panel a:hover,
.vmb-action-panel button:hover {
    background: #eefafa;
    color: #007d7a;
}

.vmb-action-panel .vmb-danger {
    color: #d93424;
}

.vmb-action-panel .vmb-danger:hover {
    background: #fff0ee;
    color: #c42e20;
}

.vmb-empty {
    color: #647581;
    padding: 2rem;
    text-align: center;
}

.vmb-table-footer {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1.5rem 1.55rem;
}

.vmb-table-footer > span {
    color: #536575;
    font-size: .86rem;
    font-weight: 560;
}

.vmb-pagination {
    align-items: center;
    display: flex;
    gap: .6rem;
}

.vmb-pagination a {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dce5e9;
    border-radius: 8px;
    color: #334757;
    display: inline-flex;
    font-size: .92rem;
    font-weight: 720;
    height: 2.72rem;
    justify-content: center;
    min-width: 2.72rem;
    text-decoration: none;
}

.vmb-pagination a.is-active {
    background: linear-gradient(135deg, #078c88, #006f72);
    border-color: #007d7a;
    box-shadow: 0 8px 18px rgba(0, 119, 116, .18);
    color: #ffffff;
}

.vmb-pagination a.is-disabled {
    color: #a7b3bb;
    pointer-events: none;
}

.vmb-pagination a .vmb-icon {
    height: 1.1rem;
    width: 1.1rem;
}

.vmb-per-page {
    min-width: 8.2rem;
    padding: 0 .85rem;
}

@media (max-width: 1380px) {
    .vmb-toolbar {
        grid-template-columns: minmax(16rem, 1fr) repeat(3, minmax(9rem, auto));
    }

    .vmb-add-button {
        grid-column: 4;
    }
}

@media (max-width: 1080px) {
    .vmb-stats,
    .vmb-toolbar {
        grid-template-columns: 1fr;
    }

    .vmb-add-button {
        grid-column: auto;
        justify-self: stretch;
    }

    .vmb-table-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .vm-business-profiles {
        gap: 1rem;
    }

    .vmb-stat-card {
        grid-template-columns: auto minmax(0, 1fr);
        padding: 1.1rem;
    }

    .vmb-stat-delta {
        grid-column: 2;
        justify-self: start;
    }

    .vmb-toolbar {
        gap: .85rem;
        padding: 1rem;
    }

    .vmb-pagination {
        flex-wrap: wrap;
    }
}

/* Business Profiles responsive polish */
body:has(.vm-business-profiles) .fi-main {
    overflow-x: clip !important;
}

.vm-business-profiles {
    gap: clamp(1rem, 1.7vw, 1.45rem);
    max-width: 100%;
    min-width: 0;
    width: 100%;
}

.vmb-stats {
    gap: clamp(.85rem, 1.4vw, 1.15rem);
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vmb-stat-card {
    border-radius: 10px;
    gap: .85rem;
    min-height: 6.75rem;
    padding: 1.12rem;
}

.vmb-stat-icon {
    border-radius: 10px;
    height: 3.55rem;
    width: 3.55rem;
}

.vmb-stat-copy strong {
    font-size: 1.42rem;
}

.vmb-table-card {
    border-radius: 10px;
    overflow: visible;
}

.vmb-toolbar {
    align-items: end;
    gap: .8rem;
    grid-template-columns: minmax(18rem, 1fr) minmax(8.5rem, 11rem) minmax(8.5rem, 11rem) max-content max-content;
    padding: 1.1rem;
}

.vmb-search,
.vmb-select,
.vmb-filter-button,
.vmb-add-button,
.vmb-per-page {
    border-radius: 9px;
    min-height: 2.85rem;
}

.vmb-filter-button,
.vmb-add-button {
    min-width: 0;
    padding-inline: 1rem;
}

.vmb-add-button {
    grid-column: auto;
    min-width: 10rem;
}

.vmb-table-wrap {
    overflow: visible;
}

.vmb-table {
    border-collapse: separate;
    border-spacing: 0;
    min-width: 0;
    table-layout: fixed;
    width: 100%;
}

.vmb-col-business { width: 24%; }
.vmb-col-owner { width: 15%; }
.vmb-col-plan { width: 9%; }
.vmb-col-subscription { width: 12%; }
.vmb-col-staff { width: 6%; }
.vmb-col-status { width: 9%; }
.vmb-col-login { width: 9%; }
.vmb-col-created { width: 8%; }
.vmb-col-actions { width: 8%; }

.vmb-table th {
    background: #fbfdfd;
    font-size: .78rem;
    padding: .92rem .85rem;
}

.vmb-table td {
    font-size: .8rem;
    padding: 1rem .85rem;
}

.vmb-table tbody tr {
    position: relative;
}

.vmb-table tbody tr:hover {
    background: #fbfefe;
}

.vmb-table tbody tr:has(.vmb-action-menu[open]) {
    z-index: 25;
}

.vmb-business-cell {
    gap: .65rem;
    min-width: 0;
}

.vmb-business-cell > div,
.vmb-owner-cell,
.vmb-date-cell,
.vmb-staff-count,
.vmb-plan-cell,
.vmb-subscription-cell {
    min-width: 0;
}

.vmb-business-avatar {
    border-radius: 9px;
    font-size: .82rem;
    height: 2.7rem;
    width: 2.7rem;
}

.vmb-business-cell strong,
.vmb-owner-cell strong,
.vmb-date-cell strong,
.vmb-staff-count strong {
    font-size: .82rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vmb-business-cell span:not(.vmb-business-avatar),
.vmb-owner-cell span,
.vmb-date-cell span,
.vmb-staff-count span,
.vmb-plan-cell small,
.vmb-subscription-cell small,
.vmb-business-cell small {
    font-size: .74rem;
    overflow-wrap: anywhere;
}

.vmb-pill {
    border-radius: 8px;
    font-size: .74rem;
    padding: .44rem .58rem;
}

.vmb-action-menu {
    justify-content: flex-end;
}

.vmb-action-button {
    border-radius: 9px;
    height: 2.45rem;
    width: 2.85rem;
}

.vmb-action-menu[open] .vmb-action-button {
    border-color: #8bd4cf;
    color: #007d7a;
}

.vmb-action-panel {
    border-radius: 10px;
    max-height: min(26rem, calc(100vh - 10rem));
    min-width: 16rem;
    overflow-y: auto;
    right: 0;
}

.vmb-table-footer {
    padding: 1rem 1.1rem;
}

@media (max-width: 1320px) {
    .vmb-toolbar {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .vmb-search {
        grid-column: 1 / -1;
    }

    .vmb-add-button {
        justify-self: stretch;
    }
}

@media (max-width: 1180px) {
    .vmb-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vmb-table {
        display: block;
    }

    .vmb-table colgroup,
    .vmb-table thead {
        display: none;
    }

    .vmb-table tbody {
        display: grid;
        gap: .9rem;
        padding: 0 1rem 1rem;
    }

    .vmb-table tr,
    .vmb-table td {
        display: block;
        width: 100%;
    }

    .vmb-table tr {
        background: #ffffff;
        border: 1px solid #dfe7ea;
        border-radius: 10px;
        box-shadow: 0 10px 22px rgba(17, 35, 42, .05);
        overflow: visible;
        padding: .95rem;
    }

    .vmb-table td {
        align-items: center;
        border-bottom: 1px solid #eef3f5;
        display: grid;
        gap: .8rem;
        grid-template-columns: 8.5rem minmax(0, 1fr);
        padding: .78rem 0;
    }

    .vmb-table td::before {
        color: #71818b;
        content: attr(data-label);
        font-size: .72rem;
        font-weight: 820;
        text-transform: uppercase;
    }

    .vmb-table td:first-child {
        border-bottom-color: #dfe7ea;
        grid-template-columns: 1fr;
        padding-top: 0;
    }

    .vmb-table td:first-child::before,
    .vmb-table td:last-child::before {
        display: none;
    }

    .vmb-table td:last-child {
        border-bottom: 0;
        grid-template-columns: 1fr;
        justify-items: end;
        padding-bottom: 0;
    }

    .vmb-business-cell {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .vmb-action-panel {
        right: 0;
    }
}

@media (max-width: 760px) {
    .vmb-page-heading {
        padding-inline: 0;
    }

    .vmb-page-heading h1 {
        font-size: 1.45rem;
    }

    .vmb-stats,
    .vmb-toolbar {
        grid-template-columns: 1fr;
    }

    .vmb-search {
        grid-column: auto;
    }

    .vmb-filter-button,
    .vmb-add-button {
        justify-self: stretch;
        width: 100%;
    }

    .vmb-table tbody {
        padding: 0 .75rem .75rem;
    }

    .vmb-table tr {
        padding: .85rem;
    }

    .vmb-table td {
        align-items: start;
        gap: .35rem;
        grid-template-columns: 1fr;
    }

    .vmb-table td::before {
        line-height: 1;
    }

    .vmb-business-cell {
        align-items: start;
    }

    .vmb-action-menu,
    .vmb-action-button {
        width: 100%;
    }

    .vmb-action-panel {
        left: 0;
        min-width: 0;
        right: 0;
        width: 100%;
    }

    .vmb-table-footer {
        padding: .9rem .75rem;
    }

    .vmb-pagination {
        gap: .45rem;
    }
}

/* Workshop Calendar reference layout */
body:has(.vmc-page) .fi-page > .fi-header {
    display: none;
}

body:has(.vmc-page) .fi-main {
    overflow-x: clip !important;
}

.vmc-page {
    color: #10242d;
    display: grid;
    gap: 1.15rem;
    min-width: 0;
}

.vmc-page-head {
    align-items: end;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.vmc-page-head h1 {
    color: #10242d;
    font-size: 1.55rem;
    font-weight: 880;
    letter-spacing: 0;
    line-height: 1.1;
    margin: 0;
}

.vmc-page-head p {
    color: #516473;
    font-size: .88rem;
    font-weight: 560;
    margin: .45rem 0 0;
}

.vmc-icon {
    display: block;
    height: 1.08rem;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 1.08rem;
}

.vmc-new-booking,
.vmc-filter-button,
.vmc-today,
.vmc-icon-button,
.vmc-date-range,
.vmc-staff-filter,
.vmc-search,
.vmc-view-tabs {
    border-radius: 8px;
}

.vmc-new-booking {
    align-items: center;
    background: linear-gradient(135deg, #078c88, #006f72);
    box-shadow: 0 12px 24px rgba(0, 119, 116, .18);
    color: #ffffff !important;
    display: inline-flex;
    font-size: .86rem;
    font-weight: 820;
    gap: .55rem;
    justify-content: center;
    min-height: 2.7rem;
    padding: 0 1rem;
    text-decoration: none;
    white-space: nowrap;
}

.vmc-command-row {
    align-items: center;
    display: grid;
    gap: .85rem;
    grid-template-columns: max-content minmax(22rem, 1fr) max-content;
}

.vmc-view-tabs {
    background: #ffffff;
    border: 1px solid #dfe7ea;
    box-shadow: 0 8px 20px rgba(17, 35, 42, .04);
    display: inline-grid;
    gap: .25rem;
    grid-template-columns: repeat(4, max-content);
    padding: .3rem;
}

.vmc-view-tabs a {
    align-items: center;
    border-radius: 7px;
    color: #263a48;
    display: inline-flex;
    font-size: .82rem;
    font-weight: 780;
    justify-content: center;
    min-height: 2.35rem;
    min-width: 4rem;
    padding: 0 .85rem;
    text-decoration: none;
}

.vmc-view-tabs a.is-active {
    background: linear-gradient(135deg, #087f7b, #006469);
    box-shadow: 0 8px 18px rgba(0, 119, 116, .18);
    color: #ffffff;
}

.vmc-filters {
    display: grid;
    gap: .75rem;
    grid-template-columns: minmax(9rem, 11rem) minmax(12rem, 1fr) max-content;
}

.vmc-staff-filter,
.vmc-search,
.vmc-filter-button,
.vmc-date-range,
.vmc-today,
.vmc-icon-button {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dfe7ea;
    color: #263a48;
    display: inline-flex;
    min-height: 2.75rem;
}

.vmc-staff-filter,
.vmc-search {
    gap: .55rem;
    padding: 0 .85rem;
}

.vmc-staff-filter select,
.vmc-search input {
    appearance: none;
    background: transparent;
    border: 0;
    color: #263a48;
    font-size: .82rem;
    font-weight: 650;
    min-width: 0;
    outline: 0;
    width: 100%;
}

.vmc-search input::placeholder {
    color: #8a9aa7;
}

.vmc-filter-button {
    cursor: pointer;
    font-size: .84rem;
    font-weight: 820;
    gap: .5rem;
    justify-content: center;
    padding: 0 .9rem;
}

.vmc-date-tools {
    align-items: center;
    display: flex;
    gap: .55rem;
    justify-content: flex-end;
    min-width: 0;
}

.vmc-today,
.vmc-icon-button,
.vmc-date-range {
    font-size: .82rem;
    font-weight: 780;
    justify-content: center;
    text-decoration: none;
}

.vmc-today {
    padding: 0 1rem;
}

.vmc-icon-button {
    cursor: pointer;
    width: 2.75rem;
}

.vmc-date-range {
    gap: .5rem;
    min-width: 13.75rem;
    padding: 0 .95rem;
}

.vmc-calendar-card,
.vmc-stats {
    background: #ffffff;
    border: 1px solid #dfe7ea;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(17, 35, 42, .06);
}

.vmc-calendar-card {
    overflow: hidden;
}

.vmc-schedule-shell {
    overflow-x: auto;
    scrollbar-color: rgba(0, 128, 125, .38) transparent;
    scrollbar-width: thin;
}

.vmc-schedule {
    min-width: 68rem;
}

.vmc-schedule-day {
    min-width: 30rem;
}

.vmc-schedule-header,
.vmc-all-day-row,
.vmc-grid-body {
    display: grid;
    grid-template-columns: 5.75rem repeat(var(--vmc-days), minmax(0, 1fr));
}

.vmc-schedule-header {
    border-bottom: 1px solid #dfe7ea;
    min-height: 4.45rem;
}

.vmc-time-head,
.vmc-time-label,
.vmc-time-rail {
    border-right: 1px solid #dfe7ea;
}

.vmc-day-head {
    align-items: center;
    border-right: 1px solid #e7eef0;
    display: grid;
    gap: .35rem;
    justify-items: center;
    padding: .75rem .5rem;
}

.vmc-day-head:last-child,
.vmc-all-day-cell:last-child,
.vmc-day-column:last-child {
    border-right: 0;
}

.vmc-day-head span {
    color: #10242d;
    font-size: .78rem;
    font-weight: 820;
}

.vmc-day-head strong {
    color: #304755;
    font-size: .82rem;
    font-weight: 760;
}

.vmc-day-head strong.is-today,
.vmc-month-day strong.is-today {
    align-items: center;
    background: linear-gradient(135deg, #078c88, #006f72);
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    height: 2.05rem;
    justify-content: center;
    min-width: 2.05rem;
    padding: 0 .45rem;
}

.vmc-all-day-row {
    border-bottom: 1px solid #dfe7ea;
    min-height: 3.5rem;
}

.vmc-time-label {
    align-items: center;
    color: #304755;
    display: flex;
    font-size: .78rem;
    font-weight: 780;
    justify-content: center;
}

.vmc-all-day-cell {
    align-content: center;
    border-right: 1px solid #e7eef0;
    display: grid;
    gap: .3rem;
    min-width: 0;
    padding: .55rem .8rem;
}

.vmc-all-day-pill {
    border-radius: 7px;
    display: block;
    font-size: .72rem;
    font-weight: 820;
    overflow: hidden;
    padding: .42rem .6rem;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vmc-grid-body {
    min-height: 600px;
}

.vmc-time-rail {
    position: relative;
}

.vmc-time-rail span {
    color: #263a48;
    font-size: .78rem;
    font-weight: 760;
    left: 0;
    padding-right: 1rem;
    position: absolute;
    text-align: right;
    transform: translateY(-.55rem);
    width: 100%;
}

.vmc-day-column {
    background:
        repeating-linear-gradient(to bottom, transparent 0, transparent 59px, #e7eef0 60px),
        linear-gradient(#ffffff, #ffffff);
    border-right: 1px solid #e7eef0;
    min-width: 0;
    position: relative;
}

.vmc-event {
    border: 1px solid currentColor;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(17, 35, 42, .07);
    display: grid;
    gap: .15rem;
    height: var(--vmc-height);
    left: var(--vmc-left);
    min-height: 3.25rem;
    overflow: hidden;
    padding: .5rem .62rem;
    position: absolute;
    text-decoration: none;
    top: var(--vmc-top);
    width: var(--vmc-width);
}

.vmc-event strong {
    align-items: center;
    display: flex;
    font-size: .72rem;
    font-weight: 900;
    gap: .28rem;
    line-height: 1.15;
}

.vmc-event strong span {
    background: currentColor;
    border-radius: 999px;
    flex: 0 0 auto;
    height: .35rem;
    width: .35rem;
}

.vmc-event em,
.vmc-event small {
    display: block;
    font-style: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vmc-event em {
    color: #213746;
    font-size: .72rem;
    font-weight: 780;
}

.vmc-event small {
    color: #4f6270;
    font-size: .68rem;
    font-weight: 600;
}

.vmc-tone-blue {
    background: #e9f3ff;
    color: #1c75d8;
}

.vmc-tone-mint {
    background: #dcf5ed;
    color: #0d8f68;
}

.vmc-tone-amber {
    background: #fff1dc;
    color: #d87500;
}

.vmc-tone-purple {
    background: #f0eaff;
    color: #6a45d9;
}

.vmc-tone-rose {
    background: #fff0f1;
    color: #df3b47;
}

.vmc-month {
    display: grid;
}

.vmc-month-weekdays,
.vmc-month-week {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.vmc-month-weekdays {
    background: #fbfdfd;
    border-bottom: 1px solid #dfe7ea;
}

.vmc-month-weekdays span {
    color: #536575;
    font-size: .75rem;
    font-weight: 840;
    padding: .85rem;
    text-align: center;
}

.vmc-month-day {
    border-bottom: 1px solid #e7eef0;
    border-right: 1px solid #e7eef0;
    display: grid;
    gap: .55rem;
    min-height: 8.25rem;
    padding: .75rem;
}

.vmc-month-day:nth-child(7n) {
    border-right: 0;
}

.vmc-month-day.is-muted {
    background: #f8fafb;
    color: #94a3ad;
}

.vmc-month-day > strong {
    font-size: .85rem;
    font-weight: 880;
    justify-self: start;
}

.vmc-month-day > div {
    display: grid;
    gap: .3rem;
}

.vmc-month-event,
.vmc-month-more {
    border-radius: 7px;
    display: block;
    font-size: .68rem;
    font-weight: 780;
    overflow: hidden;
    padding: .34rem .45rem;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vmc-month-more {
    background: #eef3f5;
    color: #536575;
}

.vmc-timeline {
    display: grid;
    gap: 1rem;
    padding: 1rem;
}

.vmc-timeline-group {
    display: grid;
    gap: .65rem;
}

.vmc-timeline-group h2 {
    color: #10242d;
    font-size: .95rem;
    font-weight: 880;
    margin: 0;
}

.vmc-timeline-group > div {
    display: grid;
    gap: .55rem;
}

.vmc-timeline-event {
    align-items: center;
    border: 1px solid currentColor;
    border-radius: 8px;
    display: grid;
    gap: .2rem .85rem;
    grid-template-columns: 7.75rem minmax(0, 1fr);
    padding: .72rem .85rem;
    text-decoration: none;
}

.vmc-timeline-event span {
    font-size: .75rem;
    font-weight: 880;
    grid-row: span 2;
}

.vmc-timeline-event strong {
    color: #10242d;
    font-size: .86rem;
    font-weight: 850;
}

.vmc-timeline-event small {
    color: #536575;
    font-size: .75rem;
    font-weight: 650;
}

.vmc-empty {
    color: #536575;
    font-weight: 700;
    padding: 3rem 1rem;
    text-align: center;
}

.vmc-stats {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 1.05rem 1.2rem;
}

.vmc-stat {
    align-items: center;
    border-right: 1px solid #e7eef0;
    display: grid;
    gap: .15rem .75rem;
    grid-template-columns: auto minmax(0, 1fr);
    min-width: 0;
}

.vmc-stat:last-child {
    border-right: 0;
}

.vmc-stat > span {
    align-items: center;
    border-radius: 10px;
    display: inline-flex;
    grid-row: span 2;
    height: 2.45rem;
    justify-content: center;
    width: 2.45rem;
}

.vmc-stat strong {
    color: #10242d;
    font-size: 1.08rem;
    font-weight: 900;
    line-height: 1;
}

.vmc-stat small {
    color: #536575;
    font-size: .76rem;
    font-weight: 680;
}

.vmc-stat-indigo > span { background: #edf0ff; color: #4c62d6; }
.vmc-stat-green > span { background: #dcf5ed; color: #0d8f68; }
.vmc-stat-amber > span { background: #fff1dc; color: #d87500; }
.vmc-stat-blue > span { background: #e9f3ff; color: #1c75d8; }
.vmc-stat-rose > span { background: #fff0f1; color: #df3b47; }

@media (max-width: 1440px) {
    .vmc-command-row {
        grid-template-columns: 1fr;
    }

    .vmc-view-tabs {
        justify-self: start;
    }

    .vmc-date-tools {
        justify-content: flex-start;
    }
}

@media (max-width: 980px) {
    .vmc-page-head {
        align-items: stretch;
        flex-direction: column;
    }

    .vmc-new-booking {
        align-self: flex-start;
    }

    .vmc-filters {
        grid-template-columns: 1fr;
    }

    .vmc-date-tools {
        flex-wrap: wrap;
    }

    .vmc-date-range {
        order: -1;
        width: 100%;
    }

    .vmc-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vmc-stat {
        border-right: 0;
    }
}

@media (max-width: 760px) {
    .vmc-view-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .vmc-view-tabs a {
        min-width: 0;
    }

    .vmc-schedule {
        min-width: 54rem;
    }

    .vmc-schedule-day {
        min-width: 24rem;
    }

    .vmc-schedule-header,
    .vmc-all-day-row,
    .vmc-grid-body {
        grid-template-columns: 4.65rem repeat(var(--vmc-days), minmax(7rem, 1fr));
    }

    .vmc-time-rail span,
    .vmc-time-label {
        font-size: .7rem;
    }

    .vmc-month {
        overflow-x: auto;
    }

    .vmc-month-weekdays,
    .vmc-month-week {
        min-width: 44rem;
    }

    .vmc-timeline-event {
        grid-template-columns: 1fr;
    }

    .vmc-timeline-event span {
        grid-row: auto;
    }

    .vmc-stats {
        grid-template-columns: 1fr;
    }
}

/* Quote detail reference layout */
body:has(.vm-quote-page) .fi-page > .fi-header {
    display: none;
}

body:has(.vm-quote-page) .fi-main {
    overflow-x: clip !important;
}

.vm-quote-page {
    color: #10242d;
    display: grid;
    gap: 1.18rem;
    padding: .15rem .05rem 0;
}

.vmq-icon {
    display: block;
    height: 1.1rem;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 1.1rem;
}

.vmq-header {
    align-items: flex-end;
    display: flex;
    gap: 1.2rem;
    justify-content: space-between;
    min-width: 0;
}

.vmq-title-stack {
    display: grid;
    gap: .58rem;
    min-width: 0;
}

.vmq-back,
.vmq-action,
.vmq-small-action,
.vmq-note-action,
.vmq-icon-action {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dce5e9;
    border-radius: 8px;
    color: #223544;
    display: inline-flex;
    font-size: .84rem;
    font-weight: 820;
    gap: .5rem;
    justify-content: center;
    min-height: 2.72rem;
    padding: 0 .95rem;
    text-decoration: none;
    transition: border-color 140ms ease, box-shadow 140ms ease, color 140ms ease, transform 140ms ease;
    white-space: nowrap;
}

.vmq-back {
    justify-self: start;
}

.vmq-back:hover,
.vmq-action:hover,
.vmq-small-action:hover,
.vmq-note-action:hover,
.vmq-icon-action:hover {
    border-color: #a8d9d5;
    box-shadow: 0 8px 20px rgba(16, 58, 66, .08);
    color: #007f7a;
    transform: translateY(-1px);
}

.vmq-action:disabled {
    color: #95a4ad;
    cursor: not-allowed;
    opacity: .72;
    transform: none;
}

.vmq-title-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    min-width: 0;
}

.vmq-title-row h1 {
    color: #0f2230;
    font-size: clamp(1.45rem, 2.3vw, 1.86rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.08;
    margin: 0;
}

.vmq-title-stack p {
    color: #506170;
    font-size: .9rem;
    font-weight: 620;
    margin: -.2rem 0 0;
}

.vmq-pill {
    border-radius: 7px;
    display: inline-flex;
    font-size: .72rem;
    font-style: normal;
    font-weight: 850;
    line-height: 1;
    padding: .48rem .66rem;
    white-space: nowrap;
}

.vmq-pill-green,
.vmq-pill-teal {
    background: #dff6e8;
    color: #0b8a58;
}

.vmq-pill-blue {
    background: #e7f2ff;
    color: #126ab4;
}

.vmq-pill-amber {
    background: #fff0d5;
    color: #cf7200;
}

.vmq-pill-rose {
    background: #ffe7e8;
    color: #cf2d3b;
}

.vmq-pill-slate {
    background: #eef3f5;
    color: #596a75;
}

.vmq-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .72rem;
    justify-content: flex-end;
}

.vmq-action {
    min-width: 8.75rem;
}

.vmq-icon-action {
    cursor: pointer;
    height: 2.72rem;
    min-width: 2.72rem;
    padding: 0;
    width: 2.72rem;
}

.vmq-more {
    display: inline-flex;
    position: relative;
}

.vmq-more summary {
    list-style: none;
}

.vmq-more summary::-webkit-details-marker {
    display: none;
}

.vmq-more-panel {
    background: #ffffff;
    border: 1px solid #dce5e9;
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(17, 35, 42, .16);
    display: grid;
    gap: .12rem;
    min-width: 13.25rem;
    padding: .45rem;
    position: absolute;
    right: 0;
    top: calc(100% + .45rem);
    z-index: 40;
}

.vmq-more-panel a,
.vmq-more-panel button {
    background: transparent;
    border: 0;
    border-radius: 7px;
    color: #223544;
    cursor: pointer;
    display: block;
    font-size: .82rem;
    font-weight: 760;
    padding: .68rem .78rem;
    text-align: left;
    text-decoration: none;
    width: 100%;
}

.vmq-more-panel a:hover,
.vmq-more-panel button:hover {
    background: #eefafa;
    color: #007d7a;
}

.vmq-progress-card,
.vmq-card {
    background: #ffffff;
    border: 1px solid #dfe7ea;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(17, 35, 42, .06);
    min-width: 0;
}

.vmq-progress-card {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow: hidden;
    padding: 1.28rem 1.5rem 1.18rem;
}

.vmq-progress-step {
    align-items: center;
    display: grid;
    gap: .42rem;
    justify-items: center;
    min-width: 0;
    position: relative;
    text-align: center;
}

.vmq-progress-step:not(:last-child)::after {
    background: #dfe7ea;
    content: "";
    height: 1px;
    left: calc(50% + 1.9rem);
    position: absolute;
    right: calc(-50% + 1.9rem);
    top: 1.28rem;
}

.vmq-progress-step > span {
    align-items: center;
    background: #eef3f5;
    border-radius: 999px;
    color: #8a9aa4;
    display: inline-flex;
    height: 2.55rem;
    justify-content: center;
    position: relative;
    width: 2.55rem;
    z-index: 1;
}

.vmq-progress-step.is-done > span {
    background: linear-gradient(135deg, #058a84, #006c70);
    box-shadow: 0 10px 20px rgba(0, 119, 116, .2);
    color: #ffffff;
}

.vmq-progress-step.is-danger > span {
    background: #ffe7e8;
    color: #cf2d3b;
}

.vmq-progress-step strong {
    color: #223544;
    font-size: .78rem;
    font-weight: 850;
    line-height: 1.2;
}

.vmq-progress-step small {
    color: #5c6f7c;
    font-size: .72rem;
    font-weight: 620;
}

.vmq-layout {
    align-items: start;
    display: grid;
    gap: 1.18rem;
    grid-template-columns: minmax(0, 1fr) minmax(18.5rem, 22rem);
}

.vmq-main-stack,
.vmq-sidebar-stack {
    display: grid;
    gap: 1.18rem;
    min-width: 0;
}

.vmq-details-card {
    overflow: hidden;
}

.vmq-tabs {
    border-bottom: 1px solid #dfe7ea;
    display: flex;
    gap: 0;
    overflow-x: auto;
}

.vmq-tabs a {
    border-bottom: 2px solid transparent;
    color: #536575;
    flex: 0 0 auto;
    font-size: .86rem;
    font-weight: 820;
    padding: 1.18rem 1.45rem;
    text-decoration: none;
}

.vmq-tabs a.is-active {
    border-color: #007f7a;
    color: #007f7a;
}

.vmq-tab-panel {
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
}

.vmq-section-head {
    align-items: center;
    display: flex;
    gap: .8rem;
    justify-content: space-between;
}

.vmq-section-head h2,
.vmq-customer-actions h2,
.vmq-side-card h2 {
    color: #10242d;
    font-size: .98rem;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.2;
    margin: 0;
}

.vmq-section-head > div {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    justify-content: flex-end;
}

.vmq-small-action {
    min-height: 2.55rem;
    padding-inline: .82rem;
}

.vmq-table-wrap {
    overflow-x: auto;
}

.vmq-items-table {
    border-collapse: collapse;
    min-width: 46rem;
    width: 100%;
}

.vmq-items-table th {
    background: #f8fafb;
    border-bottom: 1px solid #edf2f4;
    color: #465866;
    font-size: .72rem;
    font-weight: 870;
    padding: .95rem .85rem;
    text-align: left;
    white-space: nowrap;
}

.vmq-items-table td {
    border-bottom: 1px solid #edf2f4;
    color: #132b39;
    font-size: .8rem;
    font-weight: 690;
    padding: .92rem .85rem;
    vertical-align: middle;
}

.vmq-items-table tr:last-child td {
    border-bottom: 0;
}

.vmq-item-cell {
    align-items: center;
    display: grid;
    gap: .72rem;
    grid-template-columns: auto minmax(0, 1fr);
    min-width: 13rem;
}

.vmq-item-icon,
.vmq-person > span,
.vmq-vehicle > span,
.vmq-attachment > span,
.vmq-response > span {
    align-items: center;
    border-radius: 12px;
    display: inline-flex;
    flex: 0 0 auto;
    justify-content: center;
}

.vmq-item-icon {
    height: 2.35rem;
    width: 2.35rem;
}

.vmq-item-teal,
.vmq-item-blue {
    background: #def5f2;
    color: #008b84;
}

.vmq-item-amber {
    background: #fff0d5;
    color: #cf7200;
}

.vmq-item-rose {
    background: #ffe7e8;
    color: #cf2d3b;
}

.vmq-item-purple {
    background: #f0eaff;
    color: #5d38c9;
}

.vmq-item-slate {
    background: #eef3f5;
    color: #596a75;
}

.vmq-item-cell strong {
    color: #10242d;
    display: block;
    font-size: .84rem;
    font-weight: 870;
    line-height: 1.2;
}

.vmq-item-cell small {
    color: #596c79;
    display: block;
    font-size: .72rem;
    font-weight: 600;
    line-height: 1.35;
    margin-top: .18rem;
}

.vmq-row-action {
    align-items: center;
    color: #10242d;
    display: inline-flex;
    height: 2rem;
    justify-content: center;
    text-decoration: none;
    width: 2rem;
}

.vmq-detail-footer {
    align-items: start;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(12rem, 1fr) minmax(18rem, .55fr);
    margin-top: -.2rem;
}

.vmq-note-action {
    justify-self: start;
}

.vmq-totals {
    display: grid;
    gap: .72rem;
    margin: 0;
}

.vmq-totals div {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.vmq-totals dt {
    color: #536575;
    font-size: .82rem;
    font-weight: 690;
}

.vmq-totals dd {
    color: #10242d;
    font-size: .84rem;
    font-weight: 820;
    margin: 0;
}

.vmq-totals .is-discount {
    color: #d92734;
}

.vmq-totals .vmq-discount-row dd {
    align-items: center;
    display: flex;
    gap: .7rem;
}

.vmq-discount-input {
    align-items: center;
    border: 1px solid #dce5e9;
    border-radius: 7px;
    color: #10242d;
    display: inline-flex;
    font-size: .82rem;
    font-weight: 820;
    gap: .38rem;
    justify-content: center;
    min-height: 2.05rem;
    min-width: 5.9rem;
    padding: 0 .72rem;
}

.vmq-discount-input small {
    color: #536575;
    font-size: .72rem;
    font-weight: 760;
}

.vmq-total-row {
    border-top: 1px solid #dfe7ea;
    padding-top: .82rem;
}

.vmq-total-row dt,
.vmq-total-row dd {
    color: #007f7a;
    font-size: 1.18rem;
    font-weight: 930;
}

.vmq-customer-actions {
    display: grid;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
}

.vmq-customer-actions p {
    color: #536575;
    font-size: .8rem;
    font-weight: 620;
    margin: .35rem 0 0;
}

.vmq-response-grid {
    display: grid;
    gap: .8rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.vmq-response {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dce5e9;
    border-radius: 8px;
    cursor: pointer;
    display: grid;
    gap: .2rem .72rem;
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 4.25rem;
    padding: .82rem;
    text-align: left;
}

.vmq-response > span {
    grid-row: span 2;
    height: 2.25rem;
    width: 2.25rem;
}

.vmq-response strong {
    font-size: .8rem;
    font-weight: 880;
    line-height: 1.1;
}

.vmq-response small {
    color: #536575;
    font-size: .69rem;
    font-weight: 620;
    line-height: 1.2;
}

.vmq-response.is-approve {
    border-color: #9edecd;
    color: #0a835c;
}

.vmq-response.is-select {
    border-color: #abd0ff;
    color: #126ab4;
}

.vmq-response.is-change {
    border-color: #f4c77d;
    color: #c36b00;
}

.vmq-response.is-decline {
    border-color: #ffb5ba;
    color: #cf2d3b;
}

.vmq-response.is-approve span { background: #def5e8; }
.vmq-response.is-select span { background: #e7f2ff; }
.vmq-response.is-change span { background: #fff0d5; }
.vmq-response.is-decline span { background: #ffe7e8; }

.vmq-side-card {
    display: grid;
    gap: .92rem;
    padding: 1.08rem;
}

.vmq-side-head {
    align-items: center;
    display: flex;
    gap: .75rem;
    justify-content: space-between;
}

.vmq-side-head a {
    align-items: center;
    border: 1px solid #dce5e9;
    border-radius: 7px;
    color: #223544;
    display: inline-flex;
    font-size: .72rem;
    font-weight: 820;
    min-height: 2rem;
    padding: 0 .66rem;
    text-decoration: none;
}

.vmq-summary-card > strong {
    color: #007f7a;
    font-size: 1.58rem;
    font-weight: 940;
    line-height: 1;
}

.vmq-summary-card > span,
.vmq-side-card p,
.vmq-private-note {
    color: #536575;
    font-size: .78rem;
    font-weight: 620;
    line-height: 1.45;
    margin: 0;
}

.vmq-summary-card .vmq-pill {
    justify-self: start;
}

.vmq-summary-card dl {
    border-top: 1px solid #edf2f4;
    display: grid;
    gap: .75rem;
    margin: .25rem 0 0;
    padding-top: .9rem;
}

.vmq-summary-card dl div {
    align-items: start;
    display: flex;
    gap: .75rem;
    justify-content: space-between;
}

.vmq-summary-card dt,
.vmq-summary-card dd {
    font-size: .75rem;
    line-height: 1.3;
    margin: 0;
}

.vmq-summary-card dt {
    color: #536575;
    font-weight: 680;
}

.vmq-summary-card dd {
    color: #10242d;
    font-weight: 820;
    text-align: right;
}

.vmq-person,
.vmq-vehicle,
.vmq-attachment {
    align-items: center;
    display: grid;
    gap: .72rem;
    grid-template-columns: auto minmax(0, 1fr);
}

.vmq-person > span {
    background: linear-gradient(135deg, #10a0a0, #168bb0);
    color: #ffffff;
    font-size: .88rem;
    font-weight: 900;
    height: 2.75rem;
    width: 2.75rem;
}

.vmq-person strong,
.vmq-vehicle strong,
.vmq-attachment strong {
    color: #10242d;
    display: block;
    font-size: .82rem;
    font-weight: 880;
    line-height: 1.2;
}

.vmq-person small,
.vmq-vehicle small,
.vmq-attachment small {
    color: #536575;
    display: block;
    font-size: .72rem;
    font-weight: 620;
    line-height: 1.32;
    margin-top: .1rem;
}

.vmq-vehicle > span {
    background: linear-gradient(135deg, #e7f2ff, #d7f3f1);
    color: #007f7a;
    height: 2.75rem;
    width: 3.7rem;
}

.vmq-attachments {
    display: grid;
    gap: .55rem;
}

.vmq-attachment {
    border-bottom: 1px solid #edf2f4;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding-bottom: .55rem;
}

.vmq-attachment:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.vmq-attachment > span {
    background: #def5f2;
    color: #007f7a;
    height: 2.2rem;
    width: 2.2rem;
}

.vmq-attachment > a {
    align-items: center;
    border: 1px solid #dce5e9;
    border-radius: 7px;
    color: #223544;
    display: inline-flex;
    height: 2.2rem;
    justify-content: center;
    width: 2.2rem;
}

.vmq-mini-timeline,
.vmq-wide-timeline {
    display: grid;
    gap: .1rem;
}

.vmq-timeline-event {
    display: grid;
    gap: .72rem;
    grid-template-columns: auto minmax(0, 1fr);
    min-width: 0;
    padding: .28rem 0 .82rem;
    position: relative;
}

.vmq-timeline-event:not(:last-child)::after {
    background: #dfe7ea;
    bottom: 0;
    content: "";
    left: .43rem;
    position: absolute;
    top: 1.05rem;
    width: 1px;
}

.vmq-timeline-event > span {
    background: #eef3f5;
    border: 2px solid #ffffff;
    border-radius: 999px;
    box-shadow: 0 0 0 1px #dfe7ea;
    height: .9rem;
    margin-top: .2rem;
    width: .9rem;
    z-index: 1;
}

.vmq-timeline-event.is-done > span {
    background: #0a8b75;
    box-shadow: 0 0 0 1px #0a8b75;
}

.vmq-timeline-event.is-danger > span {
    background: #cf2d3b;
    box-shadow: 0 0 0 1px #cf2d3b;
}

.vmq-timeline-event strong {
    color: #10242d;
    display: block;
    font-size: .78rem;
    font-weight: 870;
}

.vmq-timeline-event p {
    color: #536575;
    font-size: .72rem;
    font-weight: 620;
    line-height: 1.35;
    margin: .2rem 0 0;
}

.vmq-repair-grid {
    display: grid;
    gap: .78rem;
}

.vmq-repair {
    align-items: center;
    border: 1px solid #dfe7ea;
    border-radius: 8px;
    display: grid;
    gap: .78rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: .85rem;
}

.vmq-repair > span {
    align-items: center;
    background: #f0eaff;
    border-radius: 10px;
    color: #5d38c9;
    display: inline-flex;
    height: 2.35rem;
    justify-content: center;
    width: 2.35rem;
}

.vmq-repair strong,
.vmq-repair em {
    color: #10242d;
    font-size: .86rem;
    font-style: normal;
    font-weight: 870;
}

.vmq-repair p,
.vmq-repair small {
    color: #536575;
    display: block;
    font-size: .74rem;
    font-weight: 620;
    margin: .18rem 0 0;
}

.vmq-empty {
    color: #617380;
    font-size: .84rem;
    font-weight: 700;
    padding: 1rem;
    text-align: center;
}

.vmq-empty-compact {
    background: #f8fafb;
    border: 1px dashed #dce5e9;
    border-radius: 8px;
    padding: .85rem;
}

@media (max-width: 1280px) {
    .vmq-layout {
        grid-template-columns: 1fr;
    }

    .vmq-sidebar-stack {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1060px) {
    .vmq-header {
        align-items: stretch;
        flex-direction: column;
    }

    .vmq-actions {
        justify-content: flex-start;
    }

    .vmq-progress-card {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 1.15rem;
    }

    .vmq-progress-step::after {
        display: none;
    }

    .vmq-response-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .vmq-sidebar-stack {
        grid-template-columns: 1fr;
    }

    .vmq-detail-footer {
        grid-template-columns: 1fr;
    }

    .vmq-totals {
        justify-self: stretch;
    }
}

@media (max-width: 700px) {
    .vm-quote-page {
        gap: .9rem;
    }

    .vmq-actions,
    .vmq-section-head,
    .vmq-section-head > div {
        align-items: stretch;
        flex-direction: column;
    }

    .vmq-action,
    .vmq-small-action,
    .vmq-note-action {
        width: 100%;
    }

    .vmq-more {
        width: 100%;
    }

    .vmq-icon-action {
        width: 100%;
    }

    .vmq-progress-card {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 1rem;
    }

    .vmq-tab-panel,
    .vmq-customer-actions,
    .vmq-side-card {
        padding: 1rem;
    }

    .vmq-tabs a {
        padding: 1rem;
    }

    .vmq-table-wrap {
        overflow: visible;
    }

    .vmq-items-table,
    .vmq-items-table tbody,
    .vmq-items-table tr,
    .vmq-items-table td {
        display: block;
        min-width: 0;
        width: 100%;
    }

    .vmq-items-table thead {
        display: none;
    }

    .vmq-items-table tr {
        border: 1px solid #dfe7ea;
        border-radius: 8px;
        margin-bottom: .85rem;
        overflow: hidden;
    }

    .vmq-items-table td {
        align-items: center;
        border-bottom: 1px solid #edf2f4;
        display: grid;
        gap: .75rem;
        grid-template-columns: 7.25rem minmax(0, 1fr);
        padding: .8rem;
    }

    .vmq-items-table td::before {
        color: #647581;
        content: attr(data-label);
        font-size: .7rem;
        font-weight: 850;
        text-transform: uppercase;
    }

    .vmq-items-table td:first-child {
        align-items: start;
        grid-template-columns: 1fr;
    }

    .vmq-items-table td:first-child::before,
    .vmq-items-table td:last-child::before {
        display: none;
    }

    .vmq-row-action {
        justify-self: end;
    }

    .vmq-response-grid {
        grid-template-columns: 1fr;
    }

    .vmq-summary-card dl div,
    .vmq-totals div {
        align-items: flex-start;
        flex-direction: column;
        gap: .18rem;
    }

    .vmq-summary-card dd {
        text-align: left;
    }

    .vmq-totals .vmq-discount-row dd {
        flex-wrap: wrap;
    }
}

@media (max-width: 460px) {
    .vmq-title-row h1 {
        font-size: 1.28rem;
    }

    .vmq-progress-card {
        grid-template-columns: 1fr;
    }

    .vmq-tabs {
        display: grid;
        grid-template-columns: 1fr;
    }

    .vmq-tabs a {
        border-bottom-width: 1px;
    }

    .vmq-repair,
    .vmq-person,
    .vmq-vehicle,
    .vmq-attachment {
        grid-template-columns: 1fr;
    }

    .vmq-attachment > a {
        justify-self: start;
    }
}

@media print {
    body:has(.vm-quote-page) .fi-topbar,
    body:has(.vm-quote-page) .fi-sidebar,
    body:has(.vm-quote-page) .vmq-actions,
    body:has(.vm-quote-page) .vmq-back,
    body:has(.vm-quote-page) .vmq-customer-actions {
        display: none !important;
    }

    .vmq-layout,
    .vmq-sidebar-stack {
        grid-template-columns: 1fr !important;
    }

    .vmq-card,
    .vmq-progress-card {
        box-shadow: none !important;
    }
}

/* Job Cards reference layout */
body:has(.vm-job-cards) .fi-page > .fi-header {
    display: none;
}

body:has(.vm-job-cards) .fi-main {
    overflow-x: clip !important;
}

.vm-job-cards {
    color: #10242d;
    display: grid;
    gap: 1rem;
    padding: .2rem .1rem 0;
}

.vmj-icon {
    display: block;
    height: 1.08rem;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 1.08rem;
}

.vmj-page-head {
    align-items: end;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    min-width: 0;
}

.vmj-page-head h1 {
    color: #10242d;
    font-size: clamp(1.55rem, 2.5vw, 2.05rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.05;
    margin: 0;
}

.vmj-page-head p {
    color: #536575;
    font-size: .95rem;
    font-weight: 620;
    margin: .52rem 0 0;
}

.vmj-head-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: flex-end;
}

.vmj-button,
.vmj-row-button {
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    font-size: .84rem;
    font-weight: 840;
    gap: .55rem;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0 1rem;
    text-decoration: none;
    transition: border-color 140ms ease, box-shadow 140ms ease, color 140ms ease, transform 140ms ease, background-color 140ms ease;
    white-space: nowrap;
}

.vmj-button-light,
.vmj-row-button {
    background: #ffffff;
    border: 1px solid #dce5e9;
    color: #223544;
}

.vmj-button-primary {
    background: linear-gradient(135deg, #078c88, #006f72);
    border: 1px solid #007d7a;
    box-shadow: 0 10px 22px rgba(0, 119, 116, .18);
    color: #ffffff !important;
    min-width: 10.6rem;
}

.vmj-button:hover,
.vmj-row-button:hover {
    border-color: #a8d9d5;
    box-shadow: 0 8px 20px rgba(16, 58, 66, .08);
    color: #007f7a;
    transform: translateY(-1px);
}

.vmj-button-primary:hover {
    color: #ffffff !important;
}

.vmj-filter-menu {
    position: relative;
}

.vmj-filter-menu summary {
    cursor: pointer;
    list-style: none;
}

.vmj-filter-menu summary::-webkit-details-marker {
    display: none;
}

.vmj-filter-panel {
    background: #ffffff;
    border: 1px solid #dce5e9;
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(17, 35, 42, .16);
    display: grid;
    gap: .85rem;
    min-width: 20rem;
    padding: .95rem;
    position: absolute;
    right: 0;
    top: calc(100% + .55rem);
    z-index: 45;
}

.vmj-filter-panel label {
    display: grid;
    gap: .36rem;
}

.vmj-filter-panel label > span {
    color: #647581;
    font-size: .72rem;
    font-weight: 830;
}

.vmj-filter-panel select,
.vmj-filter-panel input {
    background: #ffffff;
    border: 1px solid #dce5e9;
    border-radius: 8px;
    color: #10242d;
    font-size: .84rem;
    font-weight: 700;
    min-height: 2.65rem;
    outline: 0;
    padding: 0 .8rem;
    width: 100%;
}

.vmj-search-input {
    align-items: center;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    position: relative;
}

.vmj-search-input .vmj-icon {
    color: #647581;
    left: .8rem;
    position: absolute;
}

.vmj-search-input input {
    padding-left: 2.35rem;
}

.vmj-filter-panel > div {
    display: flex;
    gap: .6rem;
    justify-content: flex-end;
}

.vmj-filter-panel a,
.vmj-filter-panel button {
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    font-size: .8rem;
    font-weight: 850;
    justify-content: center;
    min-height: 2.45rem;
    padding: 0 .85rem;
    text-decoration: none;
}

.vmj-filter-panel a {
    color: #536575;
}

.vmj-filter-panel button {
    background: #078c88;
    border: 0;
    color: #ffffff;
    cursor: pointer;
}

.vmj-tabs {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .72rem;
}

.vmj-tab {
    align-items: center;
    background: #ffffff;
    border: 1px solid #e5ecef;
    border-radius: 8px;
    color: #223544;
    display: inline-flex;
    font-size: .8rem;
    font-weight: 820;
    gap: .46rem;
    min-height: 2.55rem;
    padding: 0 .78rem;
    text-decoration: none;
}

.vmj-tab strong {
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 900;
    margin-left: .15rem;
    min-width: 1.45rem;
    padding: .2rem .45rem;
    text-align: center;
}

.vmj-tab.is-active {
    box-shadow: inset 0 -2px currentColor;
}

.vmj-tab-teal { background: #e9f8f5; color: #007f7a; }
.vmj-tab-amber { background: #fff3df; color: #c36b00; }
.vmj-tab-blue { background: #eaf4ff; color: #126ab4; }
.vmj-tab-green { background: #e7f7ec; color: #0a8754; }
.vmj-tab-purple { background: #f2eaff; color: #6a35c7; }
.vmj-tab-red { background: #fff0f1; color: #d52f3b; }

.vmj-tab-teal strong { background: #cdeee9; }
.vmj-tab-amber strong { background: #ffe0a9; }
.vmj-tab-blue strong { background: #d7eaff; }
.vmj-tab-green strong { background: #d3f0dc; }
.vmj-tab-purple strong { background: #e4d6ff; }
.vmj-tab-red strong { background: #ffd9dc; }

.vmj-list {
    display: grid;
    gap: .85rem;
}

.vmj-card {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dfe7ea;
    border-left-width: 3px;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(17, 35, 42, .06);
    display: grid;
    gap: 1.15rem;
    grid-template-columns: 7.25rem minmax(12rem, .95fr) minmax(12rem, .75fr) minmax(14rem, 1fr) minmax(9rem, .62fr) minmax(10.25rem, .75fr);
    min-height: 8.95rem;
    padding: 1.35rem 1.45rem;
    position: relative;
}

.vmj-card-amber { border-left-color: #f59f00; }
.vmj-card-blue { border-left-color: #1b8ef5; }
.vmj-card-green { border-left-color: #0a9b67; }
.vmj-card-purple { border-left-color: #7a39dd; }
.vmj-card-red { border-left-color: #ef333f; }
.vmj-card-teal { border-left-color: #078c88; }
.vmj-card-slate { border-left-color: #83919b; }

.vmj-vehicle-photo {
    align-items: center;
    border-radius: 8px;
    display: flex;
    height: 6.75rem;
    justify-content: center;
    overflow: hidden;
    position: relative;
    width: 7.25rem;
}

.vmj-vehicle-photo::before,
.vmj-vehicle-photo::after {
    content: "";
    position: absolute;
}

.vmj-vehicle-photo::before {
    background: rgba(255, 255, 255, .52);
    border-radius: 999px;
    height: 5.2rem;
    right: -.85rem;
    top: -.95rem;
    width: 5.2rem;
}

.vmj-vehicle-photo::after {
    background: rgba(11, 34, 43, .08);
    border-radius: 999px;
    bottom: 1rem;
    height: .7rem;
    width: 5.4rem;
}

.vmj-vehicle-photo .vmj-icon {
    height: 4.4rem;
    position: relative;
    stroke-width: 1.7;
    width: 4.4rem;
    z-index: 1;
}

.vmj-photo-amber { background: linear-gradient(135deg, #f3f7f8, #fff2dc); color: #435866; }
.vmj-photo-blue { background: linear-gradient(135deg, #e6f3ff, #d9e9f8); color: #0b5f9f; }
.vmj-photo-green { background: linear-gradient(135deg, #f2f7f8, #dff4e8); color: #375862; }
.vmj-photo-purple { background: linear-gradient(135deg, #f5f0ff, #e8e1f7); color: #4d3b6e; }
.vmj-photo-red { background: linear-gradient(135deg, #fff1f2, #f5dfe2); color: #9c2733; }
.vmj-photo-teal { background: linear-gradient(135deg, #e7f7f4, #d5efec); color: #007f7a; }
.vmj-photo-slate { background: linear-gradient(135deg, #eef3f5, #e1e8eb); color: #536575; }

.vmj-primary {
    display: grid;
    gap: .35rem;
    min-width: 0;
}

.vmj-primary a {
    color: #007f7a;
    font-size: .84rem;
    font-weight: 900;
    text-decoration: none;
}

.vmj-primary strong {
    color: #10242d;
    font-size: .92rem;
    font-weight: 900;
    line-height: 1.18;
}

.vmj-primary span {
    color: #4f6170;
    font-size: .78rem;
    font-weight: 620;
    line-height: 1.35;
}

.vmj-primary em {
    border: 1px solid #dce5e9;
    border-radius: 6px;
    color: #10242d;
    display: inline-flex;
    font-size: .78rem;
    font-style: normal;
    font-weight: 840;
    justify-self: start;
    line-height: 1;
    padding: .42rem .58rem;
}

.vmj-meta,
.vmj-work,
.vmj-state {
    border-left: 1px solid #e2e9ec;
    display: grid;
    gap: .78rem;
    min-width: 0;
    padding-left: 1.35rem;
}

.vmj-meta div,
.vmj-work div,
.vmj-state div {
    display: grid;
    gap: .08rem .55rem;
    grid-template-columns: auto minmax(0, 1fr);
    min-width: 0;
}

.vmj-meta .vmj-icon,
.vmj-work .vmj-icon,
.vmj-state .vmj-icon {
    color: #4f6170;
    grid-row: span 3;
    height: .95rem;
    margin-top: .05rem;
    width: .95rem;
}

.vmj-meta span,
.vmj-work span,
.vmj-state span {
    color: #627483;
    font-size: .72rem;
    font-weight: 720;
    line-height: 1;
}

.vmj-meta strong,
.vmj-work strong,
.vmj-state strong {
    color: #10242d;
    font-size: .8rem;
    font-weight: 850;
    line-height: 1.25;
}

.vmj-meta small {
    color: #10242d;
    display: block;
    font-size: .72rem;
    font-weight: 760;
    line-height: 1.2;
}

.vmj-work p {
    color: #10242d;
    font-size: .78rem;
    font-weight: 650;
    line-height: 1.35;
    margin: 0;
}

.vmj-pill {
    border-radius: 999px;
    display: inline-flex;
    font-size: .78rem;
    font-weight: 850;
    justify-self: start;
    line-height: 1;
    padding: .55rem .9rem;
    white-space: nowrap;
}

.vmj-pill-amber { background: #fff0d5; color: #d47b00; }
.vmj-pill-blue { background: #e6f2ff; color: #126ab4; }
.vmj-pill-green { background: #def5e8; color: #0a8754; }
.vmj-pill-purple { background: #f2eaff; color: #6a35c7; }
.vmj-pill-red { background: #ffe7e8; color: #d52f3b; }
.vmj-pill-teal { background: #def5f2; color: #007f7a; }
.vmj-pill-slate { background: #eef3f5; color: #596a75; }

.vmj-priority-green { color: #0a8754 !important; }
.vmj-priority-amber { color: #d47b00 !important; }
.vmj-priority-red { color: #e22935 !important; }

.vmj-actions {
    align-items: stretch;
    display: grid;
    gap: .48rem;
    min-width: 0;
    position: relative;
}

.vmj-actions .vmj-row-button {
    border-radius: 8px;
    font-size: .78rem;
    justify-content: center;
    min-height: 2.45rem;
    padding-inline: .85rem;
    width: 100%;
}

.vmj-actions button.vmj-row-button {
    cursor: pointer;
}

.vmj-row-primary {
    border-color: transparent;
}

.vmj-row-teal {
    background: #e5f5f2;
    color: #007f7a;
}

.vmj-row-blue {
    background: #e8f3ff;
    color: #126ab4;
}

.vmj-row-purple {
    background: #f2eaff;
    color: #6a35c7;
}

.vmj-row-disabled {
    background: #f1f3f4;
    color: #a0aab2;
    cursor: not-allowed !important;
}

.vmj-more {
    display: inline-flex;
    justify-self: end;
    position: absolute;
    right: -.25rem;
    top: -1rem;
}

.vmj-more summary {
    align-items: center;
    color: #304554;
    cursor: pointer;
    display: inline-flex;
    height: 1.9rem;
    justify-content: center;
    list-style: none;
    width: 1.9rem;
}

.vmj-more summary::-webkit-details-marker {
    display: none;
}

.vmj-more div {
    background: #ffffff;
    border: 1px solid #dce5e9;
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(17, 35, 42, .16);
    display: grid;
    gap: .12rem;
    min-width: 12.5rem;
    padding: .45rem;
    position: absolute;
    right: 0;
    top: calc(100% + .35rem);
    z-index: 30;
}

.vmj-more button {
    background: transparent;
    border: 0;
    border-radius: 7px;
    color: #223544;
    cursor: pointer;
    display: block;
    font-size: .8rem;
    font-weight: 760;
    padding: .65rem .72rem;
    text-align: left;
    width: 100%;
}

.vmj-more button:hover {
    background: #eefafa;
    color: #007d7a;
}

.vmj-more button.is-danger {
    color: #d52f3b;
}

.vmj-more button.is-danger:hover {
    background: #fff0f1;
}

.vmj-empty {
    background: #ffffff;
    border: 1px dashed #dce5e9;
    border-radius: 8px;
    color: #617380;
    font-weight: 760;
    padding: 2.4rem 1rem;
    text-align: center;
}

.vmj-footer {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: .55rem .75rem 0;
}

.vmj-footer > span {
    color: #536575;
    font-size: .84rem;
    font-weight: 650;
}

.vmj-pagination {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .48rem;
    justify-content: flex-end;
}

.vmj-pagination a,
.vmj-per-page {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dce5e9;
    border-radius: 8px;
    color: #304554;
    display: inline-flex;
    font-size: .82rem;
    font-weight: 760;
    height: 2.55rem;
    justify-content: center;
    min-width: 2.55rem;
    text-decoration: none;
}

.vmj-pagination a.is-active {
    background: linear-gradient(135deg, #078c88, #006f72);
    border-color: #007d7a;
    box-shadow: 0 8px 18px rgba(0, 119, 116, .18);
    color: #ffffff;
}

.vmj-pagination a.is-disabled {
    color: #a6b1b8;
    pointer-events: none;
}

.vmj-pagination a .vmj-icon {
    height: 1rem;
    width: 1rem;
}

.vmj-per-page {
    gap: .55rem;
    padding: 0 .75rem;
}

.vmj-per-page span {
    color: #536575;
    font-weight: 680;
}

.vmj-per-page select {
    appearance: none;
    background: transparent;
    border: 0;
    color: #10242d;
    font-weight: 850;
    outline: 0;
    padding-right: .4rem;
}

@media (max-width: 1500px) {
    .vmj-card {
        grid-template-columns: 6.5rem minmax(11rem, .95fr) minmax(10rem, .75fr) minmax(12rem, 1fr) minmax(8rem, .62fr) minmax(9.75rem, .75fr);
        padding: 1.1rem;
    }

    .vmj-vehicle-photo {
        height: 6.1rem;
        width: 6.5rem;
    }
}

@media (max-width: 1280px) {
    .vmj-card {
        align-items: start;
        grid-template-columns: 7rem minmax(13rem, 1fr) minmax(14rem, 1fr);
    }

    .vmj-work,
    .vmj-state,
    .vmj-actions {
        grid-column: span 1;
    }

    .vmj-meta,
    .vmj-work,
    .vmj-state {
        border-left: 0;
        padding-left: 0;
    }

    .vmj-actions {
        grid-column: 2 / -1;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .vmj-more {
        right: 0;
        top: -4.95rem;
    }
}

@media (max-width: 900px) {
    .vmj-page-head {
        align-items: stretch;
        flex-direction: column;
    }

    .vmj-head-actions {
        justify-content: flex-start;
    }

    .vmj-card {
        grid-template-columns: 6.75rem minmax(0, 1fr);
    }

    .vmj-meta,
    .vmj-work,
    .vmj-state,
    .vmj-actions {
        grid-column: 1 / -1;
    }

    .vmj-meta,
    .vmj-work {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vmj-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vmj-more {
        top: -1.1rem;
    }

    .vmj-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .vmj-pagination {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .vmj-head-actions,
    .vmj-button,
    .vmj-filter-menu {
        width: 100%;
    }

    .vmj-filter-panel {
        left: 0;
        min-width: 0;
        right: 0;
        width: 100%;
    }

    .vmj-tabs {
        display: grid;
        grid-template-columns: 1fr;
    }

    .vmj-tab {
        justify-content: flex-start;
    }

    .vmj-card {
        grid-template-columns: 1fr;
    }

    .vmj-vehicle-photo {
        height: 9rem;
        width: 100%;
    }

    .vmj-meta,
    .vmj-work,
    .vmj-actions {
        grid-template-columns: 1fr;
    }

    .vmj-more {
        right: .55rem;
        top: .35rem;
    }

    .vmj-pagination {
        width: 100%;
    }

    .vmj-per-page {
        width: 100%;
    }
}

/* Portal design system refinement */
:root {
    --vm-color-primary-dark: #075e63;
    --vm-color-primary: #078c88;
    --vm-color-primary-hover: #067678;
    --vm-color-page: #f6f8fa;
    --vm-color-surface: #ffffff;
    --vm-color-surface-muted: #f8fafb;
    --vm-color-border: #dce6ea;
    --vm-color-border-soft: #e8eef1;
    --vm-color-text: #10242d;
    --vm-color-muted: #5e707d;
    --vm-radius-card: 10px;
    --vm-radius-control: 8px;
    --vm-shadow-card: 0 12px 30px rgba(17, 35, 42, .065);
    --vm-shadow-popover: 0 18px 46px rgba(17, 35, 42, .16);
}

body,
.fi-body,
.fi-layout {
    background: var(--vm-color-page) !important;
    color: var(--vm-color-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.fi-main {
    max-width: 1560px;
    padding-inline: clamp(1rem, 2vw, 2rem) !important;
}

.fi-topbar {
    background: rgba(255, 255, 255, .96) !important;
    border-bottom: 1px solid var(--vm-color-border) !important;
    box-shadow: 0 1px 0 rgba(17, 35, 42, .03) !important;
}

.fi-btn-color-primary,
.fi-ac-btn-action {
    background: var(--vm-color-primary) !important;
    box-shadow: 0 10px 24px rgba(0, 124, 121, .16) !important;
}

.fi-btn-color-primary:hover,
.fi-btn-color-primary:focus,
.fi-btn-color-primary:active {
    background: var(--vm-color-primary-hover) !important;
}

.fi-section,
.fi-ta-ctn,
.fi-modal-window,
.fi-fo-component-ctn {
    border-color: var(--vm-color-border) !important;
    border-radius: var(--vm-radius-card) !important;
    box-shadow: var(--vm-shadow-card) !important;
}

.fi-input-wrp,
.fi-select-input,
.fi-textarea,
.fi-fo-field-wrp input,
.fi-fo-field-wrp textarea,
.fi-fo-field-wrp select {
    border-radius: var(--vm-radius-control) !important;
}

.fi-input-wrp:focus-within,
.fi-fo-field-wrp input:focus,
.fi-fo-field-wrp textarea:focus,
.fi-fo-field-wrp select:focus {
    box-shadow: 0 0 0 3px rgba(7, 140, 136, .14) !important;
}

.vm-stat-card,
.vm-panel,
.vmc-calendar-card,
.vmc-stats,
.vmj-card,
.vmj-empty,
.vmql-panel,
.vmql-card,
.vmql-metric {
    border-color: var(--vm-color-border) !important;
    border-radius: var(--vm-radius-card) !important;
    box-shadow: var(--vm-shadow-card) !important;
}

.vm-mini-metric {
    color: inherit;
    text-decoration: none;
    transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

a.vm-mini-metric:hover {
    border-color: #98d7d3;
    box-shadow: 0 12px 26px rgba(7, 140, 136, .12);
    transform: translateY(-1px);
}

.vmc-new-booking,
.vmj-button-primary,
.vmj-pagination a.is-active,
.vmc-view-tabs a.is-active,
.vmc-day-head strong.is-today,
.vmc-month-day strong.is-today {
    background: var(--vm-color-primary) !important;
    border-color: var(--vm-color-primary) !important;
    box-shadow: 0 10px 24px rgba(0, 124, 121, .16) !important;
}

.vmj-photo-amber { background: #fff4df; color: #6c4a11; }
.vmj-photo-blue { background: #e9f3ff; color: #155f9e; }
.vmj-photo-green { background: #e6f5ee; color: #166c4d; }
.vmj-photo-purple { background: #f2eaff; color: #5d35a8; }
.vmj-photo-red { background: #fff0f1; color: #a52833; }
.vmj-photo-teal { background: #e4f7f4; color: #007f7a; }
.vmj-photo-slate { background: #eef3f5; color: #536575; }

.vmc-filters {
    grid-template-columns: minmax(9rem, 11rem) minmax(9rem, 11rem) minmax(10rem, 12rem) minmax(13rem, 1fr) max-content;
}

.vmc-select-filter,
.vmc-staff-filter,
.vmc-search {
    min-width: 0;
}

.vmc-select-filter {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dfe7ea;
    border-radius: 8px;
    color: #263a48;
    display: inline-flex;
    gap: .55rem;
    min-height: 2.75rem;
    padding: 0 .85rem;
}

.vmc-select-filter select {
    appearance: none;
    background: transparent;
    border: 0;
    color: #263a48;
    font-size: .82rem;
    font-weight: 650;
    min-width: 0;
    outline: 0;
    width: 100%;
}

/* Quotes list */
body:has(.vm-quotes-list) .fi-page > .fi-header {
    display: none;
}

body:has(.vm-quotes-list) .fi-main {
    overflow-x: clip !important;
}

.vm-quotes-list {
    color: var(--vm-color-text);
    display: grid;
    gap: 1rem;
    min-width: 0;
    padding: .2rem .1rem 0;
}

.vmql-icon {
    display: block;
    height: 1.05rem;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 1.05rem;
}

.vmql-page-head {
    align-items: end;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    min-width: 0;
}

.vmql-page-head h1 {
    color: var(--vm-color-text);
    font-size: clamp(1.55rem, 2.5vw, 2.05rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.05;
    margin: 0;
}

.vmql-page-head p {
    color: var(--vm-color-muted);
    font-size: .95rem;
    font-weight: 620;
    margin: .52rem 0 0;
}

.vmql-head-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: flex-end;
}

.vmql-button,
.vmql-row-button {
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    font-size: .84rem;
    font-weight: 840;
    gap: .55rem;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0 1rem;
    text-decoration: none;
    transition: border-color 140ms ease, box-shadow 140ms ease, color 140ms ease, transform 140ms ease, background-color 140ms ease;
    white-space: nowrap;
}

.vmql-button-light,
.vmql-row-button {
    background: #ffffff;
    border: 1px solid var(--vm-color-border);
    color: #223544;
}

.vmql-button-primary {
    background: var(--vm-color-primary);
    border: 1px solid var(--vm-color-primary);
    box-shadow: 0 10px 24px rgba(0, 124, 121, .16);
    color: #ffffff !important;
    min-width: 9.8rem;
}

.vmql-button:hover,
.vmql-row-button:hover {
    border-color: #98d7d3;
    box-shadow: 0 8px 20px rgba(16, 58, 66, .08);
    color: #007f7a;
    transform: translateY(-1px);
}

.vmql-button-primary:hover {
    background: var(--vm-color-primary-hover);
    color: #ffffff !important;
}

.vmql-metrics {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.vmql-metric {
    align-items: center;
    background: #ffffff;
    display: grid;
    gap: .95rem;
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 7.1rem;
    padding: 1.1rem;
}

.vmql-metric > span {
    align-items: center;
    border-radius: 10px;
    display: inline-flex;
    height: 3rem;
    justify-content: center;
    width: 3rem;
}

.vmql-metric small,
.vmql-metric em {
    color: var(--vm-color-muted);
    display: block;
    font-size: .78rem;
    font-style: normal;
    font-weight: 680;
}

.vmql-metric strong {
    color: var(--vm-color-text);
    display: block;
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1.05;
    margin: .22rem 0 .28rem;
}

.vmql-metric-teal > span { background: #e4f7f4; color: #007f7a; }
.vmql-metric-amber > span { background: #fff2dc; color: #d87500; }
.vmql-metric-green > span { background: #dcf5ed; color: #0d8f68; }
.vmql-metric-blue > span { background: #e9f3ff; color: #1c75d8; }

.vmql-tabs {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .72rem;
}

.vmql-tab {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--vm-color-border-soft);
    border-radius: 8px;
    color: #223544;
    display: inline-flex;
    font-size: .8rem;
    font-weight: 820;
    gap: .46rem;
    min-height: 2.55rem;
    padding: 0 .78rem;
    text-decoration: none;
}

.vmql-tab strong {
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 900;
    margin-left: .15rem;
    min-width: 1.45rem;
    padding: .2rem .45rem;
    text-align: center;
}

.vmql-tab.is-active {
    box-shadow: inset 0 -2px currentColor;
}

.vmql-tab-teal { background: #e9f8f5; color: #007f7a; }
.vmql-tab-amber { background: #fff3df; color: #c36b00; }
.vmql-tab-blue { background: #eaf4ff; color: #126ab4; }
.vmql-tab-green { background: #e7f7ec; color: #0a8754; }
.vmql-tab-rose { background: #fff0f1; color: #d52f3b; }
.vmql-tab-slate { background: #eef3f5; color: #596a75; }

.vmql-tab-teal strong { background: #cdeee9; }
.vmql-tab-amber strong { background: #ffe0a9; }
.vmql-tab-blue strong { background: #d7eaff; }
.vmql-tab-green strong { background: #d3f0dc; }
.vmql-tab-rose strong { background: #ffd9dc; }
.vmql-tab-slate strong { background: #dde6ea; }

.vmql-panel {
    background: #ffffff;
    border: 1px solid var(--vm-color-border);
    display: grid;
    gap: 0;
    overflow: visible;
}

.vmql-toolbar {
    align-items: end;
    border-bottom: 1px solid var(--vm-color-border-soft);
    display: grid;
    gap: .85rem;
    grid-template-columns: minmax(16rem, 1fr) minmax(9rem, 12rem) minmax(10rem, 13rem) minmax(9rem, 11rem) max-content;
    padding: 1rem;
}

.vmql-toolbar label {
    display: grid;
    gap: .3rem;
    min-width: 0;
}

.vmql-toolbar label > span {
    color: #687984;
    font-size: .72rem;
    font-weight: 830;
    line-height: 1;
}

.vmql-search,
.vmql-toolbar select {
    background: #ffffff;
    border: 1px solid var(--vm-color-border);
    border-radius: 8px;
    min-height: 2.75rem;
}

.vmql-search {
    align-items: center;
    display: grid;
    gap: .55rem;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 0 .85rem;
}

.vmql-search .vmql-icon {
    color: #607482;
}

.vmql-search input,
.vmql-toolbar select {
    appearance: none;
    background: transparent;
    border: 0;
    color: #263a48;
    font-size: .84rem;
    font-weight: 700;
    min-width: 0;
    outline: 0;
    width: 100%;
}

.vmql-search input::placeholder {
    color: #8a9aa7;
}

.vmql-toolbar select {
    padding: 0 .8rem;
}

.vmql-toolbar-actions {
    align-items: center;
    display: flex;
    gap: .55rem;
}

.vmql-toolbar-actions a,
.vmql-toolbar-actions button {
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    font-size: .82rem;
    font-weight: 850;
    gap: .45rem;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0 .92rem;
    text-decoration: none;
}

.vmql-toolbar-actions a {
    color: #607482;
}

.vmql-toolbar-actions button {
    background: var(--vm-color-primary);
    border: 0;
    color: #ffffff;
    cursor: pointer;
}

.vmql-list {
    display: grid;
    gap: .85rem;
    padding: 1rem;
}

.vmql-card {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--vm-color-border);
    border-left-width: 3px;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(16rem, .95fr) minmax(22rem, 1.3fr) minmax(10rem, .55fr) minmax(10.5rem, .55fr);
    min-height: 8rem;
    padding: 1rem;
    position: relative;
}

.vmql-card-teal,
.vmql-card-green { border-left-color: #078c88; }
.vmql-card-amber { border-left-color: #f59f00; }
.vmql-card-blue { border-left-color: #1b8ef5; }
.vmql-card-rose { border-left-color: #ef333f; }
.vmql-card-slate { border-left-color: #83919b; }

.vmql-identity {
    align-items: center;
    display: grid;
    gap: .8rem;
    grid-template-columns: auto minmax(0, 1fr);
    min-width: 0;
}

.vmql-avatar {
    align-items: center;
    border-radius: 10px;
    display: inline-flex;
    height: 3.4rem;
    justify-content: center;
    width: 3.4rem;
}

.vmql-avatar-teal,
.vmql-avatar-green { background: #e4f7f4; color: #007f7a; }
.vmql-avatar-amber { background: #fff2dc; color: #d87500; }
.vmql-avatar-blue { background: #e9f3ff; color: #1c75d8; }
.vmql-avatar-rose { background: #fff0f1; color: #df3b47; }
.vmql-avatar-slate { background: #eef3f5; color: #596a75; }

.vmql-identity a {
    color: #007f7a;
    display: inline-flex;
    font-size: .84rem;
    font-weight: 900;
    text-decoration: none;
}

.vmql-identity strong {
    color: var(--vm-color-text);
    display: block;
    font-size: .94rem;
    font-weight: 900;
    line-height: 1.18;
    margin-top: .25rem;
}

.vmql-identity small {
    color: var(--vm-color-muted);
    display: block;
    font-size: .76rem;
    font-weight: 650;
    margin-top: .28rem;
}

.vmql-detail-grid {
    border-left: 1px solid var(--vm-color-border-soft);
    display: grid;
    gap: .8rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-width: 0;
    padding-left: 1rem;
}

.vmql-detail-grid div {
    display: grid;
    gap: .12rem .5rem;
    grid-template-columns: auto minmax(0, 1fr);
    min-width: 0;
}

.vmql-detail-grid .vmql-icon {
    color: #5d6f7b;
    grid-row: span 3;
    height: .95rem;
    margin-top: .04rem;
    width: .95rem;
}

.vmql-detail-grid span,
.vmql-total small {
    color: #627483;
    font-size: .72rem;
    font-weight: 720;
    line-height: 1;
}

.vmql-detail-grid strong {
    color: var(--vm-color-text);
    font-size: .8rem;
    font-weight: 850;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vmql-detail-grid small {
    color: #536575;
    display: block;
    font-size: .72rem;
    font-weight: 650;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vmql-total {
    display: grid;
    gap: .42rem;
    justify-items: start;
    min-width: 0;
}

.vmql-total > strong {
    color: var(--vm-color-text);
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1;
}

.vmql-pill {
    border-radius: 999px;
    display: inline-flex;
    font-size: .76rem;
    font-weight: 850;
    line-height: 1;
    padding: .48rem .75rem;
    white-space: nowrap;
}

.vmql-pill-teal,
.vmql-pill-green { background: #def5e8; color: #0a8754; }
.vmql-pill-amber { background: #fff0d5; color: #d47b00; }
.vmql-pill-blue { background: #e6f2ff; color: #126ab4; }
.vmql-pill-rose { background: #ffe7e8; color: #d52f3b; }
.vmql-pill-slate { background: #eef3f5; color: #596a75; }

.vmql-actions {
    align-items: stretch;
    display: grid;
    gap: .5rem;
    min-width: 0;
    position: relative;
}

.vmql-actions .vmql-row-button {
    border-radius: 8px;
    font-size: .78rem;
    justify-content: center;
    min-height: 2.45rem;
    padding-inline: .85rem;
    width: 100%;
}

.vmql-actions button.vmql-row-button {
    cursor: pointer;
}

.vmql-row-primary {
    border-color: transparent;
}

.vmql-row-teal {
    background: #e4f7f4;
    color: #007f7a;
}

.vmql-row-green {
    background: #def5e8;
    color: #0a8754;
}

.vmql-row-blue {
    background: #e6f2ff;
    color: #126ab4;
}

.vmql-row-light {
    background: #f5f8fa;
    color: #31444e;
}

.vmql-more {
    display: inline-flex;
    justify-self: end;
    position: absolute;
    right: -.1rem;
    top: -1rem;
}

.vmql-more summary {
    align-items: center;
    color: #304554;
    cursor: pointer;
    display: inline-flex;
    height: 1.9rem;
    justify-content: center;
    list-style: none;
    width: 1.9rem;
}

.vmql-more summary::-webkit-details-marker {
    display: none;
}

.vmql-more div {
    background: #ffffff;
    border: 1px solid var(--vm-color-border);
    border-radius: 8px;
    box-shadow: var(--vm-shadow-popover);
    display: grid;
    gap: .12rem;
    min-width: 12.5rem;
    padding: .45rem;
    position: absolute;
    right: 0;
    top: calc(100% + .35rem);
    z-index: 30;
}

.vmql-more a,
.vmql-more button {
    background: transparent;
    border: 0;
    border-radius: 7px;
    color: #223544;
    cursor: pointer;
    display: block;
    font-size: .8rem;
    font-weight: 760;
    padding: .65rem .72rem;
    text-align: left;
    text-decoration: none;
    width: 100%;
}

.vmql-more a:hover,
.vmql-more button:hover {
    background: #eefafa;
    color: #007d7a;
}

.vmql-empty {
    align-items: center;
    border: 1px dashed var(--vm-color-border);
    border-radius: 8px;
    color: #617380;
    display: grid;
    gap: .35rem;
    justify-items: center;
    padding: 2.6rem 1rem;
    text-align: center;
}

.vmql-empty strong {
    color: var(--vm-color-text);
    font-size: .95rem;
}

.vmql-empty span {
    font-size: .82rem;
    font-weight: 650;
}

.vmql-footer {
    align-items: center;
    border-top: 1px solid var(--vm-color-border-soft);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: .8rem 1rem;
}

.vmql-footer > span {
    color: #536575;
    font-size: .84rem;
    font-weight: 650;
}

.vmql-pagination {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .48rem;
    justify-content: flex-end;
}

.vmql-pagination a,
.vmql-per-page {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--vm-color-border);
    border-radius: 8px;
    color: #304554;
    display: inline-flex;
    font-size: .82rem;
    font-weight: 760;
    height: 2.55rem;
    justify-content: center;
    min-width: 2.55rem;
    text-decoration: none;
}

.vmql-pagination a.is-active {
    background: var(--vm-color-primary);
    border-color: var(--vm-color-primary);
    box-shadow: 0 8px 18px rgba(0, 119, 116, .18);
    color: #ffffff;
}

.vmql-pagination a.is-disabled {
    color: #a6b1b8;
    pointer-events: none;
}

.vmql-per-page {
    gap: .55rem;
    padding: 0 .75rem;
}

.vmql-per-page span {
    color: #536575;
    font-weight: 680;
}

.vmql-per-page select {
    appearance: none;
    background: transparent;
    border: 0;
    color: #10242d;
    font-weight: 850;
    outline: 0;
    padding-right: .4rem;
}

@media (max-width: 1360px) {
    .vmql-card {
        align-items: start;
        grid-template-columns: minmax(16rem, .85fr) minmax(20rem, 1fr) minmax(10rem, .5fr);
    }

    .vmql-actions {
        grid-column: 2 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vmql-more {
        right: 0;
        top: -4.35rem;
    }
}

@media (max-width: 1120px) {
    .vmql-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vmql-toolbar,
    .vmc-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vmql-toolbar-actions,
    .vmc-filter-button {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .vmql-card {
        grid-template-columns: 1fr;
    }

    .vmql-detail-grid {
        border-left: 0;
        padding-left: 0;
    }

    .vmql-actions {
        grid-column: auto;
    }

    .vmql-more {
        top: .25rem;
    }
}

@media (max-width: 760px) {
    .vmql-page-head {
        align-items: stretch;
        flex-direction: column;
    }

    .vmql-head-actions,
    .vmql-button {
        width: 100%;
    }

    .vmql-metrics,
    .vmql-toolbar,
    .vmql-detail-grid,
    .vmql-actions,
    .vmc-filters {
        grid-template-columns: 1fr;
    }

    .vmql-tabs {
        display: grid;
        grid-template-columns: 1fr;
    }

    .vmql-tab {
        justify-content: flex-start;
    }

    .vmql-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .vmql-pagination,
    .vmql-per-page {
        width: 100%;
    }
}

/* Site-wide responsive portal foundation */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    min-width: 0;
}

body,
.fi-body,
.fi-layout,
.fi-main,
.fi-main-ctn,
.fi-page,
.fi-page-content,
.fi-page-sub-navigation-sidebar-ctn {
    min-width: 0 !important;
}

.fi-main {
    margin-inline: auto;
    width: 100%;
}

.fi-page {
    gap: clamp(.9rem, 1.6vw, 1.35rem) !important;
}

.fi-header,
.fi-page > .fi-header {
    min-width: 0;
}

.fi-header-heading {
    font-size: clamp(1.4rem, 2vw, 2rem) !important;
    letter-spacing: 0 !important;
    line-height: 1.08 !important;
}

.fi-header-subheading {
    max-width: 70ch;
}

.fi-topbar {
    min-width: 0;
    position: sticky !important;
    top: 0;
    z-index: 30;
}

.fi-topbar > nav,
.fi-topbar .fi-topbar-start,
.fi-topbar .fi-topbar-end {
    min-width: 0;
}

.vm-topbar-breadcrumb,
.vm-topbar-actions,
.vm-topbar-search,
.vm-date-range,
.vm-topbar-bell,
.vm-topbar-user-meta {
    min-width: 0;
}

.vm-topbar-breadcrumb {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    max-width: min(34vw, 32rem);
}

.vm-topbar-breadcrumb a,
.vm-topbar-breadcrumb span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vm-topbar-breadcrumb svg {
    flex: 0 0 auto;
}

.vm-topbar-actions {
    align-items: center;
    display: flex;
    gap: .75rem;
    justify-content: flex-end;
}

.vm-date-range,
.vm-topbar-search,
.vm-topbar-bell {
    background: #ffffff;
    border: 1px solid var(--vm-color-border);
    border-radius: 10px;
    color: #263a48;
    min-height: 2.65rem;
}

.vm-date-range {
    align-items: center;
    display: inline-flex;
    gap: .55rem;
    padding: 0 .85rem;
    text-decoration: none;
}

.vm-date-range span {
    font-size: .82rem;
    font-weight: 760;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vm-date-range svg,
.vm-topbar-search svg,
.vm-topbar-bell svg {
    display: block;
    flex: 0 0 auto;
    height: 1.05rem;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 1.05rem;
}

.vm-topbar-search {
    align-items: center;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    overflow: hidden;
    width: clamp(13rem, 20vw, 19rem);
}

.vm-topbar-search input {
    background: transparent;
    border: 0;
    color: var(--vm-color-text);
    font-size: .86rem;
    font-weight: 650;
    min-width: 0;
    outline: 0;
    padding: 0 .8rem;
}

.vm-topbar-search input::placeholder {
    color: #8899a6;
}

.vm-topbar-search button,
.vm-topbar-bell {
    align-items: center;
    background: transparent;
    border: 0;
    color: #526675;
    cursor: pointer;
    display: inline-flex;
    height: 2.65rem;
    justify-content: center;
    width: 2.65rem;
}

.vm-topbar-bell {
    background: #ffffff;
    border: 1px solid var(--vm-color-border);
    text-decoration: none;
}

.vm-topbar-user-meta {
    display: grid;
    line-height: 1.1;
    max-width: 10rem;
}

.vm-topbar-user-meta strong,
.vm-topbar-user-meta span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vm-topbar-user-meta strong {
    color: var(--vm-color-text);
    font-size: .86rem;
    font-weight: 850;
}

.vm-topbar-user-meta span {
    color: var(--vm-color-muted);
    font-size: .72rem;
    font-weight: 650;
    margin-top: .16rem;
}

.fi-sidebar {
    isolation: isolate;
}

.fi-sidebar-nav,
.fi-sidebar-nav-groups {
    min-width: 0;
}

.fi-sidebar-item a,
.fi-sidebar-item-button {
    min-width: 0;
}

.fi-sidebar-item-label,
.fi-sidebar-item a span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vm-sidebar-footer {
    display: grid;
    gap: .85rem;
    padding: .75rem .9rem 1rem;
}

.vm-help-card {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 10px;
    color: #f4fffd;
    display: grid;
    gap: .6rem;
    padding: 1rem;
}

.vm-help-icon {
    align-items: center;
    background: rgba(255, 255, 255, .12);
    border-radius: 9px;
    color: #ffffff;
    display: inline-flex;
    height: 2.35rem;
    justify-content: center;
    width: 2.35rem;
}

.vm-help-icon svg {
    height: 1.15rem;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 1.15rem;
}

.vm-help-card strong {
    font-size: .98rem;
    font-weight: 900;
    line-height: 1.15;
}

.vm-help-card p {
    color: rgba(244, 255, 253, .78);
    font-size: .8rem;
    font-weight: 560;
    line-height: 1.45;
    margin: 0;
}

.vm-help-card a,
.vm-collapse-btn {
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    justify-content: center;
    text-decoration: none;
}

.vm-help-card a {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .14);
    color: #ffffff;
    font-size: .82rem;
    font-weight: 820;
    gap: .5rem;
    min-height: 2.4rem;
}

.vm-collapse-btn {
    background: transparent;
    border: 0;
    color: rgba(244, 255, 253, .78);
    cursor: pointer;
    gap: .45rem;
    min-height: 2.1rem;
}

.fi-section,
.fi-ta-ctn,
.fi-fo-component-ctn,
.fi-modal-window {
    overflow: hidden;
}

.fi-section-content,
.fi-fo-component-ctn,
.fi-fo-field-wrp,
.fi-fo-field-wrp > div,
.fi-input-wrp,
.fi-select-input,
.fi-textarea {
    min-width: 0 !important;
}

.fi-fo-grid {
    min-width: 0;
}

.fi-fo-field-wrp-label,
.fi-fo-field-wrp-helper-text,
.fi-fo-field-wrp-error-message {
    max-width: 100%;
}

.fi-input,
.fi-select-input,
.fi-textarea,
.fi-fo-field-wrp input,
.fi-fo-field-wrp textarea,
.fi-fo-field-wrp select {
    max-width: 100%;
}

.fi-ta-ctn,
.fi-ta-header,
.fi-ta-content,
.fi-ta-footer {
    min-width: 0;
}

.fi-ta-content,
.fi-ta-table-ctn,
.fi-ta-selection-cell {
    overflow-x: auto;
    scrollbar-color: rgba(7, 140, 136, .34) transparent;
    scrollbar-width: thin;
}

.fi-ta-table {
    border-collapse: separate;
    border-spacing: 0;
    min-width: 58rem;
}

.fi-ta-header-toolbar,
.fi-ta-header-toolbar > div,
.fi-ta-actions,
.fi-ta-bulk-actions,
.fi-ta-filters,
.fi-ta-filter-indicators,
.fi-ta-pagination,
.fi-pagination,
.fi-pagination-overview,
.fi-pagination-records-per-page-select {
    align-items: center;
    flex-wrap: wrap;
    gap: .6rem;
    min-width: 0;
}

.fi-ta-header-toolbar .fi-input-wrp,
.fi-ta-filters .fi-input-wrp,
.fi-ta-filters select,
.fi-ta-filters input {
    min-width: 0;
}

.fi-ta-cell,
.fi-ta-text,
.fi-ta-col-wrp,
.fi-ta-cell .fi-badge,
.fi-badge {
    max-width: 100%;
}

.fi-ta-cell,
.fi-ta-text {
    overflow-wrap: anywhere;
}

.fi-badge {
    border-radius: 999px !important;
    line-height: 1.1;
    white-space: normal;
}

.fi-dropdown-panel,
.fi-modal-window {
    max-width: min(calc(100vw - 1.5rem), var(--width, 42rem)) !important;
}

.fi-modal-window {
    margin-inline: .75rem;
}

.fi-modal-content {
    max-height: min(74vh, 48rem);
    overflow-y: auto;
}

.fm-page-shell,
.vm-dashboard,
.vm-business-profiles,
.vmc-page,
.vm-quote-page,
.vm-job-cards,
.vm-quotes-list {
    max-width: 100%;
    min-width: 0;
}

.fm-page-shell {
    display: grid;
    gap: clamp(1rem, 1.8vw, 1.4rem);
}

.fm-dashboard-hero,
.fm-profile-hero,
.fm-card,
.fm-list-row,
.fm-pricing-card,
.vm-stat-card,
.vm-panel,
.vmb-card,
.vmb-table-card,
.vmc-calendar-card,
.vmc-stats,
.vmq-card,
.vmq-progress-card,
.vmj-card,
.vmql-card,
.vmql-panel {
    max-width: 100%;
    min-width: 0;
}

.fm-dashboard-hero,
.fm-profile-hero {
    align-items: center;
    gap: 1rem;
}

.fm-hero-actions,
.fm-profile-actions,
.vmj-head-actions,
.vmql-head-actions,
.vmq-actions,
.vmb-toolbar,
.vmb-table-actions,
.vmc-date-tools {
    flex-wrap: wrap;
    min-width: 0;
}

.fm-grid,
.fm-stat-grid,
.fm-two-col,
.fm-three-col,
.fm-package-grid,
.fm-profile-layout,
.vm-stat-row,
.vm-quick-grid,
.vm-metric-grid,
.vm-dashboard-grid,
.vmb-summary-grid,
.vmc-stats,
.vmql-metrics {
    min-width: 0;
}

.fm-list-title,
.fm-list-meta,
.fm-card-title,
.fm-card-subtitle,
.vm-panel-header h2,
.vm-stat-label,
.vmj-primary *,
.vmql-identity *,
.vmb-business-name,
.vmb-business-meta {
    overflow-wrap: anywhere;
}

.fm-responsive-table,
.vm-table-wrap,
.vmb-table-scroll,
.vmq-table-wrap {
    overflow-x: auto;
    scrollbar-color: rgba(7, 140, 136, .34) transparent;
    scrollbar-width: thin;
}

.fm-comparison-table,
.vm-table,
.vmb-table,
.vmq-items-table {
    min-width: 48rem;
}

button,
a,
summary,
select,
input,
textarea {
    touch-action: manipulation;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible,
.fi-btn:focus-visible {
    outline: 3px solid rgba(7, 140, 136, .22);
    outline-offset: 2px;
}

@media (max-width: 1280px) {
    .fi-main {
        padding-inline: 1.2rem !important;
    }

    .vm-topbar-breadcrumb {
        max-width: 26vw;
    }

    .vm-date-range {
        max-width: 14rem;
    }

    .vm-topbar-search {
        width: clamp(11.5rem, 18vw, 16rem);
    }

    .fm-stat-grid,
    .vm-stat-row,
    .vmb-summary-grid,
    .vmql-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .fi-topbar {
        position: sticky !important;
    }

    .vm-topbar-breadcrumb {
        max-width: 42vw;
    }

    .vm-topbar-actions {
        gap: .55rem;
    }

    .vm-date-range {
        display: none;
    }

    .vm-topbar-search {
        width: min(36vw, 16rem);
    }

    .fi-ta-table {
        min-width: 52rem;
    }

    .fm-two-col,
    .fm-three-col,
    .fm-profile-layout,
    .vm-dashboard-grid {
        grid-template-columns: 1fr !important;
    }

    .fm-package-grid,
    .vm-quick-grid,
    .vm-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 820px) {
    .fi-main {
        padding: .85rem !important;
    }

    .fi-page {
        gap: .9rem !important;
    }

    .fi-header-heading {
        font-size: 1.35rem !important;
    }

    .vm-topbar-breadcrumb {
        max-width: 55vw;
    }

    .vm-topbar-breadcrumb span,
    .vm-topbar-breadcrumb svg {
        display: none;
    }

    .vm-topbar-search {
        display: none;
    }

    .vm-topbar-user-meta {
        display: none;
    }

    .fi-ta-header-toolbar,
    .fi-ta-filters,
    .fi-ta-pagination,
    .fi-pagination {
        align-items: stretch;
        flex-direction: column;
    }

    .fi-ta-header-toolbar > *,
    .fi-ta-filters > *,
    .fi-ta-pagination > *,
    .fi-pagination > *,
    .fi-ta-header-toolbar .fi-input-wrp,
    .fi-ta-filters .fi-input-wrp {
        width: 100%;
    }

    .fi-section-content,
    .fi-modal-content {
        padding-inline: .95rem !important;
    }

    .fm-dashboard-hero,
    .fm-profile-hero {
        align-items: stretch;
        grid-template-columns: 1fr !important;
        padding: 1rem !important;
    }

    .fm-hero-actions,
    .fm-profile-actions,
    .vmj-head-actions,
    .vmql-head-actions,
    .vmq-actions,
    .vmb-toolbar,
    .vmb-table-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .fm-button,
    .fm-button-secondary,
    .vmj-button,
    .vmql-button,
    .vmq-action,
    .vmb-add-button {
        width: 100%;
    }

    .vm-stat-row,
    .vm-quick-grid,
    .vm-metric-grid,
    .fm-stat-grid,
    .fm-package-grid,
    .vmb-summary-grid,
    .vmql-metrics,
    .vmc-stats {
        grid-template-columns: 1fr !important;
    }

    .vm-table-footer,
    .vmj-footer,
    .vmql-footer,
    .vmb-table-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .vm-pagination,
    .vmj-pagination,
    .vmql-pagination,
    .vmb-pagination {
        justify-content: flex-start;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .fi-main {
        padding: .65rem !important;
    }

    .fi-section,
    .fi-ta-ctn,
    .fi-fo-component-ctn,
    .fi-modal-window,
    .fm-card,
    .vm-panel,
    .vm-stat-card,
    .vmj-card,
    .vmql-card,
    .vmc-calendar-card,
    .vmq-card,
    .vmq-progress-card {
        border-radius: 9px !important;
    }

    .fi-ta-table {
        min-width: 46rem;
    }

    .fi-ta-cell,
    .fi-ta-text {
        font-size: .8rem;
    }

    .fi-modal-window {
        margin: .5rem;
    }

    .fi-modal-content {
        max-height: 72vh;
    }

    .vm-topbar-breadcrumb {
        max-width: 44vw;
    }

    .vm-topbar-bell {
        height: 2.35rem;
        width: 2.35rem;
    }

    .vm-help-card {
        display: none;
    }

    .fm-list-row,
    .fm-billing-current,
    .fm-billing-meta,
    .fm-profile-links a {
        grid-template-columns: 1fr !important;
    }

    .fm-comparison-table,
    .vm-table,
    .vmb-table,
    .vmq-items-table {
        min-width: 40rem;
    }

    .vmc-schedule-shell,
    .vm-table-wrap,
    .vmb-table-scroll,
    .vmq-table-wrap,
    .fm-responsive-table,
    .fi-ta-content {
        margin-inline: -.65rem;
        padding-inline: .65rem;
    }
}

@media (max-width: 420px) {
    .fi-main {
        padding: .5rem !important;
    }

    .vm-topbar-breadcrumb {
        max-width: 40vw;
    }

    .vm-topbar-breadcrumb a {
        max-width: 8rem;
    }

    .fi-ta-table {
        min-width: 42rem;
    }

    .fm-dashboard-hero h1,
    .fm-profile-hero h1,
    .vmj-page-head h1,
    .vmql-page-head h1,
    .vmc-page-head h1,
    .vmq-title-row h1 {
        font-size: 1.35rem !important;
    }
}

/* Business owner Staff Management polish */
body:has(.vms-staff-person) .fi-ta-ctn {
    overflow: visible !important;
}

body:has(.vms-staff-person) .fi-ta-content {
    overflow-x: auto;
    padding-bottom: .15rem;
}

body:has(.vms-staff-person) .fi-ta-table {
    border-collapse: separate;
    border-spacing: 0;
    min-width: 72rem;
    table-layout: fixed;
}

body:has(.vms-staff-person) .fi-ta-header-cell {
    background: #f9fcfc;
    border-bottom: 1px solid rgba(199, 215, 218, .86);
    color: #10242d;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: 0;
    padding-bottom: 1rem !important;
    padding-top: 1rem !important;
}

body:has(.vms-staff-person) .fi-ta-row {
    background: #fff;
}

body:has(.vms-staff-person) .fi-ta-row:hover {
    background: #fbfefe !important;
}

body:has(.vms-staff-person) .fi-ta-cell {
    border-bottom: 1px solid rgba(223, 232, 234, .9);
    padding-bottom: 1.05rem !important;
    padding-top: 1.05rem !important;
    vertical-align: middle;
}

body:has(.vms-staff-person) .fi-ta-cell:first-child {
    padding-left: 1.25rem !important;
}

body:has(.vms-staff-person) .fi-ta-cell:last-child {
    padding-right: 1.25rem !important;
}

body:has(.vms-staff-person) .fi-ta-text {
    color: #10242d;
    font-weight: 700;
    line-height: 1.45;
}

.vms-staff-person {
    align-items: center;
    display: grid;
    gap: .85rem;
    grid-template-columns: auto minmax(0, 1fr);
    min-width: 16rem;
}

.vms-avatar {
    align-items: center;
    background: linear-gradient(135deg, #d7f5f1, #c6ece8);
    border-radius: 12px;
    color: #007f7a;
    display: inline-flex;
    font-size: .9rem;
    font-weight: 900;
    height: 3.25rem;
    justify-content: center;
    letter-spacing: .02em;
    width: 3.25rem;
}

.vms-person-copy,
.vms-staff-meta {
    display: grid;
    gap: .18rem;
    min-width: 0;
}

.vms-person-copy strong,
.vms-staff-meta strong {
    color: #10242d;
    font-size: .92rem;
    font-weight: 900;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vms-person-copy small,
.vms-person-copy em,
.vms-staff-meta small,
.vms-staff-meta em {
    color: #5f7280;
    font-size: .78rem;
    font-style: normal;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.vms-staff-meta {
    min-width: 11rem;
}

.vms-staff-meta em {
    color: #7c8b94;
    font-weight: 600;
}

body:has(.vms-staff-person) .fi-badge {
    border-radius: 999px !important;
    font-weight: 900 !important;
    min-height: 1.9rem;
    padding-inline: .75rem !important;
}

body:has(.vms-staff-person) .fi-ta-actions {
    justify-content: flex-end;
}

body:has(.vms-staff-person) .fi-ac-grouped-action,
body:has(.vms-staff-person) .fi-dropdown-trigger .fi-btn {
    border: 1px solid var(--fm-border) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    min-height: 2.75rem;
    min-width: 3.25rem;
}

body:has(.vms-staff-person) .fi-pagination,
body:has(.vms-staff-person) .fi-ta-pagination {
    padding: 1rem 1.25rem !important;
}

@media (max-width: 1100px) {
    body:has(.vms-staff-person) .fi-ta-table {
        min-width: 64rem;
    }

    .vms-staff-person {
        min-width: 14rem;
    }
}

@media (max-width: 760px) {
    body:has(.vms-staff-person) .fi-header {
        align-items: stretch;
        gap: .85rem;
    }

    body:has(.vms-staff-person) .fi-header-actions,
    body:has(.vms-staff-person) .fi-ta-header-toolbar {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    body:has(.vms-staff-person) .fi-header-actions .fi-btn,
    body:has(.vms-staff-person) .fi-ta-header-toolbar .fi-btn,
    body:has(.vms-staff-person) .fi-ta-header-toolbar .fi-input-wrp {
        width: 100%;
    }

    body:has(.vms-staff-person) .fi-ta-content {
        margin-inline: -.65rem;
        padding-inline: .65rem;
    }

    body:has(.vms-staff-person) .fi-ta-table {
        min-width: 58rem;
    }

    .vms-avatar {
        border-radius: 10px;
        height: 2.85rem;
        width: 2.85rem;
    }
}

/* Vehicles Manager dashboard redesign: blue-indigo operational workspace */
:root {
    --vmx-sidebar: #213a7b;
    --vmx-sidebar-deep: #16295f;
    --vmx-sidebar-active: #3552a6;
    --vmx-indigo: #3153c7;
    --vmx-indigo-deep: #2846ad;
    --vmx-teal: #13b8aa;
    --vmx-blue: #2684ff;
    --vmx-orange: #ff8a21;
    --vmx-purple: #6954d9;
    --vmx-green: #22a862;
    --vmx-red: #ec4b4b;
    --vmx-bg: #f4f7fb;
    --vmx-card: #ffffff;
    --vmx-border: #e3e8f2;
    --vmx-text: #111f45;
    --vmx-muted: #687796;
    --vmx-soft-shadow: 0 8px 22px rgba(35, 55, 105, .06);
}

html,
body,
.fi-body,
.fi-layout {
    font-family: Poppins, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

body:has(.vmx-dashboard),
body:has(.vmx-dashboard) .fi-body,
body:has(.vmx-dashboard) .fi-layout {
    background: var(--vmx-bg) !important;
    color: var(--vmx-text);
}

body:has(.vmx-dashboard) .fi-main {
    padding: 1.45rem 1.7rem 1.4rem !important;
}

body:has(.vmx-dashboard) .fi-page {
    gap: 0 !important;
}

body:has(.vmx-dashboard) .fi-page > .fi-header,
body:has(.vmx-dashboard) .vm-topbar-breadcrumb {
    display: none !important;
}

.fi-topbar {
    background: rgba(255, 255, 255, .96) !important;
    border-bottom: 1px solid var(--vmx-border) !important;
    box-shadow: none !important;
    min-height: 4.35rem;
}

.vmx-topbar-actions {
    align-items: center;
    display: flex;
    gap: .85rem;
    width: 100%;
}

.vmx-topbar-search {
    background: #f2f5fb;
    border: 1px solid transparent;
    border-radius: 6px;
    display: flex;
    flex: 1 1 22rem;
    max-width: 26rem;
    min-height: 2.65rem;
    min-width: 13rem;
    padding: 0 .65rem;
}

.vmx-topbar-search button,
.vmx-topbar-search span {
    align-items: center;
    background: transparent;
    border: 0;
    color: #7a86a4;
    display: inline-flex;
    flex: 0 0 auto;
    justify-content: center;
}

.vmx-topbar-search svg {
    height: 1rem;
    stroke-linecap: round;
    stroke-linejoin: round;
    width: 1rem;
}

.vmx-topbar-search input {
    background: transparent;
    border: 0;
    color: var(--vmx-text);
    flex: 1 1 auto;
    font-size: .83rem;
    font-weight: 500;
    min-width: 0;
    outline: none;
    padding: 0 .65rem;
}

.vmx-topbar-search span {
    background: #e9eef8;
    border-radius: 5px;
    font-size: .72rem;
    font-weight: 700;
    height: 1.55rem;
    padding: 0 .5rem;
}

.vmx-location-select,
.vmx-topbar-icon {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--vmx-border);
    border-radius: 6px;
    color: var(--vmx-text);
    display: inline-flex;
    font-size: .82rem;
    font-weight: 600;
    gap: .55rem;
    min-height: 2.65rem;
    padding: 0 .8rem;
    text-decoration: none;
    white-space: nowrap;
}

.vmx-location-select svg,
.vmx-topbar-icon svg {
    height: 1rem;
    stroke-linecap: round;
    stroke-linejoin: round;
    width: 1rem;
}

.vmx-topbar-icon {
    justify-content: center;
    padding: 0;
    position: relative;
    width: 2.65rem;
}

.vmx-topbar-badge span {
    align-items: center;
    background: #2386ff;
    border: 2px solid #ffffff;
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-size: .66rem;
    font-weight: 800;
    height: 1.12rem;
    justify-content: center;
    min-width: 1.12rem;
    padding-inline: .18rem;
    position: absolute;
    right: -.35rem;
    top: -.35rem;
}

.fi-sidebar {
    background:
        radial-gradient(circle at 22% 4%, rgba(95, 123, 216, .28), transparent 11rem),
        linear-gradient(180deg, var(--vmx-sidebar) 0%, #1d3573 44%, var(--vmx-sidebar-deep) 100%) !important;
    border-right: 0 !important;
    color: #ffffff !important;
}

.fi-sidebar-header {
    border-bottom: 1px solid rgba(255, 255, 255, .12) !important;
    min-height: 4.35rem !important;
    padding-inline: 1.25rem !important;
}

.fi-sidebar .fi-logo,
.fi-sidebar-header a,
.fi-sidebar-header span,
.fi-sidebar-header .fi-icon-btn,
.fi-sidebar-header .fi-icon-btn svg {
    color: #ffffff !important;
}

.fi-sidebar-nav {
    gap: .35rem !important;
    padding: .95rem .72rem .7rem !important;
    scrollbar-color: rgba(178, 193, 255, .52) rgba(22, 41, 95, .42) !important;
}

.fi-sidebar-group {
    gap: .18rem !important;
    margin-top: .45rem !important;
}

.fi-sidebar-group-label {
    color: rgba(219, 227, 255, .68) !important;
    font-size: .68rem !important;
    font-weight: 600 !important;
    letter-spacing: .08em !important;
    padding: .42rem .55rem .2rem !important;
    text-transform: uppercase !important;
}

.fi-sidebar-group-button {
    border-radius: 7px !important;
    min-height: 2.25rem !important;
}

.fi-sidebar-group-button:hover {
    background: rgba(255, 255, 255, .07) !important;
}

.fi-sidebar-group-icon,
.fi-sidebar-group-collapse-button,
.fi-sidebar-group-collapse-button svg {
    color: rgba(219, 227, 255, .68) !important;
}

.fi-sidebar-item a,
.fi-sidebar-item-button {
    border: 1px solid transparent !important;
    border-radius: 7px !important;
    color: rgba(245, 248, 255, .94) !important;
    font-size: .88rem !important;
    font-weight: 500 !important;
    min-height: 2.62rem !important;
    padding-inline: .75rem !important;
}

.fi-sidebar-item-label,
.fi-sidebar-item-icon,
.fi-sidebar-item svg,
.fi-sidebar-item a span {
    color: rgba(245, 248, 255, .94) !important;
}

.fi-sidebar-item a:hover,
.fi-sidebar-item-button:hover {
    background: rgba(255, 255, 255, .09) !important;
    border-color: rgba(255, 255, 255, .12) !important;
}

.fi-sidebar-item.fi-active a,
.fi-sidebar-item.fi-active .fi-sidebar-item-button {
    background: rgba(66, 93, 188, .88) !important;
    border-color: rgba(255, 255, 255, .14) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1) !important;
    color: #ffffff !important;
    position: relative;
}

.fi-sidebar-item.fi-active a::before,
.fi-sidebar-item.fi-active .fi-sidebar-item-button::before {
    background: #ffffff;
    border-radius: 999px;
    content: "";
    height: 1.35rem;
    left: .18rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: .18rem;
}

.fi-sidebar .fi-badge,
.fi-sidebar-item-badge {
    background: #24c6bd !important;
    border: 0 !important;
    border-radius: 999px !important;
    color: #ffffff !important;
    font-size: .68rem !important;
    font-weight: 800 !important;
    min-width: 1.25rem !important;
    padding: .16rem .38rem !important;
}

.fi-sidebar-sub-group-items {
    border-left: 0 !important;
    gap: .06rem !important;
    margin: .08rem 0 .2rem 1.55rem !important;
    padding-left: 0 !important;
}

.fi-sidebar-sub-group-items .fi-sidebar-item a {
    background: transparent !important;
    border: 0 !important;
    border-radius: 5px !important;
    color: rgba(226, 234, 255, .82) !important;
    font-size: .8rem !important;
    min-height: 1.78rem !important;
    padding: 0 .45rem !important;
}

.fi-sidebar-sub-group-items .fi-sidebar-item a::before {
    background: transparent !important;
    color: rgba(226, 234, 255, .7) !important;
    content: "-" !important;
    height: auto !important;
    margin-right: .58rem !important;
    position: static !important;
    transform: none !important;
    width: auto !important;
}

.fi-sidebar-sub-group-items .fi-sidebar-item a:hover {
    background: rgba(255, 255, 255, .07) !important;
    color: #ffffff !important;
}

.vm-help-card {
    background: rgba(255, 255, 255, .075) !important;
    border-color: rgba(255, 255, 255, .12) !important;
    border-radius: 8px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05) !important;
}

.vm-help-icon {
    background: rgba(255, 255, 255, .12) !important;
}

.vm-help-card strong,
.vm-help-card a {
    color: #ffffff !important;
}

.vm-help-card p {
    color: rgba(225, 234, 255, .82) !important;
}

.vmx-dashboard {
    display: grid;
    gap: 1.15rem;
    margin-inline: auto;
    max-width: 1540px;
    min-width: 0;
}

.vmx-dashboard [id] {
    scroll-margin-top: 5.25rem;
}

.vmx-hero {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.vmx-hero h1 {
    color: var(--vmx-text);
    font-size: 1.38rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.2;
    margin: 0;
}

.vmx-hero p {
    color: var(--vmx-muted);
    font-size: .86rem;
    font-weight: 500;
    margin: .32rem 0 0;
}

.vmx-hero-actions {
    align-items: center;
    display: flex;
    gap: .85rem;
    justify-content: flex-end;
}

.vmx-date-button,
.vmx-primary-button,
.vmx-quick-menu summary,
.vmx-filter-button,
.vmx-segments button {
    align-items: center;
    border-radius: 6px;
    display: inline-flex;
    font-size: .82rem;
    font-weight: 600;
    gap: .55rem;
    min-height: 2.65rem;
    text-decoration: none;
    white-space: nowrap;
}

.vmx-date-button,
.vmx-quick-menu summary,
.vmx-filter-button {
    background: #ffffff;
    border: 1px solid var(--vmx-border);
    color: var(--vmx-text);
    padding: 0 .95rem;
}

.vmx-primary-button {
    background: var(--vmx-indigo);
    border: 1px solid var(--vmx-indigo);
    box-shadow: 0 8px 18px rgba(49, 83, 199, .16);
    color: #ffffff;
    padding: 0 1.05rem;
}

.vmx-primary-button:hover {
    background: var(--vmx-indigo-deep);
    color: #ffffff;
}

.vmx-quick-menu {
    position: relative;
}

.vmx-quick-menu summary {
    cursor: pointer;
    list-style: none;
}

.vmx-quick-menu summary::-webkit-details-marker {
    display: none;
}

.vmx-quick-menu > div {
    background: #ffffff;
    border: 1px solid var(--vmx-border);
    border-radius: 7px;
    box-shadow: 0 18px 38px rgba(17, 31, 69, .12);
    display: grid;
    gap: .2rem;
    min-width: 12.5rem;
    padding: .45rem;
    position: absolute;
    right: 0;
    top: calc(100% + .45rem);
    z-index: 20;
}

.vmx-quick-menu a {
    border-radius: 5px;
    color: var(--vmx-text);
    font-size: .82rem;
    font-weight: 600;
    padding: .62rem .7rem;
    text-decoration: none;
}

.vmx-quick-menu a:hover {
    background: #f3f6fc;
}

.vmx-kpi-grid {
    display: grid;
    gap: 1.1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.vmx-kpi-card,
.vmx-card {
    background: var(--vmx-card);
    border: 1px solid var(--vmx-border);
    border-radius: 7px;
    box-shadow: var(--vmx-soft-shadow);
    min-width: 0;
}

.vmx-kpi-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 10.75rem;
    overflow: hidden;
    padding: 1.25rem 1.15rem 0;
    position: relative;
}

.vmx-kpi-label {
    align-items: center;
    color: #53617f;
    display: flex;
    font-size: .78rem;
    font-weight: 600;
    gap: .45rem;
    letter-spacing: .02em;
}

.vmx-kpi-label svg {
    color: #8a97b4;
    height: .85rem;
    width: .85rem;
}

.vmx-kpi-card strong {
    color: var(--vmx-text);
    display: block;
    font-size: 1.78rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1;
    margin-top: .78rem;
}

.vmx-kpi-trend {
    color: var(--vmx-green);
    display: grid;
    font-size: .8rem;
    font-weight: 600;
    gap: .18rem;
    margin-top: .7rem;
}

.vmx-kpi-trend small {
    color: var(--vmx-muted);
    font-size: .72rem;
    font-weight: 500;
}

.vmx-trend-down {
    color: var(--vmx-red) !important;
}

.vmx-trend-neutral {
    color: var(--vmx-muted) !important;
}

.vmx-kpi-icon {
    align-items: center;
    border-radius: 7px;
    display: inline-flex;
    height: 3.85rem;
    justify-content: center;
    width: 3.85rem;
}

.vmx-kpi-icon svg,
.vmx-icon {
    stroke-linecap: round;
    stroke-linejoin: round;
}

.vmx-tone-teal .vmx-kpi-icon {
    background: #dff8f5;
    color: var(--vmx-teal);
}

.vmx-tone-blue .vmx-kpi-icon {
    background: #e4f1ff;
    color: var(--vmx-blue);
}

.vmx-tone-orange .vmx-kpi-icon,
.vmx-tone-amber .vmx-kpi-icon {
    background: #fff0df;
    color: var(--vmx-orange);
}

.vmx-tone-indigo .vmx-kpi-icon,
.vmx-tone-purple .vmx-kpi-icon {
    background: #eeeaff;
    color: var(--vmx-purple);
}

.vmx-kpi-card > a,
.vmx-card-link {
    align-items: center;
    border-top: 1px solid var(--vmx-border);
    color: var(--vmx-indigo);
    display: flex;
    font-size: .82rem;
    font-weight: 600;
    gap: .55rem;
    grid-column: 1 / -1;
    margin: 1rem -1.15rem 0;
    min-height: 2.75rem;
    padding: 0 1.15rem;
    text-decoration: none;
}

.vmx-card-link {
    margin: 0;
}

.vmx-kpi-card > a svg,
.vmx-card-link svg {
    height: .95rem;
    width: .95rem;
}

.vmx-analytics-grid {
    display: grid;
    gap: 1.1rem;
    grid-template-columns: minmax(0, 1.55fr) minmax(21rem, .95fr);
}

.vmx-card {
    overflow: hidden;
}

.vmx-card-header {
    align-items: center;
    border-bottom: 1px solid var(--vmx-border);
    display: flex;
    gap: .9rem;
    justify-content: space-between;
    min-height: 3.15rem;
    padding: .82rem 1rem;
}

.vmx-card-header h2 {
    color: var(--vmx-text);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0;
    margin: 0;
}

.vmx-card-header a {
    color: var(--vmx-indigo);
    font-size: .78rem;
    font-weight: 600;
    text-decoration: none;
}

.vmx-segments {
    display: flex;
    gap: .25rem;
}

.vmx-segments button {
    background: #ffffff;
    border: 1px solid var(--vmx-border);
    color: #39496d;
    cursor: pointer;
    min-height: 2.05rem;
    padding: 0 .7rem;
}

.vmx-segments .is-active {
    background: var(--vmx-indigo);
    border-color: var(--vmx-indigo);
    color: #ffffff;
}

.vmx-performance-metrics {
    background: #fbfcff;
    border: 1px solid var(--vmx-border);
    border-radius: 6px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 1rem;
}

.vmx-performance-metrics > div {
    border-right: 1px solid var(--vmx-border);
    min-width: 0;
    padding: .8rem 1rem;
}

.vmx-performance-metrics > div:last-child {
    border-right: 0;
}

.vmx-performance-metrics span {
    color: var(--vmx-muted);
    display: block;
    font-size: .78rem;
    font-weight: 500;
}

.vmx-performance-metrics strong {
    color: var(--vmx-text);
    display: inline-block;
    font-size: 1.08rem;
    font-weight: 600;
    margin-top: .25rem;
}

.vmx-performance-metrics small {
    display: inline-block;
    font-size: .75rem;
    font-weight: 600;
    margin-left: .38rem;
}

.vmx-chart-legend {
    align-items: center;
    display: flex;
    gap: 1rem;
    padding: .1rem 1rem .35rem;
}

.vmx-chart-legend span {
    align-items: center;
    color: #50607d;
    display: flex;
    font-size: .78rem;
    font-weight: 500;
    gap: .45rem;
}

.vmx-dot {
    border-radius: 999px;
    display: inline-block;
    height: .55rem;
    width: .55rem;
}

.vmx-dot-teal {
    background: var(--vmx-teal);
}

.vmx-dot-indigo {
    background: var(--vmx-indigo);
}

.vmx-combo-chart {
    display: block;
    height: 18rem;
    margin-top: .2rem;
    width: 100%;
}

.vmx-grid-line {
    stroke: #e7ebf3;
    stroke-width: 1;
}

.vmx-chart-bar {
    fill: var(--vmx-teal);
}

.vmx-chart-line {
    fill: none;
    stroke: var(--vmx-blue);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
}

.vmx-combo-chart text {
    fill: #7a86a4;
    font-size: 10px;
    text-anchor: middle;
}

.vmx-filter-button {
    cursor: pointer;
    min-height: 2.15rem;
    padding-inline: .7rem;
}

.vmx-status-layout {
    align-items: center;
    display: grid;
    gap: 1.1rem;
    grid-template-columns: minmax(12rem, .9fr) minmax(12rem, 1fr);
    padding: 1.45rem 1.25rem 1.15rem;
}

.vmx-donut {
    align-items: center;
    aspect-ratio: 1;
    background: var(--vmx-donut);
    border-radius: 999px;
    display: grid;
    justify-self: center;
    max-width: 12.2rem;
    padding: 2rem;
    width: 100%;
}

.vmx-donut > div {
    align-items: center;
    background: #ffffff;
    border-radius: inherit;
    display: grid;
    height: 100%;
    justify-items: center;
    place-content: center;
    width: 100%;
}

.vmx-donut span {
    color: var(--vmx-muted);
    font-size: .78rem;
    font-weight: 500;
}

.vmx-donut strong {
    color: var(--vmx-text);
    font-size: 1.58rem;
    font-weight: 600;
    line-height: 1;
    margin-top: .3rem;
}

.vmx-status-list {
    display: grid;
    gap: .78rem;
}

.vmx-status-list div {
    align-items: center;
    display: grid;
    gap: .55rem;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.vmx-status-list i {
    border-radius: 999px;
    height: .52rem;
    width: .52rem;
}

.vmx-status-list span,
.vmx-status-list strong,
.vmx-status-list small {
    color: #26385e;
    font-size: .82rem;
    font-weight: 500;
}

.vmx-status-list strong {
    font-weight: 600;
}

.vmx-status-list small {
    color: #77839f;
}

.vmx-bottom-grid {
    display: grid;
    gap: 1.1rem;
    grid-template-columns: minmax(0, 1.72fr) minmax(20rem, .78fr) minmax(17rem, .62fr);
}

.vmx-table-wrap {
    overflow-x: auto;
}

.vmx-job-table {
    border-collapse: collapse;
    width: 100%;
}

.vmx-job-table th,
.vmx-job-table td {
    border-bottom: 1px solid var(--vmx-border);
    font-size: .74rem;
    padding: .7rem .8rem;
    text-align: left;
    vertical-align: middle;
}

.vmx-job-table th {
    background: #fbfcff;
    color: #64708c;
    font-weight: 600;
    text-transform: uppercase;
}

.vmx-job-table td {
    color: #1c2e54;
    font-weight: 500;
}

.vmx-job-table td > a {
    color: var(--vmx-indigo);
    font-weight: 600;
    text-decoration: none;
}

.vmx-badge {
    border-radius: 5px;
    display: inline-flex;
    font-size: .68rem;
    font-style: normal;
    font-weight: 600;
    line-height: 1;
    padding: .36rem .54rem;
    white-space: nowrap;
}

.vmx-status-awaiting-approval,
.vmx-status-sent,
.vmx-status-viewed,
.vmx-status-requested,
.vmx-status-pending,
.vmx-priority-high,
.vmx-priority-urgent {
    background: #fff0dc;
    color: #c26300;
}

.vmx-status-ready,
.vmx-status-confirmed,
.vmx-status-accepted {
    background: #daf8f3;
    color: #087f75;
}

.vmx-status-in-progress,
.vmx-status-checked-in {
    background: #e4f1ff;
    color: #126ac4;
}

.vmx-status-on-hold {
    background: #eeeaff;
    color: #5741c7;
}

.vmx-status-completed,
.vmx-status-paid,
.vmx-priority-low {
    background: #e2f7e8;
    color: #148247;
}

.vmx-status-cancelled,
.vmx-status-declined,
.vmx-status-no-show,
.vmx-status-overdue {
    background: #ffe7e7;
    color: #c92f36;
}

.vmx-priority-normal {
    background: #edf1f8;
    color: #52617e;
}

.vmx-row-action {
    align-items: center;
    border: 1px solid var(--vmx-border);
    border-radius: 5px;
    color: #52617e;
    display: inline-flex;
    height: 1.9rem;
    justify-content: center;
    width: 2.2rem;
}

.vmx-row-action svg {
    height: .9rem;
    width: .9rem;
}

.vmx-booking-list,
.vmx-action-list {
    display: grid;
}

.vmx-booking-list a {
    align-items: center;
    border-bottom: 1px solid var(--vmx-border);
    color: var(--vmx-text);
    display: grid;
    gap: .7rem;
    grid-template-columns: 4.25rem minmax(0, 1fr) auto;
    min-height: 4.25rem;
    padding: .78rem 1rem;
    text-decoration: none;
}

.vmx-booking-list a > strong {
    color: var(--vmx-text);
    font-size: .82rem;
    font-weight: 600;
}

.vmx-booking-list b {
    display: block;
    font-size: .8rem;
    font-weight: 600;
}

.vmx-booking-list small {
    color: var(--vmx-muted);
    display: block;
    font-size: .72rem;
    font-weight: 500;
    margin-top: .18rem;
}

.vmx-booking-list em {
    justify-self: end;
}

.vmx-action-list {
    gap: .58rem;
    padding: .85rem 1rem;
}

.vmx-action-item {
    align-items: center;
    background: #fbfcff;
    border-radius: 6px;
    color: var(--vmx-text);
    display: grid;
    gap: .65rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 2.95rem;
    padding: .58rem .7rem;
    text-decoration: none;
}

.vmx-action-item > span {
    align-items: center;
    border-radius: 5px;
    display: inline-flex;
    height: 1.85rem;
    justify-content: center;
    width: 1.85rem;
}

.vmx-action-item strong {
    font-size: .78rem;
    font-weight: 600;
}

.vmx-action-item em {
    border-radius: 5px;
    font-size: .78rem;
    font-style: normal;
    font-weight: 700;
    min-width: 1.8rem;
    padding: .36rem .52rem;
    text-align: center;
}

.vmx-action-orange > span,
.vmx-action-orange em {
    background: #fff0dc;
    color: #c26300;
}

.vmx-action-red > span,
.vmx-action-red em {
    background: #ffe7e7;
    color: #c92f36;
}

.vmx-action-blue > span,
.vmx-action-blue em {
    background: #e4f1ff;
    color: #126ac4;
}

.vmx-empty {
    color: var(--vmx-muted);
    font-size: .82rem;
    padding: 1rem;
    text-align: center;
}

html.vmx-dark body:has(.vmx-dashboard),
html.vmx-dark body:has(.vmx-dashboard) .fi-body,
html.vmx-dark body:has(.vmx-dashboard) .fi-layout {
    --vmx-bg: #0e172d;
    --vmx-card: #151f38;
    --vmx-border: #24304b;
    --vmx-text: #edf3ff;
    --vmx-muted: #9aa8c4;
    background: var(--vmx-bg) !important;
}

html.vmx-dark body:has(.vmx-dashboard) .fi-topbar,
html.vmx-dark body:has(.vmx-dashboard) .vmx-kpi-card,
html.vmx-dark body:has(.vmx-dashboard) .vmx-card,
html.vmx-dark body:has(.vmx-dashboard) .vmx-date-button,
html.vmx-dark body:has(.vmx-dashboard) .vmx-quick-menu summary,
html.vmx-dark body:has(.vmx-dashboard) .vmx-location-select,
html.vmx-dark body:has(.vmx-dashboard) .vmx-topbar-icon {
    background: var(--vmx-card) !important;
    border-color: var(--vmx-border) !important;
    color: var(--vmx-text) !important;
}

html.vmx-dark body:has(.vmx-dashboard) .vmx-topbar-search,
html.vmx-dark body:has(.vmx-dashboard) .vmx-performance-metrics,
html.vmx-dark body:has(.vmx-dashboard) .vmx-job-table th,
html.vmx-dark body:has(.vmx-dashboard) .vmx-action-item {
    background: #111a30 !important;
}

html.vmx-dark body:has(.vmx-dashboard) .vmx-donut > div {
    background: var(--vmx-card);
}

@media (max-width: 1380px) {
    .vmx-bottom-grid {
        grid-template-columns: minmax(0, 1fr) minmax(19rem, .55fr);
    }

    .vmx-actions-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1180px) {
    body:has(.vmx-dashboard) .fi-main {
        padding: 1.15rem !important;
    }

    .vmx-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vmx-analytics-grid,
    .vmx-bottom-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 920px) {
    .vmx-topbar-search {
        max-width: none;
    }

    .vmx-location-select,
    .vmx-topbar-icon:nth-of-type(1),
    .vmx-topbar-icon:nth-of-type(3) {
        display: none;
    }

    .vmx-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .vmx-hero-actions {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: .15rem;
    }

    .vmx-status-layout,
    .vmx-performance-metrics {
        grid-template-columns: 1fr;
    }

    .vmx-performance-metrics > div {
        border-right: 0;
        border-bottom: 1px solid var(--vmx-border);
    }

    .vmx-performance-metrics > div:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 700px) {
    body:has(.vmx-dashboard) .fi-main {
        padding: .8rem !important;
    }

    .vmx-kpi-grid,
    .vmx-status-layout,
    .vmx-performance-metrics {
        grid-template-columns: 1fr;
    }

    .vmx-kpi-card {
        min-height: 9.4rem;
    }

    .vmx-card-header {
        align-items: stretch;
        flex-direction: column;
    }

    .vmx-segments {
        overflow-x: auto;
        padding-bottom: .15rem;
    }

    .vmx-combo-chart {
        height: 14.5rem;
    }

    .vmx-job-table,
    .vmx-job-table tbody,
    .vmx-job-table tr,
    .vmx-job-table td {
        display: block;
        width: 100%;
    }

    .vmx-job-table thead {
        display: none;
    }

    .vmx-job-table tr {
        border-bottom: 1px solid var(--vmx-border);
        padding: .65rem .8rem;
    }

    .vmx-job-table td {
        border-bottom: 0;
        display: grid;
        gap: .7rem;
        grid-template-columns: 7.5rem minmax(0, 1fr);
        padding: .32rem 0;
    }

    .vmx-job-table td::before {
        color: var(--vmx-muted);
        content: attr(data-label);
        font-size: .72rem;
        font-weight: 600;
        text-transform: uppercase;
    }

    .vmx-job-table td[data-label]::before {
        content: attr(data-label);
    }

    .vmx-booking-list a {
        align-items: start;
        grid-template-columns: 1fr;
    }

    .vmx-booking-list em {
        justify-self: start;
    }
}

@media (max-width: 520px) {
    .vmx-topbar-search span,
    .vmx-topbar-badge,
    .vmx-date-button svg:last-child,
    .vmx-quick-menu {
        display: none;
    }

    .vmx-hero-actions,
    .vmx-date-button,
    .vmx-primary-button {
        width: 100%;
    }

    .vmx-hero-actions {
        flex-direction: column;
    }

    .vmx-date-button,
    .vmx-primary-button {
        justify-content: center;
    }
}

/* Compact reference sidebar matching the supplied dashboard screenshot */
:root {
    --vm-ref-sidebar-width: 16.25rem;
    --vm-ref-sidebar-collapsed: 3.9rem;
}

.fi-sidebar {
    background: linear-gradient(180deg, #213b82 0%, #193672 48%, #10275d 100%) !important;
    border-right: 0 !important;
    color: #ffffff !important;
    width: var(--vm-ref-sidebar-width) !important;
}

.fi-sidebar-header {
    border-bottom: 1px solid rgba(255, 255, 255, .08) !important;
    min-height: 3.95rem !important;
    padding: 0 .92rem !important;
}

.fi-sidebar-header a,
.fi-sidebar-header .fi-logo {
    min-width: 0 !important;
}

.fi-sidebar-header .fi-icon-btn {
    color: rgba(255, 255, 255, .82) !important;
    height: 1.65rem !important;
    margin-left: auto !important;
    width: 1.65rem !important;
}

.fi-sidebar-header .fi-icon-btn svg {
    height: .82rem !important;
    width: .82rem !important;
}

.fi-sidebar-nav {
    gap: .18rem !important;
    padding: .45rem .68rem .62rem !important;
    scrollbar-color: rgba(153, 173, 231, .45) rgba(16, 39, 93, .45) !important;
}

.fi-sidebar-nav-groups {
    gap: .28rem !important;
}

.fi-sidebar-group {
    gap: .03rem !important;
    margin: 0 !important;
}

.fi-sidebar-group-label {
    color: rgba(194, 207, 244, .68) !important;
    font-size: .5rem !important;
    font-weight: 700 !important;
    letter-spacing: .08em !important;
    line-height: 1 !important;
    padding: .44rem .24rem .2rem !important;
    text-transform: uppercase !important;
}

.fi-sidebar-group-button {
    min-height: 1.55rem !important;
}

.fi-sidebar-item a,
.fi-sidebar-item-button {
    border: 1px solid transparent !important;
    border-radius: 6px !important;
    color: rgba(247, 250, 255, .95) !important;
    font-size: .62rem !important;
    font-weight: 700 !important;
    gap: .46rem !important;
    min-height: 1.72rem !important;
    padding: 0 .5rem !important;
}

.fi-sidebar-item-label,
.fi-sidebar-item-icon,
.fi-sidebar-item svg,
.fi-sidebar-item a span {
    color: rgba(247, 250, 255, .95) !important;
}

.fi-sidebar-item-icon,
.fi-sidebar-item svg {
    height: .82rem !important;
    width: .82rem !important;
}

.fi-sidebar-item a:hover,
.fi-sidebar-item-button:hover {
    background: rgba(255, 255, 255, .08) !important;
    border-color: rgba(255, 255, 255, .08) !important;
}

.fi-sidebar-item.fi-active a,
.fi-sidebar-item.fi-active .fi-sidebar-item-button {
    background: rgba(72, 103, 198, .72) !important;
    border-color: rgba(255, 255, 255, .08) !important;
    box-shadow: 0 7px 18px rgba(5, 18, 54, .12) !important;
}

.fi-sidebar-item.fi-active a::before,
.fi-sidebar-item.fi-active .fi-sidebar-item-button::before {
    display: none !important;
}

.fi-sidebar-sub-group-items {
    border-left: 0 !important;
    gap: .08rem !important;
    margin: .12rem 0 .22rem 1.02rem !important;
    padding: 0 !important;
}

.fi-sidebar-sub-group-items .fi-sidebar-item a {
    background: transparent !important;
    border: 0 !important;
    color: rgba(218, 228, 255, .78) !important;
    font-size: .53rem !important;
    font-weight: 600 !important;
    gap: .4rem !important;
    min-height: 1.24rem !important;
    padding: 0 .2rem !important;
}

.fi-sidebar-sub-group-items .fi-sidebar-item a::before {
    background: rgba(218, 228, 255, .78) !important;
    border-radius: 999px !important;
    content: "" !important;
    display: inline-flex !important;
    flex: 0 0 auto !important;
    height: .2rem !important;
    margin-right: .3rem !important;
    position: static !important;
    transform: none !important;
    width: .2rem !important;
}

.fi-sidebar .fi-badge,
.fi-sidebar-item-badge {
    background: #20c7bd !important;
    border: 0 !important;
    border-radius: 999px !important;
    color: #ffffff !important;
    font-size: .52rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    min-height: .92rem !important;
    min-width: .92rem !important;
    padding: .18rem .3rem !important;
}

.vm-sidebar-footer {
    border-top: 0 !important;
    padding: .55rem .68rem .76rem !important;
}

.vm-help-card {
    align-items: center !important;
    background: rgba(255, 255, 255, .055) !important;
    border: 1px solid rgba(255, 255, 255, .1) !important;
    border-radius: 6px !important;
    display: grid !important;
    gap: .03rem .45rem !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    min-height: 3.05rem !important;
    padding: .58rem .62rem !important;
}

.vm-help-icon {
    align-items: center !important;
    background: rgba(255, 255, 255, .08) !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    grid-row: 1 / span 2 !important;
    height: 1.38rem !important;
    justify-content: center !important;
    width: 1.38rem !important;
}

.vm-help-icon svg {
    height: .72rem !important;
    width: .72rem !important;
}

.vm-help-card strong {
    color: #ffffff !important;
    font-size: .62rem !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
}

.vm-help-card p {
    color: rgba(222, 232, 255, .78) !important;
    font-size: .47rem !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    margin: 0 !important;
}

.vm-help-card a,
.vm-collapse-btn {
    display: none !important;
}

@media (min-width: 1024px) {
    .fi-sidebar-open {
        width: var(--vm-ref-sidebar-width) !important;
    }

    .fi-sidebar:not(.fi-sidebar-open) {
        width: var(--vm-ref-sidebar-collapsed) !important;
    }

    .fi-sidebar:not(.fi-sidebar-open) .vm-help-card {
        display: none !important;
    }
}

/* Topbar and dropdown repairs after compact sidebar pass */
.vmx-topbar-actions {
    min-width: 0 !important;
}

.vmx-topbar-search {
    border: 1px solid transparent !important;
    box-shadow: none !important;
    overflow: hidden !important;
}

.vmx-topbar-search:focus-within {
    background: #f4f7fc !important;
    border-color: #cdd7eb !important;
    box-shadow: 0 0 0 3px rgba(49, 83, 199, .08) !important;
}

.vmx-topbar-search input,
.vmx-topbar-search input:focus,
.vmx-topbar-search input:focus-visible {
    border: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
    outline-offset: 0 !important;
    --tw-ring-color: transparent !important;
    --tw-ring-offset-shadow: 0 0 #0000 !important;
    --tw-ring-shadow: 0 0 #0000 !important;
}

.vmx-topbar-search button,
.vmx-location-select,
.vmx-topbar-icon {
    color: #25385f !important;
}

.vmx-topbar-search svg,
.vmx-location-select svg,
.vmx-topbar-icon svg {
    color: currentColor !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    stroke-width: 1.8 !important;
}

.vmx-topbar-search svg *,
.vmx-location-select svg *,
.vmx-topbar-icon svg * {
    stroke: currentColor !important;
}

.fi-topbar .fi-user-menu {
    flex: 0 0 auto !important;
    max-width: none !important;
    min-width: 10.5rem !important;
}

.vm-topbar-user-meta {
    display: grid !important;
    line-height: 1.15 !important;
    margin-left: .5rem !important;
    max-width: 9.25rem !important;
    min-width: 7.75rem !important;
}

.vm-topbar-user-meta strong,
.vm-topbar-user-meta span {
    display: block !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.vm-topbar-user-meta strong {
    color: #071536 !important;
    font-size: .82rem !important;
    font-weight: 800 !important;
}

.vm-topbar-user-meta span {
    color: #52627f !important;
    font-size: .68rem !important;
    font-weight: 600 !important;
}

.fi-dropdown-panel {
    background: rgba(255, 255, 255, .98) !important;
    border: 1px solid #dce3ef !important;
    border-radius: 10px !important;
    box-shadow: 0 18px 44px rgba(16, 32, 68, .16) !important;
    max-width: min(18.5rem, calc(100vw - 1.5rem)) !important;
    width: min(18.5rem, calc(100vw - 1.5rem)) !important;
}

.fi-dropdown-list {
    padding: .38rem !important;
}

.fi-dropdown-list-item {
    border-radius: 7px !important;
    font-size: .82rem !important;
    font-weight: 700 !important;
    min-height: 2.25rem !important;
    padding: .44rem .55rem !important;
}

.fi-dropdown-list-item-icon {
    color: #087c78 !important;
    height: 1rem !important;
    width: 1rem !important;
}

.fi-dropdown-list-item svg {
    color: currentColor !important;
    stroke: currentColor !important;
}

/* Tight topbar spacing: keep the controls and profile as one right-side cluster */
body:has(.vmx-dashboard) .fi-topbar > nav {
    gap: .55rem !important;
    padding-left: .85rem !important;
    padding-right: 1rem !important;
}

body:has(.vmx-dashboard) .fi-topbar [x-persist^="topbar.end"] {
    flex: 0 1 auto !important;
    gap: .42rem !important;
    justify-content: flex-end !important;
    margin-left: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    width: auto !important;
}

body:has(.vmx-dashboard) .vmx-topbar-actions {
    flex: 0 1 auto !important;
    gap: .55rem !important;
    justify-content: flex-end !important;
    max-width: none !important;
    width: max-content !important;
}

body:has(.vmx-dashboard) .vmx-topbar-search {
    flex: 0 1 24rem !important;
    max-width: 24rem !important;
    min-width: 17rem !important;
    width: clamp(17rem, 25vw, 24rem) !important;
}

body:has(.vmx-dashboard) .vmx-location-select {
    flex: 0 1 16.5rem !important;
    max-width: 16.5rem !important;
    min-width: 12rem !important;
}

body:has(.vmx-dashboard) .vmx-location-select span {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body:has(.vmx-dashboard) .fi-topbar .fi-user-menu {
    flex: 0 0 auto !important;
    margin-left: .08rem !important;
    max-width: max-content !important;
    min-width: 0 !important;
    width: auto !important;
}

body:has(.vmx-dashboard) .fi-topbar .fi-user-menu button {
    display: inline-flex !important;
    margin: 0 !important;
}

body:has(.vmx-dashboard) .vm-topbar-user-meta {
    flex: 0 1 auto !important;
    margin-left: -.16rem !important;
    max-width: 8.75rem !important;
    min-width: 0 !important;
    width: auto !important;
}

@media (max-width: 1180px) {
    body:has(.vmx-dashboard) .vmx-topbar-search {
        flex-basis: 18rem !important;
        min-width: 13rem !important;
    }

    body:has(.vmx-dashboard) .vmx-location-select {
        max-width: 13rem !important;
        min-width: 10rem !important;
    }
}

/* Bookings list page */
body:has(.vm-bookings-page) .fi-page {
    background: #f5f7fb !important;
    padding: 1.45rem 1.7rem 2rem !important;
}

body:has(.vm-bookings-page) .fi-page > .fi-header,
body:has(.vm-bookings-page) .vm-topbar-breadcrumb {
    display: none !important;
}

body:has(.vm-bookings-page) .fi-page-content {
    max-width: none !important;
}

body:has(.vm-bookings-page) .fi-topbar > nav {
    gap: .6rem !important;
    padding-left: 1.15rem !important;
    padding-right: 1.2rem !important;
}

body:has(.vm-bookings-page) .fi-topbar [x-persist^="topbar.end"] {
    flex: 0 1 auto !important;
    gap: .55rem !important;
    justify-content: flex-end !important;
    margin-left: auto !important;
    min-width: 0 !important;
    width: auto !important;
}

body:has(.vm-bookings-page) .vmx-topbar-actions {
    flex: 0 1 auto !important;
    gap: .55rem !important;
    justify-content: flex-end !important;
    max-width: none !important;
    width: max-content !important;
}

body:has(.vm-bookings-page) .vmx-topbar-search {
    flex: 0 1 31rem !important;
    max-width: 31rem !important;
    min-width: 19rem !important;
    width: clamp(19rem, 31vw, 31rem) !important;
}

body:has(.vm-bookings-page) .vmx-location-select {
    flex: 0 1 15.5rem !important;
    max-width: 15.5rem !important;
    min-width: 12rem !important;
}

body:has(.vm-bookings-page) .vm-topbar-user-meta {
    flex: 0 1 auto !important;
    max-width: 10rem !important;
    min-width: 0 !important;
    width: auto !important;
}

.vm-bookings-page {
    color: #07143d;
    margin: 0 auto;
    max-width: 1510px;
}

.vmbk-icon {
    display: inline-block;
    flex: 0 0 auto;
    height: 1.12rem;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 1.12rem;
}

.vmbk-hero {
    align-items: flex-end;
    display: flex;
    gap: 1.25rem;
    justify-content: space-between;
    margin-bottom: 1.55rem;
}

.vmbk-breadcrumb {
    align-items: center;
    color: #4b5a82;
    display: flex;
    font-size: .92rem;
    font-weight: 600;
    gap: .65rem;
    margin-bottom: .85rem;
}

.vmbk-breadcrumb span {
    color: #55648a;
    font-weight: 500;
}

.vmbk-breadcrumb strong {
    color: #07143d;
}

.vmbk-breadcrumb .vmbk-icon {
    height: .9rem;
    opacity: .55;
    width: .9rem;
}

.vmbk-hero h1 {
    color: #07143d;
    font-size: clamp(2rem, 2.2vw, 2.35rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.05;
    margin: 0;
}

.vmbk-hero p {
    color: #435172;
    font-size: .98rem;
    font-weight: 500;
    margin: .55rem 0 0;
}

.vmbk-head-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    justify-content: flex-end;
}

.vmbk-button,
.vmbk-view-button {
    align-items: center;
    border: 1px solid #dfe6f3;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    font-weight: 700;
    gap: .62rem;
    height: 3.05rem;
    justify-content: center;
    padding: 0 1.22rem;
    text-decoration: none;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
    white-space: nowrap;
}

.vmbk-button-light,
.vmbk-view-button {
    background: #ffffff;
    color: #172141;
}

.vmbk-button-primary {
    background: #2751d2;
    border-color: #2751d2;
    box-shadow: 0 14px 28px rgba(39, 81, 210, .22);
    color: #ffffff;
}

.vmbk-button:hover,
.vmbk-view-button:hover {
    border-color: #c6d1e6;
    box-shadow: 0 12px 26px rgba(16, 27, 58, .09);
    transform: translateY(-1px);
}

.vmbk-button-primary:hover {
    background: #1d45c1;
    color: #ffffff;
}

.vmbk-filter-menu,
.vmbk-date-menu,
.vmbk-row-menu {
    position: relative;
}

.vmbk-filter-menu summary,
.vmbk-date-menu summary,
.vmbk-row-menu summary {
    list-style: none;
}

.vmbk-filter-menu summary::-webkit-details-marker,
.vmbk-date-menu summary::-webkit-details-marker,
.vmbk-row-menu summary::-webkit-details-marker {
    display: none;
}

.vmbk-filter-panel,
.vmbk-date-panel {
    background: #ffffff;
    border: 1px solid #dfe6f3;
    border-radius: 10px;
    box-shadow: 0 22px 54px rgba(8, 18, 44, .16);
    display: grid;
    gap: .82rem;
    padding: 1rem;
    position: absolute;
    right: 0;
    top: calc(100% + .65rem);
    width: min(23rem, calc(100vw - 2rem));
    z-index: 40;
}

.vmbk-filter-panel label,
.vmbk-date-panel label {
    display: grid;
    gap: .35rem;
}

.vmbk-filter-panel label > span,
.vmbk-date-panel label > span {
    color: #65708d;
    font-size: .78rem;
    font-weight: 800;
}

.vmbk-filter-panel select,
.vmbk-filter-panel input,
.vmbk-date-panel input {
    background: #ffffff;
    border: 1px solid #d8e0ef;
    border-radius: 8px;
    color: #111c3d;
    height: 2.7rem;
    padding: 0 .85rem;
    width: 100%;
}

.vmbk-filter-panel > div {
    align-items: center;
    display: flex;
    gap: .75rem;
    justify-content: flex-end;
    margin-top: .2rem;
}

.vmbk-filter-panel a,
.vmbk-filter-panel button,
.vmbk-date-panel button {
    border-radius: 8px;
    font-weight: 800;
    min-height: 2.55rem;
    padding: 0 .95rem;
    text-decoration: none;
}

.vmbk-filter-panel a {
    align-items: center;
    border: 1px solid #dfe6f3;
    color: #4b5a82;
    display: inline-flex;
}

.vmbk-filter-panel button,
.vmbk-date-panel button {
    background: #2751d2;
    border: 0;
    color: #ffffff;
}

.vmbk-stats {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 1.25rem;
}

.vmbk-stat-card {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dfe6f3;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(12, 24, 54, .07);
    display: grid;
    gap: 1.55rem;
    grid-template-columns: 4.45rem 1fr;
    min-height: 9rem;
    padding: 1.55rem 1.45rem;
}

.vmbk-stat-icon {
    align-items: center;
    border-radius: 10px;
    display: inline-flex;
    height: 4.45rem;
    justify-content: center;
    width: 4.45rem;
}

.vmbk-stat-icon .vmbk-icon {
    height: 2rem;
    width: 2rem;
}

.vmbk-tone-teal { background: #dff8f4; color: #08aaa0; }
.vmbk-tone-amber { background: #fff0dc; color: #ff8a00; }
.vmbk-tone-blue { background: #e8f1ff; color: #2456d8; }
.vmbk-tone-red { background: #ffe4e7; color: #f02d3d; }

.vmbk-stat-card > div > span {
    color: #1c2a54;
    display: block;
    font-size: .96rem;
    font-weight: 600;
}

.vmbk-stat-card strong {
    color: #07143d;
    display: block;
    font-size: 2.18rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    margin-top: .55rem;
}

.vmbk-trend {
    align-items: center;
    display: flex !important;
    font-size: .78rem;
    font-style: normal;
    font-weight: 800;
    gap: .28rem;
    margin-top: .72rem;
}

.vmbk-trend .vmbk-icon {
    height: .9rem;
    width: .9rem;
}

.vmbk-trend-up { color: #00a86b !important; }
.vmbk-trend-down { color: #ef2e42 !important; }
.vmbk-trend-flat { color: #6c7895 !important; }

.vmbk-trend em {
    color: #4c5a79;
    font-style: normal;
    font-weight: 600;
    margin-left: .08rem;
}

.vmbk-table-card {
    background: #ffffff;
    border: 1px solid #dfe6f3;
    border-radius: 10px;
    box-shadow: 0 14px 34px rgba(12, 24, 54, .08);
    overflow: visible;
}

.vmbk-tabs {
    align-items: stretch;
    border-bottom: 1px solid #dfe6f3;
    display: flex;
    gap: 0;
    overflow-x: auto;
    padding: 0 1.45rem;
}

.vmbk-tab {
    align-items: center;
    border-bottom: 3px solid transparent;
    color: #27365e;
    display: inline-flex;
    flex: 0 0 auto;
    font-weight: 700;
    gap: .72rem;
    min-height: 4.4rem;
    padding: 0 1.65rem;
    text-decoration: none;
}

.vmbk-tab:first-child {
    padding-left: 0;
}

.vmbk-tab strong {
    align-items: center;
    background: #eef2f8;
    border-radius: 999px;
    color: inherit;
    display: inline-flex;
    font-size: .74rem;
    justify-content: center;
    min-width: 1.8rem;
    padding: .22rem .48rem;
}

.vmbk-tab.is-active {
    border-bottom-color: #2751d2;
    color: #184dd4;
}

.vmbk-tab-amber strong { background: #fff0dc; color: #e57700; }
.vmbk-tab-blue strong { background: #e8f1ff; color: #2751d2; }
.vmbk-tab-green strong { background: #dff5ea; color: #009966; }
.vmbk-tab-red strong { background: #ffe8eb; color: #ef2e42; }

.vmbk-toolbar {
    align-items: center;
    border-bottom: 1px solid #e3e9f4;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1.65rem 1.45rem;
}

.vmbk-search {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dfe6f3;
    border-radius: 8px;
    color: #667493;
    display: flex;
    gap: .85rem;
    height: 3.1rem;
    max-width: 22rem;
    padding: 0 .95rem;
    width: min(22rem, 100%);
}

.vmbk-search:focus-within,
.vmbk-date-button:focus,
.vmbk-filter-menu[open] .vmbk-button,
.vmbk-date-menu[open] .vmbk-date-button {
    border-color: #a9bdf3;
    box-shadow: 0 0 0 4px rgba(39, 81, 210, .11);
}

.vmbk-search input {
    background: transparent;
    border: 0;
    color: #0d1738;
    font-weight: 600;
    min-width: 0;
    outline: 0;
    width: 100%;
}

.vmbk-search input::placeholder {
    color: #7985a0;
}

.vmbk-date-button {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dfe6f3;
    border-radius: 8px;
    color: #07143d;
    cursor: pointer;
    display: inline-flex;
    font-weight: 700;
    gap: .72rem;
    height: 3.1rem;
    padding: 0 1rem;
    white-space: nowrap;
}

.vmbk-date-button span {
    min-width: 12rem;
}

.vmbk-table-scroll {
    overflow-x: auto;
}

.vmbk-table {
    border-collapse: separate;
    border-spacing: 0;
    color: #07143d;
    min-width: 1230px;
    width: 100%;
}

.vmbk-table thead th {
    background: #fbfcfe;
    border-bottom: 1px solid #e2e8f2;
    color: #091432;
    font-size: .78rem;
    font-weight: 800;
    padding: 1rem 1.05rem;
    text-align: left;
    white-space: nowrap;
}

.vmbk-table thead th:first-child {
    padding-left: 1.45rem;
}

.vmbk-table thead th .vmbk-icon {
    color: #9aa5bd;
    height: .72rem;
    margin-left: .22rem;
    vertical-align: middle;
    width: .72rem;
}

.vmbk-table tbody td {
    border-bottom: 1px solid #edf1f7;
    padding: 1.35rem 1.05rem;
    vertical-align: middle;
}

.vmbk-table tbody tr:last-child td {
    border-bottom: 0;
}

.vmbk-table tbody tr:hover {
    background: #fbfdff;
}

.vmbk-table tbody td:first-child {
    padding-left: 1.45rem;
}

.vmbk-id-cell,
.vmbk-stack-cell,
.vmbk-date-cell {
    display: grid;
    gap: .38rem;
}

.vmbk-id-cell a {
    color: #064bd9;
    font-size: .88rem;
    font-weight: 800;
    text-decoration: none;
}

.vmbk-id-cell span,
.vmbk-stack-cell small,
.vmbk-date-cell span,
.vmbk-person-cell small {
    color: #445377;
    font-size: .82rem;
    font-weight: 500;
}

.vmbk-stack-cell strong,
.vmbk-date-cell strong,
.vmbk-bay {
    color: #07143d;
    font-size: .86rem;
    font-weight: 800;
}

.vmbk-person-cell,
.vmbk-tech-cell {
    align-items: center;
    display: flex;
    gap: .75rem;
    min-width: 0;
}

.vmbk-avatar,
.vmbk-tech-cell span {
    align-items: center;
    background: #eef2f8;
    border-radius: 999px;
    color: #22345f;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: .82rem;
    font-weight: 800;
    height: 2.25rem;
    justify-content: center;
    width: 2.25rem;
}

.vmbk-tech-cell span {
    background: linear-gradient(135deg, #f1f3f8, #dfe6f1);
    border: 2px solid #ffffff;
    box-shadow: 0 4px 10px rgba(13, 24, 55, .12);
    height: 2rem;
    width: 2rem;
}

.vmbk-person-cell strong,
.vmbk-tech-cell strong {
    color: #07143d;
    display: block;
    font-size: .86rem;
    font-weight: 800;
    max-width: 11rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vmbk-pill {
    border-radius: 7px;
    display: inline-flex;
    font-size: .78rem;
    font-weight: 800;
    justify-content: center;
    min-width: 4.25rem;
    padding: .38rem .7rem;
    white-space: nowrap;
}

.vmbk-pill-amber { background: #fff0dc; color: #ff7900; }
.vmbk-pill-teal { background: #d9f5ee; color: #008d66; }
.vmbk-pill-blue { background: #e6f1ff; color: #1d62d3; }
.vmbk-pill-green { background: #dff5ea; color: #008d66; }
.vmbk-pill-red { background: #ffe8eb; color: #ef2e42; }
.vmbk-pill-slate { background: #edf2f7; color: #56627b; }

.vmbk-actions {
    align-items: center;
    display: flex;
    gap: .55rem;
}

.vmbk-view-button {
    height: 2.55rem;
    padding: 0 1.08rem;
}

.vmbk-row-menu summary {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dfe6f3;
    border-radius: 8px;
    color: #07143d;
    cursor: pointer;
    display: inline-flex;
    height: 2.55rem;
    justify-content: center;
    width: 2.55rem;
}

.vmbk-row-menu summary:hover {
    border-color: #c6d1e6;
    box-shadow: 0 10px 22px rgba(16, 27, 58, .09);
}

.vmbk-row-menu div {
    background: #ffffff;
    border: 1px solid #dfe6f3;
    border-radius: 10px;
    box-shadow: 0 22px 54px rgba(8, 18, 44, .16);
    display: grid;
    min-width: 12rem;
    overflow: hidden;
    padding: .42rem;
    position: absolute;
    right: 0;
    top: calc(100% + .45rem);
    z-index: 45;
}

.vmbk-row-menu a,
.vmbk-row-menu button {
    background: transparent;
    border: 0;
    border-radius: 7px;
    color: #172141;
    cursor: pointer;
    font-size: .86rem;
    font-weight: 750;
    padding: .72rem .8rem;
    text-align: left;
    text-decoration: none;
}

.vmbk-row-menu a:hover,
.vmbk-row-menu button:hover {
    background: #f3f6fb;
}

.vmbk-empty {
    color: #596680;
    font-weight: 700;
    padding: 2.5rem 1rem;
    text-align: center;
}

.vmbk-footer {
    align-items: center;
    border-top: 1px solid #e3e9f4;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1.15rem 1.45rem;
}

.vmbk-footer > span {
    color: #405070;
    font-size: .92rem;
    font-weight: 600;
}

.vmbk-pagination {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    justify-content: flex-end;
}

.vmbk-pagination a,
.vmbk-page-gap,
.vmbk-per-page {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dfe6f3;
    border-radius: 8px;
    color: #24314f;
    display: inline-flex;
    font-size: .92rem;
    font-weight: 700;
    gap: .5rem;
    height: 2.75rem;
    justify-content: center;
    min-width: 2.75rem;
    padding: 0 .8rem;
    text-decoration: none;
}

.vmbk-pagination a.is-active {
    background: #2751d2;
    border-color: #2751d2;
    box-shadow: 0 12px 22px rgba(39, 81, 210, .22);
    color: #ffffff;
}

.vmbk-pagination a.is-disabled {
    color: #9aa5bd;
    pointer-events: none;
}

.vmbk-per-page {
    padding: 0 .85rem;
}

.vmbk-per-page span {
    color: #667493;
    font-size: .82rem;
}

.vmbk-per-page select {
    background: transparent;
    border: 0;
    color: #07143d;
    font-weight: 800;
    outline: 0;
}

@media (max-width: 1280px) {
    .vmbk-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vmbk-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .vmbk-head-actions {
        justify-content: flex-start;
        width: 100%;
    }
}

@media (max-width: 980px) {
    body:has(.vm-bookings-page) .fi-page {
        padding: 1rem !important;
    }

    body:has(.vm-bookings-page) .vmx-topbar-search {
        flex-basis: 18rem !important;
        min-width: 13rem !important;
    }

    body:has(.vm-bookings-page) .vmx-location-select {
        max-width: 12.5rem !important;
        min-width: 10rem !important;
    }

    .vmbk-toolbar,
    .vmbk-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .vmbk-search,
    .vmbk-date-button,
    .vmbk-date-menu {
        max-width: none;
        width: 100%;
    }

    .vmbk-date-button {
        justify-content: space-between;
    }

    .vmbk-table-scroll {
        overflow: visible;
    }

    .vmbk-table,
    .vmbk-table thead,
    .vmbk-table tbody,
    .vmbk-table th,
    .vmbk-table td,
    .vmbk-table tr {
        display: block;
        min-width: 0;
        width: 100%;
    }

    .vmbk-table thead {
        display: none;
    }

    .vmbk-table tbody {
        display: grid;
        gap: .85rem;
        padding: 1rem;
    }

    .vmbk-table tbody tr {
        border: 1px solid #e0e7f2;
        border-radius: 10px;
        box-shadow: 0 10px 22px rgba(12, 24, 54, .06);
        overflow: visible;
    }

    .vmbk-table tbody td,
    .vmbk-table tbody td:first-child {
        align-items: flex-start;
        border-bottom: 1px solid #edf1f7;
        display: grid;
        gap: .6rem;
        grid-template-columns: 8.5rem minmax(0, 1fr);
        padding: .9rem 1rem;
    }

    .vmbk-table tbody td::before {
        color: #6a7692;
        content: attr(data-label);
        font-size: .76rem;
        font-weight: 800;
        text-transform: uppercase;
    }

    .vmbk-table tbody td:last-child {
        border-bottom: 0;
    }

    .vmbk-actions {
        justify-content: flex-start;
    }

    .vmbk-row-menu div {
        left: 0;
        right: auto;
    }
}

@media (max-width: 640px) {
    .vmbk-stats {
        grid-template-columns: 1fr;
    }

    .vmbk-head-actions,
    .vmbk-button,
    .vmbk-filter-menu {
        width: 100%;
    }

    .vmbk-tabs {
        padding: 0 1rem;
    }

    .vmbk-tab {
        min-height: 3.8rem;
        padding: 0 1rem;
    }

    .vmbk-table tbody td,
    .vmbk-table tbody td:first-child {
        grid-template-columns: 1fr;
    }

    .vmbk-footer > span,
    .vmbk-pagination {
        justify-content: flex-start;
        width: 100%;
    }
}

/* Inventory dashboard page */
body:has(.vm-inventory-page) .fi-page {
    background: #f5f7fb !important;
    padding: 1.45rem 1.7rem 2rem !important;
}

body:has(.vm-inventory-page) .fi-page > .fi-header,
body:has(.vm-inventory-page) .vm-topbar-breadcrumb {
    display: none !important;
}

body:has(.vm-inventory-page) .fi-page-content {
    max-width: none !important;
}

body:has(.vm-inventory-page) .fi-topbar > nav {
    gap: .6rem !important;
    padding-left: 1.15rem !important;
    padding-right: 1.2rem !important;
}

body:has(.vm-inventory-page) .fi-topbar [x-persist^="topbar.end"] {
    flex: 0 1 auto !important;
    gap: .55rem !important;
    justify-content: flex-end !important;
    margin-left: auto !important;
    min-width: 0 !important;
    width: auto !important;
}

body:has(.vm-inventory-page) .vmx-topbar-actions {
    flex: 0 1 auto !important;
    gap: .55rem !important;
    justify-content: flex-end !important;
    max-width: none !important;
    width: max-content !important;
}

body:has(.vm-inventory-page) .vmx-topbar-search {
    flex: 0 1 31rem !important;
    max-width: 31rem !important;
    min-width: 19rem !important;
    width: clamp(19rem, 31vw, 31rem) !important;
}

body:has(.vm-inventory-page) .vmx-location-select {
    flex: 0 1 15.5rem !important;
    max-width: 15.5rem !important;
    min-width: 12rem !important;
}

.vm-inventory-page {
    color: #07143d;
    margin: 0 auto;
    max-width: 1510px;
}

.vmi-icon {
    display: inline-block;
    flex: 0 0 auto;
    height: 1.12rem;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 1.12rem;
}

.vmi-hero {
    align-items: flex-end;
    display: flex;
    gap: 1.25rem;
    justify-content: space-between;
    margin-bottom: 1.55rem;
}

.vmi-breadcrumb {
    align-items: center;
    color: #55648a;
    display: flex;
    font-size: .92rem;
    font-weight: 600;
    gap: .65rem;
    margin-bottom: .85rem;
}

.vmi-breadcrumb strong {
    color: #07143d;
}

.vmi-breadcrumb .vmi-icon {
    height: .9rem;
    opacity: .55;
    width: .9rem;
}

.vmi-hero h1 {
    color: #07143d;
    font-size: clamp(2rem, 2.2vw, 2.35rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.05;
    margin: 0;
}

.vmi-hero p {
    color: #435172;
    font-size: .98rem;
    font-weight: 500;
    margin: .55rem 0 0;
}

.vmi-head-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    justify-content: flex-end;
}

.vmi-button {
    align-items: center;
    border: 1px solid #dfe6f3;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    font-weight: 800;
    gap: .62rem;
    height: 3.05rem;
    justify-content: center;
    padding: 0 1.22rem;
    text-decoration: none;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
    white-space: nowrap;
}

.vmi-button-light {
    background: #ffffff;
    color: #172141;
}

.vmi-button-primary {
    background: #2751d2;
    border-color: #2751d2;
    box-shadow: 0 14px 28px rgba(39, 81, 210, .22);
    color: #ffffff;
}

.vmi-button:hover:not(:disabled) {
    border-color: #c6d1e6;
    box-shadow: 0 12px 26px rgba(16, 27, 58, .09);
    transform: translateY(-1px);
}

.vmi-button-primary:hover:not(:disabled) {
    background: #1d45c1;
    color: #ffffff;
}

.vmi-button:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.vmi-setup-note {
    align-items: center;
    background: #fff8e6;
    border: 1px solid #ffe1a8;
    border-radius: 10px;
    color: #7b4f00;
    display: flex;
    gap: .75rem;
    margin-bottom: 1rem;
    padding: .95rem 1.1rem;
}

.vmi-setup-note strong {
    color: #5a3900;
}

.vmi-stats {
    display: grid;
    gap: .95rem;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-bottom: 1.05rem;
}

.vmi-stat-card {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dfe6f3;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(12, 24, 54, .07);
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 4.35rem 1fr;
    min-height: 8rem;
    padding: 1.35rem 1.2rem;
}

.vmi-stat-icon {
    align-items: center;
    border-radius: 10px;
    display: inline-flex;
    height: 4.35rem;
    justify-content: center;
    width: 4.35rem;
}

.vmi-stat-icon .vmi-icon {
    height: 1.9rem;
    width: 1.9rem;
}

.vmi-tone-teal { background: #dff8f4; color: #12a286; }
.vmi-tone-amber { background: #fff0dc; color: #ff8a00; }
.vmi-tone-red { background: #ffe4e7; color: #ff343f; }
.vmi-tone-purple { background: #f1eaff; color: #6b35e8; }
.vmi-tone-blue { background: #e8f1ff; color: #2872ee; }

.vmi-stat-card > div > span {
    color: #344263;
    display: block;
    font-size: .85rem;
    font-weight: 700;
}

.vmi-stat-card strong {
    color: #07143d;
    display: block;
    font-size: 1.88rem;
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1;
    margin-top: .55rem;
}

.vmi-trend {
    align-items: center;
    display: flex !important;
    font-size: .74rem;
    font-style: normal;
    font-weight: 800;
    gap: .24rem;
    margin-top: .68rem;
}

.vmi-trend .vmi-icon {
    height: .82rem;
    width: .82rem;
}

.vmi-trend-up { color: #00a86b !important; }
.vmi-trend-down { color: #ef2e42 !important; }
.vmi-trend-flat { color: #6c7895 !important; }

.vmi-trend em {
    color: #4c5a79;
    font-style: normal;
    font-weight: 600;
}

.vmi-chart-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1.16fr 1.08fr 1fr;
    margin-bottom: 1.05rem;
}

.vmi-chart-card,
.vmi-table-card {
    background: #ffffff;
    border: 1px solid #dfe6f3;
    border-radius: 10px;
    box-shadow: 0 14px 34px rgba(12, 24, 54, .08);
}

.vmi-chart-card {
    min-height: 17.5rem;
    padding: 1.25rem 1.25rem 1.15rem;
}

.vmi-card-head {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.vmi-card-head h2 {
    color: #07143d;
    font-size: 1.02rem;
    font-weight: 850;
    margin: 0;
}

.vmi-card-head button {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dfe6f3;
    border-radius: 7px;
    color: #172141;
    display: inline-flex;
    font-size: .75rem;
    font-weight: 800;
    gap: .35rem;
    min-height: 2rem;
    padding: 0 .7rem;
}

.vmi-card-head button .vmi-icon {
    height: .78rem;
    width: .78rem;
}

.vmi-donut-wrap {
    align-items: center;
    display: grid;
    gap: 1.45rem;
    grid-template-columns: minmax(12rem, 1fr) minmax(13rem, 1fr);
    min-height: 12rem;
}

.vmi-donut {
    align-items: center;
    aspect-ratio: 1;
    border-radius: 999px;
    display: flex;
    justify-content: center;
    justify-self: center;
    max-width: 12.5rem;
    padding: 2.25rem;
    width: 100%;
}

.vmi-donut > div {
    align-items: center;
    background: #ffffff;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px #eef2f8;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.vmi-donut strong {
    color: #07143d;
    font-size: 1.85rem;
    font-weight: 850;
    line-height: 1;
}

.vmi-donut span {
    color: #465578;
    font-size: .78rem;
    font-weight: 700;
    margin-top: .35rem;
}

.vmi-donut-legend {
    display: grid;
    gap: .9rem;
}

.vmi-donut-legend div {
    align-items: center;
    display: grid;
    gap: .6rem;
    grid-template-columns: .65rem 1fr auto auto;
}

.vmi-donut-legend strong,
.vmi-donut-legend em,
.vmi-donut-legend small {
    color: #152344;
    font-size: .86rem;
    font-style: normal;
    font-weight: 750;
}

.vmi-donut-legend small {
    color: #5f6c89;
    font-weight: 600;
}

.vmi-dot {
    border-radius: 999px;
    display: inline-flex;
    height: .55rem;
    width: .55rem;
}

.vmi-dot-green { background: #16a37c; }
.vmi-dot-amber { background: #ff9f1a; }
.vmi-dot-red { background: #ff343f; }
.vmi-dot-slate { background: #c7c7c7; }

.vmi-card-link {
    align-items: center;
    color: #064bd9;
    display: inline-flex;
    font-size: .85rem;
    font-weight: 800;
    gap: .42rem;
    margin-top: .9rem;
    text-decoration: none;
}

.vmi-card-link .vmi-icon {
    height: .9rem;
    width: .9rem;
}

.vmi-line-chart {
    height: 13.8rem;
    position: relative;
}

.vmi-line-chart::before {
    background: repeating-linear-gradient(to bottom, #edf2f8 0, #edf2f8 1px, transparent 1px, transparent 3.25rem);
    content: "";
    inset: .35rem 1rem 2rem 2.7rem;
    position: absolute;
}

.vmi-line-chart svg {
    inset: .35rem 1rem 2rem 2.7rem;
    position: absolute;
}

.vmi-line-chart polygon {
    fill: rgba(39, 99, 220, .12);
}

.vmi-line-chart polyline {
    fill: none;
    stroke: #1f63e5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
    vector-effect: non-scaling-stroke;
}

.vmi-axis-y {
    color: #667493;
    display: flex;
    flex-direction: column;
    font-size: .72rem;
    font-weight: 700;
    inset: .15rem auto 1.55rem 0;
    justify-content: space-between;
    position: absolute;
    width: 2.4rem;
}

.vmi-axis-x {
    align-items: center;
    bottom: 0;
    color: #667493;
    display: flex;
    font-size: .72rem;
    font-weight: 700;
    justify-content: space-between;
    left: 2.7rem;
    position: absolute;
    right: 1rem;
}

.vmi-category-bars {
    display: grid;
    gap: 1rem;
    padding: .8rem 0 1.35rem;
}

.vmi-category-bars div {
    align-items: center;
    display: grid;
    gap: .85rem;
    grid-template-columns: 7rem 1fr 4.5rem;
}

.vmi-category-bars span,
.vmi-category-bars strong {
    color: #172141;
    font-size: .85rem;
    font-weight: 750;
}

.vmi-category-bars em {
    background: #e8f1ff;
    border-radius: 999px;
    display: block;
    height: .48rem;
    overflow: hidden;
}

.vmi-category-bars i {
    background: linear-gradient(90deg, #286eea, #4b96f4);
    border-radius: inherit;
    display: block;
    height: 100%;
}

.vmi-empty-chart,
.vmi-empty {
    color: #667493;
    font-weight: 700;
    padding: 2rem 1rem;
    text-align: center;
}

.vmi-table-card {
    overflow: visible;
}

.vmi-tabs {
    align-items: stretch;
    border-bottom: 1px solid #dfe6f3;
    display: flex;
    overflow-x: auto;
    padding: 0 1.1rem;
}

.vmi-tabs a {
    align-items: center;
    border-bottom: 3px solid transparent;
    color: #27365e;
    display: inline-flex;
    flex: 0 0 auto;
    font-weight: 750;
    gap: .65rem;
    min-height: 4.1rem;
    padding: 0 1.05rem;
    text-decoration: none;
}

.vmi-tabs a.is-active {
    border-bottom-color: #2751d2;
    color: #064bd9;
}

.vmi-tabs strong {
    background: #eef2f8;
    border-radius: 999px;
    color: inherit;
    font-size: .72rem;
    padding: .18rem .52rem;
}

.vmi-toolbar {
    align-items: center;
    border-bottom: 1px solid #e3e9f4;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(18rem, 1.4fr) minmax(10rem, .65fr) minmax(10rem, .65fr) minmax(10rem, .65fr) minmax(12rem, .8fr) auto;
    padding: 1.2rem 1.15rem;
}

.vmi-search,
.vmi-select,
.vmi-view-toggle a,
.vmi-per-page,
.vmi-pagination a,
.vmi-page-gap {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dfe6f3;
    border-radius: 8px;
    color: #172141;
    display: inline-flex;
}

.vmi-search {
    color: #667493;
    gap: .72rem;
    height: 3rem;
    padding: 0 .85rem;
}

.vmi-search input {
    background: transparent;
    border: 0;
    color: #0d1738;
    font-weight: 650;
    min-width: 0;
    outline: 0;
    width: 100%;
}

.vmi-search input::placeholder {
    color: #7985a0;
}

.vmi-select {
    height: 3rem;
    min-width: 0;
    padding: 0 .75rem;
    position: relative;
}

.vmi-select span {
    color: #667493;
    font-size: .78rem;
    font-weight: 700;
    margin-right: .25rem;
    white-space: nowrap;
}

.vmi-select select {
    appearance: none;
    background: transparent;
    border: 0;
    color: #111c3d;
    flex: 1;
    font-weight: 800;
    min-width: 0;
    outline: 0;
    padding-right: 1.2rem;
    width: 100%;
}

.vmi-select .vmi-icon {
    color: #52617d;
    height: .9rem;
    pointer-events: none;
    position: absolute;
    right: .75rem;
    width: .9rem;
}

.vmi-hidden-submit {
    height: 0;
    opacity: 0;
    padding: 0;
    position: absolute;
    width: 0;
}

.vmi-view-toggle {
    display: inline-flex;
    gap: .45rem;
    justify-content: flex-end;
}

.vmi-view-toggle a {
    height: 3rem;
    justify-content: center;
    width: 3rem;
}

.vmi-view-toggle a.is-active {
    background: #e8f1ff;
    border-color: #b7caf5;
    color: #2751d2;
}

.vmi-table-scroll {
    overflow-x: auto;
}

.vmi-table {
    border-collapse: separate;
    border-spacing: 0;
    min-width: 1220px;
    width: 100%;
}

.vmi-table thead th {
    background: #fbfcfe;
    border-bottom: 1px solid #e2e8f2;
    color: #091432;
    font-size: .74rem;
    font-weight: 850;
    padding: .85rem 1rem;
    text-align: left;
    white-space: nowrap;
}

.vmi-table thead th .vmi-icon {
    color: #9aa5bd;
    height: .72rem;
    margin-left: .22rem;
    vertical-align: middle;
    width: .72rem;
}

.vmi-table tbody td {
    border-bottom: 1px solid #edf1f7;
    color: #152344;
    font-size: .86rem;
    font-weight: 650;
    padding: .95rem 1rem;
    vertical-align: middle;
}

.vmi-table tbody tr:hover {
    background: #fbfdff;
}

.vmi-item-name {
    align-items: center;
    display: flex;
    gap: .75rem;
    min-width: 0;
}

.vmi-item-thumb {
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: .75rem;
    font-weight: 900;
    height: 2.2rem;
    justify-content: center;
    width: 2.2rem;
}

.vmi-thumb-green { background: #dff5ea; color: #008d66; }
.vmi-thumb-amber { background: #fff0dc; color: #ff7900; }
.vmi-thumb-red { background: #ffe8eb; color: #ef2e42; }
.vmi-thumb-slate { background: #edf2f7; color: #56627b; }

.vmi-item-name strong,
.vmi-stack strong,
.vmi-stock-cell strong {
    color: #07143d;
    display: block;
    font-size: .86rem;
    font-weight: 850;
}

.vmi-item-name small,
.vmi-stack small,
.vmi-stock-cell small {
    color: #51607f;
    display: block;
    font-size: .76rem;
    font-weight: 650;
    margin-top: .24rem;
}

.vmi-stock-green small { color: #008d66; }
.vmi-stock-amber small { color: #ff7900; }
.vmi-stock-red small { color: #ef2e42; }
.vmi-stock-slate small { color: #56627b; }

.vmi-pill {
    border-radius: 7px;
    display: inline-flex;
    font-size: .74rem;
    font-weight: 850;
    justify-content: center;
    min-width: 4.75rem;
    padding: .34rem .62rem;
    white-space: nowrap;
}

.vmi-pill-green { background: #dff5ea; color: #008d66; }
.vmi-pill-amber { background: #fff0dc; color: #ff7900; }
.vmi-pill-red { background: #ffe8eb; color: #ef2e42; }
.vmi-pill-slate { background: #edf2f7; color: #56627b; }

.vmi-row-menu {
    position: relative;
}

.vmi-row-menu summary {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dfe6f3;
    border-radius: 7px;
    color: #07143d;
    cursor: pointer;
    display: inline-flex;
    height: 2.35rem;
    justify-content: center;
    list-style: none;
    width: 2.35rem;
}

.vmi-row-menu summary::-webkit-details-marker {
    display: none;
}

.vmi-row-menu div {
    background: #ffffff;
    border: 1px solid #dfe6f3;
    border-radius: 10px;
    box-shadow: 0 22px 54px rgba(8, 18, 44, .16);
    display: grid;
    min-width: 12rem;
    overflow: hidden;
    padding: .42rem;
    position: absolute;
    right: 0;
    top: calc(100% + .45rem);
    z-index: 45;
}

.vmi-row-menu button {
    background: transparent;
    border: 0;
    border-radius: 7px;
    color: #172141;
    cursor: pointer;
    font-size: .84rem;
    font-weight: 750;
    padding: .7rem .8rem;
    text-align: left;
}

.vmi-row-menu button:hover {
    background: #f3f6fb;
}

.vmi-row-menu button.is-danger {
    color: #ef2e42;
}

.vmi-grid-items {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 1rem;
}

.vmi-item-card {
    background: #ffffff;
    border: 1px solid #dfe6f3;
    border-radius: 10px;
    box-shadow: 0 10px 22px rgba(12, 24, 54, .06);
    padding: 1rem;
}

.vmi-item-top,
.vmi-card-actions {
    align-items: center;
    display: flex;
    gap: .7rem;
    justify-content: space-between;
}

.vmi-item-card h3 {
    color: #07143d;
    font-size: 1rem;
    font-weight: 850;
    margin: 1rem 0 .25rem;
}

.vmi-item-card p {
    color: #51607f;
    font-size: .82rem;
    font-weight: 650;
    margin: 0 0 .95rem;
}

.vmi-item-card dl {
    display: grid;
    gap: .62rem;
    margin: 0 0 1rem;
}

.vmi-item-card dl div {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.vmi-item-card dt {
    color: #667493;
    font-size: .78rem;
    font-weight: 700;
}

.vmi-item-card dd {
    color: #07143d;
    font-size: .84rem;
    font-weight: 850;
    margin: 0;
}

.vmi-card-actions button {
    background: #ffffff;
    border: 1px solid #dfe6f3;
    border-radius: 7px;
    color: #172141;
    font-size: .8rem;
    font-weight: 800;
    min-height: 2.35rem;
    padding: 0 .7rem;
}

.vmi-card-actions button:last-child {
    background: #e8f1ff;
    border-color: #cfe0ff;
    color: #2751d2;
}

.vmi-footer {
    align-items: center;
    border-top: 1px solid #e3e9f4;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem 1.15rem;
}

.vmi-footer > span {
    color: #405070;
    font-size: .9rem;
    font-weight: 650;
}

.vmi-pagination {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    justify-content: flex-end;
}

.vmi-pagination a,
.vmi-page-gap,
.vmi-per-page {
    font-size: .9rem;
    font-weight: 750;
    gap: .5rem;
    height: 2.75rem;
    justify-content: center;
    min-width: 2.75rem;
    padding: 0 .8rem;
    text-decoration: none;
}

.vmi-pagination a.is-active {
    background: #2751d2;
    border-color: #2751d2;
    box-shadow: 0 12px 22px rgba(39, 81, 210, .22);
    color: #ffffff;
}

.vmi-pagination a.is-disabled {
    color: #9aa5bd;
    pointer-events: none;
}

.vmi-per-page span {
    color: #667493;
    font-size: .82rem;
}

.vmi-per-page select {
    background: transparent;
    border: 0;
    color: #07143d;
    font-weight: 850;
    outline: 0;
}

.vmi-modal-backdrop {
    align-items: center;
    background: rgba(4, 12, 31, .48);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 1rem;
    position: fixed;
    z-index: 120;
}

.vmi-modal {
    background: #ffffff;
    border: 1px solid #dfe6f3;
    border-radius: 12px;
    box-shadow: 0 28px 70px rgba(4, 12, 31, .28);
    max-height: min(88vh, 54rem);
    max-width: 58rem;
    overflow: auto;
    padding: 1.25rem;
    width: min(58rem, 100%);
}

.vmi-import-modal {
    max-width: 34rem;
}

.vmi-modal header,
.vmi-modal footer {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.vmi-modal h2 {
    color: #07143d;
    font-size: 1.35rem;
    font-weight: 850;
    margin: 0;
}

.vmi-modal p {
    color: #51607f;
    font-size: .9rem;
    font-weight: 600;
    margin: .35rem 0 0;
}

.vmi-modal header > button {
    background: #ffffff;
    border: 1px solid #dfe6f3;
    border-radius: 7px;
    color: #172141;
    font-weight: 800;
    min-height: 2.4rem;
    padding: 0 .8rem;
}

.vmi-form-grid {
    display: grid;
    gap: .9rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 1.2rem 0;
}

.vmi-form-grid label,
.vmi-upload {
    display: grid;
    gap: .35rem;
}

.vmi-form-grid span {
    color: #61708f;
    font-size: .78rem;
    font-weight: 800;
}

.vmi-form-grid input,
.vmi-form-grid select,
.vmi-form-grid textarea {
    background: #ffffff;
    border: 1px solid #d8e0ef;
    border-radius: 8px;
    color: #111c3d;
    font-weight: 650;
    min-height: 2.75rem;
    outline: 0;
    padding: 0 .8rem;
    width: 100%;
}

.vmi-form-grid textarea {
    padding: .7rem .8rem;
    resize: vertical;
}

.vmi-form-wide {
    grid-column: 1 / -1;
}

.vmi-form-grid small,
.vmi-error {
    color: #ef2e42;
    font-size: .76rem;
    font-weight: 700;
}

.vmi-upload {
    align-items: center;
    border: 1px dashed #b9c6dc;
    border-radius: 10px;
    color: #2751d2;
    cursor: pointer;
    justify-items: center;
    margin: 1.25rem 0;
    padding: 2rem 1rem;
}

.vmi-upload .vmi-icon {
    height: 2rem;
    width: 2rem;
}

.vmi-upload span {
    color: #172141;
    font-weight: 850;
}

.vmi-upload input {
    color: #51607f;
    max-width: 18rem;
}

@media (max-width: 1380px) {
    .vmi-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .vmi-chart-grid {
        grid-template-columns: 1fr 1fr;
    }

    .vmi-category-card {
        grid-column: 1 / -1;
    }

    .vmi-grid-items {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1080px) {
    body:has(.vm-inventory-page) .fi-page {
        padding: 1rem !important;
    }

    .vmi-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .vmi-head-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .vmi-chart-grid,
    .vmi-toolbar {
        grid-template-columns: 1fr;
    }

    .vmi-sort,
    .vmi-view-toggle {
        width: 100%;
    }

    .vmi-view-toggle {
        justify-content: flex-start;
    }

    .vmi-donut-wrap {
        grid-template-columns: 1fr;
    }

    .vmi-grid-items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vmi-table-scroll {
        overflow: visible;
    }

    .vmi-table,
    .vmi-table thead,
    .vmi-table tbody,
    .vmi-table th,
    .vmi-table td,
    .vmi-table tr {
        display: block;
        min-width: 0;
        width: 100%;
    }

    .vmi-table thead {
        display: none;
    }

    .vmi-table tbody {
        display: grid;
        gap: .85rem;
        padding: 1rem;
    }

    .vmi-table tbody tr {
        border: 1px solid #e0e7f2;
        border-radius: 10px;
        box-shadow: 0 10px 22px rgba(12, 24, 54, .06);
        overflow: visible;
    }

    .vmi-table tbody td {
        align-items: flex-start;
        border-bottom: 1px solid #edf1f7;
        display: grid;
        gap: .6rem;
        grid-template-columns: 8.5rem minmax(0, 1fr);
        padding: .9rem 1rem;
    }

    .vmi-table tbody td::before {
        color: #6a7692;
        content: attr(data-label);
        font-size: .76rem;
        font-weight: 850;
        text-transform: uppercase;
    }

    .vmi-row-menu div {
        left: 0;
        right: auto;
    }

    .vmi-footer {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 680px) {
    .vmi-stats,
    .vmi-grid-items,
    .vmi-form-grid {
        grid-template-columns: 1fr;
    }

    .vmi-head-actions,
    .vmi-button {
        width: 100%;
    }

    .vmi-category-bars div {
        grid-template-columns: 1fr;
    }

    .vmi-table tbody td {
        grid-template-columns: 1fr;
    }

    .vmi-footer > span,
    .vmi-pagination {
        justify-content: flex-start;
        width: 100%;
    }
}

/* Responsive hardening: keep topbar controls clustered and inventory inside the viewport */
.fi-topbar > nav {
    min-width: 0 !important;
}

.fi-topbar [x-persist*="topbar.end"] {
    align-items: center !important;
    display: flex !important;
    flex: 0 1 auto !important;
    gap: .55rem !important;
    justify-content: flex-end !important;
    margin-left: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    width: auto !important;
}

.fi-topbar .vmx-topbar-actions {
    align-items: center !important;
    display: flex !important;
    flex: 0 1 auto !important;
    gap: .55rem !important;
    justify-content: flex-end !important;
    max-width: 100% !important;
    min-width: 0 !important;
    width: auto !important;
}

.fi-topbar .vmx-topbar-search {
    flex: 1 1 clamp(14rem, 24vw, 26rem) !important;
    max-width: 26rem !important;
    min-width: 14rem !important;
    width: clamp(14rem, 24vw, 26rem) !important;
}

.fi-topbar .vmx-location-select {
    flex: 0 1 clamp(10rem, 15vw, 15rem) !important;
    max-width: 15rem !important;
    min-width: 10rem !important;
}

.fi-topbar .vmx-location-select span {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.fi-topbar .vmx-topbar-icon {
    flex: 0 0 3rem !important;
}

.fi-topbar .fi-user-menu {
    flex: 0 0 auto !important;
    margin-left: .1rem !important;
    max-width: max-content !important;
    min-width: 0 !important;
    width: auto !important;
}

.fi-topbar .fi-user-menu > button {
    display: inline-flex !important;
    margin: 0 !important;
}

.fi-topbar .vm-topbar-user-meta {
    margin-left: .15rem !important;
    max-width: 9.75rem !important;
    min-width: 0 !important;
    width: auto !important;
}

body:has(.vm-inventory-page) .fi-main,
body:has(.vm-inventory-page) .fi-page,
body:has(.vm-inventory-page) .fi-page-content,
.vm-inventory-page {
    box-sizing: border-box !important;
    max-width: 100% !important;
    min-width: 0 !important;
    width: 100% !important;
}

body:has(.vm-inventory-page) .fi-page {
    overflow-x: clip !important;
    padding-left: clamp(1rem, 2vw, 1.7rem) !important;
    padding-right: clamp(1rem, 2vw, 1.7rem) !important;
}

body:has(.vm-inventory-page) .vmx-topbar-search {
    flex-basis: clamp(14rem, 25vw, 27rem) !important;
    max-width: 27rem !important;
    min-width: 14rem !important;
    width: clamp(14rem, 25vw, 27rem) !important;
}

.vmi-hero {
    align-items: flex-start !important;
    flex-wrap: wrap !important;
}

.vmi-hero > div:first-child {
    flex: 1 1 22rem !important;
    min-width: 0 !important;
}

.vmi-head-actions {
    flex: 0 1 auto !important;
    margin-left: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.vmi-stats {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr)) !important;
}

.vmi-chart-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)) !important;
}

.vmi-chart-card,
.vmi-table-card,
.vmi-stat-card {
    min-width: 0 !important;
}

.vmi-toolbar {
    align-items: center !important;
    display: flex !important;
    flex-wrap: wrap !important;
}

.vmi-search {
    flex: 1 1 20rem !important;
    min-width: min(100%, 18rem) !important;
}

.vmi-select {
    flex: 1 1 11rem !important;
    max-width: 16rem !important;
    min-width: min(100%, 10rem) !important;
}

.vmi-sort {
    flex-basis: 13rem !important;
    max-width: 18rem !important;
}

.vmi-view-toggle {
    flex: 0 0 auto !important;
    margin-left: auto !important;
}

.vmi-table-scroll {
    max-width: 100% !important;
}

@media (max-width: 1420px) {
    .vmi-hero {
        flex-direction: column !important;
    }

    .vmi-head-actions {
        justify-content: flex-start !important;
        margin-left: 0 !important;
        width: 100% !important;
    }

    .vmi-donut-wrap {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 980px) {
    .fi-topbar .vmx-topbar-search {
        flex-basis: 15rem !important;
        min-width: 12rem !important;
    }

    .fi-topbar .vmx-location-select {
        max-width: 12rem !important;
        min-width: 9rem !important;
    }

    .vmi-select,
    .vmi-sort,
    .vmi-view-toggle {
        max-width: none !important;
        width: 100% !important;
    }
}

/* Inventory spacing polish */
.vmi-hero {
    align-items: flex-start !important;
    flex-direction: row !important;
    gap: 1rem !important;
    margin-bottom: 1rem !important;
    min-height: 0 !important;
}

.vmi-hero > div:first-child {
    flex: 1 1 34rem !important;
    flex-basis: 34rem !important;
    min-height: 0 !important;
}

.vmi-head-actions {
    align-self: flex-start !important;
    margin-left: auto !important;
    margin-top: 1.3rem !important;
}

.vmi-stats {
    gap: .85rem !important;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.75rem), 1fr)) !important;
    margin-bottom: .9rem !important;
}

.vmi-stat-card {
    gap: .95rem !important;
    grid-template-columns: 3.6rem minmax(0, 1fr) !important;
    min-height: 6.8rem !important;
    padding: 1rem !important;
}

.vmi-stat-icon {
    height: 3.55rem !important;
    width: 3.55rem !important;
}

.vmi-stat-icon .vmi-icon {
    height: 1.55rem !important;
    width: 1.55rem !important;
}

.vmi-stat-card strong {
    font-size: 1.65rem !important;
    margin-top: .38rem !important;
}

.vmi-trend {
    margin-top: .5rem !important;
}

.vmi-chart-grid {
    gap: .9rem !important;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, .92fr) !important;
    margin-bottom: .9rem !important;
}

.vmi-category-card {
    grid-column: auto !important;
}

.vmi-chart-card {
    min-height: 14.75rem !important;
    overflow: hidden !important;
    padding: 1rem !important;
}

.vmi-donut-wrap {
    gap: 1rem !important;
    grid-template-columns: minmax(8.5rem, .85fr) minmax(9rem, 1fr) !important;
    min-height: 9.8rem !important;
}

.vmi-donut {
    max-width: 9.7rem !important;
    padding: 1.55rem !important;
}

.vmi-donut strong {
    font-size: 1.45rem !important;
}

.vmi-donut-legend {
    gap: .55rem !important;
}

.vmi-donut-legend div {
    gap: .45rem !important;
    grid-template-columns: .55rem 1fr auto auto !important;
}

.vmi-donut-legend strong,
.vmi-donut-legend em,
.vmi-donut-legend small {
    font-size: .78rem !important;
}

.vmi-line-chart {
    height: 11rem !important;
    overflow: hidden !important;
}

.vmi-line-chart::before {
    inset: .35rem 1rem 1.85rem 2.7rem !important;
}

.vmi-line-chart svg {
    bottom: auto !important;
    height: calc(100% - 2.2rem) !important;
    left: 2.7rem !important;
    max-height: calc(100% - 2.2rem) !important;
    overflow: hidden !important;
    right: auto !important;
    top: .35rem !important;
    width: calc(100% - 3.7rem) !important;
}

.vmi-line-chart polygon {
    clip-path: inset(0 0 0 0) !important;
}

.vmi-axis-y {
    bottom: 1.65rem !important;
    top: .25rem !important;
}

.vmi-axis-x {
    bottom: .15rem !important;
}

.vmi-card-link {
    margin-top: .6rem !important;
}

.vmi-category-bars {
    gap: .7rem !important;
    padding: .45rem 0 .8rem !important;
}

.vmi-table-card {
    margin-top: 0 !important;
}

@media (max-width: 1220px) {
    .vmi-hero {
        flex-direction: column !important;
    }

    .vmi-hero > div:first-child {
        flex-basis: auto !important;
        width: 100% !important;
    }

    .vmi-head-actions {
        justify-content: flex-start !important;
        margin-left: 0 !important;
        margin-top: .35rem !important;
        width: 100% !important;
    }

    .vmi-chart-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)) !important;
    }
}

@media (max-width: 760px) {
    .vmi-donut-wrap {
        grid-template-columns: 1fr !important;
    }
}

/* Inventory action buttons: right aligned with the page heading */
.vmi-hero {
    align-items: flex-start !important;
    flex-direction: row !important;
    gap: 1rem !important;
}

.vmi-hero > div:first-child {
    flex: 1 1 auto !important;
    flex-basis: auto !important;
    min-width: 0 !important;
    width: auto !important;
}

.vmi-head-actions {
    align-self: flex-start !important;
    justify-content: flex-end !important;
    margin-left: auto !important;
    margin-top: 2.55rem !important;
    width: auto !important;
}

@media (max-width: 1220px) {
    .vmi-hero {
        flex-direction: column !important;
    }

    .vmi-head-actions {
        justify-content: flex-start !important;
        margin-left: 0 !important;
        margin-top: .35rem !important;
        width: 100% !important;
    }
}

/* Bookings responsive polish: keep content inside the visible workspace */
body:has(.vm-bookings-page) .fi-main,
body:has(.vm-bookings-page) .fi-main-ctn,
body:has(.vm-bookings-page) .fi-page,
body:has(.vm-bookings-page) .fi-page-content,
.vm-bookings-page {
    box-sizing: border-box !important;
    max-width: 100% !important;
    min-width: 0 !important;
    width: 100% !important;
}

body:has(.vm-bookings-page) .fi-page,
body:has(.vm-bookings-page) .fi-main-ctn,
body:has(.vm-bookings-page) .fi-main {
    overflow-x: clip !important;
}

body:has(.vm-bookings-page) .fi-page {
    padding-left: clamp(1rem, 2vw, 1.7rem) !important;
    padding-right: clamp(1rem, 2vw, 1.7rem) !important;
}

body:has(.vm-bookings-page) .vmx-topbar-search {
    flex-basis: clamp(13rem, 25vw, 27rem) !important;
    max-width: 27rem !important;
    min-width: 13rem !important;
    width: clamp(13rem, 25vw, 27rem) !important;
}

.vm-bookings-page {
    container-type: inline-size;
}

.vmbk-hero {
    align-items: flex-start !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
    margin-bottom: 1rem !important;
    min-width: 0 !important;
}

.vmbk-hero > div:first-child {
    flex: 1 1 24rem !important;
    min-width: 0 !important;
}

.vmbk-head-actions {
    flex: 0 1 auto !important;
    justify-content: flex-end !important;
    margin-left: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.vmbk-stats {
    gap: .85rem !important;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr)) !important;
    margin-bottom: .9rem !important;
}

.vmbk-stat-card {
    gap: .95rem !important;
    grid-template-columns: 3.6rem minmax(0, 1fr) !important;
    min-height: 6.8rem !important;
    min-width: 0 !important;
    padding: 1rem !important;
}

.vmbk-stat-icon {
    height: 3.55rem !important;
    width: 3.55rem !important;
}

.vmbk-stat-icon .vmbk-icon {
    height: 1.55rem !important;
    width: 1.55rem !important;
}

.vmbk-stat-card strong {
    font-size: 1.65rem !important;
    margin-top: .38rem !important;
}

.vmbk-trend {
    flex-wrap: wrap !important;
    margin-top: .5rem !important;
}

.vmbk-table-card {
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

.vmbk-tabs {
    max-width: 100% !important;
    min-width: 0 !important;
}

.vmbk-toolbar {
    flex-wrap: wrap !important;
    gap: .85rem !important;
}

.vmbk-search {
    flex: 1 1 20rem !important;
    max-width: none !important;
    min-width: min(100%, 18rem) !important;
}

.vmbk-date-menu {
    flex: 0 1 auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.vmbk-date-button {
    max-width: 100% !important;
}

.vmbk-date-button span {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.vmbk-table-scroll {
    max-width: 100% !important;
    overflow-x: auto !important;
    overscroll-behavior-x: contain !important;
}

.vmbk-table {
    min-width: 1080px !important;
}

.vmbk-footer {
    flex-wrap: wrap !important;
}

@container (max-width: 1180px) {
    .vmbk-hero {
        flex-direction: column !important;
    }

    .vmbk-head-actions {
        justify-content: flex-start !important;
        margin-left: 0 !important;
        width: 100% !important;
    }
}

@container (max-width: 820px) {
    .vmbk-toolbar,
    .vmbk-footer {
        align-items: stretch !important;
        flex-direction: column !important;
    }

    .vmbk-date-menu,
    .vmbk-date-button,
    .vmbk-search {
        width: 100% !important;
    }

    .vmbk-date-button {
        justify-content: space-between !important;
    }
}

@media (max-width: 980px) {
    .vmbk-table-scroll {
        overflow: visible !important;
    }

    .vmbk-table,
    .vmbk-table thead,
    .vmbk-table tbody,
    .vmbk-table th,
    .vmbk-table td,
    .vmbk-table tr {
        min-width: 0 !important;
        width: 100% !important;
    }
}

/* Vehicles Manager login page */
body:has(.vm-login-page) {
    background: #f7faff !important;
    overflow-x: hidden !important;
}

.vm-login-page,
.vm-login-page *,
.vm-login-page *::before,
.vm-login-page *::after {
    box-sizing: border-box;
}

.vm-login-page {
    background:
        radial-gradient(circle at 95% 16%, rgba(221, 231, 250, .92) 0 5.8rem, transparent 5.9rem),
        radial-gradient(circle at 92% 90%, rgba(229, 237, 252, .88) 0 8rem, transparent 8.1rem),
        linear-gradient(135deg, #f9fbff 0%, #eef5ff 100%);
    color: #06123a;
    display: grid;
    font-family: var(--font-family), Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    grid-template-columns: minmax(29rem, 39.7vw) minmax(0, 1fr);
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

.vm-login-brand {
    background:
        radial-gradient(circle at 12% 18%, rgba(48, 106, 255, .18), transparent 18rem),
        radial-gradient(circle at 70% 88%, rgba(31, 111, 255, .36), transparent 19rem),
        linear-gradient(145deg, #061a58 0%, #092b78 43%, #123f9c 100%);
    color: #ffffff;
    min-height: 100vh;
    overflow: hidden;
    padding: clamp(4.5rem, 11vh, 9rem) clamp(2rem, 7vw, 7.25rem) 3rem;
    position: relative;
}

.vm-login-brand::after {
    background: #f7faff;
    border-radius: 50%;
    bottom: -17rem;
    box-shadow: -2rem -2rem 5.5rem rgba(5, 22, 65, .16);
    content: "";
    height: 45rem;
    position: absolute;
    right: -27rem;
    width: 45rem;
    z-index: 2;
}

.vm-login-dot-grid {
    background-image: radial-gradient(circle, rgba(117, 162, 255, .24) 0 .16rem, transparent .18rem);
    background-size: 1.6rem 1.6rem;
    height: 8rem;
    left: 1.25rem;
    opacity: .6;
    position: absolute;
    top: 1.25rem;
    width: 8rem;
}

.vm-login-brand-content {
    max-width: 22rem;
    position: relative;
    z-index: 4;
}

.vm-login-brand-logo,
.vm-login-card-logo {
    align-items: center;
    background: linear-gradient(145deg, #1676ff 0%, #0b43dd 100%);
    border-radius: 12px;
    box-shadow: 0 1.25rem 2.25rem rgba(6, 46, 180, .28);
    color: #ffffff;
    display: inline-flex;
    font-size: 2.25rem;
    font-weight: 950;
    height: 4.45rem;
    justify-content: center;
    letter-spacing: -.08em;
    line-height: 1;
    width: 4.45rem;
}

.vm-login-brand h1 {
    color: #ffffff;
    font-size: clamp(2rem, 2.5vw, 2.45rem);
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1.08;
    margin: 1.75rem 0 .8rem;
}

.vm-login-brand p {
    color: rgba(255, 255, 255, .88);
    font-size: 1.16rem;
    font-weight: 450;
    line-height: 1.45;
    margin: 0;
}

.vm-login-brand-line {
    background: #0b66ff;
    display: block;
    height: 2px;
    margin: 1.65rem 0 2.25rem;
    width: 6.35rem;
}

.vm-login-feature-list {
    display: grid;
    gap: 1.55rem;
}

.vm-login-feature-list article {
    align-items: center;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 4rem minmax(0, 1fr);
}

.vm-login-feature-list article > span {
    align-items: center;
    background: rgba(255, 255, 255, .11);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 11px;
    display: inline-flex;
    height: 4rem;
    justify-content: center;
    width: 4rem;
}

.vm-login-feature-list svg,
.vm-login-footer svg,
.vm-login-input-wrap svg,
.vm-login-submit svg {
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.vm-login-feature-list svg {
    color: #ffffff;
    height: 1.9rem;
    width: 1.9rem;
}

.vm-login-feature-list strong {
    color: #ffffff;
    display: block;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
}

.vm-login-feature-list small {
    color: rgba(255, 255, 255, .84);
    display: block;
    font-size: .86rem;
    font-weight: 450;
    line-height: 1.42;
    margin-top: .45rem;
}

.vm-login-city {
    align-items: flex-end;
    bottom: 2.9rem;
    display: flex;
    gap: .65rem;
    height: 11rem;
    left: 16rem;
    opacity: .9;
    position: absolute;
    z-index: 3;
}

.vm-login-city span {
    background: linear-gradient(180deg, rgba(128, 205, 255, .65), rgba(28, 79, 189, .5));
    box-shadow: 0 0 1.25rem rgba(54, 176, 255, .35);
    display: block;
    width: 1.7rem;
}

.vm-login-city span:nth-child(1) { height: 4.7rem; }
.vm-login-city span:nth-child(2) { height: 6.4rem; }
.vm-login-city span:nth-child(3) { height: 5.3rem; }
.vm-login-city span:nth-child(4) { height: 8.8rem; width: 2rem; }
.vm-login-city span:nth-child(5) { height: 5.9rem; }
.vm-login-city span:nth-child(6) { height: 7.1rem; }

.vm-login-car {
    background:
        linear-gradient(13deg, rgba(255, 255, 255, .16), transparent 44%),
        linear-gradient(155deg, #07153c 0%, #123e9f 45%, #06123c 100%);
    border-radius: 54% 36% 16% 14%;
    bottom: 2.2rem;
    box-shadow:
        inset 0 .5rem 1.2rem rgba(255, 255, 255, .13),
        0 1.3rem 2.3rem rgba(0, 9, 35, .42);
    height: 8rem;
    left: -3.8rem;
    position: absolute;
    transform: skewX(-8deg);
    width: 31rem;
    z-index: 4;
}

.vm-login-car::before {
    background: linear-gradient(180deg, #0e5be4, #061b5d);
    border-radius: 55% 45% 0 0;
    content: "";
    height: 5rem;
    left: 11rem;
    position: absolute;
    top: -2.8rem;
    width: 11.5rem;
}

.vm-login-car::after {
    background: linear-gradient(90deg, rgba(0, 219, 255, .75), rgba(48, 107, 255, 0));
    bottom: -.85rem;
    content: "";
    filter: blur(.35rem);
    height: .35rem;
    left: 3rem;
    position: absolute;
    width: 28rem;
}

.vm-login-car-window {
    background: linear-gradient(135deg, rgba(142, 218, 255, .82), rgba(16, 61, 160, .72));
    border-radius: 48% 35% 0 0;
    display: block;
    height: 2.9rem;
    left: 13.1rem;
    position: absolute;
    top: -1.8rem;
    width: 7.6rem;
    z-index: 2;
}

.vm-login-car-light {
    background: #ff365f;
    border-radius: 999px;
    box-shadow: 0 0 1rem rgba(255, 54, 95, .9);
    display: block;
    height: .35rem;
    left: 2.8rem;
    position: absolute;
    top: 3rem;
    width: 4.8rem;
}

.vm-login-car-wheel {
    background: radial-gradient(circle, #1d2f67 0 34%, #02091f 35% 100%);
    border: .45rem solid #06102e;
    border-radius: 50%;
    bottom: -1.55rem;
    display: block;
    height: 4.8rem;
    position: absolute;
    width: 4.8rem;
}

.vm-login-car-wheel-left { left: 7.5rem; }
.vm-login-car-wheel-right { right: 5.8rem; }

.vm-login-main {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: 100vh;
    padding: clamp(2rem, 5vw, 6.6rem) clamp(2rem, 6vw, 7.6rem) 1.6rem;
    position: relative;
}

.vm-login-card {
    align-self: center;
    background: rgba(255, 255, 255, .93);
    border: 1px solid rgba(226, 232, 243, .9);
    border-radius: 12px;
    box-shadow: 0 1.5rem 4.5rem rgba(25, 42, 84, .12);
    justify-self: center;
    max-width: 100%;
    min-height: 38rem;
    padding: clamp(2.35rem, 4.4vw, 4.05rem) clamp(2rem, 5vw, 5.05rem);
    width: min(42.2rem, 100%);
}

.vm-login-card-logo {
    background: #edf3ff;
    box-shadow: none;
    color: #0a56f0;
    display: flex;
    font-size: 2.05rem;
    height: 5rem;
    margin: 0 auto 1.55rem;
    width: 5rem;
}

.vm-login-heading {
    margin-bottom: 2.2rem;
    text-align: center;
}

.vm-login-heading h2 {
    color: #07123d;
    font-size: clamp(1.85rem, 2vw, 2.2rem);
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1.1;
    margin: 0;
}

.vm-login-heading p {
    color: #394a7d;
    font-size: .98rem;
    font-weight: 500;
    margin: .8rem 0 0;
}

.vm-login-form {
    display: grid;
    gap: 1.35rem;
}

.vm-login-field {
    display: grid;
    gap: .62rem;
}

.vm-login-field > span,
.vm-login-label-row > span {
    color: #08143b;
    font-size: .86rem;
    font-weight: 800;
}

.vm-login-label-row {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.vm-login-label-row a {
    color: #004eee;
    font-size: .88rem;
    font-weight: 750;
    text-decoration: none;
}

.vm-login-label-row a:hover {
    color: #003ec0;
}

.vm-login-input-wrap {
    align-items: center;
    background: #ffffff;
    border: 1px solid #cfd8ea;
    border-radius: 8px;
    color: #647298;
    display: flex;
    gap: .85rem;
    height: 3.25rem;
    padding: 0 1rem;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.vm-login-input-wrap:focus-within {
    border-color: #8da7ee;
    box-shadow: 0 0 0 4px rgba(20, 91, 239, .1);
}

.vm-login-input-wrap > svg {
    flex: 0 0 auto;
    height: 1.25rem;
    width: 1.25rem;
}

.vm-login-input-wrap input {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #07123d;
    flex: 1 1 auto;
    font-size: .95rem;
    font-weight: 560;
    height: 100%;
    min-width: 0;
    outline: 0 !important;
    padding: 0 !important;
}

.vm-login-input-wrap input::placeholder {
    color: #7a86aa;
    font-weight: 500;
}

.vm-login-input-wrap button {
    align-items: center;
    background: transparent;
    border: 0;
    color: #667293;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    height: 2rem;
    justify-content: center;
    padding: 0;
    width: 2rem;
}

.vm-login-input-wrap button svg {
    height: 1.16rem;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 1.16rem;
}

.vm-login-check {
    align-items: center;
    color: #18264d;
    cursor: pointer;
    display: inline-grid;
    gap: .65rem;
    grid-template-columns: 1.05rem minmax(0, auto);
    justify-self: start;
    margin-top: -.2rem;
}

.vm-login-check input {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.vm-login-check > span {
    background: #ffffff;
    border: 1px solid #cbd5e7;
    border-radius: 4px;
    display: block;
    height: 1.05rem;
    position: relative;
    width: 1.05rem;
}

.vm-login-check input:checked + span {
    background: #0b5ef3;
    border-color: #0b5ef3;
}

.vm-login-check input:checked + span::after {
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    content: "";
    height: .55rem;
    left: .32rem;
    position: absolute;
    top: .12rem;
    transform: rotate(45deg);
    width: .3rem;
}

.vm-login-check em {
    color: #15244b;
    font-size: .9rem;
    font-style: normal;
    font-weight: 520;
}

.vm-login-remember-device {
    margin-top: 0;
}

.vm-login-error {
    color: #d92d20;
    font-size: .82rem;
    font-weight: 650;
    margin: -.82rem 0 0;
}

.vm-login-submit {
    align-items: center;
    background: linear-gradient(90deg, #086cff 0%, #0737d8 100%);
    border: 0;
    border-radius: 8px;
    box-shadow: 0 1rem 2.4rem rgba(5, 77, 227, .22);
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font-size: 1rem;
    font-weight: 820;
    height: 3.58rem;
    justify-content: center;
    margin-top: .7rem;
    padding: 0 1.1rem;
    position: relative;
    transition: box-shadow .18s ease, transform .18s ease;
    width: 100%;
}

.vm-login-submit:hover {
    box-shadow: 0 1.2rem 2.6rem rgba(5, 77, 227, .28);
    transform: translateY(-1px);
}

.vm-login-submit[disabled] {
    cursor: wait;
    opacity: .72;
}

.vm-login-submit svg {
    height: 1.35rem;
    position: absolute;
    right: 1.32rem;
    width: 1.35rem;
}

.vm-login-divider {
    align-items: center;
    color: #566489;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr auto 1fr;
    margin: 2.15rem 0 1.55rem;
}

.vm-login-divider span {
    background: #dce3ef;
    height: 1px;
}

.vm-login-divider em {
    font-size: .9rem;
    font-style: normal;
    font-weight: 520;
}

.vm-login-sso-row {
    display: grid;
    gap: .9rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vm-login-sso {
    align-items: center;
    background: #ffffff;
    border: 1px solid #d5deef;
    border-radius: 8px;
    color: #07123d;
    cursor: default;
    display: inline-flex;
    gap: .8rem;
    height: 3.45rem;
    justify-content: center;
    padding: 0 .9rem;
}

.vm-login-sso strong {
    font-size: .9rem;
    font-weight: 760;
    white-space: nowrap;
}

.vm-login-google {
    color: #4285f4;
    font-size: 1.35rem;
    font-weight: 900;
}

.vm-login-microsoft {
    display: grid;
    gap: .1rem;
    grid-template-columns: repeat(2, .55rem);
}

.vm-login-microsoft i {
    display: block;
    height: .55rem;
    width: .55rem;
}

.vm-login-microsoft i:nth-child(1) { background: #f35325; }
.vm-login-microsoft i:nth-child(2) { background: #81bc06; }
.vm-login-microsoft i:nth-child(3) { background: #05a6f0; }
.vm-login-microsoft i:nth-child(4) { background: #ffba08; }

.vm-login-footer {
    align-items: center;
    border-top: 1px solid #dce4f2;
    color: #384873;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: clamp(1.8rem, 4vh, 3rem);
    padding-top: 1.45rem;
}

.vm-login-footer > div,
.vm-login-footer nav {
    align-items: center;
    display: flex;
    gap: .85rem;
}

.vm-login-footer > div > span {
    align-items: center;
    background: #edf3ff;
    border-radius: 8px;
    color: #0b56df;
    display: inline-flex;
    height: 1.9rem;
    justify-content: center;
    width: 1.9rem;
}

.vm-login-footer svg {
    height: 1rem;
    width: 1rem;
}

.vm-login-footer p,
.vm-login-footer span,
.vm-login-footer a {
    font-size: .9rem;
    font-weight: 530;
    margin: 0;
}

.vm-login-footer i {
    background: #b9c4d8;
    display: block;
    height: 1rem;
    width: 1px;
}

.vm-login-footer a {
    align-items: center;
    color: #004eee;
    display: inline-flex;
    gap: .35rem;
    text-decoration: none;
}

@media (max-width: 1180px) {
    .vm-login-page {
        grid-template-columns: minmax(24rem, 36vw) minmax(0, 1fr);
    }

    .vm-login-brand {
        padding-left: 3.5rem;
        padding-right: 2.5rem;
    }

    .vm-login-city {
        left: 12rem;
    }

    .vm-login-car {
        left: -7rem;
        width: 29rem;
    }

    .vm-login-main {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (max-width: 920px) {
    .vm-login-page {
        display: block;
        min-height: 100vh;
        overflow: visible;
    }

    .vm-login-brand {
        min-height: auto;
        padding: 2rem 1.5rem;
    }

    .vm-login-brand::after,
    .vm-login-city,
    .vm-login-car,
    .vm-login-dot-grid {
        display: none;
    }

    .vm-login-brand-content {
        align-items: center;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        max-width: none;
    }

    .vm-login-brand-logo {
        height: 3.5rem;
        margin-right: 1rem;
        width: 3.5rem;
    }

    .vm-login-brand h1 {
        font-size: 1.55rem;
        margin: 0;
    }

    .vm-login-brand p,
    .vm-login-brand-line,
    .vm-login-feature-list {
        display: none;
    }

    .vm-login-main {
        min-height: calc(100vh - 7.5rem);
        padding: 2rem 1rem 1rem;
    }
}

@media (max-width: 680px) {
    .vm-login-card {
        min-height: 0;
        padding: 2rem 1.25rem;
    }

    .vm-login-card-logo {
        height: 4rem;
        width: 4rem;
    }

    .vm-login-heading {
        margin-bottom: 1.55rem;
    }

    .vm-login-sso-row {
        grid-template-columns: 1fr;
    }

    .vm-login-footer,
    .vm-login-footer > div,
    .vm-login-footer nav {
        align-items: flex-start;
        flex-direction: column;
    }

    .vm-login-footer i {
        display: none;
    }
}

/* Login laptop fit: reduce the oversized desktop composition */
@media (max-width: 1500px), (max-height: 1050px) {
    .vm-login-page {
        grid-template-columns: clamp(22rem, 36vw, 32rem) minmax(0, 1fr) !important;
        min-height: 100dvh !important;
        overflow-y: auto !important;
    }

    .vm-login-brand {
        min-height: 100dvh !important;
        padding: clamp(2.2rem, 6vh, 4.4rem) clamp(2rem, 5vw, 4.8rem) 2rem !important;
    }

    .vm-login-brand::after {
        bottom: -21rem !important;
        height: 38rem !important;
        right: -25rem !important;
        width: 38rem !important;
    }

    .vm-login-brand-logo {
        border-radius: 10px !important;
        font-size: 1.8rem !important;
        height: 3.6rem !important;
        width: 3.6rem !important;
    }

    .vm-login-brand h1 {
        font-size: clamp(1.75rem, 2.35vw, 2.05rem) !important;
        margin-top: 1.35rem !important;
    }

    .vm-login-brand p {
        font-size: .98rem !important;
        line-height: 1.42 !important;
    }

    .vm-login-brand-line {
        margin: 1.25rem 0 1.7rem !important;
        width: 5.4rem !important;
    }

    .vm-login-feature-list {
        gap: 1.05rem !important;
    }

    .vm-login-feature-list article {
        gap: 1rem !important;
        grid-template-columns: 3.1rem minmax(0, 1fr) !important;
    }

    .vm-login-feature-list article > span {
        border-radius: 9px !important;
        height: 3.1rem !important;
        width: 3.1rem !important;
    }

    .vm-login-feature-list svg {
        height: 1.45rem !important;
        width: 1.45rem !important;
    }

    .vm-login-feature-list strong {
        font-size: .9rem !important;
    }

    .vm-login-feature-list small {
        font-size: .78rem !important;
        line-height: 1.35 !important;
        margin-top: .28rem !important;
    }

    .vm-login-city {
        transform: scale(.72) !important;
        transform-origin: left bottom !important;
    }

    .vm-login-car {
        transform: scale(.72) skewX(-8deg) !important;
        transform-origin: left bottom !important;
    }

    .vm-login-main {
        min-height: 100dvh !important;
        padding: clamp(1.25rem, 3.4vw, 3rem) clamp(1.25rem, 4vw, 4.5rem) 1rem !important;
    }

    .vm-login-card {
        min-height: 0 !important;
        padding: clamp(1.6rem, 3.8vh, 2.45rem) clamp(1.75rem, 4.2vw, 3.35rem) !important;
        width: min(34.5rem, 100%) !important;
    }

    .vm-login-card-logo {
        border-radius: 11px !important;
        font-size: 1.65rem !important;
        height: 3.7rem !important;
        margin-bottom: 1rem !important;
        width: 3.7rem !important;
    }

    .vm-login-heading {
        margin-bottom: 1.35rem !important;
    }

    .vm-login-heading h2 {
        font-size: clamp(1.55rem, 2.4vw, 1.85rem) !important;
    }

    .vm-login-heading p {
        font-size: .88rem !important;
        margin-top: .55rem !important;
    }

    .vm-login-form {
        gap: .9rem !important;
    }

    .vm-login-field {
        gap: .45rem !important;
    }

    .vm-login-field > span,
    .vm-login-label-row > span {
        font-size: .78rem !important;
    }

    .vm-login-label-row a,
    .vm-login-check em {
        font-size: .8rem !important;
    }

    .vm-login-input-wrap {
        height: 2.85rem !important;
        padding: 0 .8rem !important;
    }

    .vm-login-input-wrap input {
        font-size: .86rem !important;
    }

    .vm-login-submit {
        height: 3.05rem !important;
        margin-top: .35rem !important;
    }

    .vm-login-divider {
        gap: .9rem !important;
        margin: 1.25rem 0 1rem !important;
    }

    .vm-login-divider em {
        font-size: .8rem !important;
    }

    .vm-login-sso-row {
        gap: .7rem !important;
    }

    .vm-login-sso {
        height: 2.9rem !important;
        padding: 0 .65rem !important;
    }

    .vm-login-sso strong {
        font-size: .78rem !important;
    }

    .vm-login-footer {
        margin-top: 1rem !important;
        padding-top: .9rem !important;
    }

    .vm-login-footer p,
    .vm-login-footer span,
    .vm-login-footer a {
        font-size: .78rem !important;
    }
}

@media (max-height: 760px) and (min-width: 921px) {
    .vm-login-brand {
        padding-top: 1.8rem !important;
    }

    .vm-login-brand-line {
        margin-bottom: 1.15rem !important;
    }

    .vm-login-feature-list {
        gap: .72rem !important;
    }

    .vm-login-city,
    .vm-login-car {
        display: none !important;
    }

    .vm-login-card {
        padding-bottom: 1.55rem !important;
        padding-top: 1.55rem !important;
        width: min(32.5rem, 100%) !important;
    }

    .vm-login-card-logo {
        height: 3.15rem !important;
        margin-bottom: .75rem !important;
        width: 3.15rem !important;
    }

    .vm-login-heading {
        margin-bottom: 1rem !important;
    }

    .vm-login-divider {
        margin: 1rem 0 .75rem !important;
    }

    .vm-login-footer {
        display: none !important;
    }
}

/* Bookings spacing correction: stacked header must not reserve desktop width as height */
body:has(.vm-bookings-page) .fi-page {
    gap: 0 !important;
}

body:has(.vm-bookings-page) .fi-page > section {
    gap: .95rem !important;
    padding-bottom: 1.5rem !important;
    padding-top: clamp(1rem, 2vw, 1.55rem) !important;
}

body:has(.vm-bookings-page) .fi-page > section > div,
body:has(.vm-bookings-page) .fi-page > section > div > div {
    gap: .95rem !important;
}

.vm-bookings-page {
    display: grid !important;
    gap: .9rem !important;
}

.vmbk-hero {
    align-items: flex-start !important;
    margin-bottom: 0 !important;
}

.vmbk-hero > div:first-child {
    min-height: 0 !important;
}

.vmbk-head-actions {
    align-self: flex-start !important;
    margin-top: .2rem !important;
}

.vmbk-stats {
    margin-top: 0 !important;
}

@container (max-width: 1180px) {
    .vmbk-hero > div:first-child {
        flex: 0 1 auto !important;
        flex-basis: auto !important;
        width: 100% !important;
    }

    .vmbk-head-actions {
        margin-top: .25rem !important;
    }
}

@media (max-width: 1280px) {
    .vmbk-hero > div:first-child {
        flex-basis: auto !important;
    }
}

/* Bookings final responsive alignment: keep page actions beside the title on desktop */
.vmbk-hero {
    align-items: start !important;
    column-gap: 1rem !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    row-gap: .75rem !important;
}

.vmbk-hero > div:first-child {
    flex: initial !important;
    min-height: 0 !important;
    min-width: 0 !important;
    width: auto !important;
}

.vmbk-head-actions {
    align-self: start !important;
    flex-wrap: nowrap !important;
    justify-content: flex-end !important;
    justify-self: end !important;
    margin-left: 0 !important;
    margin-top: 2.05rem !important;
    max-width: 100% !important;
    width: auto !important;
}

.vmbk-head-actions .vmbk-button {
    height: 2.75rem !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.vmbk-head-actions .vmbk-button-primary {
    min-width: 10.4rem !important;
}

.vmbk-table-card {
    overflow: visible !important;
}

.vmbk-table-scroll {
    max-width: 100% !important;
    overflow: visible !important;
}

.vmbk-table {
    min-width: min(100%, 66rem) !important;
    table-layout: fixed !important;
    width: 100% !important;
}

.vmbk-table thead th,
.vmbk-table tbody td {
    padding-left: .72rem !important;
    padding-right: .72rem !important;
}

.vmbk-table thead th:first-child,
.vmbk-table tbody td:first-child {
    padding-left: 1rem !important;
}

.vmbk-table thead th:nth-child(1) { width: 9%; }
.vmbk-table thead th:nth-child(2) { width: 12%; }
.vmbk-table thead th:nth-child(3) { width: 12%; }
.vmbk-table thead th:nth-child(4) { width: 10.5%; }
.vmbk-table thead th:nth-child(5) { width: 12%; }
.vmbk-table thead th:nth-child(6) { width: 6.5%; }
.vmbk-table thead th:nth-child(7) { width: 8%; }
.vmbk-table thead th:nth-child(8) { width: 10.5%; }
.vmbk-table thead th:nth-child(9) { width: 8.5%; }
.vmbk-table thead th:nth-child(10) { width: 11%; }

.vmbk-id-cell,
.vmbk-stack-cell,
.vmbk-date-cell,
.vmbk-person-cell > div,
.vmbk-tech-cell strong {
    min-width: 0 !important;
}

.vmbk-id-cell a,
.vmbk-id-cell span,
.vmbk-stack-cell strong,
.vmbk-stack-cell small,
.vmbk-date-cell strong,
.vmbk-date-cell span,
.vmbk-person-cell small {
    overflow-wrap: anywhere !important;
}

.vmbk-person-cell strong,
.vmbk-tech-cell strong {
    max-width: 100% !important;
}

.vmbk-actions {
    justify-content: flex-end !important;
}

.vmbk-row-menu div {
    bottom: calc(100% + .45rem) !important;
    right: 0 !important;
    top: auto !important;
    z-index: 80 !important;
}

@media (max-width: 1280px) {
    .vmbk-hero {
        align-items: start !important;
        flex-direction: row !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
    }

    .vmbk-hero > div:first-child {
        width: auto !important;
    }

    .vmbk-head-actions {
        justify-content: flex-end !important;
        justify-self: end !important;
        margin-left: 0 !important;
        margin-top: 2.05rem !important;
        width: auto !important;
    }
}

@container (max-width: 1180px) {
    .vmbk-hero {
        grid-template-columns: minmax(0, 1fr) auto !important;
    }

    .vmbk-hero > div:first-child {
        width: auto !important;
    }

    .vmbk-head-actions {
        justify-content: flex-end !important;
        justify-self: end !important;
        margin-left: 0 !important;
        margin-top: 2.05rem !important;
        width: auto !important;
    }
}

@container (max-width: 980px) {
    .vmbk-table-card,
    .vmbk-table-scroll {
        overflow: visible !important;
    }

    .vmbk-table,
    .vmbk-table thead,
    .vmbk-table tbody,
    .vmbk-table th,
    .vmbk-table td,
    .vmbk-table tr {
        display: block !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    .vmbk-table thead {
        display: none !important;
    }

    .vmbk-table tbody {
        display: grid !important;
        gap: .85rem !important;
        padding: 1rem !important;
    }

    .vmbk-table tbody tr {
        border: 1px solid #e0e7f2 !important;
        border-radius: 10px !important;
        box-shadow: 0 10px 22px rgba(12, 24, 54, .06) !important;
        overflow: visible !important;
    }

    .vmbk-table tbody td,
    .vmbk-table tbody td:first-child {
        align-items: flex-start !important;
        border-bottom: 1px solid #edf1f7 !important;
        display: grid !important;
        gap: .6rem !important;
        grid-template-columns: 8.5rem minmax(0, 1fr) !important;
        padding: .9rem 1rem !important;
    }

    .vmbk-table tbody td::before {
        color: #6a7692 !important;
        content: attr(data-label) !important;
        font-size: .76rem !important;
        font-weight: 800 !important;
        text-transform: uppercase !important;
    }

    .vmbk-table tbody td:last-child {
        border-bottom: 0 !important;
    }

    .vmbk-actions {
        justify-content: flex-start !important;
    }

    .vmbk-row-menu div {
        bottom: auto !important;
        left: 0 !important;
        right: auto !important;
        top: calc(100% + .45rem) !important;
    }
}

@container (max-width: 760px) {
    .vmbk-hero {
        grid-template-columns: 1fr !important;
    }

    .vmbk-head-actions {
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        justify-self: start !important;
        margin-top: .2rem !important;
        width: 100% !important;
    }

    .vmbk-head-actions .vmbk-button,
    .vmbk-head-actions .vmbk-filter-menu {
        flex: 1 1 10rem !important;
        width: auto !important;
    }
}

@media (max-width: 760px) {
    .vmbk-hero {
        grid-template-columns: 1fr !important;
    }

    .vmbk-head-actions {
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        justify-self: start !important;
        margin-top: .2rem !important;
        width: 100% !important;
    }
}

/* Workshop calendar compact layout and blue portal theme */
body:has(.vmc-page) .fi-page {
    gap: 0 !important;
}

body:has(.vmc-page) .fi-page > section {
    gap: .85rem !important;
    padding-top: clamp(.9rem, 1.6vw, 1.25rem) !important;
}

.vmc-page {
    container-type: inline-size;
    gap: .85rem !important;
}

.vmc-page-head p {
    margin-top: .34rem !important;
}

.vmc-new-booking,
.vmc-view-tabs a.is-active,
.vmc-day-head strong.is-today,
.vmc-month-day strong.is-today {
    background: linear-gradient(135deg, #2751d2, #1d45c1) !important;
    border-color: #2751d2 !important;
    box-shadow: 0 12px 24px rgba(39, 81, 210, .22) !important;
}

.vmc-new-booking:hover,
.vmc-view-tabs a.is-active:hover {
    background: linear-gradient(135deg, #1f49c6, #173cae) !important;
}

.vmc-schedule-shell {
    scrollbar-color: rgba(39, 81, 210, .34) transparent !important;
}

.vmc-schedule {
    min-width: 62rem !important;
}

.vmc-schedule-day {
    min-width: 26rem !important;
}

.vmc-schedule-header {
    min-height: 3.55rem !important;
}

.vmc-day-head {
    gap: .2rem !important;
    padding: .52rem .4rem !important;
}

.vmc-day-head strong.is-today,
.vmc-month-day strong.is-today {
    height: 1.9rem !important;
    min-width: 1.9rem !important;
}

.vmc-all-day-row {
    min-height: 2.65rem !important;
}

.vmc-all-day-cell {
    padding: .4rem .55rem !important;
}

.vmc-grid-body {
    min-height: var(--vmc-grid-height, 432px) !important;
}

.vmc-day-column {
    background:
        repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--vmc-hour-height, 43.2px) - 1px), #e7eef0 var(--vmc-hour-height, 43.2px)),
        linear-gradient(#ffffff, #ffffff) !important;
}

.vmc-time-rail span {
    font-size: .72rem !important;
    transform: translateY(-.48rem) !important;
}

.vmc-event {
    border-radius: 7px !important;
    box-shadow: 0 8px 18px rgba(16, 27, 58, .07) !important;
    gap: .04rem !important;
    height: max(var(--vmc-height), 3.55rem) !important;
    min-height: 3.55rem !important;
    padding: .32rem .45rem !important;
}

.vmc-event strong {
    font-size: .66rem !important;
    line-height: 1.05 !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.vmc-event em,
.vmc-event small {
    font-size: .62rem !important;
    line-height: 1.06 !important;
    min-width: 0 !important;
}

.vmc-event em {
    color: #10242d !important;
    font-weight: 820 !important;
}

.vmc-event small {
    color: #4b5a82 !important;
}

.vmc-tone-mint,
.vmc-tone-blue {
    background: #e9f1ff !important;
    color: #2751d2 !important;
}

.vmc-stat-green > span,
.vmc-stat-blue > span,
.vmc-stat-indigo > span {
    background: #e9f1ff !important;
    color: #2751d2 !important;
}

@media (max-width: 1440px) and (min-width: 981px) {
    .vmc-command-row {
        align-items: start !important;
        grid-template-columns: max-content minmax(0, 1fr) !important;
    }

    .vmc-view-tabs {
        grid-column: 1 !important;
        grid-row: 1 !important;
        justify-self: start !important;
    }

    .vmc-date-tools {
        grid-column: 2 !important;
        grid-row: 1 !important;
        justify-content: flex-end !important;
        justify-self: end !important;
    }

    .vmc-filters {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
    }
}

@container (max-width: 980px) {
    .vmc-page-head {
        gap: .75rem !important;
    }

    .vmc-command-row {
        gap: .65rem !important;
    }

    .vmc-filters {
        gap: .6rem !important;
    }

    .vmc-date-tools {
        gap: .45rem !important;
    }

    .vmc-date-range {
        min-width: 0 !important;
    }

    .vmc-schedule {
        min-width: 52rem !important;
    }
}

@container (max-width: 760px) {
    .vmc-schedule {
        min-width: 45rem !important;
    }

    .vmc-schedule-header,
    .vmc-all-day-row,
    .vmc-grid-body {
        grid-template-columns: 4.2rem repeat(var(--vmc-days), minmax(5.8rem, 1fr)) !important;
    }

    .vmc-event {
        padding-inline: .34rem !important;
    }
}

/* Account settings page reference layout */
body:has(.vma-account-page) .fi-page > .fi-header {
    display: none !important;
}

body:has(.vma-account-page) .fi-main,
body:has(.vma-account-page) .fi-main-ctn,
body:has(.vma-account-page) .fi-page {
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: clip !important;
}

body:has(.vma-account-page) .fi-page {
    background: #f5f7fb !important;
    padding: clamp(1rem, 1.8vw, 1.65rem) clamp(1rem, 2vw, 1.9rem) 2rem !important;
}

body:has(.vma-account-page) .fi-page > section {
    gap: 1rem !important;
}

.vma-account-page,
.vma-account-page *,
.vma-account-page *::before,
.vma-account-page *::after {
    box-sizing: border-box;
}

.vma-account-page {
    color: #07143d;
    display: grid;
    gap: 1.25rem;
    min-width: 0;
}

.vma-icon {
    display: inline-block;
    flex: 0 0 auto;
    height: 1.12rem;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 1.12rem;
}

.vma-page-head {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    min-width: 0;
}

.vma-page-head h1 {
    color: #07143d;
    font-size: clamp(1.85rem, 2vw, 2.25rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.08;
    margin: 0;
}

.vma-page-head p {
    color: #445377;
    font-size: .94rem;
    font-weight: 550;
    margin: .48rem 0 0;
}

.vma-save-button,
.vma-secondary-button {
    align-items: center;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    font-size: .86rem;
    font-weight: 850;
    gap: .55rem;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0 1.12rem;
    text-decoration: none;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
    white-space: nowrap;
}

.vma-save-button {
    background: linear-gradient(135deg, #2751d2, #1d45c1);
    border: 1px solid #2751d2;
    box-shadow: 0 14px 28px rgba(39, 81, 210, .22);
    color: #ffffff;
}

.vma-save-button:hover {
    background: linear-gradient(135deg, #1f49c6, #173cae);
    color: #ffffff;
    transform: translateY(-1px);
}

.vma-secondary-button {
    background: #ffffff;
    border: 1px solid #dce5f1;
    color: #064bd9;
    min-width: 9.4rem;
}

.vma-secondary-button:hover {
    border-color: #b9c9ee;
    box-shadow: 0 10px 22px rgba(16, 27, 58, .08);
    color: #064bd9;
}

.vma-layout {
    align-items: start;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(16rem, 18rem) minmax(0, 1fr);
    min-width: 0;
}

.vma-settings-card,
.vma-profile-banner,
.vma-panel {
    background: #ffffff;
    border: 1px solid #dce5f1;
    border-radius: 10px;
    box-shadow: 0 14px 34px rgba(12, 24, 54, .07);
    min-width: 0;
}

.vma-settings-card {
    display: grid;
    gap: .28rem;
    padding: 1.22rem .7rem;
    position: sticky;
    top: 5.75rem;
}

.vma-menu-title {
    color: #172141;
    display: block;
    font-size: .82rem;
    font-weight: 900;
    padding: 0 .85rem .6rem;
    text-transform: uppercase;
}

.vma-menu-item {
    align-items: center;
    border-left: 3px solid transparent;
    border-radius: 8px;
    color: #172141;
    display: grid;
    gap: .82rem;
    grid-template-columns: 1.55rem minmax(0, 1fr);
    min-height: 4.35rem;
    padding: .7rem .75rem;
    text-decoration: none;
}

.vma-menu-item .vma-icon {
    color: #263b71;
    height: 1.28rem;
    justify-self: center;
    width: 1.28rem;
}

.vma-menu-item strong,
.vma-menu-item small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vma-menu-item strong {
    font-size: .86rem;
    font-weight: 850;
}

.vma-menu-item small {
    color: #4b5a82;
    font-size: .76rem;
    font-weight: 550;
    margin-top: .18rem;
}

.vma-menu-item:hover {
    background: #f4f7ff;
}

.vma-menu-item.is-active {
    background: #eef4ff;
    border-left-color: #2751d2;
    color: #064bd9;
}

.vma-menu-item.is-active .vma-icon {
    color: #2751d2;
}

.vma-menu-item.is-muted,
.vma-menu-item.is-disabled {
    color: #3d4b70;
}

.vma-menu-item.is-disabled {
    cursor: default;
    opacity: .62;
    pointer-events: none;
}

.vma-danger-item strong,
.vma-danger-item .vma-icon {
    color: #ef2e42;
}

.vma-content {
    display: grid;
    gap: 1.05rem;
    min-width: 0;
}

.vma-profile-banner {
    align-items: center;
    background:
        radial-gradient(circle at 95% 50%, rgba(225, 234, 251, .82) 0 8rem, transparent 8.1rem),
        radial-gradient(circle at 88% 58%, rgba(238, 244, 255, .92) 0 13.5rem, transparent 13.6rem),
        #ffffff;
    display: grid;
    gap: 1.35rem;
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 10.8rem;
    padding: 1.75rem 2.05rem;
}

.vma-avatar-wrap {
    position: relative;
}

.vma-avatar {
    align-items: center;
    background: linear-gradient(135deg, #5b83ee, #2751d2);
    border: 6px solid #ffffff;
    border-radius: 999px;
    box-shadow: 0 14px 30px rgba(39, 81, 210, .24);
    color: #ffffff;
    display: inline-flex;
    font-size: 2rem;
    font-weight: 900;
    height: 7.15rem;
    justify-content: center;
    overflow: hidden;
    width: 7.15rem;
}

.vma-avatar img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.vma-camera-button {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dce5f1;
    border-radius: 999px;
    bottom: .35rem;
    box-shadow: 0 12px 24px rgba(16, 27, 58, .14);
    color: #07143d;
    cursor: pointer;
    display: inline-flex;
    height: 2.45rem;
    justify-content: center;
    position: absolute;
    right: -.15rem;
    width: 2.45rem;
}

.vma-camera-button .vma-icon {
    height: 1.1rem;
    width: 1.1rem;
}

.vma-profile-summary {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.vma-name-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .72rem;
    min-width: 0;
}

.vma-name-row h2 {
    color: #07143d;
    font-size: 1.42rem;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.1;
    margin: 0;
}

.vma-name-row span {
    background: #e9f1ff;
    border-radius: 8px;
    color: #064bd9;
    font-size: .78rem;
    font-weight: 850;
    padding: .38rem .6rem;
}

.vma-contact-grid {
    display: grid;
    gap: .72rem 1.4rem;
    grid-template-columns: repeat(4, minmax(0, max-content));
    min-width: 0;
}

.vma-contact-grid span {
    align-items: center;
    color: #3f4f73;
    display: inline-flex;
    font-size: .86rem;
    font-weight: 600;
    gap: .48rem;
    min-width: 0;
}

.vma-contact-grid .vma-icon {
    color: #53658d;
    height: 1rem;
    width: 1rem;
}

.vma-panel {
    display: grid;
    gap: 1.2rem;
    padding: 1.35rem 1.45rem;
}

.vma-panel-head {
    border-bottom: 1px solid #e3e9f4;
    padding-bottom: 1rem;
}

.vma-panel-head h2 {
    color: #07143d;
    font-size: 1rem;
    font-weight: 900;
    margin: 0;
}

.vma-form-grid {
    display: grid;
    gap: 1.15rem 1.45rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vma-field {
    color: #07143d;
    display: grid;
    gap: .45rem;
    min-width: 0;
}

.vma-field > span {
    font-size: .82rem;
    font-weight: 760;
}

.vma-field input,
.vma-field select,
.vma-phone-field {
    background: #ffffff;
    border: 1px solid #dce5f1;
    border-radius: 8px;
    color: #07143d;
    font-size: .86rem;
    font-weight: 650;
    min-height: 2.75rem;
    min-width: 0;
    outline: 0;
    width: 100%;
}

.vma-field input,
.vma-field select {
    padding: 0 .88rem;
}

.vma-field input:focus,
.vma-field select:focus,
.vma-phone-field:focus-within {
    border-color: #adc0f3;
    box-shadow: 0 0 0 4px rgba(39, 81, 210, .1);
}

.vma-field input[readonly] {
    background: #f8fafc;
    color: #53658d;
}

.vma-phone-field {
    align-items: center;
    display: grid;
    grid-template-columns: minmax(6.6rem, 7.4rem) minmax(0, 1fr);
    overflow: hidden;
}

.vma-phone-field select,
.vma-phone-field input {
    border: 0;
    border-radius: 0;
    box-shadow: none !important;
    min-height: 2.65rem;
}

.vma-phone-field select {
    border-right: 1px solid #dce5f1;
}

.vma-panel-actions {
    display: flex;
    justify-content: flex-end;
}

.vma-security-list {
    display: grid;
}

.vma-security-row {
    align-items: center;
    border-bottom: 1px solid #e7edf6;
    display: grid;
    gap: .9rem;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    min-width: 0;
    padding: .88rem 0;
}

.vma-security-row:last-child {
    border-bottom: 0;
}

.vma-security-icon {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    height: 2.75rem;
    justify-content: center;
    width: 2.75rem;
}

.vma-security-green {
    background: #ddf6ec;
    color: #009966;
}

.vma-security-blue {
    background: #e9f1ff;
    color: #2751d2;
}

.vma-security-row strong,
.vma-security-row small {
    display: block;
}

.vma-security-row strong {
    color: #07143d;
    font-size: .9rem;
    font-weight: 820;
}

.vma-security-row small {
    color: #4b5a82;
    font-size: .78rem;
    font-weight: 570;
    margin-top: .18rem;
}

.vma-status-pill {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: .78rem;
    font-weight: 850;
    justify-content: center;
    min-height: 2rem;
    min-width: 7.4rem;
    padding: 0 .9rem;
}

.vma-status-pill.is-active {
    background: #dff5ea;
    color: #008d66;
}

.vma-status-pill.is-off {
    background: #eef2f8;
    color: #52617d;
}

.vma-password-fields {
    background: #f8fbff;
    border: 1px solid #dfe8f8;
    border-radius: 8px;
    display: grid;
    gap: .9rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: .45rem 0 1rem 3.65rem;
    padding: 1rem;
}

.vma-password-fields[x-cloak] {
    display: none !important;
}

.vma-password-fields > small {
    color: #4b5a82;
    font-size: .78rem;
    font-weight: 650;
    grid-column: 1 / -1;
}

@media (max-width: 1380px) {
    .vma-contact-grid {
        grid-template-columns: repeat(2, minmax(0, max-content));
    }
}

@media (max-width: 1180px) {
    .vma-layout {
        grid-template-columns: 1fr;
    }

    .vma-settings-card {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        position: static;
    }

    .vma-menu-title {
        grid-column: 1 / -1;
    }

    .vma-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    body:has(.vma-account-page) .fi-page {
        padding: .9rem !important;
    }

    .vma-page-head {
        align-items: stretch;
        flex-direction: column;
    }

    .vma-page-head .vma-save-button {
        align-self: flex-start;
    }

    .vma-settings-card,
    .vma-form-grid,
    .vma-password-fields {
        grid-template-columns: 1fr;
    }

    .vma-profile-banner {
        align-items: start;
        grid-template-columns: 1fr;
        padding: 1.2rem;
    }

    .vma-contact-grid {
        grid-template-columns: 1fr;
    }

    .vma-security-row {
        align-items: start;
        grid-template-columns: auto minmax(0, 1fr);
    }

    .vma-security-row .vma-secondary-button,
    .vma-status-pill {
        grid-column: 2;
        justify-self: start;
    }

    .vma-password-fields {
        margin-left: 0;
    }
}

@media (max-width: 540px) {
    .vma-menu-item {
        min-height: 3.8rem;
    }

    .vma-panel {
        padding: 1rem;
    }

    .vma-phone-field {
        grid-template-columns: 1fr;
    }

    .vma-phone-field select {
        border-bottom: 1px solid #dce5f1;
        border-right: 0;
    }

    .vma-save-button,
    .vma-secondary-button {
        width: 100%;
    }

    .vma-panel-actions {
        justify-content: stretch;
    }
}
