/* R19 · 打样管理列表（production/sample_list）— B/C/D 壳 + 卡片 A 区 */

.standard-page.prod-sample-list-page {
    background-color: #f8fafc;
}

.prod-sample-list-page .prod-sample-view-switch {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.prod-sample-list-page .prod-sample-view-switch-label {
    font-size: 13px;
    color: #6b7280;
}

.prod-sample-list-page .prod-sample-view-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    background: #fff;
    color: #374151;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.prod-sample-list-page .prod-sample-view-btn.is-active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.prod-sample-list-page .prod-sample-empty {
    padding: 48px;
    text-align: center;
    color: #9ca3af;
}

/* —— A 区：样衣卡片 + 15 工序网格（结构不动，仅外迁样式） —— */
.prod-sample-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.prod-sample-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s;
}

.prod-sample-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.prod-sample-card-cover {
    height: 120px;
    background: #f1f3f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prod-sample-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prod-sample-card-cover-placeholder {
    color: #999;
    font-size: 14px;
}

.prod-sample-card-cover-placeholder.is-hidden {
    display: none;
}

.prod-sample-card-body {
    padding: 10px 12px;
    flex: 1;
}

.prod-sample-card-no {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.prod-sample-card-linked {
    font-size: 12px;
    color: #064e3b;
    font-weight: 500;
    margin-bottom: 4px;
}

.prod-sample-card-meta {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.prod-sample-card-lines {
    font-size: 11px;
    color: #4b5563;
    margin-bottom: 6px;
    line-height: 1.35;
    max-height: 2.7em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.prod-sample-card-progress-bar-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.prod-sample-progress-bar {
    flex: 1;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.prod-sample-progress-bar .fill {
    display: block;
    height: 100%;
    background: #10b981;
    transition: width 0.3s;
}

.prod-sample-progress-text {
    font-size: 11px;
    color: #6b7280;
    min-width: 45px;
}

.prod-sample-list-lines-cell {
    max-width: 240px;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prod-sample-card-worker {
    font-size: 11px;
    color: #999;
    margin-bottom: 8px;
}

.prod-sample-card-stage {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #374151;
    margin-bottom: 6px;
}

.prod-sample-card-stage-badge {
    display: inline-flex;
    align-items: center;
    padding: 1px 8px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-weight: 600;
    line-height: 1.6;
}

.prod-sample-step-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 3px;
    margin-bottom: 8px;
}

.prod-sample-step-tag {
    padding: 4px 2px;
    font-size: 10px;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid #e5e7eb;
    background: #f3f4f6;
    color: #6b7280;
    transition: all 0.2s;
}

.prod-sample-step-tag:hover {
    background: #e5e7eb;
}

.prod-sample-step-tag.done {
    background: #dcfce7;
    border-color: #86efac;
    color: #166534;
}

.prod-sample-step-tag.done:hover {
    background: #bbf7d0;
}

.prod-sample-step-tag.readonly {
    cursor: default;
}

.prod-sample-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 12px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.prod-sample-progress-bar-mini-inline {
    display: inline-block;
    width: 60px;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    vertical-align: middle;
    margin-right: 6px;
}

.prod-sample-progress-bar-mini-inline .fill {
    height: 100%;
    background: #10b981;
    transition: width 0.3s;
}

.prod-sample-list-view {
    margin-top: 12px;
}
