/* ---- Material Tracking (Business only) ---- */

.material-order-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.material-order-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-lg);
    padding: 14px;
    cursor: pointer;
    text-align: left;
    width: 100%;
    font-family: inherit;
    color: inherit;
}

.material-order-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--ui-primary-muted);
    color: var(--ui-primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.material-order-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.material-order-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--app-text);
}

.material-order-sub {
    font-size: 0.8rem;
    color: var(--app-text-muted);
}

.material-order-trailing {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    color: var(--app-text-muted);
}

.material-order-date {
    font-size: 0.8rem;
    color: var(--app-text-muted);
    white-space: nowrap;
}

/* Status labels (plain colored text, matching the mock) */

.material-status-badge {
    font-size: 0.8rem;
    font-weight: 700;
}

.material-status-badge--ordered {
    color: #f5be58;
}

.material-status-badge--intransit {
    color: var(--ui-primary);
}

.material-status-badge--delivered {
    color: #6fd67f;
}

.material-status-badge--inactive {
    display: inline-flex;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(248, 113, 113, 0.15);
    color: var(--ui-danger);
    font-size: 0.68rem;
    font-weight: 700;
}

/* Stat tile captions */

.material-stat-caption {
    margin: 4px 0 0;
    font-size: 0.78rem;
    color: var(--app-text-muted);
}

.material-stat-caption--positive {
    color: #6fd67f;
}

.material-inactive-notice {
    background: rgba(248, 113, 113, 0.12);
    color: var(--ui-danger);
    border-radius: var(--app-radius);
    padding: 10px 14px;
    font-size: 0.85rem;
    margin-bottom: 16px;
}

/* Used In list */

.material-usedin-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.material-usedin-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-lg);
    padding: 12px 14px;
    cursor: pointer;
    text-align: left;
    width: 100%;
    font-family: inherit;
    color: var(--app-text-muted);
}

.material-usedin-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.material-usedin-job {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--app-text);
}

.material-usedin-invoice {
    font-size: 0.78rem;
    color: var(--app-text-muted);
}
