/* JANコード参照表ページ専用スタイル */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #3498db;
}

header h1 {
    margin: 0;
    color: #2c3e50;
    font-size: 24px;
}

.filter-panel {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    flex-wrap: wrap;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.search-input {
    width: 100%;
    padding: 10px 40px 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.clear-search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clear-search-btn:hover {
    background: #c0392b;
}

.filter-select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.table-container {
    overflow-x: auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

th {
    background: #3498db;
    color: white;
    padding: 12px 8px;
    text-align: left;
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 10;
    border: 1px solid #2980b9;
}

td {
    padding: 10px 8px;
    border: 1px solid #ddd;
    background: white;
}

tr:nth-child(even) td {
    background: #f9f9f9;
}

tr:hover td {
    background: #e3f2fd !important;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
}

.statistics {
    margin-top: 20px;
    padding: 10px;
    background: #ecf0f1;
    border-radius: 4px;
    text-align: center;
    color: #34495e;
}

.jan-code {
    font-family: monospace;
    font-size: 14px;
    font-weight: bold;
    color: #27ae60;
}

.empty-results {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
}

.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    padding: 15px;
}

.btn-pagination {
    padding: 8px 16px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn-pagination:hover:not(:disabled) {
    background: #2980b9;
}

.btn-pagination:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

.page-info {
    color: #34495e;
    font-weight: bold;
}

.toast {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #2c3e50;
    color: white;
    padding: 15px 20px;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1000;
    min-width: 200px;
}

.toast-error {
    background: #e74c3c;
}

.toast-success {
    background: #27ae60;
}

.toast-info {
    background: #3498db;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .filter-panel {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-input-wrapper {
        width: 100%;
    }
    
    table {
        font-size: 11px;
    }
    
    th, td {
        padding: 8px 4px;
    }
}

