/*
 * (C) 2020 - Emanuele Faranda
 *
 * ArkPratica
 *
 * Emanuele Faranda <emanuele.faranda94@gmail.com>
 */

/*
 * [Corrente (verde)]
 *  - Header:     #77CC6D
 *  - Pulsanti:   #77CC6D
 *  - Box:        #68B55F
 *  - Labels:     #68B55F
 *  - Legenda:    #4B8EFF
 *  - Chat:       #c7d6e6
 *  - Secondary:  #6283A0
 *
 * [Blu]
 *  - Header:     #307EC3
 *  - Pulsanti:   #307EC3
 *  - Box:        #8ba3ba
 *  - Labels:     #71a0d7
 *  - Legenda:    #546a90
 *  - Chat:       #c7d6e6
 *  - Secondary:  #6283A0
 */

/* Use consistent select layout */
select.form-control {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: url(/img/dropdown_icon.png) right 12px top 70% / 14px no-repeat #fff;
  padding-right: 20px;
  padding-bottom: 2px;
}

.show-password {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.form-group {
  margin-bottom: 0.8rem;
}

.btn-primary {
/*
  background-color: #307EC3 !important;
  border-color: #307EC3 !important;
*/
}

.btn-secondary {
  background-color: #6283A0 !important;
  border-color: #6283A0 !important;
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255,255,255,.58);
}

.table-bootstrap {
  font-size: 0.90rem;
}

.table-bootstrap th {
  color: gray;
  font-size: 0.8rem;
}

.table-bootstrap tr {
  border-bottom: 1px solid rgb(222, 226, 230);
}

.table-inline {
  margin-bottom: 0px;
}

.table-inline tr {
  border-bottom: 0px !important;
}

.table-inline td, .table-inline th {
  padding: 0.5rem;
}

.table-inline th {
  color: #68B55F;
}

.search-input {
  height: 2rem;
  font-size: 0.9rem;
}

button.btn-xs {
  padding: .25rem .4rem;
  font-size: .875rem;
  line-height: .5;
  border-radius: .2rem;
  width: 1.8rem;
  height: 1.8rem;
}

.w-20 {
  width: 20%;
}

a.dropdown-toggle {
  cursor: pointer;
}

#left-toolbar {
  margin-top: 1rem;
  font-size: 0.9rem;
  margin-left: 0.5rem;
}

#left-toolbar span.dropdown {
  font-weight: bold;
  font-size: 0.85rem;
  color: #4B8EFF;
}

#left-toolbar .dropdown:not(:nth-child(1)) {
  margin-left: 1rem;
}

#left-toolbar .dropdown-item {
  font-size: 0.9rem !important;
}

#left-toolbar .dropdown-item .icon {
  margin-right: 0.2rem;
  width: 1rem;
}

.icona-aggiornata {
  color: red;
}

.icona-sm {
  font-size: 0.7rem;
  margin-bottom: 0.4rem;
  margin-left: 0.1rem;
  position: absolute;
}

.dropdown-utente {
  font-size: 0.9rem;
}

.dropdown-utente .icon {
  margin-right: 0.4rem;
}

/* ******************************************************* */

.dot {
  height: 1.0rem;
  width: 1.0rem;
  border-radius: 50%;
  display: inline-block;
  vertical-align: top;
  margin-top: 0.1rem;
  margin-right: 0.2rem;
}

.link-pratica {
  color: inherit;
}

.dropdown-item .dot, .dropdown-item .icon {
  margin-left: -0.7rem;
  margin-top: 0.1rem;
}

.stato-nuova          { background-color: #DC00DC; }
.stato-in_lavorazione { background-color: #FFE833; }
.stato-conclusa       { background-color: #84F856; }
.stato-rogitata       { background-color: #5680F8; }
.stato-ferma          { background-color: #363636; }

/* ******************************************************* */

.login-form {
  margin: 4rem auto;
  width: 20rem;
  text-align:center;
}

.login-logo {
  margin-bottom: 2rem;
}

/* ******************************************************* */

nav.navbar {
/*#4697DF*/
/*#2FB49D*/
/*#6A75BF*/
/*#77CC6D*/
  background-color: #77CC6D !important;
}

main.container {
  margin-top: 5rem;
  max-width: 90%;
}

#toolbar {
  margin-left: 5px;
}

/* ******************************************************* */

.upload-helper {
  height: 7rem;
  color: #7F7F7F;
  font-size: 0.8rem;
  margin-left: 1rem;
  margin-bottom: 1rem;
  padding: 0;
}

.upload-helper-no-file, .upload-helper-with-file {
  border: 1px solid gray;
  height: 100%;
  padding: 0.3rem;
  position: relative;
}

.upload-helper-no-file {
  background-color: #FFF7C4;
}

.upload-helper-with-file {
  background-color: #E1FFC4;
}

.uh-actions {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
}

.uh-actions button:not(:nth-child(1)) {
  margin-left: 0.1rem;
}

.uh-edit-nome {
  float: right;
  margin-top: 0.1rem;
  cursor: pointer;
}

/* ******************************************************* */

#lista-notifiche {
  min-width: 20rem;
  font-size: 0.85rem;
}

#num-notifiche {
  font-size: 0.55rem;
  float: top;
  position: absolute;
  top: 0.2rem;
  right: 1rem;
  z-index: -1;
}

.notifiche .fa-bell {
  margin-right: 0.2rem;
}

#lista-notifiche .dropdown-item {
  white-space: normal;
}

/* and this styles the dropdwon trigger link, when open */
.navbar .dropdown.notifiche.show .dropdown-item:active { 
  background-color: inherit !important;
  color: inherit !important;
}

.notifica-container {
  cursor: pointer;
}

.notifica-container:not(:nth-child(1)) {
  margin-top: 0.6rem;
}

.notifica-container.seen {
  color: gray !important;
}

.notifica-container.seen a {
  color: gray !important;
}

.notifica-data {
  font-size: 0.7rem;
  color: #8C8C8C;
}

.notifica-azioni button {
  font-size: 0.7rem !important;
}

/* ******************************************************* */

#header_pratica {
  color: #68B55F;
  margin-bottom: 2rem;
  font-size: 1.6rem;
}

.azioni_pratica {
  float: right;
}

form.pratica {
  margin-bottom: 4rem;
}

form.pratica .form-control {
  border: 0;
  box-shadow: none;
  border-radius: 0;
  border-bottom: 1px solid #D6D6D6;
  font-size: 0.9rem;
}

form.pratica .row:not(:last-child) {
  margin-bottom: 1rem;
}

form.pratica .form-control {
  margin-top: -5px;
}

form.pratica label {
  margin-bottom: 0;
  color: #68B55F;
  font-weight: bold;
  font-size: 0.8rem;
}

form.pratica legend {
  border-style: none;
  border-width: 0;
  font-size: 0.9rem;
  line-height: 1rem;
  margin-bottom: 0;
  color: #4B8EFF;
  font-weight: bold;
  width: auto;
  padding: 2px 7px 2px 5px;
}

form.pratica fieldset {
  border: 2px solid #68B55F;
  padding: 1.3rem;
}

form.pratica fieldset:not(:nth-child(1)) {
  margin-top: 1rem;
}

form.pratica fieldset fieldset {
  border: 2px dashed #68B55F;
  margin-left: -0.9rem;
  margin-right: -0.9rem;
  margin-top: 0.5rem !important;
}

form.pratica input[type="submit"] {
  margin-top: 1rem;
  float: right;
}

form.pratica h5 {
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
  margin-left: -1.5rem;
  color: #6F6F6F;
}

form.pratica button.btn-sm {
  width: 2.2rem;
}

.sel-tipo-doc {
  margin-left: 0.5rem;
  margin-right: 1rem;
}

/* ******************************************************* */

.chat-box textarea {
  height: 7rem;
  width: 100%;
}

.chat-box, .chat-box .row {
  margin-bottom: 0 !important;
}

.chat-box .table {
  font-size: 0.75rem;
}

.chat-box .table      { border: 2px solid #c7d6e6 !important; table-layout: fixed; width: 100%; }
.chat-box .table th   { border-bottom: 2px solid #c7d6e6 !important; }
.chat-window          { overflow-y: auto; height: 9rem; }
.chat-window table    { border-collapse: collapse; width: 100%; }
.chat-window th, td    { border: 0; overflow-wrap: break-word; }

.chat-window tr            td:not(:empty) {  background-color: #FFF7C4; }
.chat-window tr.with-c_doc td:not(:empty) {  background-color: #E1FFC4; }
.chat-window tr.with-d_doc td:not(:empty) {  background-color: #FFD4C4; }
