/*
This should be restored when TM supports CSS import statements for clarity
@import url(./fonts/Open_Sans/stylesheet.css);
 */

#sfc-container .calendar,
#sfc-container .calendar * {
    box-sizing: border-box;
}

#sfc-container .calendar .other-month a {
    color: #aaa;
}

#sfc-container .calendar {
    margin-bottom: 1px;
}

#sfc-container .calendar footer {
    border-top: 1px solid #ddd;
    font-size: 125%;
}

#sfc-container .calendar.calendar-full footer {
    font-size: 2.2vmax;
}

#sfc-container .calendar footer button.magical-element {
    width: 100%;
}

#sfc-container .calendar.calendar-full footer button {
    padding: 0.3em;
}

#sfc-container .calendar option {
    background-color: white;
    color: black;
}

#sfc-container .calendar header {
    border-bottom: 1px solid #ddd;
    color: white;
    /*padding: 1em 4px 1em 0;*/
    font-family: "Open Sans", sans-serif;
}

#sfc-container .calendar .calendar-header-controls {
    font-size: 140%;
}

#sfc-container .calendar.calendar-full .calendar-header-controls {
    font-size: 4vmax;
}

#sfc-container .calendar .calendar-year-input {
    width: 4em;
}

#sfc-container .calendar .magical-element {
    color: white;
    font-family: "Open Sans", sans-serif;
    font-size: inherit;
    border: 0;
    background-color: transparent;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    text-align: center;
    margin: 0;
    border-radius: 0;
    cursor: pointer;

    font-weight: 200;
}

#sfc-container .calendar .magical-element:hover {
    background-color: rgba(0,0,0,0.05);
}

#sfc-container .calendar .magical-element:active {
    background-color: rgba(0,0,0,0.1);
}

#sfc-container .calendar .calendar-header-date {
    background-color: #fdfdfd;
    color: #777;
    text-align: center;
}

#sfc-container .calendar .calendar-day {
    line-height: 1.6em;
    height: 2.4em;
    font-size: 110%;
    padding-top: 0.8em;
}

#sfc-container .calendar.calendar-full .calendar-day {
    font-size: 2.2vmax;
}

#sfc-container .calendar .calendar-header-date {
    font-weight: 400;
}

#sfc-container .calendar .calendar-full-date {
    height: 2em;
    line-height: 1.5em;
    padding-bottom: 0.5em;
    font-size: 200%;
}

#sfc-container .calendar.calendar-full .calendar-full-date {
    font-size: 6vmax;
}

#sfc-container .calendar select.magical-element {
    padding-left: 1em;
    -moz-appearance: window;
}

#sfc-container .calendar button.magical-element {
    background-color: #3093ce;
    width: 32px;
}

#sfc-container .calendar select.magical-element:hover,
#sfc-container .calendar button.magical-element:hover {
    background-color: #2faeeb;
}

#sfc-container .calendar {
    border: 1px solid #eee;
    background-color: white;
}

#sfc-container .calendar.calendar-full {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
}

#sfc-container .calendar .calendar-warnings {
    background-color: #f77;
    font-size: 90%;
    padding: 0.3em 0.2em;
    text-align: center;
}

#sfc-container .calendar.calendar-full .calendar-warnings {
    font-size: 3vmax;
}

#sfc-container .calendar table {
    font-family: sans-serif;
    font-size: 90%;
    border-collapse: collapse;
    table-layout: fixed;
    margin-left: -1px;
}

#sfc-container .calendar.calendar-full table {
    /*
    table-layout: fixed;
    height: 100%;

    */
    width: 100%;
}

#sfc-container .calendar th {
    overflow: hidden;
    padding: 8px 4px;
}

#sfc-container .calendar td {
    border: 1px solid #eee;
}

#sfc-container .calendar.calendar-full td {
    /*height: 14.28571428571429%;*/
}

#sfc-container .calendar td,
#sfc-container .calendar th {
    width: 3.2em;
    max-width: 3.2em;
    text-align: center;
    vertical-align: middle !important;
}

#sfc-container .calendar time.calendar-filtered {
    /*background-color: rgba(255,0,0,0.1);*/
    border-top: 2px solid #faa;
    padding-bottom: 2px;
    cursor: not-allowed;
}

#sfc-container .calendar-year-input::-webkit-outer-spin-button,
#sfc-container .calendar-year-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#sfc-container .calendar table a {
    text-decoration: none;
    color: inherit;
}

#sfc-container .calendar table time:active {
    background-color: rgba(0,0,0,0.1);
}

#sfc-container .calendar time {
    box-sizing: border-box;
    display: block;
    /*line-height: 2.4em;*/
    width: 100%;
    border-top: 2px solid transparent;
    padding-bottom: 2px;
}

#sfc-container .calendar.calendar-full time {
    font-size: 2.5vmax;
}

#sfc-container .calendar time:hover {
    background-color: rgba(0,0,0,0.05);
}

#sfc-container .calendar .calendar-selected {
    border-top: 2px solid #0073ae;
    padding-bottom: 2px;
    /*background-color: rgba(0,0,0,0.3);*/
}

#sfc-container .calendar .calendar-year-input:focus {
    background-color: white;
    color: black;
    cursor: text;
}

#sfc-container .calendar.calendar-full .calendar-header-date {
    display: none;
}

@media screen and (min-height: 400px) {
    #sfc-container .calendar.calendar-full .calendar-header-date {
        display: block;
    }
}
