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

.profile-title {
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 30px;
}

.profile-id-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-id {
    background-color: #e0e0e0;
    color: #333;
    padding: 2px 6px;
    display: inline-block;
    text-align: center;
    font-weight: bold;
    font-size: 12px;
    border: 1px solid #ccc;
}

.profile-pipe {
    margin: 0 2px;
    color: #888;
}

.profile-photo {
    margin-right: 70px;
}

.profile-photo img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-details p {
    margin: 0;
}

.profile-details h3 {
    font-size: 20px;
    font-weight: bold;
    margin: 4px 0;
}

.admin-details p,
.profile-details p {
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: normal;
    font-size: 15px;
}

.admin-header {
    margin-bottom: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-title {
    font-size: 20px;
    font-weight: bold;
}

.admin-lists h2 {
    font-size: 15px;
    font-weight: bold;
}

.admin-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 16px;
    margin-bottom: 38px;
}

.admin-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.admin-profile-photo img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.admin-details {
    flex: 1;
}

.admin-profile-id-row,
.org-id-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.org-id-row {
    font-weight: bolder;
}

.admin-profile-id,
.org-id {
    background-color: #e0e0e0;
    color: #333;
    padding: 0.5px 4px;
    display: inline-block;
    text-align: center;
    font-weight: bold;
    border: 1px solid #ccc;
}

.admin-details p {
    margin: 0;
    font-size: 12px;
}

.admin-details h3 {
    font-size: 14px;
    font-weight: bold;
    margin: 2px 0;
}

.preferred-lang,
.working-org {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.preferred-lang-container,
.working-org-container {
    display: flex;
    gap: 8px;
    align-items: center;
    position: relative;
}

.preferred-lang-container label,
.working-org-container label {
    margin-bottom: 0;
}

.preferred-lang-form,
.working-org-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.preferred-lang-form label,
.working-org-form label {
    display: block;
    flex-wrap: nowrap;
    font-size: 15px;
    font-family: DT-light, Arial, sans-serif;
    font-weight: unset;
}

.preferred-lang-form select,
.working-org-form select {
    min-width: 0;
    width: auto;
    max-width: 100%;
}

#preferred-lang-edit-icon,
#working-org-edit-icon {
    margin-left: 4px;
    cursor: pointer;
    display: inline-block;
    transform: scaleX(-1);
    vertical-align: middle;
}

.btn-update {
    padding: 4px 8px;
    background-color: #000;
    color: #ffffff;
    border: none;
    font-size: 15px;
    cursor: pointer;
    margin-right: 1rem;
    width: 115px;
}

.btn-update:disabled {
    background-color: #ccc;
    color: #888;
    cursor: not-allowed;
    position: relative;
}

.btn-cancel {
    padding: 4px 8px;
    background-color: #ccc;
    color: #333;
    border: none;
    font-size: 15px;
    cursor: pointer;
    width: 100px;
}

#spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid #ccc;
    border-top: 3px solid #333;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.preferred-lang-modal,
.working-org-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(60, 60, 60, 0.35);
}

.preferred-lang-modal .preferred-lang-modal-content,
.working-org-modal .working-org-modal-content {
    max-height: 500px;
    margin: 0 auto;
    padding: 24px;
    background: #fff;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.preferred-lang-modal .preferred-lang-modal-content {
    width: 600px;
    max-width: 600px;
}

.working-org-modal .working-org-modal-content {
    width: 800px;
    max-width: 800px;
}

.preferred-lang-search,
.working-org-search {
    width: 100%;
    margin: 12px 0;
    padding: 8px 32px 8px 8px;
    background-color: #f8f8f8;
    border: none;
    border-bottom: 2px solid #e0e0e0;
    outline: none;
    font-size: 15px;
    background-image: url('/userguides/assets/images/search-icon.svg');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px 18px;
}

.preferred-lang-radio-list,
.working-org-radio-list {
    overflow-y: auto;
    max-height: 300px;
    padding: 8px 0px;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
}

.preferred-lang-option,
.working-org-option {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 5px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: background 0.18s;
    background-color: #f8f8f8;
}

.preferred-lang-option:last-child,
.working-org-option:last-child {
    margin-bottom: 0;
}

.preferred-lang-option:hover,
.working-org-option:hover {
    background-color: #e0e0e0;
}

.preferred-lang-option input[type="radio"],
.working-org-option input[type="radio"] {
    margin-right: 25px;
    width: 40px;
    pointer-events: none;
}

.preferred-lang-option label,
.working-org-option label {
    margin: 0;
    font-size: 15px;
    cursor: pointer;
    font-weight: normal;
    text-align: left;
    user-select: none;
    flex: 1;
    display: grid;
    grid-template-columns: 2.5fr 1fr 1fr;
    gap: 10px;
    align-items: center;
}

.working-org-option .org-info-column {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.working-org-option .org-location,
.working-org-option .org-country {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.preferred-lang-modal-close,
.working-org-modal-close {
    position: absolute;
    top: -6px;
    right: 6px;
    font-size: 28px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
}

.preferred-lang-modal-close:hover,
.working-org-modal-close:hover {
    color: #333;
}

.preferred-lang-modal-buttons,
.working-org-modal-buttons {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

#no-preferred-lang-results,
#no-working-org-results {
    display: none;
    text-align: center;
    color: #888;
    padding: 16px 0;
    font-size: 16px;
}

.working-org-loader {
    text-align: center;
    padding: 40px;
    color: #888;
}

.working-org-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.working-org-loader-text {
    font-size: 18px;
    margin-top: 16px;
}

.no-org {
    text-align: center;
    padding: 20px;
    color: #888;
}

.org-country img {
    width: 16px;
    height: 12px;
    margin-right: 4px;
}

.status-message {
    font-weight: bold;
    margin: 8px 0;
}

.status-warning {
    color: #E69123;
}

.status-error {
    color: #FF0000;
}

.preferred-lang-container label,
.working-org-container label {
    display: inline;
}

@media (max-width: 1028px) {
    .admin-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 880px) {
    .working-org-modal .working-org-modal-content {
        width: 700px;
        max-width: 700px;
    }
}

@media (max-width: 770px) {
    .admin-cards {
        grid-template-columns: 1fr;
    }

    .profile {
        flex-direction: column;
        align-items: center;
    }

    .profile-photo {
        margin-right: 0;
        margin-bottom: 16px;
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .profile-id-row {
        justify-content: center;
    }

    .profile-details {
        width: 100%;
        text-align: center;
    }

    .preferred-lang,
    .working-org {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .working-org-modal .working-org-modal-content {
        width: 600px;
        max-width: 600px;
    }
}

@media (max-width: 660px) {

    .preferred-lang-modal .preferred-lang-modal-content,
    .working-org-modal .working-org-modal-content {
        width: 500px;
        max-width: 500px;
    }

    .working-org-option label {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .working-org-option .org-info-column,
    .working-org-option .org-location,
    .working-org-option .org-country {
        width: 100%;
    }

    .working-org-option .org-location,
    .working-org-option .org-country {
        padding-left: 0;
    }
}

@media (max-width: 545px) {

    .preferred-lang-container,
    .working-org-container {
        flex-direction: column;
    }

    .preferred-lang-modal .preferred-lang-modal-content,
    .working-org-modal .working-org-modal-content {
        width: 400px;
        max-width: 400px;
    }
}

@media (max-width: 450px) {

    .profile-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .profile-photo img {
        width: 70px;
        height: 70px;
    }

    .profile-details h3 {
        font-size: 18px;
    }

    .profile-details p,
    .admin-details p {
        font-size: 13px;
    }

    .profile-id,
    .admin-profile-id,
    .org-id {
        font-size: 11px;
        padding: 1px 4px;
    }

    .admin-title {
        font-size: 18px;
    }

    .admin-lists h2 {
        font-size: 14px;
    }

    .admin-card {
        padding: 8px 10px;
    }

    .admin-profile-photo img {
        width: 48px;
        height: 48px;
    }

    .admin-details h3 {
        font-size: 13px;
    }

    .admin-details p {
        font-size: 11px;
    }

    .preferred-lang-form label,
    .working-org-form label {
        font-size: 14px;
    }

    .btn-update {
        width: 100px;
        font-size: 14px;
        padding: 3px 6px;
    }

    .btn-cancel {
        width: 85px;
        font-size: 14px;
        padding: 3px 6px;
    }

    .preferred-lang-modal .preferred-lang-modal-content,
    .working-org-modal .working-org-modal-content {
        width: 90%;
        max-width: 350px;
        padding: 18px;
    }

    .preferred-lang-search,
    .working-org-search {
        font-size: 14px;
        padding: 7px 28px 7px 7px;
        background-size: 16px 16px;
    }

    .preferred-lang-option label,
    .working-org-option label {
        font-size: 14px;
        gap: 6px;
    }

    .preferred-lang-option input[type="radio"],
    .working-org-option input[type="radio"] {
        margin-right: 15px;
        width: 30px;
    }

    .preferred-lang-radio-list,
    .working-org-radio-list {
        max-height: 250px;
    }

    .working-org-loader-text {
        font-size: 16px;
    }

    .working-org-spinner {
        width: 32px;
        height: 32px;
        border-width: 3px;
    }
}