/* TODO : à supprimer quand on aura supprimé tous les listings bruts */
td, th {
    padding: 0 2px;
}

dl {
    margin: 0;
}

.input-group-addon:first-child { 
    border-width: 1px;
}

.fa.fa-14x {
    font-size: 1.4em;
    padding : 1px;
}

/* onglets pour les pages accueillants et enfants */
.nav-tabs {
    margin-bottom: 16px;
}

/* https://coderwall.com/p/0jezca/vertical-spacing-for-bootstrap-columns */
/*@media (max-width: 768px) {*/
/*
[class*="col-"]{
    margin-bottom: 3px;
}*/

/* timeline de disponibilités (version résumé en ligne) */
#calendrierDispo .row{
    margin:0;
}
ul.calendarBar{
    display: flex;
    justify-content: space-between;
    margin: 0;
    padding: 0;
    min-width: 150px;
}
.calendarBar li.day{
    display: inline-block;
    list-style-type: none;
    flex: 1 1 auto;
}
.calendarBar li.day:hover{
    opacity:0.7;
}
.calendarBar li.separator.first{ 
    display: inline-block;
    list-style-type: none;   
    border-left: 1px solid #ddd;
    width:0px;
    height: 100%;
}
.calendarBar li div{
    height: 1em;
    border-bottom: 1px solid #ddd;
}
.calendarBar li div.libre {
    background: #74C080;
}
.calendarBar li div.occupe {
    background: #FA9F47;
}
.calendarBar .tooltip {
    min-width:150px;
}

/* gestion du bloc collapsable identité */
#synthese h4 .fa.fa-chevron-right, 
#synthese h4 .fa.fa-chevron-down  {
    display: none;
}

#synthese .coordonnees.collapse{
    display: block;
}

.table-striped .row-header{
    height: 3em;
    font-size: 1.1em;
    background-color: #eee;;
}

.table-striped>div:nth-of-type(odd):not(.bg-danger):not(.row-header) {
    background-color: #f9f9f9;
}

#accueillants .row,
.table>tbody>tr>td {
    vertical-align: middle;
    padding: 5px;
    margin:0;
}

#accueillants h4,
table h4{
    font-size:1em;
    font-weight: bold;
}
#accueillants div[data-toggle="collapse"]:hover {
    cursor:pointer;
}
#accueillants div[data-toggle="collapse"] > .identity,
td[data-toggle="collapse"] > .identity{
    margin-right: 20px;
}

div[aria-expanded=true] .fa-chevron-right,
td[aria-expanded=true] .fa-chevron-right {
    display: none;
}
div[aria-expanded=false] .fa-chevron-down,
td[aria-expanded=false] .fa-chevron-down{
    display: none;
}

/* timeline verticale à bulles (enfants) */
.timeline {
    list-style: none;
    padding: 20px 0 20px;
    position: relative;
}
.timeline:before {
    top: 0;
    bottom: 0;
    position: absolute;
    content: " ";
    width: 3px;
    background-color: #eeeeee;
    left: 50%;
    margin-left: -1.5px;
}
.timeline > li {
    margin-bottom: 20px;
    position: relative;
}
.timeline > li:before,
.timeline > li:after {
    content: " ";
    display: table;
}
.timeline > li:after {
    clear: both;
}
.timeline > li:before,
.timeline > li:after {
    content: " ";
    display: table;
}
.timeline > li:after {
    clear: both;
}
.timeline > li > .timeline-panel {
    width: 46%;
    float: left;
    border: 1px solid #d4d4d4;
    border-radius: 2px;
    padding: 20px;
    position: relative;
    -webkit-box-shadow: 0 1px 6px rgba(0, 0, 0, 0.175);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.175);
}
.timeline > li > .timeline-panel:before {
    position: absolute;
    top: 26px;
    right: -15px;
    display: inline-block;
    border-top: 15px solid transparent;
    border-left: 15px solid #ccc;
    border-right: 0 solid #ccc;
    border-bottom: 15px solid transparent;
    content: " ";
}
.timeline > li > .timeline-panel:after {
    position: absolute;
    top: 27px;
    right: -14px;
    display: inline-block;
    border-top: 14px solid transparent;
    border-left: 14px solid #fff;
    border-right: 0 solid #fff;
    border-bottom: 14px solid transparent;
    content: " ";
}
.timeline > li > .timeline-badge {
    color: #fff;
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 1.4em;
    text-align: center;
    position: absolute;
    top: 16px;
    left: 50%;
    margin-left: -25px;
    background-color: #999999;
    z-index: 100;
    border-top-right-radius: 50%;
    border-top-left-radius: 50%;
    border-bottom-right-radius: 50%;
    border-bottom-left-radius: 50%;
}
.timeline > li.timeline-inverted > .timeline-panel {
    float: right;
}
.timeline > li.timeline-inverted > .timeline-panel:before {
    border-left-width: 0;
    border-right-width: 15px;
    left: -15px;
    right: auto;
}
.timeline > li.timeline-inverted > .timeline-panel:after {
    border-left-width: 0;
    border-right-width: 14px;
    left: -14px;
    right: auto;
}
.timeline-badge.primary {
    background-color: #2e6da4 !important;
}
.timeline-badge.success {
    background-color: #3f903f !important;
}
.timeline-badge.warning {
    background-color: #f0ad4e !important;
}
.timeline-badge.danger {
    background-color: #d9534f !important;
}
.timeline-badge.info {
    background-color: #5bc0de !important;
}
.timeline-title {
    margin-top: 0;
    color: inherit;
}
.timeline-body > p,
.timeline-body > ul {
    margin-bottom: 0;
}
.timeline-body > p + p {
    margin-top: 5px;
}

/* peut être combiné avec background-color */
.fond-rayures{
    background: repeating-linear-gradient(
        45deg,
        rgba(255,255,255,0.5),
        rgba(255,255,255,0.5) 10px,
        rgba(255,255,255,0) 10px,
        rgba(255,255,255,0) 20px
        );
}

/**
 * Timeline verticale pour le planning de l'accueillant
 */

.timeline-verticale{
    color: #7f8c97;
    background-color: #e9f0f5;
    /* pour pouvoir placer la ligne du renouvellement d'agrément'*/
    position:relative;
}

/* représente une colonne (une ligne verticale) dans la timeline */
.timeline-verticale-container {
    display:inline-block;
    /* pour pouvoir placer verticalement les accueils */
    position:relative;
}

#timeline-verticale-echelle-temps{
    text-align:right;
    border-right: solid 5px grey;
}

/* pour pouvoir être positionnés à une certaine hauteur */
.timeline-verticale-accueil, .timeline-verticale-evenement, .timeline-verticale-date {
    position:absolute;
}

.timeline-verticale-date {
    right:-9.5px;
    left:0px;
}

/* apparence des barres */
.timeline-verticale-accueil-background {
    position:absolute;
    padding:0px;
    width:80%;
}
.timeline-verticale-accueil {
    border-radius:2px;
    width:100%;
    /* box-shadow: 0 3px 0 #d7e4ed; */
    /* pour permettre au texte de sortir de la bande */
    padding:0px;
    border: 1px solid #0000004d;
}

/* apparence des evenements */
.timeline-verticale-evenement {
    background:white;
    padding: 1.6em;
    box-shadow: 0 3px 0 #d7e4ed;
    margin-right:2em;
}

.timeline-verticale-evenement::before {
    content: '';
    position: absolute;
    top: 16px;
    right: 100%;
    height: 0;
    width: 0;
    border: 7px solid transparent;
    border-right: 7px solid white;
}

.timeline-verticale-texte {
    white-space:nowrap;
    padding-left:.8em;
}


#onglet-timeline-verticale {
    margin: 1em 0;
}
@media only screen and (min-width: 1170px) {
    #onglet-timeline-verticale {
        margin-top: 3em;
        margin-bottom: 3em;
    }
}

@media (max-width: 640px) {
    h3, h4{
        margin-top:5px;
    }
    .nav-tabs>li>a{
        max-width: 100px;
    }
    .form-group{
        margin-bottom: 5px;
    }
}

@media (min-width: 768px) {
    .dl-horizontal dt {
        width:210px;
        white-space: normal;
    }
    .dl-horizontal dd {
        margin-left:215px;
    }
}

/* override bootstrap*/
.tooltip-inner {
    max-width: 350px;
}

