
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: sans-serif;
    background: #f5f6f8;
    color: #333;
}

.site-header {
    background: #bf0000;
    color: white;
    padding: 22px 20px;
}

.site-header h1 {
    margin: 0;
    font-size: 25px;
}

.site-header p {
    margin: 8px 0 0;
    font-size: 14px;
}

.container {
    max-width: 1600px;
    margin: 25px auto;
    padding: 0 18px;
}

.search-panel {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.search-panel form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 220px;
}

.form-group label {
    font-weight: bold;
    font-size: 14px;
}

.form-group select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 15px;
    background: white;
}

.page-heading {
    margin-bottom: 15px;
}

.page-heading h2 {
    margin-bottom: 5px;
}

.page-heading p {
    color: #666;
    font-size: 14px;
    margin: 5px 0;
}

.table-scroll {
    overflow-x: auto;
    background: white;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.history-table {
    border-collapse: collapse;
    min-width: 100%;
    width: max-content;
}

.history-table th,
.history-table td {
    border: 1px solid #ddd;
    padding: 8px;
    vertical-align: top;
}

.history-table thead th {
    background: #eee;
    text-align: center;
    min-width: 150px;
    position: sticky;
    top: 0;
    z-index: 2;
}

.history-table .time-heading {
    min-width: 90px;
    background: #555;
    color: white;
    position: sticky;
    left: 0;
    z-index: 4;
}

.history-table .time-cell {
    background: #f0f0f0;
    text-align: center;
    min-width: 90px;
    white-space: nowrap;
    position: sticky;
    left: 0;
    z-index: 1;
}

.product-cell {
    width: 150px;
    min-width: 150px;
    max-width: 150px;
    text-align: center;
    background: white;
}

.product-cell a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    color: #333;
    text-decoration: none;
}

.product-cell a:hover {
    color: #bf0000;
}

.product-cell img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.product-name {
    font-size: 12px;
    line-height: 1.5;
    text-align: left;
    overflow-wrap: anywhere;
}

.product-price {
    color: #bf0000;
    font-size: 14px;
    font-weight: bold;
}

.no-item {
    color: #999;
    font-size: 12px;
}

.empty-message {
    background: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}

.site-footer {
    margin-top: 50px;
    padding: 20px;
    background: #333;
    color: white;
    text-align: center;
    font-size: 13px;
}

@media (max-width: 600px) {
    .site-header h1 {
        font-size: 21px;
    }

    .container {
        padding: 0 10px;
    }

    .search-panel {
        padding: 14px;
    }

    .form-group {
        width: 100%;
    }
}
