﻿
html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    /*overflow: hidden;*/
    font-size: 14px;
}

.middle-box {
    max-width: 400px;
    z-index: 100;
    margin: 0 auto;
    padding-top: 40px;
}

.loginscreen.middle-box {
    min-width: 400px;
}

.form-group {
    margin-bottom: 1rem;
}

/* Validation */
label.error {
    color: #cc5965;
    display: inline-block;
    margin-left: 5px;
}

.form-control.error {
    border: 1px dotted #cc5965;
}

.wrapper {
    height: 100%;
}

.wrapper.row .col-sm-1:first-child,
.wrapper.row .col-sm-2:first-child {
    padding: 0;
    --bs-bg-opacity: 0.1;
    background-color: rgba(var(--bs-dark-rgb), var(--bs-bg-opacity));
}

.wrapper.row .col-sm-1:first-child .nav-tabs .nav-item a,
.wrapper.row .col-sm-2:first-child .nav-tabs .nav-item a {
    padding: 15px 10px;
    color: var(--bs-nav-tabs-link-active-color);
}

.wrapper.row .col-sm-1:first-child .nav-tabs .nav-item .active,
.wrapper.row .col-sm-2:first-child .nav-tabs .nav-item .active {
    border-right: 0;
    color: var(--bs-nav-link-color);
}

.wrapper.row > .wrapper_left .col-sm-10 .col-4 {
    text-align: center;
    padding-bottom: 10px;
}

.wrapper.row .col-sm-10,
.wrapper.row .col-sm-12 {
    padding-top: 10px;
}

.wrapper.row .col-sm-10 .card-body {
    min-height: 100px;
}

.wrapper.row > .wrapper_right .col-sm-12 .ibox-header {
    min-height: 120px;
}

.header {
    padding: 10px 15px;
    display: flex;
    vertical-align: middle;
    --bs-gutter-x: 0;
    background: url(/pos/images/logo.png) no-repeat right;
    background-size: auto 100%;
}

.header > button:first-child {
}

.hide {
    display: none;
}

span.btn {
    display: inline-block;
}

#offcanvas_menu {
    width: 100px;
}

#offcanvas_menu .offcanvas-body {
    padding: 0;
}

#offcanvas_menu .offcanvas-body ul {
    margin: 0;
    padding: 0;
}

#offcanvas_menu .offcanvas-body li {
    list-style: none;
    margin: 0;
    padding: 5px;
}
/*btn*/
/*.btn-outline:focus {
    background-color: #fff;
    color: #555;
}*/

.btn-circle.btn-lg {
    width: 50px;
    height: 50px;
    padding: 5px 9px;
    border-radius: 25px;
    font-size: 18px;
    line-height: 1.33;
}

button:focus {
    outline: 0 !important;
}

.btn {
    border-radius: 3px;
    font-size: inherit;
}

.btn:focus {
    box-shadow: none;
}

.btn-xs {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
}

.btn-group-sm > .btn,
.btn-sm {
    font-size: .8rem;
}

.btn-w-m {
    min-width: 120px;
}

.btn-default {
    color: inherit;
    background: white;
    border: 1px solid #d0d0d0;
}

.btn-default:hover,
.btn-default:focus,
.btn-default:active,
.btn-default.active,
.open .dropdown-toggle.btn-default,
.btn-default:active:focus,
.btn-default:active:hover,
.btn-default.active:hover,
.btn-default.active:focus {
    color: inherit;
    border: 1px solid #b2b2b2;
}

.btn-default:active,
.btn-default.active,
.open .dropdown-toggle.btn-default {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15) inset;
    background-color: #d0d0d0;
}

.btn-default.disabled,
.btn-default.disabled:hover,
.btn-default.disabled:focus,
.btn-default.disabled:active,
.btn-default.disabled.active,
.btn-default[disabled],
.btn-default[disabled]:hover,
.btn-default[disabled]:focus,
.btn-default[disabled]:active,
.btn-default.active[disabled],
fieldset[disabled] .btn-default,
fieldset[disabled] .btn-default:hover,
fieldset[disabled] .btn-default:focus,
fieldset[disabled] .btn-default:active,
fieldset[disabled] .btn-default.active {
    color: #b0b0b0 !important;
}

.btn-outline {
    color: inherit;
    background-color: transparent;
    transition: all .5s;
}

.btn-rounded {
    border-radius: 50px;
}

button.btn-large-dim {
    width: 90px;
    height: 90px;
    font-size: 42px;
}

.btn-primary.btn-outline {
    color: var(--bs-btn-hover-bg);
}

.btn-primary.btn-outline:hover {
    color: var(--bs-btn-color);
}

button.dim {
    display: inline-block;
    text-decoration: none;
    text-transform: uppercase;
    text-align: center;
    padding-top: 6px;
    margin-right: 10px;
    position: relative;
    cursor: pointer;
    border-radius: 5px;
    font-weight: 600;
    margin-bottom: 20px !important;
}

button.dim:active {
    top: 3px;
}

button.btn-primary.dim {
    box-shadow: inset 0 0 0 #0d6efd, 0 5px 0 0 #0d6efd, 0 10px 5px #999999 !important;
}

button.btn-primary.dim:active {
    box-shadow: inset 0 0 0 #0d6efd, 0 2px 0 0 #0d6efd, 0 5px 3px #999999 !important;
}

button.btn-default.dim {
    box-shadow: inset 0 0 0 #b3b3b3, 0 5px 0 0 #b3b3b3, 0 10px 5px #999999 !important;
}

button.btn-default.dim:active {
    box-shadow: inset 0 0 0 #b3b3b3, 0 2px 0 0 #b3b3b3, 0 5px 3px #999999 !important;
}

button.btn-warning.dim {
    box-shadow: inset 0 0 0 #ffc107, 0 5px 0 0 #ffc107, 0 10px 5px #999999 !important;
}

button.btn-warning.dim:active {
    box-shadow: inset 0 0 0 #ffc107, 0 2px 0 0 #ffc107, 0 5px 3px #999999 !important;
}

button.btn-info.dim {
    box-shadow: inset 0 0 0 #0dcaf0, 0 5px 0 0 #0dcaf0, 0 10px 5px #999999 !important;
}

button.btn-info.dim:active {
    box-shadow: inset 0 0 0 #0dcaf0, 0 2px 0 0 #0dcaf0, 0 5px 3px #999999 !important;
}

button.btn-success.dim {
    box-shadow: inset 0 0 0 #198754, 0 5px 0 0 #198754, 0 10px 5px #999999 !important;
}

button.btn-success.dim:active {
    box-shadow: inset 0 0 0 #198754, 0 2px 0 0 #198754, 0 5px 3px #999999 !important;
}

button.btn-danger.dim {
    box-shadow: inset 0 0 0 #dc3545, 0 5px 0 0 #dc3545, 0 10px 5px #999999 !important;
}

button.btn-danger.dim:active {
    box-shadow: inset 0 0 0 #dc3545, 0 2px 0 0 #dc3545, 0 5px 3px #999999 !important;
}

.btn-default:active {
    background: #0d6efd !important;
}

.btn-info:active {
    background: #0d6efd !important;
}

.btn-danger:active {
    background: #0d6efd !important;
}

.btn-dark:active {
    background: #0d6efd !important;
}

.btn-success:active {
    background: #0d6efd !important;
}

.btn-warning:active {
    background: #0d6efd !important;
}

button.dim:before {
    font-size: 50px;
    line-height: 1em;
    font-weight: normal;
    color: #fff;
    display: block;
    padding-top: 10px;
}

button.dim:active:before {
    top: 7px;
    font-size: 50px;
}

.btn:focus {
    outline: none !important;
}

.form-control,
.single-line {
    background-color: #FFFFFF;
    background-image: none;
    border: 1px solid #e5e6e7;
    border-radius: 1px;
    color: inherit;
    display: block;
    padding: 6px 12px;
    transition: border-color 0.15s ease-in-out 0s, box-shadow 0.15s ease-in-out 0s;
    width: 100%;
}

.form-control:focus,
.single-line:focus {
}

/*ibox*/

.ibox-title {
    border-bottom: 1px solid #e7eaec;
    padding: 10px 15px;
    display: flex;
    vertical-align: middle;
}

.ibox-title h5 {
    vertical-align: middle;
    line-height: 1.8em;
}

.ibox-content {
    overflow: auto;
}

.ibox-footer {
    border-top: 1px solid #e7eaec;
    font-size: 90%;
    padding: 10px 15px;
    text-align: center;
}
/*tools*/

.tools .buttons {
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(var(--bs-gutter-x) * .5);
    margin: 1px;
}

.tools .buttons button {
    margin-top: 10px;
    padding: 10px;
    width: 100%;
}

.tools .ttt {
    /*    margin: 15px 10px 0 10px !important;
    width: calc(100% - 20px );
    border-radius: 3px 3px 0 0;*/
    margin: 0;
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(var(--bs-gutter-x) * .5);
    margin-left: 1px;
    margin-right: 1px;
}

.tools .ttt .col-6, .tools .ttt .col-12 {
    margin: 0;
    padding: 0;
}

.tools .ttt button {
    width: 100%;
    border-top: none !important;
}

.tools .form-control {
    /*    margin: 15px 10px 0 10px !important;
    width: calc(100% - 20px );*/
    width: 100%;
    border-radius: 3px 3px 0 0;
    margin-top: 20px;
}

.tools .col-6 button {
    height: 50px;
}

/*keyboard*/
#offcanvasKeyboard {
    height: 320px;
    border: var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);
}

#offcanvasKeyboard .offcanvas-body {
    padding-left: 0;
    padding-right: 0;
}

#offcanvasKeyboard .btn {
    width: 8.8%;
    height: 60px;
    border-width: 1px;
    border-color: #d1d1d1;
    border-radius: 10px;
    margin-bottom: 10px;
}

#offcanvasKeyboard .btn h4 {
    line-height: 1.7em;
}

#offcanvasKeyboard button:active {
    background: #0d6efd !important;
}

#offcanvasKeyboard button:active {
    background: #0d6efd !important;
}
/*goods*/
.goods.btn-large-dim {
    width: 100%;
    min-height: 120px;
}

.goods img {
    width: 100%;
    aspect-ratio: 4/3;
}

.goods .price {
    font-family: PingFangSC;
    font-weight: 700;
    color: #f4463b;
}

.goods.dim {
    display: inline-block;
    text-decoration: none;
    text-transform: uppercase;
    text-align: left;
    padding-top: 6px;
    margin-right: 10px;
    position: relative;
    cursor: pointer;
    border-radius: 5px;
    font-size: 0.8rem;
    margin-bottom: 10px !important;
}

.goods.dim:active {
}

.goods.dim {
    box-shadow: inset 0 0 0 #0d6efd, 0 5px 0 0 #0d6efd, 0 10px 5px #999999 !important;
}

.goods.dim:active {
    box-shadow: inset 0 0 0 #0d6efd, 0 2px 0 0 #0d6efd, 0 5px 3px #999999 !important;
}
/*
.goods.dim {
    box-shadow: inset 0 0 0 #b3b3b3, 0 5px 0 0 #b3b3b3, 0 10px 5px #999999 !important;
}

.goods.dim:active {
    box-shadow: inset 0 0 0 #b3b3b3, 0 2px 0 0 #b3b3b3, 0 5px 3px #999999 !important;
}

.goods.dim {
    box-shadow: inset 0 0 0 #ffc107, 0 5px 0 0 #ffc107, 0 10px 5px #999999 !important;
}

.goods.dim:active {
    box-shadow: inset 0 0 0 #ffc107, 0 2px 0 0 #ffc107, 0 5px 3px #999999 !important;
}

.goods.dim {
    box-shadow: inset 0 0 0 #0dcaf0, 0 5px 0 0 #0dcaf0, 0 10px 5px #999999 !important;
}

.goods.dim:active {
    box-shadow: inset 0 0 0 #0dcaf0, 0 2px 0 0 #0dcaf0, 0 5px 3px #999999 !important;
}

.goods.dim {
    box-shadow: inset 0 0 0 #198754, 0 5px 0 0 #198754, 0 10px 5px #999999 !important;
}

.goods.dim:active {
    box-shadow: inset 0 0 0 #198754, 0 2px 0 0 #198754, 0 5px 3px #999999 !important;
}

.goods.dim {
    box-shadow: inset 0 0 0 #dc3545, 0 5px 0 0 #dc3545, 0 10px 5px #999999 !important;
}

.goods.dim:active {
    box-shadow: inset 0 0 0 #dc3545, 0 2px 0 0 #dc3545, 0 5px 3px #999999 !important;
}
    */
.goods.dim:before {
    font-weight: normal;
    color: #fff;
    display: block;
    padding-top: 10px;
}

.goods.dim:active:before {
    top: 7px;
    font-size: 50px;
}

.goods.hover {
    background-color: #e9e9e9;
    color: #333;
}

/*panel*/
.panel {
    margin-bottom: 20px;
    background-color: #fff;
    border: 1px solid transparent;
    border-radius: 4px;
    -webkit-box-shadow: 0 1px 1px rgba(0,0,0,.05);
    box-shadow: 0 1px 1px rgba(0,0,0,.05);
}

.panel-heading {
    padding: 10px 15px;
    border-bottom: 1px solid transparent;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    height: 40px;
}

.panel-title {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 16px;
    color: inherit;
    float: left;
}

.panel-heading .btn-close {
    float: right;
}

.panel-body {
    padding: 15px;
}

.panel-primary {
    border-color: #0d6efd;
}

.panel-primary > .panel-heading {
    color: #fff;
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.panel-success {
    border-color: #198754;
}

.panel-success > .panel-heading {
    color: #3c763d;
    background-color: #198754;
    border-color: #198754;
}

.panel-info {
    border-color: #0dcaf0;
}

.panel-info > .panel-heading {
    color: #31708f;
    background-color: #0dcaf0;
    border-color: #0dcaf0;
}

.panel-warning {
    border-color: #ffc107;
}

.panel-warning > .panel-heading {
    color: #8a6d3b;
    background-color: #ffc107;
    border-color: #ffc107;
}

.panel-danger {
    border-color: #dc3545;
}

.panel-danger > .panel-heading {
    color: #a94442;
    background-color: #dc3545;
    border-color: #dc3545;
}

/* Tabs */
.tabs-container .panel-body {
    background: #fff;
    border: 1px solid #e7eaec;
    border-radius: 2px;
    padding: 20px;
    position: relative;
}

.tabs-container .nav-tabs > li.active > a,
.tabs-container .nav-tabs > li.active > a:hover,
.tabs-container .nav-tabs > li.active > a:focus {
    border: 1px solid #e7eaec;
    border-bottom-color: transparent;
    background-color: #fff;
}

.tabs-container .nav-tabs > li {
    float: left;
    margin-bottom: -1px;
}

.tabs-container .tab-pane .panel-body {
    border-top: none;
}

.tabs-container .nav-tabs > li.active > a,
.tabs-container .nav-tabs > li.active > a:hover,
.tabs-container .nav-tabs > li.active > a:focus {
    border: 1px solid #e7eaec;
    border-bottom-color: transparent;
}

.tabs-container .nav-tabs {
    border-bottom: 1px solid #e7eaec;
}

.tabs-container .tab-pane .panel-body {
    border-top: none;
}

.tabs-container .tabs-left .tab-pane .panel-body,
.tabs-container .tabs-right .tab-pane .panel-body {
    border-top: 1px solid #e7eaec;
}

.tabs-container .tabs-below > .nav-tabs,
.tabs-container .tabs-right > .nav-tabs,
.tabs-container .tabs-left > .nav-tabs {
    border-bottom: 0;
}

.tabs-container .tabs-left .panel-body {
    position: static;
}

.tabs-container .tabs-left > .nav-tabs,
.tabs-container .tabs-right > .nav-tabs {
    width: 20%;
}

.tabs-container .tabs-left .panel-body {
    width: 80%;
    margin-left: 20%;
}

.tabs-container .tabs-right .panel-body {
    width: 80%;
    margin-right: 20%;
}

.tabs-container .tab-content > .tab-pane,
.tabs-container .pill-content > .pill-pane {
    display: none;
}

.tabs-container .tab-content > .active,
.tabs-container .pill-content > .active {
    display: block;
}

.tabs-container .tabs-below > .nav-tabs {
    border-top: 1px solid #e7eaec;
}

.tabs-container .tabs-below > .nav-tabs > li {
    margin-top: -1px;
    margin-bottom: 0;
}

.tabs-container .tabs-below > .nav-tabs > li > a {
    -webkit-border-radius: 0 0 4px 4px;
    -moz-border-radius: 0 0 4px 4px;
    border-radius: 0 0 4px 4px;
}

.tabs-container .tabs-below > .nav-tabs > li > a:hover,
.tabs-container .tabs-below > .nav-tabs > li > a:focus {
    border-top-color: #e7eaec;
    border-bottom-color: transparent;
}

.tabs-container .tabs-left > .nav-tabs > li,
.tabs-container .tabs-right > .nav-tabs > li {
    float: none;
    word-break: break-word;
    width: 100%;
}

.tabs-container .tabs-left > .nav-tabs > li > a,
.tabs-container .tabs-right > .nav-tabs > li > a {
    margin-right: 0;
    margin-bottom: 3px;
}

.tabs-container .tabs-left > .nav-tabs {
    float: left;
    margin-right: 19px;
}

.tabs-container .tabs-left > .nav-tabs > li > a {
    margin-right: -1px;
    -webkit-border-radius: 4px 0 0 4px;
    -moz-border-radius: 4px 0 0 4px;
    border-radius: 4px 0 0 4px;
}

.tabs-container .tabs-left > .nav-tabs a.active,
.tabs-container .tabs-left > .nav-tabs a.active:hover,
.tabs-container .tabs-left > .nav-tabs a.active:focus {
    border-color: #e7eaec transparent #e7eaec #e7eaec;
}

.tabs-container .tabs-right > .nav-tabs {
    float: right;
    margin-left: 19px;
}

.tabs-container .tabs-right > .nav-tabs > li > a {
    margin-left: -1px;
    -webkit-border-radius: 0 4px 4px 0;
    -moz-border-radius: 0 4px 4px 0;
    border-radius: 0 4px 4px 0;
}

.tabs-container .tabs-right > .nav-tabs a.active,
.tabs-container .tabs-right > .nav-tabs a.active:hover,
.tabs-container .tabs-right > .nav-tabs a.active:focus {
    border-color: #e7eaec #e7eaec #e7eaec transparent;
    z-index: 1;
}

.tabs-container .tabs-right > .nav-tabs li {
    z-index: 1;
}

.nav-tabs .nav-link:not(.active):focus,
.nav-tabs .nav-link:not(.active):hover {
    border-color: transparent;
}

@media (max-width: 767px) {
    .tabs-container .nav-tabs > li {
        float: none !important;
    }

    .tabs-container .nav-tabs > li.active > a {
        border-bottom: 1px solid #e7eaec !important;
        margin: 0;
    }
}