/*
Theme Name: RK Portal Theme
Theme URI: https://rkanswers.com/
Author: RK Answers
Author URI: https://rkanswers.com/
Description: Base theme for all portals developed by RK Answers. 
Version: 1.0.0
License: Commercial
Text Domain: rk
Tags: rkanswers, portal.
*/

/*
-----------------
TABLE OF CONTENTS
-----------------
- General
    > Layout
    > Typography
    > Headings
    > Links
    > Colors
    > Buttons
- Bars
    > Top bar
    > Left bar
- Pages
- Widgets
    > Preloader
    > Post preview
    > Term preview
- Gravity Forms
    > Show password buttons
    > Custom address layout
- JS Help Desk
*/

/*------------------------------------------------------------------------------
- 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: #E3252A;
}

a:hover{
    color: #000;
}

/* Colors */
.text-sidebar{
    color: #8a9299 !important;
}

[dir] .bg-primary{
    background-color: #E3252A !important;
}

[dir] .bg-dark{
    background-color: #000 !important;
}

/* Buttons */
[dir] .btn-apply, 
[dir] .btn-cancel{
    border: 0 !important; 
    border-radius: 32px !important;
}

[dir] .btn-primary{
    background-color: #E3252A !important;
}

[dir] .btn-primary:hover,
[dir] .btn-primary:active,
[dir] .btn-primary:focus{
    background-color: #000 !important;
}

/*------------------------------------------------------------------------------
- Bars
------------------------------------------------------------------------------*/

/* Top 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 .navbar-brand{
    margin: 0.5rem;
}

#default-navbar .navbar-brand img{
    max-width: 100%;
    max-height: 50px;
}

/* Left 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-menu-item .sidebar-menu-icon{
    color: inherit !important;
}

/*------------------------------------------------------------------------------
-  Pages
------------------------------------------------------------------------------*/

/*------------------------------------------------------------------------------
- Widgets
------------------------------------------------------------------------------*/

/* Preloader */
[dir] .preloader{
    background-color: #E3252A;
}

/* 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;
    }
}

/* Show password buttons */
.ginput_container_password button.gform_show_password{
	padding: 0 !important;
	right: 0 !important;
	top: calc((100% - 20px) / 2) !important;
}

.ginput_container_password button.gform_show_password span{
	margin-bottom: 0 !important;
}

/*------------------------------------------------------------------------------
- JS Help Desk
------------------------------------------------------------------------------*/

.jsst-main-up-wrapper #wp-jsticket_message-editor-container textarea.wp-editor-area{
    max-height: 250px !important;
}

.jsst-main-up-wrapper .replyFormStatus .js-ticket-closeonreply-checkbox{
    margin-right: 0.5rem !important;
}