/* ################################### 
     
        STUDIO MEDICO CANAVESANO
             FOGLIO DI STILE
             
###################################### */

/* CSS RESET */

html {
    color: #000;
    background: #FFF;
}
 
body, div, dl, dt, dd, ul, ol, li, h1, h2, h3,
h4, h5, h6, pre, code, form, fieldset, legend,
input, button, textarea, p, blockquote, th, td {
    margin: 0;
    padding: 0;
}
 
table {
    border-collapse: collapse;
    border-spacing: 0;
}
 
fieldset, img {
    border: 0;
}
 
address, caption, cite, code, dfn, em, strong, 
th, var, optgroup {
    font-style: inherit;
    font-weight: inherit;
}
 
del, ins {
    text-decoration: none;
}
 
li {
    list-style: none;
}
 
caption, th {
    text-align: left;
}
 
h1, h2, h3, h4, h5, h6 {
    font-size: 100%;
    font-weight: normal;
}
 
q:before, q:after {
    content: '';
}
 
abbr, acronym {
    border: 0;
    font-variant: normal;
}
 
sup {
    vertical-align: baseline;
}
 
sub {
    vertical-align: baseline;
}
 
/*because legend doesn't inherit in IE */
legend {
    color: #000;
}
 
input, button, textarea, select, optgroup, option {
    font-family: inherit;
    font-size: inherit;
    font-style: inherit;
    font-weight: inherit;
}
 
/*@purpose To enable resizing for IE */
/*@branch For IE6-Win, IE7-Win */
input, button, textarea, select {
    *font-size: 100%;
}

/* FINE CSS RESET */

/* IMPAGINAZIONE CALENDARIO */

@font-face {
  font-family: 'Overpass R';
  src: url('../font/overpass-regular.woff') format('woff')
}

html, body {
width: 100%;
height: 100%;
position: relative;
font-family: Overpass R;
}

body#login {
background: #f1f1f1;
}

/* LOGIN */

div#gui-login {
width: 445px;
margin: 0 auto;
position: absolute;
left: 50%;
top: 50%;
margin-left: -222.5px;
margin-top: -300px; 
}

div#box-login {
margin-top: 40px;
width: 445px;
height: 380px;
background: #ffffff;
padding: 30px;
box-sizing: border-box;
text-align: left;
}

div#box-login h2 {
color: #202340;
font-size: 24px;
}

div#box-login form {
font-size: 18px;
color: #777677;
}


/* IMPAGINAZIONE */

#container {
width: 100%;
height: 100%;
top: 0;
left: 0;
//width: 1550px;
//height: 800px;
//width: 80%;
//height: 80%;
//position: absolute;
//top: 10%;
//left: 10%;
}

#container.full {
width: 100%;
height: 100%;
top: 0;
left: 0;
}

header {
height: 65px;
border-bottom: 2px solid #f0f0f0;
position: relative;
box-sizing: border-box;
}

header img#logo {
position: absolute;
top: 10px;
left: 40px;
}

header a#admin-button {
background: red;
color: #ffffff;
position: absolute;
top: 20px;
left: 250px;
}

header span#month-year {
position: absolute; 
top: 17px;
left: 46%;
font-size: 21px;
color: #777677;
}

header span#month-year a {
width: 10px;
height: 10px;
position: absolute;
top: 11px;
border-top: 3px solid #777677;
}

header span#month-year a:first-child {
border-left: 3px solid #777677;
left: -30px;
transform: rotate(-45deg);
}

header span#month-year a:last-child {
border-right: 3px solid #777677;
right: -30px;
transform: rotate(45deg);
}

header div#dropdown {
position: absolute;
top: 5px;
left: 70%;
}

header a#switch-month {
position: absolute;
top: 18px;
right: 490px;
}

header span#logged-label {
position: absolute;
top: 18px;
right: 180px;
background: #f5f5f5;
font-size: 14px;
color: #757576;
padding: 4px 15px;
}

header span#logged-label a {
margin-left: 15px;
border-left: 1px solid #757576;
}

header a#login {
position: absolute;
top: 18px;
right: 120px;
}

header a#add-event {
position: absolute;
top: 18px;
right: 130px;
display: block;
width: 30px;
height: 30px;
background: #00aeef;
text-decoration: none;
border-radius: 30px;
}

header a#add-event span {
position: absolute;
top: -7px;
left: 6px;
font-size: 28px;
color: #ffffff;
}

header a#print {
position: absolute;
top: 20px;
right: 80px;
}

header a#screen {
width: 20px;
height: 20px;
border: 2px dashed #757575;
position: absolute;
right: 40px;
top: 20px;
}

header span#selected-day {
background: #ffffff;
position: absolute;
left: calc(20% + 60px);
top: 70px;
font-family: Overpass R;
font-size: 16px;
z-index: 2000;
}

header span#selected-day span#day-s {
display: block;
position: relative;
top: -5px;
font-size: 36px;
}

div#box-selection {
width: 20%;
height: calc(100% - 67px);
background: none;
overflow: hidden;
float: left;
}

div#box-selection.close {
width: 2%;
background: #dddddd;
}

div#box-selection span#box-close {
display: block;
font-size: 14px;
padding: 3px 20px 3px 10px;
box-sizing: border-box;
text-align: right;
}

div#box-selection span#box-close a {
color: #757577;
text-decoration: none;
}

div.type-operator {
padding: 20px;
box-sizing: border-box;
border-bottom: 2px solid #f0f0f0; 
}

div.type-operator h2 {
font-size: 15px;
color: #757577;
position: relative;
}

div.type-operator h2 a {
width: 5px;
height: 5px;
border-top: 2px solid #777677;
border-right: 2px solid #777677;
position: absolute;
top: 10px;
right: 0;
transform: rotate(-45deg);
}

div.type-operator h2 a.close {
top: 7px; 
transform: rotate(135deg);
}

div.type-operator ul {
margin: 20px 0 20px 45px;
}

div.type-operator li {
padding-bottom: 8px;
font-size: 14px;
color: #272727;
}

ul#days-month, ul#day-events {
width: 80%;
height: calc(100% - 67px);
float: left;
overflow: hidden;
}   

ul#days-month li {
float: left;
width: calc(100% / 7);
height: calc(100% / 6);
padding: 10px;
border: 1px solid #f0f0f0;
box-sizing: border-box;
overflow: hidden;
}

ul#days-month li span {
display: block;
padding: 0 0 5px 0;
font-size: 14px;
}  

ul#days-month li:nth-child(-n+7) span, ul#days-month li.other-days span {
color: #757576;
}

ul#days-month li:not(.other-days) span > span {
color: #212121;
}

ul#days-month li#today span.day {
display: inline;
padding: 5px;
border-radius: 15px;
background: #00aeef;
color: #ffffff;
position: relative;
top: -5px;
}

ul#days-month li#today span a {
color: #ffffff;
text-decoration: none;
}

ul#days-month li#today span a:hover {
text-decoration: underline;
}

ul#days-month li.full {
background: #ed1b4c;
}

ul#days-month li.full span {
display: inline;
padding: 5px;
border-radius: 15px;
background: #ffffff;
position: relative;
top: -5px;
}

ul#days-month li:not(#today) a {
color: #212121;;
text-decoration: none;
}

ul#days-month li:not(#today) a:hover {
text-decoration: underline;
}

ul#days-month li ul.operators-engaged {
margin-top: 10px;
}

ul#days-month li ul.operators-engaged li {
width: 100%;
padding: 0 0 0 5px;
line-height: auto;
font-size: 12px;
color: #ffffff;
border: 0;
}

ul#days-month li#loader, span#loader {
display: block;
background: grey;
opacity: 0.5;
width: 100%;
height: 100%;
position: relative;
}

ul#days-month li#loader img, span#loader img {
position: absolute;
top: 50%;
left: 50%;
margin-left: -16px;
margin-top: -16px;
}

ul#days-month:after {
content: '';
display: block;
clear: both;
}


/* Impaginazione eventi per operatore */

div#events-structure {
width: 80%;
height: calc(100% - 67px);
float: left;   
overflow: hidden;
}

div#events-structure ul li {
display: block;
}

div#events-structure ul#hours {
float: left;
width: 40px;
height: 100%; 
padding-bottom: 5px;
border-right: 1px solid #f0f0f0;
box-sizing: border-box;
}

div#events-structure ul#hours li {
width: 100%;
font-size: 11px;
color: #212121;
text-align: center;
}

div#events-structure ul#hours li:first-child {
margin: 105px 0 20px 0;
padding: 3px 0;
border-top: 1px solid #f0f0f0;
border-bottom: 1px solid #f0f0f0;
}

div#events-structure ul#hours li:not(:first-child) {
height: 120px;
padding: 0;
line-height: 0;
margin-top: -2px;
border: 1px solid #ffffff;
}  

div#events-structure ul#hours li:last-child {
height: 0;
} 

div#events-structure ul#day-events {
float: left;
width: calc(100% - 40px);
height: 100%;
}

div#events-structure ul#day-events li {
float: left;
width: calc(100% / 3);
height: 100%; 
border-right: 1px solid #f0f0f0;
box-sizing: border-box;
}

div#events-structure ul#day-events li div.box-operator {
height: 105px;
color: #272727;
border-bottom: 1px solid #f0f0f0;
position: relative;
}

div#events-structure ul#day-events li div.box-operator span:not(.name) {
display: block;
}

/*
div#events-structure ul#day-events li div.box-operator span#month {
position: relative;
top: 5px;
left: 10px;
font-size: 16px;
}

div#events-structure ul#day-events li div.box-operator span#month-day {
position: relative;
top: -5px;
font-size: 36px;
}
*/

div#events-structure ul#day-events li div.box-operator span.name {
position: absolute;
right: 20px;
top: 45px;
font-size: 18px;
}

div#events-structure ul#day-events li div.box-operator span.name:before {
content: '';
display: block;
width: 15px;
height: 15px;
position: absolute;
top: 6px;
left: -30px;
}

div#events-structure ul#day-events li div.box-operator span.no-events {
width: 90%;
position: absolute;
bottom: 2px;
right: 20px;
background: #ed1b4c;
color: #ffffff;
font-size: 12px;
text-align: center;
}

div#events-structure ul#day-events li div.events-list {
margin-top: 42px;
height: 100%;
background: repeating-linear-gradient(#d3cece 0px, #ffffff 1px, #ffffff 120px);
position: relative;
}

div#events-structure ul#day-events li div.events-list ul {
width: 95%;
margin: 0 auto;
}

div#events-structure ul#day-events li div.events-list ul li {
width: 95%;
text-align: left;
padding-left: 5px;
box-sizing: border-box;
position: absolute;
}

div#events-structure ul#day-events li div.events-list ul li span {
display: block;
float: left;
font-size: 12px;
color: #ffffff;
padding: 0 20px 0 0;
}

div#events-structure ul#day-events li div.events-list ul li span.preview {
cursor: pointer;
}

div#events-structure:after {
content: '';
display: block;
clear: both;
}

/* TOOLTIP PREVIEW VISITA/EVENTO */

div#preview {
width: 450px;
}

div#preview div#toolbar {
width: 100%;
height: 85px;
background: #557d85;
position: relative;
}

div#preview div#toolbar a#edit {
position: absolute;
top: 10px;
left: 10px;
}

div#preview div#toolbar a#delete {
position: absolute;
top: 10px;
right: 10px;
}

div#preview div#toolbar h1 {
position: absolute;
bottom: 20px;
left: 15px;
font-size: 24px;
color: #ffffff;
}

div#preview div#details {
padding: 20px 10px;
}

div#preview span, div#preview p {
display: block;
font-size: 14px;
line-height: 18px;
color: #212121;
}

div#preview p {
margin-top: 10px;
}

div#preview h2 {
margin-top: 30px;
font-size: 14px;
color: #212121;
}

span.checkbox {
display: block;
}

span.checkbox input {
position: absolute;
clip: rect(1px, 1px, 1px, 1px);
}

span.checkbox input + label {
position: relative;
cursor: pointer;
font-size: 14px;
line-height: 18px;
}

span.checkbox input + label:before {
content: '';
display: block;
width: 20px;
height: 20px;
position: absolute;
top: -2px;
left: -45px;
background: white;
}

span.checkbox input:checked + label:after {
content: "\2714";
display: block; 
position: absolute;
top: 1px;
left: -42px; 
color: #ffffff;
font-size: 20px;
}


/* FINESTRA DI DIALOGO/CAMPI */

section#dialog {
min-width: 445px;
position: relative;
}

h1 {
font-size: 24px;
color: #202340;
}

form {
margin-top: 25px;
}

div.table {
display: table;
width: 100%;
}

div.row {
display: table-row;
}

div.cell {
display: table-cell;
padding: 10px 0;
vertical-align: middle;
}

form label {
display: table;
font-size: 18px;
color: #777677;
margin-bottom: 10px;
}

form input {
background: #f5f5f5;
border: 0;
border-bottom: 2px solid #00aeef;
width: 100%;
padding: 3px 5px;
box-sizing: border-box;
font-size: 14px;
}

form input[name="submit"] {
width: auto;
background: #00aeef;
font-size: 18px;
color: #ffffff;
padding: 5px 15px;
cursor: pointer;
}

form div.table:last-child {
margin-top: 30px;
}

form div.table:last-child div.cell {
text-align: right;
}


section#dialog form#manager div.cell {
padding: 20px 20px 20px 0;
}

section#dialog form#manager div.line-out {
position: relative;
}

section#dialog form#manager div.cell svg {
position: absolute;
top: 30px;
right: 0;
}

section#dialog form#manager label {
color: #231f20;
font-size: 16px;
}

section#dialog form#manager label.inline {
display: inline;
margin-right: 10px;
}

section#dialog form#manager span {
color: #777677;
}

section#dialog form#manager select, section#dialog form#manager textarea {
background: #f5f5f5;
color: #777677;
font-size: 14px;
padding: 3px 10px;
border: 0;
box-sizing: border-box;
}

section#dialog form#manager textarea {
width: 100%;
padding-top: 5px;
}

section#dialog form#manager div.table:last-child div.cell {
padding-right: 25px;
}

section#dialog form#manager input.invalid, section#dialog form#manager select.invalid, section#dialog form#manager textarea.invalid {
border: 1px solid red;
}

section#dialog span#error {
display: block;
margin-top: 20px;
color: red;
}

section#dialog span#loader {
width: 100%;
height: 100%;
background: grey;
position: absolute;
top: 0;
left: 0;
opacity: 0.5;
}

section#dialog span#loader img {
position: absolute;
top: 50%;
left: 50%;
margin-top: -16px;
margin-left: -16px;
}

/* Varie */

a.button {
background: #f5f5f5;
font-size: 14px;
color: #757576;
text-decoration: none;
padding: 4px 15px;
}

/* Messaggi di errore */

span.txt-notify {
display: block;
margin: 40px 0 50px 0;
background: #ffffff;
font-size: 18px;
color: #777677;
padding: 10px 30px;
box-sizing: border-box;
}

span#txt-err {
border-left: 5px solid #d03b3b;
}

span#txt-ok {
border-left: 5px solid #7ad03a;
}

section#gui span.txt-notify {
width: calc(100% - 30px);
}






/* CSS Document */