/* Table Styles */

.consultations-table {
    width: 100%;
    min-width: 800px;
    border-collapse: separate;
    border-spacing: 0 5px;
}


.consultations-table  td,
.consultations-table  th{
    border: none!important;
}

.consultations-table  td{
    background-color: transparent!important;
}
/* Table Header */
.consultations-table thead{
    background: var(--e-global-color-a46044a);
    color: #ffffff;
}

.consultations-table thead th {
    padding: 7px 20px;
    text-align: left;
    letter-spacing: 0.5px;
    color: var(--e-global-color-text);
    font-family: var(--e-global-typography-secondary-font-family);
    font-size: 15px;
    font-weight: 400;
}

/* Table Body */
.consultations-table tbody tr {
    transition: background-color 0.3s ease;
}

.consultations-table tbody tr td{
    transition: border-radius 0.3s ease;
}
.consultations-table tbody tr.consultation-main-row {
    cursor: pointer;
}

.consultations-table thead th:first-child,
.consultations-table tbody tr td:first-child {
    border-radius: 7px 0 0 7px;
}

.consultations-table thead th:last-child,
.consultations-table tbody tr td:last-child {
    border-radius: 0 7px 7px 0;
}

.consultations-table tbody tr.consultation-main-row:hover{
    background-color: #f7f9fc!important;
}

.consultations-table tbody tr.consultation-main-row.is-open{
    background-color: #f7f9fc!important;
}


.consultations-table tbody tr.consultation-details-row.is-open{
    background-color: var(--e-global-color-a46044a)!important;
}

.consultations-table tbody tr.consultation-details-row {
    border-bottom: 2px solid #ccc;
    display: none;
}

.consultations-table tbody tr.consultation-details-row {
    border-bottom: 2px solid #ccc;
    display: none;
}

.consultations-table tbody tr.consultation-main-row td{
    border-bottom: 1px solid var(--e-global-color-a46044a)!important;
    transition: border-bottom-color 0.3s ease;
}

.consultations-table tbody tr.consultation-details-row.is-open {
    display: table-row;
    top: -12px;
    position: relative;
}

.consultations-table tbody tr.expired {
    opacity: 0.7;
}

.consultations-table tbody td {
    padding: 16px 20px;
    vertical-align: top;
    font-size: 14px;
    color: #555;
}

/* Column sizing */
.col-published,
.col-deadline {
    width: 120px;
    min-width: 120px;
    font-weight: 600;
    color: var(--e-global-color-text);
}

.col-description {
    width: auto;
}

/* Table Content */
.consultation-title {
    font-family: var(--e-global-typography-secondary-font-family);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--e-global-color-text);
    margin: 0;
}

.consultation-detail-item {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
}

.consultation-detail-item strong {
    color: var(--e-global-color-text);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 1200px) {
    .consultations-table {
        min-width: 700px;
    }
}

@media (max-width: 768px) {
    .consultations-table {
        min-width: 600px;
        font-size: 13px;
    }

    .consultations-table thead th {
        padding: 12px 15px;
        font-size: 12px;
    }

    .consultations-table tbody td {
        padding: 12px 15px;
        font-size: 13px;
    }

    .col-published,
    .col-deadline {
        width: 100px;
        min-width: 100px;
    }

    .consultation-title {
        font-size: 15px;
    }

    .consultation-detail-item {
        font-size: 13px;
    }
}
