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;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--company-theme-color, #2f6fed) 7%, #fff) 0, #fff 180px);
}

.nf-main-nav {
  border-top: 4px solid var(--company-theme-color, #2f6fed);
}

.nf-active-company-bar {
  background: color-mix(in srgb, var(--company-theme-color, #2f6fed) 82%, #1d2b3a);
  color: #fff;
  padding: 10px 0;
  margin-bottom: 20px;
}

.nf-active-company-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.85;
}

.nf-active-company-tax {
  margin-left: 8px;
  opacity: 0.85;
}

.nf-active-company-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  padding: 3px;
}

.nf-company-logo-preview {
  width: 96px;
  max-height: 72px;
  object-fit: contain;
  border: 1px solid #dde3ea;
  border-radius: 8px;
  background: #fff;
  padding: 6px;
}

.nf-hero {
  max-width: 760px;
  padding: 48px 0 24px;
}

.nf-hero h1,
.nf-auth h1 {
  font-weight: 700;
  letter-spacing: 0;
}

.nf-panel {
  max-width: 420px;
  margin: 56px auto;
  padding: 28px;
  border: 1px solid #dde3ea;
  border-radius: 8px;
  background: #fff;
}

.nf-form {
  max-width: 1100px;
}

.nf-metric {
  min-height: 112px;
  padding: 18px;
  border: 1px solid #dde3ea;
  border-radius: 8px;
  background: #fff;
}

.nf-metric span {
  display: block;
  color: #586579;
  font-size: 0.92rem;
  margin-bottom: 8px;
}

.nf-metric strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1.2;
}

.nf-search-form {
  max-width: 520px;
}

.nf-autocomplete {
  position: relative;
}

.nf-autocomplete-results {
  display: none;
  position: fixed;
  z-index: 3000;
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(20, 32, 50, 0.14);
}

.nf-autocomplete-results.is-open {
  display: block;
}

.nf-autocomplete-results button {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-bottom: 1px solid #edf1f5;
  background: #fff;
  color: #1d2b3a;
  text-align: left;
}

.nf-autocomplete-results button:hover,
.nf-autocomplete-results button:focus {
  background: #eef5ff;
}

.nf-autocomplete-empty {
  padding: 8px 10px;
  color: #5c6773;
}

.nf-line-table input {
  min-width: 86px;
}

.nf-line-total {
  min-width: 130px;
  font-weight: 700;
}

.nf-line-total-editor {
  min-width: 128px;
}

.nf-line-total-editor input {
  min-width: 76px;
  text-align: right;
  font-weight: 700;
}

.nf-invoice-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: flex-end;
  margin: 12px 0 24px;
  padding: 12px;
  border: 1px solid #d8e2ef;
  border-radius: 8px;
  background: #f8fafc;
}

.nf-invoice-summary span {
  white-space: nowrap;
}
