a {
    text-decoration: none;
}

/* 로그인 폼 너비 확장 (Phoenix 기본값이 너무 좁음) */
.auth-card .auth-form-box {
    max-width: 24rem !important;
}

/* HTMX 동적 콘텐츠로 스크롤바 나타남/사라짐 시 레이아웃 흔들림 방지 */
html {
    scrollbar-gutter: stable;
}

/* 전체화면 모달(행낭스캔 등)에서는 scrollbar-gutter 비활성화 */
html:fullscreen {
    scrollbar-gutter: auto;
}

/*
 * 모달 열릴 때 페이지 밀림 방지
 * ─────────────────────────────
 * scrollbar-gutter:stable이 html에 적용되어 스크롤바 공간이 항상 확보됨.
 * Bootstrap 5 모달은 body에 overflow:hidden + padding-right를 inline으로 추가하는데,
 * scrollbar-gutter가 이미 공간을 확보하고 있으므로 padding-right가 중복 → 콘텐츠 밀림.
 * 해결: modal-open 상태에서 padding-right를 0으로 강제.
 */
body.modal-open {
    padding-right: 0 !important;
}

/*
 * 모달 내부 리스트/테이블 컨테이너 border-radius 제거
 * ─────────────────────────────────────────────────
 * 모달 내부에서 배경색이 있는 컨테이너에 border-radius가 적용되면
 * 모서리에 하얀 틈이 보이는 문제 발생.
 * modal-body 하위의 모든 border/bg 컨테이너에서 일괄 제거.
 */
.modal .modal-body [class*="border"][class*="bg-"] {
    border-radius: 0 !important;
}

/* prettier-ignore */
.mt-3-5 {
    margin-top: 3.5px !important;
}

.check-column {
    width: 10px;
}

:root[data-navbar-horizontal-shape=slim] .navbar-nav-icons .nav-item {
    min-width: 28px;
}

/* 상단 바 오른쪽 아이콘 줄(테마·다운로드·메신저·즐겨찾기·사용자) — 늘 한 줄, 줄지 않는다.
   예전에는 줄바꿈·줄어듦을 허용해서, 메뉴가 긴 계정(관리자: 대메뉴 7 + 바코드관리·수거스캔)은 1200~1599px 에서 아이콘이
   한 칸씩 세로로 쌓여 바가 150px(1280·1366)·92px(1440)이 됐고, 바가 고정이라 본문 첫 줄(경로·버튼·검색창)을 덮었다.
   자리가 모자라면 아래 '좁은 화면' 규칙이 메뉴를 좁히고, 그래도 넘치면 메뉴가 다음 줄로 내려간다(본문은 바 높이를 따라 내려간다 — menu_layout) */
.navbar-nav-icons {
    flex-grow: 0;
    flex-wrap: nowrap;
    flex-shrink: 0;
    justify-content: flex-end; /* keep action icons grouped near the profile dropdown */
    gap: 0.5rem;
    align-items: center;
    margin-left: auto;
    flex-basis: auto;
    position: relative;
    z-index: 1040;
}

/* 상단 바의 대메뉴 — 넘치면 아이콘 줄을 밀지 않고 메뉴끼리 다음 줄로(가운데 맞춤). 지금 메뉴는 아래 좁힘으로 한 줄에 든다 */
@media (min-width: 1200px) {
    #navbarTopCollapse {
        min-width: 0;
    }

    #navbarTopSlim .navbar-nav-top {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* 1200~1599px(1366 노트북 등): 메뉴 글자 앞의 같은 모양 아이콘(모든 대메뉴가 똑같은 uil-document-layout-right — 뜻이 없다)을 빼고
   좌우 여백을 18/24px → 8/8px 로 줄여 한 줄에 둔다. 1600px 이상은 예전 그대로 */
@media (min-width: 1200px) and (max-width: 1599.98px) {
    #navbarTopSlim .navbar-nav-top .nav-link {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    #navbarTopSlim .navbar-nav-top .nav-link > .uil {
        display: none;
    }
}

.navbar-nav-icons .nav-item {
    flex: 0 0 auto;
}

.navbar-nav-icons .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    border: 1px solid transparent;
}

.navbar-nav-icons .nav-link:hover,
.navbar-nav-icons .nav-link:focus {
    border-color: var(--phoenix-border-color);
}

.navbar-nav-icons .dropdown-menu {
    z-index: 1050;
}

/* ===== 키보드 초점 고리 — 직원·기공소 화면(Phoenix) =====
   Phoenix 는 버튼의 초점 표시를 꺼 두었다(outline 0, --phoenix-btn-focus-box-shadow 의 퍼짐 0) — Tab 으로 옮겨도 어느 버튼에 있는지
   보이지 않았다(WCAG 2.4.7, '+ 새 대화'·모달 '취소'·화면 머리 버튼 전부). 메뉴·탭 글자 링크는 25% 옅은 번짐뿐이라 어두운 상단 바에서
   1.3:1, 흰 바탕에서 1.4:1 로 거의 보이지 않았다.
   키보드로 옮겼을 때만(:focus-visible) Phoenix 주색 2px 고리 — 마우스로 누를 때는 예전 그대로다. 모양은 이 앱의 다른 고리와 같다
   (메신저 eds-chat.css·의뢰서 칩 dental.css 의 '2px solid 주색'). 테마가 어두워도 주색 변수를 따른다.
   자리: 버튼·닫기(X)·페이지 번호·탭 링크는 바깥 2px(파랑·빨강으로 칠한 버튼 위에서도 보이게). 고정 상단 바의 메뉴 링크와 펼친 메뉴의 항목은
   안쪽 -2px(바는 화면 맨 위에 붙어 바깥 고리가 잘리고, 메뉴 항목은 메뉴 폭을 다 쓴다). 상단 바 오른쪽 아이콘(다운로드·메신저·즐겨찾기·사용자)과
   휴대폰 메뉴 항목은 초점 때 둥근 테두리·흰 글자가 이미 보여 그대로 둔다.
   치과 화면(body.dental-page)은 dental_layout 의 dentalFocusStyle 이 따로 그리므로 뺀다 — 고리가 두 겹이 되지 않게 */
:where(body:not(.dental-page)) :is(.btn, .btn-close, .page-link, .nav-link):focus-visible {
    outline: 2px solid var(--phoenix-primary, #3874ff);
    outline-offset: 2px;
}

:where(body:not(.dental-page)) :is(.btn-close, .page-link, .nav-link):focus-visible {
    box-shadow: none; /* 옅은 번짐 대신 고리 하나 */
}

/* 펼침 목록(아코디언)의 머리 단추 — Phoenix 가 .accordion-button:focus 에 outline 0 과 투명한 번짐을 주어, 공지사항(w540) 같은 화면에서
   Tab 으로 옮겨도 어느 공지에 있는지 보이지 않았다(.btn 이 아니라 위 고리도 닿지 않았다). 같은 2px 주색 고리 */
:where(body:not(.dental-page)) .accordion-button:focus-visible {
    outline: 2px solid var(--phoenix-primary, #3874ff);
    outline-offset: 2px;
    box-shadow: none;
}

:where(body:not(.dental-page)) :is(#navbarTopSlim .navbar-nav-top .nav-link, .dropdown-item, .dropdown-profile .nav-link):focus-visible {
    outline: 2px solid var(--phoenix-primary, #3874ff);
    outline-offset: -2px;
}

:where(body:not(.dental-page)) :is(.navbar-nav-icons > .nav-item > .nav-link, #mobileOffcanvas .nav-link):focus-visible {
    outline: none;
}

/* Tab 으로 옮긴 칸이 고정 상단 바 밑으로 들어가지 않게(WCAG 2.4.11) — 화면이 스크롤될 때 바 높이(--eds-topbar-h, menu.html 이 잰다)만큼 띄운다 */
html:has(#navbarTopSlim) {
    scroll-padding-top: calc(var(--eds-topbar-h, 52px) + 8px);
}

/* 관리자·매니저 화면의 '치과 카드'(m610~m640 — 눌러서 고르는 카드).
   치과 화면(body.dental-page)은 이 이름을 쓰지 않는다 — 치과 업무 상자는 .dental-box(dental_layout)다. 혹시 치과 화면에 이 이름이
   들어가도 손가락 커서·hover 그림자로 누를 수 있는 것처럼 보이지 않게 치과 화면은 뺀다.
   :where 로 감싸 우선순위는 예전 그대로(.m610-card.clicked .dental-card 가 hover 를 이긴다) */
:where(body:not(.dental-page)) .dental-card {
    border: 1px solid var(--phoenix-border-color);
    border-radius: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

:where(body:not(.dental-page)) .dental-card:hover,
:where(body:not(.dental-page)) .dental-card:focus-within {
    border-color: hsl(0 0% 85%);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.dental-card [data-feather] {
    width: 16px;
    height: 16px;
}

.dental-address-line {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.m610-card.clicked .dental-card,
.m630-card.clicked .dental-card,
.m640-card.clicked .dental-card {
    border-color: var(--phoenix-primary);
    box-shadow: 0 1rem 1.75rem rgba(15, 23, 42, 0.12);
    transform: translateY(-3px);
}

.m630-card-sentinel,
.m640-card-sentinel {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent;
    border: none;
    box-shadow: none;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.m630-sentinel-indicator,
.m640-sentinel-indicator {
    opacity: 0;
    transition: opacity 0.2s ease;
    width: 1.5rem;
    height: 1.5rem;
}

.m630-sentinel-indicator.htmx-request,
.m640-sentinel-indicator.htmx-request {
    opacity: 1;
}

@media (max-width: 1199.98px) {
    .navbar-nav-icons {
        justify-content: flex-end;
        gap: 0.25rem;
        padding: 0.2rem 0;
    }

    .navbar-nav-icons .nav-item {
        scroll-snap-align: initial;
    }
}



#navbarDropdownUser + .dropdown-menu {
    min-width: 300px; /* 드롭다운 메뉴의 최소 너비를 300px로 설정 */
}

.pageGroup .page-link {
    min-width: 35px; /* 페이지 링크의 최소 너비 설정 */
    text-align: center; /* 텍스트 가운데 정렬 */
    display: inline-block; /* 인라인 블록 요소로 설정하여 너비를 적용 */
}

.table > tbody > tr > td:first-child {
    padding-left: 5px; /* 테이블 셀의 좌측 패딩 설정 */
}

.table > tbody > tr > td:last-child {
    padding-right: 5px; /* 테이블 셀의 우측 패딩 설정 */
}

.table > thead > tr > th:last-child {
    padding-right: 5px; /* 테이블 셀의 우측 패딩 설정 */
}

.table-responsive {
    /*width: 100%;*/
    overflow-x: auto; /* 내용이 넘치 경우 수평 스크롤바 생성 */
    overflow-y: scroll; /* 항상 스크롤바 공간 확보 — 데이터 변경 시 레이아웃 밀림 방지 */
    flex-grow: 1;
}

/* 테이블 스크롤바: 항상 6px 공간 확보(컬럼 밀림 방지), 호버시 thumb 표시 */
.table-responsive.scrollbar::-webkit-scrollbar {
    width: 6px;
    background: transparent;
}

.table-responsive.scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.table-responsive.scrollbar::-webkit-scrollbar-thumb {
    background-color: transparent;
    border-radius: 3px;
}

.table-responsive.scrollbar:hover::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
}

.table-responsive-with-pagination {
    min-height: calc(100vh - 285px) !important;
    max-height: calc(100vh - 285px) !important;
}

.table-responsive-with-pagination2 {
    min-height: calc(100vh - 330px) !important;
    max-height: calc(100vh - 330px) !important;
}

.table-responsive-with-date-filter {
    min-height: calc(100vh - 250px) !important;
    max-height: calc(100vh - 250px) !important;
}

.f205-table-scroll {
    min-height: calc(100vh - 380px) !important;
    max-height: calc(100vh - 380px) !important;
}

.table-responsive-split-layout {
    min-height: calc(100vh - 200px) !important;
    max-height: calc(100vh - 200px) !important;
}

.f206-table-scroll {
    min-height: calc((100vh - 365px) / 2) !important;
    max-height: calc((100vh - 365px) / 2) !important;
}

.f206-balance-summary {
    overflow-x: auto;
    white-space: nowrap;
}

.table.table-sm thead th.f206-section-header {
    text-align: left;
    height: 30px !important;
    padding: 5px 10px !important;
    color: var(--phoenix-body-color);
    background-color: var(--phoenix-body-bg) !important;
    border-bottom: 1px solid var(--phoenix-border-color, #cbd0dd) !important;
}

.table-responsive-no-pagination {
    min-height: calc(100vh - 205px) !important;
    max-height: calc(100vh - 205px) !important;
}

.tbody-height-responsive {
    overflow-y: auto; /* 스크롤 필요시에만 표시 */
    flex-grow: 1;
    max-height: 610px;
}

.table-bottom-responsive {
    overflow-x: hidden;
    flex-grow: 1;
    margin-bottom: 10px;
}

.table-pagination-wrapper {
    display: flex;
    flex-direction: column;
    /*justify-content: space-between;*/
    /*min-height: 600px; !* 적절한 최소 높이 설정 *!*/
}

.border-y {
    border-radius: var(--phoenix-border-radius); /* 테두리의 모서리를 둥글게 설정 */
}

.border-x {
    border-radius: var(--phoenix-border-radius); /* 테두리의 모서리를 둥글게 설정 */
}

.modal-body .form-floating > label {
    font-weight: normal; /* 레이블 글자 굵기 조정 */
    color: #6c757d; /* 레이블 글자 색상 조정, 부트스트랩의 기본 회색 사용 */
}

.custom-select-style option {
    font-size: 14px;
    color: #495057;
}

/* 첫 번째 옵션(placeholder 같이 사용되는)만 다르게 스타일링 */
.custom-select-style option:first-child {
    font-size: 14px;
    color: #6c757d;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

#loading {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background-image: url('/assets/img/loading-ab4a2db9a176fff6a3ef6f1b3f33192c.png');
    background-size: cover;
    animation: spin 2s linear infinite;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.15s ease-in-out;
}

.menu-container {
    display: flex;
    justify-content: center;
    transition: width 0.3s ease;
}

.theme-control-toggle-container {
    position: relative;
    width: 80px;
    height: 30px;
}

.theme-control-toggle-slim-custom {
    position: relative;
    top: 6px;
    right: 0;
    transition: right 0.3s ease;
}

.menu-container.loaded + .theme-control-toggle-slim-custom {
    right: 20px;
}

.flatpickr-input-container .custom-height,
select.custom-height {
    height: 38px !important;
    min-height: 38px !important;
}

.btn-group[aria-label="일자 빠른 선택"],
.btn-group[aria-label="기간 빠른 선택"],
.btn-group[aria-label="월 빠른 선택"] {
    height: 38px;
}

.btn-group[aria-label="일자 빠른 선택"] > .btn,
.btn-group[aria-label="기간 빠른 선택"] > .btn,
.btn-group[aria-label="월 빠른 선택"] > .btn {
    display: inline-flex;
    align-items: center;
    height: 38px;
}

/* flatpickr 입력 필드 — 아이콘과 텍스트 겹침 방지 */
.flatpickr-input-container .form-control {
    padding-left: 2.25rem;
}

.clickable-row {
    cursor: pointer;
}

.clickable-row:hover {
    background-color: var(--phoenix-gray-300) !important;
}

/* 어두운 테마 — Phoenix 는 회색 단계를 뒤집는다(gray-700 = #8a94ad 밝은 회색, gray-100 = #222834 짙은 회색).
   예전엔 그 둘로 '밝은 바탕 + 짙은 글자'(3.9:1)가 됐다. 라이트와 같은 gray-300(다크에선 #373e53 — 줄무늬 행보다 한 단계 밝다)
   바탕 + 가장 밝은 글자로 */
[data-bs-theme="dark"] .clickable-row:hover {
    background-color: var(--phoenix-gray-300) !important;
    color: var(--phoenix-emphasis-color) !important;
}

[data-bs-theme="dark"] .clickable-row:hover td {
    color: var(--phoenix-emphasis-color) !important;
}

input[type="text"],
textarea {
    ime-mode: active;
}

.col-md-5_6 {
    flex: 0 0 auto;
    width: calc(80% / 12)
}


/* 모바일에서 토스트가 화면 밖으로 삐져나가는 문제 수정 */
#okToastContainer,
#errorToastContainer {
    max-width: calc(100vw - 1rem);
}
#okToastContainer .toast,
#errorToastContainer .toast {
    max-width: calc(100vw - 2rem);
}

#toastContainer .toast {
    transition: opacity 0.3s, transform 0.3s;
    transform: translateY(100%);
    opacity: 0;
}

#toastContainer .toast.show {
    transform: translateY(0);
    opacity: 1;
}

#toastContainer .toast.hiding {
    transition: opacity 0.3s, transform 0.3s;
    transform: translateY(100%);
    opacity: 0;
}

.button-wrapper {
    min-height: 34px;
}

:root {
    --table-header-height: 32.27px;
    --table-cell-height: 38.22px;
}

.table-custom-height-f541,
.table-custom-height-f542,
.table-custom-height-f545 {
    table-layout: fixed;
}

.table-custom-height-f541 th,
.table-custom-height-f541 td {
    width: 50px; /* 또는 원하는 너비 */
}

.table-custom-height-f542 th,
.table-custom-height-f542 td {
    width: 120px;
}

.table-custom-height-f545 th,
.table-custom-height-f545 td {
    width: 40px;
}

.table-custom-height-f541 th:first-child,
.table-custom-height-f541 td:first-child,
.table-custom-height-f541 th:nth-child(2),
.table-custom-height-f541 td:nth-child(2) {
    width: 150px; /* 기공소, 치과 열의 너비 */
}

.table-custom-height-f542 th:first-child,
.table-custom-height-f542 td:first-child,
.table-custom-height-f542 th:nth-child(2),
.table-custom-height-f542 td:nth-child(2) {
    width: 100px; /* 구분, 구역 열의 너비 */
}

.table-custom-height-f545 th:first-child,
.table-custom-height-f545 td:first-child,
.table-custom-height-f545 th:nth-child(2),
.table-custom-height-f545 td:nth-child(2) {
    width: 100px; /* 구분, 구역 열의 너비 */
}

.table-custom-height-f541 th:nth-child(3),
.table-custom-height-f541 td:nth-child(3) {
    width: 50px; /* 합계 */
}

.table-custom-height-f545 th:nth-child(3),
.table-custom-height-f545 td:nth-child(3) {
    width: 40px; /* 합계 */
}

/* f545: 구분↔구역 사이 세로 구분선 제거 (합계부터만 표시) */
.table-custom-height-f545.table-grid-divider thead th:first-child::before,
.table-custom-height-f545.table-grid-divider tbody td:first-child::before {
    display: none;
}

/* f545: 데이터 셀 내 오전/오후 가로 구분선 (합계~31일) */
.table-custom-height-f545 tbody td:nth-child(n+3) > div:first-child {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 2px;
    margin-bottom: 2px;
}

/* 프로젝트 전체 테이블 헤더/셀 높이 통일 */
.table.table-sm thead th {
    height: var(--table-header-height) !important;
    vertical-align: middle !important;
    padding: 6px 10px !important;
    background-color: var(--phoenix-body-highlight-bg, #f5f7fa) !important;
    border-bottom: 1px solid var(--phoenix-border-color, #cbd0dd) !important;
    font-weight: 600;
}

/* 프로젝트 전체 테이블 td 패딩 — th(6px 10px)와 동일하게 맞춰 텍스트 정렬 통일 */
.table.table-sm tbody td {
    padding: 6px 10px !important;
}

/* f541 오전/오후 셀 레이아웃 */
.f541-day-cell {
    display: flex;
    align-items: stretch;
    gap: 1px;
    height: 100%;
    min-height: 28px;
}

.f541-header-cell {
    font-size: 0.7rem;
    margin-top: 2px;
}

.f541-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 14px;
    font-size: 0.65rem;
    font-weight: 600;
    line-height: 1;
}

.f541-am {
    background-color: #1e293b;
    color: transparent;
}

.f541-pm {
    background-color: #dc3545;
    color: transparent;
}

.f541-empty {
    flex: 1;
    min-width: 14px;
}

.table.table-sm tbody td {
    height: var(--table-cell-height) !important;
    vertical-align: middle !important;
}

/* 공통 체크박스 컬럼 스타일 (체크박스 있는 테이블용) */
.table-checkbox-col thead th:first-child,
.table-checkbox-col tbody td:first-child {
    padding: 2px 0 !important;
    text-align: center;
    width: 30px !important;
    max-width: 30px !important;
}

.table-checkbox-col .form-check {
    padding-left: 0;
    margin-bottom: 0;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.table-checkbox-col .form-check .form-check-input {
    float: none;
    margin-left: 0;
}

.table-checkbox-col .form-check-input {
    margin: 0;
}

/* f522 수거행낭스캔 테이블 스타일 */
.table-custom-height-f522 tbody td {
    vertical-align: middle !important;
    padding: 6px 10px !important;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 0;
    position: relative;
}

.table-custom-height-f522 tbody td::before {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    right: 0;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.06);
    pointer-events: none;
}

.table-custom-height-f522 tbody td:last-child::before {
    display: none;
}

.table-custom-height-f522 thead th {
    position: relative; /* ::before 구분선용, ::after는 테마 sort 아이콘용 */
}

.table-custom-height-f522 thead th::before {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    right: 0;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.08);
    pointer-events: none;
}

.table-custom-height-f522 thead th:last-child::before {
    display: none;
}

.table-custom-height-f522 tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.table-custom-height-f522 tbody tr:hover {
    background-color: var(--phoenix-primary-bg-subtle, #e8f0fe) !important;
}

.table-custom-height-f522 .cell-truncate {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-all;
    line-height: 1.4;
}

.table-custom-height-f522-wrapper {
    overflow-y: auto !important;
}

/* f175 행낭바코드관리 - 기공소 테이블 스타일 */
.table-custom-height-f175 tbody td {
    height: 38px !important;
    vertical-align: middle !important;
    padding: 6px 10px !important;
    position: relative;
}

.table-custom-height-f175 tbody td::before {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    right: 0;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.06);
    pointer-events: none;
}

.table-custom-height-f175 tbody td:last-child::before {
    display: none;
}

.table-custom-height-f175 thead th {
    position: relative; /* ::before 구분선용, ::after는 테마 sort 아이콘용 */
}

.table-custom-height-f175 thead th::before {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    right: 0;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.08);
    pointer-events: none;
}

.table-custom-height-f175 thead th:last-child::before {
    display: none;
}

.table-custom-height-f175 tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.table-custom-height-f175 tbody tr:hover {
    background-color: var(--phoenix-primary-bg-subtle, #e8f0fe) !important;
}

/* f175 행낭바코드관리 - 치과 테이블 스타일 */
.table-custom-height-f175-2 tbody td {
    height: 38px !important;
    vertical-align: middle !important;
    padding: 6px 10px !important;
    position: relative;
}

.table-custom-height-f175-2 tbody td::before {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    right: 0;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.06);
    pointer-events: none;
}

.table-custom-height-f175-2 tbody td:last-child::before {
    display: none;
}

.table-custom-height-f175-2 thead th {
    position: relative; /* ::before 구분선용, ::after는 테마 sort 아이콘용 */
}

.table-custom-height-f175-2 thead th::before {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    right: 0;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.08);
    pointer-events: none;
}

.table-custom-height-f175-2 thead th:last-child::before {
    display: none;
}

.table-custom-height-f175-2 tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.table-custom-height-f175-2 tbody tr:hover {
    background-color: var(--phoenix-primary-bg-subtle, #e8f0fe) !important;
}

/* f175 3컬럼 레이아웃 정렬 */
.f175-layout-row {
    align-items: stretch;
}

.f175-layout-row > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

/* 공통 테이블 그리드 구분선 스타일 (체크박스 없는 테이블용) */
.table-grid-divider tbody td {
    vertical-align: middle !important;
    padding: 6px 10px !important;
    position: relative;
}

.table-grid-divider tbody td::before {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    right: 0;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.06);
    pointer-events: none;
}

.table-grid-divider tbody td:last-child::before {
    display: none;
}

.table-grid-divider thead th {
    position: relative; /* ::before 구분선용, ::after는 테마 sort 아이콘용 — 나머지 속성은 .table.table-sm thead th 유니버설 규칙에서 적용 */
}

.table-grid-divider thead th::before {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    right: 0;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.08);
    pointer-events: none;
}

.table-grid-divider thead th:last-child::before {
    display: none;
}

.table-grid-divider tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.table-grid-divider tbody tr:hover {
    background-color: var(--phoenix-primary-bg-subtle, #e8f0fe) !important;
}

/* f811 사용자관리 테이블 스타일 */
.table-custom-height-f811 tbody td {
    vertical-align: middle !important;
    padding: 6px 10px !important;
    position: relative;
}

.table-custom-height-f811 tbody td::before {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    right: 0;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.06);
    pointer-events: none;
}

.table-custom-height-f811 tbody td:last-child::before {
    display: none;
}

.table-custom-height-f811 thead th {
    position: relative; /* ::before 구분선용, ::after는 테마 sort 아이콘용 */
}

.table-custom-height-f811 thead th::before {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    right: 0;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.08);
    pointer-events: none;
}

.table-custom-height-f811 thead th:last-child::before {
    display: none;
}

.table-custom-height-f811 tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.table-custom-height-f811 tbody tr:hover {
    background-color: var(--phoenix-primary-bg-subtle, #e8f0fe) !important;
}

/* f830 메뉴권한관리 테이블 스타일 */
.table-custom-height-f830 tbody td {
    vertical-align: middle !important;
    padding: 6px 10px !important;
    position: relative;
}

.table-custom-height-f830 tbody td::before {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    right: 0;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.06);
    pointer-events: none;
}

.table-custom-height-f830 tbody td:last-child::before {
    display: none;
}

.table-custom-height-f830 thead th {
    position: relative; /* ::before 구분선용, ::after는 테마 sort 아이콘용 */
}

.table-custom-height-f830 thead th::before {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    right: 0;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.08);
    pointer-events: none;
}

.table-custom-height-f830 thead th:last-child::before {
    display: none;
}

.table-custom-height-f830 tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.table-custom-height-f830 tbody tr:hover {
    background-color: var(--phoenix-primary-bg-subtle, #e8f0fe) !important;
}

.table-custom-height-f830 thead th:first-child,
.table-custom-height-f830 tbody td:first-child {
    padding: 4px 6px !important;
    width: 36px !important;
    max-width: 36px !important;
}

/* f177 기공소관리 테이블 스타일 */
.table-custom-height-f177 tbody td {
    height: 38px !important;
    vertical-align: middle !important;
    padding: 6px 10px !important;
    position: relative;
}

.table-custom-height-f177 tbody td::before {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    right: 0;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.06);
    pointer-events: none;
}

.table-custom-height-f177 tbody td:last-child::before {
    display: none;
}

.table-custom-height-f177 thead th {
    position: relative; /* ::before 구분선용, ::after는 테마 sort 아이콘용 */
}

.table-custom-height-f177 thead th::before {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    right: 0;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.08);
    pointer-events: none;
}

.table-custom-height-f177 thead th:last-child::before {
    display: none;
}

.table-custom-height-f177 tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.table-custom-height-f177 tbody tr:hover {
    background-color: var(--phoenix-primary-bg-subtle, #e8f0fe) !important;
}

/* f171 기공소관리 - 기공소 테이블 스타일 */
.table-custom-height-f171 tbody td {
    vertical-align: middle !important;
    padding: 6px 10px !important;
    position: relative;
}

.table-custom-height-f171 tbody td::before {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    right: 0;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.06);
    pointer-events: none;
}

.table-custom-height-f171 tbody td:last-child::before {
    display: none;
}

.table-custom-height-f171 thead th {
    position: relative; /* ::before 구분선용, ::after는 테마 sort 아이콘용 */
}

.table-custom-height-f171 thead th::before {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    right: 0;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.08);
    pointer-events: none;
}

.table-custom-height-f171 thead th:last-child::before {
    display: none;
}

.table-custom-height-f171 tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.table-custom-height-f171 tbody tr:hover {
    background-color: var(--phoenix-primary-bg-subtle, #e8f0fe) !important;
}

.table-custom-height-f171 thead th:first-child,
.table-custom-height-f171 tbody td:first-child {
    padding: 4px 6px !important;
    width: 36px !important;
    max-width: 36px !important;
}

/* f171 기공소관리 - 치과 테이블 스타일 */
.table-custom-height-f171-2 tbody td {
    vertical-align: middle !important;
    padding: 6px 10px !important;
    position: relative;
}

.table-custom-height-f171-2 tbody td::before {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    right: 0;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.06);
    pointer-events: none;
}

.table-custom-height-f171-2 tbody td:last-child::before {
    display: none;
}

.table-custom-height-f171-2 thead th {
    position: relative; /* ::before 구분선용, ::after는 테마 sort 아이콘용 */
}

.table-custom-height-f171-2 thead th::before {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    right: 0;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.08);
    pointer-events: none;
}

.table-custom-height-f171-2 thead th:last-child::before {
    display: none;
}

.table-custom-height-f171-2 tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.table-custom-height-f171-2 tbody tr:hover {
    background-color: var(--phoenix-primary-bg-subtle, #e8f0fe) !important;
}

.table-custom-height-f171-2 thead th:first-child,
.table-custom-height-f171-2 tbody td:first-child {
    padding: 4px 6px !important;
    text-align: center;
    width: 36px !important;
    max-width: 36px !important;
}

/* 공통 오전/오후 배송수거 스케줄 컬럼 (f161, f171 등) */
.schedule-cell {
    padding: 4px 8px !important;
}

.schedule-row {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.schedule-row-divider {
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
    padding-top: 3px;
    margin-top: 3px;
}

.label-delivery,
.label-pickup {
    display: inline-block;
    font-size: 0.6rem;
    padding: 1px 5px;
    border-radius: 3px;
    font-weight: 600;
    flex-shrink: 0;
    min-width: 24px;
    text-align: center;
}

.label-delivery {
    background-color: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

.label-pickup {
    background-color: rgba(234, 88, 12, 0.1);
    color: #ea580c;
}

.table-custom-height-f502 tbody td {
    height: 70px !important;
    vertical-align: middle !important;
    padding: 6px 10px !important;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 0;
    position: relative;
}

.table-custom-height-f502 tbody td::before {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    right: 0;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.06);
    pointer-events: none;
}

.table-custom-height-f502 tbody td:last-child::before {
    display: none;
}

.table-custom-height-f502 thead th {
    position: relative; /* ::before 구분선용, ::after는 테마 sort 아이콘용 */
}

.table-custom-height-f502 thead th::before {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    right: 0;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.08);
    pointer-events: none;
}

.table-custom-height-f502 thead th:last-child::before {
    display: none;
}

.table-custom-height-f502 tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.table-custom-height-f502 tbody tr:hover {
    background-color: var(--phoenix-primary-bg-subtle, #e8f0fe) !important;
}

/* f502 스크롤바 공간 제거 - 내용이 넘칠 때만 스크롤바 표시 */
.table-custom-height-f502-wrapper {
    overflow-y: auto !important;
}

/* f502 좌우 테이블 헤더 정렬 - Thymeleaf th:replace가 삽입하는 BOM 텍스트 노드 높이 제거 */
#list1, #list2 {
    font-size: 0;
}

/* f502 취소 테이블 스타일 */
.table-custom-height-f502-cancel tbody td {
    vertical-align: middle !important;
    padding: 6px 10px !important;
    position: relative;
}

.table-custom-height-f502-cancel tbody td::before {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    right: 0;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.06);
    pointer-events: none;
}

.table-custom-height-f502-cancel tbody td:last-child::before {
    display: none;
}

.table-custom-height-f502-cancel thead th {
    position: relative; /* ::before 구분선용, ::after는 테마 sort 아이콘용 */
}

.table-custom-height-f502-cancel thead th::before {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    right: 0;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.08);
    pointer-events: none;
}

.table-custom-height-f502-cancel thead th:last-child::before {
    display: none;
}

.table-custom-height-f502-cancel tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.table-custom-height-f502-cancel tbody tr:hover {
    background-color: var(--phoenix-primary-bg-subtle, #e8f0fe) !important;
}

.table-custom-height-f502-cancel .badge {
    white-space: normal;
    word-break: keep-all;
}

.table-custom-height-f502 .cell-truncate {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-all;
    line-height: 1.4;
}

.table-custom-height-f502 .cell-truncate-date {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-all;
    line-height: 1.4;
}

/* f503 테이블 스타일 */
.table-custom-height-f503 tbody td {
    height: 70px !important;
    vertical-align: middle !important;
    padding: 6px 10px !important;
    position: relative;
}

.table-custom-height-f503 tbody td::before {
    content: '';
    position: absolute;
    top: 4px;
    right: 0;
    bottom: 4px;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.06);
    pointer-events: none;
}

.table-custom-height-f503 tbody td:last-child::before {
    display: none;
}

.table-custom-height-f503 thead th {
    position: relative; /* ::before 구분선용, ::after는 테마 sort 아이콘용 */
}

.table-custom-height-f503 thead th::before {
    content: '';
    position: absolute;
    top: 4px;
    right: 0;
    bottom: 4px;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.08);
    pointer-events: none;
}

.table-custom-height-f503 thead th:last-child::before {
    display: none;
}

.table-custom-height-f503 tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.table-custom-height-f503 tbody tr:hover {
    background-color: var(--phoenix-primary-bg-subtle, #e8f0fe) !important;
}

/* f503 스크롤바 공간 제거 - 내용이 넘칠 때만 스크롤바 표시 */
.table-custom-height-f503-wrapper {
    overflow-y: auto !important;
}

.table-custom-height-f503 .cell-truncate {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-all;
    line-height: 1.4;
}

.table-custom-pickup-scan th {
    font-size: 25px !important;
}
.table-custom-pickup-scan td,
.table-custom-pickup-scan td > span {
    font-size: 40px !important;
}

.search-box-select {
    padding: 0.375rem 2.25rem 0.375rem 0.75rem;
    min-height: 38px;
}

/* 검색창 최소 너비 보장 (검색 입력이 있는 search-box만) — 한 줄에 다 들어가는 넓은 화면(1200px 이상)에서만.
   예전에는 768px 부터 450px 를 강제해, 768~1199px 에서 좁은 칸(f161·f175 의 세 칸 화면 등)을 넘쳐 옆 칸을 덮었고
   검색 칸이 다음 줄로 떨어지면 오른쪽 끝이 위 줄과 어긋났다(카드 오른쪽 742 인데 검색은 475 에서 끝). */
@media (min-width: 1200px) {
    .search-box:has(.search-input) {
        min-width: 450px;
    }
}
/* 768~1199px — 검색 칸은 남는 자리를 채운다. 같은 줄에 자리가 없어 다음 줄로 떨어지면 그 줄을 가득 채워
   오른쪽 끝이 넓은 화면과 같은 자리(카드 안쪽 13px)에 온다. 칸 사이는 column-gap 하나(0.5rem)로 —
   칸마다 다른 왼쪽 여백(px-md-0 / px-md-1)이 줄이 바뀌었을 때 왼쪽 끝을 4px 어긋나게 했다(고르기 21 / 검색 25).
   줄이 바뀌면 위아래 사이도 0 이 아니라 0.5rem. 검색 칸의 오른쪽 여백·바깥 여백(pe-md-2·me-md-1)은 그대로 둔다 */
@media (min-width: 768px) and (max-width: 1199.98px) {
    :is([id*="SearchId"], .eds-search-params) .row:has(> .col-md-auto > .search-box .search-input) {
        row-gap: 0.5rem;
        column-gap: 0.5rem;
    }
    :is([id*="SearchId"], .eds-search-params) .row:has(> .col-md-auto > .search-box .search-input) > .col-md-auto {
        padding-left: 0 !important;
    }
    :is([id*="SearchId"], .eds-search-params) .row:has(> .col-md-auto > .search-box .search-input) > .col-md-auto:not(:has(> .search-box .search-input)) {
        padding-right: 0 !important;
        margin-right: 0 !important;
    }
    :is([id*="SearchId"], .eds-search-params) .col-md-auto:has(> .search-box .search-input) {
        flex: 1 1 16rem;
        min-width: 0;
    }
}

/* 검색 줄 컨트롤 높이 한 가지(38px) — Phoenix .form-control 은 37.07px 라 옆의 38px 셀렉트·빠른 선택 단추·달력과
   0.5px 어긋났다(f502·f512·f541·f610·w505 …). 입력칸 쪽을 38 로 맞춘다. 삭제 단추는 input-group 을 따라 늘어난다.
   휴대폰(767px 이하)은 mobile-custom.css 가 44px 로 맞춘다 */
@media (min-width: 768px) {
    :is([id*="SearchId"], .eds-search-params) :is(.form-control, .form-select):not(textarea):not(.form-control-sm):not(.form-select-sm) {
        min-height: 38px;
    }
}

/* 모바일에서 6컬럼 이상 테이블은 최소 너비 유지 → 좌우 스크롤 */
@media (max-width: 767.98px) {
    .table-responsive table:has(thead th:nth-child(6)) {
        min-width: 800px;
    }
}

/* 검색창 삭제 버튼 - input-group 블렌딩 */
.search-box .input-group .search-input {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.search-box .search-clear-btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-color: var(--phoenix-border-color);
    color: var(--phoenix-quaternary-color);
    z-index: 3;
}

/* 돋보기 — 칸을 누르면(포커스) 부트스트랩이 입력칸을 z-index 5 로 올려(input-group) 그 아래 깔린 돋보기가 가려졌다.
   돋보기를 그 위로 올리고 누름은 입력칸으로 흘려보낸다 (치과 dental_layout 의 .dental-textbox 와 같은 해법) */
.search-box .input-group + .search-box-icon {
    z-index: 6;
    pointer-events: none;
}

/* 글자 대비(WCAG AA 4.5:1) — Phoenix 기본 글자색이 밝은 바탕 위에서 모자랐다:
   삭제 #8a94ad/#f5f7fa 2.8:1, btn-phoenix-primary 글자 #3874ff/#f5f7fa 3.8:1, 탭(nav-links) #3874ff/#fff 4.1:1.
   전역 --phoenix-primary 는 채움·테두리·링크 전체를 바꾸므로 건드리지 않고 '밝은 바탕 위 글자색'만 진하게 한다.
   어두운 테마의 단추·탭은 Phoenix 자기 값([data-bs-theme=dark] …)을 그대로 쓴다(이미 7:1 이상) */
html:not([data-bs-theme=dark]) .search-box .search-clear-btn {
    color: #5e6782;
}
/* 어두운 테마의 삭제(#606981 / #0f111a 3.4:1)도 모자라 한 단계 밝게(7:1) */
[data-bs-theme=dark] .search-box .search-clear-btn {
    color: #9fa6bc;
}
.btn-phoenix-primary {
    --phoenix-btn-color: #2a5bd7;
    --phoenix-btn-active-color: #2a5bd7;
}
html:not([data-bs-theme=dark]) .nav-links .nav-link:not(.active) {
    color: #2a5bd7;
}

.search-box .search-clear-btn:hover {
    color: var(--phoenix-body-color);
    background-color: var(--phoenix-body-highlight-bg);
}

.clickable-row.clicked {
    outline: 2px solid #E5780B;
    outline-offset: -2px;
}

.width-10 {
    width: 10%;
}

.width-12 {
    width: 12%;
}

.width-15 {
    width: 15%;
}

.width-20 {
    width: 20%;
}

.width-25 {
    width: 25%;
}

.width-30 {
    width: 30%;
}

.nav-links .nav-link.active {
    color: var(--phoenix-emphasis-color);
    text-underline: #E5780B !important;
    text-decoration: underline !important;
    font-weight: bold;
}

.nav-overline {
    --phoenix-nav-overline-gap: 1rem;
    --phoenix-nav-overline-border-width: 0.125rem;
    --phoenix-nav-overline-link-active-color: var(--phoenix-primary);
    --phoenix-nav-overline-padding-top: 0.25rem; /* 추가 */
    gap: var(--phoenix-nav-overline-gap);
}

.nav-overline .nav-link {
    padding-right: 0;
    padding-left: 0;
    padding-top: var(--phoenix-nav-overline-padding-top); /* 추가 */
    border-top: var(--phoenix-nav-overline-border-width) solid transparent;
}

.nav-overline .nav-link:hover, .nav-overline .nav-link:focus {
    border-top-color: currentcolor;
}

.nav-overline .nav-link.active,
.nav-overline .show > .nav-link {
    font-weight: 700;
    color: var(--phoenix-nav-overline-link-active-color);
    border-top-color: currentcolor;
}

.border-bottom-request { /* 요청 */
    border-bottom: 1rem solid var(--phoenix-danger-lighter);
}

.background-request {
    background-color: var(--phoenix-danger-lighter) !important;
}

.border-bottom-receive { /* 접수 */
    border-bottom: 1rem solid #E5780B;
}

.background-receive {
    background-color: #E5780B !important;
}

.border-bottom-notify-denlab { /* 통보 */
    border-bottom: 0.25rem solid var(--phoenix-primary-lighter);
}

.background-notify-denlab {
    background-color: var(--phoenix-primary-lighter) !important;
}

.border-bottom-notify-eds { /* 통보 */
    border-bottom: 0.25rem solid var(--phoenix-primary-dark);
}

.background-notify-eds {
    background-color: var(--phoenix-primary-dark) !important;
}

.border-bottom-check-denlab { /* 확인 */
    border-bottom: 0.25rem solid var(--phoenix-success-dark);
}

.background-check-denlab {
    background-color: var(--phoenix-success-dark) !important;
}

.border-bottom-check-eds { /* 확인 */
    border-bottom: 0.25rem solid var(--phoenix-success-lighter);
}

.background-check-eds {
    background-color: var(--phoenix-success-lighter) !important;
}

.border-bottom-finish { /* 종료 */
    border-bottom: 0.25rem solid #E5780B;
}

.background-finish {
    background-color: #E5780B !important;
}

.border-bottom-complete { /* 완료 */
    border-bottom: 0.25rem solid #E5780B;
}

.background-complete {
    background-color: #E5780B !important;
}

.border-bottom-onhold { /* 보류 */
    border-bottom: 0.25rem solid #E5780B;
}

.background-onhold {
    background-color: #E5780B !important;
}

.border-bottom-delete { /* 삭제 */
    border-bottom: 0.25rem solid #E5780B;
}

.background-delete {
    background-color: #E5780B !important;
}

/* 수거요청 상태 배지 — 글자색은 바탕의 밝기를 따라간다(라이트·다크 두 테마 모두 4.5:1 이상, lab-w710-review.test.mjs 'D27').
   - 연한 바탕(-lighter 토큰: 라이트는 연한 색, 다크는 짙은 색) → var(--phoenix-emphasis-color) (라이트 #141824 · 다크 #eff2f6)
   - 진한 바탕(-dark 토큰: 라이트는 진한 색, 다크는 연한 색) → var(--phoenix-dark-text-emphasis) (라이트 #fff · 다크 #141824)
   - 테마와 상관없는 고정 바탕(#E5780B, danger-light 주황·분홍 계열) → 짙은 글자 #141824, 짙은 회색(secondary-dark-medium) → 흰 글자
   바탕색(상태 색 체계)은 그대로 두고 글자색만 맞춘다. 예전엔 연한 바탕에 흰 글자(var(--phoenix-dark-text-emphasis))라 1.2~1.7:1 이었다 */
.badge-request {
    color: var(--phoenix-emphasis-color);
    background-color: var(--phoenix-danger-lighter);
    font-size: 0.85rem !important;
}

.badge-receive {
    color: #141824;
    background-color: #E5780B;
    font-size: 0.85rem !important;
}

.badge-notify-denlab {
    color: var(--phoenix-emphasis-color);
    background-color: var(--phoenix-primary-lighter);
    font-size: 0.85rem !important;
}

.badge-notify-eds {
    color: var(--phoenix-dark-text-emphasis);
    background-color: var(--phoenix-primary-dark);
    font-size: 0.85rem !important;
}

.badge-check-denlab {
    color: var(--phoenix-dark-text-emphasis);
    background-color: var(--phoenix-success-dark);
    font-size: 0.85rem !important;
}

.badge-check-eds {
    color: var(--phoenix-emphasis-color);
    background-color: var(--phoenix-success-lighter);
    font-size: 0.85rem !important;
}

.badge-cancel {
    color: var(--phoenix-dark-text-emphasis);
    background-color: var(--phoenix-danger-darker);
    font-size: 0.85rem !important;
}

.badge-cancelled-after-visit {
    color: #141824;
    background-color: var(--phoenix-danger-light);
    font-size: 0.85rem !important;
}

/* 치과기공물 의뢰서 상태 배지 (기공소 화면) — 템플릿이 'badge-' + 상태 코드(소문자)로 붙인다.
   DentalOrderStatus 의 코드마다 하나씩 있어야 한다: Phoenix .badge 는 흰 글자, .badge-phoenix 는 변형 없이는 바탕이 없어서
   규칙이 빠진 상태는 바탕 없는 흰 글자 — 흰 행 위에서 보이지 않는다. 임시저장(DRAFT)은 접수대기와 같은 요청 톤(DentalOrderStatus.getTone = request) */
.badge-draft,
.badge-pending { background-color: #fef3c7; color: #92400e; }
.badge-received { background-color: #dbeafe; color: #1e40af; }
.badge-designing { background-color: #e0e7ff; color: #3730a3; }
.badge-fabricating { background-color: #fce7f3; color: #9d174d; }
.badge-finishing { background-color: #fdf2f8; color: #831843; }
.badge-qc { background-color: #f0fdf4; color: #166534; }
.badge-ready { background-color: #ecfdf5; color: #065f46; }
.badge-delivery { background-color: #eff6ff; color: #1d4ed8; }
.badge-done { background-color: #d1fae5; color: #065f46; }
.badge-returned { background-color: #fee2e2; color: #991b1b; }
/* 접수취소 — 글자는 약 9.6px 굵은 글씨라 4.5:1 이 필요하다: #737373 은 4.35:1 이라 #6b6b6b(4.89:1)로. 바탕·취소선은 그대로 */
.badge-cancelled { background-color: #f5f5f5; color: #6b6b6b; text-decoration: line-through; }
/* 같은 배지의 어두운 테마(상단 '밝게/어둡게') — 위 연한 바탕은 어두운 면 위에서 떠 보인다. 같은 색 계열의 옅은 바탕 + 밝은 글자로.
   치과 화면(body.dental-page)은 늘 밝은 업무 면이라 제외 (dental.css 의 기공소 어두운 테마 블록과 같은 기준) */
[data-bs-theme="dark"] body:not(.dental-page) .badge-draft,
[data-bs-theme="dark"] body:not(.dental-page) .badge-pending { background-color: rgba(245, 158, 11, .18); color: #fcd34d; }
[data-bs-theme="dark"] body:not(.dental-page) .badge-received { background-color: rgba(59, 130, 246, .2); color: #93c5fd; }
[data-bs-theme="dark"] body:not(.dental-page) .badge-designing { background-color: rgba(99, 102, 241, .24); color: #c7d2fe; }
[data-bs-theme="dark"] body:not(.dental-page) .badge-fabricating { background-color: rgba(236, 72, 153, .2); color: #f9a8d4; }
[data-bs-theme="dark"] body:not(.dental-page) .badge-finishing { background-color: rgba(236, 72, 153, .14); color: #fbcfe8; }
[data-bs-theme="dark"] body:not(.dental-page) .badge-qc { background-color: rgba(34, 197, 94, .16); color: #86efac; }
[data-bs-theme="dark"] body:not(.dental-page) .badge-ready { background-color: rgba(16, 185, 129, .16); color: #6ee7b7; }
[data-bs-theme="dark"] body:not(.dental-page) .badge-delivery { background-color: rgba(59, 130, 246, .14); color: #bfdbfe; }
[data-bs-theme="dark"] body:not(.dental-page) .badge-done { background-color: rgba(16, 185, 129, .26); color: #a7f3d0; }
[data-bs-theme="dark"] body:not(.dental-page) .badge-returned { background-color: rgba(239, 68, 68, .2); color: #fca5a5; }
[data-bs-theme="dark"] body:not(.dental-page) .badge-cancelled { background-color: rgba(255, 255, 255, .08); color: #a3a3a3; }

.badge-visited {
    color: var(--phoenix-white);
    background-color: var(--phoenix-secondary-dark-medium);
    font-size: 0.85rem !important;
}

.badge-finish {
    color: var(--phoenix-dark-text-emphasis);
    background-color: var(--phoenix-success-dark);
    font-size: 0.85rem !important;
}

.badge-complete {
    color: var(--phoenix-emphasis-color);
    background-color: var(--phoenix-success-lighter);
    font-size: 0.85rem !important;
}

.badge-onhold {
    color: var(--phoenix-emphasis-color);
    background-color: var(--phoenix-warning-lighter);
    font-size: 0.85rem !important;
}

.badge-delete {
    color: #141824;
    background-color: var(--phoenix-danger-light);
    font-size: 0.85rem !important;
}

.form-control-readonly {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.49;
    color: var(--phoenix-body-color);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: var(--phoenix-emphasis-bg);
    background-clip: padding-box;
    border: var(--phoenix-border-width) solid var(--phoenix-border-color);
    border-radius: var(--phoenix-border-radius);
    -webkit-box-shadow: inset 0 1px 2px transparent;
    box-shadow: inset 0 1px 2px transparent;
    -webkit-transition: none;
    -o-transition: none;
    transition: none;
}

.form-select:disabled {
    color: var(--phoenix-quaternary-color);
    background-color: rgba(var(--phoenix-gray-100-rgb), 0.7);
    opacity: 1;
}

.form-floating > .form-control-lg-1,
.form-floating > .form-select-lg-1 {
    height: auto;
    line-height: 1;
}

/*.form-floating > label {*/
/*    padding: 1.5rem 0.75rem;*/
/*    font-size: 1.5rem;*/
/*}*/

.form-select-lg-1 {
    min-height: 100px !important;
    max-height: 100px !important;
    font-size: 80px !important;
    font-weight: 800 !important;
    border-radius: 0.375rem !important;
    padding-top: 0 !important;
    padding-left: 10px !important;
    padding-bottom: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.form-select-lg-1 option {
    font-size: 80px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.form-control-lg-1 {
    min-height: 100px !important;
    max-height: 100px !important;
    font-size: 80px !important;
    font-weight: 800 !important;
    line-height: 10 !important;
    border-radius: 0.375rem !important;
}

.form-control-lg-2 {
    min-height: 100px !important;
    max-height: 100px !important;
    font-size: 90px !important;
    font-weight: 800 !important;
    line-height: 10 !important;
    border-radius: 0.375rem !important;
}

.form-control-lg-3 {
    min-height: 150px !important;
    max-height: 150px !important;
    font-size: 120px !important;
    font-weight: 800 !important;
    line-height: 10 !important;
    border-radius: 0.375rem !important;
}

.form-control-lg-4 {
    min-height: 200px !important;
    max-height: 200px !important;
    font-size: 170px !important;
    font-weight: 800 !important;
    line-height: 10 !important;
    border-radius: 0.375rem !important;
}

/* 행낭스캔(f521 배송·f522 수거) 머리 줄의 날짜·오전/오후 — 멀리서 읽도록 크게(최대 80px) 두되, 칸이 좁으면 칸 너비에 맞춰 줄인다.
   예전에는 80px 고정이라 1600px 화면(날짜 칸 499px)에서도 날짜 끝('-06')이 잘리고 달력 아이콘이 그 위에 얹혔다(1366 은 '2026-1').
   글자 크기 = 칸 너비(cqi) 기준. 날짜: 글 6.5em + 달력 아이콘·틈 1em(브라우저 날짜 칸 실측) + 좌우 여백·테두리 34px — 점 표기
   ('2026. 11. 06.')도 들어가게 8em 으로 나눈다. 오전/오후: 두 글자 1.75em + 왼쪽 여백·펼침 화살표 자리 52px.
   컨테이너 단위를 모르는 브라우저는 예전처럼 80px.
   날짜는 이제 공용 달력(flatpickr — 2026-11-06 글만, 브라우저 아이콘 없음)이라 아이콘 자리 1em 은 오른쪽 여유로 남는다 — 크기는 예전 그대로 둔다.
   공용 달력(static)이 입력을 .flatpickr-wrapper 로 감싸므로 날짜는 자식(>)이 아니라 자손으로 찾는다 */
.scan-fit {
    container-type: inline-size;
}

.scan-fit #scanEnterDt.form-control-lg-1 {
    font-size: clamp(24px, calc((100cqi - 34px) / 8), 80px) !important;
}

.scan-fit > #scanTimeType.form-select-lg-1 {
    font-size: clamp(24px, calc((100cqi - 52px) / 1.85), 80px) !important;
}

/* 스캔 날짜의 달력(공용 flatpickr, static)은 날짜 칸 바로 아래 모달 안에 그린다. .scan-fit 은 크기 기준(container)이라 제 안에서 따로 쌓이므로
   (stacking context) 달력이 열린 동안만 그 칸을 뒤의 결과 칸(라벨 z-index 2)·오른쪽 목록(sticky-top z-index 1020) 위로 올린다 */
.scan-fit:has(> .flatpickr-wrapper > .flatpickr-calendar.open) {
    position: relative;
    z-index: 1025;
}

/* 날짜 칸 오른쪽의 달력 표시 — 눌러서 고르는 칸이라는 표시(예전 브라우저 날짜 칸의 아이콘 자리, 위 1em). 글자와 같은 크기 산식·같은 색.
   누르면 아래 칸이 받는다(pointer-events: none). 달력이 붙은 뒤(.flatpickr-wrapper)에만 그린다 */
.scan-fit:has(> .flatpickr-wrapper > #scanEnterDt)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 17px;
    width: 0.9em;
    height: 0.9em;
    font-size: clamp(24px, calc((100cqi - 34px) / 8), 80px);
    transform: translateY(-50%);
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M7 2h2v2h6V2h2v2h2a2 2 0 0 1 2 2v13a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2zM5 9v10h14V9z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M7 2h2v2h6V2h2v2h2a2 2 0 0 1 2 2v13a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2zM5 9v10h14V9z'/%3E%3C/svg%3E") center / contain no-repeat;
    pointer-events: none;
}

/* 행낭스캔 결과 칸(배송: 기공소·치과명·구역명 150px, 구역번호 200px / 수거: 치과명·기공소 100px, 구역명·위치구분 150px) — 멀리서 읽도록
   아주 크게 그리는데 모달 본문은 스크롤하지 않아(overflow-y: hidden) 화면이 낮으면 아래 칸이 잘렸다(1366x768 에서 배송 구역번호 0%,
   수거 위치구분 65% 만 보였다). 본문 높이(cqh)에 다 들어갈 만큼만 칸 높이와 글자를 같은 비율로 줄인다 — 다 들어가는 화면(1920x1080 이상)은
   예전 크기 그대로다(clamp 의 최댓값). 칸 사이 간격(16px)과 머리 줄(날짜·오전/오후·바코드)은 줄이지 않는다.
   --scan-room = 결과 칸들이 나눠 쓸 높이 = 본문 높이(100cqh) + 본문 아래 여백 8px − 머리 줄 118px − 그 아래 여백 16px − 칸 사이 16px × 3 − 여유 6px.
   768px 보다 좁으면 머리 줄이 쌓여 높아진다(배송 세 칸 334px, 수거 두 줄 226px). 아주 낮은 화면에서는 기본 크기의 40% 아래로 줄이지 않는다.
   긴 이름이 칸 너비를 넘으면 스크립트(fitScanFields)가 그 칸의 글자만 더 줄인다 */
#logisticsOperationScan .modal-body {
    container-type: size;
}

#logisticsOperationScan {
    --scan-room: calc(100cqh - 180px);
}

@media (max-width: 767.98px) {
    #deliveryScan {
        --scan-room: calc(100cqh - 396px);
    }

    #pickUpScan {
        --scan-room: calc(100cqh - 288px);
    }
}

/* 배송 — 150 + 150 + 150 + 200 = 650px 를 --scan-room 에 맞춘다 */
#deliveryScan :is(#labName, #denName, #couName) {
    min-height: clamp(60px, calc(var(--scan-room) * 150 / 650), 150px) !important;
    max-height: clamp(60px, calc(var(--scan-room) * 150 / 650), 150px) !important;
    font-size: clamp(48px, calc(var(--scan-room) * 120 / 650), 120px) !important;
}

#deliveryScan #couNo {
    min-height: clamp(80px, calc(var(--scan-room) * 200 / 650), 200px) !important;
    max-height: clamp(80px, calc(var(--scan-room) * 200 / 650), 200px) !important;
    font-size: clamp(68px, calc(var(--scan-room) * 170 / 650), 170px) !important;
}

/* 수거 — 100 + 100 + 150 + 150 = 500px */
#pickUpScan :is(#denName, #labName) {
    min-height: clamp(40px, calc(var(--scan-room) * 100 / 500), 100px) !important;
    max-height: clamp(40px, calc(var(--scan-room) * 100 / 500), 100px) !important;
    font-size: clamp(32px, calc(var(--scan-room) * 80 / 500), 80px) !important;
}

#pickUpScan :is(#couName, #leftOrRight) {
    min-height: clamp(60px, calc(var(--scan-room) * 150 / 500), 150px) !important;
    max-height: clamp(60px, calc(var(--scan-room) * 150 / 500), 150px) !important;
    font-size: clamp(48px, calc(var(--scan-room) * 120 / 500), 120px) !important;
}

/* 오른쪽 목록(높이 700px 고정) — 낮은 화면에서 아래가 잘려 마지막 줄까지 내려 볼 수 없었다. 결과 칸 묶음과 같은 높이까지만 */
#logisticsOperationScan .table-responsive {
    min-height: min(700px, calc(var(--scan-room) + 48px)) !important;
    max-height: min(700px, calc(var(--scan-room) + 48px)) !important;
}

.col-form-label-lg-3 {
    padding-top: calc(0.75rem + var(--phoenix-border-width));
    padding-bottom: calc(0.75rem + var(--phoenix-border-width));
    font-size: 50px;
    font-weight: 1000;
}

.vertical-separator {
    font-size: 0.8rem;
    white-space: nowrap;
    font-weight: 700;
    --phoenix-bg-opacity: 1;
    color: rgba(var(--phoenix-secondary-bg-rgb), var(--phoenix-bg-opacity)) !important;
}

@media (min-width: 576px) {
    .mobile-only-link {
        pointer-events: none;
        cursor: default;
    }
}

.form-check-input:disabled {
    opacity: 1;
}

.flatpickr-calendar {
    z-index: 9999 !important;
}

/* 고를 수 없는 날(지난 날·수거시간설정 f890 으로 막힌 요일)은 주말이어도 다른 막힌 날과 같은 회색.
   테마의 주말 주황(theme.css .flatpickr-day.weekend-days)이 flatpickr 의 '선택 불가' 색보다 뒤에 와서 이겨,
   막힌 일요일이 눌리는 날처럼 보였다 — 사용자는 눌러도 반응이 없으니 날짜를 손으로 쳐 넣었다.
   앞뒤 달 칸(.prevMonthDay/.nextMonthDay)의 테마 색도 같은 식으로 이겨, 막힌 다음 달 날짜가 열린 날과 똑같이 보였다.
   색은 flatpickr.css 의 .flatpickr-day.flatpickr-disabled 값 그대로 (치과 화면은 dental.css 가 따로 정한다) */
.flatpickr-day.flatpickr-disabled.weekend-days,
.flatpickr-day.flatpickr-disabled.weekend-days:hover,
.flatpickr-day.flatpickr-disabled.prevMonthDay,
.flatpickr-day.flatpickr-disabled.nextMonthDay {
    color: rgba(57, 57, 57, 0.1);
}

#navbarTopCollapse {
    transition: all 0.3s ease-in-out;
    align-items: center;
}


.dental-row {
    cursor: pointer;
}

.dental-row.selected {
    background-color: #e6f3ff;
}

.row.d-flex {
    display: flex;
    flex-wrap: wrap;
}

.row.d-flex > div {
    display: flex;
    flex-direction: column;
}

#dentalUpdateForm {
    flex-grow: 1;
    overflow-y: auto;
}

.fade-me-in.htmx-added {
    opacity: 0;
}

.fade-me-in {
    opacity: 1;
    transition: opacity 1s ease-out;
}

.pickup-background {
    background-color: #fff0e6;
}

.delivery-background {
    background-color: #e6f3ff;
}

.delivery-text-bold,
.delivery-text-bold > td{
    color: var(--phoenix-primary-text-emphasis) !important;
    font-weight: bold;
}

.pickup-text-bold,
.pickup-text-bold > td {
    color: var(--phoenix-warning-text-emphasis) !important;
    font-weight: bold;
}

.delivery-text,
.delivery-text> td{
    color: var(--phoenix-primary-text-emphasis) !important;
}

.pickup-text,
.pickup-text > td {
    color: var(--phoenix-warning-text-emphasis) !important;
}


.btn-improved {
    background-color: #f0f4f8;
    color: #4a5568;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-improved:hover {
    background-color: #e2e8f0;
    color: #2d3748;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 모바일에서 배송(Delivery) 버튼을 위한 추가 스타일 */
.delivery-background .btn-improved {
    background-color: #e6f7ff;
    color: #0366d6;
    border-color: #b3d1ff;
}

.delivery-background .btn-improved:hover {
    background-color: #cce5ff;
    color: #004080;
}

/* 모바일에서 수거(Pickup) 버튼을 위한 추가 스타일 */
.pickup-background .btn-improved {
    background-color: #fff5e6;
    color: #d46b08;
    border-color: #ffd8a8;
}

.pickup-background .btn-improved:hover {
    background-color: #ffe8cc;
    color: #b54d04;
}

.mobile-tr-height-80 {
    height: 80px !important;
}

.mobile-tr-height-70 {
    height: 70px !important;
}

.mobile-tr-height-60 {
    height: 60px !important;
}

.mobile-tr-height-50 {
    height: 50px !important;
}

/* (옛 .badge-pickup·두 번째 .badge-delivery 는 지웠다 — 쓰는 곳이 없었고, 뒤에 있던 .badge-delivery 가 위의
   의뢰서 '배송중' 배지(.badge-delivery)를 덮어써 같은 이름이 두 번 정의돼 있었다. 수거·배송 표시는 logi-badge-* 를 쓴다) */

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

.blink-animation {
    animation: blink 1.5s infinite;
}

thead {
    background-color: var(--phoenix-body-bg);
    color: var(--phoenix-body-color);
}

.autocomplete-items {
    position: absolute;
    border: 1px solid #e0e0e0;
    border-top: none;
    z-index: 1000;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    max-height: 300px;
    overflow-y: auto;
    border-radius: 0.375rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.autocomplete-items .autocomplete-item {
    padding: 12px 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 0.9rem;
    color: #333;
}

.autocomplete-items .autocomplete-item:not(:last-child) {
    border-bottom: 1px solid #f0f0f0;
}

.autocomplete-items .autocomplete-item:hover {
    background-color: #f0f7ff;
}

.autocomplete-items .autocomplete-item.autocomplete-active {
    background-color: #e6f2ff;
    font-weight: bold;
}

/* 스크롤바 스타일링 */
.autocomplete-items::-webkit-scrollbar {
    width: 8px;
}

.autocomplete-items::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.autocomplete-items::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.autocomplete-items::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.count-number {
    display: inline-block;
    min-width: 2.5em; /* 조정 가능 */
    text-align: left;
}

.info-box {
    width: 320px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-family: Arial, sans-serif;
    border: 1px solid #e0e0e0;
}
.info-box img {
    width: 50px;
    height: auto;
}
.logo-text {
    font-size: 18px;
    font-weight: bold;
    margin: 10px 0;
    color: #333;
}
.address, .website {
    margin: 5px 0;
    color: #555;
}
.website a {
    color: #007bff;
    text-decoration: none;
}
.website a:hover {
    text-decoration: underline;
}

/* f161 치과정보관리 - 왼쪽 치과 테이블 스타일 */
.table-custom-height-f161 tbody td {
    vertical-align: middle !important;
    padding: 6px 10px !important;
    position: relative;
}

.table-custom-height-f161 tbody td::before {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    right: 0;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.06);
    pointer-events: none;
}

.table-custom-height-f161 tbody td:last-child::before {
    display: none;
}

.table-custom-height-f161 thead th {
    position: relative; /* ::before 구분선용, ::after는 테마 sort 아이콘용으로 예약 */
}

.table-custom-height-f161 thead th::before {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    right: 0;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.08);
    pointer-events: none;
}

.table-custom-height-f161 thead th:last-child::before {
    display: none;
}

.table-custom-height-f161 tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.table-custom-height-f161 tbody tr:hover {
    background-color: var(--phoenix-primary-bg-subtle, #e8f0fe) !important;
}

.table-custom-height-f161 thead th:first-child,
.table-custom-height-f161 tbody td:first-child {
    padding: 4px 6px !important;
    width: 36px !important;
    max-width: 36px !important;
}

/* f161 치과정보관리 - 오른쪽 기공소 테이블 스타일 */
.table-custom-height-f161-2 tbody td {
    vertical-align: middle !important;
    padding: 6px 10px !important;
    position: relative;
}

.table-custom-height-f161-2 tbody td::before {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    right: 0;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.06);
    pointer-events: none;
}

.table-custom-height-f161-2 tbody td:last-child::before {
    display: none;
}

.table-custom-height-f161-2 thead th {
    position: relative; /* ::before 구분선용, ::after는 테마 sort 아이콘용 */
}

.table-custom-height-f161-2 thead th::before {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    right: 0;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.08);
    pointer-events: none;
}

.table-custom-height-f161-2 thead th:last-child::before {
    display: none;
}

.table-custom-height-f161-2 tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.table-custom-height-f161-2 tbody tr:hover {
    background-color: var(--phoenix-primary-bg-subtle, #e8f0fe) !important;
}

.table-custom-height-f161-2 thead th:first-child,
.table-custom-height-f161-2 tbody td:first-child {
    padding: 4px 6px !important;
    width: 36px !important;
    max-width: 36px !important;
}

/* f201 입출금관리 테이블 스타일 */
.f201-table-scroll {
    min-height: calc(100vh - 380px) !important;
    max-height: calc(100vh - 380px) !important;
}

.f201-summary-responsive {
    overflow-x: auto;
    overflow-y: hidden;
    flex-grow: 0;
}

.f201-summary-table tbody td {
    height: var(--table-cell-height) !important;
    vertical-align: middle !important;
    padding: 6px 10px !important;
}

.table-custom-height-f201 tbody td {
    vertical-align: middle !important;
    padding: 6px 10px !important;
    position: relative;
}

.table-custom-height-f201 tbody td::before {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    right: 0;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.06);
    pointer-events: none;
}

.table-custom-height-f201 tbody td:last-child::before {
    display: none;
}

.table-custom-height-f201 thead th {
    position: relative; /* ::before 구분선용, ::after는 테마 sort 아이콘용 */
}

.table-custom-height-f201 thead th::before {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    right: 0;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.08);
    pointer-events: none;
}

.table-custom-height-f201 thead th:last-child::before {
    display: none;
}

.table-custom-height-f201 tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.table-custom-height-f201 tbody tr:hover {
    background-color: var(--phoenix-primary-bg-subtle, #e8f0fe) !important;
}

/* f202 이체관리 테이블 스타일 */
.f202-table-scroll {
    min-height: calc(100vh - 380px) !important;
    max-height: calc(100vh - 380px) !important;
}

.f202-summary-responsive {
    overflow-x: auto;
    overflow-y: hidden;
    flex-grow: 0;
}

.f202-summary-table tbody td {
    height: var(--table-cell-height) !important;
    vertical-align: middle !important;
    padding: 6px 10px !important;
}

.table-custom-height-f202 tbody td {
    vertical-align: middle !important;
    padding: 6px 10px !important;
    position: relative;
}

.table-custom-height-f202 tbody td::before {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    right: 0;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.06);
    pointer-events: none;
}

.table-custom-height-f202 tbody td:last-child::before {
    display: none;
}

.table-custom-height-f202 thead th {
    position: relative; /* ::before 구분선용, ::after는 테마 sort 아이콘용 */
}

.table-custom-height-f202 thead th::before {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    right: 0;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.08);
    pointer-events: none;
}

.table-custom-height-f202 thead th:last-child::before {
    display: none;
}

.table-custom-height-f202 tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.table-custom-height-f202 tbody tr:hover {
    background-color: var(--phoenix-primary-bg-subtle, #e8f0fe) !important;
}

/* f302 매출계산서관리 테이블 스타일 */
.table-custom-height-f302 tbody td {
    vertical-align: middle !important;
    padding: 6px 10px !important;
    position: relative;
}

.table-custom-height-f302 tbody td::before {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    right: 0;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.06);
    pointer-events: none;
}

.table-custom-height-f302 tbody td:last-child::before {
    display: none;
}

.table-custom-height-f302 thead th {
    position: relative; /* ::before 구분선용, ::after는 테마 sort 아이콘용 */
}

.table-custom-height-f302 thead th::before {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    right: 0;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.08);
    pointer-events: none;
}

.table-custom-height-f302 thead th:last-child::before {
    display: none;
}

.table-custom-height-f302 tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.table-custom-height-f302 tbody tr:hover {
    background-color: var(--phoenix-primary-bg-subtle, #e8f0fe) !important;
}

/* f303 청구서출력관리 테이블 스타일 */
.table-custom-height-f303 tbody td {
    vertical-align: middle !important;
    padding: 6px 10px !important;
    position: relative;
}

.table-custom-height-f303 tbody td::before {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    right: 0;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.06);
    pointer-events: none;
}

.table-custom-height-f303 tbody td:last-child::before {
    display: none;
}

.table-custom-height-f303 thead th {
    position: relative; /* ::before 구분선용, ::after는 테마 sort 아이콘용 */
}

.table-custom-height-f303 thead th::before {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    right: 0;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.08);
    pointer-events: none;
}

.table-custom-height-f303 thead th:last-child::before {
    display: none;
}

.table-custom-height-f303 tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.table-custom-height-f303 tbody tr:hover {
    background-color: var(--phoenix-primary-bg-subtle, #e8f0fe) !important;
}

/* f312 전월매출당월입력 테이블 스타일 */
.table-custom-height-f312 tbody td {
    vertical-align: middle !important;
    padding: 6px 10px !important;
    position: relative;
}

.table-custom-height-f312 tbody td::before {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    right: 0;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.06);
    pointer-events: none;
}

.table-custom-height-f312 tbody td:last-child::before {
    display: none;
}

.table-custom-height-f312 thead th {
    position: relative; /* ::before 구분선용, ::after는 테마 sort 아이콘용 */
}

.table-custom-height-f312 thead th::before {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    right: 0;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.08);
    pointer-events: none;
}

.table-custom-height-f312 thead th:last-child::before {
    display: none;
}

.table-custom-height-f312 tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.table-custom-height-f312 tbody tr:hover {
    background-color: var(--phoenix-primary-bg-subtle, #e8f0fe) !important;
}

.icon-text-wrapper {
    display: inline-flex;
    align-items: center;
}
.icon-text-wrapper .fa,
.icon-text-wrapper .fa-regular {
    margin-right: 4px;
}

.truncate-text {
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block; /* Required for ellipsis to work correctly */
}

.table-cell-ellipsis {
    display: block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Responsive Card Table for Mobile */
/*@media screen and (max-width: 768px) {*/
/*  .responsive-card-table thead {*/
/*    display: none; !* Hide table headers on mobile *!*/
/*  }*/
/*  .responsive-card-table, .responsive-card-table tbody, .responsive-card-table tr, .responsive-card-table td {*/
/*    display: block;*/
/*    width: 100%;*/
/*  }*/
/*  .responsive-card-table tr {*/
/*    margin-bottom: 1rem;*/
/*    border: 1px solid var(--phoenix-border-color);*/
/*    border-radius: 5px;*/
/*    padding: 1rem;*/
/*    box-shadow: 0 2px 4px rgba(0,0,0,0.1);*/
/*    !*background-color: var(--phoenix-body-bg);*!*/
/*  }*/
/*  .responsive-card-table td {*/
/*    text-align: right;*/
/*    padding-left: 40%; !* Make space for the label *!*/
/*    position: relative;*/
/*    border: none;*/
/*    padding-top: 0.5rem;*/
/*    padding-bottom: 0.5rem;*/
/*    white-space: normal;*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: flex-end;*/
/*    background-color: transparent !important;*/
/*  }*/
/*  .responsive-card-table td::before {*/
/*    content: attr(data-label); !* Use data-label for the content *!*/
/*    position: absolute;*/
/*    left: 1rem;*/
/*    width: 35%; !* Adjust width of the label *!*/
/*    padding-right: 10px;*/
/*    white-space: nowrap;*/
/*    text-align: left;*/
/*    font-weight: bold;*/
/*    !*color: var(--phoenix-body-color);*!*/
/*  }*/
/*  .responsive-card-table td .truncate-text {*/
/*    max-width: 100%;*/
/*    text-align: right;*/
/*  }*/
/*}*/

/* ===== f506 기공소별일일수거접수 - 왼쪽 테이블 (기공소/수거건수) ===== */
.table-custom-height-f506 tbody td {
    vertical-align: middle !important;
    padding: 6px 10px !important;
    position: relative;
}

.table-custom-height-f506 tbody td::before {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    right: 0;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.06);
    pointer-events: none;
}

.table-custom-height-f506 tbody td:last-child::before {
    display: none;
}

.table-custom-height-f506 thead th {
    position: relative; /* ::before 구분선용, ::after는 테마 sort 아이콘용 */
}

.table-custom-height-f506 thead th::before {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    right: 0;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.08);
    pointer-events: none;
}

.table-custom-height-f506 thead th:last-child::before {
    display: none;
}

.table-custom-height-f506 tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.table-custom-height-f506 tbody tr:hover {
    background-color: var(--phoenix-primary-bg-subtle, #e8f0fe) !important;
}

/* ===== f506 기공소별일일수거접수 - 오른쪽 테이블 (시간/치과/연락처) ===== */
.table-custom-height-f506-2 tbody td {
    vertical-align: middle !important;
    padding: 6px 10px !important;
    position: relative;
}

.table-custom-height-f506-2 tbody td::before {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    right: 0;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.06);
    pointer-events: none;
}

.table-custom-height-f506-2 tbody td:last-child::before {
    display: none;
}

.table-custom-height-f506-2 thead th {
    position: relative; /* ::before 구분선용, ::after는 테마 sort 아이콘용 */
}

.table-custom-height-f506-2 thead th::before {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    right: 0;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.08);
    pointer-events: none;
}

.table-custom-height-f506-2 thead th:last-child::before {
    display: none;
}

.table-custom-height-f506-2 tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.table-custom-height-f506-2 tbody tr:hover {
    background-color: var(--phoenix-primary-bg-subtle, #e8f0fe) !important;
}

/* ===== f507 구역별일일수거접수 - 왼쪽 테이블 (구역명/수거건수/연락처) ===== */
.table-custom-height-f507 tbody td {
    vertical-align: middle !important;
    padding: 6px 10px !important;
    position: relative;
}

.table-custom-height-f507 tbody td::before {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    right: 0;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.06);
    pointer-events: none;
}

.table-custom-height-f507 tbody td:last-child::before {
    display: none;
}

.table-custom-height-f507 thead th {
    position: relative; /* ::before 구분선용, ::after는 테마 sort 아이콘용 */
}

.table-custom-height-f507 thead th::before {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    right: 0;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.08);
    pointer-events: none;
}

.table-custom-height-f507 thead th:last-child::before {
    display: none;
}

.table-custom-height-f507 tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.table-custom-height-f507 tbody tr:hover {
    background-color: var(--phoenix-primary-bg-subtle, #e8f0fe) !important;
}

/* ===== f507 구역별일일수거접수 - 오른쪽 테이블 (시간/치과/기공소) ===== */
.table-custom-height-f507-2 tbody td {
    vertical-align: middle !important;
    padding: 6px 10px !important;
    position: relative;
}

.table-custom-height-f507-2 tbody td::before {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    right: 0;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.06);
    pointer-events: none;
}

.table-custom-height-f507-2 tbody td:last-child::before {
    display: none;
}

.table-custom-height-f507-2 thead th {
    position: relative; /* ::before 구분선용, ::after는 테마 sort 아이콘용 */
}

.table-custom-height-f507-2 thead th::before {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    right: 0;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.08);
    pointer-events: none;
}

.table-custom-height-f507-2 thead th:last-child::before {
    display: none;
}

.table-custom-height-f507-2 tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.table-custom-height-f507-2 tbody tr:hover {
    background-color: var(--phoenix-primary-bg-subtle, #e8f0fe) !important;
}

/* ===== 공통 드롭다운 오버레이 스타일 ===== */
.dropdown-overlay {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 1050;
    max-height: 300px;
    overflow-y: scroll;
    overflow-x: hidden;
    margin-top: 4px;
    box-shadow: inset 0 2px 0 var(--phoenix-primary, #3874ff), 0 6px 16px rgba(0, 0, 0, 0.2);
    border-radius: 0 0 0.375rem 0.375rem;
}

/* dropdown-overlay 내부 테이블: border-collapse: separate 필수
 * — collapse 모드에서는 sticky thead의 border가 스크롤 시 흔들림 (브라우저 버그)
 * — separate + border-spacing:0 으로 동일한 외관 유지
 */
.dropdown-overlay table {
    border-collapse: separate;
    border-spacing: 0;
}

/* dropdown-overlay 내부 thead 스티키 헤더 공통 적용 */
.dropdown-overlay thead {
    position: sticky;
    top: 0;
    z-index: 1;
}

/* thead th 배경색 + 하단 선 (box-shadow)
 * — 스크롤 시 본문이 헤더 뒤로 비치지 않도록 배경색 보장
 * — border 대신 box-shadow로 하단 선 표현 (separate 모드에서 흔들림 방지)
 */
.dropdown-overlay thead th {
    background-color: var(--phoenix-emphasis-bg, var(--phoenix-body-bg, #fff));
    border-bottom: none !important;
    box-shadow: inset 0 -1px 0 rgb(203, 208, 221);
}

/* table-layout:fixed 테이블 내 셀 텍스트 오버플로우 처리 */
.dropdown-overlay table[style*="table-layout: fixed"] td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Step 모드 테이블 공통 — table-layout:fixed 셀 오버플로우 처리 */
.empList table[style*="table-layout: fixed"] td,
.labListEx table[style*="table-layout: fixed"] td,
.courseListStep table[style*="table-layout: fixed"] td,
.dentalListEx table[style*="table-layout: fixed"] td,
.bankBookList table[style*="table-layout: fixed"] td,
.clientList table[style*="table-layout: fixed"] td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ===== 모바일 테이블 컬럼 정렬 통일 ===== */
@media (max-width: 767.98px) {
    /* 긴 텍스트 줄바꿈 허용 → 컬럼 밀림 방지 */
    /* min-width가 인라인으로 설정된 테이블(w515 등)은 제외 — 이미 고정 너비로 스크롤 */
    .table-responsive table:not([style*="min-width"]) td.white-space-nowrap,
    .table-responsive table:not([style*="min-width"]) td[class*="white-space-nowrap"] {
        white-space: normal !important;
        /* 한글은 낱말 중간에서 끊지 않는다 — 칸보다 긴 한 낱말만 넘칠 때 끊는다 */
        word-break: keep-all;
        overflow-wrap: break-word;
    }
}

/* ===== AG Grid 치과 테마 (의뢰서 관리 목록 t510 — ag-theme-dental) =====
   치과 공용 표(.dental-table)와 같은 색·높이: 머리 #fafafb 바탕·#52525b 글자 13px/500, 행 40px, hover #f5f6f8,
   선택 #f7ecee, 행 선 #d0d4dc, 머리 아래 선과 바깥 테두리 #aeb4bf, 모서리 7px(.dental-box 와 같다).
   공용 상자(.dental-box) 안에 넣으면 바깥 테두리는 상자가 그린다.
   달력(flatpickr)·포커스 고리의 치과 색은 dental_layout·dental.css 에 있다 — 여기 있던 옛 민트 규칙은 지웠다 */
.ag-theme-quartz.ag-theme-dental {
    --ag-font-family: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --ag-font-size: 13px;
    --ag-foreground-color: #18181b;
    --ag-data-color: #18181b;
    --ag-secondary-foreground-color: #52525b;
    --ag-header-background-color: #fafafb;
    --ag-header-foreground-color: #52525b;
    --ag-header-cell-hover-background-color: #f5f6f8;
    --ag-header-height: 44px;
    --ag-row-height: 40px;
    --ag-odd-row-background-color: #fff;
    --ag-row-hover-color: #f5f6f8;
    --ag-selected-row-background-color: #f7ecee;
    --ag-range-selection-border-color: #ad6672;
    --ag-input-focus-border-color: #ad6672;
    --ag-active-color: #963f4b;
    --ag-border-color: #aeb4bf;
    --ag-row-border-color: #d0d4dc;
    --ag-header-column-separator-display: none;
    --ag-header-column-resize-handle-display: none;
    --ag-cell-horizontal-padding: 12px;
    --ag-borders: none;
    --ag-wrapper-border-radius: 7px;
}

.ag-theme-quartz.ag-theme-dental .ag-root-wrapper {
    border: 1px solid #aeb4bf;
    border-radius: 7px;
    overflow: hidden;
}

/* 공용 상자 안의 표 — 테두리·모서리는 상자가 그린다 (선이 두 겹이 되지 않게) */
.dental-box .ag-theme-quartz.ag-theme-dental .ag-root-wrapper {
    border: 0;
    border-radius: 0;
}

.ag-theme-quartz.ag-theme-dental .ag-header {
    border-bottom: 1px solid #aeb4bf;
}

.ag-theme-quartz.ag-theme-dental .ag-header-cell {
    font-size: 13px;
    font-weight: 500;
}

.ag-theme-quartz.ag-theme-dental .ag-row {
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.ag-theme-quartz.ag-theme-dental .ag-header-cell-center .ag-header-cell-label {
    justify-content: center;
}

/* 목록이 비었을 때의 공용 안내 — common/list/emptyState.html (block: .table-responsive 안 표 바로 다음, row: tbody 안 colspan 한 줄).
   머리글은 그대로 두고 '왜 비었는지·무엇을 바꾸면 되는지'를 가운데 두 줄로. w710 의 빈 목록과 같은 크기·색 */
.eds-empty-state {
    padding: 40px 16px !important;
    text-align: center;
    color: var(--phoenix-tertiary-color, #6e7891);
    word-break: keep-all;
}
.eds-empty-state-message {
    font-size: 0.8rem;
    font-weight: 600;
}
.eds-empty-state-hint {
    margin-top: 0.25rem;
    font-size: 0.75rem;
}
.eds-empty-row:hover > td,
.table-striped > tbody > tr.eds-empty-row > td {
    --phoenix-table-accent-bg: transparent;
    --phoenix-table-bg-state: transparent;
}

/* ===== 지우기 단추가 붙은 칸의 오류 문구 (D57) =====
   오류 문구가 .input-group 안에 있으면 보일 때 칸이 늘어나 단추가 48px → 68px 로 길어졌다.
   문구를 칸 묶음 바로 아래(.eds-ig-feedback)로 빼고, 칸 묶음 안에 오류 표시가 있을 때만 보인다 —
   읽기 전용 칸은 EDSUtil.validateForm 이 .is-invalid 를, 나머지는 폼의 .was-validated + :invalid 가 표시한다 */
.input-group:has(.is-invalid) + .eds-ig-feedback,
.was-validated .input-group:has(:invalid) + .eds-ig-feedback {
    display: block;
}

/* ===== 보기만 하는 선택 칸 =====
   저장하지 않는 화면(사용자정보 f811)의 선택 칸은 disabled 로 막되, 옆의 읽기 전용 글 칸과 같은 모양으로 둔다 —
   Phoenix 의 disabled 회색 바탕과 펼침 화살표는 '눌러 보면 바뀔 것 같은' 칸으로 보여 이 칸만 달라 보였다 */
.form-select.eds-view-select:disabled {
    background-color: var(--phoenix-emphasis-bg);
    background-image: none;
    color: var(--phoenix-body-color);
    opacity: 1;
}

/* ===== 단추가 붙은 칸(.input-group)의 포커스 테두리 =====
   칸과 단추(지우기·검색 등)는 모서리가 맞닿아 한 덩어리로 그려지는데, 포커스 테두리(파란 선 + 바깥 번짐)는 칸에만 그려져
   단추 앞에서 뚝 끊겼다. 칸에 포커스가 있을 때 바깥 번짐을 묶음 전체에 그리고, 칸 자신의 번짐은 끈다(안쪽 그림자는 남긴다 —
   Phoenix 가 자동완성 바탕을 덮는 데 쓴다). 붙은 단추의 테두리도 같은 파란색으로 이어 한 상자로 보이게 한다.
   단추에 포커스가 갔을 때는 단추 자신의 초점 표시를 쓴다 — 그래서 :focus-within 이 아니라 칸의 :focus 로 고른다.
   틀린 값이 든 칸(.is-invalid)은 빨간 번짐 */
.input-group:has(> .form-control:focus, > .form-select:focus, > .form-floating > .form-control:focus, > .form-floating > .form-select:focus) {
    border-radius: var(--phoenix-border-radius);
    box-shadow: 0 0 0 0.25rem rgba(var(--phoenix-primary-rgb), 0.25);
}
.input-group:has(> .is-invalid:focus, > .form-floating > .is-invalid:focus) {
    box-shadow: 0 0 0 0.25rem rgba(var(--phoenix-danger-rgb), 0.25);
}
.input-group > .form-control:focus,
.input-group > .form-select:focus,
.input-group > .form-floating > .form-control:focus,
.input-group > .form-floating > .form-select:focus {
    box-shadow: inset 0 1px 2px transparent, inset 0 0 0 30px var(--phoenix-emphasis-bg);
}
.input-group:has(> .form-control:focus, > .form-select:focus, > .form-floating > .form-control:focus, > .form-floating > .form-select:focus) > .btn {
    border-color: #3874ff;
}
.input-group:has(> .is-invalid:focus, > .form-floating > .is-invalid:focus) > .btn {
    border-color: var(--phoenix-danger);
}
