body {
    background-color: #f5f6f8;
}

.card {
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.summary-card .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6c757d;
}

.summary-card .value {
    font-size: 1.5rem;
    font-weight: 600;
}

th.sortable {
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
}

th.sortable .sort-icon {
    opacity: 0.35;
    font-size: 0.7rem;
    margin-left: 4px;
}

th.sortable.sort-active .sort-icon {
    opacity: 1;
}

#stocksTable td, #stocksTable th {
    white-space: nowrap;
    vertical-align: middle;
}

#stocksTable tbody tr:hover {
    background-color: #f0f4ff;
}

.company-link {
    font-weight: 500;
    text-decoration: none;
}

.company-link:hover {
    text-decoration: underline;
}

#tableLoading {
    display: none;
}

.filter-card .form-label {
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.condition-row {
    background-color: #f8f9fb;
}

.condition-row select {
    width: auto;
    flex: 0 0 auto;
    min-width: 110px;
}

.condition-row .cond-metric {
    min-width: 70px;
    font-weight: 600;
}

.condition-row .cond-op {
    min-width: 64px;
    text-align: center;
}

.condition-row .cond-match {
    min-width: 150px;
}

.condition-row .cond-match-label {
    white-space: nowrap;
}

.condition-row .cond-remove {
    line-height: 1;
}
