.content-wrapper {
  background: #f4f6f9;
}

.chart-bg {
  background-color: #f7f7f7;
}

.small-filter-card {
  border-radius: 0.35rem;
  overflow: visible;
}

.filter-header {
  background-color: #ededed;
  border: none;
  padding: 0.75rem 1rem;
}

.filter-icon {
  font-size: 1.2rem;
  color: #000;
}

.filter-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #000;
}

.filter-body {
  background-color: #f7f7f7;
  padding: 1rem;
  border-top: 1px solid #e0e0e0;
}

.btn-search {
  background-color: #12a0da;
  color: #fff;
  border: none;
  padding: 0.4rem 1rem;
}

.btn-search:hover {
  background-color: #0e8ac4;
  color: #fff;
}

.btn-search:focus,
.btn-search:active {
  box-shadow: none;
}

.slide-fade-in {
  animation: slideDownFadeIn 0.8s ease-in-out forwards;
}

@keyframes slideDownFadeIn {
  from {
    opacity: 0.4;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-result {
  border: 1px solid #e2e8f0;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card-result:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.smart-search-card .smart-search-input-group .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  font-size: 1rem;
  height: calc(2.6rem + 2px);
}

.smart-search-card .smart-search-input-group .btn-search {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  font-size: 1rem;
  padding: 0.55rem 1.25rem;
}

.smart-filter-panel {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.25rem 1rem;
}

.smart-top-card {
  border: 1px solid #dbe0e8;
  border-radius: 0.75rem;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: #ffffff;
}

.smart-top-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

.smart-ranking-badge {
  display: inline-block;
  padding: 0.3rem 0.65rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 999px;
}

.smart-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.smart-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1f2937;
}

.smart-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: #1f2937;
}

.smart-card-label {
  font-weight: 600;
  color: #475569;
}

.smart-card-value {
  font-weight: 500;
  color: #1f2937;
  text-align: right;
}

.smart-card-price-row {
  border-top: 1px solid #e2e8f0;
  padding-top: 0.75rem;
  margin-top: 0.25rem;
}

.smart-card-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: #047857;
}

.smart-detail-btn {
  align-self: flex-start;
  border-radius: 999px;
  padding: 0.4rem 1.2rem;
  background-color: #0ea5e9;
  border-color: #0ea5e9;
  color: #ffffff;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.smart-detail-btn:hover,
.smart-detail-btn:focus {
  background-color: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
  box-shadow: none;
}

.smart-secondary-info i {
  color: #3b82f6;
}

.smart-detail-list {
  border-top: 1px solid #e2e8f0;
  padding-top: 1rem;
}

.smart-detail-list li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: #334155;
  margin-bottom: 0.5rem;
}

.smart-detail-list li:last-child {
  margin-bottom: 0;
}

.smart-detail-list .label {
  font-weight: 600;
  color: #1f2937;
}

.smart-detail-list .value {
  color: #475569;
  text-align: right;
}

.smart-family-text {
  color: #64748b !important;
  font-weight: 500;
}

.smart-line-results {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.smart-line-results.smart-line-results--empty {
  display: block;
  gap: 0;
}

.smart-line-item {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 1.5rem;
  padding: 1.5rem 1.75rem;
  background: #ffffff;
  border: 1px solid #dbe0e8;
  border-radius: 0.9rem;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.smart-line-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, #0ea5e9 0%, #14b8a6 100%);
}

.smart-line-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.smart-line-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.smart-line-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.smart-line-provider {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1f2937;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.smart-line-match {
  font-size: 0.85rem;
  font-weight: 600;
  color: #0f766e;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.smart-line-section {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.smart-line-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.smart-line-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1f2937;
}

.smart-line-description {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.6;
}

.smart-line-description mark {
  background: #fef08a;
  color: inherit;
  padding: 0 0.2rem;
  border-radius: 0.3rem;
}

.smart-line-tags {
  gap: 0.5rem;
}

.smart-line-tag-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #1f2937;
}

.smart-line-tag {
  font-weight: 600;
  color: #0f172a;
}

.smart-line-tag mark {
  background: #fef08a;
  color: inherit;
  padding: 0 0.15rem;
  border-radius: 0.2rem;
}

.smart-line-tag-separator {
  color: #cbd5f5;
  font-weight: 700;
}

.smart-line-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  min-width: 150px;
  padding-left: 1.5rem;
  border-left: 1px solid #e2e8f0;
}

.smart-line-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1d4ed8;
}

.smart-line-price-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .smart-line-item {
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem 1.25rem 1.5rem;
  }

  .smart-line-item::before {
    width: auto;
    height: 4px;
    right: 0;
    bottom: auto;
  }

  .smart-line-right {
    align-items: flex-start;
    border-left: none;
    border-top: 1px solid #e2e8f0;
    padding-left: 0;
    padding-top: 1rem;
    width: 100%;
  }

  .smart-line-provider {
    font-size: 1rem;
  }

  .smart-line-price {
    font-size: 1.25rem;
  }
}

.card-title {
  font-size: 1.25rem;
  font-weight: bold;
}

.card-header {
  background-color: #ededed;
}

#filterMaterialDropdown,
#filterTownDropdown {
  max-height: 200px;
  overflow-y: auto;
  font-size: 0.875rem;
}

#spendBarChart,
#spendPieChart,
#monthlySpendChart {
  width: 100%;
  height: 400px;
}

#providersTable_wrapper {
  padding: 1rem;
  border-radius: 0.85rem;
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  margin-bottom: 2rem;
  overflow: visible;
}

#providersTable thead {
  background: linear-gradient(90deg, #0c8eed, #3b82f6);
  color: #ffffff;
}

#providersTable thead th {
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  border: none;
}

#providersTable tbody tr:nth-child(odd) {
  background-color: #f7f9fc;
}

#providersTable tbody tr:nth-child(even) {
  background-color: #ffffff;
}

#providersTable tbody tr:hover {
  background-color: #e3edfe !important;
}

#providersTable tbody td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #e0e0e0;
  vertical-align: middle;
}

#providersTable tbody tr:last-child td {
  border-bottom: none;
}

#providersTable tfoot {
  background-color: #f7f9fc;
}

#providersTable tfoot th {
  font-weight: bold;
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  border: none;
}

#providersTable_wrapper .dataTables_filter input {
  border-radius: 4px;
  border: 1px solid #ccd1da;
  background-color: #ededed;
  padding: 0.4rem 0.75rem;
  width: 200px;
}

#providersTable_wrapper .dataTables_length select {
  border-radius: 4px;
  border: 1px solid #ccd1da;
  background-color: #ededed;
  padding: 0.3rem 0.6rem;
}

#providersTable_wrapper .dataTables_paginate .paginate_button {
  background-color: #0c8eed !important;
  background-image: none !important;
  color: #f7f9fc !important;
  border: none !important;
  border-radius: 4px !important;
  padding: 0.4rem 0.75rem !important;
  margin: 0 2px !important;
  margin-top: 2% !important;
  opacity: 1 !important;
  cursor: pointer !important;
}

#providersTable_wrapper .dataTables_paginate .paginate_button.disabled {
  background-color: #b0c4de !important;
  background-image: none !important;
  color: #ffffff !important;
  cursor: default !important;
  opacity: 1 !important;
}

#providersTable_wrapper .dataTables_paginate .paginate_button.current {
  background-color: #0260a3 !important;
  background-image: none !important;
  color: #ffffff !important;
  border: none !important;
  cursor: default !important;
}

#providersTable_wrapper .dataTables_paginate .paginate_button:hover {
  background-color: #0a7ecf !important;
  background-image: none !important;
  color: #ffffff !important;
}

#providersTable_wrapper .dataTables_paginate .pagination .page-item .page-link {
  background-color: #0c8eed !important;
  background-image: none !important;
  color: #f7f9fc !important;
  border: none !important;
  border-radius: 4px !important;
  padding: 0.4rem 0.75rem !important;
  margin: 0 2px !important;
  margin-top: 2% !important;
  opacity: 1 !important;
  cursor: pointer !important;
}

#providersTable_wrapper .dataTables_paginate .pagination .page-item.disabled .page-link {
  background-color: #b0c4de !important;
  background-image: none !important;
  color: #ffffff !important;
  cursor: default !important;
  opacity: 1 !important;
}

#providersTable_wrapper .dataTables_paginate .pagination .page-item.active .page-link {
  background-color: #0260a3 !important;
  background-image: none !important;
  color: #ffffff !important;
  cursor: default !important;
}

#providersTable_wrapper .dataTables_paginate .pagination .page-item:not(.active):not(.disabled) .page-link:hover {
  background-color: #0a7ecf !important;
  background-image: none !important;
  color: #ffffff !important;
}

#providersTable_wrapper .dataTables_info {
  color: #6c757d;
  font-size: 0.9rem;
  padding-top: 0.75rem;
}

#providersTable {
  width: 100% !important;
  border-collapse: separate;
  border-spacing: 0;
}

.filters-card .card-header {
  background: #f6f7f9;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.filters-card .card-body {
  padding: 0.9rem 1rem;   
}

.filters-card .form-group {
  margin-bottom: 0.65rem;
}

.filters-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #2f343a;
  margin-bottom: 0.35rem;
}

.filters-card .form-control-sm {
  height: calc(1.5em + 0.55rem + 2px);
  padding: 0.25rem 0.55rem;
  font-size: 0.85rem;
  border-radius: 0.45rem;
}

.filters-card select.form-control-sm {
  padding-right: 1.75rem;
}

.filters-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
}

.filters-note {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  opacity: 0.85;
}
