.betlist_container {
    border: none;
    /*background-color: #fff;*/
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    max-width: 1000px;
    margin-top:10px;
}

#_betlist_filter_popup .modal-dialog {
    min-width: 480px
}

#_betlist_filter_popup .modal-dialog .modal-content {
    border-radius: 0.5rem;
}

#_betlist_filter_popup .modal-header {
    /*background-color: #557d80;*/
    /*color: #fff;*/
}

#_betlist_filter_popup .modal-header h5 {
    /*background-color: #557d80;*/
    /*color: #fff;*/
    font-weight: bold!important;
}

#_betlist_filter_popup .select2-container {
    width:330px;
}

#_betlist_filter_popup .select2-container--default .select2-selection--single {
    border-color: #cecece;
}

#_betlist_filter_popup .modal-footer {
    margin-top: 10px;
}

#_betlist_filter_popup .modal-header button.close {
    /*background-color: #557d80;*/
    color: #fff;
}

.betlist_table {
    margin-top: 0px;
    margin-bottom: 0px;
    text-align: left;
}

.betlist_table td {
    padding-left : 6px;
    padding-right : 6px;
    padding-top : 4px;
    padding-bottom: 4px;
    background-color: #fff;
}

.betlist_table tr > td {
    /*    padding-left : 18px;
        padding-right : 18px;
        padding-top :14px;
        padding-bottom: 14px;*/
}


.betlist_table .betlist_table_seperator {
    height: 18px;
    background-color: transparent;
}

.betlist_table .betlist_table_seperator td {
    border:none;
    background-color: transparent;
}

.betlist_table .betlist_table_seperator:last-child {

}

.betlist_table .betlist_bet_selections_table {
    margin-right: 5px;
}

.betlist_table .betlist_bet_selections_table td {
    padding-top: 2px;
    padding-bottom: 2px;
}

.betlist_table tr:first-child td {
    /*border-top: none;*/
}

.betlist_table fbet_settled_utc,
.betlist_table fbet_placed_utc,
.betlist_table l_bet_customer,
.betlist_table f_bet_customer_id,
.betlist_table l_bet_bet_id
{
    display: none;
}

event_title,
.betlist_table bet_placed_date,
.betlist_table bet_settled_date,
.betlist_table customer_tags,
.betlist_table bet_type_or_combinations,
.betlist_table l_bet_type_or_combinations,
.betlist_table bet_stake,
.betlist_table bet_payout,
.betlist_table bet_max_winnings,
.betlist_table stake_risk,
.betlist_table stake_accounting,
.betlist_table max_winnings_risk,
.betlist_table max_winnings_accounting,
.betlist_table winnings_risk,
.betlist_table winnings_accounting,
.betlist_table bet_types bet_type,
.betlist_table fbet_bet_type_name
{
    display: block;
}

.betlist_table bet_placed_date,
.betlist_table bet_settled_date
{
    text-align: right;
}

.betlist_table tr.first_header bet_settled_date {
    display:none;
}

.betlist_table tr.second_header bet_placed_date {
    display:none;
}

.betlist_table tr.first_header td,
.betlist_table tr.second_header td
{
    border-top: none;
}

.betlist_table tr.first_header bet_settled_date {
    display:none;
}

.betlist_table tr.first_header td
{
    padding-top: 12px;
    padding-bottom: 12px;
}

.betlist_table tr.second_header td
{
    border-bottom: 1px solid #dddddd;
    padding-top: 6px;
    padding-bottom: 6px;
}


.betlist_table tr.first_header td.amount_1 max_winnings,
.betlist_table tr.first_header td.amount_1 bet_payout,
.betlist_table tr.first_header td.amount_2 bet_stake,
.betlist_table tr.first_header td.amount_2 max_winnings,
.betlist_table tr.first_header l_bet_placed_date

{
    display: none;
}

.betlist_table tr.first_header fbet_effective_stake_risk,
.betlist_table tr.first_header fbet_effective_stake_accounting,
.betlist_table tr.first_header fbet_payout_total_amount_risk,
.betlist_table tr.first_header fbet_payout_total_amount_accounting
{
    /*display: none;*/
    font-style: italic;
    font-weight: normal;
}

/*
.betlist_table tr.second_header td.amount_1 max_winnings,
.betlist_table tr.second_header td.amount_1 bet_payout,
.betlist_table tr.second_header td.amount_2 bet_stake,
.betlist_table tr.second_header td.amount_2 fbet_max_payout,
.betlist_table tr.second_header td.amount_2 max_winnings
{
    display: none;
}

.betlist_table tr.second_header fbet_effective_stake,
.betlist_table tr.second_header fbet_effective_stake_currency,
.betlist_table tr.second_header fbet_payout_total_amount
{
    display: none;
}*/


.betlist_table f_selection_event_home_team_name,
.betlist_table f_selection_event_away_team_name
{
    display: inline;
}

.betlist_table f_selection_event_away_team_name::before
{
    content: "-vs- ";
}


f_selection_selection_name {
    white-space: nowrap;
    display: block;
    font-weight: bold;
}

/*f_selection_selection_name::before {
    content:"/ ";
}*/

.betlist_table tr[bet_id] {
    /*background-color: #d9d9d9;*/
}

.betlist_table tr[bet_id] td {
    border-top:none;
}

.betlist_table tr[bet_id] td:first-child {
    border-top-left-radius: 4px;
    border-top:none;
}

.betlist_table tr[bet_id] td:last-child {
    border-top-right-radius: 4px;
    border:none;
}

.betlist_table .betlist_table_bet_types {
    border-bottom-left-radius: 4px;
    border:none;
}

.betlist_table .betlist_table_bet_selections {
    border-bottom-right-radius: 4px;
    border:none;
}


.betlist_table customer_name,
.betlist_table fbet_placed_date_utc,
.betlist_table fbet_placed_date,
.betlist_table fbet_settled_date_utc,
.betlist_table fbet_settled_date,
.betlist_table bet_stake,
.betlist_table bet_payout,
.betlist_table bet_max_winnings,
.betlist_table bet_selections table.betlist_bet_selections_table td[event] event_title,
/*.betlist_table bet_selections table.betlist_bet_selections_table td[market] f_selection_market_name,*/
/*.betlist_table bet_selections table.betlist_bet_selections_table td[market] f_selection_selection_name,*/
.betlist_table bet_selections table.betlist_bet_selections_table stree
{
    white-space: nowrap;
}

event_title {
    font-weight: bold;
}

.betlist_table customer_name,
.betlist_table f_bet_customer_username,
.betlist_table fbet_placed_date_utc,
.betlist_table fbet_placed_date,
.betlist_table fbet_settled_date_utc,
.betlist_table fbet_settled_date,
.betlist_table effective_stake,
.betlist_table stake_risk,
.betlist_table stake_accounting,
.betlist_table max_winnings,
.betlist_table max_winnings_risk,
.betlist_table max_winnings_accounting,
.betlist_table winnings,
.betlist_table winnings_risk,
.betlist_table bet_payout payout_total

{
    font-weight: bold;
}

.betlist_table bet_selections table.betlist_bet_selections_table stree {
    font-style: italic;
}


.betlist_table l_bet_stake,
.betlist_table effective_stake,
.betlist_table stake_risk,
.betlist_table stake_accounting,
.betlist_table l_max_winnings,
.betlist_table max_winnings,
.betlist_table max_winnings_risk,
.betlist_table max_winnings_accounting,
.betlist_table l_bet_winnings,
.betlist_table winnings,
.betlist_table winnings_risk,
.betlist_table winnings_accounting
{
    text-align: right;
}


.betlist_table l_bet_type_or_combinations {
    text-align: right;
    font-weight: bold;
    white-space: nowrap;
}

.betlist_table .betlist_table_bet_types
{
    vertical-align: top;
    text-align: center;
    /*padding-top: 12px;*/
}

.betlist_table td[is_inplay] {
    width: 5%;
    text-align: center;
}

.betlist_table td[resulting_outcome] {
    width: 5%;
}

.betlist_table td[odds] {
    width: 10%;
}

.betlist_table td[off_datetime] {
    width: 15%;
}

.betlist_table td[event] {
    width: 40%;
}

.betlist_table td[market] {
    width: 30%;
}


@media screen and (min-width: 501px) {


    .betlist_table {
        font-size: 0.95rem;
    }

    .betlist_table .betlist_bet_selections_table {
        font-size: 0.90rem;
    }


}

@media screen and (max-width: 500px) {

    .betlist_table {
        font-size: 0.95rem;
    }

    .betlist_table .betlist_bet_selections_table {
        font-size: 0.9rem;
    }


}

.betlist_table > tbody > tr {
    /*height:36px;*/
}

.betlist_table tr[winning] td {
    background-color: #ffdfe3;
}

.betlist_table tr[losing] td {
    background-color: #e5fbe5;
}

.betlist_table tr[cancelled] td {
    background-color: #d2eafb;
}

.betlist_table tr[running] td {
    background-color: #dee2e6;
}

.betlist_table tr[push_bet] td {
    background-color: #f9f3a8;
    ;
}

.betlist_table bet_stake  l_bet_stake,
.betlist_table bet_winnings  l_bet_winnings,
.betlist_table bet_payout  l_bet_payout
{
    margin-right: 5px;
}

.betlist_table bet_stake  l_bet_stake,
.betlist_table bet_winnings  l_bet_winnings,
.betlist_table bet_max_winnings  l_max_winnings,
.betlist_table bet_payout  l_bet_payout
{
    float: left;
}

.betlist_table bet_stake  l_bet_stake:after,
.betlist_table bet_winnings  l_bet_winnings:after,
.betlist_table bet_max_winnings  l_max_winnings:after,
.betlist_table bet_payout  l_bet_payout:after
{
    /*content:": ";*/
}

.betlist_container div[pagination] {
    padding-top: 15px;
    padding-bottom: 10px;
    padding-left: 10px;
    padding-right: 10px;
    font-size: inherit;
    background-color: #fff;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.betlist_container div[pagination] select {
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 5px;
    padding-right: 5px;
    width: 100px;
    border: 1px solid #dee2e6;
    background-color: #fff;
    outline: none;
}

.betlist_container div[pagination] page a {
    vertical-align: middle;
    margin-left: 4px;
    margin-right: 4px;
    color: #37477a;
}

.betlist_container div[pagination] span.betlist_pagination_show_filter {
    margin-left: 8px;
    vertical-align: middle;
}

.betlist_container div[pagination] span.betlist_pagination_show_filter svg {
    font-size: 1.75em;
    /*color: #4e4e4e;*/
    /*color: #495a72;*/
    color: #37477a;
}


.betlist_container div[pagination]:first-child {
    border-bottom: 1px solid #dee2e6;
    /*background-color: #dee2e6;*/
}

.betlist_container div[pagination]:last-child {
    /*background-color: #dee2e6;*/
    border-top: 1px solid #dee2e6;
}

.betlist_container div[pagination] bets_count{
    margin-right: auto;
    /*padding-left: 10px;*/
}

.betlist_container div[pagination] showing{
    margin-left: auto;
    padding-right: 15px;
    /*padding-left: 10px;*/
}

.betlist_container .capped_records {
    padding-top: 15px;
    padding-bottom: 10px;
    padding-left: 10px;
    padding-right: 10px;
    font-size: 1em;
    font-weight: bold;
    background-color: #fff;
    border-bottom: 1px solid #dedede;

}

.betlist_container .benchmarks {
    margin-top: 0px;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 10px;
    padding-right: 10px;
    font-size: 0.80em;
    background-color: #fff;
    border-top: 1px solid #dedede;
    display: flex;
    align-content: center;
    justify-content: flex-end;

}

.betlist_container .benchmarks > div {
    padding: 5px;
}

.betlist_container .benchmarks > div:not(:first-child) {
    margin-right: 15px;
}


.betlist_container .benchmarks .bbench div {
    display: inline-block;
}


.betlist_container .system_tags  f_bet_laid_by_trader_username {
    padding-left: 5px;
}

.betlist_container .system_tags  f_bet_manually_settled_username {
    padding-left: 5px;
}

.betlist_container .betlist_table tr.row_betlist_bet_types_and_selections > td {
    border-bottom: none;
    border-top: none;
}

.betlist_container .betlist_table tr.row_betlist_tags td .betlist_bet_types_and_selections_table {
    width: 100%;
}

.betlist_container .betlist_table .betlist_bet_types_and_selections_table  tr:first-child > td.bet_types_list {
    vertical-align: top;
    padding-top: 12px;
    width:7%;
}

.betlist_container .betlist_table .betlist_bet_types_and_selections_table .betlist_bet_selections_table tr:first-child td
{
    border-top: none;
}

.betlist_bet_selections_table td.more_legs > div {

    font-size: 2em;
    text-align: center;
    padding-top: 5px;
    padding-bottom: 5px;
    cursor: pointer;
}


running_legs {
    padding-right: 5px;
}

a.bet_list_external_customer_link,
a.bet_list_external_customer_link_view_customer
a.bet_list_external_event_link,
a.bet_list_external_market_link,
a.bet_list_external_selection_link
{
    text-decoration: underline;
}

a.bet_list_external_customer_link:hover,
a.bet_list_external_customer_link_view_customer:hover
a.bet_list_external_event_link:hover,
a.bet_list_external_market_link:hover,
a.bet_list_external_selection_link:hover
{
    text-decoration:  none;
}

a.bet_list_external_customer_link_view_customer {
    margin-left: 10px;
}

.bet_list_filter label {
    width: 100px;
    /* margin-bottom: 5px; */
    /* text-align: right; */
    padding-right: 5px;
    /* text-align: left; */
    display: flex;
    /* line-height: 1em; */
    white-space: normal;
    /* float: left; */
    align-items: center;
    flex-direction: row;
    justify-content: flex-start;
}

.bet_list_filter form button {
    margin-bottom: 5px;
    margin-left: 5px;
    border: 1px solid #dedede;
    outline: none;
    cursor: pointer;
}

.bet_list_filter label:after {
    /*content: ":";*/
}

.bet_list_filter .form-control {
    margin-bottom: 5px;
}


.betlist_container div[bets_summary] {
    padding-top:0px;
    padding-bottom: 0px;
    padding-left: 0px;
    padding-right: 0px;
    font-size: inherit;
    background-color: #fff;
    color: #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /*border-top: 1px solid #dedede;*/
}

table.bets_summary_table thead th{
    text-align: right;
    border-width: 1px;
}

table.bets_summary_table td{
    text-align: right;
    background-color: #ffffff;
}

table.bets_summary_table td.profit{
    font-weight: bold;
}

.bet_manager_home_item_content .business_unit_chooser {
    background-color: #efefef;
    min-width:125px;
    max-width:125px;
    width:125px;
}

.bet_list_filter .date_range_chooser,
.bet_list_filter .idref_chooser,
.bet_list_filter .bet_type_chooser,
.bet_list_filter .business_unit_chooser,
.bet_list_filter .user_chooser_dropdown,
.bet_list_filter .orderby_chooser,
.bet_list_filter .text_chooser
{
    /*    max-width: 330px;
        width: 330px;*/
    max-width: 275px;
    width: 275px;
}

.bet_list_filter .text_chooser_minimal
{
    max-width: 45px;
    width: 45px;
}

.bet_list_filter .no_records
{
    font-weight: bold;
    width: 100%;
    padding-top: 10px;
    padding-bottom: 15px;
    padding-left: 10px;
    padding-right: 10px;
    font-size: 1em;
    text-align: center;
}

.bet_list_filter .number_range_chooser
{
    max-width: 56px;
    width: 56px;
    font-size: 0.8em;
}

.bet_list_filter .textbox_as_label,
.bet_list_filter .textbox_as_label[disabled],
.bet_list_filter .textbox_as_label[readonly]
{
    border-color: #fff;
    text-align: center;
    padding: 0px;
    background-color: inherit;
    font-size: 0.7em;

}

.bet_list_filter .ems_chooser
{
    max-width: 92px;
    width: 92px;
}

.bet_list_filter .simple_select
{
    max-width: 330px;
    width: 330px;
}

.bet_list_filter .additional_flags
{
    max-width: 143px;
    width: 143px;
}

.bet_list_filter .additional_flags_2
{
    max-width: 105px;
    width: 105px;
}

.right_margin_a {
    margin-right: 18px;
}

label.label_idref,
label.label_customer,
label.label_bet_type,
label.label_user_chooser,
label.label_order_by,
label.label_business_unit,
label.label_dates,
label.label_ems {
    max-width: none;
    width:155px;
    /*align-items: flex-end;*/
}

label.label_lastx {
    max-width: none;
    width:90px;
    padding-left: 5px;
    justify-content: flex-end;
}

#fcustomer,
#fidref
{
    max-width: none;
    width: 275px;
}

.hr {
    display: block;
    width: 100%;
    border-bottom: 1px solid #d3d3d3;
    margin-bottom: 15px;
    margin-top: 5px;
    margin-left: 0px;
    margin-right: 05px;
}

#betlist_filter_form {
    max-height: 350px;
    overflow: auto;
    
}

