/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */

/*
 * 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,
button,
input,
select,
textarea {
    color: #222;
	font-family: 'Open Sans', sans-serif;
}

html, body { margin:0px; padding:0px; font-family: 'Open Sans', sans-serif; height:100%}
html {
    font-size: 62.5%;
    line-height: 1.4;
}
ul { margin:0; padding:0}
/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * 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 images, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

audio,
canvas,
img,
video {
    vertical-align: middle;
	max-width:100%;
	height:auto;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browse Happy prompt
   ========================================================================== */

.browsehappy {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* all */
::-webkit-input-placeholder { color:#ccc; }
::-moz-placeholder { color:#ccc; } /* firefox 19+ */
:-ms-input-placeholder { color:#ccc; } /* ie */
input:-moz-placeholder { color:#ccc; }

.div_loading { width:100%; height:100%; position:fixed; background:#ec1c24; font-size:5em; color:#FFF; z-index:90000040; padding:2em}
.tooltip { display:none; position:absolute;	border:1px solid #333; background-color:#fff; border-radius:0.5em; padding:0.5em; color:#000; font-size:1em; text-transform:uppercase; font-weight:bold }

/*  SOLO HP  */
.primo { width:300px; height:350px;position:absolute; left:0; right:0; top:0; bottom:0; margin:auto;}
.box_login { background:#ec1c24; width:300px; -webkit-border-radius: 20px; -moz-border-radius: 20px; border-radius: 20px; box-shadow:0px 0px 20px #666; -webkit-box-shadow:0px 0px 20px #666; -moz-box-shadow: 0px 0px 20px #666; text-align:center;}
.box_login_alto_logo { padding:20px 0px; border-bottom:1px solid #F68E92;}
.box_login_alto_logo img { height:30px; width:auto;}
.box_login_testo h1 { margin:0px; padding:10px 0px; text-transform:uppercase; font-size:20px; font-weight:300; color:#FFF}
.box_login_user i { color:#fff; font-size:18px; position:absolute; margin-top:5px; margin-left:6px; text-shadow:0px 0px 2px #666; -webkit-text-shadow:0px 0px 2px #666; -moz-text-shadow: 0px 0px 2px #666; }
.box_login_psw i { color:#fff; font-size:18px; position:absolute; margin-top:5px; margin-left:5px; text-shadow:0px 0px 2px #666; -webkit-text-shadow:0px 0px 2px #666; -moz-text-shadow: 0px 0px 2px #666;   }
.box_login_user { margin-bottom:10px  }
.box_login_psw {  }
.box_login_submit { margin-top:10px; padding-bottom:30px}
.box_login_submit i {color:#000; font-size:1.8em; position:absolute; margin-top:7px; margin-left:10px;}
.box_login_submit input { -webkit-border-radius: 10px; -moz-border-radius: 10px; border-radius: 10px; width:130px; margin:0 auto; background:#FFF; padding:5px 0px; border:none; text-transform:uppercase; letter-spacing:1px; padding-left:10px;box-shadow:0px 0px 2px #666; -webkit-box-shadow:0px 0px 2px #666; -moz-box-shadow: 0px 0px 2px #666; font-size:1.4em }
.box_login_submit a { -webkit-border-radius: 10px; -moz-border-radius: 10px; border-radius: 10px; width:130px; margin:0 auto; background:#FFF; padding:5px 0px;; margin-bottom:25px; text-decoration:none; border:none; text-transform:uppercase; letter-spacing:1px; padding-left:10px;box-shadow:0px 0px 2px #666; -webkit-box-shadow:0px 0px 2px #666; -moz-box-shadow: 0px 0px 2px #666; display:inline-block; color:#000 }
.box_login_submit input:hover { color:#ec1c24}
.box_login_user input, .box_login_psw input { border:0px; background:none; width:100px; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px;width:130px; margin:0 auto; background:#ec1c24; padding:5px 5px 5px 30px; font-size:13px; color:#FFF; box-shadow:0px 0px 2px #666; -webkit-box-shadow:0px 0px 2px #666; -moz-box-shadow: 0px 0px 2px #666;}
.box_login_testo_border { -webkit-border-radius: 10px; -moz-border-radius: 10px; border-radius: 10px; width:200px; margin:0 auto; background:#FFF; padding:20px 0px}
.box_login_messaggi { position:absolute; background:#ec1c24;  padding:10px 20px; width:140px; height:65px; margin:0px 10px;margin-top:-10px;-webkit-border-radius: 10px; -moz-border-radius: 10px; border-radius: 10px; color:#FFF; z-index:10; text-transform:uppercase; font-size:13px; display:none}
.password { margin:0 auto; width:300px; text-align:center; padding-top:10px; }
.password a:hover { color:#000}
.password a {  text-decoration:none; color:#666; text-transform:uppercase; font-size:12px;}

/*  INTERNO  */
#tutto { position:absolute; top:0px; left:200px; padding:20px; padding-top:40px; font-size:1.8em }
h1 { margin:0px; padding:0px; padding-bottom:10px; margin-bottom:20px; border-bottom:1px solid #ec1c24}
#tabella_lista { width:100%}
#tabella_lista a { color:#333}
#tabella_lista a:hover { color:#000; text-decoration:none}
#tabella_lista th { font-size:12px; text-align:left; border:1px solid #ccc; padding:10px}
#tabella_lista td { font-size:0.8em; border:1px solid #eee; padding:5px;}
#tabella_lista td.tabella_icon { font-size:20px;}
.tabella_img_code { text-align:center}
.tabella_mod { background:#CCC}
.tabella_input input { min-width:200px}
.tabella_button { background:none; border:none}
.tab_no_visibile { display:none; background:#CCC}
.tab_no_visibile a { background:#FFF; padding:3px 10px; margin:0 10px; display:inline-block; text-decoration:none }
.tab_no_visibile a:hover { background:#999}
.tab_img { display:inline-block; height:35px; width:35px; background:#CCC; line-height:35px; margin-right:10px; text-align:center;}
#tabella_lista a.tab_attivo_0 { color:#C00}
#tabella_lista a.tab_attivo_1 { color:#006633}
#menu { font-size:1.6em}
.colorbox_h1 { padding:1em; border:none; font-size:1.8em; text-align:center;  }

.qrcode_misura { float:left; margin:0 5px; }

.mod_nome { font-size:0.8em; text-transform:uppercase; padding-bottom:0.1em}
.mod_nome i { font-style:normal; color:#999}
.mod_nome a { color:#ec1c24}
.mod_input input, .mod_input select, .mod_input textarea { padding:3px; width:350px; border:1px solid #CCC; font-size:12px; margin-bottom:15px}
.mod_input textarea { height:250px}
.mod_submit input, .mod_submit2 input, .qrcode_loading { font-size:15px; margin-bottom:60px; cursor:pointer; border:1px solid #ccc; padding:10px 25px; background:#e5e5e5; display:inline-block}

/*  ALTO  */
#alto { position:fixed; right:10px; top:0px; line-height:25px; color:#666; font-size:11px; z-index:900000 }
.alto_benvenuto { display:inline-block; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px; -moz-border-radius-bottomright: 5px; -moz-border-radius-bottomleft: 5px; border-bottom-right-radius: 5px; border-bottom-left-radius: 5px; border:1px solid #ccc; border-top:none; padding:0px 10px; margin-right:7px; background:#e5e5e5}
.alto_logout { display:inline-block; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px; -moz-border-radius-bottomright: 5px; -moz-border-radius-bottomleft: 5px; border-bottom-right-radius: 5px; border-bottom-left-radius: 5px; border:1px solid #ccc; border-top:none; padding:0px 10px;background:#e5e5e5}
.alto_logout a { color:#666; text-transform:uppercase; text-decoration:none}
.alto_logout a:hover { color:#000}

.item_search { margin-bottom:15px; font-size:0.7em}
.item_search a { color:#000}
.item_search_icon { float:left; font-size:3em;color:#ec1c24; border-width:1px; border-style:solid; border-color:#e5e5e5; width:60px; text-align:center; transition: all 0.3s; -moz-transition: all 0.3s; -webkit-transition: all 0.3s; -o-transition:all 0.3s;}
.item_search_img {float:left; padding-right:20px}
.item_search_img img {border:2px solid #e5e5e5; transition: all 0.3s; -moz-transition: all 0.3s; -webkit-transition: all 0.3s; -o-transition:all 0.3s;}
.item_search a:hover .item_search_icon, .item_search a:hover .item_search_img img { border-color:#ec1c24}
.item_text_no_left { margin-left:90px}
.item_search a { text-decoration:none}
.item_text_no_left b { text-transform:uppercase; color:#ec1c24; font-size:1.4em}
.item_text_no_left p { margin:0px; padding:0px; padding-top:4px}

#tabella_lista { margin-bottom:20px}
#tabella_lista_length { margin-bottom:20px;}
.dataTables_paginate { border:1px solid #CCC; padding:0 !important; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px;}
.paginate_button { padding:3px !important}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.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: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, 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;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   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: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        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 for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
