/*
 * Copyright (C) 2023 Xibo Signage Ltd
 *
 * Xibo - Digital Signage - https://xibosignage.com
 *
 * This file is part of Xibo.
 *
 * Xibo is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * any later version.
 *
 * Xibo is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with Xibo.  If not, see <http://www.gnu.org/licenses/>.
 */
#calendar-progress {
    font-size: 1.5rem;
    opacity: 0;
    transform: scale(0.8);
    transition: transform 0.3s ease 0.1s, opacity 0.3s ease 0.1s;
    display: inline-block;
}

#calendar-progress.show {
    opacity: 1;
    transform: scale(1);
}

#cal-week-box {
    z-index: 1000;
}

.cal-legend ul {
    list-style: none;
}

#cal-day-box {
    overflow-x: auto;
}

#cal-day-box #cal-day-panel {
    width: max-content;
    min-width: 100%;
}

.day-highlight {
    overflow: hidden;
}

.day-event.day-event-small {
    border-color: orange !important;
    background-color: orange;
    min-height: 20px;
    opacity: 0.8;
}

.day-event.day-event-small:hover {
    opacity: 1;
}

.agenda-view-modal .modal-dialog {
    max-width: 1200px;
}

.agenda-view-modal .modal-dialog .modal-body {
    min-height: 600px;
}

.agenda-view-modal .modal-title {
    display: inline-flex;
}

.agenda-view-modal .agenda-view-loading {
    height: 15px;
    margin: 6px 0px 0px 6px;
}

.agenda-table {
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 4px;
}

.agenda-table thead {
    background-color: #e3e3e3 !important;
}

.agenda-table .table-title {
    background-color: #30426a !important;
    color: #fff;
}

.agenda-panel .panel-body {
    background-color: #f5f5f5;
    padding: 10px 0 0 0;
}

.agenda-panel .panel-heading {
    background-color: white;
}

.agenda-panel .nav-tabs>li.active>a, .nav-tabs>li.active>a:hover, .nav-tabs>li.active>a:focus {
    background-color: #ddd;
}

.agenda-panel .text-danger {
    text-align: center;
    vertical-align: middle;
    line-height: 90px;
}

.agenda-table tbody tr.low-priority {
    color: grey;
}

.agenda-table tbody tr:hover {
    cursor: pointer;
    color: #428bca;
}

.agenda-table tbody tr.selected {
    cursor: pointer;
    background-color: #428bca;
    color: white;
}

.agenda-table tbody tr.selected-linked {
    cursor: pointer;
    background-color: #83acd0;
    color: white;
}

.agenda-table .btn-tag {
    padding: 0px 5px;
    cursor: default;
}

.agenda-panel .dataTables_wrapper {
    padding-top: 10px;
    float: left;
    width: 100%;
}

.agenda-panel .dataTables_wrapper:not(:last-child) {
    border-bottom: 2px solid #e3e3e3;
}

@media (min-width: 1200px) {
    .agenda-panel .agenda-col {
        padding: 0 5px;
    }

    .agenda-panel .agenda-col-lt .dataTables_length {
        height: 40px;
    }

    .agenda-panel .agenda-col-dg, .agenda-panel .agenda-col-lt > .agenda-table {
        margin-top: 46px;
    }

    .agenda-panel .dataTables_wrapper .col-sm-12 {
        padding: 0;
    }

    .agenda-panel .table>tbody>tr>td, .agenda-panel .table>tbody>tr>th, .agenda-panel .table>tfoot>tr>td, .agenda-panel .table>tfoot>tr>th, .agenda-panel .table>thead>tr>td, .agenda-panel .table>thead>tr>th {
        padding: 4px;
    }

    .agenda-panel table.dataTable thead>tr>th.sorting_asc, .agenda-panel table.dataTable thead>tr>th.sorting_desc, .agenda-panel table.dataTable thead>tr>th.sorting, .agenda-panel table.dataTable thead>tr>td.sorting_asc, .agenda-panel table.dataTable thead>tr>td.sorting_desc, .agenda-panel table.dataTable thead>tr>td.sorting {
        padding-right: 25px;
    }

    .agenda-panel table.dataTable thead .sorting:after, .agenda-panel table.dataTable thead .sorting_asc:after, .agenda-panel table.dataTable thead .sorting_desc:after, .agenda-panel table.dataTable thead .sorting_asc_disabled:after, .agenda-panel table.dataTable thead .sorting_desc_disabled:after {
        bottom: 6px;
        right: 6px;
    }

    .cal-context .tab-pane {
        padding: 25px 5px 5px 5px !important;
    }

    .agenda-panel .dataTables_wrapper:first-child {
        padding-top: 0;
    }

    .agenda-panel .dataTables_wrapper>.row:first-of-type>div {
        margin: 0;
    }
}

.cal-event-time-bar {
    margin: 15px 0;
    height: 50px;
}

.cal-event-time-bar .slider.slider-horizontal {
    float: left;
    width: calc(100% - 80px);
    margin-top: 7px;
}

.cal-event-time-bar .slider-step-btn {
    float: left;
    width: 40px;
    color: #337ab7;
}

.cal-event-time-bar .slider .tooltip.top {
    margin-top: -36px;
    z-index: 10;
}

.cal-event-time-bar .slider .tooltip-inner {
    font-weight: bold;
    font-size: 1rem;
}

.cal-event-time-bar .slider .slider-tick:not(.in-selection) {
    background-image: linear-gradient(to bottom, #d7f2ff, #d0f0ff);
}

.cal-event-time-bar .slider .slider-tick-label {
    width: 60px !important;
    transform: translateX(-30px);
    margin-left: 0 !important;
    overflow: hidden;
}

.cal-event-time-bar .slider-handle:hover {
    cursor: grabbing;
}

.cal-event-time-bar .tooltip {
    z-index: 1040;
}

.cal-event-agenda-filter {
    margin-top: 15px;
    padding: 0 15px;
}

.cal-event-agenda-filter .cal-event-location-map {
    border-radius: 3.5px;
    overflow: hidden;
    margin-bottom: 8px;
}

.cal-event-location {
    display: table;
    width: inherit;
    margin: 6px 0;
}

.cal-event-location>button, .cal-event-location>div {
    margin: 0 2px;
}

.cal-event-location>button {
    width: 40px;
}

.cal-context .tab-pane {
    padding-top: 25px;
}

.cal-event-breadcrumb-trail #content {
    text-align: center;
}

#CalendarContainer .cal-events-num {
    margin-top: 15px;
    background-color: #5bc0de;
}

.cal-month-day-number-events {
    position: absolute;
    display: none;
    top: 5px;
    left: 5px;
    border-radius: 0.5em;
    border-top-left-radius: 0;
}

.cal-cell:hover .cal-month-day-number-events {
    display: block;
}

[data-event-class="event-important"] .event-priority {
    vertical-align: super;
    font-size: smaller;
    margin: 1px;
}