
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.deduct-button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    gap: 10px;
}
.small {
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    background-color: #f4f6f9;
    border: 1px solid #e0e0e0;
    transition: background-color 0.2s;
    flex-grow: 1;
}
.small:hover:enabled {
    background-color: #e0e0e0;
}
.small:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}
/* 扣分记录表格样式 */
.deduction-table-container {
    margin-top: 20px;
    text-align: left;
    max-height: 250px; /* 限制表格高度，防止占用过多空间 */
    overflow-y: auto; /* 允许垂直滚动 */
    border: 1px solid #e0eeef;
    border-radius: 8px;
}
.deduction-table {
    width: 100%;
    border-collapse: collapse;
}
.deduction-table th, .deduction-table td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}
.deduction-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    position: sticky; /* 表头固定 */
    top: 0;
    z-index: 10;
}
.deduction-table td button {
    background: none;
    border: none;
    color: #dc3545; /* Bootstrap danger color */
    cursor: pointer;
    font-weight: bold;
    padding: 0 5px;
    transition: color 0.2s;
}
.deduction-table td button:hover {
    color: #a71d2a;
}
