@use 'variables' as *;
@include export-module('chart-wizard-layout') {

  #{&}.e-chart-wizard-context-menu {

    .e-chart-wizard-container {
      border-radius: 4px;
    }

    .e-chart-wizard-chart-export-container {
      padding: 11px;
    }

    .e-tab {
      display: flex;
      flex-direction: column;

      .e-content {
        overflow-y: auto;
      }
    }

    .e-accordion {
      .e-acrdn-item.e-select .e-acrdn-panel .e-acrdn-content {
        margin-bottom: 10px;
      }

      .e-acrdn-item .e-acrdn-header .e-acrdn-header-content {
        font-size: 16px;
        font-weight: 600;
      }
    }

    .e-chart-wizard-bottom-spacer {
      margin-bottom: 12px;
    }

    .e-chart-wizard-intermediate-spacer {
      margin-left: 12px;
    }

    .e-chart-wizard-display-flex {
      display: flex;
    }

    .e-chart-wizard-data-tab-container {
      padding: 8px 7px;
    }

    .e-chart-wizard-list {
      display: flex;
      align-items: center;
      margin: 4px 0;
      padding: 6px;
      border-radius: 4px;
      gap: 12px;
      cursor: pointer;

      .e-icons {
        padding: 0;
      }
    }

    .e-chart-wizard-hidden-tab {
      display: none;
    }

    .e-chart-wizard-toggle-tab {
      position: absolute;
      top: 0;
      right: 0;
      align-items: center;
      padding: 0 8px;
    }

    
    .e-chart-wizard-sidebar {
      .e-sidebar {
        visibility: hidden;
      }
      .e-open {
        visibility: visible;
      }
    }

    .e-chart-wizard-tabs {
      width: 100%;
      height: 100% !important; /* stylelint-disable-line declaration-no-important */
      position: absolute;

      .e-tab-header {
        width: calc(97% - 15%) !important; /* stylelint-disable-line declaration-no-important */
      }

      .e-content{
        border-top: 1px solid $chart-wizard-border-color;
      }
    }

    .e-chart-wizard-btn-grp-container {
      width: 100%;
    }

    .e-chart-wizard-btn-grp-title {
      width: 100%;
      font-weight: 600;
    }

    .e-chart-wizard-property-name {
      width: fit-content;
      margin-bottom: 4px;
    }

    .e-chart-wizard-property-header {
      width: fit-content;
      margin-bottom: 4px;
      font-weight: 600;
    }

    .e-chart-wizard-axis-header {
      margin-bottom: 12px;
      font-weight: 600;
      width: fit-content;
      line-height: 20px;
    }

    .e-chart-wizard-data-settings-header {
      width: fit-content;
      font-size: 16px;
      font-weight: 600;
      line-height: 20px;
      margin-bottom: 6px;
    }

    .e-chart-wizard-tab-container {
 
      .e-tab {
        .e-tab-header {
          .e-toolbar-items {
            width: 100%;
            justify-content: space-around;
          }
        }
      }
      
      .e-chart-wizard-outline-container {
        .e-chip-list {
          width: 100%;
          justify-content: space-around;
        }
      }

      
      .e-chip-list.e-multi-selection {
        .e-chip::before {
          content: none;
        }
      }
      
      
      .e-input-value {
        padding: 4px 12px;
      }

      .e-btn-series-list {
        margin-bottom: 8px;
      }

      
      .e-chart-wizard-outline-container {
        display: flex;
        align-items: center;
        border-bottom: 1px solid var(--color-sf-content-bg-color-selected);
        flex-wrap: wrap;
        box-sizing: border-box;
        min-height: 40px;
        width: 100%;
        height: auto;
        padding-top: 8px;
        padding-bottom: 8px;
        padding-left: 10px;
      }

      .e-chart-wizard-outline-container {

        &.chipbar {
          display: flex;
          align-items: center;
          gap: .5rem;
          flex-wrap: nowrap;
          overflow: hidden;
          border-bottom: 1px solid var(--color-sf-content-bg-color-selected);
          min-height: 40px;
          width: 100%;

          .e-chip-list {
            flex: 1 1 auto;
            width: auto;
            display: flex;
            flex-wrap: nowrap;
            justify-content: flex-start;
            gap: .375rem;
          }

          .chip-acc-icon {
            flex: 0 0 auto;
            align-self: flex-start;
            cursor: pointer;
            padding: 6px;
            transition: transform .15s ease;

            &.hidden {
              display: none;
            }

            &.expanded {
              transform: rotate(180deg);
            }
          }

          .chip-item.hidden {
            display: none;
          }

          .e-chip {
            flex: 0 0 auto;
          }

          &.expanded {
            align-items: flex-start;
            flex-wrap: nowrap;

            .e-chip-list {
              flex: 1 1 auto;
              width: auto;
              flex-wrap: wrap;
            }
          }
        }
      }

      .dock-menu {
        .e-menu-item {
          display: flex;
          align-items: center;
          justify-content: center;
          width: 37px;
        }
      }

      .dock-menu {
        ul {
          .e-menu-item {
            .e-menu-icon {
              margin: 0;
            }
          }

          &.e-vertical {
            min-width: 37px;
          }
        }
      }
    }

    .e-chart-wizard-toggle-tab-rtl {
      position: absolute;
      top: 0;
      left: 0;
      align-items: center;
      padding: 0 8px;
    }

    .e-sidebar.e-right.e-open {
      border: none;
    }

    &.e-rtl {
      .e-chart-wizard-intermediate-spacer {
        margin-left: 0;
        margin-right: 12px;
      }
    }
  }
}
