body {
  font-family: -apple-system, BlinkMacSystemFont, Verdana, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: small;
  text-rendering: optimizelegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "liga", "kern";
  text-size-adjust: 100%;
}

img {
  border: 0;
  vertical-align: middle;
}

.stu_photo {
  border-radius: 1rem;
  height: 180px;
  width: 170px;
  object-fit: cover;
}

/* Block styles */
.blockOuter {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-radius: 12px;
  box-shadow: 0 2px 6px -1px rgba(0, 0, 0, 0.12),
    0 4px 12px -2px rgba(0, 0, 0, 0.08);
  position: relative;
  isolation: isolate;
  /* ensures inner blending doesn't bleed */
}

.blockOuter--temporary {
  background: linear-gradient(135deg, #9333ea, #7e22ce);

  &>.blockInner {
    border: 2px solid #9333ea;
  }
}

.blockInner {
  background: #ffffff;
  padding: 10px;
  border-radius: 6px 6px 10px 10px;
  border: 2px solid #2563eb;
}

.blockTitle {
  padding: 6px 8px 4px 8px;
  /* unchanged */
  color: #ffffff;
  font-weight: 600;
  font-size: 13px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.blockTitle img {
  height: 23px;
  width: auto;
}

.blockTitle i {
  font-size: 18px;
  padding: 2px;
  vertical-align: middle;
}

.logoArea {
  max-width: 2100px;
  margin: auto;
  display: flex;
  place-content: space-between;
  padding-bottom: 10px;
  padding-left: 10px;
  padding-right: 10px;
}

.menu {
  display: flex;
  place-items: center;
  min-width: max-content;
  max-width: 2100px;
  margin: auto;
  height: 60px;
}

.menuArea {
  background: #e1e5e917;
  border-top: 2px solid #e1e5e9;
  border-bottom: 2px solid #e1e5e9;
  margin-left: -8px;
  margin-right: -8px;
}

/* User Profile Card Styles */

.userProfileCard {
  background: #ffffff;
  border: 1px solid #edf2f7;
  border-radius: 16px;
  padding: 12px 16px;
  min-width: 260px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
}

.userAvatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 1px;
  box-shadow: 0 4px 6px -1px rgba(139, 92, 246, 0.3);
  flex-shrink: 0;
  position: relative;
}

.userInfo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
  /* allows text truncation to work */
}

.userName {
  font-weight: 700;
  font-size: 15px;
  color: #1e293b;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.userEmail {
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.settingsLink {
  color: #94a3b8;
  padding: 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
  margin-right: -8px;
  /* Alignment adjustment */
}

.settingsLink:hover {
  background-color: #f1f5f9;
  color: #475569;
}

.settingsLink svg {
  transition: transform 0.5s ease;
}

.settingsLink:hover svg {
  transform: rotate(90deg);
}

/* Responsive design for user profile card */
@media (max-width: 768px) {
  .userProfileCard {
    min-width: unset;
    padding: 10px;
    gap: 12px;
  }

  .userAvatar {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .userName {
    font-size: 14px;
  }

  .userEmail {
    display: none;
    /* Hide email on small screens to save space */
  }

  .userStatus {
    font-size: 10px;
    padding: 1px 6px;
  }
}

/* Footer styles */
.footerArea {
  padding-top: 28px;
  padding-bottom: 20px;
  text-align: center;
  font-size: 12px;
  color: #757575;
  border-top: 2px solid #e1e5e9;
  margin-left: -8px;
  margin-right: -8px;
  margin-top: 20px;
}

/* Core styles */
.spoiler {
  background-color: gray;
  color: transparent;
  font-size: large;
  padding-right: 15px;
}

.spoiler:hover {
  background-color: inherit;
  color: inherit;
}

.loginBack {
  background-color: #d5d6db;
}

.loginMain {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 260px;
  gap: 1rem;
}

.loginLogo {
  max-width: 650px;
}

.loginMainArea {
  background: #fafbff40;
  border-radius: 2rem;
  border: 1px solid #00000029;
  width: 350px;
  padding: 25px;
  margin: 5px;
  text-align: center;
}

.loginTitle {
  font-weight: bold;
  font-size: medium;
  text-align: center;
}

.loginNote {
  border: 2px solid #f8ba01;
  background: #fff3dd;
  margin-top: 4px;
  padding: 3px;
  text-align: center;
}

.loginWarning {
  border: 2px solid #f00;
  background: #ffd9da;
  margin-top: 4px;
  padding: 3px;
  text-align: center;
}

.logoutNote {
  border: 2px solid #78f57b;
  background: #d1fcd2;
  margin-top: 4px;
  padding: 3px;
  text-align: center;
}

/* Utility classes */
#verticaltextSAR {
  writing-mode: bt-rl;
}

:focus-visible {
  outline: none;
}

.boxTopText {
  color: #ffffff;
  font-weight: bold;
  margin-top: -2px;
  padding-bottom: 9px;
}

.boxSpacer {
  height: 5px;
}

.col {
  float: left;
}

.colClear {
  clear: both;
}

.divCol {
  display: inline;
  float: left;
}

.grayImage {
  -webkit-filter: grayscale(100%);
  filter: grayscale(100%);
}

.pageBody {
  max-width: 2100px;
  margin: auto;
  min-height: calc(100vh - 298px);
}

.home {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(550px, 1fr));
  gap: 1rem;
}

.homeCol {
  display: flex;
  flex-flow: column;
  gap: 1rem;
}

.home-dashboard-promo {
  position: relative;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(229, 103, 47, 0.35);
  background:
    radial-gradient(180px 140px at 90% 18%, rgba(31, 138, 112, 0.18), rgba(31, 138, 112, 0) 70%),
    radial-gradient(220px 190px at 12% 78%, rgba(242, 184, 75, 0.2), rgba(242, 184, 75, 0) 70%),
    linear-gradient(135deg, #fff2e7, #ffffff 55%);
  box-shadow: 0 18px 40px rgba(22, 18, 14, 0.18);
  overflow: hidden;
}

.home-dashboard-promo__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.home-dashboard-promo__badge {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  font-weight: 700;
  color: #7a3a1d;
}

.home-dashboard-promo__icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(229, 103, 47, 0.18);
  color: #7a3a1d;
  font-size: 1rem;
}

.home-dashboard-promo__title {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 6px;
  color: #1d1a16;
  font-family: "Space Grotesk", "Avenir Next", "Trebuchet MS", sans-serif;
}

.home-dashboard-promo__copy {
  margin: 0 0 12px;
  color: #3d352c;
  font-size: 0.9rem;
}

.home-dashboard-promo__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #e5672f;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 16px 32px rgba(229, 103, 47, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-dashboard-promo__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(229, 103, 47, 0.32);
}

.home-dashboard-promo__meta {
  margin-top: 12px;
  font-size: 0.78rem;
  color: #6b5a4e;
}

.home__empty {
  position: relative;
  flex: 1;
  min-height: clamp(320px, 55vh, 640px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
  color: #5b6473;
  border-radius: 0;
  border: none;
  overflow: hidden;
  background-color: transparent;
  background-image:
    radial-gradient(200px 180px at 30% 22%, rgba(56, 189, 248, 0.12), rgba(56, 189, 248, 0) 70%),
    radial-gradient(220px 200px at 68% 28%, rgba(167, 139, 250, 0.12), rgba(167, 139, 250, 0) 70%),
    radial-gradient(240px 220px at 42% 58%, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0) 72%),
    radial-gradient(210px 190px at 72% 62%, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0) 70%),
    radial-gradient(180px 160px at 52% 78%, rgba(148, 163, 184, 0.12), rgba(148, 163, 184, 0) 68%);
  box-shadow: none;
}

.home__empty::before {
  content: "";
  position: absolute;
  top: 22%;
  left: 12%;
  width: 240px;
  height: 210px;
  border-radius: 55% 45% 62% 38% / 58% 42% 55% 45%;
  background: radial-gradient(circle at 30% 35%, rgba(59, 130, 246, 0.16), rgba(59, 130, 246, 0) 60%),
    radial-gradient(circle at 70% 65%, rgba(16, 185, 129, 0.12), rgba(16, 185, 129, 0) 55%);
  filter: blur(8px);
  opacity: 0.85;
  transform: rotate(-8deg);
}

.home__empty::after {
  content: "";
  position: absolute;
  top: 58%;
  left: 55%;
  width: 260px;
  height: 230px;
  border-radius: 46% 54% 38% 62% / 48% 52% 58% 42%;
  background: radial-gradient(circle at 25% 30%, rgba(167, 139, 250, 0.16), rgba(167, 139, 250, 0) 60%),
    radial-gradient(circle at 70% 65%, rgba(14, 165, 233, 0.12), rgba(14, 165, 233, 0) 55%);
  filter: blur(10px);
  opacity: 0.85;
  transform: rotate(6deg);
}

.home__emptyInner::before {
  content: "";
  position: absolute;
  inset: -12% 6% auto 6%;
  height: 160px;
  background: radial-gradient(ellipse at center, rgba(148, 163, 184, 0.22), rgba(148, 163, 184, 0));
  filter: blur(12px);
  opacity: 0.55;
  z-index: -1;
}

.home__emptyInner::after {
  content: "";
  position: absolute;
  inset: auto 0 -30% 0;
  height: 140px;
  background: linear-gradient(120deg, rgba(148, 163, 184, 0), rgba(148, 163, 184, 0.25), rgba(148, 163, 184, 0));
  filter: blur(14px);
  opacity: 0.35;
  z-index: -1;
}

.home__emptyInner {
  position: relative;
  z-index: 1;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.home__emptyEyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: #4b5563;
  background: rgba(148, 163, 184, 0.18);
}

.home__emptyTitle {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 700;
  color: #6b7280;
}

.home__emptyCopy {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #7b8797;
}

@media (max-width: 900px) {
  .home__empty {
    min-height: 360px;
  }
}

@media (max-width: 600px) {
  .home__empty {
    padding: 24px;
  }

  .home__emptyTitle {
    font-size: 1.4rem;
  }

  .home__emptyCopy {
    font-size: 0.9rem;
  }
}

.mainTitle {
  font-size: 1.35rem;
  margin-bottom: 24px;
  font-weight: 700;
  text-align: center;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #1f4c8f;
  font-family: "Segoe UI", Tahoma, Verdana, Arial, sans-serif;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 6px;
  border-bottom: 2px solid #cbd5e1;
  text-underline-offset: 6px;
}

.subTitle {
  margin: 32px 0 16px;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-family: "Segoe UI", Tahoma, Verdana, Arial, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  color: #333;
}

.subTitle::before,
.subTitle::after {
  content: "";
  flex: 1 1 90px;
  height: 2px;
  box-shadow: none;
  border-radius: 999px;
  background: #cbd5e1;
  min-width: 60px;
  max-width: 140px;
}

.tabDivider {
  padding: 8px 12px;
  margin: 20px 0 14px;
  border-left: 4px solid #5f738a;
  background: #eef2f6;
  border-radius: 4px;
  font-weight: 600;
  color: #2f3b45;
}

.tabDivider::before {
  content: none;
}

/* List styles */
.listUnstyled {
  list-style-type: none;
  margin-block-start: unset;
  margin-block-end: unset;
  padding-inline-start: 0;
}

/* Page bars */
.barConfidential {
  border: 2px solid #ffd69d;
  background: #fff5d7;
  font-style: inherit;
  text-align: center;
  padding: 3px;
  margin-bottom: 2px;
}

.divBar {
  background: #d2eeff;
  border-bottom: 2px solid #0093ff;
  padding: 10px;
  margin: 10px 0;
  font-weight: bold;
}

/* Box styles */
.box {
  background: #fafbfc;
  border: 2px solid #d9e1e8;
  border-radius: 10px;
  padding: 18px;
  box-shadow: none;
  transition: box-shadow 0.3s ease;
}

.box--saved {
  border-color: #69ff37;
  background: #e2fcd8;
  margin-bottom: 5px;
  text-align: center;
}

.box--notfound {
  border-color: #f4a733;
  background: #fce3be;
  text-align: center;
}

.box--skeleton {
  border: 2px dashed #c5cdd5;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #7a8a99;
}

.box--error {
  border-color: #ff0000;
  background: #ffcccc;
}

.box--warn {
  border-color: #ff8e00;
  background: #fff1da;
}

.box--info {
  border-color: #93c9ff;
  background: #d2e8ff;
}

.box--banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin: 12px 0 18px 0;
  font-weight: 700;
  text-align: left;
}

.box--banner .box__tag {
  padding: 4px 8px;
  border-radius: 999px;
  letter-spacing: 0.08em;
  font-size: 11px;
  color: #ffffff;
}

.box--banner .box__text {
  font-size: 13px;
  letter-spacing: 0.02em;
}

.box--banner.box--saved .box__tag {
  background: #059669;
}

.box--banner.box--info .box__tag {
  background: #1d4ed8;
}

.box--banner.box--warn .box__tag,
.box--banner.box--notfound .box__tag {
  background: #b45309;
}

.box--banner.box--error .box__tag {
  background: #dc2626;
}

.box--clickable {
  cursor: pointer;
}

.box--clickable:hover {
  border-color: #0093ff;
  color: #0093ff;
  background: #f0f8ff;
}

/* Shared page title header */
.page-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  text-align: center;
  margin: 0 0 20px;
}

.page-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #1d4ed8;
  font-family: "Segoe UI", Tahoma, Verdana, Arial, sans-serif;
  padding-bottom: 6px;
  border-bottom: 2px solid #cbd5e1;
}

.page-subtitle {
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 500;
  letter-spacing: 0.01em;
  font-family: "Segoe UI", Tahoma, Verdana, Arial, sans-serif;
}

/* Favourites styles */
.favButtonGroup {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 480px;
  max-width: 100%;
  margin: 0 auto 10px;
  padding: 4px;
  border-radius: 999px;
  background: #eef2f7;
  border: 1px solid #cbd5e1;
}

.favButton {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: #1f4c8f;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.favButton i {
  font-size: 0.95em;
}

.favButton:hover {
  border-color: #b3c7e6;
  background: #dbe7f7;
}

.favButton.active {
  border-color: #3b82f6;
  background: #cfe5ff;
  color: #0b2f66;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.15);
}

/* GrayBlock styles */
.grayBlock {
  position: relative;
  cursor: pointer;
  background: #f0f0f0;
  padding: 7px;
  width: 180px;
  height: 90px;
  transition: 0.5s ease;
}

.grayBlock:hover {
  background: #e1e1e1;
  transition: 0.5s ease;
}

.grayBlock>.blockSpacedTitle {
  margin: 10px 0;
  font-weight: bold;
}

.grayBoxButtonBL {
  position: absolute;
  bottom: 5px;
  right: 5px;
}

/* Expand Derivative styles */
.expandBlock {
  background: #f0f0f0;
  padding: 10px 12px;
  margin-bottom: 5px;
  cursor: pointer;
  transition: 0.2s ease;
  border-radius: 6px;
}

.expandBlock::before {
  content: "\25B6";
  display: inline-block;
  margin-right: 8px;
  font-size: 0.7em;
  transition: transform 0.2s ease;
}

.expandBlock[show="1"]::before {
  transform: rotate(90deg);
}

.expandBlock:hover {
  background: #e4e4e4;
}

.expandBlock>div {
  background: #fff;
  margin: 10px -10px -8px -10px;
  padding: 10px;
  display: none;
  border-radius: 0 0 4px 4px;
}

/* Search table styles */
.searchTable {
  border-spacing: 0;
  border-radius: 10px;
  overflow: clip;
  border-collapse: collapse;
  /* Performance: isolate table from external layout changes */
  contain: layout style paint;
}

.fixedLayout {
  table-layout: fixed;
}

/* Performance: skip rendering offscreen rows */
.searchTable tbody {
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}

.searchTable th,
td {
  padding: 7px;
}

.searchTable tbody td:not(:last-child) {
  border-right: 1px solid #eee;
}

.searchTable tbody tr:nth-of-type(even):not(:first-child) {
  border-bottom: 1px solid transparent;
}

.searchTable tbody tr:nth-of-type(odd):not(:first-child) {
  background-color: #f8f9fa;
  border-bottom: 1px solid transparent;
}

/* Optimized hover: only paint change, no layout shift */
.searchTable tbody tr:hover:not(:first-child) {
  background-color: #add8e655;
}

.searchTableTop {
  height: 40px;
  background: linear-gradient(to bottom, #5c7eb0 0%, #40628d 100%);
  color: #ffffff;
}

.searchTableTopSticky {
  height: 40px;
  background: linear-gradient(to bottom, #5c7eb0 0%, #40628d 100%);
  color: #ffffff;
  position: sticky;
  top: -1px;
  z-index: 1;
  /* ensure it paints above rows */
}

.searchTableBottom {
  height: 28px;
  background: linear-gradient(to bottom, #f5f5f5 0%, #e0e0e0 100%);
  border-top: 1px solid #999999;
  font-size: 0.6rem;
  font-weight: bold;
}

/* Skeleton loading state for search table */
.searchTable--skeleton {
  opacity: 0.7;
}

.searchTable--skeleton .skeleton-line {
  height: 14px;
  background: linear-gradient(90deg,
      #e0e0e0 0%,
      #f0f0f0 20%,
      #e0e0e0 40%,
      #e0e0e0 100%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: 4px;
  display: inline-block;
  width: 100%;
}

.searchTable--skeleton .skeleton-line--short {
  width: 40%;
}

.searchTable--skeleton .skeleton-line--medium {
  width: 60%;
}

.searchTable--skeleton .skeleton-line--long {
  width: 80%;
}

.searchTable--skeleton .skeleton-checkbox {
  width: 16px;
  height: 16px;
  background: linear-gradient(90deg,
      #e0e0e0 0%,
      #f0f0f0 20%,
      #e0e0e0 40%,
      #e0e0e0 100%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: 3px;
  display: inline-block;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Subject report styles */
.reportBox {
  border: 1px solid #666;
  background: #fff;
  padding: 6px;
}

/* Checkbox styles */
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid #2587d8;
  border-radius: 3px;
  background: #ffffff;
  display: inline-block;
  vertical-align: middle;
  cursor: pointer;
  position: relative;
}
input[type="checkbox"]:checked {
  background: #2587d8;
  border-color: #1f6db2;
}
input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
input[type="checkbox"]:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(37, 135, 216, 0.35);
}
input[type="checkbox"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #f2f2f2;
  border-color: #b9c9db;
}

/* Button styles */
.but {
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  height: 32px;
  padding: 0 16px;
  border-radius: 0.45rem;
  min-width: 96px;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
  text-decoration: none;
  color: #0f2f57;
  border: 2px solid #2b76c7;
  background: #e2f0ff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

.but:hover {
  background: #d2e7ff;
  border-color: #1f6db2;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.but:active {
  transform: translateY(1px);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.18);
}

.but:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #b8d8ff, 0 1px 2px rgba(15, 23, 42, 0.1);
}

/* Button modifiers (BEM-style) */
.but--danger {
  color: #7f1d1d;
  border-color: #ef4444;
  background: #fee2e2;
}

.but--danger:hover {
  background: #fecaca;
  border-color: #dc2626;
}

.but--warning {
  color: #7a4b0f;
  border-color: #f59e0b;
  background: #fef3c7;
}

.but--warning:hover {
  background: #fde68a;
  border-color: #d97706;
}

.but--disabled {
  cursor: not-allowed;
  color: #6b7280;
  background-color: #e5e7eb;
  border: 2px solid #c7cdd6;
  box-shadow: none;
  opacity: 0.7;
}

.but--disabled:hover {
  background-color: #e5e7eb;
  border-color: #c7cdd6;
  box-shadow: none;
}

.but--success {
  color: #0f5132;
  border-color: #10b981;
  background: #d1fae5;
}

.but--success:hover {
  background: #a7f3d0;
  border-color: #059669;
}

.filterButton {
  display: inline-block;
  width: -moz-fit-content;
  width: fit-content;
  padding: 6px;
  margin: 0 2px;
  text-decoration: none;
  color: #1f2937;
  border: 2px solid #8b95a1;
  border-radius: 0.3rem;
  background: #e6e9ee;
  text-align: center;
  cursor: pointer;
  transition: 0.3s ease;
}

.filterButton:hover {
  background: #d8dde4;
  border-color: #748091;
}

.filterButton:focus-visible {
  border-color: #3b82f6;
  background: #dbe7f7;
  box-shadow: 0 0 0 2px #b3d4ff;
}

.filterButton.selected {
  color: #0b2f66;
  border: 2px solid #3b82f6 !important;
  background: #cfe5ff !important;
}

.filterButton.selected:focus-visible {
  box-shadow: 0 0 0 2px #99c7ff;
}

.home-filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}

/* Report headlines */
.headline__report {
  margin: 30px auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  width: fit-content;
  text-align: center;
}

.headline__report>div {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #40628d;
  color: #374151;
  flex: 1 1 0;
  min-width: 180px;
  border-radius: 6px;
  padding: 12px 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.headline__report>div>span {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  text-transform: none;
  letter-spacing: normal;
  white-space: nowrap;
}

.subheadline__report {
  border-left-color: #059669 !important;
}

.subheadline__report>span {
  color: #059669 !important;
}

.headline__report--danger {
  border-left-color: #dc2626 !important;
  background: #fef2f2 !important;
}

.headline__report--danger>span {
  color: #dc2626 !important;
}

.headline__report--primary {
  border-left-color: #2563eb !important;
}

.headline__report--primary>span {
  color: #2563eb !important;
}

.headline__report--purple {
  border-left-color: #7c3aed !important;
}

.headline__report--purple>span {
  color: #7c3aed !important;
}

/* Text styles */
.textEllipsis {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.small-label {
  display: inline-block;
  font-size: 0.75rem;
  color: #ffffff;
  background-color: #007bff;
  padding: 3px 6px;
  border-radius: 12px;
  letter-spacing: 1px;
  line-height: 1;
}

.status-list {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.status-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px;
  border-bottom: 1px solid #e5e5e5;
}

.status-item:last-child {
  border-bottom: none;
}

.status-name {
  font-weight: 500;
}

.status-details {
  display: flex;
  align-items: center;
}

.status-text {
  color: #4b5563;
  margin-right: 5px;
}

.status-icon {
  width: 20px;
  height: 20px;
  margin-right: 5px;
}

.status-time {
  font-size: 12px;
}

/* jQuery styles */
.jqHide {
  display: none;
}

.jqShow {
  display: block;
}

.jqShowFlex {
  display: flex;
}

#tabs:not(.ui-tabs) {
  visibility: hidden;
}

.ui-tooltip {
  border-radius: 0.5rem;
  box-shadow: 0 0 2px darkgrey;
}

.ui-tabs-nav {
  border-bottom-right-radius: 0px;
  border-bottom-left-radius: 0px;
}

/* ===================================
   Filter Panel Styles (Reusable)
   =================================== */

.filter-form {
  align-self: flex-start;
  position: sticky;
  top: 20px;
  min-width: 320px;
  max-width: 320px;
  margin-bottom: 20px;
  overflow: hidden;
  /* Performance: isolate from adjacent content */
  contain: layout style;
}

/* Enable transitions only after page load (prevents initial flash) */
.filter-form.loaded {
  /* Opacity-only animation: THE cheapest GPU animation possible */
  transition: opacity 0.2s ease-out;
}

/* Collapsed state */
.filter-form.collapsed {
  width: 40px;
  min-width: 40px;
  flex-shrink: 0;
  padding: 10px 0;
  cursor: pointer;
}

.filter-form.collapsed:hover {
  background-color: #f0f9ff;
  border-color: #bae6fd;
}

/* Hide children INSTANTLY when collapsed (no flicker) */
.filter-form.collapsed > *:not(.filter-collapsed-title) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  position: absolute;
  /* No transition = instant hide */
}

/* Fade in children when expanded */
.filter-form:not(.collapsed) > *:not(.filter-collapsed-title) {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s ease-out;
}

/* Toggle button (hamburger icon) */
.filter-toggle-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  cursor: pointer;
  color: #6b7280;
  transition: background 0.2s, color 0.2s;
  z-index: 10;
}

.filter-toggle-btn:hover {
  background-color: #f3f4f6;
  color: #374151;
}

/* Collapsed title (icon shown when collapsed) */
.filter-collapsed-title {
  display: none;
  font-size: 18px;
  color: #4b5563;
  height: 100%;
  width: 100%;
  align-items: center;
  justify-content: center;
}

.filter-form.collapsed .filter-collapsed-title {
  display: flex;
}

.filter-form.collapsed:hover .filter-collapsed-title {
  color: #0284c7;
}

@media (max-width: 1199px) {
  /* Default to collapsed on small screens to prevent FOUC */
  .filter-form:not(.overlay-mode) {
    width: 40px;
    min-width: 40px;
    flex-shrink: 0;
    padding: 10px 0;
    cursor: pointer;
  }

  .filter-form:not(.overlay-mode) > *:not(.filter-collapsed-title) {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    position: absolute;
  }

  .filter-form:not(.overlay-mode) .filter-collapsed-title {
    display: flex;
  }
}

/* Overlay Expanded State - Now available on desktop too */
.filter-form.overlay-mode {
  position: fixed;
  z-index: 1000;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  background-color: #ffffff;
  border: 1px solid #e1e5e9;
}

.filter-form.is-sticky {
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.04), 0 4px 14px -4px rgba(0, 0, 0, 0.12);
}

.filter-form h4,
.filter-form .filter-heading {
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: 0.5px;
  font-weight: 600;
  text-transform: uppercase;
  color: #4b5563;
}

.filter-section {
  margin-top: 14px;
  padding-top: 7px;
  border-top: 1px solid #eef2f5;
}

.filter-form>h4+.filter-section,
.filter-form>h4+*>.filter-section:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
}

.filter-grid.single {
  grid-template-columns: 1fr;
}

.filter-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-row label {
  font-weight: 600;
  color: #374151;
  font-size: 12px;
  letter-spacing: 0.3px;
}

.filter-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.filter-actions .but,
.filter-actions .but--danger,
.filter-actions .but but--danger {
  flex: 1;
  font-size: 13px;
  padding: 8px 10px;
}

.filter-sub-legend {
  font-size: 11px;
  font-weight: 500;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-hint {
  color: #6b7280;
  font-size: 11px;
  line-height: 1.2;
  display: block;
  margin-top: 2px;
}

/* Uniform input sizing within filters */
.filter-form .filter-row .input,
.filter-form .filter-row select.input,
.filter-form .filter-row input.input {
  width: 100%;
  box-sizing: border-box;
}

.filter-form .inputWithSuffix {
  width: 100%;
}

.filter-form .inputWithSuffix>.input {
  flex: 1 1 auto;
  width: 100%;
}

.filter-tag-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Filter Toggle Row - for toggle options inside filter forms */
.filter-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-toggle:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.filter-toggle__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  user-select: none;
}

.filter-toggle__label i {
  color: #64748b;
  width: 16px;
  text-align: center;
}

.filter-toggle--active {
  background: #eff6ff;
  border-color: #93c5fd;
}

.filter-toggle--active .filter-toggle__label {
  color: #1d4ed8;
}

.filter-toggle--active .filter-toggle__label i {
  color: #3b82f6;
}

.filter-toggle--active .toggle-switch__slider {
  background-color: #2196F3;
}

.filter-toggle--active .toggle-switch__slider:before {
  transform: translateX(20px);
}

/* Toggle Switch Styles */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  /* Adjust width and height to make it smaller if needed */
  height: 20px;
  vertical-align: middle;
}

.toggle-switch__input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-switch__slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 20px;
  /* Make it round */
}

.toggle-switch__slider:before {
  position: absolute;
  content: "";
  height: 16px;
  /* Slider circle size */
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 50%;
  /* Make it round */
}

.toggle-switch__input:checked+.toggle-switch__slider {
  background-color: #2196F3;
  /* Blue when checked */
}

.toggle-switch__input:focus+.toggle-switch__slider {
  box-shadow: 0 0 1px #2196F3;
}

.toggle-switch__input:checked+.toggle-switch__slider:before {
  -webkit-transform: translateX(20px);
  /* Move slider to the right */
  -ms-transform: translateX(20px);
  transform: translateX(20px);
}
