body {
  background-color: #FFF !important;
}

.logo {
  height: 55px;
  width: auto;
  margin: 0 !important;
}

/*
 * 모바일(햄버거 메뉴 구간)의 상단 네비게이션 보정. 두 가지를 되돌린다.
 *
 * 1) 하위 메뉴가 본문 위에 겹쳐 뜨는 문제
 *    부트스트랩은 navbar-expand-lg 미만에서 .navbar-nav .dropdown-menu 를 static 으로 펼치는데,
 *    뒤에 로드되는 pages 테마(themes/modern.css:3887)가 같은 선택자로 position: absolute 를
 *    미디어쿼리 없이 덮어쓴다.
 *
 * 2) 펼친 메뉴가 잘리고 스크롤도 안 되는 문제
 *    body 에 붙는 .horizontal-app-menu.fixed-header(themes/modern.css:330) 가 body 를
 *    overflow: hidden 인 flex 컬럼으로 만든다. 스크롤은 형제인 .page-container 가 담당하므로,
 *    메뉴가 화면 높이를 넘으면 잘린 부분에 접근할 방법이 없다.
 *    메뉴가 눌리지 않게 flex-shrink 를 끄고, 화면 높이를 넘으면 메뉴 안에서 스크롤되게 한다.
 */
@media (max-width: 991.98px) {
  #head-common-menu .navbar-nav .dropdown-menu {
    position: static;
    float: none;
  }

  #head-common-menu {
    flex-shrink: 0;
    max-height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.nav-sub .nav-tabs {
  justify-content: center !important;
  border-bottom: 1px solid #e5e5e5;
}

.nav-sub .nav-tabs .nav-item .nav-link {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50px;
  font-size: 1.0rem;
  color: #5e5e5e;
  border-bottom: 3px solid transparent !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
}

.nav-sub .nav-tabs .nav-item .nav-link.active,
.nav-sub .nav-tabs .nav-item .nav-link:hover {
  color: #004ea2;
  border-bottom: 3px solid #004ea2 !important;
  text-decoration: none;

}

/* Table */
table td a {
  color: #535353;
}

table .input-checkbox {
  height: 20px;
}

.input-star input:checked + label:after {
  content: '★' !important;
  transform: none !important;
  color: #fff;
  position: absolute;
  width: 100%;
  left: 0;
  top: -2px;
  font-weight: 700;
}

.modal-header {
  height: 48px;
}

.select2-container {
  width: 100% !important;
}

.select2-container .select2-selection--single {
  height: 35px;
}

.select2-container--default .select2-selection--single {
  border: 1px solid #ced4da;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 20px;
  padding: .375rem 20px .375rem .75rem;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 32px;
}

/* Datatables */
.no-sort::before, .no-sort::after {
  display: none !important;
}

.no-sort {
  padding: .7rem !important;
}


.form-filter button[type="submit"] {
  width: 50px;
  height: 36px;
  padding: .375rem;
}

/* JS Tree */
.jstree {
  height: 500px;
  overflow-y: auto;
}

.section-title {
  display: block;
  background-color: #004ea2;
  text-align: center;
  font-weight: bold;
  color: #FFF !important;
  padding: 0.5rem 0;
}

.main-popup {
  display: none;
  position: fixed;
  top: 60px;
  right: 5px;
  z-index: 999;
  border: 1px solid #aaa;
  box-shadow: -0.3em 0.3em 0.7em #666666;
  background-color: #FFF;
  min-width: 200px;
  max-width: 400px;
}

.main-popup .popup-container {
  overflow-x: hidden;
  overflow-y: auto;
}

.main-popup .popup-container > p {
  margin: 0 !important;
}

.main-popup .popup-container img {
  max-width: 100% !important;
}

.main-popup .popup-footer {
  width: 100%;
  height: 30px;
  background: #424242;
}

.main-popup .popup-footer a {
  color: #FFF !important;
}

table.dataTable thead > tr > th.sorting_asc, table.dataTable thead > tr > th.sorting_desc, table.dataTable thead > tr > th.sorting, table.dataTable thead > tr > td.sorting_asc, table.dataTable thead > tr > td.sorting_desc, table.dataTable thead > tr > td.sorting {
  padding-right: 16px !important;
}

.nav-tabs .nav-link {
  background: none !important;
  border: none !important;
}

.text-underline {
  text-decoration: underline;
}

.btn-rounded {
  border-radius: 1.2rem;
}

.attachment-box {
  margin-top: 0.8rem;
  background-color: #f4f6f7;
  padding: 0.6rem 1.1rem;
}

.badge-large {
  font-size: 1rem;
  padding: 0.4rem 0.9rem;
  border-radius: 3rem;
}

.border-box {
  padding: 0.6rem 0.4rem;
  border: 2px solid #004ea2;
}

.cursor-pointer {
  cursor: pointer;
}

.page-cover.bg-img {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  height: 260px;
  display: flex;
  justify-content: center;
  align-items: center;
}

hr {
  margin-top: 0px;
  margin-bottom: 0px;
}

div.tagsinput input {
  width: 300px !important;
}

.popover-header {
  margin: 0 !important;
}

.shortcut-list .item {
  display: block;
  padding: 10px;
}

.shortcut-list .item:hover {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
}

.shortcut-list .item img {
  display: block;
  margin: 0 auto;
  height: 76px;
  width: auto;
}

.shortcut-list .item p {
  color: #000;
  text-align: center;
  margin-top: 5px;
}

.inspection-input {
  width: 50%;
  border: none;
  border-color: transparent;
  text-align: center;
}