﻿body {
    margin: 0;
}

/* Template overrides */
.sidebar h3 {
    font-size: 17px;
    color: #676a70;
    text-transform: uppercase;
    font: 700 16px/46px "PT Sans",Arial,sans-serif;
    margin-bottom: 20px;
    background: #e1e4e5;
    padding-left: 15px
}

.footerslider .flex-direction-nav, .sidebarslider .flex-direction-nav {
    position: absolute;
    top: -47px;
    right: 0;
    width: 66px;
    height: 22px
}

.sidebarslider .flex-direction-nav {
    top: -54px;
    right: 10px
}


.sidebar .widget.subscribe {
    padding: 15px 10px;
    background: #fff;
    border-radius: 3px;
    border: 1px solid #dcdcdc;
    text-align: center
}

    .sidebar .widget.subscribe h3 {
        font-size: 26px;
        line-height: 32px;
        background: 0 0;
        font-family: Oswald,sans-serif;
        font-weight: 400;
        padding-left: 0
    }

    .sidebar .widget.subscribe p {
        margin-bottom: 25px;
        font-size: 16px;
        line-height: 22px
    }

    .sidebar .widget.subscribe .form-group {
        margin-bottom: 20px;
        padding: 0 10px
    }

    .sidebar .widget.subscribe .form-control {
        height: 36px;
        color: #a4a4a4;
        font-size: 15px;
        background-color: #fafafa;
        border: 1px solid #e0e0e0;
        border-radius: 3px;
        -webkit-box-shadow: none;
        box-shadow: none;
        padding: 5px;
        text-align: center
    }

    .sidebar .widget.subscribe .btn {
        margin-bottom: 10px
    }

.text-success {
    color: #7bae23;
}

.text-smaller {
    font-size: smaller;
}
.text-small {
    font-size: small;
}
.text-medium {
    font-size: medium;
}

/* The side navigation menu */
.surfacenav {
    height: 760px; /* 100% Full-height */
    width: 238px; /* 0 width - change this with JavaScript */
    position: fixed; /* Stay in place */
    z-index: 1; /* Stay on top */
    top: 138px;
    left: 267px;
    background-color: rgba(0,0,0,0.5);
    overflow-x: hidden; /* Disable horizontal scroll */
    padding-top: 5px; /* Place content 60px from the top */
    padding-left: 3px;
    padding-right: 3px;
    transition: 0.5s; /* 0.5 second transition effect to slide in the sidenav */
}

/* The side navigation menu */
.sidenav {
    height: 90%; /* 100% Full-height */
    width: 0; /* 0 width - change this with JavaScript */
    position: fixed; /* Stay in place */
    z-index: 1; /* Stay on top */
    top: 0;
    right: 0;
    background-color: rgba(0,0,0,0.5);
    overflow-x: hidden; /* Disable horizontal scroll */
    padding-top: 20px; /* Place content 60px from the top */
    transition: 0.5s; /* 0.5 second transition effect to slide in the sidenav */
}



    /* The navigation menu links */
    .sidenav a {
        padding: 8px 8px 8px 32px;
        text-decoration: none;
        font-size: 25px;
        color: #818181;
        display: block;
        transition: 0.3s
    }

        /* When you mouse over the navigation links, change their color */
        .sidenav a:hover, .offcanvas a:focus {
            color: #f1f1f1;
        }

    /* Position and style the close button (top right corner) */
    .sidenav .closebtn {
        position: absolute;
        top: 0;
        right: 150px;
        font-size: 24px;
        margin-left: 50px;
    }

.oma3dmenu {
    display: inline-block;
    color: #7f7d74;
    margin: 7px 0;
    position: relative;
    line-height: 22px;
    padding-left: 20px;
}

/* Style page content - use this if you want to push the page content to the right when you open the side navigation */
#main {
    transition: margin-left .5s;
    padding: 20px;
}

/* On smaller screens, where height is less than 450px, change the style of the sidenav (less padding and a smaller font size) */
@media screen and (max-height: 450px) {
    .sidenav {
        padding-top: 15px;
    }

        .sidenav a {
            font-size: 18px;
        }
}

/* The top navigation menu */
.topnav {
    height: 0;
    width: 4000px;
    position: fixed;
    z-index: 1; /* Stay on top */
    top: 0;
    right: 0;
    background-color: rgba(0,0,0,0.5);
    overflow-y: hidden; /* Disable horizontal scroll */
    padding-top: 5px; /* Place content 60px from the top */
    transition: 0.5s; /* 0.5 second transition effect to slide in the topnav */
}

    /* The navigation menu links */
    .topnav a {
        padding: 8px 8px 8px 32px;
        text-decoration: none;
        font-size: 25px;
        color: #818181;
        display: block;
        transition: 0.3s
    }

        /* When you mouse over the navigation links, change their color */
        .topnav a:hover, .offcanvas a:focus {
            color: #f1f1f1;
        }

    /* Position and style the close button (top right corner) */
    .topnav .closebtn {
        position: absolute;
        top: 0;
        left: 10px;
        font-size: 24px;
        margin-left: 50px;
        color: #FFFFFF;
    }


/* On smaller screens, where height is less than 450px, change the style of the topnav (less padding and a smaller font size) */
@media screen and (max-height: 450px) {
    .topnav {
        padding-top: 15px;
    }

        .topnav a {
            font-size: 18px;
        }
}

.mysidenavleftinner {
    margin-left: 5px;
    margin-right: -5px;
}

.sidenavleft {
    height: 818px;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 93px;
    left: 0;
    background-color: rgba(0,0,0,0.5);
    overflow-x: hidden;
    overflow-y: hidden;
    transition: 0.3s;
    padding-top: 10px;
    padding-bottom: 160px;
}

.menuToggleButton {
    background-color: rgba(0,0,0,0.5);
    overflow-x: hidden;
    overflow-y: hidden;
    transition: 0.3s;
}

    .sidenavleft a {
        padding: 0px 0px 0px 6px;
        text-decoration: none;
        color: #818181;
        display: block;
        transition: 0.3s;
    }

        .sidenavleft a:hover, .offcanvas a:focus {
            color: #f1f1f1;
        }

    .sidenavleft .closebtn {
        position: absolute;
        top: 0;
        right: -20px;
        font-size: 16px;
        margin-left: 175px;
        color: #FFFFFF;
    }

@media screen and (max-height: 450px) {
    .sidenavleft {
        padding-top: 15px;
    }

        .sidenavleft a {
            font-size: 18px;
        }
}


div.scrollmenu {
    overflow: auto;
    white-space: nowrap;
}

    div.scrollmenu a {
        display: inline-block;
    }

        div.scrollmenu a:hover {
        }


.toast-top-right {
  top: 60px!important;
  right: 12px!important;
}

.btn-md, .btn-lg {
    font-size: 19px;
    font-weight: bold;
}

.btn-custom[disabled], .btn-custom-2[disabled], btn-custom-3[disabled] {
    background-color: #818181;
    border-color: #676a70;
}

.table-borderless > tbody > tr > td,
.table-borderless > tbody > tr > th,
.table-borderless > tfoot > tr > td,
.table-borderless > tfoot > tr > th,
.table-borderless > thead > tr > td,
.table-borderless > thead > tr > th {
    border: none;
}

.table-product-price > tbody > tr > td,
.table-product-price > tbody > tr > th,
.table-product-price > tfoot > tr > td,
.table-product-price > tfoot > tr > th,
.table-product-price > thead > tr > td,
.table-product-price > thead > tr > th {
    padding: 2px;
    font-weight: bold;
    font-size: larger;
}

.table-small {
    background: none !important;
    font-size: small !important;
}

.width-150 {
    width: 150px!important;
}


/* AngularJS luokkien ylikirjoituksia */

/* Stops flickering when using ng-show="loading" and fa-spinner. */
.ng-hide.ng-hide-animate{
     display: none !important;
}

/* ---------------------------------- */

.badge-success {
  background-color: #5cb85c !important;
}
.badge-warning {
  background-color: #f0ad4e !important;
}.badge-danger {
  background-color: #d9534f !important;
}


.item-image a {
    color: #666;
}

.btn-file {
    position: relative;
    overflow: hidden;
}
.btn-file input[type=file] {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 100%;
    min-height: 100%;
    font-size: 100px;
    text-align: right;
    filter: alpha(opacity=0);
    opacity: 0;
    outline: none;
    background: white;
    cursor: inherit;
    display: block;
}

.input-group-compact {
    margin-bottom: 5px;
}
.input-group-compact .input-group-addon {
    min-width: 100px;
}


.btn-toolbar, .btn-toolbar .btn-group {
    display:flex!important;
}

.icon-margin {
    margin-top: 2px;
}

/* Specify styling for tooltip contents */
.tooltip.fileTooltip .tooltip-inner {
    color: #eee;
    background-color: #333;
    box-shadow: 0 6px 12px rgba(0,0,0,.175);
}
/* Arrow */
.tooltip.fileTooltip > .tooltip-arrow {
    border-right-color: #333 !important;
}

.tooltip.lotTooltip .tooltip-inner {
    color: #eee;
    background-color: #333;
    box-shadow: 0 6px 12px rgba(0,0,0,.175);
    text-align: left;
    width: 400px;
}
/* Arrow */
.tooltip.lotTooltip > .tooltip-arrow {
    border-top-color: #333 !important;
}


.margin-left {
    margin-left: 5px;
}
.margin-right {
    margin-right: 5px;
}

.button-badge {
    font-size: 10px;
    position: absolute !important;
    top: 3px !important;
    right: 0px !important;
    padding: 1px !important;
}

.text-red-forced {
    color: red !important;
}
.text-black-forced {
    color: black !important
}

@media screen and (min-width: 768px) {
    .mega-menu {
        overflow-y: auto;
        max-height: 75vh;
    }
}

/* Prev-Next arrows */
.nav-next,
.nav-previous {
    color: #333;
    display: inline-block;
    font: normal bold 2em Arial,sans-serif;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    width: auto;
}

.nav-next,
.nav-previous {
    padding: 0.5em 1.5em
}

.nav-next {
    text-align: right
}

    .nav-next:before,
    .nav-next:after,
    .nav-previous:before,
    .nav-previous:after {
        background: #333;
        -moz-border-radius: 0.25em;
        -webkit-border-radius: 0.25em;
        border-radius: 0.25em;
        content: "";
        display: block;
        height: 0.5em;
        position: absolute;
        right: 0;
        top: 50%;
        width: 1em;
    }

.nav-previous:before,
.nav-previous:after {
    left: 0
}

.nav-next:before,
.nav-previous:before {
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}

.nav-next:after,
.nav-previous:after {
    -moz-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

.nav-previous:after,
.nav-next:before {
    margin-top: -.36em
}

.nav-next:hover,
.nav-next:focus,
.nav-previous:hover,
.nav-previous:focus {
    color: #7bae23
}

    .nav-next:hover:before,
    .nav-next:hover:after,
    .nav-next:focus:before,
    .nav-next:focus:after,
    .nav-previous:hover:before,
    .nav-previous:hover:after,
    .nav-previous:focus:before,
    .nav-previous:focus:after {
        background: #7bae23
    }

.nav-disabled,
.nav-disabled:hover,
.nav-disabled:focus {
    color: #dddddd;
}

    .nav-disabled:before,
    .nav-disabled:after,
    .nav-disabled:hover:before,
    .nav-disabled:focus:before,
    .nav-disabled:hover:after,
    .nav-disabled:focus:after {
        background: #dddddd;
    }
/* END Prev-Next arrows */

.alert-compact {
    padding: 5px 15px 5px 15px;
    margin-bottom: 10px;
}
.list-group-item-compact {
    padding: 5px 15px 5px 15px;
}

.box-rounded {
    border: 1px solid #ccc;
    border-radius: 4px;
}

.row.display-flex {
    display: flex;
    flex-wrap: wrap;
}

    .row.display-flex > [class*='col-'] {
        display: flex;
        flex-direction: column;
    }


.list-info li label {
    width: 100px;
}

td.product-rows hr {
    color: #333;
}

.text-sentence {
    text-transform: lowercase;
}
    .text-sentence::first-letter {
        text-transform: uppercase;
    }

.modal-popup {

}
    .modal-popup fieldset {
        margin-bottom:20px;
    } 
    .modal-popup label {
        font-size: 12px;
        font-weight: normal;
        color: gray;
    }

.bd-submit-modal-lg .modal-dialog {
    display: table;
    position: relative;
    margin: 0 auto;
    width: 500px;
    top: calc(50% - 50px);
}

    .bd-submit-modal-lg .modal-dialog .modal-content {
        background-color: transparent;
        border: none;
        box-shadow: none;
        color: #fff;
        text-align: center;
    }

    .bd-submit-modal-lg h2 {
        color: #fff;
        margin-top: 25px;
    }
