* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f4f7fa;
    color: #172b3a;
    font-family: system-ui, "Microsoft JhengHei", sans-serif;
}

main {
    max-width: 1000px;
    margin: 36px auto;
    padding: 0 18px;
}

h1 {
    font-size: 1.9rem;
}

h2 {
    font-size: 1.25rem;
    margin-top: 26px;
}

section, .employee-card {
    background: #fff;
    padding: 22px;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 2px 12px #172b3a0b;
}

label {
    display: block;
    font-weight: 700;
    margin-bottom: 12px;
}

input {
    max-width: 100%;
}

.buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

button {
    background: #146a77;
    color: white;
    border: 0;
    border-radius: 7px;
    padding: 11px 18px;
    cursor: pointer;
    font-size: 1rem;
}

button:disabled {
    background: #a7b2b6;
    cursor: not-allowed;
}

#status {
    white-space: pre-line;
}

#metrics {
    font-weight: 700;
    color: #146a77;
}

.employee-card h3 {
    margin: 0 0 8px;
    font-size: 1.2rem;
}

.employee-counts {
    color: #526875;
    margin-bottom: 14px;
}

.scroll {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e0e8ec;
}

th {
    background: #eaf3f5;
}

tbody tr:nth-child(even) {
    background: #fafcfd;
}

.number {
    text-align: right;
}

.total-row {
    font-weight: 700;
    background: #eaf3f5;
}

.original-details {
    margin-top: 26px;
}

.original-details summary {
    cursor: pointer;
    font-weight: 700;
    margin-bottom: 12px;
}
