* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    background: #f1f6fb;
    color: #13243a;
}

.container {
    width: min(1120px, 94vw);
    margin: 1.5rem auto;
}

.card {
    background: #fff;
    border: 1px solid #d7e3f1;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(14, 57, 96, 0.08);
    padding: 1rem;
    margin-bottom: 1rem;
}

h1,
h2,
h3 {
    margin: 0.2rem 0 0.8rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid #c4d6e8;
    border-radius: 10px;
    padding: 0.65rem 0.75rem;
    font: inherit;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.8rem;
}

button,
.btn {
    border: 0;
    border-radius: 10px;
    padding: 0.55rem 0.85rem;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #0f4c81;
    color: #fff;
}

.btn-danger {
    background: #c13730;
    color: #fff;
}

.btn-muted {
    background: #e7f0f8;
    color: #163250;
}

.notice {
    padding: 0.8rem 0.95rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.notice-ok {
    background: #d9f5df;
    color: #1b5c2b;
}

.notice-warn {
    background: #fff2d8;
    color: #875f19;
}

.table-wrap {
    overflow: auto;
}

table {
    border-collapse: collapse;
    width: 100%;
    min-width: 720px;
}

th,
td {
    border-bottom: 1px solid #d7e3f1;
    padding: 0.6rem;
    vertical-align: top;
    text-align: left;
}

.small {
    font-size: 0.88rem;
    color: #50647a;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.login {
    width: min(460px, 94vw);
    margin: 6vh auto;
}

@media (max-width: 900px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}
