:root {
	--funSider-w: #ffffff;
	--bodycolor-w: #f3f4f6;
	--widget-box-w: #ffffff;
	--widget-box-c: #42484e;
	--title-w: #42484e;
	--subtitle-w: #42484e;
}
body {
	background-color: var(--bodycolor);
}
#header {
    margin-top:-10px;
}
#search input[type=text], #search button {
	border: #fff;
}
#search input[type=text]:focus {
	color: #777777;
}
#sidebar > ul > li.active {
	background-color: transparent;
}
#sidebar > ul > li.active a {
	text-decoration:none;
}
#sidebar > ul > li > a > .label {
	background-color: transparent; transition: 0.6s; color: #87909d;
}
#sidebar > ul > li > a:hover .label {
	transform: rotate(0.25turn);
}
#sidebar > ul > li > a:hover {
	background-color: transparent; color: var(--funCont); text-shadow: 0 -1px 0 rgb(0 0 0 / 25%);
}
#sidebar > ul li ul {
    position: absolute;
    left: 235px;
    width: 100%;
    bottom: 15px;
    background-color: rgb(248 249 250 / 95%);
    border-radius: 6px;
    box-shadow: 5px 5px 15px rgb(0 0 0 / 25%);
}
#sidebar > ul li ul li a {
	color: #25233c;
    font-weight: 400;
    padding-left: 20px;
    font-size: 1.05em;
}
#sidebar > ul li ul li a:hover, 
#sidebar > ul li ul li.active a {
	color: #f5a907;
}
#search input[type=text] {
	background-color: #47515b; color: #f89b37; 
}
#search input[type=text]:focus {
	color: #2e363f; color: #fff; box-shadow:none;
}
.dropdown-menu li a:hover, .dropdown-menu .active a, .dropdown-menu .active a:hover {
    color: #eeeeee; background:#666;
   
}
.top_message{ 
	float:right; 
	padding:20px 12px; 
	position:relative; top:-13px; 
	border-left:1px solid #3D3A37; 
	font-size:14px; line-height:20px; 
	*line-height:20px; color:#333; 
	text-align:center;  
	vertical-align:middle; cursor:pointer; 
}
.top_message:hover{ background:#000}
.rightzero{ right:0px; display:none;}

@media (max-width: 480px) {
    .cardBox {
    	grid-template-columns: repeat(2,1fr);
    	grid-gap: 13px;
    	margin-bottom: 0;
    }
    .cardHeader h6 {
        font-size: 16px; 
    }
    
    .navigation {
        width: 100%;
        left: -100%;
        z-index: 1000;
    }
    .navigation.active {
        width: 100%;
        left: 0;
    }
    .toggle {
        z-index: 10001;
    }
    .main.active .toggle {
        color: #fff;
    }
    
    /* Melhorias para responsividade do painel mine */
    #content {
        width: 100%;
        margin-left: 0; 
        padding: 10px;
        box-sizing: border-box;
    }
    
    #sidebar {
        width: 100%;
        position: fixed;
        z-index: 1000;
        left: -100%;
        transition: all 0.3s ease;
    }
    
    #sidebar.active {
        left: 0;
    }
    
    .widget-box {
        margin-bottom: 15px;
        overflow-x: auto;
    }
    
    .widget-title h5 {
        font-size: 14px;
    }
    
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Ajustes para o calendário */
    #calendario-simples {
        margin: 5px !important;
        padding: 5px !important;
    }
    
    .calendario-header {
        flex-direction: column;
        align-items: center;
    }
    
    .calendario-header button {
        margin-bottom: 10px;
    }
    
    #calendario-dias td {
        padding: 5px;
        font-size: 12px;
    }
    
    .legenda-calendario {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .legenda-item {
        margin: 5px;
        width: 45%;
    }
    
    /* Ajustes para os modais */
    .modal {
        width: 90%;
        left: 5%;
        margin-left: 0;
    }
    
    .modal-body {
        max-height: 300px;
    }
}

@media (min-width: 481px) and (max-width: 767px) {
	#sidebar > ul ul:before {
	}
	#sidebar > ul ul:after {
		border-right: 6px solid #222222;
    }
	.quick-actions_homepage .quick-actions li{ min-width:47%;}
    
    /* Ajustes para tablets */
    #content {
        width: 100%;
        margin-left: 0;
        padding: 15px;
        box-sizing: border-box;
    }
    
    #sidebar {
        width: 50%;
        position: fixed;
        z-index: 1000;
        left: -50%;
        transition: all 0.3s ease;
    }
    
    #sidebar.active {
        left: 0;
    }
    
    .widget-box {
        margin-bottom: 15px;
    }
    
    .modal {
        width: 80%;
        left: 10%;
        margin-left: 0;
    }
}

@media (min-width: 768px) and (max-width: 970px) {
    .quick-actions_homepage .quick-actions li { 
        min-width:20.5%;
    }
}

div.tagsinput { border:1px solid #CCC; background: #FFF; padding:5px; width:300px; height:100px; overflow-y: auto;}
div.tagsinput span.tag { border: 1px solid #a5d24a; -moz-border-radius:2px; -webkit-border-radius:2px; display: block; float: left; padding: 5px; text-decoration:none; background: #cde69c; color: #638421; margin-right: 5px; margin-bottom:5px;font-family: helvetica;  font-size:13px;}
div.tagsinput span.tag a { font-weight: bold; color: #82ad2b; text-decoration:none; font-size: 11px;  } 
div.tagsinput input { width:80px; margin:0px; font-family: helvetica; font-size: 13px; border:1px solid transparent; padding:5px; background: transparent; color: #000; outline:0px;  margin-right:5px; margin-bottom:5px; }
div.tagsinput div { display:block; float: left; } 
.tags_clear { clear: both; width: 100%; height: 0px; }
.not_valid {background: #FBD8DB !important; color: #90111A !important;}
