@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .mai-top-header .navbar-brand {
    background-image: url(/assets/img/logo-2x.png);
    background-size: 133px 32px;
  }
}

.add-task-handler,
.pointer {
  cursor: pointer;
}

.project-tasks .todo-new-task > .input-group {
  border-top: 0;
}

.project-tasks .todo-list-container {
  padding-left: 0;
  padding-right: 0;
  margin-left: 23px;
  margin-right: 23px;
}

.todo-new-task + .todo-list-container {
    border-top: 1px solid #ebebeb;
    padding-bottom: 1rem;
}

.todo-new-task + .todo-list-container .todo-tasks {
  margin: 0;
}

.mai-top-header {
  z-index: 9998!important; }
  .mai-sub-header {
    z-index: 9997!important; }
    .modal-show {
      z-index: 10000!important; }
      .modal-overlay {
        z-index: 9999!important; }

body.locked {
  margin-right: 17px;
  overflow: hidden;
}

body.locked nav,
body.locked .mai-wrapper {
  filter: blur(4px);
}

body.locked::before {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9999;
  background-color: rgba(255, 255, 255, 0.8);
}

.locker {
  color: #fff;
  width: 500px;
  max-width: calc(100% - 30px);
  max-height: 100%;
  margin: 15px;
  padding: 0;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); }
  body.unlocked .locker {
    display: none;
    opacity: 0;
    z-index: -100; }
    body.locked .locker {
      opacity: 1;
      display: flex;
      z-index: 99999; }

.locker img {
  border-radius: 50%;
  width: 150px;
  height: auto;
  display: block;
  margin: -145px auto 2rem auto;
  box-sizing: content-box;
  border: 10px solid #fff;
}

.locker__user {
  font-size: 180%;
  text-align: center;
  width: 100%;
  color: #fff;
  margin-bottom: 2rem;
}

/* NAVIGATION */

  @media (min-width: 992px) {
    .navbar-sticky-lg {
      position: sticky;
      /* top: -98px; */
      top: -45px;
      z-index: 3;
    }
  }

  .mai-sub-header .navbar-nav > .nav-item > .nav-link {
    min-width: 50px!important;
  }

  .mai-sub-header .navbar-nav > .nav-item:first-child > .nav-link > .icon {
    margin: 0;
  }

/* FORM ELEMENTS */

  .input__no-borders {
    border: 0;
    background: transparent;
    color: inherit;
  }

  .my-profile .input__no-borders {
    border-bottom: 1px dotted #4DB8EA!important;
  }

  input:-internal-autofill-selected,
  input:-webkit-autofill,
  input:-webkit-autofill:hover,
  input:-webkit-autofill:focus,
  .form-control:-internal-autofill-selected,
  .form-control:-webkit-autofill,
  .form-control:-webkit-autofill:hover,
  .form-control:-webkit-autofill:focus {
    background-color: rgb(54,54,54)!important;
    -webkit-background-color: rgb(54,54,54)!important;
    -webkit-box-shadow: 0 0 0 30px #363636 inset !important;
    color: #fff!important;
    -webkit-text-fill-color: #fff!important;
  }

  textarea.form-control,
  textarea.form-control:focus {
    line-height: 1.4;
    background-color: #fff;
  }

  .page-item:first-child .page-link,
  .page-item:last-child .page-link {
    padding: 0.5rem 0.75rem;
  }

  .page-item.next .page-link,
  .page-item.previous .page-link {
    padding: 0.4rem 0.35rem 0.6rem!important;
  }

  .switch-button label {
    float: left;
  }

  .switch-button label:before {
    content: "VYP";
  }

  .switch-button input[type="checkbox"]:checked + span label:before {
    content: "ZAP";
  }

  input[type="checkbox"]:disabled + span:hover {
      cursor: no-drop!important;
  }

  #logo-1[type="file"] + label {
    text-overflow: ellipsis;
    overflow-x: hidden;
  }

/* ERRORS */

  .pb-error {
    display: none;
  }

/* NOTIFICTIONS */

  .notification-list .alert-dismissible {
    padding: 0 15px;
  }

/* TABLES */

  .project-card .pagination,
  .project-card {
    margin: 0; }
    .project-card .card-footer {
      padding: 1.25rem; }
      .project-card .card-footer > .row > div {
        display: flex;
        align-items: center; }
        .project-tab-content {
          padding: 0; }

  .table tbody tr.warning td:first-child,
  .table tbody tr.error td:first-child,
  .table tbody tr.approved td:first-child,
  .table tbody tr.done td:first-child {
    border-left: 3px solid;
    padding-left: 17px; }
    .table tbody tr.approved td:first-child {
      border-left-color: #2CC185; }
      .table tbody tr.warning td:first-child {
        border-left-color: #FFDC42; }
        .table tbody tr.error td:first-child {
          border-left-color: #F45846; }
          .table tbody tr.error .progress-bar {
            background-color: #F45846; }
            .table tbody tr.done td:first-child {
              border-left-color: #4DB8EA; }

tfoot td {
  font-weight: 700;
}

.project-timeline {
  max-width: 100%!important;
}

.project-timeline .timeline-header {
  border-bottom: 1px solid #f4f4f4;
  padding-bottom: 15px;
  min-height: 59px;
}

.project-timeline .timeline-summary {
  margin-top: 15px;
}

.project-timeline .timeline-date {
  width: 76px;
  text-align: right;
}

.table tbody tr td.company-logo img {
  height: 30px;
  width: auto;
  max-width: 100%;
  max-height: auto;
  margin-right: 10px;
}

/* BLOCKS */

  .project-detail-progress {
    margin: 0 20px;
    height: 5px;
    background-color: transparent;
  }

  .project-detail-tab .email-detail-head {
    padding: 45px 45px 0;
  }

  .project-detail-tab .email-head-sender {
    border-bottom: 1px solid #e6e6e6;
    padding-bottom: 30px;
  }

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

  .timeline:before {
    bottom: 150px;
  }

  .project-detail-tab .card {
    height: 100%; }
    /* .project-detail-tab .card-header {
      position: relative; }
      .project-detail-tab .card-header .actions {
        position: absolute;
        right: 0;
        top: 24px; } */
        .project-detail-tab .card-header .actions > a {
          border: 0;
          background-color: transparent; }

  .project-detail-tab .card-footer.card-footer-divider {
    padding: 0.75rem 0;
    margin: 0 1.25rem;
    border-top: 1px solid #d1d1d1;
  }

  .project-detail .aside-nav ul > .nav-item > .nav-link {
    border-top: 1px solid transparent;
    border-bottom: 1px solid transparent;
    border-left: 1px solid transparent; }
    .project-detail .aside-nav ul > .nav-item:first-child > .nav-link {
      border-top: 0; }
      .project-detail .aside-nav ul > .nav-item > .nav-link.active {
        border-color: #E8E8E8; }

  .project-detail .timeline-blockquote {
    margin: 0;
    padding: 0 10px 4px 0;
    border: 0;
  }

  .project-detail .cal-notes {
    background: transparent;
    padding: 23px; }
    .project-detail .cal-notes .title {
      padding-left: 0;
      color: #000; }

  .project-timeline .project-detail .project-detail-btn {
    position: absolute;
    bottom: 0;
    right: 0;
  }

  .project-timeline .timeline-item:last-child:before {
    background: #4db8ea;
    -webkit-box-shadow: 0px 0px 0px 8px #bbe4f7;
    -moz-box-shadow: 0px 0px 0px 8px #bbe4f7;
    box-shadow: 0px 0px 0px 8px #bbe4f7;
  }

  .project-history-list .project-history-item:last-child {
    border: 0;
  }

  .project-detail-summary img {
    height: 20px;
    margin: 0 10px;
    border-radius: 50%;
  }

  .project-history-item .badge-rounded {
    position: relative;
    border-radius: 13.5px;
    padding: 5px 10px; }
    .project-history-item .badge-rounded > .icon,
    .project-history-item .badge-rounded > small > .icon {
      color: #fff; }

.badge-tooltip::after {
  font-size: 1rem;
  padding: 0 13px;
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  height: 30px;
  line-height: 30px;
  width: auto;
  white-space: nowrap;
  background-color: rgba(0, 0, 0, .8);
  color: #fff;
  text-align: center;
  display: none; }
  .badge-tooltip::before {
    content: '';
    display: none;
    width: 0;
    height: 0;
    position: absolute;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid rgba(0, 0, 0, .8);
    left: 50%;
    transform: translateX(-50%) rotate(-90deg);
    top: -14px; }
    .badge-tooltip:hover::after,
    .badge-tooltip:hover::before {
      display: block; }
      .badge-tooltip.badge-attachs::after {
        content: "Aktualizace obsahuje přílohy"; }
        .badge-tooltip.badge-public::after {
          content: "Aktualizace je veřejná"; }

.msg .badge + .badge {
  margin: 0!important; }
  .msg > .badge-rounded {
    border-radius: 0; }
    .msg > .badge-rounded:first-of-type {
      margin-left: auto; }
    .msg > .badge-rounded:first-of-type {
      border-top-left-radius: 13.5px;
      border-bottom-left-radius: 13.5px; }
      .msg > .badge-rounded:last-of-type {
        border-top-right-radius: 13.5px!important;
        border-bottom-right-radius: 13.5px!important; }

#p-budgets .card-body form {
  margin: 0 20px;
}

.budget_list--form .input-group-append button span + span {
  display: none; }
  .budget_list--form .input-group-append:hover button span + span {
    display: inline-block; }

/* Chrome, Safari, Edge, Opera */
.budget_list--form input::-webkit-outer-spin-button,
.budget_list--form input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
.budget_list--form input[type="number"] {
  -moz-appearance: textfield;
}

/* .user-display-id {
  top: 0;
} */

#user-body .user-profile {
  padding-top: 100px;
}

.user-display-avatar {
  margin-bottom: 0!important;
  border: 10px solid #F4F4F4;
  box-sizing: content-box;
  position: relative;
  z-index: 2;
  background-color: #F4F4F4;
}

.user-profile__avatar-container > input[name="avatar"] {
  position: absolute;
  z-index: 0;
  width: 1px;
  height: 1px;
  top: 50%;
  left: 50%;
  opacity: 0;
}

.user-profile__avatar-container {
  display: inline-block;
  position: relative;
  margin-bottom: 0.769231rem;
}

.user-profile__avatar-container > .user-profile__avatar-changer {
  flex-direction: column;
  padding: 1rem;
  border: 10px solid #F4F4F4;
  z-index: 3;
  cursor: pointer;
  font-size: 60px;
  color: #fff!important;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.7);
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border-radius: 50%;
  display: none; }
  .user-profile__avatar-container:hover > .user-profile__avatar-changer {
    display: flex; }
    .my-profile .user-profile__avatar-container:hover > .user-display-avatar {
      filter: blur(5px); }
      .user-profile__avatar-container > .user-profile__avatar-changer > div {
        padding: 0 .5rem;
        text-align: center;
        font-size: 10px; }

/* TEXT */

  .email-attachments .attachements-files .file.deleted {
    /* text-decoration: line-through; */
    font-style: italic; }
    .email-attachments .attachements-files .file.deleted .file-name a::after {
      content: " [odstraněno]"; }

  .underline {
    text-decoration: underline; }
    .underline:hover {
      text-decoration: none; }

  .project-timeline .project-detail .timeline-activity {
    float: right;
  }

/* TABS */

  .gideon-tooltip-parent {
    position: relative!important;
    display: inline-block; }
    .order-item > .gideon-tooltip-parent {
      position: absolute!important; }

  .gideon-tooltip {
    font-size: 1rem;
    padding: 0 13px;
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    height: 30px;
    line-height: 30px;
    width: auto;
    white-space: nowrap;
    background-color: rgba(0, 0, 0, .8);
    color: #fff;
    text-align: center;
    display: none;
    z-index: 999999; }
    .order-item .gideon-tooltip {
      opacity: 1!important; }

  .gideon-tooltip.rows {
    min-height: 30px!important;
    height: auto!important;
    transform: translate(-50%, calc(-100% + 30px))!important;
    line-height: 18px!important;
    padding: 13px!important;
  }

  .gideon-tooltip::after {
    content: '';
    width: 0;
    height: 0;
    position: absolute;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid rgba(0, 0, 0, .8);
    left: 50%;
    transform: translateX(-50%) rotate(-90deg);
    bottom: -12px;
  }

  .gideon-tooltip-parent:hover .gideon-tooltip {
    display: block;
  }

  .project-list-tabs .nav-link,
  .invoice-detail__tools > a,
  .task-user {
    position: relative; }
    .tab-title,
    .invoice-detail__tools-tooltip {
      font-size: 1rem;
      padding: 0 13px;
      position: absolute;
      top: -40px;
      left: 50%;
      transform: translateX(-50%);
      height: 30px;
      line-height: 30px;
      width: auto;
      white-space: nowrap;
      background-color: rgba(0, 0, 0, .8);
      color: #fff;
      text-align: center;
      display: none; }
      .tab-title::after,
      .invoice-detail__tools-tooltip::after {
        content: '';
        width: 0;
        height: 0;
        position: absolute;
        border-top: 8px solid transparent;
        border-bottom: 8px solid transparent;
        border-right: 8px solid rgba(0, 0, 0, .8);
        left: 50%;
        transform: translateX(-50%) rotate(-90deg);
        bottom: -12px; }
        .project-list-tabs .nav-link:hover .tab-title,
        .invoice-detail__tools > a:hover .invoice-detail__tools-tooltip {
          display: block; }

  .task-title {
    padding: 0 13px;
    position: absolute;
    top: 50%;
    left: -15px;
    transform: translate(-100%, -50%);
    min-height: 30px;
    line-height: 30px;
    width: auto;
    white-space: nowrap;
    background-color: rgba(0, 0, 0, .8);
    color: #fff;
    text-align: center;
    display: none; }
    .task-title::after {
      content: '';
      width: 0;
      height: 0;
      position: absolute;
      border-top: 8px solid transparent;
      border-bottom: 8px solid transparent;
      border-right: 8px solid rgba(0, 0, 0, .8);
      top: 50%;
      left: 100%;
      transform: translateY(-50%) rotate(-180deg);
      bottom: -12px; }
      .project-tasks .task-user:hover .task-title {
        display: block; }

  .project-detail .nav-tabs .nav-link.active {
    position: relative; }
    .project-detail .nav-tabs .nav-link.active::after {
      content: "";
      position: absolute;
      background: #fff;
      position: absolute;
      top: 0;
      bottom: 0;
      right: -1px;
      width: 1px; }
      .project-detail .tab-content {
        padding: 0!important; }
        .project-detail .nav-tabs .nav-link .icon {
          margin-right: 1rem; }
          .project-detail .aside-nav .title {
            margin-top: 0!important; }

  .project-detail .accordion .card-header {
    margin: 0!important;
  }

  .project-detail .email-attachments .attachements-files .file-options {
    flex: 0 1 35%;
  }

  .project-detail .accordion .file .file-options {
    text-align: right; }
    .project-detail .file.deleted a {
      color: #f00; }

  .timeline-item.project-detail::after {
    content: "";
    width: 30px;
    height: 30px;
    background-color: #f4f4f4;
    transform: rotate(45deg);
    position: absolute;
    top: -15px;
    right: -15px;
  }

  .c-help {
    cursor: help;
  }

  .project-detail-tab .tab-pane.active {
    display: flex;
    height: 100%;
    flex-direction: column;
  }

  .project-detail-tab > .tab-content {
    height: 100%;
  }

  .project-history-item .circle {
    border-radius: 50%;
    height: 40px;
    margin-right: 15px;
  }

  .project-history-item .from {
    display: inline-flex;
    align-items: center;
    flex: 0 0 30%; }
    .project-history-item .msg {
      flex: 0 0 60%; }
      .project-history-item .date {
        line-height: 1.5;
        flex: 10%; }
        .project-history-item {
          cursor: default;
          flex-direction: column;
          background-color: transparent; }
          .project-history-item:hover {
            background-color: #f7f7f7; }
            .project-history-item .name > small {
              color: #878787; }
              .project-history-item .msg {
                font-size: 1.15385rem; }
                .project-history-item .email-list-detail {
                  margin: 0; }
                  .project-history-item[data-toggle="collapse"] {
                    cursor: pointer; }

  .project-history-item .email-list-detail {
    cursor: pointer; }
    .project-history-item-collapse {
      cursor: default!important; }
      .project-history-item-collapse p {
        cursor: text!important; }
        .project-history-item-collapse p > a {
          color: inherit;
          text-decoration: underline; }
          .project-history-item-collapse p > a:hover {
            text-decoration: none; }

  .project-history-item .email-list-detail[aria-expanded="true"] {
    padding-bottom: 13px;
    border-bottom: 1px solid #fff; }
    .project-history-item.open {
      background-color: #f7f7f7; }

  .project-history-item-collapse {
    display: flex;
    justify-content: flex-end;
    padding: 0; }
    .project-history-item-collapse p {
      width: 70%;
      float: right;
      padding-top: 13px;
      margin: 0; }
      .project-history-item-attachments {
        display: flex;
        flex-direction: column;
        padding-top: 13px;
        width: 30%;
        padding-right: 30px; }
        .project-history-item-attachments > div {
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
        }

  .tab-container.project-detail .aside-content {
    position: sticky;
    top: 130px;
  }

/* POPOVERS */

  .popover-header {
    background-color: #323232;
    color: #adadad;
  }

/* NAV ITEMS */

  .dropdown-menu a[data-action="delete"]:hover,
  .dropdown-menu a[data-action="storno"]:hover {
    background-color: #f45846!important;
  }







  .project-tasks .avatar {
    border-radius: 50%;
    height: 30px;
    width: 30px;
  }









/* INVOICE TEMPLATE */

.invoice-detail__logo {
  max-width: 100%;
  width: auto;
  max-height: 70px;
  display: block;
}

.invoice-detail__invoice-number {
  width: 100%;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  text-transform: uppercase; }
  .invoice-detail__invoice-number > div {
    width: auto;
    color: #4db8ea;
    font-size: 24px; }

.invoice-detail__invoice-date {
  width: 100%;
  display: flex;
  justify-content: space-between;
  text-transform: uppercase;
  font-weight: 700; }
  .invoice-detail__invoice-date > div {
    font-weight: 400;
    width: auto; }
    .invoice-detail__invoice-date > div > span {
      font-size: 120%;
      font-weight: 700; }

.invoice-detail__header-bordered {
  border-top: 1px solid #e6e6e6;
  border-bottom: 1px solid #e6e6e6;
}

.invoice-detail__header-bordered > div > p:first-child {
  font-weight: 700;
  font-size: 120%;
  margin-bottom: 10px; }
  .invoice-detail__header-bordered > div > p:last-child {
    margin: 0; }

.invoice-detail .card-footer p {
  border-top: 1px solid #ccc;
  color: #ccc;
  padding-top: 1rem;
}

@media print {
  body,
  .invoice-detail__header-bordered {
    background-color: #fff;
    font-size: 1.5rem;
    -webkit-print-color-adjust: exact;
  }
  .invoice-detail__header {
    margin-top: 1rem;
  }
  .navbar,
  .invoice-detail .card-header-divider,
  .alert {
    display: none;
  }
  .main-content {
    padding: 0;
    /* display: none; */
  }
  .main-content > div > div,
  .main-content .card {
    display: block!important;
    width: 100%!important;
  }
  th {
    font-weight: 700;
  }
  .table-striped tbody tr:nth-of-type(odd),
  .even > td {
    background-color: #f5f5f5;
    -webkit-print-background-color-adjust: exact;
  }
}



/* CSS RESTRICTIONS FOR CLIENT USERS */
body.client-user .mai-top-header .mai-icons-nav > .nav-item.dropdown > .nav-link,
body.client-user .mai-top-header .mai-icons-nav .mai-messages > .dropdown-menu .footer a,
body.client-user .mai-top-header .mai-icons-nav .mai-notifications > .dropdown-menu .footer a,
body.client-user .mai-top-header .mai-icons-nav .mai-settings > .dropdown-menu .footer a {
  cursor: no-drop;
}

body.client-user .mai-top-header .mai-icons-nav .mai-notifications .mai-scroller-notifications > .content > ul,
body.client-user .mai-top-header .mai-icons-nav .mai-notifications .mai-scroller-messages > .content > ul,
body.client-user .mai-top-header .mai-icons-nav .mai-messages .mai-scroller-notifications > .content > ul,
body.client-user .mai-top-header .mai-icons-nav .mai-messages .mai-scroller-messages > .content > ul,
body.client-user .mai-top-header .mai-icons-nav .mai-settings .dropdown-menu .content ul,
body.client-user .client-hidden,
body:not(.client-user) .client-show {
  display: none!important;
}

body.client-user .client-star-addon::after {
  content: " *"; }
  body.client-user .text-muted-desc::before {
    content: "* ";
  }

body.client-user .text-muted-desc {
  font-size: 10px;
}

.recipient-list .title {
  font-weight: 600;
}

.recipient-list .form-group {
  margin-bottom: 0!important;
}

.recipient-list .custom-control {
  display: inline-flex!important;
}

.recipient-list .user-avatar {
  display: inline-block;
}

.recipient-list .user-avatar > img {
  margin-right: 5px;
  border-radius: 50%;
  height: 22px;
  width: 22px;
}

.loader {
  position: fixed;
  top: 0;
  height: 2px;
  background-color: #fff;
  z-index: 99999;
  display: none;
}

.loader.active {
  display: block!important;
  animation-name: loader;
  animation-duration: 3s;
   animation-iteration-count: infinite;
   animation-timing-function: ease-in-out;
}

@keyframes loader {
    0% {
        left: 0;
        right: 100%;
    }
    25% {
      left: 0;
      right: 0;
    }
    50% {
        right: 0;
        left: 100%;
    }
    75% {
      left: 0;
      right: 0;
    }
    100% {
        left: 0;
        right: 100%;
    }
}

td.jquery-handler-container {
  padding: 0 0.45rem!important;
}

.handler {
  cursor: move;
}

.project-priority-handler {
  display: block;
  width: 10px;
  height: 20px;
  background: transparent url('/assets/img/drag_indicator_black_20dp.png') center center no-repeat;
  opacity: 0.05;
}

tr.project-row:hover .project-priority-handler {
  opacity: 1;
}

/* hide search form when main menu is sticked */
.navbar-sticky-lg nav.navbar.sticked + form {
  display: none;
}

.navbar-sticky-lg nav.navbar #mai-navbar-collapse .after-sticked {
  display: none; }
  .navbar-sticky-lg nav.navbar.sticked #mai-navbar-collapse .after-sticked {
    display: list-item; }

.navbar-sticky-lg nav.navbar.sticked #mai-navbar-collapse .after-sticked.open ul {
  justify-content: flex-end;
}

#mai-navbar-collapse .after-sticked img {
  height: 28px;
  width: auto;
  border-radius: 3px;
}

@media (min-width: 992px) {
  .navbar-expand-lg .navbar-nav {
    flex: auto;
  }
}

.mai-nav-tabs-sub.mai-sub-nav.nav .nav-link:hover {
  color: #4db8ea!important;
}

.navbar-sticky-lg.sticked {
  box-shadow: 0 0 15px 0px #000;
}

.users-chart-counter {
  top: 40%;
}

.ads-users {
  padding-left: 30px;
  padding-right: 30px;
  width: 100%;
}

.ads-info {
  padding-top: 0;
  flex: auto;
}

.ads-resume {
  flex-direction: column;
}

#invoices-chart {
  margin-bottom: 30px;
}

#invoices-chart .users-counter {
  margin-bottom: 1rem;
}

.ads-chart.widget.widget-fullwidth .widget-head {
  margin-bottom: 20px;
}

.ads-legend {
  font-size: small;
}

.legend-link {
  display: inline-block;
  padding: 0 0 5px 0;
  color: #545454;
  margin-right: 1rem;
}

.legend-link:last-child {
  margin: 0;
}

.legend-link > div {
  display: inline-block;
  margin: 0 5px 0 0;
}

.legendColorBox > div {
  border: 1px solid #ccc;
  padding: 1px;
}

.legendColorBox__square {
  width: 4px;
  height: 0;
  border: 5px solid;
  overflow: hidden;
}

.legendColorBox__square.warning {
  border-color: rgba(255,220,66,0.9); }
  .legendColorBox__square.error {
    border-color: rgba(244,88,70,0.9); }

.legend_text .legendColorBox__square {
  display: inline-block;
  margin-right: 5px;
  margin-left: -18px;
}

@media (min-width: 768px) {
  .d-md-list-item {
    display: list-item !important;
  }
}

.widget-head .title .subtitle {
  font-size: 80%;
}

.widget-head .title .muted {
  color: #999;
}

.float-right {
  float: right;
}

.close-bar {
  display: none;
  height: auto;
  width: auto;
  vertical-align: middle;
  position: relative;
}

.close-bar > span {
  position: absolute;
  display: block;
  background-color: #fff;
  width: 24px;
  height: 1px; }
  .close-bar > span:first-child {
    transform: translate(-50%, -2px) rotate(45deg); }
    .close-bar > span:last-child {
      transform: translate(-50%, -2px) rotate(-45deg); }

@keyframes techpulse {
  0% {
    -moz-box-shadow: 0 0 0 0 rgba(0,0,0, 0);
    box-shadow: 0 0 0 0 rgba(0,0,0, 0);
  }
  40% {
    -moz-box-shadow: 0 0 0 0 rgba(0,0,0, 0.4);
    box-shadow: 0 0 0 0 rgba(0,0,0, 0.4);
  }
  70% {
    -moz-box-shadow: 0 0 0 20px rgba(0,0,0, 0);
    box-shadow: 0 0 0 20px rgba(0,0,0, 0);
  }
  90% {
    -moz-box-shadow: 0 0 0 0 rgba(0,0,0, 0);
    box-shadow: 0 0 0 0 rgba(0,0,0, 0);
  }
  100% {
    -moz-box-shadow: 0 0 0 0 rgba(0,0,0, 0);
    box-shadow: 0 0 0 0 rgba(0,0,0, 0);
  }
}

@media (max-width: 767.98px) {
  .mai-top-header .navbar-nav > .nav-item.dropdown .dropdown-menu {
    width: 100vw;
  }
  .mai-sub-header {
    position: fixed;
    bottom: 15px;
    right: 15px;
    border-radius: 50%;
    width: 65px;
    height: 65px;
    background-color: #3f3f3f;
  }
  .mai-sub-header .navbar-toggler {
    border-radius: 50%;
    width: 65px;
    height: 65px;
  }
  .mai-sub-header .navbar-toggler.collapsed {
    animation: techpulse 5s infinite;
  }
  .mai-sub-header .navbar-toggler:not(.collapsed) .icon-bar {
    display: none;
  }
  .mai-sub-header .navbar-toggler:not(.collapsed) .close-bar {
    display: inline-block;
  }
  .mai-sub-header .navbar-collapse {
    position: fixed;
    bottom: 95px;
    right: 15px;
    left: 15px;
    background-color: #3a3a3a;
    border-radius: 15px;
  }
  .mai-sub-header .navbar-collapse .nav-item,
  .mai-sub-header .navbar-collapse .nav-link,
  .mai-sub-header .navbar-collapse .navbar-nav
   {
    border-radius: 15px!important;
  }
  .mai-sub-header .navbar-collapse .navbar-nav {
    box-shadow: 0 0 15px 5px;
  }
  .mai-sub-header .navbar-collapse .nav-item:nth-last-child(2) > ul > .nav-item:last-child,
  .mai-sub-header .navbar-collapse .nav-item:nth-last-child(2) > ul {
    border-radius: 0 0 15px 15px!important;
  }
}

.widget {
  height: calc(100% - 29px);
  display: flex;
  flex-direction: column;
}

#settings-body .project-item {
  margin-bottom: 0; }
  #settings-body .project-item + .accordion {
    margin-bottom: .923077rem; }
    #settings-body .project-item:not(:first-child) {
      margin-top: .923077rem; }
      #settings-body .accordion + .project-item {
      margin-top: 0!important; }

#settings-body .project-item + .accordion .collapse.show::before {
  content: '';
  width: 0;
  height: 0;
  position: absolute;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-right: 16px solid #fff;
  right: 23px;
  transform: translateX(-50%) rotate(-90deg);
  top: -9px;
}

#settings-body .accordion .card {
  margin: 0;
}

#settings-body .project-item-title {
  flex: 0 1 35%;
}
#settings-body .project-item-title + .project-item-actions {
  flex: 0 1 50%;
}

#gritter-notice-wrapper {
  max-width: calc(100vw - 40px);
}

.switch-button > input:disabled + span,
.switch-button > input:disabled + span > label {
  cursor: no-drop; }
  .switch-button input[type="checkbox"]:not(:checked):disabled + span > label {
    background-color: #555; }
    .switch-button input[type="checkbox"]:checked:disabled + span {
      background-color: #555; }

.mai-top-header .navbar-nav > .nav-item.active > a {
  position: relative; }
  .mai-top-header .navbar-nav > .nav-item.active > a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 18px;
    right: 18px;
    height: 2px;
    background-color: #fff; }
    /* .mai-top-header .navbar-nav > .nav-item.active.show > a::before {
      display: none; } */
.gritter-color.error {
  background-color: rgb(244,88,70);
}

.ui-sortable-placeholder {
  border: 3px dashed #777!important;
  margin-bottom: 29px;
}

.ui-sortable-helper {
  transform: rotate(-5deg);
  box-shadow: 0 0 15px 0 #000;
  transition: transform 0.5s ease;
  border: 0;
}

.order-item {
  transition: transform 0.5s ease;
  background-color: #F4F4F4;
  position: relative; }
  .order-item__handler {
    cursor: grab;
    position: absolute;
    height: 15px;
    bottom: 23px;
    left: 9px;
    width: 15px;
    border: 3px dashed #777;
    border-top: 0;
    border-right: 0;
    display: none; }
    .order-item:hover .order-item__handler {
      z-index: 999;
      display: block; }
      .order-item__handler:hover,
      .order-item__handler:active {
        background-color: #fff;
        opacity: 0.5;
        right: 9px;
        top: -6px;
        height: auto;
        width: auto;
        border: 3px dashed #777;
        filter: none; }
        .order-item__handler:active {
          cursor: grabbing; }

.settings-tabs .tab-pane p:last-child {
  margin: 0;
}

select.form-control {
  padding: 0.75rem 1.307rem;
}

.justify-content-flex-start {
  justify-content: flex-start;
}

.help-row {
  display: none;
  background-color: transparent;
  border: 1px solid #EBEBEB;
  border-top: 0!important;
  color: #878787;
}

.help-row,
.help-row .icon {
  cursor: help;
}

#project-body select[name="user"]:disabled + .help-row {
  display: block;
  position: relative;
}

#project-body select[name="user"]:disabled + .help-row::before {
  content: '';
  width: 0;
  height: 0;
  position: absolute;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-right: 16px solid #EBEBEB;
  right: 50%;
  transform: translateX(50%) rotate(-90deg);
  top: -9px;
  cursor: no-drop;
}

select:disabled {
  cursor: no-drop;
}

.payment-list__parent {
  /* position: relative; */
}

ul.payment-list-container {
  border: 2px solid #ebebeb;
  border-top: 0;
  padding: 0;
  list-style: none;
  max-height: 50vh;
  overflow-y: auto;
  /* position: absolute;
  top: 100%;
  left: 15px;
  right: 15px; */
  background-color: #fff;
  display: none;
}

ul.payment-list-container.open {
  display: block;
}

ul.payment-list-container > li > div {
  padding: 0.75rem 1.307rem;
  text-align: left;
  display: block;
  width: 100%; }
  ul.payment-list-container > li > div:not(:first-child) {
    padding-top: 0!important; }

ul.payment-list-container > li {
  cursor: pointer; }
  ul.payment-list-container > li:hover {
    background-color: #ebebeb; }

ul.payment-list-container > li:not(:last-child) {
  border-bottom: 1px solid #ebebeb;
}

.medium {
  font-weight: 600;
}

.position-relative {
  position: relative!important;
}

.budget-operations__hint {
  height: 30px;
  border-radius: 15px 0 0 15px;
  width: auto;
  white-space: nowrap;
  display: none;
  position: absolute;
  right: 30px;
  color: #fff;
  line-height: 30px;
  padding: 0 15px;
}

.budget-operations__button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  height: 30px;
  width: 30px;
  padding: 5px 10px 5px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 50% 50% 0; }
  .budget-operations__button:hover {
    color: #fff; }
    .budget-operations__button:hover .icon {
      color: #fff; }
      .budget-operations__button:hover .budget-operations__hint {
        display: flex; }
        tr.done .budget-operations__button:hover,
        tr.done .budget-operations__hint {
          background-color: #4DB8EA; }
          tr.approved .budget-operations__button:hover,
          tr.approved .budget-operations__hint {
            background-color: #2CC185; }

.mai-top-header .navbar-nav > .nav-item.dropdown .dropdown-menu > .dropdown-item.active {
  color: #fff;
}

.project-history-item-attachments .attachment-row > a:hover {
  text-decoration: underline;
}

option[disabled] {
  background-color: #eee;
  color: #fff;
  cursor: no-drop;
}

.user-stats-milestone {
  padding: 6px 32px 32px;
}
