﻿/* Move down content because we have a fixed navbar that is 50px tall */
body {
    padding-top: 50px;
    padding-bottom: 20px;
    letter-spacing:1px;
}

h1 {
    font-size:12pt;
    background-color:#f2f2f2;
    padding:15px;
}

h5 {
    padding:5px;
    margin:1em 0 0;
    font-weight:bold;
}

table,tr,td {
    font-size:9pt;
    vertical-align:top;
}

th,td {
    padding:0.5em!important;
}

table.expiry-items {
    text-align:center;
}
    table.expiry-items th {
        text-align:center;
        white-space:nowrap;
    }
    table.expiry-items td {
        vertical-align:top;
    }

td a {
    color:inherit;
}
    td a:hover {
        color:inherit;
        text-decoration:none;
    }
td.link {
    color:#000000!important;
    text-decoration:none!important;
}
    td.link:hover {
        background-color:#999999!important;
        color:#ffffff!important;
        text-decoration:none!important;
    }
td input {
    margin:0!important;
}

img {
    width:100%!important;
    height:auto!important;
}
img.icon {
    width:50px!important;
    margin:0 5px 5px;
}
img.fa-200 {
    width:200px!important;
}

div.analytics-sidemenu {
        text-align:left;
        float:none;
        top:unset;
        bottom:0;
        left:0;
        height:auto;
        margin-left:0;
        padding:0;
        position:fixed;
        background-color:rgba(0,0,0,0.9);
        color:#ffffff;
        width:100%;
        z-index:1000;
        border:0;
}
    div.analytics-sidemenu a {
            color:#ffffff;
            display:inline-block;
            padding:15px 25px;
            text-align:center;
            border-bottom:0; 
    }
    div.analytics-sidemenu a.main {
        color:#ffffff;
        border-bottom:2px solid #333333;
    }
    div.analytics-sidemenu a.selected {
        background-color:#333333;
    }
    div.analytics-sidemenu a:hover {
        background-color:#000000;
        cursor:pointer;
    }
div.product {

}
    div.product h4 {
        margin:30px 0 10px;
    }

div.box-edit {
    margin:0;
}
    div.box-edit > input {
        border:0;
        border-bottom:1px solid #cccccc;
        padding:0.5em 0;
        margin:0 5px 5px;
    }
        div.box-edit > input:focus, input:-webkit-autofill {
            outline: none;
            background-color: none;
            -webkit-text-fill-color: none;
        }

/* Wrapping element */
/* Set some basic padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}
.dl-reports {
    padding: 15px;
    min-width:200px;
    max-width:400px;
    border:2px solid #222222;
    color:#ffffff;
    background-color:#222222;
}
.mobile-stock-header {
    display:flow-root;
    text-align:left;
}
.mobile-stock-table {
    display:block;
    text-align:left;
    clear:both;
    margin-top:0;
    margin-left:-5px;
    margin-bottom:-5px;
    width:calc(100% + 10px);
    background-color:#000000;
    padding:5px 0;
}
    .mobile-stock-table div {
        padding:5px;
        margin-right:-5px;
        width:calc(100% / 7);
        display:inline-block;
        text-align:center;
        color:#ffffff;
        font-size:9pt;
        vertical-align:top;
    }
    .mobile-stock-table span {
        display:block;
        color:#999999;
        font-size:7pt;
    }
.stock-header {
    display:none;
    text-align:center;
}
.stock-table {
    display:none;
    text-align:center;
}
.tooltip {
    position: relative;
    display: inline-block;
    opacity:1!important;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;

    /* Position the tooltip */
    position: absolute;
    z-index: 1;
    top: 100%;
    left: 50%;
    margin-left: -60px;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
}

.notes {
    font-size:0.8em;
    color:#999999;
    margin:0 5px;
}

.box-validator{
    padding:5px;
}

/* Set widths on the form inputs since otherwise they're 100% wide */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="select"] {
    max-width:100%;
    min-width:200px;
}

input[type="text"], input[type="password"], input[type=number], input[type=email] {
    border:1px solid #999999;
    border-radius:2px;
    margin:1em 5px 5px;
    padding:5px 10px;
}

input[type=text] {

}
    input[type=text]:disabled {
        background-color:#ffffff;
        border:0;
    }

input[type="submit"], button {
    border:0;
    padding:10px 15px;
    margin:1em 5px 5px;
    background-color:#492f91;
    color:#ffffff;
    border-radius:5px;
    min-width:100px;
    letter-spacing:1px;
}
    input[type=submit].transparent {
        background-color:transparent;
        color:blue;
        font-size:1em;
        padding:0;
    }
    input[type=submit]:disabled {
        opacity:0.5;
    }

input[type=file] {
    margin:15px 0;
    border: 1px solid #333333;
    padding: 5px;
    width: 100%;
    max-width: 300px;
}

input[type=number] {
    width:120px;
}

select {
    padding:5px;
    margin:5px;
}

label {
    margin-left:5px;
    margin-right:15px;
    margin-bottom:0;
    vertical-align:text-bottom;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-box-shadow: none !important;
    transition: background-color 5000s ease-in-out 0s;
}

.calendar {
    max-width:400px;
    width:100%;
}
    .calendar th,td {
        text-align:center;
        padding:5px;
    }

.login-form {
    display:inline-block;
    margin:15px 0;
}
    .login-form input {
        margin:0 0 5px;
    }
    .login-form input[type=submit] {
        margin:5px!important;
    }
    .login-form td {
        text-align:right;
    }

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}


/* Modal Content/Box */
.modal-content {
    background-color: #fefefe;
    margin: 100px auto auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 95%; /* Could be more or less, depending on screen size */
    z-index:2000;
}

/* The Close Button */
.close {
    color: #999999!important;
    background-color: #333333!important;
    /*float: right;*/
    font-size: 10pt!important;
    font-weight: bold;
    position: fixed;
    margin-top: -50px!important;
    padding: 10px!important;
    min-width: unset!important;
    opacity: 1!important;
}

    .close:hover,
    .close:focus {
        color: #ffffff!important;
        text-decoration: none;
        cursor: pointer;
    }

.modal-header {
    padding: 0 !important;
    margin-bottom: 5px !important;
}


.modal-dialog {
    padding: 0 !important;
}

.modal-backdrop {
    z-index: unset !important;
}

.text-small {
    font-size:0.8em!important;
}

.text-white {
    color:#ffffff!important;
}

/* Add Animation */
@-webkit-keyframes slideIn {
    from {bottom: -300px; opacity: 0} 
    to {bottom: 0; opacity: 1}
}

@keyframes slideIn {
    from {bottom: -300px; opacity: 0}
    to {bottom: 0; opacity: 1}
}

@-webkit-keyframes fadeIn {
    from {opacity: 0} 
    to {opacity: 1}
}

@keyframes fadeIn {
    from {opacity: 0} 
    to {opacity: 1}
}

@media screen and (min-width: 992px) {
    .container {
        max-width:calc(100% - 160px);
    }
    .mobile-stock-table {
        display:none;
    }
    .stock-header {
        display:table-cell;
    }
    .stock-table {
        display:table-cell;
    }
    div.analytics-sidemenu {
            text-align:left;
            float:left;
            top:50px;
            left:0;
            height:100%;
            padding:0;
            position:fixed;
            background-color:rgba(0,0,0,0.5);
            width:50px;
    }
        div.analytics-sidemenu a {
                display:block;
                padding:25px 5px;
                text-align:center;
                border-bottom:1px solid #999999; 
        }
}

/* Responsive: Portrait tablets and up */
@media screen and (min-width: 768px) {
    table,tr,td {
        font-size:11pt;
    }
    .jumbotron {
        margin-top: 20px;
    }
    .body-content {
        padding: 0;
    }
    .modal-dialog {
        width:75%;
    }

}
