:root {
    --primary-color: #FFCB09;
    --secondary-color: #004380;
    
    --navbar-color: #F2F2F2;
}

body {
    margin: 0;
    font-family: "Rubik", sans-serif;
}

.dataTable > tbody {
    font-size: 13px;
}

.hiddenColumn {
    display: none;
}

.modal-xl {
    --bs-modal-width: 95%;
}



/*------------------- CUSTOM SERYPOINT -------------------*/
.login-box {
    background: url(../img/bgGestionale.jpg) no-repeat left top;
    background-size: cover;
}








/*body {
    background: url(../img/bgGestionale.jpg) no-repeat left top;
	background-size: cover;
	color: #FFF;
}



.btn-primary-serypoint {
    width: auto;
	padding: 7px 25px;
	border-radius: 10px;
	border: 1px solid transparent;
	color: #fff;
	background: #004380;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
}
.btn-primary-serypoint:hover {
    background-color: transparent;
    border: 1px solid #FFF;
}



.card {
    background-color: transparent; 
    border: 1px solid #FFF;
    border-radius: 10px;
}
.card-header {
    border-bottom: 1px solid #FFF;
}



.table-serypoint {
    color: #FFF;
    background-color: #08314A;
}
.table-serypoint tbody tr:hover td {
    color: #FFF;
}



.modal-serypoint {
    background-color: #08314A;
}*/





/*---------------- SIDEBAR ----------------*/
.sidebar {
    background-color: var(--navbar-color);
    min-height: 100vh;
    width: 200px;
    z-index: 99;
}
.sidebar.active {
    display: none;
}
.sidebar .sidebar-brand-wrapper {
    transition: width 0.25s ease, background 0.25s ease;
    -webkit-transition: width 0.25s ease, background 0.25s ease;
    -moz-transition: width 0.25s ease, background 0.25s ease;
    -ms-transition: width 0.25s ease, background 0.25s ease;
    width: 200px;
    height: 60px;
    text-align: center;
    background-color: var(--navbar-color);
}
.sidebar .nav {
    overflow: hidden;
    flex-wrap: nowrap;
    flex-direction: column;
    margin-bottom: 60px;
    padding-top: 20px;
}
.sidebar .nav .nav-item {
    -webkit-transition-duration: 0.25s;
    -moz-transition-duration: 0.25s;
    -o-transition-duration: 0.25s;
    transition-duration: 0.25s;
    transition-property: background;
    -webkit-transition-property: background;
    padding-right: 20px;
}
.sidebar .nav .nav-item .nav-link {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    white-space: nowrap;
    padding: 0.8rem 10px 0.8rem 1.188rem;
    color: var(--secondary-color);
    -webkit-transition-duration: 0.45s;
    -moz-transition-duration: 0.45s;
    -o-transition-duration: 0.45s;
    transition-duration: 0.45s;
    transition-property: color;
    -webkit-transition-property: color;
    height: 46px;
    border-radius: 0px 100px 100px 0px;
}
.sidebar .nav .nav-item .menu-icon {
    margin-right: 0.5rem;
    font-size: 23px;
    line-height: 1;
    background: rgba(108, 114, 147, 0.2);
    width: 35px;
    height: 35px;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
}

.sidebar .nav .nav-item .nav-link .menu-title {
    color: inherit;
    display: inline-block;
    font-size: 0.9375rem;
    line-height: 1;
    vertical-align: middle;
}

.sidebar .nav .nav-item.active > .nav-link {
    background: #CCC;
    position: relative;
}
        
.sidebar .nav .nav-item.active > .nav-link:before {
    content: "";
    width: 5px;
    height: 100%;
    background: var(--primary-color);
    display: inline-block;
    position: absolute;
    left: 0;
    top: 0;
}

.menu-notification-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px; /* si espande solo se serve */
    padding-top: 2px;
    border-radius: 999px; /* sempre arrotondato */
    background-color: #ff3333;
    color: #FFF;
    font-size: 14px;
    line-height: 1;
    margin-left: auto;
}


.sidebar .nav .nav-item.bottom {
    position: fixed;
    bottom: 10px;
    background-color: #F2F2F2;
}





.navbar {
    background-color: var(--navbar-color);
    left: 200px;
}
.navbar.active {
    left: 0;
}
.navbar .navbar-toggler {
    border: 0;
    color: #004380;
    border-radius: 0px;
    outline: none;
    height: 40px;
}





.container-scroller {
    display: flex;
    position: relative;
    overflow: hidden;
}
.page-body-wrapper {
    min-height: calc(100vh - 50px);
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    flex-direction: row;
    padding-left: 0;
    padding-right: 0;
    transition: all 0.25s ease;
    width: calc(100% - 200px);
}

.main-panel {
    transition: width 0.25s ease, margin 0.25s ease;
    width: 100%;
    min-height: calc(100vh - 70px);
    padding: 70px 20px 20px 20px;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
}



@media screen and (max-width: 768px) {
    .sidebar {
        position: fixed;
        max-height: calc(100vh - 50px);
        top: 50px;
        overflow: auto;
        display: none;
    }
    .navbar {
        left: 0;
    }
    .sidebar.active {
        display: block;
    }
    
    .page-body-wrapper {
        width: 100%;
    }
    .main-panel {
        margin-left: 0;
        width: 100%;
    }
}









/*---------------- DATATABLES EDITOR ----------------*/
.edit-success {
    background-color: #d1e7dd !important;
    transition: background-color 0.3s;
}









/*---------------- CHAT ----------------*/
.profile-img {
    border-radius: 50%;
    background-color: gray;
    width: 50px;
    height: 50px;
    margin-top: 4px;
    background: url(https://www.facebook.com/images/fb_icon_325x325.png);
    background-position: 50% 50%;
    background-size: cover;
}


.chat-sidebar{
    height:100%;
    display:flex;
    flex-direction:column;
}

.chat-list{
    overflow-y:auto;
    flex:1;
    text-align: center;
}

.chat-item{
    display:flex;
    align-items:center;
    padding:10px;
    cursor:pointer;
    border-bottom:1px solid #f1f1f1;
}

.chat-item:hover{
    background:#f8f9fa;
}

.chat-item.active{
    background:#e9ecef;
}

.chat-item img{
    width:42px;
    height:42px;
    border-radius:50%;
    margin-right:10px;
}

.chat-info{
    flex:1;
}

.chat-name {
    font-weight: bold;
}

.chat-name a {
    color: #000;
}

.chat-notification-badge {
    /*background-color: #1DAA61;
    color: #FFF;
    padding: 1px 8px;
    border-radius: 50%;*/
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px; /* si espande solo se serve */
    padding-top: 2px;
    border-radius: 999px; /* sempre arrotondato */
    background-color: #1DAA61;
    color: #FFF;
    font-size: 14px;
    line-height: 1;
}

.chat-top{
    display:flex;
    justify-content:space-between;
    font-size:14px;
}

.chat-bottom{
    display:flex;
    justify-content:space-between;
    font-size:13px;
    color:#666;
}

.chat-body{
    background-color: #F5F1EB;
}

.btn-chat {
    background-color: #1DAA61;
    color: #FFF;
}

.btn-new-chat {
    padding-right: 10px;
    padding-bottom: 6px;
}

.message-row{
    display:flex;
    margin-bottom:10px;
}

.message{
    max-width:70%;
    padding:8px 12px;
    border-radius:10px;
    font-size:14px;
    
}

.message-left{
    background-color: #FFF;
}

.message-right{
    background-color: #D9FDD3;
}

.message-center {
    background-color: #F8F9FA;
    font-size: 11px;
    color: #00000099;
    padding: 8px 8px 5px 8px;
}

.message-text {
    white-space: pre-line;
}

.message-sender {
    font-weight: bold;
    font-size: 12px;
    color: #004380;
}

.message-time{
    font-size:11px;
    color:#666;
    text-align:right;
    margin-top:4px;
}

.div-img-details {
    text-align: center;
}

.img-details {
    width: 100px;
}