.gt-wrap,
.gt-frontend {
	max-width: 1280px;
}

.gt-frontend-shell {
	margin: 0 auto;
	padding: 24px 16px;
}

.gt-frontend-panel {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 18px;
	margin: 0 auto;
	padding: 24px 16px;
}

.gt-frontend-sidebar {
	background: #fff;
	border: 1px solid #d7dbe2;
	border-radius: 8px;
	padding: 16px;
	align-self: start;
	position: sticky;
	top: 20px;
}

.gt-frontend-sidebar h2 {
	margin: 0 0 12px;
	font-size: 18px;
}

.gt-frontend-sidebar-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.gt-frontend-sidebar-header h2 {
	margin: 0;
}

.gt-frontend-menu-toggle {
	display: none;
	width: 36px;
	height: 36px;
	border: 1px solid #d7dbe2;
	border-radius: 6px;
	background: #fff;
	padding: 0;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

@media (min-width: 901px) {
	.gt-frontend-menu-toggle {
		display: none !important;
	}

	.gt-frontend-nav {
		display: block !important;
	}
}

.gt-menu-toggle-icon,
.gt-menu-toggle-icon::before,
.gt-menu-toggle-icon::after {
	display: block;
	width: 16px;
	height: 2px;
	background: #1f2937;
	border-radius: 2px;
	position: relative;
	content: '';
}

.gt-menu-toggle-icon::before {
	position: absolute;
	top: -5px;
	left: 0;
}

.gt-menu-toggle-icon::after {
	position: absolute;
	top: 5px;
	left: 0;
}

.gt-frontend-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 6px;
}

.gt-frontend-nav a {
	display: block;
	padding: 9px 10px;
	border-radius: 6px;
	text-decoration: none;
	color: #1f2937;
	font-weight: 500;
}

.gt-frontend-nav a:hover {
	background: #f3f4f6;
}

.gt-frontend-nav a.is-active {
	background: #1f2937;
	color: #fff;
}

.gt-frontend-content {
	min-width: 0;
}

.gt-filter-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	gap: 12px;
	margin: 20px 0 24px;
}

.gt-filter-bar label,
.gt-form label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-weight: 600;
}

.gt-filter-bar input,
.gt-form input,
.gt-form select,
.gt-form textarea {
	min-width: 200px;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid #d7dbe2;
	border-radius: 6px;
	background: #fff;
}

.gt-filter-grow {
	flex: 1 1 320px;
}

.gt-filter-grow select {
	width: 100%;
}

.gt-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
	margin-bottom: 24px;
}

.gt-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 16px;
}

.gt-acquisitions-stack {
	grid-template-columns: 1fr;
}

.gt-grid-two {
	grid-template-columns: minmax(360px, 1fr) minmax(360px, 1fr);
}

.gt-grid-single {
	grid-template-columns: 1fr;
}

.gt-card {
	background: #fff;
	border: 1px solid #d7dbe2;
	border-radius: 8px;
	padding: 20px;
	box-shadow: 0 8px 30px rgba(19, 37, 63, 0.06);
}

.gt-login-card {
	max-width: 480px;
	margin: 40px auto;
	background: #fff;
	border: 1px solid #d7dbe2;
	border-radius: 8px;
	padding: 24px;
	box-shadow: 0 8px 30px rgba(19, 37, 63, 0.06);
}

.gt-login-card form {
	display: grid;
	gap: 14px;
}

.gt-login-card label {
	display: grid;
	gap: 6px;
	font-weight: 600;
}

.gt-login-card input[type='text'],
.gt-login-card input[type='password'] {
	padding: 10px 12px;
	border: 1px solid #d7dbe2;
	border-radius: 6px;
}

.gt-card h2 {
	margin-top: 0;
	margin-bottom: 16px;
	font-size: 18px;
}

.gt-card-label {
	display: block;
	color: #5d6778;
	font-size: 13px;
	margin-bottom: 8px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.gt-cards .gt-card strong {
	font-size: 28px;
	line-height: 1.1;
}

.gt-table-wrap {
	overflow-x: auto;
}

.gt-muted {
	margin: 0;
	color: #5d6778;
}

.gt-table a {
	text-decoration: none;
}

.gt-cell-subtext {
	margin-top: 4px;
	color: #5d6778;
	font-size: 12px;
	line-height: 1.4;
}

.gt-expense-description {
	font-size: inherit;
	font-weight: inherit;
}

.gt-form {
	display: grid;
	gap: 16px;
}

.gt-field-label {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
}

.gt-action-row,
.gt-actions-cell {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.gt-table .gt-actions-cell {
	justify-content: flex-start;
	min-width: 130px;
}

.gt-followups-queue-table {
	table-layout: auto;
}

.gt-followups-queue-table th:nth-child(1),
.gt-followups-queue-table td:nth-child(1) {
	width: 20%;
}

.gt-followups-queue-table th:nth-child(2),
.gt-followups-queue-table td:nth-child(2) {
	width: 20%;
}

.gt-followups-queue-table th:nth-child(3),
.gt-followups-queue-table td:nth-child(3) {
	width: 15%;
}

.gt-followups-queue-table th:nth-child(4),
.gt-followups-queue-table td:nth-child(4) {
	width: 12%;
}

.gt-followups-queue-table th:nth-child(5),
.gt-followups-queue-table td:nth-child(5) {
	width: 18%;
}

.gt-followups-queue-table th:nth-child(6),
.gt-followups-queue-table td:nth-child(6) {
	width: 15%;
}

.gt-followups-queue-table td:nth-child(5),
.gt-followups-queue-table td:nth-child(6) {
	white-space: nowrap;
}

.gt-followups-queue-table td:nth-child(5).gt-actions-cell,
.gt-followups-queue-table td:nth-child(6).gt-actions-cell {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	min-width: 120px;
}

.gt-followups-new-table {
	width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
	background: #fff;
	border: 1px solid #d7dbe2;
	border-radius: 8px;
	overflow: hidden;
}

.gt-followups-new-table th,
.gt-followups-new-table td {
	padding: 10px 8px;
	border-bottom: 1px solid #edf0f3;
	text-align: left;
	vertical-align: top;
	font-size: 13px;
}

.gt-followups-new-table thead th {
	font-size: 12px;
	text-transform: uppercase;
	color: #5d6778;
	background: #fbfcfe;
}

.gt-followups-new-table tbody tr:nth-child(odd):not(.gt-inline-detail-row) {
	background: #fcfdff;
}

.gt-followups-new-table th:nth-child(1),
.gt-followups-new-table td:nth-child(1) { width: 22%; }
.gt-followups-new-table th:nth-child(2),
.gt-followups-new-table td:nth-child(2) { width: 24%; }
.gt-followups-new-table th:nth-child(3),
.gt-followups-new-table td:nth-child(3) { width: 16%; }
.gt-followups-new-table th:nth-child(4),
.gt-followups-new-table td:nth-child(4) { width: 10%; }
.gt-followups-new-table th:nth-child(5),
.gt-followups-new-table td:nth-child(5) { width: 8%; }

.gt-followups-new-table td:nth-child(5) {
	white-space: normal;
}

.gt-followups-new-table .gt-actions-cell {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	justify-content: flex-start;
	min-width: 100% !important;
	width: 100%;
}

.gt-inline-form {
	display: inline-flex;
	margin: 0;
}

.gt-hidden-form {
	display: none;
}

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

.gt-filter-caption {
	margin-bottom: 16px;
	color: #5d6778;
	font-size: 14px;
}

.gt-choice-row {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.gt-choice-row label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
}

.gt-customer-panel {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.gt-customer-panels .gt-customer-panel {
	display: none;
}

.gt-customer-panels .gt-customer-panel.is-active {
	display: flex;
}

.gt-is-hidden {
	display: none;
}

.gt-settings-inline-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.gt-settings-inline-label {
	font-weight: 600;
}

.gt-settings-inline-row input[type='checkbox'] {
	width: auto;
	min-width: 0;
}

.gt-settings-inline-row input[type='text'] {
	width: 220px;
	min-width: 220px;
}

.gt-customer-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	margin-top: 14px;
	border-bottom: 1px solid #d7dbe2;
}

.gt-customer-tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 16px;
	margin-bottom: -1px;
	border: 1px solid transparent;
	border-top-left-radius: 8px;
	border-top-right-radius: 8px;
	color: #5d6778;
	font-weight: 600;
	text-decoration: none;
	background: transparent;
	border: 1px solid transparent;
	cursor: pointer;
}

.gt-customer-tab:hover {
	color: #1f2937;
	background: #f8fafc;
}

.gt-customer-tab.is-active {
	color: #1f2937;
	background: #fff;
	border-color: #d7dbe2 #d7dbe2 #fff;
}

.gt-customer-tab-panel {
	display: none;
}

.gt-customer-tab-panel.is-active {
	display: block;
}

.gt-helper-box {
	padding: 14px 16px;
	border: 1px dashed #d7dbe2;
	border-radius: 8px;
	background: #fbfcfe;
}

.gt-helper-box p {
	margin: 0;
	color: #5d6778;
}

.gt-status-badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 8px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
}

.gt-status-pending {
	background: #eef3ff;
	color: #1d4ed8;
}

.gt-status-overdue {
	background: #fff1f2;
	color: #be123c;
}

.gt-growth-positive {
	color: #15803d;
	font-weight: 600;
}

.gt-growth-negative {
	color: #b91c1c;
	font-weight: 600;
}

.gt-products-block {
	display: grid;
	gap: 12px;
}

.gt-products-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.gt-products-header h3 {
	margin: 0;
	font-size: 16px;
}

.gt-direct-discount-row {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	gap: 12px;
}

.gt-direct-discount-row input[data-gt-discount-value] {
	width: 12ch;
	min-width: 12ch;
	-moz-appearance: textfield;
}

.gt-direct-discount-row input[data-gt-discount-value]::-webkit-outer-spin-button,
.gt-direct-discount-row input[data-gt-discount-value]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.gt-direct-totals {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.gt-direct-total-item {
	background: #fff;
	border: 1px solid #d7dbe2;
	border-radius: 8px;
	padding: 10px 14px;
	min-width: 170px;
}

.gt-direct-total-item span {
	display: block;
	font-size: 12px;
	color: #5d6778;
}

.gt-direct-total-item strong {
	font-size: 18px;
}

.gt-kpi-note {
	margin-top: 10px;
	font-size: 13px;
	color: #5d6778;
}

.gt-breakdown-list {
	display: grid;
	gap: 12px;
}

.gt-breakdown-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid #eef1f5;
}

.gt-breakdown-row:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.gt-breakdown-row span {
	color: #5d6778;
}

.gt-breakdown-row strong {
	font-size: 16px;
}

.gt-row-active {
	background: #eef6ff;
}

.gt-product-link {
	display: inline-block;
	color: inherit;
}

.gt-product-link strong {
	font-size: 14px;
	line-height: 1.35;
}

.gt-inline-detail-row td {
	padding: 0 !important;
	background: #f8fbff;
}

.gt-inline-detail {
	padding: 20px;
	border-top: 1px solid #dbe6f3;
}

.gt-inline-detail h3 {
	margin: 0 0 16px;
	font-size: 16px;
}

.gt-inline-summary {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 12px;
	margin-bottom: 20px;
}

.gt-inline-summary-item {
	background: #fff;
	border: 1px solid #d7dbe2;
	border-radius: 8px;
	padding: 14px 16px;
}

.gt-inline-summary-item strong {
	display: block;
	font-size: 20px;
	line-height: 1.25;
}

.gt-product-rows {
	display: grid;
	gap: 12px;
}

.gt-product-row {
	display: grid;
	grid-template-columns: minmax(0, 1.8fr) minmax(140px, 0.6fr) auto;
	gap: 12px;
	align-items: end;
}

.gt-direct-sales-form .gt-product-row input[name="quantity[]"],
.gt-direct-sales-form .gt-product-row input[data-gt-product-quantity] {
	width: 7ch;
	min-width: 7ch;
	-moz-appearance: textfield;
}

.gt-direct-sales-form .gt-product-row input[name="quantity[]"]::-webkit-outer-spin-button,
.gt-direct-sales-form .gt-product-row input[name="quantity[]"]::-webkit-inner-spin-button,
.gt-direct-sales-form .gt-product-row input[data-gt-product-quantity]::-webkit-outer-spin-button,
.gt-direct-sales-form .gt-product-row input[data-gt-product-quantity]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.gt-direct-sales-form .gt-direct-builder-row {
	grid-template-columns: minmax(0, 1fr) auto auto;
}

.gt-direct-sales-form .gt-direct-builder-row label:nth-child(3) {
	justify-self: end;
}

.gt-acquisition-product-row {
	grid-template-columns: minmax(0, 1fr) 130px 170px auto;
}

.gt-acquisition-product-row input[name="quantity[]"],
.gt-acquisition-product-row input[name="unit_cost[]"],
.gt-acquisition-product-row input[data-gt-acquisition-quantity],
.gt-acquisition-product-row input[data-gt-acquisition-unit-cost] {
	width: 7ch;
	min-width: 7ch;
	-moz-appearance: textfield;
}

.gt-acquisition-product-row input[name="quantity[]"]::-webkit-outer-spin-button,
.gt-acquisition-product-row input[name="quantity[]"]::-webkit-inner-spin-button,
.gt-acquisition-product-row input[name="unit_cost[]"]::-webkit-outer-spin-button,
.gt-acquisition-product-row input[name="unit_cost[]"]::-webkit-inner-spin-button,
.gt-acquisition-product-row input[data-gt-acquisition-quantity]::-webkit-outer-spin-button,
.gt-acquisition-product-row input[data-gt-acquisition-quantity]::-webkit-inner-spin-button,
.gt-acquisition-product-row input[data-gt-acquisition-unit-cost]::-webkit-outer-spin-button,
.gt-acquisition-product-row input[data-gt-acquisition-unit-cost]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.gt-acquisition-product-row label:nth-child(2),
.gt-acquisition-product-row label:nth-child(3) {
	justify-self: end;
}

.gt-remove-row {
	white-space: nowrap;
}

@media (max-width: 1024px) {
	.gt-grid-two,
	.gt-form-split,
	.gt-product-row {
		grid-template-columns: 1fr;
	}

	.gt-direct-sales-form .gt-direct-builder-row {
		grid-template-columns: 1fr;
	}

	.gt-direct-sales-form .gt-direct-builder-row label:first-child,
	.gt-direct-sales-form .gt-direct-builder-row .select2-container,
	.gt-direct-sales-form .gt-direct-builder-row .select2-container .selection,
	.gt-direct-sales-form .gt-direct-builder-row .select2-container .select2-selection {
		width: 100% !important;
		min-width: 0;
		max-width: 100%;
	}

	.gt-frontend-panel {
		grid-template-columns: 1fr;
	}

	.gt-frontend-sidebar {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		z-index: 50;
		background: #fff;
		border-radius: 0;
		border-left: 0;
		border-right: 0;
	}

	.gt-frontend-content {
		padding-top: 92px;
	}

	.gt-frontend-menu-toggle {
		display: inline-flex !important;
	}

	.gt-frontend-nav {
		display: none;
		margin-top: 12px;
	}

	.gt-frontend-sidebar.is-open .gt-frontend-nav {
		display: block;
	}

	.gt-cards .gt-card strong {
		font-size: 24px;
	}

	.gt-wrap,
	.gt-frontend-shell,
	.gt-frontend-panel,
	.gt-frontend-content,
	.gt-card {
		max-width: 100%;
		overflow-x: hidden;
	}

	.gt-filter-bar input,
	.gt-form input,
	.gt-form select,
	.gt-form textarea {
		min-width: 0;
	}
}
