/* ============================================
   Fluent Design Token System
   Mapped from Dynamics Hub Revamp (Lovable)
   ============================================ */

:root {
  /* Existing portal variables (preserved) */
  --portalbg1: #f3f2f1;
  --portalYellowbg: #DDD323;

  /* Fluent Design Tokens (portalThemeColors now set in portalbasictheme.css) */
  --fluent-bg: #f7f7f7;
  --fluent-card: #ffffff;
  --fluent-foreground: #212930;
  --fluent-border: #e1e5e9;
  --fluent-muted: #eef0f2;
  --fluent-muted-fg: #4b5563;
  --fluent-accent: #d9f5f0;
  --fluent-accent-fg: #145c54;
  --fluent-ring: #1a7a6d;
  --fluent-sidebar-bg: #f1f4f7;
  --fluent-sidebar-border: #d9dee3;
  --fluent-hero-from: #206b62;
  --fluent-hero-to: #203040;
  --fluent-destructive: #ef4444;
  --fluent-radius: 0.5rem;
  --fluent-radius-sm: 0.375rem;
  --fluent-radius-lg: 0.75rem;
  --fluent-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --fluent-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  --fluent-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);

  /* Bootstrap variable overrides */
  --bs-body-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --bs-body-bg: var(--fluent-bg);
  --bs-body-color: var(--fluent-foreground);
  --bs-border-radius: var(--fluent-radius);
  --bs-border-radius-sm: var(--fluent-radius-sm);
  --bs-border-radius-lg: var(--fluent-radius-lg);
  --bs-border-color: var(--fluent-border);
}

/* ============================================
   Global Base Styles
   ============================================ */

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 14px;
}

/* Content wrappers — transparent set in portalbasictheme.css */

/* Smooth transitions for interactive elements */
a,
button,
.btn,
.nav-link,
.form-control,
.form-select,
input,
textarea,
select,
.card,
.badge {
  transition: background-color 200ms ease-out, border-color 200ms ease-out, box-shadow 200ms ease-out, color 200ms ease-out, transform 200ms ease-out;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  color: var(--fluent-foreground);
  /* font-family inherited from --bs-body-font-family */
}

/* ============================================
   Buttons — styles now in portalbasictheme.css
   ============================================ */

/* .btn {
  border-radius: var(--fluent-radius-sm) !important;
  font-weight: 500;
  font-size: 14px;
  padding: 6px 16px;
  line-height: 1.5;
}

.btn-primary {
  background-color: var(--portalThemeColor1) !important;
  border-color: var(--portalThemeColor1) !important;
  color: #ffffff !important;
  border-radius: var(--fluent-radius-sm, 0.375rem);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--portalThemeColor5, #2a8f82) !important;
  border-color: var(--portalThemeColor5, #2a8f82) !important;
  box-shadow: 0 0 0 2px rgba(26, 122, 109, 0.25) !important;
}

.btn-outline-primary {
  color: var(--portalThemeColor4) !important;
  border-color: var(--portalThemeColor4) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--portalThemeColor4) !important;
  border-color: var(--portalThemeColor4) !important;
  color: #ffffff !important;
}

.btn-default {
  background-color: var(--fluent-card);
  border: 1px solid var(--fluent-border);
  color: var(--fluent-foreground);
  border-radius: var(--fluent-radius-sm);
}

.btn-default:hover,
.btn-default:focus {
  background-color: var(--fluent-muted);
  border-color: var(--fluent-border);
  color: var(--fluent-foreground);
} */

/* ============================================
   Forms — Inputs (Fluent UI v2 style)
   Bottom-border accent on focus, hover states
   ============================================ */

.form-control {
  border: 1px solid var(--fluent-border) !important;
  /* border-bottom: 2px solid var(--fluent-border) !important; */
  border-radius: var(--fluent-radius-sm);
  font-size: 14px;
  padding: 8px 12px;
  height: 40px;
  background-color: var(--fluent-bg);
  color: var(--fluent-foreground);
  transition: border-color 150ms ease-out, background-color 150ms ease-out, box-shadow 150ms ease-out;
}

.form-control:hover {
  border-color: var(--fluent-muted-fg);
  border-bottom-color: var(--fluent-muted-fg);
  background-color: var(--fluent-card);
}

.form-control:focus,
textarea:focus,
select:focus {
  border-color: var(--fluent-border) !important;
  border-bottom: 2px solid var(--fluent-ring) !important;
  background-color: var(--fluent-card);
  outline: 0;
  box-shadow: none;
}

.form-control::placeholder {
  color: var(--fluent-muted-fg);
}

.form-control:disabled,
.form-control[readonly] {
  background-color: var(--fluent-muted);
  border-color: var(--fluent-border);
  border-bottom-color: var(--fluent-border);
  color: var(--fluent-muted-fg);
  opacity: 0.7;
  cursor: not-allowed;
}

/* ============================================
   Forms — Select / Dropdown
   ============================================ */

.form-select,
select.form-control,
.crmentityformview select {
  border: 1px solid var(--fluent-border) !important;
  /* border-bottom: 2px solid var(--fluent-border) !important; */
  border-radius: var(--fluent-radius-sm);
  font-size: 14px;
  padding: 8px 36px 8px 12px;
  height: 40px;
  background-color: var(--fluent-bg);
  color: var(--fluent-foreground);
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  transition: border-color 150ms ease-out, background-color 150ms ease-out;
}

.form-select:hover,
select.form-control:hover,
.crmentityformview select:hover {
  border-color: var(--fluent-muted-fg);
  border-bottom-color: var(--fluent-muted-fg);
  background-color: var(--fluent-card);
}

.form-select:focus,
select.form-control:focus,
.crmentityformview select:focus {
  border-color: var(--fluent-border) !important;
  border-bottom: 2px solid var(--fluent-ring) !important;
  background-color: var(--fluent-card);
  outline: 0;
  box-shadow: none;
}

.form-select:disabled {
  background-color: var(--fluent-muted);
  border-color: var(--fluent-border);
  color: var(--fluent-muted-fg);
  opacity: 0.7;
  cursor: not-allowed;
}

/* ============================================
   Forms — Textarea
   ============================================ */

textarea.form-control {
  height: auto;
  min-height: 80px;
  padding: 10px 12px;
  line-height: 1.5;
}

/* ============================================
   Forms — Checkbox & Radio (Fluent style)
   ============================================ */

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--portalThemeColor4);
}

input[type="checkbox"] + label {
    font-weight: normal;
}

.form-check-input {
  width: 18px;
  height: 18px;
  border: 2px solid var(--fluent-muted-fg);
  border-radius: 4px;
  background-color: var(--fluent-bg);
  appearance: none;
  cursor: pointer;
  vertical-align: middle;
  margin-top: 0;
  transition: border-color 150ms ease-out, background-color 150ms ease-out;
}

.form-check-input:hover {
  border-color: var(--fluent-foreground);
  background-color: var(--fluent-card);
}

.form-check-input[type="radio"] {
  border-radius: 50%;
}

.form-check-input:checked {
  background-color: var(--portalThemeColor4);
  border-color: var(--portalThemeColor4);
}

.form-check-input:checked:hover {
  background-color: var(--portalThemeColor1);
  border-color: var(--portalThemeColor1);
}

.form-check-input:checked[type="checkbox"] {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

.form-check-input:checked[type="radio"] {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e");
  background-size: 10px;
  background-position: center;
  background-repeat: no-repeat;
}

.form-check-input:focus {
  border-color: var(--fluent-ring);
  box-shadow: 0 0 0 2px rgba(26, 122, 109, 0.25);
  outline: 0;
}

.form-check-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-check-label {
  font-size: 14px;
  font-weight: 400;
  color: var(--fluent-foreground);
  cursor: pointer;
  vertical-align: middle;
  padding-left: 4px;
}

/* ============================================
   Forms — Toggle Switch (Fluent style)
   ============================================ */

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 22px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--fluent-border);
  transition: background-color 200ms ease-out;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: var(--fluent-card);
  transition: transform 200ms ease-out;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

input:checked + .slider {
  background-color: var(--portalThemeColor4);
}

input:focus + .slider {
  box-shadow: 0 0 0 2px rgba(26, 122, 109, 0.25);
}

input:checked + .slider:before {
  transform: translateX(22px);
}

.slider.round {
  border-radius: 22px;
}

.slider.round:before {
  border-radius: 50%;
}

/* ============================================
   Forms — Labels
   ============================================ */

label,
.control-label,
.form-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--fluent-foreground);
  margin-bottom: 4px;
}

.info.required::after,
label.required::after {
  color: var(--fluent-destructive);
}

/* ============================================
   Forms — Input Group
   ============================================ */

.input-group {
  border-radius: var(--fluent-radius-sm);
}

.input-group .form-control {
  border-color: var(--fluent-border);
}

.input-group-text {
  background-color: var(--fluent-muted);
  border: 1px solid var(--fluent-border);
  border-radius: var(--fluent-radius-sm);
  color: var(--fluent-muted-fg);
  font-size: 14px;
  padding: 8px 12px;
}

/* ============================================
   Forms — Date Picker
   ============================================ */

.datetimepicker .input-text-box,
.datetime-control .form-control {
  border: 1px solid var(--fluent-border) !important;
  border-bottom: 2px solid var(--fluent-border) !important;
  border-radius: var(--fluent-radius-sm);
  font-size: 14px;
  padding: 8px 12px;
  height: 40px;
  background-color: var(--fluent-bg);
  color: var(--fluent-foreground);
}

.datetimepicker .input-text-box:hover,
.datetime-control .form-control:hover {
  border-color: var(--fluent-muted-fg);
  background-color: var(--fluent-card);
}

.datetimepicker .input-text-box:focus,
.datetime-control .form-control:focus {
  border-color: var(--fluent-border) !important;
  border-bottom: 2px solid var(--fluent-ring) !important;
  background-color: var(--fluent-card);
  outline: 0;
  box-shadow: none;
}

/* ============================================
   Forms — File Upload
   ============================================ */

input[type="file"] {
  font-size: 14px;
  color: var(--fluent-foreground);
}

input[type="file"]::file-selector-button {
  background-color: var(--fluent-muted);
  border: 1px solid var(--fluent-border);
  border-radius: var(--fluent-radius-sm);
  color: var(--fluent-foreground);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 16px;
  cursor: pointer;
  margin-right: 12px;
  transition: background-color 200ms ease-out;
}

input[type="file"]::file-selector-button:hover {
  background-color: var(--fluent-border);
}

/* ============================================
   Forms — Search Input
   ============================================ */

input[type="search"] {
  border: 1px solid var(--fluent-border) !important;
  /* border-bottom: 2px solid var(--fluent-border) !important; */
  border-radius: var(--fluent-radius-sm);
  font-size: 14px;
  padding: 8px 12px;
  height: 40px;
  background-color: var(--fluent-bg);
  color: var(--fluent-foreground);
}

input[type="search"]:hover {
  border-color: var(--fluent-muted-fg);
  background-color: var(--fluent-card);
}

input[type="search"]:focus {
  border-color: var(--fluent-border) !important;
  border-bottom: 2px solid var(--fluent-ring) !important;
  background-color: var(--fluent-card);
  outline: 0;
  box-shadow: none;
}

/* ============================================
   Forms — Validation States
   ============================================ */

.has-error .form-control,
.is-invalid {
  border-color: var(--fluent-destructive) !important;
  border-bottom-color: var(--fluent-destructive) !important;
}

.has-error .form-control:focus,
.is-invalid:focus {
  border-color: var(--fluent-destructive) !important;
  border-bottom: 2px solid var(--fluent-destructive) !important;
  box-shadow: none !important;
}

.has-error .help-block,
.invalid-feedback,
.field-validation-error {
  color: var(--fluent-destructive);
  font-size: 13px;
  margin-top: 4px;
}

.has-success .form-control,
.is-valid {
  border-color: var(--portalThemeColor1) !important;
}

.has-success .form-control:focus,
.is-valid:focus {
  box-shadow: 0 0 0 2px rgba(26, 122, 109, 0.25) !important;
}

/* ============================================
   Cards
   ============================================ */

.card {
  border-radius: var(--fluent-radius) !important;
  border: 1px solid var(--fluent-border) !important;
  box-shadow: var(--fluent-shadow-sm) !important;
  background-color: var(--fluent-card);
}

.card:hover {
  box-shadow: var(--fluent-shadow-md) !important;
}

/* ============================================
   Badges
   ============================================ */

.badge {
  border-radius: 9999px !important;
  padding: 2px 10px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.5;
}

/* ============================================
   Nav Tabs (Fluent pill style)
   ============================================ */

.nav-tabs {
  border-bottom: 1px solid var(--fluent-border);
  gap: 0;
}

.nav-tabs .nav-link {
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: var(--fluent-radius-sm) var(--fluent-radius-sm) 0 0;
  color: var(--fluent-muted-fg);
  background: transparent;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 16px;
  margin-bottom: -1px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-tabs .nav-link:hover {
  color: var(--portalThemeColor4, #145c54);
  background-color: rgba(1, 107, 88, 0.04);
  border-color: transparent;
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
  color: var(--portalThemeColor4, #145c54) !important;
  background-color: var(--portalThemeColor11, #d9f5f0) !important;
  border-color: var(--fluent-border) var(--fluent-border) var(--portalThemeColor11, #d9f5f0) !important;
  font-weight: 600;
  box-shadow: none;
}

/* ============================================
   Quill Editor
   ============================================ */

.ql-toolbar.ql-snow {
  background-color: var(--fluent-muted, #eef0f2);
  border: 1px solid var(--fluent-border, #e1e5e9);
  border-radius: var(--fluent-radius-sm, 0.375rem) var(--fluent-radius-sm, 0.375rem) 0 0;
}

.ql-container.ql-snow {
  background-color: var(--fluent-card, #fff);
  border: 1px solid var(--fluent-border, #e1e5e9);
  border-top: none;
  border-radius: 0 0 var(--fluent-radius-sm, 0.375rem) var(--fluent-radius-sm, 0.375rem);
}

.ql-editor {
  font-size: 14px;
  color: var(--fluent-foreground, #212930);
  min-height: 120px;
}

.ql-editor.ql-blank::before {
  color: var(--fluent-muted-fg, #4b5563);
  font-style: normal;
}

.ql-snow .ql-stroke {
  stroke: var(--fluent-muted-fg, #4b5563);
}

.ql-snow .ql-fill,
.ql-snow .ql-stroke.ql-fill {
  fill: var(--fluent-muted-fg, #4b5563);
}

.ql-snow .ql-picker-label {
  color: var(--fluent-muted-fg, #4b5563);
}

.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options {
  background-color: var(--fluent-card, #fff);
  border-color: var(--fluent-border, #e1e5e9);
  border-radius: var(--fluent-radius-sm, 0.375rem);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ============================================
   Tables
   ============================================ */

.table thead th {
  color: var(--fluent-foreground);
  font-weight: 600;
  font-size: 13px;
  border-bottom: 2px solid var(--fluent-border);
  padding: 10px 12px;
}

.table tbody td {
  color: var(--fluent-foreground);
  font-size: 14px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--fluent-border);
}

.table-striped > tbody > tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.015);
}

.table-hover > tbody > tr:hover {
  background-color: var(--fluent-muted) !important;
}

/* ============================================
   Panels (Bootstrap)
   ============================================ */

.panel {
  border-radius: var(--fluent-radius);
  border: 1px solid var(--fluent-border);
  box-shadow: var(--fluent-shadow-sm);
}

.panel-heading {
  border-radius: var(--fluent-radius) var(--fluent-radius) 0 0;
}

.panel-default > .panel-heading {
  background-color: var(--fluent-muted);
  border-color: var(--fluent-border);
  color: var(--fluent-foreground);
}

/* ============================================
   Pagination (single source of truth)
   ============================================ */

.pagination > li > a,
.pagination > li > span {
  background-color: transparent;
  border: 0;
  margin-left: 8px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--fluent-foreground);
  border-radius: var(--fluent-radius-sm);
  font-size: 14px;
  transition: background-color 200ms ease-out, color 200ms ease-out;
}

.pagination > li > a:hover,
.pagination > li > a:focus,
.pagination > li > span:hover,
.pagination > li > span:focus {
  background-color: var(--fluent-muted);
  color: var(--portalThemeColor4);
  border-color: transparent;
}

.pagination > li:first-child > a:hover,
.pagination > li:first-child > span:hover,
.pagination > li:last-child > a:hover,
.pagination > li:last-child > span:hover {
  background-color: var(--fluent-muted);
}

.pagination > .active > a,
.pagination > .active > a:hover,
.pagination > .active > a:focus,
.pagination > .active > span,
.pagination > .active > span:hover,
.pagination > .active > span:focus,
.page-item.active .page-link,
.page-item.active .page-link:hover,
.page-item.active .page-link:focus,
.active > .page-link,
.active > .page-link:hover,
.active > .page-link:focus {
  background-color: var(--portalThemeColor4) !important;
  border-color: var(--portalThemeColor4) !important;
  color: #ffffff !important;
  border-radius: var(--fluent-radius-sm);
}

.view-pagination .pagination {
  margin: 15px 0 0 0;
  justify-content: center;
}

/* ============================================
   Dropdowns
   ============================================ */

.dropdown-menu {
  border: 1px solid var(--fluent-border);
  border-radius: var(--fluent-radius);
  box-shadow: var(--fluent-shadow-md);
  padding: 4px;
}

.dropdown-item,
.dropdown-menu > li > a {
  border-radius: var(--fluent-radius-sm);
  padding: 8px 12px;
  font-size: 14px;
  color: var(--fluent-foreground);
}

.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
  background-color: var(--fluent-muted);
  color: var(--fluent-foreground);
}

.dropdown-item.active,
.dropdown-item:active,
.dropdown-menu > li > a:active {
  background-color: var(--fluent-accent);
  color: var(--fluent-accent-fg);
}

/* ============================================
   Alerts
   ============================================ */

.alert {
  border-radius: var(--fluent-radius-sm, 0.375rem);
  border: 1px solid;
  font-size: 14px;
  padding: 12px 16px;
  line-height: 1.5;
}

.alert-success {
  background-color: #edfaf7;
  border-color: var(--portalThemeColor5, #2a8f82);
  color: var(--portalThemeColor4, #145c54);
  border-left: 4px solid var(--portalThemeColor5, #2a8f82);
}

.alert-danger {
  background-color: #fef2f2;
  border-color: #f87171;
  color: #7f1d1d;
  border-left: 4px solid #ef4444;
}

.alert-warning {
  background-color: #fffbeb;
  border-color: #fbbf24;
  color: #78350f;
  border-left: 4px solid #f59e0b;
}

.alert-info {
  background-color: var(--portalThemeColor11, #d9f5f0);
  border-color: var(--portalThemeColor5, #2a8f82);
  color: var(--portalThemeColor4, #145c54);
  border-left: 4px solid var(--portalThemeColor1, #016b58);
}

.alert-block {
  border-left-width: 4px;
}

.alert .btn-close {
  padding: 14px;
  opacity: 0.5;
}

.alert .btn-close:hover {
  opacity: 1;
}

.alert a {
  font-weight: 600;
  text-decoration: underline;
}

.alert-success a { color: var(--portalThemeColor1, #016b58); }
.alert-danger a { color: #991b1b; }
.alert-warning a { color: #92400e; }
.alert-info a { color: var(--portalThemeColor1, #016b58); }

/* ============================================
   Modals
   ============================================ */

.modal-content {
  border-radius: var(--fluent-radius-lg) !important;
  border: 1px solid var(--fluent-border);
  box-shadow: var(--fluent-shadow-md);
}

.modal-header {
  border-bottom: 1px solid var(--fluent-border);
  padding: 16px 20px;
}

.modal-footer {
  border-top: 1px solid var(--fluent-border);
  padding: 12px 20px;
}

/* ============================================
   Footer
   ============================================ */

footer,
.footer {
  border-top: 1px solid var(--fluent-border);
  background-color: var(--fluent-card);
  padding: 16px 0;
}

/* ============================================
   Links
   ============================================ */

a {
  color: var(--portalThemeColor1);
}

a:hover {
  color: var(--portalThemeColor4);
}

/* ============================================
   Existing Custom Styles (preserved & updated)
   ============================================ */

.centeredSpinner {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 99999;
}

.fa-customspinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--portalThemeColor11);
  border-top: 4px solid var(--portalThemeColor1);
  border-radius: 50%;
}

.fa-customspinner-sm {
  width: 25px;
  height: 25px;
  border: 3px solid var(--portalThemeColor11);
  border-top: 3px solid var(--portalThemeColor1);
  border-radius: 50%;
}

.entitylist-download:before {
  content: "";
  display: inline-block;
  background-image: url(/excel.svg);
  role: "link";
  width: 16px;
  height: 16px;
  float: left;
  margin: 3px 5px 0 0;
}

.entitylist-download {
  background: none;
  border: none !important;
  color: var(--fluent-muted-fg);
  font-size: 14px;
  letter-spacing: 0;
  box-shadow: none;
}

.tab-title {
  display: none !important;
  background-color: var(--fluent-card) !important;
  color: var(--fluent-card) !important;
  margin-top: 5px !important;
}

.btn-close {
  font-size: 25px;
}

.btn-group-xs > .btn, .btn-xs {
  padding: .25rem .4rem;
  font-size: .875rem;
  line-height: .5;
  border-radius: var(--fluent-radius-sm);
}

textarea {
  resize: vertical !important;
  width: 100%;
}

[data-component-theme="portalbg1"] {
  background-color: var(--portalbg1);
  color: var(--portalbg1);
}

[data-component-theme="portalbg1"] h1, [data-component-theme="portalbg1"] h2, [data-component-theme="portalbg1"] h3, [data-component-theme="portalbg1"] h4, [data-component-theme="portalbg1"] h5, [data-component-theme="portalbg1"] h6, [data-component-theme="portalbg1"] p, [data-component-theme="portalbg1"] p.smallText {
  color: var(--portalbg1);
}

[data-component-theme="portalYellowbg"] {
  background-color: var(--portalYellowbg);
  color: var(--portalYellowbg);
}

[data-component-theme="portalYellowbg"] h1, [data-component-theme="portalYellowbg"] h2, [data-component-theme="portalYellowbg"] h3, [data-component-theme="portalYellowbg"] h4, [data-component-theme="portalYellowbg"] h5, [data-component-theme="portalYellowbg"] h6, [data-component-theme="portalYellowbg"] p, [data-component-theme="portalYellowbg"] p.smallText {
  color: var(--portalYellowbg);
}

/* ============================================
   Reusable Fluent Components
   Card, Table, Progress, Outline Button
   ============================================ */

/* --- Fluent Card --- */

.fluent-card {
  background-color: var(--fluent-card, #ffffff);
  border: 1px solid var(--fluent-border, #e1e5e9);
  border-radius: var(--fluent-radius-lg, 0.75rem);
  overflow: hidden;
}

.fluent-card-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--fluent-border, #e1e5e9);
}

.fluent-card-title {
  font-weight: 600;
  color: var(--fluent-foreground, #212930);
  margin: 0;
}

.fluent-card-description {
  color: var(--fluent-muted-fg, #4b5563);
  margin: 0;
}

/* --- Tables inside Fluent Cards --- */

.fluent-card .table {
  margin-bottom: 0;
}

.fluent-card .table thead tr {
  background-color: rgba(238, 240, 242, 0.3);
}

.fluent-card .table thead th {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fluent-muted-fg, #4b5563);
  background-color: var(--fluent-muted, #eef0f2);
  padding: 12px 16px;
  border-bottom: 1px solid var(--fluent-border, #e1e5e9);
  height: 48px;
  vertical-align: middle;
}

.fluent-card .table tbody td {
  padding: 12px 16px;
  vertical-align: middle;
  border-bottom: 1px solid var(--fluent-border, #e1e5e9);
  color: var(--fluent-foreground, #212930);
}

/* .fluent-card .table tbody tr:last-child td {
  border-bottom: 0;
} */

.fluent-card .table tbody tr {
  transition: background-color 150ms ease;
}

.fluent-card .table tbody tr:hover {
  background-color: #f5f5f5 !important;
}

/* --- Fluent Table --- */

.fluent-table {
  margin-bottom: 0;
}

.fluent-table thead tr {
  background-color: rgba(238, 240, 242, 0.3);
}

.fluent-table thead th {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fluent-muted-fg, #4b5563);
  padding: 12px 16px;
  border-bottom: 1px solid var(--fluent-border, #e1e5e9);
  height: 48px;
  vertical-align: middle;
}

.fluent-table tbody td {
  padding: 16px;
  vertical-align: middle;
  border-bottom: 1px solid var(--fluent-border, #e1e5e9);
}

.fluent-table tbody tr:last-child td {
  border-bottom: 0;
}

.fluent-table tbody tr {
  transition: background-color 150ms ease;
}

.fluent-table tbody tr:hover {
  background-color: #f5f5f5 !important;
}

/* Table cell variants */
.fluent-cell-name {
  font-weight: 500;
  color: var(--fluent-foreground, #212930);
}

.fluent-cell-secondary {
  color: var(--fluent-muted-fg, #4b5563);
}

.fluent-cell-mono {
  font-family: 'Cascadia Code', 'Consolas', monospace;
}

/* --- Fluent Progress Bar --- */

.fluent-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
}

.fluent-progress-label {
  font-weight: 500;
  color: var(--fluent-muted-fg, #4b5563);
  min-width: 32px;
  text-align: right;
}

.fluent-progress-track {
  flex: 1;
  max-width: 120px;
  height: 8px;
  background-color: var(--fluent-muted, #eef0f2);
  border-radius: 9999px;
  overflow: hidden;
}

.fluent-progress-fill {
  height: 100%;
  background-color: var(--portalThemeColor1, #016b58);
  border-radius: 9999px;
  transition: width 300ms ease;
}

/* --- Fluent Outline Button --- */

.btn-fluent-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--fluent-border, #e1e5e9);
  border-radius: var(--fluent-radius-sm, 0.375rem);
  background-color: var(--fluent-bg, #f7f7f7);
  color: var(--fluent-foreground, #212930);
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.btn-fluent-outline:hover {
  background-color: var(--fluent-accent, #d9f5f0);
  border-color: var(--fluent-accent, #d9f5f0);
  color: var(--fluent-accent-fg, #145c54);
}

.btn-fluent-outline:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--fluent-bg, #f7f7f7), 0 0 0 4px var(--fluent-ring, #1a7a6d);
}

.btn-fluent-outline:active {
  background-color: var(--fluent-accent, #d9f5f0);
  border-color: var(--portalThemeColor4, #145c54);
  color: var(--fluent-accent-fg, #145c54);
  box-shadow: none;
}

.btn-fluent-outline:disabled,
.btn-fluent-outline.disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

/* ============================================
   Migrated from theme.css (deactivated)
   Essential structural & layout styles.
   Old blue/purple accents replaced with
   Fluent teal palette variables.
   ============================================ */

/* --- HTML & Body Base --- */

html {
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  height: 100%;
  margin: 0;
}

body {
  padding-top: 0;
  margin: 0;
  height: 100%;
}

/* --- Page Layout --- */

.wrapper-body {
  min-height: calc(100% - 132px);
  margin-bottom: 0;
}

.page-header {
  border-bottom: 0;
}

.page-copy {
  margin-top: 0;
  margin-bottom: 0;
}

/* --- Underline Headings --- */

h1.underline,
h4.underline {
  border-bottom: 1px solid var(--fluent-border);
  padding-bottom: 21px;
}

@media (max-width: 767px) {
  .text_center-mobile {
    text-align: center;
  }
}

/* --- Home Buttons --- */

.btn-lg-home {
  padding: 20px 40px;
  font-size: 15px;
}

.btn-info-home {
  color: #fff;
  border-color: #fff;
  background: transparent;
}

.btn-info-home:hover,
.btn-info-home:active,
.btn-info-home:focus {
  color: #000;
  border-color: #000;
  background: #fff;
}

/* --- Logo Container --- */

.logo-container {
  height: 51px;
  width: 187px;
  margin-left: 9px;
}

/* --- Navbar Structural --- */

.fixed-top {
  border-width: 0;
}

.static-top {
  border-width: 0;
  margin-bottom: 0;
}

.navbar-default {
  border-color: transparent;
}

.homelink,
a.homelink:hover,
a.homelink:focus {
  color: #fff;
  text-decoration: none;
}

.register-bar {
  clear: both;
}

.fixed-top.navbar {
  min-height: 50px;
}

.fixed-top.navbar .navbar-collapse {
  max-height: 510px;
  box-shadow: none;
  border-top: none;
  padding-top: 8px;
}

.fixed-top.navbar .form-inline {
  border: none;
  margin-left: 0;
  margin-right: 0;
}

.fixed-top.navbar .form-inline .form-control {
  font-size: 1em;
}

.static-top.navbar .navbar-collapse {
  max-height: 510px;
  box-shadow: none;
  border-top: none;
}

.static-top.navbar .form-inline {
  border: none;
  margin-left: 0;
  margin-right: 0;
}

.static-top.navbar .form-inline .form-control {
  font-size: 1em;
}

@media (min-width: 992px) {
  .fix-navbar .register-bar {
    display: none;
  }
}

.fixed-top.navbar > .container > .row > div {
  float: none !important;
  display: inline-block;
  vertical-align: bottom;
}

.static-top.navbar > .container > .row > div {
  float: none !important;
  display: inline-block;
  vertical-align: bottom;
}

.fixed-top.navbar .menu-bar > .navbar-nav > .divider-vertical {
  height: 21px;
  margin: 0 4px;
  margin-top: 14.5px;
  border-right: 1px solid #fff;
  border-left: 1px solid var(--fluent-muted-fg);
}

.static-top.navbar .menu-bar > .navbar-nav > .divider-vertical {
  height: 21px;
  margin: 0 4px;
  margin-top: 14.5px;
  border-right: 1px solid #fff;
  border-left: 1px solid var(--fluent-muted-fg);
}

/* --- Navbar Brand --- */

.navbar-brand {
  padding: 8px;
  line-height: 37px;
}

.fixed-top .navbar-brand {
  font-size: 2.11em;
  font-family: 'Segoe UI Variable', 'Segoe UI Light', 'Helvetica Neue', sans-serif;
  color: var(--fluent-foreground);
  position: relative;
}

@media (max-width: 1200px) {
  .fixed-top .navbar-brand {
    position: initial;
  }
}

.fixed-top .navbar-header {
  padding-top: 8px;
}

.static-top .navbar-brand {
  font-size: 2.11em;
  font-family: 'Segoe UI Variable', 'Segoe UI Light', 'Helvetica Neue', sans-serif;
  color: var(--fluent-foreground);
  position: relative;
}

@media (max-width: 1200px) {
  .static-top .navbar-brand {
    position: initial;
  }
}

/* --- Navbar (Fluent Light Header) --- */

.navbar.static-top {
  background-color: var(--fluent-card, #ffffff);
  border-color: transparent;
  border-bottom: 1px solid var(--fluent-border);
  box-shadow: var(--fluent-shadow-sm);
}

.navbar.static-top .navbar-brand {
  font-size: 24px;
  font-weight: bold;
  font-family: unset;
}

.navbar.static-top .navbar-brand a {
  color: var(--fluent-foreground, #212930);
  text-decoration: none;
}

/* Navbar brand color override for light navbar */
.navbar-brand {
  color: var(--fluent-foreground, #212930) !important;
}

/* --- Site Title (Fluent) --- */

h1.siteTitle,
.navbar-brand h1.siteTitle,
.navbar-brand h1.siteTitle > span {
  color: var(--fluent-foreground) !important;
  /* font-family inherited from --bs-body-font-family */
  font-weight: 600 !important;
  font-size: 1rem !important;
  vertical-align: middle;
}

.navbar.fixed-top {
  background-color: var(--fluent-card, #ffffff);
  border-color: transparent;
  border-bottom: 1px solid var(--fluent-border);
  box-shadow: var(--fluent-shadow-sm);
}

.navbar.fixed-top .navbar-brand {
  color: var(--fluent-foreground, #212930);
}

.navbar .divider-vertical {
  border-right-color: var(--fluent-border);
  border-left-color: var(--fluent-border);
}

/* Navbar nav link styles (Fluent) */
.navbar .navbar-nav > li > a,
.navbar .navbar-nav > li.dropdown > a,
.navbar .navbar-nav .nav-link {
  color: var(--fluent-foreground, #212930) !important;
  font-size: 14px;
  font-weight: 500;
}

.navbar .navbar-nav > li > a:hover,
.navbar .navbar-nav > li.dropdown > a:hover,
.navbar .navbar-nav .nav-link:hover {
  color: var(--portalThemeColor1, #016b58) !important;
  background-color: var(--fluent-muted, #eef0f2) !important;
  border-radius: var(--fluent-radius-sm);
}

.navbar .navbar-nav > li > a:focus,
.navbar .navbar-nav > li.dropdown > a:focus,
.navbar .navbar-nav .nav-link:focus {
  color: var(--portalThemeColor1, #016b58) !important;
  background-color: var(--fluent-muted, #eef0f2) !important;
  border: 1px dashed var(--fluent-foreground, #212930) !important;
  outline: 1px dashed var(--fluent-card, #ffffff);
  border-radius: var(--fluent-radius-sm);
}

@media (max-width: 1199px) {
  .navbar .navbar-nav > li > a:hover {
    color: var(--portalThemeColor1, #016b58) !important;
    background-color: var(--fluent-muted, #eef0f2) !important;
  }
}

/* --- Navbar Toggler (dark stroke for light navbar) --- */

.navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 41, 48, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar .navbar-toggler {
  border-color: var(--fluent-border, #e1e5e9) !important;
}

/* --- Shopping Cart Link --- */

.menu-bar .shopping_link {
  position: relative;
}

.menu-bar .shopping_link .cart_amount {
  border-radius: 100%;
  height: 17px;
  width: 17px;
  position: absolute;
  bottom: 6px;
  right: -6px;
  background-color: var(--portalThemeColor1);
  text-align: center;
  line-height: 17px;
  font-size: 9px;
  padding-left: 1.9px;
  color: #fff;
}

.menu-bar .shopping_link .cart_amount:hover {
  color: #fff;
}

@media (max-width: 1199px) {
  .fixed-top .navbar-collapse .nav > .divider-vertical,
  .static-top .navbar-collapse .nav > .divider-vertical {
    display: none;
  }
}

@media (max-width: 767px) {
  .fixed-top.navbar > .container > .row > div,
  .static-top.navbar > .container > .row > div {
    display: block;
  }

  .navbar-header {
    position: relative;
  }
}

/* --- Navbar Dropdown Positioning --- */

#navbar .dropdown-menu {
  margin-top: 8px;
}

#navbar .dropdown-search {
  padding-top: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  margin: 9px;
}

#navbar .dropdown-search #q {
  min-width: 200px;
}

@media (max-width: 1199px) {
  #navbar .dropdown-search .input-group-btn {
    vertical-align: top;
  }

  #navbar .dropdown-search #search-filter {
    width: 100%;
    text-align: left;
    padding-left: 25px;
  }

  #navbar .dropdown-search.dropdown-menu > li:hover,
  #navbar .dropdown-search .dropdown-menu > li:hover {
    color: white;
    background-color: transparent;
  }
}

/* --- Custom Utility Classes --- */

.custom-container {
  flex-wrap: wrap !important;
}

.custom-sitetitle {
  text-wrap: wrap;
}

.custom-navbar-toggler {
  margin-left: auto;
}

/* --- Nav Item Dropdown Caret --- */

.nav-item .dropdown-toggle::after {
  border-top: 0.2em solid;
  border-right: 0.2em solid transparent;
  border-bottom: 0;
  border-left: 0.2em solid transparent;
}

/* --- Skip-to-Content Accessibility --- */

.skip-to-content a {
  padding: 10px 20px;
  position: absolute;
  top: -43px;
  left: 0;
  color: #ffffff;
  border-radius: 2px;
  background: #742774;
  transition: top 1s ease-out;
  z-index: 100;
  font-family: 'Segoe UI Variable', 'Segoe UI', sans-serif;
  font-size: 14px;
}

.skip-to-content a:focus {
  position: absolute;
  left: 0;
  top: 0;
  outline: none;
  color: #ffffff;
  transition: top 0.1s ease-in;
}

/* --- Tabs Header --- */

.tabs-header {
  padding-bottom: 9.5px;
  margin: 42px 0 21px;
}

/* --- Validation / Error (CRM-specific) --- */

.help-block.error,
label.col-form-label.required:before,
.crmEntityFormView .cell div.info.required label:after,
.crmEntityFormView .cell div.info div.validators,
.crmEntityFormView .validator-text,
.crmEntityFormView .rank-order-cell .validator-text,
.crmEntityFormView .constant-sum-cell .validator-text,
.crmEntityFormView .stack-rank-cell .validator-text {
  color: var(--fluent-destructive);
}

/* --- Entity Form / Entity List Background --- */

.crmEntityFormView,
.entitylist {
  /* background-color: #ffffff; */
  color: var(--fluent-foreground);
}

/* --- Entity List Grid Styling (Fluent) --- */

.view-toolbar {
  padding: 1% 1% 0;
  /* border-bottom: 1px solid var(--fluent-border, #e1e5e9);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px; */
  border: none;
}

.entitylist .entity-grid .table {
  margin-bottom: 0;
}

.entitylist .entity-grid .table > thead > tr > th {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fluent-muted-fg, #4b5563);
  background-color: var(--fluent-muted, #eef0f2);
  padding: 12px 16px;
  border-bottom: 1px solid var(--fluent-border, #e1e5e9);
  border-top: none;
  white-space: nowrap;
}

.view-toolbar .grid-actions {
  background-color: var(--fluent-muted, #eef0f2);
  padding: 12px 16px;
  border-radius: var(--fluent-radius-sm, 0.375rem);
}

.entitylist .entity-grid .table > tbody > tr > td {
  padding: 12px 16px;
  vertical-align: middle;
  border-bottom: 1px solid var(--fluent-border, #e1e5e9);
  color: var(--fluent-foreground, #212930);
}

.entitylist .entity-grid .table > tbody > tr:hover {
  background-color: rgba(238, 240, 242, 0.3);
}

.entitylist .entity-grid .table > tbody > tr:last-child > td {
  border-bottom: none;
}

.entitylist .view-pagination {
  padding: 12px 24px;
  border-top: 1px solid var(--fluent-border, #e1e5e9);
}

.entitylist .view-empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--fluent-muted-fg, #6b7280);
}

/* --- High Contrast Media Query --- */

@media screen and (-ms-high-contrast: active) {
  .navbar-default .navbar-toggler .navbar-toggler-icon {
    background-color: var(--fluent-muted-fg);
  }

  .navbar .navbar-toggler .navbar-toggler-icon {
    background-color: #fff;
  }

  .nav-tabs > li.active > a,
  .nav-tabs > li.active > a:hover,
  .nav-tabs > li.active > a:focus,
  .nav-tabs .nav-link.active {
    border-bottom-color: var(--portalThemeColor11, #d9f5f0);
  }

  .nav-tabs > li > a,
  .nav-tabs .nav-link {
    border: 1px solid transparent;
    border-bottom: none;
  }

  .navbar .navbar-nav .show.dropdown-menu > li > a:hover,
  .navbar .navbar-nav .show.dropdown-menu > .active > a:hover,
  .navbar .navbar-nav .show.dropdown-menu > .active > a:focus {
    border: 1px solid;
  }

  .facet-list-group-item {
    margin: 1px;
    border: 0;
  }
}

/* --- Color Utility Classes --- */

.pr-color {
  color: var(--portalThemeColor1);
}

.blue_border {
  padding-bottom: 10px;
  border-bottom: 7px solid var(--portalThemeColor1);
}

/* --- Footer Structural --- */

footer {
  position: relative;
}

footer .footer-top {
  width: 100%;
  min-height: 130px;
  background-color: #212930;
  display: flex;
  align-items: center;
}

footer .footer-top h3,
footer .footer-top h4 {
  color: #fff;
}

footer .footer-top .list-social-links {
  margin-top: 25px;
  margin-bottom: 12.5px;
}

@media screen and (max-width: 991px) {
  footer .footer-top h3,
  footer .footer-top .list-social-links {
    text-align: center;
  }
}

footer .footer-bottom {
  width: 100%;
  min-height: 68px;
  font-size: 14px;
  display: flex;
  align-items: center;
}

footer .footer-bottom p {
  margin: 0;
  color: var(--fluent-foreground);
}

footer .footer-bottom h4 {
  margin-top: 0;
  color: var(--fluent-foreground);
}

footer .footer-bottom ul {
  list-style-type: none;
  margin: 0;
}

footer .footer-bottom ul li a,
footer .footer-bottom ul li a:hover,
footer .footer-bottom ul li a:focus,
footer .footer-bottom ul li a:active,
footer .footer-bottom ul li a.active {
  font-size: 15px;
  color: var(--fluent-foreground);
}

.footer .push {
  height: 43px;
}

.footer {
  margin-top: 0;
}

/* --- Social Links --- */

.list-social-links {
  list-style-type: none;
  padding-left: 0;
}

.list-social-links li {
  display: inline-block;
  margin: 0 10px;
}

.list-social-links li a,
.list-social-links li a:hover,
.list-social-links li a:focus,
.list-social-links li a:active,
.list-social-links li a.active {
  color: #fff;
}

/* --- Sections & Layout --- */

.section-margin {
  margin: 21px 0;
}

.layer_down {
  height: 50px;
  background: url('layer_down.png') no-repeat bottom center;
  position: absolute;
  bottom: 0;
  z-index: 900;
  width: 100%;
}

.layer_up {
  height: 40px;
  background: url('layer_up.png') no-repeat bottom center;
  position: relative;
  z-index: 20;
}

.section-inline-search {
  background-size: cover;
}

.section-inline-search .row > div {
  margin-top: 100px;
}

.section-inline-search .row > div h1 {
  color: #fff;
}

@media screen and (max-width: 600px) {
  .section-inline-search .row > div h1 {
    font-size: 16vw;
  }
}

.section-inline-search .row > div .form-inline .row .input-group {
  margin-right: 21px;
}

.section-inline-search .row > div .form-inline .row .input-group .input-group-text {
  background-color: #fff;
  border-right: none;
}

.section-inline-search .row > div .form-inline .row .input-group .form-control {
  height: 60px;
  border-left: none;
  box-shadow: none;
}

.section-inline-search .row > div .form-inline .row .input-group .form-control:focus {
  box-shadow: none;
  border-right: none;
  border-color: var(--fluent-border);
}

/* --- Wrapper / SVG Container --- */

.wrapper {
  width: 100%;
  margin: 0 auto;
  text-align: center;
  transition: width 0.3s ease-out;
}

.wrapper .contained {
  position: relative;
  height: 400px;
  padding-bottom: 56.25%;
}

.wrapper .contained > svg {
  margin-top: -100px;
  position: absolute;
  display: block;
}

.contained .row {
  margin-top: 80px;
}

/* --- User Icon --- */

.user-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  margin-right: 7px;
}

/* --- Article Styles --- */

.article-title-container {
  border-top: solid 1px var(--fluent-border);
  border-bottom: solid 1px var(--fluent-border);
  padding-left: 15px;
  padding-top: 28px;
  padding-bottom: 28px;
}

.article-title {
  margin-left: -35px;
}

.article-title > span {
  margin-left: 3px;
}

.article-title > span .article-author {
  font-weight: bold;
  color: var(--portalThemeColor1);
}

.article-content {
  margin-top: 15px;
}

.article-content > p {
  text-align: justify;
}

@media screen and (max-width: 993px) {
  .article-title {
    margin-left: 0;
    text-align: center;
  }

  .article-author {
    text-align: center;
  }
}

/* --- Search Section --- */

.section-search .header-search {
  padding-top: 40px;
  padding-bottom: 40px;
  margin-bottom: 40px;
  background-color: var(--fluent-muted);
}

.section-search .header-search img {
  max-width: 350px;
}

@media screen and (max-width: 600px) {
  .section-search .header-search h1 {
    font-size: 13vw;
  }
}

.section-search .title-search {
  font-size: 26px;
  font-weight: bold;
}

.section-search input {
  border-style: none;
  padding-left: 10px;
  height: 60px;
}

.section-search .media .media-left > img {
  max-width: 240px;
}

.section-search .media .media-body {
  padding-left: 20px;
}

.section-search .media .media-body > a {
  text-decoration: none;
  font-weight: bold;
}

.section-search .media .media-body .media-heading {
  margin-top: 5px;
  margin-bottom: 20px;
}

/* --- Cards Container --- */

.cards-container {
  margin-top: 84px;
  display: flex;
  justify-content: center;
}

@media screen and (max-width: 991px) {
  .cards-container {
    flex-direction: column;
  }
}

/* --- Carousel --- */

.carousel-custom .carousel-inner > .carousel-item {
  margin-right: auto;
  margin-left: auto;
}

.carousel-custom .carousel-inner > .carousel-item .carousel-caption {
  display: flex;
  align-items: center;
  top: 5%;
  left: 5%;
  right: 5%;
}

@media screen and (min-width: 768px) {
  .carousel-custom .carousel-inner > .carousel-item .carousel-caption {
    left: 5%;
    right: 5%;
  }
}

.carousel-custom .carousel-indicators li {
  border-color: var(--fluent-foreground);
}

/* --- Table Forms --- */

.table.table-forms td {
  padding: 15px 8px;
}

.table.table-forms tbody tr:first-child td {
  border-top: none;
}

/* --- Poll Component --- */

.poll {
  background-color: var(--fluent-muted);
  border-top: 7px solid var(--portalThemeColor1);
  position: relative;
  padding-left: 15px;
  padding-right: 15px;
}

.poll .poll-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--fluent-border);
  padding-bottom: 5px;
}

.poll .poll-header h4 {
  font-weight: bold;
  display: inline-block;
}

.poll .poll-content {
  padding-top: 25px;
}

.poll .poll-content p {
  font-size: 14px;
}

.poll .poll-content form {
  border-bottom: 1px solid var(--fluent-border);
  padding-bottom: 10px;
}

.poll .poll-content .poll-buttons {
  padding-top: 20px;
  padding-left: 11px;
}

.poll .poll-content .poll-buttons .btn {
  padding: 4px 14px;
  font-size: 14px;
}

.poll .poll-content .poll-buttons .btn-default,
.poll .poll-content .poll-buttons .btn-secondary {
  color: #000;
  border-color: #000;
}

.poll .poll-content .poll-buttons .btn-default:hover,
.poll .poll-content .poll-buttons .btn-secondary:hover {
  color: #000;
  border-color: #000;
}

.poll .poll-tags {
  padding-top: 10px;
}

.poll .poll-tags h4 {
  border-bottom: 1px solid var(--fluent-border);
  padding-bottom: 10px;
}

.poll .poll-tags .tag {
  display: inline-block;
  background-color: var(--fluent-border);
  color: var(--fluent-foreground);
  padding: 5px 14px;
  margin: 5px 0;
  text-transform: uppercase;
  font-size: 13px;
}

/* --- Nav Sidebar --- */

.nav-sidebar {
  padding-left: 20px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.nav-sidebar .nav > li > a {
  padding: 4px 20px;
  color: var(--portalThemeColor1);
  border-right: 2px solid var(--fluent-border);
}

.nav-sidebar .nav > li > a:hover,
.nav-sidebar .nav > li > a:focus {
  color: var(--fluent-foreground);
  text-decoration: none;
  background-color: transparent;
  border-right: 2px solid var(--portalThemeColor1);
}

.nav-sidebar .nav > li > a:before {
  position: relative;
  top: 1px;
  display: inline-block;
  font-family: 'Glyphicons Halflings';
  font-style: normal;
  font-weight: normal;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  content: '\e250';
  margin-right: 7px;
}

.nav-sidebar .nav > .active > a {
  color: var(--fluent-foreground);
  text-decoration: none;
  background-color: transparent;
  border-right: 2px solid var(--portalThemeColor1);
  font-weight: bold;
}

.nav-sidebar .nav > .active > a:before {
  content: '\e252';
}

.nav-sidebar .nav > .active:hover > a,
.nav-sidebar .nav > .active:focus > a {
  font-weight: bold;
}

.nav-sidebar .nav > .active > ul.nav {
  display: block;
}

.nav-sidebar .nav ul.nav {
  display: none;
}

.nav-sidebar .nav .nav > li > a {
  padding-top: 1px;
  padding-bottom: 1px;
  padding-left: 30px;
}

.nav-sidebar .nav .nav > .active,
.nav-sidebar .nav .nav > .active:hover,
.nav-sidebar .nav .nav > .active:focus {
  font-weight: bold;
}

.nav-sidebar .nav .nav .nav > li > a {
  padding-top: 1px;
  padding-bottom: 1px;
  padding-left: 60px;
}

.nav-sidebar .nav .nav .nav > li > a:before {
  content: '';
}

.nav-sidebar .nav .nav .nav > .active,
.nav-sidebar .nav .nav .nav > .active:hover,
.nav-sidebar .nav .nav .nav > .active:focus {
  font-weight: bold;
}

/* --- Form Search --- */

.form-search .btn {
  border: 1px solid var(--fluent-border);
}

.form-search .btn-default:hover,
.form-search .btn-secondary:hover {
  border-color: var(--fluent-border);
}

.form-search .dropdown-submenu {
  right: -2px;
}

.form-search .dropdown-menu {
  margin-top: 0;
}

.dropdown-search.dropdown-menu > li:hover {
  background-color: transparent;
}

#navbar .form-search .dropdown-menu {
  margin-top: 0;
}

/* --- Diagonal Sections --- */

.section-diagonal-left {
  transform: skew(0deg, -1.3deg);
  overflow: hidden;
  margin-top: -60px;
  margin-bottom: -20px;
}

.section-diagonal-left .section-diagonal-left-content {
  transform: skew(0deg, 1.3deg);
  background-size: cover;
  margin-top: -70px;
}

.section-diagonal-left .section-diagonal-left-content:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.2;
  z-index: -1;
  background-color: #fff;
}

.section-diagonal-right {
  transform: skew(0deg, 1.3deg);
  overflow: hidden;
  margin-top: 60px;
  margin-bottom: -20px;
}

.section-diagonal-right.home-section {
  margin-top: -60px;
}

.section-diagonal-right .section-diagonal-right-content {
  transform: skew(0deg, -1.3deg);
  background-size: cover;
  margin-top: -70px;
}

.section-diagonal-right .section-diagonal-right-content:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
  z-index: -1;
  background-color: var(--portalThemeColor1);
}

.section-diagonal-left .row,
.section-diagonal-right .row {
  padding-top: 125px;
}

.section-diagonal-left .col-lg-5,
.section-diagonal-right .col-lg-5 {
  float: none;
  margin: 0 auto;
}

.section-diagonal-left p,
.section-diagonal-right p {
  border-top: none;
}

/* --- Section Landing --- */

.section-landing {
  background: linear-gradient(transparent, transparent);
  background-size: cover;
}

.section-landing .row > div {
  margin-top: 80px;
}

@media screen and (max-width: 993px) {
  .section-landing h1 {
    font-size: 65px;
  }

  .section-landing h2 {
    letter-spacing: normal;
    margin-left: -3px;
  }
}

/* --- Section Sub-Landing & Default --- */

.section-sub-landing {
  background-size: cover;
}

.section-default {
  background-size: cover;
}

@media screen and (max-width: 767px) {
  .section-default:before {
    content: ' ';
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 0;
    top: 0;
    left: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.59) 41%, rgba(0, 0, 0, 0.62) 43%, black 100%);
  }
}

.section-default .row {
  padding-bottom: 150px;
}

/* --- Section Knowledge --- */

.section-knowledge {
  margin-bottom: 40px;
}

.section-knowledge .list-group a.list-group-item {
  color: var(--portalThemeColor1);
}

.section-knowledge .card-title {
  color: #000;
}

/* --- Page Section --- */

.page_section {
  position: relative;
  background-size: cover;
  color: #000;
}

.page_section .row {
  padding-top: 40px;
  padding-bottom: 100px;
}

.page_section .row.sidebar-home {
  padding-bottom: 0;
}

.page_section .btn {
  margin-top: 50px;
}

.page_section .form-search .btn {
  padding: 4px 12px;
  margin-top: 1px;
}

.page_section .section-landing-heading p,
.page_section .section-landing-sub-heading p {
  border-top: 0;
}

.page_section.section-landing .row {
  padding-bottom: 60px;
}

.page_section.section-landing .row > div {
  margin-top: 0;
}

/* --- Content Home --- */

.content-home .btn {
  margin-top: 0;
}

.content-home .card {
  background-color: transparent;
  border: 0;
  box-shadow: none;
}

.content-home .card p {
  border: 0;
}

.content-home .card-header {
  display: none;
}

.content-home .list-group-item {
  padding: 20px 0;
  font-size: 20px;
  background-color: transparent;
  border: 0;
  border-top: 1px solid var(--fluent-border);
}

.content-home .list-group-item img {
  margin-right: 25px;
}

.content-home a.list-group-item,
.content-home .list-group-item a.title {
  color: var(--fluent-foreground);
}

.content-home a.list-group-item:hover,
.content-home a.list-group-item:focus,
.content-home .list-group-item a.title:hover,
.content-home .list-group-item a.title:focus {
  color: var(--fluent-foreground);
  text-decoration: underline;
  background-color: transparent;
}

.content-home .title,
.content-home .description {
  display: block;
}

.content-home .title {
  font-size: 24px;
  font-family: 'Segoe UI Variable', 'Segoe UI Light', 'Helvetica Neue', sans-serif;
}

.content-home .description {
  display: block;
  font-size: 14px;
}

/* --- Sidebar Home --- */

.sidebar-home {
  background-color: var(--fluent-muted);
  border-top: 7px solid var(--portalThemeColor1);
  margin-top: 36px;
  position: relative;
}

.sidebar-home h3 {
  font-size: 18px;
}

.sidebar-home .card {
  background-color: transparent;
  border: 0;
  box-shadow: none;
}

.sidebar-home .card-header {
  padding-left: 0;
  background-color: transparent;
  border: 0;
}

.sidebar-home .card-title {
  font-size: 14px;
  color: var(--portalThemeColor1);
  font-family: 'Segoe UI Semibold', 'Segoe UI Variable', 'Helvetica Neue', sans-serif;
}

.sidebar-home .list-group-item {
  padding-left: 0;
  font-size: 14px;
  background-color: transparent;
  border: 0;
}

.sidebar-home .list-group-item:hover,
.sidebar-home .list-group-item:focus {
  text-decoration: underline;
  background-color: transparent;
}

.sidebar-home .list-group-item .date {
  visibility: hidden;
}

/* --- Landing Search / Forums --- */

.section-landing-search {
  min-height: 250px;
  background: url(homehero.jpg) no-repeat 0 25%;
  background-size: cover;
}

.section-landing-forums {
  min-height: 250px;
  background-size: cover;
}

/* --- Tree List --- */

ul.tree,
ol.tree {
  color: var(--portalThemeColor1);
}

.tree ul,
.tree ol,
.tree ul ul,
.tree ol ul,
.tree ol ol ul,
.tree ol ul ul,
.tree ul ol ul,
.tree ul ul ul {
  list-style-type: disc;
  color: var(--portalThemeColor1);
}

/* --- Form Fonts --- */

.adx_forms_font_calibri {
  font-family: Calibri;
}

.adx_forms_font_new_roman {
  font-family: Times New Roman;
}

.adx_forms_font_helvetica {
  font-family: 'Helvetica', sans-serif;
}

/* --- French Accessibility Link --- */

.frenchAccessibilityLink {
  float: right;
  width: 297px;
  height: 24px;
  font-family: 'Segoe UI Variable', 'Segoe UI', sans-serif;
  font-size: 18px;
  line-height: 21px;
  text-decoration-line: underline;
  color: var(--portalThemeColor1);
}

/* --- PVA Chatbot Floating --- */
/* Widget hidden but PVA script still loads — required for $pages.agent.SendActivity API */

.pva-floating-style {
  display: none !important;
}

/* --- Visible LG Block --- */

.visible-lg-block {
  display: flex !important;
  align-items: center;
}

/* --- Filter Dropdown Accessibility --- */

#filterDropdownId > .dropdown-menu > li > a:focus {
  border: 1px solid;
}

#filterDropdownId > a:focus {
  border: 1px solid;
}

/* --- Button Group Border Radius Fix --- */

.btn-group>.btn-group:not(:last-child)>.btn,
.btn-group>.btn.dropdown-toggle-split:first-child,
.btn-group>.btn:not(:last-child):not(.dropdown-toggle) {
    border-top-right-radius: inherit;
    border-bottom-right-radius: inherit;
}

/* ============================================
   V2 Wizard Stepper (Nomination / Review)
   ============================================ */

.v2-wizard-stepper {
    display: flex;
    align-items: flex-start;
    padding: 12px 0;
    width: 33%;
}

.v2-wizard-stepper .NominationStep,
.v2-wizard-stepper .ReviewStep {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    background: none;
    float: none;
    position: static;
    margin: 0;
    padding: 0;
    min-width: auto;
    cursor: default;
    -webkit-user-select: none;
    user-select: none;
    color: var(--fluent-muted-fg, #6b7280);
}

.v2-wizard-stepper .NominationStep::before,
.v2-wizard-stepper .NominationStep::after,
.v2-wizard-stepper .ReviewStep::before,
.v2-wizard-stepper .ReviewStep::after {
    content: none !important;
    border: none !important;
}

.v2-step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    background: var(--fluent-card, #fff);
    transition: all 0.2s ease;
}

.v2-step-title {
    font-size: 13px;
    color: var(--fluent-muted-fg, #6b7280);
    margin-top: 6px;
    font-weight: 500;
    white-space: nowrap;
    text-align: center;
}

.v2-step-connector {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
    margin-top: 15px;
    min-width: 24px;
    transition: background 0.2s ease;
}

/* Current step */
.v2-wizard-stepper .NominationStep.current .v2-step-circle,
.v2-wizard-stepper .ReviewStep.current .v2-step-circle {
    background: var(--portalThemeColor4, #145c54);
    border-color: var(--portalThemeColor4, #145c54);
    color: #fff;
}

.v2-wizard-stepper .NominationStep.current .v2-step-title,
.v2-wizard-stepper .ReviewStep.current .v2-step-title {
    color: var(--portalThemeColor4, #145c54);
    font-weight: 600;
}

/* Visited step */
.v2-wizard-stepper .NominationStep.visited .v2-step-circle,
.v2-wizard-stepper .ReviewStep.visited .v2-step-circle {
    border-color: var(--portalThemeColor4, #145c54);
    color: var(--portalThemeColor4, #145c54);
    background: var(--portalThemeColor11, #d9f5f0);
}

.v2-wizard-stepper .NominationStep.visited .v2-step-title,
.v2-wizard-stepper .ReviewStep.visited .v2-step-title {
    color: var(--fluent-foreground, #212930);
    font-weight: 500;
}


/* Connector becomes teal after a visited step */
.v2-wizard-stepper .NominationStep.visited + .v2-step-connector,
.v2-wizard-stepper .ReviewStep.visited + .v2-step-connector {
    background: var(--portalThemeColor4, #145c54);
}

/* Responsive */
@media (max-width: 576px) {
    .v2-step-title {
        font-size: 11px;
    }
    .v2-step-circle {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    .v2-step-connector {
        margin-top: 13px;
        min-width: 12px;
    }
}

/* Forced colors / High contrast */
@media (forced-colors: active) {
    .v2-step-circle {
        border: 2px solid ButtonText !important;
        color: ButtonText !important;
        background: Canvas !important;
    }
    .v2-wizard-stepper .NominationStep.current .v2-step-circle,
    .v2-wizard-stepper .ReviewStep.current .v2-step-circle {
        border: 3px solid Highlight !important;
        color: HighlightText !important;
        background: Highlight !important;
    }
    .v2-wizard-stepper .NominationStep.visited .v2-step-circle,
    .v2-wizard-stepper .ReviewStep.visited .v2-step-circle {
        border: 2px solid Highlight !important;
        color: Highlight !important;
        background: Canvas !important;
    }
    .v2-step-connector {
        background: ButtonText !important;
    }
    .v2-wizard-stepper .NominationStep.visited + .v2-step-connector,
    .v2-wizard-stepper .ReviewStep.visited + .v2-step-connector {
        background: Highlight !important;
    }
}
