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

.navbar {
  min-height: 38px;
}

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

/*
 * MULTI LEVEL MENU
 */
 .dropdown-submenu {
    position: relative;
}

.dropdown-submenu>.dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
    margin-left: -1px;
    -webkit-border-radius: 0 6px 6px 6px;
    -moz-border-radius: 0 6px 6px;
    border-radius: 0 6px 6px 6px;
}

.dropdown-submenu:hover>.dropdown-menu {
    display: block;
}

.dropdown-submenu>a:after {
    display: block;
    content: " ";
    float: right;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
    border-width: 5px 0 5px 5px;
    border-left-color: #ccc;
    margin-top: 5px;
    margin-right: -10px;
}

.dropdown-submenu:hover>a:after {
    border-left-color: #fff;
}

.dropdown-submenu.pull-left {
    float: none;
}

.dropdown-submenu.pull-left>.dropdown-menu {
    left: -100%;
    margin-left: 10px;
    -webkit-border-radius: 6px 0 6px 6px;
    -moz-border-radius: 6px 0 6px 6px;
    border-radius: 6px 0 6px 6px;
}

/*
 * 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: 2px 7px;
}



/*
 * 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; }
.image-preview-box.cover-box { width: 600px; height: 300px; }
.image-preview-box.locandina-box { width: 180px; height: 255px; }
.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;
  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;
}

.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;
}
*/

.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;
}
