/* /Components/Layout/CambioPasswordDialog.razor.rz.scp.css */
/* Finestra cambio password: stesso stile delle card e dei pulsanti dell'applicazione */

.cambio-pwd-root[b-47dudscqk3]  .e-dialog {
    border-radius: 24px;
    overflow: hidden;
    max-width: 92vw;
    font-family: 'Outfit', sans-serif;
    border: 1px solid rgba(70, 92, 57, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.cambio-pwd-root[b-47dudscqk3]  .e-dlg-header {
    color: #465C39;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1.25rem 1.5rem;
}

.cambio-pwd-root[b-47dudscqk3]  .e-dlg-content {
    padding: 0;
}

.cambio-pwd-root[b-47dudscqk3]  .e-footer-content {
    padding: 0;
    border-top: 1px solid rgba(70, 92, 57, 0.1);
}

.cambio-pwd-body[b-47dudscqk3] {
    padding: 0.5rem 1.5rem 1.5rem;
    font-family: 'Outfit', sans-serif;
    color: #333333;
}

.cambio-pwd-label[b-47dudscqk3] {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #686868;
    margin: 1rem 0 0.4rem;
}

.cambio-pwd-input[b-47dudscqk3] {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(70, 92, 57, 0.15);
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    color: #333333;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.cambio-pwd-input:focus[b-47dudscqk3] {
    outline: none;
    border-color: #465C39;
    box-shadow: 0 0 0 2px rgba(70, 92, 57, 0.2);
}

.cambio-pwd-hint[b-47dudscqk3] {
    font-size: 0.8rem;
    color: #686868;
    margin: 0.75rem 0 0;
}

.cambio-pwd-ok[b-47dudscqk3],
.cambio-pwd-errore[b-47dudscqk3] {
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.cambio-pwd-ok[b-47dudscqk3] {
    background: rgba(70, 92, 57, 0.08);
    color: #465C39;
    border: 1px solid rgba(70, 92, 57, 0.2);
}

.cambio-pwd-errore[b-47dudscqk3] {
    background: #fdecec;
    color: #b42318;
    border: 1px solid #f5c2c0;
}

/* Footer: il pulsante a destra, con gli stessi angoli arrotondati degli altri pulsanti */
.cambio-pwd-footer[b-47dudscqk3] {
    display: flex;
    justify-content: flex-end;
    padding: 12px 16px;
    font-family: 'Outfit', sans-serif;
}

.cambio-pwd-salva[b-47dudscqk3] {
    margin: 0;
    min-width: 160px;
    padding: 0.95rem 2rem;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #465C39, #A8BB82);
    color: white;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

.cambio-pwd-salva:hover[b-47dudscqk3] {
    opacity: 0.9;
}

.cambio-pwd-salva:disabled[b-47dudscqk3] {
    opacity: 0.6;
    cursor: default;
}

/* Telefono: finestra a piena larghezza con gli stessi margini delle pagine */
@media (max-width: 480px) {
    .cambio-pwd-body[b-47dudscqk3] {
        padding: 0.5rem 1rem 1rem;
    }

    .cambio-pwd-salva[b-47dudscqk3] {
        width: 100%;
        min-width: 0;
    }
}

/* Campi password con occhiolino per mostrare o nascondere il testo */
.cambio-pwd-campo[b-47dudscqk3] {
    position: relative;
}

.cambio-pwd-campo .cambio-pwd-input[b-47dudscqk3] {
    padding-right: 42px;
}

.cambio-pwd-occhio[b-47dudscqk3] {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px;
    color: #686868;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.cambio-pwd-occhio:hover[b-47dudscqk3] {
    color: #465C39;
}
/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-6st3s4mg1n] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-6st3s4mg1n] {
    flex: 1;
}

.sidebar[b-6st3s4mg1n] {
    background-image: linear-gradient(180deg, #465C39 0%, #2e3d25 100%);
}

.top-row[b-6st3s4mg1n] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-6st3s4mg1n]  a, .top-row[b-6st3s4mg1n]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-6st3s4mg1n]  a:hover, .top-row[b-6st3s4mg1n]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-6st3s4mg1n]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-6st3s4mg1n] {
        justify-content: space-between;
    }

    .top-row[b-6st3s4mg1n]  a, .top-row[b-6st3s4mg1n]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-6st3s4mg1n] {
        flex-direction: row;
    }

    .sidebar[b-6st3s4mg1n] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-6st3s4mg1n] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-6st3s4mg1n]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-6st3s4mg1n], article[b-6st3s4mg1n] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-6st3s4mg1n] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-6st3s4mg1n] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-w9uspx7uvu] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
}

.navbar-toggler:checked[b-w9uspx7uvu] {
    background-color: rgba(255, 255, 255, 0.5);
}

.top-row[b-w9uspx7uvu] {
    min-height: 3.5rem;
    background-color: rgba(0, 0, 0, 0.15);
}

.navbar-brand[b-w9uspx7uvu] {
    font-size: 1.1rem;
}

.bi[b-w9uspx7uvu] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu[b-w9uspx7uvu] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu[b-w9uspx7uvu] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-w9uspx7uvu] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.nav-item[b-w9uspx7uvu] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-w9uspx7uvu] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-w9uspx7uvu] {
        padding-bottom: 1rem;
    }

    .nav-item[b-w9uspx7uvu]  .nav-link {
        color: rgba(255, 255, 255, 0.75);
        background: none;
        border: none;
        border-radius: 8px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
        width: 100%;
        transition: all 0.25s ease;
    }

.nav-item[b-w9uspx7uvu]  a.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    font-weight: 600;
}

.nav-item[b-w9uspx7uvu]  .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: white;
}

.nav-scrollable[b-w9uspx7uvu] {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable[b-w9uspx7uvu] {
    display: block;
}

@media (min-width: 641px) {
    .navbar-toggler[b-w9uspx7uvu] {
        display: none;
    }

    .nav-scrollable[b-w9uspx7uvu] {
        /* Never collapse the sidebar for wide screens */
        display: block;

        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-zfi7hfcy75],
.components-reconnect-repeated-attempt-visible[b-zfi7hfcy75],
.components-reconnect-failed-visible[b-zfi7hfcy75],
.components-pause-visible[b-zfi7hfcy75],
.components-resume-failed-visible[b-zfi7hfcy75],
.components-rejoining-animation[b-zfi7hfcy75] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-zfi7hfcy75],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-zfi7hfcy75],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-zfi7hfcy75],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-zfi7hfcy75],
#components-reconnect-modal.components-reconnect-retrying[b-zfi7hfcy75],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-zfi7hfcy75],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-zfi7hfcy75],
#components-reconnect-modal.components-reconnect-failed[b-zfi7hfcy75],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-zfi7hfcy75] {
    display: block;
}


#components-reconnect-modal[b-zfi7hfcy75] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-zfi7hfcy75 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-zfi7hfcy75 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-zfi7hfcy75 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-zfi7hfcy75]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-zfi7hfcy75 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-zfi7hfcy75 {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-zfi7hfcy75 {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-zfi7hfcy75 {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-zfi7hfcy75] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-zfi7hfcy75] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-zfi7hfcy75] {
    border: 0;
    background-color: #465C39;
    color: white;
    padding: 6px 24px;
    border-radius: 8px;
    transition: all 0.25s ease;
}

    #components-reconnect-modal button:hover[b-zfi7hfcy75] {
        background-color: #A8BB82;
    }

    #components-reconnect-modal button:active[b-zfi7hfcy75] {
        background-color: #465C39;
    }

.components-rejoining-animation[b-zfi7hfcy75] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-zfi7hfcy75] {
        position: absolute;
        border: 3px solid #465C39;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-zfi7hfcy75 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-zfi7hfcy75] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-zfi7hfcy75 {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* /Components/Layout/TopMenuLayout.razor.rz.scp.css */
.premium-app-wrapper[b-90o8y84rdt] {
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    display: flex;
    flex-direction: column;
    font-family: 'Outfit', sans-serif;
    background-color: #f4f4f8;
    color: #333333;
    overflow-x: hidden;
}

/* Header & Glassmorphism Top Nav */
.premium-header[b-90o8y84rdt] {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(70, 92, 57, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header-container[b-90o8y84rdt] {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-area[b-90o8y84rdt] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo-area[b-90o8y84rdt] {
    background: #465C39;
    padding: 0.35rem 0.85rem;
    border-radius: 10px;
}

.logo-img[b-90o8y84rdt] {
    height: 32px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* User Pill with inline SVG */
.user-pill[b-90o8y84rdt] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    background: rgba(70, 92, 57, 0.05);
    border: 1px solid rgba(70, 92, 57, 0.15);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    color: #465C39;
    font-weight: 500;
    margin-left: 0.75rem;
}

.user-pill-svg[b-90o8y84rdt] {
    color: #465C39;
}

/* Top Nav Menu */
.top-nav-menu[b-90o8y84rdt] {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-actions-group[b-90o8y84rdt] {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 1.5rem;
    padding-left: 1.5rem;
    border-left: 1px solid rgba(70, 92, 57, 0.15);
}

.nav-link-custom[b-90o8y84rdt] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    color: #686868;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-label[b-90o8y84rdt] {
    text-transform: capitalize;
}

.nav-icon-svg[b-90o8y84rdt] {
    color: #8c8c8c;
    transition: all 0.3s ease;
}

.nav-link-custom:hover[b-90o8y84rdt] {
    color: #465C39;
    background: rgba(70, 92, 57, 0.06);
}

.nav-link-custom:hover .nav-icon-svg[b-90o8y84rdt] {
    color: #465C39;
    transform: scale(1.1);
}

.nav-link-custom.active[b-90o8y84rdt] {
    color: #465C39;
    background: rgba(70, 92, 57, 0.12);
    font-weight: 600;
}

.nav-link-custom.active .nav-icon-svg[b-90o8y84rdt] {
    color: #465C39;
}

.nav-link-custom.active[b-90o8y84rdt]::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 20%;
    right: 20%;
    height: 3px;
    background: #465C39;
    border-radius: 3px 3px 0 0;
}

/* Dropdown Menu */
.nav-dropdown-wrapper[b-90o8y84rdt] {
    position: relative;
    display: inline-block;
}

.nav-dropdown-menu[b-90o8y84rdt] {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(70, 92, 57, 0.15);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(12px);
    min-width: 200px;
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-dropdown-wrapper:hover .nav-dropdown-menu[b-90o8y84rdt],
.nav-dropdown-wrapper:focus-within .nav-dropdown-menu[b-90o8y84rdt] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-item[b-90o8y84rdt] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    color: #686868;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 8px;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-dropdown-item:hover[b-90o8y84rdt] {
    color: #465C39;
    background: rgba(70, 92, 57, 0.06);
}

.nav-dropdown-item .nav-icon-svg[b-90o8y84rdt] {
    color: inherit;
    transition: transform 0.2s;
}

.nav-dropdown-item:hover .nav-icon-svg[b-90o8y84rdt] {
    transform: scale(1.1);
}

button.nav-link-custom[b-90o8y84rdt] {
    background: transparent;
    font-family: inherit;
    cursor: pointer;
    border: none;
}

.user-logout-pill[b-90o8y84rdt] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(70, 92, 57, 0.05);
    border: 1px solid rgba(70, 92, 57, 0.15) !important;
    padding: 0;
    border-radius: 50px;
    color: #465C39 !important;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0;
    width: 130px;
    height: 36px;
    box-sizing: border-box;
}

.user-logout-pill .nav-icon-svg[b-90o8y84rdt] {
    color: #465C39;
}

.user-logout-pill .logout-icon-small[b-90o8y84rdt] {
    color: #686868;
    opacity: 0.6;
    transition: all 0.3s ease;
    margin-left: 0.25rem;
}

.user-logout-pill:hover[b-90o8y84rdt] {
    background: rgba(229, 0, 0, 0.08);
    border-color: rgba(229, 0, 0, 0.3) !important;
    color: #e50000 !important;
}

.user-logout-pill:hover .nav-icon-svg[b-90o8y84rdt] {
    color: #e50000;
}

.user-logout-pill:hover .logout-icon-small[b-90o8y84rdt] {
    color: #e50000;
    opacity: 1;
    transform: translateX(2px);
}

/* Main Content */
.premium-main[b-90o8y84rdt] {
    flex: 1;
    padding: 2.5rem 0;
    width: 100%;
    overflow-x: hidden;
}

.content-container[b-90o8y84rdt] {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Footer */
.premium-footer[b-90o8y84rdt] {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid rgba(70, 92, 57, 0.15);
    color: #686868;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-content[b-90o8y84rdt] {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.footer-mission-card[b-90o8y84rdt] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    max-width: 750px;
    margin: 0.5rem 0 1.5rem;
    padding: 1rem 1.5rem;
    background: rgba(70, 92, 57, 0.03);
    border-radius: 16px;
    border: 1px dashed rgba(70, 92, 57, 0.15);
}

.footer-mission[b-90o8y84rdt] {
    max-width: 650px;
    margin: 0;
    font-style: italic;
    color: #465C39;
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
}

.quote-icon[b-90o8y84rdt] {
    font-size: 2.2rem;
    color: rgba(70, 92, 57, 0.2);
    font-family: serif;
    line-height: 0;
}

.quote-icon.right[b-90o8y84rdt] {
    transform: translateY(0.5rem);
}

.footer-contact[b-90o8y84rdt] {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-bottom: 0.5rem;
}

.contact-chip[b-90o8y84rdt] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 1.1rem;
    color: #465C39 !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: opacity 0.2s;
    border-right: 1px solid rgba(70, 92, 57, 0.2);
}

.contact-chip:first-child[b-90o8y84rdt] {
    padding-left: 0;
}

.contact-chip:last-child[b-90o8y84rdt] {
    border-right: none;
}

.contact-chip:hover[b-90o8y84rdt] {
    opacity: 0.65;
    text-decoration: none !important;
}

.contact-chip.company[b-90o8y84rdt] {
    font-weight: 700;
    color: #465C39 !important;
}

.contact-chip.whatsapp[b-90o8y84rdt] {
    color: #25d366 !important;
}

.contact-chip.whatsapp:hover[b-90o8y84rdt] {
    opacity: 0.75;
}

.contact-chip svg[b-90o8y84rdt] {
    flex-shrink: 0;
    opacity: 0.7;
}

.footer-legal[b-90o8y84rdt] {
    border-top: 1px solid rgba(70, 92, 57, 0.1);
    padding-top: 1.5rem;
    font-size: 0.8rem;
}
.footer-legal p[b-90o8y84rdt] { margin: 0; }

/* Blazor Error UI overrides */
#blazor-error-ui[b-90o8y84rdt] {
    background: #e50000;
    color: white;
    bottom: 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.8rem 1.5rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-top: 1px solid #cc0000;
    text-align: center;
    font-weight: 500;
}

#blazor-error-ui .reload[b-90o8y84rdt] {
    color: #fff;
    margin-left: 1rem;
    text-decoration: underline;
    font-weight: 600;
}

#blazor-error-ui .dismiss[b-90o8y84rdt] {
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 0.8rem;
    font-weight: bold;
}

/* Responsive constraints */
@media (max-width: 992px) {
    .header-container[b-90o8y84rdt] {
        padding: 0 1rem;
        height: auto;
        flex-direction: column;
        padding-top: 0.75rem;
        padding-bottom: 0.5rem;
        gap: 0.5rem;
    }
    
    .top-nav-menu[b-90o8y84rdt] {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .nav-actions-group[b-90o8y84rdt] {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
    }
    
    .logout-link[b-90o8y84rdt] {
        margin-left: 0;
    }
    
    .content-container[b-90o8y84rdt] {
        padding: 0 1rem;
    }

    .premium-main[b-90o8y84rdt] {
        padding: 1.5rem 0;
    }
}

@media (max-width: 640px) {
    .header-container[b-90o8y84rdt] {
        padding: 0 0.75rem;
        padding-top: 0.6rem;
        padding-bottom: 0.4rem;
    }

    .top-nav-menu[b-90o8y84rdt] {
        gap: 0.25rem;
    }

    .nav-link-custom[b-90o8y84rdt] {
        padding: 0.5rem 0.7rem;
        font-size: 0.85rem;
        gap: 0.3rem;
    }

    .nav-label[b-90o8y84rdt] {
        font-size: 0.82rem;
    }

    .user-logout-pill[b-90o8y84rdt] {
        width: auto;
        min-width: unset;
        padding: 0 0.6rem;
    }

    .content-container[b-90o8y84rdt] {
        padding: 0 0.75rem;
    }

    .premium-main[b-90o8y84rdt] {
        padding: 1rem 0;
    }

    .premium-footer[b-90o8y84rdt] {
        padding: 1.25rem 1rem;
    }

    .footer-mission-card[b-90o8y84rdt] {
        padding: 0.75rem 1rem;
        gap: 0.25rem;
    }

    .quote-icon[b-90o8y84rdt] {
        font-size: 1.6rem;
    }

    .footer-contact[b-90o8y84rdt] {
        flex-direction: column;
        gap: 0.25rem;
        align-items: center;
    }

    .contact-chip[b-90o8y84rdt] {
        border-right: none;
        border-bottom: 1px solid rgba(70, 92, 57, 0.1);
        padding: 0.25rem 0.5rem;
    }

    .contact-chip:last-child[b-90o8y84rdt] {
        border-bottom: none;
    }
}

/* Nome utente lungo: troncato con i puntini, il pulsante resta nella sua larghezza */
.user-logout-pill .user-name-ellipsis[b-90o8y84rdt] {
    display: inline-block;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

.user-logout-pill[b-90o8y84rdt] {
    max-width: 100%;
    min-width: 0;
}

@media (max-width: 480px) {
    .user-logout-pill .user-name-ellipsis[b-90o8y84rdt] {
        max-width: 90px;
    }
}
/* /Components/Pages/GestioneAgenti.razor.rz.scp.css */
.agents-dashboard[b-v7syfst7rp] {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    animation: fadeIn-b-v7syfst7rp 0.4s ease-out;
}

@keyframes fadeIn-b-v7syfst7rp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Header & Top Actions */

.title-wrapper[b-v7syfst7rp] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-icon[b-v7syfst7rp] {
    font-size: 2.5rem;
    line-height: 1;
}

.btn-icon[b-v7syfst7rp] {
    font-size: 1.1rem;
}

/* Stats Cards */
.stats-grid[b-v7syfst7rp] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.stat-card[b-v7syfst7rp] {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(70, 92, 57, 0.1);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:hover[b-v7syfst7rp] {
    transform: translateY(-3px);
    border-color: rgba(70, 92, 57, 0.25);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.stat-icon-wrapper[b-v7syfst7rp] {
    width: 54px;
    height: 54px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon-wrapper.blue[b-v7syfst7rp] {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.stat-icon-wrapper.emerald[b-v7syfst7rp] {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.stat-icon-wrapper.purple[b-v7syfst7rp] {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.25);
}

.stat-details[b-v7syfst7rp] {
    display: flex;
    flex-direction: column;
}

.stat-label[b-v7syfst7rp] {
    font-size: 0.85rem;
    color: #686868;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.stat-value[b-v7syfst7rp] {
    font-size: 1.75rem;
    font-weight: 800;
    color: #465C39;
    line-height: 1.2;
}

/* Feedback Banner */
.feedback-banner[b-v7syfst7rp] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #34d399;
    animation: slideDown-b-v7syfst7rp 0.3s ease-out;
}

.feedback-content[b-v7syfst7rp] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feedback-icon[b-v7syfst7rp] {
    background: #10b981;
    color: #0f172a;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
}

@keyframes slideDown-b-v7syfst7rp {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-feedback[b-v7syfst7rp] {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.close-feedback:hover[b-v7syfst7rp] {
    opacity: 1;
}

/* Grid Container */
.grid-container[b-v7syfst7rp] {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(70, 92, 57, 0.1);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 1.25rem;
}

.grid-header-bar[b-v7syfst7rp] {
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(70, 92, 57, 0.1);
}

.grid-title[b-v7syfst7rp] {
    font-size: 1.25rem;
    font-weight: 700;
    color: #465C39;
    margin: 0;
}

.grid-subtitle[b-v7syfst7rp] {
    font-size: 0.85rem;
    color: #686868;
    margin-top: 0.2rem;
    display: block;
}

/* User Cell Custom View */
.user-cell[b-v7syfst7rp] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar[b-v7syfst7rp] {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #465C39, #A8BB82);
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 1px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.user-code[b-v7syfst7rp] {
    font-weight: 700;
    color: #333333;
}

/* Roles (Standard text format, no badges) */
.role-badge[b-v7syfst7rp] {
    font-weight: 600;
    font-size: 0.95rem;
    color: #333333;
}

.role-director[b-v7syfst7rp], .role-manager[b-v7syfst7rp], .role-kam[b-v7syfst7rp], .role-mono[b-v7syfst7rp], .role-pluri[b-v7syfst7rp] {
    background: transparent;
    border: none;
    padding: 0;
}

/* Syncfusion Grid customization */
.grid-container[b-v7syfst7rp]  .e-grid {
    border: none !important;
    background: transparent !important;
    font-family: 'Outfit', sans-serif !important;
}

.grid-container[b-v7syfst7rp]  .e-grid .e-gridheader {
    background: rgba(244, 244, 248, 0.8) !important;
    border-bottom: 1px solid rgba(70, 92, 57, 0.1) !important;
}

.grid-container[b-v7syfst7rp]  .e-grid .e-headercell {
    background: transparent !important;
    color: #465C39 !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.grid-container[b-v7syfst7rp]  .e-grid .e-rowcell {
    color: #333333 !important;
    border-bottom: 1px solid rgba(70, 92, 57, 0.05) !important;
    padding-top: 0.85rem !important;
    padding-bottom: 0.85rem !important;
    font-size: 0.95rem !important;
}

.grid-container[b-v7syfst7rp]  .e-grid .e-altrow {
    background: rgba(70, 92, 57, 0.02) !important;
}

.grid-container[b-v7syfst7rp]  .e-grid .e-row {
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.grid-container[b-v7syfst7rp]  .e-grid .e-row:hover .e-rowcell {
    background: rgba(70, 92, 57, 0.05) !important;
    color: #465C39 !important;
}

.grid-container[b-v7syfst7rp]  .e-grid .e-gridpager {
    background: transparent !important;
    border-top: 1px solid rgba(70, 92, 57, 0.1) !important;
    padding: 1rem 0.5rem !important;
}

.grid-container[b-v7syfst7rp]  .e-toolbar {
    background: transparent !important;
    border-bottom: 1px solid rgba(70, 92, 57, 0.1) !important;
}

.grid-container[b-v7syfst7rp]  .e-toolbar .e-input-group {
    background: rgba(255, 255, 255, 0.6) !important;
    border-color: rgba(70, 92, 57, 0.15) !important;
    border-radius: 8px !important;
}

.grid-container[b-v7syfst7rp]  .e-toolbar .e-input-group input {
    color: #333333 !important;
}

/* Premium Form Container */
.premium-form-container[b-v7syfst7rp] {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(70, 92, 57, 0.1);
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-section[b-v7syfst7rp] {
    background: rgba(244, 244, 248, 0.8);
    border: 1px solid rgba(70, 92, 57, 0.08);
    border-radius: 16px;
    padding: 1.75rem;
    margin-bottom: 1.75rem;
    transition: border-color 0.3s ease;
}

.form-section:hover[b-v7syfst7rp] {
    border-color: rgba(70, 92, 57, 0.2);
}

.section-title[b-v7syfst7rp] {
    font-size: 1.2rem;
    font-weight: 700;
    color: #465C39;
    margin-top: 0;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(70, 92, 57, 0.1);
    padding-bottom: 0.75rem;
}

.section-title span[b-v7syfst7rp] {
    font-size: 1.35rem;
}

.form-grid-3[b-v7syfst7rp] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.form-group[b-v7syfst7rp] {
    width: 100%;
    position: relative;
}

.validation-error[b-v7syfst7rp] {
    color: #f87171;
    font-size: 0.8rem;
    margin-top: 0.35rem;
    display: block;
    font-weight: 500;
    animation: fadeIn-b-v7syfst7rp 0.2s ease;
}

/* Syncfusion Form elements custom glassmorphic styling */
.premium-form-container[b-v7syfst7rp]  .e-input-group,
.premium-form-container[b-v7syfst7rp]  .e-float-input {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(70, 92, 57, 0.15) !important;
    border-radius: 10px !important;
    padding: 0.25rem 0.5rem !important;
    transition: all 0.2s ease !important;
}

.premium-form-container[b-v7syfst7rp]  .e-input-group:focus-within,
.premium-form-container[b-v7syfst7rp]  .e-float-input:focus-within {
    border-color: #465C39 !important;
    box-shadow: 0 0 0 2px rgba(70, 92, 57, 0.2) !important;
    background: rgba(255, 255, 255, 1) !important;
}

.premium-form-container[b-v7syfst7rp]  .e-input-group.e-disabled,
.premium-form-container[b-v7syfst7rp]  .e-float-input.e-disabled {
    background: rgba(70, 92, 57, 0.05) !important;
    border-color: rgba(70, 92, 57, 0.1) !important;
}

.premium-form-container[b-v7syfst7rp]  .e-input-group.e-disabled input,
.premium-form-container[b-v7syfst7rp]  .e-float-input.e-disabled input {
    color: #686868 !important;
    font-style: italic;
}

.premium-form-container[b-v7syfst7rp]  .e-input-group input,
.premium-form-container[b-v7syfst7rp]  .e-float-input input {
    color: #333333 !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.95rem !important;
}

.premium-form-container[b-v7syfst7rp]  .e-float-text {
    color: #686868 !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 500 !important;
}

.premium-form-container[b-v7syfst7rp]  .e-float-input.e-control-wrapper.e-input-focus .e-float-text,
.premium-form-container[b-v7syfst7rp]  .e-float-input.e-control-wrapper.e-input-group.e-input-focus .e-float-text {
    color: #465C39 !important;
    font-weight: 700 !important;
}

/* Form Actions */
.form-actions[b-v7syfst7rp] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(70, 92, 57, 0.1);
}

.btn-premium-cancel[b-v7syfst7rp] {
    background: rgba(70, 92, 57, 0.05);
    color: #686868;
    border: 1px solid rgba(70, 92, 57, 0.15);
    padding: 0.8rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-premium-cancel:hover[b-v7syfst7rp] {
    background: rgba(70, 92, 57, 0.1);
    color: #333333;
    border-color: rgba(70, 92, 57, 0.25);
}

.btn-premium-submit[b-v7syfst7rp] {
    background: linear-gradient(135deg, #465C39, #A8BB82);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(70, 92, 57, 0.25);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-premium-submit:hover[b-v7syfst7rp] {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(70, 92, 57, 0.4);
    background: linear-gradient(135deg, #A8BB82, #465C39);
}

@media (max-width: 992px) {
    .form-grid-3[b-v7syfst7rp] {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .premium-form-container[b-v7syfst7rp] {
        padding: 1.5rem;
    }

    .form-section[b-v7syfst7rp] {
        padding: 1.25rem;
    }

    .form-actions[b-v7syfst7rp] {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-premium-cancel[b-v7syfst7rp], .btn-premium-submit[b-v7syfst7rp] {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .premium-form-container[b-v7syfst7rp] {
        padding: 1rem;
    }

    .form-section[b-v7syfst7rp] {
        padding: 1rem;
    }

    .stats-grid[b-v7syfst7rp] {
        grid-template-columns: 1fr;
    }

    .stat-card[b-v7syfst7rp] {
        padding: 1.25rem;
    }
}



[b-v7syfst7rp] .hide-native-pager .e-gridpager { display: none !important; }


.page-btn[b-v7syfst7rp] {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(70, 92, 57, 0.05);
    border: 1px solid rgba(70, 92, 57, 0.1);
    color: #465C39;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    padding: 0;
}
.page-btn:hover:not(:disabled)[b-v7syfst7rp] {
    background: rgba(70, 92, 57, 0.1);
    border-color: #465C39;
    color: #465C39;
    transform: scale(1.1);
}
.page-btn:disabled[b-v7syfst7rp] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* /Components/Pages/GestioneClienti.razor.rz.scp.css */
.clients-dashboard[b-9ft28opb8t] {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    animation: fadeIn-b-9ft28opb8t 0.4s ease-out;
}

@keyframes fadeIn-b-9ft28opb8t {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom premium buttons */
.btn-premium-action[b-9ft28opb8t] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #465C39, #A8BB82);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 15px rgba(70, 92, 57, 0.25);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

    .btn-premium-action:hover[b-9ft28opb8t] {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(70, 92, 57, 0.4);
        background: linear-gradient(135deg, #A8BB82, #465C39);
    }

.btn-premium-secondary[b-9ft28opb8t] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(70, 92, 57, 0.05);
    color: #465C39;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: 1px solid rgba(70, 92, 57, 0.15);
    transition: all 0.25s ease;
}

    .btn-premium-secondary:hover[b-9ft28opb8t] {
        background: rgba(70, 92, 57, 0.1);
        color: #333333;
        border-color: rgba(70, 92, 57, 0.3);
        transform: translateY(-2px);
    }

.btn-icon[b-9ft28opb8t] {
    font-size: 1.1rem;
}

/* Feedback Banner */
.feedback-banner[b-9ft28opb8t] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    animation: slideDown-b-9ft28opb8t 0.3s ease-out;
}

@keyframes slideDown-b-9ft28opb8t {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-feedback[b-9ft28opb8t] {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

    .close-feedback:hover[b-9ft28opb8t] {
        opacity: 1;
    }

/* Grid Container */
.grid-container[b-9ft28opb8t] {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(70, 92, 57, 0.1);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 1rem;
}

    /* Syncfusion Grid custom theme improvements for dark dashboard */
    .grid-container[b-9ft28opb8t]  .e-grid {
        border: none !important;
        background: transparent !important;
        font-family: 'Outfit', sans-serif !important;
    }

        .grid-container[b-9ft28opb8t]  .e-grid .e-gridheader {
            background: rgba(244, 244, 248, 0.8) !important;
            border-bottom: 1px solid rgba(70, 92, 57, 0.1) !important;
        }

        .grid-container[b-9ft28opb8t]  .e-grid .e-headercell {
            background: transparent !important;
            color: #465C39 !important;
            font-weight: 600 !important;
            font-size: 0.85rem !important;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            padding-top: 1rem !important;
            padding-bottom: 1rem !important;
        }

        .grid-container[b-9ft28opb8t]  .e-grid .e-rowcell {
            color: #333333 !important;
            border-bottom: 1px solid rgba(70, 92, 57, 0.05) !important;
            padding-top: 1rem !important;
            padding-bottom: 1rem !important;
            font-size: 0.95rem !important;
        }

        .grid-container[b-9ft28opb8t]  .e-grid .e-altrow {
            background: rgba(70, 92, 57, 0.02) !important;
        }

        .grid-container[b-9ft28opb8t]  .e-grid .e-row:hover .e-rowcell {
            background: rgba(70, 92, 57, 0.05) !important;
        }

        .grid-container[b-9ft28opb8t]  .e-grid .e-gridpager {
            background: transparent !important;
            border-top: 1px solid rgba(70, 92, 57, 0.1) !important;
            padding: 1rem 0.5rem !important;
        }

/* Premium Form Container */
.premium-form-container[b-9ft28opb8t] {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(70, 92, 57, 0.1);
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-section[b-9ft28opb8t] {
    background: rgba(244, 244, 248, 0.8);
    border: 1px solid rgba(70, 92, 57, 0.08);
    border-radius: 16px;
    padding: 1.75rem;
    margin-bottom: 1.75rem;
    transition: border-color 0.3s ease;
}

    .form-section:hover[b-9ft28opb8t] {
        border-color: rgba(70, 92, 57, 0.2);
    }

.section-title[b-9ft28opb8t] {
    font-size: 1.2rem;
    font-weight: 700;
    color: #465C39;
    margin-top: 0;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(70, 92, 57, 0.1);
    padding-bottom: 0.75rem;
}

    .section-title span[b-9ft28opb8t] {
        font-size: 1.35rem;
    }

/* Responsive Grid Form Arrangements */
.form-grid-1[b-9ft28opb8t] {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.form-grid-2[b-9ft28opb8t] {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.form-grid-3[b-9ft28opb8t] {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.form-group[b-9ft28opb8t] {
    width: 100%;
}

/* Syncfusion input component premium integration */
.premium-form-container[b-9ft28opb8t]  .e-input-group,
.premium-form-container[b-9ft28opb8t]  .e-float-input {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(70, 92, 57, 0.15) !important;
    border-radius: 10px !important;
    padding: 0.25rem 0.5rem !important;
    transition: all 0.2s ease !important;
}

    .premium-form-container[b-9ft28opb8t]  .e-input-group:focus-within,
    .premium-form-container[b-9ft28opb8t]  .e-float-input:focus-within {
        border-color: #465C39 !important;
        box-shadow: 0 0 0 2px rgba(70, 92, 57, 0.2) !important;
        background: rgba(255, 255, 255, 1) !important;
    }

    .premium-form-container[b-9ft28opb8t]  .e-input-group input,
    .premium-form-container[b-9ft28opb8t]  .e-float-input input,
    .premium-form-container[b-9ft28opb8t]  .e-float-input textarea {
        color: #333333 !important;
        font-family: 'Outfit', sans-serif !important;
        font-size: 0.95rem !important;
    }

.premium-form-container[b-9ft28opb8t]  .e-float-text {
    color: #686868 !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 500 !important;
}

.premium-form-container[b-9ft28opb8t]  .e-float-input.e-control-wrapper.e-input-focus .e-float-text,
.premium-form-container[b-9ft28opb8t]  .e-float-input.e-control-wrapper.e-input-group.e-input-focus .e-float-text {
    color: #465C39 !important;
    font-weight: 700 !important;
}

/* Collapsible Section (Menu a Scomparsa) */
.collapsible-section[b-9ft28opb8t] {
    border-left: 3px solid #38bdf8;
    background: rgba(56, 189, 248, 0.02);
}

.switch-wrapper[b-9ft28opb8t] {
    padding: 0.25rem 0;
}

    .switch-wrapper[b-9ft28opb8t]  .e-checkbox-wrapper .e-label {
        color: #333333 !important;
        font-weight: 600 !important;
        font-size: 1.05rem !important;
        margin-left: 0.5rem !important;
        cursor: pointer;
    }

.shipping-panel[b-9ft28opb8t] {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    animation: slideDownPanel-b-9ft28opb8t 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDownPanel-b-9ft28opb8t {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Actions */
.form-actions[b-9ft28opb8t] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(70, 92, 57, 0.1);
}

.btn-premium-cancel[b-9ft28opb8t] {
    background: rgba(70, 92, 57, 0.05);
    color: #686868;
    border: 1px solid rgba(70, 92, 57, 0.15);
    padding: 0.8rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

    .btn-premium-cancel:hover[b-9ft28opb8t] {
        background: rgba(70, 92, 57, 0.1);
        color: #333333;
        border-color: rgba(70, 92, 57, 0.25);
    }

.btn-premium-submit[b-9ft28opb8t] {
    background: linear-gradient(135deg, #465C39, #A8BB82);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(70, 92, 57, 0.25);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

    .btn-premium-submit:hover[b-9ft28opb8t] {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(70, 92, 57, 0.4);
        background: linear-gradient(135deg, #A8BB82, #465C39);
    }

@media (max-width: 992px) {
    .form-grid-2[b-9ft28opb8t], .form-grid-3[b-9ft28opb8t] {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .premium-form-container[b-9ft28opb8t] {
        padding: 1.5rem;
    }

    .form-section[b-9ft28opb8t] {
        padding: 1.25rem;
    }

    /* Prevent automatic zoom on iOS Safari by ensuring font-size is at least 16px */
    .premium-form-container[b-9ft28opb8t]  input,
    .premium-form-container[b-9ft28opb8t]  textarea,
    .premium-form-container[b-9ft28opb8t]  select {
        font-size: 16px !important;
    }

    .form-actions[b-9ft28opb8t] {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-premium-cancel[b-9ft28opb8t], .btn-premium-submit[b-9ft28opb8t] {
        width: 100%;
        text-align: center;
    }
}

/* Make rows explicitly clickable */
.grid-container[b-9ft28opb8t]  .e-grid .e-row {
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(56, 189, 248, 0.15);
}
/* Grid Premium Styles */
.grid-container[b-9ft28opb8t] {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(70, 92, 57, 0.1);
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.grid-header-bar[b-9ft28opb8t] {
    margin-bottom: 1.5rem;
}

.grid-title[b-9ft28opb8t] {
    font-size: 1.25rem;
    font-weight: 700;
    color: #465C39;
    margin: 0;
}

.grid-subtitle[b-9ft28opb8t] {
    font-size: 0.85rem;
    color: #686868;
    margin-top: 0.2rem;
    display: block;
}

/* ============================================================
   CLIENT DETAIL BOX
   ============================================================ */
.client-detail-box[b-9ft28opb8t] {
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(70, 92, 57, 0.12);
    border-radius: 24px;
    padding: 2rem 2.5rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    animation: fadeInUp-b-9ft28opb8t 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInUp-b-9ft28opb8t {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.detail-box-header[b-9ft28opb8t] {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(70, 92, 57, 0.1);
}

.detail-avatar[b-9ft28opb8t] {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(70, 92, 57, 0.12), rgba(168, 187, 130, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #465C39;
    flex-shrink: 0;
    border: 2px solid rgba(70, 92, 57, 0.15);
}

.detail-client-name[b-9ft28opb8t] {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 0.2rem;
    letter-spacing: -0.02em;
}

.detail-client-sub[b-9ft28opb8t] {
    font-size: 0.9rem;
    color: #686868;
    margin: 0;
}

.detail-info-grid[b-9ft28opb8t] {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.detail-info-full[b-9ft28opb8t] {
    grid-column: 1 / -1;
}

.detail-info-item[b-9ft28opb8t] {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: rgba(70, 92, 57, 0.03);
    border: 1px solid rgba(70, 92, 57, 0.07);
    border-radius: 50px;
    padding: 1rem 1.25rem;
    transition: border-color 0.2s, background 0.2s;
}

    .detail-info-item:hover[b-9ft28opb8t] {
        border-color: rgba(70, 92, 57, 0.18);
        background: rgba(70, 92, 57, 0.055);
    }

.detail-info-icon[b-9ft28opb8t] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(70, 92, 57, 0.1);
    color: #465C39;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.detail-info-label[b-9ft28opb8t] {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #8a9a7a;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 0.2rem;
}

.detail-info-value[b-9ft28opb8t] {
    display: block;
    font-size: 0.92rem;
    font-weight: 500;
    color: #465C39;
    word-break: break-word;
}

    .detail-info-value a[href^="tel"][b-9ft28opb8t] {
        text-decoration: none;
    }

/* ============================================================
   KPI SECTION
   ============================================================ */
.kpi-section-title[b-9ft28opb8t] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #465C39;
    margin-top: 0.5rem;
}

.kpi-grid[b-9ft28opb8t] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    animation: fadeInUp-b-9ft28opb8t 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.05s both;
}

.kpi-card[b-9ft28opb8t] {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(70, 92, 57, 0.1);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}

    .kpi-card:hover[b-9ft28opb8t] {
        transform: translateY(-3px);
        border-color: rgba(70, 92, 57, 0.25);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    }

/* Revenue card accent */
.kpi-revenue[b-9ft28opb8t]::before {
    background: linear-gradient(90deg, #465C39, #A8BB82);
}
/* Orders card accent */
.kpi-orders[b-9ft28opb8t]::before {
    background: linear-gradient(90deg, #3b82f6, #93c5fd);
}
/* Last order accent */
.kpi-lastorder[b-9ft28opb8t]::before {
    background: linear-gradient(90deg, #8b5cf6, #c4b5fd);
}

.kpi-details[b-9ft28opb8t] {
    display: flex;
    flex-direction: column;
}

.kpi-icon-wrap[b-9ft28opb8t] {
    width: 54px;
    height: 54px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .kpi-icon-wrap svg[b-9ft28opb8t] {
        width: 24px;
        height: 24px;
    }

.kpi-icon-revenue[b-9ft28opb8t] {
    background: rgba(70, 92, 57, 0.1);
    color: #465C39;
}

.kpi-icon-orders[b-9ft28opb8t] {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.kpi-icon-lastorder[b-9ft28opb8t] {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.kpi-label[b-9ft28opb8t] {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #686868;
}

.kpi-value[b-9ft28opb8t] {
    font-size: 1.75rem;
    font-weight: 800;
    color: #333333;
    line-height: 1.2;
}

.kpi-footer[b-9ft28opb8t] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.kpi-delta[b-9ft28opb8t] {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 20px;
}

.kpi-delta-up[b-9ft28opb8t] {
    color: #16a34a;
    background: rgba(22, 163, 74, 0.1);
}

.kpi-delta-down[b-9ft28opb8t] {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
}

.kpi-py-label[b-9ft28opb8t] {
    font-size: 0.78rem;
    color: #a0a0a0;
    font-weight: 400;
}

.kpi-days-ago[b-9ft28opb8t] {
    font-size: 0.82rem;
    color: #8b5cf6;
    font-weight: 600;
    background: rgba(139, 92, 246, 0.08);
    padding: 0.2rem 0.55rem;
    border-radius: 20px;
}

@media (max-width: 992px) {
    .kpi-grid[b-9ft28opb8t] {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-info-grid[b-9ft28opb8t] {
        grid-template-columns: 1fr;
    }

    .client-detail-box[b-9ft28opb8t] {
        padding: 1.5rem;
    }
}

@media (max-width: 640px) {
    .kpi-grid[b-9ft28opb8t] {
        grid-template-columns: 1fr;
    }

    .kpi-card[b-9ft28opb8t] {
        padding: 1.25rem;
    }

    .client-detail-box[b-9ft28opb8t] {
        padding: 1.25rem 1rem;
    }

    .detail-box-header[b-9ft28opb8t] {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .detail-client-name[b-9ft28opb8t] {
        font-size: 1.2rem;
    }

    .detail-info-item[b-9ft28opb8t] {
        padding: 0.75rem 1rem;
    }
}

.agent-turnover-header-card[b-9ft28opb8t] {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    background: linear-gradient(135deg, rgba(70, 92, 57, 0.06) 0%, rgba(168, 187, 130, 0.12) 100%);
    border: 1px solid rgba(70, 92, 57, 0.12);
    padding: 0.75rem 1.25rem;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    text-align: right;
    min-width: 220px;
}

.turnover-label[b-9ft28opb8t] {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #465C39;
    margin-bottom: 0.25rem;
}

.turnover-value[b-9ft28opb8t] {
    font-size: 1.45rem;
    font-weight: 800;
    color: #1a1a2e;
    letter-spacing: -0.02em;
}

@media (max-width: 768px) {
    .dashboard-header[b-9ft28opb8t] {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .agent-turnover-header-card[b-9ft28opb8t] {
        width: 100%;
        align-items: flex-start;
        text-align: left;
    }

    .grid-container[b-9ft28opb8t] {
        padding: 1.25rem;
        border-radius: 16px;
    }

    .premium-form-container[b-9ft28opb8t] {
        padding: 1.25rem;
        border-radius: 16px;
    }
}

@media (max-width: 480px) {
    .grid-container[b-9ft28opb8t] {
        padding: 1rem;
        border-radius: 50px;
    }

    .premium-form-container[b-9ft28opb8t] {
        padding: 1rem;
        border-radius: 50px;
    }

    .form-section[b-9ft28opb8t] {
        padding: 0.875rem;
        border-radius: 50px;
    }

    .kpi-section-title[b-9ft28opb8t] {
        font-size: 0.95rem;
    }
}

/* Segmented Control per KPI */
.segmented-control[b-9ft28opb8t] {
    display: inline-flex;
    background-color: #f1f5f9;
    border-radius: 20px;
    padding: 4px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

    .segmented-control input[type="radio"][b-9ft28opb8t] {
        display: none;
    }

    .segmented-control label[b-9ft28opb8t] {
        padding: 6px 16px;
        font-size: 0.85rem;
        font-weight: 600;
        color: #64748b;
        cursor: pointer;
        border-radius: 16px;
        transition: all 0.2s ease-in-out;
        user-select: none;
        margin-bottom: 0;
    }

        .segmented-control label:hover[b-9ft28opb8t] {
            color: #1e293b;
        }

    .segmented-control input[type="radio"]:checked + label[b-9ft28opb8t] {
        background-color: white;
        color: #0f172a;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    }

@media (max-width: 768px) {
    .date-filter-fields[b-9ft28opb8t] {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
}

.kpi-controls-header[b-9ft28opb8t] {
    display: flex;
    justify-content: center;
    width: 100%;
}

.date-filter-fields[b-9ft28opb8t] {
    display: flex;
    justify-content: center;
}



[b-9ft28opb8t] .hide-native-pager .e-gridpager { display: none !important; }


.page-btn[b-9ft28opb8t] {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(70, 92, 57, 0.05);
    border: 1px solid rgba(70, 92, 57, 0.1);
    color: #465C39;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    padding: 0;
}
.page-btn:hover:not(:disabled)[b-9ft28opb8t] {
    background: rgba(70, 92, 57, 0.1);
    border-color: #465C39;
    color: #465C39;
    transform: scale(1.1);
}
.page-btn:disabled[b-9ft28opb8t] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* /Components/Pages/GestioneNews.razor.rz.scp.css */
.news-dashboard[b-4k6m8mr22n] {
    padding: 24px;
    background-color: var(--bg-primary);
    min-height: 100%;
}

.btn-icon[b-4k6m8mr22n] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-premium-submit[b-4k6m8mr22n] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #465C39, #A8BB82);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(70, 92, 57, 0.25);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-premium-submit:hover[b-4k6m8mr22n] {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(70, 92, 57, 0.4);
    background: linear-gradient(135deg, #A8BB82, #465C39);
}

.news-grid[b-4k6m8mr22n] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.news-card[b-4k6m8mr22n] {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.news-card:hover[b-4k6m8mr22n] {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.news-image[b-4k6m8mr22n] {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background-color: #f1f5f9;
}

.news-content[b-4k6m8mr22n] {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-badges[b-4k6m8mr22n] {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.badge[b-4k6m8mr22n] {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-news[b-4k6m8mr22n] { background-color: #e0f2fe; color: #0284c7; }
.badge-promo[b-4k6m8mr22n] { background-color: #fce7f3; color: #db2777; }
.badge-novita[b-4k6m8mr22n] { background-color: #fef08a; color: #854d0e; }
.badge-fissato[b-4k6m8mr22n] { background-color: #cbd5e1; color: #334155; }

.news-date[b-4k6m8mr22n] {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.news-title[b-4k6m8mr22n] {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.news-subject[b-4k6m8mr22n] {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin: 0 0 12px 0;
}

.news-desc[b-4k6m8mr22n] {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.premium-form-container[b-4k6m8mr22n] {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.form-section[b-4k6m8mr22n] {
    margin-bottom: 24px;
}

.section-title[b-4k6m8mr22n] {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.form-grid-2[b-4k6m8mr22n] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group[b-4k6m8mr22n] {
    margin-bottom: 16px;
}

.switch-wrapper[b-4k6m8mr22n] {
    margin-bottom: 16px;
}

.form-actions[b-4k6m8mr22n] {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.btn-premium-cancel[b-4k6m8mr22n] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(70, 92, 57, 0.05);
    color: #686868;
    border: 1px solid rgba(70, 92, 57, 0.15);
    padding: 0.8rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-premium-cancel:hover[b-4k6m8mr22n] {
    background: rgba(70, 92, 57, 0.1);
    color: #333333;
    border-color: rgba(70, 92, 57, 0.25);
}

.btn-danger[b-4k6m8mr22n] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #ef4444, #f87171);
    color: white;
    border: none;
    padding: 0.8rem 1.75rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.25);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    margin-right: auto;
}

.btn-danger:hover[b-4k6m8mr22n] {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    background: linear-gradient(135deg, #f87171, #ef4444);
}
/* /Components/Pages/GestioneOrdini.razor.rz.scp.css */
/* GestioneOrdini.razor.css */

.orders-dashboard[b-qge7468cfx] {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 2rem;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Header & Summary */

.header-summary-actions[b-qge7468cfx] {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    background: rgba(70, 92, 57, 0.04);
    border: 1px solid rgba(70, 92, 57, 0.12);
    border-radius: 20px;
    padding: 0.75rem 1.25rem;
}

/* Stat bar unificata (Articoli + Totale) */
.order-stat-bar[b-qge7468cfx] {
    display: flex;
    align-items: stretch;
    width: auto;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 14px;
    border: 1px solid rgba(70, 92, 57, 0.12);
    overflow: hidden;
}

.stat-item[b-qge7468cfx] {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.8rem;
    gap: 0.1rem;
}

.stat-sep[b-qge7468cfx] {
    width: 1px;
    background: rgba(70, 92, 57, 0.12);
    align-self: stretch;
    flex-shrink: 0;
}

.stat-label[b-qge7468cfx] {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: #9ca3af;
    letter-spacing: 1px;
    font-weight: 700;
}

.stat-value[b-qge7468cfx] {
    font-size: 1.15rem;
    font-weight: 800;
    color: #465C39;
    line-height: 1.2;
}

.stat-value.total-val[b-qge7468cfx] {
    background: linear-gradient(135deg, #465C39 0%, #A8BB82 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Bottoni uguali */
.top-buttons[b-qge7468cfx] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: auto;
}

.top-buttons .btn-premium-secondary[b-qge7468cfx],
.top-buttons .btn-premium-action[b-qge7468cfx] {
    display: flex;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
}

.btn-checkout[b-qge7468cfx] {
    background: linear-gradient(135deg, #465C39 0%, #A8BB82 100%);
    border: 1px solid transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(70, 92, 57, 0.3);
}

.btn-checkout:hover[b-qge7468cfx] {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(70, 92, 57, 0.5);
}

.btn-save[b-qge7468cfx] {
    background: rgba(70, 92, 57, 0.05);
    border: 1px solid rgba(70, 92, 57, 0.1);
    color: #686868;
}

.btn-save:hover[b-qge7468cfx] {
    background: rgba(70, 92, 57, 0.1);
    color: #465C39;
    border-color: rgba(70, 92, 57, 0.2);
}

/* ── Search toolbar (inside products-container) ─────────── */
.search-toolbar[b-qge7468cfx] {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.1rem;
}

.search-row[b-qge7468cfx] {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.control-stacked[b-qge7468cfx] {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.control-label-sm[b-qge7468cfx] {
    font-size: 0.75rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 0.25rem;
}

.search-controls-row[b-qge7468cfx] {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
}

.search-controls-row .page-size-wrapper[b-qge7468cfx] {
    justify-self: end;
}

.search-wrapper-glass[b-qge7468cfx] {
    width: 100%;
    position: relative;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(70, 92, 57, 0.13);
    border-radius: 14px;
    padding: 0 0.5rem 0 2.75rem;
    transition: border-color 0.25s, box-shadow 0.25s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    height: 44px;
}

.search-wrapper-glass:focus-within[b-qge7468cfx] {
    border-color: rgba(70, 92, 57, 0.32);
    box-shadow: 0 4px 20px rgba(70, 92, 57, 0.08);
}

.search-icon[b-qge7468cfx] {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

.results-count-badge[b-qge7468cfx] {
    white-space: nowrap;
    font-size: 0.9rem;
    color: #6b7280;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(70, 92, 57, 0.1);
    border-radius: 10px;
    padding: 0 0.85rem;
    height: 44px;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    letter-spacing: 0.2px;
}

.results-count-badge strong[b-qge7468cfx] {
    font-size: 1.1rem;
    font-weight: 800;
    color: #465C39 !important;
}

.filters-group[b-qge7468cfx] {
    display: flex;
    gap: 0.5rem;
}

.toggle-oos-btn[b-qge7468cfx] {
    flex: 1;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b7280;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(70, 92, 57, 0.1);
    border-radius: 10px;
    padding: 0 0.6rem;
    height: 44px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toggle-oos-btn:hover[b-qge7468cfx] {
    border-color: rgba(239, 68, 68, 0.35);
    color: #ef4444;
}

.toggle-oos-btn.active[b-qge7468cfx] {
    background: rgba(239, 68, 68, 0.06);
    border-color: rgba(239, 68, 68, 0.35);
    color: #ef4444;
}

.toggle-oos-btn .toggle-dot[b-qge7468cfx] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    transition: background 0.2s;
    flex-shrink: 0;
}

.toggle-oos-btn.active .toggle-dot[b-qge7468cfx] {
    background: #ef4444;
}

/* Super aggressive override for Syncfusion Search Input */
[b-qge7468cfx] .premium-search-input,
[b-qge7468cfx] .premium-search-input.e-control-wrapper,
[b-qge7468cfx] .premium-search-input.e-input-group,
[b-qge7468cfx] .premium-search-input.e-input-group .e-input-focus,
[b-qge7468cfx] .premium-search-input .e-input-group,
[b-qge7468cfx] .premium-search-input .e-control-wrapper,
[b-qge7468cfx] .premium-search-input .e-input-group.e-control-wrapper {
    background: transparent !important;
    border: none !important;
    border-style: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
    height: 100% !important;
    width: 100% !important;
}

[b-qge7468cfx] .premium-search-input .e-input,
[b-qge7468cfx] .premium-search-input .e-input:focus,
[b-qge7468cfx] .premium-search-input input.e-input {
    color: #333333 !important;
    font-size: 1.125rem !important;
    height: 44px !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding-left: 0 !important;
}

/* Specific fix for Syncfusion internal border elements */
[b-qge7468cfx] .premium-search-input .e-input-group-icon {
    display: none !important;
    /* Hide dropdown icon if present in AutoComplete */
}

[b-qge7468cfx] .premium-search-input .e-clear-icon {
    background: transparent !important;
    color: #6b7280 !important;
}

/* Layout Main */
.main-content-layout[b-qge7468cfx] {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.section-label[b-qge7468cfx] {
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #465C39;
    margin: 1.5rem 0 0.75rem 0.5rem;
}

.section-label.mini[b-qge7468cfx] {
    font-size: 0.788rem;
    margin-top: 0.5rem;
    color: rgba(70, 92, 57, 0.55);
}

.subbrand-filter-group[b-qge7468cfx] {
    margin-top: 0.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.25rem;
    animation: fadeIn-b-qge7468cfx 0.35s ease-out;
}

.section-label.subbrand-group-label[b-qge7468cfx] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #465C39;
    margin: 0.75rem 0 0.25rem 0.5rem;
}

.subbrand-filter-container[b-qge7468cfx] {
    margin-bottom: 1.5rem;
    padding-left: 0.5rem;
}

.subbrand-chips[b-qge7468cfx] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.subbrand-chip[b-qge7468cfx] {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(70, 92, 57, 0.15);
    color: #686868;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.938rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.subbrand-chip:hover[b-qge7468cfx] {
    background: rgba(255, 255, 255, 1);
    color: #465C39;
    border-color: rgba(70, 92, 57, 0.3);
}

.subbrand-chip.active[b-qge7468cfx] {
    background: linear-gradient(135deg, #465C39 0%, #A8BB82 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(70, 92, 57, 0.25);
}

@keyframes fadeIn-b-qge7468cfx {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Brands Horizontal Filter (Compact) */
.brands-horizontal-premium[b-qge7468cfx] {
    margin-bottom: 1.5rem;
    background: rgba(70, 92, 57, 0.08);
    padding: 0.75rem 3.5rem;
    /* Increased side padding for arrows */
    border-radius: 20px;
    border: 1px solid rgba(70, 92, 57, 0.12);
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.02);
}

/* Hide the old fade indicator as we use arrows now */
.brands-horizontal-premium[b-qge7468cfx]::after {
    display: none;
}

.carousel-nav[b-qge7468cfx] {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(70, 92, 57, 0.05);
    border: 1px solid rgba(70, 92, 57, 0.1);
    color: #465C39;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.carousel-nav:hover[b-qge7468cfx] {
    background: rgba(70, 92, 57, 0.1);
    border-color: #465C39;
    color: #465C39;
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev[b-qge7468cfx] {
    left: 1rem;
}

.carousel-nav.next[b-qge7468cfx] {
    right: 1rem;
}

.brand-square-grid[b-qge7468cfx] {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    scrollbar-width: none;
    /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.brand-square-grid[b-qge7468cfx]::-webkit-scrollbar {
    display: none;
}

.brand-square[b-qge7468cfx] {
    min-width: fit-content;
    height: 60px;
    padding: 0 1.75rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 100px;
    border: 1px solid rgba(70, 92, 57, 0.15);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    flex-shrink: 0;
    scroll-snap-align: start;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    overflow: hidden;
}

.brand-square:hover[b-qge7468cfx] {
    background: rgba(255, 255, 255, 1);
    border-color: #465C39;
    transform: translateY(-2px);
}

.brand-square.active[b-qge7468cfx] {
    background: #465C39;
    border-color: #465C39;
}

.brand-square-content[b-qge7468cfx] {
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 0;
    text-align: center;
    gap: 0.5rem;
}

.brand-icon-wrapper[b-qge7468cfx] {
    display: none !important;
}

.brand-square:hover .brand-icon-wrapper[b-qge7468cfx],
.brand-square.active .brand-icon-wrapper[b-qge7468cfx] {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
}

.brand-square-name[b-qge7468cfx] {
    font-size: 0.95rem;
    font-weight: 700;
    color: #4b5563;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.brand-square.active .brand-square-name[b-qge7468cfx] {
    color: #ffffff;
}

.brand-square-count[b-qge7468cfx] {
    position: static;
    font-size: 0.75rem;
    background: rgba(70, 92, 57, 0.08);
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
    color: #686868;
}

/* ── Products Grid ───────────────────────────────────────── */
.products-container[b-qge7468cfx] {
    flex: 1;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.amazon-grid.four-cols[b-qge7468cfx] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
    width: 100%;
}

/* ── Product Card ─────────────────────────────────────────── */
.product-card[b-qge7468cfx] {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(70, 92, 57, 0.14);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 0 0 0 transparent;
}

.product-card:hover[b-qge7468cfx] {
    transform: translateY(-4px);
    border-color: rgba(70, 92, 57, 0.28);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

/* in-cart: sottile barra verde a sinistra */
.product-card.in-cart[b-qge7468cfx] {
    border-color: rgba(168, 187, 130, 0.7);
    background: rgba(168, 187, 130, 0.03);
}

.product-card.in-cart[b-qge7468cfx]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #465C39, #A8BB82);
    border-radius: 16px 0 0 16px;
}

/* novità */
.product-card.highlight-new[b-qge7468cfx] {
    border-color: rgba(16, 185, 129, 0.3);
}

.product-card.highlight-new:hover[b-qge7468cfx] {
    border-color: rgba(16, 185, 129, 0.55);
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.1);
}

/* esaurito */
.product-card.out-of-stock[b-qge7468cfx] {
    opacity: 0.62;
    filter: grayscale(0.35);
}

/* ── Area immagine ───────────────────────────────────────── */
.card-image[b-qge7468cfx] {
    position: relative;
    height: 188px;
    background: #f6f7f4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.4rem 1.4rem 1.4rem;
    overflow: hidden;
    cursor: pointer;
}

.card-image-hint[b-qge7468cfx] {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(70, 92, 57, 0);
    transition: background 0.25s ease;
    pointer-events: none;
}

.card-image-hint-icon[b-qge7468cfx] {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.25s ease, transform 0.25s ease;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #465C39;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.product-card:hover .card-image-hint[b-qge7468cfx] {
    background: rgba(70, 92, 57, 0.06);
}

.product-card:hover .card-image-hint-icon[b-qge7468cfx] {
    opacity: 1;
    transform: scale(1);
}

.card-image[b-qge7468cfx]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 32px;
    background: linear-gradient(to bottom, transparent, rgba(246, 247, 244, 0.9));
    pointer-events: none;
}

.card-image img[b-qge7468cfx] {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.09));
}

.product-card:hover .card-image img[b-qge7468cfx] {
    transform: scale(1.05);
}

.product-card.out-of-stock .card-image img[b-qge7468cfx] {
    opacity: 0.55;
}

/* Placeholder */
.img-placeholder-box[b-qge7468cfx] {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
            rgba(70, 92, 57, 0.03) 0%,
            rgba(168, 187, 130, 0.06) 100%);
}

/* Brand overlay top-left */
.card-brand-overlay[b-qge7468cfx] {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    background: rgba(50, 68, 38, 0.72);
    backdrop-filter: blur(6px);
    padding: 0.28rem 0.7rem 0.28rem 0.6rem;
    border-radius: 0 0 10px 0;
}

.brand-overlay-name[b-qge7468cfx] {
    font-size: 0.725rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    white-space: nowrap;
}

/* Badges */
.badge-container[b-qge7468cfx] {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    align-items: flex-end;
    z-index: 2;
}

.badge[b-qge7468cfx] {
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.badge.new[b-qge7468cfx] {
    background: #eab308;
    color: #fff;
    box-shadow: 0 2px 6px rgba(234, 179, 8, 0.35);
}

.badge.promo[b-qge7468cfx] {
    background: #10b981;
    color: #fff;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.35);
}

.badge.sold-out[b-qge7468cfx] {
    background: #ef4444;
    color: #fff;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
}

.badge.discount[b-qge7468cfx] {
    background: #ef4444;
    color: #fff;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
}

/* ── Card Body ───────────────────────────────────────────── */
.card-body[b-qge7468cfx] {
    padding: 0.85rem 1rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Sub-brand pills */
.subbrand-row[b-qge7468cfx] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 0.35rem;
}

.sub-brand-pill[b-qge7468cfx] {
    display: inline-block;
    padding: 0.1rem 0.45rem;
    border-radius: 50px;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    background: transparent;
    border: 1px solid rgba(70, 92, 57, 0.18);
    color: #6b7280;
    white-space: nowrap;
}

.sub-brand-pill.secondary[b-qge7468cfx] {
    border-color: rgba(14, 165, 233, 0.25);
    color: #64b0d4;
}

.product-title[b-qge7468cfx] {
    font-size: 1.075rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.45;
    margin: 0 0 0.65rem;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.78em;
}

.product-meta[b-qge7468cfx] {
    margin-bottom: 0.35rem;
}

.product-sku[b-qge7468cfx] {
    font-size: 0.725rem;
    color: #6b7280;
    letter-spacing: 0.2px;
}

.sku-label[b-qge7468cfx] {
    font-weight: 700;
    color: #4b5563;
    font-size: 0.725rem;
}

.meta-sep[b-qge7468cfx] {
    border: none;
    border-top: 1px solid rgba(70, 92, 57, 0.1);
    margin: 0.3rem 0;
}

.product-note[b-qge7468cfx] {
    font-size: 0.725rem;
    color: #9ca3af;
    line-height: 1.45;
    font-style: italic;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Card Footer ─────────────────────────────────────────── */
.card-footer[b-qge7468cfx] {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(70, 92, 57, 0.07);
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.price-row[b-qge7468cfx] {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.55rem;
}

.current-price[b-qge7468cfx] {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -0.4px;
}

.old-price[b-qge7468cfx] {
    font-size: 0.95rem;
    color: #c4c4c4;
    text-decoration: line-through;
}

.order-rules[b-qge7468cfx] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.775rem;
    color: #6b7280;
    font-weight: 500;
}

.order-rules b[b-qge7468cfx] {
    color: #465C39 !important;
    font-weight: 700;
}

.rules-sep[b-qge7468cfx] {
    color: #9ca3af;
    font-size: 1.125rem;
    line-height: 1;
}

/* ── Controls ────────────────────────────────────────────── */
.card-controls[b-qge7468cfx] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
    overflow: hidden;
}

.qty-group-full[b-qge7468cfx] {
    grid-column: 1 / -1;
}

.disabled-controls[b-qge7468cfx] {
    pointer-events: none;
    opacity: 0.35;
}

.control-group[b-qge7468cfx] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    overflow: hidden;
}

.control-label[b-qge7468cfx] {
    font-size: 0.65rem;
    font-weight: 800;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qty-stepper-premium[b-qge7468cfx],
.discount-stepper-premium[b-qge7468cfx],
.omaggio-stepper-premium[b-qge7468cfx] {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    background: rgba(70, 92, 57, 0.04);
    border-radius: 8px;
    padding: 0.1rem;
    border: 1px solid rgba(70, 92, 57, 0.12);
    transition: border-color 0.2s, background 0.2s;
    box-sizing: border-box;
}

.qty-stepper-premium:focus-within[b-qge7468cfx],
.discount-stepper-premium:focus-within[b-qge7468cfx],
.omaggio-stepper-premium:focus-within[b-qge7468cfx] {
    border-color: #A8BB82;
    background: rgba(70, 92, 57, 0.07);
}

.step-btn[b-qge7468cfx] {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border: none;
    background: transparent;
    color: #465C39;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.15s;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.step-btn:hover:not(:disabled)[b-qge7468cfx] {
    background: rgba(70, 92, 57, 0.1);
}

.step-btn:disabled[b-qge7468cfx] {
    cursor: not-allowed;
    opacity: 0.4;
}

.qty-val[b-qge7468cfx],
.discount-val[b-qge7468cfx],
.omaggio-val[b-qge7468cfx] {
    flex: 1;
    width: 0;
    min-width: 1.80rem;
    background: transparent;
    border: none;
    color: #1a1a1a;
    text-align: center;
    font-weight: 700;
    font-size: 1.05rem;
    outline: none;
}

.qty-val[b-qge7468cfx]::-webkit-inner-spin-button,
.discount-val[b-qge7468cfx]::-webkit-inner-spin-button,
.omaggio-val[b-qge7468cfx]::-webkit-inner-spin-button {
    display: none;
}

.qty-val:disabled[b-qge7468cfx],
.discount-val:disabled[b-qge7468cfx],
.omaggio-val:disabled[b-qge7468cfx] {
    cursor: not-allowed;
}

/* ── Detail Modal ────────────────────────────────────────── */
.modal-overlay[b-qge7468cfx] {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeInOverlay-b-qge7468cfx 0.2s ease-out;
}

@keyframes fadeInOverlay-b-qge7468cfx {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-card[b-qge7468cfx] {
    background: #fff;
    border-radius: 24px;
    border: 1px solid rgba(70, 92, 57, 0.1);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
    width: 100%;
    max-width: 520px;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUpModal-b-qge7468cfx 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

@keyframes slideUpModal-b-qge7468cfx {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close[b-qge7468cfx] {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 10;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(70, 92, 57, 0.12);
    color: #686868;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.modal-close:hover[b-qge7468cfx] {
    background: #fff;
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.modal-image-area[b-qge7468cfx] {
    position: relative;
    height: 240px;
    background: #f6f7f4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    flex-shrink: 0;
}

.modal-image-area img[b-qge7468cfx] {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

.modal-img-placeholder[b-qge7468cfx] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.modal-brand-overlay[b-qge7468cfx] {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(50, 68, 38, 0.72);
    backdrop-filter: blur(6px);
    padding: 0.3rem 0.85rem 0.3rem 0.75rem;
    border-radius: 0 0 10px 0;
}

.modal-badge-row[b-qge7468cfx] {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    align-items: flex-end;
}

.modal-body[b-qge7468cfx] {
    padding: 1.25rem 1.5rem 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modal-subbrand-row[b-qge7468cfx] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.modal-title[b-qge7468cfx] {
    font-size: 1.312rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.45;
    margin: 0;
}

.modal-sku[b-qge7468cfx] {
    font-size: 0.875rem;
    color: #6b7280;
}

.modal-note[b-qge7468cfx] {
    font-size: 1rem;
    color: #9ca3af;
    font-style: italic;
    line-height: 1.5;
    margin: 0;
    padding: 0.6rem 0.85rem;
    background: rgba(70, 92, 57, 0.03);
    border-left: 2px solid rgba(70, 92, 57, 0.2);
    border-radius: 0 8px 8px 0;
}

.modal-price-block[b-qge7468cfx] {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
}

.modal-rules[b-qge7468cfx] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

.modal-rules b[b-qge7468cfx] {
    color: #465C39;
    font-weight: 700;
}

.modal-divider[b-qge7468cfx] {
    border: none;
    border-top: 1px solid rgba(70, 92, 57, 0.08);
    margin: 0;
}

.modal-controls[b-qge7468cfx] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.modal-controls .control-group[b-qge7468cfx] {
    /* No flex needed for grid children, but min-width helps prevent overflow */
    min-width: 0;
}

/* ── Page size selector ──────────────────────────────────── */
.page-size-wrapper[b-qge7468cfx] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.page-size-label[b-qge7468cfx] {
    font-size: 0.85rem;
    font-weight: 600;
    color: #9ca3af;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.page-size-selector[b-qge7468cfx] {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(70, 92, 57, 0.1);
    border-radius: 10px;
    padding: 0.2rem;
    height: 44px;
    flex-shrink: 0;
}

.page-size-btn[b-qge7468cfx] {
    min-width: 36px;
    height: 32px;
    border-radius: 7px;
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0 0.45rem;
    font-family: inherit;
}

.page-size-btn:hover[b-qge7468cfx] {
    background: rgba(70, 92, 57, 0.06);
    color: #465C39;
}

.page-size-btn.active[b-qge7468cfx] {
    background: #465C39;
    color: #fff;
}

/* ── Pagination info label ───────────────────────────────── */
.pagination-info[b-qge7468cfx] {
    text-align: center;
    font-size: 0.9rem;
    color: #9ca3af;
    margin-top: 1.5rem;
    letter-spacing: 0.1px;
}

.pagination-info strong[b-qge7468cfx] {
    color: #465C39;
    font-weight: 700;
}

/* ── Pagination bar ──────────────────────────────────────── */
.pagination-bar[b-qge7468cfx] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    margin-top: 1.75rem;
    flex-wrap: wrap;
}

.page-btn[b-qge7468cfx] {
    min-width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(70, 92, 57, 0.12);
    background: #fff;
    color: #6b7280;
    font-size: 1.025rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.5rem;
    font-family: inherit;
}

.page-btn:hover:not(:disabled)[b-qge7468cfx] {
    border-color: rgba(70, 92, 57, 0.3);
    color: #465C39;
    background: rgba(70, 92, 57, 0.05);
}

.page-btn.active[b-qge7468cfx] {
    background: #465C39;
    color: #fff;
    border-color: #465C39;
    box-shadow: 0 3px 10px rgba(70, 92, 57, 0.25);
}

.page-btn:disabled[b-qge7468cfx] {
    opacity: 0.3;
    cursor: not-allowed;
}

.page-btn.nav-btn[b-qge7468cfx] {
    background: rgba(255, 255, 255, 0.97);
}

.page-ellipsis[b-qge7468cfx] {
    color: #9ca3af;
    font-size: 1.25rem;
    padding: 0 0.15rem;
    line-height: 36px;
    user-select: none;
}

.page-info[b-qge7468cfx] {
    font-size: 0.875rem;
    color: #9ca3af;
    font-weight: 500;
    margin-left: 0.4rem;
    white-space: nowrap;
}

/* ── Responsive ──────────────────────────────────────────── */

/* Tablet landscape: brand più compatti */
@media (max-width: 1100px) {
    .brand-square[b-qge7468cfx] {
        min-width: fit-content;
        height: 48px;
        padding: 0 1.25rem;
    }

    .brand-square-content[b-qge7468cfx] {
        flex-direction: row;
        gap: 0.5rem;
        padding: 0;
    }

    .brand-icon-wrapper[b-qge7468cfx] {
        display: none !important;
    }

    .brand-square-name[b-qge7468cfx] {
        font-size: 0.85rem;
        max-width: none;
        white-space: nowrap;
    }

    .brand-square-count[b-qge7468cfx] {
        position: static;
        font-size: 0.75rem;
        background: rgba(70, 92, 57, 0.08);
    }

    .brands-horizontal-premium[b-qge7468cfx] {
        padding: 0.45rem 3rem;
    }

    .carousel-nav[b-qge7468cfx] {
        width: 34px;
        height: 34px;
    }

    .carousel-nav.prev[b-qge7468cfx] {
        left: 0.6rem;
    }

    .carousel-nav.next[b-qge7468cfx] {
        right: 0.6rem;
    }
}

/* Tablet portrait (~960px): layout column + card compatta */
@media (max-width: 900px) {
    .main-content-layout[b-qge7468cfx] {
        flex-direction: column;
    }

    .search-container-premium[b-qge7468cfx] {
        max-width: 100%;
    }

    .dashboard-header[b-qge7468cfx] {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1rem 1.25rem;
    }

    .header-summary-actions[b-qge7468cfx] {
        width: 100%;
    }

    .card-image[b-qge7468cfx] {
        height: 140px;
    }

    .card-body[b-qge7468cfx] {
        padding: 0.6rem 0.7rem 0.7rem;
    }

    .product-title[b-qge7468cfx] {
        font-size: 0.95rem;
        min-height: 3.1em;
        margin-bottom: 0.35rem;
    }

    .current-price[b-qge7468cfx] {
        font-size: 1.188rem;
    }

    .card-footer[b-qge7468cfx] {
        gap: 0.35rem;
        padding-top: 0.5rem;
    }

    .card-controls[b-qge7468cfx] {
        display: flex;
        flex-direction: column;
    }

    .step-btn[b-qge7468cfx] {
        width: 22px;
        height: 22px;
    }

    .qty-val[b-qge7468cfx],
    .discount-val[b-qge7468cfx],
    .omaggio-val[b-qge7468cfx] {
        font-size: 0.95rem;
    }

    .order-rules[b-qge7468cfx] {
        font-size: 0.7rem;
    }

    /* Brand: vw evita il bug % in overflow-x scroll */
    .brand-square[b-qge7468cfx] {
        height: 46px;
        max-width: none;
        padding: 0 1rem;
    }

    .brand-square-name[b-qge7468cfx] {
        font-size: 0.85rem;
    }

    .brands-horizontal-premium[b-qge7468cfx] {
        padding: 0.4rem 2.75rem;
    }

    .carousel-nav[b-qge7468cfx] {
        width: 32px;
        height: 32px;
    }

    .carousel-nav.prev[b-qge7468cfx] {
        left: 0.5rem;
    }

    .carousel-nav.next[b-qge7468cfx] {
        right: 0.5rem;
    }
}

/* Telefono landscape / phablet (≤768px): card più spaziosa in 1 col */
@media (max-width: 768px) {
    .card-image[b-qge7468cfx] {
        height: 175px;
    }

    .card-body[b-qge7468cfx] {
        padding: 0.8rem 1rem 1rem;
    }

    .product-title[b-qge7468cfx] {
        font-size: 1.05rem;
        min-height: auto;
        -webkit-line-clamp: 2;
    }

    .current-price[b-qge7468cfx] {
        font-size: 1.375rem;
    }

    .card-controls[b-qge7468cfx] {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .step-btn[b-qge7468cfx] {
        width: 26px;
        height: 26px;
    }

    .qty-val[b-qge7468cfx],
    .discount-val[b-qge7468cfx],
    .omaggio-val[b-qge7468cfx] {
        font-size: 1.05rem;
    }

    .order-rules[b-qge7468cfx] {
        font-size: 0.775rem;
    }

    /* Brand più grandi per un miglior touch target */
    .brand-square[b-qge7468cfx] {
        max-width: none;
        height: 48px;
        padding: 0 1rem;
    }

    .brand-square-name[b-qge7468cfx] {
        font-size: 0.85rem;
    }

    .brands-horizontal-premium[b-qge7468cfx] {
        padding: 0.38rem 2.7rem;
    }

    .carousel-nav[b-qge7468cfx] {
        width: 32px;
        height: 32px;
    }

    .carousel-nav.prev[b-qge7468cfx] {
        left: 0.4rem;
    }

    .carousel-nav.next[b-qge7468cfx] {
        right: 0.4rem;
    }
}

/* Telefono portrait (≤480px): brand ancora più piccoli, search in colonna */
@media (max-width: 480px) {
    .search-controls-row[b-qge7468cfx] {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .search-controls-row .results-count-badge[b-qge7468cfx] {
        justify-self: start;
    }

    .dashboard-header[b-qge7468cfx] {
        padding: 0.9rem 1rem;
    }

    .brand-square[b-qge7468cfx] {
        max-width: none;
        height: 40px;
        padding: 0 0.75rem;
    }

    .brand-square-name[b-qge7468cfx] {
        font-size: 0.75rem;
    }

    .brands-horizontal-premium[b-qge7468cfx] {
        padding: 0.35rem 2.5rem;
    }

    .carousel-nav[b-qge7468cfx] {
        width: 28px;
        height: 28px;
    }

    .carousel-nav.prev[b-qge7468cfx] {
        left: 0.3rem;
    }

    .carousel-nav.next[b-qge7468cfx] {
        right: 0.3rem;
    }
}

/* ── Tabs Storico / Nuovo Ordine ─────────────────────────── */
.orders-tabs-premium[b-qge7468cfx] {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.25rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    border: 1px solid rgba(70, 92, 57, 0.1);
    align-self: flex-start;
}

.tab-btn[b-qge7468cfx] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border: none;
    background: transparent;
    border-radius: 12px;
    font-size: 1.062rem;
    font-weight: 700;
    color: #686868;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover[b-qge7468cfx] {
    background: rgba(70, 92, 57, 0.05);
    color: #465C39;
}

.tab-btn.active[b-qge7468cfx] {
    background: #fff;
    color: #465C39;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(70, 92, 57, 0.1);
}

/* ── Storico Layout ──────────────────────────────────────── */
.storico-layout[b-qge7468cfx] {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    width: 100%;
}

.storico-sidebar[b-qge7468cfx] {
    width: 250px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: #fff;
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid rgba(70, 92, 57, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
}

.status-filter[b-qge7468cfx] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    border: none;
    background: transparent;
    border-radius: 12px;
    font-size: 1.062rem;
    font-weight: 600;
    color: #4b5563;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.status-filter:hover[b-qge7468cfx] {
    background: rgba(70, 92, 57, 0.03);
}

.status-filter.active[b-qge7468cfx] {
    background: rgba(70, 92, 57, 0.08);
    color: #465C39;
    font-weight: 700;
}

.status-indicator[b-qge7468cfx] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-indicator.salvati[b-qge7468cfx] {
    background: #f59e0b;
}

.status-indicator.inviati[b-qge7468cfx] {
    background: #3b82f6;
}

.status-indicator.confermati[b-qge7468cfx] {
    background: #10b981;
}

.storico-content[b-qge7468cfx] {
    flex: 1;
    min-width: 0;
    width: 100%;
}

.storico-grid[b-qge7468cfx] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
    width: 100%;
}

.storico-card[b-qge7468cfx] {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(70, 92, 57, 0.1);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.storico-card:hover[b-qge7468cfx] {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.storico-card-header[b-qge7468cfx] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(70, 92, 57, 0.1);
    padding-bottom: 0.75rem;
}

.storico-card-header .order-id[b-qge7468cfx] {
    font-weight: 800;
    font-size: 1.312rem;
    color: #1a1a1a;
}

.storico-card-header .order-date[b-qge7468cfx] {
    font-size: 0.938rem;
    color: #9ca3af;
}

.storico-card-body[b-qge7468cfx] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.order-detail[b-qge7468cfx] {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-detail .detail-label[b-qge7468cfx] {
    font-size: 1rem;
    color: #6b7280;
}

.order-detail .detail-val[b-qge7468cfx] {
    font-size: 1.188rem;
    font-weight: 700;
    color: #465C39;
}

.storico-card-footer[b-qge7468cfx] {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px dashed rgba(70, 92, 57, 0.15);
    display: flex;
    justify-content: flex-end;
}

.empty-state[b-qge7468cfx] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(70, 92, 57, 0.1);
    color: #9ca3af;
    text-align: center;
    grid-column: 1 / -1;
}

.empty-state svg[b-qge7468cfx] {
    margin-bottom: 1rem;
    color: #d1d5db;
}

.btn-export[b-qge7468cfx] {
    background: #10b981;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.6rem 1.2rem;
    font-size: 0.938rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-export:hover[b-qge7468cfx] {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

@media (max-width: 768px) {
    .storico-layout[b-qge7468cfx] {
        flex-direction: column;
    }

    .storico-sidebar[b-qge7468cfx] {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
    }

    .status-filter[b-qge7468cfx] {
        white-space: nowrap;
    }
}

/* ── Cart Preview Styles ────────────────────────────────────────── */
.cart-preview-container[b-qge7468cfx] {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fdfdfd;
    padding: 1rem;
}

.cart-table-wrapper[b-qge7468cfx] {
    flex: 1;
    overflow-y: auto;
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(70, 92, 57, 0.1);
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.cart-table[b-qge7468cfx] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
}

.cart-table thead[b-qge7468cfx] {
    position: sticky;
    top: 0;
    background: #f6f7f4;
    z-index: 10;
}

.cart-table th[b-qge7468cfx] {
    padding: 1rem;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #465C39;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(70, 92, 57, 0.15);
}

.cart-table td[b-qge7468cfx] {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(70, 92, 57, 0.05);
}

.cart-table tbody tr:last-child td[b-qge7468cfx] {
    border-bottom: none;
}

.cart-img-cell[b-qge7468cfx] {
    width: 60px;
    text-align: center;
}

.cart-thumb[b-qge7468cfx] {
    max-width: 50px;
    max-height: 50px;
    border-radius: 6px;
    object-fit: contain;
}

.cart-item-desc[b-qge7468cfx] {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.qty-stepper-mini[b-qge7468cfx] {
    display: inline-flex;
    align-items: center;
    background: rgba(70, 92, 57, 0.04);
    border: 1px solid rgba(70, 92, 57, 0.12);
    border-radius: 50px;
    padding: 2px 4px;
}

.qty-stepper-mini button[b-qge7468cfx] {
    background: #fff;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
    color: #465C39;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.qty-stepper-mini button:hover[b-qge7468cfx] {
    background: #A8BB82;
    color: #fff;
}

.qty-stepper-mini span[b-qge7468cfx] {
    min-width: 28px;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.cart-remove-btn[b-qge7468cfx] {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: none;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.cart-remove-btn:hover[b-qge7468cfx] {
    background: #ef4444;
    color: #fff;
}

.cart-summary-footer[b-qge7468cfx] {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(70, 92, 57, 0.15);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.cart-total-row[b-qge7468cfx] {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.cart-total-display[b-qge7468cfx] {
    font-size: 1.2rem;
    font-weight: 700;
    color: #666;
}

.cart-total-display span[b-qge7468cfx] {
    font-size: 1.8rem;
    font-weight: 900;
    color: #465C39;
    margin-left: 0.5rem;
}

.cart-buttons-row[b-qge7468cfx] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 1.5rem;
}

.cart-buttons-row .btn-premium-secondary[b-qge7468cfx],
.cart-buttons-row .btn-premium-action[b-qge7468cfx] {
    flex: 1;
    max-width: 280px;
    justify-content: center;
}

@media (max-width: 1024px) {
    .cart-summary-footer[b-qge7468cfx] {
        padding: 1.2rem;
        gap: 1.2rem;
    }

    .cart-total-display[b-qge7468cfx] {
        font-size: 1.1rem;
    }

    .cart-total-display span[b-qge7468cfx] {
        font-size: 1.5rem;
    }

    .cart-buttons-row[b-qge7468cfx] {
        gap: 1rem;
    }

    .cart-buttons-row .btn-premium-secondary[b-qge7468cfx],
    .cart-buttons-row .btn-premium-action[b-qge7468cfx] {
        flex: 1;
        max-width: none;
        font-size: 0.95rem;
        padding: 0.6rem 0.5rem;
    }

    .qty-stepper-mini button[b-qge7468cfx] {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
    }

    .qty-stepper-mini span[b-qge7468cfx],
    .qty-stepper-mini input[b-qge7468cfx] {
        width: 60px;
        min-width: 60px;
        font-size: 0.95rem;
        font-weight: 700;
    }

    .checkout-grid[b-qge7468cfx] {
        grid-template-columns: 1fr !important;
    }

    .cart-table tbody[b-qge7468cfx] {
        display: block;
        width: 100%;
    }

    .cart-table[b-qge7468cfx],
    .cart-table tr[b-qge7468cfx],
    .cart-table td[b-qge7468cfx] {
        box-sizing: border-box;
    }

    .cart-table[b-qge7468cfx] {
        display: block;
        width: 100%;
        font-size: 0.9em;
    }

    .cart-table thead[b-qge7468cfx] {
        display: none;
    }

    .cart-table tr[b-qge7468cfx] {
        margin-bottom: 0.5rem;
        border: 1px solid rgba(70, 92, 57, 0.2);
        border-radius: 8px;
        background: #fff;
        position: relative;
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
        display: flex;
        flex-wrap: wrap;
    }

    .cart-table td[b-qge7468cfx] {
        order: 5;
        width: 100%;
        text-align: right !important;
        padding: 0.35rem 0.6rem;
        border-bottom: 1px solid rgba(70, 92, 57, 0.05);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .cart-table td[b-qge7468cfx]::before {
        content: attr(data-label);
        font-weight: 800;
        color: #465C39;
        text-align: left;
        margin-right: 1rem;
    }

    .cart-img-cell[b-qge7468cfx] {
        order: 1;
        width: 20% !important;
        border-bottom: 1px solid rgba(70, 92, 57, 0.05) !important;
        padding-right: 0 !important;
        justify-content: flex-start !important;
        padding-bottom: 0.35rem !important;
    }

    .cart-img-cell[b-qge7468cfx]::before {
        display: none !important;
    }

    .cart-articolo-cell[b-qge7468cfx] {
        order: 2;
        width: 80% !important;
        border-bottom: 1px solid rgba(70, 92, 57, 0.05) !important;
        padding-left: 0.5rem !important;
        padding-right: 2.5rem !important;
        justify-content: flex-start !important;
        text-align: left !important;
    }

    .cart-table tr td.cart-articolo-cell:first-child[b-qge7468cfx] {
        width: 100% !important;
        border-bottom: 1px solid rgba(70, 92, 57, 0.05) !important;
    }

    .cart-articolo-cell[b-qge7468cfx]::before {
        display: none !important;
    }

    .cart-totale-cell[b-qge7468cfx] {
        order: 10;
        width: 100% !important;
        font-size: 1.15em !important;
        font-weight: 800 !important;
        background-color: rgba(70, 92, 57, 0.04);
        border-bottom: none !important;
        border-bottom-left-radius: 8px;
        border-bottom-right-radius: 8px;
    }

    .cart-delete-cell[b-qge7468cfx] {
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        width: 48px !important;
        height: 48px !important;
        justify-content: center !important;
        align-items: center !important;
        background-color: transparent !important;
        border-bottom: none !important;
        padding: 0 !important;
        margin-top: 0.25rem !important;
    }

    .cart-delete-cell[b-qge7468cfx]::before {
        display: none !important;
    }

    .cart-item-desc[b-qge7468cfx] {
        text-align: left;
    }
}

/* CLIENT DROPDOWN */
.uppercase-client-dropdown .e-input[b-qge7468cfx],
.uppercase-client-dropdown .e-list-item[b-qge7468cfx] {
    text-transform: uppercase !important;
}

/* CHECKOUT CARD */
.checkout-settings-card[b-qge7468cfx] {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    height: 100%;
}

/* ===== VIEW TOGGLE ===== */
.view-toggle-group[b-qge7468cfx] {
    display: flex;
    gap: 2px;
    background: rgba(70, 92, 57, 0.06);
    border-radius: 8px;
    padding: 3px;
    width: fit-content;
}

.view-toggle-btn[b-qge7468cfx] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 32px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #888;
    cursor: pointer;
    transition: all 0.15s ease;
}

.view-toggle-btn:hover[b-qge7468cfx] {
    background: rgba(70, 92, 57, 0.08);
    color: #465C39;
}

.view-toggle-btn.active[b-qge7468cfx] {
    background: white;
    color: #465C39;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

/* ===== PRODUCTS LIST VIEW ===== */
.products-list-view[b-qge7468cfx] {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.list-item[b-qge7468cfx] {
    display: flex;
    align-items: stretch;
    background: white;
    border: 1px solid rgba(70, 92, 57, 0.1);
    border-radius: 14px;
    overflow: hidden;
    min-height: 150px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.list-item:hover[b-qge7468cfx] {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-color: rgba(70, 92, 57, 0.25);
}

.list-item.in-cart[b-qge7468cfx] {
    border-color: #465C39;
    background: rgba(70, 92, 57, 0.02);
}

.list-item.out-of-stock[b-qge7468cfx] {
    opacity: 0.65;
}

.list-item-left[b-qge7468cfx] {
    flex: 1;
    padding: 14px 18px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.list-item-badges[b-qge7468cfx] {
    display: flex;
    gap: 5px;
    margin-bottom: 2px;
}

.list-item-brand[b-qge7468cfx] {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #465C39;
    letter-spacing: 0.06em;
}

.list-item-title[b-qge7468cfx] {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
}

.list-item-meta[b-qge7468cfx] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.8rem;
    color: #888;
}

.list-item-note[b-qge7468cfx] {
    font-size: 0.78rem;
    color: #666;
    font-style: italic;
}

.list-item-right[b-qge7468cfx] {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 18px 8px;
    border-left: 1px solid rgba(70, 92, 57, 0.07);
    background: rgba(244, 244, 248, 0.5);
    min-width: 0;
    width: 430px;
    flex-shrink: 0;
    gap: 6px;
}

.list-item-right-main[b-qge7468cfx] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex: 1;
}

.list-item-rules[b-qge7468cfx] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    font-size: 0.75rem;
    color: #888;
    padding-top: 4px;
}

.list-item-rules b[b-qge7468cfx] {
    color: #465C39;
    font-weight: 700;
}

.list-item-price[b-qge7468cfx] {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 80px;
}

.list-item-controls[b-qge7468cfx] {
    display: flex;
    gap: 12px;
    align-items: center;
}

.list-control-group[b-qge7468cfx] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.list-item-right .qty-stepper-premium[b-qge7468cfx],
.list-item-right .discount-stepper-premium[b-qge7468cfx],
.list-item-right .omaggio-stepper-premium[b-qge7468cfx] {
    min-width: 120px;
}

/* ===== ORDERS LIST VIEW ===== */
.orders-list-view[b-qge7468cfx] {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.order-list-item[b-qge7468cfx] {
    display: flex;
    align-items: stretch;
    background: white;
    border: 1px solid rgba(70, 92, 57, 0.1);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    min-height: 150px;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.order-list-item:hover[b-qge7468cfx] {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateX(2px);
}

.order-list-status[b-qge7468cfx] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 10px;
    min-width: 44px;
}

.order-list-info[b-qge7468cfx] {
    flex: 1;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
}

.order-list-header[b-qge7468cfx] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-list-num[b-qge7468cfx] {
    font-size: 0.85rem;
    font-weight: 700;
    color: #465C39;
}

.order-list-date[b-qge7468cfx] {
    font-size: 0.8rem;
    color: #888;
}

.order-list-client[b-qge7468cfx] {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
}

.order-list-addr[b-qge7468cfx] {
    font-size: 0.8rem;
    color: #888;
}

.order-list-price[b-qge7468cfx] {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    border-left: 1px solid rgba(70, 92, 57, 0.07);
    min-width: 120px;
    justify-content: flex-end;
}

.order-list-actions[b-qge7468cfx] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 14px;
    border-left: 1px solid rgba(70, 92, 57, 0.07);
}

/* ── Mobile responsive per layout ordini ───────────────────── */
@media (max-width: 900px) {
    .header-summary-actions[b-qge7468cfx] {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .top-buttons[b-qge7468cfx] {
        width: 100%;
    }

    .order-stat-bar[b-qge7468cfx] {
        width: 100%;
    }
}

@media (max-width: 768px) {

    /* List view prodotti: pannello destra si restringe */
    .list-item[b-qge7468cfx] {
        flex-direction: column;
    }

    .list-item-right[b-qge7468cfx] {
        width: 100%;
        border-left: none;
        border-top: 1px solid rgba(70, 92, 57, 0.07);
        padding: 10px 14px;
    }

    .list-item-right-main[b-qge7468cfx] {
        flex-wrap: wrap;
        gap: 10px;
    }

    .list-item-controls[b-qge7468cfx] {
        flex-wrap: wrap;
        gap: 8px;
    }

    .list-item-right .qty-stepper-premium[b-qge7468cfx],
    .list-item-right .discount-stepper-premium[b-qge7468cfx],
    .list-item-right .omaggio-stepper-premium[b-qge7468cfx] {
        min-width: 90px;
    }

    /* header-summary-actions: verticale */
    .header-summary-actions[b-qge7468cfx] {
        flex-direction: column;
        align-items: stretch;
    }

    .top-buttons[b-qge7468cfx] {
        flex-direction: column;
        width: 100%;
    }

    .top-buttons .btn-premium-secondary[b-qge7468cfx],
    .top-buttons .btn-premium-action[b-qge7468cfx] {
        width: 100%;
    }

    /* Tabs ordini: scroll orizzontale su mobile */
    .orders-tabs-premium[b-qge7468cfx] {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        align-self: stretch;
    }

    /* Order list items */
    .order-list-item[b-qge7468cfx] {
        flex-wrap: wrap;
    }

    .order-list-price[b-qge7468cfx] {
        min-width: auto;
        padding: 8px 14px;
        border-left: none;
        border-top: 1px solid rgba(70, 92, 57, 0.07);
        width: 100%;
        justify-content: flex-start;
    }

    .order-list-actions[b-qge7468cfx] {
        width: 100%;
        flex-direction: row;
        border-left: none;
        border-top: 1px solid rgba(70, 92, 57, 0.07);
        justify-content: flex-end;
        padding: 8px 14px;
    }
}

@media (max-width: 540px) {

    /* Griglia prodotti: 1 colonna su mobile piccolo */
    .amazon-grid.four-cols[b-qge7468cfx] {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    /* Header-summary-actions ancora più compatto */
    .order-stat-bar[b-qge7468cfx] {
        width: 100%;
    }

    .stat-item[b-qge7468cfx] {
        padding: 0.3rem 0.5rem;
    }

    .stat-value[b-qge7468cfx] {
        font-size: 1rem;
    }
}

@media (max-width: 400px) {
    .amazon-grid.four-cols[b-qge7468cfx] {
        grid-template-columns: 1fr;
    }
}
/* Custom Offcanvas Filters */
.premium-offcanvas[b-qge7468cfx] {
    background-color: #FAFAFA;
    position: fixed;
    z-index: 1045;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .premium-offcanvas[b-qge7468cfx] {
        top: 0;
        right: 0;
        width: 380px;
        height: 100vh;
        transform: translateX(100%);
        border-left: 1px solid #e0e0e0;
        box-shadow: -5px 0 25px rgba(0,0,0,0.1);
    }
    .premium-offcanvas.show[b-qge7468cfx] {
        transform: translateX(0);
    }
}

@media (max-width: 767px) {
    .premium-offcanvas[b-qge7468cfx] {
        bottom: 0;
        left: 0;
        width: 100%;
        height: 88vh; 
        transform: translateY(100%);
        border-top-left-radius: 24px;
        border-top-right-radius: 24px;
        box-shadow: 0 -10px 40px rgba(0,0,0,0.15);
    }
    .premium-offcanvas.show[b-qge7468cfx] {
        transform: translateY(0);
    }
    .premium-offcanvas[b-qge7468cfx]::before {
        content: '';
        position: absolute;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: 45px;
        height: 5px;
        background-color: #ddd;
        border-radius: 10px;
    }
    .premium-offcanvas .offcanvas-header[b-qge7468cfx] {
        padding-top: 25px !important;
    }
}

.offcanvas-backdrop[b-qge7468cfx] {
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(3px);
}

.btn-premium-filter[b-qge7468cfx] {
    background-color: white;
    color: #465C39;
    border: 1px solid rgba(70, 92, 57, 0.2);
    border-radius: 20px;
    padding: 8px 20px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: all 0.2s ease;
}

.btn-premium-filter:hover[b-qge7468cfx] {
    background-color: #465C39;
    color: white;
    border-color: #465C39;
}

.filter-badge[b-qge7468cfx] {
    background-color: #465C39;
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
}

.btn-premium-filter:hover .filter-badge[b-qge7468cfx] {
    background-color: white;
    color: #465C39;
}

.premium-search[b-qge7468cfx] {
    border-radius: 12px;
    border: 1px solid #ddd;
    padding: 10px 15px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.02);
}

.premium-search:focus[b-qge7468cfx] {
    border-color: #465C39;
    box-shadow: 0 0 0 0.25rem rgba(70, 92, 57, 0.25);
}

.filter-options-list[b-qge7468cfx] {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 250px;
    overflow-y: auto;
    padding: 15px 5px 15px 0;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    background-color: #FAFAFA;
}

/* Scrollbar for filter list */
.filter-options-list[b-qge7468cfx]::-webkit-scrollbar {
    width: 6px;
}
.filter-options-list[b-qge7468cfx]::-webkit-scrollbar-track {
    background: transparent;
}
.filter-options-list[b-qge7468cfx]::-webkit-scrollbar-thumb {
    background-color: rgba(70, 92, 57, 0.2);
    border-radius: 10px;
}

.filter-checkbox-item[b-qge7468cfx] {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    margin: 0 12px;
    background-color: white;
    border: 1px solid #eee;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.filter-checkbox-item:hover[b-qge7468cfx] {
    border-color: rgba(70, 92, 57, 0.3);
    background-color: rgba(70, 92, 57, 0.02);
}

.filter-checkbox-item.active[b-qge7468cfx] {
    border-color: #465C39;
    background-color: rgba(70, 92, 57, 0.05);
}

.checkbox-indicator[b-qge7468cfx] {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid #ccc;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.filter-checkbox-item.active .checkbox-indicator[b-qge7468cfx] {
    background-color: #465C39;
    border-color: #465C39;
}

.filter-label[b-qge7468cfx] {
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}

.filter-checkbox-item.active .filter-label[b-qge7468cfx] {
    color: #465C39;
    font-weight: 600;
}

/* Popup quantità non disponibili al ripristino bozza */
.shortage-dialog-body[b-qge7468cfx] {
    padding: 4px 2px;
    max-height: 70vh;
    overflow-y: auto;
}

.shortage-dialog-intro[b-qge7468cfx] {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.shortage-list[b-qge7468cfx] {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shortage-card[b-qge7468cfx] {
    border: 1px solid #e3e8dc;
    border-left: 4px solid #d9822b;
    border-radius: 8px;
    padding: 12px 14px;
    background: #fff;
}

.shortage-card-head[b-qge7468cfx] {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    word-break: break-word;
}

.shortage-badge[b-qge7468cfx] {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(70, 92, 57, 0.1);
    color: #465C39;
    font-weight: 600;
}

.shortage-card-desc[b-qge7468cfx] {
    font-size: 0.85rem;
    color: #666;
    margin-top: 2px;
    word-break: break-word;
}

.shortage-card-qty[b-qge7468cfx] {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 10px;
}

.shortage-card-qty > div[b-qge7468cfx] {
    display: flex;
    flex-direction: column;
    min-width: 80px;
}

.shortage-qty-label[b-qge7468cfx] {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #888;
}

.shortage-qty-loaded[b-qge7468cfx] {
    color: #465C39;
}

.shortage-dialog-actions[b-qge7468cfx] {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}

.shortage-dialog-actions .btn-premium-action[b-qge7468cfx] {
    width: 100%;
    justify-content: center;
}

@media (min-width: 576px) {
    .shortage-dialog-actions .btn-premium-action[b-qge7468cfx] {
        width: auto;
    }
}
/* /Components/Pages/Home.razor.rz.scp.css */
.home-dashboard[b-ix98wkwg13] {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    animation: fadeIn-b-ix98wkwg13 0.5s ease-out;
}

@keyframes fadeIn-b-ix98wkwg13 {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.premium-hero[b-ix98wkwg13] {
    background: linear-gradient(135deg, rgba(70, 92, 57, 0.08) 0%, rgba(168, 187, 130, 0.15) 100%);
    border: 1px solid rgba(70, 92, 57, 0.15);
    border-radius: 24px;
    padding: 3.5rem 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.02);
    width: 100%;
    margin: 0;
    text-align: center;
    display: flex;
    justify-content: center;
}

    .premium-hero[b-ix98wkwg13]::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -10%;
        width: 400px;
        height: 400px;
        background: radial-gradient(circle, rgba(70, 92, 57, 0.15) 0%, transparent 70%);
        border-radius: 50%;
        pointer-events: none;
    }

.hero-content[b-ix98wkwg13] {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.premium-badge[b-ix98wkwg13] {
    align-self: flex-start;
    background: rgba(70, 92, 57, 0.1);
    color: #465C39;
    border: 1px solid rgba(70, 92, 57, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-title[b-ix98wkwg13] {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
    letter-spacing: -0.03em;
    color: #333333;
}

.gradient-text[b-ix98wkwg13] {
    background: linear-gradient(135deg, #465C39, #A8BB82);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle[b-ix98wkwg13] {
    font-size: 1.2rem;
    color: #686868;
    margin: 0;
    line-height: 1.6;
}

.hero-actions[b-ix98wkwg13] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 1rem;
    flex-wrap: nowrap;
}

.btn-premium-primary[b-ix98wkwg13] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #465C39 0%, #A8BB82 100%);
    color: #ffffff;
    padding: 1rem 1.75rem;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(70, 92, 57, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

    .btn-premium-primary:hover[b-ix98wkwg13] {
        transform: translateY(-2px);
        box-shadow: 0 15px 30px rgba(70, 92, 57, 0.35);
        color: #ffffff;
    }

.btn-premium-secondary[b-ix98wkwg13] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(70, 92, 57, 0.05);
    color: #465C39;
    padding: 1rem 1.75rem;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    border: 1px solid rgba(70, 92, 57, 0.15);
    transition: all 0.3s ease;
}

    .btn-premium-secondary:hover[b-ix98wkwg13] {
        background: rgba(70, 92, 57, 0.1);
        color: #333333;
        border-color: rgba(70, 92, 57, 0.25);
    }

/* MAIN DASHBOARD LAYOUT: Ora occupa il 100% dello schermo libero */
.dashboard-columns[b-ix98wkwg13] {
    display: block;
    width: 100%;
    margin-top: 1rem;
}

.dashboard-column[b-ix98wkwg13] {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%; /* Consente l'estensione totale */
}

.column-header[b-ix98wkwg13] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 2px solid rgba(70, 92, 57, 0.12);
    padding-bottom: 0.75rem;
    margin-bottom: 0.5rem;
    width: 100%; /* La linea e il titolo ora coprono tutta la pagina */
}

.column-header-icon[b-ix98wkwg13] {
    color: #465C39;
    flex-shrink: 0;
}

.column-title[b-ix98wkwg13] {
    font-size: 1.35rem;
    font-weight: 700;
    color: #465C39;
    margin: 0;
    flex-grow: 1;
}

/* Griglia interna delle statistiche: sempre 2 colonne distese */
.column-stats-grid[b-ix98wkwg13] {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.stat-card[b-ix98wkwg13] {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(70, 92, 57, 0.1);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    width: 100%;
    box-sizing: border-box;
}

    .stat-card:hover[b-ix98wkwg13] {
        transform: translateY(-3px);
        border-color: rgba(70, 92, 57, 0.25);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    }

.stat-icon-wrapper[b-ix98wkwg13] {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.sales-icon[b-ix98wkwg13] {
    background: rgba(70, 92, 57, 0.12);
    color: #465C39;
    border: 1px solid rgba(70, 92, 57, 0.25);
}

.order-icon[b-ix98wkwg13] {
    background: rgba(70, 92, 57, 0.08);
    color: #465C39;
    border: 1px solid rgba(70, 92, 57, 0.2);
}

.promo-icon[b-ix98wkwg13] {
    background: rgba(168, 187, 130, 0.12);
    color: #465C39;
    border: 1px solid rgba(168, 187, 130, 0.25);
}

.clients-icon[b-ix98wkwg13] {
    background: rgba(168, 187, 130, 0.08);
    color: #465C39;
    border: 1px solid rgba(168, 187, 130, 0.2);
}

.stat-info[b-ix98wkwg13] {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.stat-label[b-ix98wkwg13] {
    font-size: 0.85rem;
    color: #686868;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.stat-value[b-ix98wkwg13] {
    font-size: 1.75rem;
    font-weight: 800;
    color: #333333;
    line-height: 1.2;
}

.stat-footer[b-ix98wkwg13] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.stat-delta[b-ix98wkwg13] {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 20px;
}

.stat-delta-up[b-ix98wkwg13] {
    color: #16a34a;
    background: rgba(22, 163, 74, 0.1);
}

.stat-delta-down[b-ix98wkwg13] {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
}

.stat-py-label[b-ix98wkwg13] {
    font-size: 0.78rem;
    color: #a0a0a0;
    font-weight: 400;
}

.stat-days-ago[b-ix98wkwg13] {
    font-size: 0.82rem;
    color: #8b5cf6;
    font-weight: 600;
    background: rgba(139, 92, 246, 0.08);
    padding: 0.2rem 0.55rem;
    border-radius: 20px;
}

/* Media Queries per il Responsive */
@media (max-width: 768px) {
    .premium-hero[b-ix98wkwg13] {
        padding: 2.5rem 1.5rem;
    }

    .hero-title[b-ix98wkwg13] {
        font-size: 2.25rem;
    }

    .hero-subtitle[b-ix98wkwg13] {
        font-size: 1.05rem;
    }

    .hero-actions[b-ix98wkwg13] {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-premium-primary[b-ix98wkwg13], .btn-premium-secondary[b-ix98wkwg13] {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    /* Su smartphone le card collassano su 1 singola colonna per leggibilità */
    .column-stats-grid[b-ix98wkwg13] {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .premium-hero[b-ix98wkwg13] {
        padding: 1.75rem 1rem;
        border-radius: 16px;
    }

    .hero-title[b-ix98wkwg13] {
        font-size: 1.8rem;
    }

    .hero-subtitle[b-ix98wkwg13] {
        font-size: 0.95rem;
    }

    .btn-premium-primary[b-ix98wkwg13], .btn-premium-secondary[b-ix98wkwg13] {
        padding: 0.8rem 1.25rem;
        font-size: 0.95rem;
    }

    .premium-badge[b-ix98wkwg13] {
        font-size: 0.75rem;
        padding: 0.3rem 0.75rem;
    }
}



.kpi-controls-header[b-ix98wkwg13] {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
}

.date-filter-title[b-ix98wkwg13] {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #465C39;
    width: 100%;
}

.date-filter-panel[b-ix98wkwg13] {
    width: 100%;
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.date-filter-fields[b-ix98wkwg13] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    align-items: flex-end;
    width: 100%;
}

.date-field[b-ix98wkwg13] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
}

.field-label[b-ix98wkwg13] {
    font-size: 0.8rem;
    font-weight: 600;
    color: #465C39;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.field-input[b-ix98wkwg13] {
    width: 100%;
    height: 42px;
    padding: 0 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    color: inherit;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: white;
}

.field-input:focus[b-ix98wkwg13] {
    border-color: #465C39;
    box-shadow: 0 0 0 3px rgba(70, 92, 57, 0.15);
}

@media (max-width: 768px) {
    .date-filter-fields[b-ix98wkwg13] {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* Styling per SfComboBox (filtro Cliente Admin) per eguagliare .field-input */
[b-ix98wkwg13] .dashboard-combobox.e-input-group,
[b-ix98wkwg13] .dashboard-combobox.e-input-group.e-control-wrapper {
    width: 100% !important;
    padding: 0 0.8rem !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    height: 42px !important;
    font-size: 0.9rem !important;
    outline: none !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    background-color: white !important;
    font-family: inherit !important;
    color: inherit !important;
}

[b-ix98wkwg13] .dashboard-combobox.e-input-group.e-input-focus,
[b-ix98wkwg13] .dashboard-combobox.e-input-group.e-control-wrapper.e-input-focus {
    border-color: #465C39 !important;
    box-shadow: 0 0 0 3px rgba(70, 92, 57, 0.15) !important;
}

[b-ix98wkwg13] .dashboard-combobox .e-input {
    font-size: 0.9rem !important;
    height: 100% !important;
    font-family: inherit !important;
    color: inherit !important;
    padding: 0 !important;
    margin: 0 !important;
}

[b-ix98wkwg13] .dashboard-combobox .e-input-group-icon {
    border: none !important;
    background: transparent !important;
    min-height: unset !important;
}
/* /Components/Pages/Login.razor.rz.scp.css */
.password-toggle[b-w35lm8dcvp] {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    z-index: 2;
}

.password-toggle:hover[b-w35lm8dcvp] {
    color: #465C39;
}

.premium-input[b-w35lm8dcvp] {
    padding-right: 40px !important;
}
.login-page-wrapper[b-w35lm8dcvp] {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 50%, #f4f4f8 0%, #e8efe0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    overflow: hidden;
    font-family: 'Outfit', sans-serif;
}

/* Decorazione Sfondo Astratta */
.custom-stars-bg[b-w35lm8dcvp] {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(70, 92, 57, 0.15) 0%, rgba(168, 187, 130, 0.05) 50%, transparent 80%);
    filter: blur(40px);
    border-radius: 50%;
    top: -100px;
    left: -100px;
    animation: pulseBg-b-w35lm8dcvp 8s infinite alternate ease-in-out;
}

@keyframes pulseBg-b-w35lm8dcvp {
    0% { transform: scale(0.9); opacity: 0.6; }
    100% { transform: scale(1.2); opacity: 1; }
}

/* Container Scheda Login */
.login-card-container[b-w35lm8dcvp] {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(70, 92, 57, 0.1);
    border-radius: 24px;
    padding: 2.5rem 2.5rem;
    width: 100%;
    max-width: 420px;
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(70, 92, 57, 0.05);
    position: relative;
    z-index: 10;
    animation: cardEntrance-b-w35lm8dcvp 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes cardEntrance-b-w35lm8dcvp {
    from { opacity: 0; transform: scale(0.92) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Header & Logo */
.login-header[b-w35lm8dcvp] {
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo-container[b-w35lm8dcvp] {
    background-color: #465C39;
    border-radius: 16px;
    padding: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    box-shadow: 0 10px 25px rgba(70, 92, 57, 0.2);
}

.brand-logo[b-w35lm8dcvp] {
    max-width: 220px;
    height: auto;
    object-fit: contain;
}

.brand-subtitle[b-w35lm8dcvp] {
    color: #686868;
    font-size: 0.95rem;
    margin: 0.35rem 0 0 0;
}

/* Banner di Errore */
.auth-error-banner[b-w35lm8dcvp] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.75rem;
    animation: shakeError-b-w35lm8dcvp 0.4s ease-in-out;
}

@keyframes shakeError-b-w35lm8dcvp {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

.error-icon[b-w35lm8dcvp] {
    font-size: 1.1rem;
}

.error-text[b-w35lm8dcvp] {
    color: #fca5a5;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Form Inputs */
.login-form[b-w35lm8dcvp] {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-container[b-w35lm8dcvp] {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.custom-label[b-w35lm8dcvp] {
    font-size: 0.85rem;
    font-weight: 600;
    color: #465C39;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.input-wrapper[b-w35lm8dcvp] {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon[b-w35lm8dcvp] {
    position: absolute;
    left: 1rem;
    font-size: 1.1rem;
    color: #64748b;
    pointer-events: none;
    transition: color 0.2s;
}

.premium-input[b-w35lm8dcvp] {
    width: 100%;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(70, 92, 57, 0.2);
    border-radius: 14px;
    padding: 0.9rem 1rem 0.9rem 2.75rem;
    color: #333333;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: all 0.25s ease;
}

.premium-input[b-w35lm8dcvp]::placeholder {
    color: #8c8c8c;
}

.premium-input:focus[b-w35lm8dcvp] {
    border-color: #465C39;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 3px rgba(70, 92, 57, 0.2);
}

.input-wrapper:focus-within .input-icon[b-w35lm8dcvp] {
    color: #465C39;
}

/* Submission Button */
.btn-login-submit[b-w35lm8dcvp] {
    margin-top: 0.5rem;
    background: linear-gradient(135deg, #465C39 0%, #A8BB82 100%);
    color: white;
    border: none;
    padding: 1.1rem;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 10px 25px rgba(70, 92, 57, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-login-submit:hover[b-w35lm8dcvp] {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(70, 92, 57, 0.5);
    background: linear-gradient(135deg, #A8BB82 0%, #465C39 100%);
}

.btn-arrow[b-w35lm8dcvp] {
    font-size: 1.2rem;
    transition: transform 0.2s;
}

.btn-login-submit:hover .btn-arrow[b-w35lm8dcvp] {
    transform: translateX(3px);
}

/* Footer Info */
.login-footer[b-w35lm8dcvp] {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.info-badge[b-w35lm8dcvp] {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    font-size: 0.85rem;
    display: inline-block;
    align-self: center;
}

.db-note[b-w35lm8dcvp] {
    color: #64748b;
    font-size: 0.8rem;
    margin: 0;
    font-style: italic;
}

/* Overlay di attesa durante l'accesso */
.login-loading[b-w35lm8dcvp] {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.75);
    font-family: 'Outfit', sans-serif;
    color: #465C39;
    font-weight: 600;
}

.login-loading.visible[b-w35lm8dcvp] {
    display: flex;
}
/* /Components/Pages/VerificaOrdini.razor.rz.scp.css */
/* GestioneOrdini.razor.css */

.orders-dashboard[b-78korj6nql] {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 2rem;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Header & Summary */

.header-summary-actions[b-78korj6nql] {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    background: rgba(70, 92, 57, 0.04);
    border: 1px solid rgba(70, 92, 57, 0.12);
    border-radius: 20px;
    padding: 0.75rem 1.25rem;
}

/* Stat bar unificata (Articoli + Totale) */
.order-stat-bar[b-78korj6nql] {
    display: flex;
    align-items: stretch;
    width: auto;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 14px;
    border: 1px solid rgba(70, 92, 57, 0.12);
    overflow: hidden;
}

.stat-item[b-78korj6nql] {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.8rem;
    gap: 0.1rem;
}

.stat-sep[b-78korj6nql] {
    width: 1px;
    background: rgba(70, 92, 57, 0.12);
    align-self: stretch;
    flex-shrink: 0;
}

.stat-label[b-78korj6nql] {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: #9ca3af;
    letter-spacing: 1px;
    font-weight: 700;
}

.stat-value[b-78korj6nql] {
    font-size: 1.15rem;
    font-weight: 800;
    color: #465C39;
    line-height: 1.2;
}

.stat-value.total-val[b-78korj6nql] {
    background: linear-gradient(135deg, #465C39 0%, #A8BB82 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Bottoni uguali */
.top-buttons[b-78korj6nql] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: auto;
}

.top-buttons .btn-premium-secondary[b-78korj6nql],
.top-buttons .btn-premium-action[b-78korj6nql] {
    display: flex;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
}

.btn-checkout[b-78korj6nql] {
    background: linear-gradient(135deg, #465C39 0%, #A8BB82 100%);
    border: 1px solid transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(70, 92, 57, 0.3);
}

.btn-checkout:hover[b-78korj6nql] {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(70, 92, 57, 0.5);
}

.btn-save[b-78korj6nql] {
    background: rgba(70, 92, 57, 0.05);
    border: 1px solid rgba(70, 92, 57, 0.1);
    color: #686868;
}

.btn-save:hover[b-78korj6nql] {
    background: rgba(70, 92, 57, 0.1);
    color: #465C39;
    border-color: rgba(70, 92, 57, 0.2);
}

/* ── Search toolbar (inside products-container) ─────────── */
.search-toolbar[b-78korj6nql] {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.1rem;
}

.search-row[b-78korj6nql] {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.control-stacked[b-78korj6nql] {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.control-label-sm[b-78korj6nql] {
    font-size: 0.75rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 0.25rem;
}

.search-controls-row[b-78korj6nql] {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
}

.search-controls-row .page-size-wrapper[b-78korj6nql] {
    justify-self: end;
}

.search-wrapper-glass[b-78korj6nql] {
    width: 100%;
    position: relative;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(70, 92, 57, 0.13);
    border-radius: 14px;
    padding: 0 0.5rem 0 2.75rem;
    transition: border-color 0.25s, box-shadow 0.25s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    height: 44px;
}

.search-wrapper-glass:focus-within[b-78korj6nql] {
    border-color: rgba(70, 92, 57, 0.32);
    box-shadow: 0 4px 20px rgba(70, 92, 57, 0.08);
}

.search-icon[b-78korj6nql] {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

.results-count-badge[b-78korj6nql] {
    white-space: nowrap;
    font-size: 0.9rem;
    color: #6b7280;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(70, 92, 57, 0.1);
    border-radius: 10px;
    padding: 0 0.85rem;
    height: 44px;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    letter-spacing: 0.2px;
}

.results-count-badge strong[b-78korj6nql] {
    font-size: 1.1rem;
    font-weight: 800;
    color: #465C39 !important;
}

.filters-group[b-78korj6nql] {
    display: flex;
    gap: 0.5rem;
}

.toggle-oos-btn[b-78korj6nql] {
    flex: 1;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b7280;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(70, 92, 57, 0.1);
    border-radius: 10px;
    padding: 0 0.6rem;
    height: 44px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toggle-oos-btn:hover[b-78korj6nql] {
    border-color: rgba(239, 68, 68, 0.35);
    color: #ef4444;
}

.toggle-oos-btn.active[b-78korj6nql] {
    background: rgba(239, 68, 68, 0.06);
    border-color: rgba(239, 68, 68, 0.35);
    color: #ef4444;
}

.toggle-oos-btn .toggle-dot[b-78korj6nql] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    transition: background 0.2s;
    flex-shrink: 0;
}

.toggle-oos-btn.active .toggle-dot[b-78korj6nql] {
    background: #ef4444;
}

/* Super aggressive override for Syncfusion Search Input */
[b-78korj6nql] .premium-search-input,
[b-78korj6nql] .premium-search-input.e-control-wrapper,
[b-78korj6nql] .premium-search-input.e-input-group,
[b-78korj6nql] .premium-search-input.e-input-group .e-input-focus,
[b-78korj6nql] .premium-search-input .e-input-group,
[b-78korj6nql] .premium-search-input .e-control-wrapper,
[b-78korj6nql] .premium-search-input .e-input-group.e-control-wrapper {
    background: transparent !important;
    border: none !important;
    border-style: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
    height: 100% !important;
    width: 100% !important;
}

[b-78korj6nql] .premium-search-input .e-input,
[b-78korj6nql] .premium-search-input .e-input:focus,
[b-78korj6nql] .premium-search-input input.e-input {
    color: #333333 !important;
    font-size: 1.125rem !important;
    height: 44px !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding-left: 0 !important;
}

/* Specific fix for Syncfusion internal border elements */
[b-78korj6nql] .premium-search-input .e-input-group-icon {
    display: none !important;
    /* Hide dropdown icon if present in AutoComplete */
}

[b-78korj6nql] .premium-search-input .e-clear-icon {
    background: transparent !important;
    color: #6b7280 !important;
}

/* Layout Main */
.main-content-layout[b-78korj6nql] {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.section-label[b-78korj6nql] {
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #465C39;
    margin: 1.5rem 0 0.75rem 0.5rem;
}

.section-label.mini[b-78korj6nql] {
    font-size: 0.788rem;
    margin-top: 0.5rem;
    color: rgba(70, 92, 57, 0.55);
}

.subbrand-filter-group[b-78korj6nql] {
    margin-top: 0.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.25rem;
    animation: fadeIn-b-78korj6nql 0.35s ease-out;
}

.section-label.subbrand-group-label[b-78korj6nql] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #465C39;
    margin: 0.75rem 0 0.25rem 0.5rem;
}

.subbrand-filter-container[b-78korj6nql] {
    margin-bottom: 1.5rem;
    padding-left: 0.5rem;
}

.subbrand-chips[b-78korj6nql] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.subbrand-chip[b-78korj6nql] {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(70, 92, 57, 0.15);
    color: #686868;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.938rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.subbrand-chip:hover[b-78korj6nql] {
    background: rgba(255, 255, 255, 1);
    color: #465C39;
    border-color: rgba(70, 92, 57, 0.3);
}

.subbrand-chip.active[b-78korj6nql] {
    background: linear-gradient(135deg, #465C39 0%, #A8BB82 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(70, 92, 57, 0.25);
}

@keyframes fadeIn-b-78korj6nql {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Brands Horizontal Filter (Compact) */
.brands-horizontal-premium[b-78korj6nql] {
    margin-bottom: 1.5rem;
    background: rgba(70, 92, 57, 0.08);
    padding: 0.75rem 3.5rem;
    /* Increased side padding for arrows */
    border-radius: 20px;
    border: 1px solid rgba(70, 92, 57, 0.12);
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.02);
}

/* Hide the old fade indicator as we use arrows now */
.brands-horizontal-premium[b-78korj6nql]::after {
    display: none;
}

.carousel-nav[b-78korj6nql] {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(70, 92, 57, 0.05);
    border: 1px solid rgba(70, 92, 57, 0.1);
    color: #465C39;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.carousel-nav:hover[b-78korj6nql] {
    background: rgba(70, 92, 57, 0.1);
    border-color: #465C39;
    color: #465C39;
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev[b-78korj6nql] {
    left: 1rem;
}

.carousel-nav.next[b-78korj6nql] {
    right: 1rem;
}

.brand-square-grid[b-78korj6nql] {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    scrollbar-width: none;
    /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.brand-square-grid[b-78korj6nql]::-webkit-scrollbar {
    display: none;
}

.brand-square[b-78korj6nql] {
    min-width: fit-content;
    height: 60px;
    padding: 0 1.75rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 100px;
    border: 1px solid rgba(70, 92, 57, 0.15);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    flex-shrink: 0;
    scroll-snap-align: start;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    overflow: hidden;
}

.brand-square:hover[b-78korj6nql] {
    background: rgba(255, 255, 255, 1);
    border-color: #465C39;
    transform: translateY(-2px);
}

.brand-square.active[b-78korj6nql] {
    background: #465C39;
    border-color: #465C39;
}

.brand-square-content[b-78korj6nql] {
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 0;
    text-align: center;
    gap: 0.5rem;
}

.brand-icon-wrapper[b-78korj6nql] {
    display: none !important;
}

.brand-square:hover .brand-icon-wrapper[b-78korj6nql],
.brand-square.active .brand-icon-wrapper[b-78korj6nql] {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
}

.brand-square-name[b-78korj6nql] {
    font-size: 0.95rem;
    font-weight: 700;
    color: #4b5563;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.brand-square.active .brand-square-name[b-78korj6nql] {
    color: #ffffff;
}

.brand-square-count[b-78korj6nql] {
    position: static;
    font-size: 0.75rem;
    background: rgba(70, 92, 57, 0.08);
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
    color: #686868;
}

/* ── Products Grid ───────────────────────────────────────── */
.products-container[b-78korj6nql] {
    flex: 1;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.amazon-grid.four-cols[b-78korj6nql] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
    width: 100%;
}

/* ── Product Card ─────────────────────────────────────────── */
.product-card[b-78korj6nql] {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(70, 92, 57, 0.14);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 0 0 0 transparent;
}

.product-card:hover[b-78korj6nql] {
    transform: translateY(-4px);
    border-color: rgba(70, 92, 57, 0.28);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

/* in-cart: sottile barra verde a sinistra */
.product-card.in-cart[b-78korj6nql] {
    border-color: rgba(168, 187, 130, 0.7);
    background: rgba(168, 187, 130, 0.03);
}

.product-card.in-cart[b-78korj6nql]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #465C39, #A8BB82);
    border-radius: 16px 0 0 16px;
}

/* novità */
.product-card.highlight-new[b-78korj6nql] {
    border-color: rgba(16, 185, 129, 0.3);
}

.product-card.highlight-new:hover[b-78korj6nql] {
    border-color: rgba(16, 185, 129, 0.55);
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.1);
}

/* esaurito */
.product-card.out-of-stock[b-78korj6nql] {
    opacity: 0.62;
    filter: grayscale(0.35);
}

/* ── Area immagine ───────────────────────────────────────── */
.card-image[b-78korj6nql] {
    position: relative;
    height: 188px;
    background: #f6f7f4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.4rem 1.4rem 1.4rem;
    overflow: hidden;
    cursor: pointer;
}

.card-image-hint[b-78korj6nql] {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(70, 92, 57, 0);
    transition: background 0.25s ease;
    pointer-events: none;
}

.card-image-hint-icon[b-78korj6nql] {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.25s ease, transform 0.25s ease;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #465C39;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.product-card:hover .card-image-hint[b-78korj6nql] {
    background: rgba(70, 92, 57, 0.06);
}

.product-card:hover .card-image-hint-icon[b-78korj6nql] {
    opacity: 1;
    transform: scale(1);
}

.card-image[b-78korj6nql]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 32px;
    background: linear-gradient(to bottom, transparent, rgba(246, 247, 244, 0.9));
    pointer-events: none;
}

.card-image img[b-78korj6nql] {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.09));
}

.product-card:hover .card-image img[b-78korj6nql] {
    transform: scale(1.05);
}

.product-card.out-of-stock .card-image img[b-78korj6nql] {
    opacity: 0.55;
}

/* Placeholder */
.img-placeholder-box[b-78korj6nql] {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
            rgba(70, 92, 57, 0.03) 0%,
            rgba(168, 187, 130, 0.06) 100%);
}

/* Brand overlay top-left */
.card-brand-overlay[b-78korj6nql] {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    background: rgba(50, 68, 38, 0.72);
    backdrop-filter: blur(6px);
    padding: 0.28rem 0.7rem 0.28rem 0.6rem;
    border-radius: 0 0 10px 0;
}

.brand-overlay-name[b-78korj6nql] {
    font-size: 0.725rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    white-space: nowrap;
}

/* Badges */
.badge-container[b-78korj6nql] {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    align-items: flex-end;
    z-index: 2;
}

.badge[b-78korj6nql] {
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.badge.new[b-78korj6nql] {
    background: #eab308;
    color: #fff;
    box-shadow: 0 2px 6px rgba(234, 179, 8, 0.35);
}

.badge.promo[b-78korj6nql] {
    background: #10b981;
    color: #fff;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.35);
}

.badge.sold-out[b-78korj6nql] {
    background: #ef4444;
    color: #fff;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
}

.badge.discount[b-78korj6nql] {
    background: #ef4444;
    color: #fff;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
}

/* ── Card Body ───────────────────────────────────────────── */
.card-body[b-78korj6nql] {
    padding: 0.85rem 1rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Sub-brand pills */
.subbrand-row[b-78korj6nql] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 0.35rem;
}

.sub-brand-pill[b-78korj6nql] {
    display: inline-block;
    padding: 0.1rem 0.45rem;
    border-radius: 50px;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    background: transparent;
    border: 1px solid rgba(70, 92, 57, 0.18);
    color: #6b7280;
    white-space: nowrap;
}

.sub-brand-pill.secondary[b-78korj6nql] {
    border-color: rgba(14, 165, 233, 0.25);
    color: #64b0d4;
}

.product-title[b-78korj6nql] {
    font-size: 1.075rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.45;
    margin: 0 0 0.65rem;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.78em;
}

.product-meta[b-78korj6nql] {
    margin-bottom: 0.35rem;
}

.product-sku[b-78korj6nql] {
    font-size: 0.725rem;
    color: #6b7280;
    letter-spacing: 0.2px;
}

.sku-label[b-78korj6nql] {
    font-weight: 700;
    color: #4b5563;
    font-size: 0.725rem;
}

.meta-sep[b-78korj6nql] {
    border: none;
    border-top: 1px solid rgba(70, 92, 57, 0.1);
    margin: 0.3rem 0;
}

.product-note[b-78korj6nql] {
    font-size: 0.725rem;
    color: #9ca3af;
    line-height: 1.45;
    font-style: italic;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Card Footer ─────────────────────────────────────────── */
.card-footer[b-78korj6nql] {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(70, 92, 57, 0.07);
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.price-row[b-78korj6nql] {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.55rem;
}

.current-price[b-78korj6nql] {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -0.4px;
}

.old-price[b-78korj6nql] {
    font-size: 0.95rem;
    color: #c4c4c4;
    text-decoration: line-through;
}

.order-rules[b-78korj6nql] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.775rem;
    color: #6b7280;
    font-weight: 500;
}

.order-rules b[b-78korj6nql] {
    color: #465C39 !important;
    font-weight: 700;
}

.rules-sep[b-78korj6nql] {
    color: #9ca3af;
    font-size: 1.125rem;
    line-height: 1;
}

/* ── Controls ────────────────────────────────────────────── */
.card-controls[b-78korj6nql] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
    overflow: hidden;
}

.qty-group-full[b-78korj6nql] {
    grid-column: 1 / -1;
}

.disabled-controls[b-78korj6nql] {
    pointer-events: none;
    opacity: 0.35;
}

.control-group[b-78korj6nql] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    overflow: hidden;
}

.control-label[b-78korj6nql] {
    font-size: 0.65rem;
    font-weight: 800;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qty-stepper-premium[b-78korj6nql],
.discount-stepper-premium[b-78korj6nql],
.omaggio-stepper-premium[b-78korj6nql] {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    background: rgba(70, 92, 57, 0.04);
    border-radius: 8px;
    padding: 0.1rem;
    border: 1px solid rgba(70, 92, 57, 0.12);
    transition: border-color 0.2s, background 0.2s;
    box-sizing: border-box;
}

.qty-stepper-premium:focus-within[b-78korj6nql],
.discount-stepper-premium:focus-within[b-78korj6nql],
.omaggio-stepper-premium:focus-within[b-78korj6nql] {
    border-color: #A8BB82;
    background: rgba(70, 92, 57, 0.07);
}

.step-btn[b-78korj6nql] {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border: none;
    background: transparent;
    color: #465C39;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.15s;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.step-btn:hover:not(:disabled)[b-78korj6nql] {
    background: rgba(70, 92, 57, 0.1);
}

.step-btn:disabled[b-78korj6nql] {
    cursor: not-allowed;
    opacity: 0.4;
}

.qty-val[b-78korj6nql],
.discount-val[b-78korj6nql],
.omaggio-val[b-78korj6nql] {
    flex: 1;
    width: 0;
    min-width: 1.80rem;
    background: transparent;
    border: none;
    color: #1a1a1a;
    text-align: center;
    font-weight: 700;
    font-size: 1.05rem;
    outline: none;
}

.qty-val[b-78korj6nql]::-webkit-inner-spin-button,
.discount-val[b-78korj6nql]::-webkit-inner-spin-button,
.omaggio-val[b-78korj6nql]::-webkit-inner-spin-button {
    display: none;
}

.qty-val:disabled[b-78korj6nql],
.discount-val:disabled[b-78korj6nql],
.omaggio-val:disabled[b-78korj6nql] {
    cursor: not-allowed;
}

/* ── Detail Modal ────────────────────────────────────────── */
.modal-overlay[b-78korj6nql] {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeInOverlay-b-78korj6nql 0.2s ease-out;
}

@keyframes fadeInOverlay-b-78korj6nql {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-card[b-78korj6nql] {
    background: #fff;
    border-radius: 24px;
    border: 1px solid rgba(70, 92, 57, 0.1);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
    width: 100%;
    max-width: 520px;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUpModal-b-78korj6nql 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

@keyframes slideUpModal-b-78korj6nql {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close[b-78korj6nql] {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 10;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(70, 92, 57, 0.12);
    color: #686868;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.modal-close:hover[b-78korj6nql] {
    background: #fff;
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.modal-image-area[b-78korj6nql] {
    position: relative;
    height: 240px;
    background: #f6f7f4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    flex-shrink: 0;
}

.modal-image-area img[b-78korj6nql] {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

.modal-img-placeholder[b-78korj6nql] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.modal-brand-overlay[b-78korj6nql] {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(50, 68, 38, 0.72);
    backdrop-filter: blur(6px);
    padding: 0.3rem 0.85rem 0.3rem 0.75rem;
    border-radius: 0 0 10px 0;
}

.modal-badge-row[b-78korj6nql] {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    align-items: flex-end;
}

.modal-body[b-78korj6nql] {
    padding: 1.25rem 1.5rem 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modal-subbrand-row[b-78korj6nql] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.modal-title[b-78korj6nql] {
    font-size: 1.312rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.45;
    margin: 0;
}

.modal-sku[b-78korj6nql] {
    font-size: 0.875rem;
    color: #6b7280;
}

.modal-note[b-78korj6nql] {
    font-size: 1rem;
    color: #9ca3af;
    font-style: italic;
    line-height: 1.5;
    margin: 0;
    padding: 0.6rem 0.85rem;
    background: rgba(70, 92, 57, 0.03);
    border-left: 2px solid rgba(70, 92, 57, 0.2);
    border-radius: 0 8px 8px 0;
}

.modal-price-block[b-78korj6nql] {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
}

.modal-rules[b-78korj6nql] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

.modal-rules b[b-78korj6nql] {
    color: #465C39;
    font-weight: 700;
}

.modal-divider[b-78korj6nql] {
    border: none;
    border-top: 1px solid rgba(70, 92, 57, 0.08);
    margin: 0;
}

.modal-controls[b-78korj6nql] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.modal-controls .control-group[b-78korj6nql] {
    /* No flex needed for grid children, but min-width helps prevent overflow */
    min-width: 0;
}

/* ── Page size selector ──────────────────────────────────── */
.page-size-wrapper[b-78korj6nql] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.page-size-label[b-78korj6nql] {
    font-size: 0.85rem;
    font-weight: 600;
    color: #9ca3af;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.page-size-selector[b-78korj6nql] {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(70, 92, 57, 0.1);
    border-radius: 10px;
    padding: 0.2rem;
    height: 44px;
    flex-shrink: 0;
}

.page-size-btn[b-78korj6nql] {
    min-width: 36px;
    height: 32px;
    border-radius: 7px;
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0 0.45rem;
    font-family: inherit;
}

.page-size-btn:hover[b-78korj6nql] {
    background: rgba(70, 92, 57, 0.06);
    color: #465C39;
}

.page-size-btn.active[b-78korj6nql] {
    background: #465C39;
    color: #fff;
}

/* ── Pagination info label ───────────────────────────────── */
.pagination-info[b-78korj6nql] {
    text-align: center;
    font-size: 0.9rem;
    color: #9ca3af;
    margin-top: 1.5rem;
    letter-spacing: 0.1px;
}

.pagination-info strong[b-78korj6nql] {
    color: #465C39;
    font-weight: 700;
}

/* ── Pagination bar ──────────────────────────────────────── */
.pagination-bar[b-78korj6nql] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    margin-top: 1.75rem;
    flex-wrap: wrap;
}

.page-btn[b-78korj6nql] {
    min-width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(70, 92, 57, 0.12);
    background: #fff;
    color: #6b7280;
    font-size: 1.025rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.5rem;
    font-family: inherit;
}

.page-btn:hover:not(:disabled)[b-78korj6nql] {
    border-color: rgba(70, 92, 57, 0.3);
    color: #465C39;
    background: rgba(70, 92, 57, 0.05);
}

.page-btn.active[b-78korj6nql] {
    background: #465C39;
    color: #fff;
    border-color: #465C39;
    box-shadow: 0 3px 10px rgba(70, 92, 57, 0.25);
}

.page-btn:disabled[b-78korj6nql] {
    opacity: 0.3;
    cursor: not-allowed;
}

.page-btn.nav-btn[b-78korj6nql] {
    background: rgba(255, 255, 255, 0.97);
}

.page-ellipsis[b-78korj6nql] {
    color: #9ca3af;
    font-size: 1.25rem;
    padding: 0 0.15rem;
    line-height: 36px;
    user-select: none;
}

.page-info[b-78korj6nql] {
    font-size: 0.875rem;
    color: #9ca3af;
    font-weight: 500;
    margin-left: 0.4rem;
    white-space: nowrap;
}

/* ── Responsive ──────────────────────────────────────────── */

/* Tablet landscape: brand più compatti */
@media (max-width: 1100px) {
    .brand-square[b-78korj6nql] {
        min-width: fit-content;
        height: 48px;
        padding: 0 1.25rem;
    }

    .brand-square-content[b-78korj6nql] {
        flex-direction: row;
        gap: 0.5rem;
        padding: 0;
    }

    .brand-icon-wrapper[b-78korj6nql] {
        display: none !important;
    }

    .brand-square-name[b-78korj6nql] {
        font-size: 0.85rem;
        max-width: none;
        white-space: nowrap;
    }

    .brand-square-count[b-78korj6nql] {
        position: static;
        font-size: 0.75rem;
        background: rgba(70, 92, 57, 0.08);
    }

    .brands-horizontal-premium[b-78korj6nql] {
        padding: 0.45rem 3rem;
    }

    .carousel-nav[b-78korj6nql] {
        width: 34px;
        height: 34px;
    }

    .carousel-nav.prev[b-78korj6nql] {
        left: 0.6rem;
    }

    .carousel-nav.next[b-78korj6nql] {
        right: 0.6rem;
    }
}

/* Tablet portrait (~960px): layout column + card compatta */
@media (max-width: 900px) {
    .main-content-layout[b-78korj6nql] {
        flex-direction: column;
    }

    .search-container-premium[b-78korj6nql] {
        max-width: 100%;
    }

    .dashboard-header[b-78korj6nql] {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1rem 1.25rem;
    }

    .header-summary-actions[b-78korj6nql] {
        width: 100%;
    }

    .card-image[b-78korj6nql] {
        height: 140px;
    }

    .card-body[b-78korj6nql] {
        padding: 0.6rem 0.7rem 0.7rem;
    }

    .product-title[b-78korj6nql] {
        font-size: 0.95rem;
        min-height: 3.1em;
        margin-bottom: 0.35rem;
    }

    .current-price[b-78korj6nql] {
        font-size: 1.188rem;
    }

    .card-footer[b-78korj6nql] {
        gap: 0.35rem;
        padding-top: 0.5rem;
    }

    .card-controls[b-78korj6nql] {
        display: flex;
        flex-direction: column;
    }

    .step-btn[b-78korj6nql] {
        width: 22px;
        height: 22px;
    }

    .qty-val[b-78korj6nql],
    .discount-val[b-78korj6nql],
    .omaggio-val[b-78korj6nql] {
        font-size: 0.95rem;
    }

    .order-rules[b-78korj6nql] {
        font-size: 0.7rem;
    }

    /* Brand: vw evita il bug % in overflow-x scroll */
    .brand-square[b-78korj6nql] {
        height: 46px;
        max-width: none;
        padding: 0 1rem;
    }

    .brand-square-name[b-78korj6nql] {
        font-size: 0.85rem;
    }

    .brands-horizontal-premium[b-78korj6nql] {
        padding: 0.4rem 2.75rem;
    }

    .carousel-nav[b-78korj6nql] {
        width: 32px;
        height: 32px;
    }

    .carousel-nav.prev[b-78korj6nql] {
        left: 0.5rem;
    }

    .carousel-nav.next[b-78korj6nql] {
        right: 0.5rem;
    }
}

/* Telefono landscape / phablet (≤768px): card più spaziosa in 1 col */
@media (max-width: 768px) {
    .card-image[b-78korj6nql] {
        height: 175px;
    }

    .card-body[b-78korj6nql] {
        padding: 0.8rem 1rem 1rem;
    }

    .product-title[b-78korj6nql] {
        font-size: 1.05rem;
        min-height: auto;
        -webkit-line-clamp: 2;
    }

    .current-price[b-78korj6nql] {
        font-size: 1.375rem;
    }

    .card-controls[b-78korj6nql] {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .step-btn[b-78korj6nql] {
        width: 26px;
        height: 26px;
    }

    .qty-val[b-78korj6nql],
    .discount-val[b-78korj6nql],
    .omaggio-val[b-78korj6nql] {
        font-size: 1.05rem;
    }

    .order-rules[b-78korj6nql] {
        font-size: 0.775rem;
    }

    /* Brand più grandi per un miglior touch target */
    .brand-square[b-78korj6nql] {
        max-width: none;
        height: 48px;
        padding: 0 1rem;
    }

    .brand-square-name[b-78korj6nql] {
        font-size: 0.85rem;
    }

    .brands-horizontal-premium[b-78korj6nql] {
        padding: 0.38rem 2.7rem;
    }

    .carousel-nav[b-78korj6nql] {
        width: 32px;
        height: 32px;
    }

    .carousel-nav.prev[b-78korj6nql] {
        left: 0.4rem;
    }

    .carousel-nav.next[b-78korj6nql] {
        right: 0.4rem;
    }
}

/* Telefono portrait (≤480px): brand ancora più piccoli, search in colonna */
@media (max-width: 480px) {
    .search-controls-row[b-78korj6nql] {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .search-controls-row .results-count-badge[b-78korj6nql] {
        justify-self: start;
    }

    .dashboard-header[b-78korj6nql] {
        padding: 0.9rem 1rem;
    }

    .brand-square[b-78korj6nql] {
        max-width: none;
        height: 40px;
        padding: 0 0.75rem;
    }

    .brand-square-name[b-78korj6nql] {
        font-size: 0.75rem;
    }

    .brands-horizontal-premium[b-78korj6nql] {
        padding: 0.35rem 2.5rem;
    }

    .carousel-nav[b-78korj6nql] {
        width: 28px;
        height: 28px;
    }

    .carousel-nav.prev[b-78korj6nql] {
        left: 0.3rem;
    }

    .carousel-nav.next[b-78korj6nql] {
        right: 0.3rem;
    }
}

/* ── Tabs Storico / Nuovo Ordine ─────────────────────────── */
.orders-tabs-premium[b-78korj6nql] {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.25rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    border: 1px solid rgba(70, 92, 57, 0.1);
    align-self: flex-start;
}

.tab-btn[b-78korj6nql] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border: none;
    background: transparent;
    border-radius: 12px;
    font-size: 1.062rem;
    font-weight: 700;
    color: #686868;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover[b-78korj6nql] {
    background: rgba(70, 92, 57, 0.05);
    color: #465C39;
}

.tab-btn.active[b-78korj6nql] {
    background: #fff;
    color: #465C39;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(70, 92, 57, 0.1);
}

/* ── Storico Layout ──────────────────────────────────────── */
.storico-layout[b-78korj6nql] {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    width: 100%;
}

.storico-sidebar[b-78korj6nql] {
    width: 250px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: #fff;
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid rgba(70, 92, 57, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
}

.status-filter[b-78korj6nql] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    border: none;
    background: transparent;
    border-radius: 12px;
    font-size: 1.062rem;
    font-weight: 600;
    color: #4b5563;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.status-filter:hover[b-78korj6nql] {
    background: rgba(70, 92, 57, 0.03);
}

.status-filter.active[b-78korj6nql] {
    background: rgba(70, 92, 57, 0.08);
    color: #465C39;
    font-weight: 700;
}

.status-indicator[b-78korj6nql] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-indicator.salvati[b-78korj6nql] {
    background: #f59e0b;
}

.status-indicator.inviati[b-78korj6nql] {
    background: #3b82f6;
}

.status-indicator.confermati[b-78korj6nql] {
    background: #10b981;
}

.storico-content[b-78korj6nql] {
    flex: 1;
    min-width: 0;
    width: 100%;
}

.storico-grid[b-78korj6nql] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
    width: 100%;
}

.storico-card[b-78korj6nql] {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(70, 92, 57, 0.1);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.storico-card:hover[b-78korj6nql] {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.storico-card-header[b-78korj6nql] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(70, 92, 57, 0.1);
    padding-bottom: 0.75rem;
}

.storico-card-header .order-id[b-78korj6nql] {
    font-weight: 800;
    font-size: 1.312rem;
    color: #1a1a1a;
}

.storico-card-header .order-date[b-78korj6nql] {
    font-size: 0.938rem;
    color: #9ca3af;
}

.storico-card-body[b-78korj6nql] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.order-detail[b-78korj6nql] {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-detail .detail-label[b-78korj6nql] {
    font-size: 1rem;
    color: #6b7280;
}

.order-detail .detail-val[b-78korj6nql] {
    font-size: 1.188rem;
    font-weight: 700;
    color: #465C39;
}

.storico-card-footer[b-78korj6nql] {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px dashed rgba(70, 92, 57, 0.15);
    display: flex;
    justify-content: flex-end;
}

.empty-state[b-78korj6nql] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(70, 92, 57, 0.1);
    color: #9ca3af;
    text-align: center;
    grid-column: 1 / -1;
}

.empty-state svg[b-78korj6nql] {
    margin-bottom: 1rem;
    color: #d1d5db;
}

.btn-export[b-78korj6nql] {
    background: #10b981;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.6rem 1.2rem;
    font-size: 0.938rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-export:hover[b-78korj6nql] {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

@media (max-width: 768px) {
    .storico-layout[b-78korj6nql] {
        flex-direction: column;
    }

    .storico-sidebar[b-78korj6nql] {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
    }

    .status-filter[b-78korj6nql] {
        white-space: nowrap;
    }
}

/* ── Cart Preview Styles ────────────────────────────────────────── */
.cart-preview-container[b-78korj6nql] {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fdfdfd;
    padding: 1rem;
}

.cart-table-wrapper[b-78korj6nql] {
    flex: 1;
    overflow-y: auto;
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(70, 92, 57, 0.1);
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.cart-table[b-78korj6nql] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
}

.cart-table thead[b-78korj6nql] {
    position: sticky;
    top: 0;
    background: #f6f7f4;
    z-index: 10;
}

.cart-table th[b-78korj6nql] {
    padding: 1rem;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #465C39;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(70, 92, 57, 0.15);
}

.cart-table td[b-78korj6nql] {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(70, 92, 57, 0.05);
}

.cart-table tbody tr:last-child td[b-78korj6nql] {
    border-bottom: none;
}

.cart-img-cell[b-78korj6nql] {
    width: 60px;
    text-align: center;
}

.cart-thumb[b-78korj6nql] {
    max-width: 50px;
    max-height: 50px;
    border-radius: 6px;
    object-fit: contain;
}

.cart-item-desc[b-78korj6nql] {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.qty-stepper-mini[b-78korj6nql] {
    display: inline-flex;
    align-items: center;
    background: rgba(70, 92, 57, 0.04);
    border: 1px solid rgba(70, 92, 57, 0.12);
    border-radius: 50px;
    padding: 2px 4px;
}

.qty-stepper-mini button[b-78korj6nql] {
    background: #fff;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
    color: #465C39;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.qty-stepper-mini button:hover[b-78korj6nql] {
    background: #A8BB82;
    color: #fff;
}

.qty-stepper-mini span[b-78korj6nql] {
    min-width: 28px;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.cart-remove-btn[b-78korj6nql] {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: none;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.cart-remove-btn:hover[b-78korj6nql] {
    background: #ef4444;
    color: #fff;
}

.cart-summary-footer[b-78korj6nql] {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(70, 92, 57, 0.15);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.cart-total-row[b-78korj6nql] {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.cart-total-display[b-78korj6nql] {
    font-size: 1.2rem;
    font-weight: 700;
    color: #666;
}

.cart-total-display span[b-78korj6nql] {
    font-size: 1.8rem;
    font-weight: 900;
    color: #465C39;
    margin-left: 0.5rem;
}

.cart-buttons-row[b-78korj6nql] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 1.5rem;
}

.cart-buttons-row .btn-premium-secondary[b-78korj6nql],
.cart-buttons-row .btn-premium-action[b-78korj6nql] {
    flex: 1;
    max-width: 280px;
    justify-content: center;
}

@media (max-width: 1024px) {
    .cart-summary-footer[b-78korj6nql] {
        padding: 1.2rem;
        gap: 1.2rem;
    }

    .cart-total-display[b-78korj6nql] {
        font-size: 1.1rem;
    }

    .cart-total-display span[b-78korj6nql] {
        font-size: 1.5rem;
    }

    .cart-buttons-row[b-78korj6nql] {
        gap: 1rem;
    }

    .cart-buttons-row .btn-premium-secondary[b-78korj6nql],
    .cart-buttons-row .btn-premium-action[b-78korj6nql] {
        flex: 1;
        max-width: none;
        font-size: 0.95rem;
        padding: 0.6rem 0.5rem;
    }

    .qty-stepper-mini button[b-78korj6nql] {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
    }

    .qty-stepper-mini span[b-78korj6nql] {
        min-width: 36px;
        font-size: 1.1rem;
    }

    .checkout-grid[b-78korj6nql] {
        grid-template-columns: 1fr !important;
    }

    .cart-table tbody[b-78korj6nql] {
        display: block;
        width: 100%;
    }

    .cart-table[b-78korj6nql],
    .cart-table tr[b-78korj6nql],
    .cart-table td[b-78korj6nql] {
        box-sizing: border-box;
    }

    .cart-table[b-78korj6nql] {
        display: block;
        width: 100%;
        font-size: 0.9em;
    }

    .cart-table thead[b-78korj6nql] {
        display: none;
    }

    .cart-table tr[b-78korj6nql] {
        margin-bottom: 0.5rem;
        border: 1px solid rgba(70, 92, 57, 0.2);
        border-radius: 8px;
        background: #fff;
        position: relative;
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
        display: flex;
        flex-wrap: wrap;
    }

    .cart-table td[b-78korj6nql] {
        order: 5;
        width: 100%;
        text-align: right !important;
        padding: 0.35rem 0.6rem;
        border-bottom: 1px solid rgba(70, 92, 57, 0.05);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .cart-table td[b-78korj6nql]::before {
        content: attr(data-label);
        font-weight: 800;
        color: #465C39;
        text-align: left;
        margin-right: 1rem;
    }

    .cart-img-cell[b-78korj6nql] {
        order: 1;
        width: 20% !important;
        border-bottom: 1px solid rgba(70, 92, 57, 0.05) !important;
        padding-right: 0 !important;
        justify-content: flex-start !important;
        padding-bottom: 0.35rem !important;
    }

    .cart-img-cell[b-78korj6nql]::before {
        display: none !important;
    }

    .cart-articolo-cell[b-78korj6nql] {
        order: 2;
        width: 80% !important;
        border-bottom: 1px solid rgba(70, 92, 57, 0.05) !important;
        padding-left: 0.5rem !important;
        padding-right: 2.5rem !important;
        justify-content: flex-start !important;
        text-align: left !important;
    }

    .cart-table tr td.cart-articolo-cell:first-child[b-78korj6nql] {
        width: 100% !important;
        border-bottom: 1px solid rgba(70, 92, 57, 0.05) !important;
    }

    .cart-articolo-cell[b-78korj6nql]::before {
        display: none !important;
    }

    .cart-totale-cell[b-78korj6nql] {
        order: 10;
        width: 100% !important;
        font-size: 1.15em !important;
        font-weight: 800 !important;
        background-color: rgba(70, 92, 57, 0.04);
        border-bottom: none !important;
        border-bottom-left-radius: 8px;
        border-bottom-right-radius: 8px;
    }

    .cart-delete-cell[b-78korj6nql] {
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        width: 48px !important;
        height: 48px !important;
        justify-content: center !important;
        align-items: center !important;
        background-color: transparent !important;
        border-bottom: none !important;
        padding: 0 !important;
        margin-top: 0.25rem !important;
    }

    .cart-delete-cell[b-78korj6nql]::before {
        display: none !important;
    }

    .cart-item-desc[b-78korj6nql] {
        text-align: left;
    }
}

/* CLIENT DROPDOWN */
.uppercase-client-dropdown .e-input[b-78korj6nql],
.uppercase-client-dropdown .e-list-item[b-78korj6nql] {
    text-transform: uppercase !important;
}

/* CHECKOUT CARD */
.checkout-settings-card[b-78korj6nql] {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    height: 100%;
}

/* ===== VIEW TOGGLE ===== */
.view-toggle-group[b-78korj6nql] {
    display: flex;
    gap: 2px;
    background: rgba(70, 92, 57, 0.06);
    border-radius: 8px;
    padding: 3px;
    width: fit-content;
}

.view-toggle-btn[b-78korj6nql] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 32px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #888;
    cursor: pointer;
    transition: all 0.15s ease;
}

.view-toggle-btn:hover[b-78korj6nql] {
    background: rgba(70, 92, 57, 0.08);
    color: #465C39;
}

.view-toggle-btn.active[b-78korj6nql] {
    background: white;
    color: #465C39;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

/* ===== PRODUCTS LIST VIEW ===== */
.products-list-view[b-78korj6nql] {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.list-item[b-78korj6nql] {
    display: flex;
    align-items: stretch;
    background: white;
    border: 1px solid rgba(70, 92, 57, 0.1);
    border-radius: 14px;
    overflow: hidden;
    min-height: 150px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.list-item:hover[b-78korj6nql] {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-color: rgba(70, 92, 57, 0.25);
}

.list-item.in-cart[b-78korj6nql] {
    border-color: #465C39;
    background: rgba(70, 92, 57, 0.02);
}

.list-item.out-of-stock[b-78korj6nql] {
    opacity: 0.65;
}

.list-item-left[b-78korj6nql] {
    flex: 1;
    padding: 14px 18px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.list-item-badges[b-78korj6nql] {
    display: flex;
    gap: 5px;
    margin-bottom: 2px;
}

.list-item-brand[b-78korj6nql] {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #465C39;
    letter-spacing: 0.06em;
}

.list-item-title[b-78korj6nql] {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
}

.list-item-meta[b-78korj6nql] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.8rem;
    color: #888;
}

.list-item-note[b-78korj6nql] {
    font-size: 0.78rem;
    color: #666;
    font-style: italic;
}

.list-item-right[b-78korj6nql] {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 18px 8px;
    border-left: 1px solid rgba(70, 92, 57, 0.07);
    background: rgba(244, 244, 248, 0.5);
    min-width: 0;
    width: 430px;
    flex-shrink: 0;
    gap: 6px;
}

.list-item-right-main[b-78korj6nql] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex: 1;
}

.list-item-rules[b-78korj6nql] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    font-size: 0.75rem;
    color: #888;
    padding-top: 4px;
}

.list-item-rules b[b-78korj6nql] {
    color: #465C39;
    font-weight: 700;
}

.list-item-price[b-78korj6nql] {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 80px;
}

.list-item-controls[b-78korj6nql] {
    display: flex;
    gap: 12px;
    align-items: center;
}

.list-control-group[b-78korj6nql] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.list-item-right .qty-stepper-premium[b-78korj6nql],
.list-item-right .discount-stepper-premium[b-78korj6nql],
.list-item-right .omaggio-stepper-premium[b-78korj6nql] {
    min-width: 120px;
}

/* ===== ORDERS LIST VIEW ===== */
.orders-list-view[b-78korj6nql] {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.order-list-item[b-78korj6nql] {
    display: flex;
    align-items: stretch;
    background: white;
    border: 1px solid rgba(70, 92, 57, 0.1);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    min-height: 150px;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.order-list-item:hover[b-78korj6nql] {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateX(2px);
}

.order-list-status[b-78korj6nql] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 10px;
    min-width: 44px;
}

.order-list-info[b-78korj6nql] {
    flex: 1;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
}

.order-list-header[b-78korj6nql] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-list-num[b-78korj6nql] {
    font-size: 0.85rem;
    font-weight: 700;
    color: #465C39;
}

.order-list-date[b-78korj6nql] {
    font-size: 0.8rem;
    color: #888;
}

.order-list-client[b-78korj6nql] {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
}

.order-list-addr[b-78korj6nql] {
    font-size: 0.8rem;
    color: #888;
}

.order-list-price[b-78korj6nql] {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    border-left: 1px solid rgba(70, 92, 57, 0.07);
    min-width: 120px;
    justify-content: flex-end;
}

.order-list-actions[b-78korj6nql] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 14px;
    border-left: 1px solid rgba(70, 92, 57, 0.07);
}

/* ── Mobile responsive per layout ordini ───────────────────── */
@media (max-width: 900px) {
    .header-summary-actions[b-78korj6nql] {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .top-buttons[b-78korj6nql] {
        width: 100%;
    }

    .order-stat-bar[b-78korj6nql] {
        width: 100%;
    }
}

@media (max-width: 768px) {

    /* List view prodotti: pannello destra si restringe */
    .list-item[b-78korj6nql] {
        flex-direction: column;
    }

    .list-item-right[b-78korj6nql] {
        width: 100%;
        border-left: none;
        border-top: 1px solid rgba(70, 92, 57, 0.07);
        padding: 10px 14px;
    }

    .list-item-right-main[b-78korj6nql] {
        flex-wrap: wrap;
        gap: 10px;
    }

    .list-item-controls[b-78korj6nql] {
        flex-wrap: wrap;
        gap: 8px;
    }

    .list-item-right .qty-stepper-premium[b-78korj6nql],
    .list-item-right .discount-stepper-premium[b-78korj6nql],
    .list-item-right .omaggio-stepper-premium[b-78korj6nql] {
        min-width: 90px;
    }

    /* header-summary-actions: verticale */
    .header-summary-actions[b-78korj6nql] {
        flex-direction: column;
        align-items: stretch;
    }

    .top-buttons[b-78korj6nql] {
        flex-direction: column;
        width: 100%;
    }

    .top-buttons .btn-premium-secondary[b-78korj6nql],
    .top-buttons .btn-premium-action[b-78korj6nql] {
        width: 100%;
    }

    /* Tabs ordini: scroll orizzontale su mobile */
    .orders-tabs-premium[b-78korj6nql] {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        align-self: stretch;
    }

    /* Order list items */
    .order-list-item[b-78korj6nql] {
        flex-wrap: wrap;
    }

    .order-list-price[b-78korj6nql] {
        min-width: auto;
        padding: 8px 14px;
        border-left: none;
        border-top: 1px solid rgba(70, 92, 57, 0.07);
        width: 100%;
        justify-content: flex-start;
    }

    .order-list-actions[b-78korj6nql] {
        width: 100%;
        flex-direction: row;
        border-left: none;
        border-top: 1px solid rgba(70, 92, 57, 0.07);
        justify-content: flex-end;
        padding: 8px 14px;
    }
}

@media (max-width: 540px) {

    /* Griglia prodotti: 1 colonna su mobile piccolo */
    .amazon-grid.four-cols[b-78korj6nql] {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    /* Header-summary-actions ancora più compatto */
    .order-stat-bar[b-78korj6nql] {
        width: 100%;
    }

    .stat-item[b-78korj6nql] {
        padding: 0.3rem 0.5rem;
    }

    .stat-value[b-78korj6nql] {
        font-size: 1rem;
    }
}

@media (max-width: 400px) {
    .amazon-grid.four-cols[b-78korj6nql] {
        grid-template-columns: 1fr;
    }
}
/* Custom Offcanvas Filters */
.premium-offcanvas[b-78korj6nql] {
    background-color: #FAFAFA;
    position: fixed;
    z-index: 1045;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .premium-offcanvas[b-78korj6nql] {
        top: 0;
        right: 0;
        width: 380px;
        height: 100vh;
        transform: translateX(100%);
        border-left: 1px solid #e0e0e0;
        box-shadow: -5px 0 25px rgba(0,0,0,0.1);
    }
    .premium-offcanvas.show[b-78korj6nql] {
        transform: translateX(0);
    }
}

@media (max-width: 767px) {
    .premium-offcanvas[b-78korj6nql] {
        bottom: 0;
        left: 0;
        width: 100%;
        height: 88vh; 
        transform: translateY(100%);
        border-top-left-radius: 24px;
        border-top-right-radius: 24px;
        box-shadow: 0 -10px 40px rgba(0,0,0,0.15);
    }
    .premium-offcanvas.show[b-78korj6nql] {
        transform: translateY(0);
    }
    .premium-offcanvas[b-78korj6nql]::before {
        content: '';
        position: absolute;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: 45px;
        height: 5px;
        background-color: #ddd;
        border-radius: 10px;
    }
    .premium-offcanvas .offcanvas-header[b-78korj6nql] {
        padding-top: 25px !important;
    }
}

.offcanvas-backdrop[b-78korj6nql] {
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(3px);
}

.btn-premium-filter[b-78korj6nql] {
    background-color: white;
    color: #465C39;
    border: 1px solid rgba(70, 92, 57, 0.2);
    border-radius: 20px;
    padding: 8px 20px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: all 0.2s ease;
}

.btn-premium-filter:hover[b-78korj6nql] {
    background-color: #465C39;
    color: white;
    border-color: #465C39;
}

.filter-badge[b-78korj6nql] {
    background-color: #465C39;
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
}

.btn-premium-filter:hover .filter-badge[b-78korj6nql] {
    background-color: white;
    color: #465C39;
}

.premium-search[b-78korj6nql] {
    border-radius: 12px;
    border: 1px solid #ddd;
    padding: 10px 15px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.02);
}

.premium-search:focus[b-78korj6nql] {
    border-color: #465C39;
    box-shadow: 0 0 0 0.25rem rgba(70, 92, 57, 0.25);
}

.filter-options-list[b-78korj6nql] {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 250px;
    overflow-y: auto;
    padding: 15px 5px 15px 0;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    background-color: #FAFAFA;
}

/* Scrollbar for filter list */
.filter-options-list[b-78korj6nql]::-webkit-scrollbar {
    width: 6px;
}
.filter-options-list[b-78korj6nql]::-webkit-scrollbar-track {
    background: transparent;
}
.filter-options-list[b-78korj6nql]::-webkit-scrollbar-thumb {
    background-color: rgba(70, 92, 57, 0.2);
    border-radius: 10px;
}

.filter-checkbox-item[b-78korj6nql] {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    margin: 0 12px;
    background-color: white;
    border: 1px solid #eee;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.filter-checkbox-item:hover[b-78korj6nql] {
    border-color: rgba(70, 92, 57, 0.3);
    background-color: rgba(70, 92, 57, 0.02);
}

.filter-checkbox-item.active[b-78korj6nql] {
    border-color: #465C39;
    background-color: rgba(70, 92, 57, 0.05);
}

.checkbox-indicator[b-78korj6nql] {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid #ccc;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.filter-checkbox-item.active .checkbox-indicator[b-78korj6nql] {
    background-color: #465C39;
    border-color: #465C39;
}

.filter-label[b-78korj6nql] {
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}

.filter-checkbox-item.active .filter-label[b-78korj6nql] {
    color: #465C39;
    font-weight: 600;
}
