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

body.login-page {
  align-items: center;
  background:
    linear-gradient(rgba(6, 43, 91, 0.28), rgba(6, 43, 91, 0.28)),
    url("../images/login-background.png") center / cover no-repeat;
  display: flex;
  justify-content: center;
  margin: 0;
  min-height: 100vh;
  padding: 20px;
}

body.login-page .login-box {
  margin: 0;
  max-width: 100%;
  transform: translateY(-20px);
  width: 540px;
}

body.login-page .login-logo {
  align-items: center;
  color: #111827;
  display: flex;
  font-size: 32px;
  font-weight: 300;
  gap: 15px;
  justify-content: center;
  line-height: 1.2;
  margin-bottom: 30px;
  text-align: center;
  white-space: normal;
}

body.login-page .login-logo img {
  flex: 0 0 auto;
  height: auto;
  width: 74px;
}

body.login-page .login-card {
  background: #fff;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.28);
  overflow: hidden;
}

body.login-page .login-card .card-body {
  padding: 34px 30px 28px;
}

body.login-page .login-card .alert {
  border-radius: 8px;
  margin-bottom: 18px;
}

body.login-page .login-card .input-group {
  margin-bottom: 16px !important;
}

body.login-page .login-card .form-control,
body.login-page .login-card .input-group-text {
  border-radius: 4px;
}

body.login-page .login-card .form-control {
  height: 38px;
}

body.login-page .login-card .input-group > .form-control:not(:last-child) {
  border-bottom-right-radius: 0;
  border-top-right-radius: 0;
}

body.login-page .login-card .input-group-append .input-group-text {
  background: #fff;
  border-bottom-left-radius: 0;
  border-left: 0;
  border-top-left-radius: 0;
  color: #777;
  font-size: 16px;
  min-width: 42px;
}

body.login-page .login-card .password-toggle {
  align-items: center;
  display: flex;
  justify-content: center;
}

body.login-page .login-card .btn-primary {
  background: #4ca3d3;
  border-color: #3f98c9;
  border-radius: 4px;
  font-size: 16px;
  height: 38px;
  margin-top: 8px;
}

body.login-page .login-card .btn-primary:hover,
body.login-page .login-card .btn-primary:focus {
  background: #3f98c9;
  border-color: #348bb9;
}

@media (max-width: 520px) {
  body.login-page .login-logo {
    font-size: 28px;
  }

  body.login-page .login-logo img {
    width: 64px;
  }
}

.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;
}

.pct-picker {
  position: relative;
}

.pct-picker-control {
  align-items: center;
  background: #fff;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  min-height: calc(2.25rem + 2px);
  padding: 0.25rem 0.45rem;
}

.pct-picker-control:focus-within {
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.pct-picker-tags {
  display: contents;
}

.pct-picker-tag {
  align-items: center;
  background: #e9f3fb;
  border: 1px solid #9fcbe5;
  border-radius: 0.2rem;
  color: #1f4f6f;
  display: inline-flex;
  font-size: 0.875rem;
  gap: 0.35rem;
  line-height: 1.2;
  max-width: 100%;
  padding: 0.2rem 0.4rem;
}

.pct-picker-tag span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.pct-picker-tag button {
  background: transparent;
  border: 0;
  color: #1f4f6f;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
}

.pct-picker-search {
  border: 0;
  flex: 1 1 180px;
  min-width: 180px;
  outline: 0;
  padding: 0.2rem 0;
}

.pct-picker-menu {
  background: #fff;
  border: 1px solid #80bdff;
  border-radius: 0 0 0.25rem 0.25rem;
  box-shadow: 0 0.35rem 0.8rem rgba(0, 0, 0, 0.12);
  left: 0;
  max-height: 240px;
  overflow-y: auto;
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 1060;
}

.pct-picker-option,
.pct-picker-empty {
  background: #fff;
  border: 0;
  color: #212529;
  display: block;
  overflow: hidden;
  padding: 0.5rem 0.65rem;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

.pct-picker-option:hover,
.pct-picker-option:focus {
  background: #007bff;
  color: #fff;
  outline: 0;
}

.pct-picker-empty {
  color: #6c757d;
}

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

.invoice-select-checkbox {
  accent-color: #dc3545;
  cursor: pointer;
  height: 16px;
  width: 16px;
}

.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 {
  align-items: start;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, minmax(340px, 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-item-grid .invoice-field-row {
  grid-template-columns: 135px minmax(180px, 1fr);
}

.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;
}

.invoice-client-picker {
  min-width: 0;
}

.invoice-client-add-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.35rem;
}

.invoice-client-add-button {
  align-items: center;
  background: transparent;
  border: 0;
  color: #007bff;
  display: inline-flex;
  font-size: 0.8rem;
  gap: 0.25rem;
  line-height: 1;
  padding: 0;
}

.invoice-client-add-button .fas {
  font-size: 0.65rem;
}

.invoice-client-add-button:hover,
.invoice-client-add-button:focus {
  color: #0056b3;
  text-decoration: underline;
}

@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;
}

.seller-logo-dropzone {
  align-items: center;
  border: 2px dashed #86badb;
  border-radius: .35rem;
  cursor: pointer;
  display: flex;
  justify-content: center;
  min-height: 130px;
  padding: 1rem;
  text-align: center;
  transition: background-color .15s, border-color .15s;
  width: 100%;
}

.seller-logo-dropzone:hover,
.seller-logo-dropzone.is-dragging {
  background: #edf6fc;
  border-color: #3f91c4;
}

.seller-logo-preview {
  max-height: 110px;
  max-width: 100%;
  object-fit: contain;
}

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