@charset "utf-8";

@font-face {
  font-family: "Nanum Gothic";
  font-style: normal;
  font-weight: 400;
  src: url(//themes.googleusercontent.com/static/fonts/earlyaccess/nanumgothic/v4/NanumGothic-Regular.eot);
  src: url(//themes.googleusercontent.com/static/fonts/earlyaccess/nanumgothic/v4/NanumGothic-Regular.eot?#iefix)
      format("embedded-opentype"),
    url(//themes.googleusercontent.com/static/fonts/earlyaccess/nanumgothic/v4/NanumGothic-Regular.woff2)
      format("woff2"),
    url(//themes.googleusercontent.com/static/fonts/earlyaccess/nanumgothic/v4/NanumGothic-Regular.woff)
      format("woff"),
    url(//themes.googleusercontent.com/static/fonts/earlyaccess/nanumgothic/v4/NanumGothic-Regular.ttf)
      format("truetype");
}

@font-face {
  font-family: "Noto Sans";
  font-style: normal;
  font-weight: 350;
  src: local("Noto Sans DemiLight"), local("NotoSans-DemiLight"),
    url(https://cdn.rawgit.com/theeluwin/NotoSansKR-Hestia/master/fonts/eot/NotoSansKR-DemiLight-Hestia.eot),
    url(https://cdn.rawgit.com/theeluwin/NotoSansKR-Hestia/master/fonts/eot/NotoSansKR-DemiLight-Hestia.eot?#iefix)
      format("embedded-opentype"),
    url(https://cdn.rawgit.com/theeluwin/NotoSansKR-Hestia/master/fonts/woff/NotoSansKR-DemiLight-Hestia.woff)
      format("woff"),
    url(https://cdn.rawgit.com/theeluwin/NotoSansKR-Hestia/master/fonts/otf/NotoSansKR-DemiLight-Hestia.otf)
      format("opentype");
}

body {
  margin: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f5f5f5;
}

header {
  flex-shrink: 0;
}

header .card-body {
  padding: 17px 20px !important;
  border-bottom: 1px solid #e4e7ea;
}

.mobile-only {
  display: none;
}

.popup-overlay {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
}

.ag-theme-balham .ag-root-wrapper {
  border: 1px solid #bdc3c7;
  border-radius: 8px;
}

.ag-theme-balham .ag-header {
  background-color: #f3f4f6;
  border-bottom: 1px solid #e5e7eb;
}

.logo-container {
  width: 200px;
  display: block;
}

.logo-container-login {
  position: relative;
  width: 250px;
}

.logo-container p {
  padding: 5px;
  font-weight: 600;
  font-size: 16px;
  margin-left: 4px;
  color: #1a1a1a;
}

/* 햄버거 버튼 스타일 */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 14px;
  height: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  box-sizing: border-box;
}

.hamburger-btn:focus {
  outline: none;
}

.hamburger-btn span {
  width: 100%;
  height: 2px;
  background-color: #313131;
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
}

/* 메인 컨테이너 */
.main-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: auto;
}

.container-fluid {
  overflow: auto;
}

/* 사이드바 */
.sidebar {
  position: absolute;
  top: 0;
  left: 0;
  width: 250px;
  height: 100%;
  background-color: #ffffff;
  padding-top: 20px;
  overflow-y: auto;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-info {
  position: fixed;
  bottom: 0;
  text-align: center;
  height: 115px;
  width: 250px;
}
.sidebar .sidebar-logo {
  opacity: 0.6;
  height: 56%;
  margin-top: 9px;
}
.sidebar .sidebar-span {
  font-weight: 600;
  opacity: 0.6;
  display: block;
}

.sidebar.hidden {
  transform: translateX(-100%);
}

/* 닫기 버튼 스타일 */
.sidebar-close {
  display: none;
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  color: #313131;
  cursor: pointer;
  padding: 5px;
}

.sidebar-close:hover {
  color: #6f7ad3;
}

.nav-tabs .nav-link {
  color: #64748b;
}

.sidebar-item.title {
  font-weight: 700;
  padding: 12px;
}

.sidebar-menu {
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0;
  overflow-y: auto;
  z-index: 1;
  background-color: #ffffffde;
}

.sidebar-item {
  padding-bottom: 5px;
}

.sidebar-link {
  padding: 9.5px 20px;
  display: block;
  color: #313131;
  text-decoration: none;
  transition: all 0.3s;
  font-size: 15px;
}

.sidebar-link:hover {
  background-color: #f0f2fd;
  color: #6f7ad3;
}

.sidebar-link.active,
.submenu-link.active {
  background-color: #f0f2fd;
  color: #6f7ad3;
  font-weight: 600;
  border-left: 4px solid #6f7ad3;
}

/* 서브메뉴 스타일 */
.sidebar-link.has-submenu {
  position: relative;
}

.sidebar-link.has-submenu::after {
  content: "▼";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  transition: transform 0.3s;
}

/* open은 서브메뉴 토글 상태를 위한 클래스 */
.sidebar-link.has-submenu.open::after {
  transform: translateY(-50%) rotate(180deg);
}

.sidebar-link.has-submenu.open {
  background-color: #f5f5f5; /* 연한 배경색으로 열린 상태 표시 */
  color: #6f7ad3;
}

.submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.submenu-item {
  margin: 0;
}

.submenu-link {
  display: block;
  padding: 10px 20px 10px 35px;
  color: #555;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s;
}

.submenu-link:hover {
  background-color: #f0f2fd;
  color: #6f7ad3;
}

/* 컨텐츠 영역 */
.content-area {
  margin-left: 250px;
  padding: 20px;
  transition: margin-left 0.3s ease;
}

/* 사이드바 숨겨졌을 때 컨텐츠 영역 조정 */
.sidebar.hidden + .content-area {
  margin-left: 0;
}

.content-area {
  height: 100%;
}

.filter-select {
  width: auto;
  max-width: 10rem;
}

.filter-select#year {
  min-width: 86px;
}

.filter-select#quarter {
  min-width: 75px;
}

.filter-select#month {
  min-width: 68px;
}

.filter-select:focus {
  border-color: #6f7ad3;
  box-shadow: 0 0 0 0.25rem rgba(111, 122, 211, 0.25);
}

.tag {
  background-color: #e5e7eb;
  font-size: 0.875rem;
  color: #374151;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tag:hover {
  background-color: #d1d5db;
}

.tag.active {
  background-color: rgba(111, 122, 211, 0.15);
  color: #6f7ad3;
  border: solid 1px rgba(111, 122, 211, 0.3);
  font-weight: 500;
}

.tag.active:hover {
  background-color: rgba(111, 122, 211, 0.25);
}

.form-control[type="file"] {
  overflow: hidden;
  max-width: 100%;
}

.cell-span {
  background-color: #e9ecef;
}

.custom-card {
  border: 1px solid #e4e7ea;
  border-radius: 8px;
}

.primary-border-top {
  border-top: 3px solid #6f7ad3;
}

.nav-tabs {
  border: none;
}

.form-control,
.form-select {
  border-radius: 8px;
}

.form-control:focus,
.form-select:focus {
  border-color: #707cd2;
  box-shadow: 0 0 0 0.15rem rgba(111, 122, 211, 0.25);
  outline: 0;
}

.btn {
  border-radius: 8px;
}

.ag-cell.ag-cell-not-inline-editing.ag-cell-auto-height.ag-cell-value {
  display: flex;
  align-items: center;
}

.visit-btn {
  margin: auto;
}

.nav-tabs .nav-link {
  border-radius: 8px 8px 0 0;
}

.loader {
  width: 40px;
  height: 40px;
  --c: no-repeat linear-gradient(#6f7ad3 0 0);
  background: var(--c), var(--c), var(--c), var(--c);
  background-size: 21px 21px;
  animation: l5 1.5s infinite cubic-bezier(0.3, 1, 0, 1);
}

.dropdown-toggle::after {
  display: none;
}

.dropdown-toggle {
  color: #8898aa;
}

.bg-color-1 {
  background-color: #c6e0b4;
}

.bg-color-2 {
  background-color: #ffe699;
}

.bg-color-3 {
  background-color: #bdd7ee;
}

.bg-color-4 {
  background-color: #f8cbad;
}

.bg-color-5 {
  background-color: #b4c6e7;
}

.fpis-account {
  color: #6b7280;
  font-size: 14px;
}

.ag-custom-dropdown {
  font-size: inherit;
  line-height: inherit;
  border: 1px solid #babfc7;
  border-radius: 3px;
  color: #555555;
}

.hover-dropdown:hover .dropdown-menu {
  display: block;
  margin-top: 0 !important; /* 버튼과 붙이기 */
}

/* 드롭다운 왼쪽에 나오도록 위치 조정 */
.hover-dropdown-left .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%; /* 아래쪽으로 */
  right: 0 !important; /* 버튼의 오른쪽 끝 기준 */
  left: auto;
  transform: translateX(-0%); /* 메뉴 전체를 왼쪽으로 이동 */
  z-index: 1050;
  padding: 10px;
}

/* 호버 시 드롭다운 열리게 */
.hover-dropdown-left:hover .dropdown-menu {
  display: block;
}

.ag-floating-filter-body {
  height: 24px !important;
}

.red-only {
  color: red !important;
}
.red-only label {
  color: red !important;
}
.red-only .detail-value {
  color: red !important;
}
.red-only-background {
  color: red !important;
  background-color: #ff959536 !important;
}

select#quarter {
  width: 75px;
}

select#month {
  width: 68px;
}

/* 페이지네이션 start */
.pagination-container {
  display: flex;
  align-items: center;
  justify-content: end;
  column-gap: 33px;
  padding-top: 9px;
  border-radius: 6px;
}

.range-info {
  font-size: 14px;
  white-space: nowrap;
}

.nav-controls {
  display: flex;
  align-items: center;
}

.nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 32px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
  background: transparent;
}

.nav-btn:hover {
  background: #fafafa;
  border-radius: 4px;
}

.nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-info {
  font-size: 14px;
  margin: 0 12px;
  white-space: nowrap;
}

.page-size-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-size-label {
  margin: 0;
  font-size: 14px;
  white-space: nowrap;
}

.page-size-select {
  padding: 6px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.page-size-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.custom-tooltip .tooltip-inner {
  background-color: #ffffff;
  color: black;
  box-shadow: 2px 2px 9px #9daabc;
  border-radius: 4px;
  line-height: normal;
}

.custom-tooltip .tooltip-arrow::before {
  border-right-color: #ffffff !important;
  border-bottom-color: #ffffff !important;
}

.note {
  width: 27px;
  margin-right: 10px;
}

.alert-dropdown .dropdown-menu {
  width: 400px;
  padding: 0 0 20px 0;
  background-color: #f5f6f8;
  border-radius: 8px;
  display: none;
  height: 457px;
  flex-direction: column;
}

.alert-dropdown .dropdown-body {
  overflow-y: scroll;
  flex: 1;
}

.alert-dropdown .dropdown-menu.show {
  right: 0 !important;
  display: flex;
}

.alert-dropdown .dropdown-header {
  background-color: #fff;
  border-radius: 8px 8px 0 0;
  border-bottom: 1px solid #ededed;
  font-size: 17px;
  font-weight: bold;
  color: #181d1f;
  margin-bottom: 20px;
  padding: 0.8rem 1.2rem;
}

.alert-dropdown .dropdown-item {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px 15px;
  margin: 0 15px 10px 15px;
  text-wrap: wrap;
  border: 1px solid #ededed;
  box-shadow: 2px 2px 20px #ededed;
  width: auto;
  color: #8f929c;
}

.alert-dropdown .dropdown-item:hover {
  cursor: pointer;
}

.alert-dropdown .dropdown-item.active {
  color: #181d1f;
}

.dropdown-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8898aa;
  margin-top: 150px;
}

.more-btn {
  padding: 0;
  margin-left: auto;
}

.dropdown-overlay {
  display: none;
  position: absolute;
  inset: 0px 0px auto auto;
  margin: 0px;
  width: 400px;
  height: 457px;
  background-color: rgb(0, 0, 0, 0.4);
  z-index: 1000;
  border-radius: 8px;
}

.overlay-btn-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  gap: 5px;
  padding: 20px 15px;
}

.overlay-btn-container .btn {
  background-color: white;
  width: 100%;
  height: 54px;
  border-radius: 8px;
}

#bell {
  position: relative;
  color: #d6d9de;
}

#bell-count {
  line-height: 1;
  display: none;
  position: absolute;
  top: -9px;
  right: -10px;
  height: 19px;
  width: 19px;
  font-size: 10px;
  background-color: red;
  border-radius: 50%;
  color: #ffffff;
  justify-content: center;
  align-items: center;
}

.row-invalid {
  background-color: #ffd6d6 !important;
  color: red !important;
}

@media (max-width: 640px) {
  .pagination-container {
    flex-direction: column;
    align-items: stretch;
    column-gap: 12px;
  }

  .nav-controls {
    justify-content: center;
  }

  .page-size-container {
    justify-content: center;
  }
}
/* 페이지네이션 end */

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.7;
  }
}

@keyframes l5 {
  0% {
    background-position: 0 0, 100% 0, 100% 100%, 0 100%;
  }
  33% {
    background-position: 0 0, 100% 0, 100% 100%, 0 100%;
    width: 60px;
    height: 60px;
  }
  66% {
    background-position: 100% 0, 100% 100%, 0 100%, 0 0;
    width: 60px;
    height: 60px;
  }
  100% {
    background-position: 100% 0, 100% 100%, 0 100%, 0 0;
  }
}

/* 모바일 스타일 */
@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    transform: translateX(-100%);
  }

  .sidebar.show {
    transform: translateX(0);
  }

  .sidebar-close {
    display: block;
  }

  .content-area {
    margin-left: 0 !important;
    padding: 10px 0 !important;
  }

  .sidebar-menu {
    height: 100%;
    background-color: unset;
  }

  .sidebar-item {
    background-color: #ffffffd1;
  }

  .sideber-info {
    width: 100%;
  }

  /* 모바일에서 사이드바가 열렸을 때 스크롤 방지 */
  body.sidebar-open {
    overflow: hidden;
  }

  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: flex;
  }

  .mobile-only a {
    line-height: normal;
  }

  .dropdown-header {
    color: #020817;
  }

  .dropdown-menu.show {
    transform: translate(-110px, 0px) !important;
  }

  #excelBtn {
    display: none;
  }
}
