:root {
  /* Brand */
  --gt-navy: #0a1830; /* nav, headings, primary buttons */
  --gt-navy-hover: #1c3157;
  --gt-navy-active: #050d1c;
  --gt-navy-tint: #e8edf5; /* selected rows/tabs, chips */
  /* Accent (use sparingly) */
  --gt-orange: #f7891f; /* logo, badges, one hero CTA, indicators */
  --gt-orange-tint: #fef0e2; /* highlight chips, callouts */
  --gt-orange-text: #9a4a00; /* orange text on white or tint (passes AA) */
  /* Interactive */
  --gt-link: #1d5bd6; /* text links, tertiary buttons */
  /* Neutrals (cool slate) */
  --gt-page-bg: #f4f6fa; /* replaces the mid-gray page background */
  --gt-surface: #ffffff;
  --gt-border: #e2e6ee;
  --gt-table-head: #eef1f6; /* replaces taupe; use navy text, not white */
  --gt-text: #0a1830;
  --gt-text-muted: #5b6b82;
  /* On dark (navy) backgrounds */
  --gt-text-on-dark: #c3d0e4; /* body text on navy */
  /* Semantic */
  --gt-danger: #c8323c;
  --gt-success: #1f8a5b;
  /* Semantic tints */
  --gt-success-tint: #e3f3ea;
  --gt-success-text: #166a45; /* green text on white or tint (passes AA) */
  --gt-danger-tint: #fbe9ea;
}

html, body {
  background-color: var(--gt-page-bg);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
}

a {
  color: var(--gt-navy);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAw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gMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

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

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

label {
  font-weight: bold;
}

table {
  width: 100%;
  border-collapse: separate; /* "collapse" ignores border-radius */
  border-spacing: 0;
  border: 1px solid var(--gt-border);
  border-radius: 10px;
  background-color: var(--gt-surface);
  color: var(--gt-text);
  font-size: 0.875rem;
}

/* TableWithDtos (library component) sets border-collapse: collapse in its
   scoped CSS. This selector outranks it, so the corners can round. */
.smart-table-container table.responsive-table {
  border-collapse: separate;
}

table th,
table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--gt-border); /* row dividers only */
}

table th {
  background-color: var(--gt-table-head);
  color: var(--gt-text);
  font-weight: 700;
}

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

/* Round the inner corners so the header and last row follow the border */
table tr:first-child th:first-child {
  border-top-left-radius: 9px;
}

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

table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 9px;
}

table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 9px;
}

/* Hover: a light tint, so it's clearly different from "selected" */
table tbody tr:hover td {
  background-color: var(--gt-page-bg);
}

/* Selected row: class="selected" on hand-written tables... */
table tbody tr.selected td,
/* ...and any TableWithDtos row whose checkbox is checked */
.smart-table-container tbody tr:has(td.checkbox-column input:checked) td {
  background-color: var(--gt-navy-tint);
}

table tbody tr.selected td {
  font-weight: 600;
}

  table tbody tr.selected td:first-child,
  .smart-table-container tbody tr:has(td.checkbox-column input:checked) td:first-child {
    box-shadow: inset 3px 0 0 var(--gt-navy);
  }

/* TableWithDtos checkboxes and pagination links */
.smart-table-container input[type="checkbox"] {
  accent-color: var(--gt-navy);
}

.smart-table-container .pagination-btn {
  --bs-btn-color: var(--gt-link);
  --bs-btn-hover-color: var(--gt-navy);
  --bs-btn-active-color: var(--gt-navy);
  --bs-btn-disabled-color: var(--gt-text-muted);
}

.table-nonfill-column {
  width: 1%;
  white-space: nowrap;
}

.icon-button {
  border: none;
  background-color: transparent;
}

.btn-primary {
  background-color: #0a1830;
  border-color: #0a1830;
  --bs-btn-bg: #0a1830;
  --bs-btn-border-color: #0a1830;
  --bs-btn-color: #fff;
  --bs-btn-hover-bg: #1c3157;
  --bs-btn-hover-border-color: #1c3157;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: #050d1c;
  --bs-btn-active-border-color: #050d1c;
  --bs-btn-active-color: #fff;
  --bs-btn-focus-shadow-rgb: 10, 24, 48; /* controls the glow ring color */
  --bs-btn-disabled-bg: #0a1830;
  --bs-btn-disabled-border-color: #0a1830;
  --bs-btn-disabled-color: #fff;
}

.btn-outline-primary {
  --bs-btn-color: #0a1830;
  --bs-btn-border-color: #0a1830;
  --bs-btn-hover-bg: #0a1830;
  --bs-btn-hover-border-color: #0a1830;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: #050d1c;
  --bs-btn-active-border-color: #050d1c;
  --bs-btn-active-color: #fff;
  --bs-btn-focus-shadow-rgb: 10, 24, 48;
  --bs-btn-disabled-color: #0a1830;
  --bs-btn-disabled-border-color: #0a1830;
}

.nav-pills .nav-link {
  color: Black;
}

  .nav-pills .nav-link.active {
    background-color: #0a1830;
    color: white;
  }

  .nav-pills .nav-link:focus {
    background-color: #0a1830;
    color: white;
  }

.nav-tabs .nav-link {
  color: #0a1830;
}

  .nav-tabs .nav-link.active {
    background-color: #0a1830;
    color: white;
  }

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 200, 'opsz' 20;
}

/* 
   Library components: TabGroup and PillsGroupVertical
   Overridden here so the shared library stays untouched. Selectors use
   ">" so tab styles don't leak into pills nested inside a tab, or the
   other way around. They're also more specific than the library's scoped
   CSS (e.g. .tab-content[b-xyz]), so they win.
*/
div.tabGroup-layout {
  background-color: transparent; /* shows the page background through */
  border: 0;
  border-radius: 0;
}

  div.tabGroup-layout > ul.nav-tabs {
    gap: 1.5rem;
    padding: 0;
    border-bottom: 1px solid var(--gt-border);
  }

    div.tabGroup-layout > ul.nav-tabs > li.nav-item {
      background-color: transparent;
    }

      div.tabGroup-layout > ul.nav-tabs > li.nav-item > button.nav-link {
        margin-bottom: -1px;
        padding: 0.85rem 0.15rem 0.75rem;
        border: 0;
        border-bottom: 3px solid transparent;
        border-radius: 0;
        background-color: transparent;
        color: var(--gt-text-muted);
        font-weight: 600;
        transition: color 0.15s ease, border-color 0.15s ease;
      }

        div.tabGroup-layout > ul.nav-tabs > li.nav-item > button.nav-link:hover {
          color: var(--gt-text);
          border-bottom-color: var(--gt-border);
        }

        div.tabGroup-layout > ul.nav-tabs > li.nav-item > button.nav-link.active {
          color: var(--gt-navy);
          font-weight: 700;
          border-bottom-color: var(--gt-orange);
        }

  div.tabGroup-layout > div.tab-content {
    padding: 1.25rem 0 0; /* top space only, so content lines up with the tabs */
    border: 0;
    border-radius: 0;
    background-color: transparent;
  }

ul.pills-nav {
  gap: 2px;
}

  ul.pills-nav > li.nav-item > button.nav-link {
    padding: 0.65rem 0.9rem;
    border-radius: 8px;
    background-color: transparent;
    color: var(--gt-text);
    font-weight: 500;
    transition: background-color 0.15s ease, color 0.15s ease;
  }

    ul.pills-nav > li.nav-item > button.nav-link:hover {
      background-color: var(--gt-table-head);
    }

    ul.pills-nav > li.nav-item > button.nav-link.active {
      background-color: var(--gt-navy-tint);
      color: var(--gt-navy);
      font-weight: 700;
      box-shadow: inset 0 -3px 0 var(--gt-orange);
    }

@media (min-width: 768px) {
  ul.pills-nav > li.nav-item > button.nav-link.active {
    box-shadow: inset 3px 0 0 var(--gt-orange);
  }
}

div.tabGroup-layout > ul.nav-tabs > li.nav-item > button.nav-link:focus-visible,
ul.pills-nav > li.nav-item > button.nav-link:focus-visible {
  outline: 3px solid var(--gt-orange);
  outline-offset: 2px;
  box-shadow: none;
}

/* Segmented control (filters / view switchers) */
.gt-segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  padding: 4px;
  border-radius: 10px;
  background: var(--gt-table-head);
}

.gt-segmented-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 36px;
  padding: 0 0.85rem;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--gt-text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

  .gt-segmented-item:hover {
    color: var(--gt-text);
  }

  .gt-segmented-item.active {
    background: var(--gt-surface);
    color: var(--gt-navy);
    font-weight: 700;
    box-shadow: 0 1px 2px rgba(10, 24, 48, 0.14);
  }

  .gt-segmented-item:focus-visible {
    outline: 3px solid var(--gt-orange);
    outline-offset: 2px;
  }

.gt-segmented-count {
  color: var(--gt-text-muted);
  font-weight: 600;
}

/* Bootstrap switches and checkboxes in navy instead of default blue */
.form-check-input:checked {
  background-color: var(--gt-navy);
  border-color: var(--gt-navy);
}

.form-check-input:focus {
  border-color: var(--gt-navy);
  box-shadow: 0 0 0 0.2rem rgba(10, 24, 48, 0.15);
}