* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: #f3f6fb;
    color: #17243b;
    font: 14px/1.5 system-ui, "Microsoft YaHei", sans-serif
}

main {
    max-width: 1500px;
    margin: auto;
    padding: 42px 32px
}

header,
.toolbar,
footer,
.actions,
.filters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap
}

.eyebrow {
    font-size: 11px;
    letter-spacing: 2px;
    color: #2864d8;
    font-weight: 700
}

h1 {
    font-size: 34px;
    margin: 6px 0
}

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

p {
    margin: 4px 0;
    color: #65738a
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 30px 0
}

.stats article,
.panel {
    background: white;
    border: 1px solid #e1e7f0;
    border-radius: 14px;
    box-shadow: 0 3px 15px #203c7010
}

.stats article {
    padding: 22px;
    color: #65738a
}

.stats strong {
    display: block;
    color: #17243b;
    font-size: 32px;
    margin-top: 8px
}

.toolbar,
footer {
    padding: 20px
}

.table-wrap {
    overflow: auto
}

table {
    border-collapse: collapse;
    width: 100%;
    text-align: left
}

th,
td {
    padding: 15px 16px;
    border-bottom: 1px solid #e9edf4;
    vertical-align: top
}

th {
    font-size: 12px;
    background: #f7f9fc;
    color: #63738c;
    white-space: nowrap
}

td:nth-child(1) {
    font-weight: 650;
    min-width: 80px
}

td:nth-child(4),
td:nth-child(3) {
    white-space: nowrap
}

td:nth-child(7) {
    min-width: 150px
}

button,
.button,
input,
select {
    font: inherit;
    border-radius: 8px;
    padding: 10px 14px;
    border: 1px solid #dce4ef
}

button,
.button {
    width: max-content;
    background: #2563eb;
    color: white;
    border: 0;
    text-decoration: none;
    cursor: pointer;
    font-weight: 600
}

.secondary {
    background: #eef2f8;
    color: #324762
}

button:disabled {
    opacity: .45;
    cursor: default
}

input,
select {
    background: white;
    color: #17243b
}

input {
    width: 265px;
    max-width: 100%
}

.danger {
    background: #fff1f2;
    color: #b42336;
    padding: 5px 10px
}

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

.chip {
    display: inline-block;
    background: #eaf1ff;
    color: #2455aa;
    border-radius: 6px;
    padding: 3px 8px
}

@media(max-width:750px) {
    main {
        padding: 22px 14px
    }

    .stats {
        grid-template-columns: repeat(2, 1fr)
    }

    .filters {
        width: 100%
    }

    input {
        flex: 1;
        min-width: 150px
    }
}