﻿/* Calendar Widget
----------------------------------*/
.cw-container {
   position:relative;
   overflow:hidden;
   float:left;
   margin: 0 -1px;
   background-color: #FFFFFF;
   width: 100%;
   height: 100%;
   border: 1px solid #CDCDCD;
   border-radius: 5px;
   bottom: 0;
   box-sizing: border-box;
}

.cw-controls {
   display: flex;
   justify-content: space-between;
   height: 30px;
   padding: 5px;
   line-height: 25px;
}

   .cw-controls button.site-button {
      height: 28px;
      padding: 0;      
   }

   .cw-controls button.today {
      width: 30px;
      background: #007FD0 url(Images/cal-today.png) no-repeat center center;
      margin:0 10px;
      float:left;
   }

   .cw-controls .today span {
      display:block;
      font-size: 10px;
      margin-top: 5px;
   }

   .cw-controls .next {
      width: 40px;
      margin-right:10px;
      background: #007FD0 url(Images/cal-right.png) no-repeat center center;
      float:left;  
   }

   .cw-controls .previous {
      width: 40px;
      background: #007FD0 url(Images/cal-left.png) no-repeat center center;
      float:left;
   }

   .cw-controls .menu {
      float:right;
      background: #007FD0 url(Images/cal-options-white.png) no-repeat center center;
      background-size: 12px 18px;
      min-width: 32px;
   }

   .cw-controls button:hover {
      background-color: #006BB7;
      text-shadow: 0px -1px 0px #136d7c;
   }

   .cw-controls .date-picker {
      margin:2px 0 0 10px;
   }

    .cw-controls .month-title {
        font-weight: bold;
        font-size: 1.3em;
        line-height: 30px;

   }

   .cw-controls .hide-month-title {
      overflow:hidden;
      color:transparent;
      display: none;
   }

   .cw-controls button.menu-btn-text {
      min-width: 75px;
      text-align: left;
      padding-left:5px;
      background-position: center right;
   }

.cw-calendar-menu {
   display: none;   
   background-color: #FFF;
   position: absolute;
   right: 5px;
   z-index: 1;
   box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
   margin-top: 5px;
}

   .cw-calendar-menu ul {
      line-height: 40px;
      padding: 0;
      margin: 0;
   }

      .cw-calendar-menu ul li {
         padding: 0 10px;  
         display: block;
         border-top: 1px solid #CDCDCD;
         cursor:pointer;
      }

      .cw-calendar-menu ul li:hover {
         background-color: #F7F7F7;
      }

      .cw-calendar-menu ul li.disabled {
         color:#aaa;
         cursor:default;
      }

      .cw-calendar-menu ul li.disabled:hover {
         background-color:transparent;
      }

.cw-month-container {
   position: absolute;
   bottom: 0;
   top: 35px;
   right: 0;
   left: 0;   
}

.cw-padding {
   padding:20px;
}

.cw-month-head {
    text-align:center;
    height:20px;
    line-height:20px;
    float:left;
    background-color:inherit;
}

.cw-day {
    float:left;
}

   .cw-day .day-loading {
      background-image:url(isys-common-images/spinner.gif);
      background-repeat:no-repeat;
      background-position: center;
      background-size: 20px 20px;
   }

.cw-day-head {
   height:25px;
   line-height:25px;
   overflow:hidden;
}

   .cw-day-head span:not(.calendar-icon) {      
      padding-left:10px;
   }

.cw-day-head:hover {
   cursor:pointer;
   text-decoration:underline;
}

.day-in-diff-month {
   opacity:0.5;
}

.cw-day-body {
   outline: 1px solid #ddd;
   background-color: #EDEDED;
   text-align:center;   
   position:relative;
}

   .cw-day-body:hover {
      cursor:pointer;
   }

    .cw-day-body span {
        word-wrap: break-word;
        display: inline-block;
        vertical-align: middle;
        line-height: normal;
    }
    .cw-day-body.cell-leave-type span {
        position: absolute;
        left: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: unset;
    }

.day-overlay {
    width: 100%;
}

.current-day-head {
   font-weight:bold;
}

.current-day {
   background-color:#A9A9A9;
   margin-left: -1px;
   border: 1px solid #666;
   box-sizing: border-box;
   -moz-box-sizing: border-box;
   -webkit-box-sizing: border-box;
}

.day-selected {
    /* For Safari - Makes the day cell image show up */
    background: url("Images/success.png");
    background-position-y: 5px;
    background-position-x: right;
    background-repeat: no-repeat;
    background: url('Images/success.png') no-repeat right 5px top 5px, url('Images/blurBG.png') repeat;
    outline: 1px solid #F8981D;
    position: absolute;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    width: 100%;
    height: 100%;
}

.total-blackout {
   background: url('Images/black-out-diagnal.png');
   opacity: 0.5;
   position: absolute;
   left: 0;
   right: 0;
   bottom: 0;
   top: 0;
}

.calendar-icon {
   width: 16px;
   height:16px;
   margin:5px 0 0 5px;
   padding: 0;
}

.locked-day,
.awaiting-cancellation,
.shiftswap-day,
.shiftswap-day-waiting,
.shiftswap-day-referred {
    position: relative !important;
    float: left;
}

.locked-day {
   background: url('Images/lock-icon.png') no-repeat;
   background-size: 12px 15px;   
}

.awaiting-cancellation {
   background: url('Images/trash.png') no-repeat;
   background-size: 12px 15px;
}

.list-table .awaiting-cancellation {   
   width:100%;
   height:15px;
   background-position: center;
}

.holiday-blackout {
   background: url('Images/no-holiday.png') no-repeat;
   background-size: 16px 16px;
   float:right;
}

.shiftswap-blackout {
   background: url('Images/no-shiftswap.png') no-repeat;
   background-size: 16px 16px;
   float:right;
}

.shiftswap-day {
   background: url('Images/ShiftSwap.png') no-repeat;
   background-size: 16px 16px;
}

.shiftswap-day-waiting {
   background: url('Images/shift-swap-waiting.png') no-repeat;
   background-size: 24px 16px;
   width:24px;
}

.shiftswap-day-referred {
   background: url('Images/shift-swap-referred.png') no-repeat;
   background-size: 24px 16px;
   width:24px;
}

.selected-datepicker-date {
   color: #F8981D;
   font-weight:bold;
}

   .selected-datepicker-date .cw-day-body {
      margin-left: -2px;
      outline: 1px solid #79b7e7;
      background-color: #f5f8f9;
   }

.cw-notification {
   background-color:#FFF;
   border:1px solid #CDCDCD;
   position:relative;
   padding: 5px;
   display:table;
   height:20px;
   line-height:20px;
   text-align: center;
   margin: 0 auto;
   border-radius:5px;
   color:red;
}

.cw-agenda-summary {
    width:100%;
    min-width:320px;
}

   .cw-agenda-summary tr {
      height:20px;
   }

.cw-clearence-day-request-group {
   color: #666;
   font-weight: 600;
}

.cw-error-dialog {
    height:30px;
    background: url(Images/sign_warning.png) no-repeat center left;
    background-size:30px 30px;
    padding-left:40px;
    line-height: 30px;
}
 /* Calendar week view styling */ 
.week-view-wrapper {
    padding: 5px 0 0 0;
}

    .week-view-wrapper #days-of-week {
        /*overflow: hidden;*/
        width: 35px;
        display: inline-block;
    }

    .week-view-wrapper .cw-month-head {
        text-align: unset;
        height: unset;
        line-height: unset;
        float: unset;
        width: auto !important;
        margin-left: 5px;
        display: flex;
        align-items: center;
        padding-bottom: 10px;
        box-sizing: border-box;
        /*writing-mode: vertical-rl;
    text-orientation: upright;*/
    }

    .week-view-wrapper #days {
        /*overflow: hidden;*/
        width: calc(100% - 35px);
        display: inline-block;
    }

    .week-view-wrapper .cw-day {
        width: 100%;
        float: unset;
    }

    .week-view-wrapper .cw-day-head {
        position: absolute;
        z-index: 1;
        margin: 0 5px;
    }

    .week-view-wrapper .current-day {
        margin-left: 0;
    }
/* Data List Widget
----------------------------------*/
.lw-filter-container {    
}

    .lw-filter-container .search-container {
        position: relative;
        height:auto;
        float:left;
        width:100%;
        margin-bottom: 10px;
    }

        .lw-filter-container .search-container .result-range {
            display: block;
            line-height: 25px;
            float:left;
        }

        .lw-filter-container .search-container .table-search {
            float:right;
        }

        .lw-filter-container .search-container .center {
            float:initial;
            text-align:center;
        }

            .lw-filter-container .search-container .table-search label {
                font-weight: bold;
            }

            .lw-filter-container .search-container .table-search input {
                margin-left: 5px;
                font-weight:normal;
            }

    .lw-filter-container .paging {
        float:left;
        width:100%;
        height:28px;
        margin-bottom: 10px;
    }

        .lw-filter-container .paging .nav-buttons-previous {
            position: absolute;
        }

        .lw-filter-container .paging .nav-buttons-next {
            position: absolute;
            right: 0;
        }

        .lw-filter-container .paging button.site-button {
            width: 40px;
            height: 28px;
            padding: 0;
            float: left;
        }

        .lw-filter-container .paging button.disabled {
            opacity: 0.5;
        }

        .lw-filter-container .paging .previous {
            margin-left: 10px;
            background: #007FD0 url(Images/cal-left.png) no-repeat center center;
        }

        .lw-filter-container .paging .first {
            background: #007FD0 url(Images/nav-left-first.png) no-repeat center center;
        }

        .lw-filter-container .paging .next {
            margin-right: 10px;
            background: #007FD0 url(Images/cal-right.png) no-repeat center center;
        }

        .lw-filter-container .paging .last {
            background: #007FD0 url(Images/nav-left-last.png) no-repeat center center;
        }

        .lw-filter-container .paging .page-links {
            position: absolute;
            left: 100px;
            right: 100px;
            line-height: 30px;
            text-align: center;
        }

            .lw-filter-container .paging .page-links .link {
                outline: none;
                border: none;
                background: none;
                margin: 0;
                padding: 0;
                width: auto;
                font-size: 14px;
                line-height: 22px;
            }

                .lw-filter-container .paging .page-links .link:hover {
                    text-decoration: underline;
                }

            .lw-filter-container .paging .page-links .current {
                font-weight: bold;
            }

                .lw-filter-container .paging .page-links .current:hover {
                    text-decoration: none;
                }

.lw-table-overflow {
   width:100%;
   float:left;
   overflow-x:auto;
   margin-bottom:5px;
   position:relative;
}

.lw-list {
   float:left;
}

.lw-list th.sort {
    background-repeat: no-repeat;
    background-position: right center;
    background-position: right 5px center;   
}

.lw-list th.default {
    background-image: url('Images/noFilter.png');    
}

.lw-list th.asc {
    background-image: url('Images/ASC.png');   
}

.lw-list th.desc {
    background-image: url('Images/DESC.png');   
}

th.name-cell {
    width:250px;
}

.unread-row {
   font-weight: bold;
}

#shiftSwapErrorOutput {
    padding: 5px;
}

.shift-swap-errors {
}

.shift-swap-request-errors {
    padding: 5px;
}

.shift-swap-target-errors {
    padding: 5px;
}

.shift-swap-request-errors-header {
    font-weight: bold;
    color: black;
}

.shift-swap-target-errors-header {
    font-weight: bold;
    color: black;
}

/* Calendar Toggle button */ 
.btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.btn-group {
    display: inline-block;
    padding: 0 10px;
}
.btn-group > .btn-group:not(:first-child) > .btn,
.btn-group > .btn:not(:first-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.btn-group > .btn-group:not(:last-child) > .btn,
.btn-group > .btn:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.btn-month {
    width: 40px;
    background: #007fd0 url(Images/calendar-month-view.svg) no-repeat center center;
    text-shadow: 0 -1px 0 #318b9a;
    border: 1px solid #007fd0;
    background-size: 15px;
    margin-left:-2px;
}
.btn-week {
    width: 40px;
    background: #007fd0 url(Images/calendar-week-view.svg) no-repeat center center;
    text-shadow: 0 -1px 0 #318b9a;
    border: 1px solid #007fd0;
    background-size: 15px;
}

.mtop-2 {
    margin-top: 10px;
}
@media only screen and (max-width: 431px) {
    .cw-controls {
        padding: 5px 4px;
    }
    .cw-controls button.today {
        margin: 0 2px;
    }
    .cw-controls .date-picker {
        margin: 2px 0 0 5px;
    }
    .cw-controls .next, .cw-controls .previous {
        width: 28px;
        margin: 0;
    }
    .btn-group {
        padding: 0 5px;
    }
    .btn-week, .btn-month {
        width: 30px;
    }
    .cw-controls .menu {
        min-width: 28px;
    }
    /* Home Icon */
    .dash-quick-links {
        margin-top: 20px;
    }
    .dash-quick-links a {
        margin: 2px;
    }
    .dash-quick-links a > div {
        border-radius: 5px;
    }
    div.wrapper .centered .padded {
        /*right: 0;*/
    }
    .cw-day-head {
        text-align: center;
    }
    .cw-day-head span:not(.calendar-icon) {
        padding-left:0;
    }
    header {
        z-index: 2;
    }
    .week-view-wrapper .cw-day-head {
        width: 35px;
        text-align: left;
    }
}
