.select2-container--default .select2-selection--single {
    height: 38px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 14px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 24px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    top: 0;
    right: 6px;
}

.supplier-btn.active-supplier {
    outline: 2px solid #000;
    box-shadow: 0 0 5px #000;
}

.bg-gray-100 {
    background-color: #e7f2fa;
}

.criteria {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    padding: 5px;
}

.formattedValue {
    word-wrap: break-word;
    /* Legacy property for older browsers */
    overflow-wrap: break-word;
    /* Modern standard property */
    white-space: normal;
    /* Ensures text wraps normally */
    /* max-width: 50%; */
}

.criteriaDescription {
    font-weight: 600;
    margin-right: 20px;
    /* width: 50%; */
}

.info-btn {
    background-color: #BD9F67;
    ;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
}

.supp-list {
    /* position: absolute; */
    bottom: 5px;
    /* border: #243137 1px solid; */
    box-shadow: rgba(17, 17, 26, 0.1) 0px 0px 16px;
}

/* From Uiverse.io by JaydipPrajapati1910 */
.button {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 15px;
    gap: 15px;
    background-color: #BD9F67;
    outline: 3px #BD9F67 solid;
    outline-offset: -3px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: 400ms;
    height: 40px;
    height: 45px;
    position: absolute;
    bottom: 10px;
    right: 10px;
}

.button .text {
    color: white;
    font-weight: 700;
    font-size: 1em;
    transition: 400ms;
    margin-top: 13px;
}

.button svg path {
    transition: 400ms;
}

.button:hover {
    background-color: transparent;
}

.button:hover .text {
    color: #181717;
}

.button:hover svg path {
    fill: #181717;
}

.suppliers {
    display: flex;
    /* justify-content: flex-start; */
    align-items: center;
    margin-top: 10px;
}

.supplier-box img {
    border-radius: 7%;
    padding: 5px;
    background-color: #BD9F67;

}

.supplier-box {
    display: flex;
    /* justify-content: center; */
    align-items: center;
    width: 70px;
    height: 35px;
    border-radius: 7%;
    background-color: #BD9F67;
    margin-right: 10px;
}

/* From Uiverse.io by R1SH4BH81 */
.bvBox {
    width: 100%;
    height: 254px;
    padding: 0 15px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    background: #fff;
    border-radius: 20px;
}

.impo {
    background: #E2FEEE !important;
}

.bvBox__title {
    font-size: 23px;
    font-weight: 900;
    color: #333;
}

.bvBox__content {
    font-size: 13px;
    line-height: 18px;
    color: #333;
    margin: 10px 0;
}

.bvBox__form form {
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: 100%;
}

.bvBox__form input {
    flex: 1;
    padding: 0.6em;
    border-radius: 8px;
    border: 1px solid #333;
    color: black;
    width: 100%;
}

.partslink-btn-block {

    border: 1px solid #F7C500;
    padding: 4px 15px;
    border-radius: 10px;
    transition: all 0.5s;
}

.partslink-btn-block:hover {
    background: #F7C500;
}

.bvBox__form button {
    background: #111;
    color: #fff;
    padding: 0.68em;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    border: none;
}

.sign-up:hover {
    opacity: 0.9;
}

.change-car-btn {
    position: absolute;
    top: 0;
    right: 0;
    background: #DC3741;
    padding: 2px 10px;
    border-radius: 8px;
    color: #FFF;
    transition: all 0.5s;
}


/* From Uiverse.io by R1SH4BH81 */
.product-card {
    display: flex;
    /* align-items: center; */
    /* width: 80%; */
    background: white;
    padding: 0.5em;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 7px;
    position: relative;
    /* border: 1px solid #BD9F67; */
    margin: 10px;
    margin-top: 15px;

}

.product-card-image {
    background-color: rgba(0, 0, 0, 0.1);
    width: 200px;
    height: 150px;
    border-radius: 6px;
    flex-shrink: 0;
    margin-right: 10px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: #BD9F67 solid 1px;
}

.product-card-image:hover {
    transform: scale(0.98);
    transition: transform 0.3s ease;
}

.product-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.category {
    text-transform: uppercase;
    font-size: 1em;
    font-weight: 600;
    color: #BD9F67;
    /* color: rgb(63, 121, 230); */
    padding-bottom: 5px;
    text-align: left;
    /* Align text to the left */
}

.category:hover {
    cursor: pointer;
}

.heading {
    font-weight: 600;
    color: rgb(88, 87, 87);
    margin-bottom: 10px;
    text-align: left;
    /* Align text to the left */
}

.heading:hover {
    cursor: pointer;
}

.author {
    color: gray;
    font-weight: 400;
    font-size: 11px;
    text-align: left;
    /* Align text to the left */
}

.name {
    font-weight: 600;
}

.name:hover {
    cursor: pointer;
}

.supplier-tab-content {
    margin-bottom: 10px;
    width: 100%;
}

.supplier-details-box {
    background: #fff;
    color: #000;
    border: 1px solid #ccc;
    padding: 1rem;
    border-radius: 8px;
    font-family: Arial, sans-serif;
}

.supplier-details-box p {
    margin: 0.5rem 0;
}

.qty-selector {
    margin-top: 1rem;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-btn {
    background: #000;
    color: #fff;
    border: none;
    padding: 0.4rem 0.8rem;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 4px;
}

.qty-input {
    width: 60px;
    text-align: center;
    padding: 0.3rem;
    font-size: 1rem;
    border: 1px solid #000;
    border-radius: 4px;
}

.submit-order-btn {
    margin-top: 1rem;
    background: #000;
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-order-btn:hover {
    background: #333;
}


.supplier-cost-qty {
    display: flex;
    flex-direction: column;
    width: 70px;
    gap: 6px;
}

.main-supp-box {
    display: flex;
    gap: 20px;
    justify-items: end;
    flex-wrap: nowrap;
    align-items: flex-end;
}



/* From Uiverse.io by JohnnyCSilva */
.car-card {
    width: fit-content;
    height: auto;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: start;
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    gap: 10px;
    border: 2px solid transparent;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    border: 1px solid #BD9F67;
    position: relative;
}

.close-car {
    position: absolute;
    top: 0px;
    right: -1px;
    background-color: #e57e25;
    color: white;
    padding: 5px 10px;
    border-radius: 10px;
    text-decoration: none;
}

.car-card:hover {
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.car-card .image {
    width: 70px;
    height: 70px;
    transition: all 0.1s ease-in-out;
}

.number-h1 {
    font-size: 15px;
    /* font-weight: bold; */
    padding: 5px 7px;
    border-radius: 10px;
    color: white;
    background-color: #e57e25;
    display: flex;
    justify-content: space-between;
}

.h1 {
    font-size: 17px;
    font-weight: bold;
    /* display: flex; */
    /* justify-content: space-between; */
    /* text-align: center; */
}

.p {
    color: #9e9da1;
    font-size: 14px;
    text-align: center;
}

.category-search-container {
    width: 100%;
    margin: 20px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    font-family: 'Segoe UI', sans-serif;
    display: block;
    width: 100%;
    height: -webkit-fill-available;
}

.search-input {
    width: 100%;
    padding: 10px 15px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: 0.3s;
}

.search-input:focus {
    border-color: #007bff;
}

.category-tree ul {
    list-style-type: none;
    padding-left: 0;
    margin-left: 0;
}

.tree-node {
    /* display: flex; */
    align-items: center;
    padding: 6px 0;
    cursor: pointer;
    font-size: 15px;
    transition: 0.2s ease;
    margin-left: 0px;
    /* background: #E2FEEE; */
    padding: 10px;
    margin: 5px;
    /* border-bottom: 1px solid #aea090; */
    border-radius: 6px;
}

.tree-node:hover {
    /* background-color: #bbffd8; */
    border-radius: 6px;
}

.toggle-icon,
.leaf-icon {
    margin-right: 8px;
    width: 24px;
    text-align: center;
    transition: 0.3s transform;
}

.toggle-icon.open {
    transform: rotate(90deg);
}

.category-name {
    flex: 1;
}

.children {
    margin-left: 20px;
    padding-left: 10px;
    border-left: 1px dashed #ccc;
}

.hidden {
    display: none;
}

.highlighted {
    font-weight: bold;
    padding: 6px;
    color: #007bff;
}

.cost {
    color: #dc3545;
    font-size: 18px;
    font-weight: 600;
}

.unavailable {
    background: #dc3545 !important;
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 6px;
    border-radius: 6px;
    text-align: center;
}

.stock-info-container {
    background-color: #f9fafb;
    padding: 0.5rem;
    border-radius: 0.375rem;
    border: 1px solid #dcfce7;
    margin-bottom: 0.5rem;
}

.stock-status {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 1.5rem;
    font-weight: 600;
    background-color: #dcfce7;
    color: #166534;
}

.stock-status svg {
    height: 1.5rem;
    width: 1.5rem;
    margin-right: 0.25rem;
}

.stock-quantity {
    font-size: 1.5rem;
    font-weight: 500;
    color: #374151;
    background-color: #f0fdf4;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.rack-info {
    font-size: 1.5rem;
    color: #374151;
    margin-top: 0.25rem;
    display: block;
}

.supp-list {
    padding: 10px;
}

.main-supp-box {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Supplier box */
.supplier-card {
    background: #243137;
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    font-family: Arial, sans-serif;
    width: 100px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Quantity badges */
.qty {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.badge {
    background: #2c5c70;
    border-radius: 8px;
    padding: 4px 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 60px;
    font-size: 13px;
    font-weight: bold;
    box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3);
}

.hide-op {
    opacity: 0.5;
}

.cheapest-supplier {
    border: 2px solid #4CAF50;
    background-color: #f8fff8;
    position: absolute !important;
    right: 16px;
    bottom: 16px;
}

.cheapest-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #4CAF50;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
}

.supplier-card {
    position: relative;
}

.sup-code {
    background: #000000;
    color: #FFF;
    padding: 2px 16px;
    border-radius: 5px;
    font-size: 17px;
}

.ner,
.far,
.tod {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    text-transform: uppercase;
    color: #fff;
}

.tod {
    background-color: #28a745;
}

.ner {
    background-color: #ebb42a;
}

.far {
    background-color: #dc3545;
}

.value {
    margin-left: 6px;
    background-color: #444;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
}

/* Cost */
.cost {
    font-size: 14px;
    color: #ff5f5f;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Button with image */
.supplier-btn {
    background: #BD9F67;
    border: none;
    height: 30px;
    border-radius: 6px;
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.supplier-btn img {
    height: 24px;
    width: 100%;
}

.qty-list {
    padding-left: 1rem;
    list-style-type: disc;
    margin-top: 0.5rem;
}

.not-tecdoc {
    color: #FFF;
    font-weight: 600;
    font-size: 12px;
    position: absolute;
    top: -5px;
    left: -5px;
    padding: 5px 10px;
    border-radius: 5px;
    background: #e07777;
    z-index: 10;
}

.filters {
    display: flex;
}

.filter-box {
    max-width: 300px;
    margin-left: 20px
}

.filter-label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #555;
}

.filter-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fff;
    transition: all 0.2s;
}

.filter-select:focus {
    outline: none;
    border-color: #eab308;
    box-shadow: 0 0 0 3px #fde68a;
}

.loading-spinner {
    text-align: center;
    padding: 10px;
    color: #666;
}

.supplier-details {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
}

.supplier-error {
    padding: 10px;
    background: #fff3f3;
    border-radius: 5px;
    color: #dc3545;
}

.in-stock {
    color: #28a745;
    font-weight: 500;
}

.out-of-stock {
    color: #dc3545;
    font-weight: 500;
}

.supplier-btn[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}

#recommendations {
    background: #eee;
    width: 100%;
    height: 200px;
    border-radius: 5px;
    overflow: scroll;
}

.branch-stock-box {
    background: #E2FEEE;
    color: #1AA06D;
    padding: 16px;
    margin: 13px 0px;
    border-radius: 5px;
}

.branch-stock-box {
    margin-top: 20px;
    background-color: #f9f9f9;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.branch-stock-box h4 {
    margin-bottom: 12px;
    font-size: 14px;
    color: #333;
}

.branch-stock-table {
    width: 100%;
    border-collapse: collapse;
}

.branch-stock-table thead th {
    background-color: #eaeaea;
    padding: 10px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #ccc;
    font-size: 14px;
}

.branch-stock-table tbody td {
    padding: 10px;
    border-bottom: 1px solid #e1e1e1;
    font-size: 14px;
    color: #333;
}

.branch-stock-table tbody tr:nth-child(even) {
    background-color: #f4f4f4;
}

.branch-stock-table tbody tr:hover {
    background-color: #eef5ff;
    transition: background-color 0.3s ease;
}

.branch-stock-table td:last-child {
    text-transform: capitalize;
}

.branch-stock-box {
    /* position: absolute; */
    /* top: 4%; */
    /* left: 50%; */
    /* width: 40%; */
    border: 1px solid;
}

.part-info {
    display: flex;
    flex-wrap: wrap;
    font-size: 14px;
    /* margin-top: -33px; */
}

/* From Uiverse.io by andrew-demchenk0 */
.info {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    width: 100%;
    padding: 12px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;

    border-radius: 8px;
    box-shadow: 0px 0px 5px -3px #111;
}

.inf-1 {
    background: #509AF8;
}

.inf-2 {
    background: #f85059;
}

.info__icon {
    width: 20px;
    height: 20px;
    transform: translateY(-2px);
    margin-right: 8px;
}

.info__icon path {
    fill: #fff;
}

.info__title {
    font-weight: 500;
    font-size: 14px;
    color: #fff;
}

.info__close {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin-left: auto;
}

.info__close path {
    fill: #fff;
}


.filtersss {
    border: 1px solid #BD9F67;
    border-radius: 5px;
}

.filter-input-group {
    width: 100%;
    margin: 9px 0px;
}

.filter-head {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    width: 100%;
    padding: 8px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    background: #509AF8;
    border-radius: 4px;
    box-shadow: 0px 0px 5px -3px #111;
    color: #FFF;
}

/* Styling for the input field */
#part_number {
    padding: 12px;
    width: 80%;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: border-color 0.3s ease;
}

/* Focus effect on the input */
#part_number:focus {
    border-color: #4CAF50;
    outline: none;
}

/* Recommendations section style */
#recommendations {
    margin-top: 20px;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.product {
    margin-bottom: 10px;
}

.product-link-from-search {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    display: block;
    padding: 8px;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.product-link-from-search:hover {
    background-color: #f1f1f1;
    color: #4CAF50;
}

.product-link-from-search span {
    margin-right: 5px;
}

.manuf-name {
    font-weight: bold;
    color: #555;
}

.part-number {
    color: #777;
}

/* Loader styles */
#loader {
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner {
    border: 4px solid #f3f3f3;
    /* Light grey */
    border-top: 4px solid #4CAF50;
    /* Green */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

/* Spinner animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
