/******************************************************************************************/
/* General Page Styles
/******************************************************************************************/
body.bamb-pagestyles { background: #f3f6f8; }
body.bamb-pagestyles .wp-header-end { clear: both; }

.bamb-flex { display: flex; gap: 10px; }
.bamb-flex > div { flex: 1; }

.bamb-section-title { margin: 2.5rem 0 1rem; font-weight: 400; font-size: 1.25rem; }

.bamb-overlay { position: absolute; z-index: 10; top: 0; left: 0; width: 100%; height: 100%; background: rgba( 255,255,255,0.6 ); }
.bamb-overlay .spinner { position: absolute; top: 50%; left: 50%; margin-top: -10px; margin-left: -10px; text-align: center; visibility: visible; opacity: 1; }

.bamb-form-submit { position: relative; }
.bamb-form-submit-spinner.spinner { float: none; margin: 0 0 0 7px; opacity: 1; visibility: visible; }
.bamb-form-submit .bamb-form-submit-spinner { position: absolute; top: 50%; left: 50%; right: auto; bottom: auto; margin: -10px 0 0 -10px !important; }

#bamb-content-wrapper { margin-right: 400px; }
#bamb-content-wrapper:after { content: ''; display: block; clear: left; }
#bamb-primary { float: left; max-width: 675px; width: 100%; }
#bamb-secondary { float: right; margin-right: -400px; max-width: 380px; width: 100%; }

#bamb-content-actions { max-width: 675px; margin-right: 400px; }
#bamb-content-actions:after { content: ''; display: block; clear: both; }
#bamb-content-actions .bamb-trash { float: right; line-height: 34px; }

@media screen and ( max-width: 1150px ) {
	#bamb-content-wrapper { margin-right: 0; }
	#bamb-primary { float: none; }
	#bamb-secondary { float: none; margin-right: 0; max-width: 100%; }

	#bamb-content-actions { margin-right: 0; }
}

/******************************************************************************************/
/* Header
/******************************************************************************************/
#bamb-header { padding: 10px 20px; margin-left: -20px; text-align: right; background: #fff; height: 36px; margin-bottom: 20px; box-shadow: 0 1px 1px #c8d7e1; box-sizing: content-box; }
#bamb-header .bamb-button-secondary,

/******************************************************************************************/
/* Form Fields
/******************************************************************************************/
body.bamb-pagestyles input[type=text]:not(.current-page),
body.bamb-pagestyles input[type=search],
body.bamb-pagestyles input[type=email],
body.bamb-pagestyles input[type=url],
body.bamb-pagestyles input[type=password],
body.bamb-pagestyles input[type=number],
body.bamb-pagestyles textarea,
body.bamb-pagestyles select { width: 100%; min-height: 1px; margin: 0; padding: 7px 10px; color: #2e4453; font-size: 16px; line-height: 26px; border-radius: 5px; border: 1px solid #cbd5e1; background: #fff; transition: all 0.05s ease-in-out; box-shadow: rgb(0 0 0 / 0%) 0px 0px 0px 0px, rgb(0 0 0 / 0%) 0px 0px 0px 0px, rgb(0 0 0 / 4%) 0px 1px 2px 0px; box-sizing: border-box; }

body.bamb-pagestyles input[type=text]:disabled,
body.bamb-pagestyles input[type=email]:disabled,
body.bamb-pagestyles input[type=url]:disabled,
body.bamb-pagestyles input[type=password]:disabled,
body.bamb-pagestyles input[type=number]:disabled,
body.bamb-pagestyles textarea:disabled { background: #edf2f5; }

body.bamb-pagestyles input[type=checkbox].disabled,
body.bamb-pagestyles input[type=checkbox].disabled:checked:before,
body.bamb-pagestyles input[type=checkbox]:disabled,
body.bamb-pagestyles input[type=checkbox]:disabled:checked:before,
body.bamb-pagestyles input[type=radio].disabled,
body.bamb-pagestyles input[type=radio].disabled:checked:before,
body.bamb-pagestyles input[type=radio]:disabled,
body.bamb-pagestyles input[type=radio]:disabled:checked:before { opacity: 0.9; }

body.bamb-pagestyles input[type=text]:not(.current-page),
body.bamb-pagestyles input[type=email],
body.bamb-pagestyles input[type=url],
body.bamb-pagestyles input[type=password],
body.bamb-pagestyles input[type=number] { height: 36px; }

body.bamb-pagestyles input[type=text]::placeholder,
body.bamb-pagestyles input[type=search]::placeholder,
body.bamb-pagestyles input[type=email]::placeholder,
body.bamb-pagestyles input[type=url]::placeholder,
body.bamb-pagestyles input[type=password]::placeholder,
body.bamb-pagestyles input[type=number]::placeholder,
body.bamb-pagestyles textarea::placeholder,
body.bamb-pagestyles select::placeholder { color: #676767; opacity: 1; }

body.bamb-pagestyles input[type=search] { width: auto; margin-right: 10px; }

body.bamb-pagestyles textarea { min-height: 100px; }

body.bamb-pagestyles input[type=text]:focus,
body.bamb-pagestyles input[type=search]:focus,
body.bamb-pagestyles input[type=email]:focus,
body.bamb-pagestyles input[type=url]:focus,
body.bamb-pagestyles input[type=password]:focus,
body.bamb-pagestyles input[type=number]:focus,
body.bamb-pagestyles textarea:focus,
body.bamb-pagestyles select:focus { border-color: #00aadc; outline: 1px solid #00aadc; box-shadow: none; }

.bamb-field-wrapper { margin-bottom: 25px; }
.bamb-field-wrapper.bamb-last { margin-bottom: 0; }

.bamb-field-label-wrapper { position: relative; display: block; margin-bottom: 5px; }
.bamb-field-label-wrapper label { font-weight: bold; }

.bamb-email-label-wrapper { position: relative; display: block; }

.bamb-field-wrapper.bamb-field-wrapper-inline { margin-left: 200px; min-height: 36px; }
.bamb-field-wrapper.bamb-field-wrapper-inline .bamb-field-label-wrapper { float: left; max-width: 195px; width: 100%; margin-left: -200px; margin-right: 5px; margin-bottom: 0; }
.bamb-field-wrapper.bamb-field-wrapper-inline .bamb-field-label-wrapper label { font-weight: normal; }

.bamb-field-wrapper .bamb-field-has-icon { position: relative; }
.bamb-field-wrapper .bamb-field-has-icon .dashicons { position: absolute; top: 10px; left: 10px; color: rgb( 190, 205, 235 ); }
.bamb-field-wrapper .bamb-field-has-icon input[type=text] { padding-left: 36px !important; }

hr.bamb-field-wrapper-divider { border: 0; border-bottom: 1px solid rgba(200, 215, 225, 0.5); margin-bottom: 25px; margin-left: -20px; margin-right: -20px; }

/* Locked fields */
.bamb-field-locked-wrapper { position: relative; }

.bamb-field-unlock { display: flex; align-items: center; gap: 3px; position: absolute; right: 1px; top: 50%; line-height: 34px; margin-top: -17px; padding: 0 10px; }
.bamb-field-unlock svg { width: 16px; height: 16px; }

/* Datepicker Field */
body.bamb-pagestyles #ui-datepicker-div { display: none; z-index: 100000 !important; }

body.bamb-pagestyles .bamb-datepicker-wrapper { position: relative; }

body.bamb-pagestyles .bamb-datepicker-wrapper svg { position: absolute; width: 20px; height: 20px; top: 50%; margin-top: -10px; }

body.bamb-pagestyles .bamb-datepicker-wrapper.bamb-icon-left svg { left: 8px; }
body.bamb-pagestyles .bamb-datepicker-wrapper.bamb-icon-right svg { right: 8px; }

body.bamb-pagestyles .bamb-datepicker-wrapper.bamb-icon-left input[type="text"] { padding-left: 36px; }
body.bamb-pagestyles .bamb-datepicker-wrapper.bamb-icon-right input[type="text"] { padding-right: 36px; }

/* Colorpicker Field */
.bamb-field-wrapper .wp-picker-container .wp-color-result.button { height: 32px; border-color: #c8d7e1; border-style: solid; border-width: 1px 1px 2px; cursor: pointer; box-shadow: none; margin-bottom: 0; }
.bamb-field-wrapper .wp-picker-container .wp-color-result.button span { line-height: 19px; background: #fff; font-size: 13px; font-weight: 500; text-overflow: ellipsis; text-decoration: none; vertical-align: top; box-sizing: border-box; padding: 5px 11px; }

.bamb-field-wrapper .wp-picker-container .wp-picker-input-wrap .button { background: #fff; border-color: #c8d7e1; border-style: solid; border-width: 1px 1px 2px; cursor: pointer; box-shadow: none; }

.bamb-field-wrapper .wp-picker-container input[type=text].wp-color-picker { width: 65px; font-size: 12px; font-family: monospace; line-height: 16px; margin: 0; vertical-align: top; }

/* File Field */
.bamb-field-file-item { position: relative; display: flex; align-items: center; padding: 7px 10px; box-shadow: 0 0 0 1px rgb(200 215 225 / 50%), 0 1px 2px #e9eff3; margin-bottom: 7px; background: #fff; transition: box-shadow 0.2s ease-in-out; }
.bamb-field-file-item-remove { margin-left: auto; width: 16px; height: 16px; color: inherit; vertical-align: middle; }
.bamb-field-file-item-remove:hover { color: #c0392b; }

/* Select2 */
html body .bamb-field-wrapper .select2-container,
html body.bamb-pagestyles .select2-container { width: 100% !important; outline: 0 !important; transition: none !important; }
html body .bamb-field-wrapper .select2-container *,
html body.bamb-pagestyles .select2-container * { outline: 0 !important; }
html body .bamb-field-wrapper .select2-selection,
html body.bamb-pagestyles .select2-selection { height: 36px !important; border-radius: 5px !important; border: 1px solid #cbd5e1 !important; background: #fff; box-shadow: rgb(0 0 0 / 0%) 0px 0px 0px 0px, rgb(0 0 0 / 0%) 0px 0px 0px 0px, rgb(0 0 0 / 4%) 0px 1px 2px 0px; }
html body .bamb-field-wrapper .select2-selection .select2-selection__clear,
html body.bamb-pagestyles .select2-selection .select2-selection__clear { margin-top: -1px; margin-right: 10px; }
html body .bamb-field-wrapper .select2-selection .select2-selection__rendered,
html body.bamb-pagestyles .select2-selection .select2-selection__rendered { line-height: 34px !important; font-size: 16px !important; padding-left: 10px !important; }
html body .bamb-field-wrapper .select2-selection .select2-selection__arrow,
html body.bamb-pagestyles .select2-selection .select2-selection__arrow { height: 34px !important; padding-right: 10px !important; }
html body .bamb-field-wrapper .select2-container--default.select2-container--disabled .select2-selection--single,
html body.bamb-pagestyles .select2-container--default.select2-container--disabled .select2-selection--single { background-color: #edf2f5 !important; }
html body .bamb-field-wrapper .select2-container--default .select2-selection--single .select2-selection__placeholder,
html body.bamb-pagestyles .select2-container--default .select2-selection--single .select2-selection__placeholder { color: #676767; }

html body .bamb-field-wrapper .select2-container--open .select2-selection,
html body.bamb-pagestyles .select2-container--open .select2-selection { border-color: #00aadc !important; outline: 1px solid #00aadc !important; }

html body .bamb-select2-container .select2-dropdown { border: 0 !important; border-radius: 5px !important; box-shadow: 0 10px 15px -3px rgb(0 0 0 / 20%), 0 4px 6px -4px rgb(0 0 0 / 20%); border: 1px solid #cbd5e1 !important; overflow: hidden; }
html body .bamb-select2-container .select2-dropdown li { margin: 0 !important; font-size: 16px !important; line-height: 36px !important; padding: 0 10px; }

html body .bamb-select2-container .select2-dropdown.select2-dropdown--above { margin-top: -5px; }
html body .bamb-select2-container .select2-dropdown.select2-dropdown--below { margin-top: 5px; }

html body .bamb-select2-container .select2-dropdown .select2-results__group { padding: 0 10px; }
html body .bamb-select2-container .select2-results__option[aria-selected="true"] { position: relative; color: #fff !important; background: #00aadc !important; }
html body .bamb-select2-container .select2-results__option[aria-selected="true"]:after { display: block; position: absolute; top: 50%; margin-top: -8px; right: 7px; content: ''; width: 16px; height: 16px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white' class='w-5 h-5'%3E%3Cpath fill-rule='evenodd' d='M16.704 4.153a.75.75 0 01.143 1.052l-8 10.5a.75.75 0 01-1.127.075l-4.5-4.5a.75.75 0 011.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 011.05-.143z' clip-rule='evenodd' /%3E%3C/svg%3E%0A"); }
html body .bamb-select2-container .select2-results__option--highlighted { color: inherit !important; background: rgb( 226, 232,240 ) !important; }

html body .bamb-select2-container .select2-search { position: relative; padding: 0 !important; border: 0 !important; }
html body .bamb-select2-container .select2-search__field { margin: 10px !important; padding-left: 35px !important; width: calc( 100% - 20px ); border-radius: 5px; border: 1px solid #cbd5e1 !important; background: #fff !important; box-shadow: rgb(0 0 0 / 0%) 0px 0px 0px 0px, rgb(0 0 0 / 0%) 0px 0px 0px 0px, rgb(0 0 0 / 5%) 0px 1px 2px 0px !important; box-sizing: border-box !important; }
html body .bamb-select2-container .select2-search:before { display: block; content: ''; position: absolute; top: 20px; left: 20px; width: 18px; height: 18px; opacity: 0.5; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='currentColor' class='w-6 h-6'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z' /%3E%3C/svg%3E%0A"); }

html body .bamb-field-wrapper .select2-selection.select2-selection--multiple { min-height: 36px !important; height: auto !important; line-height: 0 !important; }
html body .bamb-field-wrapper .select2-selection--multiple .select2-selection__rendered { padding: 0 3px; }
html body .bamb-field-wrapper .select2-selection--multiple .select2-selection__choice { height: 28px !important; line-height: 28px !important; font-size: 14px !important; vertical-align: middle; margin: 3px 5px 0 0; border-radius: 3px; background: #e7ebf1 !important; border: 0 !important; }
html body .bamb-field-wrapper .select2-selection--multiple .select2-search--inline { margin: 0 !important; }
html body .bamb-field-wrapper .select2-selection--multiple .select2-search--inline .select2-search__field { border: 0 !important; height: 28px !important; transition: none !important; min-width: 10px !important; padding-left: 0 !important; padding-right: 0 !important; margin-right: 0 !important; }
html body .bamb-field-wrapper .select2-selection--multiple .select2-search--inline .select2-search__field:not([placeholder=""]) { width: 250px !important; }
html body .bamb-field-wrapper .select2-selection--multiple .select2-selection__choice__remove { margin-right: 5px; }

html body .bamb-select2-option-selection-description { display: none; }

html body .bamb-field-wrapper .bamb-has-template-selection .select2-selection { height: auto !important; }
html body .bamb-field-wrapper .bamb-has-template-selection .select2-selection .bamb-option-description { position: relative; white-space: initial; font-size: 13px; line-height: 1.5; margin-bottom: 7px; }
html body .bamb-field-wrapper .bamb-has-template-selection .select2-selection .bamb-option-description > * { margin: 0; line-height: 1.5; opacity: 0.8; }

html body .bamb-field-wrapper .bamb-select2-small .select2-selection,
html body.bamb-pagestyles .bamb-select2-small .select2-selection { height: 28px !important; }
html body .bamb-field-wrapper .bamb-select2-small .select2-selection .select2-selection__rendered,
html body.bamb-pagestyles .bamb-select2-small .select2-selection .select2-selection__rendered { line-height: 26px !important; font-size: 13px !important; }
html body .bamb-field-wrapper .bamb-select2-small .select2-selection .select2-selection__arrow,
html body.bamb-pagestyles .bamb-select2-small .select2-selection .select2-selection__arrow { height: 26px !important; }

html body .bamb-select2-container.bamb-select2-small .select2-dropdown li { font-size: 13px !important; line-height: 28px !important; }

/* Switch Default */
.bamb-switch { position: relative; display: inline-block; vertical-align: middle; margin-right: 7px; }
.bamb-toggle { position: absolute !important; margin-left: -9999px !important; visibility: hidden !important; }
.bamb-toggle + label { display: block; position: relative; cursor: pointer; outline: none; user-select: none; }
input.bamb-toggle-round + label { padding: 2px; width: 34px; height: 18px; background-color: #a8bece; border-radius: 20px; transition: background 0.4s; box-sizing: content-box; }
input.bamb-toggle-round + label:before,
input.bamb-toggle-round + label:after { display: block; position: absolute; top: 2px; left: 2px; bottom: 2px; content: ""; }
input.bamb-toggle-round + label:before { right: 2px; border-radius: 20px; transition: background 0.4s; }
input.bamb-toggle-round + label:after { width: 18px; background-color: #fff; border-radius: 100%; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); transition: margin 0.4s; }
input.bamb-toggle-round:checked + label { background-color: #2ecc71; }
input.bamb-toggle-round.bamb-orange:checked + label { background-color: #f39c12; }
input.bamb-toggle-round:checked + label:after { margin-left: 16px; }

.bamb-switch.bamb-loading input.bamb-toggle-round + label,
.bamb-switch.bamb-loading input.bamb-toggle-round + label:before,
.bamb-switch.bamb-loading input.bamb-toggle-round:checked + label { background: transparent; cursor: default; }
.bamb-switch.bamb-loading input.bamb-toggle-round + label:after { background: #a8bece; box-shadow: none; margin-left: 7px; top: 1px; width: 20px; height: 20px; cursor: default; }

.bamb-switch .bamb-loader { opacity: 0; position: absolute; z-index: 1; left: 9px; top: 1px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid transparent; box-sizing: border-box; animation: bamb-loader-animation 1s linear infinite;  cursor: pointer; }
.bamb-switch .bamb-loader::after { content: ''; position: absolute; left: 8px; top: 8px; border: 3px solid #fff; width: 0; height: 0; border-radius: 50%; box-sizing: border-box; }
.bamb-switch.bamb-loading .bamb-loader { opacity: 1; transition: opacity 0.4s ease-in-out; cursor: default; }

.bamb-switch.bamb-disabled { opacity: 0.7; }
.bamb-switch.bamb-disabled .bamb-toggle + label { cursor: not-allowed !important; }

@keyframes bamb-loader-animation {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Commision Rate Field */
.bamb-field-wrapper-commission-rate { display: flex; }
.bamb-field-wrapper-commission-rate input { display: none; width: 90px !important; margin-right: 10px !important; }
.bamb-field-wrapper-commission-rate .select2 { flex: 1; }

/* Creative Image URL Field */
.bamb-field-wrapper-creative-image { display: flex; }
.bamb-field-wrapper-creative-image input[type=text] { width: 340px !important; margin-right: 10px !important; }
.bamb-field-wrapper-creative-image input[type=button] { width: 90px !important; }

/* Email Logo Field */
.bamb-field-wrapper-email-logo { display: flex; }
.bamb-field-wrapper-email-logo input[type=text] { width: 340px !important; margin-right: 10px !important; }
.bamb-field-wrapper-email-logo input[type=button] { width: 90px !important; }


/* Payout Method */
#bamb-field-wrapper-payout-method .select2-container { display: none; }

/* Creative Image Preview */
.bamb-preview-image { max-width: 100px; }

/* User Search Autocomplete Field */
.bamb-field-wrapper-users-autocomplete { position: relative; }
.bamb-field-wrapper-users-autocomplete .spinner { position: absolute; right: 0; top: 5px; visibility: visible; opacity: 1; }
.bamb-field-wrapper-users-autocomplete input[type=text] { padding-right: 30px !important; }

body.bamb-pagestyles .ui-autocomplete { padding: 0; box-shadow: none; border-color: #c8d7e1; }
body.bamb-pagestyles .ui-autocomplete li { margin: 0; font-size: 16px; line-height: 36px; padding: 0 10px; border: 0 !important; background-color: #fff !important; box-sizing: border-box; }
body.bamb-pagestyles .ui-autocomplete li:hover { border: 0; background-color: #00aadc !important; color: #fff; }
body.bamb-pagestyles .ui-autocomplete li .ui-state-active { border: 0; background: transparent; color: #fff; }

/* Link Field Disabled */
.bamb-field-link-disabled { width: 100%; margin: 0; height: 36px; padding: 7px 10px; font-size: 16px; border: 1px solid #cbd5e1; border-radius: 5px; background: #edf2f5; box-shadow: rgb(0 0 0 / 0%) 0px 0px 0px 0px, rgb(0 0 0 / 0%) 0px 0px 0px 0px, rgb(0 0 0 / 4%) 0px 1px 2px 0px; box-sizing: border-box; }
.bamb-field-link-disabled a { display: inline-block; margin-top: 1px; }

/* Currency Amount */
.bamb-field-currency-amount { position: relative; gap: 0 !important; }
.bamb-field-currency-amount input { padding-left: 48px !important; }
.bamb-field-currency-amount .bamb-field-currency-symbol { position: absolute; top: 1px; left: 1px; background: #edf2f5; font-size: 16px; line-height: 34px; vertical-align: middle; padding: 0; border-right: 0; width: 38px; text-align: center; border-top-left-radius: 4px; border-bottom-left-radius: 4px; }

/* Field Notices */
.bamb-field-notice { display: none; margin-top: 10px; padding: 9px 12px; border-radius: 3px; background: #edf2f5; }
.bamb-field-notice > :first-child { margin-top: 0; }
.bamb-field-notice > :last-child { margin-bottom: 0; }

.bamb-field-notice a { color: inherit; }

.bamb-field-notice.bamb-field-notice-success { background: rgba( 0, 184, 148, 0.3 ); color: #239e57; }
.bamb-field-notice.bamb-field-notice-error { background: rgba( 192, 57, 43, 0.25 ); color: #c0392b; }
.bamb-field-notice.bamb-field-notice-warning { background: rgba( 243, 156, 18, 0.25 ); color: #a26c17; }
.bamb-field-notice.bamb-field-notice-info { background: rgba( 52, 152, 219, 0.2 ); color: #3498db; }

/* Flex Fields */
.bamb-field-wrapper .bamb-flex input[type="text"],
.bamb-field-wrapper .bamb-flex input[type="password"] { flex: 1; }
.bamb-field-wrapper .bamb-flex .bamb-button-secondary { position: relative; width: auto; text-align: center; }
.bamb-field-wrapper .bamb-flex .bamb-button-secondary span { vertical-align: middle; }
.bamb-field-wrapper .bamb-flex .bamb-button-secondary .spinner { display: none; position: absolute; top: 50%; left: 50%; visibility: visible; opacity: 1; float: none; margin: -10px 0 0 -10px; }

.bamb-field-wrapper .bamb-flex .bamb-button-secondary.bamb-spinner-active span { opacity: 0; }
.bamb-field-wrapper .bamb-flex .bamb-button-secondary.bamb-spinner-active .spinner { display: block; }

/******************************************************************************************/
/* General Cards
/******************************************************************************************/
.bamb-card { margin-bottom: 2em; margin-top: 1.5em; border-radius: 1px; background: #fff; box-shadow: 0 0 0 1px rgba(200, 215, 225, 0.5), 0 1px 2px #e9eff3; max-width: 675px; box-sizing: border-box; }

.bamb-card-header { position: relative; padding: 20px; border-bottom: 1px solid rgba(200, 215, 225, 0.5); font-weight: bold; }
.bamb-card-header-subheading { margin: 5px 0 0 0 !important; font-weight: normal !important; color: #6c6c6c; }

.bamb-card-header .bamb-card-title { font-weight: 500; font-size: 15px; }

.bamb-card-header .bamb-card-actions { display: flex; position: absolute; top: 50%; margin-top: -17px; right: 12px; }
.bamb-card-header .bamb-card-actions .bamb-button-info { display: inline-flex; height: 34px; padding: 0 8px; align-items: center; }
.bamb-card-header .bamb-card-actions .bamb-button-info svg { fill: #3c434a !important; }

.bamb-card-inner { position: relative; padding: 20px; }
.bamb-card-inner > :first-child { margin-top: 0; }
.bamb-card-inner > :last-child { margin-bottom: 0; }

.bamb-card-footer { padding: 20px; border-top: 1px solid rgba(200, 215, 225, 0.5); background: rgba(200, 215, 225, 0.15); }
.bamb-card-footer > :first-child { margin-top: 0; }
.bamb-card-footer > :last-child { margin-bottom: 0; }

.bamb-card-footer-actions { text-align: right; }
.bamb-card-footer-actions:after { content: ''; display: block; clear: both; }
.bamb-card-footer-actions a { float: left; color: #777; line-height: 34px; outline: 0; box-shadow: none; }
.bamb-card-footer-actions a:hover { color: #444; }

.bamb-card-section-title { padding: 20px; margin: 25px -20px; border-top: 1px solid rgba(200, 215, 225, 0.5); border-bottom: 1px solid rgba(200, 215, 225, 0.5); font-weight: bold; }

.bamb-card hr { height: 0; margin: 0; padding: 0; border: 0 !important; border-bottom: 1px solid rgba(200, 215, 225, 0.5) !important; }
.bamb-card .bamb-card-inner hr { margin: 20px 0; }

/******************************************************************************************/
/* Postbox Cards
/******************************************************************************************/
body.bamb-pagestyles .postbox { border: 0; background: #fff; border-radius: 1px !important; box-shadow: 0 0 0 1px rgb(200 215 225 / 50%), 0 1px 2px #e9eff3; }
body.bamb-pagestyles .postbox .postbox-header { border: 0; padding: 20px; border-bottom: 1px solid rgba( 200, 215, 225, 0.5 ); font-weight: bold; }
body.bamb-pagestyles .postbox .postbox-header .hndle { padding: 0 !important; margin: 0; font-size: inherit; font-weight: 500; font-size: 15px; }
body.bamb-pagestyles .postbox .postbox-header .handle-actions button { display: none; padding: 0; margin: 0; height: auto; }
body.bamb-pagestyles .postbox .inside { padding: 20px; margin: 0; }

/******************************************************************************************/
/* General Buttons
/******************************************************************************************/
.bamb-button-primary { display: inline-block; background: #00aadc; border-color: #0087be; border-style: solid; border-width: 1px 1px 2px; color: #fff !important; cursor: pointer; margin: 0; outline: 0; overflow: hidden; font-size: 13px; font-weight: 500; text-overflow: ellipsis; text-decoration: none !important; vertical-align: middle; box-sizing: border-box; line-height: 21px; border-radius: 4px !important; padding: 5px 11px; -webkit-appearance: none; -moz-appearance: none; appearance: none; box-shadow: none !important; }
.bamb-button-primary:hover { color: #fff; border-color: #005082; }
.bamb-button-primary:focus { color: #fff; }
.bamb-button-primary.bamb-active,
.bamb-button-primary:active { border-width: 2px 1px 1px; }
.bamb-button-primary:disabled,
.bamb-button-primary.bamb-disabled { background: #bceefd; border-color: #8cc9e2; color: #fff !important; cursor: not-allowed; }

.bamb-button-primary.bamb-button-danger { background: #d63638; border-color: #b32d2e; }
.bamb-button-primary.bamb-button-danger:hover { border-color: #8a2424; }
.bamb-button-primary.bamb-button-danger:disabled,
.bamb-button-primary.bamb-button-danger.bamb-disabled { background: #f1b0b1; border-color: #e59597; }

.bamb-button-secondary { display: inline-block; background: #fff; border-color: #c8d7e1; border-style: solid; border-width: 1px 1px 2px; color: #2e4453 !important; cursor: pointer; margin: 0; outline: 0; overflow: hidden; font-size: 13px; font-weight: 500; text-overflow: ellipsis; text-decoration: none !important; vertical-align: middle; box-sizing: border-box; line-height: 21px; border-radius: 4px !important; padding: 5px 11px; -webkit-appearance: none; -moz-appearance: none; appearance: none; box-shadow: none !important; }
.bamb-button-secondary:hover { color: #2e4453; border-color: #a8bece; }
.bamb-button-secondary:focus { color: #2e4453; }
.bamb-button-secondary.bamb-active,
.bamb-button-secondary:active { border-width: 2px 1px 1px; }
.bamb-button-secondary:disabled,
.bamb-button-secondary.bamb-disabled { color: #e9eff3; background: #fff; border-color: #e9eff3; cursor: not-allowed; }

.bamb-button-tertiary { display: inline-block; background: transparent; border-color: transparent; border-style: solid; border-width: 1px 1px 2px; color: inherit; cursor: pointer; margin: 0; outline: 0; overflow: hidden; font-size: 13px; font-weight: 500; text-overflow: ellipsis; text-decoration: none; vertical-align: middle; box-sizing: border-box; line-height: 21px; border-radius: 4px !important; padding: 5px 11px; -webkit-appearance: none; -moz-appearance: none; appearance: none; box-shadow: none !important; }
.bamb-button-tertiary:hover,
.bamb-button-tertiary:focus { color: inherit; border-color: transparent; box-shadow: none; }


.bamb-button-primary .dashicons,
.bamb-button-secondary .dashicons,

.bamb-button-primary.bamb-has-svg-icon,
.bamb-button-secondary.bamb-has-svg-icon { display: inline-flex; align-items: center; gap: 5px; }

.bamb-button-primary.bamb-has-svg-icon svg,
.bamb-button-secondary.bamb-has-svg-icon svg { height: 16px; width: 16px; }

/* Plug icon needs to be adjusted */
.bamb-button-primary .dashicons-plus,
.bamb-button-secondary .dashicons-plus { margin-top: 4px; }

/* Admin notices butons */
.bamb-notice .bamb-button-primary,
.bamb-notice .bamb-button-secondary { margin-right: 5px; }

/* Trash link */
.bamb-trash,
.bamb-trash a { color: #a00; }
.bamb-trash:focus,
.bamb-trash a:focus,
.bamb-trash:hover,
.bamb-trash a:hover { color: #dc3232; }

/******************************************************************************************/
/* General Tabs and Nav Tabs
/******************************************************************************************/
.bamb-nav-tab-wrapper { margin: 1.5rem 0 0 0; }
.bamb-nav-tab-wrapper:after { content: ''; display: block; clear: both; }

.bamb-nav-tab { float: left; border-bottom: 2px solid transparent; margin: 0; }
.bamb-nav-tab.bamb-active { border-bottom-color: #2e4453; }
.bamb-nav-tab.bamb-active a { color: #2e4453; }
.bamb-nav-tab a { display: flex; align-items: center; gap: 5px; width: auto; color: #2e4453; padding: 16px 16px 14px 16px; text-decoration: none; box-sizing: border-box; box-shadow: none; }

.bamb-nav-tab svg { width: 18px; height: 18px; }
.bamb-nav-tab .dashicons { width: 18px; height: 18px; line-height: 18px; font-size: 18px; }

.bamb-tab { display: none; margin-top: 25px; }
.bamb-tab.bamb-active { display: block; }

/******************************************************************************************/
/* Grid
/******************************************************************************************/
.bamb-row { margin-left: -10px; margin-right: -10px; }
.bamb-row:after { content: ''; display: block; clear: both; }

[class*="bamb-col-"] { display: block; float: left; padding: 0 10px; margin-bottom: 20px; box-sizing: border-box; }
.bamb-row.bamb-last [class*="bamb-col-"] { margin-bottom: 0; }

.bamb-col-1-2 { width: 50%; }
.bamb-col-1-3 { width: 33.3333%; }
.bamb-col-1-4 { width: 25%; }
.bamb-col-3-4 { width: 75%; }
.bamb-col-1-5 { width: 20%; }

/******************************************************************************************/
/* Grid New
/******************************************************************************************/
.bamb-grid { display: grid; column-gap: 20px; row-gap: 20px; }
.bamb-grid-columns-4 { grid-template-columns: repeat( 4, 1fr ); }
.bamb-grid-columns-3 { grid-template-columns: repeat( 3, 1fr ); }
.bamb-grid-columns-2 { grid-template-columns: repeat( 2, 1fr ); }

@media screen and ( max-width : 1075px ) {
    .bamb-grid-columns-4:not(.bamb-no-collapse) { grid-template-columns: repeat( 2, 1fr ); }
    .bamb-grid-columns-3:not(.bamb-no-collapse) { grid-template-columns: repeat( 2, 1fr ); }
}

@media screen and ( max-width : 720px ) {
    .bamb-grid-columns-4:not(.bamb-no-collapse) { grid-template-columns: repeat( 1, 1fr ); }
    .bamb-grid-columns-3:not(.bamb-no-collapse) { grid-template-columns: repeat( 1, 1fr ); }
    .bamb-grid-columns-2:not(.bamb-no-collapse) { grid-template-columns: repeat( 1, 1fr ); }
}

/******************************************************************************************/
/* Toggle Actions 
/******************************************************************************************/
.bamb-actions-wrapper { position: relative; display: flex; justify-content: flex-end; align-items: center; visibility: visible; left: 0; padding: 0; }
.bamb-actions-wrapper > a,
.bamb-actions-wrapper > span { margin-left: 12px; word-break: keep-all; word-wrap: initial; text-overflow: initial; }
.bamb-actions-wrapper > :first-child { margin-left: 0; }

.bamb-button-toggle-actions { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 4px; }
.bamb-button-toggle-actions:focus { box-shadow: none; outline: none; }
.bamb-button-toggle-actions.bamb-active { box-shadow: 0 0 0 2px rgb( 0, 124, 186 ); outline: none; }

.bamb-button-toggle-actions svg { transition: transform 0.1s ease-in-out; }
.bamb-button-toggle-actions.bamb-active svg { transform: rotate( 90deg ); }

.bamb-actions-dropdown { opacity: 0; visibility: hidden; width: max-content; min-width: 150px; position: absolute; z-index: 9999; top: 35px; right: -10px; background: #fff; border-radius: 4px; border: 1px solid #c8d7e1; box-shadow: 0 2px 5px rgb(0 0 0 / 10%), 0 0 56px rgb(0 0 0 / 8%); box-sizing: border-box; transition: all 0.15s ease-in-out; }

.bamb-actions-dropdown:before { content: ''; display: block; position: absolute; z-index: 10; top: -10px; right: 14px; width: 0; height: 0; line-height: 0; border: 10px dashed #c8d7e1; border-left-style: solid; border-top: none; border-left-color: transparent; border-right-color: transparent; }
.bamb-actions-dropdown:after { content: ''; display: block; position: absolute; z-index: 11; top: -8px; right: 16px; border: 8px solid #fff; border-left-style: solid; border-top: none; border-left-color: transparent; border-right-color: transparent; }

.bamb-actions-dropdown > * { display: block; width: auto; padding: 0 12px; margin: 5px !important; line-height: 36px !important; box-sizing: border-box; border-radius: 4px; text-decoration: none; }
.bamb-actions-dropdown > *:hover { background: rgba( 0, 124, 186, 0.1 ); }
.bamb-actions-dropdown > * a { margin: 0 !important; }

.bamb-actions-dropdown .bamb-trash { position: relative; margin-top: 11px !important; }
.bamb-actions-dropdown .bamb-trash:before { position: absolute; top: -6px; left: 0; width: 100%; content: ''; display: block; border-top: 1px solid rgba( 200, 215, 225, 0.5 ); }
.bamb-actions-dropdown .bamb-trash:hover { background-color: rgba( 170, 0, 0, 0.1 ); color: #a00; }

.bamb-actions-dropdown > :first-child.bamb-trash { margin-top: 5px !important; }
.bamb-actions-dropdown > :first-child.bamb-trash:before { display: none; }

.bamb-actions-dropdown.bamb-active { opacity: 1; visibility: visible; top: 45px; }

/******************************************************************************************/
/* Screen modals
/******************************************************************************************/
.bamb-screen-overlay { display: flex; position: fixed; bottom: 0; left: 0; right: 0; top: 0; z-index: 100000; background: rgba( 43, 45, 47, 0.4 ); opacity: 0; visibility: hidden; transition: all 0.15s ease-in-out; }
        
.bamb-modal-frame { max-width: 90%; display: flex; position: relative; box-shadow: 0 0.7px 1px rgba(0,0,0,.15), 0 2.7px 3.8px -0.2px rgba(0,0,0,.15), 0 5.5px 7.8px -0.3px rgba(0,0,0,.15), 0.1px 11.5px 16.4px -0.5px rgba(0,0,0,.15); background: #fff; border-radius: 8px; width: 100%; max-height: 70%; margin: auto; top: 25px; opacity: 0; transform: scale( 0.985 ); transition: all 0.125s ease-in-out; }
.bamb-modal-content { display: flex; flex-direction: column; flex: 1; margin-top: 80px; overflow: auto; padding: 0 32px 32px 32px; }
.bamb-modal-header { position: absolute; display: flex; align-items: center; box-sizing: border-box; flex-direction: row; height: 80px; justify-content: space-between; left: 0; padding: 24px 32px; top: 0; width: 100%; z-index: 10; }
.bamb-modal-header h1 { font-size: 1.2rem; font-weight: 600; }
.bamb-modal-header a { display: flex; margin-left: auto; }
.bamb-modal-footer { display: flex; align-items: center; }
.bamb-modal-footer .bamb-close-modal { margin-left: auto; }

.bamb-screen-overlay.bamb-active { opacity: 1; visibility: visible; }
.bamb-screen-overlay.bamb-active .bamb-modal-frame { top: 0; opacity: 1; transform: scale(1); }

.bamb-in-modal-select { z-index: 100000; }

/******************************************************************************************/
/* Expandable Items
/******************************************************************************************/
.bamb-expandable-items-wrapper { padding: 0 !important; }

.bamb-expandable-item .bamb-expandable-item-header { display: flex; align-items: center; border-top: 1px solid rgba( 200, 215, 225, 0.5 ); }
.bamb-expandable-item .bamb-expandable-item-panel { display: none; padding: 20px; border-top: 1px solid rgba(200, 215, 225, 0.5); background: #f8f9fa; }

.bamb-expandable-items-wrapper > div:first-of-type .bamb-expandable-item-header { border-top: 0; }

.bamb-expandable-item .bamb-expandable-item-header > * { padding: 20px; }
.bamb-expandable-item .bamb-expandable-item-header .bamb-expandable-item-actions { margin-left: auto; }
.bamb-expandable-item .bamb-expandable-item-header .bamb-expandable-item-actions a { text-decoration: none; }

.bamb-expandable-item-actions { display: flex; gap: 5px; }

.bamb-expand-item { display: inline-flex !important; color: inherit; align-items: center; box-shadow: none !important; }
.bamb-expand-item:hover { color: inherit; }
.bamb-expand-item svg { width: 18px; transition: transform 0.15s ease-in-out; }
.bamb-expandable-item.bamb-active .bamb-expand-item svg,
.bamb-expandable-item.bamb-is-expanded .bamb-expand-item svg { transform: rotate( 180deg ); }

/******************************************************************************************/
/* Tooltips
/******************************************************************************************/
.bamb-tooltip-wrapper { display: inline-block; position: relative; vertical-align: middle; width: 18px; height: 18px; }

.bamb-tooltip-wrapper .bamb-tooltip-icon { cursor: pointer; color: #b8cad7; fill: currentColor; }
.bamb-tooltip-wrapper:hover .bamb-tooltip-icon { color: #2e4453; }

.bamb-tooltip-wrapper .bamb-tooltip-message { opacity: 0; visibility: hidden; position: absolute; z-index: 9999; top: 45px; left: 50%; width: 220px; margin-left: -110px; background: #fff; padding: 15px; border-radius: 4px; font-size: 13px; line-height: 18px; font-weight: normal; color: #4f748e; border: 1px solid #c8d7e1; box-shadow: 0 2px 5px rgba( 0, 0, 0, 0.1 ), 0 0 56px rgba( 0, 0, 0, 0.075 ); box-sizing: border-box; transition: all 0.2s ease-in-out; }
.bamb-tooltip-wrapper:hover .bamb-tooltip-message { opacity: 1; visibility: visible; top: 28px; }

.bamb-tooltip-wrapper .bamb-tooltip-message > :first-child { margin-top: 0; }
.bamb-tooltip-wrapper .bamb-tooltip-message > :nth-child(n-1) { margin-bottom: 0; }

.bamb-tooltip-wrapper .bamb-tooltip-arrow { position: absolute; z-index: 10; top: -10px; left: 50%; margin-left: -10px; width: 0; height: 0; line-height: 0; border: 10px dashed #c8d7e1; border-left-style: solid; border-top: none; border-left-color: transparent; border-right-color: transparent; }
.bamb-tooltip-wrapper .bamb-tooltip-arrow:before { content: ''; display: block; position: absolute; top: 2px; left: 50%; margin-left: -10px; border: 10px solid #fff; border-left-style: solid; border-top: none; border-left-color: transparent; border-right-color: transparent; }

.bamb-field-label-wrapper .bamb-tooltip-wrapper { position: absolute; right: 0; top: 3px; }

.bamb-tooltip-wrapper hr { display: block; border: 0; border-bottom: 1px solid #c8d7e1; margin: 12px 0 !important; }
.bamb-tooltip-wrapper ul { padding-left: 20px; }
.bamb-tooltip-wrapper ul li { list-style: disc; }

.bamb-tooltip-wrapper code { padding: 4px 6px 4px; border-radius: 3px; }

.bamb-tooltip-wide .bamb-tooltip-wrapper .bamb-tooltip-message { width: 450px; left: 0; margin-left: -85px; }
.bamb-tooltip-wide .bamb-tooltip-wrapper .bamb-tooltip-arrow { left: 93px; }

/******************************************************************************************/
/* Progressbars
/******************************************************************************************/
.bamb-progressbar { height: 34px; position: relative; background: #ebeff4; border-radius: 4px; box-shadow: 0 0px 4px #b8cbd8 inset; overflow: hidden; box-sizing: border-box; }

.bamb-progressbar > span.bamb-progressbar-empty { display: block; height: 100%; position: relative; overflow: hidden; font-size: 14px; line-height: 32px; text-align: center; }
.bamb-progressbar > span.bamb-progressbar-fill { display: block; height: 100%; background-color: #00a0d2; position: relative; overflow: hidden; font-size: 14px; line-height: 32px; text-align: center; color: #edf2f5; }

/******************************************************************************************/
/* Notes
/******************************************************************************************/
#bamb-notes-wrapper .bamb-note { position: relative; border-top: 1px solid rgba( 200, 215, 225, 0.5 ); overflow: hidden; }
#bamb-notes-wrapper .bamb-note.bamb-first { border-top: 0; }
#bamb-notes-wrapper .bamb-note.bamb-note-hidden { display: none; }

#bamb-notes-wrapper .bamb-note .bamb-note-loading-overlay { position: absolute; top: 0; bottom: 0; left: 0; right: 0; background: rgba( 243, 246, 248, 0.65 ); display: none; }
#bamb-notes-wrapper .bamb-note .bamb-note-loading-overlay .spinner { position: absolute; top: 50%; left: 50%; visibility: visible; opacity: 1; float: none; margin: -10px 0 0 -10px; display: none; }

#bamb-notes-wrapper .bamb-note img { border-radius: 50%; max-width: 22px; vertical-align: middle; margin-right: 7px; }
#bamb-notes-wrapper .bamb-note p { overflow-wrap: anywhere; }
#bamb-notes-wrapper .bamb-note p:first-of-type { margin-top: 0; }

#bamb-notes-wrapper .bamb-note .bamb-note-meta { color: rgba( 68, 68, 68, 0.75 ); font-size: 11px; }
#bamb-notes-wrapper .bamb-note .bamb-note-meta span { display: inline-block; vertical-align: middle; margin: 0; }
#bamb-notes-wrapper .bamb-note .bamb-note-meta span.bamb-note-meta-separator { margin: 0 4px; }
#bamb-notes-wrapper .bamb-note .bamb-note-delete { float: right; color: #a00; margin-top: 3px; }

#bamb-notes-wrapper .bamb-notes-count-wrapper { display: inline-block; font-weight: normal; }

#bamb-notes-wrapper .bamb-notes-view-all { padding-top: 12px; padding-bottom: 12px; border-top: 1px solid rgba( 200, 215, 225, 0.5 ); }

#bamb-notes-wrapper .bamb-field-wrapper { margin-bottom: 10px; }
#bamb-notes-wrapper .bamb-field-wrapper textarea { font-size: 13px; min-height: 50px; }

#bamb-notes-wrapper .bamb-card-footer .spinner { float: none; margin-top: 0; }

/******************************************************************************************/
/* Chart
/******************************************************************************************/
.bamb-chart-tooltip { min-width: 120px; text-align: left; padding: 12px 15px !important; }

.bamb-chart-tooltip table thead th { padding-bottom: 5px; }

.bamb-chart-tooltip .bamb-tooltip-arrow { position: absolute; z-index: 10; bottom: -8px; left: 50%; margin-left: -8px; width: 0; height: 0; line-height: 0; border: 8px dashed #c8d7e1; border-left-style: solid; border-top: none; border-left-color: transparent; border-right-color: transparent; transform: rotate(-180deg); }
.bamb-chart-tooltip .bamb-tooltip-arrow:before { content: ''; display: block; position: absolute; top: 2px; left: 50%; margin-left: -8px; border: 8px solid #fff; border-left-style: solid; border-top: none; border-left-color: transparent; border-right-color: transparent; }

/*******************************************************************************************/
/* Items Views Blank State
/*******************************************************************************************/
.bamb-items-view-blank-state { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 100px 0; }
.bamb-items-view-blank-state svg { width: 120px; height: 120px; opacity: 0.25; filter: drop-shadow( 1px 2px 0px rgba( 0,0,0,0.1 ) ); color: #17212a; }
.bamb-items-view-blank-state h3 { font-size: 22px; max-width: 650px; line-height: 1.5; font-weight: normal; margin: 35px 0; }
.bamb-items-view-blank-state .bamb-button-primary { padding: 14px 24px; font-size: 15px; }

/*******************************************************************************************/
/* List Tables
/*******************************************************************************************/
table.bamb-wp-list-table {
	-webkit-box-shadow: 0 0 0 1px rgba(200, 215, 225, 0.5), 0 1px 2px #e9eff3;
	box-shadow: 0 0 0 1px rgba(200, 215, 225, 0.5), 0 1px 2px #e9eff3;
}

table.bamb-wp-list-table {
	background: #fff;
}

.bamb-wp-list-table {
	border-spacing: 0;
	width: 100%;
	clear: both;
	margin: 0;
}

table.bamb-wp-list-table.striped > tbody > :nth-child(odd) {
	background: rgba(200, 215, 225, 0.15);
}

.bamb-wp-list-table * {
	word-wrap: break-word;
}

.bamb-wp-list-table a {
	text-decoration: none;
}

.bamb-wp-list-table td,
.bamb-wp-list-table th {
	padding: 12px 5px;
}

.bamb-wp-list-table tr.no-items td {
	padding: 20px 12px;
}

.bamb-wp-list-table thead th,
.bamb-wp-list-table thead td {
	border-bottom: 1px solid #f1f1f1;
}

.bamb-wp-list-table tfoot th,
.bamb-wp-list-table tfoot td {
	border-top: 1px solid #f1f1f1;
	border-bottom: none;
}

.bamb-wp-list-table .no-items td {
	border-bottom-width: 0;
}

.bamb-wp-list-table td {
	vertical-align: middle;
}

.bamb-wp-list-table th {
	font-weight: normal;
}

.bamb-wp-list-table td,
.bamb-wp-list-table td p,
.bamb-wp-list-table td ol,
.bamb-wp-list-table td ul {
	font-size: 13px;
	line-height: 1.5em;
}

.bamb-wp-list-table th,
.bamb-wp-list-table thead td,
.bamb-wp-list-table tfoot td {
	text-align: left;
	line-height: 1.3em;
	font-size: 14px;
}

.bamb-wp-list-table th input,
.bamb-wp-list-table thead td input,
.bamb-wp-list-table tfoot td input {
	margin: 0 0 0 8px;
	padding: 0;
	vertical-align: text-top;
}

.bamb-wp-list-table .check-column { width: 30px; }

.bamb-wp-list-table .toggle-row { display: none; }

.bamb-wp-list-table th.sortable a, 
.bamb-wp-list-table th.sorted a { padding: 0; }

.bamb-wp-list-table th.sortable a span,
.bamb-wp-list-table th.sorted a span { float: none; display: inline-block; vertical-align: middle; margin-top: 0; }

.bamb-wp-list-table .column-id { padding-left: 12px !important; width: 50px; text-align: center; box-sizing: border-box; }
.bamb-wp-list-table .column-amount { width: 10%; }
.bamb-wp-list-table .column-reference { width: 10%; }
.bamb-wp-list-table .column-type { width: 10%; }
.bamb-wp-list-table .column-notes { width: 20px; padding-left: 10px; padding-right: 10px; }
.bamb-wp-list-table .column-status { width: 110px; }
.bamb-wp-list-table .column-converted a { display: inline-block; margin-left: 5px; vertical-align: middle; }
.bamb-wp-list-table .column-actions { padding-right: 18px !important; }

.bamb-wp-list-table .column-description > :first-child { margin-top: 0; }
.bamb-wp-list-table .column-description > :last-child { margin-bottom: 0; }

.bamb-wp-list-table.fixed .column-id { box-sizing: content-box; }

.bamb-wp-list-table .column-actions .row-actions { position: relative; display: flex; justify-content: flex-end; align-items: center; visibility: visible; left: 0; padding: 0; }
.bamb-wp-list-table .column-actions .row-actions > a,
.bamb-wp-list-table .column-actions .row-actions > span { margin-left: 12px; word-break: keep-all; word-wrap: initial; text-overflow: initial; white-space: nowrap; }
.bamb-wp-list-table .column-actions .row-actions > :first-child { margin-left: 0; }
.bamb-wp-list-table .column-actions .row-actions .bamb-disabled { color: #a7aaad; cursor: not-allowed; }

body.bamb-pagestyles .tablenav { height: 36px; margin: 6px 0 10px; }

body.bamb-pagestyles .tablenav .actions { position: relative; display: none; gap: 5px; align-items: center; min-width: 200px; }
body.bamb-pagestyles .tablenav .actions input { height: 32px !important; font-size: 13px !important; }
body.bamb-pagestyles .tablenav .actions input::placeholder { color: inherit; opacity: 1; }
body.bamb-pagestyles .tablenav .actions select,
body.bamb-pagestyles .tablenav .actions .bamb-select2 { flex: 1; }
body.bamb-pagestyles .tablenav .actions .bamb-select2 .select2-selection { height: 32px !important; }
body.bamb-pagestyles .tablenav .actions .bamb-select2 .select2-selection .select2-selection__rendered { line-height: 30px !important; font-size: 13px !important; }
body.bamb-pagestyles .tablenav .actions .bamb-select2 .select2-selection .select2-selection__placeholder { color: inherit; }
body.bamb-pagestyles .tablenav .actions .bamb-select2 .select2-selection .select2-selection__arrow { height: 30px !important; }

body.bamb-pagestyles .tablenav .actions [type="submit"] { line-height: 19px; }

body.bamb-pagestyles .tablenav .actions .spinner { position: absolute; margin-left: 0; right: -10px; }

body.bamb-pagestyles .bamb-list-table-data-filters > * { flex-shrink: 0; }
body.bamb-pagestyles .bamb-list-table-data-filters .bamb-list-table-data-filter { max-width: 150px; width: 100%; }
body.bamb-pagestyles .bamb-list-table-data-filters .bamb-list-table-data-filter-user-search { max-width: 225px !important; }
body.bamb-pagestyles .bamb-list-table-data-filters .bamb-list-table-data-filter-datepicker { max-width: 125px; }

body.bamb-pagestyles .search-box { margin-bottom: 8px; }
body.bamb-pagestyles .search-box input[type=search] { height: 34px; margin-right: 0; }
body.bamb-pagestyles .search-box input[type=submit] { display: inline-block; background: #fff; border-color: #c8d7e1; border-style: solid; border-width: 1px 1px 2px; color: #2e4453; cursor: pointer; margin: 0; outline: 0; overflow: hidden; font-size: 13px; font-weight: 500; text-overflow: ellipsis; text-decoration: none; vertical-align: top; box-sizing: border-box; line-height: 21px; height: 34px; border-radius: 4px; padding: 5px 10px; -webkit-appearance: none; -moz-appearance: none; appearance: none; box-shadow: none !important; }
body.bamb-pagestyles .search-box input[type=submit]:hover { color: #2e4453; border-color: #a8bece; }
body.bamb-pagestyles .search-box input[type=submit]:focus { color: #2e4453; }

/* Affiliate name */
table .bamb-affiliate-name { display: inline-block; }
table .bamb-affiliate-name img.avatar { vertical-align: middle; margin-right: 10px; max-width: 32px; height: auto; border-radius: 50%; }
table .bamb-affiliate-name > span { vertical-align: middle; }

/* Table filters */
.bamb-table-filters { display: flex; align-items: center; gap: 5px; clear: both; }
.bamb-table-filters .bamb-field-wrapper { max-width: 150px; width: 100%; margin-bottom: 0; }
.bamb-table-filters .bamb-field-wrapper.bamb-field-wrapper-users-autocomplete { max-width: 275px; }
.bamb-table-filters input[type=submit] { height: 37px; vertical-align: top; }

/* Table navigation */
body.bamb-pagestyles .tablenav-pages .bamb-button-secondary { min-height: 32px !important; min-width: 32px !important; padding: 4px 11px !important; vertical-align: middle !important; text-align: center !important; font-size: 13px; }
body.bamb-pagestyles .tablenav-pages .current-page { vertical-align: middle; min-height: 32px; }
body.bamb-pagestyles .tablenav-pages .tablenav-paging-text { vertical-align: middle; }

/* Notes */
.bamb-wp-list-table .bamb-notes-count { box-sizing: border-box; display: block; padding: 0 8px; min-width: 24px; height: 2em; border-radius: 5px; background-color: #646970; color: #fff; font-size: 11px; line-height: 1.90909090; text-align: center; }
.bamb-wp-list-table .bamb-notes-count:after { content: ""; display: block; width: 0; height: 0; border-top: 5px solid #646970; border-right: 5px solid transparent; }

/* Affiliates List Table */
.bamb-wp-list-table.bamb_affiliates tr td.column-name > span { position: relative; display: inline-block; padding-right: 45px; }

.bamb-wp-list-table.bamb_affiliates tr td.column-name > span > span { position: absolute; top: 50%; margin-top: -7px; right: 20px; width: 15px; height: 15px; font-size: 15px; cursor: pointer; opacity: 0; transition: right 0.1625s ease-in-out, opacity 0.1625s ease-in-out; }
.bamb-wp-list-table.bamb_affiliates tr td.column-name > span > span:first-of-type { right: 30px; }
.bamb-wp-list-table.bamb_affiliates tr:hover td.column-name > span > span:last-of-type { right: 0; opacity: 1; }
.bamb-wp-list-table.bamb_affiliates tr:hover td.column-name > span > span:first-of-type { right: 20px; opacity: 1; }

.bamb-wp-list-table.bamb_affiliates tr td.column-name > span .bamb-tooltip-message { text-align: center; width: auto; top: 30px; left: 8px; margin-left: 0; background: #1e1e1e; color: #fff; border: 0; padding: 7px 14px; font-size: 12px; cursor: default; transform: translate(-50%, 0); box-sizing: border-box; transition: all 0.2s ease-out; }
.bamb-wp-list-table.bamb_affiliates tr td.column-name > span .bamb-tooltip-message > span { overflow: hidden; white-space: nowrap; }
.bamb-wp-list-table.bamb_affiliates tr td.column-name > span .bamb-tooltip-message .bamb-tooltip-arrow { top: -8px; margin-left: -8px; border: 8px solid #1e1e1e; border-left-style: solid; border-top: none; border-left-color: transparent; border-right-color: transparent; transition: border-color 0.2s ease-out; }
.bamb-wp-list-table.bamb_affiliates tr td.column-name > span .bamb-tooltip-message .bamb-tooltip-arrow:before { display: none; }

.bamb-wp-list-table.bamb_affiliates tr td.column-name > span .bamb-tooltip-wrapper:hover .bamb-tooltip-message { top: 30px; opacity: 0; visibility: hidden; }
.bamb-wp-list-table.bamb_affiliates tr td.column-name > span .bamb-tooltip-wrapper.bamb-copied .bamb-tooltip-message,
.bamb-wp-list-table.bamb_affiliates tr td.column-name > span .bamb-tooltip-wrapper.bamb-hover .bamb-tooltip-message { top: 26px; opacity: 1; visibility: visible; }

.bamb-wp-list-table.bamb_affiliates tr td.column-name > span .bamb-tooltip-wrapper.bamb-copied .bamb-tooltip-message { top: 26px; opacity: 1; visibility: visible; background: #16a085; transition: top 0.2s ease-in-out, opacity 0.2s ease-in-out, visibility 0.2s ease-in-out, background 0.2s ease-out !important; }
.bamb-wp-list-table.bamb_affiliates tr td.column-name > span .bamb-tooltip-wrapper.bamb-copied .bamb-tooltip-message .bamb-tooltip-arrow { border-bottom-color: #16a085; }

.bamb-wp-list-table.bamb_affiliates tr td.column-name > span .bamb-tooltip-wrapper input { position: absolute; left: -99999px; top: -99999px; width: 100px; }

.bamb-wp-list-table.bamb_affiliates .column-name { width: 20%; }
.bamb-wp-list-table.bamb_affiliates .column-status { width: 1%; padding-left: 12px; padding-right: 12px; }
.bamb-wp-list-table.bamb_affiliates .column-actions { width: 1%; padding-left: 12px; }

/* Commissions List Table */
.bamb-wp-list-table.bamb_commissions .column-status { width: 1%; padding-left: 12px; padding-right: 12px; }
.bamb-wp-list-table.bamb_commissions .column-actions { width: 1%; padding-left: 12px; }

/* Creatives List Table */
.bamb-wp-list-table.bamb_creatives .column-text { text-overflow: ellipsis; overflow: hidden; }
.bamb-wp-list-table.bamb_creatives .column-text > :first-child { margin-top: 0; }
.bamb-wp-list-table.bamb_creatives .column-text > :last-child { margin-bottom: 0; }
.bamb-wp-list-table.bamb_creatives .column-preview { float: none !important; max-width: 250px; }
.bamb-wp-list-table.bamb_creatives .column-status { width: 1%; padding-left: 12px; padding-right: 12px; }
.bamb-wp-list-table.bamb_creatives .column-actions { width: 1%; padding-left: 12px; }

.bamb-wp-list-table.bamb_creatives .column-preview a { text-decoration: underline; }

/* Visits List Table */
.bamb-wp-list-table.bamb_visits .column-converted { width: 105px; }

/* Payouts List Table */
.bamb-wp-list-table.bamb_payouts .column-total { width: 1%; min-width: 85px; }
.bamb-wp-list-table.bamb_payouts .column-date_created { width: 225px; }
.bamb-wp-list-table.bamb_payouts .column-actions { width: 1%; padding-left: 12px; }

.bamb-wp-list-table.bamb_payouts .column-payments { padding-left: 12px; padding-right: 18px; }

.bamb-wp-list-table.bamb_payouts .column-payments .bamb-progressbar { background: #dee5ed; height: 8px; margin-top: 5px; border-radius: 4px; box-shadow: none; }
.bamb-wp-list-table.bamb_payouts .column-payments .bamb-progressbar .bamb-progressbar-fill { border-radius: 4px; }
.bamb-wp-list-table.bamb_payouts .column-payments .bamb-progressbar.bamb-completed .bamb-progressbar-fill { background: #18b193; }

.bamb-wp-list-table.bamb_payouts .column-payments .bamb-tooltip-wrapper { display: block; width: auto; height: auto; }
.bamb-wp-list-table.bamb_payouts .column-payments .bamb-tooltip-wrapper .bamb-tooltip-message { width: 400px; margin-left: -200px; top: 65px; }
.bamb-wp-list-table.bamb_payouts .column-payments .bamb-tooltip-wrapper:hover .bamb-tooltip-message { top: 45px; }
.bamb-wp-list-table.bamb_payouts .column-payments .bamb-tooltip-wrapper .bamb-tooltip-icon { cursor: initial !important; }

/* Payouts Preview List Table */
.bamb-card-table-payout-preview-payments .bamb-column-affiliate { width: 35%; }
.bamb-card-table-payout-preview-payments .bamb-column-amount,
.bamb-card-table-payout-preview-payments .bamb-column-commissions { width: auto; }
.bamb-card-table-payout-preview-payments .bamb-column-payout-method .bamb-payout-method { display: inline-flex; align-items: center; gap: 6px; }
.bamb-card-table-payout-preview-payments .bamb-column-payout-method .bamb-payout-method svg { width: 15px; height: 15px; }

.bamb-wp-list-table.bamb_payout_preview_payments { max-width: 675px; margin-bottom: 2em; }
.bamb-wp-list-table.bamb_payout_preview_payments .column-affiliate { padding-left: 12px !important; width: 35%; }
.bamb-wp-list-table.bamb_payout_preview_payments .column-amount,
.bamb-wp-list-table.bamb_payout_preview_payments .column-commissions { width: auto; }
.bamb-wrap-preview-payout .tablenav { display: none; }
.bamb-wrap-preview-payout .subsubsub { margin-bottom: 8px; }

/* Payout Payments List Table */
.bamb-wp-list-table.bamb_payout_payments { max-width: 675px; }
.bamb-wp-list-table.bamb_payout_payments td,
.bamb-wp-list-table.bamb_payout_payments th { padding-left: 3px; padding-right: 3px; }
.bamb-wp-list-table.bamb_payout_payments .column-affiliate { width: 22.5%; }
.bamb-wp-list-table.bamb_payout_payments .column-amount { width: 90px; }
.bamb-wp-list-table.bamb_payout_payments .column-status { width: 1%; white-space: nowrap; padding-left: 12px; padding-right: 12px; }
.bamb-wp-list-table.bamb_payout_payments .column-actions { width: 1%; white-space: nowrap; padding-left: 12px; }
.bamb-wrap-view-payout .tablenav { display: none; }
.bamb-wrap-view-payout .subsubsub { margin-bottom: 8px; }

/* Payments List Table */
.bamb-wp-list-table.bamb_payments .column-actions { width: 1% !important; white-space: nowrap !important; }

/* Payment Review Commissions List Table */
.bamb-wp-list-table.bamb_payment_commissions .column-amount { width: 90px; }
.bamb-wp-list-table.bamb_payment_commissions .column-reference { width: 90px; }
.bamb-wp-list-table.bamb_payment_commissions .column-status { width: 1%; white-space: nowrap; padding-left: 12px; padding-right: 12px; }
.bamb-wp-list-table.bamb_payment_commissions .column-actions { width: 1%; white-space: nowrap; }
.bamb-wrap-review-payment .tablenav { display: none; }

/* List Tables in Cards */
.bamb-card.bamb-has-list-table .bamb-card-inner { padding: 0; }

.bamb-card.bamb-has-list-table table.bamb-wp-list-table { box-shadow: none; }
.bamb-card.bamb-has-list-table .subsubsub { margin: 0 !important; padding: 10px 20px !important; display: block; width: 100%; box-sizing: border-box; background: rgba(200, 215, 225, 0.15); border-bottom: 1px solid rgba(200, 215, 225, 0.5); }

@media screen and ( max-width: 768px ) {
	.bamb-wp-list-table .column-status { width: auto !important; }
	.bamb-wp-list-table .column-actions { width: auto !important; }
}

/*******************************************************************************************/
/* Card Table
/*******************************************************************************************/
.bamb-card-table-full-width { margin: -20px !important; width: calc(100% + 40px); text-align: left; border-collapse: collapse; }
.bamb-card-table-full-width th,
.bamb-card-table-full-width td { padding: 10px 20px; }
.bamb-card-table-full-width th { background: #f8f9fa; font-weight: 600; border-bottom: 1px solid rgba( 200, 215, 225, 0.5 ); white-space: nowrap; }
.bamb-card-table-full-width td { border-top: 1px solid rgba( 200, 215, 225, 0.5 ); }
.bamb-card-table-full-width a { text-decoration: none; }

.bamb-card-table-full-width tr.bamb-no-items td { padding: 20px; }

.bamb-card-table-full-width .bamb-card-table-row-footer td { background: #f8f9fa; padding: 15px 20px; border-bottom-left-radius: 1px; border-bottom-right-radius: 1px; }

/*******************************************************************************************/
/* Simple Table
/*******************************************************************************************/
.bamb-table-simple { width: 100%; border-collapse: collapse; }
.bamb-table-simple td { padding: 15px; border-left: 1px solid rgba(200, 215, 225, 0.5); border-top: 1px solid rgba(200, 215, 225, 0.5); }
.bamb-table-simple tr td:last-of-type { border-right: 1px solid rgba(200, 215, 225, 0.5); }
.bamb-table-simple tr:last-of-type td { border-bottom: 1px solid rgba(200, 215, 225, 0.5); }

/*******************************************************************************************/
/* Status Pills
/*******************************************************************************************/
.bamb-status-pill { display: inline-block; font-size: 11px; font-weight: bold; text-transform: uppercase; background: rgba( 52, 73, 94, 0.3 ); color: #34495e; padding: 6px 9px; border-radius: 3px; }
.bamb-status-pill.bamb-status-active,
.bamb-status-pill.bamb-status-complete,
.bamb-status-pill.bamb-status-paid { background: rgba( 22, 160, 133, 0.3 ); color: #16a085; }
.bamb-status-pill.bamb-status-pending,
.bamb-status-pill.bamb-status-requested { background: rgba( 243, 156, 18, 0.3 ); color: #f39c12; }
.bamb-status-pill.bamb-status-unpaid { background: rgba( 52, 152, 219, 0.3 ); color: #3498db; }
.bamb-status-pill.bamb-status-rejected,
.bamb-status-pill.bamb-status-failed { background: rgba( 192, 57, 43, 0.3 ); color: #c0392b; }

/*******************************************************************************************/
/* Status Icons
/*******************************************************************************************/
.bamb-status-icon { display: inline-block; height: 18px; width: 18px; font-size: 11px; vertical-align: middle; background: rgba( 52, 73, 94, 0.15 ); color: #c1c1c1; padding: 5px; border-radius: 50%; box-sizing: content-box; }
.bamb-status-icon.bamb-status-converted { background: rgba( 22, 160, 133, 0.3 ); color: #16a085; }

.bamb-status-icon svg { display: block; height: 18px; width: 18px; }

/*******************************************************************************************/
/* Page: Payouts
/*******************************************************************************************/
#bamb-card-payout-progress .bamb-progressbar { height: 10px; border-radius: 5px; box-shadow: none; }
#bamb-card-payout-progress .bamb-progressbar .bamb-progressbar-fill { border-radius: 5px; }
#bamb-card-payout-progress .bamb-progressbar.bamb-completed .bamb-progressbar-fill { background: #18b193; }

#bamb-card-payout-progress .bamb-card-footer .bamb-field-label-wrapper { margin-bottom: 10px; }
#bamb-card-payout-progress .bamb-card-footer .bamb-field-label-wrapper label { font-weight: normal; }

#bamb-card-payout-progress .bamb-card-footer .bamb-field-wrapper .bamb-has-template-selection .select2-selection .bamb-option-description { margin: 0 -20px 0 -10px; padding: 10px; border-top: 1px solid rgba( 200, 215, 225, 0.5 ); }
#bamb-card-payout-progress .bamb-card-footer .bamb-field-wrapper .bamb-has-template-selection .select2-selection .bamb-option-description:before { content: ''; display: block; position: absolute; top: 5px; bottom: 5px; left: 0; width: 3px; background: #00a0d2; border-top-right-radius: 3px; border-bottom-right-radius: 3px; opacity: 1; }

#bamb-card-payout-progress .bamb-card-footer .bamb-button-primary { margin-top: 10px; min-width: 150px !important; }
#bamb-card-payout-progress .bamb-card-footer .bamb-button-primary .bamb-button-label { display: none; }
#bamb-card-payout-progress .bamb-card-footer .bamb-button-primary .bamb-button-label.bamb-button-label-manual { display: block; }
#bamb-card-payout-progress .bamb-card-footer .spinner { visibility: visible; opacity: 1; float: none; margin: 10px 0 0 5px; }

#bamb-card-do-single-payment .bamb-card-footer .bamb-button-primary,
#bamb-card-retry-single-payment .bamb-card-footer .bamb-button-primary { text-align: center; min-width: 150px !important; }
#bamb-card-do-single-payment .bamb-card-footer .spinner,
#bamb-card-retry-single-payment .bamb-card-footer .spinner { visibility: visible; opacity: 1; float: none; margin: 0 0 0 5px; }

#bamb-card-do-single-payment .bamb-card-inner,
#bamb-card-retry-single-payment .bamb-card-inner { position: relative; }
#bamb-card-do-single-payment .bamb-card-inner:before,
#bamb-card-retry-single-payment .bamb-card-inner:before { content: ''; display: block; position: absolute; top: 10px; bottom: 10px; left: 0; width: 3px; background: #00a0d2; border-top-right-radius: 3px; border-bottom-right-radius: 3px; }

#bamb-card-payment-commissions .bamb-card-header { align-items: center; }
#bamb-card-payment-commissions .bamb-card-header .tablenav-pages { display: flex; align-items: center; justify-content: flex-end; font-weight: normal; }
#bamb-card-payment-commissions .bamb-card-header .tablenav-pages .pagination-links { margin-left: 5px; }
#bamb-card-payment-commissions .bamb-card-header .tablenav-pages .paging-input { margin: 0 5px; }

/*******************************************************************************************/
/* Page: Settings
/*******************************************************************************************/
body.bamb-page-settings #bamb-header { position: fixed; top: 32px; left: 160px; right: 0; margin: 0; z-index: 200; }
body.bamb-page-settings.folded #bamb-header { left: 36px; }
body.bamb-page-settings #wpfooter { display: none; }
body.bamb-page-settings #wpbody-content { padding-top: 56px; padding-bottom: 0; }

/* Extend the sidebar's white background + separator line to the full page height via
   #wpcontent, which already has height:100% in WP's own CSS so it fills #wpwrap/body.
   This handles both a tall admin menu and short tab content without inflating the layout. */
body.bamb-page-settings [id="wpcontent"] {
    background: linear-gradient(
        to right,
        #fff 240px,
        rgba(200, 215, 225, 0.7) 240px,
        rgba(200, 215, 225, 0.7) 241px,
        #f3f6f8 241px
    );
}
body.rtl.bamb-page-settings [id="wpcontent"] {
    background: linear-gradient(
        to left,
        #fff 240px,
        rgba(200, 215, 225, 0.7) 240px,
        rgba(200, 215, 225, 0.7) 241px,
        #f3f6f8 241px
    );
}

/* Remove .wrap margins so the layout bleeds to the edges of #wpcontent */
.wrap.bamb-wrap-settings { margin: 0; }

/* wp-header-end is inside .bamb-settings-content so WP's JS moves notices there */
.bamb-wrap-settings hr.wp-header-end { margin: 0; border: 0; height: 0; display: block; }

/* Notices are server-rendered in #wpbody-content before JS runs.
   Hide them in that initial position; the second rule makes them visible
   the instant WP's JS relocates them inside .bamb-settings-content. */
body.bamb-page-settings #wpbody-content .notice,
body.bamb-page-settings #wpbody-content .error { display: none; }
body.bamb-page-settings #wpbody-content .bamb-settings-content .bamb-notice { display: block; margin-bottom: 16px; }

/* Two-column layout. margin-left: -20px negates #wpcontent's padding-left: 20px.
   min-height fills the viewport so the sidebar background stretches to the screen bottom
   (88px = 32px WP admin bar + 56px Brand Ambassador header). */
.bamb-settings-layout { display: flex; min-height: calc(100vh - 88px); margin-left: -20px; }

/* Sidebar — sticky below the Brand Ambassador header, stays in view while the user scrolls.
   No explicit height: the sidebar is as tall as its nav content, which keeps it shorter
   than the layout's min-height so the sticky bottom-boundary never triggers prematurely.
   The full-height white visual is provided by the #wpcontent gradient, not this element. */
.bamb-settings-sidebar { position: sticky; top: 88px; width: 240px; display: flex; flex-shrink: 0; align-self: flex-start; background: #fff; flex-direction: column; overflow: hidden; box-sizing: border-box; box-shadow: 1px 0 0 rgba(200, 215, 225, 0.7); }

/* Sidebar header — pinned, never scrolls */
.bamb-settings-sidebar-header { flex-shrink: 0; padding: 18px 20px 16px; border-bottom: 1px solid rgba(200, 215, 225, 0.5); }
.bamb-settings-sidebar-header h1 { margin: 0; padding: 0; font-size: 14px; font-weight: 600; color: #2e4453; line-height: 1.4; border: none; }

/* Content column */
.bamb-settings-content { flex: 1; min-width: 0; padding: 24px; position: relative; }
.bamb-settings-content .bamb-tab { margin-top: 0; }

/* Active tab title above the cards */
.bamb-settings-content-title { margin: 0 0 20px 0; padding: 0; font-size: 20px; font-weight: 500; color: #2e4453; line-height: 1.3; border: none; }

/* Tab transition — exit: fade + slide up; enter: fade + slide up from below.
   .bamb-tab-entering is added only by JS on actual tab clicks, so the
   initially-active tab (set by PHP) never triggers the entrance animation. */
@keyframes bamb-tab-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.bamb-settings-content .bamb-tab.bamb-tab-entering { animation: bamb-tab-in 200ms cubic-bezier(0.2, 0, 0.2, 1) both; }
.bamb-settings-content .bamb-tab.bamb-tab-leaving { opacity: 0; transform: translateY(-8px); transition: opacity 100ms ease-in, transform 100ms ease-in; pointer-events: none; }

/* Nav list — scrolls if items exceed the available space below the sidebar header.
   max-height: viewport - 88px (fixed headers) - 55px (sidebar header). */
.bamb-settings-sidebar .bamb-nav-tab-wrapper { overflow-y: auto; max-height: calc(100vh - 143px); margin: 0; padding: 6px 0; }
.bamb-settings-sidebar .bamb-nav-tab-wrapper:after { display: none; }

/* Nav items — rounded pills with margin, light gray active background, no border indicator */
.bamb-settings-sidebar .bamb-nav-tab { float: none; display: block; border: none; margin: 3px 8px; border-radius: 5px; box-sizing: border-box; transition: background 0.12s ease; }
.bamb-settings-sidebar .bamb-nav-tab:hover { background: #f5f7f8; }
.bamb-settings-sidebar .bamb-nav-tab.bamb-active { background: #e7edf1; }

/* Nav links */
.bamb-settings-sidebar .bamb-nav-tab a { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 16px; box-sizing: border-box; font-size: 13px; text-decoration: none; box-shadow: none; transition: color 0.12s ease; }
.bamb-settings-sidebar .bamb-nav-tab.bamb-active a { color: #2e4453; font-weight: 600; }
.bamb-settings-sidebar .bamb-nav-tab:not(.bamb-active):hover a { color: #3c4a55; }

/* Icons inherit text color via currentColor (SVG uses stroke="currentColor") */
.bamb-settings-sidebar .bamb-nav-tab svg { width: 17px; height: 17px; flex-shrink: 0; }
.bamb-settings-sidebar .bamb-nav-tab .dashicons { width: 17px; height: 17px; line-height: 17px; font-size: 17px; flex-shrink: 0; }

/* RTL: sidebar flips to the right; header repositions */
body.rtl .bamb-settings-layout { margin-left: 0; margin-right: -20px; }
body.rtl .bamb-settings-sidebar { box-shadow: -1px 0 0 rgba(200, 215, 225, 0.7); }
body.rtl.bamb-page-settings #bamb-header { left: 0; right: 160px; }
body.rtl.bamb-page-settings.folded #bamb-header { right: 36px; }

/* At 960px WP auto-folds the admin menu — reposition the fixed header to match */
@media screen and ( max-width: 960px ) {

    body.bamb-page-settings.auto-fold #bamb-header { left: 36px; }
    body.rtl.bamb-page-settings.auto-fold #bamb-header { right: 36px; left: 0; }

}

/* Responsive: stack below WP's 782px mobile breakpoint */
@media screen and ( max-width: 782px ) {

    .bamb-settings-layout { flex-direction: column; margin-left: -10px; margin-right: -12px; min-height: 0; }
    
	.bamb-settings-sidebar { position: static; width: 100%; height: auto; box-shadow: 0 1px 0 rgba(200, 215, 225, 0.7); }
    .bamb-settings-sidebar .bamb-nav-tab-wrapper { display: flex; flex-wrap: wrap; overflow-y: visible; padding: 4px; }
    .bamb-settings-sidebar .bamb-nav-tab { margin: 2px 4px; }
    
	.bamb-settings-content { padding: 16px; }
    
	body.bamb-page-settings #bamb-header { position: relative; z-index: 1; top: auto; left: auto; right: auto; margin-left: -10px; margin-right: -12px; }
    body.bamb-page-settings.auto-fold #bamb-header { left: auto; }
    body.rtl.bamb-page-settings.auto-fold #bamb-header { right: auto; left: auto; }
    
	body.bamb-page-settings #wpbody-content { padding-top: 0; }
    body.bamb-page-settings [id="wpcontent"] { background: none; }
    
	body.rtl .bamb-settings-layout { margin-right: 0; }

}

.bamb-card-integration-row { position: relative; padding-left: 60px; border-bottom: 1px solid rgba(200, 215, 225, 0.5); }
[data-tab="integrations"] .bamb-card > :last-of-type { border-bottom: 0; }

.bamb-card-integration-switch { position: absolute; top: 0; left: 0; height: 60px; width: 60px; line-height: 60px; text-align: center; vertical-align: middle; background: rgba(200, 215, 225, 0.15); border-right: 1px solid rgba(200, 215, 225, 0.5); }
.bamb-card-integration-switch .bamb-switch { margin-right: 0; }

.bamb-card-integration-name { height: 60px; line-height: 60px; vertical-align: middle; padding: 0 20px; }

.bamb-settings-email-wrapper { position: relative; display: none; }
.bamb-settings-email-wrapper.bamb-active { display: block; }

.bamb-settings-email-description { padding: 8px 10px; background: #f3f6f8; margin-bottom: 15px !important; }

/* General */

/* Captcha */
.bamb-captcha-service .bamb-switch { margin-right: 20px; }

/* Payouts */
#bamb-card-payout-methods .bamb-expandable-item-header > div:first-of-type { padding: 10px 0 10px 20px; }
#bamb-card-payout-methods .bamb-payout-method-icon { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; background: #f3f6f8; border-radius: 5px; }
#bamb-card-payout-methods .bamb-payout-method-icon svg { width: 22px; height: 22px; color: #000; }
#bamb-card-payout-methods .bamb-expandable-item-header .bamb-payout-method-badge { display: inline-block; margin-left: 6px; padding: 1px 7px; font-size: 11px; font-weight: normal; line-height: 18px; color: #666; background: #f3f6f8; border: 1px solid #c8d7e1; border-radius: 3px; vertical-align: middle; }
#bamb-card-payout-methods .bamb-expandable-item-header label[for^='bamb-payout-method'] { display: flex; align-items: center; }









/*******************************************************************************************/
/* Page: Add-ons
/*******************************************************************************************/













/*******************************************************************************************/
/* Page: Dashboard
/*******************************************************************************************/
#bamb-dashboard-widgets-wrap #dashboard-widgets-wrap { margin: 0; }
#bamb-dashboard-widgets-wrap .metabox-holder { margin: 0 -7px; }

#bamb-dashboard-widgets-wrap .meta-box-sortables.empty-container { display: none; }

#bamb-dashboard-widgets-wrap #latest_affiliates .bamb-column-status { width: 150px; }

#bamb-dashboard-widgets-wrap #latest_visits .bamb-column-status { width: 100px; }

#bamb-dashboard-widgets-wrap #latest_commissions .bamb-column-reference,
#bamb-dashboard-widgets-wrap #latest_visits .bamb-column-landing-url { word-break: break-all; }

#bamb-dashboard-widgets-wrap #totals .bamb-field-wrapper { margin-bottom: 0; min-width: 135px !important; }
#bamb-dashboard-widgets-wrap #totals .bamb-field-wrapper .select2-container { font-weight: normal; }
#bamb-dashboard-widgets-wrap #totals .inside table tr:first-of-type td { border-top: 0; }
#bamb-dashboard-widgets-wrap #totals .inside table td { width: 33.3333%; padding: 15px 20px; border-right: 1px solid rgba( 200, 215, 225, 0.5 ); }
#bamb-dashboard-widgets-wrap #totals .inside table td:last-child { border-right: 0; }
#bamb-dashboard-widgets-wrap #totals .inside table td p { margin-top: 0; margin-bottom: 0.5em; }
#bamb-dashboard-widgets-wrap #totals .inside table td p > span:first-of-type { opacity: 0.8; }
#bamb-dashboard-widgets-wrap #totals .inside table td p > .bamb-tooltip-wrapper,
#bamb-dashboard-widgets-wrap #totals .inside table td p > .bamb-tooltip-wrapper svg { width: 15px; height: 15px; }
#bamb-dashboard-widgets-wrap #totals .inside table td > span { display: inline-block; font-size: 20px; line-height: 20px; }

#bamb-dashboard-widgets-wrap #need_help .inside { position: relative; min-height: 100px; padding-left: 240px; }
#bamb-dashboard-widgets-wrap #need_help .inside img { position: absolute; bottom: 0; left: 0; max-height: 140px; width: auto; }

#bamb-card-notifications { margin: 0 8px 20px !important; max-width: 100%; }
#bamb-card-notifications .bamb-card-header { display: flex; align-items: center; }
#bamb-card-notifications .bamb-notifications-count { display: inline-block; vertical-align: top; box-sizing: border-box; margin: 1px 0 -1px 7px; padding: 0 5px; min-width: 18px; height: 18px; border-radius: 9px; background-color: #d63638; color: #fff; font-size: 11px; line-height: 1.6; text-align: center; z-index: 26; }

#bamb-card-notifications .bamb-card-inner { padding: 0; }
#bamb-card-notifications .bamb-card-inner > div { padding: 15px 20px; border-top: 1px solid rgba( 200, 215, 225, 0.5 ); }
#bamb-card-notifications .bamb-card-inner > div:first-of-type { border-top: 0; }
#bamb-card-notifications .bamb-card-inner > div > :first-child { margin-top: 0; }
#bamb-card-notifications .bamb-card-inner > div > :last-child { margin-bottom: 0; }

@media screen and ( min-width: 1921px ) and ( max-width: 2560px ) {

	#bamb-dashboard-widgets-wrap .postbox-container { width: 33.3333% !important; }

}

@media screen and ( max-width: 1920px ) {

	#bamb-dashboard-widgets-wrap .postbox-container { width: 50% !important; }

}

@media screen and ( max-width: 999px ) {

	#bamb-dashboard-widgets-wrap .postbox-container { width: 100% !important; }

}

/*******************************************************************************************/
/* Page: Affiliates
/*******************************************************************************************/
.bamb-modal-frame.bamb-modal-affiliate-qr-code { max-width: 550px; text-align: center; }

.bamb-modal-affiliate-qr-code .bamb-affiliate-details { display: flex; align-items: center; justify-content: center; gap: 10px; background: #f3f6f8; margin: 0 -32px; padding: 15px 32px; }

.bamb-modal-affiliate-qr-code .bamb-affiliate-details .bamb-affiliate-avatar { display: flex; }
.bamb-modal-affiliate-qr-code .bamb-affiliate-details .bamb-affiliate-avatar img { border-radius: 50%; height: 40px; width: 40px; border: 2px solid #f3f6f8; }

.bamb-modal-affiliate-qr-code .bamb-affiliate-qr-code { width: 200px; height: 200px; margin: 25px auto; background: #f3f6f8; }
.bamb-modal-affiliate-qr-code .bamb-button-secondary { margin-top: 25px; }

/******************************************************************************************/
/* Page: Commissions
/******************************************************************************************/
.bamb-modal-frame.bamb-modal-reject-commission { max-width: 550px; }
.bamb-modal-frame.bamb-modal-reject-commission .bamb-field-wrapper { margin-bottom: 15px; }
.bamb-modal-frame.bamb-modal-reject-commission .bamb-modal-footer { margin-top: 30px; }

/*******************************************************************************************/
/* Page: WooCoomerce Product
/*******************************************************************************************/
.wc-tabs.product_data_tabs .bamb_tab a:before { font-family: 'Dashicons' !important; content: '\f184' !important; }
body.post-type-product .bamb-product-commissions-disabled { background: #f1f1f1; margin: 9px; padding: 10px 15px; border-radius: 4px; }
body.post-type-product .bamb-product-variation-commissions-disabled { background: #f1f1f1; padding: 10px 15px; border-radius: 4px; }

/*******************************************************************************************/
/* Integrations: Options fields
/*******************************************************************************************/
.bamb-hide-if-disabled-commissions { display: none; }

.bamb-option-field-wrapper-commission-rate { display: none; }

.bamb-options-group.bamb-hidden,
.bamb-option-field-wrapper.bamb-hidden,
.bamb-options-group.bamb-hidden-by-parent,
.bamb-option-field-wrapper.bamb-hidden-by-parent { display: none !important; }





.bamb-card-promo .bamb-field-wrapper { opacity: 0.65; }

/*******************************************************************************************/
/* Flyer creatives */
/*******************************************************************************************/
#bamb-flyer-canvas { position: relative; display: inline-block; max-width: 100%; line-height: 0; user-select: none; -webkit-user-select: none; touch-action: none; border: 1px solid #dcdcde; }
#bamb-flyer-bg { display: block; max-width: 100%; height: auto; pointer-events: none; }
.bamb-flyer-box { position: absolute; box-sizing: border-box; border: 2px dashed #2271b1; background: rgba( 34, 113, 177, 0.18 ); cursor: move; overflow: hidden; }
#bamb-flyer-box-qr { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; background: repeating-conic-gradient( rgba( 0, 0, 0, 0.55 ) 0% 25%, rgba( 255, 255, 255, 0.75 ) 0% 50% ) 0 0 / 14% 14%; color: #1d2327; font: 700 14px/1 sans-serif; }
#bamb-flyer-box-qr span { background: #fff; padding: 3px 6px; }
#bamb-flyer-box-text { display: flex; align-items: flex-start; white-space: nowrap; font-weight: 700; line-height: 1.15; font-family: Arial, Helvetica, sans-serif; }
.bamb-flyer-handle { position: absolute; right: 0; bottom: 0; width: 14px; height: 14px; background: #2271b1; cursor: nwse-resize; }
#bamb-flyer-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 15px 25px; margin-top: 15px; }
#bamb-flyer-controls label { display: flex; flex-direction: column; gap: 5px; }
#bamb-flyer-admin-downloads { margin-top: 15px; }
#bamb-flyer-admin-downloads .bamb-button-primary[disabled] { opacity: 0.5; pointer-events: none; }

/******************************************************************************************/
/* Brand Ambassador admin theme
/******************************************************************************************/
body.bamb-pagestyles {
	--bamb-accent: #0f766e;
	--bamb-accent-dark: #115e59;
	--bamb-accent-soft: #f0fdfa;
	--bamb-warm: #f59e0b;
	--bamb-ink: #1f2937;
	--bamb-muted: #6b7280;
	--bamb-line: #e5e7eb;
	--bamb-radius: 10px;
	background: #f6f7f9;
}

/* Header */
#bamb-header { display: flex; align-items: center; justify-content: space-between; text-align: left; background: linear-gradient( 100deg, #0f766e 0%, #115e59 60%, #134e4a 100% ); color: #fff; box-shadow: 0 1px 0 rgba( 0, 0, 0, 0.08 ); }
#bamb-header .bamb-header-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
#bamb-header .bamb-header-logo { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; background: rgba( 255, 255, 255, 0.15 ); color: #fde68a; }
#bamb-header .bamb-header-logo svg { width: 20px; height: 20px; }
#bamb-header .bamb-header-title { font-size: 16px; font-weight: 700; letter-spacing: 0.01em; white-space: nowrap; }
#bamb-header .bamb-header-tagline { font-size: 13px; opacity: 0.8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#bamb-header .bamb-header-version { font-size: 12px; padding: 3px 8px; border-radius: 20px; background: rgba( 255, 255, 255, 0.15 ); }

@media screen and ( max-width: 900px ) {
	#bamb-header .bamb-header-tagline { display: none; }
}

/* Headings */
body.bamb-pagestyles .bamb-wrap h1.wp-heading-inline,
body.bamb-pagestyles .bamb-wrap > h1 { font-weight: 700; color: var( --bamb-ink ); }
.bamb-section-title { font-weight: 600; color: var( --bamb-ink ); }

/* Cards */
body.bamb-pagestyles .bamb-card,
body.bamb-pagestyles .postbox { border-radius: var( --bamb-radius ) !important; box-shadow: 0 0 0 1px var( --bamb-line ), 0 1px 3px rgba( 17, 24, 39, 0.05 ); overflow: visible; }
body.bamb-pagestyles .bamb-card-header,
body.bamb-pagestyles .postbox .postbox-header { border-bottom-color: var( --bamb-line ); }
body.bamb-pagestyles .bamb-card-header .bamb-card-title { font-weight: 600; color: var( --bamb-ink ); }
body.bamb-pagestyles .bamb-card-header:before { content: ''; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0; background: var( --bamb-accent ); }
body.bamb-pagestyles .bamb-card-footer { background: #f9fafb; border-top-color: var( --bamb-line ); border-radius: 0 0 var( --bamb-radius ) var( --bamb-radius ); }

/* Buttons */
body.bamb-pagestyles .bamb-button-primary { background: var( --bamb-accent ); border-color: var( --bamb-accent-dark ); border-width: 1px; border-radius: 8px !important; font-weight: 600; padding: 6px 14px; transition: background 0.15s; }
body.bamb-pagestyles .bamb-button-primary:hover { background: var( --bamb-accent-dark ); border-color: var( --bamb-accent-dark ); }
body.bamb-pagestyles .bamb-button-primary:active { border-width: 1px; }
body.bamb-pagestyles .bamb-button-primary.bamb-disabled { background: #99d5cf; border-color: #99d5cf; }
body.bamb-pagestyles .bamb-button-primary.bamb-button-danger { background: #dc2626; border-color: #b91c1c; }
body.bamb-pagestyles .bamb-button-secondary { border-width: 1px; border-color: var( --bamb-line ); border-radius: 8px !important; color: var( --bamb-ink ) !important; padding: 6px 14px; }
body.bamb-pagestyles .bamb-button-secondary:hover { border-color: var( --bamb-accent ); color: var( --bamb-accent ) !important; }
body.bamb-pagestyles .bamb-button-secondary:active { border-width: 1px; }
body.bamb-pagestyles .page-title-action { border-color: var( --bamb-accent ); color: var( --bamb-accent ); border-radius: 8px; }
body.bamb-pagestyles .page-title-action:hover { background: var( --bamb-accent-soft ); border-color: var( --bamb-accent-dark ); color: var( --bamb-accent-dark ); }

/* Toggles */
body.bamb-pagestyles input.bamb-toggle-round + label { background-color: #d1d5db; }
body.bamb-pagestyles input.bamb-toggle-round:checked + label { background-color: var( --bamb-accent ); }

/* Tabs */
body.bamb-pagestyles .bamb-nav-tab-wrapper { border-bottom: 1px solid var( --bamb-line ); }
body.bamb-pagestyles .bamb-nav-tab a { color: var( --bamb-muted ); font-weight: 500; }
body.bamb-pagestyles .bamb-nav-tab a:hover { color: var( --bamb-accent ); }
body.bamb-pagestyles .bamb-nav-tab.bamb-active { border-bottom-color: var( --bamb-accent ); }
body.bamb-pagestyles .bamb-nav-tab.bamb-active a { color: var( --bamb-accent ); }

/* Inputs */
body.bamb-pagestyles input[type=text]:focus,
body.bamb-pagestyles input[type=email]:focus,
body.bamb-pagestyles input[type=url]:focus,
body.bamb-pagestyles input[type=number]:focus,
body.bamb-pagestyles select:focus,
body.bamb-pagestyles textarea:focus { border-color: var( --bamb-accent ) !important; box-shadow: 0 0 0 3px rgba( 15, 118, 110, 0.15 ) !important; outline: 0; }

/* List tables */
body.bamb-pagestyles .wp-list-table { border-radius: var( --bamb-radius ); overflow: hidden; border-color: var( --bamb-line ); }
body.bamb-pagestyles .wp-list-table thead th,
body.bamb-pagestyles .wp-list-table tfoot th { background: #f9fafb; color: var( --bamb-muted ); font-weight: 600; }
body.bamb-pagestyles .wp-list-table a { color: var( --bamb-accent ); }
body.bamb-pagestyles .subsubsub a.current { color: var( --bamb-accent ); }

/* Dashboard */
body.bamb-pagestyles .bamb-kpi-value { font-weight: 700; color: var( --bamb-ink ); }


/******************************************************************************************/
/* Settings: horizontal tabs, like WooCommerce > Settings
/******************************************************************************************/
body.bamb-page-settings [id="wpcontent"],
body.rtl.bamb-page-settings [id="wpcontent"] { background: none; }

body.bamb-page-settings .bamb-settings-layout { display: block; min-height: 0; margin: 0; }

body.bamb-page-settings .bamb-settings-sidebar { position: static; width: auto; display: block; align-self: auto; overflow: visible; background: transparent; box-shadow: none; }
body.bamb-page-settings .bamb-settings-sidebar-header { padding: 16px 0 12px; border: 0; }
body.bamb-page-settings .bamb-settings-sidebar-header h1 { font-size: 23px; font-weight: 400; color: var( --bamb-ink ); }

body.bamb-page-settings .bamb-settings-sidebar .bamb-nav-tab-wrapper { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 4px; max-height: none; overflow: visible; margin: 0; padding: 0; border-bottom: 1px solid #c3c4c7; }
body.bamb-page-settings .bamb-settings-sidebar .bamb-nav-tab { float: none; display: block; margin: 0 0 -1px 0; border: 1px solid #c3c4c7; border-bottom: 0; border-radius: 6px 6px 0 0; background: #e8eaed; transition: background 0.12s ease; }
body.bamb-page-settings .bamb-settings-sidebar .bamb-nav-tab:hover { background: #f1f3f5; }
body.bamb-page-settings .bamb-settings-sidebar .bamb-nav-tab.bamb-active { background: #f6f7f9; border-top: 2px solid var( --bamb-accent ); box-shadow: 0 1px 0 #f6f7f9; }
body.bamb-page-settings .bamb-settings-sidebar .bamb-nav-tab a { display: flex; align-items: center; gap: 7px; width: auto; padding: 9px 14px; font-size: 14px; font-weight: 600; line-height: 1.4; color: #50575e; white-space: nowrap; }
body.bamb-page-settings .bamb-settings-sidebar .bamb-nav-tab.bamb-active a { color: var( --bamb-accent ); }
body.bamb-page-settings .bamb-settings-sidebar .bamb-nav-tab:not(.bamb-active):hover a { color: var( --bamb-ink ); }
body.bamb-page-settings .bamb-settings-sidebar .bamb-nav-tab svg { width: 16px; height: 16px; }

body.bamb-page-settings .bamb-settings-content { padding: 20px 0 24px; }
body.bamb-page-settings .bamb-settings-content-title { display: none; }
body.bamb-page-settings .bamb-settings-content > .bamb-tab > .bamb-card:first-of-type { margin-top: 0; }

body.rtl.bamb-page-settings .bamb-settings-layout { margin: 0; }

@media screen and ( max-width: 782px ) {

	body.bamb-page-settings .bamb-settings-sidebar .bamb-nav-tab a { padding: 8px 10px; font-size: 13px; }
	body.bamb-page-settings .bamb-settings-content { padding: 16px 0; }

}

/* Commission in WooCommerce Emails: HTML editor */
.bamb-order-email-commission-text-wrapper .wp-editor-wrap { margin-top: 6px; }
.bamb-order-email-commission-text-wrapper textarea.wp-editor-area { min-height: 140px; resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.5; }
.bamb-order-email-commission-tags { margin-top: 8px !important; line-height: 2; }
.bamb-order-email-commission-tags code { font-size: 12px; }

/* Import affiliates */
.bamb-wrap-import-affiliates .bamb-card { max-width: 860px; }
.bamb-import-columns { margin: 12px 0 16px; }
.bamb-import-columns td, .bamb-import-columns th { padding: 6px 10px; }
.bamb-import-file { margin: 16px 0 !important; }
.bamb-import-messages { max-height: 260px; overflow: auto; margin: 0; padding-left: 18px; list-style: disc; }


/* Commission items card */
#bamb-card-commission-items table .bamb-column-item-commissionable-amount { width: 27.5%; }
#bamb-card-commission-items table .bamb-column-item-commission-amount { width: 27.5%; }
#bamb-card-commission-items table tbody td { padding-top: 15px; padding-bottom: 15px; }
