.account_col {
    color: #84a3ba;
    font-family: 'Noto Sans';
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.account_col.account_header {
    justify-content: center;
}

.account_col.account_name {
    flex: 1;
    justify-content: flex-start;
}

.account_col.account_photo {
    flex: 1;
    justify-content: center;
}

.account_col.account_photo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.account_col.account_phone {
    flex: 1;
    justify-content: center;
}

.account_col.account_email {
    flex: 1;
    justify-content: flex-start;
}

.account_col.account_status {
    flex: 1;
    justify-content: center;
}

.account_col.account_actions {
    width: 100px;
    justify-content: center;
}

.account_item {
    height: auto;
    min-height: 55px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e7ecef;
    padding: 8px 0;
    cursor: pointer;
}

.account_item .account_col {
    color: #434e5f;
    font-weight: 400;
}

.account_item:hover {
    background-color: #f8fafc;
}

.account_item.editing-row {
    background-color: #eaf5ff;
}

.account_item.deleting-row {
    background-color: #ffeaea;
}

.account-status-badge {
    border-radius: 5px;
    width: 85px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    font-family: Lato, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-transform: uppercase;
}

.account-status-active {
    background-color: #1AD598;
}

.account-status-deactive {
    background-color: #FD390E;
}

.account-status-blacklist {
    background-color: #434e5f;
}

.main_dashboard {
    height: auto !important;
    width: 100%;
    padding-block: 32px;
}

.address_info,
.account_item {
    padding-inline: 15px;
}

.overlay.active {
    display: flex !important;
    top: 0 !important;
    left: 0 !important;
}

.btn-delete-account {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #84A3BA;
    transition: color 0.2s;
}

.btn-delete-account:hover {
    color: #FD390E;
}

.account_form_row {
    display: flex;
    gap: 20px;
}

.accounts_search_bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.popup {
    width: 100%;
    max-width: 800px;
    height: auto;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.popup_header {
    flex-shrink: 0;
}

.popup_main {
    height: auto;
    max-height: calc(90vh - 144px);
    overflow-y: auto;
    flex: 1 1 auto;
}

.popup_bottom {
    flex-shrink: 0;
    margin-top: 0;
}

.account_form_row .popup_inputBlock {
    flex: 1;
}

.popup_inputBlock.has-error input,
.popup_inputBlock.has-error select,
.popup_inputBlock.has-error textarea {
    border-color: #FD390E;
}

.popup_inputBlock .error-text {
    color: #FD390E;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.popup_inputBlock.has-error .error-text {
    display: block;
}

.photo-preview-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.photo-preview {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    object-fit: cover;
    display: none;
}

.photo-preview.active {
    display: block;
}

.btn-reset-photo {
    display: none;
}

.btn-reset-photo.active {
    display: block;
}

#delete_accountDelete {
    border-radius: 5px;
    color: #fff;
    font-family: 'Noto Sans';
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    text-transform: capitalize;
    background: #FD390E;
    border: 1px solid #FD390E;
}

#delete_accountDelete:hover {
    background: #e0320c;
    border-color: transparent;
}

@media screen and (max-width: 768px) {
    .accounts_search_bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .accounts_search_bar .header_search {
        width: 100%;
    }

    .accounts_search_bar #new_account_btn {
        width: 100%;
    }

    .account_form_row {
        flex-direction: column;
    }

    #accounts_table {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .accounts_header,
    .account_item {
        min-width: 800px;
    }

    .main_dashboard {
        margin-inline: 15px;
        width: calc(100% - 30px);
    }

    .popup {
        max-height: 92vh;
        width: 95%;
    }

    .popup_main {
        max-height: calc(92vh - 144px);
        padding: 20px 20px;
    }
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    width: 100%;
    padding-right: 40px;
}

.btn-show-hide {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #84a3ba;
    font-size: 15px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    z-index: 2;
}

.btn-show-hide:hover {
    color: #434e5f;
}

.generate_btn_block_admin {
    display: flex;
    flex-direction: column;
}

.generate_btn_block_admin .generate_btn_label {
    visibility: hidden;
    font-size: 14px;
    line-height: 18px;
}

.generate_btn_block_admin .btn-generate-password {
    margin-top: 0;
    height: 44px;
}

.btn-generate-password {
    width: 100%;
    height: 44px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-generate-password:disabled {
    cursor: not-allowed;
    opacity: 0.9;
}

.btn-generate-password.copied {
    background-color: #1AD598 !important;
    color: #ffffff !important;
    border-color: transparent !important;
}

.password-conditions {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 24px;
    font-family: 'Noto Sans', sans-serif;
    font-size: 13px;
    background: #F8FAFC;
    border: 1px solid #E7ECEF;
    border-radius: 8px;
    padding: 12px 18px;
}

@media screen and (max-width: 600px) {
    .password-conditions {
        grid-template-columns: 1fr;
    }
}

.password-conditions .condition {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #84A3BA;
    transition: color 0.2s ease;
}

.password-conditions .condition i {
    font-size: 14px;
    color: #84A3BA;
    transition: color 0.2s ease;
}

.password-conditions .condition.met {
    color: #1AD598;
}

.password-conditions .condition.met i {
    color: #1AD598;
}

.password-input-wrapper .lock-icon {
    position: absolute;
    left: 12px;
    color: #84a3ba;
    font-size: 14px;
    pointer-events: none;
}