* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f6f8;
    color: #1c1f23;
}

.container {
    max-width: 980px;
    margin: 32px auto;
    padding: 0 16px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #121826;
    color: #fff;
    padding: 12px 16px;
    flex-wrap: wrap;
}

.nav a,
.nav .link-btn {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.brand {
    font-weight: bold;
}

.card {
    background: #fff;
    border: 1px solid #e2e6ea;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

label {
    display: block;
    margin-bottom: 12px;
    font-size: 14px;
}

input,
select,
button {
    width: 100%;
    margin-top: 6px;
    padding: 8px;
    font-size: 14px;
}

input.input-error,
select.input-error {
    border: 1px solid #d14343;
    background: #fff5f5;
}

button {
    cursor: pointer;
    background: #2b59ff;
    color: #fff;
    border: 0;
    border-radius: 6px;
    padding: 10px;
}

.pager {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.pager button {
    width: auto;
    padding: 6px 10px;
    font-size: 12px;
}

.pager span {
    font-size: 12px;
    color: #4b5563;
}

.link-btn {
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.alert {
    padding: 10px;
    border-radius: 6px;
    margin: 12px 0;
    background: #ffe8e8;
    color: #8b1f1f;
    border: 1px solid #f5bcbc;
}

.hidden {
    display: none;
}

.muted {
    color: #5e6b7a;
}

.hint {
    margin-top: 12px;
    font-size: 13px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.table th,
.table td {
    border: 1px solid #e2e6ea;
    padding: 8px;
    text-align: left;
}

.table th {
    background: #f0f2f5;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 1000;
}

.modal {
    background: #fff;
    border-radius: 8px;
    max-width: 520px;
    width: 100%;
    padding: 16px;
    border: 1px solid #e2e6ea;
}

.modal h3 {
    margin-top: 0;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 16px;
}

.modal-actions button {
    width: auto;
}
