@use 'sass:list';

@mixin cf-menu-iconsets($float, $height, $width) {
  float: $float;
  height: $height;
  width: $width;
}

@mixin chart-menu-popup($min-width) {
  min-width: $min-width;
  overflow: visible;
  padding: 0;
}

@mixin chart-menu-item {
  height: auto;
  line-height: 0;
  padding: 0;
}

@mixin chart-type-styles($display, $font-size, $height, $margin, $padding, $width) {
  display: $display;
  font-size: $font-size;
  height: $height;
  margin: $margin;
  padding: $padding;
  width: $width;
}

@import '../spreadsheet-ribbon/mixin.scss';
@include export-module('spreadsheet-layout') {

  /*! spreadsheet layout */
  .e-spreadsheet {
    display: block;
    user-select: none;

    & .e-delete-sheet-dlg.e-dialog {
      @if $skin-name == 'FluentUI' {
        height: 211px !important; /* stylelint-disable-line declaration-no-important */
      }
    }

    & .e-protect-dlg.e-dialog {
      @if $skin-name != 'Material3' {
        height: $protect-dlg-height;
      }
      width: $protect-dlg-width;

      & .e-sheet-password-content {
        @if $skin-name != 'bootstrap5.3' {
          font-size: $protect-sheet-dlg-password-header-font-size;
        }
        @if $sheet-skin == 'Material3' {
          padding: 4px 0 16px;
        }
        & .e-header {
          @if $sheet-skin != 'Material3' {
            line-height: $protect-dlg-password-header-line-height;
            margin-bottom: 4px;
            @if $skin-name == 'bootstrap5.3' or $skin-name == 'tailwind3' {
              margin-bottom: 6px;
            }
            @if $skin-name == 'tailwind3' {
              font-weight: $spread-dialog-label-font-weight;
            }
          }
        }
      }
    }

    & .e-custom-format-dlg.e-dialog {
      @if $sheet-skin != 'material' and $sheet-skin != 'Material3' {
        height: 510px !important; /* stylelint-disable-line declaration-no-important */
        width: 530px !important; /* stylelint-disable-line declaration-no-important */
      }

      & .e-footer-content {
        padding: 0;
      }

      & .e-dlg-content {
        display: inline-table;
        @if $sheet-skin != 'Material3' and $skin-name != 'bootstrap5.3' {
          padding-top: 3px;
        }
      }
    }

    & .e-unprotectworksheet-dlg.e-dialog {
      & .e-dlg-content {
        & .e-unprotectsheetpwd-alert-span {
          color: $dlg-error-color;
          font-size: $unprotectsheet-alert-span-font-size;
          padding-top: $protect-unprotect-dlg-alert-span-padding-top;
          @if $sheet-skin == 'Material3' or $skin-name == 'fluent2' or $skin-name == 'bootstrap5.3' or $skin-name == 'tailwind3' {
            display: block;
          }
        }

        & .e-unprotectsheetpwd-content {
          & .e-header {
            font-size: $unprotectsheet-content-header-font-size;
            line-height: $reenterpwd-dlg-content-header-line;
            @if $skin-name == 'tailwind3' {
              font-weight: $spread-dialog-label-font-weight;
            }
            @if $sheet-skin == 'Material3' {
              padding-top: 4px;
            }
          }

          & .e-input {
            @if $sheet-skin != 'Material3' {
              margin-top: $reenterpwd-dlg-content-input-margin-top;
            }
          }
        }
      }
    }

    & .e-reenterpwd-dlg.e-dialog {
      & .e-dlg-content {
        & .e-reenterpwd-alert-span {
          color: $dlg-error-color;
          font-size: $reenterpwd-dlg-alert-span-font-size;
          padding-top: $protect-unprotect-dlg-alert-span-padding-top;
          @if $sheet-skin == 'Material3' or $skin-name == 'fluent2' or $skin-name == 'bootstrap5.3' or $skin-name == 'tailwind3' {
            display: block;
          }
        }

        & .e-reenterpwd-content {
          & .e-header {
            font-size: $reenterpwd-dlg-content-header-font-size;
            line-height: $reenterpwd-dlg-content-header-line;
            @if $skin-name == 'tailwind3' {
              font-weight: $spread-dialog-label-font-weight;
            }
            @if $sheet-skin == 'Material3' {
              padding-top: 4px;
            }
          }

          & .e-input {
            @if $sheet-skin != 'Material3' {
              margin-top: $reenterpwd-dlg-content-input-margin-top;
            }
          }
        }
      }
    }

    & .e-goto-dlg.e-dialog {
      height: auto;

      & .e-dlg-content .e-header {
        @if $skin-name == 'fluent2' {
          margin: 0;
          padding: 4px 0;
        }
        @if $skin-name == 'tailwind3' {
          font-weight: $spread-dialog-label-font-weight;
          line-height: $open-dlg-header-line-height;
          margin: 0;
          padding-bottom: $open-dlg-header-padding-bttom;
        }
      }

      & .e-dlg-content .e-goto-alert-span {
        @if $skin-name != 'fluent2' and $skin-name != 'tailwind3' {
          font-weight: bold;
          padding-top: 7px;
        }
        @else {
          color: $dlg-error-color;
          display: block;
          font-size: 12px;
          padding-top: 4px;
        }
      }
    }

    & .e-findnreplace-exactmatchcheckbox {
      @if $skin-name != 'fluent2' {
        padding: 12px;
      }
    }

    &.e-filter-open {
      position: relative;
    }

    & .e-findtool-dlg {
      border: 1px solid;
      @if $sheet-skin != 'Material3' and $skin-name != 'fluent2' {
        height: $find-tool-dlg-height;
      }
      width: $find-tool-dlg-width;
      @if $skin-name == 'fluent2' {
        & .e-find-toolbar {
          border: none;

          & .e-toolbar-item.e-separator {
            margin: 8px 4px;
          }
        }
      }

      &.e-rtl .e-find-toolbar {
        & .e-toolbar-items:not(.e-tbar-pos):not(.e-toolbar-multirow) .e-toolbar-item:first-child {
          @if $sheet-skin == 'Material3' {
            margin-left: 0;
            margin-right: 16px;
          }
        }

        & .e-toolbar-items:first-child:not(.e-toolbar-multirow) > .e-toolbar-item:last-child {
          @if $sheet-skin == 'Material3' {
            margin-left: 16px;
            margin-right: 0;
          }
        }
      }

      &.e-device {
        & .e-dlg-header-content {
          display: inline-flex;
          flex: 1 1 auto;

          & .e-dlg-header {
            flex: 1 1 auto;
          }
        }

        & .e-dlg-content {
          display: none;
        }
      }

      & .e-dlg-content,
      &.e-device .e-dlg-header-content {
        padding: 0%;
        @if $sheet-skin == 'tailwind' or $sheet-skin == 'tailwind-dark' {
          border-radius: 5px;
        }
        @else if $sheet-skin == 'Material3' {
          border-radius: 8px;
        }
        @if $skin-name == 'FluentUI' {
          margin-bottom: $bigger-find-tool-margin-bottom;
        }

        & .e-input-group {
          width: 170px;
          @if $skin-name == 'tailwind3' {
            width: 185px;
          }
          @if $sheet-skin == 'Material3' {
            background: $sheet-tab-active-bg-color;
          }
          & .e-input-group-icon {
            @if $sheet-skin == 'Material3' or $skin-name == 'fluent2' {
              font-size: $find-tool-dlg-icon-size;
            }
            width: 70px;
            @if $skin-name == 'tailwind3' {
              width: 120px;
            }
          }
        }
      }
    }

    & .e-center-align {
      text-align: center;
    }

    & .e-protect-option-list {
      border: $dlg-list-border;
      cursor: default;
      margin-top: $protect-option-list-margin-top;
      overflow-y: auto;
    }

    & .e-protect-checkbox {
      @if $sheet-skin != 'Material3' {
        @if $skin-name != 'fluent2' and $skin-name != 'bootstrap5.3' and $skin-name != 'tailwind3'{
          height: 30px;
        }
        margin-top: $protect-dlg-protect-check-margin-top;
      }

      & .e-label {
        @if $sheet-skin != 'Material3' {
          font-size: $protect-checkbox-label-font-size;
        }
      }
    }

    & .e-dlg-content .e-custom-dialog {
      & .e-input-button {
        display: flex;
      }
      & .e-input.e-dialog-input {
        float: left;
        margin-right: $custom-format-dlg-input-margin-right;
      }
    }

    & .e-dlg-content .e-custom-dialog .e-custom-sample {
      margin: $custom-format-dlg-sample-margin;
      @if $sheet-skin == 'Material3' {
        font-size: $find-dialog-header-font-size;
      }

      @if $skin-name == 'tailwind3' {
        font-weight: $spread-dialog-label-font-weight;
      }
    }

    & .e-dlg-content .e-custom-dialog .e-custom-listview {
      @if $sheet-skin != 'Material3' {
        border: 1px solid $custom-listview-color;
        border-radius: 3px;
      }
      @if $skin-name == 'bootstrap5.3' or $skin-name == 'tailwind3' {
        border-radius: 4px;
      }
      height: 300px;
    }

    & .e-protect-content {
      font-size: $protect-content-font-size;
      @if $skin-name != 'bootstrap5.3' and $skin-name != 'tailwind3' {
        height: $protect-content-height;
      }
      width: 100%;
      @if $sheet-skin == 'Material3' or $skin-name == 'fluent2'{
        padding: $protect-dlg-protect-content-padding;
      }
      @else if $skin-name == 'bootstrap5.3' or $skin-name == 'tailwind3' {
        padding-top: 12px;
      }
      @else {
        padding-top: 20px;
      }
      @if $skin-name == 'tailwind3' {
        font-weight: $spread-dialog-label-font-weight;
      }
    }

    & .e-formula-bar-panel {
      align-items: center;
      border: $spreadsheet-border;
      @if $skin-name == 'bootstrap5.3' {
        border: $spreadsheet-outline-border;
      }
      display: flex;
      width: 100%;

      & .e-btn.e-css.e-insert-function,
      & .e-btn.e-css.e-formula-submit {
        border: 0;
        border-radius: 0;
        padding-bottom: 0;
        padding-top: 0;
        vertical-align: top;

        & .e-btn-icon {
          font-size: $formula-submit-btn-icon-font-size;
          margin-top: 0;
          vertical-align: top;
          @if $skin-name == 'tailwind3' {
            font-weight: $formula-bar-font-weight;
          }
        }

        &.e-btn:focus {
          box-shadow: none;
          outline: 0;
        }
      }

      & .e-name-box {
        align-self: flex-start;
        border: 0;
        margin-bottom: 0;
        vertical-align: top;

        & .e-clear-icon {
          display: none;
        }

        &.e-input-group.e-input-focus.e-control-wrapper.e-ddl {
          border: 0;
          z-index: 1;

          &::after,
          &::before {
            height: 0;
          }
        }

        &.e-input-group.e-control-wrapper.e-ddl.e-name-box {
          width: $name-box-width;

          & input.e-input {
            height: $define-name-input-height;
            min-height: 15px;
            padding: $define-name-input-padding;
          }
          @if $skin-name != 'bootstrap4' {
            & .e-input-group-icon {
              font-size: $namebox-icon-size;
              @if $skin-name == 'Material3' {
                margin-right: 5px;
              }
              @else if $skin-name == 'bootstrap5.3' {
                line-height: 24px;
              }
            }
          }
        }

        &.e-input-group.e-control-wrapper.e-name-box .e-input-group-icon {
          border-left-width: 0;
          min-height: $namebox-icon-min-height;
          @if $skin-name == 'Material3' {
            min-width: 14px;
          }
          @if $skin-name == 'tailwind' or $skin-name == 'tailwind-dark' {
            font-size: $name-box-icon-font-size;
          }
        }
      }

      & .e-separator {
        border-left-style: solid;
        border-left-width: 1px;
        height: 12px;
        width: 1px;
      }

      & .e-formula-bar {
        border: 0;
        font-size: $formula-bar-font-size;
        overflow: auto;
        padding: $formula-bar-padding;
        resize: none;
        @if $skin-name == 'tailwind3' {
          font-weight: $formula-bar-font-weight;
        }
      }

      & .e-drop-icon {
        align-self: flex-start;
        cursor: pointer;
        float: right;
        line-height: $expand-icon-line-height;
        margin-right: $expand-icon-margin;
        text-align: center;
        transition: transform 300ms ease;
        width: 18px;
        @if $skin-name != 'bootstrap4' {
          font-size: $formula-bar-drop-icon-font-size;
        }
      }
    }

    &.e-hide-row-header {
      & .e-row-header,
      & .e-selectall-container {
        display: none;
      }

      & .e-column-header,
      & .e-sheet-content {
        width: 100% !important; /* stylelint-disable-line declaration-no-important */
      }
    }

    &.e-hide-column-header {
      & .e-header-panel {
        display: none;
      }

      & .e-main-panel {
        height: 100%;
      }
    }

    & .e-sheet {
      height: 100%;
      overflow: hidden;
      position: relative;

      &:not(.e-frozen-rows) {
        display: flex;
        flex-direction: column;
      }

      & .e-virtualable {
        will-change: transform;
        z-index: 1;
      }

      & .e-spreadsheet-edit {
        border: 0;
        cursor: text;
        display: none;
        font-family: 'Calibri';
        font-size: 11pt;
        height: auto;
        line-height: normal;
        outline: none;
        overflow-wrap: break-word;
        position: absolute;
        user-select: text;
        vertical-align: bottom;
        white-space: pre-wrap;
        z-index: 2;
        padding: 0 1px;

        &.e-right-align {
          text-align: right;
          @if $skin-name == 'Material3' {
            padding: 0 1.2px;
          }
        }
      }

      & .e-scrollbar {
        border-top: $spreadsheet-border;
        @if $skin-name == 'bootstrap5.3' {
          border-top: $spreadsheet-outline-border;
        }
        position: relative;
        z-index: 4;

        & .e-scroller {
          height: 100%;
          overflow-x: scroll;
          position: absolute;

          & .e-virtualtrack {
            height: 1px;
          }
        }
      }
    }

    & .e-ss-focus-edit {
      clip: rect(1px, 1px, 1px, 1px);
      height: 1px;
      overflow: hidden;
      position: absolute;
      top: 0;
      width: 1px;
    }

    & .e-ss-atc {
      display: none;
    }

    & .e-main-panel {
      height: calc(100% - 31px);
      overflow: hidden;
      position: relative;

      & .e-ss-chart-overlay {
        border: 1px solid $ele-color;
      }

      & .e-virtualable {
        position: absolute;
      }

      & .e-virtualtrack {
        position: relative;
      }
    }

    & .e-excelfilter {
      & .e-checkboxlist.e-fields {
        @if $skin-name == 'fluent2' {
          margin-left: 0;
        }
        .e-treeview.e-checkboxtree {
          @if $skin-name == 'fluent2' or $skin-name == 'tailwind3' {
            border: 0;
          }
        }
      }
      & .e-spreadsheet-ftrchk {
        @if $skin-name != 'bootstrap5.3' and $skin-name != 'tailwind3' {
          padding-left: $filter-selectall-padding;
        }

        & .e-chk-hidden {
          margin: 3px 3px 3px 4px;
        }

        & .e-checkboxfiltertext {
          width: auto;
        }
      }

      &.e-rtl .e-spreadsheet-ftrchk {
        @if $skin-name != 'bootstrap5.3' and $skin-name != 'tailwind3' {
          padding-left: 0;
          padding-right: $filter-selectall-padding;
        }
      }
    }

    & .e-checkboxtree {
      ul {
        @if $skin-name != 'bootstrap5.3' and $skin-name != 'tailwind3' {
          padding-left: 0;
        }
      }

      &.e-rtl ul {
        @if $skin-name != 'bootstrap5.3' and $skin-name != 'tailwind3' {
          padding-right: 0;
        }
      }
    }

    & .e-table {
      border: 0 none;
      border-collapse: separate;
      border-spacing: 0;
      cursor: cell;
      table-layout: fixed;
      width: 100%;

      & tr {
        line-height: normal;

        & .e-cell,
        & .e-header-cell,
        & .e-select-all-cell {
          border-style: solid;
          border-width: 0 1px 1px 0;
          line-height: inherit;
          overflow: hidden;
        }

        & .e-cell {
          font-family: 'Calibri';
          font-size: 11pt;
          padding: $content-cell-padding;
          position: relative;
          text-align: left;
          vertical-align: bottom;
          white-space: pre;

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

          & .e-hyperlink {
            cursor: pointer;
          }

          & .e-hyperlink-style {
            color: inherit;
            text-decoration: underline;
          }

          &.e-alt-unwrap {
            white-space: nowrap;
          }

          &.e-ie-wrap {
            word-break: break-all;
          }

          &.e-wraptext {
            overflow-wrap: break-word;
            white-space: pre-wrap;

            .e-wrap-content {
              bottom: 0;
              left: 0;
              line-height: initial;
              padding-left: 2px;
              padding-right: 2px;
              position: absolute;
              text-decoration: inherit;
              width: 100%;
            }

            &[style *= 'vertical-align: top;'] {
              .e-wrap-content {
                top: 0;
              }
            }

            &[style *= 'vertical-align: middle;'] {
              .e-wrap-content {
                bottom: initial;
                transform: translateY(-50%);
              }
            }
          }

          & .e-cf-databar {
            position: relative;
            z-index: 1;

            .e-databar {
              margin-top: 1px;
              position: absolute;
              z-index: -1;
            }

            .e-databar-value {
              display: inline-grid;
              height: 100%;
            }
          }

          .e-iconsetspan {
            float: left;
            height: 15px;
            position: relative;
            vertical-align: bottom;
            width: 15px;
            z-index: 2;
          }
        }

        & .e-header-cell {
          font-size: $header-cell-font-size;
          font-weight: $header-cell-font-weight;
          letter-spacing: 0;
          position: relative;
          text-align: center;
          white-space: pre;

          & .e-filter-btn {
            bottom: 5px;
            margin-right: 0;
            position: absolute;
            right: 1px;
          }
        }
      }
    }
    
    & .e-select-all-cell {
      border-style: solid;
      border-width: 0 1px 1px 0;
      padding: 1px;

      & .e-selectall {
        border-style: solid;
        border-width: $select-all-size * .5;
        @if $skin-name == 'tailwind3' {
          border-width: 14px;
        }
        cursor: cell;
        float: right;
        height: $select-all-size;
        padding: 0;
        width: $select-all-size;
      }
    }
    
    & .e-row-header .e-table .e-header-cell {
      padding-bottom: 2px;
      vertical-align: bottom;

      @if $skin-name == 'fabric' or $skin-name == 'highcontrast' or $skin-name == 'FluentUI' or $skin-name == 'fluent2' or $skin-name == 'bootstrap5' or $skin-name == 'bootstrap5.3' or $skin-name == 'tailwind3' {
        padding-top: 0;
      }
    }

    & .e-column-header .e-table .e-header-cell {
      padding: 1px 0 0 1px;
      vertical-align: middle;
    }

    & .e-row-header .e-table {
      .e-zero .e-header-cell,
      .e-zero-start .e-header-cell,
      .e-zero-end .e-header-cell {
        border-bottom-width: 0;
        padding-bottom: 0;
        padding-top: 0;
        vertical-align: bottom;
      }
    }

    & .e-row-header .e-table {
      .e-reach-fntsize .e-header-cell {
        padding-bottom: 0;
        padding-top: 0;
        vertical-align: bottom;
      }
    }

    & .e-row-header .e-table .e-zero-last .e-header-cell {
      border-bottom-width: 1px;
    }

    & .e-sheet-content .e-table {
      .e-zero .e-cell,
      .e-zero-start .e-cell,
      .e-zero-end .e-cell  {
        border-bottom-width: 0;
      }
    }

    & .e-sheet .e-ss-overlay {
      background-position: 0 0;
      background-repeat: no-repeat;
      background-size: 100% 100%;
      left: 0;
      position: absolute;
      top: 0;
      z-index: 3;
    }

    & .e-sheet .e-ss-overlay-active .e-ss-overlay-t {
      background-color: $selection-border-color;
      cursor: ns-resize;
      position: absolute;
      right: 50%;
      top: 0;
      transform: translate(-50%, -50%);
    }

    & .e-sheet .e-ss-overlay-active .e-ss-overlay-r {
      background-color: $selection-border-color;
      cursor: ew-resize;
      position: absolute;
      right: -8px;
      top: 50%;
      transform: translate(-50%, -50%);
    }

    & .e-sheet .e-ss-overlay-active .e-ss-overlay-b {
      background-color: $selection-border-color;
      cursor: ns-resize;
      position: absolute;
      right: 50%;
      top: 100%;
      transform: translate(-50%, -50%);
    }

    & .e-sheet .e-ss-overlay-active .e-ss-resizer-touch::before {
      content: '';
      height: 20px;
      position: absolute;
      right: -6px;
      top: -6px;
      width: 20px;
    }

    & .e-sheet .e-datavisualization-chart.e-ss-overlay {
      border: 1px solid $find-popup-border-color;
      @if $skin-name == 'FluentUI' or $skin-name == 'tailwind' {
        background-color: $white;
      }
    }

    & .e-sheet .e-ss-overlay.e-ss-overlay-active {
      border: 1px solid $selection-border-color;
      cursor: move;
    }

    & .e-sheet .e-ss-overlay-active .e-ss-overlay-l {
      background-color: $selection-border-color;
      cursor: ew-resize;
      position: absolute;
      top: 50%;
      transform: translate(-50%, -50%);
    }

    & .e-sheet-panel.e-rtl .e-ss-overlay-active .e-ss-overlay-l {
      left: 0;
    }

    & .e-header-panel .e-table tr .e-header-cell.e-colresize {
      cursor: col-resize;
    }

    & .e-row-header .e-table tr .e-header-cell.e-rowresize,
    & .e-selectall-container .e-table .e-row .e-header-cell.e-rowresize {
      cursor: row-resize;
    }

    & .e-sheet {
      border: $spreadsheet-border;
      @if $skin-name == 'bootstrap5.3' {
        border: $spreadsheet-outline-border;
      }

      &.e-hide-headers {
        &:not(.e-frozen-rows) .e-main-panel {
          height: 100%;
        }

        &.e-frozen-rows:not(.e-frozen-columns) {
          & .e-selectall-container,
          & .e-row-header {
            display: none;
          }
        }

        &.e-frozen-columns:not(.e-frozen-rows) {
          & .e-selectall-container,
          & .e-column-header {
            display: none;
          }
        }

        &:not(.e-frozen-rows):not(.e-frozen-columns) {
          & .e-selectall-container,
          & .e-column-header,
          & .e-row-header {
            display: none;
          }
        }

        & .e-select-all-cell,
        & .e-header-cell,
        & .e-header-row,
        & .e-row-header colgroup col:first-child,
        & .e-selectall-container colgroup col:first-child {
          display: none;
        }

        & .e-sheet-content {
          width: 100%;
        }
      }

      &.e-mac-safari {
        & .e-main-panel::-webkit-scrollbar {
          width: 7px;
        }

        & .e-scroller::-webkit-scrollbar {
          height: 7px;
        }

        // Safari with Mac OS
        & .e-main-panel::-webkit-scrollbar-thumb,
        & .e-scroller::-webkit-scrollbar-thumb {
          background-color: $mac-scrollbar-background;
          border-radius: 4px;
        }
      }
    }

    & .e-header-panel {
      position: relative;
    }

    .e-sheet-content {
      overflow: hidden;
      position: absolute;
      top: 0;
    }

    & .e-row-header {
      position: relative;

      & .e-table tr {
        &.e-hide-start .e-header-cell::after,
        &.e-hide-end .e-header-cell::before {
          content: '';
          left: 0;
          position: absolute;
          width: 100%;
        }

        &.e-hide-start .e-header-cell {
          border-bottom-color: transparent;
          position: relative;

          &::after {
            @if $skin-name == 'Material3' {
              border-top: $spreadsheet-hidden-row-column-border;
            }
            @else {
              border-top: $spreadsheet-border;
            }
            bottom: .5px;
          }
        }

        &.e-hide-end .e-header-cell {
          position: relative;

          &::before {
            border-bottom: $spreadsheet-border;
            @if $skin-name == 'Material3' {
              border-bottom: $spreadsheet-hidden-row-column-border;
            }
            top: .5px;
          }
        }
      }
    }

    & .e-column-header {
      border-style: solid;
      border-width: 0;
      overflow: hidden;
      position: absolute;
      top: 0;

      & .e-table th {
        &.e-header-cell.e-hide-start::after,
        &.e-header-cell.e-hide-end::before {
          bottom: 0;
          content: '';
          height: inherit;
          position: absolute;
          top: 0;
        }

        &.e-header-cell.e-hide-start {
          border-right-color: transparent;
          height: inherit;
          position: relative;

          &::after {
            @if $skin-name == 'Material3' {
              border-right: $spreadsheet-hidden-row-column-border;
            }
            @else {
              border-right: $spreadsheet-border;
            }
            right: .5px;
          }
        }

        &.e-hide-end.e-header-cell {
          height: inherit;
          position: relative;

          &::before {
            @if $skin-name == 'Material3' {
              border-left: $spreadsheet-hidden-row-column-border;
            }
            @else {
              border-left: $spreadsheet-border;
            }
            left: .5px;
          }
        }
      }
    }

    & .e-sheet .e-datavisualization-chart .e-control.e-chart {
      height: 100%;
      position: initial !important; /* stylelint-disable-line declaration-no-important */
      width: 100%;
    }

    & .e-sheet .e-datavisualization-chart .e-control.e-accumulationchart {
      height: 100%;
      overflow: hidden;
      padding: 4px;
      position: initial !important; /* stylelint-disable-line declaration-no-important */
      width: 100%;
    }

    .e-sheet .e-datavisualization-chart .e-ss-overlay-l,
    .e-sheet .e-datavisualization-chart .e-ss-overlay-r,
    .e-sheet .e-datavisualization-chart .e-ss-overlay-t,
    .e-sheet .e-datavisualization-chart .e-ss-overlay-b {
      position: absolute;
    }

    & .e-header-panel {
      & .e-header-row,
      & .e-select-all-cell {
        height: 30px;
      }

      & .e-virtualtrack {
        height: 1px;
      }
    }

    & .e-frozen-row,
    & .e-frozen-column {
      pointer-events: none;
      position: absolute;
      z-index: 3;
    }

    & .e-frozen-row {
      height: 1px;
      width: 100%;
    }

    & .e-frozen-column {
      height: 100%;
      top: 0;
      width: $spreadsheet-frozen-column-width;
    }

    & .e-sheet-tab-panel {
      align-items: center;
      border: $spreadsheet-border;
      border-top-width: 0;
      display: flex;
      padding: 0 8px;
      @if $skin-name == 'bootstrap5.3' {
        border: $spreadsheet-outline-border;
        height: 36px;
      }
    }

    & .e-sheet-tab {
      display: inline-block;
      line-height: 0;
      @if $skin-name == 'tailwind' or $skin-name == 'tailwind-dark' {
        background-color: $content-bg-color-alt2;
      }

      & > div {
        display: inline-block;
      }

      &.e-tab {
        border: 0;

        & .e-hscroll .e-scroll-nav.e-scroll-left-nav {
          left: auto;
          right: 40px;
        }

        & .e-tab-header {
          @include tab-header-layout;
          @if $skin-name == 'bootstrap5.3' {
            height: 36px;
            min-height: 36px;
          }

          @if $skin-name == 'fluent2' {
            border-bottom: 0;
          }

          & .e-indicator {
            display: block;
            transition: none;
          }

          & .e-toolbar-item.e-active {
            & .e-text-wrap::before {
              @if $skin-name == 'Material3' {
                border: none;
              }
            }
          }
          @if $skin-name == 'bootstrap4' or $skin-name == 'bootstrap' {
            &::before {
              border-bottom-width: 0;
            }

            & .e-toolbar-item {
              border-bottom-width: 0;
              border-left-width: 0;
              border-top-width: 0;

              &.e-active {
                border-bottom-width: 0;
                border-radius: 0;
                border-top-width: 0;
              }
            }

            & .e-toolbar-items:not(.e-tbar-pos) .e-toolbar-item:last-child {
              margin: 0;
            }
          }
          @else {
            & .e-toolbar-items .e-toolbar-item {
              @if $skin-name != 'tailwind3' {
                border-right: $spreadsheet-border;
              }
              @if $skin-name == 'bootstrap5.3' {
                border-right: $spreadsheet-outline-border;
              }
              @if $skin-name == 'tailwind' or $skin-name == 'tailwind-dark' {
                padding: 0;
              }

              &.e-active {
                @if $skin-name == 'Material3' {
                  background: $sheet-tab-selected-bg-color;
                }
              }
            }
          }

          & .e-toolbar-item {
            margin: 0;

            & input.e-input.e-sheet-rename {
              background: transparent;
              border: 0;
              box-shadow: none;
              min-width: 20px;
              padding: 0;
              @if $skin-name == 'Material3' {
                font-weight: 500;
                height: 32px;
                letter-spacing: .24px;
                line-height: 32px;
              }
            }

            & .e-tab-wrap {
              padding: 0 12px;
            }
            @if $skin-name == 'material' {
              &.e-active {
                border-left-width: 0;
                border-top-width: 0;
              }

              & input.e-input.e-sheet-rename {
                margin-bottom: 0;
              }
            }
            @if $skin-name == 'fabric' or $skin-name == 'highcontrast' {
              &.e-active .e-text-wrap::before {
                border-width: 0;
              }
            }
          }

          & .e-indicator {
            z-index: 1;
          }

          & .e-toolbar-items {
            @if $skin-name != 'tailwind3' {
              border-left: $spreadsheet-border;
            }
            @if $skin-name == 'bootstrap5.3' {
              border-left: $spreadsheet-outline-border;
            }
            @if $skin-name == 'bootstrap5.3' {
              height: 36px;
              min-height: 36px;
            }

            & .e-scroll-nav {
              @if $skin-name == 'bootstrap5.3' {
                height: 36px;
                min-height: 36px;
              }
            }
          }
        }

        & .e-content {
          display: none;
        }
      }
    }

    @include default-props;

    & .e-sheets-list {
      @if $skin-name == 'bootstrap5.3' {
        margin-right: 6px;
      }
      @else {
        margin-right: 8px;
      }
    }

    .e-hide {
      display: none !important; /* stylelint-disable-line declaration-no-important */
    }

    .e-selection {
      border-style: solid;
      cursor: cell;
      pointer-events: none;
      position: absolute;
      z-index: 1;
      border-width: $selection-border-width;
    }

    .e-active-cell,
    .e-copy-indicator,
    .e-range-indicator,
    .e-formularef-indicator {
      cursor: cell;
      pointer-events: none;
      position: absolute;
      z-index: 1;
    }

    .e-autofill {
      background-clip: content-box;
      background-color: $selection-border-color;
      border: 1px solid $cell-background;
      cursor: crosshair;
      height: 8px;
      position: absolute;
      width: 8px;
      z-index: 3;
    }

    .e-filloption {
      position: absolute;
      z-index: 3;
      @if $skin-name == 'material' {
        background-color: $cell-border-color;
      }
    }

    .e-active-cell {
      border: 2px solid $selection-border-color;
      pointer-events: none;

      &[style *= 'height: 1px;'],
      &[style *= 'width: 1px;'],
      &[style *= 'height: 0px;'],
      &[style *= 'width: 0px;'] {
        border-width: 1px;
      }
    }

    .e-copy-indicator div,
    .e-range-indicator div,
    .e-formularef-indicator div {
      position: absolute;

      &.e-top,
      &.e-bottom {
        height: 2px;
        width: 100%;
      }

      &.e-left,
      &.e-right {
        height: 100%;
        width: 2px;
      }

      &.e-top {
        top: 0;
      }

      &.e-bottom {
        bottom: 0;
      }

      &.e-left {
        left: 0;
      }

      &.e-right {
        right: 0;
      }
    }

    .e-clipboard {
      height: 1px;
      opacity: 0;
      overflow: hidden;
      position: absolute;
      width: 1px;
    }

    & .e-ribbon {
      & .e-dropdown-btn {
        & .e-tbar-btn-text {
          float: left;
          overflow: hidden;
          padding: 0;
          text-align: left;
          text-overflow: ellipsis;
          white-space: nowrap;
          width: $spreadsheet-ribbon-btn-text-width;
        }

        &.e-font-size-ddb {
          @if $skin-name != 'fluent2' {
            align-items: center;
            display: inline-flex;
            justify-content: left;
            @if $skin-name != 'Material3' {
              width: $fontsize-btn-width;
            }
          }

          & .e-caret {
            flex: 1;
            text-align: right;
            @if $skin-name == 'bootstrap5.3' {
              margin-top: 2px;
            }
            @if $skin-name == 'tailwind3' {
              margin-right: 0;
            }
          }
        }
      }

      & .e-toolbar .e-btn:not(.e-tbar-btn) {
        @if $skin-name != 'tailwind3' {
          font-weight: normal;
        }
        @if $skin-name !='fluent2' {
          padding-bottom: 0;
          padding-top: 0;
        }
        @if $skin-name =='Material3' {
          font-size: 14px;
        }
        @if $skin-name == 'highcontrast' {
          border-width: 2px;
        }
        @if $skin-name == 'tailwind3' {
          border: 0;
          font-weight: $spread-toolbar-btn-font-weight;
        }

        &.e-dropdown-btn {
          text-overflow: initial;
        }

        &:not(.e-split-colorpicker) {
          @if $skin-name !='fluent2' {
            line-height: $spreadsheet-ribbon-btn-height;
          }
        }

        &:not(.e-split-btn) {
          @if $skin-name == 'Material3' {
            border: none;
          }
        }

        &:not(.e-dropdown-btn):not(.e-split-btn) {
          padding-left: $spreadsheet-ribbon-btn-padding;
          padding-right: $spreadsheet-ribbon-btn-padding;

          & .e-btn-icon {
            min-width: $spreadsheet-ribbon-btn-width;
          }
        }

        @if $skin-name !='fluent2' and $skin-name != 'bootstrap5.3' {
          & .e-btn-icon {
            margin-top: 0;
          }
        }

        @if $skin-name =='fluent2' {
          & .e-btn-icon.e-icons.e-caret {
            font-size: $spreadsheet-tbar-dropdown-btn-icon-font-size;
          }
        }

        &:not(.e-split-colorpicker) .e-btn-icon {
          @if $skin-name != 'bootstrap5' and $skin-name != 'bootstrap5.3' and $skin-name != 'Material3' and $skin-name != 'fluent2' {
            line-height: $spreadsheet-ribbon-btn-height;
            min-height: $spreadsheet-ribbon-btn-height;
            vertical-align: bottom;
          }

          &:not(.e-caret) {
            font-size: $spreadsheet-tbar-btn-icon-font-size;
          }
          @if $skin-name == 'fabric' or $skin-name == 'highcontrast' or $skin-name == 'fabric-dark' {
            &.e-wrap-icon {
              font-size: $toolbar-wrap-icon-font-size;
            }
          }
        }
      }

      & .e-toolbar .e-toolbar-item .e-btn {
        @if $skin-name == 'material' or $skin-name == 'bootstrap4' {
          &.e-tbar-btn .e-icons.e-btn-icon:not(.e-caret) {
            font-size: $spreadsheet-tbar-btn-icon-font-size;
          }
        }

        &.e-dropdown-btn.e-chart-ddb,
        &.e-dropdown-btn.e-chart-type-ddb {
          @if $skin-name == 'fluent2' {
            height: 32px;
          }
        }

        & .e-chart-icon,
        & .e-chart-type-icon {
          font-size: $spreadsheet-chart-icon-font-size !important; /* stylelint-disable-line declaration-no-important */
          padding: 0 5px;
          width: 30px;
          @if $skin-name == 'fluent2' {
            line-height: 26px;
            margin-right: 3px;
            margin-top: -3px;
          }
          @else {
            margin-right: 5px;
          }
          @if $skin-name == 'bootstrap5.3' {
            margin-top: -6px;
          }
        }

        & .e-switch-row-column-icon {
          @if $skin-name != 'Material3' and $skin-name != 'fluent2' and $skin-name != 'tailwind3' {
            font-size: $spreadsheet-switch-row-column-icon-font-size !important; /* stylelint-disable-line declaration-no-important */
            margin-right: 5px;
          }
        }

        & .e-addchart-icon {
          @if $skin-name != 'fluent2' and $skin-name != 'tailwind3' {
            font-size: $spreadsheet-addchart-icon-font-size !important; /* stylelint-disable-line declaration-no-important */
          }
          @if $skin-name != 'Material3' and $skin-name != 'fluent2' and $skin-name != 'tailwind3' {
            margin-right: -5px;
          }
        }

        &.e-split-colorpicker {
          line-height: $spreadsheet-ribbon-cpicker-line-height;
          padding-bottom: $spreadsheet-ribbon-cpicker-padding-bottom;
          padding-left: 0;
          padding-right: 0;
          width: $cpicker-btn-width;
          @if $skin-name == 'Material3' {
            background: transparent;
          }
          & .e-icons.e-btn-icon:not(.e-caret) {
            &.e-font-color {
              font-size: $spreadsheet-cpicker-font-color-font-size;
            }

            &.e-fill-color {
              font-size: $spreadsheet-cpicker-fill-color-font-size;
            }
          }
        }
      }

      & .e-colorpicker-wrapper {
        & .e-dropdown-btn {
          @if $skin-name == 'Material3' {
            background: transparent;
          }
        }
        & .e-split-btn .e-selected-color {
          background: none;
          border-bottom-style: solid;
          border-bottom-width: 3px;
          border-radius: 0;
          height: auto;
          padding-bottom: 1px;
          width: auto;

          & .e-split-preview {
            display: none;
          }
        }

        & .e-dropdown-btn {
          margin-left: 0;
          @if $skin-name == 'bootstrap4' {
            padding-left: 4px;
            padding-right: 4px;
          }
          @if $skin-name == 'fabric' or $skin-name == 'highcontrast' {
            padding-left: 3px;
            padding-right: 3px;
          }
        }
      }
    }

    &.e-mobile-view {
      & .e-header-toolbar {
        border: $spreadsheet-border;
        @if $skin-name == 'bootstrap5.3' {
          border: $spreadsheet-outline-border;
        }
        border-bottom-width: 0;

        &.e-toolbar .e-toolbar-items .e-toolbar-item:last-child {
          min-width: auto;
          padding: 0;
          @if $skin-name == 'bootstrap4' or $skin-name == 'bootstrap' {
            min-height: $right-tbar-height;
          }
        }
      }

      & .e-add-sheet-tab,
      & .e-sheets-list {
        height: $msheets-btn-height;
        width: 40px;
      }

      & .e-formula-bar-panel {
        border-top-width: 0;

        & .e-btn.e-css.e-insert-function,
        & .e-btn.e-css.e-formula-submit {
          height: $mformula-bar-height - $spreadsheet-border-width;
          line-height: $mformula-bar-height - $spreadsheet-border-width - 1;
          padding-left: 9px;
          padding-right: 9px;

          & .e-btn-icon {
            font-size: $formula-bar-btn-icon-font-size;
            line-height: $mformula-bar-height;
          }
        }

        & .e-formula-bar {
          height: $mformula-bar-height - $spreadsheet-border-width;
          line-height: $mformula-bar-height - $spreadsheet-border-width;
          white-space: nowrap;
          width: calc(100% - 36px);

          &::placeholder {
            font-style: italic;
          }
        }

        &.e-focused {
          & .e-formula-bar {
            border-right: $spreadsheet-border;
            @if $skin-name == 'bootstrap5.3' {
              border-right: $spreadsheet-outline-border;
            }
            width: calc(100% - 72px);
          }
        }
      }

      & .e-menu-wrapper.e-mobile.e-file-menu {
        height: 100%;

        & ul {
          height: 100%;
          padding: 0;

          & .e-menu-item.e-menu-caret-icon {
            height: 100%;
            line-height: 1;
            padding: 0 6px;

            & .e-menu-icon.e-file-menu-icon {
              align-items: center;
              display: inline-flex;
              height: 100%;
              line-height: 1;
              margin: 0;
              width: auto;
            }

            & .e-caret {
              display: none;
            }
          }
        }

        &.e-rtl {
          direction: ltr;
        }
      }

      & .e-toolbar-panel {
        border-top-width: 0;
        display: none;
        @if $skin-name == 'bootstrap' or $skin-name == 'bootstrap4' {
          & .e-toolbar {
            border-color: $spreadsheet-border-color;
            border-radius: 0;
            border-top-width: 0;
          }

          & .e-dropdown-btn.e-btn {
            border-left-width: 0;
            border-radius: 0;
            border-top-width: 0;
          }
        }
        @else {
          & .e-dropdown-btn.e-btn {
            border-bottom-width: 0;
            border-right-width: 0;
            border-top-width: 0;
          }
        }

        & .e-toolbar {
          & .e-toolbar-items.e-hscroll.e-scroll-device {
            padding: 0;
            width: 100%;
          }

          & .e-scroll-nav {
            display: none;
          }
        }
      }

      & .e-sheet-tab {
        max-width: calc(100% - 104px);
      }

      &.e-mobile-focused {
        & .e-toolbar-panel {
          display: flex;
        }

        & .e-sheet-tab-panel {
          display: none;
        }
      }
    }

    &.e-mobile-view:not(.e-mobile-focused) {
      & .e-active-cell,
      & .e-focused-tick,
      & .e-formula-bar-panel {
        display: none;
      }
    }

    & .e-sheet-panel.e-rtl {
      & .e-sheet {
        & .e-table tr {
          & .e-cell,
          & .e-header-cell {
            border-width: 0 0 1px 1px;
          }
        }
      }

      & .e-select-all-cell {
        border-width: 0 0 1px 1px;
      }

      & .e-frozen-row {
        right: 0;
      }

      & .e-column-header {
        & .e-table th {
          &.e-header-cell.e-hide-start {
            border-left-color: transparent;

            &::after {
              @if $skin-name == 'Material3' {
                border-left: $spreadsheet-hidden-row-column-border;
              }
              @else {
                border-left: $spreadsheet-border;
              }
              border-right: none;
              left: .5px;
            }
          }

          &.e-hide-end.e-header-cell {
            &::before {
              border-left: none;
              @if $skin-name == 'Material3' {
                border-right: $spreadsheet-hidden-row-column-border;
              }
              @else {
                border-right: $spreadsheet-border;
              }
              right: .5px;
            }
          }
        }
      }
    }

    .e-sheet-panel {
      
      & .e-frozen-columns {
        & .e-selectall-container {
          position: relative;
        }
      }

      & .e-frozen-rows {
        & .e-selectall-container {
          position: relative;
        }
      }

      &:not(.e-rtl) .e-frozen-row {
        left: 0;
      }

      &.e-protected {
        .e-selection,
        .e-active-cell {
          display: none;
        }
      }
    }

    & .e-colresize-handler {
      border-right: 1px solid;
      cursor: col-resize;
      pointer-events: none;
      position: absolute;
      z-index: 1;
    }

    & .e-rowresize-handler {
      border-top: 1px solid;
      cursor: row-resize;
      pointer-events: none;
      position: absolute;
      z-index: 1;
    }

    & .e-validation-list {
      float: right;
      font-size: 11pt;
      height: inherit;
      max-height: 18px;
      overflow: hidden;
      padding: 0;
      position: relative;
      right: 0;
      text-align: initial;
      width: 20px;
      z-index: 2;

      .e-input-group {
        border: 0;
        box-shadow: none !important; /* stylelint-disable-line declaration-no-important */
        margin: 0;
        &.e-input-focus .e-input,
        & .e-input {
          @if $skin-name == 'fluent2' {
            padding-left: 0;
          }
        }
        & .e-search-icon {
          @if $skin-name =='fluent' {
            height: 100%;
          }
          @if $skin-name !='material-dark' and $skin-name !='material' {
            margin: 0;
          }
        }
        & .e-dropdownlist.e-input {
          @if $skin-name =='fluent' {
            height: 100%;
          }
        }
      }

      & .e-ddl-icon {
        @if $skin-name =='material' or $skin-name =='material-dark' {
          bottom: $validation-list-icon-bottom;
        }
        @if $skin-name == 'fluent2' {
          font-size: $validation-dropdown-icon-size;
        }
        @if $skin-name != 'material' {
          height: $validation-list-icon-height;
          min-height: $validation-list-icon-min-height;
          min-width: $validation-list-icon-min-height;
          width: 20px;
        }
        @if $sheet-skin == 'tailwind' or $sheet-skin == 'tailwind-dark' or $skin-name == 'fluent2' {
          padding: 0;
        }
      }
    }

    .e-rtl {
      .e-spreadsheet-edit {
        direction: ltr;
        text-align: left;
      }
    }

    & .e-customsort-dlg.e-dialog {
      @if $skin-name == 'material' {
        height: 360px !important; /* stylelint-disable-line declaration-no-important */
      }

      & .e-dlg-content {
        @if $skin-name != 'Material3' and $skin-name != 'fluent2' and $skin-name != 'bootstrap5.3' and $skin-name != 'tailwind3' {
          padding-bottom: 0;
          padding-left: 0;
          padding-right: 0;
        }
        @if $sheet-skin == 'tailwind' or $sheet-skin == 'tailwind-dark' {
          & .e-sort-dialog {
            padding-top: 15px;
          }
        }

        & .e-sort-listsection {
          padding-top: $dlg-content-padding;

          & .e-input-group {
            min-width: 220px;
            max-width: 220px;
          }
        }
      }

      & .e-footer-content {
        & .e-sort-addbtn {
          float: left;
          margin-left: 0;
        }
      }
    }

    & .e-conditionalformatting-dlg {
      & .e-input,
      & .e-input-group {
        @if $skin-name != 'Material3' and $skin-name != 'fluent2' and $skin-name != 'bootstrap5.3' and $skin-name != 'tailwind3' {
          height: $cf-dlg-input-height;
        }
      }

      & .e-cfmain {
        & .e-header {
          @if $skin-name != 'fluent2' {
            font-size: $cfmain-header-font-size;
          }
          @if $skin-name == 'tailwind3' {
            font-weight: $spread-dialog-label-font-weight;
          }
          @if $skin-name == 'bootstrap5.3' or $skin-name == 'tailwind3' {
            line-height: $validation-dlg-content-header-line;
          }
        }
        @if $skin-name == 'Material3' {
          margin: 6px 0 20px;
        }
        @else {
          margin-bottom: $spreadsheet-cfmain-header-margin-bottom;
        }
      }

      & .e-cfsub {
        & .e-header {
          @if $skin-name != 'fluent2' {
            font-size: $cfmain-header-font-size;
          }
          @if $skin-name == 'tailwind3' {
            font-weight: $spread-dialog-label-font-weight;
          }
          @if $skin-name == 'bootstrap5.3' or $skin-name == 'tailwind3' {
            line-height: $validation-dlg-content-header-line;
          }
        }
        @if $skin-name == 'Material3' {
          margin-bottom: 12px;
        }
      }

      & .e-header {
        display: block;
        @if $skin-name != 'Material3' {
          margin-bottom: $spreadsheet-cf-header-margin-bottom;
        }
      }

      & .e-header-2 {
        margin-top: $cf-dlg-header-margin-top;
      }

      & .e-top-header {
        font-weight: $cf-dlg-content-font-weight;
      }
      @if $sheet-skin == 'tailwind' or $sheet-skin == 'tailwind-dark' {
        & .e-cf-dlg {
          padding-top: 10px;
        }
      }
    }

    & .e-title-dlg {
      & .e-title-dlg-content {
        & .e-top-header {
          font-size: $title-dlg-content-header-font-size;
        }

        & .e-input {
          font-size: $title-dlg-content-input-font-size;
          line-height: 30px;
        }
      }
    }

    & .e-datavalidation-dlg {
      & .e-validation-dlg {
        @if $skin-name != 'Material3' and $skin-name != 'fluent2' and $skin-name != 'bootstrap5.3' and $skin-name != 'tailwind3' {
          margin-top: 14px;
        }

        & .e-cellrange {
          @if $skin-name == 'Material3' or $skin-name == 'fluent2' {
            padding-top: 4px;
          }
          @else if $skin-name != 'Material3' and $skin-name != 'bootstrap5.3' and $skin-name != 'tailwind3' {
            margin-bottom: $validation-dlg-content-margin-bottom;
          }

          & .e-header {
            font-size: $validation-dlg-content-header-font-size;
            line-height: $validation-dlg-content-header-line;
            @if $skin-name == 'tailwind3' {
              font-weight: $spread-dialog-label-font-weight;
            }
          }

          & .e-input {
            @if $skin-name == 'fluent2' or $skin-name == 'bootstrap5.3' or $skin-name == 'tailwind3' {
              margin-top: $validation-dlg-content-input-margin-top;
            }
            @else if $skin-name != 'Material3' {
              height: 32px;
              margin-top: $validation-dlg-content-input-margin-top;
              font-size: $validation-dlg-content-input-font-size;
            }
          }
        }

        & .e-allowdata {
          @if $skin-name == 'Material3' or $skin-name == 'fluent2' or $skin-name == 'bootstrap5.3' or $skin-name == 'tailwind3' {
            padding-top: $validation-dlg-content-header-padding-top;
          }
          @else {
            margin-bottom: $validation-dlg-content-margin-bottom;
          }

          & .e-allow {
            display: inline-block;
            padding-right: $validation-dlg-content-padding;
            width: 50%;

            & .e-header {
              font-size: $validation-dlg-content-header-font-size;
              line-height: $validation-dlg-content-header-line;
              @if $skin-name == 'tailwind3' {
                font-weight: $spread-dialog-label-font-weight;
              }
            }

            & .e-valid-input {
              @if $skin-name == 'fluent2' or $skin-name == 'bootstrap5.3' or $skin-name == 'tailwind3' {
                margin-top: $validation-dlg-content-input-margin-top;
              }
              @else if $skin-name != 'Material3' {
                height: $validation-dlg-content-valid-input-height;
                margin-top: $validation-dlg-content-input-margin-top;
              }
            }
          }

          & .e-data {
            display: inline-block;
            padding-left: $validation-dlg-content-padding;
            width: 50%;

            & .e-header {
              font-size: $validation-dlg-content-header-font-size;
              line-height: $validation-dlg-content-header-line;
              @if $skin-name == 'tailwind3' {
                font-weight: $spread-dialog-label-font-weight;
              }
            }

            & .e-valid-input {
              @if $skin-name == 'fluent2' or $skin-name == 'bootstrap5.3' or $skin-name == 'tailwind3' {
                margin-top: $validation-dlg-content-input-margin-top;
              }
              @else if $skin-name != 'Material3' {
                height: $validation-dlg-content-valid-input-height;
                margin-top: $validation-dlg-content-input-margin-top;
              }
            }
          }
        }

        & .e-values {
          @if $skin-name == 'Material3' or $skin-name == 'fluent2' or $skin-name == 'bootstrap5.3' or $skin-name == 'tailwind3' {
            padding-top: $validation-dlg-content-header-padding-top;
          }
          @else {
            margin-bottom: $validation-dlg-content-margin-bottom;
          }

          & .e-minimum {
            display: inline-block;
            padding-right: $validation-dlg-content-padding;
            width: 50%;

            & .e-header {
              font-size: $validation-dlg-content-header-font-size;
              line-height: $validation-dlg-content-header-line;
              @if $skin-name == 'tailwind3' {
                font-weight: $spread-dialog-label-font-weight;
              }
            }

            & .e-input {
              @if $skin-name == 'fluent2' or $skin-name == 'bootstrap5.3' or $skin-name == 'tailwind3' {
                margin-top: $validation-dlg-content-input-margin-top;
              }
              @else if $skin-name != 'Material3' {
                font-size: $validation-dlg-content-input-font-size;
                height: 32px;
                margin-top: $validation-dlg-content-input-margin-top;
              }
            }
          }

          & .e-maximum {
            display: inline-block;
            padding-left: $validation-dlg-content-padding;
            width: 50%;

            & .e-header {
              font-size: $validation-dlg-content-header-font-size;
              line-height: $validation-dlg-content-header-line;
              @if $skin-name == 'tailwind3' {
                font-weight: $spread-dialog-label-font-weight;
              }
            }

            & .e-input {
              @if $skin-name == 'fluent2' or $skin-name == 'bootstrap5.3' or $skin-name == 'tailwind3' {
                margin-top: $validation-dlg-content-input-margin-top;
              }
              @else if $skin-name != 'Material3' {
                font-size: $validation-dlg-content-input-font-size;
                height: 32px;
                margin-top: $validation-dlg-content-input-margin-top;
              }
            }
          }

          & .e-dlg-error {
            font-size: $validation-dlg-error-font-size;
            padding-top: $validation-dlg-error-padding-top;
          }

          & .e-header {
            font-size: $validation-dlg-content-header-font-size;
            line-height: $validation-dlg-content-header-line;
            @if $skin-name == 'tailwind3' {
              font-weight: $spread-dialog-label-font-weight;
            }
          }

          & .e-input {
            @if $skin-name == 'fluent2' {
              margin-top: 4px;
            }
            @else if $skin-name == 'bootstrap5.3' or $skin-name == 'tailwind3' {
              margin-top: 6px;
            }
            @else if $skin-name != 'Material3' {
              font-size: $validation-dlg-content-input-font-size;
              height: 32px;
            }
          }
        }

        & .e-ignoreblank {
          margin-bottom: 5px;
          @if $skin-name == 'Material3' or $skin-name == 'fluent2' or $skin-name == 'bootstrap5.3' or $skin-name == 'tailwind3' {
            padding-top: $validation-dlg-content-header-padding-top;
          }
        }
      }

      & .e-footer-content .e-clearall-btn {
        float: left;
        @if $skin-name == 'Material3' or $skin-name == 'tailwind3' {
          margin-left: 0;
        }
      }
    }

    & .e-validation-error-dlg .e-dlg-content {
      font-size: $validationerror-dlg-content-font-size;
      line-height: 28px;
      overflow: hidden;
    }

    & .e-hyperlink-dlg.e-dialog,
    .e-edithyperlink-dlg.e-dialog {
      @if $skin-name != 'Material3' {
        max-height: 640px !important; /* stylelint-disable-line declaration-no-important */
      }
      & .e-dlg-content {
        @if $skin-name != 'Material3' and $skin-name != 'fluent2' and $skin-name != 'bootstrap5.3' and $skin-name != 'tailwind3' {
          padding-bottom: 0;
          padding-left: 0;
          padding-right: 0;
        }

        @if $skin-name == 'bootstrap5.3' {
          padding-bottom: 0;
        }

        & .e-link-dialog {
          & .e-tab-header {
            @if $skin-name == 'bootstrap5' {
              padding: 0 12px;
            }
            @else if $skin-name != 'Material3' and $skin-name != 'fluent2' and $skin-name != 'bootstrap5.3' and $skin-name != 'tailwind3' {
              padding: 0 24px 0 25px;
            }

            & .e-toolbar-items {
              height: 100%;
            }

            & .e-toolbar-item {
              text-align: center;
              @if $skin-name != 'Material3' {
                width: 136px;
              }
            }
          }

          & .e-content {
            padding-top: $hyperlink-dlg-content-padding-top;

            & .e-cont {
              margin: $hyperlink-dlg-content-margin;

              & .e-header {
                font-size: $hyperlink-dlg-content-header-font-size;
                line-height: $hyperlink-dlg-content-header-line-height;
                @if $skin-name == 'tailwind3' {
                  font-weight: $spread-dialog-label-font-weight;
                }
              }

              & .e-text {
                @if $skin-name != 'Material3' and $skin-name != 'fluent2' and $skin-name != 'bootstrap5.3' and $skin-name != 'tailwind3' {
                  font-size: $hyperlink-dlg-content-text-font-size;
                  height: 32px;
                  line-height: 16px;
                  width: 275px;
                  @if $skin-name != 'material' or $skin-name != 'material-dark' {
                    margin-top: 8px;
                  }
                }
                @if $skin-name == 'fluent2' {
                  margin-top: 4px;
                }
                @if $skin-name == 'bootstrap5.3' or $skin-name == 'tailwind3' {
                  margin-top: 6px;
                }
                @if $skin-name == 'FluentUI'  {
                  padding-bottom: 4px;
                }
              }

              & .e-text.e-disabled {
                border-bottom-width: 2px;
              }

              & .e-refcont {
                border: $hyperlink-dlg-refcont-border;
                height: 165px;
                margin: $hyperlink-dlg-refcont-margin;
                overflow: auto;
                @if $skin-name != 'fluent2' and $skin-name != 'bootstrap5.3' and $skin-name != 'tailwind3' {
                  width: 273px;
                }
              }
            }
          }
        }
      }
    }

    & .e-open-dlg.e-dialog {
      width: $open-dlg-width;

      & .e-dlg-content {
        @if $skin-name == 'bootstrap4' {
          & .e-input-group-icon {
            padding-left: 4px;
            padding-right: 4px;
          }
        }

        & .e-file-alert-span {
          color: $dlg-error-color;
          font-size: $open-dlg-file-alert-span-font-size;
          padding-top: $open-dlg-file-alert-span-padding-top;
          @if $skin-name == 'Material3' or $skin-name == 'fluent2' or $skin-name == 'tailwind3' {
            display: block;
          }
        }
      }
    }

    & .e-find-dlg.e-dialog {
      height: auto;
      width: $find-dlg-width;

      & .e-dlg-header-content {
        @if $skin-name == 'Material3' {
          padding-bottom: 4px;
        }
      }

      & .e-dlg-content {
        @if $skin-name == 'bootstrap5.3' or $skin-name == 'tailwind3' {
          padding-top: 0;
        }
        & .e-find-alert-span,
        & .e-replace-alert-span {
          color: $dlg-error-color;
          font-size: $find-dlg-alert-span-font-size;
          @if $skin-name != 'bootstrap5.3' and $skin-name != 'tailwind3' {
            padding-top: 7px;
          }
          @if $skin-name == 'Material3' or $skin-name == 'bootstrap5.3' or $skin-name == 'tailwind3' {
            display: block;
          }
        }

        & .e-findCheck {
          @if $skin-name == 'fluent2' {
            padding: $find-dlg-exactmatchcheckbox-padding;
            & .e-checkbox-wrapper {
              & .e-frame {
                margin-left: 0;
              }
            }
          }
        }

        & .e-findnreplace-casecheckbox {
          @if $skin-name == 'Material3' {
            padding-bottom: 8px;
            padding-top: 20px;
          }
          @else if $skin-name == 'fluent2' {
            margin-right: 8px;
          }
          @else if $skin-name != 'fluent2' {
            padding-right: 12px;
          }
        }

        & .e-findnreplace-exactmatchcheckbox {
          @if $skin-name != 'fluent2' {
            padding: $find-dlg-exactmatchcheckbox-padding;
          }
          @if $skin-name == 'fluent2' {
            margin-left: 8px;
          }
        }
      }

      & p.e-header {
        margin: 0;
        padding-top: $find-dlg-header-padding-top;
        @if $skin-name == 'Material3' {
          font-size: $find-dialog-header-font-size;
          padding-bottom: 0;
        }
        @if $skin-name == 'tailwind3' {
          font-weight: $spread-dialog-label-font-weight;
          line-height: $spread-dlg-header-content-line-height;
        }
        @if $skin-name == 'fluent2' or $skin-name == 'bootstrap5.3' or $skin-name == 'tailwind3' {
          padding-bottom: $find-dialog-header-padding-bottom;
        }
        @else {
          padding-bottom: 8px;
        }
      }

      & .e-footer-content {
        text-align: left;
      }
    }

    & .e-protectworkbook-dlg.e-dialog {
      & .e-dlg-content {
        @if $skin-name == 'Material3' or $skin-name == 'fluent2' or $skin-name == 'bootstrap5.3' or $skin-name == 'tailwind3' {
          & .e-password-content {
            padding: $protectworkbook-dlg-password-content-padding1;
          }
          & .e-password-content + .e-password-content {
            padding: $protectworkbook-dlg-password-content-padding2;
          }
        }
        & .e-pwd-alert-span {
          color: $dlg-error-color;
          font-size: $protectworkbook-dlg-alert-span-font-size;
          @if $skin-name == 'Material3' or $skin-name == 'fluent2' or $skin-name == 'bootstrap5.3' or $skin-name == 'tailwind3' {
            display: block;
            padding-top: 4px;
          }
          @else {
            padding-top: 12px;
          }
        }

        & .e-password-content {
          @if $skin-name != 'Material3' and $skin-name != 'fluent2' and $skin-name != 'bootstrap5.3' and $skin-name != 'tailwind3' {
            padding-top: 12px;
          }
          & .e-header {
            font-size: $protectworkbook-dlg-content-header-font-size;
            line-height: $protectworkbook-dlg-content-header-line;
            @if $skin-name == 'tailwind3' {
              font-weight: $spread-dialog-label-font-weight;
            }
            @if $skin-name != 'Material3' {
              @if $skin-name == 'bootstrap5.3' or $skin-name == 'tailwind3' {
                margin-bottom: 6px;
              }
              @else {
                margin-bottom: 4px;
              }
            }
          }
        }
      }
    }

    & .e-unprotectworkbook-dlg.e-dialog {
      & .e-dlg-content {
        & .e-unprotectpwd-alert-span {
          color: $dlg-error-color;
          font-size: $protectworkbook-dlg-alert-span-font-size;
          padding-top: $protect-unprotect-dlg-alert-span-padding-top;
          @if $skin-name == 'Material3' or $skin-name == 'fluent2' or $skin-name == 'bootstrap5.3' or $skin-name == 'tailwind3' {
            display: block;
          }
        }

        & .e-unprotectpwd-content {
          & .e-header {
            font-size: $unprotectworkbook-dlg-content-header-font-size;
            line-height: $reenterpwd-dlg-content-header-line;
            @if $skin-name == 'tailwind3' {
              font-weight: $spread-dialog-label-font-weight;
            }
          }

          & .e-input {
            @if $skin-name != 'Material3' {
              margin-top: $reenterpwd-dlg-content-input-margin-top;
            }
          }
        }
      }
    }

    & .e-importprotectworkbook-dlg.e-dialog {
      & .e-dlg-content {
        & .e-importprotectpwd-alert-span {
          color: $dlg-error-color;
          font-size: $protectworkbook-dlg-alert-span-font-size;
          padding-top: $protectworkbook-dlg-alert-span-padding-top;
          @if $skin-name == 'Material3' or $skin-name == 'fluent2' or $skin-name == 'bootstrap5.3' or $skin-name == 'tailwind3' {
            display: block;
          }
        }

        & .e-importprotectpwd-content {
          & .e-header {
            font-size: $importprotectworkbook-dlg-content-header-font-size;
            line-height: $reenterpwd-dlg-content-header-line;
            @if $skin-name == 'tailwind3' {
              font-weight: $spread-dialog-label-font-weight;
            }
          }

          & .e-input {
            margin-top: $reenterpwd-dlg-content-input-margin-top;
          }
        }
      }
    }
    
    & .e-open-dlg.e-dialog {
      & .e-open-dialog {
        & .e-open-head .e-header {
          @if $skin-name =='Material3' {
            color: $spreadsheet-label-font-color;
            font-size: $open-dialog-header-font-size;
          }
          @if $skin-name =='fluent2' or $skin-name =='bootstrap5.3' or $skin-name =='tailwind3' {
            line-height: $open-dlg-header-line-height;
            padding-bottom: $open-dlg-header-padding-bttom;
          }
          @if $skin-name =='tailwind3' {
            font-weight: $spread-dialog-label-font-weight;
          }
        }

        & .e-input-group .e-input-group-icon {
          @if $skin-name =='fluent2' {
            font-size: $open-dialog-extension-font-size;
          }
        }
      }
    }
    
    @if $skin-name =='Material3' or $skin-name =='fluent2' or $skin-name =='bootstrap5.3' or $skin-name =='tailwind3' {
      & .e-open-dlg.e-dialog {
        & .e-open-dialog {
          & .e-open-head .e-header {
            margin-top: 0;
            margin-bottom: 0;
          }
          @if $skin-name != 'bootstrap5.3' {
            & .e-input-group .e-input-group-icon:hover {
              background: none;
            }
          }
        }
      }
    }

    & .e-filter-icon {
      margin-bottom: $filter-icon-margin-bottom;
      @if $skin-name == 'FluentUI' {
        margin-top: -9px;
      }
      @if $skin-name == 'bootstrap5.3' {
        margin-top: -8px;
      }
      @if $skin-name == 'fluent2' {
        margin-top: 2px;
        width: 17px;
      }
      @if $sheet-skin == 'tailwind' or $sheet-skin == 'tailwind-dark'or $sheet-skin == 'Material3' {
        font-size: $filter-icon-font-size;
      }

      &:hover:not(:active) {
        @if $skin-name == 'fluent2' {
          background: $filter-icon-hover-bg-color;
        }
      }

      &:active {
        @if $skin-name == 'fluent2' {
          background: $filter-icon-active-bg-color;
        }
      }

      &::before {
        font-size: $filter-icon-before-font-size;
        @if $skin-name != 'Material3' and $skin-name != 'fluent2' and $skin-name != 'bootstrap5.3' and $skin-name != 'tailwind3' {
          margin-left: -3px;
        }
      }
    }

    & .e-btn.e-icon-btn.e-filter-btn {
      bottom: $spreadsheet-filter-btn-bottom;
      float: right;
      height: 18px;
      margin-right: -1px;
      padding: 0;
      position: relative;
      right: 0;
      width: $spreadsheet-filter-btn-width;
      z-index: 2;
      @if $sheet-skin == 'Material3' or $skin-name == 'fluent2' or $skin-name == 'bootstrap5.3' or $skin-name == 'tailwind3' {
        background-color: $cell-background;
        border-color: $cell-border-color;
        box-shadow: none;
      }
      @if $skin-name == 'fluent2' or $skin-name == 'bootstrap5.3' or $skin-name == 'tailwind3' {
        border: 0;
      }
    }
  }

  .e-colorpicker-wrapper.e-border-colorpicker {
    display: none;

    & .e-container {
      box-shadow: none;
      @if $skin-name == 'Material3' or $skin-name == 'fluent2' {
        width: $spreadsheet-border-cpicker-width !important; /* stylelint-disable-line declaration-no-important */
      }
      @else {
        width: 270px !important; /* stylelint-disable-line declaration-no-important */
      }

      & .e-selected-value {
        display: flex;
      }
    }
  }

  .e-spreadsheet.e-col-resizing {
    cursor: col-resize;
  }

  .e-spreadsheet.e-row-resizing {
    cursor: row-resize;
  }

  .e-dropdown-popup {
    &.e-numformat-ddb ul {
      max-width: initial;

      & .e-numformat-preview-text {
        font-size: $numformat-ddb-preview-font-size;
        max-width: 200px;
        overflow: hidden;
        text-align: right;
        text-overflow: ellipsis;
      }
    }

    &.e-font-size-ddb ul {
      min-width: 60px;
    }

    &.e-align-ddb ul {
      min-width: auto;
      padding: $align-ddb-ul-padding;

      & .e-item {
        @if $sheet-skin == 'Material3' or $skin-name == 'bootstrap5.3' {
          border-radius: $align-ddb-item-border-radius;
        }
        display: inline-flex;
        height: $align-ddb-item-height;
        line-height: $align-ddb-item-height;
        margin: $align-ddb-item-margin;
        padding: $align-ddb-item-padding;

        & .e-menu-icon {
          line-height: $align-ddb-item-height;
          margin-right: 0;
          @if $skin-name == 'fluent2' {
            padding: 0;
          }
        }
      }
    }

    &.e-spreadsheet-color-popup {
      & .e-container {
        & .e-custom-palette .e-palette {
          @if $sheet-skin != 'Material3' {
            padding: 0;
          }
        }

        & .e-switch-ctrl-btn {
          @if $sheet-skin != 'Material3' {
            padding-top: $ctrl-btn-padding;
          }
        }

        & .e-custom-palette + .e-switch-ctrl-btn {
          @if $sheet-skin == 'Material3' {
            padding: 2px 8px 12px;
          }
        }
      }
    }

    &.e-font-family ul .e-item {
      @for $i from 0 to list.length($font-family-collection) {
        &:nth-child(#{$i+1}) {
          font-family: list.nth($font-family-collection, $i+1);
        }
      }
    }

    &.e-aggregate-list {
      font-size: $aggregate-list-font-size;
      margin-left: auto;
    }

    &.e-borders-ddb .e-menu-wrapper {
      border: 0;

      & ul .e-menu-item .e-menu-icon {
        font-size: $aggregate-list-font-size;
      }
    }

    &.e-popup.e-aggregate-list ul {
      @if $skin-name != 'fluent2' {
        font-size: $aggregate-list-font-size;
      }
    }
  }

  .e-menu-wrapper {
    &.e-file-menu ul .e-menu-item div {
      @if $skin-name != 'fluent2' {
        display: flex;
      }
      width: 100%;

      & .e-extension {
        font-size: $file-menu-extension-font-size;
        margin-left: auto;
        opacity: .7;
        padding-left: $menu-extension-padding;
        @if $skin-name == 'fluent2' {
          float: right;
        }
      }
    }

    & .e-border-style {
      & .e-menu-item {
        align-items: center;
        display: flex;

        &::after {
          content: '';
          width: 135px;
        }

        $border-style-collection: solid solid solid dashed dotted double;
        $border-width-collection: thin medium thick thin thin medium;
        @for $i from 0 to list.length($border-style-collection) {
          &:nth-child(#{$i+1})::after {
            border-bottom-style: list.nth($border-style-collection, $i+1);
            border-bottom-width: list.nth($border-width-collection, $i+1);
          }
        }
      }
    }

    &.e-databars .e-ul,
    &.e-colorscales .e-ul {
      overflow: visible;
      padding: 0;

      & .e-menu-item {
        height: auto;
        line-height: 0;
        padding: 0;

        & .e-cf-icon {
          display: inline-block;
          height: 40px;
          width: 40px;
        }
      }
    }

    &.e-databars .e-ul {
      min-width: 110px;
    }

    &.e-colorscales .e-ul {
      min-width: 150px;
    }

    &.e-popup.e-menu-popup.e-iconsets ul {
      min-width: 250px;
      overflow: visible;
      padding: 0;

      & .e-menu-item {
        height: auto;
        line-height: 0;
        padding: 0;

        & .e-is {
          height: 550px;
          width: auto;

          & .e-is1,
          & .e-is3,
          & .e-is5,
          & .e-is7 {
            height: 6%;
            padding: 18px 16px;
          }

          & .e-iconsetspan {
            display: inline-block;
            height: 100%;
            width: 20%;
          }

          & .e-is2 {
            height: 25.3%;

            & .e-3arrows,
            & .e-3arrowsgray,
            & .e-3triangles,
            & .e-4arrowsgray,
            & .e-4arrows,
            & .e-5arrowsgray,
            & .e-5arrows {
              @include cf-menu-iconsets(left, 25%, 50%);
              padding: 2px 12px;
            }
          }

          & .e-is4 {
            height: 19%;

            & .e-3trafficlights,
            & .e-3rafficlights2,
            & .e-3signs,
            & .e-4trafficlights,
            & .e-4redtoblack {
              @include cf-menu-iconsets(left, 33%, 50%);
              padding: 2px 12px;
            }
          }

          & .e-is6 {
            height: 12.6%;

            & .e-3symbols,
            & .e-3symbols2,
            & .e-3flags {
              @include cf-menu-iconsets(left, 50%, 50%);
              padding: 2px 12px;
            }
          }

          & .e-is8 {
            height: 19%;

            & .e-3stars,
            & .e-4rating,
            & .e-5quarters,
            & .e-5rating,
            & .e-5boxes {
              @include cf-menu-iconsets(left, 33%, 50%);
              @if $skin-name == 'bootstrap5.3' or $skin-name == 'tailwind3' {
                padding: 2px 12px;
              }
            }
          }
        }
      }
    }

    &.e-popup.e-menu-popup.e-border-color ul {
      min-width: 270px;
      overflow: visible;
      padding: 0;

      & .e-menu-item {
        height: auto;
        line-height: 0;
        padding: 0;

        &.e-ripple,
        &.e-ripple-style {
          overflow: visible;

          & .e-ripple-element {
            display: none;
          }
        }

        & .e-container .e-slider-preview .e-colorpicker-slider .e-slider-container {
          display: block;
        }
      }
    }

    &.e-popup.e-menu-popup.e-addchart-menu ul {
      @if $sheet-skin == 'bootstrap' or $sheet-skin == 'bootstrap4' or $sheet-skin == 'bootstrap5' or $sheet-skin == 'bootstrap-dark' or $sheet-skin == 'bootstrap5-dark' {
        & .e-menu-item {
          height: 35px;
        }
      }
    }

    &.e-popup.e-menu-popup.e-chart-menu ul,
    &.e-popup.e-menu-popup.e-chart-type-menu ul {
      @include chart-menu-popup(165px);

      & .e-menu-item {
        @include chart-menu-item;

        & .e-column-main,
        & .e-bar-main {
          height: 90px;

          & .e-column1-text,
          & .e-bar1-text {
            height: 40%;
            padding: 18px 16px;
          }

          & .e-column1-cont,
          & .e-bar1-cont {
            height: 60%;
            @if $skin-name == 'tailwind3' {
              margin: 0 4px;
            }

            & .e-clusteredcolumn,
            & .e-stackedcolumn,
            & .e-stackedcolumn100,
            & .e-clusteredcolumn3d,
            & .e-stackedcolumn3d,
            & .e-stackedcolumn1003d,
            & .e-clusteredbar,
            & .e-stackedbar,
            & .e-stackedbar100,
            & .e-clusteredbar3d,
            & .e-stackedbar3d,
            & .e-stackedbar1003d {
              @if $skin-name != 'fluent2' and $skin-name != 'bootstrap5.3' and $skin-name != 'tailwind3' {
                @include chart-type-styles(inline-block, 40px, 100%, 0, 10px, 55px);
              }
              @else if $skin-name == 'fluent2' {
                @include chart-type-styles(inline-block, 32px, 100%, 0, 10px, 56px);
                line-height: 32px;
              }
              @else if $skin-name == 'tailwind3' {
                @include chart-type-styles(inline-block, 32px, 48px, 0, 10px, 48px);
                line-height: 32px;
              }
              @else if $skin-name == 'bootstrap5.3' {
                @include chart-type-styles(inline-block, 36px, 100%, 0, 10px, 54px);
                line-height: 36px;
              }
            }
          }
        }
      }
    }

    &.e-popup.e-menu-popup.e-chart-menu ul,
    &.e-popup.e-menu-popup.e-chart-type-menu ul {
      @include chart-menu-popup(110px);

      & .e-menu-item {
        @include chart-menu-item;

        & .e-pie-main,
        & .e-radar-main {
          height: 96px;

          & .e-pie-text,
          & .e-radar-text {
            height: 40%;
            padding: 18px 16px;
          }

          & .e-pie-cont,
          & .e-radar-cont {
            height: 60%;
            @if $skin-name == 'tailwind3' {
              margin: 0 6px 6px;
            }

            & .e-pie,
            & .e-doughnut,
            & .e-radar,
            & .e-radar-markers {
              @if $skin-name != 'fluent2' and $skin-name != 'bootstrap5.3' and $skin-name != 'tailwind3' {
                @include chart-type-styles(inline-block, 40px, 60px, 0, 10px, 55px);
              }
              @else if $skin-name == 'fluent2' {
                @include chart-type-styles(inline-block, 32px, 56px, 0, 10px, 56px);
                line-height: 38px;
              }
              @else if $skin-name == 'tailwind3' {
                @include chart-type-styles(inline-block, 32px, 52px, 0, 10px, 52px);
                line-height: 34px;
              }
              @else if $skin-name == 'bootstrap5.3' {
                @include chart-type-styles(inline-block, 36px, 54px, 0, 8px 10px, 54px);
                line-height: 36px;
              }
            }
          }
        }
      }
    }

    &.e-popup.e-menu-popup.e-chart-menu ul,
    &.e-popup.e-menu-popup.e-chart-type-menu ul {
      @include chart-menu-popup(165px);

      & .e-menu-item {
        @include chart-menu-item;

        & .e-line-main,
        & .e-area-main {
          height: auto;

          & .e-line-text,
          & .e-area-text {
            height: 40%;
            padding: 18px 16px;
          }

          & .e-line-cont,
          & .e-area-cont {
            height: 60%;
            @if $skin-name == 'tailwind3' {
              margin: 0 6px 6px;
            }

            & .e-area,
            & .e-stackedarea,
            & .e-stackedarea100,
            & .e-line,
            & .e-stackedline,
            & .e-stackedline100,
            & .e-line-marker,
            & .e-stackedline-marker,
            & .e-stackedline100-marker {
              @if $skin-name != 'fluent2' and $skin-name != 'bootstrap5.3' and $skin-name != 'tailwind3' {
                @include chart-type-styles(inline-block, 40px, 60px, 0, 10px, 55px);
              }
              @else if $skin-name == 'fluent2' {
                @include chart-type-styles(inline-block, 32px, 56px, 0, 10px, 56px);
                line-height: 36px;
              }
              @else if $skin-name == 'tailwind3' {
                @include chart-type-styles(inline-block, 32px, 52px, 0, 10px, 52px);
                line-height: 32px;
              }
              @else if $skin-name == 'bootstrap5.3' {
                @include chart-type-styles(inline-block, 36px, 54px, 0, 10px, 54px);
                line-height: 36px;
              }
            }
          }
        }
      }
    }

    &.e-popup.e-menu-popup.e-chart-menu ul,
    &.e-popup.e-menu-popup.e-chart-type-menu ul {
      @include chart-menu-popup(60px);

      & .e-menu-item {
        @include chart-menu-item;

        & .e-scatter-main {
          height: 90px;

          & .e-scatter-text {
            height: 40%;
            padding: 18px 16px;
          }

          & .e-scatter-cont {
            height: 60%;

            & .e-scatter {
              @if $skin-name != 'fluent2' and $skin-name != 'bootstrap5.3' and $skin-name != 'tailwind3' {
                @include chart-type-styles(inline-block, 60px, 60px, 0, 10px, 100%);
              }
              @else if $skin-name == 'tailwind3' {
                @include chart-type-styles(inline-block, 50px, 46px, 0, 0, 60px);
                line-height: 48px;
                margin: 0 8px 7px;
              }
              @else if $skin-name == 'fluent2' or $skin-name == 'bootstrap5.3' {
                @include chart-type-styles(inline-block, 60px, 56px, 0, 10px, 100%);
                line-height: 36px;
              }
            }
          }
        }
      }
    }
  }

  .e-spreadsheet-function-dlg.e-dialog {
    min-height: $dlg-min-height;
    user-select: none;
    & .e-dlg-content {
      @if $sheet-skin != 'Material3' and $skin-name != 'fluent2' and $skin-name != 'bootstrap5.3' and $skin-name != 'tailwind3' {
        overflow: hidden;
        padding-left: $dlg-content-padding;
        padding-right: $dlg-content-padding;
      }

      & .e-category-content {
        font-size: $dlg-category-content-font-size;
        @if $sheet-skin != 'Material3' {
          font-weight: $dlg-category-content-font-weight;
          margin-bottom: $dlg-category-margin-bottom;
        }
        @if $sheet-skin == 'Material3' {
          padding: 4px 0 0;
        }
        @if $sheet-skin == 'tailwind' or $sheet-skin == 'tailwind-dark' {
          padding: 10px 0;
        }
        @if $skin-name == 'tailwind3' {
          line-height: $spread-dlg-header-content-line-height;
        }
      }

      & .e-formula-description {
        @if $sheet-skin != 'Material3' and $skin-name != 'fluent2' and $skin-name != 'bootstrap5.3' and $skin-name != 'tailwind3' {
          margin-left: -4px;
          margin-top: 5px;
        }
        padding: $dlg-category-formula-description-padding;
      }

      & .e-description-content {
        font-size: $dlg-description-content-font-size;
        padding-top: $dlg-description-content-padding-top;
        @if $sheet-skin != 'Material3' {
          font-weight: $dlg-description-font-weight;
        }
        @if $skin-name == 'tailwind3' {
          line-height: $spread-dlg-header-content-line-height;
        }
      }

      & .e-formula-list {
        cursor: default;
        @if $sheet-skin != 'Material3' {
          border: $dlg-list-border;
        }
        margin-top: 6px;
        overflow-y: auto;
      }
    }
  }

  .e-xlflmenu {
    @if $sheet-skin == 'tailwind' or $sheet-skin == 'tailwind-dark' {
      & .e-xlfl-maindiv {
        padding-top: 10px;
      }
    }

    & .e-xlfl-maindiv .e-xlfl-radiodiv {
      width: auto;
    }
  }

  .e-name-box {
    & .e-dropdownbase .e-list-item {
      line-height: 25px;
      min-height: 25px;
      text-indent: 10px;
    }
  }

  .e-spreadsheet:not(.e-mobile-view) {
    & .e-formula-bar-panel {
      border-bottom-width: 0;
      @if $skin-name == 'bootstrap5.3' {
        border-top-width: 0;
      }

      & .e-btn.e-css.e-insert-function {
        border-left: $spreadsheet-border;
        @if $skin-name == 'bootstrap5.3' {
          border-left: $spreadsheet-outline-border;
        }
        height: $spreadsheet-formula-bar-height;

        @if $skin-name == 'Material3' {
          padding-left: 6px;
          padding-right: 6px;
        }

        & .e-btn-icon {
          line-height: $formula-bar-btn-icon-line-height;
        }
      }

      & .e-formula-bar {
        height: $spreadsheet-formula-bar-height;
        line-height: $spreadsheet-formula-bar-height;
        width: $formula-textarea-width;
      }

      &.e-expanded {
        & .e-formula-bar,
        & .e-btn.e-css.e-insert-function {
          height: $spreadsheet-formula-bar-expanded-height;
          @if $skin-name == 'Material3' {
            line-height: 24px;
          }
        }

        & .e-btn.e-css.e-insert-function {
          line-height: $spreadsheet-formula-bar-expanded-height;
        }

        & .e-drop-icon {
          transform: rotate(180deg);
        }

        & .e-separator {
          height: $spreadsheet-formula-bar-expanded-separator-height;
        }
      }
    }

    & .e-sheet-tab {
      max-width: 60%;

      & .e-hscroll-bar {
        @if $skin-name == 'fluent2' {
          margin-left: -28px;
        }

        @else {
          margin-left: -40px;
        }
        margin-right: 40px;
      }
    }

    & .e-add-sheet-tab.e-btn.e-icon-btn.e-css,
    & .e-sheets-list.e-dropdown-btn {
      height: 32px;
      padding: 0;
      width: 32px;
      @if $skin-name == 'fluent2' {
        margin-left: 0;
        margin-right: 8px;
      }

      & .e-btn-icon.e-icon-left {
        @if $skin-name == 'fluent2' {
          margin-left: 0;
        }
      }

      & .e-btn-icon {
        line-height: $sheet-tab-btn-icon-line-height;
        @if $skin-name != 'fluent2' {
          margin-top: 0;
        }
        @if $skin-name == 'fluent2' or $skin-name == 'tailwind3' {
          font-size: $sheet-tab-btn-icon-font-size;
        }
      }
    }
    @if $skin-name == 'bootstrap5.3' {
      & .e-sheets-list.e-dropdown-btn {
        & .e-btn-icon {
          font-size: 16px;
        }
      }
    }

    & .e-aggregate-list {
      font-size: $aggregate-list-font-size;
      margin-left: auto;
      @if $skin-name == 'fluent2' or $skin-name == 'tailwind3' {
        font-weight: $aggregate-list-font-weight;
      }
      @else if $skin-name == 'bootstrap5.3' {
        line-height: $aggregate-list-line-height;
        & .e-btn-icon.e-caret {
          line-height: $aggregate-list-caret-line-height;
        }
      }
    }

    & .e-ribbon {
      @if $skin-name != 'bootstrap5.3' {
        border-bottom-width: 0;
      }

      &.e-collapsed {
        @if $skin-name == 'bootstrap5.3' {
          border-bottom-width: 0;
        }
      }
    }
  }

  .e-spreadsheet.e-device {
    & .e-sheet-tab {
      & .e-hscroll-bar {
        margin-left: 0;
      }
    }
  }

  .e-sort-dialog {
    height: 100%;
    position: relative;
    @if $skin-name == 'Material3' {
      overflow: hidden;
      & .e-sort-header {
        border-bottom: 1px solid $spreadsheet-customsrt-line-color;
      }
    }

    & .e-sort-listsection {
      @if $skin-name != 'FluentUI' {
        height: calc(100% - 28px);
      }
      margin: 0 auto;
      overflow: auto;
      width: 100%;
    }

    & .e-sort-listwrapper {
      @if $skin-name != 'fluent2' and $skin-name != 'bootstrap5.3' and $skin-name != 'tailwind3' {
        padding-left: 2px;
      }
    }

    & .e-sort-listwrapper .text {
      font-size: $sort-dlg-listwrapper-text-font-size;
      @if $skin-name == 'bootstrap5.3' or $skin-name == 'tailwind3' {
        line-height: $validation-dlg-content-header-line;
      }
      @if $skin-name == 'tailwind3' {
        font-weight: $spread-dialog-label-font-weight;
      }
      @if $skin-name != 'Material3' and $skin-name != 'fluent2' and $skin-name != 'bootstrap5.3' and $skin-name != 'tailwind3' {
        padding: 10px 0 5px;
      }
    }

    & .e-list-sort {
      height: 100%;
    }

    & .e-sort-row {
      align-items: center;
      display: flex;
      padding: $sort-dlg-row-padding;
    }

    & .e-sort-error,
    & .e-sort-header,
    & .e-sort-casecheckbox,
    & .e-sort-listsection {
      @if $skin-name != 'Material3' and $skin-name != 'fluent2' and $skin-name != 'bootstrap5.3' and $skin-name != 'tailwind3' {
        padding-left: $dlg-content-padding;
        padding-right: $dlg-content-padding;
        padding-bottom: $dlg-content-padding-bottom;
      }
    }
    @if $skin-name == 'Material3' {
      & .e-sort-header {
        padding-bottom: 20px;
        padding-top: 6px;
      }

      & .e-sort-casecheckbox {
        padding-left: 24px;
        padding-right: 24px;
      }

      & .e-sort-listsection {
        padding-bottom: 14px;
        padding-top: 16px;
      }
    }

    & .e-sort-casecheckbox {
      @if $skin-name == 'bootstrap5.3' or $skin-name == 'tailwind3' {
        margin-left: 16px;
      }
    }

    & .e-sort-error {
      bottom: $spreadsheet-sort-dlg-error-bottom;
      display: none;
      font-size: $sort-dlg-error-font-size;
      height: 20px;
      line-height: 20px;
      position: absolute;
      width: 100%;
    }

    & .e-sort-template {
      border: 0;

      & .e-list-item {
        height: auto;
        line-height: unset;
        @if $skin-name == 'bootstrap5.3' or $skin-name == 'tailwind3' {
          border: 0;
        }

        &:not(:first-child) {
          padding: $spreadsheet-sort-template-item-padding;
        }

        &:first-child {
          padding: 0;
        }
      }

      & .e-content {
        height: 100%;
        overflow: auto;
      }
    }

    & .e-sort-field {
      width: auto;
    }

    & .e-radio-wrapper {
      @if $skin-name == 'bootstrap5' or $skin-name == 'bootstrap5-dark' or $skin-name == 'Material3' {
        margin-left: 20px;
      }
      @else if $skin-name == 'fluent2' {
        margin-left: 8px;
      }
      @else {
        margin-left: 16px;
      }
      @if $skin-name == 'Material3' {
        padding: 8px 0;
      }
    }

    & li:first-of-type .e-sort-delete {
      display: none;
    }

    & .e-sort-delete {
      border-left-style: solid;
      border-left-width: 1px;
      line-height: 32px;
      margin-left: auto;
      margin-right: 5px;
      padding-left: 22px;
      vertical-align: middle;
      @if $skin-name == 'bootstrap5.3' or $skin-name == 'tailwind3' {
        padding-left: 18px;
        margin-right: 20px;
      }

      &::before {
        cursor: pointer;
      }
    }
  }

  .e-spreadsheet .e-ribbon .e-tab .e-tab-header .e-toolbar-item {
    & .e-tab-wrap:focus .e-text-wrap,
    &:not(.e-separator) .e-text-wrap {
      @if $skin-name =='bootstrap5' or $skin-name == 'bootstrap5.3' or $skin-name =='bootstrap5-dark' {
        height: 32px;
      }
    }
    &:not(.e-separator) .e-tab-wrap {
      @if $skin-name =='bootstrap5' or $skin-name == 'bootstrap5.3' or $skin-name =='bootstrap5-dark' or $skin-name =='fluent2' {
        height: $spreadsheet-ribbon-toolbar-item-height;
      }
    }
    &.e-active {
      @if $skin-name =='bootstrap5' or $skin-name == 'bootstrap5.3' or $skin-name =='bootstrap5-dark' {
        margin: 0;
      }
    }
  }
  @if $skin-name == 'Material3' {
    .e-spreadsheet .e-ribbon .e-tab .e-tab-header .e-toolbar-item {
      &.e-active {
        margin: 0;
      }
    }
  }
}
