:root {
	--accent: #855050;
	--body: #f2efe8;
	--head: #ebe9dc;
	--line: #999999;
	--muted: #888888;
	--panel: #fdfcf9;
	--text: #777777;
}
* {
	box-sizing: border-box;
}
a {
	color: var(--text);
	text-decoration: none;
}
a img {
	border-width: 0;
}
a.active,
tr.hover:hover td {
	background-color: #e8e2d0;
}
b {
	color: var(--muted);
}
body {
	background-color: var(--body);
	color: var(--text);
	font-family: Tahoma, Arial, sans-serif;
}
button:hover {
	background-color: #e8e2d0;
}
form {
	margin: 0;
}
html,
body {
	margin: 0;
	min-height: 100%;
}
input,
select,
textarea,
button {
	font: inherit;
}
input,
textarea,
button {
	background: #fff;
	border: 1px solid silver;
	padding: 6px;
}
main.content {
	margin: 0 auto 20px;
	width: min(1180px, calc(100% - 20px));
}
select {
	background-color: var(--panel);
	border: 0;
	padding: 5px;
}
table tr td,
table tr th {
	padding: 4px;
	vertical-align: top;
}
table tr.header,
table tr.header td,
table tr th {
	background: var(--head);
	color: lightslategray;
	font-weight: normal;
}
table,
.invoice-lines {
	border-collapse: collapse;
	border-spacing: 0;
	width: 100%;
}
td.right,
th.right {
	text-align: right;
}
textarea:focus {
	outline: none;
}
tr,
td,
th {
	border: 0;
}
.actions {
	grid-auto-flow: column;
	justify-content: start;
}
.badge {
	background-color: transparent;
	border: 0;
	color: inherit;
	display: inline;
	padding: 0;
}
.block,
.row a {
	display: block;
	padding: 5px;
}
.brand {
	align-items: center;
	display: flex;
	min-height: 52px;
	text-decoration: none;
}
.brand span {
	color: #999;
	display: block;
	font-size: 10px;
	text-transform: uppercase;
}
.brand strong {
	color: var(--accent);
	display: block;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 24px;
	line-height: 1;
}
.brand-logo {
	height: 40px;
	margin-right: 8px;
	object-fit: contain;
	width: 40px;
}
.dashboard-layout {
	align-items: start;
	display: grid;
	gap: 10px;
	grid-template-columns: 250px minmax(0, 1fr);
	width: 100%;
}
.field,
.field-full {
	display: grid;
	gap: 4px;
}
.field-full {
	grid-column: 1 / -1;
}
.form-grid {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	padding: 10px;
}
.full {
	width: 100%;
}
.group > .block:last-child {
	border-width: 0;
}
.group,
.panel,
.table-card,
.invoice-sheet {
	overflow-x: auto;
}
.group,
.panel,
.table-card,
.invoice-sheet,
.muted-box,
.hero-card,
.stat-card {
	background-color: var(--panel);
	border: 1px solid var(--line);
	margin-top: 10px;
	min-width: 0;
}
.head,
.table-card .toolbar,
.panel .toolbar {
	background: var(--head);
	border-bottom: 1px solid var(--line);
	color: var(--accent);
	display: block;
	font-weight: bold;
	padding: 5px;
}
.invoice-sheet > *,
.hero-card > * {
	padding-left: 10px;
	padding-right: 10px;
}
.muted,
.empty-state {
	color: #999;
}
.nav {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	justify-content: flex-end;
}
.nav a,
.button,
button {
	background: #f8f6ef;
	border: 1px solid #c6c0b4;
	color: var(--text);
	cursor: pointer;
	display: inline-block;
	padding: 8px 14px;
	text-decoration: none;
}
.notice,
.error {
	background: #f8f6ef;
	border: 1px solid var(--line);
	margin: 10px;
	padding: 8px 10px;
}
.page-shell {
	min-height: 100vh;
}
.panel .toolbar,
.table-card .toolbar {
	align-items: center;
	display: flex;
	gap: 10px;
	justify-content: space-between;
}
.panel > form,
.table-card > form {
	padding-bottom: 10px;
}
.quarter1 {
	background-color: rgba(200, 200, 200, 0.2);
}
.quarter2 {
	background-color: rgba(0, 240, 0, 0.2);
}
.quarter3 {
	background-color: rgba(255, 240, 90, 0.2);
}
.quarter4 {
	background-color: rgba(180, 100, 50, 0.2);
}
.row,
.big {
	width: 100%;
}
.row,
.big,
.stack,
.split,
.detail-grid,
.actions,
.toolbar,
.form-grid {
	min-width: 0;
}
.section-kicker,
.hero-kicker,
.badge,
.stat-label {
	display: none;
}
.small {
	color: #999;
	font-size: 12px;
}
.split,
.detail-grid {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
.stack,
.actions {
	display: grid;
	gap: 10px;
}
.stat-number {
	color: var(--text);
	font-family: Tahoma, Arial, sans-serif;
	font-size: 24px;
}
.table-card,
.panel,
.invoice-sheet,
.hero-card,
.stat-card,
.muted-box {
	margin-top: 0;
}
.toolbar > div {
	min-width: 0;
}
.toolbar h2,
.toolbar h3 {
	color: var(--accent);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 28px;
	font-weight: bold;
	line-height: 1.1;
	margin: 0;
}
.topbar {
	align-items: center;
	background: var(--head);
	border-bottom: 1px solid var(--line);
	display: flex;
	gap: 10px;
	justify-content: space-between;
	padding: 0 10px;
}
@media (max-width: 640px){
	table {
		min-width: 540px;
	}
	.group,
	.panel,
	.table-card,
	.invoice-sheet {
		overflow-x: auto;
	}
	.nav a,
	.button,
	button {
		text-align: left;
		width: 100%;
	}
}
@media (max-width: 900px){
	main.content {
		width: calc(100% - 20px);
	}
	.actions {
		grid-auto-flow: row;
	}
	.dashboard-layout,
	.split,
	.detail-grid,
	.form-grid {
		grid-template-columns: 1fr;
	}
	.nav {
		justify-content: flex-start;
		padding-bottom: 8px;
		width: 100%;
	}
	.topbar {
		align-items: flex-start;
		flex-direction: column;
		padding-top: 8px;
	}
}