:root {
	--spib-primary: #2457d6;
	--spib-primary-dark: #1947bb;
	--spib-ink: #172033;
	--spib-muted: #68738a;
	--spib-line: #d8deea;
	--spib-soft: #f5f7fb;
	--spib-danger: #c9364f;
}

body.spib-standalone {
	margin: 0;
	background: #eef2f7;
	color: var(--spib-ink);
	font-family: Tahoma, Arial, sans-serif;
}

body.spib-menu-open {
	overflow: hidden;
}

.spib-app,
.spib-app * {
	box-sizing: border-box;
}

.spib-app {
	min-height: 100vh;
	font-family: Tahoma, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.7;
	color: var(--spib-ink);
}

.spib-topbar {
	position: sticky;
	top: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 14px 24px;
	background: rgba(255, 255, 255, .96);
	border-bottom: 1px solid var(--spib-line);
	box-shadow: 0 8px 24px rgba(32, 46, 77, .06);
	backdrop-filter: blur(12px);
}

.spib-topbar h1 {
	margin: 0;
	font-size: 20px;
	line-height: 1.4;
}

.spib-topbar p {
	margin: 2px 0 0;
	color: var(--spib-muted);
	font-size: 12px;
}

.spib-dom-anchor {
	display: none !important;
}

.spib-mobile-menu-button,
.spib-mobile-menu-close {
	appearance: none;
	border: 0;
	background: transparent;
	color: var(--spib-ink);
	font-family: inherit;
	cursor: pointer;
}

.spib-mobile-menu-button {
	display: none;
	align-items: center;
	gap: 8px;
	padding: 9px 12px;
	border: 1px solid var(--spib-line);
	border-radius: 10px;
	background: #fff;
	font-size: 12px;
	font-weight: 800;
}

.spib-hamburger {
	display: grid;
	gap: 3px;
	width: 19px;
}

.spib-hamburger i {
	display: block;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
}

.spib-mobile-drawer {
	display: none;
}

.spib-toolbar {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.spib-toolbar form {
	margin: 0;
}

.spib-button,
.spib-primary-button,
.spib-icon-button,
.spib-add-item {
	appearance: none;
	border: 1px solid var(--spib-line);
	border-radius: 9px;
	background: #fff;
	color: var(--spib-ink);
	cursor: pointer;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	padding: 11px 14px;
	text-decoration: none;
	transition: .18s ease;
}

.spib-button:hover,
.spib-icon-button:hover,
.spib-add-item:hover {
	border-color: #aeb9ce;
	background: #f8faff;
}

.spib-primary-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-color: var(--spib-primary);
	background: var(--spib-primary);
	color: #fff;
}

.spib-primary-button:hover {
	border-color: var(--spib-primary-dark);
	background: var(--spib-primary-dark);
	color: #fff;
}

.spib-primary-button[disabled] {
	opacity: .65;
	cursor: wait;
}

.spib-icon-button {
	color: var(--spib-danger);
}

.spib-workspace {
	display: grid;
	grid-template-columns: minmax(360px, 430px) minmax(0, 1fr);
	min-height: calc(100vh - 78px);
}

.spib-editor {
	position: relative;
	z-index: 2;
	padding: 18px;
	background: #fff;
	border-left: 1px solid var(--spib-line);
	box-shadow: -8px 0 24px rgba(32, 46, 77, .035);
}

.spib-editor-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 14px;
}

.spib-editor-head strong,
.spib-editor-head small {
	display: block;
}

.spib-editor-head small {
	color: var(--spib-muted);
	font-size: 11px;
}

.spib-text-button {
	padding: 4px;
	border: 0;
	background: transparent;
	font-family: inherit;
	cursor: pointer;
}

.spib-text-button.is-danger {
	color: var(--spib-danger);
}

.spib-panel {
	margin: 0 0 12px;
	border: 1px solid var(--spib-line);
	border-radius: 12px;
	background: #fff;
	overflow: hidden;
}

.spib-panel > summary {
	position: relative;
	padding: 13px 15px;
	background: var(--spib-soft);
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}

.spib-panel > summary::-webkit-details-marker {
	display: none;
}

.spib-panel > summary::before {
	content: '+';
	position: absolute;
	left: 14px;
	font-size: 18px;
	font-weight: 400;
}

.spib-panel[open] > summary::before {
	content: '−';
}

.spib-panel-count {
	display: inline-grid;
	place-items: center;
	min-width: 23px;
	height: 23px;
	margin-right: 7px;
	padding: 0 6px;
	border-radius: 999px;
	background: #e4eaff;
	color: var(--spib-primary-dark);
	font-size: 10px;
}

.spib-invoice-list {
	padding: 12px;
}

.spib-invoice-list-empty {
	display: grid;
	gap: 3px;
	padding: 20px 14px;
	border: 1px dashed var(--spib-line);
	border-radius: 10px;
	background: #fbfcfe;
	color: var(--spib-muted);
	text-align: center;
}

.spib-invoice-list-empty strong {
	color: var(--spib-ink);
	font-size: 12px;
}

.spib-invoice-list-empty span {
	font-size: 10px;
}

.spib-invoice-list-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 8px;
	padding: 10px;
	border: 1px solid var(--spib-line);
	border-radius: 10px;
	background: #fbfcfe;
}

.spib-invoice-list-main {
	display: grid;
	min-width: 0;
}

.spib-invoice-list-main strong,
.spib-invoice-list-main span,
.spib-invoice-list-main small {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.spib-invoice-list-main strong {
	font-size: 11px;
}

.spib-invoice-list-main span {
	color: #465168;
	font-size: 10px;
}

.spib-invoice-list-main small {
	color: var(--spib-muted);
	font-size: 9px;
}

.spib-invoice-list-actions {
	display: flex;
	flex: 0 0 auto;
	gap: 5px;
}

.spib-invoice-list-actions button {
	padding: 6px 8px;
	border: 1px solid #cbd4e4;
	border-radius: 7px;
	background: #fff;
	color: var(--spib-primary-dark);
	font-family: inherit;
	font-size: 9px;
	font-weight: 700;
	cursor: pointer;
}

.spib-invoice-list-actions button.is-danger {
	color: var(--spib-danger);
}

.spib-invoice-list-note {
	margin: 8px 2px 0;
	color: var(--spib-muted);
	font-size: 9px;
	text-align: center;
}

.spib-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 11px;
	padding: 14px;
}

.spib-form-grid label,
.spib-item-field {
	display: block;
	min-width: 0;
}

.spib-form-grid label.is-wide {
	grid-column: 1 / -1;
}

.spib-form-grid label > span,
.spib-item-field > span {
	display: block;
	margin-bottom: 4px;
	color: #3e4960;
	font-size: 11px;
	font-weight: 700;
}

.spib-form-grid small {
	display: block;
	margin-top: 3px;
	color: var(--spib-muted);
	font-size: 10px;
}

.spib-form-grid input,
.spib-form-grid select,
.spib-form-grid textarea,
.spib-item-field input,
.spib-item-field textarea {
	display: block;
	width: 100%;
	min-height: 39px;
	margin: 0;
	padding: 8px 10px;
	border: 1px solid #cfd6e4;
	border-radius: 8px;
	outline: 0;
	background: #fff;
	color: var(--spib-ink);
	font-family: inherit;
	font-size: 12px;
	line-height: 1.6;
	box-shadow: none;
}

.spib-form-grid textarea,
.spib-item-field textarea {
	resize: vertical;
}

.spib-form-grid input:focus,
.spib-form-grid select:focus,
.spib-form-grid textarea:focus,
.spib-item-field input:focus,
.spib-item-field textarea:focus {
	border-color: var(--spib-primary);
	box-shadow: 0 0 0 3px rgba(36, 87, 214, .1);
}

.spib-form-grid input[type="file"] {
	padding: 5px;
	font-size: 10px;
}

.spib-items-editor {
	padding: 12px;
}

.spib-item-card {
	position: relative;
	margin-bottom: 10px;
	padding: 12px;
	border: 1px solid var(--spib-line);
	border-radius: 10px;
	background: #fbfcfe;
}

.spib-item-card:last-child {
	margin-bottom: 0;
}

.spib-item-card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 9px;
}

.spib-item-card-head strong {
	font-size: 12px;
}

.spib-remove-item {
	padding: 3px 6px;
	border: 0;
	background: transparent;
	color: var(--spib-danger);
	font-family: inherit;
	font-size: 11px;
	cursor: pointer;
}

.spib-item-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 9px;
}

.spib-item-field.is-wide {
	grid-column: 1 / -1;
}

.spib-item-subtotal {
	grid-column: 1 / -1;
	display: flex;
	justify-content: space-between;
	padding-top: 7px;
	border-top: 1px dashed var(--spib-line);
	color: var(--spib-muted);
	font-size: 11px;
}

.spib-add-item {
	width: calc(100% - 24px);
	margin: 0 12px 12px;
	border-style: dashed;
	color: var(--spib-primary);
}

.spib-preview-wrap {
	min-width: 0;
	padding: 22px;
	overflow: auto;
	background-color: #e9edf4;
	background-image: radial-gradient(#d2d8e4 1px, transparent 1px);
	background-size: 18px 18px;
}

.spib-preview-label {
	width: 1120px;
	max-width: 100%;
	margin: 0 auto 8px;
	color: #667188;
	font-size: 11px;
}

.spib-invoice-paper {
	width: 1120px;
	min-height: 792px;
	margin: 0 auto;
	padding: 18px;
	background: #fff;
	color: #111;
	font-family: Tahoma, Arial, sans-serif;
	font-size: 10.5px;
	line-height: 1.55;
	box-shadow: 0 14px 38px rgba(35, 49, 76, .18);
}

.spib-invoice-brand {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 52px;
	padding-bottom: 8px;
}

.spib-invoice-brand img {
	display: block;
	max-width: 240px;
	max-height: 48px;
	object-fit: contain;
}

.spib-brand-placeholder {
	font-size: 21px;
	font-weight: 900;
}

.spib-invoice-table {
	width: 100%;
	border-collapse: collapse;
	border-spacing: 0;
	table-layout: fixed;
}

.spib-invoice-table th,
.spib-invoice-table td {
	padding: 5px 7px;
	border: 1px solid #111;
	vertical-align: middle;
	word-wrap: break-word;
}

.spib-meta-table td,
.spib-meta-table th {
	height: 30px;
}

.spib-meta-table td {
	width: 33.333%;
}

.spib-section-title {
	background: #f4f4f4;
	font-size: 11px;
	font-weight: 900;
	text-align: center;
}

.spib-doc-title {
	width: 31%;
	font-size: 13px;
	text-align: right;
}

.spib-date-cell {
	width: 22%;
	text-align: center;
}

.spib-items-table {
	margin-top: -1px;
}

.spib-items-table th {
	font-weight: 700;
	text-align: center;
}

.spib-items-table thead tr:nth-child(2) th {
	height: 62px;
	font-size: 9.5px;
	line-height: 1.45;
}

.spib-items-table small {
	font-size: 8.5px;
	font-weight: 400;
}

.spib-items-table tbody td {
	height: 48px;
	text-align: center;
}

.spib-items-table .col-row {
	width: 4%;
}

.spib-items-table .col-desc {
	width: 35%;
}

.spib-items-table tbody td:nth-child(2) {
	text-align: right;
	white-space: pre-line;
}

.spib-total-row th,
.spib-total-row td {
	background: #f6f6f6;
	font-weight: 900;
	text-align: center;
}

.spib-bottom-table {
	margin-top: -1px;
}

.spib-bottom-table td {
	height: 48px;
}

.spib-notes-cell {
	height: 34px !important;
}

.spib-payable,
.spib-terms {
	width: 33%;
}

.spib-payable b {
	display: inline-block;
	margin-right: 10px;
	font-size: 13px;
}

.spib-bank {
	direction: rtl;
	font-size: 10px;
	text-align: center;
}

.spib-bank [dir="ltr"] {
	display: inline-block;
	direction: ltr;
}

.spib-sign-row td {
	height: 82px;
	vertical-align: top;
}

.spib-sign-box {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	height: 58px;
	padding-top: 4px;
	text-align: center;
}

.spib-sign-box img {
	position: absolute;
	top: 1px;
	max-width: 135px;
	max-height: 56px;
	object-fit: contain;
	opacity: .9;
}

.spib-sign-box span {
	font-size: 9px;
}

.spib-toast {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 999;
	max-width: 360px;
	padding: 11px 15px;
	border-radius: 9px;
	background: #172033;
	color: #fff;
	font-size: 12px;
	opacity: 0;
	transform: translateY(10px);
	pointer-events: none;
	transition: .22s ease;
}

.spib-toast.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.spib-access-screen {
	display: grid;
	place-items: center;
	min-height: 100vh;
	padding: 24px;
	background:
		radial-gradient(circle at 85% 15%, rgba(74, 113, 226, .2), transparent 32%),
		linear-gradient(145deg, #f7f9fd, #e9eef8);
}

.spib-access-card {
	width: min(420px, 100%);
	padding: 34px;
	border: 1px solid rgba(199, 209, 226, .8);
	border-radius: 20px;
	background: rgba(255, 255, 255, .94);
	box-shadow: 0 24px 70px rgba(35, 49, 76, .14);
	text-align: center;
}

.spib-lock-icon {
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	margin: 0 auto 18px;
	border-radius: 17px;
	background: #e9efff;
	color: var(--spib-primary);
	font-size: 29px;
	font-weight: 900;
}

.spib-access-card h1 {
	margin: 0 0 8px;
	font-size: 23px;
}

.spib-access-card p {
	margin: 0 0 22px;
	color: var(--spib-muted);
}

.spib-access-card input[type="password"] {
	display: block;
	width: 100%;
	height: 48px;
	margin: 0 0 12px;
	padding: 0 14px;
	border: 1px solid #cbd4e4;
	border-radius: 10px;
	outline: 0;
	font-family: inherit;
	font-size: 14px;
	text-align: center;
}

.spib-access-card input[type="password"]:focus {
	border-color: var(--spib-primary);
	box-shadow: 0 0 0 4px rgba(36, 87, 214, .1);
}

.spib-access-card .spib-primary-button {
	width: 100%;
	height: 48px;
}

.spib-access-error {
	margin: 0 0 12px;
	padding: 9px 12px;
	border-radius: 8px;
	background: #fff0f2;
	color: #b0263e;
	font-size: 12px;
}

@media (max-width: 980px) {
	.spib-topbar {
		position: sticky;
		top: 0;
		z-index: 500;
		align-items: center;
		flex-direction: row;
		padding: 11px 14px;
	}

	.spib-topbar-title {
		min-width: 0;
	}

	.spib-topbar h1 {
		font-size: 17px;
	}

	.spib-topbar p {
		display: none;
	}

	.spib-mobile-menu-button {
		display: inline-flex;
		margin-right: auto;
	}

	.spib-mobile-drawer {
		position: fixed;
		inset: 0;
		z-index: 1000;
		display: flex;
		flex-direction: column;
		width: 100%;
		height: 100vh;
		height: 100dvh;
		background: #fff;
		box-shadow: -18px 0 60px rgba(23, 32, 51, .2);
		transform: translateX(100%);
		visibility: hidden;
		transition: transform .28s ease, visibility 0s linear .28s;
	}

	.spib-mobile-drawer.is-open {
		transform: translateX(0);
		visibility: visible;
		transition-delay: 0s;
	}

	.spib-mobile-drawer-head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		flex: 0 0 auto;
		min-height: 66px;
		padding: 11px 15px;
		border-bottom: 1px solid var(--spib-line);
		background: #fff;
	}

	.spib-mobile-drawer-head strong,
	.spib-mobile-drawer-head small {
		display: block;
	}

	.spib-mobile-drawer-head small {
		color: var(--spib-muted);
		font-size: 10px;
	}

	.spib-mobile-menu-close {
		display: grid;
		place-items: center;
		width: 42px;
		height: 42px;
		border: 1px solid var(--spib-line);
		border-radius: 11px;
		font-size: 28px;
		line-height: 1;
	}

	.spib-mobile-toolbar-slot {
		flex: 0 0 auto;
		padding: 11px 13px;
		border-bottom: 1px solid var(--spib-line);
		background: var(--spib-soft);
	}

	.spib-mobile-toolbar-slot .spib-toolbar {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		width: 100%;
		gap: 8px;
	}

	.spib-mobile-toolbar-slot .spib-toolbar > button,
	.spib-mobile-toolbar-slot .spib-toolbar > form,
	.spib-mobile-toolbar-slot .spib-toolbar > form button {
		width: 100%;
	}

	.spib-mobile-editor-slot {
		flex: 1 1 auto;
		min-height: 0;
		overflow-y: auto;
		overscroll-behavior: contain;
		background: #fff;
	}

	.spib-mobile-editor-slot .spib-editor {
		min-height: 100%;
		padding: 14px;
		border: 0;
		box-shadow: none;
	}

	.spib-workspace {
		display: block;
		min-height: calc(100vh - 65px);
	}

	.spib-workspace > .spib-editor {
		display: none;
	}

	.spib-preview-wrap {
		min-height: calc(100vh - 65px);
		padding: 15px;
	}
}

@media (max-width: 560px) {
	.spib-topbar {
		padding: 13px;
	}

	.spib-mobile-menu-button {
		padding: 8px 10px;
	}

	.spib-mobile-editor-slot .spib-editor {
		padding: 12px;
	}

	.spib-form-grid {
		grid-template-columns: 1fr;
	}

	.spib-form-grid label.is-wide {
		grid-column: auto;
	}

	.spib-invoice-list-item {
		align-items: stretch;
		flex-direction: column;
	}

	.spib-invoice-list-actions button {
		flex: 1;
	}

	.spib-access-card {
		padding: 27px 20px;
	}
}

/* Direct-on-invoice editor (v1.2.4). */
.spib-brand-placeholder {
	display: none !important;
}

.spib-workspace {
	grid-template-columns: 310px minmax(0, 1fr);
}

.spib-inline-help {
	margin: 0 0 14px;
	padding: 13px;
	border: 1px solid #cbd8f2;
	border-radius: 12px;
	background: #f3f7ff;
}

.spib-inline-help strong {
	display: block;
	margin-bottom: 5px;
	color: var(--spib-primary-dark);
}

.spib-inline-help p {
	margin: 5px 0 0;
	color: #506079;
	font-size: 10.5px;
}

.spib-preview-button {
	border-color: #8da6df;
	background: #eef3ff;
	color: #173f9f;
}

.spib-invoice-paper {
	padding: 20px;
}

.spib-invoice-brand {
	position: relative;
	flex-direction: column;
	height: auto;
	min-height: 112px;
	padding: 2px 0 10px;
}

.spib-logo-stage {
	position: relative;
	display: grid;
	place-items: center;
	min-width: 180px;
	min-height: 70px;
}

.spib-invoice-brand img {
	max-width: 260px;
	max-height: 70px;
}

.spib-brand-placeholder {
	display: grid;
	place-items: center;
	width: 132px;
	height: 55px;
	border: 1px dashed #8ba4d8;
	border-radius: 8px;
	background: #f5f8ff;
	color: #6b7da4;
	font-size: 13px;
	font-weight: 700;
}

.spib-image-edit,
.spib-sign-edit {
	appearance: none;
	border: 1px solid #9bb1df;
	border-radius: 6px;
	background: #fff;
	color: #2457d6;
	font-family: inherit;
	font-size: 8.5px;
	font-weight: 700;
	cursor: pointer;
}

.spib-image-edit {
	position: absolute;
	right: calc(100% + 8px);
	top: 23px;
	width: max-content;
	padding: 5px 7px;
}

.spib-brand-name {
	min-width: 180px;
	font-size: 16px;
	font-weight: 900;
	text-align: center;
}

.spib-inline-edit {
	display: inline-block;
	min-width: 30px;
	min-height: 1.35em;
	padding: 0 3px;
	border-bottom: 1px dashed #4b78dc;
	border-radius: 2px;
	background: rgba(225, 234, 255, .34);
	vertical-align: baseline;
	white-space: pre-wrap;
	cursor: text;
}

.spib-doc-title.spib-inline-edit {
	display: table-cell;
	background: rgba(225, 234, 255, .34);
}

.spib-inline-edit:empty::before {
	content: attr(data-placeholder);
	color: #8691a6;
	font-weight: 400;
	opacity: .82;
}

.spib-inline-edit[contenteditable="true"]:hover {
	background: #edf3ff;
}

.spib-inline-edit[contenteditable="true"]:focus {
	border-bottom-color: #174ec6;
	outline: 2px solid rgba(36, 87, 214, .18);
	background: #fff;
}

.spib-inline-multiline {
	min-width: 80px;
	white-space: pre-wrap;
}

.spib-number-edit {
	min-width: 36px;
	text-align: center;
}

.spib-invoice-section {
	position: relative;
	margin-top: 9px;
	transition: opacity .15s ease, transform .15s ease;
}

.spib-invoice-section.is-dragging {
	opacity: .45;
	transform: scale(.995);
}

.spib-section-controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-height: 28px;
	padding: 3px 6px;
	border: 1px solid #cbd8f2;
	border-bottom: 0;
	border-radius: 6px 6px 0 0;
	background: #eef3ff;
	color: #244675;
	font-size: 9px;
	font-weight: 700;
}

.spib-drag-handle {
	cursor: grab;
	user-select: none;
}

.spib-drag-handle:active {
	cursor: grabbing;
}

.spib-section-controls button,
.spib-items-inline-tools button {
	appearance: none;
	border: 1px solid #a8bce5;
	border-radius: 5px;
	background: #fff;
	color: #1b4db6;
	font-family: inherit;
	font-size: 10px;
	font-weight: 800;
	cursor: pointer;
}

.spib-section-controls button {
	width: 25px;
	height: 21px;
	margin-right: 4px;
	padding: 0;
}

.spib-items-inline-tools {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 5px 7px;
	border-right: 1px solid #111;
	border-left: 1px solid #111;
	background: #fafcff;
}

.spib-items-inline-tools button {
	padding: 5px 8px;
}

.spib-items-inline-tools small {
	color: #637089;
	font-size: 8.5px;
}

.spib-items-table tbody td {
	position: relative;
}

.spib-items-table tbody td:nth-child(2) .spib-inline-edit {
	display: block;
	width: 100%;
	min-height: 30px;
	text-align: right;
}

.spib-row-remove {
	position: absolute;
	top: 2px;
	left: 2px;
	display: grid;
	place-items: center;
	width: 16px;
	height: 16px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff0f2;
	color: #c9364f;
	font-family: inherit;
	font-size: 12px;
	font-weight: 900;
	cursor: pointer;
}

.spib-tax-editor {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 2px;
	margin-bottom: 2px;
}

.spib-tax-editor small {
	font-size: 8px;
}

.spib-tax-editor + b {
	display: block;
	font-size: 9px;
}

.spib-sign-edit {
	position: absolute;
	left: 4px;
	bottom: 3px;
	padding: 4px 6px;
}

.spib-sign-box.spib-seller-marks {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 5px;
	height: 68px;
}

.spib-mark-slot {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	min-width: 0;
	height: 68px;
	padding: 3px 2px;
	border: 1px dashed #b7c5df;
	border-radius: 5px;
	text-align: center;
}

.spib-mark-slot img {
	max-width: 105px;
	max-height: 48px;
}

.spib-mark-slot .spib-sign-edit {
	left: 3px;
	bottom: 3px;
	font-size: 7.5px;
}

.spib-image-remove {
	position: absolute;
	right: 3px;
	bottom: 3px;
	padding: 3px 5px;
	border: 1px solid #efb5bf;
	border-radius: 5px;
	background: #fff4f5;
	color: #b92740;
	font-family: inherit;
	font-size: 7.5px;
	font-weight: 700;
	cursor: pointer;
}

.spib-bank-owner-line,
.spib-bank-number-line {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	min-height: 20px;
}

.spib-bank-number-line {
	flex-wrap: wrap;
	padding-top: 2px;
}

.spib-bank-number-line + .spib-bank-number-line {
	margin-top: 2px;
	border-top: 1px dotted #c4c4c4;
}

.spib-bank-number-line > strong {
	font-size: 8.5px;
}

.spib-bank-separator {
	color: #777;
}

.spib-card-number {
	min-width: 110px;
	direction: ltr;
	unicode-bidi: embed;
	letter-spacing: .25px;
}

.spib-mark-slot > span {
	font-size: 8px;
}

.spib-app.is-preview-mode .spib-editor {
	display: none;
}

.spib-app.is-preview-mode .spib-workspace {
	grid-template-columns: minmax(0, 1fr);
}

.spib-app.is-preview-mode .spib-edit-only {
	display: none !important;
}

.spib-app.is-preview-mode .spib-invoice-section {
	margin-top: -1px;
}

.spib-app.is-preview-mode .spib-inline-edit {
	border-bottom-color: transparent;
	background: transparent;
	cursor: default;
}

.spib-app.is-preview-mode .spib-inline-edit:empty::before {
	content: '';
}

@media print {
	@page {
		size: A4 landscape;
		margin: 5mm;
	}

	html,
	body,
	body.spib-standalone,
	.spib-app,
	.spib-workspace,
	.spib-preview-wrap {
		width: auto !important;
		min-width: 0 !important;
		height: auto !important;
		min-height: 0 !important;
		margin: 0 !important;
		padding: 0 !important;
		background: #fff !important;
		overflow: visible !important;
	}

	.spib-no-print,
	.spib-editor,
	.spib-edit-only {
		display: none !important;
	}

	.spib-invoice-section {
		margin-top: -1px !important;
	}

	.spib-inline-edit {
		border: 0 !important;
		outline: 0 !important;
		background: transparent !important;
	}

	.spib-inline-edit:empty::before {
		content: '' !important;
	}

	.spib-invoice-paper {
		width: 287mm !important;
		min-height: 197mm !important;
		margin: 0 !important;
		padding: 4mm !important;
		box-shadow: none !important;
		page-break-inside: avoid;
	}
}
