﻿body {
    color: #333;
    font-family: Tahoma;
    position: relative;
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    font-size: 11pt;
}

hr {
    margin-top: 7px;
    margin-bottom: 7px;
}

.clearfix {
    clear: both;
}

.isLoginPage .br-mainpanel,
.isLoginPage .br-pagebody {
    margin: 0 !important;
    padding: 0 !important;
}

body.d-loading {
    height: 100vh;
    overflow: hidden;
}

.loadindPage {
    z-index: 99999999;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5) url(../img/loading.gif) no-repeat center;
}

.loadindPage {
    position: fixed;
}

.messi-modal {
    min-height: 100% !important;
}

.br-mainpanel {
    transition: unset;
}

.form-control-plaintext {
    color: #333;
}

.table-vmiddle th, .table-vmiddle td {
    vertical-align: middle !important;
}

.jq-toast-wrap {
    z-index: 9999999 !important;
}

.d-fullscreen {
    background: #fff !important;
    position: fixed !important;
    z-index: 99999;
    margin: 0 !important;
    padding: 0 !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    width: 100% !important;
    height: 100% !important;
}

    .d-fullscreen .br-pagebody {
        margin: 0 !important;
        padding: 0 !important;
        height: 100% !important;
    }

    .d-fullscreen .br-section-wrapper {
        top: 0;
        left: 0;
        position: absolute;
        height: 100%;
        width: 100%;
    }

    .d-fullscreen .br-footer {
        display: none;
    }

    .d-fullscreen .modal {
        background: rgba(0, 0, 0, 0.5);
    }

.modal {
    background: rgba(0, 0, 0, 0.5);
}

.modal-xl {
    width: 94%;
    max-width: 1140px;
}


.tables-filter {
    display: block;
}

    .tables-filter .form-group {
        margin: 2px 5px;
        display: inline-block !important;
        float: left;
    }

        .tables-filter .form-group.d-none {
            display: none !important;
        }

        .tables-filter .form-group label.text-nowrap {
            margin: 0;
            font-size: 11pt;
            width: 100%;
            display: block;
        }

        .tables-filter .form-group select.form-control, .tables-filter .form-group input.form-control,
        .tables-filter .form-group .input-group-text {
            height: 31px;
            font-size: 15px;
        }

    .tables-filter .form-control.selectize-control {
        height: 31px;
    }

    .tables-filter .form-group .selectize-input {
        min-height: 29px;
        padding: 2px 25px 2px 10px;
        line-height: 25px;
        white-space: nowrap;
    }

    .tables-filter .form-group .selectize-control.single .selectize-input:after {
        right: 7px;
    }

.box-functions {
    display: block;
    padding: 10px;
    margin-bottom: 15px;
    background: #eee;
    border-radius: 10px;
}

    .box-functions .title {
        font-size: 13pt;
        font-weight: 600;
        margin: 0;
        padding: 6px 0;
        line-height: 25px;
        color: #bf1515;
    }

.table-tools label {
    width: 70px;
    padding-right: 5px;
    display: inline;
    overflow: hidden;
}

.table-tools .form-control {
    width: calc( 100% - 70px );
    display: inline;
}

.table thead > tr > th, .table tfoot > tr > th {
    color: #000;
    white-space: nowrap;
    /*font-size: 8pt;*/
    font-weight: bold !important;
    padding: 5px 5px;
}

.table tbody > tr > td, .table tbody > tr > th {
    padding: 2px 5px;
    padding: 5px;
    vertical-align: middle;
}

.table .table-buttons {
    white-space: nowrap;
    white-space: normal;
    width: 100px;
    text-align: center;
}

    .table .table-buttons .btn {
        font-size: 8pt !important;
        padding: 3px;
        display: block;
        width: 100%;
        margin: 3px 0;
        display: inline-block;
        width: auto;
        min-width: 48px;
    }

.col-form-label {
    padding-top: 5px;
    padding-bottom: 0;
}

.form-group {
    margin-bottom: 10px;
}
/*.form-control,*/
.dataTables_filter input {
    height: 40px;
    padding: 8px 10px;
    line-height: 24px;
}

select.ms-multiple {
    opacity: 0;
    display: none !important;
}

.ms-options-wrap {
    margin-left: 0;
    margin-right: 0;
    height: 31px;
    min-width: 100px;
    max-width: 250px;
}

    .ms-options-wrap > button:focus, .ms-options-wrap > button {
        white-space: nowrap;
        height: 31px;
        padding: 3px 25px 3px 10px;
        line-height: 25px;
        color: #495057;
        background-color: #fff;
        background-clip: padding-box;
        border: 1px solid #ced4da;
        border-radius: 0.2rem;
        transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
        text-overflow: ellipsis;
        overflow: hidden;
        font-size: 16px;
    }

    .ms-options-wrap > .ms-options {
        min-width: 300px;
    }

        .ms-options-wrap > .ms-options ul {
            margin: 0;
            padding: 0;
            list-style: none;
        }

        .ms-options-wrap > .ms-options .ms-selectall,
        .ms-options-wrap > .ms-options .ms-unselectall {
            display: inline-block;
            font-size: .9em;
            text-transform: uppercase;
            font-weight: bold;
            text-decoration: none;
        }

            .ms-options-wrap > .ms-options .ms-unselectall.global {
                margin: 4px 5px;
            }

        .ms-options-wrap > .ms-options .ms-ulselectall:hover {
            text-decoration: underline;
        }



form label.error {
    font-weight: bold;
    font-size: 8pt;
    color: #f00;
}

@media(min-width:768px) {
    .br-section-wrapper {
        padding: 15px;
    }

    .br-mainpanel {
        height: calc(100vh - 60px);
    }

    #colLeft {
        width: calc(100% - 265px) !important;
        flex: 0 0 calc(100% - 265px);
        max-width: calc(100% - 265px);
        overflow: auto;
        height: 100%;
    }

    #colRight {
        width: 265px !important;
        flex: 0 0 265px;
        max-width: 265px;
        overflow: auto;
        padding-left: 0;
        max-height: calc(100vh - 30px) !important;
    }
}

@media(min-width: 981px) AND (max-width: 1024px) {
    .br-mainpanel {
        height: calc(100vh - 60px);
    }

    #colLeft {
        width: calc(100% - 215px) !important;
        flex: 0 0 calc(100% - 215px);
        max-width: calc(100% - 215px);
        overflow: auto;
        height: 100%;
        padding-right: 0;
    }

    #colRight {
        width: 215px !important;
        flex: 0 0 215px;
        max-width: 215px;
        overflow: auto;
        padding-left: 15px;
    }

    .table thead > tr > th {
        /*font-size: 7pt;*/
    }

    .input-qty-updown {
        min-width: 100px;
    }

    #frmStockLayout .tableFilterProduct table td .lblProductName {
        min-width: 150px !important;
    }

    #frmStockLayout #colRight .form-group label {
        padding-right: 0;
        font-size: 8pt;
        white-space: nowrap;
    }
}

@media(min-width: 1025px) {
    .br-mainpanel {
        height: calc(100vh - 60px);
    }

    #colLeft {
        width: calc(100% - 300px) !important;
        flex: 0 0 calc(100% - 300px);
        max-width: calc(100% - 300px);
        overflow: auto;
        height: 100%;
    }

    #colRight {
        width: 300px !important;
        flex: 0 0 300px;
        max-width: 300px;
        overflow: auto;
        padding-left: 15px;
    }
}

@media (min-width: 576px) {
    .br-pagebody {
        min-height: calc(100% - 78px);
    }
}

.module-nhapkho .br-pagebody {
    position: relative;
}

/*.module-nhapkho .br-section-wrapper {
    top: 30px;
    left: 30px;
    position: absolute;
    height: calc(100% - 30px);
    width: calc(100% - 60px);
}*/

#frmStockLayout {
    display: flex;
    height: 100%;
}

    #frmStockLayout .boxFilterProduct.showEdit {
        position: fixed;
        width: 100%;
        left: 0;
        top: 0;
        height: 100%;
        background: #fff;
        z-index: 999;
        padding: 30px;
    }

    #frmStockLayout .boxFilterProduct {
        display: block;
        margin: 0 auto 30px;
        position: relative;
        min-width: 179px;
    }

        #frmStockLayout .boxFilterProduct > input,
        #frmStockLayout .boxFilterProduct input#txtFilterProduct {
            height: 50px;
            padding: 10px 35px;
            line-height: 30px;
            font-size: 13pt;
            border-radius: 30px;
        }

            #frmStockLayout .boxFilterProduct input#txtFilterProduct + .input-group-append button {
                height: 50px;
                padding: 10px;
                line-height: 30px;
                border-radius: 30px;
            }

        #frmStockLayout .boxFilterProduct > ul {
            position: absolute;
            left: 30px;
            width: calc(100% - 60px);
            z-index: 9999;
            height: auto;
            max-height: 400px;
            overflow-y: auto;
            border: 2px solid #6593CF;
            background: #fff;
            list-style: none;
            padding: 0;
            margin: 0;
        }

            #frmStockLayout .boxFilterProduct > ul li {
                border-bottom: 1px dotted #ccc;
                padding: 5px 10px 5px 10px;
                cursor: pointer;
                min-height: 51px;
                position: relative;
            }

                #frmStockLayout .boxFilterProduct > ul li.active {
                    background-color: #BFDBFF;
                }

                #frmStockLayout .boxFilterProduct > ul li:hover {
                    background-color: #eee;
                }

                #frmStockLayout .boxFilterProduct > ul li .img {
                    position: absolute;
                    top: 5px;
                    left: 10px;
                    height: 40px;
                    width: 40px;
                    z-index: 5;
                    border-radius: 100%;
                    background-size: auto 100%;
                    background-position: center;
                    background-repeat: no-repeat;
                    display: none;
                }

                #frmStockLayout .boxFilterProduct > ul li p {
                    margin: 0;
                }

    #frmStockLayout .tableFilterProduct {
        display: block;
        height: 100%;
    }

    #frmStockLayout .boxFilterProduct + .tableFilterProduct {
        height: calc(100% - 80px);
    }

    #frmStockLayout .tableFilterProduct .table-responsive {
        height: calc(100% - 75px);
    }



    #frmStockLayout .tableFilterProduct .boxFilterProduct > input,
    #frmStockLayout .tableFilterProduct .boxFilterProduct input#txtFilterProduct {
        height: 40px;
        padding: 5px 15px;
        line-height: 30px;
        font-size: 12pt;
        border-radius: 3px;
    }

        #frmStockLayout .tableFilterProduct .boxFilterProduct input#txtFilterProduct + .input-group-append button {
            height: 40px;
            padding: 5px;
            line-height: 30px;
            border-radius: 3px;
        }

    #frmStockLayout .tableFilterProduct .boxFilterProduct > ul {
        left: 0;
        width: calc(100% - 60px);
        min-width: 300px;
    }


.module-sanxuat #frmStockLayout .tableFilterProduct .table-responsive {
    height: auto;
}

#frmStockLayout .tableFilterProduct table {
    border: 1px solid #dee2e6;
    margin: 0;
}

    #frmStockLayout .tableFilterProduct table div.alert {
        margin: 0;
        padding: 30px 15px;
        font-size: 15pt;
    }

    #frmStockLayout .tableFilterProduct table thead th {
        padding: 7px 3px;
        border: none;
        border-bottom: 2px solid #999;
    }

    #frmStockLayout .tableFilterProduct table td {
        padding: 5px 3px;
        position: relative;
    }

        #frmStockLayout .tableFilterProduct table td .lblProductName {
            min-width: 220px;
        }

#frmStockLayout .tableFilterProduct .form-control.selectize-control {
    height: 40px;
}

    #frmStockLayout .tableFilterProduct .form-control.selectize-control .selectize-input {
        padding: 7px 15px;
        font-size: 12pt;
        font-weight: bold;
        line-height: 24px;
        white-space: nowrap;
    }

#frmStockLayout .form-group {
    margin-bottom: 5px;
}

    #frmStockLayout .form-group label {
        margin-bottom: 0;
    }

#formModal .input-group .form-control.selectize-control {
    height: 36px;
}

    #formModal .input-group .form-control.selectize-control .selectize-input {
        padding: 7px 10px;
        font-size: 11pt;
        font-weight: bold;
        line-height: 20px;
        white-space: nowrap;
        border-radius: 3px 0 0 3px;
    }

.input-qty-updown {
    min-width: 100px;
}

    .input-qty-updown input[type=text] {
        font-size: 10pt;
        font-weight: bold;
        text-align: center;
        padding: 5px 1px;
        line-height: 20px;
        height: 30px;
        border-radius: 5px !important;
    }

    .input-qty-updown button {
        width: 24px;
        height: 24px;
        text-align: center;
        padding: 2px;
        line-height: 20px;
        margin: 3px 0 0;
    }

        .input-qty-updown button.btn-min {
            border-radius: 10px 0 0 10px !important;
        }

        .input-qty-updown button.btn-plus {
            border-radius: 0 10px 10px 0 !important;
        }

.toggleMoney {
    background: #fff;
    border: 1px solid #ccc;
    padding: 5px 5px;
    border-radius: 7px;
    position: absolute;
    top: 15px;
    right: 2px;
    width: 150px;
    height: auto;
    z-index: 9;
    box-shadow: 0 0 10px #001;
}

    .toggleMoney .btn-group-toggle label.btn {
        padding: 4px 5px;
        min-width: 24px;
        line-height: 20px;
    }


.form-buttons .row {
    margin: -5px;
}

    .form-buttons .row [class*=col-] {
        padding: 5px;
    }

.table th.d-block, .table td.d-block {
    display: table-cell !important;
}

.table .jumbotron {
    padding: 5px;
    margin: 0;
    margin-top: 5px;
    white-space: nowrap;
}

.table .alert {
    min-width: 350px;
}

.visible-xs {
    display: none;
}

@media (max-width: 767.98px) {

    .visible-xs {
        display: block;
    }

    .module-nhapkho .br-section-wrapper {
        position: relative;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        padding: 15px;
    }

    .table th.d-xs-none, .table td.d-xs-none {
        display: none !important;
    }
}

.bootstrap-datetimepicker-widget.dropdown-menu {
    z-index: 99999999999;
}

    .bootstrap-datetimepicker-widget.dropdown-menu.pull-right {
        right: 0 !important;
        left: unset;
    }

    .bootstrap-datetimepicker-widget.dropdown-menu thead .picker-switch {
        display: table-cell;
    }

.bootstrap-datetimepicker-widget table th {
    color: #000;
}

.bootstrap-datetimepicker-widget table td {
    color: #000;
    font-weight: bold;
}

    .bootstrap-datetimepicker-widget table td.day.disabled {
        color: #666;
        font-weight: normal;
    }

    .bootstrap-datetimepicker-widget table td.day.new {
        color: #637689;
    }

.bootstrap-datetimepicker-widget .timepicker-picker table th,
.bootstrap-datetimepicker-widget .timepicker-picker table td {
    border: none !important;
    height: 24px;
    line-height: 24px;
}

.bootstrap-datetimepicker-widget .timepicker-picker span,
.bootstrap-datetimepicker-widget .timepicker-picker span {
    height: 24px;
    line-height: 24px;
}


.messi .btn {
    min-width: 80px;
    font-size: 11pt;
    font-weight: bold;
}


#partMakeList {
    font-size: 10pt;
    margin: 0 -7px;
}

    #partMakeList > div {
        padding: 7px;
    }

    #partMakeList .partItem {
        border: 1px solid #ccc;
        border-radius: 7px;
        padding: 10px;
    }

    #partMakeList .form-group {
        float: left;
        width: 100%;
        margin: 0 -2px 5px;
        position: relative;
    }

        #partMakeList .form-group .time {
            position: absolute;
            top: 0;
            right: -13px;
            font-size: 8pt;
        }

    #partMakeList label {
        white-space: nowrap;
        display: inline-block;
        height: 28px;
        line-height: 20px;
        padding: 4px 2px 4px 2px;
        float: left;
    }

    #partMakeList div.col {
        padding-left: 2px;
        padding-right: 2px;
    }

    #partMakeList input[type="text"],
    .input-dot-line {
        display: inline-block;
        border: none;
        background: #fff;
        border-bottom: 1px dotted #000;
        border-radius: 0;
        width: 100%;
        /*min-width:80px;*/
        height: 28px;
        padding: 4px;
        line-height: 20px;
        outline: none;
        float: left;
        margin: 0 2px;
        font-size: 10pt;
    }

        #partMakeList input[type="text"].dateTimePicker {
            /*min-width: 120px;*/
        }

    #partMakeList .form-group.has-error * {
        color: #f00 !important;
    }

    #partMakeList .wi-100 {
        width: 100px !important;
    }

    #partMakeList .wi-cal-100 {
        width: calc(100% - 104px) !important;
    }

    #partMakeList .ms-options-wrap {
        max-width: 100%;
    }

    #partMakeList .bootstrap-datetimepicker-widget.usetwentyfour .list-unstyled > li.picker-switch {
        display: block;
    }

    #partMakeList .bootstrap-datetimepicker-widget.dropdown-menu {
        left: auto !important;
        right: 0 !important;
    }

        #partMakeList .bootstrap-datetimepicker-widget.dropdown-menu.bottom:before {
            left: auto !important;
            right: 7px !important;
        }


        #partMakeList .bootstrap-datetimepicker-widget.dropdown-menu.bottom:after {
            left: auto !important;
            right: 8px !important;
        }


    #partMakeList .ms-options label {
        padding: 2px 0 2px 20px !important;
    }


.tooltip {
    z-index: 9999999999999;
}



@media(max-width: 767px) {
    .br-section-wrapper {
        overflow: auto;
    }

    #frmStockLayout {
        height: auto;
        display: block;
    }

        #frmStockLayout .tableFilterProduct {
            height: auto;
        }
}


.table .chkCustom {
    display: block;
    position: relative;
    height: 30px;
    width: 100%;
    margin: 0 auto;
}

    .table .chkCustom input[type=checkbox] {
        display: none;
    }

        .table .chkCustom input[type=checkbox] + span {
            width: 30px;
            height: 30px;
            display: block;
            margin: 0 auto;
            background: #fff;
            border: 3px solid #ccc;
            border-radius: 10px;
            position: relative;
        }

        .table .chkCustom input[type=checkbox]:checked + span {
            border-color: #0866C6;
        }

            .table .chkCustom input[type=checkbox]:checked + span:before {
                content: "";
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                content: '\f122';
                font-family: 'Ionicons';
                font-size: 18pt;
                text-align: center;
                color: #0866C6;
                line-height: 100%;
            }


.table.border td {
    border-bottom-width: 1px !important;
    border-left-width: 1px !important;
}



@media(max-width: 767px) {
    body {
        font-size: 10px !important;
    }

    #partMakeList {
        font-size: 8pt;
    }

    .table th {
        font-size: 8pt !important;
    }

    .table td {
        font-size: 9pt !important;
    }
}

@media(max-width:1180px) {
    * {
        font-size: 10pt !important;
    }
}

.jq-toast-single {
    font-size: 11pt;
    line-height: 20px;
}

.close-jq-toast-single {
    top: 7px;
    right: 7px;
    font-size: 2.5em;
}

.jq-toast-single h2 {
    font-size: 12pt;
    font-weight: bold;
}

.jq-has-icon {
    padding: 20px 10px 20px 50px;
}

.selectize-dropdown, .selectize-input, .selectize-input input {
    font-size: 12pt;
}

    .selectize-dropdown .option, .selectize-dropdown .optgroup-header {
        padding: 7px 15px;
    }

.selectize-dropdown-content {
    max-height: 400px;
}

.selectize-control.multi .selectize-input > div {
    background: #0866C6;
    color: #fff;
    margin: 0 7px 7px 0;
}


.imageList {
    display: block;
    width: 100%;
}

    .imageList .img {
        float: left;
        margin: 0 10px 10px 0;
        width: 100px;
        height: 120px;
        display: block;
        border: 3px solid #ccc;
        border-radius: 10px;
        background-size: auto 100%;
        background-repeat: no-repeat;
    }


.modal-backdrop {
    display: none;
}


.table_sortable thead th.th-sort {
    position: relative;
    padding-right: 17px;
}

    .table_sortable thead th.th-sort.sort-active {
        color: #f00;
    }

    .table_sortable thead th.th-sort:after {
        display: inline-block;
        padding: 0 0.25rem;
        position: absolute;
        top: 50%;
        right: 0;
        margin-top: -10px;
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        content: "\f0dc";
    }

    .table_sortable thead th.th-sort.desc:after {
        content: "\f161";
    }

    .table_sortable thead th.th-sort.asc:after {
        content: "\f884";
    }


* {
    font-size: 13px !important;
    font-size: 11pt !important;
    font-size: 10pt !important;
}

table thead tr th {
    font-size: 12px !important;
}


.divDetailHeight {
    min-width: 300px;
    max-height: 150px;
    overflow-y: scroll;
    overflow-x: hidden;
}

    .divDetailHeight ul {
        padding: 0 0 0 15px !important;
        min-width: unset !important;
        list-style-position: outside !important;
    }
