/**************************************
Theme Danger Color
**************************************/ 
.bg-gradient-danger   
{
	background: $theme-danger-grd;
}
.bg-light-body  {
    background: $light6;
}
.theme-danger{ 
    .bg-gradient-danger {@extend .bg-gradient-danger }
    .art-bg{@extend .bg-gradient-danger }
    &.fixed {        
        .main-header {
            @extend .bg-light-body
        }
    }
    .main-header{
        @extend .bg-light-body
    }
}

.theme-danger.onlyheader .art-bg{
	background-image: none;
}

.bg-gradient-danger-dark
{
	background-image: $theme-danger-grd-dark;
}
.bg-dark-body  {
    background: $body-dark;
}
.dark-skin{
&.theme-danger{ 
    .bg-gradient-danger {@extend .bg-gradient-danger-dark}
    .art-bg{@extend .bg-gradient-danger-dark}
    &.fixed {        
        .main-header {
            @extend .bg-dark-body
        }
    }
    .main-header{
        @extend .bg-dark-body
    }
}
}

// Small devices
@include screen-sm-max {
    .theme-danger{ 
        &.fixed {        
            .main-header {
                background-image: $light3;
                &.navbar{
                    background: none;
                }
            }
        }        
    }
        
    .dark-skin{
    &.theme-danger{ 
        &.fixed {        
            .main-header {
                background-image: $body-dark;
            }
        }
    }
    }
}


.theme-danger{
    a{  
        
        @include hover-state{
            color: $theme-danger-primary;
        }         
    }
}
.theme-danger{
    &.light-skin {
        .sidebar-menu{
            >li{
                &.active.treeview {
                    >a{
                        background: $theme-danger-grd;
                        color: $white !important;
                        -webkit-box-shadow: 0px 0px 12px 0px rgba($theme-danger-primary,0.35);
                        box-shadow: 0px 0px 12px 0px rgba($theme-danger-primary,0.35);
                        > i{
                           color: $theme-danger-primary; 
                        }
                        > svg{
                           color: $white; 
                        }
                        &:after{
                            border-color: transparent #fafafa transparent transparent !important;
                        }
                    }
                }
                &.treeview{
                    .treeview-menu{
                        li{
                            a{
                                color: $dark;
                            }
                        }
                    }
                }
            } 
        }
         &.sidebar-mini{
            &.sidebar-collapse{
                .sidebar-menu{
                    >li.active{
                        >a{
                            >span{
                                background: $theme-danger-grd !important;
                                color: $white !important;
                            }
                        }
                    }
                }
            }
        }
    }
    
    &.dark-skin {
        .sidebar-menu{
            >li{
                &.active.treeview {
                    >a{
                        background: $theme-danger-grd;
                        color: $white !important;
                        -webkit-box-shadow: 0px 0px 12px 0px rgba($theme-danger-primary,0.35);
                        box-shadow: 0px 0px 12px 0px rgba($theme-danger-primary,0.35);
                        > i{
                           color: $theme-danger-primary; 
                        }
                        > svg{
                           color: $white; 
                        }
                        &:after{
                            border-color: transparent lighten($black, 20%) transparent transparent !important;
                        }
                    }
                    &.treeview {
                        >a{
                            background: $theme-danger-grd;
                            color: $white !important;
                            > i{
                               color: $white; 
                            }                            
                            > svg{
                               color: $white; 
                            }
                            &:after{
                                border-color: transparent #fafafa transparent transparent !important;
                            }
                        }
                        .treeview-menu{
                            li{
                                a{
                                    color: $dark-text;
                                }
                            }
                        }
                    }
                }
            } 
        }
    }    
    &.light-skin {
        .sidebar-menu{
            >li{
                &.active{
                    background: $theme-danger-grd;
                    color: rgba($white, 1);
                    -webkit-box-shadow: 0px 0px 12px 0px rgba($theme-danger-primary,0.35);
                    box-shadow: 0px 0px 12px 0px rgba($theme-danger-primary,0.35);
                    a{
                        color: rgba($white, 1);
                        background-color: transparent;                        
                        > i{
                           color: rgba($theme-danger-primary, 1) 
                        }
                        > svg{
                           color: rgba($white, 1) 
                        }
                    }
                    .treeview-menu{
                        li.active{
                            background-color: rgba($theme-danger-primary, 0);
                            color: rgba($theme-danger-primary, 1);
                            a{
                                color: rgba($theme-danger-primary, 1);
                            }
                        }
                    }
                    &.menu-open{
                        background: transparent; 
                        -webkit-box-shadow: none;
                        box-shadow: none;
                    }
                }
            } 
        }
    }
    &.dark-skin {
        .sidebar-menu{
            >li{
                &.active{
                    background: $theme-danger-grd;
                    color: rgba($white, 1);
                    -webkit-box-shadow: 0px 0px 12px 0px rgba($theme-danger-primary,0.35);
                    box-shadow: 0px 0px 12px 0px rgba($theme-danger-primary,0.35);
                    a{
                        color: rgba($white, 1);
                        background-color: transparent;                        
                        > i{
                           color: rgba($theme-danger-primary, 1) 
                        }
                        > svg{
                           color: rgba($white, 1) 
                        }
                    }
                    .treeview-menu{
                        li.active{
                            background-color: rgba($theme-danger-primary, 0);
                            color: rgba($theme-danger-primary, 1);
                            a{
                                color: rgba($white, 1) !important;                                
                                > i{
                                   color: rgba($white, 1) 
                                }
                            }
                        }
                    }                    
                    &.menu-open{
                        background: transparent; 
                        -webkit-box-shadow: none;
                        box-shadow: none;
                    }
                }
            }  
        }                  
         &.sidebar-mini{
            &.sidebar-collapse{
                .sidebar-menu{
                    >li.active{
                        >a{
                            >span{
                                background: $theme-danger-grd !important;
                                color: $white !important;
                            }
                        }
                    }
                }
            }
        }
    }
}

@include screen-md { 
    .sidebar-mini{
        &.sidebar-collapse{
            .sidebar-menu{
                >li.active.menu-open{
                    background-color: rgba($theme-danger-primary, 0.2);
                    color: rgba($theme-danger-primary, 1);
                }
            }
        }
    }
}

    /*---Primary Button---*/
.theme-danger {
    .btn-link {
        color: $theme-danger-primary;
    }
    .btn-primary {
        background-color: $theme-danger-primary;
        border-color: $theme-danger-primary;
        color: $white;
        @include hover-full-state{
            background-color: darken($theme-danger-primary, 10%) !important;
            border-color: darken($theme-danger-primary, 10%) !important;
            color: $white;
        } 
        &:disabled {
            background-color: lighten($theme-danger-primary, 20%);
            border-color: $theme-danger-primary;
            opacity: 0.5;
        }
        &.disabled {
            background-color: lighten($theme-danger-primary, 20%);
            border-color: $theme-danger-primary;
            opacity: 0.5;
        }
    }
    .show > {
        .btn-primary{
        &.dropdown-toggle{
            background-color: darken($theme-danger-primary, 10%) !important;
            border-color: darken($theme-danger-primary, 10%) !important;
            color: $white;
        }    
        }
        
    }
    .btn-outline{
    &.btn-primary{
        color: $theme-danger-primary;
        background-color: transparent;
        border-color: $theme-danger-primary;        
        @include hover-active-state{
            background-color: darken($theme-danger-primary, 10%) !important;
            border-color: darken($theme-danger-primary, 10%) !important;
            color: $white;
        }
    }
    }
    .show > {
        .btn-outline{
        &.btn-primary{
        &.dropdown-toggle{
            background-color: darken($theme-danger-primary, 10%) !important;
            border-color: darken($theme-danger-primary, 10%) !important;
            color: $white;
        }    
        }
        }
    }
    .btn-flat{
    &.btn-primary{
        color: $theme-danger-primary;
        background-color: transparent;
        border-color: transparent;
        @include hover-active-state{
            background-color: darken($theme-danger-primary, 10%) !important;
            border-color: darken($theme-danger-primary, 10%) !important;
            color: $white;
        }
    }
    }
}

/*---info Button---*/
.theme-danger {
    .btn-info {
        background-color: $theme-danger-info;
        border-color: $theme-danger-info;
        color: $white;
        @include hover-full-state{
            background-color: darken($theme-danger-info, 10%) !important;
            border-color: darken($theme-danger-info, 10%) !important;
            color: $white;
        } 
        &:disabled {
            background-color: lighten($theme-danger-info, 20%);
            border-color: $theme-danger-info;
            opacity: 0.5;
        }
        &.disabled {
            background-color: lighten($theme-danger-info, 20%);
            border-color: $theme-danger-info;
            opacity: 0.5;
        }
    }
    .show > {
        .btn-info{
        &.dropdown-toggle{
            background-color: darken($theme-danger-info, 10%) !important;
            border-color: darken($theme-danger-info, 10%) !important;
            color: $white;
        }    
        }
        
    }
    .btn-outline{
    &.btn-info{
        color: $theme-danger-info;
        background-color: transparent;
        border-color: $theme-danger-info;        
        @include hover-active-state{
            background-color: darken($theme-danger-info, 10%) !important;
            border-color: darken($theme-danger-info, 10%) !important;
            color: $white;
        }
    }
    }
    .show > {
        .btn-outline{
        &.btn-info{
        &.dropdown-toggle{
            background-color: darken($theme-danger-info, 10%) !important;
            border-color: darken($theme-danger-info, 10%) !important;
            color: $white;
        }    
        }
        }
    }
    .btn-flat{
    &.btn-info{
        color: $theme-danger-info;
        background-color: transparent;
        border-color: transparent;
        @include hover-active-state{
            background-color: darken($theme-danger-info, 10%) !important;
            border-color: darken($theme-danger-info, 10%) !important;
            color: $white;
        }
    }
    }
}

/*---Success Button---*/
.theme-danger {
    .btn-success {
        background-color: $theme-danger-success;
        border-color: $theme-danger-success;
        color: $white;
        @include hover-full-state{
            background-color: darken($theme-danger-success, 10%) !important;
            border-color: darken($theme-danger-success, 10%) !important;
            color: $white;
        } 
        &:disabled {
            background-color: lighten($theme-danger-success, 20%);
            border-color: $theme-danger-success;
            opacity: 0.5;
        }
        &.disabled {
            background-color: lighten($theme-danger-success, 20%);
            border-color: $theme-danger-success;
            opacity: 0.5;
        }
    }
    .show > {
        .btn-success{
        &.dropdown-toggle{
            background-color: darken($theme-danger-success, 10%) !important;
            border-color: darken($theme-danger-success, 10%) !important;
            color: $white;
        }    
        }
        
    }
    .btn-outline{
    &.btn-success{
        color: $theme-danger-success;
        background-color: transparent;
        border-color: $theme-danger-success;        
        @include hover-active-state{
            background-color: darken($theme-danger-success, 10%) !important;
            border-color: darken($theme-danger-success, 10%) !important;
            color: $white;
        }
    }
    }
    .show > {
        .btn-outline{
        &.btn-success{
        &.dropdown-toggle{
            background-color: darken($theme-danger-success, 10%) !important;
            border-color: darken($theme-danger-success, 10%) !important;
            color: $white;
        }    
        }
        }
    }
    .btn-flat{
    &.btn-success{
        color: $theme-danger-success;
        background-color: transparent;
        border-color: transparent;
        @include hover-active-state{
            background-color: darken($theme-danger-success, 10%) !important;
            border-color: darken($theme-danger-success, 10%) !important;
            color: $white;
        }
    }
    }
}


/*---Danger Button---*/
.theme-danger {
    .btn-danger {
        background-color: $theme-danger-danger;
        border-color: $theme-danger-danger;
        color: $white;
        @include hover-full-state{
            background-color: darken($theme-danger-danger, 10%) !important;
            border-color: darken($theme-danger-danger, 10%) !important;
            color: $white;
        } 
        &:disabled {
            background-color: lighten($theme-danger-danger, 20%);
            border-color: $theme-danger-danger;
            opacity: 0.5;
        }
        &.disabled {
            background-color: lighten($theme-danger-danger, 20%);
            border-color: $theme-danger-danger;
            opacity: 0.5;
        }
    }
    .show > {
        .btn-danger{
        &.dropdown-toggle{
            background-color: darken($theme-danger-danger, 10%) !important;
            border-color: darken($theme-danger-danger, 10%) !important;
            color: $white;
        }    
        }
        
    }
    .btn-outline{
    &.btn-danger{
        color: $theme-danger-danger;
        background-color: transparent;
        border-color: $theme-danger-danger;        
        @include hover-active-state{
            background-color: darken($theme-danger-danger, 10%) !important;
            border-color: darken($theme-danger-danger, 10%) !important;
            color: $white;
        }
    }
    }
    .show > {
        .btn-outline{
        &.btn-danger{
        &.dropdown-toggle{
            background-color: darken($theme-danger-danger, 10%) !important;
            border-color: darken($theme-danger-danger, 10%) !important;
            color: $white;
        }    
        }
        }
    }
    .btn-flat{
    &.btn-danger{
        color: $theme-danger-danger;
        background-color: transparent;
        border-color: transparent;
        @include hover-active-state{
            background-color: darken($theme-danger-danger, 10%) !important;
            border-color: darken($theme-danger-danger, 10%) !important;
            color: $white;
        }
    }
    }
}

/*---Warning Button---*/
.theme-danger {
    .btn-warning {
        background-color: $theme-danger-warning;
        border-color: $theme-danger-warning;
        color: $white;
        @include hover-full-state{
            background-color: darken($theme-danger-warning, 10%) !important;
            border-color: darken($theme-danger-warning, 10%) !important;
            color: $white;
        } 
        &:disabled {
            background-color: lighten($theme-danger-warning, 20%);
            border-color: $theme-danger-warning;
            opacity: 0.5;
        }
        &.disabled {
            background-color: lighten($theme-danger-warning, 20%);
            border-color: $theme-danger-warning;
            opacity: 0.5;
        }
    }
    .show > {
        .btn-warning{
        &.dropdown-toggle{
            background-color: darken($theme-danger-warning, 10%) !important;
            border-color: darken($theme-danger-warning, 10%) !important;
            color: $white;
        }    
        }
        
    }
    .btn-outline{
    &.btn-warning{
        color: $theme-danger-warning;
        background-color: transparent;
        border-color: $theme-danger-warning;        
        @include hover-active-state{
            background-color: darken($theme-danger-warning, 10%) !important;
            border-color: darken($theme-danger-warning, 10%) !important;
            color: $white;
        }
    }
    }
    .show > {
        .btn-outline{
        &.btn-warning{
        &.dropdown-toggle{
            background-color: darken($theme-danger-warning, 10%) !important;
            border-color: darken($theme-danger-warning, 10%) !important;
            color: $white;
        }    
        }
        }
    }
    .btn-flat{
    &.btn-warning{
        color: $theme-danger-warning;
        background-color: transparent;
        border-color: transparent;
        @include hover-active-state{
            background-color: darken($theme-danger-warning, 10%) !important;
            border-color: darken($theme-danger-warning, 10%) !important;
            color: $white;
        }
    }
    }
}

    /*---callout---*/
.theme-danger{
    .callout{
    &.callout-primary {
        border-color: $theme-danger-primary;
        background-color: $theme-danger-primary !important;
    }
        
    &.callout-info {
        border-color: $theme-danger-info;
        background-color: $theme-danger-info !important;
    }
        
    &.callout-success {
        border-color: $theme-danger-success;
        background-color: $theme-danger-success !important;
    }
        
    &.callout-danger {
        border-color: $theme-danger-danger;
        background-color: $theme-danger-danger !important;
    }
        
    &.callout-warning {
        border-color: $theme-danger-warning;
        background-color: $theme-danger-warning !important;
    }
    }
}

    /*---alert---*/
.theme-danger{
    .alert-primary{
        border-color: $theme-danger-primary;
        background-color: $theme-danger-primary !important;
        color: $white;
    }
    .alert-info{
        border-color: $theme-danger-info;
        background-color: $theme-danger-info !important;
        color: $white;
    }
    .alert-success{
        border-color: $theme-danger-success;
        background-color: $theme-danger-success !important;
        color: $white;
    }
    .alert-danger{
        border-color: $theme-danger-danger;
        background-color: $theme-danger-danger !important;
        color: $white;
    }
    .alert-error{
        border-color: $theme-danger-danger;
        background-color: $theme-danger-danger !important;
        color: $white;
    }
    .alert-warning{
        border-color: $theme-danger-warning;
        background-color: $theme-danger-warning !important;
        color: $white;
    }
}

    /*---direct-chat---*/
.theme-danger {
    .direct-chat-primary {
        .right > {
            .direct-chat-text {
                p {
                    background-color: $theme-danger-primary;
                    color: $white;
                }
                @include before-after-state{
                    border-left-color: $theme-danger-primary;
                }
            }
        }
    }
    .direct-chat-info {
        .right > {
            .direct-chat-text {
                p {
                    background-color: $theme-danger-info;
                    color: $white;
                }
                @include before-after-state{
                    border-left-color: $theme-danger-info;
                }
            }
        }
    }
    .direct-chat-success {
        .right > {
            .direct-chat-text {
                p {
                    background-color: $theme-danger-success;
                    color: $white;
                }
                @include before-after-state{
                    border-left-color: $theme-danger-success;
                }
            }
        }
    }
    .direct-chat-danger {
        .right > {
            .direct-chat-text {
                p {
                    background-color: $theme-danger-danger;
                    color: $white;
                }
                @include before-after-state{
                    border-left-color: $theme-danger-danger;
                }
            }
        }
    }
    .direct-chat-warning {
        .right > {
            .direct-chat-text {
                p {
                    background-color: $theme-danger-warning;
                    color: $white;
                }
                @include before-after-state{
                    border-left-color: $theme-danger-warning;
                }
            }
        }
    }
    .right{
        .direct-chat-text {
            p {
                background-color: $theme-danger-primary;
            }
        }
    }
}

    /*---modal---*/
.theme-danger{
    .modal-primary {
        .modal-footer{
            border-color: $theme-danger-primary;
        }
        .modal-header{
            @extend .modal-footer 
        }
        .modal-body{
            background-color: $theme-danger-primary !important;
        }
    }
    .modal-info {
        .modal-footer{
            border-color: $theme-danger-info;
        }
        .modal-header{
            @extend .modal-footer 
        }
        .modal-body{
            background-color: $theme-danger-info !important;
        }
    }
    .modal-success {
        .modal-footer{
            border-color: $theme-danger-success;
        }
        .modal-header{
            @extend .modal-footer 
        }
        .modal-body{
            background-color: $theme-danger-success !important;
        }
    }
    .modal-danger {
        .modal-footer{
            border-color: $theme-danger-danger;
        }
        .modal-header{
            @extend .modal-footer 
        }
        .modal-body{
            background-color: $theme-danger-danger !important;
        }
    }
    .modal-warning {
        .modal-footer{
            border-color: $theme-danger-warning;
        }
        .modal-header{
            @extend .modal-footer 
        }
        .modal-body{
            background-color: $theme-danger-warning !important;
        }
    }
}

    /*---border---*/
.theme-danger {
    .border-primary {
        border-color: $theme-danger-primary !important;
    }
    .border-info {
        border-color: $theme-danger-info !important;
    }
    .border-success {
        border-color: $theme-danger-success !important;
    }
    .border-danger {
        border-color: $theme-danger-danger !important;
    }
    .border-warning {
        border-color: $theme-danger-warning !important;
    }
}

    /*---Background---*/
.theme-danger {
    .bg-primary {
      background-color: $theme-danger-primary !important;
      color: $white;
    }
    .bg-primary-light {
      background-color: lighten($theme-danger-primary, 30%) !important;
      color: $theme-danger-primary;
    }
    .bg-info {
      background-color: $theme-danger-info !important;
      color: $white;
    }
    .bg-info-light {
      background-color: lighten($theme-danger-info, 40%) !important;
      color: $theme-danger-info;
    }
    .bg-success {
      background-color: $theme-danger-success !important;
      color: $white;
    }
    .bg-success-light {
      background-color: lighten($theme-danger-success, 40%) !important;
      color: $theme-danger-success;
    }
    .bg-danger {
      background-color: $theme-danger-danger !important;
      color: $white;
    }
    .bg-danger-light {
      background-color: lighten($theme-danger-danger, 25%) !important;
      color: $theme-danger-danger;
    }
    .bg-warning {
      background-color: $theme-danger-warning !important;
      color: $white;
    }
    .bg-warning-light {
      background-color: lighten($theme-danger-warning, 30%) !important;
      color: $theme-danger-warning;
    }
    .bg-secondary {
      background-color: $theme-danger-secondary !important;
      color: $white;
    }
    .bg-secondary-light {
      background-color: lighten($theme-danger-secondary, 50%) !important;
      color: $theme-danger-secondary;
    }
    
    .hov-rs:hover{   
        .bg-primary-light {
          background-color: $theme-danger-primary !important;
          color: $white;
          .text-primary {
            color: $white !important;
          }
        }
        .bg-info-light {
          background-color: $theme-danger-info !important;
          color: $white;
          .text-info {
            color: $white !important;
          }
        }
        .bg-success-light {
          background-color: $theme-danger-success !important;
          color: $white;
          .text-success {
            color: $white !important;
          }
        }
        .bg-danger-light {
          background-color: $theme-danger-danger !important;
          color: $white;
          .text-danger {
            color: $white !important;
          }
        }
        .bg-warning-light {
          background-color: $theme-danger-warning !important;
          color: $white;
          .text-warning {
            color: $white !important;
          }
        }
        .bg-secondary-light {
          background-color:$theme-danger-secondary !important;
          color: $white;
          .text-secondary {
            color: $white !important;
          }
        }
    }
}

    /*---text---*/
.theme-danger {
    .text-primary {
      color: $theme-danger-primary !important;
    }
    a{
    &.text-primary{
        @include hover-focus-state{
            color: $theme-danger-primary !important;    
        }
    }
    }
    .hover-primary{
        @include hover-focus-state{
            color: $theme-danger-primary !important;    
        }
    }
    
    .text-info {
      color: $theme-danger-info !important;
    }
    a{
    &.text-info{
        @include hover-focus-state{
            color: $theme-danger-info !important;    
        }
    }
    }
    .hover-info{
        @include hover-focus-state{
            color: $theme-danger-info !important;    
        }
    }
    
    .text-success {
      color: $theme-danger-success !important;
    }
    a{
    &.text-success{
        @include hover-focus-state{
            color: $theme-danger-success !important;    
        }
    }
    }
    .hover-success{
        @include hover-focus-state{
            color: $theme-danger-success !important;    
        }
    }
    
    .text-danger {
      color: $theme-danger-danger !important;
    }
    a{
    &.text-danger{
        @include hover-focus-state{
            color: $theme-danger-danger !important;    
        }
    }
    }
    .hover-danger{
        @include hover-focus-state{
            color: $theme-danger-danger !important;    
        }
    }
    
    .text-warning {
      color: $theme-danger-warning !important;
    }
    a{
    &.text-warning{
        @include hover-focus-state{
            color: $theme-danger-warning !important;    
        }
    }
    }
    .hover-warning{
        @include hover-focus-state{
            color: $theme-danger-warning !important;    
        }
    }
}

    /*---active background---*/
.theme-danger {
    .active{
    &.active-primary {
        background-color: darken($theme-danger-primary, 10%) !important;
    }
    &.active-info {
        background-color: darken($theme-danger-info, 10%) !important;
    }
    &.active-success {
        background-color: darken($theme-danger-success, 10%) !important;
    }
    &.active-danger {
        background-color: darken($theme-danger-danger, 10%) !important;
    }
    &.active-warning {
        background-color: darken($theme-danger-warning, 10%) !important;
    }
    }
}

    /*---label background---*/
.theme-danger {
    .label-primary{
        background-color: $theme-danger-primary !important;
    }
    .label-info{
        background-color: $theme-danger-info !important;
    }
    .label-success{
        background-color: $theme-danger-success !important;
    }
    .label-danger{
        background-color: $theme-danger-danger !important;
    }
    .label-warning{
        background-color: $theme-danger-warning !important;
    }
}

    /*---ribbon---*/

$ribbon-bod-w: 3px;
$ribbon-bod-s: solid;

.theme-danger {
    .ribbon-box {
        .ribbon-primary {
            background-color: $theme-danger-primary;
            
            &:before  {
                border-color: $theme-danger-primary transparent transparent;
            }
        }
        .ribbon-two-primary{
            span{
                background-color: $theme-danger-primary; 
            &:before{
                border-left: $ribbon-bod-w $ribbon-bod-s darken($theme-danger-primary, 10%);  
                border-top: $ribbon-bod-w $ribbon-bod-s darken($theme-danger-primary, 10%);    
            }
            &:after{
                border-right: $ribbon-bod-w $ribbon-bod-s darken($theme-danger-primary, 10%);  
                border-top: $ribbon-bod-w $ribbon-bod-s darken($theme-danger-primary, 10%);    
            }
            }
        }
        
        .ribbon-info {
            background-color: $theme-danger-info;
            
            &:before  {
                border-color: $theme-danger-info transparent transparent;
            }
        }
        .ribbon-two-info{
            span{
                background-color: $theme-danger-info; 
            &:before{
                border-left: $ribbon-bod-w $ribbon-bod-s darken($theme-danger-info, 10%);  
                border-top: $ribbon-bod-w $ribbon-bod-s darken($theme-danger-info, 10%);    
            }
            &:after{
                border-right: $ribbon-bod-w $ribbon-bod-s darken($theme-danger-info, 10%);  
                border-top: $ribbon-bod-w $ribbon-bod-s darken($theme-danger-info, 10%);    
            }
            }
        }
        
        .ribbon-success {
            background-color: $theme-danger-success;
            
            &:before  {
                border-color: $theme-danger-success transparent transparent;
            }
        }
        .ribbon-two-success{
            span{
                background-color: $theme-danger-success; 
            &:before{
                border-left: $ribbon-bod-w $ribbon-bod-s darken($theme-danger-success, 10%);  
                border-top: $ribbon-bod-w $ribbon-bod-s darken($theme-danger-success, 10%);    
            }
            &:after{
                border-right: $ribbon-bod-w $ribbon-bod-s darken($theme-danger-success, 10%);  
                border-top: $ribbon-bod-w $ribbon-bod-s darken($theme-danger-success, 10%);    
            }
            }
        }
        
        .ribbon-danger {
            background-color: $theme-danger-danger;
            
            &:before  {
                border-color: $theme-danger-danger transparent transparent;
            }
        }
        .ribbon-two-danger{
            span{
                background-color: $theme-danger-danger; 
            &:before{
                border-left: $ribbon-bod-w $ribbon-bod-s darken($theme-danger-danger, 10%);  
                border-top: $ribbon-bod-w $ribbon-bod-s darken($theme-danger-danger, 10%);    
            }
            &:after{
                border-right: $ribbon-bod-w $ribbon-bod-s darken($theme-danger-danger, 10%);  
                border-top: $ribbon-bod-w $ribbon-bod-s darken($theme-danger-danger, 10%);    
            }
            }
        }
        
        .ribbon-warning {
            background-color: $theme-danger-warning;
            
            &:before  {
                border-color: $theme-danger-warning transparent transparent;
            }
        }
        .ribbon-two-warning{
            span{
                background-color: $theme-danger-warning; 
            &:before{
                border-left: $ribbon-bod-w $ribbon-bod-s darken($theme-danger-warning, 10%);  
                border-top: $ribbon-bod-w $ribbon-bod-s darken($theme-danger-warning, 10%);    
            }
            &:after{
                border-right: $ribbon-bod-w $ribbon-bod-s darken($theme-danger-warning, 10%);  
                border-top: $ribbon-bod-w $ribbon-bod-s darken($theme-danger-warning, 10%);    
            }
            }
        }
    }
}

    /*---Box---*/
$box-bod-w: 1px;
$box-bod-s: solid;

.theme-danger{ 
    .box-primary {
        background-color: $theme-danger-primary !important;
    &.box-bordered{
        border-color: $theme-danger-primary;
    }
    }
    .box-outline-primary {
        background-color: $white;
        border: $box-bod-w $box-bod-s $theme-danger-primary;
    }
    .box{
    &.box-solid{
    &.box-primary > {
        .box-header {
            color: $white;
            background-color: $theme-danger-primary;
            .btn{
                color: $white;    
            }
            > a{
                color: $white;                  
            }
        }
    }
    }
    }
     
    .box-info {
        background-color: $theme-danger-info !important;
    &.box-bordered{
        border-color: $theme-danger-info;
    }
    }
    .box-outline-info {
        background-color: $white;
        border: $box-bod-w $box-bod-s $theme-danger-info;
    }
    .box{
    &.box-solid{
    &.box-info > {
        .box-header {
            color: $white;
            background-color: $theme-danger-info;
            .btn{
                color: $white;    
            }
            > a{
                color: $white;                  
            }
        }
    }
    }
    }
     
    .box-success {
        background-color: $theme-danger-success !important;
    &.box-bordered{
        border-color: $theme-danger-success;
    }
    }
    .box-outline-success {
        background-color: $white;
        border: $box-bod-w $box-bod-s $theme-danger-success;
    }
    .box{
    &.box-solid{
    &.box-success > {
        .box-header {
            color: $white;
            background-color: $theme-danger-success;
            .btn{
                color: $white;    
            }
            > a{
                color: $white;                  
            }
        }
    }
    }
    }
     
    .box-danger {
        background-color: $theme-danger-danger !important;
    &.box-bordered{
        border-color: $theme-danger-danger;
    }
    }
    .box-outline-danger {
        background-color: $white;
        border: $box-bod-w $box-bod-s $theme-danger-danger;
    }
    .box{
    &.box-solid{
    &.box-danger > {
        .box-header {
            color: $white;
            background-color: $theme-danger-danger;
            .btn{
                color: $white;    
            }
            > a{
                color: $white;                  
            }
        }
    }
    }
    }
     
    .box-warning {
        background-color: $theme-danger-warning !important;
    &.box-bordered{
        border-color: $theme-danger-warning;
    }
    }
    .box-outline-warning {
        background-color: $white;
        border: $box-bod-w $box-bod-s $theme-danger-warning;
    }
    .box{
    &.box-solid{
    &.box-warning > {
        .box-header {
            color: $white;
            background-color: $theme-danger-warning;
            .btn{
                color: $white;    
            }
            > a{
                color: $white;                  
            }
        }
    }
    }
    }
    
    
    .box-profile {
        .social-states {
            a{
            &:hover {
                color: darken($theme-danger-primary, 10%);
            }
            }
        }
    }
    .box-controls {
        li > {
            a{
            &:hover {
                color: darken($theme-danger-primary, 10%);
            }
            }
        }
        .dropdown {
        &.show > {
            a {
                color: darken($theme-danger-primary, 10%);
            }
        }
        }
    }
    .box-fullscreen {
        .box-btn-fullscreen {
            color: darken($theme-danger-primary, 10%);
        }
    }
}

    /*---progress bar---*/
.theme-danger {
    .progress-bar-primary {
        background-color: $theme-danger-primary;
    }
    .progress-bar-info {
        background-color: $theme-danger-info;
    }
    .progress-bar-success {
        background-color: $theme-danger-success;
    }
    .progress-bar-danger {
        background-color: $theme-danger-danger;
    }
    .progress-bar-warning {
        background-color: $theme-danger-warning;
    }
}
    /*---panel---*/
.theme-danger {
    .panel-primary {
        border-color: $theme-danger-primary;
        > .panel-heading {
            color: $white;
            background-color: $theme-danger-primary;
            border-color: $theme-danger-primary;
            + .panel-collapse {
                > .panel-body {
                  border-top-color: $theme-danger-primary;
                }
            }
            .badge-pill {
                color: $theme-danger-primary;
                background-color: $white;
            }
        }
        .panel-title {
            color: $white;
        }
        .panel-action {
            @extend .panel-title
        }
        .panel-footer {
            + .panel-collapse {
                > .panel-body {
                  border-bottom-color: $theme-danger-primary;
                }
            }
        }
    }
    .panel-line{
    &.panel-primary {
        .panel-heading {
          color: $theme-danger-primary;
          border-top-color: $theme-danger-primary;
          background: transparent;
        }
        .panel-title {
            color: $theme-danger-primary;            
        }
    }
    }    
    
    .panel-info {
        border-color: $theme-danger-info;
        > .panel-heading {
            color: $white;
            background-color: $theme-danger-info;
            border-color: $theme-danger-info;
            + .panel-collapse {
                > .panel-body {
                  border-top-color: $theme-danger-info;
                }
            }
            .badge-pill {
                color: $theme-danger-info;
                background-color: $white;
            }
        }
        .panel-title {
            color: $white;
        }
        .panel-action {
            @extend .panel-title
        }
        .panel-footer {
            + .panel-collapse {
                > .panel-body {
                  border-bottom-color: $theme-danger-info;
                }
            }
        }
    }
    .panel-line{
    &.panel-info {
        .panel-heading {
          color: $theme-danger-info;
          border-top-color: $theme-danger-info;
          background: transparent;
        }
        .panel-title {
            color: $theme-danger-info;            
        }
    }
    }    
    
    .panel-success {
        border-color: $theme-danger-success;
        > .panel-heading {
            color: $white;
            background-color: $theme-danger-success;
            border-color: $theme-danger-success;
            + .panel-collapse {
                > .panel-body {
                  border-top-color: $theme-danger-success;
                }
            }
            .badge-pill {
                color: $theme-danger-success;
                background-color: $white;
            }
        }
        .panel-title {
            color: $white;
        }
        .panel-action {
            @extend .panel-title
        }
        .panel-footer {
            + .panel-collapse {
                > .panel-body {
                  border-bottom-color: $theme-danger-success;
                }
            }
        }
    }
    .panel-line{
    &.panel-success {
        .panel-heading {
          color: $theme-danger-success;
          border-top-color: $theme-danger-success;
          background: transparent;
        }
        .panel-title {
            color: $theme-danger-success;            
        }
    }
    }    
    
    .panel-danger {
        border-color: $theme-danger-danger;
        > .panel-heading {
            color: $white;
            background-color: $theme-danger-danger;
            border-color: $theme-danger-danger;
            + .panel-collapse {
                > .panel-body {
                  border-top-color: $theme-danger-danger;
                }
            }
            .badge-pill {
                color: $theme-danger-danger;
                background-color: $white;
            }
        }
        .panel-title {
            color: $white;
        }
        .panel-action {
            @extend .panel-title
        }
        .panel-footer {
            + .panel-collapse {
                > .panel-body {
                  border-bottom-color: $theme-danger-danger;
                }
            }
        }
    }
    .panel-line{
    &.panel-danger {
        .panel-heading {
          color: $theme-danger-danger;
          border-top-color: $theme-danger-danger;
          background: transparent;
        }
        .panel-title {
            color: $theme-danger-danger;            
        }
    }
    }    
    
    .panel-warning {
        border-color: $theme-danger-warning;
        > .panel-heading {
            color: $white;
            background-color: $theme-danger-warning;
            border-color: $theme-danger-warning;
            + .panel-collapse {
                > .panel-body {
                  border-top-color: $theme-danger-warning;
                }
            }
            .badge-pill {
                color: $theme-danger-warning;
                background-color: $white;
            }
        }
        .panel-title {
            color: $white;
        }
        .panel-action {
            @extend .panel-title
        }
        .panel-footer {
            + .panel-collapse {
                > .panel-body {
                  border-bottom-color: $theme-danger-warning;
                }
            }
        }
    }
    .panel-line{
    &.panel-warning {
        .panel-heading {
          color: $theme-danger-warning;
          border-top-color: $theme-danger-warning;
          background: transparent;
        }
        .panel-title {
            color: $theme-danger-warning;            
        }
    }
    }
    
}

    /*---switch---*/
.theme-danger {
    .switch{    
    input {
    &:checked {
        ~ .switch-indicator{
          &::after {
            background-color: $theme-danger-primary;
          }
        }
    }
    }
    &.switch-primary {
        input {
        &:checked {
            ~ .switch-indicator{
              &::after {
                background-color: $theme-danger-primary;
              }
            }
        }
        }
    }
    &.switch-info {
        input {
        &:checked {
            ~ .switch-indicator{
              &::after {
                background-color: $theme-danger-info;
              }
            }
        }
        }
    }
    &.switch-success {
        input {
        &:checked {
            ~ .switch-indicator{
              &::after {
                background-color: $theme-danger-success;
              }
            }
        }
        }
    }
    &.switch-danger {
        input {
        &:checked {
            ~ .switch-indicator{
              &::after {
                background-color: $theme-danger-danger;
              }
            }
        }
        }
    }
    &.switch-warning {
        input {
        &:checked {
            ~ .switch-indicator{
              &::after {
                background-color: $theme-danger-warning;
              }
            }
        }
        }
    }
    }
}

    /*---badge---*/
.theme-danger {
    .badge-primary {
        background-color: $theme-danger-primary;
        color: $white;
    }
    .badge-primary[href]{
        @include hover-focus-state{
            background-color: darken($theme-danger-primary, 10%);
        }
    }
    .badge-info {
        background-color: $theme-danger-info;
        color: $white;
    }
    .badge-info[href]{
        @include hover-focus-state{
            background-color: darken($theme-danger-info, 10%);
        }
    }
    .badge-success {
        background-color: $theme-danger-success;
        color: $white;
    }
    .badge-success[href]{
        @include hover-focus-state{
            background-color: darken($theme-danger-success, 10%);
        }
    }
    .badge-danger {
        background-color: $theme-danger-danger;
        color: $white;
    }
    .badge-danger[href]{
        @include hover-focus-state{
            background-color: darken($theme-danger-danger, 10%);
        }
    }
    .badge-warning {
        background-color: $theme-danger-warning;
        color: $white;
    }
    .badge-warning[href]{
        @include hover-focus-state{
            background-color: darken($theme-danger-warning, 10%);
        }
    }
}

    /*---rating---*/
.theme-danger {
    .rating-primary {
        .active {
            color: $theme-danger-primary;
        }
        :checked ~ label {
            color: $theme-danger-primary;
        }
        label{
            &:hover {
                color: $theme-danger-primary;
                ~ label {
                    color: $theme-danger-primary;
                }
            }
        }
    }
    .rating-info {
        .active {
            color: $theme-danger-info;
        }
        :checked ~ label {
            color: $theme-danger-info;
        }
        label{
            &:hover {
                color: $theme-danger-info;
                ~ label {
                    color: $theme-danger-info;
                }
            }
        }
    }
    .rating-success {
        .active {
            color: $theme-danger-success;
        }
        :checked ~ label {
            color: $theme-danger-success;
        }
        label{
            &:hover {
                color: $theme-danger-success;
                ~ label {
                    color: $theme-danger-success;
                }
            }
        }
    }
    .rating-danger {
        .active {
            color: $theme-danger-danger;
        }
        :checked ~ label {
            color: $theme-danger-danger;
        }
        label{
            &:hover {
                color: $theme-danger-danger;
                ~ label {
                    color: $theme-danger-danger;
                }
            }
        }
    }
    .rating-warning {
        .active {
            color: $theme-danger-warning;
        }
        :checked ~ label {
            color: $theme-danger-warning;
        }
        label{
            &:hover {
                color: $theme-danger-warning;
                ~ label {
                    color: $theme-danger-warning;
                }
            }
        }
    }
}

    /*---toggler---*/
.theme-danger {
    .toggler-primary {
        input{
        &:checked + i {
            color: $theme-danger-primary;
        }
        }
    }
    .toggler-info {
        input{
        &:checked + i {
            color: $theme-danger-info;
        }
        }
    }
    .toggler-success {
        input{
        &:checked + i {
            color: $theme-danger-success;
        }
        }
    }
    .toggler-danger {
        input{
        &:checked + i {
            color: $theme-danger-danger;
        }
        }
    }
    .toggler-warning {
        input{
        &:checked + i {
            color: $theme-danger-warning;
        }
        }
    }
}

    /*---nav tabs---*/
.theme-danger {
    .nav-tabs{
    &.nav-tabs-primary {
        .nav-link{
            @include hover-full-state{
                border-color: darken($theme-danger-primary, 10%);
                background-color: transparent;
                color: darken($theme-danger-primary, 10%);
            }
        }
    }
    &.nav-tabs-info {
        .nav-link{
            @include hover-full-state{
                border-color: darken($theme-danger-info, 10%);
                background-color: $theme-danger-info;
                color: $white;
            }
        }
    }
    &.nav-tabs-success {
        .nav-link{
            @include hover-full-state{
                border-color: darken($theme-danger-success, 10%);
                background-color: transparent;
                color: darken($theme-danger-success, 10%);
            }
        }
    }
    &.nav-tabs-danger {
        .nav-link{
            @include hover-full-state{
                border-color: darken($theme-danger-danger, 10%);
                background-color: transparent;
                color: darken($theme-danger-danger, 10%);
            }
        }
    }
    &.nav-tabs-warning {
        .nav-link{
            @include hover-full-state{
                border-color: darken($theme-danger-warning, 10%);
                background-color: transparent;
                color: darken($theme-danger-warning, 10%);
            }
        }
    }
    }
    .nav-tabs-custom{
    &.tab-primary{
        >.nav-tabs{
            >li {
                a{
                &.active {
                    border-top-color: darken($theme-danger-primary, 10%);
                }
                }
            }
        }
    }
    &.tab-info{
        >.nav-tabs{
            >li {
                a{
                &.active {
                    border-top-color: darken($theme-danger-info, 10%);
                }
                }
            }
        }
    }
    &.tab-success{
        >.nav-tabs{
            >li {
                a{
                &.active {
                    border-top-color: darken($theme-danger-success, 10%);
                }
                }
            }
        }
    }
    &.tab-danger{
        >.nav-tabs{
            >li {
                a{
                &.active {
                    border-top-color: darken($theme-danger-danger, 10%);
                }
                }
            }
        }
    }
    &.tab-warning{
        >.nav-tabs{
            >li {
                a{
                &.active {
                    border-top-color: darken($theme-danger-warning, 10%);
                }
                }
            }
        }
    }
    }
    .nav-tabs {
        .nav-link{
        &.active{
            border-bottom-color: $theme-danger-info;
            background-color: $theme-danger-info;
            color: $white;
            @include hover-focus-state{
                border-bottom-color: $theme-danger-info;
                background-color: $theme-danger-info;
                color: $white;
            }
        }
        } 
        .nav-item{
        &.open{
            .nav-link{
                border-bottom-color: $theme-danger-primary;
                background-color: $theme-danger-primary;
                @include hover-focus-state{
                    border-bottom-color: $theme-danger-primary;
                    background-color: $theme-danger-primary;    
                }
            }
        }
        }
    }
}

    /*---todo---*/
.theme-danger {
    .todo-list {
        .primary {
            border-left-color: $theme-danger-primary;
        }
        .info {
            border-left-color: $theme-danger-primary;
        }
        .success {
            border-left-color: $theme-danger-success;
        }
        .danger {
            border-left-color: $theme-danger-danger;
        }
        .warning {
            border-left-color: $theme-danger-warning;
        }
    }
}

    /*---timeline---*/
.theme-danger {
    .timeline {
        .timeline-item {
            > .timeline-event{
                &.timeline-event-primary {
                  background-color: $theme-danger-primary;
                  border: 1px solid  $theme-danger-primary;
                  color: $white;
                @include before-after-state {
                  border-left-color: $theme-danger-primary;
                  border-right-color: $theme-danger-primary;
                }
                * {
                  color: inherit;
                }
                }
                &.timeline-event-info {
                  background-color: $theme-danger-info;
                  border: 1px solid  $theme-danger-info;
                  color: $white;
                @include before-after-state {
                  border-left-color: $theme-danger-info;
                  border-right-color: $theme-danger-info;
                }
                * {
                  color: inherit;
                }
                }
                &.timeline-event-success {
                  background-color: $theme-danger-success;
                  border: 1px solid  $theme-danger-success;
                  color: $white;
                @include before-after-state {
                  border-left-color: $theme-danger-success;
                  border-right-color: $theme-danger-success;
                }
                * {
                  color: inherit;
                }
                }
                &.timeline-event-danger {
                  background-color: $theme-danger-danger;
                  border: 1px solid  $theme-danger-danger;
                  color: $white;
                @include before-after-state {
                  border-left-color: $theme-danger-danger;
                  border-right-color: $theme-danger-danger;
                }
                * {
                  color: inherit;
                }
                }
                &.timeline-event-warning {
                  background-color: $theme-danger-warning;
                  border: 1px solid  $theme-danger-warning;
                  color: $white;
                @include before-after-state {
                  border-left-color: $theme-danger-warning;
                  border-right-color: $theme-danger-warning;
                }
                * {
                  color: inherit;
                }
                }
            }
            > .timeline-point{
                &.timeline-point-primary {
                  color: $theme-danger-primary;
                  background-color: $white;
                }
                &.timeline-point-info {
                  color: $theme-danger-info;
                  background-color: $white;
                }
                &.timeline-point-success {
                  color: $theme-danger-success;
                  background-color: $white;
                }
                &.timeline-point-danger {
                  color: $theme-danger-danger;
                  background-color: $white;
                }
                &.timeline-point-warning {
                  color: $theme-danger-warning;
                  background-color: $white;
                }
            }
        }
        .timeline-label {
            .label-primary {
                background-color: $theme-danger-primary;
            }
            .label-info {
                background-color: $theme-danger-info;
            }
            .label-success {
                background-color: $theme-danger-success;
            }
            .label-danger {
                background-color: $theme-danger-danger;
            }
            .label-warning {
                background-color: $theme-danger-warning;
            }
        }
    }
    
    .timeline__year{
        background-color: $theme-danger-primary;
    }
    .timeline5:before{
        @extend .timeline__year
    }
    .timeline__box:before{
        @extend .timeline__year
    }
    .timeline__date{
        @extend .timeline__year
    }
    .timeline__post{
        border-left: 3px solid $theme-danger-primary;
    }
}

    /*---daterangepicker---*/
.theme-danger{
    .daterangepicker{
        td{
            &.active{
                background-color: $theme-danger-primary; 
                &:hover{
                   background-color: $theme-danger-primary; 
                }
            }
        }
        .input-mini.active {
            border: 1px solid $theme-danger-primary;
        }
    }
    .ranges {
        li{
            @include hover-active-state{
                border: 1px solid $theme-danger-primary;
                background-color: $theme-danger-primary; 
            }
        }
    }
}

    /*---control-sidebar---*/
.theme-danger{
    .control-sidebar{
        .nav-tabs.control-sidebar-tabs{
            >li{
                >a{
                    @include hover-state{
                        border-color: $theme-danger-primary;
                        color: $theme-danger-primary;
                    }
                    &.active{                        
                        border-color: $theme-danger-primary;
                        color: $theme-danger-primary;
                        @include hover-state{
                            border-color: $theme-danger-primary;
                            color: $theme-danger-primary;
                        }
                    }
                }
            }
        }
        .rpanel-title {
            .btn:hover {
                color: $theme-danger-primary;
            }
        }
    }
}

    /*---nav---*/
.theme-danger{
    .nav{
        >li{
            >a{
                @include hover-state{
                   color: $theme-danger-primary; 
                } 
            }
        }
    }
    .nav-pills{
        >li{
            >a{ 
                &.active{
                       border-top-color: $theme-danger-primary;
	                   background-color: $theme-danger-primary !important;
                       color: $white;
                    @include hover-focus-state{
                       border-top-color: $theme-danger-primary;
	                   background-color: $theme-danger-primary !important;
                       color: $white;
                    }     
                }
            }
        }
    }
    .mailbox-nav{
        .nav-pills{
            >li{
                >a{ 
                    @include hover-focus-state{
                       border-color: $theme-danger-primary;
                    }     
                    &.active{
                           border-color: $theme-danger-primary;
                        @include hover-focus-state{
                           border-color: $theme-danger-primary;
                        }     
                    }
                }
            }
        }
    }  
    .nav-tabs-custom{
        >.nav-tabs{
            >li{
                a{      
                    &.active{
                        border-top-color: $theme-danger-primary;    
                    }
                }
            }
        }
    }
    .profile-tab{
        li{
            a{
                &.nav-link{      
                    &.active{
                        border-bottom: 2px solid $theme-danger-primary;    
                    }
                }
            }
        }
    }
    .customtab{
        li{
            a{
                &.nav-link{      
                    &.active{
                        border-bottom: 2px solid $theme-danger-primary;    
                    }
                }
            }
        }
    }
}

    /*---form-element---*/
.theme-danger {
    .form-element {
        .input-group {
            .input-group-addon{
                background-image: $theme-danger-grd, linear-gradient(lighten($dark, 30%), lighten($dark, 30%),) 
            }
        }
        .form-control {            
            &:focus {
                background-image: $theme-danger-grd, linear-gradient(lighten($dark, 30%), lighten($dark, 30%),) 
            }            
            background-image: $theme-danger-grd, linear-gradient(lighten($dark, 30%), lighten($dark, 30%),) 
        }
    }
    .form-control {            
        &:focus {
            border-color: $theme-danger-primary;
        }            
    }
    [type=checkbox]:checked {
        &.chk-col-primary {
            &+label {
                &:before {
                    border-right: 2px solid $theme-danger-primary;
                    border-bottom: 2px solid $theme-danger-primary;
                }
            }
        }
        &.chk-col-info {
            &+label {
                &:before {
                    border-right: 2px solid $theme-danger-info;
                    border-bottom: 2px solid $theme-danger-info;
                }
            }
        }
        &.chk-col-success {
            &+label {
                &:before {
                    border-right: 2px solid $theme-danger-success;
                    border-bottom: 2px solid $theme-danger-success;
                }
            }
        }
        &.chk-col-danger {
            &+label {
                &:before {
                    border-right: 2px solid $theme-danger-danger;
                    border-bottom: 2px solid $theme-danger-danger;
                }
            }
        }
        &.chk-col-warning {
            &+label {
                &:before {
                    border-right: 2px solid $theme-danger-warning;
                    border-bottom: 2px solid $theme-danger-warning;
                }
            }
        }
    }
    [type=checkbox].filled-in:checked {
        &.chk-col-primary {
            &+label {
                &:after {
                    border: 2px solid $theme-danger-primary;
                    background-color: $theme-danger-primary;
                }
            }
        }
        &.chk-col-info {
            &+label {
                &:after {
                    border: 2px solid $theme-danger-info;
                    background-color: $theme-danger-info;
                }
            }
        }
        &.chk-col-success {
            &+label {
                &:after {
                    border: 2px solid $theme-danger-success;
                    background-color: $theme-danger-success;
                }
            }
        }
        &.chk-col-danger {
            &+label {
                &:after {
                    border: 2px solid $theme-danger-danger;
                    background-color: $theme-danger-danger;
                }
            }
        }
        &.chk-col-warning {
            &+label {
                &:after {
                    border: 2px solid $theme-danger-warning;
                    background-color: $theme-danger-warning;
                }
            }
        }
    }
    [type=radio].radio-col-primary {
        &:checked {
            &+label {
                &:after {
                    background-color: $theme-danger-primary;
                    border-color: $theme-danger-primary;
                    -webkit-animation: ripple .2s linear forwards;
                    animation: ripple .2s linear forwards;
                }
            }
        }
    }
    [type=radio].with-gap.radio-col-primary {
        &:checked {
            &+label {
                &:before {
                    border: 2px solid $theme-danger-primary;
                    -webkit-animation: ripple .2s linear forwards;
                    animation: ripple .2s linear forwards;
                }
            }
        }
    }
    [type=radio].with-gap.radio-col-primary {
        &:checked {
            &+label {
                &:after {
                    background-color: $theme-danger-primary;
                    border: 2px solid $theme-danger-primary;
                    -webkit-animation: ripple .2s linear forwards;
                    animation: ripple .2s linear forwards;
                }
            }
        }
    }
    [type=radio].radio-col-info {
        &:checked {
            &+label {
                &:after {
                    background-color: $theme-danger-info;
                    border-color: $theme-danger-info;
                    -webkit-animation: ripple .2s linear forwards;
                    animation: ripple .2s linear forwards;
                }
            }
        }
    }
    [type=radio].with-gap.radio-col-info {
        &:checked {
            &+label {
                &:before {
                    border: 2px solid $theme-danger-info;
                    -webkit-animation: ripple .2s linear forwards;
                    animation: ripple .2s linear forwards;
                }
            }
        }
    }
    [type=radio].with-gap.radio-col-info {
        &:checked {
            &+label {
                &:after {
                    background-color: $theme-danger-info;
                    border: 2px solid $theme-danger-info;
                    -webkit-animation: ripple .2s linear forwards;
                    animation: ripple .2s linear forwards;
                }
            }
        }
    }
    [type=radio].radio-col-success {
        &:checked {
            &+label {
                &:after {
                    background-color: $theme-danger-success;
                    border-color: $theme-danger-success;
                    -webkit-animation: ripple .2s linear forwards;
                    animation: ripple .2s linear forwards;
                }
            }
        }
    }
    [type=radio].with-gap.radio-col-success {
        &:checked {
            &+label {
                &:before {
                    border: 2px solid $theme-danger-success;
                    -webkit-animation: ripple .2s linear forwards;
                    animation: ripple .2s linear forwards;
                }
            }
        }
    }
    [type=radio].with-gap.radio-col-success {
        &:checked {
            &+label {
                &:after {
                    background-color: $theme-danger-success;
                    border: 2px solid $theme-danger-success;
                    -webkit-animation: ripple .2s linear forwards;
                    animation: ripple .2s linear forwards;
                }
            }
        }
    }
    [type=radio].radio-col-danger {
        &:checked {
            &+label {
                &:after {
                    background-color: $theme-danger-danger;
                    border-color: $theme-danger-danger;
                    -webkit-animation: ripple .2s linear forwards;
                    animation: ripple .2s linear forwards;
                }
            }
        }
    }
    [type=radio].with-gap.radio-col-danger {
        &:checked {
            &+label {
                &:before {
                    border: 2px solid $theme-danger-danger;
                    -webkit-animation: ripple .2s linear forwards;
                    animation: ripple .2s linear forwards;
                }
            }
        }
    }
    [type=radio].with-gap.radio-col-danger {
        &:checked {
            &+label {
                &:after {
                    background-color: $theme-danger-danger;
                    border: 2px solid $theme-danger-danger;
                    -webkit-animation: ripple .2s linear forwards;
                    animation: ripple .2s linear forwards;
                }
            }
        }
    }
    [type=radio].radio-col-warning {
        &:checked {
            &+label {
                &:after {
                    background-color: $theme-danger-warning;
                    border-color: $theme-danger-warning;
                    -webkit-animation: ripple .2s linear forwards;
                    animation: ripple .2s linear forwards;
                }
            }
        }
    }
    [type=radio].with-gap.radio-col-warning {
        &:checked {
            &+label {
                &:before {
                    border: 2px solid $theme-danger-warning;
                    -webkit-animation: ripple .2s linear forwards;
                    animation: ripple .2s linear forwards;
                }
            }
        }
    }
    [type=radio].with-gap.radio-col-warning {
        &:checked {
            &+label {
                &:after {
                    background-color: $theme-danger-warning;
                    border: 2px solid $theme-danger-warning;
                    -webkit-animation: ripple .2s linear forwards;
                    animation: ripple .2s linear forwards;
                }
            }
        }
    }
    
    [type=checkbox]{
        &:checked {
            &+label {
                &:before {
                    border-right: 2px solid $theme-danger-primary;
                    border-bottom: 2px solid $theme-danger-primary;
                }
            }
        }
    }
    [type=checkbox].filled-in{
        &:checked {
            &+label {
                &:after {
                    border: 2px solid $theme-danger-primary;
                    background-color: $theme-danger-primary;
                }
            }
        }
    }
    [type=radio]{
        &.with-gap{
        &:checked {
            &+label {
                @include before-after-state{
                    border: 2px solid $theme-danger-primary;
                }
                &:after {
                    background-color: $theme-danger-primary;
                    z-index: 0;
                }
            }
        }
        }        
        &:checked {
            &+label {
                &:after {
                    border: 2px solid $theme-danger-primary;
                    background-color: $theme-danger-primary;
                    z-index: 0;
                }
            }
        }
    }
    [type=checkbox].filled-in.tabbed{
        &:checked:focus {
            &+label {
                &:after {
                    border-color: $theme-danger-primary;
                    background-color: $theme-danger-primary;
                }
            }
        }
    }
}

    /*---Calender---*/
.theme-danger{
    .fx-element-overlay{
        .fx-card-item {
            .fx-card-content a:hover {
                color: $theme-danger-primary;
            }
            .fx-overlay-1 .fx-info > li a:hover {
                background: $theme-danger-primary;
                border-color: $theme-danger-primary;
            }
        }
    }
    .fc-event {
        background: $theme-danger-primary;
    }
    .calendar-event{
        @extend .fc-event
    }
}

    /*---Tabs---*/

.theme-danger {
    .tabs-vertical{
        li{
            .nav-link{
                @include hover-full-state{
                    background-color: $theme-danger-primary;
                    color: $white;    
                }
            }
        }
    }
    .customvtab{
        .tabs-vertical{
            li{
                .nav-link{
                    @include hover-full-state{
                        border-right: 2px solid $theme-danger-primary;
                        color: $theme-danger-primary;    
                    }
                }
            }
        }
    }
    .customtab2{
        li{
            a{
                &.nav-link{
                    @include hover-active-state{
                        background-color: $theme-danger-primary;    
                    }
                }
            }
        }
    }
}

    /*---Notification---*/
.theme-danger {
    .jq-icon-primary { 
        background-color: $theme-danger-primary; 
        color: $white; 
        border-color: $theme-danger-primary; 
    }
    .jq-icon-info { 
        background-color: $theme-danger-info; 
        color: $white; 
        border-color: $theme-danger-info; 
    }
    .jq-icon-success { 
        background-color: $theme-danger-success; 
        color: $white; 
        border-color: $theme-danger-primary; 
    }
    .jq-icon-error { 
        background-color: $theme-danger-danger; 
        color: $white; 
        border-color: $theme-danger-danger; 
    }
    .jq-icon-danger { 
        background-color: $theme-danger-danger; 
        color: $white; 
        border-color: $theme-danger-danger; 
    }
    .jq-icon-warning { 
        background-color: $theme-danger-warning; 
        color: $white; 
        border-color: $theme-danger-warning; 
    }
}

    /*---avatar---*/
.theme-danger {
    .avatar{
        &.status-primary::after {
            background-color: $theme-danger-primary;
        }
        &.status-info::after {
            background-color: $theme-danger-info;
        }
        &.status-success::after {
            background-color: $theme-danger-success;
        }
        &.status-danger::after {
            background-color: $theme-danger-danger;
        }
        &.status-warning::after {
            background-color: $theme-danger-warning;
        }
        &[class*='status-']::after {
            background-color: $theme-danger-primary;
        }
    }
    .avatar-add:hover {
        background-color: darken($theme-danger-primary, 10%);
        border-color: darken($theme-danger-primary, 10%);
    }
}

    /*---media---*/
.theme-danger {
    .media-chat{
        &.media-chat-reverse {
            .media-body {
                p {
                  background-color: $theme-danger-primary; 
                }
            }
        }
    }
    .media-right-out {
        a:hover {
            color: darken($theme-danger-primary, 10%);
        }
    }
}

    /*---control---*/
.theme-danger{
    .control{
        input{
        &:checked{
            &:focus~.control_indicator{
               background-color: $theme-danger-primary;  
            }  
            ~.control_indicator{
               background-color: $theme-danger-primary; 
            }
        }
        }  
        &:hover input:not([disabled]):checked~.control_indicator{
            background-color: $theme-danger-primary; 
        }
    }
}

    /*---flex---*/
.theme-danger{
    .flex-column{
        >li{
            >a{
                &.nav-link{
                    &.active{
                        border-left-color: $theme-danger-primary;
                        &:hover{
                            border-left-color: $theme-danger-primary;
                        }
                    }
                }
            }
        }
    }
}

    /*---pagination---*/
.theme-danger{
    .pagination{
        li{
            a{
                &.current{
                    border: 1px solid $theme-danger-primary;
                    background-color: $theme-danger-primary;
                    &:hover{
                        border: 1px solid $theme-danger-primary;
                        background-color: $theme-danger-primary;
                    }
                }
                &:hover{
                    border: 1px solid darken($theme-danger-primary, 10%);
                    background-color: darken($theme-danger-primary, 10%)!important;
                }
            }
        }
    }
    .dataTables_wrapper{
        .dataTables_paginate{
            .paginate_button.current{
                border: 1px solid $theme-danger-primary;
                background-color: $theme-danger-primary;
                    &:hover{
                        border: 1px solid $theme-danger-primary;
                        background-color: $theme-danger-primary;
                    }                
            } 
        }
    }
    .paging_simple_numbers{
        .pagination{
            .paginate_button{
                &.active a{
                    background-color: $theme-danger-primary;
                }
                &:hover a{
                    background-color: $theme-danger-primary;
                }
            }
        }
    }
    .footable{
        .pagination{
            li{
                a{
                    @include hover-active-state{
                        background-color: $theme-danger-primary;    
                    }
                }
            }
        }
    }
}
/*---dataTables---*/
.theme-danger {
    .dt-buttons {
        .dt-button {
            background-color: $theme-danger-primary;
        }
    }
}

/*---select2---*/
.theme-danger {
    .select2-container--default{
    &.select2-container--open {
        border-color: $theme-danger-primary;
    }
        .select2-results__option--highlighted[aria-selected] {
            background-color: $theme-danger-primary;
        }
        .select2-search--dropdown {
            .select2-search__field{
                border-color: $theme-danger-primary !important;
            }        
        }
        &.select2-container--focus{
            .select2-selection--multiple{
                border-color: $theme-danger-primary !important;
            }
        }
        .select2-selection--multiple:focus{
            border-color: $theme-danger-primary !important;
        } 
        .select2-selection--multiple {
            .select2-selection__choice{
                background-color: $theme-danger-primary;
                border-color: $theme-danger-primary;
            }
        }
    }
}

/*---Other---*/

.theme-danger{
    .myadmin-dd{
        .dd-list{
            .dd-list{
                .dd-handle:hover{
                    color: darken($theme-danger-primary, 10%);
                }
            }
        }
    }
    .myadmin-dd-empty{
        .dd-list{
            .dd3-handle:hover{
                color: darken($theme-danger-primary, 10%);
            }
            .dd3-content:hover{
                color: darken($theme-danger-primary, 10%);
            }
        }        
    }
    [data-overlay-primary]::before{
        background: darken($theme-danger-primary, 10%);
    }
}


/*---wizard---*/

.theme-danger{
    .wizard-content{
        .wizard{
            >.steps{
                >ul{
                    >li{
                    &.current{
                        border: 2px solid $theme-danger-primary;
                        background-color: $theme-danger-primary;
                    } 
                     &.done{
                        border-color: darken($theme-danger-primary, 10%);
                        background-color: darken($theme-danger-primary, 10%);
                    } 
                    }
                }
            }
            >.actions{
                >ul{
                    >li{
                        >a{
                            background-color: $theme-danger-primary;
                        }
                    }
                }
            }
        &.wizard-circle{
            >.steps{
                >ul{
                    >li{
                       &:after{
                            background-color: $theme-danger-primary;
                        }
                       &:before{
                            background-color: $theme-danger-primary;
                        }
                    }
                }
            }
        } 
        &.wizard-notification{
            >.steps{
                >ul{
                    >li{
                       &:after{
                            background-color: $theme-danger-primary;
                        }
                       &:before{
                            background-color: $theme-danger-primary;
                        }
                        &.current{
                            .step{
                                border: 2px solid $theme-danger-primary;
                                color: $theme-danger-primary;
                                &:after{
                                    border-top-color: $theme-danger-primary;
                                }
                            }
                        }
                        &.done{
                            .step{
                                &:after{
                                    border-top-color: $theme-danger-primary;
                                }
                            }
                        }
                    }
                }
            }
        } 
        }
    }
}
// Small devices
@include screen-sm-max {
    .theme-danger{
        .wizard-content{
            .wizard{
                >.steps{
                    >ul{
                        >li{
                            &:last-child{
                                &:after{
                                    background-color: $theme-danger-primary;
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
// Small devices
@include screen-xs {
    .theme-danger{
        .wizard-content{
            .wizard{
                >.steps{
                    >ul{
                        >li{
                            &.current{
                                &:after{
                                    background-color: $theme-danger-primary; 
                                } 
                            }
                        }
                    }
                }
            }
        }
    }
}


 /*---slider---*/
.theme-danger{
    #primary {
        .slider-selection{
            background-color: $theme-danger-primary;
        }
    }
    #info {
        .slider-selection{
            background-color: $theme-danger-info;
        }
    }
    #success {
        .slider-selection{
            background-color: $theme-danger-success;
        }
    }
    #danger {
        .slider-selection{
            background-color: $theme-danger-danger;
        }
    }
    #warning {
        .slider-selection{
            background-color: $theme-danger-warning;
        }
    }
}

/*---horizontal-timeline---*/

.theme-danger{
    .cd-horizontal-timeline{
        .events{
            a{
                &.selected{
                    &::after{
                        background: $theme-danger-primary;
	                    border-color: $theme-danger-primary;
                    }
                }
                &.older-event::after{
                    border-color: $theme-danger-primary;
                }
            }
        }
        .filling-line{
            background: $theme-danger-primary;
        }
        a{
            color: $theme-danger-primary; 
            @include hover-focus-state{
                color: $theme-danger-primary;    
            }
        }
    }
    .cd-timeline-navigation{
        a{
            @include hover-focus-state{
                border-color: $theme-danger-primary;    
            }
        }
    }
}