.commentsTextArea{
    width: 100%
}

.top-right{
	float: right;
	text-align: right;
}

div {
  	word-wrap: break-word
}
/*this is used to display text with line breaks*/
.preformatted {
    white-space: pre-wrap;
}

.preformatted-col-header span{
    white-space: pre-wrap;
}

/* MatrixTable search functionality styles */
.matrix-table-search-container {
    padding-bottom: 15px;
    display: flex;
    align-items: center;
}

.matrix-table-search-input {
    flex: 1;
}

div.inline { float:left; }

div.header{
	text-align: center;
	font-weight: bold;
}

div.center{
    margin-top:auto;
    margin-bottom:auto;	
	text-align: center;
}

h1.center, h2.center, h3.center, h4.center, h5.center{
	text-align: center;
}

.reportDateContainer{
	float: left;
	text-align: left;
}

.reportDate {
	font-size: large;
	padding-right: 5px;
}
.sm-label-large{
	font-size: large;
	font-weight: bold;
}

.sm-value-large{
	font-size: large;
	text-align: right;
	width: 150px;
	display:inline-block;
}
/*daily report styles*/
.sm-badge {
  border-radius: 2px;
  padding: 0.25em 0.5rem;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.3px;
  white-space:nowrap;
}
.sm-badge.work_schedule {
  background: #C8E6C9 !important;
  color: #256029 !important;
}
.sm-badge.green {
  background: #C8E6C9;
  color: #256029;
}
.sm-badge.stand_by {
  background: #FFCDD2 !important;
  color: #C63737 !important;
}
.sm-badge.red {
  background: #FFCDD2;
  color: #C63737;
}
.sm-badge.extra_work {
  background: #FEEDAF !important;
  color: #8A5340 !important;
}
.sm-badge.orange {
  background: #FEEDAF;
  color: #8A5340;
}
.sm-badge.blue {
  background: #cdf0ff;
  color: #376ec6;
}

.persons{
	color: blue;
}

.equipment{
	color: #bead24;
}

.resources-type-col{
	width:37px;
	text-align: center;
}

.resources-identifier-col{
	width:100px;
}

.resources-name-col{
	width:150px;
}

.resources-description-col{
	width:150px;
}
.resources-quantity-col{
	width:60px;
}

body .ui-datatable .sm-borderless-table tbody,
body .ui-datatable .sm-borderless-table tbody td {
  border: none;
  border-collapse:collapse; 
}

body .ui-datatable tbody .sm-borderless-table tr{
  border: none;
  border-collapse:collapse;
}

body .ui-datatable .sm-borderless-table thead th{
  border: none;
  border-collapse:collapse;
  color: gray;	
}

body .ui-datatable tbody .sm-borderless-table th.col-align-right,
body .ui-datatable tbody .sm-borderless-table td.col-align-right{
  text-align: right;
}

body .ui-datatable tbody .sm-borderless-table th.col-align-left,
body .ui-datatable tbody .sm-borderless-table td.col-align-left{
  text-align: left;
}

.hidden-header .ui-datatable-header {
    display: none;
}

.light-paginator .ui-paginator {
    background-color: white;
    color: black;
    border: 1px dotted #bdbdbd;
    border-top: none;
}

body .light-paginator .ui-paginator > a {
    color: black;
}

body .light-paginator .ui-paginator .ui-paginator-pages a {
    color: black;
}

body .light-paginator .ui-paginator .ui-paginator-pages a.ui-state-active {
    color: #fff;
}

.light-rowgroup .ui-rowgroup-header {
    background-color: white;
    color: black;
    border: 1px dotted #bdbdbd;
}

.light-header .ui-datatable-header {
    background-color: white;
    color: black;
    border: 1px dotted #bdbdbd;
}

h1.weather-header{
	margin-top: 0px !important;
}

/*daily report styles - end*/

.ui-autocomplete.units input{
    width:50px;
}

.ui-calendar.daily-report-time input{
    width:45px;
}

.ui-datepicker-week-col{
    color: black;
    background-color: #F5F5F5;
}

td.progress-table-cell { width: 160px }

.nopadding{
	padding: 0 !important;
}

.comment-info{font: normal 10px/normal "Times New Roman", Times, serif;}

.progress-header{
	color: black;
	cursor: text;
}

.progress-box, body.layout-compact tbody td .progress-box {
	-webkit-border-radius: 5px;
	border-radius: 5px;
	min-width: 48px;
	width:auto;
	height:auto;
	display: flex;
	justify-content: center;
	color: black;
	cursor: text;
}

.counter-box{
	padding: 2px;
    border-radius: 40%;
    text-align: center;
    background-color: #E6EE9C;
}

.colour-0, .colour-5{
	background-color: rgba(235, 50, 25,0.9);
}
.colour-10, .colour-15{
	background-color: rgba(235, 90, 25,0.9);
}
.colour-20, .colour-25{
	background-color: rgba(235, 130, 25,0.9);
}
.colour-30, .colour-35{
	background-color: rgba(235, 170, 25,0.9);
}
.colour-40, .colour-45{
	background-color: rgba(235, 210, 25,0.9);
}
.colour-50, .colour-55{
	background-color: rgba(235, 250, 25,0.9);
}
.colour-60, .colour-65{
	background-color: rgba(240, 235, 25,0.9);
}
.colour-70, .colour-75{
	background-color: rgba(220, 235, 25,0.9);
}
.colour-80, .colour-85{
	background-color: rgba(180, 235, 25,0.9);
}
.colour-90, .colour-95{
	background-color: rgba(140, 235, 25,0.9);
}
.colour-100{
	background-color: rgba(0, 235, 25,0.9);
}

.blue{
	background-color: rgba(45, 195, 245,0.9);
}
/*STATUSES*/
tr.ui-state-highlight span[class*="status-"]{
	color: #ffffff;
}

.status-PENDING, .status-DRAFT {
	color: rgba(139, 132, 116);
	font-weight: bold;
}

.status-INPROGRESS {
	color: blue;
	font-weight: bold;
}

.status-ACCEPTED, .status-RELEASED {
	color: green;
	font-weight: bold;
}

.status-PARTIALLY_ACCEPTED {
	color: #83d509;
	font-weight: bold;
}

.status-REOPENED, .status-OUTDATED, .certificate-status-REJECTED {
	color: red;
	font-weight: bold;
}

.project-status-PENDING, .certificate-status-PENDING {
	color: rgba(139, 132, 116);
	font-weight: bold;
}

.project-status-ACTIVE, .certificate-status-ACCEPTED {
    color: green;
    font-weight: bold;
}

.project-status-SERVICE, .certificate-status-IN_PROGRESS {
    color: blue;
    font-weight: bold;
}

.project-status-CLOSED {
	color: rgba(128,128,128,0.6);
	font-weight: bold;
}

.date-PENDING1{
    --color1: rgba(128,128,128,0.6);
}

.date-PENDING2{
    --color2: rgba(128,128,128,0.6);
}

.date-INPROGRESS1{
    --color1: rgba(0,0,255,0.6);
}

.date-INPROGRESS2{
    --color2: rgba(0,0,255,0.6);
}

.date-ACCEPTED1{
    --color1: rgba(76,175,80,0.6);
}

.date-ACCEPTED2{
    --color2: rgba(76,175,80,0.6);
}

.date-PARTIALLY_ACCEPTED1 {
    --color1: rgba(131,213,9,0.6);
}

.date-PARTIALLY_ACCEPTED2 {
    --color2: rgba(131,213,9,0.6);
}

.date-REOPENED1{
    --color1: rgba(255,0,0,0.6);
}

.date-REOPENED2{
    --color2: rgba(255,0,0,0.6);
}

.date-colours{
	color: #ffffff;
	background: linear-gradient(to right, var(--color1,var(--color2, white)) 50%,var(--color2,var(--color1, white)) 50%);
}
/*date colours class for calendar component*/
td.date-colours{
	border: 1px;
	border-style: dotted;
}

/*date colours class for date picker component*/
span.date-colours{
	-webkit-border-radius: 50%;
	border-radius: 50%;
}

/*badges*/
.current-project-badge {   
    padding: 2px;
    text-align: center;
    background-color: #42a0ff;
	-webkit-border-radius: 6px;
	border-radius: 6px;
	justify-content: center;
	float:right;
  }

html.progress, html.progress * {
    cursor: progress !important;
}

.sm-list-even {
    background-color: #ffffff;
}
.sm-list-odd {
    background-color: #f4f4f4;
}
/*chart scroling*/
.chartWrapper {
 position: relative;
}

.chartWrapper > canvas {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
}

.chartAreaWrapper {
  width: 100%;
  overflow-x: scroll;
}
.customChart{
	width:3600px;
}

/*planning groups*/
.sm-move-buttons-left{
	float: left;
}

.sm-move-buttons-right{
	float: right;
}

.sm-group-row{
	line-height: 20px;
}
.sm-group-row .sm-group-text{
	font-size: 16px;
}

.sm-table-row-footer{
	margin-top: .25rem;
	font-size: 0.7rem;
	font-style: italic;
	display: block;
	border-left: solid;
  	padding-left: .1rem;
  	border-left-color: rgba(66, 160, 255, 0.45);	
}
div.sm-table-toolbar{
    min-height: 42px;
}
.sm-group-row-expansion-content {
	padding-left: 20px;
	padding-right: 20px;
	padding-bottom: 20px;
}

.sm-activity-row-expansion {
    border-bottom: 1px dotted #bdbdbd !important;
    border-top: 1px dotted #bdbdbd !important;
}

.sm-disabled-as-normal.ui-state-disabled{
	opacity: 1;
}

body .ui-inputfield.ui-state-disabled, .ui-selectonemenu.ui-state-disabled {
	opacity: 0.8;
}

body .ui-inputtextarea {
    border: 1px solid #a6a6a6;
}

body .ui-inputtextarea.ui-state-focus {
    border: 1px solid #a6a6a6;
}

body .ui-menu.sm-accept-and-forwadrd{
	width: 21em;
}

/*progress compact*/
.sm-progress-compact-panel{
}
ul.sm-radials li.sm-radial {
  display:inline-block;
  float: left;
line-height:15px;
border-top: 2px solid gray;
}
.sm-available-units {
    width: 130px;
    min-height: 20px;
    list-style-type: none;
    margin: 0;
    padding: 0;
    float: left;
    margin-right: 10px;
}
.sm-radial-units{
    border: 1px solid #eee;
    width: 120px;
    min-height: 20px;
    list-style-type: none;
    margin: 0;
    padding: 5px 0 0 0;
    float: left;
    margin-right: 10px;
}

.sm-editable-row{
	height: 33px;
}

.sm-group-items {
    border: 1px solid #eee;
    width: 120px;
    min-height: 20px;
    list-style-type: none;
    margin: 0;
    padding: 5px 0 0 0;
    float: left;
    margin-right: 10px;
}

ul.sm-radial-units li.sm-radial-unit::before {
	content: "";
	border-left: 2px solid grey;
	padding-bottom: 10px;
	position: absolute;
	top: -20px;
	left: 29px;
	height: 10px;
	display: block;
	width: 2px;
}

li.sm-radial-unit {
	border-radius: 50%;
	display: inline-block;
	margin: 13px 20px 0 20px;
	width: 60px;
	height: 60px;
	background: #a2d674;
	position: relative;
	border: 2px solid grey;
}

li.sm-radial-unit-placeholder {
	border-radius: 50%;
	display: inline-block;
	margin: 13px 20px 0 20px;
	width: 60px;
	height: 60px;
	position: relative;
	border: 2px solid grey;
}

li.sm-placeholder {
	background: #c0c0c0;
}

div.circle {
	width: 40px;
	height: 40px;
	background: #fff;
	position: absolute;
	top: 8px;
	left: 8px;
	display: block;
	border: 2px solid gray;
	font-size: 11px;
	font-weight: bold;
	text-align: center;
	line-height: 41px;
	border-radius: 50%;
	display: inline-block;
	margin-right: 20px;
}
li.sm-available-unit {
    font-size: 11px;
    font-weight: bold;
	padding:3px;
	border-left:1px solid #eee;
	border-right:1px solid #eee;
	border-bottom:1px solid #eee;
}

.sm-radial-units {
  border:none !important;
}
ul#radials {
	background: url('../resources/images/acdc.png') center 0px no-repeat;
	background-clip: padding-box;
	overflow-x: visible;
	overflow-y: hidden;
	width: auto;
	float: left;
	padding: 50px 0 0 0;
	margin: 0;
	display: flex;
	position: relative;
}

ul#radials li.sm-radial::before{
  content:"";
  border-right:2px solid grey;
  padding-left: 52px;
line-height:14px;
}   
.sm-radial h4{

  line-height:21px;
  height:10px;
  margin:0 0 0 15px;
  padding:2px 0 10px 0;
}
#cutleft{
background:#fff;
height:5px;
display:flex;
padding-right:52px;
top:57px;
margin-top:-8px;
position:absolute;
}
#cutright{
background:#fff;
height:5px;
display:flex;
padding-right:76px;
top:57px;
right:0;
margin-top:-8px;
position:absolute;
}

.center-horizontally {
    display: flex;
    justify-content: center;
}

.registration-body {
    padding: 20px 20px;
}

li.availableunits{
font-size:16px;
padding:5px 2px;
}

/* .password-reset-panel{
    top: 50%;
    left: 50%;
    width:500px;
    height:440px;
    margin-top: -220px; set to a negative number 1/2 of your height
    margin-left: -250px; set to a negative number 1/2 of your width
} */

.password-reset-panel {
	width: 450px;
	min-height: 440px;
	padding: 0.3px
}

.confirm-registration-panel, .confirm-registration-fail-panel, .registration-success-panel {
    width: 450px;
    min-height: 340px;
    padding: 0.3px
}

.gray-bg {
    background: top left no-repeat #f7f7f7;
}

.session-expired-panel {
	width: 450px;
	min-height: 440px;
	padding: 0.3px
}

/* If menu item contains both icon and a long text, then text is moved below icon.
   Use this class to enforce text alignment right to the icon.
*/
body .ui-menu .ui-menu-list li.ui-menuitem .ui-menuitem-link.sm-menuitem-link-flex-row  {
    display: flex;
    flex-direction: row;
}

.flex-row {
    display: flex;
    flex-direction: row;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.justify-content-end {
    justify-content: end;
}

.align-items-end {
    align-items: end;
}

.mr-5px {
    margin-right: 5px;
}

.mb-0px, h3.mb-0px{
    margin-bottom: 0px;
}

.mb-5px {
    margin-bottom: 5px;
}

.mb-10px {
    margin-bottom: 10px;
}
/* 
---------------------------------------------------------------------------------
 ULTIMA AND PRIMEFACES LAYOUT fixes 
--------------------------------------------------------------------------------- 
 */

/*
TODO In selectcheckboxmenu with multiple=true arrow is to low. The same problem is in Omega theme and in next version of Omega will be fixed
(https://forum.primefaces.org/viewtopic.php?t=50972). We have to check if in ULTIMA this will be fixed too.
Fixed: in ultima version 1.1.4 it is look like its fixed.
*/
/* body .ui-selectcheckboxmenu-multiple .ui-selectcheckboxmenu-trigger .ui-icon { */
/*        top: auto; */
/* } */


//allow wrapping of selected items in select checkbox menu, see #9
.ui-selectcheckboxmenu-token{
	white-space: normal;
}

.sm-datatable-header-light .ui-widget-header{
	background-color: #969696;
	color: #ffffff;
}
.sm-checkbox-column{
	width:25px;
}

.sm-checkbox-column div.ui-chkbox{
	margin: 0 auto;
	display: block;
}

.sm-checkbox-column.sm-select-ac-column{
	background-color: #42a0ff1c;
}

/* top menu*/
@media (min-width: 1025px) {
	
	.sm-top-menu-current-project{
		color: #ffffff;
		padding-right: 25px;
		padding-top: 10px;
		display:block;
	}

	.sm-top-menu-current-project .ui-selectonemenu .ui-selectonemenu-trigger .ui-icon{
		color: #ffffff;
	}	
	
	.sm-top-menu-current-project .ui-selectonemenu label.ui-selectonemenu-label{
		font-size: 14px;
	}
	.sm-top-menu-current-project  .ui-selectonemenu{
		width: 260px;
	}
	
	.sm-top-menu-current-project span{
		text-align: left;
		font-size: 16px;
		padding-right: 15px;
	}	
}

@media (max-width: 1024px) {

	
	.sm-top-menu-current-project  .ui-selectonemenu{
		width: 244px;
	}
	
	.sm-top-menu-current-project span{
		text-align: left;
		font-size: 16px;
		display: block;
		padding-bottom: 5px;
		padding-right: 15px;
		font-weight: bold;		
	}
}

.sm-top-menu-user-details{
	padding-left: 20px;
	
	padding-top: 5px;
	
	border-bottom-width: 1px;
	
	border-bottom-style: solid;
	
	padding-bottom: 5px;
	
	border-top-width: 1px;
	
	border-top-style: solid;
	
	border-color: #bdbdbd;
}
.sm-template-picklist.ui-picklist {
    height: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.sm-template-picklist.ui-picklist .ui-picklist-list-wrapper {
    height: 100%;
}

.sm-template-picklist.ui-picklist .ui-picklist-list {
    height: calc(100% - 25px);
}

.sm-template-picklist.ui-picklist .ui-picklist-buttons {
    align-self: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cell-ul, ul.cell-ul {
	padding:0;
	padding-left: 15px;
	margin:0;
	text-align: left;
}

.ui-datatable.workaround-for-squeezed-parent-row-in-mobile-view table {
    /* Default table-layout value set by Primefaces  */
    table-layout: fixed;
}

/* Styles for matrix table START */
.matrix-table-parent-row {
    font-weight: bold;
}
/* Styles for matrix table END */

/*classes used to hide html tags depends on screen size*/
@media screen and (max-width: 40em) {
	.ui-sm-nodisplay{
		display: none;
	}
}
@media screen and (min-width: 40.063em) {
	.ui-md-nodisplay{
		display: none;
	}	
}
@media screen and (min-width: 64.063em) {
	.ui-lg-nodisplay{
		display: none;
	}	
}
@media screen and (min-width: 90.063em) {
	.ui-xl-nodisplay{
		display: none;
	}	
}
/* Use this class on dialog in following way:
dialog buttons should be located in footer instead in dialog content,
following dialog properties should be
blockScroll="true"
fitViewport="true"

Take taskProgressRowEditDialog.xhtml as example.
*/
.sm-small-dialog{
	min-width: 40% !important;
}

.sm-medium-dialog{
	min-width: 75% !important;
}

.sm-large-dialog{
	width: 95% !important;
	height: 95% !important;
}

.sm-large-dialog .ui-dialog-content{
	overflow:auto;
	height: 90% !important;
}

.sm-full-height-dialog, .sm-full-height-dialog .ui-dialog-content {
    height: 100% !important;
}

.sm-report-template-edit-dialog.sm-price-edit-dialog .ui-dialog-content{
	height: calc(100% - 80px) !important;
}

.sm-price-edit-dialog .ui-dialog-content{
	overflow:auto;
	height: 90% !important;
}

@media screen and (max-width: 40em) {
	.sm-price-edit-dialog.sm-sm-dialog{
		width: 100% !important;
		height: 95% !important;
	}
}

@media screen and (min-width: 40.063em) {
	.sm-price-edit-dialog.sm-md-dialog{
		width: 100% !important;
		height: 95% !important;
	}
}

@media screen and (min-width: 64.063em) {
	.sm-price-edit-dialog.sm-lg-dialog{
		width: 80% !important;
	}
}
@media screen and (min-width: 90.063em) {
	.sm-price-edit-dialog.sm-xl-dialog{
		width: 60% !important;
	}
}

@media (min-width: 1300px) {
    .sm-responsive-panel {
        margin: 0 auto;
        max-width: 850px;
    }

    .sm-responsive-panel input, .sm-responsive-panel textarea {
        max-width: 750px;
    }
}

@media (min-width: 1000px) {
    .registration-panel {
        margin: 0 auto;
        max-width: 850px;
    }
}

/* Custom styles for the Timeline - START */
.vis-timeline {
    overflow: visible !important;
}

div.vis-tooltip {
    font-size: 12px;
    max-inline-size: 50%;
    white-space: normal;
}

div.work_schedule {
    border-color: #136e13 !important;     /* green */
    background-color: rgba(127, 191, 63, 0.4) !important;
}

div.extra_work {
    border-color: #cc8100 !important;     /* orange */
    background-color: rgba(233, 127, 21, 0.4) !important;
}
div.stand_by {
    border-color: #bd2828 !important;     /* red */
    background-color: rgba(233, 39, 21, 0.4) !important;
}

div.no_type {
    border-color: #1e5aa8 !important; /* deep blue */
    background-color: rgba(70, 130, 180, 0.4) !important; /* steel blue with transparency */
}

/* Custom styles for the Timeline - END */

/* Custom styles for the progress bar - START */
.progressbar {
    height: 5.5em;
    text-align: left;
    position: relative;
    border: 1px solid #ccc;
}

.progressbar-determinate .progressbar-value {
    margin: -1px;
    height: 100%;
    width: 0%;
    position: absolute;
    display: none;
    background-color: #b3ddff;
}

.progressbar-determinate .progressbar-label {
    text-align: center;
    height: 100%;
    width: 100%;
    position: absolute;
    display: none;
    font-weight: bold;
    font-size: 200%;
    text-align: center;
    padding: 25px;
}
/* Custom styles for the progress bar - END */

#topbar-items-form .sm-users-options-menu {
    width: 280px;
}

@media (max-width: 1024px) {
    .layout-wrapper .topbar .topbar-right .sm-topbar-items {
        width: 300px;
    }

    #topbar-items-form .sm-users-options-menu {
        width: 300px;
    }
}

.small-checkbox .ui-chkbox .ui-chkbox-box {
  width: 14px !important;
  height: 14px !important;
}

.small-checkbox .ui-chkbox .ui-chkbox-box .ui-chkbox-icon {
  font-size: 14px !important;
  margin-left: -2px !important;
  margin-top: -2px !important;
}

.sm-custom-checkbox {
  accent-color: #757575;
}

.progressProportioningHintTooltip table,
.progressProportioningHintTooltip td,
.progressProportioningHintTooltip th {
    border: 1px solid;
}

.progressProportioningHintTooltip table {
    border-collapse: collapse;
    text-align: center;
}

/* styles parent panel and children panel - START */
.sm-panel-parent.ui-panel {
    border: none;
    margin-bottom: 10px;
}

.sm-panel-parent.ui-panel > .ui-panel-titlebar {
    background: white;
    color: black;
    text-align: center;
    font-size: large;
    border: 1px solid #bdbdbd;
}

.sm-panel-parent.ui-panel > .ui-panel-content {
    padding: 0 !important;
}

.sm-panel-parent.ui-panel > .ui-panel-titlebar .ui-panel-titlebar-icon span {
    color: black;
}

.sm-panel-parent.light-colour div.ui-panel-titlebar {
    background: #f4f4f4;
    color: black;
    font-size: 15px;
}

.sm-panel-parent.small div.ui-panel-titlebar {
    background: white;
    color: black;
    font-size: 14px;
}

.sm-panel-child.ui-panel {
    border: none;
}

.sm-panel-child.ui-panel > .ui-panel-content {
    padding: 0 !important;
}

.sm-panel-child.ui-panel > .ui-panel-titlebar {
    text-align: center;
}

.sm-panel-parent.sm-activity-panel-parent.ui-panel > .ui-panel-content {
    border: 1px solid #bdbdbd;
}

.sm-estimated-time-inputfield{
    width: 70px;
    display: inline-block;
    text-align: center;
}

.sm-estimate-col {
    min-width: 120px;
}

td.sm-estimate-col .ui-cell-editor, td.ui-cell-editor-disabled.sm-estimate-col .sm-estimated-time-inputfield {
    text-align: right;
    display: inline-block;
    width: calc(100% - 32px);
    min-width: 70px;
}

td.sm-estimate-col.sm-estimate-col-full-width .ui-cell-editor {
    width: 100%;
    padding-right: 8px;
}
/* styles parent panel and children panel - END */

.sm-dashboard-panel.ui-panel {
    border: none;
}

.sm-dashboard-panel.ui-panel > .ui-panel-content {
    padding: 1rem;
    padding-top: .5rem;
    background-color: #efefef;
}

.sm-dashboard-panel.ui-panel > .ui-panel-titlebar {
    text-align: center;
    background-color: #efefef;
    color: #212121;
    font-size: 1.5rem;
    font-weight: bold;
    padding-top: 0.5rem !important;
}

.sticky-horizontally {
    /* Some ancient browsers/browsers versions do not support "position: sticky" - in that case stickiness will not be applied */
}

table.sticky-header thead {}

table.sticky-footer tfoot {}

body .ui-dialog .ui-dialog-buttonpane .align-left, body .ui-dialog .ui-dialog-footer .align-left {
    text-align: left !important;
}

.sm-panel-child.hide-panel-header div.ui-panel-titlebar {
    display: none;
}

body .ui-datalist.no-border .ui-widget-content {
    border: 0;
}

body .ui-datalist.no-top-padding .ui-widget-content {
    padding-top: 0;
}

@supports (position: sticky) or (position: -webkit-sticky) {
    .sticky-horizontally {
        /* Stick to the left */
        left: 0;
        position: -webkit-sticky;
        position: sticky;

        /* Displayed on top of other rows when scrolling */
        z-index: 3;
    }

    table.sticky-header thead {
        top: 0;

        position: -webkit-sticky;
        position: sticky;
    }

    table.sticky-footer tfoot {
        bottom: 0;

        position: -webkit-sticky;
        position: sticky;
    }

    th.sticky-horizontally, td.sticky-horizontally {
        background-color: inherit;
    }

    /* Reset border set in primefaces styles */
    body .ui-datatable table.contains-sticky-column thead th {
        border: none;
    }

    /* Reset border set in primefaces styles */
    body .ui-datatable table.contains-sticky-column tbody tr td {
        border: none;
    }

    table.contains-sticky-column {
        border-collapse: separate;
        border-spacing: 0;
    }

    table.contains-sticky-column thead th {
        border-bottom: 1px dotted #bdbdbd !important;
        border-right: 1px dotted #bdbdbd !important;
    }

    table.contains-sticky-column thead tr:first-child th {
        border-top: 1px dotted #bdbdbd !important;
    }

    table.contains-sticky-column tbody td {
        border-right: 1px dotted #bdbdbd !important;
    }

    table.contains-sticky-column tbody tr:last-child td {
        border-bottom: 1px dotted #bdbdbd !important;
    }

    table.contains-sticky-column thead th:first-child,
    table.contains-sticky-column tbody td:first-child {
      /* Apply a left border on the first <td> or <th> in a row */
      border-left: 1px dotted #bdbdbd !important;
    }

    table.contains-sticky-column thead th.ui-state-active, table.contains-sticky-column thead th.ui-state-highlight {
      /* Resets opacity to 1, so when table header is active (e.g user clicked on it to sort data), then anything beneath it is not visible) */
      background-color: rgba(255, 145, 36, 1);
      border-top-color: rgba(255, 145, 36, 1);
    }
}

.table-max-height-250px .ui-datatable-tablewrapper {
    max-height: 250px;
}

.grid.grid-border > div:not(.grid-no-border), .grid.grid-border > span:not(.grid-no-border) {
    border-top: 1px solid #e4e4e4;
    padding: 5px 0px 5px 0;
}

@media screen and (min-width: 768px) {
    .md\:top-5-deviations-col-width {
        width: 70px;
    }
}

@media screen and (min-width: 1660px) {
    .xxl\:col {
        flex-grow: 1;
        flex-basis: 0;
        padding: 0.5rem;
    }

    .xxl\:hidden {
        display: none !important;
    }

    .xxl\:block {
        display: block !important;
    }

    .xxl\:flex {
        display: flex !important;
    }

    .xxl\:col-4 {
        flex: 0 0 auto;
        padding: 0.5rem;
        width: 33.3333%;
    }

    .xxl\:col-6 {
        flex: 0 0 auto;
        padding: 0.5rem;
        width: 50%;
     }

    .xxl\:col-8 {
        flex: 0 0 auto;
        padding: 0.5rem;
        width: 66.6667%;
    }

     .xxl\:col-10 {
        flex: 0 0 auto;
        padding: 0.5rem;
        width: 83.3333%;
     }

     .xxl\:col-fixed {
        flex: 0 0 auto;
        padding: 0.5rem;
     }

    .xxl\:deviation-table-dashboard-col-width {
        width: 155px;
    }

    .grid.grid-border > div.xxl\:grid-border, .grid.grid-border > span.xxl\:grid-border {
        border-top: 1px solid #e4e4e4;
        padding: 5px 0px 5px 0;
    }

    .xxl\:dashboard-deviation-table-col-width {
        width: 155px;
    }
}

@media screen and (min-width: 1796px) {
    .hidden-1796pxmin {
        display: none !important;
    }

    .block-1796pxmin {
        display: block !important;
    }

    .top-5-external-deviations-grouping-col-width-1796pxmin {
        width: 625px;
    }

    .top-5-deviations-grouping-col-width-1796pxmin {
        width: 500px;
    }

    .top-5-deviations-col-width-1796pxmin {
        width: 125px;
    }

    .col-fixed-1796pxmin {
        flex: 0 0 auto;
        padding: 0.5rem;
    }

    .col-10-1796pxmin {
        flex: 0 0 auto;
        padding: 0.5rem;
        width: 83.3333%;
    }

    .flex-1796pxmin {
        display: flex !important;
    }

    .cost-grouping-col-width-1796pxmin {
        width: 500px;
    }

    .cost-external-grouping-col-width-1796pxmin {
        width: 625px;
    }

    .cost-col-width-1796pxmin {
        width: 125px;
    }
}

@media screen and (min-width: 2400px) {
    .xxxl\:col-6 {
        flex: 0 0 auto;
        padding: 0.5rem;
        width: 50% !important;
    }

    .xxxl\:ml-3 {
        margin-left: 1rem;
    }
}

@media screen and (min-width: 3000px) {
    .xxxxl\:col-6 {
        flex: 0 0 auto;
        padding: 0.5rem;
        width: 50% !important;
    }

    .xxxxl\:pl-8 {
        padding-left: 5rem !important;
    }
}

#block-overlay, #viewport-block-overlay {
    position: fixed !important;
    width: 100%;
    height: 100vh;
    z-index: 99999;
    display: none;
}

.center-vertically {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

/* Move title bar icons (e.g. minimize) to the left on all panels */
.ui-panel .ui-panel-titlebar-icon {
    float: left;
}

body .ui-button.sm-blue-btn {
    background-color: #0000ff;
}

body .ui-button.sm-blue-btn.ui-state-hover {
    background-color: #0000b3;
}

.sm-message {
    padding: 4px 8px;
    min-height: 20px;
    border-radius: 3px;
}

.sm-message.sm-message-info {
    background-color: #2196F3;
    border-color: #2196F3;
    color: #ffffff;
    font-weight: bold
}

.sm-message.sm-message-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #ffffff;
    font-weight: bold
}

.ui-overlaypanel.no-padding, .ui-overlaypanel.no-padding .ui-overlaypanel-content {
    padding: 0;
}

.sm-chip {
    align-items: center;
    display: inline-flex;
    justify-content: center;

    background-color: #d1d5db;

    border-radius: 9999px;

    padding: 0.1rem 0.5rem;
}

.sm-chip-content {
    margin-right: 0.25rem;
}

body .ui-datatable.sm-activities-table tbody tr td .ui-row-toggler {
    display: inline-flex;
    align-items: center;
    margin-left: 0.40rem;
    height: 100%;
    vertical-align: top;
}

body .ui-datatable.sm-activities-table thead th:first-child {
    border-left: none;
}

body .ui-datatable.sm-activities-table table, body .ui-datatable.sm-activities-table table tbody {
    height: 100%;
}

body .ui-datatable.sm-activities-table table tbody .activity-type {
    display: inline-block;
    width: 15px;
    padding: 0;
    height: 100%;
    border-radius: 0;
    vertical-align: top
}

body .ui-datatable.sm-activities-table table tbody .first-col {
    width: 60px !important;
    padding: 0 !important;
}

.billing-subcontractors-list .subcontractor {
    z-index: 3;
}

.billing-subcontractors-list .subcontractor.subcontractor-draggable:hover {
    cursor: grab;
}

.dragging-active {
    position: relative;
    width: 100%;
    height: 100%;
}

.draggable-indicator {
    display: none;
}

.dragging-active .draggable-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: #42a0ff;
    border: 1px solid #42a0ff;
    background-color: white;
    z-index: 2;
}

.dragging-active .content-to-hide-when-dragging-active {
    opacity: 0;
}

.reset-margin-except-bottom {
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;
}

.weather-condition:not(:last-child) {
    border-bottom: 1px dotted #bdbdbd;
}

/*
    Primefaces by default does not show tooltip if commandLink is disabled. Following style forces display of tooltip.
    To make it work use it with pass through title attribute.
*/
.ui-state-disabled.forceShowTooltip{
    pointer-events: all;
}

@media screen and (max-width: 640px) {
    .ui-datatable.workaround-for-squeezed-parent-row-in-mobile-view table {
        /* Fixes issue with squeezed parent row of expanded row in mobile view */
        table-layout: auto;
    }

    body .ui-datatable.sm-activities-table table tbody .activity-type {
         height: 20px !important;
         width: 60px !important;
    }

    body .ui-datatable.sm-activities-table table tbody .first-col {
        width: 100% !important;
        text-align: left;
    }

    .ui-datatable-reflow.sm-activities-table .ui-datatable-data td.first-col .ui-column-title {
       display: none;
    }
}

#activityDetailsId.ui-dialog .ui-dialog-content {
    -moz-transform: none;
    -o-transform: none;
    -webkit-transform: none;
    transform: none;
}

td:not(:last-child) .ui-radiobutton ~ label {
    padding-right: .8em;
}

body .ui-radiobutton {
    margin-right: 0.2em;
}

.sm-spinner,
.sm-spinner:after {
  width: 1.8em;
  height: 1.8em;
  border-radius: 50%;
}

.sm-spinner {
  font-size: 10px;
  position: relative;
  text-indent: -9999em;
  border-top: 0.2em solid rgba(0,0,0, 0.2);
  border-right: 0.2em solid rgba(0,0,0, 0.2);
  border-bottom: 0.2em solid rgba(0,0,0, 0.2);
  border-left: 0.2em solid #000000;
  transform: translateZ(0);
  animation: sm-spinner-keyframes 1.1s infinite linear;
}

@keyframes sm-spinner-keyframes {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

.ellipsify {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    max-width: 100%;
    display: inline-block;
}

.variantStatusFilterPanel .ui-selectcheckboxmenu-item[data-item-value="CONFIGURATION_NOT_COMPLETE"]::before {
    content: '-------------------------------------------------';
    display: block;
}

.without-selectall .ui-selectcheckboxmenu-header .ui-chkbox {
    display: none;
}

body .ui-datatable tbody tr.sm-row-even {
  background-color: #f4f4f4;
}

body .ui-datatable tbody tr.sm-row-odd {
  background-color: #fff;
}

.table-max-height-60vh .ui-datatable-tablewrapper {
    max-height: 60vh;
    overflow-y: scroll;
}

.autocomplete-full-width {
    width: 95%;
}

.autocomplete-full-width > ul {
    width: 100%;
}

.caret-color-transparent {
    caret-color: transparent;
}

.autocomplete-cursor-pointer > ul, .autocomplete-cursor-pointer input {
    cursor: pointer;
}

.overflow-visible, .overflow-visible .ui-dialog-content {
    overflow: visible;
}

/*
  Fix for stacking context issue inside dialog:
  The dialog body has a 'transform' property (or another property) that creates a new stacking context.
  This causes overlay elements (like overlayPanel) rendered inside the body to be visually trapped
  beneath the dialog's header and footer, even with high z-index.

  Applying 'transform: none' removes the stacking context,
  allowing overlays to properly render above other parts of the dialog.
*/
.ui-dialog.fix-stacking-context .ui-dialog-content {
    -moz-transform: none;
    -o-transform: none;
    -webkit-transform: none;
    transform: none;
}

.activity-details-dialog-deviation-tooltip {
    max-width: 1500px;
}

/* Hide default selected date style */
.week-picker-panel .ui-datepicker-current-day .ui-state-active {
    background: none !important;
    border-color: transparent !important;
    color: #000000 !important;
}

/* Week hover effect */
.week-picker-panel .ui-datepicker-calendar tr.week-hover td:not(.ui-datepicker-week-col) {
    background: #e8e8e8 !important;
    border-color: #e8e8e8!important;
    color: #000000 !important;
}

/* Make week number column clickable */
.week-picker-panel .ui-datepicker-week-col {
    cursor: pointer;
}
/* Certificates*/

.cert-utilities-panel {
display: grid;
    grid-template-columns: auto 1fr auto;   /* buttons take their natural width, legend takes the rest */
    align-items: center;
    gap: 1rem;
    margin-top: 10px;
    width: 100%;
}
.cert-buttons {
    display: flex;
    gap: .5rem;
}

.cert-buttons-right {
    display: flex;
    gap: .5rem;
    justify-self: end;
}

.cert-legend {
    display: flex;
    gap: 15px;
    font-size: 12px;
    align-items: center;
    background-color: #f8f9fa;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    justify-self: end;
}

.cert-date {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
}

.cert-legend .cert-date {
    width: 73px;
}

.cert-status-bar {
    display: inline-block;
    width: 5px;
    height: 22px;
    flex-shrink: 0;
}

.valid {
    background-color: green;
}

.near-expire {
    background-color: orange;
}

.expired {
    background-color: red;
}