:root {
  /* --inapp-primary: #e66239; */
  --inapp-primary: #447cd7;
  --inapp-gray-50: #fafafa;
  --inapp-gray-100: #f5f5f5;
  --inapp-gray-200: #e5e5e5;
  --inapp-gray-300: #d4d4d4;
  --inapp-gray-400: #a3a3a3;
  --inapp-gray-500: #737373;
  --inapp-gray-600: #525252;
  --inapp-gray-700: #404040;
  --inapp-gray-800: #262626;
  --inapp-gray-900: #171717;
  --inapp-green: #00c951;
  --inapp-red: #fb2c36;
  --inapp-yellow: #f0b100;
  --inapp-cyan: #00b8db;
}

body {
  font-family: "Poppins", sans-serif;
  font-size: 0.875rem;
}

a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}
.sidebar .nav-link:hover {
  text-decoration: none;
}

/* Overlay and sidebar layout */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(1px);
  display: none;
  z-index: 1030;
}
.overlay.show {
  display: block;
}
.sidebar {
  width: 240px;
  background: #ffffff;
  transition:
    width 0.3s,
    left 0.3s;
  border-right: 1px solid var(--inapp-gray-200);
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable both-edges;
  position: fixed;
  top: 0;
  left: 0;
  padding-top: 60px;
  z-index: 1030;
}
.sidebar .nav-link {
  color: var(--inapp-gray-800);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 400;
  gap: 12px;
  white-space: nowrap;
  margin: 1px 12px;
  border-radius: 8px;
}
.sidebar .nav-link:hover,
.sidebar .nav-link.active {
  color: var(--inapp-primary);
  background-color: rgba(230, 98, 57, 0.095);
}
.sidebar .nav-link .ti,
.sidebar .nav-link .bi {
  width: 20px;
  min-width: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sidebar .nav-link .ti {
  font-size: 20px;
}
.sidebar .nav-link .bi {
  font-size: 18px;
}
.sidebar .nav-link .bi-calendar-range {
  font-size: 17px;
}
.sidebar .nav-text {
  transition: opacity 0.2s;
}
.sidebar .logo-area {
  position: absolute;
  top: 0;
  left: 0;
  height: 60px;
  width: 100%;
  background: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 17px;
  color: var(--inapp-gray-800);
  border-bottom: 1px solid var(--inapp-gray-200);
}
.sidebar .logo-area a {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar .logo-area img {
  display: block;
}
.sidebar .logo-area .logo-icon-img {
  width: 35px;
  height: 35px;
  object-fit: contain;
  flex: 0 0 auto;
}
.sidebar .logo-area .logo-full-img {
  height: 36px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
}
.sidebar .logo-area .logo-text {
  display: inline-flex;
  align-items: center;
}
.dropzone {
  position: relative;
  border: 1px dashed var(--inapp-gray-300);
  border-radius: 8px;
  padding: 12px;
  background: transparent;
  cursor: pointer;
  height: 100%;
}
.dropzone .form-control {
  position: relative;
  z-index: 2;
}
.dropzone .dropzone-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--inapp-gray-600);
  pointer-events: none;
  background: var(--inapp-gray-100);
  border-radius: 8px;
}
.dropzone.dragover {
  border-color: var(--inapp-primary);
  background: rgba(230, 98, 57, 0.08);
}
.dropzone.dropzone-sm {
  padding: 8px;
}
.table {
  font-size: 0.8rem;
}
.table th,
.table td {
  white-space: nowrap;
}
.btn {
  white-space: nowrap;
}
.drop-overlay {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: none;
  pointer-events: none;
}
.drop-overlay.show {
  display: block;
}
.drop-overlay-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
}
.drop-overlay-box {
  border: 1px dashed var(--inapp-gray-300);
  border-radius: 8px;
  width: 75vw;
  height: 75vh;
  padding: 20px 24px;
  background: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.sidebar.collapsed {
  width: 60px;
}
.sidebar.collapsed .nav-link {
  margin: 0;
  background-color: transparent;
  padding: 8px 18px;
}
.sidebar.collapsed .nav-text,
.sidebar.collapsed .logo-text {
  display: none;
}
.sidebar.collapsed .nav-link[data-bs-toggle="collapse"] {
  width: 100%;
  display: grid !important;
  grid-template-rows: 1fr 1fr;
  justify-items: center;
  align-items: center;
  justify-content: center !important;
  align-content: center;
  row-gap: 2px;
  padding: 8px 18px !important;
  margin: 0 !important;
}
.sidebar.collapsed .nav-link[data-bs-toggle="collapse"] span {
  display: flex;
  align-items: center;
  justify-content: center;
}
.sidebar.collapsed .nav-link[data-bs-toggle="collapse"] > span,
.sidebar.collapsed .nav-link[data-bs-toggle="collapse"] > .ti-chevron-down {
  width: 100%;
  justify-content: center;
  text-align: center;
}
.sidebar.collapsed .nav-link[data-bs-toggle="collapse"] .ti-chevron-down {
  font-size: 14px;
  line-height: 1;
}
.sidebar.collapsed .nav-link[data-bs-toggle="collapse"] .nav-text,
.sidebar.collapsed .collapse .nav-text {
  display: none !important;
}
.sidebar.collapsed .collapse .nav-link {
  justify-content: center;
  padding: 8px 0 !important;
  margin: 0 !important;
  width: 100%;
}
.sidebar.collapsed .collapse .nav {
  margin-left: 0 !important;
  padding-left: 0 !important;
}
.sidebar.collapsed .collapsing {
  margin-left: 0 !important;
  padding-left: 0 !important;
}
.sidebar.collapsed .collapsing .nav-link {
  justify-content: center;
  padding: 8px 0 !important;
  margin: 0 !important;
  width: 100%;
}
.sidebar.collapsed .collapsing .nav {
  margin-left: 0 !important;
  padding-left: 0 !important;
}
.topbar {
  height: 60px;
  margin-left: 240px;
}
.topbar.full {
  margin-left: 60px;
}
.content {
  margin-left: 240px;
}
.content.full {
  margin-left: 60px;
}
.content {
  padding-top: 70px;
  padding-bottom: 70px;
}
.content .page-footer {
  position: fixed;
  left: 240px;
  right: 0;
  bottom: 0;
  font-size: 0.8rem;
  color: #fff;
  background: var(--inapp-primary);
  border-top: 1px solid var(--inapp-gray-200);
  z-index: 1020;
}
/* Prevent header/body wrapping in wide tables */
.table-nowrap th,
.table-nowrap td {
  white-space: nowrap;
}
.owner-table th,
.owner-table td {
  min-width: 140px;
}
.owner-table th:nth-child(1),
.owner-table td:nth-child(1) {
  min-width: 180px;
}
.owner-table th:nth-child(3),
.owner-table td:nth-child(3),
.owner-table th:nth-child(4),
.owner-table td:nth-child(4) {
  min-width: 220px;
}
.owner-table th:nth-child(7),
.owner-table td:nth-child(7) {
  min-width: 220px;
}
.owner-table th:nth-child(8),
.owner-table td:nth-child(8),
.owner-table th:nth-child(9),
.owner-table td:nth-child(9) {
  min-width: 200px;
}
.owner-table th:nth-child(10),
.owner-table td:nth-child(10),
.owner-table th:nth-child(11),
.owner-table td:nth-child(11),
.owner-table th:nth-child(12),
.owner-table td:nth-child(12) {
  min-width: 170px;
}
.owner-table th:nth-child(13),
.owner-table td:nth-child(13) {
  min-width: 160px;
}
.owner-table th:nth-child(14),
.owner-table td:nth-child(14) {
  min-width: 120px;
}
.page-footer a {
  color: #fff;
}
.content.full .page-footer {
  left: 60px;
}
@media (max-width: 992px) {
  .sidebar {
    left: -240px;
  }
  .sidebar.mobile-show {
    left: 0;
  }
  .topbar {
    margin-left: 0 !important;
    width: 100% !important;
  }
  .content {
    margin-left: 0 !important;
  }
  .content .page-footer {
    left: 0;
  }
}

/* Button icon */
.btn-icon {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  font-size: 0.92969rem;
  font-weight: 400;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
}
.btn-icon.btn-xs {
  font-size: 0.75rem;
  width: 1.75rem;
  height: 1.75rem;
}
.btn-icon.btn-sm {
  font-size: 0.875rem;
  width: 2.1875rem;
  height: 2.1875rem;
}
.btn-icon.btn-lg {
  font-size: 1rem;
  width: 3.36875rem;
  height: 3.36875rem;
}

/* Icon shape sizes */
.icon-xxs {
  width: 1rem;
  height: 1rem;
  line-height: 1rem;
}
.icon-xs {
  width: 1.5rem;
  height: 1.5rem;
  line-height: 1.5rem;
}
.icon-sm {
  width: 2rem;
  height: 2rem;
  line-height: 2rem;
}
.icon-md {
  width: 2.5rem;
  height: 2.5rem;
  line-height: 2.5rem;
}
.icon-lg {
  width: 3rem;
  height: 3rem;
  line-height: 3rem;
}
.icon-xl {
  width: 3.5rem;
  height: 3.5rem;
  line-height: 3.5rem;
}
.icon-xxl {
  width: 4rem;
  height: 4rem;
  line-height: 4rem;
}
.icon-xxxl {
  width: 7rem;
  height: 7rem;
  line-height: 7rem;
}
.icon-shape {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  vertical-align: middle;
}

/* Avatars */
.avatar {
  position: relative;
  display: inline-block;
  width: 3rem;
  height: 3rem;
}
.avatar-xs {
  width: 1.5rem;
  height: 1.5rem;
}
.avatar-sm {
  width: 2rem;
  height: 2rem;
}
.avatar-md {
  width: 2.5rem;
  height: 2.5rem;
}
.avatar-lg {
  width: 3.5rem;
  height: 3.5rem;
}
.avatar-xl {
  width: 5rem;
  height: 5rem;
}
.avatar-xxl {
  width: 7.5rem;
  height: 7.5rem;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar-indicators {
  position: relative;
}
.avatar-indicators:before {
  content: "";
  position: absolute;
  bottom: 0;
  right: 5%;
  width: 30%;
  height: 30%;
  border-radius: 50%;
  border: 2px solid #ffffff;
  display: table;
}
.avatar-xxl.avatar-indicators:before {
  bottom: 5px;
  right: 17%;
  width: 16%;
  height: 16%;
}
.avatar-offline:before {
  background-color: var(--inapp-gray-400);
}
.avatar-online:before {
  background-color: var(--inapp-green);
}
.avatar-away:before {
  background-color: var(--inapp-yellow);
}
.avatar-busy:before {
  background-color: var(--inapp-red);
}
.avatar-info:before {
  background-color: var(--inapp-cyan);
}

.avatar-initials {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  pointer-events: none;
  text-transform: uppercase;
}
.avatar-primary .avatar-initials {
  color: #ffffff;
  background-color: var(--inapp-primary);
}
.avatar-secondary .avatar-initials {
  color: #ffffff;
  background-color: var(--inapp-gray-600);
}
.avatar-success .avatar-initials {
  color: #ffffff;
  background-color: var(--inapp-green);
}
.avatar-warning .avatar-initials {
  color: #ffffff;
  background-color: var(--inapp-yellow);
}
.avatar-info .avatar-initials {
  color: #ffffff;
  background-color: var(--inapp-cyan);
}
.avatar-danger .avatar-initials {
  color: #ffffff;
  background-color: var(--inapp-red);
}
.avatar-light .avatar-initials {
  color: #ffffff;
  background-color: var(--inapp-gray-100);
}
.avatar-dark .avatar-initials {
  color: #ffffff;
  background-color: var(--inapp-gray-900);
}

.avatar-group .avatar + .avatar {
  margin-left: -1.2rem;
}
.avatar-group .avatar:hover {
  z-index: 2;
}
.avatar-group img,
.avatar-group .avatar .avatar-initials {
  border: 2px solid #ffffff;
}

/* Borders */
.border-dashed {
  border-style: dashed !important;
}

.timeline-vertical {
  position: relative;
}
.timeline-vertical .timeline-item .timeline-bar {
  position: absolute;
  height: 100px;
  left: 5px;
  top: 24px;
}
.timeline-vertical-height .timeline-item .timeline-bar {
  height: calc(100% - 1rem) !important;
}

.vr {
  display: inline-block;
  align-self: stretch;
  width: 1px;
  min-height: 1em;
  background-color: var(--inapp-gray-200) !important;
  opacity: 0.25;
}

.logo {
  width: 250px;
  max-width: 100%;
}
.logo img {
  display: block;
  width: 100%;
  max-height: 72px;
  object-fit: contain;
  margin: 0 auto;
}
