* {
    padding: 0px;
    margin: 0px;
    box-sizing: border-box;
    font-family: 'Noto Sans', sans-serif !important;
    /* font-family: 'Open Sans', Arial, sans-serif; */
}

/* Side navigation */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 50px;
    background-color: #ffffff;
    box-shadow: 3px 0px 6px #00000029;
    transition: width 0.3s ease;
    z-index: 1000;
    overflow-x: hidden;
    white-space: nowrap;
    bottom: 0;
    min-height: 100vh;
}

.sidebar:hover {
    width: 225px;
    box-shadow: 3px 0px 6px #00000029;
}

.sidebar-brand {
    height: 70px;
    display: flex;
    align-items: center;
    padding: 0 5px;
    color: #333;
    text-decoration: none;
    /* border-bottom: 1px solid transparent; */
}

.sidebar-brand img {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
}

.brand-text {
    font-weight: 700;
    font-size: 16px;
    margin-left: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar:hover .brand-text {
    opacity: 1;
}

.sidebar-nav {
    padding: 0;
    margin: 0;
    list-style: none;
    margin-top: 5px;
}

.nav-item {
    margin-bottom: 5px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 15px 12.5px;
    color: #4a4a4a;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link img {
    width: 25px;
    height: 25px;
    min-width: 25px;
    flex-shrink: 0;
    object-fit: contain;
}

.nav-link:hover {
    background-color: rgb(240, 240, 240);
}

.nav-item.active .nav-link {
    background: transparent linear-gradient(180deg, #EEB879 0%, #D67808 100%) 0% 0% no-repeat padding-box;
    color: #ffffff;
}

.nav-text {
    margin-left: 10px;
    font-size: 12px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar:hover .nav-text {
    opacity: 1;
}

/* Main Content */
.main-content {
    margin-left: 50px;
}

/* Top Header */
.top-header {
    box-shadow: 0px 1px 0px #00000029;
}

.header-title h5 {
    color: #3E3E3E !important;
    font-size: 18px;
    margin-bottom: 0px;
    font-size: 16px;
    font-weight: 500;
}

.search-bar {
    width: 350px;
}

.search-bar input {
    padding-right: 35px;
    font-size: 13px;
    height: 38px;
    background: #FFFFFF;
    border: 1px solid #BFBFBF;
    border-radius: 5px;
    font-size: 12px !important;
    color: #707070 !important;
}

.search-bar input:focus {
    box-shadow: none;
    border: 1px solid #6D5402 !important;
}

.search-icon {
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    position: absolute;
}

.btn-insights {
    background-color: #6D5402;
    color: #ffffff;
    font-weight: 600;
    font-size: 12px;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background-color 0.2s ease;
}

.btn-insights:hover {
    background-color: #5f4c0c;
    color: #ffffff;
}

.notification-wrapper .badge {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .search-bar {
        max-width: 100%;
    }

    .top-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 15px;
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .search-bar {
        width: 100%;
        order: 10;
        margin-top: 10px;
    }
}

/* Livelihood Grid Section */

.livelihood-grid-section {
    background-image: url('../Images/AdobeStock_417660686.png'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 25px 0px; 
}

.detail-bg-card {
    width: 240px;
    height: 90px;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    background: transparent linear-gradient(180deg, #F2F2F2 0%, #FFFFFF 100%) 0% 0% no-repeat padding-box !important;
    box-shadow: -5px 12px 16px #0000001A;
    border-radius: 9px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* overflow: hidden; */
}

@media (max-width: 991.98px) {
    .detail-bg-card {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
}

.card-overlay-img {
    position: absolute;
    top: -5px;
    left: 0;
    right: 10px;
    width: 104%;
    height: 75%;
    object-fit: fill;
    z-index: 1;
    pointer-events: none;
}

.card-text-wrapper {
    width: 170px;
    text-align: center;
    z-index: 2;
    padding-right: 30px;
}

.detail-card-title {
    font-size: 14px !important;
    font-weight: 700;
    color: #000000;
    margin-bottom: 5px;
    line-height: 1.2;
}

.grid-card-text {
    text-align: left !important;
    padding: 0px 15px !important;
    width: 175px !important; 
}

.target-label {
    font-size: 12px;
    color: #000;
    margin-bottom: 2px;
    font-weight: 500;
}

.livelihood-value {
    font-size: 12px !important;
    font-weight: 500;
    color: #000;
    margin-bottom: 0;
}

/* Performance & Directory Tables */

.main-card{
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    background: #FFFFFF;
}

.table-card-title {
    color: #1E293B;
    font-weight: 700;
    font-size: 16px;
}

.custom-target-table {
    border-collapse: separate;
    border-spacing: 0;
}

.custom-target-table thead th {
    background-color: #F5ECE5; 
    color: #000000;
    font-weight: 700;
    font-size: 12px;
    padding: 8px 15px;
    border-bottom: none;
}

.custom-target-table tbody td {
    color: #0F172A;
    font-size: 12px;
    padding: 15px;
    border-bottom: none;
}

.custom-progress-track {
    background-color: #E2E8F0;
    border-radius: 5px;
}

.custom-progress-fill {
    background-color: #0B7E58;
    border-radius: 10px;
}

.progress-percent-text {
    font-size: 12px;
    color: #8E98A8;
    font-weight: 600;
}

.custom-directory-table {
    border-collapse: separate;
    border-spacing: 0;
}

.custom-directory-table thead th {
    background-color: #C2410C; 
    color: #ffffff;
    font-weight: 700;
    font-size: 12px !important;
    padding: 8px 15px;
    border-bottom: none;
}

.custom-directory-table thead th:first-child {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.custom-directory-table thead th:last-child {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

.custom-directory-table tbody td {
    color: #000000;
    font-size: 12px;
    padding: 15px;
    border-bottom: none;
}

.status-badge-identified {
    background-color: #F5ECE5; 
    color: #C2410C; 
    padding: 5px 15px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
}