html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

:root {
  --jav-red: #d32525;
  --jav-red-hover: #b11f1f;
  --jav-blue: #1959ff;
  --jav-blue-hover: #1145cc;
  --jav-surface: #f3f5f8;

  --bs-primary: var(--jav-red);
  --bs-primary-rgb: 211, 37, 37;
  --bs-link-color: var(--jav-blue);
  --bs-link-hover-color: var(--jav-blue-hover);
  --bs-body-bg: var(--jav-surface);
  --bs-body-color: #212529;
  --bs-border-color: #d7dde5;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(25, 89, 255, 0.35);
}

html {
  position: relative;
  min-height: 100%;
}

body {
  background-color: var(--jav-surface);
  color: #212529;
  margin-bottom: 60px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

body:not(.theme-dark) .card,
body:not(.theme-dark) .modal-content {
  background-color: #D3D3D3;
}

a {
  color: var(--jav-blue);
}

a:hover {
  color: var(--jav-blue-hover);
}

.btn-primary,
.btn-primary:focus,
.btn-primary:active {
  color: #ffffff;
  background-color: var(--jav-red);
  border-color: var(--jav-red);
}

.btn-primary:hover {
  color: #ffffff;
  background-color: var(--jav-red-hover);
  border-color: var(--jav-red-hover);
}

.btn-primary:disabled,
.btn-primary.disabled {
  color: #ffffff;
}

.bg-primary,
.badge.bg-primary,
.btn.bg-primary {
  background-color: var(--jav-red) !important;
  border-color: var(--jav-red) !important;
}

.navbar {
  background: #ffffff !important;
}

.navbar-brand {
  color: #1f2d3d !important;
}

.portal-logo {
  width: 240px;
  max-width: 100%;
  height: auto;
  display: block;
}

.card,
.modal-content {
  border-color: #d7dde5;
}

.h3,
h1.h3,
h2.h3 {
  color: #1f2d3d;
}

.floating-ticket-btn {
  bottom: 70px;
  z-index: 1030;
}

.page-loading-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: rgba(17, 20, 24, 0.45);
  z-index: 2000;
}

.page-loading-overlay.is-visible {
  display: flex;
}

.page-loading-overlay__content {
  background-color: #ffffff;
  color: #1f2d3d;
  border: 1px solid #d7dde5;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  font-weight: 600;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.modal-open .floating-ticket-btn {
  display: none !important;
}

.user-account-card {
  min-width: 230px;
  border: 1px solid #b8bec6;
  border-radius: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: #d3d3d3;
  color: #1f2d3d;
}

.user-account-card .fw-semibold {
  color: #1f2d3d !important;
}

.user-account-card .user-email {
  color: #43566b;
}

.user-account-card .btn-outline-secondary {
  color: #3f556c;
  border-color: #6f8298;
}

.user-account-card .theme-toggle-btn {
  color: #ffffff;
  background-color: #3f556c;
  border-color: #3f556c;
}

.user-account-card .theme-toggle-btn .theme-toggle-icon,
.user-account-card .theme-toggle-btn .theme-toggle-label {
  color: inherit;
}

.user-account-card .btn-outline-secondary:hover,
.user-account-card .btn-outline-secondary:focus {
  color: #ffffff;
  background-color: #3f556c;
  border-color: #3f556c;
}

.user-account-card .theme-toggle-btn:hover,
.user-account-card .theme-toggle-btn:focus {
  color: #ffffff;
  background-color: #4d657f;
  border-color: #4d657f;
}

.user-account-card .account-action-btn {
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
  line-height: 1;
}

.theme-toggle-btn {
  min-width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: 0.35rem;
  border: 1px solid #7f92a7;
  background-color: #3f556c;
  color: #f7fbff;
}

.theme-toggle-btn:hover,
.theme-toggle-btn:focus {
  background-color: #4d657f;
  color: #ffffff;
}

.theme-toggle-icon {
  line-height: 1;
  font-size: 1rem;
}

.theme-toggle-label {
  font-size: 0.95rem;
  font-weight: 600;
}

.ticket-summary-toggle {
  cursor: pointer;
}

.ticket-summary-toggle h2.h6 {
  color: #D33243;
  font-weight: 700;
}

.ticket-card-header {
  border-bottom: 1px solid #ffffff;
  padding-bottom: 0.4rem;
  margin-bottom: 0.6rem !important;
}

.ticket-photo-marker {
  border-radius: 999px;
  border: 1px solid #2f81f7;
  background-color: rgba(47, 129, 247, 0.15);
  color: #79c0ff;
  font-weight: 600;
  padding: 0.1rem 0.55rem;
  line-height: 1.2;
}

.ticket-ui-pill,
.ticket-photo-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.65rem;
  font-size: 0.8rem;
  line-height: 1.2;
}

.ticket-status-pill {
  padding: 0.1rem 0.55rem;
}

.ticket-scheduled-cancel-btn {
  padding: 0.1rem 0.55rem;
}

.ticket-photo-marker:hover,
.ticket-photo-marker:focus {
  border-color: #79c0ff;
  background-color: rgba(121, 192, 255, 0.25);
  color: #cfe8ff;
}

body:not(.theme-dark) .ticket-photo-marker {
  border-color: #d32525;
  background-color: rgba(211, 37, 37, 0.12);
  color: #d32525;
}

body:not(.theme-dark) .ticket-photo-marker:hover,
body:not(.theme-dark) .ticket-photo-marker:focus {
  border-color: #b11f1f;
  background-color: rgba(211, 37, 37, 0.2);
  color: #b11f1f;
}

body:not(.theme-dark) .shared-with-you-badge {
  background-color: #f7d7db !important;
  color: #b11f1f !important;
}

body:not(.theme-dark) .shared-with-you-text,
body:not(.theme-dark) .shared-with-you-text strong {
  color: #b11f1f !important;
}

.ticket-report-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
}

.ticket-photo-card {
  border: 1px solid #30363d;
  border-radius: 0.5rem;
  background-color: #0d1117;
}

.ticket-photo-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  cursor: zoom-in;
}

.ticket-photo-expand-btn {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
}

.ticket-photo-expand-btn:focus-visible {
  outline: 2px solid #79c0ff;
  outline-offset: 2px;
  border-radius: 0.35rem;
}

.ticket-photo-preview-image {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 0.5rem;
}

.ticket-summary-toggle .small,
.ticket-summary-toggle p {
  color: #111111 !important;
}

.ticket-summary-toggle .small strong {
  color: #111111;
}

body:not(.theme-dark) .ticket-summary-toggle:hover,
body:not(.theme-dark) .ticket-summary-toggle:focus {
  background-color: rgba(211, 37, 37, 0.06);
}

html.theme-dark body,
html[data-theme='dark'] body,
body.theme-dark {
  background-color: #111418;
  color: #e6edf3;
}

html.theme-dark .page-loading-overlay__content,
html[data-theme='dark'] .page-loading-overlay__content,
body.theme-dark .page-loading-overlay__content {
  background-color: #161b22;
  color: #e6edf3;
  border-color: #30363d;
}

html.theme-dark .navbar,
html[data-theme='dark'] .navbar,
body.theme-dark .navbar {
  background-color: #161b22 !important;
  border-color: #30363d !important;
}

html.theme-dark .navbar-brand,
html[data-theme='dark'] .navbar-brand,
body.theme-dark .navbar-brand,
html.theme-dark .nav-link,
html[data-theme='dark'] .nav-link,
body.theme-dark .nav-link,
html.theme-dark .fw-semibold,
html[data-theme='dark'] .fw-semibold,
body.theme-dark .fw-semibold,
html.theme-dark h1,
html.theme-dark h2,
html.theme-dark h3,
html.theme-dark h4,
html.theme-dark h5,
html.theme-dark h6,
html[data-theme='dark'] h1,
html[data-theme='dark'] h2,
html[data-theme='dark'] h3,
html[data-theme='dark'] h4,
html[data-theme='dark'] h5,
html[data-theme='dark'] h6,
body.theme-dark h1,
body.theme-dark h2,
body.theme-dark h3,
body.theme-dark h4,
body.theme-dark h5,
body.theme-dark h6 {
  color: #e6edf3 !important;
}

html.theme-dark .text-muted,
html[data-theme='dark'] .text-muted,
body.theme-dark .text-muted,
html.theme-dark .small.text-muted,
html[data-theme='dark'] .small.text-muted,
body.theme-dark .small.text-muted {
  color: #9fa8b2 !important;
}

html.theme-dark .card,
html[data-theme='dark'] .card,
body.theme-dark .card,
html.theme-dark .modal-content,
html[data-theme='dark'] .modal-content,
body.theme-dark .modal-content,
html.theme-dark .alert,
html[data-theme='dark'] .alert,
body.theme-dark .alert {
  background-color: #1c2128;
  border-color: #30363d;
  color: #e6edf3;
}

html.theme-dark .form-control,
html[data-theme='dark'] .form-control,
body.theme-dark .form-control,
html.theme-dark .form-select,
html[data-theme='dark'] .form-select,
body.theme-dark .form-select,
html.theme-dark textarea,
html[data-theme='dark'] textarea,
body.theme-dark textarea {
  background-color: #0d1117;
  border-color: #30363d;
  color: #e6edf3;
}

html.theme-dark .form-control:focus,
html[data-theme='dark'] .form-control:focus,
body.theme-dark .form-control:focus,
html.theme-dark .form-select:focus,
html[data-theme='dark'] .form-select:focus,
body.theme-dark .form-select:focus,
html.theme-dark textarea:focus,
html[data-theme='dark'] textarea:focus,
body.theme-dark textarea:focus {
  background-color: #0d1117;
  color: #e6edf3;
}

html.theme-dark .user-account-card,
html[data-theme='dark'] .user-account-card,
body.theme-dark .user-account-card {
  background: #2a2f36;
  border-color: #3c4652;
  color: #e6edf3;
}

html.theme-dark .user-account-card .fw-semibold,
html[data-theme='dark'] .user-account-card .fw-semibold,
body.theme-dark .user-account-card .fw-semibold {
  color: #e6edf3 !important;
}

html.theme-dark .user-account-card .user-email,
html[data-theme='dark'] .user-account-card .user-email,
body.theme-dark .user-account-card .user-email {
  color: #9fb0c1;
}

html.theme-dark .ticket-summary-toggle:hover,
html[data-theme='dark'] .ticket-summary-toggle:hover,
body.theme-dark .ticket-summary-toggle:hover {
  background-color: #262c36;
}

html.theme-dark .ticket-summary-toggle .small,
html[data-theme='dark'] .ticket-summary-toggle .small,
body.theme-dark .ticket-summary-toggle .small,
html.theme-dark .ticket-summary-toggle p,
html[data-theme='dark'] .ticket-summary-toggle p,
body.theme-dark .ticket-summary-toggle p,
html.theme-dark .ticket-summary-toggle .small strong,
html[data-theme='dark'] .ticket-summary-toggle .small strong,
body.theme-dark .ticket-summary-toggle .small strong {
  color: #ffffff !important;
}

html.theme-dark .footer,
html[data-theme='dark'] .footer,
body.theme-dark .footer {
  background-color: #111418;
  border-color: #30363d !important;
  color: #9fa8b2 !important;
}

html.theme-dark a,
html[data-theme='dark'] a,
body.theme-dark a {
  color: #79c0ff;
}

html.theme-dark .btn-primary,
html[data-theme='dark'] .btn-primary,
body.theme-dark .btn-primary,
html.theme-dark a.btn-primary,
html[data-theme='dark'] a.btn-primary,
body.theme-dark a.btn-primary,
html.theme-dark .btn-primary:hover,
html[data-theme='dark'] .btn-primary:hover,
body.theme-dark .btn-primary:hover,
html.theme-dark .btn-primary:focus,
html[data-theme='dark'] .btn-primary:focus,
body.theme-dark .btn-primary:focus,
html.theme-dark .btn-primary:active,
html[data-theme='dark'] .btn-primary:active,
body.theme-dark .btn-primary:active {
  color: #ffffff !important;
}

html.theme-dark .btn-outline-secondary,
html[data-theme='dark'] .btn-outline-secondary,
body.theme-dark .btn-outline-secondary {
  color: #c9d1d9;
  border-color: #6e7681;
}

html.theme-dark .btn-outline-secondary:hover,
html[data-theme='dark'] .btn-outline-secondary:hover,
body.theme-dark .btn-outline-secondary:hover {
  color: #0d1117;
  background-color: #c9d1d9;
  border-color: #c9d1d9;
}