.home-dashboard-page {
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.12), transparent 32%),
    linear-gradient(180deg, #f8fafc 0%, #eef4f8 100%);
}

.home-dashboard-shell {
  max-width: 1180px;
}

.home-dashboard-header {
  margin-bottom: 1.75rem;
}

.home-dashboard-kicker {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-dashboard-lead {
  color: #475569;
  margin-bottom: 0;
  max-width: 48rem;
}

.home-search-card,
.home-section-card,
.home-stat-card,
.home-inventory-card {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 1rem;
}

.home-search-card .card-body,
.home-section-card .card-body,
.home-stat-card .card-body {
  padding: 1.15rem 1.2rem;
}

.home-search-input {
  border-radius: 999px;
  min-height: 3rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.home-search-card .input-group-text {
  background: #fff;
  border-radius: 999px 0 0 999px;
  color: #64748b;
}

.home-search-card .form-control {
  border-left: 0;
}

.home-search-card .form-control:focus {
  box-shadow: none;
}

.home-stat-card {
  background: #fff;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.05);
  height: 100%;
}

.home-stat-trigger {
  background: transparent;
  border: 0;
  padding: 0;
}

.home-stat-trigger .home-stat-card {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-stat-trigger:hover .home-stat-card,
.home-stat-trigger:focus-visible .home-stat-card {
  border-color: rgba(14, 165, 233, 0.35);
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.1);
  transform: translateY(-4px);
}

.home-stat-trigger:focus-visible {
  outline: none;
}

.home-stat-trigger.is-active .home-stat-card {
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
  border-color: rgba(2, 132, 199, 0.42);
  box-shadow: 0 22px 44px rgba(2, 132, 199, 0.14);
}

.home-stat-label {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-stat-value {
  color: #0f172a;
  font-size: clamp(1.7rem, 2vw, 2.2rem);
  font-weight: 700;
  line-height: 1;
}

.home-stat-note {
  color: #475569;
  font-size: 0.92rem;
}

.home-stat-accent {
  border-radius: 999px;
  display: inline-flex;
  height: 0.85rem;
  width: 0.85rem;
}

.home-stat-accent--blue {
  background: #0284c7;
}

.home-stat-accent--red {
  background: #dc2626;
}

.home-stat-accent--amber {
  background: #d97706;
}

.home-stat-accent--green {
  background: #16a34a;
}

.home-section-card .card-header,
.home-inventory-card .card-header {
  background: #fff;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  padding: 1rem 1.2rem;
}

.home-section-card .card-header {
  border-radius: 1rem 1rem 0 0;
}

.home-grid-meta {
  color: #64748b;
  font-size: 0.92rem;
}

.home-inventory-grid {
  align-items: stretch;
}

.home-item-col {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.home-inventory-card {
  background: #fff;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-inventory-card:hover {
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.1);
  transform: translateY(-4px);
}

.home-item-title {
  color: #0f172a;
  line-height: 1.35;
  margin: 0;
}

.home-item-meta {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.home-item-meta div {
  min-width: 0;
}

.home-item-meta dt {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.home-item-meta dd {
  color: #0f172a;
  font-size: 0.98rem;
  font-weight: 600;
  margin: 0;
  overflow-wrap: anywhere;
}

.home-status-badge {
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.45rem 0.7rem;
}

.home-empty-state {
  align-items: center;
  background: #f8fafc;
  border: 1px dashed rgba(148, 163, 184, 0.45);
  border-radius: 1rem;
  color: #64748b;
  display: flex;
  justify-content: center;
  min-height: 160px;
  padding: 1.5rem;
  text-align: center;
}

.home-pagination-wrap {
  margin-top: 1.75rem;
}

.home-pagination-wrap .pagination {
  margin-bottom: 0;
}

.home-pagination-wrap .page-link {
  border-radius: 0.7rem;
  color: #0f172a;
  font-weight: 600;
  min-width: 2.6rem;
  text-align: center;
}

.home-pagination-wrap .page-item.active .page-link {
  background-color: #0f172a;
  border-color: #0f172a;
  color: #fff;
}

.home-pagination-wrap .page-item.disabled .page-link {
  background-color: #e2e8f0;
  border-color: #e2e8f0;
  color: #94a3b8;
}

@media (max-width: 991.98px) {
  .home-dashboard-shell {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .home-search-card .card-body,
  .home-section-card .card-body,
  .home-stat-card .card-body,
  .home-section-card .card-header,
  .home-inventory-card .card-header {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 767.98px) {
  .home-dashboard-header {
    margin-bottom: 1.25rem;
  }

  .home-dashboard-shell {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .home-dashboard-header .h2 {
    font-size: 1.65rem;
  }

  .home-item-meta {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .home-section-card .card-header {
    align-items: flex-start !important;
  }
}

@media (max-width: 479.98px) {
  .home-dashboard-shell {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .home-dashboard-header .h2 {
    font-size: 1.45rem;
  }

  .home-search-card,
  .home-section-card,
  .home-stat-card,
  .home-inventory-card,
  .home-empty-state {
    border-radius: 0.85rem;
  }

  .home-search-card .card-body,
  .home-section-card .card-body,
  .home-stat-card .card-body,
  .home-section-card .card-header,
  .home-inventory-card .card-header {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .home-pagination-wrap .page-link {
    min-width: 2.3rem;
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }
}
