body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(13, 110, 253, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(248, 249, 250, 0.96) 0%, rgba(233, 236, 239, 0.92) 100%);
}

.rtw-brand {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.rtw-brand-logo {
  display: block;
  height: clamp(2.25rem, 4vw, 3rem);
  width: auto;
  max-width: min(16rem, 48vw);
}

.rtw-brand-logo-dark {
  display: none;
}

.navbar .dropdown-menu {
  min-width: 12rem;
}

.navbar .dropdown-item.active,
.navbar .dropdown-item:active {
  color: #fff;
}

.navbar .dropdown-menu form {
  margin: 0;
}

.navbar .dropdown-menu form .dropdown-item,
.navbar [data-theme-toggle].dropdown-item {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
}

[data-bs-theme="dark"] .rtw-brand-logo-light {
  display: none;
}

[data-bs-theme="dark"] .rtw-brand-logo-dark {
  display: block;
}

[data-bs-theme="dark"] body {
  background:
    radial-gradient(circle at top left, rgba(25, 135, 84, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(24, 28, 34, 0.98) 0%, rgba(14, 18, 24, 1) 100%);
}

.hero-card {
  border: 1px solid rgba(33, 37, 41, 0.08);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 1.5rem 3rem rgba(33, 37, 41, 0.08);
  backdrop-filter: blur(10px);
}

[data-bs-theme="dark"] .hero-card {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(33, 37, 41, 0.78);
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.28);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background-color: rgba(13, 110, 253, 0.12);
  color: #0d6efd;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

[data-bs-theme="dark"] .hero-badge {
  background-color: rgba(13, 202, 240, 0.12);
  color: #66d9ef;
}

.status-panel {
  padding: 1.25rem;
  border-radius: 1rem;
  background: rgba(13, 110, 253, 0.08);
}

[data-bs-theme="dark"] .status-panel {
  background: rgba(255, 255, 255, 0.06);
}

.status-list {
  padding-left: 1.1rem;
}

.vehicle-stat-value {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.vehicle-list {
  min-height: 8rem;
}

.vehicle-card {
  height: 100%;
  padding: 1.25rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(33, 37, 41, 0.08);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 1rem 2rem rgba(33, 37, 41, 0.06);
}

[data-bs-theme="dark"] .vehicle-card {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(33, 37, 41, 0.9);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.18);
}

.vehicle-meta-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bs-secondary-color);
  margin-bottom: 0.2rem;
}

.vehicle-meta-value {
  font-size: 1rem;
  font-weight: 600;
}

.vehicle-empty {
  padding: 2rem 1rem;
  text-align: center;
  border: 1px dashed rgba(33, 37, 41, 0.18);
  border-radius: 1rem;
  color: var(--bs-secondary-color);
}

.vehicle-detail-hero-actions {
  min-width: min(100%, 18rem);
}

.vehicle-status-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.vehicle-status-card,
.vehicle-detail-info-card {
  border: 1px solid rgba(33, 37, 41, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 0.8rem 1.6rem rgba(33, 37, 41, 0.05);
}

[data-bs-theme="dark"] .vehicle-status-card,
[data-bs-theme="dark"] .vehicle-detail-info-card {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(33, 37, 41, 0.9);
  box-shadow: 0 0.8rem 1.6rem rgba(0, 0, 0, 0.16);
}

.vehicle-status-card {
  padding: 1rem;
  min-height: 9rem;
}

.vehicle-status-card-value {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.vehicle-detail-section-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 4rem;
}

.vehicle-detail-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.vehicle-detail-log-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.vehicle-detail-defect-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 4rem;
}

.vehicle-consumption-qr-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  min-height: 16rem;
}

.vehicle-consumption-qr-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.vehicle-consumption-qr-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 15rem;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px dashed rgba(33, 37, 41, 0.16);
  background: rgba(255, 255, 255, 0.64);
}

[data-bs-theme="dark"] .vehicle-consumption-qr-box {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.vehicle-consumption-qr-box canvas,
.vehicle-consumption-qr-box img,
.vehicle-consumption-qr-box table {
  max-width: 100%;
  height: auto;
}

.vehicle-consumption-link {
  word-break: break-all;
}

.vehicle-consumption-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.vehicle-consumption-meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.vehicle-detail-info-card {
  padding: 1rem;
}

.vehicle-log-entry {
  padding: 0.95rem 1rem;
  border: 1px solid rgba(33, 37, 41, 0.08);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.7);
}

[data-bs-theme="dark"] .vehicle-log-entry {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.vehicle-status-card.is-ok,
.vehicle-detail-info-card.is-ok {
  border-left: 0.35rem solid rgba(25, 135, 84, 0.65);
}

.vehicle-status-card.is-warning,
.vehicle-detail-info-card.is-warning {
  border-left: 0.35rem solid rgba(255, 193, 7, 0.8);
}

.vehicle-status-card.is-danger,
.vehicle-detail-info-card.is-danger {
  border-left: 0.35rem solid rgba(220, 53, 69, 0.75);
}

.vehicle-status-card.is-muted,
.vehicle-detail-info-card.is-muted {
  border-left: 0.35rem solid rgba(108, 117, 125, 0.5);
}

.location-tree-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.location-node {
  margin-left: calc(var(--location-depth, 0) * 0.9rem);
}

.location-children {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.location-card {
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(33, 37, 41, 0.08);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0.8rem 1.8rem rgba(33, 37, 41, 0.05);
}

[data-bs-theme="dark"] .location-card {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(33, 37, 41, 0.9);
  box-shadow: 0 0.8rem 1.8rem rgba(0, 0, 0, 0.16);
}

.location-node-root .location-card {
  border-left: 0.35rem solid rgba(13, 110, 253, 0.55);
}

.location-node-child .location-card {
  border-left: 0.35rem solid rgba(25, 135, 84, 0.45);
}

.item-list {
  min-height: 8rem;
}

.item-bulk-dialog {
  padding: 0;
}

.item-bulk-modal {
  position: relative;
  height: 100vh;
  border: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(13, 110, 253, 0.12), transparent 25%),
    linear-gradient(180deg, rgba(248, 249, 250, 0.96), rgba(255, 255, 255, 0.98));
}

[data-bs-theme="dark"] .item-bulk-modal {
  background:
    radial-gradient(circle at top right, rgba(110, 168, 254, 0.18), transparent 25%),
    linear-gradient(180deg, rgba(33, 37, 41, 0.98), rgba(26, 29, 32, 0.98));
}

.item-bulk-header {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  z-index: 5;
  padding: 0;
}

.item-bulk-body {
  height: 100%;
  padding: 1rem 1rem 1.25rem;
  overflow: hidden;
}

.item-bulk-shell {
  display: grid;
  grid-template-columns: minmax(18rem, 24rem) minmax(0, 1fr);
  gap: 1.25rem;
  height: 100%;
  min-height: 0;
}

.item-bulk-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 0;
  align-self: start;
}

.item-bulk-panel {
  padding: 1rem;
  border: 1px solid rgba(33, 37, 41, 0.08);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 1rem 2rem rgba(33, 37, 41, 0.05);
}

[data-bs-theme="dark"] .item-bulk-panel {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(33, 37, 41, 0.9);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.18);
}

.item-bulk-panel-sticky {
  position: sticky;
  top: 0;
  max-height: calc(100vh - 2.25rem);
  overflow: auto;
}

.item-bulk-filter-panel {
  position: sticky;
  top: 0;
  z-index: 3;
}

.item-bulk-filter-grid {
  display: grid;
  grid-template-columns: minmax(18rem, 2fr) repeat(4, minmax(10rem, 1fr)) minmax(12rem, 1.1fr);
  gap: 0.9rem;
  align-items: end;
}

.item-bulk-filter-search {
  min-width: 0;
}

.item-bulk-summary {
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: rgba(13, 110, 253, 0.08);
}

[data-bs-theme="dark"] .item-bulk-summary {
  background: rgba(110, 168, 254, 0.12);
}

.item-bulk-content {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.item-bulk-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(33, 37, 41, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
}

[data-bs-theme="dark"] .item-bulk-toolbar {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(33, 37, 41, 0.92);
}

.item-bulk-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0.5rem;
  border: 1px solid rgba(33, 37, 41, 0.08);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 1rem 2rem rgba(33, 37, 41, 0.05);
  overflow: auto;
}

[data-bs-theme="dark"] .item-bulk-table-wrap {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(33, 37, 41, 0.9);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.18);
}

.item-bulk-table {
  margin-bottom: 0;
  --bs-table-bg: transparent;
}

.item-bulk-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(248, 249, 250, 0.96);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bs-secondary-color);
}

[data-bs-theme="dark"] .item-bulk-table th {
  background: rgba(33, 37, 41, 0.98);
}

.item-bulk-table td {
  min-width: 8rem;
  vertical-align: middle;
}

.item-bulk-select-column {
  width: 3.25rem;
  min-width: 3.25rem;
}

.item-bulk-table tr.is-selected td {
  background: rgba(13, 110, 253, 0.08);
}

[data-item-row],
[data-import-preview-bulk-row] {
  cursor: pointer;
}

[data-bs-theme="dark"] .item-bulk-table tr.is-selected td {
  background: rgba(110, 168, 254, 0.12);
}

.item-bulk-group-row td {
  padding-top: 1rem;
  background: rgba(248, 249, 250, 0.92);
}

[data-bs-theme="dark"] .item-bulk-group-row td {
  background: rgba(255, 255, 255, 0.04);
}

.item-bulk-notes-cell {
  min-width: 16rem;
}

.import-preview-bulk-filter-grid {
  grid-template-columns: minmax(18rem, 2fr) repeat(3, minmax(11rem, 1fr)) minmax(12rem, 1.1fr);
}

@media (max-width: 991.98px) {
  .item-bulk-modal {
    height: auto;
    overflow: visible;
  }

  .item-bulk-header {
    position: static;
    padding: var(--bs-modal-header-padding);
  }

  .item-bulk-body {
    height: auto;
    overflow: visible;
  }

  .item-bulk-shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: auto;
  }

  .item-bulk-panel-sticky,
  .item-bulk-filter-panel {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .item-bulk-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .import-preview-bulk-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .item-bulk-filter-search {
    grid-column: 1 / -1;
  }

  .item-bulk-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 767.98px) {
  .item-bulk-filter-grid {
    grid-template-columns: 1fr;
  }

  .import-preview-bulk-filter-grid {
    grid-template-columns: 1fr;
  }

  .item-bulk-table thead {
    display: none;
  }

  .item-bulk-table,
  .item-bulk-table tbody,
  .item-bulk-table tr,
  .item-bulk-table td {
    display: block;
    width: 100%;
  }

  .item-bulk-table tr {
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(33, 37, 41, 0.08);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.7);
  }

  [data-bs-theme="dark"] .item-bulk-table tr {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
  }

  .item-bulk-table td {
    min-width: 0;
    padding: 0.35rem 0;
    border: 0;
  }

  .item-bulk-table td::before {
    content: attr(data-title);
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--bs-secondary-color);
  }

  .item-bulk-select-column::before {
    display: none;
  }

  .item-bulk-group-row {
    padding: 0;
    margin-bottom: 0.5rem;
    border: 0;
    background: transparent;
  }

  .item-bulk-group-row td {
    padding: 0.25rem 0;
    background: transparent;
  }
}

.inventory-hero-actions {
  min-width: min(100%, 18rem);
}

.inventory-card-list {
  min-height: 8rem;
}

.inventory-card {
  height: 100%;
  padding: 1.25rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(33, 37, 41, 0.08);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1rem 2rem rgba(33, 37, 41, 0.06);
}

[data-bs-theme="dark"] .inventory-card {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(33, 37, 41, 0.92);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.18);
}

.inventory-card-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.inventory-unit-preview {
  padding-left: 1rem;
  color: var(--bs-secondary-color);
}

.inventory-table th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bs-secondary-color);
}

.inventory-table td {
  min-width: 10rem;
}

.inventory-detail-summary,
.inventory-detail-section {
  padding: 1rem;
  border: 1px solid rgba(33, 37, 41, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.55);
}

[data-bs-theme="dark"] .inventory-detail-summary,
[data-bs-theme="dark"] .inventory-detail-section {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.inventory-detail-units-list {
  min-height: 4rem;
}

.inventory-unit-card {
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(33, 37, 41, 0.08);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 0.8rem 1.6rem rgba(33, 37, 41, 0.05);
}

[data-bs-theme="dark"] .inventory-unit-card {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(33, 37, 41, 0.88);
  box-shadow: 0 0.8rem 1.6rem rgba(0, 0, 0, 0.16);
}

.inventory-history-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.inventory-history-entry {
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  background: rgba(13, 110, 253, 0.06);
  color: var(--bs-secondary-color);
}

[data-bs-theme="dark"] .inventory-history-entry {
  background: rgba(255, 255, 255, 0.05);
}

.check-card-list {
  min-height: 8rem;
}

.check-card {
  height: 100%;
  padding: 1.25rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(33, 37, 41, 0.08);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1rem 2rem rgba(33, 37, 41, 0.06);
}

[data-bs-theme="dark"] .check-card {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(33, 37, 41, 0.92);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.18);
}

.import-review-panel {
  min-width: min(100%, 18rem);
}

.import-history-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 8rem;
}

.import-history-card {
  width: 100%;
  padding: 1rem 1.1rem;
  text-align: left;
  border: 1px solid rgba(33, 37, 41, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0.8rem 1.8rem rgba(33, 37, 41, 0.05);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.import-history-card:hover,
.import-history-card.is-active {
  border-color: rgba(13, 110, 253, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 1rem 2rem rgba(33, 37, 41, 0.08);
}

[data-bs-theme="dark"] .import-history-card {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(33, 37, 41, 0.9);
  box-shadow: 0 0.8rem 1.8rem rgba(0, 0, 0, 0.16);
}

[data-bs-theme="dark"] .import-history-card:hover,
[data-bs-theme="dark"] .import-history-card.is-active {
  border-color: rgba(102, 217, 239, 0.3);
}

.import-preview-alert {
  border-radius: 1rem;
}

.import-preview-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid rgba(33, 37, 41, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.55);
}

[data-bs-theme="dark"] .import-preview-meta {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.import-preview-toolbar {
  margin-bottom: 1rem;
}

.import-preview-page-info {
  min-height: 2.5rem;
  display: flex;
  align-items: end;
  justify-content: flex-start;
}

.import-preview-table th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bs-secondary-color);
  white-space: nowrap;
}

.import-preview-table td {
  min-width: 9rem;
  vertical-align: top;
}

.import-action-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 14rem;
}

.import-preview-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.import-preview-bulk-table th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bs-secondary-color);
  white-space: nowrap;
}

.import-preview-bulk-table td {
  min-width: 10rem;
  vertical-align: top;
}

.import-preview-bulk-csv-cell {
  min-width: 18rem;
}

.import-duplicate-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.import-duplicate-candidate {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.85rem;
  background: rgba(13, 110, 253, 0.06);
  color: var(--bs-secondary-color);
}

[data-bs-theme="dark"] .import-duplicate-candidate {
  background: rgba(255, 255, 255, 0.05);
}

.import-template-review {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(33, 37, 41, 0.08);
}

.import-template-meta,
.import-template-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(33, 37, 41, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.55);
}

[data-bs-theme="dark"] .import-template-meta,
[data-bs-theme="dark"] .import-template-summary {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.import-template-vehicle-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.85rem;
}

.import-template-vehicle-card {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(33, 37, 41, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.8);
}

[data-bs-theme="dark"] .import-template-vehicle-card {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(33, 37, 41, 0.88);
}

.check-group-summary,
.check-group-card,
.check-group-detail-section {
  border: 1px solid rgba(33, 37, 41, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 0.8rem 1.6rem rgba(33, 37, 41, 0.05);
}

[data-bs-theme="dark"] .check-group-summary,
[data-bs-theme="dark"] .check-group-card,
[data-bs-theme="dark"] .check-group-detail-section {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(33, 37, 41, 0.9);
  box-shadow: 0 0.8rem 1.6rem rgba(0, 0, 0, 0.16);
}

.check-group-summary,
.check-group-card {
  padding: 1.25rem;
}

.check-group-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.check-group-progress {
  height: 0.75rem;
  border-radius: 999px;
  overflow: hidden;
}

.check-group-metrics {
  align-items: start;
}

.check-group-detail-section {
  padding: 1rem;
}

.check-group-location-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.check-group-item-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.check-group-item {
  padding: 0.9rem 1rem;
  border-radius: 0.85rem;
  background: rgba(13, 110, 253, 0.06);
}

[data-bs-theme="dark"] .check-group-item {
  background: rgba(255, 255, 255, 0.05);
}

.check-group-issue-list {
  padding-left: 1.1rem;
}

.check-location-overview-list,
.check-location-item-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.check-location-overview-card,
.check-location-item-card {
  padding: 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(33, 37, 41, 0.08);
  background: rgba(255, 255, 255, 0.78);
}

[data-bs-theme="dark"] .check-location-overview-card,
[data-bs-theme="dark"] .check-location-item-card {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.check-location-overview-card {
  margin-left: calc(var(--location-depth, 0) * 0.85rem);
}

.guided-check-progress {
  max-width: 34rem;
}

.guided-item-card,
.guided-item-section,
.guided-item-unit-card {
  border: 1px solid rgba(33, 37, 41, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.82);
}

[data-bs-theme="dark"] .guided-item-card,
[data-bs-theme="dark"] .guided-item-section,
[data-bs-theme="dark"] .guided-item-unit-card {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(33, 37, 41, 0.9);
}

.guided-item-section {
  padding: 1rem;
}

.guided-item-unit-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.guided-item-unit-card {
  padding: 0.9rem 1rem;
}

.guided-mobile-item-summary {
  position: sticky;
  top: 0.75rem;
  z-index: 20;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(13, 110, 253, 0.18);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0.75rem 1.5rem rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(12px);
}

[data-bs-theme="dark"] .guided-mobile-item-summary {
  border-color: rgba(118, 169, 250, 0.22);
  background: rgba(24, 28, 34, 0.94);
  box-shadow: 0 0.9rem 2rem rgba(0, 0, 0, 0.22);
}

.guided-mobile-item-summary-label {
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bs-secondary-color);
}

.guided-mobile-item-summary-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
}

.guided-mobile-item-summary-meta,
.guided-mobile-item-summary-soll {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: var(--bs-secondary-color);
}

.guided-mobile-item-summary-soll {
  font-weight: 700;
  color: var(--bs-emphasis-color);
}

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

.guided-quantity-metric,
.guided-problem-panel,
.guided-quantity-assessment {
  border: 1px solid rgba(33, 37, 41, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.58);
}

[data-bs-theme="dark"] .guided-quantity-metric,
[data-bs-theme="dark"] .guided-problem-panel,
[data-bs-theme="dark"] .guided-quantity-assessment {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.guided-quantity-metric,
.guided-problem-panel,
.guided-quantity-assessment {
  padding: 1rem;
}

.guided-quantity-label,
.guided-quantity-unit {
  text-align: center;
  color: var(--bs-secondary-color);
}

.guided-quantity-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.guided-quantity-value {
  text-align: center;
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.guided-quantity-stepper {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
}

.guided-quantity-stepper-button {
  min-width: 3.25rem;
  min-height: 3.25rem;
  border-radius: 999px;
  font-size: 1.4rem;
  line-height: 1;
}

.guided-quantity-input {
  text-align: center;
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 700;
  border-radius: 0.95rem;
}

.guided-unit-static-field {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.65rem 0.85rem;
  border: 1px dashed rgba(33, 37, 41, 0.12);
  border-radius: 0.85rem;
  color: var(--bs-secondary-color);
  background: rgba(255, 255, 255, 0.4);
}

[data-bs-theme="dark"] .guided-unit-static-field {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

@media (min-width: 992px) {
  .guided-mobile-item-summary {
    display: none;
  }
}

.item-flag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.item-flag-button {
  display: block;
  cursor: pointer;
}

.item-flag-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.item-flag-button-label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(33, 37, 41, 0.1);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.65);
  font-weight: 600;
  text-align: center;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

[data-bs-theme="dark"] .item-flag-button-label {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.item-flag-input:checked + .item-flag-button-label {
  border-color: rgba(25, 135, 84, 0.65);
  background: rgba(25, 135, 84, 0.14);
  color: #146c43;
  box-shadow: inset 0 0 0 1px rgba(25, 135, 84, 0.18);
}

[data-bs-theme="dark"] .item-flag-input:checked + .item-flag-button-label {
  border-color: rgba(117, 230, 170, 0.55);
  background: rgba(25, 135, 84, 0.22);
  color: #b8f2d3;
}

.toast-container {
  z-index: 1090;
}

.rtw-modal-stack-backdrop {
  z-index: 1058;
}

.rtw-modal-stacked {
  z-index: 1060;
}

.modal.modal-nested-muted .modal-content {
  position: relative;
  overflow: hidden;
}

.modal.modal-nested-muted .modal-content::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.2);
  pointer-events: none;
}

.rtw-autocomplete {
  position: relative;
}

.requirement-template-editor-shell .hero-card,
.requirement-template-editor-shell .status-panel {
  overflow: visible;
}

.requirement-template-editor-quick-mode-card {
  position: relative;
  z-index: 1;
}

.requirement-template-editor-quick-mode-card:focus-within {
  z-index: 1100;
}

.requirement-template-editor-shell .rtw-autocomplete {
  z-index: 1;
}

.requirement-template-editor-shell .rtw-autocomplete:focus-within {
  z-index: 1095;
}

.rtw-autocomplete-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  right: 0;
  z-index: 1080;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  max-height: 18rem;
  padding: 0.45rem;
  overflow-y: auto;
  border: 1px solid rgba(33, 37, 41, 0.1);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1rem 2rem rgba(33, 37, 41, 0.14);
  backdrop-filter: blur(10px);
}

[data-bs-theme="dark"] .rtw-autocomplete-menu {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(33, 37, 41, 0.96);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.26);
}

.rtw-autocomplete-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 0;
  border-radius: 0.8rem;
  background: transparent;
  text-align: left;
  color: inherit;
}

.rtw-autocomplete-option:hover,
.rtw-autocomplete-option.is-active {
  background: rgba(13, 110, 253, 0.12);
}

[data-bs-theme="dark"] .rtw-autocomplete-option:hover,
[data-bs-theme="dark"] .rtw-autocomplete-option.is-active {
  background: rgba(13, 202, 240, 0.14);
}

.rtw-autocomplete-option-label {
  font-weight: 600;
}

.rtw-autocomplete-option-meta {
  font-size: 0.875rem;
  color: var(--bs-secondary-color);
}

.toast {
  min-width: min(22rem, calc(100vw - 2rem));
  backdrop-filter: blur(10px);
}

.toast-slide-in {
  animation: toast-slide-in 0.24s ease-out;
}

@keyframes toast-slide-in {
  from {
    opacity: 0;
    transform: translate3d(0, -0.75rem, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.dashboard-hero-actions {
  min-width: min(100%, 18rem);
}

.dashboard-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.85rem;
}

.dashboard-summary-box,
.dashboard-card,
.dashboard-problem-card {
  border: 1px solid rgba(33, 37, 41, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 0.8rem 1.6rem rgba(33, 37, 41, 0.05);
}

[data-bs-theme="dark"] .dashboard-summary-box,
[data-bs-theme="dark"] .dashboard-card,
[data-bs-theme="dark"] .dashboard-problem-card {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(33, 37, 41, 0.9);
  box-shadow: 0 0.8rem 1.6rem rgba(0, 0, 0, 0.16);
}

.dashboard-summary-box,
.dashboard-card,
.dashboard-problem-card {
  padding: 1rem;
}

.dashboard-card-list,
.dashboard-problem-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 4rem;
}

.dashboard-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--bs-secondary-color);
  font-size: 0.95rem;
}

.dashboard-card-meta span {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(13, 110, 253, 0.08);
}

[data-bs-theme="dark"] .dashboard-card-meta span {
  background: rgba(255, 255, 255, 0.06);
}

.dashboard-problem-card.is-danger {
  border-left: 0.35rem solid rgba(220, 53, 69, 0.65);
}

.dashboard-problem-card.is-warning {
  border-left: 0.35rem solid rgba(255, 193, 7, 0.75);
}

.admin-hero-actions {
  min-width: min(100%, 18rem);
}

.admin-area-card {
  padding: 1.25rem;
  border: 1px solid rgba(33, 37, 41, 0.08);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 1rem 2rem rgba(33, 37, 41, 0.06);
}

[data-bs-theme="dark"] .admin-area-card {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(33, 37, 41, 0.9);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.18);
}

.admin-area-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-area-meta span {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(13, 110, 253, 0.08);
  color: var(--bs-secondary-color);
}

[data-bs-theme="dark"] .admin-area-meta span {
  background: rgba(255, 255, 255, 0.06);
}

.admin-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.admin-subnav-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(33, 37, 41, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: inherit;
  text-decoration: none;
}

.admin-subnav-link.is-active {
  border-color: rgba(13, 110, 253, 0.35);
  background: rgba(13, 110, 253, 0.12);
  color: #0d6efd;
  font-weight: 600;
}

.admin-subnav-link.is-disabled {
  opacity: 0.7;
  cursor: default;
}

[data-bs-theme="dark"] .admin-subnav-link {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(33, 37, 41, 0.86);
}

[data-bs-theme="dark"] .admin-subnav-link.is-active {
  border-color: rgba(102, 217, 239, 0.35);
  background: rgba(102, 217, 239, 0.14);
  color: #66d9ef;
}

.admin-card-list {
  min-height: 8rem;
}

@media (min-width: 768px) {
  .vehicle-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vehicle-consumption-qr-layout {
    grid-template-columns: minmax(14rem, 16rem) minmax(0, 1fr);
    align-items: start;
  }
}

@media (min-width: 1200px) {
  .vehicle-status-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1600px) {
  .vehicle-status-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1900px) {
  .vehicle-status-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .vehicle-status-grid {
    grid-template-columns: 1fr;
  }

  .inventory-card-metrics {
    grid-template-columns: 1fr;
  }

  .guided-quantity-stepper {
    grid-template-columns: 1fr;
  }

  .guided-quantity-stepper-button {
    width: 100%;
  }
}

.requirement-template-editor-shell {
  min-height: calc(100vh - 9rem);
}

.requirement-template-editor-actions {
  display: grid;
  gap: 0.65rem;
  width: min(100%, 36rem);
}

.requirement-template-editor-action-row {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.requirement-template-editor-action-row .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
}

@media (max-width: 991.98px) {
  .requirement-template-editor-actions {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .requirement-template-editor-action-row {
    grid-template-columns: 1fr;
  }
}

.requirement-template-editor-tabs .nav-link {
  white-space: nowrap;
}

.requirement-template-editor-tree {
  display: grid;
  gap: 0.15rem;
}

.requirement-template-editor-tree-item {
  position: relative;
  min-width: 0;
}

.requirement-template-editor-tree-children {
  margin-left: 1rem;
  padding-left: 0.9rem;
  border-left: 1px solid rgba(13, 110, 253, 0.16);
  min-width: 0;
}

.requirement-template-editor-tree-dropzone {
  height: 0.45rem;
  margin-left: calc(0.4rem + (var(--tree-level, 0) * 0.35rem));
  border-radius: 999px;
  transition: background-color 0.18s ease;
}

.requirement-template-editor-tree-dropzone:hover,
.requirement-template-editor-tree-dropzone:focus {
  background: rgba(13, 110, 253, 0.16);
}

.requirement-template-editor-tree-node {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.9rem;
  width: calc(100% - (var(--tree-level, 0) * 0.35rem));
  max-width: 100%;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.82);
  padding: 0.75rem 0.9rem;
  margin-left: calc(var(--tree-level, 0) * 0.35rem);
  box-sizing: border-box;
  text-align: left;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.requirement-template-editor-tree-node[draggable="true"] {
  cursor: grab;
}

.requirement-template-editor-tree-node[draggable="true"]:active {
  cursor: grabbing;
}

.requirement-template-editor-tree-node:hover,
.requirement-template-editor-tree-node:focus-visible {
  border-color: rgba(13, 110, 253, 0.3);
  background: rgba(13, 110, 253, 0.08);
  box-shadow: 0 0.6rem 1.25rem rgba(13, 110, 253, 0.08);
}

.requirement-template-editor-tree-node.active {
  border-color: rgba(13, 110, 253, 0.45);
  background: rgba(13, 110, 253, 0.12);
  box-shadow: 0 0.8rem 1.6rem rgba(13, 110, 253, 0.12);
}

.requirement-template-editor-tree-main {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.requirement-template-editor-tree-label-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.requirement-template-editor-tree-label {
  font-weight: 600;
}

.requirement-template-editor-tree-path,
.requirement-template-editor-tree-branch {
  color: var(--bs-secondary-color);
  font-size: 0.8rem;
}

.requirement-template-editor-tree-aside {
  display: grid;
  gap: 0.2rem;
  justify-items: end;
  text-align: right;
}

.requirement-template-editor-tree-root-badge {
  color: var(--bs-secondary-color);
  background: rgba(248, 249, 250, 0.9) !important;
  border: 1px solid rgba(17, 24, 39, 0.08);
}

.requirement-template-editor-tree-meta {
  color: #0d6efd;
  font-size: 0.8rem;
  font-weight: 600;
}

.requirement-template-editor-catalog-card {
  border: 1px solid rgba(17, 24, 39, 0.06);
  padding: 0.9rem 1rem !important;
}

.requirement-template-editor-item-drag-handle[draggable="true"] {
  cursor: grab;
}

.requirement-template-editor-item-drag-handle[draggable="true"]:active {
  cursor: grabbing;
}

.requirement-template-editor-catalog-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(15rem, 19rem);
  gap: 0.85rem;
  align-items: center;
}

.requirement-template-editor-catalog-select {
  align-self: start;
  padding-top: 0.2rem;
}

.requirement-template-editor-catalog-main {
  min-width: 0;
}

.requirement-template-editor-catalog-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.requirement-template-editor-catalog-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
}

.requirement-template-editor-catalog-subtitle {
  color: var(--bs-secondary-color);
  font-size: 0.875rem;
}

.requirement-template-editor-catalog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.requirement-template-editor-catalog-meta .badge {
  font-weight: 600;
}

.requirement-template-editor-catalog-controls {
  display: grid;
  grid-template-columns: minmax(4.75rem, 5.75rem) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: end;
}

.requirement-template-editor-catalog-quantity .form-control {
  min-height: 2.2rem;
}

.requirement-template-editor-catalog-actions {
  display: grid;
  gap: 0.45rem;
}

.requirement-template-editor-catalog-actions .btn {
  min-height: 2.2rem;
}

.requirement-template-editor-catalog-limit-note {
  padding: 0.5rem 0.25rem 0;
}

@media (max-width: 1399.98px) {
  .requirement-template-editor-catalog-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .requirement-template-editor-catalog-controls {
    grid-column: 2;
  }
}

@media (max-width: 767.98px) {
  .requirement-template-editor-catalog-card {
    padding: 0.85rem !important;
  }

  .requirement-template-editor-catalog-row {
    gap: 0.7rem;
  }

  .requirement-template-editor-catalog-controls {
    grid-template-columns: 1fr;
  }
}

.requirement-template-editor-is-loading .requirement-template-editor-section {
  opacity: 0.5;
  pointer-events: none;
}

@media (max-width: 991.98px) {
  .requirement-template-editor-mobile-hidden {
    display: none;
  }
}

[data-bs-theme="dark"] .requirement-template-editor-tree-node {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(33, 37, 41, 0.8);
}

[data-bs-theme="dark"] .requirement-template-editor-tree-children {
  border-left-color: rgba(102, 217, 239, 0.18);
}

[data-bs-theme="dark"] .requirement-template-editor-tree-node:hover,
[data-bs-theme="dark"] .requirement-template-editor-tree-node:focus-visible {
  border-color: rgba(102, 217, 239, 0.38);
  background: rgba(102, 217, 239, 0.12);
}

[data-bs-theme="dark"] .requirement-template-editor-tree-node.active {
  border-color: rgba(102, 217, 239, 0.5);
  background: rgba(102, 217, 239, 0.18);
}

[data-bs-theme="dark"] .requirement-template-editor-tree-root-badge {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--bs-secondary-color);
}
