.referral_links_list {
    display: flex;
    flex-direction: column;
    margin-top: 40px;
    background-color: #fff;
    font-family: Roboto, Open-Sans, Arial, Helvetica, sans-serif;
}

.title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 60px;
    width: 80%;
    font-size: 1em;
    color: #0e0e0e;
}

.table_container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-bottom: 100px;
    background-color: #fff;
}

.links_table {
    width: 80%;
}

.thead {
    height: 50px;
}

.thead_link {
    width: 72%;
}

.table_header {
    background-color: #eceff1;
    color: #0e0e0e;
    font-size: 0.8em;
}

.table_data {
    text-align: center;
    word-break: break-all;
}

tbody {
    background-color: #fff;
    color: #0e0e0e;
    font-size: 0.8em;
}

.thead, .table_data {
    padding: 12px 15px;
}

.links_table, .thead, .table_data {
    border: 1px solid #dddddd;
    border-collapse: collapse;
}

tr .table_data:not:last-child {
    text-align: center;
}

.links {
    text-align: left;
}

.copy_button, .qr_button {
    border: none;
    background-color: transparent;
    width: 18px;
    height: 18px;
    text-transform: none;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
}

.copy_button {
    background-image: url(../img/copy2.svg);
}

.qr_button {
    background-image: url(../img/qr.png);
}

.buttons {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    margin-top: 20px;
    width: 80%;
}

.return_button {
    display: flex;
    justify-content: flex-start;
    margin: 20px 0 20px;
}

.download_button {
    display: flex;
    justify-content: flex-end;
}

#generate_link, #excel_button {
    color: #0000FF;
}

#excel_button {
    margin-left: 10px;
    padding: 10px 20px;
    background-color: #0000FF;
    color: #ffffff;
    border: none;
    cursor: pointer;
}

#excel_button:hover {
    background-color: #0090ff;
    transition: .3s;
}

tbody tr:nth-child(even) {
    background-color: #fafafa;
}

@media screen and (max-width: 767px) {
    .referral_links_list {
        padding: 4px;
        margin: 20px 8px;
    }

    .table_container {
        display: block
    }

    .title {
        flex-direction: column;
        align-items: baseline;
        width: 100%;
    }

    #generate_link {
        margin-bottom: 10px;
    }

    .table_title {
        font-size: 18px;
    }

    .links_table {
        border: none;
        width: 100%;
    }

    tbody {
        background-color: transparent;
    }

    .thead, .table_data {
        background-color: #fff;
    }

    .links_table .table_header {
        display: none;
    }

    .links_table, .links_table tbody, .links_table tr, .links_table td {
        display: block;
        width: 100%;
    }

    .links_table tr {
        margin-bottom: 15px;
    }

    .links_table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
    }

    .links_table td:before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 50%;
        text-align: left;
        padding-left: 15px;
        font-weight: bold;
    }

    .links_table td:last-child:before {
        padding-top: 12px;
    }

    .copy_cell, .qr_cell {
        text-align: center;
    }

    .buttons {
        width: 100%;
    }

    .download_button {
        flex-direction: column;
        width: 100%;
    }

    #excel_button {
        margin-left: 0;
        font-size: 16px;
    }
}



