body {
    .ui-panel {
        padding: 0;
        
        .ui-panel-titlebar {
            border: 0 none;
            padding: $headerPadding;
            @include border-radius-top(2px);
            @include border-radius-bottom(0px);
            
            .ui-panel-title {
                margin: 0;
                line-height: $lineHeight + 2;
            }
            
            .ui-panel-titlebar-icon {
                width: $iconWidth;
                height: $iconHeight;
                color: $headerTextColor;
                margin: 0;
                @include transition(background-color $transitionDuration);
                @include border-radius(50%);
                
                &:hover {
                    background-color: $primaryLightColor;
                }
            }
        }
        
        .ui-panel-content {
            height: 100%;
            box-sizing: border-box;
            padding: $contentPadding;
        }
        
        .ui-panel-footer {
            padding: $headerPadding;
            border: 0 none;
            border-top: 1px solid $dividerColor;
            margin: 0;
        }
        
        &.ui-panel-collapsed-h {
            .ui-panel-titlebar {
                padding-left: 40px;
            }
        }
    }
    
    .ui-fieldset {
        padding: $contentPadding;
                
        .ui-fieldset-legend {
            padding: $headerPadding;
            padding-left: 2px;
            padding-right: 8px;
            color: $primaryColor;
            
            .ui-fieldset-toggler {
                padding: 8px;
                background-color: $primaryColor;
                color: #ffffff;
                @include border-radius(50%);
                @include transition(background-color $transitionDuration);
                margin-top: -10px;
                margin-right: 8px;
                @include content-shadow();
                
                &:hover {
                    background-color: $primaryDarkColor;
                }
            }
            
            &.ui-state-focus {
                background-color: transparent;
            }
            
            &.ui-state-active {
                background-color: transparent;
            }
        }
    }
    
    .ui-notificationbar {
        background-color: $accentColor;
        color: $accentTextColor;
    }
    
    .ui-panelgrid {        
        .ui-panelgrid-cell {
            padding: $contentPadding;
        }
        
        .ui-panelgrid-header,
        .ui-panelgrid-footer {
            > .ui-widget-header {
                border-color: $primaryDarkColor;
            }
        }
        
        tbody {
            .ui-panelgrid-cell {
                &.ui-widget-header {
                    background-color: $primaryLightColor;
                }
            }
        }
    }
    
    .ui-accordion {
        .ui-accordion-header {
            background-color: $primaryColor;
            padding: $headerPadding;
            padding-left: 36px;
            font-size: $fontSize;
            color: $primaryTextColor;
            @include transition(background-color $transitionDuration);
            
            &.ui-state-hover {
                background-color: $primaryDarkColor;
            }
            
            &.ui-state-active {
                background-color: $accentColor;
                color: $accentTextColor;
                
                &.ui-tabs-outline {
                    outline: 0 none;
                    background-color: lighten($accentColor, 10%);
                }
            }
            
            .ui-icon-triangle-1-e {
                margin-top: -10px;
            }
            
            .ui-icon-triangle-1-s {
                margin-top: -10px;
            }
            
            &.ui-tabs-outline {
                background-color: lighten($primaryColor, 10%);
            }
        }
        
        .ui-accordion-content {
            padding: $contentPadding;
            line-height: $lineHeight;
        }
    }
    
    .ui-scrollpanel {
        padding: 0;
        
        .ui-scrollpanel-track {
            background-color: #ffffff;
            border-color: transparent;
            padding: 0;
        }
        
        .ui-scrollpanel-drag {
            @include border-radius(3px);
            background-color: $dividerColor;
        }
    }
    
    .ui-toolbar {
        background-color: $primaryDarkColor;
        @include content-shadow();
        padding: 10px;
        
        .ui-button {
            margin-right: 6px;
        }
    }
    
    .ui-tabs {
        padding: 0;
        
        .ui-tabs-nav {
            background-color: #ffffff;
            border: 0 none;
            @include border-radius(0);
            
            > li {
                padding: 0;
                @include transition(border-color $transitionDuration);
                
                > a {
                    padding: $headerPadding;
                    
                    &:focus {
                        outline: 0 none;
                    }
                }
                
                > .ui-icon-close {
                    margin: 7px 0 0 0;
                    @include transition(color $transitionDuration);
                    color: $textSecondaryColor;
                }
                
                &.ui-state-default {
                    a {
                        color: $textSecondaryColor;
                    }
                }
                
                &.ui-state-hover {
                    background-color: #ffffff;
                }
                
                &.ui-state-active {
                    background-color: #ffffff;
                    border-color: $accentColor;
                    border-style: solid;
                    
                    a {
                        color: $primaryColor;
                        font-weight: 700;
                    }
                    
                    > .ui-icon-close {
                        color: $accentColor;
                    }
                }
                
                &.ui-tabs-outline {
                    outline: 0 none;
                    border-color: $accentLightColor;
                }
            }
        }
        
        .ui-tabs-panel {
            padding: $contentPadding;
        }
        
        &.ui-tabs-top {
            > .ui-tabs-nav {
                padding: 0;
                margin: 0;
                @include border-radius-top(4px);
                border-bottom: 1px solid $dividerColor;
                
                > li {
                    border-style: solid;
                    border-width: 0 0 2px 0;
                }
            }
        }
        
        &.ui-tabs-bottom {
            > .ui-tabs-nav {
                padding: 0;
                margin: 0;
                @include border-radius-bottom(4px);
                border-top: 1px solid $dividerColor;
                
                > li {
                    border-width: 2px 0 0 0;
                }
            }
        }
        
        &.ui-tabs-left {
            > .ui-tabs-nav {
                padding: 0;
                margin: 0;
                @include border-radius-left(4px);
                border-right: 1px solid $dividerColor;
                
                > li {
                    box-sizing: border-box;
                    border-width: 0 2px 0 0;
                    
                    > a {
                        width: 100%;
                        box-sizing: border-box;
                    }
                }
            }
        }
        
        &.ui-tabs-right {
            > .ui-tabs-nav {
                padding: 0;
                @include border-radius-right(4px);
                border-left: 1px solid $dividerColor;
                
                > li {
                    box-sizing: border-box;
                    border-width: 0 0 0 2px;
                    
                    > a {
                        width: 100%;
                        box-sizing: border-box;
                    }
                    
                    &.ui-state-active {
                        > a {
                            padding-left: 14px;
                        }
                    }
                }
            }
        }
        
        &.ui-tabs-scrollable {
            .ui-tabs-navscroller {
                > .ui-tabs-navscroller-btn {
                    outline: 0 none;
                    width: 18px;
                    display: block;
                    height: 42px;
                    background-color: #ffffff;
                    @include border-radius(0);
                    @include transition(background-color $transitionDuration);
                    
                    > span {
                        margin-top: 10px;   
                    }
                    
                    &:hover {
                        @include hover-element();
                    }
                }
                
                > .ui-tabs-navscroller-btn-left {
                    z-index: 1;
                    left: 0;
                    border-right: 1px solid $dividerColor;
                    > span {
                        &:before {
                            position: relative;
                            left: -2px;
                        }
                    }
                }
                
                > .ui-tabs-navscroller-btn-right {
                    z-index: 1;
                    right: 0;
                    border-left: 1px solid $dividerColor;

                    > span {
                        &:before {
                            position: relative;
                            right: 2px;
                        }
                    }
                }
                
                .ui-tabs-nav {
                    > li {
                        margin: 0;
                    }
                }
            }
            
            &.ui-tabs-top {
                .ui-tabs-navscroller {
                    > .ui-tabs-nav {
                        border-bottom: 1px solid $dividerColor;
                        
                        > li {
                            border-style: solid;
                            border-width: 0 0 2px 0;
                        }
                    }
                    
                    > .ui-tabs-navscroller-btn-left {
                        border-top: 0 none;
                        border-bottom: 1px solid $dividerColor;
                    }
                }
            }
            
            &.ui-tabs-bottom {
                .ui-tabs-navscroller {                    
                    > .ui-tabs-nav {
                        border-top: 1px solid $dividerColor;
                                                
                        > li {
                            border-style: solid;
                            border-width: 2px 0 0 0;
                        }
                    }
                    
                    > .ui-tabs-navscroller-btn-left {
                        border-bottom: 0 none;
                        border-top: 1px solid $dividerColor;
                    }
                    
                    > .ui-tabs-navscroller-btn-right {
                        border-top: 1px solid $dividerColor;
                    }
                }
            }
        }
    }
    
    .ui-wizard {
        .ui-wizard-step-titles {
            background-color: $primaryDarkColor;
            @include border-radius-top(3px);
            
            > li {
                padding: $headerPadding;
                color: #ffffff;
                
                &.ui-state-highlight {
                    color: #ffffff;
                    background-color: transparent;
                    border-bottom: 2px solid $accentColor;
                    @include border-radius(0);
                }
            }
        }
        
        .ui-wizard-content {
            margin: 0;
            
            .ui-panel {
                .ui-panel-titlebar {
                    @include border-radius(0);
                }
            }
        }
    }
    
}