﻿/* #region Navbar */
.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

.bg-lightblue {
    background-color: #e3f2fd;
}
.bg-lightgrey {
    background-color: #d0d0d0;
}
/* #endregion */

/* #region Defaults for View Product / This Order + Other Orders - red text */

.prod-thisorder {
    color: red;
}
.prod-otherorders {
    color: red;
}
/* #endregion */
/* #region Main Div / Font Size */
html {
    font-size: 14px;
}
a.nolink {
       text-decoration: none;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}
div.wd250 {
    width: 250px;
    max-width: 250px;
}
/* Catalogue */
#div-cat > div.dropdown > div.dropdown-menu > div.inner {
    max-height: calc(95vh - 190px) !important;
}
/* Alternate Catalogue */
#fndcat > div.btn-group > div.dropdown-menu  {
    max-height: calc(95vh - 120px) !important;
    overflow-y: auto;
}
button.cat-item {
    border: none !important;
    outline: none;
    box-shadow: none;
}
.modal-fullscreen-scrollchild {
    max-height: 70vh;
    overflow-y: auto;
}

@media only screen and (max-width: 900px) {
    .modal-fullscreen-scrollchild {
        max-height: 50vh;
        overflow-y: auto;
    }
}

.modal-halfscreen-scrollchild {
    max-height: 50vh;
    overflow-y: auto;
}
.modal-dialog.modal-fullscreen {
    margin: 2.5vh auto;
    height: 95vh;
    overflow-y: hidden;
}

@media all and (max-width: 1024px) {

    .modal-dialog.modal-fullscreen {
        margin: 2.5vh auto;
        max-width: 80%;
    }
}

.modal-content.modal-fullscreen {
    max-height: 95vh;
}

.modal-body.modal-fullscreen {
    max-height: 90vh;
}


.div-filedrop {
    background-color: #cccc80;
    border-radius: 20px;
    height: 200px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;    
    overflow: hidden;
}

.checkbox-1x {
    transform: scale(1.5);
    -webkit-transform: scale(1.5);
}

.checkbox-2x {
    transform: scale(2);
    -webkit-transform: scale(2);
}
span.badge:hover {
    cursor: default;
}

@media screen and (max-width: 1650px) {
    main.find-drive {
        overflow: auto;
        position: absolute;
        top: 165px;
        left: 0;
        right: 0;
    }
}
@media screen and (min-width: 1650px) {
    main.find-drive {
        overflow: auto;
        position: absolute;
        top: 120px;
        left: 0;
        right: 0;
    }
}
main.view-drive {
    overflow: auto;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    min-height: 90%;
}

/* #endregion */

/* #region Search Bar */
.searchdiv {
    margin-top: 45px;
    background-color: white;
    z-index: 2;
}
.prodimagesdiv {
    width: 240px;
    height: 80vh;
    overflow-y: auto;
}
.prodimagediv {
    display: flex;
    align-items: center;
    justify-content: center;
}
.searchboxgrey {
    border-color: #6c757d;
}
/* #endregion */

/* #region Sidebar */
.drive-sidebar {
    width: 140px;
    height: 100%; /* 100% Full-height */
    position: fixed; /* Stay in place */
    z-index: 1; /* Stay on top */
    top: 0; /* Stay at the top */
    left: 0;
    background-color: white; /* Black*/
    overflow-x: hidden; /* Disable horizontal scroll */
    margin-top: 60px; /* Place content 60px from the top */
    padding-bottom: 80px;
}
.drive-logo {
    max-height: 30px;
    max-width: 170px;
}
.sidebarmain {
    padding-left: 140px;
}

.sidebarbutton {
    position: fixed;
    bottom: 10px;
    left: 10px;
    position: fixed; /* Stay in place */
    z-index: 1; /* Stay on top */
    background-color: transparent; /* Black*/
}

.totopbutton {
    position: fixed;
    bottom: 10px;
    right: 10px;
    position: fixed; /* Stay in place */
    z-index: 1; /* Stay on top */
    background-color: transparent; /* Black*/
}

/* #endregion */

/* #region Description Lists have uneven line spacing if there is no text. */
dt, dd {
    line-height: 24px;
    min-height: 24px; /* must be line-height, to allocate height for empty elements */
}

/* #endregion */

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

/* #region Inactive Entries in Listviews */
.inactiveentity {
    font-style: italic;
    color: #999999;
}

/* #endregion */

.text-number {
    text-align: right;
    width: 70px;
    max-width: 80px;
}

.input-number {
    text-align: right;
    width: 90px;
    max-width: 100px;
}

.btn-group-xs > .btn, .btn-xs {
    padding: .4rem;
    font-size: .75rem;
    line-height: .75;
    border-radius: .2rem;
}

input[type="number"].inputnumber {
    -moz-appearance: textfield;
}

.inputnumber::-webkit-inner-spin-button,
.inputnumber::-webkit-outer-spin-button {
    -webkit-appearance: none;
    -moz-appearance: none;
    margin: 0;
}
/*#region Password Character for PINLogin */
.password {
    -webkit-text-security: disc;
}

/*#endregion */

/*#region Images / Cropping */
@media all and (max-width: 768px) {
    div.center-cropped-sm {
        width: 100px;
        height: 80px;
        overflow: hidden;
    }

    div.center-cropped-sm img {
        object-fit: none;
        object-position: center;
        height: 80px;
        width: 100px;
    }
}
/*#endregion */

/*#region Table Striping with Hidden Rows*/
.table-striped tbody tr.odd {
    background-color: rgba(0,0,0,0.1);
}

.table-striped tbody tr.even {
    background-color: rgba(0,0,0,0);
}
/*#region Table Striping with Hidden Rows*/
.table-striped2 tbody tr:nth-child(4n+1)>td {
    background-color: rgba(0,0,0,0.1);
}
.table-striped2 tbody tr:nth-child(4n+2)>td {
    background-color: rgba(0,0,0,0.1);
}
.table-striped2 tbody tr:nth-child(4n+3)>td {
    background-color: rgba(0,0,0,0);
}
.table-striped2 tbody tr:nth-child(4n)>td {
    background-color: rgba(0,0,0,0);
}
/*#endregion*/

/*#region Table Striping with 3 Rows*/
.table-striped3 tbody tr:nth-child(6n+1) > td {
    background-color: rgba(0,0,0,0.1);
}

.table-striped3 tbody tr:nth-child(6n+2) > td {
    background-color: rgba(0,0,0,0.1);
}

.table-striped3 tbody tr:nth-child(6n+3) > td {
    background-color: rgba(0,0,0,0.1);
}
.table-striped3 tbody tr:nth-child(6n+4) > td {
    background-color: rgba(0,0,0,0);
}
.table-striped3 tbody tr:nth-child(6n+5) > td {
    background-color: rgba(0,0,0,0);
}
.table-striped3 tbody tr:nth-child(6n) > td {
    background-color: rgba(0,0,0,0);
}
/*#endregion*/
.no-space-break {
    white-space: nowrap;
}

/* Fix Bootstrap Dropdown Menu Hover Icon - shows Edit icon by default */
a:not([href]).dropdown-item:hover {
    cursor: pointer;
}

button.btn25px {
    width: 25px;
    height: 25px;
    padding: 1px;
}

button.btn-icon {
    height: 26px;
}
.btn-group-vertical.block {
    display: flex;
}

.block .btn {
    flex: 1
}

.form-group {
    margin-bottom: 3px;
    margin-top: 3px;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%
}


#product_catalogue .dobold {
    font-weight: bold;
}

.dropdown-submenu.pull-left > .dropdown-menu {
    left: -100%;
    margin-left: 10px;
    -webkit-border-radius: 6px 0 6px 6px;
    -moz-border-radius: 6px 0 6px 6px;
    border-radius: 6px 0 6px 6px;
}

.findcartqty {
    border: 1px solid;
}
.container-right {
    float: right;
}
.datepicker {
    font-size: 0.875em;
}

.datepicker td, .datepicker th {
    width: 2.5em;
    height: 2em;
}

.no-gutters {
    margin-right: 0;
    margin-left: 0;
    padding-left: 0;
    padding-right: 0;
}

/* #region Classes for Table Formatting */

tr.tr-clickable {
    cursor: pointer;
}

.tablesorter .tablesorter-filter-row .disabled {
    display: none;
}

.tablesorter .tablesorter-filter .disabled {
    display: none;
}

.bootstrap-datetimepicker-widget > .row {
    margin-left: 0;
}

th.tblhead-number {
    width: 100px;
    text-align: right;
}
th.tblhead-number120 {
    width: 120px;
    text-align: right;
}

th.tblhead-rgt50 {
    width: 50px;
    text-align: right;
}
th.tblhead-rgt75 {
    width: 75px;
    text-align: right;
}
th.tblhead-rgt100 {
    width: 100px;
    text-align: right;
}
th.tblhead-rgt150 {
    width: 150px;
    text-align: right;
}
th.tblhead-rgt180 {
    width: 180px;
    text-align: right;
}
th.tblhead-rgt200 {
    width: 200px;
    text-align: right;
}
th.tblhead-ctr50 {
    width: 50px;
    text-align: center;
}
th.tblhead-ctr100 {
    width: 100px;
    text-align: center;
}

td.tbldet-ctr50 {
    width: 50px;
    text-align: center;
}
td.tbldet-ctr30 {
    width: 30px;
    text-align: center;
}
th.tblhead-lft50 {
    width: 50px;
    text-align: left;
}
th.tblhead-lft100 {
    width: 100px;
    text-align: left;
}
th.tblhead-lft150 {
    width: 150px;
    text-align: left;
}
th.tblhead-lft200 {
    width: 200px;
    text-align: left;
}
th.inputtableheader {
    padding-right: 15px;
}

.imgview:hover {
    cursor: pointer;
}
tr.findline > td {
    vertical-align: middle;
}

@media only screen and (max-width: 600px) {
    tr.pendingline > td {
        border-top: none;
    }
}

/*tr.pendingline.promo > td {
    vertical-align: top;
}*/

tr.pendingline > td {
    vertical-align: middle;
}

/* #endregion */

button.btn24px {
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
    padding: 0;
}
button.btn32px {
    width: 32px;
}

/* #region Tooltip Wrappers for disabled buttons */
.tooltip-wrapper {
    display: inline-block; /* display: block works as well */
    cursor: not-allowed;
}

.tooltip-wrapper.disabled {
    /* OPTIONAL pointer-events setting above blocks cursor setting, so set it here */
    cursor: not-allowed;
}

.tooltip-wrapper .btn[disabled] {
    /* don't let button block mouse events from reaching wrapper */
    pointer-events: none;
}

/* #endregion */

.mx250 {
    max-width: 250px;    
}
img.cardimage {
    max-width: 100%;
    min-height: 150px;
    max-height: 200px;
}
img.thumb {
    max-width: 50px;
    max-height: 50px;
}
/*img.thumb:hover {
    transition: 0.5s;
    transition-delay: 0.25s;
    transform: scale(3);
}*/


.icon-spacer::before,
.icon-blank::before {
    width: 1em;
    content: ' ';
}

/* #region Classes for Opacity  */

.opacity-0 {
    opacity: 0 !important;
}
.opacity-1 {
    opacity: 0.2 !important;
}
.opacity-2 {
    opacity: 0.4 !important;
}
.opacity-3 {
    opacity: 0.6 !important;
}
.opacity-4 {
    opacity: .8 !important;
}
.opacity-5 {
    opacity: 1 !important;
}
.opacity-3h5 {
    opacity: 0.6 !important;
    transition: opacity .25s ease-in-out !important;
    -moz-transition: opacity .25s ease-in-out !important;
    -webkit-transition: opacity .25s ease-in-out !important;
}
.opacity-3h5:hover {
    opacity: 1 !important;
}
/* #endregion */

.impact {
    font-family: Impact, Charcoal, sans-serif;
}

/* #region Classes for Carousel  */
.carousel {
    height: 80vh;
    width: 100%;    
    min-width: inherit;
}
.carousel-inner{
    height: 100%;
}
.carousel-item {
    height: 100%;
}
.carousel-item-holder 
{
    height: 100%;
}
.carousel-item img {
    max-height: 75vh;
    max-width: 80%;
    object-fit: contain;
}

/* #endregion */

.zeroz {
    z-index: 0;
}
.topz {
    z-index: 5;
}

.showcat {
    position: absolute;
    margin-top: 10px;
}

/* #region Processing Spinner */
.processSpinner {
    margin: auto;
    border: 4px solid #f3f3f3; /* Light grey */
    border-top: 4px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
/* #endregion */

