/* 股票复盘系统 - 自定义样式 */

body {
    background-color: #f8f9fa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

.navbar-brand {
    font-weight: 700;
}

.table th {
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
}

.table td {
    vertical-align: middle;
}

.badge {
    font-weight: 500;
}

.modal-content {
    border-radius: 12px;
}

.pagination .page-link {
    border-radius: 4px;
    margin: 0 2px;
}

/* 动态行样式 */
.holding-row, .missed-row, .watch-row {
    background: #fafbfc;
    border-radius: 4px;
    padding: 4px 0;
}

/* 股票联想下拉面板 */
.stock-ac-dropdown {
    position: absolute;
    z-index: 1050;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    max-height: 260px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.stock-ac-dropdown .ac-item {
    padding: 6px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.875rem;
}

.stock-ac-dropdown .ac-item:hover,
.stock-ac-dropdown .ac-item.active {
    background-color: #e9ecef;
}

.stock-ac-dropdown .ac-item:last-child {
    border-bottom: none;
}

/* 自选股分组样式 */
.group-list .list-group-item {
    cursor: pointer;
    padding: 0.5rem 0.75rem;
}

.group-list .list-group-item.active {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.group-list .list-group-item:hover:not(.active) {
    background-color: #f0f0f0;
}

.group-actions {
    display: none;
}

.group-list .list-group-item:hover .group-actions {
    display: inline-flex;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .col-md-3.col-6 {
        margin-bottom: 0.5rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .card-body h6 {
        font-size: 0.8rem;
    }
    
    .stock-ac-dropdown {
        max-height: 200px;
    }
}
