* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

body {
    background: white;
    color: #333;
    line-height: 1.6;
    padding-top: 60px;
}

.container {
    max-width: 1800px;
    margin: 20px auto;
    background: white;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

#topNav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to bottom right, #f0f0f0, #fafafa);
    padding: 12px 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

#topNav::-webkit-scrollbar {
    display: none;
}

#topNav .nav-container {
    display: flex;
    margin: 0 auto;
    padding: 0 20px;
    min-width: max-content;
}

#topNav a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 10px;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

#topNav a:hover {
    background: rgba(123, 104, 238, 0.3);
}

table {
    width: 100%;
    min-width: 1000px;
    border-collapse: collapse;
    font-size: 14px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    background: white;
}

table a {
    font-size: 15px;
    padding: 2px 4px;
    margin: 2px 0;
    color: #1a73e8;
    word-break: break-word;
    line-height: 1.4;
    text-decoration: none;
}

th,
td {
    text-align: center;
    padding: 10px;
    border-bottom: 1px solid #dee2e6;
}

th {
    background: #1976d2;
    color: white;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 13px;
    position: sticky;
    top: 0;
}

tr:nth-child(even) {
    background-color: #f5f9ff;
}

tr:hover {
    background-color: rgba(123, 104, 238, 0.2);
}

.help-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.help-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 600px;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    max-height: 80vh;
    overflow-y: auto;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 30px;
    background: none;
    border: none;
    font-size: 33px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #f00;
}

.help-content {
    margin-top: 20px;
    line-height: 1.6;
    color: #333;
}

.help-content h2 {
    color: #2c3e50;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.help-content ul {
    padding-left: 20px;
}

.help-content li {
    margin-bottom: 10px;
}

.help-btn {
    background-color: #1976d2;
    color: white;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin-left: 5px;
    font-weight: bold;
    letter-spacing: 1px;
}

.help-btn:hover {
    background-color: #3a5a80;
    transform: translateY(2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.help-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

#loadingRow td {
	text-align: center;
	padding: 10px;
	font-size: 14px;
	color: #555;
	background-color: #f1f1f1;
}

a {
	color: #007bff;
	text-align: center;
	text-decoration: none;
}

@media (max-width: 768px) {
    table {
        font-size: 14px;
    }

    th,
    td {
        padding: 8px;
    }

    td:nth-child(1),
    th:nth-child(1),
    td:nth-child(5),
    th:nth-child(5) {
        min-width: 100px;
    }

    td:nth-child(9) {
        min-width: 250px;
    }

    td:nth-child(10),
    th:nth-child(10) {
        display: none;
    }

    td:first-child div {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    td:first-child div a {
        margin-top: 5px;
        display: block;
    }

    td:nth-child(9) .material-line {
        margin-bottom: 3px;
        line-height: 1.3;
    }

    .help-btn {
        width: 100%;
        margin: 10px 0 0 0;
    }

}

@media (min-width: 769px) {
    td:nth-child(1),
    th:nth-child(1) {
        min-width: 120px;
        font-size: 16px;
    }

    td:nth-child(5),
    th:nth-child(5) {
        min-width: 100px;
        font-size: 16px;
    }

    td:first-child div {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    td:first-child div a {
        margin-top: 5px;
    }

    td:nth-child(9) .material-line {
        margin-bottom: 4px;
        line-height: 1.3;
    }
}

.loading {
    text-align: center;
    padding: 20px;
    font-size: 18px;
    color: #888;
}

.hidden {
    display: none;
}

.material-column {
    font-size: 14px;
}

.material-line {
    display: block;
    margin-bottom: 4px;
    line-height: 1.3;
}

select option[disabled] {
    background-color: #97e075;
    color: #002b00;
    font-weight: bold;
}

.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
    flex-wrap: wrap;
}

.controls > div {
    flex: 1 1 200px;
}

.controls input[type="text"],
.controls select {
    width: 100%;
    padding: 8px;
}