@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    src: local('Roboto'), local('Roboto-Regular'), url('../../font/xschedule/Roboto-Regular.ttf');
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 500;
    src: local('Roboto Medium'), local('Roboto-Medium'), url('../../font/xschedule/Roboto-Medium.ttf');
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    src: local('Roboto Bold'), local('Roboto-Bold'), url('../../font/xschedule/Roboto-Bold.ttf');
}

body {
    font-family: Roboto, sans-serif !important;
    margin: 0;
    padding: 0;
}

.form-group {
    margin-bottom: 0;
}

/* ==== MODAL CUSTOM ==== */
.modal-header .close {
    line-height: 25px;
}

.modal-header h4 {
    margin: 0;
    font-weight: 600;
}

.modal-body {
    padding: 15px;
}

.modal-footer {
    margin-top: 0;
    padding-left: 15px;
    padding-right: 15px;
}

.modal-event.modal.fade.in {
    margin-top: -240px;
    width: 65%;
    margin-left: -360px;
}

.modal .form-control {
    margin-bottom: 0 !important;
}

/* ===== ALERT ===== */
.alert {
    padding: 7px 10px;
    border-radius: 2px;
    margin-bottom: 10px;
}

/* ====== COMMON ====== */
.no-padding {
    padding: 0;
}
.no-margin {
    margin: 0;
}
.text-left {
    text-align: left;
}
.text-center {
    text-align: center;
}
.text-right {
    text-align: right;
}
.text-bold {
    font-weight: 600;
}
.vertical-top {
    vertical-align: top !important;
}
.vertical-middle {
    vertical-align: middle !important;
}
.vertical-bottom {
    vertical-align: bottom !important;
}

.label-mode-0,
.label-mode-0 .fc-event-dot{
    background-color: #438EB9;
}
.text-mode-0 {
    color: #438EB9;
}
.label-mode-1,
.label-mode-1 .fc-event-dot{
    background-color: #3CA54A;
}
.text-mode-1 {
    color: #3CA54A;
}
.label-mode-2,
.label-mode-2 .fc-event-dot{
    background-color: #FF9800;
}
.text-mode-2 {
    color: #FF9800;
}
.label-mode-3,
.label-mode-3 .fc-event-dot{
    background-color: #EF5B49;
}
.text-mode-3 {
    color: #EF5B49;
}
.label-mode-4,
.label-mode-4 .fc-event-dot{
    background-color: #77901B;
}
.text-mode-4 {
    color: #77901B;
}
.label-mode-5,
.label-mode-5 .fc-event-dot{
    background-color: #7D5392;
}
.text-mode-5 {
    color: #7D5392;
}

.mask-search {
    opacity: 0;
    overflow: hidden;
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    background: #FFF;
    display: none;
}

.errors {
    border-color: #D60000 !important;
}

/* ========= WEB ========= */
.schedule-container {
    padding-top: 15px;
    padding-bottom: 15px;
}
.schedule-container.home {
    padding: 0;
}
.schedule-container.home .panel {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
.schedule-container.home .panel .panel-heading {
    font-size: 30px;
    text-align: center;
    text-transform: uppercase;
    padding: 15px 20px;
    background: #337ab7;
    color: #FFF;
    border-radius: 0;
}
.schedule-container.home .panel .panel-body {
    padding-left: 0;
    padding-right: 0;
}
.schedule-container.home .list-group {
    margin-bottom: 0;
}
.schedule-container.home .list-group .list-group-item {
    border-color: transparent;
    padding: 10px;
}
.schedule-container.home .list-group .list-group-item .icon {
    color: #2196F3;
    margin-right: 5px;
}
.schedule-container .tab-header.nav > li > a {
    padding: 8px 10px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 0!important;
}
.schedule-container .tab-header.nav-pills>li.active>a,
.schedule-container .tab-header.nav-pills>li.active>a:focus,
.schedule-container .tab-header.nav-pills>li.active>a:hover {
    background-color: #337ab7;
}
.schedule-container .page-header {
    margin: 0;
    padding: 15px 0;
    text-align: center;
    border-bottom: 0;
}

.xschedule-table{
    font-size: 16px;
    margin: 0;
    table-layout: fixed;
}
.xschedule-table thead>tr>th {
    border-right-color: #DDDDDD;
    border-bottom: 0;
    text-align: center;
    background: #337ab7;
    color: #FFFFFF;
    text-transform: uppercase;
    vertical-align: middle;
    font-size: 14px;
}

.xschedule-table th{
    vertical-align: middle !important;
}

.fc-scroller .xschedule-table {
    font-size: 14px !important;
}


/* ===== FULLCALENDAR ===== */
.fc-event {
    border: 1px solid #FFF;
    border-radius: 2px;
}

/* Index */
.firm-header{
    font-size: 30px;
    background: #337ab7;
    color: #FFF;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 40px 15px 20px;
    z-index: 100;
}
.firm-header > a{
    color: #fff;
    text-decoration: none !important;
}
.firm-body{
    overflow: hidden;
    padding: 90px 10px 30px;
}
.firm-item{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 10px;
    color: #555;
    display: block;
}
.firm-item > i{
    float: left;
    width: 40px;
    height: 40px;
    margin: -10px 0 -10px -10px;
    text-align: center;
    line-height: 40px;
}
.org-collapse{
    display: none;
    overflow: hidden;
    padding-left: 15px;
}
.org-collapsed + .org-collapse{
    display: block;
}
.firm-search{
    overflow: hidden;
    position: relative;
    height: 40px;
    width: 300px;
    float: right;
    color: #666;
    background: #fff;
}
.firm-search > input{
    padding: 10px 40px;
    border: 0;
    font-size: 16px;
    margin: 0;
    height: 100%;
    width: 100%;
    position: absolute;
    background: none;
    left: 0;
}
.firm-search-icon{
    float: left;
    height: 100%;
    font-size: 20px !important;
    width: 40px;
    text-align: center;
    line-height: 38px !important;
}
.firm-search-clear{
    position: absolute;
    right: 0;
    top: 0;
    cursor: pointer;
}

/*Form create*/
#work-schedule-form > .form-group{
    margin-bottom: 5px;
}
#work-schedule-form label{
    white-space: normal;
}

/* Form view */

#form-cal-view{
    display: none;
    font-size: 14px;
    padding: 10px 15px;
}

.form-view-action{
    margin: -10px -15px 10px;
    padding: 5px 10px;
    border-bottom: 1px solid #ddd;
    background: #f5f5f5;
}

.form-view-action > button{
    margin-right: 5px;
    width: 32px;
}

.form-view-item {
    overflow: hidden;
    margin-bottom: 10px;
}
.form-view-item > label {
    text-align: right;
    white-space: normal;
    margin: 0;
    padding: 0;
}
.form-view-item > div {
    overflow: hidden;
}

/* Full calendar custom */
.fc-list-item{
    background: none;
    cursor: pointer;
}


/* Print css */
#page-header{
    padding: 0 160px 10px;
}

/*TV mode*/
#xschedule-tv {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid #ddd;
}

#xschedule-tv .xschedule-table {
    font-size: 20px;
}

#table-tv-head {
    position: relative;
    z-index: 100;
    font-size: 14px !important;
}

#table-tv-body {
    position: absolute;
    z-index: 99;
    left: 0;
    right: 0;
    top: 100%;
    -webkit-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
    -webkit-transition-timing-function: linear;
    transition-timing-function: linear;
}

.time-tv-view{
    position: absolute;
    height: 70px;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    background: #eee;
    z-index: 100;
    border-top: 1px solid #ddd;
}
.time-tv-view > div{
    width: 250px;
    height: 50px;
    line-height: 50px;
    margin-top: 10px;
    font-size: 40px;
    color: #fff;
    font-weight: bold;
    display: inline-block;
    background: #337ab7;
}

/*Tab view*/
.header-left{
    float: left;
    margin-left: -160px;
}
.header-right{
    float: right;
    margin-right: -160px;
}

#week-header-print{
    display: none;
    margin-bottom: 10px;
    text-align: center;
}
#week-header-print > *{
    font-weight: 500;
    color: #000;
    font-family: inherit;
}
#week-header-print > h3{
    text-transform: uppercase;
}

/* Slider */
#xschedule-marquee{
    position: absolute;
    top: 40px;
    bottom: 0;
    width: 100%;
    overflow: hidden;
    display: none;
}

/* Time picker */
.bootstrap-timepicker-widget.timepicker-orient-bottom:before {
    bottom: -7px;
    top: auto;
    border-top: 7px solid rgba(0, 0, 0, 0.2);
    border-bottom: 0;
}
.bootstrap-timepicker-widget.timepicker-orient-bottom:after {
    bottom: -6px;
    top: auto;
    border-top: 6px solid #FFFFFF;
    border-bottom: 0;
}

/* view publish */
.tv-view .tv-view-hide {
    display: none !important;
}
.tv-view .tv-view-show {
    display: block !important;
}

/* calendar form time */
.form-time-input {
    float: left;
    text-align: center;
    margin-right: 10px;
    width: auto !important;
}


/* table view  */
.visible-event-status .event-status-icon{
    display: block;
}

.visible-event-status .table-event-action {
    padding-left: 20px !important;
}

.table-event-action{
    cursor: pointer;
}

.table-event-action:hover{
    text-decoration: underline;
}

.event-status-icon {
    display: none;
    float: left;
    margin: 6px 0 0 -15px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.event-prefix-filter {
    width: 22px;
    padding-left: 5px;
    display: inline-block;
    min-height: 1px;
    color: #666;
}

/* filter checkbox */
.checkbox.filter-check{
    margin: 0;
    padding-left: 30px;
}
.checkbox.filter-check > label{
    display: block;
}

/* print css */
@media print {
    #page-header {
        padding: 10px;
        margin-top: 0;
    }
    #page-header > h3 {
        margin-bottom: 10px !important;
    }

    .cal-print-hidden,
    .event-status-icon {
        display: none !important;
    }

    .cal-print-show {
        display: block !important;
    }


    table.item td {
        border: 0 !important;
    }

    /*Fixed bug thead overlay from page 2nd when print */
    thead {
        display:table-row-group;
    }
    .xschedule-table td,
    .xschedule-table th{
        border-color: #000 !important;
    }

    /*Print admin list*/
    .wg-content{
        padding-top: 0;
    }
    .wg-toolbar,
    .fc-toolbar{
        display: none;
    }
    .fc-list-view{
        border: 0 !important;
    }
    .fc-scroller {
        overflow: hidden !important;
        height: auto !important;
        padding-bottom: 5px;
    }
    .fc-scroller > .xschedule-table{
        font-size: 16px !important;
        margin-bottom: 0 !important;
    }

    /* Prevent break tr when print */
    tr, td {
        page-break-inside: auto !important;
        page-break-after  : auto !important;
        page-break-before : auto !important;
    }

    /* Default landscape */
    @page {
        size: landscape;
    }

    .visible-event-status .table-event-action {
        padding-left: 10px !important;
    }
}
