/*======================================  PRICELIST MAIN PAGE =================================*/

.pricelist-main-page {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: stretch;
    height: calc(100vh - 8rem);
}

/*====================================== END OF PRICELIST MAIN PAGE =================================*/


/*====================================== PRICELIST MAIN GRID =================================*/

.pricelist-tag {
    padding: 0.4rem 0.375rem 1px;
    color: white;
    font-size: 0.875rem !important;
    height: 1.5rem;
    border-radius: 0.25rem;
    display: inline-block;
}

.ao-type-tag {
    background-color: var(--abs-light-purple) !important;
}

.private-type-tag {
    background-color: #F7CE5B !important;
}

/*====================================== END OF PRICELIST MAIN GRID =================================*/


/*====================================== PRICELIST DETAILS PAGE =================================*/

.pricelist-detail-page {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    height: calc(100vh - 8rem);
}

.price-list-article-grid td .picto-grid {
    margin-left: auto;
    margin-right: auto;
}

.price-list-article-grid tr:has(.non-referenced) .k-checkbox {
    display: none;
    pointer-events: none;
}

.price-list-article-grid.narrow-rows tbody tr td {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
}

.price-list-article-grid .cond-wrapper {
    transform: scale(0.85);
    max-height: 3.425rem;
}

.price-list-article-grid .technical-file-download {
    box-shadow: none !important;
}

.price-list-eco-labels {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.price-list-eco-labels img{
    max-width: 2.5rem;
    max-height: 2.5rem;
} 
.price-list-eco-labels div{
    width: 1.75rem;
    height: 1.75rem;
    justify-content: center;
    display: flex;
    align-items: center;
    border-radius: 50%;
    font-size: 0.75rem;
    line-height: 1rem;
    color: var(--white);
    background-color: var(--abs-secondary);
} 

.eco-labels-tooltip .k-tooltip {
    background-color: white !important;
    color: black;
    border: none !important;
    /*padding: 1rem;*/
    box-shadow: 0 1px 0.875rem rgba(0, 0, 0, 0.12);
}

.eco-labels-tooltip .k-tooltip .k-callout {
    display: none;
}

.eco-labels-tooltip .images-wrapper{
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    max-width: 18rem;
    flex-wrap: wrap;
}

.eco-labels-tooltip img{
    max-height: 5rem;
    max-width: 5rem;
}
/*====================================== END OF PRICELIST DETAILS PAGE =================================*/

/*====================================== PRICELIST SELECT PRODUCTS PAGE =================================*/

.pricelist-select-products-page {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    height: calc(100vh - 8rem);
}
.abena-v2-grid.price-list-select-grid tbody tr td{
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.price-list-select-grid .quantity-tag {
    height: 1.25rem !important;
}

.price-list-select-grid .cond-wrapper {
    transform: scale(0.85);
    height: 3.1875rem;
}



/*====================================== END OF PRICELIST SELECT PRODUCTS PAGE =================================*/

/*====================================== PRICELIST PAGE TITLE =================================*/

.pricelist-page-title {
    font-family: Gilroy-Bold;
    font-size: 2.5rem !important;
}

/*====================================== END OF PRICELIST PAGE TITLE =================================*/

/*====================================== PRICE LIST DETAILS =================================*/
.pricelist-name-title-input {
    height: fit-content !important;
    border-radius: var(--abena-v2-default-border-radius) !important;
}

.pricelist-name-title-input input{
    height: fit-content !important;
    font-family: Gilroy-Bold !important;
    color: var(--black);
    font-size: 2.5rem !important;
    padding: 0.25rem 0.125rem !important;
    background-color: var(--grid-header-bg);
}

.pricelist-details-info-button {
    box-shadow: none !important;
    padding: 0;
}

.pricelist-details-info-button > span{
    border-radius: var(--abena-v2-default-border-radius) !important;
    background-color: var(--grid-header-bg);
    padding: 0.5rem;
}

.pricelist-details-info-button .k-svg-icon {
    color: var(--abena-v2-primary) !important;
}

.hierarchy-tree-wrapper {
    padding: 1rem 1rem 0;
}
.hierarchy-tree-wrapper .k-treelist {
    padding-bottom: 1rem;
}
.hierarchy-tree-wrapper > div {
    box-shadow: 3px 4px 15.3px 4px rgba(0, 0, 0, 0.25);
    border-top-right-radius: var(--abena-v2-default-border-radius) !important;
    border-top-left-radius: var(--abena-v2-default-border-radius) !important;
    height: 100%;
}

.pricelist-details-badge .default-badge {
    width: 8rem !important;
}
.pricelist-details-badge .default-badge.customer.sold-to {
    background-color: var(--abena-v2-primary);
}

.pricelist-details-badge .pricelist-name {
    margin-left: -0.725rem;
    margin-top: -1rem;
    padding-bottom: 2.5rem;
}
/*====================================== END OF PRICE LIST DETAILS =================================*/


/*====================================== PRICELIST MODAL =================================*/

.abena-v2-modal-window.pricelist-modal .k-window-titlebar {
    padding-top: 2.125rem;
    padding-left: 2rem;
    padding-right: 2rem;
}
.abena-v2-modal-window.pricelist-modal .k-window-content {
    padding-left: 2.625rem;
    padding-right: 2.625rem;
}

.abena-v2-modal-window.pricelist-modal .default-badge {
        width: 8rem !important;
        font-size: 0.875rem !important;
        height: 1.5rem !important;
        line-height: 1.5rem !important;
}
.abena-v2-modal-window.pricelist-modal .default-badge.customer.sold-to {
    background-color: var(--abena-v2-primary);
}

.abena-v2-modal-window.pricelist-modal .pricelist-name {
    padding-bottom: 2.5rem;
}

/*====================================== END OF PRICELIST MODAL =================================*/


/*====================================== PRICELIST DATERANGE =================================*/

.pricelist-daterange-labels {
    display: flex;
    gap: 0.5rem;
}

.pricelist-daterange-labels > div {
    display: flex;
    flex-direction: column;
    width: 10em;
}

/*====================================== END OF PRICELIST DATERANGE =================================*/


.pricelist-picker .k-picker-outline {
    border:1px solid #ced4da !important;
    color: #212529;
}


/*====================================== PRICELIST UPLOAD CONTAINER =================================*/

.pricelist-upload-container {
    border: 2px dashed #ccc;
    border-radius: 8px;
    width: 200px;
    height: 200px;
    text-align: center;
    position: relative;
    background-color: #f9fafc;
}

.pricelist-upload-label {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.pricelist-upload-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--abena-v2-primary);
    gap: 4px;
}

.pricelist-upload-box p {
    color: var(--abena-v2-primary);
    margin: 0; 
    line-height: 1.2; 
}


.pricelist-image-preview-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.pricelist-image-preview {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 8px;
}

.pricelist-remove-button {
    position: absolute;
    top: 4px;
    right: 4px;
    background-color: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
    display: flex;
}

.pricelist-remove-icon {
    color: white;
    font-size: 16px;
    line-height: 1;
}

.pricelist-image-preview-wrapper:hover .pricelist-remove-button {
    display: block;
}

.pricelist-upload-icon {
    font-size: 40px;
    color: var(--abena-v2-primary);
    margin-bottom: 1rem;
}

/*====================================== END OF PRICELIST UPLOAD CONTAINER  =================================*/


/*====================================== PRICELIST TYPE CHANGE MODAL  =================================*/

.pricelist-typechange-modal-subtitle{
    padding-bottom: 2rem;
}

.pricelist-typechange-modal-info{
    color: var(--abena-v2-secondary);
}

/*====================================== END OF PRICELIST TYPE CHANGE MODAL   =================================*/


/*====================================== PRICELIST DETAILS MULTISELECT  =================================*/

.pricelist-icon-centered{
    display: block;
    margin: auto;
    max-width: 60%;
    max-height: 60%;
    object-fit: contain;
}

body:has(.abena-v2-modal-window) .pricelist-details-multiselect{
    display: none;
}
body:has(.pricelist-select-products-page) .pricelist-details-multiselect{
    display: none;
}

/*====================================== END OF PRICELIST DETAILS MULTISELECT  =================================*/


/*====================================== PRICELIST SEGMENTED TOGGLE BUTTON  =================================*/

.pricelist-segmented-toggle-button {
    display: flex;
    flex-direction: row;
    padding: 0.375rem;
    background: var(--bgcolor);
    border-radius: .75rem;
    justify-content: center;
}

.pricelist-segmented-toggle-button .k-button-group{
    gap: .25rem; !important
}

.pricelist-segmented-toggle-button button {
    padding: 0.375rem 1rem;
    background-color: transparent;
    color: #000;
    border: none;
    border-radius: 0;
    font: var(--Gilroy-Medium);
    transition: background-color 0.3s, color 0.3s;
    width: 10rem;
}

.pricelist-segmented-toggle-button button.k-selected {
    background-color: var(--primary);
    color: white;
    border-radius: .75rem;
    box-shadow: none;
}

.pricelist-segmented-toggle-button button:first-child {
    border-radius: .75rem;
    border-start-end-radius: .75rem !important;
    border-end-end-radius: .75rem !important;
}

.pricelist-segmented-toggle-button button:last-child {
    border-radius: .75rem;
    border-start-start-radius: .75rem !important;
    border-end-start-radius: .75rem !important;
}


.pricelist-segmented-toggle-button button:not(:first-child):not(:last-child) {
    border-start-end-radius: .75rem !important;
    border-end-end-radius: .75rem !important;
    border-start-start-radius: .75rem !important;
    border-end-start-radius: .75rem !important;
}

/*====================================== END OF PRICELIST SEGMENTED TOGGLE BUTTON  =================================*/


/*====================================== PRICELIST TILE LAYOUT HIERARCHIES  =================================*/

/* Container du TileLayout */
.pricelist-hierarchy-tile-layout {
    background-color: transparent !important;
    padding: .25rem !important;
    border-radius: 1rem;
    gap: 4rem !important;
    height: 20rem;
    overflow-y: auto;
    overflow-x: hidden;
}

.pricelist-hierarchy-tile-layout .k-tilelayout-item {
    background-color: white;
    border: 1px solid #E0E0E0;
    border-radius: 0.75rem;
    box-shadow: none;
    height: 3.5rem;  
}

.pricelist-tile-item-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.tile-item-content .drag-handle i {
    cursor: grab;
    font-size: 1.25rem;
}

.pricelist-hierarchy-tile-layout .k-tilelayout-item .k-tilelayout-item-body{
    display: none;
}
.pricelist-hierarchy-tile-layout .k-tilelayout-item .k-tilelayout-item-header{
    border-width: 0; 
}

.hierarchy-reorder-grid {
    margin-top: 3rem;
    border: none !important;
}

.hierarchy-reorder-grid .k-grid-header{
    display: none;
}
.hierarchy-reorder-grid .k-grid-table{
    border-collapse: separate;
    border-spacing: 1rem;
}
.hierarchy-reorder-grid .k-grid-table .k-table-row{
    background-color: white;
    border: 1px solid #E0E0E0;
    border-radius: 0.75rem;
    box-shadow: none;
    height: 3.5rem;
}


.pricelist-reorder-modal-subtitle{
    padding-bottom: 1rem;
}

.abena-v2-modal-window.pricelist-modal{
    background-color: #F6F6F9;
}

.treeview-hierarchy-reorder {
    max-height: calc(100vh - 20.25rem);
    overflow-y: auto;
    width: 100%;
}
.treeview-hierarchy-reorder .k-treeview-leaf{
    width: 100% !important;
    height: 2rem !important;
}
.treeview-hierarchy-reorder .k-treeview-leaf:focus,
.treeview-hierarchy-reorder .k-focus{
    box-shadow: none !important;
}
.treeview-hierarchy-reorder .k-treeview-leaf:hover{
    background-color: transparent;
    border: none;
}
.treeview-hierarchy-reorder .pricelist-tile-item-content {
    width: 100%;
    background-color: white !important;
    border: 1px solid #E0E0E0;
    border-radius: 0.75rem;
    box-shadow: none;
    height: 2rem;
    padding-left: 1rem;
    padding-right: 1rem;
    cursor: grab;
}

.treeview-hierarchy-reorder .pricelist-tile-item-content:active, body:has(.k-drop-hint) .treeview-hierarchy-reorder, body:has(.k-drop-hint) .pricelist-tile-item-content {
    cursor: move !important;
}


body:has(.treeview-hierarchy-reorder) .k-i-plus::before {
    content: "\e618" !important;
}
body:has(.treeview-hierarchy-reorder) .k-drop-hint {
    z-index: 100000 !important;
    display: flex !important;
}

/*====================================== END OF PRICELIST TILE LAYOUT HIERARCHIES   =================================*/


/*====================================== PRICE LIST TYPE CHANGE NOTIFICATION   =================================*/
.price-list-type-change-notification {
    top: 7rem !important;
    right: 16rem !important;
}

.price-list-type-change-notification .k-notification-container {
    border-radius: var(--abena-v2-default-border-radius);
    box-shadow: 0px 2px 8px 0px rgba(49, 55, 116, 0.25);
}

.price-list-type-change-notification .k-notification-content {
    width: 16rem;
}
.price-list-type-change-notification .k-notification {
    padding: 0 !important;
    background-color: transparent;
    border: none;
}
.price-list-type-change-notification .notification-title {
    font-family: Gilroy-Bold;
    padding: 0.25rem 0.5rem;
    background-color: var(--abena-v2-primary) !important;
    color: white;
    border-top-left-radius: var(--abena-v2-default-border-radius);
    border-top-right-radius: var(--abena-v2-default-border-radius);
}
.price-list-type-change-notification .notification-message {
    font-family: Gilroy-Bold;
    padding: 0.75rem 0.5rem;
    background-color: var(--grid-header-bg) !important;
    color: black;
    border-bottom-left-radius: var(--abena-v2-default-border-radius);
    border-bottom-right-radius: var(--abena-v2-default-border-radius);
}
.price-list-type-change-notification .k-notification-actions {
    position: absolute;
    top: 0.25rem;
    right: 0.5rem;
    color: white;
}
/*====================================== END OF PRICE LIST TYPE CHANGE NOTIFICATION   =================================*/


/*====================================== PRICELIST EXTERNAL ARTICLES ICON =================================*/

.price-list-external-article-label{
    font-family: Gilroy-Medium;
    font-size: 0.625rem;
}

/*====================================== END OF PRICELIST EXTERNAL ARTICLES ICON  =================================*/

.textarea-condition {
    height: 25rem !important;
}
.textarea-condition p {
    margin-bottom: 0.125rem !important;
    margin-top: 0.125rem !important;
}
.textarea-condition ol {
    margin-bottom: 0.125rem !important;
    margin-top: 0.125rem !important;
}
.textarea-condition ul {
    margin-bottom: 0.125rem !important;
    margin-top: 0.125rem !important;
}


/*====================================== PRICELIST TEXT EDITOR  =================================*/

.price-list-editor .k-toolbar {
    background-color: #F6F6F9 !important;
}

/*====================================== PRICELIST TEXT EDITOR  =================================*/


.base-price-list-label {
    font-family: inherit;
    font-size: 1.125rem;
}

.pricelist-main-page .base-price-list-select .abs-dropdown-clear {
    top: 0.625rem !important;
}

.nh-grid .abena-v2-combo-box .abs-dropdown-clear{
    top: 0.625rem !important;
    color: white;
}

.central-nh-modal .k-tabstrip-content{
    background-color: transparent;
    overflow-x: hidden;
}
.central-nh-modal .abs-grid{
    padding: 0.5rem;
    background-color: white;
    border-radius: var(--abena-v2-default-border-radius);
    margin-top: 1rem;
}