/*
 * Base structure
 */

html,
body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-flow: column;
}

#header {
    flex-grow: 0;
    flex-shrink: 1;
    flex-basis: auto;
}

#main {
    position: relative;
    width: 100%;
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: auto;
    padding: 0 15px;
    margin: 15px auto;
}

.navbar {
    margin-bottom: 0;
    border-radius: 0;
    border-width: 0 0 1px;
}

.navbar.agenda .nav>li>a {
    color: rgb(207, 113, 6);
}

.thumbnail.active {
    border-color: #337ab7;
}

#main .page-header:first-child {
    margin-top: 0;
}

@media (min-width: 768px) {
    .modal-full {
        width: 90%;
    }
}

.unselectable {
    -webkit-user-select: none;
    /* Chrome/Safari */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* IE10+ */
    user-select: none;
}

.table-overflow {
    table-layout: fixed;
}

.table-overflow td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.table-nonfluid {
    width: auto !important;
}

.container-fluid>.pager:first-child {
    margin-top: 0;
}

/*
 * Placeholder dashboard ideas
 */

.placeholders {
    margin-bottom: 30px;
    text-align: center;
}

.placeholders h4 {
    margin-bottom: 0;
}

.placeholder {
    margin-bottom: 20px;
}

.placeholder img {
    display: inline-block;
    border-radius: 50%;
}

.mt {
    margin-top: 15px;
}

.mb {
    margin-bottom: 15px;
}

.ml {
    margin-left: 15px;
}

.mr {
    margin-right: 15px;
}

.ml-xl {
    margin-left: 20px;
}

.mr-xl {
    margin-right: 20px;
}

hr {
    margin-bottom: 10px !important;
    margin-top: 10px !important;
}

.pointer {
    cursor: pointer;
}

table.table-padding td {
    padding: 10px !important;
}

.margin {
    margin: 0 6px;
}

/**
 * Select 2
*/
.select2-container--default {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    height: 32px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 32px;
}

/**
 * Datatables
 */

.panel-dt .dataTables_wrapper {
    padding-top: 15px;
    padding-bottom: 15px;
}

.panel-dt .dataTables_length,
.panel-dt .dataTables_info {
    padding-left: 15px;
}

.panel-dt .dataTables_filter,
.panel-dt .dataTables_paginate {
    padding-right: 15px;
}

.panel-dt .table {
    border-left: none;
    border-right: none;
}

.panel-primary .panel-heading a {
    color: #fff;
}

.panel-default .panel-heading a {
    color: #337ab7;
}

.panel-primary .panel-heading a .glyphicon {
    color: #333;
}

/**
 * File upload
 */

.btn-file {
    position: relative;
    overflow: hidden;
}

.btn-file input[type=file] {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 100%;
    min-height: 100%;
    font-size: 100px;
    text-align: right;
    filter: alpha(opacity=0);
    opacity: 0;
    outline: none;
    background: white;
    cursor: inherit;
    display: block;
    /*display: none;*/
}

.img-upload {
    width: auto;
    max-height: 90px;
}

/**
 * File upload drop zone
 */

.upload-drop-zone {
    height: 150px;
    border-width: 2px;
    margin-bottom: 20px;
    color: #ccc;
    border-style: dashed;
    border-color: #ccc;
    line-height: 150px;
    text-align: center
}

.upload-drop-zone.drop {
    color: #222;
    border-color: #222;
}

/* Images */
@media (min-width: 992px) {
    .img-upload {
        max-height: 120px;
    }
}

.toast {
    cursor: pointer;
    width: 400px;
    height: 20px;
    height: auto;
    position: fixed;
    left: 50%;
    top: 25%;
    margin-left: -200px;
    background-color: #383838;
    color: #F0F0F0;
    font-family: Calibri;
    font-size: 20px;
    padding: 10px;
    text-align: center;
    border-radius: 2px;
    -webkit-box-shadow: 0px 0px 24px -1px rgba(56, 56, 56, 1);
    -moz-box-shadow: 0px 0px 24px -1px rgba(56, 56, 56, 1);
    box-shadow: 0px 0px 24px -1px rgba(56, 56, 56, 1);
}

/* Carousel custom */

.carousel-caption-custom .carousel-caption {
    position: static;
    padding-bottom: 0;
    padding-top: 0;
    bottom: 0;
    color: #000000;
}

.carousel-caption-custom .item {
    padding-top: 10px;
}

.carousel-caption-custom .carousel-caption * {
    text-shadow: none;
}

/* Autocomplete */

.autocomplete-suggestions {
    text-align: left;
    cursor: default;
    border: 1px solid #ccc;
    border-top: 0;
    background: #fff;
    box-shadow: -1px 1px 3px rgba(0, 0, 0, .1);
    /* core styles should not be changed */
    position: absolute;
    display: none;
    z-index: 99999;
    max-height: 254px;
    overflow: hidden;
    overflow-y: auto;
    box-sizing: border-box;
}

.autocomplete-suggestion {
    position: relative;
    padding: 0 .6em;
    line-height: 23px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1.02em;
    color: #333;
}

.autocomplete-suggestion b {
    font-weight: normal;
    color: #1f8dd6;
}

.autocomplete-suggestion.selected {
    background: #f0f0f0;
}

/* Utils */

.vcenter {
    float: none;
    vertical-align: middle;
    display: table-cell;
}

.top15 {
    position: relative;
    top: 15px;
}

div.text-center>div.dataTables_paginate {
    text-align: center;
}

.nm {
    margin: 0;
}

.error_bloc {
    border: 2px dotted red;
    margin: 1%;
    padding: 1%;
}

.wordwrap {
    word-wrap: break-word;
    word-break: break-all;
}

.img-xs {
    max-width: 160px;
    max-height: 120px;
}

.img-sm {
    max-width: 320px;
    max-height: 240px;
}

.img-md {
    max-width: 640px;
    max-height: 480px;
}

.img-lg {
    max-width: 1280px;
    max-height: 960px;
}

.img-responsive.img-xs,
.img-responsive.img-sm,
.img-responsive.img-md,
.img-responsive.img-lg {
    max-width: 100%;
}

.well {
    word-wrap: break-word;
}

.panel .collapse.in {
    display: table;
    width: 100%;
}

/* Badges */

.badge-danger {
    background-color: #b94a48;
}

.badge-danger:hover {
    background-color: #953b39;
}

.badge-warning {
    background-color: #f89406;
}

.badge-warning:hover {
    background-color: #c67605;
}

.badge-success {
    background-color: #468847;
}

.badge-success:hover {
    background-color: #356635;
}

.badge-info {
    background-color: #3a87ad;
}

.badge-info:hover {
    background-color: #2d6987;
}

.badge-inverse {
    background-color: #333333;
}

.badge-inverse:hover {
    background-color: #1a1a1a;
}

.text-em {
    font-style: italic;
}

.text-strong {
    font-weight: bold;
}

h4 a {
    color: #337ab7 !important;
}

.grey {
    color: rgb(168, 167, 167) !important;
}

/* Icones */
.it_vg {
    background-position: -0px -0px;
  }
  .it_broc {
    background-position: -64px -0px;
  }
  .it_bourses {
    background-position: -128px -0px;
  }
  .it_collec {
    background-position: -192px -0px;
  }
  .it_marches {
    background-position: -256px -0px;
  }
  .it_jeux {
    background-position: -320px -0px;
  }
  .it_sport {
    background-position: -0px -64px;
  }
  .it_fete {
    background-position: -64px -64px;
  }
  .it_culture {
    background-position: -128px -64px;
  }
  .it_animal {
    background-position: -192px -64px;
  }
  .it_vente {
    background-position: -256px -64px;
  }
  .it_solidaire {
    background-position: -320px -64px;
  }

  [class^='it_'], [class*=' it_']
  {
    width: 64px;
    height: 64px;
    background-image: url(/img/sprite/types.png);
    display: inline-block;
    outline: none;
    transform-origin: 0 0;
    transform: translate3d(0, 0, 0) scale(0.5);
  }

/* Textarea */
textarea.grow {
    field-sizing: content;
}
