/**
*
* CSS File that styles the Admin Settings Panel of the Plugin
* 
* TABLE OF CONTENTS:
* 1. WordPress Admin Dashboard Background
* 2. Menu items
* 3. Swing animation for icons
* 4. Tools
* 5. Media Queries
*
* 
*/

/* 1. WordPress Admin Dashboard Background (CSS file enqueued only in this plugin's specific admin slug) */
#wpcontent{
	background-color: #313437;
	padding:0px 35px 0px 35px;
}

#wpfooter{
	background-color: #313437;
	position:unset;
}
#wpbody-content {
    padding-bottom: 5px;
}
.form-table th{
	padding: 20px 10px 20px 10px;
}
#b2bking_admin_form .checkbox input{
	margin:0;
}

.b2bking_othersettings_tab th, .b2bking_creditsettings_tab th {
    min-width: 282px !important;
}
.b2bking_languagesettings_tab th, .b2bking_enablefeatures_tab th{
  min-width: 235px !important;
}
.b2bking_registrationsettings_tab th{
  min-width: 250px !important;
}
.b2bking_tooltip_img {
    width: 250px;
    margin-top: 8px;
    border-radius: 5px;
    border-top: 6px solid #c69735 !important;
    padding-top: 6px;
    background: #fff;
}
.toplevel_page_b2bking div#tiptip_content {
    min-width: 300px !important;
}
/* 2. Menu Items */
/* !important needed to override Semantic UI Library */
.b2bking_accordion{
  width: 100% !important;
}
#b2bking-quote-fields{
  margin-left: 10px;
  margin-top: 10px;
}
.b2bking_quotes_section{
  margin-top: 0px;
}
.b2bking_othersettings_margin{
  margin-bottom: 50px;
}
.ui.menu .item.green.active{
	color: #f0efec !important;
	transition: all 0s;
}
.ui.menu .item.green:hover{
	color: #eeedf2;
}
#b2bking_admin_menu .active .icon{
    color: #dea320;
}
#b2bking_admin_menu .item{
	transition: 0.2s all;
}
#b2bking_admin_menu .item::before{
	background: rgba(119, 122, 125, 0.1);
}
.item .b2bking_menu_description{
	color: #686573;
	font-size: 12px;
}
.item.active .b2bking_menu_description{
	color:#b8b6c3;
}
#b2bking_menu_logo{
	width: 170px;
	margin: 30px auto;
	display: block;
}
#b2bking_admin_wrapper{
	display:flex;
	min-height: 610px;
  margin-top: 30px;
}
#b2bking_admin_wrapper_import{
  display:flex;
  min-height: 450px;
  margin-top: 30px;
}
#b2bking_download_products_button{
  min-height: 36px;
}
#b2bking_tabs_wrapper{
	display: inline-block;
    width: 100%;
}
#b2bking_admin_menu{
	display:inline-block;
	vertical-align: top;
	height:auto;
	min-width: 225px;
	width:21%;
	border: 0;
	border-radius: 5px 0px 0px 5px;
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.17);
	background: linear-gradient(172deg, #15141b, #201e2e, #15141b)
}
#b2bking_admin_menu .active{
	/* !important needed to override Semantic UI Library */
	border-color: #d4d4d5 !important; 
	box-shadow: 0 3px 6px rgba(0,0,0,.07);
	border-top-width:0px;
	background: #6c667d;
}
.ui.menu .item{
	transition: all .1s ease-out;
	color:#bcc0c7;
	padding:20px;
}
.ui.menu .item>i.icon{
	font-size: 22px;
	display:inline-table;
	position: relative;
	top: 5px;
	transition: 0.3s all;
}
#b2bking_admin_menu .item:hover .icon{

	animation: swing 1s ease;
	animation-iteration-count: 1;
}
#b2bking_admin_menu .item.active:hover .icon{
	animation: none;
	animation-iteration-count: 1;
}
#b2bking_admin_menu.ui.menu .item:hover{
	background: rgba(108, 102, 125, 0.18);
}
#b2bking_admin_menu.ui.menu .item.active:hover{
	background: #6c667d;
}
a.item:after {
    content: "";
    width: 0;
    left:0;
    top: 0;
    position: absolute;
    transition: 0.2s ease;
    height: 3px;
}
a.item.active:after {
    content: "";
    width: 100%;
    height: 3px;
    background: #dea320;
}
.ui.menu .item.teal:hover{
	color: #00b5ad;
}
.ui.menu .item.pink:hover{
	color: #e03997;
}
.ui.menu .item.red:hover{
	color: #db2828;
}
.ui.menu .item.blue:hover{
	color: #2185d0;
}

.ui.tab.segment{
	border:0;
	box-shadow: 0 3px 6px rgba(0,0,0,.07);
	border-top: 1px;
	border-radius: 0 5px 5px 0;
	height:100%;
}
.b2bking_attached_content_wrapper{
	transition: all .15s ease;
}
.b2bking_plugin_status_container{
  padding: 10px;
}
.b2bking_settings_explained{
  font-size: 12px;
  font-style: italic;
}
label.b2bking_access_restriction_label {
    font-weight: 600;
    border-bottom: 1px solid #eeeeee;
    margin-bottom: 5px;
    padding-bottom: 3px;
    display: block;
}

/* 3. Swing Animation for Icons */
@-webkit-keyframes swing {
  20% {
    -webkit-transform: rotate3d(0, 0, 1, 15deg);
    transform: rotate3d(0, 0, 1, 15deg);
  }

  40% {
    -webkit-transform: rotate3d(0, 0, 1, -10deg);
    transform: rotate3d(0, 0, 1, -10deg);
  }

  60% {
    -webkit-transform: rotate3d(0, 0, 1, 5deg);
    transform: rotate3d(0, 0, 1, 5deg);
  }

  80% {
    -webkit-transform: rotate3d(0, 0, 1, -5deg);
    transform: rotate3d(0, 0, 1, -5deg);
  }

  to {
    -webkit-transform: rotate3d(0, 0, 1, 0deg);
    transform: rotate3d(0, 0, 1, 0deg);
  }
}

@keyframes swing {
  20% {
    -webkit-transform: rotate3d(0, 0, 1, 15deg);
    transform: rotate3d(0, 0, 1, 15deg);
  }

  40% {
    -webkit-transform: rotate3d(0, 0, 1, -10deg);
    transform: rotate3d(0, 0, 1, -10deg);
  }

  60% {
    -webkit-transform: rotate3d(0, 0, 1, 5deg);
    transform: rotate3d(0, 0, 1, 5deg);
  }

  80% {
    -webkit-transform: rotate3d(0, 0, 1, -5deg);
    transform: rotate3d(0, 0, 1, -5deg);
  }

  to {
    -webkit-transform: rotate3d(0, 0, 1, 0deg);
    transform: rotate3d(0, 0, 1, 0deg);
  }
}

.swing {
  -webkit-transform-origin: top center;
  transform-origin: top center;
  -webkit-animation-name: swing;
  animation-name: swing;
}
/* 4. Tools */
div#b2bking_tools_setusergroup {
    font-size: 16px;
    padding: 10px;
}
div#b2bking_tools_setcategoryvisibility{
  font-size: 16px;
  padding: 10px;
  margin-top: 20px;
}
div#b2bking_tools_setusersubaccounts{
  font-size: 16px;
  padding: 10px;
  margin-top: 20px;
}
div#b2bking_set_users_in_group, div#b2bking_set_category_in_bulk {
    margin-top: 15px;
}
.b2bking_subaccountplusicon{
    font-size: 1.4em !important;
    color: #C4C4C4;
    display: inline-block !important;
    margin-right: 5px !important;
}
input.b2bking_set_user_subaccounts_input {
    background-color: #ECECEC;
    border-radius: 3px;
    height: 40px;
    border: none;
    padding: 0px 15px;
    width: 97.5%;
    max-width: 100%;
    font-family: "Roboto Medium", Roboto;
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 21px;
    color: #252525;
    margin-bottom: 5px;
}

/* 5. Media Queries */
@media screen and (max-width: 767px) { 
  div#b2bking_admin_wrapper{
    display: block;
  }
  div#b2bking_admin_menu{
    width: 100%;
  }
}

