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 .2rem rgba(69, 145, 255, .35);
}

html {
  position: relative;
  min-height: 100%;
}

body {
  background: #111827;
  color: #e5eaf1;
  color-scheme: dark;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.lookup-panel,
.results-panel {
  background: #1b2535;
  border: 1px solid #344156;
  border-radius: .75rem;
  box-shadow: 0 .5rem 1.5rem rgba(7, 12, 22, .25);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.login-panel {
  max-width: 28rem;
  margin: clamp(2rem, 8vh, 5rem) auto 0;
}

.app-navbar {
  background: #182235;
  border-bottom: 1px solid #344156;
}

.lookup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.75rem;
}

.payway-logo {
  display: block;
  width: clamp(9.375rem, 15vw, 11.25rem);
  height: auto;
  max-width: 100%;
  flex: 0 1 auto;
}

.form-label {
  color: #e5eaf1;
  font-weight: 600;
}

.form-control {
  background-color: #111a28;
  border-color: #46546a;
  color: #f0f3f7;
}

.form-control::placeholder {
  color: #8290a4;
}

.form-control:focus {
  background-color: #131e2e;
  border-color: #4591ff;
  color: #fff;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(.8);
}

.form-text,
.text-secondary {
  color: #aeb8c7 !important;
}

.date-grid,
.operation-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(10rem, 1fr));
  gap: .75rem;
}

.date-grid {
  margin-bottom: .25rem;
}

.operation-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.btn-primary {
  background-color: #2878dc;
  border-color: #3988e8;
}

.btn-primary:hover {
  background-color: #3485e8;
  border-color: #4a95ef;
}

.table {
  --bs-table-color: #e4e9f0;
  --bs-table-bg: #1b2535;
  --bs-table-border-color: #3b485c;
  --bs-table-striped-color: #e4e9f0;
  --bs-table-striped-bg: #202c3e;
  --bs-table-hover-color: #f4f7fb;
  --bs-table-hover-bg: #263449;
}

.table thead th {
  background: #151f2f;
  color: #cbd4e1;
  border-bottom-color: #46546a;
}

.alert-danger {
  background-color: #40232b;
  border-color: #72404c;
  color: #ffc4ce;
}

.text-danger {
  color: #ff9da9 !important;
}

.badge.text-bg-success {
  background-color: #237455 !important;
  color: #e7fff5 !important;
}

.badge.text-bg-secondary {
  background-color: #4a586d !important;
  color: #f0f3f7 !important;
}

.badge.text-bg-danger {
  background-color: #9b3d4d !important;
  color: #fff1f3 !important;
}

@media (max-width: 991.98px) {
  .date-grid,
  .operation-grid {
    grid-template-columns: repeat(2, minmax(10rem, 1fr));
  }
}

@media (max-width: 575.98px) {
  .lookup-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .payway-logo {
    width: 9.375rem;
  }

  .date-grid,
  .operation-grid {
    grid-template-columns: 1fr;
  }
}

.validation-summary-valid,
.field-validation-valid {
  display: none;
}
