@import "../config";

.wall {
  top: 0;
  left: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.wall-box {
  width: 100%;
  height: calc(33.3333% - 1rem);
  overflow: hidden;
  border-bottom: solid 2px var(--input-border-color);
  position: relative;

  &:first-child {
    height: calc(33.3333% + 2rem);
  }

  &:not(:first-child) {
    .calendar-row, .calendar-header {
      .calendar-cell:first-child {
        display: none;
      }
    }
  }

  .calendar-row, .calendar-header {
    height: 100%;
    display: flex;
    flex-direction: column;
    line-height: 2rem;
  }

  .calendar-entry {
    top: 0 !important;
    margin-top: -0.5rem !important;
    bottom: 0 !important;
  }

  .calendar-entry::after {
    content: none;
  }

  .calendar-table-box {
    height: 100%;
  }

  .calendar-body {
    display: flex;
    width: calc(100vw - 9.6rem);
  }

  .calendar-row {
    width: 100%;
    flex-basis: 0;
    flex-grow: 1;
    flex-shrink: 1;
  }

  .calendar-cell {
    flex-basis: 0;
    flex-grow: 1;
    flex-shrink: 1;
    line-height: 2rem;
    width: 100% !important;

    &:first-child {
      padding-left: 0 !important;
      span {
        padding-left: 0.2rem;
        position: absolute;
        top: 0;
        left: 0;
      }
    }
  }

  .calendar-header {
    .calendar-cell {
      overflow: hidden;
      text-overflow: ellipsis;

      span {
        padding: 0 0.2rem;
      }
    }
  }
}

.wall-calendar {
  margin-top: 0 !important;
  height: 100% !important;
  width: calc(100% - 2.4rem);
  margin-left: 2.4rem;

  .calendar-table {
    overflow: hidden;
    padding: 0;
  }
}

.wall-name {
  position: absolute;
  left: 0;
  top: 0;
  width: 2.4rem;
  height: 100%;
  border-right: solid 1px var(--table-border-color);

  span {
    display: block;
    position: absolute;
    transform: rotate(-90deg);
    width: 10rem;
    line-height: 2.4rem;
    text-align: center;
    transform-origin: center;
    left: 50%;
    top: 50%;
    margin-left: -5rem;
    margin-top: -1.2rem;
  }
}