:root,
[data-bs-theme='light'] {
  --tep-default: #364850;
  --tep-body: #293233;
  --tep-green: #0af0c2;
  --tep-blue: #478cff;
  --tep-yellow: #f4f749;
  --tep-button-default: #f0f3f5;
  --tep-gray-100: #f7f9fa;
  --tep-gray-200: #eff4f5;
  --tep-gray-300: #dee5e6;
  --tep-gray-400: #d3dadb;
  --tep-teal: #3aafa1;

  --tep-gray-600: #a9b4b8;
  --tep-gray-700: #758085;
  --tep-gray-800: #5e6b70;
  --tep-gray-900: #51585c;

  --tep-main-title-color: var(--bs-gray-600);
  --tep-main-menu-item-color: var(--bs-gray-700);
  --tep-main-menu-bg-hover-color: var(--bs-primary-bg-subtle);
  --tep-main-menu-divider-color: var(--bs-gray-400);

  --tep-scrollbar-thumb: var(--bs-gray-400);
  --tep-scrollbar-thumb-hover: var(--bs-gray-500);

  --tep-header-color: var(--bs-gray-800);
  --tep-gradient-lower: #53a3a4;
  --tep-gradient-upper: #8bcdb0;
}

[data-bs-theme='dark'] {
  --tep-main-title-color: var(--bs-gray-300);
  --tep-main-menu-item-color: var(--bs-gray-200);
  --tep-main-menu-bg-hover-color: var(--bs-primary-bg-subtle);
  --tep-main-menu-divider-color: var(--bs-gray-600);
  --tep-scrollbar-thumb: var(--bs-gray-600);
  --tep-scrollbar-thumb-hover: var(--bs-gray-500);
  --tep-header-color: var(--bs-gray-200);
  --tep-gradient-lower: #2a5152;
  --tep-gradient-upper: #456658;
}

body {
  height: 100vh;
  width: 100vw;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: 'Rubik', sans-serif;
  /* font-weight: 300; */
}

/* header */
#header {
  background-color: #364850;
  padding: 8px 40px 8px 8px;
  width: 100%;
  color: white;
}

body[data-view='fullscreen'] .hide-fs {
  display: none !important;
}

body:not([data-view='fullscreen']) .show-fs {
  display: none !important;
}

.location-dropdown {
  color: white;
  background-color: rgba(0, 0, 0, 0.15);
  max-width: 150px;
  text-align: left;
  border: rgba(0, 0, 0, 0.15);
}

.location-dropdown:hover,
.location-dropdown:active,
.location-dropdown.show,
.location-dropdown:focus-visible,
.location-dropdown:focus {
  background-color: rgba(0, 0, 0, 0.25) !important;
  color: white !important;
  border: rgba(0, 0, 0, 0.15) !important;
}

/* Login */
.enrichery-logo {
  width: 128px;
}

.full-page {
  min-height: 0;
}

.form-button {
  width: 100%;
  color: white;
  font-size: 16px;
  border-radius: 3px;
  height: 48px;
  border: none;
  cursor: pointer;
  background: linear-gradient(#0000, rgb(0 0 0/10%)) top/100% 800%;
  background-color: #53a3a4;
  box-shadow: 0px 2px 2px 0px #00000014;
  transition: all 0.2s ease-in-out;
}

.form-button:hover {
  background-position: bottom;
}

h1 {
  color: var(--tep-header-color);
}

/* left sidebar */
.left-sidebar {
  background-color: var(--bs-tertiary-bg);
  min-width: 160px;
  max-width: 160px;
  /* height: calc(100vh - 56px); */
}

.left-sidebar .user-img {
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  display: block;
  border-radius: 50%;
}

.left-sidebar hr {
  color: var(--tep-main-menu-divider-color);
}

/* .left-sidebar .menu a {
    padding: 10px 13px;
    color: var(--tep-main-menu-item-color);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: -0.24px;
    border-radius: 6px;
}

.left-sidebar .menu a:hover {
    background: var(--tep-main-menu-bg-hover-color);
}

.left-sidebar .menu a:hover i {
    color: var(--bs-blue);
} */

.left-sidebar .profile-pic {
  display: block;
  width: 64px !important;
  height: 64px !important;
  min-width: none !important;
  max-width: none !important;
  min-height: none !important;
  max-height: none !important;
  border-radius: 50%;
  position: relative;
}

.left-sidebar .profile-pic:hover {
  filter: brightness(0.8);
  transition: 0.2s all ease-in-out;
}

.left-sidebar .profile-pic-text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
  font-family: 'Museo';
  color: white;
  font-size: 24px;
  letter-spacing: 0.05em;
}

/* .left-sidebar .menu i {
    color: var(--tep-gray-700);
    height: 20px;
    width: 20px;
    font-size: 20px;
} */

/* main content */
.main-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden; /* Reverted back from auto */
  height: 100%;
  position: relative;
}

.main-content .header {
  display: flex;
  border-bottom: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
}

.main-content .title {
  color: var(--bs-heading-color);
  font-size: 20px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 0.4px;
}

.table-title {
  color: var(--bs-heading-color);
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.2px;
}

.main-content .searchbox {
  width: 304px;
  background-color: #f8f9fa;
  border: 1px solid #dee5e6;
  border-radius: 4px;
  padding: 0px 10px;
}

.main-content .searchbox input {
  width: 234px;
  border: unset;
  outline: 0;
  background-color: transparent;
  color: #758085;
}

.main-content .btn-filter {
  width: 90px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f0f3f5;
  box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.08);
  border: 0;
  color: #364850;
  margin-right: 12px;
}

.main-content .btn-report {
  width: 140px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #0af0c2;
  box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.08);
  border: 0;
  color: #364850;
}

.main-content .prevBtn,
.main-content .nextBtn {
  min-width: 36px;
  max-width: 36px;
  min-height: 36px;
  max-height: 36px;
  border-radius: 50%;
  font-size: 12px;
  padding: 0;
  box-shadow: none;
  border: none;
}

.main-content .prevBtn::before {
  font-family: 'Font Awesome 6 Pro';
  content: '\f053';
}

.main-content .nextBtn::before {
  font-family: 'Font Awesome 6 Pro';
  content: '\f054';
}

.prevBtn:disabled,
.nextBtn:disabled {
  pointer-events: none;
  opacity: 50%;
}

.w-33:last-child {
  width: 34% !important;
}

.w-33 {
  width: 33% !important;
}

.disabled {
  pointer-events: none;
  opacity: 50%;
}

/* table */

/* .table-content {
    overflow-y: auto;
    flex: 1;
}

.table-content table {
    width: 100%;
}

.table-content thead {
    position: sticky;
    top: 0;
}

.table-content table tr:first-child th:first-child {
    border-top-left-radius: 4px;
}

.table-content table tr:first-child th:last-child {
    border-top-right-radius: 4px;
}

.table-content table tr:last-child td:first-child {
    border-bottom-left-radius: 4px;
}

.table-content table tr:last-child td:last-child {
    border-bottom-right-radius: 4px;
}

/* 
.table-content table thead {
    top: 0;
    position: sticky;
} */

/*.table-content table thead tr {
    background: #EFF4F5;
}

.table-content table thead tr th {
    color: #5E6B70;
    font-size: 12px;
    font-weight: 500;
    line-height: 14px;
    letter-spacing: -0.24px;
    text-transform: uppercase;
    padding: 13px 10px 13px 20px;
}

.table-content table tbody tr {
    padding: 0 8px;
    border-bottom: 1px solid #dee5e6;
    cursor: pointer;
}

.table-content table tbody tr:last-child {
    border-bottom: 0;
}

.table-content table tbody tr td {
    padding: 8px 10px 8px 20px;
    color: #5E6B70;
}

.table-content table tbody tr td a {
    color: #478CFF;
}

.table-content table tbody {
    background: #F7F9FA;
}

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

.table-content .dropdown-menu {
    border-radius: 6px;
    border: 1px solid #F7F9FA;
    background: #FFF;
    box-shadow: 0px 0px 2px 0px rgba(0, 0, 0, 0.06), 0px 8px 8px 0px rgba(0, 0, 0, 0.04), 0px 16px 24px 0px rgba(0, 0, 0, 0.06);
}

.table-content .dropdown-menu a {
    color: #364850;
}

.table-content .btn-tooltip {
    margin-left: -15px;
    outline: 0;
} */

.date::before {
  font: var(--fa-font-regular);
  content: '\f783';
  padding-right: 12px;
  color: var(--tep-gray-700);
}

.table-content tbody tr {
  height: 56px;
}

.summary-prompt {
  font-size: 16px;
  font-weight: 500;
  margin: 8px 0;
}

.summary-response {
  margin-bottom: 12px;
}

.summary-response *:not(li) {
  margin-bottom: 8px;
}

.profile-row-name {
  color: var(--tep-body);
}

.user-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.stats-portal .main-content .header {
  padding: 0;
}

.stats-portal .main-content .header h2 {
  border-bottom: 1px solid #eff4f5;
  padding: 0 20px 22px 28px;
}

.stats-portal .main-content .header .d-flex.justify-content-between {
  border-bottom: 1px solid #eff4f5;
}

#user-block h5 {
  color: #5e6b70;
  letter-spacing: 0.4px;
}

/* */
.table-block {
  border-radius: 6px;
  border: #f7f9fa;
  background: var(--White, #fff);
  box-shadow: 0px 0px 1px 0px rgba(33, 37, 41, 0.1), 0px 4px 3px 0px rgba(0, 0, 0, 0.04);
}

.table-block .header {
  margin-bottom: 20px;
}

.table-block .text-border {
  border-right: 1px solid #dee5e6;
  padding-right: 20px;
  margin-right: 20px;
  height: 40px;
}

.ellipsis-text {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  width: 70px;
}

.teal-gradient {
  background: -moz-linear-gradient(top, var(--tep-gradient-lower) 0%, var(--tep-gradient-upper) 100%);
  background: -webkit-linear-gradient(top, var(--tep-gradient-lower) 0%, var(--tep-gradient-upper) 100%);
  background: linear-gradient(to bottom, var(--tep-gradient-lower) 0%, var(--tep-gradient-upper) 100%);
}

.stats-portal .selectbox {
  border-radius: 8px;
  background: var(--secondary, radial-gradient(50% 50% at 50% 50%, #f5f8fa 0%, #f0f3f5 100%));
  box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.08);
  color: #364850;
}

/* profile detail right side */
.profile-detail {
  width: 320px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  background-color: var(--tep-gray-100);
  padding: 0 16px;
}

.form-label {
  opacity: 80%;
}

label.tep-details {
  color: var(--tep-gray-900);
}

.btn-theme {
  --bs-btn-active-bg: var(--bs-primary-bg-subtle);
  --bs-btn-active-border-color: var(--bs-primary-border-subtle);
  --bs-btn-focus-shadow-rgb: 49, 132, 253;
  background-color: var(--bs-tertiary-bg);
  border-color: var(--bs-tertiary-bg);
  height: 24px;
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-theme:first-child {
  border-radius: 12px 0 0 12px;
}

.btn-theme:last-child {
  border-radius: 0 12px 12px 0;
}

.btn-theme.selected,
.btn-theme:hover {
  background-color: var(--bs-primary-bg-subtle);
  border-color: var(--bs-primary-border-subtle);
}

.theme-light::before {
  font: var(--fa-font-regular);
  content: '\e28f';
}

.theme-light.selected::before {
  font: var(--fa-font-solid);
}

.theme-dark::before {
  font: var(--fa-font-regular);
  content: '\f755';
  transform: translateY(-1px);
}

.theme-dark.selected::before {
  font: var(--fa-font-solid);
}

.school::before {
  font: var(--fa-font-regular);
  content: '\f549';
  padding-right: 6px;
  font-size: 16px;
}

.email::before {
  font: var(--fa-font-regular);
  content: '\f0e0';
  padding-right: 6px;
  font-size: 16px;
}

.phone::before {
  font: var(--fa-font-regular);
  content: '\f095';
  padding-right: 6px;
  font-size: 16px;
}

.contact::before {
  font: var(--fa-font-regular);
  content: '\f007';
  padding-right: 6px;
  font-size: 16px;
}

.profile-detail .summary-container {
  padding: 0 !important;
}

@font-face {
  font-family: 'Museo';
  src: url('/fonts/Museo/Museo500-Regular.woff') format('woff'),
    url('/fonts/Museo/Museo500-Regular.woff2') format('woff2');
}

.far.fa-search {
  color: #a0acb0;
}

.summary-container {
  background-color: var(--bs-tertiary-bg);
}
/*
Table test
*/

.table-container {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: auto;
  box-sizing: border-box;
}

.table-header {
  position: sticky;
  top: 0;
  align-self: flex-start;
  display: flex;
  min-width: 100%;
  width: fit-content;
  justify-content: start;
  background-color: #eff4f5;
  color: #5e6b70;
  font-size: 12px;
  font-weight: 500;
  line-height: 14px;
  letter-spacing: -0.24px;
  text-transform: uppercase;
}

.table-header-cell,
.table-row-cell {
  min-width: 180px;
  max-width: 180px;
  display: flex;
  align-items: center;
}

.table-header-cell {
  padding: 0.5rem 1.5rem;
}

.table-row-cell {
  padding: 0.75rem 1.5rem;
}

.table-header,
.table-row {
  padding: 0.5rem 0;
}

.table-row-cell * {
  text-overflow: ellipsis;
  overflow: hidden;
}

.table-header-cell:not(:last-child) {
  border-right: 1px solid var(--tep-gray-300);
}

.table-row-cell:not(:last-child) {
  border-right: 1px solid var(--tep-gray-200);
}

.table-empty,
.table-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tep-gray-400);
  font-weight: 500;
  width: 100%;
  height: 100%;
  padding: 1rem;
  pointer-events: none;
}

.table-empty {
  font-size: 18px;
}

.table-loading {
  font-size: 32px;
}

.table-row {
  display: flex;
  justify-content: start;
  background-color: #f7f9fa;
  width: fit-content;
  min-width: 100%;
  color: #5e6b70;
  cursor: pointer;
  font-size: 14px;
}

.table-row:not(:last-child) {
  border-bottom: 1px solid var(--tep-gray-300);
}

.btn-open {
  --bs-btn-open-color: #000;
  --bs-btn-open-opacity: 0.5;
  --bs-btn-open-hover-opacity: 0.75;
  --bs-btn-open-focus-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
  --bs-btn-open-focus-opacity: 1;
  --bs-btn-open-disabled-opacity: 0.25;
  --bs-btn-open-white-filter: invert(1) grayscale(100%) brightness(200%);
  box-sizing: content-box;
  width: 1em;
  height: 1em;
  padding: 0.25em 0.25em;
  color: var(--bs-btn-open-color);
  border: 0;
  border-radius: 0.375rem;
  opacity: var(--bs-btn-open-opacity);
}

.btn-open.profile::before {
  font: var(--fa-font-solid);
  content: '\f007';
}

.btn-open:focus {
  box-shadow: var(--bs-btn-open-focus-shadow);
  opacity: var(--bs-btn-open-focus-opacity);
}

.btn-open:hover {
  color: var(--bs-btn-open-color);
  text-decoration: none;
  opacity: var(--bs-btn-open-hover-opacity);
}

.multicell {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid #ffc107;
  background-color: #fff8e1;
  color: #51585c;
  font-weight: 500;
  font-size: 12px;
  line-height: 14px;
  letter-spacing: -0.02;
  padding: 0.125rem 0.5rem;
  height: 24px;
}

.profile-header {
  font-size: 16px;
  font-weight: 500;
  color: #364850;
}

.hint-icon {
  font-size: 14px;
}

strong {
  font-weight: 500;
}

.tep-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 80%;
  height: 36px;
  padding: 0 8px;
  border-radius: 18px;
  border: 1px solid var(--tep-gray-600);
  background-color: none;
  color: var(--tep-default);
}

.tep-tag.selected {
  opacity: 100%;
  border: 1px solid var(--tep-blue);
  background-color: var(--tep-gray-300);
  transition: all 0.1s ease-in-out;
}

.modal-text {
  color: var(--tep-default);
  font-size: 16px;
}

.date-duration {
  color: var(--tep-default);
  font-size: 16px;
}

.time-duration {
  color: var(--tep-default);
  font-size: 12px;
}

a.profile-list-container {
  display: flex;
  align-items: center;
  width: 100%;
  height: 48px;
  border-radius: 24px;
  cursor: pointer;
  padding: 8px;
}

a.profile-list-container {
  text-decoration: none;
  color: var(--tep-default);
}

a.profile-list-container:hover {
  background-color: var(--tep-gray-200);
}

.tep-nav {
  background-color: var(--bs-tertiary-bg);
  border-radius: var(--bs-border-radius-pill) !important;
  padding: 0.5rem !important;
  justify-content: center !important;
  /* gap: 0.25rem !important; */
}

.offcanvas-title {
  font-weight: 400;
}

.tep-nav .nav-item {
  display: flex !important;
  justify-content: center !important;
  padding: 0 0.125rem;
}

.tep-nav .nav-item:first-child {
  padding-left: 0 !important;
}

.tep-nav .nav-item:last-child {
  padding-right: 0 !important;
}

.tep-nav .nav-link {
  display: flex !important;
  font-size: 0.9em !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--bs-body-color) !important;
  border-radius: var(--bs-border-radius-pill) !important;
  border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
  padding: 0.5rem !important;
  min-width: 120px;
}

.tep-nav .nav-link:hover {
  border: var(--bs-border-width) var(--bs-border-style) var(--bs-primary-border-subtle) !important;
}

.tep-nav .nav-link.active {
  border: var(--bs-border-width) var(--bs-border-style) var(--bs-primary-border-subtle) !important;
  background-color: var(--bs-primary-bg-subtle) !important;
  border-radius: var(--bs-border-radius-pill) !important;
}

/* ::-webkit-scrollbar {
    width: 0.75rem;
}

::-webkit-scrollbar-track {
    background-color: var(--bs-body-bg);
}

::-webkit-scrollbar-thumb {
    background-color: var(--tep-scrollbar-thumb);
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--tep-scrollbar-thumb-hover);
} */

.summary-container-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem;
  position: sticky;
  position: -webkit-sticky;
  background-color: var(--bs-body-bg);
  width: 100%;
  /* border-top: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color); */
  /* border-left: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color); */
  /* border-right: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color); */
  border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
}

.summary-container :not(h3) {
  font-size: 0.875rem;
}

.form-label-sm {
  font-size: 0.875rem;
}

.form-label-horizontal {
  margin-bottom: 0;
}

.tep-select-sm {
  font-size: 0.875rem;
}

.dropdown-sm {
  font-size: 0.875rem;
}

.form-check-label {
  opacity: 80%;
}

.text-bg-success {
  color: var(--bs-white) !important;
}

.home-page-dashboard-grid {
  /* --grid-rows: 1; */ /* No longer needed if using auto rows */
  /* --grid-row-height: 90px; */ /* Removed fixed height */
  position: relative;
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(12, minmax(90px, 1fr));
  /* grid-template-rows: repeat(var(--grid-rows), var(--grid-row-height)); */
  grid-auto-rows: auto; /* Let rows size automatically based on content */
  gap: 0.5rem;
  /* overflow: auto; */ /* REMOVED - Let inner containers handle scrolling */
  /* overflow-x: auto; */
}

.home-page-component {
  border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
  border-radius: 0.5rem;
  overflow: hidden;
}

.home-page-component-title {
  background-color: var(--bs-tertiary-bg);
  padding: 0.5rem;
  border-bottom: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
}

.fs-0875-rel {
  font-size: 0.875em;
}

.fs-0875 {
  font-size: 0.875rem;
}

.summary-simplified-card {
  background: var(--bs-body-bg);
  border-radius: 1rem;
  /* padding: 1rem; */
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.summary-simplified-card-title {
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.summary-simplified-card-body {
  background-color: var(--bs-tertiary-bg);
  padding: 1rem;
  border-radius: 0.5rem;
  width: 100%;
}

.summary-simplified-card-details {
  border-left: 4px solid var(--tep-teal);
  padding-left: 1rem;
}

.summary-simplified-card-heading {
  color: var(--tep-teal);
}

.date-day-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 3rem;
}

.date-day-label {
  display: flex;
  align-items: center;
  background-color: var(--bs-tertiary-bg);
  border-radius: 0.5rem;
  color: var(--tep-teal);
  font-size: 1.25em;
  padding: 0.5rem 0;
  margin: 0 3rem;
  z-index: 1001;
}

.resource-page-content h1,
.resource-page-content h2,
.resource-page-content h3 {
  color: #2771b3;
  font-family: 'Museo';
  font-weight: 600;
}
