/* ========================================
   관리자 페이지 CSS
   한국전시문화산업협동조합 관리자
   ======================================== */

/* ========================================
   레이아웃
   ======================================== */
.adm-layout {
  min-height: 100vh;
  min-width: 1090px;
  display: flex;
  flex-direction: column;
}

/* ========================================
   헤더
   ======================================== */
.adm-header {
  width: 100%;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  background: #fff;
}

/* 헤더 상단 (로고 + 유틸) */
.adm-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 55px;
  padding: 0 30px;
  background: #fff;
}
.adm-header-logo {
  margin: 0;
}
.adm-header-logo a {
  display: flex;
  align-items: center;
}
.adm-header-logo img {
  height: 28px;
}

/* 유틸 영역 (아이콘 + 타이머 + 버튼) */
.adm-header-util {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #666;
}
.adm-user-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1.5px solid #bbb;
  border-radius: 50%;
  color: #999;
}
.adm-user-icon svg {
  width: 16px;
  height: 16px;
}
.adm-timer {
  font-size: 13px;
  color: #666;
}
.adm-util-btn {
  padding: 5px 14px;
  font-size: 12px;
  color: #555;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s;
}
.adm-util-btn:hover {
  background: #f5f5f5;
  border-color: #999;
}

/* ========================================
   파란 GNB 바
   ======================================== */
.adm-gnb-bar {
  background: #3366cc;
  height: 50px;
}
.adm-gnb-inner {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 30px;
}
.adm-gnb-home {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  margin-right: 40px;
  white-space: nowrap;
}
.adm-gnb-home:hover {
  opacity: 0.9;
}
.adm-gnb {
  flex: 1;
}
.adm-menu-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
.adm-menu-item {
  position: relative;
  cursor: pointer;
}
.adm-menu-item a {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  padding: 0 20px;
  line-height: 50px;
  text-decoration: none;
  transition: all 0.2s;
}
.adm-menu-item:hover a,
.adm-menu-item.active a {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

/* ========================================
   좌측 사이드바
   ======================================== */
.adm-sidebar {
  position: fixed;
  top: 105px;
  left: 0;
  width: 210px;
  height: calc(100vh - 105px);
  background: #f4f4f4;
  border-right: 1px solid #e5e5e5;
  z-index: 90;
  overflow-y: auto;
  overflow-x: hidden;
}
.adm-sidebar-title {
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: #222;
  margin: 0;
}
.adm-sidebar-menu {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}
.adm-sidebar-menu li {
  margin: 0;
}
.adm-sidebar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 20px 11px 24px;
  font-size: 14px;
  color: #555;
  text-decoration: none;
  transition: all 0.15s;
  border-left: 3px solid transparent;
}
.adm-sidebar-item:hover {
  background: #eef1f6;
  color: #333;
}
.adm-sidebar-item.active {
  background: #3366cc;
  color: #fff;
  font-weight: 600;
  border-left-color: #3366cc;
}
.adm-sidebar-item.active::after {
  content: '\203A';
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

/* ========================================
   콘텐츠 영역
   ======================================== */
.adm-content {
  flex: 1;
  padding: 125px 30px 40px 30px;
  min-height: calc(100vh - 63px);
}
.adm-content.has-sidebar {
  padding-left: 240px;
}

/* 페이지 헤더 (서브페이지 타이틀 + 브레드크럼) */
.adm-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.adm-page-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: #333;
}
.adm-title-icon {
  color: #0ea5e7;
  font-size: 12px;
}
.adm-breadcrumb {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #888;
}
.adm-breadcrumb a {
  color: #888;
  text-decoration: none;
}
.adm-breadcrumb a:hover {
  color: #0ea5e7;
}

/* ========================================
   대시보드
   ======================================== */
.dashboard-cont {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.admContBox {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 0 10px rgba(14, 165, 231, 0.3);
  overflow: hidden;
}
.acbHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid #eee;
}
.acbHeader h3 {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin: 0;
}
.acbHeader .more-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 22px;
  color: #999;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s;
}
.acbHeader .more-btn:hover {
  background: #f0f0f0;
  color: #333;
}
.acbBody {
  padding: 8px 0;
}
.acLi {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  transition: background 0.15s;
}
.acLi:hover {
  background: #f9fbff;
}
.acLiTxt {
  flex: 1;
  font-size: 14px;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 20px;
}
.acLiTxt a {
  color: #333;
  text-decoration: none;
}
.acLiTxt a:hover {
  color: #0ea5e7;
}
.acLiDate {
  font-size: 13px;
  color: #999;
  white-space: nowrap;
  flex-shrink: 0;
}
.acLi-empty {
  padding: 30px 24px;
  text-align: center;
  font-size: 14px;
  color: #999;
}

/* ========================================
   푸터
   ======================================== */
.adm-footer {
  background: #333;
  padding: 20px 30px;
}
.adm-footer.has-sidebar {
  margin-left: 210px;
  width: calc(100% - 210px);
}
.adm-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.adm-footer-copyright {
  font-size: 13px;
  color: #999;
}
.adm-footer-logo {
  height: 22px;
  opacity: 0.5;
  filter: brightness(0) invert(1);
}

/* ========================================
   관리자 공통 컴포넌트 스타일 (project_005 기반)
   ======================================== */

/* 검색 박스 */
.admin-search-box { background: #fff; border: 1px solid #e5e5e5; border-radius: 4px; padding: 20px; margin-bottom: 20px; }
.admin-search-row { display: flex; gap: 15px; align-items: center; flex-wrap: wrap; }
.admin-search-item { display: flex; align-items: center; gap: 8px; }
.admin-search-item label { font-size: 14px; color: #333; font-weight: 500; white-space: nowrap; }
.admin-search-item input, .admin-search-item select { height: 36px; padding: 0 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; }
.admin-search-item input { width: 200px; }
.admin-search-btns { display: flex; gap: 8px; margin-left: auto; }

/* 버튼 */
.admin-btn { display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 20px; font-size: 14px; font-weight: 500; border-radius: 4px; border: 1px solid transparent; cursor: pointer; transition: all 0.2s; }
.admin-btn-primary { background: #474955; color: #fff; border-color: #474955; }
.admin-btn-primary:not(:disabled):hover { background: #333; border-color: #333; }
.admin-btn-secondary { background: #fff; color: #333; border-color: #ddd; }
.admin-btn-secondary:not(:disabled):hover { background: #f5f5f5; }
.admin-btn-danger { background: #dc3545; color: #fff; border-color: #dc3545; }
.admin-btn-danger:not(:disabled):hover { background: #c82333; border-color: #c82333; }
.admin-btn-success { background: #28a745; color: #fff; border-color: #28a745; }
.admin-btn-success:not(:disabled):hover { background: #218838; border-color: #218838; }
.admin-btn-default { background: #fff; color: #555; border-color: #ccc; }
.admin-btn-default:not(:disabled):hover { background: #f0f0f0; }
.admin-btn-sm { height: 28px; padding: 0 10px; font-size: 12px; border-color: #ccc; color: #333; background: #fff; }
.admin-btn-sm:not(:disabled):hover { background: #f0f0f0; }
.admin-btn-sm.admin-btn-primary { background: #474955; color: #fff; border-color: #474955; }
.admin-btn-sm.admin-btn-primary:not(:disabled):hover { background: #333; border-color: #333; }
.admin-btn-sm.admin-btn-danger { background: #dc3545; color: #fff; border-color: #dc3545; }
.admin-btn-sm.admin-btn-danger:not(:disabled):hover { background: #c82333; border-color: #c82333; }
.admin-btn-group { display: flex; gap: 8px; justify-content: center; margin-top: 30px; }
.admin-btn-group .admin-btn { min-width: 80px; text-align: center; text-decoration: none; }
.admin-detail-content { min-height: 200px; line-height: 1.8; }

/* 테이블 */
.admin-table-wrap { background: #fff; border: 1px solid #e5e5e5; border-radius: 4px; overflow: hidden; }
.admin-table-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; border-bottom: 1px solid #e5e5e5; background: #fafafa; }
.admin-table-info { font-size: 14px; color: #666; }
.admin-table-info strong { color: #0066cc; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table thead { background: #f9f9f9; }
.admin-table th { padding: 12px 15px; font-size: 14px; font-weight: 600; color: #333; text-align: center; border-bottom: 1px solid #e5e5e5; white-space: nowrap; }
.admin-table th.center, .admin-table td.center { text-align: center; vertical-align: middle; }
.admin-table td { padding: 12px 15px; font-size: 14px; color: #333; border-bottom: 1px solid #f0f0f0; }
.admin-table tbody tr:hover { background: #f9f9f9; }
.admin-table tbody tr.clickable { cursor: pointer; }

/* compact 테이블 (마스터-디테일 등 밀집 레이아웃) */
.admin-table-compact th { padding: 10px 10px; }
.admin-table-compact td { padding: 10px 10px; }

/* 뱃지 */
.admin-badge { display: inline-block; padding: 3px 10px; font-size: 12px; font-weight: 500; border-radius: 3px; }
.admin-badge-success { background: #e8f5e9; color: #2e7d32; }
.admin-badge-danger { background: #ffebee; color: #c62828; }
.admin-badge-warning { background: #fff3e0; color: #e65100; }
.admin-badge-info { background: #e3f2fd; color: #1565c0; }

/* 상세 페이지 */
.admin-detail-wrap { background: #fff; border: 1px solid #e5e5e5; border-radius: 4px; }
.admin-detail-table { width: 100%; border-collapse: collapse; }
.admin-detail-table th { background: #f8f8f8; padding: 15px 20px; text-align: left; font-size: 14px; font-weight: 600; color: #333; border-bottom: 1px solid #e5e5e5; vertical-align: top; }
.admin-detail-table td { padding: 15px 20px; font-size: 14px; color: #333; border-bottom: 1px solid #e5e5e5; line-height: 1.6; }
.admin-detail-table tr:last-child th, .admin-detail-table tr:last-child td { border-bottom: none; }
.admin-detail-table img { max-width: 100%; height: auto; border-radius: 4px; }
.admin-detail-btns { display: flex; justify-content: center; gap: 10px; padding: 20px; border-top: 1px solid #e5e5e5; background: #fafafa; }

/* 파일 목록 */
.admin-file-list { list-style: none; margin: 0; padding: 0; }
.admin-file-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f0f0f0; }
.admin-file-item:last-child { border-bottom: none; }
.admin-file-name { flex: 1; font-size: 14px; color: #333; word-break: break-all; }
.admin-file-size { font-size: 12px; color: #888; flex-shrink: 0; }

/* 페이지네이션 */
.admin-pagination-wrap { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; border-top: 1px solid #e5e5e5; background: #fafafa; }
.admin-pagination-left { display: flex; gap: 6px; min-width: 160px; }
.admin-pagination-right { min-width: 160px; text-align: right; }
.admin-pagination { display: flex; gap: 5px; }
.admin-pagination button { display: flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 10px; font-size: 13px; color: #333; background: #fff; border: 1px solid #ddd; border-radius: 4px; cursor: pointer; transition: all 0.2s; }
.admin-pagination button:hover:not(:disabled) { background: #f5f5f5; border-color: #ccc; }
.admin-pagination button.active { background: #3366cc; color: #fff; border-color: #3366cc; }
.admin-pagination button:disabled { opacity: 0.5; cursor: not-allowed; }
.admin-table-scroll { height: calc(100vh - 310px); overflow-y: auto; }
.admin-btn-refresh { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; font-size: 12px; color: #555; background: #fff; border: 1px solid #999; border-radius: 3px; cursor: pointer; }
.admin-btn-refresh:hover { background: #555; color: #fff; }
.admin-btn-refresh:hover svg { fill: #fff; }
.admin-btn-excel { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; font-size: 12px; color: #1a7a3a; background: #fff; border: 1px solid #1a7a3a; border-radius: 3px; cursor: pointer; }
.admin-btn-excel:hover { background: #1a7a3a; color: #fff; }
.admin-btn-excel:hover svg { stroke: #fff; }
.admin-btn-print { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; font-size: 12px; color: #555; background: #fff; border: 1px solid #999; border-radius: 3px; cursor: pointer; }
.admin-btn-print:hover { background: #555; color: #fff; }
.admin-btn-print:hover svg { stroke: #fff; }

/* 폼 */
.admin-form-wrap { background: #fff; border: 1px solid #e5e5e5; border-radius: 4px; padding: 30px; }
.admin-form-row { display: flex; margin-bottom: 20px; align-items: flex-start; }
.admin-form-row:last-child { margin-bottom: 0; }
.admin-form-label { width: 150px; padding-top: 8px; font-size: 14px; font-weight: 500; color: #333; flex-shrink: 0; }
.admin-form-label.required::after { content: '*'; color: #dc3545; margin-left: 3px; }
.admin-required { color: #dc3545; }
.admin-form-content { flex: 1; font-size: 14px; }
.admin-form-input, .admin-form-select, .admin-form-textarea { width: 100%; padding: 10px 12px; font-size: 14px; border: 1px solid #ddd; border-radius: 4px; transition: border-color 0.2s; }
.admin-form-input:focus, .admin-form-select:focus, .admin-form-textarea:focus { outline: none; border-color: #0066cc; }
.admin-form-input:disabled, .admin-form-select:disabled, .admin-form-textarea:disabled { background: #f5f5f5; }
.admin-form-tbl .admin-form-custom-content input:disabled { background: #f5f5f5; }
.admin-form-textarea { min-height: 120px; resize: vertical; }
.admin-form-pair { display: flex; gap: 0; }
.admin-form-pair > .admin-form-row { flex: 1; min-width: 0; }
.admin-form-pair > .admin-form-row .admin-form-label { width: 150px; }
.admin-form-tbl { border: 1px solid #ddd; }
.admin-form-tbl .admin-form-row { margin-bottom: 0; border-bottom: 1px solid #ddd; padding: 0; align-items: stretch; }
.admin-form-tbl .admin-form-row:last-child { border-bottom: none; }
.admin-form-tbl .admin-form-label { background: #f9f9f9; padding: 10px 15px; border-right: 1px solid #ddd; display: flex; align-items: center; }
.admin-form-tbl .admin-form-content { padding: 6px 10px; display: flex; align-items: center; }
.admin-form-tbl .admin-form-input, .admin-form-tbl .admin-form-select { padding: 6px 10px; }
.admin-form-tbl .admin-form-pair { border-bottom: 1px solid #ddd; }
.admin-form-tbl .admin-form-pair:last-child { border-bottom: none; }
.admin-form-tbl .admin-form-pair > .admin-form-row { border-bottom: none; }
.admin-form-tbl .admin-form-pair > .admin-form-row:first-child { border-right: 1px solid #ddd; }
.admin-form-tbl .admin-form-custom-row { display: flex; border-bottom: 1px solid #ddd; align-items: stretch; }
.admin-form-tbl .admin-form-custom-row .admin-form-label { background: #f9f9f9; padding: 10px 15px; border-right: 1px solid #ddd; width: 150px; flex-shrink: 0; display: flex; align-items: center; font-size: 14px; font-weight: 500; color: #333; }
.admin-form-tbl .admin-form-custom-row .admin-form-custom-content { flex: 1; padding: 6px 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.admin-form-tbl .admin-form-custom-content input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; }
.admin-form-tbl .admin-form-custom-content { font-size: 14px; }
.admin-form-tbl .admin-form-custom-content label { font-size: 14px; }
.admin-form-tbl .admin-form-custom-content input[type="date"] { padding: 4px 8px; border: 1px solid #ddd; border-radius: 3px; font-size: 14px; }
.admin-form-tbl .admin-form-custom-content input[type="text"] { height: 30px; padding: 4px 8px; border: 1px solid #ddd; border-radius: 3px; font-size: 14px; flex: 1; }
.admin-form-tbl .admin-form-custom-content .custom-row-sep { color: #999; }
.admin-form-editor-full .admin-form-row { margin-bottom: 0; }
.admin-form-editor-full .admin-form-label { display: none; }
.admin-form-editor-full .admin-form-content { width: 100%; }
.admin-form-editor-full .tiptap-editor-wrap { border-radius: 0; border-left: none; border-right: none; border-bottom: none; }
.admin-form-btns { display: flex; gap: 10px; justify-content: flex-end; margin-top: 30px; padding-top: 20px; border-top: 1px solid #e5e5e5; }
.admin-form-btns-left { margin-right: auto; }

/* 라디오 */
.admin-form-radio-group { display: flex; gap: 20px; padding-top: 8px; }
.admin-form-radio-item { display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 14px; color: #333; }
.admin-form-radio-item input[type="radio"] { width: 16px; height: 16px; cursor: pointer; }

/* 날짜 입력 */
.admin-form-date { width: 200px; max-width: 200px; }
.admin-form-select { width: auto; max-width: 300px; }

/* 파일 업로드 */
.admin-file-upload, .admin-image-upload, .admin-multi-file-upload { padding-top: 4px; }
.admin-file-info { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #f9f9f9; border: 1px solid #e5e5e5; border-radius: 4px; }
.admin-file-remove { padding: 4px 10px; font-size: 12px; color: #dc3545; background: #fff; border: 1px solid #dc3545; border-radius: 3px; cursor: pointer; flex-shrink: 0; }
.admin-file-remove:hover { background: #dc3545; color: #fff; }
.admin-file-error { color: #dc3545; font-size: 13px; margin-top: 8px; }
.admin-file-hint { color: #888; font-size: 12px; margin-top: 8px; }

/* 카드 */
.admin-card { background: #fff; border: 1px solid #e5e5e5; border-radius: 4px; padding: 20px; margin-bottom: 20px; }
.admin-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid #e5e5e5; }
.admin-card-title { font-size: 18px; font-weight: 600; color: #333; margin: 0; }

/* ========================================
   TipTap 에디터 스타일
   ======================================== */

.tiptap-editor-wrap { border: 1px solid #ddd; border-radius: 4px; overflow: hidden; }
.tiptap-menu-bar { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px 12px; background: #f9f9f9; border-bottom: 1px solid #ddd; align-items: center; }
.tiptap-menu-btn { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; background: #fff; border: 1px solid #ddd; border-radius: 4px; cursor: pointer; font-size: 14px; color: #333; transition: all 0.2s; position: relative; }
.tiptap-menu-btn:hover { background: #f0f0f0; border-color: #ccc; }
.tiptap-menu-btn.active { background: #474955; color: #fff; border-color: #474955; }
.tiptap-menu-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.tiptap-menu-btn svg { flex-shrink: 0; }
.tiptap-menu-select { height: 32px; padding: 0 8px; border: 1px solid #ddd; border-radius: 4px; background: #fff; font-size: 13px; cursor: pointer; }
.tiptap-menu-divider { width: 1px; height: 24px; background: #ddd; margin: 4px 4px; }
/* 글자색/배경색 버튼 */
.tiptap-color-btn { flex-direction: column; gap: 1px; }
.tiptap-color-bar { display: block; width: 18px; height: 4px; border-radius: 1px; }
.tiptap-editor { min-height: 300px; max-height: 500px; overflow-y: auto; padding: 16px; }
.tiptap-editor .ProseMirror { min-height: 280px; outline: none; font-size: 14px; line-height: 1.6; }
.tiptap-editor .ProseMirror p { margin: 0 0 8px; }
.tiptap-editor .ProseMirror h1 { font-size: 24px; font-weight: 700; margin: 0 0 12px; }
.tiptap-editor .ProseMirror h2 { font-size: 20px; font-weight: 700; margin: 0 0 10px; }
.tiptap-editor .ProseMirror h3 { font-size: 18px; font-weight: 600; margin: 0 0 8px; }
.tiptap-editor .ProseMirror ul { padding-left: 24px; margin: 0 0 8px; list-style-type: disc; }
.tiptap-editor .ProseMirror ol { padding-left: 24px; margin: 0 0 8px; list-style-type: decimal; }
.tiptap-editor .ProseMirror ul li, .tiptap-editor .ProseMirror ol li { margin: 0 0 2px; }
.tiptap-editor .ProseMirror ul li p, .tiptap-editor .ProseMirror ol li p { margin: 0; }
.tiptap-editor .ProseMirror mark { padding: 0 2px; border-radius: 2px; }
.tiptap-editor .ProseMirror blockquote { border-left: 4px solid #e5e5e5; padding-left: 16px; margin: 0 0 8px; color: #666; }
.tiptap-editor .ProseMirror img { max-width: 100%; height: auto; margin: 8px 0; }
.tiptap-editor .ProseMirror a { color: #0066cc; text-decoration: underline; }
.tiptap-editor .ProseMirror code { background: #f5f5f5; padding: 2px 6px; border-radius: 3px; font-family: monospace; }
.tiptap-editor .ProseMirror pre { background: #1e1e1e; color: #d4d4d4; padding: 16px; border-radius: 4px; overflow-x: auto; margin: 0 0 8px; }
.tiptap-editor .ProseMirror pre code { background: none; padding: 0; }
.tiptap-editor .ProseMirror hr { border: none; border-top: 1px solid #e5e5e5; margin: 16px 0; }
.tiptap-editor .ProseMirror table { border-collapse: collapse; width: 100%; margin: 8px 0; }
.tiptap-editor .ProseMirror th, .tiptap-editor .ProseMirror td { border: 1px solid #ddd; padding: 8px 12px; }
.tiptap-editor .ProseMirror th { background: #f9f9f9; font-weight: 600; }
.tiptap-editor .ProseMirror .selectedCell { background: #e7f3ff; }
.tiptap-editor .ProseMirror .column-resize-handle { position: absolute; right: -2px; top: 0; bottom: 0; width: 4px; background: #0066cc; cursor: col-resize; }

/* ========================================
   메뉴관리 - 탭바
   ======================================== */
.menu-tab-bar { display: flex; gap: 0; margin-bottom: 16px; }
.menu-tab-bar button { padding: 8px 24px; border: 1px solid #ccc; background: #fff; color: #333; font-size: 14px; cursor: pointer; transition: all 0.15s; }
.menu-tab-bar button:first-child { border-radius: 4px 0 0 4px; }
.menu-tab-bar button:last-child { border-radius: 0 4px 4px 0; border-left: none; }
.menu-tab-bar button.active { background: #474955; color: #fff; border-color: #474955; }

/* ========================================
   메뉴관리 - 트리 테이블
   ======================================== */
.menu-tree-table { width: 100%; border-collapse: collapse; border: 1px solid #ddd; font-size: 13px; }
.menu-tree-table th { background: #f5f5f5; padding: 10px 12px; border-bottom: 2px solid #ddd; text-align: center; font-weight: 600; font-size: 13px; color: #333; }
.menu-tree-table td { padding: 8px 12px; border-bottom: 1px solid #eee; color: #333; }
.menu-tree-table td.center { text-align: center; vertical-align: middle; }
.menu-tree-table tr.tree-parent { background: #f7f8fa; font-weight: 600; }
.menu-tree-table tr.tree-child td:first-child { padding-left: 30px; }
.menu-tree-table tr.tree-selected { background: #e7f3ff !important; }
.menu-tree-table tr:hover { background: #f0f4ff; cursor: pointer; }
.menu-tree-table tr.tree-selected:hover { background: #d4e9ff !important; }
.tree-toggle { display: inline-block; width: 18px; cursor: pointer; margin-right: 4px; font-size: 11px; color: #666; user-select: none; }
.tree-indent { color: #aaa; margin-right: 4px; font-size: 12px; }

/* ========================================
   관리자 모달 공통
   ======================================== */
.admin-modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.4); z-index: 1000; display: flex; align-items: center; justify-content: center; }
.admin-modal { background: #fff; border-radius: 6px; box-shadow: 0 4px 20px rgba(0,0,0,0.15); max-height: 90vh; display: flex; flex-direction: column; }
.admin-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #ddd; background: #f9f9f9; border-radius: 6px 6px 0 0; }
.admin-modal-header h3 { margin: 0; font-size: 16px; font-weight: 600; color: #333; }
.admin-modal-close { background: none; border: none; font-size: 20px; cursor: pointer; color: #999; padding: 0 4px; line-height: 1; }
.admin-modal-close:hover { color: #333; }
.admin-modal-body { padding: 20px; overflow-y: auto; flex: 1; }
.admin-modal-body .admin-form-label { width: 120px; }
.admin-modal-body .admin-form-pair > .admin-form-row .admin-form-label { width: 120px; }
.admin-modal-body .admin-form-custom-row .admin-form-label { width: 120px; }
.admin-modal-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 20px; border-top: 1px solid #ddd; }
.admin-modal-footer-btns { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; }
.admin-modal-footer-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* 행 선택 및 링크 스타일 */
.admin-row-selected { background: #e8f0fe !important; }
.admin-link { color: #1a73e8; text-decoration: underline; cursor: pointer; }
.admin-link:hover { color: #174ea6; }
.admin-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* 전화번호 분리 입력 */
.admin-phone-input { display: flex; align-items: center; gap: 4px; }
.admin-phone-input .adm-input { width: 80px; }
.admin-phone-input .adm-select { width: 80px; }
.admin-phone-sep { color: #999; font-size: 14px; }

/* ========================================
   메뉴관리 - 드래그앤드롭 순서변경
   ======================================== */
.tree-drag-handle { width: 35px; min-width: 35px; max-width: 35px; text-align: center; cursor: grab; color: #bbb; padding: 8px 4px; user-select: none; font-size: 14px; }
.admin-table th.col-drag, .admin-table td.col-drag { width: 35px; max-width: 35px; padding-left: 4px; padding-right: 4px; overflow: hidden; }
.admin-table th.col-no, .admin-table td.col-no { width: 40px; max-width: 40px; padding-left: 4px; padding-right: 4px; overflow: hidden; }
.tree-drag-handle:active { cursor: grabbing; }
.menu-tree-table tr.tree-dragging { opacity: 0.4; }
.menu-tree-table tr.tree-drop-above { box-shadow: inset 0 2px 0 #3366cc; }
.menu-tree-table tr.tree-drop-below { box-shadow: inset 0 -2px 0 #3366cc; }

/* ========================================
   메뉴관리 - 하단 버튼
   ======================================== */
.menu-bottom-btns { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }

/* ========================================
   메뉴권한설정 - 좌우 레이아웃
   ======================================== */
.menu-auth-wrap { display: flex; gap: 16px; min-height: 400px; }
.menu-auth-left { width: 200px; border: 1px solid #ddd; border-radius: 4px; overflow-y: auto; flex-shrink: 0; }
.menu-auth-left-title { padding: 10px 14px; font-size: 13px; font-weight: 600; color: #333; background: #f5f5f5; border-bottom: 2px solid #ddd; }
.menu-auth-left .auth-item { padding: 10px 14px; border-bottom: 1px solid #eee; cursor: pointer; font-size: 13px; color: #333; transition: all 0.15s; }
.menu-auth-left .auth-item:hover { background: #f0f4ff; }
.menu-auth-left .auth-item.active { background: #e7f3ff; font-weight: 600; color: #1565c0; }
.menu-auth-right { flex: 1; min-width: 0; }
.menu-auth-right .menu-tree-table td input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; }

/* ========================================
   반응형
   ======================================== */

@media (max-width: 1024px) {
  .dashboard-cont { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .adm-gnb-inner { padding: 0 15px; }
  .adm-header-top { padding: 0 15px; }
  .adm-menu-item a { padding: 0 12px; font-size: 13px; }
  .adm-content { padding: 120px 15px 40px 15px; }
  .adm-content.has-sidebar { padding-left: 15px; }
  .adm-sidebar { display: none; }
  .adm-footer.has-sidebar { margin-left: 0; }
  .admin-search-row { flex-direction: column; align-items: stretch; }
  .admin-search-item { width: 100%; }
  .admin-search-item input { width: 100%; flex: 1; }
  .admin-search-btns { margin-left: 0; width: 100%; }
  .admin-search-btns .admin-btn { flex: 1; }
  .admin-table-wrap { overflow-x: auto; }
  .admin-table { min-width: 800px; }
  .dashboard-cont { grid-template-columns: 1fr; }
  .admin-form-row { flex-direction: column; }
  .admin-form-label { width: 100%; padding-top: 0; margin-bottom: 8px; }
  .admin-form-pair { flex-direction: column; }
  .admin-form-pair > .admin-form-row .admin-form-label { width: 100%; }
  .admin-form-tbl .admin-form-pair > .admin-form-row:first-child { border-right: none; border-bottom: 1px solid #ddd; }
  .admin-form-tbl .admin-form-custom-row { flex-direction: column; }
  .admin-form-tbl .admin-form-custom-row .admin-form-label { width: 100%; border-right: none; border-bottom: 1px solid #ddd; }
}

/* 사이드바 접기/펼치기 토글 */
.adm-sidebar-toggle { position: fixed; top: 50%; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 1px solid #ddd; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 91; transition: left 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.1); transform: translateY(-50%); }
.adm-sidebar-toggle:hover { background: #f0f0f0; border-color: #ccc; }
.adm-sidebar-toggle svg { width: 14px; height: 14px; transition: transform 0.2s; }
.adm-sidebar.collapsed { width: 0; overflow: hidden; border-right: none; }
.adm-sidebar.collapsed + .adm-content.has-sidebar { padding-left: 30px; }
.adm-sidebar.collapsed ~ .adm-footer.has-sidebar { margin-left: 0; width: 100%; }

/* 비밀번호 변경 모달 */
.adm-pw-modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 10000; display: flex; align-items: center; justify-content: center; }
.adm-pw-modal { background: #fff; border-radius: 8px; width: 460px; max-width: 90vw; box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.adm-pw-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #ddd; }
.adm-pw-modal-header h3 { margin: 0; font-size: 18px; font-weight: 700; }
.adm-pw-modal-close { background: none; border: none; font-size: 22px; cursor: pointer; color: #999; }
.adm-pw-modal-close:hover { color: #333; }
.adm-pw-modal-body { padding: 24px 20px; }
.adm-pw-modal-body .pw-form-row { margin-bottom: 16px; }
.adm-pw-modal-body .pw-form-row:last-child { margin-bottom: 0; }
.adm-pw-modal-body label { display: block; font-size: 14px; font-weight: 500; color: #333; margin-bottom: 6px; }
.adm-pw-modal-body input { width: 100%; height: 40px; padding: 0 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; }
.adm-pw-modal-body input:focus { outline: none; border-color: #3366cc; }
.adm-pw-modal-footer { display: flex; justify-content: center; gap: 8px; padding: 16px 20px; border-top: 1px solid #ddd; }
.adm-pw-alert { color: #dc3545; font-size: 13px; margin-top: 4px; }

/* 첨부파일 삭제 모달 */
.admin-file-delete-modal { width: 500px; }
.admin-file-delete-list { list-style: none; margin: 0; padding: 0; }
.admin-file-delete-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.admin-file-delete-item:last-child { border-bottom: none; }
.admin-file-delete-no { width: 30px; text-align: center; font-size: 13px; color: #666; flex-shrink: 0; }
.admin-file-delete-name { flex: 1; font-size: 14px; color: #333; word-break: break-all; }
.admin-file-delete-btn { background: none; border: none; cursor: pointer; color: #dc3545; font-size: 18px; padding: 2px 6px; line-height: 1; }
.admin-file-delete-btn:hover { color: #a71d2a; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
