/* Account and administration pages: admin-specific visual tokens, isolated from public storefront layout. */
.kcbf-auth-card,
.kcbf-admin-card {
    border: 1px solid #e6e1d8;
    border-radius: 0;
}

.kcbf-auth-card .nav-link {
    color: #4f4a43;
    font-weight: 500;
}

.kcbf-auth-card .nav-link.active {
    color: #3d342b;
    border-color: #e6e1d8 #e6e1d8 #fff;
}

.kcbf-google-auth[hidden] {
    display: none !important;
}

.kcbf-google-auth .btn {
    background: #fff;
    border-color: #d8d4cc;
}

.kcbf-google-auth .btn:hover,
.kcbf-google-auth .btn:focus-visible {
    background: #f8f7f4;
    border-color: #a9a196;
}

.kcbf-google-auth .fa-google {
    color: #4285f4;
}

.kcbf-auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    color: #706a61;
    font-size: 0.8rem;
}

.kcbf-auth-divider::before,
.kcbf-auth-divider::after {
    height: 1px;
    flex: 1;
    content: '';
    background: #e6e1d8;
}

.kcbf-auth-card .form-control,
.kcbf-admin-card .form-control,
.kcbf-admin-card .custom-select {
    border-radius: 0;
}

.kcbf-auth-card .btn,
.kcbf-admin-card .btn {
    border-radius: 0;
}

.kcbf-admin-header {
    border-bottom: 1px solid #e6e1d8;
}

.kcbf-admin-shell {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    min-height: 70vh;
}

.kcbf-admin-sidebar {
    padding: 1.25rem;
    background: #f8f7f4;
    border-right: 1px solid #e6e1d8;
}

.kcbf-admin-sidebar .nav-link {
    margin-bottom: 0.25rem;
    color: #4f4a43;
}

.kcbf-admin-sidebar .nav-link.active {
    color: #26211c;
    font-weight: 700;
    background: #f4c84a;
}

.kcbf-admin-content {
    min-width: 0;
    padding: 1.5rem;
}

.kcbf-admin-metric {
    min-height: 118px;
    background: #f8f7f4;
    border: 1px solid #e6e1d8;
    border-top: 3px solid #f4c84a;
}

.kcbf-admin-metric strong {
    display: block;
    color: #2f2923;
    font-size: 1.75rem;
}

.kcbf-admin-metric-link {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.kcbf-admin-metric-link:hover,
.kcbf-admin-metric-link:focus-visible {
    background: #f4f1e8;
    border-color: #c7b98d;
    outline: 2px solid #987b32;
    outline-offset: 2px;
}

.kcbf-admin-metric-link:active {
    transform: translateY(1px);
}

.kcbf-admin-metric-link > span:last-child {
    margin-top: auto;
    color: #665938;
    text-decoration: underline;
}

.kcbf-admin-table-wrap {
    overflow-x: auto;
}

.kcbf-admin-table {
    min-width: 620px;
}

.kcbf-admin-table td,
.kcbf-admin-table th {
    vertical-align: middle;
}

[data-admin-section="overview"] .kcbf-admin-table {
    min-width: 460px;
}

[data-dashboard-range-label] {
    min-height: 2.375rem;
    display: flex;
    align-items: center;
}

.kcbf-admin-section[hidden],
[data-auth-panel][hidden] {
    display: none !important;
}

.kcbf-admin-permissions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem 1rem;
}

.kcbf-admin-logo {
    color: #302a24;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.kcbf-admin-status {
    position: sticky;
    top: 0.5rem;
    z-index: 5;
}

@media (max-width: 767.98px) {
    .kcbf-admin-shell {
        grid-template-columns: 1fr;
    }

    .kcbf-admin-sidebar {
        border-right: 0;
        border-bottom: 1px solid #e6e1d8;
    }

    .kcbf-admin-sidebar .nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.25rem;
    }

    .kcbf-admin-content {
        padding: 1rem;
    }

    .kcbf-admin-permissions {
        grid-template-columns: 1fr;
    }
}

/* SalesSync-inspired administration workspace. All overrides are scoped to the admin page. */
.kcbf-admin-page {
    min-height: 100vh;
    color: #26332d;
    background: #f4f6f5 !important;
    font-family: 'Roboto', sans-serif;
}

.kcbf-admin-page .kcbf-admin-header {
    min-height: 68px;
    padding-top: 0.45rem !important;
    padding-bottom: 0.45rem !important;
    background: #fff !important;
    border-bottom: 1px solid #e8ece9;
}

.kcbf-admin-page .kcbf-admin-header .kcbf-brand-mark {
    width: min(160px, 100%);
}

.kcbf-admin-page .kcbf-admin-header .kcbf-brand-logo {
    width: 100%;
}

.kcbf-admin-page main.container-fluid {
    padding: 1.25rem 1.5rem !important;
}

.kcbf-admin-page .kcbf-admin-status {
    border-radius: 10px;
}

.kcbf-admin-shell {
    grid-template-columns: 220px minmax(0, 1fr);
    min-height: calc(100vh - 110px);
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8ece9;
    border-radius: 18px;
    box-shadow: 0 10px 34px rgba(31, 55, 42, 0.06);
}

.kcbf-admin-sidebar {
    padding: 1.25rem 0.9rem;
    background: #fbfcfb;
    border-right: 1px solid #edf0ee;
}

.kcbf-admin-sidebar-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    margin: 0 0 1rem;
    padding: 0.35rem 0.45rem 1rem;
    color: #244b38;
    text-decoration: none;
    border-bottom: 1px solid #edf0ee;
}

.kcbf-admin-sidebar-brand:hover,
.kcbf-admin-sidebar-brand:focus {
    color: #244b38;
    text-decoration: none;
}

.kcbf-admin-sidebar-brand .kcbf-admin-sidebar-logo {
    width: min(170px, 100%);
    height: auto;
}

.kcbf-admin-identity {
    overflow-wrap: anywhere;
    margin: 0.25rem 0.45rem 0.7rem;
    color: #77847b;
    font-size: 0.72rem;
}

.kcbf-admin-sidebar .kcbf-admin-nav-heading {
    margin: 0.9rem 0.5rem 0.35rem;
    color: #9aa39d;
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.kcbf-admin-sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 38px;
    margin: 0.12rem 0;
    padding: 0.55rem 0.65rem;
    color: #637168;
    background: transparent;
    border: 0;
    border-radius: 9px;
    font-size: 0.83rem;
    font-weight: 500;
    transition: background-color 140ms ease, color 140ms ease;
}

.kcbf-admin-sidebar .nav-link i {
    width: 17px;
    color: #849188;
    text-align: center;
}

.kcbf-admin-sidebar .nav-link:hover,
.kcbf-admin-sidebar .nav-link:focus-visible {
    color: #244b38;
    background: #eef6f0;
    outline: 2px solid #a9d8b7;
    outline-offset: 1px;
}

.kcbf-admin-sidebar .nav-link.active {
    color: #205638;
    background: #d8f2df;
    font-weight: 700;
}

.kcbf-admin-sidebar .nav-link.active i {
    color: #247144;
}

.kcbf-admin-content {
    padding: clamp(1rem, 2.4vw, 2rem);
    background: #fff;
}

.kcbf-admin-content h1 {
    color: #27352d;
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    font-weight: 700;
}

.kcbf-admin-content h2 {
    color: #354239;
    font-weight: 600;
}

.kcbf-admin-page .kcbf-admin-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #edf0ee;
    border-radius: 14px;
    box-shadow: 0 3px 12px rgba(31, 55, 42, 0.035);
}

.kcbf-admin-page .kcbf-admin-card .card-body {
    padding: clamp(1rem, 1.8vw, 1.4rem);
}

.kcbf-admin-page .kcbf-admin-card .form-control,
.kcbf-admin-page .kcbf-admin-card .custom-select {
    min-height: 40px;
    color: #34423a;
    background-color: #f6f7f6;
    border: 1px solid #e9edeb;
    border-radius: 8px;
}

.kcbf-admin-page .kcbf-admin-card textarea.form-control {
    min-height: auto;
}

.kcbf-admin-page .kcbf-admin-card .form-control:focus,
.kcbf-admin-page .kcbf-admin-card .custom-select:focus {
    background: #fff;
    border-color: #70bd88;
    box-shadow: 0 0 0 0.18rem rgba(56, 151, 87, 0.14);
}

.kcbf-admin-page .btn {
    border-radius: 9px;
    font-weight: 600;
}

.kcbf-admin-page .btn-primary {
    color: #fff;
    background: #3c9b5d;
    border-color: #3c9b5d;
}

.kcbf-admin-page .btn-primary:hover,
.kcbf-admin-page .btn-primary:focus {
    background: #2f804c;
    border-color: #2f804c;
}

.kcbf-admin-page .btn-outline-dark {
    color: #46534b;
    border-color: #d9e0dc;
}

.kcbf-admin-page .btn-outline-dark:hover,
.kcbf-admin-page .btn-outline-dark:focus {
    color: #244b38;
    background: #eff6f1;
    border-color: #b8d9c1;
}

.kcbf-admin-metric {
    min-height: 126px;
    background: #fbfcfb;
    border: 1px solid #edf0ee;
    border-top: 3px solid #75c98e;
    border-radius: 12px;
}

.kcbf-admin-metric strong {
    color: #284c36;
}

.kcbf-admin-metric-link:hover,
.kcbf-admin-metric-link:focus-visible {
    background: #f0f8f2;
    border-color: #a9d8b7;
    outline-color: #70bd88;
}

.kcbf-admin-page .table thead th {
    color: #69766d;
    background: #f6f8f6;
    border-top: 0;
    border-bottom: 1px solid #e8ece9;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.035em;
}

.kcbf-admin-page .table td {
    border-color: #eff2f0;
}

.kcbf-admin-table-wrap {
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
}

.kcbf-product-filter-panel {
    margin-bottom: 1rem;
    padding: 1rem;
    background: #fbfcfb;
    border: 1px solid #edf0ee;
}

.kcbf-product-filter-panel .form-group {
    margin-bottom: 0.7rem;
}

.kcbf-product-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.kcbf-product-filter-actions .btn {
    flex: 1 1 auto;
}

.kcbf-admin-products-table {
    width: 100%;
    min-width: 1050px;
    table-layout: fixed;
}

.kcbf-admin-products-table th:nth-child(1), .kcbf-admin-products-table td:nth-child(1) { width: 24%; }
.kcbf-admin-products-table th:nth-child(2), .kcbf-admin-products-table td:nth-child(2) { width: 12%; }
.kcbf-admin-products-table th:nth-child(3), .kcbf-admin-products-table td:nth-child(3) { width: 11%; }
.kcbf-admin-products-table th:nth-child(4), .kcbf-admin-products-table td:nth-child(4) { width: 14%; }
.kcbf-admin-products-table th:nth-child(5), .kcbf-admin-products-table td:nth-child(5) { width: 14%; }
.kcbf-admin-products-table th:nth-child(6), .kcbf-admin-products-table td:nth-child(6) { width: 11%; }
.kcbf-admin-products-table th:nth-child(7), .kcbf-admin-products-table td:nth-child(7) { width: 14%; }

.kcbf-admin-products-table th,
.kcbf-admin-products-table td {
    padding: 0.55rem 0.5rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.kcbf-admin-product-thumb {
    display: block;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin: 0;
    border-radius: 7px;
    object-fit: cover;
}

.kcbf-admin-product-thumb-placeholder {
    display: flex;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    color: #758078;
    background: #f2f5f2;
    border: 1px solid #e5eae6;
    font-size: 0.62rem;
}

.kcbf-admin-product-summary {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.55rem;
}

.kcbf-admin-product-copy {
    min-width: 0;
    overflow-wrap: anywhere;
}

.kcbf-admin-product-copy > strong {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.25;
}

.kcbf-admin-product-slug {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kcbf-product-cell-primary,
.kcbf-product-cell-secondary {
    display: block;
}

.kcbf-product-cell-primary {
    color: #34433a;
    font-size: 0.82rem;
}

.kcbf-product-cell-secondary {
    margin-top: 0.15rem;
    color: #758078;
    font-size: 0.72rem;
}

.kcbf-product-was-price {
    text-decoration: line-through;
}

.kcbf-product-row-actions {
    min-width: 0;
    white-space: nowrap;
}

.kcbf-product-row-actions .btn {
    margin: 0;
}

.kcbf-product-row-menu {
    display: inline-block;
    max-width: 100%;
    vertical-align: middle;
}

.kcbf-product-row-menu > summary {
    display: inline-block;
    list-style: none;
    cursor: pointer;
}

.kcbf-product-row-menu > summary::-webkit-details-marker {
    display: none;
}

.kcbf-product-row-menu-items {
    display: none;
    flex-direction: column;
    gap: 0.3rem;
    margin-top: 0.35rem;
    padding: 0.45rem;
    background: #fff;
    border: 1px solid #e5eae6;
}

.kcbf-product-row-menu[open] .kcbf-product-row-menu-items {
    display: flex;
}

.kcbf-product-row-menu-items .btn,
.kcbf-product-row-menu-items a {
    width: 100%;
    margin: 0;
    text-align: left;
    white-space: normal;
}

.kcbf-product-field-feedback {
    margin-top: 0.35rem;
    font-size: 0.82rem;
}

.kcbf-product-form-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 1.15rem;
    padding: 0 0 1rem;
    border-bottom: 1px solid #edf0ee;
}

.kcbf-product-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.kcbf-product-editor-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.8fr);
    align-items: start;
    gap: 1rem;
}

.kcbf-product-editor-main,
.kcbf-product-editor-aside {
    display: grid;
    min-width: 0;
    gap: 1rem;
}

.kcbf-product-panel {
    min-width: 0;
    padding: 1rem;
    background: #fff;
    border: 1px solid #edf0ee;
    border-radius: 12px;
}

.kcbf-product-panel h3 {
    margin: 0 0 0.9rem;
    color: #34433a;
    font-size: 0.98rem;
    font-weight: 700;
}

.kcbf-product-panel .form-group label {
    margin-bottom: 0.35rem;
    color: #59665e;
    font-size: 0.78rem;
    font-weight: 600;
}

.kcbf-product-panel .form-row {
    margin-right: -0.45rem;
    margin-left: -0.45rem;
}

.kcbf-product-panel .form-row > .form-group {
    padding-right: 0.45rem;
    padding-left: 0.45rem;
}

.kcbf-product-panel textarea.form-control {
    min-height: 82px;
}

.kcbf-product-panel:first-child textarea[name="description"] {
    min-height: 145px;
}

.kcbf-product-upload-tile {
    display: flex;
    min-height: 170px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.4rem;
    margin: 0 0 0.55rem;
    padding: 1rem;
    color: #4b6454 !important;
    text-align: center;
    background: #f5f8f5;
    border: 1px dashed #bfd2c4;
    border-radius: 10px;
    cursor: pointer;
}

.kcbf-product-upload-tile i {
    color: #469b61;
    font-size: 2rem;
}

.kcbf-product-upload-tile strong {
    font-size: 0.87rem;
}

.kcbf-product-upload-tile span {
    color: #849087;
    font-size: 0.7rem;
    font-weight: 400;
}

.kcbf-product-upload-tile:hover,
.kcbf-product-upload-tile:focus-within {
    background: #edf7ef;
    border-color: #7eb990;
}

.kcbf-product-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

.kcbf-product-photo-panel:focus-within .kcbf-product-upload-tile,
.kcbf-product-upload-tile:focus-visible {
    outline: 2px solid #70bd88;
    outline-offset: 2px;
}

.kcbf-product-photo-panel [data-product-images] {
    margin-right: -0.35rem;
    margin-left: -0.35rem;
}

.kcbf-product-photo-panel [data-product-images] > * {
    max-width: 50%;
    flex: 0 0 50%;
    padding-right: 0.35rem;
    padding-left: 0.35rem;
}

.kcbf-product-photo-panel [data-product-images] img {
    height: 90px;
    object-fit: cover;
}

@media (max-width: 767.98px) {
    .kcbf-admin-page main.container-fluid {
        padding: 0.75rem !important;
    }

    .kcbf-admin-shell {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
        border-radius: 13px;
    }

    .kcbf-admin-sidebar {
        padding: 0.8rem;
        border-right: 0;
        border-bottom: 1px solid #edf0ee;
    }

    .kcbf-admin-sidebar-brand {
        margin-bottom: 0.45rem;
        padding-bottom: 0.65rem;
    }

    .kcbf-admin-sidebar .nav {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 0.25rem;
        overflow-x: auto;
        padding-bottom: 0.25rem;
    }

    .kcbf-admin-sidebar .kcbf-admin-nav-heading {
        display: none;
    }

    .kcbf-admin-sidebar .nav-link {
        flex: 0 0 auto;
        min-height: 36px;
        margin: 0;
        padding: 0.45rem 0.6rem;
        white-space: nowrap;
    }

    .kcbf-admin-content {
        padding: 1rem;
    }

    .kcbf-product-editor-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .kcbf-product-editor-aside {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kcbf-product-photo-panel {
        grid-column: 1 / -1;
    }

    .kcbf-product-upload-tile {
        min-height: 135px;
    }

    .kcbf-product-filter-panel {
        padding: 0.75rem;
    }

    .kcbf-product-filter-panel .form-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 0.65rem;
        margin-right: 0;
        margin-left: 0;
    }

    .kcbf-product-filter-panel .form-row > .form-group {
        width: auto;
        max-width: none;
        min-width: 0;
        flex: none;
        padding-right: 0;
        padding-left: 0;
    }

    .kcbf-product-filter-panel .form-row:first-of-type > .form-group:nth-child(-n+2),
    .kcbf-product-filter-panel .form-row:first-of-type > .form-group:nth-child(5),
    .kcbf-product-filter-panel .form-row:nth-of-type(2) > .form-group:nth-child(n+4) {
        grid-column: 1 / -1;
    }

    .kcbf-product-filter-panel .form-control,
    .kcbf-product-filter-panel .custom-select {
        min-width: 0;
        font-size: 0.9rem;
    }

    .kcbf-product-filter-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kcbf-product-filter-actions .btn {
        min-height: 42px;
        padding: 0.45rem 0.55rem;
        white-space: normal;
    }

    .kcbf-admin-section[data-admin-section="products"] > [data-products-header] {
        align-items: stretch !important;
        flex-direction: column;
    }

    .kcbf-admin-section[data-admin-section="products"] > [data-products-header] [data-new-product] {
        width: 100%;
        min-height: 44px;
        margin-top: 0.6rem !important;
    }

}

@media (max-width: 575.98px) {
    .kcbf-product-form-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .kcbf-product-editor-aside {
        grid-template-columns: minmax(0, 1fr);
    }

    .kcbf-product-photo-panel {
        grid-column: auto;
    }
}

.kcbf-admin-mobile-menu,
.kcbf-admin-nav-backdrop {
    display: none;
}

@media (max-width: 767.98px) {
    .kcbf-admin-mobile-menu {
        display: inline-flex;
        min-height: 44px;
        align-items: center;
        margin: 0 0 0.65rem;
        background: #fff;
    }

    .kcbf-admin-shell {
        overflow: visible;
    }

    .kcbf-admin-sidebar {
        position: fixed;
        z-index: 1051;
        top: 0;
        bottom: 0;
        left: 0;
        width: min(84vw, 310px);
        max-width: 100%;
        padding: 1rem 0.9rem;
        overflow-x: hidden;
        overflow-y: auto;
        background: #fbfcfb;
        border-right: 1px solid #edf0ee;
        box-shadow: 0.5rem 0 2rem rgba(0, 0, 0, 0.18);
        transform: translateX(-105%);
        visibility: hidden;
        transition: transform 180ms ease, visibility 180ms ease;
    }

    .kcbf-admin-sidebar.is-open {
        transform: translateX(0);
        visibility: visible;
    }

    .kcbf-admin-sidebar .nav {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        gap: 0.15rem;
        overflow: visible;
        padding-bottom: 0;
    }

    .kcbf-admin-sidebar .kcbf-admin-nav-heading {
        display: block;
    }

    .kcbf-admin-sidebar .nav-link {
        width: 100%;
        min-height: 44px;
        flex: 0 0 auto;
        justify-content: flex-start;
        margin: 0.1rem 0;
        padding: 0.6rem 0.7rem;
        white-space: normal;
    }

    .kcbf-admin-nav-backdrop:not([hidden]) {
        position: fixed;
        z-index: 1050;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        padding: 0;
        background: rgba(23, 22, 19, 0.48);
        border: 0;
    }

    body.kcbf-admin-nav-open {
        overflow: hidden;
    }

    .kcbf-admin-content {
        padding: 0.85rem;
    }

    [data-dashboard-metrics] > div {
        width: 50%;
        max-width: 50%;
        flex: 0 0 50%;
        padding-right: 0.35rem;
        padding-left: 0.35rem;
    }

    .kcbf-admin-metric {
        min-height: 96px;
        padding: 0.7rem !important;
    }

    .kcbf-admin-metric strong {
        font-size: 1.35rem;
    }

    .kcbf-admin-metric-link > span {
        font-size: 0.72rem;
    }

    .kcbf-admin-table-wrap {
        width: 100%;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
    }

    .kcbf-admin-table {
        width: 100%;
        min-width: 0;
        border-collapse: separate;
        border-spacing: 0;
    }

    .kcbf-admin-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        clip-path: inset(50%);
    }

    .kcbf-admin-table tbody,
    .kcbf-admin-table tbody tr {
        display: block;
        width: 100%;
    }

    .kcbf-admin-table tbody tr {
        margin: 0 0 0.7rem;
        padding: 0.25rem 0.75rem;
        background: #fff;
        border: 1px solid #e8ece9;
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(31, 55, 42, 0.035);
    }

    .kcbf-admin-table tbody td {
        display: flex;
        width: 100%;
        min-width: 0;
        align-items: flex-start;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0.55rem 0 !important;
        text-align: right;
        white-space: normal;
        overflow-wrap: anywhere;
        border-top: 1px solid #f0f2f0;
    }

    .kcbf-admin-table tbody td:first-child {
        border-top: 0;
    }

    .kcbf-admin-table tbody td:not([colspan])::before {
        content: attr(data-admin-label);
        flex: 0 0 34%;
        color: #758078;
        font-size: 0.72rem;
        font-weight: 700;
        text-align: left;
    }

    .kcbf-admin-table tbody td > * {
        min-width: 0;
        max-width: 66%;
    }

    .kcbf-admin-products-table td:first-child {
        justify-content: flex-start;
        text-align: left;
    }

    .kcbf-admin-products-table td:first-child::before {
        flex-basis: 24%;
    }

    .kcbf-admin-products-table td:first-child > * {
        max-width: 74%;
    }

    .kcbf-admin-products-table .kcbf-product-row-actions {
        display: flex;
        width: 100%;
        min-width: 0;
        max-width: none;
        flex: 1 1 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 0.25rem;
    }

    .kcbf-admin-products-table .kcbf-product-row-actions > * {
        max-width: none;
        flex: 0 0 auto;
    }

    .kcbf-admin-table tbody td[colspan] {
        display: block;
        text-align: left;
    }
}

@media (max-width: 767.98px) {
    [data-admin-section="products"] .kcbf-admin-products-table {
        width: 100%;
        min-width: 0;
        table-layout: auto;
    }

    [data-admin-section="products"] .kcbf-admin-products-table tbody tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 0.85rem;
        margin-bottom: 0.8rem;
        padding: 0.55rem 0.8rem;
    }

    [data-admin-section="products"] .kcbf-admin-products-table tbody td {
        display: block;
        width: auto;
        max-width: none;
        padding: 0.5rem 0 !important;
        text-align: left;
    }

    [data-admin-section="products"] .kcbf-admin-products-table tbody td:not([colspan])::before {
        display: block;
        flex: none;
        margin: 0 0 0.18rem;
        font-size: 0.67rem;
        letter-spacing: 0.025em;
    }

    [data-admin-section="products"] .kcbf-admin-products-table tbody td > * {
        max-width: 100%;
    }

    [data-admin-section="products"] .kcbf-admin-products-table tbody td:first-child {
        grid-column: 1 / -1;
        padding-top: 0.15rem !important;
        border-top: 0;
    }

    [data-admin-section="products"] .kcbf-admin-products-table tbody td:first-child::before {
        display: none;
    }

    [data-admin-section="products"] .kcbf-admin-products-table tbody td:nth-child(6),
    [data-admin-section="products"] .kcbf-admin-products-table tbody td:nth-child(7),
    [data-admin-section="products"] .kcbf-admin-products-table tbody td[colspan] {
        grid-column: 1 / -1;
    }

    [data-admin-section="products"] .kcbf-admin-products-table tbody td:nth-child(7) {
        padding-bottom: 0.15rem !important;
    }

    [data-admin-section="products"] .kcbf-admin-products-table .kcbf-product-row-actions {
        display: flex;
        width: 100%;
        max-width: none;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 0.4rem;
    }

    [data-admin-section="products"] .kcbf-admin-products-table .kcbf-product-row-menu[open] {
        width: 100%;
        flex: 1 1 100%;
    }

    [data-admin-section="products"] .kcbf-admin-products-table .kcbf-product-row-menu-items {
        width: min(100%, 16rem);
    }
}

@media (max-width: 359.98px) {
    [data-dashboard-metrics] > div {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kcbf-admin-sidebar { transition: none; }
}


.kcbf-product-delete-dialog {
    width: min(36rem, calc(100vw - 2rem));
    max-width: none;
    max-height: calc(100vh - 2rem);
    overflow: auto;
    margin: auto;
    padding: 1.25rem;
    color: #2f2923;
    background: #fff;
    border: 1px solid #c7b98d;
    border-top: 4px solid #8c2d22;
    box-shadow: 0 1rem 3rem rgba(24, 20, 14, 0.28);
}

.kcbf-product-delete-dialog::backdrop {
    background: rgba(35, 31, 26, 0.58);
}

.kcbf-product-delete-dialog [data-product-delete-name] {
    overflow-wrap: anywhere;
}

.kcbf-product-delete-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.kcbf-product-delete-actions .btn {
    border-radius: 0;
}

@media (max-width: 575.98px) {
    .kcbf-product-delete-dialog {
        width: calc(100vw - 1.25rem);
        max-height: calc(100vh - 1.25rem);
        padding: 1rem;
    }

    .kcbf-product-delete-actions .btn {
        flex: 1 1 auto;
    }
}


/* Compact, keyboard-visible password visibility control used by all account forms. */
.kcbf-password-toggle {
    display: inline-flex;
    width: 2.75rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    padding: 0.45rem;
    color: #4f4a43;
    background: #fff;
    border: 1px solid #ced4da;
    border-left: 0;
    border-radius: 0;
    cursor: pointer;
}

.kcbf-password-toggle:hover {
    color: #26211c;
    background: #f8f7f4;
}

.kcbf-password-toggle:focus-visible {
    position: relative;
    z-index: 2;
    outline: 3px solid #987b32;
    outline-offset: 2px;
}

.kcbf-password-toggle svg {
    width: 1.2rem;
    height: 1.2rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}


/* Keep account/admin surfaces on the storefront's logo-derived palette without touching access logic. */
.kcbf-admin-page {
    color: #332c2d;
    background: #fffdfb !important;
}

.kcbf-admin-page .kcbf-admin-header {
    background: #fffdfb !important;
    border-bottom-color: #e7ded7;
}

.kcbf-admin-sidebar,
.kcbf-admin-page .kcbf-admin-sidebar {
    background: #f8f4ef;
    border-color: #e7ded7;
}

.kcbf-admin-sidebar-brand,
.kcbf-admin-sidebar-brand:hover,
.kcbf-admin-sidebar-brand:focus {
    color: #73143a;
}

.kcbf-admin-sidebar .nav-link:hover,
.kcbf-admin-sidebar .nav-link:focus-visible {
    color: #73143a;
    background: #f6e9ed;
    outline-color: #c45116;
}

.kcbf-admin-sidebar .nav-link.active,
.kcbf-admin-sidebar .nav-link.active i {
    color: #73143a;
    background: #f4e7eb;
}

.kcbf-admin-content h1,
.kcbf-admin-content h2,
.kcbf-admin-content h3,
.kcbf-admin-metric strong {
    color: #73143a;
}

.kcbf-admin-page .kcbf-admin-card,
.kcbf-product-panel {
    border-color: #e7ded7;
}

.kcbf-admin-page .kcbf-admin-card .form-control,
.kcbf-admin-page .kcbf-admin-card .custom-select {
    color: #332c2d;
    background-color: #fffdfb;
    border-color: #e7ded7;
}

.kcbf-admin-page .kcbf-admin-card .form-control:focus,
.kcbf-admin-page .kcbf-admin-card .custom-select:focus {
    border-color: #73143a;
    box-shadow: 0 0 0 0.18rem rgba(115, 20, 58, 0.18);
}

.kcbf-admin-page .btn-primary {
    color: #fff;
    background: #73143a;
    border-color: #73143a;
}

.kcbf-admin-page .btn-primary:hover,
.kcbf-admin-page .btn-primary:focus {
    color: #fff;
    background: #59102d;
    border-color: #59102d;
}

.kcbf-admin-page .btn-outline-dark {
    color: #73143a;
    border-color: #d7c4ca;
}

.kcbf-admin-page .btn-outline-dark:hover,
.kcbf-admin-page .btn-outline-dark:focus {
    color: #59102d;
    background: #f8f4ef;
    border-color: #c7a8b3;
}

.kcbf-admin-metric {
    background: #fffdfb;
    border-color: #e7ded7;
    border-top-color: #c45116;
}

.kcbf-admin-metric-link:hover,
.kcbf-admin-metric-link:focus-visible {
    background: #fbf4f1;
    border-color: #d8b6a6;
    outline-color: #c45116;
}

.kcbf-product-upload-tile {
    color: #73143a !important;
    background: #fbf6f2;
    border-color: #d9c3b6;
}

.kcbf-product-upload-tile i {
    color: #c45116;
}

.kcbf-product-upload-tile:hover,
.kcbf-product-upload-tile:focus-within {
    background: #f8f0eb;
    border-color: #c45116;
}

.kcbf-product-photo-panel:focus-within .kcbf-product-upload-tile,
.kcbf-product-upload-tile:focus-visible {
    outline-color: #c45116;
}
