* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f6f7;
    color: #222;
}

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

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #d9dde1;
    margin-bottom: 28px;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
}

.site-title {
    font-size: 1.25rem;
    font-weight: bold;
}

nav {
    display: flex;
    gap: 18px;
}

nav a {
    color: #333;
    text-decoration: none;
}

nav a:hover {
    text-decoration: underline;
}

h1 {
    margin-top: 0;
}

.card {
    background: #ffffff;
    border: 1px solid #d9dde1;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat {
    background: #ffffff;
    border: 1px solid #d9dde1;
    border-radius: 6px;
    padding: 18px;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    margin-top: 6px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

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

th {
    background: #eef0f2;
}

tbody tr:hover {
    background: #f7f8f9;
}

a {
    color: #1558a6;
}

.detail-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
}

.detail-grid > div {
    padding: 8px 0;
    border-bottom: 1px solid #eeeeee;
}

.detail-label {
    font-weight: bold;
}

.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.search-form input,
.search-form select {
    padding: 8px 10px;
    border: 1px solid #c7ccd1;
    border-radius: 4px;
}

.search-form input[type="text"] {
    min-width: 260px;
}

button {
    padding: 8px 14px;
    cursor: pointer;
}

.notice {
    background: #fff;
    border: 1px solid #d9dde1;
    border-left-width: 4px;
    padding: 14px;
    margin-bottom: 20px;
}

.notice-warning {
    background: #fff8e6;
    border-color: #d8aa3c;
}

.notice-warning strong {
    font-weight: 700;
}

.quick-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.button-link {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #b9bec4;
    border-radius: 4px;
    background: #ffffff;
    color: #1558a6;
    text-decoration: none;
}

.button-link:hover {
    background: #f0f2f4;
    text-decoration: none;
}

.button-secondary {
    color: #555;
}

th.text-right,
td.text-right {
    text-align: right !important;
}

.status-missing {
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    background: #fff0f0;
    border: 1px solid #ddbcbc;
}

.site-footer {
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid #d9dde1;
    color: #666;
    font-size: 0.9rem;
}

@media (max-width: 700px) {

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-label {
        padding-bottom: 0 !important;
    }

    .search-form {
        flex-direction: column;
    }

    .search-form input[type="text"] {
        min-width: 0;
        width: 100%;
    }

    table {
        font-size: 0.9rem;
    }
}