body {
  padding-top: 75px;
}

.ms-2 {
  margin-left: 0.5rem;
}

.sub-header {
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.navbar-fixed-top {
  border: 0;
}

.sidebar {
  display: none;
}

@media (min-width: 768px) {
  .sidebar {
    z-index: 1000;
    display: block;
    padding: 20px;
    overflow-x: hidden;
    overflow-y: auto;
    /* Scrollable contents if viewport is shorter than content. */
    background-color: #f5f5f5;
    float: left;
  }
}

/* Sidebar navigation */
.nav-sidebar {
  margin-right: -21px;
  /* 20px padding + 1px border */
  margin-bottom: 20px;
  margin-left: -20px;
}

.nav-sidebar>li>a {
  padding-right: 20px;
  padding-left: 20px;
}

/*
 * Main content
 */

.main {
  padding: 20px;
}

@media (min-width: 768px) {
  .main {
    padding-right: 40px;
    padding-left: 40px;
  }
}

.main .page-header {
  margin-top: 0;
}

.main h4.page-header {
  font-weight: 600;
}

/*
 * Placeholder dashboard ideas
 */

.placeholders {
  margin-bottom: 30px;
  text-align: center;
}

.placeholders h4 {
  margin-bottom: 0;
}

.placeholder {
  margin-bottom: 20px;
}

.placeholder a>img {
  display: inline-block;
  border-radius: 50%;
}

.form-group {
  position: relative;
}

.form_row_error input,
.form_row_error select,
.select2-container-multi.error .select2-choices {
  border: 1px solid red;
}

ul.error_list {
  list-style-type: none;
  color: red;
}

/*
 helps
*/
.form-group label {
  float: left;
}

.error_list {
  color: #ff0000;
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: inline;
}

.error_list li {
  display: inline;
  float: left;
  margin: 0 0 0 7px;
  text-transform: lowercase;
  font-variant: small-caps;
}

.error_list li::before {
  content: "(";
}

.error_list li::after {
  content: ")";
}

.help {
  z-index: 1;
  position: absolute;
  left: -9999px;
  padding: 2px 8px 3px;
  font-size: 11px;
  line-height: 16px;
  font-weight: 400;
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  opacity: 0;
  transition: margin 0.3s, opacity 0.3s;
  -o-transition: margin 0.3s, opacity 0.3s;
  -ms-transition: margin 0.3s, opacity 0.3s;
  -moz-transition: margin 0.3s, opacity 0.3s;
  -webkit-transition: margin 0.3s, opacity 0.3s;
}

.help:after {
  content: "";
  position: absolute;
}

input:focus+.help,
textarea:focus+.help {
  opacity: 1;
}

.help-top-right {
  bottom: 100%;
  margin-bottom: 15px;
}

.help-top-right:after {
  top: 100%;
  right: 16px;
  border-top: 4px solid rgba(0, 0, 0, 0.9);
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
}

input:focus+.help-top-right,
textarea:focus+.help-top-right {
  right: 0;
  left: auto;
  margin-bottom: 5px;
}

.help-top-left {
  bottom: 100%;
  margin-bottom: 15px;
}

.help-top-left:after {
  top: 100%;
  left: 16px;
  border-top: 4px solid rgba(0, 0, 0, 0.9);
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
}

input:focus+.help-top-left,
textarea:focus+.help-top-left {
  right: auto;
  left: 0;
  margin-bottom: 5px;
}

.help-right {
  top: 9px;
  white-space: nowrap;
  margin-left: 15px;
}

.help-right:after {
  top: 6px;
  right: 100%;
  border-top: 4px solid transparent;
  border-right: 4px solid rgba(0, 0, 0, 0.9);
  border-bottom: 4px solid transparent;
}

input:focus+.help-right,
textarea:focus+.help-right {
  left: 100%;
  margin-left: 5px;
}

.help-left {
  top: 9px;
  white-space: nowrap;
  margin-right: 15px;
}

.help-left:after {
  top: 6px;
  left: 100%;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 4px solid rgba(0, 0, 0, 0.9);
}

input:focus+.help-left,
textarea:focus+.help-left {
  right: 100%;
  left: auto;
  margin-right: 5px;
}

.help-bottom-right {
  top: 100%;
  margin-top: 15px;
}

.help-bottom-right:after {
  bottom: 100%;
  right: 16px;
  border-right: 4px solid transparent;
  border-bottom: 4px solid rgba(0, 0, 0, 0.9);
  border-left: 4px solid transparent;
}

input:focus+.help-bottom-right,
textarea:focus+.help-bottom-right {
  right: 0;
  left: auto;
  margin-top: 5px;
}

.help-bottom-left {
  top: 100%;
  margin-top: 15px;
}

.help-bottom-left:after {
  bottom: 100%;
  left: 16px;
  border-right: 4px solid transparent;
  border-bottom: 4px solid rgba(0, 0, 0, 0.9);
  border-left: 4px solid transparent;
}

input:focus+.help-bottom-left,
textarea:focus+.help-bottom-left {
  right: auto;
  left: 0;
  margin-top: 5px;
}

table.sortable thead tr th.sort.headerSortDown,
table.sortable thead tr th.sort.asc,
table.sortable thead tr .sort.asc {
  background-image: url(/images/sorter/desc.gif);
  background-repeat: no-repeat;
  background-position: right center;
}

table.sortable thead tr th.sort.headerSortUp,
table.sortable thead tr th.sort.desc,
table.sortable thead tr .sort.desc {
  background-image: url(/images/sorter/asc.gif);
  background-repeat: no-repeat;
  background-position: right center;
}

table.sortable thead .headerSortDown,
table.sortable thead .headerSortUp,
table.sortable thead .asc,
table.sortable thead .desc {
  padding-right: 15px;
  background-color: #8dbdd8 !important;
  cursor: pointer;
}

table.sortable thead tr th.sort,
table.sortable thead tr .sort {
  padding-right: 15px;
  background-image: url(../images/sorter/bg.gif);
  background-repeat: no-repeat;
  background-position: right center;
  cursor: pointer;
}

table.sortable thead th,
table.sortable thead td {
  background-color: #f8f8f8;
  text-align: center;
}

table.sortable.transparent thead th,
table.sortable.transparent thead td {
  background-color: transparent;
}

table.sortable thead td {
  text-align: center;
}

.noselect {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/*pager*/
.pager {
  overflow: hidden;
  float: left;
  font-size: 11px;
}

.pager .navi {
  display: inline-block;
  vertical-align: middle;
  width: 32px;
  height: 32px;
  cursor: pointer;
  background-size: contain;
  margin-right: 4px;
  background: url(/images/sorter/circle_big.png) no-repeat;
}

.pager .navi.grey {
  cursor: default;
  background-position-y: -33px;
}

.pager .navi_page {
  display: inline-block;
  vertical-align: middle;
  padding: 0 20px;
  min-width: 100px;
  text-align: center;
}

.pager .navi,
.pager .navi_page {
  line-height: 32px;
  height: 32px;
  font-size: 14px;
  font-weight: bold;
}

.pager .actualPageReload {
  display: none;
}

.pager .page_size {
  font-size: 14px;
  font-weight: bold;
  background: none;
  display: inline-block;
  vertical-align: middle;
  height: 21px;
  margin-top: -1px;
}

.pager-no-margin .pager {
  margin: 0;
}

.first.grey {}

.prev.grey {}

.next.grey {}

.last.grey {}

.pager .navi.first {
  background-position-x: 0;
}

.pager .navi.prev {
  background-position-x: -33px;
}

.pager .navi.next {
  background-position-x: -66px;
}

.datepicker .prev,
.datepicker .next {
  background: none;
}

.pager .navi.last {
  background-position-x: -99px;
}

.page_size {
  margin-left: 10px;
}

.pager .control {
  display: inline-block;
  vertical-align: middle;
}

/*end pager*/

.profile-img-card {
  width: 96px;
  height: 96px;
  margin: 0 auto 10px;
  display: block;
  -moz-border-radius: 50%;
  -webkit-border-radius: 50%;
  border-radius: 50%;
}

.profile-card {
  text-align: center;
  margin-bottom: 20px;
  position: relative;
}

.profile-user {
  font-size: 24px;
  text-transform: uppercase;
}

.profile-role {
  font-size: 16px;
}

.profile-last-logged-in {
  font-size: 10px;
}

.worker-card {
  width: 300px;
  height: 50px;
  border-radius: 10px;
  background: #eeeeee;
  border: 1px solid #eeffee;
}

.worker-name {
  margin: 10px;
  display: inline;
}

.worker-img-card {
  width: 30px;
  height: 30px;
  margin: 10px;
  display: inline;
  -moz-border-radius: 50%;
  -webkit-border-radius: 50%;
  border-radius: 50%;
}

/*boxy dla foremanów do wyboru projektów oraz pracowników w projektach*/
.box {
  line-height: 40px;
  background: #e6e6e6;
  color: #666666;
  text-align: center;
  margin-right: 20px;
  padding-left: 10px;
  padding-right: 10px;
  border-radius: 5px;
}

.box:active,
.box:hover {
  background-color: #d5d5d5;
  color: #fff;
}

.box input {
  margin-top: 13px;
  margin-left: -15px !important;
}

.box.checked {
  background: #5195ce;
  color: #ffffff;
}

.box.checked:hover,
.box.checked:active {
  background-color: #62a6df;
  color: #fff;
}

.box.filled {
  background: #5bc236;
  color: #ffffff;
}

.box.filled:hover,
.box.filled:active {
  background-color: #6cd347;
  color: #fff;
}

.vertical-center {
  vertical-align: middle !important;
}

td.hover {
  background: #b8d1f3;
}

.modal {
  width: auto !important;
  max-height: calc(100vh - 15%);
  margin-left: 0 !important;
  left: 50% !important;
  transform: translateX(-50%);
}

.modal-dialog {
  margin: 0 auto !important;
}

.timestudy-help {
  font-size: 12px;
  font-weight: 200 !important;
  margin-top: -3px;
  font-style: italic;
}

.timestudy-small {
  font-size: 12px;
}

.timestudy-small .timestudy-help {
  font-size: 10px;
}

.timestudy-small .form-control {
  height: 26px;
  line-height: 26px;
  padding: 2px;
}

.box .flagstrap-icon {
  margin-left: 10px;
}

/* style.css */

html,
body {
  height: 100%;
  font-size: 16px;
  line-height: 22px;
}

body {
  padding-bottom: 52px;
  background-color: #f5f5f5;
}

body>.container-fluid {}

.main {
  background-color: #fff;
}

footer {}

footer .left {
  width: 320px;
  background-color: #f5f5f5;
}

footer .right {
  text-align: center;
  height: 22px;
  line-height: 20px;
  border: 1px solid rgb(218, 8, 19);
  border-left: none;
  border-right: none;
  color: #666;
  font-size: 11px;
}

.navbar-fixed-top {
  border: 0;
}

.top-btn {
  background: black;
}

.top-btn:hover {
  background-color: #333;
}

@media (min-width: 768px) {
  .logout-image-container {
    margin-right: -15px;
  }
}

.top-btn>a {
  display: inline-block;
  vertical-align: middle;
  width: 95px;
  height: 73px;
}

.logout-image-container>a>.logout-image {
  margin-left: 25px;
  margin-top: 14px;
}

.logout-image-container>a>.logout-image {
  display: inline-block;
  width: 44px;
  height: 45px;
  background: transparent url(/images/logout.png) no-repeat center center;
}

.logout-image-container:hover>a>.logout-image {
  background-image: url(/images/logout_hover.png);
}

.settings-btn {
  margin-right: 5px;
}

.settings-btn:hover>a {
  color: #2b7fbb;
}

.settings-btn>a {
  font-size: 50px;
  color: #fff;
}

.navbar-company-switcher {
  float: right;
  height: 75px;
  padding: 15px 15px;
}

.navbar-inverse .navbar-toggle:hover,
.navbar-inverse .navbar-toggle:focus {
  background-color: transparent;
}

#left-menu {
  width: 100%;
}

@media (min-width: 768px) {
  .sidebar {
    width: 320px;
  }
}

@media (max-height: 650px) {
  #menu {
    width: 600px !important;
    z-index: 1001;
    padding-top: 0 !important;
  }

  .profile-card {
    float: right;
    width: 300px;
  }

  #left-menu {
    width: 298px;
  }
}

#left-menu.nav>li {
  text-align: left;
  width: 100%;
  color: #dfdfdf;
  text-transform: uppercase;
}

#left-menu.nav>li>a {
  padding-left: 30px;
  padding-right: 20px;
  background-image: none;
  background-color: #1e1e1e;
  border-bottom: 1px solid #383838;
  -webkit-box-shadow: none;
  box-shadow: none;
  color: #dfdfdf;
}

#left-menu.nav>li:last-child a {
  border-bottom: none;
}

#left-menu.nav>li>ul>li>a {
  padding-left: 40px;
  padding-right: 20px;
  background-image: none;
  background-color: #000;
  border-bottom: 1px solid #383838;
  -webkit-box-shadow: none;
  box-shadow: none;
  color: #dfdfdf;
}

#left-menu.nav>li>ul>li {
  text-align: right;
}

#left-menu.nav>li>ul>li.active>a {
  font-weight: bold;
  color: #fff;
}

#left-menu.nav>li:not(.collapsed)>a>.glyphicon-menu-right:before {
  content: "\e259";
}

#left-menu.nav>li.active {
  font-weight: bold;
}

#left-menu.nav>li.active>a {
  color: #fff;
}

#left-menu.nav .flags {
  position: absolute;
  right: 0;
  top: -6px;
}

.active-company-container {
  display: inline-block;
  vertical-align: middle;
}

.choose-company-text {
  display: inline-block;
  vertical-align: middle;
  font-size: 14px;
}

a.grey {
  color: #333;
}

.contact-help {
  background-color: rgb(218, 8, 19);
  text-align: center;
  margin-bottom: 30px;
  height: 22px;
}

.contact-help>a.btn {
  color: #222;
  font-weight: bold;
  line-height: 1.3;
}

.contact-help span {
  vertical-align: middle;
}

.contact-help span.glyphicon {
  color: #666;
}

.main .alert {
  display: none;
}

.visible-alerts .alert {
  display: block;
}

#projects .radio,
#workers .radio,
#teams .radio {
  white-space: nowrap;
  min-width: 100%;
  overflow: auto;
}

.progress-container {
  height: 62px;
  background: rgb(246, 248, 249);
  background: linear-gradient(to bottom,
      rgba(250, 250, 250, 1) 0%,
      rgba(238, 238, 238, 1) 25%,
      rgba(250, 250, 250, 1) 50%,
      rgba(238, 238, 238, 1) 75%,
      rgba(250, 250, 250, 1) 100%);
  box-shadow: 2px 2px 2px #666;
  border: 1px solid #dadada;
  color: #666666;
  font-size: 12px;
  margin-bottom: 15px;
  width: 100%;
}

.progress-container>div {
  float: left;
  height: 100%;
  display: table;
}

.progress-container>div:first-child {
  width: 146px;
  padding-left: 10px;
  padding-right: 10px;
  border-right: 1px dashed #ff595b;
}

.progress-container>div .content {
  display: table-cell;
  vertical-align: middle;
}

.progress-container>div .content>.glyphicon {
  margin-right: 10px;
  margin-left: -10px;
}

.progress-container>div:nth-child(2) {
  width: 290px;
  position: relative;
  height: 100%;
  border-right: 1px dashed #3fc06d;
}

.progress-container>div:nth-child(2) .fifty_percent {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  border-right: 1px dashed #fcad2c;
  height: 100%;
}

.progress-container>div:nth-child(2) .progress_bar {
  position: relative;
  height: 30px;
  width: 290px;
  border: 1px solid #9ad6b0;
  background-color: gray;
  background-image: url(/images/stripe_bg_ccc.png);
  text-align: center;
  margin-top: 17px;
  margin-left: -1px;
  line-height: 28px;
  color: #329a65;
}

.progress-container>div:nth-child(2) .progress_bar .progress_stripe {
  float: left;
  height: 28px;
  background: #c0f3d4;
  background: linear-gradient(to bottom,
      rgba(192, 243, 212, 1) 0%,
      rgba(155, 215, 177, 1) 100%);
}

.progress-container>div:nth-child(2) .progress_bar .progress_stripe.contract {
  float: left;
  height: 28px;
  background: #c0f3d4;
  background: linear-gradient(to bottom,
      rgba(192, 243, 212, 1) 0%,
      rgba(155, 215, 177, 1) 100%);
}

.progress-container>div:nth-child(2) .progress_bar .progress_stripe.additional {
  float: left;
  height: 28px;
  background: #c0f3d4;
  background: linear-gradient(to bottom,
      rgba(92, 243, 212, 1) 0%,
      rgba(55, 215, 177, 1) 100%);
}

.progress-container>div:nth-child(2) .progress_bar .progress_stripe.driver100 {
  float: left;
  height: 28px;
  background: #c0f3d4;
  background: linear-gradient(to bottom,
      rgba(12, 23, 212, 1) 0%,
      rgba(155, 25, 17, 1) 100%);
}

.progress-container>div:nth-child(2) .progress_bar .progress_stripe.driver200 {
  float: left;
  height: 28px;
  background: #c0f3d4;
  background: linear-gradient(to bottom,
      rgba(19, 243, 12, 1) 0%,
      rgba(15, 25, 17, 1) 100%);
}

.progress-container>div:nth-child(2) .progress_bar .value {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  height: 100%;
}

.progress-container>div:nth-child(3) {
  width: 122px;
  border-right: 1px dashed #ccc;
}

.progress-container>div:nth-child(4) {
  width: auto;
  border-right: 0;
  padding: 0 10px;
}

.table td:not(.text-left):not(.text-right),
.table th:not(.text-left):not(.text-right) {
  text-align: center;
}

.table td,
.table th {
  font-size: 12px;
}

.table td input,
.table td select {
  font-size: 12px;
  padding-top: 2px;
  padding-bottom: 2px;
}

.table th:not(.wrap) {
  white-space: nowrap;
}

.glyphicon.glyphicon-circle:before {
  content: "\25cf";
  vertical-align: text-top;
}

#timestudy-form .form-control {
  margin-bottom: 5px;
  margin-top: 5px;
}

#timestudy-form .col-lg-6 {
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
}

#timestudy-form div {
  background-color: transparent;
  -moz-transition: background-color 2s;
  -webkit-transition: background-color 2s;
  -o-transition: background-color 2s;
  transition: background-color 2s;
}

#timestudy-form div.new {
  background-color: #c0f3d4;
  -moz-transition: none;
  -webkit-transition: none;
  -o-transition: none;
  transition: none;
}

.year-changer {
  display: inline-block;
}

.year-changer .year-prev,
.year-changer .year-next {}

.year-changer .year-current {
  width: 80px;
  margin: 0 3px;
}

#graphs .panel-default {
  border-top: none;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

#countries-chart-data th,
#countries-chart-data td {
  padding: 4px 8px;
  border: none;
}

#countries-chart-data thead tr:first-child th {
  border: 1px solid #666;
}

#countries-chart-data td:first-child,
#countries-chart-data th:first-child {
  border-left: 1px solid #666;
}

#countries-chart-data td:last-child,
#countries-chart-data th:last-child {
  border-right: 1px solid #666;
}

#countries-chart-data .empty {
  border: none !important;
}

#countries-chart-data thead tr:nth-child(2) th {
  border-top: 1px solid #666;
  border-bottom: 1px solid #0b97c4;
}

#countries-chart-data tfoot th {
  border-bottom: 1px solid #666;
  border-top: 1px solid #0b97c4;
}

#countries-chart-data tbody tr:hover {
  background-color: #fafafa;
}

#countries-chart-data td:hover {
  background-color: #eee;
}

#total-chart-data tbody tr:hover {
  background-color: #fafafa;
}

#bonuses-chart-data tr td {
  border-color: #0b97c4;
  padding: 0;
}

a.no-style {
  color: inherit;
}

#bonuses-chart-data [data-toggle="collapse"] .expand-icon:before {
  content: "\2212";
}

#bonuses-chart-data [data-toggle="collapse"].collapsed .expand-icon:before {
  content: "\002b";
}

.btn-xxs,
.btn-group-xxs>.btn {
  padding: 1px 1px;
  font-size: 10px;
  line-height: 1;
  border-radius: 3px;
}

#bonuses-chart-data .btn-xxs {
  vertical-align: top;
  color: #666;
}

/* przycisk z plusem */
.btn.btn-to-new {
  padding: 2px 30px 2px 10px;
  position: relative;
  overflow: visible;
}

.btn.btn-to-new:after {
  content: " ";
  height: 30px;
  width: 30px;
  background: transparent url(/images/add.png) no-repeat center center;
  background-size: contain;
  position: absolute;
  right: -15px;
  top: -3px;
}

.btn.btn-lg.btn-to-new:after {
  top: -1px;
}

.btn.btn-to-new:hover:after {
  background-image: url(/images/add_hover.png);
}

/* przycisk z plusem - koniec */

/* przycisk xls */
.btn.btn-xls {
  padding: 1px 20px 1px 10px;
  position: relative;
  overflow: visible;
  margin-right: 15px;
}

.btn.btn-lg.btn-xls {
  margin-right: 18px;
}

.btn.btn-xls:after {
  content: " ";
  height: 30px;
  width: 30px;
  background: transparent url(/images/xls.png) no-repeat center center;
  background-size: contain;
  position: absolute;
  right: -15px;
  top: -5px;
}

.btn.btn-lg.btn-xls:after {
  height: 36px;
  width: 36px;
  right: -18px;
  top: -5px;
}

.btn.btn-xls:hover:after {
  background-image: url(/images/xls_hover.png);
}

.panel-heading .btn-xls {
  padding: 6px 20px 6px 12px;
  margin-right: 5px;
}

.panel-heading .btn-xls:after {
  top: 0;
}

/* przycisk xls - koniec */

/* przycisk close project */
.btn.btn-close-project {
  padding: 2px 20px 2px 10px;
  position: relative;
  overflow: visible;
}

.btn.btn-close-project:after {
  content: " ";
  height: 39px;
  width: 30px;
  background: transparent url(/images/stats_sticker.png) no-repeat center center;
  background-size: contain;
  position: absolute;
  right: -15px;
  top: -10px;
}

.btn.btn-close-project:hover:after {
  background-image: url(/images/stats_sticker_hover.png);
}

/* przycisk close project - koniec */

.btn.red {
  background: #ed464d;
  background-image: -webkit-linear-gradient(top, #ed464d, #df2d37);
  background-image: -moz-linear-gradient(top, #ed464d, #df2d37);
  background-image: -ms-linear-gradient(top, #ed464d, #df2d37);
  background-image: -o-linear-gradient(top, #ed464d, #df2d37);
  background-image: linear-gradient(to bottom, #ed464d, #df2d37);
  font-family: Arial;
  color: #ffffff;
  text-decoration: none;
}

.btn.red:hover {
  background: #df2d37;
}

.btn.grey {
  background: #cacaca;
  background-image: -webkit-linear-gradient(top, #cacaca, #c4c4c4);
  background-image: -moz-linear-gradient(top, #cacaca, #c4c4c4);
  background-image: -ms-linear-gradient(top, #cacaca, #c4c4c4);
  background-image: -o-linear-gradient(top, #cacaca, #c4c4c4);
  background-image: linear-gradient(to bottom, #cacaca, #c4c4c4);
  font-family: Arial;
  color: #000;
  text-decoration: none;
}

.btn.grey:hover {
  background: #c4c4c4;
}

.btn.no-radius {
  border-radius: 0;
}

.rect {
  border: 1px solid;
  padding: 5px 10px;
}

.rect.red {
  border-color: #df2d37;
}

.text-red {
  color: #df2d37;
}

.rect.red.hidden {
  border-color: #fff;
  border-width: 10px;
}

.rect.red.selected {
  -webkit-transition: 0.5s ease;
  -moz-transition: 0.5s ease;
  -ms-transition: 0.5s ease;
  -o-transition: 0.5s ease;
  transition: 0.5s ease;
  border-width: 1px;
  border-color: #df2d37;
}

.summary-box .workers,
.summary-box .total {
  border-right: 1px dashed #ccc;
  height: 100%;
  min-height: 100px;
}

.summary-box .total {
  font-size: 24px;
}

.summary-box .driver {
  font-size: 12px;
}

.flex {
  display: flex;
}

.flex.text-center {
  justify-content: space-around;
}

.flex .flex-middle {
  align-self: center;
  flex: 0 0 auto;
}

/* nowe timestudy */
.project-type-label {
  text-transform: uppercase;
  font-size: 18px;
  color: #999;
  line-height: 80px;
}

.b-select-item {
  display: inline-block;
  padding-left: 55px;
  padding-right: 10px;
  margin-right: 20px;
  min-width: 200px;
  min-height: 60px;
  line-height: 60px;
  white-space: nowrap;
  text-transform: uppercase;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  background: url(/images/b-select-empty.png) left 10px center no-repeat;
  -webkit-transition: 0.5s ease;
  -moz-transition: 0.5s ease;
  -ms-transition: 0.5s ease;
  -o-transition: 0.5s ease;
  transition: 0.5s ease;
  border-style: solid;
  border-width: 10px;
  border-color: #fff;
  cursor: pointer;
  -webkit-user-select: none;
}

.b-select-item.selected {
  background: url(/images/b-select-checked.png) left 10px center no-repeat;
  border-width: 1px;
  border-color: #df2d37;
  -webkit-transition: 0.5s ease;
  -moz-transition: 0.5s ease;
  -ms-transition: 0.5s ease;
  -o-transition: 0.5s ease;
  transition: 0.5s ease;
}

.timestudy-select {
  font-size: 18px;

  width: 430px !important;
}

.timestudy-input,
input[type="text"].form-control.timestudy-input,
textarea.timestudy-input {
  height: 60px;
  font-size: 18px;
  width: 430px !important;
  border: 1px solid;
  border-color: #df2d37;
}

.timestudy-select.select2-dropdown-open {}

.effect-container {
  float: left;
  border-style: solid;
  border-width: 10px;
  border-color: #fff;
  margin-left: -10px;
}

.effect-container.selected {
  border-width: 1px;
  border-color: #df2d37;
  -webkit-transition: 0.5s ease;
  -moz-transition: 0.5s ease;
  -ms-transition: 0.5s ease;
  -o-transition: 0.5s ease;
  transition: 0.5s ease;
  margin: 9px;
  margin-left: -1px;
}

.timestudy-select .select2-choice,
.timestudy-select .select2-choice:hover {
  line-height: 60px;
  height: 60px;
  -webkit-border-radius: 0;
  -moz-border-radius: 0;
  border-radius: 0;
  box-shadow: none;
  -webkit-box-shadow: none;
}

.timestudy-select .select2-choice {
  border-color: #000;
}

.effect-container.selected.selected .select2-choice {
  border-color: transparent;
  outline: none;
}

.timestudy-select .select2-choice .select2-chosen {
  padding-top: 0;
}

.timestudy-select.select2-container .select2-choice .select2-arrow b,
.timestudy-select.select2-container .select2-choice div b {
  background-position: 0 15px;
}

.timestudy-select.select2-dropdown-open .select2-choice .select2-arrow b,
.timestudy-select.select2-dropdown-open .select2-choice div b {
  background-position: -18px 15px;
}

.loading-cube {
  width: 84px;
  height: 84px;
  margin: 0 auto;
  margin-top: 56px;
  margin-bottom: 56px;
  position: relative;
  transform: rotateZ(45deg);
  -o-transform: rotateZ(45deg);
  -ms-transform: rotateZ(45deg);
  -webkit-transform: rotateZ(45deg);
  -moz-transform: rotateZ(45deg);
}

.loading-cube .cube {
  position: relative;
  transform: rotateZ(45deg);
  -o-transform: rotateZ(45deg);
  -ms-transform: rotateZ(45deg);
  -webkit-transform: rotateZ(45deg);
  -moz-transform: rotateZ(45deg);
}

.loading-cube .cube {
  float: left;
  width: 50%;
  height: 50%;
  position: relative;
  transform: scale(1.1);
  -o-transform: scale(1.1);
  -ms-transform: scale(1.1);
  -webkit-transform: scale(1.1);
  -moz-transform: scale(1.1);
}

.loading-cube .cube:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(223, 45, 54);
  animation: loading-cube-fold 2.76s infinite linear both;
  -o-animation: loading-cube-fold 2.76s infinite linear both;
  -ms-animation: loading-cube-fold 2.76s infinite linear both;
  -webkit-animation: loading-cube-fold 2.76s infinite linear both;
  -moz-animation: loading-cube-fold 2.76s infinite linear both;
  transform-origin: 100% 100%;
  -o-transform-origin: 100% 100%;
  -ms-transform-origin: 100% 100%;
  -webkit-transform-origin: 100% 100%;
  -moz-transform-origin: 100% 100%;
}

.loading-cube .cube-c2 {
  transform: scale(1.1) rotateZ(90deg);
  -o-transform: scale(1.1) rotateZ(90deg);
  -ms-transform: scale(1.1) rotateZ(90deg);
  -webkit-transform: scale(1.1) rotateZ(90deg);
  -moz-transform: scale(1.1) rotateZ(90deg);
}

.loading-cube .cube-c3 {
  transform: scale(1.1) rotateZ(180deg);
  -o-transform: scale(1.1) rotateZ(180deg);
  -ms-transform: scale(1.1) rotateZ(180deg);
  -webkit-transform: scale(1.1) rotateZ(180deg);
  -moz-transform: scale(1.1) rotateZ(180deg);
}

.loading-cube .cube-c4 {
  transform: scale(1.1) rotateZ(270deg);
  -o-transform: scale(1.1) rotateZ(270deg);
  -ms-transform: scale(1.1) rotateZ(270deg);
  -webkit-transform: scale(1.1) rotateZ(270deg);
  -moz-transform: scale(1.1) rotateZ(270deg);
}

.loading-cube .cube-c2:before {
  animation-delay: 0.35s;
  -o-animation-delay: 0.35s;
  -ms-animation-delay: 0.35s;
  -webkit-animation-delay: 0.35s;
  -moz-animation-delay: 0.35s;
}

.loading-cube .cube-c3:before {
  animation-delay: 0.69s;
  -o-animation-delay: 0.69s;
  -ms-animation-delay: 0.69s;
  -webkit-animation-delay: 0.69s;
  -moz-animation-delay: 0.69s;
}

.loading-cube .cube-c4:before {
  animation-delay: 1.04s;
  -o-animation-delay: 1.04s;
  -ms-animation-delay: 1.04s;
  -webkit-animation-delay: 1.04s;
  -moz-animation-delay: 1.04s;
}

@keyframes loading-cube-fold {

  0%,
  10% {
    transform: perspective(158px) rotateX(-180deg);
    opacity: 0;
  }

  25%,
  75% {
    transform: perspective(158px) rotateX(0deg);
    opacity: 1;
  }

  90%,
  100% {
    transform: perspective(158px) rotateY(180deg);
    opacity: 0;
  }
}

@-o-keyframes loading-cube-fold {

  0%,
  10% {
    -o-transform: perspective(158px) rotateX(-180deg);
    opacity: 0;
  }

  25%,
  75% {
    -o-transform: perspective(158px) rotateX(0deg);
    opacity: 1;
  }

  90%,
  100% {
    -o-transform: perspective(158px) rotateY(180deg);
    opacity: 0;
  }
}

@-ms-keyframes loading-cube-fold {

  0%,
  10% {
    -ms-transform: perspective(158px) rotateX(-180deg);
    opacity: 0;
  }

  25%,
  75% {
    -ms-transform: perspective(158px) rotateX(0deg);
    opacity: 1;
  }

  90%,
  100% {
    -ms-transform: perspective(158px) rotateY(180deg);
    opacity: 0;
  }
}

@-webkit-keyframes loading-cube-fold {

  0%,
  10% {
    -webkit-transform: perspective(158px) rotateX(-180deg);
    opacity: 0;
  }

  25%,
  75% {
    -webkit-transform: perspective(158px) rotateX(0deg);
    opacity: 1;
  }

  90%,
  100% {
    -webkit-transform: perspective(158px) rotateY(180deg);
    opacity: 0;
  }
}

@-moz-keyframes loading-cube-fold {

  0%,
  10% {
    -moz-transform: perspective(158px) rotateX(-180deg);
    opacity: 0;
  }

  25%,
  75% {
    -moz-transform: perspective(158px) rotateX(0deg);
    opacity: 1;
  }

  90%,
  100% {
    -moz-transform: perspective(158px) rotateY(180deg);
    opacity: 0;
  }
}

.added_work_type {
  margin-bottom: 5px;
}

.saved-timestudy {
  margin-bottom: 5px;
  margin-right: 5px;
}

.timestudy-remove.selected {
  background: #ccc;
}

#timestudy-form-view .alert {
  display: block;
}

.effect-container {
  background: #e02c26;
  font-weight: 100;
}

.effect-container svg {
  height: 60px;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

.effect-container rect {
  fill: none;
  stroke: #df2d37;
  stroke-width: 2;
  stroke-dasharray: 422, 0;
}

.effect-container:hover {
  background: rgba(225, 51, 45, 0);
  font-weight: 900;
  letter-spacing: 1px;
}

.effect-container:hover rect {
  stroke-width: 5;
  stroke-dasharray: 15, 310;
  stroke-dashoffset: 48;
  -webkit-transition: all 1.35s cubic-bezier(0.19, 1, 0.22, 1);
  transition: all 1.35s cubic-bezier(0.19, 1, 0.22, 1);
}

.work-delete-btn {
  position: absolute;
  right: 0;
  top: 12px;
  color: #df2d37;
}

.driver-hours-container:empty {
  display: none;
}

/*----------*/
input[type="text"].form-control,
input[type="number"].form-control,
input[type="password"].form-control,
select.form-control,
.select2-container-multi.form-control {
  display: inline-block;
  padding-left: 5px;
  padding-right: 10px;
  margin-right: 20px;
  min-height: 40px;
  height: 40px;
  line-height: 40px;
  white-space: nowrap;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-transition: 0.5s ease;
  -moz-transition: 0.5s ease;
  -ms-transition: 0.5s ease;
  -o-transition: 0.5s ease;
  transition: 0.5s ease;
  border-style: solid;
  border-width: 1px;
  cursor: pointer;
  -webkit-user-select: none;
  border-radius: 0;
}

.select2-container-multi.form-control {
  padding: 0;
}

textarea.form-control {
  border-radius: 0;
}

:not(.has-error)>input[type="text"].form-control,
:not(.has-error)>input[type="number"].form-control,
:not(.has-error)>input[type="password"].form-control,
:not(.has-error)>textarea.form-control,
:not(.has-error)>select.form-control {
  border-color: #000;
}

.input-group-addon {
  border-radius: 0;
}

:not(.has-error)>.input-group-addon {
  border-color: #000;
}

.select2-container.form-control {
  height: auto;
}

input[type="text"].form-control:hover,
input[type="number"].form-control:hover,
input[type="password"].form-control:hover,
textarea.form-control:hover,
select.form-control:hover,
.select2-choice:hover,
.select2-container-multi .select2-choices:hover {
  border-width: 3px;
  border-color: #df2d37;
  -webkit-transition: 0.1s ease;
  -moz-transition: 0.1s ease;
  -ms-transition: 0.1s ease;
  -o-transition: 0.1s ease;
  transition: 0.1s ease !important;
}

td input[type="text"].form-control,
td input[type="number"].form-control,
td input[type="password"].form-control,
select.form-control {
  min-height: 20px;
  line-height: 20px;
  border-color: #cccccc;
}

.classify-for-bonus {
  -webkit-user-select: none;
  font-weight: normal;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-style: normal;
}

.classify-for-bonus * {
  vertical-align: middle;
  margin: 0 !important;
}

.classify-for-bonus .glyphicon {
  cursor: pointer;
}

td.action {
  white-space: nowrap;
}

@media (max-width: 980px) {

  .summary-box.flex,
  .summary-box .flex {
    display: block;
  }

  .summary-box .total {
    border: none;
  }
}

.summary-box .row.btn {
  display: block;
  margin-right: -5px;
  margin-bottom: 5px;
  text-align: left;
  font-size: 13px;
  white-space: normal;
}

.summary-box .row .delete-saved-timestudy {
  margin-right: 8px;
}

.navbar-logo {
  width: 346px;
  height: 52px;
  margin: 10px 0 0 30px;
}

.loading-box.overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.7);
  z-index: 9999;
}

#calculate_bonus_container {
  position: relative;
}

.bootstrap-datetimepicker-widget table td.selected,
.bootstrap-datetimepicker-widget table td.active.selected,
.bootstrap-datetimepicker-widget table td.selected:hover {
  background-color: #8bda98;
}

.bootstrap-datetimepicker-widget table td.pending,
.bootstrap-datetimepicker-widget table td.active.pending,
.bootstrap-datetimepicker-widget table td.selected.pending,
.bootstrap-datetimepicker-widget table td.pending:hover {
  background-color: #fddc54;
}

.bootstrap-datetimepicker-widget table td.sunday,
.bootstrap-datetimepicker-widget table td.active.sunday,
.bootstrap-datetimepicker-widget table td.sunday:hover {
  color: red;
}

.btn.red small {
  font-size: 12px;
  display: block;
}

#report_table .btn {
  margin-right: 5px;
  margin-bottom: 3px;
}

.bold {
  font-weight: bold;
}

.timestudy-work-type {
  text-transform: uppercase;
}

.table {
  table-layout: fixed;
}

.summary-send,
.report-continue {
  position: relative;
}

.step-info {
  position: absolute;
  top: -3px;
  right: 1px;
}

#report_table .report-continue {
  margin: 4px 0 0 0;
}

.weight-normal {
  font-weight: normal !important;
}

.form-inline .error_list {
  display: inline-block;
}

.borga-icon {
  display: inline-block;
  width: 40px;
  height: 30px;
}

.borga-icon img,
.flagstrap-icon img {
  width: 100%;
  height: 100%;
}

#project_report_problem_modal input[type="file"] {
  margin-bottom: 5px;
}

.after-pager {
  margin: 24px 0 20px 10px;
}

.team-block {
  margin-top: 15px;
  color: #353535;
  font-size: 13px;
}

.team-block>div {
  border: 1px solid #353535;
  background-color: #fff;
}

.team-block .header {
  padding: 3px 5px;
  font-weight: bold;
  font-size: 14px;
  overflow: hidden;
}

.team-block .header .photo {
  display: inline-block;
  vertical-align: bottom;
  width: 105px;
  margin-right: 50px;
}

.team-block .header .info {
  display: inline-block;
  vertical-align: bottom;
}

.team-block .details {
  margin-top: 5px;
  padding: 10px 5px;
}

.team-block .details .details-head {
  border-bottom: 1px solid;
  font-weight: bold;
  margin-bottom: 3px;
  overflow: hidden;
}

.team-block .details .worker-row {
  padding: 5px 0;
  height: 34px;
  line-height: 24px;
}

.team-block .details .worker-row:hover {
  background: rgba(255, 255, 255, 0.1);
}

.team-block .details .events-number {
  color: #222;
  display: inline-block;
  width: 24px;
  height: 24px;
  background-color: #d83433;
  text-align: center;
  line-height: 24px;
  vertical-align: middle;
  margin: 0;
}

.team-block .details .events-number a {
  color: #222;
}

.team-block .details .events-number.green {
  background-color: #0b850c;
}

.team-block .details .action {
  color: #222;
  line-height: normal;
}

.minimize .team-block .details {
  display: none;
}

.minimize .team-block .actions {
  display: none;
}

.minimize .team-block {
  margin-top: 5px;
  display: flex;
}

.minimize .team-block .header {
  display: flex;
  align-items: center;
  justify-content: center;
}

.minimize .team-block .header .photo {
  width: 50px;
  margin-right: 10px;
}

.minimize .team-block .header .team-label {
  display: none;
}

.minimize.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#new-team-btn,
#new-worker-btn,
#new-viewer-btn {
  position: absolute;
  left: 170px;
  top: -10px;
}

.relative {
  position: relative;
}

.team-block .modal {
  color: #222;
}

.modal-open .modal.with-datepicker {
  overflow-y: visible;
  overflow-x: visible;
}

.modal-open .modal .with-datepicker {
  overflow-y: visible;
  overflow-x: visible;
}

.te-info .col-1 {
  width: 300px;
  display: inline-block;
  vertical-align: middle;
}

.te-info .col-2 {
  width: 85px;
  display: inline-block;
  vertical-align: middle;
}

.te-info .col-3 {
  display: inline-block;
  vertical-align: middle;
}

.te-table {
  table-layout: fixed;
}

#events-table {
  position: relative;
  z-index: 1;
}

#events-table .te-row {
  background: url(/images/timetable_bg.png) repeat-x;
  background-position-x: 1px;
  background-position-y: 0px;
  box-sizing: border-box;
  width: 100%;
  height: 25px;
}

#events-table .te-row.first-in-team:not(:first-child) {
  background-image: url(/images/timetable_bg_top.png),
    url(/images/timetable_bg_no_border.png);
}

#events-table .te-row.add-event-row .te-cell {
  height: 100%;
}

#events-table .te-row.row-offset-1 {
  background-position-x: 61px;
}

#events-table .te-row.row-offset-2 {
  background-position-x: 91px;
}

#events-table .te-row.row-offset-3 {
  background-position-x: 121px;
}

#events-table .te-row.row-offset-4 {
  background-position-x: 151px;
}

#events-table .te-row.row-offset-5 {
  background-position-x: 181px;
}

#events-table .te-row.row-offset-6 {
  background-position-x: 211px;
}

#events-table .te-row.row-offset-7 {
  background-position-x: 31px;
}

#events-table .te-row:last-child {
  border-bottom: 1px solid;
}

#events-table .te-cell {
  float: left;
  height: 25px;
  width: 30px;
}

.te-table .te-num {
  float: left;
  border-right: 1px transparent !important;
  width: 30px !important;
  text-align: center;
}

.te-table .te-workers,
.te-table .te-names {
  float: none;
}

#te-workers-table {}

#te-workers-table .te-group {
  clear: both;
  display: flex;
}

#te-workers-table .te-group.planning-team {
  position: relative;
  outline: 2px solid #00aff0;
  outline-offset: -2px;
  color: #0075ff;
}

#te-workers-table .te-group.planning-team.planning-project:not(.expanded) {
  display: none;
}

#te-workers-table .te-group.planning-team.planning-project:not(.expanded):first-child {
  display: block;
}

#te-workers-table .te-group.planning-team .planning-arrow {
  position: absolute;
  right: 100%;
  top: 0;
  width: 25px;
  background: #00aff0;
  cursor: pointer;
  height: min(100%, 70px);
  font-size: 30px;
  border: none;
  display: flex;
  align-items: center;
}

#te-workers-table .te-group.planning-team .planning-arrow::before {
  content: "";
  color: white;
  border: 3px solid currentColor;
  border-width: 0px 3px 3px 0;
  width: 14px;
  height: 14px;
  transform: rotate(45deg);
  transform-origin: center center;
}

#te-workers-table .te-group.planning-team.expanded .planning-arrow::before {
  content: "";
  transform: rotate(-135deg);
}

#te-workers-table .te-group.planning-team .show-rating,
#te-workers-table .te-group.planning-team .te-actions a {
  display: none;
}

#te-workers-table .te-cell.te-num {
  display: flex;
  height: auto;
  align-items: center;
  justify-content: center;
}

#te-workers-table .te-group.planning-team:not(.expanded) .te-workers .te-actions {
  display: none;
}

#te-workers-table .te-group.planning-team:not(.expanded) .te-workers .te-team {
  border-bottom: 1px solid #222 !important;
  height: 25px !important;
}

#te-workers-table .te-group.planning-team.planning-project:not(.expanded) .te-workers .te-team {
  position: relative;
  width: auto;
}

#te-workers-table .te-group.planning-team.planning-project:not(.expanded) .te-workers .te-team::after {
  content: "Planning projects";
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  background: white;
  color: inherit;
  z-index: 1;
  font-weight: bold;
}

#events-table .te-rows-group.planning-team {
  position: relative;
}

#events-table .te-rows-group.planning-team:not(.expanded) .te-row {
  display: none;
}

#events-table .te-rows-group.planning-team .te-row.first-in-team {
  position: relative;
  display: block;
}

#events-table .te-rows-group.planning-team.planning-project.expanded {
  outline: none;
}

#events-table .te-rows-group.planning-team.planning-project:not(.expanded) {
  display: none;
}

#events-table .te-rows-group.planning-team.planning-project:not(.expanded):first-child {
  display: block;
}

#events-table .te-rows-group.planning-team.planning-project:not(.expanded):first-child .te-row:first-child {
  display: block;
}

#te-workers-table .te-group.planning-team::after {
  content: "Planned projects";
  position: absolute;
  top: 0;
  left: 100%;
  width: calc(100vw - 350px);
  bottom: 0;
  background: white;
  outline: 2px solid currentColor;
  outline-offset: -2px;
  color: #00aff0;
  text-align: center;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  max-width: var(--te-width, 100vw);
}

#te-workers-table .te-group.planning-team.expanded::after {
  content: "";
  z-index: 0;
  background: unset;
  pointer-events: none;
}

#te-workers-table .te-group.planning-team.planning-project.expanded {
  outline: none;
}

#te-workers-table .te-group.planning-team.planning-project.expanded::after {
  outline: none;
}

#te-workers-table .te-group.planning-team:not(.expanded) .te-worker {
  display: none;
}

#te-workers-table .te-cell.te-worker,
#te-workers-table .te-cell.te-team,
#te-workers-table .te-cell.te-actions,
#te-workers-table .te-cell.te-num {
  border-bottom: 1px solid transparent !important;
}

#te-workers-table .te-team {
  position: relative;
  overflow: visible !important;
}

#te-workers-table .te-team strong {
  overflow: hidden;
  display: inline-block;
  text-overflow: ellipsis;
  max-width: calc(100% - 15px);
}

#te-workers-table .avatar {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 100%;
  border: 1px solid black;
  left: calc(100% + 5px);
  box-shadow: 0 0 10px rgb(0 0 0 / 40%);
  width: 150px;
  height: 150px;
  z-index: 999;
  background: white;
  overflow: hidden;
}

#te-workers-table .avatar img {
  max-width: 100%;
}

#te-workers-table .te-team:hover .avatar {
  display: block;
}

#te-workers-table .te-group:last-child .te-cell.te-num,
#te-workers-table .te-group:last-child .te-cell.te-actions,
#te-workers-table .te-group:last-child .te-cell.te-worker,
#te-workers-table .te-group:last-child .te-cell.te-team {
  border-bottom: 1px solid #222 !important;
}

#te-controls-months .te-cell {
  height: 25px;
  line-height: 23px;
  text-align: right;
  border: 1px solid transparent !important;
  border-right: 1px solid #222 !important;
  padding: 2px 5px;
}

#te-controls-months .te-cell.te-num {
  border: 1px transparent !important;
}

#te-controls-months .te-names .te-cell {
  width: 233px;
}

#te-workers-table .te-cell {
  width: 203px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0px 5px;
  height: 25px;
}

.te-workers .te-cell strong,
.te-workers .te-cell .show-rating {
  vertical-align: middle;
}

#te-controls-days .months,
#te-controls-days .weeks,
#te-controls-days .days {
  overflow: hidden;
  clear: right;
}

#te-controls-days .months>div,
#te-controls-days .weeks>div,
#te-controls-days .days>div,
#te-controls-days .demand>div,
#te-controls-days .capacity>div,
#te-controls-days .diff>div {
  float: left;
  border: 1px solid #222;
  border-right: 1px solid transparent !important;
  padding: 2px 5px;
  text-align: center;
  height: 25px;
  width: 30px;
}

#te-controls-days .diff>div.red {
  color: red;
}

#te-controls-days .diff>div.green {
  color: green;
}

#te-controls-days .months>div,
#te-controls-days .weeks>div,
#te-controls-days .days>div,
#te-controls-days .demand>div,
#te-controls-days .capacity>div {
  border-bottom: 1px solid transparent !important;
}

#te-controls-days .months>div:first-child,
#te-controls-days .weeks>div:first-child,
#te-controls-days .days>div:first-child,
#te-controls-days .demand>div:first-child,
#te-controls-days .capacity>div:first-child,
#te-controls-days .diff>div:first-child {
  border-left: 1px solid transparent !important;
}

#te-controls-days .months>div:last-child,
#te-controls-days .weeks>div:last-child,
#te-controls-days .days>div:last-child,
#te-controls-days .demand>div:last-child,
#te-controls-days .capacity>div:last-child,
#te-controls-days .diff>div:last-child {
  border-left: 1px solid #222 !important;
}

#te-workers-table .te-cell.text-right {
  text-align: right;
}

#te-workers-table .te-cell:not(.no-border) {
  border: 1px solid #222;
}

#te-workers-table .te-cell.no-border {
  border: 1px solid transparent;
  border-right: 1px solid #222;
}

.te-table td {
  padding: 2px 5px;
  text-align: center;
  height: 25px;
}

.te-table td.text-right {
  text-align: right;
}

.te-table td:not(.no-border) {
  border: 1px solid #222;
}

.te-table td.no-border {
  border: 1px solid transparent;
  border-right: 1px solid #222;
}

.te-table td.no-border.no-border-2 {
  border-right: 1px solid transparent;
}

.te-table td.no-border.leave-bottom-border {
  border-bottom: 1px solid #222;
}

.te-table .te-timetable td {
  border: 1px solid #ddd;
}

.te-table-container {
  white-space: nowrap;
  margin-top: 40px;
  max-width: 100%;
  padding-left: 50px;
}

td.te-day {
  width: 30px;
}

.te-day.today {
  padding: 0px !important;
}

.te-day.today>span {
  background-color: #cccccf;
  display: block;
  height: 25px;
  line-height: 20px;
  width: 30px;
  outline: 2px solid #34cc67;
  outline-offset: -2px;
  padding: 2px 5px;
  font-weight: bold;
}

.te-day-bg {
  width: 30px;
}


.te-day-bg.with-vr {
  border-right: 1px solid #222 !important;
}

.te-day-bg.past {
  background-color: #f0f0f0;
}

.te-day-bg.today {
  background-color: rgba(204, 204, 207, 0.65);
}

.day-interact {
  cursor: pointer;
}

.te-events.readonly .day-interact {
  cursor: default !important;
}

div.te-table {
  vertical-align: top;
  margin: 0;
  padding: 0;
  position: relative;
}

.te-events-overlay .te-table td {
  border: none;
  padding: 0;
}

.te-events .event {
  height: 25px;
  display: block;
  background-color: hsl(var(--bg-h) var(--bg-s) var(--bg-l));
}

.te-events .event:hover {
  z-index: 5;
  --bg-l: 70% !important;
}

.te-events .event.red,
.te-legend.red {
  --bg-h: 0deg;
  --bg-s: 99%;
  --bg-l: 70%;
  border: 1px solid #843534;
  color: #000;
}

.te-events .event.red:hover {
  --bg-l: 80% !important;
}

.te-events .event.to-accept,
.te-legend.to-accept {
  --bg-h: 0deg;
  --bg-s: 92%;
  --bg-l: 86%;
  border: 1px solid #843534;
  color: #000;
}

.te-events .event>a {
  display: block;
  margin: 0 5px;
  color: #222;
  text-decoration: none;
  position: relative;
  height: 100%;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.te-events .event.red>a {
  color: inherit;
}

.te-events .event .flagstrap-icon {
  transform: scale(1.2);
}

.te-event-status {
  display: inline-block;
  vertical-align: middle;
  color: #fff;
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  font-size: 10px;
  -webkit-transform: translateY(23px) rotate(90deg);
  -moz-transform: translateY(23px) rotate(90deg);
  -o-transform: translateY(23px) rotate(90deg);
  -ms-transform: translateY(23px) rotate(90deg);
  transform: translateY(23px) rotate(-270deg);
  transform-origin: right top;
  width: 23px;
  height: 14px;
}

.te-event-status.acc {
  background-color: #16a05d;
}

.te-event-status.den {
  background-color: #fe2a29;
}

.te-event-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  background: #d90a1e;
}

.te-events .event.green,
.te-legend.green {
  --bg-h: 89deg;
  --bg-s: 58%;
  --bg-l: 56%;
  border: none;
  color: #000;
}

.te-events .event.orange,
.te-legend.orange {
  --bg-h: 60deg;
  --bg-s: 100%;
  --bg-l: 50%;
  border: none;
  color: #000;
}

.te-events .event.grey,
.te-legend.grey {
  --bg-h: 0deg;
  --bg-s: 0%;
  --bg-l: 80%;
  border: none;
  color: #222;
}

.te-events .event.light-blue,
.te-legend.light-blue {
  --bg-h: 218deg;
  --bg-s: 89%;
  --bg-l: 63%;
  border: none;
  color: #222;
  outline: 1px solid #1a41ff;
  outline-offset: -1px;
}

.te-events.readonly .event,
.te-events .event.readonly {
  cursor: default !important;
}


.te-legend {
  display: inline-block;
  width: 25px;
  height: 25px;
  border: none !important;
  margin-bottom: 5px;
}

.te-legend-icon {
  font-size: 20px;
  font-style: italic;
  color: #0b97c4;
  font-weight: bold;
  display: inline-block;
  height: 25px;
  width: 25px;
  background: url(/images/info.png) no-repeat;
  background-size: contain;
  cursor: pointer;
  margin-top: 20px;
}

.te-legend-list {
  line-height: 15px;
}

.te-legend-list span {
  vertical-align: middle;
  display: inline-block;
}

.te-table-widget {
  position: relative;
}

.te-table-widget .scroll-container {
  position: relative;
  overflow: hidden;
  height: 100%;
  max-width: 100%;
  outline: none;
  direction: ltr;
  max-height: none;
}

.te-table-widget .scroll-container .scroll-content {
  position: relative;
  top: 0;
  left: 0;
  margin-bottom: 0;
  margin-right: 0;
  overflow: hidden;
  width: auto;
  height: auto;
  border-right: 1px solid;
  padding-bottom: 2px;
}

.te-table-widget .te-events-overlay {
  left: 0;
  margin-top: 150px;
  border-right: 1px solid;
}

.schedule-by-project .te-table-widget .te-events-overlay {
  margin-top: 150px;
}

.no-select {
  -webkit-user-select: none;
}

.event {
  position: relative;
}

.te-table td.te-actions {
  padding-top: 0;
  padding-bottom: 0;
}

.te-table td.te-actions>div {
  padding: 0;
  max-height: 25px;
  overflow: hidden;
}

.te-table .add-project-row td {
  border-bottom: 1px solid;
}

#project_te .error_list {
  display: inline-block;
  vertical-align: middle;
}

.modal.fix-position {
  position: fixed;
}

.btn.green3d,
.te-update-needed .btn.green3d {
  color: #fff;
  border: 2px #5cc87c outset;
  background-color: #17ab49;
  text-shadow: none;
  background-image: none;
}

.btn.green3d:hover,
.btn.green3d:active {
  color: #eee;
  border: 2px #5cc87c inset;
  background-color: #17ab49;
}

.btn.green3d.readonly {
  cursor: default;
  color: #eee;
}

.btn.green3d.readonly:hover,
.btn.green3d.readonly:active {
  color: #eee;
  background-color: #17ab49;
  border: 2px #5cc87c outset;
}

.btn.green3d.disabled,
.te-update-needed .btn.green3d.disabled {
  background-color: #e0e0e0;
  background-image: none;
  color: #222;
  border: 1px solid #cccccc;
}

.te-up-to-date .btn {}

.modal.auto {
  width: 500px !important;
}

.menu-btn {
  position: relative;
  float: left;
  padding: 9px 10px;
  margin-top: 2px;
  margin-right: 15px;
  margin-bottom: 2px;
  background-color: transparent;
  background-image: none;
  border: 1px solid transparent;
  border-radius: 4px;
}

.menu-btn:focus {
  outline: 0;
}

.menu-btn .icon-bar {
  display: block;
  min-width: 22px;
  width: 100%;
  height: 5px;
  border-radius: 1px;
  background-color: #666;
}

.menu-btn .icon-bar+.icon-bar {
  margin-top: 6px;
}

.menu-btn .text {
  display: block;
  margin-top: 4px;
}

#menu {
  position: absolute;
  top: 75px;
  padding-top: 15px;
  background-color: #f5f5f5;
  width: 320px;
  border: 1px solid #333;
  left: 0;
}

.navbar-container {
  display: flex;
  flex-wrap: wrap;
}

.navbar-header {
  align-self: flex-start;
}

#navbar {
  align-self: flex-end;
  flex: 0 0 auto;
}

.top-bar-extra {
  flex: 1;
  justify-content: center;
  align-items: center;
  display: flex;
  gap: 20px;
}

.team-block .btn {
  color: rgb(34, 34, 34);
}

.nav>li.collapse {
  display: none;
}

.nav>li.collapse.in {
  display: block;
}

.no-padding {
  padding: 0;
}

a.block {
  display: block;
}

.block100 {
  width: 100%;
  height: 100%;
}

.no-select a {
  text-decoration: none;
}

.te-left,
.te-right {
  padding-left: 10px !important;
  padding-right: 10px !important;
}

.avatar-change-btn {
  display: none !important;
  position: absolute;
  top: 48px;
  left: 50%;
  margin-top: -8px;
  margin-left: -25px;
  width: 50px;
}

.profile-card:hover .avatar-change-btn {
  display: inline-block !important;
}

.page-header {
  height: 56px;
  background-color: #000;
  color: #eaeaea;
  font-size: 18px;
  margin: -10px -40px 15px -40px;
  border-bottom: none;
  clear: both;
  padding-right: 40px;
  position: relative;
}

.page-header .btn-xs:not(.ladda-button) {
  margin-top: 17px;
}

.page-header .btn-lg:not(.ladda-button) {
  margin-top: 15px;
}

.page-header>span:first-child>span,
.page-header>.header-right>span:first-child>span {
  height: 56px;
  line-height: 56px;
  padding: 0 25px 0 25px;
}

.page-header>span:first-child,
.page-header>.header-right>span:first-child {
  display: inline-block;
  background: url(/images/header-bg.png) top repeat-x;
}

.page-header.no-bg>span:first-child,
.page-header.no-bg>.header-right>span:first-child {
  background: none;
}

.page-header>.header-right>span:first-child {
  background: none;
}

.event-list-name {
  padding: 7px 15px;
}

.event-list .row {
  margin-bottom: 5px;
}

.event-list .row:nth-child(2n) {
  background-color: #fafafa;
}

#te-controls {
  background-color: #fff;
  position: absolute;
  left: 25px;
  right: 0;
  z-index: 1004;
  padding-bottom: 15px;
  height: 80px;
}

#te-controls-months {
  background-color: #fff;
  position: absolute;
  left: 0;
  z-index: 1004;
  width: 233px;
}

#te-controls-days {
  background-color: #fff;
  position: absolute;
  z-index: 1003;
  margin-top: 0;
}

#te-controls-days td:first-child {
  border-left: none;
}

#te-timetable {
  margin-top: 151px;
}

.schedule-by-project #te-timetable {
  margin-top: 151px;
}

#te-workers-table {
  margin-top: 150px;
  min-width: 100px;
  z-index: 2;
}

.schedule-by-project #te-workers-table {
  margin-top: 150px;
}

.schedule-by-project #te-workers-table .te-group:last-child .te-cell.te-team {
  border-bottom: 1px solid #222 !important;
}

.stylish-input-group .input-group-addon {
  background: white !important;
}

.stylish-input-group .form-control {
  border-right: 0;
  box-shadow: 0 0 0;
  border-color: #ccc;
}

.stylish-input-group button {
  border: 0;
  background: transparent;
}

#team-searchbar {
  position: absolute;
  top: 6px;
  left: 350px;
  width: 300px;
}

.project-actions {
  white-space: nowrap;
}

.page-header {
  position: relative;
}

.page-header .header-right {
  float: right;
}

.te-resize {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  cursor: ew-resize;
  background-color: rgba(0, 0, 0, 0.2);
}

.resize-left {
  left: 0;
  right: auto;
}

.resize-right {
  right: 0;
  left: auto;
}

.te-event-left-cut {
  position: absolute;
  bottom: 0;
  left: 5px;
  line-height: 3px;
  top: auto;
  cursor: help;
}

.te-event-right-cut {
  position: absolute;
  bottom: 0;
  right: 5px;
  line-height: 3px;
  top: auto;
  cursor: help;
}

.te-rented,
.rented-worker-badge {
  font-size: 10px;
  color: #fff;
  background-color: #065188;
  display: inline-block;
  vertical-align: middle;
  padding: 0 5px;
  line-height: 14px;
}

.new-worker-badge {
  font-size: 10px;
  color: #fff;
  background-color: #0e8c0f;
  display: inline-block;
  vertical-align: middle;
  padding: 0 5px;
  line-height: 14px;
}

.worker-row .worker-new {
  background: #99cc67;
  border-radius: 5px;
}

.timetable-break {
  background: #666 url(/images/stripe_bg_ccc_transparent.png);
  position: absolute;
  top: 0;
  z-index: 2;
  height: 100%;
}

.timetable-break .edit-break-btn {
  display: none;
  margin-top: 150px;
  position: absolute;
  right: 0;
}

.timetable-break:hover .edit-break-btn {
  display: inline-block;
}

.ps-container.ps-active-x>.ps-scrollbar-x-rail {
  position: fixed;
  bottom: 25px;
  right: 18px;
  left: auto;
  z-index: 1500;
}

.ps-scrollbar-x-rail {
  border-radius: 5px;
}

.ps-scrollbar-x-rail>.ps-scrollbar-x {
  background-color: #666 !important;
}

.planning-comment-icon {
  display: inline-block;
  width: 74px;
  height: 22px;
  background: url(/images/note.png) no-repeat center;
  cursor: pointer;
  vertical-align: text-bottom;
  text-align: center;
}

.planning-comment-icon.empty {
  background: url("/images/note_empty.png") no-repeat center;
}

#comment-remaining-chars {
  font-size: small;
  color: #ccc;
}

/* color editor */
.ce-btns {
  display: block;
  clear: both;
}

.ce-btn {
  cursor: pointer;
}

.ce-color-btn {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 2px;
  border: 1px solid #ddd;
}

.ce-content {
  display: block;
  width: 500px;
  min-height: 6em;
  max-height: 200px;
  height: auto;
  border: 1px solid;
  cursor: text;
  overflow-y: auto;
}

/* //color editor */

#planning-comment-editor {
  clear: both;
}

.planning-comment-popover {
  border: 1px solid #3b83e1;
}

.planning-comment-popover.right>.arrow {
  border-right-color: #3b83e1;
}

.planning-comment-popover.left>.arrow {
  border-left-color: #3b83e1;
}

.planning-comment-popover.top>.arrow {
  border-top-color: #3b83e1;
}

.planning-comment-popover.bottom>.arrow {
  border-bottom-color: #3b83e1;
}

#foreman-performance {
  width: 100%;
  height: 370px;
}

#foreman-performance .loading-cube {
  margin-top: 0;
  top: 56px;
}

.timestudy-edit-middle-step {
  margin-top: 50px;
}

.timestudy-edit-middle-step .btn-lg {
  height: 62px;
}

.timestudy-edit-middle-step div:first-child .btn-lg {
  line-height: 42px;
}

.table tr.highlight {
  background-color: rgba(0, 106, 167, 0.1);
}

.attachment-row .attachment-edit {
  display: none;
}

.attachment-row:hover .attachment-edit {
  display: inline-block;
}

.checkbox label:after,
.radio label:after {
  content: "";
  display: table;
  clear: both;
}

.checkbox .cr,
.radio .cr {
  position: relative;
  display: inline-block;
  border: 1px solid #a9a9a9;
  border-radius: 0.25em;
  width: 1.3em;
  height: 1.3em;
  float: left;
  margin-right: 0.5em;
}

.radio .cr {
  border-radius: 50%;
}

.checkbox .cr .cr-icon,
.radio .cr .cr-icon {
  position: absolute;
  font-size: 0.8em;
  line-height: 0;
  top: 50%;
  left: 20%;
}

.radio .cr .cr-icon {
  margin-left: 0.04em;
}

.checkbox label input[type="checkbox"],
.radio label input[type="radio"] {
  display: none;
}

.checkbox label input[type="checkbox"]+.cr>.cr-icon,
.radio label input[type="radio"]+.cr>.cr-icon {
  transform: scale(3) rotateZ(-20deg);
  opacity: 0;
  transition: all 0.3s ease-in;
}

.checkbox label input[type="checkbox"]:checked+.cr>.cr-icon,
.radio label input[type="radio"]:checked+.cr>.cr-icon {
  transform: scale(1) rotateZ(0deg);
  opacity: 1;
}

.checkbox label input[type="checkbox"]:disabled+.cr,
.radio label input[type="radio"]:disabled+.cr {
  opacity: 0.5;
}

.checkbox label {
  padding-left: 0;
}

.nav-tabs.rates-tabs>li {
  display: inline-block;
  vertical-align: bottom;
  float: none;
}

.nav-tabs.rates-tabs>li>a {
  margin-right: 2px;
  line-height: 1.42857143;
  border: 1px solid #ccc;
  background-color: #dcdcdc;
  border-radius: 20px 20px 0 0;
  font-weight: bold;
  color: #666;
  padding: 5px 15px;
}

.nav-tabs.rates-tabs>li.active>a,
.nav-tabs.rates-tabs>li.active>a:hover,
.nav-tabs.rates-tabs>li.active>a:focus {
  color: white;
  cursor: default;
  background-color: #adadad;
  border: 1px solid #ddd;
  border-bottom-color: transparent;
  padding: 10px 15px;
}

.custom-control {
  position: relative;
  display: inline-block;
  min-height: 1.5rem;
  padding-left: 1.5rem;
}

.custom-switch {
  padding-left: 2.25rem;
  font-size: 16px;
}

.custom-control-label {
  position: relative;
  margin-bottom: 0;
  vertical-align: top;
}

.custom-control-input {
  position: absolute;
  z-index: -1;
  opacity: 0;
}

.custom-control-input:checked~.custom-control-label::before {
  color: #fff;
  border-color: #007bff;
  background-color: #007bff;
}

.custom-switch .custom-control-label::before {
  left: -2.25rem;
  width: 1.75rem;
  pointer-events: all;
  border-radius: 0.5rem;
}

.custom-control-label::before {
  position: absolute;
  top: 0.25rem;
  left: -1.5rem;
  display: block;
  width: 1rem;
  height: 1rem;
  pointer-events: none;
  content: "";
  background-color: #fff;
  border: #adb5bd solid 1px;
}

.custom-control-label::after {
  position: absolute;
  top: 0.25rem;
  left: -1.5rem;
  display: block;
  width: 1rem;
  height: 1rem;
  content: "";
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 50% 50%;
}

.custom-switch .custom-control-label::after {
  top: calc(0.25rem - -2px);
  left: calc(-2.25rem - -2px);
  width: calc(1rem - 4px);
  height: calc(1rem - 4px);
  background-color: #adb5bd;
  border-radius: 0.5rem;
  transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out, -webkit-transform 0.15s ease-in-out;
  transition: transform 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;
  transition: transform 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,
    -webkit-transform 0.15s ease-in-out;
}

.custom-switch .custom-control-input:checked~.custom-control-label::after {
  background-color: #fff;
  -webkit-transform: translateX(0.75rem);
  transform: translateX(0.75rem);
}

.custom-control-label::before,
.custom-file-label,
.custom-select {
  transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
}

.yes-no-switch .custom-control-label span:before {
  content: "No";
}

.yes-no-switch .custom-control-input:checked~.custom-control-label span:before {
  content: "Yes";
}

.hr {
  width: 100%;
  height: 1px;
  border-top: 1px solid;
}

.hr.red {
  border-color: #df2d37;
}

.invisible {
  visibility: hidden;
}

.team-interval.readonly {
  color: #999;
  background: rgba(241, 241, 241, 0.9);
}

.team-interval .interval {
  display: flex;
  gap: 10px;
  margin-bottom: 5px;
  position: relative;
}

.team-interval .team-name {
  display: inline-block;
  margin-bottom: 5px;
}

.team-interval .interval-row,
.team-hours-container {
  display: flex;
  gap: 5px;
}

.team-interval .interval-add {
  float: right;
}

.team-interval .interval input[type="text"] {
  margin-right: 0px;
}

.team-interval .interval input[type="text"].user-edited {
  border-color: #0b97c4;
}

.team-interval .interval>span {
  align-self: center;
}

.team-interval label {
  font-size: 0.8rem;
  white-space: nowrap;
  display: block;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-interval .interval .interval-delete {
  align-self: center;
}

.team-interval .team-name-row {
  overflow: hidden;
}

.team-interval .team-date {
  width: 100px;
}

.team-interval .team-hours {
  width: 90px;
}

.modal-content .teams-form-column {
  width: 100% !important;
}

.teams-miniform.open {
  border: 1px solid #ccc;
  padding: 0.5rem;
  margin-bottom: 1rem;
}

.teams-miniform.open::after {
  content: "";
  display: table;
  width: 100%;
  height: 0;
}

.planning-mode-switch {
  display: flex;
  clear: both;
}

.planning-mode-switch input[type="radio"] {
  opacity: 0;
  visibility: hidden;
  width: 0px;
}

.planning-mode-switch label {
  cursor: pointer;
  padding: 5px 10px;
  background-color: #f0f0f0;
  border: 2px solid #222;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.planning-mode-switch label:first-of-type {
  border-radius: 5px 0 0 5px;
  border-right-width: 1px;
}

.planning-mode-switch label:not(:first-of-type) {
  border-radius: 5px 0 0 5px;
  border-left-width: 1px;
}

.planning-mode-switch label:last-of-type {
  border-radius: 0 5px 5px 0;
}

.planning-mode-switch input[type="radio"]:checked+label {
  background-color: #df2d37;
  color: white;
}

#teams-interval-container {
  position: relative;
}

.teams-miniform .in-past {
  background-color: #efefef;
}

.project-edit-intervals-history {
  position: absolute;
  right: 0;
  top: 0;
}

.total-hours-container {
  display: flex;
  justify-content: end;
  gap: 5px;
  padding: 5px;
  border: 1px solid #222;
  float: right;
  background: #fafafa;
}

.team-total-hours {
  padding: 8px;
  border: 1px solid #222;
  align-self: flex-end;
  margin-bottom: 5px;
  background: #fafafa;
  height: 40px;
}

.team-total-hours::after {
  content: " h";
}

.worker-drag-element {
  position: fixed;
  z-index: 10000;
  padding: 10px;
  background: #c2deee;
  border: 1px solid #666;
  border-radius: 5px;
}

.worker-draggable {
  cursor: grab;
  user-select: none;
}

.readonly .worker-draggable {
  cursor: default !important;
}

.team-block.drop-target {
  outline: 4px solid green;
}

.team-block.dropped {
  opacity: 0.5;
}

.team-list-popup {
  display: none;
  width: 600px;
  margin: 0 auto;
  position: absolute;
  top: 75px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border: 1px solid red;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px;
  z-index: 9999;
}

.team-list-popup.visible {
  display: flex;
}

.team-list-popup .team {
  width: 260px;
  width: calc(50% - 10px);
  display: flex;
  align-items: center;
  border: 1px solid #666;
}

.team-list-popup .team.drop-target {
  outline: 3px solid green;
  opacity: 0.6;
}

.team-list-popup .team .photo {
  display: inline-block;
  vertical-align: middle;
  width: 50px;
}

.is-link-panel.disabled {
  color: #ccc;
  cursor: default;
}

.is-link-panel.disabled:hover {
  text-decoration: none;
}

.capacity-select-container {
  position: absolute;
  left: 0;
  bottom: 19px;
  z-index: 999;
}

.capacity-input {
  margin: 0;
  padding: 2px;
  width: 100%;
  height: 100%;
  border: none;
  background: white;
  text-align: center;
}

.capacity-manual .te-capacity {
  padding: 0 !important;
}

.has-error .form-control {
  background: rgba(169, 68, 66, 0.3);
}

.tooltip {
  z-index: 999;
}

.history-actions {
  position: fixed;
  bottom: 15px;
  right: 15px;
  border-radius: 10px;
  padding: 10px;
  border: 1px solid #333;
  background: #fff;
}

.history-actions .undo {
  cursor: pointer;
  vertical-align: middle;
}

.history-actions .undo.processing {
  opacity: 0.7;
  cursor: progress;
}

.history-actions .undo .glyphicon {
  transform: scaleX(-1);
}

.toast-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(50vw, 350px);
  z-index: 9999;
}

.toast {
  color: white;
  background: rgba(0, 0, 0, 0.95);
  border-radius: 0.5em;
  padding: 0.5em 1em;
  display: none;
}

@supports ((-webkit-backdrop-filter: none) or (backdrop-filter: none)) {
  .toast {
    background-color: rgba(0, 0, 0, 0.85);
    -webkit-backdrop-filter: blur(1em);
    backdrop-filter: blur(1em);
  }
}

.checkbox_list {
  clear: both;
  padding: 0;
}

.checkbox_list li.form-control,
.checkbox_list>li {
  all: unset;
  display: flex;
  gap: 5px;
  align-items: center;
  cursor: pointer;
  margin-bottom: 5px;
}

.checkbox_list label.form-control,
.checkbox_list label {
  all: unset;
  display: flex;
  gap: 5px;
  align-items: center;
  cursor: pointer;
}

.checkbox_list input[type="checkbox"].form-control {
  display: inline;
  width: 30px;
  height: 30px;
  box-shadow: none;
  accent-color: #ed464d;
  cursor: pointer;
  margin: 0;
}

@media (min-width: 1440px) {

  div[class^="col-xl-"],
  div[class*=" col-xl-"] {
    float: left;
    position: relative;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
  }

  .col-xl-1 {
    width: 8.33333333%;
  }

  .col-xl-2 {
    width: 16.66666667%;
  }

  .col-xl-3 {
    width: 25%;
  }

  .col-xl-4 {
    width: 33.33333333%;
  }

  .col-xl-5 {
    width: 41.66666667%;
  }

  .col-xl-6 {
    width: 50%;
  }

  .col-xl-7 {
    width: 58.33333333%;
  }

  .col-xl-8 {
    width: 66.66666667%;
  }

  .col-xl-9 {
    width: 75%;
  }

  .col-xl-10 {
    width: 83.33333333%;
  }

  .col-xl-11 {
    width: 91.66666667%;
  }

  .col-xl-12 {
    width: 100%;
  }
}

.intervals-history th {
  white-space: normal;
}

.intervals-history img {
  max-width: 30px;
}

.intervals-history .team-name {
  background: #efefef;
}

.loader-ring2 {
  --loader-size: 80px;
  display: inline-block;
  width: var(--loader-size);
  height: var(--loader-size);
  vertical-align: middle;
}

.loader-ring2.small {
  --loader-size: 40px;
}

.loader-ring2:after {
  content: " ";
  display: block;
  width: calc(var(--loader-size) - 16px);
  height: calc(var(--loader-size) - 16px);
  margin: 8px;
  border-radius: 50%;
  border: max(calc(var(--loader-size) / 10 - 2px), 2px) solid #fff;
  border-color: #fff transparent #fff transparent;
  animation: loader-ring2 1.2s linear infinite;
}

@keyframes loader-ring2 {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* timestudy / stages calendar */
#calendar-grid {
  margin-bottom: 100px;
}

.calendar-widget {
  display: grid;
  grid-template-columns: [week-start] 1fr [workdays-start week-end] 1fr 1fr 1fr 1fr 1fr 1fr [sun-start workdays-end] 1fr [sun-end];
  justify-content: center;
  align-items: center;
  text-align: center;
}

.calendar-header,
.calendar-widget .days {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1 / -1;
}

.calendar-header {
  font-weight: bold;
}

.calendar-header>*,
.calendar-widget .days>* {
  padding: 5px 10px;
}

.calendar-header .month-prev,
.calendar-header .month-next {
  justify-self: stretch;
  background: transparent;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  padding-block: 5px;
}

.calendar-header .month-prev:hover,
.calendar-header .month-next:hover {
  background-color: rgba(241, 241, 241, 0.4);
}

.calendar-header .month-prev {
  grid-area: week;
}

.calendar-header .month-next {
  grid-area: sun;
}

.calendar-header .month-name {
  grid-area: workdays;
  justify-self: stretch;
}

.calendar-widget .day {
  cursor: pointer;
  transition: all 250ms ease-in-out;
  user-select: none;
  border-radius: 5px;
  position: relative;
}

.calendar-widget.range-selection .day.range-selection {
  border-radius: 0;
}

.calendar-widget.range-selection .day.range-selection.range-start {
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
}

.calendar-widget.range-selection .day.range-selection.range-end {
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
}

.calendar-widget .day:hover {
  background: rgba(241, 241, 241, 0.4);
}

.calendar-widget .day.active.locked,
.calendar-widget .day.selected.locked,
.calendar-widget .day.pending.locked {
  background-color: #ccc !important;
  color: #000;
}

.calendar-widget .day.locked::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url(/images/lock.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  opacity: 0.2;
}

.calendar-widget .day.active {
  background: #337ab7;
  color: #fff;
}

.calendar-widget .day.selected {
  background: #8bda98;
}

.calendar-widget .day.pending {
  background: #fddc54;
}

.calendar-widget .not-current {
  color: #777;
}

.calendar-widget .sunday {
  color: red;
}

.calendar-widget .week-num {
  color: #777;
  font-size: 0.8em;
  align-self: center;
  user-select: none;
}

.calendar-widget .day.range-selection {
  background: #b9def0;
}

.calendar-widget .calendar-header:first-child {
  padding-block: 5px;
}

.calendar-header:nth-child(2)>*,
.calendar-widget .week-num {
  background: rgba(200, 200, 200, 0.2);
}

.calendar-widget .calendar-header:nth-child(2) :first-child {
  border-top-left-radius: 10px;
}

.calendar-widget .calendar-header:nth-child(2) :last-child {
  border-top-right-radius: 10px;
}

.calendar-widget .week-num:not(:has(~ .week-num)) {
  border-bottom-left-radius: 10px;
}

.calendar-widget .days :last-child {
  border-bottom-right-radius: 10px;
}

.dates-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  min-height: 120px;
}

.dates-filter button {
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 3px 10px;
  background-color: #eee;
  user-select: none;
}

.dates-filter button:hover {
  background-color: #dedede;
}

.dates-filter .filter-inputs {
  min-width: 250px;
  display: flex;
  justify-content: center;
}

.dates-filter .inputs.month:not([hidden]) {
  display: flex;
  gap: 5px;
  align-items: stretch;
}

.dates-filter .inputs.range:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.dates-filter .inputs.month .current {
  width: 160px;
}

.dates-filter .inputs.month>* {
  top: 0;
}

.dates-filter .filter-types {
  display: flex;
  gap: 5px;
}

.dates-filter .filter-types>* {}

.dates-filter .filter-types>*:not(.active) {
  opacity: 0.6;
}

.calendar-context-menu {
  width: max-content;
  opacity: 0;
  scale: 0;
  color: #000;
  padding: 10px 0;
  list-style: none;
  height: 200px;
  transform-origin: top left;
  transition: scale 400ms ease-in-out, opacity 200ms ease-in 300ms;
  background: rgba(221, 221, 221, 0.7);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

.calendar-context-menu ul {
  padding: 0;
  flex: 1;
}

.calendar-context-menu ul,
ul.calendar-context-menu {
  list-style: none;
}

.selected-hours-sum {
  text-align: center;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 5px;
}

.calendar-context-menu li:not(.close) {
  padding: 5px 25px;
  cursor: pointer;
  user-select: none;
}

.calendar-context-menu li:not(.close):hover {
  background: rgba(150, 150, 150, 0.2);
}

.calendar-context-menu li.close {
  text-align: right;
  float: none;
  padding: 0 5px;
  opacity: 1;
}

.show .calendar-context-menu {
  opacity: 1;
  scale: 1;
  transition: opacity 200ms ease-in, scale 400ms ease-in-out 100ms;
}

#context-menu-target button.close {
  padding: 5px;
  cursor: pointer;
  float: none;
  color: #000;
  opacity: 0.8;
}

#context-menu-target button.close:hover {
  opacity: 1;
}

/* end of timestudy / stages calendar */