html {
  font-size: 14px;

}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.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 #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
 
}

.logout-button {
  border: 0;
  background: transparent;
}

.login-shell {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 12rem);
  padding: 2rem 1rem 4rem;
}

.login-panel {
  width: min(100%, 25rem);
  padding: 2.25rem;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 1.25rem 3rem rgba(33, 37, 41, 0.1);
}

.login-brand {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.5rem;
  border-radius: 0.4rem;
  background: #0d6efd;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.login-eyebrow {
  margin: 0 0 0.35rem;
  color: #6c757d;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.login-panel h1 {
  margin: 0;
  color: #212529;
  font-size: 2rem;
  line-height: 1.15;
}

.login-intro {
  margin: 0.75rem 0 1.75rem;
  color: #6c757d;
  line-height: 1.5;
}

.login-form {
  display: grid;
  gap: 1rem;
}

.login-form .form-group {
  display: grid;
  gap: 0.35rem;
}

.login-form label {
  color: #343a40;
  font-weight: 600;
}

.login-submit {
  width: 100%;
  min-height: 2.75rem;
  margin-top: 0.25rem;
  font-weight: 600;
}

.login-error,
.login-field-error {
  color: #b02a37;
  font-size: 0.875rem;
}

.login-error:empty,
.login-field-error:empty {
  display: none;
}

.login-error ul {
  margin: 0;
  padding-left: 1.25rem;
}

/* Compact multi-selects on the report filters. Keep these rules in the global
   stylesheet: the app can be run from a copied build where Razor CSS isolation
   assets are not available. */
.multi-filter {
  position: relative;
}

.multi-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 38px;
  padding: 0.45rem 0.75rem;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  background: #fff;
  color: #212529;
  font: inherit;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
  transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.multi-select-trigger:hover:not(:disabled) {
  border-color: #9da7b1;
}

.multi-select-trigger:focus-visible,
.dropdown-multiselect.is-open .multi-select-trigger {
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.2);
}

.multi-select-trigger:disabled {
  background: #e9ecef;
  color: #6c757d;
  cursor: not-allowed;
}

.multi-select-summary {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.multi-select-chevron {
  flex: 0 0 auto;
  width: 0.5rem;
  height: 0.5rem;
  margin: -0.2rem 0.15rem 0 0.85rem;
  border-right: 2px solid #66707a;
  border-bottom: 2px solid #66707a;
  transform: rotate(45deg);
  transition: transform 140ms ease;
}

.dropdown-multiselect.is-open .multi-select-chevron {
  margin-top: 0.25rem;
  transform: rotate(225deg);
}

.multi-select-panel {
  position: absolute;
  z-index: 1080;
  top: calc(100% + 0.35rem);
  left: 0;
  width: 100%;
  max-height: 17rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.35rem;
  border: 1px solid #d5d9dd;
  border-radius: 0.35rem;
  background: #fff;
  box-shadow: 0 0.75rem 1.75rem rgba(33, 37, 41, 0.18);
  animation: multi-select-enter 120ms ease-out;
}

.multi-select-panel[hidden] {
  display: none;
}

@keyframes multi-select-enter {
  from {
    opacity: 0;
    transform: translateY(-0.3rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.filter-label {
  display: inline-block;
  margin-bottom: 0.35rem;
}

.checkbox-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.25rem;
  margin: 0;
  padding: 0.4rem 0.55rem;
  border-radius: 0.25rem;
  cursor: pointer;
  user-select: none;
}

.checkbox-option:hover {
  background: #f1f5f9;
}

.checkbox-option:has(input:focus-visible) {
  outline: 2px solid #86b7fe;
  outline-offset: -2px;
}

.checkbox-option:has(input:checked) {
  background: #e8f1ff;
  color: #0b57b3;
}

.checkbox-option input {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: #0d6efd;
}

.checkbox-option-label {
  min-width: 0;
  overflow: hidden;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.multi-filter-help {
  display: block;
  margin-top: 0.35rem;
  color: #6c757d;
  font-size: 0.8rem;
}

.report-language-group select,
.report-time-zone-group select,
.report-formatting-group select,
.report-date-format-group select {
  max-width: 16rem;
}

.report-time-zone-group select {
  max-width: 24rem;
}

.date-group {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.25rem;
  width: 100%;
}

.date-group .date-time-pair {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.date-group .date-time-pair > .form-group {
  padding: 10px 0;
}

.date-field {
  min-width: 11rem;
}

.time-field {
  min-width: 7.5rem;
}

.date-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 10px 0;
}

.date-preset-button {
  min-height: 38px;
  padding: 0.4rem 0.7rem;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  background: #fff;
  color: #495057;
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 120ms ease, background-color 120ms ease, color 120ms ease;
}

.date-preset-button:hover {
  border-color: #86b7fe;
  color: #0b57b3;
}

.date-preset-button:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.2);
}

.date-preset-button.is-active {
  border-color: #0d6efd;
  background: #e8f1ff;
  color: #0b57b3;
  font-weight: 600;
}

/* Keep the preview controls global as well as scoped so they remain styled in
   copied/container builds where the generated Razor CSS bundle is unavailable. */
.preview-section {
  margin-top: 2rem;
}

.preview-section [hidden] {
  display: none !important;
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #ced4da;
}

.preview-header h2 {
  margin: 0;
  font-size: 1.5rem;
}

.preview-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.savePdf-button {
  min-width: 9rem;
  white-space: nowrap;
}

.preview-export-status,
.preview-loading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #495057;
  font-size: 0.9rem;
}

.preview-loading,
.preview-empty {
  margin: 1rem 0;
}

.preview-empty {
  color: #6c757d;
}

.preview-inline-spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid #b6d4fe;
  border-top-color: #0d6efd;
  border-radius: 50%;
  animation: preview-spin 700ms linear infinite;
}

@keyframes preview-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 575.98px) {
  .preview-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .preview-actions {
    justify-content: space-between;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .multi-select-panel,
  .multi-select-chevron,
  .multi-select-trigger,
  .date-preset-button {
    animation: none;
    transition: none;
  }

  .preview-inline-spinner {
    animation: none;
  }
}
