/* fix datatables */
.dataTables_wrapper .row { width: 100%; margin-bottom: 15px; }
.dataTables_wrapper.form-inline {display: block!important;}

tr td {
    position: relative;
}

.btn-primary,.btn-danger {
color: #fff!important;
}

.btn-orange {

    color: #fff;
    background-color: #F3490A;
    border-color: #F3490A;
    box-shadow: none;

}


table.dataTable.nowrap .emailmessage th,
table.dataTable.nowrap .emailmessage td {
    white-space: normal!important;
}

.overlay-tr td:first-child:after {
    position: absolute;
    z-index: 1;
    display: block;
    text-align: center;
    left: 0;
    top: 0;
    width: 502%;
    height: 100%;
    content:"Loading...";
    background-color: rgba(255, 0, 0, .7);
    color: white;
}

div.emailmessage
{
    width: 100%;
    height: 10em;
    overflow-y: scroll;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    padding: 20px;
}
table.dataTable.nowrap td .modal-header,
table.dataTable.nowrap td .modal-body {
    white-space: normal!important;
}


.hidden {display: none;}
.width-zero {width: 0% }

.absolute-position {    position: absolute;
    width: 80%;
    box-shadow: 0px 0px 20px 4px;}

.modal-dialog.full-width-dialog {
    max-width: 90%!important;
}
#ricercaPreventivoModal .select2-container,
#accordionFindPreventivo .select2-container
{width: 100% !important;}

span.select2-selection.select2-selection--single.form-control.requested_alert {border:1px solid #dc3545;}


.image-selection {border: 1px solid white; cursor:grab;}
.image-selection.selected {
    border: 3px solid #28a745;
    box-shadow: 5px 5px 10px;
}
.image-selection.selected:after {
    content: " ";
    border: solid #28a745;
    position: absolute;
    transform: rotate(-45deg);
    border-width: 0 0 5px 5px !important;
    height: 13px;
    width: 22px;
    margin: 17px 0 0 14px;
    right: 5%;
    bottom: 10%;
}
.required-alert {border:1px solid red;}

.richiesta-select-row {    margin-bottom: 8px;
    border-bottom: 1px solid lightgray;
    padding-bottom: 8px;}

.preview_message {
    white-space: normal;
    background-color: #7ED2C4;
    color: #000;
    padding: 6px;
    font-size: 1rem;
    margin: 10px 0;
    border-radius: 4px;
    /*max-width: 460px;*/
    display: -webkit-box;
    /*box-sizing: border-box;*/
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-wrap: break-word;

}

.preview_message.preview_warning {
    background-color: #ffc107;
}

.preview_message:not(.mr-3){
    width: 100%;
    //max-width: 26vw;

    max-width: 100%;
    word-break: break-word;
}

p.preview_message:hover{
    -webkit-line-clamp: unset;
    overflow-y: scroll;
    max-height: 200px;
}

.preview_message {
    scrollbar-width: thin;
    //scrollbar-color: #ffc107 orange;
    //scrollbar-color: #7ED2C4 lightgray;
    scrollbar-color: gray #7ED2C4 ;
}

.info_contatto_email {
    max-width: 50%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    line-height: 1.2rem;
}

.overflow-text {
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    max-width: 100%;
}



.badge.overflow-badge {
    max-width: 100%;
    text-overflow: ellipsis;
    overflow: hidden;
}

.pull-down {
    display: inline-block;
    position: absolute;
    bottom: 4px;

}


/* Works on Chrome, Edge, and Safari */
.preview_message::-webkit-scrollbar {
    width: 12px;
}

.preview_message::-webkit-scrollbar-track {
    background: orange;
}

.preview_message::-webkit-scrollbar-thumb {
    background-color: #ffc107;
    border-radius: 20px;
    border: 3px solid orange;
}

.dropdown-menu.show { padding: 10px; }

.datepicker.datepicker-dropdown.dropdown-menu.datepicker-orient-left.datepicker-orient-top {z-index: 1050!important;}

.cke_editable p {margin-block-end: 0;margin-block-start: 0;}

.richiesta-select-row:last-of-type {border-bottom: 0 solid black;}

.gray-row {background-color: #e8e8e8;    padding: 20px;  margin: 10px -20px;}

i.fa-cog:hover{color:red;}
i.fa-cog{/*font-size: 16pt;*/color:#007bff;}




/*i.fa-trash{font-size: 16pt;color:#007bff;}
i.fa-trash:hover{color:red;}*/

#tabella-richieste,
#preventivi-table
{ font-size: 1rem; /* ex 13px */ }

#tabella-richieste tr th:last-child,
#tabella-richieste tr td:last-child{ max-width:111px; /*min-width: 111px; overflow: hidden;*/ }

#tabella-richieste tr th:first-child,
#tabella-richieste tr td:first-child{ max-width:200px; /*min-width: 111px;*/ overflow: hidden; }

.requested_alert {border:1px solid #dc3545;}

#tabella-richieste .btn,
#preventivi-table .btn
{
    text-overflow: ellipsis;
    overflow: hidden;
    text-transform: uppercase;
    font-weight: 600;
}

#tabella-richieste .info-data-container,
#preventivi-table .info-data-container
{
    font-size: 0.85rem;
}

.grid-selector input{
    margin:0;padding:0;
    -webkit-appearance:none;
    -moz-appearance:none;
    appearance:none;
}

.image6_grid{background-image:url(../images/grid6-icon.jpg);}
.image9_grid{background-image:url(../images/grid9-icon.jpg);}

.landscape_grid{background-image:url(../images/landscape_icon.jpg);}

.grid-selector input:active +.drinkcard-grid{opacity: 1; border: 1px solid red;}
.grid-selector input:checked +.drinkcard-grid{
    border: 1px solid red;
}
.drinkcard-grid{
    cursor:pointer;
    background-size:contain;
    background-repeat:no-repeat;
    display:inline-block;
    width:100px;height:100px;
    -webkit-transition: all 100ms ease-in;
    -moz-transition: all 100ms ease-in;
    transition: all 100ms ease-in;
    -webkit-filter: opacity(.8);
    -moz-filter: opacity(.8);
    filter:  opacity(.8);
}
.drinkcard-grid:hover{
    -webkit-filter:  opacity(1);
    -moz-filter:  opacity(1);
    filter:  opacity(1);
}

.delete_image_btn {
    position: absolute;
    top: 3px;
    right: 3px;
    z-index: 9999;
    cursor: pointer;
}
.badge {
    font-size: 80%!important;
}

.selected-row{
    background-color: lightsalmon!important;
}
#tabella-richieste {
    border-spacing: 5px 10px;
}

.table .richiesta-row td {
    border-bottom: 2px dashed #6c757d;
    padding-top: 15px;
}


.blink {
    animation: blink-animation 1s steps(2, start) infinite;
    -webkit-animation: blink-animation 1s steps(2, start) infinite;
}

@keyframes blink-animation {
    to {
        visibility: hidden;
    }
}


.pulse {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}
