@import url("modal.css");
@import url("well.css");

@media print {
    .printable-label {
        position: fixed;
        top: 60px;
        bottom: 0;
        left: 0;
        right: 0;
        text-align: center;
        font-size: 16px;
    }
}
@media screen and (max-width: 600px) {
    #topCalendar {
        visibility: hidden;
        clear: both;
        float: left;
        margin: 10px auto 5px 20px;
        width: 28%;
        display: none;
    }
}

.miniLoading {
    position: absolute;
    top: 12%;
    right: 10% !important;
    z-index: 100;
    width: 60px;
}

.barcode:hover > .btnPrintBarcode{
    display: inline !important;
}
/* Important part */
.modal-dialog{
    overflow-y: initial !important
}
.modal-body{
    max-height: 70vh; /* For 100% screen height */
    overflow-y: auto;
}

.font-weight-bold{
    font-weight: bold;
}

.btn-custom{
    background-color: #7B4847!important;
    color: #fff!important;
}



.btn-circle {
    width: 30px;
    height: 30px;
    text-align: center !important;
    padding: 2px 0px !important;
    line-height: 1.428571429 !important;
    border-radius: 15px !important;
}
.btn-circle.btn-lg {
    width: 50px;
    height: 50px;
    padding: 10px 16px;
    font-size: 18px;
    line-height: 1.33;
    border-radius: 25px;
}
.btn-circle.btn-xl {
    width: 70px;
    height: 70px;
    padding: 10px 16px;
    font-size: 24px;
    line-height: 1.33;
    border-radius: 35px;
}

#nav-preferiti{
    max-height: 250px;
    max-width: 280px;
    overflow-y: auto;
    overflow-x: hidden;
}

#nav-preferiti a:hover{
    color:black !important;
}

#nav-preferiti::-webkit-scrollbar {
  width: 10px;
}

/* Track */
#nav-preferiti::-webkit-scrollbar-track {
    background: var(--scrollbarBG); 
    border-radius: 10px;
}
 
/* Handle */
#nav-preferiti::-webkit-scrollbar-thumb {
    background:  var(--thumbBG); 
    border-radius: 10px;
}

/* Handle on hover */
#nav-preferiti::-webkit-scrollbar-thumb:hover {
    background:  var(--thumbBGHover); 
}

#orologio{
    position: absolute;
    top: 41px;
    right: -23px;
    color: white;
    font-size: 20px;
    border: 1px solid;
    margin-top: 5px;
    padding: 2px;
    border-radius: 5px;
}

.p-1{
    padding: 1px !important;
}

.p-4{
    padding: 4px;
}

.pt-1{
    padding-top: 1%;
}

.mt-1{
    margin-top: 1%;
}
.mt-3 {
    margin-top: 1rem;
}

.mb-0{
    margin-bottom: 0px !important;
}
.mb-1{
    margin-bottom: 1%;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mx-1 {
    margin-left: 0.25rem;
    margin-right: 0.25rem;
}

.my-auto {
    margin-top: auto;
    margin-bottom: auto;
}

.btn-default{
    color:black !important;
}

.text-nowrap {
    white-space: nowrap;
}

.text-white{
    color: white !important;
}

.cursor-pointer{
    cursor: pointer;
}

#flash_bar_right {
    top: 8%;
    right: 1%;
    position: fixed;
    z-index: 2000;
}

#spinnerLoading{
    z-index: 3000;
}

.text-ellipse {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.wrap-text {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.wrap-text:hover {
    overflow: visible !important;
    white-space: inherit !important;
}

.text-secondary {
    color: #6c757d!important;
}

tr.secondary-light td, tr.secondary-light th {
    background-color: #e9ecef!important;
    border-color: #dee2e6;
}

.text-warning-i {
    color: #8a6d3b!important;
}

.text-uppercase{
    text-transform: uppercase;
}

@media only screen
and (max-device-width: 600px) {
    .table-responsive > .table {
        table-layout: auto !important;
    }
}

/*******tooltip*******/
.tooltip > .tooltip-inner {
    background-color: #7B4847;
    color: #fff;
    font-weight: bold;
}
.tooltip >.tooltip-arrow{
    border-bottom-color: #7B4847 !important;
    border-top-color: #7b4847 !important;
}
.tooltip{
    width:auto !important;
    background: transparent !important;
}

.modal-dialog.expanded{
    width: 90% !important;
}

.btn-secondary{
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-secondary:hover{
    color: #fff;
    background-color: #5a6268;
    border-color: #545b62;
}

.input-error{
    background: #F2DEDE!important;
    /*color: white !important;*/
    border: 1px solid red !important;
}

tr.dark{
    background: #d3d3d3 !important;
}

tr.dark:hover{
    background: #c6c8ca !important;
}

.badge-danger {
    color: #fff !important;
    background-color: #dc3545 !important;
}

.badge-primary {
    color: #fff;
    background-color: #007bff !important;
}

.badge-success {
    color: #fff;
    background-color: #28a745 !important;
}

.badge-warning {
    color: #212529;
    background-color: #ffc107 !important;
}

.badge-info {
    color: #fff;
    background-color: #17a2b8 !important;
}

.badge-light {
    color: #212529;
    background-color: #f8f9fa !important;
}

.badge-dark {
    color: #fff;
    background-color: #343a40 !important;
}
.badge-custom {
    color: #fff;
    background-color: #7B4847 !important;
}

.opacity-50 {
    opacity: 0.5;
}

.opacity-50:hover {
    opacity: 0.9;
}

html {
    --scrollbarBG: #d3bebd;
    --thumbBG: #7B4847;
    --thumbBGHover: #614140;
}
body::-webkit-scrollbar {
    width: 12px;
}

body {
    scrollbar-width: 12px;
    scrollbar-color: var(--thumbBG) var(--scrollbarBG);
}
body::-webkit-scrollbar-track {
    background: var(--scrollbarBG);
}
body::-webkit-scrollbar-thumb {
    background-color: var(--thumbBG) ;
    border-radius: 5px;
    border: 3px solid var(--scrollbarBG);
}



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

.panel{
    padding: unset !important;
}

.panel.panel-custom{
    border-color: var(--thumbBG);
}

.panel.panel-custom > .panel-heading{
    background: var(--thumbBG);
    border-color: var(--thumbBG);
}

.panel > .panel-heading > h3{
    color: white;
}

#message_bar:has(.flash-message:not(:empty)) {
    min-height: 20px !important;
}

.btn-outline-primary {
    color: #007bff !important;
    background-color: transparent !important;
    background-image: none !important;
    border-color: #007bff !important;
}
.btn-outline-primary:hover {
    color: #fff !important;
    background-color: #007bff !important;
    border-color: #007bff !important;
}

.d-none {
    display: none;
}
.d-block {
    display: block;
}
.d-inline-flex {
    display: inline-flex;
}

.mw-100{
    max-width: 100%;
}

.position-fixed {
    position: fixed !important;
}

.marquee-container {
    display: inline-flex; 
    float: left; 
    width: 100%;
    padding-left: 1%;
    margin-top: 2px;
    border-bottom: 2px solid #ccc;
}

.marquee {
    height: 30px;
    overflow: hidden;
    position: relative;
    background: #fefefe;
    color: #333;
    border: 1px solid white;
    display: flex;
}

.marquee p {
    width: auto;
    height: 100%;
    margin: 0;
    line-height: 30px;
    text-align: center;
    -moz-transform: translateX(100%);
    -webkit-transform: translateX(100%);
    transform: translateX(100%);
    -moz-animation: scroll-left 2s linear infinite;
    -webkit-animation: scroll-left 2s linear infinite;
    animation: scroll-left 20s linear infinite;
}
.marquee p span {
    margin-right: 40px;
}

.marquee-action {
    line-height: 30px;
    margin-right: -3px;
}

@-moz-keyframes scroll-left {
    0% {
        -moz-transform: translateX(100%);
    }
    100% {
        -moz-transform: translateX(-100%);
    }
}

@-webkit-keyframes scroll-left {
    0% {
        -webkit-transform: translateX(100%);
    }
    100% {
        -webkit-transform: translateX(-100%);
    }
}

@keyframes scroll-left {
    0% {
        -moz-transform: translateX(100%);
        -webkit-transform: translateX(100%);
        transform: translateX(100%);
    }
    100% {
        -moz-transform: translateX(-100%);
        -webkit-transform: translateX(-100%);
        transform: translateX(-100%);
    }
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 10px; /* Spaziatura tra input e bottone */
    margin-bottom: 20px;
}

.search-bar .input.text {
    width: 100%;
}

.search-bar input[type="text"] {
    flex: 1;
    padding: 5px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px 0px 0px 4px;
}

.search-bar button {
    padding: 6px 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 0px 4px 4px 0px;
    cursor: pointer;
    font-size: 14px;
}
.search-bar button:before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900; /* Per le icone "Solid" */
    content: "\f002";
    margin-right: 3px;
}

.search-bar button:hover {
    background-color: #0056b3;
}