html,
body {
  font-size: 14px;
}

.content-wrapper {
  background: #eef6fb;
}

.card-title {
  font-weight: 600;
}

.form-group label {
  font-weight: 500;
}

.navbar-welcome {
  flex: 1 1 auto;
  font-weight: 600;
  overflow: hidden;
  padding: 0 1rem;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.navbar-logout {
  margin: 0.25rem 0.5rem 0.25rem 0;
}

.form-section-title {
  border-bottom: 1px solid #dee2e6;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
}

.required-marker {
  color: #dc3545;
}

.password-toggle {
  border: 1px solid #ced4da;
  border-left: 0;
  color: #6c757d;
  cursor: pointer;
}

.password-toggle:focus {
  box-shadow: none;
  outline: 0;
}

.main-header .navbar-nav > .nav-item > .nav-link.active {
  background: linear-gradient(#86badb, #3f91c4);
  border-radius: 4px;
  color: #fff;
  margin: 0 0.15rem;
}

.main-header .navbar-nav > .nav-item > .nav-link.active::after {
  content: none;
}

.item-card {
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 0.75rem;
}

.item-card:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.select2-container--bootstrap4 .select2-selection--single {
  min-height: calc(2.25rem + 2px);
}

.invoice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.invoice-upload-dropzone {
  align-items: center;
  border: 2px dashed #6ea9ce;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 180px;
  text-align: center;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.invoice-upload-dropzone:hover {
  background: #e3f2fb;
  border-color: #3f91c4;
}

.invoice-upload-icon {
  color: #3f91c4;
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.invoice-upload-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.invoice-upload-subtitle {
  color: #6c757d;
  margin-top: 0.25rem;
}

.import-loader {
  align-items: center;
  background: rgba(238, 246, 251, 0.78);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 2050;
}

.import-loader-panel {
  align-items: center;
  background: #fff;
  border: 1px solid #b8d9ec;
  border-radius: 6px;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.12);
  display: flex;
  gap: 0.75rem;
  min-width: 260px;
  padding: 1rem 1.25rem;
}

.import-loader-text {
  font-weight: 600;
}

.invoice-loader {
  align-items: center;
  background: rgba(238, 246, 251, 0.78);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 2050;
}

.invoice-loader-panel {
  align-items: center;
  background: #fff;
  border: 1px solid #b8d9ec;
  border-radius: 6px;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.12);
  display: flex;
  gap: 0.75rem;
  min-width: 260px;
  padding: 1rem 1.25rem;
}

.invoice-loader-text {
  font-weight: 600;
}

.invoice-header-row {
  align-items: stretch;
}

.invoice-header-row > [class*="col-"] {
  display: flex;
}

.invoice-header-card {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.invoice-header-card .card-body {
  flex: 1 1 auto;
}

.invoice-header-card .invoice-field-row {
  grid-template-columns: 185px minmax(120px, 1fr);
  margin-bottom: 0.75rem;
}

.invoice-header-card .invoice-field-row:last-child {
  margin-bottom: 0;
}

.invoice-item-card {
  padding: 0.25rem 0 0;
}

.invoice-wide-field {
  align-items: center;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 190px minmax(260px, 1fr);
  margin-bottom: 0.75rem;
}

.invoice-item-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
}

.invoice-field-stack {
  display: grid;
  gap: 0.55rem;
}

.invoice-field-row {
  align-items: center;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 190px minmax(140px, 1fr);
  min-width: 0;
}

.invoice-wide-field label,
.invoice-field-row label {
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
  text-align: right;
}

.invoice-wide-field .form-control,
.invoice-field-row .form-control,
.invoice-wide-field .select2-container,
.invoice-field-row .select2-container {
  min-width: 0;
}

@media (max-width: 1200px) {
  .invoice-item-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .invoice-wide-field,
  .invoice-field-row {
    grid-template-columns: 1fr;
  }

  .invoice-wide-field label,
  .invoice-field-row label {
    text-align: left;
  }
}

.custom-card-header-background {
  background: linear-gradient(#86badb, #3f91c4);
  color: #fff;
}

.custom-card-background {
  background: #edf6fc;
}

.table thead th {
  background: linear-gradient(#86badb, #3f91c4);
  color: #fff;
  border-color: #6ea9ce;
}

.btn-primary,
.page-item.active .page-link,
.nav-pills .nav-link.active {
  background: linear-gradient(#86badb, #3f91c4);
  border-color: #3f91c4;
}

.main-header .navbar-nav > .nav-item > .nav-link.active {
  color: #fff;
}

.dropdown-menu .dropdown-item.active,
.dropdown-menu .dropdown-item:active {
  background: linear-gradient(#86badb, #3f91c4);
  color: #fff;
}

.main-header .dropdown-toggle::after {
  display: none;
}

.page-link {
  color: #3f91c4;
}

.nav-sidebar .nav-link.active,
.nav-sidebar .nav-link.active p,
.nav-sidebar .nav-link.active i {
  color: #fff !important;
}
