/* Reçete & Üretim (BOM) — envanter/görev panelleri ile hizalı */

.bom-hero-banner {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(168, 85, 247, 0.05));
    border: 1px solid rgba(139, 92, 246, 0.22);
    border-radius: 1rem;
    padding: 1rem 1.25rem;
}
.bom-hero-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 800;
}
.bom-hero-desc {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 52rem;
}
.bom-feature-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.bom-feature-chip {
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.55rem;
    border-radius: 9999px;
    background: var(--bg-elevated);
    border: 1px solid rgba(139, 92, 246, 0.25);
    color: #c4b5fd;
}

.bom-search-wrap { position: relative; }
.bom-search-clear {
    position: absolute;
    right: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--text-muted, #94a3b8);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
    cursor: pointer;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.bom-search-clear:hover {
    color: #c4b5fd;
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.35);
}
.bom-search-clear.hidden { display: none; }

.bom-recipe-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1rem;
}
@media (min-width: 768px) {
    .bom-recipe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
    .bom-recipe-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.bom-recipe-card {
    padding: 1.25rem 1.35rem;
    border-radius: 1rem;
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
    background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.bom-recipe-card:hover {
    border-color: rgba(139, 92, 246, 0.35);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}
.bom-recipe-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}
.bom-recipe-title {
    font-size: 1rem;
    font-weight: 900;
    margin: 0;
    line-height: 1.3;
}
.bom-recipe-badge {
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    background: rgba(139, 92, 246, 0.15);
    color: #c4b5fd;
    border: 1px solid rgba(139, 92, 246, 0.35);
    flex-shrink: 0;
}
.bom-recipe-badge-muted {
    background: rgba(251, 191, 36, 0.12);
    color: #fcd34d;
    border-color: rgba(251, 191, 36, 0.35);
}
.bom-ingredient-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.75rem;
    color: var(--text-muted, #94a3b8);
    flex: 1;
}
.bom-ingredient-list li {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.4rem 0;
    border-bottom: 1px dashed var(--border-subtle, rgba(255, 255, 255, 0.06));
}
.bom-ingredient-list li:last-child { border-bottom: none; }
.bom-recipe-actions {
    display: grid;
    grid-template-columns: 1fr 1fr auto auto;
    gap: 0.35rem;
    margin-top: auto;
    padding-top: 0.65rem;
    border-top: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
}
@media (max-width: 480px) {
    .bom-recipe-actions { grid-template-columns: 1fr 1fr; }
}
.bom-action-btn {
    padding: 0.5rem 0.55rem;
    border-radius: 0.55rem;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.bom-action-btn:hover { border-color: rgba(239, 68, 68, 0.4); color: #fecaca; }
.bom-action-btn-primary {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}
.bom-action-btn-warn {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.35);
    color: #fcd34d;
}
.bom-action-btn-violet {
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.35);
    color: #c4b5fd;
    grid-column: 1 / -1;
}

.bom-product-card {
    padding: 1.25rem 1.35rem;
    border-radius: 1rem;
    border: 1px dashed rgba(139, 92, 246, 0.28);
    background: rgba(139, 92, 246, 0.04);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 100%;
}
.bom-product-card .bom-recipe-title { color: var(--text-primary); }

.bom-empty-panel {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1.5rem;
    border-radius: 1rem;
    border: 1px dashed var(--border-subtle, rgba(255, 255, 255, 0.12));
    background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
    color: var(--text-muted);
}
.bom-empty-panel > i {
    font-size: 2.75rem;
    opacity: 0.3;
    margin-bottom: 1rem;
    display: block;
    color: #a78bfa;
}
.bom-empty-panel .bom-empty-cta i {
    font-size: 0.75rem;
    opacity: 1;
    margin-bottom: 0;
    display: inline;
    color: inherit;
}
.bom-empty-panel .bom-empty-cta {
    margin-top: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.bom-list-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.25rem 0;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    opacity: 0.75;
}
.bom-loading-msg {
    grid-column: 1 / -1;
    padding: 2rem;
    text-align: center;
}

.bom-kalem-row {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) 5rem 4.5rem auto;
    gap: 0.5rem;
    align-items: start;
    margin-bottom: 0.5rem;
}
@media (max-width: 640px) {
    .bom-kalem-row { grid-template-columns: 1fr; }
}

/* Aranabilir ürün seçici (mamul + hammadde) */
.bom-product-picker {
    position: relative;
    min-width: 0;
}
.bom-picker-search-wrap {
    position: relative;
}
.bom-picker-search {
    width: 100%;
    border-radius: 0.75rem;
    padding: 0.55rem 2rem 0.55rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 700;
}
.bom-picker-search:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}
.bom-picker-clear {
    position: absolute;
    right: 0.4rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: var(--text-muted, #94a3b8);
    background: transparent;
    border: none;
    cursor: pointer;
}
.bom-picker-clear:hover { color: #c4b5fd; }
.bom-picker-clear.hidden { display: none; }
.bom-picker-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.25rem);
    z-index: 120;
    max-height: 14rem;
    overflow-y: auto;
    border-radius: 0.75rem;
    border: 1px solid rgba(139, 92, 246, 0.35);
    background: var(--bg-card, #0f172a);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.bom-picker-dropdown.hidden { display: none; }
.bom-picker-option {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.55rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
    cursor: pointer;
    line-height: 1.35;
}
.bom-picker-option:last-child { border-bottom: none; }
.bom-picker-option:hover:not(:disabled),
.bom-picker-option.bom-picker-option-active {
    background: rgba(139, 92, 246, 0.12);
    color: #ddd6fe;
}
.bom-picker-option:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.bom-picker-option-meta {
    display: block;
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--text-muted, #94a3b8);
    margin-top: 0.15rem;
}
.bom-picker-empty {
    padding: 0.75rem;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted, #94a3b8);
}
.bom-picker-hint {
    margin-top: 0.25rem;
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--text-muted, #94a3b8);
}
.bom-picker-hint.bom-picker-hint-warn { color: #fcd34d; }
