/***** Main navigation *****/
nav .nav-wrapper {
    display: flex;
    justify-content: space-between;
}

nav .brand-logo {
    position: initial;
}

nav .brand-logo,
.loggd-link {
    color: #676767;
}

.logged-in,
.logged-out {
    display: none;
}

a.account-details {
    cursor: default;
}

a.account-details:hover {
    background-color: initial;
}

.person-wrapper {
    display: flex;
}

.person-wrapper i.material-icons {
    display: inline-block;
    margin-right: 5px;
}

.nav-order-container {
    display: flex;
}

.number-orders-wrapper {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.number-orders-wrapper a {
    color: #676767;
    display: inline-block;
    width: 170px;
}

a.customer-requests {
    width: auto;
    display: flex;
    margin-left: 25px;
}

.customer-requests i.material-icons {
    display: inline-block;
    margin-right: 5px;
}

.back-container {
    display: flex;
    width: 140px;
}

.back-container i.material-icons{
    margin-right: 20px;
}

/***** Modals *****/
.modal {
    width: 500px !important; 
} 

.error {
    color: #a70606;
}

/***** Layout *****/
.main-container {
    margin-top: 50px;
}

.content-wrapper {
    max-width: 450px;
    margin: auto;
}

.flex-title-container {
    display: flex;
    justify-content: center;
    text-align: center;
    margin: auto;
    font-size: 18px;
    position: relative;
    padding: 15px;
}

.flex-title-container .icon-wrapper {
    position: absolute;
    left: 20px;
}

.home-title-container {
    display: flex;
    justify-content: center;
    text-align: center;
    margin: auto;
    font-size: 18px;
    position: relative;
}

.home-title-container .icon-wrapper {
    position: absolute;
    left: 20px;
    padding: 15px 0;
}

.home-title-heading {
    padding: 15px;
}

.external-link-container {
    position: absolute;
    right: 0px;
    padding: 15px;
    background: #9c3030;
}

.internal-link-container {
    width: 100%;
    display: flex;
    background: #265b73;
}

.external-link-container a,
.internal-link-container a,
.home-title-container .icon-wrapper a {
    display: inline-block;
    color: #fff;
}

a.internal-link {
    flex: 0 0 50%;
    justify-content: center;
    text-align: center;
    padding: 15px;
}

a.internal-link:first-of-type {
    border-right: 1px solid #fff;
}

.flex-title-container .icon-wrapper .back-link {
    color: #fff;
}

.blue-title {
    background: #00AFFE;
    color: #fff;
}

.red-title {
    background: #C62827;
    color: #fff;
}

.purple-title {
    background: #3F51B5;
    color: #fff;
}

.green-title {
    background: #26a69a;
    color: #fff;  
}

/*****  Main order menu *****/
.top-header-container {
    max-width: 250px;
    text-align: center;
    margin: auto;
}

.top-header-container h3 {
    font-size: 25px;
}

.single-order-container {
    display: flex;
    align-items: center;
    position: relative;
    max-width: 250px;
    background: #fff;
    margin: 20px auto;
    padding: 10px 14px;
    border: 1px solid #c7c7c7;
    border-radius: 5px;
    box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14), 0 3px 1px -2px rgba(0,0,0,0.12), 0 1px 5px 0 rgba(0,0,0,0.2);
    transition: 0.4s ease-in-out;
}

.single-order-container:hover {
    box-shadow: 0 13px 25px 0 rgba(0, 0, 0, 0.3), 0 11px 7px 0 rgba(0, 0, 0, 0.19);
}

.single-order-container a {
    display: block;
    color: #000;
}

.number-of-internal-orders,
.number-of-external-orders {
	flex: 0 0 25px;
    height: 25px;
    line-height: 25px;
    text-align: center;
    color: #fff;
    margin-right: 5px;
    border-radius: 50%;
    font-size: 1vw;
}

.number-of-internal-orders {
    background: #00AFFE;
}

.number-of-external-orders {
    background: #C62827;
}

/***** Internal/External orders *****/
.single-order {
    width: 90%;
    background: #fff;
    font-size: 16px;
    border: 1px solid #ddd;
    margin: 10px auto;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14), 0 3px 1px -2px rgba(0,0,0,0.12), 0 1px 5px 0 rgba(0,0,0,0.2);
}

.single-order .single-order-link {
    display: block;
    text-decoration: none;
    color: #555;
}

.single-order .single-order-id,
.single-order .single-order-company {
    margin-bottom: 5px;
}

.single-order .single-order-user {
    margin-bottom: 15px;
}

.single-order .single-order-data {
    font-weight: bold;
    margin-bottom: 5px;
}

.single-order .single-order-status {
    font-weight: bold;
}

.single-order.internal-order {
    border-bottom: 5px solid #00AFFE;
}

.single-order.external-single-order {
    border-bottom: 5px solid #C62827;
}

.external-status-wrapper {
    max-width: 290px;
    overflow: hidden;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/***** Order Details *****/
.done-icon-container {
    position: absolute;
    right: 15px;
}

.assignment-icon-container {
    position: absolute;
    right: 50px;
}

.single-icon-container.assignment-icon-container {
    position: absolute;
    right: 15px;
}

.done-icon-container a,
.assignment-icon-container a {
    display: inline-block;
    color: #fff;
}

.done-icon-container i,
.assignment-icon-container i {
    font-size: 30px;
}

.details-order-green-border {
    border-bottom: 5px solid #2F7D32;
}

.details-order-close-border {
    border-bottom: 5px solid #C62827;
}

.details-order-check_circle-border {
    border-bottom: 5px solid #2F7D32;
}

.details-order-warning-border {
    border-bottom: 5px solid #FFA827;
}

#internal-order-details-wrapper .single-order:first-child {
    margin-bottom: 30px;
}

.details-order .flex-header {
    display: flex;
    justify-content: space-between;
    color: #aaaaaa;
}

.details-order .flex-header .single-order-data {
    font-size: 14px;
    font-weight: normal;
    margin-bottom: 3px;
}

.details-order .single-order-product-name {
    text-transform: uppercase;
    font-size: 20px;
    margin-bottom: 5px;
}

.details-order .check_circle_container {
    text-align: right;
    color: #2F7D32;
}

.details-order .warning_container {
    text-align: right;
    color: #FFA827;
}

.details-order .close_container {
    width: 50px;
    text-align: center;
    background: #C62827;
    color: #fff;
    border-radius: 50%;
    float: right;
    padding-top: 5px;
}

.details-order .check_circle_container i,
.details-order .warning_container i {
    font-size: 50px;
}

.details-order .close_container i {
    font-size: 40px;
}

.details-order .flex-amount {
    clear: both;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.details-order .flex-amount .single-order-amount {
    font-weight: bold;
}

/***** Details edit *****/
.details-order-blue-border {
    border-bottom: 5px solid #00AFFE;
}

.details-order .info-circle-container {
    text-align: right;
    color: #C5CAE8;
    margin-bottom: 10px;
}

.details-order .info-circle-container i {
    font-size: 40px;
}

.action-btns-wrapper {
    width: 90%;
    font-size: 15px;
    margin: 20px auto;
    display: flex;
}

.action-btns-wrapper .action-btn {
    flex: 0 1 33%;
    margin-right: 20px;
    padding: 3px 5px;
    line-height: initial;
}

.action-btns-wrapper  .action-btn:last-of-type {
    margin-right: 0;
}

.reject-btn {
    border: 2px solid #BB2D2B;
}

.reject-btn a {
    display: block;
    color: #BB2D2B;
}

.edit-btn {
    border: 2px solid #FBA82E;
    color: #FBA82E;
}

.edit-btn a {
    display: block;
    color: #FBA82E;
}

.accept-btn {
    border: 2px solid #2F7D32;
    color: #2F7D32;
}

.accept-btn a{
    display: block;
    color: #2F7D32;
}

.datepicker-order.input-field>label {
    color: #FBA82E;
}

.datepicker-order input[type=text].datepicker {
    border-bottom: 1px solid #FBA82E;
}

.datepicker-controls .select-month input {
    width: 90px;
}

.requsted-amount-input-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.requsted-amount-input-container input[type=number] {
    border-bottom: none;
    width: 14%;
    text-align: center;
    font-size: 20px;
    margin: 0;
}

.requsted-amount-input-container input[type=number]:not(.browser-default):focus:not([readonly]) {
    border-bottom: none;
    box-shadow: none;
}

.change-value-btn {
    background: transparent;
    border: none;
    outline: none;
    font-size: 36px;
    width: 22px;
    line-height: 30px;
    padding: 0 0 7px 0;
    cursor: pointer;
}

.change-value-btn.decrease-btn {
    color: #BB2D2B;
    margin-right: 10px;
}

.change-value-btn.increase-btn {
    color: #2F7D32;
}

.checkbox-container {
    margin: 10px 0;
}

.checkbox-container label {
    color: rgba(0,0,0,0.87);
}

.datepicker-single-order.input-field>label {
    color: #00AFFE;
}

.datepicker-single-order input[type=text].datepicker {
    border-bottom: 1px solid #00AFFE;
}

.datepicker-single-order .material-icons,
.datepicker-label .material-icons {
    display: inline-block;
    margin-right: 5px;
    position: relative;
    bottom: -3px;
}

.preloader-wrapper {
    margin-top: 20px;
}

.spinner-green-only {
    border-color: #26a69a;
}

/***** Toaster *****/
.toast-success {
    background-color: #51A351;
    position: relative;
    pointer-events: auto;
    overflow: hidden;
    margin: 0 0 6px;
    padding: 15px;
    width: 300px;
    border-radius: 3px 3px 3px 3px;
    box-shadow: 0 0 12px #999999;
    color: #ffffff;
}

/***** Table data *****/
.table-data {
    padding: 5px;
    margin-top: 10px;
}

.header-data-container h2 {
    font-size: 16px;
    margin: 0 0 5px 0;
    font-weight: bold;
}

.header-data-container .upper {
    text-transform: uppercase
}

.table-body:last-of-type {
    margin-bottom: 40px;
}

.table-header {
    margin-top: 15px;
}

.table-header th {
    border: 1px solid #ddd;
    padding: 3px;
    font-size: 16px;
}

.table-body {
    width: 100%;
    display: table;
    border-collapse: collapse;
    border-spacing: 0;
}

.table-td {
    display: table-cell;
    vertical-align: inherit;
    border: 1px solid #ddd;
    padding: 3px;
    font-size: 16px;
}

.table-row {
    display: table-row;
    vertical-align: middle;
    border-color: inherit;
}

.table-header th:nth-child(1),
.table-body .table-td:nth-child(1) {
    width: 50px;
}

.table-header th:nth-child(2),
.table-body .table-td:nth-child(2) {
    width: 110px;
}

.table-header th:nth-child(3),
.table-body .table-td:nth-child(3) {
    width: 70px;
}

.table-header th:nth-child(4),
.table-body .table-td:nth-child(4) {
    width: 70px;
}

#external-order-details-table-wrapper .table-body:last-of-type {
    margin-bottom: 0;
}

#external-order-details-table-wrapper .header-data-container {
    display: none;
}

#external-order-details-table-wrapper .table-data div:first-child .header-data-container {
    display: block;
}

/***** Notes *****/
.single-note {
    width: 90%;
    background: #fff;
    font-size: 16px;
    border: 1px solid #ddd;
    margin: 10px auto;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14), 0 3px 1px -2px rgba(0,0,0,0.12), 0 1px 5px 0 rgba(0,0,0,0.2);
}

.print-single-note {
    font-size: 16px;
    margin: 5px 0 0 0;
}

.single-note-heading {
    font-size: 16px;
    margin: 5px 0 0 0;
    font-weight: bold;
}

/***** Total demand *****/
.input-field.total_demand_picker_container>label {
    color: #26a69a;
}

.btn:focus, .btn-large:focus, .btn-small:focus, .btn-floating:focus {
    background-color: #26a69a;
}

.total-demand-table.table-body .table-td:nth-child(4) {
    width: 91px;
}

.radio-btns-container {
    display: flex;
    justify-content: space-between;
}

.single-note-fullName {
    font-size: 16px;
    margin-bottom: 10px;
}

.single-note-message {
    padding-left: 10px;
}

/***** Print media *****/
@media print {
    .content-wrapper {
        max-width: 100%;
    }
    .table-header th:nth-child(1),
    .table-body .table-td:nth-child(1) {
        width: 10%;
    }

    .table-header th:nth-child(2),
    .table-body .table-td:nth-child(2) {
        width: 50%;
    }

    .table-header th:nth-child(3),
    .table-body .table-td:nth-child(3) {
        width: 10%;
    }

    .table-header th:nth-child(4),
    .table-body .table-td:nth-child(4) {
        width: 10%;
    }

    .total-demand-table.table-body .table-td:nth-child(4) {
        width: 13%;
    }

    nav.grey.lighten-4,
    .flex-title-container,
    .radio-btns-container,
    .input-field {
        display: none;
    }

    .container.main-container {
        margin-top: 20px;
    }

    .table-data {
        padding: 0;
        margin: 0;
    }
}

/***** Media Queries *****/
@media only screen and (max-width: 1100px) {
    .container {
        width: 81%;
    }
}

@media only screen and (min-width: 993px){
    .nav-wrapper.container {
        width: 85%;
    }
}

/***** Page break for print *****/
.pagebreak { 
    page-break-after: always; 
}

.pagebreak:last-of-type { 
    page-break-after: auto; 
}

.note-wrapper:first-child {
    page-break-before: always;
}

.note-container {
    page-break-before: always;
}



