:root {
  --sidebar-width: 230px;
  --topbar-height: 60px;
  --main-list-width: 400px;

  --able-red: #FF3B30;
  --able-orange: #FF9500;
  --able-yellow: #FFCC00;
  --able-green: #34C759;
  --able-blue: #007AFF;
  --able-indigo: #5856D6;
  --able-purple: #AF52DE;

  /* --able-text-link-hover: #FF9500;
  --able-border-line: #7e7e7e;
  --able-text-primary: #ffffff;
  --able-text-secondary: #c5c5c5;

  --able-bg-topbar: #110d21;
  --able-bg-sidebar: #1a142f;
  --able-bg-sidebar-sub: #212529;
  --able-bg-main: #323232; */

  --able-text-link-hover: var(--able-blue);
  --able-border-line: #c1c1c1;
  --able-text-primary: #0e0e0e;
  --able-text-secondary: #3d3d3d;

  --able-bg-topbar: #ffffff;
  --able-bg-sidebar: #ffffff;
  --able-bg-sidebar-sub: #e1e1e1;
  --able-bg-main: #ffffff;
  --able-bg-sub-title: #f1f1f1;
  --able-bg-active: #edeeff;

}

body {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.form-label {
  font-family: "Noto Sans KR", serif;
  font-weight: 400 !important;
}

.form-control {
  color: var(--able-text-primary) !important;
}

.breadcrumb {
  background-color: transparent !important;
  margin: 0 !important;
  padding-left: 0 !important;
}

.breadcrumb-item {
  color: var(--able-text-primary) !important;
  font-family: "Noto Sans KR", serif;
  font-weight: 400 !important;
  font-size: 0.9rem !important;
}

.breadcrumb-item a {
  color: var(--able-text-link-hover) !important;
  font-family: "Noto Sans KR", serif;
  font-weight: 400 !important;
  text-decoration: none;
}

.breadcrumb-item a:hover {
  color: var(--able-text-link-hover) !important;
}

.bg-body-base {
  background-color: var(--able-bg-main) !important;
}

.bg-admin {
  background-color: var(--able-indigo) !important;
  color: #fff !important;
}

.bg-admin .navbar-title-wrapper a {
  color: #fff !important;
}

.bg-seller {
  background-color: var(--able-blue) !important;
  color: #fff !important;
}

.bg-seller .navbar-title-wrapper a {
  color: #fff !important;
}

.bg-delivery {
  background-color: var(--able-orange) !important;
  color: #fff !important;
}

.bg-delivery .navbar-title-wrapper a {
  color: #fff !important;
}

.badge-company-admin,
.badge-company-seller,
.badge-company-delivery {
  color: #fff;
}

.badge-company-admin {
  background-color: var(--able-indigo);
}

.badge-company-seller {
  background-color: var(--able-blue);
}

.badge-company-delivery {
  background-color: var(--able-orange);
}

.topbar-wrapper {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--topbar-height);
  background-color: var(--able-bg-topbar);
  z-index: 101;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.075) !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-title-wrapper {
  width: var(--sidebar-width);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 1.2rem;
  color: var(--able-text-primary);
}

.navbar-title-wrapper a {
  color: var(--able-text-primary);
  text-decoration: none;
}

.navbar-title-wrapper a:hover {
  color: var(--able-text-link-hover);
  text-decoration: none;
}


.navbar-button-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 1.2rem;
}

.topbar-user-dropdown .dropdown-toggle::after {
  margin-left: 0.4em;
}

.navbar-button-wrapper i {
  font-size: 1.2rem;
}

.sidebar-wrapper {
  position: sticky;
  top: var(--topbar-height);
  left: 0;
  width: var(--sidebar-width);
  height: calc(100vh - var(--topbar-height));
  background-color: var(--able-bg-sidebar);
  color: var(--able-text-primary);
  overflow-y: auto;
  z-index: 100;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.075) !important;
}


.nav-link {
  font-size: 0.85rem !important;
  color: var(--able-text-primary) !important;
  font-family: "Noto Sans KR", serif;
  font-weight: 400 !important;
}

.nav-link i {
  color: var(--able-text-secondary) !important;
  font-size: 1rem !important;
}

.nav-group {
  width: 1.4rem !important;
  border-right: 1px solid var(--able-text-link-hover) !important;
  height: 100% !important;
}

.nav-link-active {
  font-weight: 500 !important;
  color: var(--able-text-link-hover) !important;
}

.nav-link-active i {
  color: var(--able-text-link-hover) !important;
}

.main-wrapper {
  position: absolute;
  top: var(--topbar-height);
  left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
  height: calc(100vh - var(--topbar-height));
  background-color: var(--able-bg-main);
  overflow-y: auto;
}

.main-bg-map {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}

.main-card-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2010 !important;
}

.main-content-container {
  padding: 20px;
  position: absolute;
  display: flex;
  align-items: end;
  justify-content: start;
  top: 0;
  left: 0;
  width: 80%;
  height: 100%;
  z-index: 1010 !important;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7) 70%, rgba(0, 0, 0, 0));
}

.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.main-top-bar {
  width: 100%;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #e9ecef;
  height: 60px;
}

.main-top-bar h1 {
  font-size: 1.5rem;
  font-weight: 300;
  margin: 0;
}

.main-content-wrapper {
  width: 100%;
  height: calc(100vh - var(--topbar-height) - 60px);
  background-color: #f8f9fa;
  position: relative;
}

.main-content-wrapper .constract-list {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--main-list-width);
  height: 100%;
  background-color: #f8f9fa;
  border-right: 2px dashed #e9ecef;
  overflow-y: auto;
}

.main-content-wrapper .constract-detail {
  position: absolute;
  top: 0;
  left: var(--main-list-width);
  width: calc(100% - var(--main-list-width));
  height: 100%;
  background-color: #f8f9fa;
  overflow-y: auto;
}

.main-content-wrapper .map-building-list-wrapper {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 380px;
  max-height: calc(100vh - var(--topbar-height) - 10px);
  overflow-y: auto;
  z-index: 1000;
}

.main-content-wrapper .button-wrapper {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 1000;
  width: 350px;
}

.main-content-wrapper .region-info-wrapper {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1000;
  width: 350px;
}

.item-selected {
  border-left: 3px solid var(--able-blue) !important;
  background-color: #c3cfdb !important;
  color: #230707 !important;
}

.constract-detail .nav {
  height: 40px;
  overflow-y: hidden;
}

.constract-detail .nav-link {
  height: 100%;
  padding: 0 1rem;
  display: flex;
  align-items: center;
}

.constract-detail .tab-content {
  height: calc(100vh - var(--topbar-height) - 40px - 40px - 60px);
}

.constract-detail .tab-content .tab-pane {
  height: 100%;
}

.constract-detail-header {
  height: 40px;
}

.card-img-top {
  max-height: 200px;
  object-fit: cover;
}

.fc .fc-button {
  background-color: transparent !important;
  border: 1px solid #4e73df !important;
  color: #4e73df !important;
}

/* 호버 효과 */
.fc .fc-button:hover {
  background-color: #4e73df !important;
  color: white !important;
}

/* 활성화된 버튼 스타일 */
.fc .fc-button-active {
  background-color: #4e73df !important;
  color: white !important;
}

/* today 버튼 별도 스타일링 (원하는 경우) */
.fc .fc-today-button {
  border-color: var(--able-red) !important;
  color: var(--able-red) !important;
}

.fc .fc-today-button:hover {
  background-color: var(--able-red) !important;
  color: white !important;
}

.floor-map-container {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  background-color: #fff;
}

.floor-map-background,
.floor-map-icons {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.floor-map-icons {
  pointer-events: none;
  /* 기본적으로 아이콘 레이어는 이벤트를 무시 */
}

.floor-map-agenda {
  position: absolute;
  top: 0;
  right: 0;
}

.draggable-icon {
  cursor: move;
  pointer-events: all;
  /* 드래그 가능한 아이콘만 이벤트 활성화 */
}

.pulsing-marker {
  animation: changeFill 3s infinite;
}

@keyframes changeFill {
  0% {
    filter: hue-rotate(0deg);
  }

  50% {
    filter: hue-rotate(180deg);
  }

  100% {
    filter: hue-rotate(360deg);
  }
}

.position-marker-wrapper {
  position: relative;
  width: 50px;
  height: 50px;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.3));
}

.position-marker-wrapper svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.position-marker-emoji {
  font-size: 1.2rem;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 5px;
}

.form-check {
  margin-left: 1.5rem !important;
}

.form-check-input:checked {
  background-color: var(--able-red) !important;
  border-color: var(--able-red) !important;
}

.sign-card {
  max-height: 600px;
  min-height: 400px;
  width: 600px;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--able-bg-main);
  /* background-image: url("/assets/images/sunset.jpg"); */
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
  padding-top: 3rem;
  padding-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.sign-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

/* 컨텐츠가 오버레이 위에 보이도록 설정 */
.sign-card>* {
  position: relative;
  z-index: 2;
}

.sign-card-header {
  text-align: center;
}

.sign-card-body {
  padding: 20px;
}

.sign-card-footer {
  padding: 20px;
  padding-bottom: 0;
}

.click-item {
  cursor: pointer;
}

.ts-nm {
  font-size: 0.85rem !important;
}

.ts-sm {
  font-size: 0.8rem !important;
}

.ts-lg {
  font-size: 1.0rem !important;
}

.card-button {
  cursor: pointer;
}

.card-button:hover {
  background-color: var(--able-bg-active);
}

.table-cell {
  font-size: 0.85rem !important;
  padding: 0.5rem 0.75rem !important;
  font-family: 'Noto Sans KR', sans-serif !important;
  vertical-align: middle !important;
}

.table-header {
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  padding: 0.5rem 0.75rem !important;
  vertical-align: middle !important;
}

.btn-text-sm {
  padding-right: .25rem !important;
  padding-left: .25rem !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  font-size: .75rem !important;
}

.rtm-tooltip {
  --bs-tooltip-max-width: none;
  max-width: none;
}

.rtm-tooltip .tooltip-inner {
  max-width: min(90vw, 36rem);
  white-space: normal;
  text-align: left;
}

.rtm-address-cell {
  max-width: 100%;
  vertical-align: middle;
}

.content-fit-modal .modal-dialog {
  max-height: calc(100vh - 3.5rem);
}

.content-fit-modal .modal-content {
  max-height: calc(100vh - 3.5rem);
}

.content-fit-modal .modal-body {
  overflow-y: auto;
  max-height: calc(100vh - 11rem);
}

.content-fit-text {
  white-space: pre-wrap;
}

.notice-popup-content {
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  padding: 1rem;
}

.dashboard-chart {
  width: 100%;
}

.dashboard-chart-svg {
  display: block;
  max-width: 100%;
}

.dashboard-chart-legend-wrap {
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #eaecf4;
}

.dashboard-chart-legend-wrap:empty {
  display: none;
  margin: 0;
  padding: 0;
  border: none;
}

.dashboard-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: #5a5c69;
}

.dashboard-chart-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.dashboard-chart-legend-swatch {
  display: inline-block;
  width: 18px;
  height: 0;
  border-top: 3px solid transparent;
}

.dashboard-chart-legend-swatch.is-dashed {
  border-top-style: dashed;
}

.dashboard-chart-legend-swatch.is-bar {
  width: 12px;
  height: 12px;
  border: none;
  border-radius: 2px;
  opacity: 0.85;
}

.dashboard-chart-combo {
  min-height: 150px;
}

.dashboard-trend-tabs {
  margin-bottom: -0.5rem;
  border-bottom: 0;
}

.dashboard-trend-tabs .nav-link {
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #858796;
}

.dashboard-trend-tabs .nav-link.active {
  color: #4e73df;
}

.dashboard-chart-pie {
  min-height: 200px;
  position: relative;
}

.dashboard-pie-slice-group {
  cursor: pointer;
}

.dashboard-pie-label {
  fill: #000;
  font-size: 0.65rem;
  font-weight: 600;
  pointer-events: none;
}

.dashboard-pie-tooltip {
  position: absolute;
  z-index: 10;
  padding: 0.35rem 0.55rem;
  background: rgba(50, 50, 50, 0.92);
  color: #fff;
  font-size: 0.75rem;
  border-radius: 0.25rem;
  pointer-events: none;
  white-space: nowrap;
  transform: translate(-50%, calc(-100% - 8px));
}

.dashboard-table-scroll {
  height: 200px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.dashboard-table-scroll table {
  margin-bottom: 0;
}

.dashboard-table-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background-color: #fff;
  box-shadow: inset 0 -1px 0 #dee2e6;
}

.dashboard-chart-axis-label {
  fill: #858796;
  font-size: 0.75rem;
  font-weight: 600;
}

.dashboard-chart-axis-right text,
.dashboard-chart-axis-left text {
  fill: #858796;
  font-size: 0.75rem;
}

.toast.dashboard-toast-fade-out {
  opacity: 0;
  transition: opacity 0.35s ease;
}

.badge {
  font-size: 0.6rem;
  font-weight: 600;
  padding: 0.35em 0.65em;
  border-radius: 50rem;
}