/*
 * Basic values for all elements
 *
 */

* {
    margin: 0;
    font-family: sans-serif;
    color: rgb(90,90,90);
    font-size: 14px;
    /* border: 1px dotted red; */
}

html, body {
    height: 100%;
}

a.anchor {
    display: block;
    position: relative;
    visibility: hidden;
}

h1 {
    font-size: 18px;
}

h2, h3 {
    font-size: 16px;
}

h3 {
    font-weight: normal;
}

h1, h2, h3, p {
    margin-top: 1em;
    margin-bottom: 1em;
}

form {
  /* background: #fefefe; */
  padding: 5px;
}

/*
 * Header
 *
 */

#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;

    border-bottom: 6px solid;
    height: 80px;
}

#header > div {
    position: absolute;
}

/* Logo */

#header #header-logo {
    top: 0;
    left: 0;
    padding: 8px 0 0 8px;
    background-repeat: no-repeat;
    background-origin: content-box;
    background-size: auto 99%;
}

#header #header-logo > a {
  text-decoration: none;
  font-weight: bold;
  font-size: 24pt;
  margin-left: 150px;
}

/* Actions */

#header #header-actions {
    left: 30px;
    bottom: 2px;
}

#header #header-actions > a.page {
    font-weight: bold;
    text-decoration: none;

    padding: 5px 8px 2px;
    margin-right: 1px;

    border-radius: 8px 8px 0 0;
    border: 1px solid;

    display: inline;
}

/* Info */

#header #header-info {
    top: 0;
    right: 0;
}

#header #header-info > a.page {
    margin: 15px 5px;
    display: inline;
}

#header #header-info > a.page.profile {
  font-weight: bold;
}

#header #header-info a.page.logout {
  display: inline-block;
  height: 35px;
  width: 40px;
  background-image: url('../img/logout-dark.png');
  vertical-align: middle;
  background-repeat: no-repeat;
}
#header #header-info a.page.logout > span {
display: none;
}

/* Language selection */

#header #languages {
    bottom: 0;
    right: 15px;
}

#header #languages > a {
    width: 16px;
    height: 11px;
    display: inline-block;
    margin-left: 10px;
}

#header #languages span {
    display: none;
}

#header #languages > #de.active {
    background-image: url('../img/de.png');
}
#header #languages > #de.inactive {
    background-image: url('../img/de-bw.png');
}

#header #languages > #en.active {
    background-image: url('../img/gb.png');
}
#header #languages > #en.inactive {
    background-image: url('../img/gb-bw.png');
}

/*
 * Main
 *
 */

#main {
  margin: 60px 0 40px 0;
  padding: 5px 20px;

  min-height: 100%;
}

#main > div:first-child {
    margin-top: 10px;
}

#main .text-body {
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 10px;
}

#main .text-body > h1:first-child,
#main .text-body > h2:first-child,
#main .text-body > h3:first-child,
#main .text-body > h4:first-child {
    margin-top: 0;
}

/*
 * Footer
 *
 */

#footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;

  text-align: center;
  font-size: 10pt;
  border-top: 1px solid;
  padding-top: 3px;
}

#footer a {
  font-size: 10pt;
}

/*
 * Other
 *
 */

.info {
    background: #d5edf8;
    border: 2px solid #92cae4;
    color: #205791;
    padding: 10px;
    margin: 10px;
}

.error, .warning {
    background: #fbe3e4;
    border: 2px solid #fbc2c4;
    color: #8a1f11;
    padding: 10px;
    margin: 10px;
}

.success {
    background: #e6efc2;
    border: 2px solid #c6d880;
    color: #264409;
    padding: 10px;
    margin: 10px;
}

.remark {
    font-size:10pt;
    font-style: italic;
    padding-left: 120px;
}

.hidden {
  display: none;
}

.clickable {
  cursor: pointer;
}

.inline {
    display: inline;
}

.text-center {
    text-align: center;
}

/*
 * Actions
 *
 */

.action {
  display: inline-block;
}

.action.notext span {
  display: none;
}

.button {
  background-color: rgb(219,218,217);
  border-radius: 5px;
  border: 1px solid rgb(90,90,90);
  padding: 5px 15px;
}

/*
 * UI dialogs
 *
 */

.ui-icon.inline-icon {
    display: inline-block;
    position: relative;
    top: 2px;
    margin-right: 5px;
}

.ui-dialog-content label {
    display: block;
}

.config_block {
  padding: 5px;
}

.notifications-form {
    padding: 10px;
}

.notifications-form label{
    display: block;
}

/* user/file detail dialogs */

.ui-dialog .user-info *,
.ui-dialog .file-info * {
    vertical-align: top;
}
.ui-dialog .user-info tr,
.ui-dialog .file-info tr {
    margin-bottom: 5px;
    display: block;
    text-align: left;
}
.ui-dialog .user-info th,
.ui-dialog .file-info th {
    text-align: right;
    padding-right: 10px;
    width: 160px;
    font-weight: bold;
}

.ui-dialog .user-info .user-detail.notset {
    color: rgb(190,190,190);
}

/* Login */

#login-form input {
  display: block;
  width: 250px;
  margin: 5px auto;
}

#login-button {
  margin: 10px;
  padding: 5px;
}

.content-count .num {
  margin-right: 0.5ex;
}
.content-count .spacer {
  margin-right: 1ex;
}

.users.inactive {
  margin-top: 35px;
}

.role_select {
  margin-right: 10px;
}

.folder.readable > .header {
  background: yellow;
}

.folder.on_front > .header {
  background: green;
}

.folder.on_front.readable > .header {
  background: red;
}

.file-history > * {
  margin-right: 1ex;
}

.file-history > .what {
  display: inline-block;
  text-align: left;
  width: 50%;
}

.file-history > .who {
  font-style: italic;
  display: inline-block;
  width: 30%;
}

.plugin {
  border: 1px solid black;
  padding: 10px;
  margin: 5px;
}

.plugin > .name {
  font-weight: bold;
  font-size: 13pt;
}

.plugin > .description {
  font-style: italic;
  font-size: 10pt;
}

.plugin > .pages {
  margin-top: 1em;
  padding: 5px;
  border: 1px dotted black;
}

.plugin > table {
  margin-top: 1em;
}
.plugin > table td {
  padding: 5px;
}
.plugin > table th {
  padding: 5px;
  text-align: left;
  background: rgb(90,90,90);
  color: white;
}


.folder > .header > .child .file .progress-indicator {
    background-color: rgba(90, 90, 90, 0.5);
    bottom: 0;
    left: 0;
    position: absolute;
    top: 0;
    width: 0px;
}

.cm-entry > .action {
  position: relative;
  min-width: 300px;
  height: 30px;
  padding: 5px;
  border-radius: 5px;
}
.cm-entry > .action:hover {
  background-color: rgb(210,210,210);
}
.cm-entry > .action > img {
  position: absolute;
  left: 5px;
  height: 24px;
}

.cm-entry > .action > span {
  position: absolute;
  left: 35px;
  line-height: 30px;
  vertical-align: middle;
}

input:read-only {
  color: rgb(160, 160, 160);
}
