﻿/* reset */

* {
    border: 0;
    box-sizing: content-box;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    font-style: inherit;
    font-weight: inherit;
    line-height: inherit;
    list-style: none;
    margin: 0;
    padding: 0;
    text-decoration: none;
    vertical-align: top;
}

    /* content editable */

    *[contenteditable] {
        border-radius: 0.25em;
        min-width: 1em;
        outline: 0;
    }

    *[contenteditable] {
        cursor: pointer;
    }

        *[contenteditable]:hover, *[contenteditable]:focus, td:hover *[contenteditable], td:focus *[contenteditable], img.hover {
            background: #DEF;
            box-shadow: 0 0 1em 0.5em #DEF;
        }

span[contenteditable] {
    display: inline-block;
}

img:hover {
    background: #DEF;
    box-shadow: 0 0 1em 0.5em #DEF;
}

[ark-inv-logo]:hover {
    background: #DEF;
    box-shadow: 0 0 1em 0.5em #DEF;
    opacity: 1;
}
/* heading */
h1 {
    font: bold 100% sans-serif;
    letter-spacing: 0.5em;
    text-align: center;
    text-transform: uppercase;
}

/* table */

table {
    font-size: 75%;
    table-layout: fixed;
    width: 100%;
}

table {
    border-collapse: separate;
    border-spacing: 2px;
}

th, td {
    border-width: 1px;
    padding: 0.5em;
    position: relative;
    text-align: left;
}

th, td {
    border-radius: 0.25em;
    border-style: solid;
}

th {
    background: #EEE;
    border-color: #BBB;
}

td {
    border-color: #DDD;
}

/* page
*/

html {
    font: 16px/1 'Open Sans', sans-serif;
    overflow: auto;
    width: 100%;
    height: 100%;
    /*padding: 0.5in;*/
    padding-top: 1in;
}

html {
    background: #999;
    cursor: default;
}

body {
    width: 100%;
    height: 100%;
    padding: 0px;
    margin: 0px;
}
/*
body {
    box-sizing: border-box;
    height: 11in;
    margin: 0 auto;
    overflow: hidden;
    padding: 0.5in;
    width: 8.5in;
}

body {
    background: #FFF;
    border-radius: 1px;
    box-shadow: 0 0 1in -0.25in rgba(0, 0, 0, 0.5);
}*/


.page {
    box-sizing: border-box;
    margin: 0 auto;
    overflow: hidden;
    padding: 0.5in;
    page-break-after: auto;
}

.letter {
    width: 8.5in;
    height: 11in;
}

    .letter article {
        height: 780px;
    }

.a4 {
    width: 8.3in;
    height: 11.7in;
}

    .a4 article {
        height: 865px;
    }

.page {
    background: #FFF;
    border-radius: 1px;
    box-shadow: 0 0 1in -0.25in rgba(0, 0, 0, 0.5);
}

/* header */

header {
    /*margin: 0 0 3em;*/
    margin: 0 0 0em;
}

    header:after {
        clear: both;
        content: "";
        display: table;
    }

    header h1 {
        background: #000;
        border-radius: 0.25em;
        color: #FFF;
        margin: 0 0 1em;
        padding: 0.5em 0;
    }

    header address {
        float: left;
        font-size: 75%;
        font-style: normal;
        line-height: 1.25;
        margin: 0 1em 1em 0;
    }

        header address p {
            margin: 0 0 0.25em;
        }

    header span.logo, header img {
        display: block;
        float: right;
    }

    header span.logo {
        margin: 0 0 1em 1em;
        max-height: 25%;
        max-width: 60%;
        position: relative;
    }

    header img {
        max-height: 100%;
        max-width: 100%;
    }

    header input {
        cursor: pointer;
        -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
        height: 100%;
        left: 0;
        opacity: 0;
        position: absolute;
        top: 0;
        width: 100%;
    }

input[type="date"].ark-datepicker::-webkit-calendar-picker-indicator {
    background: transparent;
    bottom: 0;
    color: transparent;
    cursor: pointer;
    height: auto;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
}

/* article */

article, article address, table.meta, table.inventory {
    margin: 0 0 0em;
}

    article:after {
        clear: both;
        content: "";
        display: table;
    }

    article h1 {
        clip: rect(0 0 0 0);
        /*position: absolute;*/
    }

    article address {
        float: left;
        font-size: 125%;
        font-weight: bold;
    }

/* table meta & balance */

table.meta, table.balance {
    float: right;
    width: 36%;
}

    table.meta:after, table.balance:after {
        clear: both;
        content: "";
        display: table;
    }

    /* table meta */

    table.meta th {
        width: 40%;
    }

    table.meta td {
        width: 60%;
    }

/* table items */

table.inventory {
    clear: both;
    width: 100%;
}

    table.inventory th {
        font-weight: bold;
        text-align: center;
    }

    table.inventory td[ark-fix-sl-col] {
        width: 10%;
        text-align: center;
    }

    table.inventory td[ark-fix-code-col] {
        width: 26%;
        text-align: center;
    }

    table.inventory td[ark-fix-desc-col] {
        width: 38%;
        overflow: hidden;
    }

    table.inventory td[ark-fix-uom-col] {
        width: 12%;
        text-align: center;
        overflow: hidden;
    }

    table.inventory td[ark-fix-qty-col] {
        width: 12%;
        text-align: center;
    }

    table.inventory td[ark-fix-up-col] {
        text-align: right;
        width: 12%;
    }

    table.inventory td[ark-fix-tp-col ] {
        text-align: right;
        width: 12%;
    }

    table.inventory td[ark-fix-total-calc-col] {
        text-align: right;
        width: 12%;
    }

/* table balance */

table.balance th, table.balance td {
    width: 50%;
}

table.balance td {
    text-align: right;
}

/* aside */

aside h1 {
    border: none;
    border-width: 0 0 1px;
    margin: 0 0 1em;
}

aside h1 {
    border-color: #999;
    border-bottom-style: solid;
}

/* javascript */

.add, .cut {
    border-width: 1px;
    display: block;
    font-size: .8rem;
    padding: 0.25em 0.5em;
    float: left;
    text-align: center;
    width: 0.6em;
}

.add, .cut {
    background: #9AF;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    background-image: -moz-linear-gradient(#00ADEE 5%, #0078A5 100%);
    background-image: -webkit-linear-gradient(#00ADEE 5%, #0078A5 100%);
    border-radius: 0.5em;
    border-color: #0076A3;
    color: #FFF;
    cursor: pointer;
    font-weight: bold;
    text-shadow: 0 -1px 2px rgba(0,0,0,0.333);
}

.add {
    margin: .5em 0 0;
}

    .add:hover {
        background: #00ADEE;
    }

.cut {
    opacity: 0;
    position: absolute;
    top: 0;
    left: -2.5em;
}

.cut {
    -webkit-transition: opacity 100ms ease-in;
}

tr:hover .cut {
    opacity: 1;
}

.col-add-cut-top {
    border-width: 1px;
    display: block;
    font-size: 1rem;
    padding: 0.25em 0.5em;
    text-align: left;
    width: 10em;
    /*background: #9AF;*/
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    /*background-image: -moz-linear-gradient(#00ADEE 5%, #0078A5 100%);
    background-image: -webkit-linear-gradient(#00ADEE 5%, #0078A5 100%);*/
    background-color: #141313cf;
    border-radius: 0.5em;
    border-color: #0076A3;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
    text-shadow: 0 -1px 2px rgba(0,0,0,0.333);
    opacity: 0;
    position: absolute;
    top: -6.0em;
    left: 30%;
    display: inline-block;
}

tr th:hover .col-add-cut-top {
    opacity: 1;
}

.col-add-cut-top a, img, span {
    vertical-align: middle;
}

.col-add-cut-top.no-remove {
    top: -2.5em;
}

@media print {
    * {
        -webkit-print-color-adjust: exact;
    }

    html {
        background: none;
        padding: 0;
    }

    body {
        box-shadow: none;
        margin: 0;
    }

    span:empty {
        display: none;
    }

    .add, .cut {
        display: none;
    }
}

[data-prefix] {
    padding-right: 2px;
}

@page {
    margin: 0;
}


@media print {
    .no-print, .no-print * {
        display: none !important;
    }
}


/*resizable changes*/

.resizer {
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    cursor: col-resize;
    user-select: none;
}

    .resizer:hover,
    .resizing {
        border-right: 2px solid blue;
    }

.resizable {
    border: 1px solid gray;
    height: 100px;
    width: 100px;
    position: relative;
}

/*modal dialog*/

.modalDialog {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    -webkit-transition: opacity 300ms ease-in;
    -moz-transition: opacity 300ms ease-in;
    transition: opacity 300ms ease-in;
    pointer-events: none;
}

    .modalDialog:target {
        opacity: 1;
        pointer-events: auto;
    }

.popWrap {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 50%;
    max-width: 300px;
    min-width: 280px;
    height: auto;
    background: #fff;
    -webkit-transform: translateX(-50%) translateY(-50%);
    -moz-transform: translateX(-50%) translateY(-50%);
    -ms-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
}

/* custum-popup style */
.modalDialog {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    -webkit-transition: opacity 300ms ease-in;
    -moz-transition: opacity 300ms ease-in;
    transition: opacity 300ms ease-in;
    pointer-events: none;
}

    .modalDialog:target {
        opacity: 1;
        pointer-events: auto;
    }

.popWrap {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 50%;
    max-width: 300px;
    min-width: 280px;
    height: auto;
    background: #fff;
    -webkit-transform: translateX(-50%) translateY(-50%);
    -moz-transform: translateX(-50%) translateY(-50%);
    -ms-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
}

.popTit {
    height: 50px;
    line-height: 50px;
    text-align: center;
    color: #ff7573;
    border-bottom: 2px solid #ff7573;
    font-size: 1.1em;
}

.popCont {
    padding: 15px;
    text-align: center;
    color: #7e7e7e;
}

    .popCont p {
        white-space: pre-line;
    }

    .popCont.type02 {
        text-align: left
    }

.popBtn {
    text-align: center;
    background-color: #eceef1;
    overflow: hidden
}

    .popBtn.type01 {
        padding: 10px 80px
    }

    .popBtn.type02 {
        padding: 10px
    }

        .popBtn.type02 .btnBx {
            display: block;
            float: left;
            width: 50%
        }

            .popBtn.type02 .btnBx .btn {
                display: block;
                padding: 0 5px
            }

    .popBtn .cmnBtn {
        height: 35px;
        line-height: 35px
    }

.cmnBtn {
    display: inline-block;
    width: 100%;
    height: 30px;
    line-height: 30px;
    text-align: center;
    color: #7e7e7e !important;
    background-color: #f7f7f7;
    border: 1px solid #d0d0d0;
    border-radius: 3px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px
}

    .cmnBtn.on {
        color: #ff7573 !important;
        background-color: #fff;
        border: 1px solid #ff7573
    }


/* product-items */

ul.auto-list {
    background-color: #00adee;
    border-left: 5px solid #003842;
    cursor: pointer;
    color: #333;
    position: fixed;
    left: 5px;
    top: 5px;
    max-width: 275px;
    max-height: 98%;
    overflow-y: auto;
    overflow-x: hidden;
}

    ul.auto-list li {
        margin: 0.2em 0;
        padding: 0.5em 0.8em;
        list-style: none;
        background-color: #f2f2f2;
        border-left: 5px solid #003842;
        cursor: pointer;
        color: #333;
    }

        ul.auto-list li:hover {
            background-color: #008cba;
        }

#add-prod i:hover, .prod-collapse i:hover {
    background-color: #00adee;
}
/* customer-items */
ul.customer-list {
    background-color: #00adee;
    border-left: 5px solid #003842;
    cursor: pointer;
    color: #333;
    position: fixed;
    right: 5px;
    top: 5px;
    max-width: 275px;
    max-height: 98%;
    overflow-y: auto;
    overflow-x: hidden;
}

    ul.customer-list li {
        margin: 0.2em 0;
        padding: 0.5em 0.8em;
        list-style: none;
        background-color: #f2f2f2;
        border-left: 5px solid #003842;
        cursor: pointer;
        color: #333;
    }

.cust-collapse i:hover {
    background-color: #00adee;
}

.save-address i:hover {
    background-color: #00adee;
}

.delete-address i:hover {
    background-color: #00adee;
}

.customer-item:hover > .inner-ss {
    background-color: red;
    opacity: 1;
}
/*draggable table*/
.movable {
    cursor: move;
    position: absolute;
    left: -10px;
    top: 0px;
}

.button-print {
    background-color: #008CBA;
    border: none;
    color: white;
    padding: 3px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    height: 35px;
    cursor: pointer;
    border-radius: 5px;
    margin-left: 10px;
}


/*help icon*/
#help-button {
    justify-self: center;
    align-self: center;
    border: none;
    background-color: #008CBA;
    border: 0.17rem solid white;
    border-radius: 2rem;
    cursor: pointer;
    width: 1.5rem;
    height: 1.5rem;
    transform: translateY(0) scale(1);
    transition: transform 0.12s ease-out;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    position: absolute;
    top: 7px;
    margin-left: 20px;
}

    /*#help-button:active {
        transform: translateY(1rem) scale(0.95);
    }*/

    /*#help-button:focus {
        outline: none;
        box-shadow: 0 0 0 0.3rem rgba(255, 255, 255, 0.3);
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    }*/

    #help-button svg {
        width: 100%;
        height: 100%;
    }

        #help-button svg path {
            stroke: white;
            stroke-width: 6;
            transition: stroke-dasharray 0.44s, stroke-dashoffset 0.44s;
            will-change: stroke-dasharray, stroke-dashoffset;
        }

.kf1 #dot {
    stroke-dasharray: 12.5 190;
    stroke-dashoffset: 0;
}

.kf2 #dot {
    stroke-dasharray: 58 190;
    stroke-dashoffset: -102;
}

.kf3 #dot {
    stroke-dasharray: 12.5 177;
    stroke-dashoffset: -190;
}

.kf1 #qmark {
    stroke-dasharray: 97 207;
    stroke-dashoffset: -112;
}

.kf2 #qmark {
    stroke-dasharray: 58 207;
    stroke-dashoffset: 0;
}

.kf3 #qmark {
    stroke-dasharray: 97 112;
    stroke-dashoffset: 97;
}


/*product modal dialog*/
.product-modal .form-group {
    margin-bottom: 20px;
}

.product-modal h2.heading {
    font-size: 18px;
    text-transform: uppercase;
    font-weight: 300;
    text-align: left;
    color: #506982;
    border-bottom: 1px solid #506982;
    padding-bottom: 3px;
    margin-bottom: 20px;
}

.product-modal .controls {
    text-align: left;
    position: relative;
}

    .product-modal .controls input[type="text"],
    .product-modal .controls input[type="email"],
    .product-modal .controls input[type="tel"],
    .product-modal .controls input[type="number"],
    .product-modal .controls textarea,
    .product-modal .controls button,
    .product-modal .controls select {
        padding: 12px;
        font-size: 14px;
        border: 1px solid #c6c6c6;
        width: 100%;
        margin-bottom: 18px;
        color: #888;
        font-family: 'Lato', 'sans-serif';
        font-size: 16px;
        font-weight: 300;
        background-color: #fff;
        -moz-border-radius: 2px;
        -webkit-border-radius: 2px;
        border-radius: 2px;
        -moz-transition: all 0.3s;
        -o-transition: all 0.3s;
        -webkit-transition: all 0.3s;
        transition: all 0.3s;
    }

    .product-modal .controls input[type="text"],
    .product-modal .controls input[type="email"],
    .product-modal .controls input[type="tel"],
    .product-modal .controls input[type="number"],
    .product-modal .controls textarea,
    .product-modal .controls select {
        width: 91%;
    }

.product-modal .full-btn button {
    padding: 12px;
    border: 1px solid #c6c6c6;
    width: 97%;
    margin-bottom: 18px;
    color: #fff;
    font-family: 'Lato', 'sans-serif';
    font-size: 25px;
    font-weight: 300;
    background-color: #2b91d5;
    -moz-border-radius: 2px;
    -webkit-border-radius: 2px;
    border-radius: 2px;
    -moz-transition: all 0.3s;
    -o-transition: all 0.3s;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
}

.product-modal .controls input[type="text"]:focus, .controls input[type="text"]:hover,
.product-modal .controls input[type="email"]:focus,
.product-modal .controls input[type="email"]:hover,
.product-modal .controls input[type="tel"]:focus,
.product-modal .controls input[type="tel"]:hover,
.product-modal .controls textarea:focus,
.product-modal .controls textarea:hover,
.product-modal .controls button:focus,
.product-modal .controls button:hover,
.product-modal .controls select:focus,
.product-modal .controls select:hover {
    outline: none;
    border-color: #9FB1C1;
}

    .product-modal .controls input[type="text"]:focus + span, .controls input[type="text"]:hover + span,
    .product-modal .controls input[type="email"]:focus + span,
    .product-modal .controls input[type="email"]:hover + span,
    .product-modal .controls input[type="tel"]:focus + span,
    .product-modal .controls input[type="tel"]:hover + span,
    .product-modal .controls textarea:focus + span,
    .product-modal .controls textarea:hover + span,
    .product-modal .controls button:focus + span,
    .product-modal .controls button:hover + span,
    .product-modal .controls select:focus + span,
    .product-modal .controls select:hover + span {
        color: #077ABC;
        cursor: text;
    }

.product-modal .controls .fa-sort {
    position: absolute;
    right: 10px;
    top: 17px;
    color: #999;
}

.product-modal .controls select {
    -moz-appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.product-modal .controls span {
    position: absolute;
    left: 8px;
    top: 12px;
    color: #999;
    font-size: 16px;
    display: inline-block;
    padding: 4px 10px;
    font-weight: 400;
    background-color: rgba(255, 255, 255, 0);
    /*pointer-events: none;*/
    -moz-transition: color 0.3s, top 0.3s, background-color 0.8s;
    -o-transition: color 0.3s, top 0.3s, background-color 0.8s;
    -webkit-transition: color 0.3s, top 0.3s, background-color 0.8s;
    transition: color 0.3s, top 0.3s, background-color 0.8s;
}

    .product-modal .controls span.active {
        top: -11px;
        color: #555;
        background-color: white;
    }

.product-modal .controls textarea {
    resize: none;
    height: 200px;
}

.product-modal .controls button {
    cursor: pointer;
    background-color: #07B3A1;
    border: none;
    color: #fff;
    padding: 12px 0;
}

    .product-modal .controls button:hover,
    .product-modal .full-btn button:hover {
        background-color: #08ccb7;
    }

#qrcode canvas {
    border: 1px solid;
}

/*flip button*/
.tg-list {
    text-align: center;
    display: flex;
    align-items: center;
}

.tg-list-item {
    margin: 0 2em;
}

.tgl-flip + .tgl-btn {
    padding: 2px;
    transition: all 0.2s ease;
    font-family: sans-serif;
    perspective: 100px;
}

    .tgl-flip + .tgl-btn:after, .tgl-flip + .tgl-btn:before {
        display: inline-block;
        transition: all 0.4s ease;
        width: 100%;
        text-align: center;
        position: absolute;
        line-height: 2.5em;
        font-weight: bold;
        color: #fff;
        position: absolute;
        top: 0;
        left: 0;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        border-radius: 4px;
    }

    .tgl-flip + .tgl-btn:after {
        content: attr(data-tg-on);
        background: #02C66F;
        transform: rotateY(-180deg);
    }

    .tgl-flip + .tgl-btn:before {
        background: #FF3A19;
        content: attr(data-tg-off);
    }

    .tgl-flip + .tgl-btn:active:before {
        transform: rotateY(-20deg);
    }

.tgl-flip:checked + .tgl-btn:before {
    transform: rotateY(180deg);
}

.tgl-flip:checked + .tgl-btn:after {
    transform: rotateY(0);
    left: 0;
    background: #7FC6A6;
}

.tgl-flip:checked + .tgl-btn:active:after {
    transform: rotateY(20deg);
}

/*publish modal*/

#btn-pub-go:hover {
    background-color: #3e8e41 !important;
    color: red;
}

#btn-pub-cancel:hover {
    background-color: red !important;
    color: white;
}
