* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html,
body {
	height: 100%;
}

body {
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	background: #f5f7fb;
	color: #1f2937;
	font-size: 15px;
	line-height: 1.5;
	overflow-y: scroll;
}

a {
	color: inherit;
	text-decoration: none;
}

button,
input,
select,
textarea {
	font: inherit;
}

.unselectable {
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	-o-user-select: none;
	user-select: none;
	cursor: default;
}

.app {
	display: flex;
	min-height: 100vh;
}

/* ===========================
   Sidebar
=========================== */

.sidebar {
	width: 260px;
	background: #1f2937;
	color: #fff;
	display: flex;
	flex-direction: column;
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
}

.sidebar-logo {
	padding: 30px;
	font-size: 22px;
	font-weight: 700;
	border-bottom: 1px solid rgba(255,255,255,.08);
}

.sidebar-nav {
	display: flex;
	flex-direction: column;
	padding: 20px 15px;
	gap: 5px;
	flex: 1;
}

.sidebar-nav a {
	padding: 13px 16px;
	border-radius: 10px;
	transition: .2s;
	color: rgba(255,255,255,.8);
	font-weight: 500;
}

.sidebar-nav a:hover {
	background: rgba(255,255,255,.08);
	color: #fff;
}

.sidebar-nav a.active {
	background: #2563eb;
	color: #fff;
}

.sidebar-logout {
	margin: 20px;
	padding: 13px;
	border-radius: 10px;
	background: rgba(255,255,255,.08);
	text-align: center;
	transition: .2s;
}

.sidebar-logout:hover {
	background: #dc2626;
}

/* ===========================
   Content
=========================== */

.main-content {
	margin-left: 260px;
	width: calc(100% - 260px);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* ===========================
   Topbar
=========================== */

.topbar {
	height: 70px;
	background: #fff;
	border-bottom: 1px solid #e5e7eb;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 30px;
	position: sticky;
	top: 0;
	z-index: 100;
}

.topbar-brand {
	font-size: 20px;
	font-weight: 700;
}

.topbar-user {
	font-weight: 600;
	color: #374151;
}

.menu-toggle {
	display: none;
	border: 0;
	background: transparent;
	font-size: 28px;
	cursor: pointer;
}

/* ===========================
   Page
=========================== */

.page {
	padding: 35px;
}

.page-title {
	font-size: 30px;
	font-weight: 700;
	margin-bottom: 30px;
}

.cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
}

.card {
	background: #fff;
	border-radius: 14px;
	padding: 25px;
	box-shadow: 0 5px 15px rgba(0,0,0,.04);
}

.card-title {
	font-size: 14px;
	color: #6b7280;
	margin-bottom: 10px;
}

.card-value {
	font-size: 32px;
	font-weight: 700;
	color: #111827;
}

/* ===========================
   Tables
=========================== */

.table-wrapper {
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 5px 15px rgba(0,0,0,.04);
}

table {
	width: 100%;
	border-collapse: collapse;
}

th {
	background: #f8fafc;
	padding: 16px;
	text-align: left;
	font-weight: 600;
	border-bottom: 1px solid #e5e7eb;
}

td {
	padding: 16px;
	border-bottom: 1px solid #eef2f7;
}

tr:last-child td {
	border-bottom: 0;
}

tr:hover {
	background: #f9fafb;
}

/* ===========================
   Buttons
=========================== */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 11px 18px;
	border-radius: 10px;
	border: 0;
	cursor: pointer;
	font-weight: 600;
	transition: .2s;
}

.btn-icon {
	padding: 0;
	height: 40px;
	width: 40px;
}

.btn-icon i,
.btn-icon span {
	line-height: 1;
	padding-bottom: 1px;
}

.btn-icon-edit-user {
	padding-left: 5px;
}

.btn-primary {
	background: #2563eb;
	color: #fff;
}

.btn-primary:hover {
	background: #1d4ed8;
}

.btn-bokio,
.btn-bokio:hover {
	border-radius: 10px;
	width: 40px;
	height: 40px;
	background: #1259ef url(https://admin.swedensites.com/assets/bokio-logo-b.svg) no-repeat center center;
}

.btn-danger {
	background: #dc2626;
	color: #fff;
}

.btn-danger:hover {
	background: #b91c1c;
}

/* ===========================
   Forms
=========================== */

.form-group {
	margin-bottom: 20px;
}

.form-group.nbm {
	margin-bottom: 0;
}

.form-group label {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	background: #fff;
	outline: none;
	transition: .2s;
}

.form-group textarea {
	min-height: 140px;
	resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

/* ===========================
   Login
=========================== */

.login-page {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 25px;
	background: linear-gradient(135deg,#1e3a8a,#2563eb);
}

.login-box {
	width: 100%;
	max-width: 420px;
	background: #fff;
	border-radius: 18px;
	padding: 35px;
	box-shadow: 0 20px 60px rgba(0,0,0,.2);
}

.login-box h1 {
	font-size: 28px;
	margin-bottom: 10px;
}

.login-box p {
	color: #6b7280;
	margin-bottom: 30px;
}

.login-error {
	background: #fee2e2;
	color: #991b1b;
	padding: 12px;
	border-radius: 10px;
	margin-bottom: 20px;
}

/* ===========================
   Mobile
=========================== */

@media (max-width: 900px) {

	.sidebar {
		transform: translateX(-100%);
		transition: .25s;
		z-index: 999;
	}

	.sidebar.open {
		transform: translateX(0);
	}

	.main-content {
		width: 100%;
		margin-left: 0;
	}

	.menu-toggle {
		display: block;
	}

	.page {
		padding: 20px;
	}

	.topbar {
		padding: 0 20px;
	}

	.cards {
		grid-template-columns: 1fr;
	}

	.table-wrapper {
		overflow-x: auto;
	}
}

.login-wrapper {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.login-logo {
	display: flex;
	justify-content: start;
	margin-bottom: 30px;
}

.login-logo img {
	height: 35px;
}

.login-button {
	width: 100%;
	margin-top: 5px;
}

.page-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 28px;
}

.page-subtitle {
	color: #64748b;
	margin-top: -20px;
	line-height: 1;
}

.page-subtitle.with-icon {
	display: flex;
	gap: 7px;
	align-items: center;
}

.page-subtitle.with-icon i {
	padding-bottom: 2px;
}

.stats-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
	margin-bottom: 24px;
}

.stat-card {
	background: #fff;
	border: 1px solid #eef2f7;
	border-radius: 18px;
	padding: 26px;
	display: flex;
	align-items: center;
	gap: 20px;
	box-shadow: 0 12px 30px rgba(15,23,42,.06);
}

.stat-icon {
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: #eaf1ff;
	color: #2563eb;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	font-weight: 700;
}

.stat-icon.green {
	background: #dcfce7;
	color: #16a34a;
}

.stat-icon.orange {
	background: #fff7ed;
	color: #ea580c;
}

.stat-icon.purple {
	background: #f3e8ff;
	color: #7c3aed;
}

.stat-icon.red {
	background: #ffe8e8;
	color: #ed3a3a;
}

.stat-label {
	text-transform: uppercase;
	letter-spacing: .06em;
	font-size: 12px;
	font-weight: 700;
	color: #64748b;
	margin-bottom: 6px;
}

.stat-value {
	font-size: 34px;
	line-height: 1;
	font-weight: 800;
	color: #0f172a;
}

.stat-note {
	margin-top: 8px;
	font-size: 13px;
	color: #64748b;
}

.stat-note.positive {
	color: #16a34a;
}

.dashboard-grid {
	display: grid;
	grid-template-columns: 2fr 1.25fr;
	gap: 24px;
}

.panel {
	background: #fff;
	border: 1px solid #eef2f7;
	border-radius: 18px;
	padding: 26px;
	box-shadow: 0 12px 30px rgba(15,23,42,.06);
}

.panel-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 24px;
}

.panel-header h2 {
	font-size: 18px;
	color: #0f172a;
}

.panel-header p {
	font-size: 13px;
	color: #64748b;
	margin-top: 4px;
}

.panel-header select {
	border: 1px solid #dbe3ef;
	border-radius: 10px;
	padding: 9px 12px;
	background: #fff;
	color: #334155;
}

.small-link {
	font-size: 13px;
	font-weight: 700;
	padding: 8px 12px;
	border: 1px solid #dbe3ef;
	border-radius: 10px;
	color: #334155;
}

.revenue-layout {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 24px;
	align-items: stretch;
}

.metric-label {
	text-transform: uppercase;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .06em;
	color: #94a3b8;
	margin-bottom: 10px;
}

.metric-value {
	font-size: 32px;
	font-weight: 800;
	color: #0f172a;
}

.chart-placeholder {
	min-height: 260px;
	border-radius: 14px;
	background:
		linear-gradient(to top, rgba(37,99,235,.08), rgba(37,99,235,0)),
		repeating-linear-gradient(
			to bottom,
			#fff,
			#fff 52px,
			#eef2f7 53px
		);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #94a3b8;
	font-weight: 700;
}

.empty-state {
	padding: 40px 0;
	color: #94a3b8;
	text-align: center;
}

@media (max-width: 1200px) {
	.stats-grid,
	.dashboard-grid {
		grid-template-columns: 1fr 1fr;
	}

	.panel-large {
		grid-column: 1 / -1;
	}
}

@media (max-width: 700px) {
	.stats-grid,
	.dashboard-grid,
	.revenue-layout {
		grid-template-columns: 1fr;
	}
}

.admin-app {
	display: flex;
	min-height: 100vh;
	background: #f6f8fc;
}

.admin-sidebar {
	width: 280px;
	background: linear-gradient(180deg, #111827 0%, #182335 100%);
	color: #fff;
	position: fixed;
	inset: 0 auto 0 0;
	display: flex;
	flex-direction: column;
	box-shadow: 10px 0 30px rgba(15, 23, 42, .12);
	z-index: 200;
}

.sidebar-brand {
	height: 92px;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 0 26px;
	border-bottom: 1px solid rgba(255,255,255,.08);
}

.brand-mark {
	width: 42px;
	height: 42px;
	border-radius: 14px;
	background: linear-gradient(135deg, #2563eb, #60a5fa);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 13px;
}

.sidebar-brand strong,
.sidebar-profile strong {
	display: block;
	font-size: 15px;
	line-height: 1.2;
}

.sidebar-brand span,
.sidebar-profile span {
	display: block;
	font-size: 12px;
	color: #94a3b8;
	margin-top: 3px;
}

.sidebar-menu {
	padding: 24px 16px;
	display: flex;
	flex-direction: column;
	gap: 7px;
	flex: 1;
}

.sidebar-menu a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border-radius: 13px;
	color: #cbd5e1;
	font-weight: 600;
	transition: .18s ease;
}

.sidebar-menu a span {
	width: 20px;
	text-align: center;
	color: #94a3b8;
}

.sidebar-menu a:hover {
	background: rgba(255,255,255,.06);
	color: #fff;
}

.sidebar-menu a.active {
	background: linear-gradient(135deg, #2563eb, #3b82f6);
	color: #fff;
	box-shadow: 0 12px 25px rgba(37,99,235,.35);
}

.sidebar-menu a.active span {
	color: #fff;
}

.sidebar-profile {
	margin: 0 18px 14px;
	padding: 16px;
	border-radius: 16px;
	background: rgba(255,255,255,.06);
	display: flex;
	align-items: center;
	gap: 12px;
}

.sidebar-logout {
	margin: 0 18px 22px;
	padding: 14px;
	border-radius: 13px;
	background: rgba(255,255,255,.08);
	text-align: center;
	font-weight: 700;
	color: #e5e7eb;
}

.sidebar-logout:hover {
	background: #dc2626;
	color: #fff;
}

.admin-main {
	margin-left: 280px;
	width: calc(100% - 280px);
	min-height: 100vh;
}

.admin-topbar {
	height: 78px;
	background: rgba(255,255,255,.86);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid #e5eaf2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 32px;
	position: sticky;
	top: 0;
	z-index: 100;
}

.topbar-left {
	display: flex;
	align-items: center;
	gap: 22px;
	font-size: 18px;
	color: #0f172a;
}

.topbar-right {
	display: flex;
	align-items: center;
	gap: 22px;
}

.topbar-search input {
	width: 290px;
	height: 42px;
	border: 1px solid #dbe3ef;
	border-radius: 12px;
	background: #f8fafc;
	padding: 0 15px;
	outline: none;
}

.topbar-search input:focus {
	border-color: #2563eb;
	background: #fff;
}

.topbar-user {
	display: flex;
	align-items: center;
	gap: 12px;
}

.topbar-user strong {
	display: block;
	font-size: 14px;
	color: #0f172a;
}

.topbar-user span {
	display: block;
	font-size: 12px;
	color: #64748b;
}

.user-avatar {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: linear-gradient(135deg, #2563eb, #60a5fa);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
}

.user-avatar.small {
	width: 36px;
	height: 36px;
	font-size: 13px;
}

.main-content {
	width: 100%;
	margin-left: 0;
}

.page {
	max-width: 1560px;
	margin: 0 auto;
	padding: 38px 36px;
}

.page-title {
	font-size: 30px;
	margin-bottom: 8px;
	color: #0f172a;
}

.page-subtitle {
	color: #64748b;
	margin: 0;
}

.stats-grid {
	margin-top: 28px;
}

.stat-card {
	min-height: 138px;
	align-items: center;
}

.stat-icon {
	font-family: Arial, sans-serif;
}

@media (max-width: 900px) {
	.admin-sidebar {
		transform: translateX(-100%);
		transition: .25s ease;
	}

	.admin-sidebar.open {
		transform: translateX(0);
	}

	.admin-main {
		margin-left: 0;
		width: 100%;
	}

	.topbar-search {
		display: none;
	}

	.page {
		padding: 24px 18px;
	}
}

.customers-page .page-header {
	margin-bottom: 24px;
}

.customer-toolbar {
	padding-bottom: 22px;
}

.customer-filters {
	display: flex;
	gap: 10px;
	width: 100%;
}

.customer-search {
	flex: 1;
}

.search-field {
	display: flex;
	gap: 10px;
}

.search-field input {
	flex: 1;
	height: 46px;
	padding: 0 15px;
	border: 1px solid #dbe3ef;
	border-radius: 12px;
	background: #fff;
	outline: none;
	transition: .2s;
}

.search-field input:focus {
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

.customer-result-count {
	font-size: 14px;
	font-weight: 700;
	color: #64748b;
	padding-top: 10px;
}

.customer-panel {
	padding: 0;
	overflow: hidden;
}

.customer-table th {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: #64748b;
}

.customer-table td {
	vertical-align: middle;
}

.customer-identity {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 240px;
}

.customer-avatar {
	width: 44px;
	height: 44px;
	flex: 0 0 44px;
	border-radius: 14px;
	background: linear-gradient(135deg, #2563eb, #60a5fa);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
}

.customer-avatar.private {
	background: linear-gradient(135deg, #25ebe4, #3f9d7f);
}

.customer-primary {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.customer-primary strong {
	color: #0f172a;
	font-size: 14px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.customer-primary small {
	margin-top: 4px;
	color: #94a3b8;
	font-size: 12px;
}

.customer-contact {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.customer-contact a {
	color: #334155;
}

.customer-contact a:hover {
	color: #2563eb;
}

.table-muted {
	color: #94a3b8;
}

.table-actions .action-buttons {
	display: flex;
	justify-content: end;
	align-items: center;
	gap: 8px;
}

.table-actions .bokio-open img {
	width: 30px;
	display: block;
}

.table-actions .customer-open {
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	background: #f1f5f9;
	color: #334155;
	font-size: 24px;
	line-height: 1;
	transition: .2s;
}

.table-actions .customer-open:hover {
	background: #2563eb;
	color: #fff;
}

.customer-panel .empty-state {
	padding: 70px 24px;
}

.customer-panel .empty-state h2 {
	margin-bottom: 8px;
	font-size: 20px;
	color: #0f172a;
}

.customer-panel .empty-state p {
	margin-bottom: 20px;
	color: #64748b;
}

@media (max-width: 900px) {
	.customer-search {
		max-width: none;
	}

	.customer-result-count {
		padding-left: 2px;
	}

	.customer-table {
		min-width: 850px;
	}
}

@media (max-width: 600px) {
	.search-field {
		flex-direction: column;
	}

	.search-field .btn {
		width: 100%;
	}
}

.customer-not-found {
	max-width: 720px;
	margin: 60px auto;
	text-align: center;
}

.customer-not-found h1 {
	margin-bottom: 10px;
	color: #0f172a;
}

.customer-not-found p {
	margin-bottom: 22px;
	color: #64748b;
}

.customer-page-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 30px;
	margin-bottom: 28px;
}

.customer-heading {
	min-width: 0;
}

.back-link {
	display: inline-flex;
	margin-bottom: 20px;
	color: #64748b;
	font-size: 14px;
	font-weight: 600;
}

.back-link:hover {
	color: #2563eb;
}

.customer-heading-row {
	display: flex;
	align-items: center;
	gap: 18px;
}

.customer-large-avatar {
	width: 72px;
	height: 72px;
	flex: 0 0 72px;
	border-radius: 22px;
	background: linear-gradient(135deg, #2563eb, #60a5fa);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	font-weight: 800;
	box-shadow: 0 14px 28px rgba(37, 99, 235, .22);
}

.customer-large-avatar.private {
	background: linear-gradient(135deg, #25ebe4, #3f9d7f);
}

.customer-heading-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 7px;
}

.status-badge {
	display: inline-flex;
	align-items: center;
	min-height: 26px;
	padding: 4px 10px;
	border-radius: 999px;
	background: #dbeafe;
	color: #1d4ed8;
	font-size: 12px;
	font-weight: 700;
}

.status-badge.status-active {
	background: #ecfdf3;
	color: #15803d;
	border: 1px solid #bbf7d0;
}

.status-badge.status-paused {
	background: #fffbeb;
	color: #b45309;
	border: 1px solid #fde68a;
}

.status-badge.status-cancelled {
	background: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
}

.customer-number {
	color: #94a3b8;
	font-size: 13px;
	font-weight: 600;
}

.customer-detail-page .page-title {
	margin-bottom: 4px;
}

.customer-header-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

.customer-header-actions .btn:not(.btn-primary) {
	background: #fff;
	border: 1px solid #dbe3ef;
	color: #334155;
}

.customer-header-actions .btn:not(.btn-primary):hover {
	border-color: #94a3b8;
	background: #f8fafc;
}

.customer-summary-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
	margin-bottom: 24px;
}

.customer-summary-card {
	min-width: 0;
	padding: 20px;
	border: 1px solid #e8edf5;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 10px 25px rgba(15, 23, 42, .05);
}

.summary-label {
	display: block;
	margin-bottom: 8px;
	color: #94a3b8;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.summary-value {
	display: block;
	overflow-wrap: anywhere;
	color: #0f172a;
	font-size: 15px;
	font-weight: 700;
}

a.summary-value:hover {
	color: #2563eb;
}

.muted {
	color: #94a3b8;
	font-weight: 500;
}

.customer-content-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) minmax(300px, .8fr);
	align-items: start;
	gap: 24px;
}

.customer-main-column,
.customer-side-column {
	display: flex;
	flex-direction: column;
	gap: 24px;
	min-width: 0;
}

.customer-section {
	padding: 26px;
}

.customer-section .panel-header {
	margin-bottom: 18px;
	padding-bottom: 18px;
	border-bottom: 1px solid #edf1f6;
}

.btn-small {
	padding: 9px 14px;
	font-size: 13px;
}

.detail-list {
	display: flex;
	flex-direction: column;
}

.detail-row {
	display: grid;
	grid-template-columns: minmax(145px, 190px) minmax(0, 1fr);
	gap: 24px;
	padding: 15px 0;
	border-bottom: 1px solid #f0f3f7;
}

.detail-row:first-child {
	padding-top: 0;
}

.detail-row:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.detail-label {
	color: #64748b;
	font-size: 13px;
	font-weight: 600;
}

.detail-value {
	min-width: 0;
	overflow-wrap: anywhere;
	color: #0f172a;
	font-size: 14px;
	font-weight: 600;
}

.detail-value a {
	color: #2563eb;
}

.detail-value a:hover {
	text-decoration: underline;
}

.detail-list.compact .detail-row {
	padding: 13px 0;
}

.detail-row.vertical {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.empty-state.compact {
	padding: 38px 20px;
	border: 1px dashed #dbe3ef;
	border-radius: 14px;
	background: #fafcff;
}

.empty-state.compact h3 {
	margin-bottom: 7px;
	color: #0f172a;
	font-size: 16px;
}

.empty-state.compact p {
	margin: 0;
	color: #64748b;
}

@media (max-width: 1200px) {
	.customer-summary-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.customer-content-grid {
		grid-template-columns: 1fr;
	}

	.customer-side-column {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 800px) {
	.customer-page-header {
		align-items: stretch;
		flex-direction: column;
	}

	.customer-header-actions {
		width: 100%;
	}

	.customer-header-actions .btn {
		flex: 1;
	}

	.customer-heading-row {
		align-items: flex-start;
	}

	.customer-large-avatar {
		width: 60px;
		height: 60px;
		flex-basis: 60px;
		border-radius: 18px;
		font-size: 23px;
	}

	.customer-side-column {
		display: flex;
	}

	.detail-row {
		grid-template-columns: 1fr;
		gap: 5px;
	}
}

@media (max-width: 560px) {
	.customer-summary-grid {
		grid-template-columns: 1fr;
	}

	.customer-heading-row {
		gap: 14px;
	}

	.customer-header-actions {
		flex-direction: column;
	}

	.customer-header-actions .btn {
		width: 100%;
	}

	.customer-section {
		padding: 20px;
	}

	.customer-section .panel-header {
		align-items: stretch;
		flex-direction: column;
	}

	.customer-section .panel-header .btn,
	.customer-section .panel-header .small-link {
		width: 100%;
		text-align: center;
	}
}

.customer-edit-page .page-header {
	margin-bottom: 24px;
}

.form-errors {
	margin-bottom: 22px;
	padding: 18px 20px;
	border: 1px solid #fecaca;
	border-radius: 14px;
	background: #fef2f2;
	color: #991b1b;
}

.form-errors strong {
	display: block;
	margin-bottom: 8px;
}

.form-errors ul {
	margin: 0;
	padding-left: 20px;
}

.customer-form-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) minmax(320px, .75fr);
	align-items: start;
	gap: 24px;
}

.customer-form-main,
.customer-form-side {
	display: flex;
	flex-direction: column;
	gap: 24px;
	min-width: 0;
}

.form-section {
	padding: 26px;
}

.form-section .panel-header {
	margin-bottom: 22px;
	padding-bottom: 18px;
	border-bottom: 1px solid #edf1f6;
}

.form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.form-grid.single-column {
	grid-template-columns: 1fr;
}

.form-group-full {
	grid-column: 1 / -1;
}

.form-group label {
	display: block;
	margin-bottom: 8px;
	color: #334155;
	font-size: 13px;
	font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
	width: 100%;
	min-height: 46px;
	padding: 11px 13px;
	border: 1px solid #dbe3ef;
	border-radius: 12px;
	background: #fff;
	color: #0f172a;
	outline: none;
	transition:
		border-color .18s ease,
		box-shadow .18s ease,
		background .18s ease;
}

.form-group textarea {
	min-height: 130px;
	resize: vertical;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
	border-color: #cbd5e1;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
	border-color: #2563eb;
	box-shadow: 0 0 0 4px rgba(37, 99, 235, .10);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
	color: #a8b2c1;
}

.checkbox-field {
	display: flex !important;
	align-items: flex-start;
	gap: 12px;
	padding: 16px;
	border: 1px solid #dbe3ef;
	border-radius: 12px;
	background: #f8fafc;
	cursor: pointer;
}

.checkbox-field input {
	width: 18px;
	height: 18px;
	min-height: auto;
	flex: 0 0 18px;
	margin-top: 2px;
	accent-color: #2563eb;
}

.checkbox-field span {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.checkbox-field strong {
	color: #0f172a;
	font-size: 14px;
}

.checkbox-field small {
	color: #64748b;
	font-size: 12px;
	font-weight: 500;
}

.form-actions-panel {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 20px;
	position: sticky;
	top: 102px;
}

.form-actions-panel .btn {
	width: 100%;
}

.form-actions-panel .btn[disabled] {
	background: #aaa;
	opacity: 0.4;
}

.btn-warning {
	background: #e7cece;
	color: #ab1818;
}

.btn-secondary {
	background: #fff;
	border: 1px solid #dbe3ef;
	color: #334155;
}

.btn-secondary:hover {
	background: #f8fafc;
	border-color: #cbd5e1;
}

@media (max-width: 1100px) {
	.customer-form-layout {
		grid-template-columns: 1fr;
	}

	.form-actions-panel {
		position: static;
	}
}

@media (max-width: 700px) {
	.form-grid {
		grid-template-columns: 1fr;
	}

	.form-group-full {
		grid-column: auto;
	}

	.form-section {
		padding: 20px;
	}
}

.service-create-page {
	max-width: 1180px;
}

.service-type-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.service-type-card {
	display: flex;
	flex-direction: column;
	gap: 24px;
	min-height: 290px;
	padding: 28px;
	border: 1px solid #e7edf5;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
	transition:
		transform .2s ease,
		border-color .2s ease,
		box-shadow .2s ease;
}

.service-type-card:hover {
	transform: translateY(-4px);
	border-color: #bfdbfe;
	box-shadow: 0 20px 45px rgba(15, 23, 42, .11);
}

.service-type-icon {
	width: 64px;
	height: 64px;
	border-radius: 18px;
	background: linear-gradient(135deg, #2563eb, #60a5fa);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: .04em;
}

.service-type-icon [class^="icon-"],
.service-type-icon [class*=" icon-"],
.service-type-icon [class^="fa-"],
.service-type-icon [class*=" fa-"] {
	font-size: 30px;
}

.service-type-icon.microsoft365 {
	background: linear-gradient(135deg, #ea580c, #fb923c);
}

.service-type-icon.bankid {
	background: linear-gradient(135deg, #0f766e, #2dd4bf);
}

.service-type-icon.agreement {
	background: linear-gradient(135deg, #7c3aed, #a78bfa);
}

.service-type-content {
	display: flex;
	flex: 1;
	flex-direction: column;
}

.service-type-content h2 {
	margin-bottom: 10px;
	color: #0f172a;
	font-size: 20px;
}

.service-type-content p {
	color: #64748b;
	line-height: 1.65;
}

.service-type-link {
	margin-top: auto;
	padding-top: 24px;
	color: #2563eb;
	font-size: 14px;
	font-weight: 700;
}

@media (max-width: 1250px) {
	.service-type-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 1000px) {
	.service-type-card {
		min-height: auto;
	}
}

@media (max-width: 700px) {
	.service-type-grid {
		grid-template-columns: 1fr;
	}
}

/*
|--------------------------------------------------------------------------
| Service Create
|--------------------------------------------------------------------------
*/

.service-form-page {
	max-width: 1400px;
}

.service-form-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) 320px;
	gap: 24px;
	align-items: start;
}

.service-form-main,
.service-form-side {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.service-form-side {
	position: sticky;
	top: 100px;
}

.product-selection-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 18px;
}

.product-selection-card {
	position: relative;
	display: block;
	cursor: pointer;
}

.product-selection-card input {
	display: none;
}

.product-card-content {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 24px;
	border: 2px solid #e2e8f0;
	border-radius: 16px;
	background: #fff;
	transition: .2s;
}

.product-selection-card > input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.product-card-content {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 24px;
	padding-top: 26px;
	border: 2px solid #e2e8f0;
	border-radius: 16px;
	background: #fff;
	transition:
		border-color .18s ease,
		background .18s ease,
		box-shadow .18s ease,
		transform .18s ease;
}

.product-radio-indicator {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 22px;
	height: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid #cbd5e1;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 6px rgba(15, 23, 42, .08);
	transition:
		border-color .18s ease,
		background .18s ease,
		box-shadow .18s ease;
}

.product-radio-indicator span {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: transparent;
	transform: scale(0);
	transition:
		transform .16s ease,
		background .16s ease;
}

.product-selection-card:hover .product-card-content {
	border-color: #93c5fd;
	transform: translateY(-2px);
	box-shadow: 0 14px 35px rgba(15, 23, 42, .09);
}

.product-selection-card:hover .product-radio-indicator {
	border-color: #60a5fa;
}

.product-selection-card > input:checked + .product-card-content {
	border-color: #2563eb;
	background: #f8fbff;
	box-shadow:
		0 0 0 4px rgba(37, 99, 235, .10),
		0 16px 36px rgba(15, 23, 42, .10);
}

.product-selection-card > input:checked + .product-card-content .product-radio-indicator {
	border-color: #2563eb;
	background: #2563eb;
	box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

.product-selection-card > input:checked + .product-card-content .product-radio-indicator span {
	background: #fff;
	transform: scale(1);
}

.product-selection-card > input:focus-visible + .product-card-content {
	outline: 3px solid rgba(37, 99, 235, .22);
	outline-offset: 3px;
}

.product-selection-card:hover .product-card-content {
	border-color: #2563eb;
	transform: translateY(-2px);
	box-shadow: 0 12px 35px rgba(15,23,42,.08);
}

.product-selection-card input:checked + .product-card-content {
	border-color: #2563eb;
	background: #eff6ff;
	box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}

.product-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 8px;
}

.product-card-header strong {
	font-size: 18px;
	color: #0f172a;
}

.product-card-name {
	display: block;
	margin-bottom: 18px;
	color: #64748b;
	line-height: 1.5;
}

.product-card-price {
	display: block;
	margin-bottom: 20px;
	font-size: 28px;
	font-weight: 800;
	color: #2563eb;
}

.product-card-features {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
	margin-top: auto;
}

.product-card-features span {
	padding: 10px 12px;
	border-radius: 10px;
	background: #f8fafc;
	font-size: 13px;
	font-weight: 600;
	color: #475569;
}

.service-form-side .form-actions-panel {
	position: sticky;
	top: 95px;
}

.service-form-side .btn {
	width: 100%;
}

.service-form-side .btn + .btn {
	margin-top: 10px;
}

@media (max-width:1200px){

	.service-form-layout{
		grid-template-columns:1fr;
	}

	.service-form-side .form-actions-panel{
		position:static;
	}

}

@media (max-width:900px){

	.product-selection-grid{
		grid-template-columns:1fr;
	}

}

@media (max-width:600px){

	.product-card-features{
		grid-template-columns:1fr;
	}

	.product-card-price{
		font-size:24px;
	}

}

.readonly-field {
	display: flex;
	align-items: center;
	min-height: 46px;
	padding: 0 14px;
	border: 1px solid #dbe3ef;
	border-radius: 12px;
	background: #f8fafc;
	color: #334155;
	font-family: Consolas, Monaco, monospace;
	font-size: 14px;
}

.field-description {
	margin-top: 8px;
	color: #64748b;
	font-size: 13px;
}

.customer-services {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.customer-service-card {
	position: relative;
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 18px;
	border: 1px solid #e7edf5;
	border-radius: 16px;
	background: #fff;
	transition:
		border-color .18s ease,
		box-shadow .18s ease,
		transform .18s ease;
}

.customer-service-card:hover {
	border-color: #cbd5e1;
	box-shadow: 0 12px 30px rgba(15, 23, 42, .07);
	transform: translateY(-1px);
}

.service-card-icon {
	width: 48px;
	height: 48px;
	flex: 0 0 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 14px;
	background: linear-gradient(135deg, #2563eb, #60a5fa);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .03em;
}

.service-card-icon span,
.service-card-icon i {
	font-size: 20px;
}

.service-card-icon.microsoft365 {
	background: linear-gradient(135deg, #ea580c, #fb923c);
}

.service-card-icon.bankid {
	background: linear-gradient(135deg, #0f766e, #2dd4bf);
}

.service-card-icon.serviceagreement {
	background: linear-gradient(135deg, #7c3aed, #a78bfa);
}

.service-card-main {
	flex: 1;
	min-width: 0;
}

.service-card-heading {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
}

.service-card-type {
	display: block;
	margin-bottom: 3px;
	color: #94a3b8;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.service-card-heading h3 {
	color: #0f172a;
	font-size: 15px;
	font-weight: 750;
}

.service-status {
	display: inline-flex;
	align-items: center;
	min-height: 25px;
	padding: 4px 9px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	white-space: nowrap;
}

.service-status.active {
	background: #dcfce7;
	color: #15803d;
}

.service-status.inactive {
	background: #f1f5f9;
	color: #64748b;
}

.service-status.cancelled {
	background: #f9f1f1;
	color: #b89494;
}

.service-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 7px 18px;
	margin-top: 9px;
	color: #64748b;
	font-size: 12px;
}

.service-card-meta strong {
	color: #334155;
}

.service-card-actions {
	position: relative;
	flex: 0 0 auto;
}

.service-menu-button {
	width: 38px;
	height: 38px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: #64748b;
	cursor: pointer;
	font-size: 17px;
	font-weight: 700;
}

.service-menu-button:hover,
.service-menu-button.active {
	background: #f1f5f9;
	color: #0f172a;
}

.service-menu {
	display: none;
	position: absolute;
	top: calc(100% + 7px);
	right: 0;
	z-index: 20;
	width: 170px;
	padding: 6px;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 16px 40px rgba(15, 23, 42, .14);
}

.service-menu.open {
	display: block;
}

.service-menu a {
	display: block;
	padding: 10px 11px;
	border-radius: 8px;
	color: #334155;
	font-size: 13px;
	font-weight: 600;
}

.service-menu a:hover {
	background: #f1f5f9;
	color: #2563eb;
}

@media (max-width: 700px) {
	.customer-service-card {
		align-items: flex-start;
	}

	.service-card-heading {
		flex-direction: column;
		gap: 7px;
	}

	.service-card-meta {
		flex-direction: column;
		gap: 4px;
	}
}

.customer-invoices {
	display: flex;
	flex-direction: column;
}

.invoice-row {
	display: grid;
	grid-template-columns: 100px minmax(180px, 1fr) 130px 130px 100px 24px;
	align-items: center;
	gap: 18px;
	min-height: 74px;
	padding: 14px 18px;
	border-bottom: 1px solid #edf1f6;
	color: inherit;
	transition:
		background .18s ease,
		transform .18s ease;
}

.invoice-row:first-child {
	border-top: 1px solid #edf1f6;
}

.invoice-row:hover {
	background: #f8fafc;
}

.invoice-row-number,
.invoice-row-description,
.invoice-row-due {
	min-width: 0;
}

.invoice-row-number {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.invoice-row-number span,
.invoice-row-due span,
.invoice-row-description span,
.invoice-row-total span {
	color: #94a3b8;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.invoice-row-number strong {
	color: #0f172a;
	font-size: 13px;
}

.invoice-row-description {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.invoice-row-description strong {
	overflow: hidden;
	color: #334155;
	font-size: 13px;
	font-weight: 650;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.invoice-row-description span {
	color: #94a3b8;
	font-size: 11px;
}

.invoice-row-due {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.invoice-row-due strong {
	color: #475569;
	font-size: 12px;
}

.invoice-row-total {
}

.invoice-row-total strong {
	color: #0f172a;
	font-size: 14px;
}

.invoice-row-status {
	display: flex;
	justify-content: flex-end;
}

.invoice-status {
	display: inline-flex;
	align-items: center;
	padding: 5px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 800;
	white-space: nowrap;
}

.invoice-status.paid {
	background: #dcfce7;
	color: #15803d;
}

.invoice-status.published {
	background: #cee5ff;
	color: #154f80;
}

.invoice-status.unpaid {
	background: #fef3c7;
	color: #b45309;
}

.invoice-status.overdue {
	background: #fee2e2;
	color: #b91c1c;
}

.invoice-status.credited {
	background: #dddddd;
	color: #555555;
}

.invoice-status.draft {
	background: #f1f5f9;
	color: #64748b;
}

.invoice-status.cancelled {
	background: #f1f5f9;
	color: #94a3b8;
}

.invoice-row-arrow {
	color: #94a3b8;
	font-size: 22px;
	text-align: right;
	transition: transform .18s ease;
}

.invoice-row:hover .invoice-row-arrow {
	transform: translateX(3px);
	color: #2563eb;
}

@media (max-width: 900px) {
	.invoice-row {
		grid-template-columns: 85px minmax(0, 1fr) 110px 90px 24px;
	}

	.invoice-row-due {
		display: none;
	}
}

@media (max-width: 650px) {
	.invoice-row {
		grid-template-columns: minmax(0, 1fr) auto 20px;
		gap: 12px;
		padding: 14px;
	}

	.invoice-row-number,
	.invoice-row-due {
		display: none;
	}

	.invoice-row-total {
		display: none;
	}

	.invoice-row-status {
		justify-content: flex-end;
	}
}

/*
|--------------------------------------------------------------------------
| Invoice
|--------------------------------------------------------------------------
*/

.invoice-page-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 30px;
	margin-bottom: 28px;
}

.invoice-heading-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 8px;
}

.invoice-internal-id {
	max-width: 320px;
	overflow: hidden;
	color: #94a3b8;
	font-family: Consolas, Monaco, monospace;
	font-size: 12px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.invoice-header-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.invoice-summary-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
	margin-bottom: 24px;
}

.invoice-summary-card {
	padding: 20px;
	border: 1px solid #e8edf5;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 10px 25px rgba(15, 23, 42, .05);
}

.invoice-summary-card strong {
	display: block;
	color: #0f172a;
	font-size: 17px;
}

.invoice-summary-card .amount-outstanding {
	color: #dc2626;
}

.invoice-summary-card .amount-paid {
	color: #16a34a;
}

.invoice-content-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) minmax(300px, .7fr);
	align-items: start;
	gap: 24px;
}

.invoice-main-column,
.invoice-side-column {
	display: flex;
	flex-direction: column;
	gap: 24px;
	min-width: 0;
}

.invoice-panel {
	padding: 26px;
}

.invoice-panel .panel-header {
	margin-bottom: 20px;
	padding-bottom: 18px;
	border-bottom: 1px solid #edf1f6;
}

.invoice-items-table-wrapper {
	overflow-x: auto;
}

.invoice-items-table {
	width: 100%;
}

.invoice-items-table th {
	padding: 13px 14px;
	color: #64748b;
	font-size: 11px;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.invoice-items-table td {
	padding: 16px 14px;
	color: #475569;
	font-size: 13px;
}

.invoice-items-table td:first-child {
	width: 100%;
}

.invoice-items-table td strong {
	display: block;
	min-width: 240px;
	color: #0f172a;
	font-weight: 650;
}

.invoice-items-table th:not(:first-child),
.invoice-items-table td:not(:first-child) {
	text-align: right;
	white-space: nowrap;
}

.invoice-line-total {
	color: #0f172a !important;
	font-weight: 700;
}

.invoice-totals {
	width: 100%;
	max-width: 390px;
	margin: 28px 0 0 auto;
	padding-top: 18px;
	border-top: 1px solid #e2e8f0;
}

.invoice-total-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	padding: 7px 0;
	color: #64748b;
	font-size: 13px;
}

.invoice-total-row strong {
	color: #334155;
}

.invoice-total-main {
	margin-top: 5px;
	padding-top: 14px;
	border-top: 1px solid #e2e8f0;
	font-size: 17px;
	font-weight: 800;
}

.invoice-total-main span,
.invoice-total-main strong {
	color: #0f172a;
}

.invoice-total-outstanding {
	margin-top: 6px;
	padding: 12px 14px;
	border-radius: 10px;
	background: #fef2f2;
}

.invoice-total-outstanding span,
.invoice-total-outstanding strong {
	color: #b91c1c;
	font-weight: 800;
}

.invoice-customer-card {
	display: flex;
	align-items: center;
	gap: 13px;
	margin-bottom: 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid #edf1f6;
}

.invoice-customer-card strong {
	display: block;
	color: #0f172a;
	font-size: 14px;
}

.invoice-customer-card a:hover strong {
	color: #2563eb;
}

.invoice-customer-card span {
	display: block;
	margin-top: 3px;
	color: #94a3b8;
	font-size: 12px;
}

.invoice-id-value {
	font-family: Consolas, Monaco, monospace;
	font-size: 12px;
}

.copy-toast {
	position: fixed;
	right: 30px;
	bottom: 30px;
	z-index: 1000;
	padding: 13px 18px;
	border-radius: 12px;
	background: #0f172a;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	box-shadow: 0 18px 45px rgba(15, 23, 42, .25);
	opacity: 0;
	pointer-events: none;
	transform: translateY(15px);
	transition:
		opacity .2s ease,
		transform .2s ease;
}

.copy-toast.show {
	opacity: 1;
	transform: translateY(0);
}

@media (max-width: 1100px) {
	.invoice-summary-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.invoice-content-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 700px) {
	.invoice-page-header {
		align-items: stretch;
		flex-direction: column;
	}

	.invoice-header-actions {
		width: 100%;
	}

	.invoice-summary-grid {
		grid-template-columns: 1fr;
	}

	.invoice-panel {
		padding: 20px;
	}

	.invoice-totals {
		max-width: none;
	}

	.invoice-internal-id {
		max-width: 220px;
	}

	.copy-toast {
		right: 18px;
		bottom: 18px;
		left: 18px;
		text-align: center;
	}
}

@media print {
	.admin-sidebar,
	.admin-topbar,
	.invoice-header-actions,
	.back-link {
		display: none !important;
	}

	.admin-main {
		width: 100%;
		margin-left: 0;
	}

	.page {
		max-width: none;
		padding: 0;
	}

	.invoice-summary-card,
	.panel {
		box-shadow: none;
	}

	body {
		background: #fff;
	}
}

/*
|--------------------------------------------------------------------------
| Revenue Chart
|--------------------------------------------------------------------------
*/

.revenue-panel {
	min-width: 0;
}

.revenue-panel-header {
	align-items: center;
}

.revenue-year-select {
	min-width: 110px;
	height: 42px;
	padding: 0 38px 0 14px;
	border: 1px solid #dbe3ef;
	border-radius: 11px;
	background: #fff;
	color: #334155;
	font-weight: 600;
	outline: none;
	cursor: pointer;
}

.revenue-year-select:focus {
	border-color: #2563eb;
	box-shadow: 0 0 0 4px rgba(37, 99, 235, .1);
}

.revenue-content {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	gap: 32px;
	min-height: 320px;
}

.revenue-summary {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 18px 0 8px;
}

.revenue-summary .metric-value {
	margin-top: 8px;
	font-size: 34px;
	letter-spacing: -.03em;
}

.revenue-change {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 5px;
	margin-top: 13px;
	font-size: 12px;
	font-weight: 800;
}

.revenue-change span {
	color: #94a3b8;
	font-weight: 500;
}

.revenue-change.positive {
	color: #16a34a;
}

.revenue-change.negative {
	color: #dc2626;
}

.revenue-change.neutral {
	color: #94a3b8;
	font-weight: 500;
}

.revenue-summary-meta {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding-top: 24px;
}

.revenue-summary-meta div {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.revenue-summary-meta span {
	color: #94a3b8;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .05em;
}

.revenue-summary-meta strong {
	color: #334155;
	font-size: 14px;
}

.revenue-chart-container {
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.revenue-chart {
	position: relative;
	flex: 1;
	min-height: 280px;
}

.revenue-chart canvas {
	display: block;
	width: 100%;
	height: 100%;
}

.revenue-chart-tooltip {
	position: absolute;
	z-index: 5;
	display: none;
	min-width: 120px;
	padding: 10px 12px;
	border-radius: 10px;
	background: #0f172a;
	color: #fff;
	box-shadow: 0 15px 35px rgba(15, 23, 42, .2);
	pointer-events: none;
	transform: translate(-50%, calc(-100% - 12px));
}

.revenue-chart-tooltip.show {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.revenue-chart-tooltip span {
	color: #94a3b8;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .05em;
}

.revenue-chart-tooltip strong {
	font-size: 13px;
	white-space: nowrap;
}

.revenue-chart-legend {
	display: flex;
	justify-content: center;
	gap: 22px;
	margin-top: 12px;
	color: #64748b;
	font-size: 11px;
	font-weight: 600;
}

.revenue-chart-legend span {
	display: flex;
	align-items: center;
	gap: 7px;
}

.revenue-chart-legend i {
	width: 10px;
	height: 10px;
	border-radius: 50%;
}

.revenue-chart-legend .current-year {
	background: #2563eb;
}

.revenue-chart-legend .previous-year {
	background: #cbd5e1;
}

@media (max-width: 800px) {
	.revenue-content {
		grid-template-columns: 1fr;
	}

	.revenue-summary {
		gap: 24px;
	}

	.revenue-summary-meta {
		flex-direction: row;
		gap: 40px;
	}

	.revenue-chart {
		min-height: 260px;
	}
}

@media (max-width: 500px) {
	.revenue-panel-header {
		align-items: stretch;
		flex-direction: column;
	}

	.revenue-year-select {
		width: 100%;
	}

	.revenue-summary-meta {
		flex-direction: column;
		gap: 15px;
	}
}

/*
|--------------------------------------------------------------------------
| Customer table sorting
|--------------------------------------------------------------------------
*/

.customer-table th {
	padding: 0;
}

.table-sort {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 16px;
	border: 0;
	background: transparent;
	color: #64748b;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .05em;
	text-align: left;
	text-transform: uppercase;
	cursor: pointer;
	transition:
		color .18s ease,
		background .18s ease;
}

.table-sort:hover {
	background: #f1f5f9;
	color: #0f172a;
}

.table-sort.active {
	color: #2563eb;
}

.sort-icon {
	position: relative;
	width: 12px;
	height: 14px;
	flex: 0 0 12px;
	opacity: .45;
}

.sort-icon::before,
.sort-icon::after {
	position: absolute;
	left: 2px;
	width: 0;
	height: 0;
	content: "";
	border-right: 4px solid transparent;
	border-left: 4px solid transparent;
}

.sort-icon::before {
	top: 1px;
	border-bottom: 5px solid currentColor;
}

.sort-icon::after {
	bottom: 1px;
	border-top: 5px solid currentColor;
}

.table-sort.active .sort-icon {
	opacity: 1;
}

.table-sort.active.asc .sort-icon::after {
	opacity: .2;
}

.table-sort.active.desc .sort-icon::before {
	opacity: .2;
}

.customer-actions-heading {
	width: 110px;
	padding: 16px !important;
}

.customer-debt {
	display: inline-flex;
	align-items: baseline;
	gap: 4px;
	font-size: 14px;
	font-weight: 800;
	white-space: nowrap;
}

.customer-debt span {
	font-size: 11px;
	font-weight: 600;
}

.customer-debt.has-debt {
	color: #dc2626;
}

.customer-debt.no-debt {
	color: #94a3b8;
}

.action-buttons {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
}

.bokio-open {
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	background: #f1f5f9;
	transition:
		background .18s ease,
		transform .18s ease;
}

.bokio-open img {
	display: block;
	width: 20px;
	height: 20px;
	object-fit: contain;
}

.bokio-open:hover {
	background: #e2e8f0;
	transform: translateY(-1px);
}

@media (max-width: 900px) {
	.customer-table {
		min-width: 900px;
	}
}

.customer-service-filter {
	position: relative;
	flex: 0 0 230px;
}

.service-filter-button {
	width: 100%;
	height: 46px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 0 15px;
	border: 1px solid #dbe3ef;
	border-radius: 12px;
	background: #fff;
	color: #334155;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	outline: none;
	transition:
		border-color .18s ease,
		box-shadow .18s ease;
}

.service-filter-button:hover {
	border-color: #cbd5e1;
}

.service-filter-button.active {
	border-color: #2563eb;
	box-shadow: 0 0 0 4px rgba(37, 99, 235, .1);
}

.service-filter-button-label {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.service-filter-arrow {
	width: 8px;
	height: 8px;
	flex: 0 0 8px;
	border-right: 2px solid #94a3b8;
	border-bottom: 2px solid #94a3b8;
	transform: rotate(45deg) translateY(-2px);
	transition: transform .18s ease;
}

.service-filter-button.active .service-filter-arrow {
	transform: rotate(225deg) translate(-2px, -2px);
}

.service-filter-dropdown {
	display: none;
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 50;
	width: 280px;
	padding: 8px;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 20px 50px rgba(15, 23, 42, .16);
}

.service-filter-dropdown.open {
	display: block;
}

.service-filter-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	padding: 10px 10px 12px;
	border-bottom: 1px solid #edf1f6;
}

.service-filter-header strong {
	color: #0f172a;
	font-size: 13px;
}

.service-filter-clear {
	padding: 0;
	border: 0;
	background: transparent;
	color: #2563eb;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
}

.service-filter-clear:hover {
	text-decoration: underline;
}

.service-filter-options {
	display: flex;
	flex-direction: column;
	padding: 7px 0;
}

.service-filter-option {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 10px;
	border-radius: 9px;
	color: #334155;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s ease;
}

.service-filter-option:hover {
	background: #f8fafc;
}

.service-filter-option input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.service-filter-checkbox {
	position: relative;
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	border: 1.5px solid #cbd5e1;
	border-radius: 5px;
	background: #fff;
	transition:
		background .15s ease,
		border-color .15s ease;
}

.service-filter-option input:checked + .service-filter-checkbox {
	border-color: #2563eb;
	background: #2563eb;
}

.service-filter-option input:checked + .service-filter-checkbox::after {
	position: absolute;
	top: 3px;
	left: 6px;
	width: 4px;
	height: 8px;
	border-right: 2px solid #fff;
	border-bottom: 2px solid #fff;
	content: "";
	transform: rotate(45deg);
}

@media (max-width: 750px) {
	.customer-service-filter {
		width: 100%;
		flex: none;
	}

	.service-filter-dropdown {
		right: auto;
		left: 0;
		width: 100%;
	}
}

/*
|--------------------------------------------------------------------------
| Bank accounts
|--------------------------------------------------------------------------
*/

.bankaccount-list {
	display: flex;
	flex-direction: column;
	border: 1px solid #d7dce5;
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
}

.bankaccount-item {
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr) auto;
	align-items: center;
	gap: 15px;
	padding: 20px 16px;
	border-bottom: 1px solid #d7dce5;
	background: #fff;
}

.bankaccount-item:last-child {
	border-bottom: 0;
}

.bankaccount-item:hover {
	background: #fafbfc;
}

.account-icon {
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

.account-icon.bokio {
	border-radius: 30px;
	background: #1259ef url(https://admin.swedensites.com/assets/bokio-logo-b.svg) no-repeat center center;
}

.account-icon.skv {
	background: url(https://admin.swedensites.com/assets/skv-logo.svg) no-repeat center center;
}

.account-description {
	min-width: 0;
}

.account-description strong {
	display: block;
	overflow: hidden;
	color: #111827;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.account-balance {
	padding-left: 24px;
	text-align: right;
	white-space: nowrap;
}

.account-balance strong {
	display: block;
	color: #111827;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
}

@media (max-width: 600px) {
	.bankaccount-item {
		grid-template-columns: 30px minmax(0, 1fr);
		gap: 4px;
		padding: 13px 14px;
	}

	.account-balance {
		grid-column: 2;
		padding-left: 0;
		text-align: left;
	}

	.account-balance strong {
		margin-top: 3px;
		font-size: 14px;
	}
}

/*
|--------------------------------------------------------------------------
| Service detail
|--------------------------------------------------------------------------
*/

.service-not-found {
	max-width: 700px;
	margin: 60px auto;
	padding: 40px;
	text-align: center;
}

.service-not-found h1 {
	margin-bottom: 10px;
}

.service-not-found p {
	margin-bottom: 22px;
	color: #64748b;
}

.service-notification {
	margin-bottom: 22px;
	padding: 14px 18px;
	border: 1px solid #bbf7d0;
	border-radius: 13px;
	background: #f0fdf4;
	color: #15803d;
	font-size: 13px;
	font-weight: 700;
}

.service-page-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 30px;
	margin-bottom: 28px;
}

.service-heading-row {
	display: flex;
	align-items: center;
	gap: 18px;
}

.service-large-icon {
	width: 72px;
	height: 72px;
	flex: 0 0 72px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 21px;
	background: linear-gradient(135deg, #2563eb, #60a5fa);
	color: #fff;
	font-size: 15px;
	font-weight: 800;
	box-shadow: 0 14px 28px rgba(37, 99, 235, .22);
}

.service-large-icon i,
.service-large-icon span {
	font-size: 25px;
}

.service-large-icon.microsoft365 {
	background: linear-gradient(135deg, #ea580c, #fb923c);
}

.service-large-icon.bankid {
	background: linear-gradient(135deg, #0f766e, #2dd4bf);
}

.service-large-icon.serviceagreement {
	background: linear-gradient(135deg, #7c3aed, #a78bfa);
}

.service-heading-content {
	min-width: 0;
}

.service-heading-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 7px;
}

.service-type-badge {
	display: inline-flex;
	align-items: center;
	min-height: 25px;
	padding: 4px 10px;
	border-radius: 999px;
	background: #dbeafe;
	color: #1d4ed8;
	font-size: 11px;
	font-weight: 800;
}

.service-number {
	color: #94a3b8;
	font-size: 12px;
	font-weight: 650;
}

.service-header-actions {
	display: flex;
	gap: 10px;
	flex-shrink: 0;
}

.service-summary-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
	margin-bottom: 24px;
}

.service-summary-card {
	min-width: 0;
	padding: 20px;
	border: 1px solid #e8edf5;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 10px 25px rgba(15, 23, 42, .05);
}

.service-summary-card strong {
	display: block;
	overflow-wrap: anywhere;
	color: #0f172a;
	font-size: 16px;
}

.service-content-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.65fr) minmax(300px, .75fr);
	align-items: start;
	gap: 24px;
}

.service-main-column,
.service-side-column {
	display: flex;
	flex-direction: column;
	gap: 24px;
	min-width: 0;
}

.service-section {
	padding: 26px;
}

.service-section .panel-header {
	margin-bottom: 20px;
	padding-bottom: 18px;
	border-bottom: 1px solid #edf1f6;
}

.code-value {
	font-family: Consolas, Monaco, monospace;
	font-size: 13px;
}

.service-feature-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.service-feature {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 16px;
	border: 1px solid #e8edf5;
	border-radius: 13px;
	background: #f8fafc;
}

.service-feature span {
	color: #64748b;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
}

.service-feature strong {
	color: #0f172a;
	font-size: 15px;
}

.service-check-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 9px 20px;
	margin-top: 22px;
	padding-top: 20px;
	border-top: 1px solid #edf1f6;
}

.service-check-item {
	display: flex;
	align-items: center;
	gap: 9px;
	color: #64748b;
	font-size: 13px;
	font-weight: 600;
}

.service-check-icon {
	position: relative;
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	border-radius: 50%;
}

.service-check-item.included {
	color: #334155;
}

.service-check-item.included .service-check-icon {
	background: #dcfce7;
}

.service-check-item.included .service-check-icon::after {
	position: absolute;
	top: 4px;
	left: 6px;
	width: 4px;
	height: 7px;
	border-right: 2px solid #16a34a;
	border-bottom: 2px solid #16a34a;
	content: "";
	transform: rotate(45deg);
}

.service-check-item.not-included {
	opacity: .55;
}

.service-check-item.not-included .service-check-icon {
	background: #f1f5f9;
}

.service-check-item.not-included .service-check-icon::before,
.service-check-item.not-included .service-check-icon::after {
	position: absolute;
	top: 8px;
	left: 4px;
	width: 10px;
	height: 1.5px;
	background: #94a3b8;
	content: "";
}

.service-check-item.not-included .service-check-icon::before {
	transform: rotate(45deg);
}

.service-check-item.not-included .service-check-icon::after {
	transform: rotate(-45deg);
}

.service-product-description,
.service-notes {
	color: #475569;
	font-size: 14px;
	line-height: 1.75;
}

.service-customer-card {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
	padding: 14px;
	border: 1px solid #e7edf5;
	border-radius: 14px;
	background: #f8fafc;
	transition:
		border-color .18s ease,
		background .18s ease;
}

.service-customer-card:hover {
	border-color: #bfdbfe;
	background: #eff6ff;
}

.service-customer-card strong {
	display: block;
	color: #0f172a;
	font-size: 14px;
}

.service-customer-card span:not(.customer-avatar) {
	display: block;
	margin-top: 3px;
	color: #94a3b8;
	font-size: 11px;
}

.service-customer-arrow {
	color: #94a3b8 !important;
	font-size: 22px !important;
}

.service-timeline {
	display: flex;
	flex-direction: column;
}

.timeline-item {
	position: relative;
	display: flex;
	gap: 13px;
	padding-bottom: 24px;
}

.timeline-item:last-child {
	padding-bottom: 0;
}

.timeline-item:not(:last-child)::after {
	position: absolute;
	top: 16px;
	bottom: 0;
	left: 6px;
	width: 2px;
	background: #e2e8f0;
	content: "";
}

.timeline-marker {
	position: relative;
	z-index: 1;
	width: 14px;
	height: 14px;
	flex: 0 0 14px;
	margin-top: 2px;
	border: 3px solid #bfdbfe;
	border-radius: 50%;
	background: #2563eb;
}

.timeline-marker.upcoming {
	border-color: #fde68a;
	background: #f59e0b;
}

.timeline-marker.ending {
	border-color: #fecaca;
	background: #ef4444;
}

.timeline-item strong {
	display: block;
	color: #334155;
	font-size: 13px;
}

.timeline-item span:not(.timeline-marker) {
	display: block;
	margin-top: 3px;
	color: #94a3b8;
	font-size: 12px;
}

/*
|--------------------------------------------------------------------------
| Service status modal
|--------------------------------------------------------------------------
*/

.service-status-modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.service-status-modal.open {
	display: flex;
}

.service-status-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, .55);
	backdrop-filter: blur(3px);
}

.service-status-modal-dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 500px;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 30px 80px rgba(15, 23, 42, .28);
	animation: serviceModalIn .18s ease;
}

@keyframes serviceModalIn {
	from {
		opacity: 0;
		transform: translateY(10px) scale(.98);
	}

	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.service-modal-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	padding: 22px 24px;
	border-bottom: 1px solid #edf1f6;
}

.service-modal-header h2 {
	color: #0f172a;
	font-size: 18px;
}

.service-modal-header p {
	margin-top: 4px;
	color: #64748b;
	font-size: 13px;
}

.service-modal-close {
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 9px;
	background: #f1f5f9;
	color: #64748b;
	font-size: 22px;
	cursor: pointer;
}

.service-status-options {
	display: flex;
	flex-direction: column;
	gap: 9px;
	padding: 20px 24px;
}

.service-status-option {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px;
	border: 1px solid #e2e8f0;
	border-radius: 13px;
	cursor: pointer;
	transition:
		border-color .15s ease,
		background .15s ease;
}

.service-status-option:hover {
	border-color: #bfdbfe;
	background: #f8fafc;
}

.service-status-option input {
	position: absolute;
	opacity: 0;
}

.status-option-indicator {
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	margin-top: 2px;
	border: 2px solid #cbd5e1;
	border-radius: 50%;
}

.service-status-option input:checked + .status-option-indicator {
	border: 5px solid #2563eb;
}

.service-status-option input:checked + .status-option-indicator.paused {
	border-color: #f59e0b;
}

.service-status-option input:checked + .status-option-indicator.cancelled {
	border-color: #ef4444;
}

.service-status-option strong {
	display: block;
	color: #0f172a;
	font-size: 14px;
}

.service-status-option small {
	display: block;
	margin-top: 3px;
	color: #64748b;
	font-size: 12px;
}

.service-modal-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	padding: 18px 24px;
	border-top: 1px solid #edf1f6;
	background: #f8fafc;
	border-radius: 0 0 18px 18px;
}

body.service-modal-open {
	overflow: hidden;
}

@media (max-width: 1150px) {
	.service-summary-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.service-content-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 750px) {
	.service-page-header {
		align-items: stretch;
		flex-direction: column;
	}

	.service-header-actions {
		width: 100%;
	}

	.service-header-actions .btn {
		flex: 1;
	}

	.service-feature-grid,
	.service-check-list {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 550px) {
	.service-heading-row {
		align-items: flex-start;
	}

	.service-large-icon {
		width: 58px;
		height: 58px;
		flex-basis: 58px;
		border-radius: 17px;
		font-size: 12px;
	}

	.service-summary-grid {
		grid-template-columns: 1fr;
	}

	.service-header-actions,
	.service-modal-actions {
		flex-direction: column;
	}

	.service-header-actions .btn,
	.service-modal-actions .btn {
		width: 100%;
	}

	.service-section {
		padding: 20px;
	}
}

/*
|--------------------------------------------------------------------------
| Service edit
|--------------------------------------------------------------------------
*/

.service-edit-page {
	max-width: 1400px;
}

.input-suffix {
	position: relative;
}

.input-suffix input {
	padding-right: 50px;
}

.input-suffix > span {
	position: absolute;
	top: 50%;
	right: 14px;
	color: #64748b;
	font-size: 13px;
	font-weight: 700;
	pointer-events: none;
	transform: translateY(-50%);
}

.service-edit-page .readonly-field {
	min-height: 46px;
}

.microsoft-product-description {
	display: block;
	margin-top: 16px;
	color: #64748b;
	font-size: 13px;
	line-height: 1.6;
}

.microsoft-total-field .readonly-field {
	color: #2563eb;
	font-size: 16px;
}

#create-microsoft365-button:disabled,
#create-webhosting-button:disabled {
	background: #cbd5e1;
	color: #f8fafc;
	cursor: not-allowed;
	box-shadow: none;
	opacity: 1;
}

.webhosting-custom-price {
	display: none;
	margin-top: 22px;
	padding: 22px;
	border: 1px solid #dbeafe;
	border-radius: 14px;
	background: #f8fbff;
}

.webhosting-custom-price.visible {
	display: block;
	animation: customPriceIn .18s ease;
}

.webhosting-custom-price .form-group {
	max-width: 380px;
}

.webhosting-custom-price .input-suffix input {
	padding-right: 48px;
	font-size: 16px;
	font-weight: 700;
}

@keyframes customPriceIn {
	from {
		opacity: 0;
		transform: translateY(-5px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.microsoft365-create-page #microsoft365-custom-price {
	margin-top: 22px;
}

.microsoft365-create-page #microsoft365-total-price,
.microsoft365-create-page #microsoft365-contract-end {
	color: #2563eb;
	font-size: 15px;
}

.terminate-service-layout {
	max-width: 760px;
	margin-top: 28px;
}

.terminate-service-form {
	width: 100%;
}

.terminate-service-panel {
	overflow: hidden;
}

.terminate-service-warning {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 22px;
	background: #fff5f5;
	border-bottom: 1px solid #fecaca;
}

.terminate-service-warning-icon {
	display: flex;
	flex: 0 0 38px;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #dc2626;
	color: #fff;
	font-size: 20px;
	font-weight: 700;
	line-height: 1;
}

.terminate-service-warning h2 {
	margin: 0 0 6px;
	color: #991b1b;
	font-size: 18px;
	line-height: 1.4;
}

.terminate-service-warning p {
	margin: 0;
	color: #7f1d1d;
	font-size: 14px;
	line-height: 1.6;
}

.terminate-service-summary {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0;
	padding: 6px 22px;
	border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.terminate-service-summary div {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px 0;
}

.terminate-service-summary div:nth-child(even) {
	padding-left: 22px;
}

.terminate-service-summary span {
	color: #6b7280;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.terminate-service-summary strong {
	color: #111827;
	font-size: 14px;
	font-weight: 600;
}

.terminate-service-fields {
	display: grid;
	gap: 22px;
	padding: 22px;
}

.terminate-service-fields .form-group {
	margin: 0;
}

.optional-label {
	margin-left: 5px;
	color: #9ca3af;
	font-size: 12px;
	font-weight: 400;
}

.field-meta {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	margin-top: 7px;
	color: #9ca3af;
	font-size: 12px;
}

.terminate-service-confirmation {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	margin: 0 22px 22px;
	padding: 15px;
	border: 1px solid #fecaca;
	border-radius: 8px;
	background: #fffafa;
	cursor: pointer;
}

.terminate-service-confirmation input {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 1px 0 0;
	accent-color: #dc2626;
}

.terminate-service-confirmation span {
	color: #7f1d1d;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
}

.terminate-service-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	padding: 18px 22px;
	border-top: 1px solid var(--border-color, #e5e7eb);
	background: #f9fafb;
}

.btn-danger {
	border-color: #dc2626;
	background: #dc2626;
	color: #fff;
}

.btn-danger:hover:not(:disabled) {
	border-color: #b91c1c;
	background: #b91c1c;
}

.btn-danger:disabled {
	border-color: #fca5a5;
	background: #fca5a5;
	color: #fff;
	cursor: not-allowed;
	opacity: 0.7;
}

@media (max-width: 640px) {
	.terminate-service-summary {
		grid-template-columns: 1fr;
	}

	.terminate-service-summary div:nth-child(even) {
		padding-left: 0;
	}

	.terminate-service-actions {
		flex-direction: column-reverse;
	}

	.terminate-service-actions .btn {
		width: 100%;
	}
}

.customer-filter-empty {
	padding: 25px;
}