:root {
  --ui-primary: #00173b;
  --ui-primary-soft: #f1f4fa;
  --ui-surface: #ffffff;
  --ui-surface-muted: #f8fafd;
  --ui-surface-background: linear-gradient(130deg, rgba(18, 18, 18, 1) 0%, rgba(0, 23, 59, 1) 55%, rgba(0, 23, 59, 1) 100%);
  --ui-border: #e4e9f4;
  --ui-border-strong: #cfd7e5;
  --ui-text: #00173b;
  --ui-text-muted: #5c6675;
  --ui-shadow-md: 0 12px 26px rgba(0, 23, 59, 0.08);
  --ui-shadow-lg: 0 16px 36px rgba(0, 23, 59, 0.1);
  --ui-shadow-xl: 0 18px 40px rgba(0, 23, 59, 0.28);
  --ui-radius-md: 12px;
  --ui-radius-lg: 14px;
}

/* ======================================== BASE + PAGE ======================================== */

@keyframes fadeInAnimation {
  0% {
    opacity: 0.1;
  }

  100% {
    opacity: 1;
  }
}

html,
body {
  margin: 0;
  font-family: "Sen", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--ui-surface-background);
  color: var(--ui-text);
  animation: fadeInAnimation ease 3s;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}

.content {
  flex-grow: 1;
  overflow: auto;
  padding-top: 1.1rem;
  min-height: 0;
}

/* ===== SLPE Custom Scrollbar ===== */

/* WebKit (Chrome, Edge, Safari) */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--ui-primary-soft);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb {
  background: var(--ui-primary);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #00306b;
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--ui-primary) var(--ui-primary-soft);
}

h1:focus {
  outline: none;
}

.invalid {
  outline: 1px solid #e50000;
}

.validation-message {
  color: #e50000;
}

.blazor-error-boundary {
  background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem,
  #b32121;
  padding: 1rem 1rem 1rem 3.7rem;
  color: white;
}

.blazor-error-boundary::after {
  content: "An error has occurred.";
}

#blazor-error-ui {
  background: #b32121;
  color: #fff;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.2);
  display: none;
}

#blazor-error-ui .reload {
  color: #fff;
  text-decoration: underline;
  font-weight: 700;
  margin-left: 0.75rem;
}

#blazor-error-ui .dismiss {
  cursor: pointer;
  margin-left: 0.75rem;
  font-weight: 700;
}

.darker-border-checkbox.form-check-input {
  border-color: #929292;
}

/* ======================================== WEBFONTS ======================================== */

@font-face {
  font-family: "Sen";
  src: url("webfonts/Sen-Regular.ttf");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Sen";
  src: url("webfonts/Sen-Bold.ttf");
  font-weight: 700;
  font-style: normal;
}

/* ======================================== TYPOGRAPHY ======================================== */

.heading-bg {
  font-size: 1.4rem;
  color: white;
  font-weight: 600;
  background-color: var(--ui-primary);
  text-transform: uppercase;
  padding: 1rem 1rem;
  margin: 0 0 1.5rem 0;
  border-radius: var(--ui-radius-md);
  text-align: center;
  box-shadow: var(--ui-shadow-md);
  border: 1px solid var(--ui-primary);
  transition: all 0.3s ease;
}

.subheading {
  position: relative;
  font-size: 0.9rem;
  color: white;
  font-weight: 100;
  background-color: var(--ui-primary);
  text-transform: uppercase;
  padding: 1rem 1rem;
  margin: 1.5rem 0;
  border-radius: var(--ui-radius-md);
  text-align: center;
  box-shadow: var(--ui-shadow-md);
  border: 1px solid var(--ui-primary);
  transition: all 0.3s ease;
}

h1,
h2,
h3,
h4,
h5 {
  font-weight: 700;
  letter-spacing: -0.02rem;
}

h1 {
  font-size: 4rem;
  line-height: 4rem;
  margin-bottom: 2.4rem;
}

h2 {
  font-size: 2.4rem;
  line-height: 2.8rem;
  margin-bottom: 2rem;
}

h3 {
  font-size: 1.6rem;
  line-height: 2rem;
}

h4 {
  font-size: 1.2rem;
  line-height: 1.6rem;
}

h5 {
  font-size: 1.1rem;
  line-height: 1.6rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
}

.border-bottom {
  margin: 0 auto;
  padding: 8px 0;
  border-bottom: solid 1px #d8dde6;
}

.section-heading-text {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ui-text-muted);
  margin-bottom: 1rem;
}

.section-heading-text::before,
.section-heading-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--ui-border-strong);
}

.custom-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ui-text-muted);
  font-weight: 700;
}

@media only screen and (max-width: 576px) {
  h1 {
    font-size: 3.2rem;
    line-height: 3.2rem;
  }

  h2 {
    font-size: 2.2rem;
    line-height: 2.4rem;
  }

  h3 {
    font-size: 1.4rem;
    line-height: 1.8rem;
  }
}

/* ======================================== LAYOUT HELPERS ======================================== */

.custom-page-shell {
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-lg);
  box-shadow: var(--ui-shadow-md);
  margin: 20px auto;
  background-color: var(--ui-surface);
  overflow-x: auto;
  width: calc(100% - 40px);
  max-width: calc(100% - 40px);
  min-height: calc(100vh - 40px);
  animation: fadeInAnimation ease 2s;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}

@media (max-width: 575.98px) {
  .custom-page-shell {
    margin: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    min-height: 100vh;
  }
}

/* ── Bootstrap xl → xxl breakpoint shift ─────────────────────────────────
   Bootstrap's xl breakpoint (≥1200px) is too wide for 14" laptops (~1366px)
   once the 275px sidebar is accounted for. This rule forces any col-xl-6
   inside a custom-page-shell card to stay full-width until xxl (≥1400px),
   collapsing to single-column on 14" screens without touching Razor markup.
   Specificity: 2 classes (0,2,0) beats Bootstrap's single-class (0,1,0). */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .custom-page-shell .col-xl-6 {
    width: 100%;
  }
}

/* ── Two-column history/card grid gap utility ─────────────────────────────
   Symmetric 0.5rem column gutters for two-column card grids.
   Breakpoint matches the xl→xxl shift above so gap only applies when
   the grid is actually two columns (≥1400px). */
@media (min-width: 1400px) {
  .history-two-col-gap > .col-xl-6:nth-child(odd) {
    padding-right: 0.5rem;
  }

  .history-two-col-gap > .col-xl-6:nth-child(even) {
    padding-left: 0.5rem;
  }
}

.fatigue-layout {
  gap: 12px;
}

.load-bg {
  filter: blur(5px);
  pointer-events: none;
  transition: all 0.3s ease-in-out;
}

  .page-width {
    width: 100%;
    max-width: calc(100% - 40px);
    margin-left: auto;
    margin-right: auto;
  }
  

/* ======================================== FORM CONTROLS ======================================== */

.label-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  min-height: 1.5rem;
}

.label-container-table {
  align-items: center;
}

table .label-container-table,
.table .label-container-table {
  display: none;
}

input[type="text"],
select,
.e-input-group.e-control-wrapper {
  width: 100%;
  padding: 10px 12px;
  margin: 4px 0;
  height: 44px;
  box-sizing: border-box;
  border: 1px solid var(--ui-border-strong);
  border-radius: 10px;
  font-size: 0.95rem;
  background: #f8fafc;
  color: var(--ui-text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.e-input-group:focus-within,
.e-input-group.e-control-wrapper:focus-within {
  border-color: var(--ui-primary) !important;
  box-shadow: 0 0 0 3px rgba(0, 23, 59, 0.12) !important;
  background: #ffffff;
}

.e-input-group:focus,
.e-input-group.e-control-wrapper:focus,
select:focus {
  border-color: var(--ui-primary) !important;
  box-shadow: 0 0 0 3px rgba(0, 23, 59, 0.12) !important;
  outline: none;
}

.input-adornment-container {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
}

.input-adornment-inline {
  margin-top: 0;
}

.input-adornment-inline .custom-textbox,
.custom-textbox.input-inline {
  margin-top: 0;
  margin-bottom: 0;
}

.label-container + .input-adornment-container {
  margin-top: 0.25rem;
}

.input-adornment-container.switch {
  height: 48px;
}

.input-adornment {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--ui-text-muted);
  font-size: 0.875rem;
}

.custom-textbox {
  width: 100%;
  padding: 10px 12px;
  margin: 4px 0;
  height: 44px;
  box-sizing: border-box;
  border: 1px solid var(--ui-border-strong);
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: #f8fafc;
  color: var(--ui-text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  -moz-appearance: textfield;
}

.custom-textbox:focus {
  border-color: var(--ui-primary) !important;
  box-shadow: 0 0 0 3px rgba(0, 23, 59, 0.12) !important;
  background: #ffffff;
  outline: none;
}

.custom-textbox:disabled {
  background-color: lightgrey;
}

.form-check-input:checked {
  border-color: var(--ui-primary);
  background-color: var(--ui-primary);
}

.form-check-input:focus {
  border-color: var(--ui-primary);
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(0, 23, 59, 0.25);
}

.select-attr {
  cursor: pointer;
}

.custom-radio {
  accent-color: var(--ui-primary);
}

.custom-checkbox .e-frame.e-check {
  background-color: var(--ui-primary) !important;
  border-color: var(--ui-primary) !important;
}

.custom-checkbox .e-frame {
  border-radius: 4px;
}

.custom-checkbox {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  accent-color: var(--ui-primary);
}

.custom-checkbox input {
  width: 18px;
  height: 18px;
}

.custom-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
  margin: 0 0.5rem;
}

.custom-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.custom-switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #fff;
  border: 2px solid darkgray;
  border-radius: 34px;
  transition: background-color 0.2s, border-color 0.2s;
}

.custom-switch .slider::before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 2px;
  top: 2px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.custom-switch input:checked + .slider {
  background-color: var(--ui-primary);
  border-color: darkgray;
}

.custom-switch input:checked + .slider::before {
  transform: translateX(22px);
}

.custom-switch input:focus + .slider {
  box-shadow: 0 0 0 3px rgba(0, 23, 59, 0.12);
  outline: none;
}

.toggle-text .form-check-label {
  color: var(--ui-primary);
  font-weight: 600;
  padding: 8px 14px;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

/* ======================================== BUTTONS + TOGGLES ======================================== */

.toggle-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 2px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  font-family: "Sen", sans-serif !important;
  font-size: 0.85rem;
  font-weight: bold;
  transition: background-color 0.3s, color 0.3s;
}

.toggle-button.toggled {
  background-color: var(--ui-primary);
  color: white;
}

.toggle-button.not-toggled {
  background-color: lightgrey;
  color: black;
}

.custom-button,
.e-btn.e-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 10px;
  padding: 0.5rem 1.1rem;
  font-weight: 700;
  font-family: "Sen", sans-serif !important;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
  line-height: 1.2;
  text-decoration: none;
}

.icon-button-ghost {
  width: 2.25rem;
  height: 2.25rem;
  min-width: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ui-text);
  border: 1px solid transparent;
  box-shadow: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.icon-button-ghost:hover {
  background: var(--ui-primary-soft);
  border-color: var(--ui-border-strong);
  transform: translateY(-1px);
}

.icon-button-ghost:active {
  transform: translateY(0);
}

.icon-button-ghost i {
  margin: 0;
}

.icon-button,
.e-btn.e-custom.icon-button {
  width: 2rem;
  height: 2rem;
  padding: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.icon-button i {
  margin: 0;
}

.custom-button--primary,
.e-btn.e-custom {
  background: var(--ui-primary);
  color: #fff;
  border-color: var(--ui-primary);
  box-shadow: 0 8px 14px rgba(0, 23, 59, 0.12);
}

.custom-button--primary:hover,
.e-btn.e-custom:hover {
  background: #001131;
  border-color: #001131;
  box-shadow: 0 12px 22px rgba(0, 23, 59, 0.16);
}

.custom-button--ghost,
.e-btn.e-custom.custom-button--ghost {
  background: var(--ui-primary-soft);
  color: var(--ui-text);
  border-color: var(--ui-border-strong);
  box-shadow: none;
}

.custom-button--ghost:hover,
.e-btn.e-custom.custom-button--ghost:hover {
  background: #e8effc;
}

.custom-button--wide {
  min-width: 15rem;
  height: 3rem;
}

.e-btn:disabled {
  background-color: grey;
}

.e-btn:disabled:hover {
  background-color: grey;
  box-shadow: none;
}

.transparent-button {
  background-color: transparent !important;
  border: none !important;
  cursor: pointer;
  padding: 0;
  margin-right: 8px;
}

.drag-icon {
  background-color: transparent !important;
  border: none !important;
  cursor: grab;
}

.transparent-button:focus {
  outline: none;
  cursor: pointer;
}

/* ======================================== SYNCFUSION + ICONS ======================================== */

.icon {
  margin-left: 0.5rem;
}

.e-control,
.e-tab .e-toolbar-items .e-toolbar-item .e-tab-text,
.e-card {
  font-family: "Sen", serif;
}

.e-card {
  justify-content: stretch;
  -webkit-tap-highlight-color: var(--ui-primary) !important;
}

.e-card:active {
  border-color: var(--ui-primary) !important;
}

.e-btn.e-warning:hover {
  background-color: #b42318 !important;
  box-shadow: 0 10px 18px rgba(180, 35, 24, 0.2);
}

.e-btn.e-delete {
  background-color: #b42318 !important;
  border-color: #b42318 !important;
}

.fa-solid {
  margin-right: 0.3rem;
}

.fas.fa-close {
  color: red;
}

.e-radio + label:hover::before {
  box-shadow: 0 0 9px rgba(0, 0, 0, 0.7);
}

.e-toast-warning {
  font-family: "Sen", sans-serif;
  color: orange;
}

/* ======================================== TABLES + GRIDS ======================================== */

.table-container {
  display: grid;
  overflow: visible;
}

.table-container-50 {
  overflow-y: auto;
  max-height: 50vh;
}

.table-container-chart {
  overflow-y: auto;
  height: 100%;
  max-height: 650px;
  min-height: 0;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9rem;
  text-align: left;
  border-radius: var(--ui-radius-md);
  box-shadow: var(--ui-shadow-md);
  overflow: hidden;
  table-layout: fixed;
  background: var(--ui-surface);
  border: 1px solid var(--ui-border);
}

.table thead {
  background-color: var(--ui-surface-muted);
  font-weight: 700;
}

.table tbody tr:nth-child(even) {
  background-color: #f9fbff;
}

.table tbody tr:hover {
  background-color: #eef3fb;
}

.table th,
.table td {
  padding: 12px;
  border: 1px solid var(--ui-border);
  vertical-align: middle;
  color: var(--ui-text);
}

.table th {
  background-color: var(--ui-surface-muted);
  color: var(--ui-text);
  font-size: 0.8rem;
  padding: 14px 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.table th error {
  background-color: red;
}

.table td:first-child {
  vertical-align: middle;
}

.table td input[type="checkbox"] {
  display: block;
  margin: 0 auto;
  transform: scale(1.3);
  vertical-align: middle;
}

/* ─── RESPONSIVE TABLE: stacked-card layout on mobile ─── */
@media (max-width: 575.98px) {

    .table-responsive-stack,
    .table-responsive-stack thead,
    .table-responsive-stack tbody,
    .table-responsive-stack th,
    .table-responsive-stack td,
    .table-responsive-stack tr {
        display: block;
    }

    /* Column header row hidden — each cell carries its own label via ::before */
    .table-responsive-stack thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    /* Remove outer table chrome */
    .table-responsive-stack {
        border: none;
        margin: 0;
    }

    /* Each row becomes a bordered card */
    .table-responsive-stack tbody tr {
        border: 1px solid var(--ui-border);
        border-radius: var(--ui-radius-lg);
        margin-bottom: 12px;
        background: var(--ui-surface);
        overflow: hidden;
    }

    /* Cancel striped-row tint and hover — card has its own border */
    .table-responsive-stack tbody tr:nth-child(even),
    .table-responsive-stack tbody tr:hover {
        background: var(--ui-surface);
    }

    /* Each cell becomes a labeled row inside the card */
    /* Use higher specificity than Bootstrap's `.table > :not(caption) > * > *` cell rule */
    .table.table-responsive-stack td {
        border: none;
        border-bottom: 1px solid var(--ui-border);
        padding: 8px 12px 8px 44%;
        white-space: normal !important;
        position: relative;
        min-height: 2.75rem;
        vertical-align: top;
    }

    .table.table-responsive-stack td:last-child {
        border-bottom: none;
    }

    /* Label rendered from data-label attribute as left column inside each cell */
    .table.table-responsive-stack td[data-label]::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 42%;
        padding: 8px 6px 8px 12px;
        display: flex;
        align-items: center;
        font-weight: 700;
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--ui-text-muted);
        white-space: normal;
        line-height: 1.3;
        background: var(--ui-surface-muted);
        border-right: 1px solid var(--ui-border);
    }

    /* Drag handle: hide on mobile (HTML drag-and-drop not supported on touch) */
    .table-responsive-stack .drag-icon {
        display: none;
    }
}

.bounded-header {
  z-index: 1;
  position: sticky;
  top: 0;
  background-color: white;
}

.fatigue-table .label-container-table {
  display: none;
}

.fatigue-table th:nth-child(1),
.fatigue-table td:nth-child(1) {
  width: 15rem;
  min-width: 12rem;
}

.fatigue-table th:nth-child(2),
.fatigue-table td:nth-child(2),
.fatigue-table th:nth-child(4),
.fatigue-table td:nth-child(4) {
  width: 8.5rem;
  min-width: 7.5rem;
}

.fatigue-table th:nth-child(3),
.fatigue-table td:nth-child(3) {
  width: 13rem;
  min-width: 12.5rem;
}

.fatigue-table th:nth-child(5),
.fatigue-table td:nth-child(5) {
  width: 20rem;
  min-width: 15rem;
}

.fatigue-summary-table th:nth-child(1),
.fatigue-summary-table td:nth-child(1) {
  width: 15%;
}

.fatigue-summary-table th:nth-child(2),
.fatigue-summary-table td:nth-child(2),
.fatigue-summary-table th:nth-child(4),
.fatigue-summary-table td:nth-child(4) {
  width: 10%;
}

.fatigue-summary-table th:nth-child(3),
.fatigue-summary-table td:nth-child(3) {
  width: 30%;
}

.fatigue-summary-table th:nth-child(5),
.fatigue-summary-table td:nth-child(5) {
  width: 35%;
}

.fatigue-textbox {
  border-color: #00173b;
}

.fatigue-textbox:disabled {
  background-color: white;
  color: black;
}

.splice-table th:nth-child(1),
.splice-table td:nth-child(1) {
  width: 17%;
}

.hammer-table-cell {
  cursor: pointer;
}

.hammer-table-cell-selected {
  background-color: lightgray !important;
  cursor: pointer;
}

.hammer-table-cell-selected:hover {
  background-color: lightgray !important;
}

.hammer-header {
  cursor: pointer;
}

.hammer-table th:nth-child(1),
.hammer-table td:nth-child(1) {
  width: 15%;
}

.hammer-table th:nth-child(2),
.hammer-table td:nth-child(2) {
  width: 20%;
}

.hammer-table th:nth-child(3),
.hammer-table td:nth-child(3) {
  width: 20%;
}

.hammer-table th:nth-child(4),
.hammer-table td:nth-child(4) {
  width: 20%;
}

.hammer-table th:nth-child(5),
.hammer-table td:nth-child(5) {
  width: 15%;
}

.hammer-table th:nth-child(6),
.hammer-table td:nth-child(6) {
  width: 10%;
}

.results-table:hover {
  cursor: pointer;
}

.results-table-cell-selected {
  background-color: #00173b !important;
  color: white;
}

.results-table-cell-selected:hover {
  background-color: #00173b !important;
  cursor: pointer;
}

/* QuickGrid */

table[theme="quickgrid"] {
  width: 100%;
  border-collapse: collapse;
  font-family: inherit;
  font-size: 0.9rem;
  table-layout: fixed;
}

table[theme="quickgrid"] th,
table[theme="quickgrid"] td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

table[theme="quickgrid"] th {
  padding: 6px 8px;
  background-color: var(--ui-primary);
  color: white;
  font-weight: bold;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

table[theme="quickgrid"] td {
  border-bottom: 1px solid #e5e7eb;
  border-top-style: solid;
  border-top-width: 1px;
  display: table-cell;
  font-size: 14px;
  line-height: 22px;
  padding: 6px 8px;
  overflow: hidden;
  vertical-align: middle;
  white-space: nowrap;
  width: auto;
}

.quickgrid[theme="quickgrid"] .col-title {
  gap: 0.4rem;
  font-weight: bold;
  color: white;
}

table[theme="quickgrid"] tbody tr:nth-child(even) {
  background-color: #f9fafb;
}

table[theme="quickgrid"] tbody tr:hover {
  background-color: #f1f5f9;
}

.quickgrid-wrapper {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

.quickgrid-wrapper table[theme="quickgrid"] {
  table-layout: auto;
  min-width: max-content;
}

th.name-col,
td.name-col {
  min-width: 200px;
  width: 200px;
  white-space: nowrap;
}

.wave-page {
  max-width: none;
  overflow-x: visible;
}

.quickgrid-scroll-y {
  overflow-y: auto;
  height: 600px;
}

.qg-tooltip-header,
.qg-tooltip-header .col-header-content {
  overflow: visible !important;
}

.wave-quickgrid-wrapper {
  overflow: visible !important;
}

.qg-header-sortable {
  cursor: pointer;
}

/* Charts */
.apexcharts-canvas,
.apexcharts-inner,
.apexcharts-grid,
.apexcharts-graphical {
  margin: 0 !important;
  padding: 0 !important;
}

/* ======================================== UI COMPONENTS ======================================== */

.custom-hero {
  background: var(--ui-primary);
  color: #fff;
  border-radius: var(--ui-radius-lg);
  padding: 18px 20px;
  box-shadow: var(--ui-shadow-xl);
}

.custom-hero.text-center {
  text-align: left !important;
}

.custom-hero.d-flex {
  display: block !important;
  justify-content: flex-start !important;
}

.custom-hero.justify-content-center {
  justify-content: flex-start !important;
}

.custom-hero.align-content-center {
  align-content: stretch !important;
}

.custom-hero.py-2 {
  padding-top: 18px !important;
  padding-bottom: 18px !important;
}

.custom-hero-title {
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: clamp(1.5rem, 2.4vw, 2.4rem);
  line-height: 1.1;
  margin: 0;
}

.custom-hero-title--compact {
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  letter-spacing: 0.01em;
}

.custom-hero-subtitle {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.85);
}

.custom-hero-kicker {
  letter-spacing: 0.08em;
  opacity: 0.85;
}

.custom-toolbar {
  background: var(--ui-surface-muted);
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-md);
  padding: 12px 14px;
  box-shadow: var(--ui-shadow-md);
}

.custom-toolbar.row {
  --bs-gutter-x: 0;
  margin-left: 0;
  margin-right: 0;
}

.run-bg {
  background: #00173b;
  background: linear-gradient(
          90deg,
          rgba(0, 23, 59, 1) 0%,
          rgba(9, 9, 121, 1) 50%,
          rgba(0, 157, 189, 1) 100%
  );
}

.run-action-container {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.run-bg:hover {
  background: linear-gradient(
          90deg,
          rgba(0, 23, 59, 1) 0%,
          rgba(9, 9, 121, 1) 35%,
          rgba(0, 157, 189, 1) 100%
  );
  box-shadow: 0 0 9px rgba(0, 0, 0, 0.7);
}

.run-bg:disabled {
  background: linear-gradient(
          90deg,
          rgba(0, 23, 59, 1) 0%,
          rgba(9, 9, 121, 1) 50%,
          rgba(0, 157, 189, 1) 100%
  );
  background-size: 600% 600%;
  animation: gradientShift 1.5s linear infinite;
}

.custom-chip {
  background: var(--ui-primary-soft);
  color: var(--ui-text);
  border: 1px solid var(--ui-border-strong);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.custom-chip.is-success {
  background: #e7f6ec;
  border-color: #bde5c8;
  color: #0b5f2a;
}

.custom-chip.is-danger {
  background: #fdf2f2;
  border-color: #f5c2c7;
  color: #7f1d1d;
}

.custom-context-bar {
  background: #f6f8fb;
  border: 1px solid #e3e9f3;
  border-radius: var(--ui-radius-md);
  box-shadow: 0 8px 20px rgba(0, 23, 59, 0.08);
  padding: 14px 18px;
  --bs-gutter-x: 0;
  margin-left: 0;
  margin-right: 0;
}

.custom-context-bar.row {
  --bs-gutter-x: 0;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.context-bar .col.d-flex .context-chip {
  width: 100%;
  justify-content: flex-start;
  white-space: normal;
}

.custom-helper-text {
  font-size: 0.85rem;
  color: var(--ui-text-muted);
}

.custom-note {
  font-size: 0.95rem;
  color: #3f4652;
  background: var(--ui-primary-soft);
  border: 1px dashed var(--ui-border-strong);
  border-radius: 10px;
  padding: 12px 14px;
  line-height: 1.4;
}

.custom-search {
  position: relative;
}

.custom-search .input-adornment-container {
  width: 100%;
}

.custom-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  pointer-events: none;
}

.custom-search-input {
  width: 100%;
  padding: 10px 12px 10px 38px;
  border-radius: 10px;
  border: 1px solid var(--ui-border-strong);
  background: #f8fafc;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ui-text);
}

.custom-search-input:focus {
  border-color: var(--ui-primary);
  box-shadow: 0 0 0 3px rgba(0, 23, 59, 0.12);
  background: #ffffff;
  outline: none;
}

.custom-search .custom-textbox {
  padding-left: 38px;
}

.custom-icon-button {
  height: 2.25rem;
  width: 2.25rem;
  background: var(--ui-primary-soft);
  color: var(--ui-text);
  border: 1px solid var(--ui-border-strong);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0;
  box-shadow: 0 10px 20px rgba(0, 23, 59, 0.12);
  transition: all 0.2s ease;
  cursor: pointer;
}

.custom-icon-button:hover {
  background: #e8effc;
  color: #001131;
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(0, 23, 59, 0.18);
}

.custom-icon-button--inverse {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--ui-primary);
  color: #fff;
  border-color: #fff;
  font-size: 1.5rem;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.25);
}

.custom-icon-button--inverse:hover {
  background: #5f6b7c;
  color: #fff;
  border-color: #fff;
}

.custom-info-button {
  font-weight: 700;
  font-family: "Sen", sans-serif;
}

.custom-info-button__text {
  font-size: 1rem;
  line-height: 1;
  text-transform: lowercase;
}

.custom-table-card {
  border: 1px solid #e3e8f3;
  border-radius: var(--ui-radius-lg);
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-lg);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  overflow: visible;
}

.custom-table-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 6px 6px 12px;
  border-bottom: 1px solid #e3e8f3;
  margin-bottom: 10px;
}

.table-bar {
  align-items: flex-start;
}

.custom-table-title {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ui-text);
  text-transform: uppercase;
}

.custom-table-title.caps-reset {
  text-transform: none;
}

.custom-table-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.custom-drawer {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.custom-drawer__body {
  order: 1;
  max-height: var(--drawer-max-height, 50vh);
  overflow: auto;
}

.custom-drawer--expanded .custom-drawer__body {
  max-height: none;
}

.custom-drawer__handle {
  order: 2;
  margin-top: 8px;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--ui-primary-soft);
  border: 1px solid var(--ui-border-strong);
  border-radius: 10px;
  color: var(--ui-text);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
}

.custom-drawer__label--collapse {
  display: none;
}

.custom-drawer--expanded .custom-drawer__label--expand {
  display: none;
}

.custom-drawer--expanded .custom-drawer__label--collapse {
  display: inline;
}

.custom-drawer__chevron {
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.custom-drawer--expanded .custom-drawer__chevron {
  transform: rotate(-135deg);
}

.custom-card-panel {
  background: var(--ui-surface);
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-lg);
  padding: 16px;
  box-shadow: var(--ui-shadow-md);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 auto;
  overflow: visible;
}

.custom-card-panel.flex-row {
  flex-direction: row;
}

.custom-card-panel .custom-textbox {
  background: #f8fafc;
  border-color: #cfd7e5;
}

.custom-toolbar-button {
  padding: 0.5rem 1.1rem;
  font-weight: 700;
  white-space: nowrap;
}

.custom-table-actions .custom-toolbar-button {
  box-shadow: 0 8px 14px rgba(0, 23, 59, 0.12);
}

.custom-accordion-header {
  padding: 1rem 1.25rem 0;
}

.custom-accordion-body {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 1rem 1.25rem;
  background-color: #fff;
  border: none;
  border-radius: 0;
}

.custom-accordion-toggle {
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.custom-accordion-toggle:not(.collapsed) {
  transform: rotate(-180deg);
}

.custom-progress {
  width: 100%;
  height: 0.75rem;
  background-color: #eee;
  border-radius: 999px;
  overflow: hidden;
}

.custom-progress-bar {
  height: 100%;
  background-color: var(--ui-primary);
  transition: width 0.3s ease-in-out;
  border-radius: inherit;
}

.custom-progress-bar.loading {
  animation: customProgressPulse 1s ease-in-out infinite;
}

@keyframes customProgressPulse {

  0%,
  100% {
    opacity: 1;
    transform: scaleY(1);
  }

  50% {
    opacity: 0.6;
    transform: scaleY(0.95);
  }
}

.custom-card {
  border: 1px solid var(--ui-border);
  background: var(--ui-surface);
  border-radius: var(--ui-radius-lg);
  box-shadow: var(--ui-shadow-lg);
  padding: 14px 16px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.custom-card-header {
  border-bottom: 1px solid #eef2fb;
  padding-bottom: 8px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  font-size: 1rem;
  font-weight: 600;
}

.custom-card-header-stack {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

.custom-card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.custom-card-header-title {
  flex: 1 1 auto;
  min-width: 0;
}

.custom-card-header-actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.custom-card-header-row--input {
  display: flex;
  align-items: center;
  gap: 12px;
}

.custom-card-header-row--input .input-adornment-container {
  margin-top: 0;
}

.custom-card-header-row--input .custom-chip {
  white-space: nowrap;
}

.custom-card-meta-stack {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.custom-card-meta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.custom-card-meta-actions {
  margin-left: auto;
}

.custom-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #4a5565;
  font-weight: 600;
}

.custom-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.custom-card-actions .e-btn {
  box-shadow: 0 10px 22px rgba(0, 23, 59, 0.12);
}

.card-actions .card-action-btn,
.card-actions .e-btn {
  flex: 1 1 0;
  height: 3rem;
  white-space: nowrap;
}

.custom-card-content {
  line-height: 1.5;
  font-size: 0.95rem;
  color: var(--ui-text);
  box-sizing: border-box;
  padding: 0;
  word-wrap: break-word;
}

.custom-card:hover {
  box-shadow: 0 18px 36px rgba(0, 23, 59, 0.16);
  transition: border 0.3s ease, transform 0.3s ease;
}

.card {
  border-radius: 5px;
  padding: 15px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.error-card {
  background-color: #ffe8e8;
  border: 1px solid #f5c2c7;
  border-radius: var(--ui-radius-md);
  border-color: black;
  padding: 16px;
  box-shadow: var(--ui-shadow-md);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.card-accordion .accordion-item {
  border: 1px solid #e4e9f4;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 23, 59, 0.1);
}

.card-accordion .accordion-header {
  background: #f8fafc;
}

.card-accordion .accordion-body {
  background: #fff;
}

.custom-toast-show {
  display: flex;
  align-content: center;
  align-items: center;
}

.custom-toast {
  border: 1px solid var(--ui-border);
  padding: 1rem;
  border-radius: var(--ui-radius-md);
  margin: 1rem;
  background-color: var(--ui-surface);
  box-shadow: var(--ui-shadow-lg);
}

.custom-toast.warning {
  background-color: #fff3cd;
  color: #856404;
  border-color: #ffeeba;
}

.custom-toast.success {
  border-color: #c3e6cb;
}

.custom-toast.error {
  background-color: #f8d7da;
  color: #721c24;
  border-color: #f5c6cb;
}

.custom-toast-header {
  display: flex;
  font-size: 0.95rem;
  box-sizing: border-box;
  line-height: 1.4;
  min-height: 22.5px;
  width: inherit;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--ui-border);
  align-items: center;
  justify-content: space-between;
}

.custom-toast-body {
  display: block;
  margin-top: 0.75rem;
}

.inline-loading-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
}

.custom-spinner-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  z-index: 2000;
}

.custom-spinner {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner-circle {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-block;
  border: 1px solid #ccc;
  border-top: 4px solid var(--ui-primary);
  border-radius: 100%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* ======================================== DIALOG + TOOLTIP ======================================== */

.dialog-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 23, 59, 0.45) !important;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.dialog-container {
  background-color: var(--ui-surface);
  padding: 20px;
  border-radius: var(--ui-radius-lg);
  width: min(1200px, 92vw);
  box-shadow: var(--ui-shadow-lg);
  border: 1px solid var(--ui-border);
}

.dialog-container.dialog-inline {
  width: 100%;
  max-width: 100%;
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  border-bottom: 1px solid var(--ui-border);
  padding-bottom: 10px;
}

.dialog-body {
  margin-top: 10px;
  max-height: 80vh;
  overflow-y: auto;
}

.dialog-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.close-button {
  background: var(--ui-primary-soft);
  border: 1px solid var(--ui-border-strong);
  border-radius: 50%;
  font-size: 18px;
  height: 2rem;
  width: 2rem;
  color: var(--ui-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.confirm-button {
  padding: 0.5rem 1.1rem;
  background-color: var(--ui-primary);
  color: #fff;
  border: 1px solid var(--ui-primary);
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.confirm-button.confirm-button--danger {
  background-color: #b42318;
  border-color: #b42318;
  box-shadow: 0 8px 18px rgba(180, 35, 24, 0.2);
}

.confirm-button.confirm-button--danger:hover {
  background-color: #9c1f15;
  border-color: #9c1f15;
}

.cancel-button {
  background: var(--ui-primary-soft);
  border: 1px solid var(--ui-border-strong);
  border-radius: 10px;
  padding: 0.5rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ui-text);
  cursor: pointer;
}

.truncated-label {
  flex-grow: 1;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-tooltip-container {
  display: inline-block;
  position: relative;
}

.custom-tooltip {
  position: fixed;
  top: 0;
  left: 0;
  background: var(--ui-primary);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  line-height: 1.4;
  white-space: nowrap;
  box-shadow: var(--ui-shadow-md);
  opacity: 0.98;
  --arrow-offset: 50%;
  z-index: 1000;
}

.custom-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: var(--arrow-offset, 50%);
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: var(--ui-primary) transparent transparent transparent;
}

/* ======================================== HERO + NAV ======================================== */

.hero-section {
  background-size: cover;
  background-position: center;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-overlay {
  background-color: rgba(0, 23, 59, 0.7);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-section .hero-title {
  color: white;
  font-size: 4rem;
  font-weight: bold;
  text-align: center;
  z-index: 1;
  margin: 0;
}

.hero-section .hero-subsection {
  color: white;
  font-size: 1.5rem;
  font-style: italic;
  font-weight: lighter;
  text-align: center;
  z-index: 1;
  margin-top: 1rem;
}

.nav-bar-icon {
  height: 20px;
  width: 20px;
  margin-right: 8px;
}

.oi-caret-bottom,
.oi-caret-right {
  text-align-last: end;
  font-size: smaller !important;
  margin-right: auto;
  margin-left: 0;
}

.oi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: 1.1rem;
  vertical-align: middle;
  margin-right: 8px;
}

.caret-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-top: 4px;
  margin-left: auto;
}

/* ======================================== UTILITIES + ANIMATIONS ======================================== */

.error-tooltip {
  position: relative;
  display: inline-block;
  align-content: center;
  margin-right: 8px;
  margin-left: 8px;
}

.error-tooltip .tooltip-content {
  visibility: hidden;
  min-width: 200px;
  background-color: var(--ui-primary);
  color: white;
  text-align: left;
  border-radius: 5px;
  padding: 10px;
  position: absolute;
  top: -5px;
  left: 105%;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.4);
}

.error-tooltip:hover .tooltip-content {
  visibility: visible;
  opacity: 1;
}

.invert-icon-colour,
.invert-svg {
  filter: invert(99%) sepia(0%) saturate(2%) hue-rotate(48deg) brightness(103%) contrast(101%);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(-15px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slowFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.delayAnimation {
  animation: fadeIn 1s ease-in-out both;
  animation-delay: 0.5s;
}

.fade-in {
  animation: fadeIn 0.5s ease-in-out both;
}

.fade {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade.fade-active {
  opacity: 1;
  transform: translateX(0);
}

.traffic {
  text-align: center;
}

/* Nav sidebar — keep the lighter grey thumb */
.nav-scrollable::-webkit-scrollbar {
  width: 5px;
}

.nav-scrollable::-webkit-scrollbar-thumb {
  background: rgb(193, 193, 193);
}


.tutorial-overlay {
  position: relative;
  filter: blur(10px) brightness(80%);
  pointer-events: none;
}

.tutorial-reduce {
  position: relative;
  background: lightgrey;
}

.tutorial-highlight {
  position: relative;
  pointer-events: none;
  box-shadow: 0 0 10px 3px rgba(0, 123, 255, 0.8);
  background: white;
}

.tutorial-container {
  background-color: rgb(69, 69, 69);
  animation: none;
  transition: none;
  width: 75%;
  color: white;
  text-align: center;
  padding: 1rem;
  align-content: center;
}

@media (max-width: 1199.98px) {
  .custom-card-actions {
    flex-wrap: nowrap;
    align-items: center;
  }

  .custom-card-actions .custom-button,
  .custom-card-actions .e-btn.e-custom {
    flex: 1 1 0;
    height: 3rem;
    white-space: nowrap;
  }
}

@media (max-width: 992px) {
  .custom-context-bar {
    padding: 12px 14px;
  }

  .custom-table-bar {
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .hero-section .hero-title {
    font-size: 2.5rem;
  }

  .custom-card-header-row--input {
    flex-direction: column;
    align-items: stretch;
  }

  .custom-card-header-row--input .custom-chip {
    width: 100%;
  }

  .custom-card-meta-stack {
    flex-direction: column;
    align-items: stretch;
  }

  .custom-card-meta-group,
  .custom-card-meta-actions {
    width: 100%;
  }

  .custom-card-meta-actions {
    margin-left: 0;
  }

  .custom-card-meta-group .custom-chip {
    width: 100%;
  }

  .custom-card-meta-actions .e-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 1549.98px) {
  .custom-context-bar .col.d-flex {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    align-items: start;
  }

  .custom-context-bar .col.d-flex .custom-chip {
    width: 100%;
    justify-content: flex-start;
    white-space: normal;
  }
}

/* ======================================== HOME / MARKETING PAGES ======================================== */

.home-bg {
  background: #878a91;
  padding: 0;
  color: white;
  overflow-x: hidden;
}

.home-hero-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  height: auto;
  width: max-content;
  min-height: 100vh;
  display: grid;
  align-self: center;
}

.home-hero-bg-tint {
  background: linear-gradient(0deg, rgba(0, 23, 59, 0.98) 5%, rgba(16, 42, 71, 0.5) 55%, rgba(22, 58, 98, 0.5) 100%);
  height: 100%;
  width: 100%;
  text-align: center;
}

.button-hero-height {
  height: 3rem;
  width: 15rem;
}

.praise-bg {
  width: 100%;
  min-height: 100vh;
  background: #00173b;
  background: linear-gradient(180deg, rgba(0, 23, 59, 0.99) 15%, rgba(21, 41, 59, 1) 35%, rgba(0, 23, 59, 1) 100%);
}

.section-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-content: flex-start;
}

.snap-scroll {
  scroll-snap-align: center;
}

/* ======================================== BLazor RECONNECT ======================================== */

#components-reconnect-show,
#components-reconnect-modal,
#components-reconnect-failed,
#components-reconnect-rejected {
  display: none !important;
}

.components-reconnect-show,
.components-reconnect-modal,
.components-reconnect-failed,
.components-reconnect-rejected {
  display: none !important;
}
