body.app-body {
  min-height: 100vh;
  font-family: "Inconsolata", monospace;
}

.app-main {
  width: min(94vw, 1500px);
  margin: 0 auto;
}

.app-main-wide {
  width: min(90vw, 1800px);
}

.app-main-dashboard {
  width: min(94vw, 1500px);
}

.navbar.sticky-top {
  z-index: 1030;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  font-weight: 700;
}

.page-subtitle {
  font-weight: 700;
}

.order-toast {
  font-family: "Inconsolata", monospace;
  font-size: 0.95rem;
}

.login-wrapper,
.register-wrapper {
  min-height: calc(100vh - 10rem);
}

.action-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.action-card {
  border: 1px solid #e9ecef;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
}

.action-card .card-body {
  min-height: 220px;
  display: flex;
  flex-direction: column;
}

.action-card .btn {
  margin-top: auto;
}

.listing-toolbar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
}

.selection-toolbar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.table td,
.table th {
  white-space: nowrap;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #dee2e6;
  border-radius: 0.75rem;
  background: #ffffff;
}

.table-wrap table {
  min-width: 820px;
  width: 100%;
}

.pagination {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.page-link.disabled {
  pointer-events: none;
  opacity: 0.55;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid #ced4da;
  border-radius: 999px;
  font-size: 0.85rem;
  background: #fff;
}

.chip.info {
  border-color: #0d6efd;
  color: #0d6efd;
}

.chip.success {
  border-color: #198754;
  color: #198754;
}

.scan-status {
  min-height: 1.75rem;
}

.status-ok {
  color: #067a35;
}

.status-err {
  color: #b00020;
}

.status-warn {
  color: #a15c00;
}

.toast-fixed {
  position: fixed;
  top: 0.8rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1080;
  max-width: min(92vw, 560px);
}

.btn-outline-primary {
  color: #fff;
  background-color: #0d6efd;
  border-color: #0d6efd;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
  color: #fff;
  background-color: #0b5ed7;
  border-color: #0a58ca;
}

.swal2-popup .swal2-confirm.swal2-styled {
  background-color: #0d6efd !important;
  border-color: #0d6efd !important;
}

.swal2-popup .swal2-confirm.swal2-styled:hover,
.swal2-popup .swal2-confirm.swal2-styled:focus,
.swal2-popup .swal2-confirm.swal2-styled:active {
  background-color: #0b5ed7 !important;
  border-color: #0a58ca !important;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25) !important;
}

@media (max-width: 768px) {
  .app-main {
    width: min(96vw, 1500px);
  }

  .app-main-wide,
  .app-main-dashboard {
    width: min(96vw, 1800px);
  }

  .action-card .card-body {
    min-height: auto;
  }
}
