.product_imagebox img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.product_imagebox {
    position: relative;
    width: 100%;
    text-align: center;
}

.product_item_condition {
    position: absolute;
    top: 0px;
    left: 50%;
    width: 100%;
    transform: translateX(-50%);
    background: transparent; /* Semi-transparent background */
    /* padding: 5px 10px; */
    border-radius: 5px;
    z-index: 10;
}

.product_item_condition .dropdown-btn {
    display: block;
    margin-bottom: 5px;
    width: 100%;
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    cursor: pointer;
}

.product_item_condition .condition-select {
    display: none;
    position: absolute;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 100;
}

.product_item_condition .condition-select a {
    display: block;
    padding: 5px 10px;
    text-decoration: none;
    color: #333;
    cursor: pointer;
}

.product_item_condition .condition-select a:hover {
    background-color: #f0f0f0;
}

.cart_button {
    margin-top: 10px;
}

.custom-dropdown {
    position: relative;
    display: inline-block;
}

.wptb-search-form {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.wptb-search-form input{
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
    width: 100%;
    background-color: white;
    color: #111;
}



.wptb-search-form button {
    padding: 8px 15px;
    background-color: #b70214;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.wptb-search-form button:hover {
    background-color: #3a020b;
}

.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.loader-overlay.active {
  opacity: 1;
}

.loader-content {
  text-align: center;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

.loader-text {
  color: #333;
  font-size: 1.2rem;
  margin-top: 10px;
}
#loader .loader-spinner {
  animation: loader-spin 1s linear infinite;
}
@keyframes loader-spin {
  to { transform: rotate(360deg); }
}

/* Modern Black & Red Pagination */
.pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2rem 0;
  padding: 0.5rem;
  background-color: #111;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 5px;
}

.pagination-button {
  min-width: 36px;
  height: 36px;
  border: none;
  background: #222;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.pagination-button:hover:not(:disabled) {
  background: #d00;
  transform: translateY(-1px);
}

.pagination-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #333;
}

.page-numbers {
  display: flex;
  gap: 5px;
  margin: 0 10px;
}

.page-number {
  min-width: 36px;
  height: 36px;
  border-radius: 4px;
  background: #222;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0 5px;
}

.page-number:hover:not(.active) {
  background: #333;
  color: #fff;
}

.page-number.active {
  background: #d00;
  color: #fff;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-number.ellipsis {
  background: transparent;
  cursor: default;
  min-width: 20px;
}

.page-size-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap; /* Prevent text wrapping */
}

.page-size-selector label {
  display: inline-block; /* Keep label inline */
  margin: 0; /* Remove default margins */
  color: #ccc;
  font-size: 0.9rem;
}

/* Enhanced page size selector with wider dropdown */
.page-size-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.page-size-selector label {
  display: inline-block;
  margin: 0;
  color: #ccc;
  font-size: 0.9rem;
  flex-shrink: 0; /* Prevent label from shrinking */
}

.page-size-selector select {
  display: inline-block;
  background: #222;
  color: #fff;
  border: 1px solid #444;
  /* padding: 0.4rem 2rem 0.4rem 0.8rem; More right padding for arrow */
  border-radius: 4px;
  cursor: pointer;
  width: 120px; /* Fixed width */
  min-width: 120px; /* Minimum width */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  font-size: 0.9rem;
}

/* Dropdown arrow styling */
.page-size-selector select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ccc'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 1rem;
}

/* Hover states */
.page-size-selector select:hover {
  border-color: #666;
}

.page-size-selector select:focus {
  outline: none;
  border-color: #d00;
}

/* Responsive adjustment for smaller screens */
@media (max-width: 480px) {
  .page-size-selector select {
    width: 100px;
    min-width: 100px;
  }
}
.rfq-button, .add-to-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 25px;
  transition: all 0.25s ease;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.rfq-button i,
.add-to-cart i {
  font-size: 0.9rem;
}

/* RFQ Button - Blue Gradient */
.rfq-button {
  background: linear-gradient(135deg, #3a7bd5, #00d2ff);
}
.rfq-button:hover {
  background: linear-gradient(135deg, #2e6bb0, #00b5e6);
  transform: translateY(-2px);
}

/* Add to Cart Button - Red Gradient */
.add-to-cart {
  background: linear-gradient(135deg, #ff4b2b, #ff416c);
}
.add-to-cart:hover {
  background: linear-gradient(135deg, #e63946, #ff274b);
  transform: translateY(-2px);
}

/* Optional: subtle press effect */
.rfq-button:active, .add-to-cart:active {
  transform: scale(0.96);
}

/* Keep them consistent in layout */
.action-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* Compact header padding */
.modal-header.compact-header {
  padding: 0.5rem 1rem !important;
  align-items: center;
}

/* Remove extra margin from title */
.modal-header .modal-title {
  margin-bottom: 0 !important;
}

/* Optional: reduce body padding */
.modal-body {
  padding: 1.5rem 0rem !important;
}

.part-card {
  border-radius: 12px;
  transition: all 0.25s ease-in-out;
}
.part-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.card-body {
  padding: 0.75rem 1rem !important;
}

/* Compact badge and font adjustments */
.badge {
  font-size: 0.75rem;
  font-weight: 500;
}

.card-title {
  font-size: 1rem;
}
.bulk-actions {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}


.border-top {
  border-top: 1px solid #ddd !important;
}

.btn-sm {
  padding: 0.35rem 0.75rem !important;
  font-size: 0.85rem;
}

/* 🔥 Section Styling */
/* ===========================
   HOT PARTS SECTION
=========================== */

.hot-parts-section {
    /* background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%); */
    /* padding: 20px 10px; */
    border-radius: 24px;
    /* margin: 40px 0; */
    border: 1px solid #e5e7eb;
    box-shadow:
        0 10px 30px rgba(0,0,0,0.08),
        0 1px 3px rgba(0,0,0,0.05);
}

/* Header */

.hot-parts-header {
    text-align: center;
    margin-bottom: 10px;
}

.hot-parts-title {
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #c62828;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.hot-parts-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 650px;
    /* margin: auto; */
}

.hot-parts-divider {
    width: 120px;
    height: 5px;
    background: linear-gradient(90deg, #c62828, #ef4444);
    border-radius: 30px;
    margin: 10px auto 0;
}

.all-part-main {
    display: flex;
    flex-direction: column; /* stack vertically */
    gap: 4px;
}

.all-part-number {
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
}

.all-part-name {
    font-size: 14px;
    color: #666;
    line-height: 1.3;
    word-break: break-word;
}

/* Grid */

.grid-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* gap: 24px; */
}

/* Product Grid */
#product-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 40px;
}

/* Card */
.grid-item.product-container {
    width: 320px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.grid-item.product-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Image Section */
.product_imagebox {
    height: 180px;
    padding: 15px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product_imagebox img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Part Number */
.product_item_name {
    padding: 15px 20px 5px;
    text-align: center;
}

.product_item_name a {
    color: #d32f2f !important;
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    word-break: break-word;
}

/* RFQ Button */
.cart_button {
    padding: 0 20px 20px;
}

.rfq-button {
    width: 100%;
    background: #d32f2f !important;
    color: #fff !important;
    border-radius: 8px;
    padding: 12px;
    border: none;
    text-align: center;
    font-weight: 600;
}

/* Stock Badge */
.badge-sale,
.badge-outofstock {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 6px 12px;
    border-radius: 20px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.badge-sale {
    background: #28a745;
}

.badge-outofstock {
    background: #dc3545;
}
/* Card */

.part-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
}

.part-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

/* Stock Badge */

.stock-badge {
    background: #16a34a;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 20px;
    display: inline-block;
    margin: 15px;
}

/* Part Number */

.part-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: #c62828;
    padding: 0 20px;
    margin-bottom: 12px;
    word-break: break-word;
}

/* Category */

.part-category {
    color: #64748b;
    font-size: 0.95rem;
    padding: 0 20px;
    margin-bottom: 20px;
}

/* RFQ Button */

.rfq-btn {
    width: calc(100% - 40px);
    margin: 0 20px 20px;
    background: linear-gradient(135deg, #c62828, #ef4444);
    border: none;
    color: white;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.rfq-btn:hover {
    transform: scale(1.03);
}

/* Responsive */

@media (max-width: 1400px) {
    .grid-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1100px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .hot-parts-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
}


/* Card */

.part-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
}

.part-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

/* Stock Badge */

.stock-badge {
    background: #16a34a;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 20px;
    display: inline-block;
    margin: 15px;
}

/* Part Number */

.part-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: #c62828;
    padding: 0 20px;
    margin-bottom: 12px;
    word-break: break-word;
}

/* Category */

.part-category {
    color: #64748b;
    font-size: 0.95rem;
    padding: 0 20px;
    margin-bottom: 20px;
}

/* RFQ Button */

.rfq-btn {
    width: calc(100% - 40px);
    margin: 0 20px 20px;
    background: linear-gradient(135deg, #c62828, #ef4444);
    border: none;
    color: white;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.rfq-btn:hover {
    transform: scale(1.03);
}

/* Responsive */

@media (max-width: 1400px) {
    .grid-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1100px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .hot-parts-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
}

.chip {
  display: inline-flex;
  align-items: center;
  background: #1E40AF; /* deep blue tone for elegance */
  color: #fff;
  font-weight: 500;
  border-radius: 25px;
  padding: 6px 14px;
  margin: 5px;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: all 0.2s ease;
}

.chip:hover {
  background: #1d4ed8; /* lighter blue on hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.chip-text {
  margin-right: 8px;
}

.chip-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.chip-close:hover {
  opacity: 1;
}

#product-list {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px; /* adjust as needed */
  width: 100%;
}

.no-products {
  text-align: center;
  font-size: 1.2rem;
  color: #616060;
  background: #fff;
  border-radius: 12px;
  padding: 16px 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}


.no-products:hover {
  background: #fff;
  border-color: #999;
  transform: scale(1.02);
}

/* Popup background */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Popup box */
.popup-box {
  background: #fff;
  padding: 25px 30px;
  border-radius: 10px;
  text-align: center;
  width: 320px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  font-family: Arial, sans-serif;
}

.popup-box h3 {
  margin-bottom: 10px;
  font-size: 20px;
  color: #333;
}

.popup-box p {
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
}

.popup-box button {
  background: #007bff;
  color: white;
  padding: 8px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}

.popup-box button:hover {
  background: #0056b3;
}

.custom-modal-width {
    max-width: 1500px; /* or whatever width you prefer */
    width: 95%;
}

/* Parts List Container */
.parts-list {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #f8fafc;
    padding: 16px;
    border-radius: 12px;
}

/* Main Card Container */
.part-card {
    background: white;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    margin-bottom: 12px;
    overflow: hidden;
    position: relative;
}

.part-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

/* Card Body - Fixed structure */
.card-body {
    padding: 16px;
}

/* Row container for two columns */
.row.align-items-center.gx-3 {
    display: flex;
    align-items: flex-start;
    width: 100%;
}

/* LEFT COLUMN - Part Information */
.col-md-6.col-12.d-flex.align-items-start.gap-2 {
    flex: 1;
    min-width: 0; /* Prevents overflow */
}

/* Checkbox positioning */
.form-check {
    margin-top: 2px;
    flex-shrink: 0;
}

.form-check-input.part-checkbox {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    border: 2px solid #94a3b8;
    cursor: pointer;
}

.form-check-input.part-checkbox:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

/* Part info container */
.col-md-6.col-12.d-flex.align-items-start.gap-2 > div:last-child {
    flex: 1;
    min-width: 0;
}

/* PART NUMBER - Top left */
.card-title.text-danger.fw-bold.mb-1 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b !important;
    margin-bottom: 8px !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-title.text-danger.fw-bold.mb-1 i {
    color: #ef4444;
    font-size: 16px;
}

/* Condition and Cert type badges - Horizontal layout */
.mb-1.small.text-muted {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px !important;
    flex-wrap: wrap;
}

/* Condition badge */
.mb-1.small.text-muted .badge.bg-secondary {
    background: #64748b !important;
    color: white !important;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Cert type badge */
.mb-1.small .badge.bg-info {
    background: #0ea5e9 !important;
    color: white !important;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Part description - should be below badges */
.card-text.text-secondary.small.mb-0 {
    color: #64748b !important;
    font-size: 13px;
    line-height: 1.5;
    margin-top: 8px;
    font-weight: 400;
    padding-right: 8px;
}

/* RIGHT COLUMN - Stock & Actions */
.col-md-6.col-12.text-md-end.text-start.mt-2.mt-md-0 {
    width: 220px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

/* Stock Availability badge - Top right */
.badge.bg-success.px-2.py-1.fs-7.rounded-pill {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: white !important;
    font-size: 12px !important;
    font-weight: 600;
    padding: 6px 12px !important;
    border-radius: 20px !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.badge.bg-success i {
    font-size: 13px;
}

/* Category badge */
.mt-1 .badge.bg-light.text-dark.border.rounded-pill {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 20px !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Action buttons container */
.mt-2.d-flex.justify-content-end.gap-2 {
    display: flex;
    gap: 10px;
    margin-top: 8px !important;
    width: 100%;
    justify-content: flex-end;
}

/* Certificate button */
.cert-btn {
    border: 1px solid #0ea5e9;
    background: white;
    color: #0ea5e9;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
    height: 32px;
    text-decoration: none !important;
}

.cert-btn:hover {
    background: #0ea5e9;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(14, 165, 233, 0.3);
}

/* Disabled certificate button */
.btn.btn-sm.btn-outline-secondary.disabled {
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: not-allowed;
}

/* RFQ Button */
.rfq-button {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.2);
}

.rfq-button:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
}

/* Bulk Action Buttons */
.d-flex.justify-content-end.mt-3.gap-2 {
    padding-top: 16px;
    margin-top: 20px !important;
    border-top: 1px solid #e2e8f0;
}

/* Bulk buttons */
#bulkCertificatesBtn,
.d-flex.justify-content-end.mt-3.gap-2 .btn {
    font-size: 13px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

/* Bulk Certificate Download */
#bulkCertificatesBtn {
    border: 1px solid #0ea5e9;
    color: #0ea5e9;
    background: white;
}

#bulkCertificatesBtn:hover {
    background: #0ea5e9;
    color: white;
}

/* Bulk RFQ Button */
.d-flex.justify-content-end.mt-3.gap-2 .btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    color: white;
    box-shadow: 0 3px 8px rgba(59, 130, 246, 0.3);
}

.d-flex.justify-content-end.mt-3.gap-2 .btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .row.align-items-center.gx-3 {
        flex-direction: column;
    }
    
    .col-md-6.col-12.text-md-end.text-start.mt-2.mt-md-0 {
        width: 100%;
        align-items: flex-start;
        margin-top: 12px !important;
        border-top: 1px solid #f1f5f9;
        padding-top: 12px;
    }
    
    .mt-2.d-flex.justify-content-end.gap-2 {
        justify-content: flex-start !important;
    }
    
    .parts-list {
        padding: 12px;
    }
    
    .card-body {
        padding: 14px;
    }
}

/* Fix for badge alignment */
.badge {
    white-space: nowrap;
}

/* Ensure proper text wrapping */
.card-text.text-secondary.small.mb-0 {
    word-break: break-word;
    hyphens: auto;
}

/* Status indicator line */
.part-card::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #10b981, #059669);
    border-radius: 10px 0 0 10px;
}
