/* ============================================================================
   Apothecary Wizard — Scheduler Styles
   Curing rack, priority queue, progress bars, shelf display
   Dark old-world aesthetic with antique gold accents
   ============================================================================ */

/* Priority queue table */
.scheduler-queue {
    margin-bottom: var(--space-3);
}

.scheduler-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr;
    gap: var(--space-1);
    align-items: center;
    padding: var(--space-1) var(--space-2);
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--text-primary);
}

.scheduler-row.header {
    background: var(--forest-850);
    font-weight: 600;
    color: var(--gold-300);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 1px solid var(--border-gold);
}

.scheduler-row.emergency {
    background: var(--error-bg);
    border-left: 4px solid var(--error);
}

.scheduler-row:hover:not(.header) {
    background: rgba(196,160,82,0.04);
}

.scheduler-row .recipe-name {
    font-weight: 600;
    color: var(--gold-200);
}

.scheduler-row .stock-value {
    font-weight: 600;
    color: var(--gold-300);
}

.scheduler-row .profit-value {
    color: var(--success);
    font-weight: 600;
}

@media (max-width: 768px) {
    .scheduler-row {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-1);
    }
    .scheduler-row.header { display: none; }
    .scheduler-row::before {
        content: attr(data-label);
        display: block;
        font-size: 0.7rem;
        text-transform: uppercase;
        color: var(--text-muted);
    }
}

/* Curing rack */
.curing-rack {
    background: var(--forest-850);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-3);
}

.shelf {
    margin-bottom: var(--space-3);
}

.shelf-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gold-500);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: var(--space-1);
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border-gold);
}

.shelf-items {
    display: flex;
    gap: var(--space-2);
    overflow-x: auto;
    padding: var(--space-1) 0;
}

.batch-card {
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: var(--space-1) var(--space-2);
    min-width: 210px;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
}

.batch-card:hover {
    border-color: var(--border-gold);
    box-shadow: var(--shadow-md);
}

.batch-card .batch-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gold-200);
    margin-bottom: 4px;
    font-family: var(--font-serif);
}

.batch-card .batch-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.batch-card .batch-progress { margin-top: var(--space-1); }

.batch-card .batch-progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.batch-card .batch-actions {
    margin-top: var(--space-1);
    display: flex;
    gap: 6px;
}

/* Empty shelf */
.shelf-empty {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-style: italic;
    padding: var(--space-2);
    text-align: center;
    border: 2px dashed var(--border-strong);
    border-radius: var(--radius);
    background: rgba(0,0,0,0.15);
}

/* Shopping list */
.shopping-list {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-3);
}

.shopping-list-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: var(--space-1);
    align-items: center;
    padding: var(--space-1) 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--text-primary);
}

.shopping-list-item:last-child { border-bottom: none; }

.shopping-list-item .shortfall {
    color: var(--error);
    font-weight: 600;
}
