﻿body {
    height: -webkit-calc(100% - 50px);
    height: calc(100% - 50px);
}
@media (min-width: 768px) {
    #page-wrapper {
        min-height: -webkit-calc(100vh - 50px);
        min-height: calc(100vh - 50px);
    }
}

textarea{
    max-width: 100%;
}
.btn-back{
    position: absolute;
}
.heading{
    margin-top: 0px;
}
.table > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th, .table > thead > tr > td, .table > tbody > tr > td, .table > tfoot > tr > td {
    vertical-align: middle;
}
.btn-full-screen{
    width: 60px;
    height: 60px;
    font-size: 30px;
}
.loading-wrapper {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.6);
    z-index: 2147483648;
}
.loading-wrapper .fa {
    display: block;
    position: absolute;
    top: calc(50% - 45px);
    left: calc(50% - 35px);
    font-size: 90px;
    color: #888888;
}
.top-navigation .navbar-brand-red {
    background: #ed5565;
}
.nav-test-border {
    border: 4px solid #ed5565 !important;
}
.table{
    position: relative;
}
.table-head-sticky {
    position: absolute;
    top: 1px;
    /*left: 1px;*/
    width: 100%;
    z-index: 5;
    margin: 0px;
}
.table-head-sticky.stick {
    position: fixed;
    top: 51px;
    margin-left: -1px;
}
.fc-holiday {
    background-color: #ed5565;
    border-color: #ed5565;
}
.fc-power {
    background-color: #1eb31a;
    border-color: #1eb31a;
}
.red {
    background-color: #ed5565 !important;
    color: #fff !important;
    padding: 2px;
}
.yellow {
    background-color: #e6db57 !important;
    color: #fff !important;
    padding: 2px;
}
.orange {
    background-color: #f8ac59 !important;
    color: #fff !important;
    padding: 2px;
}
.orangered {
    background-color: #ff4500 !important;
    color: #fff !important;
}
.green {
    background-color: #1ab335 !important;
    color: #fff !important;
}
.table-hover > tbody > tr:hover > td, .table-hover > tbody > tr:hover > th {
    color: #676a6c;
}
.traffic-lights-link {
    color: #fff;
}
.traffic-lights-link:hover,
.traffic-lights-link:focus {
    outline: none;
    text-decoration: none;
    color: #e6e23d;
}

.top-navigation .wrapper.wrapper-content {
    padding: 20px;
}
.invalid-inputfield {
    border: 1px solid #ed5565;
}
.p-l-5 {
    padding-left: 5px;
}

.p-r-5 {
    padding-right: 5px;
}

.va-bot {
    vertical-align: bottom !important;
}
/*---------------------------------------------------
    STEP INCREASER
---------------------------------------------------*/

.step-group.active {
    display: block;
}
.form-control[disabled="disabled"] ~ .step-group.active {
    display: none;
}
.step-form{
    position: relative;
}
.step-form .form-control:read-only{
    background-color: #fff;
}
.step-group:focus{
    outline: none;
}

.step-group{
    display: none;
    position: absolute;
    right: -100px;
    top: -50px;
    width: 100px;
    z-index: 10;
    font-size: 0px;
   
}
.step-group.left {
    right: auto;
    left: -100px;
}
@media(min-width: 1200px) {
    .step-group.left {
        left: auto;
        right: -100px;
    }
}

.step-group .btn {
    display: inline-block;
    width: 40px;
    height: 60px;
    margin: 5px;
    padding: 5px 0px;
    background-color: #1ab394;
    color: #fff;
    line-height: 50px;
}

.step-group .btn.plus {
    background-color: #1ab394;
}
.step-group .btn.plus:active {
    background-color: #0f6554;
}

.step-group .btn.minus {
    background-color: #ed5565;
}
.step-group .btn.minus:active {
    background-color: #86333b;
}

.content-sort {
    display: flex;
    align-items: center;
}

.notice {
    margin-right: 3px;
    font-size: 28px;
    font-weight: 700;
    line-height: 0.7;
}

    .notice.notice-blue {
        color: #428bca;
    }

    .notice.notice-red {
        color: #ed5565;
    }

    .notice.notice-invisible {
        display: none;
    }


/*---------------------------------------------------
    OFFLINE INDICATOR
---------------------------------------------------*/

.offline-btn,
.clear-btn{
    display: none;
    position: fixed;
    bottom: 10px;
    left: 10px;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    background-color: #ed5565;
    color: #ffffff;
    font-size: 20px;
}
.offline-btn {
    bottom: 10px;
    background-color: #ed5565; /*#f8ac59*/
}
.clear-btn {
    bottom: 70px;
    background-color: #f8ac59;
}

.clear-btn:before,
.offline-btn:before {
    display: inline-block;
    margin-right: 5px;
    font-family: FontAwesome;
}
.offline-btn:before {
    content: "\f021";
}
.clear-btn:before {
    content: "\f014";
}
.offline-btn:hover,
.offline-btn:focus,
.clear-btn:hover,
.clear-btn:focus {
    outline: none;
    color: #ffffff;
}
/*.offline-btn.offline:after {
    -webkit-animation: blink 1s linear;
    animation: blink 1s linear;
}*/
.offline-btn.sync,
.clear-btn.sync{
    display: block;
}

@keyframes blink{
    0% {
        width: 110px;
        height: 40px;
        opacity: 1;
    }
    100% {
        width: 400px;
        height: 200px;
        opacity: 0;
    }
}

#page-wrapper {
    transition: background-color 1s;
}

#page-wrapper.offline {
    background-color: #f9afaf;
}

/*---------------------------------------------------
    NAV BAR
---------------------------------------------------*/
@media (min-width: 768px) {
    .navbar-toggle {
        display: block;
    }
    .navbar-collapse.collapse {
         display: none !important; 
    }
    .navbar-collapse {
        display: none;
    }
    .navbar-collapse.in {
        overflow: visible !important;
        display: block !important;
    }
    .navbar-collapse.collapsing{
        display: block;
    }
    .navbar-header{
        display: block;
        float: none;
    }
}
@media (min-width: 992px){
    .navbar-toggle{
        display: none;
    }
    .navbar-collapse.collapse {
        display: block !important;
        height: auto !important;
        padding-bottom: 0;
        overflow: visible !important;
    }
    .navbar-collapse {
        width: auto;
        border-top: 0;
        box-shadow: none;
    }
    .navbar-header {
        float: left;
    }
}
@media (max-width: 991px) {
    .top-navigation .navbar-right{
        margin-right: 0px;
    }
    .top-navigation .wrapper.wrapper-content{
        padding: 10px;
    }
}
@media (max-width: 1199px) {
    .top-navigation .nav > li > a {
        padding: 15px 10px;
    }
}

/*---------------------------------------------------
    CHECKBOX
---------------------------------------------------*/
.inline-checks .checks {
    display: inline-block;
    margin-right: 10px;
}

    .inline-checks .checks:last-child {
        margin-right: 0px;
    }

.checks{
    position: relative;
}
.checks input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0px;
    height: 0px;
    margin: 0px;
}

.checks label {
    position: relative;
    cursor: pointer;
    margin-bottom: 0px;
}
.checks label:before {
    content: "";
    display: inline-block;
    height: 1.5em;
    width: 1.5em;
    margin-right: 4px;
    background-color: #fff;
    border: 1px solid #1ab394;
    color: #fff;
    font-family: FontAwesome;
    font-size: 0.9em;
    text-align: center;
    line-height: 1.4em;
    vertical-align: text-bottom;
}
.checks input[type="checkbox"]:checked ~ label:before {
    content: "\f00c";
    background-color: #1ab394;
}
.checks input[type="checkbox"][disabled] ~ label {
    cursor: not-allowed;
}
.checks-xl label:before {
    font-size: 20px;
}
.checks-block label {
    display: block;
}
.checks-block label:before {
    display: block;
    margin: 0 auto 5px auto;
}

.p-label {
    padding-top: 7px;
}
.btn-checkbox{
    height: 18px;
    width: 48px;
    margin-left: 5px;
    padding: 0px;
    font-size: 14px;
    line-height: 16px;
    vertical-align: text-top;
}
/*---------------------------------------------------
   TOOLTIP
---------------------------------------------------*/
.tooltips {
    position: relative;
}

    .tooltips:hover .tooltips-body {
        display: block;
    }

.tooltips-body {
    display: none;
    position: absolute;
    left: 90%;
    background-color: #1ab394;
    padding: 5px;
    border: 2px solid #127964;
    border-radius: 0px 5px 5px 5px;
    color: #fff;
    white-space: nowrap;
    z-index: 2;
}

.tooltips-red {
    left: 99%;
    top: 0;
    border: 2px solid #ed5565;
    background: #fff;
    color: #ed5565;
}

.tooltips-blue {
    left: 99%;
    top: 0;
    border: 2px solid #428bca;
    background: #fff;
    color: #428bca;
}


.tooltips-body > span {
    padding: 0px 5px;
}

/*---------------------------------------------------
    DATA TABLE
---------------------------------------------------*/
#dvOrderValues.full-screen {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    margin: 0px;
}
#dvOrderValues.full-screen .data-table-main {
    height: -webkit-calc(100vh - 180px);
    height: calc(100vh - 180px);
    width: -webkit-calc(100% - 300px);
    width: calc(100% - 300px);
}
#dvOrderValues.full-screen .data-table-left-header {
    height: -webkit-calc(100vh - 197px);
    height: calc(100vh - 197px);
}

#dvOrderValues.full-screen .data-table-top-header {
    width: -webkit-calc(100% - 320px);
    width: calc(100% - 320px);
}

.data-table-main .table > thead > tr > th,
.data-table-main .table > tbody > tr > th,
.data-table-main .table > tfoot > tr > th,
.data-table-main .table > thead > tr > td,
.data-table-main .table > tbody > tr > td,
.data-table-main .table > tfoot > tr > td {
    padding: 4px 2px;
}
.data-table-top-header .table > tbody > tr > td {
    padding: 4px;
    width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.data-table-blank {
    overflow: hidden;
    width: 300px;
    height: 208px;
    float: left;
    border-right: 2px solid #000;
    border-bottom: 2px solid #000;
}
.data-table-top-header {
    overflow: hidden;
    position: relative;
    float: left;
    width: calc(100% - 300px);
    border-bottom: 2px solid #000;
}
.data-table-left-header {
    overflow: hidden;
    width: 300px;
    height: -webkit-calc(100vh - 425px);
    height: calc(100vh - 425px);
    float: left;
    border-right: 2px solid #000;
}
.data-table-left-header table tr td{
    padding: 4px 8px;
}
.data-table-left-header table tr.hover td {
    background-color: #f5f5f5;
}
.data-table-main {
    overflow: scroll;
    width: -webkit-calc(100% - 283px);
    width: calc(100% - 283px);
    height: -webkit-calc(100vh - 408px);
    height: calc(100vh - 408px);
    position: relative;
    float: left;
    margin: 0px -17px -17px 0px;
}
.data-table-main tr:last-child{
    height: 62px;
}
.data-table-main .form-control{
    height: 26px;
    padding: 0px;
    text-align: center;
}
.data-table {
    border-collapse: collapse;
}

.data-table, .data-table td {
    border: 1px solid lightgray;
}

/* cell and header width */
.data-table td,
.data-table-top-header th {
    min-width: 43px;
    width: 43px;
}
.data-table-top-header tr:first-child td {
    word-break: break-all;
}

.data-table-top-header th {
    height: 150px;
    white-space: nowrap;
    padding: 0 !important;
}
    /* header rotate */
.data-table-top-header th div {
    -webkit-transform: rotate(-90deg) translate(-55px, 0);
    -moz-transform: rotate(-90deg) translate(-55px, 0);
    -ms-transform: rotate(-90deg) translate(-55px, 0);
    -o-transform: rotate(-90deg) translate(-55px, 0);
    transform: rotate(-90deg) translate(-55px, 0);
    max-width: 38px;
}

.data-table-top-header th div span {
    display: inline-block;
    padding-left: 5px;
}
/* empty last column */
.emergency-data-table-top-header .absorbing-column,
.data-table .absorbing-column,
.data-table-top-header .absorbing-column {
    min-width: -webkit-calc(100vw - 600px);
    min-width: calc(100vw - 600px);
}
/* alignment fix */
#firstcol td {
    border-width: 1px 0;
}

.thick-border {
    border-right: 2px solid #000 !important;
}

.order-store-amount-info{
    border-bottom: 1px solid lightgray;
    margin-bottom: 5px;
    padding-bottom: 5px;
}
.order-store-amount-info:last-child {
    border-bottom: none;
    margin-bottom: 0px;
}

.order-store-amount-info .store-name {
    display: block;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.order-store-amount-info .amount {
    padding: 2px;
    white-space: nowrap;
    vertical-align: middle;
}
.order-store-amount-info .separator {
    margin-left: -1px;
    margin-right: -4px;
    font-size: 16px;
    vertical-align: bottom;
}

/*---------------------------------------------------
   ADJUSMENT DATA TABLE
---------------------------------------------------*/

.adjusment-data-table-blank {
    overflow: hidden;
    width: 300px;
    height: 10px;
    float: left;
}
.adjusment-data-table-top-header {
    overflow: hidden;
    position: relative;
    float: left;
    width: calc(100% - 300px);
}
.adjusment-data-table-top-header>table{
    border-left-width: 2px;
}
.adjusment-data-table-left-header {
    overflow: hidden;
    width: 300px;
    height: 600px;
    float: left;
}
.adjusment-data-table-left-header td {
    height: 55px;
}
.adjusment-data-table-main {
    overflow: scroll;
    width: calc(100% - 283px);
    height: 617px;
    position: relative;
    float: left;
    margin: 0px -17px -17px 0px;
}
.adjusment-data-table-main .form-control{
    height: 26px;
    padding: 0px 12px;
}
.adjusment-data-table {
    border-collapse: collapse;
}

.adjusment-data-table, .adjusment-data-table td {
    border: 1px solid lightgray;
}

/* cell and header width */
.adjusment-data-table td,
.adjusment-data-table-top-header th {
    min-width: 115px;
    max-width: 115px;
    width: 115px;
    height: 55px;
    padding: 8px 4px !important;
}
/* wider column */
.adjusment-data-table td:nth-of-type(2n),
.adjusment-data-table-top-header th:nth-of-type(2n) {
    min-width: 50px;
    max-width: 50px;
    width: 50px;
}

.adjusment-data-table-top-header th {
    height: 165px;
    padding: 0 !important;
    vertical-align: bottom !important;
}
/* header rotate */
.adjusment-data-table-top-header th span {
    display: block;
    -webkit-transform: rotate(-90deg) translate(-50px, 0);
    -moz-transform: rotate(-90deg) translate(-50px, 0);
    -ms-transform: rotate(-90deg) translate(-50px, 0);
    -o-transform: rotate(-90deg) translate(-50px, 0);
    transform: rotate(-90deg) translate(-50px, 0);

    -webkit-transform-origin: 30px 15px;
    -moz-transform-origin: 30px 15px;
    -ms-transform-origin: 30px 15px;
    -o-transform-origin: 30px 15px;
    transform-origin: -20px -25px;
    width: 150px;
    height: 10px;
}


/* empty last column */
.adjusment-data-table .absorbingColumn,
.adjusment-data-table-top-header .absorbingColumn {
    min-width: 0;
    padding: 8px 4px;
}
/* alignment fix */
#firstcol td {
    border-width: 1px 0;
}
/* thicker borders */
.adjusment-data-table td:nth-of-type(6n+1),
.adjusment-data-table-top-header th:nth-of-type(6n+1) {
    border-left-width: 2px;
    border-left-color: black;
}

/*---------------------------------------------------
   EMERGENCY DATA TABLE
---------------------------------------------------*/
#dvOrderEmergancyValues.full-screen {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    margin: 0px;
}

#dvOrderEmergancyValues.full-screen .emergency-data-table-main {
    height: -webkit-calc(100vh - 100px);
    height: calc(100vh - 100px);
    width: -webkit-calc(100% - 300px);
    width: calc(100% - 300px);
}

#dvOrderEmergancyValues.full-screen .emergency-data-table-left-header {
    height: -webkit-calc(100vh - 117px);
    height: calc(100vh - 117px);
}

#dvOrderEmergancyValues.full-screen .emergency-data-table-top-header {
    width: -webkit-calc(100% - 320px);
    width: calc(100% - 320px);
}
.emergency-data-table-blank {
    overflow: hidden;
    position: absolute;
    width: 300px;
    height: 200px;
    border-right: 2px solid #000;
}

.emergency-data-table-top-header {
    overflow: hidden;
    position: relative;
    width: calc(100% - 300px);
    margin-left: 300px;
    border-bottom: 2px solid #000;
}

.emergency-data-table-left-header {
    overflow: hidden;
    position: relative;
    float: left;
    width: 300px;
    height: calc(100vh - 360px);
    margin-top: -2px;
    border-top: 2px solid #000;
    border-right: 2px solid #000;
}
.emergency-data-table-left-header table tr.hover td {
    background-color: #f5f5f5;
}

.emergency-data-table-main {
    overflow: scroll;
    width: -webkit-calc(100% - 283px);
    width: calc(100% - 283px);
    height: -webkit-calc(100vh - 345px);
    height: calc(100vh - 345px);
    position: relative;
    float: left;
    margin: 0px -17px -17px 0px;
}

.emergency-data-table-main .form-control {
    height: 26px;
    padding: 0px 12px;
}

.emergency-data-table {
    border-collapse: collapse;
}

.emergency-data-table,
.emergency-data-table td {
    border: 1px solid lightgray;
}

/* cell and header width */
.emergency-data-table-top-header th,
.emergency-data-table-top-header td,
.emergency-data-table-main th,
.emergency-data-table-main td {
    min-width: 140px;
    max-width: 140px;
    width: 140px;
    padding: 8px 4px !important;
    word-break: break-word;
}

.emergency-data-table-top-header th {
    height:46px;
    text-align: center;
}


/* empty last column */
.emergency-data-table .absorbingColumn,
.emergency-data-table-top-header .absorbingColumn {
    min-width: 0;
    padding: 8px 4px;
}
/* alignment fix */
#firstcol td {
    border-width: 1px 0;
}
/* thicker borders */
/*.emergency-data-table td:nth-of-type(6n+1),
.emergency-data-table-top-header th:nth-of-type(6n+1) {
    border-left-width: 2px;
    border-left-color: black;
}*/


/*---------------------------------------------------
    ORDERS
---------------------------------------------------*/
.orders.table-head-sticky td:nth-child(1),
.orders.table-head-static td:nth-child(1),
.orders.table-head-sticky th:nth-child(1),
.orders.table-head-static th:nth-child(1) {
    width: 200px;
}
.orders.table-head-sticky td:nth-child(2),
.orders.table-head-static td:nth-child(2),
.orders.table-head-sticky th:nth-child(2),
.orders.table-head-static th:nth-child(2) {
    width: 100px;

}

.orders.table-head-sticky td:nth-child(3),
.orders.table-head-static td:nth-child(3),
.orders.table-head-sticky th:nth-child(3),
.orders.table-head-static th:nth-child(3) {
     width: 90px;

}

.orders.table-head-sticky td:nth-child(4),
.orders.table-head-static td:nth-child(4),
.orders.table-head-sticky th:nth-child(4),
.orders.table-head-static th:nth-child(4) {
    width: 150px;

}

.orders.table-head-sticky td:nth-child(5),
.orders.table-head-static td:nth-child(5),
.orders.table-head-sticky th:nth-child(5),
.orders.table-head-static th:nth-child(5) {
    max-width: 150px;
}

.orders.table-head-sticky td:nth-child(6),
.orders.table-head-static td:nth-child(6),
.orders.table-head-sticky th:nth-child(6),
.orders.table-head-static th:nth-child(6) {
    width: 190px;
}

.orders.table-head-sticky td:nth-child(7),
.orders.table-head-static td:nth-child(7),
.orders.table-head-sticky th:nth-child(7),
.orders.table-head-static th:nth-child(7) {
    width: 90px;
}

/*---------------------------------------------------
    CONSUMPTION
---------------------------------------------------*/

.consumption.table-head-sticky td:nth-child(1),
.consumption.table-head-static td:nth-child(1),
.consumption.table-head-sticky th:nth-child(1),
.consumption.table-head-static th:nth-child(1) {
    max-width: 400px;
}
.consumption.table-head-sticky td:nth-child(2),
.consumption.table-head-static td:nth-child(2),
.consumption.table-head-sticky th:nth-child(2),
.consumption.table-head-static th:nth-child(2) {
    width: 150px;

}

.consumption.table-head-sticky td:nth-child(3),
.consumption.table-head-static td:nth-child(3),
.consumption.table-head-sticky th:nth-child(3),
.consumption.table-head-static th:nth-child(3) {
     width: 150px;

}

.consumption.table-head-sticky td:nth-child(4),
.consumption.table-head-static td:nth-child(4),
.consumption.table-head-sticky th:nth-child(4),
.consumption.table-head-static th:nth-child(4) {
    width: 150px;

}

.consumption.table-head-sticky td:nth-child(5),
.consumption.table-head-static td:nth-child(5),
.consumption.table-head-sticky th:nth-child(5),
.consumption.table-head-static th:nth-child(5) {
    width: 150px;
}

.consumption.table-head-sticky td:nth-child(6),
.consumption.table-head-static td:nth-child(6),
.consumption.table-head-sticky th:nth-child(6),
.consumption.table-head-static th:nth-child(6) {
    width: 150px;
}

.consumption.table-head-sticky td:nth-child(7),
.consumption.table-head-static td:nth-child(7),
.consumption.table-head-sticky th:nth-child(7),
.consumption.table-head-static th:nth-child(7) {
    width: 150px;
}
.consumption.table-head-sticky td:nth-child(8),
.consumption.table-head-static td:nth-child(8),
.consumption.table-head-sticky th:nth-child(8),
.consumption.table-head-static th:nth-child(8) {
    width: 150px;
}
.consumption.table-head-sticky td:nth-child(9),
.consumption.table-head-static td:nth-child(9),
.consumption.table-head-sticky th:nth-child(9),
.consumption.table-head-static th:nth-child(9) {
    width: 150px;
}
.consumption.table-head-sticky td:nth-child(10),
.consumption.table-head-static td:nth-child(10),
.consumption.table-head-sticky th:nth-child(10),
.consumption.table-head-static th:nth-child(10) {
    width: 200px;
}

/*---------------------------------------------------
    PRODUCT CONSUMPTION
---------------------------------------------------*/

.product-consumption.table-head-sticky td:nth-child(1),
.product-consumption.table-head-static td:nth-child(1),
.product-consumption.table-head-sticky th:nth-child(1),
.product-consumption.table-head-static th:nth-child(1),
.product-consumption.table-head-sticky td:nth-child(2),
.product-consumption.table-head-sticky th:nth-child(2),
.product-consumption.table-head-sticky td:nth-child(3),
.product-consumption.table-head-sticky th:nth-child(3),
.product-consumption.table-head-sticky td:nth-child(4),
.product-consumption.table-head-sticky th:nth-child(4){
    width: 25%
}
