/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/*
    Created on : Nov 12, 2017, 9:36:35 AM
    Author     : menglengchea
*/
html,
body {
    height: 100%;
    -webkit-text-size-adjust: none;
    touch-action: manipulation;
}

body {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.42857143;
    color: #000;
}

/*override styles*/
label {
    display: block;
    margin-bottom: 0;
}

label input,
label select {
    font-weight: normal;
}

.small {
    color: #cccccc;
    font-style: italic;
    font-weight: normal;
}

.modal {
    width: 400px;
    margin: auto;
}

.modal-dialog {
    width: auto;
    height: auto;
    margin: 30px;
}

.password {
    -webkit-text-security: disc;
}

.form-control[readonly] {
    background: transparent;
}

.center-page {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 100%;
}

input[type="text"],
input[type="tel"],
input[type="number"],
input[type="password"],
select {
    border: 1px solid #ccc;
    border-radius: 4px;
    font-weight: normal;
    line-height: 16px;
    padding: 0 5px;
    height: 40px;
}

.btn {
    background: #2167a5;
    color: #fff;
    height: 40px;
    padding: 6px;
}

#enter {
    background: #2167a5;
    color: #fff !important;
}

.btn.focus,
.btn:focus,
.btn:hover,
#enter:hover {
    color: #fff;
    background: #286090;
}

.btn,
.dropdown-menu {
    font-size: 15px;
}

.m-r-10 {
    margin-right: 10px;
}

/*extra styles*/
#printarea {
    background: #ffffff7a;
}

.table>tbody>tr>td {
    vertical-align: middle !important;
}

.table th,
.table input {
    text-align: center;
}

.bet-table {
    font-size: 13px;
    background: #ffffff7a;
}

.res-table {
    font-size: 18px;
}

.bet-table tbody tr.disable {
    background: #ddd !important;
}

.bet-table tbody tr:nth-child(2n),
.res-table tbody tr:nth-child(2n) {
    background: #F4F8FB;
}

.bet-table th,
.bet-table td,
.detail-table th,
.detail-table td,
.res-table th,
.res-table td {
    border: 1px solid #dddddd !important;
    padding: 5px !important;
    line-height: 1.42857143;
    white-space: nowrap;
    text-align: center;
    vertical-align: middle !important;
}

.hn-table tbody td,
.hn-table tbody th {
    line-height: 2.2 !important;
}

.res-table tbody tr:first-child th:nth-child(n+2) {
    color: red;
    font-size: 25px;
}

.res-table tbody tr:nth-child(2) th:nth-child(n+2) {
    color: blue;
}

.res-table tbody tr:last-child th:nth-child(n+2) {
    color: red;
}

.kh-table tbody tr:nth-child(2) th:nth-child(n+2) {
    color: black;
}

.kh-table tbody tr:first-child th:nth-child(n+2) {
    color: red;
    font-size: 21px;
}

.kh-table tbody tr:last-child th:nth-child(n+2),
.kh-table tbody tr:nth-last-child(2) th:nth-child(n+2),
.kh-table tbody tr:nth-last-child(3) th:nth-child(n+2) {
    color: blue;
}

.hn-kh-table tbody td,
.hn-kh-table tbody th {
    line-height: 1.80 !important;
    font-size: 115%;
}

.hn-kh-table tbody tr:first-child th:nth-child(n+2) {
    font-size: 130% !important;
}

.hn-table tbody tr:nth-child(2) th:nth-child(n+2) {
    color: black;
}

.hn-table tbody tr:nth-child(7) th:nth-child(n+2) {
    color: blue;
}

.hn-table tbody tr:first-child th:nth-child(n+2) {
    font-size: 29px;
}

.hn-table tbody tr:last-child th:nth-child(n+2) {
    font-size: 26px;
}

.compensate {
    background: #f2dede !important;
    color: #a94442 !important;
}

.paid {
    background: #f2dede !important;
    color: #a94442 !important;
}

textarea,
select,
input,
button,
a {
    outline: 0 !important;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

input:focus {
    outline: 0 !important;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
}

#panel0 {
    background: #337ab7;
    font-size: 15px;
    position: relative;
    z-index: 999;
    border-bottom: 1px solid #337ab7;
    margin-bottom: -1px;
    /*                -webkit-box-shadow: 0 2px 5px rgba(0,0,0,0.3);
                box-shadow: 0 2px 5px rgba(0,0,0,0.3);*/
}

#panel0>div>span {
    position: relative;
}

#panel0>div>span>input {
    text-align: center;
    border: 0px;
    background: #ffd;
}

/*    #panel0 a.btn {
        background: #ddd;
        color: #000;
        padding-top: 7px;
    }*/

#panel1 {
    position: fixed;
    top: 40px;
    left: 0;
    right: 0;
    bottom: 204px;
    margin-top: 0px;
}

#panel2 {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
}

input[type='text'],
button {
    -webkit-appearance: none;
}

.btn:active,
.btn:hover,
.btn:focus {
    outline: 0 !important;
}

#all {
    font-size: 85%;
}

#currency span {
    display: inline-block;
    padding: 0 5px;
    min-width: 25px;
    text-align: center;
    background: #eeeeee;
}

#currency.riel span:first-child {
    background: #ffa;
}

#currency.usd span:last-child {
    background: #ffa;
}

.keypad,
.channel,
.special {
    padding: 3px 5px 5px 5px;
    margin: 0;
    background: #ececec;
    min-height: 204px;
}

.keypad>div,
.channel>div,
.special>div {
    display: table;
    width: 20%;
    float: left;
    padding: 2px;
}

.keypad>div>span,
.channel>div>span,
.special>div>span {
    display: block;
    text-align: center;
    vertical-align: middle;
    height: 45px;
    line-height: 45px;
    background: #ffffff;
    border-radius: 5px;
    font-size: 24px;
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.2);
    /*font-weight: bold;*/
}

.keypad>div>span.selected,
.channel>div>span.selected,
.special>div>span.selected {
    background: #cecece;
}

.keypad>div>span.disabled {
    opacity: .40;
}

.keypad>div>span:not(.disabled):active,
.channel>div>span:not(.disabled):active,
.special>div>span:not(.disabled):active {
    background: #cecece;
}

.keypad div:nth-child(3):after {
    /*        content: "\a ";
                        white-space: pre;*/
}

.noselect {
    cursor: default;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#receipt {
    position: relative;
    background: #ffa;
    font-size: 135%;
    float: left;
    width: 57%;
    height: 100%;
    display: table;
}

#receipt>div {
    height: 100%;
    display: table-row;
}

#receipt>div>div {
    display: table-cell;
    height: 100%;
    position: relative;
}

#receipt>div>div>div {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 55px;
    width: 100%;
}

#receipt>div>div>div>div {
    padding: 0 5px;
}

#receipt>div>div>div>div:first-child {
    height: 100%;
    overflow: hidden;
    overflow-y: auto;
    /*font-size: 16px;*/
}

#receipt>div>div>div>div:last-child {
    background: #ececec;
}

#receipt>div:last-child>div {
    padding: 5px;
}

.underline {
    text-decoration: underline;
}

#betting {
    margin-left: 57%;
    position: relative;
    height: 100%;
    width: 43%;
    display: table;
}

#betting>div {
    height: 100%;
    display: table-row;
    padding: 5px;
    font-size: 18px;
}

#betting>div>div {
    display: table-cell;
    height: 100%;
    position: relative;
}

#betting>div>div>div {
    position: absolute;
    top: 0px;
    width: 100%;
}

#betting>div>div>div>div {
    padding: 5px;
}

#betting>div:last-child>div {
    padding: 7px 10px 3px 0;
    text-align: right;
    background: #ececec;
}

#betting h3 {
    margin-top: 5px;
    border-bottom: 1px solid #ccc;
    width: 100%
}

#betform {
    width: 100%
}

#betform div:nth-child(2) {
    display: none;
}

#betform.slash div:nth-child(2),
#betform.greater div:nth-child(2) {
    display: block;
}

#betform div,
#searchform div {
    position: relative;
    padding-bottom: 10px;
    text-align: center;
}

#betform div input[type="text"],
#searchform div input[type="text"] {
    width: 100%;
}

#betform div i {
    position: absolute;
    line-height: 30px;
    width: 25px;
    color: red;
}

/*addon bootstrap*/
.dropdown-menu {
    min-width: 70px
}

.dropdown-menu:before {
    top: -7px;
    left: 6px;
    content: '';
    display: inline-block;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 7px solid rgba(0, 0, 0, .15);
    border-top: 0;
    border-bottom-color: rgba(0, 0, 0, .2);
    position: absolute;
}

.dropdown-menu:after {
    top: -6px;
    left: 7px;
    content: '';
    display: inline-block;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #fff;
    border-top: 0;
    position: absolute;
}

.dropdown-menu>li>a,
.dropdown-menu ul>li>a {
    padding: 10px 20px;
}

.dropdown-menu>li:not(:last-child)>a,
.dropdown-menu ul>li:not(:last-child)>a {
    border-bottom: 1px solid #e5e5e5;
}

.dropdown-menu ul>li>a {
    display: block;
    clear: both;
    font-weight: 400;
    line-height: 1.42857143;
    color: #333;
    white-space: nowrap;
}

.dropdown-backdrop {
    position: inherit;
}

#login .dropdown-menu:before {
    left: auto;
    right: 6px;
}

#login .dropdown-menu:after {
    left: auto;
    right: 7px;
}

/**/
#list>div>div>span {
    display: block;
    text-align: center;
    /*background: #ffa;*/
    border: 1px solid #000;
    margin-bottom: 4px;
}

#list>div>div>div>span {
    display: block;
    white-space: nowrap;
    border-bottom: 1px solid #000;
    padding-top: 6px;
    font-weight: bold;
}

#list>div>div>div>div.a0 {
    background: red;
}

#list>div>div>div>div.a1 {
    background: yellow;
    position: relative;
}

#list>div>div>div>div.a1 b {
    position: absolute;
    margin-left: -5px;
    color: red;
}

#list>div>div>div>div.a0 span {
    text-decoration: line-through;
}

#list .num {
    width: 65%;
    display: inline-block;
    text-align: right;
}

#list .amount {
    width: 35%;
    display: inline-block;
    text-align: left;
}

#list .num>span,
#list .amount>span {
    display: block;
}

#list .num>span {
    word-wrap: break-word;
}

#list .num>span.i,
#list .amount>span.i {
    font-style: italic;
    font-size: 75%;
}

#list .num>span>i {
    display: inline-block;
    font-size: 70%;
}

#list .num>span>span {
    display: inline-block;
    width: 14px;
}

.datepicker+.bootstrap-datetimepicker-widget {
    width: 240px !important;
}

.timepicker+.bootstrap-datetimepicker-widget {
    width: 180px !important;
}

table a:hover {
    text-decoration: none;
}
