/* stylelint-disable font-family-no-missing-generic-family-keyword */

#attendance-approval legend::before {
  font-family: Font Awesome\ 5 Free;
  content: "\f274"; /* far fa-calendar-check */
  padding-right: 4px;
}

#admin-menu a.hrm::before {
  font-size: 1.2em;
  font-weight: 900;
  content: "\f2bd"; /* far fa-user-circle */
  padding-right: 4px;
}

#admin-menu a.hrm {
  padding-left: 0;
}

a.change-avatar::before {
  font-family: Font Awesome\ 5 Free;
  font-weight: 900;
  content: "\f03e"; /* far fa-image */
  padding-right: 3px;
}

a.change-avatar::before:hover {
  text-decoration: none;
}

/* Mobile menu style FontAwesome icon */
.flyout-is-active #admin-menu li a.hrm {
  padding-left: 8px !important;
}

.controller-hrm_reports th {
  text-align: left;
}

/* reporting overview table styles */
body.controller-hrm_reports table.list { margin-bottom: 25px; }

body.controller-hrm_reports table.list th { text-align: left; }
body.controller-hrm_reports table.list td.name { padding: 4px; }

body.controller-reporting_reports table.list td.number {
  width: 20px !important;
  padding: 2px !important;
}

.controller-hrm_reports.action-show table.list td.name {
  padding: 4px;
}

/* table width */
.controller-hrm_users .checkbox { width: 45px; }

#hrm {
  background: #ecebe6;
  border: 1px solid #ccc;
  padding: 10px;
  margin-bottom: 20px;
}

.hrm-query-link {
  padding: 5px;
  margin-bottom: 18px;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  background: #fefefe;
}

.hrm-query-link a {
  margin-right: 5px;
}

li.attendance {
  font-weight: bold;
}

.controller-hrm_users #content h2::before {
  content: "\f007"; /* fa-user */
}

.controller-hrm_reports #content h2::before {
  content: "\f2bd"; /* fa-user-circle */
}

.controller-hrm_user_groups #content h2::before {
  content: "\f009"; /* fas fa-th-large */
  font-weight: 900;
}

.controller-hrm_members #content h2::before {
  content: "\f21e"; /* fas fa-heartbeat  */
  font-weight: 900;
}

.controller-hrm_resources #content h2::before {
  content: "\f080"; /* fa-bar-chart */
}

.controller-hrm_absence_calendars #content h2::before {
  content: "\f783"; /* fa-calendar-day */
}

.controller-hrm_resources #content h2::before,
.controller-hrm_working_calendars #content h2::before,
.controller-hrm_user_groups #content h2::before,
.controller-hrm_members #content h2::before,
.controller-hrm_holidays #content h2::before,
.controller-hrm_users #content h2::before,
.controller-hrm_reports #content h2::before,
.controller-hrm_absence_calendars #content h2::before {
  padding-right: 5px;
  text-shadow: 0 2px 0 #efefef;
}

.controller-hrm_calendars table.cal td {
  border: 0 !important;
}

.controller-hrm_users.action-show td.checkbox,
.controller-hrm_users.action-show th.checkbox {
  width: 45px !important;
  text-align: left;
  padding-left: 4px;
}

.controller-hrm_users.action-show tr.user td {
  width: auto;
}

a.user.user-type::after,
a.user.admin::after,
#admin-menu a.hrm::before,
.controller-users span.user.admin::after,
.controller-users span.user.user-type::after,
.controller-hrm_users #content h2::before,
.controller-hrm_reports #content h2::before,
.controller-hrm_resources #content h2::before,
.controller-hrm_working_calendars.action-index #content h2::before,
.controller-hrm_user_groups.action-show #content h2::before,
.controller-hrm_users.action-show #content h2::before,
.controller-hrm_members.action-show #content h2::before,
.controller-hrm_holidays.action-index #content h2::before,
.controller-hrm_absence_calendars.action-show #content h2::before {
  font-family: Font Awesome\ 5 Free;
}

.controller-hrm_holidays.action-index #content h2::before {
  content: "\f273"; /* far fa-calendar-times */
}

.controller-hrm_working_calendars.action-index #content h2::before {
  content: "\f073"; /* fa-calendar */
}

#block-myattendance a.icon-add {
  display: block;
  padding: 10px 10px 10px 20px;
}

.custom_submenu_item input[type="text"] {
  background-color: #ede;
}

.hrm-resources ul li {
  display: block;
  border-bottom: 1px solid #ddd;
  padding: 5px;
  list-style: none;
}

.hrm-issue-resource-problems .value li {
  list-style: none;
}

.hrm-resources ul li:hover {
  background-color: #eef1f7;
  border-radius: 4px;
}

.hrm-issue-resource-problems .value ul {
  padding-left: 0;
}

.hrm-issue-resource-problems .label {
  font-weight: bold;
}

.hrm-issue-resource-problems .resource-problem-info {
  color: #169;
}

.hrm-issue-resource-problems .resource-problem-warning {
  color: #cb2525;
}

.hrm-resources p:first-child {
  font-weight: 400;
}

.hrm-resources ul li:last-child {
  border-bottom: 0;
}

/* User top style */

div.user.details table.subject_header td.subject_info li {
  line-height: 20px;
  white-space: nowrap;
  min-height: 20px;
}

div.user.details table.subject_header td.subject_info {
  border-left: 1px solid #ddd;
  padding-right: 15px;
  padding-left: 15px;
  min-width: 200px;
  width: 200px;
}

div#user-tab-links ul li {
  display: inline;
}

div#user-tab-links ul li a {
  border: 1px solid #d7d7d7;
  background: #f4f4f4;
  padding: 5px 8px;
  text-decoration: none;
  border-radius: 3px;
  margin-right: 5px;
}

/* sidebar image padding */
#sidebar ul.list.reports li { padding: 2px 0; }

a.user.admin::after,
.controller-users span.user.admin::after {
  content: "\f013"; /* fa-cog */
  font-weight: 900;
  font-size: 0.9em;
}

a.user.active-admin::after,
.controller-users span.user.active-admin::after {
  color: #d80000;
}

#sidebar ul li span.label {
  font-weight: bold;
  margin-right: 3px;
  line-height: 1.3em;
}

/* critical section - START do not change it  */
a.user.user-type.type-fas::after,
.controller-users span.user.user-type::after {
  font-family: Font Awesome\ 5 Free; /* weight is required for fas */
  font-weight: 900;
  font-size: 85%;
  content: attr(data-fontawesome-content);
}

a.user.user-type.type-far::after,
.controller-users span.user.user-type::after {
  font-family: Font Awesome\ 5 Free;
  font-size: 90%;
  content: attr(data-fontawesome-content);
}

a.user.user-type.type-fab::after,
.controller-users span.user.user-type::after {
  font-family: Font Awesome\ 5 Brands;
  font-size: 90%;
  content: attr(data-fontawesome-content);
}

/* critical section - END */

a.user.user-type::after,
a.user.admin::after,
.controller-users span.user.admin::after,
.controller-users span.user.user-type::after {
  padding-left: 2px;
  text-shadow: 0 2px 0 #efefef;
}

#loggedas a.user::after {
  text-shadow: none !important;
}

/* Kalender Farben */
.hrm-attendances .fa-check-square-o {
  color: #b7b7b7;
}

#block-myattendance span.fa-clock.hrm-attendance-warning-icon {
  font-size: 14px;
}

#block-myattendance h3,
#block-myhrmactions h3,
#block-anniversaries h3,
#block-birthdays h3,
#block-holidays h3 {
  font-size: 16px;
}

#block-resources h3::before,
#block-myattendance h3::before,
.icon.icon-my-attendance::before {
  content: "\f017"; /* far fa-clock */
  font-weight: 900;
}

#block-myattendance h3::before,
.icon.icon-my-attendance::before,
#block-resources h3::before,
#block-myhrmactions h3::before,
#block-anniversaries h3::before,
#block-hrmactions h3::before,
#block-birthdays h3::before,
#block-holidays h3::before {
  font-family: Font Awesome\ 5 Free;
  font-size: 14px;
  padding-right: 4px;
  text-shadow: 0 1px 0 #fff;
}

#block-myhrmactions h3::before,
#block-hrmactions h3::before {
  content: "\f274"; /* far fa-calendar-check */
  font-weight: normal !important;
}

#block-anniversaries h3::before {
  content: "\f091"; /* fa-trophy */
  font-weight: 900;
}

#block-birthdays h3::before {
  content: "\f1fd"; /* fa-birthday-cake */
  font-weight: 900;
}

#block-holidays h3::before {
  content: "\f273"; /* far fa-calendar-times */
  font-weight: 900;
}

/* Kalender Farben */
#hrm-calendar {
  border-collapse: initial !important;
  border-radius: 3px;
  background: #d7d7d7;
  border-color: #fff;
}

#hrm-calendar .hrm-attendance.tooltip {
  background: #d3e1ea;
  border: 1px solid #2d81b6;
  border-left: 4px solid #2d81b6 !important;
  padding: 2px;
  border-radius: 3px;
  margin-top: 1px;
  margin-bottom: 1px;
}

#hrm-calendar .today .day-num {
  border-top: 2px solid orange;
}

.hrm-attendances .fa-info-circle,
.resource-tooltip .fa-info-circle,
#hrm-calendar .hrm-attendance.tooltip .fa-info-circle {
  color: #c20899;
}

.controller-calendars .tooltip span.tip,
#hrm-calendar .hrm-attendance.tooltip:hover span.tip {
  border-radius: 3px;
  box-shadow: 2px 3px 14px #666;
  font-size: 100% !important;
  border-top: 1px solid #c6c6c6 !important;
  border-right: 1px solid #c6c6c6 !important;
  border-bottom: 1px solid #c6c6c6 !important;
  border-left: 4px solid #2d81b6 !important;
  padding: 10px;
}

.hrm-calendar-holiday {
  background-color: #e8f8fc;
}

.hrm-calendar-holiday p.day-num {
  border-top: 2px solid #2d81b6 !important;
  color: #2d81b6 !important;
}

.hrm-calendar-holiday .calendar-holiday {
  margin-bottom: 2px;
}

#hrm-calendar .holiday {
  background-color: #2d81b6 !important;
  opacity: 0.8;
  color: #fff;
  border-radius: 3px;
  padding: 0 2px;
}

/* resources query totals */

.attendances-query-totals { text-align: right; }
.attendances-query-totals > span:not(:first-child) { margin-left: 0.6em; }
.attendances-query-totals .value { font-weight: bold; }

.resources-query-totals,
.attendances-query-totals {
  padding: 5px 0 0 0;
  margin-bottom: 5px;
}

.resources-query-totals .value,
.attendances-query-totals .value {
  margin-right: 8px;
}

.resources-query-totals dt,
.resources-query-totals dd,
.attendances-query-totals dt,
.attendances-query-totals dd {
  display: inline;
  margin-left: 2px;
}

select#month,
select#year {
  margin-left: 3px;
}

/* Move up query totals  */
body.controller-hrm_attendances .query-totals,
body.controller-hrm_users .query-totals,
body.controller-hrm_groups .query-totals,
body.controller-hrm_members .query-totals,
body.controller-hrm_resources .query-totals,
body.controller-hrm_user_resources .query-totals {
  margin-top: -2.3em;
}

.resources-query-totals dt::after {
  content: ":";
}

.attendances-query-totals dt::after {
  content: ":";
}

#main h2.title::before {
  font-size: 90%;
}

.hrm-legend-title {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.hrm-legend {
  display: block;
  width: 95%;
  margin-top: 10px;
  background: #fefefe;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 8px;
}

.hrm-version-start-color::before,
.hrm-version-end-color::before {
  font-size: 110%;
  text-shadow: 0 0 3px #fff;
}

.hrm-version-start-color {
  color: #43b118;
}

.hrm-version-end-color {
  color: #ff2700;
}

.hrm-icon-version {
  padding-left: 2px;
}

.hrm-left-border-tooltip {
  border-left-width: 4px;
  border-left-style: solid;
  padding-left: 4px;
}

.list.hrm-performance-summary {
  margin-bottom: 16px;
}

.legend-info {
  padding-bottom: 10px;
  font-size: 10px;
}

.legend-item {
  display: inline-flex;
  margin-right: 15px;
}

.hrm-legend .legend-box {
  min-width: 30px;
  height: 14px;
  font-size: 10px;
  padding: 2px;
  border: 1px solid #ccc;
  text-align: center;
  margin-right: 3px;
  border-radius: 3px;
}

.legend-box.working-day {
  font-weight: 600;
}

.legend-box.non-working-day {
  font-style: italic;
  color: #999;
}

/* User tabs */

body.controller-users.action-show div#activity dd {
  margin-bottom: 1em;
  padding-top: 2px;
  padding-left: 0;
  font-size: 0.9em;
  margin-left: 0;
}

div.user.details {
  background: #efefef;
  padding: 6px;
  margin-bottom: 6px;
  border: 1px solid #d7d7d7;
  border-radius: 5px;
}

div.user.details table.subject_header td.name {
  vertical-align: top;
}

div.user.details table.subject_header {
  width: 100%;
}

div.user.details table.subject_header h1 {
  margin-bottom: 0;
}

div.user.details table.subject_header td.avatar {
  vertical-align: top;
  text-align: right;
  width: 70px;
}

div.user.details td.subject_info ul li.attendance::before {
  font-family: Font Awesome\ 5 Free;
  font-weight: 900;
  font-size: 90%;
  content: "\f64a"; /* fas fa-business-time */
  margin-right: 0;
}

div.user.details td.subject_info ul li::before {
  font-family: Font Awesome\ 5 Free;
  font-weight: 400;
  font-size: 90%;
  content: "\f133"; /* far fa-calendar */
  margin-right: 5px;
}

td.subject_info ul li.attendance {
  color: #444;
}

div.user.details table.subject_header td.subject_info ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  color: #68737d;
}

/* Only used for custom style in absence calendar */
div.hrm-attendance.absence.tag {
  margin: 2px;
  padding: 4px;
}

.tab-placeholder {
  display: none;
}

.tab-placeholder.active {
  display: block !important;
}

#user-tab-links ul {
  margin-left: 0;
  padding-left: 0;
  margin-top: 20px;
  list-style: none;
}

/* User */

#tab-placeholder-timelog dl dt {
  margin-left: 2em !important;
  padding-bottom: 4px;
}

#attendance_range select {
  width: auto;
}

.hrm-user-performance-chart {
  height: 200px;
}
