/* ========================================
   ERP 시스템 - 공통 스타일
   업무일지 모듈 기준 (2025-12-06)
   ======================================== */

/* ========== CSS 변수 ========== */
:root {
    /* 폰트 크기 (최소 ~ 최대) */
    --font-size-xs: calc(1rem - 2px);   /* 11px - 최소 */
    --font-size-sm: calc(1rem - 1px);   /* 12px - 작게 */
    --font-size-base: 1rem;              /* 13px - 기본 */
    --font-size-md: calc(1rem + 1px);   /* 14px - 중간 */
    --font-size-lg: calc(1rem + 3px);   /* 16px - 크게 */
    --font-size-xl: calc(1rem + 6px);   /* 19px - 최대 */

    /* 폰트 색상 (기본 ~ 최연) */
    --color-text: #333;           /* 기본 */
    --color-text-muted: #666;     /* 중간 */
    --color-text-light: #999;     /* 연하게 */
    --color-text-lighter: #bbb;   /* 최연 */

    /* 배지 색상 */
    /* 숫자 배지: 빨강, 초록, 회색 */
    --color-badge-bg: #dc3545;              /* 빨간 숫자배지 - 배경 */
    --color-badge-text: #fff;               /* 빨간 숫자배지 - 텍스트 */
    --color-badge-success: #28a745;         /* 초록 숫자배지 - 배경 */
    --color-badge-info: #808080;            /* 회색 숫자배지 - 배경 */

    /* 태그 배지: 기본, 빨강 */
    /* 기본: --color-bg-hover, --color-text, --color-border */
    --color-notification-bg: #ffebee;       /* 빨강 - 배경 */
    --color-notification-text: #c62828;     /* 빨강 - 텍스트 */
    --color-notification-border: #ffcdd2;   /* 빨강 - 테두리 */

    /* 색상 - 주요 (파란색 계열) */
    --color-primary: #4a90d9;
    --color-primary-hover: #3a80c9;
    --color-primary-light: #e3f2fd;

    /* 배경 색상: 기본 (#fff 흰색) */
    --color-bg: #fff;               /* 기본 - rgb(255, 255, 255) */
    --color-bg-light: #fafafa;      /* 밝게 - rgb(250, 250, 250) */
    --color-bg-muted: #f8f8f8;      /* 흐리게 - rgb(248, 248, 248) */
    --color-bg-239: #efefef;        /* 239색 - rgb(239, 239, 239) */

    /* 상호작용 배경 색상 */
    --color-bg-hover: #f5f5f5;      /* 호버 전용 (마우스 올렸을 때) - rgb(245, 245, 245) */
    --color-bg-active: #808080;     /* 선택 상태 (탭/버튼 활성화) - rgb(128, 128, 128) */

    /* 색상 - 테두리 */
    --color-border: #e0e0e0;
    --color-border-light: #f0f0f0;
    --color-border-dark: #d0d0d0;
    --color-border-hover: #b0b0b0;

    /* 색상 - 상태 */
    --color-success-bg: #d4edda;
    --color-success-text: #155724;
    --color-warning-bg: #fff3cd;
    --color-warning-text: #856404;
    --color-danger-bg: #f8d7da;
    --color-danger-text: #721c24;
    --color-danger: #dc3545;
    --color-danger-hover: #c82333;
}

/* ========== 해상도별 폰트 스케일링 ========== */
html {
    font-size: 13px;
}

@media (max-width: 1920px) {
    html { font-size: 13px; }
}

@media (min-width: 2560px) {
    html { font-size: 15px; }
}

@media (min-width: 3840px) {
    html { font-size: 17px; }
}

/* ========== 기본 리셋 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========== 기본 스타일 ========== */
body {
    font-family: 'Gulim', '굴림', sans-serif;
    font-size: var(--font-size-base);
    color: var(--color-text);
    background: var(--color-bg);
    min-height: 100vh;
}

/* ========== 버튼 ========== */
.btn {
    padding: 0.5rem 1rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border-dark);
    border-radius: 2px;
    font-family: system-ui, sans-serif;
    font-size: var(--font-size-base);
    color: var(--color-text);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background: var(--color-bg-hover);
    border-color: var(--color-border-hover);
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary-hover);
}

.btn-primary:hover {
    background: var(--color-primary-hover);
}

.btn-danger {
    background: var(--color-bg);
    color: var(--color-text);
    border-color: var(--color-border-dark);
}

.btn-danger:hover {
    background: var(--color-danger);
    color: #fff;
    border-color: var(--color-danger);
}

.btn-success {
    background: var(--color-success-bg);
    color: var(--color-success-text);
    border-color: #28a745;
}

.btn-success:hover {
    background: #c3e6cb;
}

.btn-warning {
    background: var(--color-warning-bg);
    color: var(--color-warning-text);
    border-color: #ffc107;
}

.btn-warning:hover {
    background: #ffe69c;
}

.btn-cancel {
    font-weight: normal;
}

.btn-sm {
    padding: 0.33rem 0.67rem;
    font-size: var(--font-size-sm);
}

/* ========== 입력 요소 ========== */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="date"],
textarea,
select {
    padding: 0.33rem 0.5rem;
    border: 1px solid var(--color-border-dark);
    border-radius: 2px;
    font-family: system-ui, sans-serif;
    font-size: var(--font-size-base);
    background: var(--color-bg);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-primary);
}

input:read-only,
textarea:read-only {
    background: #e0e0e0;
}

select {
    padding-right: 1.5rem;
    background: var(--color-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M2 4l4 4 4-4z'/%3E%3C/svg%3E") no-repeat right 0.5rem center;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

/* ========== 폼 그룹 ========== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.42rem;
    font-size: var(--font-size-base);
    font-weight: bold;
    color: var(--color-text);
}

.required {
    color: #ff0000;
}

.hint {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

/* ========== 테이블 공통 ========== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-bg);
    font-size: var(--font-size-base);
}

.data-table th {
    background: var(--color-bg-light);
    padding: 0.5rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    font-weight: bold;
    color: var(--color-text-muted);
}

.data-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--color-border-light);
    vertical-align: middle;
}

.data-table tbody tr {
    cursor: pointer;
}

.data-table tbody tr:hover {
    background: var(--color-bg-hover);
}

.data-table tbody tr.selected {
    background: #c0c0ff;
}

/* ========== 배지 ========== */

/* 1. 배지 (헤더: 숫자, 업무일지: N)
   사용법:
   - 기본: <span class="badge">5</span>                  → 빨강 배지
   - 성공: <span class="badge badge-success">3</span>    → 초록 배지
   - 정보: <span class="badge badge-info">10</span>      → 회색 배지

   색상 변수:
   - --color-badge-bg: #dc3545 (빨강)
   - --color-badge-text: #fff (흰색)
   - --color-badge-success: #28a745 (초록)
   - --color-badge-info: #808080 (회색)
*/

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.4rem;
    height: 1.4rem;
    background: var(--color-badge-bg);
    color: var(--color-badge-text);
    font-size: var(--font-size-xs);      /* 최소 */
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1;
    padding: 0 0.35rem;
    border-radius: 0.7rem;
    margin-left: 0.25rem;
    vertical-align: middle;
    text-align: center;
}

.badge-success {
    background: var(--color-badge-success);
}

.badge-info {
    background: var(--color-badge-info);
}

/* 2. 상태 배지 (업무일지 상태) */
.status-badge {
    display: inline-block;
    padding: 0.17rem 0.5rem;
    border-radius: 2px;
    font-size: var(--font-size-sm);
    font-weight: bold;
}

.status-badge-진행중 {
    background: #e8e8e8;
    color: var(--color-text);
}

.status-badge-보류 {
    background: var(--color-warning-bg);
    color: var(--color-warning-text);
}

.status-badge-완료 {
    background: var(--color-success-bg);
    color: var(--color-success-text);
}

.status-badge-취소 {
    background: var(--color-danger-bg);
    color: var(--color-danger-text);
}

/* 3. 태그 배지 (기본 태그 / 빨간 태그) */
.edited-badge,
.comment-count {
    background: var(--color-bg-hover);      /* 기본 태그 */
    color: var(--color-text);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: var(--font-size-sm);
    border: 1px solid var(--color-border);
}

.edited-badge.has-edit-notification,
.comment-count.has-new {
    background: var(--color-notification-bg);       /* 빨간 태그 */
    color: var(--color-notification-text);
    border-color: var(--color-notification-border);
}

/* ========== 알림 메시지 (Alert) ========== */
.alert {
    padding: 0.67rem;
    margin-bottom: 1.25rem;
    font-size: var(--font-size-base);
    border: 1px solid var(--color-border-dark);
    border-radius: 2px;
}

.alert-danger {
    background: #ffb0b0;
    color: #800000;
}

.alert-success {
    background: #b0ffb0;
    color: #008000;
}

.alert-warning {
    background: #ffffb0;
    color: #808000;
}

.alert-info {
    background: #b0d0ff;
    color: #000080;
}

/* ========== 토스트 메시지 ========== */
/*
 * 토스트 종류:
 * - info (기본): 일반 알림 - 회색, 2.5초
 * - success: 성공 알림 - 초록, 2초
 * - warning: 경고 알림 - 노랑, 3.5초
 * - error: 오류 알림 - 빨강, 4초
 * - admin: 관리자 기능 알림 - 보라, 2초
 */
.toast {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: #f8f9fa;
    border: 1px solid #6c757d;
    border-left: 4px solid #6c757d;
    border-radius: 4px;
    padding: 0.875rem 1.25rem;
    display: none;
    align-items: center;
    gap: 0.75rem;
    z-index: 2000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-size: var(--font-size-base);
    color: var(--color-text);
    max-width: 90%;
    white-space: pre-line;
    text-align: center;
    line-height: 1.5;
}

.toast.show {
    display: flex;
}

/* 기본 (info) */
.toast-info {
    background: #e7f3ff;
    border-color: #0d6efd;
    border-left-color: #0d6efd;
}

/* 성공 */
.toast-success {
    background: #d4edda;
    border-color: #28a745;
    border-left-color: #28a745;
}

/* 경고 */
.toast-warning {
    background: #fff3cd;
    border-color: #ffc107;
    border-left-color: #e0a800;
    color: #664d03;
}

/* 오류 */
.toast-error {
    background: #f8d7da;
    border-color: #dc3545;
    border-left-color: #dc3545;
    color: #842029;
}

/* 관리자 기능 */
.toast-admin {
    background: #e8e4f0;
    border-color: #6f42c1;
    border-left-color: #6f42c1;
}

.toast button {
    padding: 0.33rem 0.67rem;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    font-size: var(--font-size-base);
}

.toast button:hover {
    background: var(--color-primary-hover);
}

/* 페이드아웃 애니메이션 (JS에서 duration 제어) */
@keyframes toastFadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes toastFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.toast.fade-in {
    animation: toastFadeIn 0.2s ease-out forwards;
}

.toast.fade-out {
    animation: toastFadeOut 0.3s ease-in forwards;
}

/* ========== 페이지/타이틀 ========== */
.page-title {
    font-size: 1.33rem;
    font-weight: bold;
    padding: 0.83rem 0;
    border-bottom: 2px solid var(--color-text);
    margin-bottom: 1.25rem;
}

.title-bar {
    background: transparent;
    color: var(--color-text);
    padding: 0.67rem 0;
    font-size: 1.67rem;
    font-weight: bold;
    border: none;
    border-bottom: 1px solid #808080;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.title-bar-actions {
    display: flex;
    gap: 0.5rem;
}

/* ========== 게시판 레이아웃 ========== */
.board-container {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
}

.board-body {
    display: flex;
}

.board-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header {
    padding: 0.75rem;
    border-bottom: 1px solid var(--color-border);
    margin: -0.75rem -0.75rem 0.75rem -0.75rem;
}

.board-title {
    font-size: var(--font-size-lg);
    font-weight: bold;
    color: var(--color-text);
    margin: 0;
}

.content-header {
    padding: 0.625rem 1rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.content-header-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-left: auto;
}

/* ========== 폴더 사이드바 ========== */
.folder-sidebar {
    width: 15rem;
    flex-shrink: 0;
    border-right: 1px solid var(--color-border);
    padding: 0.75rem;
    background: var(--color-bg);
}

.folder-list {
    list-style: none;
    margin: 0;
    padding: 0;
    background: var(--color-bg);
    border: 1px solid var(--color-border-dark);
    border-radius: 2px;
}

.folder-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.58rem 0.75rem;
    text-decoration: none;
    color: var(--color-text);
    font-size: var(--font-size-base);
    border-bottom: 1px solid #e8e8e8;
}

.folder-list li:last-child a {
    border-bottom: none;
}

.folder-list li a:hover {
    background: #e8e8e8;
}

.folder-list li a.active {
    background: var(--color-bg-active);
    color: #fff;
}

.folder-group-gap {
    margin-top: 0.75rem;
}

/* ========== 메인 콘텐츠 ========== */
.main-content {
    flex: 1;
    min-width: 0;
}

/* ========== 검색 영역 ========== */
.search-box {
    display: flex;
    gap: 0.33rem;
    align-items: center;
}

.search-box select,
.search-box input,
.search-box button {
    padding: 0.33rem 0.5rem;
    border: 1px solid var(--color-border-dark);
    font-size: var(--font-size-base);
    font-family: system-ui, sans-serif;
    border-radius: 2px;
}

.search-box select {
    background: var(--color-bg);
}

.search-box input {
    width: 10rem;
}

.search-box button {
    background: var(--color-bg);
    cursor: pointer;
}

.search-box button:hover {
    background: var(--color-bg-hover);
}

/* ========== 페이지네이션 ========== */
.pagination {
    display: flex;
    gap: 0.25rem;
}

.pagination a,
.pagination span {
    padding: 0.33rem 0.67rem;
    border: 1px solid var(--color-border-dark);
    text-decoration: none;
    color: var(--color-text);
    background: var(--color-bg);
    font-size: var(--font-size-sm);
    border-radius: 2px;
}

.pagination a:hover {
    background: var(--color-bg-hover);
}

.pagination .current {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary-hover);
}

.pagination .disabled {
    color: #ccc;
    cursor: default;
}

/* ========== 모달 ========== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.show {
    display: flex;
}

.modal-window {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    width: 20rem;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.modal-titlebar {
    background: var(--color-primary);
    color: #fff;
    padding: 0.75rem 1rem;
    font-weight: bold;
    font-size: 0.92rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 4px 4px 0 0;
}

.modal-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    opacity: 0.8;
}

.modal-body {
    padding: 1rem;
}

.modal-body p {
    margin: 0 0 0.75rem;
    font-size: 0.92rem;
    color: var(--color-text-muted);
}

.modal-footer {
    padding: 0.75rem 1rem;
    background: var(--color-bg-light);
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    border-top: 1px solid var(--color-border);
    border-radius: 0 0 4px 4px;
}

.modal-footer button {
    padding: 0.4rem 1rem;
    font-size: 0.92rem;
    cursor: pointer;
    border-radius: 2px;
}

.modal-footer .btn-confirm {
    background: var(--color-primary);
    color: #fff;
    border: 1px solid var(--color-primary-hover);
}

.modal-footer .btn-confirm:hover {
    background: var(--color-primary-hover);
}

/* ========== 정렬 헤더 ========== */
.sortable {
    cursor: pointer;
    user-select: none;
}

.sortable:hover {
    background: var(--color-border-light);
}

.sort-icon {
    margin-left: 0.33rem;
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
}

.sort-asc .sort-icon::after {
    content: "▲";
}

.sort-desc .sort-icon::after {
    content: "▼";
}

/* ========== 빈 목록 ========== */
.empty-msg {
    text-align: center;
    padding: 2.5rem;
    color: #808080;
    font-size: var(--font-size-base);
}

/* ========== 게시판 푸터 ========== */
.board-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--color-bg-light);
}

/* ========== 액션 버튼 그룹 ========== */
.action-buttons {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.action-buttons.show {
    display: flex;
}

.action-buttons .selected-count {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-right: 0.25rem;
}

.action-buttons .selected-count strong {
    color: var(--color-primary);
    font-weight: bold;
}

.action-buttons button {
    padding: 0.33rem 0.5rem;
    border: 1px solid var(--color-border-dark);
    border-radius: 2px;
    font-size: var(--font-size-base);
    cursor: pointer;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: system-ui, sans-serif;
}

.action-buttons button:hover {
    background: var(--color-bg-hover);
}

.action-buttons button.btn-done {
    background: var(--color-success-bg);
    border-color: #28a745;
    color: var(--color-success-text);
}

.action-buttons button.btn-done:hover {
    background: #c3e6cb;
}

.action-buttons button.btn-hold {
    background: var(--color-warning-bg);
    border-color: #ffc107;
    color: var(--color-warning-text);
}

.action-buttons button.btn-hold:hover {
    background: #ffe69c;
}

.action-buttons button.btn-cancel {
    background: var(--color-danger-bg);
    border-color: var(--color-danger);
    color: var(--color-danger-text);
}

.action-buttons button.btn-cancel:hover {
    background: #f1b0b7;
}

/* ========== 사용자 목록 (모달 내) ========== */
.user-list {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    max-height: 15rem;
    overflow-y: auto;
    border-radius: 2px;
}

.user-list label {
    display: block;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-size: 0.92rem;
    border-bottom: 1px solid var(--color-border-light);
}

.user-list label:last-child {
    border-bottom: none;
}

.user-list label:hover {
    background: var(--color-bg-muted);
}

.user-list input {
    margin-right: 0.5rem;
}

/* ========== Manual Merge 다이얼로그 ========== */
.merge-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.merge-dialog {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.merge-dialog-header {
    background: var(--color-warning-bg);
    color: var(--color-warning-text);
    padding: 0.75rem 1rem;
    font-weight: bold;
    font-size: var(--font-size-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 4px 4px 0 0;
    border-bottom: 1px solid #ffc107;
}

.merge-dialog-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.merge-dialog-title::before {
    content: "⚠️";
}

.merge-dialog-close {
    background: transparent;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--color-warning-text);
    padding: 0;
    line-height: 1;
}

.merge-dialog-close:hover {
    opacity: 0.7;
}

.merge-dialog-info {
    padding: 0.75rem 1rem;
    background: var(--color-bg-light);
    border-bottom: 1px solid var(--color-border);
    font-size: var(--font-size-base);
    color: var(--color-text-muted);
}

.merge-dialog-body {
    padding: 1rem;
    overflow-y: auto;
    flex: 1;
}

/* 통일된 좌우 비교 레이아웃 */
.merge-compare-container {
    border: 1px solid var(--color-border);
    border-radius: 4px;
    overflow: hidden;
}

.merge-compare-header {
    display: flex;
    background: var(--color-bg-muted);
    border-bottom: 1px solid var(--color-border);
    font-weight: bold;
    font-size: var(--font-size-base);
    color: var(--color-text-muted);
}

.merge-header-left,
.merge-header-right {
    flex: 1;
    padding: 0.5rem 0.75rem;
    text-align: center;
}

.merge-header-arrow {
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 필드 행 */
.merge-field-row {
    display: flex;
    border-bottom: 1px solid var(--color-border);
}

.merge-field-row:last-child {
    border-bottom: none;
}

.merge-field-left,
.merge-field-right {
    flex: 1;
    min-width: 0;
    padding: 0.5rem 0.75rem;
}

.merge-field-left {
    border-right: 1px solid var(--color-border-light);
    background: var(--color-bg-light);
}

.merge-field-right {
    background: var(--color-bg);
}

.merge-arrow {
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: var(--font-size-lg);
    background: var(--color-bg-muted);
}

.merge-field-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.merge-field-name {
    font-weight: bold;
    font-size: var(--font-size-base);
    color: var(--color-text-muted);
}

.merge-field-value-box {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 3px;
    min-height: 2rem;
}

.merge-value-long {
    max-height: 120px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.merge-radio {
    flex-shrink: 0;
    cursor: pointer;
}

.merge-radio input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

.merge-value-text {
    flex: 1;
    font-size: var(--font-size-base);
    line-height: 1.4;
    word-break: break-word;
}

.merge-empty {
    color: var(--color-text-light);
    font-style: italic;
}

.same-value {
    color: var(--color-text-light);
    font-size: var(--font-size-base);
    font-style: italic;
}

.change-marker {
    display: inline-block;
    background: var(--color-notification-bg);
    color: var(--color-notification-text);
    font-size: var(--font-size-xs);
    padding: 0.1rem 0.4rem;
    border-radius: 2px;
}

/* 다이얼로그 푸터 */
.merge-dialog-footer {
    padding: 0.75rem 1rem;
    background: var(--color-bg-light);
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    border-radius: 0 0 4px 4px;
}

.merge-actions {
    display: flex;
    gap: 0.5rem;
}
