* {
  font-family: 'pretendard';
}

html {
  font-size: 16px;
}

body {
  background: var(--bs-gray-100);
  color: var(--bs-body-color);
  overflow: hidden;
}

.wrap {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: stretch;
}


/********** max-width **********/
.max-width-xs {
  max-width: 360px;
}
.max-width-sm {
  max-width: 576px;
}
.max-width-md {
  max-width: 768px;
}
.max-width-lg {
  max-width: 992px;
}
.max-width-xl {
  max-width: 1200px;
}
.max-width-480 {
  max-width: 480px;
}
.max-width-800 {
  max-width: 800px;
}
.max-width-1080 {
  max-width: 1080px;
}
.max-width-1400 {
  max-width: 1400px;
}


/********** Padding **********/
.p-10 {
  padding: 10px !important;
}
.pt-10 {
  padding-top: 10px !important;
}
.pb-10 {
  padding-bottom: 10px !important;
}
.ps-10 {
  padding-left: 10px !important;
}
.pe-10 {
  padding-right: 10px !important;
}

.p-12 {
  padding: 12px !important;
}
.pt-12 {
  padding-top: 12px !important;
}
.pb-12 {
  padding-bottom: 12px !important;
}
.ps-12 {
  padding-left: 12px !important;
}
.pe-12 {
  padding-right: 12px !important;
}


/********** Typography **********/
/* font-size */
.h1, .h2, .h3, .h4, .h5, .h6,
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  padding: 0;
  font-weight: 600;
  line-height: 1.2;
}

.h1, h1 {
  font-size: 30px;
}
.h2, h2 {
  font-size: 28px;
}
.h3, h3 {
  font-size: 24px;
}
.h4, h4 {
  font-size: 20px;
}
.h5, h5 {
  font-size: 18px;
}
.h6, h6 {
  font-size: 16px;
}

p, span, a,
table, .table
dl, dt, dd,
ul, ol, li {
  font-size: 16px;
}

.caption {
  display: inline-block;
  color: var(--bs-medium-emphasis-color);
  font-weight: normal;
  font-size: 14px;
}

/* color */

.text-yellow {
  --bs-text-opacity: 1;
  color: rgba(var(--bs-yellow-rgb), var(--bs-text-opacity)) !important;
}
.text-emphasis {
  --bs-text-opacity: 1;
  color: rgba(var(--bs-emphasis-color-rgb), var(--bs-text-opacity)) !important;
}
.text-link {
  color: var(--bs-blue) !important;
}


/********** image **********/
.img_wrap {
  display: block;
  width: 100%;
  height: 100%;
}
.img_wrap > img {
  display: block;
  width: 100%;
}


/********** footer **********/
.footer {
  padding: 16px;
  background-color: var(--bs-gray-200);
  border-top: 1px solid var(--bs-border-color);
}
.footer p {
  font-size: 14px;
}


/********** sidebar **********/
.sidebar {
  height: 100%;
  min-width: 240px;
  max-width: 240px;
  transition: margin-left .35s ease-in-out, left .35s ease-in-out, margin-right .35s ease-in-out, right .35s ease-in-out;
  direction: ltr;
  background: var(--bs-body-bg);
  color: var(--bs-emphasis-color);
  overflow-y: auto;
}

/* scrollbar */
/* 스크롤바 전체 기본 꾸미기 */
.sidebar::-webkit-scrollbar {
  width: 6px;  /* 세로축 스크롤바 폭 너비 */
}
/* 스크롤바 막대 꾸미기 */
.sidebar::-webkit-scrollbar-thumb {
  background: rgba(var(--bs-sidebar-color-rgb), 0.35); /* 스크롤바 막대 색상 */
  border: 0; /* 스크롤바 막대 테두리 설정  */
  border-radius: 12px 12px 12px 12px;
}
.sidebar:hover::-webkit-scrollbar-thumb {
  background: rgba(var(--bs-sidebar-color-rgb), 0.35); /* 스크롤바 막대 호버색상 */
}
/* 스크롤바 트랙 꾸미기 */
.sidebar::-webkit-scrollbar-track {
  background: transparent; /* 스크롤바 뒷 배경 색상 */
  padding: 1px;
}

.sidebar.open {
  margin-left: -240px;
}

.sidebar-brand {
  width: 100%;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
}
.sidebar-brand img {
  display: block;
  max-width: 200px;
  max-height: 36px;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}
.sidebar-header {
  background: transparent;
  padding: 24px 24px 6px;
  font-weight: 600;
  font-size: 14px;
}

.sidebar-link,
a.sidebar-link {
  position: relative;
  display: block;
  padding: 12px 26px;
  font-weight: 500;
  font-size: 16px;
  color: var(--bs-body-color);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s, background 0.3s;
}
.sidebar-link:hover,
a.sidebar-link:hover {
  color: var(--bs-main);
  background: var(--bs-gray-100);
}

.sidebar-link.active {
  background: var(--bs-gray-100);
  color: var(--bs-main);
  font-weight: 600;
  opacity: 1;
}

.sidebar-link:after,
a.sidebar-link:after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: var(--bs-main);
  opacity: 0;
  transition: opacity 0.3s;
}
.sidebar-link:hover:after,
a.sidebar-link:hover:after {
  opacity: 1;
}
.sidebar-link.active:after,
a.sidebar-link.active:after {
  opacity: 1;
}


.sidebar-link > .icon-wrap,
a.sidebar-link > .icon-wrap {
  width: 18px;
  height: 18px;
  display: inline-flex;
  justify-content: center;
  align-items: baseline;
  margin-right: 12px;
  font-size: 14px;
}
.sidebar-dropdown .sidebar-link {
  padding: 12px 24px 12px 60px;
}

.sidebar [data-bs-toggle=collapse]:before {
  content: " ";
  border: solid;
  border-width: 0 0.16px 0.16px 0;
  display: inline-block;
  padding: 2px;
  transform: rotate(45deg);
  position: absolute;
  top: 16px;
  right: 26px;
  transition: all .2s ease-out;
}
.sidebar [aria-expanded=true]:before {
  transform: rotate(-135deg);
  top: 20px;
}

/********** main **********/
.main {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 340px;
  overflow-x: auto;
}

/* navbar */
.navbar {
  height: 60px;
  width: 100%;
  min-width: 340px;
  background: var(--bs-dark);
  color: var(--bs-reverse-emphasis-color);
}

.navbar .nav-link,
.navbar .nav-link.show {
  color: var(--bs-reverse-emphasis-color);
}

.btn_toggle_sidebar {
  cursor: pointer;
}

/* content */
.content {
  width: 100%;
  padding: 30px 16px 24px;
  flex: 1;
  direction: ltr;
}
.page_title {
  color: var(--bs-emphasis-color);
  word-break: keep-all;
  min-height: 46px;
}

.media {
  display: flex;
  align-items: flex-start;
}
.media-body {
  flex: 1;
}
.stat {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: rgba(var(--bs-primary-rgb), 0.25);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  color: var(--bs-primary);
  font-size: 20px;
}


/********** search **********/
.form-search {
  position: relative;
}
.form-search .btn-search {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  font-size: 20px;
  border: 0;
}


/********** datatable **********/
.datatable-top {
  margin-bottom: 8px;
}
.card .datatable-top dl > dt {
  margin: 4px 0;
}
.datatable-top dl:not(:last-child) {
  margin-bottom: 16px;
}
.datatable-top .select_year_month > .form-select {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  width: 20%;
}
.datatable-top .select_year_month > .btn-group {
  width: 40%;
}
.datatable-top .select_year_month > .btn-group > .btn {
  flex: 1;
  white-space: nowrap;
}
.datatable-top .select_year_month > .btn-group:not(:first-child),
.datatable-top .select_year_month > .btn-group:not(:last-child) ,
.datatable-top .select_year_month > .btn-group:not(:last-child) > .btn:first-child,
.datatable-top .select_year_month > .btn-group:not(:last-child) > .btn:last-child {
  border-radius: 0;
  border-right: 1px solid var(--bs-border-color);
}
.datatable-top .select_year_month > .btn-group:last-child {
  border-right: 0;
}
.datatable-top .select_year_month > .btn-group > .btn:first-child {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left: 0;
}
@media all and (max-width: 1200px) {
  .datatable-top .select_year_month > .btn-group:not(:last-child) > .btn:last-child {
    border-right: 0;
  }
}
@media all and (max-width: 768px) {
  .datatable-top .select_year_month > .form-select {
    border-top-right-radius: var(--bs-border-radius-sm);
    border-bottom-left-radius: 0;
    border-bottom: 0;
    width: 100%;
  }
  .datatable-top .select_year_month > .btn-group {
    width: 100%;
  }
  .datatable-top .select_year_month > .btn-group > .btn:first-child {
    border-left: 1px solid var(--bs-border-color);
    border-bottom-left-radius: var(--bs-border-radius-sm);
  }
  .datatable-top .select_year_month > .btn-group > .btn:last-child {
    border-top-right-radius: 0;
    border-left: 1px solid var(--bs-border-color);
  }
  .datatable-top .select_year_month > .btn-group:not(:last-child) > .btn {
    border-bottom: 0;
  }
}


.datatable-middle {
  margin-bottom: 16px;
}
.datatable-middle .board-list tbody tr td a:not(.btn),
.datatable-middle .board-list tbody tr td a:not(.btn) b {
  color: var(--bs-emphasis-color);
  font-weight: 600;
}
.datatable-middle .board-list tbody tr td:hover a:not(.btn),
.datatable-middle .board-list tbody tr td:hover a:not(.btn) b {
  color: var(--bs-primary);
  text-decoration: underline;
}

.datatable-bottom {
  margin-top: 16px;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
}

textarea.form-control.board-content {
  min-height: 360px;
}

/* dropbox */
.dropbox {
  border: 1px dashed var(--bs-gray-400);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bs-gray-200);
}
.dropbox input {
  cursor: pointer !important;
}
.dropbox:hover .link {
  text-decoration: underline;
}

/* preview_img */
#previewImage {
  width: 100%;
	height: 100%;
	min-height: 150px;
	max-height: 400px;
	border-radius: 8px;
	border: 1px solid var(--bs-gray-400);
	background: var(--bs-gray-200);
	overflow: hidden;
}
#previewImage > #thumbnail_img {
  width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center center;
}


/* fileList */
#file_list .list-group-item-primary {
  --bs-list-group-border-color: var(--bs-border-color);
}
.list-group-item .file_name {
  width: calc(100% - 40px);
  word-break: break-all;
}

#upload_file_list {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: stretch;
  gap: 8px;
}
#upload_file_list > li > a {
  position: relative;
  display: block;
  padding: 8px 12px;
  background: var(--bs-gray-100);
  border-radius: 8px;
}
#upload_file_list > li > a:hover {
  background: var(--bs-gray-200);
}
#upload_file_list > li > a:before {
  position: absolute;
  content: '';
  width: 18px;
  height: 18px;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M256 464a208 208 0 1 1 0-416 208 208 0 1 1 0 416zM256 0a256 256 0 1 0 0 512A256 256 0 1 0 256 0zM376.9 294.6c4.5-4.2 7.1-10.1 7.1-16.3c0-12.3-10-22.3-22.3-22.3L304 256l0-96c0-17.7-14.3-32-32-32l-32 0c-17.7 0-32 14.3-32 32l0 96-57.7 0C138 256 128 266 128 278.3c0 6.2 2.6 12.1 7.1 16.3l107.1 99.9c3.8 3.5 8.7 5.5 13.8 5.5s10.1-2 13.8-5.5l107.1-99.9z'/%3E%3C/svg%3E");
  background-size: 18px 18px;
  background-repeat: no-repeat;
}
#upload_file_list > li > a:hover:before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3C!--!Font Awesome Free 6.7.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--%3E%3Cpath fill='%230d6efd' d='M256 464a208 208 0 1 1 0-416 208 208 0 1 1 0 416zM256 0a256 256 0 1 0 0 512A256 256 0 1 0 256 0zM376.9 294.6c4.5-4.2 7.1-10.1 7.1-16.3c0-12.3-10-22.3-22.3-22.3L304 256l0-96c0-17.7-14.3-32-32-32l-32 0c-17.7 0-32 14.3-32 32l0 96-57.7 0C138 256 128 266 128 278.3c0 6.2 2.6 12.1 7.1 16.3l107.1 99.9c3.8 3.5 8.7 5.5 13.8 5.5s10.1-2 13.8-5.5l107.1-99.9z'/%3E%3C/svg%3E");
}


/* text-overflow */
.text-overflow-line-1 {
  width: fit-content;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.text-overflow-line-2 {
  width: fit-content;
  display: -webkit-box;
  text-overflow: ellipsis;
  overflow: hidden;
  word-break: break-word;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.text-overflow-line-5 {
  width: fit-content;
  text-overflow: ellipsis;
  overflow: hidden;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
}
