﻿.vertical-centre (@height) {
    height: @height;
    line-height: @height !important;
    display: inline-block;
    vertical-align: middle;
}

.border-box {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
}

@border-colour: #CCC;

#calendar {
    float: left;
    display: block;
    .border-box;
    background: white;
    width: 100%;
    border: solid 1px @border-colour;
    margin-bottom: 10px;

    @secondary-colour: #2875C7;
    @spacing: 10px;
    @icon-width: 40px;
    @header-height: 40px;

    > div.calander-header {
        float: left;
        width: 100%;
        background: @secondary-colour;
        height: @header-height;
        color: white;

        > * {
            .vertical-centre(@header-height);
        }

        > i {
            float: left;
            width: @icon-width;
            font-size: 1.125em;
            font-weight: bold;
            position: relative;
            .border-box;
            padding: 0 @spacing;
            cursor: pointer;
        }

        > i.fa-angle-left {
            text-align: left;
        }

        > i.fa-angle-right {
            text-align: right;
            margin-left: @icon-width*-1;
        }

        > span {
            float: left;
            width: 100%;
            font-weight: bold;
            text-transform: uppercase;
            .border-box;
            padding-left: @icon-width+@spacing;
            margin-left: @icon-width*-1;
            text-align: center;
            padding-right: @icon-width;
            color: inherit;
        }
    }

    > #closureDiv .calander-week {
        float: left;
        width: 100%;
        border-top: solid 1px @border-colour;

        &:first-child {
            border-top: none;
        }

        > span.day {
            float: left;
            width: 14.2%;
            .border-box;
            border-left: solid 1px @border-colour;
            font-size: 0.75em;
            text-align: center;
            .vertical-centre(30px);
            background: white;
            cursor: pointer;
            color: black;
            position: relative;

            > .tooltipItalic {
                position: absolute;
                top: 8px;
                right: 5px;
                font-size: 7px;
                font-weight: 300;
            }

            > .tooltipItalicL {
                position: absolute;
                top: 8px;
                left: 2px;
                font-size: 7px;
                font-weight: 300;
            }

            &:first-child {
                border-left: none;
            }

            &.today {
                background: #E3F2FF;
            }

            &.different-month {
                color: #C0C0C0;
            }

            &.selected {
                background: #c848a6;
                color: white;
            }

            &.Bangalore {
                background: #c848a6;
                color: white;
            }

            &.Delhi {
                background: #9009b1;
                color: white;
            }

            &.Madras {
                background: #106c9b;
                color: white;
            }

            &.Mysore {
                background: #d02c2c;
                color: white;
            }

&.Calcutta {
    background: #07650c;
    color: white;
}

            &.Hyderabad {
                background: #0ac2c2;
                color: white;
            }

            &.Ooty {
                background: #2680df;
                color: white;
            }

            &.Mumbai {
                background: #f67311;
                color: white;
            }

            &.Pune {
                background: #46bd6b;
                color: white;
            }
        }
    }

    > .calander-wee {
        float: left;
        width: 100%;
        border-top: solid 1px @border-colour;
        border-bottom: solid 1px @border-colour;

        &:first-child {
            border-top: none;
        }

        > span.day {
            float: left;
            width: 14.2%;
            .border-box;
            border-left: solid 1px @border-colour;
            font-size: 0.75em;
            text-align: center;
            .vertical-centre(30px);
            background: white;
            cursor: pointer;
            color: black;

            &:first-child {
                border-left: none;
            }

            &.today {
                background: #E3F2FF;
            }

            &.different-month {
                color: #C0C0C0;
            }

            &.selected {
                background: @secondary-colour;
                color: white;
            }
        }

        &.names > span {
            color: @secondary-colour;
            font-weight: bold;
        }
    }
}
