.login-page {
    background: #F5F5F5;
}

.login-page-header-img {
    width: 140px;
    height: 115px;
}

.login-page-header-text {
    margin-top: 8px;
    margin-bottom: 39px;
    font-family: Pretendard, serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 32px;
    letter-spacing: 0;
    text-align: center;
    color: #222222;
}

.login-box {
    width: 600px !important;
    height: auto;
    margin-bottom: 115px;
}

.login-page-box {
    box-shadow: 0 0 0;
}

.login-page-body {
    padding: 32px !important;
}

.login-page-label {
    font-family: Pretendard, serif !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    line-height: 24px !important;
    letter-spacing: 0 !important;
}

.login-top-text {
    font-family: Pretendard, serif !important;
    font-weight: 400;
    font-size: 18px;
}

.login-top-text-active {
    font-family: Pretendard, serif !important;
    font-weight: 600;
    font-size: 18px;
}

.login-page-input {
    font-family: Pretendard, serif !important;
    font-weight: 400 !important;
    font-size: 16px !important;
    line-height: 24px !important;
    letter-spacing: 0 !important;
}

/* 카드 안에 들어가는 로고 */
.login-page-logo {
    width: auto;
    height: 34px;
}

/* 카드 안 기본 버튼보다 높은 로그인 버튼 (.btn-afternoon 의 height 36px 을 덮는다) */
.btn.login-page-btn {
    height: 48px !important;
}

/* 로그인 버튼 아래 안내 문구 박스 */
.login-page-notice {
    padding: 12px 16px;
    border-radius: 4px;
    background: #F5F5F5;
    font-family: Pretendard, serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #9E9E9E;
}

/* 카드 우측 하단 텍스트 링크 (계정 찾기) */
.login-page-link {
    padding: 0 !important;
    color: #00CE90 !important;
    font-family: Pretendard, serif !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    line-height: 20px !important;
    text-decoration: none !important;
}

.login-page-link:hover {
    color: #03A170 !important;
}

.form-control {
    height: 42px !important;
    color: #222222 !important;
    font-family: Pretendard, serif !important;
    font-weight: 400;
    font-size: 14px;
    line-height: 24px;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

.form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: #00CE90;
    outline: 0;
    box-shadow: inset 0 0 0 rgba(0, 0, 0, 0);
}

.form-control:disabled, .form-control[readonly] {
    background-color: #F5F5F5 !important;
    border: 1px solid #BDBDBD !important;
    color: #757575 !important;
}

textarea.form-control {
    height: auto !important;
}

.btn {
    padding-right: 16px !important;
    padding-left: 16px !important;
    font-family: Pretendard, serif !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    letter-spacing: 0 !important;
}

.btn-afternoon {
    height: 36px !important;
    min-width: 100px !important;
    padding-right: 16px !important;
    padding-left: 16px !important;
    color: #fff;
    background-color: #00CE90;
    border-color: #00CE90;
    box-shadow: none;
    font-family: Pretendard, serif !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    letter-spacing: 0 !important;
    text-align: center !important;
}

.btn-afternoon:hover {
    color: #fff;
    background-color: #03A170;
    border-color: #03A170;
}

.btn-afternoon:focus, .btn-afternoon.focus {
    color: #fff;
    background-color: #03A170;
    border-color: #03A170;
    box-shadow: 0 0 0 0 rgba(0, 206, 100, 0.5);
}

.btn-afternoon.disabled, .btn-afternoon:disabled {
    color: #fff;
    background-color: #00CE90;
    border-color: #00CE90;
}

.btn-afternoon:not(:disabled):not(.disabled):active, .btn-afternoon:not(:disabled):not(.disabled).active,
.show > .btn-afternoon.dropdown-toggle {
    color: #fff;
    background-color: #03A170;
    border-color: #03A170;
}

.btn-afternoon:not(:disabled):not(.disabled):active:focus, .btn-afternoon:not(:disabled):not(.disabled).active:focus,
.show > .btn-afternoon.dropdown-toggle:focus {
    box-shadow: 0 0 0 0 #00CE90;
}

.btn-afternoon-fit {
    color: #fff;
    background-color: #00CE90;
    border-color: #00CE90;
}

.btn-afternoon-fit:hover {
    color: #fff;
    background-color: #03A170;
    border-color: #03A170;
}

.btn-afternoon-fit:focus, .btn-afternoon-fit.focus {
    color: #fff;
    background-color: #03A170;
    border-color: #03A170;
    box-shadow: 0 0 0 0 rgba(0, 206, 100, 0.5);
}

.btn-afternoon-fit.disabled, .btn-afternoon-fit:disabled {
    color: #fff;
    background-color: #00CE90;
    border-color: #00CE90;
}

.btn-afternoon-fit:not(:disabled):not(.disabled):active, .btn-afternoon-fit:not(:disabled):not(.disabled).active,
.show > .btn-afternoon-fit.dropdown-toggle {
    color: #fff;
    background-color: #03A170;
    border-color: #03A170;
}

.btn-afternoon-fit:not(:disabled):not(.disabled):active:focus, .btn-afternoon-fit:not(:disabled):not(.disabled).active:focus,
.show > .btn-afternoon-fit.dropdown-toggle:focus {
    box-shadow: 0 0 0 0 #00CE90;
}

.btn-afternoon-plus-minus {
    color: #fff;
    background-color: #00CE90;
    border-color: #00CE90;
}

.btn-afternoon-plus-minus:hover {
    color: #fff;
    background-color: #03A170;
    border-color: #03A170;
}

.btn-afternoon-plus-minus:focus, .btn-afternoon-plus-minus.focus {
    color: #fff;
    background-color: #03A170;
    border-color: #03A170;
    box-shadow: 0 0 0 0 rgba(0, 206, 100, 0.5);
}

.btn-afternoon-plus-minus.disabled, .btn-afternoon-plus-minus:disabled {
    color: #fff;
    background-color: #E0E0E0;
    border-color: #E0E0E0;
}

.btn-afternoon-plus-minus:not(:disabled):not(.disabled):active, .btn-afternoon-plus-minus:not(:disabled):not(.disabled).active,
.show > .btn-afternoon-plus-minus.dropdown-toggle {
    color: #fff;
    background-color: #03A170;
    border-color: #03A170;
}

.btn-afternoon-plus-minus:not(:disabled):not(.disabled):active:focus, .btn-afternoon-plus-minus:not(:disabled):not(.disabled).active:focus,
.show > .btn-afternoon-plus-minus.dropdown-toggle:focus {
    box-shadow: 0 0 0 0 #00CE90;
}

.nav-logo-img {
    width: 130px;
    margin: 16px;
}

.navbar-afternoon {
    height: 57px !important;
    border-bottom: 0 !important;
    background-color: #00CE90;
    color: #101010;
    margin-left: 0 !important;
}

.navbar-p-afternoon {
    height: 57px !important;
    border-bottom: 0 !important;
    background-color: #FFFFFF;
    color: #101010;
    margin-left: 0 !important;
    border-bottom: 1px solid #EEEEEE !important;
}

.main-sidebar {
    margin-top: 57px !important;
}

.content-wrapper {
    margin-top: 0 !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    padding-top: 57px !important;
}

.content-p-wrapper {
    margin-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 57px !important;
}

.nav-link-user-info {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.nav-user-info {
    height: 100%;
    background: #FFFFFF;
    border-radius: 30px;
    padding-right: 16px;
    padding-left: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #222222;
    font-family: Pretendard, serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
}

.nav-p-user-info {
    height: 100%;
    background: #00CE90;
    border-radius: 30px;
    padding-right: 16px;
    padding-left: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #FFFFFF;
    font-family: Pretendard, serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
}

.nav-user-info-noti-icon {
    font-size: 14px;
    padding-right: 8px;
    color: #222222;
    font-weight: 600;
}

.nav-user-info-name {
    padding-left: 8px;
    padding-right: 8px;
    font-weight: 500;
}

.nav-user-info-angle {
    padding-left: 8px;
    color: #222222;
}

.nav-p-user-info-angle {
    padding-left: 8px;
    color: #FFFFFF;
}

.nav-user-info-badge {
    right: 0;
    top: -4px;
    background-color: rgba(220, 53, 69, 0.8);
}

/* TRIAL 상단바 알림 버튼 */
.nav-t-noti-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #EEEEEE;
    background: #FFFFFF;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #222222;
    font-size: 18px;
}

/* TRIAL 상단바 계정 정보 (흰 배경 + 초록 테두리) */
.nav-t-user-info {
    height: 40px;
    background: #FFFFFF;
    border: 1px solid #00CE90;
    border-radius: 8px;
    padding-right: 12px;
    padding-left: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #222222;
    font-family: Pretendard, serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
}

/* 계정 정보 앞에 붙는 권한(PI / CRC) 배지 */
.nav-t-user-badge {
    padding: 2px 8px;
    border-radius: 4px;
    background: #E5FAF3;
    color: #00CE90;
    font-family: Pretendard, serif;
    font-weight: 600;
    font-size: 12px;
    line-height: 18px;
}

.nav-t-user-info-angle {
    padding-left: 8px;
    color: #222222;
}

.nav-sidebar > .nav-item > .nav-link {
    display: flex;
    align-items: center;
    height: 48px;
    text-decoration: none;
}

.nav-sidebar > .nav-item > .nav-link > .nav-icon {
    width: 20px !important;
    height: 20px !important;
    margin-left: 1rem !important;
    margin-right: 0.5rem !important;
    margin-bottom: 2px !important;
}

.nav-sidebar .nav-link > .right, .nav-sidebar .nav-link > p > .right {
    top: 1rem !important;
}

.nav-sidebar > .nav-item > .nav-link > p,
.nav-treeview > .nav-item > .nav-link > p {
    font-family: Pretendard, serif !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    color: #222222 !important;
}


.nav-sidebar > .nav-item > .nav-link:hover,
.nav-treeview > .nav-item > .nav-link:hover,
.nav-sidebar > .nav-item.menu-open:hover > .nav-link {
    background-color: #EEEEEE !important;
    color: #222222 !important;
}

.nav-sidebar > .nav-item > .nav-link:hover > p,
.nav-treeview > .nav-item > .nav-link:hover > p {
    font-family: Pretendard, serif !important;
    font-weight: 400 !important;
    font-size: 16px !important;
    color: #222222 !important;
}

.nav-sidebar > .nav-item > .nav-link.active {
    background-color: #00CE90 !important;
    color: #FFF !important;
}

.nav-sidebar > .nav-item > .nav-link.active > p {
    color: #FFF !important;
}

.nav-sidebar > .nav-item.menu-open > .nav-link {
    background-color: transparent !important;
}

.vertical-alignment-helper {
    display: table;
    height: 100%;
    width: 100%;
    pointer-events: none;
}

.vertical-align-center {
    /* To center vertically */
    display: table-cell;
    vertical-align: middle;
    pointer-events: none;
}

.modal-content {
    /* Bootstrap sets the size of the modal in the modal-dialog class, we need to inherit it */
    width: inherit;
    max-width: inherit; /* For Bootstrap 4 - to avoid the modal window stretching full width */
    height: inherit;
    /* To center horizontally */
    margin: 0 auto;
    pointer-events: all;
    font-family: Pretendard, serif;
}

.logout-msg {
    font-weight: 600;
    font-size: 24px;
    line-height: 140%;
}

.alert-title {
    font-weight: 600;
    font-size: 24px;
    line-height: 140%;
}

.alert-message {
    font-weight: 600;
    font-size: 18px;
    line-height: 140%;
}

.modal-body > .form-group > label {
    font-family: Pretendard, serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
}

.modal-body > .form-group > input {
    font-family: Pretendard, serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
}

.hospital_search_table > tbody > tr > .dt-empty:hover {
    background-color: #FFF;
}

.dt-scroll-body:has(.hospital_search_table) {
    border-left: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
    overflow-x: hidden !important;
}

.content-wrapper {
    background: #FFF !important;
}

.search-wrapper {
    position: relative;
    width: 100%;
}

.search-wrapper > input {
    padding-right: 60px;
}

.search-button {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: end;
}

.search-button ion-icon {
    font-size: 20px;
}

.view-label {
    width: 36px;
    height: 36px;
    position: absolute;
    top: 17px;
    left: 0;
    background-color: #00CE90;
    transform: translateY(-50%);
    text-align: center;
    font-family: Pretendard, serif;
    font-weight: 800;
    font-size: 24px;
    color: #FFFFFF;
}

.view-button {
    position: absolute;
    top: 26px;
    right: 2px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: end;
}

.view-button ion-icon {
    font-size: 32px;
    color: #FFFFFF;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: end;
}

.close-button ion-icon {
    font-size: 22px;
}

.search-date-wrapper {
    position: relative;
    width: 100%;
}

.search-date-wrapper > input {
    padding-left: 52px;
}

.search-date-wrapper > ion-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: end;
    font-size: 20px;
}

.af-breadcrumb {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    padding: 0;
    margin-bottom: 0;
    list-style: none;
    font-family: Pretendard, serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    color: #222222;
}

.af-breadcrumb > ion-icon {
    height: 18px;
    width: 18px;
    margin-left: 1px;
    margin-right: 1px;
}

.af-breadcrumb > li > a {
    color: #00AF7A;
    text-decoration: underline;
}

.container-fluid-in {
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    padding: 24px;
}

.form-group > p {
    font-family: Pretendard, serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #424242;
}

.custom-control-input-afternoon:checked ~ .custom-control-label::before {
    border-color: #00CE90;
    background-color: #00CE90;
}

.custom-control-input-afternoon.custom-control-input-outline:checked[type="checkbox"] ~ .custom-control-label::after {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='%2300CE90' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3E%3C/svg%3E") !important;
}

.custom-control-input-afternoon.custom-control-input-outline:checked[type="radio"] ~ .custom-control-label::after {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3E%3Ccircle r='3' fill='%2300CE90'/%3E%3C/svg%3E") !important;
}

.custom-control-input-afternoon:focus ~ .custom-control-label::before {
    box-shadow: inset 0 0 0 rgba(0, 0, 0, 0), 0 0 0 0.2rem rgb(0, 206, 144);
}

.custom-control-input-afternoon:focus:not(:checked) ~ .custom-control-label::before {
    border-color: #00CE90;
}

.custom-control-input-afternoon:not(:disabled):active ~ .custom-control-label::before {
    background-color: #00CE90;
    border-color: #00CE90;
}

.custom-radio > .custom-control-label {
    font-family: Pretendard, serif;
    font-weight: 400 !important;
    font-size: 14px;
    line-height: 24px;
}

.icheck-afternoon > input:first-child:not(:checked):not(:disabled):hover + label::before,
.icheck-afternoon > input:first-child:not(:checked):not(:disabled):hover + input[type="hidden"] + label::before {
    border-color: #00CE90;
}

.icheck-afternoon > input:first-child:checked + label::before,
.icheck-afternoon > input:first-child:checked + input[type="hidden"] + label::before {
    background-color: #00CE90;
    border-color: #00CE90;
}

.icheck-afternoon > label {
    font-family: Pretendard, serif;
    font-weight: 400 !important;
    font-size: 14px;
    line-height: 26px;
}

.icheck-afternoon > label > span {
    font-family: Pretendard, serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 14px;
    color: #9E9E9E;
}

.custom-file,
.custom-file-label::after {
    font-family: Pretendard, serif;
    font-weight: 400;
    font-size: 14px;
}

.custom-file-input,
.custom-file-label,
.custom-file-label::after {
    height: 42px;
    line-height: 42px;
}

.custom-file-label,
.custom-file-label::after {
    padding: 0 0.75rem;
}

.custom-file-input:focus ~ .custom-file-label {
    border-color: #00CE90;
    box-shadow: none;
}

.custom-file-label {
    color: #BDBDBD;
}

.custom-file-label::after {
    background-color: #00CE90;
    color: white;
    padding-left: 21px !important;
    padding-right: 21px !important;
}

.error-icon {
    width: 14px;
    height: 14px;
    margin-right: 6px;
}

.select2 {
    width: 100% !important;
}

.select2-container--bootstrap4 .select2-selection--single {
    height: auto;
    padding: 10px 16px 10px 16px;
}

.select2-container--bootstrap4 .select2-selection--single .select2-selection__rendered {
    font-family: Pretendard, serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
}

.select2-container--bootstrap4 .select2-selection--single .select2-selection__arrow {
    right: 1rem !important;
}

.select2-container--bootstrap4.select2-container--focus .select2-selection, .select2-container--bootstrap4.select2-container--open .select2-selection {
    border-color: #00CE90;
}

.select2-container--bootstrap4 .select2-dropdown {
    border-color: #00CE90;
}

.select2-container--bootstrap4 .select2-results__option--highlighted[aria-selected] {
    background-color: #00CE90;
    color: #fff
}

.select2-container--bootstrap4 .select2-selection--multiple {
    height: auto;
    min-height: 42px;
    padding: 9px 16px 3px 16px !important;
}

.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__rendered {
    font-family: Pretendard, serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    padding: 0 !important;
}

.select2-container--bootstrap4 .select2-selection--multiple .select2-search--inline .select2-search__field {
    padding: 0 !important;
}

.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice {
    float: left;
    padding: 0;
    padding-left: 0.7rem;
    padding-right: 0.3rem;
    margin-top: 0 !important;
    margin-bottom: 6px !important;
    margin-left: 0 !important;
    margin-right: 0.375rem;
    color: #495057;
    cursor: pointer;
    border: 1px solid #bdc6d0;
    border-radius: 0.2rem;
    display: flex;
    flex-direction: row-reverse;
}

.select2-container--bootstrap4 .select2-selection--multiple .select2-search__field {
    color: #495057;
}

.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice + .select2-search {
    width: 0;
}

.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice__remove {
    float: left;
    padding-right: 3px;
    padding-left: 3px;
    margin-right: 1px;
    margin-left: 3px;
    font-weight: 700;
    color: #bdc6d0;
}

.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #343a40;
}

.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__clear {
    position: absolute !important;
    top: 0;
    right: .7em;
    float: none;
    margin-right: 0;
}

.select2-container--bootstrap4.select2-container--disabled .select2-selection--multiple .select2-selection__choice {
    padding: 0 5px;
    cursor: not-allowed;
}

.select2-container--bootstrap4.select2-container--disabled .select2-selection--multiple .select2-selection__choice .select2-selection__choice__remove {
    display: none;
}

.select2-container--bootstrap4 .select2-results__option[aria-selected=true] {
    background-color: rgba(185, 255, 232, 0.6);
}

.select2-container--bootstrap4 .select2-results__option--highlighted[aria-selected=true] {
    color: #00CE90;
}

.dt-scroll-head {
    background-color: #EEEEEE;
}

table.dataTable.table > tbody > tr:hover {
    background-color: #F3FFFB;
}

table.dataTable tbody td {
  vertical-align: middle;
}

.page-item.active .page-link {
    color: #fff;
    background-color: #00CE90;
    border-color: #00CE90;
}

.page-link {
    color: #00CE90;
}

.hospital-operate-text {
    font-family: Pretendard, serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    margin: 0 !important;
    white-space: nowrap;
}

.datetimepicker-wrapper {
    position: relative;
    width: 112px;
}

.datetimepicker-wrapper > input {
    padding-right: 60px;
}

.datetimepicker-wrapper > ion-icon {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: end;
}

.recess-add-btn {
    font-family: Pretendard, serif;
    font-weight: 600;
    font-size: 12px;
    line-height: 42px;
    padding: 0 !important;
}

.afternoon-faq-card-title {
    color: #222222 !important;
    font-family: Pretendard, serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 26px;
}

.afternoon-faq-card-title > span {
    font-family: Pretendard, serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 26px;
}

.card-header > ion-icon {
    color: #222222 !important;
}

.toasts-top-right {
    right: 24px !important;
    top: 70px !important;
}

.toast-header {
    border-bottom: 0 !important;
    padding: 24px !important;
}

.toast-header > strong {
    font-family: Pretendard, serif !important;
    font-weight: 600 !important;
    font-size: 18px !important;
    line-height: 24px !important;
    color: #222222 !important;
}

.toast-wide {
    width: 749px !important; /* 원하는 폭 */
    max-width: none; /* Bootstrap 기본 max-width 제거 */
    min-height: 131px !important;
}

.hospital-user {
    font-family: Pretendard, serif !important;
    font-weight: 400 !important;
    font-size: 14px !important;
    line-height: 20px !important;
}

.hospital-user-title {
    font-family: Pretendard, serif !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    line-height: 20px !important;
    width: 100px !important;
    min-width: 140px !important;
}

.doc-user-title {
    font-family: Pretendard, serif !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    line-height: 20px !important;
    width: 160px !important;
    min-width: 160px !important;
}

.afternoon-list-sort-group {
    list-style: none;
    padding: 0;
}

.afternoon-list-sort-group > li {
    background: #FFF;
    margin-top: 8px;
    margin-bottom: 8px;
    font-family: Pretendard, serif !important;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    padding: 0 16px 0 0;
}

.afternoon-list-sort-group > li > div {
    width: 16px;
    height: 52px;
    color: #BDBDBD;
    background-color: #F5F5F5;
    border-bottom-left-radius: 8px;
    border-top-left-radius: 8px;
}

.sortable-ghost {
    opacity: .6;
}

.list-status {
    font-family: Pretendard, serif !important;
    font-weight: 600;
    font-size: 12px;
}

.ui-timepicker-container, .select2-container {
    z-index: 1000 !important;
}

.modal .ui-timepicker-container {
    z-index: 9000 !important;
}

.research-start {
    display: inline-block;
    border-radius: 8px;
    padding: 9px 16px;
    background-color: #881DFF;
    font-family: Pretendard, serif !important;
    font-weight: 600;
    font-size: 18px;
    line-height: 26px;
    color: #FFFFFF;
}

.timeline-body {
    padding: 24px !important;
}

.card-afternoon.card-outline-tabs > .card-header a.active, .card-afternoon.card-outline-tabs > .card-header a.active:hover {
    border-top: 3px solid #00CE90 !important;
}

.nav-link-afternoon {
    color: #00CE90 !important;
    font-family: Pretendard, serif !important;
    font-weight: 500;
    font-size: 16px;
}

.nav-link-afternoon.active {
    color: #222222 !important;
    font-family: Pretendard, serif !important;
    font-weight: 700;
    font-size: 18px;
}

/* ============================================================
   DCT 연구 생성 모달 (admin/fragments/modal_dct_research_create)
   ============================================================ */

/* afternoon.css 의 .modal-content 는 width/max-width 를 modal-dialog 에서 상속받기 때문에
   modal-lg(800px) 보다 넓히려면 max-width 까지 함께 지정해야 한다 */
#dct_research_create_modal .modal-content {
    width: 1160px;
    max-width: calc(100vw - 48px);
}

#dct_research_create_modal .modal-body {
    max-height: calc(100vh - 220px);
    overflow-y: auto;
    background: #FFF;
}

/* 안내자료 */
#dct_research_create_modal .dct-file-add-btn {
    height: 32px;
    padding: 0 12px;
    border: 1px dashed #E0E0E0;
    border-radius: 6px;
    background: #FAFAFA;
    color: #9E9E9E;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
}

#dct_research_create_modal .dct-file-add-btn ion-icon {
    font-size: 16px;
    margin-right: 4px;
}

#dct_research_create_modal .dct-file-chip {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    font-size: 14px;
    color: #222222;
}

/* 파일명을 누르면 새 탭에서 미리보기가 열린다 */
#dct_research_create_modal .dct-file-chip > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: underline;
}

#dct_research_create_modal .dct-file-chip > span:hover {
    color: #00CE90;
}

#dct_research_create_modal .dct-file-chip > ion-icon {
    margin-left: 6px;
    font-size: 16px;
    color: #757575;
    cursor: pointer;
}

/* 연계 안과 검색 결과 */
#dct_research_create_modal .dct-clinic-result {
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    overflow: hidden;
}

#dct_research_create_modal .dct-clinic-result-body {
    height: 300px;
    overflow-y: auto;
}

#dct_research_create_modal .dct-clinic-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 13px;
    color: #9E9E9E;
}

#dct_research_create_modal .dct-clinic-item {
    border-bottom: 1px solid #EEEEEE;
}

#dct_research_create_modal .dct-clinic-item:last-child {
    border-bottom: 0;
}

/* 펼쳐진 안과는 좌측에 민트 라인 + 헤더 배경으로 강조한다 */
#dct_research_create_modal .dct-clinic-item.open {
    box-shadow: inset 4px 0 0 #C8F4E4;
}

#dct_research_create_modal .dct-clinic-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    cursor: pointer;
}

#dct_research_create_modal .dct-clinic-item.open > .dct-clinic-item-head {
    background: #E7FAF2;
}

#dct_research_create_modal .dct-clinic-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #222222;
}

#dct_research_create_modal .dct-clinic-item-addr {
    font-size: 13px;
    color: #757575;
}

#dct_research_create_modal .dct-clinic-item-arrow {
    font-size: 18px;
    color: #616161;
}

#dct_research_create_modal .dct-clinic-item.open .dct-clinic-item-arrow {
    transform: rotate(180deg);
}

#dct_research_create_modal .dct-clinic-doc-list {
    display: none;
}

#dct_research_create_modal .dct-clinic-item.open > .dct-clinic-doc-list {
    display: block;
}

#dct_research_create_modal .dct-clinic-doc {
    padding: 4px 16px 4px 40px;
    border-top: 1px solid #EEEEEE;
}

#dct_research_create_modal .dct-clinic-doc .icheck-afternoon {
    margin: 4px 0 !important;
}

/* adminlte.css 에는 icheck 색상 규칙만 있고 체크박스 모양 규칙이 없어 본 모달에서만 별도로 그린다 */
#dct_research_create_modal .icheck-afternoon > input:first-child {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
}

#dct_research_create_modal .icheck-afternoon > label {
    position: relative;
    margin: 0;
    padding-left: 32px;
    cursor: pointer;
}

#dct_research_create_modal .icheck-afternoon > label::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    background: #FFF;
    border: 1px solid #BDBDBD;
    border-radius: 4px;
}

#dct_research_create_modal .icheck-afternoon > input:first-child:checked + label::before {
    background: #00CE90;
    border-color: #00CE90;
}

#dct_research_create_modal .icheck-afternoon > input:first-child:checked + label::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 7px;
    width: 5px;
    height: 10px;
    margin-top: -6px;
    border: solid #FFF;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* 연계 안과 리스트 */
#dct_research_create_modal .dct-clinic-list-wrap {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
}

#dct_research_create_modal .dct-clinic-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #F5F5F5;
    border-top: 0;
    border-bottom: 1px solid #E0E0E0;
    font-size: 13px;
    font-weight: 600;
    color: #424242;
}

#dct_research_create_modal .dct-clinic-table td {
    vertical-align: middle;
    font-size: 13px;
    color: #222222;
}

#dct_research_create_modal .dct-clinic-empty-row td {
    text-align: center;
    padding: 24px 16px;
    color: #9E9E9E;
}

#dct_research_create_modal .dct-chip {
    display: inline-flex;
    align-items: center;
    margin: 2px 0;
    padding: 3px 6px;
    background: #F5F5F5;
    border-radius: 4px;
    font-size: 13px;
    color: #222222;
}

#dct_research_create_modal .dct-chip > ion-icon {
    margin-left: 6px;
    padding: 1px;
    border: 1px solid #BDBDBD;
    border-radius: 3px;
    background: #FFF;
    font-size: 11px;
    color: #616161;
    cursor: pointer;
}

#dct_research_create_modal .dct-chip-sep {
    margin: 0 4px;
    color: #9E9E9E;
}

/* CRF */
#dct_research_create_modal .crf-module-list {
    height: 420px;
    padding: 8px;
    overflow-y: auto;
    background: #FAFAFA;
    border: 1px solid #EEEEEE;
    border-radius: 6px;
}

#dct_research_create_modal .crf-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 10px 12px;
    background: #FFF;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    font-size: 13px;
    color: #222222;
    cursor: move;
}

#dct_research_create_modal .crf-item > ion-icon {
    margin-right: 8px;
    font-size: 14px;
    color: #BDBDBD;
}

#dct_research_create_modal .crf-item.ui-sortable-helper {
    width: 300px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

/* CRF 항목구성으로 넘어온 모듈은 제목을 직접 고칠 수 있다
   (좌측 모듈 검색 리스트에서는 모듈명만 그대로 보여준다) */
#dct_research_create_modal .crf-item-title,
#dct_research_create_modal .crf-item-origin {
    display: none;
}

#dct_research_create_modal #crf_group_list .crf-item-name {
    display: none;
}

#dct_research_create_modal #crf_group_list .crf-item-title {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    height: 30px;
    padding: 0 8px;
    background: #FFF;
    font-size: 13px;
    color: #222222;
    cursor: text;
}

/* 제목을 고쳤을 때만 원본 모듈명을 옆에 함께 표시한다 */
#dct_research_create_modal #crf_group_list .crf-item-renamed > .crf-item-origin,
#dct_research_create_modal #crf_group_list .crf-item-renamed > .crf-item-head > .crf-item-origin {
    display: block;
    flex: 0 0 auto;
    max-width: 40%;
    margin-left: 8px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 12px;
    color: #9E9E9E;
}

#dct_research_create_modal .crf-group {
    margin-bottom: 12px;
    padding: 8px;
    background: #ffffff;
    border: 1px solid #EEEEEE;
    border-radius: 6px;
}

#dct_research_create_modal .crf-group-head {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

#dct_research_create_modal .crf-group-head > ion-icon.crf-group-handle {
    margin-right: 8px;
    font-size: 14px;
    color: #BDBDBD;
    cursor: move;
}

#dct_research_create_modal .crf-group-name {
    height: 34px;
    font-size: 13px;
}

#dct_research_create_modal .crf-group-del {
    padding: 0 0 0 12px;
    color: #424242;
}

#dct_research_create_modal .crf-group-del ion-icon {
    font-size: 18px;
}

#dct_research_create_modal .crf-group-body {
    min-height: 110px;
    padding: 4px;
}

/* 상위(그룹 직속) 드롭 랜딩 영역 : 맨 아래 그룹/혼합 모듈 밑으로 비그룹 모듈을
   하위가 아닌 상위로 넣을 수 있도록 명시적인 드롭 공간과 안내 문구를 제공한다 */
#dct_research_create_modal .crf-group-landing {
    /* 평소에는 완전히 접어서 하단 공간을 차지하지 않는다 */
    height: 0;
    margin: 0;
    padding: 0 12px;
    border: 0 dashed transparent;
    border-radius: 6px;
    background: transparent;
    overflow: hidden;
    text-align: center;
    font-size: 12px;
    line-height: 18px;
    color: transparent;
}

/* 모듈을 움직이기 시작하면(드래그 중) 랜딩 영역을 펼쳐서 진하게 노출한다 */
#dct_research_create_modal #crf_group_list.crf-dragging .crf-group-landing {
    height: auto;
    margin-top: 6px;
    padding: 16px 12px;
    border-width: 1px;
    border-color: #B0BEC5;
    background: #F4F8FB;
    color: #78909C;
}

/* 컨테이너(그룹/혼합)를 끄는 동안에는 하위 영역을 '받을 수 없음'으로 흐리게 표시한다 */
#dct_research_create_modal #crf_group_list.crf-drag-group .crf-item-children {
    opacity: .4;
}

#dct_research_create_modal .crf-group-empty {
    padding: 12px;
    background: #F5F5F5;
    border-radius: 6px;
    font-size: 13px;
    color: #757575;
}

#dct_research_create_modal .crf-group-add-btn {
    height: 40px;
    border: 1px dashed #E0E0E0;
    border-radius: 6px;
    background: #FAFAFA;
    color: #9E9E9E;
    font-size: 13px;
}

/* CRF 항목구성 — 그룹(Y) / 혼합(A) 모듈은 하위 모듈을 담는 컨테이너로 표시한다 */
#dct_research_create_modal .crf-item-group {
    display: block;
    padding: 0;
    overflow: hidden;
}

#dct_research_create_modal .crf-item-group > .crf-item-head {
    display: flex;
    align-items: center;
    padding: 10px 12px;
}

#dct_research_create_modal .crf-item-head > ion-icon {
    margin-right: 8px;
    font-size: 14px;
    color: #BDBDBD;
}

#dct_research_create_modal .crf-item-children {
    padding: 6px 8px 8px 28px;
    border-top: 1px dashed #E0E0E0;
    background: #FAFAFA;
    min-height: 44px;
}

/* 좌측 모듈 리스트에서는 하위 영역을 숨겨 중첩을 막는다 (우측 CRF 항목구성에서만 하위 배치 가능) */
#dct_research_create_modal #crf_module_list .crf-item-children {
    display: none;
}

#dct_research_create_modal .crf-item-children > .crf-item {
    margin-bottom: 6px;
}

#dct_research_create_modal .crf-item-children > .crf-item:last-child {
    margin-bottom: 0;
}

#dct_research_create_modal .crf-item-child-empty {
    padding: 8px 10px;
    background: #F5F5F5;
    border: 1px dashed #E0E0E0;
    border-radius: 6px;
    font-size: 12px;
    color: #9E9E9E;
}

/* Footer */
#dct_research_create_modal .dct-research-footer {
    border-top: 1px solid #EEEEEE;
    padding: 16px 24px;
}

#dct_research_create_modal .dct-btn-cancel {
    width: 120px;
    height: 44px;
    margin: 0 8px 0 0;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    background: #FFF;
    font-size: 14px;
    font-weight: 600;
    color: #424242;
}

#dct_research_create_modal .dct-btn-save {
    flex: 1;
    height: 44px !important;
    margin: 0;
    border-radius: 6px;
}

#dct_research_create_modal .invalid-feedback {
    display: none;
}

/* 연계 안과 관리 / CRF 항목구성처럼 입력칸이 아닌 영역은
   문구 대신 영역 전체를 빨간 테두리로 표시한다 */
#dct_research_create_modal .container-fluid-in.is-invalid {
    border-color: #FF3E3E;
}

/* 위 규칙(id 포함)이 부트스트랩의 형제 선택자보다 우선순위가 높아 입력 항목 에러가
   묻히므로, 같은 범위에서 is-invalid 인 입력의 에러는 다시 보이도록 되살린다.
   (리스트 에러처럼 form-control 형제가 없는 경우는 아래 d-block 을 직접 붙인다) */
#dct_research_create_modal .form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

#dct_research_create_modal .invalid-feedback.d-block {
    display: block !important;
}

/* ============================================================
   DCT 파트너 계정 등록 모달 (admin/fragments/modal_dct_account_create)
   ============================================================ */

#dct_account_create_modal .modal-content {
    width: 600px;
    max-width: calc(100vw - 48px);
}

#dct_account_create_modal .modal-body {
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    background: #FFF;
}

/* 계정 권한 - 라디오 (박스형) */
#dct_account_create_modal .dct-account-radio {
    flex: 0 0 auto;
    min-width: 120px;
    margin-right: 8px;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
}

/* 미선택으로 저장을 누르면 두 박스에 빨간 테두리를 준다 */
#dct_account_create_modal .dct-account-radio.is-invalid {
    border-color: #FF3E3E;
}

#dct_account_create_modal .dct-account-radio > input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
}

#dct_account_create_modal .dct-account-radio > label {
    display: flex;
    align-items: center;
    width: 100%;
    height: 46px;
    margin: 0;
    padding: 0 16px 0 44px;
    position: relative;
    font-size: 14px;
    color: #222222;
    cursor: pointer;
}

#dct_account_create_modal .dct-account-radio > label::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 16px;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    background: #FFF;
    border: 1px solid #BDBDBD;
    border-radius: 50%;
}

#dct_account_create_modal .dct-account-radio > input:checked + label::before {
    background: #00CE90;
    border-color: #00CE90;
}

#dct_account_create_modal .dct-account-radio > input:checked + label::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 23px;
    width: 6px;
    height: 6px;
    margin-top: -3px;
    background: #FFF;
    border-radius: 50%;
}

#dct_account_create_modal .dct-account-radio:hover {
    border-color: #00CE90;
}

/* 참여 연구 */
/* 참여 연구가 3개를 넘으면 3행까지만 보이고 그 아래는 스크롤된다.
   행 높이를 45px(내용 44px + 경계선 1px)로 고정해 두고,
   헤더 45px + 3행 135px = 180px 로 맞춘다. 헤더는 sticky 라 스크롤해도 남는다. */
#dct_account_create_modal .dct-account-research-wrap {
    max-height: 180px;
    overflow-y: auto;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
}

#dct_account_create_modal .dct-account-research-table {
    table-layout: fixed;
}

#dct_account_create_modal .dct-account-research-table th,
#dct_account_create_modal .dct-account-research-table tr[data-research-id] td {
    height: 44px;
    padding-top: 0;
    padding-bottom: 0;
    vertical-align: middle;
}

/* 연구명이 길어도 줄을 바꾸지 않아야 행 높이가 일정하게 유지된다 (전체 이름은 title 로) */
#dct_account_create_modal .dct-account-research-table tr[data-research-id] td:last-child {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#dct_account_create_modal .dct-account-research-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #F5F5F5;
    border-top: 0;
    border-bottom: 1px solid #E0E0E0;
    font-size: 13px;
    font-weight: 600;
    color: #424242;
}

#dct_account_create_modal .dct-account-research-table td {
    vertical-align: middle;
    font-size: 13px;
    color: #222222;
}

#dct_account_create_modal .dct-account-research-empty-row td {
    text-align: center;
    padding: 24px 16px;
    font-weight: 600;
    color: #222222;
}

/* adminlte.css 에는 icheck 색상 규칙만 있고 체크박스 모양 규칙이 없어 본 모달에서만 별도로 그린다 */
#dct_account_create_modal .icheck-afternoon {
    display: inline-block;
    margin: 0 !important;
}

#dct_account_create_modal .icheck-afternoon > input:first-child {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
}

#dct_account_create_modal .icheck-afternoon > label {
    position: relative;
    display: block;
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
}

#dct_account_create_modal .icheck-afternoon > label::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: #FFF;
    border: 1px solid #BDBDBD;
    border-radius: 4px;
}

#dct_account_create_modal .icheck-afternoon > input:first-child:checked + label::before {
    background: #00CE90;
    border-color: #00CE90;
}

#dct_account_create_modal .icheck-afternoon > input:first-child:checked + label::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 7px;
    width: 5px;
    height: 10px;
    border: solid #FFF;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

#dct_account_create_modal .invalid-feedback {
    display: none;
}

#dct_account_create_modal .invalid-feedback.d-block {
    display: block !important;
}

/* ============================================================
   Trial - 로그인 (trial/login)
   ============================================================ */

/* 사용 중지된 계정 안내 모달 */
.login-stop-body {
    padding: 40px 32px 0 32px;
}

.login-stop-title {
    font-family: Pretendard, serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 30px;
    color: #222222;
}

.login-stop-desc {
    display: flex;
    align-items: center;
    margin-top: 28px;
    font-family: Pretendard, serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 22px;
    color: #222222;
}

.login-stop-email {
    margin: 0 8px;
    padding: 6px 12px;
    border: 1px solid #00CE90;
    border-radius: 6px;
    color: #00CE90;
    font-weight: 500;
}

.login-stop-footer {
    border: 0 !important;
    padding: 24px 32px 32px 32px;
}

.btn.login-stop-btn {
    height: 48px !important;
    min-width: 190px !important;
}

/* ============================================================
   Trial - 계정 찾기 (trial/user_search)
   ============================================================ */

/* 카드 상단 제목 (계정 찾기) */
.user-search-title {
    font-family: Pretendard, serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 26px;
    color: #222222;
}

/* 제목 아래 안내 문구 */
.user-search-desc {
    margin-top: 12px;
    font-family: Pretendard, serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
    color: #616161;
}

/* ============================================================
   Trial - 대상자 관리 (trial/subject/subject_list)
   ============================================================ */

/* 연구 선택 탭 */
.trial-research-tabs {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    border-bottom: 1px solid #EEEEEE;
}

.trial-research-tabs-label {
    margin-right: 16px;
    font-family: Pretendard, serif;
    font-weight: 400;
    font-size: 14px;
    color: #9E9E9E;
}

.trial-research-tab {
    display: flex;
    align-items: center;
    height: 40px;
    margin-right: 8px;
    padding: 0 20px;
    border: 0;
    border-radius: 8px;
    background: #F5F5F5;
    color: #616161;
    font-family: Pretendard, serif;
    font-weight: 600;
    font-size: 15px;
}

.trial-research-tab.active {
    background: #1F3566;
    color: #FFFFFF;
}

.trial-research-tab-dot {
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 50%;
    background: #BDBDBD;
}

.trial-research-tab.active .trial-research-tab-dot {
    background: #FFFFFF;
}

/* 검사 상태 필터 칩 */
.trial-status-chip {
    height: 36px;
    margin-right: 8px;
    padding: 0 16px;
    border: 1px solid #F5F5F5;
    border-radius: 8px;
    background: #F5F5F5;
    color: #616161;
    font-family: Pretendard, serif;
    font-weight: 500;
    font-size: 14px;
}

.trial-status-chip.active {
    border: 1px solid #00CE90;
    background: #E8FBF4;
    color: #00CE90;
    font-weight: 600;
}

.trial-status-divider {
    margin: 0 16px;
    color: #E0E0E0;
}

/* 목록 테이블 */
#table_list thead th {
    background: #F5F5F5;
    border-bottom: 1px solid #E0E0E0;
    font-family: Pretendard, serif;
    font-weight: 500;
    font-size: 14px;
    color: #424242;
    white-space: nowrap;
}

/* 목록 상태 배지 */
.trial-badge {
    display: inline-block;
    min-width: 66px;
    padding: 3px 10px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-family: Pretendard, serif;
    font-weight: 500;
    font-size: 13px;
    white-space: nowrap;
}

.trial-badge-gray    { background: #F5F5F5; color: #616161; }
.trial-badge-blue    { background: #EAF1FF; color: #2F6FED; }
.trial-badge-mint    { background: #E3F8F1; color: #00B383; }
.trial-badge-red     { background: #FFECEC; color: #FF5A5A; }
.trial-badge-green   { background: #00A87E; color: #FFFFFF; }
.trial-badge-outline { background: #FFFFFF; border-color: #BDBDBD; color: #616161; }

/* 배지 옆에 붙는 보조 문구 (신규 등록 / 의뢰 취소 …) */
.trial-badge-sub {
    margin-left: 8px;
    font-family: Pretendard, serif;
    font-weight: 400;
    font-size: 13px;
    color: #9E9E9E;
}

.trial-badge-sub-red {
    color: #FF3E3E;
}

/* 셀 값 아래에 한 줄로 붙는 보조 문구 (방문 차수 구분 텍스트 / 검사 시행 기한) */
.trial-cell-sub {
    display: block;
    margin-top: 2px;
    font-family: Pretendard, serif;
    font-weight: 400;
    font-size: 12px;
    color: #9E9E9E;
}

/* 아직 정해지지 않은 값 (방문일 조율 중 …) */
.trial-cell-muted {
    font-family: Pretendard, serif;
    font-weight: 400;
    color: #9E9E9E;
}

/* 대상자 관리 버튼 */
.btn.trial-action {
    height: 32px !important;
    min-width: 96px !important;
    padding: 0 14px !important;
    border-radius: 6px;
    font-family: Pretendard, serif;
    font-weight: 600 !important;
    font-size: 13px !important;
    white-space: nowrap;
}

.btn.trial-action-outline { border: 1px solid #00CE90; background: #FFFFFF; color: #00CE90; }
.btn.trial-action-dark    { border: 1px solid #212B36; background: #212B36; color: #FFFFFF; }
.btn.trial-action-green   { border: 1px solid #00CE90; background: #00CE90; color: #FFFFFF; }

/* 데이터가 없을 때 안내 문구 */
.trial-empty-cell {
    height: 440px;
    text-align: center;
    vertical-align: middle;
}

.trial-empty-title {
    font-family: Pretendard, serif;
    font-weight: 600;
    font-size: 16px;
    color: #222222;
}

.trial-empty-desc {
    margin-top: 12px;
    font-family: Pretendard, serif;
    font-weight: 400;
    font-size: 14px;
    color: #9E9E9E;
}

/* 시험 대상자 등록 모달 */
.subject-create-header {
    border: 0 !important;
    padding: 32px 32px 8px 32px;
}

.subject-create-title {
    font-family: Pretendard, serif;
    font-weight: 600;
    font-size: 20px;
    color: #222222;
}

.subject-create-body {
    padding: 8px 32px 32px 32px;
}

.subject-create-body .form-group {
    margin-bottom: 24px;
}

.subject-create-body label {
    font-family: Pretendard, serif;
    font-weight: 600;
    font-size: 15px;
    color: #222222;
}

.subject-create-birthday-mask {
    margin-left: 16px;
    font-size: 20px;
    letter-spacing: 12px;
    color: #222222;
}

.btn.subject-create-confirm-btn {
    height: 48px !important;
    margin-top: 8px;
}

/* select2 는 원본 select 을 숨기므로 컨테이너에 직접 오류 테두리를 준다 */
.subject-create-body .select2.is-invalid .select2-selection {
    border-color: #dc3545 !important;
}

/* ============================================================
   Portal - 예약 목록의 DCT 배지 (portal/reserve/reserve_list)
   예약 항목 0번(임상시험 의뢰)은 예약자가 개인이 아니라 의뢰 기관이라
   예약자 자리에 이름 대신 배지를 보여 준다.
   ============================================================ */

.reserve-dct-badge {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 12px;
    border-radius: 6px;
    background: #1F3566;
    color: #FFFFFF;
    font-family: Pretendard, serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* ---------- 예약 상세의 DCT 분기 (portal/reserve/reserve_detail) ---------- */

/* 담당 의료진 확인 문구 */
.dct-confirm-box {
    padding: 12px 16px;
    border-radius: 6px;
    background: #F5F5F5;
}

/* 위쪽 .icheck-afternoon > label 이 font-weight:400 을 !important 로 걸어 두어
   같은 방식으로만 덮을 수 있다 (선택자도 한 단계 더 좁힌다) */
.dct-confirm-box .icheck-afternoon > label {
    margin-bottom: 0;
    color: #FF3E3E;
    font-weight: 600 !important;
    font-size: 14px;
    line-height: 20px;
}

/* 요청 검사 항목 (예약 상세 - 확정) : '예약항목:' 같은 라벨은 보통 글씨, 값만 굵게
   (.form-group > p 가 400/#424242 를 걸고 있어 같은 구조로 맞춰 덮는다) */
.form-group > p.dct-request-line {
    color: #424242;
}

.form-group > p.dct-request-line span {
    margin-left: 4px;
    font-weight: 600;
    color: #222222;
}

/* 검사 기한 : 날짜는 붉게, '부터'/'까지' 는 굵은 검정으로
   (위쪽 .form-group > p 규칙이 400/#424242 를 걸고 있어 같은 구조로 맞춰 덮는다) */
.form-group > p.dct-test-date {
    font-weight: 600;
    color: #222222;
}

.form-group > p.dct-test-date span {
    font-weight: 600;
    color: #FF3E3E;
}

/* 상태 퀵버튼과 DCT 퀵버튼을 갈라 주는 구분선 */
.reserve-quick-divider {
    margin: 0 12px;
    color: #E0E0E0;
}

/* 앞에 붙는 마름모 표식 */
.reserve-dct-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    margin-right: 6px;
    background: #FFFFFF;
    transform: rotate(45deg);
}

/* ============================================================
   Trial - 의뢰 변경 모달 (trial/subject/subject_list)
   이미 보낸 의뢰를 변경할지 취소할지 고른다
   ============================================================ */

/* 선택지 문구가 한 줄로 서는 너비 (두 장을 나란히 놓는다) */
.request-change-dialog {
    width: 960px;
    max-width: calc(100vw - 48px);
}

.request-change-content {
    padding: 40px;
    border: 0;
    border-radius: 16px;
}

.request-change-title {
    margin: 0;
    font-weight: 700;
    font-size: 22px;
    color: #222222;
}

/* 현재 의뢰 정보 / 검사 시행 기한 */
.request-change-info {
    padding-bottom: 24px;
    margin-top: 24px;
    border-bottom: 1px solid #EEEEEE;
}

.request-change-info-row {
    display: flex;
    align-items: center;
    font-size: 15px;
}

.request-change-info-row + .request-change-info-row {
    margin-top: 10px;
}

.request-change-info-label {
    flex: 0 0 110px;
    font-weight: 600;
    color: #222222;
}

.request-change-info-mark {
    margin-right: 12px;
    color: #BDBDBD;
}

.request-change-info-value {
    color: #424242;
}

.request-change-info-divider {
    margin: 0 12px;
    color: #E0E0E0;
}

.request-change-question {
    margin: 28px 0 16px 0;
    font-weight: 600;
    font-size: 16px;
    color: #222222;
}

/* 무엇을 할지 고르는 카드 (라디오 버튼을 카드 통째로 누를 수 있게 label 로 감싼다) */
.request-change-options {
    display: flex;
    gap: 16px;
}

.request-change-option {
    display: flex;
    align-items: center;
    position: relative;   /* 감춰 둔 라디오가 카드 밖으로 나가지 않게 잡아 준다 */
    flex: 1 1 0;
    min-width: 0;
    padding: 26px 20px;
    margin: 0;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    cursor: pointer;
}

.request-change-option.active {
    border-color: #00CE90;
    background: #E9FBF3;
}

/* 기본 라디오는 숨기고 아래 mark 로 그린다 (키보드 조작은 그대로 살려 둔다) */
.request-change-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.request-change-option-mark {
    flex: 0 0 18px;
    position: relative;
    width: 18px;
    height: 18px;
    margin-right: 10px;
    border: 2px solid #E0E0E0;
    border-radius: 50%;
    background: #FFFFFF;
}

.request-change-option input:checked + .request-change-option-mark {
    border-color: #00CE90;
}

.request-change-option input:checked + .request-change-option-mark::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00CE90;
}

/* 키보드로 옮겨 왔을 때 어디에 있는지 보이게 한다 */
.request-change-option input:focus-visible + .request-change-option-mark {
    box-shadow: 0 0 0 3px rgba(0, 206, 144, 0.25);
}

.request-change-option-label {
    font-weight: 500;
    font-size: 15px;
    color: #424242;
}

.request-change-option.active .request-change-option-label {
    color: #00B383;
}

.request-change-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
}

.btn.request-change-cancel-btn,
.btn.request-change-confirm-btn {
    width: 30%;
    height: 56px !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
}

.btn.request-change-cancel-btn {
    border: 1px solid #E0E0E0;
    background: #FFFFFF;
    color: #222222;
}

.btn.request-change-confirm-btn {
    border: 0;
    background: #00CE90;
    color: #FFFFFF;
}

.btn.request-change-confirm-btn:disabled {
    background: #F5F5F5;
    color: #BDBDBD;
    opacity: 1;
}

/* ============================================================
   Trial - 안과 검사 의뢰 모달 (trial/subject/subject_list)
   좌측 : 의뢰 입력 / 우측 : 지도에서 안과 선택
   ============================================================ */

.clinic-request-dialog {
    width: 1440px;
    max-width: calc(100vw - 48px);
}

.clinic-request-content {
    position: relative;
    flex-direction: row;
    height: 940px;
    max-height: calc(100vh - 40px);
    border: 0;
    border-radius: 16px;
    overflow: hidden;
}

.clinic-request-close {
    position: absolute;
    top: 20px;
    right: 24px;
    z-index: 2;
    font-size: 32px;
    font-weight: 300;
    color: #222222;
}

/* ---------- 좌측 : 의뢰 입력 ---------- */

.clinic-request-form {
    display: flex;
    flex-direction: column;
    width: 46%;
    padding: 40px;
    overflow: hidden;
}

.clinic-request-title {
    margin: 0;
    font-weight: 600;
    font-size: 20px;
    color: #222222;
}

.clinic-request-subject {
    display: flex;
    align-items: center;
    padding-bottom: 20px;
    margin-top: 20px;
    border-bottom: 1px solid #EEEEEE;
    font-size: 15px;
}

.clinic-request-subject-label {
    color: #616161;
}

.clinic-request-subject-mark {
    margin: 0 12px;
    color: #BDBDBD;
}

.clinic-request-subject-no {
    font-weight: 500;
    color: #222222;
}

.clinic-request-section {
    margin-top: 28px;
}

.clinic-request-label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 16px;
    color: #222222;
}

.clinic-request-required {
    margin-left: 4px;
    color: #FF3E3E;
}

/* 라벨 옆 안내 문구 (의뢰 결과를 구분할 수 있는 단위로 …) */
.clinic-request-label-desc {
    margin-left: 8px;
    font-weight: 400;
    font-size: 13px;
    color: #9E9E9E;
}

/* select2 는 원본 select 을 감추고 span.select2 를 대신 그리므로 크기는 그쪽에 준다.
   .select2 에 걸린 width:100% !important 는 flex-basis 로 덮는다. */
.clinic-request-visit-row .select2 {
    flex: 0 0 140px;
}

.clinic-request-visit-row .select2-selection--single {
    padding: 13px 16px;   /* 1 + 13 + 20(line-height) + 13 + 1 = 48px */
}

.clinic-request-visit-memo {
    height: 48px !important;
    margin-left: 8px;
}

/* 검사 시행 기한 : 달력 아이콘을 입력칸 안쪽에 둔다 */
.clinic-request-date {
    position: relative;
}

.clinic-request-date ion-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    font-size: 20px;
    color: #616161;
}

.clinic-request-date .form-control {
    height: 48px !important;
    padding-left: 48px;
    cursor: pointer;
}

/* 값은 daterangepicker 로만 넣어야 해서 readonly 지만 보기에는 다른 입력칸과 같아야 한다
   (위쪽 .form-control[readonly] 의 회색 처리를 이 입력칸에서만 되돌린다) */
.clinic-request-date .form-control[readonly] {
    background-color: #FFFFFF !important;
    border: 1px solid #ced4da !important;
    color: #222222 !important;
}

/* 라벨 오른쪽에 지금 무엇을 기준으로 줄 세웠는지 알려 준다 (현재 위치 / 가나다) */
.clinic-request-clinic-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.clinic-request-sort {
    flex: none;
    margin-left: 12px;
    font-size: 13px;
    color: #9E9E9E;
}

/* 안과 목록은 남는 높이를 다 쓰고 그 안에서만 스크롤한다 */
.clinic-request-clinic-section {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.clinic-request-clinic-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.clinic-request-clinic {
    display: block;
    width: 100%;
    margin-bottom: 8px;
    padding: 14px 16px;
    border: 1px solid #EEEEEE;
    border-radius: 8px;
    background: #FFFFFF;
    text-align: left;
    cursor: pointer;
}

.clinic-request-clinic.active {
    border-color: #00CE90;
    background: #F4FDF9;
}

.clinic-request-clinic-name {
    display: block;
    font-weight: 500;
    font-size: 15px;
    color: #222222;
}

.clinic-request-clinic.active .clinic-request-clinic-name {
    font-weight: 600;
}

.clinic-request-clinic-region {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: #9E9E9E;
}

/* 목록을 불러오는 중 / 결과가 없을 때 */
.clinic-request-empty {
    padding: 32px 0;
    text-align: center;
    font-size: 14px;
    color: #9E9E9E;
}

.clinic-request-notice {
    margin: 16px 0 0 0;
    font-size: 13px;
    color: #9E9E9E;
}

.btn.clinic-request-confirm-btn {
    height: 56px !important;
    margin-top: 12px;
    border: 0;
    border-radius: 8px;
    background: #00CE90;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 16px;
}

.btn.clinic-request-confirm-btn:disabled {
    background: #F5F5F5;
    color: #BDBDBD;
    opacity: 1;
}

/* ---------- 우측 : 지도 ---------- */

.clinic-request-map-area {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    padding: 40px;
    border-left: 1px solid #EEEEEE;
}

.clinic-request-map-title {
    margin: 0 0 20px 0;
    font-weight: 600;
    font-size: 20px;
    color: #222222;
}

.clinic-request-map-label {
    font-size: 14px;
    color: #616161;
}

.clinic-request-region {
    display: flex;
    align-items: center;
    margin: 8px 0 16px 0;
}

.clinic-request-region .select2 {
    flex: 1 1 0;
    margin-right: 8px;
}

.clinic-request-region .select2-selection--single {
    padding: 11px 16px;   /* 1 + 11 + 20(line-height) + 11 + 1 = 44px */
}

.btn.clinic-request-search-btn {
    flex: none;
    width: 72px;
    height: 44px !important;
    border: 0;
    border-radius: 6px;
    background: #00CE90;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 15px;
}

.clinic-request-map-wrap {
    position: relative;
    flex: 1;
    min-height: 0;
    border-radius: 8px;
    overflow: hidden;
}

.clinic-request-map {
    width: 100%;
    height: 100%;
}

/* 지도를 옮기면 나타나는 '이 지역 다시 탐색하기' */
.btn.clinic-request-rescan-btn {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    background: #333333;
    color: #FFFFFF;
    font-weight: 500;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn.clinic-request-rescan-btn ion-icon {
    margin-right: 8px;
    font-size: 18px;
    color: #00CE90;
}

/* 지도 마커 : 마커 아이콘 + 안과명을 흰 알약 하나로 그린다.
   네이버 지도는 아이콘 content 를 좌표 위치에 그대로 붙이므로, 크기가 없는 래퍼를 두고
   그 안에서 transform 으로 좌표 중앙에 맞춘다 (안과명 길이에 따라 폭이 달라지기 때문). */
.clinic-map-pill-wrap {
    position: relative;
    width: 0;
    height: 0;
}

.clinic-map-pill {
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 20px 0 10px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
    white-space: nowrap;
    cursor: pointer;
}

.clinic-map-pill img {
    width: 28px;
    height: 28px;
    margin-right: 8px;
}

.clinic-map-pill span {
    font-weight: 600;
    font-size: 16px;
    color: #757575;
}

.clinic-map-pill.active {
    border-color: #00CE90;
}

.clinic-map-pill.active span {
    color: #222222;
}
