/* ============================================================
   FILTER BAR LAYOUT
   ============================================================ */

.ec-filter-bar {
    background: #f3f7f3;
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    border: 1px solid #e1ece1;
}

#ec-resource-filters {
    width: 100%;
}

.ec-filter-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-between;
}

.ec-filter-col {
    flex: 0 1 auto;
    min-width: 220px;
    max-width: 300px;
}

.ec-filter {
    display: flex;
    flex-direction: column;
    margin-bottom: 14px;
}

.ec-filter label {
    font-weight: 600;
    margin-bottom: 4px;
}

/* Select2 resets */
.ec-filter-bar .select2-container {
    min-width: 150px;
    max-width: 100%;
}

.ec-filter select,
.ec-filter input[type="text"],
.ec-filter input[type="number"] {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}


/* ============================================================
   RESULTS COUNT + LOADING SPINNER
   ============================================================ */

.ec-resource-count {
    margin: 12px 0 20px;
    font-weight: 700;
    color: #2c662d;
    display: flex;
    align-items: center;
    gap: 10px;
}


/* ============================================================
   RESULTS TABLE
   ============================================================ */

.ec-resource-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.ec-resource-table th,
.ec-resource-table td {
    padding: 10px 12px !important;
    border: 1px solid #e5e5e5;
    vertical-align: top;
    word-break: break-word;
}

/* Company column max width */
.ec-resource-table tr td:first-of-type {
    max-width: 250px;
}

/* Action column max width */
.ec-resource-table tr td:last-of-type {
    max-width: 130px;
}

/* Bullet list inside table */
.ec-mini-list {
    margin: 0;
    padding-left: 18px;
}

.ec-mini-list li {
    margin: 0;
    list-style-type: disc;
    font-size: 13px;
    line-height: 1.3;
}


/* ============================================================
   INFO ICON + POPUP
   ============================================================ */

.ec-company-cell {
    position: relative;
}

.ec-info-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 6px;
    border-radius: 50%;
    background: #0073aa;
    color: #fff;
    font-size: 11px;
    text-align: center;
    line-height: 16px;
    cursor: pointer;
    position: relative;
}

.ec-info-popup {
    display: none;
    position: absolute;
    left: 20px;
    top: -10px;
    z-index: 10;
    background: #fff;
    border: 1px solid #ccc;
    padding: 8px 10px;
    width: 240px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border-radius: 6px;
    font-size: 13px;
    color: #333;
}

.ec-info-icon:hover .ec-info-popup,
.ec-info-icon:focus .ec-info-popup {
    display: block;
}

.ec-info-popup a {
    color: #0073aa;
    text-decoration: none;
}

.ec-info-popup a:hover {
    text-decoration: underline;
}





/* ============================================================
   RESOURCE SUMMARY TABLES
   ============================================================ */

.ec-resource-summary table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    text-align: center;
}

.ec-resource-summary th {
    background: #1976d2;
    color: #fff;
    padding: 8px;
    font-weight: 600;
}

.ec-resource-summary td {
    border: 1px solid #ccc;
    padding: 6px 8px;
}

.ec-summary-total td {
    font-weight: 700;
    background: #f0f6ff;
}


/* ============================================================
   REQUEST MODAL SPECIFIC STYLING
   ============================================================ */

#ec-modal-comments {
    margin-top: 6px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    resize: vertical;
}

#ec-request-modal .acf-field {
    margin-bottom: 10px;
}

#ec-request-modal .acf-field label {
    font-weight: 600;
    margin-bottom: 4px;
}

#ec-request-modal .acf-form-submit {
    text-align: right;
}

#ec-request-modal .acf-field.ec-hidden-field {
    display: none !important;
}

#ec-request-acf-form {
	display: none;
}
.ec-eligibility-msg {
	color:#900;
	font-weight:bold;
	margin-top:15px; 
	display: none;
}


/* ============================================================
   RESPONSIVE BEHAVIOR
   ============================================================ */

@media (max-width: 768px) {
    .ec-filter-columns {
        flex-direction: column;
    }

    .ec-filter-col {
        max-width: 100%;
    }
}



.ec-detail-row {
    margin: 8px 0;
}