/*CSS HANDLER */
#couponcontainer {
    /* max-width: 490px; */
    /* margin: 0 auto; */
    /* border-radius: 8px; */
    /* box-shadow: 0 2px 12px rgba(0,0,0,0.15); */
    /* overflow: hidden; */
}

/* Tabs Navigation */
#right_column .betex-nav-tabs {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

#right_column .betex-nav-tabs li {
    flex: 1;
}

#right_column .betex-nav-tabs button {
    width: 100%;
    padding: 8px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border-top: 3px solid transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#right_column #smTabs.betex-nav-tabs li {
    padding: 5px
}

#right_column #smTabs.betex-nav-tabs button {
    padding: 2px 8px;
    border-radius: 4px;
    border: 0;
}

#right_column #smTabs.betex-nav-tabs li.active button {
    background: var(--customAccent);
    color: var(--txtCustomAccent);
}

#right_column .betex-nav-tabs li.active button {
    background: transparent;
    border-top-color: var(--customAccent);
    color: var(--txtCustomPrimary);
}

#right_column .betex-nav-tabs button:hover {
    background: rgba(255,255,255,0.15);
}

#right_column #smTabs.betex-nav-tabs li button:hover {
    opacity: 0.8
}

#_pxBetsCounter {
    display: inline-block;
    margin-left: 5px;
}

#_pxBetsCounter > span {
    background: rgba(255,255,255,0.25);
    padding: 4px 6px;
    border-radius: 50px;
    font-size: 12px;
    margin-left: 4px;
    line-height: 24px;
    font-weight: bold;
    color: var(--customAccent);
    width: 30px;
    display: inline-block;
}

/* Tab Content */
#right_column .betex-tab-content {
    padding: 8px 5px 5px 5px;
}

/* Title */
#pxcBetList ._pxcTitle {
    padding: 0;
}

._pxcTitle {
    font-size: 10px;
    font-weight: 600;
    margin-bottom: 5px;
    padding: 0;
    line-height: 1.4;
    color: var(--txtCustomPrimary);
    /* background: #ffffff1f;*/
    padding: 5px 10px;
    border-radius: 4px;
}

#_pxcmatchName a {
    display: block;
    font-size: 15px;
    color: var(--customAccent);
    /* filter: brightness(140%); */
}

._pxcTitle a {
    text-decoration: none;
    font-weight: 700;
}

._pxcTitle a:hover {
    text-decoration: underline;
}

/* Tables */
#_pxCouponContent .table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    margin-bottom: 10px;
}

/* Header Punta */
#_pxcPunta .table thead th {
    background: var(--backBG);
    color: var(--txtBackBG);
}

/* Header Banca */
#_pxcBanca .table thead th {
    background: var(--layBG);
    color: var(--txtLayBG);
}

#_pxcBanca .table thead th._pxcTh03 label {
    width: 50px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#_pxCouponContent thead th {
    padding: 5px 8px;
    text-align: left;
    font-weight: 600;
    font-size: 11px;
    /* color: var(--txtBackBG); */
    border-bottom: 1px solid var(--borderColorMainBG);
    line-height: 1.3;
    vertical-align: middle;
    /* background: var(--layBG); */
}

._pxcTh01, ._pxcTh02, ._pxcTh03 {
    text-align: center;
}

#_pxCouponContent :is( ._pxc_BA_NAB) :is(thead th, tbody td, tr, .radio label) {
    background: #ffeac8;
    border-color: #ffb47e;
    color: #222222;
}

#_pxCouponContent :is(._pxc_BA_NAB) ._pxcSubTitle {
    background: #ff730c;
    color: #fff;
    animation: pulseBgLay 0.3s ease-in-out 5;
    text-shadow: 1px 1px 1px #ff730c
}

#_pxCouponContent :is(._pxc_PU_NAB) :is(thead th, tbody td, tr, .radio label) {
    background: #e9fffd;
    border-color: #7ebdff;
    color: #222222;
}

#_pxCouponContent :is(._pxc_PU_NAB) ._pxcSubTitle {
    background: #2ab7b8;
    color: #fff;
    animation: pulseBgBack 0.3s ease-in-out 5;
    text-shadow: 1px 1px 1px #186869
}

@keyframes pulseBgLay {
    0% {
        background: #ff730c;
        filter: brightness(1);
    }

    50% {
        background: #db803a;
        filter: brightness(1.4);
    }

    100% {
        background: #ff730c;
        filter: brightness(1);
    }
}

@keyframes pulseBgBack {
    0% {
        background: #2ab7b8;
        filter: brightness(1);
    }

    50% {
        background: #3eb2b3;
        filter: brightness(1.4);
    }

    100% {
        background: #2ab7b8;
        filter: brightness(1);
    }
}

#_pxCouponContent :is(._pxc_PU_NAB, ._pxc_BA_NAB) .radio label {
    height: 14px;
}

/* Body rows */
#_pxCouponContent tbody tr {
    transition: background 0.2s;
    border-bottom: 1px solid var(--borderColorMainBG);
    background-color: var( --mainBG);
}

#_pxCouponContent tbody tr:last-child {
    border-bottom: none;
}

#_pxcPunta tbody tr:hover {
    background: rgba(166,216,255,0.15);
}

#_pxcBanca tbody tr:hover {
    background: rgba(250,201,209,0.15);
}

#_pxCouponContent td {
    padding: 5px 7px;
    vertical-align: middle;
}

/* Pronostico column */
._pxcProno {
    width: 40%;
}

._pxcProno > div {
    display: flex;
    align-items: center;
    gap: 4px;
}

._pxcProno span:last-child {
    font-size: 11px;
    color: #555;
    line-height: 1.3;
    /* white-space: nowrap; */
}

._pxcProno strong {
    color: #000;
    font-weight: 700;
    display: block;
    white-space: wrap;
}

/* Remove button */
._pxc_b_remove {
}

._pxc_b_remove svg {
    color: #d32f2f;
    width: 18px;
    height: 18px;
}

._pxc_b_remove svg:hover {
    color: #b71c1c;
    transition: all 0.2s;
    transform: scale(1.1);
}

/* Input columns */
._pxcOdd, ._pxcBetting, ._pxcProfit {
    width: 20%;
    text-align: center;
}

#_pxCouponContent .form-group {
    margin: 0;
}

#_pxCouponContent .form-control {
    width: 100%;
    padding: 0;
    border: 1px solid #ccc;
    border-radius: 3px;
    text-align: center;
    font-size: 10px;
    font-weight: 500;
    transition: all 0.2s;
    background: #fff;
    color: #222;
    margin: 0 !important;
    line-height: 25px;
}

#_pxCouponContent .arrows {
    position: absolute;
    right: -5px;
    display: flex;
    flex-direction: column;
    width: 11px;
    top: 0;
    height: 100%;
}

#_pxCouponContent .arrows button {
    color: #aaa;
    height: 50%;
    line-height: 1;
}

#_pxCouponContent #_pxcStakeInput {
    padding: 8px;
    margin: 0 !important;
    margin-top: 10px !important;
}

#_pxCouponContent .form-control:focus {
    outline: none;
    border-color: #666;
}

#_pxcPunta .form-control:focus {
    border-color: var(--backBGHover);
    box-shadow: 0 0 0 2px rgba(166,216,255,0.3);
}

#_pxcBanca .form-control:focus {
    border-color: var(--layBGHover);
    box-shadow: 0 0 0 2px rgba(250,201,209,0.3);
}

/* Profit display */
._pxcProfit > div {
    font-weight: 700;
    font-size: 13px;
}

#_pxcPunta ._pxcProfit span {
    color: var(--backBGHover);
}

#_pxcBanca ._pxcProfit span {
    color: var(--layBGHover);
}

/* Radio buttons */
#_pxCouponContent .radio {
    /* margin: 0px 0; */
}

#_pxCouponContent .radio label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    color: var(--txtLayBG);
    margin: 0;
}

#_pxCouponContent .radio input[type="radio"] {
    cursor: pointer;
    margin: 0;
}

/* Actions area */
._pxcActions {
    /* background: #f8f9fa; */
    /* padding: 5px; */
    /* border-radius: 6px; */
    /* margin-top: 13px; */
    /* display: flex; */
    /* gap: 10px; */
    /* justify-content: center; */
    /* flex-direction: column; */
}

#_pxcA_00 {
    display: flex;
    flex-direction: column;
}

._pxcRiskInfo {
    font-size: 13px;
    font-weight: 600;
    display: block;
    flex: 0 0 auto;
    margin-bottom: 10px;
}

._pxcRiskValue {
    color: var(--primaryBlue);
    font-weight: 700;
}

/* Buttons */
#_pxca_buttons {
    display: flex;
    justify-content: space-around;
}

#_pxca_buttons .btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    width: 49%;
    clear: both;
    float: left;
}

#_bxca_amounts ul li {
    min-width: 15%;
    /* oppure rimuovi proprio la regola */
}

#_bxca_amounts ul li button {
    width: 100%;
    /* dimensione compatta ma cliccabile */
    padding: 4px 10px;
    color: var(--txtCustomPrimary);
    background: var(--customPrimaryLight);
    font-size: 12px;
}

#_pxCouponContent .btn-sm {
    /* padding: 6px 12px; */
    /* font-size: 11px; */
}

#_pxCouponContent .btn-danger {
    background: #dc3545;
    color: white;
}

#_pxCouponContent .btn-danger:hover {
    background: #c82333;
    /* transform: translateY(-1px); */
    box-shadow: 0 2px 6px rgba(220,53,69,0.3);
}

#_pxCouponContent .btn-default {
    background: #118223;
    color: #fff;
}

#_pxCouponContent .btn-default:hover {
    background: var(--darkBlue);
    /* transform: translateY(-1px); */
    box-shadow: 0 2px 6px rgba(26,84,144,0.3);
}

#_pxCouponContent .btn-success {
    background: #28a745;
    color: white;
}

#_pxCouponContent .btn-success:hover {
    background: #218838;
    /* transform: translateY(-1px); */
    box-shadow: 0 2px 6px rgba(40,167,69,0.3);
}

/* Checkboxes */
#_pxca_inputs {
    display: flex;
    justify-content: space-between;
}

.betex-form-group {
    margin-top: 10px;
}

#_pxca_inputs .betex-form-group #_pxcShowBook {
    float: right
}

#_pxCouponContent .checkbox-inline {
    /* display: inline-flex; */
    /* align-items: center; */
    /* gap: 4px; */
    font-size: 11px;
    margin-left: 0;
    /* cursor: pointer; */
    line-height: 22px;
    /* color: var(--txtMainBG); */
}

#_pxCouponContent input[type="checkbox"] {
    cursor: pointer;
    display: block;
    float: left;
    margin: 5px;
}

h1._pxcTitle._pxcTitleBancate {
    background: var(--layBG);
    color: var(--txtLayBG);
}

h1._pxcTitle._pxcTitlePuntate {
    background: var(--backBG);
    color: var(--txtBackBG);
}

#pxcBetList :is(h1._pxcTitle._pxcTitleBancate, h1._pxcTitle._pxcTitlePuntate) {
    text-align: center;
    line-height: 15px;
    border-radius: 0;
    margin-bottom: 0;
    padding: 5px 10px;
}

._pxcSubTitle {
    background: var(--mainBG);
    color: var(--txtMainBG);
    text-transform: uppercase;
    font-weight: bold;
    font-size: 10px;
    padding: 5px;
}

._pxc_Bancate ._pxcSubTitle {
    color: var(--txtLayBG);
}

._pxc_Puntate ._pxcSubTitle {
    /* border-bottom: 2px solid var(--backBG); */
    color: var(--txtBackBG);
}

/* Empty state */
:is(#pxcBetList,#_pxcEmpty) p {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 20px;
}

:is(#pxcBetList,#_pxcEmpty) p i {
    font-size: 30px;
    vertical-align: middle;
    /* margin-right: 10px; */
}
#_pxCouponContent .betex-nav-tabs li:last-child a {
    display:none;
}
@media (max-width: 991px) {
    #_pxCouponContent .betex-nav-tabs li:first-child {
        display:none;
    }

    #_pxCouponContent .betex-nav-tabs li:last-child a {
        position: absolute;
        right: 15px;
        top: 16px;
        background: var(--customPrimaryLight);
        padding: 5px;
        border-radius: 5px;
        text-transform: uppercase;
        display:block;
    }

    #_pxCouponContent ._pxcProno {
        width: 30%;
    }

    #_pxCouponContent .arrows button {
        background: #aaa;
        color: #fff;
        font-size: 10px;
        line-height: 15px;
        width: 15px;
        text-align: center;
        padding: 0;
        height: 100%;
        border-radius: 0;
    }

    #_pxCouponContent .arrows {
        /* position:relative; */
        display: flex;
        flex-direction: row;
        width: calc(100% + 4px);
        justify-content: space-between;
        right: -2px;
        align-items: center;
        z-index: 1000;
    }

    #_pxCouponContent ._pxcOdd .input-group {
        display: flex;
        flex-direction: column;
    }

    #_pxCouponContent .form-control {
        font-size: 12px;
        border-color: #aaa !important;
        z-index: 9999;
        left: 13px;
        border-radius: 0;
        width: calc(100% - 26px);
        flex: unset;
    }

    #_bxca_amounts ul li {
        flex: 1 1 30%;
        /* min-width: 13%; */
    }

    #_bxca_amounts > ul {
        display: flex;
        flex-direction: row;
        align-content: flex-start;
        flex-wrap: wrap;
    }

    #_pxCouponContent #_pxca_inputs label, #_bxca_amounts ul li button {
        font-size: 16px;
    }

    #_pxca_inputs, #_pxca_buttons {
        display: flex;
        flex-direction: column-reverse;
    }

    ._pxcProno span:last-child, ._pxcRiskInfo, #_pxca_buttons .btn {
        width: 100%;
        font-size: 12px;
    }

    #_pxca_buttons .btn:first-child {
        margin-top: 10px;
        font-size: 12px;
    }

    #_pxca_inputs .betex-form-group #_pxcShowBook {
        float: left;
    }

    #_pxCouponContent td {
        padding: 5px;
    }

    #right_column .betex-tab-content {
        /* padding:0; */
    }
}
