html, body
{
    height: 100%;
}

html, body, input, select
{
    color: #2f455b;
    font-size: 16px;
    font-family: 'Lato', sans-serif;
}

.graf_adm
{
    display: inline-block;
    margin-left: 2%;
    margin-top: 2%;
    font-size: 18px;
    text-align: center;
}

td,th,table {
    font-size: 12px;  
}

a
{
    text-decoration: none;
    color: black;
}

button, input[type=submit], a.button
{
    background-color: #ee7a2e;
    color: white;
    font-weight: bold;
    padding: 10px;
    border: 2px solid #2f455b;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin: 5px;
}

button a
{
    color: white;
    text-decoration: none;
}

#left_menu
{
    float: left;
}

#right_menu
{
    float: right;
}

.submenu_container
{
    position: relative;
    display: none;
}

.submenu
{
    position: absolute;
    z-index: 200;
    background-color: white;
    border-radius: 9px;
    list-style-type: none;
    padding: 0;
    margin: 0;
    left: 14px;
    width: 100px;
}

.submenu li
{
    text-align: center;
    border: 1px solid #2f455b;
    background-color: white;
    border-radius: 5px;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 10px;
    padding-right: 10px;
}

#main_content
{
    padding: 30px;
    background-color: rgba(47, 69, 91, 0.15);
    border: 2px solid #2f455b;
    border-radius: 10px;
    
    width:94%;
    min-height: 100%;
    margin: 1% auto;
}

#login
{
    width: 30%;
    margin: 0 auto;
    text-align: center;
    font-weight: bold;
}

#login input
{
    margin-top: 3%;
}

.pres
{
    min-height: 100px;
    padding: 10px;
    border: 2px solid #2f455b;
    border-radius: 8px;
    margin-bottom: 20px;
    cursor: pointer;
}

#add_button
{
    display: inline-block;
    width: 100px;
    font-size: 100px;
    margin-top: 50px;
}

#nome_cliente
{
    font-size: 30px;
    font-weight: bold;
    display: block;
    float: left;
}

#titolo_sezione
{
    font-size: 30px;
    font-weight: bold;
    float: right;
    display: block;
}

#add_button, .graf_adm
{
    float: left;
}

#canvas_griglia, .canvas_planogramma
{
    border: 2px solid #2f455b;
    border-radius: 8px;
    background-color: white;
    margin: 20px auto;
    display: block;
}

#canvas_griglia
{
    cursor: -webkit-grab; cursor: -moz-grab;    
}

#canvas_griglia:active
{
    cursor: -webkit-grabbing; cursor: -moz-grabbing;
}

#griglia_player_panel
{
    float: left;
}

#griglia_product_panel
{
    float: right;
}

#tab_prod_grid, #tab_strutture_grid,
#tab_strut_plan, #tab_prod_plan
{
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
}

#tab_prod_grid tr, #tab_strutture_grid tr,
#tab_strut_plan tr, #tab_prod_plan tr
{
    background-color: white;    
}

#tab_prod_grid tr:nth-child(2n), #tab_strutture_grid tr:nth-child(2n),
#tab_strut_plan tr:nth-child(2n), #tab_prod_plan tr:nth-child(2n)
{
    background-color: #bfd6ed;
}

#tab_prod_grid td, #tab_strutture_grid td,
#tab_strut_plan td, #tab_prod_plan td
{
    padding: 5px;
    border: 1px solid gray;
    text-align: center;
}

.campo_form_prodotto{
    float:left;
    text-align: center;
    margin:2px;
}

.campo_form_strutture{
    float:left;
    text-align: center;
    margin:2px;
}

#popup
{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

#popup_content
{
   position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto auto auto auto;
    background-color: #dfe2e5;
    width: 70%;
    height: 90%;
    color: #2f455b;
    border: 2px solid #2f455b;
    padding: 5px;
    overflow-y: auto;
}

#popup_content #close
{
    position: absolute;
    right: 5px;
    top: 5px;
    cursor: pointer;
}

#popup_griglia_op
{
    font-size: 120%;    
}

#popup_griglia_op input
{
    margin-right: 35px;
}

#griglia_zoom {
    /*removes default webkit styles*/
    -webkit-appearance: none;
    
    /*fix for FF unable to apply focus style bug */
    border: 1px solid white;
    
    /*required for proper track sizing in FF*/
    width: 300px;
    margin: 0 auto;
}
#griglia_zoom::-webkit-slider-runnable-track {
    width: 300px;
    height: 5px;
    background: #bfd6ed;
    border: none;
    border-radius: 3px;
}
#griglia_zoom::-webkit-slider-thumb {
    -webkit-appearance: none;
    border: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #ee7a2e;
    margin-top: -4px;
}
#griglia_zoom:focus {
    outline: none;
}
#griglia_zoom:focus::-webkit-slider-runnable-track {
    background: #bfd6ed;
}

#griglia_zoom::-moz-range-track {
    width: 300px;
    height: 5px;
    background: #bfd6ed;
    border: none;
    border-radius: 3px;
}
#griglia_zoom::-moz-range-thumb {
    border: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #ee7a2e;
}

/*hide the outline behind the border*/
#griglia_zoom:-moz-focusring{
    outline: 1px solid white;
    outline-offset: -1px;
}

#griglia_zoom::-ms-track {
    width: 300px;
    height: 5px;
    
    /*remove bg colour from the track, we'll use ms-fill-lower and ms-fill-upper instead */
    background: transparent;
    
    /*leave room for the larger thumb to overflow with a transparent border */
    border-color: transparent;
    border-width: 6px 0;

    /*remove default tick marks*/
    color: transparent;
}

#griglia_zoom::-ms-fill-lower {
    background: #bfd6ed;
    border-radius: 10px;
}

#griglia_zoom::-ms-fill-upper {
    background: #bfd6ed;
    border-radius: 10px;
}

#griglia_zoom::-ms-thumb {
    border: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #ee7a2e;
}

#griglia_zoom:focus::-ms-fill-lower {
    background: #bfd6ed;
}

#griglia_zoom:focus::-ms-fill-upper {
    background: #bfd6ed;
}

#print div, #products div, #price_gap div, #players div, #structures div, #generic_div div, #products_highlight
{
    padding: 10px;
    border: 2px solid #2f455b;
    border-radius: 8px;
    background-color: white;
}

#print input[type=checkbox], #products input[type=checkbox], #price_gap input[type=checkbox],
#players input[type=checkbox]
{
    margin-left: 5px;
    margin-top: 5px;
    margin-bottom: 15px;
}

.canvas_planogramma
{
    float: left;
    display: none;
}

.canvas_planogramma:nth-child(odd)
{
    margin-left: 30px;
}

#quadranti_graf, #analysis_table
{
    margin: 20px;
    border: 2px solid #2f455b;
    border-radius: 8px;
    float: left;
}

#quadranti_graf
{
    display: none;
}

#quadranti_graf td, #analysis_table td
{
    min-width: 50px;
    padding: 20px;
    min-height: 50px;
}

#quadranti_graf td
{
    font-weight: bold;
    color: white;
    text-shadow:
   -2px -2px 0 #000,  
    2px -2px 0 #000,
    -2px 2px 0 #000,
     2px 2px 0 #000;
}

#quadranti_graf #q_1
{
    background-color: #FF0000;
}

#quadranti_graf #q_2
{
    background-color: #00FF00;
}

#quadranti_graf #q_3
{
    background-color: #0000FF;
}

#quadranti_graf #q_4
{
    background-color: #FFFF00;
}

#hover
{
    background-color: white;
    border: 2px solid #2f455b;
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 500;
    padding-top: 1%;
    padding-bottom: 1%;
    padding-left: 2%;
    padding-right: 2%;
    width: 94%;
}

.colorpicker_submit:after
{
    content:"OK";
    color: white;
    padding: 2px;
    font-size: 80%;
}

.colorpicker_submit
{
    background: none !important;
    border: 1px solid white;
}