.brew-detail-component {
	display: flex;
	flex-direction: column;
	max-width: 100%;
}

.brew-detail-component-display-container {
	display: flex;
	/* On narrow viewports, let the gauges stack above the form fields instead
	   of forcing the row to overflow horizontally. */
	flex-wrap: wrap;
	gap: 12px;
}

.brew-detail-component-display-container-swatches {
	display: flex;
	flex-direction: column;
	/* Keep the natural swatch width; let the form-fields side absorb the
	   leftover space via flex-grow. */
	flex: 0 0 auto;
}

.brew-detail-component-display-container-swatches > div {
	display: flex;
	width: fit-content;
	--swatch-width: 300px;
	padding-bottom: 10px;
}
/* Phone: shrink the gauge swatches so they don't dominate a 414-wide screen. */
@media (max-width: 600px) {
	.brew-detail-component-display-container-swatches > div {
		--swatch-width: 180px;
	}
}


.brew-detail-component-display-container-swatches > div > span {
	padding-right: 10px;
}

.brew-detail-component-display-container-swatches > div > div {
	height: 30px;
}

.grain-bill {
	display: flex;
	flex-direction: column;
	padding-left: 30px;
	padding-right: 30px;
}

.grain-bill .grain-bill-name {
	padding-right: 15px;
}

.grain-bill .grain-bill-fraction {
	text-align: right;
}

.grain-bill-grid {
	display: inline-grid;
	grid-template-columns: auto auto;
	grid-auto-flow: row;
	border: 0.5px solid var(--border-color);
}

.brew-detail-component-display-container-fermentable-sensory-profiles {
	display: flex;
	flex-direction: column;
    padding-left: 10px;
}

.brew-detail-component-display-container-fermentable-sensory-profile {
	display: flex;
}

.brew-detail-component-display-container-fermentable-sensory-profile-title {
	font-weight: 600;
}

.brew-detail-component-display-container-fermentable-sensory-profile-label {
	
}

.brew-detail-component-display-container-fermentable-sensory-profile-value {
	padding-left: 10px;
}

.brew-detail-component-tabbed-content {
	display: flex;
	/* Tabs are horizontal — the tabs strip sits above the content area. */
	flex-direction: column;
	/* min-width:0 lets this flex item shrink below its intrinsic content
	   width — without it, the text fields/text areas inside push the editor
	   wider than the viewport. flex:1 1 auto lets it grow into leftover
	   space when the row doesn't wrap. */
	flex: 1 1 auto;
	min-width: 0;
}

/* The tab content is itself a flex child of .brew-detail-component-tabbed-content
   (next to the vertical tabs strip). It also needs min-width:0 so its
   children can shrink. */
.brew-detail-component-tab-content {
	flex-grow: 1;
	min-width: 0;
}

/* Vaadin form fields default to ~12em wide and don't shrink. Force them to
   fill the available column width so they wrap nicely on narrow screens. */
.brew-detail-component-tabbed-content vaadin-text-field,
.brew-detail-component-tabbed-content vaadin-text-area,
.brew-detail-component-tabbed-content vaadin-combo-box,
.brew-detail-component-tabbed-content vaadin-big-decimal-field,
.brew-detail-component-tabbed-content vaadin-number-field {
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.brew-detail-component-tabs {

}

.brew-detail-component-tab {

}

.brew-detail-component-overview {
	display: flex;
	flex-direction: column;
}

.brew-detail-component-brew-steps {
	display: flex;
	/* Inner brew-step tabs are horizontal: tab strip on top, step content
	   below. */
	flex-direction: column;
	min-width: 0;
}

.brew-detail-component-text-field {
	
}

.brew-detail-component-text-area {
	
}

.brew-detail-component-combo-box {
	
}

.brew-detail-component-volume-editor {
	
}

.brew-detail-component-brew-name {
	
}

.brew-detail-component-brew-description {
	
}

.brew-detail-component-brew-style {
	
}

.brew-detail-component-bright-volume {

}

.brew-detail-action-wrapper {
	display: flex;
    justify-content: flex-end;
    flex-grow: 1;
}

.brew-grid .brew-detail-action-wrapper > vaadin-button {
	margin-left: 10px;
}
