:root {
	--page: #eef0f6;
	--surface: #ffffff;
	--work: #f7f7fc;
	--panel: #fbfbfe;
	--line: #e8e9f1;
	--line-strong: #dfe1eb;
	--ink: #1b1c24;
	--muted: #9698a7;
	--accent: #35c85a;
	--accent-soft: #e9fbea;
	--text: #1b1c24;
	--radius-sm: 8px;
	--radius: 10px;
	--radius-lg: 16px;
	--radius-pill: 999px;
	--sidebar-width: 244px;
	font-family:
		Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
		sans-serif;
	color: var(--ink);
	background: var(--page);
	font-synthesis: none;
}

.client-extractor {
	border-color: #b9efc3;
	background: linear-gradient(145deg, #f6fff7 0%, #fff 70%);
}

.client-extractor textarea {
	resize: vertical;
	min-height: 116px;
}

.client-extractor-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 16px;
}

.client-extractor-actions small {
	color: #65708a;
}

.client-extractor-result {
	margin-top: 14px;
	padding: 12px 14px;
	border-radius: 10px;
	background: #edf8f1;
	color: #245c38;
	font-size: 14px;
	line-height: 1.45;
}

.client-extractor-result.warning {
	background: #fff7e7;
	color: #785317;
}

* {
	box-sizing: border-box;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

[hidden] {
	display: none !important;
}

html {
	min-width: 320px;
	min-height: 100%;
}

body {
	min-width: 320px;
	min-height: 100vh;
	margin: 0;
	background:
		radial-gradient(circle at 50% 20%, #f8f8fb 0, transparent 42%),
		var(--page);
}

button,
input {
	font: inherit;
}

button,
a {
	-webkit-tap-highlight-color: transparent;
}

.page {
	display: grid;
	min-height: 100vh;
	place-items: center;
	padding: clamp(18px, 5vw, 70px);
}

.login-screen {
	display: grid;
	width: min(460px, 100%);
	place-items: center;
}

.login-card {
	display: grid;
	gap: 18px;
	width: 100%;
	padding: 30px;
	border: 1px solid rgba(255, 255, 255, 0.92);
	border-radius: 24px;
	background: rgba(255, 255, 255, 0.96);
	box-shadow:
		0 32px 70px rgba(41, 42, 62, 0.13),
		0 8px 24px rgba(41, 42, 62, 0.06);
}

.login-brand {
	display: flex;
	align-items: center;
	gap: 14px;
}

.login-brand p,
.login-brand h1,
.login-copy {
	margin: 0;
}

.login-brand p {
	color: var(--muted);
	font-size: 11px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.login-brand h1 {
	margin-top: 4px;
	font-size: 28px;
	line-height: 1.05;
}

.login-copy {
	color: #767887;
	font-size: 13px;
	font-weight: 650;
	line-height: 1.45;
}

.login-field {
	display: grid;
	gap: 7px;
}

.login-field span {
	color: #4f5260;
	font-size: 12px;
	font-weight: 900;
}

.login-field input {
	width: 100%;
	min-height: 48px;
	border: 1px solid #dce6df;
	border-radius: 13px;
	padding: 0 14px;
	background: #fbfbfe;
	color: var(--ink);
	font: inherit;
	font-weight: 750;
	outline: none;
}

.login-field input:focus {
	border-color: #91dea4;
	background: #fff;
	box-shadow: 0 0 0 4px rgba(76, 217, 100, 0.12);
}

.login-error {
	border: 1px solid #efc1c5;
	border-radius: 12px;
	padding: 11px 12px;
	background: #fff4f5;
	color: #a1222e;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.35;
}

.login-submit {
	display: inline-flex;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 13px;
	background: linear-gradient(135deg, #4cd964, #24b84f);
	color: white;
	font: inherit;
	font-size: 14px;
	font-weight: 900;
	cursor: pointer;
	box-shadow: 0 14px 28px rgba(53, 200, 90, 0.2);
}

.login-submit:disabled {
	cursor: wait;
	opacity: 0.72;
}

.app-shell {
	display: grid;
	grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
	width: min(1440px, 100%);
	min-height: min(860px, calc(100vh - clamp(36px, 10vw, 140px)));
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.92);
	border-radius: 30px;
	background: var(--surface);
	box-shadow:
		0 38px 80px rgba(41, 42, 62, 0.12),
		0 8px 24px rgba(41, 42, 62, 0.06);
}

.sidebar {
	z-index: 3;
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 32px 20px 22px;
	border-right: 1px solid var(--line);
	background: #ffffff;
}

.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 48px;
	padding: 0 8px;
	color: inherit;
	text-decoration: none;
}

.brand-mark {
	display: grid;
	width: 34px;
	height: 34px;
	flex: 0 0 auto;
	place-items: center;
	border-radius: 10px;
	background: linear-gradient(145deg, #6ee984, var(--accent));
	box-shadow: 0 8px 18px rgba(53, 200, 90, 0.2);
}

.brand-mark svg {
	width: 18px;
	fill: white;
}

.ti {
	display: inline-block;
	flex: 0 0 auto;
	color: currentColor;
	line-height: 1;
	text-align: center;
}

.brand-mark .ti {
	font-size: 18px;
	color: white;
}

.brand-copy strong,
.brand-copy small {
	display: block;
}

.brand-copy strong {
	font-size: 15px;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.brand-copy small {
	margin-top: 4px;
	color: var(--muted);
	font-size: 11px;
}

.nav {
	margin-top: 42px;
}

.nav-caption {
	margin: 22px 12px 8px;
	color: #b0b1bc;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.nav-item {
	display: flex;
	align-items: center;
	gap: 13px;
	width: 100%;
	min-height: 46px;
	margin: 3px 0;
	padding: 0 13px;
	border: 0;
	border-radius: 12px;
	background: transparent;
	color: #4b4d58;
	font-size: 13px;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
	transition:
		background 160ms ease,
		color 160ms ease,
		transform 160ms ease;
}

.nav-item:hover {
	background: #f5f8f6;
	color: var(--ink);
}

.nav-item:disabled,
.nav-item[aria-disabled="true"] {
	cursor: not-allowed;
	opacity: 0.42;
}

.nav-item:disabled:hover,
.nav-item[aria-disabled="true"]:hover {
	background: transparent;
	color: #4b4d58;
}

.nav-item.active {
	background: linear-gradient(135deg, #4cd964, #24b84f);
	color: white;
	box-shadow: 0 9px 22px rgba(53, 200, 90, 0.2);
}

.nav-item:active {
	transform: scale(0.985);
}

.nav-item svg {
	width: 20px;
	height: 20px;
	flex: 0 0 auto;
	fill: currentColor;
}

.nav-item .ti {
	width: 20px;
	height: 20px;
	font-size: 20px;
	line-height: 20px;
}

.sidebar-footer {
	margin-top: auto;
	padding-top: 26px;
}

.profile-placeholder {
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr) 18px;
	gap: 10px;
	align-items: center;
	width: 100%;
	margin-top: 18px;
	padding: 16px 8px 0;
	border: 0;
	border-top: 1px solid var(--line);
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.profile-placeholder:hover {
	color: var(--accent);
}

.profile-placeholder .avatar,
.top-avatar {
	display: block;
	border-radius: 50%;
	background:
		radial-gradient(circle at 50% 38%, #e8fbea 0 24%, transparent 25%),
		radial-gradient(circle at 50% 92%, #d6f5dc 0 40%, transparent 41%),
		#f3fff5;
}

.profile-placeholder .avatar {
	width: 34px;
	height: 34px;
}

.profile-placeholder strong,
.profile-placeholder small {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.profile-placeholder strong {
	font-size: 11px;
}

.profile-placeholder small {
	margin-top: 3px;
	color: var(--muted);
	font-size: 9px;
}

.profile-placeholder > svg {
	width: 18px;
	fill: var(--muted);
}

.profile-placeholder > .ti {
	width: 18px;
	font-size: 18px;
	color: var(--muted);
}

.workspace {
	display: grid;
	grid-template-rows: auto minmax(0, 1fr);
	min-width: 0;
	background: var(--work);
}

.topbar {
	display: flex;
	align-items: center;
	min-height: 112px;
	padding: 24px 34px;
	border-bottom: 1px solid var(--line);
	background: #ffffff;
}

.page-heading {
	min-width: 0;
}

.page-heading p {
	margin: 0 0 6px;
	color: var(--muted);
	font-size: 11px;
	font-weight: 600;
}

.page-heading h1 {
	margin: 0;
	font-size: clamp(26px, 3vw, 36px);
	line-height: 1;
	letter-spacing: -0.045em;
}

.topbar-actions {
	position: relative;
	display: flex;
	align-items: center;
	gap: 9px;
	margin-left: auto;
}

.topbar-actions > button,
.mobile-menu {
	display: grid;
	width: 40px;
	height: 40px;
	padding: 0;
	place-items: center;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--surface);
	color: #555764;
	cursor: pointer;
}

.topbar-actions > button:hover {
	border-color: var(--line-strong);
	background: #f7f6fb;
}

.topbar-actions > button {
	position: relative;
}

.topbar-actions svg,
.mobile-menu svg {
	width: 19px;
	fill: currentColor;
}

.topbar-actions .ti,
.mobile-menu .ti {
	width: 19px;
	font-size: 19px;
	line-height: 19px;
}

.top-avatar-button {
	width: 40px;
	height: 40px;
	padding: 0;
	border-radius: 50% !important;
}

.top-avatar-button .top-avatar {
	width: 32px;
	height: 32px;
	border: 0;
}

.topbar-badge {
	position: absolute;
	top: -5px;
	right: -5px;
	display: grid;
	min-width: 18px;
	height: 18px;
	place-items: center;
	border: 2px solid #fff;
	border-radius: 999px;
	background: #ef3d55;
	color: #fff;
	font-size: 10px;
	font-weight: 900;
}

.topbar-popover {
	position: absolute;
	top: calc(100% + 12px);
	right: 0;
	z-index: 10;
	width: min(390px, calc(100vw - 32px));
	border: 1px solid #e1ece4;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 24px 54px rgba(38, 37, 58, 0.16);
}

.global-search-popover,
.notifications-popover,
.profile-popover {
	padding: 12px;
}

.global-search-field {
	display: grid;
	grid-template-columns: 18px minmax(0, 1fr);
	gap: 9px;
	align-items: center;
	min-height: 44px;
	padding: 0 12px;
	border: 1px solid #dfe9e2;
	border-radius: 12px;
	background: #fbfbfe;
	color: var(--muted);
}

.global-search-field input {
	width: 100%;
	border: 0;
	background: transparent;
	color: var(--ink);
	font: inherit;
	font-size: 13px;
	font-weight: 750;
	outline: none;
}

.global-search-results,
.notifications-popover [data-notifications-list] {
	display: grid;
	gap: 7px;
	margin-top: 10px;
}

.notifications-popover {
	width: min(420px, calc(100vw - 32px));
}

.notification-popover-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 2px 2px 11px;
	border-bottom: 1px solid #e7f0e9;
}

.notification-popover-head > div {
	display: grid;
	gap: 3px;
}

.notification-popover-head > small {
	flex: 0 0 auto;
	border-radius: 999px;
	padding: 5px 8px;
	background: #f0f7f2;
	color: #5b6d60;
	font-size: 10px;
	font-weight: 900;
}

.notifications-popover [data-notifications-list] {
	max-height: min(520px, calc(100vh - 180px));
	overflow-y: auto;
	padding-right: 3px;
	scrollbar-color: #cfe7d5 transparent;
	scrollbar-width: thin;
}

.global-search-results button,
.notifications-popover [data-notifications-list] button,
.profile-popover button {
	display: grid;
	width: 100%;
	gap: 3px;
	border: 1px solid #e7f0e9;
	border-radius: 12px;
	padding: 10px 12px;
	background: #fbfbfe;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.global-search-results button:hover,
.notifications-popover [data-notifications-list] button:hover,
.profile-popover button:hover {
	border-color: #ccefd4;
	background: #f5fff6;
}

.global-search-results span,
.popover-head span,
.notification-kind {
	color: var(--accent);
	font-size: 10px;
	font-weight: 900;
	text-transform: uppercase;
}

.global-search-results strong,
.notifications-popover strong {
	font-size: 13px;
}

.global-search-results small,
.notifications-popover small,
.global-search-empty,
.profile-popover small {
	color: var(--muted);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.35;
}

.global-search-empty {
	padding: 12px;
	text-align: center;
}

.popover-head {
	display: grid;
	gap: 3px;
	margin-bottom: 10px;
}

.popover-head strong {
	font-size: 16px;
}

.notification-kind.tickets {
	color: #bc6b00;
}

.notifications-popover [data-notifications-list] .notification-card {
	position: relative;
	display: grid;
	height: auto;
	min-height: 96px;
	align-content: start;
	gap: 7px;
	border-left: 4px solid #59a96b;
	padding: 11px 38px 11px 12px;
	overflow: visible;
}

.notifications-popover [data-notifications-list] .notification-card.tickets {
	border-left-color: #d99432;
}

.notifications-popover [data-notifications-list] .notification-card.due-today {
	background: #fff8f3;
	border-color: #ed765f;
}

.notifications-popover [data-notifications-list] .notification-card.due-soon {
	background: #fffdf7;
}

.notification-card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-width: 0;
}

.notification-kind {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	min-width: 0;
}

.notification-kind .ti {
	flex: 0 0 14px;
	width: 14px;
	font-size: 14px;
	line-height: 14px;
}

.notification-card-head time {
	flex: 0 0 auto;
	color: #737b76;
	font-size: 10px;
	font-weight: 900;
}

.notification-card > strong {
	display: block;
	overflow: hidden;
	color: #20242d;
	font-size: 13px;
	line-height: 1.25;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.notification-card-meta {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.notification-card-meta > span,
.notification-card-meta small {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.notification-card-meta > span {
	color: #444b51;
	font-size: 11px;
	font-weight: 800;
}

.notification-card-arrow {
	position: absolute;
	top: 50%;
	right: 11px;
	width: 16px !important;
	color: #9cac9f;
	font-size: 16px !important;
	transform: translateY(-50%);
}

.notification-empty {
	display: grid;
	min-height: 150px;
	place-items: center;
	align-content: center;
	gap: 7px;
	border: 1px dashed #dbe8de;
	border-radius: 12px;
	padding: 18px;
	background: #fbfdfb;
	color: var(--muted);
	text-align: center;
}

.notification-empty .ti {
	width: auto;
	color: #58a76a;
	font-size: 26px;
}

.notification-empty strong {
	color: #36423a;
	font-size: 13px;
}

.notification-empty span {
	font-size: 11px;
	font-weight: 700;
}

.profile-popover {
	width: min(260px, calc(100vw - 32px));
}

.profile-popover-user {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
	padding: 4px 4px 12px;
	border-bottom: 1px solid #e7f0e9;
}

.profile-popover-user .top-avatar {
	flex: 0 0 38px;
	width: 38px;
	height: 38px;
	border: 1px solid #dcefe1;
}

.profile-popover-user > div {
	display: grid;
	min-width: 0;
	gap: 3px;
}

.profile-popover-user strong,
.profile-popover-user small {
	display: block;
	line-height: 1.2;
}

.profile-popover button {
	grid-template-columns: 18px minmax(0, 1fr);
	align-items: center;
	gap: 9px;
	margin-top: 7px;
}

.mobile-menu {
	display: none;
	margin-right: 14px;
}

.layout-stage {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(250px, 31%);
	gap: 18px;
	min-height: 0;
	padding: 24px;
}

.layout-panel {
	position: relative;
	min-width: 0;
	min-height: clamp(420px, calc(100vh - 300px), 620px);
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 20px;
	background: var(--surface);
}

.layout-primary {
	align-self: start;
	min-height: auto;
	background:
		linear-gradient(rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.72)),
		#f3faf5;
}

.layout-primary > .layout-label,
.layout-primary > .empty-layout {
	display: none;
}

.overview-chart-card {
	display: grid;
	grid-template-rows: auto auto auto;
	gap: 14px;
	padding: 18px;
}

.overview-chart-head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 18px;
	flex-wrap: wrap;
}

.overview-chart-head p {
	margin: 0 0 5px;
	color: var(--muted);
	font-size: 11px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.overview-chart-head h2 {
	margin: 0;
	color: var(--ink);
	font-size: 22px;
	line-height: 1.1;
}

.overview-chart-filter {
	display: flex;
	align-items: end;
	gap: 10px;
	flex-wrap: wrap;
}

.overview-chart-filter label {
	display: grid;
	gap: 5px;
	min-width: 140px;
}

.overview-chart-filter span {
	color: var(--muted);
	font-size: 10px;
	font-weight: 900;
	text-transform: uppercase;
}

.overview-chart-filter input {
	min-height: 40px;
	border: 1px solid #dce6df;
	border-radius: 12px;
	padding: 0 12px;
	background: #fff;
	color: var(--ink);
	font: inherit;
	font-weight: 800;
}

.overview-chart-wrap {
	height: 320px;
	min-height: 260px;
	border: 1px solid rgba(76, 168, 98, 0.16);
	border-radius: 14px;
	background: #fff;
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-color: #cfe7d5 transparent;
	scrollbar-width: thin;
}

.overview-chart-svg {
	display: block;
	height: 320px;
	min-height: 260px;
}

.overview-chart-value {
	pointer-events: none;
}

.overview-chart-value rect {
	fill: #243d63;
	stroke: rgba(255, 255, 255, 0.92);
	stroke-width: 1;
}

.overview-chart-value.negative rect {
	fill: #b24c5b;
}

.overview-chart-value text {
	fill: #fff;
	font-size: 10px;
	font-weight: 900;
}

.overview-chart-note {
	margin: 0;
	color: var(--muted);
	font-size: 12px;
	font-weight: 700;
}

.overview-chart-empty {
	display: grid;
	min-height: 260px;
	place-items: center;
	color: var(--muted);
	font-size: 13px;
	font-weight: 800;
	text-align: center;
}

.layout-secondary {
	background: #fcfcfe;
}

.overview-side-panel {
	display: grid;
	align-content: start;
	gap: 14px;
	min-height: auto;
	padding: 14px;
	background: #fcfcfe;
}

.overview-quick-card,
.overview-mini-calendar-card {
	display: grid;
	gap: 14px;
	padding: 14px;
	border: 1px solid rgba(76, 168, 98, 0.16);
	border-radius: 16px;
	background: #fff;
}

.overview-mini-calendar-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.overview-mini-calendar-nav {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px;
	border: 1px solid #e3eee6;
	border-radius: 11px;
	background: #f8fbf9;
}

.overview-mini-calendar-nav button {
	display: grid;
	min-width: 30px;
	height: 30px;
	place-items: center;
	border: 0;
	border-radius: 8px;
	padding: 0 7px;
	background: transparent;
	color: #526158;
	font: inherit;
	font-size: 10px;
	font-weight: 900;
	cursor: pointer;
}

.overview-mini-calendar-nav button:hover {
	background: #fff;
	color: var(--accent);
	box-shadow: 0 3px 10px rgba(49, 93, 60, 0.09);
}

.overview-side-head p {
	margin: 0 0 5px;
	color: var(--muted);
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.overview-side-head h2 {
	margin: 0;
	font-size: 20px;
	line-height: 1.1;
}

.overview-quick-actions {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
}

.overview-quick-actions button {
	display: grid;
	min-width: 0;
	min-height: 76px;
	align-content: center;
	justify-items: center;
	gap: 7px;
	border: 1px solid #dcefe1;
	border-radius: 12px;
	background: #f7fff8;
	color: #33563b;
	font: inherit;
	font-size: 12px;
	font-weight: 800;
	cursor: pointer;
}

.overview-quick-actions button:hover {
	border-color: #cae8d0;
	background: #f4fff6;
	color: var(--accent);
}

.overview-quick-actions .ti {
	font-size: 22px;
}

.overview-mini-calendar-weekdays,
.overview-mini-calendar-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 5px;
}

.overview-mini-calendar-weekdays span {
	color: var(--muted);
	font-size: 10px;
	font-weight: 900;
	text-align: center;
	text-transform: uppercase;
}

.overview-mini-day {
	position: relative;
	display: grid;
	min-width: 0;
	aspect-ratio: 1;
	place-items: center;
	border: 1px solid transparent;
	border-radius: 10px;
	background: transparent;
	color: #3d3f4d;
	font: inherit;
	font-size: 12px;
	font-weight: 800;
	cursor: pointer;
}

.overview-mini-day i {
	position: absolute;
	right: 3px;
	bottom: 3px;
	display: grid;
	min-width: 15px;
	height: 15px;
	place-items: center;
	border: 2px solid #fff;
	border-radius: 999px;
	background: var(--accent);
	color: #fff;
	font-size: 8px;
	font-style: normal;
	line-height: 1;
}

.overview-mini-day:hover,
.overview-mini-day.active {
	border-color: #cae8d0;
	background: #f4fff6;
	color: var(--accent);
}

.overview-mini-day.today.active,
.overview-mini-day.today:hover {
	border-color: #a7d9b1;
	background: #f4fff6;
	color: var(--accent);
}

.overview-mini-day.today span {
	display: grid;
	width: 24px;
	height: 24px;
	place-items: center;
	border-radius: 50%;
	background: #1f2030;
	color: #fff;
}

.overview-mini-day.muted {
	color: #b7b8c3;
}

.overview-mini-day.past {
	opacity: 0.72;
}

.overview-upcoming-list {
	display: grid;
	gap: 7px;
	max-height: 360px;
	overflow-y: auto;
	padding-top: 3px;
	scrollbar-color: #cfe7d5 transparent;
	scrollbar-width: thin;
}

.overview-upcoming-title {
	color: var(--muted);
	font-size: 10px;
	font-weight: 900;
	text-transform: uppercase;
}

.overview-upcoming-item {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	gap: 10px;
	align-items: center;
	width: 100%;
	border: 1px solid #e7f0e9;
	border-radius: 12px;
	padding: 9px 10px;
	background: #fbfbfe;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.overview-upcoming-item:hover {
	border-color: #ccefd4;
	background: #f5fff6;
}

.overview-upcoming-item > span {
	color: var(--accent);
	font-size: 11px;
	font-weight: 900;
}

.overview-upcoming-item strong,
.overview-upcoming-item small {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.overview-upcoming-item strong {
	font-size: 13px;
}

.overview-upcoming-item small,
.overview-upcoming-empty {
	color: var(--muted);
	font-size: 11px;
	font-weight: 700;
}

.overview-upcoming-empty {
	display: grid;
	gap: 10px;
	border: 1px dashed #dbe8de;
	border-radius: 12px;
	padding: 12px;
	background: #fbfdfb;
}

.overview-calendar-create {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 36px;
	border: 1px solid #cfe7d5;
	border-radius: 10px;
	padding: 0 11px;
	background: #f6fff7;
	color: #2f7d42;
	font: inherit;
	font-size: 11px;
	font-weight: 900;
	cursor: pointer;
}

.overview-calendar-create:hover {
	border-color: #9fd1aa;
	background: #ecfff0;
}

.layout-label {
	position: absolute;
	top: 21px;
	left: 22px;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #aaa9b4;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.layout-label span {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #c8bddf;
}

.empty-layout {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	height: 100%;
	padding: 68px 22px 22px;
}

.empty-layout > div {
	min-height: 100%;
	border: 1px dashed #ddd9eb;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.3);
}

.empty-layout-side {
	grid-template-columns: 1fr;
	grid-template-rows: minmax(180px, 0.62fr) minmax(180px, 1fr);
}

.mobile-backdrop {
	display: none;
}

.clients-view,
.service-catalog-view {
	min-width: 0;
	padding: 28px;
	background: var(--work);
}

.orders-view {
	min-width: 0;
	padding: 28px;
	background: var(--work);
}

.calendar-view {
	min-width: 0;
	padding: 28px;
	background: var(--work);
}

.finance-view {
	min-width: 0;
	padding: 22px;
	background: var(--work);
	display: grid;
	align-content: start;
	gap: 14px;
}

.finance-tabs {
	display: inline-flex;
	width: fit-content;
	max-width: 100%;
	gap: 6px;
	padding: 5px;
	border: 1px solid rgba(76, 168, 98, 0.18);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 10px 24px rgba(45, 36, 98, 0.04);
}

.finance-tabs button {
	min-height: 34px;
	border: 0;
	border-radius: 10px;
	padding: 0 14px;
	background: transparent;
	color: #666876;
	font: inherit;
	font-size: 12px;
	font-weight: 900;
	cursor: pointer;
}

.finance-tabs button.active {
	background: linear-gradient(135deg, #4cd964, #24b84f);
	color: #fff;
	box-shadow: 0 8px 18px rgba(53, 200, 90, 0.16);
}

.finance-view:not(.finance-reports-active) .transport-report-card {
	display: none;
}

.finance-view.finance-reports-active > :not(.orders-toolbar):not(.finance-tabs):not(.transport-report-card) {
	display: none !important;
}

.finance-dashboard {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(220px, 0.75fr);
	gap: 12px;
}

.finance-dashboard .calendar-stat-card {
	min-height: 92px;
	padding: 14px 16px;
	border-radius: 14px;
}

.finance-dashboard .calendar-stat-card strong {
	margin-top: 7px;
	font-size: 26px;
}

.finance-dashboard .calendar-stat-card small {
	margin-top: 6px;
}

.finance-dashboard .finance-result-card {
	border-color: rgba(76, 217, 100, 0.24);
	background:
		linear-gradient(135deg, rgba(76, 217, 100, 0.08), rgba(255, 255, 255, 0.92) 54%),
		#fff;
	box-shadow: 0 14px 32px rgba(35, 150, 68, 0.08);
}

.finance-dashboard .finance-result-card span {
	color: #269c45;
}

.finance-dashboard .finance-result-card strong {
	color: #176d31;
}

.finance-period-filter {
	display: flex;
	align-items: end;
	gap: 10px;
	flex-wrap: wrap;
	width: fit-content;
	max-width: 100%;
	padding: 10px 12px;
	border: 1px solid rgba(76, 168, 98, 0.18);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 10px 24px rgba(45, 36, 98, 0.04);
}

.finance-period-filter label {
	display: grid;
	gap: 5px;
	min-width: 140px;
}

.finance-period-filter span {
	color: var(--muted);
	font-size: 11px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.finance-period-filter select,
.finance-period-filter input {
	min-height: 40px;
	border: 1px solid #dce6df;
	border-radius: 12px;
	padding: 0 12px;
	background: #fff;
	font: inherit;
	font-weight: 700;
	color: var(--ink);
}

.transport-report-card {
	display: grid;
	gap: 12px;
	padding: 14px;
	border: 1px solid rgba(76, 168, 98, 0.18);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 10px 24px rgba(45, 36, 98, 0.04);
}

.transport-report-head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
}

.transport-report-head p {
	margin: 0 0 5px;
	color: var(--muted);
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.transport-report-head h2 {
	margin: 0;
	font-size: 20px;
	line-height: 1.1;
}

.transport-report-controls {
	display: flex;
	align-items: end;
	gap: 8px;
	flex-wrap: wrap;
}

.transport-report-controls label {
	display: grid;
	gap: 5px;
	min-width: 118px;
}

.transport-report-controls span {
	color: var(--muted);
	font-size: 10px;
	font-weight: 900;
	text-transform: uppercase;
}

.transport-report-controls select {
	min-height: 38px;
	border: 1px solid #dce6df;
	border-radius: 11px;
	padding: 0 11px;
	background: #fff;
	color: var(--ink);
	font: inherit;
	font-weight: 800;
}

.transport-report-table-shell {
	overflow-x: auto;
	border: 1px solid #e4eee7;
	border-radius: 12px;
}

.transport-report-table {
	width: 100%;
	min-width: 860px;
	border-collapse: collapse;
	font-size: 12px;
}

.transport-report-table th,
.transport-report-table td {
	padding: 10px 12px;
	border-bottom: 1px solid #e7f0e9;
	text-align: left;
	vertical-align: top;
}

.transport-report-table th {
	color: var(--muted);
	font-size: 10px;
	font-weight: 900;
	text-transform: uppercase;
	white-space: nowrap;
}

.transport-report-table td:last-child,
.transport-report-table th:last-child {
	text-align: right;
	white-space: nowrap;
}

.transport-report-table tfoot td {
	border-bottom: 0;
	background: #f7fff8;
	font-size: 13px;
	font-weight: 900;
}

.finance-currency-switch {
	background: #fff;
	border: 1px solid rgba(76, 168, 98, 0.18);
	border-radius: 14px;
	box-shadow: 0 10px 24px rgba(45, 36, 98, 0.04);
	padding: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	flex-wrap: wrap;
}

.finance-currency-switch span {
	width: 100%;
	color: var(--ink);
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	text-align: center;
}

.finance-currency-switch button {
	border: 1px solid rgba(76, 217, 100, 0.22);
	background: transparent;
	color: var(--accent);
	border-radius: 999px;
	min-width: 52px;
	padding: 7px 10px;
	font-weight: 800;
	cursor: pointer;
}

.finance-currency-switch button.active {
	border-color: var(--accent);
	background: linear-gradient(135deg, #4cd964, #24b84f);
	color: #fff;
	box-shadow: 0 10px 18px rgba(76, 217, 100, 0.18);
}

.finance-entry-form {
	max-width: none;
	min-width: 0;
}

.finance-form-shell {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
	align-items: start;
	gap: 18px;
}

.finance-main-card {
	grid-column: 1;
	grid-row: 1;
	min-width: 0;
}

.finance-form-top {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 14px;
	align-items: start;
	min-width: 0;
}

.finance-form-top > .form-field {
	min-width: 0;
	grid-column: auto;
}

.finance-money-row {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr 1fr 1fr;
	gap: 12px;
	align-items: start;
}

.finance-rates-box {
	grid-column: 2;
	grid-row: 1;
	min-width: 0;
	position: sticky;
	top: 18px;
	border: 1px solid rgba(76, 217, 100, 0.18);
	border-radius: 18px;
	background: linear-gradient(135deg, rgba(76, 217, 100, 0.08), rgba(255, 255, 255, 0.85));
	padding: 12px;
}

.finance-rates-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 10px;
	flex-wrap: wrap;
}

.finance-rates-head span {
	color: var(--text);
	font-size: 12px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.primary-action.compact {
	padding: 9px 13px;
	min-height: auto;
	font-size: 12px;
	box-shadow: 0 10px 18px rgba(76, 217, 100, 0.2);
}

.finance-rates-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(120px, 1fr));
	gap: 8px;
}

.finance-rates-grid label {
	display: grid;
	gap: 5px;
	color: var(--muted);
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
}

.finance-rates-grid input {
	border: 1px solid #dce6df;
	border-radius: 12px;
	padding: 10px 12px;
	font: inherit;
	background: #fff;
}

.finance-rates-box small {
	display: block;
	margin-top: 8px;
	color: var(--muted);
	font-size: 11px;
}

.finance-table td strong + small,
.finance-table td div + small {
	display: block;
	margin-top: 4px;
	color: var(--muted);
	font-size: 11px;
}

.finance-group-row {
	cursor: pointer;
}

.finance-group-row:hover td {
	background: rgba(76, 217, 100, 0.04);
}

.finance-lines-count {
	display: inline-flex;
	align-items: center;
	border-radius: 999px;
	background: rgba(76, 217, 100, 0.1);
	color: var(--primary);
	font-size: 11px;
	font-weight: 900;
	padding: 4px 9px;
	margin-bottom: 6px;
}

.finance-detail-row td {
	background: #f7fff8;
	padding: 0 18px 18px;
}

.finance-detail-panel {
	border: 1px solid rgba(76, 168, 98, 0.18);
	border-radius: 16px;
	background: #fff;
	padding: 14px;
}

.finance-detail-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.finance-detail-head span {
	color: var(--muted);
	font-size: 12px;
	font-weight: 700;
}

.finance-inner-table {
	width: 100%;
	border-collapse: collapse;
}

.finance-inner-table th,
.finance-inner-table td {
	text-align: left;
	padding: 10px 8px;
	border-bottom: 1px solid rgba(76, 168, 98, 0.12);
	font-size: 13px;
}

.finance-inner-table th {
	color: var(--muted);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.finance-lines-editor {
	margin-top: 18px;
	border: 1px solid rgba(76, 168, 98, 0.18);
	border-radius: 18px;
	background: #f7fff8;
	padding: 14px;
	min-width: 0;
}

.finance-lines-header {
	display: grid;
	grid-template-columns: minmax(72px, 0.75fr) minmax(140px, 2fr) minmax(84px, 0.85fr) minmax(74px, 0.75fr) 40px;
	gap: 8px;
	color: var(--muted);
	font-size: 11px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 6px;
}

.finance-extra-line {
	display: grid;
	grid-template-columns: minmax(72px, 0.75fr) minmax(140px, 2fr) minmax(84px, 0.85fr) minmax(74px, 0.75fr) 40px;
	gap: 8px;
	align-items: start;
	margin-top: 8px;
	min-width: 0;
}

.finance-extra-line input,
.finance-extra-line select,
.finance-extra-line textarea {
	min-width: 0;
	width: 100%;
	border: 1px solid #dce6df;
	border-radius: 12px;
	padding: 10px 12px;
	font: inherit;
	background: #fff;
}

.finance-extra-line textarea {
	min-height: 42px;
	resize: vertical;
	line-height: 1.35;
}

.finance-extra-line .service-edit-button {
	align-self: start;
}

.finance-main-card .form-actions {
	background: transparent;
}

.finance-lines-summary {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 4px 16px;
	align-items: end;
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid #e1ece4;
	text-align: right;
}

.finance-lines-summary span {
	align-self: center;
	color: var(--muted);
	font-size: 11px;
	font-weight: 900;
	text-align: left;
	text-transform: uppercase;
}

.finance-lines-summary strong {
	color: var(--ink);
	font-size: 24px;
	line-height: 1;
}

.finance-lines-summary small {
	grid-column: 1 / -1;
	color: var(--muted);
	font-size: 11px;
	font-weight: 800;
}

.finance-note-field {
	margin-top: 16px;
}

.finance-type {
	display: inline-flex;
	align-items: center;
	border-radius: 999px;
	padding: 4px 9px;
	font-size: 11px;
	font-weight: 900;
	margin-bottom: 6px;
}

.finance-type.income {
	color: #008a48;
	background: rgba(0, 166, 90, 0.1);
}

.finance-type.expense {
	color: #c62828;
	background: rgba(229, 57, 53, 0.1);
}

.positive-money {
	color: #008a48;
}

.negative-money {
	color: #c62828;
}

.service-edit-button.danger {
	color: #c62828;
}

.finance-row-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
}

.finance-row-actions .service-edit-button {
	flex: 0 0 auto;
	margin: 0;
}

@media (max-width: 1500px) {
	.finance-form-shell {
		grid-template-columns: 1fr;
	}

	.finance-rates-box {
		grid-column: 1;
		grid-row: 1;
		position: static;
		order: -1;
	}

	.finance-main-card {
		grid-column: 1;
		grid-row: 2;
	}
}

@media (max-width: 780px) {
	.finance-form-top {
		grid-template-columns: 1fr;
	}

	.finance-rates-grid {
		grid-template-columns: 1fr;
	}

	.finance-lines-header {
		display: none;
	}

	.finance-extra-line {
		grid-template-columns: 1fr;
		padding: 10px;
		border: 1px solid #e2eee5;
		border-radius: 14px;
		background: #fff;
	}

	.finance-extra-line .service-edit-button {
		justify-self: end;
	}

	.finance-lines-summary {
		grid-template-columns: 1fr;
		text-align: left;
	}

	.finance-lines-summary small {
		grid-column: auto;
	}

	.finance-tabs,
	.finance-tabs button {
		width: 100%;
	}

	.transport-report-head,
	.transport-report-controls,
	.transport-report-controls label,
	.transport-report-controls button {
		width: 100%;
	}
}

.calendar-toolbar,
.calendar-section-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.calendar-range-switch {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 5px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: white;
}

.calendar-range-switch button {
	min-height: 32px;
	padding: 0 11px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: #666876;
	font-size: 11px;
	font-weight: 800;
	cursor: pointer;
}

.calendar-range-switch button:hover {
	background: #f5f8f6;
	color: var(--ink);
}

.calendar-range-switch button.active {
	background: linear-gradient(135deg, #4cd964, #24b84f);
	color: white;
	box-shadow: 0 8px 18px rgba(53, 200, 90, 0.18);
}

.calendar-range-switch [data-calendar-archive-open] {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border-left: 1px solid var(--line);
	border-radius: 10px;
	color: var(--accent);
}

.calendar-overview {
	display: grid;
	grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(150px, 1fr));
	gap: 14px;
	margin-top: 20px;
}

.calendar-hero-card,
.calendar-stat-card,
.calendar-timeline,
.calendar-side-panel {
	border: 1px solid var(--line);
	border-radius: 18px;
	background: white;
	box-shadow: var(--shadow-soft);
}

.calendar-hero-card {
	min-height: 126px;
	padding: 22px;
	background:
		radial-gradient(circle at top right, rgba(76, 217, 100, 0.22), transparent 42%),
		linear-gradient(135deg, #ffffff, #f4fff6);
}

.calendar-date-kicker,
.calendar-stat-card span,
.calendar-section-heading p {
	color: #9b9ca8;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.calendar-hero-card h3 {
	margin: 10px 0 7px;
	font-size: 26px;
	line-height: 1.05;
	letter-spacing: -0.04em;
}

.calendar-hero-card p {
	max-width: 620px;
	margin: 0;
	color: #777985;
	font-size: 12px;
	line-height: 1.55;
}

.calendar-stat-card {
	display: grid;
	align-content: center;
	min-height: 126px;
	padding: 18px;
}

.calendar-stat-card strong {
	margin-top: 9px;
	color: var(--ink);
	font-size: 28px;
	line-height: 1;
	letter-spacing: -0.04em;
}

.calendar-stat-card small {
	margin-top: 8px;
	color: #999aa7;
	font-size: 10px;
	font-weight: 700;
}

.calendar-stat-card.muted {
	background: #fafafd;
}

.calendar-stat-card.muted strong {
	font-size: 18px;
}

.calendar-board {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 16px;
	margin-top: 16px;
}

.calendar-timeline,
.calendar-side-panel {
	min-width: 0;
	padding: 18px;
}

.calendar-section-heading h3 {
	margin: 3px 0 0;
	font-size: 18px;
	letter-spacing: -0.025em;
}

.secondary-action.compact {
	min-height: 34px;
	padding: 0 13px;
	font-size: 11px;
}

.calendar-days {
	display: grid;
	gap: 12px;
	margin-top: 16px;
}

.calendar-day-card {
	border: 1px solid #ececf3;
	border-radius: 16px;
	background: #fbfbfe;
	overflow: hidden;
}

.calendar-day-card.today {
	border-color: #cae8d0;
	background: #f7fff8;
}

.calendar-day-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 13px 14px;
	border-bottom: 1px solid #ececf3;
	background: white;
}

.calendar-day-head strong,
.calendar-day-head span {
	display: block;
}

.calendar-day-head strong {
	font-size: 13px;
	letter-spacing: -0.01em;
}

.calendar-day-head span,
.calendar-day-head small {
	margin-top: 3px;
	color: #9697a3;
	font-size: 10px;
	font-weight: 700;
}

.calendar-event-list {
	display: grid;
	gap: 8px;
	padding: 10px;
}

.calendar-event {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 11px;
	border: 1px solid transparent;
	border-radius: 13px;
	background: white;
	color: inherit;
	text-align: left;
	cursor: pointer;
}

.calendar-event:hover {
	border-color: #cae8d0;
	background: #f4fff6;
}

.calendar-event.task {
	cursor: default;
}

.calendar-event-type {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 54px;
	min-height: 24px;
	padding: 0 8px;
	border-radius: 999px;
	font-size: 9px;
	font-weight: 900;
	text-transform: uppercase;
}

.calendar-event-type.order {
	background: #e9fbea;
	color: var(--accent);
}

.calendar-event-type.task {
	background: #fff0d7;
	color: #b56b00;
}

.calendar-event-main {
	min-width: 0;
}

.calendar-event-main strong,
.calendar-event-main small {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.calendar-event-main strong {
	font-size: 12px;
}

.calendar-event-main small,
.calendar-event-main p,
.calendar-event-main em {
	color: #8e8f9b;
	font-size: 10px;
}

.calendar-event-main p {
	margin: 5px 0 0;
}

.calendar-event-main em {
	display: block;
	margin-top: 5px;
	font-style: italic;
}

.calendar-focus-list {
	display: grid;
	gap: 9px;
	margin-top: 16px;
}

.calendar-focus-item {
	display: grid;
	gap: 4px;
	padding: 12px;
	border-radius: 13px;
	background: #f7f7fb;
}

.calendar-focus-item span,
.calendar-focus-item small,
.calendar-focus-empty,
.calendar-future-note span {
	color: #9293a0;
	font-size: 10px;
	font-weight: 700;
}

.calendar-focus-item strong {
	font-size: 12px;
}

.calendar-focus-empty {
	padding: 13px;
	border-radius: 13px;
	background: #f7f7fb;
}

.calendar-future-note {
	display: flex;
	gap: 10px;
	margin-top: 16px;
	padding: 13px;
	border: 1px dashed #cae8d0;
	border-radius: 14px;
	background: #f7fff8;
	color: var(--accent);
}

.calendar-future-note .ti {
	margin-top: 2px;
	font-size: 20px;
}

.calendar-future-note strong,
.calendar-future-note span {
	display: block;
}

.calendar-future-note strong {
	margin-bottom: 4px;
	font-size: 12px;
}

.archive-modal-open {
	overflow: hidden;
}

.calendar-archive-modal {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: grid;
	place-items: center;
	padding: 24px;
}

.calendar-archive-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(22, 23, 32, 0.48);
	backdrop-filter: blur(6px);
}

.calendar-archive-window {
	position: relative;
	width: min(1120px, 100%);
	max-height: min(860px, calc(100vh - 48px));
	overflow: auto;
	padding: 22px;
	border: 1px solid rgba(255, 255, 255, 0.78);
	border-radius: 22px;
	background: var(--work);
	box-shadow: 0 30px 80px rgba(18, 20, 33, 0.28);
}

.calendar-archive-header,
.calendar-archive-controls,
.calendar-archive-fields {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
}

.calendar-archive-header p {
	margin: 0 0 4px;
	color: #9b9ca8;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.calendar-archive-header h2 {
	margin: 0;
	font-size: 24px;
	letter-spacing: -0.025em;
}

.calendar-archive-close {
	display: inline-grid;
	width: 38px;
	height: 38px;
	place-items: center;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: white;
	color: #6d6f7d;
	cursor: pointer;
}

.calendar-archive-close:hover {
	color: var(--ink);
	border-color: #cae8d0;
	background: #f4fff6;
}

.calendar-archive-controls {
	margin-top: 18px;
	padding: 14px;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: white;
}

.calendar-archive-fields {
	flex-wrap: wrap;
	justify-content: flex-end;
}

.calendar-archive-fields .form-field {
	min-width: 160px;
	margin: 0;
}

.calendar-archive-fields .primary-action {
	min-height: 42px;
	align-self: flex-end;
}

.calendar-archive-overview {
	grid-template-columns: minmax(260px, 1.6fr) repeat(2, minmax(150px, 1fr));
}

.calendar-archive-timeline {
	margin-top: 16px;
}

@media (max-width: 1100px) {
	.calendar-overview,
	.calendar-board {
		grid-template-columns: 1fr;
	}

	.calendar-side-panel {
		order: -1;
	}
}

@media (max-width: 720px) {
	.calendar-toolbar,
	.calendar-section-heading,
	.calendar-day-head {
		align-items: flex-start;
		flex-direction: column;
	}

	.calendar-range-switch {
		width: 100%;
	}

	.calendar-range-switch button {
		flex: 1 1 auto;
	}

	.calendar-overview {
		grid-template-columns: 1fr;
	}

	.calendar-event {
		grid-template-columns: 1fr;
	}

	.calendar-archive-modal {
		padding: 12px;
	}

	.calendar-archive-window {
		max-height: calc(100vh - 24px);
		padding: 16px;
		border-radius: 18px;
	}

	.calendar-archive-header,
	.calendar-archive-controls,
	.calendar-archive-fields {
		align-items: stretch;
		flex-direction: column;
	}

	.calendar-archive-close {
		position: absolute;
		top: 14px;
		right: 14px;
	}

	.calendar-archive-header {
		padding-right: 48px;
	}

	.calendar-archive-fields .form-field,
	.calendar-archive-fields .primary-action {
		width: 100%;
	}

}

.directory-view,
.directory-form-view {
	min-width: 0;
	padding: 28px;
	background: var(--work);
}

.directory-table-shell {
	margin-top: 20px;
}

.nav-subcaption {
	margin-top: 14px;
	padding-left: 14px;
	font-size: 8px;
}

.repeat-row {
	display: grid;
	grid-template-columns: 150px minmax(130px, 1fr) minmax(160px, 1.3fr) 34px;
	gap: 8px;
	margin-bottom: 8px;
}

.vehicle-row {
	grid-template-columns:
		minmax(120px, 0.85fr)
		76px
		minmax(170px, 1.2fr)
		minmax(240px, 2fr)
		34px;
}

.repeat-row input,
.repeat-row select {
	min-width: 0;
	min-height: 40px;
	padding: 0 10px;
	border: 1px solid var(--line-strong);
	border-radius: 9px;
	background: white;
	font: inherit;
	font-size: 11px;
}

.repeat-row button,
.repeat-add {
	border: 1px solid #cae8d0;
	border-radius: 9px;
	background: #f4fff6;
	color: var(--accent);
	font-weight: 800;
	cursor: pointer;
}

.repeat-add {
	min-height: 38px;
	padding: 0 12px;
}

.tickets-extra {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 15px;
	padding: 14px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: #fafafd;
}

.finance-form-group.taxi-disabled {
	opacity: 0.5;
}

.finance-form-group.taxi-disabled::after {
	content: "Taxi / Uber: поездки оплачиваются клиентом самостоятельно";
	padding: 8px;
	border-radius: 8px;
	background: #fff3b2;
	color: #735e08;
	font-size: 9px;
	font-weight: 700;
}

.orders-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.orders-toolbar .add-service-button:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.order-prototype-note {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 20px 0 16px;
	padding: 12px 15px;
	border: 1px solid #d2efd9;
	border-radius: 13px;
	background: #f4fff6;
	color: #6a6380;
}

.order-prototype-note span {
	padding: 5px 8px;
	border-radius: 7px;
	background: var(--accent);
	color: white;
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.order-prototype-note p {
	margin: 0;
	font-size: 12px;
	line-height: 1.5;
}

.order-snippet {
	display: grid;
	grid-template-columns: 84px minmax(0, 1fr) auto;
	gap: 18px;
	align-items: stretch;
	padding: 18px;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: white;
	box-shadow: 0 8px 24px rgba(45, 43, 66, 0.05);
	cursor: pointer;
	transition: 160ms ease;
}

.order-snippet-postponed {
	border-color: #ffd99c;
	background: #fff8eb;
}

.order-snippet-cancelled {
	border-color: #ffc9c9;
	background: #fff1f1;
}

.orders-list {
	display: grid;
	gap: 14px;
}

.order-snippet:hover,
.order-snippet:focus-visible {
	border-color: #ade5bb;
	box-shadow: 0 14px 30px rgba(35, 150, 68, 0.1);
	transform: translateY(-2px);
	outline: none;
}

.order-snippet-postponed:hover,
.order-snippet-postponed:focus-visible {
	border-color: #ffc46b;
	box-shadow: 0 14px 30px rgba(220, 134, 21, 0.12);
}

.order-snippet-cancelled:hover,
.order-snippet-cancelled:focus-visible {
	border-color: #ffabab;
	box-shadow: 0 14px 30px rgba(203, 46, 46, 0.1);
}

.order-date-block {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 104px;
	border-radius: 14px;
	background: linear-gradient(145deg, #4cd964, #24b84f);
	color: white;
}

.order-date-block strong {
	font-size: 30px;
	line-height: 1;
}

.order-date-block span {
	margin-top: 3px;
	font-size: 12px;
	font-weight: 700;
}

.order-date-block small {
	margin-top: 8px;
	color: #d8f7df;
	font-size: 9px;
	text-transform: uppercase;
}

.order-snippet-main {
	min-width: 0;
	padding: 4px 0;
}

.order-title-line {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.order-kicker {
	color: var(--accent);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.order-title-line h3 {
	margin: 5px 0 0;
	font-size: 20px;
	letter-spacing: -0.03em;
}

.order-snippet-main > p {
	margin: 11px 0;
	color: #626472;
	font-size: 12px;
}

.snippet-tourists {
	color: #292b34;
	font-size: 13px;
	font-weight: 900;
}

.pending-inline,
.field-pending,
.money-pending {
	border-radius: 5px;
	background: #fff1a8;
	color: #705a00 !important;
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
}

.pending-inline {
	padding: 2px 5px;
	font-size: 9px;
	font-style: normal;
	font-weight: 800;
	white-space: nowrap;
}

.field-pending {
	width: max-content;
	max-width: 100%;
	padding: 5px 7px;
}

.money-pending {
	padding: 3px 6px;
	font-size: 9px;
}

.order-snippet-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.order-snippet-meta span {
	padding: 6px 8px;
	border-radius: 8px;
	background: #f5f5f9;
	color: #626472;
	font-size: 10px;
	font-weight: 600;
}

.order-snippet-note {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 7px;
	margin-top: 10px;
	color: #777986;
	font-size: 10px;
	font-style: italic;
	line-height: 1.4;
}

.order-referral-chip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	min-height: 25px;
	padding: 0 8px;
	border-radius: 7px;
	background: #fff6cf;
	color: #9b6a00;
	font-size: 9px;
	font-style: normal;
	font-weight: 700;
	line-height: 1;
}

.order-referral-chip .ti {
	font-size: 13px;
	line-height: 13px;
}

.order-status-cluster {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 7px 14px;
	margin-top: 9px;
}

.order-fact {
	display: flex;
	align-items: center;
	gap: 6px;
	color: #8b8d99;
	font-size: 9px;
	white-space: nowrap;
}

.fact-pill {
	display: inline-flex;
	padding: 4px 7px;
	border: 1px solid currentColor;
	border-radius: 999px;
	font-size: 9px;
	font-weight: 800;
	line-height: 1;
	background: transparent;
}

.fact-pill.true {
	color: #16814a;
}

.fact-pill.false {
	color: #c34242;
}

.order-status {
	display: inline-flex;
	align-items: center;
	width: max-content;
	padding: 6px 9px;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 800;
	white-space: nowrap;
}

.order-status.status-in-work,
.order-status.status-in_work {
	background: #fff1d9;
	color: #9b6200;
}

.order-status.status-completed {
	background: #e9f8ef;
	color: #18784a;
}

.order-status.status-cancelled {
	background: #f5eeee;
	color: #a85a60;
}

.order-status.status-postponed {
	background: #fff4dc;
	color: #9b6a0f;
}

.order-snippet-side {
	display: flex;
	min-width: 126px;
	flex-direction: column;
	align-items: flex-end;
	justify-content: center;
	padding-left: 18px;
	border-left: 1px solid var(--line);
}

.order-snippet-side .order-status {
	margin-bottom: 22px;
}

.order-status-note {
	margin: -16px 0 18px;
	color: var(--muted);
	font-size: 10px;
	font-weight: 800;
	line-height: 1.25;
	text-align: right;
}

.order-checklist-items {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 12px;
}

.order-checklist-progress {
	font-size: 11px;
	font-weight: 800;
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: 0.03em;
	margin-bottom: 2px;
}

.order-checklist-empty {
	color: var(--muted);
	font-size: 12px;
	margin: 0 0 8px;
}

.order-checklist-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px;
	border: 1px solid var(--line);
	border-radius: 10px;
	font-size: 13px;
	cursor: pointer;
}

.order-checklist-item input {
	width: 16px;
	height: 16px;
	flex: none;
}

.order-checklist-item span {
	flex: 1;
}

.order-checklist-item.is-done span {
	color: var(--muted);
	text-decoration: line-through;
}

.order-checklist-remove {
	flex: none;
	border: none;
	background: transparent;
	color: var(--muted);
	cursor: pointer;
	padding: 2px;
	border-radius: 6px;
	line-height: 1;
}

.order-checklist-remove:hover {
	color: #b53434;
	background: rgba(200, 60, 60, 0.12);
}

.order-checklist-add {
	display: flex;
	gap: 8px;
}

.order-checklist-add input {
	flex: 1;
	padding: 8px 12px;
	border: 1px solid var(--line);
	border-radius: 10px;
	font: inherit;
}

.order-checklist-chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: #a86a12;
}

.order-checklist-chip.complete {
	color: #1c8a4d;
}

.order-checklist-chip i {
	font-size: 13px;
}

.finance-auto-tag {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 7px;
	border-radius: 999px;
	background: rgba(60, 120, 200, 0.14);
	color: #2a6bb0;
	font-size: 9px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	vertical-align: middle;
}

.order-finance-sync {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--line);
	align-items: flex-start;
}

.order-finance-sync small {
	color: var(--muted);
	font-size: 11px;
	line-height: 1.4;
}

.orders-filterbar {
	display: flex;
	gap: 8px;
	margin-bottom: 16px;
}

.orders-filter-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 16px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface, #fff);
	color: var(--muted);
	font-size: 12px;
	font-weight: 800;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.orders-filter-pill:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.orders-filter-pill.is-active {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

.orders-filter-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: rgba(200, 60, 60, 0.16);
	color: #b53434;
	font-size: 10px;
	font-weight: 800;
}

.orders-filter-pill.is-active .orders-filter-count {
	background: rgba(255, 255, 255, 0.24);
	color: #fff;
}

.order-pay {
	margin-bottom: 12px;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.order-pay.pay-paid {
	background: rgba(34, 160, 90, 0.14);
	color: #1c8a4d;
}

.order-pay.pay-partial {
	background: rgba(214, 158, 46, 0.16);
	color: #a86a12;
}

.order-pay.pay-unpaid {
	background: rgba(200, 60, 60, 0.14);
	color: #b53434;
}

.order-snippet-side > strong {
	font-size: 18px;
}

.order-snippet-side small {
	margin-top: 4px;
	color: var(--muted);
	font-size: 10px;
}

.order-read-more {
	margin-top: 18px;
	color: var(--accent);
	font-size: 10px;
	font-weight: 800;
}

.order-detail {
	padding-bottom: 20px;
}

.orders-view.detail-open > .orders-toolbar,
.orders-view.detail-open > .orders-filterbar,
.orders-view.detail-open > .orders-list,
.orders-view.detail-open > .clients-empty,
.orders-view.detail-open > .order-prototype-note,
.orders-view.detail-open > [data-order-demo] {
	display: none;
}

.order-detail-header {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 18px;
	align-items: center;
	margin-bottom: 18px;
}

.order-detail-back {
	grid-column: 1 / -1;
	display: inline-flex;
	width: max-content;
	min-height: 42px;
	align-items: center;
	gap: 8px;
	padding: 0 13px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: white;
	color: #565967;
	font: inherit;
	font-size: 12px;
	font-weight: 800;
	cursor: pointer;
}

.order-detail-back:hover,
.order-detail-back:focus-visible {
	border-color: #9cdda9;
	color: var(--accent);
	outline: none;
}

.order-detail-heading {
	min-width: 0;
}

.order-detail-header p,
.order-detail-header h2 {
	margin: 0;
}

.order-detail-header p {
	margin-bottom: 5px;
	color: var(--muted);
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
}

.order-detail-header h2 {
	font-size: clamp(22px, 3vw, 30px);
	letter-spacing: -0.035em;
}

.order-detail-heading > span {
	display: block;
	margin-top: 6px;
	color: #666976;
	font-size: 13px;
	font-weight: 700;
}

.order-detail-header-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
}

.order-detail-edit {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 0 16px;
	border: 0;
	border-radius: 12px;
	background: linear-gradient(135deg, #4cd964, #24b84f);
	box-shadow: 0 10px 20px rgba(36, 184, 79, 0.18);
	color: white;
	font: inherit;
	font-size: 12px;
	font-weight: 900;
	cursor: pointer;
}

.order-detail-summary {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 14px;
}

.order-detail-summary > div {
	position: relative;
	display: grid;
	min-width: 0;
	min-height: 116px;
	align-content: center;
	gap: 5px;
	padding: 16px 16px 16px 48px;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: white;
}

.order-detail-summary .ti {
	position: absolute;
	top: 17px;
	left: 16px;
	display: grid;
	width: 24px;
	height: 24px;
	place-items: center;
	border-radius: 8px;
	background: var(--accent-soft);
	color: var(--accent);
	font-size: 16px;
}

.order-detail-summary span {
	color: var(--muted);
	font-size: 10px;
	font-weight: 900;
	text-transform: uppercase;
}

.order-detail-summary strong {
	overflow-wrap: anywhere;
	font-size: 14px;
	line-height: 1.35;
}

.order-detail-summary strong.is-pending,
.order-detail-pending {
	color: #896d00;
}

.order-detail-summary small {
	color: var(--muted);
	font-size: 11px;
	font-weight: 700;
}

.order-detail-summary .order-pay {
	width: max-content;
	margin: 2px 0 0;
}

.order-sections {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.order-section {
	min-width: 0;
	padding: 18px;
	border: 1px solid var(--line);
	border-radius: 17px;
	background: white;
}

.order-section-wide {
	grid-column: 1 / -1;
}

.order-section-accent {
	background: linear-gradient(145deg, #f5fff6, #ffffff);
	border-color: #ccefd4;
}

.order-section-heading {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-bottom: 16px;
}

.order-section-heading > span {
	display: grid;
	width: 27px;
	height: 27px;
	place-items: center;
	border-radius: 8px;
	background: var(--accent-soft);
	color: var(--accent);
	font-size: 9px;
	font-weight: 900;
}

.order-section-heading h3 {
	margin: 0;
	font-size: 15px;
}

.order-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 20px;
}

.order-fields > div {
	min-width: 0;
}

.order-detail-field {
	display: grid;
	align-content: start;
	gap: 4px;
}

.order-detail-field strong {
	overflow-wrap: anywhere;
	white-space: pre-line;
}

.order-detail-pending {
	display: inline-flex;
	width: max-content;
	max-width: 100%;
	padding: 5px 8px;
	border-radius: 7px;
	background: #fff1a8;
	font-size: 11px;
	font-weight: 900;
}

.order-detail-referral {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 8px 12px;
	align-items: center;
	margin-top: 12px;
	padding: 11px 13px;
	border: 1px solid #f3dda0;
	border-radius: 11px;
	background: #fff9e8;
	font-size: 12px;
}

.order-detail-referral span,
.order-detail-referral small {
	color: #8b731e;
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
}

.order-detail-checklist {
	display: grid;
	gap: 8px;
}

.order-detail-checklist-progress {
	display: flex;
	align-items: baseline;
	gap: 6px;
	margin-bottom: 2px;
	color: var(--muted);
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
}

.order-detail-checklist-progress strong {
	color: var(--accent);
	font-size: 15px;
}

.order-detail-check {
	display: grid;
	grid-template-columns: 20px minmax(0, 1fr);
	gap: 9px;
	align-items: center;
	min-height: 42px;
	padding: 8px 11px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: #fff;
	color: #454852;
	font-size: 12px;
	font-weight: 700;
}

.order-detail-check .ti {
	width: 18px;
	height: 18px;
	color: #a9abb4;
	font-size: 18px;
	line-height: 18px;
}

.order-detail-check.is-done {
	background: #f5fbf6;
	color: var(--muted);
	text-decoration: line-through;
}

.order-detail-check.is-done .ti {
	color: var(--accent);
}

.order-detail-empty {
	margin: 0;
	color: var(--muted);
	font-size: 12px;
}

.order-fields small,
.order-fields strong {
	display: block;
}

.order-field-label {
	display: block;
	margin-bottom: 5px;
	color: var(--muted);
	font-size: 9px;
	font-weight: 700;
	text-transform: uppercase;
}

.order-service-select {
	width: 100%;
	min-height: 36px;
	padding: 0 34px 0 10px;
	border: 1px solid #dcdde6;
	border-radius: 9px;
	background: #fff;
	color: #343640;
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
}

.order-service-select:hover,
.order-service-select:focus {
	border-color: #91dea4;
	outline: none;
	box-shadow: 0 0 0 3px rgba(53, 200, 90, 0.08);
}

.order-service-select:disabled {
	color: var(--muted);
	cursor: wait;
}

.order-fields small {
	margin-bottom: 5px;
	color: var(--muted);
	font-size: 9px;
	font-weight: 700;
	text-transform: uppercase;
}

.order-fields strong,
.order-fields p {
	margin: 0;
	color: #343640;
	font-size: 12px;
	line-height: 1.45;
}

.field-span-2 {
	grid-column: span 2;
}

.boolean-badge {
	display: inline-flex;
	width: max-content;
	padding: 6px 8px;
	border-radius: 8px;
	font-size: 10px;
	font-weight: 800;
}

.boolean-badge.yes {
	background: #e4f8ec;
	color: #167341;
}

.boolean-badge.warning {
	background: #fff0d7;
	color: #9b6200;
}

.finance-groups {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.finance-groups > div {
	padding: 13px;
	border-radius: 12px;
	background: #f8f8fb;
}

.finance-groups h4 {
	margin: 0 0 10px;
	font-size: 11px;
}

.money-row {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	padding: 6px 0;
	color: #737583;
	font-size: 10px;
}

.money-row strong {
	color: #353741;
}

.money-row.total {
	margin-top: 5px;
	padding-top: 10px;
	border-top: 1px solid var(--line);
	color: #353741;
	font-weight: 700;
}

.clients-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.clients-toolbar-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
}

.clients-toolbar-copy p,
.clients-toolbar-copy h2 {
	margin: 0;
}

.clients-toolbar-copy p {
	margin-bottom: 5px;
	color: var(--muted);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

.clients-toolbar-copy h2 {
	font-size: 25px;
	letter-spacing: -0.035em;
}

.clients-toolbar > .clients-toolbar-copy h2,
.services-toolbar > .clients-toolbar-copy h2,
.orders-toolbar > .clients-toolbar-copy h2,
.calendar-toolbar > .clients-toolbar-copy h2 {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.clients-toolbar > .clients-toolbar-copy p,
.services-toolbar > .clients-toolbar-copy p,
.orders-toolbar > .clients-toolbar-copy p,
.calendar-toolbar > .clients-toolbar-copy p {
	margin-bottom: 0;
}

.add-client-button,
.add-service-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 42px;
	padding: 0 16px;
	border-radius: var(--radius);
	background: linear-gradient(135deg, #4cd964, #24b84f);
	color: white;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 9px 22px rgba(53, 200, 90, 0.18);
	border: 0;
	cursor: pointer;
}

.add-client-button svg,
.add-service-button svg {
	width: 18px;
	fill: currentColor;
}

.add-client-button .ti,
.add-service-button .ti {
	width: 18px;
	font-size: 18px;
	line-height: 18px;
}

.clients-export-actions {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 42px;
	padding: 5px 6px 5px 12px;
	border: 1px solid var(--line);
	border-radius: 11px;
	background: #fff;
	color: var(--muted);
	font-size: 11px;
	font-weight: 800;
}

.clients-export-actions span {
	text-transform: uppercase;
}

.clients-export-actions button {
	min-height: 30px;
	border: 1px solid #d8f2de;
	border-radius: 9px;
	background: #f4fff6;
	color: var(--accent);
	font: inherit;
	font-size: 11px;
	cursor: pointer;
}

.clients-export-actions button:hover {
	border-color: #cae8d0;
	background: #f4fff6;
}

.clients-export-actions button:disabled {
	cursor: wait;
	opacity: 0.55;
}

.services-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.services-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin: 24px 2px 11px;
	color: var(--muted);
	font-size: 10px;
}

.services-summary p {
	margin: 0;
}

.services-summary strong {
	color: var(--ink);
	font-size: 12px;
}

.services-table-shell {
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 15px;
	background: white;
	box-shadow: 0 5px 16px rgba(38, 39, 58, 0.03);
}

.services-table {
	width: 100%;
	border-collapse: collapse;
}

.services-table th,
.services-table td {
	padding: 15px 18px;
	border-bottom: 1px solid #eeeef4;
	text-align: left;
}

.services-table th {
	background: #fafafe;
	color: #9698a7;
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.services-table th:first-child,
.services-table td:first-child {
	width: 66px;
	color: #aaaab6;
	text-align: center;
}

.services-table th:nth-child(3),
.services-table td:nth-child(3) {
	width: 150px;
}

.services-table th:nth-child(4),
.services-table td:nth-child(4) {
	width: 130px;
}

.services-table th:last-child,
.services-table td:last-child {
	width: 64px;
	text-align: center;
}

.services-table td {
	color: #3f414d;
	font-size: 11px;
	font-weight: 600;
}

.services-table tbody tr:last-child td {
	border-bottom: 0;
}

.services-table tbody tr:hover td {
	background: #f7fff8;
}

.services-loading {
	display: grid;
	gap: 8px;
}

.services-loading > div {
	height: 52px;
	border-radius: 12px;
	background: linear-gradient(90deg, #f5f5f8, #ececf3, #f5f5f8);
	background-size: 200% 100%;
	animation: client-shimmer 1.2s infinite;
}

.service-state,
.transport-state {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 26px;
	padding: 0 9px;
	border-radius: 8px;
	font-size: 9px;
	font-weight: 700;
	white-space: nowrap;
}

.service-state::before {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	content: "";
}

.service-state.active {
	background: #eaf8f0;
	color: #19764a;
}

.service-state.active::before {
	background: #26a467;
	box-shadow: 0 0 0 3px rgba(38, 164, 103, 0.12);
}

.service-state.archived {
	background: #f0f0f3;
	color: #777985;
}

.service-state.archived::before {
	background: #9a9ca7;
}

.transport-state.required {
	background: #e9fbea;
	color: #218b3d;
}

.transport-state.not-required {
	background: #f3f3f6;
	color: #858691;
}

.service-edit-button {
	display: grid;
	width: 30px;
	height: 30px;
	margin: 0 auto;
	padding: 0;
	place-items: center;
	border: 1px solid var(--line);
	border-radius: 9px;
	background: white;
	color: #777985;
	cursor: pointer;
}

.service-edit-button:hover {
	border-color: #cae8d0;
	background: #f4fff6;
	color: var(--accent);
}

.service-edit-button svg {
	width: 15px;
	fill: currentColor;
}

.service-edit-button .ti {
	width: 15px;
	font-size: 15px;
	line-height: 15px;
}

.directory-actions {
	display: flex;
	justify-content: flex-end;
	gap: 6px;
}

.directory-actions .service-edit-button {
	margin: 0;
}

.clients-filters {
	display: flex;
	align-items: stretch;
	gap: 10px;
	margin-top: 22px;
}

.client-search,
.client-date-filter {
	display: flex;
	align-items: center;
	min-height: 44px;
	border: 1px solid var(--line);
	border-radius: 11px;
	background: white;
}

.client-search {
	gap: 9px;
	width: min(420px, 100%);
	padding: 0 13px;
}

.client-search svg,
.clients-meta svg,
.clear-filters svg {
	width: 17px;
	flex: 0 0 auto;
	fill: #999aa7;
}

.client-search .ti,
.clients-meta .ti,
.clear-filters .ti {
	width: 17px;
	font-size: 17px;
	line-height: 17px;
	color: #999aa7;
}

.client-search input,
.client-date-filter input {
	min-width: 0;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--ink);
	font-size: 12px;
}

.client-search input {
	width: 100%;
}

.client-search input::placeholder {
	color: #b0b1bc;
}

.client-date-filter {
	gap: 9px;
	padding: 4px 6px 4px 12px;
}

.client-date-filter span {
	color: var(--muted);
	font-size: 10px;
	font-weight: 600;
	white-space: nowrap;
}

.client-date-filter input {
	padding: 7px;
	border-radius: 7px;
	background: #f7f7fb;
}

.clear-filters {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0 12px;
	border: 1px solid var(--line);
	border-radius: 11px;
	background: white;
	color: #686a76;
	font-size: 11px;
	font-weight: 600;
	cursor: pointer;
}

.clients-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 18px 2px 11px;
	color: var(--muted);
	font-size: 10px;
}

.clients-meta p {
	margin: 0;
}

.clients-meta strong {
	color: var(--ink);
	font-size: 12px;
}

.clients-meta > span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.clients-grid,
.clients-loading {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
	gap: 12px;
}

.client-card {
	position: relative;
	min-width: 0;
	padding: 15px;
	border: 1px solid var(--line);
	border-radius: 15px;
	background: white;
	box-shadow: 0 5px 15px rgba(38, 39, 58, 0.035);
	transition:
		transform 150ms ease,
		border-color 150ms ease,
		box-shadow 150ms ease;
}

.client-card:hover {
	transform: translateY(-2px);
	border-color: #dce6df;
	box-shadow: 0 11px 25px rgba(38, 39, 58, 0.075);
}

.client-card-header {
	display: grid;
	grid-template-columns: 38px minmax(0, 1fr) 28px;
	gap: 10px;
	align-items: center;
	padding-bottom: 13px;
	border-bottom: 1px solid #f0f0f5;
}

.client-avatar {
	display: grid;
	width: 38px;
	height: 38px;
	place-items: center;
	border-radius: 50%;
	background: var(--accent-soft);
	color: var(--accent);
}

.client-avatar svg {
	width: 21px;
	fill: currentColor;
}

.client-avatar .ti {
	width: 21px;
	font-size: 21px;
	line-height: 21px;
}

.client-title {
	min-width: 0;
}

.client-title strong,
.client-title small {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.client-title strong {
	font-size: 12px;
	letter-spacing: -0.015em;
}

.client-title small {
	margin-top: 4px;
	color: #aaaab5;
	font-size: 9px;
}

.client-menu-button {
	display: grid;
	width: 28px;
	height: 28px;
	padding: 0;
	place-items: center;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #8b8c98;
	cursor: pointer;
}

.client-menu-button:hover,
.client-menu-button[aria-expanded="true"] {
	background: #f4faf5;
	color: var(--accent);
}

.client-menu-button svg {
	width: 18px;
	fill: currentColor;
}

.client-menu-button .ti {
	width: 18px;
	font-size: 18px;
	line-height: 18px;
}

.client-card-menu {
	position: absolute;
	top: 50px;
	right: 12px;
	z-index: 5;
	width: 136px;
	padding: 6px;
	border: 1px solid var(--line);
	border-radius: 11px;
	background: white;
	box-shadow: 0 15px 35px rgba(33, 32, 48, 0.16);
}

.client-card-menu button {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	min-height: 34px;
	padding: 0 9px;
	border: 0;
	border-radius: 7px;
	background: transparent;
	color: #484a56;
	font-size: 10px;
	text-align: left;
	cursor: pointer;
}

.client-card-menu button:hover {
	background: #f5f8f6;
}

.client-card-menu button:last-child {
	color: #d33f49;
}

.client-card-menu svg {
	width: 15px;
	fill: currentColor;
}

.client-card-menu .ti {
	width: 15px;
	font-size: 15px;
	line-height: 15px;
}

.client-contact-list {
	display: grid;
	gap: 8px;
	padding: 13px 2px 12px;
}

.client-contact {
	display: flex;
	align-items: center;
	gap: 7px;
	min-width: 0;
	color: #747682;
	font-size: 10px;
}

.client-contact svg {
	width: 14px;
	flex: 0 0 auto;
	fill: #a5a6b1;
}

.client-contact .ti {
	width: 14px;
	font-size: 14px;
	line-height: 14px;
	color: #a5a6b1;
}

.client-contact span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.client-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.client-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	max-width: 100%;
	min-height: 25px;
	padding: 0 8px;
	border-radius: 7px;
	font-size: 9px;
	font-weight: 700;
}

.client-badge svg {
	width: 13px;
	flex: 0 0 auto;
	fill: currentColor;
}

.client-badge .ti {
	width: 13px;
	font-size: 13px;
	line-height: 13px;
}

.client-badge span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.channel-whatsapp {
	background: #e9f8ef;
	color: #16844a;
}

.channel-telegram {
	background: #e9f5fd;
	color: #247da8;
}

.channel-instagram {
	background: #f9ecf5;
	color: #a4387a;
}

.channel-email,
.channel-phone,
.channel-other {
	background: #f3faf5;
	color: #68617e;
}

.channel-facebook {
	background: #eaf0fd;
	color: #315daa;
}

.status-completed {
	background: #e9f8ef;
	color: #18784a;
}

.status-in_work {
	background: #e9fbea;
	color: #218b3d;
}

.status-cancelled {
	background: #f5eeee;
	color: #a85a60;
}

.status-postponed {
	background: #fff4dc;
	color: #9b6a0f;
}

.status-blacklist {
	background: #292932;
	color: white;
}

.status-no_booking {
	background: #f1f1f4;
	color: #777986;
}

.contract-ready {
	background: #eef9f2;
	color: #277451;
}

.clients-state {
	align-items: center;
	justify-content: center;
	min-height: 310px;
	border: 1px dashed var(--line-strong);
	border-radius: 15px;
	background: rgba(255, 255, 255, 0.55);
	color: var(--muted);
	text-align: center;
}

.clients-auth,
.clients-empty {
	display: flex;
	flex-direction: column;
	padding: 30px;
}

.clients-state h3,
.clients-state p {
	margin: 0;
}

.clients-state h3 {
	margin-top: 12px;
	color: var(--ink);
	font-size: 15px;
}

.clients-state p {
	max-width: 380px;
	margin-top: 6px;
	font-size: 11px;
	line-height: 1.55;
}

.clients-state a {
	margin-top: 15px;
	padding: 10px 14px;
	border-radius: 9px;
	background: var(--accent);
	color: white;
	font-size: 11px;
	font-weight: 700;
	text-decoration: none;
}

.state-icon {
	display: grid;
	width: 48px;
	height: 48px;
	place-items: center;
	border-radius: 15px;
	background: var(--accent-soft);
	color: var(--accent);
}

.state-icon svg {
	width: 24px;
	fill: currentColor;
}

.state-icon .ti {
	width: 24px;
	font-size: 24px;
	line-height: 24px;
}

.clients-loading > div {
	height: 177px;
	border-radius: 15px;
	background: linear-gradient(90deg, #f5f5f8, #ececf3, #f5f5f8);
	background-size: 200% 100%;
	animation: client-shimmer 1.2s infinite;
}

.client-form-view,
.service-form-view,
.order-form-view,
.settings-view {
	min-width: 0;
	padding: 28px;
	background: var(--work);
}

.settings-form {
	max-width: 1040px;
}

.settings-form .form-grid {
	align-items: start;
}

.settings-readonly-card {
	border-style: dashed;
	background: linear-gradient(135deg, #fff 0%, #f7fff8 100%);
}

.settings-backup-card {
	background: #fff;
}

.backup-status-panel {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px;
	border: 1px solid #dcefe1;
	border-radius: 12px;
	background: #f7fff8;
}

.backup-status-main {
	display: grid;
	gap: 4px;
	min-width: 0;
}

.backup-status-main span,
.backup-command-grid span {
	color: var(--muted);
	font-size: 10px;
	font-weight: 900;
	text-transform: uppercase;
}

.backup-status-main strong {
	font-size: 16px;
}

.backup-status-main small,
.backup-note {
	color: var(--muted);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.45;
}

.backup-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	flex-wrap: wrap;
}

.backup-actions .compact {
	min-height: 36px;
	padding-inline: 12px;
}

.backup-restore-panel {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(220px, 320px) auto;
	gap: 12px;
	align-items: end;
	margin-top: 12px;
	padding: 14px;
	border: 1px solid #f0d8df;
	border-radius: 12px;
	background: #fffafa;
}

.backup-restore-panel > div {
	display: grid;
	gap: 4px;
}

.backup-restore-panel span,
.backup-command-details summary {
	color: var(--muted);
	font-size: 10px;
	font-weight: 900;
	text-transform: uppercase;
}

.backup-restore-panel small {
	color: var(--muted);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.45;
}

.backup-file-picker {
	display: grid;
	gap: 6px;
	min-width: 0;
}

.backup-file-picker input {
	width: 100%;
}

.backup-file-picker span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.secondary-action.danger {
	border-color: #f0c6cf;
	color: #b4233f;
}

.backup-command-details {
	margin-top: 12px;
}

.backup-command-details summary {
	cursor: pointer;
}

.backup-command-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 12px;
	margin-top: 12px;
}

.backup-command-grid > div {
	display: grid;
	gap: 7px;
	min-width: 0;
	padding: 12px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: #fff;
}

.backup-command-grid code {
	display: block;
	overflow-x: auto;
	padding: 10px;
	border-radius: 8px;
	background: #252331;
	color: #fff;
	font-size: 11px;
	line-height: 1.5;
	white-space: nowrap;
}

.backup-note {
	margin: 12px 0 0;
}

.pending-field {
	display: grid;
	align-content: start;
	gap: 7px;
	min-width: 0;
	padding-bottom: 22px;
}

.pending-field.form-field-wide {
	grid-column: 1 / -1;
}

.pending-toggle {
	display: inline-flex;
	width: max-content;
	align-items: center;
	gap: 6px;
	color: #8a720f;
	font-size: 11px;
	font-weight: 700;
	cursor: pointer;
}

.order-entry-form .form-grid {
	align-items: start;
}

.order-entry-form .order-date-grid {
	grid-template-columns: minmax(145px, 0.9fr) minmax(140px, 0.9fr) minmax(130px, 0.8fr) minmax(130px, 0.8fr);
	max-width: 860px;
	gap: 12px;
}

.order-postponed-fields {
	display: grid;
	grid-template-columns: minmax(180px, 1fr) minmax(160px, 0.8fr) auto;
	gap: 12px;
	align-items: end;
	margin-top: 12px;
	padding: 12px;
	border: 1px solid rgba(76, 168, 98, 0.18);
	border-radius: 14px;
	background: #f7fff8;
}

.order-postponed-fields[hidden] {
	display: none;
}

.order-postponed-fields .secondary-action {
	min-height: 42px;
	white-space: nowrap;
}

.order-entry-form .form-grid > .form-field {
	padding-bottom: 22px;
}

.pending-field .form-field {
	width: 100%;
}

.place-group-control,
.finance-category-control {
	display: flex;
	gap: 8px;
	align-items: stretch;
}

.place-group-control select,
.finance-category-control select {
	flex: 1;
	min-width: 0;
}

.place-group-control .secondary-action.compact,
.finance-category-control .secondary-action.compact {
	flex: 0 0 auto;
	white-space: nowrap;
}

.place-pills {
	display: grid;
	gap: 6px;
	margin-top: 3px;
}

.place-group-tabs,
.place-pill-panel {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.place-group-tabs button {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	min-height: 24px;
	padding: 3px 8px;
	border: 1px solid #dfe9e2;
	border-radius: 999px;
	background: #fbfbfe;
	color: #696b7a;
	font: inherit;
	font-size: 9px;
	font-weight: 850;
	cursor: pointer;
}

.place-group-tabs button:hover,
.place-group-tabs button.active {
	border-color: #91dea4;
	background: #f4fff6;
	color: var(--accent);
}

.place-group-tabs button.has-selected {
	box-shadow: inset 0 0 0 1px rgba(33, 139, 61, 0.08);
}

.place-group-tabs small {
	display: inline-grid;
	min-width: 16px;
	height: 16px;
	place-items: center;
	border-radius: 999px;
	background: #e9fbea;
	color: #35c85a;
	font-size: 8px;
	font-weight: 900;
}

.place-pill {
	padding: 4px 8px;
	border: 1px solid #dce6df;
	border-radius: 999px;
	background: #fff;
	color: #5f6070;
	font: inherit;
	font-size: 9.5px;
	font-weight: 700;
	cursor: pointer;
	transition: 140ms ease;
}

.place-pill:hover {
	border-color: #76d98e;
	color: var(--accent);
}

.place-pill.selected {
	border-color: var(--accent);
	background: #e9fbea;
	color: #218b3d;
	box-shadow: inset 0 0 0 1px rgba(33, 139, 61, 0.08);
}

.place-pills.disabled {
	opacity: 0.5;
}

.place-pill:disabled {
	cursor: not-allowed;
}

.place-pills-loading {
	color: var(--muted);
	font-size: 10px;
}

.client-picker {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 8px;
}

.client-picker input {
	min-width: 0;
}

.client-search-combobox {
	position: relative;
	min-width: 0;
}

.client-search-combobox > input[type="text"],
.client-search-combobox > input:not([type]) {
	width: 100%;
}

.client-search-results {
	position: absolute;
	top: calc(100% + 5px);
	right: 0;
	left: 0;
	z-index: 20;
	max-height: 280px;
	overflow-y: auto;
	padding: 6px;
	border: 1px solid var(--line-strong);
	border-radius: 12px;
	background: white;
	box-shadow: 0 14px 34px rgba(35, 31, 55, 0.16);
}

.client-search-results button {
	display: block;
	width: 100%;
	padding: 9px 10px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--ink);
	text-align: left;
	cursor: pointer;
}

.client-search-results button:hover {
	background: var(--accent-soft);
}

.client-search-results strong,
.client-search-results small {
	display: block;
}

.client-search-results strong {
	font-size: 11px;
}

.client-search-results small {
	margin-top: 3px;
	color: var(--muted);
	font-size: 9px;
}

.client-search-results p {
	margin: 8px;
	color: var(--muted);
	font-size: 10px;
}

.client-picker > button {
	padding: 0 14px;
	border: 1px solid #b9efc3;
	border-radius: 10px;
	background: #f4fff6;
	color: var(--accent);
	font-size: 11px;
	font-weight: 750;
	cursor: pointer;
}

.finance-form-groups {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.finance-form-group {
	display: grid;
	align-content: start;
	gap: 12px;
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: #f8f8fb;
}

.finance-form-group h4 {
	margin: 0 0 3px;
	font-size: 13px;
}

.money-input {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 82px;
}

.money-input input {
	border-radius: 10px 0 0 10px !important;
}

.money-input select,
.money-input > span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	border: 1px solid var(--line-strong);
	border-left: 0;
	border-radius: 0 10px 10px 0;
	background: white;
	color: #4d4f5b;
	font-size: 11px;
	font-weight: 800;
}

.money-input select {
	padding: 0 8px;
}

.form-field > small {
	margin-top: 5px;
	color: var(--muted);
	font-size: 11px;
}

@media (max-width: 680px) {
	.finance-form-groups,
	.client-picker {
		grid-template-columns: 1fr;
	}

	.client-picker > button {
		min-height: 40px;
	}

	.repeat-row,
	.tickets-extra {
		grid-template-columns: 1fr;
	}

	.vehicle-row {
		grid-template-columns: 1fr;
	}
}

.pending-toggle input {
	width: 14px;
	height: 14px;
	margin: 0;
	accent-color: #d5a900;
}

.pending-field.pending-active .form-field input,
.pending-field.pending-active .form-field select,
.pending-field.pending-active .form-field textarea {
	border-color: #edd36e;
	background: #fff3b2;
	color: #745f08;
	opacity: 1;
}

.order-entry-form input[readonly] {
	background: #f4f4f8;
	color: #737582;
}

.service-edit-warning {
	padding: 14px 16px;
	border: 1px solid #efd99d;
	border-radius: 13px;
	background: #fff9e9;
	color: #765f20;
}

.service-edit-warning strong,
.service-edit-warning p {
	margin: 0;
}

.service-edit-warning strong {
	font-size: 11px;
}

.service-edit-warning p {
	margin-top: 5px;
	font-size: 9px;
	line-height: 1.55;
}

.client-form-heading {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
}

.client-form-heading p,
.client-form-heading h2 {
	margin: 0;
}

.client-form-heading p {
	margin-bottom: 4px;
	color: var(--muted);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

.client-form-heading h2 {
	font-size: 25px;
	letter-spacing: -0.035em;
}

.order-archive-return {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
	min-height: 40px;
	padding: 0 14px;
	border: 1px solid #cae8d0;
	border-radius: 12px;
	background: #f7fff8;
	color: var(--accent);
	font-size: 12px;
	font-weight: 850;
	cursor: pointer;
}

.order-archive-return:hover {
	background: #f4fff6;
	border-color: #ade5bb;
}

.order-archive-return .ti {
	font-size: 18px;
}

.back-to-clients {
	display: grid;
	width: 40px;
	height: 40px;
	padding: 0;
	place-items: center;
	border: 1px solid var(--line);
	border-radius: 11px;
	background: white;
	color: #666876;
	cursor: pointer;
}

.back-to-clients:hover {
	border-color: #d6e7da;
	color: var(--accent);
}

.back-to-clients svg {
	width: 19px;
	fill: currentColor;
}

.back-to-clients .ti {
	width: 19px;
	font-size: 19px;
	line-height: 19px;
}

.client-form {
	display: grid;
	gap: 14px;
	max-width: 880px;
}

.contract-readiness {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border: 1px solid #eadcae;
	border-radius: 14px;
	background: #fffaf0;
	color: #7d641f;
}

.contract-readiness.ready {
	border-color: #bfe4ce;
	background: #f0fbf5;
	color: #18784a;
}

.readiness-icon {
	display: grid;
	width: 34px;
	height: 34px;
	flex: 0 0 auto;
	place-items: center;
	border-radius: 10px;
	background: currentColor;
}

.readiness-icon svg {
	width: 18px;
	fill: white;
}

.readiness-icon .ti {
	width: 18px;
	font-size: 18px;
	line-height: 18px;
	color: white;
}

.contract-readiness strong,
.contract-readiness p {
	margin: 0;
}

.contract-readiness strong {
	font-size: 11px;
}

.contract-readiness p {
	margin-top: 3px;
	font-size: 9px;
	line-height: 1.45;
	opacity: 0.82;
}

.form-card {
	padding: 20px;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: white;
	box-shadow: 0 5px 16px rgba(38, 39, 58, 0.03);
}

.form-card-heading {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	margin-bottom: 18px;
}

.form-card-heading > span {
	display: grid;
	width: 30px;
	height: 30px;
	flex: 0 0 auto;
	place-items: center;
	border-radius: 9px;
	background: var(--accent-soft);
	color: var(--accent);
	font-size: 9px;
	font-weight: 800;
}

.form-card-heading h3,
.form-card-heading p {
	margin: 0;
}

.form-card-heading h3 {
	font-size: 14px;
	letter-spacing: -0.015em;
}

.form-card-heading p {
	margin-top: 4px;
	color: var(--muted);
	font-size: 10px;
	line-height: 1.45;
}

.form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 15px;
}

.form-field {
	display: grid;
	gap: 7px;
	min-width: 0;
}

.form-field-wide {
	grid-column: 1 / -1;
}

.form-field > span {
	color: #545663;
	font-size: 11px;
	font-weight: 700;
}

.form-field > span b {
	color: #d74a55;
}

.form-field input,
.form-field select,
.form-field textarea {
	width: 100%;
	min-width: 0;
	border: 1px solid var(--line);
	border-radius: 10px;
	outline: none;
	background: #fbfbfd;
	color: var(--ink);
	font: inherit;
	font-size: 12px;
	transition:
		border-color 150ms ease,
		box-shadow 150ms ease,
		background 150ms ease;
}

.form-field input,
.form-field select {
	height: 42px;
	padding: 0 12px;
}

.form-field textarea {
	resize: vertical;
	padding: 11px 12px;
	line-height: 1.5;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
	border-color: #76d98e;
	background: white;
	box-shadow: 0 0 0 3px rgba(76, 217, 100, 0.12);
}

.form-field input.invalid {
	border-color: #d74a55;
	box-shadow: 0 0 0 3px rgba(215, 74, 85, 0.08);
}

.form-field small {
	color: #999aa6;
	font-size: 11px;
	line-height: 1.4;
}

.title-input-group {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 8px;
}

.title-input-group button {
	padding: 0 13px;
	border: 1px solid #dce6df;
	border-radius: 10px;
	background: #f4fff6;
	color: var(--accent);
	font-size: 11px;
	font-weight: 700;
	cursor: pointer;
}

.title-input-group button:hover {
	background: #e9fbea;
}

.form-switch {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 13px;
	border: 1px solid var(--line);
	border-radius: 11px;
	background: #fafafe;
	cursor: pointer;
}

.form-switch > input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.switch-control {
	position: relative;
	width: 34px;
	height: 20px;
	flex: 0 0 auto;
	border-radius: 99px;
	background: #d9d9e2;
	transition: background 150ms ease;
}

.switch-control::after {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: white;
	box-shadow: 0 2px 5px rgba(38, 39, 58, 0.16);
	content: "";
	transition: transform 150ms ease;
}

.form-switch > input:checked + .switch-control {
	background: var(--accent);
}

.form-switch > input:checked + .switch-control::after {
	transform: translateX(14px);
}

.form-switch > input:focus-visible + .switch-control {
	outline: 3px solid rgba(76, 217, 100, 0.16);
}

.form-switch > span:last-child {
	display: grid;
	gap: 3px;
}

.form-switch strong {
	color: #4e505d;
	font-size: 11px;
}

.form-switch small {
	color: #9697a3;
	font-size: 10px;
	line-height: 1.35;
}

.form-switch-danger > input:checked + .switch-control {
	background: #292932;
}

.duplicate-warning {
	padding: 13px 15px;
	border: 1px solid #efc1c5;
	border-radius: 12px;
	background: #fff4f5;
	color: #9d3d45;
}

.duplicate-warning strong,
.duplicate-warning p {
	margin: 0;
}

.duplicate-warning strong {
	font-size: 11px;
}

.duplicate-warning p {
	margin-top: 4px;
	font-size: 9px;
	line-height: 1.5;
}

.form-actions {
	position: sticky;
	bottom: 0;
	z-index: 3;
	display: flex;
	justify-content: flex-end;
	gap: 9px;
	padding: 13px 0 3px;
	background: linear-gradient(transparent, var(--work) 22%);
}

.primary-action,
.secondary-action,
.danger-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 42px;
	padding: 0 18px;
	border-radius: var(--radius);
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}

.form-actions button {
	min-height: 42px;
	padding: 0 18px;
	border-radius: var(--radius);
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
}

.secondary-action {
	border: 1px solid var(--line);
	background: white;
	color: #666875;
}

.danger-action {
	margin-right: auto;
	border: 1px solid #f0c9cf;
	background: #fff7f8;
	color: #b42335;
}

.danger-action:hover {
	border-color: #e9aeb8;
	background: #fff1f3;
}

.danger-action:disabled {
	cursor: wait;
	opacity: 0.65;
}

.primary-action {
	border: 0;
	background: linear-gradient(135deg, #4cd964, #24b84f);
	color: white;
	box-shadow: 0 9px 22px rgba(53, 200, 90, 0.18);
}

.primary-action:disabled {
	cursor: wait;
	opacity: 0.65;
}

@keyframes client-shimmer {
	to {
		background-position: -200% 0;
	}
}

@media (max-width: 900px) {
	.order-sections {
		grid-template-columns: 1fr;
	}

	.order-section-wide {
		grid-column: auto;
	}
}

@media (max-width: 680px) {
	.orders-view {
		padding: 20px 16px;
	}

	.orders-toolbar {
		align-items: flex-start;
	}

	.orders-toolbar .add-service-button {
		display: inline-flex;
		width: 100%;
		min-height: 48px;
	}

	.orders-toolbar {
		align-items: stretch;
		flex-direction: column;
	}

	.orders-filterbar {
		overflow-x: auto;
		margin-inline: -16px;
		padding: 0 16px 4px;
		scrollbar-width: none;
	}

	.orders-filterbar::-webkit-scrollbar {
		display: none;
	}

	.orders-filter-pill {
		flex: 0 0 auto;
		min-height: 44px;
		padding-inline: 15px;
		font-size: 13px;
	}

	.order-snippet {
		grid-template-columns: 64px minmax(0, 1fr);
		gap: 12px;
		padding: 13px;
	}

	.order-snippet-main > p {
		font-size: 14px;
		line-height: 1.45;
	}

	.order-snippet-meta span,
	.order-snippet-note {
		font-size: 12px;
	}

	.order-snippet-meta span {
		display: inline-flex;
		min-height: 30px;
		align-items: center;
	}

	.order-read-more {
		font-size: 12px;
	}

	.order-date-block {
		min-height: 94px;
	}

	.order-snippet-side {
		grid-column: 1 / -1;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		padding: 12px 0 0;
		border-top: 1px solid var(--line);
		border-left: 0;
	}

	.order-snippet-side .order-status {
		margin-bottom: 0;
	}

	.order-snippet-side small {
		display: none;
	}

	.order-read-more {
		margin-top: 0;
	}

	.order-title-line {
		display: block;
	}

	.order-status-cluster {
		align-items: flex-start;
		margin-top: 8px;
	}

	.order-detail-header {
		grid-template-columns: 1fr;
		align-items: stretch;
	}

	.order-detail-back {
		width: 100%;
		min-height: 48px;
		justify-content: flex-start;
	}

	.order-detail-header-actions {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr);
		justify-content: stretch;
	}

	.order-detail-edit {
		min-height: 48px;
	}

	.order-detail-summary {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.order-detail-summary > div {
		min-height: 108px;
		padding: 46px 13px 13px;
	}

	.order-detail-summary .ti {
		top: 13px;
		left: 13px;
	}

	.order-fields,
	.finance-groups {
		grid-template-columns: 1fr;
	}

	.field-span-2 {
		grid-column: auto;
	}
}

.prototype-toast {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 20;
	max-width: min(340px, calc(100vw - 32px));
	padding: 12px 15px;
	border-radius: 11px;
	background: #272631;
	color: white;
	font-size: 11px;
	font-weight: 600;
	opacity: 0;
	pointer-events: none;
	transform: translateY(10px);
	transition:
		opacity 160ms ease,
		transform 160ms ease;
}

.prototype-toast.visible {
	opacity: 1;
	transform: translateY(0);
}

@media (max-width: 980px) {
	:root {
		--sidebar-width: 208px;
	}

	.page {
		padding: 18px;
	}

	.app-shell {
		min-height: calc(100vh - 36px);
		border-radius: 22px;
	}

	.sidebar {
		padding-inline: 14px;
	}

	.layout-stage {
		grid-template-columns: 1fr;
	}

	.layout-panel {
		min-height: 440px;
	}

	.layout-secondary {
		min-height: 280px;
	}

	.empty-layout-side {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: 1fr;
	}

	.clients-view {
		padding: 22px;
	}

	.service-catalog-view {
		padding: 22px;
	}

	.client-form-view,
	.settings-view {
		padding: 22px;
	}

	.service-form-view {
		padding: 22px;
	}

	.order-form-view {
		padding: 22px;
	}

	.clients-grid,
	.clients-loading {
		grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	}
}

@media (min-width: 721px) and (max-height: 800px) {
	.page {
		padding-block: 28px;
	}

	.app-shell {
		min-height: calc(100vh - 56px);
	}

	.sidebar {
		padding-block: 20px 16px;
	}

	.nav {
		margin-top: 18px;
	}

	.nav-caption {
		margin-block: 13px 5px;
	}

	.nav-item {
		min-height: 40px;
	}

	.sidebar-footer {
		padding-top: 8px;
	}

	.profile-placeholder {
		margin-top: 8px;
		padding-top: 8px;
	}

	.layout-panel {
		min-height: 320px;
	}
}

@media (max-width: 720px) {
	.page {
		display: block;
		padding: 0;
	}

	.login-screen {
		min-height: 100vh;
		width: 100%;
		padding: 18px;
	}

	.login-card {
		padding: 22px;
		border-radius: 18px;
	}

	.login-brand h1 {
		font-size: 25px;
	}

	.app-shell {
		display: block;
		min-height: 100vh;
		border: 0;
		border-radius: 0;
	}

	.sidebar {
		position: fixed;
		inset: 0 auto 0 0;
		width: min(278px, 84vw);
		transform: translateX(-105%);
		box-shadow: 22px 0 55px rgba(25, 25, 42, 0.18);
		transition: transform 220ms ease;
	}

	.app-shell.sidebar-open .sidebar {
		transform: translateX(0);
	}

	.mobile-backdrop {
		position: fixed;
		inset: 0;
		z-index: 2;
		display: block;
		pointer-events: none;
		background: rgba(24, 22, 36, 0);
		transition: background 220ms ease;
	}

	.app-shell.sidebar-open .mobile-backdrop {
		pointer-events: auto;
		background: rgba(24, 22, 36, 0.28);
	}

	.mobile-menu {
		display: grid;
	}

	.topbar {
		min-height: 88px;
		padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 16px max(16px, env(safe-area-inset-left));
	}

	.page-heading p {
		display: none;
	}

	.page-heading h1 {
		font-size: 25px;
	}

	.topbar-actions {
		gap: 6px;
	}

	.topbar-popover {
		position: fixed;
		top: 72px;
		right: 16px;
		left: 16px;
		width: auto;
	}

	.notifications-popover [data-notifications-list] {
		max-height: calc(100dvh - 190px);
	}

	.topbar-actions > button,
	.mobile-menu {
		width: 38px;
		height: 38px;
	}

	.top-avatar {
		width: 38px;
		height: 38px;
		margin-left: 0;
	}

	.layout-stage {
		gap: 12px;
		padding: 14px;
	}

	.overview-chart-card {
		grid-template-rows: auto minmax(240px, auto) auto;
		padding: 14px;
	}

	.overview-side-panel {
		padding: 12px;
	}

	.overview-mini-calendar-head {
		align-items: flex-start;
		flex-direction: column;
	}

	.overview-mini-calendar-nav {
		width: 100%;
		justify-content: space-between;
	}

	.overview-quick-actions {
		grid-template-columns: 1fr;
	}

	.overview-quick-actions button {
		min-height: 48px;
		grid-template-columns: auto 1fr;
		align-content: center;
		justify-items: start;
		padding-inline: 14px;
	}

	.overview-chart-filter,
	.overview-chart-filter label,
	.overview-chart-filter button {
		width: 100%;
	}

	.overview-chart-wrap,
	.overview-chart-svg,
	.overview-chart-empty {
		min-height: 240px;
	}

	.backup-status-panel,
	.backup-command-grid,
	.backup-restore-panel {
		display: grid;
		grid-template-columns: 1fr;
	}

	.backup-actions {
		justify-content: stretch;
	}

	.backup-actions .compact {
		flex: 1 1 160px;
	}

	.layout-panel {
		min-height: 480px;
		border-radius: 16px;
	}

	.layout-secondary {
		min-height: 260px;
	}

	.empty-layout {
		grid-template-columns: 1fr;
		grid-template-rows: repeat(3, minmax(120px, 1fr));
		padding: 60px 14px 14px;
	}

	.empty-layout-side {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: 1fr;
	}

	.clients-view {
		padding: 18px 14px 34px;
	}

	.service-catalog-view {
		padding: 18px 14px 34px;
	}

	.services-toolbar {
		align-items: stretch;
		flex-direction: column;
	}

	.add-service-button {
		width: 100%;
	}

	.services-summary {
		align-items: flex-start;
		flex-direction: column;
		margin-top: 18px;
	}

	.services-table th,
	.services-table td {
		padding: 14px 12px;
	}

	.services-table th:first-child,
	.services-table td:first-child {
		display: none;
	}

	.services-table th:nth-child(3),
	.services-table td:nth-child(3),
	.services-table th:nth-child(4),
	.services-table td:nth-child(4) {
		width: auto;
	}

	.services-table th:last-child,
	.services-table td:last-child {
		width: 42px;
		padding-inline: 6px;
	}

	.client-form-view,
	.settings-view {
		padding: 18px 14px 34px;
	}

	.service-form-view {
		padding: 18px 14px 34px;
	}

	.order-form-view {
		padding: 18px max(14px, env(safe-area-inset-right)) calc(34px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
	}

	.orders-view {
		padding-bottom: calc(34px + env(safe-area-inset-bottom));
	}

	.form-field input,
	.form-field select,
	.form-field textarea,
	.client-search input,
	.client-date-filter input,
	.repeat-row input,
	.repeat-row select,
	.finance-extra-line input,
	.finance-extra-line select,
	.finance-extra-line textarea,
	.order-checklist-add input {
		font-size: 16px;
	}

	.form-actions {
		bottom: env(safe-area-inset-bottom);
		padding-bottom: max(10px, env(safe-area-inset-bottom));
	}

	.order-archive-return {
		width: 100%;
		justify-content: center;
		margin-left: 0;
	}

	.form-card {
		padding: 16px;
	}

	.form-grid {
		grid-template-columns: 1fr;
	}

	.order-entry-form .order-date-grid {
		grid-template-columns: 1fr;
		max-width: none;
	}

	.order-postponed-fields {
		grid-template-columns: 1fr;
	}

	.order-postponed-fields .secondary-action {
		width: 100%;
	}

	.form-field-wide {
		grid-column: auto;
	}

	.title-input-group {
		grid-template-columns: 1fr;
	}

	.title-input-group button {
		min-height: 38px;
	}

	.form-actions {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}

	.clients-toolbar {
		align-items: stretch;
		flex-direction: column;
	}

	.clients-toolbar-actions {
		display: grid;
		grid-template-columns: 1fr;
	}

	.clients-export-actions,
	.add-client-button {
		width: 100%;
	}

	.clients-export-actions {
		justify-content: space-between;
	}

	.clients-filters {
		display: grid;
		grid-template-columns: 1fr auto;
	}

	.client-search {
		grid-column: 1 / -1;
		width: 100%;
	}

	.client-date-filter {
		min-width: 0;
	}

	.client-date-filter span {
		display: none;
	}

	.client-date-filter input {
		width: 100%;
	}

	.clients-grid,
	.clients-loading {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}
