:root {
    --bg: #eef2f5;
    --panel: #ffffff;
    --panel-soft: #f7f9fb;
    --ink: #1f2933;
    --muted: #667085;
    --line: #d9e0e7;
    --brand: #166b5a;
    --brand-2: #0f4f45;
    --accent: #d99a22;
    --danger: #c0392b;
    --success: #1f8f5f;
    --shadow: 0 12px 35px rgba(24, 39, 75, .08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    letter-spacing: 0;
}

a {
    color: var(--brand);
    text-decoration: none;
}

.landing-body {
    background: #f6f8fb;
}

.landing-page {
    min-height: 100vh;
}

.landing-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 42px;
    border-bottom: 1px solid #dce5eb;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(16px);
}

.landing-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
}

.landing-brand strong,
.landing-brand small {
    display: block;
}

.landing-brand small {
    color: var(--muted);
    margin-top: 2px;
}

.landing-nav nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.landing-nav nav a:not(.btn) {
    color: #344054;
    font-weight: 800;
}

.landing-hero {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr);
    gap: 34px;
    align-items: center;
    max-width: 1240px;
    min-height: calc(100vh - 84px);
    margin: 0 auto;
    padding: 58px 28px 48px;
}

.hero-copy {
    max-width: 660px;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 11px;
    border: 1px solid #cfe2dc;
    border-radius: 999px;
    background: #edf8f4;
    color: var(--brand);
    font-size: 12px;
    font-weight: 900;
}

.hero-copy h1 {
    margin: 18px 0;
    color: #152d36;
    font-size: 54px;
    line-height: 1.02;
}

.hero-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
}

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

.hero-operations-panel {
    position: relative;
    overflow: hidden;
    min-height: 560px;
    border: 1px solid #d8e2e8;
    border-radius: 8px;
    padding: 24px;
    background:
        linear-gradient(90deg, rgba(22, 107, 90, .05) 1px, transparent 1px),
        linear-gradient(180deg, rgba(22, 107, 90, .05) 1px, transparent 1px),
        #ffffff;
    background-size: 64px 64px;
    box-shadow: 0 26px 80px rgba(24, 39, 75, .10);
}

.panel-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 20px;
    border-bottom: 1px solid #dde7ed;
}

.panel-head strong {
    font-size: 18px;
}

.panel-head span {
    color: var(--muted);
}

.fleet-map {
    position: relative;
    min-height: 285px;
    margin: 34px 0;
    border: 1px solid #dce6ec;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(217, 154, 34, .08), rgba(22, 107, 90, .08)),
        #f8fbfc;
}

.fleet-map .path {
    position: absolute;
    left: 80px;
    right: 80px;
    top: 142px;
    height: 4px;
    background: linear-gradient(90deg, var(--brand), var(--accent), var(--brand));
}

.fleet-map .point {
    position: absolute;
    top: 120px;
    z-index: 2;
    min-width: 74px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d7e3e8;
    border-radius: 8px;
    background: #fff;
    color: #344054;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(24, 39, 75, .08);
}

.fleet-map .farm {
    left: 36px;
}

.fleet-map .plant {
    right: 36px;
}

.truck-unit {
    position: absolute;
    left: 50%;
    top: 104px;
    z-index: 3;
    transform: translateX(-50%);
    width: 168px;
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 7px solid #f1f5f7;
    border-radius: 42px;
    background: #fff;
    color: var(--brand);
    font-weight: 900;
    box-shadow: 0 18px 40px rgba(24, 39, 75, .14);
}

.truck-unit::after {
    content: "";
    position: absolute;
    right: -52px;
    bottom: 6px;
    width: 58px;
    height: 48px;
    border-radius: 7px;
    background: var(--accent);
}

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

.control-grid article,
.operation-flow article,
.report-board,
.module-list {
    border: 1px solid #dce6ec;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.control-grid article {
    padding: 16px;
}

.control-grid span,
.control-grid strong {
    display: block;
}

.control-grid span {
    color: var(--muted);
    margin-bottom: 8px;
}

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

.operation-flow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.operation-flow article {
    padding: 22px;
}

.operation-flow strong {
    display: inline-flex;
    margin-bottom: 20px;
    color: var(--accent);
    font-size: 24px;
}

.operation-flow h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

.operation-flow p,
.landing-section p {
    color: var(--muted);
    line-height: 1.65;
}

.landing-section.split {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 28px;
    align-items: start;
}

.landing-section h2 {
    margin: 16px 0 12px;
    color: #152d36;
    font-size: 34px;
}

.module-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    overflow: hidden;
}

.module-list span {
    min-height: 62px;
    display: flex;
    align-items: center;
    padding: 16px 18px;
    border-right: 1px solid #edf2f5;
    border-bottom: 1px solid #edf2f5;
    color: #344054;
    font-weight: 900;
}

.report-demo h2 {
    max-width: 720px;
}

.report-board {
    margin-top: 20px;
    overflow: hidden;
}

.report-row {
    display: grid;
    grid-template-columns: .8fr 1.3fr 1fr;
    min-height: 58px;
    border-bottom: 1px solid #edf2f5;
}

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

.report-row span {
    display: flex;
    align-items: center;
    padding: 14px 18px;
}

.report-row.head {
    background: #eef4f6;
    color: #344054;
    font-weight: 900;
}

.landing-footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px 28px 34px;
    color: var(--muted);
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 270px;
    background: #132d2b;
    color: #fff;
    padding: 22px 16px;
    overflow-y: auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 8px 26px;
}

.brand-mark {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--accent);
    color: #17211f;
    font-weight: 800;
}

.brand strong,
.brand small {
    display: block;
}

.brand small {
    color: #b6c6c2;
    margin-top: 2px;
}

.sidebar nav {
    display: grid;
    gap: 5px;
}

.sidebar nav a {
    color: #d8e4e1;
    padding: 12px 13px;
    border-radius: 8px;
    font-weight: 700;
}

.sidebar nav a:hover,
.sidebar nav a.active {
    background: #214844;
    color: #fff;
}

.app-shell {
    margin-left: 270px;
    padding: 26px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 22px 24px;
    margin-bottom: 22px;
}

.topbar h1 {
    margin: 0 0 6px;
    font-size: 24px;
}

.topbar p {
    margin: 0;
    color: var(--muted);
}

.user-chip {
    display: grid;
    gap: 3px;
    justify-items: end;
    white-space: nowrap;
}

.user-chip span {
    font-weight: 800;
}

.user-chip small {
    color: var(--muted);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

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

.stat-card,
.table-card,
.form-card,
.quick-actions,
.section-header {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.stat-card {
    padding: 18px;
    min-height: 100px;
}

.stat-card span {
    display: block;
    color: var(--muted);
    margin-bottom: 10px;
}

.stat-card strong {
    font-size: 24px;
}

.stat-card.profit {
    border-color: #b6dccf;
    background: #f1fbf7;
}

.dashboard-charts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.chart-card {
    min-height: 260px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.chart-card h2 {
    margin: 0 0 18px;
    font-size: 17px;
}

.bar-chart {
    display: grid;
    gap: 14px;
}

.bar-row {
    display: grid;
    gap: 7px;
}

.bar-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #344054;
    font-size: 13px;
}

.bar-meta span {
    font-weight: 800;
}

.bar-meta strong {
    color: var(--muted);
    font-size: 12px;
}

.bar-track {
    height: 11px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8eef2;
}

.bar-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #1f8f5f, #166b5a);
}

.chart-empty {
    min-height: 172px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #ccd7de;
    border-radius: 8px;
    color: var(--muted);
}

.vehicle-report-card {
    margin-bottom: 20px;
}

.vehicle-report-card .section-header p {
    margin: 5px 0 0;
    color: var(--muted);
}

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

.report-detail-grid .table-card {
    margin-bottom: 0;
}

.report-detail-grid th {
    width: 42%;
}

.quick-actions,
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.quick-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
}

.section-header h2,
.table-card h2 {
    margin: 0;
    font-size: 18px;
}

.btn,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    color: var(--ink);
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
}

.btn.primary,
button.primary {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}

.btn:hover,
button:hover {
    border-color: var(--brand);
}

.table-card {
    padding: 18px;
    margin-bottom: 20px;
}

.table-card h2 {
    margin-bottom: 14px;
}

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

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 12px 10px;
    text-align: left;
    vertical-align: middle;
}

th {
    color: #344054;
    background: var(--panel-soft);
    font-size: 13px;
}

tr:hover td {
    background: #fafcfd;
}

.empty-cell {
    text-align: center;
    color: var(--muted);
    padding: 28px;
}

.row-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.inline-delete {
    display: inline;
}

.inline-delete button {
    min-height: auto;
    border: 0;
    padding: 0;
    color: var(--danger);
    background: transparent;
}

.password-update-form {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 260px;
}

.password-update-form input {
    min-height: 34px;
    padding: 7px 9px;
}

.password-update-form button {
    min-height: 34px;
    border: 0;
    border-radius: 7px;
    padding: 7px 10px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
}

.status {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    background: #edf2f7;
    color: #475467;
    font-weight: 800;
    font-size: 12px;
}

.status.active,
.status.completed {
    background: #e7f7ef;
    color: var(--success);
}

.status.inactive,
.status.cancelled,
.status.suspended {
    background: #fdeceb;
    color: var(--danger);
}

.status.maintenance {
    background: #fff5df;
    color: #98670a;
}

.form-card {
    padding: 22px;
    max-width: 520px;
}

.form-card.wide {
    max-width: 980px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.inline-form {
    max-width: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 14px;
    align-items: end;
    margin-bottom: 20px;
}

label {
    display: grid;
    gap: 7px;
    color: #344054;
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 9px 10px;
    background: #fff;
    color: var(--ink);
    font-family: inherit;
    font-size: 14px;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

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

.alert {
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--line);
    background: #fff;
}

.alert.success,
.alert-success {
    background: #eaf8f0;
    color: #176548;
    border-color: #b7e4cc;
}

.alert.danger,
.alert-danger {
    background: #fff0ee;
    color: #9d2b22;
    border-color: #f1c1bc;
}

.empty-state,
.install-box {
    max-width: 760px;
    margin: 70px auto;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 28px;
    box-shadow: var(--shadow);
}

.auth {
    min-height: 100vh;
    padding: 24px;
    background:
        linear-gradient(90deg, rgba(246, 248, 250, .74), rgba(246, 248, 250, .54)),
        url("images/login-logistics-bg.png") center / cover no-repeat fixed;
}

.auth-shell {
    width: 100%;
}

.login-experience {
    min-height: calc(100vh - 48px);
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 42px;
}

.login-brand-side {
    max-width: 560px;
    color: #142c35;
}

.login-brand-logo {
    display: block;
    width: 118px;
    max-width: 42vw;
    height: auto;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(219, 228, 234, .9);
    box-shadow: 0 14px 32px rgba(24, 39, 75, .14);
}

.login-brand-side h1 {
    margin: 22px 0 14px;
    font-size: 52px;
    line-height: 1.04;
    color: #142c35;
}

.login-brand-side p {
    margin: 0;
    max-width: 500px;
    color: #475467;
    font-size: 17px;
    line-height: 1.65;
}

.login-stage {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 690px;
    border: 1px solid #dbe4ea;
    border-radius: 8px;
    padding: 30px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .76)),
        url("images/login-logistics-bg.png") center / cover no-repeat;
    backdrop-filter: blur(4px);
    color: var(--ink);
    box-shadow: 0 26px 80px rgba(24, 39, 75, .10);
}

.login-stage::before,
.login-stage::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.login-stage::before {
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .70), rgba(255, 255, 255, .22)),
        linear-gradient(90deg, rgba(22, 107, 90, .06) 1px, transparent 1px),
        linear-gradient(180deg, rgba(22, 107, 90, .06) 1px, transparent 1px);
    background-size: 72px 72px;
}

.login-stage::after {
    right: -42px;
    bottom: -42px;
    width: 250px;
    height: 250px;
    border: 1px solid #e3ebf0;
    border-radius: 8px;
    background: rgba(248, 251, 252, .76);
    transform: rotate(18deg);
}

.login-topline {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 13px;
}

.login-topline strong,
.login-topline small {
    display: block;
}

.login-topline strong {
    font-size: 18px;
}

.login-topline small {
    color: var(--muted);
    margin-top: 3px;
}

.login-onepage-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(360px, 460px);
    gap: 32px;
    align-items: center;
    justify-content: end;
    min-height: 530px;
}

.login-company h1 {
    margin: 18px 0 16px;
    max-width: 680px;
    color: #152d36;
    font-size: 48px;
    line-height: 1.05;
}

.login-company p {
    max-width: 620px;
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

.logistics-visual {
    max-width: 680px;
    margin-top: 30px;
    border: 1px solid #dbe4ea;
    border-radius: 8px;
    background: #f8fbfc;
    padding: 18px;
}

.logistics-route {
    position: relative;
    min-height: 190px;
    border: 1px solid #dce6ec;
    border-radius: 8px;
    background: #fff;
}

.route-track {
    position: absolute;
    left: 64px;
    right: 64px;
    top: 92px;
    height: 4px;
    background: linear-gradient(90deg, var(--brand), var(--accent), var(--brand));
}

.route-node {
    position: absolute;
    top: 68px;
    z-index: 2;
    min-width: 98px;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dce6ec;
    border-radius: 8px;
    background: #fff;
    color: #344054;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(24, 39, 75, .08);
}

.node-left {
    left: 24px;
}

.node-right {
    right: 24px;
}

.route-truck {
    position: absolute;
    left: 50%;
    top: 54px;
    z-index: 3;
    transform: translateX(-50%);
    width: 150px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 7px solid #eef4f6;
    border-radius: 42px;
    background: #fff;
    color: var(--brand);
    font-weight: 900;
    box-shadow: 0 18px 40px rgba(24, 39, 75, .14);
}

.route-truck::after {
    content: "";
    position: absolute;
    right: -46px;
    bottom: 5px;
    width: 54px;
    height: 48px;
    border-radius: 7px;
    background: var(--accent);
}

.visual-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.visual-cards article {
    border: 1px solid #dce6ec;
    border-radius: 8px;
    background: #fff;
    padding: 14px;
}

.visual-cards strong,
.visual-cards span {
    display: block;
}

.visual-cards strong {
    color: #172d36;
}

.visual-cards span {
    margin-top: 5px;
    color: var(--muted);
}

.login-bottom-strip {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 18px;
    border-top: 1px solid #dce6ec;
}

.login-bottom-strip span {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 7px 11px;
    border: 1px solid #dce6ec;
    border-radius: 999px;
    background: #fff;
    color: #344054;
    font-weight: 800;
    font-size: 12px;
}

.enterprise-preview {
    position: relative;
    z-index: 2;
    min-height: 315px;
    margin: 60px 0 42px;
    border: 1px solid #dbe4ea;
    border-radius: 8px;
    background: #f8fbfc;
    padding: 18px;
    box-shadow: inset 0 1px 0 #fff;
}

.preview-toolbar {
    display: flex;
    gap: 7px;
    padding-bottom: 16px;
    border-bottom: 1px solid #dde7ed;
}

.preview-toolbar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #c8d4dc;
}

.preview-toolbar span:first-child {
    background: var(--accent);
}

.preview-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.preview-kpis article {
    border: 1px solid #dce6ec;
    border-radius: 8px;
    background: #fff;
    padding: 14px;
}

.preview-kpis span,
.preview-kpis strong {
    display: block;
}

.preview-kpis span {
    color: var(--muted);
    margin-bottom: 8px;
}

.preview-kpis strong {
    font-size: 22px;
}

.preview-route {
    display: grid;
    grid-template-columns: 1fr 26px 1fr 26px 1fr;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
}

.preview-route div {
    border: 1px solid #dce6ec;
    border-radius: 8px;
    background: #fff;
    padding: 13px;
}

.preview-route strong,
.preview-route span {
    display: block;
}

.preview-route span {
    color: var(--muted);
    margin-top: 5px;
}

.preview-route i {
    height: 2px;
    background: var(--brand);
}

.preview-table {
    display: grid;
    grid-template-columns: .8fr 1fr .8fr;
    border: 1px solid #dce6ec;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.preview-table span,
.preview-table strong,
.preview-table em {
    min-height: 42px;
    padding: 12px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #edf2f5;
}

.preview-table span {
    background: #eef4f6;
    color: #344054;
    font-weight: 800;
}

.preview-table strong {
    font-weight: 700;
}

.preview-table em {
    font-style: normal;
    color: var(--brand);
    font-weight: 800;
}

.login-copy {
    position: relative;
    z-index: 2;
    max-width: 680px;
}

.login-copy h1 {
    margin: 0 0 16px;
    font-size: 42px;
    line-height: 1.08;
    color: #162a35;
}

.login-copy p {
    max-width: 580px;
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

.metric-strip {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 38px;
}

.metric-strip article {
    border: 1px solid #dce6ec;
    border-radius: 8px;
    padding: 16px;
    background: #fff;
}

.metric-strip strong,
.metric-strip span {
    display: block;
}

.metric-strip strong {
    color: var(--accent);
    font-size: 18px;
}

.metric-strip span {
    margin-top: 4px;
    color: var(--muted);
}

.login-panel {
    border-radius: 8px;
    padding: 34px;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px);
    border: 1px solid #dbe4ea;
    box-shadow: 0 26px 80px rgba(24, 39, 75, .12);
    position: relative;
    z-index: 3;
}

.login-insignia {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e4ebf0;
}

.insignia-mark {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), #f0bd55);
    color: #142622;
    font-weight: 900;
    letter-spacing: 0;
    box-shadow: 0 10px 22px rgba(217, 154, 34, .28);
}

.insignia-logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
    flex: 0 0 58px;
    padding: 7px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e0e8ed;
    box-shadow: 0 10px 22px rgba(24, 39, 75, .10);
}

.login-insignia strong,
.login-insignia small {
    display: block;
}

.login-insignia strong {
    color: #172d36;
    font-size: 18px;
}

.login-insignia small {
    color: var(--muted);
    margin-top: 3px;
}

.login-panel-heading {
    margin-bottom: 24px;
}

.login-panel-heading span {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e8f4f0;
    color: var(--brand);
    font-weight: 900;
    font-size: 12px;
}

.login-panel-heading h2 {
    margin: 0 0 8px;
    font-size: 30px;
}

.login-panel-heading p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.login-form {
    display: grid;
    gap: 16px;
}

.login-form input {
    min-height: 48px;
    border-color: #cfd8df;
}

.login-submit {
    width: 100%;
    min-height: 48px;
    margin-top: 4px;
}

.login-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 13px;
}

.muted-link {
    color: var(--muted);
    font-size: 13px;
}

pre {
    white-space: pre-wrap;
    background: #111827;
    color: #f9fafb;
    padding: 14px;
    border-radius: 8px;
    overflow-x: auto;
}

@media (max-width: 1040px) {
    .sidebar {
        position: static;
        width: auto;
    }

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

    .app-shell {
        margin-left: 0;
    }

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

    .dashboard-charts {
        grid-template-columns: 1fr;
    }

    .landing-hero,
    .landing-section.split {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 720px) {
    .app-shell {
        padding: 16px;
    }

    .topbar,
    .section-header,
    .quick-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .user-chip {
        justify-items: start;
    }

    .stats-grid,
    .stats-grid.compact,
    .form-grid,
    .inline-form,
    .login-experience {
        grid-template-columns: 1fr;
    }

    .login-experience {
        align-items: stretch;
        flex-direction: column;
        justify-content: center;
    }

    .login-brand-side h1 {
        font-size: 34px;
    }

    .login-stage {
        min-height: auto;
        padding: 20px;
    }

    .login-onepage-grid {
        grid-template-columns: 1fr;
        min-height: auto;
        margin-top: 28px;
    }

    .login-company h1 {
        font-size: 34px;
    }

    .visual-cards {
        grid-template-columns: 1fr;
    }

    .route-track {
        left: 34px;
        right: 34px;
    }

    .route-node {
        min-width: 78px;
        font-size: 12px;
    }

    .route-truck {
        width: 118px;
    }

    .enterprise-preview {
        margin-top: 34px;
    }

    .preview-route,
    .preview-kpis {
        grid-template-columns: 1fr;
    }

    .preview-route i {
        display: none;
    }

    .metric-strip {
        grid-template-columns: 1fr;
    }

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

    .sidebar nav {
        grid-template-columns: 1fr;
    }

    .landing-nav,
    .landing-nav nav,
    .landing-footer,
    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .landing-nav {
        padding: 16px;
    }

    .landing-hero {
        min-height: auto;
        padding: 36px 16px;
    }

    .hero-copy h1 {
        font-size: 36px;
    }

    .hero-operations-panel {
        min-height: auto;
        padding: 16px;
    }

    .fleet-map .path {
        left: 40px;
        right: 40px;
    }

    .truck-unit {
        width: 124px;
    }

    .control-grid,
    .operation-flow,
    .module-list,
    .report-row,
    .report-detail-grid {
        grid-template-columns: 1fr;
    }
}
