:root {
    --affGap: 12px;
}

.flex_column {
    display: flex;
    flex-direction: column;
    gap: var(--affGap);
}

.flex_row {
    display: flex;
    flex-direction: row;
    gap: var(--affGap);
}

.aff_main {
    height: 700px;
    width: 80%;
    box-sizing: border-box;
    padding: 40px;
    margin: 0 auto
}

.aff_main_discount {
    gap: var(--affGap);
    width: 100%;
    height: 100%;
    /* margin: 30px; */
    box-sizing: border-box;
}

.aff_card {
    background-image: radial-gradient(farthest-corner at 0px 0px, var(--d2), var(--d0) 100%);
    border-radius: 8px;
    padding: 40px;
    box-sizing: border-box;
    position: relative;
}

.aff_card_main {
    /* height: 30%; */
    /* width: 100%; */
}

.aff_card_discount_link {
    height: auto;
}

.aff_mothly_total {
    gap: var(--affGap);
    width: 60%;
    height: 100%;
    /* margin: 30px; */
    box-sizing: border-box;
    position: relative;
}

.aff_mothly {
    height: 100%;
    /* width: 100%; */
}

.aff_total {
    height: 30%;
}

.affiliate_name {
    text-align: left;
}

.affiliate_name_text {
    opacity: 0.6;
    margin: 0;
}

.aff_card_discount {
    width: 30%;
}

.aff_card_link {
    width: 100%;
}

.aff_total_amount {
    font-size: 3rem;
    color: greenyellow;
    position: absolute;
    bottom: 0;
    right: 0;
    margin: 40px;
}

.aff_monthly_programmed_date {
    text-align: right;
    position: absolute;
    bottom: 0;
    right: 0;
    margin: 40px;
}

.aff_links_container {
    text-align: left;
    bottom: 0;
    right: 0;
}

.aff_monthly_amounts {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 200px;
    transform: translateX(-50%) translateY(-50%);
    align-items: center;
    align-content: center;
}

.aff_montly_earned_refunds {
    width: 100%;
    height: 100%;
    /* border: 1px solid green; */
    text-align: right;
    padding-right: 10%;
    box-sizing: border-box;
}

.aff_montly_total {
    /* height: 100%; */
    width: 100%;
    /* height: 100%; */
    /* align-items: center; */
    /* align-content: center; */
    text-align: left;
    padding-left: 10%;
    box-sizing: border-box;
}

.aff_montly_total_amount {
    color: greenyellow;
    font-size: 3rem;
}

.aff_montly_earned {
    height: 100%;
    align-items: center;
    align-content: center;
}

.aff_montly_refunds {
    height: 100%;
    align-items: center;
    align-content: center;
}

.aff_montly_earned_amount {
    color: greenyellow;
    font-size: 2rem;
}

.aff_montly_refunds_amount {
    font-size: 2rem;
    color: red;
}

.aff_card_sales {
    height: 100%;
}

.aff_payouts_table_container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    /* border: 1px solid white; */
    gap: 10px;
    box-sizing: border-box;
}

.aff_payouts_table_labels {
    width: 100%;
    height: 30px;
    display: flex;
    flex-direction: row;
}

.aff_payouts_table_label {
    width: 100%;
    color: orange;
}

.aff_payouts_table_label_amount {
    text-align: left;
}
.aff_payouts_table_label_date {
    text-align: right;
}

.aff_payouts_table_payout {
    display: flex;
    flex-direction: row;
    width: 100%;
    border-bottom: 1px solid #333;
    /* border: 1px solid red; */
}

.aff_payouts_table_amount {
    text-align: left;
    width: 100%;
}

.aff_payouts_table_date {
    text-align: right;
    width: 100%;
}