

/* ----------------------- BM NEW -------------------------*/

:root {
	/* variables: */
	--portia-blue: #006bab;
	--lighter-gray:#f0f2f5;
	--light-gray: #ADB5BD;
	--dark-gray:#495057;

	--blue-light-color: color-mix(in srgb, var(--portia-blue) 40%, white);
	
	--primary-font: "Roboto", Helvetica, Arial, sans-serif;	
  }

 /*#container_fluid{ overflow-x: hidden;}*/


.background-color-blue{
	background-color:var(--portia-blue)!important;}

.text-color-blue{
	color:var(--portia-blue)!important;}



body {
	font-family: var(--primary-font);
	color:var(--bs-secondary);
	background-color:var(--lighter-gray);
}  

.container {
	padding-right: 1.5rem;
    padding-left: 1.5rem;
}



small {
	font-size: 80%;
	font-weight: 400;
}


a:hover {
    color: var(--bs-dark);
}

.btn {	
	font-size: 0.75rem;	
	box-shadow: 0 3px 3px 0 rgba(52, 71, 103, 0.15), 0 3px 1px -2px rgba(52, 71, 103, 0.2), 0 1px 5px 0 rgba(52, 71, 103, 0.15);
}



.btn-portia-blue{
	background-color: var(--portia-blue)!important;
	border-color: var(--portia-blue)!important;
	color: white!important;
	outline: none !important; }
	
.btn-portia-blue:hover{
	background-color: color-mix(in srgb, var(--portia-blue) 80%, #040404)!important;
	border-color: color-mix(in srgb, var(--portia-blue) 80%, #040404)!important;
	color: white!important;}



.btn-red{
	background-color: var(--bs-danger)!important;
	border-color: var(--bs-danger)!important;
	color: white!important;
	outline: none !important; } 
.btn-red:hover{
	background-color: color-mix(in srgb, var(--bs-danger) 80%, #040404)!important;
	border-color: color-mix(in srgb, var(--bs-danger) 80%, #040404)!important;
	color: white!important;}


.btn-green{
	background-color: var(--bs-success)!important;
	border-color: var(--bs-success)!important;
	color: white!important;
	outline: none !important; } 
.btn-green:hover{
	background-color: color-mix(in srgb, var(--bs-success) 80%, #040404)!important;
	border-color: color-mix(in srgb, var(--bs-success) 80%, #040404)!important;
	color: white!important;}


.btn-gray{
	background-color: var(--bs-secondary)!important;
	border-color: var(--bs-secondary)!important;
	color: white!important;
	outline: none !important; }
.btn-gray:hover{
	background-color: color-mix(in srgb, var(--bs-secondary) 80%, #040404)!important;
	border-color: color-mix(in srgb, var(--bs-secondary) 80%, #040404)!important;
	color: white!important;}


.btn-custom-dark{
	background-color: var(--bs-dark)!important;
	border-color: var(--bs-dark)!important;
	color: white!important;
	outline: none !important; }
.btn-custom-dark:hover{
	background-color: color-mix(in srgb, var(--bs-dark) 80%, #040404)!important;
	border-color: color-mix(in srgb, var(--bs-dark) 80%, #040404)!important;
	color: white!important;}


.btn-white{
	background-color: white!important;
	border-color: white!important;
	color: var(--bs-dark)!important;
	outline: none !important; }
.btn-white:hover{
	background-color: color-mix(in srgb, white 90%, #040404)!important;
	border-color: color-mix(in srgb, white 90%, #040404)!important;
	color: var(--bs-dark)!important;
	box-shadow: 0 3px 3px 0 rgba(52, 71, 103, 0.15), 0 3px 1px -2px rgba(52, 71, 103, 0.2), 0 1px 5px 0 rgba(52, 71, 103, 0.15);}




.form-control, .form-select{
	font-size: 0.875rem;
	color:var(--dark-gray);
}


input:focus:not([role="switch"]):not([type="submit"]), textarea:focus{
	transition: 0s ease !important;
    outline: none !important;
    border-radius: 4px !important;
    border: 1px solid var(--portia-blue) !important;
    -webkit-box-shadow: 0 0 0 2px var(--blue-light-color) !important;
    box-shadow: 0 0 0 2px var(--blue-light-color) !important;
    background-color: white !important;
}


.logo-horizontal-white {
	width: 180px;
	height: 52px;
	background-image: url('../images/logo_new_horizontal.svg');
	background-size: contain;
	background-repeat: no-repeat;
	filter: brightness(0) saturate(100%) invert(100%) sepia(6%) saturate(0%) hue-rotate(70deg) brightness(108%) contrast(108%);
  }

  .logo-navigation {
	width: 120px;
	height: 35px;
	background-image: url('../images/logo_new_horizontal.svg');
	background-size: contain;
	background-repeat: no-repeat;
	/*filter: brightness(0) saturate(100%) invert(53%) sepia(19%) saturate(415%) hue-rotate(193deg) brightness(91%) contrast(86%);*/
	filter: brightness(0) saturate(100%) invert(23%) sepia(36%) saturate(669%) hue-rotate(177deg) brightness(98%) contrast(87%);
  }

  .language-active{
	border: 3px solid white; 
    border-radius: 50%; 
    box-shadow: 0 0 0 4px var(--portia-blue); 
    background-color: transparent; 
}


/* SIDENAV: */
.logo-sidenav {
	width: 120px;
    height: 35px;
	background-image: url('../images/logo_new_horizontal.svg');
	background-size: contain;
	background-repeat: no-repeat;
	filter: brightness(0) saturate(100%) invert(100%) sepia(6%) saturate(0%) hue-rotate(70deg) brightness(108%) contrast(108%);
  }

.sidenav {
    background-color: var(--portia-blue);
	color:rgba(255, 255, 255, 0.8);
	/*color: white;*/
 }

#sidenav-collapse-main{
	height: fit-content;
}

.sidenav-item-text{
	font-weight: 300;
	font-size: 0.9rem;
	color:rgba(255, 255, 255, 0.7);
	text-transform: uppercase;
	/*color: white;*/
}
.sidenav-item-div{
	padding: 0.2rem 0.8rem;
}
.sidenav-item-icon{
	font-size: 0.95rem;
	color:rgba(255, 255, 255, 0.4);
}
.sidenav .nav-link i {
	color:rgba(255, 255, 255, 0.7);
}

.sidenav.navbar .nav-link {
    font-size: 0.9rem;
}

.navbar-vertical.navbar-expand-xs .navbar-nav .nav-link {
	padding-top: 0.4rem;
	padding-bottom: 0.4rem;
	/*font-weight: 500;*/
}

.sidenav-header {
    height: 4rem;
}



/* active cell: */ 
.navbar-vertical .navbar-nav > .nav-item .nav-link.active{	
	background-color: rgba(199, 199, 199, 0.3);} 
.sidenav .collapse .nav-item .nav-link.active i {
	color: white!important;}
.sidenav .active .nav-link-text {
	color: white!important;}


/* scroll: */
.sidenav-custom-scroll{	
	max-height: calc(100% - 140px);	}	  
.navbar-vertical.navbar-expand-xs .navbar-collapse{
	/*overflow: auto !important;*/ }
.ps__rail-y {
	opacity: 1;
	width: 12px; }
.ps__rail-y.ps--clicking .ps__thumb-y {
    width: 8px; }

.sidenav-custom-scroll {
	position: relative!important;
	overflow: hidden!important;
}
.sidenav-custom-scroll + .sidenav-footer > div > #go_down{	
	display:flex!important;
	cursor: pointer;
}
.sidenav-custom-scroll:not(.ps--active-y) + .sidenav-footer > div > #go_down{
	display:none!important;
}


@media (min-width: 1199.98px){
	.g-sidenav-show:not(.rtl) .sidenav {
		transform: translateX(-17.125rem);
	}

	.g-sidenav-show.g-sidenav-pinned .sidenav {
		transform: translateX(0);
	}

	  .sidenav:hover {
		max-width: 15.625rem; }
	  .sidenav .sidenav-toggler {
		padding: 1.5rem; }
	  .sidenav.fixed-start + .main-content {
		margin-left: 17.125rem; }
	  .sidenav.fixed-end + .main-content {
		margin-right: 17.125rem; } 

	
	
		.main-content {
			margin-left: 0 !important;
		}
		
		.main-content-pinned{
			margin-left: 17.125rem !important;
		}
		
		
	}




/* TOP NAVBAR (after login): */
@media (min-width: 768px) { 
	.desktop-title{
		display: flex;
		align-items: center;
	}
	.mobile-title{
		display: none;
	}
 }  
 
 @media (max-width: 768px) {         
    .desktop-title{
		display: none;
	}
	.mobile-title{
		display: block;
	}
}


/* TABLES: */
.block-view{
	box-shadow: none;
    background-color: var(--bs-gray-200);
}

table, .font-md{
	font-size: 0.95rem;
}

.table thead th{
	padding: 0.75rem 0.5rem;
}

.item-table-action {   
    color: white !important;
    border-radius: 50% !important;
    font-size: 15px !important;
    border: none !important;
    height: 30px !important;
    width: 30px !important;
	box-shadow:none!important;
}


table a:not(.btn){
	text-decoration: underline;}
table a:not(.btn):hover{
	text-decoration: underline;}




.page-link.active, .active > .page-link{
background-color: var(--bs-secondary);
border-color: var(--bs-secondary);
color:white; 
}
.page-link.active:hover, .active > .page-link:hover{
background-color: color-mix(in srgb, var(--bs-secondary) 80%, #040404);
border-color: color-mix(in srgb, var(--bs-secondary) 80%, #040404);
color:white; 
}
.page-link:focus{
	box-shadow: none;
}
.page-item .page-link{
	border: 1px solid #d2d6da ;
	width: 32px;
	height: 32px;
}

thead > tr >* {
    color: #344767;}

.dt-left{text-align: start!important;}

.dt-right{text-align: end!important;}

thead{
	border-top: 0!important;
}

.table-sm > :not(caption) > * > * {
    padding: 0.25rem 0.5rem;
}

.table-top{
	border-bottom: 1px solid #d2d6da;}
.table-bottom{
	border-top: 1px solid #d2d6da;}	
.table-top-text{	
	align-items: center;
    height: min-content;
	font-size: 0.95rem;
}

.no-border-bottom{
	border-bottom-left-radius: 0px !important;
    border-bottom-right-radius: 0px !important;
}

 /* Custom striped rows for every 3 rows (basket) */
 .custom-striped tbody tr:nth-child(6n+1),
 .custom-striped tbody tr:nth-child(6n+2),
 .custom-striped tbody tr:nth-child(6n+3) {
	 background-color: rgba(0, 0, 0, 0.05);
 }


/* Custom striped2: 3rows dark, 1row light (pastorders) */
table.custom-striped-2:not(.ignore-out-striped) > tbody > tr > * { 
	padding: .5rem 0;
}
table.custom-striped-2:not(.ignore-out-striped) > tbody > tr:nth-child(4n-3) > *,
table.custom-striped-2:not(.ignore-out-striped) > tbody > tr:nth-child(4n-2) > *,
table.custom-striped-2:not(.ignore-out-striped) > tbody > tr:nth-child(4n-1) > *{
	padding: .5rem 0.3rem;
}
table.custom-striped-2:not(.ignore-out-striped) > tbody > tr:nth-child(4n-3),
table.custom-striped-2:not(.ignore-out-striped) > tbody > tr:nth-child(4n-2),
table.custom-striped-2:not(.ignore-out-striped) > tbody > tr:nth-child(4n-1) {
	background-color: #dee2e6;
	/*background-color: rgba(0, 0, 0, 0.075); */
	color:var(--bs-dark);	
}



/* Custom striped3: 2rows dark, 2rows light (pastorders) */
table.custom-striped-3.ignore-out-striped > tbody > tr:nth-child(4n+1),
table.custom-striped-3.ignore-out-striped > tbody > tr:nth-child(4n+2){
    background-color: rgba(0, 0, 0, 0.05); 
}
table.custom-striped-3.ignore-out-striped > tbody > tr >* { 
	padding: .5rem 0.5rem!important;
}


.custom-striped-2 thead tr > *,
.custom-striped-2 tfoot tr > *,
.custom-striped-3 thead tr > *,
.custom-striped-3 tfoot tr > *{
	background-color: white;
}

/* highlight hover custom-striped */
tbody tr.hover-group {
    background-color: var(--bs-table-hover-bg)!important;
}
/* highlight hover custom-striped-2 */
tbody tr.hover-group-2 {
    /*background-color: #dee2e6!important;*/
	background-color:color-mix(in srgb, #dee2e6 96%, var(--portia-blue))!important;
}



.btn-select:after{
	display: inline-block;
    transform-origin: center;
	content: "\f107";
	font: normal normal normal 14px / 1 FontAwesome;
	border: none;
	vertical-align: middle;
	font-weight: 600;
	transition: 0.3s ease;
	margin-left: 0.2rem;
}
.btn-select[aria-expanded="true"]:after{
	transform: rotate(180deg);
}


 tfoot{
	border-bottom: none;
}
 tfoot > tr > *{
	border-top: 1px solid #d2d6da !important;
	border-bottom: none;
	color:#344767;
	
 }

 td {border-bottom: 0!important;}


/* FILTERS: */
#navbar_filter{
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
background-color: #f8f9fa !important;}

.input-border{
	border: 1px solid #d2d6da !important;}

.filter-title{
	font-size: 13px!important;
    color: var(--bs-secondary)!important;
	letter-spacing: 0;
    text-transform: uppercase;
	font-weight: 700!important;
}
.filter-title:hover{
	color: var(--bs-dark)!important;
}

#familyselector > *{
	color:red!important;
}


/* SELECT CUSTOM: */

.custom-select.bootstrap-select > .btn.dropdown-toggle{
    background-color: white !important;
	box-shadow: none!important;
	border: 1px solid #d2d6da !important;
	
	min-width: 200px!important;
	width: 100% !important;
	padding-right: 1rem !important;
    padding-left: 1rem !important;
	color: var(--bs-gray-700)!important;
	margin-top: -0.1rem;
	margin-bottom: 0;

	font-weight: normal;
    text-transform: none;
    font-size: 0.875rem;
}

.custom-select.bootstrap-select > .btn.dropdown-toggle:focus,
.custom-select.bootstrap-select > .btn.dropdown-toggle[aria-expanded="true"]{
	outline:none!important;
	color: var(--bs-gray-700)!important;

	transition: 0s ease !important;
    outline: none !important;
    border-radius: 4px !important;
    border: 1px solid var(--portia-blue) !important;
    -webkit-box-shadow: 0 0 0 2px var(--blue-light-color) !important;
    box-shadow: 0 0 0 2px var(--blue-light-color) !important;
    background-color: white !important;
}

.custom-select .dropdown-menu:not(.inner){
	border: 1px solid #d2d6da !important;
}

.custom-select .dropdown-menu .inner .show{
	margin-top: 0 !important;
}

.custom-select .dropdown-menu:not(.show){
	display: none!important;
}

.custom-select.bootstrap-select:not([class*=col-]):not([class*=form-control]):not(.input-group-btn){
	width: fit-content !important;
}

/* select with width 100%: */
.custom-select-100.bootstrap-select:not([class*=col-]):not([class*=form-control]):not(.input-group-btn){
	width: 100% !important;
}

/* filters inner select: */
.filter-select .dropdown-menu  {
	max-width: 100% !important; 
	width: auto !important; 
	margin-top: 2px !important;
}
.filter-select .dropdown-menu .inner {
	overflow-x: auto !important; 
	white-space: nowrap !important; 
}
.filter-select .dropdown-menu .inner ul {
	width: max-content !important;
}
.filter-select .dropdown-menu .inner ul li  {
	cursor: pointer;
}
.filter-select.dropdown:not(.dropdown-hover) .dropdown-menu{
	margin-top: 2px !important;
}



.custom-select .dropdown-item.active, .dropdown-item:active {
	color: #adb5bd!important;
}

input::selection {
    all: unset; /* Remove todos os estilos customizados */
    background-color: Highlight; /* Usa a cor padrão do sistema */
    color: HighlightText; /* Usa a cor do texto padrão do sistema */
}




/* select arrow: */
.dropdown .dropdown-toggle:after, 
.dropup .dropdown-toggle:after, 
.dropstart .dropdown-toggle:after, 
.dropend .dropdown-toggle:after {
	content: "\f107";
	font: normal normal normal 14px / 1 FontAwesome;
	border: none;
	vertical-align: middle;
	font-weight: 600;
	transition: 0.3s ease;
}
.dropdown .dropdown-toggle[aria-expanded="true"]:after, 
.dropup .dropdown-toggle[aria-expanded="true"]:after, 
.dropstart .dropdown-toggle[aria-expanded="true"]:after, 
.dropend .dropdown-toggle[aria-expanded="true"]:after {
	transform: rotate(180deg); /* Gira a seta para cima */
}
.dropdown-menu.show:before {
    content: none!important; /* Remove o pseudo-elemento */
}


/* DATATABLES: */
.dt-layout-full{
	padding: 0;
}
.dt-container > div{
	margin-top: 0!important;
}

table.dataTable thead>tr>th.dt-orderable-asc:hover, table.dataTable thead>tr>th.dt-orderable-desc:hover, table.dataTable thead>tr>td.dt-orderable-asc:hover, table.dataTable thead>tr>td.dt-orderable-desc:hover {
    outline:0;
    outline-offset: 0;
}

span.dt-column-order {   
	font-family: FontAwesome!important;
	padding-left: 4px!important;
	cursor: pointer!important;
	margin-bottom: 5px!important;
}
th.dt-orderable-asc > span.dt-column-order:after {
    content: "\f0dc"!important;
	color: var(--bs-dark)!important;
    font-size: 0.9em!important;
	opacity: .5!important;
}
th.dt-ordering-asc > span.dt-column-order:after {
    content: "\f0de"!important;
	color: var(--bs-dark)!important;
	opacity: 1!important;
}
th.dt-ordering-desc > span.dt-column-order:after {
    content: "\f0dd"!important;
	color: var(--bs-dark)!important;
	opacity: 1!important;
}

th.dt-orderable-asc > span.dt-column-order:before,
th.dt-ordering-asc > span.dt-column-order:before,
th.dt-ordering-desc > span.dt-column-order:before {
	display: none!important;
}

table.dataTable thead>tr>th.dt-orderable-asc span.dt-column-order, table.dataTable thead>tr>th.dt-orderable-desc span.dt-column-order, table.dataTable thead>tr>th.dt-ordering-asc span.dt-column-order, table.dataTable thead>tr>th.dt-ordering-desc span.dt-column-order, table.dataTable thead>tr>td.dt-orderable-asc span.dt-column-order, table.dataTable thead>tr>td.dt-orderable-desc span.dt-column-order, table.dataTable thead>tr>td.dt-ordering-asc span.dt-column-order, table.dataTable thead>tr>td.dt-ordering-desc span.dt-column-order {
	right: unset!important;
    margin-left: 5px!important;
}


.dt-container > *:first-child:not(.dt-layout-table) {
	border-bottom: 1px solid #d2d6da;
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
	display: flex!important;	
    flex-wrap: nowrap !important;
}
.dt-container > *:last-child:not(.dt-layout-table) {    
	border-top: 1px solid #d2d6da;
	padding-top: 0.5rem;
}

.dt-length > select, .dt-length > select:focus-visible {
    border: 1px solid #d2d6da !important;
}
.dt-length > select:hover{
	cursor: pointer;
}

.dt-container .form-select{
	background-image: url('../images/down-arrow.svg');
	background-size: 12px auto;
	background-position: right 5px center;
	padding-right: 20px;	
}
.dt-length > label{
	white-space: normal !important; 
    word-wrap: break-word; 
    overflow-wrap: break-word; 
}

.dt-paging{
	flex-wrap: nowrap!important;
    display: flex!important;
}

.dt-layout-start,
.dt-layout-end{
	width: fit-content;
}




/* PRINT: */
@media print {
	.main-content{
        overflow: visible !important;
        height: auto !important;
    }
}

/* POPOVER (what's new): 
.popover-body:has(.custom-popover) {	
	background-color: var(--bs-success);
	color: white;
	border-radius: 0.5rem;
	padding: 0.5rem;
}
.popover:has(.custom-popover) .popover-arrow::after {
	border-right-color: var(--bs-success);	
} 
.popover .btn-close{
	cursor: pointer;
}*/
.custom-popover {	
	position: relative;
	background-color: white;
	color: var(--portia-blue);
	border-radius: 0.5rem;
	padding: 0.3rem 0.5rem;
	width: min-content;	
	margin-left: 1.3rem !important;
	border-top-left-radius: 0;
	box-shadow: 0 0.3125rem 0.625rem 0 rgba(0, 0, 0, 0.12);
}

.custom-popover .btn-close{
	color: #808080;
	cursor: pointer;
	max-height: min-content;
	max-width: min-content;
	opacity: 0.5;
}
.custom-popover .btn-close:hover{
	opacity: 1;
}

.custom-popover::before {	
	content: '';
	position: absolute;
	top: -6px; 
	left: 0; 
	border-width: 0 10px 10px 0; 
	border-style: solid;
	border-color: transparent transparent white transparent;	
  }



.navbar-vertical .nav-item:hover .nav-link:hover {
    background-color: rgba(199, 199, 199, 0.2);
    
}