/*----------------------------------------------------------------
----GENERAL
----------------------------------------------------------------*/


a:hover {
    cursor: pointer;
}

a, button, .bootstrap-select .btn.dropdown-toggle:focus {
    outline: 0 !important;
}

.fa-arrow-left {
    text-decoration: none !important;
}

.small p {
    margin-top: 0;
    margin-bottom: 0;
}

.indent {
    margin-left: 15px;
}

ol {
    margin-top: 10px;
}

.h2, h2 {
    font-size: 28px;
}

.h3, h3 {
    font-size: 20px;
}

.form-check {
    padding-left: 0;
}

li input[type="checkbox"] {
    vertical-align: sub;
}

.table > tbody > tr > td, .table > tfoot > tr > td, .table > thead > tr > td {
    vertical-align: middle;
}

.table > tbody > tr > th, .table > tfoot > tr > th, .table > thead > tr > th, .table > tbody > tr.vertical-top > td, .table > tfoot > tr.vertical-top > td, .table > thead > tr.vertical-top > td {
    vertical-align: top;
}

input[readonly], .canvas-disabled {
    background-color: #dddddd;
}

.canvas-disabled {
    background-color: #e9ecef;
}
/* use standard border browsers */
iframe {
    border: 2px solid #333333;
}

/* Remove all bootstrap border-radius*/
.form-control, .thumbnail, a, .input-group > *, .panel, .panel > *, .input-group-text, .dropdown-toggle, .bootstrap-select > .dropdown-toggle { /*, .btn, .btn-xs, .btn-xl, .btn-lg {*/
    /*border-radius: 0;*/
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* v3 style backport */
body, .dropdown-menu {
    font-size: 14px;
    line-height: 1.42857143;
    color: #333;
}

.form-control:focus, .bootstrap-select > .dropdown-toggle:focus {
    box-shadow: 0px 0px 8px #66afe9;
    border: 1px solid #66afe9;
}

.form-control[type=radio]:focus {
    box-shadow: none;
    border: 0;
}

.form-control, .input-group-text, .bootstrap-select > .dropdown-toggle {
    font-size: unset;
}

.dropdown.bootstrap-select.form-control, .bootstrap-select .btn-light {
    border: 1px solid #ced4da;
}

.filter-option-inner {
    line-height: 19px;
}

/* Buttons */
.btn {
    font-size: unset;
}

.btn-sm {
    padding: 1px 5px;
}

.btn-sm {
    min-width: 8em;
}

.btn-w-lg {
    min-width: 300px;
}
/* remove default border */
#wrapper .btn:focus, #wrapper .btn:active, #wrapper .btn:hover {
    box-shadow: none;
}
/* outright disable all borders */
#wrapper .page-link:focus, #wrapper .page-link:active, #wrapper .page-link:hover {
    box-shadow: none !important;
}

/* set up the v4 animation for buttons and arrows */
.btn, .fa-arrow-left, .page-link {
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

/*
.btn-lg, .btn-xl {
    width: 100%;
}*/

/* Pagination*/
.pagination > li:first-child > a, .pagination > li:first-child > span {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.pagination > li:last-child > a, .pagination > li:last-child > span {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/*Form*/
.input-group-addon {
    background-color: inherit;
    border: none;
}
/*label {
    font-weight: bold;
}*/

/*Text and font*/
/*.center {
    vertical-align: middle;
    text-align: center;
}*/

/* DataTables */
.table-bordered td, .table-bordered th {
    padding: 8px;
}

.table-bordered thead th:before, .table-bordered thead th:after {
    top: 6px;
}

.table.dataTable {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    border-collapse: collapse !important;
}

.index-table-pagination-container {
    margin-top: 30px;
}
/* Override automatic col-lg-6 to col-6 to avoid priority issues at small resolutions with the search box / buttons */
.dataTables_wrapper > .row > .col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

/* Card / Panel */
.card-block {
    padding: 15px;
    display: block;
    overflow: auto;
}

.card-scroll-all {
    /* for the default modal contents (title and buttons) */
    max-height: calc(100vh - 230px);
}

.card-block > ul {
    margin: 0;
}

.card-decorated-light {
    /* da usare nelle maschere di compilazione dei documenti per evidenziare sezioni 'funzionali' */
    padding: 0 15px 15px;
    background-color: #F3F3F3
}

/*----------------------------------------------------------------
----MODAL
----------------------------------------------------------------*/

/* there is an extraneous padding auto-added by a jquery-ui event, which looks terrible with a maximized modal */
.modal {
    padding-left: 0 !important;
}

.modal-content {
    border-radius: 0;
    border: 0;
    box-shadow: 0 5px 15px rgba(0,0,0,.5);
}

.modal-content, .modal-body, .modal-group {
    padding: 15px;
}

.modal-title {
    font-size: 18px;
}

.modal-header {
    margin-top: 15px;
}

.modal-header, .modal-footer {
    border: none;
}
/* collapse padding if necessary */
.modal-body + .modal-footer {
    padding-top: 0;
}

/* Move the full-dialog trigger to < 768px */
.modal-dialog {
    max-width: unset;
}

    /* Dialog options */
    .modal-dialog.modal-height-lg .modal-content:not(.modal-loading) {
        min-height: 650px;
    }

    /* Maximize option overrides them all */
    .modal-dialog.modal-maximize,
    .modal-dialog.modal-maximize.modal-lg {
        /* Maximize everything */
        max-width: 100%;
        width: 100%;
        height: 100%;
        margin: 0;
        /* Forcibly position the modal from the top-left corner */
        top: 0px !important;
        left: 0px !important;
    }

        .modal-dialog.modal-maximize > .modal-content {
            height: 100%;
            max-height: unset;
        }

        .modal-dialog.modal-maximize .card-scroll-all {
            max-height: calc(100vh - 149px);
        }
/* The default overflow creates a scrollbar under Chrome */
.modal-open .modal {
    overflow-x: hidden;
    overflow-y: hidden;
}
/*

@media (max-width: 1024px) {
    .draggable .modal-body iframe {
        width: 100%; 
        height: 480px;
    }

    .modal-backdrop {
      z-index: 0;
    }
}

@media (min-width: 1025px) {
    .draggable .modal-content {
        height: 650px;
    }

    .draggable .modal-body {
        position: absolute;
        bottom: 0;
        top: 50px;
        left: 15px;
        right: 15px;
    }

    .draggable .modal-footer {
        position: absolute;
        bottom: 15px;
        width: 100%;
        height: 50px;
    }

    .draggable .modal-body iframe { 
        width: 100%; 
        height: 100%;
    }
}*/

/*----------------------------------------------------------------
----CUSTOM VALIDATION
----------------------------------------------------------------*/
.alert {
    border-radius: 0;
    margin: 1em 0;
}

    .alert .small {
        font-size: 100%;
    }

.field-validation-valid {
    display: none;
}

.validation-summary-valid {
    display: none;
}

/* bootstrap 4 feedback set / reset */
.invalid-feedback {
    font-size: unset;
    color: #a94442;
}

/*has-success, has-warning and has-error bootstrap override for form-control - reset all bootstrap style*/
/* ??? */
/*.has-success .form-control,
.has-success .form-control:focus,
.has-warning .form-control,
.has-warning .form-control:focus,
.has-error .form-control,
.has-error .form-control:focus {
    border-color: #ccc;
    -webkit-box-shadow: inherit;
    box-shadow: inherit;
}
.has-success .input-group-addon,
.has-warning .input-group-addon, 
.has-error .input-group-addon {
    color: #555;
    background-color: #eee;
    border-color: #ccc;
}*/

/*has-success, has-warning and has-error bootstrap override for form-control - customization of all bootstrap style*/
.form-control.valid:not([disabled]):not([readonly]) {
    border-color: #3c763d;
    background-color: #ccffcc;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
}

.form-control.valid:focus:not([disabled]):not([readonly]) {
    border-color: #2b542c;
    background-color: #ccffcc;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #67b168;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #67b168;
}

.form-control.input-validation-error:not([disabled]):not([readonly]) {
    border-color: #eeb554;
    background-color: #ffffcc;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
}

.form-control.input-validation-error:focus:not([disabled]):not([readonly]) {
    border-color: #eeb554;
    background-color: #ffffcc;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #c0a16b;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #c0a16b;
}

.form-control.input-validation-error:not([disabled]):not([readonly]) {
    border-color: #a94442;
    background-color: #ffe5dc;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
}

.form-control.input-validation-error:focus:not([disabled]):not([readonly]) {
    border-color: #843534;
    background-color: #ffe5dc;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #ce8483;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #ce8483;
}

/*----------------------------------------------------------------
----MENU
----------------------------------------------------------------*/

/*  Change the breakpoint for hamburger menu (actual bootstrap version 3.3.7   
@media (max-width: 1024px) {
    .navbar-header {
        float: none;
    }
    .navbar-left,.navbar-right {
        float: none !important;
    }
    .navbar-toggle {
        display: block;
    }
    .navbar-collapse {
        border-top: 1px solid transparent;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
    }
    .navbar-fixed-top {
        top: 0;
        border-width: 0 0 1px;
    }
    .navbar-collapse.collapsed, .navbar-collapse.collapse{
        display: none!important;
    }
    .navbar-nav {
        float: none!important;
        margin-top: 7.5px;
    }
    .navbar-nav>li {
        float: none;
    }
    .navbar-nav>li>a {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .collapse.in{
        display:block !important;
    }

    .sidebar {
        margin-top: 0;
        position: inherit;
        width: 100%;
    }

    #page-wrapper {
        margin-left: 0;
    }

    .site-footer {
        left: 0 !important;
        -webkit-transform: none;
        -o-transform: none;
        transform: none;
    }
}
 */
/*
Le colonne nella row avranno la stessa altezza
    http://getbootstrap.com.vn/examples/equal-height-columns/
 */
.row-eq-height {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
}

/* 
    UTILITIES
*/

.img-thumbnail {
    padding: 2px;
    width: 50px;
    /* Gets in the way of the width above */
    max-width: unset;
    border-radius: 0;
    transition: border .2s ease-in-out;
}

    .img-thumbnail.xl {
        width: unset;
    }

    .img-thumbnail:hover {
        border: 1px solid #000000;
    }

.c-pointer {
    cursor: pointer
}

/*ALIGNMENT*/
.center {
    margin-left: auto;
    margin-right: auto;
}

.right {
    float: right;
    margin-left: 1rem;
}

/* opt-in override of full-width radio boxes at small resolution */
.radio-inline {
    display: inline-block;
    width: auto;
}

    .radio-inline, .radio-inline + label {
        vertical-align: middle;
    }

/* Template for editors */
.form-group.row > .col-form-label {
    padding-left: 0;
    padding-right: 0;
}

/* Sizing */
.w-min {
    width: 1px;
}

.input-sm {
    max-width: 100px;
}

.input-md {
    max-width: 200px;
}

.fa-fixed {
    width: 30px;
    text-align: center;
}
/* Transition disable */
.trn-none {
    transition: none !important;
}
/* Footer buttons positioning */
.button-footer-bottom > div {
    position: absolute;
    width: 100%;
    bottom: 0;
}

/* Links with zoomed in icons on hover */

a.zoomable-button, a.zoomable-button-ct {
    -moz-transition: transform 200ms ease-in;
    -o-transition: transform 200ms ease-in;
    -webkit-transition: transform 200ms ease-in;
    transition: transform 200ms ease-in;
}

    a.zoomable-button:hover, a.zoomable-button-ct:hover {
        transform: scale(1.4);
        transform-origin: center;
    }

a.zoomable-button, a.zoomable-button-ct {
    line-height: 0;
    margin-left: 9px;
    margin-right: 6px;
    margin-top: -2px;
    padding: 0;
}

a.zoomable-button {
    font-size: 16px;
}

    a.zoomable-button:focus, a.zoomable-button-ct:focus {
        outline: none;
    }

/* Custom button styles */

.btn-small {
    min-width: 7em;
}

.btn-small-fill {
    padding: 1px 5px;
    width: auto;
}

.btn-medium {
    min-width: 10em;
}

.btn-medium-fill {
    padding: 8px 12px;
    width: auto;
}

.btn-big {
    height: 50px;
    min-width: 15em;
}

.btn-new:before {
    display: inline-block;
    content: '+';
    padding-right: 7px;
}

.btn-remove:before {
    display: inline-block;
    content: '-';
}

/* */
.input-group-text.nb {
    border: 0;
    background: transparent;
}

/* Additional fa icons (based on 4.7.x) */
.fa-fork-item:before {
    content: "\f126";
    display: inline-block;
    transform: rotate(90deg);
}
