:root {
    --bg: #f4f7f9;
    --surface: #ffffff;
    --text: #1d2a35;
    --muted: #657382;
    --line: #dce4ea;
    --primary: #0b6bcb;
    --primary-dark: #084f96;
    --success: #138a4f;
    --danger: #bb2d3b;
    --warning: #a66a00;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
}

a {
    color: var(--primary);
    text-decoration: none;
}

.topbar {
    background: #12344d;
    color: #fff;
    padding: 18px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    font-size: 21px;
    font-weight: 700;
    line-height: 1.25;
}

.nav-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-actions a,
.nav-actions button,
.btn {
    border: 0;
    border-radius: 6px;
    background: var(--primary);
    color: #fff;
    padding: 10px 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
}

.nav-actions a.secondary,
.btn.secondary {
    background: #eef5fb;
    color: #12344d;
}

.btn.danger {
    background: var(--danger);
}

.btn.success {
    background: var(--success);
}

.shell {
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto;
}

.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(13, 42, 67, 0.06);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.field.full {
    grid-column: 1 / -1;
}

label {
    display: block;
    font-weight: 700;
    margin-bottom: 7px;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 11px 12px;
    font: inherit;
    color: var(--text);
    background: #fff;
}

textarea {
    min-height: 108px;
    resize: vertical;
}

.hint {
    color: var(--muted);
    font-size: 13px;
    margin-top: 6px;
}

.alert {
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 18px;
    font-weight: 700;
}

.alert.success {
    background: #e8f7ef;
    color: #0d6d3e;
}

.alert.error {
    background: #fdebed;
    color: #941f2a;
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.filters {
    display: grid;
    grid-template-columns: minmax(180px, 1.2fr) minmax(150px, 0.8fr) auto;
    gap: 10px;
    align-items: end;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
}

table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    background: #fff;
}

th,
td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    background: #eef3f7;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0;
}

.status {
    display: inline-block;
    padding: 5px 8px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 12px;
    background: #eef3f7;
}

.status.Baru {
    color: var(--warning);
    background: #fff5df;
}

.status.Diproses {
    color: var(--primary-dark);
    background: #e7f1fb;
}

.status.Selesai {
    color: var(--success);
    background: #e8f7ef;
}

.row-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.inline-form {
    margin: 0;
}

.login-box {
    width: min(430px, calc(100% - 32px));
    margin: 64px auto;
}

.section-title {
    margin: 0 0 18px;
    font-size: 22px;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 22px;
    align-items: start;
}

@media (max-width: 760px) {
    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .form-grid,
    .split,
    .filters {
        grid-template-columns: 1fr;
    }
}
