@font-face {
    font-family: 'bitstream';
    src: url('../fonts/veramono-webfont.eot');
    src: url('../fonts/veramono-webfont.eot?#iefix') format('embedded-opentype'),
    url('../fonts/veramono-webfont.woff') format('woff'),
    url('../fonts/veramono-webfont.ttf') format('truetype'),
    url('../fonts/veramono-webfont.svg#bitstream_vera_sans_monoroman') format('svg');
    font-weight: normal;
    font-style: normal;
}

.nav>li.active>a[role="tab"] {
    color: #444;
    font-weight: bold;
}

.nav>li>a[role="tab"] {
    color: #666;
}

.nav>li>a[role="tab"]:hover {
    text-decoration: underline;
}

.pager {
    margin: 1em 0;
    text-align: left;
}

.container > header, .wrapper > header {
    position: relative;
}

.bottomnav {
    margin: 1em 0;
}

#user {
    padding-top: 1em;
}

.container header .quicktop, .wrapper header .quicktop {
    position: absolute;
    right: 0;
    bottom: 0;
}

header.flex {
    -moz-box-flex: start;
    -ms-flex-align: start;
    -webkit-box-align: start;
    align-items: flex-start;
}

header.flex > :nth-child(2) {
    line-height: 1.5;
    text-align: right;
}

.right {
    float: right;
}

.panel-heading .flex a[rel="prev"] {
    margin-right: 10px;
}

.panel-heading > .nav-tabs {
    margin-bottom: -11px;
}

form.search, div.search {
    position: relative;
}

form.search input, div.search input {
    padding-right: 30px;
}

form.search a, div.search a {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 30px;
    background: url('../images/btn-search.png') no-repeat center center;
    background-size: 20px;
}

h3.status {
    font-size: 10pt;
    background: #ddd;
    padding: 0.3em 1em; /* 3px 10px; */
    border-radius: 0.5em; /* 8px */
}

ul.trail {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

ul.trail > li {
    border: 1px solid #ddd;
    margin: 1em 0;
    border-radius: 3px;
}

ul.trail > li > header {
    background-color: #f7f7f7;
    border-bottom: 1px solid #eee;
    padding: 1em;
}

ul.trail > li > header a.button {
    margin: -10px -8px;
}

ul.trail > li > div {
    padding: 1em;
}

ul.trail div.notes {
    margin-top: 1em;
}

table.trail ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

table.trail li + li {
    margin-top: 0.3em;
}

.linethrough {
    text-decoration: line-through;
}

#quick {
    font-size: 24pt;
}

#quick .modal-body label {
    display: block;
    margin-bottom: 0.5em;
}

#quick .modal-body input, #quick .modal-body button {
    min-height: 2em;
    font-size: 50pt;
    width: 100%;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    text-align: center;
}

#quick .modal-body button {
    min-height: 0;
    display: block;
    margin-top: 0.2em;
    font-size: inherit;
}

#quick .modal-footer p {
    font-size: 10px;
    margin: 0;
    text-align: left;
}

#quick_buttons button {
    width: 100%;
}

#quick_buttons li {
    margin: 0.5em 0;
}

fieldset.quick, div.quick404 {
    font-size: x-large;
}

.bon .items {
	border: 1px solid black;
	border-spacing: 0;
	width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
}

.bon .items thead {
	background: black;
	color: white;
	text-transform: uppercase;
	text-align: center;
	-webkit-print-color-adjust: exact;
	font-weight: bold;
	font-size: 12px;
}

.bon .items thead td {
	padding: 5px;
}

.bon .items thead td + td{
	border-left: 1px solid white;
}

.bon .items tbody tr + tr td {
	border-top: 1px solid black;
}

.bon .items tbody td + td {
	border-left: 1px solid black;
}

.bon .items tbody td {
	padding: 2px;
}

.bon .items input, .bon .items select {
    font-family: bitstream;
	width: 100%;
    min-height: 0;
	border: 0;
	padding: 0;
	-webkit-box-sizing:border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	-webkit-appearance: none;
	margin: 0;
	font-size: 10pt;
	height: 14pt;
	vertical-align: middle;
}

.bon .items .right {
	text-align: right;
}

.bon .items .error {
    background-color: rgba(255, 0, 0, 0.1);
}

#listemateriel iframe {
    float: right;
    width: 40%;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin-left: 1em;
}

table.prices {
    white-space: nowrap;
}

table .price {
    text-align: right;
    width: 7em;
}

table .price.error {
    color: red;
}

table td.quantity input[type="number"] {
    width: 5em;
    margin-right: 0.3em;
    padding-right: 0;
}

table td.quantity select {
    width: calc(100% - 5em - 0.3em);
}

table td.option input[type="number"] {
    width: 8em;
    margin-left: 0.3em;
    padding-right: 0;
}

table td.option input[type="number"]:first-of-type {
    width: 5em;
    margin-right: 0.3em;
    margin-left: 0;
    text-align: right;
}

table td.option input[type="text"] {
    width: calc(100% - 13em - 0.6em);
}

.optionlist .template {
    display: none;
}

.optionlist .input-group {
    width: 100%;
}

.optionlist td.buttons {
    text-align: center;
    width: 1px;
    white-space: nowrap;
}

table.prices .total {
    font-weight: bold;
    line-height: 2em;
}

.print_header {
    text-align: left;
    line-height: 1.5;
}

.print_header h1 {
    margin: 0;
}

.print_header h3 {
    margin: 0;
}

form#soumission td input[type="checkbox"] {
    width: 30px;
}

.soumission_header, .soumission_comments {
    line-height: 1.5;
    margin-bottom: 1.5em;
}

.soumission_header h3, .soumission_comments h3 {
    margin: 0;
}

#soumission_print {
    border-spacing: 0;
}

#soumission_print thead {
    text-transform: uppercase;
}

#soumission_print thead td {
    padding: 0.3em;
}

#soumission_print tbody td, #soumission_print tfoot td {
    padding: 0.3em 0.3em;
    vertical-align: top;
}

#soumission_print tr:nth-child(even) {
    background-color: #eee !important;
    -webkit-print-color-adjust: exact;
}

#bon_reception td {
    padding: 0.1em;
}

#inventory_list td form {
    display: inline-block;
}
#inventory_list td.unit_cost, #inventory_list td.reorder_level, td.temp {
    max-width: 8em;
}


#inventory_count td {
    padding: 0.3em;
}
#inventory_count .input-group {
    width: 100%;
}

@media screen {
    .print {
        display: none;
    }
}

@media screen and (max-device-width: 1024px) {
    header.flex {
        margin-right: 10px;
    }

    footer {
        margin: 1em 10px;
    }
}

@media print {
    a[href]:after {
        content: none !important;
    }
    .panel, .panel-heading, .panel-body {
        border: 0;
        margin: 0;
        padding: 0;
    }
    .panel-heading {
        padding-bottom: 0.3em;
        border-bottom: 1px solid #ddd;
    }
    .screen {
        display: none;
    }
    input, select, button, a.button {
        display: none;
    }
    fieldset {
        border: 0;
        margin: 0;
        padding: 0;
    }
    .print_header {
        top: 0;
        right: 0;
    }
    footer {
        position: fixed;
        right: 0;
        bottom: 0;
        font-size: inherit;
        color: inherit;
    }

    i.fa {
        display: none;
    }

    .idlist td {
        border-bottom: 1px solid #d8dee2;
    }

    #inventory_list caption {
        padding: 0.1em 0;
        font-size: 14px;
        font-weight: bold;
    }

    #inventory_list tr:nth-child(even) {
        background-color: #eee !important;
    }

    #inventory_list td {
        padding: 0;
        page-break-inside: avoid;
    }

    #FIXME:soumission_print thead {
        background: black;
        color: #ffffff;
        -webkit-print-color-adjust: exact;
    }
}