/* =====================
   Reusable Utility Classes
   ===================== */
.empty-row {
  color: #aaa;
  text-align: center;
  justify-content: center;
  font-size: 1.1rem;
  padding: 24px 0;
}

.card-block {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  margin-bottom: 16px;
}

.action-link {
  color: #1976d2;
  font-weight: 500;
  text-decoration: none;
  font-size: small;
}
.action-link:hover {
  text-decoration: underline;
}

/* =====================
   Pagination
   ===================== */
.pagination {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}
.pagination-list-simple {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
  margin: 16px 0;
}
.pagination-list-simple a {
  display: inline-block;
  padding: 6px 14px;
  background: #fff;
  color: #1976d2;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border 0.2s;
}
.pagination-list-simple a.active {
  background: #4CAF50;
  color: #fff;
  border-color: #4CAF50;
}
.pagination-list-simple a:hover:not(.active):not(.disabled) {
  background: #e0f7fa;
}
.pagination-list-simple a.disabled {
  color: #aaa;
  border-color: #eee;
  background: #f5f5f5;
  cursor: not-allowed;
  pointer-events: none;
}
.pagination-bar {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 24px 0 0 0;
  justify-content: flex-end;
}
.pagination-info {
  color: #222;
  font-size: smaller;
  text-align: right;
  margin-right: 16px;
  min-width: 180px;
}
.pagination-bar .pagination-spacer {
  display: none;
}
.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* =====================
   Drivers Section
   ===================== */
.driver-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.driver-group {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  margin-bottom: 16px;
  padding: 0;
}
.driver-group-header {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 0 16px;
  min-height: 48px;
  font-weight: 600;
  font-size: 1.08rem;
  transition: background 0.2s;
}
.driver-group-header:hover {
  background: #f5f5f5;
}
.driver-group-title {
  color: #294E95 !important;
  font-weight: 600;
  font-size: small;
  text-decoration: underline;
  margin-right: 16px;
  flex: 2;
  cursor: pointer;
}
.driver-group-chevron {
  font-size: 2.2rem;
  color: #294E95;
  margin-right: 12px;
  margin-left: 0;
  transition: transform 0.2s;
  display: inline-block;
}
.chevron-rotated {
  transform: rotate(-180deg);
}
.driver-files-list {
  list-style: none;
  padding: 0 0 0 44px;
  margin: 0;
}
.driver-file-item {
  margin-bottom: 8px;
}
.driver-file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}
.driver-file-row.empty {
  color: #aaa;
  text-align: center;
  justify-content: center;
  font-size: 1.1rem;
  padding: 24px 0;
}
.driver-file-name {
  font-weight: bold;
  font-size: smaller;
  display: block;
}
.driver-file-meta-row {
  margin-top: 2px;
}
.driver-file-meta {
  color: #444;
  font-size: smaller;
  margin-left: 8px;
}
.driver-file-action {
  min-width: 120px;
  text-align: right;
  font-size: 1rem;
}

/* =====================
   Product / Solutions / Manuals
   ===================== */
.product-content.new-layout {
  padding: 0 24px;
  background: #fff;
  min-height: 600px;
  height: 100%;
  flex-direction: column;
  margin: 0 auto;
}
.main-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}
.product-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0;
}
.tab-filters-row {
  display: flex;
  align-items: center;
  gap: 15px;
}
.tab-bar {
  display: flex;
  background: #737373;
  border-radius: 24px;
  padding: 4px 12px;
}
.tab-bar > li > a {
  border-radius: 24px;
  padding: 8px 24px;
  font-weight: 500;
  color: #fff;
}
.tab-bar > li.active > a {
  background: #fff;
  color: #000;
}
.filters, .filter-group {
  display: flex;
  gap: 16px;
}
.filter-select {
  min-width: 150px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  font-size: smaller;
  color: black;
}
.product-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.product-list-item {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  margin-bottom: 16px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  min-height: 50px;
}
.product-list-item.empty {
  color: #aaa;
  text-align: center;
  justify-content: center;
  font-size: 1.5rem;
  padding: 24px 0;
}
.product-row {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 15px auto;
}
.product-icon {
  font-size: 1.5rem;
  color: #4B2EFF;
  margin-right: 16px;
  flex-shrink: 0;
}
.product-info {
  flex: 1;
  min-width: 0;
}
.product-link {
  font-weight: bold;
  font-size: small;
}
.product-desc {
  color: #666;
  font-size: 0.95rem;
  margin-top: 2px;
}
.product-meta {
  font-size: smaller;
  margin-top: 4px;
}
.product-action {
  text-align: right;
  min-width: 120px;
  margin-left: 16px;
}

/* =====================
   Responsive
   ===================== */
@media (max-width: 900px) {
  .main-header, .tab-filters-row, .filters, .filter-group {
    flex-direction: column;
    gap: 8px;
  }
  .product-list-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px;
  }
  .product-action {
    margin-left: 0;
    min-width: 0;
    width: 100%;
    text-align: left;
    margin-top: 8px;
  }
}
