@font-face {
	font-family: 'Dosis-Book';
	src: url('../../../lib/Dosis-Book/Dosis-Book.eot?'),
         url('../../../lib/Dosis-Book/Dosis-Book.woff') format('woff'),
         url('../../../lib/Dosis-Book/Dosis-Book.ttf') format('truetype'),
         url('../../../lib/Dosis-Book/Dosis-Book.svg') format('svg');
}

/*************************************************************/
body {
    /*margin: 0;*/
    /*padding: 0;*/
    }

#region-pre, #region-post {
    display: none;
    }

#contentwrapper, #page {
    width: 100%;
    }

/*#page {*/
    /*overflow-x: auto;*/
/*}*/

#contentwrapper {
    padding-top: 0px;
    }

#mainpadder {
    padding: 15px;
    min-height: 600px;
    }

/*************************************************************/

#timetableWrapper {
    font-family: "Arial", sans-serif;
    line-height: 1.4;
    font-size: 13px;
    color: #222;
    }

/*************************************************************/

#settings {
    position: relative;
    }
    #settings .settingsButton {
        position: absolute;
        top: 0;
        right: 0;

        width: 65px;
        height: 24px;

        background-color: #EEE;

        border: 1px solid #D3D3D3;
        border-radius: 3px;

        z-index: 32;
        }
        #settings .settingsButton .settingsButtonImg {
            height: 100%;
            width: 100%;
            background: url(../img/cogwheel_expand_black.png) 18px 2px no-repeat;
            opacity: 0.75;
        }
    #settings .settingsButton:hover {
        background-color: #E4E4E4;
        cursor: default;
        }
        #settings .settingsButton:hover .settingsButtonImg {
            opacity: 1;
            }
    #settings.opened .settingsButton {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        border-bottom: none;
        }
        #settings.opened .settingsButton .settingsButtonImg {
            opacity: 1;
        }
    #settings.opened .settingsButton:hover {
        background-color: #EEE;
        }
    #settings .settingsBox {
        display: none;
        position: absolute;

        right: 0;
        top: 24px;

        padding: 4px 0;

        border: 1px solid #dddddd;
        border-radius: 3px 0 3px 3px;
        background-color: #eeeeee;
        box-shadow: -1px 2px 4px rgba(0, 0, 0, 0.3);

        z-index: 31;
        }
    #settings.opened .settingsBox {
        display: block;
        }
        #settings .settingsBox > div {
            white-space: nowrap;
            padding: 5px 10px 5px 25px;
            }
        #settings .settingsBox > div:hover {
            cursor: default;
            }
        #settings .settingsBox > div.selectable {
            position: relative;
            }
            #settings .settingsBox > div.selectable .checkmark {
                display: none;
                position: absolute;
                left: 0px;
                top: 4px;

                width: 21px;
                height: 21px;

                background: url('../img/checkmark.png') 0 0 no-repeat;
                }
            #settings .settingsBox > div.selectable.selected .checkmark {
                display: block;
                }

        #settings .settingsBox .dividerTop {
            border-bottom: 1px solid #DDD;
            padding: 4px 0 0 0;
            }
        #settings .settingsBox .dividerBottom {
            border-top: 1px solid #F6F6F6;
            padding: 0 0 4px 0;
            }

        #settings .settingsBox > div.clickable:hover {
            background-color: rgba(255, 255, 255, 0.5);
            cursor: pointer;
            }


/*************************************************************/

#controls {
    position: relative;
    padding-left: 70px;
    }
    #controls .reloadTimetable {
        position: absolute;

        top: 0;
        bottom: 6px;
        left: 2px;

        width: 60px;

        background: url('../img/reload2.png') 6px 50% no-repeat #000;

        opacity: 0.2;
        filter: progid:DXImageTransform.Microsoft.Alpha( opacity=20 );

        -webkit-transition: opacity 0.25s ease;
        -moz-transition: opacity 0.25s ease;
        -o-transition: opacity 0.25s ease;
        transition: opacity 0.25s ease;
        }
    #controls .reloadTimetable:hover {
        cursor: pointer;

        opacity: 0.8;
        filter: progid:DXImageTransform.Microsoft.Alpha( opacity=80 );
        }

/*************************************************************/

.gAction {
    display: inline-block;
    position: relative;

    margin-top: 4px;
    padding: 1px;

    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    border-radius: 2px;

    font-size: 14px;
	color: #282828;
	text-shadow: 0 1px 0 #E7E7E7;

    -moz-box-shadow: -2px 2px 5px -2px #717171;
    box-shadow: -2px 2px 5px -2px #717171;

    background: rgb(255,255,255);
    background: -moz-linear-gradient(top, rgba(255,255,255,1) 0px, rgba(186,186,186,1) 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0px,rgba(255,255,255,1)), color-stop(100%,rgba(186,186,186,1)));
    background: -webkit-linear-gradient(top, rgba(255,255,255,1) 0px,rgba(186,186,186,1) 100%);
    background: -o-linear-gradient(top, rgba(255,255,255,1) 0px,rgba(186,186,186,1) 100%);
    background: -ms-linear-gradient(top, rgba(255,255,255,1) 0px,rgba(186,186,186,1) 100%);
    background: linear-gradient(top, rgba(255,255,255,1) 0px,rgba(186,186,186,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#bababa',GradientType=0 );
    }
.gAction:hover {
    cursor: pointer;
    }
.gAction:active {
    -moz-box-shadow: -1px 1px 3px -3px #252525;
    box-shadow: -1px 1px 3px -3px #252525;
    }
    .gAction .gName {
        padding: 3px 30px 0 6px;
        height: 21px;
        }
    .gAction .gImg {
        height: 24px;
        width: 24px;

        right: 0;
        position: absolute;

        background-position: 0 0;
        background-image: url("../img/plus2.png");
        }
    .gAction:hover .gImg {
        background-position: 0 24px;
        }


.gAction.gSelected {
    background: rgb(128,192,255);
    background: -moz-linear-gradient(top, rgba(128,192,255,1) 0px, rgba(75,111,189,1) 45%, rgba(21,94,164,1) 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0px,rgba(128,192,255,1)), color-stop(45%,rgba(75,111,189,1)), color-stop(100%,rgba(21,94,164,1)));
    background: -webkit-linear-gradient(top, rgba(128,192,255,1) 0px,rgba(75,111,189,1) 45%,rgba(21,94,164,1) 100%);
    background: -o-linear-gradient(top, rgba(128,192,255,1) 0px,rgba(75,111,189,1) 45%,rgba(21,94,164,1) 100%);
    background: -ms-linear-gradient(top, rgba(128,192,255,1) 0px,rgba(75,111,189,1) 45%,rgba(21,94,164,1) 100%);
    background: linear-gradient(top, rgba(128,192,255,1) 0px,rgba(75,111,189,1) 45%,rgba(21,94,164,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#80c0ff', endColorstr='#155ea4',GradientType=0 );

    color: white;
    text-shadow: 1px 0px 1px #43436E;
    }
    .gAction.gSelected .gImg {
        background-image: url("../img/minus2.png");
        }

/*************************************************************/

.loaderFade,
.loader {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    }

.loaderFade {
    background-color: rgba(255, 255, 255, 0.5);
    z-index: 1000;
    }

.loader {
    text-align: center;
    background: url("../img/loader_big2.gif") no-repeat 50% 50%;
    z-index: 1001;
    }

/*************************************************************/

.dialogOverlay {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    display: none;

    background-color: #000;
    opacity: 0.5;
    filter: progid:DXImageTransform.Microsoft.Alpha( opacity=50 );

    z-index: 1000;
    }

.dialogBox {
    position: fixed;
    top: 100px;
    left: -1000px;

    min-width: 200px;
    padding: 5px;

    background-color: #fff;
    box-shadow: 0px 0px 30px -2px #000;
    z-index: 1001;
    }
    .dialogHeader {
        height: 20px;

        padding: 4px 26px 4px 2px;

        color: #000;
        font-size: 16px;
        font-weight: bold;
        cursor: move;
        text-align: left;
        border-bottom: 1px solid #e0e0e0;
        }
        .dialogClose {
            position: absolute;
            right: 5px;
            top: 5px;

            height: 24px;
            width: 24px;

            background: url('../img/close.png') no-repeat 0 0;
            }
            .dialogClose:hover {
                background-position: 0px -24px;
                cursor: pointer;
                }
            .dialogClose:active {
                top: 6px;
                }
    .dialogContent {
        padding-top: 4px;
        border-top: 1px solid #909090;
        font-size: 14px;

        overflow-y: auto;
        max-height: 500px;
        min-height: 300px;
        }

/*************************************************************/

#timetable {
    position: relative;

    margin-top: 20px;
    padding: 0px 50px 50px 50px;

    overflow-x: visible;
    color: #111;
    }

/*************************************************************/

#selectGroups:hover {
    cursor: default;
    }

#hideGroupSelecting {
    display: none;
    position: relative;

    background: rgb(242,242,242);

    padding: 2px 8px;
    border-radius: 4px 4px 0 0;
    }
    #hideGroupSelecting:before {
        content: '';
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;

        box-shadow: -1px 1px 9px -1px #424242;

        border-radius: 4px 4px 0 0;
        z-index: 3;
        }
    #hideGroupSelecting:after {
        content: '';
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;

        border-radius: 4px 4px 0 0;
        background: rgb(242,242,242);
        filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f7f7f7', endColorstr='#eeeeee',GradientType=0 );
        background: -webkit-linear-gradient(top, rgba(242,242,242,1) 0%,rgba(238,238,238,1) 40%,rgba(238,238,238,1) 100%);
        background: -moz-linear-gradient(top, rgba(242,242,242,1) 0%, rgba(238,238,238,1) 40%, rgba(238,238,238,1) 100%);
        background: -o-linear-gradient(top, rgba(242,242,242,1) 0%,rgba(238,238,238,1) 40%,rgba(238,238,238,1) 100%);
        background: linear-gradient(top, rgba(242,242,242,1) 0%,rgba(238,238,238,1) 40%,rgba(238,238,238,1) 100%);

        z-index: 5;
        }
    #hideGroupSelecting a {
        z-index: 6;
        position: relative;
        }

#groupSelectingDiv {
    display: block;
    padding: 0 0 8px 0;
    }
    #groupSelectingDiv > span {
        position: relative;
        display: inline-block;
        background-color: #eeeeee;
        /*padding: 4px 0 8px;*/
        padding: 0;

        box-shadow: -1px 1px 9px -1px #424242;

        border-radius: 4px;
        z-index: 4;
        }

    #groupSelectingDiv .specialtyHolder {
        display: block;
        padding: 6px 12px 8px;

        background-color: transparent;

        border-top: 1px solid #f5f5f5;
        border-bottom: 1px solid #cbc5c5;
        }
    #groupSelectingDiv .specialtyHolder:first-child {
        padding-top: 10px;
        border-top: none;
        }
    #groupSelectingDiv .specialtyHolder:last-child {
        border-bottom: none;
        padding-bottom: 10px;
        }
    #groupSelectingDiv .specialtyHolder:hover {
        background-color: rgba(255, 255, 255, 0.290);
        cursor: pointer;
        }
        a.pressed,
        #groupSelectingDiv .specialtyHolder > a {
            font-size: 15px;
            color: #2E2E2E;
            text-decoration: none;
            text-shadow: 1px 1px 1px #FFFFFF;
            }
            a.pressed:hover,
            #groupSelectingDiv .specialtyHolder:hover > a {
                color: #061494;
                cursor: pointer;
                text-decoration: none;
                /*text-shadow: 1px 1px 1px #F4F4FF;*/
                /*color: #0010AF;*/
                }
        #groupSelectingDiv .specialtyHolder > a:before {
            content: '↓ ';
            }
        #groupSelectingDiv .specialtyHolder.opened > a:before {
            content: '↑ ';
            }
        #groupSelectingDiv .specialtyHolder .groupActionsHolder {
            display: none;
            padding: 2px 0 0 0;
            }
        #groupSelectingDiv .specialtyHolder.opened .groupActionsHolder {
            display: block;
            }

#groupSelectingDiv.gCompact {
    padding: 0;
    margin: 0 0 0 10px;
    display: inline-block;
    }
    #groupSelectingDiv.gCompact > span {
        display: block;
        padding: 0;
        margin: 0;
        box-shadow: none;
        border-radius: 0;
        background: none;
        }
        #groupSelectingDiv.gCompact .specialtyHolder {
            display: inline-block;
            padding: 0;
            border: none;
            }
            #groupSelectingDiv.gCompact .specialtyHolder > a {
                display: none;
                }
            #groupSelectingDiv.gCompact .specialtyHolder .groupActionsHolder {
                display: block;
                padding: 0;
                }
            #groupSelectingDiv.gCompact .specialtyHolder .groupActionsHolder span {
                display: none;
                }
            #groupSelectingDiv.gCompact .specialtyHolder .groupActionsHolder span.gSelected {
                display: inline-block;
                }

a.pressed {
    font-size: 13px;
    }
