/**
 * All of the CSS for your admin-specific functionality should be
 * included in this file.
 */


.ficoo-class-fields {
	display: none;
}

.ficoo-documentation-image {
	width: 25px;
	vertical-align: middle;
	margin-left: 2px;
}

.ficoo-logo-image {
	width: 80px;
	vertical-align: middle;
	margin-left: -2px;
}


.ficoo-setting-div {
	position: relative;
	width: auto;
	margin-right: 10px;
	display: block;
	padding: 30px 30px 30px 30px;
	margin-top: 10px;
	background-color: white;


	box-shadow: rgba(17, 17, 26, 0.1) 0px 4px 16px, rgba(17, 17, 26, 0.05) 0px 8px 32px;
	border: 3px solid;
	border-image: linear-gradient(45deg, #c0aada, #0a98d595) 1;

}

select.form-select {
	--bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
	display: block;
	width: 80px;
	padding: .375rem 2.25rem .375rem .75rem;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	color: var(--bs-body-color);
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-color: var(--bs-body-bg);
	background-image: var(--bs-form-select-bg-img), var(--bs-form-select-bg-icon, none);
	background-repeat: no-repeat;
	background-position: right .75rem center;
	background-size: 16px 12px;
	border: var(--bs-border-width) solid var(--bs-border-color);
	border-radius: var(--bs-border-radius);
	transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out !important;
}

select.form-select:disabled {
	background-color: var(--bs-secondary-bg) !important;
}

select.form-select:focus {
	color: var(--bs-body-color) !important;
	background-color: var(--bs-body-bg) !important;
	border-color: #86b7fe !important;
	outline: 0 !important;
	box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25) !important;

}

input.form-control {
	display: block;
	margin-top: 3px;
	width: 400px;
	padding: .375rem .75rem !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	line-height: 1.5 !important;
	color: var(--bs-body-color) !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	appearance: none !important;
	background-color: var(--bs-body-bg) !important;
	background-clip: padding-box !important;
	border: var(--bs-border-width) solid var(--bs-border-color) !important;
	border-radius: var(--bs-border-radius) !important;
	transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out !important;

}

input.form-control:focus {
	color: var(--bs-body-color) !important;
	background-color: var(--bs-body-bg) !important;
	border-color: #86b7fe !important;
	outline: 0 !important;
	box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25) !important;
}

textarea.form-control {
	display: block;
	margin-top: 3px;
	width: 500px;
	padding: .375rem .75rem !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	line-height: 1.5 !important;
	color: var(--bs-body-color) !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	appearance: none !important;
	background-color: var(--bs-body-bg) !important;
	background-clip: padding-box !important;
	border: var(--bs-border-width) solid var(--bs-border-color) !important;
	border-radius: var(--bs-border-radius) !important;
	transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out !important;

}

textarea.form-control:focus {
	color: var(--bs-body-color) !important;
	background-color: var(--bs-body-bg) !important;
	border-color: #86b7fe !important;
	outline: 0 !important;
	box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25) !important;
}

/* Override WordPress admin .card styles */
.card {
	max-width: none;
	padding: 0;
	margin-top: 0;
	box-shadow: none;
}

.form-switch {
	padding-left: 2.5em !important;
}

.form-switch .form-check-input {
	--bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%280, 0, 0, 0.25%29'/%3e%3c/svg%3e");
	width: 2em !important;
	height: 1em !important;
	margin-left: -2.5em !important;
	background-color: #dee2e6 !important;
	background-image: var(--bs-form-switch-bg) !important;
	background-position: left center !important;
	background-size: contain !important;
	background-repeat: no-repeat !important;
	border: 0 !important;
	border-radius: 2em !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	box-shadow: none !important;
	outline: none !important;
	cursor: pointer !important;
	transition: background-position 0.15s ease-in-out, background-color 0.15s ease-in-out !important;
}

/* Override WordPress admin checkbox pseudo-elements */
.form-switch .form-check-input::before,
.form-switch .form-check-input::after {
	display: none !important;
	content: none !important;
}

.form-switch .form-check-input:checked {
	background-color: #0d6efd !important;
	background-position: right center !important;
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e") !important;
}

.form-switch .form-check-input:checked::before,
.form-switch .form-check-input:checked::after {
	display: none !important;
	content: none !important;
}

@media (prefers-reduced-motion: reduce) {
	.form-switch .form-check-input {
		transition: none !important;
	}
}

.form-switch .form-check-input:focus {
	--bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%2386b7fe'/%3e%3c/svg%3e");
}

.form-switch.form-check-reverse {
	padding-right: 2.5em !important;
	padding-left: 0 !important;
}

.form-switch.form-check-reverse .form-check-input {
	margin-right: -2.5em !important;
	margin-left: 0 !important;
}

[data-bs-theme=dark] .form-switch .form-check-input:not(:checked):not(:focus) {
	--bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%28255, 255, 255, 0.25%29'/%3e%3c/svg%3e");
}


/*Default compnay*/
#ficoo_html_input_default_user_company_id {
	display: inline !important;
	vertical-align: top;
	width: 100% !important;

}

#save_default_company,
#start_initial_sync,
#reset_default_company {
	display: inline !important;
	margin-left: 3px;
	margin-top: 0px;
}

/* END Default compnay*/

/*Document settings*/

#ficoo_html_input_create_order,
#ficoo_html_input_bacs_due_date_in_days,
#ficoo_html_input_autosend_document_order_status,
#ficoo_html_input_autosend_document_type,
#ficoo_html_input_create_customer_master_data {
	width: 300px;
}

#ficoo_html_input_autosend_document_order_status {
	height: 180px;
}

#ficoo_html_input_customer_update_behavior {
	width: 180px;
}

/*Stamp duty vat rate select2*/
#ficoo_html_input_stamp_duty_vat_rate {
	width: 300px;
}

/*Bollo cassa rivalsa*/
#ficoo_html_input_apply_rivalsa_selected,
#ficoo_html_input_apply_cassa_selected,
#ficoo_html_input_apply_withholding_taxes_selected,
#ficoo_html_input_apply_invoice_stamp{
	width: 220px;
	display: inline;
	vertical-align: top;
}

#ficoo_html_input_enabled_documents_on_checkout {
	width: 400px;
}

#ficoo_html_input_enabled_documents_on_checkout,
#ficoo_html_input_hide_invoice_to_private {
	display: inline;
}

#ficoo_html_input_hide_invoice_to_private {
	margin-left: 10px;
	width: 250px;
}

#ficoo_html_input_rivalsa_amount,
#ficoo_html_input_cassa_amount,
#ficoo_html_input_withholding_taxes_amount {
	display: inline;
	margin-left: 3px;
	margin-top: 0px;
	width: 80px;
}

/* new cass atype */
#ficoo_html_input_apply_cassa_type {
	width: 220px;
	margin-left: 3px;
	display: inline !important;
	vertical-align: top;
}


/* END Bollo cassa rivalsa*/

/*Wharehouse*/
#ficoo_html_input_csv_export_value_delimiter,
#ficoo_html_input_use_ean_instead_sku {
	width: 200px;
}

#ficoo_html_input_export_csv_by_sku,
#ficoo_html_input_assign_product_id_by_sku,
#ficoo_html_input_import_quantity_by_sku {
	display: inline !important;
	vertical-align: top
}

#ficoo_html_input_export_csv_by_category,
#ficoo_html_input_assign_product_id_by_category,
#ficoo_html_input_import_quantity_by_category {
	display: inline !important;
	width: 300px;
	vertical-align: top;
}

.alert-secondary {
	--bs-alert-color: black !important;
	--bs-alert-bg: #F9F9F9 !important;
	--bs-alert-border-color: #e5e5e5 !important;
	--bs-alert-link-color: var(--bs-secondary-text-emphasis);
}

/*ADVANCED OPTIONS*/
#ficoo_html_input_default_tax_rate_selected,
#ficoo_html_input_fatture_in_cloud_payment_methods,
#ficoo_html_input_default_fic_balance_account,
#ficoo_html_input_use_shipping_country_for_billing,
#ficoo_html_input_default_tax_rate_for_eu_sell_selected,
#ficoo_html_input_default_tax_rate_for_extraeu_sell_selected {
	width: 300px;
}


/* Price list */
select.ficoo-price-list-user-select.form-select {
	width: 150px !important;
	min-width: 150px;
}


/*Manuale send*/

/* Select2 → Bootstrap form-control look */
#ficoo-order-select2+.select2-container {
	width: 100% !important;
}

#ficoo-order-select2+.select2-container .select2-selection--single {
	height: calc(1.5em + 0.75rem + 2px);
	padding: 0.375rem 0.75rem;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	color: #212529;
	background-color: #fff;
	border: 1px solid #ced4da;
	border-radius: 0.375rem;
	transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

#ficoo-order-select2+.select2-container .select2-selection--single:focus-within {
	border-color: #86b7fe;
	box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

#ficoo-order-select2+.select2-container .select2-selection__rendered {
	padding-left: 0;
	line-height: 1.5;
	color: #212529;
}

#ficoo-order-select2+.select2-container .select2-selection__arrow {
	height: calc(1.5em + 0.75rem);
	top: 1px;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
	padding: 0.375rem 0.75rem;
	font-size: 1rem;
	border: 1px solid #ced4da;
	border-radius: 0.375rem;
}

.select2-container--bootstrap-5 .select2-search--dropdown .select2-search__field,
.select2-container--bootstrap-5 .select2-search--inline .select2-search__field {
	padding: 0.375rem 0.75rem;
	font-size: 0.875rem;
	line-height: 1.5;
	border: 1px solid #dee2e6;
	border-radius: 0.375rem;
	box-shadow: none;
	height: auto;
	min-height: 0;
	margin: 0;
	width: 100% !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
	background-color: #0d6efd;
}

.select2-dropdown {
	border-color: #ced4da;
	border-radius: 0.375rem;
}

.select2-results__options {
	max-height: 400px !important;
}

#override_type {
	display: inline !important;
	width: 100px;
}

#override_document_number {
	display: inline !important;
	width: 150px;
}

#date_picker {
	display: inline-block !important;
	width: auto;
}

#skip_auto_email {
	display: inline !important;
	width: 100px;
}

/*END Manuale send*/

/* Bootstrap btn-primary override */
.btn-primary {
	--bs-btn-bg: #0E97D5 !important;
	--bs-btn-border-color: #0E97D5 !important;
	--bs-btn-hover-bg: #0c82b8 !important;
	--bs-btn-hover-border-color: #0b79ab !important;
	--bs-btn-active-bg: #0b79ab !important;
	--bs-btn-active-border-color: #0a6f9e !important;
	--bs-btn-disabled-bg: #0E97D5 !important;
	--bs-btn-disabled-border-color: #0E97D5 !important;
	--bs-btn-focus-shadow-rgb: 14, 151, 213 !important;
}

/* Bootstrap btn-success override */
.btn-success {
	--bs-btn-bg: #00875A !important;
	--bs-btn-border-color: #00875A !important;
	--bs-btn-hover-bg: #00734d !important;
	--bs-btn-hover-border-color: #006a47 !important;
	--bs-btn-active-bg: #006a47 !important;
	--bs-btn-active-border-color: #006040 !important;
	--bs-btn-disabled-bg: #00875A !important;
	--bs-btn-disabled-border-color: #00875A !important;
	--bs-btn-focus-shadow-rgb: 0, 135, 90 !important;
}

/* Bootstrap btn-danger override */
.btn-danger {
	--bs-btn-bg: #D52808 !important;
	--bs-btn-border-color: #D52808 !important;
	--bs-btn-hover-bg: #b52207 !important;
	--bs-btn-hover-border-color: #aa2006 !important;
	--bs-btn-active-bg: #aa2006 !important;
	--bs-btn-active-border-color: #9e1e06 !important;
	--bs-btn-disabled-bg: #D52808 !important;
	--bs-btn-disabled-border-color: #D52808 !important;
	--bs-btn-focus-shadow-rgb: 213, 40, 8 !important;
}
