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

/* =========================================================
   1. GLOBAL
   ========================================================= */

:root {
    --navy: #173566;
    --navy-deep: #102a52;
    --navy-soft: #edf3fb;
    --orange: #f08a24;
    --orange-dark: #dd7412;
    --bg: #f5f7fb;
    --white: #fff;
    --text: #17315a;
    --muted: #6f829e;
    --border: #dfe6ef;
    --success: #1f9d69;
    --warning: #d58c21;
    --danger: #d64f5a;
    --info: #3d73c2;
    --shadow: 0 10px 30px rgba(18,46,85,.07);
    --radius: 16px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: Inter, Arial, sans-serif;
    background: var(--bg);
}

body,
button,
input,
select,
textarea {
    font-family: Inter, Arial, sans-serif;
}

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

button {
    font: inherit;
    cursor: pointer;
}

img,
video,
iframe {
    max-width: 100%;
}

img {
    display: block;
}

/* =========================================================
   2. BUTTONS
   ========================================================= */

.btn {
    border: 0;
    border-radius: 11px;
    padding: 11px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    transition: .18s ease;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--orange);
    color: #fff;
    box-shadow: 0 8px 18px rgba(240,138,36,.2);
}

.btn-primary:hover {
    background: var(--orange-dark);
}

.btn-secondary {
    background: var(--navy);
    color: #fff;
}

.btn-outline {
    background: #fff;
    color: var(--navy);
    border: 1px solid #c9d4e4;
}

.btn-light {
    background: #fff;
    color: var(--navy);
    border: 1px solid var(--border);
}

.btn-danger {
    background: #fff1f1;
    color: var(--danger);
}

.btn-small {
    padding: 9px 12px;
    font-size: 11px;
}

.icon-btn {
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 10px;
    color: var(--navy);
    display: inline-grid;
    place-items: center;
}

/* =========================================================
   3. LANDING PAGE
   ========================================================= */

.landing-body {
    background: #f7f9fc;
    color: var(--text);
}

.landing-nav {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 6vw;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #eef1f5;
}

.landing-logo {
    width: 195px;
    height: auto;
}

.landing-links {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 13px;
    font-weight: 600;
    color: #445b7e;
}

.landing-links a:not(.btn):hover {
    color: var(--navy);
}

.landing-hero {
    max-width: 1240px;
    margin: 0 auto;
    padding: 76px 36px 60px;
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: 50px;
    align-items: center;
}

.hero-kicker,
.section-tag {
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--orange);
}

.hero-title {
    font: 800 clamp(40px,5vw,66px)/1.08 Poppins,sans-serif;
    margin: 14px 0 18px;
    color: var(--navy);
}

.hero-copy,
.section-copy {
    font-size: 16px;
    line-height: 1.8;
    color: #6a7d98;
    max-width: 680px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 26px;
    flex-wrap: wrap;
}

.hero-visual {
    min-height: 460px;
    border-radius: 30px;
    background: linear-gradient(145deg,#edf4fb,#fff 70%);
    border: 1px solid #dfe7f2;
    box-shadow: var(--shadow);
    padding: 26px;
    position: relative;
    overflow: hidden;
}

.hero-visual::before,
.hero-visual::after {
    content: "";
    position: absolute;
    border-radius: 50%;
}

.hero-visual::before {
    width: 280px;
    height: 280px;
    background: #e7eef8;
    right: -90px;
    top: -100px;
}

.hero-visual::after {
    width: 180px;
    height: 180px;
    background: #fff3e6;
    left: -70px;
    bottom: -80px;
}

.hero-brandbox {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e5ebf3;
    border-radius: 18px;
    padding: 18px 24px;
    box-shadow: 0 8px 18px rgba(16,42,82,.05);
    position: relative;
    z-index: 2;
}

.hero-brandbox img {
    width: 250px;
}

.fleet-card {
    position: absolute;
    left: 34px;
    right: 34px;
    bottom: 30px;
    background: #fff;
    border: 1px solid #e0e7f0;
    border-radius: 20px;
    padding: 24px;
    z-index: 2;
    box-shadow: 0 12px 28px rgba(16,42,82,.08);
}

.fleet-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.fleet-head strong {
    font: 700 18px Poppins;
    color: var(--navy);
}

.fleet-head span {
    font-size: 12px;
    color: var(--muted);
}

.fleet-main {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: end;
    margin-top: 20px;
}

.fleet-number {
    font: 800 58px Poppins;
    color: var(--navy);
    line-height: 1;
}

.fleet-number small {
    display: block;
    font: 600 12px Inter;
    color: var(--muted);
    margin-top: 9px;
}

.fleet-status {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.pill-blue {
    background: #edf4fd;
    color: var(--info);
}

.pill-orange {
    background: #fff2df;
    color: #c97611;
}

.pill-red {
    background: #ffecee;
    color: var(--danger);
}

.landing-section {
    max-width: 1240px;
    margin: 0 auto;
    padding: 82px 36px;
}

.section-title {
    font: 700 36px Poppins;
    color: var(--navy);
    margin: 12px 0 10px;
}

.about-grid,
.feature-grid {
    display: grid;
    gap: 16px;
    margin-top: 30px;
}

.about-grid,
.feature-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
}

.about-card,
.feature-card {
    background: #fff;
    border: 1px solid #e4eaf2;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(17,44,81,.04);
}

.about-card strong,
.feature-card h3 {
    font: 700 17px Poppins;
    color: var(--navy);
}

.about-card p,
.feature-card p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
    margin: 10px 0 0;
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #fff1e3;
    color: var(--orange);
    display: grid;
    place-items: center;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 14px;
}

.workflow-section {
    background: #f7f9fc;
}

.workflow-box {
    margin-top: 30px;
    background: #fff;
    border: 1px solid #e1e7ef;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 10px 24px rgba(16,42,82,.04);
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 22px 40px;
    align-items: center;
}

.workflow-step {
    position: relative;
    text-align: center;
    min-width: 0;
    padding: 4px;
}

.workflow-step:not(:nth-child(4))::after {
    content: "→";
    position: absolute;
    right: -30px;
    top: 20px;
    color: var(--orange);
    font-size: 22px;
    font-weight: 700;
}

.workflow-step:nth-child(4)::after {
    display: none;
}

.workflow-dot {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    margin: 0 auto 12px;
    display: grid;
    place-items: center;
    font: 700 16px Poppins;
}

.workflow-step span {
    font-size: 12px;
    color: #647994;
    font-weight: 600;
}

.workflow-step:nth-child(n+5):nth-child(-n+7) {
    margin-top: 2px;
}

.cta-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 20px 36px 80px;
}

.cta {
    border-radius: 22px;
    background: var(--navy);
    color: #fff;
    padding: 30px 34px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    position: relative;
    overflow: hidden;
}

.cta::after {
    content: "";
    position: absolute;
    right: -60px;
    top: -80px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    border: 36px solid rgba(255,255,255,.05);
}

.cta h2 {
    font: 700 28px Poppins;
    margin: 0 0 8px;
    position: relative;
    z-index: 2;
}

.cta p {
    margin: 0;
    color: #cdd8e8;
    font-size: 13px;
    position: relative;
    z-index: 2;
}

.landing-footer {
    background: var(--navy-deep);
    color: #cbd7e7;
    padding: 24px 6vw;
    font-size: 12px;
}

.landing-footer strong {
    color: #fff;
}

/* =========================================================
   4. LANDING PAGE ALTERNATIVE (LP)
   ========================================================= */

.lp-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 4vw;
    background: rgba(13,35,68,.45);
    border-bottom: 1px solid rgba(255,255,255,.22);
}

.lp-nav-logo {
    width: 205px;
    object-fit: contain;
}

.lp-nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    color: #dfe8f4;
    font-size: 12px;
    font-weight: 700;
}

.lp-nav-links a:hover {
    color: #fff;
}

.lp-hero{
    min-height:640px;
    background:linear-gradient(120deg,#102a52 0%,#183a70 65%,#1d477f 100%);
    position:relative;
    overflow:hidden;
    display:grid;
    grid-template-columns:1fr 1fr;
    align-items:center;
    gap:20px;
    padding:150px 5vw 70px;
    color:#fff;
}

.lp-hero::before {
    content: "";
    position: absolute;
    inset: auto -80px -180px auto;
    width: 400px;
    height: 400px;
    border: 55px solid rgba(240,138,36,.18);
    border-radius: 50%;
}

.lp-hero::after {
    content: "";
    position: absolute;
    right: 22%;
    top: 110px;
    width: 190px;
    height: 190px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 50%;
    box-shadow: 0 0 0 35px rgba(255,255,255,.03),
                0 0 0 75px rgba(255,255,255,.02);
}

.lp-copy {
    position: relative;
    z-index: 3;
    max-width: 650px;
}

.lp-kicker {
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 800;
    color: #ffb267;
    margin-bottom: 12px;
}

.lp-title {
    font: 700 clamp(38px,5.1vw,60px)/1.08 Poppins;
    margin: 0 0 18px;
}

.lp-title span {
    color: var(--orange);
}

.lp-desc {
    font-size: 15px;
    line-height: 1.8;
    color: #d4e0ee;
    max-width: 600px;
}

.lp-actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.lp-actions .btn-light {
    background: #fff;
    color: var(--navy);
    border-color: #fff;
}

.lp-visual {
    position: relative;
    z-index: 3;
    min-height: 430px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 1fr;
    gap: 14px;
    align-self: stretch;
}

.vehicle-tile {
    border: 1px solid rgba(255,255,255,.13);
    background: rgba(255,255,255,.07);
    border-radius: 20px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    backdrop-filter: blur(4px);
    box-shadow: 0 16px 35px rgba(0,0,0,.10);
}

.vehicle-graphic {
    height: 118px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg,rgba(255,255,255,.14),rgba(255,255,255,.05));
    font-size: 70px;
}

.vehicle-meta strong {
    display: block;
    font: 700 16px Poppins;
}

.vehicle-meta span {
    display: block;
    color: #b8c8da;
    font-size: 10px;
    margin-top: 3px;
}

.lp-badge {
    position: absolute;
    left: -12px;
    bottom: 20px;
    z-index: 4;
    background: #fff;
    color: var(--navy);
    padding: 13px 16px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(3,18,42,.25);
}

.lp-badge strong {
    display: block;
    font: 800 20px Poppins;
}

.lp-badge span {
    font-size: 9px;
    color: var(--muted);
}

.lp-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 82px 34px;
}

.lp-tag {
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--orange);
}

.lp-heading {
    font: 700 34px Poppins;
    color: var(--navy);
    margin: 11px 0 9px;
}

.lp-text {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.75;
    max-width: 760px;
}

.lp-features {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 16px;
    margin-top: 28px;
}

.lp-feature {
    background: #fff;
    border: 1px solid #e3eaf2;
    border-radius: 17px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(17,44,81,.04);
}

.lp-feature-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: #fff0e0;
    color: var(--orange);
    display: grid;
    place-items: center;
    font-weight: 800;
    margin-bottom: 13px;
}

.lp-feature h3 {
    margin: 0;
    font: 700 16px Poppins;
    color: var(--navy);
}

.lp-feature p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.7;
}

.lp-flow {
    background: #fff;
    border: 1px solid #e1e8f1;
    border-radius: 20px;
    padding: 25px;
    margin-top: 24px;
    box-shadow: 0 10px 26px rgba(18,46,85,.04);
}

.lp-flow-grid {
    display: grid;
    grid-template-columns: repeat(7,minmax(0,1fr));
    gap: 8px;
    align-items: start;
}

.lp-flow-item {
    text-align: center;
    position: relative;
}

.lp-flow-item:not(:last-child)::after {
    content: "→";
    position: absolute;
    right: -9px;
    top: 14px;
    color: var(--orange);
    font-weight: 800;
}

.lp-flow-dot {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--navy);
    color: #fff;
    font: 700 13px Poppins;
    margin: 0 auto 9px;
}

.lp-flow-item span {
    font-size: 9px;
    color: #687e9d;
    font-weight: 700;
}

.lp-cta {
    max-width: 1200px;
    margin: 0 auto 70px;
    padding: 0 34px;
}

.lp-cta-box {
    background: var(--navy);
    border-radius: 21px;
    padding: 30px 32px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.lp-cta-box h2 {
    margin: 0;
    font: 700 25px Poppins;
}

.lp-cta-box p {
    margin: 7px 0 0;
    color: #c5d3e4;
    font-size: 11px;
}

.lp-footer {
    background: #0d2344;
    color: #b7c7d9;
    padding: 22px 6vw;
    font-size: 10px;
}

.lp-footer strong {
    color: #fff;
}

/* =========================================================
   5. APP LAYOUT & SIDEBAR
   ========================================================= */

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

.sidebar {
    width: 250px;
    flex-shrink: 0;
    background: var(--navy);
    color: #fff;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    padding: 18px 15px;
}

.sidebar-brand {
    padding: 0 0 18px;
    background: transparent !important;
}

.sidebar-brand-box {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 7px 5px 12px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-brand img {
    width: 206px !important;
    height: auto !important;
    display: block;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 8px;
}

.sidebar-nav a,
.sidebar-bottom a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 13px;
    border-radius: 12px;
    color: #dae5f3;
    font-size: 12.5px;
    font-weight: 600;
    transition: .18s ease;
}

.sidebar-nav a:hover,
.sidebar-bottom a:hover {
    background: rgba(255,255,255,.08);
    color: #fff;
}

.sidebar-nav a.active {
    background: var(--orange);
    color: #fff;
    box-shadow: 0 8px 18px rgba(240,138,36,.18);
}

.nav-icon {
    width: 20px;
    text-align: center;
    font-size: 15px;
    opacity: .95;
}

.sidebar-bottom {
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-bottom a.logout {
    background: rgba(255,255,255,.06);
    color: #fff;
}

.sidebar-bottom a.logout:hover {
    background: rgba(240,138,36,.18);
}

.main {
    margin-left: 250px;
    width: calc(100% - 250px);
    min-height: 100vh;
    min-width: 0;
    overflow-x: clip;
}

.topbar {
    height: 72px;
    background: #fff;
    border-bottom: 1px solid #e8edf3;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 30;
}

.menu-toggle {
    display: none;
}

.search-box {
    flex: 1;
    max-width: 560px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    color: #7890ae;
    background: #fff;
}

.search-box input {
    border: 0;
    outline: 0;
    flex: 1;
    font-size: 12px;
    color: var(--text);
}

.topbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 14px;
}

.notification-dot {
    position: relative;
}

.notification-dot::after {
    content: "";
    position: absolute;
    right: 8px;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--orange);
    border-radius: 50%;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    display: grid;
    place-items: center;
    font: 700 14px Poppins;
}

.user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.user-info strong {
    font-size: 12px;
}

.user-info span {
    font-size: 10px;
    color: var(--muted);
    margin-top: 3px;
}

.content {
    padding: 28px 30px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

/* =========================================================
   6. PAGE HEADER & CARDS
   ========================================================= */

.page-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.page-kicker {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .11em;
    color: var(--orange);
    font-weight: 800;
}

.page-title {
    font: 700 30px Poppins;
    color: var(--navy);
    margin: 6px 0 7px;
}

.page-subtitle {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
    line-height: 1.65;
}

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    min-width: 0;
    max-width: 100%;
}

.card-pad {
    padding: 20px;
}

.card-title {
    font: 700 16px Poppins;
    margin: 0;
    color: var(--navy);
}

.card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 15px;
}

.link-btn {
    font-size: 11px;
    color: var(--info);
    font-weight: 700;
}

/* =========================================================
   7. DASHBOARD STATISTICS
   ========================================================= */

.stats {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 14px;
    min-width: 0;
    max-width: 100%;
}

.stat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    box-shadow: var(--shadow);
}

.stat-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #eef4fb;
    color: var(--navy);
    display: grid;
    place-items: center;
    font-weight: 800;
    margin-bottom: 12px;
}

.stat-card:nth-child(2) .stat-icon {
    background: #fff1e3;
    color: var(--orange);
}

.stat-card:nth-child(3) .stat-icon {
    background: #f1effc;
    color: #7568bd;
}

.stat-card:nth-child(4) .stat-icon {
    background: #ffeceb;
    color: var(--danger);
}

.stat-label {
    font-size: 11px;
    color: #536d8c;
}

.stat-value {
    font: 800 30px Poppins;
    color: var(--navy);
    margin: 5px 0;
}

.stat-note {
    font-size: 10px;
    color: var(--muted);
}

/* =========================================================
   8. GRID & WELCOME BANNER
   ========================================================= */

.grid {
    display: grid;
    gap: 16px;
    min-width: 0;
    max-width: 100%;
}

.columns-2 {
    grid-template-columns: 1.4fr 1fr;
}

.columns-3 {
    grid-template-columns: repeat(3,minmax(0,1fr));
}

.welcome-banner {
    border-radius: 18px;
    padding: 22px 24px;
    background: linear-gradient(135deg,#eef4fb,#fff);
    border: 1px solid #dfe7f1;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.welcome-banner h1 {
    font: 700 24px Poppins;
    margin: 0;
    color: var(--navy);
}

.welcome-banner p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.welcome-banner::after {
    content: "⚙";
    position: absolute;
    right: 26px;
    top: -12px;
    font-size: 96px;
    color: rgba(23,53,102,.05);
}

/* =========================================================
   9. TABLE
   ========================================================= */

.table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

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

th,
td {
    font-size: 11px;
    padding: 12px 10px;
    border-bottom: 1px solid #edf1f5;
    text-align: left;
    white-space: nowrap;
    overflow-wrap: break-word;
}

th {
    background: #f8fafc;
    color: #627995;
    font-weight: 700;
}

td {
    color: #284766;
}

tbody tr:hover {
    background: #fbfcfe;
}

.table-link {
    color: var(--navy);
    font-weight: 700;
    text-decoration: none;
}

.table-link:hover {
    color: var(--orange-dark);
    text-decoration: underline;
}

.compact-table th,
.compact-table td {
    font-size: 10px;
    padding: 9px 8px;
}

.compact-table input,
.compact-table select {
    width: 100%;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0 9px;
    font-size: 10px;
    color: var(--text);
    background: #fff;
    outline: none;
}

.compact-table input:focus,
.compact-table select:focus {
    border-color: #9ab0cb;
    box-shadow: 0 0 0 3px rgba(61,115,194,.07);
}

.execution-detail-table td,
.execution-detail-table th {
    font-size: 10px;
    padding: 9px 8px;
    white-space: normal;
}

/* =========================================================
   10. BADGES & STATUS
   ========================================================= */

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
}

.badge-success {
    background: #e8f7ef;
    color: var(--success);
}

.badge-warning {
    background: #fff3dd;
    color: var(--warning);
}

.badge-danger {
    background: #ffe9eb;
    color: var(--danger);
}

.badge-info {
    background: #eaf2fd;
    color: var(--info);
}

.badge-neutral {
    background: #eef1f5;
    color: #6c7d92;
}

/* =========================================================
   11. TOOLBAR & ACTION BUTTONS
   ========================================================= */

.toolbar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.toolbar-left,
.toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.search-input,
.select-input,
.date-input {
    height: 40px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 10px;
    padding: 0 11px;
    font-size: 11px;
    color: var(--text);
    outline: none;
}

.search-input {
    min-width: 260px;
}

.search-input:focus,
.select-input:focus,
.date-input:focus {
    border-color: #9ab0cb;
    box-shadow: 0 0 0 3px rgba(61,115,194,.08);
}

.action-group {
    display: flex;
    gap: 6px;
    align-items: center;
}

.action-btn {
    background: #fff;
    border: 1px solid #ccd8e6;
    border-radius: 8px;
    padding: 6px 9px;
    font-size: 10px;
    color: var(--navy);
    font-weight: 700;
}

.action-btn:hover {
    background: #f6f9fd;
}

.action-btn.primary {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}

.action-btn.orange {
    background: #fff3e6;
    color: #c87013;
    border-color: #f4d6b2;
}

/* =========================================================
   12. FORMS
   ========================================================= */

.form-grid,
.detail-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 14px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-field.full {
    grid-column: 1 / -1;
}

.form-field label {
    font-size: 11px;
    font-weight: 700;
    color: var(--navy);
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 11px;
    background: #fff;
    color: var(--text);
    outline: 0;
    font-size: 11px;
}

.form-field textarea {
    min-height: 110px;
    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: #98aec9;
    box-shadow: 0 0 0 3px rgba(61,115,194,.08);
}

.field-hint {
    margin: 4px 0 0;
    font-size: 10px;
    line-height: 1.5;
    color: var(--muted);
    font-weight: 400;
}

.danger-text {
    color: var(--danger) !important;
    border-color: #f2cfd3 !important;
}

/* =========================================================
   13. MODAL
   ========================================================= */

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(11,32,60,.42);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 100;
}

.modal-backdrop.show {
    display: flex;
}

.modal {
    background: #fff;
    border-radius: 18px;
    width: min(780px,100%);
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 24px 60px rgba(10,25,50,.2);
    border: 1px solid #dfe6ef;
}

.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #edf1f5;
}

.modal-head h3 {
    font: 700 18px Poppins;
    color: var(--navy);
    margin: 0;
}

.icon-square {
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 9px;
    color: var(--muted);
    font-size: 18px;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    padding: 16px 20px;
    border-top: 1px solid #edf1f5;
}

/* =========================================================
   14. DETAIL COMPONENTS
   ========================================================= */

.detail-box {
    background: #f8fafc;
    border: 1px solid #e7edf4;
    border-radius: 11px;
    padding: 12px;
}

.detail-box span {
    display: block;
    font-size: 10px;
    color: var(--muted);
    margin-bottom: 5px;
}

.detail-box strong {
    font-size: 12px;
    color: var(--navy);
}

.detail-box.full {
    grid-column: 1 / -1;
}

.plan-detail-hero {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.plan-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.plan-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef4fb;
    color: var(--navy);
    font-size: 10px;
    font-weight: 700;
}

.plan-detail-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 16px;
}

.plan-detail-grid-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.plan-detail-grid-main > .card:nth-child(2) {
    grid-column: 1 / -1;
}

.info-list {
    display: grid;
    gap: 11px;
}

.info-row {
    display: grid;
    grid-template-columns: 165px 1fr;
    gap: 12px;
    padding-bottom: 11px;
    border-bottom: 1px solid #edf1f5;
    font-size: 11px;
}

.info-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.info-row span {
    color: var(--muted);
}

.info-row strong {
    color: var(--text);
}

.checklist {
    display: grid;
    gap: 9px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 11px;
    border: 1px solid #e6edf4;
    border-radius: 10px;
    background: #fbfcfe;
    font-size: 11px;
}

.check-item .check {
    width: 20px;
    height: 20px;
    border-radius: 7px;
    background: #e9f7ef;
    color: var(--success);
    display: grid;
    place-items: center;
    font-weight: 800;
}

.detail-note {
    background: #fff7ec;
    border: 1px solid #f6dfbf;
    color: #8b651e;
    border-radius: 11px;
    padding: 12px;
    font-size: 11px;
    line-height: 1.6;
}

/* =========================================================
   15. MAINTENANCE PLAN & TECHNICIAN EXECUTION
   ========================================================= */

.section-inline-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
}

.maintenance-detail-list {
    display: grid;
    gap: 10px;
}

.maintenance-detail-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 11px 12px;
    border: 1px solid #e6edf4;
    border-radius: 10px;
    background: #fbfcfe;
}

.detail-index {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: #eef4fb;
    color: var(--navy);
    display: grid;
    place-items: center;
    font-size: 10px;
    font-weight: 800;
    flex: 0 0 auto;
}

.maintenance-detail-item strong {
    display: block;
    color: var(--text);
    font-size: 11px;
}

.maintenance-detail-item p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.5;
}

.execution-plan-card {
    margin-top: 16px;
}

.execution-plan-card .card-title {
    margin-bottom: 5px;
}

.execution-plan-card .field-hint {
    margin-bottom: 12px;
}

/* =========================================================
   16. LOGIN
   ========================================================= */

.auth-page {
    min-height: 100vh;
    margin: 0;
    display: grid;
    place-items: center;
    padding: 28px;
    background: #eef4fa;
    position: relative;
    overflow: hidden;
}

.auth-page::before,
.auth-page::after {
    content: "";
    position: absolute;
    width: 240px;
    height: 150px;
    background: var(--navy);
    opacity: .96;
    z-index: 0;
}

.auth-page::before {
    left: -88px;
    top: -36px;
    clip-path: polygon(0 0,100% 0,68% 100%,0 100%);
}

.auth-page::after {
    right: -88px;
    bottom: -36px;
    clip-path: polygon(32% 0,100% 0,100% 100%,0 100%);
}

.auth-accent-left,
.auth-accent-right {
    position: absolute;
    width: 26px;
    height: 96px;
    background: var(--orange);
    z-index: 1;
    transform: skewX(-26deg);
}

.auth-accent-left {
    left: 18px;
    top: 62px;
}

.auth-accent-right {
    right: 18px;
    bottom: 62px;
}

.auth-card {
    width: min(410px,100%);
    background: #fff;
    border: 1px solid #e2e9f1;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(20,55,95,.12);
    position: relative;
    z-index: 2;
    padding: 28px 28px 25px;
}

.auth-logo {
    width: 170px;
    margin: 0 auto 18px;
    object-fit: contain;
}

.auth-title {
    text-align: center;
    margin: 0;
    color: var(--navy);
    font: 800 20px/1.2 Poppins,sans-serif;
}

.auth-subtitle {
    text-align: center;
    color: var(--muted);
    font-size: 11px;
    margin: 7px 0 21px;
}

.auth-form {
    display: grid;
    gap: 12px;
}

.auth-field {
    display: grid;
    gap: 6px;
}

.auth-field label {
    font-size: 10px;
    font-weight: 700;
    color: var(--navy);
}

.auth-field input,
.auth-field select {
    height: 40px;
    width: 100%;
    border: 1px solid #dce5ef;
    border-radius: 8px;
    padding: 0 11px;
    font-size: 11px;
    outline: none;
    background: #fff;
    color: var(--text);
}

.auth-field input:focus,
.auth-field select:focus {
    border-color: #94a9c3;
    box-shadow: 0 0 0 3px rgba(23,53,102,.06);
}

.auth-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10px;
    color: var(--muted);
}

.auth-meta label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.auth-submit {
    height: 40px;
    width: 100%;
    border: 0;
    border-radius: 8px;
    background: var(--navy);
    color: #fff;
    font-weight: 700;
    font-size: 11px;
}

.auth-submit:hover {
    background: var(--navy-deep);
}

.auth-note {
    text-align: center;
    font-size: 9px;
    color: #91a0b3;
    margin: 16px 0 0;
    line-height: 1.6;
}

.auth-error {
    display: none;
    padding: 8px 10px;
    border-radius: 7px;
    background: #fff0f1;
    color: #b73843;
    font-size: 10px;
}

.auth-error.show {
    display: block;
}

.auth-footer {
    position: fixed;
    bottom: 15px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 9px;
    color: #92a0b2;
    z-index: 2;
}

.login-role-wrap {
    margin-top: 14px;
}

.login-role-wrap label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 7px;
}

.login-role-wrap select {
    width: 100%;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0 12px;
    background: #fff;
    color: var(--text);
    outline: 0;
    font-size: 12px;
}

.login-role-wrap select:focus {
    border-color: #98aec9;
    box-shadow: 0 0 0 3px rgba(61,115,194,.08);
}

/* =========================================================
   17. CHART
   ========================================================= */

.chart-layout {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 18px;
    align-items: center;
}

.donut {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: conic-gradient(
        #3d73c2 0 71%,
        #f08a24 71% 89%,
        #d64f5a 89% 96%,
        #a5b3c7 96% 100%
    );
    position: relative;
}

.donut::after {
    content: "";
    position: absolute;
    inset: 32px;
    border-radius: 50%;
    background: #fff;
}

.donut-center {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 2;
    align-content: center;
    text-align: center;
}

.donut-center strong {
    font: 800 28px Poppins;
    color: var(--navy);
}

.donut-center span {
    font-size: 10px;
    color: var(--muted);
    margin-top: -2px;
}

.legend {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.legend-item {
    display: grid;
    grid-template-columns: 10px 1fr auto;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #536b88;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* =========================================================
   18. OTHER COMPONENTS
   ========================================================= */

.footer-note {
    padding: 24px 0 4px;
    font-size: 10px;
    color: #8b9ab0;
    text-align: right;
}

.empty {
    padding: 38px;
    text-align: center;
    color: var(--muted);
    font-size: 12px;
}

.print-title {
    display: none;
}

.legacy-inline-01 {
    padding: 16px 0 0;
    border: 0;
}

.legacy-inline-02 {
    margin-top: 16px;
}

.legacy-inline-03 {
    background: #3d73c2;
}

.legacy-inline-04 {
    background: #f08a24;
}

.legacy-inline-05 {
    background: #d64f5a;
}

.legacy-inline-06 {
    background: #a5b3c7;
}

.legacy-inline-07 {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

/* =========================================================
   19. RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 1100px) {
    .landing-hero {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 400px;
    }

    .stats {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .columns-2,
    .columns-3,
    .plan-detail-grid,
    .plan-detail-grid-main {
        grid-template-columns: 1fr;
    }

    .plan-detail-grid-main > .card:nth-child(2) {
        grid-column: auto;
    }

    .feature-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

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

    .workflow-step:nth-child(4)::after {
        display: none;
    }

    .lp-hero {
        grid-template-columns: 1fr;
        padding-top: 120px;
    }

    .lp-visual {
        max-width: 640px;
        width: 100%;
        margin: 0 auto;
    }

    .lp-features {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .lp-flow-grid {
        grid-template-columns: repeat(4,minmax(0,1fr));
    }

    .lp-flow-item:nth-child(4)::after {
        display: none;
    }
}

/* =========================================================
   20. RESPONSIVE - MOBILE / TABLET KECIL
   ========================================================= */

@media (max-width: 900px) {
    .plan-detail-grid {
        grid-template-columns: 1fr;
    }

    .info-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

@media (max-width: 860px) {
    .sidebar {
        transform: translateX(-100%);
        transition: .2s;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main {
        margin-left: 0;
        width: 100%;
    }

    .menu-toggle {
        display: grid;
    }

    .topbar {
        padding: 0 16px;
    }

    .user-info {
        display: none;
    }

    .content {
        padding: 22px 16px;
    }

    .workflow-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .workflow-step::after {
        display: none !important;
    }

    .about-grid,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .landing-nav {
        padding: 16px 20px;
    }

    .landing-links {
        gap: 14px;
    }

    .landing-links a:not(.btn) {
        display: none;
    }
}

/* =========================================================
   21. RESPONSIVE - LP
   ========================================================= */

@media (max-width: 980px) {
    .lp-hero {
        grid-template-columns: 1fr;
        padding-top: 120px;
    }

    .lp-visual {
        max-width: 640px;
        width: 100%;
        margin: 0 auto;
    }

    .lp-features {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .lp-flow-grid {
        grid-template-columns: repeat(4,minmax(0,1fr));
    }

    .lp-flow-item:nth-child(4)::after {
        display: none;
    }
}

@media (max-width: 700px) {
    .lp-nav-links a:not(.btn) {
        display: none;
    }

    .lp-nav {
        padding: 16px 20px;
    }

    .lp-nav-logo {
        width: 170px;
    }

    .lp-hero {
        padding: 100px 20px 45px;
    }

    .lp-visual {
        grid-auto-rows: minmax(180px,1fr);
    }

    .lp-features {
        grid-template-columns: 1fr;
    }

    .lp-section {
        padding: 64px 20px;
    }

    .lp-cta {
        padding: 0 20px;
    }

    .lp-cta-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .lp-flow-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .lp-flow-item:not(:last-child)::after {
        display: none;
    }

    .vehicle-graphic {
        height: 100px;
        font-size: 58px;
    }
}

/* =========================================================
   22. RESPONSIVE - MOBILE
   ========================================================= */

@media (max-width: 620px) {
    .landing-logo {
        width: 165px;
    }

    .hero-title {
        font-size: 38px;
    }

    .landing-hero,
    .landing-section {
        padding-left: 18px;
        padding-right: 18px;
    }

    .stats,
    .form-grid,
    .detail-grid,
    .columns-2,
    .columns-3,
    .plan-detail-grid,
    .plan-detail-grid-main {
        grid-template-columns: 1fr;
    }

    .chart-layout {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .search-input {
        min-width: 0;
        width: 100%;
    }

    .page-title {
        font-size: 26px;
    }

    .topbar {
        height: 64px;
    }

    .fleet-card {
        left: 18px;
        right: 18px;
    }

    .fleet-status {
        justify-content: flex-start;
    }

    .workflow-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .section-inline-head {
        flex-direction: column;
    }

    .btn-small {
        width: 100%;
    }

    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-visual {
        display: none;
    }

    .auth-card {
        padding: 24px 20px;
    }

    .auth-page::before,
    .auth-page::after {
        width: 170px;
        height: 110px;
    }

    .auth-accent-left,
    .auth-accent-right {
        height: 70px;
        width: 20px;
    }

    .page-head,
    .plan-detail-hero,
    .section-inline-head {
        flex-direction: column;
    }

    .content {
        padding: 18px 14px;
    }

    .toolbar-left,
    .toolbar-right {
        width: 100%;
    }

    .modal {
        width: 100%;
        max-height: 90vh;
    }
}

/* =========================================================
   23. PRINT
   ========================================================= */

@media print {
    body {
        background: #fff;
    }

    .sidebar,
    .topbar,
    .page-head,
    .toolbar,
    .no-print,
    .footer-note {
        display: none !important;
    }

    .main {
        margin-left: 0;
        width: 100%;
    }

    .content {
        padding: 0;
    }

    .card {
        box-shadow: none;
        border: 0;
    }

    .print-title {
        display: block;
        font: 700 22px Poppins;
        color: #173566;
        margin: 0 0 4px;
    }

    .print-subtitle {
        display: block;
        color: #71839d;
        font-size: 11px;
        margin-bottom: 18px;
    }

    .table-wrap {
        overflow: visible;
    }

    th,
    td {
        font-size: 10px;
        padding: 8px;
    }

    .action-group {
        display: none;
    }
}
/* =========================================================
   24. LANDING PAGE - VEHICLE IMAGE
   ========================================================= */


.lp-gambar {
    width: 80%;
    min-height: 500px;
    overflow: visible;
}

.lp-gambar img {
    width: 190%;
    max-width: none;
    position: relative;
    left: -22%;
}

/* MOBILE */
@media screen and (max-width: 700px) {
    .lp-nav {
        padding: 14px 20px;
    }

    .lp-nav-logo {
        width: 155px;
        max-width: 100%;
    }

    .lp-nav-links {
        gap: 12px;
    }

    .lp-nav-links a:not(.btn) {
        display: none;
    }

    .lp-hero {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        min-height: auto;
        padding: 100px 20px 40px;
        overflow: hidden;
    }

    .lp-copy {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .lp-title {
        font-size: clamp(30px, 7vw, 40px);
        line-height: 1.18;
        overflow-wrap: break-word;
    }

    .lp-desc {
        font-size: 16px;
        line-height: 1.65;
    }

    .lp-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
@media screen and (max-width: 700px) {
    .lp-gambar {
        width: 100%;
        max-width: 600px;
        min-height: 0;
        justify-content: center;
        overflow: hidden;
        transform: translateX(5px);
    }

    .lp-gambar img {
        width: 100%;
        max-width: 100%;
        height: auto;

    }
}

@media screen and (max-width: 400px) {
    .lp-gambar {
        width: 100%;
        max-width: 600px;
        min-height: 0;
        justify-content: center;
        overflow: hidden;
    }

    .lp-gambar img {
        width: 100%;
        max-width: 100%;
        height: auto;
        transform: none !important;
    }
}
    .lp-features {
        grid-template-columns: 1fr;
    }

    .lp-section {
        padding: 40px 20px;
    }

    .lp-cta {
        padding: 0 20px;
    }

    .lp-cta-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .lp-flow-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lp-flow-item:not(:last-child)::after {
        display: none;
    }

    
}

/* =====================================
   KUNCI SCROLL HALAMAN LOGIN
===================================== */

/* Kunci viewport khusus halaman login */
html:has(body.auth-page) {
    width: 100%;
    height: 100%;
    overflow: hidden !important;
    overscroll-behavior: none;
}

body.auth-page {
    position: fixed !important;
    inset: 0 !important;

    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;

    min-height: 0 !important;
    max-height: 100dvh !important;

    margin: 0 !important;
    overflow: hidden !important;
    overscroll-behavior: none;

    box-sizing: border-box;
}

/* Pastikan ornamen tidak memicu scroll */
body.auth-page .auth-accent-left,
body.auth-page .auth-accent-right {
    pointer-events: none;
}

/* Kartu login tetap berada di dalam viewport */
body.auth-page .auth-card {
    flex-shrink: 1;
    min-height: 0;
    max-height: calc(100% - 90px);
    overflow-y: auto;
}

