﻿/* 最多顯示兩行，超過顯示... */
.text-truncate-2-lines {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
/* 最多顯示三行，超過顯示... */
.text-truncate-3-lines {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box !important;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

input[readonly] {
    background-color: #e9ecef;
    cursor: not-allowed;
}
.previewTarget {
    padding-right: 3.5rem !important;
}
.password-preview-toggle-icon {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    z-index: 10;
    font-size: 1.1rem;
}

.select2-container--default .select2-selection--single {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: calc(2.25rem + 2px);
    padding: 0.375rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    background-color: #fff;
    margin-bottom: 10px;
    border-radius: 0rem;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: calc(2.25rem + 2px);
    top: 0.5rem;
    right: 0.5rem;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: calc(2.25rem);
    padding-left: 0px;
    margin-top: 0px;
}

.select2-container--default .select2-results>.select2-results__options {
    max-height: 300px;
    overflow-y: auto;
}

.select2-container--default .select2-results__group {
    color: #6c757d;
    font-weight: normal;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #dfe1e7;
    color: #000;
}

.select2-container--default .select2-results__option[aria-selected=true]  {
    background-color: #337ab7;
    color: #000;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #444;
}

@media (max-width: 768px) {
    .select2-container--default .select2-selection--single {
        padding: 0.375rem 0.5rem;
    }
}

@media (max-width: 768px) {
    .select2-container--default .select2-selection--single .select2-selection__arrow {
        right: 0.5rem;
    }
}

@media (max-width: 768px) {
    .select2-container--default .select2-selection--single .select2-selection__rendered {
        font-size: 0.875rem;
    }
}