.bg-fixed-bottom {
    background-image: url(../img/illustrations/sticky.svg);
    min-height: 100vh;
}

/* Navbar */
.navbar-dark.navbar-vibrant {
    background-image: linear-gradient(to bottom right, rgba(18, 111, 235, 0.9), rgb(25 28 62 / 90%));
}

/* Flash messages */
.message {
    cursor: pointer;
    padding: 1rem;
    position: fixed;
    top: 10px;
    right: 20px;
    filter: opacity(0.95);
    z-index: 9999;
}

/* Main avatar */
.main-avatar {
    font-size: 160%;
    text-shadow: 1px 1px rgb(0 0 0 / 20%);
    font-family: sans-serif;
    font-weight: bold;
    letter-spacing: -5px;
    padding-right: 5px;
}

/* loader */
.loading {
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999999;
}

.loading span {
    color: #F1F1F1 !important;
    display: block;
    font-size: 30px;
}

/*
* Works
*/
.recap-content,
.recap-content p {
    padding: 0;
    margin: 0;
}

/*
Form Elements
*/
.input-group select.prepend {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group .input-group-append .btn-append {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.fade:not(.show) {
    opacity: 0;
    display: none;
}

.works_metadata {
    border: 1px solid #DDD;
    border-radius: 8px;
    padding: 20px;
}

.works_metadata .col-md-9 {
    padding: 25px;
    background-color: #EEEEEF;
}

.astext {
    display: inline;
    background-color: transparent;
    border: none;
}

#alert-js {
    display: none;
}

.setLanguages {
    padding: 20px;
}

.setSpecificLang,
.cursor-pointer {
    cursor: pointer;
}

.cursor-remove {
    cursor: url(/img/trash.png), pointer;
}

td:not(.actions),
th:not(.actions) {
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.income-card {
    min-height: 150px;
}

.plus-sign-select-box {
    position: absolute;
    top: 32px;
    right: 38px;
    cursor: pointer;
}

.plus-sign-card {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-size: 20px;
}

input.form-control {
    border: 0;
    border-bottom: 1px solid #D2DDEC;
    border-radius: 0;
    padding-bottom: 0.55rem;
}

.choices__list--single {
    padding: 0 16px 0 4px;
}

.br-0 {
    border-radius: 0 !important;
}

.dropzone {
    display: inline-block;
    width: 100%;
    background: white;
    border-radius: 5px;
    border-image: none;
    max-width: 96%;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    border: 1px dashed #D2DDEC;
}

.dropzone .dz-message {
    margin: 1em 0;
    border: 0;
}

.dropzone .dz-preview .dz-progress {
    background-color: rgb(57, 175, 209);
    border: 3px solid rgba(57, 175, 209, 0.8);
}

.dz-image img {
    width: 100%;
}

tags.form-control {
    border: 0;
    border-bottom: 1px solid #D2DDEC;
    border-radius: 0;
    padding: 0;
}

.form-select {
    min-height: 2.5rem;
    border: 0;
    border-bottom: 1px solid #D2DDEC;
    border-radius: 0;
}

.choices__inner {
    background-color: transparent;
    border: 0;
    border-bottom: 1px solid #DDD;
    border-radius: 0;
}

.right-orange {
    background-color: #FFB253 !important;
}

.right-green {
    background-color: #AEDD80 !important;
}

.crossaccounts img {
    width: 80px;
    height: 50px;
}

.x3 {
    font-size: 3rem;
}

.form-check-input {
    margin-right: 5px;
}

#movement-files-upload .dz-message {
    padding: 0 1rem;
}

#movement-files-upload {
    min-height: 20px;
}

.dropzone.small .dz-message {
    padding: 0.4rem 1rem;
}

.dropzone.small {
    min-height: 20px;
}

.miniatura {
    aspect-ratio: 1/1;
    object-fit: contain;
}

.copertina {
    aspect-ratio: 1/1;
    object-fit: contain;
}

.input-group-text {
    border: 0;
}

.plan-pricing-full {
    font-size: 24px;
    top: 0;
}

.plan-pricing-full::after {
    position: absolute;
    content: "";
    left: 0;
    top: 45%;
    right: 0;
    border-top: 2px solid;
    border-color: red;
    -webkit-transform: skewY(25deg);
    -moz-transform: skewY(25deg);
    transform: skewY(25deg);
}

.img-preview {
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.img-preview:hover {
    opacity: 0.7;
}

.modal-image {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    /* Sit on top */
    padding-top: 100px;
    /* Location of the box */
    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.9);
    /* Black w/ opacity */
    z-index: 999999;
}

.modal-image-content {
    margin: auto;
    display: block;
    max-height: 400px;
    width: auto;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #CCC;
    padding: 10px 0;
    height: 150px;
}

.modal-image-content,
#caption {
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.6s;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
    from {
        -webkit-transform: scale(0);
    }

    to {
        -webkit-transform: scale(1);
    }
}

@keyframes zoom {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #F1F1F1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #BBB;
    text-decoration: none;
    cursor: pointer;
}

.edit {
    position: absolute;
    top: 15px;
    left: 35px;
    color: #F1F1F1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.edit:hover,
.edit:focus {
    color: #BBB;
    text-decoration: none;
    cursor: pointer;
}

@media only screen and (max-width: 700px) {

    .modal-image-content {
        width: 90%;
        object-fit: contain;
    }
}

.text-red {
    color: #F00;
}

.text-green {
    color: #0F0;
}

.br-gray {
    border-right: 1px solid #E3EBF6;
}

.ts-wrapper {
    padding: 0 !important;
}

.ts-control {
    font-size: 0.9375rem;
}

.border-blue {
    border: 1px solid #39AFD1;
}
.border-green {
    border: 1px solid #AEDD80;
}
.border-yellow {
    border: 1px solid #f6c343;
}
table tr.bg-grey {
    background-color: #BFBCBC;
}
table tr.bg-green {
    background-color: #3DAB13;
    border-left: 0.25rem solid #3DAB13;
}
table tr.bg-dark-yellow {
    background-color: #FFF3CD !important;
    border-left: 0.25rem solid #FFE69C !important;
}
table tr.bg-dark-yellow td {
    color: #664D03 !important;
}
table tr.bg-header {
    background-color: #F9FBFD;
    border-left: 0.25rem solid #C1C3C5;
}
table tr.bg-header td {
    color: #2C7BE5;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.7rem;
}
.bg-texture-green {
    background: url(/img/texture-green.png);
    background-position: center center;
    border-left: 0.25rem solid #3DAB13;
}
.bg-texture-yellow {
    background: url(/img/texture-yellow.png);
    background-position: center center;
    border-left: 0.25rem solid #ffc10750;
}
.bg-texture-gray {
    background: #EDF2F9 !important;
    background-position: center center;
    border-left: 0.25rem solid #676869;
}
table tr.bg-texture-green {
    background: url(/img/texture-green.png);
    background-position: center center;
    border-left: 0.25rem solid #3DAB13;
}
table tr.bg-texture-red {
    background: url(/img/texture-red.png);
    background-position: center center;
    border-left: 0.25rem solid #DC3545;
}
table tr td.bg-texture-red {
    background: url(/img/texture-red.png);
    background-position: center center;
}
table tr.bg-texture-yellow {
    background: url(/img/texture-yellow.png);
    background-position: center center;
    border-left: 0.25rem solid #ffc10750;
}
table tr td.bg-texture-yellow {
    background: url(/img/texture-yellow.png);
    background-position: center center;
    border-left: 0;
}
table tr.bg-grey td,
table tr.bg-green td {
    color: white;
}

table tr.p-2 td {
    padding: 0.375rem !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

.text-green {
    color: #3DAB13 !important;
}

.text-dark-yellow {
    color: #664D03 !important;
}

.bs-blue {
    border-left: 0.25rem solid #4D9BE3;
}

.popover {
    max-width: 20rem;
}

.pac-container {
    z-index: 10000 !important;
}

.form-select:disabled {
    background-color: transparent;
}

.card.schedule.selected {
    border: 1px solid #7AD231;
}

.tr-select-schedule.selected {
    background-color: red;
}

.navbar-dark.navbar-vibrant .nav-item.active .nav-link,
.navbar-dark.navbar-vibrant .nav-item .nav-link.active,
.navbar-dark.navbar-vibrant .nav-link:focus,
.navbar-dark.navbar-vibrant .nav-link:hover {
    color: #FFF;
    background: #3D85E9;
}

.right-icon {
    border: 1px solid #d2dceb;
    aspect-ratio: 1;
}

.right-icon.selected {
    border: 1px solid #00D97E;
    aspect-ratio: 1;
}

.w-150 {
    min-width: 200px !important;
}

.w-250 {
    min-width: 250px !important;
}

.select-warehouse.active {
    border: 1px solid #00D97E;
}

.select-contract-right.active {
    border: 1px solid #00D97E;
}

.swal2-confirm {
    background-color: #2C7BE5 !important;
}

.highlight-search {
    background-color: yellow;
    color: black;
}

.form-check .form-check-input:checked+.form-check-label {
    color: #6E84A3;
}

tr.cursor-pointer:hover {
    background-color: #fdf3d9;
}

.tr-owner {
    background-color: #f9fbfd;
}

/* CSS per placeholder arancione semitrasparente sui campi obbligatori */
input[required]:placeholder-shown,
textarea[required]:placeholder-shown,
select[required]:placeholder-shown,
input.required:placeholder-shown {
    border-bottom-color: #E63757;
    background: url(/img/texture-red.png);
    background-position: center center;
}

input[required]:-ms-input-placeholder,
textarea[required]:-ms-input-placeholder,
select[required]:-ms-input-placeholder {
    color: #E63757;
}

input[required]::placeholder,
textarea[required]::placeholder,
select[required]::placeholder,
input.required::placeholder {
    color: #E63757;
}

.custom-file-upload {
    display: flex;
    align-items: center;
}

.custom-file-upload label {
    margin-bottom: 0;
    cursor: pointer;
}

.file-name {
    font-size: 0.875rem;
}

.post-it {
    color: #000;
    background: #ffc;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 4em;
    box-sizing: border-box;
    padding: 1em;
    -moz-box-shadow: 5px 5px 7px rgba(33, 33, 33, 1);
    -webkit-box-shadow: 5px 5px 7px rgba(33, 33, 33, .7);
    box-shadow: 5px 5px 7px rgba(33, 33, 33, .7);
    -moz-transition: -moz-transform .15s linear, box-shadow .15s linear;
    -o-transition: -o-transform .15s linear, box-shadow .15s linear;
    -webkit-transition: -webkit-transform .15s linear, box-shadow .15s linear;
    transition: transform .15s linear, box-shadow .15s linear;
    font-family: "Reenie Beanie", arial, sans-serif;
    font-size: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    -webkit-transform: rotate(-2deg);
    -o-transform: rotate(-2deg);
    -moz-transform: rotate(-2deg);
    transform: rotate(-2deg);
}

textarea.post-it {
    resize: vertical;
    min-height: 8em;
}

.post-it:hover {
    box-shadow: 10px 10px 7px rgba(0, 0, 0, .7);
    -moz-box-shadow: 10px 10px 7px rgba(0, 0, 0, .7);
    -webkit-box-shadow: 10px 10px 7px rgba(0, 0, 0, .7);
    -webkit-transform: scale(1.25) rotate(-2deg);
    -moz-transform: scale(1.25) rotate(-2deg);
    -o-transform: scale(1.25) rotate(-2deg);
    transform: scale(1.25) rotate(-2deg);
    position: relative;
    z-index: 5;
}

/* Reading stack lettori: spazio per rotate/scale del post-it + niente taglio dai flex */
.reading-stack .row.d-flex.flex-fill > [class*="col-"] {
    min-width: 0;
}

.reading-stack .reading-stack-readers-card,
.reading-stack .reading-stack-readers-card .card-body,
.reading-stack .reading-stack-readers-card .tab-content {
    overflow: visible;
}

.reading-stack .reading-stack-readers-card .tab-pane {
    overflow: visible;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    padding-bottom: 0.5rem;
}

.reading-stack .reading-stack-readers-card .post-it-field-wrap {
    overflow: visible;
    padding-top: 0.35rem;
    padding-bottom: 0.75rem;
}

/* Mail templates index: note lunghe non devono allargare tutta la tabella */
.mail-templates-index .mail-templates-table td.mail-template-notes {
    max-width: 14rem;
    vertical-align: top;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.mail-templates-index .mail-template-notes-body {
    max-height: 6.5rem;
    overflow-y: auto;
}

/* Reading stack notifications: select template sempre leggibile */
.reading-stack-notifications .reading-stack-template-select {
    min-width: 260px;
    background-color: #fff;
    border: 1px solid #D2DDEC;
    border-radius: 0.25rem;
    padding-left: 0.75rem;
    padding-right: 2.25rem;
}

.reading-stack-notifications .reading-stack-template-picker {
    background-color: #fff;
    border: 1px solid #D2DDEC;
}

.reading-stack-notifications #reading-stack-template-list .list-group-item.active {
    background-color: rgba(18, 111, 235, 0.08);
    border-color: rgba(18, 111, 235, 0.25);
    color: inherit;
}