/*************************************************************** 
Login/Logout secondary panel background and font
***************************************************************/

body.grp-login .grp-module-login h1 span.grp-current-page {
  background-color:  #931004;
  color: #fff;
}

/***************************************************************
Color of links
***************************************************************/

a, a.grp-link-external, table thead th a, .grp-pagination ul li a, .grp-date-hierarchy ul li a.grp-date-hierarchy-back,
header#grp-header #grp-navigation ul li.grp-collapse.grp-open > ul li a, #grp-breadcrumbs > ul a {
  color: #017B69;
}

/***************************************************************
Login/logout primary panel and application wide header color
***************************************************************/

body.grp-login .grp-module-login h1, header#grp-header #grp-navigation {
  background-color: #017B69;
}

body.grp-login .grp-module-login h1 {
  border-color: #017B69 #017B69;
}


/***************************************************************
Breadcrumb panel
***************************************************************/

#grp-context-navigation {
  background-color: #EEE;
}

#grp-context-navigation #grp-breadcrumbs > ul li, #grp-context-navigation .content-language-switcher-label {
  color: #666;
}

/***************************************************************
Color of user menu links
***************************************************************/

header#grp-header #grp-navigation a {
  color: #BBB;
}

header#grp-header #grp-navigation a, header#grp-header #grp-navigation ul li.grp-collapse.grp-open > ul li a:hover {
  color: #BBB;
}

/***************************************************************
Admin logo: Uncomment if want to replace the admin title with a logo
***************************************************************/

header#grp-header #grp-navigation h1#grp-admin-title, .grp-module-login .grp-admin-title {
    font-size: 0px;
    display: block;
    background-image: url('../images/logo.png');
    background-repeat: no-repeat;
    height: 32px;
    width: 340px;
    padding: 0px;
    margin: 2px 0;
}

/***************************************************************
Comment inline modification
***************************************************************/

#comments-group .grp-module h3,
#document_comments-group .grp-module h3{
  padding: 2px 10px 2px;
}

#comments-group .read_only_comment,
#document_comments-group .read_only_comment{
  display: none;
}

#comments-group fieldset.grp-module,
#document_comments-group fieldset.grp-module{
  border-top: 0 solid transparent;
}

#comments-group textarea,
#document_comments-group textarea{
  width: 96% !important;
}

#comments-group .grp-tools,
#document_comments-group .grp-tools{
  top: 0;
  z-index: 100;
}

#comments-group .grp-module .grp-row:not(tr),
#document_comments-group .grp-module .grp-row:not(tr){
  border-bottom: 0 solid transparent;
}

#comments-group fieldset.grp-module .c-1,
#document_comments-group fieldset.grp-module .c-1{
  width: 250px;
}

#comments-group fieldset.grp-module .c-1 label,
#document_comments-group fieldset.grp-module .c-1 label{
  font-size: 0;
}

#comments-group .author,
#document_comments-group .author {
  display: inline;
  font-size: 0.9em;
  left: 9px;
  position: absolute;
  top: 7px;
  width: 250px;
  z-index: 100;
}

#comments-group .author .name,
#document_comments-group .author .name {
  font-weight: bold;
  font-size: 1.1em;
}

#comments-group .author .time,
#document_comments-group .author .time {
  font-style: italic;
}

#comments-group .author img,
#document_comments-group .author img {
  float: left;
  margin-right: 5px;
}

#comments-group .has_original .read_only_comment,
#document_comments-group .has_original .read_only_comment
{
  display: inline-block;
  border-top: 0 solid transparent;
}

#comments-group .has_original .comment,
#document_comments-group .has_original .comment {
  display: none;
}

#comments-group .has_original .read_only_comment .grp-readonly, #document_comments-group .has_original .read_only_comment .grp-readonly,
#document_comments-group .has_original .read_only_comment .grp-readonly, #document_comments-group .has_original .read_only_comment .grp-readonly,
#concept_notes-group .read_only_comment .grp-readonly{
  position: relative;
  background: #fff;
  border: 1px solid #DDD;
}
#comments-group .has_original .read_only_comment .grp-readonly:after, #comments-group .has_original .read_only_comment .grp-readonly:before,
#document_comments-group .has_original .read_only_comment .grp-readonly:after, #document_comments-group .has_original .read_only_comment .grp-readonly:before,
#concept_notes-group .has_original .read_only_comment .grp-readonly:after, #concept_notes-group .has_original .read_only_comment .grp-readonly:before{
  right: 100%;
  top: 50%;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
}

#comments-group .has_original .read_only_comment .grp-readonly:after,
#document_comments-group .has_original .read_only_comment .grp-readonly:after,
#concept_notes-group .has_original .read_only_comment .grp-readonly:after{
  border-color: rgba(255, 255, 255, 0);
  border-right-color: #fff;
  border-width: 8px;
  margin-top: -8px;
}
#comments-group .has_original .read_only_comment .grp-readonly:before,
#document_comments-group .has_original .read_only_comment .grp-readonly:before {
  border-color: rgba(204, 204, 204, 0);
  border-right-color: #ccc;
  border-width: 9px;
  margin-top: -9px;
}

#concept_notes-group .grp-td.read_only_comment {
  padding-left: 14px !important;
}

.grp-tools.entry-cluster {
  top: 0;
  z-index: 1000;
}

.grp-tools.entry-cluster .grp-icon.grp-delete-handler {
  background-position: 0px -2615px;
}

[id^="id_clusters"]{
  width: 97% !important;
}

/*************************************************************
MPEPIL entry inline
**************************************************************/
span.mpepil-online-container {
  float: right;
  margin-right: 3%;
}

/**************************************************************
Author Inline Configuration
**************************************************************/

.author-original-fields {
    display: none;
}

.author.has_original .grp-collapse-handler {
    background: #eee;
}

.author-qtip > div {
    border: 1px solid #ccc;
    background: #eee;
    font-size: 0.9em;
}

.author-qtip .author-meta-info {
    margin-bottom: 15px;
    padding: 2px;
}

.author-qtip .author-info {
    margin-bottom: 5px;
    padding: 2px;
}

.qtip-bootstrap {
    max-width: 400px !important;
}

/**************************************************************
Document
***************************************************************/
#document_form div.file_name {
  display: none;
}

span.document-hidden.grp-td.document, span.term-hidden.grp-td.entry {
  display: none;
}

td.field-file_display {
  min-width: 70px;
}

th.field-source {
  max-width: 675px;
}

/**************************************************************
Entry
***************************************************************/
td.field-overlap_with_mpepil {
  text-align: center;
}

td.field-overlap_with_mpepil .glyphicons-remove {
  color: #990033;
  font-size: 14px;
}

td.field-overlap_with_mpepil .glyphicons-ok {
  color: #017B69;
  font-size: 14px;
}

td.field-overlap_with_mpepil .glyphicons-circle-question-mark {
  color: #FFA500;
  font-size: 14px;
}

span.glyphicons.glyphicons-remove {
  display: inline-block;
}

#mpelpil_entries-group div.grp-readonly {
  background-color: white;
 }

#child_relations-group .styled_cluster_label .grp-readonly, #documententries-group .styled_cluster_label .grp-readonly{
  border: none;
}

/***************************************************************
Alphabet filter
***************************************************************/

ul.alphabetfilter {
  clear: both;
  float: left;
  font-size: 11px;
  font-weight: bold;
  line-height: 16px;
  position: relative;
  padding: 4px 8px;
}

ul.alphabetfilter li {
  float: left;
  position: relative;
  padding: 0 3px;
  font-size: 1.1em;
}

ul.alphabetfilter li a .selected {
  color: #931004;
}

.grp-td.cluster, .grp-td.read_only_cluster {
  min-width: 630px;
}

/***************************************************************
Search box for RAW FK field for related entities
***************************************************************/

#child_relations-group .vForeignKeyRawIdAdminField.grp-has-related-lookup {
  width: 0;
  padding-right: 18px !important;
}

#child_relations-group .related-lookup {
  border-bottom-left-radius: 3px;
  border-top-left-radius: 3px;
}

#child_relations-group .grp-placeholder-related-fk {
  margin-left: 40px;
}

/***************************************************************
Main navigation: Setting menu
***************************************************************/

#custom-stats, #custom-options, #custom-history, #custom-document, #custom-keyword, #custom-documents, #custom-archived-keyword, #keyword-weight-graph, #custom-authors, #custom-news, #custom-peer-reviewer {
  padding-bottom: 12px !important;
}

#custom-stats.glyphicon.glyphicon-stats, #custom-peer-reviewer.glyphicons.glyphicons-user-key , #custom-authors.glyphicons.glyphicons-group, #custom-options.glyphicon.glyphicon-cog, #custom-history.glyphicon.glyphicon-time, #custom-keyword.glyphicon.glyphicon-book, #custom-documents.glyphicon.glyphicon-folder-open, #custom-archived-keyword.glyphicon.glyphicon-lock, #keyword-weight-graph.glyphicons.glyphicons-eye-open  {
  font-size: 1.2em;
}

#custom-proofreader.user-proofreader {
  background-image: url('../images/user-proofreader.png');
  background-repeat: no-repeat;
  background-size: 15px 15px;
  position: relative;
  top: 9px;
  margin-left: 10px;
}

#custom-proofreader.user-proofreader:hover{
  background-image: url('../images/user-proofreader-hover.png');
}

#custom-internal-reviewer.user-internal-reviewer {
  background-image: url('../images/user-internal-reviewer.png');
  background-repeat: no-repeat;
  background-size: 15px 15px;
  position: relative;
  top: 9px;
  margin-left: 10px;
}

#custom-internal-reviewer.user-internal-reviewer:hover{
  background-image: url('../images/user-internal-reviewer-hover.png');
}

#custom-stats.glyphicon.glyphicon-stats, #custom-authors.glyphicons.glyphicons-group, #keyword-weight-graph.glyphicons.glyphicons-eye-open, #custom-peer-reviewer.glyphicons.glyphicons-user-key, #custom-internal-reviewer.glyphicons.glyphicons-user-lock, #custom-proofreader.glyphicons.glyphicons-user-asterisk {
  top: 0px;
}

/* Dialog button */
button.ui-button.ui-widget.ui-corner-all {
  width: 55px;
  text-align: center;
  color: #444!important;
}

button.ui-button.ui-widget.ui-corner-all:focus {
  outline:0;
  border: 1px solid #c7c7c7;
}

button.ui-button.ui-widget.ui-corner-all.ui-button-text-only .ui-button-text {
  padding: 0;
}
