/* Copyright (C) 2019 Monomax Software Pty Ltd
 *
 * This file is part of Dnote.
 *
 * Dnote is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Dnote is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with Dnote.  If not, see <https://www.gnu.org/licenses/>.
 */

@import '../../App/theme';
@import '../../App/responsive';
@import '../../App/variables';
@import '../../App/rem';
@import '../../App/font';

.wrapper {
  display: flex;
  background: white;
  height: 100%;
  flex-direction: column;
}

.main {
  display: flex;
  flex-grow: 1;
  align-items: stretch;
  min-height: 0;
}

.pane {
  display: flex;
  flex-grow: 1;
  flex-basis: 50%;
}

.pane-content {
  padding: rem(12px) rem(24px);
}

.actions {
  border-bottom: 1px solid $border-color;
  padding: 0 rem(12px);
  display: flex;
  justify-content: space-between;
  position: relative;
  flex-direction: column;

  @include breakpoint(md) {
    position: inherit;
  }
}

.action {
  height: 100%;
}

.action-top {
  display: flex;
  align-items: center;
  min-height: rem(56px);
}

.action-bottom {
  min-height: rem(52px);
  display: flex;

  @include overSidebarThreshold {
    display: none;
  }
}

.action-left {
  height: 100%;
  display: flex;
  align-items: center;

  @include overSidebarThreshold {
    display: none;
  }
}
.action-right {
  display: flex;
  flex-direction: row;
  flex-grow: 1;
  justify-content: flex-end;

  height: 100%;

  @include overSidebarThreshold {
    justify-content: space-between;
  }
}

.action-right-right {
  display: flex;
  align-items: center;
}

.action-heading {
  margin-left: rem(12px);
  margin-bottom: 0;
  @include font-size('large');
  color: $gray;
  text-transform: uppercase;
  font-weight: 600;
}

.desktop-book-selector {
  display: none;

  @include overSidebarThreshold {
    display: block;
  }
}
