#PageAffiliate {
    .card-ticketing {
        .ant-card-body {
            padding-right: 0px !important;
            padding-left: 0px !important;
        }
    }
    & .ant-card .ant-card-body {
        padding: 16px;
    }
    .page-affiliate-description {
        @include atxs {
            padding: 0px 5px !important;
        }
    }
    .dashboard-card {
        border-color: #e6e6e6;
        box-shadow: 5px 5px 6px 0 #efefef;
        border-radius: 10px !important;
        transition: all 0.3s ease-out;
        cursor: pointer;

        &:hover {
            transform: translateY(-6px);
        }

        & .title-icon {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 6px;
        }

        & .the-card-title {
            font-size: 25px;
            font-weight: 600;
        }
        & .card-icon {
            display: block;

            padding: 10px;
            border-radius: 50%;
        }

        & .card-description {
            position: relative;
            top: -6px;
            margin-bottom: -6px;

            @include atxs376 {
                font-size: 15px;
            }
        }

        &.credits {
            & .the-card-title,
            & .card-icon {
                color: rgb(9, 121, 0);
            }
            & .card-icon {
                background-color: #eaf4e6;
            }

            & .ticket-container:hover .the-card-title {
                color: rgb(9, 121, 0, 0.3);
                transition: all 0.3s ease;
            }
        }

        &.people {
            & .the-card-title,
            & .card-icon {
                color: #104b91;
            }
            & .card-icon {
                background-color: #e8edf4;
            }

            & .ticket-container:hover .the-card-title {
                color: rgb(16, 75, 145, 0.3);
                transition: all 0.3s ease;
            }
        }

        &.clicks {
            & .the-card-title,
            & .card-icon {
                color: #c80202;
            }
            & .card-icon {
                background-color: rgb(128, 0, 32, 0.1);
            }

            & .ticket-container:hover .the-card-title {
                color: rgb(128, 0, 32, 0.3);
                transition: all 0.3s ease;
            }
        }

        &.employees {
            & .the-card-title,
            & .card-icon {
                color: rgb(128, 0, 128);
            }
            & .card-icon {
                background-color: rgb(128, 0, 128, 0.1);
            }

            & .ticket-container:hover .the-card-title {
                color: rgb(128, 0, 128, 0.3);
                transition: all 0.3s ease;
            }
        }
        .ticket-container {
            @include atxs480 {
                // text-align: center;
            }
        }
    }

    .card-list-title {
        font-size: 22px;
        font-weight: 500;
        margin-bottom: 20px;
    }

    .card-counter {
        border-color: #e6e6e6;
        box-shadow: 5px 5px 6px 0 #efefef;
        border-radius: 10px !important;

        .ant-card-body {
            border-radius: 10px;
            border: 0px;
            padding: 15px;

            .ant-card-meta {
                .ant-card-meta-detail {
                    .ant-card-meta-title {
                        font-size: 17px;
                        margin-bottom: 0px;
                        line-height: normal;
                        margin-bottom: 5px;
                        display: flex;
                        align-items: center;
                        gap: 5px;

                        @include atMin375 {
                            font-size: 22px;
                        }

                        .number {
                            font-size: 13px;
                            font-weight: 800;
                            // margin-left: 3px;

                            @include atMin375 {
                                font-size: 14px;
                            }

                            @include atMin1440 {
                                font-size: 17px;
                            }
                        }
                    }
                    .ant-card-meta-description {
                        color: #000000;
                        font-size: 18px;
                    }
                }
            }
        }

        &.card-total {
            &.new-tickets {
                .ant-card-body {
                    .ant-card-meta {
                        .ant-card-meta-detail {
                            .ant-card-meta-title {
                                color: #42d300;
                            }
                            // .ant-card-meta-description {
                            // }
                        }
                    }
                }
            }

            &.open-tickets {
                .ant-card-body {
                    .ant-card-meta {
                        .ant-card-meta-detail {
                            .ant-card-meta-title {
                                color: #097900;
                            }
                            // .ant-card-meta-description {
                            // }
                        }
                    }
                }
            }

            &.new-requests {
                .ant-card-body {
                    .ant-card-meta {
                        .ant-card-meta-detail {
                            .ant-card-meta-title {
                                color: #349cd0;
                            }
                            // .ant-card-meta-description {
                            // }
                        }
                    }
                }
            }
            &.open-requests {
                .ant-card-body {
                    .ant-card-meta {
                        .ant-card-meta-detail {
                            .ant-card-meta-title {
                                color: #104b91;
                            }
                            // .ant-card-meta-description {
                            // }
                        }
                    }
                }
            }
            &.employees {
                .ant-card-body {
                    .ant-card-meta {
                        .ant-card-meta-detail {
                            .ant-card-meta-title {
                                color: #258900;
                            }
                            // .ant-card-meta-description {
                            // }
                        }
                    }
                }
            }
        }

        // &.card-total {
        //     &.retainers {
        //         .ant-card-body {
        //             .ant-card-meta {
        //                 .ant-card-meta-detail {
        //                     .ant-card-meta-title {
        //                         color: #fbb800;
        //                     }
        //                     // .ant-card-meta-description {
        //                     // }
        //                 }
        //             }
        //         }
        //     }
        //     &.projects {
        //         .ant-card-body {
        //             .ant-card-meta {
        //                 .ant-card-meta-detail {
        //                     .ant-card-meta-title {
        //                         color: #389dd7;
        //                     }
        //                     // .ant-card-meta-description {
        //                     // }
        //                 }
        //             }
        //         }
        //     }
        //     &.employees {
        //         .ant-card-body {
        //             .ant-card-meta {
        //                 .ant-card-meta-detail {
        //                     .ant-card-meta-title {
        //                         color: #258900;
        //                     }
        //                     // .ant-card-meta-description {
        //                     // }
        //                 }
        //             }
        //         }
        //     }
        // }

        // .ant-card-actions {
        //     border: 0px;
        //     border-bottom-left-radius: 10px;
        //     border-bottom-right-radius: 10px;
        //     margin: 3px;

        //     li {
        //         display: flex;
        //         justify-content: flex-end;
        //         padding: 0px;
        //         margin: 0px;

        //         span {
        //             svg {
        //                 color: $mainPrimary;
        //                 font-size: 24px;
        //             }
        //         }
        //     }
        // }
    }

    .ant-collapse {
        .ant-collapse-item {
            &.collapse-current-tickets {
                .ant-collapse-content {
                    .ant-collapse-content-box {
                        .btn-group-actions {
                            display: flex;
                            gap: 5px;
                        }
                    }
                }
            }

            &.collapse-recent-retainer-tickets {
                .ant-collapse-content {
                    .ant-collapse-content-box {
                        .year-wrapper {
                            display: flex;
                            gap: 5px;
                            margin-bottom: 16px;
                            width: 150px;

                            @include atxs {
                                width: 100%;
                            }

                            .ant-btn {
                                width: 50%;
                                // @include atxs {
                                //     width: 50%;
                                // }
                            }
                        }

                        .btn-archive-selected {
                            width: 100%;
                            margin-bottom: 16px;
                            border-radius: 3px;

                            @include atMin768 {
                                width: 150px;
                            }
                        }
                    }
                }

                // table checkbox
                .ant-table-wrapper
                    .ant-table
                    .ant-table-container
                    .ant-table-body
                    table
                    tbody.ant-table-tbody
                    tr.ant-table-row
                    td.ant-table-cell
                    .ant-checkbox-wrapper.ant-checkbox-wrapper-checked
                    .ant-checkbox.ant-checkbox-checked
                    .ant-checkbox-inner:after {
                    left: 21%;
                }
                .ant-table-wrapper
                    .ant-table
                    .ant-table-container
                    .ant-table-header
                    table
                    thead.ant-table-thead
                    tr
                    th.ant-table-cell
                    .ant-table-selection
                    .ant-checkbox-wrapper.ant-checkbox-wrapper-checked
                    .ant-checkbox.ant-checkbox-checked
                    .ant-checkbox-inner:after,
                .ant-table-wrapper
                    .ant-table
                    .ant-table-container
                    .ant-table-header
                    table
                    thead.ant-table-thead
                    tr
                    th.ant-table-cell
                    .ant-table-selection
                    .ant-checkbox-wrapper:hover
                    .ant-checkbox.ant-checkbox-checked
                    .ant-checkbox-inner:after {
                    left: 21%;
                }
            }
        }
    }
    .space-link-wrapper {
        @include atxs {
            flex-direction: column;
        }

        &.for-personalized-link {
            width: 100%;
            @include atMin426 {
                width: auto;
            }

            & .ant-space-item:first-child {
                width: 100%;
                @include atMin426 {
                    width: auto;
                }
            }

            & .ant-space-item:nth-child(2) {
                width: 100%;
                @include atMin426 {
                    width: auto;
                }
            }
        }

        &.for-generate-code {
            width: 100%;
            @include atMin426 {
                width: auto;
            }

            & .ant-space-item:first-child {
                width: 100%;
                @include atMin426 {
                    width: auto;
                }
            }

            & .ant-space-item:nth-child(2) {
                width: 100%;
                @include atMin426 {
                    width: auto;
                }
            }
        }
        .ant-space-item {
            height: 40px;

            .ant-form-item {
                .ant-form-item-control-input {
                    .ant-form-item-control-input-content {
                        .ant-input {
                            border: 1px solid #c5c5c5;
                            border-radius: 3px;
                            height: 40px !important;
                        }

                        #personalized_link {
                            width: 100%;
                            @include atMin426 {
                                width: 300px;
                            }
                        }

                        #generated_code,
                        #email,
                        #comfirm_email,
                        #name {
                            width: 100%;
                            @include atMin426 {
                                width: 300px;
                            }
                        }
                    }
                }
            }

            .ticket-prefix-addon {
                height: 40px;
                border: 1px solid #c5c5c5;
                background: #f2f2f2;
                padding: 5px 10px;
                border-radius: 3px;
                display: flex;
                align-items: center;
            }

            .ant-btn {
                height: 40px;
                border-radius: 3px;
                border: 1px solid $mainPrimary;
                background: $mainPrimary;
                color: #ffffff;
                width: 100%;
                @include atMin426 {
                    width: auto;
                }
            }
        }
    }
    .top-filter {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        cursor: pointer;
        flex-direction: column;
        row-gap: 5px;

        @include atMin425 {
            flex-direction: row;

            align-items: center;
        }
    }
    .export {
        font-size: 14px;
    }
    // .settings-affiliate-tabs {
    //     .ant-tabs-tab {
    //         padding: 0px;
    //         padding-right: 40px;
    //     }
    // }
    .filter-date-range {
        display: flex;
        align-items: center;
        .calendar-svg {
            // color: #a8a8a8;
            color: black;
        }

        .ant-picker {
            &.ant-picker-range {
                padding-left: 6px;
                width: 220px;
                height: 40px;
                border-radius: 5px;
                // border-color: #cccccc;
                border-color: transparent;
                // @include atxs {
                //     border-color: $mainPrimary;
                //     width: 100% !important;
                // }

                @include atmd {
                    width: 300px;
                }

                &.ant-picker-focused {
                    box-shadow: none;
                }

                .ant-picker-active-bar {
                    background-color: $mainPrimary;
                    @include atxs {
                        background-color: transparent;
                    }
                }
            }
        }

        // @include atxs {
        //     .calendar-svg {
        //         display: none;
        //     }
        // }
    }

    .table-pagination-wrapper {
        .table-showing-entries {
            @include atxs {
                justify-content: center;
            }
        }
    }
}

.form-paypal-account {
    .ant-form-item {
        margin-bottom: 10px;

        .for-personalized-link {
            input {
                width: 100%;
                border: 1px solid #c5c5c5;
                border-radius: 3px;
                height: 40px !important;

                @include atMin426 {
                    width: 300px;
                }
            }
        }

        .ant-form-item-explain-error {
            margin-bottom: 3px;
            line-height: 1.1;
        }
    }
}
