* {
    box-sizing: border-box;
}

:root {
    --bg: #080d16;
    --sidebar: #0b111d;
    --panel: #101826;
    --panel-2: #141e2e;
    --border: #202c3e;

    --text: #edf4ff;
    --muted: #8190a7;

    --blue: #1486ff;
    --blue-light: #54adff;

    --green: #24d39b;
    --orange: #ff9f43;
    --purple: #a879ff;
    --red: #ff6475;

    --radius: 12px;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: var(--bg);
    color: var(--text);
}

body {
    min-width: 1200px;
}

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

button,
input {
    font: inherit;
}


/* APP */

.app {
    min-height: 100vh;
    display: flex;
}


/* SIDEBAR */

.sidebar {
    width: 235px;
    min-height: 100vh;

    position: fixed;
    left: 0;
    top: 0;

    display: flex;
    flex-direction: column;

    background:
        linear-gradient(
            180deg,
            #0d1421 0%,
            #080d16 100%
        );

    border-right: 1px solid var(--border);
}

.brand {
    height: 82px;

    display: flex;
    align-items: center;

    padding: 0 24px;

    border-bottom: 1px solid var(--border);
}

.brand-mark {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            #168cff,
            #0059d9
        );

    box-shadow:
        0 0 25px rgba(20, 134, 255, .25);

    font-size: 24px;
    font-weight: 800;
}

.brand-text {
    margin-left: 12px;
}

.brand-text strong {
    display: block;

    font-size: 19px;
    letter-spacing: .8px;
}

.brand-text span {
    display: block;

    margin-top: 1px;

    color: var(--blue-light);

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
}

.nav {
    padding: 22px 14px;
}

.nav-item {
    height: 46px;

    display: flex;
    align-items: center;

    margin-bottom: 5px;
    padding: 0 14px;

    border-radius: 9px;

    color: #8c9ab0;

    font-size: 14px;
    font-weight: 600;

    transition: .15s ease;
}

.nav-item:hover {
    background: #111c2c;
    color: white;
}

.nav-item.active {
    color: white;

    background:
        linear-gradient(
            90deg,
            rgba(20,134,255,.24),
            rgba(20,134,255,.08)
        );

    border: 1px solid rgba(20,134,255,.18);
}

.nav-icon {
    width: 27px;

    color: #7390b2;

    font-size: 18px;
}

.nav-item.active .nav-icon {
    color: var(--blue-light);
}

.sidebar-bottom {
    margin-top: auto;

    padding: 22px 25px;

    border-top: 1px solid var(--border);
}

.system-status {
    display: flex;
    align-items: center;

    color: #8d9ab0;

    font-size: 12px;
}

.status-dot {
    width: 8px;
    height: 8px;

    margin-right: 8px;

    border-radius: 50%;

    background: var(--green);

    box-shadow:
        0 0 10px rgba(36,211,155,.8);
}

.version {
    margin-top: 8px;

    color: #4f5d70;

    font-size: 11px;
}


/* MAIN */

.main {
    width: calc(100% - 235px);
    margin-left: 235px;
}


/* TOPBAR */

.topbar {
    height: 82px;

    position: sticky;
    top: 0;
    z-index: 10;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 30px;

    background: rgba(8, 13, 22, .94);

    backdrop-filter: blur(12px);

    border-bottom: 1px solid var(--border);
}

.topbar-title h1 {
    margin: 0;

    font-size: 20px;
}

.topbar-title span {
    display: block;

    margin-top: 4px;

    color: var(--muted);

    font-size: 12px;
}

.topbar-actions {
    display: flex;
    align-items: center;

    gap: 13px;
}

.search {
    width: 285px;
    height: 42px;

    display: flex;
    align-items: center;

    padding: 0 13px;

    border: 1px solid var(--border);
    border-radius: 9px;

    background: #0d1521;
}

.search span {
    margin-right: 9px;

    color: #6d7e95;

    font-size: 20px;
}

.search input {
    width: 100%;

    border: 0;
    outline: 0;

    background: transparent;

    color: white;
}

.search input::placeholder {
    color: #59677a;
}

.btn-primary {
    min-height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    padding: 0 17px;

    border: 0;
    border-radius: 8px;

    background:
        linear-gradient(
            135deg,
            #188cff,
            #0069df
        );

    color: white;

    font-weight: 700;
    font-size: 13px;

    box-shadow:
        0 6px 20px rgba(0,105,223,.22);

    cursor: pointer;
}

.btn-primary:hover {
    filter: brightness(1.08);
}

.user {
    display: flex;
    align-items: center;

    padding-left: 12px;

    border-left: 1px solid var(--border);
}

.avatar {
    width: 37px;
    height: 37px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #182538;

    color: var(--blue-light);

    font-size: 12px;
    font-weight: 800;
}

.user-text {
    margin-left: 9px;
}

.user-text strong {
    display: block;

    font-size: 12px;
}

.user-text span {
    color: var(--muted);

    font-size: 10px;
}


/* CONTENT */

.content {
    padding: 28px 30px;
}


/* PANEL */

.panel {
    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background:
        linear-gradient(
            180deg,
            rgba(17,26,40,.98),
            rgba(12,19,30,.98)
        );

    box-shadow:
        0 18px 50px rgba(0,0,0,.16);
}

.panel-header {
    min-height: 82px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 22px;

    border-bottom: 1px solid var(--border);
}

.panel-header h2 {
    margin: 0;

    font-size: 17px;
}

.panel-header p {
    margin: 5px 0 0;

    color: var(--muted);

    font-size: 12px;
}

.panel-tools {
    display: flex;

    gap: 7px;
}

.btn-secondary,
.btn-icon {
    height: 36px;

    border: 1px solid var(--border);
    border-radius: 7px;

    background: #111a28;

    color: #a7b4c7;

    cursor: pointer;
}

.btn-secondary {
    padding: 0 14px;
}

.btn-icon {
    width: 36px;
}


/* TABLE */

.table-wrap {
    overflow-x: auto;
}

.orders-table {
    width: 100%;

    border-collapse: collapse;

    font-size: 12px;
}

.orders-table th {
    height: 45px;

    padding: 0 14px;

    text-align: left;

    color: #718198;

    background: rgba(8,13,22,.45);

    border-bottom: 1px solid var(--border);

    font-size: 10px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: .55px;

    white-space: nowrap;
}

.orders-table td {
    height: 72px;

    padding: 10px 14px;

    border-bottom: 1px solid rgba(32,44,62,.75);

    vertical-align: middle;
}

.orders-table tbody tr {
    transition: .12s ease;
}

.orders-table tbody tr:hover {
    background: rgba(20,134,255,.035);
}

.orders-table tbody tr:last-child td {
    border-bottom: 0;
}

.order-number {
    color: #5aafff;

    font-weight: 800;
}

.order-number:hover {
    color: #8bc7ff;
}

.small {
    font-size: 10px;
}

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

.money {
    text-align: right !important;

    white-space: nowrap;
}

.margin {
    color: #34dfa8;

    font-weight: 800;
}


/* LOCATIONS */

.location {
    display: flex;
    align-items: center;

    min-width: 140px;
}

.location-dot {
    width: 8px;
    height: 8px;

    flex: 0 0 8px;

    margin-right: 9px;

    border-radius: 50%;
}

.location-dot.loading {
    background: var(--blue);

    box-shadow:
        0 0 9px rgba(20,134,255,.65);
}

.location-dot.unloading {
    background: var(--orange);

    box-shadow:
        0 0 9px rgba(255,159,67,.55);
}

.location strong,
.location span {
    display: block;
}

.location span {
    max-width: 170px;

    margin-top: 3px;

    overflow: hidden;

    color: var(--muted);

    font-size: 10px;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* CARRIER */

.carrier {
    display: flex;
    align-items: center;

    min-width: 145px;
}

.carrier-icon {
    width: 28px;
    height: 28px;

    flex: 0 0 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-right: 8px;

    border-radius: 7px;

    background: #17263a;

    color: #67b7ff;

    font-weight: 800;
}

.carrier strong,
.carrier span {
    display: block;
}

.carrier span {
    margin-top: 2px;

    color: var(--muted);

    font-size: 10px;
}


/* BADGES */

.badge {
    display: inline-flex;
    align-items: center;

    min-height: 25px;

    padding: 0 9px;

    border-radius: 6px;

    font-size: 10px;
    font-weight: 800;

    white-space: nowrap;
}

.badge.planned {
    color: #b18cff;
    background: rgba(168,121,255,.12);
    border: 1px solid rgba(168,121,255,.18);
}

.badge.transit {
    color: #5ab4ff;
    background: rgba(20,134,255,.12);
    border: 1px solid rgba(20,134,255,.2);
}

.badge.loaded {
    color: #ffae58;
    background: rgba(255,159,67,.12);
    border: 1px solid rgba(255,159,67,.2);
}

.badge.unloaded {
    color: #37dda6;
    background: rgba(36,211,155,.11);
    border: 1px solid rgba(36,211,155,.18);
}

.badge.completed {
    color: #9ba9bb;
    background: rgba(129,144,167,.1);
    border: 1px solid rgba(129,144,167,.17);
}

.more {
    border: 0;

    background: transparent;

    color: #6e7c91;

    font-size: 15px;

    cursor: pointer;
}


/* EMPTY */

.empty-state {
    padding: 80px 20px;

    text-align: center;
}

.empty-icon {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 16px;

    border-radius: 14px;

    background: rgba(20,134,255,.1);

    color: var(--blue-light);

    font-size: 27px;
}

.empty-state h3 {
    margin: 0 0 8px;

    font-size: 17px;
}

.empty-state p {
    max-width: 450px;

    margin: 0 auto 20px;

    color: var(--muted);

    font-size: 12px;
}


/* ==========================================================
   SANDY TMS - ORDER FORM
   ========================================================== */

.order-form {
    max-width: 1500px;
    margin: 0 auto;
}

.order-head {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 20px;
}

.order-head-actions {
    display: flex;
    gap: 10px;
}

.form-label {
    display: block;

    margin-bottom: 5px;

    color: var(--muted);

    font-size: 10px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: .7px;
}

.generated-number {
    color: #67b7ff;

    font-size: 20px;
    font-weight: 800;
}

.form-section {
    margin-bottom: 18px;

    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 12px;

    background:
        linear-gradient(
            180deg,
            rgba(17,26,40,.98),
            rgba(12,19,30,.98)
        );
}

.section-title {
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 18px;

    border-bottom: 1px solid var(--border);

    font-size: 13px;
    font-weight: 800;
}

.section-title div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title strong {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 25px;
    height: 25px;

    border-radius: 6px;

    font-size: 10px;
}

.section-title span {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .7px;
}

.section-title.blue strong {
    color: #65b9ff;
    background: rgba(20,134,255,.14);
}

.loading-title {
    color: #6ebcff;
    background: rgba(20,134,255,.035);
}

.loading-title strong {
    color: #6ebcff;
    background: rgba(20,134,255,.14);
}

.loading-title span {
    color: #579dd9;
}

.unloading-title {
    color: #ffb363;
    background: rgba(255,159,67,.035);
}

.unloading-title strong {
    color: #ffb363;
    background: rgba(255,159,67,.13);
}

.unloading-title span {
    color: #d98b3f;
}

.finance-title {
    color: #39dda8;
    background: rgba(36,211,155,.025);
}

.finance-title strong {
    color: #39dda8;
    background: rgba(36,211,155,.12);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 16px;

    padding: 18px;
}

.field {
    min-width: 0;
}

.field.span-2 {
    grid-column: span 2;
}

.field.span-4 {
    grid-column: span 4;
}

.field label {
    display: block;

    margin-bottom: 7px;

    color: #8595aa;

    font-size: 10px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .4px;
}

.field input,
.field select,
.field textarea {
    width: 100%;

    border: 1px solid #263448;
    border-radius: 7px;

    outline: none;

    background: #0c1420;

    color: #edf4ff;

    transition: border-color .15s, box-shadow .15s;
}

.field input,
.field select {
    height: 40px;
    padding: 0 11px;
}

.field textarea {
    padding: 11px;

    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: #168cff;

    box-shadow:
        0 0 0 3px rgba(22,140,255,.08);
}

.field input::placeholder,
.field textarea::placeholder {
    color: #46566c;
}

.subheading {
    margin: 2px 18px 0;
    padding-top: 16px;

    color: #6d7f97;

    border-top: 1px solid rgba(32,44,62,.65);

    font-size: 10px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: .6px;
}

.checkbox-field {
    display: flex;
    align-items: flex-end;
}

.checkbox-field label {
    height: 40px;

    display: flex;
    align-items: center;

    margin: 0;

    cursor: pointer;
}

.checkbox-field input {
    width: 17px;
    height: 17px;

    margin-right: 8px;
}

.form-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 18px;

    text-decoration: none;
}

.save-large {
    min-width: 180px;
}

.form-footer {
    display: flex;
    justify-content: flex-end;

    gap: 10px;

    padding: 5px 0 35px;
}

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

    .field.span-4 {
        grid-column: span 2;
    }
}


/* ==========================================================
   SANDY TMS - MULTI STOP
   ========================================================== */

.stops-toolbar {
    min-height: 70px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 14px 18px;

    border-bottom:
        1px solid var(--border);
}

.stops-toolbar strong {
    display: block;

    font-size: 13px;
}

.stops-toolbar span {
    display: block;

    margin-top: 4px;

    color: var(--muted);

    font-size: 10px;
}

.stop-actions {
    display: flex;

    gap: 8px;
}

.btn-stop {
    height: 36px;

    padding: 0 13px;

    border-radius: 7px;

    background: transparent;

    font-size: 11px;
    font-weight: 800;

    cursor: pointer;
}

.btn-stop.loading {
    color: #66b9ff;

    border:
        1px solid
        rgba(20,134,255,.35);

    background:
        rgba(20,134,255,.08);
}

.btn-stop.unloading {
    color: #ffad57;

    border:
        1px solid
        rgba(255,159,67,.35);

    background:
        rgba(255,159,67,.08);
}

#stopsContainer {
    padding: 18px;
}

.stop-card {
    overflow: hidden;

    margin-bottom: 14px;

    border:
        1px solid var(--border);

    border-radius: 10px;

    background:
        rgba(7,12,20,.38);
}

.stop-card:last-child {
    margin-bottom: 0;
}

.stop-card.loading-stop {
    border-left:
        3px solid #168cff;
}

.stop-card.unloading-stop {
    border-left:
        3px solid #ff9f43;
}

.stop-card-head {
    min-height: 54px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 14px;

    border-bottom:
        1px solid var(--border);
}

.stop-ident {
    display: flex;
    align-items: center;

    gap: 10px;
}

.stop-number {
    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 7px;

    background: #172336;

    color: #a9b7ca;

    font-size: 11px;
    font-weight: 900;
}

.loading-stop .stop-number {
    color: #65b9ff;

    background:
        rgba(20,134,255,.14);
}

.unloading-stop .stop-number {
    color: #ffad57;

    background:
        rgba(255,159,67,.13);
}

.stop-title {
    display: block;

    font-size: 12px;
}

.loading-stop .stop-title {
    color: #69bbff;
}

.unloading-stop .stop-title {
    color: #ffad57;
}

.stop-subtitle {
    display: block;

    margin-top: 2px;

    color: var(--muted);

    font-size: 9px;

    text-transform: uppercase;

    letter-spacing: .5px;
}

.remove-stop {
    width: 30px;
    height: 30px;

    border:
        1px solid transparent;

    border-radius: 6px;

    background: transparent;

    color: #65758b;

    font-size: 20px;

    cursor: pointer;
}

.remove-stop:hover {
    color: #ff7180;

    border-color:
        rgba(255,100,117,.2);

    background:
        rgba(255,100,117,.08);
}

.stop-grid {
    padding: 15px;
}

.margin-preview {
    height: 40px;

    display: flex;
    align-items: center;

    padding: 0 12px;

    border:
        1px solid
        rgba(36,211,155,.2);

    border-radius: 7px;

    background:
        rgba(36,211,155,.06);

    color: #38dfa9;

    font-size: 12px;
    font-weight: 800;
}

.margin-preview.negative {
    color: #ff7180;

    border-color:
        rgba(255,100,117,.2);

    background:
        rgba(255,100,117,.06);
}


/* ==========================================================
   SANDY TMS - MASTER DATA
   ========================================================== */

.nav-divider {
    height: 1px;

    margin: 14px 14px;

    background: var(--border);
}

.nav-caption {
    padding: 0 18px 7px;

    color: #52627a;

    font-size: 9px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-bottom {
    position: absolute;

    left: 18px;
    right: 18px;
    bottom: 18px;
}

.system-status {
    display: flex;
    align-items: center;

    gap: 7px;

    color: #75869d;

    font-size: 10px;
}

.status-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #24d39b;

    box-shadow:
        0 0 8px
        rgba(36,211,155,.55);
}

.version {
    margin-top: 7px;

    color: #3e4d61;

    font-size: 9px;
}

.master-head {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 18px;
}

.master-head h2 {
    margin: 0;

    font-size: 18px;
}

.master-head p {
    margin: 5px 0 0;

    color: var(--muted);

    font-size: 11px;
}

.master-new {
    display: inline-flex;
    align-items: center;

    text-decoration: none;
}

.master-table-wrap {
    overflow-x: auto;
}

.master-table {
    width: 100%;

    border-collapse: collapse;
}

.master-table th {
    padding: 12px 14px;

    border-bottom:
        1px solid var(--border);

    color: #66768c;

    font-size: 9px;
    font-weight: 800;

    text-align: left;

    text-transform: uppercase;

    letter-spacing: .55px;
}

.master-table td {
    padding: 14px;

    border-bottom:
        1px solid rgba(32,44,62,.7);

    color: #a9b6c8;

    font-size: 11px;

    vertical-align: middle;
}

.master-table tr:last-child td {
    border-bottom: 0;
}

.master-table tbody tr:hover {
    background:
        rgba(20,134,255,.025);
}

.master-table td strong {
    color: #e7effb;
}

.master-number {
    color: #5eaeff !important;

    font-family: monospace;

    font-weight: 800;
}

.master-status {
    display: inline-flex;

    padding: 5px 8px;

    border-radius: 5px;

    font-size: 9px;
    font-weight: 800;

    text-transform: uppercase;
}

.master-status.active {
    color: #2bdda5;

    background:
        rgba(36,211,155,.09);
}

.master-status.inactive {
    color: #8b98aa;

    background:
        rgba(129,144,167,.08);
}

.master-action {
    text-align: right;
}

.master-action a {
    color: #58adff;

    text-decoration: none;

    font-size: 10px;
    font-weight: 700;
}

.master-action a:hover {
    text-decoration: underline;
}

.master-empty {
    padding: 50px !important;

    color: var(--muted) !important;

    text-align: center;
}

.master-form {
    max-width: 1400px;

    margin: 0 auto;
}


/* ==========================================================
   SANDY TMS 0.2 - ORDER MANAGEMENT
   ========================================================== */

.orders-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 16px;
}

.orders-filter {
    display: flex;
    align-items: center;

    gap: 8px;
}

.order-search input {
    width: 340px;
    height: 38px;

    padding: 0 12px;

    border: 1px solid var(--border);
    border-radius: 7px;

    outline: none;

    background: #0c1420;

    color: var(--text);
}

.orders-filter select {
    height: 38px;

    padding: 0 10px;

    border: 1px solid var(--border);
    border-radius: 7px;

    background: #0c1420;

    color: var(--text);
}

.orders-filter button {
    height: 38px;

    padding: 0 15px;
}

.filter-reset {
    margin-left: 5px;

    color: var(--muted);

    font-size: 10px;

    text-decoration: none;
}

.orders-new {
    display: inline-flex;
    align-items: center;

    text-decoration: none;
}

.orders-table-wrap {
    overflow-x: auto;
}

.orders-table {
    width: 100%;

    border-collapse: collapse;
}

.orders-table th {
    padding: 11px 12px;

    border-bottom:
        1px solid var(--border);

    color: #687991;

    font-size: 9px;
    font-weight: 800;

    text-align: left;

    text-transform: uppercase;

    letter-spacing: .5px;
}

.orders-table td {
    padding: 13px 12px;

    border-bottom:
        1px solid
        rgba(32,44,62,.7);

    color: #a7b4c6;

    font-size: 10px;

    vertical-align: middle;
}

.order-row {
    cursor: pointer;

    transition:
        background .12s;
}

.order-row:hover {
    background:
        rgba(20,134,255,.035);
}

.order-number {
    display: block;

    color: #61b4ff;

    font-size: 11px;
}

.order-reference {
    display: block;

    margin-top: 3px;

    color: #65758b;

    font-size: 9px;
}

.route-place {
    display: flex;
    align-items: center;

    gap: 8px;
}

.route-place strong {
    display: block;

    color: #dce6f3;
}

.route-place small {
    display: block;

    margin-top: 2px;

    color: #64758c;

    font-size: 9px;
}

.route-dot {
    width: 7px;
    height: 7px;

    flex: 0 0 auto;

    border-radius: 50%;
}

.loading-place .route-dot {
    background: #168cff;

    box-shadow:
        0 0 7px
        rgba(22,140,255,.5);
}

.unloading-place .route-dot {
    background: #ff9f43;

    box-shadow:
        0 0 7px
        rgba(255,159,67,.45);
}

.number-cell {
    text-align: right !important;

    white-space: nowrap;
}

.margin-positive {
    color: #29dca5;
}

.margin-negative {
    color: #ff6c7c;
}

.table-time {
    display: block;

    margin-top: 3px;

    color: #718198;
}

.not-dispatched {
    color: #7c899a;

    font-style: italic;
}

.order-status {
    display: inline-flex;
    align-items: center;

    padding: 5px 8px;

    border-radius: 5px;

    font-size: 8px;
    font-weight: 900;

    text-transform: uppercase;

    white-space: nowrap;
}

.status-open {
    color: #a6b4c7;

    background:
        rgba(129,144,167,.1);
}

.status-planned {
    color: #62b5ff;

    background:
        rgba(20,134,255,.11);
}

.status-loaded {
    color: #ad88ff;

    background:
        rgba(168,121,255,.1);
}

.status-in_transit {
    color: #ffad57;

    background:
        rgba(255,159,67,.1);
}

.status-unloaded {
    color: #42d9c2;

    background:
        rgba(66,217,194,.1);
}

.status-completed {
    color: #29dca5;

    background:
        rgba(36,211,155,.1);
}

.status-cancelled {
    color: #ff6f7f;

    background:
        rgba(255,100,117,.1);
}

.row-open {
    color: #52657d !important;

    font-size: 19px !important;

    text-align: right;
}

.orders-empty {
    padding: 60px !important;

    text-align: center;
}

.orders-empty strong,
.orders-empty span {
    display: block;
}

.orders-empty span {
    margin-top: 7px;

    color: var(--muted);
}


/* DETAIL */

.detail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 18px;
}

.detail-head-left {
    display: flex;
    align-items: center;

    gap: 12px;
}

.detail-reference {
    color: var(--muted);

    font-size: 10px;
}

.detail-reference strong {
    color: #c9d5e4;
}

.detail-actions {
    display: flex;

    gap: 8px;
}

.detail-button {
    display: inline-flex;
    align-items: center;

    text-decoration: none;
}

.detail-grid {
    display: grid;
    grid-template-columns:
        1fr 1fr 320px;

    gap: 14px;

    margin-bottom: 16px;
}

.detail-card {
    min-height: 145px;

    padding: 17px;

    border:
        1px solid var(--border);

    border-radius: 10px;

    background:
        linear-gradient(
            180deg,
            rgba(17,26,40,.98),
            rgba(12,19,30,.98)
        );
}

.detail-card-title {
    margin-bottom: 13px;

    color: #687991;

    font-size: 9px;
    font-weight: 900;

    text-transform: uppercase;

    letter-spacing: .6px;
}

.detail-company {
    margin-bottom: 7px;

    color: #e8f0fa;

    font-size: 14px;
    font-weight: 800;
}

.detail-address {
    color: #91a0b4;

    font-size: 10px;

    line-height: 1.6;
}

.detail-meta {
    margin-top: 9px;

    color: #718299;

    font-size: 9px;
}

.detail-unassigned {
    color: #718096;

    font-size: 11px;

    font-style: italic;
}

.finance-line {
    display: flex;
    justify-content: space-between;

    padding: 5px 0;

    color: #8191a6;

    font-size: 10px;
}

.finance-line strong {
    color: #e0e9f5;
}

.margin-line {
    margin-top: 5px;
    padding-top: 10px;

    border-top:
        1px solid var(--border);
}

.margin-line strong {
    color: #2bdba5;

    font-size: 13px;
}

.finance-percent {
    margin-top: 3px;

    color: #2bdba5;

    font-size: 9px;

    text-align: right;
}

.detail-section {
    margin-bottom: 15px;
}

.route-timeline {
    padding: 18px;
}

.timeline-stop {
    position: relative;

    display: flex;

    gap: 14px;

    padding-bottom: 22px;
}

.timeline-stop:last-child {
    padding-bottom: 0;
}

.timeline-stop:not(:last-child)::before {
    content: "";

    position: absolute;

    left: 14px;
    top: 31px;
    bottom: 0;

    width: 1px;

    background: #29384c;
}

.timeline-marker {
    position: relative;
    z-index: 2;

    width: 29px;
    height: 29px;

    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    font-size: 9px;
    font-weight: 900;
}

.timeline-loading {
    color: #69bbff;

    border:
        1px solid
        rgba(22,140,255,.35);

    background: #10233a;
}

.timeline-unloading {
    color: #ffad57;

    border:
        1px solid
        rgba(255,159,67,.35);

    background: #2c2118;
}

.timeline-content {
    flex: 1;

    padding: 3px 0 0;
}

.timeline-top {
    display: flex;
    justify-content: space-between;

    gap: 20px;
}

.timeline-top strong {
    margin-left: 8px;

    color: #e0e9f5;

    font-size: 12px;
}

.stop-kind {
    padding: 3px 6px;

    border-radius: 4px;

    font-size: 8px;
    font-weight: 900;

    text-transform: uppercase;
}

.kind-loading {
    color: #66b9ff;

    background:
        rgba(20,134,255,.1);
}

.kind-unloading {
    color: #ffad57;

    background:
        rgba(255,159,67,.1);
}

.timeline-date {
    color: #b4c0d0;

    font-size: 10px;

    text-align: right;
}

.timeline-date span {
    margin-left: 8px;

    color: #718198;
}

.timeline-address {
    margin-top: 7px;

    color: #8292a7;

    font-size: 10px;
}

.timeline-info {
    display: flex;
    flex-wrap: wrap;

    gap: 15px;

    margin-top: 7px;

    color: #697a91;

    font-size: 9px;
}

.timeline-info strong {
    color: #a8b7ca;
}

.timeline-notes {
    margin-top: 8px;

    padding: 8px 10px;

    border-radius: 5px;

    background:
        rgba(255,255,255,.025);

    color: #8190a4;

    font-size: 9px;
}

.cargo-grid {
    display: grid;
    grid-template-columns:
        repeat(4, 1fr);

    gap: 1px;

    background: var(--border);
}

.cargo-grid > div {
    min-height: 75px;

    padding: 15px;

    background: #0e1724;
}

.cargo-grid span {
    display: block;

    margin-bottom: 7px;

    color: #64758c;

    font-size: 8px;
    font-weight: 800;

    text-transform: uppercase;
}

.cargo-grid strong {
    color: #dce5f1;

    font-size: 11px;
}

.detail-notes {
    padding: 18px;

    color: #9ba9ba;

    font-size: 10px;

    white-space: pre-wrap;
}

.status-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 16px 18px;

    margin-bottom: 30px;

    border:
        1px solid var(--border);

    border-radius: 10px;

    background: #0e1724;
}

.status-panel > div strong,
.status-panel > div span {
    display: block;
}

.status-panel > div strong {
    font-size: 11px;
}

.status-panel > div span {
    margin-top: 4px;

    color: var(--muted);

    font-size: 9px;
}

.status-form {
    display: flex;

    gap: 8px;
}

.status-form select {
    min-width: 160px;
    height: 38px;

    padding: 0 10px;

    border:
        1px solid var(--border);

    border-radius: 7px;

    background: #09111c;

    color: var(--text);
}
