/* Copyright (c) 2012-2015 The TagSpaces Authors. All rights reserved. Use of this source code
 * is governed by a AGPL3 license that can be found in the LICENSE file. */

/*==== General ====== */

.flexLayout {
  display: flex;
  display: -webkit-flex;
  display: -ms-flexbox;
}

.flexLayoutVertical {
  display: flex;
  display: -webkit-flex;
  display: -ms-flexbox;

  flex-direction: column;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
}

.flexMaxWidth {
  flex: 1 1 auto;
  -webkit-flex: 1 1 auto;
  -ms-flex: 1 1 auto;
}

.flexMaxHeight {
  flex: 1 1 auto;
  -webkit-flex: 1 1 auto;
  -ms-flex: 1 1 auto;
}

.fullWidth {
  width: 100%;
}

.extMainMenu {
  z-index: 1000;
  position: absolute;
  right: 15px;
  bottom: 15px;
}

.extMainMenu .dropdown-menu {
  max-height: 500px;
  overflow-y: auto;
}

@media print {
  .extMainMenu {
    display: none;
  }
}

.extMainMenu .dropdown-menu {
  margin-bottom: -50px;
  margin-right: 0px;
}

.roundButton {
  padding: 0;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  min-width: 50px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.12), 0 1px 2px 0 rgba(0, 0, 0, 0.24);
  color: white;
}

.roundButton:hover, .roundButton:active,  .roundButton:focus {
  border-radius: 50%;
  color: white;
}

.perspectiveMainMenuButton {
  background-color: #DCEB1E;
}

.viewerMainMenuButton {
  background-color: #42BEDB;
}

#mainContainer {
  display: flex;
  display: -webkit-flex;
  display: -ms-flexbox;

  flex-direction: row;
  -webkit-flex-direction: row;
  -ms-flex-direction: row;

  flex-wrap: nowrap;
  -webkit-flex-wrap: nowrap;
  -ms-flex-wrap: nowrap;

  justify-content: flex-start;
  -webkit-justify-content: flex-start;
  align-content: flex-start;
  -ms-flex-pack: start;

  align-items: stretch;
  -webkit-align-content: stretch;
  -ms-flex-line-pack: stretch;

  width: 100%;
  height: 100%;
  border-top: 1px solid lightgray;
}

.col1, .col2, .col3 {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}

.col1 .navbar, .col1 > .row2, .col1 > .row3, .col2 .navbar, .col2 .row3, .col3 .navbar {
	background-color: #F2F2F2 !important;
}

.col1 .navbar, .col2 .navbar, .col3 .navbar {
	padding-left: 5px;
}

#showTagGroups, #showLocations, #contactUs {
  width: 60px;
}

/*==== COL1 ====== */

.col1 {
  flex: 0 1 300px;
  -webkit-flex: 0 1 300px;
  -ms-flex: 0 1 300px;

  display: flex;
  display: -webkit-flex;
  display: -ms-flexbox;

  flex-direction: column;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;

  align-items: stretch;
  -webkit-align-content: stretch;
  -ms-flex-line-pack: stretch;

  height: 100%;
  min-width: 300px;
  box-shadow: 2px 0px 3px -1px rgba(0,0,0,0.2);
  z-index: 1010;
}

.col1 .row1 {
  flex: 0 1 80px;
  -webkit-flex: 0 1 80px;
  -ms-flex: 0 1 80px;

  min-height: 80px;

	box-shadow: 0px 7px 20px 0px rgba(242, 242, 242, 1);
	z-index: 1;
}

.col1 .row1 .navbar {
  box-shadow: none;
}

.col1 .row2 {
  flex: 1 1 auto;
  -webkit-flex: 1 1 auto;
  -ms-flex: 1 1 auto;

  overflow-y: auto;
  min-height: 0px;
}

.col1 .row3 {
  flex: 0 1 45px;
  -webkit-flex: 0 1 45px;
  -ms-flex: 0 1 45px;

  min-height: 45px;
	padding-left: 5px;
	padding-top: 5px;
	box-shadow: 0px -7px 20px 0px rgba(242, 242, 242, 1);
  z-index: 1;
}

/*==== COL2 ====== */

.col2 {
  flex: 1 1 40%;
  -webkit-flex: 1 1 40%;
  -ms-flex: 1 1 40%;

  display: flex;
  display: -webkit-flex;
  display: -ms-flexbox;

  flex-direction: column;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;

  align-items: stretch;
  -webkit-align-content: stretch;
  -ms-flex-line-pack: stretch;

  max-width: 100%;
}

.col2 .row1 {
  flex: 0 1 80px;
  -webkit-flex: 0 1 80px;
  -ms-flex: 0 1 80px;

  min-height: 80px;
  box-shadow: 0px 2px 2px 0px rgba(0,0,0,0.1);
  z-index: 1000;
}

.col2 .row2 {
  flex: 1 1 auto;
  -webkit-flex: 1 1 auto;
  -ms-flex: 1 1 auto;

  overflow-y: auto;
  min-height: 0px;
  border-right: solid 1px #ddd;
}

.col2 .row3 {
  flex: 0 1 50px;
  -webkit-flex: 0 1 50px;
  -ms-flex: 0 1 50px;

  min-height: 50px;
  box-shadow: 0px -5px 5px -2px rgba(0,0,0,0.1);
}

/*==== COL3 ====== */

.col3 {
  flex: 1 1 40%;
  -webkit-flex: 1 1 40%;
  -ms-flex: 1 1 40%;

  display: flex;
  display: -webkit-flex;
  display: -ms-flexbox;

  flex-direction: column;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;

  align-items: stretch;
  -webkit-align-content: stretch;
  -ms-flex-line-pack: stretch;

  max-width: 100%;
  /*min-width: 50%;*/
  z-index: 1030;
}

.col3 .row1 {
  flex: 0 1 auto;
  -webkit-flex: 0 1 auto;
  -ms-flex: 0 1 auto;

  min-height: 80px;
  box-shadow: 0px 2px 2px 0px rgba(0,0,0,0.1);
  z-index: 1;
}

.col3 .row1 nav {
  min-height: 80px;
  margin-bottom: 0;
}

.col3 .row2 {
  flex: 1 1 auto;
  -webkit-flex: 1 1 auto;
  -ms-flex: 1 1 auto;

  display: flex;
  display: -webkit-flex;
  display: -ms-flexbox;

  align-items: stretch;
  -webkit-align-content: stretch;
  -ms-flex-line-pack: stretch;

  align-content: stretch;
  -webkit-align-content: stretch;
  -ms-flex-line-pack: stretch;

  overflow-y: auto;
  min-height: 0px;
}

#tagsContainer {
    width: 100%;
    max-height: 55px;
    margin: 0;
}

#fileViewerMainToolbar {
  margin-top: -8px;
  padding-left: 0px;
  /*min-width: 190px;*/

  flex: 0 1 auto;
  /*-ms-flex: 0 1 190px;*/
}

#fileTags {
  overflow-y: auto;
  overflow-x: hidden;
}

/*==== Location Management ====== */

#locationName {
  text-align: left;
  max-width: 230px;
  text-overflow: ellipsis;
  overflow: hidden;
}

#locationSwitch {
  max-width: 100%;
  padding: 0 5px 0 5px;
}

#selectLocation {
  width: 100%;
  margin-left: 2px;
}

#locationsList {
  overflow-y: auto;
  max-height: 500px;
  width: 290px;
  margin-top: -40px;
  margin-left: 5px;
}

.openLocation {
  flex: 1 1 auto;
  -webkit-flex: 1 1 auto;
  -ms-flex: 1 1 auto;
  text-align: left;
  line-height: 35px;
  max-width: 250px;
  text-overflow: ellipsis;
  overflow: hidden;
}

.editLocation {
  flex: 0 1 50px;
  -webkit-flex: 0 1 50px;
  -ms-flex: 0 1 50px;
}
