:root
{
    --primary: #1C3C8A;
}

html
{
    height: 100%;
    width: 100%;
}

body
{
    font-family: Roboto, sans-serif;
    height: 100%;
    width: 100%;
}

#login-container
{
    height: 100%;
}

.login-window
{
    width: 400px;
    margin: auto;
}

a
{
    color: #1C3C8A;
}

a:hover
{
    color: dodgerblue;
}

.btn-link
{
    color: #1C3C8A;
}

.btn-link:hover
{
    color: dodgerblue;
}

.btn-outline-primary {
    color: #1C3C8A;
    border-color: #1C3C8A;
}

.btn-outline-primary:hover {
    background-color: #1C3C8A;
    border-color: #1C3C8A;
}

.btn-primary
{
    background-color: #1C3C8A;
    border-color: #1C3C8A;
}

.bg-dark {
    background-color: #1C3C8A !important;
}

.sidebar {
    position: relative;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100; /* Behind the navbar */
    padding: 0; /* Height of navbar */
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

.sidebar-sticky {
    position: relative;
    top: 0;
    height: calc(100vh - 48px);
    padding-top: .5rem;
    overflow-x: hidden;
    overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
}

@supports ((position: -webkit-sticky) or (position: sticky)) {
    .sidebar-sticky {
        position: -webkit-sticky;
        position: sticky;
    }
}

.container-fluid {
    position: absolute;
    top: 100px;
    bottom: 0;
}

.flex-xl-nowrap {
    height: 100%;
}

[role="main"] {
    position: relative;
}

.text-gray-800 {
    color: #5a5c69!important;
}

.text-small-caps
{
    font-variant: small-caps;
}

.table-container
{
    height: calc(100% - 220px);
    overflow-y: auto;
    box-shadow: 0 .15rem 1.75rem 0 rgba(58,59,69,.15)!important;
    border: 1px solid #e3e6f0;
    border-top-left-radius: .35rem;
    border-top-right-radius: .35rem;
}

.table-container thead th { position: sticky; top: 0; }

.table
{
    border-spacing: 0px;
    border: none;
    font-size: 12px;
}
.table thead th
{
    background-color: #f8f9fc;
    font-weight: 700 !important;
    font-size: 12px;
    color: #858796;
}

.table thead th:first-child
{
    border-top-left-radius: .35em;
}

.table thead th:last-child
{
    border-top-right-radius: .35em;
}

.dropzone {
    border: 2px dashed #0087F7 !important;
    border-radius: 5px !important;
    background: white !important; }
.dropzone .dz-message {
    font-weight: 400 !important; }
.dropzone .dz-message .note {
    font-size: 0.8em !important;
    font-weight: 200 !important;
    display: block !important;
    margin-top: 1.4rem !important; }

.dropzone.highlight {
    border-color: #1C3C8A !important;
}

.modal-header
{
    background-color: #1C3C8A;
    color: white;
}

.modal-header .close {
    color: white;
}

/* Loading Indicator */
.loader {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}
.loader div {
    position: absolute;
    border: 4px solid #1C3C8A;
    opacity: 1;
    border-radius: 50%;
    animation: loader 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}
.loader div:nth-child(2) {
    animation-delay: -0.5s;
}
@keyframes loader {
    0% {
        top: 36px;
        left: 36px;
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        top: 0px;
        left: 0px;
        width: 72px;
        height: 72px;
        opacity: 0;
    }
}
/* End Loading Indicator */

/* Horizontal loader */
div.loader-small {
    display: flex;
    justify-content: center;
    align-items: center;
}

div.loader-small > div {
    width: 12px;
    height: 12px;
    border-radius: 100%;
    margin: 1vw;
    background-image: linear-gradient(145deg, rgba(255,255,255,0.5) 0%, rgba(0,0,0,0) 100%);
    animation: bounce 1.5s 0.5s linear infinite;
}

@keyframes bounce {
    0%, 50%, 100% {
        transform: scale(1);
        filter: blur(0px);
    }
    25% {
        transform: scale(0.6);
        filter: blur(3px);
    }
    75% {
        filter: blur(3px);
        transform: scale(1.4);
    }
}
/* // Horizontal loader */

.toast
{
    background-color: rgb(100, 149, 237);
    border-color: #1C3C8A;
    color: white;
}

.toast-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.section-header
{

    background-color: rgb(100, 149, 237);
    color: white;
    padding: 3px;
    border-radius: 3px;
    font-variant: small-caps;
    text-align: center !important;
}

.subsection-header
{

    background-color: rgba(172, 172, 172, .15);
    color: black;
    padding: 3px;
    border-radius: 3px;
    font-variant: small-caps;
    text-align: center !important;
}

.form-fields-group
{
    background-color: rgba(100, 149, 237, .15);
    border-radius: 5px;
    padding: 3px 3px 1px 5px;
}

.time-field
{
    width: 45px !important;
}

#email-modal .modal-dialog
{
    max-width: 80%;
}

#rowCount
{
    color: gray;
    font-size: 10pt;
    font-variant: small-caps;
}

#quotation-modal .modal-dialog
{
    max-width: 90%;
}

#quotation-modal .modal-body label
{
    font-size: 15px;
    font-variant: small-caps;
    justify-content: left;
    padding-left: 0;
}

#cliente-placeholder
{
    border: 2px dashed #0087F7 !important;
    border-radius: 5px !important;
    background: white !important;
    width: 200px;
    height: 120px;
    cursor: pointer;
}

#cliente-detail
{
    display: inline-block;
    cursor: pointer;
    font-size: 14px;
    min-width: 200px;
    border: none;
    padding: 7px;
}

#cliente-detail:hover
{
    border: 2px dashed #0087F7 !important;
    border-radius: 5px !important;
    padding: 5px;
}

#quotation-modal .modal-body #numero
{
    background: white;
    width: 150px !important;
    text-align: center;
}

#quotation-modal .modal-body #data
{
    width: 150px !important;
    text-align: center;
}

#quotation-modal .table-container
{
    max-height: 300px;
}


#articoli table
{
    margin-bottom: 0;
}

#placeholder td {
    cursor: pointer;
    vertical-align: middle;
    height: 100px;
    border: none;
}

#customerPickerModal .modal-dialog
{
    max-width: 80%;
}

#customerPickerModal .table-container
{
    max-height: 300px;
}

#articoloPickerModal .modal-dialog
{
    max-width: 80%;
}

#articoloPickerModal .table-container
{
    max-height: 300px;
}

.importo-row
{
    font-size: 16px;
}

[for="annoFilter"]
{
    font-size: 15px;
    font-variant: small-caps;
}

.multiselect-container.dropdown-menu
{
    height: auto;
    max-height: 200px;
    overflow-x: hidden;
}

.multiselect.dropdown-toggle.custom-select
{
    text-align: left;
}

.multiselect-native-select .btn-group
{
    width: 100%;
}

.w-30
{
    width: 30%;
}

.w-68
{
    width: 68%;
}

.action-link.disabled {
    color: #6c757d;
    pointer-events: none;
    cursor: default;
}

.text-blue
{
    color: #1C3C8A;
}

.app-version
{
    position: fixed;
    bottom: 12px;
    left: 12px;
    font-size: 10px;
    color: #1C3C8A;
}