:root {
	--app-bg-1: #f8fafc;
	--app-bg-2: #eef2f7;
	--app-bg-3: #f8fafc;
	--focus-ring: #f59e0b;
	--editor-total-col-width: 10.5rem;
	--editor-actions-col-width: 4.5rem;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
}

.app-bg {
	background:
		radial-gradient(circle at 10% 10%, rgba(148, 163, 184, 0.14), transparent 38%),
		radial-gradient(circle at 90% 0%, rgba(148, 163, 184, 0.12), transparent 34%),
		linear-gradient(160deg, var(--app-bg-1), var(--app-bg-2) 42%, var(--app-bg-3));
}

.section-title {
	font-family: 'Poppins', ui-sans-serif, system-ui;
	font-size: 1.05rem;
	font-weight: 700;
	color: #0f172a;
}

.field-block {
	display: grid;
	gap: 0.45rem;
}

.field-block > span {
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: #475569;
}

#licensePickerCatalogMeta {
	line-height: 1.35;
}

#licensePickerRefreshBtn {
	min-height: 2.25rem;
	white-space: nowrap;
}

.license-picker-search-wrap {
	position: relative;
}

.license-picker-search-toggle {
	position: absolute;
	top: 50%;
	right: 0.35rem;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.1rem;
	height: 2.1rem;
	border: 1px solid transparent;
	border-radius: 0.6rem;
	background: transparent;
	color: #334155;
	font-size: 1rem;
	line-height: 1;
	cursor: pointer;
}

.license-picker-search-toggle:hover {
	background: rgba(148, 163, 184, 0.12);
}

.license-picker-search-toggle:focus {
	outline: none;
	border-color: var(--focus-ring);
	box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.license-picker-product-options {
	position: absolute;
	top: calc(100% + 0.3rem);
	left: 0;
	right: 0;
	z-index: 30;
	max-height: 14rem;
	overflow-y: auto;
	border-radius: 0.85rem;
	border: 1px solid #cbd5e1;
	background: #ffffff;
	box-shadow:
		0 14px 32px rgba(15, 23, 42, 0.16),
		0 2px 6px rgba(15, 23, 42, 0.08);
	padding: 0.35rem;
}

.license-picker-product-option {
	display: block;
	width: 100%;
	text-align: left;
	border: 1px solid transparent;
	border-radius: 0.6rem;
	background: transparent;
	color: #0f172a;
	font-size: 0.92rem;
	line-height: 1.25;
	padding: 0.55rem 0.65rem;
	cursor: pointer;
}

.license-picker-product-option:hover {
	background: #f8fafc;
	border-color: #e2e8f0;
}

.license-picker-product-option.is-selected {
	background: #eff6ff;
	border-color: #bfdbfe;
	color: #1e3a8a;
}

.input-base {
	width: 100%;
	border-radius: 0.75rem;
	border: 1px solid #cbd5e1;
	background: #ffffff;
	min-height: 3rem;
	padding: 0.62rem 0.78rem;
	font-size: 0.93rem;
	line-height: 1.2;
	color: #0f172a;
	transition:
		border-color 0.18s ease,
		box-shadow 0.18s ease;
}

.input-base:focus {
	outline: none;
	border-color: var(--focus-ring);
	box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 3rem;
	min-height: 3rem;
	border-radius: 0.85rem;
	border: 1px solid #b45309;
	background: linear-gradient(120deg, #f59e0b, #d97706);
	color: #ffffff;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.02em;
	padding: 0.76rem 1rem;
	transition:
		transform 0.15s ease,
		box-shadow 0.15s ease;
}

.btn-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 7px 18px rgba(180, 83, 9, 0.25);
}

.btn-primary:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.3);
}

.btn-entra {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 3rem;
	min-height: 3rem;
	border-radius: 0.85rem;
	border: 1px solid #106ebe;
	background: linear-gradient(120deg, #0f6cbd, #115ea3);
	color: #ffffff;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.02em;
	padding: 0.76rem 1rem;
	transition:
		transform 0.15s ease,
		box-shadow 0.15s ease,
		background-color 0.15s ease;
}

.btn-entra:hover {
	transform: translateY(-1px);
	box-shadow: 0 7px 18px rgba(15, 108, 189, 0.28);
}

.btn-entra:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(15, 108, 189, 0.22);
}

.btn-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 3rem;
	min-height: 3rem;
	border-radius: 0.75rem;
	border: 1px solid #cbd5e1;
	background: #f8fafc;
	color: #0f172a;
	font-size: 0.86rem;
	font-weight: 700;
	line-height: 1.2;
	padding: 0.52rem 0.82rem;
	transition: background-color 0.15s ease;
}

.btn-secondary:hover {
	background: #e2e8f0;
}

.btn-secondary.is-active {
	border-color: #b45309;
	background: #fde68a;
	color: #78350f;
}

.btn-secondary.text-xs {
	height: auto;
	min-height: 0;
	padding-top: 0.35rem;
	padding-bottom: 0.35rem;
}

.btn-success {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 3rem;
	min-height: 3rem;
	border-radius: 0.75rem;
	border: 1px solid #86efac;
	background: #f0fdf4;
	color: #166534;
	font-size: 0.86rem;
	font-weight: 700;
	line-height: 1.2;
	padding: 0.52rem 0.82rem;
	transition: background-color 0.15s ease;
}

.btn-success:hover {
	background: #dcfce7;
}

.btn-success:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.16);
}

.btn-warning {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 3rem;
	min-height: 3rem;
	border-radius: 0.75rem;
	border: 1px solid #f59e0b;
	background: #fffbeb;
	color: #b45309;
	font-size: 0.86rem;
	font-weight: 700;
	line-height: 1.2;
	padding: 0.52rem 0.82rem;
	transition: background-color 0.15s ease;
}

.btn-warning:hover {
	background: #fde68a;
}

.btn-warning:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.16);
}

.item-input {
	width: 100%;
	border-radius: 0.55rem;
	border: 1px solid #cbd5e1;
	padding: 0.4rem 0.45rem;
	font-size: 0.85rem;
}

.item-input:focus {
	outline: none;
	border-color: var(--focus-ring);
	box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.18);
}

.item-input.is-readonly {
	background: #f8fafc;
	color: #475569;
	cursor: not-allowed;
}

.remove-item-btn {
	border-radius: 0.55rem;
	border: 1px solid #fecaca;
	background: #fef2f2;
	color: #b91c1c;
	font-size: 0.78rem;
	font-weight: 700;
	padding: 0.34rem 0.52rem;
}

.remove-item-btn:hover {
	background: #fee2e2;
}

#appShell > header #logoutBtn.remove-item-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 3rem;
	min-height: 3rem;
	border-radius: 0.75rem;
	border-color: #fca5a5;
	font-size: 0.86rem;
	padding: 0.52rem 0.82rem;
	line-height: 1.2;
}

.clients-generate-action {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
}

.clients-generate-offer-btn {
	min-width: 10.75rem;
}

.clients-generate-offer-btn.is-loading {
	opacity: 0.8;
}

.clients-generate-history-indicator {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
	width: 2rem;
	height: 2rem;
	border-radius: 0.65rem;
	border: 1px solid #cbd5e1;
	background: #f8fafc;
	color: #475569;
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	user-select: none;
	transition:
		background-color 0.15s ease,
		border-color 0.15s ease,
		color 0.15s ease;
}

.clients-generate-history-indicator.is-generated {
	border-color: #fecaca;
	background: #fef2f2;
	color: #b91c1c;
}

.clients-generate-history-indicator:hover {
	background: #eef2f7;
	border-color: #94a3b8;
	color: #334155;
}

.clients-generate-history-indicator.is-generated:hover {
	background: #fee2e2;
	border-color: #fca5a5;
	color: #991b1b;
}

.clients-generate-history-indicator:focus,
.clients-generate-history-indicator:focus-visible,
.clients-renewals-toggle-btn:focus,
.clients-renewals-toggle-btn:focus-visible {
	outline: none;
	border-color: #f59e0b;
	box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.clients-generate-history-tooltip {
	position: absolute;
	right: 50%;
	bottom: calc(100% + 0.45rem);
	transform: translateX(50%);
	min-width: 14rem;
	max-width: 20rem;
	padding: 0.45rem 0.6rem;
	border-radius: 0.6rem;
	border: 1px solid #cbd5e1;
	background: #0f172a;
	color: #f8fafc;
	font-size: 0.72rem;
	font-weight: 500;
	line-height: 1.35;
	opacity: 0;
	pointer-events: none;
	visibility: hidden;
	transition: opacity 120ms ease;
	white-space: normal;
	z-index: 20;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.24);
}

.clients-generate-history-tooltip::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 100%;
	transform: translateX(-50%);
	border-width: 6px;
	border-style: solid;
	border-color: #0f172a transparent transparent transparent;
}

.clients-generate-history-indicator:hover .clients-generate-history-tooltip,
.clients-generate-history-indicator:focus .clients-generate-history-tooltip,
.clients-generate-history-indicator:focus-visible .clients-generate-history-tooltip {
	opacity: 1;
	visibility: visible;
}

.clients-renewals-toggle-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: 0.65rem;
	border: 1px solid #cbd5e1;
	background: #f8fafc;
	color: #475569;
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1;
	padding: 0;
	cursor: pointer;
	transition:
		transform 120ms ease,
		background-color 120ms ease,
		border-color 120ms ease,
		color 120ms ease;
}

.clients-renewals-toggle-btn:hover {
	background: #f1f5f9;
	border-color: #94a3b8;
}

.clients-renewals-toggle-btn.is-open {
	transform: rotate(180deg);
}

.clients-renewals-panel {
	margin-top: 0.75rem;
	border-top: 1px solid #e2e8f0;
	padding-top: 0.75rem;
}

.clients-renewals-panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
}

.clients-renewals-panel-title {
	font-size: 0.78rem;
	font-weight: 700;
	color: #334155;
}

.clients-renewals-panel-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	padding: 0.1rem 0.45rem;
	border-radius: 9999px;
	background: #eef2ff;
	color: #3730a3;
	font-size: 0.72rem;
	font-weight: 700;
}

.clients-renewals-list {
	display: grid;
	gap: 0.4rem;
	max-height: 14rem;
	overflow: auto;
	padding-right: 0.1rem;
}

.clients-renewal-item {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: start;
	gap: 0.5rem;
	padding: 0.45rem 0.55rem;
	border-radius: 0.65rem;
	border: 1px solid #e2e8f0;
	background: #f8fafc;
}

.clients-renewal-item input[type="checkbox"] {
	margin-top: 0.14rem;
}

.clients-renewal-item-name {
	font-size: 0.78rem;
	font-weight: 600;
	color: #0f172a;
	line-height: 1.25;
}

.clients-renewal-item-meta {
	margin-top: 0.15rem;
	font-size: 0.68rem;
	color: #64748b;
	line-height: 1.3;
}

.clients-renewals-empty {
	padding: 0.65rem 0.75rem;
	border-radius: 0.65rem;
	border: 1px dashed #cbd5e1;
	background: #f8fafc;
	font-size: 0.75rem;
	color: #64748b;
}

.clients-renewals-empty.is-error {
	border-color: #fecaca;
	background: #fef2f2;
	color: #b91c1c;
}

.admin-user-card {
	display: grid;
	gap: 0.75rem;
	border: 1px solid #e2e8f0;
	border-radius: 0.85rem;
	background: #ffffff;
	padding: 0.85rem;
}

.admin-user-card-head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0.75rem;
	align-items: end;
}

.admin-user-role-wrap {
	display: grid;
	gap: 0.35rem;
	min-width: 9rem;
}

.admin-role-select {
	min-height: 2.5rem;
	height: 2.5rem;
	padding-top: 0.35rem;
	padding-bottom: 0.35rem;
}

.admin-user-modules {
	display: grid;
	gap: 0.5rem;
}

.admin-user-modules-title {
	font-size: 0.76rem;
	font-weight: 700;
	color: #475569;
}

.admin-user-modules-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.admin-module-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	border: 1px solid #cbd5e1;
	border-radius: 9999px;
	background: #f8fafc;
	padding: 0.25rem 0.55rem;
	font-size: 0.75rem;
	color: #334155;
}

.admin-stats-range-btn {
	border: 0;
	background: transparent;
	color: #334155;
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1;
	padding: 0.45rem 0.65rem;
	border-radius: 0.5rem;
	min-height: 2rem;
	cursor: pointer;
}

.admin-stats-range-btn:hover {
	background: #f1f5f9;
}

.admin-stats-range-btn.is-active {
	background: #fef3c7;
	color: #92400e;
}

.admin-stats-range-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Admin tabs */
#adminTabBar {
	display: flex;
	gap: 4px;
	margin-top: 16px;
	border-bottom: 2px solid #e2e8f0;
}

.admin-tab-btn {
	border: 0;
	background: transparent;
	color: #334155;
	font-size: 0.85rem;
	font-weight: 600;
	padding: 8px 14px;
	cursor: pointer;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	border-radius: 4px 4px 0 0;
	transition: background 0.15s;
}

.admin-tab-btn:hover {
	background: #f1f5f9;
}

.admin-tab-btn.is-active {
	color: #92400e;
	border-bottom-color: #b45309;
	background: #fef3c7;
}

.admin-stats-card {
	border: 1px solid #e2e8f0;
	border-radius: 0.75rem;
	background: #ffffff;
	padding: 0.6rem 0.75rem;
	display: grid;
	gap: 0.25rem;
}

.admin-stats-card-label {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	color: #64748b;
	text-transform: uppercase;
}

.admin-stats-card-value {
	font-size: 1.2rem;
	font-weight: 800;
	line-height: 1.15;
	color: #0f172a;
}

.admin-module-chip input[type='checkbox'] {
	width: 0.85rem;
	height: 0.85rem;
	accent-color: #f59e0b;
}

.admin-user-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.6rem;
}

.invoices-module {
	border: 1px solid #e2e8f0;
	border-radius: 1rem;
	background:
		radial-gradient(circle at 10% 10%, rgba(148, 163, 184, 0.12), transparent 35%),
		radial-gradient(circle at 90% 0%, rgba(148, 163, 184, 0.08), transparent 30%),
		#f8fafc;
	padding: 0.8rem;
}

.invoices-module * {
	box-sizing: border-box;
}

.invoices-module .app {
	display: grid;
	gap: 0.65rem;
}

.invoices-module .title {
	display: flex;
	align-items: center;
	gap: 0.62rem;
	color: #0f172a;
	font-family: 'Poppins', ui-sans-serif, system-ui;
	font-size: 1.02rem;
	font-weight: 700;
}

.invoices-module .title .dot {
	width: 0.56rem;
	height: 0.56rem;
	border-radius: 999px;
	background: #f59e0b;
	box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2);
}

.invoices-module .sub {
	color: #64748b;
	font-size: 0.8rem;
}

.invoices-module .layout {
	display: grid;
	grid-template-columns: minmax(20rem, 33rem) minmax(0, 1fr);
	gap: 0.75rem;
	align-items: start;
}

.invoices-module .panel {
	position: sticky;
	top: 0.75rem;
	border: 1px solid #e2e8f0;
	border-radius: 0.95rem;
	background: #ffffff;
	padding: 0.95rem;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.invoices-module .panel h2 {
	margin: 0.3rem 0 0.55rem;
	color: #0f172a;
	font-family: 'Poppins', ui-sans-serif, system-ui;
	font-size: 0.96rem;
	font-weight: 700;
}

.invoices-module .section {
	margin-top: 0.75rem;
	padding-top: 0.75rem;
	border-top: 1px dashed #cbd5e1;
}

.invoices-module .grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.6rem;
}

.invoices-module label {
	display: block;
	margin-bottom: 0.33rem;
	color: #475569;
	font-size: 0.74rem;
	font-weight: 700;
}

.invoices-module .muted {
	color: #64748b;
	font-size: 0.76rem;
}

.invoices-module input[type='text'],
.invoices-module input[type='number'],
.invoices-module input[type='date'],
.invoices-module select,
.invoices-module textarea {
	width: 100%;
	min-height: 2.45rem;
	border: 1px solid #cbd5e1;
	border-radius: 0.72rem;
	background: #ffffff;
	color: #0f172a;
	padding: 0.48rem 0.68rem;
	font-size: 0.86rem;
	line-height: 1.2;
	transition:
		border-color 0.16s ease,
		box-shadow 0.16s ease;
}

.invoices-module input:focus,
.invoices-module select:focus,
.invoices-module textarea:focus {
	outline: none;
	border-color: #f59e0b;
	box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.invoices-module input[disabled],
.invoices-module select[disabled] {
	opacity: 0.72;
	cursor: not-allowed;
}

.invoices-module .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.4rem;
	border: 1px solid #b45309;
	border-radius: 0.72rem;
	padding: 0.45rem 0.75rem;
	background: linear-gradient(120deg, #f59e0b, #d97706);
	color: #ffffff;
	font-size: 0.8rem;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
}

.invoices-module .btn.min {
	min-height: 2.1rem;
	padding: 0.35rem 0.6rem;
}

.invoices-module .btn.outline {
	background: #f8fafc;
	border-color: #cbd5e1;
	color: #0f172a;
}

.invoices-module .tabs {
	display: flex;
	gap: 0.35rem;
	margin-bottom: 0.55rem;
	padding: 0.25rem;
	border: 1px solid #e2e8f0;
	border-radius: 0.7rem;
	background: #ffffff;
}

.invoices-module .tab {
	flex: 1;
	text-align: center;
	padding: 0.42rem 0.5rem;
	border-radius: 0.56rem;
	color: #475569;
	font-size: 0.75rem;
	font-weight: 700;
	cursor: pointer;
}

.invoices-module .tab.active {
	background: #fef3c7;
	color: #92400e;
	box-shadow: inset 0 0 0 1px #fcd34d;
}

.invoices-module .monthPanel {
	display: none;
}

.invoices-module .monthPanel.active {
	display: block;
}

.invoices-module .items {
	display: grid;
	gap: 0.55rem;
}

.invoices-module .itemCard {
	position: relative;
	border: 1px solid #e2e8f0;
	border-radius: 0.85rem;
	background: #f8fafc;
	padding: 0.7rem;
}

.invoices-module .itemRow {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-areas:
		'kod godz'
		'typ stawka';
	gap: 0.55rem;
	align-items: end;
}

.invoices-module .cell-kod {
	grid-area: kod;
}

.invoices-module .cell-godz {
	grid-area: godz;
}

.invoices-module .cell-typ {
	grid-area: typ;
}

.invoices-module .cell-stawka {
	grid-area: stawka;
}

.invoices-module .itemCard .remove {
	position: absolute;
	top: 0.55rem;
	right: 0.55rem;
	border: 1px solid #fecaca;
	border-radius: 0.55rem;
	background: #fef2f2;
	color: #b91c1c;
	min-height: 1.75rem;
	padding: 0.16rem 0.5rem;
}

.invoices-module .docWrap {
	border: 1px solid #e2e8f0;
	border-radius: 0.95rem;
	background: #ffffff;
	padding: 0.7rem;
	overflow: auto;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.invoices-module .doc {
	margin: 0 auto;
	width: 210mm;
	min-height: 297mm;
	border: 1px solid #d7dee7;
	border-radius: 0.28rem;
	background: #ffffff;
	padding: 18mm 20mm;
	color: #111827;
	box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.invoices-module .doc h1 {
	margin: 0 0 6mm;
	text-align: center;
	font-size: 16pt;
	text-transform: uppercase;
	letter-spacing: 0.8px;
}

.invoices-module .doc .rowFlex {
	display: flex;
	justify-content: space-between;
	gap: 10mm;
}

.invoices-module .doc .small {
	font-size: 10pt;
}

.invoices-module .doc .mb4 {
	margin-bottom: 4mm;
}

.invoices-module .doc .mb6 {
	margin-bottom: 6mm;
}

.invoices-module .doc .mb8 {
	margin-bottom: 8mm;
}

.invoices-module .doc .box {
	border: 1pt solid #000;
	padding: 3mm 4mm;
}

.invoices-module .doc .label {
	display: inline-block;
	min-width: 62mm;
	color: #374151;
}

.invoices-module .doc .val {
	font-weight: 600;
}

.invoices-module .doc .mono {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.invoices-module .doc .signRow {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20mm;
	margin-top: 18mm;
}

.invoices-module .doc .line {
	height: 0.5pt;
	margin: 12mm 0 2mm;
	background: #000;
}

.invoices-module .doc .center {
	text-align: center;
}

@media (max-width: 1220px) {
	.invoices-module .layout {
		grid-template-columns: 1fr;
	}

	.invoices-module .panel {
		position: static;
	}
}

@media (max-width: 760px) {
	.invoices-module .grid-2 {
		grid-template-columns: 1fr;
	}

	.invoices-module .itemRow {
		grid-template-columns: 1fr;
		grid-template-areas:
			'kod'
			'godz'
			'typ'
			'stawka';
	}

	.invoices-module .itemCard .remove {
		position: static;
		margin-top: 0.4rem;
	}
}

@media print {
	body.invoices-print-mode {
		margin: 0 !important;
		padding: 0 !important;
		background: #ffffff !important;
	}

	body.invoices-print-mode #appShell {
		padding: 0 !important;
	}

	body.invoices-print-mode #appShell > header {
		display: none !important;
	}

	body.invoices-print-mode #generatorView,
	body.invoices-print-mode #clientsView,
	body.invoices-print-mode #ordersView,
	body.invoices-print-mode #adminView {
		display: none !important;
	}

	body.invoices-print-mode #invoicesView .invoices-view-head {
		display: none !important;
	}

	body.invoices-print-mode #invoicesView {
		display: block !important;
		border: 0 !important;
		box-shadow: none !important;
		padding: 0 !important;
		margin: 0 !important;
		background: #ffffff !important;
	}

	body.invoices-print-mode .invoices-module {
		border: 0 !important;
		background: #ffffff !important;
		padding: 0 !important;
	}

	body.invoices-print-mode .invoices-module .layout {
		display: block !important;
	}

	body.invoices-print-mode .invoices-module .title,
	body.invoices-print-mode .invoices-module .sub,
	body.invoices-print-mode .invoices-module .panel {
		display: none !important;
	}

	body.invoices-print-mode .invoices-module .docWrap {
		border: 0 !important;
		box-shadow: none !important;
		padding: 0 !important;
		overflow: visible !important;
		margin: 0 !important;
	}

	body.invoices-print-mode .invoices-module .doc {
		width: auto !important;
		max-width: 100% !important;
		min-height: 0 !important;
		margin: 0 !important;
		border: 0 !important;
		box-shadow: none !important;
		padding: 10mm 12mm !important;
	}
}

#clearOfferModal .clear-offer-modal-actions {
	display: flex;
	flex-direction: column-reverse;
	gap: 0.5rem;
}

#clearOfferModal .clear-offer-modal-action-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 3rem;
	min-height: 3rem;
	border-radius: 0.75rem;
	font-size: 0.86rem;
	font-weight: 700;
	line-height: 1.2;
	padding: 0.52rem 0.82rem;
}

#clearOfferModal #clearOfferModalConfirmBtn.clear-offer-modal-action-btn {
	border-color: #fca5a5;
}

#openSavedOfferModal .open-saved-offer-modal-actions {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

#openSavedOfferModal .open-saved-offer-modal-action-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 3rem;
	min-height: 3rem;
	border-radius: 0.75rem;
	font-size: 0.86rem;
	font-weight: 700;
	line-height: 1.2;
	padding: 0.52rem 0.82rem;
}

@media (min-width: 640px) {
	#clearOfferModal .clear-offer-modal-actions {
		flex-direction: row;
		align-items: center;
		justify-content: flex-end;
	}

	#clearOfferModal .clear-offer-modal-action-btn {
		width: auto;
		min-width: 15rem;
	}

	#openSavedOfferModal .open-saved-offer-modal-actions {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.info-style-btn {
	border-radius: 0.55rem;
	border: 1px solid #cbd5e1;
	background: #f8fafc;
	color: #0f172a;
	font-size: 0.78rem;
	font-weight: 700;
	padding: 0.34rem 0.52rem;
}

.info-style-btn.is-active {
	border-color: #b45309;
	background: #fde68a;
	color: #78350f;
}

.section-checkbox {
	width: 1rem;
	height: 1rem;
	accent-color: #d97706;
}

.paper-preview-shell {
	border-radius: 0;
	border: 0;
	background: transparent;
	padding: 0;
}

.app-sticky-actions {
	position: sticky;
	isolation: isolate;
	box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.08);
}

.app-sticky-actions > * {
	position: relative;
	z-index: 1;
}

/* Mask the viewport area directly below the sticky action bar so preview text cannot bleed through. */
.app-sticky-actions::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	height: 1.25rem;
	background: #ffffff;
	z-index: 0;
	pointer-events: none;
}

.paper-preview {
	margin: 0 auto;
	width: 100%;
	max-width: 740px;
	min-height: 760px;
	overflow: visible;
	border: 1px solid #d7dee7;
	border-radius: 0.6rem;
	background: #ffffff;
	padding: 1.2rem 1.25rem;
	font-family: 'Helvetica Neue', 'Arial', sans-serif;
	font-size: 0.64rem;
	line-height: 1.42;
	color: #1f2937;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.paper-head {
	display: grid;
	grid-template-columns: 1fr 3fr;
	align-items: start;
	gap: 0.8rem;
}

.paper-logo {
	display: block;
	min-width: 0;
	width: 100%;
	height: 2.8rem;
}

.paper-logo img {
	display: block;
	width: 100%;
	max-width: 10.6rem;
	height: 100%;
	object-fit: contain;
	object-position: left top;
}

.paper-offer-title {
	margin: 0;
	font-size: 1.24rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-align: right;
	color: #0f172a;
}

.paper-offer-sub {
	margin: 0.2rem 0 0;
	text-align: right;
	color: #64748b;
	font-size: 0.68rem;
}

.paper-meta {
	margin-top: 0.75rem;
	border-top: 1px solid #e2e8f0;
	padding-top: 0.6rem;
}

.paper-tofrom {
	margin-top: 0.55rem;
	border: 1px solid #e2c75d;
	border-radius: 0.35rem;
	overflow: hidden;
}

.paper-tofrom p {
	margin: 0;
	height: 1.62rem;
	padding: 0 0.5rem;
	background: #f6df72;
	border-bottom: 1px solid #e2c75d;
	font-size: 0.66rem;
	font-weight: 600;
	line-height: 1.62rem;
}

.paper-tofrom p:last-child {
	border-bottom: 0;
}

.paper-meta p {
	margin: 0.18rem 0;
	color: #334155;
}

.paper-table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
	margin-top: 0;
	border: 1px solid #d5dde6;
}

.paper-band-title {
	margin: 0.8rem 0 0;
	border: 1px solid #d6ba56;
	border-bottom: 0;
	border-radius: 0.35rem 0.35rem 0 0;
	background: #f6df72;
	min-height: 1.7rem;
	height: auto;
	padding: 0.22rem 0.45rem;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-weight: 700;
	color: #78350f;
	line-height: 1.22;
	white-space: normal;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.paper-table th,
.paper-table td {
	border: 1px solid #d5dde6;
	padding: 0.32rem 0.35rem;
	vertical-align: middle;
	line-height: 1.22;
}

.paper-table th {
	background: #faf3cc;
	color: #92400e;
	font-weight: 700;
	padding-top: 0.36rem;
	padding-bottom: 0.36rem;
}

.paper-table tbody tr:nth-child(even) {
	background: #f8fafc;
}

.paper-table td:nth-child(n + 2),
.paper-table th:nth-child(n + 2) {
	text-align: right;
}

.paper-table th:nth-child(1),
.paper-table td:nth-child(1) {
	width: 58%;
	text-align: left;
	overflow-wrap: anywhere;
}

.paper-table th:nth-child(2),
.paper-table td:nth-child(2),
.paper-table th:nth-child(3),
.paper-table td:nth-child(3),
.paper-table th:nth-child(4),
.paper-table td:nth-child(4) {
	width: 14%;
}

.paper-table.paper-table-description.no-discount th:nth-child(1),
.paper-table.paper-table-description.no-discount td:nth-child(1),
.paper-table.paper-table-description.has-discount th:nth-child(1),
.paper-table.paper-table-description.has-discount td:nth-child(1) {
	width: 78% !important;
}

.paper-table.paper-table-description td {
	text-align: left !important;
	white-space: normal;
}

.paper-table.paper-table-description.no-discount th:nth-child(2),
.paper-table.paper-table-description.no-discount td:nth-child(2) {
	width: 22% !important;
	text-align: right !important;
}

.paper-table.paper-table-description.has-discount th:nth-child(1),
.paper-table.paper-table-description.has-discount td:nth-child(1) {
	width: 66% !important;
}

.paper-table.paper-table-description.has-discount th:nth-child(2),
.paper-table.paper-table-description.has-discount td:nth-child(2) {
	width: 12% !important;
	text-align: center !important;
}

.paper-table.paper-table-description.has-discount th:nth-child(3),
.paper-table.paper-table-description.has-discount td:nth-child(3) {
	width: 22% !important;
	text-align: right !important;
}

.paper-table.paper-table-license th:nth-child(1),
.paper-table.paper-table-license td:nth-child(1) {
	text-align: left !important;
}

.paper-table.paper-table-license.no-discount th:nth-child(1),
.paper-table.paper-table-license.no-discount td:nth-child(1) {
	width: 40% !important;
}

.paper-table.paper-table-license.has-discount th:nth-child(1),
.paper-table.paper-table-license.has-discount td:nth-child(1) {
	width: 36% !important;
	text-align: left !important;
}

.paper-table.paper-table-license.no-discount th:nth-child(2),
.paper-table.paper-table-license.no-discount td:nth-child(2) {
	width: 8% !important;
}

.paper-table.paper-table-license.has-discount th:nth-child(2),
.paper-table.paper-table-license.has-discount td:nth-child(2) {
	width: 7% !important;
}

.paper-table.paper-table-license.no-discount th:nth-child(3),
.paper-table.paper-table-license.no-discount td:nth-child(3),
.paper-table.paper-table-license.has-discount th:nth-child(3),
.paper-table.paper-table-license.has-discount td:nth-child(3) {
	width: 14% !important;
}

.paper-table.paper-table-license.no-discount th:nth-child(4),
.paper-table.paper-table-license.no-discount td:nth-child(4) {
	width: 24% !important;
	text-align: right !important;
}

.paper-table.paper-table-license.has-discount th:nth-child(4),
.paper-table.paper-table-license.has-discount td:nth-child(4) {
	width: 22% !important;
	text-align: right !important;
}

.paper-table.paper-table-license.no-discount th:nth-child(5),
.paper-table.paper-table-license.no-discount td:nth-child(5) {
	width: 14% !important;
	text-align: right !important;
}

.paper-table.paper-table-license.has-discount th:nth-child(5),
.paper-table.paper-table-license.has-discount td:nth-child(5) {
	width: 7% !important;
	text-align: right !important;
}

.paper-table.paper-table-license.no-discount th:nth-child(6),
.paper-table.paper-table-license.no-discount td:nth-child(6),
.paper-table.paper-table-license.has-discount th:nth-child(6),
.paper-table.paper-table-license.has-discount td:nth-child(6) {
	width: 14% !important;
}

.paper-text-section-body {
	border: 1px solid #cbd5e1;
	border-top: 0;
	border-radius: 0 0 0.7rem 0.7rem;
	padding: 0.32rem 0.35rem;
	background: #ffffff;
	color: #334155;
	text-align: left;
	font-size: 0.75rem;
	line-height: 1.22;
}

.paper-text-section-body p {
	margin: 0;
}

.paper-text-section-body p + p {
	margin-top: 0.22rem;
}

.paper-overflow-note {
	margin-top: 0.35rem;
	color: #9a3412;
	font-size: 0.6rem;
}

.paper-section-summary {
	margin-top: 0.35rem;
	border: 1px solid #d9e1ea;
	border-radius: 0.4rem;
	background: #f8fafc;
	padding: 0.36rem 0.5rem;
}

.paper-section-summary-title {
	margin: 0;
	font-size: 0.62rem;
	font-weight: 700;
	color: #1e293b;
}

.paper-section-summary-line {
	margin: 0.2rem 0 0;
	display: flex;
	justify-content: space-between;
	gap: 0.5rem;
	font-size: 0.6rem;
}

.paper-section-summary-line strong {
	text-align: right;
}

.paper-table tfoot .paper-section-summary-row td {
	background: #faf3cc;
	color: #92400e;
	font-size: 0.6rem;
	border-top: 1px solid #d6ba56;
	padding: 0.32rem 0.38rem;
}

.paper-table tfoot .paper-section-summary-row:last-child td {
	border-radius: 0 0 0.35rem 0.35rem;
	background-clip: padding-box;
	border-bottom: 1px solid #d6ba56;
}

.paper-table tfoot .paper-section-summary-label {
	font-weight: 700;
}

.paper-table tfoot .paper-section-summary-inner {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.6rem;
}

.paper-table tfoot .paper-section-summary-value {
	text-align: right;
	color: #78350f;
}

.paper-summary {
	margin-top: 0.7rem;
	border: 1px solid #d9e1ea;
	border-radius: 0.45rem;
	background: #f8fafc;
	padding: 0.45rem 0.55rem;
}

.paper-summary-label {
	margin: 0;
	font-size: 0.72rem;
	font-weight: 700;
}

.paper-summary-total {
	margin: 0.22rem 0 0;
	font-size: 0.7rem;
	font-weight: 600;
}

.paper-confidentiality {
	margin-top: 0.72rem;
	border-top: 1px solid #e2e8f0;
	padding-top: 0.5rem;
}

.paper-conf-title {
	margin: 0;
	font-weight: 700;
}

.paper-confidentiality p {
	margin: 0.22rem 0 0;
	color: #475569;
}

.paper-signature {
	margin-top: 1.15rem;
	padding: 0.1rem 0.2rem 0;
}

.paper-signature-line {
	height: 0;
	border-top: 1px solid #475569;
}

.paper-signature-label {
	margin: 0.32rem 0 0;
	text-align: center;
	font-size: 0.62rem;
	font-weight: 600;
	color: #334155;
}

.paper-monthly {
	margin-top: 0.72rem;
	border: 1px solid #d9e1ea;
	border-radius: 0.45rem;
	overflow: hidden;
}

.paper-monthly-row {
	margin: 0;
	display: flex;
	justify-content: space-between;
	gap: 0.55rem;
	padding: 0.36rem 0.52rem;
	background: #f8fafc;
	font-size: 0.68rem;
}

.paper-info {
	margin-top: 0.72rem;
	border: 1px solid #d5dde6;
	border-radius: 0.45rem;
	overflow: hidden;
}

.paper-info-title {
	margin: 0;
	height: 1.68rem;
	padding: 0 0.45rem;
	background: #f6df72;
	border-bottom: 1px solid #d6ba56;
	font-weight: 700;
	text-align: center;
	color: #78350f;
	line-height: 1.68rem;
}

#previewInfoLines p {
	margin: 0;
	padding: 0.26rem 0.36rem;
	border-bottom: 1px solid #e2e8f0;
	text-align: left;
	color: #334155;
}

#previewInfoLines p:last-child {
	border-bottom: 0;
}

#previewInfoLines p.paper-info-accent {
	color: #dc2626;
	font-weight: 600;
}

.paper-info-line-bold {
	font-weight: 700;
}

.desc-rich-editor {
	display: grid;
	gap: 0.35rem;
	width: 100%;
}

.description-editor-shell {
	overflow-x: hidden;
}

.text-editor-shell {
	overflow-x: hidden;
}

.text-only-editor-content {
	width: 100%;
	min-height: 5rem;
	text-align: left;
}

.desc-rich-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	align-items: center;
}

#infoLinesEditor .input-base {
	text-align: left;
}

.desc-tool-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2rem;
	border: 1px solid #cbd5e1;
	border-radius: 0.55rem;
	background: #f8fafc;
	color: #0f172a;
	font-size: 0.86rem;
	font-weight: 600;
	padding: 0.34rem 0.62rem;
}

.desc-tool-btn:hover {
	background: #e2e8f0;
}

.desc-tool-label {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	border: 1px solid #cbd5e1;
	border-radius: 0.55rem;
	background: #f8fafc;
	padding: 0.22rem 0.4rem;
	font-size: 0.73rem;
	color: #334155;
	min-height: 2rem;
}

.desc-tool-input {
	width: 4.6rem;
	height: 1.55rem;
	font-size: 0.78rem;
}

.desc-tool-label input[type='color'] {
	width: 1.55rem;
	height: 1.25rem;
	border: 0;
	padding: 0;
	background: transparent;
}

.desc-rich-content {
	min-height: 5rem;
	white-space: normal;
	width: 100%;
	text-align: left;
}

.desc-rich-content:empty::before {
	content: attr(data-placeholder);
	color: #94a3b8;
}

.desc-rich-content:focus {
	outline: none;
}

.desc-rich-content ul,
.paper-table.paper-table-description td ul {
	list-style: disc;
	margin: 0.35rem 0 0.35rem 1.2rem;
	padding-left: 0.35rem;
}

.desc-rich-content ol,
.paper-table.paper-table-description td ol {
	list-style: decimal;
	margin: 0.35rem 0 0.35rem 1.2rem;
	padding-left: 0.35rem;
}

.desc-net-cell {
	width: var(--editor-total-col-width);
	min-width: var(--editor-total-col-width);
	vertical-align: top !important;
	padding-top: 0.5rem !important;
}

.desc-action-cell {
	width: var(--editor-actions-col-width);
	min-width: var(--editor-actions-col-width);
	padding-top: 0.5rem !important;
	vertical-align: top !important;
}

.description-total-input {
	width: 100%;
	min-width: 0;
	max-width: 100%;
	text-align: left;
	margin-left: -0.45rem;
	width: calc(100% + 0.45rem);
	min-width: calc(100% + 0.45rem);
	max-width: calc(100% + 0.45rem);
}

.paper-footer {
	margin-top: 0.82rem;
	border: 1px solid #d5dde6;
	border-radius: 0.35rem;
	background: #f1f5f9;
	padding: 0.34rem 0.36rem;
	text-align: center;
	font-size: 0.56rem;
	color: #334155;
}

#netTotalValue,
#previewNetTotal {
	text-align: right;
}

.total-currency-line {
	display: block;
	white-space: nowrap;
}

.priced-editor-table th:nth-child(1),
.priced-editor-table td:nth-child(1) {
	width: auto;
}

.priced-editor-table,
.description-editor-table,
.license-editor-table {
	table-layout: fixed;
	width: 100%;
}

.priced-editor-table th:nth-child(2),
.priced-editor-table td:nth-child(2) {
	width: 11%;
}

.priced-editor-table th:nth-child(3),
.priced-editor-table td:nth-child(3) {
	width: 14%;
}

.priced-editor-table th:nth-child(4),
.priced-editor-table td:nth-child(4) {
	width: var(--editor-total-col-width);
	min-width: var(--editor-total-col-width);
}

.priced-editor-table th:nth-child(5),
.priced-editor-table td:nth-child(5) {
	width: var(--editor-actions-col-width);
	min-width: var(--editor-actions-col-width);
}

.description-editor-table th:nth-child(1),
.description-editor-table td:nth-child(1) {
	width: calc(100% - var(--editor-total-col-width) - var(--editor-actions-col-width));
	text-align: left;
}

.description-editor-table th:nth-child(2),
.description-editor-table td:nth-child(2) {
	width: var(--editor-total-col-width);
	min-width: var(--editor-total-col-width);
	text-align: left;
}

.description-editor-table th:nth-child(3),
.description-editor-table td:nth-child(3) {
	width: var(--editor-actions-col-width);
	min-width: var(--editor-actions-col-width);
	text-align: center;
}

.description-editor-table td[colspan='3'] {
	padding-right: 0.5rem;
	text-align: left !important;
	width: 100%;
}

.description-row-top td {
	vertical-align: top;
}

.description-row-top td:nth-child(2) {
	text-align: left;
}

.description-row-top td:nth-child(1) {
	overflow: hidden;
}

.description-row-editor td {
	border-top: 0;
}

.license-editor-table th:nth-child(1),
.license-editor-table td:nth-child(1) {
	width: auto;
}

.license-editor-table th:nth-child(2),
.license-editor-table td:nth-child(2) {
	width: 8%;
}

.license-editor-table th:nth-child(3),
.license-editor-table td:nth-child(3) {
	width: 12%;
}

.license-editor-table th:nth-child(4),
.license-editor-table td:nth-child(4) {
	width: 8%;
}

.license-editor-table th:nth-child(5),
.license-editor-table td:nth-child(5) {
	width: 16%;
}

.license-editor-table th:nth-child(6),
.license-editor-table td:nth-child(6) {
	width: 12%;
}

.license-editor-table th:nth-child(7),
.license-editor-table td:nth-child(7) {
	width: var(--editor-total-col-width);
	min-width: var(--editor-total-col-width);
}

.license-editor-table th:nth-child(8),
.license-editor-table td:nth-child(8) {
	width: var(--editor-actions-col-width);
	min-width: var(--editor-actions-col-width);
}

.priced-editor-table th:last-child,
.priced-editor-table td:last-child,
.description-editor-table th:last-child,
.description-editor-table td:last-child,
.license-editor-table th:last-child,
.license-editor-table td:last-child {
	text-align: center;
}

.editor-total-cell,
.priced-editor-table th:nth-child(4),
.description-editor-table th:nth-child(2),
.license-editor-table th:nth-child(7) {
	white-space: nowrap;
}

.editor-total-cell {
	vertical-align: middle !important;
	line-height: 1.1;
	padding-top: 0.6rem !important;
	padding-bottom: 0.6rem !important;
}

.editor-total-input {
	min-width: 100%;
}

.priced-editor-table th:nth-last-child(2),
.priced-editor-table td:nth-last-child(2),
.description-editor-table th:nth-last-child(2),
.description-editor-table td:nth-last-child(2),
.license-editor-table th:nth-last-child(2),
.license-editor-table td:nth-last-child(2) {
	width: var(--editor-total-col-width) !important;
	min-width: var(--editor-total-col-width) !important;
	max-width: var(--editor-total-col-width) !important;
	text-align: left !important;
}

.priced-editor-table th:last-child,
.priced-editor-table td:last-child,
.description-editor-table th:last-child,
.description-editor-table td:last-child,
.license-editor-table th:last-child,
.license-editor-table td:last-child {
	width: var(--editor-actions-col-width) !important;
	min-width: var(--editor-actions-col-width) !important;
	max-width: var(--editor-actions-col-width) !important;
	text-align: center !important;
}

.currency-select {
	text-align: left;
	font-weight: 600;
	min-width: 7.25rem;
	padding-left: 0.35rem;
	padding-right: 0.35rem;
}

.quote-section-card {
	position: relative;
	overflow: hidden;
}

.quote-section-card::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
}

.quote-section-priced {
	background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.quote-section-priced::before {
	background: #60a5fa;
}

.quote-section-description {
	background: linear-gradient(180deg, #ffffff 0%, #f8fdf8 100%);
}

.quote-section-description::before {
	background: #34d399;
}

.quote-section-text {
	background: linear-gradient(180deg, #ffffff 0%, #f6fdfd 100%);
}

.quote-section-text::before {
	background: #2dd4bf;
}

.quote-section-license {
	background: linear-gradient(180deg, #ffffff 0%, #fffaf3 100%);
}

.quote-section-license::before {
	background: #f59e0b;
}

.quote-section-license_custom {
	background: linear-gradient(180deg, #ffffff 0%, #fff6fa 100%);
}

.quote-section-license_custom::before {
	background: #ec4899;
}

.quote-section-license_apn_software {
	background: linear-gradient(180deg, #ffffff 0%, #f4fbff 100%);
}

.quote-section-license_apn_software::before {
	background: #0ea5e9;
}

.quote-section-license_apn_perpetual {
	background: linear-gradient(180deg, #ffffff 0%, #f7f5ff 100%);
}

.quote-section-license_apn_perpetual::before {
	background: #8b5cf6;
}

.quote-section-card.is-collapsed {
	padding-bottom: 1rem;
}

.row-actions-menu {
	position: relative;
	display: inline-block;
	min-width: 2.2rem;
}

.section-actions-menu {
	min-width: 0;
}

.section-actions-trigger {
	list-style: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem !important;
	height: 3rem !important;
	min-height: 3rem !important;
	padding: 0;
	border-radius: 0.75rem !important;
	font-size: 1rem;
	font-weight: 700;
}

.section-actions-trigger::-webkit-details-marker {
	display: none;
}

.section-actions-field {
	display: grid;
	gap: 0.25rem;
	font-size: 0.7rem;
	color: #334155;
}

.section-toggle-input {
	width: 0.95rem;
	height: 0.95rem;
	margin: 0;
}

.section-monthly-inline {
	margin-top: 0.75rem;
	padding-top: 0.65rem;
	border-top: 1px dashed #dbe3ee;
}

.section-monthly-inline-controls {
	display: grid;
	grid-template-columns: minmax(14rem, 1fr) minmax(8rem, 10rem) minmax(7rem, 9rem);
	gap: 0.55rem;
	align-items: center;
}

.section-monthly-inline-controls .item-input,
.section-monthly-inline-controls .currency-select {
	height: 2.25rem;
	min-height: 2.25rem;
}

.row-actions-trigger {
	list-style: none;
	width: 2rem;
	height: 2rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #cbd5e1;
	border-radius: 0.5rem;
	background: #f8fafc;
	color: #0f172a;
	cursor: pointer;
	font-weight: 700;
}

.row-actions-trigger::-webkit-details-marker {
	display: none;
}

.row-actions-panel {
	position: fixed;
	left: var(--row-actions-left, 1rem);
	top: var(--row-actions-top, 1rem);
	z-index: 70;
	width: min(18rem, calc(100vw - 2rem));
	max-height: calc(100vh - 2rem);
	overflow: auto;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	border: 1px solid #cbd5e1;
	border-radius: 0.6rem;
	background: #ffffff;
	padding: 0.45rem;
	box-shadow: 0 16px 36px rgba(15, 23, 42, 0.24);
}

.row-actions-menu[open]::before {
	content: '';
	position: fixed;
	inset: 0;
	z-index: 60;
	background: rgba(15, 23, 42, 0.28);
	backdrop-filter: blur(1px);
}

.row-action-btn {
	border: 1px solid #cbd5e1;
	border-radius: 0.45rem;
	background: #f8fafc;
	color: #0f172a;
	padding: 0.32rem 0.5rem;
	font-size: 0.74rem;
	font-weight: 600;
	text-align: left;
}

.row-actions-field {
	display: grid;
	gap: 0.25rem;
	font-size: 0.7rem;
	color: #334155;
}

.row-actions-field .item-input {
	min-height: 2rem;
}

@media (max-width: 767px) {
	.input-base {
		font-size: 0.9rem;
	}

	.paper-preview {
		font-size: 0.58rem;
		min-height: 700px;
		padding: 0.95rem;
	}
}

@media print {
	.paper-preview,
	.paper-preview * {
		-webkit-print-color-adjust: exact !important;
		print-color-adjust: exact !important;
		forced-color-adjust: none !important;
	}

	.paper-tofrom {
		border-color: #e2c75d !important;
	}

	.paper-tofrom p {
		background: #f6df72 !important;
		border-color: #e2c75d !important;
	}

	.paper-band-title {
		background: #f6df72 !important;
		border-color: #d6ba56 !important;
		color: #78350f !important;
	}

	.paper-table th {
		background: #faf3cc !important;
		color: #92400e !important;
	}

	.paper-table tfoot .paper-section-summary-row td {
		background: #faf3cc !important;
		color: #92400e !important;
		border-color: #d6ba56 !important;
	}

	.paper-summary,
	.paper-monthly-row {
		background: #f8fafc !important;
	}

	.paper-info-title {
		background: #f6df72 !important;
		border-color: #d6ba56 !important;
		color: #78350f !important;
	}

	.paper-footer {
		background: #f1f5f9 !important;
	}
}
