.rc-recipe-builder .rc-grid {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 20px;
	align-items: start;
}

@media (max-width: 1200px) {
.rc-version { font-size: 1em; font-style: italic; margin-bottom: 8px; }
.rc-recipe-builder .rc-grid {
		grid-template-columns: 1fr;
	}
}

.rc-recipe-builder .rc-panel {
	background: #151e2b;
	border: 2px solid #273548;
	border-radius: 10px;
	padding: 16px;
}

.rc-recipe-builder .rc-summary dt {
	font-weight: 600;
	margin-top: 8px;
}

.rc-recipe-builder .rc-summary dd {
	margin: 4px 0 0;
	font-size: 15px;
}

.rc-recipe-builder .rc-scale-presets {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
}

.rc-recipe-builder .rc-scale-presets button {
	min-width: 36px;
}

.rc-recipe-builder table.rc-lines input[type="text"],
.rc-recipe-builder table.rc-lines input[type="number"] {
	width: 100%;
}

.rc-recipe-builder table.rc-lines .col-drag { width: 30px; cursor: grab; }
.rc-recipe-builder table.rc-lines .rc-drag-handle { color: #50575e; cursor: grab; font-size: 16px; line-height: 1.4; }
.rc-recipe-builder table.rc-lines .rc-drag-handle:hover { color: #1d2327; }
.rc-recipe-builder table.rc-lines tbody.ui-sortable tr.ui-sortable-helper { opacity: 0.7; cursor: grabbing; }
.rc-recipe-builder table.rc-lines tbody.ui-sortable tr.ui-sortable-placeholder { background: #c5d9f0; visibility: visible !important; height: 40px; }
.rc-recipe-builder table.rc-lines .col-qty { width: 90px; }
.rc-recipe-builder table.rc-lines .col-unit { width: 70px; }
.rc-recipe-builder table.rc-lines .col-density { width: 90px; }
.rc-recipe-builder table.rc-lines .col-imperial { width: 120px; }
.rc-recipe-builder table.rc-lines .col-cost { width: 80px; text-align: right; }

.rc-recipe-builder .imperial-display {
	color: #50575e;
	font-size: 12px;
}

.rc-recipe-builder .rc-labour-card {
	border: 2px solid #273548;
	border-radius: 10px;
	margin-bottom: 10px;
	overflow: hidden;
}

.rc-recipe-builder .rc-labour-card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #f0f0f1;
	padding: 6px 12px;
	font-weight: 600;
	border-bottom: 1px solid #c3c4c7;
}

/* Dark theme - Labour card */
body.toplevel_page_restaurant-costing .rc-labour-card,
body[class*="restaurant-costing_page_restaurant-costing"] .rc-labour-card { background: #151e2b; border-color: #273548; }
body.toplevel_page_restaurant-costing .rc-labour-card-header,
body[class*="restaurant-costing_page_restaurant-costing"] .rc-labour-card-header { background: #1a2537; border-bottom-color: #273548; color: #fff; }
body.toplevel_page_restaurant-costing .rc-labour-card-body label,
body[class*="restaurant-costing_page_restaurant-costing"] .rc-labour-card-body label { color: #ccc; }

.rc-recipe-builder .rc-labour-card-header .button {
	padding: 0 6px;
	font-size: 16px;
	line-height: 1.4;
	height: auto;
}

.rc-recipe-builder .rc-labour-card-body {
	padding: 10px 12px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.rc-recipe-builder .submit { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rc-recipe-builder .submit .rc-ml-auto { margin-left: auto; }
.rc-recipe-builder .rc-labour-card-body label {
	font-size: 11px;
	color: #50575e;
	text-transform: uppercase;
}

.rc-recipe-builder .rc-labour-card-body input {
	width: 100%;
}

.rc-ingredient-suggestions {
	position: absolute;
	z-index: 100;
	background: #fff;
	border: 1px solid #8c8f94;
	max-height: 200px;
	overflow-y: auto;
	min-width: 280px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.rc-ingredient-suggestions li {
	margin: 0;
	padding: 8px 12px;
	cursor: pointer;
	list-style: none;
}

.rc-ingredient-suggestions li:hover,
.rc-ingredient-suggestions li.is-selected {
	background: #2271b1;
	color: #fff;
}

.rc-ingredient-cell {
	position: relative;
}

/* Print view */
body.rc-print-recipe #wpadminbar,
body.rc-print-recipe #adminmenumain,
body.rc-print-recipe #adminmenuback,
body.rc-print-recipe .notice {
	display: none !important;
}

body.rc-print-recipe #wpcontent {
	margin-left: 0;
}

.rc-print-sheet {
	max-width: 800px;
	margin: 24px auto;
}

.rc-print-sheet h1 {
	margin-bottom: 0.25em;
}

.rc-print-sheet .rc-meta {
	color: #444;
	margin-bottom: 1.5em;
}

.rc-print-sheet table {
	width: 100%;
	border-collapse: collapse;
	margin: 1em 0;
}

.rc-print-sheet th,
.rc-print-sheet td {
	border-bottom: 1px solid #ccc;
	padding: 6px 8px;
	text-align: left;
}

@media print {
	body.rc-print-recipe .no-print {
		display: none !important;
	}
}

.rc-modal-footer {
	padding: 12px 16px 16px;
	display: flex;
	gap: 8px;
	align-items: center;
}

.rc-prev-next {
	display: flex;
	justify-content: space-between;
	padding: 4px 16px 12px;
}

.rc-prev-next.rc-next-only {
	justify-content: flex-end;
}

.rc-prev-next.rc-prev-only {
	justify-content: flex-start;
}

.rc-prev-next a {
	text-decoration: none;
	color: #2271b1;
	font-size: 12px;
}

.rc-prev-next a:hover {
	color: #135e96;
}

tr.rc-new-ingredient-row {
	background: #edfaef;
}

/* Dark theme - Recipe edit inputs white bg for data entry */
body.toplevel_page_restaurant-costing .rc-recipe-builder input[type="text"],
body.toplevel_page_restaurant-costing .rc-recipe-builder input[type="number"],
body.toplevel_page_restaurant-costing .rc-recipe-builder select,
body[class*="restaurant-costing_page_restaurant-costing"] .rc-recipe-builder input[type="text"],
body[class*="restaurant-costing_page_restaurant-costing"] .rc-recipe-builder input[type="number"],
body[class*="restaurant-costing_page_restaurant-costing"] .rc-recipe-builder select {
	background: #fff;
	color: #1d2327;
}

/* Dark theme - Recipe lines table */
body.toplevel_page_restaurant-costing table.rc-lines.striped > tbody > tr,
body[class*="restaurant-costing_page_restaurant-costing"] table.rc-lines.striped > tbody > tr { background: #243142; }
body.toplevel_page_restaurant-costing table.rc-lines.striped > tbody > tr:nth-child(odd),
body[class*="restaurant-costing_page_restaurant-costing"] table.rc-lines.striped > tbody > tr:nth-child(odd) { background: #2a384b; }
body.toplevel_page_restaurant-costing table.rc-lines thead tr th,
body[class*="restaurant-costing_page_restaurant-costing"] table.rc-lines thead tr th { background: #1a2537; color: #fff; border-bottom: 1px solid #273548; }
body.toplevel_page_restaurant-costing table.rc-lines tbody tr td,
body[class*="restaurant-costing_page_restaurant-costing"] table.rc-lines tbody tr td { color: #ddd; }
body.toplevel_page_restaurant-costing table.rc-lines .rc-line-cost,
body[class*="restaurant-costing_page_restaurant-costing"] table.rc-lines .rc-line-cost { color: #fff; }

/* Light theme - Recipe lines table override */
body.rc-theme-light table.rc-lines.striped > tbody > tr { background: #fff; }
body.rc-theme-light table.rc-lines.striped > tbody > tr:nth-child(odd) { background: #e8e8e8; }
body.rc-theme-light table.rc-lines thead tr th { background: #f6f7f7; color: #1d2327; border-bottom: 1px solid #c3c4c7; }
body.rc-theme-light table.rc-lines tbody tr td { color: #1d2327; }
body.rc-theme-light table.rc-lines .rc-line-cost { color: #1d2327; }

/* Print image positioning */
.rc-print-sheet .rc-print-image {
	float: right;
	max-width: 45%;
	margin: 0 0 16px 20px;
	border-radius: 4px;
}
