.select {
    max-width: 320px;
    padding: 7px 16px 7px 14px;
    border-color: #ddd;
    border-radius: 2px;
    color: $color-select;
}

.download-dropdown-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid $color-border-gray;
    width: max-content;
}

.downlaod-link {
    padding: 4px 8px;
}

.table {
    margin-bottom: 45px;

    table {
        overflow-x: auto;
        display: block;
        width: 100%;
        margin-bottom: 15px;
        table-layout: auto;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        border-collapse: collapse;
    }

    th,
    td {
        padding: 10px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    :global(.text-center) {
        text-align: center;
    }

    :global(.ember-content-placeholders-text__line) {
        margin-bottom: 0;
    }
}

.header {
    background: #365063;
    color: #fff;
}

.item {
    font-size: 16px;

    td {
        border-right: 1px solid #ddd;
        border-top: 0;

        &:last-of-type {
            border-right: 0;
        }
    }

    &:nth-child(even) {
        background-color: #eee;
    }
}

.sort-arrow {
    padding-left: 4px;

    :global(.btn.selected) {
        color: #fff !important;
    }

    :global(.btn.not-selected) {
        color: #fff !important;
        opacity: 0.25;

        &:hover {
            opacity: 1;
        }
    }
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.header-text {
    text-overflow: ellipsis;
    flex-grow: 1;
}

.sort-arrow-container {
    display: inline-flex;
    align-items: center;
    margin-left: 4px;
}

.sort-arrow {
    display: inline-block;
    vertical-align: middle;
    color: #fff;
}

.select-container {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    float: right;
}

.select {
    min-width: 120px;
    padding: 7px 16px 7px 14px;
    border-color: $color-border-gray;
    border-radius: 2px;
    color: $color-select;
    text-align: center;
    margin: 15px;

    span {
        margin-left: 0;
    }
}

.filter-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background-color: $color-bg-white;
    border: 1px solid $color-border-gray;
    border-radius: 4px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 220px;

    &.mobile {
        max-width: none;
    }
}

.dropdown-content {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.dropdown-trigger {
    padding: 9px;
    color: $color-select;
}

.dropdown-content label {
    display: flex;
    align-items: center;
    padding: 4px 0;
    font-size: 14px;
    font-weight: lighter;
}

.dropdown-content [type='checkbox'] {
    margin-right: 8px;
    cursor: pointer;
}

.dropdown-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 10px;
    border-top: 1px solid $color-light;
}

.icon-columns {
    padding-right: 5px;
}

.filter-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.orcid-switch {
    display: flex;
    align-items: center;
}

.orcid-toggle-label {
    margin-right: 10px;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    font-weight: lighter;
}

.switch {
    position: relative;
    display: inline-flex;
    width: 60px;
    height: 30px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
    border-radius: 34px;
    transition: background-color 0.4s;
    background-color: #ccc;
    cursor: pointer;
    position: flex;
}

.slider::before {
    content: '';
    height: 24px;
    width: 24px;
    background-color: $color-bg-gray;
    margin-left: 3px;
    border-radius: 50%;
    transition: transform 0.4s, background-color 0.4s;
    position: flex;
}

/* Change handle color when checked */
input:checked + .slider::before {
    background-color: $color-green;
}

/* Hover effects for handle */
input:not(:checked) + .slider:hover::before {
    background-color: $color-bg-gray-darker;
}

input:checked + .slider:hover::before {
    background-color: $color-green-light;
}

input:checked + .slider::before {
    transform: translateX(30px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round::before {
    border-radius: 50%;
}

.total-users {
    margin-right: auto; /* Aligns text to the left */
    display: block ruby;
    align-items: center;
}

.total-users label {
    font-size: 18px;
    margin-bottom: 0;
    font-weight: normal;
}

.total-users-count {
    font-size: 24px;
    margin-right: 5px;
    font-weight: bold;
}

.download-button-group {
    display: inline-flex;
    padding-left: 10px;
    align-content: center;


    .download-dropdown {
        margin-left: 3px;
    }
}

.download-dropdown-trigger {
    color: $color-link-dark;
}

.flex {
    display: flex;
    align-items: center;
}

.top-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.right-button-group {
    justify-content: flex-end;
    margin-right: 15px;
}


.icon-message {
    opacity: 0;
    color: $color-text-blue-dark;
    /* !important used to override ember Button border scripting  */
    background-color: inherit !important;
    border: 0 !important;
    box-shadow: 0 !important;
}

.icon-message:hover {
    opacity: 1;
    background-color: inherit !important;
}

.message-textarea {
    min-width: 450px;
    min-height: 280px;
}

.message-label {
    display: block;
}

.checkbox-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}
