﻿/* open-sans-regular - latin. Used: https://google-webfonts-helper.herokuapp.com/fonts/open-sans?subsets=latin */
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    src: url('/Content/fonts/open-sans-v17-latin-regular.eot'); /* IE9 Compat Modes */
    src: local('Open Sans Regular'), local('OpenSans-Regular'), url('/Content/fonts/open-sans-v17-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
    url('/Content/fonts/open-sans-v17-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
    url('/Content/fonts/open-sans-v17-latin-regular.woff') format('woff'), /* Modern Browsers */
    url('/Content/fonts/open-sans-v17-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
    url('/Content/fonts/open-sans-v17-latin-regular.svg#OpenSans') format('svg'); /* Legacy iOS */
}

body {
    background-color: transparent;
    padding-top: 50px;
    padding-bottom: 20px;
    font-family: 'Open Sans', sans-serif;
}

footer {
    min-height: 180px;
}

@media print
{
    footer {
        display: none;
    }
}

.navbar-inverse {
    background-color: #005c7d;
}
.navbar-inverse .navbar-brand {
    color: white;
}

.navbar-brand {
    font-weight: 500;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
body, .navbar-header {
    min-width: 350px;
}

/* Set padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Set width on the form input elements since they're 100% wide by default */
/*input[type="text"],
input[type="password"] {
    max-width: 325px;
}*/

.input-group-addon, .input-group-btn
{
    /* avoids gap between textbox and calendar button */
    width: 0;
    cursor: pointer;
}

.form-control {
    max-width: 325px;
    font-size: 14px;
}

@media (max-width: 499px) {
    .form-control {
        font-size: 16px;
    }
}

@media screen
{
    a, a:visited, a:active, a:hover
    {
        border-bottom: 1px blue dotted;
        text-decoration: none;
    }
}

/* styles for validation helpers */
.field-validation-error {
    color: #b94a48;
}

.field-validation-valid {
    display: none;
}

input.input-validation-error {
    border: 1px solid #b94a48;
}

input[type="checkbox"].input-validation-error {
    border: 0 none;
}

.validation-summary-errors {
    color: #b94a48;
}

.validation-summary-valid {
    display: none;
}

input.small-field, select.small-field {
    max-width: 120px;
}

input.medium-field, select.medium-field {
    max-width: 500px;
}

div fieldset {
    margin-top: 40px;
}

fieldset legend {
    font-size: 18px;
}

.full-width {
    max-width: 100%;
}

/*.datepickerctrl {
    max-width: 400px;
}*/

hr.separator {
    margin: 25px 33%;
    height: 1px;
    border: 0;
    background: black;
    background: -webkit-gradient(linear, 0 0, 100% 0, from(white), to(white), color-stop(50%, black));
}

div h2 {
    margin-bottom: 40px;
}

.loading-status {
    width: 175px;
    height: 175px;
    border-radius: 50%;
    display: block;
    float: right;
}

.loading-status.error {
    background: red;
}

.loading-status.success {
    background: greenyellow;
}

.loading-status.waiting {
    background: orange;
}

.loading-last-scanned {
    background-color: greenyellow; 
    width: 30px; 
    height: 5px;
}

.loading-button {
    width: 130px;
}

.create-new-container {
    text-align: right;    
}

.create-new {
    display: inline-block; 
    /*text-align: right;*/
    margin-bottom: 20px;
}

/*** dialogs */
.modal-dialog {
    
    width: 100%;
    /*margin: auto;*/
    margin-top: 60px;
    /*overflow: auto;*/
    display: table; /* expand dialog to fit content */
}

.table.sortable {
    width: 100% !important;
}

@media (min-width: 768px) {
    .modal-dialog {
        width: 90%;
    }

    /* only pull right on all except xs devices */
    .pull-right-sm {
        float: right !important;
    }
}

@media (max-width: 767px) {
    .pull-right-sm {
        margin-top: 10px;
    }

    #OrderItemsEditor .form-horizontal .control-label {
        padding-top: 7px;
        margin-bottom: 0;
        /*text-align: right;*/
    }

    .order-item-width {
        margin-bottom: 15px !important;
    }

    .barcode, .print-last-customer-label {
        margin-bottom: 15px !important;
    }

    .loading-status {
        float: left;
    }

    /*#OrderItemsEditor .panel-group .form-horizontal .control-label {
        padding-left: 0px;
        padding-right: 0px;
    }*/
}


.modal-footer button {
    position: -webkit-sticky; /* Safari */
    position: sticky;
    right: 20px;
}

.search-dialog-button-separator, .button-separator {
    margin-top: 5px;
    margin-bottom: 30px;
}

.search-dialog-button-separator-inline {
    margin-left: 5px;
    margin-bottom: 30px;
}

.top-buffer, .buffer {
     margin-top: 20px;
}

.bottom-buffer, .buffer {
     margin-bottom: 20px;
}

.form-control-checkbox {
    width: 20px !important;
    height: 20px !important;
}

/*footer
{
    clear: both;
    padding: 0;
    margin: 0;
    position: fixed;
    bottom: 0px;
    width: 100%;
}*/

a.nav-header-link {
    font-size: 16px;
    color: white;
    padding-top: 10px;
    border-bottom: 1px white dotted;
}

a.nav-header-link a.nav-header-link:visited, a.nav-header-link:active, a.nav-header-link:hover {
    color: white;
    border-bottom: 1px white dotted;
    text-decoration: none;
}

.username {
    color: white;
    margin-right: 20px;
    font-size: 16px;
}

.format-number {
    text-align: right;
    padding-right: 20px !important;
}

.draggable {
    cursor: move;
}

.errorMsg {
    color: #b94a48;
}

/* TODO: spinner control has display: 
    which appears to stack the controls. This is temp workaround. */
.spinnerflex + .input-group {
    display: flex;
}

.spinnerflex {
    min-width: 40px;
}

/* bootstrap 4 class not available bootstrap 3*/
.btn-outline-secondary {
    color: #6c757d;
    /*background-color: transparent;*/
    background-color: #F0F0F0;
    /*border-color: #6c757d;*/
    border-color: #CCC;
}

.border {
    border: 1px solid;
}

.border-left {
    border-left: 1px solid;
}
.border-right {
    border-right: 1px solid;
}
.border-top {
    border-top: 1px solid;
}
.border-bottom {
    border-bottom: 1px solid;
}

.rounded {
    border-radius: 5px;
}
.rounded-top-left {
    border-top-left-radius: 5px;
}
.rounded-top-right {
    border-top-right-radius: 5px;
}
.rounded-bottom-left {
    border-bottom-left-radius: 5px;
}
.rounded-bottom-right {
    border-bottom-right-radius: 5px;
}

.border-dark {
    border-color: #343a40 !important;
}

.page-break {
    page-break-before: always;
}

.product-type-name {
    overflow-wrap: break-word;
    max-width: 700px;
}