/* Design of the Hobbywerkstatt. Bootstrap stays underneath for dialogs and the older pages. */
:root {
	--ink: #14212d;
	--ink-soft: #24384a;
	--busy: #123f61;
	--accent: #e8590c;
	--accent-dark: #c44a08;
	--free: #1f8a4c;
	--page: #eef1f4;
	--card: #ffffff;
	--line: #dce2e8;
	--text: #1a2733;
	--muted: #5f6e7c;
	--radius: 12px;
}

html, body {
	height: 100%;
}
body {
	background: var(--page);
	color: var(--text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 15px;
	padding-top: 0;
}
h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 14px; }
h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
h3 { font-size: 17px; font-weight: 600; margin: 24px 0 10px; }
a { color: #17639a; }

/* Icons, drawn in the symbols at the top of index.php */
.icon {
	fill: none;
	flex: none;
	height: 1.15em;
	margin-right: 0.45em;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
	vertical-align: -0.2em;
	width: 1.15em;
}

/* App shell */
.appShell {
	display: flex;
	min-height: 100%;
}
.sidebar {
	background: var(--ink);
	display: flex;
	flex: 0 0 216px;
	flex-direction: column;
	height: 100vh;
	overflow-y: auto;
	padding: 14px 12px;
	position: sticky;
	top: 0;
}
.sidebarLogo {
	background: #ffffff;
	border-radius: 10px;
	display: block;
	margin-bottom: 14px;
	padding: 8px;
	text-align: center;
}
.sidebarLogo img {
	height: 58px;
}
.sidebar a:not(.sidebarLogo) {
	border-radius: 8px;
	color: #cdd6df;
	display: block;
	font-weight: 500;
	margin-bottom: 2px;
	padding: 9px 12px;
	text-decoration: none;
}
.sidebar a:not(.sidebarLogo):hover {
	background: var(--ink-soft);
	color: #ffffff;
}
.sidebar a.active {
	background: var(--accent);
	color: #ffffff !important;
}
.sidebar a:not(.sidebarLogo) {
	align-items: center;
	display: flex;
}
.sidebar a:not(.sidebarLogo) .icon {
	margin-right: 10px;
}
.sidebarLabel {
	color: #84939f;
	font-size: 12px;
	font-weight: 600;
	margin: 16px 0 4px;
	padding: 0 12px;
}
.sidebarBottom {
	border-top: 1px solid var(--ink-soft);
	margin-top: auto;
	padding-top: 10px;
}
.sidebarToggle {
	display: none;
}
.appMain {
	flex: 1 1 auto;
	min-width: 0;
	padding: 22px 26px 40px;
}
.mainContent {
	margin: 0 auto;
	max-width: 1400px;
}
.spinner {
	height: 0;
	padding: 0;
}
.spinner img {
	left: 50%;
	position: fixed;
	top: 40%;
}

/* Tiles: same arrangement and size as always */
.tabsView {
	display: grid;
	gap: 6px;
	grid-template-columns: repeat(10, minmax(0, 1fr));
}
.span-1 { grid-column: span 1; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-9 { grid-column: span 9; }
.span-10 { grid-column: span 10; }
.tabsSummary {
	color: var(--muted);
	font-size: 14px;
	grid-column: 1 / -1;
	margin: -8px 0 6px;
}
.tabsSummary span {
	margin: 0 4px;
}
.tabsSummary strong {
	color: var(--accent-dark);
	font-weight: 600;
}
.arbeitsplatzTab {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 8px;
	cursor: pointer;
	height: 60px;
	margin: 0;
	overflow: hidden;
	padding: 0 12px;
	width: auto;
}
.arbeitsplatzTab:hover {
	background: var(--card);
	border-color: #9fb0bf;
}
.arbeitsplatzTab .title {
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 34px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.arbeitsplatzTab .info {
	font-size: 16px;
	line-height: 22px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.arbeitsplatzTab-Green {
	background: var(--card);
}
.arbeitsplatzTab-Green .info {
	color: var(--free);
	font-weight: 600;
}
.arbeitsplatzTab-Red,
.arbeitsplatzTab-Red:hover {
	background: var(--busy);
	border-color: var(--busy);
	color: #ffffff;
}
.arbeitsplatzTab-Red .info {
	color: #ffffff;
	font-variant-numeric: tabular-nums;
	font-weight: 600;
}
.arbeitsplatzTab .since {
	color: #a9c4d9;
	font-weight: 400;
	margin-left: 6px;
}
.arbeitsplatzTab-Selected,
.arbeitsplatzTab-Selected:hover {
	border-color: var(--accent);
	box-shadow: inset 0 0 0 2px var(--accent);
}
.arbeitsplatzTab.arbeitsplatzTabNew {
	background: transparent;
	border: 1px dashed #a5b1bd;
	height: 44px;
	text-align: center;
}
.arbeitsplatzTabNew .title {
	color: var(--muted);
	font-size: 15px;
	font-weight: 600;
	line-height: 42px;
}

/* Order screen */
.arbeitsplatzContainer {
	background: transparent;
	border: 0;
	margin-top: 14px;
	padding: 0;
}
.order {
	align-items: flex-start;
	display: grid;
	gap: 14px;
	grid-template-columns: minmax(0, 1fr) 300px;
}
.orderMain,
.orderSide,
.orderEmpty {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 18px 20px;
}
.orderHead {
	align-items: baseline;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	margin-bottom: 12px;
}
.orderMeta {
	color: var(--muted);
	font-size: 13px;
}
.orderHint {
	color: var(--muted);
	padding: 18px 2px;
	text-align: center;
}
.orderCustomer {
	background: #f3f6f9;
	border-radius: 8px;
	display: flex;
	font-size: 14px;
	line-height: 1.4;
	margin-bottom: 12px;
	padding: 10px 12px;
}
.orderCustomer .icon {
	color: var(--muted);
	margin-right: 10px;
	margin-top: 2px;
}
.orderCustomer strong {
	font-weight: 600;
}
.orderTable {
	margin-bottom: 12px;
}
.orderTable>tbody>tr>th {
	border-top: 0;
}
.orderTable .orderRowOpen {
	background: #fff6ec;
}
.orderTable .orderRowReturned {
	color: var(--muted);
}
.orderRowActions {
	white-space: nowrap;
}
.orderRemove {
	color: var(--muted);
}
.orderTools {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
	justify-content: space-between;
}
.orderAddTime {
	color: var(--muted);
	font-size: 14px;
}
.orderAddTime .abziehenInput {
	border: 1px solid #c8d1da;
	border-radius: 8px;
	height: 38px;
	margin: 0 2px;
	padding: 0 6px;
	width: 60px;
}
.orderSide {
	display: flex;
	flex-direction: column;
	gap: 10px;
	position: sticky;
	top: 14px;
}
.orderSide .btn {
	width: 100%;
}
.orderFigure label {
	color: var(--muted);
	display: block;
	font-size: 13px;
	font-weight: 500;
	margin: 0;
}
.orderFigure small {
	color: var(--muted);
}
.orderTime {
	font-size: 26px;
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	line-height: 1.25;
}
.orderTotal {
	font-size: 40px;
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.15;
}
.moneysum .id,
.moneysum .value {
	display: none;
}
.orderSide .orderPay {
	font-size: 18px;
	padding: 13px;
}
.orderSide .orderCancel {
	color: #a8332b;
}
.orderEmpty p {
	color: var(--free);
	font-weight: 600;
	margin: 4px 0 14px;
}
.orderStart {
	align-items: flex-end;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 12px;
}
.orderStart label {
	color: var(--muted);
	display: block;
	flex-basis: 100%;
	font-size: 13px;
	font-weight: 500;
	margin: 0;
}
.orderStart .form-control {
	width: 110px;
}
.orderStart .btn {
	flex: 0 0 auto;
}

/* General elements */
.table {
	background: var(--card);
}
.table>tbody>tr>th,
.table>thead>tr>th {
	border-bottom: 1px solid var(--line);
	color: var(--muted);
	font-size: 13px;
	font-weight: 600;
}
.table>tbody>tr>td {
	border-top: 1px solid var(--line);
	vertical-align: middle;
}
.table-striped>tbody>tr:nth-of-type(odd) {
	background: #f7f9fa;
}
.btn {
	border-radius: 8px;
	font-weight: 600;
	padding: 8px 14px;
}
.btn-xs {
	border-radius: 6px;
	font-weight: 500;
	padding: 3px 8px;
}
.btn-success {
	background: var(--accent);
	border-color: var(--accent);
	color: #ffffff;
}
.btn-success:hover, .btn-success:focus, .btn-success:active {
	background: var(--accent-dark);
	border-color: var(--accent-dark);
	color: #ffffff;
}
.btn-primary {
	background: var(--busy);
	border-color: var(--busy);
	color: #ffffff;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
	background: var(--ink);
	border-color: var(--ink);
	color: #ffffff;
}
.btn-default {
	background: #ffffff;
	border-color: #c8d1da;
	color: var(--text);
}
.btn-default:hover, .btn-default:focus {
	background: #f1f4f6;
	border-color: #a9b6c2;
}
.btn-info {
	background: var(--ink-soft);
	border-color: var(--ink-soft);
}
.btn-info:hover, .btn-info:focus {
	background: var(--ink);
	border-color: var(--ink);
}
.btn-danger { background: #b83a32; border-color: #b83a32; }
.btn-danger:hover, .btn-danger:focus { background: #982e27; border-color: #982e27; }
.btn-link { font-weight: 500; }
.form-control {
	border-color: #c8d1da;
	border-radius: 8px;
	box-shadow: none;
	height: 38px;
}
.form-control:focus {
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgba(232, 89, 12, 0.15);
}
.alert {
	border-radius: 10px;
}
.modal-content {
	border: 0;
	border-radius: 14px;
	overflow: hidden;
}
.modal-header {
	border-bottom: 1px solid var(--line);
}
.modal-title {
	font-weight: 700;
}
.docActions {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	white-space: nowrap;
}
.ortHint,
.ortMorningHint {
	white-space: nowrap;
}
.newsPage {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	max-width: 760px;
	padding: 20px 24px 12px;
}
.newsPage h3:first-of-type {
	margin-top: 8px;
}

/* Login */
.loginBody {
	align-items: center;
	background: var(--ink);
	display: flex;
	min-height: 100%;
}
.loginCard {
	background: var(--card);
	border-radius: 16px;
	margin: 0 auto;
	max-width: 380px;
	padding: 26px 30px 30px;
}
.loginCard h1 {
	margin-top: 10px;
}
.loginCard label {
	font-weight: 500;
}
.loginCard .btn {
	margin-top: 6px;
	padding: 11px;
	width: 100%;
}

/* Same breakpoints for the tiles as before: 2 columns on tablets, 1 on phones */
@media (max-width: 991px) {
	.appShell {
		display: block;
	}
	.sidebar {
		bottom: 0;
		display: none;
		height: 100%;
		left: 0;
		position: fixed;
		top: 0;
		width: 240px;
		z-index: 1030;
	}
	.sidebar.open {
		display: flex;
	}
	.sidebarToggle {
		background: var(--ink);
		border: 0;
		border-radius: 8px;
		color: #ffffff;
		display: block;
		font-weight: 600;
		margin-bottom: 14px;
		padding: 8px 14px;
	}
	.appMain {
		padding: 14px 14px 30px;
	}
	.tabsView {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.tabsView .arbeitsplatzTab {
		grid-column: span 1;
	}
	.tabsView .arbeitsplatzTabNew {
		grid-column: 1 / -1;
	}
	.order {
		grid-template-columns: minmax(0, 1fr);
	}
	.orderSide {
		position: static;
	}
	.orderMain {
		overflow-x: auto;
	}
}
@media (max-width: 767px) {
	.tabsView {
		grid-template-columns: minmax(0, 1fr);
	}
}
