.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;
}

/* 종모양은 세 가지 모습이 있다
     1. 안 읽은 알림 없음        : 흰 배경 + 초록 테두리 · 초록 종 (기본)
     2. 안 읽은 알림 있음        : 초록으로 꽉 찬 원 + 흰 종 + N 배지 + '신규 알림이 있어요' 말풍선
     3. 안 읽은 알림 있고 패널 열림 : 다시 흰 배경 + 초록 테두리, N 배지만 남는다 */
.nav-t-noti-btn {
    position: relative;
    border-color: #00CE90;
    color: #00CE90;
}

.nav-t-noti-btn.has-noti {
    background: #00CE90;
    border-color: #00CE90;
    color: #FFFFFF;
}

/* 패널을 열면 채움을 풀어 기본 모습으로 돌아간다 (배지는 그대로 둔다) */
.nav-item.show .nav-t-noti-btn.has-noti {
    background: #FFFFFF;
    color: #00CE90;
}

.nav-noti-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border: 2px solid #FFFFFF;
    border-radius: 9px;
    background: #E23B3B;
    color: #FFFFFF;
    font-family: Pretendard, serif;
    font-weight: 700;
    font-size: 11px;
    line-height: 14px;
    text-align: center;
}

/* '신규 알림이 있어요' : 안 읽은 알림이 있고 패널이 닫혀 있을 때만 종 아래에 뜬다
   (오른쪽 끝을 맞추면 종이 말풍선 오른쪽에 치우쳐 보인다. 종 한가운데를 기준으로 둔다) */
.nav-noti-tip {
    display: none;
    position: absolute;
    top: 46px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 14px;
    border-radius: 8px;
    background: #FFFFFF;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    font-family: Pretendard, serif;
    font-weight: 500;
    font-size: 14px;
    color: #222222;
    white-space: nowrap;
}

.nav-t-noti-btn.has-noti .nav-noti-tip {
    display: block;
}

.nav-item.show .nav-noti-tip {
    display: none;
}

.nav-noti-tip b {
    font-weight: 700;
    color: #00CE90;
}

/* ============================================================
   TRIAL 상단바 알림 패널 (trial/fragments/navbar_include)
   ============================================================ */

.dropdown-menu.nav-noti-panel {
    /* 알림 문구 · 하단 정보(연구명 · 일시 · 바로가기)가 한 줄에 들어가도록 넉넉히 잡는다 */
    width: 520px;
    max-width: calc(100vw - 32px);
    margin-top: 12px;
    padding: 0;
    border: 1px solid #EEEEEE;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.nav-noti-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 12px 20px;
}

.nav-noti-head-title {
    font-family: Pretendard, serif;
    font-weight: 600;
    font-size: 17px;
    color: #222222;
}

.btn.nav-noti-readall {
    height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: #00CE90;
    font-family: Pretendard, serif;
    font-weight: 500;
    font-size: 13px;
}

/* 알림 종류 탭 */
.nav-noti-tabs {
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid #EEEEEE;
}

.btn.nav-noti-tab {
    display: flex;
    align-items: center;
    flex: none;
    height: 40px;
    margin-right: 24px;
    white-space: nowrap;
    padding: 0;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    color: #9E9E9E;
    font-family: Pretendard, serif;
    font-weight: 500;
    font-size: 14px;
}

.btn.nav-noti-tab.active {
    border-bottom-color: #00CE90;
    color: #00CE90;
    font-weight: 600;
}

.nav-noti-tab-count {
    margin-left: 6px;
    color: #BDBDBD;
    font-weight: 500;
    font-size: 12px;
}

.btn.nav-noti-tab.active .nav-noti-tab-count {
    color: #00CE90;
}

.nav-noti-tab-count sup {
    top: -0.4em;
    font-size: 9px;
}

/* 알림 목록 : 한 번에 많이 보이게 길게 잡되, 화면 아래로 넘치지는 않게 한다
   (140px = 상단바 + 패널의 헤더/탭 높이) */
.nav-noti-list {
    max-height: 780px;
    max-height: min(780px, calc(100vh - 140px));
    overflow-y: auto;
}

.nav-noti-date {
    padding: 14px 20px 6px 20px;
    font-family: Pretendard, serif;
    font-weight: 500;
    font-size: 12px;
    color: #9E9E9E;
}

.nav-noti-item {
    display: flex;
    align-items: flex-start;
    padding: 14px 20px 14px 12px;
}

/* 읽지 않은 알림은 옅은 초록 배경 + 좌측 점으로 구분한다 */
.nav-noti-item.unread {
    background: #F1FBF7;
}

.nav-noti-unread {
    flex: none;
    width: 6px;
    height: 6px;
    margin: 14px 6px 0 0;
    border-radius: 50%;
    background: transparent;
}

.nav-noti-item.unread .nav-noti-unread {
    background: #00CE90;
}

.nav-noti-icon {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-right: 12px;
    border-radius: 8px;
    font-size: 16px;
}

.nav-noti-icon-report {
    background: #E8FBF4;
    color: #00CE90;
}

.nav-noti-icon-modify,
.nav-noti-icon-cancel {
    background: #FFECEC;
    color: #FF5B5B;
}

.nav-noti-body {
    flex: 1 1 auto;
    min-width: 0;
}

.nav-noti-item-head {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.nav-noti-item-title {
    margin-right: 6px;
    font-family: Pretendard, serif;
    font-weight: 600;
    font-size: 14px;
    color: #222222;
    white-space: nowrap;
}

.nav-noti-chip {
    flex: none;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: Pretendard, serif;
    font-weight: 600;
    font-size: 11px;
    white-space: nowrap;
}

.nav-noti-chip-mint {
    background: #E8FBF4;
    color: #00CE90;
}

.nav-noti-chip-red {
    background: #FFECEC;
    color: #FF5B5B;
}

.nav-noti-text {
    margin: 0 0 6px 0;
    font-family: Pretendard, serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 20px;
    color: #424242;
    /* 드롭다운 기본값(nowrap)을 되돌리고, 긴 번호가 있어도 칸을 넘지 않게 한다 */
    white-space: normal;
    word-break: break-word;
}

.nav-noti-text b {
    font-weight: 600;
    color: #222222;
}

/* 연구명이 길어도 줄이 깨지지 않게, 넘칠 때만 아래로 내려간다 */
.nav-noti-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 4px;
}

.nav-noti-research {
    max-width: 160px;
    margin-right: 8px;
    padding: 2px 6px;
    border-radius: 4px;
    background: #F5F5F5;
    font-family: Pretendard, serif;
    font-weight: 500;
    font-size: 11px;
    color: #616161;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-noti-time {
    margin-right: 10px;
    font-family: Pretendard, serif;
    font-weight: 400;
    font-size: 12px;
    color: #9E9E9E;
    white-space: nowrap;
}

.nav-noti-action {
    display: flex;
    align-items: center;
    flex: none;
    color: #00CE90;
    font-family: Pretendard, serif;
    font-weight: 600;
    font-size: 12px;
    white-space: nowrap;
}

.nav-noti-action:hover {
    color: #00B37D;
}

.nav-noti-action ion-icon {
    margin-left: 2px;
    font-size: 11px;
}

.nav-noti-empty {
    padding: 60px 20px;
    text-align: center;
    font-family: Pretendard, serif;
    font-weight: 400;
    font-size: 14px;
    color: #9E9E9E;
}

/* 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;
}

/* 입력란 안쪽 끝에 붙는 태그 (의료진 추가·수정의 '대표원장')
   태그는 wrap 에 has-tag 가 붙어 있는 동안에만 보인다 */
.input-tag-wrap {
    position: relative;
}

.input-tag {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    padding: 2px 10px;
    border-radius: 12px;
    background-color: #F5F5F5;
    color: #757575;
    font-family: Pretendard, serif !important;
    font-weight: 600;
    font-size: 12px;
    line-height: 18px;
    white-space: nowrap;
    pointer-events: none; /* 태그를 눌러도 입력란으로 포커스가 가도록 */
}

.input-tag-wrap:not(.has-tag) > .input-tag {
    display: none;
}

/* 태그가 붙어 있는 동안에는 입력한 글자가 태그 아래로 숨지 않도록 자리를 비워 둔다 */
.input-tag-wrap.has-tag > .form-control {
    padding-right: 92px !important;
}

/* 부트스트랩의 오류 아이콘이 같은 자리에 그려져 태그와 겹치므로,
   태그가 있는 동안에는 테두리 색과 아래 문구로만 오류를 알린다 */
.input-tag-wrap.has-tag > .form-control.is-invalid {
    background-image: none !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_study_file_list .dct-file-chip {
    display: flex;
    width: fit-content;
}

#dct_research_create_modal #dct_study_file_list .dct-file-chip + .dct-file-chip {
    margin-top: 4px;
}

/* 지난 자료 : 수정할 때마다 쌓인 이전 파일 목록 (휴지통을 누르면 완전히 삭제된다) */
#dct_research_create_modal .dct-file-history:empty {
    display: none;
}

#dct_research_create_modal .dct-file-history {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed #E0E0E0;
}

#dct_research_create_modal .dct-file-history-title {
    margin-bottom: 6px;
    font-size: 12px;
    color: #9E9E9E;
}

#dct_research_create_modal .dct-file-history-item {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #757575;
}

#dct_research_create_modal .dct-file-history-item + .dct-file-history-item {
    margin-top: 4px;
}

#dct_research_create_modal .dct-file-history-item > .dct-file-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: underline;
}

#dct_research_create_modal .dct-file-history-item > .dct-file-name:hover {
    color: #00CE90;
}

#dct_research_create_modal .dct-file-history-date {
    margin-left: 8px;
    font-size: 12px;
    color: #BDBDBD;
    white-space: nowrap;
}

#dct_research_create_modal .dct-file-history-del {
    margin-left: 6px;
    font-size: 15px;
    color: #E53935;
    cursor: pointer;
    flex-shrink: 0;
}

/* 연계 안과 검색 결과 */
#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;
}

/* 기본 정보 > 검사 필요 항목 : CRF 항목 머리글과 같은 모양의 단순 입력 행 */
#dct_research_create_modal .dct-exam-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

#dct_research_create_modal .dct-exam-item > ion-icon.dct-exam-handle {
    margin-right: 8px;
    font-size: 14px;
    color: #BDBDBD;
    cursor: move;
}

#dct_research_create_modal .dct-exam-name {
    height: 34px;
    font-size: 13px;
}

#dct_research_create_modal .dct-exam-del {
    padding: 0 0 0 12px;
    color: #424242;
}

#dct_research_create_modal .dct-exam-del ion-icon {
    font-size: 18px;
}

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

#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;
}

/* 진료과목처럼 select2 로 만든 항목은 원본 select 이 숨겨지므로
   바로 뒤에 붙는 select2 컨테이너에 오류 테두리를 준다 */
#dct_research_create_modal select.is-invalid + .select2 .select2-selection {
    border-color: #FF3E3E !important;
}

/* ============================================================
   DCT 파트너 등록 모달 (admin/fragments/modal_dct_partner_create)
   ============================================================ */

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

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

#dct_account_create_modal .modal-content {
    width: 900px;
    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;
}

/* 진료과목처럼 select2 로 만든 항목은 원본 select 이 숨겨지므로
   바로 뒤에 붙는 select2 컨테이너에 오류 테두리를 준다 */
#dct_account_create_modal select.is-invalid + .select2 .select2-selection {
    border-color: #FF3E3E !important;
}

#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;
}

/* 연구 정보 보기 (안내자료 pdf 미리보기) : 타이틀 옆에 붙는 텍스트 링크 */
.btn.research-info-btn {
    display: flex;
    align-items: center;
    height: auto;
    /* 위쪽 .btn 이 좌우 여백을 !important 로 주고 있어 여기서 되돌린다 */
    padding: 0 !important;
    border: 0;
    background: transparent;
    color: #00CE90;
    font-family: Pretendard, serif;
    font-weight: 600;
    font-size: 13px;
    line-height: 1;
}

.btn.research-info-btn:hover,
.btn.research-info-btn:focus {
    color: #00B37D;
    box-shadow: none;
}

.btn.research-info-btn ion-icon {
    margin-left: 2px;
    font-size: 13px;
    transform: rotate(-45deg);   /* 우측 상단 화살표 */
}

/* 검사 상태 필터 칩 */
.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;
    /* 문구 길이가 달라도(미완료 · 의뢰 확정 …) 배지 안에서 가운데로 오게 한다 */
    text-align: center;
    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; }
/* 연구 중지 : 중도에 멈춘 대상자라 빨간 테두리로 구분한다 (연구 완료는 위 outline 을 쓴다) */
.trial-badge-stop    { background: #FFFFFF; border-color: #FF5A5A; color: #FF5A5A; }

/* 배지 옆에 붙는 보조 문구 (신규 등록 / 의뢰 취소 …) */
.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;
}

/* 목록의 행은 눌러서 대상자 상세로 간다 */
#table_list tbody tr {
    cursor: pointer;
}

/* ============================================================
   Trial - 대상자 상세 (trial/subject/subject_detail)
   ============================================================ */

.subject-detail-breadcrumb {
    display: flex;
    align-items: center;
    font-family: Pretendard, serif;
    font-weight: 500;
    font-size: 13px;
    color: #616161;
}

.subject-detail-breadcrumb a {
    color: #00CE90;
}

.subject-detail-breadcrumb ion-icon {
    margin: 0 6px;
    font-size: 12px;
    color: #BDBDBD;
}

.subject-detail-no {
    margin-left: 8px;
}

/* 시험 대상자 삭제 : 되돌릴 수 없는 동작이라 빨간 아웃라인으로 구분한다 */
.btn.subject-detail-delete-btn {
    height: 40px;
    padding: 0 16px;
    border: 1px solid #FF5B5B;
    border-radius: 4px;
    background: #FFFFFF;
    color: #FF5B5B;
    font-family: Pretendard, serif;
    font-weight: 500;
    font-size: 14px;
}

.btn.subject-detail-delete-btn:hover {
    background: #FFF5F5;
    color: #FF5B5B;
}

/* 연구 완료 : 계획된 검사를 모두 마친 경우 (중지보다 약한 액션이라 테두리만 둔다) */
.btn.subject-detail-done-btn {
    height: 40px;
    padding: 0 16px;
    border: 1px solid #BDBDBD;
    border-radius: 4px;
    background: #FFFFFF;
    color: #424242;
    font-family: Pretendard, serif;
    font-weight: 600;
    font-size: 14px;
}

.btn.subject-detail-done-btn:hover,
.btn.subject-detail-done-btn:focus {
    background: #F5F5F5;
    color: #424242;
    box-shadow: none;
}

/* 연구 중지 : 소견이 회신돼 삭제할 수 없는 대상자에게 [시험 대상자 삭제] 대신 나온다 */
.btn.subject-detail-close-btn {
    height: 40px;
    padding: 0 16px;
    border: 1px solid #FF5B5B;
    border-radius: 4px;
    background: #FF5B5B;
    color: #FFFFFF;
    font-family: Pretendard, serif;
    font-weight: 600;
    font-size: 14px;
}

.btn.subject-detail-close-btn:hover,
.btn.subject-detail-close-btn:focus {
    border-color: #F04747;
    background: #F04747;
    color: #FFFFFF;
    box-shadow: none;
}


.subject-detail-card {
    padding: 32px;
    border: 1px solid #EEEEEE;
    border-radius: 8px;
    background: #FFFFFF;
}

.subject-detail-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
}

.subject-detail-field .subject-detail-label {
    margin-bottom: 8px;
    font-family: Pretendard, serif;
    font-weight: 600;
    font-size: 15px;
    color: #222222;
}

.subject-detail-required {
    margin-left: 2px;
    color: #FF5B5B;
}

.subject-detail-value {
    font-family: Pretendard, serif;
    font-weight: 400;
    font-size: 14px;
    color: #424242;
}

.subject-detail-desc {
    margin-bottom: 12px;
    font-family: Pretendard, serif;
    font-weight: 400;
    font-size: 13px;
    color: #757575;
}

.subject-detail-input-row {
    display: flex;
    align-items: center;
}

.subject-detail-input-row .form-control {
    width: 320px;
    flex: none;
}

.btn.subject-detail-save-btn {
    height: 42px !important;
    margin-left: 16px;
    padding: 0 20px;
}

/* 방문 차수 / 검사 소견 */
.subject-detail-visit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 24px 0 16px 0;
}

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

.subject-detail-visit-chip {
    display: flex;
    align-items: center;
    height: 36px;
    padding: 0 16px;
    border-radius: 8px;
    background: #F5F5F5;
    font-family: Pretendard, serif;
    font-weight: 500;
    font-size: 14px;
    color: #616161;
}

/* 차수를 눌러 옮겨 볼 수 있을 때 (링크로 그려진다) */
a.subject-detail-visit-chip {
    margin-right: 8px;
    text-decoration: none;
}

a.subject-detail-visit-chip:hover {
    background: #EEEEEE;
    color: #424242;
    text-decoration: none;
}

/* 지금 보고 있는 차수 (연구 탭과 같은 색을 쓴다) */
.subject-detail-visit-chip.active,
a.subject-detail-visit-chip.active:hover {
    background: #1F3566;
    color: #FFFFFF;
}

.subject-detail-visit-dot {
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 50%;
    background: #BDBDBD;
}

.subject-detail-visit-chip.active .subject-detail-visit-dot {
    background: #FFFFFF;
}

.btn.subject-detail-request-btn {
    height: 40px !important;
    padding: 0 20px;
}

/* [의뢰 변경] : 목록의 [의뢰 변경] 버튼(.trial-action-dark)과 같은 검정색을 쓴다 */
.btn.subject-detail-change-btn {
    border: 1px solid #212B36;
    background: #212B36;
    color: #FFFFFF;
    font-weight: 600;
}

.btn.subject-detail-change-btn:hover,
.btn.subject-detail-change-btn:focus {
    border-color: #111820;
    background: #111820;
    color: #FFFFFF;
    box-shadow: none;
}

/* 소견이 아직 없을 때 (안과가 결과를 회신하면 이 자리에 소견이 들어온다) */
.subject-detail-report-empty {
    padding: 40px 48px;
    font-family: Pretendard, serif;
    font-weight: 500;
    font-size: 15px;
    color: #424242;
}

/* [다음 검사 의뢰] 확인 창 : 어떤 의뢰에 이어 보내는지 먼저 보여 준다 */
.subject-request-alert-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 4px;
    font-family: Pretendard, serif;
    font-weight: 400;
    font-size: 15px;
    color: #424242;
}

.subject-request-alert-label {
    flex: none;
    width: 120px;
    font-weight: 600;
    color: #222222;
}

.subject-request-alert-sep {
    flex: none;
    width: 20px;
}

.subject-request-alert-divider {
    margin: 0 10px;
    color: #BDBDBD;
}

/* 확인을 누르면 무엇이 바뀌는지 (구분선 아래에 둔다) */
.subject-request-alert-notice {
    margin: 16px 0 0 0;
    padding-top: 16px;
    border-top: 1px solid #EEEEEE;
    font-family: Pretendard, serif;
    font-weight: 600;
    font-size: 15px;
    color: #222222;
}

/* ============================================================
   Trial - 연구 완료 / 연구 중지 모달 (trial/subject/subject_detail)
   되돌릴 수 없는 일이라 경고와 동의 체크를 거친다
   ============================================================ */

.subject-close-dialog {
    width: 640px;
    max-width: calc(100vw - 48px);
}

.subject-close-content {
    padding: 32px;
    border: 0;
    border-radius: 16px;
}

.subject-close-title {
    margin: 0;
    font-weight: 700;
    font-size: 20px;
    color: #222222;
}

.btn.subject-close-x,
.close.subject-close-x {
    padding: 0;
    margin: 0;
    font-size: 28px;
    font-weight: 300;
    color: #9E9E9E;
    opacity: 1;
}

.subject-close-desc {
    margin: 28px 0 0 0;
    font-size: 15px;
    color: #424242;
}

.subject-close-desc strong {
    font-weight: 700;
    color: #222222;
}

/* 중지 사유 (선택 입력) */
.subject-close-reason {
    margin-top: 20px;
}

.subject-close-reason-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 15px;
    color: #222222;
}

textarea.subject-close-reason-input {
    height: auto;
    padding: 12px 14px;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    font-size: 14px;
    resize: none;
}

/* 되돌릴 수 없다는 경고 */
.subject-close-warning {
    display: flex;
    align-items: center;
    margin-top: 20px;
    padding: 16px 18px;
    border-radius: 8px;
    background: #FFF0F0;
    font-size: 15px;
    color: #424242;
}

.subject-close-warning > ion-icon {
    flex: none;
    width: 18px;
    height: 18px;
    margin-right: 12px;
    color: #FF3E3E;
}

.subject-close-warning strong {
    font-weight: 700;
    color: #FF3E3E;
}

/* 동의 체크 (기본 체크박스는 감추고 아래 mark 로 그린다) */
.subject-close-agree {
    display: flex;
    align-items: center;
    position: relative;
    margin: 20px 0 0 0;
    cursor: pointer;
}

.subject-close-agree input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.subject-close-agree-mark {
    flex: none;
    position: relative;
    width: 20px;
    height: 20px;
    margin-right: 12px;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    background: #FFFFFF;
}

.subject-close-agree input:checked + .subject-close-agree-mark {
    border-color: #00CE90;
    background: #00CE90;
}

.subject-close-agree input:checked + .subject-close-agree-mark::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 7px;
    width: 5px;
    height: 10px;
    border: solid #FFFFFF;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.subject-close-agree input:focus-visible + .subject-close-agree-mark {
    box-shadow: 0 0 0 3px rgba(0, 206, 144, 0.25);
}

.subject-close-agree-label {
    font-size: 15px;
    color: #424242;
}

.subject-close-buttons {
    display: flex;
    gap: 16px;
    margin-top: 28px;
}

.btn.subject-close-cancel-btn,
.btn.subject-close-confirm-btn {
    flex: 1 1 0;
    height: 56px !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
}

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

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

/* 동의 전에는 눌러도 되지 않는다는 걸 색으로 알려 준다 */
.btn.subject-close-confirm-btn:disabled {
    background: #E0E0E0;
    color: #FFFFFF;
    opacity: 1;
}

/* 시험 대상자 등록 모달 */
.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;
}

/* 생년월일 / 성별 : 달력 · 성별 · 외국인 여부를 한 줄에 둔다 */
.birth-input-row {
    display: flex;
    align-items: center;
}

.birth-input-date {
    position: relative;
    flex: 1 1 auto;
}

.birth-input-date ion-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    font-size: 18px;
    color: #9E9E9E;
}

.birth-input-date .form-control {
    padding-left: 42px;
    cursor: pointer;
}

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

.birth-input-date .form-control[readonly].is-invalid {
    border-color: #dc3545 !important;
}

/* 성별 / 외국인 여부 : 라디오·체크박스는 프로젝트 공통 모양을 쓰고 칸만 감싼다
   (custom-control 은 좌측 1.5rem, icheck 는 좌측 29px 를 표시에 쓰므로 그만큼 더 띄운다) */
.birth-input-row .birth-input-gender,
.birth-input-row .birth-input-foreigner {
    display: flex;
    align-items: center;
    height: 42px;
    margin: 0 0 0 8px !important;
    border-radius: 4px;
}

.birth-input-row .birth-input-gender {
    flex: none;
    min-width: 96px;
    padding: 0 14px 0 38px;
    border: 1px solid #ced4da;
}

.birth-input-row .birth-input-gender.active {
    border-color: #00CE90;
}

.birth-input-row .birth-input-gender.is-invalid {
    border-color: #dc3545;
}

/* 외국인 여부 : 선택 항목이라 테두리 없이 옅은 배경으로 구분한다 */
.birth-input-row .birth-input-foreigner {
    flex: 1 1 auto;
    padding: 0 16px;
    background: #F1FBF7;
}

.birth-input-row .birth-input-foreigner > label {
    font-weight: 400;
    font-size: 14px;
    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;
    /* 제목·상태 배지와 한 줄에 설 때 세로 가운데를 잡는다 (아래 #status_text 설명 참고) */
    align-self: 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;
}

/* ============================================================
   상세 화면 머리말의 상태 배지 (#status_text)
   예약/결과지/가입신청 등 상세 화면은 제목(h5) · DCT 배지 · 상태 배지를
   한 줄(.col-sm-6.p-0.d-flex)에 나란히 놓는데, 이 d-flex 에 align-items 가
   없어 기본값(stretch)으로 늘어난다. 그러면 배지 상자만 줄 높이만큼 커지고
   글자는 위쪽 padding 자리에 붙어 가운데에서 벗어나 보인다.
   배지가 제 높이를 갖고 세로 가운데에 서도록 한다.
   ============================================================ */
#status_text {
    align-self: center;
}

/* ---------- 예약 상세의 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;
}

/* ============================================================
   CRF 모듈 (portal/report/module/*.html)
   연구에 구성된 모듈을 결과 입력 화면에 카드로 하나씩 그린다.
   여러 모듈이 같은 모양을 쓰므로 여기에 공통으로 둔다.
   ============================================================ */

/* 모듈은 카드를 직접 그리기도 하고(제목 있는 모듈) 입력 항목만 그리기도 한다 */
.dct-module > label,
.dct-module .form-group > label {
    font-family: Pretendard, serif;
    font-weight: 600;
    font-size: 14px;
    color: #222222;
}

.dct-module-required {
    margin-left: 4px;
    color: #FF3E3E;
}

/* 선택지는 테두리 상자 안에 라디오를 넣어 보여 준다
   (custom-control 이 좌측 1.5rem 을 표시에 쓰므로 그만큼 더 띄운다) */
.dct-module-radio-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.dct-module-radio-row .dct-module-radio {
    display: flex;
    align-items: center;
    flex: none;
    height: 42px;
    min-width: 110px;
    margin: 0;
    padding: 0 16px 0 40px;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
}

.dct-module-radio-row .dct-module-radio.is-invalid {
    border-color: #dc3545;
}

.dct-module-radio-row .dct-module-radio > .custom-control-label {
    font-family: Pretendard, serif;
    font-weight: 400;
    font-size: 14px;
    color: #222222;
}

/* 고른 선택지는 상자째 민트로 채운다.
   :has() 로 체크 상태를 바로 읽되, 스크립트로 .active 를 붙여도 같게 보이도록 규칙을 나눠 둔다
   (선택자 목록에 :has() 를 섞으면 못 읽는 브라우저에서 규칙 전체가 무시된다) */
.dct-module-radio-row .dct-module-radio.active {
    border-color: #00CE90;
    background: #E8FBF4;
}

.dct-module-radio-row .dct-module-radio:has(> input:checked) {
    border-color: #00CE90;
    background: #E8FBF4;
}

.dct-module-radio-row .dct-module-radio.active > .custom-control-label {
    color: #00CE90;
    font-weight: 600;
}

.dct-module-radio-row .dct-module-radio:has(> input:checked) > .custom-control-label {
    color: #00CE90;
    font-weight: 600;
}

/* 검사 결과 : 모듈은 행 단위로 놓이고, 우/좌로 나뉘면 한 행에 col-6 두 개가 된다.
   기본 .row 여백(-15px)은 카드 안에서 어긋나 보여 8px 로 좁혀 좌우 끝을 맞춘다 */
.dct-module-row {
    margin-left: -8px;
    margin-right: -8px;
}

.dct-module-row > [class^="col-"] {
    padding-left: 8px;
    padding-right: 8px;
}

/* 마지막 모듈 아래 여백은 감싸는 CRF 항목 카드가 갖는다 */
.dct-module-container > .dct-module:last-child,
.dct-module-container > .dct-module-box:last-child {
    margin-bottom: 0 !important;
}

/* 제목 크기는 담고 있는 순서대로 한 단계씩 작아진다
   검사 결과(20) > CRF 항목(18) > 모듈(16) */
.dct-result-title {
    font-size: 20px;
    font-weight: 700;
}

.dct-crf-title {
    font-size: 18px;
    font-weight: 700;
}

.dct-module > .d-flex > h5 {
    font-size: 16px;
    font-weight: 600;
}

/* 우/좌로 나뉘는 모듈 : 모듈 카드 안에 우안·좌안 칸을 나란히 두고 그 안에 하위 모듈을 담는다 */
.dct-module-side {
    height: 100%;
    padding: 16px;
    border: 1px solid #EEEEEE;
    border-radius: 6px;
    background: #FFFFFF;
}

/* 좌/우 칸 제목은 모듈 안에서 하위 모듈을 이끄는 라벨이라 모듈 제목과 같은 크기로 두되 더 굵게 */
.dct-module-side-title {
    margin-bottom: 16px;
    font-family: Pretendard, serif;
    font-weight: 700;
    font-size: 16px;
    color: #222222;
}

/* 찍지 않은 쪽 칸 : 입력은 disabled 로 막고 보기에도 회색으로 잠근다
   (opacity 로 흐리게 하는 대신 색을 직접 회색으로 눌러 또렷하게 잠긴 티를 낸다) */
.dct-module-side.dct-module-side-locked {
    border-color: #E0E0E0;
    background: #EEEEEE;
}

.dct-module-side.dct-module-side-locked .dct-module {
    border-color: #E0E0E0;
    background: #F5F5F5;
}

.dct-module-side.dct-module-side-locked .dct-module-side-title,
.dct-module-side.dct-module-side-locked h5,
.dct-module-side.dct-module-side-locked label,
.dct-module-side.dct-module-side-locked .form-control,
.dct-module-side.dct-module-side-locked .btn {
    color: #9E9E9E !important;
}

.dct-module-side.dct-module-side-locked .form-control,
.dct-module-side.dct-module-side-locked .btn {
    border-color: #E0E0E0 !important;
    background: #F5F5F5 !important;
}

.dct-module-side.dct-module-side-locked,
.dct-module-side.dct-module-side-locked * {
    cursor: not-allowed;
}

/* 칸 안의 마지막 모듈은 아래 여백을 칸의 안쪽 여백에 맡긴다 */
.dct-module-side > .dct-module:last-child,
.dct-module-side > .dct-module-box:last-child {
    margin-bottom: 0;
}

/* 우/좌 칸이나 하위 모듈을 품는 모듈은 바깥 상자가 곧 그 모듈의 카드라
   안쪽 모듈 본문은 테두리 없이 아래 여백만 갖는다 */
.dct-module-box > .dct-module {
    margin-bottom: 16px;
}

/* 모듈은 어디에 놓이든 카드(테두리)를 유지하고, 그룹 카드 안에 그대로 쌓인다.
   마지막 것만 아래 여백을 없애 감싸는 카드의 안쪽 여백과 겹치지 않게 한다 */
.dct-module-box > .dct-module:last-child,
.dct-module-box > .dct-module-box:last-child,
.dct-module-box > .dct-module-row:last-child {
    margin-bottom: 0;
}

/* 결과 확인 화면 : 입력칸 없이 글로만 보여 준다 (카드 구조는 입력 화면과 같다) */
.dct-result-cell-title {
    margin-bottom: 8px;
    font-family: Pretendard, serif;
    font-weight: 600;
    font-size: 15px;
    color: #222222;
}

/* DCT 검사 완료 항목 : 체크 표시와 항목명을 한 줄에 하나씩 쌓는다 (portal/report/report_result) */
.dct-exam-done-item {
    display: flex;
    align-items: center;
    font-family: Pretendard, serif;
    font-weight: 400;
    font-size: 14px;
    color: #222222;
}

.dct-exam-done-item + .dct-exam-done-item {
    margin-top: 8px;
}

/* ion-icon 은 font-size 로 크기를 잡으면 flex 안에서 접히는 경우가 있어 width/height 를 직접 준다 */
.dct-exam-done-item > ion-icon {
    flex: none;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    color: #00CE90;
}

/* 시행하지 않은 항목 : 같은 체크 모양을 두고 체크와 항목명을 회색으로 바꾼다 */
.dct-exam-done-item.off {
    color: #9E9E9E;
}

.dct-exam-done-item.off > ion-icon {
    color: #BDBDBD;
}

.dct-result-row {
    display: flex;
    align-items: baseline;
    margin-bottom: 4px;
}

.dct-result-label {
    flex: none;
    min-width: 160px;
    margin-right: 12px;
    font-family: Pretendard, serif;
    font-weight: 400;
    font-size: 14px;
    color: #757575;
}

.dct-result-text {
    font-family: Pretendard, serif;
    font-weight: 600;
    font-size: 14px;
    color: #222222;
    word-break: break-word;
    /* 사례 설명처럼 여러 줄로 입력한 값은 줄바꿈을 그대로 보여 준다
       (한 줄 값에는 영향이 없다) */
    white-space: pre-wrap;
}

/* 모듈 안의 여러 줄 입력 (사례 설명 등) */
.dct-module-textarea {
    height: auto !important;
    min-height: 96px;
    resize: vertical;
}

/* 파일 첨부 : 고른 파일 타일과 [추가] 타일을 한 줄에 늘어놓는다 */
.dct-module-upload-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.btn.dct-module-upload-add {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 200px;
    height: 150px;
    padding: 0 !important;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    background: #FFFFFF;
    color: #9E9E9E;
    font-family: Pretendard, serif;
    font-weight: 400 !important;
    font-size: 14px !important;
}

/* 잠긴 칸에서는 눌리지 않으니 마우스를 올려도 색이 바뀌지 않는다 */
.btn.dct-module-upload-add:not(:disabled):hover {
    border-color: #00CE90;
    color: #00CE90;
}

.btn.dct-module-upload-add ion-icon {
    margin-bottom: 4px;
    font-size: 24px;
}

/* 붙인 이미지 타일 : 추가 타일과 같은 크기로 옆에 쌓인다 */
.dct-module-upload-item {
    position: relative;
    flex: none;
    width: 200px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    background: #000000;
}

.dct-module-upload-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 결과 확인의 이미지는 눌러서 크게 볼 수 있다 (a 태그로 그린다) */
a.dct-module-upload-item {
    display: block;
    cursor: zoom-in;
}

a.dct-module-upload-item:hover img {
    opacity: 0.85;
}

/* 파일명은 사진 위에 겹쳐 보여 주므로 아래쪽을 어둡게 깔아 준다 */
.dct-module-upload-name {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 16px 12px 10px 12px;
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75));
    color: #FFFFFF;
    font-family: Pretendard, serif;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dct-module-upload-del {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    color: #FFFFFF;
    cursor: pointer;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6));
}

/* 검사 필요 항목 (결과 입력 상세 - DCT) : 시행한 검사를 체크한다
   icheck 쪽 [class*="icheck-"] 가 padding-left:0 을 걸어 두는데 afternoon.css 보다 늦게 읽히므로
   클래스를 하나 더 붙여(0,2,0) 이겨 둔다. 체크박스는 label 왼쪽에 붙어 그려져 왼쪽 여백이 곧 간격이다. */
.icheck-afternoon.dct-exam-item {
    position: relative;
    padding: 10px 44px 10px 16px;
    margin: 0 0 8px 0 !important;
    border: 1px solid #EEEEEE;
    border-radius: 6px;
}

/* 직접 추가한 항목만 지울 수 있다 */
.dct-exam-del {
    position: absolute;
    top: 50%;
    right: 16px;
    margin-top: -8px;
    font-size: 16px;
    color: #9E9E9E;
    cursor: pointer;
}

.dct-exam-del:hover {
    color: #FF3E3E;
}

/* 검사 항목 직접 추가 줄 : 입력칸이 카드 가로를 꽉 채우고 버튼만 오른쪽에 붙는다 */
.dct-exam-add {
    display: flex;
    align-items: center;
}

.dct-exam-add .form-control {
    flex: 1 1 auto;
    min-width: 0;
}

.dct-exam-add .btn {
    flex: none;
    height: 42px !important;
    margin-left: 8px;
}

.icheck-afternoon.dct-exam-item:last-child {
    margin-bottom: 0 !important;
}

/* 체크박스와 항목명 사이를 16px 띄운다.
   icheck 는 label 을 29px 밀고 그 앞(-29px)에 22px 짜리 체크박스를 그려 7px 만 남긴다.
   22(체크박스) + 16(간격) = 38 으로 둘을 함께 옮겨야 간격만 벌어진다.
   (padding-left 는 icheck 가 !important 로 잡고 있어 같이 맞선다) */
.icheck-afternoon.dct-exam-item > label {
    padding-left: 38px !important;
    font-size: 14px;
    color: #222222;
}

.icheck-afternoon.dct-exam-item > input:first-child + label::before {
    margin-left: -38px;
}

/* 요청 검사 항목 (예약 상세 - 확정) : '예약항목:' 같은 라벨은 보통 글씨, 값만 굵게
   (.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;
}

/* 안내자료 줄은 문구 옆에 [연구 정보 보기] 버튼이 붙는다.
   버튼을 인라인으로 두고 vertical-align 으로 맞추면 글꼴·줄높이 차이로 살짝 어긋나므로
   줄 자체를 flex 로 만들어 문구와 버튼의 세로 가운데를 맞춘다.
   (감출 때 쓰는 .d-none 은 display:none !important 라 이 규칙보다 우선한다) */
.form-group > p.dct-research-file-line {
    display: flex;
    align-items: center;
}

.form-group > p.dct-research-file-line > .research-info-btn {
    margin-left: 4px;
}

/* 검사 기한 : 날짜는 붉게, '부터'/'까지' 는 굵은 검정으로
   (위쪽 .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-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
}

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

/* 의뢰 변경으로 열렸을 때 제목 옆에 붙는 안내 (기존 의뢰가 취소된다는 뜻) */
.clinic-request-title-desc {
    margin-left: 12px;
    font-family: Pretendard, serif;
    font-weight: 500;
    font-size: 13px;
    color: #FF5B5B;
}

.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 {
    flex: 0 0 116px;
    color: #616161;
}

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

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

/* 이전 방문 정보 · 이전 검사일 (대상자 번호와 한 덩어리로 보이도록 위 칸의 밑줄을 대신 받는다) */
.clinic-request-subject.no-border {
    padding-bottom: 0;
    border-bottom: 0;
}

.clinic-request-prev {
    padding-bottom: 20px;
    margin-top: 10px;
    border-bottom: 1px solid #EEEEEE;
    font-size: 15px;
}

.clinic-request-prev-row {
    display: flex;
    align-items: center;
}

.clinic-request-prev-row + .clinic-request-prev-row {
    margin-top: 8px;
}

.clinic-request-prev-label {
    flex: 0 0 116px;
    color: #616161;
}

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

.clinic-request-prev-value {
    font-weight: 500;
    color: #222222;
}

.clinic-request-prev-divider {
    margin: 0 10px;
    color: #E0E0E0;
}

.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;
}

/* ============================================================
   Portal - DCT CRF 일괄 출력 모달 (portal/report/report_list)
   기간을 정하고 연구를 골라 CRF 를 한 번에 뽑는다
   ============================================================ */
#dct_print_all_modal .modal-body {
    padding-top: 0;
}

#dct_print_all_modal .dct-print-label {
    font-family: Pretendard, serif;
    font-weight: 700;
    font-size: 16px;
    color: #222222;
}

#dct_print_all_modal .dct-print-desc {
    font-size: 14px;
    color: #757575;
}

/* 연구가 많아지면 표 안에서만 스크롤한다 (모달이 화면 밖으로 자라지 않게) */
#dct_print_all_modal .dct-print-table-wrap {
    max-height: 320px;
    overflow-y: auto;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
}

#dct_print_all_modal .dct-print-table {
    margin: 0;
}

#dct_print_all_modal .dct-print-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    border-top: 0;
    border-bottom: 1px solid #E0E0E0;
    background: #EEEEEE;
    font-weight: 600;
    font-size: 14px;
    color: #222222;
    vertical-align: middle;
}

#dct_print_all_modal .dct-print-table td {
    border-top: 0;
    border-bottom: 1px solid #E0E0E0;
    font-size: 14px;
    color: #222222;
    vertical-align: middle;
}

#dct_print_all_modal .dct-print-table tr:last-child td {
    border-bottom: 0;
}

/* 기간 내 뽑을 CRF 가 없는 연구 (고를 수 없다)
   바탕은 잠긴 체크박스 테두리(#D3CFC8 을 65% 로 흐린 색)보다 연하게 둬서
   '고를 수 없는 줄' 이라는 것만 알려 주고 글씨를 가리지 않는다 */
#dct_print_all_modal .dct-print-row-empty td {
    background: #FDFDFD;
    color: #9E9E9E;
}

/* 체크박스만 있는 칸이라 label 이 자리를 차지하지 않게 둔다 */
#dct_print_all_modal .dct-print-table .icheck-afternoon {
    display: inline-block;
}

#dct_print_all_modal .dct-print-table .icheck-afternoon > label {
    min-height: 22px;
    padding-left: 22px;
}

/* 참여 중인 연구가 하나도 없을 때 자리에 들어가는 안내 */
#dct_print_all_modal .dct-print-empty {
    padding: 16px;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.7;
    color: #222222;
}

#dct_print_all_modal .modal-footer {
    padding-top: 0;
}

#dct_print_all_modal #dct_print_all_submit_btn:disabled {
    background: #E0E0E0;
    border-color: #E0E0E0;
    color: #FFFFFF;
}

/* ============================================================
   Portal - DCT 의뢰의 연구 담당자 (portal/reserve/reserve_detail)
   예약자 정보의 실시 기관 아래에 PI · CRC 를 한 줄씩 둔다
   ============================================================ */
.dct-research-user {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-family: Pretendard, serif;
    font-size: 14px;
    color: #222222;
}

.dct-research-user + .dct-research-user {
    margin-top: 6px;
}

/* PI / CRC 는 짧아서 그냥 두면 이름이 들쭉날쭉해 폭을 맞춰 둔다 */
.dct-research-user-auth {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 22px;
    margin-right: 8px;
    padding: 0 8px;
    border-radius: 6px;
    background: #EEEEEE;
    font-weight: 600;
    font-size: 12px;
    color: #616161;
}

.dct-research-user-department,
.dct-research-user-phone {
    color: #616161;
}

/* 이름 · 진료과목 · 연락처를 가운뎃점으로 잇는다 */
.dct-research-user-department::before,
.dct-research-user-phone::before {
    content: '·';
    margin: 0 6px;
    color: #BDBDBD;
}
