//colors calendar
@calendarHeaderBackground: #fff; 
@calendarHeaderColor: #999;
@calendarCurrentStateHover: #f5f5f5;
@calendarBorder: #ccc;
.ui-datepicker {

    th, th.ui-datepicker-week-end {
        background: @calendarHeaderBackground !important;
        color: @calendarHeaderColor !important;
    }

    .ui-state-default {
        border-color: @calendarBorder !important;
        background: @brad-black !important;
    }

    .ui-datepicker-header {
        background: @calendarHeaderBackground !important;
        border-color: @gray;
        border-bottom-width: 0px;
    }

    .ui-datepicker-calendar {
        border: 1px solid @gray;
        thead {
            border-bottom: 1px solid @gray;
        }
    }

    .ui-datepicker-title select {
        font-size: 10px;
    }
}

.ui-datepicker td.ui-datepicker-current-period a.ui-state-default, td .ui-state-active, .ui-datepicker td.ui-datepicker-current-period a.ui-state-active, .ui-datepicker td.ui-datepicker-week-end .ui-state-active, .ui-datepicker td.ui-datepicker-other-month.ui-datepicker-current-period {
    background: @brand-black !important;
}

.ui-datepicker td.ui-datepicker-current-period a.ui-state-default, td .ui-state-active, .ui-datepicker td.ui-datepicker-current-period a.ui-state-active, .ui-datepicker td.ui-datepicker-week-end .ui-state-active, .ui-datepicker td.ui-datepicker-other-month.ui-datepicker-current-period {
    background: @calendarCurrentStateHover;
}

//add new segment
.add_new_segment,
#calendarRangeApply {
    font-size: 12px !important;
    padding: 0 10px !important;
    margin-left: 0px !important;
}

.segment-element {
    background: @white;
    border-color: @silver-80;

    .segment-add-row {
        .border-radius(5px);
    }

    .segment-nav {
        h4.visits {
            background: url('plugins/Morpheus/images/segment-users.png') no-repeat 3px 0px;
        }
    }

    .custom_select_search {
        input {
            margin-top: -10px;
        }
    }

    .segment-content {
        h3 {
            font-weight: normal;
            .font-default(13px, 15px);
            color: @brand-black;
        }
        
        .segment-add-row > div a span,
        .segment-add-or > div a span {
            color: @brand-red;
            text-shadow: none;
        }

        .segment-input {
            select, input {
                .font-default(12px, 14px);
                color: @brand-black;
                font-weight: 500;
                margin: 0px;
                min-height: auto;
            }
        }
    }
    .segment-nav {
        div > ul > li {
            padding: 5px 0;
            a {
                font-weight: normal;
                color: #333333;
                text-shadow: none;
            }
            li {
                padding: 3px 0 ;
                &:hover {
                    background: #f2f2f2;
                    border: 0;
                     padding: 4px 0 3px;
                  
                    a {
                        border: 0;
                        background-color: #f2f2f2;
                        padding-right: 15px;

                    }
                }
            }

        } 
    } 

    .segment-top {
        .font-default(10px, 12px);
        color: #444;
        text-transform: uppercase;

        h4 {
            color: @silver-30;
            text-transform: uppercase;
            .font-default(10px, 12px);
            a.dropdown {
                color: @silver-30;
                text-transform: uppercase;
                .font-default(10px, 12px);
            }
        }

        a.dropdown {
            color: @brand-black;
            background: url('plugins/Zeitgeist/images/sort_subtable_desc.png') 100% -2px no-repeat;
            &.ui-autocomplete-input {
                background-position: 100% -2px;
            }
        }
    }
    .segment-footer {
        background: @white;
        button {
            height: auto;
            font-weight: normal;
            min-width: 100px;
        }

        a.delete {
            color: @brand-red;
        }
        .segmentFooterNote, .segment-element .segment-footer .segmentFooterNote a {
            color: #444;
        }
    }
}

.available_segments a.dropdown  {
    color: @brand-black !important;
    text-transform: uppercase;
    .font-default(10px, 12px);
}


#periodString {
    border: 1px solid @silver-80;
    .border-radius(0px);
    background: #fff;
    &:hover {
        background: #fff;
        border-color: @silver-80;
    }

    select {
      min-height: 0;
    }

    .calendar-icon {
        width: 17px;
        height: 17px;
    }

    label.selected-period-label {
        text-decoration: none !important;
    }

    h6 {
        .font-default(13px, 16px);
        font-weight: normal;
        color: @brand-black;
    }

    #periodMore {
        .period-range {
            .ui-datepicker-header {
                background: red;
            }
        }
    }

    #date {
        .border-radius(0px);
        background-color: #fff;
        .box-shadow(~"inset 1px 1px 3px #d8d8d8");
        padding: 8px 10px;
        color: @silver-20;
        text-transform: uppercase;
        .font-default(10px, 12px);

        strong {
            color: @brand-black;

        }
    }
}

#header_message {
    border: 1px solid @silver-80;
    padding: 8px 10px 8px 10px;
    height: auto;
    background: #fff;
    .border-radius(0px);
    .header_short {
        .font-default(10px, 12px);
        text-transform: uppercase;
    }

    .header_full {
        .font-default(12px, 18px);
    }
}

.ui-menu {
    .ui-menu-item {
        a {
            color: @silver-20;
            text-transform: uppercase;
            .font-default(10px, 18px);
            padding: 2px;
        }
    }
}

.loadingPiwikBelow,
.loadingPiwik {
    .font-default(10px, 12px);
    color: @silver-60;
    font-weight: normal;
}

.annotations {
    table {
        td {
            .font-default(12px, 14px) !important;
            color: @brand-black;
            padding: 6px 5px;
        }
    }
}

//reports box 
.reports {
    border: 1px solid @gray;
    .border-radius(6px);

    h2 {
        background: #f2f2f2;
        border-bottom: 1px solid @gray;
        padding: 11px 15px 10px;
    }
}

.jqplot-seriespicker-popover { 
    .box-shadow-1(none);
}

// transition box
#Transitions_Container {
    #Transitions_CenterBox {
        border: 1px solid @gray;
        .box-shadow-1(none);
        .border-radius(6px);
        margin: 27px 0 0 319px;
        width: 258px;
        height: 390px;
        background: #fff;
        h2 {
            color: #1e93d1;
            border-bottom: 1px solid @gray;
            font-weight: normal;
            padding: 15px;
            background: #f5f5f5;
            .border-radius(6px 6px 0 0);
        }

        .Transitions_CenterBoxMetrics {
            padding: 0;
            p {
                font-family: Verdana, sans-serif;
            }
            p.Transitions_Margin {
                text-align: left;
                .font-default(15px, 20px);
                border-bottom: 1px solid @gray;
                padding: 13px;
                .Transitions_Metric {
                    font-weight: normal;
                }
            }
            .Transitions_IncomingTraffic {
                padding: 0 15px;

                h3 {
                    font-weight: normal;
                    color: #000;
                    .font-default(15px, 20px);
                    margin-bottom: 10px;
                }
            }
            .Transitions_OutgoingTraffic {
                padding: 0 15px;
                h3 {
                    font-weight: normal;
                    color: #000;
                    .font-default(15px, 20px);
                    margin-bottom: 10px;
                }
            } 
        }
    }

    .Transitions_TitleOfOpenGroup {
        color: #000;
        .font-default(15px, 20px);
        font-weight: normal;
        margin-top: -4px;
    }
}


table.dataTable tr td .dataTableRowActions {
  a.rightmost, a {
    background-color: #f2f2f2 !important;
    margin: 6px 0px 6px 0;
    padding: 0px 4px 0px 0px;
  }
}

table.dataTable tr td.labeleven .dataTableRowActions {
  a.rightmost, a {
    background-color: #fff !important;
  }
}

table.dataTable th .columnDocumentation {
    color: @silver-90;
}
