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

:root {
    --ink: #17201b;
    --muted: #718077;
    --green: #174b35;
    --lime: #d9f66f;
    --cream: #f5f5ee;
    --line: #e3e7df;
    --white: #fff;
    --red: #b53b32
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font: 14px/1.5 'DM Sans', system-ui, sans-serif
}

aside {
    position: fixed;
    inset: 0 auto 0 0;
    width: 240px;
    background: #102d22;
    color: #fff;
    padding: 28px 20px;
    display: flex;
    flex-direction: column
}

.brand {
    display: grid;
    grid-template-columns: 42px 1fr;
    color: #fff;
    text-decoration: none;
    line-height: 1.15;
    margin: 0 8px 42px
}

.brand>span {
    grid-row: 1/3;
    background: var(--lime);
    color: var(--green);
    border-radius: 12px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    font-weight: 800
}

.brand strong {
    font-size: 18px
}

.brand small {
    color: #9db6aa
}

nav {
    display: grid;
    gap: 8px
}

nav a {
    color: #bcd0c5;
    text-decoration: none;
    padding: 11px 14px;
    border-radius: 10px;
    font-weight: 600
}

nav a:hover {
    background: #1b4233;
    color: #fff
}

.logout {
    margin-top: auto;
    background: none;
    border: 0;
    color: #a9c1b5;
    padding: 12px;
    cursor: pointer
}

main {
    margin-left: 240px;
    padding: 34px 42px;
    max-width: 1600px
}

main.auth {
    margin: 0;
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 30% 20%, #2c684d, #102d22 60%);
    max-width: none
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px
}

h1 {
    margin: 3px 0;
    font-size: 28px
}

h2 {
    font-size: 24px;
    margin: 10px 0
}

h3 {
    font-size: 18px
}

.eyebrow {
    font-size: 10px;
    letter-spacing: .16em;
    color: #89958e;
    font-weight: 700
}

.mode {
    background: #eaf2e9;
    border: 1px solid #d4e4d4;
    padding: 8px 12px;
    border-radius: 100px;
    font-size: 12px
}

.mode i {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #37a164;
    border-radius: 50%;
    margin-right: 6px
}

.hero {
    background: var(--green);
    color: white;
    padding: 32px 36px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px
}

.hero p {
    color: #c5d8ce;
    margin-bottom: 0
}

.pill,
.badge {
    display: inline-flex;
    border-radius: 100px;
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 700
}

.pill.safe {
    background: var(--lime);
    color: #24422f
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 20px 0
}

.cards article,
.panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px
}

.cards span,
.cards small {
    display: block;
    color: var(--muted)
}

.cards b {
    font-size: 32px;
    display: block;
    margin: 8px 0
}

.status-panel,
.detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 22px
}

.status-panel dl {
    margin: 0
}

.status-panel dl div {
    display: flex;
    justify-content: space-between;
    padding: 9px;
    border-bottom: 1px solid var(--line)
}

dt {
    color: var(--muted)
}

dd {
    margin: 0;
    font-weight: 600
}

.danger {
    color: var(--red)
}

.primary,
.secondary,
.button {
    border: 0;
    border-radius: 9px;
    padding: 11px 16px;
    text-decoration: none;
    font: 600 13px inherit;
    display: inline-block;
    cursor: pointer
}

.primary {
    background: var(--lime);
    color: #173421
}

.secondary {
    background: #eef1eb;
    color: var(--ink);
    border: 1px solid #dde2da
}

.alert,
.notice {
    padding: 14px 18px;
    border-radius: 10px;
    background: #e8f2d2;
    margin-bottom: 18px;
    margin-top: 18px;
}

.alert.error {
    background: #fae5e3;
    color: #8f2c25
}

.notice {
    background: #fff8de;
    border: 1px solid #f0df9a
}

.filters {
    display: flex;
    gap: 12px;
    align-items: end
}

.filters label {
    min-width: 220px
}

.form {
    display: grid;
    gap: 15px
}

label {
    display: grid;
    gap: 6px;
    font-weight: 600;
    color: #56635b
}

input,
select {
    padding: 11px;
    border: 1px solid #d9dfd8;
    border-radius: 8px;
    background: #fff;
    font: inherit
}

.table-wrap {
    padding: 0;
    overflow: auto;
    margin-top: 18px
}

table {
    border-collapse: collapse;
    width: 100%
}

th,
td {
    text-align: left;
    padding: 14px 8px;
    border-bottom: 1px solid #edf0eb;
    white-space: nowrap
}

th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #829087;
    background: #fafbf8
}

td small {
    display: block;
    color: var(--muted)
}

.badge {
    background: #edf0ec
}

.badge.ok {
    background: #dff1e6;
    color: #256941
}

.badge.warn {
    background: #fff1cc;
    color: #8a6815
}

.detail {
    font-weight: 700;
    color: var(--green);
    text-decoration: none
}

.empty {
    text-align: center !important;
    color: var(--muted);
    padding: 34px !important
}

.back {
    display: block;
    margin-bottom: 18px;
    color: var(--green);
    text-decoration: none;
    font-weight: 600
}

.detail-grid {
    margin-bottom: 18px
}

.facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 25px
}

.facts div {
    border-top: 1px solid var(--line);
    padding-top: 10px
}

.timeline>div {
    position: relative;
    padding: 0 0 20px 25px;
    border-left: 2px solid #dbe4dc
}

.timeline>div:before {
    content: '';
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--green);
    left: -5px
}

.timeline time {
    font-size: 11px;
    color: var(--muted);
    display: block
}

.timeline p {
    margin: 3px 0
}

.login-card {
    width: min(420px, 90vw);
    background: white;
    border-radius: 18px;
    padding: 38px
}

.login-card .mark {
    width: 48px;
    height: 48px;
    background: var(--lime);
    color: var(--green);
    display: grid;
    place-items: center;
    border-radius: 12px;
    font-weight: 800
}

.login-card p {
    color: var(--muted)
}

.login-card form {
    display: grid;
    gap: 16px;
    margin-top: 25px
}

.login-card button {
    width: 100%
}

.shipment {
    max-width: 760px
}

.big-id {
    font-size: 32px;
    font-weight: 700
}

.break {
    word-break: break-word
}

pre {
    max-width: 500px;
    white-space: pre-wrap;
    word-break: break-word;
    background: #102d22;
    color: #def3e6;
    padding: 12px;
    border-radius: 8px;
    max-height: 300px;
    overflow: auto
}

code {
    font-size: 12px;
    word-break: break-all
}

.danger-button {
    background: #b42318;
    color: #fff;
    border: 0;
    border-radius: 9px;
    padding: 12px 17px;
    text-decoration: none;
    font: 700 13px inherit;
    display: inline-block;
    cursor: pointer
}

.danger-button:hover {
    background: #8f1d14
}

.danger-zone {
    max-width: 820px;
    border: 2px solid #e5a39d
}

.danger-pill {
    background: #fee4e2;
    color: #9b241b
}

.check {
    display: grid !important;
    grid-template-columns: 20px 1fr !important;
    align-items: start;
    gap: 10px !important;
    background: #fff4f2;
    border: 1px solid #f1b5af;
    padding: 14px;
    border-radius: 9px
}

.check input {
    margin-top: 3px
}

.mode {
    background: #f5e9e7;
    border-color: #ead2ce
}

.mode i {
    background: #b53b32
}

.mode.active {
    background: #eaf2e9;
    border-color: #d4e4d4
}

.mode.active i {
    background: #37a164
}

.pill.live {
    background: #42b36f;
    color: #fff
}

.success-text {
    color: #26834e
}

.button-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px
}

textarea {
    padding: 11px;
    border: 1px solid #d9dfd8;
    border-radius: 8px;
    background: #fff;
    font: inherit;
    resize: vertical
}

.toggle-check {
    display: flex;
    grid-template-columns: none;
    align-items: center;
    gap: 10px;
    padding: 13px;
    border: 1px solid #d9dfd8;
    border-radius: 9px;
    background: #f8faf6
}

.toggle-check input {
    width: 18px;
    height: 18px;
    margin: 0
}

@media(max-width:900px) {
    aside {
        width: 72px;
        padding: 20px 12px
    }

    .brand {
        margin: 0 5px 34px
    }

    .brand strong,
    .brand small,
    nav span {
        display: none
    }

    main {
        margin-left: 72px;
        padding: 24px 18px
    }

    .cards {
        grid-template-columns: 1fr 1fr
    }

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

    .hero {
        align-items: flex-start;
        gap: 20px
    }

    .filters {
        flex-wrap: wrap
    }
}

@media(max-width:560px) {
    .cards {
        grid-template-columns: 1fr
    }

    .hero {
        display: grid
    }

    .facts {
        grid-template-columns: 1fr
    }

    header .mode {
        display: none
    }
}