:root {
    --gx-bg: #eef5f4;
    --gx-bg-soft: #e3efed;
    --gx-panel: rgba(255, 255, 255, 0.88);
    --gx-panel-strong: rgba(249, 252, 252, 0.96);
    --gx-line: rgba(29, 87, 98, 0.12);
    --gx-line-strong: rgba(24, 207, 255, 0.2);
    --gx-text: #14252f;
    --gx-muted: #687c84;
    --gx-cyan: #18cfff;
    --gx-blue: #2176ff;
    --gx-lime: #77d91f;
    --gx-shadow: 0 24px 70px rgba(26, 63, 73, 0.14);
    --gx-page-gap: 0.8rem;
    --gx-control-height: 2.55rem;
    --gx-control-radius: 10px;
    --gx-card-radius: 13px;
    --gx-table-cell-y: 0.55rem;
    --gx-table-cell-x: 0.7rem;
}

* {
    font-family: "Prompt", "Segoe UI", sans-serif;
}

html,
body {
    height: 100%;
}

body {
    min-height: 100vh;
    color: var(--gx-text);
    background:
        radial-gradient(circle at 15% 12%, rgba(24, 207, 255, 0.16), transparent 24%),
        radial-gradient(circle at 85% 16%, rgba(119, 217, 31, 0.12), transparent 22%),
        radial-gradient(circle at 55% 85%, rgba(33, 118, 255, 0.08), transparent 20%),
        linear-gradient(150deg, #f8fbfb 0%, #eef5f4 48%, #e5efed 100%);
    overflow: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(20, 37, 47, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 37, 47, 0.035) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

.gx-landing-shell {
    min-height: 100vh;
    padding: 1.5rem;
    position: relative;
}

.gx-language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.5rem;
    border: 1px solid rgba(20, 37, 47, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);
}

.gx-language-switcher-inline {
    flex-shrink: 0;
}

.gx-landing-shell > .gx-language-switcher {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    z-index: 5;
}

.gx-language-label {
    font-size: 0.72rem;
    color: var(--gx-muted);
    font-weight: 600;
}

.gx-language-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    text-decoration: none;
    color: var(--gx-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.gx-language-link.active {
    background: linear-gradient(135deg, rgba(24, 207, 255, 0.2), rgba(119, 217, 31, 0.2));
    color: var(--gx-text);
}

.welcome-page {
    min-height: calc(100vh - 3rem);
    display: flex;
    align-items: center;
}

.welcome-grid {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.74fr);
    gap: 1rem;
    align-items: stretch;
}

.welcome-hero,
.welcome-login-card {
    border: 1px solid rgba(20, 37, 47, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 28px 60px rgba(26, 63, 73, 0.1);
    backdrop-filter: blur(14px);
}

.welcome-hero {
    height: 100%;
    padding: 1.6rem;
    background:
        radial-gradient(circle at top left, rgba(24, 207, 255, 0.16), transparent 25%),
        radial-gradient(circle at bottom right, rgba(119, 217, 31, 0.12), transparent 24%),
        rgba(255, 255, 255, 0.88);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.welcome-hero-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.welcome-hero-logo {
    width: 4rem;
    height: 4rem;
    object-fit: contain;
    border-radius: 18px;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(20, 37, 47, 0.08);
    box-shadow: 0 12px 24px rgba(26, 63, 73, 0.08);
}

.welcome-kicker,
.welcome-login-kicker {
    color: var(--gx-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    font-weight: 700;
}

.welcome-hero-subtitle {
    margin-top: 0.18rem;
    font-size: 0.82rem;
    color: var(--gx-muted);
}

.welcome-title {
    margin-top: 0.7rem;
    max-width: 12ch;
    font-size: clamp(2rem, 4.2vw, 3.6rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
    font-weight: 800;
    color: var(--gx-text);
}

.welcome-copy {
    max-width: 42rem;
    margin-top: 0.9rem;
    font-size: 0.96rem;
    line-height: 1.65;
    color: var(--gx-muted);
}

.welcome-summary-grid {
    margin-top: 1.35rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    align-items: stretch;
}

.welcome-summary-card {
    height: 100%;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(20, 37, 47, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    display: flex;
    flex-direction: column;
}

.welcome-summary-label {
    color: var(--gx-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.66rem;
    font-weight: 700;
}

.welcome-summary-value {
    margin-top: 0.25rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--gx-text);
}

.welcome-summary-text {
    margin-top: 0.32rem;
    font-size: 0.82rem;
    color: var(--gx-muted);
    line-height: 1.5;
    flex: 1 1 auto;
}

.welcome-quick-links {
    margin-top: 1.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.welcome-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.62rem 0.92rem;
    border-radius: 999px;
    border: 1px solid rgba(20, 37, 47, 0.08);
    background: rgba(255, 255, 255, 0.8);
    color: var(--gx-text);
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
}

.welcome-link:hover {
    border-color: rgba(24, 207, 255, 0.28);
    color: var(--gx-text);
}

.welcome-login-panel {
    display: flex;
    align-items: stretch;
}

.welcome-login-card {
    width: 100%;
    min-height: 100%;
    padding: 1.35rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.welcome-login-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1.25rem;
}

.welcome-login-logo {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    border-radius: 14px;
    padding: 0.4rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(20, 37, 47, 0.08);
}

.welcome-login-heading {
    margin-top: 0.18rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gx-text);
}

.welcome-login-form {
    display: grid;
    gap: 0.95rem;
}

.welcome-login-note {
    margin-top: 0.85rem;
    font-size: 0.82rem;
    color: var(--gx-muted);
    line-height: 1.55;
}

.welcome-auth-divider {
    margin: 1rem 0 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gx-muted);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.welcome-auth-divider::before,
.welcome-auth-divider::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: rgba(20, 37, 47, 0.08);
}

.welcome-signup-section {
    margin-top: 0.1rem;
}

.welcome-signup-heading {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--gx-text);
}

.welcome-signup-copy {
    margin-top: 0.22rem;
    font-size: 0.82rem;
    color: var(--gx-muted);
    line-height: 1.55;
}

.welcome-signup-form {
    margin-top: 0.85rem;
    display: grid;
    gap: 0.85rem;
}

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

.modal-backdrop {
    z-index: 2000 !important;
}

.modal {
    z-index: 2010 !important;
}

.modal-dialog {
    z-index: 2011 !important;
}

.modal-content {
    position: relative;
    z-index: 2012;
}

.app-shell {
    height: 100vh;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(16px);
    overflow: hidden;
}

.app-grid,
.sidebar-column,
.content-column,
.content-shell {
    min-height: 0;
    height: 100%;
}

.app-shell.sidebar-collapsed .sidebar-column {
    flex: 0 0 5.5rem;
    width: 5.5rem;
    max-width: 5.5rem;
}

.app-shell.sidebar-collapsed .content-column {
    flex: 1 1 auto;
    width: calc(100% - 5.5rem);
    max-width: calc(100% - 5.5rem);
}

.app-shell.sidebar-collapsed .gx-sidebar {
    padding-left: 0.6rem !important;
    padding-right: 0.6rem !important;
}

.app-shell.sidebar-collapsed .sidebar-brand {
    justify-content: center;
}

.app-shell.sidebar-collapsed .sidebar-brand > :not(.brand-mark) {
    display: none !important;
}

.app-shell.sidebar-collapsed .section-kicker,
.app-shell.sidebar-collapsed .gx-sidebar .nav-link span,
.app-shell.sidebar-collapsed .gx-nav-note {
    display: none !important;
}

.app-shell.sidebar-collapsed .gx-sidebar .nav {
    align-items: center;
}

.app-shell.sidebar-collapsed .gx-sidebar .nav-link {
    justify-content: center;
    width: 2.85rem;
    height: 2.85rem;
    padding: 0.5rem;
}

.app-shell.sidebar-collapsed .gx-sidebar .nav-link i {
    width: auto;
    font-size: 1.05rem;
    margin: 0;
}

.gx-panel {
    border: 1px solid var(--gx-line);
    border-radius: var(--gx-card-radius);
    background: linear-gradient(180deg, var(--gx-panel), var(--gx-panel-strong));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.gx-sidebar {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    border-right: 1px solid var(--gx-line);
    background: rgba(248, 252, 252, 0.84);
}

.gx-sidebar::-webkit-scrollbar,
.content-scroll::-webkit-scrollbar {
    width: 10px;
}

.gx-sidebar::-webkit-scrollbar-thumb,
.content-scroll::-webkit-scrollbar-thumb {
    background: rgba(20, 37, 47, 0.14);
    border-radius: 999px;
}

.sidebar-brand {
    padding-bottom: 0.8rem;
    margin-bottom: 0.8rem;
    border-bottom: 1px solid rgba(20, 37, 47, 0.08);
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--gx-line-strong);
    background:
        radial-gradient(circle at 30% 30%, rgba(24, 207, 255, 0.16), transparent 54%),
        linear-gradient(145deg, rgba(251, 254, 254, 0.98), rgba(232, 242, 240, 0.95));
    box-shadow: inset 0 0 30px rgba(24, 207, 255, 0.08);
    color: var(--gx-text);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.brand-logo {
    width: 26px;
    height: 26px;
    object-fit: contain;
    display: block;
}

.sidebar-brand-title {
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gx-text);
    line-height: 1.1;
}

.sidebar-brand-subtitle,
.section-kicker,
.gx-nav-note {
    color: var(--gx-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.64rem;
}

.section-kicker {
    font-weight: 700;
}

.gx-sidebar .nav-link {
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: var(--gx-text);
    padding: 0.46rem 0.65rem;
    font-size: 0.84rem;
    text-decoration: none;
}

.gx-sidebar .nav-link i {
    width: 1rem;
    font-size: 0.95rem;
    color: var(--gx-muted);
}

.gx-sidebar .nav-link:hover,
.gx-sidebar .nav-link:focus,
.gx-sidebar .nav-link.active {
    border-color: var(--gx-line-strong);
    color: var(--gx-text);
}

.gx-sidebar .nav-link.active {
    background:
        linear-gradient(90deg, rgba(24, 207, 255, 0.12), transparent 60%),
        rgba(255, 255, 255, 0.95);
    box-shadow: inset 0 0 24px rgba(24, 207, 255, 0.05);
}

.gx-sidebar .nav-link.active i {
    color: var(--gx-cyan);
}

.content-header {
    flex: 0 0 auto;
}

.gx-topbar {
    border-radius: 11px;
}

.topbar-title {
    font-size: 0.94rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.topbar-subtitle {
    color: var(--gx-muted);
    font-size: 0.8rem;
}

.sidebar-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--gx-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    color: var(--gx-text);
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1020;
    border: 0;
    padding: 0;
    background: rgba(20, 37, 47, 0.28);
    backdrop-filter: blur(2px);
}

.gx-chip {
    border: 1px solid var(--gx-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    color: var(--gx-muted);
    padding: 0.32rem 0.58rem;
    white-space: nowrap;
    font-size: 0.68rem;
}

.report-filter-panel,
.report-list-card,
.report-item,
.metric-card {
    border: 1px solid rgba(20, 37, 47, 0.08);
    border-radius: var(--gx-card-radius);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 14px 28px rgba(26, 63, 73, 0.05);
}

.report-filter-panel .form-control,
.report-filter-panel .form-select {
    min-height: var(--gx-control-height);
    border-radius: var(--gx-control-radius);
    border-color: rgba(20, 37, 47, 0.12);
    background: rgba(255, 255, 255, 0.96);
    font-size: 0.9rem;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}

.report-filter-actions {
    padding-top: 0.15rem;
}

.gx-chip strong {
    color: var(--gx-text);
}

.gx-btn-primary {
    background: linear-gradient(135deg, var(--gx-cyan), var(--gx-lime));
    border: none;
    color: #082028;
}

.gx-btn-primary:hover,
.gx-btn-primary:focus {
    color: #082028;
    opacity: 0.95;
}

.gx-btn-secondary {
    border: 1px solid var(--gx-line-strong);
    background: rgba(255, 255, 255, 0.85);
    color: var(--gx-text);
}

.content-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.1rem;
}

.content-stage {
    border: 1px solid rgba(20, 37, 47, 0.08);
    border-radius: var(--gx-card-radius);
    background: rgba(255, 255, 255, 0.6);
    min-height: calc(100vh - 8.9rem);
    padding: var(--gx-page-gap);
}

.content-stage .container-fluid,
.content-stage .container-xxl,
.content-stage .container-xl,
.content-stage .container-lg,
.content-stage .container-md {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 0.75rem;
}

.content-stage .row {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 0.75rem;
}

.content-stage h1,
.content-stage h2,
.content-stage h3,
.content-stage h4,
.content-stage h5,
.content-stage h6 {
    margin-bottom: 0.35rem;
}

.content-stage p {
    margin-bottom: 0.45rem;
}

.content-stage .gx-panel,
.content-stage .report-filter-panel,
.content-stage .report-list-card,
.content-stage .report-item,
.content-stage .metric-card,
.content-stage .card,
.content-stage .modal-content {
    border-radius: var(--gx-card-radius);
}

.content-stage .card,
.content-stage .modal-content {
    box-shadow: 0 14px 28px rgba(26, 63, 73, 0.05);
}

.content-stage .card-body,
.content-stage .modal-body,
.content-stage .modal-header,
.content-stage .modal-footer {
    padding: 0.85rem 1rem;
}

.content-stage .form-control,
.content-stage .form-select,
.content-stage .btn {
    min-height: var(--gx-control-height);
    border-radius: var(--gx-control-radius);
}

.content-stage .form-control,
.content-stage .form-select {
    font-size: 0.9rem;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}

.content-stage .btn {
    padding-top: 0.42rem;
    padding-bottom: 0.42rem;
    font-size: 0.9rem;
}

.content-stage .table,
.content-stage .table-responsive {
    font-size: 0.88rem;
}

.content-stage .table > :not(caption) > * > * {
    padding: var(--gx-table-cell-y) var(--gx-table-cell-x);
    vertical-align: middle;
}

.content-stage .table thead th {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.content-stage .badge,
.content-stage .gx-chip,
.content-stage .status-badge {
    font-size: 0.68rem;
}

.content-stage .small,
.content-stage small,
.content-stage .text-muted {
    font-size: 0.78rem;
}

.gps-vehicle-monitoring-page {
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 10rem);
    background: #edf5f4;
}

.content-stage:has(.gps-vehicle-monitoring-page) {
    padding: 0;
}

.gps-vehicle-monitoring-page #map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.gps-vehicle-monitoring-page .map-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(circle at 18% 18%, rgba(24, 207, 255, 0.14), transparent 28%),
        radial-gradient(circle at 82% 24%, rgba(119, 217, 31, 0.12), transparent 24%),
        linear-gradient(180deg, rgba(248, 252, 252, 0.08), rgba(14, 36, 44, 0.04));
    pointer-events: none;
}

.gps-vehicle-monitoring-page .floating-vehicle-list,
.gps-vehicle-monitoring-page .floating-status-filter {
    position: absolute;
    z-index: 3;
}

.gps-vehicle-monitoring-page .floating-vehicle-list {
    top: 0.8rem;
    right: 0.8rem;
    width: min(18.75rem, calc(100vw - 2rem));
    max-height: calc(100% - 4rem);
    padding: 0.7rem;
    border: 1px solid rgba(29, 87, 98, 0.14);
    border-radius: 1.25rem;
    background: rgba(248, 252, 252, 0.86);
    box-shadow: 0 30px 70px rgba(21, 58, 68, 0.18);
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.vehicle-search-wrap {
    position: relative;
    margin: 0.55rem 0 0.7rem;
}

.vehicle-search-icon {
    position: absolute;
    top: 50%;
    left: 0.9rem;
    transform: translateY(-50%);
    color: var(--gx-muted);
    font-size: 0.9rem;
    pointer-events: none;
}

.vehicle-search-input {
    width: 100%;
    height: 2.45rem;
    padding: 0.55rem 0.85rem 0.55rem 2.35rem;
    border: 1px solid rgba(29, 87, 98, 0.14);
    border-radius: 0.95rem;
    background: rgba(255, 255, 255, 0.94);
    color: var(--gx-text);
    font-size: 0.86rem;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.vehicle-search-input::placeholder {
    color: rgba(95, 116, 128, 0.92);
}

.vehicle-search-input:focus {
    border-color: rgba(24, 207, 255, 0.34);
    box-shadow: 0 0 0 0.2rem rgba(24, 207, 255, 0.12);
}

.vehicle-list {
    display: grid;
    gap: 0.5rem;
    flex: 1 1 auto;
    min-height: 0;
    max-height: calc(100vh - 14rem);
    padding-right: 0.2rem;
    overflow: auto;
}

.vehicle-list::-webkit-scrollbar {
    width: 8px;
}

.vehicle-list::-webkit-scrollbar-thumb {
    background: rgba(20, 37, 47, 0.16);
    border-radius: 999px;
}

.vehicle-item {
    width: 100%;
    padding: 0.7rem 0.8rem;
    border: 1px solid rgba(29, 87, 98, 0.12);
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.92);
    text-align: left;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.vehicle-item:hover,
.vehicle-item:focus {
    border-color: rgba(24, 207, 255, 0.3);
    box-shadow: 0 18px 36px rgba(24, 207, 255, 0.12);
    transform: translateY(-1px);
}

.vehicle-item.active {
    border-color: rgba(24, 207, 255, 0.34);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 251, 253, 0.96));
    box-shadow: 0 20px 40px rgba(24, 207, 255, 0.14);
}

.vehicle-item-head,
.vehicle-metrics {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
}

.vehicle-item-title {
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--gx-text);
}

.vehicle-item-meta {
    margin-top: 0.2rem;
    color: var(--gx-muted);
    font-size: 0.74rem;
    line-height: 1.3;
}

.vehicle-status {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.vehicle-status.running {
    background: rgba(24, 207, 255, 0.14);
    color: #118eb0;
}

.vehicle-status.idle {
    background: rgba(119, 217, 31, 0.14);
    color: #4a8513;
}

.vehicle-status.warning {
    background: rgba(255, 191, 72, 0.18);
    color: #8f6200;
}

.vehicle-status.offline {
    background: rgba(241, 89, 111, 0.16);
    color: #ad3046;
}

.vehicle-speed {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    margin-top: 0.3rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.vehicle-speed.idle {
    color: #547116;
}

.vehicle-speed.offline {
    color: #ad3046;
}

.gps-battery {
    display: inline-flex;
    align-items: end;
    gap: 0.14rem;
    padding: 0.16rem 0.32rem;
    border: 1px solid rgba(29, 87, 98, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
}

.gps-battery-bar {
    width: 0.16rem;
    border-radius: 999px;
    background: rgba(20, 37, 47, 0.12);
}

.gps-battery-bar.is-on {
    background: #18cfff;
}

.gps-battery-bar.is-mid {
    background: #77d91f;
}

.gps-battery-bar.is-low {
    background: #ffbf48;
}

.gps-battery-bar.is-critical {
    background: #f1596f;
}

.gps-vehicle-monitoring-page .floating-status-filter {
    left: 0.8rem;
    bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0.6rem 0.75rem;
    border: 1px solid rgba(29, 87, 98, 0.14);
    border-radius: 999px;
    background: rgba(248, 252, 252, 0.9);
    box-shadow: 0 24px 50px rgba(21, 58, 68, 0.16);
    backdrop-filter: blur(16px);
}

.status-filter-label {
    color: var(--gx-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.status-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.42rem 0.72rem;
    border: 1px solid rgba(29, 87, 98, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--gx-text);
    font-size: 0.78rem;
    font-weight: 600;
}

.status-filter-btn.active {
    border-color: rgba(24, 207, 255, 0.34);
    background: linear-gradient(135deg, rgba(24, 207, 255, 0.16), rgba(119, 217, 31, 0.12));
}

.gps-machine-page {
    padding-bottom: 6rem;
}

.machine-feed-chip {
    padding-inline: 0.85rem;
}

.machine-search-wrap {
    max-width: 28rem;
}

.machine-search-icon {
    border-radius: 999px 0 0 999px;
    border-color: rgba(20, 37, 47, 0.12);
    background: rgba(255, 255, 255, 0.9);
    color: rgba(20, 37, 47, 0.48);
}

.machine-search-input {
    border-radius: 0 999px 999px 0;
    border-color: rgba(20, 37, 47, 0.12);
    background: rgba(255, 255, 255, 0.96);
    color: var(--gx-text);
    font-size: 0.82rem;
    padding-block: 0.48rem;
}

.machine-search-input:focus {
    border-color: rgba(24, 207, 255, 0.28);
    box-shadow: 0 0 0 0.2rem rgba(24, 207, 255, 0.08);
}

.machine-card {
    /* base kept for status filtering */
    width: 100%;
}

.mc-card {
    border-radius: 16px;
    padding: 0.85rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    position: relative;
    overflow: hidden;
    min-height: 100%;
    width: 100%;
}

.mc-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.35rem;
    min-height: 0;
}

.mc-content-spacer {
    flex: 1 1 auto;
    min-height: 0;
}

.mc-card.mc-working {
    background: linear-gradient(135deg, #b5e5a0 0%, #8dd98a 100%);
    border: 1px solid rgba(90, 180, 70, 0.35);
    box-shadow: 0 4px 16px rgba(90, 180, 70, 0.18);
}

.mc-card.mc-idling {
    background: linear-gradient(135deg, #b3d9f5 0%, #84bde8 100%);
    border: 1px solid rgba(60, 140, 210, 0.3);
    box-shadow: 0 4px 16px rgba(60, 140, 210, 0.15);
}

.mc-card.mc-over-idle {
    background: linear-gradient(135deg, #fde99a 0%, #f9c84f 100%);
    border: 1px solid rgba(220, 160, 30, 0.35);
    box-shadow: 0 4px 16px rgba(220, 160, 30, 0.18);
}

.mc-card.mc-offline {
    background: linear-gradient(135deg, #d8dde0 0%, #bec9cc 100%);
    border: 1px solid rgba(120, 140, 150, 0.3);
    box-shadow: 0 4px 16px rgba(100, 120, 130, 0.12);
}

.mc-header {
    display: flex;
    align-items: flex-start;
    gap: 0.3rem;
}

.mc-name-wrap {
    flex: 1;
    min-width: 0;
}

.mc-name {
    font-size: 1.24rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(20, 37, 47, 0.82);
    letter-spacing: -0.02em;
}

.mc-code {
    margin-top: 0.12rem;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(20, 37, 47, 0.52);
}

.mc-gps {
    padding: 0.26rem 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    color: rgba(20, 37, 47, 0.58);
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mc-status-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
}

.mc-status-text {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(20, 37, 47, 0.58);
    line-height: 1.4;
}

.mc-machine-svg {
    font-size: 2.35rem;
    color: rgba(20, 37, 47, 0.45);
    line-height: 1;
}

.mc-body {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0.5rem;
}

.mc-left-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.mc-info-item,
.mc-speed-info {
    display: flex;
    align-items: center;
    gap: 0.24rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(20, 37, 47, 0.72);
}

.mc-driver {
    font-size: 0.76rem;
    line-height: 1.35;
    margin-bottom: 0;
}

.mc-footer {
    margin-top: auto;
    padding-top: 0.35rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mc-acc-btn,
.mc-icon-btn {
    width: 1.95rem;
    height: 1.95rem;
}

.mc-speed-info {
    white-space: nowrap;
}

.mc-driver {
    text-align: left;
    font-size: 0.78rem;
    color: rgba(20, 37, 47, 0.56);
    padding: 0.05rem 0;
}

.mc-driver strong {
    color: rgba(20, 37, 47, 0.74);
}

.mc-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.3rem;
}

.mc-acc-btn {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    background: rgba(255, 255, 255, 0.52);
    color: rgba(20, 37, 47, 0.7);
    transition: background 0.15s;
}

.mc-acc-btn:hover {
    background: rgba(255, 255, 255, 0.8);
}

.mc-acc-btn.mc-btn-dark {
    background: rgba(50, 70, 80, 0.52);
    color: rgba(255, 255, 255, 0.85);
}

.mc-acc-btn.mc-btn-dark:hover {
    background: rgba(50, 70, 80, 0.72);
}

.mc-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.38);
    color: rgba(20, 37, 47, 0.55);
    transition: background 0.15s;
}

.mc-icon-btn:hover {
    background: rgba(255, 255, 255, 0.62);
}

.machine-floating-filter {
    position: fixed;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    z-index: 5;
}

.map-popup {
    min-width: 13rem;
    color: var(--gx-text);
}

.map-popup-title {
    font-weight: 700;
    font-size: 1rem;
}

.map-popup-meta {
    color: var(--gx-muted);
    font-size: 0.82rem;
    margin-bottom: 0.7rem;
}

.map-popup-grid {
    display: grid;
    gap: 0.35rem;
}

.map-popup-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.8rem;
}

.map-popup-row span {
    color: var(--gx-muted);
}

.tracking-filter-panel,
.tracking-list-card,
.tracking-card,
.map-card,
.stop-progress-item {
    border: 1px solid rgba(20, 37, 47, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 36px rgba(26, 63, 73, 0.06);
}

.tracking-filter-panel .form-control,
.tracking-filter-panel .form-select,
.tracking-filter-panel .form-control:focus,
.tracking-filter-panel .form-select:focus {
    border-color: rgba(20, 37, 47, 0.1);
    background: rgba(255, 255, 255, 0.9);
    color: var(--gx-text);
    box-shadow: 0 0 0 0.2rem rgba(24, 207, 255, 0.1);
}

.portal-stat-value {
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.portal-status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 600;
}

.portal-status::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.status-live {
    color: #178b66;
    background: rgba(23, 139, 102, 0.1);
}

.status-progress {
    color: #1f79e0;
    background: rgba(31, 121, 224, 0.1);
}

.status-warning {
    color: #d68b10;
    background: rgba(214, 139, 16, 0.1);
}

.status-danger {
    color: #d14c63;
    background: rgba(209, 76, 99, 0.1);
}

.portal-table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--gx-text);
    --bs-table-border-color: rgba(20, 37, 47, 0.08);
}

.portal-table thead th {
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gx-muted);
}

.portal-table td,
.portal-table th {
    padding-top: 0.52rem;
    padding-bottom: 0.52rem;
    white-space: nowrap;
}

.tracking-ref-btn {
    color: var(--gx-text);
}

.tracking-ref-btn:hover,
.tracking-ref-btn:focus {
    color: #1f79e0;
    text-decoration: underline !important;
}

.mock-map {
    min-height: 320px;
    border-radius: 14px;
    border: 1px solid rgba(20, 37, 47, 0.08);
    background:
        radial-gradient(circle at 20% 25%, rgba(24, 207, 255, 0.16), transparent 16%),
        radial-gradient(circle at 72% 30%, rgba(119, 217, 31, 0.16), transparent 18%),
        radial-gradient(circle at 60% 78%, rgba(33, 118, 255, 0.12), transparent 16%),
        linear-gradient(180deg, #f9fcfc 0%, #edf6f4 100%);
    position: relative;
    overflow: hidden;
}

.tracking-route-map {
    min-height: 320px;
    border-radius: 14px;
    border: 1px solid rgba(20, 37, 47, 0.08);
    overflow: hidden;
    background: linear-gradient(180deg, #f9fcfc 0%, #edf6f4 100%);
}

.mock-map::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(20, 37, 47, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 37, 47, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
}

.route-line {
    position: absolute;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--gx-cyan), var(--gx-blue), var(--gx-lime));
    transform-origin: left center;
    opacity: 0.9;
}

.map-point {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 4px rgba(24, 207, 255, 0.14);
}

.map-point.start {
    background: #1f79e0;
}

.map-point.live {
    background: #178b66;
}

.map-point.stop {
    background: #d68b10;
}

.gx-map-marker {
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2176ff;
    color: #fff;
    border: 2px solid #fff;
    box-shadow: 0 8px 16px rgba(20, 37, 47, 0.18);
    font-size: 0.78rem;
    font-weight: 700;
}

.gx-map-marker-vehicle {
    width: 1rem;
    height: 1rem;
    min-width: 1rem;
    min-height: 1rem;
    font-size: 0;
    border-width: 2px;
}

.location-chip-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.45rem;
    justify-content: flex-start;
    align-items: center;
    min-width: max-content;
}

.location-cell-scroll {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.2rem;
}

.location-cell-scroll::-webkit-scrollbar {
    height: 8px;
}

.location-cell-scroll::-webkit-scrollbar-thumb {
    background: rgba(20, 37, 47, 0.16);
    border-radius: 999px;
}

.location-step {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.location-step:last-child .location-arrow {
    display: none;
}

.location-chip {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 8.5rem;
    min-width: 8.5rem;
    min-height: 4.5rem;
    padding: 0.55rem 0.75rem;
    border-radius: 0.55rem;
    border: 2px solid #184c67;
    background: #226b8e;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.location-chip:hover,
.location-chip:focus {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(20, 37, 47, 0.14);
    outline: none;
}

.location-code {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.location-name {
    margin-top: 0.2rem;
    font-size: 0.7rem;
    line-height: 1.15;
    opacity: 0.96;
}

.location-time {
    margin-top: 0.28rem;
    font-size: 0.68rem;
    line-height: 1.1;
    opacity: 0.92;
}

.location-chip.is-allowed {
    border-color: #1f6b4f;
    background: #2d8b65;
}

.location-chip.is-complete {
    border-color: #1b5b88;
    background: #2176ff;
}

.location-chip.is-restricted {
    border-color: #9d3042;
    background: #d14c63;
}

.location-chip.is-unknown {
    border-color: #7d8d96;
    background: #9aa8af;
}

.location-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2b617f;
    font-size: 1.05rem;
    line-height: 1;
}

.gx-sweet-alert-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(20, 37, 47, 0.32);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.gx-sweet-alert-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.gx-sweet-alert-card {
    width: min(26rem, 100%);
    border: 1px solid rgba(20, 37, 47, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 30px 70px rgba(20, 37, 47, 0.18);
    padding: 1.2rem 1.2rem 1rem;
    text-align: center;
    transform: translateY(8px) scale(0.98);
    transition: transform 0.18s ease;
}

.gx-sweet-alert-overlay.is-visible .gx-sweet-alert-card {
    transform: translateY(0) scale(1);
}

.gx-sweet-alert-icon {
    width: 3.3rem;
    height: 3.3rem;
    margin: 0 auto 0.85rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 700;
}

.gx-sweet-alert-card.is-success .gx-sweet-alert-icon {
    background: rgba(23, 139, 102, 0.12);
    color: #178b66;
}

.gx-sweet-alert-card.is-error .gx-sweet-alert-icon {
    background: rgba(209, 76, 99, 0.12);
    color: #d14c63;
}

.gx-sweet-alert-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gx-text);
}

.gx-sweet-alert-text {
    margin-top: 0.45rem;
    color: var(--gx-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    white-space: pre-wrap;
}

.gx-sweet-alert-actions {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
}

@media (max-width: 1199.98px) {
    .gx-landing-shell {
        padding: 1rem;
    }

    .welcome-page {
        min-height: auto;
    }

    .welcome-grid {
        grid-template-columns: 1fr;
    }

    .welcome-summary-grid {
        grid-template-columns: 1fr;
    }

    body {
        overflow: auto;
    }

    .app-shell,
    .app-grid,
    .content-column,
    .content-shell,
    .content-scroll {
        height: auto;
    }

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

    .app-grid {
        min-height: 100vh;
    }

    .sidebar-column {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 1030;
        width: min(20rem, calc(100vw - 3rem));
        max-width: min(20rem, calc(100vw - 3rem));
        height: 100vh;
        transform: translateX(-105%);
        transition: transform 0.22s ease;
    }

    .gx-sidebar {
        height: 100%;
        border-right: 1px solid var(--gx-line);
        box-shadow: 24px 0 54px rgba(20, 37, 47, 0.16);
    }

    .app-shell.sidebar-mobile-open .sidebar-column {
        transform: translateX(0);
    }

    .app-shell.sidebar-mobile-open .sidebar-backdrop {
        display: block;
    }

    .gx-topbar > .d-flex {
        align-items: flex-start !important;
        flex-wrap: wrap;
    }

    .gx-language-switcher-inline {
        margin-left: 0 !important;
        width: 100%;
        justify-content: flex-start;
    }

    .content-scroll {
        overflow: visible;
        padding-right: 0;
    }

    .content-stage {
        min-height: 0;
    }

    .gps-vehicle-monitoring-page {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        min-height: 0;
        padding: 0.75rem;
        overflow: visible;
    }

    .gps-vehicle-monitoring-page #map {
        position: relative;
        inset: auto;
        flex: 0 0 auto;
        height: clamp(18rem, 52vh, 28rem);
        min-height: 18rem;
        border-radius: 1rem;
        overflow: hidden;
    }

    .gps-vehicle-monitoring-page .floating-vehicle-list {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        order: 3;
        width: 100%;
        max-height: none;
        padding: 0.7rem;
        border-radius: 1rem;
    }

    .gps-vehicle-monitoring-page .floating-status-filter {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        order: 2;
        border-radius: 1.2rem;
    }

    .gps-vehicle-monitoring-page .map-shade {
        display: none;
    }

    .gps-vehicle-monitoring-page .vehicle-list {
        max-height: min(42vh, 26rem);
    }

    .machine-floating-filter {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
        transform: none;
        justify-content: center;
        border-radius: 16px;
    }
}

@media (max-width: 575.98px) {
    .welcome-hero,
    .welcome-login-card {
        padding: 1.2rem;
    }

    .welcome-title {
        max-width: none;
        font-size: 2rem;
    }

    .machine-floating-filter {
        left: 0.5rem;
        right: 0.5rem;
        bottom: 0.5rem;
        gap: 0.4rem;
        padding: 0.65rem;
    }

    .gps-vehicle-monitoring-page {
        min-height: 0;
        padding: 0.6rem;
    }

    .gps-vehicle-monitoring-page #map {
        height: clamp(17rem, 48vh, 24rem);
        min-height: 17rem;
        border-radius: 0.9rem;
    }

    .gps-vehicle-monitoring-page .floating-vehicle-list {
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        width: 100%;
        max-height: none;
        padding: 0.6rem;
        border-radius: 1rem;
    }

    .vehicle-list {
        max-height: min(40vh, 22rem);
        padding-bottom: 0.15rem;
    }

    .gps-vehicle-monitoring-page .floating-status-filter {
        left: auto;
        right: auto;
        bottom: auto;
        gap: 0.42rem;
        max-height: 6.9rem;
        padding: 0.55rem 0.6rem;
        overflow-y: auto;
    }

    .status-filter-label {
        flex: 0 0 100%;
    }

    .status-filter-btn {
        padding: 0.38rem 0.58rem;
        font-size: 0.72rem;
    }
}
