@charset "utf-8";

/* ===== 상단 메뉴 레이아웃 스타일 ===== */
/* 메인 컨텐츠가 전체 너비를 사용하도록 설정 */
.main-content-full {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 메인 헤더 스타일 */
.main-header {
    display: flex;
    align-items: center;
    padding: 0 20px;
    background-color: #fff;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 60px;
    width: 100%;
}

/* 헤더 로고 스타일 */
.header-logo {
    /*margin-right: 40px;*/
}

.header-logo .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #495057;
}

.header-logo .logo img {
    width: auto !important; /* style.min.css의 width: 40px 비활성화 */
    height: 40px;
    margin-right: 10px;
}

.header-logo .logo-text {
    font-size: 18px;
    font-weight: bold;
    line-height: 1.2;
    color: #007bff;
}

/* 상단 메뉴 드롭다운 스타일 */
.top-menu-dropdown {
    position: relative;
    display: inline-block;
}

.top-menu-dropdown .dropdown-arrow {
    font-size: 16px;
    margin-left: 5px;
    transition: transform 0.2s;
}

.top-menu-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.top-menu-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: #fff;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 4px;
    z-index: 1000;
    padding: 8px 0;
}

.top-menu-submenu .submenu-item {
    display: block;
    padding: 10px 20px;
    color: #495057;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s;
}

.top-menu-submenu .submenu-item:hover {
    background-color: #f8f9fa;
    color: #007bff;
    text-decoration: none;
}

.top-menu-submenu .submenu-item.active {
    background-color: #e3f2fd;
    color: #1976d2;
    font-weight: 550;
}

.top-menu-submenu .submenu-item.active:hover {
    background-color: #bbdefb;
    color: #1565c0;
}

/* ===== 그리드용 드롭다운 스타일 ===== */
.grid-dropdown {
    position: relative;
    display: inline-block;
}

.grid-dropdown-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
    border-radius: 3px;
    transition: background-color 0.2s;
}

.grid-dropdown-btn:hover {
    background-color: #0056b3;
}

.grid-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 120px;
    background-color: #fff;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 4px;
    z-index: 1000;
    padding: 4px 0;
}

.grid-dropdown-menu .dropdown-item {
    display: block;
    padding: 8px 12px;
    color: #495057;
    text-decoration: none;
    font-size: 12px;
    transition: background-color 0.2s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.grid-dropdown-menu .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #007bff;
    text-decoration: none;
}

/* ===== XIT TUI Grid 드롭다운 메뉴 공통 컴포넌트 스타일 ===== */
/* 메뉴 컨테이너 */
.xit-grid-menu-container {
    position: relative;
    display: inline-block;
}

/* 메뉴 버튼 */
.xit-grid-menu-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 2px 6px;
    font-size: 12px;
    line-height: 1;
    border-radius: 3px;
    cursor: pointer;
    color: #495057;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.xit-grid-menu-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #495057;
}

.xit-grid-menu-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* 메뉴 리스트 */
.xit-grid-menu-list {
    display: none;
    position: fixed;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 9999;
    min-width: 120px;
    max-width: 200px;
    padding: 4px 0;
    font-family: inherit;
    /* 메뉴가 화면 경계를 벗어나지 않도록 추가 설정 */
    overflow: visible;
    white-space: nowrap;
}

/* 메뉴 아이템 */
.xit-grid-menu-item {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
    font-size: 12px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}

.xit-grid-menu-item:last-child {
    border-bottom: none;
}

.xit-grid-menu-item:hover {
    background-color: #f8f9fa;
    color: #333;
    text-decoration: none;
}

.xit-grid-menu-item:focus {
    outline: none;
    background-color: #e9ecef;
    color: #333;
}

/* 삭제 메뉴 아이템 스타일 */
.xit-grid-menu-item[data-action="delete"] {
    color: #dc3545;
}

.xit-grid-menu-item[data-action="delete"]:hover {
    background-color: #f8d7da;
    color: #721c24;
}

/* 메뉴 구분선 */
.xit-grid-menu-divider {
    height: 0;
    margin: 4px 0;
    overflow: hidden;
    border-top: 1px solid #e9ecef;
}

/* 비활성화된 메뉴 아이템 */
.xit-grid-menu-item.disabled {
    color: #6c757d;
    pointer-events: none;
    cursor: default;
}

.xit-grid-menu-item.disabled:hover {
    background-color: transparent;
}

/* 상단 메뉴 컨테이너 스타일 */
.top-level-menu {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

/* 메뉴 간 구분자 스타일 */
.top-menu-dropdown:not(:last-child)::after {
    content: '|';
    position: absolute;
    right: -1px;
    top: 50%;
    transform: translateY(-50%);
    color: #dee2e6;
    font-size: 14px;
    font-weight: normal;
    z-index: 1;
}

/* 상단 메뉴 아이콘 스타일 */
.top-menu-icon {
    width: 16px;
    height: 16px;
    margin-right: 5px;
    display: inline-block;
    vertical-align: middle;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    color: inherit;
}

/* 기존 상단 메뉴 스타일 확장 */
.top-level-menu .top-menu-item {
    display: flex;
    align-items: center;
    padding: 0 20px;
    color: #495057;
    font-weight: 500;
    text-decoration: none;
    height: 40px;
    position: relative;
    transition: color 0.2s;
    font-size: 16px;
}

.top-level-menu .top-menu-item:hover {
    color: #007bff;
    text-decoration: none;
}

.top-level-menu .top-menu-item.active {
    color: #007bff;
    font-weight: 550;
}

.top-menu-item.active:before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 10px;
    right: 10px;
    height: 2px;
    background-color: #007bff;
}

/* 메인 컨텐츠 영역 스타일 */
.main-content-full .main {
    flex: 1;
    padding: 20px;
    background-color: #f8f9fa;
}

/* 반응형 스타일 */
@media (max-width: 992px) {
    .header-logo {
        margin-right: 20px;
    }
    
    .header-logo .logo-text {
        font-size: 14px;
    }
    
    .top-level-menu .top-menu-item span {
        display: none;
    }
    
    .top-level-menu .top-menu-item {
        padding: 0 12px;
    }
    
    .top-menu-submenu {
        min-width: 150px;
    }
}

/* 버튼 그룹 스타일 */
.btn-group {
	padding-top: 10px;
	display: flex;
	gap: 5px;
}
.btn-group.left {
	justify-content: flex-start;
}
.btn-group.center {
	justify-content: center;
}
.btn-group.right {
	justify-content: flex-end;
}

/* 페이지 액션 버튼 스타일 */
.page_action {
	position: absolute;
	right: 20px;
	top: 15px;
}

/* 모달 스타일 */
.modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0,0,0,0.4);
}

.modal-content {
	background-color: #fefefe;
	margin: 10% auto;
	padding: 0;
	border: 1px solid #888;
	width: 60%;
	box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
}

.modal-header {
	padding: 15px;
	background-color: #f8f8f8;
	border-bottom: 1px solid #ddd;
	position: relative;
}

.modal-header h2 {
	margin: 0;
	font-size: 18px;
}

.close {
	position: absolute;
	right: 15px;
	top: 15px;
	color: #aaa;
	font-size: 28px;
	font-weight: bold;
	cursor: pointer;
}

.close:hover,
.close:focus {
	color: black;
	text-decoration: none;
	cursor: pointer;
}

.modal-body {
	padding: 15px;
}

.modal-footer {
	padding: 15px;
	background-color: #f8f8f8;
	border-top: 1px solid #ddd;
	text-align: right;
}

/* Ajax Progress Block UI 스타일 */
.ajax-progress-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 9999;
	display: none;
	justify-content: center;
	align-items: center;
}

.ajax-progress-content {
	background-color: #ffffff;
	border-radius: 8px;
	padding: 30px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	text-align: center;
	min-width: 200px;
}

.ajax-progress-spinner {
	width: 40px;
	height: 40px;
	border: 4px solid #f3f3f3;
	border-top: 4px solid #007bff;
	border-radius: 50%;
	animation: ajax-spin 1s linear infinite;
	margin: 0 auto 15px;
}

.ajax-progress-text {
	color: #495057;
	font-size: 14px;
	font-weight: 500;
	margin: 0;
}

@keyframes ajax-spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.detail-table {
	width: 100%;
	border-collapse: collapse;
}

.detail-table th, .detail-table td {
	padding: 8px;
	border: 1px solid #ddd;
}

.detail-table th {
	width: 30%;
	background-color: #f8f8f8;
	text-align: right;
}

.badge {
	padding: 3px 8px;
	border-radius: 3px;
	font-size: 12px;
	color: white;
}

.badge.success {
	background-color: #28a745;
}

.badge.danger {
	background-color: #dc3545;
}

.width80 {
	width: 80px;
}
.width100 {
	width: 100px;
}
.width120 {
	width: 120px;
}
.width150 {
	width: 150px;
}
.width180 {
	width: 180px;
}
.width200 {
	width: 200px;
}

.modalz_body {
	max-width: 1200px;
}

/* URL 복사 관련 스타일 */
.copyable-url {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    margin: 2px 0;
    cursor: pointer;
    position: relative;
    font-family: monospace;
    color: #333;
    transition: all 0.2s ease;
}

.copyable-url:hover {
    background-color: #e9ecef;
    border-color: #007bff;
}

.copyable-url:active {
    background-color: #e2e6ea;
}

.copyable-url::after {
    content: '📋';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
}

.copyable-url:hover::after {
    opacity: 1;
}

.copy-notification {
    position: fixed;
    top: 80px; /* 상단 여백 증가 */
    right: 20px;
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 9999; /* z-index 증가 */
    display: none;
    animation: fadeInOut 2s ease;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(-20px); }
    15% { opacity: 1; transform: translateY(0); }
    85% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-20px); }
}

/* 댓글 영역 - Material Design 스타일 */
.xit-comment-section {
    --xit-comment-primary: #4d5769;
    --xit-comment-secondary: #6c757d;
    --xit-comment-border: #e9ecef;
    --xit-comment-bg: #f8f9fa;
    --xit-comment-text: #495057;
    --xit-comment-meta: #868e96;
    --xit-comment-hover: #e9ecef;
    --xit-comment-reply-hover: #f5f7fa;
    --xit-comment-shadow: 0 1px 3px rgba(0,0,0,0.1);

    font-size: 13px;
    line-height: 1.5;
    color: var(--xit-comment-text);
    background: #fff;
    border-radius: 4px;
    box-shadow: var(--xit-comment-shadow);
    margin-top: 0;
}

/* 댓글 헤더 */
.xit-comment-header {
    padding: 16px;
    border-bottom: 1px solid var(--xit-comment-border);
    background-color: #f2f5fa;
    border-radius: 4px 4px 0 0;
}

.xit-comment-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--xit-comment-primary);
}

.xit-comment-count {
    font-size: 12px;
    color: var(--xit-comment-meta);
    background: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    border: 1px solid var(--xit-comment-border);
}

/* 댓글 입력 영역 */
.xit-comment-input-wrapper {
    padding: 16px;
    border-bottom: 1px solid var(--xit-comment-border);
}

.xit-comment-input {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.xit-comment-input textarea {
    border: 1px solid var(--xit-comment-border);
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 13px;
    resize: none;
    transition: all 0.2s ease;
}

.xit-comment-input textarea:focus {
    border-color: var(--xit-comment-primary);
    box-shadow: 0 0 0 2px rgba(77, 87, 105, 0.1);
}

.xit-comment-input .btn {
    align-self: flex-end;
    padding: 5px 15px;
    font-size: 15px;
    line-height: 1em;
    min-width: 80px;
    text-align: center;
    border-radius: 3px;
    background-color: var(--xit-comment-primary);
    color: #fff;
    border: 1px solid var(--xit-comment-primary);
    transition: all 0.2s ease;
}

.xit-comment-input .btn:hover {
    opacity: 0.85;
    background-color: #3a4352;
    border-color: #3a4352;
}

/* 댓글 목록 */
.xit-comment-list {
    padding: 0;
    margin: 0;
}

.xit-comment-item {
    padding: 16px;
    border-bottom: 1px solid var(--xit-comment-border);
    transition: background-color 0.2s ease;
}

.xit-comment-item:last-child {
    border-bottom: none;
}

.xit-comment-item:hover {
    background-color: var(--xit-comment-hover);
}

/* 댓글 본문 */
.xit-comment-body {
    position: relative;
}

.xit-comment-info {
    margin-bottom: 8px;
}

.xit-comment-writer {
    font-weight: 600;
    color: var(--xit-comment-primary);
    font-size: 13px;
}

.xit-comment-date {
    font-size: 11px;
    color: var(--xit-comment-meta);
}

.xit-comment-content {
    font-size: 13px;
    line-height: 1.5;
    color: var(--xit-comment-text);
    margin: 8px 0;
    word-break: break-all;
}

/* 댓글 액션 버튼 */
.xit-comment-actions {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.xit-btn-link {
    background: none;
    border: none;
    padding: 4px 8px;
    font-size: 14px;
    color: var(--xit-comment-meta);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease;
    border-radius: 3px;
}

.xit-btn-link:hover {
    color: var(--xit-comment-primary);
    text-decoration: none;
    background-color: var(--xit-comment-hover);
}

.xit-btn-link i {
    font-size: 14px;
    margin-right: 4px;
}

/* 답글 영역 */
.xit-comment-replies {
    margin-left: 32px;
    padding-left: 16px;
    border-left: 2px solid var(--xit-comment-border);
    background: linear-gradient(to right, var(--xit-comment-bg) 0%, transparent 100%);
    background-size: 4px 100%;
    background-repeat: repeat-y;
}

.xit-comment-reply-item {
    padding: 12px 16px;
    background: var(--xit-comment-bg);
    border-radius: 4px;
    margin-top: 8px;
    border: 1px solid var(--xit-comment-border);
    transition: all 0.2s ease;
}

.xit-comment-reply-item:hover {
    background-color: var(--xit-comment-reply-hover);
    border-color: #dde2e6;
}

/* 댓글 수정/답글 폼 */
.xit-comment-edit-form,
.xit-comment-reply-form {
    margin-top: 12px;
    padding: 12px;
    background: var(--xit-comment-bg);
    border-radius: 4px;
}

.xit-comment-edit-actions,
.xit-comment-reply-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.xit-comment-edit-actions .btn,
.xit-comment-reply-actions .btn {
    padding: 5px 15px;
    font-size: 15px;
    line-height: 1em;
    min-width: 80px;
    text-align: center;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.xit-comment-edit-actions .btn-primary,
.xit-comment-reply-actions .btn-primary {
    background-color: var(--xit-comment-primary);
    border-color: var(--xit-comment-primary);
    color: #fff;
}

.xit-comment-edit-actions .btn-primary:hover,
.xit-comment-reply-actions .btn-primary:hover {
    opacity: 0.85;
    background-color: #3a4352;
    border-color: #3a4352;
}

.xit-comment-edit-actions .btn-secondary,
.xit-comment-reply-actions .btn-secondary {
    background-color: #fff;
    border-color: var(--xit-comment-border);
    color: var(--xit-comment-text);
}

.xit-comment-edit-actions .btn-secondary:hover,
.xit-comment-reply-actions .btn-secondary:hover {
    background-color: var(--xit-comment-hover);
    border-color: var(--xit-comment-primary);
    color: var(--xit-comment-primary);
}

/* 댓글 없음 */
.xit-comment-empty {
    padding: 32px 16px;
    text-align: center;
    color: var(--xit-comment-meta);
    background: var(--xit-comment-bg);
    border-radius: 4px;
    margin: 16px;
}

.xit-comment-empty i {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
}

.xit-comment-empty p {
    margin: 0;
    font-size: 13px;
}

/* 버튼 스타일 */
.btn-primary {
    background-color: var(--xit-comment-primary);
    border-color: var(--xit-comment-primary);
}

.btn-primary:hover {
    background-color: #3a4352;
    border-color: #3a4352;
}

.btn-secondary {
    background-color: var(--xit-comment-secondary);
    border-color: var(--xit-comment-secondary);
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #5a6268;
}

/* 기존 스타일 제거 */
.comment_section_title,
.comment_form_wrapper,
.comment_count,
.no_comment,
.profile_img {
    display: none;
}

/* 버튼 색상 유지 */
.comment_form_wrapper .newbtn.bg1 {
    background-color: #4d5769 !important;
    color: #fff !important;
}

.comment_form_wrapper .newbtn.bg1:hover {
    background-color: #3a4352 !important;
}

/* newbtn_grid 스타일 - newbtn과 동일한 속성 */
.newbtn_grid {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 3px;
    background-color: #fff;
    color: #191919;
    border: 1px solid #202342;
    /*min-width: 80px;*/
    text-align: center;
    /*font-size: 15px;*/
    line-height: 1em;
}

.newbtn_grid:hover {
    opacity: 0.85;
}

.newbtn_grid.bg1 {
    background-color: #202342;
    color: #fff;
    border-color: #202342;
}

.newbtn_grid.bg2 {
    background-color: #6c757d;
    color: #fff;
    border-color: #6c757d;
}

.newbtn_grid.bg3 {
    background-color: #28a745;
    color: #fff;
    border-color: #28a745;
}

.newbtn_grid.bg4 {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* selectbox option 자동 색상 적용 */
select option[data-color] {
    padding: 8px;
    margin: 2px 0;
    border-radius: 4px;
    color: black;
}

/* 동적 selectbox를 위한 스타일 */
select[data-auto-color="true"] option[data-color] {
    padding: 8px;
    margin: 2px 0;
    border-radius: 4px;
    color: black;
}



/* 헤더부분 공통 CSS */
/**
 * 메인 헤더 스타일
 * 1. 스케줄 네비게이션 영역
 * 2. 스케줄 아이템 스타일
 * 3. 네비게이션 버튼 스타일
 * 4. 애니메이션 효과
 */

/* ===== 1. 스케줄 네비게이션 영역 ===== */
/* 스케줄 네비게이션 래퍼 - 전체 일정 영역을 감싸는 컨테이너 */
.schedule-navigation-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    width: 600px;
}

/* 스케줄 티커 컨테이너 - 실제 일정이 표시되는 영역 */
.schedule-ticker-container {
    width: 550px;
    overflow: hidden;
    position: relative;
    height: 30px;
    background-color: #f8f9fa;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin: 0 5px; /* 좌우 버튼과의 간격 */
}

/* 스케줄 티커 - 일정 항목들이 움직이는 영역 */
.schedule-ticker {
    white-space: nowrap;
    position: absolute;
    left: 0; /* 왼쪽 시작 위치 초기화 */
    padding: 5px 0; /* 상하 패딩만 유지 */
    display: flex;
    align-items: center;
    height: 100%;
}

/* ===== 2. 스케줄 아이템 스타일 ===== */
/* 일정 항목 기본 스타일 */
.schedule-item {
    display: inline-block;
    margin-right: 30px;
    font-size: 14px;
    padding: 3px 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

/* 일정 항목 호버 효과 */
.schedule-item:hover {
    background-color: #e9ecef;
}

/* 로딩 메시지 스타일 */
.loading-message {
    color: #6c757d;
    font-style: italic;
}

/* 일정 시간 스타일 */
.schedule-item .schedule-time {
    color: #007bff;
    font-weight: bold;
    margin-right: 5px;
    border-bottom: 1px dotted #007bff;
}

/* 일정 제목 스타일 */
.schedule-item .schedule-title {
    color: #333;
}

/* 일정 카테고리 스타일 */
.schedule-item .schedule-category {
    color: #6c757d;
    font-size: 12px;
    margin-left: 5px;
    padding: 2px 5px;
    background-color: #e9ecef;
    border-radius: 3px;
}

/* ===== 3. 네비게이션 버튼 스타일 ===== */
/* 좌우 이동 버튼 공통 스타일 */
.schedule-nav-btn {
    height: 30px;
    width: 24px;
    background-color: rgba(0, 123, 255, 0.7);
    color: white;
    border: none;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 버튼 호버 효과 */
.schedule-nav-btn:hover {
    background-color: rgba(0, 123, 255, 0.9);
}

/* 이전 버튼 스타일 */
.schedule-prev-btn {
    border-radius: 4px 0 0 4px;
}

/* 다음 버튼 스타일 */
.schedule-next-btn {
    border-radius: 0 4px 4px 0;
}

/* SMS 버튼 래퍼 스타일 */
.sms-btn-wrapper {
    padding-right: 10px;
}

/* ===== 알림 버튼 및 드롭다운 스타일 ===== */
/* 알림 버튼 래퍼 */
.notification-btn-wrapper {
    position: relative;
    margin-right: 10px;
}

/* 알림 버튼 */
.notification-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f8f9fa;
    color: #495057;
    text-decoration: none;
    transition: background-color 0.2s;
}

.notification-btn:hover {
    background-color: #e9ecef;
    color: #212529;
}

/* 알림 배지 */
.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    background-color: #dc3545;
    color: white;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

/* 알림 드롭다운 */
.notification-dropdown {
    position: absolute;
    top: 45px;
    right: 0;
    width: 320px;
    max-height: 400px;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
    overflow: hidden;
}

/* 알림 헤더 */
.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.notification-header h6 {
    margin: 0;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #6c757d;
}

.close-btn:hover {
    color: #343a40;
}

/* 알림 내용 */
.notification-content {
    padding: 0;
    max-height: 350px;
    overflow-y: auto;
}

/* 로딩 메시지 */
.notification-content .loading {
    padding: 15px;
    text-align: center;
    color: #6c757d;
}

/* 알림 항목 */
.notification-item {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    transition: background-color 0.2s;
}

.notification-item:hover {
    background-color: #f8f9fa;
}

.notification-item:last-child {
    border-bottom: none;
}

/* 알림 항목 제목 */
.notification-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: #212529;
}

/* 알림 항목 내용 */
.notification-text {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 5px;
}

/* 알림 항목 시간 */
.notification-time {
    font-size: 12px;
    color: #adb5bd;
}

/* 알림 항목 카테고리 */
.notification-category {
    display: inline-block;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-right: 5px;
}

/* 일정 카테고리 */
.notification-category.schedule {
    background-color: #e3f2fd;
    color: #0d6efd;
}

/* 질문 카테고리 */
.notification-category.question {
    background-color: #f8d7da;
    color: #dc3545;
}

/* 알림 없음 메시지 */
.no-notifications {
    padding: 20px;
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

/* ===== 4. 애니메이션 효과 ===== */
/* 티커 애니메이션 */
.ticker-animation {
    animation: ticker-scroll 20s linear infinite;
}

/* 마우스 오버 시 애니메이션 일시 정지 */
.ticker-animation:hover {
    animation-play-state: paused;
}

/* 티커 스크롤 애니메이션 키프레임 */
@keyframes ticker-scroll {
    0% {
        transform: translateX(0px);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* 일시적 알림 카드 컨테이너 스타일 */
.temporary-notification-container {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 80vh;
    overflow-y: auto;
    padding-right: 5px;
}

/* 일시적 알림 카드 스타일 */
.temporary-notification-card {
    width: 280px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    animation: slideIn 0.3s ease-out;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.temporary-notification-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.06);
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

.notification-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 15px;
    background-color: #4e73df;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.notification-card-header h6 {
    margin: 0;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
}

.notification-card-header h6:before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    background-color: #4cd964;
    border-radius: 50%;
    margin-right: 5px;
    box-shadow: 0 0 0 1px rgba(76, 217, 100, 0.3);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(76, 217, 100, 0.5); }
    70% { box-shadow: 0 0 0 6px rgba(76, 217, 100, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 217, 100, 0); }
}

.notification-card-header .close-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.1rem;
    line-height: 1;
    padding: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
    opacity: 0.8;
}

.notification-card-header .close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    opacity: 1;
}

.notification-card-content {
    padding: 12px 15px;
    max-height: 250px;
    overflow-y: auto;
    background-color: #f8f9fc;
}

.notification-card-footer {
    padding: 8px 15px;
    background-color: #f8f9fc;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.75rem;
    color: #888;
    text-align: right;
    font-style: italic;
}

.notification-time {
    display: inline-block;
    position: relative;
    padding-left: 18px;
}

.notification-time:before {
    content: '⏱️';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    opacity: 0.8;
}

.temporary-notification-item {
    padding: 8px 12px;
    border-radius: 6px;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-bottom: 6px;
    border-left: 2px solid #4e73df;
    position: relative;
    overflow: hidden;
}

.temporary-notification-item:hover {
    background-color: #f8f9fc;
}

.temporary-notification-item:last-child {
    margin-bottom: 0;
}

.temporary-notification-title {
    font-weight: 600;
    margin-bottom: 3px;
    color: #333;
    font-size: 0.85rem;
}

.temporary-notification-text {
    font-size: 0.75rem;
    color: #666;
    line-height: 1.3;
}

.slide-out {
    animation: slideOut 0.3s cubic-bezier(0.5, 0, 0.75, 0) forwards;
}

/* 반응형 디자인을 위한 미디어 쿼리 */
@media (max-width: 768px) {
    .temporary-notification-card {
        width: calc(100% - 40px);
        max-width: 280px;
        right: 10px;
        top: 60px;
    }

    .notification-card-header {
        padding: 5px 12px;
    }

    .notification-card-content {
        padding: 10px 12px;
    }

    .temporary-notification-item {
        padding: 6px 10px;
    }

    .notification-card-header .close-btn {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .temporary-notification-card {
        width: calc(100% - 20px);
        right: 10px;
        top: 50px;
    }
}

/* 파일 업로드 관련 스타일 */
.file-upload-container {
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 10px;
    background-color: #f9f9f9;
}

.file-upload-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.file-upload-info {
    display: flex;
    align-items: center;
    color: #555;
    font-size: 14px;
}

.file-upload-info i {
    margin-right: 5px;
    color: #007bff;
}

.file-upload-list {
    margin-top: 10px;
}

.file-input-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    position: relative;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
}

.file_input {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

.file-input-text {
    color: #777;
    font-size: 14px;
    margin-left: 5px;
    flex-grow: 1;
}

.btn_delete_file {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 5px;
    margin-left: 10px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
}

.btn_delete_file:hover {
    background-color: #f8d7da;
}

.file-list-container {
    margin-top: 15px;
    border-top: 1px solid #e0e0e0;
    padding-top: 10px;
}

.file-list-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.file-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background-color: #f5f5f5;
    border-radius: 4px;
    margin-bottom: 5px;
}

.file-info {
    display: flex;
    align-items: center;
}

.file-info i {
    margin-right: 8px;
    color: #6c757d;
}

.file-name {
    font-size: 14px;
    color: #333;
}


/* ===== XIT 공통 드롭다운 컴포넌트 스타일 ===== */
/* 컨테이너 스타일 */
.xit-dropdown-container {
    position: relative;
    display: inline-block;
}

/* 드롭다운 기본 스타일 */
.xit-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    max-height: 300px;
    overflow-y: auto;
}

/* 드롭다운 아이템 스타일 */
.xit-dropdown-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
    transition: background-color 0.2s;
}

.xit-dropdown-item:last-child {
    border-bottom: none;
}

.xit-dropdown-item:hover {
    background-color: #f8f9fa;
}

.xit-dropdown-item.selected {
    background-color: #e3f2fd;
    color: #1976d2;
}

.xit-dropdown-item.no-results {
    color: #666;
    font-style: italic;
    text-align: center;
    cursor: default;
}

.xit-dropdown-item.no-results:hover {
    background-color: transparent;
}

/* 아이템 메인 텍스트 */
.xit-dropdown-main {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

/* 아이템 상세 정보 */
.xit-dropdown-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
}

.xit-dropdown-value {
    color: #666;
    background-color: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
}

.xit-dropdown-item:hover .xit-dropdown-value {
    background-color: #e9ecef;
}

.xit-dropdown-item.selected .xit-dropdown-value {
    background-color: #bbdefb;
    color: #1565c0;
}

/* 드롭다운 스크롤바 스타일 */
.xit-dropdown::-webkit-scrollbar {
    width: 8px;
}

.xit-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.xit-dropdown::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.xit-dropdown::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* input 필드 포커스 시 드롭다운과 연결된 스타일 */
.xit-dropdown-container .input:focus {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.xit-dropdown-container .input:focus + input + .xit-dropdown {
    border-top: 1px solid #007bff;
}

/* ===== 드롭다운 넓이 조절 클래스 ===== */
/* 작은 사이즈 (200px) */
.xit-dropdown-sm {
    width: 200px;
}

.xit-dropdown-sm .xit-dropdown {
    width: 200px;
}

/* 중간 사이즈 (300px) */
.xit-dropdown-md {
    width: 300px;
}

.xit-dropdown-md .xit-dropdown {
    width: 300px;
}

/* 큰 사이즈 (400px) */
.xit-dropdown-lg {
    width: 400px;
}

.xit-dropdown-lg .xit-dropdown {
    width: 400px;
}

/* 전체 넓이 사용 */
.xit-dropdown-full {
    width: 100%;
}

.xit-dropdown-full .xit-dropdown {
    width: 100%;
}

/* 커스텀 넓이를 위한 CSS 변수 지원 */
.xit-dropdown-custom {
    width: var(--dropdown-width, 250px);
}

.xit-dropdown-custom .xit-dropdown {
    width: var(--dropdown-width, 250px);
}

/* ===== 입력 마스크 클래스 우측정렬 스타일 ===== */
/* 중요로직: 숫자 입력 필드들의 값을 우측정렬하여 가독성 향상 */
.numericMask {
    text-align: right;
}

.decimalMask4 {
    text-align: right;
}

.decimalMask {
    text-align: right;
}

.ptoutMask {
    text-align: right;
}

.oalpMask {
    text-align: right;
}

/* ==========================================================================
   유틸리티 클래스
   ========================================================================== */
.mt-20 {
    margin-top: 20px;
}

.px-25 {
    padding-left: 25px;
    padding-right: 25px;
}

/* ==========================================================================
   이행강제금 산출조사서 테이블
   ========================================================================== */
.levy-calculation-table th,
.levy-calculation-table td {
    vertical-align: middle;
    text-align: center;
}

.levy-calculation-table .b-right-0 {
    border-right: 0;
}

.levy-calculation-table .b-bottom-0 {
    border-bottom: 0;
}

.levy-calculation-table .b-top-0 {
    border-top: 0;
}

.levy-calculation-table .op-cell {
    width: 23px;
}

.levy-calculation-table .pad-0 {
    padding: 0 !important;
}

.levy-calculation-table .btn-levy-add {
    width: 93px;
    padding: 5px;
}

.levy-calculation-table .btn-levy-minus {
    width: 90px;
    padding: 5px;
}