@font-face {
  font-family: 'Icons';
  font-style: normal;
  font-weight: 900;
  src: url("fonts/fa-solid-900.woff2") format('woff2'),
       url("fonts/fa-solid-900.woff") format('woff');
}

@font-face {
  font-family: 'Icons';
  font-style: normal;
  font-weight: 400;
  src: url("fonts/fa-regular-400.woff2") format('woff2'),
       url("fonts/fa-regular-400.woff") format('woff');
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: local('Roboto'), local('Roboto-Regular'),
       url('fonts/roboto-v18-greek-ext_cyrillic-ext_cyrillic_greek_latin-ext_latin-regular.woff2') format('woff2'), // Chrome 26+, Opera 23+, Firefox 39+
       url('fonts/roboto-v18-greek-ext_cyrillic-ext_cyrillic_greek_latin-ext_latin-regular.woff') format('woff'); // Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+
}

@font-face {
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 400;
  src: local('Roboto Italic'), local('Roboto-Italic'),
       url('fonts/roboto-v18-greek-ext_cyrillic-ext_cyrillic_greek_latin-ext_latin-italic.woff2') format('woff2'), // Chrome 26+, Opera 23+, Firefox 39+
       url('fonts/roboto-v18-greek-ext_cyrillic-ext_cyrillic_greek_latin-ext_latin-italic.woff') format('woff'); // Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  src: local('Roboto Bold'), local('Roboto-Bold'),
       url('fonts/roboto-v18-greek-ext_cyrillic-ext_cyrillic_greek_latin-ext_latin-700.woff2') format('woff2'), // Chrome 26+, Opera 23+, Firefox 39+
       url('fonts/roboto-v18-greek-ext_cyrillic-ext_cyrillic_greek_latin-ext_latin-700.woff') format('woff'); // Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+
}

@font-face {
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 700;
  src: local('Roboto Bold Italic'), local('Roboto-BoldItalic'),
       url('fonts/roboto-v18-greek-ext_cyrillic-ext_cyrillic_greek_latin-ext_latin-700italic.woff2') format('woff2'), // Chrome 26+, Opera 23+, Firefox 39+
       url('fonts/roboto-v18-greek-ext_cyrillic-ext_cyrillic_greek_latin-ext_latin-700italic.woff') format('woff'); // Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+
}

html {
  font-size: 9pt;
}

body {
  margin: 0;
  color: #4f4f4f;
  background: #f1eeea;
  line-height: 1.5;
}

body, button, input, optgroup, select, textarea, .popover {
    font-family: Roboto, sans-serif;
}

a {
  text-decoration: none;
}

table.list {
  border: 1px solid #d0d0d0;
  border-spacing: 0;
  width: 100%;
  margin: 0;
}

table.list thead tr {
  background: #f1eeea;
}

table.list thead tr th {
  border-width: 1px;
  border-top: 0;
}

table.list tfoot tr {
  background: #f1eeea;
}

table.list tbody tr.selectable td {
  cursor: default;
}

table.list tbody tr.selectable:hover {
  background-color: #fef9e6;
}

table.list tbody tr td.empty-body {
  height: 150px;
  color: #f3a628;
  text-align: center;
  vertical-align: middle;
}

table.list tbody tr.deleted td {
  color: #999;
}

fieldset {
  margin-top: 10px;
}

legend {
  color: #909090;
  font-size: 1rem;
}

form .required input,
form .required select,
form .required textarea {
  background-color: #f0f9ff !important;
}

form input.error,
form select.error,
form textarea.error {
  background-color: #f5e3e3 !important;
}

table.list.tree td span.expando {
  cursor: pointer;
  padding: 0 2px;
}

table.list.tree td span.expando:before {
  content: "\f146";
  font-size: 1rem;
  font-weight: normal;
}

table.list.tree tr.expanded td span.expando:before {
  content: "\f0fe";
  font-size: 1rem;
  font-weight: normal;
}

table.list.tree td span.expando,
table.list.tree td span.spacer,
table.list.tree td span.level {
  display: inline-block;
}

table.list.tree td span.spacer {
  width: 16px;
}

.table,
.form-group {
  margin-bottom: .5rem;
}

.input-group-text,
.form-control:disabled,
.form-control[readonly] {
  background-color:  #f5f3f0;
}

.modal-dialog {
  max-width: 640px;
  margin: 10rem auto;
}

.col-sm-9 > input[type=checkbox] {
  margin-top: .4em;
}

input[type=radio] {
  vertical-align: middle;
}

/**** Font-icons ****/

.font-icon:before {
  font-size: 1.25em;
  display: inline-block;
  width: 1em;
  height: 1em;
  line-height: 1;
  font-family: 'Icons';
  font-style: normal;
  font-weight: 900;
  text-decoration: inherit;
  text-align: center;
  speak: none;
  font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

.font-icon.add:before {
  content: "\f067";
}

.font-icon.reset:before,
.font-icon.delete:before {
  content: "\f1f8";
}

.font-icon.edit:before {
  content: "\f303";
}

.font-icon.settings:before {
  content: "\f7d9";
}

.font-icon.search:before {
  content: "\f002";
}

.font-icon.logout:before {
  content: "\f011";
}

.font-icon.login:before {
  content: "\f007";
}

.font-icon.domain:before {
  content: "\f0ac";
}

.font-icon.password:before {
  content: "\f023";
}

.font-icon.prev:before {
  content: "\f104";
}

.font-icon.next:before {
  content: "\f105";
}

.input-group-text.font-icon {
  padding: 0 5px;
  text-decoration: none;
}

.font-icon-text:before {
  margin-right: .5em;
  font-size: 1em;
}

/**** Common UI elements ****/

#topmenu {
  text-align: right;
  height: 20px;
  padding: 0 5px;
  white-space: nowrap;
  background-color: #3a444e;
}

#topmenu > span {
  color: #aaa;
  font-size: 11px;
  padding-top: 2px;
  line-height: 20px;
}

#navigation {
  padding: 0 5px;
  text-align: right;
  height: 36px;
  z-index: 2;
  white-space: nowrap;
  background-color: #3a444e;
}

#task_navigation {
  margin: 0 5px;
  text-align: right;
  min-height: 2em;
  z-index: 2;
  white-space: nowrap;
}

#message {
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;
  height: 56px;
  z-index: 20;
}

#message div {
  opacity: .97;
  display: table;
}

#message.notice div {
  color: #3465a4;
  background: #c0e0ff;
}

#message.error div {
  color: #a40000;
  background: #edcccc;
}

#message div:before {
  font-size: 32px;
  margin: 12px 1.5rem;
}

#message.notice div:before {
  content: "\f05a";
}

#message.error div:before {
  content: "\f071";
}

#message div span {
  vertical-align: middle;
  display: table-cell;
  width: 99%;
}

#logo {
  position: absolute;
  top: 0px;
  left: 5px;
  cursor: pointer;
}

#content {
  min-height: 400px;
  padding: 15px 10px;
  background-color: #fff;
  border: 1px solid #d0d0d0;
  border-width: 1px 0 1px 0;
  display: flex;
}

#footer {
  margin: 5px;
  color: #666;
  font-size: 7pt;
  margin-bottom: 10px;
  clear: both;
}

#loading {
  position: absolute;
  display: none;
  top: 60px;
  left: 15px;
  width: 150px;
  height: 16px;
  font-size: 11px;
  line-height: 1.5;
  z-index: 1;
  white-space: nowrap;
}

#topmenu .logout {
  margin-right: 10px;
  color: white;
}

#topmenu .login {
  margin-right: 10px;
}

#topmenu .domain {
  margin-right: 10px;
}

#topmenu .domain:before {
  margin-right: 0;
}

#navigation ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

#navigation ul li {
  display: inline-block;
  font-weight: bold;
  padding: 0;
}

#navigation ul li a {
  display: inline-block;
  line-height: 36px;
  padding: 0 10px;
  text-decoration: none;
  color: #999;
}

#navigation ul li:hover {
  background: #505e6b;
}

#navigation ul li:hover a,
#navigation ul li.active a {
  color: #e1e2e3;
}

#task_navigation ul {
  list-style-type: none;
  margin: 0;
}

#task_navigation ul li {
  display: inline;
  font-weight: bold;
}

#task_navigation ul li a {
  line-height: 2;
  padding: 0 10px;
  text-decoration: none;
  color: #f3a628;
  text-shadow: 1px 1px #fff;
}

#navigation ul li a:active,
#task_navigation ul li a:active {
  outline: none;
}

#taskcontent {
  min-height: 380px;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

#toc {
  width: 280px;
  min-height: 380px;
  margin: 0 10px 0 5px;
}

#search {
  padding: 7px;
  border: 1px solid #d0d0d0;
  border-bottom: 0;
  background-color: #f1eeea;
}

#searchinput:focus {
  outline: none;
}

.searchdetails {
  display: none;
}

.searchfilter {
  margin-top: 5px;
}

#search fieldset {
  margin: 0;
  margin-top: 5px;
}

#search + div > table.list {
  border-top: 0;
}

/**** Common classes ****/

.nowrap {
  white-space: nowrap;
}

.watermark {
  flex: 1;
  display: flex;
  justify-content: center;
}

.watermark img {
  opacity: .3;
  width: 75%;
}

.link {
  cursor: pointer;
}

.formtitle {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 1rem;
}

.formbuttons {
  text-align: center;
  white-space: nowrap;
}

.formbuttons input {
  margin: 5px;
}

.listnav {
  font-size: 10px;
}

.listnav a {
  display: inline-block;
  text-decoration: none;
  padding: 0 .25rem;
  line-height: 1;
  font-size: 10pt;
  color: inherit;
}

.listnav a.disabled {
  opacity: .3;
  cursor: default;
}

.listnav > span {
  display: flex;
  align-items: center;
}

pre.debug {
  height: 200px;
  overflow: auto;
}

.popup {
  display: none;
  position: absolute;
  border: none;
  border-radius: 3px;
  box-shadow: 0 2px 6px 0 #333;
}

a.button {
  text-decoration: none;
  color: #495057;
  padding: 0 .25rem;
  line-height: 2.1;
}

/********* Form smart inputs *********/

.listelement:not(:first-child) > input,
.listelement:not(:first-child) > span {
  margin-top: -1px;
}

.listelement.input-group > input {
  border-radius: 0 !important;
}

.listelement.input-group > span :first-child {
  border-radius: 0 !important;
}

.listelement.input-group:first-child > input {
  border-top-right-radius: .25rem !important;
}

.listelement.input-group:first-child > span :first-child {
  border-top-left-radius: .25rem !important;
}

.listelement:last-child input {
  border-bottom-right-radius: .25rem !important;
}

.listelement:last-child > span :first-child {
  border-bottom-left-radius: .25rem !important;
}

.listarea.disabled,
.listarea.readonly,
.listarea.disabled span.listelement input,
.listarea.readonly span.listelement input {
  background-color:  #f5f3f0;
}

.listcontent {
  display: block;
  max-height: 94px;
  overflow-x: hidden;
  overflow-y: auto;
  background-color: #f1eeea;
  cursor: default;
  border-radius: 0 0 .25rem .25rem;
}

.listcontent .listelement {
  padding: 0 5px;
  line-height: 2;
  color: #4f4f4f;
  font-size: 9pt;
}

.listcontent .listelement:hover,
.listcontent .listelement.selected {
  background-color: #fef9e6;
}

span.form_error {
  color: #FF0000;
  font-weight: bold;
  font-size: 90%;
  padding-left: 5px;
}

.ldap_url ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.ldap_url ul li:not(:last-child) {
  margin-bottom: .25rem;
}

form .required .ldap_url {
  padding: .25rem;
  border-radius: .25rem;
}

.ldap_host .input-group-text {
  height: calc(1.5em + .75rem + 2px);
  border-radius: 0;
  border-right: 0;
  border-left: 0;
}

.ldap_host input:first-child {
  flex: 10;
}

.ldap_filter select {
  max-width: 120px;
}

.acltable {
  border-spacing: 0;
}

.acltable select {
  width: 99%;
  padding: 0;
}

.acltable .buttons {
  width: 1%;
  vertical-align: top;
  text-align: center;
}

.acltable .buttons input {
  width: 80px;
  margin-bottom: 5px;
}

.acltable td.list {
  padding-right: 5px;
}

/*****   autocomplete list   *****/

#autocompletepane
{
  background-color: white;
  border: 1px solid #d0d0d0;
  min-width: 351px;
}

#autocompletepane ul
{
  margin: 0;
  padding: 2px;
}

#autocompletepane ul li
{
  display: block;
  padding-left: 6px;
  padding-right: 6px;
  white-space: nowrap;
  cursor: pointer;
  line-height: 2;
}

#autocompletepane ul li.selected
{
  background-color: #fef9e6;
}

/**** ACI widget ********/

#aci-rights label {
  display: block;
}

#aci-rights label input {
  vertical-align: middle;
}

#aci-rights label span {
  padding-left: 5px;
}

#aci-targets-targetbtn {
  height: calc(1.5em + .75rem + 2px);
}

#aci-targets-attr + label {
  padding-right: 1rem;
}

/**** IMAP ACL widget ********/

#acl-form label {
  display: block;
}

#acl-type {
  margin-bottom: .5rem;
}

#acl-type + div label input {
  vertical-align: middle;
}

#acl-type + div label span {
  padding-left: 5px;
}

/**** Login form elements ****/

#login_form {
  margin: auto;
  margin-top: 75px;
  padding: 20px;
  width: 330px;
  background-color: #f1eeea;
  border: 1px solid #d0d0d0;
  border-radius: .25rem;
  text-align: center;
}

#login_form label {
  padding: 0 1rem;
}

#login_submit {
  margin-top: 5px;
}

/**** Main screen elements ****/

#main {
  display: flex;
  flex-wrap: wrap;
}

#main div {
  margin: 10px;
  width: 150px;
  height: 150px;
  text-align: center;
  cursor: pointer;
  background-color: #f1eeea;
  border: 1px solid #d0d0d0;
  border-radius: 3px;
}

#main div:hover {
  background-color: #fef9e6;
}

#main div span.image:before {
  font-size: 96px;
  color: #f3a628;
  margin: 15px 0 10px;
  width: 100%;
}

#main div.user span.image:before {
  content: "\f007";
}

#main div.group span.image:before {
  content: "\f0c0";
}

#main div.resource span.image:before {
  content: "\f013";
}

#main div.sharedfolder span.image:before {
  content: "\f07c";
}

#main div.settings span.image:before {
  content: "\f7d9";
}

#main div.domain span.image:before {
  content: "\f0ac";
}

#main div.role span.image:before {
  content: "\f21b";
}

#main div.ou span.image:before {
  content: "\f0e8";
}

#main div.about span.image:before {
  content: "\f05a";
}

#main div span.label {
  font-weight: bold;
}

#reqtime {
  white-space: nowrap;
  vertical-align: top;
}

#domain-selector span.link {
  color: white;
  text-decoration: none;
}

/**** About pages ****/

td.yes {
  background-color: #d4edda;
  color: #155724;
  text-align: center;
  font-style: italic;
}

td.no {
  background-color: #f8d7da;
  color: #721c24;
  text-align: center;
}

/**** Settings ****/

#type_attr_table td.actions {
  width: 40px;
  padding: 0;
  white-space: nowrap;
}

#type_attr_table thead td {
  white-space: nowrap;
}

#type_attr_table tfoot span {
  cursor: pointer;
}

#type_attr_table td.readonly {
  color: #514949;
}

#type_attr_form {
  display: none;
}

#type_attr_form td {
  padding: 1rem;
  background-color: #f8f8f8;
}

/**** Signup page ****/
body.signup #logo {
  position: relative;
  cursor: default;
}

body.signup #taskcontent {
  align-items: center;
}

body.signup .formtitle {
  margin: 1rem 0 0 0;
}

body.signup form {
  padding-top: 10px;
  margin-bottom: 3rem;
  min-width: 320px;
  max-width: 600px;
  width: 75%;
}

body.signup #footer {
  text-align: center;
}

body.signup #message {
  top: 55px;
}