﻿/* #region Sprite Icons CSS */

.icon-catalogue {
    border: none !important;
    cursor: pointer;
    margin-left: 5px !important;
    min-width: 24px !important;
    width: 24px;
    height: 24px !important;
    padding: 2px !important;
    background: url('../images/sprite-diastudio.png') no-repeat 0px 0px !important;
}

.icon-manual {
    border: none !important;
    cursor: pointer;
    margin-left: 5px !important;
    min-width: 24px !important;
    width: 24px;
    height: 24px !important;
    padding: 2px !important;
    background: url('../images/sprite-diastudio.png') no-repeat -24px 0px !important;
}

.icon-add {
    border: none !important;
    cursor: pointer;
    min-width: 24px !important;
    width: 24px;
    height: 24px !important;
    padding: 2px !important;
    background: url('../images/sprite-diastudio.png') no-repeat -48px 0px !important;
}

.icon-subtract {
    border: none !important;
    cursor: pointer;
    margin-left: 5px !important;
    min-width: 24px !important;
    width: 24px;
    height: 24px !important;
    padding: 2px !important;
    background: url('../images/sprite-diastudio.png') no-repeat -72px 0px !important;
}

.icon-info-circle {
    border: none !important;
    cursor: pointer;
    margin-left: 5px !important;
    min-width: 20px !important;
    width: 20px;
    height: 20px !important;
    padding: 2px !important;
    background: url('../images/sprite-diastudio.png') no-repeat -96px 0px !important;
}

.icon-expand {
    border: none !important;
    cursor: pointer;
    margin-left: 5px !important;
    min-width: 24px !important;
    width: 24px;
    height: 24px !important;
    padding: 2px !important;
    background: url('../images/sprite-diastudio.png') no-repeat -120px 0px !important;
}

.icon_collapse {
    border: none !important;
    cursor: pointer;
    margin-left: 5px !important;
    min-width: 24px !important;
    width: 24px;
    height: 24px !important;
    padding: 2px !important;
    background: url('../images/sprite-diastudio.png') no-repeat -148px 0px !important;
}

#icon-search {
    height: 32px;
    width: 32px;
    background: url('../images/sprite-diastudio.png') no-repeat 0px -48px !important;
}

.icon-compare {
    height: 24px;
    width: 24px;
    background: url('../images/sprite-diastudio.png') no-repeat -32px -48px !important;
}

#icon-cart {
    height: 32px;
    width: 32px;
    background: url('../images/sprite-diastudio.png') no-repeat -64px -48px !important;
}

#icon-signin {
    height: 32px;
    width: 32px;
    background: url('../images/sprite-diastudio.png') no-repeat -96px -48px !important;
}

#icon-globe {
    height: 32px;
    width: 32px;
    background: url('../images/sprite-diastudio.png') no-repeat -128px -48px !important;
}

#icon-settings {
    height: 32px;
    width: 32px;
    background: url('../images/sprite-diastudio.png') no-repeat -160px -48px !important;
}

#icon-bom {
    height: 32px;
    width: 32px;
    background: url('../images/sprite-diastudio.png') no-repeat 0px -80px !important;
}

/* #endregion */

/* specific for CardAccessoriesPanel */
/* Center the link in the page */

.col-flex {
    flex: 1; /* equal share for col2 and col4 */
}


.col1-left {
    display: flex;
    justify-content: flex-start; /* right align */
}

.col2 {
    display: flex;
    justify-content: flex-start; /* left align */
}

/* Column sizing */
.col-image {
    flex: 0 0 auto; /* fixed size for image */
    max-width: 200px;
    display: flex; /* make it a flex container */
    justify-content: center; /* center horizontally */
    align-items: center; /* center vertically */
    margin:2px;
}

.col-wide {
    flex: 2; /* takes 2/3 of remaining space */
}
/* Divider line */
.col {
    padding: 2px;
}
.col-divider {
    flex: 0 0 auto; /* don’t grow horizontally */
    align-self: stretch; /* force vertical stretch */
    border-left: 1px solid grey; /* crisp 1px line */
}
.col-rest {
    flex: 1; /* takes remaining 1/3 */
}

.border-gray {
    border-color: #ccc !important; /* light gray divider */
}
.col-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
}

.icon-close-marcom:hover {
    opacity: 0.8;
    outline:none;
}

.icon-close-marcom:focus {
    outline: none;
    box-shadow: 0 0 0 2px #0078d4; /* optional focus ring */
    outline:none;
}
.icon-close-marcom {
    position: absolute; /* take it out of flex flow */
    top: 4px; /* distance from top */
    right: 4px; /* distance from right */
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.two-by-two-grid {
    display: flex;
    flex-direction: column;
    gap: 8px; /* fixed spacing between rows */
    align-items: stretch;
}
.close-btn {
    position: absolute;
    top: 5px; /* distance from top */
    right: 5px; /* distance from right */
    z-index: 100; /* ensure it sits above other elements */
}
.col-left {
    flex: 1; /* NumericTextBox takes available space */
}

.col-right {
    flex: 0 0 auto; /* Button sizes to its content */
}

.grid-row {
    display: flex;
    align-items: center; /* vertical centering of label + dropdown */
    flex: 0 0 auto; /* don’t stretch vertically */
}

.grid-col {
    flex: 1; /* equal width columns */
    padding: 10px;
}
.grid-col.col1 {
    flex: 0 0 180px;
    display: flex; /* make it a flex container */
    justify-content: flex-end; /* keep horizontal alignment to the right */
    align-items: center; /* center vertically */
}
    .grid-col.col1-left {
        flex: 0 0 180px;
        display: flex; /* make it a flex container */
        justify-content: flex-start; /* keep horizontal alignment to the right */
        align-items: center; /* center vertically */
    }
    .grid-col.col2 {
        flex: 0 0 290px;
        display: flex; /* make it a flex container */
        justify-content: flex-start; /* keep horizontal alignment to the right */
        align-items: center; /* center vertically */
    }
    .grid-col.col{
        display:flex;
        justify-content:center;
        align-items:center;
    }
.form-label{
    min-width:180px;
}
/* Alignment rules */
.col1 {
    display: flex;
    justify-content: flex-end; /* right align content */
}

.col2 {
    display: flex;
    justify-content: flex-start; /* left align content */
}

/*ends for 24th Nov*/

.fixed-field {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 120px; /* fixes width */
}
.fixed-label-left{
    text-align: left;
}

.fixed-label-right {
    text-align: right;
}

.add-accessories-container {
    display: flex;
    justify-content: center;
    padding: 10px;
}
.accordion-inner-overflow {

    overflow-y: auto; /* add vertical scrollbar when content exceeds height */
    padding: 10px;
}
.card-accessory-wrapper {
    width: auto;
    border: 1px solid #ccc;
    padding: 10px !important; 
    padding-bottom:10px;
    position: relative;
    display: flex;
    flex-wrap:wrap;
    align-items: stretch; /* children stretch vertically */
    min-width:1100px;
    position: relative;
}
/* Anchor link styling */
.add-accessories-link {
    color: black; /* Bootstrap link color */
    text-decoration: underline;
    font-size: 18px; /* slightly larger for visibility */
    cursor: pointer;
    background: none; /* no background */
    border: none; /* no borders */
    padding: 0; /* no padding like a button */
    align-items:center;
}

    /* Hover effect */
    .add-accessories-link:hover {
        color: #0056b3; /* darker blue on hover */
    }

/* ends*/

/* #region Accordian CSS */
.accordion {
    width: 100%;
    min-height: 48px;
    border: 1px solid #D9D9D9;
    border-radius: 4px;
    background-color: white;
}

.accordion-item {
    border: none;
    border-radius: 4px;
    background-color: white;
}

.accordion-header {
    width: 100%;
    background-color: white;
    padding: 12px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: Roboto,Arial, Helvetica, sans-serif;
    font-weight: bold;
    font-style: normal;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.5%;
    vertical-align: middle;
    color: #333333;
    height: auto;
}

.accordion-arrow {
    transition: transform 0.3s ease;
    font-size: 14px;
}

    .accordion-arrow.expanded {
        transform: rotate(180deg);
    }

.accordion-content {
    overflow: hidden;
    height: 0;
    transition: height 0.3s ease-out;
}

.accordion-inner {
    padding: 10px;
    background: white;
}
.accessories-panel {
    /*padding: 10px;*/
    background: white;
    max-width:1200px;
    width:100% !important;
}

.accessories-panel-overflow {
    max-height: 540px;
    min-height: 20px;
    min-width: 1200px;
    overflow-y: auto; /* add vertical scrollbar when content exceeds height */
    /*padding: 10px;*/
}
.accessories-inner {
    transition: max-height 0.3s ease; /* smooth height change */
}
.accessories-inner {
    max-height:300px;
    /*padding: 10px;*/
    background: white;
}

.accessories-inner-overflow {
    overflow-y: auto; /* add vertical scrollbar when content exceeds height */
    /*padding: 10px;*/
}

.disabled {
    color: #aaa; /* greyed out */
    cursor: not-allowed; /* show disabled cursor */
    pointer-events: none; /* prevent clicks */
    opacity: 0.6; /* optional faded look */
}
/* #endregion */

/* #region AccordianSeries CSS */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive columns */
    gap: 0px;
    margin: 0; /* Optional: Remove default spacing */
    padding: 0; /* Optional: Remove padding if needed */
}
/* Responsive adjustment at same breakpoint */ 
@media screen and (max-width: 1440px) {
    .grid-row label {
        text-align: left;
    }
    .fixed-label-left {
        text-align: left; /* force left alignment */
    }
    .col-image {
        order: 1; /* move image to second position */
    }
    .col-divider {
        border-left: none; /* remove vertical line */
        border-top: 1px solid grey; /* horizontal line */
        width: 100%; /* span full width */
        height: 1px; /* crisp horizontal line */
        align-self: auto; /* reset stretch */
    }
    .accessories-panel,
    .accessories-inner-overflow,
    .card-accessory-wrapper,
    .accessories-inner,
    .accessories-inner-overflow {
        min-width:800px;
        max-width:880px;
    }
}

.product-card {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0; /* remove padding */
    margin: 0; /* remove margin */
    box-sizing: border-box;
}

/* Header Layout */
.header-text {
    display: flex;
    flex-direction: column;
}

/* Name Styling */
.header-name {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
}

/* Description Styling (Smaller Font) */
.header-description {
    font-size: 14px;
    color: #555;
    margin: 0;
}

/* Header Image */
.header-icon {
    width: 30px;
    height: 30px;
}

/* #endregion */
    
/* #region PanelFilter CSS */

.custom-slider {
    height: 75px;
}

.panelbar-template {
    padding: 20px;
    font-size: 1.2em;
    margin: 0 auto;
    width: 300px;
    text-align: center;
}

.edit-button {
    background-color: #0056b3;
    color: white;
}

    .edit-button:hover {
        background-color: darkblue;
    }

.save-button {
    background-color: #28a745;
    color: white;
}

    .save-button:hover {
        background-color: #218838;
    }

.reset-button {
    background-color: white;
    color: #00adef;
}

    .reset-button:hover {
        background-color: #5a6268;
    }

/* #endregion */


/* #region CardAccesory CSS */
.card-accesory-prod-img {
    width: 85px;
    height: 85px;
    object-fit: contain;
}

/* #endregion */

/* #region Compare CSS  */

.compare-modal-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(128, 128, 128, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.compare-modal {
    position: relative;
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    width: 90%;
    height: 90%;
    max-width: 1200px;
    max-height: 700px;
    overflow: visible;
}

.popup-content {
    max-height: calc(100% - 4rem);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 1rem;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

    .compare-table th,
    .compare-table td {
        border: 1px solid #ddd;
        padding: 8px;
        text-align: left;
        word-wrap: break-word;
    }

    .compare-table th {
        background-color: #f4f4f4;
        font-weight: bold;
    }

.compare-close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.5rem 1rem;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.highlight-row td:not(:first-child) {
    background-color: #fff8b3; /* light yellow */
}

/* #endregion */

/* #region CardProduct_1 CSS */

.series-product-desktop {
    border-color: #eee !important;
    border: solid;
    padding: 5px;
    margin-top: 5px;
    margin-bottom: 5px;
    min-height: 142px;
}

.row {
    display: flex; /* Use Flexbox */
    align-items: center; /* Vertically center the items */
}

.subrow {
    width: 100%;
}

.prod-img-desktop {
    width: 100%;
    max-width: 80px; /* Adjust as needed */
    height: auto;
    margin-top: 20px;
    margin-right: 20px;
    margin-left: 10px;
}

#add {
    width: 40px; /* Adjust width */
    height: 25px; /* Adjust height*/
    font-size: 14px; /* Adjust font size*/
}

.descript {
    font-size: 12px !important;
}

.bom {
    padding-left: 20px;
}

/* #endregion */

/* #region CardProduct_2 CSS */


.series-product-web {
    border-color: #eee !important;
    border: solid;
    padding: 0;
    min-height: 112px;
    width: 100%; /* Prevent overflow */
    overflow-x: hidden;
}

.row {
    display: flex; /* Use Flexbox */
    align-items: center; /* Vertically center the items */
}

/*.prod-img-web {
    padding: 10px;
    margin-right: 20px;
    margin-left: 20px;
    max-width: 160px;
}*/

.part-number {
    font-size: 16px;
}

.description {
    font-size: 12px;
}


/* #endregion */

/* #region CardProductType_2 CSS*/

.card-product-type {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

    .card-product-type:hover {
        background-color: #e9ecef;
    }

.icon-left {
    font-size: 1.5rem;
    color: #3b7ddd;
    margin-right: 15px;
}

.info-icon {
    font-size: 1.2rem;
    color: #6c757d;
}

.card-product-type-content {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.card-product-type-text {
    font-size: 1.0rem;
    margin: 0;
}


/* #endregion */

/* #region CardSeries_1 CSS */


.cardHF {
    border: none;
    background-color: white;
}

.cardStyle {
    transition: box-shadow 0.3s ease;
}

    .cardStyle:hover {
        box-shadow: 10px 10px 20px rgba(36, 36, 36, 0.5);
    }

        .cardStyle:hover .cardF, .cardStyle.hover .cardF {
            background: #00AEEF;
        }

.cardF {
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* #endregion */