ol, ul {
    padding-left: 0;
}

#loading-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#rsap_page {
    width: 100%;
}

#rsap_page .top {
    display: none;
}

#rsap_page {
    visibility: hidden;
}

#rsap_table {
    display: none;
}

#rsap-list {
    width: 100%;
    padding: 0;
    margin-block-end: 2rem;
}

#rsap-list li {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    list-style: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
}

#rsap-list li:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#rsap_table_wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    flex-flow: column;
}

#rsap_table_wrapper .bottom .ellipsis {
    /*margin-left: 5px;*/
    margin: 0 .5rem;
}

.tender_listing li p {
    margin: 5px 0;
}

#rsap_table_wrapper .top {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin: 14px 0 25px 0;
    padding: 14px 16px;
    background-color: #ececec;
    -webkit-box-shadow: 0 0 4px 1px rgb(0 0 0 / 19%);
    box-shadow: 0 0 4px 1px rgb(0 0 0 / 19%);
}

#rsap_table_wrapper .dataTables_info {
    padding-top: 0;
}

.tender_entity {
    margin-bottom: 1.5em;
}

#rsap-list li:hover,
#rsap-list li:focus,
#rsap-list li:active {
    box-shadow: 0 6px 21px 3px rgb(0 0 0 / 8%);
}

.entity_header {
}

.entity_header .header-flex {
    display: flex;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 14px 16px;
    background-color: #efefef;
}

.modifiedDate .modifiedDate_text {
    color: #787878;
    font-size: 14px;
}

.modifiedDate .modifiedDate_data {
    font-size: 15px;
    font-weight: 600;
}

.entity_data {
    display: flex;
    width: 100%;
    list-style: none;
    text-align: unset;
    padding: .6em;
}

.entity_description {
    width: 100%;
    border-right: 1px solid #d2d2d2;
    padding-right: .8rem;
    max-width: 50%;
}

.entity_description .description_title,
.entity_description .description {
    text-justify: inter-word;
}

.entity_description .description_title a {
    display: block;
    line-height: 26px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--bs-template);
    text-decoration: none;
}

.entity_description .description_title a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.entity_description .description {
    margin-top: 5px;
    line-height: 1.6;
    color: #333333;
    font-size: 12px;
}

.entity_amount {
    width: 27%;
    padding: 0 12px;
}

.entity_amount .currency .currency_info {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 6px;
    font-size: 11px;
    color: #787878;
}

.entity_amount .amount {
    display: flex;
    justify-content: flex-end;
    font-weight: bold;
    font-size: 1.4rem;
    align-items: baseline;
}

.amountfraction {
    font-size: 14px;
}

.entity_procedure {
    width: 26%;
    border-left: 1px solid #d2d2d2;
    padding-left: 10px;
}

.entity_procedure .procedure_title {
    display: flex;
    justify-content: flex-start;
    font-size: 11px;
    color: #787878;
}

.entity_procedure .procedure_info {
    display: flex;
    justify-content: flex-start;
    line-height: 1.5;
    font-size: 12px;
    color: #000;
}

.entity_procedure > div:not(:first-child) {
    margin-top: 0.3rem;
}

/*Pagination*/
.dataTables_paginate {
    display: flex;
    flex-wrap: wrap;
    padding-left: 0;
    list-style: none;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-shadow: 0 0 1.25rem rgba(30, 34, 40, 0.04);
}

.dataTables_paginate a {
    width: auto;
    min-width: 2.5rem;
    padding: 0 1rem;
    height: 2.5rem;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    color: #252525;
    background-color: #fff;
    border: 1px solid rgba(164, 174, 198, 0.2);
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    margin-left: calc(1px * -1);
}

.dataTables_paginate .paginate_button.current {
    background-color: #0f4b91;
    border-color: #0f4b91;
    color: white;
}

#rsap_table_first {
    border-top-left-radius: .4rem;
    border-bottom-left-radius: .4rem;
}

#rsap_table_last {
    border-top-right-radius: .4rem;
    border-bottom-right-radius: .4rem;
}

.dataTables_paginate a:hover {
    color: #252525;
    background: #eee;
}

.dataTables_paginate > span {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
}

/*Search panel*/
.post-search-panel {
    background-color: #dcdcdc;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 23px;
}

.post-search-p1 .form-control {
    border: 1px solid rgb(99 99 99 / 28%);
}

.post-search-p1,
.post-search-p2 .top {
    align-items: flex-end;
    justify-content: space-between;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.dataTables_length select {
    text-align: center;
    padding: 4px 8px;
    border: 1px solid #ced4da;
    font-size: 0.75rem;
    color: #60697b;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0;
    box-shadow: 0 0 1.25rem rgba(30, 34, 40, 0.04);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.post-search-p1 .search_details {
    flex: 1;
    flex-basis: 220px;
}

.post-search-p1 .search_sortBy {
    width: 100%;
}

.search_details input, .search_amount input, .search_sortBy select {
    height: 40px;
    border-radius: 0;
}

#searchInput_title::-webkit-input-placeholder,
#searchInput_a_from::-webkit-input-placeholder,
#searchInput_a_to::-webkit-input-placeholder {
    color: #999;
}

#searchInput_a_from {
    max-width: 110px;
}

#searchInput_a_to {
    max-width: 110px;
}

.search_a_to {
    display: flex;
    gap: .3rem;
}

#searchInput_a_from,
#searchInput_a_to {
    display: inline-block;
}

.searchInput_title_label,
.searchInput_a_from_label,
.sortBy_title_label {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: .2rem;
    padding-left: .1rem;
}

#searchInput_a_from::-webkit-inner-spin-button,
#searchInput_a_to::-webkit-inner-spin-button {
    display: none;
}

#sortBy {
    padding: 0 .6rem 0 .6rem;
}

#resetSearch {
    padding: 8px 16px;
    background-color: var(--bs-template);
    color: #fff;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

@media only screen and (min-width: 768px) {
    .post-search-p1 .search_sortBy {
        flex-basis: 350px;
        flex-grow: 0;
    }
}

/*Status icon*/
.entity_status,
.modifiedDate {
    display: -webkit-box;
}

.entity_icon {
    display: inline-block;
    position: relative;
    margin-right: 10px;
    margin-top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    flex: none;
}

.entity_status .status_default {
    background-color: #2da9e2;
}

.entity_status .status_clarification {
    background-color: #97ca63;
}

.entity_status .status_awarding {
    background-color: #ff7900;
}

.entity_status .status_unsuccessful {
    background-color: #d1d1d1;
}

.entity_status .status_cancelled {
    background-color: #d1d1d1;
}

.entity_status .status_complete {
    background-color: #d1d1d1;
}

.entity_status .status_awarded {
    background-color: #97ca63;
}

.entity_status .status_published {
    background-color: #d1d1d1;
}

.entity_status .status_tendering {
    background-color: #97ca63;
}

.entity_status .status_auction {
    background-color: #ff7900;
}

.entity_status .status_suspended {
    background-color: #d1d1d1;
}

.entity_status .status_awarding:before {
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 9px;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background-color: #2daae2;
}

.entity_status .status_tendering:before {
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 9px;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background-color: #235aa6;
}

.entity_status .status_awarded:before {
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 9px;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background-color: #2daae2;
}

.entity_status .status-suspended:before {
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 9px;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background-color: #97ca63;
}

.entity_status .status_complete:before,
.entity_status .status_complete:after {
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    width: 8px;
    height: 2px;
    background-color: #9e9e9e;
}

.entity_status .status_complete:before {
    left: 38%;
    -webkit-transform: translate(-50%, -50%) rotate(45deg);
    transform: translate(-50%, -50%) rotate(45deg);
}

.entity_status .status_complete:after {
    left: 62%;
    -webkit-transform: translate(-50%, -50%) rotate(-45deg);
    transform: translate(-50%, -50%) rotate(-45deg);
}


.entity_status .status_cancelled:before,
.entity_status .status_cancelled:after {
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 15px;
    height: 2px;
    background-color: #9e9e9e;
}

.entity_status .status_cancelled:before {
    -webkit-transform: translate(-50%, -50%) rotate(45deg);
    transform: translate(-50%, -50%) rotate(45deg);
}

.entity_status .status_cancelled:after {
    -webkit-transform: translate(-50%, -50%) rotate(-45deg);
    transform: translate(-50%, -50%) rotate(-45deg);
}

.entity_status .status_unsuccessful:before {
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 15px;
    height: 2px;
    background-color: #9e9e9e;
    -webkit-transform: translate(-50%, -50%) rotate(-45deg);
    transform: translate(-50%, -50%) rotate(-45deg);
}

@media only screen and (max-width: 768px) {
    .entity_data {
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }

    .entity_description {
        max-width: none;
        border: none;
    }

    .entity_description .description {
        margin-bottom: 25px;
    }

    .entity_amount .currency .currency_info {
        margin: 0;
    }

    .entity_amount {
        width: 100%;
        margin-bottom: 0;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
    }

    .entity_amount .currency,
    .entity_amount .amount {
        display: flex;
        justify-content: center;
        /*align-items: center;*/
    }

    .entity_amount .amount {
        font-size: 1.8rem !important;
    }

    .entity_procedure {
        width: 100%;
        display: flex;
        flex-flow: column;
        justify-content: center;
        align-items: center;
        border: none;
    }

    .entity_procedure .procedureType .procedure_title,
    .entity_procedure .entityId .procedure_title {
        justify-content: center;
    }

    .entity_procedure .procedureType,
    .entity_procedure .procedureType {
        padding: 2% 0;
    }

    #rsap_table_paginate > span {
        /*display: block;*/
        /*padding: 4% 0;*/
    }

    #rsap_table_paginate .ellipsis {
        /*display: none;*/
    }

    #rsap_table_first,
    #rsap_table_previous,
    #rsap_table_next,
    #rsap_table_last {
        display: none;
    }

}

@media only screen and (max-width: 620px) {
    #rsap_page .post-search-panel {
        flex-direction: column;
        /*align-items: flex-start;*/
    }

    #rsap_page .post-search-panel .search_amount {
        /*padding: 2% 0;*/
    }

    #rsap_page #sortBy {
        display: block;
        width: 100%;
        /*max-width: 230px;*/
    }

    #searchInput_a_from,
    #searchInput_a_to {
        width: 100%;
        max-width: fit-content;
    }
}

@media only screen and (max-width: 600px) {
    #rsap_table_wrapper .top {
        flex-flow: column;
    }

    #rsap_table_wrapper .top .dataTables_info {
        margin: 2% 0;
    }

    .entity_header .header-flex {
        flex-direction: column;
        align-items: center;
        padding: 14px 4px 4px 4px;
    }

    .entity_header .header-flex .entity_status {
        /*margin-bottom: 3%;*/
        display: flex;
        align-items: center;
        flex-direction: row;
        line-height: normal;
        flex-wrap: nowrap;
    }

    .procedureStatus {
        font-size: .8rem;
        line-height: unset;
    }

    .entity_icon {
        margin-top: 0;
    }

    .modifiedDate_text {
        font-size: 12px !important;
    }

    .modifiedDate_data {
        font-size: 13px !important;
    }
}

@media only screen and (max-width: 591px) {
    .search_details {
        width: 100%;
    }

    #searchInput_title {
        max-width: unset;
    }

    .entity_icon {
        margin-right: 5px;
        width: 16px;
        height: 16px;
    }
}

@media only screen and (max-width: 572px) {
    .search_sortBy {
        width: 100%;
    }
}

@media only screen and (max-width: 391px) {
    .procedureStatus {
        font-size: .6rem;
    }

    .modifiedDate_data {
        font-size: 12px !important;
    }

    .entity_data {
        padding-bottom: 0;
    }
}

@media only screen and (min-width: 768px) {
    .entity_description .description_title a {
        font-size: 1.1rem;
    }

    .header-flex {
        gap: 10px;
        flex-wrap: wrap;
    }

    .entity_status {
        flex: 1;
    }
}
