/* 호스트(라이트 DOM) + 섀도 내부 보드 모두 컬럼 전폭 기준 — Elementor 박스(~1140px)에 맞춤 */
:host {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.fb-board-host {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.fb-board-root {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.fb-board {
  font-family: "Noto Sans KR", sans-serif;
  color: #222;
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
.fb-board-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 12px;
  min-height: 34px;
}

.fb-board * {
  box-sizing: border-box;
}

.fb-footer-auth {
  display: inline-block !important;
  visibility: visible !important;
  white-space: nowrap;
  margin-left: 6px;
  position: relative;
  z-index: 10;
}
.fb-footer-auth-link {
  display: inline-block !important;
  color: rgba(0, 0, 0, 0.06) !important;
  opacity: 1 !important;
  cursor: pointer !important;
  padding: 0 4px !important;
  font-weight: 600 !important;
  background: transparent !important;
  text-decoration: none !important;
}
.fb-footer-auth-link:hover {
  opacity: 0.65 !important;
}

.fb-btn {
  display: inline-block;
  padding: 7px 16px;
  background: #4a90d7;
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 14px;
  cursor: pointer;
  line-height: 1.4;
  text-decoration: none;
  transition: all 0.15s;
  box-shadow: none !important;
}
.fb-btn:hover {
  background: #4a90d7;
  color: #fff;
}
.fb-btn-primary {
  background: #2c5bbd;
  color: #fff;
  border-color: #2c5bbd;
}
.fb-btn-primary:hover {
  background: #244fa3;
  border-color: #244fa3;
  color: #fff;
}
.fb-btn-danger {
  background: #c0392b;
  color: #fff;
  border-color: #c0392b;
}
.fb-btn-danger:hover {
  background: #c0392b;
  color: #fff;
}
.fb-btn-sm {
  padding: 3px 10px;
  font-size: 12px;
}
.fb-btn-text {
  background: transparent;
  border: none;
  color: #2c5bbd;
  padding: 4px 8px;
  text-decoration: underline;
}
.fb-btn-text:hover {
  background: transparent;
  color: #244fa3;
}
.fb-btn-login {
  background: #333;
  color: #fff;
  border-color: #333;
}
.fb-btn-login:hover {
  background: #000;
  border-color: #000;
  color: #fff;
}

/* 보조 버튼(모달 목록·취소 등) — 퀵링크 톤 */
.fb-btn-secondary {
  background: #fff !important;
  color: #305794 !important;
  border: 1px solid #98abca !important;
  box-shadow: 0 1px 3px rgba(45, 58, 74, 0.08);
}
.fb-btn-secondary:hover {
  background: #eef3fb !important;
  color: #244068 !important;
  border-color: #7d98c9 !important;
}

.fb-btn-danger-outline {
  background: #fff !important;
  color: #a93226 !important;
  border: 1px solid #e0aaa5 !important;
  box-shadow: 0 1px 2px rgba(192, 57, 43, 0.08);
}
.fb-btn-danger-outline:hover {
  background: #fdf2f2 !important;
  color: #922b21 !important;
  border-color: #c0392b !important;
}

.fb-user-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.fb-badge-admin {
  display: inline-block;
  padding: 2px 8px;
  background: #2c5bbd;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 3px;
}

.fb-board-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e5e5e5;
}

.fb-pagination {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e5e5e5;
}
.fb-pagination-row {
  position: relative;
  width: 100%;
  box-sizing: border-box;
}
.fb-pagination-batch {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 2;
}
.fb-pagination-batch .fb-batch-delete-btn {
  margin: 0;
}
.fb-page-size {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #3c3c3c;
}
.fb-page-size-label {
  white-space: nowrap;
  font-weight: bold;
  color: #3c3c3c;
}
.fb-page-size-wrap {
  position: relative;
  display: inline-block;
  min-width: 72px;
  vertical-align: middle;
}
.fb-page-size-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 72px;
  min-height: 28px;
  padding: 0 26px 0 10px;
  border: 1px solid #98abca;
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  background: #f7f9fb;
  cursor: pointer;
  color: #2d3a4a;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.fb-page-size-trigger-text {
  text-align: center;
  pointer-events: none;
}
.fb-page-size-trigger::after {
  content: "";
  position: absolute;
  right: 11px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -5px;
  border: solid #5a6f8f;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  pointer-events: none;
}
.fb-page-size-trigger[aria-expanded="true"]::after {
  margin-top: -2px;
  transform: rotate(-135deg);
}
.fb-page-size-trigger:hover {
  border-color: #6b8cc4;
  background: #fff;
}
.fb-page-size-trigger:focus {
  outline: none;
}
.fb-page-size-trigger:focus-visible {
  border-color: #2c5bbd;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(44, 91, 189, 0.18);
}
.fb-page-size-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  min-width: 72px;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  background: #fff;
  border: 1px solid #98abca;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(44, 91, 189, 0.14);
  z-index: 200;
  box-sizing: border-box;
}
.fb-page-size-menu[hidden] {
  display: none !important;
}
.fb-page-size-menu [role="option"] {
  margin: 0;
  padding: 8px 12px;
  text-align: center;
  font-size: 13px;
  color: #2d3a4a;
  cursor: pointer;
  user-select: none;
}
.fb-page-size-menu [role="option"]:hover {
  background: #eef3fb;
}
.fb-page-size-menu [role="option"][aria-selected="true"] {
  background: #2c5bbd;
  color: #fff;
}
.fb-page-size-menu [role="option"][aria-selected="true"]:hover {
  background: #244fa3;
  color: #fff;
}
.fb-page-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px 20px;
  width: 100%;
  box-sizing: border-box;
}

.fb-page-nav .fb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  border-radius: 8px !important;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease,
    box-shadow 0.15s ease;
}

.fb-page-nav .fb-page-prev.fb-btn-light::before {
  content: "\2039";
  margin-right: 5px;
  font-size: 1.15em;
  line-height: 1;
  opacity: 0.9;
}
.fb-page-nav .fb-page-next.fb-btn-light::after {
  content: "\203A";
  margin-left: 5px;
  font-size: 1.15em;
  line-height: 1;
  opacity: 0.9;
}

.fb-page-nav .fb-page-prev.fb-btn-light,
.fb-page-nav .fb-page-next.fb-btn-light {
  background: #f7f9fb !important;
  border: 1px solid #98abca !important;
  color: #2d3a4a !important;
  box-shadow: 0 1px 2px rgba(44, 91, 189, 0.07) !important;
}
.fb-page-nav .fb-page-prev.fb-btn-light:hover:not(:disabled),
.fb-page-nav .fb-page-next.fb-btn-light:hover:not(:disabled) {
  background: #fff !important;
  border-color: #4a90d7 !important;
  color: #2c5bbd !important;
  box-shadow: 0 2px 8px rgba(44, 91, 189, 0.14) !important;
}
.fb-page-nav .fb-page-prev.fb-btn-light:active:not(:disabled),
.fb-page-nav .fb-page-next.fb-btn-light:active:not(:disabled) {
  background: #eef3fb !important;
  box-shadow: 0 1px 3px rgba(44, 91, 189, 0.1) !important;
}
.fb-page-nav .fb-page-prev.fb-btn-light:focus-visible,
.fb-page-nav .fb-page-next.fb-btn-light:focus-visible {
  outline: 2px solid rgba(44, 91, 189, 0.45);
  outline-offset: 2px;
}
.fb-page-nav .fb-page-prev.fb-btn-light:disabled,
.fb-page-nav .fb-page-next.fb-btn-light:disabled {
  cursor: not-allowed;
  background: #f2f4f7 !important;
  border-color: #d8dee8 !important;
  color: #97a3b4 !important;
  box-shadow: none !important;
  opacity: 1 !important;
}
.fb-page-nav .fb-page-prev.fb-btn-light:disabled::before,
.fb-page-nav .fb-page-next.fb-btn-light:disabled::after {
  opacity: 0.55;
}

.fb-page-info {
  --fb-page-num-width: 34px;
  --fb-page-num-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: #333;
  white-space: nowrap;
}
.fb-page-total {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--fb-page-num-width);
  min-width: var(--fb-page-num-width);
  flex-shrink: 0;
  height: var(--fb-page-num-height);
  line-height: var(--fb-page-num-height);
  box-sizing: border-box;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.fb-page-info-unit {
  font-weight: bold;
  color: #3c3c3c;
}
.fb-page-current-input {
  width: var(--fb-page-num-width);
  min-width: var(--fb-page-num-width);
  flex-shrink: 0;
  height: var(--fb-page-num-height);
  border: none;
  border-radius: 0;
  font-size: 15px;
  font-family: inherit;
  text-align: center;
  line-height: var(--fb-page-num-height);
  background: transparent;
  color: #3c3c3c;
  box-sizing: border-box;
  vertical-align: middle;
  box-shadow: none;
  transition: color 0.15s ease;
}
.fb-page-current-input:hover:not(:disabled) {
  background: transparent;
  color: #2c5bbd;
}
.fb-page-current-input::-webkit-outer-spin-button,
.fb-page-current-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.fb-page-current-input:focus {
  outline: 1px solid rgba(44, 91, 189, 0.45);
  outline-offset: 1px;
}
.fb-page-current-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.fb-page-info-sep {
  color: #666;
}

.fb-search {
  display: flex;
  gap: 6px;
  flex: 1;
  max-width: 520px;
}
.fb-search[hidden] {
  display: none !important;
}
.fb-search select {
  flex: 0 0 100px;
  padding: 6px 10px;
  border: 1px solid #bbb;
  border-radius: 3px;
  font-size: 13px;
  background: #fff;
  cursor: pointer;
  color: #222;
  text-align: center;
  text-align-last: center;
}
.fb-search select option {
  text-align: center;
}
.fb-search select:focus {
  outline: none;
  border-color: #2c5bbd;
  box-shadow: 0 0 0 2px rgba(44, 91, 189, 0.15);
}
.fb-search input {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid #bbb;
  border-radius: 3px;
  font-size: 13px;
  font-family: inherit;
  color: #222;
}
.fb-search input:focus {
  outline: none;
  border-color: #2c5bbd;
  box-shadow: 0 0 0 2px rgba(44, 91, 189, 0.15);
}
.fb-admin-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
}
.fb-admin-actions .fb-btn {
  padding: 8px 32px;
}
.fb-batch-delete-btn {
  font-size: 14px;
  padding-inline: 22px;
}
.fb-batch-delete-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.fb-btn-light {
  background: #f7f9fb;
  color: #3c3c3c;
  border-radius: 50px;
  border: 1px solid #98abca;
  box-shadow: none !important;
  font-size: 15px;
  transition: all 0.4s ease-in-out;
}

.fb-btn-light:hover {
  background: #f7f9fb;
  color: #4a90d7 !important;
  border: 1px solid #98abca;
}

.fb-board-table {
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  table-layout: fixed;
}

/* colgroup: colspan 로딩 행에서도 thead 전폭 유지 + 제목 열 과도 확장 완화 */
.fb-board-table col.fb-board-col-no {
  width: 50px;
}
.fb-board-table col.fb-board-col-title {
  width: 34%;
}
.fb-board-table col.fb-board-col-author {
  width: 220px;
}
.fb-board-table col.fb-board-col-date {
  width: 100px;
}
.fb-board-table col.fb-board-col-view {
  width: 70px;
}
.fb-board-table col.fb-board-col-action {
  width: 54px;
}
.fb-board-table col.fb-board-col-select {
  width: 40px;
}
.fb-board-table:not(.fb-board-admin) col.fb-board-col-action,
.fb-board-table:not(.fb-board-admin) col.fb-board-col-select {
  width: 0;
  min-width: 0;
}
.fb-board-table thead th {
  background: #f7f9fb;
  border-top: 1px solid #676767;
  border-bottom: 1px solid #676767;
  padding: 8px 6px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.fb-board-table tbody td {
  border-bottom: 1px solid #eee;
  padding: 9px 6px;
  font-size: 13px;
  text-align: center;
}
.fb-board-table tbody tr:hover {
  background: #f9fbff;
}
.fb-board-table .fb-col-no {
  width: 50px;
  font-weight: bold;
}
.fb-board-table .fb-col-select {
  width: 40px;
  max-width: 40px;
  padding: 8px 4px;
  text-align: center;
  vertical-align: middle;
}
.fb-board-table thead th.fb-col-select {
  vertical-align: middle;
}
.fb-board-table .fb-col-select input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
  vertical-align: middle;
}
.fb-board-table thead th.fb-col-title {
  text-align: left;
  /* No 열과 제목 내용 간 시각 간격(+10px) */
  padding: 8px 6px 8px 16px;
}
.fb-board-table tbody td.fb-col-title {
  text-align: left;
  padding: 9px 6px 9px 16px;
}
.fb-board-table .fb-col-title-inner {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  max-width: 100%;
}
.fb-board-table .fb-col-title-inner a {
  min-width: 0;
}
.fb-board-table .fb-new-badge {
  flex-shrink: 0;
  display: inline-block;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: #fff;
  background: #ff9500;
  border-radius: 3px;
  text-transform: uppercase;
  vertical-align: middle;
}
.fb-board-table .fb-col-title a {
  color: #222;
  text-decoration: none;
  font-weight: 500;
}
.fb-board-table .fb-col-title a:hover {
  color: #2c5bbd;
  text-decoration: underline;
}
.fb-board-table .fb-col-author {
  width: 220px;
  max-width: 220px;
  color: #555;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}
.fb-board-table .fb-col-date {
  width: 100px;
  max-width: 100px;
  color: #666;
  text-align: center;
  vertical-align: middle;
}
.fb-board-table .fb-col-view {
  width: 70px;
  color: #666;
}
.fb-board-table thead th.fb-col-action,
.fb-board-table tbody td.fb-col-action {
  width: 54px;
  max-width: 54px;
  padding-left: 3px;
  padding-right: 3px;
  white-space: nowrap;
  box-sizing: border-box;
  vertical-align: middle;
}
.fb-board-table .fb-col-action .fb-btn {
  margin: 0;
  padding: 4px 6px;
  font-size: 12px;
  line-height: 1.2;
}
.fb-board-table .fb-empty td {
  padding: 40px;
  color: #999;
}

html.fb-modal-open,
body.fb-modal-open {
  overflow: hidden;
}
body.fb-modal-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}
.fb-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  box-sizing: border-box;
  z-index: 99999;
  animation: fb-fade 0.15s ease-out;
}

/* 호스트 페이지(예: 테마 CSS)가 button에 주는 box-shadow 무효화 — 아래·이후 블록에서만 재지정 */
.fb-modal-backdrop button {
  box-shadow: none !important;
}

.fb-board .fb-page-nav .fb-page-prev.fb-btn-light,
.fb-board .fb-page-nav .fb-page-next.fb-btn-light {
  box-shadow: 0 1px 2px rgba(44, 91, 189, 0.07) !important;
}

.fb-board .fb-page-nav .fb-page-prev.fb-btn-light:hover:not(:disabled),
.fb-board .fb-page-nav .fb-page-next.fb-btn-light:hover:not(:disabled) {
  box-shadow: 0 2px 8px rgba(44, 91, 189, 0.14) !important;
}

.fb-board .fb-page-nav .fb-page-prev.fb-btn-light:active:not(:disabled),
.fb-board .fb-page-nav .fb-page-next.fb-btn-light:active:not(:disabled) {
  box-shadow: 0 1px 3px rgba(44, 91, 189, 0.1) !important;
}

.fb-board .fb-page-size-trigger:focus-visible {
  box-shadow: 0 0 0 2px rgba(44, 91, 189, 0.18) !important;
}

@keyframes fb-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fb-modal-login-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fb-modal {
  /* 헤더(.fb-modal-header) 높이는 아래 두 값으로 조절 — 숫자를 키우면 헤더가 높아짐 */
  --fb-modal-header-padding-y: 0px;
  --fb-modal-header-padding-x: 12px;

  background: #fff;
  border-radius: 12px;
  max-width: 1100px;
  width: min(80vw, 1100px);
  height: min(800px, 92vh) !important;
  max-height: 92dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 24px 48px rgba(30, 45, 90, 0.18),
    0 10px 20px rgba(45, 58, 74, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(152, 171, 202, 0.45);
  top: 0;
  bottom: 0;
  margin: auto;
}

.fb-modal-controls {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 4px;
  margin-inline-end: 2px;
}

.fb-modal-toggle-size {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  margin: 0;
  border-radius: 6px;
  border: 1px solid rgba(152, 171, 202, 0.65);
  background: rgba(255, 255, 255, 0.96);
  color: #2c5bbd;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.fb-modal-toggle-size:hover {
  background: #eef3fb;
  border-color: rgba(74, 144, 215, 0.55);
  color: #244fa3;
}

.fb-modal.fb-modal-expanded .fb-modal-toggle-size {
  background: rgba(74, 144, 215, 0.12);
  border-color: #98abca;
  color: #1f448c;
}

.fb-modal-toggle-size:focus-visible {
  outline: 2px solid rgba(44, 91, 189, 0.35);
  outline-offset: 1px;
}

/* 뷰포트에 맞춘 “전체 크기” (배경 패딩 16px×2 반영) */
.fb-modal.fb-modal-expanded {
  width: calc(100vw - 32px) !important;
  max-width: none !important;
  height: calc(100vh - 32px) !important;
  max-height: calc(100dvh - 32px) !important;
}

.fb-modal.fb-modal-sm {
  max-width: 300px;
  height: 380px !important;
}

.fb-modal.fb-modal-sm.fb-modal-login {
  max-width: min(304px, 80vw);
  width: min(304px, calc(100vw - 32px));
  height: auto !important;
  min-height: 0;
  border-radius: 12px;
  box-shadow:
    0 24px 48px rgba(30, 45, 90, 0.18),
    0 10px 20px rgba(45, 58, 74, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
  animation: fb-modal-login-in 0.22s ease-out both;
}

.fb-modal.fb-modal-sm .fb-modal-header {
  padding: 14px 18px;
  flex-shrink: 0;
}

/* 로그인: 목록·상세 모달과 동일한 헤더/본문 톤 */
.fb-modal.fb-modal-login .fb-modal-header {
  min-height: 0;
  padding: 5px 10px 6px calc(10px + 4px);
  background: linear-gradient(180deg, #f8fafc 0%, #f4f7fb 100%);
  border-bottom: 1px solid rgba(152, 171, 202, 0.35);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.85);
}

.fb-modal.fb-modal-login .fb-modal-header h3 {
  color: #1e2b45;
  font-size: clamp(13px, 2.5vw, 15px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
  text-shadow: none;
}


.fb-modal.fb-modal-sm .fb-modal-body {
  padding: 22px 24px 20px;
  flex: 0 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.fb-modal.fb-modal-login .fb-modal-body {
  padding: 14px 16px 16px;
  background: linear-gradient(180deg, #fcfdff 0%, #fafbfc 100%);
}

.fb-modal.fb-modal-login .fb-form-login {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  max-width: 100%;
}

.fb-modal.fb-modal-login .fb-login-brand {
  text-align: center;
  margin-bottom: 22px;
}

.fb-modal.fb-modal-login .fb-login-logo {
  width: 112px;
  height: auto;
  display: block;
  margin: 20px auto 30px;
  filter: none;
}

.fb-modal.fb-modal-login .fb-login-tagline {
  margin: 0;
  font-size: 13px;
  color: #666;
  line-height: 1.45;
  font-weight: 500;
}

.fb-modal.fb-modal-login .fb-login-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.fb-modal.fb-modal-login .fb-login-field {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 0;
  cursor: pointer;
}

.fb-modal.fb-modal-login .fb-login-label {
  font-size: 12px;
  font-weight: 600;
  color: #555;
  letter-spacing: 0.02em;
  text-align: center;
  width: 100%;
}

.fb-modal.fb-modal-login .fb-login-field input {
  width: 100%;
  box-sizing: border-box;
  font-size: 14px;
  padding: 9px 12px;
  border: 1px solid #d8dde6;
  border-radius: 6px;
  background: #fff;
  color: #222;
  min-height: 40px;
  text-align: center;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.fb-modal.fb-modal-login .fb-login-field input::placeholder {
  color: #888;
}

.fb-modal.fb-modal-login .fb-login-field input:hover {
  border-color: #98abca;
}

.fb-modal.fb-modal-login .fb-login-field input:focus {
  outline: none;
  border-color: #2c5bbd;
  box-shadow: 0 0 0 2px rgba(44, 91, 189, 0.15);
}

.fb-modal.fb-modal-login .fb-form-login .fb-error {
  margin-top: 14px;
  margin-bottom: 0;
  text-align: center;
}

.fb-modal.fb-modal-login .fb-form-login .fb-modal-actions {
  margin-top: 18px;
  width: 100%;
}

.fb-modal.fb-modal-login .fb-modal-actions-login .fb-btn.fb-btn-primary {
  width: 100%;
  max-width: 100%;
  padding: 9px 22px;
  min-height: 42px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  background: #2c5bbd !important;
  border: 1px solid #2855a8;
  color: #fff;
}

.fb-modal.fb-modal-login .fb-modal-actions-login .fb-btn.fb-btn-primary:hover,
.fb-modal.fb-modal-login .fb-modal-actions-login .fb-btn.fb-btn-primary:focus {
  background: #244fa3 !important;
  border-color: #1f448c;
  color: #fff;
}

.fb-modal.fb-modal-login .fb-modal-actions-login .fb-btn.fb-btn-primary:active {
  background: #1f448c !important;
  border-color: #1a3d73;
  color: #fff;
}

.fb-modal-actions-center {
  justify-content: center !important;
  gap: 10px;
}
.fb-modal-actions-center .fb-btn {
  min-width: 88px;
}
.fb-modal-header {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 10px;
  padding: var(--fb-modal-header-padding-y) var(--fb-modal-header-padding-x)
    var(--fb-modal-header-padding-y)
    calc(var(--fb-modal-header-padding-x) + 4px);
  border-bottom: 1px solid rgba(152, 171, 202, 0.35);
  min-height: 0;
  height: auto;
  flex-shrink: 0;
  background: linear-gradient(180deg, #f8fafc 0%, #f4f7fb 100%);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.85);
}

.fb-modal-title {
  min-width: 0;
  flex: 1 1 auto;
  margin-left: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px 12px;
  padding-right: 4px;
}
.fb-modal-header h3 {
  display: block;
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: clamp(14px, 1.65vw, 17px);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: #1e2b45;
}

.fb-modal-close {
  border: 1px solid #a93226;
  font-size: 13px;
  line-height: 1;
  text-align: center;
  color: #fff !important;
  cursor: pointer;
  padding: 0;
  border-radius: 6px;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  align-self: center;
  background: #c0392b;
  box-shadow: none !important;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    color 0.15s ease;
}

.fb-modal-close:hover,
.fb-modal-close:focus {
  color: #fff !important;
  background: #922b21;
  border-color: #7b241c;
  outline: none;
  box-shadow: none !important;
}

.fb-modal-close:focus-visible {
  outline: 2px solid rgba(231, 76, 60, 0.45);
  outline-offset: 1px;
}
.fb-modal-body {
  padding: 14px 16px 16px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  background: linear-gradient(180deg, #fcfdff 0%, #fafbfc 100%);
}

.fb-modal-body:has(.fb-form[data-form="edit"]) {
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  padding: 12px 16px 8px;
}

.fb-form[data-form="edit"] {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  /* overflow:hidden 이면 CKEditor 높이 + 툴바가 패널을 넘길 때 하단 버튼 영역까지 잘림 */
  overflow-x: hidden;
  overflow-y: auto;
  height: auto;
}

/* 에디터 래퍼만 남은 세로 공간을 차지하고, 내부에서 높이를 조절 가능하게 함 */
.fb-form[data-form="edit"] .cke.cke_chrome {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.fb-form[data-form="edit"] .cke.cke_chrome > .cke_inner {
  flex: 1 1 auto;
  min-height: 0;
  display: flex !important;
  flex-direction: column;
}
.fb-form[data-form="edit"] .cke.cke_chrome .cke_contents {
  flex: 1 1 auto;
  min-height: 0 !important;
  overflow: hidden;
}

.fb-form[data-form="edit"] .fb-form-item-title,
.fb-form[data-form="edit"] .fb-form-item-meta {
  width: 98%;
  max-width: 100%;
  align-self: center;
  box-sizing: border-box;
  border: 1px solid #d8dde6;
  border-radius: 0px;
  padding: 5px 14px;
  background: linear-gradient(180deg, #fafbfd 0%, #f4f6f9 100%);
  box-shadow: 0 1px 3px rgba(44, 91, 189, 0.08);
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fb-form[data-form="edit"] .fb-form-item-title {
  margin-bottom: 12px;
}

.fb-form[data-form="edit"] .fb-form-item-meta {
  margin-bottom: 12px;
}

.fb-form[data-form="edit"] .fb-form-item-title:focus-within,
.fb-form[data-form="edit"] .fb-form-item-meta:focus-within {
  border-color: #98abca;
  box-shadow:
    0 1px 3px rgba(44, 91, 189, 0.1),
    0 0 0 2px rgba(74, 144, 215, 0.12);
}

.fb-form[data-form="edit"] .fb-form-item,
.fb-form[data-form="edit"] .fb-form-item-meta {
  flex-shrink: 0;
}

.fb-form[data-form="edit"] .fb-error {
  flex-shrink: 0;
}

.fb-form[data-form="edit"] .fb-modal-actions {
  flex-shrink: 0;
}

.fb-form[data-form="edit"] .fb-ckeditor-source {
  min-height: 0;
}

.fb-form[data-form="edit"] .cke {
  margin: 0 auto 4px;
}

.fb-modal-body:has(.fb-detail) {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.fb-detail {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}

.fb-detail .fb-detail-content {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  overflow-y: auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 16px 18px 18px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(152, 171, 202, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 8px rgba(45, 58, 74, 0.06);
  scrollbar-width: thin;
  scrollbar-color: rgba(44, 91, 189, 0.45) rgba(0, 0, 0, 0);
}

.fb-detail .fb-detail-content::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.fb-detail .fb-detail-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.0);
  border-radius: 999px;
}
.fb-detail .fb-detail-content::-webkit-scrollbar-thumb {
  background: rgba(44, 91, 189, 0.42);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.fb-detail .fb-detail-content::-webkit-scrollbar-thumb:hover {
  background: rgba(44, 91, 189, 0.62);
  border: 2px solid transparent;
  background-clip: padding-box;
}

.fb-detail > .fb-modal-actions {
  flex-shrink: 0;
}

/* 폼 */
.fb-form {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #555;
  height: 100%;
}
.fb-form-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.fb-form-item-title {
  flex-wrap: nowrap;
}

.fb-form-item-title .fb-form-label {
  flex: 0 0 auto;
  width: 4em;
  min-width: 4em;
  text-align: center;
}

.fb-form-item-title input[type="text"] {
  flex: 1;
  min-width: 0;
}

.fb-form-item-meta {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 20px;
}

.fb-form-field {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.fb-form-field input[type="text"] {
  flex: 1;
  min-width: 0;
}

/* 날짜는 브라우저 기본 폭 유지(늘리지 않음) */
.fb-form-field input[type="date"] {
  flex: 0 1 auto;
  width: auto;
  max-width: 100%;
}

/* 편집 폼: 작성자 칸은 남는 폭 사용, 날짜 칸은 예전처럼 콘텐츠 크기 */
.fb-form[data-form="edit"] .fb-form-item-meta .fb-form-field-author {
  flex: 1;
  min-width: 0;
}

.fb-form[data-form="edit"] .fb-form-item-meta .fb-form-field-date {
  flex: 0 0 auto;
  min-width: 0;
}

.fb-form[data-form="edit"] .fb-form-field-author input[type="text"] {
  flex: 1 1 auto;
  min-width: 16rem;
  max-width: 90%;
}

.fb-form-item-meta .fb-form-label {
  flex: 0 0 auto;
  width: 4em;
  min-width: 4em;
  text-align: center;
}

@media (max-width: 520px) {
  .fb-form-item-meta {
    flex-direction: column;
    gap: 14px;
  }

  .fb-form-field {
    width: 100%;
  }

  .fb-form[data-form="edit"] .fb-form-field-author input[type="text"] {
    min-width: 0;
  }
}

.fb-form-label {
  font-weight: 500;
  color: #555;
  font-size: 13px;
  text-align: center;
  line-height: 1.4;
}
.fb-form input[type="text"],
.fb-form input[type="email"],
.fb-form input[type="password"],
.fb-form input[type="date"] {
  display: block;
  max-width: 100%;
  padding: 2px 4px 2px 0;
  border: none;
  border-bottom: 1px solid #ccd5e5;
  border-radius: 0;
  font-size: 14px;
  font-family: inherit;
  color: #676767;
  background: #ffffff;
}

.fb-form input[type="date"] {
  text-align: center;
  color: #676767;
}

.fb-form input[type="text"]:focus,
.fb-form input[type="email"]:focus,
.fb-form input[type="password"]:focus,
.fb-form input[type="date"]:focus {
  border: none;
  border-bottom: 1px solid #4a90d7;
  outline: none;
}

/* 편집 모달: 카드 배경과 이어지도록 입력 영역 흰색 제거 */
.fb-form[data-form="edit"] input[type="text"],
.fb-form[data-form="edit"] input[type="date"] {
  background: transparent;
}

.fb-form[data-form="edit"] input[type="text"]:focus,
.fb-form[data-form="edit"] input[type="date"]:focus {
  background: transparent;
}

.fb-form[data-form="edit"] input:-webkit-autofill,
.fb-form[data-form="edit"] input:-webkit-autofill:hover,
.fb-form[data-form="edit"] input:-webkit-autofill:focus {
  -webkit-text-fill-color: #676767;
  caret-color: #676767;
  transition: background-color 99999s ease-out;
  box-shadow: 0 0 0 1000px #f0f2f6 inset;
}

.fb-form textarea:focus {
  border: 1px solid #4a90d7;
  outline: none;
}

.fb-edit-content-label {
  font-size: 13px;
  font-weight: 500;
  color: #555;
  margin-bottom: 8px;
}

.fb-ckeditor-source {
  min-height: 400px;
  width: 100%;
}
.fb-editor-status {
  color: #666;
  font-size: 13px;
  padding: 12px;
  margin-bottom: 10px;
  background: #f7f9fb;
  border: 1px solid #d8dde6;
  border-radius: 4px;
  text-align: center;
}
.fb-form .cke,
.fb-form .ck-editor {
  color: #222;
  margin-bottom: 14px;
}
.fb-form .cke_chrome {
  border-color: #ccd5e5;
}
.fb-form .cke_top {
  background: #f7f9fb;
  border-bottom-color: #d8dde6;
}
.fb-form .cke_contents {
  min-height: 360px;
}

.fb-form[data-form="edit"] .cke_contents {
  min-height: 0 !important;
}
.fb-form .ck-editor__editable {
  min-height: 360px;
  max-height: 58vh;
  overflow-y: auto;
  font-family: "맑은 고딕", "Malgun Gothic", "Noto Sans KR", sans-serif;
  font-size: 14px;
  line-height: 1.75;
}
.fb-form .ck-content table {
  border-collapse: collapse;
}
.fb-form .ck-content img {
  max-width: 100%;
  height: auto;
}
.cke_dialog_background_cover {
  z-index: 119990 !important;
}
.cke_dialog {
  z-index: 120010 !important;
}
.cke_panel,
.cke_combopanel {
  z-index: 120020 !important;
}
.fb-error {
  color: #c0392b;
  font-size: 13px;
  background: #fff5f4;
  padding: 9px 12px;
  border-left: 3px solid #c0392b;
  margin-bottom: 12px;
  border-radius: 2px;
}

.fb-modal-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.fb-modal .fb-modal-actions {
  gap: 10px;
  padding-top: 10px;
}

.fb-modal .fb-modal-actions .fb-btn {
  height: 30px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
  box-shadow: 0 1px 3px rgba(44, 91, 189, 0.14) !important;
  line-height: 1.2;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    color 0.15s ease;
}

.fb-modal .fb-modal-actions .fb-btn:focus-visible {
  outline: 2px solid rgba(74, 144, 215, 0.45);
  outline-offset: 2px;
}

.fb-modal .fb-modal-actions .fb-btn:not(.fb-btn-primary):not(.fb-btn-danger):not(.fb-btn-secondary):not(.fb-btn-danger-outline) {
  background: linear-gradient(180deg, #ffffff 0%, #f4f6f9 100%);
  color: #4a5568 !important;
  border-color: #d8dde6;
  box-shadow: 0 1px 2px rgba(44, 91, 189, 0.08) !important;
}

.fb-modal .fb-modal-actions .fb-btn:not(.fb-btn-primary):not(.fb-btn-danger):not(.fb-btn-secondary):not(.fb-btn-danger-outline):hover,
.fb-modal .fb-modal-actions .fb-btn:not(.fb-btn-primary):not(.fb-btn-danger):not(.fb-btn-secondary):not(.fb-btn-danger-outline):active {
  background: #fff;
  border-color: #98abca;
  color: #4a5568 !important;
  box-shadow: 0 1px 4px rgba(44, 91, 189, 0.15) !important;
}

.fb-modal .fb-modal-actions .fb-btn-primary {
  background: linear-gradient(180deg, #4a8ad8 0%, #2c5bbd 100%);
  border-color: #2855a8;
  color: #fff;
}

.fb-modal .fb-modal-actions .fb-btn-primary:hover {
  background: linear-gradient(180deg, #5b96df 0%, #244fa3 100%);
  border-color: #1f448c;
  color: #fff;
}

.fb-modal .fb-modal-actions .fb-btn-danger {
  background: linear-gradient(180deg, #d14e42 0%, #c0392b 100%);
  border-color: #a93226;
  color: #fff;
}

.fb-modal .fb-modal-actions .fb-btn-danger:hover {
  background: linear-gradient(180deg, #dc5a4e 0%, #ad3228 100%);
  border-color: #922b22;
  color: #fff;
}

.fb-modal .fb-modal-actions .fb-btn-secondary {
  background: #fff !important;
  color: #305794 !important;
  border-color: #98abca !important;
  box-shadow: 0 1px 4px rgba(45, 58, 74, 0.08) !important;
}

.fb-modal .fb-modal-actions .fb-btn-secondary:hover,
.fb-modal .fb-modal-actions .fb-btn-secondary:active {
  background: #eef3fb !important;
  color: #244068 !important;
  border-color: #7d98c9 !important;
  box-shadow: 0 2px 8px rgba(44, 91, 189, 0.12) !important;
}

.fb-modal .fb-modal-actions .fb-btn-danger-outline {
  background: #fff !important;
  color: #a93226 !important;
  border-color: #d8a099 !important;
  box-shadow: 0 1px 3px rgba(192, 57, 43, 0.1) !important;
}

.fb-modal .fb-modal-actions .fb-btn-danger-outline:hover,
.fb-modal .fb-modal-actions .fb-btn-danger-outline:active {
  background: #fef5f5 !important;
  color: #922b21 !important;
  border-color: #c0392b !important;
}

.fb-modal .fb-modal-actions--detail {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 8px 0 2px;
  margin-top: 4px;
  border-top: 1px solid rgba(152, 171, 202, 0.28);
}

.fb-detail-actions-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-auto-rows: min-content;
  align-items: stretch;
  column-gap: 10px;
  row-gap: 0;
  width: 100%;
  padding: 0;
  margin: 0;
}

.fb-detail-actions-nav__cell {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 0;
}

.fb-detail-actions-nav__cell--start {
  justify-content: flex-start;
  justify-self: start;
}

.fb-detail-actions-nav__cell--center {
  justify-content: center;
  justify-self: center;
}

.fb-detail-actions-nav__cell--end {
  justify-content: flex-end;
  justify-self: end;
}

.fb-detail-nav-btn {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  max-width: min(100%, 340px);
  margin: 0;
  padding: 4px 10px;
  border: 1px solid rgba(152, 171, 202, 0.55);
  border-radius: 6px;
  background: #fafbfd;
  color: #2d3a4a;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}
.fb-detail-actions-nav__cell--start .fb-detail-nav-btn {
  justify-content: flex-start;
}
.fb-detail-actions-nav__cell--end .fb-detail-nav-btn {
  justify-content: flex-start;
}

.fb-detail-nav-btn:hover:not(.fb-detail-nav-btn--disabled) {
  border-color: #7d98c9;
  background: #fff;
  color: #2c5bbd;
}
.fb-detail-nav-btn:focus-visible {
  outline: 2px solid rgba(44, 91, 189, 0.45);
  outline-offset: 2px;
}
.fb-detail-nav-btn--disabled {
  cursor: default;
  opacity: 0.55;
  border-style: dashed;
}
.fb-detail-nav-btn__meta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  color: #46608f;
  white-space: nowrap;
}
.fb-detail-nav-btn__arrow {
  font-size: 0.95em;
  opacity: 0.92;
}
.fb-detail-nav-btn__label {
  letter-spacing: 0.03em;
  text-transform: none;
}
.fb-detail-nav-btn__title {
  flex: 1 1 auto;
  min-width: 0;
  margin-top: 0;
  font-size: 12px;
  font-weight: 500;
  color: #394a62;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fb-modal .fb-modal-actions--detail .fb-detail-actions-nav__cell--center .fb-btn.fb-btn-secondary {
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  min-height: 0;
  border-radius: 6px;
}

.fb-detail-actions-admin {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px dashed rgba(152, 171, 202, 0.35);
}

.fb-modal .fb-modal-actions--detail .fb-detail-actions-admin .fb-btn {
  padding: 5px 14px;
  font-size: 12px;
  line-height: 1.25;
  min-height: 0;
  border-radius: 6px;
}

@media (max-width: 560px) {
  .fb-detail-actions-nav {
    grid-template-columns: 1fr;
    justify-items: stretch;
    row-gap: 6px;
    column-gap: 0;
    grid-auto-rows: min-content;
  }
  .fb-detail-actions-nav__cell {
    width: 100%;
  }
  .fb-detail-actions-nav__cell--center {
    justify-self: center;
    width: auto;
  }
  .fb-detail-actions-nav__cell .fb-detail-nav-btn {
    width: 100%;
    max-width: none;
    justify-content: flex-start;
    flex-wrap: nowrap;
    text-align: left;
  }
  .fb-detail-actions-nav__cell .fb-detail-nav-btn__title {
    text-align: left;
  }
  .fb-detail-actions-admin {
    justify-content: center;
  }
}

.fb-modal .fb-modal-actions__lead,
.fb-modal .fb-modal-actions__trail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.fb-modal .fb-modal-actions--edit {
  justify-content: space-between;
  gap: 10px;
  padding: 0px;
  margin-top: 0px;
  border-top: 1px solid rgba(152, 171, 202, 0.28);
  position: sticky;
  bottom: 0;
  z-index: 2;
}

.fb-detail-meta {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  flex: 0 0 auto;
  gap: 5px;
  align-items: center;
  margin: 0;
  width: auto;
}

.fb-detail-meta__chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.25;
  color: #305794 !important;
  background: rgba(247, 249, 251, 0.95);
  border: 1px solid rgba(152, 171, 202, 0.45);
  border-radius: 999px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.fb-detail-meta__chip strong {
  font-weight: 700;
  color: #243d6b;
  font-size: inherit;
}

.fb-detail-content {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  font-family:
    "맑은 고딕", "Malgun Gothic", "Noto Sans KR", "Apple SD Gothic Neo",
    sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: #333;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.fb-detail-content p {
  margin: 0 0 10px;
}
.fb-detail-content img,
.fb-detail-content video,
.fb-detail-content iframe,
.fb-detail-content svg {
  max-width: 100%;
  height: auto;
}
.fb-detail-content pre {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: hidden;
  max-width: 100%;
}

/* Word VML 도형(직인 박스·선 등): 브라우저에서 깨지며 가로 스크롤만 유발 → 숨김 */
.fb-detail-content [o\:gfxdata],
.fb-detail-content v\:rect,
.fb-detail-content v\:line,
.fb-detail-content v\:shape,
.fb-detail-content v\:roundrect,
.fb-detail-content v\:textbox {
  display: none !important;
}

.fb-detail-content table {
  box-sizing: border-box;
  border-collapse: collapse;
  border: 1px solid #d0d0d0;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
  margin: 14px 0 20px;
  table-layout: fixed;
}

.fb-detail-content table td,
.fb-detail-content table th {
  box-sizing: border-box;
  border: 1px solid #d0d0d0;
  padding: 10px 14px;
  vertical-align: top;
  font-size: inherit;
  line-height: 1.55;
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal !important;
  min-width: 0;
  /* fixed 테이블에서 열이 컨테이너 안에 남도록 폭을 분배하고 긴 텍스트는 줄바꿈 */
  max-width: 0;
}

.fb-detail-content col {
  width: auto !important;
}

.fb-detail-content table th {
  background: #e9e9e9;
  font-weight: 700;
  text-align: center;
  color: #222;
}
.fb-detail-content table:not(:has(th)) tr:first-child > td {
  background: #e9e9e9;
  font-weight: 700;
  text-align: center;
  color: #222;
}
.fb-detail-content table[border]:not([border="0"]) td,
.fb-detail-content table[border]:not([border="0"]) th {
  border: 1px solid #d0d0d0;
}

.fb-detail-content h1,
.fb-detail-content h2 {
  font-size: 19px;
  font-weight: 700;
  margin: 18px 0 10px;
  color: #111;
}
.fb-detail-content h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 16px 0 8px;
  color: #111;
}
.fb-detail-content h4,
.fb-detail-content h5,
.fb-detail-content h6 {
  font-size: 15px;
  font-weight: 700;
  margin: 14px 0 6px;
  color: #111;
}

/* Word 자동 생성 클래스 */
.fb-detail-content .MsoNormal,
.fb-detail-content .MsoBodyText {
  margin: 0 0 8px;
}
.fb-detail-content .WordSection1,
.fb-detail-content .WordSection2 {
  display: block;
}
.fb-detail-content b,
.fb-detail-content strong {
  font-weight: 700;
}

.fb-detail-content:not(:has(p)):not(:has(div)) {
  white-space: pre-wrap;
}

.fb-loading {
  text-align: center;
  padding: 40px;
  color: #999;
}

@media (max-width: 768px) {
  .fb-board-table col.fb-board-col-author,
  .fb-board-table col.fb-board-col-date,
  .fb-board-table col.fb-board-col-view {
    width: 0;
    min-width: 0;
  }
  .fb-board-table .fb-col-date,
  .fb-board-table .fb-col-view,
  .fb-board-table .fb-col-author {
    display: none;
  }
  .fb-board-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .fb-search {
    max-width: none;
  }
  .fb-admin-actions {
    margin-left: 0;
    flex-direction: column;
    width: 100%;
  }
  .fb-pagination-batch {
    position: static;
    transform: none;
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 12px;
    z-index: auto;
  }
  .fb-modal:not(.fb-modal-expanded) {
    width: 80%;
    max-width: min(80vw, 1100px);
    max-height: 92vh;
  }
}

.fb-modal.fb-modal-expanded:has(.ck-editor),
.fb-modal.fb-modal-expanded:has(.cke) {
  width: calc(100vw - 32px) !important;
  max-width: none !important;
}

.fb-modal:has(.ck-editor) {
  width: min(80vw, 1180px);
  max-width: none;
}

/* 메인 팝업 공지 전용 스타일은 styles/home-popup.css (index.js에서 로드) */
