.g_body{
    padding: 0px 15px;
}

.g_left{
    display:inline-block;
    width: 170px;
    vertical-align: top;
    padding-top: 10px;
    padding-right: 10px;
}

.g_right{
    display:inline-block;
    width: calc(100% - 200px);
    height: calc(100vh - 220px);
    min-height: 350px;
    overflow: hidden;
    background: white;
    padding-top: 10px;
}

.g_row{
    height: calc(100% / 5 - 6px);
    width: 100%;
    overflow: hidden;
    border-top: 1px solid #ddd;
}

.g_row.hei4{
    height: calc(100% / 4 - 6px); 
}

.g_row.hei5{
    height: calc(100% / 5 - 4px); 
}

.g_row.hei6{
    height: calc(100% / 6 - 3px); 
}

.g_row.last{
    border-bottom: 1px solid #ddd;
}

.g_calendar table{
    border-collapse: collapse;
    width: 100%;
    table-layout: fixed;
}

.g_calendar table.g_cal{

}

.g_calendar .g_row table{
    height: 100%;
}


.g_calendar table.g_cal th{
    font-weight: normal;
}

.g_calendar .g_right tbody td{
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    border-collapse: collapse;
    vertical-align: top;
    width: calc(100% / 7);
    height: 100%;
    overflow: hidden;

}

.tbody td{

}



.g_right tbody td > div{
    margin: 1px;
}

.g_number{
    color: #222;
    font-size: 12px;
    margin: 3px;
}

.not_active .g_number{
    color: #aaa;
}

.g_event{
    margin-top: 2px;
}

.g_event a{
    font-size: 12px;
    color: #1d1d1d;
    border:1px solid #1587BD;
    background-color: #9FC6E7;
    padding: 1px 5px;
    display:block;
    width: calc(100% - 12px); /* 12 = 2x5 padding + border 2x1 */
    text-decoration: none;

}

.g_column .more{
    margin-top: 3px;
    font-size: 11px;
    cursor: pointer;
}

.g_column.previous .g_number,
.g_column.next .g_number{
    color: #aaa;
}

.g_column.previous .g_event a,
.g_column.next .g_event a{
    border: 1px solid #9FC6E7;
    color: #777777;
    background-color: #E4EFF8;
}


.g_calendar .monthCalendar{
    border: none;
    height: 210px;
}

.g_calendar .monthCalendar ul#selmesic{
    top: 12px;
}

.g_calendar .monthCalendarUlSelMonth li:nth-child(1){
    border-top: 1px solid #9E9E9E;
}

.g_calendar .monthCalendar tr#mesic{
    height: 30px;
}

.g_calendar .monthCalendar tr.header,
.g_calendar .monthCalendar select#year,
.g_calendar .monthCalendar tr#mesic{
    background-color: #FFF;
    color: #222;
}

.g_calendar .monthCalendar td.mesic a{
    color: #222;
}

.g_calendar .monthCalendar td.sipkaLeft img,
.g_calendar .monthCalendar td.sipkaRight img{
    height: 12px;
}

.g_calendar .monthCalendar table{
    background-color: #FFF;
}

.g_calendar .monthCalendar tr.days td{
    background-color: #FFF;
    border: none;
    background:#FFF;
    width: 16px;
}

.g_calendar .monthCalendar tr.days td a{
    text-decoration: none;
    height: 20px;
    display: block;
    line-height: 20px;

}

.g_calendar .monthCalendar td a,
.g_calendar .monthCalendar tr.days td.volna a{
    font-family: Arial,sans-serif;
    font-size: 12px;
}


.g_calendar .monthCalendar tr.days td.aktualni{
    background: #d14836;
    color: #FFF;
}
.g_calendar .monthCalendar tr.days td.aktualni a{
    color: #FFF;
}

.g_calendar .monthCalendar tr.days td.volna{
    background: #eee;
}

.g_calendar .monthCalendar ul#selmesic li{
    background-color: #FFF;
    padding: 1px 5px;
    font-size: 10px;
}


.g_calendar .g_header{
    border-bottom: 1px solid #F0F0F0;
    padding: 5px 20px 10px;
}

.g_calendar .g_title {
    color: #dd4b39;
    cursor: pointer;
    font-size: 20px;
    vertical-align: middle;
    position: relative;
    -moz-transition: all .218s;
    -webkit-transition: all .218s;
    float:left;
    margin-right: 80px;
    line-height: 29px;

}

.g_calendar .g_smer{
    min-width: 85px;
    float: left;
    height: 29px;
    line-height: 29px;
    margin-left: 15px;
}

.g_calendar .g_btns span > a{
    text-decoration: none;
    display: block;
    float:left;
    background: #f5f5f5;
    background-image: -webkit-gradient(linear,left top,left bottom,from(#f5f5f5),to(#f1f1f1));
    background-image: -webkit-linear-gradient(top,#f5f5f5,#f1f1f1);
    background-image: -moz-linear-gradient(top,#f5f5f5,#f1f1f1);
    background-image: -ms-linear-gradient(top,#f5f5f5,#f1f1f1);
    background-image: -o-linear-gradient(top,#f5f5f5,#f1f1f1);
    background-image: linear-gradient(top,#f5f5f5,#f1f1f1);
    border: 1px solid #dcdcdc;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 2px;
    color: #444;
    cursor: pointer;
    font-size: 11px;
    font-weight: bold;
    height: 27px;
    line-height: 27px;
    min-width: 54px;
    outline: none;
    padding: 0 8px;
    text-align: center;
    transition: all .218s;
    -moz-transition: all .218s;
    -moz-user-select: none;
    -o-transition: all .218s;
    -webkit-border-radius: 2px;
    -webkit-transition: all .218s;
    -webkit-user-select: none;
}

.g_calendar .g_add_btn {
    border: 1px solid transparent;
    color: #fff;
    text-transform: uppercase;
    background: #d14836;
    background-image: -webkit-gradient(linear,left top,left bottom,from(#dd4b39),to(#d14836));
    background-image: -webkit-linear-gradient(top,#dd4b39,#d14836);
    background-image: -moz-linear-gradient(top,#dd4b39,#d14836);
    background-image: -ms-linear-gradient(top,#dd4b39,#d14836);
    background-image: -o-linear-gradient(top,#dd4b39,#d14836);
    background-image: linear-gradient(top,#dd4b39,#d14836);
    text-shadow: 0 1px rgba(0,0,0,0.1);
    border-radius: 2px;
    color: #444;
    cursor: pointer;
    font-size: 11px;
    font-weight: bold;
    height: 27px;
    line-height: 27px;
    min-width: 54px;
    outline: none;
    padding: 0 8px;
    text-align: center;
    transition: all .218s;
    -moz-border-radius: 2px;
    -moz-transition: all .218s;
    -moz-user-select: none;
    -o-transition: all .218s;
    -webkit-border-radius: 2px;
    -webkit-transition: all .218s;
    -webkit-user-select: none;
    display: block;
    color: #FFF;
    text-decoration: none;
    margin-bottom: 5px;

}



.g_btns span.g_previous a,
.g_btns span.g_next a{
    width: 16px;
    min-width:  16px;
    margin: 0;
    font-size: 17px;
    position:absolute;
    line-height: 26px;

}

.g_btns span.g_previous img,
.g_btns span.g_next img{
    height: 15px;
    position: relative;
    top: 2px;
}

.g_btns span.g_previous a{
    border-radius: 2px 0 0 2px;

}

.g_btns span.g_next a{
    margin-left: 33px;
    border-radius: 0 2px 2px 0;

}

.g_calendar .g_btns span.g_selected_month{
    line-height: 27px;
    color: #222;
    font-size: 13px;
    font-weight: normal;
}

.g_calendar #more_wind{
    display:none;
    border: 1px solid #ddd;
    background-color: #FFF;

    box-shadow: 0 0 5px 2px #fff;
} 
.g_calendar #more_wind .content{
    padding:0 2px 2px;
}

.g_calendar #more_wind{
    position: absolute;
}

.g_calendar #more_wind .header{
    background-color: #e8eef7;
    font-size: 13px;
    padding: 3px 3px;
}

.g_calendar #more_wind .close{
    position: absolute;
    right: 6px;
    font-size: 15px;
    font-weight: bold;
    margin-top: -3px;
    cursor: pointer;
}

.g_calendar .add_btns{
    position: relative;
    left: 210px;
}


.g_calendar.ver2{
    height: auto;
    line-height: normal;
    margin-left: 0px;
}

.ver2 .g_btns span.g_previous a, 
.ver2 .g_btns span.g_next a{
    width: 40px;
    height: 40px;
    line-height: 35px;
    background-color: #FFF;
    background-image: none;
    border-color: #dedede;
}

.ver2 .g_btns span.g_previous a:hover, 
.ver2 .g_btns span.g_next a:hover{
    background: #FAFAFA;
}

.ver2 .g_btns span.g_previous a{
    border-radius: 5px 0 0 5px;
}

.ver2 .g_btns span.g_next a{
    border-radius: 0 5px 5px 0;
}

.ver2 .g_btns span.g_previous img, 
.ver2 .g_btns span.g_next img{
    top: 0px;
}

.g_calendar.ver2 .g_btns span.g_selected_month select{
    height: 35px;
    padding: 0px 10px;
    min-width: 120px;
    border-radius: 5px;
    border-color: #dedede;

}

.ver2.g_calendar .g_smer{
    margin-left: 0px;
}

.ver2 .bootstrap-select > .btn.btn-default{
    border-radius: 5px;
}

.ver2.g_calendar .g_right tbody td.disabled
{
    background-color: #F5F5F5;
}

.ver2.g_calendar .g_right{
    width: calc(100% - 430px);
    height: calc(100vh - 250px);
    max-width: 750px;
    max-height: 450px;
}
.g_calendar .g_right .g_row.selection tbody td{
    background-color: #FAFAFA;
    color: #999;
    border-color: #eee;
}

.g_calendar .g_right .g_row.selection tbody td.disabled


{
    background-color: #F5F5F5;
}

.g_calendar .g_right .g_row.selection tbody td .g_number{
    color: #999;
}

.g_calendar .g_right .g_row.selection tbody td.selected{
    border-color: #ddd;
    background-color: #FFF;
    color: #222;
}

.g_calendar .g_right .g_row.selection tbody td.selected .g_number{
    color: #222;
}

.ver2 .g_body{
    padding: 0 0 0 15px;
}

.g_calendar.ver2 .g_right tbody td{
    background-color: #F3FEF3;
}

.ver2.g_calendar .g_right tbody td.unavailable,
.g_calendar .g_right .g_row.selection tbody td.unavailable{
    background-color: #FEF3F3;
}



