/* Original project table CSS preserved from the existing HTML widget. */


.table-responsive table thead th {
    background: #293b93 !important;
    color: #fff !important;
}

.gwmicc-projects-widget .entries-box {
    width: auto !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
}

.gwmicc-projects-widget .main-show {
    padding-top: 0px !important;
    padding-left: 10px;
    align-items: center;
    justify-content: center;
    display: flex;
}

.gwmicc-projects-widget .project-table-wrapper {
    font-family: Arial, sans-serif;
    width: 100%;
}

.gwmicc-projects-widget .table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.gwmicc-projects-widget .entries-box select {
    padding: 8px;
    outline:none !important;
}

.gwmicc-projects-widget .search-box input {
    padding: 8px 12px;
    width: 250px;
outline:none !important;
}

.gwmicc-projects-widget .table-responsive {
    overflow-x: auto;
}

.gwmicc-projects-widget #projectTable {
    width: 100%;
    border-collapse: collapse;
}

.gwmicc-projects-widget #projectTable th {
    background: #293b93;
    color: #fff;
    padding: 12px;
    border: 1px solid #293b93 !important;
}

.gwmicc-projects-widget #projectTable td {
    border: 1px solid #293b93 !important;
    padding: 12px;
    vertical-align: top;
}

.gwmicc-projects-widget #projectTable tbody tr:nth-child(even) {
    background: #f8f8f8;
}


/* =========================
   PAGINATION
   ========================= */

.gwmicc-projects-widget [id$="-pagination"] {
    margin-top: 20px !important;
    text-align: center !important;
    width: 100%;
}

.gwmicc-projects-widget [id$="-pagination"] button {
    display: inline-block !important;
    margin: 3px !important;
    padding: 8px 12px !important;
    border: none !important;
    background: #293b93 !important;
    color: #fff !important;
    cursor: pointer !important;
    border-radius: 0 !important;
}

/* Active page */
.gwmicc-projects-widget [id$="-pagination"] button.active {
    background: #000 !important;
    color: #fff !important;
}

/* Hover */
.gwmicc-projects-widget [id$="-pagination"] button:hover {
    background: #000 !important;
    color: #fff !important;
}

/* Disabled Previous / Next */
.gwmicc-projects-widget [id$="-pagination"] button:disabled {
    background: #ddd !important;
    color: #777 !important;
    cursor: not-allowed !important;
}


/* =========================
   MOBILE
   ========================= */

@media(max-width:768px) {

    .gwmicc-projects-widget .table-controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .gwmicc-projects-widget .search-box input {
        width: 100%;
        box-sizing: border-box;
    }
}
