/**
 * Commesse List Page Styles
 * Taiga-Helper Design System
 *
 * Note: Filter bar, multiselect, active filters, pagination, and page-header
 * styles are in components.css
 */

/* ============================================
   Table Container
   ============================================ */
.table-container {
    background: var(--color-bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow-x: auto;
}

/* ============================================
   Commesse Table
   ============================================ */
.commesse-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-md);
}

.commesse-table th,
.commesse-table td {
    padding: var(--space-3);
    text-align: left;
    border-bottom: 1px solid var(--color-border-light);
}

.commesse-table th {
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-muted);
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--color-bg-section);
    white-space: nowrap;
}

.commesse-table th.sortable {
    cursor: pointer;
    user-select: none;
}

.commesse-table th.sortable:hover {
    background: var(--color-bg-hover);
}

.commesse-table th.sortable::after {
    content: ' \2195';
    opacity: 0.3;
}

.commesse-table th.sort-asc::after {
    content: ' \2191';
    opacity: 1;
}

.commesse-table th.sort-desc::after {
    content: ' \2193';
    opacity: 1;
}

.commesse-table tbody tr {
    cursor: pointer;
    transition: all var(--transition-fast);
}

.commesse-table tbody tr:hover {
    background: var(--color-bg-accent);
}

.commesse-table a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
}

.commesse-table a:hover {
    text-decoration: underline;
}

/* ============================================
   Stato Badge
   ============================================ */
.stato-badge {
    display: inline-block;
    padding: 2px var(--space-2);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: white;
    white-space: nowrap;
}

/* ============================================
   Team Badges
   ============================================ */
.team-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
}

.team-badge {
    display: inline-block;
    padding: 2px 6px;
    background: var(--color-bg-accent);
    color: var(--color-primary);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    min-width: 1.2rem;
    text-align: center;
}

/* ============================================
   Discipline Badges
   ============================================ */
.discipline-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
}

.discipline-badge {
    display: inline-block;
    padding: 2px 6px;
    background: var(--color-bg-section);
    color: var(--color-text-tertiary);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
}

/* ============================================
   Progress Bar
   ============================================ */
.progress-cell {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.progress-bar-mini {
    flex: 1;
    height: 6px;
    background: var(--color-bg-section);
    border-radius: var(--radius-sm);
    overflow: hidden;
    min-width: 50px;
}

.progress-bar-fill {
    height: 100%;
    background: var(--color-status-ok);
    border-radius: var(--radius-sm);
    transition: width var(--transition-slow);
}

.progress-value {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    min-width: 35px;
    text-align: right;
}
