table th {
    white-space: nowrap;
}

table.products {
    min-width: 100px;
}

.sidebar, .navbar .navbar-brand-wrapper {
    background: #3794fc;
}

sidebar .nav .nav-item:first-child .nav-link {
    border: 1px solid white !important;
}

.sidebar .nav:not(.sub-menu) > .nav-item:hover > .nav-link {
    border: 1px solid white !important;
}

.sidebar .nav-item.hover-open .nav-link:hover .menu-title,
.sidebar .nav-item.hover-open .menu-title,
.sidebar .nav-item .nav-link,
.sidebar .nav-item .nav-link:hover {
    background: #3794fc !important;
    border-color: white !important;
    color: white;
}


.sidebar .nav.sub-menu .nav-item:first-child .nav-link {
    border-top: 1px solid white;
}

li.footable-page a {
    display: block;
    background: #3794fc;
    padding: 2px 10px;
    margin-right: 2px;
    color: white;
}

li.footable-page.active a {
    background: rgb(3, 24, 55) !important;
    color: white;
}


@media (min-width: 992px) {
    .sidebar-icon-only .sidebar .nav.sub-menu .nav-item:first-child {
        border: none;
    }

    .sidebar-icon-only .sidebar .nav.sub-menu .nav-item {
        border-top: none;
    }
}

@media (min-width: 992px) {
    .sidebar .nav-item.hover-open .nav-link:hover .menu-title,
    .sidebar .nav-item.hover-open .menu-title,
    .sidebar .nav-item .nav-link,
    .sidebar .nav-item .nav-link:hover {
        background: #3794fc !important;
        border-color: white !important;
        color: white !important;
    }


    .sidebar .nav-item.hover-open .nav-link:hover .menu-title,
    .sidebar .nav-item.hover-open .menu-title,
    .sidebar .nav-item .nav-link:hover {
        background: rgb(3, 24, 55) !important;
        border-color: white !important;
        color: white !important;
    }
}

.table td img {
    width: 90px;
    height: auto;
    border-radius: 0;
}

.text-right {
    text-align: right;
}

.bold {
    font-weight: bold;
}

ul#products-r-list-ul,
ul#customers-r-list-ul {
    display: none;
    position: absolute;
    background: white;
    width: 150%;
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid #fff;
    z-index: 9;
    -webkit-box-shadow: 0px 3px 21px 0px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0px 3px 21px 0px rgba(0, 0, 0, 0.1);
    box-shadow: 0px 3px 21px 0px rgba(0, 0, 0, 0.1);
}

.no-shadow-modal {
    background: transparent;
    border: none;
    box-shadow: none;
    left: 32.5%;
}

.blocker {
    position: inherit !important;
}

.products-table td {
    padding: 8px !important;;
}

.products-table img {
    border-radius: 50% !important;
    width: 60px !important;
    height: 60px !important;
}

ul#products-r-list-ul li,
ul#customers-r-list-ul li {
    margin: 0;
    padding: 0;
    list-style: none;
    display: block;
    padding: 4px 2px;
}

ul#products-r-list-ul li img {
    width: 50px;
    height: 50px;
    margin-right: 10px;
}

ul#products-r-list-ul li:hover,
ul#customers-r-list-ul li:hover {
    display: block;
    padding: 4px 2px;
    background: #3794fc;
    color: white;
}


.sale-tfoot {
    display: none;
}

.remove-order-item {
    color: red;
}

li.success {
    list-style: none;
    display: block;
    background: #008000;
    width: auto;
    max-width: 80%;
    text-align: center;
    position: absolute;
    color: white;
    padding: 2px 4px;
    margin-left: -15px;
    border-radius: 5px;
    text-align: center;
    left: 40%;
}

span.help-block {
    color: red;
    font-size: 11px;
    line-height: 2;
}

.errorlist {
    display: none;
}

.form-group .has-error {
    margin-bottom: 0 !important;
}


table thead tr {
    border: 1px solid #ddd;
    background: #3794fcb8;
    color: white;
}

table thead tr th {
    padding: 18px 5px !important;
    font-weight: 600 !important;
}

table tr td {
    padding-left: 5px !important;
    padding-right: 5px !important;
}

table td input,
table td input:focus {
    -webkit-box-shadow: 0px 3px 21px 0px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0px 3px 21px 0px rgba(0, 0, 0, 0.1);
    box-shadow: 0px 3px 21px 0px rgba(0, 0, 0, 0.1);
    border: none !important;
    background: white;
    padding: 5px !important;
    border: 1px solid #ddd;
}

table td input:hover {
    -webkit-box-shadow: 0px 3px 21px 0px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0px 3px 21px 0px rgba(0, 0, 0, 0.1);
    box-shadow: 0px 3px 21px 0px rgba(0, 0, 0, 0.1);
    background: white;
    border: 1px solid #ddd;
    border: none;
    padding: 5px;
}

table td input:disabled {
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    background: transparent;
    border: none;
    padding: 5px;
}

table th{
}


input.upload-image {
    width: 150px;
}

.order-stock-img {
    width: 80px !important;
    height: 70px !important;
    border-radius: 50% !important;
}

span.req-count {
    background: red;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    color: white;
    line-height: 30px;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    margin-left: -12px;
    margin-top: -20px;
}

select{
    height: 46px !important;
}

/* Desktop only: offset was breaking narrow screens (content shifted right / clipped). */
@media (min-width: 992px) {
    .content-wrapper {
        margin-left: 40px !important;
    }

    div#request-stock {
        margin-top: -50px !important;
        margin-left: 30% !important;
    }
}

@media (max-width: 991px) {
    .content-wrapper {
        margin-left: 0 !important;
        max-width: 100%;
    }

    div#request-stock {
        margin-top: 0 !important;
        margin-left: 0 !important;
    }
}

/* Mobile / tablet: menu lateral acima do conteúdo (cabeçalho sticky da tabela do painel usava z-index 102 e tapava o menu) */
@media screen and (max-width: 991px) {
    .sidebar.sidebar-offcanvas {
        z-index: 1025 !important;
    }
}

/* Painel produtos: mais espaço útil em ecrã estreito */
@media (max-width: 767px) {
    body.products-index .content-wrapper {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    body.products-index .main-panel .card .card-body {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
}

#sidebar{
    position: fixed;
}

table td{
    color: black;
}

#products-r-list-ul li{
    font-size: 17px;
    color: black;
}

#products-r-list-ul li b:hover{
    color: white !important;
}