// import diff2html styles
@import '~diff2html/bundles/css/diff2html.min.css';

/**
 * for table with handsontable modal button
 */
.editable-with-handsontable {
  position: relative;

  .handsontable-modal-trigger {
    position: absolute;
    top: 11px;
    right: 10px;
    padding: 0;
    font-size: 16px;
    line-height: 1;
    vertical-align: bottom;
    background-color: transparent;
    border: none;
    opacity: 0;
  }

  .page-mobile & .handsontable-modal-trigger {
    opacity: 0.3;
  }

  &:hover .handsontable-modal-trigger {
    opacity: 1;
  }
}

/**
 * for drawio with drawio iframe button
 */
.editable-with-drawio {
  .drawio-iframe-trigger {
    top: 11px;
    right: 10px;
    z-index: 14;
    font-size: 12px;
    line-height: 1;
  }
}

.card.grw-page-status-alert {
  $margin-bottom: $grw-navbar-bottom-height + 10px;

  box-shadow: 0px 2px 4px #0000004d;
  opacity: 0.9;

  @include media-breakpoint-down(sm) {
    margin: 0 10px $margin-bottom;

    .grw-card-label-container {
      text-align: center;
    }
    .grw-card-btn-container {
      text-align: center;

      .btn {
        @include button-size($btn-padding-y-lg, $btn-padding-x-lg, $btn-font-size-lg, $btn-line-height-lg, $btn-border-radius-lg);
      }
    }
  }

  @include media-breakpoint-up(md) {
    width: 700px;
    margin: 0 auto $margin-bottom;

    .card-body {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .grw-card-label-container,
    .grw-card-btn-container {
      margin: 0;
    }
  }
}
