/* _content/GestionaleMagazzino.Web/Pages/ArticoliTestMobile.razor.rz.scp.css */
.test-page[b-7l675uiqzb] {
    padding: 0.6rem;
    max-width: 900px;
    margin: 0 auto;
}

.test-banner[b-7l675uiqzb] {
    background: #fff3cd;
    color: #856404;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    margin-bottom: 0.6rem;
}

.test-title[b-7l675uiqzb] {
    font-size: 1.1rem;
    margin: 0 0 0.6rem 0;
}

.solution-switch[b-7l675uiqzb] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.sw-btn[b-7l675uiqzb] {
    flex: 1 1 auto;
    padding: 0.5rem 0.6rem;
    border: 1px solid #667eea;
    background: white;
    color: #667eea;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
}

.sw-btn.active[b-7l675uiqzb] {
    background: #667eea;
    color: white;
}

.solution-desc[b-7l675uiqzb] {
    background: #f0f4ff;
    border-radius: 6px;
    padding: 0.5rem 0.7rem;
    font-size: 0.8rem;
    color: #333;
    margin-bottom: 0.6rem;
}

.search-bar-test[b-7l675uiqzb] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

.search-input-test[b-7l675uiqzb] {
    flex: 1;
    padding: 0.6rem 0.7rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
}

.count-badge[b-7l675uiqzb] {
    font-size: 0.75rem;
    color: #666;
    white-space: nowrap;
}

/* ==== SCHEDE (soluzioni A e B) ==== */
.card-list[b-7l675uiqzb] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.art-card[b-7l675uiqzb] {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.art-desc[b-7l675uiqzb] {
    font-weight: 700;
    font-size: 1rem;
    color: #222;
    white-space: normal;
    word-break: break-word;
    margin-bottom: 0.15rem;
}

.art-code[b-7l675uiqzb] {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.4rem;
    display: block;
}

.art-group[b-7l675uiqzb] {
    margin-top: 0.5rem;
    padding-top: 0.4rem;
    border-top: 1px dashed #eee;
}

.ag-title[b-7l675uiqzb] {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #555;
    border-left: 3px solid #667eea;
    padding-left: 0.4rem;
    margin-bottom: 0.3rem;
}

.ag-row[b-7l675uiqzb] {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.28rem 0.2rem;
    font-size: 0.85rem;
    border-bottom: 1px solid #f5f5f5;
}

.ag-row:last-child[b-7l675uiqzb] {
    border-bottom: none;
}

.ag-label[b-7l675uiqzb] {
    color: #888;
    flex: 1;
}

.ag-value[b-7l675uiqzb] {
    color: #222;
    font-weight: 700;
    text-align: right;
}

/* Soluzione B - compatta */
.art-card.compact .art-summary-row[b-7l675uiqzb] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: space-between;
}

.art-giac[b-7l675uiqzb] {
    font-weight: 700;
    color: #667eea;
    font-size: 0.85rem;
}

.art-giac.low[b-7l675uiqzb] {
    color: #dc3545;
}

.btn-toggle-details[b-7l675uiqzb] {
    margin-left: auto;
    background: #f0f4ff;
    border: none;
    color: #667eea;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
}

/* ==== SOLUZIONE C - tabella con colonna fissa ==== */
.table-scroll-wrap[b-7l675uiqzb] {
    overflow-x: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    -webkit-overflow-scrolling: touch;
}

.fixed-col-table[b-7l675uiqzb] {
    border-collapse: collapse;
    width: max-content;
    min-width: 100%;
}

.fixed-col-table th[b-7l675uiqzb],
.fixed-col-table td[b-7l675uiqzb] {
    padding: 0.5rem 0.6rem;
    font-size: 0.8rem;
    white-space: nowrap;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
}

.fixed-col-table th[b-7l675uiqzb] {
    background: #f8f9fa;
    position: sticky;
    top: 0;
    z-index: 1;
}

.sticky-col[b-7l675uiqzb] {
    position: sticky;
    left: 0;
    background: white;
    z-index: 2;
    box-shadow: 2px 0 4px rgba(0,0,0,0.08);
    white-space: normal;
    min-width: 140px;
    max-width: 180px;
}

thead .sticky-col[b-7l675uiqzb] {
    background: #f8f9fa;
    z-index: 3;
}

.art-desc-in-table[b-7l675uiqzb] {
    font-weight: 600;
    white-space: normal;
    word-break: break-word;
}

.art-code-in-table[b-7l675uiqzb] {
    font-size: 0.7rem;
    color: #888;
}
/* _content/GestionaleMagazzino.Web/Shared/MainLayout.razor.rz.scp.css */
/* ===================================================
   MAIN LAYOUT - CSS ISOLATION (Blazor Scoped)
   Questo file � automaticamente scoped a MainLayout.razor
   =================================================== */

/* ================================
   MOBILE OVERLAY & SIDEBAR
   ================================ */

.mobile-overlay[b-pc1zbb65vk] {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    animation: fadeIn-b-pc1zbb65vk 0.3s ease;
}

@keyframes fadeIn-b-pc1zbb65vk {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.mobile-sidebar[b-pc1zbb65vk] {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    max-width: 85vw;
    height: 100%;
    background: white;
    z-index: 999;
    display: flex;
    flex-direction: column;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 2px 0 16px rgba(0, 0, 0, 0.2);
}

.mobile-sidebar.open[b-pc1zbb65vk] {
    left: 0;
}

/* ================================
   MOBILE SIDEBAR HEADER
   ================================ */

.mobile-sidebar-header[b-pc1zbb65vk] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.mobile-brand[b-pc1zbb65vk] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-brand-icon[b-pc1zbb65vk] {
    font-size: 1.8rem;
}

.mobile-brand-text h5[b-pc1zbb65vk] {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.mobile-brand-text small[b-pc1zbb65vk] {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
}

.mobile-close-btn[b-pc1zbb65vk] {
    background: transparent;
    border: none;
    color: white;
    font-size: 2.2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.mobile-close-btn:hover[b-pc1zbb65vk] {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.mobile-close-btn:active[b-pc1zbb65vk] {
    transform: scale(0.9);
}

/* ================================
   MOBILE NAVIGATION ITEMS
   ================================ */

.mobile-nav[b-pc1zbb65vk] {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #667eea #f1f1f1;
}

.mobile-nav[b-pc1zbb65vk]::-webkit-scrollbar {
    width: 6px;
}

.mobile-nav[b-pc1zbb65vk]::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.mobile-nav[b-pc1zbb65vk]::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 3px;
}

.mobile-nav[b-pc1zbb65vk]::-webkit-scrollbar-thumb:hover {
    background: #5568d3;
}

.mobile-nav-item[b-pc1zbb65vk] {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.5rem;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
    position: relative;
}

.mobile-nav-item[b-pc1zbb65vk]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.1) 0%, transparent 100%);
    transition: width 0.3s ease;
}

.mobile-nav-item:hover[b-pc1zbb65vk]::before {
    width: 100%;
}

.mobile-nav-item:hover[b-pc1zbb65vk] {
    background: #f8f9fa;
}

.mobile-nav-item.active[b-pc1zbb65vk] {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.1) 0%, transparent 100%);
    border-left-color: #667eea;
    color: #667eea;
    font-weight: 600;
}

.mobile-nav-item.active .mobile-nav-icon[b-pc1zbb65vk] {
    transform: scale(1.1);
}

.mobile-nav-icon[b-pc1zbb65vk] {
    font-size: 1.6rem;
    width: 32px;
    text-align: center;
    transition: transform 0.2s ease;
}

.mobile-nav-text[b-pc1zbb65vk] {
    font-size: 1rem;
    flex: 1;
    letter-spacing: 0.3px;
}

/* ================================
   MOBILE SIDEBAR FOOTER
   ================================ */

.mobile-sidebar-footer[b-pc1zbb65vk] {
    border-top: 1px solid #e0e0e0;
    padding: 1rem;
    background: #f8f9fa;
}

.mobile-logout-btn[b-pc1zbb65vk] {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.mobile-logout-btn:hover[b-pc1zbb65vk] {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.mobile-logout-btn:active[b-pc1zbb65vk] {
    transform: translateY(0);
}

.logout-icon[b-pc1zbb65vk] {
    font-size: 1.2rem;
}

/* ================================
   HAMBURGER BUTTON
   ================================ */

.hamburger-btn[b-pc1zbb65vk] {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.hamburger-btn span[b-pc1zbb65vk] {
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-btn:hover span[b-pc1zbb65vk] {
    background: #f0f0f0;
}

.hamburger-btn:active span:nth-child(1)[b-pc1zbb65vk] {
    transform: translateY(2px);
}

.hamburger-btn:active span:nth-child(3)[b-pc1zbb65vk] {
    transform: translateY(-2px);
}

/* ================================
   MOBILE TOP BAR
   ================================ */

.mobile-header[b-pc1zbb65vk] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.75rem 1rem;
}

.mobile-title[b-pc1zbb65vk] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.title-icon[b-pc1zbb65vk] {
    font-size: 1.3rem;
}

.title-text[b-pc1zbb65vk] {
    font-weight: 600;
}

.mobile-logout-icon[b-pc1zbb65vk] {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-logout-icon:hover[b-pc1zbb65vk] {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-logout-icon:active[b-pc1zbb65vk] {
    transform: scale(0.9);
}

/* ================================
   DESKTOP STYLES
   ================================ */

.desktop-header[b-pc1zbb65vk] {
    display: none;
}

@media (min-width: 768px) {
    .mobile-header[b-pc1zbb65vk],
    .mobile-sidebar[b-pc1zbb65vk],
    .mobile-overlay[b-pc1zbb65vk],
    .hamburger-btn[b-pc1zbb65vk] {
        display: none !important;
    }

    .desktop-header[b-pc1zbb65vk] {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 1rem 1.5rem;
    }
}

.desktop-brand[b-pc1zbb65vk] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-icon[b-pc1zbb65vk] {
    font-size: 1.5rem;
}

.desktop-brand h5[b-pc1zbb65vk] {
    margin: 0;
}

.desktop-actions[b-pc1zbb65vk] {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.desktop-nav[b-pc1zbb65vk] {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.desktop-nav a[b-pc1zbb65vk] {
    color: white;
    text-decoration: none;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    transition: all 0.2s;
    font-weight: 500;
    white-space: nowrap;
    font-size: 0.95rem;
}

.desktop-nav a:hover[b-pc1zbb65vk] {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.desktop-nav a.active[b-pc1zbb65vk] {
    background: rgba(255, 255, 255, 0.25);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.desktop-logout-btn[b-pc1zbb65vk] {
    background: #dc3545;
    border: none;
    color: white;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
    font-size: 0.95rem;
}

.desktop-logout-btn:hover[b-pc1zbb65vk] {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.desktop-logout-btn:active[b-pc1zbb65vk] {
    transform: translateY(0);
}

@media (min-width: 1024px) {
    .desktop-header[b-pc1zbb65vk] {
        padding: 1rem 2rem;
    }

    .desktop-nav a[b-pc1zbb65vk] {
        padding: 0.7rem 1.25rem;
        font-size: 1rem;
    }

    .desktop-logout-btn[b-pc1zbb65vk] {
        padding: 0.7rem 1.5rem;
        font-size: 1rem;
    }
}

/* ================================
   TOP ROW SHARED
   ================================ */

.top-row[b-pc1zbb65vk] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.content[b-pc1zbb65vk] {
    padding: 1rem;
}

@media (min-width: 768px) {
    .content[b-pc1zbb65vk] {
        padding: 1.5rem 2rem;
    }
}

/* ================================
   PAGE LAYOUT
   ================================ */

.page[b-pc1zbb65vk] {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main[b-pc1zbb65vk] {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ================================
   ACCESSIBILITY & MOBILE
   ================================ */

@media (prefers-reduced-motion: reduce) {
    .mobile-sidebar[b-pc1zbb65vk],
    .mobile-overlay[b-pc1zbb65vk],
    .mobile-nav-item[b-pc1zbb65vk],
    .hamburger-btn span[b-pc1zbb65vk] {
        transition: none !important;
        animation: none !important;
    }
}

@media (max-width: 767px) {
    .mobile-nav-item[b-pc1zbb65vk],
    .mobile-logout-btn[b-pc1zbb65vk],
    .mobile-close-btn[b-pc1zbb65vk],
    .hamburger-btn[b-pc1zbb65vk],
    .mobile-logout-icon[b-pc1zbb65vk] {
        min-height: 44px;
        min-width: 44px;
    }
}

@media (max-width: 479px) {
    .mobile-sidebar[b-pc1zbb65vk] {
        max-width: 90vw;
    }

    .mobile-title[b-pc1zbb65vk] {
        font-size: 0.9rem;
    }

    .mobile-nav-item[b-pc1zbb65vk] {
        padding: 1rem 1.25rem;
    }

    .mobile-nav-text[b-pc1zbb65vk] {
        font-size: 0.95rem;
    }

    .mobile-sidebar-header[b-pc1zbb65vk] {
        padding: 1rem;
    }
}

@media (max-width: 767px) and (orientation: landscape) {
    .mobile-sidebar[b-pc1zbb65vk] {
        max-width: 60vw;
    }

    .mobile-nav-item[b-pc1zbb65vk] {
        padding: 0.8rem 1.25rem;
    }

    .mobile-sidebar-header[b-pc1zbb65vk] {
        padding: 1rem;
    }

    .mobile-sidebar-footer[b-pc1zbb65vk] {
        padding: 0.75rem;
    }

    .mobile-logout-btn[b-pc1zbb65vk] {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}
