/* MinTrack LIMS — Component Styles
   Extracted from inline styles for consistency and maintainability.
   Patterns used 20+ times across benchtest.views.js */

/* ── Cards ── */
.bt-card {
    background: white;
    border-radius: 8px;
    padding: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* ── Section titles ── */
.bt-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.bt-section-title i {
    margin-right: 0.4rem;
}

/* ── KPI grids ── */
.bt-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.bt-kpi-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.bt-kpi-grid-6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

/* ── 2/3-column layouts ── */
.bt-cols-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.bt-cols-3 {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

/* ── Tag chips ── */
.bt-tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.6rem;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    font-weight: 600;
}

/* ── Discussion messages ── */
.bt-msg-row {
    display: flex;
    gap: 0.4rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.bt-msg-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e0e7ff;
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ── Work queue ── */
.bt-work-queue {
    border-radius: 10px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #1e3a5f 0%, #0d1b2a 100%);
    color: white;
}

/* ── Compact stat card (mirrors _compactStat helper) ── */
.bt-stat {
    background: white;
    border-radius: 6px;
    padding: 0.5rem 0.6rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bt-stat-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bt-stat-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: #333;
    line-height: 1.1;
}

.bt-stat-label {
    font-size: 0.55rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ── Staff grid ── */
.bt-staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.6rem;
}

.bt-staff-card {
    background: white;
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
    cursor: pointer;
    transition: box-shadow 0.15s, border-color 0.15s;
}

.bt-staff-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-color: #d0d5dd;
}

.bt-staff-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    font-weight: 700;
    flex-shrink: 0;
}

.bt-skill-badge {
    display: inline-block;
    font-size: 0.5rem;
    font-weight: 600;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
}

/* ── Resource section styling ── */
.bt-resource-metric {
    background: white;
    border-radius: 8px;
    padding: 0.75rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.bt-resource-metric:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ── Demand heatmap ── */
.bt-demand-row {
    display: grid;
    gap: 1px;
    background: #e5e7eb;
}

.bt-demand-cell {
    padding: 0.15rem;
    font-size: 0.5rem;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.1s;
    min-height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bt-demand-cell:hover {
    opacity: 0.7;
}

/* ── Bottleneck card ── */
.bt-bottleneck-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.65rem;
    cursor: pointer;
}

.bt-bottleneck-item:hover {
    background: #f8fafc;
}

.bt-bottleneck-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    flex-shrink: 0;
}
