* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #F7F7F7;
  color: #73879C;
  overflow-x: hidden;
  display: flow-root;
}

/* Header Styles */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #f4f7fb url('/static/img/header_bg.png') right center / auto 100% no-repeat;
  border-bottom: 1px solid #E6E9ED;
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.logo {
  width: 120px;
  margin-left: 35px;
}

.logo img {
  width: 100%;
}

.top-nav-right {
  margin-left: auto;
  margin-right: 340px;
  display: flex;
  align-items: center;
  gap: 20px;
  color: #2A3F54;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.2s;
  position: relative;
}

.user-profile:hover .user-name,
.user-profile:hover .fa-chevron-down,
.user-profile.active .user-name
.user-profile.active .fa-chevron-down {
  color: #1a4fa8 !important;
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: white;
  border: 1px solid #E6E9ED;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  min-width: 150px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s;
  z-index: 1001;
}

.user-profile.active .user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  color: #73879C;
  text-decoration: none;
  transition: background 0.2s;
  cursor: pointer;
  font-size: 15px;
}

.dropdown-item:first-child {
  border-radius: 6px 6px 0 0;
}

.dropdown-item:last-child {
  border-radius: 0 0 6px 6px;
}

.dropdown-item:hover {
  background: #F7F7F7;
  color: #2A3F54;
}

.dropdown-item i {
  font-size: 15px;
  width: 16px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667EEA, #764BA2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 15px;
}

.user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.user-name {
  font-size: 14px;
  font-weight: 600;
  color: #2A3F54;
}

.user-role {
  font-size: 12px;
  color: #73879C;
}

/* Sidebar Styles */
.sidebar {
  position: fixed;
  left: 0;
  top: 60px;
  width: 230px;
  height: calc(100vh - 60px);
  background: #1a2535;
  overflow-y: auto;
  transition: transform 0.3s ease;
  z-index: 999;
  box-shadow: 2px 0 8px rgba(0,0,0,0.1);
}

.sidebar.collapsed {
  transform: translateX(-100%);
}

.sidebar-menu {
  padding: 15px 0;
}

.menu-section {
  margin-bottom: 0;
}

.menu-title {
  display: none;
}

.menu-item {
  position: relative;
}

.menu-link {
  display: flex;
  align-items: center;
  padding: 13px 20px;
  color: #cdd8e3;
  text-decoration: none;
  transition: all 0.2s;
  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
  border-left: 3px solid transparent;
}

.menu-link:hover {
  background: #425668;
  color: #ffffff;
  border-left-color: #1a4fa8;
}

.menu-link.active {
  background: #263445;
  color: #ffffff;
  border-left-color: #64b5f6;
}

.menu-link i {
  width: 20px;
  margin-right: 12px;
  font-size: 17px;
  color: #ffffff;
}

.menu-link .arrow {
  margin-left: auto;
  transition: transform 0.2s;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.menu-link.expanded .arrow {
  transform: rotate(90deg);
}

.submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: rgba(0,0,0,0.2);
}

.submenu.open {
  max-height: 500px;
}

.submenu-link {
  display: block;
  padding: 11px 20px 11px 52px;
  color: #cdd8e3;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
  position: relative;
  border-left: 3px solid transparent;
}

.submenu-link:before {
  content: '';
  position: absolute;
  left: 32px;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #cdd8e3;
  transform: translateY(-50%);
}

.submenu-link:hover {
  background: #263445;
  color: #ffffff;
  border-left-color: #1a4fa8;
}

.submenu-link.active {
  color: #64b5f6;
  background: #263445;
  border-left-color: #64b5f6;
}

.submenu-link.active:before {
  background: #64b5f6;
}

/* Main Content */
.main-content {
  margin-left: 230px;
  margin-top: 60px;
  padding: 16px 30px;
  min-height: calc(100vh - 60px);
  transition: margin-left 0.3s ease;
}

.main-content.expanded {
  margin-left: 0;
}

.top-nav-title {
  margin-left: calc(230px - 150px);
  font-size: 21px;
  font-weight: 600;
  color: #2A3F54;
  flex: 1;
}

.page-title {
  display: none;
}

.content-area {
  background: white;
  border-radius: 8px;
  padding: 8px 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  min-height: 500px;
}

/* Scrollbar Styles */
.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.1);
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.3);
}

/* Search Form Styles */
.search-section {
  background: transparent;
  padding: 6px 0;
  border-radius: 6px;
}

.search-title {
  font-size: 15px;
  font-weight: 600;
  color: #2A3F54;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.search-grid {
  display: grid;
  gap: 8px 20px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.search-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 10px;
  align-items: center;
}

.search-row.full-width {
  grid-column: 1 / -1;
}

.search-label {
  font-size: 14px;
  font-weight: 500;
  color: #102b4e;
  text-align: center;
  background: #e8edf2;
  padding: 6.5px 8px;
  border-radius: 4px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-input-group {
  display: flex;
  gap: 10px;
  align-items: center;
}

.search-input {
  flex: 1;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 14px;
}

.search-input:focus {
  outline: none;
  border-color: #1a4fa8;
}

.date-separator {
  color: #73879C;
  font-weight: 500;
}

.search-select {
  flex: 1;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 14px;
  background: white;
  cursor: pointer;
}

.search-btn {
  background: #1a4fa8;
  color: white;
  border: none;
  padding: 8px 30px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.search-btn:hover {
  background: #153e88;
}

/* Result Section */
.result-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 2px solid #d0e4f5;
}

.result-count {
  font-size: 17px;
  font-weight: 600;
  color: #2A3F54;
}

.result-count span {
  color: #1a4fa8;
}

.action-buttons {
  display: flex;
  gap: 10px;
}

.action-btn {
  padding: 8px 16px;
  border: 1px solid #ced4da;
  background: white;
  color: #2A3F54;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.action-btn:hover {
  background: #F7F7F7;
  border-color: #1a4fa8;
}

.action-btn.danger {
  background: white;
  color: #2A3F54;
  border-color: #ced4da;
}

.action-btn.danger:hover {
  background: #fff5f5;
  border-color: #E74C3C;
  color: #E74C3C;
}

.action-btn.secondary {
  background: #e8f4fd;
  color: #1a4fa8;
  border-color: #b8d4f0;
}

.action-btn.secondary:hover {
  background: #d0e8f9;
}

.action-btn.primary {
  background: #1a4fa8;
  color: white;
  border-color: #1a4fa8;
}

.action-btn.primary:hover {
  background: #153e88;
}

/* Table Styles */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.data-table tr {
  cursor: pointer;
}

.data-table thead {
  background: #f7fbff;
  border-bottom: 1px solid #d0e4f5;
}

.data-table th {
  padding: 12px 8px;
  text-align: center;
  font-weight: 600;
  color: #2A3F54;
  border-bottom: 2px solid #d0e4f5;
}

.data-table td {
  padding: 12px 8px;
  text-align: center;
  border-bottom: 1px solid #e9ecef;
  color: #73879C;
}

.data-table tbody tr:hover {
  background: #e8f4fd;
}

.data-table input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.data-table a:link {
  color: #73879C;
  text-decoration: none;
}

.data-table a:visited {
  color: #73879C;
  text-decoration: none;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
}

.status-badge.active {
  background: #d4edda;
  color: #155724;
}

.status-badge.inactive {
  background: #f8d7da;
  color: #721c24;
}

.status-badge.pending {
  background: #fff3cd;
  color: #856404;
}

.status-badge.canceled {
  background: #6c757d;
  color: #fff;
}

.note-text {
  color: #E74C3C;
  font-size: 14px;
  margin-top: 15px;
  text-align: right;
}

/* Scroll Table */
.scroll-table-wrapper {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #E6E9ED;
  border-radius: 4px;
}

.scroll-table-wrapper::-webkit-scrollbar {
  width: 8px;
}

.scroll-table-wrapper::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.scroll-table-wrapper::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.scroll-table-wrapper::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.scroll-table-wrapper .data-table {
  margin: 0;
  border: none;
  box-shadow: none;
}

.scroll-table-wrapper .data-table thead {
  position: sticky;
  top: 0;
  background: #f8f9fa;
  z-index: 10;
}

/* Pagination Styles */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
  gap: 5px;
}

.pagination {
  display: flex;
  gap: 5px;
  align-items: center;
}

.page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #dee2e6;
  background: white;
  color: #73879C;
  border-radius: 4px;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-btn:hover {
  background: #F7F7F7;
  border-color: #1a4fa8;
  color: #2A3F54;
}

.page-btn.active {
  background: #1a4fa8;
  border-color: #1a4fa8;
  color: white;
  font-weight: 600;
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-btn:disabled:hover {
  background: white;
  border-color: #dee2e6;
  color: #73879C;
}

.page-dots {
  padding: 0 8px;
  color: #73879C;
}

/* Detail Form Styles */
.detail-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #E6E9ED;
}

.detail-actions {
  display: flex;
  gap: 10px;
}

.detail-subtitle {
  font-size: 19px;
  font-weight: 600;
  color: #2A3F54;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #E6E9ED;
}

.form-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 15px;
  margin-bottom: 20px;
  align-items: start;
}

.form-label {
  font-size: 15px;
  font-weight: 500;
  color: #2A3F54;
  padding: 10px 0;
}

.form-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-input {
  padding: 10px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 15px;
  width: 100%;
}

.form-input:focus {
  outline: none;
  border-color: #1a4fa8;
}

.form-textarea {
  padding: 10px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 15px;
  width: 100%;
  min-height: 200px;
  resize: vertical;
  font-family: inherit;
}

.form-textarea:focus {
  outline: none;
  border-color: #1a4fa8;
}

.form-select-full {
  padding: 10px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 15px;
  background: white;
  cursor: pointer;
  width: 100%;
}

.radio-group {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 10px 0;
}

.radio-group-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 10px 0;
}

.radio-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.radio-item input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.radio-item label {
  font-size: 15px;
  cursor: pointer;
  color: #73879C;
}

.datetime-input {
  padding: 10px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 15px;
}

.datetime-input:focus {
  outline: none;
  border-color: #1a4fa8;
}

.form-text {
  padding: 10px 0;
  display: block;
  color: #73879C;
  font-size: 15px
}

/* Tab Styles */
.tab-container {
  margin-bottom: 20px;
}

.tab-list {
  display: flex;
  border-bottom: 2px solid #E6E9ED;
  gap: 5px;
}

.tab-item {
  padding: 12px 24px;
  background: #f8f9fa;
  border: 1px solid #E6E9ED;
  border-bottom: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: #73879C;
  border-radius: 4px 4px 0 0;
}

.tab-item:hover {
  background: #e9ecef;
}

.tab-item.active {
  background: white;
  color: #2A3F54;
  font-weight: 600;
  border-bottom: 2px solid white;
  margin-bottom: -2px;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.stats-title {
  font-size: 17px;
  font-weight: 600;
  color: #2A3F54;
  margin-bottom: 15px;
}

.info-grid {
  display: grid;
  grid-template-columns: 120px 1fr 120px 1fr;
  gap: 0;
  margin-bottom: 20px;
  border: 1px solid #E6E9ED;
}

.info-cell {
  padding: 12px 15px;
  border-right: 1px solid #E6E9ED;
  border-bottom: 1px solid #E6E9ED;
  text-align: center;
}

.info-grid .info-cell:nth-child(4n) {
  border-right: none;
}

.info-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 120px 1fr);
  gap: 0;
  margin-bottom: 20px;
  border: 1px solid #E6E9ED;
}

.info-grid-3 .info-cell:nth-child(6n) {
  border-right: none;
}

.info-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 120px 1fr);
  gap: 0;
  margin-bottom: 20px;
  border: 1px solid #E6E9ED;
}

.info-grid-4 .info-cell:nth-child(8n) {
  border-right: none;
}

.info-cell.label {
  background: #f8f9fa;
  font-weight: 600;
  color: #2A3F54;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-cell.value {
  background: white;
  color: #73879C;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.checkbox-group label {
  font-size: 15px;
  cursor: pointer;
  color: #73879C;
}

.form-content .checkbox-group {
  padding: 10px 0;
}

/* Quill Editor Styles */
.editor-container {
  background: white;
  border: 1px solid #E6E9ED;
  border-radius: 4px;
}

.editor-container .ql-toolbar {
  border: none;
  border-bottom: 1px solid #E6E9ED;
  background: #f8f9fa;
}

.editor-container .ql-container {
  border: none;
  min-height: 400px;
  font-size: 15px;
  font-family: 'Noto Sans KR', sans-serif;
}

.editor-container .ql-editor {
  min-height: 400px;
  padding: 20px;
}

.editor-container .ql-editor:focus {
  outline: none;
}

/* Popup Styles */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.popup-overlay.active {
  display: flex;
}

.popup-overlay.is-open {
  display: flex;
}

.popup-container {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.popup-container.small {
  width: 500px;
}

.popup-container.medium {
  width: 800px;
}

.popup-container.large {
  width: 1200px;
}

.popup-header {
  padding: 20px 25px;
  border-bottom: 1px solid #d0e4f5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f7fbff;
  border-radius: 8px 8px 0 0;
}

.popup-title {
  font-size: 19px;
  font-weight: 600;
  color: #2A3F54;
}

.popup-close {
  background: none;
  border: none;
  font-size: 25px;
  color: #73879C;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
}

.popup-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #2A3F54;
}

.popup-body {
  padding: 25px;
  overflow-y: auto;
  flex: 1;
}

.popup-footer {
  padding: 15px 25px;
  border-top: 1px solid #d0e4f5;
  display: flex;
  justify-content: center;
  gap: 10px;
  background: #f7fbff;
  border-radius: 0 0 8px 8px;
}

.popup-btn {
  padding: 10px 30px;
  border: 1px solid #ced4da;
  background: white;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.popup-btn:hover {
  background: #F7F7F7;
}

.popup-btn.primary {
  background: #1a4fa8;
  color: white;
  border-color: #1a4fa8;
}

.popup-btn.danger {
  background: #ff1e1e;
  color: white;
  border-color: #ff1e1e;
}

.popup-btn.primary:hover {
  background: #41785d;
}

.readonly {
  background-color: #e9e9e9;
}

.swal2-container {
  z-index: 99999999 !important;
}

/* 팝업 창 전체 스타일 */
/* 팝업 창 전체 스타일 - 클래스명 고정 */
.modern-swal-popup {
  width: 400px !important; /* PC 대시보드에서 딱 보기 좋은 크기 */
  border-radius: 15px !important;
  padding: 1.5rem !important; /* 위아래 여백 살짝 조절 */
  box-shadow: 0 8px 20px rgba(0,0,0,0.1) !important;
}

.swal2-container.common-message-bottom-container {
  width: max-content !important;
  max-width: 100vw !important;
  box-sizing: border-box;
}

.modern-swal-popup.common-message-bottom {
  width: max-content !important;
  max-width: calc(100vw - 32px) !important;
  padding: 1rem 1.5rem !important;
}

.common-message-bottom .modern-swal-title {
  margin: 0 0 0 0.75rem !important;
  overflow-wrap: anywhere;
  white-space: normal;
}

/* [핵심] 통통 튀는 커스텀 애니메이션 정의 */
@keyframes modern-bounce-in {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
  70% {
    transform: scale(0.98);
  }
  100% {
    transform: scale(1);
  }
}

/* 애니메이션 적용 */
.swal2-show {
  animation: modern-bounce-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* 제목 스타일 */
.modern-swal-title {
  font-size: 1.15rem !important;
  font-weight: 600 !important;
  color: #1f2937 !important;
  padding: 0 !important;
  margin-top: 0.8rem !important;
}

/* 아이콘 스타일 */
.swal2-icon {
  transform: scale(0.7) !important;
  margin: 0 auto !important;
  border-width: 2px !important;
}

/* 버튼 스타일 */
.modern-swal-confirm, .modern-swal-cancel {
  padding: 8px 24px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  border-radius: 8px !important;
  margin: 15px 4px 0 4px !important;
  border: none !important;
  cursor: pointer !important;
}

.modern-swal-confirm { background-color: #6366f1 !important; color: #fff !important; }
.modern-swal-cancel { background-color: #f3f4f6 !important; color: #4b5563 !important; }

/* 1. 핵심: 스크롤바 자리를 미리 확보해서 밀림 방지 (스크롤 없을 땐 안 나타남) */
html {
  scrollbar-gutter: stable;
}

/* 2. Swal이 떴을 때 배경 스크롤 차단 */
html.swal2-shown {
  overflow: hidden !important;
  height: 100vh !important;
}

body.swal2-shown {
  overflow: hidden !important;
  padding-right: 0 !important; /* Swal이 넣는 패딩 제거 */
}

/* 3. 뒷 배경(컨테이너) 설정 */
.swal2-container {
  height: 100vh !important;
  overflow-y: auto;
}

.swal2-actions{
  margin: 0.2em !important;
}

/* 체크박스 */
.checkbox-group {
  display: flex;
  gap: 15px;
  align-items: center;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.checkbox-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.checkbox-item label {
  font-size: 15px;
  cursor: pointer;
}

/* Status Bar */
.status-bar {
  display: flex;
  gap: 6px;
  justify-content: center;
}

.status-indicator {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #ddd;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.status-indicator.completed {
  background: linear-gradient(135deg, #6dd5b4 0%, #1a4fa8 100%);
  border-color: #1a4fa8;
  box-shadow: 0 2px 6px rgba(93, 179, 156, 0.4);
}

.status-indicator.pending {
  background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
  border-color: #ccc;
}

/* Custom Summary */
.custom-summary-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.custom-summary-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.custom-text {
  font-size: 14px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  max-height: 2.8em;
  word-break: break-all;
}

.text-danger {
  color: #E74C3C;
}

.text-link {
  color: #007bff;
  text-decoration: underline;
  cursor: pointer;
}

/* Info List */
.info-list {
  margin-bottom: 0;
}

.info-list-item {
  padding: 10px 0;
  font-size: 15px;
  color: #73879C;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 20px;
}

.item-number {
  font-weight: 600;
  min-width: 20px;
}

.item-text {
  flex: 1;
}

/* Category Badge */
.category-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: white;
  flex-shrink: 0;
  white-space: nowrap;
}

.badge-meal {
  background: #ff9800;
}

.badge-accommodation {
  background: #2196f3;
}

.badge-schedule {
  background: #9c27b0;
}

.badge-vehicle {
  background: #607d8b;
}

.badge-etc {
  background: #4caf50;
}

/* 섹션 */
.main-section { background: #FFFFFF; border-radius: 8px; padding:20px; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.main-section-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }
.main-section-title { display:flex; align-items:center; gap:8px; font-size: 16px; font-weight:700; color: #1E293B; }
.main-section-title i { color: #2563EB; }
.main-section-badge { font-size: 12px; font-weight:600; padding:3px 10px; border-radius:20px; background: rgba(37,99,235,.1); color: #2563EB; }
.main-section-badge.red { background:rgba(239,68,68,.1); color:#EF4444; }
.main-section-badge.yellow { background:rgba(245,158,11,.1); color:#F59E0B; }

/* KPI 카드 */
.main-kpi-grid { display:grid; grid-template-columns: repeat(4,1fr); gap:16px; }
.main-kpi-card { background: #FFFFFF; border-radius: 8px; padding:18px; display:flex; align-items:flex-start; gap:14px; box-shadow: 0 1px 4px rgba(0, 0, 0, .08); position:relative; overflow:hidden; animation: fadeInUp .5s ease both; transition: transform .22s cubic-bezier(.4,0,.2,1), box-shadow .22s cubic-bezier(.4,0,.2,1); }
.main-kpi-card:hover { transform:translateY(-3px); box-shadow: 0 4px 16px rgba(0,0,0,.10); }
.main-kpi-card::after { content:''; position:absolute; bottom:0; left:0; right:0; height:3px; background: var(--accent); }
.main-kpi-icon { width:46px; height:46px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size: 18px; flex-shrink:0; }
.main-kpi-body { flex:1; }
.main-kpi-label { font-size: 13px; color: #64748B; font-weight:500; display:block; margin-bottom:4px; }
.main-kpi-value-row { display:flex; align-items:baseline; gap:4px; }
.main-kpi-value { font-size: 27px; font-weight:800; color: #1E293B; line-height:1; }
.main-kpi-unit { font-size: 14px; color: #64748B; }
.main-kpi-change { font-size: 12px; font-weight:500; display:flex; align-items:center; gap:4px; margin-top:5px; }
.main-kpi-change.up { color:#10B981; }
.main-kpi-change.down { color:#EF4444; }
.main-sparkline { position:absolute; bottom:16px; right:16px; width:80px; height:36px; opacity:.5; }
@keyframes fadeInUp { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }

/* 차트 박스 */
.main-chart-box { width:100%; position:relative; }

/* 카테고리 통계 섹션 */
.main-tab-group { display:flex; gap:4px; }
.main-tab { padding:6px 14px; border-radius:20px; font-size: 13px; font-weight:600; background: transparent; color: #64748B; transition: background .22s cubic-bezier(.4,0,.2,1), color .22s cubic-bezier(.4,0,.2,1); border: none; cursor: pointer; }
.main-tab.active { background: #2563EB; color:#fff; }
.main-tab:hover:not(.active) { background: rgba(37,99,235,.1); color: #2563EB; }
.main-rank-slide-wrap { position:relative; padding:0 40px; margin-bottom:20px; }
.main-rank-slide-track-wrap { overflow:hidden; }
.main-rank-slide-track { display:flex; gap:12px; transition: transform .4s cubic-bezier(.4,0,.2,1); }
.main-rank-card { min-width:200px; flex-shrink:0; background: #F1F5F9; border:1px solid #E2E8F0; border-radius:10px; padding:14px; position:relative; transition: transform .22s cubic-bezier(.4,0,.2,1), box-shadow .22s cubic-bezier(.4,0,.2,1); }
.main-rank-card:hover { transform:translateY(-3px); box-shadow: 0 4px 16px rgba(0,0,0,.10); }
.main-rank-medal { position:absolute; top:10px; right:12px; font-size: 18px; }
.main-rank-num { font-size: 12px; font-weight:700; color: #94A3B8; margin-bottom:6px; }
.main-rank-icon { font-size: 25px; margin-bottom:4px; display:block; }
.main-rank-name { font-size: 14px; font-weight:700; color: #1E293B; margin-bottom:8px; }
.main-rank-stats { display:flex; flex-direction:column; gap:4px; }
.main-rank-stat { font-size: 13px; color: #64748B; }
.main-rank-badge { display:inline-block; font-size: 12px; font-weight:700; padding:2px 7px; border-radius:20px; margin-top:4px; }
.main-rank-badge.up { background:rgba(16,185,129,.12); color:#10B981; }
.main-rank-badge.down { background:rgba(239,68,68,.12); color:#EF4444; }
.main-rank-progress-bar { height:4px; border-radius:2px; background: #E2E8F0; margin-top:10px; overflow:hidden; }
.main-rank-progress-fill { height:100%; border-radius:2px; background: #2563EB; transition: width .6s ease; }
.main-rank-slide-btn { position:absolute; top:50%; transform:translateY(-50%); width:30px; height:30px; border-radius:50%; background: #FFFFFF; border:1px solid #E2E8F0; box-shadow: 0 1px 4px rgba(0,0,0,.08); display:flex; align-items:center; justify-content:center; font-size: 13px; color: #64748B; transition: background .22s cubic-bezier(.4,0,.2,1), color .22s cubic-bezier(.4,0,.2,1); z-index:2; cursor: pointer; }
.main-rank-slide-btn:hover { background: #2563EB; color:#fff; }
.main-rank-slide-btn.prev { left:0; }
.main-rank-slide-btn.next { right:0; }
.main-category-charts-row { display:grid; grid-template-columns: 1fr 1fr; gap:20px; }
.main-category-chart-box { background: #F1F5F9; border:1px solid #E2E8F0; border-radius:10px; padding:16px; }
.main-chart-subtitle { font-size: 14px; font-weight:700; color: #1E293B; margin-bottom:12px; }

/* 예약 테이블 */
.main-search-wrap { display:flex; align-items:center; gap:8px; background: #F1F5F9; border:1px solid #E2E8F0; border-radius:8px; padding:6px 12px; }
.main-search-wrap i { color: #94A3B8; font-size: 14px; }
.main-search-wrap input { border:none; background:none; outline:none; font-size: 14px; color: #1E293B; width:200px; }
.main-search-wrap input::placeholder { color: #94A3B8; }
.main-table-wrap { overflow-x:auto; }
.main-data-table { width:100%; border-collapse:collapse; font-size: 14px; }
.main-data-table th { background: #F1F5F9; color: #64748B; font-weight:600; text-align:left; padding:10px 14px; border-bottom:2px solid #E2E8F0; }
.main-data-table td { padding:10px 14px; border-bottom:1px solid #E2E8F0; color: #1E293B; }
.main-data-table tbody tr:hover { background: #F1F5F9; }
.main-status-badge { display:inline-block; font-size: 12px; font-weight:700; padding:3px 9px; border-radius:20px; }
.main-status-badge.confirmed { background:rgba(16,185,129,.12); color:#10B981; }
.main-status-badge.pending   { background:rgba(245,158,11,.12); color:#F59E0B; }
.main-status-badge.cancelled { background:rgba(239,68,68,.12); color:#EF4444; }
.main-guide-badge { display:inline-block; font-size: 12px; font-weight:600; padding:3px 9px; border-radius:20px; }
.main-guide-badge.assigned   { background:rgba(37,99,235,.1); color:#2563EB; }
.main-guide-badge.unassigned { background:rgba(239,68,68,.1); color:#EF4444; }

/* 하단 그리드 */
.main-bottom-grid { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.main-alert-list { display:flex; flex-direction:column; gap:8px; }
.main-alert-item { display:flex; align-items:center; justify-content:space-between; padding:12px 14px; background: #F1F5F9; border-radius:8px; border:1px solid #E2E8F0; transition: transform .22s cubic-bezier(.4,0,.2,1); }
.main-alert-item:hover { transform:translateX(3px); }
.main-alert-info { display:flex; align-items:center; gap:10px; }
.main-alert-urgency { font-size: 12px; font-weight:700; padding:2px 8px; border-radius:20px; white-space:nowrap; }
.main-alert-urgency.urgent  { background:rgba(239,68,68,.12); color:#EF4444; }
.main-alert-urgency.warning { background:rgba(245,158,11,.12); color:#F59E0B; }
.main-alert-urgency.normal  { background:rgba(100,116,139,.12); color:#64748B; }
.main-alert-detail strong { display:block; font-size: 14px; font-weight:600; color: #1E293B; }
.main-alert-detail span   { font-size: 12px; color: #64748B; }
.main-assign-btn { font-size: 13px; font-weight:600; padding:5px 12px; border-radius:6px; background: #2563EB; color:#fff; transition: opacity .22s cubic-bezier(.4,0,.2,1), transform .22s cubic-bezier(.4,0,.2,1); }
.main-assign-btn:hover { opacity:.85; transform:scale(1.03); }
.main-inquiry-list { display:flex; flex-direction:column; gap:8px; }
.main-inquiry-item { padding:12px 14px; background: #F1F5F9; border-radius:8px; border:1px solid #E2E8F0; transition: transform .22s cubic-bezier(.4,0,.2,1); }
.main-inquiry-item:hover { transform:translateX(3px); }
.main-inquiry-top { display:flex; align-items:center; gap:8px; margin-bottom:5px; }
.main-inquiry-tag { font-size: 12px; font-weight:700; padding:2px 8px; border-radius:20px; }
.main-inquiry-tag.general { background:rgba(37,99,235,.12); color:#2563EB; }
.main-inquiry-tag.login   { background:rgba(245,158,11,.12); color:#F59E0B; }
.main-inquiry-name { font-size: 14px; font-weight:600; color: #1E293B; }
.main-inquiry-time { font-size: 12px; color: #94A3B8; margin-left:auto; }
.main-inquiry-text { font-size: 13px; color: #64748B; line-height:1.5; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-bottom:7px; }
.main-reply-btn { font-size: 12px; font-weight:600; padding:4px 10px; border-radius:6px; background: rgba(37,99,235,.1); color: #2563EB; transition: background .22s cubic-bezier(.4,0,.2,1); }
.main-reply-btn:hover { background: #2563EB; color:#fff; }

/* 새 추천여행 슬라이드 */
.main-section-card { background: #FFFFFF; border-radius: 8px; padding: 20px 24px; box-shadow: 0 1px 4px rgba(0,0,0,.08); margin-bottom: 0; }
.main-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.main-section-head h2 { font-size: 16px; font-weight: 700; color: #1E293B; display: flex; align-items: center; gap: 8px; }
.main-sub-label { font-size: 13px; color: #94A3B8; }
.main-slide-nav { display:flex; gap:8px; }
.main-slide-btn { width:32px; height:32px; border-radius:50%; background:#F8FAFC; border:1px solid #E2E8F0; display:flex; align-items:center; justify-content:center; color:#64748b; transition:all .22s cubic-bezier(.4,0,.2,1); cursor:pointer; }
.main-slide-btn:hover { background:#F8FAFC; color:#fff; }
.main-slide-prev, .main-slide-next { width: 32px; height: 32px; border-radius: 50%; background: #FFFFFF; border: 1px solid #E2E8F0; display: flex; align-items: center; justify-content: center; color: #64748B; font-size: 13px; transition: background .22s cubic-bezier(.4,0,.2,1); }
.main-slide-prev:hover, .main-slide-next:hover { background: #2563EB; color: #fff; }
.main-slide-container { overflow:hidden; border-radius:10px; }
.main-slide-track-wrap { overflow:hidden; border-radius:10px; }
.main-slide-track { display:flex; gap:16px; transition:transform .5s cubic-bezier(.4,0,.2,1); }
.main-slide-card { flex-shrink:0; width:220px; height:148px; border-radius:10px; overflow:hidden; position:relative; background-size:cover; background-position:center; cursor:pointer; }
.main-slide-card::before { content:''; position:absolute; inset:0; background:linear-gradient(180deg, transparent 30%, rgba(0,0,0,.7) 100%); }
/*.main-slide-card:nth-child(1) { background-image:url('https://images.unsplash.com/photo-1537996194471-e657df975ab4?w=600'); }*/
/*.main-slide-card:nth-child(2) { background-image:url('https://images.unsplash.com/photo-1540959733332-eab4deabeeaf?w=600'); }*/
/*.main-slide-card:nth-child(3) { background-image:url('https://images.unsplash.com/photo-1502602898657-3e91760cbb34?w=600'); }*/
/*.main-slide-card:nth-child(4) { background-image:url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=600'); }*/
/*.main-slide-card:nth-child(5) { background-image:url('https://images.unsplash.com/photo-1524492412937-b28074a5d7da?w=600'); }*/
/*.main-slide-card:nth-child(6) { background-image:url('https://images.unsplash.com/photo-1523906834658-6e24ef2386f9?w=600'); }*/
.main-slide-overlay { position:absolute; bottom:0; left:0; right:0; padding:12px; color:#fff; }
.main-slide-badge { display:inline-block; padding:2px 8px; border-radius:20px; font-size: 12px; font-weight:700; background:#2563EB; margin-bottom:4px; }
.main-slide-overlay h3 { font-size: 14px; font-weight:700; margin-bottom:2px; }
.main-slide-overlay p { font-size: 13px; opacity:.85; margin-bottom:4px; }
.main-slide-price { font-size: 13px; font-weight:700; color:#fde68a; }
.main-slide-dots { display:flex; justify-content:center; gap:6px; margin-top:12px; }
.main-slide-dot { width:8px; height:8px; border-radius:50%; background:#E2E8F0; transition:background .22s cubic-bezier(.4,0,.2,1); cursor:pointer; }
.main-slide-dot.active { background:#2563EB; }

/* 새 가이드 미배정 / 미답변 문의 */
.main-alert-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #E2E8F0; }
.main-alert-list li:last-child { border-bottom: none; }
.main-alert-info { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.main-alert-info > div { min-width: 0; }
.main-alert-info strong { font-size: 14px; font-weight: 700; color: #1E293B; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.main-alert-info small { font-size: 13px; color: #64748B; }
.main-urgency { flex-shrink: 0; display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.main-urgency-high { background: #fee2e2; color: #991b1b; }
.main-urgency-mid  { background: #fef9c3; color: #713f12; }
.main-urgency-low  { background: #d1fae5; color: #065f46; }
.main-btn-assign { flex-shrink: 0; padding: 5px 12px; border-radius: 6px; background: #2563EB; color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; transition: opacity .22s cubic-bezier(.4,0,.2,1); border: none }
.main-btn-assign:hover { background: #1d4ed8; }
.main-badge-count { background: #EF4444; color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.main-inquiry-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #E2E8F0; }
.main-inquiry-list li:last-child { border-bottom: none; }
.main-inq-info { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.main-inq-info > div { min-width: 0; }
.main-inq-info strong { font-size: 14px; font-weight: 700; color: #1E293B; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.main-inq-info small { font-size: 13px; color: #64748B; }
.main-inq-tag { flex-shrink: 0; display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.main-tag-general { background: #dbeafe; color: #1e40af; }
.main-tag-login   { background: #ffedd5; color: #9a3412; }
.main-btn-reply { flex-shrink: 0; padding: 5px 12px; border-radius: 6px; background: #f8fafc; color: #64748B; font-size: 13px; font-weight: 600; border: 1px solid #E2E8F0; transition: background .22s cubic-bezier(.4,0,.2,1), color .22s cubic-bezier(.4,0,.2,1), border-color .22s cubic-bezier(.4,0,.2,1); cursor: pointer; }
.main-btn-reply:hover { background: #2563EB; color: #fff; border-color: #2563EB; }

/* 유틸 컬러 */
.txt-orange  { color: #f97316; }
.txt-red     { color: #EF4444; }

/* Rating Cards */
.rating-cards-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.rating-card {
  border: 1px solid #E6E9ED;
  border-radius: 6px;
  padding: 20px;
  text-align: center;
  background: white;
  position: relative;
}

.rating-title {
  font-size: 15px;
  font-weight: 600;
  color: #2A3F54;
  margin-bottom: 8px;
}

.rating-score {
  font-size: 17px;
  font-weight: 600;
  color: #2A3F54;
  margin-bottom: 8px;
}

.rating-count {
  font-size: 13px;
  color: #73879C;
}

.star-rating {
  display: inline-flex;
  gap: 2px;
  font-size: 20px;
  line-height: 1;
}
.star-wrap {
  position: relative;
  display: inline-block;
  width: 1em;
  height: 1em;
}
.star-wrap .star-bg {
  color: #ddd;
  position: absolute;
  top: 0; left: 0;
}
.star-wrap .star-fill {
  color: #FFD700;
  position: absolute;
  top: 0; left: 0;
  overflow: hidden;
}

/* Location Tag */
.location-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: #e9ecef;
  border-radius: 35px;
  font-size: 14px;
  color: #73879C;
}
.location-tag i {
  margin-left: 6px;
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
}

/* Review Styles */
.review-item {
  border: 1px solid #E6E9ED;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  background: white;
}
.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}
.review-title {
  font-size: 17px;
  font-weight: 600;
  color: #2A3F54;
  margin-bottom: 8px;
}
.review-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 14px;
  color: #73879C;
}
.review-rating {
  color: #73879C;
  font-weight: 400;
}
.review-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.review-tag {
  display: inline-block;
  padding: 8px 16px;
  background: #e9ecef;
  color: #73879C;
  border-radius: 35px;
  font-size: 14px;
}
.review-content {
  color: #2A3F54;
  line-height: 1.6;
  margin-bottom: 15px;
  font-size: 15px;
}
.review-images {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}
.review-image-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 4px;
}
.review-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.review-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #73879C;
  font-size: 14px;
}
.review-actions {
  display: flex;
  gap: 8px;
}
.review-reply {
  margin-top: 15px;
  padding: 15px;
  background: #f8f9fa;
  border-left: 3px solid #1a4fa8;
  border-radius: 4px;
}
.reply-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-size: 15px;
  color: #2A3F54;
}
.reply-content {
  color: #73879C;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 15px;
}
.review-action-log {
  margin-top: 15px;
  padding: 15px;
  background: #fff5f5;
  border-left: 3px solid #d9534f;
  border-radius: 4px;
}

/* Tag Input */
.keyword-tags-area {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}
.keyword-tags-area.active {
  display: flex;
}
.keyword-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: #e9ecef;
  border-radius: 35px;
  font-size: 14px;
  color: #73879C;
}
.keyword-tag i {
  cursor: pointer;
  font-size: 13px;
  color: #73879C;
  margin-left: 6px;
}
.keyword-tag i:hover {
  color: #d9534f;
}

/* Slide Image List */
.slide-image-list {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}
.slide-image-item {
  position: relative;
  width: 120px;
}
.slide-image-preview {
  width: 120px;
  height: 120px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  overflow: hidden;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slide-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide-image-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.slide-image-close:hover {
  background: rgba(217, 83, 76, 0.9);
}
.slide-image-number {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 20px);
}
.slide-image-number input {
  width: 100%;
  padding: 10px 12px;
  text-align: center;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 15px;
  background: white;
}

/* Day Card Styles */
.day-card {
  border: 1px solid #E6E9ED;
  border-radius: 8px;
  margin-bottom: 20px;
  background: white;
}
.day-card-header {
  padding: 15px 20px;
  background: #f8f9fa;
  border-bottom: 1px solid #E6E9ED;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 8px 8px 0 0;
}
.day-card-header h4 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: #2A3F54;
}
.day-card-body {
  padding: 20px;
}
.icon-btn {
  padding: 6px 10px;
  border: 1px solid #ced4da;
  background: white;
  border-radius: 4px;
  cursor: pointer;
  color: #73879C;
}
.icon-btn:hover {
  background: #f8f9fa;
}

/* Course Item Styles */
.course-item {
  position: relative;
  border: 1px solid #E6E9ED;
  border-radius: 4px;
  padding: 15px 15px 15px 50px;
  margin-bottom: 10px;
  background: #f8f9fa;
  transition: background 0.2s;
}
.course-item.dragging {
  opacity: 0.5;
  background: #e9ecef;
}
.course-item.drag-over {
  border-top: 3px solid #1a4fa8;
}
.course-drag-handle {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: #73879C;
  cursor: move;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.course-drag-handle:hover {
  color: #2A3F54;
}
.course-content {
  width: 100%;
}

/* 코스 이미지 삭제 버튼 hover */
.course-image-item button:hover {
  background: rgba(217, 83, 76, 0.9) !important;
}

.detail-section {
  padding: 20px;
  border: 1px solid #d0e4f5;
  border-radius: 8px;
  background: #f7fbff;
}

/* 항공 아이템 */
.flight-item {
  position:relative;
  border:1px solid #E6E9ED;
  border-radius:4px;
  padding:15px 15px 15px 50px;
  margin-bottom:10px;
  background:#f8f9fa;
  display:flex;
  align-items:center;
  gap:8px;
}

/* 화면 전체를 덮는 반투명 배경 */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.6); /* 반투명 흰색 */
  backdrop-filter: blur(2px); /* 배경 흐림 효과 */
  z-index: 999999; /* 화면 최상단 */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* 바깥 테두리 링 색상 */
.swal2-icon.swal2-success {
  border-color: #3b82f6 !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
  border: .25em solid rgba(59, 130, 246, .3) !important; /* 투명도 있는 바깥 링 */
}

/* 내부 체크 표시(V) 선 색상 */
.swal2-icon.swal2-success [class^='swal2-success-line'] {
  background-color: #3b82f6 !important;
}

/* 빙글빙글 도는 스피너 애니메이션 */
.spinner {
  width: 48px;
  height: 48px;
  border: 5px solid #e2e8f0;
  border-top: 5px solid #3b82f6; /* 메인 컬러 (파란색) */
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

.field-item-button-tbody td.editable {
  position: relative;
  cursor: pointer;
}

.field-item-button-tbody td.editable input {
  display: none;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: calc(100% - 2px);
  height: 28px;
  border: 1px solid #aac4e0;
  border-radius: 3px;
  padding: 0 5px;
  font-size: 13px;
  box-sizing: border-box;
  margin: 0;
}

.field-item-button-tbody td.editable.is-editing input {
  display: block;
}

/* 로딩 텍스트 */
.loading-text {
  font-size: 16px;
  font-weight: 600;
  color: #475569;
  letter-spacing: -0.5px;
}

/* 스피너 회전 키프레임 */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* =====================================================================
   거래처등록(list_partner) 디자인 적용 — 신규 style.css(동우포장 공통 컴포넌트) 중
   해당 페이지에 쓰이는 부분만 추가. 기존 클래스와 겹치는 .search-grid / .search-actions 는
   .search-panel 하위로 한정해 다른 페이지에 영향이 없도록 함.
   ===================================================================== */

/* 카드 */
.card { color: #203042; background: #ffffff; border: 1px solid #d9e1eb; border-radius: 16px; box-shadow: 0 6px 18px rgba(15,23,42,0.06); }
.search-panel { padding: 10px 12px; margin-bottom: 10px; }

/* 버튼 */
.btn {
  height: 32px; padding: 0 12px; border-radius: 10px; border: 1px solid #e3ebf3;
  background: #fff; color: #4e5d70; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: filter .15s;
}
.btn:hover { filter: brightness(0.985); }
.btn-primary {
  color: #fff; border-color: #4db0ff;
  background: linear-gradient(180deg, #41b3ff 0%, #2f9fff 100%);
  box-shadow: 0 8px 18px rgba(47, 159, 255, 0.22);
}
.btn-primary:hover { background: linear-gradient(180deg, #41b3ff 0%, #2f9fff 100%); }
.btn-danger { color: #e86a6a; border-color: #ffd6d6; background: #fff; }

/* 검색 (기존 .search-grid 와 충돌 방지: .search-panel 하위로 한정) */
.search-panel .search-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 10px; align-items: center; }
.search-field { display: flex; align-items: center; gap: 6px; min-height: 30px; }
.search-field label { width: 74px; min-width: 74px; height: 30px; display: inline-flex; align-items: center; justify-content: flex-start; color: #66778b; font-size: 13px; font-weight: 700; letter-spacing: -0.01em; }
.search-panel .search-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; white-space: nowrap; }

/* 인풋 / 셀렉트 */
.input, .select { width: 100%; height: 30px; border: 1px solid #dfe7f0; border-radius: 9px; background: #fff; color: #203042; padding: 0 12px; font-size: 14px; outline: none; font-family: inherit; }
textarea.input { height: 60px; padding: 8px 12px; resize: none; line-height: 1.45; }
.input:focus, .select:focus { border-color: #91ccff; box-shadow: 0 0 0 3px rgba(47, 159, 255, 0.10); }
.input.readonly { background: #f5f8fb; color: #68788b; }

/* 패널 / 목록 */
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 8px; }
.panel-title { display: flex; flex-direction: column; gap: 2px; }
.panel-title h3 { margin: 0; font-size: 15px; font-weight: 800; }
.panel-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.detail-panel .panel-head { border-bottom: 1px solid #eef3f8; }
.list-panel { overflow: hidden; display: flex; flex-direction: column; }
.list-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid #e3ebf3; border-radius: 12px; overflow: hidden; }
.list-table thead th { height: 34px; background: linear-gradient(180deg, #f8fbff 0%, #edf5fc 100%); border-bottom: 1px solid #e3ebf3; color: #748294; font-size: 13px; font-weight: 800; padding: 0 8px; text-align: center; }
.list-table tbody td { height: 38px; border-bottom: 1px solid #eef3f8; color: #203042; font-size: 14px; padding: 0 8px; text-align: center; background: #fff; }
.list-table tbody tr:last-child td { border-bottom: 0; }
.list-table tbody tr.is-active td { background: linear-gradient(180deg, #eff8ff 0%, #e3f2ff 100%); }
.cl-row:hover td { background: #f0f7ff; cursor: pointer; }
.check-col { width: 34px; }

/* 체크박스 커스텀 */
.custom-chk { display: none; }
.custom-chk + label {
  width: 18px; height: 18px; border: 2px solid #d9e1eb; border-radius: 5px; background: #fff;
  display: inline-flex; vertical-align: middle; align-items: center; justify-content: center;
  cursor: pointer; transition: border-color .15s, background .15s; flex-shrink: 0; margin: 0;
}
.custom-chk:checked + label { border-color: #18a0fb; background: #18a0fb; }
.custom-chk + label::after {
  content: ''; width: 10px; height: 6px; border-left: 2px solid transparent; border-bottom: 2px solid transparent;
  transform: rotate(-45deg) translateY(-1px); display: block; transition: border-color .15s;
}
.custom-chk:checked + label::after { border-left-color: #fff; border-bottom-color: #fff; }

/* 토스트 */
.pr-toast { position: fixed; right: 24px; bottom: 24px; min-width: 260px; max-width: 360px; padding: 14px 16px; border-radius: 14px; background: rgba(17,24,39,0.96); color: #fff; box-shadow: 0 14px 32px rgba(15,23,42,0.08); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; z-index: 2000; font-size: 15px; }
.pr-toast.show { opacity: 1; transform: translateY(0); }

/* 반응형 */
@media (max-width: 1400px) { .search-panel .search-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 980px)  { .search-panel .search-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 768px)  {
  .search-panel .search-grid { grid-template-columns: 1fr; }
  .search-field { flex-direction: column; align-items: stretch; }
  .search-field label { width: auto; min-width: 0; }
  .search-panel .search-actions { justify-content: flex-start; }
}


/* =====================================================================
   동우포장 공통 컴포넌트 (거래처등록, 공정기준관리 등 목록+상세 화면 공용)
   - 부트스트랩/템플릿 CSS(.card, .btn, .input 등)와 이름이 겹쳐 깨지지 않도록
     모든 선택자를 페이지 래퍼(.dw-partner) 하위로 한정함.
   - 사용: <div class="dw-partner"> ... </div> 안에서만 적용
   ===================================================================== */

/* 기본 리셋 (프레임워크 CSS 보정) */
.dw-partner label { margin-bottom: 0; }
.dw-partner h3 { line-height: 1.2; }

/* 카드 */
.dw-partner .card { color: #203042; background: #ffffff; border: 1px solid #d9e1eb; border-radius: 16px; box-shadow: 0 6px 18px rgba(15,23,42,0.06); }
.dw-partner .search-panel { padding: 10px 12px; margin-bottom: 10px; }

/* 버튼 */
.dw-partner .btn { height: 32px; padding: 0 12px; border-radius: 10px; border: 1px solid #e3ebf3; background: #fff; color: #4e5d70; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: filter .15s; line-height: 1; text-transform: none; text-decoration: none; }
.dw-partner .btn:hover { filter: brightness(0.985); }
.dw-partner .btn-primary { color: #fff; border-color: #4db0ff; background: linear-gradient(180deg, #41b3ff 0%, #2f9fff 100%); box-shadow: 0 8px 18px rgba(47, 159, 255, 0.22); }
.dw-partner .btn-primary:hover { background: linear-gradient(180deg, #41b3ff 0%, #2f9fff 100%); }
.dw-partner .btn-danger { color: #e86a6a; border-color: #ffd6d6; background: #fff; }

/* 검색 영역 */
.dw-partner .search-panel .search-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 10px; align-items: center; }
.dw-partner .search-field { display: flex; align-items: center; gap: 6px; min-height: 30px; }
.dw-partner .search-field label { width: 74px; min-width: 74px; height: 30px; display: inline-flex; align-items: center; justify-content: flex-start; color: #66778b; font-size: 13px; font-weight: 700; letter-spacing: -0.01em; }
.dw-partner .search-panel .search-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; white-space: nowrap; }

/* 입력 / 셀렉트 */
.dw-partner .input, .dw-partner .select { width: 100%; height: 30px; border: 1px solid #dfe7f0; border-radius: 9px; background: #fff; color: #203042; padding: 0 12px; font-size: 14px; outline: none; font-family: inherit; }
.dw-partner textarea.input { height: 60px; padding: 8px 12px; resize: none; line-height: 1.45; }
.dw-partner .input:focus, .dw-partner .select:focus { border-color: #91ccff; box-shadow: 0 0 0 3px rgba(47, 159, 255, 0.10); }
.dw-partner .input.readonly { background: #f5f8fb; color: #68788b; }

/* 페이지 레이아웃 (목록 | 상세 2단) */
.dw-partner .content-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: stretch; min-height: 0; }

/* 패널 헤더 */
.dw-partner .panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 8px; }
.dw-partner .panel-title { display: flex; flex-direction: column; gap: 2px; }
.dw-partner .panel-title h3 { margin: 0; font-size: 15px; font-weight: 800; color: #1a2e44; }
.dw-partner .panel-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dw-partner .detail-panel .panel-head { border-bottom: 1px solid #eef3f8; }

/* 목록 (고정 헤더 테이블 + 스크롤 본문) */
.dw-partner .list-panel { overflow: hidden; display: flex; flex-direction: column; }
.dw-partner .list-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid #e3ebf3; border-radius: 12px; overflow: hidden; }
.dw-partner .list-table thead th { height: 34px; background: linear-gradient(180deg, #f8fbff 0%, #edf5fc 100%); border-bottom: 1px solid #e3ebf3; color: #748294; font-size: 13px; font-weight: 800; padding: 0 8px; text-align: center; cursor: default; }
.dw-partner .list-table tbody td { height: 38px; border-bottom: 1px solid #eef3f8; color: #203042; font-size: 14px; padding: 0 8px; text-align: center; background: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dw-partner .list-table tbody tr:last-child td { border-bottom: 0; }
.dw-partner .list-table tbody tr.is-active td { background: linear-gradient(180deg, #eff8ff 0%, #e3f2ff 100%); }
.dw-partner .cl-row:hover td { background: #f0f7ff; cursor: pointer; }
.dw-partner .check-col { width: 34px; }
.dw-partner .list-table-head { margin: 0 8px; width: calc(100% - 16px); table-layout: fixed; }
.dw-partner .list-table-head th { background: linear-gradient(180deg, #f6f9fc 0%, #edf3f9 100%); border-bottom: 2px solid #e0e8f0; }
.dw-partner .list-wrap { height: calc(100vh - 244px); min-height: 360px; overflow-y: auto; overflow-x: hidden; padding: 0 8px 8px; }
.dw-partner .list-table-body { table-layout: fixed; }
.dw-partner .list-table td.text-left { text-align: left; }
.dw-partner .list-table tbody tr.empty-row td { color: #73879C; cursor: default; }

/* 체크박스 */
.dw-partner .custom-chk { display: none; }
.dw-partner .custom-chk + label { width: 18px; height: 18px; border: 2px solid #d9e1eb; border-radius: 5px; background: #fff; display: inline-flex; vertical-align: middle; align-items: center; justify-content: center; cursor: pointer; transition: border-color .15s, background .15s; flex-shrink: 0; margin: 0; }
.dw-partner .custom-chk:checked + label { border-color: #18a0fb; background: #18a0fb; }
.dw-partner .custom-chk + label::after { content: ''; width: 10px; height: 6px; border-left: 2px solid transparent; border-bottom: 2px solid transparent; transform: rotate(-45deg) translateY(-1px); display: block; transition: border-color .15s; }
.dw-partner .custom-chk:checked + label::after { border-left-color: #fff; border-bottom-color: #fff; }

/* 상세 영역 / 폼 필드 */
.dw-partner .detail-panel { display: flex; flex-direction: column; overflow: hidden; }
.dw-partner .detail-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 10px; flex: 1; overflow-y: auto; overflow-x: hidden; }
.dw-partner .option-row { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px 12px; align-items: center; }
.dw-partner .option-box { min-height: 30px; display: flex; align-items: center; padding: 0 8px; border: 1px solid #dfe7f0; border-radius: 10px; background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72); overflow: hidden; }
.dw-partner .field-label { width: 92px; min-width: 92px; height: 30px; margin: 0; padding: 0 8px; border-radius: 10px; background: linear-gradient(180deg, #f6f9fc 0%, #edf3f9 100%); border: 1px solid #dbe5f0; display: inline-flex; align-items: center; justify-content: flex-start; color: #4d5b6d; font-size: 12px; font-weight: 600; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75); }
.dw-partner .field-label.required { color: #155ea8; background: linear-gradient(180deg, #eef7ff 0%, #e5f2ff 100%); border-color: #c7def5; }
.dw-partner .field-label.required::before { content: "\2022"; margin-right: 6px; color: #2f9fff; font-size: 13px; line-height: 1; }
.dw-partner .inline-options { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; min-height: 32px; width: 100%; }
.dw-partner .inline-options label { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: #4f5d6f; white-space: nowrap; flex: 0 0 auto; }
.dw-partner .inline-options input[type="radio"], .dw-partner .inline-options input[type="checkbox"] { accent-color: #2f9fff; width: 14px; height: 14px; margin: 0; }
.dw-partner .detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
.dw-partner .field { display: flex; align-items: center; gap: 8px; min-height: 30px; }
.dw-partner .field.textarea-field { align-items: flex-start; }
.dw-partner .field.textarea-field label { margin-top: 0; }
.dw-partner .field.textarea-field .field-control { align-items: flex-start; }
.dw-partner .field.span-2 { grid-column: span 2; }
.dw-partner .field label { width: 92px; min-width: 92px; height: 30px; margin: 0; padding: 0 8px; border-radius: 10px; background: linear-gradient(180deg, #f6f9fc 0%, #edf3f9 100%); border: 1px solid #dbe5f0; display: inline-flex; align-items: center; justify-content: flex-start; color: #4d5b6d; font-size: 12px; font-weight: 600; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75); }
.dw-partner .field label.required { color: #155ea8; background: linear-gradient(180deg, #eef7ff 0%, #e5f2ff 100%); border-color: #c7def5; }
.dw-partner .field label.required::before { content: "\2022"; margin-right: 6px; color: #2f9fff; font-size: 13px; line-height: 1; }
.dw-partner .field-control { flex: 1; display: flex; align-items: center; gap: 6px; min-width: 0; }
.dw-partner .field-control .input, .dw-partner .field-control .select { flex: 1; }
.dw-partner .field-row { display: flex; align-items: center; gap: 6px; width: 100%; }
.dw-partner .range-row { display: flex; align-items: center; gap: 4px; width: 100%; }
.dw-partner .range-row span { color: #94a0ae; font-size: 12px; flex: 0 0 auto; }
.dw-partner .mini-btn { height: 30px; padding: 0 10px; border-radius: 9px; border: 1px solid #e3ebf3; background: #fff; color: #526173; font-size: 11px; font-weight: 700; white-space: nowrap; cursor: pointer; flex: 0 0 auto; font-family: inherit; }
.dw-partner .mini-btn.icon-btn { width: 30px; min-width: 30px; padding: 0; font-size: 14px; }

/* 팝업 */
.dw-partner .pr-modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(15, 23, 42, 0.54); z-index: 1000; }
.dw-partner .pr-modal.is-open { display: flex; }
.dw-partner .pr-modal .modal-dialog { width: 100%; background: #ffffff; border-radius: 24px; box-shadow: 0 24px 60px rgba(2, 6, 23, 0.18); overflow: hidden; }
.dw-partner .pr-modal .modal-head { padding: 10px 16px; border-bottom: 1px solid #d9e1eb; display: flex; align-items: center; justify-content: space-between; }
.dw-partner .pr-modal .modal-head h3 { color: #1a2e44; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.dw-partner .pr-modal .modal-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 14px; }
.dw-partner .pr-modal .modal-foot { padding: 12px 16px; border-top: 1px solid #d9e1eb; display: flex; justify-content: flex-end; gap: 8px; }
.dw-partner .pr-modal .table-wrap { max-height: 300px; overflow: auto; }
.dw-partner .modal-sub-title { font-size: 14px; font-weight: 800; color: #203042; }

/* 토스트 */
.dw-partner .pr-toast { position: fixed; right: 24px; bottom: 24px; min-width: 260px; max-width: 360px; padding: 14px 16px; border-radius: 14px; background: rgba(17,24,39,0.96); color: #fff; box-shadow: 0 14px 32px rgba(15,23,42,0.08); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; z-index: 2000; font-size: 15px; }
.dw-partner .pr-toast.show { opacity: 1; transform: translateY(0); }

/* 알약 라벨 / 섹션 박스 / 라디오 그룹 */
.dw-partner .pill { display: inline-block; min-width: 40px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.3; }
.dw-partner .sec { border: 1px solid #e3ebf3; border-radius: 12px; overflow: hidden; background: #fff; }
.dw-partner .sec-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; background: linear-gradient(180deg, #f8fbff 0%, #f1f6fb 100%); border-bottom: 1px solid #e3ebf3; }
.dw-partner .sec-title { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: #203042; }
.dw-partner .sec-title::before { content: ""; border-left: 6px solid #2f9fff; border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.dw-partner .sec-body { padding: 10px 12px 12px; }
.dw-partner .radio-inline { display: flex; align-items: center; gap: 14px; min-height: 30px; }
.dw-partner .radio-inline label { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: #4f5d6f; white-space: nowrap; }
.dw-partner .radio-inline input[type="radio"] { accent-color: #2f9fff; width: 14px; height: 14px; margin: 0; }
.dw-partner .field .radio-inline label { width: auto; min-width: 0; height: auto; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; font-weight: 400; }
.dw-partner .detail-grid .field-control .radio-inline { width: 100%; }

/* 반응형 */
@media (max-width: 1400px) {
  .dw-partner .search-panel .search-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dw-partner .content-grid { grid-template-columns: 1fr; }
  .dw-partner .list-wrap { height: 360px; min-height: 0; }
}
@media (max-width: 980px) {
  .dw-partner .search-panel .search-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dw-partner .detail-grid { grid-template-columns: 1fr; }
  .dw-partner .field.span-2 { grid-column: span 1; }
}
@media (max-width: 768px) {
  .dw-partner .search-panel .search-grid { grid-template-columns: 1fr; }
  .dw-partner .search-field { flex-direction: column; align-items: stretch; }
  .dw-partner .search-field label { width: auto; min-width: 0; }
  .dw-partner .search-panel .search-actions { justify-content: flex-start; }
}
