/* _content/PharmaRetailERP.Web/Components/Layout/MainLayout.razor.rz.scp.css */
/* MainLayout Scoped Styles - Fully Fluid & Zoom-Adaptive */
.app-layout[b-afaf1hcuqs] {
    display: flex;
    width: 100%;
    min-height: 100vh;
    background-color: var(--bs-body-bg, #f8fafc);
    position: relative;
}

.main-content[b-afaf1hcuqs] {
    flex: 1 1 0%;
    width: 100%;
    min-width: 0;
    padding: 1.5rem 2.25rem 3rem;
    background-color: var(--bs-body-bg, #f8fafc);
}

@media (max-width: 991.98px) {
    .main-content[b-afaf1hcuqs] {
        padding: 1rem 1rem 2.5rem;
    }
}
/* _content/PharmaRetailERP.Web/Components/Layout/NavMenu.razor.rz.scp.css */
/* NavMenu Scoped Styles */
.sidebar[b-yg75pdk4pt] {
    width: 260px;
    height: 100vh;
    flex-shrink: 0;
    background-color: var(--sidebar-bg, #0B3B60);
    color: var(--sidebar-text, #94a3b8);
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--sidebar-border, #072B47);
    position: relative;
    z-index: 1000;
}

@media (min-width: 992px) {
    .sidebar-header button[b-yg75pdk4pt] {
        display: none !important;
    }
}

/* Details and Summary Accordion Item */
details.nav-group-item[b-yg75pdk4pt] {
    margin-bottom: 2px;
}

details.nav-group-item summary.nav-section-btn[b-yg75pdk4pt] {
    list-style: none !important;
    outline: none !important;
    cursor: pointer;
    user-select: none;
    width: 100%;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.55rem 0.65rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 8px;
    margin-top: 4px;
    margin-bottom: 2px;
    transition: all 0.15s ease-in-out;
}

details.nav-group-item summary.nav-section-btn[b-yg75pdk4pt]::-webkit-details-marker,
details.nav-group-item summary.nav-section-btn[b-yg75pdk4pt]::marker {
    display: none !important;
    content: "" !important;
}

details.nav-group-item summary.nav-section-btn:hover[b-yg75pdk4pt] {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

details.nav-group-item[open] > summary.nav-section-btn[b-yg75pdk4pt] {
    color: #4ade80;
}

details.nav-group-item .section-icon[b-yg75pdk4pt] {
    font-size: 0.95rem;
    color: #00A859;
    width: 20px;
    text-align: center;
}

details.nav-group-item .chevron-icon[b-yg75pdk4pt] {
    font-size: 0.75rem;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: #94a3b8;
}

details.nav-group-item[open] > summary.nav-section-btn .chevron-icon[b-yg75pdk4pt] {
    transform: rotate(180deg);
    color: #4ade80;
}

details.nav-group-item:not([open]) > summary.nav-section-btn .chevron-icon[b-yg75pdk4pt] {
    transform: rotate(0deg);
    color: #94a3b8;
}

/* Sub-items Container */
.nav-subitems[b-yg75pdk4pt] {
    padding-left: 0.35rem;
    margin-bottom: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    animation: fadeIn-b-yg75pdk4pt 0.15s ease-in-out;
}

.nav-subitems[b-yg75pdk4pt]  .nav-link {
    font-size: 0.88rem; /* Scaled up for pharmacy visibility */
    padding: 0.45rem 0.75rem 0.45rem 0.85rem;
    border-radius: 6px;
}

[b-yg75pdk4pt] .top-dashboard-link {
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 6px;
}

@keyframes fadeIn-b-yg75pdk4pt {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}
/* _content/PharmaRetailERP.Web/Components/Pages/Home.razor.rz.scp.css */
/* Modern, Rich Aesthetic CSS for Dashboard Home.razor */
.dashboard-page[b-477hvme5eo] {
    padding: 0 1rem 2rem;
    font-family: 'Noto Sans', sans-serif;
    animation: fadeIn-b-477hvme5eo 0.4s ease-out;
}

@keyframes fadeIn-b-477hvme5eo {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dash-topbar[b-477hvme5eo] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.dash-topbar[b-477hvme5eo]::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(135deg, #0B3B60, #00A859);
}

.dash-title[b-477hvme5eo] {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.dash-subtitle[b-477hvme5eo] {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.dash-body[b-477hvme5eo] {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Stat Tiles */
.stat-strip[b-477hvme5eo] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.stat-tile[b-477hvme5eo] {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.stat-tile:hover[b-477hvme5eo] {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.stat-tile__bar[b-477hvme5eo] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
}

.stat-tile--sales .stat-tile__bar[b-477hvme5eo] { background: linear-gradient(90deg, #10b981, #34d399); }
.stat-tile--msales .stat-tile__bar[b-477hvme5eo] { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.stat-tile--meds .stat-tile__bar[b-477hvme5eo] { background: linear-gradient(90deg, #818cf8, #a5b4fc); }
.stat-tile--lowstock .stat-tile__bar[b-477hvme5eo] { background: linear-gradient(90deg, #ef4444, #f87171); }
.stat-tile--cust .stat-tile__bar[b-477hvme5eo] { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.stat-tile--supp .stat-tile__bar[b-477hvme5eo] { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.stat-tile--pending .stat-tile__bar[b-477hvme5eo] { background: linear-gradient(90deg, #ec4899, #f472b6); }

.stat-tile__label[b-477hvme5eo] {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.stat-tile__value[b-477hvme5eo] {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.stat-tile__sub[b-477hvme5eo] {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.stat-tile__link[b-477hvme5eo] {
    margin-top: auto;
    font-size: 0.875rem;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
}

.stat-tile__link:hover[b-477hvme5eo] {
    color: #1e40af;
}

/* Alerts */
.alert-strip[b-477hvme5eo] {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.alert-chip[b-477hvme5eo] {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.alert-chip:hover[b-477hvme5eo] {
    transform: scale(1.02);
}

.alert-chip--red[b-477hvme5eo] { background: #fee2e2; color: #b91c1c; }
.alert-chip--orange[b-477hvme5eo] { background: #ffedd5; color: #c2410c; }
.alert-chip--blue[b-477hvme5eo] { background: #e0e7ff; color: #4338ca; }

.chip-badge[b-477hvme5eo] {
    background: rgba(255, 255, 255, 0.9);
    padding: 0.1rem 0.5rem;
    border-radius: 12px;
    margin-left: 0.5rem;
    font-size: 0.8rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Quick Sections */
.qs-section[b-477hvme5eo] {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0,0,0,0.02);
}

.qs-section-title[b-477hvme5eo] {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: #1e293b;
    display: flex;
    align-items: center;
}

.qs-section-title[b-477hvme5eo]::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 1.2rem;
    background: #3b82f6;
    border-radius: 4px;
    margin-right: 0.75rem;
}

.qs-grid[b-477hvme5eo] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}

.qs-btn[b-477hvme5eo] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1rem;
    border-radius: 12px;
    text-decoration: none;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.qs-btn:hover[b-477hvme5eo] {
    background: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.05);
    border-color: #cbd5e1;
    color: #0f172a;
}

.qs-icon[b-477hvme5eo] {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    transition: transform 0.2s;
}

.qs-btn:hover .qs-icon[b-477hvme5eo] {
    transform: scale(1.1);
}

.qs-label[b-477hvme5eo] {
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
}

/* Custom Colors for QS Buttons Icons */
.qs-btn--teal .qs-icon[b-477hvme5eo] { color: #0d9488; }
.qs-btn--blue .qs-icon[b-477hvme5eo] { color: #2563eb; }
.qs-btn--orange .qs-icon[b-477hvme5eo] { color: #ea580c; }
.qs-btn--indigo .qs-icon[b-477hvme5eo] { color: #4f46e5; }
.qs-btn--purple .qs-icon[b-477hvme5eo] { color: #9333ea; }
.qs-btn--gray .qs-icon[b-477hvme5eo] { color: #475569; }
.qs-btn--green .qs-icon[b-477hvme5eo] { color: #16a34a; }
.qs-btn--red .qs-icon[b-477hvme5eo] { color: #dc2626; }

@media (max-width: 768px) {
    .dash-topbar[b-477hvme5eo] {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .qs-grid[b-477hvme5eo] {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-page[b-477hvme5eo] {
        padding: 0 0.5rem 1rem;
    }
}
