body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", sans-serif;
    background-color: #f5f5f5;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #2a7ade;
    color: #fff;
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
}

.top-bar-right a {
    color: #fff;
    margin-left: 15px;
    text-decoration: none;
}

.top-user {
    margin-right: 10px;
}

.main-container {
    padding: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

th {
    background-color: #f0f4ff;
}

.filters, .summary, .chart-section, .shop-form, .shop-list {
    margin-bottom: 20px;
}

.filters form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.filters-left {
    flex: 1 1 auto;
    min-width: 260px;
}

.filters-right {
    flex: 1 1 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.filters form label {
    margin-right: 0;
}

.filters select,
.filters button {
    padding: 4px 8px;
}

.date-range-bar {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: 1px solid #d0d7e7;
    border-radius: 4px;
    padding: 4px;
}

.range-tabs {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.range-tab {
    border: none;
    background: transparent;
    padding: 4px 10px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    border-radius: 3px;
}

.range-tab.active {
    background: #2a7ade;
    color: #fff;
}

.custom-range {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding-left: 8px;
    border-left: 1px solid #e0e4f0;
    gap: 4px;
}

.custom-range input[type="date"] {
    padding: 3px 6px;
    border: 1px solid #d0d7e7;
    border-radius: 3px;
    font-size: 13px;
    background: #fff;
}

.range-sep {
    padding: 0 4px;
    color: #666;
    font-size: 13px;
}

.latest-col {
    max-width: 260px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chart-scroll {
    overflow-x: auto;
    background: #fff;
    padding: 12px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.chart-header button {
    padding: 4px 10px;
    font-size: 13px;
}

#salesChart {
    min-width: 800px;
    height: 260px;
}

.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-color: #f5f5f5;
}

.login-box {
    background: #fff;
    padding: 30px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: 320px;
}

.login-box h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

.login-box label {
    display: block;
    margin-bottom: 10px;
}

.login-box input {
    width: 100%;
    padding: 6px 8px;
    margin-top: 4px;
}

.login-box button {
    width: 100%;
    padding: 8px;
    margin-top: 10px;
    background-color: #2a7ade;
    border: none;
    color: #fff;
    cursor: pointer;
}

.error {
    color: #c00;
    margin-bottom: 8px;
}

.hint {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
}

.pagination {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.pagination a {
    padding: 4px 10px;
    border: 1px solid #d0d7e7;
    border-radius: 4px;
    background: #fff;
    text-decoration: none;
    color: #2a7ade;
    font-size: 13px;
}

.pagination span {
    font-size: 13px;
    color: #555;
}

@import url("account.css");
