/*
    color toggle bar: color navbar: rgb(0, 63, 128), #2b2b2c, #787879, green: rgb(30, 126, 0), rosso: #ff0000
    font-awesome: 
    box-shadow: https://html-css-js.com/css/generator/box-shadow/

*/
@import "https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700";

body {
    font-family: "Poppins", sans-serif;
    background: #fafafa;
}

#overlay {
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 320px;
    transition: all 3s;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 2;
    cursor: pointer;
  }

p {
    font-family: "Poppins", sans-serif;
    font-size: 1.1em;
    font-weight: 300;
    line-height: 1.7em;
    color: #999;
}

a,
a:hover,
a:focus {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s;
}

.navbar {
    padding: 15px 10px;
    background: #fff;
    border: none;
    border-radius: 0;
    margin-bottom: 40px;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar-btn {
    box-shadow: none;
    outline: none !important;
    border: none;
}

.line {
    width: 100%;
    height: 1px;
    border-bottom: 1px dashed #ddd;
    margin: 40px 0;
}

/* ---------------------------------------------------
    SIDEBAR STYLE
----------------------------------------------------- */

.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
    perspective: 1500px;
}

#logo {
    margin: 15px auto;
    display: block;
    width: 350px;
    text-align: center;
}

#logo_sidebar {
    margin: 15px auto;
    display: block;
    width: 120px;
    width: 120px;
	overflow: hidden;
    text-align: center;
}

#sidebar {
    min-width: 320px;
    max-width: 320px;
    background: #14202e;/*#242323*/
    color: #fff;
    transition: all 0.6s cubic-bezier(0.945, 0.02, 0.27, 0.665);
    transform-origin: bottom left;
}

#sidebar.active {
    margin-left: -320px;
    transform: rotateY(100deg);
}

#sidebar .sidebar-header {
    padding: 20px;
    background: #14202e;
    border-bottom: 1px solid #555;
    text-align: center;
}

#sidebar ul.components {
    padding: 20px 0;
    margin-left: 10px; /* 5 NOVEMBRE */
    border-bottom: 1px solid #555;
}

#sidebar ul p {
    color: #fff;
    padding: 10px;
}

#sidebar ul li a {
    padding: 10px;
    font-size: 1.1em;
    display: block;
    color: #ffffff;
}

#sidebar ul li a:hover {
    color: #fff;
    background: #111;
}

#sidebar ul li.active > a,
a[aria-expanded="true"] {
    color: #fff;
    background: #333;
}

a[data-toggle="collapse"] {
    position: relative;
}

/*
    .dropdown-toggle::after {
    display: block;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}
*/

.caret-menu::after {
    position: absolute;
    top: 50%;
    right: 20px;
}

ul ul a {
    font-size: 0.9em !important;
    padding-left: 30px !important;
    background: #14202e;
}

ul.CTAs {
    padding: 20px;
}

ul.CTAs a {
    text-align: center;
    font-size: 0.9em !important;
    display: block;
    border-radius: 5px;
    margin-bottom: 5px;
}

a.download {
    background: #fff;
    color: #242424;
}

a.article,
a.article:hover {
    background: #6d7fcc !important;
    color: #fff !important;
}

/* ---------------------------------------------------
    CONTENT STYLE
----------------------------------------------------- */
#content {
    max-width: 100%; /* 5 NOVEMBRE */
    padding: 20px;
    min-height: 100vh;
    transition: all 0.3s;
}

#sidebarCollapse {
    margin-top: 10px;
    padding-left: 4px;
    width: 40px;
    height: 40px;
    border-radius: 0px 10px 10px 0px;
    background: #003871;
    cursor: pointer;
}

#sidebarCollapse span {
    width: 80%;
    height: 2px;
    margin: 0 auto;
    display: block;
    background: #fff;
    transition: all 0.8s cubic-bezier(0.810, -0.330, 0.345, 1.375);
    transition-delay: 0.2s;
}

#sidebarCollapse span:first-of-type {
    transform: rotate(45deg) translate(2px, 2px);
}

#sidebarCollapse span:nth-of-type(2) {
    opacity: 0;
}

#sidebarCollapse span:last-of-type {
    transform: rotate(-45deg) translate(1px, -1px);
}

#sidebarCollapse.active span {
    transform: none;
    opacity: 1;
    margin: 5px auto;
}

#sidebarCollapse.active {
    position: relative;
    transition: all 0.3s;
}

/* ---------------------------------------------------
    MEDIAQUERIES
----------------------------------------------------- */
@media (max-width: 768px) {
    #sidebar {
        margin-left: -320px; /* 5 NOVEMBRE */
        transform: rotateY(90deg);
    }
    #sidebar.active {
        margin-left: 0;
        transform: none;
        position: absolute;
        z-index: 99;
        height: 100%;
    }
    
}

/* ---------------------------------------------------
    BUTTONS
----------------------------------------------------- */

a.btn-a {
    background: rgb(0, 63, 128);
    color: #dfd9d9 !important;
    margin-bottom: 30px;
}

a.btn-a:hover {
    background: #003871 !important;
    color: #fff !important;
}

a.btn-b {
    background: #ff0000;
    color: #dfd9d9 !important;
}

a.btn-b:hover {
    background: #d90000 !important;
    color: #fff !important;
}

.btn-c,
.btn-c:visited {
    background: #003871;
    color: #dfd9d9 !important;
}

.btn-c:hover {
    background: #003871 !important;
    color: #fff !important;
}

.btn-modal {
    background: rgb(0, 63, 128);
    color: #fff !important;
}

.btn-modal:hover {
    background: rgb(30, 126, 0);
    color: #fff !important;
}

.modulo-modale {
    padding: 20px;
}

.nav-link {
    color: #2d7bc9 !important;
}

.nav-link:hover {
    color: #032547 !important;
}

/* ---------------------------------------------------
    SECTIONS
----------------------------------------------------- */

#content {
    width: 100%;
    padding: 20px;
    min-height: 100vh;
}

.card {
    width: 100%;
    top: 10px;
    margin: 10px 20px 20px 0px;
}

#card-shadow {
    -webkit-box-shadow: 5px 5px 15px 5px rgba(0, 0, 0, 0.2);
    box-shadow: 5px 5px 15px 5px rgba(0, 0, 0, 0.2);
}

.card-zoom {
    transition: 0.9s ease;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.card-zoom:hover {
    transform: scale(1.05);
}

.img-provv {
    max-width: 25%;
    margin: 30px 0;
}

/* ---------------------------------------------------
    VISUALIZZAZIONE ERRORI CON NEW LINE NEL DATAGRID
----------------------------------------------------- */
.dx-datagrid .dx-error-row .dx-error-message {
    white-space: pre-wrap;
}
.dx-toast-message {
    white-space: pre-wrap;
}

/* ---------------------------------------------------
    LARGHEZZA MASSIMA PER NOME FILE UPLOAD NEL DATAGRID
----------------------------------------------------- */
.filename-maxwidth {
    max-width: 200px;
}

/* ---------------------------------------------------
   COLORE BUTTON UPLOAD
----------------------------------------------------- */
.dx-fileuploader-button.dx-widget {
    background-color: #5cb85c;
    border-color: transparent;
    color: #fff;
}
.dx-fileuploader-button.dx-widget.dx-state-hover {
    background-color: #46a046;
    border-color: transparent;
}
.dx-fileuploader-button.dx-widget.dx-state-focused {
    background-color: #5cb85c;
    border-color: transparent;
    color: #fff;
}

/* ---------------------------------------------------
    COLORE FILTRO DATAGRID
--------------------------------------------------- */
.dx-header-filter {
    color: black !important;
}

.dx-header-filter-empty {
    color: rgba(149, 149, 149, 0.5) !important;
} 