/*
 * Copyright (C) 2000 - 2024 Silverpeas
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * As a special exception to the terms and conditions of version 3.0 of
 * the GPL, you may redistribute this Program in connection with Free/Libre
 * Open Source Software ("FLOSS") applications as described in Silverpeas's
 * FLOSS exception.  You should have received a copy of the text describing
 * the FLOSS exception, and it is also available here:
 * "http://repository.silverpeas.com/legal/licensing"
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */

.suggestion-title {
  color: var(--color-titre);
  font-size: var(--font-size-titre);
  font-weight:var(--font-weight-titre);
  margin: 0 0 1em;
  padding: 0;
}

#all-suggestionBox {
  clear: left;
}

.txt-no-content {
  color:var(--color-text-second-niveau);
  font-style: italic;
}

div.lastSuggestion h3.lastSuggestion-title {
  background: transparent url(../icons/suggestion-pellet.png) top right no-repeat;
  height: 28px;
  padding-top: 8px ;
  position: absolute;
  top: 0;
  width: 100%;
}

.lastSuggestion .header {
  height: 30px;
  padding-top: 8px;
  position: relative;
}

.lastSuggestion .more:before {
  content: '>> ';
}

.lastSuggestion .more {
  float: right;
}

.lastSuggestion .date {
  font-size: 100%;
}

.lastSuggestion li > a {
  padding-right: 80px;
}

.buzzSuggestion ul,
.lastSuggestion ul,
.lastCommentSuggestion ul,
.my-suggestionBox-inProgress ul,
.my-suggestionBox-draft ul {
  padding: 0;
  margin: 0;
  list-style-type: none;
}

.my-suggestionBox-inProgress ul,
.my-suggestionBox-draft ul {
  list-style-image: url("../../../util/icons/bullet.png");
}

.my-suggestionBox-inProgress ul li,
.my-suggestionBox-draft ul li {
  margin-left: 1em;
}
.my-suggestionBox-inProgress ul li:after,
.my-suggestionBox-draft ul li:after,
.lastCommentSuggestion li:after {
  clear: left;
  content: '';
  width: 100%;
  height: 1px;
  display: block;
}

.buzzSuggestion .header h3,
.lastSuggestion .header h3,
.lastCommentSuggestion .header h3,
.my-suggestionBox-inProgress .header h3,
.my-suggestionBox-draft .header h3 {
  padding: 0;
  margin:1em 0 0.5em;
  font-size:var(--font-size-titre);
  font-weight:var(--font-weight-titre);
  line-height: 90%;
}

.lastSuggestion .header h3 {
  margin: 0em 0 1em;
}

.my-suggestionBox-inProgress .header h3 strong,
.my-suggestionBox-draft .header h3 strong {
  display: block;
  font-size: 90%;
  font-weight: 500;
  color:var(--color-titre-avec-deux-couleurs);
}

.buzzSuggestion a:hover,
.lastSuggestion a:hover,
.lastCommentSuggestion a:hover,
.my-suggestionBox-draft li a:hover,
.my-suggestionBox-inProgress li a:hover,
.my-suggestionBox-inProgress li a:hover {
  color:var(--color-lien-action);
}

.buzzSuggestion li,
.lastSuggestion li,
.lastCommentSuggestion li {
  background-color:var(--bgColor-bloc-fond-clair);
  border: 1px solid var(--border-color-bloc-fond-clair);
  border-radius:var(--radius-bloc);
  padding:1em;
  margin: 0 0 1em 0;
  position: relative;
}

.buzzSuggestion .header h3 {
  color:var(--color-flashy-principale);
}

.buzzSuggestion li > a {
  padding-right: 190px;
}

.buzzSuggestion .counter-comments {
  position: absolute;
  right: 13px;
  top: 13px;
  width: 45px;
}

.lastSuggestion .date {
  position: absolute;
  top: 13px;
  right: 13px;
}

.vote {
  display: block;
  width: 130px;
  height: 50px;
}

.lastCommentSuggestion .commentaires div.avatar {
  background-color:var(--bg-color-avatar-card);
  border: var(--border-width-avatar-card) solid var(--border-color-avatar-card);
  left: auto;
  padding: 0;
  position: relative;
  top: auto;
  float: left;
  margin-right: 1em;
  width: var(--width-avatar-comment);
  height: var(--height-avatar-comment);
  border-radius:var(--radius-avatar-comment);
  box-shadow:var(--shadow-avatar-comment);
  overflow: hidden;
}

.lastCommentSuggestion .commentaires div.avatar img {
  min-width: var(--width-avatar-comment);
  height: auto;
  min-height: var(--height-avatar-comment);
}

.lastCommentSuggestion .commentaires pre.text {
  color:var(--color-text-second-niveau);
  font-style: italic;
  font-family: inherit;
  white-space: pre-wrap;
}

.lastCommentSuggestion .author {
  color: #333333;
}

.lastCommentSuggestion .author .date {
  font-size: 100%;
}

.lastCommentSuggestion a.a-suggestion {
  background: transparent url(../icons/suggestion.png) top left no-repeat;
  padding-left: 20px;
  line-height: 16px;
  display: block;
}

.my-suggestionBox-draft li {
  margin-bottom: 1em;
}

.my-suggestionBox-inProgress li a {
  display: block;
  clear: left;
  margin-bottom: 0.5em;
}

.my-suggestionBox-inProgress .vote, .my-suggestionBox-inProgress .counter-comments {
  float: left;
}

.my-suggestionBox-inProgress .vote {
  margin-right: 1em;
  line-height: 2em;
  height: 2em;
}

.my-suggestionBox-inProgress .vote .rateit {
  vertical-align: middle;
}

.my-suggestionBox-inProgress .header h3 {
  font-size:var(--font-size-titre);
  line-height: 100%;
}

.my-suggestionBox-inProgress .header h3 strong {
  font-size:90%;
}

.my-suggestionBox-inProgress a.VALIDATED {
  background: transparent url(../icons/suggestion-validated.png) top left no-repeat;
  padding-left: 20px;
  line-height: 16px;
  display: block;
}

.my-suggestionBox-inProgress a.REFUSED {
  background: transparent url(../icons/suggestion-refused.png) top left no-repeat;
  padding-left: 20px;
  line-height: 16px;
  display: block;
}

.my-suggestionBox-inProgress a.PENDING_VALIDATION {
  background: transparent url(../icons/suggestion-pending-validation.png) top left no-repeat;
  padding-left: 20px;
  line-height: 16px;
  display: block;
}

.my-suggestionBox-inProgress .counter-comments {
  width: 169px;
  line-height: 2em;
  height: 2em;
  background: transparent url(../icons/sep.png) left -3px no-repeat;
  text-align: center;
}

.my-suggestionBox-inProgress .counter-comments span,
.buzzSuggestion .counter-comments span {
  background: transparent url(../../../util/icons/talk2user.gif) top left no-repeat;
  padding-left: 20px;
}

.buzzSuggestion a:hover .counter-comments span {
  color: #000;
}

#suggestionApprobationDetail-info {
  font-style: italic;
}

#suggestionApprobationDetail-info span {
  opacity: 0.6;
}

#suggestionApprobationDetail-info span.date {
  font-size: 100%;
}

#suggestion .fields {
  margin: 0px;
  padding: 15px 0px 0px 1em;
  width:calc(100% - 1em);
}

#suggestion .legend {
  clear: both;
}

.suggestion .principalContent .commentaires {
  border-top: 2px dotted #CECECE;
  clear: left;
  margin-top: 15px;
  overflow: auto;
  width: 100%;
}

.suggestion .principalContent .inlineMessage {
  margin: 0;
}

/********* LISTING COMPLET ***************/
#suggestionBoxList {
  margin: 1em 0
}

/********* suggestion-view ***************/
.suggestion-view .rightContent .spOverRating {
  display: block;
  padding-bottom: 0.3em;
}

/********* FORMULAIRE DE CREATION/MODIFICATION ***************/

#suggestionInformation .fields {
  height: auto;
}

#suggestionInformation legend {
  background: url("../../../util/icons/mini_publi.gif") no-repeat scroll 11px 0 rgba(0, 0, 0, 0);
}

#suggestionDescriptionArea {
  clear: both;
  padding: 5px 1em 5px 0;
  width:calc(100% - 1em);
}


#suggestionDescriptionArea .champs {
  clear: both;
  padding: 1em 0;
  margin: 0;
}

.lastSuggestion .date {
  position: absolute;
  top: 13px;
  right: 13px;
}

#all-suggestionBox {
  width: 46%;
  float: right;
  padding-right: 3%;
  border-right: 1px solid #ccc;
}

#my-suggestionBox {
  width: 45%;
  float: right;
  margin-left: 3%;
  margin-right: 2%;
  padding-top: 1em;
}

#my-suggestionBox #menubar-creation-actions {
  margin: 1em 0;
}

/*** lecteur view *****/
#all-suggestionBox.lecteur-view {
  width: 100%;
  float: none;
  padding-right: 0;
  border: 0;
  position: relative;
}

.lecteur-view .lastSuggestion,
.lecteur-view .buzzSuggestion {
  width: 46%;
  float: left;
  clear: left;
  padding-right: 3%;
  border-right: 1px solid var(--color-trait-separateur);
}


.lecteur-view .lastCommentSuggestion {
  width: 45%;
  position: absolute;
  top: 0;
  right: 2%;
}

.lecteur-view .lastCommentSuggestion .header h3 {
  margin-top: 0.5em;
}

/*** END lecteur view *****/

@media screen and (min-width: 10px) {

  .lastSuggestion .date {
    position: relative;
    right: auto;
    top: auto;
  }

  #all-suggestionBox {
    width: 100%;
    float: none;
    padding-right: 0;
    border-right: 0;
  }

  #my-suggestionBox {
    width: 100%;
    float: none;
    margin-left: 0%;
    margin-right: 0%;
    padding-top: 0;
  }

  #my-suggestionBox #menubar-creation-actions {
    margin: 0;
  }

  .buzzSuggestion li > a,
  .lastSuggestion li > a {
    padding-right: 0;
  }

  .buzzSuggestion .vote, .lastSuggestion .date {
    position: relative;
    right: auto;
    top: auto;
  }

  .buzzSuggestion .vote {
    margin: 0 auto;
  }

  /*** lecteur view *****/
  #all-suggestionBox.lecteur-view {
    width: 100%;
    float: none;
    padding-right: 0;
    border: 0;
    position: relative;
  }

  .lecteur-view .lastSuggestion,
  .lecteur-view .buzzSuggestion {
    width: 100%;
    float: none;
    clear: left;
    padding-right: 0%;
    border-right: 0;
  }

  .lecteur-view .lastCommentSuggestion {
    width: 100%;
    position: relatvie;
    top: auto;
    right: auto;
  }

  /*** END lecteur view *****/

}

@media screen and (min-width: 800px) {
  .lastSuggestion .date {
    position: absolute;
    top: 13px;
    right: 13px;
  }

  #all-suggestionBox {
    width: 46%;
    float: right;
    padding-right: 3%;
    border-right: 1px solid #ccc;
  }

  #my-suggestionBox {
    width: 45%;
    float: right;
    margin-left: 3%;
    margin-right: 2%;
    padding-top: 1em;
  }

  #my-suggestionBox #menubar-creation-actions {
    margin: 1em 0;
  }

  /*** lecteur view *****/
  #all-suggestionBox.lecteur-view {
    width: 100%;
    float: none;
    padding-right: 0;
    border: 0;
    position: relative;
  }

  .lecteur-view .lastSuggestion,
  .lecteur-view .buzzSuggestion {
    width: 46%;
    float: left;
    clear: left;
    padding-right: 4%;
    border-right: 1px solid #ccc;
  }

  .lecteur-view .lastCommentSuggestion {
    width: 44%;
    position: absolute;
    top: 0;
    right: 2%;
  }

  .lecteur-view .lastCommentSuggestion .header h3 {
    margin-top: 0.5em;
  }

  /*** END lecteur view *****/

}
