/* Keyvoto PIM shell — pixel-matched to app.keyvoto.com retailer/pim/home */
:root {
    --kv-primary-blue: #1b2c61;
    --kv-primary-denim: #44569a;
    --kv-primary-red: #e76f51;
    --kv-primary-yellow: #ffc233;
    --kv-primary-turquoise: #3caea3;
    --kv-page-bg: #f0f2f7;
    --kv-text: #37474f;
    --kv-active-bg: #e3f2fd;
    --kv-border: #e4e7ec;
    --kv-card-shadow: 2px 2px 3px rgba(0, 0, 0, 0.25);
}

*, *::before, *::after { box-sizing: border-box; }

body.kv-body {
    font-family: Ubuntu, sans-serif;
    background: var(--kv-page-bg);
    color: var(--kv-text);
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
}

.kv-layout { min-height: 100vh; display: flex; align-items: flex-start; background: var(--kv-page-bg); }

/* ── Sidebar (kvt-sidebar) ── */
.kvt-sidebar,
.kv-sidebar {
    width: 216px;
    flex-shrink: 0;
    background: #fff;
    color: var(--kv-primary-blue);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    align-self: flex-start;
    height: 100vh;
    max-height: 100vh;
    transition: width 0.22s ease;
    overflow: hidden;
    border-radius: 0 12px 12px 0;
    z-index: 40;
}

.kv-sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.75rem 0.85rem 0.35rem;
}

.kv-sidebar-brand-logo {
    display: block;
    height: 28px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    flex: 1;
    min-width: 0;
}

@media (min-width: 1024px) {
    .kv-sidebar-brand-logo {
        height: 100px;
        max-width: 100%;
    }
}

.kv-sidebar-brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    flex: 1;
}

.kv-sidebar-logo-img {
    display: block;
    width: 7.5rem;
    max-width: 100%;
    height: auto;
    margin-bottom: 0.15rem;
}

.kv-sidebar-brand-fallback { display: flex; align-items: center; gap: 0.35rem; }

.kv-sidebar-menu-btn {
    border: 0;
    background: transparent;
    color: var(--kv-text);
    padding: 0.35rem;
    border-radius: 9999px;
    cursor: pointer;
    line-height: 0;
    flex-shrink: 0;
}

/* Topbar hamburger is mobile-only (Tailwind lg:hidden is not available here) */
.kv-topbar .kv-sidebar-menu-btn {
    display: none;
}
.kv-sidebar-menu-btn:hover { background: var(--kv-page-bg); }
.kv-sidebar-menu-btn .material-symbols-outlined { font-size: 24px; }

.kv-sidebar-brand-mark { width: 34px; height: 34px; flex-shrink: 0; }
.kv-sidebar-brand-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--kv-primary-blue);
    line-height: 1.1;
    text-transform: lowercase;
}
.kv-sidebar-brand-tier {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0.1rem;
}
.kv-sidebar-brand-tier .material-symbols-outlined { font-size: 14px; }
.kv-sidebar-brand-advanced {
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.kv-sidebar-account {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 1.5rem 0.85rem;
    position: relative;
}
.kv-sidebar-account-logo {
    width: 30px;
    height: 30px;
    border-radius: 9999px;
    object-fit: contain;
    flex-shrink: 0;
}
.kv-sidebar-account-name {
    flex: 1;
    min-width: 0;
    font-size: 0.8125rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.kv-sidebar-account-add {
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
    color: var(--kv-text);
    line-height: 0;
}
.kv-sidebar-account-add .material-symbols-outlined { font-size: 20px; }

/* Company switcher (replaces static account name) */
.kv-company-switcher {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.85rem 0.85rem 1.1rem;
    position: relative;
}
.kv-company-switcher__trigger {
    flex: 1;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0.35rem 0.45rem;
    border-radius: 9999px;
    font-family: Ubuntu, sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #57565C;
    text-align: left;
    transition: background 0.15s ease;
}
.kv-company-switcher__trigger:hover {
    background: var(--kv-page-bg);
}
.kv-company-switcher__label {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.kv-company-switcher__caret {
    font-size: 18px;
    color: #94a3b8;
    flex-shrink: 0;
}
.kv-company-switcher.is-open .kv-company-switcher__caret {
    transform: rotate(180deg);
}
.kv-company-switcher__menu {
    position: absolute;
    top: calc(100% - 0.35rem);
    left: 0.75rem;
    right: 0.75rem;
    z-index: 60;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(27, 44, 97, 0.18);
    padding: 0.35rem;
    max-height: min(320px, 50vh);
    overflow-y: auto;
}
.kv-company-switcher__menu[hidden] { display: none !important; }
.kv-company-switcher__option {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--kv-text);
    font-size: 0.8125rem;
    font-weight: 600;
}
.kv-company-switcher__option .material-symbols-outlined {
    font-size: 18px;
    color: var(--kv-primary-denim);
}
.kv-company-switcher__option:hover {
    background: var(--kv-page-bg);
}
.kv-company-switcher__option.is-active {
    background: var(--kv-active-bg);
    color: var(--kv-primary-blue);
}

.kv-sidebar-nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
}

.kv-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 2.5rem;
    padding: 0.35rem 1.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--kv-text);
    text-decoration: none;
    border: 0;
    background: transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
}
.kv-nav-link:hover { background: var(--kv-page-bg); }
.kv-nav-link.is-active-top { color: var(--kv-primary-blue); }
.kv-nav-link.is-active-sub {
    background: var(--kv-active-bg);
    color: var(--kv-primary-blue);
    border-radius: 0 9999px 9999px 0;
}
.kv-nav-icon {
    font-size: 24px;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.kv-nav-icon--pim { color: var(--kv-primary-yellow); }
.kv-nav-icon--tools { color: #64748b; }
.kv-sidebar-divider { border: 0; border-top: 1px solid var(--kv-border); margin: 0.35rem 0; }

.kv-nav-group { padding: 0; }
.kv-nav-pim-toggle {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 2.5rem;
    padding: 0.35rem 1.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    color: var(--kv-text);
}
.kv-nav-pim-toggle::-webkit-details-marker { display: none; }
.kv-nav-pim-caret {
    margin-left: auto;
    font-size: 22px;
    transition: transform 0.18s ease;
}
.kv-nav-group:not([open]) > .kv-nav-pim-toggle .kv-nav-pim-caret {
    transform: rotate(180deg);
}
.kv-nav-sub .kv-nav-link { padding-left: 3.4rem; padding-right: 0.65rem; }

/* Nested Κατάλογοι dropdown inside PIM submenu */
.kv-nav-nested { margin: 0; }
.kv-nav-nested__toggle {
    list-style: none;
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    box-sizing: border-box;
    padding-right: 0.5rem !important;
}
.kv-nav-nested__toggle::-webkit-details-marker { display: none; }
.kv-nav-nested__toggle .kv-sidebar-label {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.kv-nav-nested__caret {
    flex: 0 0 auto;
    margin-left: 0.15rem;
    font-size: 20px;
    width: 20px;
    height: 20px;
    line-height: 20px;
    color: #64748b;
    transition: transform 0.18s ease;
}
.kv-nav-nested[open] > .kv-nav-nested__toggle .kv-nav-nested__caret {
    transform: rotate(180deg);
}
.kv-nav-nested__sub .kv-nav-link {
    padding-left: 4.25rem;
    padding-right: 0.65rem;
    min-height: 2.25rem;
    font-size: 0.78rem;
}

/* ── Main area ── */
.kv-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--kv-page-bg);
}

/* ── Top bar ── */
.kv-topbar {
    height: 84px;
    background: var(--kv-page-bg);
    position: sticky;
    top: 0;
    z-index: 30;
    flex-shrink: 0;
}

.kv-topbar-inner {
    height: 100%;
    padding: 0 2rem 0 1.5rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
}

.kv-topbar-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.kv-pim-badge {
    width: 64px;
    height: 64px;
    border-radius: 9999px;
    background: var(--kv-primary-yellow) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.kv-pim-badge .material-symbols-outlined {
    font-size: 40px;
    color: #fff;
    font-variation-settings: 'FILL' 1;
}

.kv-topbar-title-sub {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    line-height: 1.2;
}
.kv-topbar-title-main {
    font-size: 22px;
    font-weight: 800;
    color: var(--kv-primary-blue);
    line-height: 1.1;
}
.kv-topbar-title-main--dashboard {
    font-size: 22.5px;
    font-weight: 500;
    max-width: 11rem;
    line-height: 1.15;
}

.kv-topbar-center {
    display: flex;
    justify-content: center;
    min-width: 0;
}

.kv-topbar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.kv-topbar-bell {
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 9999px;
    background: transparent;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.kv-topbar-bell:hover { background: rgba(0, 0, 0, 0.04); }

.kv-avatar {
    width: 52px;
    height: 52px;
    border-radius: 9999px;
    background: var(--kv-primary-turquoise);
    color: #fff;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.kv-profile {
    position: relative;
}
.kv-profile__trigger {
    border: 0;
    padding: 0;
    cursor: pointer;
    font: inherit;
    line-height: 1;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.kv-profile__trigger:hover,
.kv-profile.is-open .kv-profile__trigger {
    box-shadow: 0 0 0 3px rgba(45, 166, 153, 0.28);
}
.kv-profile__trigger:focus-visible {
    outline: 2px solid var(--kv-primary-turquoise);
    outline-offset: 2px;
}
.kv-profile__menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    z-index: 80;
    width: min(280px, calc(100vw - 1.5rem));
    padding: 0.75rem;
    border-radius: 0.75rem;
    background: #fff;
    border: 1px solid #e4e7ec;
    box-shadow: 0 12px 28px rgba(27, 44, 97, 0.14);
}
.kv-profile__identity {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.25rem 0.35rem 0.65rem;
}
.kv-profile__avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background: var(--kv-primary-turquoise);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.kv-profile__meta {
    min-width: 0;
}
.kv-profile__name {
    font-weight: 700;
    color: #1b2c61;
    font-size: 0.95rem;
    line-height: 1.3;
    word-break: break-word;
}
.kv-profile__email {
    margin-top: 0.15rem;
    color: #64748b;
    font-size: 0.8rem;
    line-height: 1.3;
    word-break: break-word;
}
.kv-profile__email--muted {
    font-style: italic;
}
.kv-profile__divider {
    height: 1px;
    background: #e4e7ec;
    margin: 0.15rem 0 0.45rem;
}
.kv-profile__item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    padding: 0.65rem 0.7rem;
    border-radius: 0.55rem;
    color: #37474f;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}
.kv-profile__item:hover {
    background: #f0f2f7;
    color: #1b2c61;
}
.kv-profile__item .material-symbols-outlined {
    font-size: 1.25rem;
    color: #64748b;
}


/* ── Search pill ── */
.kv-search-pill {
    position: relative;
    width: min(560px, 100%);
}
.kv-search-suggest {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 40;
    margin: 0;
    padding: 0.35rem 0;
    list-style: none;
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--kv-card-shadow);
    overflow: hidden;
}
.kv-search-suggest[hidden] { display: none; }
.kv-search-suggest__item {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    width: 100%;
    border: 0;
    background: transparent;
    padding: 0.55rem 1rem;
    text-align: left;
    font-family: Ubuntu, sans-serif;
    cursor: pointer;
    color: #1e293b;
    text-decoration: none;
}
.kv-search-suggest__item:hover,
.kv-search-suggest__item:focus {
    background: #f0f2f7;
    outline: none;
}
.kv-search-suggest__label {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
}
.kv-search-suggest__sub {
    font-size: 11px;
    color: #64748b;
}
.kv-search-pill__inner {
    display: flex;
    align-items: center;
    height: 44px;
    background: #fff;
    border-radius: 9999px;
    box-shadow: var(--kv-card-shadow);
    padding: 0 14px 0 16px;
}
.kv-search-type { position: relative; flex-shrink: 0; }
.kv-search-type__trigger {
    display: flex;
    align-items: center;
    border: 0;
    background: transparent;
    padding: 0 18px 0 0;
    font-family: Ubuntu, sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--kv-primary-blue);
    cursor: pointer;
    white-space: nowrap;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231b2c61' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
}
.kv-search-type__menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: -8px;
    min-width: 220px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    z-index: 50;
    padding: 4px 0;
    margin: 0;
    list-style: none;
}
.kv-search-type.is-open .kv-search-type__menu { display: block; }
.kv-search-type__option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    border: 0;
    background: transparent;
    padding: 10px 16px;
    font-family: Ubuntu, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--kv-text);
    cursor: pointer;
    text-align: left;
}
.kv-search-type__option:hover,
.kv-search-type__option.is-selected { background: #f5f5f5; color: var(--kv-primary-blue); }
.kv-search-type__divider { height: 1px; background: #e8eaed; margin: 2px 0; list-style: none; }
.kv-search-pill__field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding-left: 10px;
    border-left: 1px solid #e8eaed;
}
.kv-search-pill__field input {
    flex: 1;
    min-width: 0;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    font-family: Ubuntu, sans-serif;
    font-size: 14px;
    color: var(--kv-text);
    margin: 0;
    padding: 0;
}
.kv-search-pill__field input::placeholder { color: #6b6b6b; }
.kv-search-pill__field .material-symbols-outlined { color: #6b6b6b; font-size: 20px; }

/* ── Content ── */
.kv-content {
    padding: 0 2rem 2rem;
    flex: 1;
}

/* ── Shared kvt-card ── */
.kvt-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--kv-card-shadow);
}

/* ── Dashboard KPI tiles ── */
.kv-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.kv-kpi {
    display: flex;
    flex-direction: column;
    min-height: 144px;
    padding: 9px 15px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.12s ease;
}
.kv-kpi:hover { transform: translateY(-1px); }

.kv-kpi__head {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-top: 0.5rem;
    min-height: 42px;
}
.kv-kpi__label {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    flex: 1;
    padding-right: 0.35rem;
}
.kv-kpi__icon {
    font-size: 35px !important;
    width: 35px;
    height: 35px;
    color: #fff;
    flex-shrink: 0;
    font-variation-settings: 'FILL' 0, 'wght' 400;
}
.kv-kpi__value {
    font-size: 27px;
    font-weight: 700;
    color: #fff;
    padding: 0.25rem 0.15rem;
    line-height: 1;
    margin-top: auto;
}

.kv-kpi--brands { background: var(--kv-primary-red) !important; }
.kv-kpi--products { background: var(--kv-primary-yellow) !important; }
.kv-kpi--products .kv-kpi__label,
.kv-kpi--products .kv-kpi__icon,
.kv-kpi--products .kv-kpi__value { color: #fff; }
.kv-kpi--catalogs { background: var(--kv-primary-turquoise) !important; }
.kv-kpi--suppliers { background: var(--kv-primary-denim) !important; }

/* ── Dashboard 2×2 panels ── */
.kv-dash-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.kv-dash-panel {
    min-height: 34vh;
    overflow: hidden;
}

.kv-dash-panel__header {
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    justify-content: space-between;
    padding: 3px 2rem 0;
    gap: 0.5rem;
}

.kv-dash-panel__title {
    margin: 6px 0;
    padding: 0 6px;
    font-size: 15px;
    font-weight: 700;
    color: var(--kv-primary-blue);
    line-height: 1.3;
    flex: 1;
}

.kv-dash-panel__icon {
    font-size: 40px !important;
    width: 30px;
    height: 40px;
    flex-shrink: 0;
    margin-top: 0.35rem;
    font-variation-settings: 'FILL' 0, 'wght' 400;
}
.kv-dash-panel__icon--brands { color: var(--kv-primary-red) !important; }
.kv-dash-panel__icon--products { color: var(--kv-primary-yellow) !important; }
.kv-dash-panel__icon--catalogs { color: var(--kv-primary-turquoise) !important; }
.kv-dash-panel__icon--suppliers { color: var(--kv-primary-denim) !important; }

/* ── Dashboard tables ── */
.kv-dash-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.kv-dash-table col.kv-dash-col-thumb { width: 72px; }
.kv-dash-table col.kv-dash-col-date { width: 92px; }

.kv-dash-table__row {
    cursor: pointer;
    transition: background 0.12s ease;
}
.kv-dash-table__row:hover { background: #fafbfc; }

.kv-dash-table__thumb {
    width: 72px;
    min-width: 72px;
    max-width: 72px;
    padding: 0.65rem 0 0.65rem 2rem;
    vertical-align: middle;
    box-sizing: border-box;
}

.kv-dash-thumb-wrap {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.kv-dash-thumb {
    width: 40px;
    height: 40px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}
.kv-dash-thumb--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 8px;
    color: #94a3b8;
}
.kv-dash-thumb--empty .material-symbols-outlined { font-size: 22px; }

.kv-dash-thumb-img {
    width: 40px;
    height: 40px;
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    background: #fff;
    flex-shrink: 0;
}

.kv-dash-table__name {
    padding: 0.65rem 0.75rem 0.65rem 0.5rem;
    font-size: 13.5px;
    color: var(--kv-primary-blue);
    vertical-align: middle;
    overflow: hidden;
    min-width: 0;
}
.kv-dash-table__name--wide { width: auto; }
.kv-dash-table__name a {
    color: var(--kv-primary-blue);
    text-decoration: none;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.35;
}
.kv-dash-table__name a:hover { text-decoration: underline; }

.kv-dash-table__date {
    width: 92px;
    min-width: 92px;
    max-width: 92px;
    padding: 0.65rem 0.75rem 0.65rem 0.25rem;
    font-size: 15px;
    color: var(--kv-primary-blue);
    text-align: center;
    vertical-align: middle;
    box-sizing: border-box;
}

.kv-dash-table__date-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    line-height: 1.2;
}
.kv-dash-table__date-stack span {
    display: block;
    white-space: nowrap;
    font-size: 15px;
}
.kv-dash-table__date-stack small {
    display: block;
    font-size: 11px;
    color: #6b7280;
    font-weight: 400;
    white-space: nowrap;
    line-height: 1.2;
}

.kv-dash-table__empty {
    padding: 2rem 1.5rem;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
}

/* ── Product list cards (products-kv page) ── */
.kv-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--kv-card-shadow);
}
.kv-shadow { box-shadow: var(--kv-card-shadow); }

/* ── Products catalog (Kyvotyo) ── */
.kv-products-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
}
.kv-toolbar-left,
.kv-toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}
.kv-page-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    background: #fff;
    border-radius: 9999px;
    box-shadow: var(--kv-card-shadow);
    padding: 0.2rem 0.35rem;
    min-height: 2.5rem;
}
.kv-page-pill__label {
    font-size: 13px;
    font-weight: 700;
    color: var(--kv-primary-blue);
    padding: 0 0.45rem;
    white-space: nowrap;
}
.kv-page-pill__btn {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--kv-primary-blue);
    text-decoration: none;
    border: 0;
    background: transparent;
}
.kv-page-pill__btn:hover { background: #f1f5f9; }
.kv-page-pill__btn.is-disabled { color: #cbd5e1; pointer-events: none; }
.kv-page-pill__btn .material-symbols-outlined { font-size: 20px; }

.kv-toolbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #fff;
    border: 0;
    border-radius: 9999px;
    box-shadow: var(--kv-card-shadow);
    padding: 0.55rem 0.95rem;
    min-height: 2.5rem;
    font-size: 13px;
    font-weight: 700;
    color: var(--kv-primary-blue);
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
}
.kv-toolbar-btn .material-symbols-outlined { font-size: 18px; }
.kv-toolbar-btn__chevron { font-size: 18px !important; color: #94a3b8; }
.kv-toolbar-btn.is-active,
.kv-toolbar-btn[aria-pressed="true"] {
    background: var(--kv-primary-blue);
    color: #fff;
}
.kv-toolbar-btn.is-active .kv-toolbar-btn__chevron { color: #fff; }
.kv-toolbar-btn.has-filters,
.kv-toolbar-btn.has-filters.is-active,
.kv-toolbar-btn.has-filters[aria-pressed="true"] {
    background: #dc2626;
    color: #fff;
}
.kv-toolbar-btn.has-filters .kv-toolbar-btn__chevron { color: #fff; }

.kv-view-planes {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    background: var(--kv-primary-blue);
    border-radius: 14px;
    padding: 0.25rem;
    box-shadow: var(--kv-card-shadow);
}
.kv-view-planes__btn {
    width: 2.15rem;
    height: 2.15rem;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: rgba(255,255,255,0.55);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.kv-view-planes__btn.is-active {
    background: rgba(255,255,255,0.18);
    color: #fff;
}
.kv-view-planes__btn .material-symbols-outlined { font-size: 20px; }

.kv-sort-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #fff;
    border-radius: 9999px;
    box-shadow: var(--kv-card-shadow);
    padding: 0.35rem 0.85rem;
    min-height: 2.5rem;
    color: var(--kv-primary-blue);
}
.kv-sort-pill .material-symbols-outlined { font-size: 18px; color: #94a3b8; }
.kv-sort-pill select {
    border: 0;
    background: transparent;
    font-weight: 700;
    font-size: 13px;
    color: var(--kv-primary-blue);
    outline: none;
    max-width: 16rem;
    font-family: inherit;
    cursor: pointer;
}

.kv-filter-bar {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--kv-card-shadow);
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
}
.kv-filter-bar.is-collapsed { display: none; }
.kv-filter-bar__inner {
    display: flex;
    align-items: stretch;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.kv-filter-dd {
    position: relative;
    min-width: 9.5rem;
    flex: 1 1 9.5rem;
    max-width: 14rem;
}
.kv-filter-dd__trigger {
    width: 100%;
    text-align: left;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.55rem 0.7rem;
    cursor: pointer;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 0 0.25rem;
    font-family: inherit;
}
.kv-filter-dd__title {
    grid-column: 1;
    font-size: 12px;
    font-weight: 800;
    color: var(--kv-primary-blue);
}
.kv-filter-dd__value {
    grid-column: 1;
    font-size: 12px;
    color: #94a3b8;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.kv-filter-dd__trigger .material-symbols-outlined {
    grid-row: 1 / span 2;
    grid-column: 2;
    align-self: center;
    color: #94a3b8;
    font-size: 18px;
}
.kv-filter-dd.is-open .kv-filter-dd__trigger {
    border-color: var(--kv-primary-blue);
    background: #fff;
}
.kv-filter-dd__menu {
    position: absolute;
    z-index: 30;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    min-width: 14rem;
    max-height: 18rem;
    overflow: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
    border: 1px solid #e2e8f0;
    padding: 0.35rem;
}
.kv-filter-dd__option {
    display: block;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    text-decoration: none;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
}
.kv-filter-dd__option:hover { background: #f1f5f9; }
.kv-filter-dd__option.is-active {
    background: var(--kv-active-bg);
    color: var(--kv-primary-blue);
}
.kv-filter-clear {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: auto;
    align-self: center;
    padding: 0.55rem 0.85rem;
    border-radius: 9999px;
    background: #f1f5f9;
    color: var(--kv-primary-blue);
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}
.kv-filter-clear .material-symbols-outlined { font-size: 18px; }

.kv-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}
.kv-product-grid[data-view="list"] { grid-template-columns: 1fr; }
.kv-product-grid[data-view="compact"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kv-product-grid[data-view="list"] .kv-product-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    grid-template-rows: auto auto;
}
.kv-product-grid[data-view="list"] .kv-product-card__head { grid-column: 1; grid-row: 1; }
.kv-product-grid[data-view="list"] .kv-product-card__media {
    grid-column: 2;
    grid-row: 1 / span 2;
    height: 140px;
    margin: 0.85rem 0.85rem 0.85rem 0;
}
.kv-product-grid[data-view="list"] .kv-product-card__foot { grid-column: 1; grid-row: 2; }
.kv-product-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #94a3b8;
    padding: 3rem 0;
    font-weight: 600;
}

.kv-product-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--kv-card-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.kv-product-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1rem 0.5rem;
    min-width: 0;
}
.kv-product-card__identity {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    text-decoration: none;
}
.kv-product-card__logo {
    max-width: 72px;
    max-height: 28px;
    width: auto;
    height: auto;
    object-fit: contain;
    align-self: flex-start;
}
.kv-product-card__title {
    font-size: 13px;
    font-weight: 700;
    color: var(--kv-primary-blue);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.kv-product-card__check {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--kv-primary-blue);
    margin-top: 2px;
}
.kv-product-card__media {
    margin: 0 1rem 0.75rem;
    height: 160px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.kv-product-card__img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}
.kv-product-card__placeholder { font-size: 44px; color: #cbd5e1; }
.kv-product-card__foot {
    padding: 0 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.kv-product-card__status-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.kv-product-card__status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
}
.kv-product-card__dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    flex-shrink: 0;
}
.kv-product-card__stock {
    margin-left: auto;
    color: var(--kv-primary-blue);
    font-weight: 700;
    font-size: 12px;
}
.kv-product-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 12px;
    color: #64748b;
    min-width: 0;
}
.kv-product-card__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    min-width: 0;
}
.kv-product-card__meta .material-symbols-outlined { font-size: 16px; flex-shrink: 0; }
.kv-product-card__brand {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kv-pager-bottom {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.kv-pager-bottom__btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--kv-card-shadow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #64748b;
    font-weight: 700;
    font-size: 13px;
}
.kv-pager-bottom__btn.is-active {
    background: var(--kv-primary-blue);
    color: #fff;
}
.kv-pager-bottom__ellipsis { width: 2rem; text-align: center; color: #94a3b8; }

.kv-scroll-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 60;
    width: 3rem;
    height: 3rem;
    border: 0;
    border-radius: 9999px;
    background: var(--kv-primary-blue);
    color: #fff;
    box-shadow: 0 10px 24px rgba(27, 44, 97, 0.28);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease;
}
.kv-scroll-top.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.kv-scroll-top .material-symbols-outlined { font-size: 28px; }

.kv-view-toggle button {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.kv-view-toggle button.is-active { background: var(--kv-active-bg); color: var(--kv-primary-blue); }
.kv-view-toggle button:not(.is-active) { background: #fff; box-shadow: var(--kv-card-shadow); color: #94a3b8; }

/* ── Sidebar collapse ── */
.kv-layout.kv-sidebar-collapsed .kv-sidebar,
.kv-layout.kv-sidebar-collapsed .kvt-sidebar { width: 4.25rem; }
.kv-layout.kv-sidebar-collapsed .kv-sidebar-label,
.kv-layout.kv-sidebar-collapsed .kv-sidebar-account-name,
.kv-layout.kv-sidebar-collapsed .kv-sidebar-account-add,
.kv-layout.kv-sidebar-collapsed .kv-nav-pim-caret,
.kv-layout.kv-sidebar-collapsed .kv-nav-sub,
.kv-layout.kv-sidebar-collapsed .kv-nav-nested__sub,
.kv-layout.kv-sidebar-collapsed .kv-nav-nested__caret,
.kv-layout.kv-sidebar-collapsed .kv-sidebar-divider { display: none; }
.kv-layout.kv-sidebar-collapsed .kv-sidebar-header {
    justify-content: center;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}
.kv-layout.kv-sidebar-collapsed .kv-sidebar-brand-logo {
    display: none;
}
.kv-layout.kv-sidebar-collapsed .kv-company-switcher__trigger,
.kv-layout.kv-sidebar-collapsed .kv-company-switcher__menu { display: none; }
.kv-layout.kv-sidebar-collapsed .kv-company-switcher {
    justify-content: center;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}
.kv-layout.kv-sidebar-collapsed .kv-nav-link {
    justify-content: center;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}
.kv-layout.kv-sidebar-collapsed .kv-nav-pim-toggle {
    justify-content: center;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}
.kv-layout.kv-sidebar-collapsed .kv-sidebar-footer .kv-nav-link {
    justify-content: center;
}

/* ── Scrollbar ── */
.kv-scrollbar { scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; }
.kv-scrollbar::-webkit-scrollbar { width: 6px; }
.kv-scrollbar::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 9999px; }

/* ── Responsive ── */
@media (max-width: 1279px) {
    .kv-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .kv-product-grid[data-view="compact"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1023px) {
    .kv-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kv-dash-grid { grid-template-columns: 1fr; }
    .kv-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kv-product-grid[data-view="list"] { grid-template-columns: 1fr; }
    .kv-filter-dd { max-width: none; }

    .kv-sidebar,
    .kvt-sidebar {
        position: fixed;
        top: 0; left: 0; bottom: 0;
        z-index: 50;
        transform: translateX(-100%);
        box-shadow: 4px 0 16px rgba(0, 0, 0, 0.12);
    }
    .kv-layout.kv-mobile-sidebar-open .kv-sidebar,
    .kv-layout.kv-mobile-sidebar-open .kvt-sidebar {
        display: flex;
        transform: translateX(0);
    }
    .kv-mobile-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.35);
        z-index: 45;
    }
    .kv-layout.kv-mobile-sidebar-open .kv-mobile-backdrop { display: block; }

    .kv-topbar-inner {
        grid-template-columns: auto 1fr auto;
        padding: 0 1rem;
    }
    .kv-topbar .kv-sidebar-menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .kv-topbar-title-main--dashboard { font-size: 18px; max-width: 8rem; }
    .kv-pim-badge { width: 48px; height: 48px; }
    .kv-pim-badge .material-symbols-outlined { font-size: 30px; }
    .kv-content { padding: 0 1rem 1.5rem; }
}

@media (max-width: 639px) {
    .kv-kpi-grid { grid-template-columns: 1fr; }
    .kv-product-grid,
    .kv-product-grid[data-view="compact"],
    .kv-product-grid[data-view="list"] { grid-template-columns: 1fr; }
    .kv-product-grid[data-view="list"] .kv-product-card {
        display: flex;
        flex-direction: column;
    }
    .kv-product-grid[data-view="list"] .kv-product-card__media {
        grid-column: auto;
        grid-row: auto;
        margin: 0 1rem 0.75rem;
        height: 160px;
    }
    .kv-search-pill { width: 100%; }
    .kv-topbar-center { grid-column: 1 / -1; order: 3; }
    .kv-topbar-inner { grid-template-columns: 1fr auto; row-gap: 0.5rem; height: auto; min-height: 84px; padding-bottom: 0.75rem; }
    .kv-sort-pill select { max-width: 10rem; }
    .kv-filter-clear { margin-left: 0; width: 100%; justify-content: center; }
}

@media (min-width: 1024px) {
    .kv-sidebar,
    .kvt-sidebar { display: flex !important; }
    .kv-mobile-backdrop { display: none !important; }
}

.kv-dash-table__date-link {
    color: inherit;
    text-decoration: none;
}

/* ── Legacy pages wrapped in KV chrome ── */
.kv-sidebar-footer {
    margin-top: auto;
    padding: 0.75rem 0 1rem;
    border-top: 1px solid var(--kv-border);
}

/* ── Brands catalogue index ── */
.kv-brands-page {
    padding: 1rem 1.25rem 2rem;
}
.kv-brands-page__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.kv-brands-page__crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin: 0 0 0.4rem;
    font-size: 0.8125rem;
    color: #64748b;
}
.kv-brands-page__crumb a {
    color: var(--kv-primary-blue);
    text-decoration: none;
    font-weight: 500;
}
.kv-brands-page__crumb a:hover {
    text-decoration: underline;
}
.kv-brands-page__crumb-sep {
    opacity: 0.55;
}
.kv-brands-page__title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--kv-primary-blue);
}
.kv-brands-page__sub {
    margin: 0.35rem 0 0;
    font-size: 0.875rem;
    color: #64748b;
}
.kv-brands-page__count {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
    background: #f1f5f9;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
}
.kv-brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.85rem;
}
.kv-brand-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    text-decoration: none;
    color: var(--kv-text);
    transition: background 0.15s ease, box-shadow 0.15s ease;
}
.kv-brand-card:hover {
    background: #f8fafc;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}
.kv-brand-card__logo {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 10px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.kv-brand-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}
.kv-brand-card__logo .material-symbols-outlined {
    font-size: 26px;
    color: #94a3b8;
}
.kv-brand-card__meta {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.kv-brand-card__name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--kv-primary-blue);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.kv-brand-card__count {
    font-size: 0.75rem;
    color: #64748b;
}
.kv-brand-card__chevron {
    flex-shrink: 0;
    color: #94a3b8;
    font-size: 22px;
}
.kv-brands-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #64748b;
}
.kv-brands-empty .material-symbols-outlined {
    font-size: 40px;
    color: #cbd5e1;
    margin-bottom: 0.75rem;
}
.kv-brands-empty__link {
    display: inline-block;
    margin-top: 0.75rem;
    color: var(--kv-primary-blue);
    font-weight: 600;
    text-decoration: none;
}
.kv-brands-empty__link:hover { text-decoration: underline; }

@media (max-width: 640px) {
    .kv-brands-page__head { flex-direction: column; align-items: flex-start; }
    .kv-brands-grid { grid-template-columns: 1fr; }
}

.kv-content--legacy,
main.kv-content--legacy,
#stock-page.kv-content--legacy {
    flex: 1;
    min-width: 0;
    padding: 1rem 1.25rem 2rem;
    background: var(--kv-page-bg);
}

.kv-content--legacy .pt-16 { padding-top: 0 !important; }

.kv-layout .kv-main {
    display: flex;
    flex-direction: column;
    flex: 1 1 0%;
    min-width: 0;
    width: auto;
    max-width: 100%;
    min-height: 100vh;
    align-self: stretch;
}
/* Footer / floater must never sit as row flex siblings of .kv-main (collapses content). */
.kv-layout > footer {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
}

/* Product detail — self-contained layout (do not rely on Tailwind CDN) */
.kv-product-detail {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    flex: 1 1 auto;
    min-width: 0 !important;
    box-sizing: border-box;
    color: #191c1d;
    background: var(--kv-page-bg, #f0f2f7);
    overflow: visible;
}
.kv-product-detail__wrap {
    display: block !important;
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 2rem 1.25rem 3rem !important;
    box-sizing: border-box;
    overflow: visible;
}
.kv-product-detail__back {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 2rem;
    color: #58646d;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}
.kv-product-detail__back:hover { color: #002a4d; }
.kv-product-detail__grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 2.5rem !important;
    width: 100% !important;
    max-width: 100% !important;
    align-items: start;
    box-sizing: border-box;
}
@media (min-width: 900px) {
    .kv-product-detail__grid {
        grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr) !important;
        gap: 3rem !important;
    }
}
.kv-product-detail__media-col,
.kv-product-detail__info-col {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    grid-column: auto !important;
    grid-row: auto !important;
    float: none !important;
    position: relative !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
    box-sizing: border-box;
    gap: 1.5rem;
}
.kv-product-detail__info-col { gap: 2rem; }
.kv-product-detail__hero {
    position: relative !important;
    width: 100% !important;
    min-height: 320px;
    box-sizing: border-box;
    background: #fff !important;
    border-radius: 12px;
    padding: 2rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}
@media (min-width: 640px) {
    .kv-product-detail__hero {
        min-height: 420px;
        padding: 3rem !important;
    }
}
.kv-product-detail__hero-img {
    display: block !important;
    max-width: 100% !important;
    max-height: 500px !important;
    width: auto !important;
    height: auto !important;
    margin: 0 auto;
    object-fit: contain !important;
}
.kv-product-detail__badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 2;
    background: #d2e4ff;
    color: #001c37;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.kv-product-detail__thumbs {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 0.75rem !important;
    width: 100%;
}
.kv-product-detail__thumb {
    aspect-ratio: 1 / 1;
    background: #e7e8e9;
    border-radius: 0.5rem;
    padding: 0.5rem;
    border: 2px solid transparent;
    cursor: pointer;
    box-sizing: border-box;
}
.kv-product-detail__thumb.is-active,
.kv-product-detail__thumb--solo {
    border-color: #002a4d;
}
.kv-product-detail__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}
.kv-product-detail__kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    color: #002a4d;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.kv-product-detail__kicker-sep {
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: #c2c7d0;
    flex-shrink: 0;
}
.kv-product-detail__kicker-link {
    color: inherit;
    text-decoration: none;
}
.kv-product-detail__kicker-link:hover {
    text-decoration: underline;
    text-underline-offset: 0.15em;
}
.kv-product-detail__kicker-link.is-muted,
.kv-product-detail__kicker-muted {
    color: #58646d;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 500;
}
.kv-product-detail__info-col h1 {
    color: #002a4d !important;
    font-size: clamp(1.75rem, 2.5vw, 2.75rem) !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    margin: 0.25rem 0 0 !important;
}
.kv-product-detail__stock {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid #d1fae5;
    background: #ecfdf5;
    color: #047857;
}
.kv-product-detail__stock.is-empty {
    border-color: #e2e8f0;
    background: #f8fafc;
    color: #475569;
}
.kv-product-detail__stock-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: #10b981;
    flex-shrink: 0;
}
.kv-product-detail__stock.is-empty .kv-product-detail__stock-dot {
    background: #94a3b8;
}
.kv-product-detail__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    margin-top: 0.75rem;
}
.kv-product-detail__meta-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #58646d;
}
.kv-product-detail__meta-value {
    font-size: 0.875rem;
    font-weight: 500;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.kv-product-detail__price-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    background: #f3f4f5;
}
.kv-product-detail__prices {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1.75rem 2.5rem;
}
.kv-product-detail__price-item {
    min-width: 8.5rem;
}
.kv-product-detail__price {
    color: #002a4d;
    font-size: clamp(1.75rem, 2vw, 2.25rem);
    font-weight: 900;
}
.kv-product-detail__price-unit {
    color: #58646d;
    font-size: 0.875rem;
    margin-left: 0.35rem;
}
.kv-product-detail__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.kv-product-detail__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid #d2e4ff;
    background: #fff;
    color: #002a4d;
}
.kv-product-detail__btn--primary {
    border: none;
    background: #002a4d;
    color: #fff;
    font-weight: 700;
}

/* Overview attribute groups (Tree / Pricing / Packaging) */
.kv-spec-groups {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.kv-spec-group h3 {
    letter-spacing: -0.01em;
}

/* ── Commercial product content editor ── */
.kv-content-editor {
    margin: 0 0 1.5rem;
    padding: 1.1rem 1.25rem;
    border: 1px solid #d2e4ff;
    border-radius: 0.75rem;
    background: #f8fafc;
}
.kv-content-editor__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}
.kv-content-editor__kicker {
    margin: 0;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}
.kv-content-editor__title {
    margin: 0.2rem 0 0.35rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #002a4d;
}
.kv-content-editor__hint {
    margin: 0;
    max-width: 42rem;
    font-size: 0.85rem;
    color: #58646d;
    line-height: 1.45;
}
.kv-content-editor__panel {
    margin-top: 1.1rem;
    padding-top: 1.1rem;
    border-top: 1px solid #e4e7ec;
}
.kv-content-editor__form,
.kv-content-editor__images {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}
.kv-content-editor__images {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e4e7ec;
}
.kv-content-editor__subtitle {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #002a4d;
}
.kv-content-editor__field label,
.kv-content-editor__image-block h4 {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #37474f;
}
.kv-content-editor__field textarea {
    width: 100%;
    border: 1px solid #cfd8e3;
    border-radius: 0.5rem;
    padding: 0.7rem 0.8rem;
    font: inherit;
    color: #1b2c61;
    background: #fff;
    resize: vertical;
}
.kv-content-editor__actions {
    display: flex;
    gap: 0.5rem;
}
.kv-content-editor__image-block {
    padding: 0.9rem;
    border-radius: 0.65rem;
    background: #fff;
    border: 1px solid #e4e7ec;
}
.kv-content-editor__preview,
.kv-content-editor__upload {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}
.kv-content-editor__preview img,
.kv-content-editor__gallery img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 1px solid #e4e7ec;
    background: #f0f2f7;
}
.kv-content-editor__gallery {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}
.kv-content-editor__gallery li {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.kv-content-editor__gallery-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.kv-content-editor__link-btn {
    border: 0;
    background: transparent;
    color: #1b2c61;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}
.kv-content-editor__link-btn--danger { color: #b42318; }
.kv-content-editor__empty {
    margin: 0.35rem 0;
    font-size: 0.85rem;
    color: #64748b;
}
.kv-content-editor__flash {
    margin-top: 0.85rem;
    padding: 0.65rem 0.8rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}
.kv-content-editor__flash--success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}
.kv-content-editor__flash--error {
    background: #fff5f4;
    color: #b42318;
    border: 1px solid #fecaca;
}
.kv-content-editor__flash--warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* Lead Finder adaptations */
.kv-content {
  padding: 1.25rem 1.5rem 2rem;
  width: 100%;
  max-width: none;
}
.kv-company-switcher__option {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  padding: 0.55rem 0.75rem;
}
.kv-company-switcher__option:hover,
.kv-company-switcher__option.is-active {
  background: var(--kv-active-bg);
}
.kv-topbar .kv-sidebar-menu-btn.lg-hidden {
  display: inline-flex;
}
@media (min-width: 1024px) {
  .kv-topbar .kv-sidebar-menu-btn.lg-hidden {
    display: none;
  }
}

/* Lead Finder: readable near-black body copy in content area */
.kv-body {
  color: #0f172a;
}
.kv-content {
  color: #0f172a;
}
.kv-content input,
.kv-content textarea,
.kv-content select {
  color: #0f172a;
}
.kv-content .btn-primary,
.kv-content button.bg-espresso-700,
.kv-content .text-cream-50 {
  color: #fffdf9 !important;
}

/* Lead Finder shell fixes */
.kv-nav-section-toggle {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  border: 0;
  background: transparent;
  color: #0f172a;
  font: inherit;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.65rem 1rem 0.35rem;
  cursor: pointer;
  text-align: left;
}
.kv-nav-section-toggle .material-symbols-outlined { font-size: 18px; color: #1b2c61; }
.kv-nav-section-toggle .kv-nav-pim-caret { margin-left: auto; font-size: 18px; color: #64748b; }
.kv-nav-sub { display: flex; flex-direction: column; padding-left: 0.35rem; }
.kv-layout.kv-sidebar-collapsed .kv-nav-section-toggle .kv-sidebar-label,
.kv-layout.kv-sidebar-collapsed .kv-nav-section-toggle .kv-nav-pim-caret { display: none; }
.kv-layout.kv-sidebar-collapsed .kv-nav-sub .kv-sidebar-label { display: none; }

.kv-content.lf-wide {
  width: 100%;
  max-width: none;
  padding: 1rem 1.25rem 2rem;
}
@media (min-width: 1024px) {
  .kv-content.lf-wide { padding: 1.25rem 1.75rem 2.5rem; }
}

.lf-settings-body {
  max-width: none !important;
  width: 100%;
}

/* Ensure topbar hamburger visible on mobile (PIM media query) */
@media (max-width: 1023px) {
  .kv-topbar .kv-sidebar-menu-btn { display: inline-flex !important; }
}
@media (min-width: 1024px) {
  .kv-topbar .kv-sidebar-menu-btn { display: none; }
}
.kv-content:has(.kv-settings-hub) {
  padding: 0 !important;
}

/* VelReach brand mark in sidebar (transparent PNG — no plate) */
.kv-sidebar-brand-logo {
  height: 44px !important;
  width: auto !important;
  max-width: 120px !important;
  border-radius: 10px;
  object-fit: contain;
  background: transparent !important;
}
@media (min-width: 1024px) {
  .kv-sidebar-brand-logo {
    height: 72px !important;
    max-width: 150px !important;
  }
}
.kv-layout.kv-sidebar-collapsed .kv-sidebar-brand-logo {
  height: 32px !important;
  max-width: 36px !important;
}

/* Keep main column clear of the sticky sidebar */
.kv-layout {
  display: flex !important;
  align-items: stretch !important;
  width: 100%;
  overflow-x: hidden;
}
.kv-layout > .kv-sidebar,
.kv-layout > .kvt-sidebar {
  flex: 0 0 216px;
  position: sticky;
  z-index: 40;
}
@media (min-width: 1024px) {
  .kv-layout.kv-sidebar-collapsed > .kv-sidebar,
  .kv-layout.kv-sidebar-collapsed > .kvt-sidebar {
    flex-basis: 4.25rem;
  }
}
.kv-layout > .kv-main {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
.kv-content.lf-wide {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}
.kv-content.lf-wide > * {
  max-width: 100% !important;
  box-sizing: border-box;
}
