body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}

header {
    background-color: #555;
    color: #fff;
    padding: 1em 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    flex-wrap: wrap;
}

.admin-title {
    margin: 0;
    font-size: 1.3em;
    text-align: left;
}

.top-buttons-container {
    display: flex;
    gap: 10px;
}

.top-button {
    background-color: #28a745;
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s ease;
}

.top-button:hover {
    background-color: #218838;
}

main {
    padding: 20px;
}

section {
    margin-bottom: 20px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h2 {
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

#filters .filter-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    align-items: end;
}

#filters label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 0.9em;
}

#filters input[type="date"],
#filters input[type="text"],
#filters select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

#filters button {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: white;
    height: 38px;
}

#apply-filters {
    background-color: #007bff;
}
#apply-filters:hover {
    background-color: #0056b3;
}

#reset-filters {
    background-color: #6c757d;
}
#reset-filters:hover {
    background-color: #5a6268;
}

#sales-records h2 {
    margin-bottom: 10px;
}

#summary-totals {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #e9ecef;
    border-radius: 4px;
    display: flex;
    justify-content: space-around;
    font-weight: bold;
}

#summary-totals span {
    color: #007bff;
}

#download-all-sales {
    background-color: #28a745;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 15px;
}

#download-all-sales:hover {
    background-color: #218838;
}

#sales-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

#sales-table th,
#sales-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

#sales-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

#sales-table tbody tr:nth-child(even) {
    background-color: #f
