/* ═══════════════════════════════════════════════
 *  RFID 전송내역 — 모던 리디자인
 *  팔레트: 네이비(navy) + 한 포인트 주황
 * ═══════════════════════════════════════════════ */

.rf-page {
	padding: 22px 28px;
	color: #0f172a;
}

/* ─── 헤더 ─────────────────────────── */
.rf-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 18px;
	padding-bottom: 16px;
	border-bottom: 2px solid #e2e8f0;
}
.rf-header__left {
	display: flex;
	align-items: center;
	gap: 14px;
}
.rf-header__icon {
	width: 52px;
	height: 52px;
	background: linear-gradient(135deg, #2a3a5f, #1e2b4d);
	color: #fff;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	box-shadow: 0 4px 12px rgba(42, 58, 95, 0.25);
}
.rf-header__title {
	margin: 0;
	font-size: 22px;
	font-weight: 800;
	color: #0f172a;
	letter-spacing: -0.3px;
}
.rf-header__desc {
	margin: 3px 0 0;
	font-size: 12.5px;
	color: #64748b;
}
.rf-header__actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.rf-stat {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	background: #eef2f7;
	border: 1px solid #c7d2e0;
	border-radius: 8px;
	white-space: nowrap;
}

/* ── 툴바 옵션 토글 (iOS 스타일 스위치) ── */
.rf-switch {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 5px 12px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	cursor: pointer;
	user-select: none;
	white-space: nowrap;
	transition: background .12s, border-color .12s;
}
.rf-switch:hover { background: #f1f5f9; border-color: #cbd5e1; }
.rf-switch input { position: absolute; opacity: 0; pointer-events: none; }
.rf-switch__track {
	position: relative;
	width: 32px;
	height: 18px;
	background: #cbd5e1;
	border-radius: 999px;
	transition: background .15s ease;
	flex: 0 0 32px;
}
.rf-switch__track::before {
	content: '';
	position: absolute;
	top: 2px;
	left: 2px;
	width: 14px;
	height: 14px;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(0,0,0,.25);
	transition: transform .15s ease;
}
.rf-switch input:checked + .rf-switch__track { background: #3b82f6; }
.rf-switch input:checked + .rf-switch__track::before { transform: translateX(14px); }
.rf-switch input:focus-visible + .rf-switch__track { box-shadow: 0 0 0 2px rgba(59,130,246,.35); }
.rf-switch__label {
	font-size: 12.5px;
	color: #475569;
	font-weight: 600;
}
/* ── 날짜 정렬 [정순|역순] 세그먼트 버튼 ── */
.rf-seg {
	display: inline-flex;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}
.rf-seg__btn {
	padding: 6px 14px;
	border: none;
	background: #fff;
	color: #64748b;
	font-size: 12.5px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: all 0.15s;
}
.rf-seg__btn + .rf-seg__btn { border-left: 1px solid #e2e8f0; }
.rf-seg__btn:hover { background: #f8fafc; color: #334155; }
.rf-seg__btn--active {
	background: #2563eb;
	color: #fff;
}
.rf-seg__btn--active:hover { background: #2563eb; color: #fff; }
.rf-stat__label {
	font-size: 12.5px;
	color: #1e2b4d;
	font-weight: 600;
}
.rf-stat__value {
	font-size: 14px;
	color: #2a3a5f;
	font-weight: 800;
	line-height: 1.2;
}

/* 특이사항 로딩 OFF — 컬럼 통째로 숨김 (헤더 + 셀)
 *   body.rf-no-pclr 클래스는 rfApplyPclrBodyClass() 에서 토글.
 *   "-" 표시 셀도 보이지 않음 = 시각적으로 깔끔 + 가로폭도 회수. */
body.rf-no-pclr .rf-th-pclr,
body.rf-no-pclr .rf-pclr { display: none !important; }

/* ─── 상세 활동 표시(activity) — 컬럼 스왑 ───────────────────────
 *   기본: 활동 컬럼(신체활동지원/가사·일상생활지원) 숨김.
 *   body.rf-act-mode: 구분·급여종류·특정내용·처리상태 숨김 + 활동 컬럼 노출.
 *   body.rf-act-mode 토글 = rfApplyActBodyClass(). */
.rf-c-bdyact,
.rf-c-evract { display: none; }
body.rf-act-mode .rf-c-gubun,
body.rf-act-mode .rf-c-clsfc,
body.rf-act-mode .rf-c-detail,
body.rf-act-mode .rf-c-status { display: none !important; }
body.rf-act-mode .rf-c-bdyact,
body.rf-act-mode .rf-c-evract { display: table-cell; min-width: 150px; }

/* 활동 항목 태그 (체크된 항목만) */
.rf-act-cell { white-space: normal; line-height: 1.7; }
/* 값이 있는 활동셀 — 클릭하면 편집 모달 (상세 활동 외부 표시 ON 시) */
body.rf-act-mode .rf-act-cell--has { cursor: pointer; transition: background .12s; }
body.rf-act-mode .rf-act-cell--has:hover { background: #f5f3ff; }
body.rf-act-mode .rf-act-cell--has:hover .rf-act-tag { background: #e0e7ff; }
/* 특이사항 칸 — 상세 활동 표시 ON 이면 글이 없어도 «클릭해서 수정» 입구가 된다.
   [title] 이 붙은 칸만 — 키가 없는 칸은 열리지 않으므로 손가락도 안 낸다. */
body.rf-act-mode .rf-pclr[title] { cursor: pointer; transition: background .12s; }
body.rf-act-mode .rf-pclr[title]:hover { background: #f5f3ff; }
.rf-pclr-text.is-edit { cursor: pointer; }
.rf-act-tag {
	display: inline-block;
	margin: 1px 2px;
	padding: 1px 8px;
	border-radius: 999px;
	background: #eef2ff;
	color: #4338ca;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
}

/* ─── 버튼 공통 ─────────────────────── */
.rf-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border: 1px solid transparent;
	border-radius: 6px;
	font-size: 12.5px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.15s;
	font-family: inherit;
	white-space: nowrap;
}
.rf-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.rf-btn--primary {
	background: linear-gradient(180deg, #2a3a5f, #1e2b4d);
	color: #fff;
	border-color: #1e2b4d;
}
.rf-btn--primary:hover { background: linear-gradient(180deg, #1e2b4d, #152043); }
.rf-btn--outline {
	background: #fff;
	color: #475569;
	border-color: #cbd5e1;
}
.rf-btn--outline:hover { background: #f8fafc; border-color: #94a3b8; }
.rf-btn--ghost {
	background: transparent;
	color: #475569;
	border-color: transparent;
}
.rf-btn--ghost:hover { background: #f1f5f9; }
.rf-btn--success {
	background: linear-gradient(180deg, #10b981, #059669);
	color: #fff;
	border-color: #047857;
}
.rf-btn--success:hover { background: linear-gradient(180deg, #059669, #047857); }
.rf-btn--danger {
	background: linear-gradient(180deg, #ef4444, #dc2626);
	color: #fff;
	border-color: #b91c1c;
}
.rf-btn--danger:hover { background: linear-gradient(180deg, #dc2626, #b91c1c); }
.rf-btn--sm {
	padding: 6px 10px;
	font-size: 11.5px;
}

/* ─── 주의 안내 ─────────────────────── */
.rf-notice {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 12px 16px;
	background: linear-gradient(90deg, #fef2f2, #fff7ed);
	border: 1px solid #fecaca;
	border-left: 4px solid #ef4444;
	border-radius: 8px;
	margin-bottom: 16px;
}
.rf-notice__item {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 12.5px;
	color: #7f1d1d;
	line-height: 1.55;
}
.rf-notice__item i {
	color: #dc2626;
	margin-top: 2px;
	flex-shrink: 0;
}
.rf-notice__item b { color: #991b1b; font-weight: 700; }

/* ─── 필터 ─────────────────────────── */
.rf-filters {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 10px;
	padding: 14px 16px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	margin-bottom: 14px;
}
.rf-filter {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}
.rf-filter--date { min-width: 230px; }
.rf-filter--search { min-width: 160px; }
.rf-filter--btn {
	justify-content: flex-end;
	flex-direction: row;
	align-items: flex-end;
	gap: 6px;
}
.rf-filter label {
	font-size: 11.5px;
	color: #475569;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 4px;
}
.rf-filter label::before {
	content: "●";
	color: #2a3a5f;
	font-size: 7px;
}
.rf-filter input[type="text"],
.rf-filter input[type="date"],
.rf-filter select {
	padding: 7px 10px;
	border: 1px solid #cbd5e1;
	border-radius: 5px;
	font-size: 12.5px;
	background: #fff;
	color: #0f172a;
	font-family: inherit;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.rf-filter input:focus, .rf-filter select:focus {
	outline: none;
	border-color: #2a3a5f;
	box-shadow: 0 0 0 3px rgba(42, 58, 95, 0.12);
}
/* 날짜 범위 피커 (flatpickr) — documents/ 와 동일 스타일 */
.rf-date-picker {
	position: relative;
	display: flex;
	align-items: center;
	cursor: pointer;
}
.rf-date-picker i {
	position: absolute;
	left: 10px;
	color: #2a3a5f;
	font-size: 14px;
	pointer-events: none;
	z-index: 1;
}
.rf-date-picker::after {
	content: '';
	position: absolute;
	left: 34px;  /* 아이콘 끝(≈24px) + 10px 여백 */
	top: 6px;
	bottom: 6px;
	width: 1px;
	background: #e2e8f0;
	pointer-events: none;
}
.rf-filter input.rf-date-input,
input.rf-date-input {
	width: 100%;
	padding: 7px 10px 7px 46px !important;
	border: 1px solid #cbd5e1;
	border-radius: 5px;
	font-size: 12.5px;
	font-family: inherit;
	color: #334155;
	background: #fff;
	cursor: pointer;
	max-width: 220px;
}
.rf-filter input.rf-date-input:focus,
input.rf-date-input:focus {
	border-color: #2a3a5f;
	outline: none;
	box-shadow: 0 0 0 3px rgba(42, 58, 95, 0.12);
}
/* 조회구분: select + input 을 한 박스처럼 통합 */
.rf-filter--search .rf-filter__group {
	display: flex;
	align-items: stretch;
	border: 1px solid #cbd5e1;
	border-radius: 5px;
	background: #fff;
	overflow: hidden;
	transition: border-color 0.15s, box-shadow 0.15s;
	min-width: 0;
}
.rf-filter--search .rf-filter__group:focus-within {
	border-color: #2a3a5f;
	box-shadow: 0 0 0 3px rgba(42, 58, 95, 0.12);
}
.rf-filter--search .rf-filter__group > select {
	border: none !important;
	border-right: 1px solid #e2e8f0 !important;
	border-radius: 0 !important;
	background: #f8fafc !important;
	padding: 7px 20px 7px 8px !important;
	font-size: 11.5px !important;
	color: #475569;
	min-width: 0;
	max-width: 85px;
	flex-shrink: 0;
	box-shadow: none !important;
}
.rf-filter--search .rf-filter__group > select:focus {
	outline: none;
	box-shadow: none !important;
}
.rf-filter--search .rf-filter__group > input[type="text"] {
	border: none !important;
	border-radius: 0 !important;
	padding: 7px 10px !important;
	flex: 1;
	min-width: 0;
	box-shadow: none !important;
	background: transparent !important;
}
.rf-filter--search .rf-filter__group > input[type="text"]:focus {
	outline: none;
	box-shadow: none !important;
}

/* ─── 툴바 ─────────────────────────── */
.rf-toolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	padding: 10px 14px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	margin-bottom: 10px;
}
.rf-toolbar__left {
	display: flex;
	align-items: center;
	gap: 10px;
}
.rf-toolbar__right {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}
.rf-toolbar__group {
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 4px 10px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
}
.rf-toolbar__label {
	font-size: 11.5px;
	color: #475569;
	font-weight: 600;
	margin-right: 4px;
}
.rf-toolbar__label--accent { color: #2a3a5f; }
.rf-count {
	font-size: 13px;
	color: #334155;
	font-weight: 600;
}
.rf-count b {
	color: #2a3a5f;
	font-size: 16px;
	font-weight: 800;
	margin: 0 2px;
}
.rf-tag {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 6px 10px;
	border-radius: 15px;
	font-size: 11.5px;
	font-weight: 600;
	border: 1px solid transparent;
	cursor: pointer;
	font-family: inherit;
}
.rf-tag--blue {
	background: #dbeafe;
	color: #1e40af;
	border-color: #93c5fd;
}
.rf-tag--blue:hover { background: #bfdbfe; }

/* ─── 테이블 ─────────────────────── */
.rf-table-wrap {
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	overflow: auto;
	background: #fff;
	max-height: calc(100vh - 280px);
	min-height: 380px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.rf-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
	white-space: nowrap;
}
.rf-table thead th {
	background: linear-gradient(180deg, #2a3a5f, #1e2b4d);
	color: #fff;
	font-weight: 700;
	padding: 10px 8px;
	border: 1px solid #0f1f3d;
	text-align: center;
	font-size: 12.5px;
	position: sticky;
	top: 0;
	z-index: 2;
}
.rf-table thead tr:nth-child(2) th { top: 35px; }
.rf-col-group {
	background: linear-gradient(180deg, #1e2b4d, #152043) !important;
}
.rf-col-check { width: 38px; }
.rf-col-no { width: 48px; }

/* 특이사항 컬럼 — 빈 상태에서도 너비 유지 */
.rf-table .rf-th-pclr { min-width: 280px; }

.rf-table tbody td {
	padding: 9px 8px;
	border: 1px solid #e2e8f0;
	text-align: center;
	background: #fff;
	color: #0f172a;
}
.rf-table tbody tr:nth-child(even) td { background: #f8fafc; }
.rf-table tbody tr:hover td { background: #eef2f7; }

.rf-table tbody td.rf-col-name b { color: #0f172a; font-weight: 700; }
.rf-table tbody td.rf-mono {
	font-family: 'Consolas', 'Menlo', monospace;
	font-size: 12px;
	color: #475569;
}

/* 수급자 / 요양요원 — 2줄 셀 (이름 + (서명여부)) */
.rf-table tbody td.rf-col-person {
	line-height: 1.35;
	padding: 6px 8px;
}
.rf-table tbody td.rf-col-person b {
	display: block;
	color: #0f172a;
	font-weight: 700;
	font-size: 13px;
}
.rf-table tbody td.rf-col-person .rf-sign {
	display: block;
	font-size: 11.5px;
	color: #64748b;
	margin-top: 1px;
}

/* 총시간 3컬럼 (신체/정서/가사) */
.rf-table tbody td.rf-tm-cell {
	font-size: 12px;
	color: #475569;
	min-width: 50px;
}
.rf-table tbody td.rf-tm-cell b {
	color: #2a3a5f;
	font-weight: 700;
	font-family: 'Consolas', 'Menlo', monospace;
}
.rf-table tbody td.rf-tm-total {
	background: #eef2f7;
	border-right: 1px solid #bae6fd !important;
}
.rf-table tbody td.rf-tm-total b {
	color: #1e2b4d;
}


/* 날짜/시간 2행 분리 (서비스제공 시작·종료) */
.rf-dt-date, .rf-dt-time {
	display: block;
	line-height: 1.35;
}
.rf-dt-date {
	font-size: 12.5px;
	color: #0f172a;
	font-weight: 600;
}
.rf-dt-time {
	font-size: 12px;
	color: #475569;
	font-family: 'Consolas', 'Menlo', monospace;
}

/* 진행 중(서비스 종료 미입력) 강조 */
.rf-ongoing {
	color: #dc2626;
	font-weight: 700;
}
.rf-ongoing .rf-dt-date,
.rf-ongoing .rf-dt-time { color: #dc2626; font-weight: 700; }
.rf-muted { color: #cbd5e1; }

/* 사용여부 드롭다운 + 취소 버튼 (공단 원본 매칭) */
.rf-col-use {
	white-space: nowrap;
	padding: 4px 6px !important;
}
.rf-use-select {
	padding: 3px 20px 3px 8px;
	border: 1px solid #93c5fd;
	border-radius: 3px;
	background: #eff6ff;
	font-size: 11px;
	color: #1e40af;
	font-family: inherit;
	cursor: pointer;
	height: 24px;
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path fill='%231e40af' d='M2 4l4 4 4-4'/></svg>");
	background-repeat: no-repeat;
	background-position: right 6px center;
	background-size: 10px;
}
.rf-use-select:focus {
	outline: none;
	border-color: #2a3a5f;
	box-shadow: 0 0 0 2px rgba(42,58,95,0.15);
}
.rf-use-cancel {
	padding: 3px 10px;
	border: 1px solid #93c5fd;
	border-radius: 3px;
	background: #eff6ff;
	color: #1e40af;
	font-size: 11px;
	font-weight: 600;
	cursor: pointer;
	height: 24px;
	margin-left: 2px;
}
.rf-use-cancel:hover {
	background: #dbeafe;
	border-color: #60a5fa;
}

/* 상태 뱃지 */
.rf-status {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 700;
	white-space: nowrap;
	border: 1px solid transparent;
}
.rf-status--ok       { background: #dcfce7; color: #166534; border-color: #86efac; }
.rf-status--pending  { background: #fef3c7; color: #92400e; border-color: #fcd34d; }
.rf-status--warn     { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
.rf-status--modified { background: #dbeafe; color: #1e40af; border-color: #93c5fd; }

/* 인라인 칩 (서명 등) */
.rf-chip {
	display: inline-block;
	padding: 1px 6px;
	border-radius: 3px;
	font-size: 10px;
	font-weight: 700;
	margin-left: 4px;
	vertical-align: middle;
}
.rf-chip--green { background: #dcfce7; color: #166534; }

.rf-table tbody tr.rf-empty td {
	padding: 80px 20px !important;
	background: #fff !important;
	color: #94a3b8 !important;
	text-align: center !important;
	vertical-align: middle !important;
}
.rf-table tbody tr.rf-empty td > * {
	display: block;
	text-align: center;
}
.rf-table tbody tr.rf-empty i {
	font-size: 48px;
	color: #cbd5e1;
	margin: 0 auto 12px;
	width: 100%;
}
.rf-table tbody tr.rf-empty p {
	margin: 0 auto 6px;
	font-size: 14px;
	color: #64748b;
	width: 100%;
}
.rf-table tbody tr.rf-empty p b { color: #334155; }
.rf-table tbody tr.rf-empty small {
	font-size: 12px;
	color: #94a3b8;
	line-height: 1.6;
	margin: 0 auto;
	width: 100%;
}

/* ─── 하단 ─────────────────────────── */
.rf-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	padding: 12px 16px;
	margin-top: 10px;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
}
.rf-footer__summary {
	font-size: 12.5px;
	color: #334155;
	font-weight: 600;
}
.rf-footer__hint {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 11.5px;
	color: #64748b;
}
.rf-footer__hint i { color: #f59e0b; }

/* ─── RFID 태그 정보 카드 ─────────────── */
.rf-info-card {
	margin-top: 14px;
	padding: 14px 18px;
	background: linear-gradient(135deg, #eef2f7, #dbe4ef);
	border: 1px solid #a5b4cb;
	border-radius: 10px;
}
.rf-info-card__head {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
	font-size: 13px;
	color: #152043;
}
.rf-info-card__head i { font-size: 15px; color: #2a3a5f; }
.rf-info-card__head b { font-weight: 700; }
.rf-info-card__sub {
	margin-left: auto;
	font-size: 11px;
	color: #1e2b4d;
}
.rf-info-card__sub code {
	padding: 1px 6px;
	background: #fff;
	border: 1px solid #c7d2e0;
	border-radius: 3px;
	font-family: 'Consolas', 'Menlo', monospace;
	font-size: 10.5px;
	color: #2a3a5f;
}
.rf-info-card__body {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.rf-tag-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	background: #fff;
	border: 1px solid #c7d2e0;
	border-radius: 16px;
	font-size: 12px;
	color: #152043;
}
.rf-tag-chip b {
	color: #2a3a5f;
	font-weight: 700;
	font-family: 'Consolas', 'Menlo', monospace;
	font-size: 11px;
	padding: 1px 6px;
	background: #eef2f7;
	border-radius: 3px;
}

/* ═══ RFID 상세 모달 (npfc624p21) ═══ */
.rf-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
}
.rf-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
	backdrop-filter: blur(2px);
}
.rf-modal__panel {
	position: relative;
	width: 92%;
	max-width: 640px;
	max-height: 92vh;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0,0,0,0.3);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}
.rf-modal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 20px;
	background: linear-gradient(180deg, #2a3a5f, #1e2b4d);
	color: #fff;
}
.rf-modal__head b { font-weight: 700; font-size: 14px; margin-left: 6px; }
.rf-modal__sub {
	margin-left: 10px;
	font-size: 11px;
	opacity: 0.85;
	background: rgba(255,255,255,0.15);
	padding: 2px 8px;
	border-radius: 4px;
	font-family: 'Consolas', 'Menlo', monospace;
}
.rf-modal__close {
	width: 28px;
	height: 28px;
	border-radius: 6px;
	border: none;
	background: rgba(255,255,255,0.18);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
.rf-modal__close:hover { background: rgba(255,255,255,0.3); }
.rf-modal__body {
	padding: 18px 22px;
	overflow-y: auto;
	flex: 1;
}
.rf-detail-loading, .rf-detail-error {
	text-align: center;
	padding: 60px 20px;
	color: #64748b;
	font-size: 13px;
}
.rf-detail-loading i { font-size: 28px; color: #2a3a5f; margin-bottom: 10px; display: block; }
.rf-detail-error i { font-size: 28px; color: #dc2626; margin-bottom: 10px; display: block; }

/* ═══ 일자별 분할 조회 진행 모달 ═══ */
.rf-progress-text {
	font-size: 14px;
	font-weight: 600;
	color: #1e2b4d;
	margin-bottom: 14px;
	min-height: 20px;
}
.rf-progress-bar {
	height: 14px;
	background: #e5e7eb;
	border-radius: 7px;
	overflow: hidden;
	margin-bottom: 8px;
}
.rf-progress-bar__fill {
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, #2a3a5f, #4a5a8f);
	transition: width 0.25s ease;
	border-radius: 7px;
}
.rf-progress-meta {
	display: flex;
	justify-content: space-between;
	font-size: 12px;
	color: #64748b;
	font-variant-numeric: tabular-nums;
}

/* Detail 그리드 */
.rf-d-grid { display: flex; flex-direction: column; gap: 10px; }
.rf-d-header-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}
.rf-d-header-grid .rf-d-row {
	grid-template-columns: 90px 1fr;
}
@media (max-width: 600px) {
	.rf-d-header-grid { grid-template-columns: 1fr; }
}
.rf-d-row {
	display: grid;
	grid-template-columns: 120px 1fr;
	align-items: center;
	gap: 10px;
	padding: 6px 10px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	font-size: 12.5px;
}
.rf-d-row label {
	font-weight: 700;
	color: #475569;
	font-size: 11.5px;
}
.rf-d-row > div { color: #0f172a; }
.rf-d-sub { color: #64748b; font-size: 11px; margin-left: 4px; }
.rf-d-sub b { color: #2a3a5f; }
.rf-d-textarea {
	min-height: 50px;
	padding: 8px 10px;
	background: #fff;
	border: 1px solid #cbd5e1;
	border-radius: 4px;
	font-size: 12px;
	line-height: 1.5;
}

/* Section (요양기타정보 / 신체활동지원 등) */
.rf-d-section {
	padding: 12px 14px;
	background: #fffbeb;
	border: 1px solid #fde68a;
	border-radius: 8px;
}
.rf-d-section__title {
	font-size: 12px;
	font-weight: 700;
	color: #92400e;
	margin-bottom: 10px;
	padding-bottom: 6px;
	border-bottom: 1px solid #fde68a;
}
.rf-d-cat-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 11.5px;
}
.rf-d-cat-table td {
	padding: 5px 10px;
	border-bottom: 1px solid #fef3c7;
}
.rf-d-cat-table td:first-child { color: #78350f; font-weight: 600; }
.rf-d-num {
	text-align: right;
	width: 80px;
}

/* 숫자/일반 input (카테고리 시간, 실수 횟수) */
.rf-d-input {
	width: 70px;
	padding: 5px 8px;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	font-family: 'Consolas', 'Menlo', monospace;
	font-size: 12px;
	text-align: right;
	color: #0f172a;
	background: #fff;
	font-weight: 700;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.rf-d-input:focus {
	outline: none;
	border-color: #2a3a5f;
	box-shadow: 0 0 0 2px rgba(42,58,95,0.15);
}
.rf-d-freq {
	display: flex;
	align-items: center;
	gap: 6px;
	color: #475569;
	font-size: 12px;
}
.rf-d-freq .rf-d-input { width: 60px; }

/* textarea (특이사항) */
.rf-d-row--textarea { grid-template-columns: 120px 1fr; align-items: flex-start; padding: 10px; }
.rf-d-ta {
	width: 100%;
	min-height: 60px;
	padding: 8px 10px;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	font-family: inherit;
	font-size: 12.5px;
	line-height: 1.5;
	color: #0f172a;
	background: #fff;
	resize: vertical;
	box-sizing: border-box;
}
.rf-d-ta:focus {
	outline: none;
	border-color: #2a3a5f;
	box-shadow: 0 0 0 2px rgba(42,58,95,0.15);
}

/* Radio (호전/유지/악화) */
.rf-d-radios {
	display: flex;
	gap: 14px;
}
.rf-d-radio {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	color: #64748b;
	cursor: pointer;
	user-select: none;
}
.rf-d-radio input[type="radio"] {
	accent-color: #dc2626;
	width: 14px;
	height: 14px;
	cursor: pointer;
}
.rf-d-radio.checked { color: #dc2626; font-weight: 700; }

/* 저장/닫기 버튼 영역 */
.rf-d-actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	padding-top: 8px;
	margin-top: 4px;
}
.rf-d-cat-table tr:last-child td { border-bottom: none; }
.rf-d-time-summary {
	display: flex;
	justify-content: space-between;
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid #fde68a;
	font-size: 11.5px;
	color: #78350f;
}
.rf-d-time-summary b { color: #0f172a; }
.rf-d-time-summary b.ok { color: #059669; }
.rf-d-time-summary b.warn { color: #dc2626; }

/* 체크박스 목록 */
.rf-d-chk-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 6px 14px;
}
.rf-d-chk {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: #78350f;
	padding: 4px 0;
	cursor: pointer;
	user-select: none;
}
.rf-d-chk input[type="checkbox"] {
	width: 15px;
	height: 15px;
	accent-color: #dc2626;
	cursor: pointer;
	margin: 0;
}
.rf-d-chk input[type="checkbox"]:checked + span { color: #0f172a; font-weight: 700; }
.rf-d-chk span { transition: color 0.1s; }

.rf-d-notice {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	border-radius: 6px;
	font-size: 11.5px;
	color: #1e40af;
}
.rf-d-notice i { color: #2563eb; }

/* ─── 반응형 ─────────────────────────── */
@media (max-width: 900px) {
	.rf-header { flex-direction: column; align-items: flex-start; gap: 12px; }
	.rf-toolbar { flex-direction: column; align-items: stretch; }
	.rf-toolbar__right { justify-content: space-between; }
}

/* ───── 실전송내역 모달 ───── */
.rf-rs-empty, .rf-rs-error {
	text-align: center;
	padding: 48px 20px;
	color: #64748b;
}
.rf-rs-empty i, .rf-rs-error i {
	font-size: 32px;
	display: block;
	margin-bottom: 12px;
}
.rf-rs-empty p { font-size: 15px; font-weight: 600; color: #0f172a; margin: 0 0 4px; }
.rf-rs-empty small { color: #94a3b8; font-size: 12px; }
.rf-rs-error { color: #991b1b; background: #fef2f2; border-radius: 10px; }
.rf-rs-error i { color: #ef4444; }

.rf-rs-note {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	margin-bottom: 14px;
	background: #f0f9ff;
	border: 1px solid #bae6fd;
	border-radius: 8px;
	color: #075985;
	font-size: 13px;
}
.rf-rs-note i { color: #0284c7; }
.rf-rs-note b { margin: 0 2px; }

.rf-rs-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 12.5px;
	white-space: nowrap;
}
.rf-rs-table thead th {
	background: linear-gradient(180deg, #2a3a5f, #1e2b4d);
	color: #fff;
	font-weight: 700;
	font-size: 12px;
	padding: 10px 8px;
	border: 1px solid #0f1f3d;
	text-align: center;
	position: sticky;
	top: 0;
	z-index: 1;
}
.rf-rs-table tbody td {
	padding: 9px 8px;
	border: 1px solid #e2e8f0;
	text-align: center;
	color: #0f172a;
}
.rf-rs-table tbody tr:nth-child(even) td { background: #f8fafc; }
.rf-rs-table tbody tr:hover td { background: #eef2f7; }
.rf-rs-table td.rf-mono { font-family: 'Consolas', 'Menlo', monospace; font-size: 11.5px; color: #475569; }
.rf-rs-table td.rf-rs-total b { color: #2a3a5f; font-weight: 700; font-family: 'Consolas', 'Menlo', monospace; }
.rf-rs-use-y {
	display: inline-block;
	padding: 2px 10px;
	background: #dcfce7;
	color: #166534;
	border-radius: 4px;
	font-size: 11.5px;
	font-weight: 600;
}
.rf-rs-use-n {
	display: inline-block;
	padding: 2px 10px;
	background: #fee2e2;
	color: #991b1b;
	border-radius: 4px;
	font-size: 11.5px;
	font-weight: 600;
}

/* 참고 라벨 (인지/심야/연장/종일/가족) */
.rf-rmk { white-space: nowrap; }
.rf-rmk-tag {
	display: inline-block;
	margin: 1px 2px;
	padding: 2px 7px;
	background: #ede9fe;
	color: #6d28d9;
	border: 1px solid #ddd6fe;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
}

/* 특이사항 — 종일방문요양 열 제거 후 공간 확장 */
.rf-pclr {
	min-width: 280px;
	max-width: 420px;
	white-space: normal;
}
.rf-pclr-text {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: 12px;
	line-height: 1.4;
	color: #475569;
	cursor: help;
	word-break: break-word;
}

/* 페이지 네비 + 합계 통합 바 (grid 3열 — 가운데 네비가 항상 정중앙) */
.rf-pager {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-top: 1px solid #e5e7eb;
	background: #fff;
}
.rf-pager__summary {
	font-size: 13px;
	color: #475569;
	font-weight: 600;
	justify-self: start;
}
.rf-pager__nav {
	display: flex;
	align-items: center;
	gap: 6px;
	justify-self: center;
}
.rf-pager__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 12px;
	border: 1px solid #e2e8f0;
	background: #fff;
	border-radius: 6px;
	color: #475569;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.rf-pager__btn:hover:not(:disabled) {
	background: #eef2ff;
	border-color: #c7d2fe;
	color: #4338ca;
}
.rf-pager__btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}
.rf-pager__pages {
	display: flex;
	align-items: center;
	gap: 4px;
}
.rf-pager__num {
	min-width: 32px;
	height: 32px;
	padding: 0 8px;
	border: 1px solid #e2e8f0;
	background: #fff;
	border-radius: 6px;
	color: #475569;
	font-size: 12.5px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.rf-pager__num:hover {
	background: #eef2ff;
	border-color: #c7d2fe;
	color: #4338ca;
}
.rf-pager__num.is-active {
	background: #4f46e5;
	border-color: #4f46e5;
	color: #fff;
	cursor: default;
}
.rf-pager__gap {
	color: #94a3b8;
	padding: 0 2px;
}
.rf-pager__info {
	color: #64748b;
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	justify-self: end;
}
@media (max-width: 768px) {
	.rf-pager {
		grid-template-columns: 1fr;
		padding: 10px 12px;
		gap: 8px;
	}
	.rf-pager__summary { justify-self: center; text-align: center; font-size: 12px; }
	.rf-pager__nav { justify-self: center; }
	.rf-pager__info { justify-self: center; order: 99; }
	.rf-pager__num { min-width: 30px; height: 30px; font-size: 12px; }
	.rf-pager__btn { padding: 6px 10px; font-size: 12px; }
}

/* 참고 컬럼 — 헤더 필터 뱃지 + 드롭다운 */
.rf-th-remark {
	position: relative;
}
.rf-th-remark__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}
.rf-th-filter-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 8px;
	border: 1px solid #cbd5e1;
	background: #fff;
	border-radius: 999px;
	color: #475569;
	font-size: 10.5px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.rf-th-filter-btn:hover {
	background: #eef2ff;
	border-color: #c7d2fe;
	color: #4338ca;
}
.rf-th-filter-btn i { font-size: 8px; }
.rf-th-filter-btn.is-active {
	background: #4f46e5;
	border-color: #4f46e5;
	color: #fff;
}
.rf-th-filter-cnt {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 14px;
	height: 14px;
	padding: 0 4px;
	background: rgba(255, 255, 255, 0.25);
	border-radius: 999px;
	font-size: 9.5px;
}
.rf-th-filter-pop {
	position: absolute;
	top: calc(100% + 4px);
	right: 0;          /* 참고 컬럼 우측에 앵커 — 특이사항 컬럼을 침범하지 않음 */
	left: auto;
	transform: none;
	z-index: 50;
	min-width: 140px;
	padding: 8px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-weight: normal;
	text-align: left;
}
.rf-th-filter-pop[hidden] { display: none !important; }
.rf-th-filter-pop label {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 8px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 12.5px;
	color: #1e293b;
}
.rf-th-filter-pop label:hover { background: #f1f5f9; }
.rf-th-filter-pop label input { margin: 0; cursor: pointer; }
.rf-th-filter-pop label span { font-weight: 500; }
.rf-th-filter-foot {
	margin-top: 4px;
	padding-top: 6px;
	border-top: 1px solid #e2e8f0;
	display: flex;
	justify-content: flex-end;
}
.rf-th-filter-foot button {
	padding: 5px 10px;
	border: 1px solid #e2e8f0;
	background: #fff;
	border-radius: 6px;
	color: #64748b;
	font-size: 11.5px;
	font-weight: 600;
	cursor: pointer;
}
.rf-th-filter-foot button:hover {
	background: #fef2f2;
	color: #ef4444;
	border-color: #fecaca;
}

/* 총시간 컬럼 — 헤더 필터 (참고와 동일한 컴포넌트 재사용) */
.rf-th-totmin { position: relative; }
.rf-th-totmin__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}

/* 스크롤 가능한 드롭다운 — 옵션이 많을 때 */
.rf-th-filter-pop--scroll {
	max-height: 320px;
	overflow-y: auto;
}
.rf-th-filter-empty {
	padding: 16px 12px;
	font-size: 12px;
	color: #94a3b8;
	text-align: center;
}

/* ═══════════════════════════════════════════════
 *  모바일: PC 전용 안내 모달 (최상위)
 * ═══════════════════════════════════════════════ */
.rf-mobile-block { display: none; }

@media (max-width: 768px) {
	.rf-mobile-block {
		display: flex;
		position: fixed;
		inset: 0;
		z-index: 99999;
		background: rgba(15, 23, 42, 0.85);
		backdrop-filter: blur(4px);
		align-items: center;
		justify-content: center;
		padding: 20px;
	}
	.rf-mobile-block__card {
		max-width: 360px;
		width: 100%;
		background: #fff;
		border-radius: 16px;
		padding: 32px 24px 24px;
		text-align: center;
		box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	}
	.rf-mobile-block__icon {
		width: 64px;
		height: 64px;
		margin: 0 auto 16px;
		display: flex;
		align-items: center;
		justify-content: center;
		background: linear-gradient(135deg, #2a3a5f, #1e2b4d);
		color: #fff;
		border-radius: 16px;
		font-size: 26px;
	}
	.rf-mobile-block__title {
		margin: 0 0 10px;
		font-size: 18px;
		font-weight: 800;
		color: #0f172a;
	}
	.rf-mobile-block__desc {
		margin: 0 0 22px;
		font-size: 13.5px;
		color: #64748b;
		line-height: 1.6;
	}
	.rf-mobile-block__btn {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 7px;
		width: 100%;
		padding: 12px 16px;
		border: none;
		background: linear-gradient(180deg, #2a3a5f, #1e2b4d);
		color: #fff;
		border-radius: 10px;
		font-size: 14px;
		font-weight: 700;
		cursor: pointer;
		transition: opacity 0.15s, transform 0.15s;
	}
	.rf-mobile-block__btn:hover {
		opacity: 0.92;
	}
	.rf-mobile-block__btn:active {
		transform: scale(0.98);
	}

	/* 본문 자체는 그대로 두되 스크롤·상호작용 막음 (모달이 덮음) */
	body { overflow: hidden; }
}
