﻿/* Public */

/* Wait view */

#waitview {
    text-align: center;
}

#waitview button {
    margin-top: 10px;
    height: 30px;
    display: none;
}

.ios #waitview .content {
    background: rgba(0,0,0, .6);
    width: 120px;
    /*height: 85px;*/
    margin: auto;
    text-align: center;
    padding: 10px 0;
    color: #ffffff;
    border-radius: 5px;
    margin-top: 20%;
}

@media all and (max-device-width:480px), all and (min-device-width:720px) and (max-device-width:720px) {

    .ios #waitview .content {
        margin-top: 40%;
    }
}

.ios .waitview {
    overflow-y: auto;
}

/* Confirmation */

#confirmview {
    text-align: center;
    position: absolute;
    left: 0;
    top: 0;
    margin: 0;
    bottom: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    display: none;
    background-color: rgba(179,179,175,0.5);
}

    #confirmview button {
        width: 70px;
        display: inline-block;
    }

    #confirmview input[type=text] {
        border: 1px solid #eee;
        border-radius: 3px;
        margin: 2px 0;
        width: 90%;
    }

    #confirmview hr {
        clear: both;
        color: #eee;
        margin: 5px 0;
    }

    #confirmview button.default {
        border: 1px solid #999;
    }

#confirmview-ribbon {
    margin: auto;
    border-radius: 6px;
    padding: 5px;
    background-color: #fff;
    max-width: 300px;
    min-height: 60px;
    box-shadow: -1px -1px 8px rgba(80, 80, 80, .3), 1px 1px 8px rgba(80, 80, 80, .3)
}

    #confirmview-ribbon > .icon {
        margin-right: 3px;
    }

    #confirmview-ribbon ol {
        text-align: left;
    }

    #confirmview-ribbon.error {
        /*box-shadow: -1px -1px 14px rgba(255,50,50,0.4), 1px 1px 14px rgba(255,50,50,0.4);*/
        background: #93002a;
    }

#confirmview-content {
    font-size: .8em;
    /*overflow: hidden;
    text-overflow: ellipsis;*/
    margin: 5px 10px 0 0;
    color: #3b4858;
    white-space: pre-wrap;
    /*word-break: break-all;*/
    line-height: 1.4em;
}

    #confirmview-content.error {
        color: #ffffff;
    }

#confirmview-buttons {
    clear: both;
    margin-top: 20px;
}



.iosview.public {
    font-family: roboto;
    font-size: 0.9em;
    color: #435f71;
    border-radius: 4px;
    background: transparent;
}

@media all and (max-device-width:480px), all and (min-device-width:720px) and (max-device-width:720px) {
    .iosview.public {
        font-size: 1em;
    }
}

.iosview.public header {
    background-image: none;
}

.iosview.public header button {
    background-color: transparent;
    background-image: none;
    color: #ffffff;
}

.iosview.public header div.header__title {
    color: #ffffff;
    text-shadow: none;
    margin-top: 2px;
    font-size: 1em; /*.9em*/
}

.iosview.public section {
    background-color: #ffffff;
}

.iosview.public ul {
    margin: 0;
    padding-top: 0;
    min-height: 0;
}

.iosview.public ul li {
    border-width: 0 0 1px 0;
    border-radius: 0;
}

.iosview.public ul li:after {
    /*height: auto !important;*/
    line-height: 0;
}

.iosview.public.iosview--reduced {
    border: 1px solid #ffffff;
}

/* Public GTU */

#publicgtu {
    border: 0;
    box-shadow: none;
    background: transparent;
}

#publicgtu.iosview--reduced {
    width: 850px;
    height: 520px;
}

#publicgtu header {
    background-color: #b50453;
}

#publicgtu section {
    padding: 10px;
}

#publicgtu #publicgtu-content {
    text-align: justify;
    padding-top: 10px;
}

    #publicgtu #publicgtu-close {
        background-image: -webkit-linear-gradient(top, #dc4c7f, #b50453 80%, #b50453);
        background-image: -moz-linear-gradient(top, #dc4c7f, #b50453 80%, #b50453);
        background-image: -ms-linear-gradient(top, #dc4c7f, #b50453 80%, #b50453);
        background-image: linear-gradient(top, #dc4c7f, #b50453 80%, #b50453);
        margin: 20px auto 0 auto;
        font-size: .9em;
        color: #ffffff;
    }

/* Public locations */

#publiclocations {
    font-size: 1em;
}

#publiclocations.iosview--reduced {
    width: 300px;
    height: 400px;
}

#publiclocations header {
    background-color: #342a83;
}

    #publiclocations .li__caption {
        max-width: 80%;
    }

#publiclocations section div.bold {
    font-weight: bold;
}

/* Public Activities */

#publicactivities.iosview--reduced {
    width: 400px;
    height: 500px;
}

#publicactivities header {
    background-color: #342a83;
}

#publicactivities .bold {
    font-weight: bold;
}

#publicactivities .li__caption {
    display: block;
    margin-bottom: 5px;
    max-width: 80%;
}

#publicactivities .knownpatients {
    font-size: 0.8em;
    margin-left: 28px;
    color: #ffffff;
    border-radius: 3px;
    padding: 2px 4px;
    background-color: #ad2135;
    display: inline-block;
}

#publicactivities .agedpatients {
    font-size: 0.8em;
    margin-left: 28px;
    color: #ffffff;
    border-radius: 3px;
    padding: 2px 4px;
    background-color: #ad2135;
    display: inline-block;
}

/* Public Calendars */

#publiccalendars.iosview--reduced {
    width: 400px;
    height: 500px;
}

#publiccalendars header {
    background-color: #342a83;
}

#publiccalendars .physicianpicture {
    width: 40px;
    height: 40px;
    float: left;
    margin-right: 10px;
    border-radius: 3px;
    border: 1px solid #ddd;
}

#publiccalendars .subcap {
    color: #ffffff;
    font-size: .8em;
    padding: 2px 4px;
    border-radius: 4px;
    pointer-events: none;
    background-color: darkblue;
    margin-right: 5px;
    display: inline-block;
}

#publiccalendars .li__caption {
    font-weight: bold;
}

#publiccalendars .firstline {
    margin-top: 5px;
}

/* Public protocol */

#publicprotocol.iosview--reduced {
    width: 600px;
    height: 300px;
}

#publicprotocol header {
    background-color: #b50453;
}

#publicprotocol section {
    color: #435f71;
    padding: 10px;
}

#publicprotocol hr {
    margin: 10px 0;
}

#publicprotocol #publicprotocol-activity {
    font-weight: bold;
}

/* Public new appointment */

#publicnewappointment.iosview--reduced {
    width: 500px;
    height: 550px;
}

#publicnewappointment header {
    background-color: #7581eb;
}

#publicnewappointment header .title {
    font-size: 1.2em;
}

#publicnewappointment .summary {
    margin: 10px 0 0 10px;
}

#publicnewappointment .summary > div {
    margin-bottom: 5px;
}

#publicnewappointment .summary > div img {
    margin-bottom: 10px;
}

#publicnewappointment .summary .subtitle {
    font-weight: bold;
}

#publicnewappointment .summary .location {
    text-align: right;
    max-width: 40%;
    margin-right: 10px;
}

#publicnewappointment #publicnewappointment-summary-physicianpicture {
    width: 40px;
    height: 40px;
    float: left;
    margin-right: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

#publicnewappointment .knownpatients {
    font-size: 0.8em;
    color: #ffffff;
    border-radius: 3px;
    padding: 2px 4px;
    background-color: #ad2135;
    display: inline-block;
}

#publicnewappointment .agedpatients {
    font-size: 0.8em;
    color: #ffffff;
    border-radius: 3px;
    padding: 2px 4px;
    background-color: #ad2135;
    display: inline-block;
}

#publicnewappointment .li__caption {
    max-width: 40%;
    color: #1556ab;
}

#publicnewappointment .content {
    max-width: 60%;
    width: 60%;
    text-align: left;
}

#publicnewappointment input[type=text] {
    font-size: 1.1em;
}

#publicnewappointment input[type=text],
#publicnewappointment textarea {
    width: 100%;
}

#publicnewappointment p.centered {
    text-align: center;
}

#publicnewappointment #publicnewappointment-ok {
    background-image: none !important;
    background-color: #7581eb;
    margin-top: 10px;
    font-size: .9em;
    display: inline-block;
    margin-bottom: 30px;
}

/* Public summary */

#publicsummary.iosview--reduced {
    width: 400px;
    height: 500px;
}

#publicsummary header {
    background-color: #7581eb;
}

#publicsummary section {
    margin: auto;
    text-align: center;
}

#publicsummary section > div {
    margin: auto;
    text-align: center;
    margin-top: 10px;
}

#publicsummary section div.bold {
    font-weight: bold;
}

#publicsummary #publicsummary-physiciansummary {
    margin: 10px auto ;
    width: 200px;
}

#publicsummary #publicsummary-physicianpicture {
    width: 50px;
    height: 50px;
    float: left;
    margin-right: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

#publicsummary hr {
    margin: 15px;
}

#publicsummary #publicsummary-instructions {
    margin: 0 20px;
}

#publicsummary #publicsummary-ok {
    margin: 20px auto;
    background-image: none !important;
    background-color: #7581eb;
    font-size: .9em;
    color: #ffffff;
}

/* Public main */
#main {
    color: #435f71;
    top: 100px;
    bottom: auto;
}

#main.iosview--reduced {
    width: 500px;
    /*height: 550px;*/
}

@media all and (max-device-width:480px), all and (min-device-width:720px) and (max-device-width:720px) {

    #main {
        bottom: 0;
    }

    #main section {
        position: absolute !important;
        overflow: scroll !important;
    }
}

#main header {
    background-color: #7581eb;
    font-size: 1.2em;
    min-height: 40px;
    border: 0;
    border-radius: 0;
}

#main .pheader .title {
    color: #ffffff;
    font-size: 1.3em;
    text-align: center;
    overflow: hidden;
    padding: 20px 0 0 15px;
    font-weight: bold;
}

#main section {
    position: static;
    overflow: hidden;
}

#main .icon {
    vertical-align: top;
    margin-top: 3px;
}

#main ul {
    padding-top: 0;
}

#main li:not(#main-dates) * {
    pointer-events: none;
}

#main ul li:last-of-type {
    border-bottom: 0;
}

#main .selectionlabel {
    margin-right: 5px;
    float: right;
    width: 50px;
    text-align: right;
}

#main li .choicetitle {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 10px;
    display: inline-block;
    margin-left: 5px;
    margin-top: 5px;
}

#main li #main-location-button, #main #main-activity-button, #main #main-calendar-button {
    font-size: 0.9em;
    width: 150px;
    font-weight: bold;
    background: none;
    background-color: none;
    padding: 0px 5px;
    border-color: #015de6;
    color: #015de6;
}

#main #main-location-noappointment {
    text-align: center;
}

#main .knownpatients {
    margin-top: 5px;
    color: #ffffff;
    font-size: .9em;
    border-radius: 3px;
    padding: 2px 4px;
    background-color: #ad2135;
    display: inline-block;
}

#main #main-calendar-picture {
    width: 50px;
    height: 50px;
    margin-right: 10px;
    border: 1px solid #d9d9d9;
    border-radius: 3px;
}


#main #monthcalendarcontent {
    width: 50%;
    float: left;
}


@media all and (max-device-width:480px), all and (min-device-width:720px) and (max-device-width:720px) {
    #main #monthcalendarcontent {
        width: 100%;
    }
}

#main .monthcalendarcontrol .title {
    color: #435f71;
}

#main .monthcalendarcontrol header {
    border: 0;
}

    #main .monthcalendarcontrol header.monthcalendarcontrol__header {
        border: 0;
    }

#main .monthcalendarcontrol table th {
    font-size: 1.1em;
    color: #3b4858;
}


#main .monthcalendarcontrol table td.week {
    font-size: 1.1em;
}

#main .monthcalendarcontrol table td.currentmonth {
    color: #435f71;
}

#main .monthcalendarcontrol table td.othermonth {
    border-color: #ffffff;
    color: #ffffff !important;
}

#main .monthcalendarcontrol table td.currentmonth {
    border-color: #d9d9d9;
    color: #d9d9d9;
}

#main .monthcalendarcontrol table td.currentmonth.active {
    border-color: #015de6 !important;
    color: #015de6 !important;
}

#main .monthcalendarcontrol table td.currentmonth.currentday {
    color: #ffffff !important;
}

#main .monthcalendarcontrol table td.today {
    color: #d9d9d9 !important;
}
                
#main #timeslotscontainer {
    float: left;
    width: 50%;
    max-height: 200px;
    overflow-y: auto;
}

@media all and (max-device-width:480px), all and (min-device-width:720px) and (max-device-width:720px) {

    #main #timeslotscontainer {
        clear: both;
        width: 100%;
        max-height: 120px;
        text-align: center;
    }
}

#main #timeslotscontainer-title {
    text-align: center;
    font-weight: bold;
    margin-bottom: 5px;
}

#main .publictimeslot {
    clear: both;
    margin: 5px;
    display: inline-block;
    /*background-color: #e5fff2;*/
    border: 1px solid #015de6;
    border-radius: 3px;
    color: #015de6;
    font-size: 1em;
    font-weight: bold;
    text-align: center;
    padding: 5px 2px;
    cursor: pointer;
    min-width: 60px;
}

#main .publictimeslot:hover {
    text-shadow: none !important;
    color: #fff !important;
    background-image: -webkit-linear-gradient(top, #058bf5, #015de6) !important;
    background-image: -moz-linear-gradient(top, #058bf5, #015de6) !important;
    background-image: -ms-linear-gradient(top, #058bf5, #015de6) !important;
    background-image: linear-gradient(to bottom, #058bf5, #015de6) !important;
}

