.pagedb-content {padding:10px;}
/* CSS cho thống kê giải đặc biệt theo năm */
.statistics-filter {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.filter-row {
    display: flex;
    gap: 20px;
    align-items: end;
    flex-wrap: wrap;
}

.form-group {
    display: flex;
    flex-direction: column;
    min-width: 200px;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.form-control {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.button-row {
    margin-top: 15px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.statistics-summary {
}

.bg_red {
    background-color: #dc3545;
    color: white;
}

.pad10-5 {
    padding: 10px 5px;
    text-align: center;
    margin: 0;
    border-radius: 4px;
}

.table-responsive {
    overflow-x: auto;
    margin-bottom: 20px;
}

#dbyear-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

#dbyear-table th, #dbyear-table td {
    border: 1px solid #ddd;
    padding: 4px;
    text-align: center;
    vertical-align: middle;
}
#dbyear-table th:first-child, #dbyear-table td:first-child {width:10px}
#dbyear-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #333;
}

.day-header {
    background-color: #e9ecef !important;
    font-weight: bold;
    position: sticky;
    left: 0;
    z-index: 5;
}

.has-result {
    background-color: #ffe8fc;
    border-color: #c3e6cb;
}

.no-result {
    background-color: #f8f9fa;
    color: #6c757d;
}

.empty-cell {
    background-color: #e9ecef;
    color: #6c757d;
}

.prize-info {
    display: flex;
    flex-direction: column;
    font-size: 10px;
}

.special-prize {
    font-weight: bold;
    color: #dc3545;
    font-size: 11px;
}

.last-digits {
    color: #007bff;
    padding: 1px 3px;
    border-radius: 2px;
    font-weight: bold;
}

.sum-total {
    color: #28a745;
    font-weight: bold;
    font-size: 9px;
}

.no-data {
    color: #6c757d;
    font-size: 14px;
}

.summary-stats {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

.stats-row {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.stat-label {
    font-weight: bold;
    color: #333;
}

.stat-value {
    font-size: 18px;
    font-weight: bold;
    color: #dc3545;
}

/* Responsive */
@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-group {
        min-width: auto;
    }
    
    #dbyear-table {
        font-size: 10px;
    }
    
    #dbyear-table th,
    #dbyear-table td {
        padding: 2px;
    }
            
    .stats-row {
        flex-direction: column;
        gap: 15px;
    }
}

/* Hover effects */
#dbyear-table td.has-result:hover {
    background-color: #c3e6cb;
    cursor: pointer;
}

#dbyear-table td[title]:hover {
    position: relative;
}
