:root {
    --forte-color-primary: #004D80;
    --forte-color-primary-active: #36C2CF;
    --forte-color-button: #617AE1;
    --forte-color-label: #0066AA;
    --forte-color-main-background: #EFF1F8;
}

html {
    font-size: 1rem!important;
}

body {
    background-color: var(--forte-color-main-background);
    color: var(--forte-color-primary);
    font-size: 1rem!important;
    font-family: 'LatoRegular', 'Lucida Grande', 'Lucida Sans Unicode', Helvetica, sans-serif !important;
    line-height: 1.7rem;
}

.god_mode-banner {
    text-align: center;
    font-weight: bold;
    padding: 12px;
    background: red;
    color: white;
    font-size: 16px;
    z-index: 9999;
}

.god_mode-bg {
    background: repeating-linear-gradient(
            45deg,
            rgba(255, 0, 0, 0.15),
            rgba(255, 0, 0, 0.15) 20px,
            rgba(255, 255, 0, 0.15) 20px,
            rgba(255, 255, 0, 0.15) 40px
    );
    min-height: 100vh;
    border: 5px solid red;
    animation: god_mode-blink 1.5s infinite;
}

@keyframes god_mode-blink {
    0% { border-color: red; }
    50% { border-color: yellow; }
    100% { border-color: red; }
}

.tab-content {
    background: #fcfcfc;
    padding: 15px;
    -moz-box-shadow: 0 3px 0 rgba(12,12,12,0.03);
    -webkit-box-shadow: 0 3px 0 rgba(12,12,12,0.03);
    box-shadow: 0 3px 0 rgba(12,12,12,0.03);
    -moz-border-radius: 0 0 3px 3px;
    -webkit-border-radius: 0 0 3px 3px;
    border-radius: 0 0 3px 3px;
    width: 100%;
}

.content-menu {
    background: #d8dbde;
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 49px;
    border: 0 none;
    border-radius: 3px 3px 0 0;
}

.contentpanel {
    padding: 20px;
    position: relative;
}

.pageheader {
    padding: 15px;
    border-top: 1px solid #eee;
    background: #f7f7f7;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pageheader a {
    text-decoration: none;
}
.pageheader a:hover {
    text-decoration: underline;
}

.pageheader .breadcrumb {
    background: none;
    display: inline-block;
    padding: 0;
}

.pageheader .breadcrumb-wrapper .label {
    color: #999;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: normal;
    display: inline-block;
}

.pageheader .breadcrumb li {
    font-size: 12px;
    display: inline-block;
}

.pageheader .breadcrumb li.active {
    color: #333;
}

.pageheader h2 span {
    font-size: 13px;
    text-transform: none;
    color: #999;
    font-style: italic;
    vertical-align: middle;
    letter-spacing: 0;
}

.pageheader h2 {
    font-size: 28px;
    letter-spacing: -0.5px;
    margin: 0;
}

.pageheader h2 span::before {
    content: '/';
    margin: 0 10px 0 5px;
    color: #ccc;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group .control-label {
    margin-top: 3px;
}

.form-control {
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    padding: 10px;
    height: auto;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;
    font-size: 13px;
    display: block;
    width: 100%;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.forte-bg-disabled {
    background-color: #e9ecef;
    opacity: 1;
}

.forte-login-section {
    background-color: white;
    border-radius: 5px;
    padding: 1rem 1rem;
    box-shadow: 0 0 10px 3px #a8a8a8;
    margin: 1rem 0;
}

.forte-login-section-header {
    margin-top: 0;
    margin-bottom: 1rem;
}

.forte-section {
    background-color: white;
    border-radius: 5px;
    padding: 1rem 1rem;
    box-shadow: 0 0 10px 3px #a8a8a8;
}

.forte-title {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.875rem;
}

.forte-icon {
    font-size: 1.4rem !important;
    width: 26px;
}

#forte-sidebar-left {
    width: 16%;
    min-height: 100vh;
    position: fixed;
    background-color: var(--forte-color-primary);
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1040;
    color: white;
    font-size: 1.1rem;
    display: flex;
    flex-direction: column;
}

#forte-sidebar-left .forte-menu-item {
    color: white;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    height: 3em;
    padding: .7em .7em;
}

#forte-sidebar-left .forte-menu-item:hover,
#forte-sidebar-left .forte-menu-item.active{
    color: var(--forte-color-primary);
    background-color: var(--forte-color-main-background);
}

#forte-sidebar-left .forte-menu-item .forte-text {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

#forte-sidebar-left .forte-user-item .forte-user-logo {
    color: var(--forte-color-primary);
    background-color: var(--forte-color-main-background);
    width: auto;
    border-radius: 50%;
    padding: .3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
}
#forte-sidebar-left .forte-user-item:hover .forte-user-logo,
#forte-sidebar-left .forte-user-item.active .forte-user-logo {
    color: var(--forte-color-main-background);
    background-color: var(--forte-color-primary);
}
#forte-sidebar-left .forte-user-item .forte-user-logo::after {
    content: "";
    padding-bottom: 100%;
    display: block;
}

#forte-main-content-panel {
    margin-left: 16%;
    padding: 1rem;
    background-color: var(--forte-color-main-background);
}

.badge-audit-filter {
    border-radius: 1rem;
    background-color: lightgray;
}
.badge-audit-filter:hover {
    background-color:gray;
}
.badge-audit-filter-active {
    background-color: var(--forte-color-label) !important;
}
.badge-audit-filter-active:hover {
    background-color: var(--forte-color-label) !important;
}

.bg-alert-danger {
    background-color: #f8d7da;
    border-color: #f8d7da;
}

.bg-alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.forte-bg-primary {
    background-color: var(--forte-color-primary)!important;
}

.forte-bg-primary-active {
    background-color: var(--forte-color-primary-active);
}

.forte-text-primary {
    color: var(--forte-color-primary);
}

.forte-text-primary-active {
    color: var(--forte-color-primary-active);
}

.content-menu,
.content-menu .nav-tabs > li > a{
    background-color: var(--forte-color-primary);
    color: white;
    text-decoration: none;
}

.content-menu .nav-tabs > li > a:hover{
    text-decoration: underline;
}

.forte-navbar-with-badges a{
    text-decoration: none;
}
.forte-navbar-with-badges a:hover{
    text-decoration: underline;
}

/* Override bootstrap */
.badge-primary {
    background-color: var(--forte-color-primary);
    color: white;
}
.badge-primary-active {
    background-color: var(--forte-color-primary-active);
    color: var(--forte-color-primary);
}
.badge-main-background {
    background-color: var(--forte-color-main-background);
    color: var(--forte-color-primary);
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: var(--forte-color-primary-active);
}

a {
    color: var(--forte-color-button);
}

.nav-tabs > li > a {
    color: var(--forte-color-primary);
    border: 0;
    border-right-color: currentcolor;
    border-right-style: none;
    border-right-width: 0px;
    padding: 14.4px 20px 15.4px;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
    background-color: var(--forte-color-primary-active);
    color: var(--forte-color-primary);
}

.descrizione-show-more-or-less-container {
    position: relative;
}

#showMoreOrLessText {
    display: none;
}
#showMoreOrLessText:checked ~ div {
    height: 100%;
    padding-bottom: 30px;
}
#showMoreOrLessText:checked + label:after {
    content: "Mostra meno";
}

#showMoreOrLessTextAlt {
    display: none;
}
#showMoreOrLessTextAlt:checked ~ div {
    height: 100%;
    padding-bottom: 30px;
}
#showMoreOrLessTextAlt:checked + label:after {
    content: "Mostra meno";
}

.descrizione-show-more-or-less-container label {
    position: absolute;
    bottom: 0;
    margin-bottom: 0 !important;
    background-color: rgba(252,252,252,0.9);
    backdrop-filter: blur(5px);
    padding-top: 2px;
    text-decoration: underline;
    cursor: pointer;
    width: 100%;
}
.descrizione-show-more-or-less-container label:after {
    content: "Continua a leggere"
}
.descrizione-show-more-or-less-text {
    height: 50px;
    overflow: hidden;
}

.disabled-with-error {
    pointer-events: unset!important;
    cursor: not-allowed!important;
}


@media all and (max-width: 1200px) {
    #logo-forte-top-left {
        width: 100%;
    }
}