:root {
  --sidebar-width: 260px;
  --bg-primary: #fff;
  --gray1: #f8fafc;
  --gray2: #f2f2f7;
  --gray3: #eaeaec;
  --text1: #2c3e50;
  --text2: #34495e;
  --highlight: #fffde7;
  --gray: #6c757d; /* Secondary actions */
}
.btn-sm{
 padding: .065rem .323rem;
 font-size: 0.687rem;
}
/* Pagination Styles */
.page-item .page-link {
  background-color: var(--gray2);
  font-size: 0.687rem;
}

.page-item.active .page-link {
  background: var(--text1);
  border-color: var(--text1);
}

/* Body and Layout */
body {
  font-family: "Lexend", sans-serif;
  background: var(--bg-primary);
  height: auto;
  overflow: auto;
  font-size: 0.687rem;
}

.main-wrapper {
  display: flex;
  height: 100vh;
  padding-top: 10px;
}

.sidebar {
  width: var(--sidebar-width);
  background: var(--gray1);
  color: var(--text1);
  padding: 1rem;
  position: fixed;
  left: 0;
  height: calc(100vh - 42px);
  overflow-y: auto;
  transition: transform 0.3s;
}

.sidebar .page-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text1);
  text-align: center;
  margin-top: 10px;
  padding-bottom: 0.5rem;
}

.sidebar .sec-heading {
  color: var(--text1);
  font-size: 0.687rem;
  font-weight: 500;
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
}
.sidebar .dark-text {
  color: var(--text1);
}
.sidebar .gray-text {
  color: var(--gray);
}
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  overflow: hidden;
  background: var(--bg-primary);
}

/* Table Container */
.table-container {
  width: 100%;
  overflow-x: auto;
  position: relative;
  background-color: var(--bg-primary);
}

.table-body-container {
  overflow-x: auto;
  max-width: 100%;
}

/* Sticky Table */
.sticky-table {
  width: 100%;
  min-width: 1200px;
  border-collapse: collapse;
  table-layout: fixed;
}

.sticky-table thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 7px 10px;
  font-weight: 600;
  color: var(--text2);
  background-color: var(--gray2);
  font-size: 0.615rem;
  text-wrap: nowrap;
}

.sticky-table th[data-sticky],
.sticky-table td[data-sticky] {
  position: sticky;
  z-index: 11;
}
.sticky-table th[data-sticky] {
  background-color: var(--gray2);
}
.sticky-table td[data-sticky] {
  background-color: var(--gray1);
}

.sticky-table th,
.sticky-table td {
  min-width: auto;
  white-space: nowrap;
  text-align: center;
}
.sticky-table tbody td.pointer {
  cursor: pointer;
}
.sticky-table tbody td {
  padding: 5px 2px;
  color: var(--text2);
  font-size: 0.615rem;
  border: 1px solid var(--gray3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sticky-table tbody tr:hover {
  background-color: var(--gray1);
}
.page-link {
  padding: 2px 7px;
}
.custom-tooltip {
  background-color: #333;
  color: #fff;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.687rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  display: none;
  pointer-events: none;
}
.custom-tooltip:after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}
input.form-control-sm,
select.form-select-sm {
  font-size: 0.687rem;
}
/* Scrollbar Styling */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--gray) var(--gray2);
}
*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: var(--gray2);
  border-radius: 12px;
}

*::-webkit-scrollbar-thumb {
  background: var(--gray);
  border-radius: 12px;
  border: 2px solid var(--gray2);
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--text1);
}
