/**
 * KSCG site-wide responsive overrides
 * - PHP pages (common/mypage/admin)
 * - Wix-exported partials (min-width:980 강제 해제)
 */

/* general-5: 논문 리스트 아래 빈 Wix 섹션(min-height 419/500) 제거 */
#goap5 #comp-mkewbag9,
#goap5 #comp-mkewkei4 {
  display: none !important;
  min-height: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}
#goap5 [data-mesh-id="comp-mkewbag9inlineContent"],
#goap5 [data-mesh-id="comp-mkewkei4inlineContent"] {
  min-height: 0 !important;
  height: 0 !important;
}
#goap5 [data-mesh-id="Containergoap5inlineContent-gridContainer"] {
  grid-template-rows: repeat(2, min-content) !important;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}
img, video, iframe, embed, object, svg {
  max-width: 100%;
  height: auto;
}
table {
  max-width: 100%;
}
.tbl_scroll,
.tbl_basic_wrap,
.journal_listbox,
.tbl_eval_wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/*
 * Wix 서브페이지 히어로 배너: 높이 약 30% 축소 (≈360→252)
 * 홈(/) 히어로(#comp-lxak3ob0)는 제외 — :has(.bgImage)는 중첩 컬럼에 오탐됨.
 */
:is(
  #comp-lxe8k78t, /* greetings */
  #comp-lxfgi1e1, /* contact */
  #comp-lxf8b4xw, /* kjci */
  #comp-lxf8r4z9, /* about-the-journal */
  #comp-lxff717h, /* submission-information */
  #comp-lxf93ef7, /* thesis-submission-1 */
  #comp-lxf8ykx8, /* associate-editors */
  #comp-lxf904q2  /* member-service */
) {
  height: 252px !important;
  min-height: 0 !important;
  max-height: 252px !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}
:is(
  #comp-lxe8k78t, #comp-lxfgi1e1, #comp-lxf8b4xw, #comp-lxf8r4z9,
  #comp-lxff717h, #comp-lxf93ef7, #comp-lxf8ykx8, #comp-lxf904q2
) [data-hook="bgLayers"] {
  height: 100% !important;
}
:is(
  #comp-lxe8k78t, #comp-lxfgi1e1, #comp-lxf8b4xw, #comp-lxf8r4z9,
  #comp-lxff717h, #comp-lxf93ef7, #comp-lxf8ykx8, #comp-lxf904q2
) :is(.bgImage, .bgImage img) {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}
:is(
  #comp-lxe8k78t, #comp-lxfgi1e1, #comp-lxf8b4xw, #comp-lxf8r4z9,
  #comp-lxff717h, #comp-lxf93ef7, #comp-lxf8ykx8, #comp-lxf904q2
) [data-mesh-id$="gridContainer"] > :is([id^="comp-"], interact-element > [id^="comp-"]) {
  margin-top: 0 !important;
  margin-bottom: 10px !important;
}
:is(
  #comp-lxe8k78t, #comp-lxfgi1e1, #comp-lxf8b4xw, #comp-lxf8r4z9,
  #comp-lxff717h, #comp-lxf93ef7, #comp-lxf8ykx8, #comp-lxf904q2
) [data-mesh-id$="gridContainer"] > :is([id^="comp-"]:first-child, interact-element:first-child > [id^="comp-"]) {
  margin-top: 56px !important;
}
:is(
  #comp-lxe8k78t, #comp-lxfgi1e1, #comp-lxf8b4xw, #comp-lxf8r4z9,
  #comp-lxff717h, #comp-lxf93ef7, #comp-lxf8ykx8, #comp-lxf904q2
) [data-mesh-id$="gridContainer"] > :is([id^="comp-"]:last-child, interact-element:last-child > [id^="comp-"]) {
  margin-bottom: 18px !important;
}

/* 홈(/) 히어로 타이틀: 줄바꿈·크기 조절로 잘림 방지 */
#comp-lxak3ob0 {
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
}
#comp-lxak3oc26,
#comp-lxak3oc26 .wixui-rich-text__text,
#comp-lxak3oc26 h1,
#comp-lxak3oc26 [class*="font_"] {
  font-size: clamp(28px, 4.2vw, 48px) !important;
  line-height: 1.2 !important;
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
  white-space: normal !important;
  word-break: keep-all !important;
}
#comp-lxak3oc34,
#comp-lxak3oc34 .wixui-rich-text__text {
  font-size: clamp(16px, 2vw, 29px) !important;
  line-height: 1.4 !important;
  overflow: visible !important;
}

/* 홈 NOTICE 리스트 카드: 아웃라인 라운딩 8px + 카드 폰트 한 단계 축소 */
#comp-lxe30k8z .gallery-item-container,
#comp-lxe30k8z .item-container-regular,
#comp-lxe30k8z .gallery-item-wrapper,
#comp-lxe30k8z .post-list-item,
#comp-lxe30k8z .blog-post-post-list-post-container {
  border-radius: 8px !important;
  overflow: hidden !important;
}
#comp-lxe30k8z .post-list-item,
#comp-lxe30k8z .blog-post-post-list-post-container {
  border: 1px solid rgba(203, 203, 203, 0.75) !important;
  box-sizing: border-box !important;
}
#comp-lxe30k8z [data-hook="post-list-item__title"],
#comp-lxe30k8z .blog-post-title-font,
#comp-lxe30k8z .post-title,
#comp-lxe30k8z .post-title h2,
#comp-lxe30k8z .bD0vt9 {
  font-size: 22px !important; /* was 26px */
  line-height: 1.3 !important;
}
#comp-lxe30k8z .post-list-item-wrapper,
#comp-lxe30k8z .iSTCpN,
#comp-lxe30k8z .uYL9xS,
#comp-lxe30k8z .JMCi2v,
#comp-lxe30k8z .O16KGI {
  font-size: 13px !important; /* was 14px */
}

/*
 * Rich HTML in board/symposium bodies often pastes Bootstrap-like .container/.row/.col-*
 * Site shell uses .container { padding-top:153px; background:#D0D0D0 } — nested copies
 * inherit that and look “broken” (gray bands, 960px overflow, fixed card heights).
 */
.contents .container,
.tbl_basic .container,
.tbl_basic td .container,
.mtt .container {
  width: auto !important;
  max-width: 100% !important;
  padding-top: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
}
.contents .row,
.tbl_basic .row,
.tbl_basic td .row,
.mtt .row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 100%;
  box-sizing: border-box;
  align-items: stretch;
}
.contents [class*="col-"],
.tbl_basic [class*="col-"],
.tbl_basic td [class*="col-"],
.mtt [class*="col-"] {
  width: auto !important;
  max-width: 100% !important;
  flex: 1 1 220px;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-top: 0 !important;
  box-sizing: border-box;
}
.contents .topic-card,
.tbl_basic .topic-card,
.mtt .topic-card {
  height: auto !important;
  max-width: 100%;
  box-sizing: border-box;
}
.tbl_basic.mtbl.view,
.tbl_basic.mtbl.view table {
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* ---------- ≤1040px: 공통 PHP 레이아웃 ---------- */
@media (max-width: 1040px) {
  .inner {
    max-width: 100% !important;
    width: auto !important;
    margin-left: 3% !important;
    margin-right: 3% !important;
    box-sizing: border-box;
  }
  .contents {
    width: auto !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
  .container {
    width: 100% !important;
    max-width: 100% !important;
  }
  .tbl_basic {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  input[type=text],
  input[type=search],
  input[type=password],
  input[type=email],
  textarea,
  select {
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* ---------- ≤767px: 모바일 공통 PHP ---------- */
@media (max-width: 767px) {
  body {
    font-size: 14px;
  }
  .wrap {
    width: 100% !important;
    min-width: 0 !important;
    overflow-x: clip;
  }
  .fl_l, .fl_r {
    float: none !important;
    width: 100% !important;
  }
  .btnbox,
  .tbl_btnbox {
    text-align: center;
  }
  .btnbox .btn,
  .tbl_btnbox .btn {
    margin: 4px 2px;
  }
  .mypage,
  .mycont,
  .mycont_box {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
  .sidebar {
    position: static !important;
  }
  .tbl_basic th,
  .tbl_basic td {
    word-break: break-word;
  }
  .statusbox > div {
    min-width: 0 !important;
  }
  .mem_inpbox_inner {
    width: 100% !important;
    max-width: 100% !important;
  }
  .completebox > div.completebox_inner {
    padding-left: 4% !important;
    padding-right: 4% !important;
  }

  /* 가입/수정 폼 테이블: th·td 세로 스택, 입력 100% */
  .tbl_basic:not(.mtbl) table,
  .tbl_basic:not(.mtbl) tbody,
  .tbl_basic:not(.mtbl) tr {
    display: block !important;
    width: 100% !important;
  }
  .tbl_basic:not(.mtbl) th,
  .tbl_basic:not(.mtbl) td {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .tbl_basic:not(.mtbl) th {
    padding: 12px 12px 4px !important;
    border-bottom: 0 !important;
  }
  .tbl_basic:not(.mtbl) td {
    padding: 4px 12px 14px !important;
  }
  .tbl_basic:not(.mtbl) colgroup {
    display: none !important;
  }
  .tbl_basic td .inp_txt,
  .tbl_basic td .select1,
  .tbl_basic td input[type="text"],
  .tbl_basic td input[type="password"],
  .tbl_basic td input[type="email"],
  .tbl_basic td select,
  .tbl_basic td .upload-name,
  .tbl_basic td .filebox {
    width: 100% !important;
    max-width: 100% !important;
    margin: 4px 0 !important;
    box-sizing: border-box !important;
  }
  .tbl_basic .authBox {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    width: 100% !important;
    align-items: center !important;
  }
  .tbl_basic .authBox .inp_txt {
    flex: 1 1 120px !important;
    width: auto !important;
    min-width: 0 !important;
  }
  .tbl_basic .authBox .tbl_btn,
  .tbl_basic .authBtnBox1,
  .tbl_basic .authBtnBox2 {
    flex: 0 0 auto !important;
  }
  .tbl_basic td .fz_s {
    display: block !important;
    margin-top: 4px !important;
  }
}

/* ---------- Wix partial: ≤980px 가로 스크롤 제거 ---------- */
@media (max-width: 980px) {
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  #SITE_CONTAINER,
  #main_MF,
  #masterPage,
  #PAGES_CONTAINER,
  #SITE_PAGES,
  #SITE_PAGES_TRANSITION_GROUP,
  #BACKGROUND_GROUP,
  #BACKGROUND_GROUP_TRANSITION_GROUP,
  #pageBackground_eyggn,
  [id^="pageBackground_"],
  main.PAGES_CONTAINER,
  .site-root,
  .mesh-layout,
  .main_MF,
  .pTvOx2,
  .H2MmBb,
  .CmHRsG {
    min-width: 0 !important;
    max-width: 100vw !important;
    width: 100% !important;
    left: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow-x: hidden !important;
  }

  /* Wix 섹션 — 980 고정폭 강제 해제 */
  section[data-block-level-container],
  .wixui-section,
  .wixui-column-strip,
  .CeUMmm,
  .Le88gL,
  [id^="comp-"] {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  /* mesh 그리드: calc((100% - 980px)*0.5) 마진 무력화 */
  [data-mesh-id$="gridContainer"],
  [data-mesh-id$="inlineContent"] {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    box-sizing: border-box !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }
  [data-mesh-id$="gridContainer"] > *,
  [data-mesh-id$="gridContainer"] > interact-element,
  [data-mesh-id$="gridContainer"] > interact-element > * {
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: 0 !important;
    right: auto !important;
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    justify-self: stretch !important;
    box-sizing: border-box !important;
  }

  /* 컬럼 스트립: 세로 스택 */
  .wixui-column-strip [data-testid="columns"],
  .Ak0vpt {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
  }
  .wixui-column-strip__column,
  .FDI5TK {
    width: 100% !important;
    max-width: 100% !important;
    --column-width: 100% !important;
    --column-flex: 1 !important;
  }

  .wixui-rich-text,
  .wixui-rich-text__text,
  .wixui-button,
  a[data-testid="linkElement"] {
    max-width: 100% !important;
    box-sizing: border-box;
  }

  h1.wixui-rich-text__text,
  h2.wixui-rich-text__text {
    font-size: clamp(22px, 7vw, 40px) !important;
    line-height: 1.25 !important;
    word-break: keep-all;
  }

  .pro-gallery,
  .pro-gallery-parent-container,
  [id^="pro-gallery-container-"],
  [id^="pro-gallery-margin-container-"] {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }
  /* NOTICE/블로그 갤러리: 절대좌표 다열 → 1열 스택, 카드 간격 1rem
     (자식 margin은 wrapper로 collapse 되어 0처럼 보임 → gap 사용) */
  .pro-gallery .pro-gallery-margin-container,
  [id^="pro-gallery-margin-container-"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    height: auto !important;
    min-height: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .pro-gallery .item-link-wrapper {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
  }
  .pro-gallery .gallery-item-container,
  .pro-gallery .item-container-regular {
    position: relative !important;
    left: 0 !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    transform: none !important;
    margin: 0 !important;
    display: block !important;
  }
  .pro-gallery .gallery-item-wrapper,
  .pro-gallery .gallery-item-content,
  .pro-gallery .gallery-item-common-info-outer {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
  }
  .pro-gallery .gallery-item-hover,
  .pro-gallery .item-hover-flex-container {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
  }

  /* 헤더: 로고·메뉴 겹침 완화 */
  #SITE_HEADER,
  #SITE_HEADER [data-mesh-id$="gridContainer"] {
    width: 100% !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    overflow: visible !important;
  }
  #SITE_HEADER .wixui-image,
  #SITE_HEADER .wixui-image img {
    max-width: min(200px, 55vw) !important;
    height: auto !important;
  }
  #SITE_HEADER .wixui-dropdown-menu,
  #SITE_HEADER [data-testid="inlineContent"] {
    max-width: 100% !important;
  }

  /* 홈 하단 연락처 카드: Wix가 동일 grid-area + left 오프셋으로 3열 배치
     → left:0 만 하면 전부 한 칸에 겹침. flex 세로 스택으로 재배치 */
  #comp-lxe3fbey,
  #comp-lxe3fbfu,
  #comp-lxe3fbfu [data-mesh-id="comp-lxe3fbfuinlineContent"],
  #comp-lxe3fbey [data-mesh-id="comp-lxe3fbeyinlineContent"] {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
  }
  #comp-lxe3fbfu {
    margin: 24px auto !important;
    left: 0 !important;
    box-sizing: border-box !important;
  }
  #comp-lxe3fbfu [data-mesh-id="comp-lxe3fbfuinlineContent-gridContainer"] {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
    padding: 28px 20px !important;
    height: auto !important;
    min-height: 0 !important;
    grid-template-rows: none !important;
    grid-template-columns: none !important;
  }
  #comp-lxe3fbfu [data-mesh-id="comp-lxe3fbfuinlineContent-gridContainer"] > [id^="comp-"],
  #comp-lxe3fbfu [data-mesh-id="comp-lxe3fbfuinlineContent-gridContainer"] > interact-element,
  #comp-lxe3fbfu [data-mesh-id="comp-lxe3fbfuinlineContent-gridContainer"] > interact-element > [id^="comp-"] {
    position: relative !important;
    left: 0 !important;
    top: auto !important;
    right: auto !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    grid-area: auto !important;
    justify-self: stretch !important;
    align-self: stretch !important;
    --min-height: 0 !important;
  }
  /* 섹션 간 간격: 제목(논문지/위치/Email) 앞쪽만 여백 */
  #comp-lxe3fbfw4,
  #comp-lxe3fbfx6 {
    margin-top: 18px !important;
  }
  #comp-lxe3fbfu .wixui-rich-text,
  #comp-lxe3fbfu .wixui-rich-text__text {
    text-align: center !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  #comp-lxe3fbfu h2.wixui-rich-text__text {
    font-size: 16px !important;
    font-weight: 700 !important;
    margin: 0 !important;
  }
  #comp-lxe3fbfu p.wixui-rich-text__text {
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin: 0 !important;
  }

  /* 사이트 팝업 모달 */
  .openPopupLayer.kscg-popup-shell {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    height: min(78vh, 640px, calc(100vh - 24px)) !important;
    max-height: calc(100vh - 24px) !important;
    min-height: 0 !important;
    background: #0f172a !important;
    background-color: #0f172a !important;
    opacity: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }
  .openPopupLayer.kscg-popup-shell .kscg-popup-head {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #eef2f6 !important;
    background-color: #eef2f6 !important;
  }
  .openPopupLayer.kscg-popup-shell .kscg-popup-body {
    background: #fff !important;
    background-color: #fff !important;
    flex: 1 1 auto !important;
    overflow: auto !important;
    min-height: 0 !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }
  .openPopupLayer.kscg-popup-shell .kscg-popup-body::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }
  .openPopupLayer.kscg-popup-shell.is-moved {
    /* 드래그 후 left/top은 인라인 important 유지 */
    transform: none !important;
  }
}

/* ---------- ≤767px: Wix 헤더·메뉴 ---------- */
@media (max-width: 767px) {
  #SITE_HEADER [data-mesh-id="SITE_HEADERinlineContent-gridContainer"] {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    grid-template-rows: auto auto !important;
    align-items: center !important;
    column-gap: 8px !important;
    row-gap: 8px !important;
    padding: 8px 12px 0 !important;
  }
  #SITE_HEADER #comp-k7zl4fb1 {
    grid-column: 1 !important;
    grid-row: 1 !important;
    max-width: 58vw !important;
    width: auto !important;
    margin: 0 !important;
  }
  #SITE_HEADER #comp-k2a07x5t,
  #SITE_HEADER a[href*="login"],
  #SITE_HEADER a[href*="mypage"] {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: auto !important;
    max-width: 110px !important;
    margin: 0 !important;
    justify-self: end !important;
    z-index: 3;
    position: relative;
  }
  #SITE_HEADER #comp-k2a07x5t .wixui-button__label,
  #SITE_HEADER #comp-k2a07x5t .p2iqNU {
    font-size: 13px !important;
    white-space: nowrap;
  }
  #SITE_HEADER #comp-k7zjcsln {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    margin: 0 !important;
  }
  #SITE_HEADER [data-mesh-id="comp-k2a0cec0-rotated-wrapper"],
  #SITE_HEADER #comp-k2a0cec0 {
    display: none !important;
  }
  #SITE_HEADER #DrpDwnMn0-5s3itemsContainer {
    display: flex !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  #SITE_HEADER #DrpDwnMn0-5s3itemsContainer > li.wixui-dropdown-menu__item {
    flex: 1 1 50% !important;
    min-width: 0 !important;
    max-width: 50% !important;
    box-sizing: border-box !important;
  }
  #SITE_HEADER #DrpDwnMn0-5s3itemsContainer > li.wixui-dropdown-menu__item .VhM8Ji,
  #SITE_HEADER #DrpDwnMn0-5s3itemsContainer > li.wixui-dropdown-menu__item a {
    font-size: 12px !important;
    padding: 8px 6px !important;
    white-space: normal !important;
    line-height: 1.3 !important;
  }
}

/* ---------- Admin ---------- */
@media (max-width: 1280px) {
  /* admin/css/common.css .wrap { min-width:1280px } 해제 */
  .wrap {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: clip;
  }
}

@media (max-width: 1040px) {
  .wrap .container {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .wrap .sidebar {
    position: static !important;
    float: none !important;
    left: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box;
  }
  .wrap .contents,
  .wrap .cont {
    float: none !important;
    left: auto !important;
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px !important;
    box-sizing: border-box;
  }
  .wrap .header {
    width: 100% !important;
  }
  .wrap .header .logo {
    width: min(200px, 55vw) !important;
    background-size: contain !important;
  }
  .wrap .tbl_basic,
  .wrap .tbl_basic_wrap,
  .wrap .board_list,
  .wrap .basic_table2,
  .wrap .basic_table {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  .wrap table {
    min-width: 720px;
  }
  /* 상세(view) 본문은 가로 스크롤 강제하지 않음 */
  .wrap .tbl_basic.mtbl.view,
  .wrap .tbl_basic.mtbl.view table {
    min-width: 0 !important;
  }
}

@media (max-width: 767px) {
  .contents [class*="col-"],
  .tbl_basic [class*="col-"],
  .mtt [class*="col-"] {
    flex: 1 1 100%;
  }
  .tbl_basic.view.mtbl tbody td.mtt {
    margin-left: 0 !important;
    overflow: visible !important;
  }
  .tbl_basic.view.mtbl tbody tr {
    overflow: visible !important;
  }
  .wrap .sidebar .gnb > li > a {
    font-size: 14px;
  }
  .wrap .top_infobox {
    flex-wrap: wrap;
  }
  .wrap .searchbox,
  .wrap .tbl_searchbox {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .wrap .searchbox select,
  .wrap .searchbox input,
  .wrap .tbl_searchbox select,
  .wrap .tbl_searchbox input {
    max-width: 100%;
    box-sizing: border-box;
  }
  .loginbox,
  .login_wrap,
  .login_area,
  .login {
    width: auto !important;
    max-width: 100% !important;
    margin: 20px 12px !important;
    box-sizing: border-box;
  }
  /* 관리자 로그인 폼 */
  .login_form,
  .loginbox form,
  .login input[type=text],
  .login input[type=password] {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
}
