* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: #17202a;
    background: #f7f9fb;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.4;
}

#main {
    width: min(1180px, calc(100vw - 32px));
    margin: 0 auto;
    padding: 20px 0 32px;
}

.top_nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
    background: #f7f9fb;
    border-bottom: 1px solid #d7dee8;
}

.top_nav a {
    color: #0b4b78;
    text-decoration: none;
}

.top_nav a:hover {
    text-decoration: underline;
}

.top_nav .brand,
.top_nav a[aria-current="page"] {
    font-weight: 700;
}

#top_body p {
    margin: 0 0 16px;
}

form {
    display: grid;
    gap: 6px;
    max-width: 760px;
}

label {
    font-weight: 700;
}

.input_row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

input[type="text"] {
    width: min(100%, 420px);
    height: 30px;
    padding: 4px 6px;
    border: 1px solid #b9c3cf;
    border-radius: 2px;
    font-size: 14px;
}

input[type="text"]:focus {
    outline: 3px solid rgba(59, 130, 246, 0.16);
    border-color: #3b82f6;
}

input[type="submit"],
input[type="button"] {
    height: 30px;
    padding: 6px 10px;
    border: 1px solid #d7dee8;
    border-radius: 6px;
    background: #efefef;
    color: #17202a;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1;
    appearance: none;
    -webkit-appearance: none;
}

input[type="submit"] {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
}

input[type="submit"]:hover {
    background: #1d4ed8;
}

#error {
    display: none;
    margin-top: 12px;
    color: #a6371a;
    overflow-wrap: anywhere;
}

#output {
    display: grid;
    gap: 22px;
    margin-top: 18px;
}

#output section {
    min-width: 0;
    overflow-x: auto;
}

h2 {
    margin: 0 0 6px;
    font-size: 17px;
    line-height: 1.2;
}

table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    background: #fff;
    border: 1px solid #d7dee8;
}

th,
td {
    padding: 7px 8px;
    border-bottom: 1px solid #e5e9f0;
    border-right: 1px solid #e5e9f0;
    vertical-align: top;
    text-align: left;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    word-break: break-word;
}

th {
    background: #edf2f7;
    font-size: 13px;
    font-weight: 700;
}

td {
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: 13px;
}

tr:last-child td {
    border-bottom: 0;
}

th:last-child,
td:last-child {
    border-right: 0;
}

#output_summary th:nth-child(1),
#output_summary td:nth-child(1),
#output_records th:nth-child(1),
#output_records td:nth-child(1),
#output_warnings th:nth-child(1),
#output_warnings td:nth-child(1) {
    width: 170px;
}

.status_found td:nth-child(3) {
    color: #146c2e;
    font-weight: 700;
}

.status_missing td:nth-child(3) {
    color: #6b7280;
    font-weight: 700;
}

.status_attention td:nth-child(3) {
    color: #a6371a;
    font-weight: 700;
}

@media (max-width: 720px) {
    #main {
        width: min(100vw - 20px, 1180px);
        padding-top: 12px;
    }

    input[type="text"] {
        width: 100%;
    }
}
