* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f4f6f8;
    color: #172033;
    font-family: Arial, "Microsoft YaHei", sans-serif;
    font-size: 14px;
}

a {
    color: inherit;
    text-decoration: none;
}

input,
select,
button {
    font: inherit;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 28px;
    background: #172033;
    color: #fff;
}

.topbar h1,
.topbar p {
    margin: 0;
}

.topbar p {
    margin-top: 6px;
    color: #b7c0d1;
}

.container {
    width: min(1280px, calc(100% - 32px));
    margin: 24px auto;
}

.panel {
    margin-top: 16px;
    padding: 18px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(20, 35, 70, 0.08);
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.panel-head h2 {
    margin: 0;
    font-size: 18px;
}

.tabs {
    display: flex;
    gap: 10px;
}

.tabs a {
    padding: 10px 18px;
    border-radius: 999px;
    background: #e9edf5;
    color: #38445a;
}

.tabs a.active {
    background: #2563eb;
    color: #fff;
}

.filters {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

label {
    display: grid;
    gap: 7px;
    color: #526070;
}

input,
select {
    min-width: 180px;
    padding: 10px 12px;
    border: 1px solid #d6dce7;
    border-radius: 8px;
    background: #fff;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 14px;
    border: 0;
    border-radius: 8px;
    background: #e9edf5;
    color: #172033;
    cursor: pointer;
}

.btn-primary {
    background: #2563eb;
    color: #fff;
}

.btn-danger {
    background: #dc2626;
    color: #fff;
}

.btn-light {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    min-width: 1100px;
    border-collapse: collapse;
}

th,
td {
    padding: 12px 10px;
    border-bottom: 1px solid #eef1f5;
    text-align: left;
    vertical-align: top;
}

th {
    color: #526070;
    font-weight: 600;
    background: #fafbfc;
}

.mono {
    font-family: Consolas, Monaco, monospace;
}

.muted {
    color: #758195;
    word-break: break-all;
}

.note {
    max-width: 240px;
    word-break: break-all;
}

.empty {
    padding: 40px 10px;
    text-align: center;
    color: #758195;
}

.status {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    background: #e9edf5;
    color: #38445a;
    white-space: nowrap;
}

.status-0 {
    background: #fff7ed;
    color: #c2410c;
}

.status-1 {
    background: #ecfdf5;
    color: #047857;
}

.status-2 {
    background: #fef2f2;
    color: #b91c1c;
}

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

.alert {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 8px;
}

.alert-success {
    background: #ecfdf5;
    color: #047857;
}

.alert-error {
    background: #fef2f2;
    color: #b91c1c;
}

.login-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
}

.login-card {
    width: min(420px, calc(100% - 32px));
    padding: 28px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 18px 60px rgba(20, 35, 70, 0.16);
}

.login-card h1 {
    margin: 0 0 8px;
}

.login-card form {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

.login-card input,
.login-card button {
    width: 100%;
}
