.quoteflux-admin {
	--quoteflux-admin-ink: #142734;
	--quoteflux-admin-soft: #5c7381;
	--quoteflux-admin-line: #d9e4eb;
	--quoteflux-admin-surface: #ffffff;
	--quoteflux-admin-muted: #f4f7f9;
	--quoteflux-admin-tint: #fff7ef;
	--quoteflux-admin-accent: #c96f2d;
	--quoteflux-admin-accent-deep: #9d4f1b;
	--quoteflux-admin-shadow: 0 18px 44px rgba(20, 39, 52, 0.08);
	color: var(--quoteflux-admin-ink);
}

.quoteflux-admin__hero {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	margin: 24px 0 22px;
	padding: 28px 30px;
	border: 1px solid #ebd8c7;
	border-radius: 24px;
	background:
		radial-gradient(circle at top right, rgba(201, 111, 45, 0.14), transparent 36%),
		linear-gradient(145deg, #fff8f0, #f7fbfd);
	box-shadow: var(--quoteflux-admin-shadow);
}

.quoteflux-admin__hero h1 {
	margin: 0 0 8px;
	font-size: 34px;
	line-height: 1.05;
}

.quoteflux-admin__hero p {
	max-width: 760px;
	margin: 0;
	color: var(--quoteflux-admin-soft);
	font-size: 14px;
	line-height: 1.6;
}

.quoteflux-admin__hero-badge {
	flex-shrink: 0;
	padding: 10px 14px;
	border-radius: 999px;
	background: rgba(20, 39, 52, 0.08);
	color: var(--quoteflux-admin-ink);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.quoteflux-admin__grid {
	display: grid;
	gap: 24px;
}

.quoteflux-admin__grid--settings {
	grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
	align-items: start;
}

.quoteflux-panel {
	margin: 0 0 24px;
	padding: 24px 24px 22px;
	border: 1px solid var(--quoteflux-admin-line);
	border-radius: 24px;
	background: var(--quoteflux-admin-surface);
	box-shadow: var(--quoteflux-admin-shadow);
}

.quoteflux-panel--aside {
	position: sticky;
	top: 32px;
}

.quoteflux-panel--nested {
	margin-top: 10px;
	background: linear-gradient(180deg, #ffffff, #fbfdfe);
}

.quoteflux-panel__header + .quoteflux-form-table {
	margin-top: 0;
}

.quoteflux-panel__header {
	margin-bottom: 18px;
}

.quoteflux-panel__header h2 {
	margin: 0 0 6px;
	font-size: 20px;
	line-height: 1.2;
}

.quoteflux-panel__header p {
	margin: 0;
	color: var(--quoteflux-admin-soft);
	font-size: 13px;
	line-height: 1.55;
}

.quoteflux-form-table th {
	width: 220px;
	padding-top: 16px;
	color: var(--quoteflux-admin-ink);
	font-size: 13px;
}

.quoteflux-form-table td {
	padding-top: 14px;
	padding-bottom: 14px;
}

.quoteflux-form-table input:not([type='checkbox']):not([type='radio']),
.quoteflux-form-table select,
.quoteflux-form-table textarea {
	border-color: #c7d6df;
	border-radius: 14px;
	box-shadow: none;
}

.quoteflux-form-table input:not([type='checkbox']):not([type='radio']):focus,
.quoteflux-form-table select:focus,
.quoteflux-form-table textarea:focus {
	border-color: rgba(201, 111, 45, 0.7);
	box-shadow: 0 0 0 3px rgba(201, 111, 45, 0.14);
}

.quoteflux-form-table .description {
	color: var(--quoteflux-admin-soft);
}

.quoteflux-inline-check {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 500;
}

.quoteflux-metric-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 14px;
	margin-bottom: 22px;
}

.quoteflux-metric-grid--dashboard {
	margin-bottom: 24px;
}

.quoteflux-metric-card {
	padding: 18px;
	border: 1px solid #e5edf2;
	border-radius: 20px;
	background: linear-gradient(180deg, #ffffff, #f9fbfc);
}

.quoteflux-metric-card__label {
	display: block;
	margin-bottom: 8px;
	color: var(--quoteflux-admin-soft);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.quoteflux-metric-card strong {
	font-size: 20px;
	line-height: 1.15;
}

.quoteflux-panel--aside .quoteflux-metric-card {
	padding: 16px;
}

.quoteflux-panel--aside .quoteflux-metric-card__label {
	margin-bottom: 7px;
	font-size: 11px;
	letter-spacing: 0.07em;
}

.quoteflux-panel--aside .quoteflux-metric-card strong {
	font-size: 16px;
	line-height: 1.3;
	word-break: break-word;
}

.quoteflux-note-card {
	padding: 18px 20px;
	border: 1px solid #f0dcc8;
	border-radius: 20px;
	background: var(--quoteflux-admin-tint);
}

.quoteflux-note-card h3 {
	margin: 0 0 8px;
	font-size: 15px;
}

.quoteflux-note-card p {
	margin: 0;
	color: var(--quoteflux-admin-soft);
	font-size: 13px;
	line-height: 1.6;
}

.quoteflux-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 14px;
}

.quoteflux-toolbar > * {
	min-width: 0;
}

.quoteflux-search-form {
	max-width: 100%;
}

.quoteflux-search-form .search-box {
	display: flex;
	align-items: center;
	gap: 10px;
	float: none;
	margin: 0;
}

.quoteflux-search-form input[type='search'] {
	min-width: 280px;
	max-width: 100%;
	border-radius: 999px;
	padding-inline: 14px;
}

.quoteflux-filters {
	margin: 0;
	float: none;
	max-width: 100%;
}

.quoteflux-filters li {
	margin-bottom: 0;
}

.quoteflux-filters a {
	padding: 8px 12px;
	border-radius: 999px;
	text-decoration: none;
}

.quoteflux-filters a.current,
.quoteflux-filters a:hover {
	background: rgba(20, 39, 52, 0.08);
}

.quoteflux-table-nav {
	margin: 0 0 14px;
	padding: 0;
}

.quoteflux-table-wrap {
	overflow: hidden;
	border: 1px solid #dde7ed;
	border-radius: 20px;
}

.quoteflux-table {
	border: 0;
	box-shadow: none;
}

.quoteflux-table thead th,
.quoteflux-table thead td {
	padding-top: 16px;
	padding-bottom: 16px;
	background: #f6fafc;
	color: var(--quoteflux-admin-soft);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.quoteflux-table tbody td,
.quoteflux-table tbody th {
	padding-top: 18px;
	padding-bottom: 18px;
	vertical-align: top;
}

.quoteflux-table tbody tr:nth-child(odd) {
	background: #fcfdfe;
}

.quoteflux-table .row-actions {
	margin-top: 8px;
}

.quoteflux-detail-shell {
	max-width: 1220px;
}

.quoteflux-detail-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 22px;
}

.quoteflux-detail-head h2 {
	margin: 0 0 8px;
	font-size: 28px;
	line-height: 1.1;
}

.quoteflux-detail-head p {
	margin: 0;
	color: var(--quoteflux-admin-soft);
	line-height: 1.6;
}

.quoteflux-status-pill {
	padding: 10px 14px;
	border-radius: 999px;
	background: #eaf0f4;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.quoteflux-status-pill--new {
	background: #e7f1ff;
	color: #2059a8;
}

.quoteflux-status-pill--reviewing {
	background: #fff1d8;
	color: #9b6209;
}

.quoteflux-status-pill--quoted {
	background: #e9f6ef;
	color: #19724a;
}

.quoteflux-status-pill--won {
	background: #dff8eb;
	color: #0d7f50;
}

.quoteflux-status-pill--lost {
	background: #fde9e6;
	color: #a03f32;
}

.quoteflux-detail-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 18px;
	margin-bottom: 24px;
}

.quoteflux-info-card {
	padding: 20px;
	border: 1px solid #e5edf2;
	border-radius: 20px;
	background: linear-gradient(180deg, #ffffff, #fbfcfd);
}

.quoteflux-info-card h3 {
	margin: 0 0 10px;
	font-size: 15px;
}

.quoteflux-info-card p {
	margin: 0;
	line-height: 1.65;
}

.quoteflux-action-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 0;
}

.quoteflux-action-row .button,
.quoteflux-action-row .button-link-delete {
	margin: 0;
}

.quoteflux-admin .notice {
	margin-left: 0;
	margin-right: 0;
	border-radius: 14px;
}

@media (max-width: 960px) {
	.quoteflux-admin__grid--settings {
		grid-template-columns: 1fr;
	}

	.quoteflux-panel--aside {
		position: static;
	}
}

@media (max-width: 782px) {
	.quoteflux-admin__hero,
	.quoteflux-detail-head,
	.quoteflux-toolbar,
	.quoteflux-search-form .search-box {
		flex-direction: column;
		align-items: stretch;
	}

	.quoteflux-search-form input[type='search'] {
		min-width: 0;
		width: 100%;
		box-sizing: border-box;
	}

	.quoteflux-search-form,
	.quoteflux-search-form .search-box {
		width: 100%;
		max-width: 100%;
	}

	.quoteflux-search-form .search-box .button {
		width: 100%;
		margin-left: 0;
		box-sizing: border-box;
	}

	.quoteflux-form-table th,
	.quoteflux-form-table td {
		display: block;
		width: 100%;
		padding-left: 0;
		padding-right: 0;
	}

	.quoteflux-filters {
		display: flex;
		flex-wrap: nowrap;
		gap: 6px;
		width: 100%;
		max-width: 100%;
		overflow-x: auto;
		overflow-y: hidden;
		padding-inline: 2px;
		padding-bottom: 4px;
		box-sizing: border-box;
		white-space: nowrap;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
	}

	.quoteflux-filters li {
		flex: 0 0 auto;
		float: none;
	}

	.quoteflux-table-wrap {
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
	}

	.quoteflux-table {
		min-width: 720px;
	}
}
