/* enterprise.css - کلاس‌های مشترک UI ماژول‌های ERP (ساختار، LMS) */

/* --- KPI کارت‌ها --- */
.kpi-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 2px 10px rgb(15 23 42 / 0.04);
}
.kpi-value {
    font-size: 1.7rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}
.kpi-label {
    font-size: .8rem;
    color: #64748b;
    font-weight: 600;
}

/* --- پنل‌ها --- */
.panel-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 2px 10px rgb(15 23 42 / 0.04);
}
.panel-title {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
}
.panel-subtitle {
    font-size: .8rem;
    color: #64748b;
}

/* --- اسکرول‌بار سفارشی --- */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #c7c7c7;
    border-radius: 10px;
}

/* --- سایدبار (حالت فعال و آیتم‌ها) --- */
.sidebar-active {
    background: linear-gradient(90deg, #eff6ff 0%, #e0f0ff 100%);
    color: #003366;
    border-right: 4px solid #da291c;
    font-weight: 700;
}
.sidebar-nav-item {
    transition: all 0.2s ease;
}
.sidebar-nav-item:hover {
    background: #f8fafc;
    transform: translateX(-2px);
}
.sidebar-nav-item .nav-icon-box {
    transition: all 0.2s ease;
}
.sidebar-nav-item:hover .nav-icon-box {
    background: #003366;
    color: #fff;
}
.sidebar-nav-item.sidebar-active .nav-icon-box {
    background: #003366;
    color: #fff;
}

/* --- جداول: هاور سطر --- */
#main-content table tbody tr:hover {
    background-color: #f9fafb;
}
