/*
 * GENERICO
 */
body {
  background: #f2f2f2;
}

.navbar {
  min-height: 38px;
}

.navbar-nav > li > a {
  padding-top: 8px;
  padding-bottom: 8px;
}


/*
 * TABELLE
 */
table.table th.col-status,
table.stable td.col-status {
  width: 50px;
  text-align: center;
}
table.table th.option,
table.table td.option {
  width: 50px;
  text-align: center;
}
table.table-condensed > tbody > tr > td,
table.table-condensed > tbody > tr > th,
table.table-condensed > tfoot > tr > td,
table.table-condensed > tfoot > tr > th,
table.table-condensed > thead > tr > td,
table.table-condensed > thead > tr >th {
  padding: 5px 10px;
}

table.table td:not(.option) a {
  color: inherit;
}

table.table td:not(.option) a:hover {
  text-decoration: underline;
}

/*
 * BOTTONI
 */
.btn.btn-xs {
  padding: 4px 8px;
}
.btn.btn-xxs {
  padding: 3px 5px;
  font-size: 12px;
  line-height: 15px;
}

.panel-heading .btn-xxs {
  margin-top: 6px;
}


/*
 * TABS
 */
@media (min-width: 769px) {
  .panel-flat .heading-elements.panel-tabs > .nav-tabs > li > a {
    padding-top: 17px;
    padding-bottom: 17px;
  }
}


/*
 * IMAGE BOX
 */
.image-box {
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
  background: #ffffff;
  margin-bottom: 10px;
}
.image-box > .image {
  border-bottom: 1px solid #eeeeee;
}
.image-box > .options {
  padding: 5px 0;
  display: table;
  width: 100%;
}
.image-box > .options > a,
.image-box > .options > span {
  display: table-cell;
  width: auto;
  text-align: center;
  vertical-align: middle;
  height: 30px;
  font-size: 17px;
  color: #c0c0c0;
  -webkit-transition: color 120ms linear;
  -moz-transition: color 120ms linear;
  transition: color 120ms linear;
  border-right: 1px solid #eee;
}
.image-box > .options > a:hover {
  color: #333;
}
.image-box > .option > a:last-child {
  border: none;
}



/*
 * BLOCK UI
 */
.blockMsg h3,
.blockMsg h4 {
  margin: 0;
  padding: 0;
}



/*
 * SORTABLE
 */
.sortable {
  -moz-transition: scale 80ms linear;
  -webkit-transition: scale 80ms linear;
  -o-transition: scale 80ms linear;
  transition: scale 80ms linear;
}

.sortable.ui-sortable-helper {
  transform: scale(1.04);
}


.sortable-list > .sortable-box {
  border: 1px solid #eee;
  box-shadow: 0 0 30px -10px rgba(0, 0, 0, 0.15);
  margin-bottom: 10px;
  background: #fff;
}

.sortable-list > .sortable-box .sortable-box-body {
  padding: 10px;
}

.sortable-list > .sortable-box .sortable-box-body a {
  color: #333;
}

.sortable-list > .sortable-box .sortable-box-options {
  width: 100px;
  position: relative;
  float: right;
}

.sortable-list > .sortable-box .sortable-box-options .options {
  width: 100px;
  display: table;
  height: 65px;
}

.sortable-list > .sortable-box .sortable-box-options a,
.sortable-list > .sortable-box .sortable-box-options span {
  display: table-cell;
  color: #333;
  vertical-align: middle;
  text-align: center;
}


/*
 * ALERT
 */
.alert.growl {
  opacity: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}



/*
 * SELECT 2
 */
.navbar-component .select2-container .select2-selection {
  border: none;
  cursor: pointer;
  outline: 0;
  display: block;
  height: 40px;
  min-width: 150px;
  padding: 11px 0;
  line-height: 1.5384616;
  position: relative;
  white-space: nowrap;
  border-radius: 3px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.navbar-component .select2-container {
  margin-right: 10px;
}
.navbar-component.navbar-inverse .select2-selection {
  color: #fff;
  background-color: transparent;
}


/*
 * DATEPICKER
 */
.datepicker { z-index: 1051 !important; }


/*
 * DROPDOWN
 */
.nav.navbar-nav .dropdown-menu > li > a {
  padding: 5px 15px;
  outline: 0;
}



/*
 * IMAGE PREVIEW
 */
 #avatar-box { background: #f8f8f8; }
.image-preview-box { position: relative;  margin: 0 auto; background-color: #fff !important; background-repeat: no-repeat !important; color: #ecf0f1; background-size: auto; }
.image-preview-box:hover label{ opacity: 1; }
.image-preview-box input { line-height: 160px; font-size: 160px; position: absolute; opacity: 0; z-index: 10; }
.image-preview-box label {
  position: absolute;
  z-index: 5;
  opacity: 0.0;
  cursor: pointer;
  background-color: #bdc3c7;
  width: 200px;
  height: 50px;
  font-size: 20px;
  line-height: 50px;
  text-transform: uppercase;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  text-align: center;
  -webkit-transition: opacity 120ms linear;
  -moz-transition: opacity 120ms linear;
  transition: opacity 120ms linear;
}
.image-preview-box .help-block {
  position: absolute;
  margin: 0;
  padding: 0 10px;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, .70);
  color: #fff;
  line-height: 35px;
}

.image-preview-box.persona { width: 160px; height: 160px; }
.image-preview-box.link { width: 240px; height: 160px; background-size: contain !important;  }
.image-preview-box.area-tematica { width: 240px; height: 160px; }
.image-preview-box.testimonianza { width: 264px; height: 164px; }

/*
 * MODALS
 */
@media (min-width: 1025px) {
  .modal-lg {
    width: 1100px !important;
  }
}

.panel-footer {
  position: relative;
  padding-left: 0;
  padding-right: 0;
  border-bottom-right-radius: 3px;
  border-bottom-left-radius: 3px;
}

.panel-footer > .heading-elements {
  position: static;
  margin-top: 0;
}

.pt-3 {
  padding-top: 3px !important;
}

.invoice-inline-form .form-group .form-control,
.form-control.inline {
  border: 0;
  padding: 0 5px;
  margin: 0;
  border-bottom: 1px solid #ddd;
  border-radius: 0;
}

.invoice-inline-form .form-group .select2-selection {
  border: 0;
  border-bottom: 1px solid #ddd;
  border-radius: 0;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-group.form-group-condensed {
  margin-top: 8px;
}

.form-group.form-group-condensed.with-help-block {
  margin-bottom: 5px !important;
}

.form-group.form-group-condensed label {
  margin: 0;
  padding: 0 5px 0 1px;
  font-size: 11px;
  position: absolute;
  top: -7px;
  left: 5px;
  background: #ffffff;
  z-index: 3;
}

.form-group.form-group-condensed .help-block {
  margin-top: 3px;
  margin-bottom: 0px;
}

.form-group.form-group-condensed input {
  height: 37px;
  padding: 8px 10px 5px;
}

.form-group.form-group-condensed .bootstrap-tagsinput > input {
  height: 28px;
}

.form-group.form-group-condensed .select2-selection--multiple .select2-selection__rendered {
  padding: 0 3px 0 3px;
}

.invoice-inline-form .form-group {
  margin: 0;
  padding: 0;
}

.invoice-inline-form .form-group .input-group-addon {
  border: 0;
  background: transparent;
  border-radius: 0;
}


.search-wrapper {
  max-width: 600px;
  margin: 20px auto 0;
}

#agentiSearchBox .panel-body {
  padding: 20px 5px;
}
#agentiSearchBox .panel-body .form-group {
  margin: 0;
  position: relative;
}
#agentiSearchBox .panel-body .form-group button {
  display: inline-block;
  position: absolute;
  right: 10px;
  top: 0;
  bottom: 0;
  width: 50px;
}
#agentiSearchBox .panel-body .form-group input {
  height: 50px;
  border: none;
  font-size: 23px;
  padding-right: 65px;
}

#agentiSearchBox .panel-body .form-group input::-moz-placeholder,
#agentiSearchBox .panel-body .form-group input:-moz-placeholder,
#agentiSearchBox .panel-body .form-group input::-webkit-input-placeholder,
#agentiSearchBox .panel-body .form-group input:-ms-input-placeholder {
  font-style: italic;
}


.agenda-container > .panel-heading {
  color: #ffffff;
  background: #78909C;
  padding: 12px;
}

.agenda-container > .panel-body {
  padding: 10px !important;
}

.agenda-container .agenda-container {
  margin-bottom: 10px;
}

.media + .agenda-container {
  margin-top: 10px;
}

.media.speaker-box {
  border: 1px solid #ddd;
  padding: 5px;
  margin-bottom: 10px;
  background: #fff;
  height: 100px;
  overflow: hidden;
}


.navigation > li ul li a {
  padding-left: 18px !important;
}

.navigation li ul li a > i {
  margin-right: 5px;
}

.navigation > li > ul li:first-child,
.navigation > li > ul li:last-child {
  padding: 0;
}

/*
.sidebar-default .navigation li.open > a, .sidebar-default .navigation li.open > a {
  background: #f5f5f5;
}
*/
.modal-dialog.modal-md {
  width: 900px !important;
}
.modal-header[class*=bg-] {
  padding: 10px 10px;
}
.modal-content .nav-tabs.nav-justified > li:not(.active) > a {
  background-color: #37474F;
  color: #fff;
}

@media (min-width: 769px) {
  .sidebar-xs .sidebar-main.detail-sidebar {
    width: 72px;
  }
}

.sidebar-xs .sidebar-main.detail-sidebar .navigation-main > li.active > a > span {
  display: none !important;
}

.table-options-menu .dropdown-menu {
  padding: 0;
}

.detail-sidebar .navigation-main {
  padding: 0;
}
.detail-sidebar .navigation-main > li > a {
  padding: 11px 20px;
  min-height: 42px;
}

.detail-sidebar .navigation-main > li > a .label {
  float: none;
  position: absolute;
  top: 0px;
  right: 1px;
  font-size: 9px;
}

.media.text-media {
  position: relative;
  background: #fff;
  border: 1px solid #dfdfdf;
  margin-bottom: 10px;
}

.media.text-media .media-body {
  padding: 25px;
}

.media.text-media .media-options {
  opacity: 0;
  position: absolute;
  right: 10px;
  top: 10px;

  -webkit-transition: opacity 120ms linear;
  -moz-transition: opacity 120ms linear;
  -ms-transition: opacity 120ms linear;
  -o-transition: opacity 120ms linear;
  transition: opacity 120ms linear;
}

.media.text-media:hover .media-options {
  opacity: 1;
}

.media.text-media .media-options:after,
.media.text-media .media-options:before {
  content: '';
  clear: both;
  width: 1px;
}

.media.text-media .media-options a {
  display: block;
  float: right;
  width: 30px;
  text-align: center;
  line-height: 25px;
  border-radius: 15px;
}

.media.text-media .media-options a:not(:first-child) {
  margin-right: 10px;
}


.btn-add-container {
  background: transparent;
  border: 2px dashed #d3d3d3;
  line-height: 30px;
  color: #666666;
  margin-bottom: 20px;

  -webkit-transition: all 120ms;
  -moz-transition: all 120ms;
  -ms-transition: all 120ms;
  -o-transition: all 120ms;
  transition: all 120ms;
}

.btn-add-container:hover,
.btn-add-container:active {
  background: transparent;
  border-color: #adadad;
}


.panel {
  overflow-x: visible !important;
  margin-bottom: 10px;
}

.panel-heading {
  padding-left: 15px;
  padding-right: 15px;
}

.panel-heading.heading-xs {

}

.panel-body {
  /*padding: 10px 20px;*/
  padding: 15px 15px 15px;
}

.panel-flat > .panel-heading + .panel-body {
  padding-top: 10px;
}

.panel-flat > .panel-heading {
  padding-top: 8px;
  padding-bottom: 8px;
}

.page-container {
  padding: 8px 20px;
}

.page-container.flex {
  display: flex !important;
  height: calc(100% - 46px - 38px) !important;
}

.page-container.flex .page-content {
  display: flex !important;
  width: 100% !important;
}

.page-container.flex .content-wrapper {
  display: flex !important;
  flex-direction: row !important;
  flex: 1 1 auto;
  /*width: 100% !important;*/
  flex-wrap: nowrap;
  overflow: hidden;
}

.page-container.flex .sidebar {
  flex: 1 0 auto;
}

.page-container.flex.flex-column .content-wrapper {
  flex-direction: column !important;
}

.flex-container {
  display: flex;
}

.flex-container.rows {
  flex-direction: row;
}

.flex-container.columns {
  flex-direction: column;
}

.flex-grow-1 { flex-grow: 1; flex-basis: auto; }
.flex-grow-0 { flex-grow: 0; flex-basis: auto; }

.flex-shrink-1 { flex-shrink: 1; flex-basis: auto; }
.flex-shrink-0 { flex-shrink: 0; flex-basis: auto; }

.w-100perc { width: 100%; }
.h-100perc { height: 100%; }

.list-group {
  padding: 0;
}

.list-group li.list-group-item {
  padding: 0 20px 0 5px;
  background: #fff;
  border-bottom: 1px solid #ddd !important;
  -webkit-transition: all 120ms ease;
  -o-transition: all 120ms ease;
  -moz-transition: all 120ms ease;
  transition: all 120ms ease;
  border-left: 2px solid transparent;
}

.list-group.list-group-clickable > .list-group-item:hover,
.list-group.list-group-clickable > .list-group-item.selected { background: #f1f1f1; border-left-color: #fac0c0; }
.list-group.list-group-clickable > .list-group-item.selected {
  padding-left: 25px;
  border-left-color: #db1313;
}


.list-group-content {
  display: table;
  width: 100%;
}

.list-group-content > div {
  display: table-cell;
  vertical-align: middle;
}

.list-group-content > div.list-group-item-position {
  width: 50px;
  text-align: center;
}

.list-group-content > div.list-group-item-points {
  width: 150px;
  text-align: center;
}

.list-group-content > div.list-group-item-title a,
.list-group-content > div.list-group-item-title > span {
  color: inherit;
  display: block;
  line-height: 38px;
}

.list-group-content > div.list-group-item-options {
  width: 100px;
  text-align: center;
}

.list-group-content > div.list-group-item-options > a {
  display: inline-block;
  color: inherit;
  padding: 10px 15px;
}

.context-menu-list {
  padding: 0;
}

.context-menu-list .context-menu-item {
  padding-top: 5px;
  padding-bottom: 5px;
}


.sidebar a[data-provide=delete] {
  background: #ea1c0d !important;
  color: #ffffff !important;
}

.sidebar a[data-provide=delete]:hover {
  background: #F44336 !important;
  color: #ffffff !important;
}


/* ------------------------------------------------------------------------------------------------------------------- *
 * SPINNER
 * ------------------------------------------------------------------------------------------------------------------- */
.lds-ellipsis { display: inline-block; position: relative; width: 64px; height: 64px; }
.lds-ellipsis div { position: absolute; top: 27px; width: 11px; height: 11px; border-radius: 50%; background: #ffffff; animation-timing-function: cubic-bezier(0, 1, 1, 0); }
.lds-ellipsis div:nth-child(1) { left: 6px; animation: lds-ellipsis1 0.6s infinite; }
.lds-ellipsis div:nth-child(2) { left: 6px; animation: lds-ellipsis2 0.6s infinite; }
.lds-ellipsis div:nth-child(3) { left: 26px; animation: lds-ellipsis2 0.6s infinite; }
.lds-ellipsis div:nth-child(4) { left: 45px; animation: lds-ellipsis3 0.6s infinite; }
@keyframes lds-ellipsis1 {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}
@keyframes lds-ellipsis3 {
  0% { transform: scale(1); }
  100% { transform: scale(0); }
}
@keyframes lds-ellipsis2 {
  0% { transform: translate(0, 0); }
  100% { transform: translate(19px, 0); }
}

.min-h-100 {
  min-height: 100px;
}

.form-group .help {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #696969;
  font-size: 11px;
  opacity: 0;
}

.rubrica-side-container {
  display: block;
  overflow: hidden;
}
.rubrica-side-element {
  display: flex;
  flex-flow: row nowrap;
  border-top: 1px solid #ddd;
  max-width: 100%;
}
.rubrica-side-element:last-child {
  border-bottom: 1px solid #ddd;
}

.rubrica-side-element .side-element-content {
  display: block;
  flex: 1 1 auto;
  padding: 10px 10px 10px 15px;
  border-right: 1px solid #ddd;
}

.rubrica-side-element .side-element-options {
  display: flex;
  max-width: 30px;
  flex-flow: column;
  align-items: center;
  justify-content: space-around;
}

.side-element-options > a {
  display: flex;
  width: 30px;
  text-align: center;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
}

.side-element-options > a:first-child { border-top: none; }
.side-element-options > a:last-child { border-bottom: none; }


/* ------------------------------------------------------------------------------------------------------------------- *
 * FILE ELEMENT
 * ------------------------------------------------------------------------------------------------------------------- */
.file-element {
  position: relative;
  border: none;

  margin-bottom: 2px;

  background: #e1e3e7;
  border-radius: 0;

  box-shadow: 0 7px 15px rgba(0, 0, 0, .0);

  -webkit-transition: border-color 120ms, box-shadow 120ms, background-color 120ms;
  -moz-transition: border-color 120ms, box-shadow 120ms, background-color 120ms;
  -ms-transition: border-color 120ms, box-shadow 120ms, background-color 120ms;
  -o-transition: border-color 120ms, box-shadow 120ms, background-color 120ms;
  transition: border-color 120ms, box-shadow 120ms, background-color 120ms;
}

.file-element.selected {
  box-shadow: 0 7px 15px rgba(0, 0, 0, .1);
  background: #ffffff;
}

.file-element .file-element-menu {
  position: absolute;
  width: 15px;
  height: 15px;
  right: 5px;
  top: 10px;
  text-align: center;
  color: #ccc;
}

.file-element .file-element-menu > a {
  -webkit-transition: color 120ms;
  -moz-transition: color 120ms;
  -ms-transition: color 120ms;
  -o-transition: color 120ms;
  transition: color 120ms;
  color: #aaa;
}
.file-element .file-element-menu > a:hover { color: #999; }

.file-element .file-element-body {
  padding: 10px;
  overflow: hidden;
}

.file-element .file-element-draggable {
  position: relative;
  width: 15px;
  margin-right: 5px;
  background: #f0f0f0;
}

.file-element .file-element-draggable:after {
  position: absolute;
  content: '';
  width: 1px;
  height: 100%;

  right: 0;
  margin: auto;

  border-left: 3px dashed #cdcdcd;
}

.file-element .file-element-draggable:hover {
  cursor: move;
}

.file-element .file-element-body h6,
.file-element .file-element-body p {
  margin: 0;
}

.file-element .file-element-body h6 {
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 25px;
  font-size: 13px;
  margin-bottom: 5px;
  font-weight: 600;
  color: #355577;
}

.file-element .file-element-body abbr {
  text-decoration: none;
  border: none;
}

.file-element .file-element-type {
  display: block;
  margin: 6px 5px;
  width: 60px;
  float: left;
}

.file-element .file-element-type a {
  display: block;
  width: 50px;
  height: 50px;
  border: 2px solid #fff;
  border-radius: 60px;
  overflow: hidden;
  text-align: center;
  background: #009fe3;
  color: #FFF;
}

.file-element .file-element-type a > i {
  font-size: 22px;
  line-height: 46px;
}

@media (min-width: 1025px) {
  .timeline-left .timeline-row, .timeline-left .timeline-date {
    padding-left: 40px;
  }

  .timeline-icon {
    top: 12px;
  }

  .timeline-left .timeline-icon {
    left: 14px;
  }

  .timeline-left .timeline-icon:after {
    margin-left: 1px;
  }

  .timeline-icon:after {
    width: 3px;
  }
}

.timeline-left:after {
  display: none;
}

.timeline:before {
  display: none;
}

.timeline-row {
  padding-left: 40px;
}

.timeline-icon {
  width: 24px;
  height: 24px;
  background-color: #37474F;
  border-width: 2px;
  text-align: center;
  line-height: 21px;
  color: #ffffff;
}

.steps-container {
  padding: 5px 10px 0px;
  position: relative;
  background: #f0f0f0;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

/*
.steps-container:before {
  content: '';
  position: absolute;
  width: 0;
  height: 100%;

  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;

  border-left: 1px solid #a0a0a0;
}
*/

.steps-container .step-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex: 1 1 auto;

  /*
  margin: 5px 0;
  padding: 5px 0;
  */
}

.steps-container .step-content {
  padding: 5px;
  text-align: center;
  background: #f0f0f0;
  width: 100%;
  max-width: 600px;
}

.steps-container .step-content .panel {
  text-align: left;
}

.step-content .panel .heading-elements {
  right: 15px;
}

.inline-attachment {
  padding: 3px 10px;
  border-radius: 8px;
  background: #eee;
  border: 1px solid transparent;

  -webkit-transition: border-color 120ms;
  -moz-transition: border-color 120ms;
  -ms-transition: border-color 120ms;
  -o-transition: border-color 120ms;
  transition: border-color 120ms;
}

.inline-attachment:hover {
  border-color: #26A69A;
}

.inline-attachment .attachment-options {
  visibility: hidden;
  opacity: 0;
  margin-left: 5px;

  -webkit-transition: opacity 120ms, visibility 120ms;
  -moz-transition: opacity 120ms, visibility 120ms;
  -ms-transition: opacity 120ms, visibility 120ms;
  -o-transition: opacity 120ms, visibility 120ms;
  transition: opacity 120ms, visibility 120ms;
}

.inline-attachment > a {
  color: #666;
}


.inline-attachment:hover .attachment-options {
  visibility: visible;
  opacity: 1;
}

.inline-attachment .attachment-options i {
  font-size: 10px;
}

.form-control {
  border: 1px solid #999;
}

.form-control:focus {
  border-color: #37474F
}

.select2-selection--single:not([class*=bg-]):not([class*=border-]) {
  border: 1px solid #aaaaaa;
}

.form-group.with-help .select2-selection--single .select2-selection__arrow:after {
  content: '' !important;
}

.azienda-box {
  position: relative;
  border: 1px solid #ddd;
  padding: 15px 15px 0;
  margin-bottom: 10px;
}

.azienda-box *[role="delete"] {
  width: 24px;
  height: 24px;
  text-align: center;
  line-height: 26px;
  background: #fff;
  border: none;
  border-radius: 24px;

  position: absolute;
  top: -8px;
  right: -8px;
}

/*
 * Color picker
 */
.sp-dd {
  display: none;
}

.sp-replacer {
  border-color: #999;
}

.sp-replacer.sp-light {
  display: block;
  height: 37px;
}

.sp-preview {
  display: block;
  width: 100%;
  margin: 0;
}

.position-relative {
  position: relative !important;
}

.sort-on-hover-container:hover i.sort-on-hover:before {
  font-size: 12px;
  color: #333;
  content: "\ed4a";
}

.search-bar {
  margin-right: 25px;
  padding: 4px;
}
