@font-face { font-family:'SeoulNotice'; src:url('https://cdn.jsdelivr.net/gh/projectnoonnu/2505-1@1.0/SeoulAlrimTTF-Heavy.woff2') format('woff2'); font-weight:900; font-display:swap; }

/* ========== reset ========== */
* { box-sizing:border-box; margin:0; padding:0; }
html, body { height:100%; }
body { font-family:'Pretendard', -apple-system, sans-serif; font-size:14px; color:#222; background:#fff; }
a { color:inherit; text-decoration:none; }
ul, ol, li { list-style:none; }
button { border:0; background:none; cursor:pointer; font:inherit; }

/* ========== 관리자 로그인 ========== */
.login-body { display:flex; align-items:center; justify-content:center; min-height:100vh; padding:20px; background:#343a4a; }
.login-box { width:380px; padding:40px 32px 28px; background:#fff; border-radius:12px; box-shadow:0 20px 50px rgba(0, 0, 0, 0.35); }
.login-logo { text-align:center; font-size:20px; font-weight:700; color:#343a4a; margin-bottom:20px; }
.login-logo span { display:inline-block; padding:2px 9px; margin-right:4px; border-radius:50%; background:#343a4a; color:#fff; font-family:'SeoulNotice'; font-size:20px; }
.login-desc { margin:8px 0 26px; text-align:center; font-size:13px; color:#888; }
.login-field { display:flex; align-items:center; height:46px; margin-bottom:12px; padding:0 14px; border:1px solid #d5d9e0; border-radius:6px; background:#fff; }
.login-field:focus-within { border-color:#007bff; box-shadow:0 0 0 3px rgba(0, 123, 255, 0.15); }
.login-field i { width:18px; color:#aab1bd; font-size:14px; }
.login-field input { flex:1; min-width:0; height:100%; margin-left:10px; border:0; outline:none; font-size:14px; background:transparent; }
.login-btn { display:block; width:100%; height:48px; margin-top:6px; border-radius:6px; background:#007bff; color:#fff; font-size:15px; font-weight:600; }
.login-btn:hover { background:#0069d9; }
.login-home { display:block; margin-top:18px; text-align:center; font-size:13px; color:#888; }
.login-home:hover { color:#343a4a; }
.login-home i { margin-right:4px; }

/* ========== 메시지 박스 ========== */
.msgbox { display:flex; align-items:flex-start; gap:12px; margin-bottom:16px; padding:14px 16px; border-radius:8px; background:#fff; box-shadow:0 2px 10px rgba(17, 24, 39, 0.06); animation:msgbox-in 0.25s ease; }
.msgbox .msg-icon { flex:0 0 32px; width:32px; height:32px; display:flex; align-items:center; justify-content:center; border-radius:50%; font-size:16px; }
.msgbox .msg-body { flex:1; min-width:0; padding-top:5px; }
.msgbox .msg-title { display:block; font-size:14px; font-weight:700; line-height:1.4; }
.msgbox .msg-text { margin-top:3px; font-size:13px; line-height:1.6; color:#666; word-break:keep-all; }
.msg-ok { border-color:#22c55e; background:#f3fcf6; }
.msg-ok .msg-icon { background:#dcf7e6; color:#16a34a; }
.msg-ok .msg-title { color:#15803d; }
.msg-fail { border-color:#ef4444; background:#fef5f5; }
.msg-fail .msg-icon { background:#fde2e2; color:#dc2626; }
.msg-fail .msg-title { color:#b91c1c; }
.msg-warn { border-color:#f59e0b; background:#fffaf0; }
.msg-warn .msg-icon { background:#fdefd3; color:#d97706; }
.msg-warn .msg-title { color:#b45309; }
.msg-info { border-color:#007bff; background:#f4f8ff; }
.msg-info .msg-icon { background:#dde9ff; color:#007bff; }
.msg-info .msg-title { color:#1d4ed8; }
@keyframes msgbox-in { from { opacity:0; transform:translateY(-6px); } }

@media (max-width: 1024px) {
  .login-box { width:100%; max-width:380px; padding:32px 20px 24px; }
  .login-logo { font-size:18px; }
  .login-field { height:44px; }
  .msgbox { gap:10px; padding:12px 14px; }
  .msgbox .msg-icon { flex:0 0 28px; width:28px; height:28px; font-size:14px; }
  .msgbox .msg-title { font-size:13px; }
  .msgbox .msg-text { font-size:12px; }
}

/* ========== 관리자 레이아웃 (좌측 메뉴 + 우측 본문) ========== */
body:not(.login-body) { display:flex; align-items:flex-start; min-height:100vh; background:#f4f6f9; }
#container { flex:1; min-width:0; padding:30px; }

/* ========== 좌측 사이드바 ========== */
#admin-side { flex:0 0 280px; position:sticky; top:0; height:100vh; overflow-y:auto; background:#343a4a; box-shadow:4px 0 15px rgba(0, 0, 0, 0.32); z-index:10; }

.admin-logo { display:flex; align-items:center; height:70px; padding:0 18px; border-bottom:1px solid #4b545c; color:#eee; }
.admin-logo h1 { font-size:20px; font-weight:700; }
.admin-logo span { display:inline-block; padding:2px 6px; margin-right:5px; border-radius:50%; background:#eee; color:#343a4a; font-family:'SeoulNotice'; font-size:20px; }

.admin-userinfo { display:flex; align-items:center; height:70px; padding:0 18px; border-bottom:1px solid #4b545c; }
.admin-userinfo .info-ico { font-size:20px; color:#6c757d; }
.admin-userinfo .name { flex:1; min-width:0; margin-left:8px; font-size:15px; color:#eee; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.admin-userinfo .logout-form button { padding:6px 8px; font-size:18px; color:#fff; transition:color 0.15s; }
.admin-userinfo .logout-form button:hover { color:#ff6b6b; }

.admin-home { display:flex; align-items:center; height:70px; padding:0 18px; border-bottom:1px solid #4b545c; color:#eee; transition:background 0.15s; }
.admin-home:hover { background:#3d4456; }
.admin-home .home-ico { font-size:20px; color:#6c757d; }
.admin-home .home { flex:1; margin-left:8px; font-size:15px; }
.admin-home > i { font-size:12px; color:#8a93a3; }

#admin-side nav .menu-group { display:flex; align-items:center; height:70px; padding:0 20px; color:#fff; }
#admin-side nav .menu-group span { flex:1; margin-left:12px; font-size:16px; }
#admin-side nav .menu-group > i:first-child { font-size:20px; }
#admin-side nav .menu-group .arrow { font-size:14px; }
#admin-side nav .menu-group.dashboard { background:#007bff; border-radius:3px; }
#admin-side nav .menu-group.log { border-bottom:1px solid #4b545c; }

#admin-side nav .menu-item { display:block; height:40px; line-height:40px; padding:0 50px; border-bottom:1px solid #4b545c; font-size:14px; color:#eee; transition:background 0.15s; }
#admin-side nav .menu-item:hover { background:#3d4456; }
#admin-side nav .menu-item.on { padding-left:47px; border-left:3px solid #007bff; background:#2b303d; color:#fff; font-weight:700; }

/* ========== 본문 공통 ========== */
.admin-content { padding:24px; background:#fff; border-radius:10px; box-shadow:0 2px 10px rgba(17, 24, 39, 0.05); }
.page-title { margin-bottom:14px; font-size:22px; font-weight:700; color:#343a4a; border-bottom:1px solid #ddd; padding-bottom:15px; }
.page-title i { margin-right:6px; color:#007bff; }

#admin-footer { margin-top:40px; padding-top:16px; border-top:1px solid #e3e6ec; font-size:12px; color:#999; }

@media (max-width: 1024px) {
  body:not(.login-body) { display:block; }
  #admin-side { position:relative; width:100%; height:auto; overflow:visible; box-shadow:0 4px 12px rgba(0, 0, 0, 0.2); }
  .admin-logo, .admin-userinfo, .admin-home { height:56px; padding:0 16px; }
  #admin-side nav .menu-group { height:52px; padding:0 16px; }
  #admin-side nav .menu-item { padding:0 40px; }
  #admin-side nav .menu-item.on { padding-left:37px; }
  #container { padding:16px; }
  .admin-content { padding:16px; }
  .page-title { font-size:18px; }
}
/* ========== 페이지 제목 줄 ========== */
.page-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; }
.page-head .page-title { margin-bottom:0; }

/* ========== 버튼 ========== */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:6px; height:38px; padding:0 16px; border:1px solid transparent; border-radius:6px; font-size:13px; font-weight:600; cursor:pointer; white-space:nowrap; transition:background 0.15s, border-color 0.15s; }
.btn-sm { height:30px; padding:0 10px; font-size:12px; }
.btn-primary { background:#007bff; color:#fff; }
.btn-primary:hover { background:#0069d9; }
.btn-dark { background:#343a4a; color:#fff; }
.btn-dark:hover { background:#232733; }
.btn-light { background:#fff; border-color:#d5d9e0; color:#444; }
.btn-light:hover { background:#f1f3f6; }
.btn-danger { background:#fff; border-color:#f3c4c4; color:#dc2626; }
.btn-danger:hover { background:#fef2f2; }
.inline-form { display:inline; }

/* ========== 검색 ========== */
.search-bar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; }
.search-total { font-size:13px; color:#666; }
.search-total b { color:#007bff; }
.search-box { display:flex; gap:6px; }
.search-box select, .search-box input { height:38px; padding:0 10px; border:1px solid #d5d9e0; border-radius:6px; background:#fff; font-size:13px; }
.search-box input { width:220px; }
.search-box select:focus, .search-box input:focus { outline:none; border-color:#007bff; box-shadow:0 0 0 3px rgba(0, 123, 255, 0.12); }

/* ========== 목록 테이블 ========== */
.table-wrap { overflow-x:auto; background:#fff; border-radius:10px; box-shadow:0 2px 10px rgba(17, 24, 39, 0.05); }
.admin-table { width:100%; border-collapse:collapse; font-size:13px; }
.admin-table th { padding:13px 12px; background:#f8f9fb; border-bottom:1px solid #e6e9ef; font-weight:600; color:#555; text-align:left; white-space:nowrap; }
.admin-table td { padding:13px 12px; border-bottom:1px solid #f0f2f5; color:#333; vertical-align:middle; }
.admin-table tbody tr:hover { background:#fafbfd; }
.admin-table td small { display:block; margin-top:2px; font-size:11px; color:#999; }
.admin-table .col-num { width:70px; text-align:center; color:#999; }
.admin-table .col-manage { width:130px; text-align:center; white-space:nowrap; }
.admin-table .empty { padding:50px 0; text-align:center; color:#999; }

/* ========== 뱃지 ========== */
.badge { display:inline-block; padding:3px 8px; border-radius:20px; font-size:11px; font-weight:600; line-height:1.4; }
.badge-top { background:#e8f0ff; color:#1d4ed8; }
.badge-normal { background:#f1f3f6; color:#555; }
.badge-on { background:#dcf7e6; color:#15803d; }
.badge-off { background:#fde2e2; color:#b91c1c; }
.badge-me { margin-left:4px; background:#343a4a; color:#fff; }

/* ========== 페이징 ========== */
.paging { display:flex; justify-content:center; gap:4px; margin-top:20px; }
.paging a { min-width:34px; height:34px; padding:0 6px; display:inline-flex; align-items:center; justify-content:center; border:1px solid #e1e4ea; border-radius:6px; background:#fff; font-size:13px; color:#555; }
.paging a:hover { border-color:#007bff; color:#007bff; }
.paging a.on { background:#007bff; border-color:#007bff; color:#fff; font-weight:600; }
.paging a.pg-arrow { color:#888; }

@media (max-width: 1024px) {
  .page-head { flex-wrap:wrap; gap:10px; }
  .search-bar { flex-direction:column; align-items:stretch; }
  .search-box { width:100%; }
  .search-box input { flex:1; width:auto; min-width:0; }
  .table-wrap { background:transparent; box-shadow:none; }
  .admin-table thead { display:none; }
  .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { display:block; width:100%; }
  .admin-table tr { margin-bottom:10px; padding:10px 14px; background:#fff; border-radius:10px; box-shadow:0 2px 8px rgba(17, 24, 39, 0.05); }
  .admin-table td { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:8px 0; border-bottom:1px dashed #eee; text-align:right; }
  .admin-table td:last-child { border-bottom:0; }
  .admin-table td::before { content:attr(data-label); flex-shrink:0; font-size:12px; font-weight:600; color:#888; text-align:left; }
  .admin-table .col-num { display:none; }
  .admin-table .col-manage { width:100%; justify-content:flex-end; gap:6px; }
  .admin-table .empty { display:block; text-align:center; }
  .admin-table .empty::before { content:none; }
  .paging a { min-width:30px; height:30px; font-size:12px; }
}

/* ========== 공통 입력 폼 ========== */
.form-box { max-width:860px; padding:10px 28px 24px; background:#fff; border-radius:10px; box-shadow:0 2px 10px rgba(17, 24, 39, 0.05); }
.form-section { margin:26px 0 4px; padding-bottom:10px; border-bottom:2px solid #343a4a; font-size:15px; font-weight:700; color:#343a4a; }
.form-section:first-child { margin-top:14px; }

.form-row { display:flex; align-items:flex-start; gap:20px; padding:16px 0; border-bottom:1px solid #f0f2f5; }
.form-row:last-of-type { border-bottom:0; }
.form-label { flex:0 0 130px; padding-top:10px; font-size:13px; font-weight:600; color:#444; }
.form-label .req { margin-left:2px; font-style:normal; color:#ef4444; }
.form-field { flex:1; min-width:0; }
.form-field-2 { display:flex; gap:8px; }
.form-field-2 > * { flex:1; min-width:0; }

/* 입력칸 */
.form-field input[type=text], .form-field input[type=email], .form-field input[type=password], .form-field input[type=number], .form-field input[type=url], .form-field input[type=tel], .form-field input[type=date], .form-field select, .form-field textarea { width:100%; height:40px; padding:0 12px; border:1px solid #d5d9e0; border-radius:6px; background:#fff; font-size:14px; font-family:inherit; color:#222; transition:border-color 0.15s, box-shadow 0.15s; }
.form-field .selectshort { width:160px; }
.form-field textarea { height:auto; padding:10px 12px; line-height:1.6; resize:vertical; }
.form-field select { padding-right:30px; cursor:pointer; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline:none; border-color:#007bff; box-shadow:0 0 0 3px rgba(0, 123, 255, 0.12); }
.form-field input::placeholder, .form-field textarea::placeholder { color:#aab1bd; }
.form-field input.is-readonly, .form-field input[readonly] { background:#f4f6f9; color:#888; cursor:not-allowed; }
.form-field input.is-error, .form-field textarea.is-error { border-color:#ef4444; box-shadow:0 0 0 3px rgba(239, 68, 68, 0.12); }

/* 짧은 입력칸 */
.form-field .w-sm { max-width:160px; }
.form-field .w-md { max-width:320px; }

/* 파일 업로드 */
.form-field input[type=file] { width:100%; padding:8px 10px; border:1px dashed #c9ced8; border-radius:6px; background:#fafbfd; font-size:13px; cursor:pointer; }
.form-field input[type=file]:hover { border-color:#007bff; background:#f4f8ff; }
.form-preview { display:flex; align-items:center; gap:10px; margin-top:8px; }
.form-preview img { max-width:120px; max-height:80px; padding:4px; border:1px solid #e3e6ec; border-radius:6px; background:#fff; }

/* 도움말 · 에러 문구 */
.form-help { margin-top:6px; font-size:12px; color:#999; line-height:1.5; }
.form-error { margin-top:6px; font-size:12px; color:#dc2626; }

/* 라디오 · 체크박스 */
.radio-group, .check-group { display:flex; flex-wrap:wrap; gap:8px 20px; padding-top:10px; }
.radio, .check { display:inline-flex; align-items:center; gap:6px; font-size:14px; color:#333; cursor:pointer; }
.radio input, .check input { width:16px; height:16px; margin:0; accent-color:#007bff; cursor:pointer; }

/* 읽기 전용 정보 */
.form-info .form-field { padding-top:10px; font-size:13px; color:#666; line-height:1.8; }
.form-info small { margin-left:4px; color:#999; }

/* 하단 버튼 */
.form-actions { display:flex; justify-content:center; gap:8px; margin-top:6px; padding-top:24px; border-top:1px solid #f0f2f5; }
.form-actions .btn { min-width:110px; height:42px; }

@media (max-width: 1024px) {
  .form-box { padding:6px 16px 20px; }
  .form-section { margin-top:20px; font-size:14px; }
  .form-row { flex-direction:column; gap:8px; padding:14px 0; }
  .form-label { flex:none; padding-top:0; }
  .form-field-2 { flex-direction:column; }
  .form-field .w-sm, .form-field .w-md { max-width:none; }
  .radio-group, .check-group { padding-top:0; }
  .form-info .form-field { padding-top:0; }
  .form-actions { padding-top:20px; }
  .form-actions .btn { flex:1; min-width:0; }
}
/* ========== 게시판 관리 ========== */
.badge-type { background:#f1f3f6; color:#555; }
.badge-type.type-board { background:#e8f0ff; color:#1d4ed8; }
.badge-type.type-gallery { background:#fdeef8; color:#be185d; }
.badge-type.type-file { background:#e6f7f4; color:#0f766e; }
.badge-type.type-memo { background:#fff4dd; color:#b45309; }
.badge-type.type-guest { background:#efe9fd; color:#6d28d9; }

.link-url { display:inline-flex; align-items:center; gap:5px; font-family:Consolas, monospace; font-size:12px; color:#007bff; }
.link-url i { font-size:10px; color:#9bb6e8; }
.link-url:hover { text-decoration:underline; }

@media (max-width: 1024px) {
  .link-url { font-size:11px; }
}
/* ========== 게시판 생성 / 수정 ========== */
.size-input { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.size-input input[type=number] { width:110px !important; }
.size-input .unit { font-size:13px; color:#888; }

.preview-text { font-family:Consolas, monospace; font-size:12px; color:#007bff; }

.perm-grid { display:grid; grid-template-columns:repeat(3, 1fr); gap:10px 16px; }
.perm-item { display:flex; align-items:center; gap:10px; padding:8px 12px; border:1px solid #eef0f4; border-radius:8px; background:#fafbfd; }
.perm-item .perm-name { flex:1; min-width:0; font-size:13px; font-weight:600; color:#444; }
.perm-item select { width:auto !important; min-width:90px; height:34px !important; font-size:13px !important; }

.form-row.is-disabled { opacity:0.45; }
.form-row.is-disabled input { cursor:not-allowed; }

.check-group + .check-group { margin-top:4px; }

@media (max-width: 1024px) {
  .size-input input[type=number] { width:90px !important; }
  .perm-grid { grid-template-columns:repeat(2, 1fr); gap:8px; }
  .perm-item { padding:8px 10px; }
}

@media (max-width: 767px) {
  .perm-grid { grid-template-columns:1fr; }
}

/* ========== 탭 메뉴 ========== */
.tab-menu { display:flex; gap:4px; margin-bottom:20px; border-bottom:2px solid #e3e6ec; }
.tab-menu a { position:relative; top:2px; padding:12px 22px; border:2px solid transparent; border-bottom:0; border-radius:8px 8px 0 0; font-size:14px; font-weight:600; color:#777; transition:color 0.15s, background 0.15s; }
.tab-menu a:hover { color:#343a4a; background:#eef1f6; }
.tab-menu a.on { background:#fff; border-color:#e3e6ec; border-bottom:2px solid #fff; color:#007bff; }

.empty-text { padding:40px 0; text-align:center; color:#999; }
.preview-favicon { width:32px; height:32px; object-fit:contain; }

@media (max-width: 1024px) {
  .tab-menu { overflow-x:auto; white-space:nowrap; }
  .tab-menu a { flex-shrink:0; padding:10px 16px; font-size:13px; }
}
/* ========== 사이트 설정 - 메뉴 ========== */
.form-box.form-wide { max-width:1200px; }
.menu-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 0; }
.menu-head .form-help { margin-top:0; }
.menu-wrap { box-shadow:none; border:1px solid #e6e9ef; }

.menu-table td { padding:8px 8px; }
.menu-table input[type=text], .menu-table select { width:100%; height:36px; padding:0 10px; border:1px solid #d5d9e0; border-radius:6px; background:#fff; font-size:13px; font-family:inherit; }
.menu-table input[type=text]:focus, .menu-table select:focus { outline:none; border-color:#007bff; box-shadow:0 0 0 3px rgba(0, 123, 255, 0.12); }
.menu-table input[type=radio], .menu-table input[type=checkbox] { width:16px; height:16px; accent-color:#007bff; cursor:pointer; }

.menu-table .col-order { width:76px; white-space:nowrap; text-align:center; }
.menu-table .col-type { width:110px; }
.menu-table .col-index, .menu-table .col-del { width:64px; text-align:center; }
.menu-table .col-status { width:90px; }

.order-btn { width:28px; height:28px; border:1px solid #e1e4ea; border-radius:6px; background:#fff; font-size:11px; color:#777; }
.order-btn:hover { border-color:#007bff; color:#007bff; }
.order-btn.row-remove:hover { border-color:#ef4444; color:#ef4444; }

.menu-table tr.is-new { background:#f4f8ff; }
.menu-table tr.is-del { opacity:0.4; }
.menu-table tr.is-del input[type=text] { text-decoration:line-through; }

@media (max-width: 1024px) {
  .menu-head { flex-direction:column; align-items:flex-start; }
  .menu-wrap { overflow-x:auto; }
  .menu-table { min-width:820px; }
  .menu-table thead { display:table-header-group; }
  .menu-table, .menu-table tbody { display:table; width:100%; }
  .menu-table tr { display:table-row; margin:0; padding:0; box-shadow:none; border-radius:0; }
  .menu-table td { display:table-cell; width:auto; padding:6px; border-bottom:1px solid #f0f2f5; text-align:left; }
  .menu-table td::before { content:none; }
  .menu-table .col-order, .menu-table .col-index, .menu-table .col-del { text-align:center; }
}
/* ========== 사이트 설정 - 레이아웃 ========== */
.layout-help { margin:14px 0 18px; }
.layout-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:18px; padding-bottom:10px; }
.layout-card { display:flex; flex-direction:column; border:2px solid #e6e9ef; border-radius:10px; background:#fff; overflow:hidden; transition:border-color 0.15s, box-shadow 0.15s; }
.layout-card:hover { border-color:#c9d6ee; box-shadow:0 6px 18px rgba(17, 24, 39, 0.08); }
.layout-card.is-active { border-color:#007bff; }

.layout-thumb { position:relative; aspect-ratio:4 / 3; background:#e5e7eb; }
.layout-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.layout-noshot { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; width:100%; height:100%; color:#9ca3af; }
.layout-noshot i { font-size:34px; }
.layout-noshot span { font-size:12px; letter-spacing:0.5px; }
.layout-badge { position:absolute; top:10px; right:10px; }

.layout-info { flex:1; padding:14px 16px 8px; }
.layout-title { display:block; font-size:15px; font-weight:700; color:#343a4a; }
.layout-folder { display:block; margin-top:4px; font-family:Consolas, monospace; font-size:12px; color:#999; }

.layout-action { padding:0 16px 16px; }
.layout-action .btn { width:100%; }
.layout-action .btn[disabled] { cursor:default; opacity:0.7; }

@media (max-width: 1024px) {
  .layout-grid { grid-template-columns:repeat(2, 1fr); gap:12px; }
  .layout-info { padding:12px 12px 6px; }
  .layout-action { padding:0 12px 12px; }
}

@media (max-width: 767px) {
  .layout-grid { grid-template-columns:1fr; }
}
/* ========== 사이트 설정 - 기준 디렉토리 ========== */
.page-dir-input { margin-top:10px; }
.page-dir-input.is-disabled { opacity:0.4; }
.page-dir-input.is-disabled input { cursor:not-allowed; }

@media (max-width: 1024px) {
  .page-dir-input { margin-top:8px; }
}
/* ========== 게시판 생성 - 메뉴에서 찾기 ========== */
.id-find { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.id-find select { width:auto !important; min-width:220px; max-width:100%; }
.menu-linked { color:#16a34a; font-weight:600; }
.menu-linked:empty { display:none; }

@media (max-width: 1024px) {
  .id-find { flex-direction:column; align-items:stretch; }
  .id-find select { min-width:0; width:100% !important; }
}
/* ========== 회원 관리 ========== */
.tab-menu.tab-sm { margin-bottom:14px; }
.tab-menu.tab-sm a { padding:9px 16px; font-size:13px; }
.tab-menu.tab-sm a b { margin-left:4px; color:#007bff; font-weight:700; }

.member-id { display:flex; align-items:center; gap:8px; }
.member-icon { flex:0 0 28px; width:28px; height:28px; display:inline-flex; align-items:center; justify-content:center; border-radius:50%; background:#eef1f6; color:#aab1bd; font-size:12px; overflow:hidden; }
.member-icon img { width:100%; height:100%; object-fit:cover; }

@media (max-width: 1024px) {
  .tab-menu.tab-sm a { padding:8px 12px; font-size:12px; }
  .member-id { justify-content:flex-end; }
}
/* ========== 회원 수정 ========== */
.zip-input { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.zip-input .btn { height:40px; }
.addr-input { margin-top:8px; }
.form-field input[readonly].addr-input, .form-field #zipcode[readonly] { background:#f8f9fb; color:#333; cursor:default; }

.zip-layer { display:none; position:relative; height:440px; margin-top:10px; border:1px solid #d5d9e0; border-radius:8px; overflow:hidden; background:#fff; }
.zip-layer.is-open { display:block; }
.zip-layer #zip-wrap { width:100%; height:100%; }
.zip-close { position:absolute; top:8px; right:8px; z-index:2; width:30px; height:30px; border-radius:50%; background:#343a4a; font-size:13px; color:#fff; }
.zip-close:hover { background:#000; }

.preview-icon { width:48px !important; height:48px !important; border-radius:50%; object-fit:cover; }

@media (max-width: 1024px) {
  .zip-input .btn { flex:1; }
  .zip-layer { height:400px; }
}

/* ========== 사이트 설정 - 메뉴 ========== */
.form-box.form-wide { max-width:1200px; }
.menu-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 0; }
.menu-head .form-help { margin-top:0; }
.menu-wrap { box-shadow:none; border:1px solid #e6e9ef; }

.menu-table td { padding:8px 8px; }
.menu-table input[type=text], .menu-table select { width:100%; height:36px; padding:0 10px; border:1px solid #d5d9e0; border-radius:6px; background:#fff; font-size:13px; font-family:inherit; }
.menu-table input[type=text]:focus, .menu-table select:focus { outline:none; border-color:#007bff; box-shadow:0 0 0 3px rgba(0, 123, 255, 0.12); }
.menu-table input[type=radio], .menu-table input[type=checkbox] { width:16px; height:16px; accent-color:#007bff; cursor:pointer; }

.menu-table .col-order { width:76px; white-space:nowrap; text-align:center; }
.menu-table .col-type { width:110px; }
.menu-table .col-index, .menu-table .col-del { width:64px; text-align:center; }
.menu-table .col-status { width:90px; }

.order-btn { width:28px; height:28px; border:1px solid #e1e4ea; border-radius:6px; background:#fff; font-size:11px; color:#777; }
.order-btn:hover { border-color:#007bff; color:#007bff; }
.order-btn.row-remove:hover { border-color:#ef4444; color:#ef4444; }

.menu-table tr.is-new { background:#f4f8ff; }
.menu-table tr.is-del { opacity:0.4; }
.menu-table tr.is-del input[type=text] { text-decoration:line-through; }

@media (max-width: 1024px) {
  .menu-head { flex-direction:column; align-items:flex-start; }
  .menu-wrap { overflow-x:auto; }
  .menu-table { min-width:820px; }
  .menu-table thead { display:table-header-group; }
  .menu-table, .menu-table tbody { display:table; width:100%; }
  .menu-table tr { display:table-row; margin:0; padding:0; box-shadow:none; border-radius:0; }
  .menu-table td { display:table-cell; width:auto; padding:6px; border-bottom:1px solid #f0f2f5; text-align:left; }
  .menu-table td::before { content:none; }
  .menu-table .col-order, .menu-table .col-index, .menu-table .col-del { text-align:center; }
}
/* ========== 메뉴 상태 표시 ========== */
.menu-table tr.is-hidden td { background:#f6f7f9; }
.menu-table tr.is-hidden input[type=text] { color:#999; }
.menu-table tr.is-stop td { background:#fdf4f4; }
.menu-table tr.is-stop input[type=text] { color:#c08080; }

@media (max-width: 1024px) {
  .menu-table tr.is-hidden td { background:#f6f7f9; }
  .menu-table tr.is-stop td { background:#fdf4f4; }
}
/* ========== 메뉴 열기 칸 ========== */
.menu-table .col-open { width:100px; }
.menu-table .col-open select { width:100%; }

@media (max-width:1024px){
.menu-table .col-open { width:90px; }
}

/* ========== 모바일 (767px 이하) ========== */
@media (max-width:767px) {
/* 로그인 */
.login-body { padding:12px; }
.login-box { padding:28px 16px 20px; border-radius:10px; }
.login-logo { font-size:17px; }
.login-logo span { font-size:17px; }
.login-desc { margin:6px 0 20px; font-size:12px; }
.login-field { height:42px; padding:0 12px; }
.login-field input { font-size:13px; }
.login-btn { height:44px; font-size:14px; }

/* 메시지 박스 */
.msgbox { gap:8px; padding:10px 12px; margin-bottom:12px; }
.msgbox .msg-icon { flex:0 0 26px; width:26px; height:26px; font-size:13px; }
.msgbox .msg-body { padding-top:3px; }

/* 레이아웃 · 사이드바 */
#container { padding:10px; }
.admin-logo, .admin-userinfo, .admin-home { height:50px; padding:0 14px; }
.admin-logo h1 { font-size:18px; }
.admin-logo span { font-size:18px; }
.admin-userinfo .name, .admin-home .home { font-size:14px; }
#admin-side nav .menu-group { height:46px; padding:0 14px; }
#admin-side nav .menu-group span { font-size:15px; margin-left:10px; }
#admin-side nav .menu-group > i:first-child { font-size:17px; }
#admin-side nav .menu-item { height:38px; line-height:38px; padding:0 32px; font-size:13px; }
#admin-side nav .menu-item.on { padding-left:29px; }

/* 본문 공통 */
.admin-content { padding:12px; border-radius:8px; }
.page-title { font-size:16px; padding-bottom:12px; }
#admin-footer { margin-top:24px; padding-top:12px; font-size:11px; }
.page-head { flex-direction:column; align-items:stretch; }
.page-head .btn { width:100%; }

/* 버튼 */
.btn { height:36px; padding:0 12px; font-size:12px; }
.btn-sm { height:28px; padding:0 8px; font-size:11px; }

/* 검색 */
.search-box { flex-wrap:wrap; }
.search-box select { flex:1 1 100%; }
.search-box input { flex:1; }
.search-box select, .search-box input { height:36px; font-size:12px; }

/* 목록 테이블 (카드형) */
.admin-table tr { padding:8px 12px; border-radius:8px; }
.admin-table td { padding:7px 0; font-size:12px; }
.admin-table td::before { font-size:11px; }
.admin-table .col-manage { flex-wrap:wrap; }
.badge { padding:2px 7px; font-size:10px; }

/* 페이징 */
.paging { flex-wrap:wrap; gap:3px; margin-top:14px; }
.paging a { min-width:28px; height:28px; padding:0 4px; font-size:11px; }

/* 입력 폼 */
.form-box { padding:4px 12px 16px; border-radius:8px; }
.form-section { margin-top:16px; font-size:13px; }
.form-row { padding:12px 0; }
.form-label { font-size:12px; }
.form-field input[type=text], .form-field input[type=email], .form-field input[type=password], .form-field input[type=number], .form-field input[type=url], .form-field input[type=tel], .form-field input[type=date], .form-field select { height:38px; font-size:13px; }
.form-field textarea { font-size:13px; }
.form-preview { flex-wrap:wrap; }
.radio-group, .check-group { gap:6px 14px; }
.radio, .check { font-size:13px; }
.form-actions { flex-direction:column; }
.form-actions .btn { width:100%; height:40px; }

/* 게시판 생성 · 수정 */
.size-input input[type=number] { width:80px !important; }
.perm-item select { min-width:80px; }

/* 탭 메뉴 */
.tab-menu a { padding:9px 12px; font-size:12px; }
.tab-menu.tab-sm a { padding:7px 10px; font-size:11px; }

/* 사이트 설정 - 메뉴 */
.menu-head .btn { width:100%; }
.menu-table { min-width:760px; }

/* 레이아웃 카드 */
.layout-grid { gap:10px; }
.layout-title { font-size:14px; }

/* 회원 수정 - 우편번호 */
.zip-layer { height:360px; }
}
/* ========== 사이트 설정 - 페이지 파일 ========== */
.page-file-actions { display:flex; flex-wrap:wrap; gap:8px; }
.page-file-result { margin-top:10px; color:#2e7d32; font-size:13px; }
.page-file-wrap { margin-top:12px; }
.page-file-table .col-path { font-family:monospace; font-size:12px; color:#555; word-break:break-all; }
.page-file-table .col-state { width:90px; text-align:center; }
.badge-empty { background:#fff4e0; color:#c77700; }

@media (min-width:768px) and (max-width:1023px) {
.page-file-actions { display:flex; flex-wrap:wrap; gap:8px; }
.page-file-result { margin-top:10px; color:#2e7d32; font-size:13px; }
.page-file-wrap { margin-top:10px; }
.page-file-table .col-path { font-family:monospace; font-size:12px; color:#555; word-break:break-all; }
.page-file-table .col-state { width:80px; text-align:center; }
.badge-empty { background:#fff4e0; color:#c77700; }
}

@media (max-width:767px) {
.page-file-actions { display:flex; flex-wrap:wrap; gap:6px; }
.page-file-result { margin-top:8px; color:#2e7d32; font-size:12px; }
.page-file-wrap { margin-top:8px; }
.page-file-table .col-path { font-family:monospace; font-size:11px; color:#555; word-break:break-all; }
.page-file-table .col-state { width:auto; text-align:left; }
.badge-empty { background:#fff4e0; color:#c77700; }
}
/* ========== 사이트 설정 - 기타 설정 ========== */
.maint-time { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.ip-textarea { font-family:monospace; font-size:13px; }
.form-field .check + .ip-textarea { margin-top:8px; }

@media (min-width:768px) and (max-width:1023px) {
.maint-time { display:flex; flex-wrap:wrap; align-items:center; gap:6px; }
.ip-textarea { font-family:monospace; font-size:13px; }
.form-field .check + .ip-textarea { margin-top:8px; }
}

@media (max-width:767px) {
.maint-time { display:flex; flex-direction:column; align-items:stretch; gap:6px; }
.maint-time .unit { text-align:center; }
.ip-textarea { font-family:monospace; font-size:12px; }
.form-field .check + .ip-textarea { margin-top:6px; }
}

/* ========== 사이트 설정 - 점검 시간 ========== */
.maint-box { display:flex; align-items:stretch; gap:12px; max-width:620px; }
.maint-field { flex:1 1 0; display:flex; flex-direction:column; gap:6px; padding:12px 14px; border:1px solid #e3e7ef; border-radius:10px; background:#f8faff; transition:border-color 0.2s ease, box-shadow 0.2s ease; }
.maint-field:focus-within { border-color:#456fc8; box-shadow:0 0 0 3px rgba(69,111,200,0.12); background:#fff; }
.maint-label { font-size:12px; font-weight:600; color:#456fc8; }
.maint-label i { margin-right:4px; }
.maint-field input[type=datetime-local] { width:100%; padding:0; border:0; background:transparent; font-size:15px; color:#222; outline:none; }
.maint-arrow { display:flex; align-items:center; color:#aab4c8; font-size:14px; }
.maint-tools { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; max-width:620px; margin-top:10px; }
.maint-dur { display:inline-flex; align-items:center; gap:6px; padding:5px 12px; border-radius:20px; background:#f1f3f7; color:#777; font-size:13px; }
.maint-dur.is-ok { background:#eef2fb; color:#456fc8; font-weight:600; }
.maint-dur.is-error { background:#fdecec; color:#d14343; font-weight:600; }
.maint-quick { display:flex; flex-wrap:wrap; gap:6px; }

@media (min-width:768px) and (max-width:1023px) {
.maint-box { display:flex; align-items:stretch; gap:10px; max-width:100%; }
.maint-field { flex:1 1 0; display:flex; flex-direction:column; gap:6px; padding:10px 12px; border:1px solid #e3e7ef; border-radius:10px; background:#f8faff; }
.maint-field:focus-within { border-color:#456fc8; box-shadow:0 0 0 3px rgba(69,111,200,0.12); background:#fff; }
.maint-label { font-size:12px; font-weight:600; color:#456fc8; }
.maint-field input[type=datetime-local] { width:100%; padding:0; border:0; background:transparent; font-size:14px; color:#222; outline:none; }
.maint-arrow { display:flex; align-items:center; color:#aab4c8; font-size:13px; }
.maint-tools { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; max-width:100%; margin-top:10px; }
.maint-dur { display:inline-flex; align-items:center; gap:6px; padding:5px 12px; border-radius:20px; background:#f1f3f7; color:#777; font-size:13px; }
.maint-quick { display:flex; flex-wrap:wrap; gap:6px; }
}

@media (max-width:767px) {
.maint-box { display:flex; flex-direction:column; align-items:stretch; gap:6px; max-width:100%; }
.maint-field { display:flex; flex-direction:column; gap:4px; padding:10px 12px; border:1px solid #e3e7ef; border-radius:10px; background:#f8faff; }
.maint-field:focus-within { border-color:#456fc8; box-shadow:0 0 0 3px rgba(69,111,200,0.12); background:#fff; }
.maint-label { font-size:12px; font-weight:600; color:#456fc8; }
.maint-field input[type=datetime-local] { width:100%; padding:0; border:0; background:transparent; font-size:14px; color:#222; outline:none; }
.maint-arrow { justify-content:center; color:#aab4c8; font-size:12px; transform:rotate(90deg); }
.maint-tools { display:flex; flex-direction:column; align-items:stretch; gap:8px; max-width:100%; margin-top:8px; }
.maint-dur { display:flex; justify-content:center; align-items:center; gap:6px; padding:6px 12px; border-radius:20px; background:#f1f3f7; color:#777; font-size:12px; }
.maint-quick { display:grid; grid-template-columns:repeat(4,1fr); gap:6px; }
}