@charset "utf-8";
/* 여기 아래에 자유롭게 CSS 추가/수정/삭제 해주세요. */

/* 로그인 확인 · 실제 값을 채우기 전에는 시안 예시 값이 보이지 않게 가린다 (assets/js/app/shell.js 가 dw-ready 를 붙임) */
/* 왼쪽 메뉴 · 표의 번호 칸은 visibility: visible 을 직접 갖고 있어 안쪽까지 다 가린다. 뷰어는 #wrapper 없이 .vw 가 틀이다 */
body.is-app:not(.dw-ready) #wrapper,
body.is-app:not(.dw-ready) #wrapper *,
body.is-viewer:not(.dw-ready) .vw,
body.is-viewer:not(.dw-ready) .vw * { visibility: hidden !important; }
/* 가입 신청서 — 학년 표본 · 약관 줄을 고치는 동안 폼만 가린다(왼쪽 그림 · 제목은 그대로) */
body.is-auth:not(.dw-ready) .jn-form,
body.is-auth:not(.dw-ready) .jn-form * { visibility: hidden !important; }

/* hidden 은 칸마다 정한 display 보다 앞선다 */
[hidden] { display: none !important; }

/* 취소된 의뢰 표시 — 시안에 없던 상태 */
.status-tag.is-cancel,
.doc-badge.is-cancel { background: #f1f3f5; color: #868e96; }

/* 판독문 본문 그림(99 문서 Q-273) — 결과 화면에서 판독문 폭을 넘지 않게 */
.doc-prose img { display: block; max-width: 100%; height: auto; margin: 8px 0; }

/* 진행 단계 — 지금 · 반려 칸은 시안(app-doc.css)이 왼쪽 절반만 그려 다음 칸과 사이 줄이 끊긴다. 오른쪽 절반은 남은 줄 색으로 잇는다 */
.doc-steps li.is-now:not(:last-child)::before { right: 0; background: linear-gradient(to right, var(--color-point) 50%, var(--color-line) 50%); }
.doc-steps li.is-reject:not(:last-child)::before { right: 0; background: linear-gradient(to right, var(--color-error) 50%, var(--color-line) 50%); }

/* 반려 사유 · 교수 코멘트(report.js reviewNotes) · 비교 뒤 이전 검사 — 시안에 없던 칸이라 앞 칸(키 이미지 등)과 띄운다 */
.notice.dw-review-note { margin-block: 16px; }
.dw-compare + .doc-sec, .tab-panel + .doc-sec { margin-top: 32px; }
/* 이전 버전 보기 — 고르기 상자 아래에 비교 */
.dw-versions select { margin-top: 12px; max-width: 100%; }

/* 본문 에디터 칸 */
.dw-editor-area { min-height: 240px; overflow: auto; outline: none; }
.dw-editor-area:empty::before { content: attr(data-placeholder); color: #adb5bd; }
.dw-editor-area img { max-width: 100%; height: auto; cursor: pointer; }
.dw-editor-area img.is-picked { outline: 2px solid var(--color-point); outline-offset: 1px; }
.dw-editor-area :is(h2, h3, h4) { margin: 16px 0 6px; font-weight: var(--font-weight-bold); line-height: 1.5; }
.dw-editor-area h2 { font-size: 22px; }
.dw-editor-area h3 { font-size: 19px; }
.dw-editor-area h4 { font-size: 17px; }
.dw-editor-area blockquote { margin: 12px 0; padding: 4px 0 4px 14px; border-left: 3px solid var(--color-line); color: var(--color-text-sub); }
.dw-editor-area :is(ul, ol) { padding-left: 22px; }
.dw-editor-area ul { list-style: disc; }
.dw-editor-area ol { list-style: decimal; }
.dw-editor-area a { color: var(--color-point); text-decoration: underline; }
.dw-editor { position: relative; }
/* 도구 줄 — 고른 서식은 눌린 모양, 문단 · 글자 크기는 실제 고르기 상자 */
.edw-tb-btn.is-on { background-color: var(--color-surface); color: var(--color-point); box-shadow: inset 0 0 0 1px var(--color-line); }
.edw-tb-btn:disabled, .dw-tb-sel select:disabled { opacity: .45; cursor: default; }
.dw-tb-sel { position: relative; padding: 0; }
.dw-tb-sel select { height: 100%; padding: 0 28px 0 10px; border: 0; background: transparent; font: inherit; color: inherit; appearance: none; cursor: pointer; }
.dw-tb-sel .ph { position: absolute; right: 9px; pointer-events: none; }
/* 사진 크기 조절 — 누른 사진 위 테두리 · 네 모서리 손잡이 · 폭 표시 · 막대 */
.dw-img-frame { position: absolute; z-index: 5; border: 1px solid var(--color-point); pointer-events: none; }
.dw-img-handle { position: absolute; width: 12px; height: 12px; border: 2px solid #fff; border-radius: 50%; background: var(--color-point); pointer-events: auto; touch-action: none; }
.dw-img-handle.is-nw { left: -7px; top: -7px; cursor: nwse-resize; }
.dw-img-handle.is-ne { right: -7px; top: -7px; cursor: nesw-resize; }
.dw-img-handle.is-sw { left: -7px; bottom: -7px; cursor: nesw-resize; }
.dw-img-handle.is-se { right: -7px; bottom: -7px; cursor: nwse-resize; }
.dw-img-size { position: absolute; right: 6px; bottom: 6px; padding: 2px 6px; border-radius: 4px; background: rgba(0, 0, 0, .65); color: #fff; font-size: 12px; }
.dw-img-bar { position: absolute; left: 0; top: -38px; display: flex; gap: 2px; padding: 3px; border: 1px solid var(--color-line); border-radius: var(--radius-sm); background: var(--color-surface); box-shadow: 0 2px 8px rgba(0, 0, 0, .12); pointer-events: auto; }
.dw-img-bar button { height: 26px; padding: 0 8px; border-radius: 4px; font-size: 12px; color: var(--color-text-sub); }
.dw-img-bar button:hover { background: var(--color-bg-soft); }
.dw-img-frame.is-dragging .dw-img-bar { display: none; }

/* 의뢰서 나이 단위 */
/* 의뢰서 나이 — 년 · 개월 두 칸(시안의 단위 칸 모양 그대로 둘) */
.dw-age { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }




/* ------------------------------------------------------------ */





/* 이 사이트의 반응형 구간입니다. 모바일 먼저 —
   쿼리 밖이 폰이고, 넓어질 때 min-width 로 덮습니다. 작은 순서를 지켜 주세요 */

/* 중간 — 태블릿 세로 · 폰 가로 */
@media screen and (min-width: 600px) {}

/* 넓음 — 태블릿 가로 · PC */
@media screen and (min-width: 840px) {}

/* 넓은 PC */
@media screen and (min-width: 1240px) {}

/* 판독문 — 키 이미지 · 보조자료 · 태그 · 비교 · 이전 검사 */
.dw-file-add { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.dw-attach:empty { display: none; }
/* 진료 태그 입력 추천(report.js attachTags, 99 문서 Q-271) — 입력 칸 아래에 뜨는 목록 */
.dw-tag-add { position: relative; max-width: 360px; margin-top: 8px; }
.dw-tag-add input { width: 100%; }
.dw-tag-suggest { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; right: 0; max-height: 240px; overflow: auto; margin: 0; padding: 4px 0; list-style: none; border: 1px solid var(--color-line); border-radius: var(--radius-md); background: var(--color-surface); box-shadow: 0 6px 16px rgba(0, 0, 0, .08); }
.dw-tag-suggest button { display: block; width: 100%; padding: 8px 12px; border: 0; background: none; text-align: left; font-size: 14px; cursor: pointer; }
.dw-tag-suggest button:hover, .dw-tag-suggest [aria-selected="true"] button { background: var(--color-bg-soft); }
.dw-tag-suggest .is-new { color: var(--color-point); }
.dw-tag-suggest .is-empty { padding: 8px 12px; color: #868e96; font-size: 13px; }
.dw-compare { margin-top: 16px; padding: 12px 16px; border: 1px solid #e3e7ee; border-radius: 8px; background: #fafbfd; }
.dw-compare summary { cursor: pointer; }
.dw-compare-h { margin: 12px 0 4px; font-weight: 700; font-size: 13px; }
.dw-compare-text, .dw-compare-origin { white-space: pre-wrap; word-break: break-word; font-size: 14px; line-height: 1.6; }
.dw-compare-text ins { background: #d9f5e3; text-decoration: none; }
.dw-compare-text del { background: #fde2e2; }
.dw-compare-origin { margin-top: 4px; color: #868e96; font-size: 13px; }
.dw-history { display: flex; flex-direction: column; gap: 6px; }
.dw-history a, .dw-history-row { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid #eef0f4; }
.dw-history-change { margin: 4px 0 0; color: #495057; font-size: 13px; }
.dw-history time { flex: none; color: #868e96; }
.dw-history b { flex: none; }

/* 의뢰 내역 — 취소 카드까지 다섯 칸 */
@media screen and (min-width: 1240px) {
    .list-stats.is-five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* 뷰어를 붙이기 전 안내 */
.vw-stage:has(.vw-wait) { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.vw-wait { color: #fff; text-align: center; }

/* 약관 · 공지 본문 — 글자 그대로 */
.dw-terms-text { white-space: pre-wrap; word-break: break-word; font: inherit; font-size: 13px; line-height: 1.6; max-height: 160px; overflow: auto; margin: 8px 0 0; }
.dw-terms-text.is-full { max-height: none; font-size: 14px; }
#agreeList li { display: block; }
.dw-plain-text { white-space: pre-wrap; word-break: break-word; }

/* 정산 · 통계 — 기준 안내(프리미엄 판독자별, 판독의별, 평균 판독 시간 기록 없음) */
.dw-st-note { padding: 14px 20px; color: #868e96; font-size: 13px; }
/* 통계 — 기간을 직접 고르면 기간 단추를 모두 끈다: 고른 단추 뒤 알약을 감춘다(99 문서 0.23절 Q-204) */
.pill-tabs.dw-none-selected::after { opacity: 0; }

/* 홈 공지 · 소식 — 제목 옆 '공지사항 전체보기' 글자 링크(Q-258). 오른쪽 알약은 거르기만 */
.dw-home-sec-tit { display: flex; align-items: center; gap: 14px; }
.dw-home-notice-all { display: inline-flex; align-items: center; gap: 2px; font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold);
    color: var(--color-point); text-decoration: none; }
.dw-home-notice-all:hover, .dw-home-notice-all:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

/* 공지 목록 — 제목 줄 오른쪽에 전체 건수(+ 관리자 신규등록), 관리자 표 끝에 '로그인 팝업' 스위치 칸 */
.dw-notice-util { align-items: center; }
.dw-notice-guide { margin-bottom: 20px; }
.dw-col-popup { width: 140px; }
/* 줄 전체 링크 덮개(.row-link::after) 위로 — 시안이 .btn · select 에 하는 것과 같게 */
.data-table td .switch { position: relative; z-index: 2; }
/* 공지 로그인 팝업 게시 · 미게시 스위치(시안 .switch) 옆에 지금 상태 글자 — 등록 창 · 목록 표 */
.dw-notice-switch { display: flex; align-items: center; gap: 10px; }
.dw-notice-switch-txt { font-size: var(--font-size-md); font-weight: var(--font-weight-semibold); color: var(--color-text); }

/* 공지 상세 — Article 틀은 본문을 720 폭 가운데로 모은다. 공지는 짧은 글이라 제목과 같은 왼쪽 줄에 맞춘다 */
.dw-notice-view .post-paper > .post-body { max-width: none; margin-left: 0; margin-right: 0; }

/* 관리자 화면(admin-*.html 의 <html data-fluid>)은 업무 화면의 1024 최소 폭(common.css)에서 뺀다 — 창 폭에 맞추고,
   숫자 카드 줄 · 표는 시안의 좁은 화면 규칙을 따른다(2026-11-11 사용자). 폰 · 태블릿은 viewport width=1024 그대로 */
html:root[data-fluid]:has(> body.is-app) { min-width: 0; }

/* 「지연」 꼬리표 — 판독 목록 · 의뢰 관리 · 관리자 의뢰 상세는 상태 옆(dwUi.lateTag), 검수함은 상태 자체(99 문서 0.23절 Q-205).
   상태 꼬리표는 글자만이라, 눈에 띄게 연한 빨강의 작은 알약으로 */
.status-tag.dw-late {
    display: inline-flex;
    align-items: center;
    height: 18px;
    margin-left: 4px;
    padding: 0 6px;
    border: 1px solid var(--color-red-200);
    border-radius: var(--radius-pill);
    background-color: var(--color-red-50);
    font-size: 0.688rem; /* 11 — 시안의 작은 꼬리표(common.css)와 같다 */
    font-weight: var(--font-weight-bold);
    line-height: 1;
    color: var(--color-error);
    vertical-align: middle;
}
/* 목록의 상태 칸은 한 줄 · 말줄임이라 둘째 줄에. 검수함은 「지연」이 상태 자체라 첫 줄에 그대로 */
.is-state .status-tag.dw-late { display: flex; width: fit-content; margin: 4px 0 0; }
.is-state .status-tag.dw-late:first-child { margin: 0; }
/* 판독이 시작돼 수정 · 취소가 막힌 병원 의뢰 상세 — 안내와 대표 전화(hospital-detail.js) */
.dw-lock-note { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: var(--font-size-sm); color: var(--color-text-sub); }
.dw-lock-note a { font-weight: var(--font-weight-bold); color: var(--color-point); }
/* 공지 이미지형(Q-259) 사진 — 상세(본문 위) · 등록 창 미리보기 · 로그인 전 팝업이 같은 테두리를 쓴다. 넓이 한도는 base.css img 가 이미 100% */
.dw-notice-img img, .dw-notice-edit-img, .dw-npop-img { display: block; border: 1px solid var(--color-line); }
.dw-notice-img { margin: 0 0 24px; }
.dw-notice-img img { height: auto; border-radius: var(--radius-lg); }
.dw-notice-edit-img { align-self: flex-start; max-height: 240px; margin-top: 10px; border-radius: var(--radius-md); }

/* 로그인 전 공지 팝업 — 카드 한 장(참고: 도향 팝업). 위 로고 · '공지' 표, 내용, 넘김, 아래 '오늘 하루 열지 않기 | 닫기' */
body.dw-npop-open { overflow: hidden; }
.dw-npop { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.dw-npop-dim { position: absolute; inset: 0; background: rgba(15, 23, 42, .55); }
.dw-npop-card { position: relative; width: min(440px, 100%); max-height: calc(100dvh - 32px); display: flex; flex-direction: column;
    border-radius: 20px; background: linear-gradient(180deg, var(--color-point-soft) 0, var(--color-surface) 160px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, .28); outline: none; }
.dw-npop-x { position: absolute; top: -12px; right: -12px; z-index: 2; display: grid; place-items: center; width: 36px; height: 36px;
    border-radius: 50%; background: #6b7280; color: #fff; font-size: 18px; box-shadow: 0 4px 12px rgba(0, 0, 0, .2); }
.dw-npop-x:hover { background: #4b5563; }
.dw-npop-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px 0; }
.dw-npop-logo { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--color-text); }
.dw-npop-logo img { width: 28px; height: auto; }
.dw-npop-badge { padding: 5px 12px; border-radius: 999px; background: var(--color-point); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.dw-npop-slider { width: 100%; min-height: 0; overflow: hidden; }
.dw-npop-slide { box-sizing: border-box; padding: 22px 26px 8px; }
.dw-npop-date { color: var(--color-point); font-size: 13px; font-weight: 600; }
.dw-npop-tit { margin-top: 6px; font-size: 24px; font-weight: 800; line-height: 1.35; letter-spacing: -.02em; color: var(--color-text); word-break: keep-all; overflow-wrap: anywhere; }
/* 본문 · 사진 설명은 글자 그대로(줄바꿈 유지) */
.dw-npop-body, .dw-npop-note { white-space: pre-wrap; word-break: keep-all; overflow-wrap: anywhere; color: var(--color-text-sub); }
.dw-npop-body { margin-top: 14px; max-height: 42dvh; overflow-y: auto; font-size: 15px; line-height: 1.75; }
.dw-npop-pager { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 10px 0 6px; }
.dw-npop-pager button { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--color-line); background: var(--color-surface); color: var(--color-text-sub); }
.dw-npop-dots { display: flex; gap: 6px; width: auto !important; }
.dw-npop-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--color-line); cursor: pointer; transition: width .2s; }
.dw-npop-dot.is-on { width: 22px; background: var(--color-point); }
.dw-npop-img { width: 100%; max-height: 52dvh; margin-top: 16px; border-radius: 14px; object-fit: contain; background: var(--color-surface); }
.dw-npop-note { margin-top: 10px; font-size: 14px; line-height: 1.65; }
.dw-npop-foot { display: grid; grid-template-columns: 1fr 1fr; margin-top: 16px; border-top: 1px solid var(--color-line); }
.dw-npop-foot button { height: 52px; font-size: 14px; color: var(--color-text-sub); }
.dw-npop-foot button + button { border-left: 1px solid var(--color-line); font-weight: 700; color: var(--color-text); }
.dw-npop-foot button:hover { background: var(--color-bg-soft); }
.dw-npop-foot button:first-child { border-bottom-left-radius: 20px; }
.dw-npop-foot button:last-child { border-bottom-right-radius: 20px; }

/* 관리자 보기(Q-263) — 의뢰 · 판독 화면 맨 위 안내(시안 .notice.state-ing). 의뢰 화면은 오른쪽에 볼 병원 고르기 */
.dw-view-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 20px; font-size: var(--font-size-md); }
.dw-view-bar .basic-select { --input-height: var(--input-height-sm); width: auto; min-width: 200px; margin: 0 0 0 auto; }
