/*
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

.notebookContent {
  padding-top: 36px;
}

.revision  {
  max-width: 250px;
  margin-bottom: 0 !important;
}

.revision a {
  padding: 2px 10px !important;
}

.revision a span {
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.revisionName {
  cursor: default;
  padding: 1px 10px !important;
  max-width: 150px;
}

.revisionDate {
  font-size: 8px;
  color: DarkGrey;
  display: block;
}

.revisionName:hover,
.revisionName:focus,
.revisionName:active {
  background: transparent;
  border-color: #ccc;
}

.revisionTooltip {
  z-index: 10003;
}

.caretSeparator {
  height: 22px;
  line-height: 9px;
  width: 16px;
  padding-left: 3px !important;
}

.paragraph-col {
  margin: 0;
  padding: 0;
}

.paragraph {
  padding: 2px 8px 4px 8px;
  min-height: 32px;
}

.labelBtn {
  padding: .8em .4em .3em;
  font-size: 75%;
  font-weight: bold;
  line-height: 1;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  border-radius: .25em;
}

.note-jump {
  margin-top: 20px;
}

/*
  Add New Paragraph
 */

.new-paragraph{
  text-align: center;
  height: 7px;
  margin: -7px 2px 0 2px;
  cursor: pointer;
}

.new-paragraph:hover{
  background: #d3e5ea;
}

.new-paragraph:hover .plus-sign{
  display: block;
}

.new-paragraph-disable{
  color: lightgray !important;
  cursor: default !important;
}

.plus-sign{
  display: none;
  height: 7px;
  margin: 0;
  color: #3071a9;
  line-height: 5px;
  font-size: 11.5px;
}

.noteBtnfa {
    margin-left: 3px;
}

.disable {
  opacity: 0.6!important;
  pointer-events: none;
}

.navbar-fixed-top,
.navbar-fixed-top .dropdown-menu {
  z-index: 10002;
}

.noteAction {
  margin-left: 0px;
  margin-right: 0px;
  font-family: 'Roboto', sans-serif;
  background: white;
  position: fixed;
  top: 50px;
  width: 100%;
  min-height: 54px;
  z-index: 10001;
}

.noteAction h3 {
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 4px;
  padding-bottom: 4px;
}

.noteAction li {
  font-size: 12px;
  margin-bottom: 4px;
  color: #333333;
}

.notebook-actionBar-title {
  float: left;
  width: auto;
  max-width: 40%;
}

@media (max-width: 650px) {
  .notebook-actionBar-title {
    max-width: 100%;
  }
}

.form-control-title-input {
  height: 40px;
  font-size: 29px;
  line-height: 1.2;
  color: #555;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 0;
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
  margin-left: 1rem;
  padding-top: 5px;
}

.form-control-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  direction: rtl;
  unicode-bidi: plaintext;
  text-align: left;
  font-size: 29px;
  padding-top: 7px;
  padding-left: 14px;
}

.form-control-title-input:after, .form-control-title:after {
  content: "\200E‎";
}

.noOverflow {
    overflow: hidden !important;
}

/*
  Note Permissions Panel
*/

.permissions {
  background: white;
  padding: 10px 15px 15px 15px;
  margin-left: -10px;
  margin-right: -10px;
  font-family: 'Roboto', sans-serif;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid #E5E5E5;
}

.permissions .permissionsForm {
  list-style-type: none;
  background: #EFEFEF;
  padding: 10px 10px 10px 10px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
  border: 1px solid #E5E5E5;
}

.permissions .owners {
    width:60px;
    display: inline-block;
}

.permissions .readers {
    width:60px;
    display: inline-block;
}

.permissions .runners {
    width:60px;
    display: inline-block;
}

.permissions .writers {
    width:60px;
    display: inline-block;
}
/*
  Note Setting Panel
*/

.setting {
  background: white;
  padding: 10px 15px 15px 15px;
  margin-left: -10px;
  margin-right: -10px;
  font-family: 'Roboto', sans-serif;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid #E5E5E5;
}

.setting .interpreterSettings {
  list-style-type: none;
  background: #EFEFEF;
  padding: 10px 10px 10px 10px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
  border: 1px solid #E5E5E5;
}

.setting .interpreterSettings div div {
  margin: 2px 0 2px 0;
}

.setting .interpreterSettings div div {
  cursor: pointer;
}

.setting .modal-header {
  border: 0;
}

.setting .modal-body {
  border: 0;
}

.setting .modal-footer {
  border: 0;
}

.commit-container {
  padding: 10px 20px 6px 20px;
  font-weight: normal;
  word-wrap: break-word;
  white-space: initial;
}

/* overwrite bootstrap css for version control button */
.btn-group > .btn + .dropdown-toggle {
  padding-right: 5px;
  padding-left: 5px;
}

.setting-btn {
  position: relative;
  top: 2px;
  margin-right: 4px;
  cursor: pointer;
}

.cron-preset-container {
  padding: 10px 20px 0 20px;
  font-weight: normal;
  word-wrap: break-word;
  white-space: initial;
}

.cron-preset-container > div {
  margin: 10px 0;
}

.cron-preset {
  margin: 0px 2px;
  cursor: pointer;
}

.cron-info {
  margin: 5px;
  font-size: 11px;
}

.cron-preset.selected {
  color: #000;
  text-decoration: none;
  cursor: default;
}

.select2-container--default{
  min-width: 150px;
  max-width: 50%;
}

.inactivelink {
  color: darkgrey;
  cursor: default;
  pointer-events: none;
}

/** required to pin, unpin `noteAction` */
.noteAction.headroom {
  position: fixed;
  top: 50px;
  left: 0;
  right: 0;
  transition: all .2s ease-in-out;
}
.noteAction.headroom--unpinned { top: -100px; }
.noteAction.headroom--pinned { top: 50px; /** `noteAction` top */ }

.search-group input,
.search-group .input-group-addon,
.search-group .input-group-btn .btn {
  border-radius: 0;
}

#findInput.no-match {
  border-left: 1px solid red !important;
  border-top: 1px solid red !important;
  border-bottom: 1px solid red !important;
}

.search-group .after-input.no-match {
  border-right: 1px solid red !important;
  border-top: 1px solid red !important;
  border-bottom: 1px solid red !important;
}

#findInput.has-match {
  border-right: none;
}

.search-group .input-group-addon {
  min-width: 64px;
}

.search-group .input-group-btn .btn {
  border-left-width: 0;
}

.search-dropdown {
  border-radius: 0;
  padding: 0;
  border-width: 0;
}

.search-dropdown li {
  margin: 0;
}

.search-group input:focus {
  box-shadow: none;
  border-color: #ccc;
}

.search-group input {
  box-shadow: none;
}

.input-group-addon.after-input {
  background: #fff;
  color: #999;
  border-left: none;
  padding-left: 0;
}

.search-group:nth-child(even) {
  border-top-width: 0;
}

.new-paragraph:hover .plus-sign {
    display: block;
    background: #ECF7FD;
    height: 30px;
    text-align: center;
    position: absolute;
    width: calc(100% - 4px);
    line-height: 30px;
    top: -23px;
    border: 1px solid #DDDDDD;
    border-radius: 3px;
    box-shadow: rgba(0, 0, 0, 0.19) 0px 2px 4px;
}

.first-paragraph:hover .plus-sign {
    top: -14px;
    z-index: 100000;
}

.last-paragraph:hover .plus-sign {
    position: relative;
    top: -16px;
}

.notebook-form-title {
  padding: 3px;
}

/*Bootstrap uib-tooltip: max-width = 200px
  because of this the string can come out */
.tooltip-inner {
  max-width: none !important;
}
