/* Recipes.css - Module-specific styles for recipe management */

/* Category panels wrapper */
.recipes-categories {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

/* Recipe header cost display */
.recipe-cost-info {
    font-size: var(--text-sm);
    white-space: nowrap;
}

/* Recipe expanded details */
.recipe-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    font-size: var(--text-sm);
}

/* Ingredient lines table */
.recipe-ingredients-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
}

.recipe-ingredients-table th,
.recipe-ingredients-table td {
    padding: var(--space-1) var(--space-2);
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.recipe-ingredients-table th {
    font-weight: 600;
    color: var(--color-text-secondary);
    font-size: var(--text-xs);
    text-transform: uppercase;
}

.recipe-ingredients-table td:nth-child(n+2),
.recipe-ingredients-table th:nth-child(n+2) {
    text-align: right;
}

/* Inline quantity input in lines table */
.recipe-line-qty {
    width: 70px;
    text-align: right;
}

/* Quantity input in add-line row */
.recipe-qty-input {
    width: 80px;
}

/* Costing summary panel */
.recipe-costing-summary {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding: var(--space-3);
    background: var(--color-surface-raised);
    border-radius: var(--border-radius-md);
}

/* Compact costing in modal (horizontal) */
.recipe-costing-modal {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-3);
}

/* Stale cost warning bar */
.recipe-stale-indicator {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2);
    background: var(--color-warning-surface);
    border-radius: var(--border-radius-md);
}

/* Instruction steps (read-only details view) */
.recipe-steps {
    margin: var(--space-1) 0 0;
    padding-left: var(--space-5);
}

.recipe-steps li {
    margin-bottom: var(--space-1);
}

/* Step editor row (modal) */
.recipe-step-row {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-1);
}

.recipe-step-num {
    font-weight: 600;
    color: var(--color-text-secondary);
    min-width: 20px;
}

.recipe-step-row .form-input {
    flex: 1;
}

/* Steps section spacing */
.recipe-steps-section {
    margin-bottom: var(--space-3);
}

/* Add ingredient line controls */
.recipe-add-line {
    display: flex;
    align-items: flex-end;
    gap: var(--space-2);
    margin-top: var(--space-2);
}

.recipe-add-line .searchable-select-wrapper {
    flex: 1;
}

/* Change log entries */
.recipe-change-log {
    margin-top: var(--space-2);
}

.recipe-log-entry {
    padding: var(--space-1) 0;
    border-bottom: 1px solid var(--color-border-light);
    font-size: var(--text-xs);
}

/* Category and dietary checkbox groups */
.recipe-category-checkboxes,
.recipe-dietary-flags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.checkbox-inline {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--text-sm);
    cursor: pointer;
}
