@import "_variables";

.amelia-app-booking {
  #am-cabinet {
    .am-cabinet-timezone {
      padding: @padding-small;
      font-size: 14px;
      cursor: pointer;
      background-color: fade(@color-gradient2, 10%);
      &-icon {
        svg {
          fill: @color-white !important;
          margin-right: 2px;
        }
      }
      span {
        color: @color-white;
        display: flex;
        align-items: center;
      }

      .el-input__inner {
        color: @color-white !important;
      }

      .el-input__suffix {
        .el-input__suffix-inner {
          .el-icon-circle-close:before {
            color: @color-white
          }
        }
      }

    }

    .el-input__inner {
      height: 40px !important;
      margin-bottom: 0 !important;
      background: none !important;
    }

    .el-input--medium .el-input__inner {
      height: 36px !important;
    }

    .el-input--small .el-input__inner {
      height: 32px !important;
    }

    .el-input--mini .el-input__inner {
      height: 28px !important;
    }

    // Auth
    .am-cabinet-auth {
      background-color: #ffffff;
      max-width: 450px;
      margin: @margin-big auto;
      border-radius: 4px;
      box-shadow: 0 0 20px 10px rgba(64, 74, 91, 0.15);

      @media @less-then-small {
        padding: @padding-small;
      }

      // Auth Alert
      .el-alert {
        margin-bottom: 15px;
        width: 100%;
        color: #ffffff;

        &.el-alert--success {
          background-color: @color-green;
        }

        &.el-alert--error {
          background-color: @color-red;
        }

        .el-alert__closebtn, span {
          color: #ffffff;
          font-size: @small-fs;
        }
      }

      // Auth Content
      .am-cabinet-auth-content {
        padding: @padding-big*2 @margin-medium*4;

        @media @less-then-small {
          padding: @padding-small;
        }

        // Auth Content Title
        .am-cabinet-auth-title {
          font-size: @h4-fs;
          font-weight: 500;
          margin-bottom: @margin-medium;
        }

        // Auth Content Subtitle
        .am-cabinet-subtitle {
          opacity: 0.8;
          color: @color-text-second;
          margin-bottom: @margin-big;
        }

        // Auth Content Form
        .am-cabinet-auth-form {
          p {
            &:hover {
              text-decoration: underline;
            }

            margin-top: 10px;
            text-align: center;
            margin-bottom: 0;

            span {
              color: @color-accent;
              cursor: pointer;
              font-weight: 500;
            }
          }
        }
      }
    }

    // Dashboard
    .am-cabinet-dashboard {
      box-shadow: 0 0 20px 10px rgba(64, 74, 91, 0.15);
      max-width: 1000px;
      margin: 0 auto 40px;
      overflow: hidden;
      border-radius: 4px;

      .timezone_warning {
        .el-alert__description {
          color: #d28f2b;
          margin: @margin-small;
          text-align: center;
          padding-right: 5px;
        }
        .el-alert__closebtn {
          color: #d28f2b;
          border: 1px solid #d28f2b;
          border-radius: 50%;
          padding: 2px;
        }
      }

      .am-cabinet-dashboard-appointments, .am-cabinet-dashboard-events {
        padding: 40px !important;

        @media @less-then-medium {
          padding: 20px 10px !important;
        }
      }

      // Dashboard Header
      .am-cabinet-dashboard-header {
        background: linear-gradient(135deg, @color-gradient1 0%, @color-gradient2 100%);
        padding: @padding-medium*2;
        display: flex;
        align-items: center;
        justify-content: space-between;
        @media @less-then-small {
          display: block;
        }

        .am-cabinet-dashboard-user-data {
          display: flex;
          align-items: center;

          * {
            color: #ffffff;
          }

          .am-cabinet-user-initials {
            width: 40px;
            height: 40px;
            min-width: 40px;
            line-height: 40px;
            text-align: center;
            background-color: @color-light-gray;
            border-radius: 50%;
            color: @color-text-second;
            font-size: 18px;
            margin-right: @margin-medium;

            @media @less-then-small {
              display: none;
            }

            img {
              border-radius: 50%;
            }
          }

          .am-cabinet-user-email {
            font-size: 14px;
            cursor: pointer;

            .el-dropdown-link {
              color: @color-white;
              height: 25px;
              display: inline-block;

              i {
                color: @color-white;
              }
            }
          }
        }
      }

      // Dashboard Menu
      .am-cabinet-menu {
        background: linear-gradient(135deg, @color-gradient1 0%, @color-gradient2 100%);
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        border-top: 1px solid rgba(255, 255, 255, .1);
        @media @less-then-small {
          display: block;
        }

        > div {
          padding: @padding-small @padding-big;
          color: #ffffff;
          cursor: pointer;
          transition: all 0.3s;

          &:hover, &.am-active {
            background-color: rgba(255, 255, 255, .1);
          }
        }

        .am-cabinet-menu-item {
          color: @color-white;
          padding: 8px 40px;
        }
      }

      // Dashboard Content
      .am-cabinet-content {
        background-color: #ffffff;
        min-height: 480px;

        @media @less-then-small {
          padding: 0;
        }

        .am-cabinet-filter {
          margin-bottom: 16px;

          @media @less-then-xsmall {
            .am-filter-fields {
              .popover-container {
                input {
                  padding: 8px;
                  font-size: 12px;
                }
              }

              .c-pane-container {
                padding: 0;
              }
            }
          }

          @media @more-then-small {
            .am-filter-fields {
              margin-right: 8px;
            }
          }

          @media @less-then-medium {
            .am-filter-fields {
              margin-bottom: 8px;
            }
          }
        }

        // Empty State
        .am-empty-state {
          text-align: center;
          padding: @padding-big 0;
          max-width: 300px;
          margin: 0 auto;

          p {
            margin: 0;
          }
        }

        .am-add-new-button {
          max-width: 100%;
          display: inline-block;
          white-space: nowrap;
          overflow: hidden !important;
          text-overflow: ellipsis;
        }

        // List Head
        .am-cabinet-list-head {
          padding: @padding-small @padding-medium  * 2 @padding-small @padding-medium;

          @media @less-then-large {
            display: none;
          }

          @media @less-then-small {
            padding: @padding-small;
          }

          p {
            margin: 0;
            color: #7F8FA4;
            font-size: @small-fs;

            &:first-letter {
              text-transform: uppercase;
            }
          }
        }

        // Cabinet List
        .am-cabinet-list {
          height: 410px;
          overflow-y: auto;
          overflow-x: hidden;

          &::-webkit-scrollbar {
            position: absolute;
            width: 8px;
            right: 1px;
          }

          &::-webkit-scrollbar-track {
            background: transparent;
          }

          &::-webkit-scrollbar-thumb {
            background: @color-dark-gray;
            border-radius: 0;
          }

          &::-webkit-scrollbar-thumb:hover {
            background: darken(@color-dark-gray, 10%);
          }

          @media @less-then-small {
            padding: @padding-small;
          }

          .am-cabinet {
            border-bottom: 1px solid @color-divider-gray;
            position: relative;

            &:first-child {
              @media @less-then-medium {
                border-top: none;
              }
            }

            h4 {
              display: inline-block;
              line-height: 1.1;
              vertical-align: middle;
              white-space: nowrap;
              overflow: hidden;
              text-overflow: ellipsis;
              width: 100%;
              margin: 0 !important;
              font-weight: normal;
              padding-top: 0 !important;
              padding-bottom: 0 !important;

              @media @less-then-large {
                font-size: 14px;
                padding: 0;
                margin: 0 auto;
              }
            }

            p, a {
              @media @less-then-large {
                font-size: 14px;
              }
            }

            img {
              border-radius: 50%;
              border: 2px solid #ffffff;
              display: inline-block;
              vertical-align: top;
              width: 32px;
              height: 32px;
              min-width: 32px;
              max-width: 32px;
              margin-top: 0 !important;
            }

            .am-assigned {
              display: flex;
              align-items: center;

              &.am-multiple-employees {
                img + img {
                  margin-left: -24px;
                }
              }

              img {
                margin-right: @margin-small;
              }
            }

            .am-cabinet-dropdown-menu {
              li {
                font-weight: 500;

                &:nth-child(2) {
                  color: @color-red;
                }
              }
            }

            .am-cabinet-button {
              display: flex;

              i {
                font-size: medium;
              }

              .am-cabinet-button-zoom {
                padding: 2px 12px;
              }
            }

            .am-cabinet-button-cancel {
              color: #ffffff;
              background-color: @color-red;
              border-color: @color-red;

              &:hover {
                color: #ffffff;
                background-color: darken(@color-red, 5%);
                border-color: darken(@color-red, 5%);
              }
            }

            .am-cabinet-button-disabled {
              color: @color-gray;
              opacity: 0.5;

              cursor: not-allowed;
              pointer-events: none;
            }

            p.am-col-title {
              display: none;
              font-size: @small-fs;
              margin: 0;
              color: @color-url;
              font-weight: normal;

              &:first-letter {
                text-transform: uppercase;
              }

              @media @less-then-large {
                display: block;
              }
            }

            .am-cabinet-row {
              display: flex;
              align-items: center;
              padding: 16px 0;
              position: relative;
              width: 100%;
              min-width: 100%;

              @media @less-then-large {
                display: block;
                align-items: unset;
              }
            }

            .am-cabinet-limited-col {
              //display: flex;

              span, h4 {
                display: inline-block;
                width: 90%;
                white-space: nowrap;
                overflow: hidden !important;
                text-overflow: ellipsis;
              }
            }

            .am-recurring-label {
              display: flex;
              color: @color-orange;

              svg {
                margin-right: 4px;
                width: 15px;
                height: 15px;
              }
            }

            .am-cabinet-list-day-title {
              padding: 4px 16px;
              background-color: @color-light-gray;
            }

            .am-cabinet-collapsed-content {
              padding: 16px 0;
              border-top: 1px solid @color-divider-gray;

              .am-data, .am-value {
                display: inline;
                align-items: center;
                margin: 0;

                &.am-text-red {
                  color: @color-red;
                }

                &.am-text-green {
                  color: @color-green;
                }
              }

              .am-data {
                color: @color-url;
              }

              .am-has-divider {
                border-bottom: 1px solid @color-divider-gray;
                padding-bottom: 16px;
                margin-bottom: 16px;

                &:last-of-type {
                  border-bottom: none;
                  padding-bottom: 0;
                  margin-bottom: 0;
                }
              }

              .am-customer-name {
                line-height: 2;
                font-weight: 500;
              }

              @media @less-then-large {
                .am-hide-less-than-desktop {
                  display: none;
                }
              }
            }

            .am-status {
              display: flex;
              align-items: center;

              @media @less-then-large {
                display: inline-flex;
              }
            }

            .am-cabinet-buttons-align-right {
              text-align: right;

              @media @less-then-small {
                .el-dropdown, .el-dropdown .el-button {
                  width: 100%;
                }
              }

              @media @less-then-large {
                display: inline-flex;
                align-items: center;
              }
            }

            &:last-of-type {
              border-bottom: none;
            }
          }

          &.am-cabinet-list-package {
            .am-cabinet {
              img {
                height: auto;
                width: unset;
                max-width: 100%;
              }
            }
          }
        }

        // Flex Row
        .am-cabinet-flex-row-middle-align {
          display: flex;
          align-items: center;

          @media @less-then-large {
            align-items: inherit;
          }

          @media @from-small-to-large {
            padding-bottom: @padding-small;
          }

          @media @less-then-small {
            display: block;
            &:first-of-type {
              margin-bottom: 0;
            }
          }

          .el-col {
            @media @less-then-small {
              margin-bottom: @margin-small;
            }
          }
        }

        // Cabinet Profile
        .am-cabinet-profile {
          @media @less-then-large {
            p, span, label, div {
              font-size: 14px;
            }
          }

          &__title {
            padding: 24px 40px 16px;

            p {
              margin: 0;
              font-size: 20px;
              letter-spacing: 0;
              line-height: 24px;
            }
          }

          &__zoom {
            .el-form-item > label {
              margin-bottom: 0;
            }
          }

          &__outlook {
            display: inline-block;
            width: 100%;
          }

          .am-google-calendar-button {
            padding: 0;
            height: 40px;
            border: 1px solid transparent;
            margin: inherit;
            width: 100%;
            background-color: #4285F4;
            -webkit-border-radius: 1px;
            border-radius: 1px;
            box-shadow: 0 2px 4px 0 rgba(0, 0, 0, .25);
            -webkit-box-sizing: border-box;
            box-sizing: border-box;
            -webkit-transition: background-color .218s, border-color .218s, box-shadow .218s;
            transition: background-color .218s, border-color .218s, box-shadow .218s;
            -webkit-user-select: none;
            -webkit-appearance: none;
            background-image: none;
            cursor: pointer;
            outline: none;
            overflow: hidden;
            position: relative;
            text-align: center;
            vertical-align: middle;
            white-space: nowrap;

            &:hover {
              background-color: #4285F4;
            }

            &:focus {
              background-color: #3367D6;
            }

            &.connected {
              background-color: #DC4E41;

              &:hover {
                background-color: #DC4E41;
              }

              &:focus {
                background-color: #C53829;
              }
            }

            .am-google-calendar-button-image {
              float: left;
              padding: 9px;
              background: #fff;
              border-radius: 1px;
            }

            .am-google-calendar-button-text {
              padding: 12px 0;
              display: inline-block;
              margin: 0;
            }
          }


          #am-google-calendar-connected {
            .el-badge__content {
              background-color: @color-green;
            }
          }

          #am-google-calendar-disconnected {
            .el-badge__content {
              background-color: @color-red;
            }
          }

          .am-google-calendar-tooltip {
            margin: 28px 0 0 -12px;
          }


          .am-cabinet-button {
            height: 90px;
            display: flex;
            border-top: 2px solid #E4E7ED;

            @media @less-then-small {
              display: block;
              height: initial;

              > div {
                display: block !important;
                padding: @padding-medium;
                width: unset !important;

                button {
                  margin: 0 !important;
                  width: 100%;

                  &:nth-child(2) {
                    margin-top: 16px !important;
                  }
                }
              }
            }

            > div {
              width: 100%;
              display: flex;
              align-items: center;
            }

            .am-save-button {
              margin-left: auto;
              margin-right: 32px;
              order: 2;
            }

            .el-button {
              margin-bottom: 0;
            }

            .el-button {
              @media @less-then-small {
                margin: 0 @padding-small @padding-small;
              }
            }
          }

          .el-tabs__nav-scroll {
            padding-left: 40px;

            @media @less-then-medium {
              padding-left: 0;
            }

            .el-tabs__item {
              font-size: 15px;
              color: #7F8FA4;

              &:hover {
                color: @color-text-prime;
              }

              &.is-active {
                color: @color-accent;
              }
            }

            .el-tabs__active-bar {
              background-color: @color-accent;
            }
          }

          .el-tabs__header {
            margin: 0;
          }

          .el-tabs__content {
            height: 400px;
            padding: 40px;
            overflow-y: auto;

            @media @less-then-medium {
              padding: 40px 30px;
            }

            @media @less-then-small {
              padding: 40px 24px;
            }

            &::-webkit-scrollbar {
              position: absolute;
              width: 8px;
              right: 1px;
            }

            &::-webkit-scrollbar-track {
              background: transparent;
            }

            &::-webkit-scrollbar-thumb {
              background: @color-dark-gray;
              border-radius: 0;
            }

            &::-webkit-scrollbar-thumb:hover {
              background: darken(@color-dark-gray, 10%);
            }
          }

          // Validation Errors
          .el-form-item__error {
            @media @less-then-medium {
              font-size: 10px;
            }
          }

          // Profile Details
          .am-cabinet-profile-details {
            display: flex;
            flex-wrap: wrap;

            //@media @less-then-large {
            //  display: block;
            //}

            // Profile
            .am-cabinet-profile-details-info {
              margin-left: auto;
              order: 2;
              display: flex;
              align-items: center;
              justify-content: center;

              &.mobile {
                order: 0;
              }

              @media @less-then-large {
                padding-bottom: @padding-big;
              }

              > div {
                .am-cabinet-details-picture {
                  text-align: center;
                  margin-bottom: 12px;

                  img {
                    border-radius: 50%;
                  }
                }

                .am-cabinet-details-name {
                  margin: 0;
                  color: @color-text-second;
                  font-size: 24px;
                  text-align: center;
                  line-height: 24px;
                }

                .am-cabinet-details-activity {
                  display: flex;
                  justify-content: center;

                  .am-employee-status-label {
                    margin-top: 12px;
                    font-size: 14px;
                    font-weight: 500;
                    display: inline-block;
                    padding: @padding-small/2 @padding-small;
                    border-radius: @border-radius/2;
                    @media @less-then-small {
                      margin-bottom: @margin-small;
                    }

                    &.available {
                      background-color: fade(@color-green, 10%);
                      color: @color-green;
                    }

                    &.busy {
                      background-color: fade(@color-orange, 10%);
                      color: @color-orange;
                    }

                    &.away, &.break, &.dayoff {
                      background-color: fade(@color-red, 10%);
                      color: @color-red;
                    }
                  }
                }
              }
            }
          }
        }

        // Assigned Services
        .am-assigned-services {
          line-height: 2;

          &__service-row {
            max-width: 100%;
          }

          .el-checkbox {
            margin-bottom: 0;
            margin-right: 16px;

            .el-checkbox__inner {
              width: 18px;
              height: 18px;

              &::after {
                height: 9px;
                left: 6px;
                top: 2px;
              }
            }
          }

          .am-dialog-table-head {
            background-color: @color-light-gray;
            border-radius: 4px;
            margin-top: 16px;
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: @color-text-prime;

            @media @less-then-medium {
              .el-col-12 {
                width: 100%;
                display: inline-block;
                white-space: nowrap;
                overflow: hidden !important;
                text-overflow: ellipsis;
              }

              .el-col-6 {
                display: none;
              }
            }

            &:first-child {
              margin-top: 0;
            }
          }

          &__service-row {
            margin-bottom: 16px;

            @media @less-then-medium {
              display: inline-block;
              margin: 0 !important;
              padding: 8px 0 12px;
              border-radius: 4px;

              &__name {
                width: 100%;
                padding: 0 0 4px 0 !important;
              }

              .el-col-6 {
                width: 100%;
                padding: 0 0 4px 0 !important;

                p {
                  display: block !important;
                }
              }

              > .el-col-3 {
                padding-left: 0 !important;
              }

              .el-col-3 {
                width: 50%;

                &:last-of-type {
                  padding-right: 0 !important;
                  padding-left: 5px !important;
                }

                p {
                  display: block !important;
                }
              }

              p {
                margin: 0;
              }
            }

            &__name {
              display: flex;
              align-items: center;

              span {
                display: inline-block;
                width: 100%;
                white-space: nowrap;
                overflow: hidden !important;
                text-overflow: ellipsis;
              }
            }
          }

          .el-input-number {
            width: initial;
          }
        }

        // Working Hours
        .am-working-hours {
          .am-dialog-table {
            .am-dialog-table-head {
              display: flex;
              padding: 8px 16px;
              border-top-left-radius: 4px;
              border-top-right-radius: 4px;
              margin-bottom: 0;
              background-color: #f2f3f5;
              font-size: 15px;
              font-weight: 500;
              line-height: 24px;
              margin-top: 16px;
            }
          }

          .am-dialog-table:first-of-type {
            .am-dialog-table-head {
              margin-top: 0;
            }
          }

          .am-period {
            padding: 0 18px 0 16px;
            border-left: 1px solid #f2f3f5;
            border-right: 1px solid #f2f3f5;
            border-bottom: 1px solid #f2f3f5;
            font-size: 14px;
            font-weight: 500;

            @media @less-then-medium {
              display: flow-root;
            }

            .el-row {
              line-height: 40px;
              display: flex;
              flex-wrap: wrap;

              @media @less-then-medium {
                //display: block;

                .el-col {
                  width: 100%;
                }
              }

              .am-flexed2 {
                display: flex;

                &:last-of-type {
                  justify-content: flex-end;
                }

                &.mobile {
                  position: absolute;
                  display: flex;
                  right: 0;
                }

                @media @less-then-medium {
                  //display: block;

                  .am-overflow-ellipsis {
                    display: flex;
                  }

                  &:last-of-type {
                    //float: left;
                    position: absolute;
                    display: flex;
                    right: 0;
                  }
                }

                &:last-child {
                  margin-left: auto;
                  order: 2;

                  .am-edit-element, .am-delete-element {
                    margin-right: 10px;
                    cursor: pointer;
                  }

                  .am-edit-element {
                    display: flex;

                    @media @less-then-medium {
                      display: inline-block;
                    }

                    img {
                      width: 15px;
                    }
                  }
                }
              }
            }

            &__services {
              > span {
                width: 100%;
                display: inherit;

                span {
                  color: @color-text-prime;
                  opacity: 0.6;
                  display: inline-block;
                  width: 90%;
                  white-space: nowrap;
                  overflow: hidden !important;
                  text-overflow: ellipsis;
                  line-height: 40px;
                }
              }
            }

            &__locations {
              > span {
                color: @color-text-prime;
                opacity: 0.6;
                display: inline-block;
                width: 100%;
                white-space: nowrap;
                overflow: hidden !important;
                text-overflow: ellipsis;
                line-height: 40px;
              }
            }

            &:last-of-type {
              border-bottom-left-radius: 4px;
              border-bottom-right-radius: 4px;
            }
          }

          .am-add-period {
            font-size: 15px;
            padding: 10px 16px;
            border-bottom: 1px solid #f2f3f5;
            border-left: 1px solid #f2f3f5;
            border-right: 1px solid #f2f3f5;

            .el-select {
              &--mini {
                margin-bottom: @margin-small/2*3;
              }

              &__input {
                &.is-mini {
                  height: 28px;
                }
              }
            }

            .am-add-period-type {
              margin-bottom: 16px;
            }

            .el-form-item {
              margin-bottom: 0;
            }

            .am-working-hours-buttons {
              text-align: right;

              .el-button {
                margin-left: 0;
              }
            }

            .el-input {
              width: 100%;
            }
          }


        }

        // Days Off
        .am-days-off {
          .am-dialog-table {
            h4 {
              margin-bottom: 0;
            }

            .el-row {
              margin-bottom: 8px;

              .type {
                display: inline-block;
                width: 16px;
                min-width: 16px;
                height: 16px;
                background-color: #D3DDEA;
                vertical-align: text-top;
                margin-right: 8px;
                border-radius: 4px;

                &.repeat {
                  background-color: #FFA700;
                }

                &.once {
                  background-color: #ff1563;
                }
              }
            }
          }

          &__header {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
          }

          &__legend {
            display: flex;
            flex-wrap: wrap;
            order: 2;

            & > div {
              margin-top: @margin-medium;
            }

            .am-legend-once {
              margin-left: 16px;
            }
          }

          .am-employee-days-off, .am-company-days-off {
            line-height: 2;

            .am-dialog-table-head {
              padding: 0 16px;
              background-color: #f2f3f5;
              margin-top: 16px;
              border-radius: 4px;
            }

            .am-day-off {
              padding: 0 16px 4px;
              border-bottom: 1px solid #E2E6EC;

              @media @less-then-small {
                display: inline-block;
                padding-left: 0;
                padding-right: 0;

                .el-col-12 {
                  width: 100%;
                }

                .el-col-8, .el-col-4 {
                  width: 50%;
                }
              }

              &__name-column {
                display: flex;

                span {
                  display: inline-block;
                  width: 100%;
                  white-space: nowrap;
                  overflow: hidden !important;
                  text-overflow: ellipsis;
                }
              }

              .align-right {
                margin-left: auto;
                order: 2;
                display: flex;
                align-items: center;
                justify-content: flex-end;

                .am-edit-element, .am-delete-element {
                  margin-right: 10px;
                  cursor: pointer;
                }
              }

              .am-edit-element {
                display: flex;

                img {
                  width: 15px;
                }
              }
            }

            .am-day-off-add-buttons {
              display: flex;
              align-items: center;
              justify-content: flex-end;

              @media @less-then-small {
                margin-top: 16px;

                button {
                  width: 100%;
                  margin-left: 0;
                }
              }


              .am-dialog-create {
                margin: 0;
              }

              button {
                margin-bottom: 0;
              }
            }

            .am-add-day-off {
              margin-left: 4px;
            }
          }

          .am-company-days-off {
            margin-top: 16px;
          }
        }

        // Special Days
        .am-employee-special-days {
          .am-dialog-table {
            .am-dialog-table-head {
              line-height: 2;
              border-radius: 4px;
              background-color: @color-light-gray;
              margin-bottom: 16px;
              display: flex;
              align-items: center;
              justify-content: center;
              color: @color-text-prime;
            }
          }

          .am-special-day {
            margin-bottom: @margin-medium;
            border-bottom: 1px solid @color-divider-gray;

            .el-row {
              margin-bottom: @margin-medium;
            }

            .am-special-day-service {
              color: @color-accent;

              &:before {
                content: ", ";
              }

              &:first-child {
                &:before {
                  content: "";
                }
              }
            }

            .align-right {
              margin-left: auto;
              order: 2;
              display: flex;
              align-items: center;
              justify-content: flex-end;
              min-width: 60px;

              .am-edit-element {
                display: inline-flex;

                img {
                  width: 15px;
                }
              }

              .am-edit-element, .am-delete-element {
                margin-right: 10px;
                cursor: pointer;
              }
            }

            .am-special-day-break {
              opacity: 0.6;

              &:before {
                content: ", ";
              }

              &:first-child {
                &:before {
                  content: "";
                }
              }
            }
          }

          .am-special-day-add {
            @media @less-then-small {
              .am-dialog-table-head {
                display: none;
              }

              .am-period {
                > .el-row {
                  display: inline-block;

                  .el-form-item {
                    margin-bottom: 0;
                  }

                  .el-col-10, .el-col-7, .el-col-5 {
                    width: 100%;
                    margin-bottom: 16px;
                  }

                  > .el-col-12 {
                    width: 91.66667%;
                  }
                }
              }

              .am-add-elements {
                margin-bottom: 16px;
              }

              .am-special-day-buttons {
                > div {
                  display: inline-block !important;

                  button {
                    width: 100%;
                    margin: 0 !important;

                    &:first-of-type {
                      margin-bottom: 16px !important;
                    }
                  }
                }
              }
            }

            .am-special-day-buttons {
              .align-right {
                margin-left: auto;
                order: 2;
                display: flex;
                align-items: center;
                justify-content: flex-end;

                button {
                  margin-bottom: 0;
                }

                .am-dialog-create {
                  margin-right: 0;
                  margin-left: 0;
                }
              }
            }

            .el-form {
              padding: 16px 0;

              .el-input {
                width: inherit;
              }

              .popover-container {
                margin-bottom: 0 !important;
              }
            }
          }
        }
      }
    }

    // Dialogs
    .el-dialog {
      max-width: 480px;
      width: 96%;

      .el-dialog__header {
        padding: @padding-medium;
      }

      .el-dialog__body {
        padding: @padding-medium;
      }

      .am-reschedule-title {
        word-break: break-word;
      }

      input, .el-date-editor.el-input, .el-date-editor.el-input__inner {
        width: 100%;
      }
    }

    @media @less-then-medium {
      .el-select__tags {
        max-width: none !important;
      }
    }

    .el-collapse-item {
      padding: 0 16px;
      border-bottom: 1px solid @color-divider-gray;

      &:hover, &.is-active {
        background-color: @color-highlight;
      }

      &__header {
        border-bottom: none;
      }
    }

    .el-collapse-item__header {
      height: auto;
      line-height: inherit;
      padding-left: 0;
      background-color: transparent;
      color: @color-text-prime;
      cursor: pointer;
      border-bottom: none;
      font-size: inherit;
      position: relative;
    }

    .el-collapse-item__wrap {
      border-bottom: none;
      background-color: transparent;
    }

    .el-collapse {
      border: none;
    }

    .el-collapse-item__header__arrow {
      position: absolute;
    }

    .el-collapse-item__arrow {
      position: absolute;
      right: 0;
      z-index: 1;
      cursor: pointer;
      margin-right: 0;
      pointer-events: all;
      line-height: 1;
    }

    .el-collapse-item__content {
      padding: 0;
    }

    // Appointment package list - start
    .am-package {
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
      border-radius: 5px;
      padding: @padding-small;
      margin-bottom: @margin-small;
      background: #FFFFFF;
      box-shadow: 0px 1px 3px -1px rgba(1, 1, 1, 0.31), 0px 0px 4px -1px rgba(0, 0, 0, 0.11);

      @media @less-then-small {
        flex-direction: column;
        align-items: flex-start;
      }

      & div {
        display: flex;
      }

      &__left {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
      }

      &__right {
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;

        @media @less-then-small {
          align-self: center;
        }
      }

      &__img-holder {
        flex: 0 0 auto;
        position: relative;
        margin-right: 12px;

        img {
          display: block;
          width: 36px;
          height: 36px;
          border-radius: 50%;
        }
      }

      &__color {
        display: block;
        width: 22px;
        height: 22px;
        position: absolute;
        bottom: -3px;
        right: -3px;
        background-color: @color-blue;
        border-radius: 50%;
        border: 3px solid #FFFFFF;
      }

      &__text-holder {
        flex-direction: column;
      }

      &__heading {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
      }

      &__name {
        font-size: @regular-fs;
        font-weight: @medium;

        @media @less-then-xsmall {
          width: 100%;
        }
      }

      &__type {
        height: 16px;
        font-size: @mini-fs;
        font-weight: @bold;
        line-height: 1;
        padding: 2px 4px;
        margin-left: @margin-small;
        border-radius: 3px;
        background-color: @color-light-gray;

        @media @less-then-xsmall {
          margin: @margin-small 0;
        }
      }

      &__valid-date {
        font-size: @small-fs;
        font-weight: @regular;
        line-height: 1.2;
        color: @color-dark-gray;

        span {
          margin-left: 6px;
          color: @color-dark-gray;
        }
      }

      &__button {
        align-items: center;
        cursor: pointer;

        @media @less-then-small {
          margin-top: @margin-medium;
        }

        i {
          font-size: @big-fs;
        }
      }

      &__button-text {
        font-size: @small-fs;
        font-weight: @medium;
      }

      &__rule {
        align-items: flex-start;
        padding: 4px @padding-small;
        border-radius: 4px;
        background-color: @color-light-gray;

        p {
          margin: 0 0 0 @margin-small;
        }

        span {
          font-weight: @medium;
        }

        svg {
          flex: 0 0 auto;
        }
      }
    }
    // Appointment package list - end

    // Appointment booking page - start
    .am-booking-page {

      &__left {
        display: flex;
        position: relative;
        flex-direction: column;
        align-items: start;
        margin: @margin-medium 0 0;

        div {
          display: flex;
        }
      }

      &__right {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        justify-content: flex-end;
        margin: @margin-medium 0 0;

        @media @less-then-small {
          width: 100%;
          justify-content: flex-start;
        }

        div {
          display: flex;
        }
      }

      &__heading {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        margin-bottom: @margin-big;
      }

      &__heading-inner {
        align-items: center;
        margin-bottom: @margin-medium;
      }

      &__button-holder {
        .am-package__button {
          display: flex;
        }
      }

      &__service-info {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        margin-bottom: @margin-medium;

        @media @less-then-xsmall {
          flex-direction: column;
          align-items: flex-start;
        }

        p {
          margin-bottom: 0;
        }

        &-popover {
          padding: @padding-medium @padding-medium 0px;
          max-width: 300px;
        }

        &-data {
          display: flex;
          flex-wrap: wrap;
          align-items: center;
          font-size: @regular-fs;
          font-weight: @medium;
          padding-bottom: @padding-small;
          margin-bottom: @margin-small;
          border-bottom: 1px solid @color-divider-gray;
        }

        &-content {
          > div {
            display: flex;
            flex-direction: row;
            align-items: center;
            flex-wrap: wrap;
            margin: @margin-small 0;

            span {
              display: inline-block;

              &:after {
                content: ',';
              }

              &:last-child {
                &:after {
                  content: '';
                }
              }
            }

            i {
              font-size: @medium-fs;
              font-weight: @bold;
              margin-right: @margin-small;
            }
          }

          &-locations, &-duration {
            padding-left: @padding-small;
            * {
              color: @color-icon;
            }
          }

          &-employees {
            p {
              font-weight: @medium;
              margin-right: @margin-small;
            }
          }
        }
      }

      &__service-info-button {
        margin: 0;
        padding: 0;
        border: none;

        @media @less-then-xsmall {
          align-self: center;
          margin-top: @margin-small;
        }

        &:hover {
          background-color: #FFFFFF;

          span {
            color: @color-accent;
          }
        }

        & > span {
          display: flex;
          flex-direction: row;
          align-items: center;
          color: @color-accent;

          span {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 20px;
            height: 20px;
            border: 2px solid @color-accent;
            border-radius: 50%;
            color: @color-accent;
          }

          p{
            color: @color-accent;
            margin-left: 4px;
          }
        }
      }

      &__appointment-booking {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        border-radius: 5px;
        padding: 12px;
        margin-bottom: @margin-big;
        background: #FFFFFF;
        box-shadow: 0px 1px 3px -1px rgba(1, 1, 1, 0.31), 0px 0px 4px -1px rgba(0, 0, 0, 0.11);

        @media @less-then-xsmall {
          flex-direction: column;
          align-items: flex-start;
        }

        &-left {
          flex-direction: row;
          align-items: center;
          justify-content: flex-start;
        }

        &-right {
          flex-direction: row;
          align-items: center;
          justify-content: flex-end;

          @media @less-then-small {
            align-self: center;
            margin-top: @margin-small;
          }
        }

        &-number {
          font-size: @small-fs;
        }

        &-button-booking {
          margin: 0;
        }

        &-button-text {
          text-transform: uppercase;
          color: @color-white;
        }
      }

      &__service-wrapper {}

      &__calendar-popover {
        width: 100%;
        max-width: 352px;
        padding: 0;
      }

      &__calendar-block {}

      &__calendar-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px;
        margin-bottom: 12px;
        border-bottom: 1px solid @color-divider-gray;

        p {
          font-size: @regular-fs;
          font-weight: @medium;
          margin: 0;
        }

        .el-button {
          font-size: @big-fs;
          padding: 0;
          margin: 0;
          border: none;
          background-color: @color-white;
        }
      }

      &__date-block {
        padding: @padding-medium;

        .am-calendar-picker, .c-pane {
          @media @less-then-xsmall {
            min-width: 100% !important;
          }
        }
      }

      &__time-block {
        display: flex;
        flex-direction: column;

        .am-appointment-times {
          margin-bottom: 0;
          height: 190px;
          max-height: 190px;
          overflow-y: auto;

          .el-radio-button {
            margin: @margin-small/2;
            width: 100%;
            max-width: 150px;

            .el-radio-button__inner {
              width: 100%;
              padding: 10px;
              color: @color-text-prime;
              border: 1px solid @color-divider-gray;
              border-radius: 3px;

              &:hover {
                color: @color-accent;
              }
            }

            .el-radio-button__orig-radio:checked + .el-radio-button__inner {
              background-color: @color-accent;
              border-color: @color-accent;
              box-shadow: none;
              -webkit-box-shadow: none;
              color: @color-white;

              &:hover {
                color: @color-white;
              }
            }

            .el-radio-button__orig-radio:disabled + .el-radio-button__inner {
              &:hover {
                color: @color-light-gray;
              }
            }
          }

          .el-radio-group {
            text-align: center;
            width: 100%;
          }
        }
      }

      &__success {
        &-block {
          text-align: center;
        }

        &-images {
          position: relative;
          min-height: 60px;
          margin-top: 50px;

          > img {
            position: absolute;
          }

          &-first {
            top: 50%;
            left: 50%;
            transform: translate(-30%, -70%);
          }

          &-second {
            top: 0;
            left: 50%;
            transform: translateX(-50%);
          }
        }

        &-text {
          max-width: 200px;
          width: 100%;
          font-size: @regular-fs;
          color: #000;
          margin: @margin-medium auto @margin-small;
        }

        &-left-appointment {
          color: @color-icon;
        }

        &-button {
          margin-bottom: 2*@margin-medium;
        }
      }

      &__back-button {
        text-align: left;
        border: none;
        background-color: @color-white;
        margin: 0;

        &:hover {
          background-color: @color-white;
        }

        i {
          font-weight: @bold;
        }
      }

      &__booking-button {
        text-transform: uppercase;
        margin: @margin-medium;
      }

      .am-package {
        &__img-holder {
          img {
            width: 52px;
            height: 52px;
          }
        }

        &__name {
          width: 100%;
          margin-bottom: @margin-small;
        }

        &__type {
          margin: 0;
        }

        &__color {
          width: 26px;
          height: 26px;
        }

        &__valid-date {
          display: flex;
          flex-direction: column;

          @media @less-then-small {
            width: 100%;
            flex-direction: row;
            align-items: center;
            justify-content: space-between;
          }

          span {
            color: @color-text-prime;
            line-height: 1.6;
          }
        }

        &__date-until {
          font-size: @regular-fs;
          font-weight: @medium;
        }
      }

      .el-tabs {
        &__item {
          color: @color-text-prime;
        }

        &__active-bar {
          background-color: @color-accent;
        }
      }
    }
    // Appointment booking page - end
  }

  .am-setting-box {
    border: 1px solid @color-divider-gray;
    border-radius: 3px;
    margin-bottom: @margin-big;
    position: relative;
    line-height: 0.8;

    &.am-switch-box {
      padding: 13px;

      p {
        font-size: @small-fs;
        //height: 50px;
      }

      .el-col {
        min-height: 16px;
      }
    }

    .el-row {
      margin-bottom: 0 !important;
    }

    .am-service-deposit {
      margin-top: @padding-small;

      p {
        margin: 0;
        font-size: 14px;
        line-height: 40px;
      }

      i {
        color: #d52878;
      }

      label {
        display: inline-block;
        font-weight: normal;
      }
    }

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

  .v-calendar-column {
    @media @less-then-small {
      text-align: left;
    }
  }
}

// Profile Dropdown
.am-cabinet-profile-dropdown {
  color: @color-text-second;

  .el-dropdown-menu__item {
    font-weight: 500;
    color: @color-text-second;
    display: flex;
    align-items: center;

    &:first-of-type {
      padding-top: 8px;
    }

    svg {
      padding-right: 4px;

      path {
        fill: @color-text-second;
      }
    }
  }

  .el-dropdown-menu__item:hover, .el-dropdown-menu__item:focus {
    background-color: inherit;
    color: @color-accent;

    svg {
      path {
        fill: @color-accent;
      }
    }
  }

  &__info {
    border-bottom: 1px solid #E2E6EC;
  }

  &__name {
    color: @color-text-second;
    display: block;
    font-size: 16px;
    padding: 0 16px;
  }

  &__email {
    color: @color-text-second;
    display: block;
    font-size: 14px;
    padding: 0 16px 8px;
    opacity: 0.6;
  }
}

.v-calendar-column {
  @media @less-then-small {
    text-align: left;
    //padding: @padding-small 0 0;
  }
}

.el-picker-panel, .el-popover, .el-select-dropdown, .el-tooltip__popper, .el-notification {
  font-family: @font;
  max-width: 100%;
}

.el-dialog {
  overflow: visible !important;

  .am-dialog-appointment {
    .el-tabs__content {
      overflow: visible;
    }

    .am-custom-fields {
      .popover-content {
        background-color: #ffffff !important;
      }

      .c-weekdays {
        border-bottom: 1px solid @color-divider-gray;
        margin-left: 3px;
        margin-right: 3px;
      }

      .c-day-content {
        font-size: 12px;
      }
    }

    @media @less-then-small {
      .am-dialog-scrollable {
        margin-bottom: 0 !important;
      }
    }
  }
}
.am-service-deposit {
  margin-top: @padding-small;

  p {
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 40px !important;
  }

  i {
    color: #d52878;
  }

  .el-icon-question {
    color: @color-icon !important;
  }
}

