
.asi-wp-db-table-container {
    width: 100%;
    overflow-x: auto;
        box-shadow: 0 0 10px 0 rgba(0, 0, 0, .15);
    -moz-box-shadow: 0 0 10px 0 rgba(0, 0, 0, .15);
    -webkit-box-shadow: 0 0 10px 0 rgba(0, 0, 0, .15);
    border-radius: 5px;
}

.asi-wp-db-table {
    font-family: Arial, sans-serif !important; 
    border-collapse: collapse;
    width: 100%;
    background: #FFF;   
}

.asi-wp-db-table th, .asi-wp-db-table td {
    padding: 8px;
    text-align: center;
   font-family: Arial, sans-serif !important; 
}

.asi-wp-db-table td button{
    cursor: pointer;
}


.asi-wp-db-table thead th {
    background-color: #4c5466; /* #6c7ae0;*/
    font-weight: bold;
    color:#FFF;
    cursor: pointer;
    position: relative;
        -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* Internet Explorer/Edge */
    user-select: none;         /* Standard */
}  

.asi-wp-db-table thead th.asi-wp-column-select{
    width: 30px;
}

.asi-wp-db-table thead th .sort-icon {
    margin-left: 5px;
    font-size: 0.8em;
   /* visibility: hidden;*/
}
.asi-wp-db-table thead th:hover .sort-icon {
    visibility: visible;
}

.asi-wp-db-table tbody {
    background-color: #FFF;
}

.asi-wp-db-table tbody > tr:nth-child(even) {
    background-color: #ECECEC; /*#F8F6FF; */
}

.asi-wp-db-table tbody > tr:hover {
    background-color: #d0e7ff; 
}


.asi-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.asi-grid-item {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: center;
    background-color: #f9f9f9;
}


.asi-grid-container-project {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}


/*----- Custom pagination styles -----*/
.asi-pagination-container{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 2em !important;
}

.asi-pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
}

.asi-pagination li {
    margin-right: 2px;
}

.asi-pagination li:not(.disabled):active {
    transform: scale(0.95);
}

.asi-pagination li a {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.asi-pagination li:not(.active) a:hover {
    background-color: #f0f0f0;
}

.asi-pagination .active a {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

.asi-pagination .disabled a {
    pointer-events: none;
    background-color: #eee;
    color: #ccc;
    border-color: #ccc;
}



.asi-pagination li span.pagination-btn {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px !important;
    transition: background-color 0.3s ease;
    cursor: pointer;
     -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* Internet Explorer/Edge */
    user-select: none;         /* Standard */
}

.asi-pagination li:not(.active) span.pagination-btn:hover {
    background-color: #f0f0f0;
}

.asi-pagination .active span.pagination-btn {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

.asi-pagination .disabled span.pagination-btn {
    pointer-events: none;
    background-color: #eee;
    color: #ccc;
    border-color: #ccc;
    border-radius: 4px !important;
}


#asi-page-size{
    padding: 6px 12px;
    border-radius: 4px;
}

.asi-pagination-container .asi-page-size{
    padding: 6px 12px;
    border-radius: 4px;
    color:#000;
}

/* Media Query for Mobile Screens */
@media screen and (max-width: 600px) {
    .asi-pagination-container {
        display: block;
        text-align: center;
        margin-top: 15px;
    }
}

/*.asi-wp-db-table-loading-spinner {
    display: none;
    text-align: center;
    padding: 10px;
}

.asi-wp-db-table-loading-spinner .asi-wp-db-table-loading-spinner-border {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: text-bottom;
    border: .25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    -webkit-animation: table-spin 2s linear infinite;   
    animation: table-spin 2s linear infinite;
}*/


/* Container for the loading animation */
.asi-wp-db-table-loading-spinner{
    display: none; /* Initially hidden */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /*background-color: rgba(0,0,0,0.5);*/
    z-index: 999999999; /* Ensure it sits on top of other content */
}

.asi-wp-db-table-loading-spinner-container{
    width: 200px;
    height: 100px;
    border-radius: 5px;
    background-color: rgba(0,0,0,0.5);
}

    /* The loading spinner */
.asi-wp-db-table-loading-spinner > .asi-wp-db-table-loading-spinner-container > .asi-wp-db-table-loading-spinner-border{
    position: absolute;
    top: calc(50% - 25px);
    left: calc(50% - 25px);
    transform: translate(-50%, -50%);
    border: 5px solid #f3f3f3; /* Light grey */
    border-top: 5px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    -webkit-animation: table-spin  2s linear infinite; /* Spin animation */
    animation: table-spin  2s linear infinite; /* Spin animation */
}


/* Container for the loading animation */
.asi-wp-db-grid-loading-spinner{
    display: none; /* Initially hidden */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /*background-color: rgba(0,0,0,0.5);*/
    z-index: 999999999; /* Ensure it sits on top of other content */
}

.asi-wp-db-grid-loading-spinner-container{
    width: 200px;
    height: 100px;
    border-radius: 5px;
    background-color: rgba(0,0,0,0.5);
}

    /* The loading spinner */
.asi-wp-db-grid-loading-spinner > .asi-wp-db-grid-loading-spinner-container > .asi-wp-db-grid-loading-spinner-border{
    position: absolute;
    top: calc(50% - 25px);
    left: calc(50% - 25px);
    transform: translate(-50%, -50%);
    border: 5px solid #f3f3f3; /* Light grey */
    border-top: 5px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    -webkit-animation: table-spin  2s linear infinite; /* Spin animation */
    animation: table-spin  2s linear infinite; /* Spin animation */
}

/* Spin animation keyframes */
@keyframes table-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.text-primary{
    color: #007bff !important;
}



.asi-pw-project-grid {
    display: grid !important ;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important ;
    gap: 1rem !important ;
}

.asi-pw-prodject-item{
    border: 1px solid #c9c9c9 !important ;
    border-radius: 5px !important ;
    padding: 0.1em !important ;
    background: #fff !important ;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15) !important ;
}

.asi-pw-prodject-item:hover { 
    filter: drop-shadow(0px 0px 4px rgba(36, 36, 36, 0.4)); 
} 

.asi-pw-prodject-item-header, .asi-pw-prodject-item-footer{
    background:#ffffff  !important ; 
    border: 0px  !important ; 
    text-align:center  !important ;
    padding: 0.35em 0.55em !important;
}

.asi-pw-prodject-item-body{
    background:#ffffff  !important ; 
}

.asi-pw-prodject-item-body:hover { 
    cursor: pointer;
} 

.asi-pw-prodject-item-name{
    font-family: var(--asi-wp-font-family) !important;
    font-size: var(--asi-wp-project-item-name-font-size) !important;
    color:#000 !important;
    margin-top: 0 !important;
    margin-bottom: 1em !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.asi-pw-prodject-item-header {
    display: flex !important ;
    justify-content: space-between !important ;
    align-items: center !important ;
    position: relative !important ;
    font-size:0.9em !important;
    color:#000000 !important;
    font-weight: bold !important;
}

.asi-pw-prodject-item-img {
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
}

.asi-pw-prodject-item-body .card-img
, .asi-pw-prodject-item-body .card-img-bottom
, .asi-pw-prodject-item-body .card-img-top 
{
    width: auto !important;
}

.asi-pw-prodject-item-footer{
    margin-top: 0.7em !important;
    margin-bottom: 0.7em !important;
    font-size:var(--asi-wp-project-item-footer-font-size) !important;
    color:#858585 !important;
}

.asi-pw-project-item-menu-icon {
    cursor: pointer !important ;
    position: relative !important ;
    display: inline-block !important ;
}
.asi-pw-project-item-dropdown-menu {
    display: none !important ;
    position: absolute !important ;
    top: 0% !important ;
    right: 0 !important ;
    background: white !important ;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.55) !important ;
    border-radius: 0.25rem !important ;
    z-index: 1 !important ;
    min-width: 10rem !important ;
}
.asi-pw-project-item-dropdown-menu a {
    display: block !important ;
    padding: 0.5rem 1rem !important ;
    color: black !important ;
    text-decoration: none !important ;
    font-size: var(--asi-wp-project-item-name-font-size) !important;
}
.asi-pw-project-item-dropdown-menu a:hover {
    background-color: #f1f1f1 !important ;
}
.asi-pw-project-item-menu-icon:hover .asi-pw-project-item-dropdown-menu {
    display: block !important ;
}




 
