@use 'sass:list';
@use 'ej2-base/styles/common/mixin' as *;
@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;
}

@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 */
      }
    }

    &.sf-spreadsheet {
      .e-filloption.e-dragfill-ddb {
        min-width: $spreadsheet-autofill-menuoption-min-width;
      }
      .e-document_details{
        padding: 10px;
      }

      &.e-min-dimension {
        min-height: 400px;
        min-width: 300px;
      }

      .e-spreadsheet-function-dlg.e-dialog .e-dlg-content .e-formula-list {
        @if $sheet-skin == 'Material3' {
          overflow-y: visible !important; /* stylelint-disable-line declaration-no-important */
        }
      }
      .e-main-panel{
        height: calc(100% - 54px);
        overflow-y: scroll;
      }
      .e-ss-overlay-t .e-ss-resizer{
        width: 8px;
        height: 8px;
        border-radius: $spreadsheet-overlay-resizer-border-radius;
      }
      .e-scrollbar{
        height: 19px;
      }

      .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 =='fabric' or $skin-name == 'fabric-dark' {
            height: 33px;
          }
        }
      }

      .e-ribbon .e-tab .e-tab-header .e-toolbar-items .e-toolbar-item:nth-child(2) .e-tab-wrap {
        @if $skin-name =='fabric' or $skin-name == 'fabric-dark' {
          padding: 0;
        }
      }

      .e-resize-helper{
        top: 0;
      }
      .e-rowresize-handler{
        position: absolute;
      }
      .e-spreadsheet-ribbon {
        .e-spreadsheet-fontfamilt-text {
          @if $skin-name == 'fluent2' {
            padding-bottom: 2px !important; /* stylelint-disable-line declaration-no-important */
          }
        }
        .e-ribbon-simplified-mode {
          border: 1px solid var(--color-sf-border-light);
          border-bottom: 0;
          border-radius: $spreadsheet-ribbon-simplified-mode-border-radius;
          .e-tab-header{
            .e-indicator {
              @if $skin-name == 'Material3' or $skin-name == 'highcontrast' or $skin-name == 'bootstrap5' or $skin-name == 'tailwind3' {
                z-index: 0;
              }
            }

            & .e-toolbar-item {
              &.e-active .e-text-wrap::before {
                @if $skin-name == 'tailwind3' {
                  border: none;
                }
              }
              & .e-tab-wrap:focus .e-text-wrap{
                @if $skin-name == 'highcontrast' {
                  height: 33px;
                }
                @else if $skin-name == 'bootstrap5' {
                  height: 32px;
                }
              }
              &:not(.e-separator) {
                .e-text-wrap,
                .e-tab-wrap {
                  @if $skin-name == 'tailwind3' or $skin-name == 'FluentUI' {
                    height: auto;
                  }
                }
              }
            }
          }
          .e-content {
            .e-font-list {
              @if $skin-name == 'Material3' {
                box-shadow: none;
              }
            }
            .e-split-btn-wrapper {
              @if $skin-name !='fluent2'{
                box-shadow: none;
              }

              .e-split-btn {
                @if $skin-name == 'Material3' {
                  z-index: 0 !important; /* stylelint-disable-line declaration-no-important */
                }
              }

              .e-split-btn,
              .e-dropdown-btn.e-color-picker {
                box-shadow: none;
                border-color: rgba(0, 0, 0, 0);
                background: rgba(0, 0, 0, 0);
                color: var(--color-sf-content-text-color);
              }
              .e-dropdown-btn.e-mergecell {
                @if $skin-name =='fluent2' {
                  padding-bottom: $spreadsheet-padding-5 !important; /* stylelint-disable-line declaration-no-important */
                }
                @else {
                  padding-bottom: $bigger-cpicker-btn-padding-bottom !important; /* stylelint-disable-line declaration-no-important */
                }
              }
              .e-split-btn.e-color-picker,
              .e-split-btn.e-mergecell {
                padding-left: $spreadsheet-namerange-row-padding !important; /* stylelint-disable-line declaration-no-important */
                padding-right: $spreadsheet-namerange-row-padding !important; /* stylelint-disable-line declaration-no-important */
                width: 32px;
                & .e-selected-color{
                  background: none;
                  border-bottom-style: solid;
                  border-bottom-width: 3px;
                  border-radius: $spreadsheet-ribbon-simplified-mode-border-radius;
                  height: auto;
                  padding-bottom: 1px;
                  width: auto;
                }
                & .e-icons.e-btn-icon:not(.e-caret) {
                  &.e-font-color {
                    font-size: $spreadsheet-cpicker-font-color-font-size;
                    @if $skin-name == 'highcontrast'{
                      font-size: 16px;
                    }
                  }

                  &.e-fill-color {
                    font-size: $spreadsheet-cpicker-fill-color-font-size;
                    @if $skin-name == 'highcontrast'{
                      font-size: 16px;
                    }
                  }
                }
              }
            }

            .e-split-btn:not(:focus):hover:not(.e-active),
            .e-dropdown-btn.e-color-picker:not(:focus):hover:not(.e-active),
            .e-dropdown-btn.e-mergecell:not(:focus):hover:not(.e-active) {
              @if $skin-name =='fluent2' {
                color: var(--color-sf-content-text-color-hover);
                background: var(--color-sf-content-bg-color-hover);
                border-color: rgba(0, 0, 0, 0);
              }
              @else if $skin-name == 'FluentUI'{
                background: rgb(237, 235, 233);
                border-color: rgba(0, 0, 0, 0);
              }
              @else if $skin-name == 'tailwind'{
                background: $cool-gray-200;
                color: $cool-gray-700;
              }
              @else if $sheet-skin == 'bootstrap5' or $skin-name == 'bootstrap5.3' {
                color: rgb(255, 255, 255);
                background: rgb(91.8, 99.45, 106.25);
                border-color: rgba(0, 0, 0, 0);
              }
              @else if $skin-name == 'highcontrast'{
                background: rgb(104, 87, 8);
                border-color: rgb(255, 255, 255);
              }
              @else if $skin-name == 'Material3'{
                background: rgba(var(--color-sf-on-surface), .05);
                border-color: rgba(0, 0, 0, 0);
              }
            }

            .e-split-btn:focus {
              @if $skin-name =='fluent2' {
                color: var(--color-sf-secondary-text-color-hover);
                background: var(--color-sf-secondary-bg-color-hover);
                border-color: var(--color-sf-secondary-border-color-hover);
              }
              outline-offset: 0;
              box-shadow: none;
              outline: var(--color-sf-secondary-bg-color) 0 solid;
            }

            .e-ribbon-text-format .e-color-picker .e-split-btn {
              @if $skin-name =='fluent2' {
                padding-top: 8px;
              }
              @else if $skin-name == 'highcontrast' {
                padding-top: 3px;
              }
            }

            .e-align.e-ribbon-item:not(:has(.e-ribbon-template)).e-ribbon-small-item .e-dropdown-btn .e-caret {
              @if $skin-name =='fluent2' {
                padding-right: 8px !important; /* stylelint-disable-line declaration-no-important */
              }
            }
            .e-ribbon-group {
              @if $skin-name =='tailwind3' or $skin-name =='bootstrap5' or $skin-name =='FluentUI' {
                padding-top: $spreadsheet-ribbon-simplified-mode-padding-top;
                padding-bottom: $spreadsheet-ribbon-simplified-mode-padding-bottom;
              }
              @else if $skin-name =='Material3' {
                padding-bottom: 3px;
              }
            }
          }
          .e-dropdown-btn{
            white-space: nowrap;
          }
          .e-wrap{
            @if $skin-name =='highcontrast'{
              padding-top: 7px;
            }
          }
          .e-btn:not(.e-tbar-btn):not(.e-dropdown-btn):not(.e-split-btn) {
            padding-left: 1.5px;
            padding-right: 1.5px;
          }

          .e-btn:not(.e-tbar-btn):not(.e-dropdown-btn):not(.e-split-btn) .e-btn-icon {
            @if $skin-name != 'bootstrap5' {
              font-size: 16px;
            }
            min-width: 30px;
          }

          .e-ribbon-template.e-ribbon-text-format:not(.e-separator):not(.e-spacer) {
            height: inherit;
            min-width: 32px;
            padding: 4px 0;
          }

          .e-btn:not(.e-tbar-btn) {
            font-weight: $spreadsheet-ribbon-simplified-mode-btn-font-weight;
            white-space: nowrap;
          }

          .e-ribbon-tab .e-tab-header .e-toolbar-item {
            & .e-text-wrap .e-tab-text,
            &.e-active .e-text-wrap .e-tab-text {
              @if $sheet-skin == 'bootstrap5' or $skin-name == 'bootstrap5.3' or $sheet-skin == 'tailwind3' {
                font-weight: $spreadsheet-ribbon-simplified-mode-tab-header-font-weight;
              }
            }
          }
          .e-ribbon.e-rbn{
            @if $skin-name == 'FluentUI' {
              background: $gray10;
            }
          }
        }
      }

      .e-sheet-tab-panel .e-toolbar-item.e-active .e-text-wrap::before {
        @if $skin-name == 'tailwind3' {
          border: none;
        }
      }

      .e-sheets-list .e-btn-icon {
        width: 1em;
        margin: 0;
      }

      & .e-editor-visible {
        display: flex;
      }

      & .e-editor-hidden {
        display: none;
      }

      .e-name-manager-dialog-mobile .e-dlg-header-content {
        background: var(--color-sf-content-bg-color-alt1);
        border-bottom: 1px solid var(--color-sf-border-light);
        border-radius: $spread-border-radius-0;
        padding: 12px 10px;
        width: 100%;
      }

      .e-name-dlg-header-mobile {
        display: flex;
        font-size: $spreadsheet-name-dlg-header-mobile-font-size;
        font-weight: $spreadsheet-name-dlg-header-mobile-font-weight;
      }

      .custom-close-btn {
        font-size: $spreadsheet-custom-close-btn-font-size;
      }

      .e-header-title {
        font-size: $spreadsheet-namerange-header-font-size;
        font-weight: $spreadsheet-namerange-header-font-weight;
        line-height: $spreadsheet-namerange-header-line-height;
        margin-left: $spreadsheet-namerange-header-margin-left;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
      }

      .e-name-manager-dialog .e-dlg-header-content {
        padding-bottom: $spreadsheet-namerange-header-padding-bottom;
      }

      .e-name-manager-ok-btn {
        font-size: $spreadsheet-namerange-header-font-size;
        font-weight: $spreadsheet-namerange-header-font-weight;
        margin-right: $spreadsheet-namerange-ok-btn-margin-right;
      }

      .e-spreadsheet-name-manager-form > .e-spreadsheet-name-manager-form-group:first-child {
        @if ($skin-name == 'bootstrap5.3' or $skin-name == 'bootstrap5' or $skin-name == 'bootstrap4' or $skin-name == 'bootstrap' or $skin-name == 'tailwind3') {
          padding-top: $spreadsheet-name-manager-form-group-padding-top;
        }
      }

      .e-spreadsheet-name-manager-form-group {
        display: flex;
        flex-direction: column;
        gap: $spreadsheet-namerange-form-group-gap;
        padding-top: $spreadsheet-namerange-form-group-padding-top;
      }

      .e-spreadsheet-name-manager-range-input {
        display: flex;
        gap: $spreadsheet-namerange-range-input-gap;
      }

      .e-spreadsheet-name-manager-form-actions {
        display: flex;
        gap: $spreadsheet-namerange-form-actions-gap;
        padding-top: $spreadsheet-namerange-form-actions-padding-top;
      }

      .e-spreadsheet-name-manager-error {
        color: $spreadsheet-error-message-color;
        font-size: $spreadsheet-name-error-message-font-size;
      }

      .e-named-range .e-list-wrapper {
        padding: $spreadsheet-namerange-list-wrapper-padding;
      }

      .e-namedRangesList.e-listview {
        margin-top: $spreadsheet-namerange-list-margin-top;
      }

      .e-namedRangesList.e-listview .e-list-item,
      .e-unlock-range-listview.e-listview .e-list-item {
        padding: 0 $spreadsheet-namerange-list-item-padding-x;
      }

      .e-namedRangesList.e-listview .e-named-range,
      .e-unlock-range-listview.e-listview .e-unlock-range {
        align-items: center;
        display: flex;
        justify-content: space-between;
        padding: $spreadsheet-namerange-row-padding;
      }

      .e-namedRangesList.e-listview .e-list-content-wrapper,
      .e-unlock-range-listview.e-listview .e-list-content-wrapper {
        display: flex;
        flex: 1;
        flex-direction: column;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      .e-namedRangesList.e-listview .e-list-item-actions {
        gap: $spreadsheet-namerange-item-gap;
      }

      .e-namedRangesList.e-listview .e-btn-icon,
      .e-unlock-range-listview.e-listview .e-btn-icon {
        align-items: center;
        background: none;
        border: none;
        border-radius: $spreadsheet-border-radius-50p;
        cursor: pointer;
        display: flex;
        height: $spreadsheet-namerange-icon-btn-height;
        justify-content: center;
        padding: $spreadsheet-namerange-icon-btn-padding;
        width: $spreadsheet-namerange-icon-btn-size;
      }

      .e-namedRangesList.e-listview .e-btn-icon:hover,
      .e-unlock-range-listview.e-listview .e-btn-icon:hover {
        background-color: $spreadsheet-namerange-icon-btn-hover-bg;
      }

      .e-namedRangesList.e-listview .e-edit-btn .e-icons,
      .e-namedRangesList.e-listview .e-delete-btn .e-icons,
      .e-unlock-range-listview.e-listview .e-edit-btn .e-icons,
      .e-unlock-range-listview.e-listview .e-delete-btn .e-icons {
        font-size: $spreadsheet-namerange-icon-font-size;
      }

      & .e-protectworkbook-dlg,
      .e-unprotectworkbook-dlg {
        & .e-dlg-content {
          .e-protection-error-message {
            color: $spreadsheet-error-message-color;
            font-size: $spreadsheet-name-error-message-font-size;
          }
        }
      }
      .e-spreadsheet-unprotect-dialog {
        .e-unprotect-content .e-unprotect-error-message {
          color: $spreadsheet-error-message-color;
          font-size: $spreadsheet-name-error-message-font-size;
        }
      }

      .e-spreadsheet-protection-dialog {
        & .e-dlg-header-content {
          padding-bottom: $spreadsheet-protection-padding-bottom;
        }

        .e-protection-tab
        {
          @if ($skin-name == 'highcontrast') {
            border: none;
          }
        }

        .e-protection-tab-content {
          & .e-protection-toggle-container {
            padding-top: $spreadsheet-protection-toggle-container-padding-top;
            padding-bottom: $spreadsheet-protection-toggle-container-padding-bottom;
          }

          & .e-protection-password-field {
            padding-bottom: $spreadsheet-protection-password-field-padding-bottom;
          }

          & .e-protection-password-field label {
            padding-bottom: $spreadsheet-protection-password-field-label-padding-bottom;
          }

          .e-protection-error-message {
            color: $spreadsheet-error-message-color;
            font-size: $spreadsheet-name-error-message-font-size;
          }

          & .e-unlock-range-container {
            .e-unlock-range-field {
              padding-top: $spreadsheet-protection-unlock-range-field-padding-top;
            }

            @if ($skin-name == 'Material3') {
              .e-unlock-range-inputs {
                .e-unlock-range-field:nth-of-type(2) {
                  padding-top: 20px;
                }
              }
            }

            .e-unlock-range-actions {
              padding: $spreadsheet-protection-unlock-range-action-padding;
            }

            .e-unlock-text {
              padding-top: $spreadsheet-protection-unlock-text-padding-top;
              padding-bottom: $spreadsheet-protection-unlock-text-padding-bottom;
            }
          }

          & .e-sheet-options-container {
            .e-sheet-options-header {
              font-family: $spreadsheet-protection-sheet-option-font-family;
              font-size: $spreadsheet-protection-sheet-option-font-size;
              font-weight: $spreadsheet-protection-sheet-option-font-weight;
              line-height: $spreadsheet-protection-sheet-option-line-height;
              color: $spreadsheet-protection-sheet-option-font-color;
              padding-top: $spreadsheet-protection-sheet-option-padding-top;
              padding-bottom: $spreadsheet-protection-sheet-option-padding-bottom;
            }
          }
        }
      }
      & .e-spreadsheet-unprotect-dialog {
        .e-dlg-header-content {
          padding-bottom: $spreadsheet-unprotect-padding-bottom;
        }
        .e-unprotect-password-field label {
          font-family: $spreadsheet-unprotect-label-font-family;
          font-weight: $spreadsheet-unprotect-label-font-weight;
          font-size: $spreadsheet-unprotect-label-font-size;
          line-height: $spreadsheet-unprotect-label-line-height;
          color: $spreadsheet-unprotect-label-font-color;
          padding-bottom: $spreadsheet-unprotect-label-padding-bottom;
        }
      }
      & .e-hyperlink-dlg.e-dialog .e-dlg-content .e-link-dialog .e-content .e-cont
      {
        @if $sheet-skin == 'highcontrast' or $sheet-skin == ''FluentUI'' {
          width: 275px;
        }
      }
      & .e-dlg-modal .e-dlg-content {
        .syntax-error-message {
          font-weight: $spreadsheet-font-weight-bold;
          font-size: $spreadsheet-font-size-18;
          color: $spreadsheet-syntax-error-message-color;
          margin-bottom: $spreadsheet-margin-10;
        }

        .syntax-rules {
          margin-left: $spreadsheet-margin-10;

          & ul {
            padding-left: $spreadsheet-padding-20;
          }
        }

        .e-warning-content {
          display: flex;
          gap: 10px;
          @if $sheet-skin =='material' or $sheet-skin =='Material3' {
            line-height: 24px;
          }
        }

        .e-warning-note {
          font-size: $spreadsheet-font-size-16;
        }
      }
    }

    & .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: $protect-dlg-password-header-margin-bottom;
            }
            @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-rtl{
        & .e-dlg-content .e-custom-dialog {
          & .e-input.e-dialog-input {
            margin-left: $custom-format-dlg-input-margin-right;
          }
        }
      }
    }

    & .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: $open-dlg-header-margin;
          padding-bottom: $open-dlg-header-padding-bttom;
        }
      }

      & .e-dlg-content .e-goto-alert-span {
        @if $skin-name != 'fluent2' and $skin-name != 'tailwind3' {
          font-weight: $find-dlg-alert-span-font-weight;
          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: $spread-border-radius-8;
        }
        @else 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-dlg-container {
      & .e-customsort-dlg.e-device .e-dlg-content .e-sort-listsection .e-input-group {
        min-width: 170px;
      }
      & .e-custom-format-dlg.e-device .e-dlg-content {
        display: block;
      }
    }

    & .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: $spread-border-radius-3;
      }
      @if $skin-name == 'bootstrap5.3' or $skin-name == 'tailwind3' {
        border-radius: $spread-dialog-listview-border-radius;
      }
      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: $protect-content-padding-top;
      }
      @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: $spread-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-sheet-with-review-panel {
        width: calc(100% - 268px);

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

    & .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: $filter-treeview-checkbox-border;
          }
        }
      }
      & .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-fill-before {
            text-decoration: inherit;
          }

          & .e-hyperlink {
            cursor: pointer;
          }

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

          &.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;
      }
    }

    &.sf-spreadsheet .e-header-panel {
      .e-selectall-container{
        height: 30px;
        padding-top: 1px;
      }
      .e-header-row {
        height: 30px;
        .e-header-cell {
          white-space: pre-line;
        }
      }
    }

    & .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: $header-cell-padding-top;
      }
    }

    & .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: $spread-border-radius-4;
        }
      }
    }

    & .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-panel-with-review-panel {
        width: calc(100% - 268px);
      }
    }

    & .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: $spread-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: $spreadsheet-ribbon-btn-ddb-margin-right;
            }
          }
        }
      }

      & .e-toolbar .e-btn:not(.e-tbar-btn) {
        @if $skin-name != 'tailwind3' {
          font-weight: $spread-toolbar-btn-font-weight;
        }
        @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: $spread-toolbar-btn-border;
          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: $spread-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-rtl {
        & .e-dropdown-btn {
          & .e-tbar-btn-text {
            float: right;
            text-align: right;
          }

          &.e-font-size-ddb {
            & .e-caret {
              text-align: left;
            }
          }
        }

        & .e-toolbar .e-toolbar-item .e-btn {
          & .e-chart-icon,
          & .e-chart-type-icon {
            padding: 0 0 0 5px;
            @if $skin-name == 'fluent2' {
              margin-right: -8px;
              margin-left: 3px;
            }
            @else {
              margin-right: -11px;
              margin-left: 5px;
            }
          }

          & .e-switch-row-column-icon {
            @if $skin-name != 'Material3' and $skin-name != 'fluent2' and $skin-name != 'tailwind3' {
              margin-right: 0;
              margin-left: 5px;
            }
          }

          & .e-addchart-icon {
            @if $skin-name != 'Material3' and $skin-name != 'fluent2' and $skin-name != 'tailwind3' {
              margin-right: -11px;
              margin-left: -5px;
            }
          }
        }
      }
    }

    & .e-comment-indicator {
      position: absolute;
      top: 0;
      right: 0;
      width: 9px;
      height: 9px;
      z-index: 1;

      &::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 9px;
        height: 5px;
        background-color: $spread-comment-indicator-color;
      }

      &::after {
        content: '';
        position: absolute;
        top: 4px;
        right: 0;
        width: 0;
        height: 0;
        border-left: 4px solid transparent;
        border-top: 4px solid $spread-comment-indicator-color;
      }
    }

    & .e-comment-container {
      position: absolute;
      max-width: 244px;
      max-height: 443px;
      border-radius: 4px;
      z-index: 6;
      background-color: $spread-comment-background-color;
      border: 1px solid $cell-border-color;
      transition: border-color .2s ease, border-width .2s ease;

      &:hover {
        border-color: $spread-comment-indicator-color;
      }

      &.active {
        border-color: $spread-comment-indicator-color;
        border-width: 2px;
      }

      &.e-thread-resolved:not(.active) {
        @if $skin-name == 'Material3' {
          background: $spread-comment-resolved-background-color;
        }
        @else {
          background-color: $spread-comment-resolved-background-color;
        }
        @if $skin-name =='material' or $skin-name =='material-dark' or $skin-name =='bootstrap' or $skin-name =='bootstrap-dark' or $skin-name =='bootstrap4' {
          .e-comment-body .e-list-item {
            background-color: $spread-comment-resolved-background-color;
          }
        }
      }
    }

    & .e-comment-avatar {
      display: flex;
      flex: 0 0 24px;
      align-items: center;
      justify-content: center;
      width: 24px;
      height: 24px;
      font-size: 12px;
      font-weight: 600;
      border-radius: 50%;
      color: $spread-comment-background-color;
    }

    .e-comment-cellref {
      display: inline-flex;
      align-items: center;
      height: 16px;
      font-family: 'Segoe UI';
      font-weight: normal;
      font-size: 12px;
      line-height: 16px;
      color: $spread-comment-title-color;
    }

    & .e-comment-header {
      display: flex;
      align-items: center;
      position: relative;
      padding: 8px 12px 8px 20px;

      .e-comment-avatar {
        position: absolute;
        top: 50%;
        transform: translate(-50%, -50%);
        left: 0;
      }

      .e-comment-header-wrap {
        flex: 1 1 auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        min-width: 0;

        .e-comment-title-wrap {
          flex: 1 1 auto;
          min-width: 0;

          .e-comment-title {
            font-family: 'Segoe UI';
            font-weight: 600;
            font-size: 14px;
            line-height: 20px;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
            max-width: 100%;
            color: $spread-comment-title-color;
          }
        }

        .e-comment-cancel {
          border-radius: 3px;
          padding: 6px 12px;
        }

        .e-comment-actions {
          display: flex;
          align-items: center;
          gap: $spread-comment-header-wrap-gap;

          .e-comment-menu {
            width: $spread-comment-menu-width;
            height: $spread-comment-menu-height;
            display: flex;
            align-items: center;
            justify-content: center;
            border: none;
            @if $skin-name == 'Material3' {
              box-shadow: none;
            }
          }

          .e-comment-reopen,
          .e-comment-delete {
            border-radius: 3px;
            padding: 6px 12px;
          }
        }
      }

      .e-comment-resolved {
        display: inline-flex;
        align-items: center;
        gap: 6px;

        .e-icons {
          font-weight: normal;
          font-size: 20px;
          color: $spread-comment-title-color;
        }

        .e-resolve-text {
          font-family: 'Segoe UI';
          font-weight: 600;
          font-size: 14px;
          line-height: 20px;
          color: $spread-comment-title-color;
        }
      }
    }

    & .e-comment-body {
      max-height: 260px;
      overflow-y: auto;

      .e-comment-item {
        display: block;
        margin: 0 6px;

        .e-comment-reply-row {
          display: flex;
          align-items: flex-start;
          gap: 8px;
          padding: 6px 0;

          .e-comment-avatar-wrap {
            flex: 0 0 24px;
            display: flex;
            align-items: center;
            justify-content: center;
          }

          .e-comment-reply-col {
            flex: 1 1 auto;
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 6px;

            .e-comment-header-wrap {
              display: flex;
              align-items: center;
              gap: 8px;
              width: 100%;
              line-height: 1.6;

              .e-comment-title-wrap {
                display: flex;
                align-items: center;
                gap: 8px;
                min-width: 0;
                flex: 1 1 auto;

                .e-comment-title {
                  font-family: 'Segoe UI';
                  font-weight: 600;
                  font-size: 14px;
                  white-space: nowrap;
                  color: $spread-comment-title-color;
                  overflow: hidden;
                  text-overflow: ellipsis;
                }
              }

              .e-reply-ddb {
                margin-inline-start: auto;
                background: transparent;
                border: none;
                padding: 0;
                width: 18px;
                height: 18px;
                @if $skin-name == 'Material3' {
                  box-shadow: none;
                }
              }
            }

            .e-comment-reply-content {
              display: flex;
              flex-direction: column;
              gap: 4px;
            }
          }
        }

        .e-comment-text {
          font-family: 'Segoe UI';
          font-weight: normal;
          line-height: 20px;
          font-size: 14px;
          color: $spread-comment-text-color;
          white-space: pre-wrap;
          word-break: break-word;
        }

        .e-comment-timestamp {
          font-family: 'Segoe UI';
          font-weight: normal;
          line-height: 16px;
          font-size: 12px;
          color: $spread-comment-timestamp-color;
        }

        .e-comment-edit-wrap {
          display: flex;
          flex-direction: column;
          gap: 8px;
          padding: 4px 3px;

          .e-comment-edit-input {
            background-color: transparent;
            color: $spread-comment-title-color;
            border-radius: 4px;
            padding: 6px 10px;
            font-size: 14px;
            line-height: 18px;
            resize: none;
            overflow: hidden;

            &.active {
              border-bottom: $spread-comment-input-border-bottom-focused;
            }
          }
        }
      }
    }

    & .e-comment-body.e-listview {
      border: none;

      .e-list-item {
        height: auto;
        padding: 0;
        margin: 4px;
        border-radius: 4px;
        @if $skin-name =='bootstrap' or $skin-name =='bootstrap4' or $skin-name =='bootstrap5' or $skin-name =='bootstrap5.3' or $skin-name =='bootstrap-dark' or $skin-name =='bootstrap5-dark' {
          border-bottom-color: transparent;
        }

        .e-reply-ddb {
          display: none;
          align-items: center;
          justify-content: center;
          background: transparent;
          border: none;
          padding: 0;
        }

        &.e-active,
        .e-ripple.e-active {
          background-color: transparent;
          border: 1px dotted;
          @if $theme-name == 'fluent2-highcontrast' or $theme-name == 'fluent2-highcontrast-lite' {
            border-color: $spread-comment-listview-active-border-color;
          }
          @if $skin-name == 'bootstrap5' or $skin-name == 'bootstrap5.3' or $skin-name == 'bootstrap4' {
            color: unset;
          }
        }

        &.e-hover {
          background-color: transparent;
        }
      }

      &.e-device-comment .e-list-item.e-active .e-reply-ddb {
        display: inline-flex;
      }

      &:not(.e-device-comment) .e-list-item {
        &:hover .e-reply-ddb,
        &:focus-within .e-reply-ddb {
          display: inline-flex;
        }
      }
    }

    & .e-comment-footer {
      padding: 12px;
      display: flex;
      flex-direction: column;
      gap: 8px;

      .e-comment-input {
        height: $spread-comment-input-height;
        background-color: transparent;
        color: $spread-comment-title-color;
        border-radius: 4px;
        padding: 6px 10px;
        font-size: 14px;
        line-height: 18px;
        resize: none;
        overflow: hidden;

        &.active {
          border-bottom: $spread-comment-input-border-bottom-focused;
        }
      }
    }

    & .e-comment-btn {
      display: flex;
      gap: 6px;
      justify-content: flex-end;

      .e-comment-post,
      .e-comment-cancel {
        border-radius: 3px;
        padding: $spread-comment-postbtn-padding;
      }
    }

    & .e-comment-divider {
      border: $spread-comment-border;
    }

    & .e-review-panel {
      position: absolute;
      top: 0;
      bottom: 0;
      inset-inline-end: 0;
      inline-size: 268px;
      border: $spread-comment-border;
      border-inline-start: none;
      background-color: $spread-comment-review-pane-background-color;
      z-index: 3;
      @if $skin-name == 'Material3' {
        background: $spread-comment-review-pane-background-color;
      }
      @else {
        background-color: $spread-comment-review-pane-background-color;
      }

      .e-review-wrap {
        display: flex;
        flex-direction: column;
        height: 100%;

        .e-review-header {
          padding: 10px;
          border-bottom: $spread-comment-border;

          .e-review-header-wrap1 {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;

            .e-review-title {
              font-weight: 600;
              font-size: 16px;
              color: $spread-comment-review-title-color;
            }

            .e-review-close {
              border-radius: 3px;
              padding: 6px 12px;
            }
          }

          .e-review-header-wrap2 {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            margin-top: 10px;
            .e-review-new,
            .e-review-filter {
              @if $skin-name == 'Material3' {
                box-shadow: none;
              }
            }
          }
        }

        .e-review-body {
          flex: 1 1 auto;
          min-height: 0;
          overflow: auto;

          .e-review-empty {
            padding: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
          }

          .e-review-thread {
            padding: 8px 12px;

            .e-review-thread-host {
              width: 100%;
            }
          }

          .e-pane-container {
            position: static;
            max-height: 443px;
            border-radius: 4px;
            background-color: $spread-comment-background-color;
            border: 1px solid $cell-border-color;
            transition: border-color .2s ease, border-width .2s ease;

            &:hover {
              border-color: $spread-comment-indicator-color;
            }

            &.active {
              border-color: $spread-comment-indicator-color;
              border-width: 2px;
            }

            &.e-thread-resolved:not(.active) {
              @if $skin-name == 'Material3' {
                background: $spread-comment-resolved-background-color;
              }
              @else {
                background-color: $spread-comment-resolved-background-color;
              }
              @if $skin-name =='material' or $skin-name =='material-dark' or $skin-name =='bootstrap' or $skin-name =='bootstrap-dark' or $skin-name =='bootstrap4' {
                .e-comment-body .e-list-item {
                  background-color: $spread-comment-resolved-background-color;
                }
              }
            }
          }

          .e-pane-container.e-thread-draft {
            margin: 10px;
          }
        }
      }

      .e-review-body.e-listview {
        border: none;

        .e-list-item {
          height: auto;
          padding: 0;

          &.e-active,
          .e-ripple.e-active {
            background-color: transparent;
          }

          &.e-hover {
            background-color: transparent;
          }
        }
      }
    }

    &.e-rtl {
      .e-comment-indicator {
        left: 0;
        right: auto;

        &::before {
          left: 0;
          right: auto;
        }

        &::after {
          left: 0;
          right: auto;
          border-right: 4px solid transparent;
          border-left: none;
        }
      }

      .e-comment-header {
        padding: 8px 20px 8px 12px;

        .e-comment-avatar {
          left: auto;
          right: 0;
          transform: translate(50%, -50%);
        }
      }

      .e-review-panel {
        border-inline-start: none;
        border-inline-end: $spread-comment-border;
      }
    }

    &.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 {
      position: relative;

      & .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-rtl{
        float: left;
      }

      .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' and $skin-name !='material-dark' {
          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: $validation-dlg-content-input-margin-top;
            }
            @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: $validation-dlg-content-footer-clearall-margin-left;
        }
      }

      &.e-rtl{
        & .e-validation-dlg {
          & .e-allowdata {
            & .e-allow {
              padding-right: 0;
              padding-left: $validation-dlg-content-padding;
            }

            & .e-data {
              padding-right: $validation-dlg-content-padding;
              padding-left: 0;
            }
          }

          & .e-values {
            & .e-minimum {
              padding-right: 0;
              padding-left: $validation-dlg-content-padding;
            }

            & .e-maximum {
              padding-right: $validation-dlg-content-padding;
              padding-left: 0;
            }
          }
        }

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

    & .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: $hyperlink-dlg-content-text-margin-top;
                }
                @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-hyperlink-dlg.e-dialog.e-rtl,
    .e-edithyperlink-dlg.e-dialog.e-rtl {
      & .e-dlg-content {
        & .e-link-dialog {
          & .e-content {
            & .e-cont {
              margin: $hyperlink-dlg-content-margin-rtl;
              & .e-refcont {
                margin: $hyperlink-dlg-refcont-margin-rtl;
              }
            }
          }
        }
      }
    }

    & .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: $find-dlg-content-padding-top;
        }
        & .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;
            padding-right: 12px;
          }
          @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-rtl{
        & .e-dlg-content {
          & .e-findnreplace-casecheckbox {
            @if $skin-name != 'fluent2' {
              padding-right: 0;
              padding-left: 12px;
            }
          }
        }
      }
    }

    & .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: $pwd-alert-span-padding-top;
          }
          @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: $spread-dialog-label-margin-bottom;
              }
              @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;
      }
      @if $skin-name == 'bootstrap5' {
        margin-bottom: 7px;
        width: 19px;
      }

      &: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: $spreadsheet-filter-btn-border;
      }
      @if $skin-name == 'fluent2' {
        height: 17px;
      }

      &.e-rtl{
        float: left;
        margin-right: 0;
        margin-left: -1px;
      }
    }

    &.sf-spreadsheet {
      .e-contextmenu-container ul .e-menu-item .e-caret {
        margin-right: 24px;
        @if $skin-name == 'fluent2' or $skin-name == 'fluent2-dark' or $skin-name == 'bootstrap5' {
          line-height: 36px;
          padding: 0;
        }
        @if $skin-name == 'tailwind3' or $skin-name == 'tailwind3-dark' {
          line-height: 40px;
          padding: 0;
        }
      }
      .e-filter-icon {
        @if $skin-name == 'fluent2'{
          line-height: 14px !important;/* stylelint-disable-line declaration-no-important */
        }
      }
      .e-delete-dialog{
        display: flex;
        gap: 10px;
      }
      .e-spreadsheet-delete-warning{
        font-size: $spreadsheet-name-delete-warning-font-size;
      }
      .e-col-header-row.e-header-cell.e-highlight,
      .e-rowhdr-table .e-header-cell.e-highlight {
        border-right-color: $spreadsheet-hdr-selection-border-color;
      }

      .e-resize-cursor {
        cursor: col-resize;
        height: 100%;
        position: absolute;
        top: 0;
        right: 0;
        width: 4px;
      }

      .e-resize-cursor.e-device {
        width: 12px;
      }

      .e-sheet-panel .back_content {
        & .axis {
          position: absolute;
          background-color: rgba(231, 224, 226);
          z-index: 0;
        }

        & .vaxis {
          width: 0;
          border-right: $cell-border-color;
          border-style: solid;
          border-width: 0 1px 1px 0;
        }

        & .haxis {
          height: .5px;
        }
      }

      .e-sheet-panel {
        & .e-resize-helper{
          position: absolute;
          border-left: 2px solid;
          z-index: 2;
        }
        & .e-resizer-handle {
          width: 8px;
          height: 8px;
          border-radius: $spread-border-radius-4;
        }
      }

      .e-sheet-tab-panel .e-tab {
        position: unset;
      }

      .e-ribbon-tab-item .e-ribbon-group:last-child::after {
        border-right: none !important; /* stylelint-disable-line declaration-no-important */
      }

      .e-table tr .e-cell.e-center-align {
        text-align: center;
      }

      .e-excelfilter .e-contextmenu-container.e-sfcontextmenu {
        display: inline-block;
        position: relative;
        width: 100%;
      }

      .e-excelfilter .e-searchcontainer {
        padding-top: 4px;
        padding-left: 6px;
        padding-right: 24px;
      }

      .e-excelfilter .e-contextmenu-container.e-sfcontextmenu .e-ul {
        position: absolute;
        max-height: 360px;
        overflow-y: auto;
        overflow-x: hidden;
        scrollbar-width: thin;
      }

      .e-excelfilter.e-dialog .e-dlg-content {
        padding-right: 0;
      }

      .e-excelfilter .e-dlg-content {
        overflow: visible;
        padding: 0;
      }

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

    &.e-rtl {
      &:not(.e-mobile-view) .e-formula-bar-panel {
        & .e-name-box.e-input-group.e-control-wrapper.e-ddl.e-name-box {
          & input.e-input {
            padding: $define-name-input-padding-rtl;
          }
          @if $skin-name != 'bootstrap4' {
            & .e-input-group-icon {
              @if $skin-name == 'Material3' {
                margin-right: 0;
                margin-left: 5px;
              }
            }
          }
        }

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

        & .e-drop-icon {
          float: right;
          margin-right: 0;
          margin-left: $expand-icon-margin;
        }
      }

      & .e-sheet-tab-panel {
        & .e-sheets-list.e-rtl {
          margin-left: 8px;
          margin-right: 0;
        }

        & .e-sheet-tab.e-tab.e-rtl {
          & .e-scroll-nav.e-scroll-left-nav {
            left: 40px;
            right: auto;
          }

          & .e-hscroll-bar {
            @if $skin-name == 'fluent2' {
              margin-right: -28px;
            }
            @else {
              margin-right: -40px;
            }
            margin-left: 40px;
            & .e-hscroll-content {
              display: block;
            }
          }

          & .e-tab-header .e-toolbar-items {
            border-left-width: 0;
            @if $skin-name != 'tailwind3' {
              border-right: $spreadsheet-border;
            }
            @if $skin-name == 'bootstrap5.3' {
              border-right: $spreadsheet-outline-border;
            }

            & .e-toolbar-item {
              border-right-width: 0;
              @if $skin-name == 'bootstrap4' or $skin-name == 'bootstrap' {
                border-left-width: 1px;
                border-left-color: $spreadsheet-border-color;
              }
              @else {
                @if $skin-name != 'tailwind3' {
                  border-left: $spreadsheet-border;
                }
                @if $skin-name == 'bootstrap5.3' {
                  border-left: $spreadsheet-outline-border;
                }
              }
            }
          }
        }

        &:not(.e-mobile-view) .e-aggregate-list {
          margin-left: 0;
          margin-right: auto;
        }
      }
    }
  }

  .e-file-input {
    position: fixed;
    left: -100em;
    height: 1px;
    width: 1px;
  }

  .e-spreadsheet-palette-item{
    height: auto !important; /* stylelint-disable-line declaration-no-important */
    padding: 0 !important; /* stylelint-disable-line declaration-no-important */
  }
  .e-ribbon-overflow-target .e-ribbonoverflow {
    &.e-ribbon-item{
      @if $skin-name == 'bootstrap5' or  $skin-name == 'tailwind3' or $skin-name == 'FluentUI' {
        height: 37px !important; /* stylelint-disable-line declaration-no-important */
      }
      @else if $skin-name == 'highcontrast' {
        height: 40px !important; /* stylelint-disable-line declaration-no-important */
      }
    }

    .e-bold-icon::before {
      @if $skin-name == 'highcontrast' {
        content: '\eb77';
      }
      @else {
        content: '\e737';
      }
    }

    .e-italic-icon::before {
      @if $skin-name == 'highcontrast' {
        content: '\eb99';
      }
      @else {
        content: '\e75a';
      }
    }

    .e-underline-icon::before {
      @if $skin-name == 'highcontrast' {
        content: '\ebf0';
      }
      @else {
        content: '\e82f';
      }
    }

    .e-line-through-icon::before {
      @if $skin-name == 'highcontrast' {
        content: '\ebf1';
      }
      @else {
        content: '\e758';
      }
    }

    .e-font-color::before {
      @if $skin-name == 'highcontrast' {
        content: '\e273';
      }
      @else {
        content: '\e79f';
      }
    }

    .e-fill-color::before {
      @if $skin-name == 'highcontrast' {
        content: '\ebf2';
      }
      @else {
        content: '\e783';
      }
    }

    .e-wrap-icon::before {
      @if $skin-name == 'highcontrast' {
        content: '\e824';
      }
      @else {
        content: '\e7ce';
      }
    }

    .e-btn {
      font-weight: normal;
      @if $skin-name == 'highcontrast' {
        &:not(.e-tbar-btn):not(.e-font-list) {
          padding: 2px 7px;
        }
      }
      @else if $skin-name == 'bootstrap5' {
        padding: 4px 7px;
      }
      @else if $skin-name == 'Material3' {
        &:not(.e-tbar-btn):not(.e-font-list) {
          padding: 4px 10px 4px 7px;
        }
      }
      @else if $skin-name == 'tailwind3' {
        &:not(.e-tbar-btn) {
          padding: $spreadsheet-ribbon-simplified-mode-context-menu-button-padding;
        }
      }
      @else if $skin-name == 'fluent2'{
        &:not(.e-tbar-btn):not(.e-font-list) {
          padding: 8px 7px;
        }
      }
    }

    .e-font-list {
      @if $skin-name == 'Material3' {
        box-shadow: none;
        padding: 5px 7px;
      }
    }

    .e-split-btn-wrapper {
      @if $skin-name == 'Material3' {
        box-shadow: none;
      }
    }

    .e-font-list .e-caret {
      @if $skin-name == 'Material3' {
        margin-bottom: 2px;
      }
    }

    .e-dropdown-btn.e-color-picker {
      @if $skin-name == 'highcontrast' or $skin-name == 'bootstrap5' {
        margin-left: 0;
      }
    }

    .e-colorpicker-text {
      padding-left: 2px;
    }

    .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-btn-wrapper .e-split-btn.e-color-picker {
      padding-left: 8px;
      padding-right: 32px;
      width: 100%;
      font-weight: $spreadsheet-ribbon-simplified-mode-btn-font-weight;
    }

    .e-split-btn-wrapper {
      .e-split-btn.e-color-picker {
        padding-left: 8px;
        padding-right: 7px;
      }
      .e-split-btn,
      .e-dropdown-btn.e-color-picker {
        border-color: rgba(0, 0, 0, 0);
        box-shadow: none;
      }
    }
    .e-dropdown-btn .e-caret {
      transform: rotate(-90deg);
    }
  }

  .e-ribbon-group-overflow-ddb .e-ribbon-overflow-target{
    #horizontalAlignmentGroup_header,
    #verticalAlignmentGroup_header {
      display: block;
    }
  }

  .e-sheets-list .e-dropdown-menu,
  .e-font-list .e-dropdown-menu,
  .e-numformat-ddb .e-dropdown-menu,
  .e-borders-ddb .e-border-selector .e-menu {
    max-height: 342px;
    overflow-y: auto !important; /* stylelint-disable-line declaration-no-important */
    overflow-x: hidden !important; /* stylelint-disable-line declaration-no-important */
    scrollbar-width: thin;
  }

  .sf-spreadsheet.formula-suggestions-container {
    margin-top: 4px !important; /* stylelint-disable-line declaration-no-important */
  
    .formula-item .e-formula-description {
      display: none;
      font-size: $spreadsheet-formula-suggession-containter-font-size;
      white-space: normal;
      overflow-wrap: break-word;
      word-wrap: break-word;
      word-break: break-word;
    }

    .formula-item:hover .e-formula-description,
    .e-list-item.e-item-focus .formula-item .e-formula-description{
      display: inline-block;
      max-width: 100%;
      text-indent: 0;
      line-height: 12px;
      padding-left: 8px;
    }

    .e-list-item:not(:hover) .e-formula-description{
      display: none;
    }

    .formula-item {
      display: flex;
      white-space: nowrap;
      line-height: inherit;
      align-items: center;
    }
  }

  .e-dialog .e-xlfl-table .e-xlfl-col {
    width: 50%;
  }

  .e-dropdown-popup.e-ribbon-dropdown-group-button {
    #horizontalAlignmentGroup_grpbtn.e-btn-group .e-btn.e-ribbon-group-button {
      border: none;

      @if $skin-name != 'highcontrast' {
        border-radius: $spread-border-radius-4;
      }
    }
    #verticalAlignmentGroup_grpbtn.e-btn-group .e-btn.e-ribbon-group-button {
      border: none;

      @if $skin-name != 'highcontrast' {
        border-radius: $spread-border-radius-4;
      }
    }
    #horizontalAlignmentGroup_header,
    #verticalAlignmentGroup_header {
      display: none;
    }
  }

  .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-item.e-number-format {
        & .e-numformat-text {
          width: $spreadsheet-numformat-text-width;
          & .e-numformat-preview-text {
            float: right;
            padding-left: $spreadsheet-padding-20;
          }

          & .e-menu-icon {
            @if $skin-name !='fluent2' {
              padding: .1px;
            }
          }
        }
      }

      & .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-file-menu.e-rtl ul .e-menu-item div {
      & .e-extension {
        margin-left: 0;
        margin-right: auto;
        padding-left: 0;
        padding-right: $menu-extension-padding;
        @if $skin-name == 'fluent2' {
          float: left;
        }
      }
    }

    & .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: $cf-iconsets-rating-padding;
              }
            }
          }
        }
      }
    }

    &.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: $chart-menu-column-cont-margin;
            }

            & .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: $chart-menu-pie-cont-margin;
            }

            & .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: $chart-menu-line-cont-margin;
            }

            & .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: $chart-menu-scatter-margin;
              }
              @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-ddl-footer {
      .e-name-manager-footer {
        border-top: $spreadsheet-namerange-footer-border;

        .e-name-manager-button {
          border: none;
          box-shadow: none;
          overflow: hidden;
          text-overflow: ellipsis;
          width: 130px;
          @if ($skin-name == 'bootstrap5.3' or $skin-name == 'bootstrap5' or $skin-name == 'bootstrap4' or $skin-name == 'bootstrap' ) {
            background-color: rgba(0, 0, 0, 0);
            color: $spreadsheet-unprotect-label-font-color;
          }
        }
      }
    }
  }

  .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-aggregate-list.e-flat {
      overflow: hidden;
      text-overflow: ellipsis;
    }
  }

  .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: $spreadsheet-sort-casecheckbox-margin-left;
      }
    }

    & .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: $spreadsheet-sort-template-item-border;
        }

        &: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: $spreadsheet-sort-dlg-delete-padding-left;
        margin-right: $spreadsheet-sort-dlg-delete-margin-right;
      }

      &::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;
      }
    }
  }

  /* Border selector menu container for Blazor Spreadsheet */
  .e-menu-container.e-border-selector {
    .e-menu-item {
      display: flex;
      align-items: center;

      &[id ^= 'LineStyle'] {
        &::after {
          content: '';
          width: $spreadsheet-border-preview-line-width;
        }
      }

      @for $i from 1 through list.length($ids) {
        &[id="#{list.nth($ids, $i)}"]::after {
          border-bottom-style: list.nth($border-style-collection, $i);
          border-bottom-width: list.nth($border-width-collection, $i);
        }
      }

      &[id = 'borderColorPicker'] {
        height: $spreadsheet-border-auto-width;
        line-height: $spreadsheet-ribbon-simplified-mode-border-radius;
        padding: $spreadsheet-ribbon-simplified-mode-border-radius;
      }
    }
    
    /* stylelint-disable */
    ul.e-menu-parent.e-ul:has(div.e-border-colorpicker) {
      min-width: $spreadsheet-border-menu-min-width;
      overflow: visible;
      padding: $spreadsheet-ribbon-simplified-mode-border-radius;
      width: $spreadsheet-border-auto-width !important;
    }
    /* stylelint-enable */
  }
}
