html,
body {
    height: 100%;
}

.wrap {
    min-height: 100%;
    height: auto;
    margin: 0 auto -60px;
    padding: 0 0 60px;
}

.wrap > .container {
    padding: 70px 15px 20px;
}

.footer {
    height: 60px;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.jumbotron {
    text-align: center;
    background-color: transparent;
}

.jumbotron .btn {
    font-size: 21px;
    padding: 14px 24px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    padding-left: 5px;
}

a.asc:after {
    content: /*"\e113"*/ "\e151";
}

a.desc:after {
    content: /*"\e114"*/ "\e152";
}

.sort-numerical a.asc:after {
    content: "\e153";
}

.sort-numerical a.desc:after {
    content: "\e154";
}

.sort-ordinal a.asc:after {
    content: "\e155";
}

.sort-ordinal a.desc:after {
    content: "\e156";
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding: 15px;
    border: none;
}

@media (max-width: 767px) {
    .nav li > form > button.logout {
        display: block;
        text-align: left;
        width: 100%;
        padding: 10px 15px;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.action-size {
    font-size: 15px;
}

.text-icon {
    font-size: 8px;
    position: absolute;
    top: 32px;
    left: 15px;
}

/* DA USARE QUANDO PROVI A METTERE READONLY A TRUE NELLE SELECT E NON FUNZIONA*/
select[readonly].select2-hidden-accessible + .select2-container {
    pointer-events: none;
    touch-action: none;
}

select[readonly].select2-hidden-accessible + .select2-container .select2-selection {
    background: #eee;
    box-shadow: none;
}

select[readonly].select2-hidden-accessible + .select2-container .select2-selection__arrow, select[readonly].select2-hidden-accessible + .select2-container .select2-selection__clear {
    display: none;
}

.container-browse span {
    display: block !important;
}

@media only screen and (max-width: 760px),
(min-device-width: 768px) and (max-device-width: 1024px) {
    a > .label-info {
        margin-right: 1rem;
    }
}

@media only screen and (max-width: 760px),
(min-device-width: 768px) and (max-device-width: 1024px) {
    .title-subs {
        display: flex;
        margin-top: 10px;
    }
}

@media only screen and (max-width: 760px),
(min-device-width: 768px) and (max-device-width: 1024px) {

    /* Force table to not be like tables anymore */
    table.custom-table-responsive, table.custom-table-responsive thead, table.custom-table-responsive tbody, table.custom-table-responsive th, table.custom-table-responsive td, table.custom-table-responsive tr {
        display: block;
    }

    /* Hide table headers (but not display: none;, for accessibility) */
    table.custom-table-responsive thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    table.custom-table-responsive tr {
        border: 1px solid #ccc;
    }

    table.custom-table-responsive td:not(.empty) {
        /* Behave  like a "row" */
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        text-align: right !important;
        display: flex;
        justify-content: flex-end;
    }

    table.custom-table-responsive td:not(.two-rows-responsive) {
        min-height: 4rem;
    }

    table.custom-table-responsive td:before {
        /* Now like a table header */
        position: absolute;
        /* Top/left values mimic padding */
        top: 6px;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: break-spaces;
        word-wrap: break-word;
        text-align: left;
    }

    .height-50-xs {
        height: 50px !important;
    }

    .height-60-xs {
        height: 60px !important;
    }

    td.no-description-xs:before {
        content: "" !important;
    }

    .md-responsive {
        width: 55%;
        word-break: keep-all;
        float: right;
        white-space: break-spaces !important;
        word-wrap: break-word;
    }

    .lmd-responsive {
        width: 65%;
        margin-left: 35%;
        word-break: keep-all;
    }

    .xs-responsive {
        width: 60%;
        margin-left: 40%;
        word-break: keep-all;
    }

    .td-md-responsive {
        justify-content: end !important;
        display: flex !important;
        white-space: break-spaces !important;
    }

    .container-subs {
        display: table-row !important;
    }

    .container-subs a {
        margin-bottom: 15px;
    }

    .height-auto-xs {
        height: auto !important;
        min-height: 32px !important;
    }

    .d-none-xs {
        display: none !important;
    }

    .td-md-grid-responsive {
        height: auto !important;
        white-space: break-spaces !important;
        word-break: break-all;
    }

    .two-rows-responsive {
        min-height: 6rem;
    }

}

@media only screen and (max-width: 760px),
(min-device-width: 768px) and (max-device-width: 1024px) {

    table.custom-grid-table-responsive, table.custom-grid-table-responsive thead, table.custom-grid-table-responsive tbody, table.custom-grid-table-responsive th, table.custom-grid-table-responsive td, table.custom-grid-table-responsive tr {
        display: block;
    }

    table.custom-grid-table-responsive thead tr:first-child td:before {
        content: '';
    }

    table.custom-grid-table-responsive thead tr:first-child {
        margin-bottom: 2rem;
    }

    table.custom-grid-table-responsive thead #w0-filters td:before {
        position: absolute;
        top: -2rem;
        width: 100%;
    }

    table.custom-grid-table-responsive thead #w0-filters td {
        border-bottom: 0px !important;
        margin-bottom: 2rem;
    }

    table.custom-grid-table-responsive thead tr:nth-child(2) {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    table.custom-grid-table-responsive tr {
        border: 1px solid #ccc;
    }

    table.custom-grid-table-responsive td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
        text-align: right !important;
        font-size: 1.5rem !important;
    }

    table.custom-table-responsive td:not(.two-rows-responsive) {
        min-height: 4rem;
    }

    table.custom-grid-table-responsive td:not(.empty):before {
        position: absolute;
        top: 6px;
        left: 6px;
        padding-right: 10px;
        white-space: break-spaces;
        word-wrap: break-word;
        text-align: left;
    }

    table.custom-grid-table-responsive td:not(.empty):not(.td-xs-grid-responsive):before {
        width: 45%;
    }

    table.custom-grid-table-responsive .xs-grid-responsive:before {
        width: 60% !important;
    }

    .td-md-grid-responsive {
        justify-content: end !important;
        display: flex !important;
        height: auto !important;
        min-height: 32px !important;
        white-space: break-spaces !important;
    }

    .td-md-grid-responsive {
        height: auto !important;
        white-space: break-spaces !important;
        word-wrap: break-word;
    }

    .md-grid-responsive {
        width: 55%;
        word-break: keep-all;
        float: right;
    }

    .xs-grid-responsive {
        width: 40%;
        word-break: keep-all;
        float: right;
    }

    .kv-table-wrap tr > td:first-child {
        margin-top: 0px;
        border-top: none;
    }

    .panel-footer, .kv-panel-after {
        display: none;
    }

    table.custom-grid-table-responsive tbody tr td {
        min-height: 4rem;
    }

}

.empty {
    width: 100%;
    text-align: center;
    overflow: auto;
}

input.select2-search__field {
    width: 100% !important;
}

body {
    font-size: 16px;
}

.checkbox-lg {
    width: 28px;
    height: 28px;
}

.custom-swal-content {
    font-size: 1.6rem !important;
}

.custom-swal-title {
    font-size: 2.5rem !important;
}

.custom-swal-button {
    font-size: 1.3rem !important;
}


@media only screen and (max-width: 760px),
(min-device-width: 768px) and (max-device-width: 1024px) {

    .table-responsive table thead tr th {
        min-width: 150px;
    }

}

.overflow-auto {
    overflow: auto;
}

.summary-table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 0px;
}

.summary-table th, .summary-table td {
    border: 1px solid black !important;
    padding: 8px;
    text-align: left;
}

.m-2 {
    margin: 2px;
}

.btn-pre-sub {
    background-color: #4a4a4a;
    color: white;
}

.btn-pre-sub:hover {
    background-color: #262626;
    color: white;
}

.w-full {
    width: 100%;
}

.show-statistic, .show-filters {
    float: right;
    margin-top: 2px;
    margin-right: 4px;
}

table.color-rows-alternatives tbody tr:nth-child(even) {
    background-color: #f2f2f2; /* Colore grigio chiaro */
}