html {
    height: 100%;
}
body {
    height: 100%;
    //display: flex;
    background-color: #f6f6f6;
}
.bold {
    font-weight: 700;
}
#login-form {
    width: 300px;
    margin: auto;
    margin-top: 200px;
}
#workarea {
    width: 100%;
    padding: 0 20px 20px 20px;
}
.nav-tabs {
    margin-bottom: 10px;
}
.role {
    cursor: pointer;
}
.register-form {
    display: flex;
    width: 100%;
    margin: 10px auto;
}
.register-form .input-group {
    width: auto;
    margin: 0 10px;
}
.custom-file-input {
    opacity: 1;
}
.register-form .form-group {
    width: 210px;
    margin: 0 10px;
    text-align: right;
}
.form-newrow {
    display: flex;
    margin-bottom:  15px;
    align-items: center;
}
.form.order .form-newrow {
    margin-bottom:  30px;
}
.form-newrow .form-group {
    width: 210px;
    margin: 0 5px;
    position: relative;
}
.card-body .form-newrow .form-group {
    border-right: 1px solid #333;
}
.alert-hide {
    display: none;
}
form .btn {
    margin-right: 10px;
}
form .form-newrow:nth-of-type(3) .btn.in-closer {
    //display: none;
}
.orders-list {
    padding: 15px;
}
#pre-orders .form-newrow, #in-orders .form-newrow, #out-orders .form-newrow, .card.print .form-newrow, #goodsorder .form-newrow {
    margin-bottom: 0;
}
.card-header {
    padding: .25rem 1.25rem;
}
.card-body {
    padding: 0 1.25rem;
    border-bottom: 1px solid #333;
}
#pre-orders .btn, #in-orders .btn, #out-orders .btn {
    padding: .25rem .25rem;
    line-height: 1.0;
}
.card-header>h5>.btn:first-of-type {
    width: 400px;
    text-align: left;
    background-color: inherit;
    border-color: transparent;
    color: #333;
}
#in-orders .card-header>h5>.btn:first-of-type {
    width: 512px;
}
#goodsorders .card-header>h5>.btn:first-of-type {
    width: 600px;
}
.table td, .table th, .table thead th {
    border-width: 1px;
    border-color: #333;
}
/*#table-dif-clone, #table-dif2-clone {
    display: none;
    position: fixed;
    top: 78px;
}
#table-dif2-clone {
    top: 94px;
}*/
#table-dif-clone tbody, #table-dif2-clone tbody {
    opacity: 0;
}
#table-dif thead th  {
    text-align: center;
}
#table-dif tbody tr:last-child {
    //border-top: 2px solid #333;
}
#table-dif th, #table-dif td, #table-dif2 th, #table-dif2 td, #table-dif-clone th, #table-dif-clone td, #table-dif2-clone th, #table-dif2-clone td {
    vertical-align: middle;
    padding: .5rem .1rem;
    position: relative;
    border-right: 1px solid #333;
}
#table-dif td.inpositions, #table-dif td.ne-inpositions, #table-dif td.outpositions, #table-dif td.outpositions_1, #table-dif td.outpositions_2, #table-dif td.outpositions_3, #table-dif td.outpositions_4,
#table-dif-clone td.inpositions, #table-dif-clone td.outpositions, #table-dif-clone td.outpositions_1, #table-dif-clone td.outpositions_2, #table-dif-clone td.outpositions_3, #table-dif-clone td.outpositions_4 {
    width: 200px;    
    cursor: pointer;
}
#table-dif td.prepositions, #table-dif-clone td.prepositions {
    width: 240px;    
    cursor: pointer;
}
#table-dif-clone tbody *, #table-dif2-clone tbody * {
    border: none;
}
#table-dif td.inpositions.marked:before, #table-dif td.ne-inpositions.marked:before, #table-dif td.outpositions.marked:before, #table-dif td.outpositions_1.marked:before, #table-dif td.outpositions_2.marked:before, #table-dif td.outpositions_3.marked:before, #table-dif td.outpositions_4.marked:before, #table-dif td.prepositions.marked:before {
    content: '';    
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 10px solid blue;
    position: absolute;
    top: 0;
    right: calc(50% - 5px);
}
#table-dif td.outpositions {
    background-color: orange;
}
#table-dif p, #table-dif2 p, #table-dif2-clone p, #pre p  {
    margin-bottom: 0;
}
#table-dif tr:last-of-type td {
    font-weight: 700;
}
#table-dif.print td, #table-dif.print th, #table-dif2.print td, #table-dif2.print th {
    background-color: #fff!important;
}
#table-dif tr:first-of-type th:first-of-type, #table-dif2 tr:first-of-type th:first-of-type {
    width: 20%;
}
#table-dif tr:first-of-type th:first-of-type, #table-dif2 tr:first-of-type th:first-of-type {
    width: 20%;
}
#table-dif tr:first-of-type th:nth-of-type(2) {
    width: 120px;
}
#table-dif tbody tr:not(:last-of-type) td, #table-dif2 tbody tr:not(:last-of-type) td, #table-dif tbody tr:not(:last-of-type) th, #table-dif2 tbody tr:not(:last-of-type) th, 
#table-dif-clone tbody tr:not(:last-of-type) td, #table-dif2-clone tbody tr:not(:last-of-type) td, 
#table-dif-clone tbody tr:not(:last-of-type) th, #table-dif2-clone tbody tr:not(:last-of-type) th {
    font-weight: 400;
}
#table-dif, #table-dif2 {
    width: 100%;
    border-left: 1px solid #333;
}
#table-dif2 tbody tr:last-of-type td, #table-dif2-clone tbody tr:last-of-type td {
    font-weight: 700;
}
#table-dif td.marked p {
    color: red;
    font-size: 0.9rem;
}
.hide-shape {
    border: transparent;
    background-color: inherit;
}
#pre-orders button input[type=date], #in-orders button input[type=date], #out-orders button input[type=date] {
    width: 135px;
    color: #333;
}
#pre-orders button input[type=date]:hover+span {
    display: none;
}
.custom-file-input:lang(en)~.custom-file-label::after {
    content: "Найти";
}
.table .thead-dark th {
    color: #333;
    background-color: #98f5ff;
    border-color: #32383e;
}
.table tr {
    background-color: #fff;
    border-bottom: 1px solid #333;
}
#table-dif td>span {
    //font-weight: 700;
}
.bg-danger {
    background-color: pink!important;
}
.card-body p {
    margin-bottom: 3px;
}
.custom-select:disabled, .form-control:disabled {
    background-color: inherit;
    border: none;
    padding: 0;
    height: auto;
}
.form-newrow.hat {
    border-bottom: 1px solid #333;
    padding-left: 1.25rem;
}
.card-body .form-newrow .form-group:last-of-type {
    width: 100px;
    //margin: 0 10px;
}
textarea.form-control {
    padding: 0.2rem;
    line-height: 1.1;
    resize: none;
}
.comment-edit, .comment-stat-edit {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 0.5rem;
    line-height: 0.5rem;
    padding: 0.3rem;
}
#table-dif2.print .comment-edit, #table-dif2.print .comment-stat-edit {
    display: none;
}
#table-dif2.print textarea{
    border: none;
}
.pre-del, .in-del, .out-del, .order-copy {
    float: right;
    margin-left: 5px;
}
.card.print .collapse {
    display: block;
}
.card.print .btn {
    color: #333;
    border-color: #fff;
    background-color: inherit;
}
.card.print select {
    background: none;
}
.card [data-parent='#in-orders' ] .form-group:nth-child(2) {
    width: 530px;
}
.card [data-parent='#out-orders' ] .form-group:nth-child(2) {
    width: 450px;
}
.card.print [data-parent='#in-orders' ] .form-group:nth-child(2) {
    width: 450px;
}
.card.print [data-parent='#out-orders' ] .form-group:nth-child(2) {
    width: 370px;
} 
.card [data-parent='#in-orders' ] .form-group:nth-child(5), 
.card [data-parent='#in-orders' ] .form-group:nth-child(6),
.card [data-parent='#out-orders' ] .form-group:nth-child(4), 
.card [data-parent='#out-orders' ] .form-group:nth-child(5) {
    width: 90px;
}
.card [data-parent='#in-orders' ] .form-group:nth-child(3),
.card.print [data-parent='#in-orders' ] .form-group:nth-child(3), 
.card.print [data-parent='#in-orders' ] .form-group:nth-child(5), 
.card.print [data-parent='#in-orders' ] .form-group:nth-child(6),
.card.print [data-parent='#out-orders' ] .form-group:nth-child(4), 
.card.print [data-parent='#out-orders' ] .form-group:nth-child(5) {
    width: 130px;
}
#pre-order-print-box {
    margin: 20px auto;
    width: 90%;
}
#pre-order-print-box table {
    margin: auto;
    width: 90%;
}
#pre-order-print-box table th {
    text-align: center;
}
#pre-order-print-box table th, #pre-order-print-box table td {
    border: 1px solid #333;
    padding: 5px;
}
#pre-order-print-footer table th {
    border-top: none;
}
#pre-order-print-footer table:last-of-type {
    margin-bottom: 30px;
}
#pre-order-print-box p {
    margin-bottom: 0;
    text-align: center;
}
#pre-order-print-box .form-newrow {
    padding: 0 5%;
}
#table-products-clone {
    position: relative;
    z-index: 2;
    margin-bottom: -30px;
}
#table-products td, #table-products th, #table-products-clone th, #table-goods td, #table-goods th, .table-heightmini td, .table-heightmini th {
    padding: .15rem;
}
#table-products [type=number], #table-products [name=price], #table-products [name=sq] {
    width: 70px;
}
#products table .form-control, #products table .custom-select, #goodstab table .form-control, #goodstab table .custom-select, .table-heightmini .form-control, .table-heightmini .custom-select {
    padding: .25rem .25rem;
    height: auto;
    border: none;
}
.btn {
    padding: .25rem .35rem;
}
.pre-product-search {
    position: absolute;
    top: -30px;
    left: 2px;
    //border: none;
    height: calc(90% - 4px);
}
.fixed {
    position: fixed;
    width: 100%;
    margin: 0;
    background-color: #f6f6f6;
    z-index: 10;
}
.form-control.red_text {
    color: red;
}
.bg-green, .bg-green * {
    background-color: #28a745;
}
.order-username {
    margin-left: -50px;
    background-color: inherit;
}
#goodsorders .order-username {
    margin-left: -10px;
}
#table-products-box {
    height: 650px;
    overflow-y: scroll;
}
#dif1-box, #dif2-box {
    position: relative;
    height: 730px;
    overflow-y: scroll;
}
/*#dif2-box {
    height: 720px;
}*/
#table-dif-clone, #table-dif2-clone {
    //display: table;
    position: absolute;
    top: 108px;
    left: 1px;
    z-index: 2;
}
#table-dif2-clone {
    top: 188px;
}
.tab-content>.tab-pane {
    position: relative;
}
.select-absolute {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 999;
    width: auto;
}