:root {
    --pt-bg: #f4f6f9;
    --pt-navy: #101826;
    --pt-navy-2: #182235;
    --pt-blue: #2f6fed;
    --pt-cyan: #26b5c8;
    --pt-green: #2fb47c;
    --pt-orange: #f59f45;
    --pt-red: #e85d68;
    --pt-border: #e3e8ef;
    --pt-text: #172234;
    --pt-muted: #718096;
    --pt-radius: 14px
}

* {
    box-sizing: border-box
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--pt-bg);
    color: var(--pt-text)
}

.app-shell {
    min-height: 100vh
}

.sidebar {
    background: var(--pt-navy) !important;
    border: 0;
    width: 250px
}

.sidebar .container-fluid {
    padding: 0 16px;
    min-height: 100vh;
    display: flex;
    flex-direction: column
}

.navbar-brand {
    font-size: 21px;
    gap: 10px;
    padding: 20px 8px;
    color: #fff
}

.brand-mark {
    height: 36px;
    width: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2f6fed, #26b5c8);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 8px 24px rgba(47, 111, 237, .28)
}

.brand-accent {
    color: #50d2e1
}

.sidebar .nav-link {
    border-radius: 9px;
    margin: 3px 0;
    padding: 10px 12px;
    color: #94a3b8
}

.sidebar .nav-link:hover {
    background: rgba(255, 255, 255, .05);
    color: #fff
}

.sidebar .nav-link.active {
    background: rgba(47, 111, 237, .18);
    color: #fff
}

.sidebar .nav-link-icon {
    font-size: 20px;
    margin-right: 10px
}

.nav-section {
    padding: 10px 12px 5px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .13em;
    color: #526078;
    font-weight: 700
}

.sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 18px 8px;
    color: #94a3b8
}

.sidebar-footer .progress {
    background: rgba(255, 255, 255, .08);
    margin-bottom: 8px
}

.page-wrapper {
    background: var(--pt-bg)
}

.topbar {
    height: 68px;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--pt-border);
    position: sticky;
    top: 0;
    z-index: 1000
}

.topbar .container-xl {
    max-width: none
}

.topbar-search {
    width: min(580px, 55vw)
}

.topbar-search>i {
    position: absolute;
    left: 14px;
    top: 12px;
    color: #8792a5;
    z-index: 2;
    font-size: 19px
}

.topbar-search .form-control {
    height: 42px;
    padding-left: 42px;
    padding-right: 54px;
    background: #f6f8fb;
    border: 1px solid #e4e9f0;
    border-radius: 10px
}

.topbar-search kbd {
    position: absolute;
    right: 11px;
    top: 10px;
    background: #fff;
    border: 1px solid #dfe4ea;
    box-shadow: none;
    color: #8190a5;
    font-family: inherit
}

.search-results {
    display: none;
    position: absolute;
    top: 48px;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--pt-border);
    border-radius: 12px;
    box-shadow: 0 18px 50px rgba(16, 24, 38, .15);
    padding: 6px;
    z-index: 2000
}

.search-results.show {
    display: block
}

.search-result {
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.search-result:hover {
    background: #f1f5fa
}

.notification-pulse {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--pt-red);
    border: 2px solid #fff;
    border-radius: 50%;
    top: 7px;
    right: 8px
}

.notifications-menu {
    width: 380px
}

.page-body {
    margin-top: 15px;
    padding: 0px 0 28px
}

.container-xl {
    max-width: 1500px
}

.view {
    display: none
}

.active-view {
    display: block
}

.page-heading,
.profile-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px
}

.page-heading h2,
.profile-heading h2 {
    font-size: 28px;
    margin: 2px 0 3px;
    letter-spacing: -.02em
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .11em;
    color: var(--pt-blue);
    font-weight: 700;
    font-size: 10px
}

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

.btn {
    border-radius: 9px;
    font-weight: 600
}

.btn-primary {
    background: var(--pt-blue);
    border-color: var(--pt-blue)
}

.card {
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius);
    box-shadow: 0 2px 7px rgba(15, 23, 42, .025);
    overflow: hidden
}

.card-header {
    min-height: 66px;
    border-color: var(--pt-border)
}

.card-title {
    font-weight: 700
}

.metric-card .card-body {
    padding: 18px
}

.metric-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--pt-muted);
    font-size: 13px;
    font-weight: 600
}

.metric-icon {
    width: 35px;
    height: 35px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px
}

.metric-icon.blue {
    background: #eaf0ff;
    color: var(--pt-blue)
}

.metric-icon.cyan {
    background: #e8fafc;
    color: #1395a7
}

.metric-icon.coral {
    background: #fff0f1;
    color: var(--pt-red)
}

.metric-icon.green {
    background: #e8f8f1;
    color: var(--pt-green)
}

.metric-value {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -.04em;
    margin: 8px 0 2px
}

.metric-foot {
    font-size: 11px;
    color: var(--pt-muted)
}

.metric-foot.positive {
    color: #20865e
}

.metric-foot.negative {
    color: #d24b57
}

.map-header {
    justify-content: space-between
}

.map-filters {
    display: flex;
    background: #f2f4f8;
    padding: 3px;
    border-radius: 8px
}

.map-filters .btn {
    border: 0;
    color: #718096
}

.map-filters .btn.active {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
    color: #1f2937
}

#network-map {
    height: 442px;
    background: #dbe7ef
}

.map-card .card-body {
    position: relative
}

.map-legend {
    position: absolute;
    z-index: 500;
    bottom: 15px;
    left: 15px;
    background: rgba(255, 255, 255, .93);
    box-shadow: 0 5px 20px rgba(15, 23, 42, .13);
    border-radius: 9px;
    padding: 9px 12px;
    display: flex;
    gap: 16px;
    font-size: 11px;
    font-weight: 600
}

.legend-dot {
    width: 8px;
    height: 8px;
    display: inline-block;
    border-radius: 50%;
    margin-right: 5px
}

.legend-dot.transit {
    background: var(--pt-blue)
}

.legend-dot.port {
    background: var(--pt-orange)
}

.legend-dot.issue {
    background: var(--pt-red)
}

.legend-dot.done {
    background: var(--pt-green)
}

.leaflet-control-attribution {
    font-size: 8px !important
}

.custom-marker {
    border-radius: 50%;
    width: 24px !important;
    height: 24px !important;
    margin: -12px 0 0 -12px !important;
    border: 3px solid white;
    box-shadow: 0 2px 9px rgba(0, 0, 0, .32)
}

.marker-azure {
    background: var(--pt-blue)
}

.marker-orange {
    background: var(--pt-orange)
}

.marker-red {
    background: var(--pt-red)
}

.marker-green {
    background: var(--pt-green)
}

.change-item {
    padding: 16px 18px;
    cursor: pointer
}

.change-item:hover {
    background: #fafbfd
}

.change-item .avatar {
    font-size: 17px
}

.change-title {
    font-size: 13px;
    font-weight: 600
}

.change-meta {
    font-size: 11px;
    color: var(--pt-muted);
    margin-top: 2px
}

.route-text {
    font-size: 12px;
    color: var(--pt-muted)
}

.container-code {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    font-weight: 600;
    color: #22334d
}

.progress.progress-xs {
    height: 4px
}

.donut-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px
}

.donut {
    height: 150px;
    width: 150px;
    border-radius: 50%;
    background: conic-gradient(var(--pt-blue) 0 65.6%, var(--pt-orange) 65.6% 85.9%, var(--pt-red) 85.9% 91.4%, var(--pt-green) 91.4%);
    display: grid;
    place-items: center
}

.donut:before {
    content: '';
    position: absolute;
    width: 105px;
    height: 105px;
    background: #fff;
    border-radius: 50%
}

.donut>div {
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column
}

.donut strong {
    font-size: 25px
}

.donut span {
    font-size: 11px;
    color: var(--pt-muted)
}

.donut-legend {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 12px
}

.donut-legend>div {
    display: grid;
    grid-template-columns: 12px 1fr 25px;
    gap: 8px;
    align-items: center
}

.swatch {
    width: 8px;
    height: 8px;
    border-radius: 2px
}

.swatch.blue {
    background: var(--pt-blue)
}

.swatch.orange {
    background: var(--pt-orange)
}

.swatch.red {
    background: var(--pt-red)
}

.swatch.green {
    background: var(--pt-green)
}

.profile-heading {
    justify-content: flex-start
}

.container-title {
    margin-left: 4px
}

.container-title h2 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 24px
}

.copy-btn {
    border: 0;
    background: transparent;
    color: var(--pt-muted)
}

.profile-tabs {
    display: flex;
    border-bottom: 1px solid var(--pt-border);
    margin-bottom: 20px;
    gap: 4px
}

.profile-tabs button {
    border: 0;
    background: transparent;
    padding: 11px 15px;
    font-weight: 600;
    color: var(--pt-muted);
    position: relative
}

.profile-tabs button.active {
    color: var(--pt-blue)
}

.profile-tabs button.active:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 10px;
    right: 10px;
    height: 2px;
    background: var(--pt-blue);
    border-radius: 2px
}

.profile-tab {
    display: none
}

.active-profile-tab {
    display: block
}

.summary-card .card-body {
    padding: 17px 18px
}

.summary-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--pt-muted);
    font-weight: 700
}

.summary-value {
    font-weight: 600;
    margin-top: 6px
}

.summary-value.mono {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px
}

#profile-map {
    height: 395px
}

.journey-bar {
    position: relative;
    height: 5px;
    background: #e8edf3;
    border-radius: 3px;
    margin: 8px 0 14px
}

.journey-bar div {
    height: 100%;
    background: linear-gradient(90deg, var(--pt-blue), var(--pt-cyan));
    border-radius: 3px
}

.journey-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--pt-muted)
}

.timeline {
    position: relative
}

.timeline:before {
    content: '';
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 10px;
    width: 1px;
    background: #dfe5ed
}

.timeline-item {
    position: relative;
    padding-left: 36px;
    padding-bottom: 23px
}

.timeline-item:last-child {
    padding-bottom: 0
}

.timeline-dot {
    position: absolute;
    left: 3px;
    top: 3px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px #dce3eb
}

.timeline-dot.blue {
    background: var(--pt-blue)
}

.timeline-dot.green {
    background: var(--pt-green)
}

.timeline-dot.orange {
    background: var(--pt-orange)
}

.timeline-dot.red {
    background: var(--pt-red)
}

.timeline-time {
    font-size: 10px;
    color: var(--pt-muted);
    font-family: 'IBM Plex Mono', monospace
}

.timeline-title {
    font-size: 13px;
    font-weight: 700;
    margin-top: 2px
}

.timeline-place,
.timeline-note {
    font-size: 11px;
    color: var(--pt-muted)
}

.placeholder {
    padding: 100px 20px
}

.placeholder .empty-img,
.empty .empty-img {
    font-size: 70px;
    color: #b2bdca
}

.badge.bg-azure-lt {
    color: #2060cb !important
}

.table th {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #8490a2
}

.table td {
    font-size: 12px
}

.search-results .badge {
    font-size: 9px
}

@media(max-width:991.98px) {
    .sidebar {
        width: 100%;
        min-height: auto
    }

    .sidebar .container-fluid {
        min-height: auto
    }

    .sidebar-footer {
        display: none
    }

    .topbar {
        top: 56px
    }

    .page-body {
        padding-top: 20px
    }

    #network-map {
        height: 360px
    }

    .page-heading {
        align-items: flex-start
    }

    .map-legend {
        flex-wrap: wrap;
        gap: 8px 13px
    }

    .profile-heading {
        flex-wrap: wrap
    }

    .profile-heading .page-actions {
        width: 100%;
        margin-left: 0 !important
    }

    .profile-heading .page-actions .btn {
        flex: 1
    }

    .topbar-search {
        width: 55vw
    }
}

@media(max-width:575.98px) {
    .topbar {
        height: 62px
    }

    .topbar-search {
        width: calc(100vw - 125px)
    }

    .topbar-search kbd,
    .topbar .avatar+div {
        display: none !important
    }

    .page-body {
        padding: 16px 0 35px
    }

    .page-heading {
        margin-bottom: 17px
    }

    .page-heading h2 {
        font-size: 23px
    }

    .page-heading .page-actions .btn:first-child {
        display: none
    }

    .metric-card .card-body {
        padding: 14px
    }

    .metric-value {
        font-size: 25px
    }

    .metric-top {
        font-size: 11px
    }

    .metric-icon {
        width: 30px;
        height: 30px
    }

    .map-header {
        align-items: flex-start;
        gap: 8px
    }

    .map-filters {
        display: none
    }

    #network-map {
        height: 330px
    }

    .map-legend {
        right: 12px;
        bottom: 12px
    }

    .notifications-menu {
        width: min(360px, 95vw)
    }

    .donut-wrap {
        padding: 8px 0
    }

    .profile-tabs {
        overflow-x: auto
    }

    .profile-tabs button {
        white-space: nowrap
    }

    .summary-card .card-body {
        padding: 13px
    }

    .container-title h2 {
        font-size: 19px
    }

    .container-title {
        min-width: 0
    }

    .profile-heading .btn-outline-secondary {
        display: none
    }

    #profile-map {
        height: 330px
    }

    .table td,
    .table th {
        white-space: nowrap
    }

    .route-text {
        max-width: 180px;
        white-space: normal
    }

    .page-actions {
        flex-shrink: 0
    }
}