.add-product-container{
    padding: 2px 20px;
    margin-bottom: 20px;
}

/* Product form workspace --------------------------------------------------
   Uses the platform palette: navy #00517B, teal #03A1AA, coral #EE776A. */
.product-kind-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 14px;
    margin-bottom: 12px;
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
}

.product-kind-toolbar--readonly {
    align-items: center;
}

.product-kind-selector {
    flex: 1 1 auto;
}

.product-kind-selector--readonly {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-kind-chip {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #fff;
    color: #344054;
    font-weight: 600;
}

.product-kind-chip.is-active {
    border-color: #00517B;
    background: rgba(0, 81, 123, 0.07);
    color: #00517B;
    box-shadow: 0 0 0 1px #00517B;
}

.product-kind-selector .cs-field,
.product-usage-selector .cs-field {
    margin-bottom: 0;
}

.product-kind-selector .cs-radio-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(110px, 150px));
    gap: 8px;
}

.product-kind-selector .cs-radio--card {
    min-height: 42px;
    justify-content: flex-start;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    color: #344054;
    font-weight: 600;
    box-shadow: none;
}

.product-kind-selector .cs-radio--card:hover {
    border-color: #03A1AA;
    background: rgba(3, 161, 170, 0.04);
}

.product-kind-selector .cs-radio--card:has(input:checked) {
    border-color: #00517B;
    background: rgba(0, 81, 123, 0.07);
    color: #00517B;
    box-shadow: 0 0 0 1px #00517B;
}

.product-kind-selector .cs-radio--card input {
    accent-color: #00517B;
}

.product-usage-selector {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.product-usage-selector .form-check-label {
    color: #344054;
    font-size: 12px;
}

.product-usage-control,
.product-usage-static {
    width: 100%;
}

.product-usage-static {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #f9fafb;
    color: #475467;
}

.product-usage-static--readonly {
    border-radius: 8px;
    background: #f9fafb;
    color: #101828;
    font-weight: 600;
}

.product-create-overview {
    padding: 0;
}

.product-create-workspace.product-data-container {
    display: grid;
    grid-template-columns: minmax(320px, 38%) minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
    justify-content: stretch;
    width: 100%;
}

.product-create-workspace.product-data-container .product-media-card.product-images-container,
.product-create-workspace.product-data-container .product-essential-card.product-description-container {
    width: auto;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.product-section-heading {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eaecf0;
}

.product-section-heading span {
    color: #00517B;
    font-family: Poppins, sans-serif;
    font-size: 16px;
    font-weight: 700;
}

.product-section-heading small {
    color: #667085;
    font-family: Poppins, sans-serif;
    font-size: 11px;
}

.product-create-workspace .product-media-primary {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.product-create-workspace .image-slider-block {
    width: 100%;
    height: 270px;
    border: 1px dashed #98a2b3;
    border-radius: 8px;
    background: #f9fafb;
}

.product-create-workspace .image-slider-block:hover {
    border-color: #03A1AA;
    background: rgba(3, 161, 170, 0.04);
}

.product-create-workspace .product-media-card .image-items-block {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

/* Media thumbnail strip: keep 6 slots readable on narrower widths by
   wrapping into rows instead of squeezing all six onto one line.
   Grid is writing-direction-agnostic, so RTL mirrors automatically. */
@media (max-width: 900px) {
    .product-create-workspace .product-media-card .image-items-block {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .product-create-workspace .product-media-card .image-items-block {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.product-create-workspace .image-items-block .img-item,
.product-create-workspace .image-items-block .small-img {
    width: 100% !important;
    height: 72px !important;
    border-radius: 6px;
}

.product-create-workspace .item-cover-label {
    left: 50%;
    justify-content: center;
    border-radius: 0;
    padding-left: 0;
    background: #03A1AA;
}

.product-create-workspace .add-media-link-box {
    width: 100%;
}

.product-create-workspace .add-media-link-box .d-flex {
    align-items: stretch !important;
}

.product-create-workspace .product-title-header {
    color: #00517B;
}

.product-title-display {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-field-label {
    display: block;
    margin-bottom: 6px;
    color: #344054;
    font-family: Poppins, sans-serif;
    font-size: 12px;
    font-weight: 600;
}

.product-create-workspace .input-text-header-title {
    min-height: 72px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #fff;
    color: #00517B;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.product-create-workspace .input-text-header-title:focus,
.product-create-workspace .input-text:focus {
    border-color: #00517B;
    box-shadow: 0 0 0 3px rgba(0, 81, 123, 0.12);
}

.product-create-workspace .product-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
}

.product-create-workspace .product-fields-grid--secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
    margin-top: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.product-create-workspace .product-fields-grid--secondary .pricing-element {
    padding: 0;
}

.product-create-workspace .product-fields-grid--secondary .pricing-element:nth-child(5) {
    grid-column: span 2;
}

.product-create-workspace .product-fields-grid--secondary .pricing-element:has(.checkbox-container) {
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.product-create-workspace .product-fields-grid--secondary .pricing-element:has(.checkbox-container) .label-wid {
    display: block;
    width: 100%;
    max-width: none !important;
    min-height: 20px;
    line-height: 20px;
    white-space: nowrap;
}

.product-create-workspace .product-fields-grid--secondary .pricing-element:has(.checkbox-container) .checkbox-container {
    width: 100%;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #fff;
    box-sizing: border-box;
}

.product-create-workspace .product-fields-grid--secondary .pricing-element:has(.checkbox-container) .cs-field.cs-field--bare {
    margin-bottom: 0;
}

.product-create-workspace .product-fields-grid--secondary .pricing-element:has(.checkbox-container) .cs-radio-group {
    width: auto;
    height: auto;
    display: flex;
    flex-wrap: nowrap;
    gap: 18px;
}

.product-create-workspace .product-fields-grid--secondary .pricing-element:has(.checkbox-container) .cs-radio {
    width: auto;
    height: auto;
    justify-content: center;
    padding: 2px 4px;
    border-radius: 4px;
    box-sizing: border-box;
    transition: background-color 0.15s, color 0.15s;
}

.product-create-workspace .product-fields-grid--secondary .pricing-element:has(.checkbox-container) .cs-radio:has(input:checked) {
    background: transparent;
    color: #00517B;
}

.product-create-workspace .product-fields-grid > .pricing-block-title {
    grid-column: 1 / -1;
    padding-bottom: 6px;
    border-bottom: 1px solid #eaecf0;
}

.product-create-workspace .pricing-element {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    margin: 0;
}

.product-create-workspace .pricing-element .label-wid {
    min-width: 0;
    color: #344054;
    font-size: 12px;
    font-weight: 600;
}

.product-create-workspace .pricing-element .input-text,
.product-create-workspace .pricing-element .cs-field,
.product-create-workspace .pricing-element .select2-container {
    width: 100% !important;
    min-width: 0;
}

.product-create-workspace .pricing-element .input-text {
    height: 42px !important;
    padding: 0 12px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #fff;
    color: #344054;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.product-show-value {
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #f9fafb;
    color: #101828;
    font-weight: 500;
    box-sizing: border-box;
}

.product-show-value--multiline {
    min-height: 72px;
    align-items: flex-start;
    white-space: normal;
    word-break: break-word;
}

.product-show-choice-group {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.product-show-choice {
    min-width: 72px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border: 1px solid #d0d5dd;
    border-radius: 999px;
    background: #fff;
    color: #475467;
    font-weight: 600;
}

.product-show-choice.is-active {
    border-color: #00517B;
    background: rgba(0, 81, 123, 0.08);
    color: #00517B;
}

.product-create-workspace .hr-wrapper {
    display: none;
}

.product-create-workspace .checkbox-container {
    min-height: 42px;
    padding: 7px 10px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #f9fafb;
}

@media (max-width: 1100px) {
    .product-kind-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .product-usage-selector {
        flex-basis: auto;
        max-width: 420px;
    }

    .product-create-workspace.product-data-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .product-kind-selector .cs-radio-group,
    .product-create-workspace .product-fields-grid {
        grid-template-columns: 1fr;
    }

    .product-create-workspace .product-fields-grid--secondary .pricing-element:nth-child(5) {
        grid-column: span 1;
    }

    .product-kind-toolbar,
    .product-create-workspace .product-media-card,
    .product-create-workspace .product-essential-card {
        padding: 14px;
    }
}
.add-product-container-service{
    padding: 2px 20px;
    width: 90%;
    margin: auto;
}
.prod-details-block-container{
    padding: 2px 20px;
    margin-bottom: 20px;
}

/* Nested tabs: primary row (Details, Supplier, …) + secondary row inside Details */
.prod-details-block-container .product-details-subtabs-wrap {
    margin: 0 0 4px;
    overflow-x: auto;
    overflow-y: hidden;
    border-bottom: 1px solid #e8ecf1;
}

.prod-details-block-container .product-details-subtabs {
    flex-wrap: wrap;
    min-width: 0;
    gap: 8px 12px;
    border-bottom: none !important;
    margin-bottom: 0;
}

.prod-details-block-container .product-details-subtabs .nav-item {
    flex: 0 0 auto;
}

.prod-details-block-container .product-details-subtabs .nav-link {
    padding: 10px 14px !important;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    border: 1px solid transparent !important;
    border-radius: 8px 8px 0 0 !important;
    background: transparent;
}

.prod-details-block-container .product-details-subtabs .nav-link:hover {
    color: #00517b;
    background: rgba(0, 81, 123, 0.06);
}

.prod-details-block-container .product-details-subtabs .nav-link.active {
    color: #00517b;
    font-weight: 600;
    background: #f0f7fa;
    border-color: #cce3eb !important;
    border-bottom-color: transparent !important;
    box-shadow: 0 -1px 0 0 #f0f7fa inset;
}



.checkbox-container{
    display: flex;
    align-items: center;
    gap: 30px;

}

/* Ensure the radio button and label are inline */
.checkbox-container .form-check {
    display: flex;
    align-items: center;
    margin-bottom: 10px; /* Optional for spacing */
}

/* Hide the default radio appearance */
.custom-radio {
    appearance: none;
    width: 16px; /* Increase radio button size */
    height: 16px;
    border: 1px solid #00517B;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    outline: none;
    margin-right: 10px; /* Spacing for the label */
    background-color: white;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Style when the radio button is checked */
.custom-radio:checked {
    background-color: white;
    border-color: #00517B;
}

/* Inner checkmark circle when radio is checked */
.custom-radio:checked::after {
    content: '';
    width: 12px; /* Adjusted for larger inner circle */
    height: 12px;
    background-color: #00517B; /* Inner circle color */
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Center the inner circle */
}

/* For hover effect */
.custom-radio:hover {
    border-color: #003B59;
}
.form-check-label{
    color: #00517B;
font-family: Poppins;
font-size: 14px;
font-style: normal;
font-weight: 500;
line-height: normal;
}

.product-service-container{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.product-service-container .product-images-container{
    width: 60%;
    display: flex;
    align-items: center;
    gap: 40px;
}
.product-service-container .product-description-container{
    width: 40%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.product-data-container{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}
.product-data-container .product-images-container{
    position: relative;
    width: 60%;
    display: flex;
    align-items: center;
    gap: 40px;
}

.product-images-container .image-items-block{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.product-data-container .product-description-container{
    width: 40%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.image-slider-block {
    position: relative;
    width: 60%;
    height: 376px;
    flex-shrink: 0;
    background: #EAECF0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden; /* Ensures the image doesn't overflow */
    position: relative; /* Allows the image to be absolutely positioned */
}

.icon-empty-img {
    width: 72px !important;
    height: 72px !important;
    flex-shrink: 0 !important;
}

/* For the uploaded image */
.main-slider-img.uploaded {
    width: 100% !important;
    height: 100% !important;
    object-fit: fill !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
}


#mainImage.uploaded {
    width: 100% !important; /* Make the uploaded image take full width */
    height: 100% !important; /* Make the uploaded image take full height */
    object-fit: fill !important; /* Ensure the image is cropped properly while maintaining its aspect ratio */
    position: absolute !important; /* Position the uploaded image absolutely within the parent container */
    top: 0 !important;
    left: 0 !important;
}

#mainImage.uploaded {
    width: 100% !important;  /* Full width */
    height: 100% !important; /* Full height */
    object-fit: fill !important; /* Crop the image while keeping the aspect ratio */
    position: absolute !important; /* Absolute positioning within the parent */
    top: 0 !important;
    left: 0 !important;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transform: translateY(-50%);
    padding: 0;
    z-index: 1;
}

#prevBtn {
    left: 10px;
}

#nextBtn {
    right: 10px;
}



.image-slider-block span{
    margin: 0;
    color: #667085;
    text-align: center;
    font-family: Poppins;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 14px; /* 100% */
}
.image-slider-block-service{
    width: 90%;
    height: 376px;
    flex-shrink: 0;
    background: #EAECF0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.image-slider-block-service img{
    width: 72px;
    height: 72px;
    flex-shrink: 0;
}
.image-slider-block-service span{
    margin: 0;
    color: #667085;
    text-align: center;
    font-family: Poppins;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 14px; /* 100% */
}
.image-items-block .img-item{
    position: relative;
    width: 100%; /* Change to percentage */
    height: 75px;
    flex-shrink: 0;
    background: #6C727F;
    overflow: hidden;
    cursor: pointer;

}
.img-item{
    width: 20%; /* Change to percentage */
    height: 75px;
}

.img-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-item .delete-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    display: none; /* Initially hidden */
    cursor: pointer;
}

.img-item:hover {
    background: rgba(0, 0, 0, 0.8); /* Transparent black background on hover */
}

.img-item:hover .delete-icon {
    display: block; /* Show the delete icon on hover */
}

.img-item:hover img {
    opacity: 0.4; /* Dim the image on hover */
}
.first-img-item {
    border: 4px solid #03A1AA !important; /* Adjusted green border thickness */

}

.item-cover-label {

    position: absolute;
    bottom: 1px;
    left: 80%;
    transform: translateX(-50%);
    background-color: #03A1AA;
    color: white;
    font-size: 10px;
    font-weight: bold;
    border-top-left-radius: 11px;
    display: flex;
    align-items: center;
    width: 100%;
    padding-left: 10px;
    padding-top: 1px;
}
.product-title-header{
    margin: 0;
    color: #00517B;
    font-family: Poppins;
    font-size: 22px;
    font-style: normal;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.2px;
    display: block;
    width: 100%;
    max-width: 100%;
}

.product-availability{
    color: var(--second-text-color, #737373);

/* h6 */
font-family: Montserrat;
font-size: 14px;
font-style: normal;
font-weight: 700;
line-height: 24px; /* 171.429% */
letter-spacing: 0.2px;
}

/* .labels-block{
    display: flex;
    flex-direction: column;
    gap: 10px;
} */
.pricing-block{
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.pricing-block-title{
    margin: 0;
    color: #00517B;
    font-family: Poppins;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 22px; /* 157.143% */
    letter-spacing: 0.2px;
}
.pricing-element{
    color: #667085;
    font-family: Poppins;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 22px;
    letter-spacing: 0.2px;

    display: flex;
    align-items: center;
    gap: 20px;
}
.pricing-element .label-wid{
    min-width: 140px;
}
.pricing-element .price-lbl-create{
    color: #667085;
    font-family: Poppins;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 22px;
    letter-spacing: 0.2px;
}
.pricing-element .price-lbl{
    color: #03A1AA;
    font-family: Poppins;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 22px;
    letter-spacing: 0.2px;
}
.pricing-element .lbl-item{
    color: #667085;
    font-family: Poppins;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px;
    letter-spacing: 0.2px;
}

.selct-min-w{
    min-width: 172px;
}
.product-description-container hr{

        width: 100%;
        max-width: 100%;

}

/* Title preview (e.g. catalogue card) — respect line breaks from textarea */
#product-title-preview {
    white-space: pre-line;
}

.input-text-header-title {
    border: none;
    background-color: #F3F4F6;
    font-family: Poppins;
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 88px;
    padding: 10px 12px;
    margin: 0;
    outline: none; /* Remove outline on focus */
    color: #00517B;
    font-family: Poppins;
    font-size: 22px;
    font-style: normal;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.2px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    resize: vertical;
    box-sizing: border-box;

     /* Add bottom border */
     border-bottom: 1px solid #B9B9C3; /* Border color and thickness */

     /* Add shadow effect */
     box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); /* Subtle shadow */

}

textarea.input-text-header-title {
    min-height: 88px;
}
.input-text {
    border: none;
    background-color: #F3F4F6;
    font-family: Poppins;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px;
    color: #667085;
    width: 200px;
    padding: 0;
    margin: 0;
    outline: none; /* Remove outline on focus */
    padding-left:3px;

     /* Add bottom border */
     border-bottom: 1px solid #B9B9C3; /* Border color and thickness */

     /* Add shadow effect */
     box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.input-text-tabs {
    border: none;
    background-color: #F3F4F6;
    font-family: Montserrat;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    color: #667085;
    width: 100%;
    padding: 0;
    margin: 0;
    outline: none; /* Remove the outline when the input is focused */
    padding-left:3px;

     /* Add bottom border */
     border-bottom: 1px solid #B9B9C3; /* Border color and thickness */

     /* Add shadow effect */
     box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.price-lbl-create.input-text {
    color: #667085;
    font-weight: 500;
}

.stock-lbl.input-text{
    color: #EE776A;

/* h6 */
font-family: Montserrat;
font-size: 14px;
font-style: normal;
font-weight: 700;
line-height: 24px; /* 171.429% */
letter-spacing: 0.2px;
}
.navs-block{
    padding-top: 5px;
    height: 60px;
    border-top: 1.5px #B9B9C3 solid;
    margin: auto;

}

/* General styling for all nav links (non-active state) */
.nav-tabs {
    display: flex;
    gap: 50px;
}
.nav-tabs .nav-item .nav-link {

    color: #667085;
    text-align: center;
    font-family: Montserrat;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px; /* 171.429% */
    letter-spacing: 0.2px;
    background: transparent;

    height: 39px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px;
    border: none; /* No border when not active */
    transition: background-color 0.3s, color 0.3s;


}

/* Style for the active tab */
.nav-tabs .nav-item .nav-link.active {
    color: #00517B;
    font-weight: 700;
    background: #FFF; /* You can change the background as needed */
    border: none; /* Remove all borders except the bottom */
    border-bottom: 3px solid #00517B; /* Only bottom border when active */
    border-radius: 0; /* No border radius for a flat bottom effect */
    padding: 24px; /* Custom padding */
    justify-content: center;
    align-items: center;
    gap: 8px;
}

/* Hover state */
.nav-tabs .nav-item .nav-link:hover {
    background: #FFF;
    color: #667085;
    border-bottom: none; /* No bottom border on hover when not active */
}

.prod-block-description{
    padding-left: 10%;
    padding-right: 10%;
}
.description-prod-item{
    display: flex;
    padding: 20px;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
    border-bottom: 1px solid #B9B9C3;
}
.description-prod-item .item-title{
    width: 20%;
    flex-shrink: 0;
    color: var(--second-text-color, #737373);
    font-family: Poppins;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px; /* 142.857% */
    letter-spacing: 0.2px;
}
.description-prod-item .item-contenu{
    display: flex;
    gap: 10px;
    width: 80%;
    color: #667085;
    flex-wrap: wrap;
    /* paragraph */
    font-family: Montserrat;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px; /* 142.857% */
    letter-spacing: 0.2px;
}

.btn-save-orange img{
width: 15px;
height: 15px;
flex-shrink: 0;
margin: 0px !important;
}
.btn-save-blue-1 img{
width: 15px;
height: 15px;
flex-shrink: 0;
}
.save-prod-btn{
    display: flex;
    justify-content: flex-end;
    width: 100%;
}
.btn-save-orange{

    height: 30px;
    border-radius: 8px;
    border: 1px solid var(--Rouge, #EE776A);
    background: #EE776A;
    box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.05);
    color: #FFFFFF;
    cursor: pointer;
    color: #FFF;
    font-family: Poppins;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    text-align: center;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.btn-save-blue-1{

    height: 30px;
    border-radius: 8px;
    border: 1px solid #03A1AA;
    background: #03A1AA;
    box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.05);
    color: #FFFFFF;
    cursor: pointer;
    color: #FFF;
    font-family: Poppins;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    text-align: center;
    padding: 5px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-save-orange:hover {
    background-color: #cc6356; /* Darker background on hover */
    border-color: #cc6356; /* Darker border on hover */
  }

  .btn-save-orange:active {
    background-color: #b54d43; /* Even darker on click */
    border-color: #b54d43;
  }

  .btn-save-orange:focus {
    outline: none; /* Remove focus outline */
  }

/* Cancel + Save in product create/duplicate: equal width (matches the wider control) */
#productForm .product-form-cancel-save-group {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
    vertical-align: middle;
}
#productForm .product-form-cancel-save-group > .btn-prod-form-cancel,
#productForm .product-form-cancel-save-group > .btn-save-orange {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
}

  .small-img{
    height: 75px !important;
    width: 100px !important;
  }


  .file-tag-item-static {
    display: flex;
    padding: 2px 8px 2px 6px;
    justify-content: center;
    align-items: center;
    gap: 6px;
    border-radius: 16px;
    background: #D9D9D9;
    width: fit-content;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-decoration:none;
    cursor: pointer;
  }

  .file-tag-item-static label {
    color: #00517B;
    text-align: center;
    font-family: Inter, sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 18px; /* 150% */
    transition: color 0.3s ease; /* Smooth transition for text color */
    cursor: pointer;
  }



  /* Hover effect for the entire item */
  .file-tag-item-static:hover  {
    background-color: #EE776A;
    cursor: pointer;
  }

  .file-tag-item-static:hover label {
    color: #FFF;
    cursor: pointer;
  }


  .primary-tag-item-static {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 8px;
    border-radius: 16px;
    background: rgba(3, 161, 170, 0.10);;
    width: fit-content;
    position: relative;
    transition: background-color 0.3s ease;
  }

  /* Label styles */
  .primary-tag-item-static label {
    color: #00517B;
    font-family: Inter, sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
    transition: color 0.3s ease;
  }

  .primary-tag-item-static img{
    width: 15.5px;
    height: 15.5px;
  }


  .primary-tag-item-main-img {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 8px;
    border-radius: 16px;
    background: #174f6bd6 ;
    width: fit-content;
    z-index: 1;
    transition: background-color 0.3s ease;
    position: absolute;
    top: -1px;

  }

  /* Label styles */
  .primary-tag-item-main-img label {
    color: #FFF;
    font-family: Inter, sans-serif;
    font-size: 10px;
    font-weight: 500;
    line-height: 12px;
    transition: color 0.3s ease;
  }









/* --- Pack composition (product edit/create) & Add products modal --- */
.pack-composition-container {
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

/* Pack BOM card: undo global .card-container overflow/min-height */
.pack-composition-container .pack-composition-bom-card.card-container {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0 !important;
    height: auto !important;
    overflow: visible;
}

.pack-composition-container .pack-composition-bom-card .pack-composition-table-scroll {
    flex: 0 1 auto;
    min-height: 0;
    width: 100%;

}

/* Scrollable BOM: header row stays visible; only content scrolls inside this box (sticky th, not sticky tbody cells) */
.pack-composition-container .pack-composition-table-scroll.pack-composition-table-wrap {
    max-height: min(440px, 58vh);
    overflow-x: auto;
    overflow-y: auto;
    border: 1px solid #eaecf0;
    border-radius: 8px;
    background: #fff;
    -webkit-overflow-scrolling: touch;
    isolation: isolate;
}

.pack-composition-container .pack-composition-table-scroll .pack-composition-bom-table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    table-layout: fixed;
    width: 100% !important;
    margin-bottom: 0 !important;
}

/* Global .fix-row-tbl uses top:40px for filter tables — disable row stickiness; stick each th at 0 */
.pack-composition-container .pack-composition-table-scroll .pack-composition-bom-table thead tr.fix-row-tbl,
.pack-composition-container .pack-composition-table-scroll .pack-composition-bom-table thead tr.header-row {
    position: static !important;
    top: auto !important;
    z-index: auto !important;
}

.pack-composition-container .pack-composition-table-scroll .pack-composition-bom-table thead th {
    position: sticky !important;
    top: 0 !important;
    z-index: 25 !important;
    background: #f8fafc !important;
    color: #344054 !important;
    font-weight: 600 !important;
    border-bottom: 2px solid #eaecf0 !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
    vertical-align: middle;
}

/* dataTable-global: tbody td:first-child { position:sticky } hides header — reset for BOM */
.pack-composition-container .pack-composition-table-scroll .pack-composition-bom-table tbody td,
.pack-composition-container .pack-composition-table-scroll .pack-composition-bom-table tbody th {
    position: static !important;
    z-index: 0 !important;
    background: #fff !important;
}

.pack-composition-container .pack-composition-table-scroll .pack-composition-bom-table tbody td:first-child {
    position: static !important;
    top: auto !important;
    width: auto !important;
    min-width: 180px !important;
    max-width: none !important;
    text-align: left !important;
    z-index: auto !important;
}

.pack-composition-container .pack-composition-table-scroll .pack-composition-bom-table tbody tr:hover td {
    background: #f9fafb !important;
}

.pack-composition-toolbar {
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

.pack-composition-title {
    color: #101828;
    font-family: Poppins, sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
}

/* Pack composition nav tab (edit / create / duplicate / show) */
a.nav-link[href="#pack-composition"] {
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pack-add-products-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    min-height: 40px;
    border-radius: 10px;
    border: 1px solid #03a1aa;
    background: #03a1aa;
    color: #fff;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
    position: static !important;
    margin: 0 !important;
    margin-inline-start: auto !important;
}

.pack-add-products-btn:hover {
    background: #028f98;
    border-color: #028f98;
    color: #fff;
}

.pack-add-products-btn:focus-visible {
    outline: 2px solid #7dd3d8;
    outline-offset: 2px;
}

/* Google Material Icons — add_circle */
.pack-add-products-btn-icon.material-icons {
    flex-shrink: 0;
    font-size: 22px;
    width: 22px;
    height: 22px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.pack-composition-container .pack-composition-table-wrap {
    overflow-x: auto !important;
    overflow-y: visible !important;
    max-height: none;
    -webkit-overflow-scrolling: touch;
}

/*
 * Pack BOM uses the same .custom-table classes as listing tables. Global DataTable styles force the
 * first column to 44px (checkbox) and sticky positioning, which collapses the product title column,
 * misaligns headers vs cells, and clips the first body row. Reset to a normal table for this block only.
 */
.pack-composition-container .pack-composition-table-wrap.table-wrapper-prod tbody {
    display: table-row-group !important;
    max-height: none !important;
    overflow-y: visible !important;
    overflow-x: visible !important;
    width: 100%;
}

.pack-composition-container .pack-composition-table-wrap.table-wrapper-prod thead tr,
.pack-composition-container .pack-composition-table-wrap.table-wrapper-prod tbody tr {
    display: table-row !important;
    width: auto !important;
    table-layout: auto !important;
}

.pack-composition-container .pack-composition-table-wrap.table-wrapper-prod:not(.pack-composition-table-scroll) .pack-composition-bom-table {
    table-layout: auto;
    width: 100%;
}

/* Non-scroll BOM (legacy): keep thead static so listing-style globals don’t clip columns */
.pack-composition-container .pack-composition-table-wrap:not(.pack-composition-table-scroll) .pack-composition-bom-table thead,
.pack-composition-container .pack-composition-table-wrap:not(.pack-composition-table-scroll) .pack-composition-bom-table thead th {
    position: static !important;
}

.pack-composition-container .pack-composition-table-wrap:not(.pack-composition-table-scroll) .pack-composition-bom-table thead tr.fix-row-tbl {
    position: static !important;
    top: auto !important;
}

.pack-composition-container .pack-composition-bom-table thead th:first-child,
.pack-composition-container .pack-composition-bom-table tbody td:first-child {
    width: auto !important;
    min-width: 180px !important;
    max-width: none !important;
    text-align: left !important;
}

.pack-composition-container .pack-composition-table-wrap:not(.pack-composition-table-scroll) .pack-composition-bom-table thead th:first-child,
.pack-composition-container .pack-composition-table-wrap:not(.pack-composition-table-scroll) .pack-composition-bom-table tbody td:first-child {
    position: static !important;
}

.pack-composition-container .pack-composition-bom-table tbody td,
.pack-composition-container .pack-composition-bom-table tbody th {
    max-width: none !important;
    vertical-align: middle;
}

.pack-composition-bom-table .pack-col-product {
    min-width: 180px;
    width: 28%;
}

.pack-composition-bom-table .pack-col-item-code {
    width: 120px;
    min-width: 96px;
}

.pack-composition-bom-table .pack-col-erp-code {
    width: 120px;
    min-width: 96px;
}

.pack-composition-bom-table .pack-col-sku {
    width: 120px;
    min-width: 96px;
}

.pack-composition-bom-table .pack-col-qty {
    width: 150px;
    min-width: 130px;
    white-space: nowrap;
}

.pack-composition-bom-table .pack-col-actions {
    width: 120px;
    min-width: 110px;
}

.pack-composition-bom-table .pack-col-product-cell,
.pack-composition-bom-table .pack-col-item-code-cell,
.pack-composition-bom-table .pack-col-erp-cell,
.pack-composition-bom-table .pack-col-sku-cell {
    text-align: left !important;
}

.pack-composition-bom-table .pack-col-qty-cell {
    text-align: center !important;
}

.pack-composition-bom-table .pack-qty-input {
    max-width: 120px;
    margin-left: auto;
    margin-right: auto;
}

.pack-composition-bom-table .primary-product-title {
    display: inline-block;
    max-width: 100%;
    padding: 4px 2px;
    line-height: 1.35;
    word-break: break-word;
}

#packAddProductModal .modal-dialog.pack-add-product-modal-dialog {
    max-width: min(1240px, calc(100vw - 2rem)) !important;
    width: min(1240px, calc(100vw - 2rem)) !important;
    margin: 1.25rem auto;
}

#packAddProductModal .modal-content.pack-add-product-modal-content,
#packAddProductModal .pack-add-product-modal-content {
    display: flex;
    flex-direction: column;
    min-height: min(420px, 55vh);
    max-height: min(88vh, 920px);
}

#packAddProductModal .modal-footer.pack-bom-bulk-bar {
    flex-shrink: 0;
}

#packAddProductModal .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#packAddProductModal .tab-content,
#packAddProductModal #packAddProductTabExisting {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

#packAddProductModal #packAddProductTabExisting .card-container {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* Pack add-products modal: table-wrapper-prod (order-style layout; scroll on wrapper, not DataTables scrollX/Y) */
#packAddProductModal .pack-add-modal-table-wrapper {
    border-radius: 8px;
    border: 1px solid #eaecf0;
    background: #fff;
}

#packAddProductModal #pack-modal-add-product-table tbody td {
    max-width: none !important;
}

#packAddProductModal .dataTables_wrapper {
    padding-bottom: 8px;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/*
 * Pack modal pager: attached left+right segments centered as one unit (dataTable-global pattern).
 */
#packAddProductModal .modal-body .card-container > .pagination-container,
#packAddProductModal .pagination-container {
    display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: visible;
    margin-top: 0 !important;
    padding-top: 1rem;
    padding-bottom: 6px;
    position: static !important;
    z-index: auto !important;
    background: #fff;
}

#packAddProductModal .modal-body .card-container > .pagination-container {
    flex: 0 0 auto;
    border-top: 1px solid #eaecf0;
}

#packAddProductModal .pagination-container .pagination-left {
    width: auto !important;
    min-width: 0;
    flex: 0 1 auto;
    height: auto !important;
    min-height: 34px;
    justify-content: flex-start !important;
    padding: 5px 10px;
    gap: 8px;
    border-radius: 8px 0 0 8px;
    border: 1px solid #eaecf0;
    background: #fff;
}

#packAddProductModal .pagination-container .pagination-right {
    flex: 0 0 auto;
    margin-left: 0 !important;
    width: auto !important;
    border-radius: 0 8px 8px 0;
    border: 1px solid #eaecf0;
    border-left: none;
    background: #fff;
}

#packAddProductModal .pagination-container ul.pagination {
    margin-bottom: 0;
}

#packAddProductModal .pagination-container .dataTables_length {
    width: auto;
}

#packAddProductModal .pagination-container .dataTables_length label {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 0;
    font-weight: 500;
    line-height: 1.3;
    white-space: normal;
}

#packAddProductModal .pagination-container .dataTables_length select {
    flex-shrink: 0;
    min-width: 4.25rem;
}

