@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --navy: #123657;
    --navy-dark: #0c2943;
    --ink: #172f45;
    --muted: #6d7f8e;
    --line: #dfe7ec;
    --surface: #fff;
    --bg: #f5f8fa;
    --blue: #2f6eaa;
    --gold: #d3a44c;
    --red: #c34b55;
    --orange: #c9812f;
    --green: #2c8867;
    --radius: 12px;
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    color: var(--ink);
    background: var(--bg)
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    min-width: 320px
}

button,
input,
select,
textarea {
    font: inherit
}

button {
    cursor: pointer
}

a {
    color: inherit;
    text-decoration: none
}

img {
    max-width: 100%
}

h1,
h2,
h3,
h4,
p {
    margin-top: 0
}

h1,
h2,
h3 {
    letter-spacing: -.035em
}

h1 {
    font-size: clamp(1.8rem, 3vw, 2.6rem)
}

h2 {
    font-size: 1.35rem
}

h3 {
    font-size: 1rem
}

p {
    line-height: 1.6
}

.muted {
    color: var(--muted)
}

.small {
    font-size: .78rem
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .69rem;
    font-weight: 800;
    color: var(--blue)
}

.num {
    font-variant-numeric: tabular-nums
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 40px;
    padding: .65rem 1rem;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    color: var(--ink);
    font-weight: 700;
    font-size: .83rem;
    transition: .16s ease
}

.btn:hover {
    border-color: #9fb6c9;
    background: #f7fafc
}

.btn.primary {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff
}

.btn.primary:hover {
    background: #1c4c74
}

.btn.ghost {
    border-color: transparent;
    background: transparent
}

.btn.danger {
    color: #ae3d49;
    border-color: #efd9db
}

.btn.small-btn {
    min-height: 32px;
    padding: .4rem .65rem;
    font-size: .76rem
}

.btn:disabled {
    opacity: .5;
    cursor: not-allowed
}

.icon-btn {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    color: var(--ink)
}

.icon-btn:hover {
    background: #edf3f7
}

.icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .55rem;
    border-radius: 6px;
    font-size: .7rem;
    font-weight: 800;
    white-space: nowrap
}

.badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor
}

.badge.Kritis {
    background: #fcebed;
    color: #b8434e
}

.badge.Minim {
    background: #fff1de;
    color: #ad6819
}

.badge.Cukup {
    background: #eaf7f0;
    color: #267652
}

.badge.Tersedia {
    background: #e9f2fc;
    color: #326aa0
}

.badge.Diproses {
    background: #f1f2f5;
    color: #596878
}

.badge.Dikirim {
    background: #e9f2fc;
    color: #326aa0
}

.badge.Diterima,
.badge.Aktif,
.badge.Selesai {
    background: #eaf7f0;
    color: #267652
}

.badge.Dibatalkan,
.badge.Nonaktif {
    background: #fcebed;
    color: #b8434e
}

.field {
    display: flex;
    flex-direction: column;
    gap: .38rem
}

.field label {
    font-size: .74rem;
    font-weight: 800;
    color: #395165
}

.field input,
.field select,
.field textarea,
.select,
input.search {
    height: 40px;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: .55rem .7rem;
    background: #fff;
    color: var(--ink);
    outline: 0
}

.field textarea {
    height: 78px;
    resize: vertical
}

.field input:focus,
.field select:focus,
.field textarea:focus,
input.search:focus {
    border-color: #4e89b9;
    box-shadow: 0 0 0 3px #4e89b922
}

.field input[readonly] {
    background: #f2f5f7;
    color: #607589
}

.toolbar {
    display: flex;
    align-items: center;
    gap: .65rem;
    flex-wrap: wrap
}

.toolbar .search {
    width: min(300px, 100%)
}

.card,
.panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius)
}

.panel {
    padding: 1.2rem
}

.panel-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem
}

.panel-head h2,
.panel-head h3 {
    margin: 0
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem
}

.stat-card {
    padding: 1.1rem 1.2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff
}

.stat-card .label {
    font-size: .73rem;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: .85rem
}

.stat-card strong {
    display: block;
    font-size: 1.65rem;
    letter-spacing: -.04em
}

.stat-card .foot {
    margin-top: .6rem;
    font-size: .71rem;
    color: var(--muted)
}

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

table {
    width: 100%;
    border-collapse: collapse;
    font-size: .78rem;
    white-space: nowrap
}

th,
td {
    padding: .78rem .85rem;
    border-bottom: 1px solid #edf0f3;
    text-align: left;
    vertical-align: middle
}

th {
    background: #f7f9fb;
    color: #607589;
    font-size: .67rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 800
}

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

tbody tr:hover {
    background: #fafcfd
}

.cell-actions {
    display: flex;
    gap: .35rem
}

.empty {
    padding: 3rem 1rem;
    text-align: center;
    color: var(--muted)
}

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    color: var(--muted);
    font-size: .76rem
}

.pagination .btn {
    min-height: 32px;
    padding: .3rem .6rem
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: #0b263bb8;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 1rem
}

.modal {
    width: min(680px, 100%);
    max-height: min(90vh, 900px);
    overflow: auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 22px 80px #071c2c55
}

.modal-head {
    padding: 1.2rem 1.35rem;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem
}

.modal-head h2 {
    font-size: 1.1rem;
    margin: 0
}

.modal-body {
    padding: 1.35rem
}

.modal-actions {
    padding: 1rem 1.35rem;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: flex-end;
    gap: .55rem
}

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

.form-grid .wide {
    grid-column: 1/-1
}

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

.detail-item {
    border-bottom: 1px solid var(--line);
    padding-bottom: .65rem
}

.detail-item span {
    display: block;
    font-size: .7rem;
    color: var(--muted);
    margin-bottom: .3rem
}

.detail-item strong {
    font-size: .88rem
}

.toast {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 100;
    padding: .8rem 1rem;
    background: var(--navy);
    color: #fff;
    border-radius: 9px;
    box-shadow: 0 10px 25px #102f4b3b;
    font-size: .82rem
}

.toast.error {
    background: #a63744
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--navy);
    color: #edc672;
    font-weight: 800;
    font-size: 1.35rem
}

.entry {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    text-align: center
}

.entry h1 {
    margin: .4rem 0 0
}

.entry p {
    margin: 0 0 1rem
}

@media(max-width:700px) {
    .stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .form-grid,
    .detail-grid {
        grid-template-columns: 1fr
    }

    .modal-backdrop {
        align-items: end;
        padding: 0
    }

    .modal {
        border-radius: 16px 16px 0 0;
        max-height: 94vh
    }

    .pagination {
        flex-wrap: wrap
    }
}:root{--navy:#1B4D3E;--navy-dark:#1B4D3E;--ink:#202923;--muted:#78877D;--line:#E7EAE6;--surface:#FFFFFF;--bg:#FAF9F6;--blue:#426B92;--gold:#FCD804;--red:#B93832;--orange:#B7791F;--green:#287A50}
