@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --text: #101828;
    --muted: #667085;
    --border: #e7eaf0;
    --background: #f7f8fb;
    --white: #ffffff;
    --danger: #dc2626;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
    font-family: inherit;
}


/* =========================================
   AUTH
========================================= */

.auth-page {
    min-height: 100vh;
    background:
        radial-gradient(
            circle at 75% 20%,
            rgba(37, 99, 235, .09),
            transparent 32%
        ),
        #f7f8fb;
}

.auth-wrapper {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(420px, 540px) 1fr;
    overflow: hidden;
}

.auth-card {
    position: relative;
    z-index: 5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, .92);
    border-right: 1px solid rgba(16, 24, 40, .06);
    padding: 42px 52px;
    backdrop-filter: blur(20px);
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    box-shadow: 0 8px 22px rgba(37, 99, 235, .22);
}

.brand-name {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -.3px;
}

.brand-label {
    margin-top: 2px;
    color: #98a2b3;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .9px;
}

.auth-content {
    width: 100%;
    max-width: 390px;
    margin: auto;
}

.auth-heading {
    margin-bottom: 32px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 13px;
    color: var(--primary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.6px;
}

.auth-heading h1 {
    margin: 0;
    font-size: 38px;
    line-height: 1.1;
    letter-spacing: -1.5px;
    font-weight: 700;
}

.auth-heading p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.auth-error {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 20px;
    border: 1px solid #fecaca;
    border-radius: 11px;
    background: #fff5f5;
    color: var(--danger);
    font-size: 13px;
}

.auth-error span {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fee2e2;
    font-size: 11px;
    font-weight: 700;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #344054;
    font-size: 12px;
    font-weight: 600;
}

.input-wrap {
    position: relative;
}

.input-wrap > svg {
    position: absolute;
    top: 50%;
    left: 15px;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #98a2b3;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform: translateY(-50%);
    pointer-events: none;
}

.input-wrap input {
    width: 100%;
    height: 52px;
    padding: 0 46px;
    border: 1px solid var(--border);
    border-radius: 11px;
    outline: none;
    background: #fff;
    color: var(--text);
    font-size: 13px;
    transition: .2s ease;
}

.input-wrap input::placeholder {
    color: #98a2b3;
}

.input-wrap input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .08);
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 13px;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #98a2b3;
    cursor: pointer;
    transform: translateY(-50%);
}

.password-toggle svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-button {
    width: 100%;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 7px;
    border: 0;
    border-radius: 11px;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 9px 22px rgba(37, 99, 235, .19);
    transition: .2s ease;
}

.auth-button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(37, 99, 235, .24);
}

.auth-button svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-footer {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #98a2b3;
    font-size: 10px;
}

.footer-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #cbd0d9;
}


/* =========================================
   AUTH DECORATION
========================================= */

.auth-decoration {
    position: relative;
    overflow: hidden;
    background: #f1f5ff;
}

.decoration-grid {
    position: absolute;
    inset: 0;
    opacity: .45;
    background-image:
        linear-gradient(rgba(37, 99, 235, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, .055) 1px, transparent 1px);
    background-size: 55px 55px;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
}

.orb-one {
    width: 460px;
    height: 460px;
    top: -170px;
    right: -80px;
    background: rgba(37, 99, 235, .10);
}

.orb-two {
    width: 350px;
    height: 350px;
    bottom: -160px;
    left: 5%;
    background: rgba(59, 130, 246, .07);
}

.floating-card {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px 18px;
    min-width: 225px;
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 14px;
    background: rgba(255,255,255,.78);
    box-shadow: 0 20px 50px rgba(16, 24, 40, .08);
    backdrop-filter: blur(16px);
}

.card-one {
    top: 34%;
    left: 18%;
}

.card-two {
    right: 15%;
    bottom: 27%;
}

.mini-icon {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #eff6ff;
    color: var(--primary);
    font-size: 15px;
    font-weight: 700;
}

.floating-card strong {
    display: block;
    font-size: 12px;
}

.floating-card small {
    display: block;
    margin-top: 3px;
    color: #98a2b3;
    font-size: 10px;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {

    .auth-wrapper {
        display: block;
    }

    .auth-decoration {
        display: none;
    }

    .auth-card {
        width: 100%;
        max-width: 560px;
        margin: auto;
        border-right: 0;
        padding: 32px 28px;
    }

    .auth-content {
        margin: auto;
    }

}

@media (max-width: 480px) {

    .auth-card {
        padding: 25px 20px;
    }

    .auth-heading h1 {
        font-size: 32px;
    }

    .auth-footer {
        font-size: 9px;
    }

}

/* =========================================
   ADMIN DASHBOARD
========================================= */

.admin-page {
    background: #f7f8fb;
}

.admin-layout {
    min-height: 100vh;
    display: flex;
}


/* SIDEBAR */

.sidebar {
    position: fixed;
    z-index: 20;
    inset: 0 auto 0 0;
    width: 248px;
    display: flex;
    flex-direction: column;
    padding: 25px 16px;
    background: rgba(255,255,255,.94);
    border-right: 1px solid #e9ebf0;
    backdrop-filter: blur(20px);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 9px;
    margin-bottom: 42px;
}

.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-title {
    display: block;
    padding: 0 11px;
    margin-bottom: 9px;
    color: #a0a8b5;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sidebar-nav a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 43px;
    padding: 0 12px;
    border-radius: 10px;
    color: #667085;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: .18s ease;
}

.sidebar-nav a:hover {
    color: #1d4ed8;
    background: #f4f7ff;
}

.sidebar-nav a.active {
    color: #2563eb;
    background: #eef4ff;
    font-weight: 600;
}

.nav-icon {
    width: 19px;
    height: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-count {
    min-width: 19px;
    height: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    border-radius: 20px;
    background: #fff0e6;
    color: #ea580c;
    font-size: 9px;
    font-weight: 700;
}

.sidebar-bottom {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid #edf0f4;
}

.admin-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px 14px;
}

.admin-avatar {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #eef4ff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
}

.admin-info {
    min-width: 0;
}

.admin-info strong {
    display: block;
    overflow: hidden;
    color: #344054;
    font-size: 11px;
    text-overflow: ellipsis;
}

.admin-info small {
    display: block;
    margin-top: 2px;
    color: #98a2b3;
    font-size: 9px;
}

.logout-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 9px;
    color: #98a2b3;
    font-size: 11px;
    text-decoration: none;
    transition: .18s ease;
}

.logout-link:hover {
    color: #dc2626;
}

.logout-link svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* MAIN */

.admin-main {
    width: calc(100% - 248px);
    min-height: 100vh;
    margin-left: 248px;
    padding: 38px 42px 50px;
}

.admin-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 31px;
}

.header-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #2563eb;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.6px;
}

.admin-header h1 {
    margin: 0;
    font-size: 30px;
    line-height: 1.15;
    letter-spacing: -1px;
}

.admin-header p {
    margin: 7px 0 0;
    color: #98a2b3;
    font-size: 12px;
}

.primary-button {
    height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    border-radius: 9px;
    background: #2563eb;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 7px 18px rgba(37,99,235,.16);
    transition: .18s ease;
}

.primary-button:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.primary-button svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}


/* STATS */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 18px;
}

.stat-card {
    padding: 19px;
    border: 1px solid #e8ebf0;
    border-radius: 13px;
    background: #fff;
    transition: .18s ease;
}

.stat-card:hover {
    border-color: #d9e1ef;
    box-shadow: 0 10px 30px rgba(16,24,40,.045);
    transform: translateY(-1px);
}

.stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-label {
    color: #98a2b3;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .8px;
}

.stat-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
}

.stat-icon.blue {
    background: #eff6ff;
    color: #2563eb;
}

.stat-icon.green {
    background: #ecfdf3;
    color: #16a34a;
}

.stat-icon.orange {
    background: #fff7ed;
    color: #ea580c;
}

.stat-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.stat-number {
    display: block;
    margin-top: 18px;
    font-size: 27px;
    line-height: 1;
    letter-spacing: -.8px;
}

.stat-description {
    display: block;
    margin-top: 8px;
    color: #98a2b3;
    font-size: 10px;
}


/* DASHBOARD PANELS */

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 18px;
}

.dashboard-panel {
    min-width: 0;
    border: 1px solid #e8ebf0;
    border-radius: 14px;
    background: #fff;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 21px;
    border-bottom: 1px solid #edf0f4;
}

.panel-header h2 {
    margin: 0;
    font-size: 14px;
    letter-spacing: -.2px;
}

.panel-header span {
    display: block;
    margin-top: 4px;
    color: #98a2b3;
    font-size: 10px;
}

.panel-header a {
    color: #2563eb;
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
}

.panel-header a:hover {
    text-decoration: underline;
}


/* TABLE */

.parcel-table-wrapper {
    overflow-x: auto;
}

.parcel-table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

.parcel-table th {
    padding: 12px 20px;
    color: #a0a8b5;
    background: #fafbfc;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .8px;
    text-align: left;
}

.parcel-table td {
    padding: 13px 20px;
    border-top: 1px solid #f0f1f4;
    color: #667085;
    font-size: 10px;
}

.parcel-table tbody tr {
    transition: .15s ease;
}

.parcel-table tbody tr:hover {
    background: #fafcff;
}

.shipment-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.shipment-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f4f7fb;
    color: #64748b;
}

.shipment-icon svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.shipment-cell strong {
    display: block;
    color: #344054;
    font-size: 10px;
    font-weight: 600;
}

.shipment-cell small {
    display: block;
    margin-top: 3px;
    color: #a0a8b5;
    font-size: 8px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border-radius: 20px;
    font-size: 8px;
    font-weight: 600;
}

.status-pill > span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}

.status-blue {
    color: #2563eb;
    background: #eff6ff;
}

.status-success {
    color: #16a34a;
    background: #ecfdf3;
}

.status-warning {
    color: #ea580c;
    background: #fff7ed;
}

.status-neutral {
    color: #64748b;
    background: #f1f5f9;
}


/* ACTIVITY */

.activity-list {
    padding: 18px 20px;
}

.activity-item {
    display: flex;
    gap: 13px;
    min-height: 91px;
}

.activity-line {
    position: relative;
    width: 12px;
    flex: 0 0 12px;
}

.activity-item:not(:last-child) .activity-line::after {
    content: "";
    position: absolute;
    top: 12px;
    left: 5px;
    width: 1px;
    height: calc(100% + 1px);
    background: #e6eaf0;
}

.activity-dot {
    position: relative;
    z-index: 2;
    width: 11px;
    height: 11px;
    margin-top: 3px;
    border: 3px solid #dbeafe;
    border-radius: 50%;
    background: #2563eb;
}

.activity-content {
    min-width: 0;
    padding-bottom: 19px;
}

.activity-content strong {
    display: block;
    color: #344054;
    font-size: 10px;
    font-weight: 600;
}

.activity-content p {
    margin: 5px 0;
    color: #667085;
    font-size: 9px;
    line-height: 1.45;
}

.activity-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #2563eb;
    font-size: 8px;
}

.activity-content time {
    display: block;
    margin-top: 4px;
    color: #a0a8b5;
    font-size: 8px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    text-align: center;
}

.empty-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    border-radius: 11px;
    background: #f4f7fb;
    color: #98a2b3;
}

.empty-state strong {
    font-size: 11px;
}

.empty-state span {
    margin-top: 5px;
    color: #98a2b3;
    font-size: 9px;
}

.empty-state a {
    margin-top: 13px;
    color: #2563eb;
    font-size: 9px;
    font-weight: 600;
    text-decoration: none;
}

.empty-activity {
    padding: 20px 5px;
    color: #667085;
    font-size: 10px;
}

.empty-activity span {
    display: block;
    margin-top: 5px;
    color: #98a2b3;
    font-size: 9px;
    line-height: 1.5;
}


/* RESPONSIVE */

@media (max-width: 1150px) {

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 850px) {

    .sidebar {
        width: 72px;
        padding: 20px 10px;
    }

    .sidebar-brand {
        justify-content: center;
        padding: 0;
    }

    .sidebar-brand > div:last-child,
    .sidebar-title,
    .sidebar-nav a:not(.active)::after,
    .sidebar-nav a {
        font-size: 0;
    }

    .sidebar-nav a {
        justify-content: center;
        padding: 0;
    }

    .nav-count {
        position: absolute;
        top: 3px;
        right: 4px;
        min-width: 15px;
        height: 15px;
        font-size: 7px;
    }

    .admin-profile,
    .logout-link {
        justify-content: center;
    }

    .admin-info,
    .logout-link {
        font-size: 0;
    }

    .admin-main {
        width: calc(100% - 72px);
        margin-left: 72px;
        padding: 28px 22px;
    }

}

@media (max-width: 600px) {

    .admin-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-number {
        font-size: 23px;
    }

    .primary-button {
        width: 100%;
        justify-content: center;
    }

}

/* =========================================
   PARCEL FORM
========================================= */

.secondary-action {
    height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 15px;
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    background: #fff;
    color: #667085;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    transition: .18s ease;
}

.secondary-action:hover {
    border-color: #d5d9e1;
    color: #2563eb;
    background: #fafcff;
}

.form-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 15px;
    margin-bottom: 18px;
    border: 1px solid #fecaca;
    border-radius: 10px;
    background: #fff5f5;
    color: #dc2626;
    font-size: 11px;
}

.form-alert > span {
    width: 21px;
    height: 21px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 21px;
    border-radius: 50%;
    background: #fee2e2;
    font-size: 10px;
    font-weight: 700;
}

.form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 315px;
    gap: 18px;
}

.form-main,
.form-side {
    min-width: 0;
}

.form-panel {
    margin-bottom: 18px;
    border: 1px solid #e8ebf0;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.form-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    padding: 19px 21px;
    border-bottom: 1px solid #edf0f4;
}

.form-panel-header h2 {
    margin: 0;
    color: #101828;
    font-size: 14px;
    font-weight: 650;
    letter-spacing: -.25px;
}

.form-panel-header p {
    margin: 5px 0 0;
    color: #98a2b3;
    font-size: 10px;
    line-height: 1.5;
}

.section-number {
    color: #c0c6d0;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.form-panel-body {
    padding: 22px;
}

.form-grid {
    display: grid;
    gap: 17px;
    margin-bottom: 17px;
}

.form-grid.two {
    grid-template-columns: 1fr 1fr;
}

.field {
    min-width: 0;
    margin-bottom: 17px;
}

.form-grid .field {
    margin-bottom: 0;
}

.field:last-child {
    margin-bottom: 0;
}

.field label {
    display: block;
    margin-bottom: 8px;
    color: #344054;
    font-size: 10px;
    font-weight: 650;
}

.field label span {
    color: #2563eb;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    display: block;
    border: 1px solid #e2e6ec;
    border-radius: 9px;
    outline: none;
    background: #fff;
    color: #344054;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        background .18s ease;
}

.field input,
.field select {
    height: 43px;
    padding: 0 12px;
}

.field textarea {
    min-height: 115px;
    padding: 12px;
    resize: vertical;
    line-height: 1.55;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #b0b7c3;
}

.field input:hover,
.field textarea:hover,
.field select:hover {
    border-color: #d2d7e0;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    border-color: #7da7f7;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .07);
}

.field small {
    display: block;
    margin-top: 6px;
    color: #a0a8b5;
    font-size: 8px;
    line-height: 1.45;
}

.field select {
    appearance: none;
    padding-right: 35px;
    cursor: pointer;
    background-image:
        linear-gradient(45deg, transparent 50%, #98a2b3 50%),
        linear-gradient(135deg, #98a2b3 50%, transparent 50%);
    background-position:
        calc(100% - 16px) 18px,
        calc(100% - 11px) 18px;
    background-size: 5px 5px;
    background-repeat: no-repeat;
}

.input-with-unit,
.input-with-prefix {
    position: relative;
}

.input-with-unit input {
    padding-right: 48px;
}

.input-with-unit > span {
    position: absolute;
    top: 50%;
    right: 12px;
    color: #98a2b3;
    font-size: 8px;
    font-weight: 700;
    transform: translateY(-50%);
}

.input-with-prefix > span {
    position: absolute;
    top: 50%;
    left: 13px;
    color: #98a2b3;
    font-size: 11px;
    transform: translateY(-50%);
}

.input-with-prefix input {
    padding-left: 27px;
}


/* IMAGE UPLOAD */

.upload-box {
    min-height: 205px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 15px;
    border: 1px dashed #d7dce5;
    border-radius: 11px;
    background: #fafbfc;
    color: #98a2b3;
    text-align: center;
    cursor: pointer;
    transition: .18s ease;
}

.upload-box:hover {
    border-color: #8db0ef;
    background: #f8faff;
}

.upload-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    border-radius: 11px;
    background: #eef4ff;
    color: #2563eb;
}

.upload-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.upload-box strong {
    color: #475467;
    font-size: 10px;
    font-weight: 650;
}

.upload-box > span {
    margin-top: 4px;
    color: #98a2b3;
    font-size: 9px;
}

.upload-box > small {
    margin-top: 8px;
    color: #b0b7c3;
    font-size: 8px;
}

.file-preview {
    margin-top: 12px;
}

.preview-image {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 1px solid #e8ebf0;
    border-radius: 10px;
    background: #fafbfc;
}

.preview-image img {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    object-fit: cover;
    border-radius: 7px;
}

.preview-info {
    min-width: 0;
}

.preview-info strong {
    display: block;
    overflow: hidden;
    color: #475467;
    font-size: 9px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preview-info span {
    display: block;
    margin-top: 3px;
    color: #98a2b3;
    font-size: 8px;
}


/* SUBMIT */

.submit-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    padding: 19px;
    border: 1px solid #dbe6fb;
    border-radius: 14px;
    background: #f8fbff;
}

.submit-card-icon {
    width: 37px;
    height: 37px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #eaf2ff;
    color: #2563eb;
}

.submit-card-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.submit-card > div:nth-child(2) {
    width: 100%;
}

.submit-card strong {
    display: block;
    color: #344054;
    font-size: 11px;
    font-weight: 650;
}

.submit-card > div:nth-child(2) span {
    display: block;
    margin-top: 4px;
    color: #98a2b3;
    font-size: 9px;
    line-height: 1.5;
}

.submit-button {
    width: 100%;
    justify-content: center;
    border: 0;
    cursor: pointer;
}

.submit-button svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* RESPONSIVE */

@media (max-width: 1050px) {

    .form-layout {
        grid-template-columns: 1fr;
    }

    .form-side {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 18px;
        align-items: start;
    }

    .form-side .form-panel {
        margin-bottom: 0;
    }

    .submit-card {
        grid-column: 1 / -1;
    }

}

@media (max-width: 700px) {

    .form-grid.two {
        grid-template-columns: 1fr;
    }

    .form-side {
        display: block;
    }

    .form-side .form-panel {
        margin-bottom: 18px;
    }

    .form-panel-body {
        padding: 17px;
    }

    .form-panel-header {
        padding: 17px;
    }

}

@media (max-width: 500px) {

    .admin-main {
        padding: 24px 15px 40px;
    }

    .secondary-action {
        width: 100%;
        justify-content: center;
    }

}

/* =========================================================
   PARCEL EDIT
========================================================= */

.edit-parcel-header {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 20px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.edit-parcel-main {
    display: flex;
    align-items: center;
    gap: 15px;
}

.edit-parcel-main h2 {
    margin: 3px 0 2px;
    font-size: 21px;
    color: var(--text);
}

.edit-parcel-main p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.shipment-icon.large {
    width: 58px;
    height: 58px;
    border-radius: 15px;
    overflow: hidden;
}

.shipment-icon.large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shipment-icon.large svg {
    width: 27px;
    height: 27px;
    fill: currentColor;
}

.edit-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 370px;
    gap: 20px;
    align-items: start;
}

.edit-main,
.edit-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.panel-kicker {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--primary);
    margin-bottom: 4px;
}

.timeline-count {
    font-size: 12px;
    color: var(--muted);
}

.current-image {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 13px;
    margin-bottom: 14px;
}

.current-image img {
    width: 75px;
    height: 75px;
    object-fit: cover;
    border-radius: 10px;
}

.current-image strong,
.current-image span {
    display: block;
}

.current-image strong {
    font-size: 13px;
    margin-bottom: 4px;
}

.current-image span {
    color: var(--muted);
    font-size: 12px;
}

.summary-list {
    padding: 5px 20px 15px;
}

.summary-list > div {
    padding: 13px 0;
    border-bottom: 1px solid #f0f1f4;
}

.summary-list > div:last-child {
    border-bottom: 0;
}

.summary-list span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 4px;
}

.summary-list strong {
    display: block;
    color: var(--text);
    font-size: 13px;
    word-break: break-word;
}

.edit-timeline {
    position: relative;
    padding-left: 8px;
}

.edit-timeline-item {
    display: flex;
    gap: 15px;
    position: relative;
    padding-bottom: 25px;
}

.edit-timeline-item:last-child {
    padding-bottom: 0;
}

.edit-timeline-item:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 15px;
    bottom: 0;
    width: 1px;
    background: #e5e7eb;
}

.timeline-marker {
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid #dbeafe;
    position: relative;
    z-index: 2;
    margin-top: 2px;
}

.timeline-content {
    flex: 1;
    min-width: 0;
}

.timeline-top {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.timeline-top strong {
    display: block;
    font-size: 13px;
    color: var(--text);
}

.timeline-top span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}

.timeline-top time {
    color: var(--muted);
    font-size: 11px;
    white-space: nowrap;
}

.timeline-content p {
    margin: 8px 0 7px;
    color: #475467;
    font-size: 12px;
    line-height: 1.6;
}

.timeline-delete {
    border: 0;
    background: transparent;
    color: #dc2626;
    padding: 0;
    font-size: 11px;
    cursor: pointer;
}

.charge-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.charge-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    background: #fbfcfe;
}

.charge-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.charge-card-top strong {
    font-size: 13px;
    color: var(--text);
}

.charge-status {
    font-size: 10px;
    font-weight: 700;
    padding: 5px 8px;
    border-radius: 999px;
    text-transform: capitalize;
}

.charge-status.pending {
    color: #92400e;
    background: #fef3c7;
}

.charge-status.paid {
    color: #166534;
    background: #dcfce7;
}

.charge-status.cancelled {
    color: #991b1b;
    background: #fee2e2;
}

.charge-card p {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
    margin: 9px 0;
}

.charge-amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin: 10px 0 12px;
}

.charge-actions {
    display: flex;
    gap: 7px;
}

.charge-actions select {
    flex: 1;
    min-width: 0;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 0 9px;
    background: var(--white);
    font-family: inherit;
    font-size: 11px;
    outline: none;
}

.charge-update {
    border: 0;
    background: var(--primary);
    color: white;
    border-radius: 9px;
    padding: 0 12px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.charge-delete {
    width: 100%;
    border: 0;
    background: transparent;
    color: #dc2626;
    font-family: inherit;
    font-size: 11px;
    cursor: pointer;
    padding: 9px 0 0;
}

.charge-divider {
    height: 1px;
    background: var(--border);
    margin: 20px 0;
}

.full-width {
    width: 100%;
}

@media (max-width: 1100px) {
    .edit-layout {
        grid-template-columns: 1fr;
    }

    .edit-side {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    .edit-parcel-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .edit-layout {
        display: block;
    }

    .edit-side {
        display: flex;
        margin-top: 20px;
    }

    .timeline-top {
        flex-direction: column;
        gap: 5px;
    }

    .timeline-top time {
        white-space: normal;
    }
}