.admin-offers {
    display: flex;
    flex-direction: column;
    width: 100%;

    .admin-offer-archive {
        display: flex;
        flex-direction: column;
    }

    .admin-offer-single {
        display: flex;
        flex-direction: column;
        gap: 20px;

        .title-avance {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .avance-for-offer {
            width: 302px;
        }

        .title {
            flex: 1;
        }

        .form-content {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .single-product-add-to-branch {
            font-size: 20px;
            font-weight: 600;
            background: none;
            border: 0px;
            cursor: pointer;
            padding: 10px;
        }

        .product-picker,
        .branch-search {
            position: relative;

            .search-icon {
                position: absolute;
                right: 10px;
                bottom: 15px;
                width: 20px;
                z-index: 1;
            }
        }

        .offer-content {
            display: none;
            flex-direction: column;
            gap: 25px;
        }

        .delete-product {
            display: flex;

        }

        .action-icons {
            justify-content: flex-start;
        }

        .offer-avance {
            display: flex;
            flex-direction: row;
            align-items: center;
            position: relative;
        }

        .item-quantity-group {
            display: flex;
            min-width: 115px;
        }

        .account-input {
            &.inline-input {
                display: flex;
                flex-direction: row;
                align-items: center;
                position: relative;
                min-width: 100px;
                gap: 0px;


                input {
                    padding-right: 25px;
                    padding-left: 10px;
                    height: 40px;
                }

                .input-value-symbol {
                    position: absolute;
                    right: 10px;
                    z-index: 1;
                }
            }
        }

        .min-width-table-header {
            min-width: 100px;
        }

        .min-width-quantity-header {
            min-width: 115px;
        }

        .item-quantity-input {
            font-weight: 300;
        }

        .total-price-area {
            display: flex;
            flex-direction: column;
            gap: 5px;
            padding: 0px 15px;

            .total-avance {
                color: #22222280;
                gap: 5px;
                font-size: 12px;

                >div {
                    display: inline-flex;
                    gap: 2px;
                }
            }

            >div {
                display: flex;
                justify-content: space-between;
            }

        }

        .product-info {
            display: flex;
            align-items: center;
            gap: 20px;
            text-decoration: none;
            width: 100%;

            img {
                width: 50px;
                height: 50px;
                object-fit: contain;

            }

            .title-and-subline {
                display: flex;
                flex-direction: column;
                gap: 2px;
                font-size: 12px;

                p {
                    padding-bottom: 0px;
                }

                &.search-title {
                    flex-direction: row;
                    gap: 10px;
                }
            }

            .subline {
                font-size: 10px;
                color: #22222280;
            }

            .customized-tag {
                padding: 2px 5px;
                border-radius: 13px;
                font-size: 10px;
                font-weight: 600;
                background: #cff001;
            }

            .customized-tag:empty {
                display: none;
            }

            &.search-line {
                background: #fafafa;
                padding: 13px 10px;

                &:hover {
                    background: #eee;
                }

                span.product_size {
                    font-size: 12px;
                }
            }

        }

        .logo-price-area {
            font-size: 10px;
            color: #22222280;
            display: flex;
            flex-direction: column;
        }

        .price-element {
            display: inline-flex;
            gap: 2px;
        }

        .search-loading {
            display: none;
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            align-items: center;
            justify-content: center;
            pointer-events: none;
            gap: 10px;

            p {
                padding: 0px;
            }

            .preloader {
                width: 30px;
                height: 30px;

                &:before {
                    content: none;
                }

                &:after {
                    content: none;
                }
            }

        }

        .add-to-cart-button {
            color: #fff;
            gap: 10px;

            svg {
                margin: 0px;
            }
        }

        .delete-offer-row {
            text-decoration: none;
            color: #22222280;
            font-weight: 500;
            background: none;
            border: none;

        }

        .points-actions {
            width: 100%;

            .delete-offer-row {
                margin-left: auto;
            }

        }

        .points-options>*:last-child {
            margin-left: 0px;
        }

    }

    .purchase-price {
        display: flex;
        flex-direction: column;
    }

    .action-icons {
        display: flex;
        gap: 6px;
        justify-content: flex-end;
        position: relative;

        svg {
            fill: #c6c6c6;

            &.pdf {
                margin-right: 4px;
            }

            &:hover {
                fill: #000;
            }
        }
    }

    .input-with-button {
        display: flex;
        border: #ddd 1px solid;
        border-radius: 5px;
        align-items: center;
        position: relative;

        input {
            border-radius: 5px 0px 0px 5px;
            border: 0px;
            padding-right: 30px;
        }

        button {
            border-radius: 0px 5px 5px 0px;
            height: 50px;
        }

        .percentage {
            position: absolute;
            right: 75px;
            z-index: 1;
            font-weight: 300;
        }

    }

    div.points-row-head {
        background: #E8E8E8;

        .points-cell {
            color: #000;
            font-weight: 400;
        }
    }

    .points-cell {
        font-weight: 300;
    }

    .flex-0-5 {
        flex: 0.5;
    }

    .flex-1 {
        flex: 1;
    }

    .flex-2 {
        flex: 2;
    }

    .flex-3 {
        flex: 3;
    }

    .flex-4 {
        flex: 4;
    }


    .btn.btn-cancel {
        background-color: #eaeaea;
        color: #000;
    }

    .pdf-button.disabled,
    .single-offer-save.disabled,
    .input-button.disabled,
    .add-to-branch.disabled,
    .open-add-to-branch.disabled {
        opacity: 0.50;
        pointer-events: none;
    }

    .btn-reset {
        padding: 0;
        border: none;
        font: inherit;
        color: inherit;
        background-color: transparent;
        cursor: pointer;
        min-width: 24px;
        min-height: 24px;
    }

    .sr-only:not(:focus):not(:active) {
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        height: 1px;
        overflow: hidden;
        position: absolute;
        white-space: nowrap;
        width: 1px;
    }

    .offer-product-search-container {
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        position: relative;

        .logo-price-area {
            clip: rect(0 0 0 0);
            clip-path: inset(50%);
            height: 1px;
            overflow: hidden;
            position: absolute;
            white-space: nowrap;
            width: 1px;
        }

        .search-loader {
            position: absolute;
            top: 0%;
            left: 0%;
            bottom: 0%;
            right: 0%;
            background-color: #242424;
            opacity: 0.5;
            display: none;
        }

        .offer-product-search-results {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            height: 0px;
            overflow: auto;
            z-index: 2;
            display: none;

            &:has(div) {
                height: 300px;
            }
        }

    }

    .offer-product-search-area {
        display: flex;
        gap: 15px;
        align-items: center;

        .points-cell {
            min-width: auto;

            label {
                display: flex;
                align-items: center;
                gap: 10px;
                font-size: 11px;

                p {
                    padding-bottom: 0px;
                    display: inline-flex;
                }

                input {
                    height: 25px;
                    width: 25px;
                    accent-color: var(--primary-color);
                }
            }
        }
    }

    &.offer-min-height {
        min-height: 550px;
    }

    .search-list-wrapper {
        &.products-wrapper {
            padding: 0px;

            .search-list {
                width: 100%;
                display: flex;
                flex-direction: column;
            }
        }

        &.no-result {
            display: flex;
            padding: 15px;
            background: #fafafa;
            height: 50px;
        }
    }


    .modal {
        display: none;

        .modal-close {
            height: 40px;
            min-width: 40px;
            padding: 0;
            font-size: 0;
            background-image: url(../images/close-icon.svg);
            background-size: 15px;
            background-repeat: no-repeat;
            background-position: center;
            border-radius: 100px;
            top: 10px;
            right: 10px;
            opacity: .8;
            background-color: transparent;
            border: 0px;
        }

        .modal-card {
            max-width: 600px;
            height: auto;
            max-height: none;
            flex: none;
        }

        .branches {
            display: flex;
            flex-direction: column;
            border: 1px solid #ddd;
            overflow: auto;
            max-height: 400px;
        }

        h2 {
            font-size: 24px;
        }

        .branch-box {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px;
            border-bottom: 1px solid #ddd;

            &:last-child {
                border-bottom: none;
            }

            p {
                color: #c6c6c6;
                padding-bottom: 0px;
            }

            h3 {
                font-size: 16px;
                font-weight: 500;
            }

            input {
                accent-color: var(--primary-color);
            }
        }

        .modal-actions {
            display: flex;
            gap: 10px;
            margin-top: 20px;

            .btn {
                flex: 1;
            }

            .add-to-branch {
                border: none;
            }
        }

        .branch-search {
            position: relative;

            .search-icon {
                position: absolute;
                right: 10px;
                bottom: 15px;
                width: 20px;
                z-index: 1;
            }
        }

        .search-loading {
            display: none;
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            align-items: center;
            justify-content: center;
            pointer-events: none;
            background-color: #22222280;
            z-index: 1;

            .preloader {
                border: 6px solid #fff;
                border-top-color: var(--primary-color);
            }

            p {
                padding: 0px;
            }

        }
    }
}

.admin-offer-download-modal {
    .modal-inner {
        p {
            padding: 0px;
        }

        .point-row {
            margin-top: 20px;

            .points-cell {
                display: flex;
                flex-direction: column;
                gap: 10px;
                align-items: flex-start;

                label {
                    color: #222222;
                    font-size: 14px;
                    font-weight: 500;
                }
            }
        }
    }
}







.add-to-offer-modal.add-to-offer {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    z-index: 100;
    font-size: 14px;
    display: flex;

    h3 {
        font-size: 25px;
        font-weight: 400;
        color: #222222;
        padding: 0;
        line-height: 1;
    }

    .modal-close {
        height: 40px;
        min-width: 40px;
        padding: 0;
        font-size: 0;
        background-image: url(../images/close-icon.svg);
        background-size: 15px;
        background-repeat: no-repeat;
        background-position: center;
        border-radius: 100px;
        top: 10px;
        right: 10px;
        opacity: .8;
        background-color: transparent;
        border: 0px;
    }

    .modal-card {
        max-width: 600px;
        height: auto;
        max-height: none;
        flex: none;
    }

    .add-to-offer-inner {
        display: flex;
        flex-direction: column;
        gap: 20px;
        overflow: hidden;
        position: relative;
        z-index: 10;
        background: #fff;
        border-radius: 8px;
        transition: all 0.2s ease;
        opacity: 0;
        transform: translateY(-100px);
    }

    .offer-line {
        .point-row .points-cell label {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px;
            border-bottom: 1px solid #ddd;

            p {
                padding: 0px;
            }
        }

        &.last-child {
            .point-row .points-cell label {
                border-bottom: none;
            }
        }
    }

    .add-to-offer-content {
        display: flex;
        flex-direction: column;
        border: 1px solid #ddd;
        overflow: auto;
        max-height: 400px;
        position: relative;
    }

    .add-to-offer-footer {
        padding: 20px 25px;
        border-top: #f2f5f7 1px solid;

        box-shadow: rgb(0 0 0 / 5%) 0px -5px 10px;
        z-index: 1;

        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 20px;
    }

    .add-to-offer-background {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.3);
        transition: all 0.2s ease;
        opacity: 0;
    }

    .offer-button-area {
        display: flex;
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }

    &.open .add-to-offer-inner {
        opacity: 1;
        transform: translateY(0);
    }

    &.open .add-to-offer.open .add-to-offer-background {
        opacity: 1;
    }
}