
/* ========================================
   MENU ACCORDION - SEZIONI DROPDOWN
   ======================================== */

/* Titolo sezione cliccabile */
.nav-section-title {
    display: flex;
    align-items: center;
    padding: 5px 12px;
    margin: 4px 8px;
    cursor: pointer;
    user-select: none;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #555;
    border-radius: 6px;
    background: transparent;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-section-title:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #333;
}

.nav-section-title .section-icon {
    margin-right: 10px;
    font-size: 16px;
    opacity: 0.7;
}

.nav-section-title .section-text {
    flex: 1;
}

.nav-section-title .section-arrow {
    font-size: 10px;
    opacity: 0.5;
    transition: transform 0.25s ease;
}

/* Sezione aperta */
.nav-section.open .nav-section-title {
    color: #000;
    
    background: rgba(0, 0, 0, 0.03);
}

.nav-section.open .nav-section-title .section-arrow {
    transform: rotate(180deg);
    opacity: 0.8;
}
.nav-section-linkemenu{font-weight:700px;}

/* Container items - CHIUSO di default */
.nav-section-items {
    max-height: 0;
    overflow: hidden;
    margin-left: 2px;
    transition: max-height 0.3s ease-out;
}

/* Container items - APERTO */
.nav-section.open .nav-section-items {
    max-height: 2000px;
    transition: max-height 0.4s ease-in;
}

/* Items dentro accordion */
.nav-section-items .nav-item {
    margin-left: 0;
    padding: 8px 0px 2px 15px;
    border-left: 3px solid transparent;
    margin-bottom: 2px;
}

.nav-section-items .nav-item:hover {
    background: rgba(74, 144, 226, 0.08);
    border-left-color: var(--primary, #c0af6e);
}



/* ========================================
   SIDEBAR COLLAPSED - ACCORDION
   ======================================== */

.ecommerce-sidebar.collapsed .nav-section-title .section-arrow,
.ecommerce-sidebar.collapsed .nav-section-title .section-text {
    display: none;
}

.ecommerce-sidebar.collapsed .nav-section-items {
    display: none;
}

.ecommerce-sidebar.collapsed .nav-section {
    position: relative;
}

/* Flyout menu quando sidebar collapsed */
.ecommerce-sidebar.collapsed .nav-section:hover .nav-section-items {
    display: block;
    position: absolute;
    left: calc(100% + 5px);
    top: 0;
    min-width: 220px;
    max-height: none;
    overflow: visible;
    margin-left: 0;
    border-left: none;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    z-index: 1001;
}

.ecommerce-sidebar.collapsed .nav-section:hover .nav-section-items .nav-item {
    padding: 10px 16px;
    border-left: none;
    border-radius: 0;
}

.ecommerce-sidebar.collapsed .nav-section:hover .nav-section-items .nav-item:hover {
    background: rgba(74, 144, 226, 0.1);
}
/* POS Top Menu Badge */
.pos-menu-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    position: relative;
}

.pos-menu-top .nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 8px;
}
/* POS Menu Container - Layout Orizzontale */
.pos-menu-container {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 0;
    margin: 0;
}

.pos-section {
    position: relative;
    display: inline-block;
}

.pos-section-title {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    white-space: nowrap;
}

.pos-section-title:hover {
    background: rgba(0, 0, 0, 0.05);
}

.pos-section-icon {
    margin-right: 6px;
    font-size: 16px;
}

.pos-section-text {
    font-weight: 600;
    font-size: 14px;
    color: #6e717f;
}

.pos-section-arrow {
    margin-left: 6px;
    transition: transform 0.3s ease;
    font-size: 10px;
    color: #666;
}
.pos-section-items {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    margin-top: 4px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    z-index: 1000;
    transition: max-height 0.3s ease, opacity 0.2s ease;
}

.pos-section:not(.collapsed) .pos-section-items {
    max-height: 500px;
    opacity: 1;
}

.pos-menu-item {
    display: block;
    padding: 6px 20px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.pos-menu-item:hover {
    background: #f9f9f9;
    color: #b9b274;
}

.pos-menu-item.active {
    background: #efefef;
    color: white;
}

.pos-menu-item .pos-text {
    font-size: 13px;
}

/* Rotazione freccia quando aperto */
.pos-section:not(.collapsed) .pos-section-arrow {
    transform: rotate(180deg);
}
