html,
body {
  margin: 0;
  min-height: 100%;
}

.bg-sagace {
  background: #f4f6f9;
}

.navbar-brand {
  font-size: 1.25rem;
}

.card {
  border-radius: 8px;
  border-color: #dfe3e8;
}

.btn {
  border-radius: 6px;
  font-weight: 600;
}

.table-responsive,
.stock-table-wrap {
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}

.materials-table {
  min-width: 920px;
}

.materials-table td,
.materials-table th {
  vertical-align: middle;
}

.install-app-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 2050;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
}

.theme-dark,
.theme-dark.bg-sagace {
  background: #101214 !important;
  color: #f4f6f8;
}

.theme-dark .card,
.theme-dark .modal-content,
.theme-dark .list-group-item {
  background: #171a1e !important;
  color: #f4f6f8 !important;
  border-color: #343a40 !important;
}

.theme-dark .table,
.theme-dark .table td,
.theme-dark .table th {
  color: #f4f6f8;
  border-color: #343a40;
}

.theme-dark .table tbody td,
.theme-dark .table tbody th {
  background: #171a1e;
}

.theme-dark .table-light th {
  background: #242a30 !important;
  color: #f4f6f8 !important;
}

.theme-dark .form-control,
.theme-dark .form-select,
.theme-dark .input-group-text {
  background: #111418;
  color: #f4f6f8;
  border-color: #3b434c;
}

.theme-dark .form-control::placeholder {
  color: #9aa4ae;
}

.theme-dark .text-muted {
  color: #a8b0b8 !important;
}

@media (max-width: 991.98px) {
  .navbar .container-fluid {
    align-items: flex-start;
  }

  .navbar .d-flex {
    width: 100%;
    padding-top: 8px;
    flex-wrap: wrap;
    gap: 8px;
  }

  body > .container {
    margin-top: 155px !important;
  }
}

@media (max-width: 576px) {
  .nav-btn {
    flex: 1 1 calc(50% - 8px);
  }

  .card-body {
    padding: 12px;
  }

  body > .container {
    margin-top: 170px !important;
  }

  .materials-table {
    min-width: 760px;
  }

  .materials-table th,
  .materials-table td {
    font-size: 0.875rem;
  }
}

.materials-table thead th {
  position: static !important;
  top: auto !important;
  z-index: auto !important;
}

.materials-table tbody tr:first-child td,
.materials-table tbody tr:first-child th {
  padding-top: 28px !important;
}

@media (max-width: 576px) {
  .materials-table tbody tr:first-child td,
  .materials-table tbody tr:first-child th {
    padding-top: 36px !important;
  }
}