//External style files
@import "~bootstrap/scss/bootstrap";
@import "~react3l-ui-library/build/react3l.min.css";
@import "~antd/dist/antd.min.css";
// Internal style files
@import "./font";
@import "./design-system/design-system";
@import "./custom-antd";

@mixin box-shadow--popover {
  box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2), 0px 2px 10px rgba(0, 0, 0, 0.1);
}

// body
body {
  font-family: "IBM Plex Sans";
  font-weight: 400;
  color: var(--color-text);
  font-size: var(--text-base-size);
  background-color: #f4f4f4 !important;
}

.page-content {
  overflow-y: auto;
  margin-top: 121px;
  .page {
    &.page-master {
      height: calc(100% - 16px);
      background-color: var(--color-white);
      position: relative;
      .page-master__pagination {
        position: absolute;
        bottom: 0;
        width: 100%;
        background-color: white;
      }

      .page-master__info {
        padding: 16px 16px 24px 16px;
        .page-master__title {
          font-size: 20px;
          line-height: 24px;
        }
        .page-master__des {
          font-size: 14px;
          line-height: 16px;
          letter-spacing: 0.16px;
          color: var(--palette-gray-70);
        }
      }
      .page-master__view {
        .filter-title {
          white-space: nowrap;
        }
      }
      .page-master__all-actions {
        position: relative;
        .btn-filter {
          position: relative;
          &.btn--shadow {
            background-color: #f4f4f4 !important;
            @include box-shadow--popover();
            &:focus {
              outline: none;
            }
          }
        }
        .component__input-search__icon-box {
          margin: 3px 12px 0 12px;
        }
      }

      .page-master__content-table {
        .page-master__table {
          height: 100%;
          display: flex;
          flex-direction: column;
          justify-content: space-between;
        }
      }
      .page-master__filter-action-search {
        width: 100%;
        .component__input-search-container {
          width: 100%;
        }
      }
    }
    &.page-detail {
      height: calc(100% - 16px);
      background-color: var(--color-white);
      overflow: auto;
      .page-detail__title {
        font-weight: bold;
        font-size: 14px;
        line-height: 16px;
        color: #0d1821;
      }
      .form-item__container {
        .bg-white {
          background-color: var(--color-white);
        }
      }
    }
  }
  .app-footer {
    position: fixed;
    height: 40px;
    z-index: 2;
    background-color: var(--palette-gray-80);
    box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2), 0px 2px 10px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2),
      0px 2px 10px rgba(0, 0, 0, 0.1);
    bottom: 0;
    right: 0;
    left: 0;
  }
}
