/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}



/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers:
 * http://juicystudio.com/article/screen-readers-display-none.php
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-o-min-device-pixel-ratio: 1/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}



/* ==========================================================================
   Josep's custom styles
   ========================================================================== */


.w30{
    width:30%;
}
.wa{
    width:auto !important;
}
.marg-top-1{
    margin-top:1em;
}
.marg-top-2{
    margin-top:2em;
}

.input-group-addon{
    padding:8px !important; /* PER CRHOME HAURIA DE SER 0; PER IE 8px*/
    min-width: 10px;
}

.columna-boto-anadir{
    width:140px;
    text-align: center;
}

.columna-boto-anadir:hover a,
.button-column a[title]
{
    text-decoration: none;
}

.grid-view th{
    background-color: #ACDEF7 !important;
}


#seleccion-grid{
    color: #191B1B;
}

.grid-view .glyphicon{
    color: #45B7ED;
    font-size: 1.5em;
}

#informe-grid .glyphicon{
    color: #191B1B;
}

#informe-grid .glyphicon:hover{
    color: #393E3E;
}

.grid-view .button-column{
    min-width: 100px;
}

#informe-grid .button-column{
    min-width: 115px;
}

.grid-view .glyphicon:hover
{
    -ms-transform: scale(1.2,1.2); /* IE 9 */
    -webkit-transform: scale(1.2,1.2); /* Safari */
    transform: scale(1.2,1.2);
    transition:0.1s linear;
    
}

.negrita{
    font-weight: 600;
}

.datos-paciente{
    border: 1px solid #bce8f1;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px; 
    float:left;
    width:100%;
}

.search{
    
}
.search input{
    margin-left:1em;
}

select{
    min-height: 25px;
}


/* INFORME VIEW */
#informe-view tbody{
    border:1px solid black;
}

#informe-view .odd{
    background-color: rgba(172, 222, 247, 0.46);
}

#icon-search{ cursor: pointer;}

.input-group-addon{
    max-width: 2px;
}
.input-group-addon, .input-group-addon input{
    cursor: pointer;
}





.boto-selected{
    background-color: #e6e6e6 !important;
    border-color: #adadad !important;
}
.boto-form{
    margin-top:0px;
    margin:10px !important;
}

.boto{
    background-color: #ACDEF7;
    color: #2f6079;
    border: 1px solid #bce8f1;
    text-decoration: none;

    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px; 

    /*position: relative;  Si no hi ha position:relative desapareix el fons en IE */
    /*z-index:0;*/
    /*behavior:url('http://rentcondos4less.cloudmedia.biz/app/webroot/js/PIE.htc');*/
    /*-ms-behavior:url('http://rentcondos4less.cloudmedia.biz/app/webroot/js/PIE.htc');*/
    behavior: url('/nutrikabi/js/PIE/PIE.htc');
}

.boto:hover{
    text-decoration: none;
    background-color: #bce8f1;
}

.bt{
    padding:8px;
    margin:10px 7px;
}

.btn{
    padding:7px !important;
}

.boto-biblio{
    margin-bottom:-5em;
}

.container-bibliografia{
    /*width:70%;*/
    line-height: 1.7em;
}

.container-subtitle{
    margin-top:-1.4em;
    overflow: auto;
    zoom:1;
    width:100%;
}
.container-subtitle,.container-subtitle h3{
    float:left;
}

.container-subtitle .boto{
    float:right;
    vertical-align: middle;
}

.menu-nav{
    font-size: 18px;
}

.menu-nav li{
    margin: 0 .1em;
    margin-top:-.2em;
    float:left;
}



#menu-collapsed{
        display:none;
}

#menu-collapsed li, #menu-collapsed button{
        font-size: 16px !important;
}
.user-icon{ display: none; margin-top:.5em;}
.user-icon span{ font-size: 2em;}

@media only screen and (max-width: 993px){
    .subtitle{
        font-size: 20px;
    }
    .user-icon{
        display: block;
    }
    .datos-usuario{
        display:none;
    }
}
@media only screen and (max-width: 768px){
    #menu-collapsed{
        display:block;
    }
    #menu-no-collapsed{
        display:none;
    }
}


/*@media only screen and (max-width: 1008px){*/

    #search-form input, #search-form select{
        display:block;
    }

    #search-form .boto{
        margin:.5em 0;
    }  
/*}*/
#seleccion-grid, #informe-grid, .border-blau{
    border:1px solid #ACDEF7;
    border-radius: 5px;
    margin-bottom: 1.5em;
}



.highlight {
  padding: 9px 14px;
  margin-bottom: 14px;
  background-color: #E8E8E8;
  border: 1px solid #e1e1e8;
  border-radius: 4px;
}

.datos-usuario {
    margin-top:1em;
}
.datos-usuario label{
    margin-left: 1em;
}

.busqueda-estadisticas input, .form-patologia{
    min-width:190px;
}

.busqueda-estadisticas select, #SearchForm_patolSinDefinir-wrapper{
    min-width:190px;
}

.form-patologia input, .form-patologia label{
    display: inline !important;
}

.pagination{
    margin:0 !important;
}

.dataTables_info{
    margin-left: 0.6em;
}

/* MIDA BOTONS */
.navbar-nav>li>a{
    padding:8px !important;
}

.panel-heading{
    background-color: #ACDEF7 !important;
    color: #2f6079 !important;
    /*border: 1px solid #bce8f1;*/
}

.clickable{
    cursor: pointer;
}

.panel-heading div {
    margin-top: -18px;
    font-size: 15px;
}
.panel-heading div span{
    margin-left:5px;
}
.panel-ranking .panel-body, .form-patologia .panel-body{
    display: none;
}

.form-patologia{
    margin-top:1em;
}

.form-patologia .panel-heading{
    background-color: #F5F5F5 !important;
    /*border: 1px solid #bce8f1;*/

}

#SearchForm_patolSinDefinir-wrapper{
    margin-top:1em !important;
    margin-bottom:0 !important;
}

.btn-selected{
    border: 1px solid #2f6079 !important;
}

.vista-previa{
    border:1px solid black;
}

.container-maestras h3{
    padding-left: 0.8em;
}

#medico-form{
    width:40%;
}


#medico-form .form-group input[type='text'],
#medico-form .form-group input[type='checkbox'],
#medico-form .form-group select
{
    float:right;
    min-width:250px;
}

.glyphicon-mini{
    font-size:1.2em !important;
    vertical-align: sub;
}

.qq-upload-button{
    background-color: #ACDEF7 !important;
}

.link-soso{
    text-decoration: none;
    color:inherit;
}

.link-soso:hover{
    text-decoration: none;
}