$dialog-prefix: '.' + $css-prefix + 'dialog';

// #{$dialog-prefix} {
//   min-width: 440px;
//   &:not(#{$dialog-prefix}-quick) {
//     #{$dialog-prefix}-header {
//       --dialog-title-padding-bottom: 12px;
//       --dialog-title-padding-top: 12px;
//       --dialog-title-border-color: var(--color-line1-1);
//     }
//     #{$dialog-prefix}-body {
//       --dialog-content-padding-top: 16px;
//     }
//     #{$dialog-prefix}-footer {
//       --dialog-footer-border-color: var(--color-line1-1);
//       --dialog-footer-padding-top: 12px;
//       --dialog-footer-padding-bottom: 12px;
//     }
//   }
// }

.theme-yunxiao-v5,
.theme-yunxiao,
.theme-yunxiao-dark,
:not(.theme-hybridcloud),
:not(.theme-hybridcloud-dark){
  #{$dialog-prefix} {
    &#{$dialog-prefix}-large {
      min-width: 800px;
    }
    &#{$dialog-prefix}-with-sidebar #{$dialog-prefix}-body {
      overflow-y: hidden !important;
      display: flex;
      #{$dialog-prefix}-sidebar {
        width: 160px;
        margin: -16px 20px -16px -20px;
        padding: 16px 20px;
        border-right: 1px solid var(--color-line1-1, #e8e8e8);

        .#{$css-prefix}tabs-wrapped.#{$css-prefix}tabs-left > .#{$css-prefix}tabs-bar {
          float: initial; // hack sidebar内的竖向Tab，以撑满Sidebar
        }
      }
      .#{$css-prefix}-content {
        width: calc(100% - 120px);
        overflow-y: scroll;
        margin: -16px -20px;
        padding: 16px 20px;
      }
    }
  }
}

.theme-yunxiao-v5,
.theme-yunxiao,
.theme-yunxiao-dark,
:not(.theme-hybridcloud),
:not(.theme-hybridcloud-dark){
  #{$dialog-prefix} {
    min-width: 440px;
    &:not(#{$dialog-prefix}-quick:not(.quick-show)) {
      #{$dialog-prefix}-header {
        --dialog-title-padding-bottom: 12px;
        --dialog-title-padding-top: 12px;
        --dialog-title-border-color: var(--color-line1-1);
      }
      #{$dialog-prefix}-body {
        --dialog-content-padding-top: 16px;
      }
      #{$dialog-prefix}-footer {
        --dialog-footer-border-color: var(--color-line1-1);
        --dialog-footer-padding-top: 12px;
        --dialog-footer-padding-bottom: 12px;
      }
    }
  }
}

.theme-yunxiao-v5,
.theme-yunxiao,
.theme-yunxiao-dark,
:not(.theme-hybridcloud),
:not(.theme-hybridcloud-dark) {
  .next-dialog-message.message-severe-alert {
    .next-icon {
      color: var(--message-error-color-icon-addon, #E84738);
    }
  }
  .next-dialog-message.next-message.next-addon .next-message-content {
    line-height: 1.5;
  }
  .next-dialog-header {
    font-weight: var(--font-weight-medium, 500);
  }
}
