﻿/* Responsive Tabs - menucool.com/jquery-tabs */

ul.rtabs
{
     font-size: .9em;
     border-bottom: none;
     position: relative;
     top: 1px;
}
        
ul.rtabs li
{
     display: inline;
     margin: 0;
     margin-right:3px;
    /*distance between tabs*/
}
        
ul.rtabs li a
{
     text-decoration: none;
     padding: 5px 16px;
     border: 1px solid #B7B7B7;
     border-bottom-color: #B7B7B7;
     color: #000;
     background-color: #FFF;
     border-radius: 0 10px 0 0;
     text-overflow: ellipsis;
}
        
ul.rtabs li a:link, ul.rtabs li a:visited
{
    color:#000;
}
        
ul.rtabs li a:hover
{
     border: 1px solid #B7B7B7;
     background-color: #EDEBEB;
}
  
/*selected tab style */
ul.rtabs li.selected a
{
     text-decoration: none;
     padding: 5px 16px;
     border: 1px solid ##B7B7B7;
     border-bottom-color: #FFF;
     color: #000;
     border-radius: 0 10px 0 0;
     font-weight:bold;
     background-color: #FFF;
     text-overflow: ellipsis;
}   
        
/*selected tab style on hover */
ul.rtabs li.selected a:hover
{
    text-decoration:none;
}

/* container of content panels */
div.panel-container
{
    border:none; 
    background-color: none;
    position:relative;    
    padding:0px; margin:0px;
    outline:none;
    margin-top:-2px;
}

/* content panel */       
div.panel-container > div
{
    padding:30px 26px;
    
    /* The two settings below should not be changed. */
    display: block;
    margin:0px;
}  
div.panel-container div.inactive
{
    display: none;
}

/* loading image before ajax content is retrieved. Only applicable when Ajax is used.*/
div.ajaxLoading {background:transparent url(loading.gif) no-repeat center center; height:150px; width:20px; font-size:0;padding:0; margin:0 auto; }


/* For mobiles */
@media only screen and (max-width:560px){
    ul.rtabs{
        box-sizing:border-box;
        border-left:1px solid #b7b7b7;
        border-top:1px solid #b7b7b7;
        min-width:260px;
    }

    ul.rtabs li{
        display:inline-block;
        box-sizing:border-box;
        margin-right:0;
        width:50%; /* set it to 100% for one column, 33.33% for three-column */
    }

    ul.rtabs li:last-child:nth-child(odd){
        width:100%;
    }

    ul.rtabs li a {
        border:none;
        border-right:1px solid #b7b7b7;
        border-bottom:1px solid #b7b7b7;
        display:block;
        padding:0;
        text-align:center;
        border-radius:0;
    }

    ul.rtabs li.selected a {
        background-color:#fff;
    }

    div.panel-container {
        border-radius:0;
        min-width:260px;
        box-sizing:border-box;
    }
}
