.navbar-custom {
  background-color: #004a80;
}

.navbar-height {
  height: 60px;
}

.main-container {
  background-color: white;
}
.navbar-custom .navbar-brand,
.navbar-custom .navbar-nav .nav-link,
.navbar-custom .dropdown-toggle,
.navbar-custom .navbar-toggler {
  color: #ffffff;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link:focus,
.navbar-custom .dropdown-item:hover,
.navbar-custom .dropdown-item:focus {
  color: #ffffff;
}

.navbar-custom .dropdown-menu {
  background-color: #f8f9fa;
  border-color: #dee2e6;
}

.navbar-custom .dropdown-item {
  color: #000000;
}

.navbar-custom .dropdown-item:hover,
.navbar-custom .dropdown-item:focus {
  color: #000000;
  background-color: #e9ecef;
}

.admin-toggle {
  position: fixed;
  left: 0;
  top: 70px;
  z-index: 100;
  width: 48px;
  height: 64px;
  border-radius: 0 200px 200px 0;
  background-color: #004a80;
  color: #ffffff;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-toggle:focus {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.has-admin-panel .admin-toggle {
  display: inline-flex;
}

.admin-drawer {
  background-color: #f8f9fa;
  top: 60px;
  height: calc(100dvh - 60px);
  max-width: 250px;
}

.admin-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #dee2e6;
}

.admin-drawer-content {
  padding: 0.5rem 0.5rem;
  overflow-y: auto;
}

.admin-drawer-title {
  font-weight: 600;
  margin: 0;
}

.admin-drawer .nav-link {
  color: var(--bs-secondary-color)!important
}
.admin-drawer .nav-link:hover {
  color: var(--bs--primary)!important
}
.main-content {
  max-width: 1200px;
  margin: auto;
}
.panel {
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 0.25rem;
}

.table td.d-flex {
  display: table-cell !important;
}

.table td.d-flex > * + * {
  margin-left: 0.5rem;
}

.table th.actions-col,
.table td.actions-cell,
.table td.text-nowrap {
  white-space: nowrap;
  width: 1%;
}

.table th.image-col,
.table td.image-cell {
  width: 84px;
}

.table-thumb {
  width: 64px;
  height: 48px;
  object-fit: cover;
  display: block;
}

.asset-card-image,
.asset-card-image-placeholder {
  height: 400px;
}

.asset-card-image {
  width: 100%;
  object-fit: contain;
  background-color: #f8f9fa;
}

.asset-card-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
}

.category-card-image,
.category-card-image-placeholder {
  height: 400px;
}

.category-card-image {
  width: 100%;
  object-fit: cover;
}

.category-card-image-placeholder {
  background-color: #f8f9fa;
}

#assetGalleryModal .asset-gallery-modal-image {
  width: auto;
  max-width: 100%;
  height: 1000px;
  max-height: calc(100vh - 180px);
  object-fit: contain;
  margin: 0 auto;
}

.preserve-text-format {
  white-space: pre-wrap;
  word-break: break-word;
}

#quickScanModal .quickscan-reader-wrap {
  position: relative;
  background: #000;
  border-radius: 0.5rem;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 240px;
  max-height: min(70vh, 560px);
}

#quickScanModal #quickScanReader {
  width: 100%;
  height: 100%;
}

#quickScanModal #quickScanReader > div {
  width: 100%;
  height: 100%;
}

#quickScanModal #quickScanReader video,
#quickScanModal #quickScanReader canvas {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
}

#quickScanModal .quickscan-feedback {
  position: absolute;
  left: 3%;
  top: 14%;
  width: 94%;
  height: 72%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25) inset;
  pointer-events: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

#quickScanModal .quickscan-feedback.is-success {
  border-color: rgba(34, 197, 94, 0.95);
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.35), 0 0 18px rgba(34, 197, 94, 0.45);
}

@media (max-width: 575.98px) {
  #quickScanModal .quickscan-reader-wrap {
    aspect-ratio: 3 / 4;
    min-height: 260px;
    max-height: 62vh;
  }

  #quickScanModal .quickscan-feedback {
    left: 3%;
    top: 14%;
    width: 94%;
    height: 72%;
  }
}

@media (max-width: 991.98px) {
  .navbar-height {
    height: auto;
    padding: 0;
  }
  .main-content {
    margin-left: 0;
    margin-right: 0;
    padding-top: 2rem !important;
  }
  .has-admin-panel .main-content {
    padding-left: calc(1.5rem + 48px);
  }
  .main-content.admin-panel-open {
    margin-left: 0;
  }
}
