body {
    font: 13px / 16px arial;
    overflow-x: scroll; /* Add horizontal scroll for smaller screens */
}

.table-container {
    overflow-x: auto;
    width: 100%;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 10px;
    border: 1px solid #fff;
    text-align: left;
    vertical-align: middle;
}

th input {
    width: 100%;
    box-sizing: border-box;
    padding: 5px;
    margin-bottom: 5px;
}

header.second-menu { padding-bottom: 0px; }
.second-menu .menu-sec { margin: 0px; }
.second-menu .menu-sec nav { float: right; }

header.gradient {
    background: #666a9b;
}

fieldset {
    border-radius: 5px;
    padding: 5px;
    border: 2px solid rgb(192, 192, 192);
    border-image: initial;
}

legend {
    color: #620C0D;
    font-size: 1em;
    font-weight: bold;
    background: #FFFFFF;
    padding: 2px 7px;
    border-radius: 5px;
}

p{color: black;}

.filter-table .simple-checkbox p { font-size: 11px; }
aside .widget.border { margin-top: 15px !important; }
.field_w_search input { padding: 10px 15px; }
.simple-checkbox.scrollbar { height: 170px; }

.widget.border {
    padding: 5px;
    border-radius: 0px;
    border: 2px solid #e6e7ef;
}

.widget > h3 {
    float: left;
    width: 100%;
    font-size: 15px;
    color: maroon;
    text-align: center;
    margin-bottom: 5px;
    background: transparent;
    font-weight: bold;
}

.btn-link {
    width: 100%;
    background: transparent;
    color: maroon;
    border: 1px solid;
}

.btn-link:hover { color: white; background: maroon; text-decoration: none; }
.field_w_search { margin: 10px 0; border: 1px solid #800000; }
.top-menu .menu-sec { margin: 10px 0; }
.post-job-btn { padding: 0px; margin-top: 6px; }
.date-buttons { text-align: center; }
.menu-sec nav > ul > li > a { padding: 10px 20px; }
.second-menu { margin-bottom: 10px; }
section { margin: 10px 0; }
header.white .menu-sec nav > ul > li { padding-bottom: 0px; }
.reset-filter { text-align: center; border: none !important; }
.reset-filter button { float: none; width: 100%; }
.heading {
    margin-bottom: 30px;
    margin-top: 20px;
}

.date-buttons button {
    padding: 3px;
    margin: 6px 3px;
    float: none;
    background: transparent;
    color: maroon;
    border: 1px solid maroon;
}

.date-buttons button:hover {
    background: maroon;
    color: white;
    border: 1px solid maroon;
}

.procurement-filter select { padding: 5px; border-color: maroon; }
.date input { padding: 8px 10px; width: 45%; margin: 0 2%; }
.reset-filter .btn-link { background: transparent; color: maroon; }
thead {background: #800000;; color: white; }
thead th { font-size: 12px; font-weight: bold; }
tbody td { font-size: 11px; }
.category-filter .widget.border { padding: 2px !important; border: 1px solid #800000; }
#reset-btn { background-color: gray; }
#reset-btn:hover { color: white; background-color: #30397f; }
.action-btn button { padding: 0px; width: 60%; font-size: 12px; margin: 1%; float: none; }
#modalWatchlist { background: transparent; color: maroon; margin-right: 10px; }
#modalWatchlist:hover { background: maroon; color: white; }
.logo img { max-height: 50px; margin-top: -7px; width: auto; }
.modal .widget.border { border: none; }

.modal-header {
    background: #585fa7;
    color: white;
    padding: 0px 5px 3px;
    text-align: center;
    border: 1px solid #4a5198;
}

.modal-header heading { font-size: 16px; margin-top: 5px; }
.modal-header button { color: white; padding: 0px 5px; font-size: 14px;margin-top: 2px;background:white;color:red }
#category-modal-list { display: flex; justify-content: space-between; }
.checkbox-column { flex: 1; padding: 0 10px; width:33% }
#closeFooterBtn { padding: 5px; font-size: 14px; color: #fff; margin-left: 5px; background-color: #6c757d; border-color: #6c757d; }
#closeFooterBtn:hover { background-color: #4a5198; }
.openTenderModal {color: darkblue;cursor: pointer;font-size: 12px;}
.openTenderModal:hover { text-decoration: underline; }

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

 .modal-content {
    margin: 2% auto;
    width: 90%;
    height: 90%;
    background-color: #fff;
    padding: 2px;
    border: 1px solid #888;
    display: flex;
    flex-direction: column;
}

#navModal .modal-content {
    margin: 5% auto;
    width: 80%;
    height: 80%;
}

.modal-body {
    flex: 1;
    overflow-y: auto; /* Make the body scrollable */
    padding: 10px 20px;
}

.modal-body img {
    max-width: 100%; /* Ensure image fits within modal body */
    height: auto;
}

.block, .tender-table {
    padding: 0;
}

#tender-table {
    width: 100%;
    table-layout: fixed;
    word-wrap: break-word;
}

#tender-table th, #tender-table td {
    white-space: normal;
    padding: 5px;
    text-align: center;
}

#tender-table tbody tr:nth-child(even) { background-color: #DCDCDC; }
#tender-table tbody tr:nth-child(odd) { background-color: #f6f6f6; }

.nav-tabs {
    border-bottom: 1px solid #ddd;
    justify-content: center;
    display: flex;
}

.nav-tabs .nav-item {
    margin-bottom: -1px;
}

.nav-tabs .nav-link {
    border: 1px solid transparent;
    border-top-left-radius: .25rem;
    border-top-right-radius: .25rem;
}

.nav.nav-tabs > li a {
    background: white;
    color: #4a5198;
    padding: 5px 20px;
    margin-right: 10px;
    border: 1px solid;
    font-size: 12px;
}

.nav-tabs .nav-link.active, .nav-tabs .nav-link:hover {
    color: white;
    background-color: #4a5198;
    border-color: #4a5198;
}

#navModal .modal-header heading { font-size: 13px; margin-top: 0px; }
#navModal .modal-header { background: #eeeeee; border-bottom: 2px solid #eeeeee; }
#navModal .nav.nav-tabs { display: flex; border: none; }

#navModal .sub-nav li {
    border: 2px solid #4a5198;
    border-radius: 5px;
}

#navModal .sub-nav li:hover, .sub-nav .nav-link.active {
    background: #4a5198;
    color: white;
}

#navModal .modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px;
    color: #4a5198;
    line-height: 1rem;
    font-weight: bold;
    background: #e1e1e1;
    border: 1px solid;
}

.modal-btn li { display: inline-block; margin-bottom: 0rem; }
.modal-btn { margin-bottom: 0rem; margin-top: 8px; }

/* Ensure all elements maintain their desktop layout */
.container, .container-fluid {
    width: 100% !important;
    max-width: none !important;
}

#navModal .col-md-10{border-left: 2px solid #dadada;}

#categoryModal .row,#publisherModal .row{width: 100%;}

.publisher-list p {margin-left: 30px;}
.publisher-list label {
    margin-bottom: 0.2rem;
    font-size: 12px;
    padding-left: 20px !important;
}

.publisher-list label::before, .publisher-list label::after{
        height: 15px !important;
        width: 15px !important;
        border: 1px solid #585fa7;
    }

.district-list label::before,.district-list label::after{
    height: 15px !important;
    width: 15px !important;
    border: 1px solid #585fa7;
}

.subcategory-list label::before,.subcategory-list label::after{
    height: 15px !important;
    width: 15px !important;
    font-size: 12px;
    border: 1px solid #585fa7;
}

label::before {border: 1px solid #585fa7;}

.simple-checkbox p input[type="checkbox"]:checked + label::before{
    background: gray;
    border-color: #6c757d;
}

.simple-checkbox p label {
    margin-bottom: .2rem;
}

.parent-category{text-transform: uppercase;font-weight: bold;color: #006f77;}

.second-menu .menu-item-has-children li {border: 2px solid #e4e4e4;}

.date-buttons button.active {
    background: maroon;
    color: white;
}

label {
    height: 1.8em;
    line-height: 1;
}

.simple-checkbox p {
    width: 90%;
    font-size: 12px;
}
category .simple-checkbox .col-md-6{padding: 10px;border: 1px solid #d0d2e4;}

.parent-category {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.parent-category label{font-size: 13px;}

.toggleDistrict,.toggleSubCategory {
    cursor: pointer;
    float: right;
    font-weight: 300;
    border: 1px solid;
    border-radius: 4px;
    padding: 2px;
    margin-top: -3px;
    margin-left: 10px;}


.toggleSubCategory {
    color: #beb7b7;
}

.modal-head{text-align: right;margin-top: 15px;}

#publisher-modal-search,#location-modal-search,#category-modal-search{background: white;}

.modal-footer #check-all,.modal-footer #uncheck-all{float: left; margin-left: 5px;}
.modal-footer #check-all-locations,.modal-footer #uncheck-all-locations{float: left; margin-left: 5px;}
.modal-footer #check-all-categories,.modal-footer #uncheck-all-categories{float: left; margin-left: 5px;}
.modal-footer #check-all-publishers,.modal-footer #uncheck-all-publishers{float: left; margin-left: 5px;}

.modal-footer{padding: .5rem;background: #e9e9e9;}

.tenders_count{color: green;}

.location-box,.category-box{border: 1px solid lightgray;
    padding: 10px;}

.district-list,.subcategory-list{margin-left: 20px;}

.district-list p,.subcategory-list p{font-size: 12px;}

.icon-up::before {
        content: "▲";
    }

    .icon-down::before {
        content: "▼";
    }

#total-results {
    font-weight: bold;
    font-size: 13px;
    margin-top: 10px;
}

.icon-up::before {
        content: "▲";
    }

    .icon-down::before {
        content: "▼";
    }

    svg{
        max-height: 20px;
    }

    .signup-popup i{line-height: 5px !important;}
    .signin-popup a{padding: 0px 15px !important;}
    .signup-popup a {color: white !important;padding: 5px !important;line-height: 15px !important;}
    .signup-popup a:hover {color: black !important;}
    .signup-popup {margin-top: -5px !important;}
    #userDropdown {border: 1px solid;border-radius: 5px;}

    .close-popup .la-close{margin-top: 10px;}

    .is-invalid {
        outline: 1px solid red;
    }

    #terms-error {
        color: red;
        margin-top: 5px;
    }

    .modal-backdrop.show {
        opacity: 0 !important;
    }

    #navModal th{font-weight: bold}

    #navModal th,#navModal td{font-size: 14px;padding: 5px;}

    .account-popup {margin-top: 80px;}
   

@media (max-width: 1024px) {
    .row, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-10, .col-md-12, .col-lg-12, .column {
        float: none !important;
        display: block !important;
        width: auto !important;
    }
}

@media (min-width: 768px) {
    #navModal .col-md-10 {
        max-width: 100%;
    }
}


@media (max-width: 575px) {
    .category-filter .col-md-6 {
        width: 50% !important;
        float: right !important;
        margin: 1% 0%;
    }

    .tender-table{
        margin-top: 30px !important;
    }

    select{height: 45px; font-size: 18px !important;}

    .mob-50 {
        width: 45%;
        margin: 1% 2%;
    }

    thead th {
        font-size: 14px;
    }

    tbody td {
        font-size: 14px;
    }

    .openTenderModal {
        font-size: 15px;
    }

    .second-menu {
        margin-bottom: 0px;
    }

    .preferences-btn {
        float: none;
    }

    .page-tab .col-md-4 {
        display: inline !important;
    }

    .page-tab .col-md-8 {
        width: 70% !important;
        float: right;
    }

    .procurement-filter select {
        width: 45%;
        margin: 2%;
    }
    
    .home-tab{
        width: 30% !important;
        float: left !important;
    }
    .free-notice{
            width: 60% !important;
            float: right !important;
            text-align: center;
    }

    .location-box, .category-box {
        border: none;
        padding: 10px;
    }
    .modal-head .title{display: none;}

    .district-list p, .subcategory-list p {
        font-size: 18px;
        width: 50%;
    }

    .parent-category label{font-size: 18px;}

    #publisher-modal-list p {
        width: 50%;
        font-size: 15px;
    }

    #navModal th, #navModal td {
        font-size: 18px;
        padding: 5px;
        line-height: 1.2;
    }

    .nav.nav-tabs > li a {font-size: 18px;}

    .district-list label::before, .district-list label::after {
        height: 25px !important;
        width: 20px !important;
    }

    label::before, label::after {
        width: 25px !important;
        height: 25px !important;
    }

    .parent-category{margin-top: 20px !important;}
    
}

@media (min-width: 576px) and (max-width: 767px) {
    /* Add specific styles here */
}

@media (min-width: 575px) and (max-width: 1024px) {
    #categoryModal .modal-footer .col-md-2 {float: right !important;}
    #locationModal .modal-footer .col-md-2 {float: right !important;}
    .tender-table{
        margin-top: 30px !important;
    }
    .col-md-6{
        max-width:70% ;
    }

    #navModal .col-md-6 {
        max-width: 50% !important;
        float: left !important;
    }

    .col-md-5,.col-md-4 ,.col-md-3 {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 98.666667%;
        flex: 0 0 98.666667%;
        max-width: 98.666667%;
    }

    .category-filter .col-md-6 {
        width: 50% !important;
        float: right !important;
        margin: 1% 0%;
    }

    select{height: 45px; font-size: 18px !important;}

    .mob-50 {
        width: 45%;
        margin: 1% 2%;
    }

    .tab-link {
        display: none !important;
    }

    thead th {
        font-size: 14px;
    }

    tbody td {
        font-size: 14px;
    }

    .openTenderModal {
        font-size: 15px;
    }

    .second-menu {
        margin-bottom: 0px;
    }

    .preferences-btn {
        float: none;
    }

    .page-tab .col-md-4 {
        display: inline !important;
    }

    .page-tab .col-md-8 {
        width: 70% !important;
        float: right;
    }

    .procurement-filter select {
        width: 45%;
        margin: 2%;
    }
    
    .home-tab{
        width: 30% !important;
        float: left !important;
    }
    .free-notice{
            width: 60% !important;
            float: right !important;
            text-align: center;
    }

    .location-box, .category-box {
        border: none;
        padding: 10px;
    }
    .modal-head .title{display: none;}

    .district-list p, .subcategory-list p {
        font-size: 18px;
        width: 50%;
    }

    .parent-category label{font-size: 18px;}

    #publisher-modal-list p {
        width: 50%;
        font-size: 15px;
    }

    #navModal th, #navModal td {
        font-size: 18px;
        padding: 5px;
        line-height: 1.2;
    }

    .nav.nav-tabs > li a {font-size: 18px;}

    .district-list label::before, .district-list label::after {
        height: 25px !important;
        width: 20px !important;
    }

    label::before, label::after {
        width: 25px !important;
        height: 25px !important;
    }

    .parent-category{margin-top: 20px !important;}
}

@media (min-width: 992px) {
    /* Add specific styles here */
}


a,button{cursor: pointer !important;}
a:hover,button:hover{cursor: pointer !important;}

.field_w_search i {
    position: absolute;
    right: 15px;
    top: 8px;
    font-size: 20px;
    color: #800000;
}

.tender-table b{color: blue;font-weight: 500;}
#tenderTitle{color: darkblue;}
