:root {
	--bb-ink: #121826;
	--bb-muted: #667085;
	--bb-line: #e7eaf0;
	--bb-canvas: #f4f6f9;
	--bb-card: #ffffff;
	--bb-accent: #d7ff4f;
	--bb-accent-ink: #18210c;
	--bb-violet: #7567ff;
	--bb-shadow: 0 18px 48px rgba(18, 24, 38, 0.08);
}

/* The client panel is an application screen, not a regular theme page. */
.bb-billing-page #masthead,
.bb-billing-page .breadcrumb-wrapper,
.bb-billing-page #colophon,
.bb-billing-page .offcanvas__info,
.bb-billing-page .offcanvas__overlay,
.bb-billing-page .mouse-cursor,
.bb-billing-page .preloader {
	display: none !important;
}

.bb-billing-page,
.bb-billing-page #page,
.bb-billing-page #content,
.bb-billing-page #primary,
.bb-billing-page #main,
.bb-billing-page #main > .container,
.bb-billing-page #main > .container > .row,
.bb-billing-page #main > .container > .row > .col-lg-8,
.bb-billing-page [class*="page-content-inner-"],
.bb-billing-page .entry-content {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.bb-billing-page #primary,
.bb-billing-page #main {
	display: block !important;
}

.bb-billing-page #main > .container > .row {
	display: block !important;
}

.bb-billing-page #main > .container > .row > .col-lg-8 {
	flex: none !important;
}

.bb-billing-page #main > .container > .row > .col-lg-4 {
	display: none !important;
}

.bb-billing-app,
.bb-login-shell {
	box-sizing: border-box;
	font-family: inherit;
	color: var(--bb-ink);
}

.bb-billing-app *,
.bb-login-shell * {
	box-sizing: border-box;
}

.bb-billing-app [hidden] {
	display: none !important;
}

.bb-billing-app {
	position: relative;
	left: 50%;
	width: 100vw;
	max-width: 100vw;
	margin: 0 0 0 -50vw;
	padding: clamp(28px, 4vw, 64px) max(20px, calc((100vw - 1380px) / 2));
	background:
		radial-gradient(circle at 92% 0%, rgba(215, 255, 79, 0.18), transparent 22rem),
		var(--bb-canvas);
	min-height: 80vh;
}

.bb-app-header {
	display: flex;
	justify-content: space-between;
	gap: 32px;
	align-items: flex-start;
	margin-bottom: 28px;
}

.bb-brand-line {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.14em;
}

.bb-brand-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 12px;
	background: var(--bb-accent);
	color: var(--bb-accent-ink);
	font-size: 13px;
	font-weight: 900;
	letter-spacing: -0.03em;
}

.bb-eyebrow {
	margin: 18px 0 6px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.17em;
	color: #697386;
}

.bb-app-header h1,
.bb-ledger-toolbar h2,
.bb-dialog h2,
.bb-login-card h1 {
	margin: 0;
	color: var(--bb-ink);
	letter-spacing: -0.045em;
	line-height: 1.05;
}

.bb-app-header h1 {
	font-size: clamp(34px, 5vw, 58px);
}

.bb-header-copy {
	margin: 12px 0 0;
	color: var(--bb-muted);
	font-size: 16px;
}

.bb-header-actions,
.bb-dialog-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.bb-button,
.bb-icon-button,
.bb-row-action,
.bb-text-button {
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	text-decoration: none !important;
	font: inherit;
}

.bb-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 18px;
	border-radius: 12px;
	border: 1px solid transparent;
	font-size: 14px;
	font-weight: 750;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.bb-button:hover {
	transform: translateY(-1px);
}

.bb-button:disabled,
.bb-button[aria-disabled="true"] {
	cursor: default;
	opacity: 0.68;
	transform: none;
}

.bb-button-primary {
	background: var(--bb-ink);
	color: #fff !important;
	box-shadow: 0 10px 24px rgba(18, 24, 38, 0.18);
}

.bb-button-primary:hover {
	background: #20293a;
}

.bb-button-secondary {
	background: #fff;
	border-color: var(--bb-line);
	color: var(--bb-ink) !important;
}

.bb-button-ghost {
	background: transparent;
	color: var(--bb-muted) !important;
}

.bb-pwa-install-button {
	white-space: nowrap;
}

.bb-pwa-install-button:focus-visible {
	outline: 3px solid rgba(79, 70, 229, 0.24);
	outline-offset: 3px;
}

.bb-admin-strip {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	margin: 0 0 18px;
	padding: 14px 16px;
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid rgba(215, 220, 230, 0.9);
	border-radius: 14px;
	backdrop-filter: blur(12px);
}

.bb-client-switcher,
.bb-assignment-summary {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	color: var(--bb-muted);
}

.bb-admin-strip-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 14px;
}

.bb-create-client-button {
	min-height: 40px;
	white-space: nowrap;
}

.bb-client-hub-app {
	min-height: 100vh;
}

.bb-client-hub-toolbar {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 22px;
	padding: 18px 20px;
	border: 1px solid rgba(215, 220, 230, 0.9);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.78);
	backdrop-filter: blur(12px);
}

.bb-client-hub-count {
	display: flex;
	align-items: baseline;
	gap: 10px;
	color: var(--bb-muted);
	font-size: 13px;
	font-weight: 720;
}

.bb-client-hub-count strong {
	color: var(--bb-ink);
	font-size: 30px;
	line-height: 1;
	letter-spacing: -0.045em;
}

.bb-client-hub-search {
	display: flex;
	width: min(100%, 420px);
	flex-direction: column;
	gap: 7px;
	color: var(--bb-muted);
	font-size: 12px;
	font-weight: 760;
}

.bb-client-hub-search input {
	width: 100%;
	min-height: 46px;
	margin: 0;
	padding: 10px 14px;
	border: 1px solid #dce1e9;
	border-radius: 12px;
	background: #fff;
	color: var(--bb-ink);
	font: inherit;
	font-size: 14px;
	box-shadow: none;
}

.bb-client-hub-search input:focus {
	outline: 3px solid rgba(117, 103, 255, 0.16);
	border-color: var(--bb-violet);
}

.bb-client-hub-search small {
	color: #8a94a6;
	font-size: 10px;
	font-weight: 650;
}

.bb-client-hub-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.bb-client-hub-card {
	display: flex;
	min-width: 0;
	min-height: 360px;
	flex-direction: column;
	padding: 22px;
	border: 1px solid var(--bb-line);
	border-radius: 20px;
	background: linear-gradient(145deg, #fbfcff 0%, #fff 54%);
	box-shadow: 0 14px 34px rgba(18, 24, 38, 0.055);
	transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.bb-client-hub-card:hover {
	transform: translateY(-3px);
	border-color: #d5dae4;
	box-shadow: var(--bb-shadow);
}

.bb-client-hub-card-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
}

.bb-client-hub-avatar {
	display: inline-flex;
	width: 58px;
	height: 58px;
	flex: 0 0 58px;
	align-items: center;
	justify-content: center;
	border-radius: 18px;
	background: var(--bb-ink);
	color: #fff;
	font-size: 14px;
	font-weight: 900;
	letter-spacing: 0.04em;
}

.bb-client-hub-status {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 7px 10px;
	border-radius: 999px;
	background: #f2f4f7;
	color: #687386;
	font-size: 11px;
	font-weight: 800;
}

.bb-client-hub-status > span {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #98a2b3;
}

.bb-client-hub-status.is-active {
	background: rgba(43, 191, 106, 0.1);
	color: #167342;
}

.bb-client-hub-status.is-active > span {
	background: #2bbf6a;
	box-shadow: 0 0 0 4px rgba(43, 191, 106, 0.12);
}

.bb-client-hub-card-copy .bb-eyebrow {
	margin-top: 22px;
}

.bb-client-hub-card-copy h2 {
	margin: 0;
	color: var(--bb-ink);
	font-size: 25px;
	line-height: 1.08;
	letter-spacing: -0.035em;
	overflow-wrap: anywhere;
}

.bb-client-hub-company {
	min-height: 42px;
	margin: 9px 0 0;
	color: var(--bb-muted);
	font-size: 13px;
	line-height: 1.55;
	overflow-wrap: anywhere;
}

.bb-client-hub-meta {
	margin: 18px 0 0;
	padding-top: 4px;
	border-top: 1px solid var(--bb-line);
}

.bb-client-hub-meta > div {
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr);
	gap: 12px;
	padding: 9px 0;
}

.bb-client-hub-meta dt,
.bb-client-hub-meta dd {
	margin: 0;
	font-size: 12px;
	line-height: 1.45;
}

.bb-client-hub-meta dt {
	color: #8a94a6;
}

.bb-client-hub-meta dd {
	color: var(--bb-ink);
	font-weight: 720;
	overflow-wrap: anywhere;
}

.bb-client-hub-card-actions {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 9px;
	margin-top: auto;
	padding-top: 20px;
}

.bb-client-hub-card-actions .bb-button {
	min-height: 43px;
	padding: 0 14px;
}

.bb-client-hub-search-empty,
.bb-client-hub-empty {
	display: flex;
	min-height: 280px;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 8px;
	padding: 42px 24px;
	border: 1px dashed #cfd5df;
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.68);
	color: var(--bb-muted);
	text-align: center;
}

.bb-client-hub-search-empty strong,
.bb-client-hub-empty h2 {
	margin: 0;
	color: var(--bb-ink);
	font-size: 24px;
	letter-spacing: -0.03em;
}

.bb-client-hub-search-empty span,
.bb-client-hub-empty p:last-child {
	margin: 0;
	font-size: 14px;
}

.bb-client-hub-empty-icon {
	display: inline-flex;
	width: 62px;
	height: 62px;
	align-items: center;
	justify-content: center;
	border-radius: 20px;
	background: var(--bb-accent);
	color: var(--bb-accent-ink);
	font-size: 29px;
	font-weight: 800;
}

.bb-hub-tab-count {
	display: inline-flex;
	min-width: 23px;
	height: 23px;
	align-items: center;
	justify-content: center;
	padding: 0 7px;
	border-radius: 999px;
	background: #eef1f5;
	color: #5f6979;
	font-size: 10px;
	font-weight: 850;
}

.bb-panel-tab.is-active .bb-hub-tab-count {
	background: var(--bb-ink);
	color: #fff;
}

.bb-work-plan-summary {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 18px;
}

.bb-work-plan-summary article {
	padding: 19px 20px;
	border: 1px solid var(--bb-line);
	border-radius: 17px;
	background: #fff;
	box-shadow: 0 10px 28px rgba(18, 24, 38, 0.045);
}

.bb-work-plan-summary span {
	display: block;
	margin-bottom: 8px;
	color: var(--bb-muted);
	font-size: 11px;
	font-weight: 760;
}

.bb-work-plan-summary strong {
	display: block;
	color: var(--bb-ink);
	font-size: clamp(24px, 3vw, 34px);
	line-height: 1;
	letter-spacing: -0.045em;
}

.bb-task-toolbar {
	display: grid;
	grid-template-columns: minmax(220px, 1.5fr) repeat(4, minmax(140px, 1fr));
	gap: 12px;
	padding: 18px;
	border: 1px solid var(--bb-line);
	border-radius: 17px;
	background: rgba(255, 255, 255, 0.82);
}

.bb-task-toolbar label {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 7px;
	color: var(--bb-muted);
	font-size: 11px;
	font-weight: 760;
}

.bb-task-toolbar input,
.bb-task-toolbar select {
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 9px 11px;
	border: 1px solid #dce1e9;
	border-radius: 10px;
	background: #fff;
	color: var(--bb-ink);
	font: inherit;
	font-size: 13px;
	box-shadow: none;
}

.bb-task-toolbar-status {
	display: flex;
	justify-content: space-between;
	gap: 18px;
	margin: 10px 2px 18px;
	color: #7b8595;
	font-size: 11px;
}

.bb-task-toolbar-status .is-error {
	color: #b42318;
}

.bb-task-groups {
	display: grid;
	gap: 18px;
}

.bb-task-group {
	padding: 20px;
	border: 1px solid var(--bb-line);
	border-radius: 19px;
	background: rgba(255, 255, 255, 0.88);
	box-shadow: 0 12px 30px rgba(18, 24, 38, 0.04);
}

.bb-task-group.is-completed {
	background: rgba(246, 248, 250, 0.9);
}

.bb-task-group.is-completed > summary {
	list-style: none;
	cursor: pointer;
}

.bb-task-group.is-completed > summary::-webkit-details-marker {
	display: none;
}

.bb-task-group.is-completed > summary::after {
	content: 'Rozwiń';
	margin-left: 4px;
	color: #7c8798;
	font-size: 10px;
	font-weight: 800;
}

.bb-task-group.is-completed[open] > summary::after {
	content: 'Zwiń';
}

.bb-task-group-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 14px;
}

.bb-task-group-heading .bb-eyebrow {
	margin: 0 0 4px;
	font-size: 9px;
}

.bb-task-group-heading h2 {
	margin: 0;
	font-size: 22px;
	letter-spacing: -0.035em;
}

.bb-task-group-heading > span {
	display: inline-flex;
	min-width: 34px;
	height: 34px;
	align-items: center;
	justify-content: center;
	border-radius: 11px;
	background: #eef1f5;
	color: #596475;
	font-size: 12px;
	font-weight: 850;
}

.bb-task-list {
	display: grid;
	gap: 9px;
}

.bb-task-card {
	display: grid;
	grid-template-columns: 22px minmax(0, 1fr) auto;
	gap: 13px;
	align-items: center;
	padding: 15px 16px;
	border: 1px solid #e3e7ee;
	border-left: 4px solid #cdd3dc;
	border-radius: 14px;
	background: #fff;
	transition: opacity 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.bb-task-card.bb-task-priority-high { border-left-color: #f4ad39; }
.bb-task-card.bb-task-priority-urgent { border-left-color: #e34d59; }
.bb-task-card.is-completed { opacity: 0.72; }
.bb-task-card.is-dragging { opacity: 0.45; transform: scale(0.995); box-shadow: var(--bb-shadow); }

.bb-task-drag {
	color: #a1a9b6;
	font-size: 17px;
	font-weight: 900;
	line-height: 1;
	cursor: grab;
	user-select: none;
}

.bb-task-card-top,
.bb-task-meta,
.bb-task-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.bb-task-client,
.bb-task-priority-badge,
.bb-task-status {
	display: inline-flex;
	align-items: center;
	min-height: 25px;
	padding: 0 9px;
	border-radius: 999px;
	font-size: 9px;
	font-weight: 850;
	text-decoration: none !important;
}

.bb-task-client { background: var(--bb-ink); color: #fff !important; }
.bb-task-priority-badge { background: #eef1f5; color: #626d7e; }
.bb-task-priority-badge.is-high { background: #fff3d9; color: #9a5c00; }
.bb-task-priority-badge.is-urgent { background: #ffe7ea; color: #b4232e; }
.bb-task-status { background: #eef1f5; color: #5d6878; }
.bb-task-status.is-in_progress { background: #e9e6ff; color: #5342c8; }
.bb-task-status.is-waiting { background: #fff3d9; color: #8a5706; }
.bb-task-status.is-completed { background: #e2f7ea; color: #167342; }

.bb-task-main h3 {
	margin: 7px 0 0;
	font-size: 16px;
	line-height: 1.28;
	letter-spacing: -0.02em;
}

.bb-task-notes {
	margin: 6px 0 0;
	color: var(--bb-muted);
	font-size: 12px;
	line-height: 1.5;
}

.bb-task-meta {
	margin-top: 9px;
	color: #798395;
	font-size: 10px;
}

.bb-task-meta strong { color: #566172; }
.bb-task-actions { justify-content: flex-end; }
.bb-task-actions form { margin: 0; }

.bb-task-order-button {
	appearance: none;
	display: inline-flex;
	width: 31px;
	height: 31px;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 1px solid #dfe4eb;
	border-radius: 9px;
	background: #fff;
	color: #697386;
	font: inherit;
	font-size: 13px;
	font-weight: 900;
	cursor: pointer;
}

.bb-task-order-button:hover { border-color: #bfc6d1; color: var(--bb-ink); }

.bb-task-empty,
.bb-task-filter-empty {
	padding: 42px 24px;
	border: 1px dashed #cfd5df;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.7);
	color: var(--bb-muted);
	text-align: center;
}

.bb-task-empty > span {
	display: inline-flex;
	width: 52px;
	height: 52px;
	align-items: center;
	justify-content: center;
	border-radius: 16px;
	background: var(--bb-accent);
	color: var(--bb-accent-ink);
	font-size: 22px;
	font-weight: 900;
}

.bb-task-empty h3 { margin: 15px 0 6px; color: var(--bb-ink); font-size: 24px; }
.bb-task-empty p { margin: 0; font-size: 13px; }
.bb-task-filter-empty { margin-top: 16px; }

.bb-todo-heading {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 20px;
}

.bb-todo-heading .bb-eyebrow { margin: 0 0 6px; }
.bb-todo-heading h2 { margin: 0; font-size: clamp(27px, 4vw, 38px); letter-spacing: -0.04em; }
.bb-todo-heading p:last-child { margin: 8px 0 0; color: var(--bb-muted); font-size: 13px; }

.bb-task-form textarea {
	width: 100%;
	min-height: 110px;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid #dce1e9;
	border-radius: 10px;
	background: #fff;
	color: var(--bb-ink);
	font: inherit;
	font-size: 14px;
	resize: vertical;
}

.bb-client-switcher select,
.bb-client-vat-form select,
.bb-filters select,
.bb-filters input,
.bb-entry-form input,
.bb-entry-form select,
.bb-entry-form textarea,
.bb-company-form input,
.bb-password-form input,
.bb-create-client-form input,
.bb-create-client-form select,
.bb-task-form input,
.bb-task-form select,
.bb-period-form-grid input,
.bb-period-form-grid select,
.bb-dialog-select select {
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid #dce1e9;
	border-radius: 10px;
	background: #fff;
	color: var(--bb-ink);
	font: inherit;
	font-size: 14px;
	box-shadow: none;
}

/* The site theme replaces every select with Nice Select. Keep this critical
   workflow on the native control so programmatic month-state changes stay in sync. */
.bb-period-form-grid select[data-period-status] {
	display: block !important;
}

.bb-period-form-grid select[data-period-status] + .nice-select {
	display: none !important;
}

.bb-client-switcher select {
	min-width: 180px;
}

.bb-client-vat-form select {
	display: block !important;
}

.bb-client-vat-form select + .nice-select {
	display: none !important;
}

.bb-create-client-form select[data-create-client-vat] {
	display: block !important;
}

.bb-create-client-form select[data-create-client-vat] + .nice-select {
	display: none !important;
}

.bb-task-form select,
.bb-task-toolbar select {
	display: block !important;
}

.bb-task-form select + .nice-select,
.bb-task-toolbar select + .nice-select {
	display: none !important;
}

.bb-client-switcher-submit {
	appearance: none;
	min-height: 38px;
	padding: 0 12px;
	border: 1px solid #dce1e9;
	border-radius: 9px;
	background: #fff;
	color: var(--bb-ink);
	font: inherit;
	font-size: 11px;
	font-weight: 800;
	cursor: pointer;
}

.bb-panel-tabs {
	display: flex;
	align-items: flex-end;
	gap: 7px;
	margin: 26px 0 18px;
	padding: 0 8px;
	border-bottom: 1px solid #dce1e9;
}

.bb-panel-tab {
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	min-height: 52px;
	margin: 0 0 -1px;
	padding: 0 22px;
	align-items: center;
	gap: 10px;
	border: 1px solid transparent;
	border-bottom-color: #dce1e9;
	border-radius: 14px 14px 0 0;
	background: rgba(232, 235, 241, 0.72);
	color: #657083;
	font: inherit;
	font-size: 14px;
	font-weight: 780;
	cursor: pointer;
	transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.bb-panel-tab:hover {
	background: #f5f7fa;
	color: var(--bb-ink);
}

.bb-panel-tab.is-active {
	border-color: #dce1e9;
	border-bottom-color: #fff;
	background: #fff;
	color: var(--bb-ink);
	box-shadow: 0 -7px 20px rgba(18, 24, 38, 0.045);
}

.bb-panel-tab:focus-visible {
	position: relative;
	z-index: 2;
	outline: 3px solid rgba(117, 103, 255, 0.28);
	outline-offset: 2px;
}

.bb-panel-tab-icon {
	display: inline-flex;
	width: 26px;
	height: 26px;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	background: #fff;
	color: #697386;
	font-size: 10px;
	font-weight: 900;
	box-shadow: inset 0 0 0 1px #dfe4ec;
}

.bb-panel-tab.is-active .bb-panel-tab-icon {
	background: var(--bb-accent);
	color: var(--bb-accent-ink);
	box-shadow: none;
}

.bb-client-data-panel {
	padding: clamp(22px, 3vw, 36px);
	border: 1px solid var(--bb-line);
	border-radius: 0 20px 20px 20px;
	background: #fff;
	box-shadow: var(--bb-shadow);
}

.bb-client-data-intro {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-bottom: 28px;
}

.bb-client-avatar {
	display: inline-flex;
	width: 72px;
	height: 72px;
	flex: 0 0 72px;
	align-items: center;
	justify-content: center;
	border-radius: 22px;
	background: var(--bb-ink);
	color: var(--bb-accent);
	font-size: 18px;
	font-weight: 900;
	letter-spacing: -0.04em;
	box-shadow: 0 12px 26px rgba(18, 24, 38, 0.18);
}

.bb-client-data-intro .bb-eyebrow {
	margin: 0 0 5px;
}

.bb-client-data-intro h2 {
	margin: 0;
	font-size: clamp(26px, 3vw, 38px);
	line-height: 1.08;
	letter-spacing: -0.04em;
}

.bb-client-data-intro p:last-child {
	margin: 8px 0 0;
	color: var(--bb-muted);
	font-size: 14px;
}

.bb-client-data-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.bb-client-info-card {
	padding: 22px;
	border: 1px solid var(--bb-line);
	border-radius: 18px;
	background: #fbfcfd;
}

.bb-client-company-card {
	grid-column: 1 / -1;
	background: linear-gradient(145deg, #f8f9ff 0%, #fff 58%);
}

.bb-company-edit-button {
	flex: 0 0 auto;
	margin-left: auto;
}

.bb-client-billing-card {
	background: linear-gradient(145deg, #f9fbea 0%, #fff 58%);
}

.bb-client-info-heading {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-bottom: 18px;
	border-bottom: 1px solid #e6eaf0;
}

.bb-client-info-heading > span {
	display: inline-flex;
	width: 40px;
	height: 40px;
	flex: 0 0 40px;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	background: #eef1f5;
	color: #4f596a;
	font-size: 10px;
	font-weight: 900;
}

.bb-client-billing-card .bb-client-info-heading > span {
	background: var(--bb-accent);
	color: var(--bb-accent-ink);
}

.bb-client-info-heading small {
	display: block;
	margin-bottom: 3px;
	color: #8b95a6;
	font-size: 9px;
	font-weight: 850;
	letter-spacing: 0.12em;
}

.bb-client-info-heading h3 {
	margin: 0;
	font-size: 17px;
	letter-spacing: -0.02em;
}

.bb-client-details {
	margin: 0;
}

.bb-company-details {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	column-gap: 34px;
}

.bb-client-details.bb-company-details > div {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.bb-company-details > .bb-company-detail-wide {
	grid-column: 1 / -1;
}

.bb-company-nip {
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.025em;
}

.bb-client-password-value {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 7px 12px;
}

.bb-client-password-value > small {
	color: var(--bb-muted);
	font-size: 11px;
}

.bb-client-device-row dd {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.bb-client-device-row .bb-pwa-install-button {
	min-height: 38px;
	padding: 0 13px;
	font-size: 12px;
}

.bb-client-details > div {
	display: grid;
	grid-template-columns: minmax(120px, 0.7fr) minmax(0, 1.3fr);
	gap: 18px;
	padding: 15px 0;
	border-bottom: 1px solid #e8ebf0;
}

.bb-client-details > div:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.bb-client-details dt,
.bb-client-details dd {
	margin: 0;
	font-size: 13px;
	line-height: 1.45;
}

.bb-client-details dt {
	color: var(--bb-muted);
}

.bb-client-details dd {
	min-width: 0;
	color: var(--bb-ink);
	font-weight: 720;
	overflow-wrap: anywhere;
}

.bb-client-details a {
	color: #4f46e5;
	text-decoration: none;
}

.bb-client-vat-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: 10px;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid #e8ebf0;
}

.bb-client-vat-form label {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 7px;
	color: var(--bb-muted);
	font-size: 12px;
	font-weight: 750;
}

.bb-client-vat-form .bb-button {
	min-height: 44px;
}

.bb-client-vat-form > small {
	grid-column: 1 / -1;
	color: #778193;
	font-size: 10px;
	line-height: 1.45;
}

.bb-access-status {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: #167342;
}

.bb-access-status > span {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #2bbf6a;
	box-shadow: 0 0 0 4px rgba(43, 191, 106, 0.12);
}

.bb-client-data-note {
	display: flex;
	align-items: center;
	gap: 11px;
	margin-top: 16px;
	padding: 14px 16px;
	border: 1px solid #e0e4eb;
	border-radius: 14px;
	background: #f7f8fa;
}

.bb-client-data-note > span {
	display: inline-flex;
	width: 24px;
	height: 24px;
	flex: 0 0 24px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #e8e4ff;
	color: #5d42ae;
	font-size: 12px;
	font-weight: 900;
}

.bb-client-data-note p {
	margin: 0;
	color: #5f6877;
	font-size: 12px;
}

.bb-client-data-note button {
	appearance: none;
	padding: 0;
	border: 0;
	background: transparent;
	color: #4f46e5;
	font: inherit;
	font-weight: 800;
	cursor: pointer;
}

.bb-text-button,
.bb-row-action {
	padding: 0;
	border: 0;
	background: transparent;
	color: #4f46e5;
	font-size: 13px;
	font-weight: 700;
}

.bb-text-button.bb-company-edit-button {
	min-height: 36px;
	padding: 6px 10px;
	border-radius: 8px;
}

.bb-company-edit-button:focus-visible {
	outline: 3px solid rgba(79, 70, 229, 0.25);
	outline-offset: 2px;
}

.bb-password-edit-button {
	min-height: 34px;
	padding: 5px 9px;
	border-radius: 8px;
}

.bb-password-edit-button:focus-visible {
	outline: 3px solid rgba(79, 70, 229, 0.25);
	outline-offset: 2px;
}

.bb-toast {
	margin: 0 0 18px;
	padding: 13px 16px;
	border-radius: 12px;
	font-size: 14px;
}

.bb-toast-success {
	background: #eafaf0;
	color: #15703b;
	border: 1px solid #c9efd7;
}

.bb-toast-error {
	background: #fff1f0;
	color: #9f241b;
	border: 1px solid #f2cbc7;
}

.bb-period-section,
.bb-cost-summary {
	margin-bottom: 18px;
	padding: 24px;
	border: 1px solid var(--bb-line);
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.84);
	box-shadow: 0 10px 30px rgba(18, 24, 38, 0.04);
}

.bb-cost-summary {
	margin-top: 18px;
	margin-bottom: 0;
	background: #fff;
}

.bb-documents-section {
	margin-top: 18px;
	padding: 24px;
	border: 1px solid var(--bb-line);
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(18, 24, 38, 0.04);
}

.bb-documents-list {
	display: grid;
	gap: 12px;
}

.bb-document-card {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 18px;
	align-items: center;
	padding: 20px;
	border: 1px solid #e0e5ec;
	border-radius: 16px;
	background: #fbfcfd;
}

.bb-document-icon {
	display: inline-flex;
	width: 54px;
	height: 62px;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	background: #f8e6e6;
	color: #a83a3a;
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.03em;
	box-shadow: inset 0 0 0 1px #efd0d0;
}

.bb-document-main {
	min-width: 0;
}

.bb-document-title-line {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.bb-document-title-line small {
	display: block;
	margin-bottom: 3px;
	color: #8b95a6;
	font-size: 9px;
	font-weight: 850;
	letter-spacing: 0.12em;
}

.bb-document-title-line h3 {
	margin: 0;
	font-size: 18px;
	line-height: 1.2;
	letter-spacing: -0.02em;
	overflow-wrap: anywhere;
}

.bb-document-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin: 10px 0 0;
	color: var(--bb-muted);
	font-size: 11px;
	line-height: 1.5;
}

.bb-document-meta strong {
	color: #4d5869;
}

.bb-document-file,
.bb-document-pending {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 10px 0 0;
	font-size: 11px;
	font-weight: 700;
}

.bb-document-file {
	color: #167342;
}

.bb-document-pending {
	color: #815400;
}

.bb-document-actions {
	display: flex;
	max-width: 460px;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
}

.bb-document-actions .bb-button {
	min-height: 42px;
	padding: 0 14px;
	font-size: 12px;
}

.bb-document-upload {
	display: flex;
	width: 100%;
	margin-top: 4px;
	align-items: flex-end;
	justify-content: flex-end;
	gap: 10px;
}

.bb-document-upload label {
	display: grid;
	min-width: 0;
	gap: 5px;
	color: #657083;
	font-size: 10px;
	font-weight: 800;
}

.bb-document-upload input[type="file"] {
	width: min(230px, 100%);
	font-size: 10px;
}

.bb-document-upload-button {
	min-width: 148px;
}

.bb-document-remove-form {
	margin: 0;
}

.bb-document-remove {
	border-color: #f0cccc;
	background: #fff5f5;
	color: #a83a3a !important;
}

.bb-document-remove:hover {
	background: #fceaea;
}

.bb-document-empty,
.bb-document-filter-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	min-height: 118px;
	padding: 24px;
	border: 1px dashed #d7dce5;
	border-radius: 16px;
	background: #fafbfc;
	color: var(--bb-muted);
	text-align: left;
}

.bb-document-empty > span {
	display: inline-flex;
	width: 42px;
	height: 48px;
	flex: 0 0 42px;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	background: #eef1f5;
	font-size: 9px;
	font-weight: 900;
}

.bb-document-empty strong {
	color: var(--bb-ink);
	font-size: 13px;
}

.bb-document-empty p {
	margin: 4px 0 0;
	font-size: 11px;
	line-height: 1.5;
}

.bb-document-filter-empty {
	font-size: 12px;
	font-weight: 700;
	text-align: center;
}

.bb-section-heading {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 30px;
	margin-bottom: 18px;
}

.bb-section-heading .bb-eyebrow {
	margin-top: 0;
}

.bb-section-heading h2 {
	margin: 0;
	color: var(--bb-ink);
	font-size: clamp(24px, 3vw, 32px);
	line-height: 1.08;
	letter-spacing: -0.04em;
}

.bb-section-heading > p,
.bb-period-heading-actions > p {
	max-width: 500px;
	margin: 0;
	color: var(--bb-muted);
	font-size: 13px;
	line-height: 1.55;
}

.bb-period-heading-actions {
	display: flex;
	max-width: 500px;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
	text-align: right;
}

.bb-period-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}

.bb-period-card {
	appearance: none;
	-webkit-appearance: none;
	display: flex;
	min-width: 0;
	min-height: 154px;
	padding: 18px;
	flex-direction: column;
	align-items: flex-start;
	justify-content: space-between;
	text-align: left;
	border: 1px solid #dfe4ec;
	border-radius: 16px;
	background: #fff;
	color: var(--bb-ink);
	font: inherit;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(18, 24, 38, 0.03);
	transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.bb-period-card-top {
	display: flex;
	width: 100%;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
}

.bb-period-choice-label {
	display: inline-flex;
	min-width: 0;
	align-items: center;
	gap: 8px;
}

.bb-period-check {
	display: inline-flex;
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
	align-items: center;
	justify-content: center;
	border: 1.5px solid #c8d0dc;
	border-radius: 7px;
	background: #fff;
	color: var(--bb-ink);
	font-size: 12px;
	font-weight: 900;
	line-height: 1;
	transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.bb-period-card.is-active .bb-period-check {
	border-color: #fff;
	background: #fff;
}

.bb-period-card.is-active .bb-period-check::after {
	content: "✓";
}

.bb-period-card.bb-period-all.is-active .bb-period-check {
	border-color: var(--bb-accent-ink);
	background: var(--bb-accent-ink);
	color: var(--bb-accent);
}

.bb-period-card:hover {
	transform: translateY(-2px);
	border-color: #c8d0dc;
	box-shadow: 0 12px 26px rgba(18, 24, 38, 0.08);
}

.bb-period-card:focus-visible {
	outline: 3px solid rgba(117, 103, 255, 0.28);
	outline-offset: 2px;
}

.bb-period-card.is-active {
	border-color: var(--bb-ink);
	background: var(--bb-ink);
	color: #fff;
	box-shadow: 0 14px 30px rgba(18, 24, 38, 0.18);
}

.bb-period-card.bb-period-all {
	background: #f5f7fa;
}

.bb-period-card.bb-period-all.is-active {
	border-color: var(--bb-accent);
	background: var(--bb-accent);
	color: var(--bb-accent-ink);
}

.bb-period-kicker {
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	opacity: 0.62;
}

.bb-period-card > strong {
	font-size: 19px;
	line-height: 1.2;
	letter-spacing: -0.025em;
}

.bb-period-status {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	padding: 4px 8px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: 9px;
	font-weight: 850;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
	white-space: nowrap;
}

.bb-period-status-accruing { background: #eaf2ff; border-color: #cfe0ff; color: #285ea8; }
.bb-period-status-awaiting { background: #fff4dc; border-color: #f2dca9; color: #815400; }
.bb-period-status-invoiced { background: #f0ecff; border-color: #dcd2ff; color: #5d42ae; }
.bb-period-status-paid { background: #e7f8ed; border-color: #c8ebd4; color: #167342; }

.bb-period-card.is-active .bb-period-status {
	border-color: rgba(255, 255, 255, 0.2);
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.bb-period-invoice {
	display: block;
	max-width: 100%;
	color: inherit;
	font-size: 10px;
	font-weight: 750;
	overflow-wrap: anywhere;
	opacity: 0.72;
}

.bb-period-meta {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	opacity: 0.74;
}

.bb-period-meta i {
	font-style: normal;
	opacity: 0.55;
}

.bb-period-selection-bar {
	display: flex;
	margin-top: 14px;
	padding: 13px 15px;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	border: 1px solid #e1e6ee;
	border-radius: 14px;
	background: #f8f9fb;
}

.bb-period-selection-bar p {
	margin: 0;
	color: #5f6877;
	font-size: 12px;
	font-weight: 650;
	line-height: 1.45;
}

.bb-period-summary-link {
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	padding: 0;
	flex: 0 0 auto;
	align-items: center;
	gap: 7px;
	border: 0;
	background: transparent;
	color: #4f46e5;
	font: inherit;
	font-size: 12px;
	font-weight: 800;
	text-decoration: none;
	cursor: pointer;
}

.bb-period-summary-link:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.bb-period-summary-link:focus-visible {
	outline: 3px solid rgba(117, 103, 255, 0.24);
	outline-offset: 4px;
}

.bb-stats-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 18px;
}

.bb-stat-card {
	position: relative;
	overflow: hidden;
	min-height: 174px;
	padding: 24px;
	border: 1px solid var(--bb-line);
	border-radius: 18px;
	background: var(--bb-card);
	box-shadow: 0 9px 25px rgba(18, 24, 38, 0.04);
}

.bb-stat-card p {
	margin: 26px 0 7px;
	font-size: 13px;
	font-weight: 700;
	color: var(--bb-muted);
}

.bb-stat-card strong {
	display: block;
	font-size: clamp(24px, 2.5vw, 34px);
	line-height: 1;
	letter-spacing: -0.04em;
	font-variant-numeric: tabular-nums;
}

.bb-stat-card small {
	display: block;
	margin-top: 11px;
	color: #8a94a6;
	font-size: 11px;
}

.bb-stat-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: #f0f2f6;
	font-size: 14px;
	font-weight: 800;
}

.bb-stat-time {
	background: #171e2c;
	border-color: #171e2c;
	color: #fff;
}

.bb-stat-time p,
.bb-stat-time small {
	color: #aeb7c7;
}

.bb-stat-time .bb-stat-icon {
	background: rgba(255, 255, 255, 0.1);
}

.bb-stat-total {
	background: var(--bb-accent);
	border-color: var(--bb-accent);
	color: var(--bb-accent-ink);
}

.bb-stat-total p,
.bb-stat-total small {
	color: #536023;
}

.bb-stat-total .bb-stat-icon {
	background: rgba(24, 33, 12, 0.1);
}

.bb-ledger-card {
	overflow: hidden;
	border: 1px solid var(--bb-line);
	border-radius: 20px;
	background: var(--bb-card);
	box-shadow: var(--bb-shadow);
}

.bb-ledger-toolbar {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 24px;
	padding: 26px;
	border-bottom: 1px solid var(--bb-line);
}

.bb-ledger-toolbar .bb-eyebrow {
	margin-top: 0;
}

.bb-ledger-toolbar h2 {
	font-size: 28px;
}

.bb-filters {
	display: flex;
	align-items: center;
	gap: 8px;
}

.bb-filters input {
	width: 220px;
}

.bb-filters select {
	width: auto;
	min-width: 155px;
}

.bb-icon-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 10px;
	border: 1px solid #dce1e9;
	border-radius: 10px;
	background: #fff;
	color: var(--bb-ink) !important;
	font-size: 11px;
	font-weight: 850;
}

.bb-csv-button {
	padding-right: 14px;
	padding-left: 14px;
	white-space: nowrap;
}

.bb-ledger-head,
.bb-entry-row {
	display: grid;
	grid-template-columns: minmax(300px, 1fr) 105px 105px 115px;
	gap: 16px;
	align-items: center;
}

.bb-billing-app.has-admin .bb-ledger-head,
.bb-billing-app.has-admin .bb-entry-row {
	grid-template-columns: minmax(300px, 1fr) 105px 105px 115px 90px;
}

.bb-ledger-head {
	padding: 13px 26px;
	background: #fafbfc;
	border-bottom: 1px solid var(--bb-line);
	color: #8791a3;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.bb-day-label {
	padding: 18px 26px 9px;
	background: #fff;
	color: #596579;
	font-size: 12px;
	font-weight: 850;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.bb-month-group + .bb-month-group {
	border-top: 14px solid var(--bb-canvas);
}

.bb-month-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	padding: 22px 26px;
	border-bottom: 1px solid var(--bb-line);
	background: linear-gradient(135deg, #171e2c 0%, #242d40 100%);
	color: #fff;
}

.bb-month-header span {
	display: block;
	color: #aeb7c7;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.bb-month-header h3 {
	margin: 4px 0 0;
	color: #fff;
	font-size: 22px;
	line-height: 1.15;
	letter-spacing: -0.03em;
}

.bb-month-billing {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 9px;
}

.bb-month-header .bb-period-status {
	display: inline-flex;
	color: inherit;
	font-size: 9px;
	letter-spacing: 0;
	text-transform: none;
}

.bb-month-header .bb-period-status-accruing { color: #9fc6ff; border-color: rgba(159, 198, 255, 0.28); background: rgba(70, 133, 222, 0.18); }
.bb-month-header .bb-period-status-awaiting { color: #ffd98c; border-color: rgba(255, 217, 140, 0.28); background: rgba(202, 137, 23, 0.18); }
.bb-month-header .bb-period-status-invoiced { color: #cbbcff; border-color: rgba(203, 188, 255, 0.3); background: rgba(117, 87, 220, 0.2); }
.bb-month-header .bb-period-status-paid { color: #8fe0ad; border-color: rgba(143, 224, 173, 0.3); background: rgba(42, 154, 85, 0.18); }

.bb-month-header .bb-month-invoice {
	display: inline;
	max-width: 360px;
	color: #c8cfda;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
	overflow-wrap: anywhere;
}

.bb-month-facts {
	display: flex;
	align-items: center;
	gap: 14px;
}

.bb-month-facts span {
	letter-spacing: 0;
	text-transform: none;
}

.bb-month-facts strong {
	padding: 8px 11px;
	border-radius: 10px;
	background: rgba(215, 255, 79, 0.13);
	color: var(--bb-accent);
	font-size: 13px;
	font-variant-numeric: tabular-nums;
}

.bb-cost-summary .bb-stats-grid {
	margin-bottom: 0;
}

.bb-cost-summary .bb-stat-card {
	min-height: 148px;
}

.bb-entry-row {
	padding: 18px 26px;
	border-bottom: 1px solid #edf0f4;
	transition: background 0.15s ease;
}

.bb-entry-row:hover {
	background: #fbfcfd;
}

.bb-entry-row.is-hidden-client {
	background: repeating-linear-gradient(-45deg, #fff, #fff 10px, #fafafa 10px, #fafafa 20px);
}

.bb-entry-main h3 {
	margin: 0;
	font-size: 15px;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.bb-entry-main p {
	max-width: 720px;
	margin: 6px 0 0;
	color: var(--bb-muted);
	font-size: 12px;
	line-height: 1.55;
}

.bb-entry-title-line {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.bb-internal-badge {
	padding: 3px 7px;
	border-radius: 999px;
	background: #fff0d9;
	color: #9a5b00;
	font-size: 9px;
	font-weight: 800;
	text-transform: uppercase;
}

.bb-entry-kind,
.bb-locked-badge {
	padding: 3px 7px;
	border-radius: 999px;
	font-size: 9px;
	font-weight: 800;
	text-transform: uppercase;
	white-space: nowrap;
}

.bb-entry-kind-free { background: #eef1f5; color: #596579; }
.bb-entry-kind-excluded { background: #fcecec; color: #a83a3a; }
.bb-locked-badge { background: #f0ecff; color: #5d42ae; }

.bb-row-locked {
	color: #8c95a5;
	font-size: 10px;
	font-weight: 750;
}

.bb-entry-metric {
	font-size: 13px;
	font-variant-numeric: tabular-nums;
}

.bb-entry-metric strong {
	font-size: 14px;
}

.bb-entry-actions {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 5px;
}

.bb-entry-actions form {
	margin: 0;
}

.bb-row-danger {
	color: #b42318;
}

.bb-empty-state,
.bb-empty-filter,
.bb-panel-notice {
	padding: 44px 26px;
	text-align: center;
	color: var(--bb-muted);
}

.bb-todo-panel {
	padding: 28px;
	border: 1px solid var(--bb-line);
	border-radius: 0 20px 20px 20px;
	background: rgba(255, 255, 255, 0.9);
}

.bb-todo-empty {
	display: flex;
	min-height: 310px;
	padding: 46px 24px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border: 1px dashed #d6dce6;
	border-radius: 16px;
	background: linear-gradient(145deg, #f8f9ff 0%, #fff 72%);
	text-align: center;
}

.bb-todo-empty-icon {
	display: inline-flex;
	width: 52px;
	height: 52px;
	align-items: center;
	justify-content: center;
	border-radius: 16px;
	background: var(--bb-accent);
	color: var(--bb-accent-ink);
	font-size: 22px;
	font-weight: 900;
}

.bb-todo-empty .bb-eyebrow {
	margin: 18px 0 7px;
}

.bb-todo-empty h2 {
	margin: 0;
	font-size: clamp(27px, 4vw, 38px);
	letter-spacing: -0.04em;
}

.bb-todo-empty p:last-child {
	max-width: 560px;
	margin: 12px 0 0;
	color: var(--bb-muted);
	font-size: 14px;
}

.bb-app-footer {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 2px 0;
	color: #8b95a6;
	font-size: 11px;
}

.bb-ai-info-link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 5px 2px;
	border: 0;
	background: transparent;
	color: #667085;
	font: inherit;
	font-size: 11px;
	font-weight: 750;
	line-height: 1.35;
	text-decoration: underline;
	text-decoration-color: #c2c8d2;
	text-decoration-style: dotted;
	text-underline-offset: 3px;
	cursor: pointer;
}

.bb-ai-info-link:hover {
	color: #4f46e5;
	text-decoration-color: currentColor;
}

.bb-ai-info-link:focus-visible {
	outline: 3px solid rgba(79, 70, 229, 0.24);
	outline-offset: 3px;
	border-radius: 7px;
}

.bb-ai-info-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 17px;
	height: 17px;
	border: 1px solid #cbd1db;
	border-radius: 50%;
	color: #596274;
	font-size: 10px;
	font-weight: 900;
	text-decoration: none;
}

.bb-dialog {
	width: min(760px, calc(100vw - 30px));
	max-height: calc(100vh - 40px);
	overflow: auto;
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 35px 90px rgba(18, 24, 38, 0.3);
}

.bb-dialog::backdrop {
	background: rgba(13, 18, 28, 0.62);
	backdrop-filter: blur(5px);
}

.bb-dialog form {
	padding: 26px;
}

.bb-dialog-small {
	width: min(560px, calc(100vw - 30px));
}

.bb-create-client-dialog {
	width: min(780px, calc(100vw - 30px));
}

.bb-ai-dialog {
	width: min(650px, calc(100vw - 30px));
}

.bb-ai-dialog-inner,
.bb-pwa-dialog-inner {
	padding: 26px;
}

.bb-pwa-dialog {
	width: min(620px, calc(100vw - 30px));
}

.bb-pwa-install-options {
	display: grid;
	gap: 12px;
}

.bb-pwa-install-options section {
	display: flex;
	align-items: flex-start;
	gap: 13px;
	padding: 15px;
	border: 1px solid var(--bb-line);
	border-radius: 13px;
	background: #f8f9fb;
}

.bb-pwa-step {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 30px;
	width: 30px;
	height: 30px;
	border-radius: 10px;
	background: var(--bb-ink);
	color: #fff;
	font-size: 12px;
	font-weight: 850;
}

.bb-pwa-install-options h3 {
	margin: 1px 0 5px;
	color: var(--bb-ink);
	font-size: 14px;
}

.bb-pwa-install-options p {
	margin: 0;
	color: var(--bb-muted);
	font-size: 13px;
	line-height: 1.55;
}

.bb-pwa-security-note {
	margin: 16px 0 0;
	padding: 13px 14px;
	border-left: 3px solid var(--bb-accent);
	border-radius: 0 10px 10px 0;
	background: #f7faee;
	color: #4b5565;
	font-size: 12px;
	line-height: 1.55;
}

.bb-ai-dialog-content {
	color: #4b5565;
	font-size: 14px;
	line-height: 1.7;
}

.bb-ai-dialog-content p {
	margin: 0 0 15px;
}

.bb-ai-dialog-content ul {
	margin: -5px 0 18px;
	padding-left: 22px;
}

.bb-ai-dialog-content li + li {
	margin-top: 5px;
}

.bb-ai-dialog-emphasis {
	padding: 14px 16px;
	border-left: 3px solid var(--bb-accent);
	border-radius: 0 10px 10px 0;
	background: #f7faee;
	color: var(--bb-ink);
}

.bb-ai-dialog-content > :last-child {
	margin-bottom: 0;
}

.bb-dialog-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 20px;
	margin-bottom: 22px;
}

.bb-dialog-header .bb-eyebrow {
	margin-top: 0;
}

.bb-dialog h2 {
	font-size: 28px;
}

.bb-dialog-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: #f2f4f7;
	color: #475467;
	font-size: 24px;
	cursor: pointer;
}

.bb-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 15px;
}

.bb-form-grid label,
.bb-dialog-select {
	display: flex;
	flex-direction: column;
	gap: 7px;
	color: #4b5565;
	font-size: 12px;
	font-weight: 750;
}

.bb-form-grid label small {
	color: var(--bb-muted);
	font-size: 10px;
	font-weight: 600;
}

.bb-create-client-section {
	margin: 0;
	padding: 20px 0;
	border: 0;
	border-top: 1px solid var(--bb-line);
}

.bb-create-client-section:first-of-type {
	padding-top: 0;
	border-top: 0;
}

.bb-create-client-section legend {
	margin: 0 0 14px;
	padding: 0;
	color: var(--bb-ink);
	font-size: 14px;
	font-weight: 850;
}

.bb-create-client-password-fields {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: 15px;
}

.bb-vat-readonly {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 4px 12px;
	min-height: 44px;
	padding: 9px 12px;
	border: 1px solid #dce1e9;
	border-radius: 10px;
	background: #f5f7fa;
}

.bb-vat-readonly > span {
	color: #4b5565;
	font-size: 12px;
	font-weight: 750;
}

.bb-vat-readonly > strong {
	font-size: 14px;
}

.bb-vat-readonly > small {
	grid-column: 1 / -1;
	color: var(--bb-muted);
	font-size: 10px;
}

.bb-field-wide {
	grid-column: 1 / -1;
}

.bb-entry-form textarea {
	resize: vertical;
	min-height: 96px;
}

.bb-check-field {
	flex-direction: row !important;
	align-items: center;
}

.bb-check-field input {
	width: 18px;
	min-height: 18px;
}

.bb-live-total {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 20px;
	padding: 16px;
	border-radius: 12px;
	background: #f5f7fa;
}

.bb-live-total span {
	font-size: 12px;
	font-weight: 700;
	color: var(--bb-muted);
}

.bb-live-total strong {
	font-size: 20px;
	font-variant-numeric: tabular-nums;
}

.bb-dialog-actions {
	justify-content: flex-end;
	margin-top: 22px;
}

.bb-dialog-copy {
	margin: -6px 0 20px;
	color: var(--bb-muted);
	font-size: 14px;
}

.bb-password-fields {
	display: grid;
	gap: 14px;
}

.bb-password-fields label {
	display: flex;
	flex-direction: column;
	gap: 7px;
	color: #4b5565;
	font-size: 12px;
	font-weight: 750;
}

.bb-password-tools {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}

.bb-password-tools .bb-button {
	min-height: 38px;
	padding: 0 12px;
	font-size: 12px;
}

.bb-password-feedback {
	display: grid;
	gap: 8px;
	margin-top: 16px;
}

.bb-password-strength {
	display: grid;
	grid-template-columns: 92px minmax(0, 1fr);
	align-items: center;
	gap: 10px;
}

.bb-password-strength > span {
	position: relative;
	display: block;
	height: 7px;
	overflow: hidden;
	border-radius: 999px;
	background: #e8ebf0;
}

.bb-password-strength > span::after {
	content: '';
	position: absolute;
	inset: 0 auto 0 0;
	width: 0;
	border-radius: inherit;
	background: #98a2b3;
	transition: width 160ms ease, background-color 160ms ease;
}

.bb-password-strength[data-strength="weak"] > span::after { width: 34%; background: #d92d20; }
.bb-password-strength[data-strength="good"] > span::after { width: 68%; background: #d97706; }
.bb-password-strength[data-strength="strong"] > span::after { width: 100%; background: #168348; }

.bb-password-strength p,
.bb-password-match {
	margin: 0;
	color: var(--bb-muted);
	font-size: 12px;
}

.bb-password-match.is-valid { color: #15703b; }
.bb-password-match.is-invalid { color: #b42318; }

.bb-password-warning {
	margin-top: 17px;
	padding: 13px 14px;
	border: 1px solid #e0e4ea;
	border-radius: 11px;
	background: #f7f8fa;
	color: #5e6878;
	font-size: 12px;
	line-height: 1.5;
}

.bb-password-warning strong {
	color: var(--bb-ink);
}

.bb-period-choice-list {
	display: grid;
	margin: 0 0 10px;
	padding: 0;
	gap: 8px;
	border: 0;
}

.bb-period-choice-list legend {
	margin-bottom: 8px;
	color: #4b5565;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.bb-period-choice {
	display: flex;
	min-height: 54px;
	padding: 10px 12px;
	align-items: center;
	gap: 11px;
	border: 1px solid #dfe4ec;
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
}

.bb-period-choice:hover,
.bb-period-choice.is-selected {
	border-color: #8a79dc;
	background: #faf9ff;
}

.bb-period-choice.is-disabled {
	opacity: 0.48;
	cursor: not-allowed;
}

.bb-period-choice input {
	width: 18px;
	min-height: 18px;
	margin: 0;
}

.bb-period-choice > span {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 2px;
}

.bb-period-choice strong {
	color: var(--bb-ink);
	font-size: 13px;
}

.bb-period-choice small {
	color: var(--bb-muted);
	font-size: 10px;
}

.bb-period-selection {
	margin: 10px 0 16px;
	color: #5d42ae;
	font-size: 12px;
	font-weight: 750;
}

.bb-invoice-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 15px;
}

.bb-period-form-note {
	margin: 14px 0 0;
	padding: 11px 12px;
	border-radius: 10px;
	background: #f5f7fa;
	color: var(--bb-muted);
	font-size: 11px;
	line-height: 1.45;
}

.bb-login-shell {
	position: relative;
	left: 50%;
	display: grid;
	place-items: center;
	width: 100vw;
	min-height: 80vh;
	margin-left: -50vw;
	padding: 40px 20px;
	background:
		radial-gradient(circle at 85% 5%, rgba(215, 255, 79, 0.23), transparent 22rem),
		#f4f6f9;
}

.bb-login-card {
	width: min(430px, 100%);
	padding: 34px;
	border: 1px solid var(--bb-line);
	border-radius: 22px;
	background: #fff;
	box-shadow: var(--bb-shadow);
}

.bb-login-card h1 {
	font-size: 38px;
}

.bb-login-card > p:not(.bb-eyebrow) {
	margin: 12px 0 24px;
	color: var(--bb-muted);
	font-size: 14px;
	line-height: 1.55;
}

.bb-login-card > .bb-login-security-note {
	margin: -4px 0 0;
	color: #697386;
	font-size: 11px;
	line-height: 1.5;
}

.bb-login-card label {
	display: block;
	margin-bottom: 7px;
	font-size: 12px;
	font-weight: 750;
}

.bb-login-card input[type="text"],
.bb-login-card input[type="password"] {
	width: 100%;
	min-height: 48px;
	margin-bottom: 14px;
	padding: 11px 13px;
	border: 1px solid #dce1e9;
	border-radius: 11px;
	background: #fff;
	font: inherit;
}

.bb-login-card .login-remember {
	margin: 2px 0 16px;
}

.bb-login-card .login-submit input {
	width: 100%;
	min-height: 48px;
	border: 0;
	border-radius: 11px;
	background: var(--bb-ink);
	color: #fff;
	font: inherit;
	font-weight: 800;
	cursor: pointer;
}

.bb-reset-link {
	display: inline-block;
	margin-top: 15px;
	color: #4f46e5;
	font-size: 12px;
	font-weight: 700;
}

@media (max-width: 1100px) {
	.bb-client-hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bb-work-plan-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bb-task-toolbar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.bb-task-toolbar label:first-child { grid-column: span 2; }
	.bb-period-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bb-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bb-ledger-toolbar { align-items: flex-start; flex-direction: column; }
	.bb-filters { width: 100%; flex-wrap: wrap; }
	.bb-filters input { flex: 1; min-width: 210px; }
	.bb-ledger-head { display: none; }
	.bb-entry-row,
	.bb-billing-app.has-admin .bb-entry-row {
		grid-template-columns: minmax(260px, 1fr) repeat(3, auto);
	}
	.bb-entry-metric { position: relative; padding-top: 16px; }
	.bb-entry-metric::before {
		content: attr(data-label);
		position: absolute;
		top: 0;
		left: 0;
		color: #98a1b1;
		font-size: 9px;
		font-weight: 800;
		letter-spacing: 0.08em;
		text-transform: uppercase;
	}
	.bb-entry-actions { grid-column: 1 / -1; flex-direction: row; }
	.bb-document-card { grid-template-columns: auto minmax(0, 1fr); }
	.bb-document-actions { grid-column: 2; max-width: none; justify-content: flex-start; }
}

@media (max-width: 760px) {
	.bb-billing-app { padding: 26px 14px 40px; }
	.bb-app-header { flex-direction: column; }
	.bb-header-actions { width: 100%; }
	.bb-header-actions .bb-button { flex: 1; }
	.bb-client-hub-toolbar { align-items: stretch; flex-direction: column; }
	.bb-client-hub-search { width: 100%; }
	.bb-client-hub-grid { grid-template-columns: 1fr; }
	.bb-client-hub-card { min-height: 340px; }
	.bb-task-toolbar { grid-template-columns: 1fr 1fr; }
	.bb-task-toolbar label:first-child { grid-column: 1 / -1; }
	.bb-task-card { grid-template-columns: 18px minmax(0, 1fr); align-items: start; }
	.bb-task-actions { grid-column: 2; justify-content: flex-start; }
	.bb-todo-heading { flex-direction: column; }
	.bb-todo-heading .bb-button { width: 100%; }
	.bb-admin-strip { align-items: flex-start; flex-direction: column; }
	.bb-admin-strip-actions { width: 100%; align-items: flex-start; flex-direction: column; }
	.bb-assignment-summary { align-items: flex-start; flex-wrap: wrap; }
	.bb-create-client-button { width: 100%; }
	.bb-panel-tabs { margin-top: 20px; padding: 0; gap: 4px; }
	.bb-panel-tab { min-width: 0; min-height: 48px; padding: 0 12px; flex: 1; justify-content: center; }
	.bb-client-data-panel { padding: 20px; border-radius: 0 16px 16px 16px; }
	.bb-client-data-grid { grid-template-columns: 1fr; }
	.bb-company-details { grid-template-columns: 1fr; }
	.bb-company-details > .bb-company-detail-wide { grid-column: auto; }
	.bb-client-vat-form { grid-template-columns: 1fr; }
	.bb-client-vat-form .bb-button { width: 100%; }
	.bb-period-section,
	.bb-cost-summary,
	.bb-documents-section { padding: 20px; }
	.bb-section-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
	.bb-period-heading-actions { align-items: flex-start; text-align: left; }
	.bb-stats-grid { grid-template-columns: 1fr 1fr; }
	.bb-stat-card { min-height: 150px; padding: 18px; }
	.bb-ledger-toolbar { padding: 20px; }
	.bb-filters { display: grid; grid-template-columns: 1fr 1fr; }
	.bb-search-field { grid-column: 1 / -1; }
	.bb-filters input,
	.bb-filters select { width: 100%; min-width: 0; }
	.bb-entry-row,
	.bb-billing-app.has-admin .bb-entry-row {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 13px 18px;
		padding: 18px 20px;
	}
	.bb-entry-main { grid-column: 1 / -1; }
	.bb-day-label { padding-left: 20px; }
	.bb-month-header { padding: 20px; }
	.bb-form-grid { grid-template-columns: 1fr; }
	.bb-field-wide { grid-column: auto; }
	.bb-dialog form { padding: 20px; }
	.bb-ai-dialog-inner,
	.bb-pwa-dialog-inner { padding: 20px; }
	.bb-ai-dialog h2 { font-size: 24px; }
	.bb-pwa-dialog h2 { font-size: 24px; }
	.bb-password-tools { display: grid; grid-template-columns: 1fr; }
	.bb-password-tools .bb-button { width: 100%; }
	.bb-create-client-password-fields { grid-template-columns: 1fr; }
	.bb-password-strength { grid-template-columns: 76px minmax(0, 1fr); }
	.bb-todo-panel { padding: 18px; }
	.bb-todo-empty { min-height: 260px; padding: 36px 18px; }
	.bb-invoice-fields { grid-template-columns: 1fr; }
	.bb-document-card { padding: 17px; }
	.bb-document-upload { align-items: flex-start; flex-direction: column; }
	.bb-document-upload input[type="file"] { width: 100%; }
	.bb-app-footer { flex-direction: column; }
}

@media (max-width: 480px) {
	.bb-client-hub-card-actions { grid-template-columns: 1fr; }
	.bb-work-plan-summary { grid-template-columns: 1fr; }
	.bb-task-toolbar { grid-template-columns: 1fr; }
	.bb-task-toolbar label:first-child { grid-column: auto; }
	.bb-task-toolbar-status { flex-direction: column; }
	.bb-task-group { padding: 15px; }
	.bb-task-card { grid-template-columns: 1fr; }
	.bb-task-drag { display: none; }
	.bb-task-actions { grid-column: auto; }
	.bb-panel-tab-icon { display: none; }
	.bb-panel-tab { padding: 0 7px; font-size: 12px; }
	.bb-client-data-intro { align-items: flex-start; }
	.bb-client-avatar { width: 56px; height: 56px; flex-basis: 56px; border-radius: 17px; font-size: 14px; }
	.bb-client-details > div { grid-template-columns: 1fr; gap: 4px; }
	.bb-client-company-card .bb-client-info-heading { align-items: flex-start; flex-wrap: wrap; }
	.bb-company-edit-button { margin: 2px 0 0 52px; text-align: left; }
	.bb-period-grid { grid-template-columns: 1fr; }
	.bb-period-card { min-height: 122px; }
	.bb-period-selection-bar { align-items: flex-start; flex-direction: column; }
	.bb-stats-grid { grid-template-columns: 1fr; }
	.bb-filters { grid-template-columns: 1fr; }
	.bb-search-field { grid-column: auto; }
	.bb-entry-row,
	.bb-billing-app.has-admin .bb-entry-row { grid-template-columns: 1fr; }
	.bb-entry-main,
	.bb-entry-actions { grid-column: auto; }
	.bb-month-header { align-items: flex-start; flex-direction: column; }
	.bb-document-card { grid-template-columns: 1fr; }
	.bb-document-icon { width: 44px; height: 50px; }
	.bb-document-actions { grid-column: auto; justify-content: flex-start; }
	.bb-document-actions .bb-button { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
	.bb-client-hub-card,
	.bb-client-hub-card:hover {
		transform: none;
		transition: none;
	}
}

@media print {
	.site-header,
	.site-footer,
	header:not(.bb-app-header):not(.bb-month-header),
	footer:not(.bb-app-footer),
	.bb-header-actions,
	.bb-admin-strip,
	.bb-panel-tabs,
	.bb-client-data-panel,
	.bb-todo-panel,
	.bb-period-section,
	.bb-ai-info-link,
	.bb-ai-dialog,
	.bb-filters,
	.bb-entry-actions,
	.bb-document-actions,
	.bb-document-upload,
	.bb-toast { display: none !important; }
	#bb-tab-rozliczenie { display: block !important; }
	.bb-billing-app {
		position: static;
		width: 100%;
		max-width: none;
		margin: 0;
		padding: 0;
		background: #fff;
	}
	.bb-ledger-card { box-shadow: none; }
	.bb-stat-card { box-shadow: none; break-inside: avoid; }
	.bb-month-header {
		break-after: avoid;
		border: 1px solid #d9dee7;
		background: #fff !important;
		color: #171e2c !important;
	}
	.bb-month-header h3,
	.bb-month-header span,
	.bb-month-header strong { color: #171e2c !important; }
	.bb-stat-card.bb-stat-time,
	.bb-stat-card.bb-stat-total {
		border: 1px solid #d9dee7;
		background: #fff !important;
		color: #171e2c !important;
	}
	.bb-stat-card.bb-stat-time *,
	.bb-stat-card.bb-stat-total * { color: #171e2c !important; }
	.bb-entry-row { break-inside: avoid; }
}

