/* INPRIMIS ANGULAR 17 */
/* inputs fins al final (width 100%) */
div.fv-row mat-form-field, div.row mat-form-field, app-form-token mat-form-field, app-form-token-pagament mat-form-field {
	width: 100%;
}

mat-form-field {
	margin-bottom: 10px;
}

.mdc-text-field--no-label .mat-mdc-form-field-infix {
	padding-top: 10px!important;
  	padding-bottom: 10px!important;
  	min-height: 10px;
}

/* PLANTILLA */
.cdk-overlay-container {
	z-index: 10000!important;
}

app-header {
	background-color: white!important;
}

body {
	background-color: rgb(238, 240, 248)!important;
}

.pointer, a {
	cursor: pointer;
}

.no-visible {
  display: none!important;
}

/* Llistes de "cards" sense format */

.card-header ul li {
	list-style: none;
}

/* DASHBOARD */

.bullet-bar {
	width: 4px;
  	height: auto;
  	border-radius: 6px;
}

app-dashboard .card-body {
  overflow: auto;
  max-height: 400px;
  min-height: 400px;
}

app-dashboard .card-body.card-body-perfil-admin {
  overflow: auto;
  max-height: 150px;
  min-height: 150px;
}

app-caixa-potencial-risc-usuari .card-body.card-body-up {
  overflow: hidden;
  max-height: 166px;
  min-height: 166px;
}

app-dashboard app-usuari .card-body {
    overflow: auto;
    max-height: none;
    min-height: auto;
}

/* BACKGROND LIGHT */
.bg-light-danger-opacity {
	background-color: rgba(255,226,229,0.6)!important;
}

.bg-light-warning-opacity {
	background-color: rgba(255,244,222,0.6)!important;
}

.bg-light-success-opacity {
	background-color: rgba(201,247,245,0.6)!important;
}

/* Aquesta funcionalitat no la tenen a Metronic 8, però la necessitem -> pàgines index perfil personal, professional i empresa*/ 
.navi, .navi .navi-item {
  padding: 0;
  display: block;
  list-style: none;
}

.navi {
  margin: 0;
}

.navi .navi-item .navi-link.active {
  transition: all .15s ease;
  color: #3699ff;
}

.navi .navi-item .navi-link, .navi .navi-item .navi-link .navi-text {
  font-size: 1rem;
}

.navi .navi-item .navi-link {
  display: flex;
  align-items: center;
  padding: .75rem 1.5rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.navi .navi-item .navi-link .navi-icon::before {
  line-height: 0;
}

.navi .dropdown-menu  {
  width: 200px;
}

.navi.navi-active .navi-item .navi-link.active, .navi.navi-hover .navi-item .navi-link:hover {
  background-color: #f3f6f9;
}

.navi.navi-link-rounded .navi-item .navi-link {
  border-radius: .42rem;
}

.navi .navi-item .navi-link {
  transition: all .15s ease;
  color: #3f4254;
}

/* UPLOAD FILE */
.upload-block {
  width: 100%;
  height: 300px;
  border: 5px dotted #ff5252;;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  .mask {
    display: none;
    position: absolute;
    background: rgba(255, 82, 82, 0.33);
    width: 100%;
    height: 100%;
    z-index: 3;
  }
  &.drop {
    .mask {
      display: block;
      pointer-events: none;
    }
  }
}

.progress {
  width: 0%;
  height: 5px;
  animation: loading cubic-bezier(0.35, 0.87, 0.36, 0.99) 1s;
}

ul.pad-all-1 {
      list-style: none;
}

/* TAULES MAT MANUALS */
.mat-table__wrapper {
	width: 100%;
	overflow-x: auto;
}

mat-cell, mat-header-cell {
  min-height: 100%;
}

.mat-table__wrapper .mat-table {
	min-width: 1000px;
	width: 100%;
}

.mat-table__wrapper--dashboard .mat-table {
	min-width: 600px !important;
}

.mat-table__wrapper .mat-table .email-cell {
	word-wrap: normal;
	width: 180px;
	flex: auto;
}

.mat-table__wrapper--sub .mat-table {
	min-width: 400px;

	.mat-cell:last-child {
		flex: 0 0 100px;
	}

	.mat-header-cell:last-child {
		flex: 0 0 100px;
	}
}

.mat-table__bottom {
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.mat-table__wrapper .mat-table .mat-row-editing.mat-row-inactive {
	height: 0;
	min-height: 0;
	padding: 0 !important;
	border-bottom:0 !important;
}

.mat-table-width-full {
  width:100%;
}

.mat-table {
  display: block;
}

.mat-table-datatable-inprimis mat-row {
  padding: 10px 0;
}

.mat-table-datatable-inprimis mat-cell .avatar_inprimis {
  height: 50px;
}

div.mat-row, div.mat-header-row {
  display: flex;
  border-bottom-width: 1px;
  border-bottom-style: solid;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
}

div.mat-cell, div.mat-header-cell {
  flex: 1;
  overflow: hidden;
  word-wrap: break-word;
}

mat-header-row.example-detail-row, mat-row.example-detail-row {
  height: auto!important;
  min-height: max-content;
}

mat-header-row.example-element-row:not(.example-expanded-row):hover, mat-row.example-element-row:not(.example-expanded-row):hover {
  background: #f5f5f5;
}

mat-header-row.example-element-row:not(.example-expanded-row):active {
  background: #efefef;
}

/* SCHEMA FORM */
.control-label {
	font-weight: bold;
}

.has-error {
	color: #a94442;
}

.has-success {
	color: #3c763d;
}

.formHelp {
	padding-left: 10px;
}

sf-widget-chooser  .btn.btn-default {
	color: #212529;
    display: block;
}

sf-button-widget button{
	color: #212529;
    box-shadow: none !important;
    cursor: pointer;
    border-radius: 0;
    border-radius: 0.25rem;
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.85rem 1.15rem;
    font-size: 1rem;
    line-height: 1.25;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    border-color: #ebedf2;
    background-color: #ffffff;
}

sf-button-widget button:hover {
    background-color: #f4f5f8;
}

sf-form-element-action:nth-child(2) > sf-button-widget > button {
	background-color: #5867dd!important;
    border-color: #5867dd!important;
    color: #ffffff!important;
}

sf-form-element-action:nth-child(2) > sf-button-widget > button:hover {
	background-color: #384ad7!important;
    border-color: #2e40d4!important;
}

sf-checkbox-widget div.widget div.checkbox label {
	font-weight: normal!important;
}

app-special-select-widget .row .col:nth-child(2) sf-form-element, app-special-select-widget .row .col:nth-child(3) sf-form-element {
	flex: auto;
}

.integer-widget, .textarea-widget {
  margin-bottom: 20px;
}



/* MAT EXPANSION PANEL */
.inprimis-expansion-action-buttons {
  padding-bottom: 20px;
}

.inprimis-expansion-headers-align .mat-expansion-panel-header-description {
  justify-content: space-between;
  align-items: center;
}

.inprimis-expansion-headers-align .mat-mdc-form-field + .mat-mdc-form-field {
  margin-left: 8px;
}

/*
app-dashboard app-usuari .symbol {
  width: 35px;
  height: 35px;
}

app-dashboard app-usuari .symbol span {
  background-color: #e1f0ff!important;
  color: #3699ff!important;
}
*/

/* INPRIMIS ANGULAR 11 */
/*
.mat-table__wrapper {
	width: 100%;
	overflow-x: auto;
}

mat-cell, mat-header-cell {
  min-height: 100%;
}

.mat-table__wrapper .mat-table {
	min-width: 1000px;
	width: 100%;
}

.mat-table__wrapper--dashboard .mat-table {
	min-width: 600px !important;
}

.mat-table__wrapper .mat-table .email-cell {
	word-wrap: normal;
	width: 180px;
	flex: auto;
}


.m-mat-dialog-container__wrapper .mat-dialog-container {
	padding: 0;
	overflow-x: hidden;

	.m-portlet {
		margin-bottom: 0;
	}

	.alert {
		border-radius: 0 !important;
		width: 1032px;
	}
}

.mat-table__wrapper--sub .mat-table {
	min-width: 400px;

	.mat-cell:last-child {
		flex: 0 0 100px;
	}

	.mat-header-cell:last-child {
		flex: 0 0 100px;
	}
}

.ml-auto {
	margin-left: auto;
}

.example-full-width {
	width: 100%;
}

mat-radio-button {
	padding-right: 16px;
}

.m-form--alert {
	margin-top: 30px;
}

.mat-column-checkbox {
	flex: 0 0 68px;
}

.mat-column-id {
	flex: 0 0 68px;
}

.mat-column-main {
	flex: 0 0 568px;
}

.mat-column-actions {
	flex: 0 0 160px;
}

.mat-table__bottom {
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.mat-column-vinCode {
	flex: 0 0 170px;
}

.m-portlet-mx-0 {
	margin: -1.1rem -2.2rem 0;
	overflow-x: hidden;
}
.mat-table__wrapper .mat-table .mat-row-editing.mat-row-inactive {
	height: 0;
	min-height: 0;
	padding: 0 !important;
	border-bottom:0 !important;
}

.detall-group {
    margin-bottom: 10px;
}

.detall-label {
    margin-top: 1px;
	font-weight: 600!important;
}

.detall-label.padding-label-inprimis {
    padding-top: 10px;
}

.upload-block {
  width: 100%;
  height: 300px;
  border: 5px dotted #ff5252;;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  .mask {
    display: none;
    position: absolute;
    background: rgba(255, 82, 82, 0.33);
    width: 100%;
    height: 100%;
    z-index: 3;
  }
  &.drop {
    .mask {
      display: block;
      pointer-events: none;
    }
  }
}

.progress {
  width: 0%;
  height: 5px;
  animation: loading cubic-bezier(0.35, 0.87, 0.36, 0.99) 1s;
}

@keyframes loading {
  0% {
    width: 0%;
  }
}

.mat-table-width-full {
  width:100%;
}

.mat-table {
  display: block;
}

div.mat-row, div.mat-header-row {
  display: flex;
  border-bottom-width: 1px;
  border-bottom-style: solid;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
}

div.mat-cell, div.mat-header-cell {
  flex: 1;
  overflow: hidden;
  word-wrap: break-word;
}


mat-header-row.example-detail-row, mat-row.example-detail-row {
  height: auto!important;
  min-height: max-content;
}

mat-header-row.example-element-row:not(.example-expanded-row):hover, mat-row.example-element-row:not(.example-expanded-row):hover {
  background: #f5f5f5;
}

mat-header-row.example-element-row:not(.example-expanded-row):active {
  background: #efefef;
}

.example-element-row mat-cell {
  border-bottom-width: 0;
}

.example-element-detail {
  overflow: hidden;
  display: flex;
}

.example-element-diagram {
  min-width: 80px;
  border: 2px solid black;
  padding: 8px;
  font-weight: lighter;
  margin: 8px 0;
  height: 104px;
}

.example-element-symbol {
  font-weight: bold;
  font-size: 40px;
  line-height: normal;
}

.example-element-description {
  padding: 16px;
}

.example-element-description-attribution {
  opacity: 0.5;
}

.potencialRiscUsuariColumnWidth {
	flex: 0 0 20%;
}

.potencialRiscUsuariColumnMotiu {
	display: flow-root;
}

.control-label {
	font-weight: bold;
}

.has-error {
	color: #a94442;
}

.has-success {
	color: #3c763d;
}

.formHelp {
	padding-left: 10px;
}

sf-widget-chooser  .btn.btn-default {
	color: #212529;
    display: block;
}

sf-button-widget button{
	color: #212529;
    box-shadow: none !important;
    cursor: pointer;
    border-radius: 0;
    border-radius: 0.25rem;
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.85rem 1.15rem;
    font-size: 1rem;
    line-height: 1.25;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    border-color: #ebedf2;
    background-color: #ffffff;
}

sf-button-widget button:hover {
    background-color: #f4f5f8;
}

sf-form-element-action:nth-child(2) > sf-button-widget > button {
	background-color: #5867dd!important;
    border-color: #5867dd!important;
    color: #ffffff!important;
}

sf-form-element-action:nth-child(2) > sf-button-widget > button:hover {
	background-color: #384ad7!important;
    border-color: #2e40d4!important;
}

.riscVermell {
	background-color: red!important;
	border-color: red!important;
}

.riscVerd {
	background-color: #34bfa3!important;
	border-color: #34bfa3!important;
}

.riscGris {
	background-color: grey!important;
	border-color: grey!important;
}

.riscVermell h3 {
	color: white!important;
}

.riscVerd h3 {
	color: white!important;
}

.riscGris h3 {
	color: white!important;
}

app-dashboard .card-body {
    overflow: auto;
    max-height: 400px;
    min-height: 400px;
}

app-dashboard  .card-body.card-body-perfil-admin {
  overflow: auto;
  max-height: 150px;
  min-height: 150px;
}

m-dashboard app-dashboard-riscos-potencials .m-portlet__body .m-portlet__body {
	max-height: 150px;
    min-height: 150px;
}

app-dashboard app-usuari .card-body {
    overflow: auto;
    max-height: none;
    min-height: auto;
}

app-caixa-potencial-risc-usuari .card-body.card-body-up {
    overflow: hidden;
    max-height: 166px;
    min-height: 166px;
}

app-caixa-potencial-risc-usuari .card-body.card-body-up .subtitol {
    overflow: hidden;
    max-height: 62px;
    min-height: 62px;
}


app-caixa-potencial-risc-usuari .card-body.card-body-down {
    overflow: auto;
    max-height: 294px;
    min-height: 294px;
}

app-caixa-potencial-risc-usuari .card {
    overflow: hidden;
    max-height: 610px;
    min-height: 610px;
}

.img-responsive {
	max-width: 100%;
	height: auto;
}

app-dashboard-riscos-potencials div.m-portlet__body a i.la {
  font-size: 2.1rem;
}

m-dashboard > div:nth-child(2) {
	max-height: 900px;
    min-height: 900px;
}

m-dashboard app-dashboard-riscos-potencials .m-portlet__body {
    overflow: auto;
    max-height: 800px;
    min-height: 800px;
}

.space {
	margin: 20px;
}


.mat-form-field-label-wrapper {
    top: -0.54375em !important;
}
.mat-form-field-appearance-legacy .mat-form-field-infix {
    padding: 0.6375em 0 !important;
}

.mat-slider-thumb-label {
    width: 65px !important;
    height: 65px !important;
}

.mat-slider:not(.mat-slider-disabled).cdk-focused .mat-slider-thumb-label {
	border-radius: 60% 30% 0% 30% !important;
}

.mat-slider-horizontal .mat-slider-thumb-label {
    right: -33px!important;
    top: -80px!important;
}

.mat-slider-horizontal {
	width: 100%;
}

ul.pad-all-1 {
      list-style: none;
}

.m-brand {
	padding: 0px 10px!important;
}

.no-visible {
  display: none;
}

.pointer, .mat-column-action a {
  cursor: pointer;
}

#avisos {
  height: auto;
}

#avisos .dropdown-inline a {
  width: 141px;
}

.mat-table-datatable-inprimis mat-row {
  padding: 10px 0;
}

.mat-table-datatable-inprimis mat-cell .avatar_inprimis {
  height: 50px;
}

.card.card-custom.card-stretch {
  height: auto!important;
}

.ta-r {
  text-align: right;
}

mat-button-toggle-group.mat-button-toggle-group.mat-button-toggle-group-appearance-standard {
  height: 34px;
  top: 1px;
}

button.mat-button-toggle-button.mat-focus-indicator {
  height: 34px;
}

button.mat-button-toggle-button.mat-focus-indicator span.mat-button-toggle-label-content {
  line-height: 0px;
}

.bg-light-danger-opacity {
	background-color: rgba(255,226,229,0.6);
}

.bg-light-warning-opacity {
	background-color: rgba(255,244,222,0.6);
}

.bg-light-success-opacity {
	background-color: rgba(201,247,245,0.6);
}

mat-form-field .mat-form-field-ripple {
  opacity: 1;
  transform: none;
  transition: transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1);
  background-color: #3699FF;
  height: 1px!important;
}

mat-form-field.mat-focused .mat-form-field-ripple {
  height: 2px!important;
}

mat-cell {
	margin-top: 5px;
}


.text-muted {
  color: #9595A3 !important;
}
*/