:root {
    --table-header-color: darkseagreen;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
    position: relative;
    min-height: 100%;
}


footer, .navbar-main {
    background-color: darkseagreen;
}

@media (max-width: 576px) {
    .navbar-subnav {
        padding: 0;
    }
}

footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
}

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

a {
    color: darkgreen;
}

    a[disabled="disabled"] {
        pointer-events: none;
    }

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: seagreen;
    padding: var(--bs-nav-link-padding-y);
}

.nav-item {
    --bs-nav-pills-border-radius: 0.2rem;
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

/*.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}*/

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

/*----------------------------------------------------------
The base color for this template is #87b25c. If you'd like
to use a different color start by replacing all instances of
#87b25c with your new color.
----------------------------------------------------------*/
.clearing {
    clear: both;
}

.clear {
    clear: both;
    height: 0;
    overflow: hidden;
    display: block;
}

.clearafter:after {
    content: ".";
    display: block;
    height: 0;
    overflow: hidden;
    clear: both;
    visibility: hidden;
}

* html .clearafter {
    zoom: 1;
}

*:first-child + html .clearafter {
    zoom: 1;
}

.hidden {
    display: none !important;
}

/*body {
    font-family: "Trebuchet MS", Verdana, Helvetica, Sans-Serif;
}*/

p {
    margin-top: 1rem;
}

/*a {
    color: #000;
    text-decoration: underline;
}
*/
    a:hover {
        text-decoration: none;
    }

ol, ul {
    list-style: none;
    padding: 0;
}


/* HEADINGS   
----------------------------------------------------------*/
h1, h2, h3, h4, h5, h6 {
    font-size: 1.5em;
    color: #000;
}

h1 {
    font-size: 2em;
    padding-bottom: 0;
    margin-bottom: 0;
}

/*h2 { padding: 0 0 10px 0; }*/

h3 {
    font-size: 1.2em;
}

h4 {
    font-size: 1.1em;
}

h5, h6 {
    font-size: 1em;
}

input[type="submit"],
input[type="button"],
button, .button {
    display: inline-block;
    background: #22A922;
    padding: 5px;
    text-align: center;
    color: white;
    font-size: 1em;
    -webkit-appearance: caret;
    cursor: pointer;
    margin: 1px;
    text-decoration: none;
    border: 0;
    padding: 7px;
}

input::placeholder {
    font-size: 0.9rem;
}

a.button {
    padding: 7px;
}

.tools {
    background-color: gold !important;
    color: #000;
}

.helper {
    background-color: var(--bs-indigo) !important;
    color: #fff !important;
}

.admin {
    background-color: black !important;
}

.next-state {
    background: #2222A9 !important;
    color: white;
}


/* PRIMARY LAYOUT ELEMENTS   
----------------------------------------------------------*/
/* you can specify a greater or lesser percentage for the 
page width. Or, you can specify an exact pixel width. */
.page {
    /*width: 1200px;*/
    padding: 20px;
    margin-left: auto;
    margin-right: auto;
    background-color: #ffffff;
    background-image: url("glood.png");
    background-repeat: no-repeat;
    background-position: 98% 0%;
    background-size: 64px;
    /*min-height: 600px;*/
}

header, #header {
    position: relative;
    margin-bottom: 0px;
    color: #000;
    padding: 0;
}

    header h1, #header h1 {
        font-weight: bold;
        padding: 5px 0;
        margin: 0;
        color: #fff;
        border: none;
        line-height: 2em;
        font-size: 32px !important;
        text-shadow: 1px 1px 2px #111;
    }

main {
    margin-bottom: 100px;
}

/* TAB MENU   
----------------------------------------------------------*/
ul.appmenu {
    border-bottom: 1px #87b25c solid;
    padding: 0 0 2px;
    position: relative;
    margin: 0;
    /*text-align: right;*/
}

    ul.appmenu li {
        display: inline;
        list-style: none;
    }

        ul.appmenu li#greeting {
            padding: 10px 20px;
            font-weight: bold;
            text-decoration: none;
            line-height: 2.8em;
            color: #fff;
        }

        ul.appmenu li a {
            padding: 10px 20px;
            font-weight: bold;
            text-decoration: none;
            line-height: 2.8em;
            background-color: #87b25c;
            color: #fff;
        }

            ul.appmenu li a:hover,
            ul.appmenu li a:active {
                text-decoration: underline;
            }

        ul.appmenu li.selected a {
            font-weight: bold;
            text-decoration: underline;
        }

/* FORM LAYOUT ELEMENTS   
----------------------------------------------------------*/

fieldset {
    border: 1px solid #ddd;
    padding: 0 1.4em 1.4em 1.4em;
    margin: 0 0 1.5em 0;
}

legend {
    font-size: 1.2em;
    font-weight: bold;
}

textarea {
    width: 96%;
    height: 120px;
    padding: 2px;
    font-size: 1em;
    font-family: "Trebuchet MS", Verdana, Helvetica, Sans-Serif;
}

select {
    border: 1px solid #ccc;
    padding: 4px;
    font-size: 1em;
    color: #444;
}

i.mandatory {
    font-size: 0.5rem;
    position: relative;
    top: -0.5rem;
    color: var(--bs-danger);
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.2rem #ccc;
}

.form-control-short {
    max-width: 22rem;
}

.form-control-number {
    max-width: 11rem;
}

/* TABLE
----------------------------------------------------------*/
table {
    border: solid 1px var(--table-header-color);
    border-collapse: collapse;
    width: 100%;
}

    table td {
        padding: .3rem .3rem;
        border: solid 1px var(--table-header-color);
    }

    table th {
        padding: .3rem .3rem;
        text-align: left;
        background-color: var(--table-header-color);
        /*border: solid 1px #ccc;*/
        /*font-weight: normal;*/
    }

    table th select {
        height: 36px;
    }

    table .label {
        width: 20%;
        text-align: right;
        vertical-align: top;
        padding-right: 5px;
        padding-top: 1px;
    }

        table .label em, #quickSearchMenu em {
            display: block;
            font-size: 0.7em;
            font-style: italic;
        }



    table th.w0 {
        width: 5%;
    }

    table th.w5 {
        width: 5%;
    }

    table th.w10 {
        width: 10%;
    }

    table th.w15 {
        width: 15%;
    }

    table th.w20 {
        width: 20%;
    }

    table th.w25 {
        width: 25%;
    }

    table th.w30 {
        width: 30%;
    }

    table th.w35 {
        width: 35%;
    }

    table th.w40 {
        width: 40%;
    }

    table th.w45 {
        width: 45%;
    }

    table th.w50 {
        width: 50%;
    }

    table th.w55 {
        width: 55%;
    }

    table th.w60 {
        width: 60%;
    }

    table th.w65 {
        width: 65%;
    }

    table th.w70 {
        width: 70%;
    }

    table th.w75 {
        width: 75%;
    }

    table th.w80 {
        width: 80%;
    }

    table th.w85 {
        width: 85%;
    }

    table th.w90 {
        width: 90%;
    }

    table th.w95 {
        width: 95%;
    }

    input.short, table input.short {
        width: 330px;
    }

thead.audit th {
    background-color: lightslategray;
}

table.item-lines td {
    padding: 0.1rem;
}

table.item-lines .form-control {
    /*border-radius: 0;*/
    font-weight: 500;
}

/* TABLE LAYOUT UP TO SMALL */
@media (max-width: 768px) {
    table a.item-image img {
        max-width: 32px;
        max-height: 32px;
    }
}

/* TABLE LAYOUT LARGE AND BELOW */
@media (max-width: 1199px) {
    table {
        font-size: 0.8rem;
    }
        table .form-control {
            font-size: 0.8rem;
            padding: .375rem .3rem;
        }

        table a.item-image img {
            max-width: 64px;
            max-height: 64px;
        }
}

table.relatorio {
    font-size: 0.8rem;
}

    table.relatorio th {
        font-weight: 500;
    }

    table.relatorio .form-control {
        font-size: 0.8rem;
        padding: .375rem .3rem;
    }

    table.relatorio a.item-image img {
        max-width: 64px;
        max-height: 64px;
    }


a.item-image, a.item-image-detail {
    text-decoration: none;
}


/* TABLE LAYOUT LARGE AND ABOVE */
#stockStart td {
    background-color: darkseagreen;
    line-height: 0;
    padding: .1rem;
}

.quantity-in-location {
    padding: 0.2rem;
    display: inline-block;
    background-color: var(--bs-warning-bg-subtle);
}

.enough-in-location {
    font-weight: bold;
    background-color: var(--bs-warning);
}

thead.sticky tr {
    position: -webkit-sticky;
    position: sticky;
    top: -1px;
    z-index: 1;
}

tbody > tr:nth-of-type(even) {
    background-color: rgba(0, 0, 0, 0.08);
}

tbody > tr > td.positive {
    background-color: var(--bs-teal);
    color: white;
}

tbody > tr > td.negative {
    background-color: var(--bs-danger);
    color: white;
}

td.thick-right, th.thick-right {
    border-right: Solid 2px var(--bs-success);
}

tr.pending-changes {
    opacity: 0.8;
}

tr.pending-changes input {
    background-color: rgba(255, 255, 0, 0.2);
}

i.pending-changes {
    color: var(--bs-orange);
    display: none;
}

i.saved-changes {
    color: var(--bs-success);
}

.pending-changes i.saved-changes {
    display: none;
}

.pending-changes i.pending-changes {
    display: inline;
}


.transfer-out {
    font-size: 0.9em;
    font-style: italic;
    color: white;
    background-color: mediumpurple;
}

/* MISC  
----------------------------------------------------------*/
.clear {
    clear: both;
}

/* Styles for validation helpers
-----------------------------------------------------------*/
.field-validation-error {
    color: #ff0000;
}

.field-validation-valid {
    display: none;
}

.input-validation-error {
    border: 1px solid #ff0000;
    background-color: #ffeeee;
}

.validation-summary-errors {
    font-weight: bold;
    color: #ff0000;
}

.validation-summary-valid {
    display: none;
}

/* Styles for editor and display helpers
----------------------------------------------------------*/
.display-label,
.editor-label {
    margin: 1em 0 0 0;
}

.text-box {
    width: 30em;
}

    .text-box.multi-line {
        height: 6.5em;
    }

.tri-state {
    width: 6em;
}

    .pager .results {
        font-size: 1em;
        margin: 4px 0 12px 0;
    }

    .pager ul {
        border: none;
        clear: both;
    }

    .pager li {
        /*background: #F4F4F4;*/
        font-size: 1em;
        float: left;
        padding: 10px 0;
        width: 2.5em;
        text-align: center;
        border: solid 1px #C6C6C6;
        margin-left: -1px; /*margin-right: 6px;*/
    }

        .pager li:hover {
            background: #DEDEDE;
        }

        .pager li.current {
            background: White;
        }

        .pager li.ellipsis {
            font-size: 1em;
            vertical-align: bottom;
            background: white;
            border: none;
            margin: 5px 0 0 0;
        }

    .pager span {
        font-weight: bold;
        text-decoration: none;
    }

    .pager a {
        color: #3F4B51;
        text-decoration: none;
        padding: 8px 12px;
    }

        .pager a:hover {
            text-decoration: underline;
        }

    .pager .prev {
        margin-right: 10px;
    }

    .pager .next {
        margin-left: 10px;
    }

.notice {
    border: Solid 1px #347834;
    background-color: #c5e6c5;
    color: #347834
}

.error {
    border: Solid 1px #da4f49;
    background-color: #f4cac8;
    color: #da4f49
}

.warning {
    border: Solid 1px orange;
    background-color: gold;
    color: black
}

.complete {
    color: #347834;
}

.missing {
    color: #da4f49;
}

.cell-state-issue {
    background-color: #FFC6C6 !important;
}

.cell-state-ok {
    background-color: #E4FFE4 !important;
}

.cell-state-warning {
    background-color: peachpuff !important;
}

td.repeat {
    background-color: lightskyblue;
}

em.updated-at {
    font-size: 0.8em;
}

span.blacklist {
    cursor: help;
}

span.duplicate {
    cursor: help;
    font-weight: bolder;
    color: rebeccapurple;
}

.order-state-Arquivado {
    color: white;
    background-color: #2F4F4F;
}

.order-state-Novo {
    background-color: #FFF8DC;
}

.order-state-Cancelado {
    color: white;
    background-color: #808080;
}

.order-state-PodeSerEnviado {
    background-color: yellowgreen;
}

/*.order-state-EsperaDeFactura { background-color: yellowgreen; color: mediumvioletred; }*/
.order-state-Embalado {
    background-color: yellowgreen;
}

.order-state-Enviado {
    color: White;
    background-color: #008000;
}

.order-state-EnviadoParaParceria {
    color: White;
    background-color: #66AA66;
}

.order-state-EsperaDeFornecedor {
    background-color: #7FFFD4;
}

.order-state-EsperaDeCliente {
    background-color: #EEEE00;
}

.order-state-EmProcessamento {
    color: yellow;
    background-color: red;
}

.customer-order-state-Arquivado {
    background-color: #2F4F4F;
    color: white;
}

.customer-order-state-NaLojaFaltaAvisar {
    background-color: #DDA0DD;
    color: black;
}

tr.customer-order-state-Avisado {
    background-color: #9eeaf9;
}

.customer-order-state-Finalizado {
    background-color: #008000;
    color: black;
}

.customer-order-state-CanceladoDescontinuado {
    background-color: #808080;
    color: black;
}

.customer-order-state-CanceladoNaoLevantado {
    background-color: #FF0000;
    color: black;
}

.shipping-island {
    font-weight: Bold;
    color: red;
    font-size: 1.7em;
    vertical-align: top;
}


td .select2-container.short {
    width: 150px;
}

input[type=number],
.numeric,
.received-quantity,
.requested-quantity,
.line-amount,
.item-price,
.form-control-number {
    text-align: right;
}

tr.row-hover {
    background-color: rgba(0, 192, 0, 0.1) !important;
}

tr.row-highlighted {
    background-color: rgba(255, 168, 40, 0.3) !important;
}

tr.deleted-row, tr.deleted-row:hover {
    display: none;
}

tr.handled {
    background-color: darkgrey;
}

    tr.handled .button {
        display: none;
    }

.location-picker {
    width: auto;
    display: inline-block;
}

.undefined-location {
    color: Red;
    font-weight: bold;
}


.alert {
    --bs-alert-padding-x: 0.5rem;
    --bs-alert-padding-y: 0.5rem;
    --bs-alert-margin-bottom: 0.5rem;
}

.btn-close {
    height: auto;
}

@media (min-width: 992px) {
    .border-lg-end {
        border-right: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
    }
}