/* Parts Search Table Styles */

/* Container Styles */




.search-results {
    background: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.quantity-wrapper {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow: hidden;
  background-color: #f9f9f9;
}

.quantity-btn {
  background-color: #e0e0e0;
  border: none;
  padding: 6px 12px;
  font-size: 16px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

.quantity-btn:hover {
  background-color: #d0d0d0;
}

.item-qty {
  padding: 0 12px;
  font-size: 16px;
  font-weight: 500;
  min-width: 20px;
  text-align: center;
  display: inline-block;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    margin: 1rem 0;
    padding: 1rem;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cart_popup_header{
    background-color: #800000;
}


.continue_btn {
    background: #800000 !important;
    color: #ffffff !important;
    border: none !important;
   
    padding: 10px 30px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-size: 1rem !important;
}
.rfq_btn {
    background: #000000 !important;
    color: #ffffff !important;
    border: none !important;
    min-width: 130px !important;
    padding: 10px 20px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-size: 1rem !important;
}
.rfq-field1 label{
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    display: block;
    margin-bottom: 0.5rem;
    color: #000000;
    font-weight: 500;
}
.rfq-field1 input{
    width: auto;
    padding: 0.8rem;
    border: 2px solid #000000;
    border-radius: 4px;
    font-size: 1rem;
    color: #000000;
}

.parts-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e0e0e0;
}

/* Header Styles */
.parts-table th {
    background: #000000;
    color: #ffffff;
    font-weight: 600;
    padding: 1rem;
    text-align: left;
    border: 1px solid #000000;
    font-size: 0.9rem;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 1;
}

/* Cell Styles */
.parts-table td {
    padding: 1rem;
    border: 1px solid #000000;
    color: #ffffff;
    font-size: 0.9rem;
}

/* Numeric columns alignment */
.parts-table td:nth-child(6),
.parts-table td:nth-child(10),
.parts-table td:nth-child(11) {
    text-align: right;
}

/* Currency formatting for price columns */
.parts-table td:nth-child(6),
.parts-table td:nth-child(11) {
    font-family: 'Arial', sans-serif;
}

/* Alternating row colors */
.parts-table tr:nth-child(odd) {
    background: #800000;
    color: #ffffff;
}

.parts-table tr:nth-child(even) {
    background: #000000;
    color: #ffffff;
}

/* Remove hover effect 
.parts-table tr:hover {
    background: #800000;
    color: #ffffff;
    box-shadow: none;
}*/

/* Search Form Styles */
.search-form {
    max-width: 600px;
    margin: 2rem auto;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-form input[type="text"] {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 2px solid #800000;
    border-radius: 4px;
    font-size: 1rem;
    color: #000000;
    transition: all 0.3s ease;
}

.search-form input[type="text"]:focus {
    outline: none;
    border-color: #660000;
    box-shadow: 0 0 0 3px rgba(128, 0, 0, 0.1);
}

.search-form button {
    width: 100%;
    padding: 1rem;
    background: #800000;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-form button:hover,.search-form button:active, .search-form button:focus {
    background: #660000;
    transform: translateY(-1px);
    color:#fff !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-form button:active {
    transform: translateY(0);
    box-shadow: none;
}

.pagination-container a:hover{
    color:#fff !important;
}
/* RFQ Button Styles */
.rfq-button {
    background: #800000;
    color: #ffffff;
    border: none;
    min-width: 130px !important;
    padding: 10px 20px !important;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}
.button-loader {
    margin-left: 8px;
    font-size: 14px;
}

.loading .button-text {
    display: none;
}

.loading .button-loader {
    display: inline-block !important;
}

.parts-table tr:nth-child(odd) .rfq-button {
    background: #000000 !important;
}

/* .rfq-button:hover {
    background: #660000;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
} */

.rfq-icon {
    font-size: 1.2rem;
}

/* RFQ Modal Styles */
.rfq-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.rfq-modal-content {
    position: relative;
    width: 90%;
    max-width: 600px;
    margin: 2rem auto;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 90vh;
}

.rfq-modal-header {
    background: #000000;
    color: #ffffff;
    padding: 1rem;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.rfq-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.rfq-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.rfq-close:hover {
    color: #800000;
}

.rfq-modal-body {
    padding: 2rem;
    flex-grow: 1;
    overflow-y: auto;
    max-height: calc(90vh - 120px); /* Header + footer height */
}

.rfq-field {
    margin-bottom: 1.5rem;
}

.rfq-field label {
    display: block;
    margin-bottom: 0.5rem;
    color: #000000;
    font-weight: 500;
}

.rfq-field input,
.rfq-field textarea,
.rfq-field select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #000000;
    border-radius: 4px;
    font-size: 1rem;
    color: #000000;
}

.rfq-field textarea {
    height: 100px;
    resize: vertical;
}

.rfq-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.rfq-submit {
    background: #800000;
    color: #ffffff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rfq-submit:hover,.rfq-submit:active, .rfq-submit:focus {
    background: #660000;
    transform: translateY(-1px);
    color:#fff !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Pagination Styles */
.pagination-container {
    text-align: center;
    margin: 2rem 0;
}

.pagination-container a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    margin: 0 0.25rem;
    background: #800000;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    min-width: 32px;
    font-weight: 500;
}

.pagination-container a:hover {
    background: #660000;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pagination-container a.current {
    background: #000000;
}

.pagination-container .ellipsis {
    color: #800000;
    margin: 0 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.pagination-container a.prev,
.pagination-container a.next {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
}

.pagination-container .prev {
    border-radius: 4px 0 0 4px;
}

.pagination-container .next {
    border-radius: 0 4px 4px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .table-container {
        margin: 0;
    }
    
    .parts-table th,
    .parts-table td {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
    
    .rfq-button {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .pagination-container a {
        padding: 0.5rem;
        min-width: 28px;
    }
}
