/*
Theme Name: Bizboomr Portal Theme
Theme URI: https://www.bizboomr.com/themes/bb-portal/
Author: Bizboomr
Author URI: https://www.bizboomr.com/
Description: Defines the look & feel of portal websites developed by Bizboomr.
Requires at least: 2.8
Requires PHP: 7
Version: 1.0.0.1
License: GPLv2
License URI: https://www.gnu.org/licenses/gpl.html
Text Domain: bbp
Tags: bizboomr, portal.
*/

/*
-----------------
TABLE OF CONTENTS
-----------------
- General
    > Layout
    > Typography
    > Headings
    > Links
    > Colors
    > Buttons
- Bars
    > Hello bar
    > Side bar
- Pages
- Widgets
    > Preloader
    > Post preview
    > Term preview
- Gravity Forms
    > Custom address layout
*/

/*------------------------------------------------------------------------------
- General
------------------------------------------------------------------------------*/

/* Layout */
[dir] .mdk-drawer__content{
    width: 290px;
}

html #wpadminbar{
    position: fixed !important;
}

/* Typography */
.text-underline{
    text-decoration: underline !important;
}

.text-strikethrough{
    text-decoration: line-through !important;
}

/* Headings */
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6{
    color: #000;
}

/* Links */
a{
    color: var(--bb-hello-bar-bg-color);
}

.page-content a:not(.btn){ 
    color: var(--bb-hello-bar-bg-color) !important; 
}

/* Colors */
.text-sidebar{
    color: var(--bb-sidebar-bar-heading-color) !important;
}

[dir] .bg-primary{
    background-color: var(--bb-hello-bar-bg-color) !important;
}

[dir] .bg-dark{
    background-color: #000 !important;
}

/* Buttons */
[dir] .btn-primary{ 
    color: var(--bb-hello-bar-color) !important; 
}

[dir] .btn-primary, 
[dir] .btn-primary:hover, 
[dir] .btn-primary:focus, 
[dir] .btn-primary:active{ 
    background-color: var(--bb-hello-bar-bg-color) !important; 
}

[dir] .btn-primary:hover, 
[dir] .btn-primary:focus, 
[dir] .btn-primary:active{ 
    opacity: 0.75 !important; 
}

[dir] .btn-apply, 
[dir] .btn-cancel{
    border: 0 !important; 
    border-radius: 32px !important;
}

/*------------------------------------------------------------------------------
- Bars
------------------------------------------------------------------------------*/

/* Hello bar */
.admin-bar .mdk-header-layout > .mdk-header{
    top: 32px;
}

@media (max-width: 782px){
    .admin-bar .mdk-header-layout > .mdk-header{
        top: 46px;
    }
}

#default-navbar{ 
    background-color: var(--bb-hello-bar-bg-color) !important; 
}

#default-navbar .navbar-brand{
    color: var(--bb-hello-bar-color) !important; 
    margin: 0.5rem;
}

#default-navbar .navbar-brand img{
    max-width: 100%;
    max-height: 50px;
}

/* Side bar */
#sidebar-container{
    z-index: 999;
    top: 64px;
}

.admin-bar #sidebar-container{
    top: 96px;
}

@media (max-width: 782px){
    #sidebar-container{
        top: 64px;
    }
    
    .admin-bar #sidebar-container{
        top: 110px;
    }
}

#sidebar-container > .sidebar{ 
    background-color: var(--bb-sidebar-bar-bg-color) !important; 
}

#sidebar-container .sidebar-heading{ 
    color: var(--bb-sidebar-bar-heading-color) !important; 
}

#sidebar-container .sidebar-menu-item .sidebar-menu-button{ 
    color: var(--bb-sidebar-bar-link-color) !important; 
}

#sidebar-container .sidebar-menu-item .sidebar-menu-button:hover, 
#sidebar-container .sidebar-menu-item .sidebar-menu-button:active, 
#sidebar-container .sidebar-menu-item .sidebar-menu-button:focus, 
#sidebar-container .sidebar-menu-item.current .sidebar-menu-button{ 
    color: var(--bb-sidebar-bar-link-hover-color) !important; 
}

#sidebar-container .sidebar-menu-item .sidebar-menu-icon{
    color: inherit !important;
}

/*------------------------------------------------------------------------------
-  Pages
------------------------------------------------------------------------------*/

/*------------------------------------------------------------------------------
- Widgets
------------------------------------------------------------------------------*/

/* Preloader */
[dir] .preloader{
    background-color: var(--bb-hello-bar-bg-color) !important; 
}

/* Post preview */
.post-preview .title{
    font-size: 1.25rem;
}

/* Term preview */
.term-preview .title{
    font-size: 1.25rem;
}

/*------------------------------------------------------------------------------
- Gravity Forms
------------------------------------------------------------------------------*/

/* Custom address layout */
@media (min-width: 641px){
    .ginput_container_address .address_city,
    .ginput_container_address .address_state,
    .ginput_container_address .address_zip,
    .ginput_container_address .address_country{
        width: 25% !important;
        float: left !important;
        display: block !important;
        clear: none !important;
        margin-right: 0 !important;
		flex: none !important;
    }
    
    .ginput_container_address:not(.has_country) .address_city,
    .ginput_container_address:not(.has_country) .address_state,
    .ginput_container_address:not(.has_country) .address_zip{
        width: 33.33% !important;
    }
		
	.gform_legacy_markup_wrapper .ginput_container_address select{
		padding-top: 8px !important;
		padding-bottom: 8px !important;
	}
    
    .ginput_container_address .address_country,
    .gform_wrapper .ginput_complex.ginput_container_address:not(.has_country) span.ginput_left.address_zip{
        padding-right: 0 !important;
    }
}
