/* utility */
.blurred {
    filter: blur(2px);
    -webkit-filter: blur(2px);
    /*pointer-events: none;*/
}

/* tables wrapper */
#csltables-wrapper table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

#csltables-wrapper table td {
    word-break: normal;
    overflow-wrap: break-word;
}

#csltables-wrapper table td:first-child,
#csltables-wrapper table th:first-child {
    width: 50%;
    min-width: 200px;
}

#csltables-wrapper table td:not(:first-child),
#csltables-wrapper table th:not(:first-child) {
    text-align: center;
}

#csltables-wrapper table td:last-child,
#csltables-wrapper table th:last-child {
    min-width: 200px;
}

#csltables-wrapper table thead {
    background-color: #f4f4f4;
}

/* Individual table wrappers */
.csltable-wrapper {
    border-radius: 0.5rem;
    overflow-x: scroll !important;
    margin-bottom: 1.5rem;
    border: 1px solid #f0f0f0;
}

.csltable-wrapper table tbody:last-child td {
    border-bottom: none !important;
}

/* table texts */
.site-name {
    font-weight: 700;
}

.text-underline-on-hover:hover {
    text-decoration: underline;
}

.green-text {
    color: #28a745;
}

.green-text:hover {
    color: #1e7e34;
}

.blue-text {
    color: #007bff;
}

.blue-text:hover {
    color: #0056b3;
}

.grey-text {
    color: #6c757d;
}

.grey-text:hover {
    color: #495057;
}

/* Recruitment Status Button - Base */
.recruitment-status-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    margin: 0 auto;
    font-size: 0.875rem;
    line-height: 1.5;
    white-space: nowrap;
    color: #ffffff;
    border: none;
    border-radius: 0.8em;
    border-radius: 2em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.recruitment-status-btn .badge-verified {
    width: 1rem;
    height: 1rem;
    margin-left: 0.25rem;
}

/* Green (Verified and Recommended) */
.green-text .recruitment-status-btn {
    background: linear-gradient(135deg, #28a745 0%, #5dd879 100%);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.25);
}

.green-text .recruitment-status-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
    background: linear-gradient(135deg, #1e7e34 0%, #28a745 100%);
}

.green-text .recruitment-status-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3);
}

.green-text .recruitment-status-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.3);
}

/* Blue (Verified) */
.blue-text .recruitment-status-btn {
    background: linear-gradient(135deg, #007bff 0%, #5da9ff 100%);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.25);
}

.blue-text .recruitment-status-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
    background: linear-gradient(135deg, #0056b3 0%, #007bff 100%);
}

.blue-text .recruitment-status-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}

.blue-text .recruitment-status-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.3);
}

/* Black (With Recruitment Status) */
.black-text .recruitment-status-btn {
    background: linear-gradient(135deg, #343a40 0%, #6c757d 100%);
    box-shadow: 0 2px 8px rgba(52, 58, 64, 0.25);
}

.black-text .recruitment-status-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 58, 64, 0.4);
    background: linear-gradient(135deg, #23272b 0%, #343a40 100%);
}

.black-text .recruitment-status-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(52, 58, 64, 0.3);
}

.black-text .recruitment-status-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 58, 64, 0.3);
}

/* Gray (Other) */
.gray-text .recruitment-status-btn {
    background: linear-gradient(135deg, #6c757d 0%, #adb5bd 100%);
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.25);
}

.gray-text .recruitment-status-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
    background: linear-gradient(135deg, #495057 0%, #6c757d 100%);
}

.gray-text .recruitment-status-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(108, 117, 125, 0.3);
}

.gray-text .recruitment-status-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(108, 117, 125, 0.3);
}

/* No Sites Found Message */
.no-sites-message {
    padding: 1em;
    margin: 1rem 0 2rem 0;
    background-color: #f8f9fa;
    border-left: 4px solid #6c757d;
    border-radius: 0.25rem;
    font-style: italic;
    font-size: 14px;
}

/* Folds */
.fold-section {
    transition:
        height 0.3s ease-in-out,
        opacity 0.3s ease-in-out;
    overflow: hidden;
}

.folded {
    opacity: 0;
    height: 0;
}

.folded tr {
    display: none;
}

.unfolded {
    opacity: 1;
}

.unfolded tr {
    display: table-row;
}

.btn-fold {
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0 0.4rem;
    margin-left: auto;
    transition: scale 0.1s ease-in-out;
}

.btn-fold:hover {
    transform: scale(1.1);
}

.show-more-row {
    cursor: pointer;
}

.show-more-row td {
    text-align: center;
    padding: 1rem;
    font-weight: 500;
    border-bottom: none;
}

.show-more-row td:hover {
    text-decoration: underline;
}

.show-more-row.hidden {
    display: none;
}
