
/* ===================== FILTER ===================== */
.search-btn, .clear-btn {
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    padding: 6px;
    height: 40px;
}

.search-btn {
    background: #462164;
}

.clear-btn {
    background: #ed255a;
}

.filter-shell {
    background: #f5f5f5;
}

    .filter-shell input,
    .filter-shell select {
        width: 100%;
        height: 40px;
        border: none;
        background: transparent;
        padding: 0 14px;
        font-size: 14px;
        font-weight: 500;
        color: #444444;
    }

#date-filter {
    background: #fff;
    border: 1px solid #e0e2e6;
    border-radius: 8px;
}

.filter-shell input::placeholder {
    color: #444444;
    font-weight: 500;
}

.filter-shell input:focus,
.filter-shell select:focus {
    outline: none;
}

.search-wrap {
    display: flex;
    align-items: center;
    height: 40px;
    padding-left: 14px;
    border: 1px solid #e0e2e6;
    border-radius: 8px;
    background: #fff !important;
}

    .search-wrap i {
        font-size: 14px;
        color: black;
        margin-right: 10px;
    }

    .search-wrap input {
        padding-left: 0;
        font-weight: 500;
        font-size: 0.95rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }


#date-filter {
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 993px) {
    .divider-right {
        border-right: 0px !important;
    }
}


/* ============================================ DropDown CSS ============================================ */
.custom-select {
    position: relative;
    width: 100%;
    border: 1px solid #e0e2e6;
    border-radius: 8px;
    background: #fff;
}

.select-trigger {
    height: 40px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    cursor: pointer;
    font-size: 0.95rem;
}

.select-text {
    flex: 1 1 0%;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.select-options {
    position: absolute;
    top: 42px;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #e0e2e6;
    border-radius: 6px;
    list-style: none;
    padding: 6px 0;
    margin: 0;
    display: none;
    z-index: 9999;
}

    .select-options li {
        padding: 5px 14px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

        .select-options li::after {
            content: "\f00c";
            font-family: "Font Awesome 5 Free";
            font-weight: 900;
            font-size: 12px;
            opacity: 0;
        }

        .select-options li.selected::after {
            opacity: 1;
        }

        .select-options li:hover {
            background: #f5f5f5;
        }

        .select-options li.selected {
            background: #f5f5f5;
        }

.drop-icon {
    font-size: 0.9rem;
}

.select-options {
    display: none;
}

.select-options.open {
    display: block;
}

/* ===================== RESPONSIVE FIXES ONLY ===================== */

@media (max-width: 991px) {

    .filter-shell .row {
        flex-direction: column;
    }

    .divider-left {
        border-left: none;
    }

    .search-btn, .clear-btn {
        height: auto;
        margin-top: 8px;
    }

    .contract-status-col {
        margin-top: 9px !important;
    }
}

/* ================================== FILTER CARD ================================== */
.filter-card {
    background-color: #f5f5f5 !important;
}

/* =================================== CARD CSS=================================== */
.stat-card {
    border: none;
    border-radius: 10px;
    min-height: 150px;
    height: 100%;
    padding: 22px 24px;
    color: var(--secondary-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.border-bottom {
    color: var(--secondary-color) !important;
}
    .card-color {
    background-color: var(--primary-color);
}

.stat-label {
    font-size: clamp(0.95rem, 1.6vw, 1.15rem);
    opacity: 0.92;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.35;
    letter-spacing: 0.01em;
}

.stat-main {
    font-size: clamp(1.35rem, 2.8vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
}

.vendor-list {
    font-size: clamp(0.8rem, 1.1vw, 0.9rem);
    margin-top: 10px;
    max-height: 115px;
/*    overflow-y: auto;*/
}

.stat-footer {
    background: rgba(255,255,255,0.15);
    padding: 8px 24px;
    font-size: 0.8rem;
    margin: -22px -24px;
    margin-top: auto;
}

@media (max-width: 991px) {
    .stat-label {
        font-size: clamp(0.9rem, 1.4vw, 1.05rem);
    }

    .stat-main {
        font-size: clamp(1.2rem, 2.3vw, 2rem);
    }
}

@media (max-width: 576px) {
    .stat-card {
        padding: 16px 18px;
        min-height: 130px;
    }

    .stat-label {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }

    .stat-main {
        font-size: 1.3rem;
    }

    .stat-footer {
        font-size: 0.7rem;
        margin: -16px -18px;
        margin-top: auto;
    }

    .contract-status-col {
        margin-top: 9px !important;
    }
}

/* ================================== Table CSS ================================== */

.table-topbar {
    display: none !important;
}

.common-datatable thead th {
    font-weight: bolder !important;
}

.content {
    padding: 0 !important;
}

.first a::before,
.last a::before {
    display: none;
}

.common-datatable tbody td,
.datatable-list-title {
    font-size: 1rem !important;
}
