/**
 * All of the CSS for your admin-specific functionality should be
 * included in this file.
 */

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: var(--dark) !important;
    border: 1px solid var(--dark) !important;
    opacity:0.75;
    padding: 7px 15px !important;
    color: #fff !important;
    font-weight: bold !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #fff !important;
    font-weight: bold !important;
}

.pisol-aafsw-td-name {
    width: 30%;
}

#bootstrap-wrapper.pisol-setting-wrapper.pisol-container-wrapper a.additional-charges-tab.pi-active-tab,
#bootstrap-wrapper.pisol-setting-wrapper.pisol-container-wrapper a.additional-charges-tab.pi-active-tab:focus {
    background-color: var(--primary) !important;
}

#bootstrap-wrapper.pisol-setting-wrapper.pisol-container-wrapper .additional-charges-tab.pi-tab-error {
    background-color: #f00 !important;
}

.additional-charges-tab-content {
    display: none;
}

.additional-charges-tab-content.pi-active-tab {
    display: block;
}

#bootstrap-wrapper.pisol-setting-wrapper.pisol-container-wrapper .pi-error {
    border: 1px solid #f00 !important;
}

.pi-min-col,
.pi-max-col {
    max-width: 100px;
    width: 100px;
}

.pi-fee-col {
    max-width: 200px;
    width: 200px;
}

#bootstrap-wrapper.pisol-setting-wrapper.pisol-container-wrapper .notice ul {
    margin-bottom: 0;
}

#pisol-efrs-notices {
    background: #fff;
}

#pisol-efrs-notices .pi-effrs-notice {
    padding: 10px;
    margin: 0px !important;
    font-weight: bold;
}


#pisol-efrs-notices .pi-effrs-notice.success {
    background: #4caf50;
    color: #FFF;
}

#pisol-efrs-notices .pi-effrs-notice.error {
    background: #f00;
    color: #FFF;
    border-bottom: 1px solid #fff;
}

#pisol-efrs-new-method.pi-blocked:after {
    content: "Saving...";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    top: 0px;
    position: absolute;
    background-color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    font-weight: bold;
}

.pi-close-notification {
    position: absolute;
    right: 30px;
    cursor: pointer;
}

.jc-bs3-container.container {
    width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.jc-bs3-container.container .pi-close-notification {
    display: none;
}

#pisol-efrs-shipping-method-list-view {
    position: relative;
}

.blocktable:after {
    content: 'Processing.....';
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    font-weight: bold;
}

/**
* Row blocking when field is loading
*/
.pi-block-condition-row {
    position: relative;
}

.pi-block-condition-row:after {
    content: "Loading....";
    color: #000;
    display: flex;
    font-weight: bold;
    justify-content: center;
    align-items: center;
    top: 0px;
    left: 0px;
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(236, 74, 52, 0.2);
}


#pisol-efrs-shipping-method-list-view td {
    vertical-align: middle;
}

#pi-selection-columns {
    display: flex;
    flex-direction: column;
}

.pi-selectable {
    -webkit-touch-callout: all;
    /* iOS Safari */
    -webkit-user-select: all;
    /* Safari */
    -khtml-user-select: all;
    /* Konqueror HTML */
    -moz-user-select: all;
    /* Firefox */
    -ms-user-select: all;
    /* Internet Explorer/Edge */
    user-select: all;
    /* Chrome and Opera */
    padding:4px !important;
    background:#ccc !important;
    color:var(--dark) !important;
    opacity:0.5;
    margin-top:4px;

}

#bootstrap-wrapper.pisol-setting-wrapper.pisol-container-wrapper input[type="file"].form-control{
    height: calc(1.5em + 0.75rem + 7px) !important;
}

.pi_rule_container{
    display: flex;
}

.package_dropdown{
    margin-left:10px !important;
    width:120px !important;
}

#bootstrap-wrapper.pisol-setting-wrapper.pisol-container-wrapper a.pi-used-rule.text-light{
    font-weight:bold !important;
    color:var(--primary) !important;
}

#bootstrap-wrapper.pisol-setting-wrapper.pisol-container-wrapper a.pi-used-rule.text-light.pi-active-tab{
    color:#fff !important;
}

#bootstrap-wrapper.pisol-setting-wrapper.pisol-container-wrapper #pisol-efrs-shipping-method-list-view td{
    vertical-align: middle;
}

/* side menu */
#pisol-side-menu{
	background: linear-gradient(135deg, #1a4562, #2f6c8c, #1a4562);
	color:#fff;
	padding:10px;
	border-radius:10px;
	margin-top:20px;
	display:flex;
	flex-direction: column;
	color:#fff;
	gap:15px;
}

.pi-sticky{
	position: sticky;
	top: 60px;
}


#pisol-side-menu a{
	color:#fff !important;
	padding:5px 10px;
	transition:all 0.3s ease;
	letter-spacing: 1.2px;
}

#bootstrap-wrapper.pisol-setting-wrapper.pisol-container-wrapper #pisol-side-menu a:hover, #bootstrap-wrapper.pisol-setting-wrapper.pisol-container-wrapper #pisol-side-menu a.active{
	text-decoration: none;
	color: #ccc !important;
	font-weight:bold;
}

#bootstrap-wrapper.pisol-setting-wrapper.pisol-container-wrapper #pisol-side-menu a.bg-primary,#bootstrap-wrapper.pisol-setting-wrapper.pisol-container-wrapper #pisol-side-menu a.bg-secondary{
	background: transparent !important;
	border:0 !important
}

#bootstrap-wrapper.pisol-setting-wrapper.pisol-container-wrapper #pisol-side-menu a:last-child{
	padding:5px 10px !important;
}

#bootstrap-wrapper.pisol-setting-wrapper.pisol-container-wrapper #pisol-side-menu a:last-child.bg-primary{
	text-decoration: none;
	color: #ccc !important;
	font-weight:bold;
}

#pisol-side-menu a:last-child:before{
	content: "🔑";
	margin-right:5px;
}

#pi-special-button{
	background: #fff;
	color: var(--dark);
	padding: 7px 15px;
	border-radius: 20px;
	text-decoration: none;
	font-weight: bold;
	display: inline-block;
	transition: background 0.3s ease;
	letter-spacing: 1.2px;
	margin-right:20px;

	&:hover {
    	background: #ccc;
	}
}

.afrsm-head{
    background-color: var(--dark) !important;
    color:#FFF;
    position:sticky;
    top:32px;
    z-index:10000
}

.pisol-form-element-row small{
	color:#1a4562;
	opacity:0.7;
	margin-top:10px;
	display:block;
}

.additional-charges-tab{
    letter-spacing: 0.7px;;
}

.additional-charges-tab .badge.badge-light{
    background-color:#F00 !important;
    color:#fff !important;
    font-weight:400 !important;
}

.additional-charges-tab-content table td{
    vertical-align: middle !important;
}

#additional-charges-container{
    border-bottom:1px solid #ccc !important;
}

#required-method-table tbody:empty,
#optional-method-table tbody:empty {
    display:block;
    margin-bottom:60px;
}


/* close side bar */
.pi-efrs-arrow-circle {
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
  z-index:1000;
  position:absolute;
  top: -21px;
  left: -20px;
}

.pi-efrs-arrow-icon {
  width: 20px;
  height: 20px;
  display: block;
  transition: transform 0.3s ease;
}

/* Flip the arrow horizontally for "open" state (→) */
.pi-efrs-arrow-circle.open .pi-efrs-arrow-icon {
  transform: rotate(180deg);
}


/* Step */
.pi-step-container {
   padding: 20px 0px;
   border-bottom: 1px solid #eee;
}

.pi-step-container.pi-closed .pi-step-description {
   display: none;
}

.pi-step-container .dashicons-minus {
   display: block;
}

.pi-step-container .dashicons-plus-alt2 {
   display: none;
}

.pi-step-container.pi-closed .dashicons-plus-alt2 {
   display: block;
}

.pi-step-container.pi-closed .dashicons-minus {
   display: none;
}

.status-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #fff;
    color: var(--primary);
    font-size: 26px;
    font-weight: bold;
    line-height: 1;
    margin-right: 60px;
}

.pi-step-content {
   padding:0px;
   border-radius: 5px;
   border:1px solid #ccc;
}

.pi-step-header{
    padding:10px 10px;
    display:flex;
    justify-content: space-between;
    align-items: center;
    cursor:pointer;
}

.pi-step-header p{
    margin-bottom:0px !important;
}

.pi-step-description{
    padding:0 15px ;
}

.pi-step-title {
    font-size: 1.2rem !important;
    color: #fff !important;
    margin-bottom:10px !important;
    display: block;
}

.pi-step-title > small{
    font-size: 0.8rem !important;
    color: #fff !important;
    margin-left: 5px;
    font-style: italic;
}

.select2-container {
    width: 100% !important;
}
