@use "./mixins" as *;

$scheduler-appointment-base-color: null !default;
$scheduler-tooltip-appointment-text-color: null !default;
$scheduler-appointment-overlay-bg: null !default;

.dx-popup-wrapper.dx-scheduler-appointment-tooltip-wrapper,
.dx-scheduler-overlay-panel {
  .dx-popup-content {
    padding: 0;

    .dx-list-item {
      width: 360px;

      .dx-list-item-content {
        padding: 5px;
      }
    }
  }

  .dx-overlay-content {
    box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.15);
  }

  .dx-tooltip-appointment-item {
    display: flex;

    .dx-tooltip-appointment-item-marker-body {
      margin-top: 7px;
      margin-left: 5px;
      background: $scheduler-appointment-base-color;

      @include use-colored-marker(20);
    }

    .dx-tooltip-appointment-item-delete-button .dx-icon {
      color: $scheduler-tooltip-appointment-text-color;
    }

    .dx-tooltip-appointment-item-content {
      flex-basis: 100%;
      margin: 5px 10px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      color: $scheduler-tooltip-appointment-text-color;

      .dx-tooltip-appointment-item-content-subject {
        text-align: left;
        font-weight: bold;
        font-size: 16px;
        letter-spacing: 0.01em;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .dx-tooltip-appointment-item-content-date {
        text-align: left;
        font-size: 12px;
        opacity: 0.8;
        margin-top: 10px;
      }
    }
  }
}

.dx-scheduler-overlay-panel {
  .dx-overlay-content {
    position: relative;
    background: $scheduler-appointment-overlay-bg;
  }
}
