
.affiliate-tabs-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    margin: 0.5rem auto;
    padding: 0 2px;
    width: 50%;
}

.affiliate-tab {
    flex: 0 1 auto;
    position: relative;
    margin: 0 0.5em;
    text-align: center;
    box-sizing: border-box;
    border-radius: 5px;
    cursor: pointer;
    padding: 0.5rem;
    min-width: 80px;
}

.icon-affiliate-tab-statistics,.icon-affiliate-tab-referrals,.icon-affiliate-tab-payments,.icon-affiliate-tab-banners { background-size: 24px 24px; width: 24px; height: 24px; vertical-align:middle; display:inline-block; }
.icon-affiliate-tab-statistics { background: url("../images/icons/icon-affiliate-tab-statistics.svg") no-repeat; }
.icon-affiliate-tab-referrals { background: url("../images/icons/icon-affiliate-tab-referrals.svg") no-repeat; }
.icon-affiliate-tab-payments { background: url("../images/icons/icon-affiliate-tab-payments.svg") no-repeat; }
.icon-affiliate-tab-banners { background: url("../images/icons/icon-affiliate-tab-banners.svg") no-repeat; }

.affiliate-tab div { margin: 0.5em 0; }
.affiliate-tab span { display: block; color: #cecece; font-size: 0.8em; }

.affiliate-tab:hover {
    background-color: #1f212f;
    border-radius: 3px;
    transition: 0.25s;
}
.affiliate-tab:hover span {
    color: #ffa500;
}

.affiliate-referrals-tab,
.affiliate-payouts-tab {
    display: none;
}

.affiliate-statistics-wrapper {
    width: 90%;
    max-width: 1600px;
    margin: 0 auto;
}
.affiliate-statistics-blocks-wrapper {
    display: flex;
    flex-direction: column;
}

.affiliate-statistics-blocks-top,
.affiliate-statistics-blocks-bottom {
    display: flex;
    flex-direction: row;
}

.affiliate-statistics-block {
    display: flex;
    flex-direction: column;
    flex: 1 1 300px;
    padding: 2rem 1rem;
    margin: 0.5rem;
    border-radius: 3px;
}


.affiliate-statistics-block-data {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}
.affiliate-statistics-block-name-wrapper {
    display: flex;
    align-items: center;
    color: #fff;
}

.affiliate-statistics-block-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
}

.icon-affiliate-profit {
    background: url('../../images/icons/icon-affiliate-profit.svg');
    background-size: 28px 28px;
}

.icon-affiliate-visits {
    background: url('../../images/icons/icon-affiliate-visits.svg');
    background-size: 28px 28px;
}

.icon-affiliate-paid {
    background: url('../../images/icons/icon-affiliate-paid.svg');
    background-size: 28px 28px;
}

.icon-affiliate-register {
    background: url('../../images/icons/icon-affiliate-register.svg');
    background-size: 28px 28px;
}

.icon-affiliate-referrals {
    background: url('../../images/icons/icon-affiliate-referrals.svg');
    background-size: 28px 28px;
}


.affiliate-statistics-block-name {
    color: #fff;
    padding: 0 0.5rem;
}

.affiliate-statistics-block-value {
    font-size: 1.25rem;
    color: #fff;
}

.affiliate-statistics-block-description {
    display: block;
    color: #C2C4F8;
    font-size: 0.875rem;
    margin-top: 1rem;
}

.affiliate-statistics-payday {
    font-size: 0.875rem;
    color: #fff;
    margin: 1em 0 3em;
    text-align: center;
}
.affiliate-statistics-message {
    display: block;
    padding: 1rem 1rem;
    font-size: 0.875rem;
    color: #fff;
}


.affiliate-link-wrapper {
    border-radius: 3px;
    padding: 1rem 2rem;
    border: 2px dashed #7578aa;
}

.affiliate-link-caption {
    font-size: 0.875rem;
    color: #fff;
    text-transform: uppercase;
    padding: 0 0.5rem;
}

.affiliate-link-field-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    margin: 0.5rem 0;
}

.affiliate-button,
.affiliate-button-back,
.affiliate-button-delete {
    background: #ffa500;
    color: #000;
    font-size: 0.75rem;
    padding: 0.25rem 1rem;
    border-radius: 3px;
    border: none;
    cursor: pointer;
    margin: 0 0.5em;
}

.affiliate-button-delete {
    background-color: #000;
    color: #fff;
}
.affiliate-button-back {
    background: transparent;
    color: #fff;
    border: 1px solid #00ceff;
}

.affiliate-button:hover { background-color: #ff8e00; }
.affiliate-button-delete:hover { background-color: #000; color: red; }
.affiliate-input,
.affiliate-link-field {
    position: relative;
    flex: 1 1 auto;
    border: none;
    border-radius: 3px;
    color: #fff;
    background-color: #171822;
    font-size: 1rem;
    box-sizing: border-box;
    box-shadow: inset 1px 1px 3px #000;
    border: 1px solid #262739;
    padding: 0.25rem 0.5rem;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.affiliate-link-field-wrapper .affiliate-input {
    margin: 0 0.5em;
}


.affiliate-sources-list-wrapper {}
.affiliate-sources-list-wrapper table {
    width: 100%;
    border-collapse: collapse;
}

.affiliate-sources-list-wrapper th {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #7578aa;
    padding: 0.5em 0;
}

.affiliate-sources-list-wrapper td {
    color: #fff;
    text-align: center;
    padding: 0.2em 0.5em;
    border: 1px solid #363750;

}

.affiliate-sources-list-wrapper th:first-child,
.affiliate-sources-list-wrapper td:first-child {
    text-align: left;
}
.affiliate-sources-list-wrapper th:first-child { padding: 0.5em; }


.affiliate-sources-list-add {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0.5rem 0;
}
.affiliate-sources-list-add .affiliate-input { flex: 0 0 auto; margin-right: 1rem; }

.affiliate-table-header {
    display: flex;
    position: relative;
    flex-direction: row;
    font-size: 14px;
    justify-content: space-between;
    align-items: center;
    margin-top: 1em;
    overflow: hidden;
}

.affiliate-table-header-name, 
.affiliate-table-header-caption {
    font-size: 1rem;
    text-transform: uppercase;
    color: #464869;
    padding: 0 7px;
}

.affiliate-table-block-source {
    position: relative;
    overflow: hidden;
    border-radius: 3px;
    margin: 1px 0;
}

.affiliate-table-block-source::before {
    position: absolute;
    content: '';
    width: 3px;
    height: 100%;
    left: 0;
}
.affiliate-table-block-source::after {
    position: absolute;
    content: '';
    width: 3px;
    height: 100%;
    right: 0;
}
.affiliate-table-block-source:hover:before {
    background-color:  #ffa500;
    transition: 0.5s;
}
.affiliate-table-block-source:hover:after {
    background-color:  #ffa500;
    transition: 0.5s;
}

.affiliate-table-block-source-name,
.affiliate-table-block-source-visits,
.affiliate-table-block-source-referrals,
.affiliate-table-block-source-profit {
    color: #fff;
    font-size: 1rem;
    padding: 0 0.875em;
}
.affiliate-table-block-source-name {
    text-align: left;
}

.affiliate-table-block-source-name {
    width: 30%;
}

.affiliate-statistics-header {
    display: block;
    color: #fff;
    font-size: 1.2em;
    font-weight: 600;
    margin-top: 1em;
    padding: 0.5em;
}

.affiliate-statistics-table {
    width: 100%;
    border-collapse: collapse;
}
.affiliate-statistics-table th {
    background-color: #363750;
    text-transform: uppercase;
    font-size: 0.8em;
    padding: 0.5em 0;
    color: #fff;
}
.affiliate-statistics-table td {
    padding: 0.5em 0.5em;
    text-align: center;
    border: 1px solid #363750;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #c2c2c2;
    font-weight: 100;
}
.affiliate-statistics-table tr:hover td {
    color: #fff;
    background-color:#2c2c42;
}
.affiliate-statistics-table td:first-child {
    text-align: left;
}

body[dir='rtl'] .affiliate-statistics-table td:first-child {
    text-align: right;
}

.affiliate-banner-block {
    display: flex;
    position: relative;
    flex-direction: row;
    margin: 1px 0;
    border-radius: 3px;
    font-size: 14px;
    justify-content: space-between;
    min-height: 50px;
    align-items: center;
    overflow: hidden;
}

.affiliate-banners-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.affiliate-banner-block {
    display: flex;
    position: relative;
    flex-direction: column;
    margin: 0.5em;
    border-radius: 3px;
    font-size: 14px;
    justify-content: flex-start;
    min-height: 50px;
    align-items: center;
    overflow: hidden;
    padding: 1em;
}

.affiliate-banner-block textarea {
    color: #c8caf2;
    background-color: #2e2f44;
    padding: 0.25em 0.5em;
    border-radius: 3px;
    border: none;
    margin: 0.5em 0 0;
    width: 100%;
    height: 100%;
    min-width: 16em;
    min-height: 10em;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.affiliate-banners-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1em 0;
}
.affiliate-banners-list-header span {
    margin: 0 2em;
    color: #fff;
}
#user_affiliate_block {
    display: none;
}