* {
    box-sizing: border-box;
}

:root {
    --green: #064b37;
    --green-dark: #022b21;
    --green-light: #087a35;
    --purple: #5c1a9c;
    --red: #d11f2f;
    --blue: #0057b8;
    --bg: #f6f8fa;
    --card: #ffffff;
    --text: #102033;
    --muted: #657083;
    --border: #e5e7eb;
    --shadow: 0 6px 22px rgba(15,23,42,0.06);
}

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

/* HEADER */

.app-header {
    height: 86px;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 34px;
    color: white;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: white;
    min-width: 330px;
}

.brand{
    display:flex;
    align-items:center;
    text-decoration:none;
}

.brand-copy{
    display:flex;
    flex-direction:column;
}

.brand-name{

    font-size:46px;

    font-weight:700;

    letter-spacing:-1.8px;

    color:white;

    line-height:1;
}

.vista{

    color:#42d66b;
}

.brand-tagline{

    margin-top:6px;

    font-size:15px;

    font-weight:400;

    color:rgba(255,255,255,.82);

    letter-spacing:.03em;
}

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

.nav-link {
    height: 56px;
    padding: 0 22px;
    border-radius: 14px;
    color: white;
    text-decoration: none;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-link i {
    font-size: 20px;
}

.nav-link.active,
.nav-link:hover {
    background: rgba(255,255,255,0.16);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.icon-btn {
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 12px;
    background: rgba(255,255,255,0.14);
    color: white;
    cursor: pointer;
    margin: 0;
    padding: 0;
}

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

.avatar {
    width: 38px;
    height: 38px;
    background: #ffffff;
    color: var(--green);
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-weight: 900;
}

.user-chip strong {
    display: block;
    font-size: 14px;
}

.user-chip span {
    display: block;
    font-size: 12px;
    color: #d9f2e4;
}

/* MODULE NAV */

.module-nav {
    display: flex;
    gap: 12px;
    padding: 14px 34px;
    background: white;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
}

.module-nav a {
    padding: 10px 20px;
    background: #f3f5f4;
    color: #1f2937;
    border: 1px solid var(--border);
    border-radius: 999px;
    text-decoration: none;
    font-weight: 900;
    white-space: nowrap;
}

.module-nav a.active,
.module-nav a:hover {
    background: var(--green-light);
    color: white;
    border-color: var(--green-light);
}

/* LAYOUT */

.container {
    padding: 38px 46px;
}

.footer {
    margin-top: 60px;
    padding: 24px 46px;
    background: white;
    border-top: 1px solid var(--border);
    color: var(--muted);
    display: flex;
    justify-content: space-between;
}

/* DASHBOARD */

.hero-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.hero-row h1 {
    font-size: 38px;
    margin: 0 0 8px;
    letter-spacing: -0.8px;
}

.hero-row p {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.primary-action,
.add-btn {
    background: var(--green-light);
    color: white;
    padding: 15px 28px;
    border-radius: 9px;
    text-decoration: none;
    font-weight: 900;
    box-shadow: 0 6px 14px rgba(0,0,0,0.14);
}

.dash-grid {
    display: grid;
    gap: 26px;
    margin-bottom: 26px;
}

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

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

.dash-card,
.panel,
.xero-card,
.kpi-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.dash-card:hover,
.kpi-card:hover,
.panel:hover {
    transform: translateY(-2px);
    transition: 0.2s ease;
}

.card-head,
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.card-head h3,
.panel-header h3 {
    margin: 0;
    font-size: 20px;
}

.big-value {
    font-size: 44px;
    font-weight: 900;
    margin: 34px 0 10px;
    letter-spacing: -1px;
}

.positive {
    color: var(--green-light);
}

.negative,
.danger,
.red {
    color: var(--red);
}

.green {
    color: var(--green-light);
}

/* MINI CASH BARS */

.mini-bars {
    display: flex;
    align-items: end;
    gap: 10px;
    height: 86px;
    margin-top: 28px;
}

.mini-bars span {
    flex: 1;
    background: linear-gradient(180deg, #30c36b, #087a35);
    border-radius: 7px 7px 0 0;
}

/* FINANCE ROWS */

.finance-row,
.money-row,
.finance-line {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.finance-row.total,
.money-row.total,
.finance-line.total {
    border-bottom: none;
    font-size: 20px;
    font-weight: 900;
}

/* OPS */

.operation-boxes,
.ops-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 34px;
}

.operation-boxes div,
.ops-metrics div {
    background: #f0f6f3;
    border-radius: 12px;
    text-align: center;
    padding: 20px 8px;
}

.operation-boxes strong,
.ops-metrics strong {
    display: block;
    font-size: 28px;
}

.operation-boxes span,
.ops-metrics span {
    color: var(--muted);
}

/* AI */

.refresh-btn,
.mini-btn {
    width: auto;
    margin: 0;
    padding: 10px 18px;
    border: 0;
    border-radius: 8px;
    background: var(--green-light);
    color: white;
    font-weight: 900;
}

.ai-line,
.insights li {
    background: #f0f5f2;
    margin-bottom: 10px;
    padding: 12px;
    border-radius: 8px;
}

/* CHART */

.cash-chart,
.bar-chart {
    height: 240px;
    display: flex;
    gap: 52px;
    align-items: end;
    border-top: 1px solid var(--border);
    padding: 28px 28px 8px;
}

.cash-chart div,
.bar-chart div {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: center;
    gap: 10px;
}

.cash-chart span,
.bar {
    width: 42px;
    border-radius: 8px 8px 0 0;
    display: block;
}

.cash-in,
.bar.in {
    background: var(--green-light);
}

.cash-out,
.bar.out {
    background: #8db9df;
}

.chart-legend {
    text-align: center;
    margin-top: 10px;
}

.chart-legend span {
    margin: 0 16px;
}

.green-dot,
.blue-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 4px;
    margin-right: 6px;
}

.green-dot {
    background: var(--green-light);
}

.blue-dot {
    background: #8db9df;
}

/* QUICK ACTIONS */

.quick-grid,
.quick-action-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.quick-grid a,
.quick-action-grid a {
    background: #f0f6f3;
    border-radius: 12px;
    padding: 24px 14px;
    text-align: center;
    text-decoration: none;
    color: #073426;
    font-weight: 900;
}

.quick-grid a:hover,
.quick-action-grid a:hover {
    background: #dff4e8;
}

/* TABLES */

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

.modern-table th {
    text-align: left;
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
    padding: 14px 12px;
    border-bottom: 1px solid var(--border);
}

.modern-table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--border);
}

.type-badge,
.account-badge,
.badge {
    padding: 6px 10px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 900;
}

.type-expense,
.badge-expense {
    background: #ffe7e7;
    color: var(--red);
}

.type-payment,
.type-income {
    background: #e8f8ef;
    color: var(--green-light);
}

.badge-asset {
    background: #e8f8ef;
    color: var(--green-light);
}

.badge-liability {
    background: #fff0df;
    color: #b45309;
}

.badge-equity {
    background: #f0e7ff;
    color: #6b21a8;
}

.badge-income {
    background: #e7f0ff;
    color: var(--blue);
}

.badge-expense {
    background: #ffe7e7;
    color: var(--red);
}

/* PAGE HEADERS */

.page-header,
.compact-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 34px;
}

.page-header h1 {
    margin: 0;
    font-size: 36px;
}

.page-header p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 17px;
}

.page-icon {
    color: var(--purple);
    margin-right: 12px;
}

.header-actions {
    display: flex;
    gap: 12px;
}

/* FORMS */

form {
    background: white;
    padding: 24px;
    border-radius: 14px;
    max-width: 760px;
    box-shadow: var(--shadow);
}

.job-form,
.form-panel {
    max-width: 1250px;
}

.form-panel {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.form-section {
    padding: 24px;
    border-bottom: 1px solid var(--border);
}

.form-grid,
.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

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

label {
    display: block;
    margin-top: 16px;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    margin-top: 8px;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-size: 16px;
}

textarea {
    min-height: 100px;
}

button,
.btn {
    display: block;
    width: 100%;
    padding: 16px;
    border-radius: 10px;
    border: none;
    background: var(--green-light);
    color: white;
    font-size: 17px;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
    margin-top: 18px;
}

/* CORPORATE */

.ownership-row {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.ownership-top,
.ownership-meta {
    display: flex;
    justify-content: space-between;
}

.progress-bar {
    height: 10px;
    background: #e5e7eb;
    border-radius: 999px;
    margin-top: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--green-light), #18a34a);
}

/* MISC */

.empty-state {
    padding: 30px;
    text-align: center;
    color: var(--muted);
    background: #f8faf9;
    border-radius: 12px;
}

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

/* RESPONSIVE */

@media (max-width: 1200px) {
    .header-actions {
        display: none;
    }

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

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

@media (max-width: 800px) {
    .app-header {
        height: auto;
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .brand {
        min-width: unset;
    }

    .brand-logo {
        height: 38px;
    }

    .brand-name {
        font-size: 24px;
    }

    .brand-tagline {
        display: none;
    }

    .primary-nav {
        width: 100%;
        overflow-x: auto;
        gap: 8px;
    }

    .nav-link {
        min-width: max-content;
        height: 50px;
        padding: 0 14px;
    }

    .container {
        padding: 24px 14px;
    }

    .hero-row,
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .hero-row h1,
    .page-header h1 {
        font-size: 30px;
    }

    .top-grid,
    .dashboard-grid,
    .xero-grid,
    .form-grid,
    .summary-grid {
        grid-template-columns: 1fr;
    }

    .quick-grid,
    .quick-action-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .modern-table {
        display: block;
        overflow-x: auto;
    }

    .cash-chart,
    .bar-chart {
        gap: 26px;
        overflow-x: auto;
    }

    .footer {
        flex-direction: column;
        gap: 10px;
    }
}

/* ==========================================
   SLEEK TYPOGRAPHY + UI REFINEMENT
========================================== */

body {
    font-family:
        "Segoe UI",
        Inter,
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* Header */

.brand-name {
    font-weight: 700;
    letter-spacing: -0.9px;
}

.brand-tagline {
    font-weight: 400;
    opacity: 0.88;
}

.nav-link {
    font-weight: 500;
    font-size: 15px;
}

.nav-link span {
    font-weight: 500;
}

.user-chip strong {
    font-weight: 600;
}

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

/* Page titles */

.hero-row h1,
.page-header h1 {
    font-weight: 700;
    letter-spacing: -1.2px;
}

.hero-row p,
.page-header p {
    font-weight: 400;
}

/* Cards */

.card-head h3,
.panel-header h3,
.panel h3,
.dash-card h3,
.xero-card h3 {
    font-weight: 600;
    letter-spacing: -0.3px;
}

.dash-card,
.panel,
.xero-card,
.kpi-card {
    box-shadow: 0 2px 14px rgba(15, 23, 42, 0.055);
    border: 1px solid rgba(229, 231, 235, 0.75);
}

.dash-card:hover,
.panel:hover,
.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

/* KPI numbers */

.big-value,
.kpi-card strong,
.operation-boxes strong,
.ops-metrics strong {
    font-weight: 700;
    letter-spacing: -1px;
}

/* Supporting text */

p,
span,
td,
label,
input,
select,
textarea {
    font-weight: 400;
}

label {
    font-weight: 500;
}

/* Buttons */

.primary-action,
.add-btn,
.refresh-btn,
.mini-btn,
button,
.btn {
    font-weight: 600;
    letter-spacing: -0.1px;
}

/* Tables */

.modern-table th {
    font-weight: 600;
    letter-spacing: 0.06em;
}

.modern-table td {
    font-weight: 400;
}

.modern-table td strong {
    font-weight: 600;
}

/* Badges */

.type-badge,
.account-badge,
.badge {
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Quick action buttons */

.quick-grid a,
.quick-action-grid a {
    font-weight: 600;
}

.quick-grid span,
.quick-action-grid span {
    font-weight: 600;
}

/* AI items */

.ai-line,
.insights li {
    font-weight: 400;
}

/* Finance rows */

.finance-row span,
.money-row span,
.finance-line span {
    font-weight: 400;
}

.finance-row strong,
.money-row strong,
.finance-line strong {
    font-weight: 600;
}

/* Module nav */

.module-nav a {
    font-weight: 500;
}

/* Forms */

input,
select,
textarea {
    font-weight: 400;
}

form button {
    font-weight: 600;
}

/* Make links cleaner */

a {
    text-underline-offset: 3px;
}

.card-head a,
.panel-header a {
    font-weight: 500;
}

/* ==========================================
   PREMIUM FINAL POLISH
========================================== */

/* Softer app background */
body {
    background: linear-gradient(180deg, #f8fafb 0%, #f3f6f7 100%);
}

/* Bigger cleaner logo */
.brand-logo {
    height: 58px;
    width: auto;
    object-fit: contain;
}

.brand-name {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -1px;
}

.brand-tagline {
    font-size: 14px;
    font-weight: 400;
    color: #dcefe6;
}

/* Header breathing room */
.app-header {
    height: 96px;
    padding: 0 38px;
}

/* Sleeker nav */
.nav-link {
    font-weight: 500;
    font-size: 15px;
    padding: 0 24px;
    height: 58px;
}

.nav-link.active {
    background: rgba(255,255,255,0.18);
}

/* More premium spacing */
.container {
    padding: 48px 56px;
}

.hero-row {
    margin-bottom: 36px;
}

.hero-row h1 {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -1.4px;
}

.hero-row p {
    font-size: 18px;
    color: #6b7280;
}

/* Better card spacing */
.dash-grid {
    gap: 34px;
    margin-bottom: 34px;
}

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

/* Softer premium cards */
.dash-card,
.panel,
.kpi-card,
.xero-card {
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfc 100%);
    border: 1px solid rgba(229,231,235,0.85);
    box-shadow: 0 3px 16px rgba(15,23,42,0.055);
}

.dash-card:hover,
.panel:hover,
.kpi-card:hover,
.xero-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(15,23,42,0.09);
}

/* Card titles */
.card-head h3,
.panel-header h3,
.dash-card h3,
.panel h3 {
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.4px;
}

/* KPI value dominance */
.big-value {
    font-size: 50px;
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1;
}

.finance-row strong,
.money-row strong,
.operation-boxes strong {
    font-weight: 650;
}

/* Better action buttons */
.primary-action,
.add-btn {
    background: #0b7a39;
    border-radius: 10px;
    font-weight: 600;
    padding: 17px 34px;
}

.primary-action:hover,
.add-btn:hover {
    background: #096b32;
    transform: translateY(-2px);
}

/* Quick actions feel clickable */
.quick-grid a,
.quick-action-grid a {
    transition: 0.2s ease;
    border: 1px solid #e5ece8;
}

.quick-grid a:hover,
.quick-action-grid a:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(15,23,42,0.08);
}

/* AI Business Advisor polish */
.ai-card .card-head h3::before {
    content: "🤖 ";
}

.ai-line {
    border: 1px solid #e3ebe7;
    background: linear-gradient(180deg, #f4faf7, #eef6f2);
    font-size: 15px;
    line-height: 1.35;
}

/* Operation boxes cleaner */
.operation-boxes div {
    background: #f3f8f5;
    border: 1px solid #e3ece7;
}

.operation-boxes strong {
    font-size: 32px;
}

/* Charts */
.mini-bars span {
    background: linear-gradient(180deg, #2cc76c 0%, #087a35 100%);
}

.cash-in {
    background: linear-gradient(180deg, #0c9444 0%, #087a35 100%);
}

.cash-out {
    background: linear-gradient(180deg, #9bc4e8 0%, #7dadcf 100%);
}

/* Recent transaction badges */
.type-expense {
    background: #ffe5e8;
    color: #c41230;
}

.type-payment {
    background: #e7f0ff;
    color: #0057b8;
}

.type-income {
    background: #e6f8ee;
    color: #087a35;
}

/* Table refinement */
.modern-table th {
    font-size: 12px;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.modern-table td {
    font-size: 15px;
}

/* Footer less loud */
.footer {
    background: transparent;
    border-top: 1px solid #e5e7eb;
    font-size: 14px;
}

/* Mobile */
@media (max-width: 900px) {
    .app-header {
        height: auto;
    }

    .brand-logo {
        height: 42px;
    }

    .brand-name {
        font-size: 24px;
    }

    .container {
        padding: 26px 16px;
    }

    .hero-row h1 {
        font-size: 32px;
    }

    .big-value {
        font-size: 42px;
    }
}

/* ==========================================
   MOBILE + SLEEK UI FIX
========================================== */

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

body {
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-weight: 400;
}

/* remove heavy look */
* {
    font-weight: inherit;
}

strong,
.big-value,
.hero-row h1,
.brand-name {
    font-weight: 700;
}

.nav-link,
.module-nav a,
.primary-action,
.add-btn,
button,
.btn,
.card-head h3,
.panel-header h3 {
    font-weight: 600;
}

/* cleaner links */
.card-head a,
.panel-header a {
    color: var(--green-light);
    text-decoration: none;
    font-weight: 500;
}

.card-head a:hover,
.panel-header a:hover {
    text-decoration: underline;
}

/* desktop polish */
.app-header {
    height: 82px;
    padding: 0 32px;
}

.brand {
    min-width: 260px;
}

.brand-name {
    font-size: 30px;
    letter-spacing: -1.2px;
}

.vista {
    color: #37d66f;
}

.brand-tagline {
    font-size: 13px;
}

.nav-link {
    height: 52px;
    padding: 0 20px;
    font-size: 15px;
}

.container {
    padding: 44px 60px;
}

.hero-row h1 {
    font-size: 46px;
    line-height: 1.1;
}

.hero-row p {
    font-size: 18px;
}

.dash-card,
.panel,
.kpi-card,
.xero-card {
    border-radius: 12px;
    box-shadow:
        0 2px 10px rgba(15,23,42,.04),
        0 8px 30px rgba(15,23,42,.03);
}

.card-head h3 {
    font-size: 18px;
}

.big-value {
    font-size: 56px;
    letter-spacing: -3px;
}

/* ==========================================
   TABLET
========================================== */

@media (max-width: 1100px) {
    .app-header {
        height: auto;
        padding: 18px 22px;
        flex-wrap: wrap;
        gap: 14px;
    }

    .brand {
        min-width: auto;
        width: 100%;
    }

    .primary-nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 4px;
    }

    .nav-link {
        min-width: 150px;
        justify-content: center;
        flex-shrink: 0;
    }

    .header-actions {
        position: absolute;
        top: 18px;
        right: 22px;
    }

    .user-chip strong,
    .user-chip span {
        display: none;
    }

    .container {
        padding: 34px 24px;
    }

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

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

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 700px) {

    body {
        background: #f6f8fa;
    }

    .app-header {
        padding: 14px;
        gap: 12px;
    }

    .brand {
        width: 100%;
        min-width: 0;
    }

    .brand-name {
        font-size: 26px;
        letter-spacing: -1px;
    }

    .brand-tagline {
        font-size: 12px;
        display: block;
    }

    .header-actions {
        position: static;
        width: 100%;
        justify-content: flex-end;
        gap: 10px;
    }

    .icon-btn {
        width: 42px;
        height: 42px;
    }

    .avatar {
        width: 38px;
        height: 38px;
    }

    .primary-nav {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        overflow: visible;
    }

    .nav-link {
        min-width: 0;
        height: 58px;
        padding: 6px;
        flex-direction: column;
        gap: 4px;
        font-size: 11px;
        border-radius: 12px;
    }

    .nav-link i {
        font-size: 18px;
    }

    .nav-link span {
        font-size: 11px;
    }

    .module-nav {
        padding: 10px 12px;
        gap: 8px;
    }

    .module-nav a {
        padding: 9px 14px;
        font-size: 13px;
    }

    .container {
        padding: 24px 14px;
    }

    .hero-row {
        display: block;
        margin-bottom: 22px;
    }

    .hero-row h1 {
        font-size: 32px;
        line-height: 1.12;
        letter-spacing: -1px;
    }

    .hero-row p {
        font-size: 15px;
        margin-top: 8px;
    }

    .hero-actions {
        margin-top: 18px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .primary-action,
    .add-btn {
        padding: 14px 12px;
        text-align: center;
        font-size: 14px;
        border-radius: 10px;
    }

    .dash-grid,
    .top-grid,
    .lower-grid,
    .dashboard-grid,
    .xero-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 16px;
    }

    .dash-card,
    .panel,
    .kpi-card,
    .xero-card {
        padding: 18px;
        border-radius: 14px;
    }

    .card-head,
    .panel-header {
        margin-bottom: 16px;
        gap: 12px;
    }

    .card-head h3,
    .panel-header h3 {
        font-size: 17px;
        line-height: 1.2;
    }

    .big-value {
        font-size: 44px;
        letter-spacing: -2px;
        margin: 26px 0 8px;
    }

    .mini-bars {
        height: 70px;
    }

    .operation-boxes,
    .ops-metrics {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin-top: 22px;
    }

    .operation-boxes div,
    .ops-metrics div {
        padding: 14px 6px;
    }

    .operation-boxes strong,
    .ops-metrics strong {
        font-size: 22px;
    }

    .operation-boxes span,
    .ops-metrics span {
        font-size: 12px;
    }

    .quick-grid,
    .quick-action-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .quick-grid a,
    .quick-action-grid a {
        padding: 18px 10px;
        font-size: 14px;
    }

    .cash-chart,
    .bar-chart {
        height: 190px;
        gap: 24px;
        overflow-x: auto;
        padding: 20px 8px 8px;
    }

    .cash-chart span,
    .bar {
        width: 34px;
    }

    .modern-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .modern-table th,
    .modern-table td {
        padding: 10px;
        font-size: 13px;
    }

    .page-header,
    .compact-header {
        display: block;
        margin-bottom: 22px;
    }

    .page-header h1 {
        font-size: 30px;
    }

    form {
        max-width: 100%;
        padding: 18px;
    }

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

    .footer {
        padding: 18px 14px;
        font-size: 12px;
    }
}

/* ==========================================
   FINAL MOBILE RESPONSIVE POLISH
========================================== */

@media (max-width: 768px) {

    .app-header {
        padding: 14px 16px;
        gap: 14px;
    }

    .brand-name {
        font-size: 30px;
    }

    .brand-tagline {
        font-size: 12px;
    }

    .primary-nav {
        grid-template-columns: repeat(4, 1fr);
    }

    .nav-link {
        height: 54px;
        padding: 6px;
        font-size: 11px;
    }

    .container {
        padding: 24px 14px;
    }

    .hero-row h1 {
        font-size: 34px;
    }

    .hero-actions {
        grid-template-columns: 1fr 1fr;
    }

    .top-grid,
    .lower-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .dash-card {
        min-height: auto;
        padding: 18px;
    }

    .big-value {
        font-size: 46px;
    }

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

    .cash-chart {
        height: 180px;
    }

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

    .modern-table {
        overflow-x: auto;
        display: block;
    }
}

/* CORPORATE PAGE FIX */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 28px;
}

.kpi-card {
    min-height: 130px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.kpi-card .kpi-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.kpi-card span {
    display: block;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 6px;
}

.kpi-card strong {
    display: block;
    font-size: 28px;
    font-weight: 700;
}

.kpi-card small {
    display: block;
    margin-top: 6px;
    color: var(--green-light);
}

/* Corporate panels */
.dashboard-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* Mobile */
@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 600px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .kpi-card {
        min-height: 110px;
    }
}

/* FLEET TELEMETRY */

.live-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #16a34a;
    border-radius: 50%;
    margin-left: 10px;
}

.fleet-kpis {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 22px;
    margin-bottom: 26px;
}

.fleet-card {
    background: white;
    border-radius: 14px;
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

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

.fleet-card strong {
    display: block;
    font-size: 32px;
    margin: 12px 0;
    font-weight: 700;
}

.fleet-card small {
    color: var(--green-light);
}

.fleet-card.alert strong {
    color: var(--red);
}

.fleet-layout {
    display: grid;
    grid-template-columns: 1.1fr 1.6fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.fleet-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr 1.4fr;
    gap: 24px;
}

.fleet-panel {
    background: white;
    border-radius: 14px;
    padding: 22px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.tractor-row {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.tractor-row small {
    display: block;
    color: var(--muted);
    margin-top: 4px;
}

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

.status-working {
    color: var(--green-light);
}

.status-idle {
    color: #f59e0b;
}

.status-maintenance {
    color: var(--red);
}

.fake-map {
    height: 360px;
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(8,122,53,.08), rgba(0,87,184,.08)),
        #edf4ef;
    position: relative;
    overflow: hidden;
}

.fake-map::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(255,255,255,.55) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,.55) 1px, transparent 1px);
    background-size: 52px 52px;
}

.pin {
    position: absolute;
    font-size: 26px;
}

.p1 { top: 18%; left: 18%; }
.p2 { top: 28%; left: 48%; }
.p3 { top: 58%; left: 35%; }
.p4 { top: 48%; left: 68%; }
.p5 { top: 72%; left: 56%; }

.pin.idle {
    filter: hue-rotate(40deg);
}

.pin.danger {
    filter: hue-rotate(130deg);
}

.map-label {
    position: absolute;
    color: #334155;
    font-weight: 600;
}

.l1 { top: 12%; left: 42%; }
.l2 { top: 36%; left: 72%; }
.l3 { top: 64%; left: 16%; }

.alert-row {
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 10px;
    font-weight: 600;
}

.alert-row small {
    display: block;
    font-weight: 400;
    margin-top: 5px;
    color: var(--muted);
}

.alert-row.danger {
    background: #fff1f2;
    color: var(--red);
}

.alert-row.warning {
    background: #fff7ed;
    color: #f97316;
}

.alert-row.info {
    background: #eff6ff;
    color: var(--blue);
}

.gauge-panel {
    text-align: center;
}

.gauge {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    margin: 20px auto;
    display: grid;
    place-items: center;
    font-size: 34px;
    font-weight: 700;
    background:
        radial-gradient(circle at center, white 58%, transparent 59%),
        conic-gradient(var(--green-light) 0 62%, #f59e0b 62% 82%, var(--red) 82% 100%);
}

.gauge.vibration {
    font-size: 24px;
}

.line-chart {
    height: 190px;
    display: flex;
    align-items: end;
    gap: 20px;
    padding-top: 24px;
}

.line-chart span {
    flex: 1;
    background: linear-gradient(180deg, #2cc76c, #087a35);
    border-radius: 8px 8px 0 0;
}

@media (max-width: 1100px) {
    .fleet-kpis {
        grid-template-columns: repeat(2, 1fr);
    }

    .fleet-layout,
    .fleet-bottom {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .fleet-kpis {
        grid-template-columns: 1fr;
    }

    .fake-map {
        height: 280px;
    }
}

.login-body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #002b1f, #0b7f3a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Inter, Arial, sans-serif;
}

.login-card {
    width: 380px;
    background: white;
    padding: 36px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,.25);
}

.login-card h1 {
    margin: 0;
    font-size: 32px;
    color: #0f172a;
}

.login-card h1 span {
    color: #16a34a;
}

.login-card p {
    color: #64748b;
    margin-bottom: 28px;
}

.login-card label {
    display: block;
    margin-top: 16px;
    margin-bottom: 6px;
    font-weight: 600;
    color: #334155;
}

.login-card input {
    width: 100%;
    padding: 13px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 15px;
}

.login-card button {
    width: 100%;
    margin-top: 24px;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: #087f3d;
    color: white;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
}

.login-error {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 16px;
}

@media (max-width: 600px) {
    .login-body {
        min-height: 100vh;
        min-height: 100dvh;
        align-items: stretch;
        background: #ffffff;
    }

    .login-card {
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 100%;
        min-height: 100vh;
        min-height: 100dvh;
        padding: max(28px, env(safe-area-inset-top)) 24px
                 max(28px, env(safe-area-inset-bottom));
        border-radius: 0;
        box-shadow: none;
    }

    .login-card h1 {
        font-size: 38px;
        line-height: 1.1;
    }

    .login-card p {
        max-width: 34rem;
        margin: 14px 0 28px;
        font-size: 17px;
        line-height: 1.5;
    }

    .login-card label {
        margin-top: 18px;
        margin-bottom: 8px;
        font-size: 16px;
    }

    .login-card input {
        box-sizing: border-box;
        min-height: 58px;
        padding: 15px 16px;
        border-width: 2px;
        font-size: 18px;
    }

    .login-card button {
        min-height: 58px;
        margin-top: 28px;
        font-size: 18px;
    }
}

/* MISSION CONTROL FLEET UI */

.live-badge {
    background: #087a35;
    color: white;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 999px;
    margin-left: 10px;
}

.filter-btn {
    width: auto;
    margin: 0;
    padding: 13px 18px;
    background: white;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-weight: 500;
}

.mission-kpis {
    grid-template-columns: repeat(6, 1fr);
}

.warning-card strong,
.warning-card small {
    color: #f59e0b;
}

.mission-layout {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.mission-map {
    min-height: 430px;
}

.sat-map {
    height: 380px;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(6,75,55,.45), rgba(8,122,53,.25)),
        url("https://tile.openstreetmap.org/8/146/130.png");
    background-size: cover;
}

.sat-map::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(4,51,38,.18);
}

.map-tractor {
    position: absolute;
    z-index: 2;
    font-size: 30px;
    background: #087a35;
    border: 3px solid white;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 18px rgba(0,0,0,.25);
}

.map-tractor.idle {
    background: #f59e0b;
}

.map-tractor.danger {
    background: #dc2626;
}

.t1 { top: 32%; left: 22%; }
.t2 { top: 22%; left: 58%; }
.t3 { top: 58%; left: 66%; }
.t4 { top: 70%; left: 82%; }

.route-line {
    position: absolute;
    z-index: 1;
    top: 44%;
    left: 28%;
    width: 340px;
    height: 3px;
    border-top: 3px dashed rgba(255,255,255,.75);
    transform: rotate(18deg);
}

.map-place {
    position: absolute;
    z-index: 2;
    color: white;
    background: rgba(0,0,0,.45);
    padding: 6px 10px;
    border-radius: 8px;
    font-weight: 600;
}

.bindura { top: 14%; left: 38%; }
.shamva { top: 40%; right: 16%; }
.matepatepa { bottom: 26%; left: 34%; }

.map-legend {
    position: absolute;
    z-index: 3;
    left: 18px;
    bottom: 18px;
    background: rgba(0,0,0,.55);
    color: white;
    padding: 12px 14px;
    border-radius: 12px;
    display: flex;
    gap: 14px;
    font-size: 13px;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    margin-right: 5px;
}

.orange-dot { background: #f59e0b; }
.red-dot { background: #dc2626; }

.ai-pill {
    background: #dcfce7;
    color: #087a35;
    padding: 5px 9px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 12px;
}

.ai-health-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.ai-health-row span {
    grid-column: 1;
    font-weight: 500;
}

.ai-health-row small {
    grid-row: 1 / 3;
    grid-column: 2;
    align-self: center;
    padding: 7px 10px;
    border-radius: 8px;
    font-weight: 700;
}

.ai-health-row.good span,
.ai-health-row.good small {
    color: #087a35;
}

.ai-health-row.warn span,
.ai-health-row.warn small {
    color: #f59e0b;
}

.ai-health-row.danger span,
.ai-health-row.danger small {
    color: #dc2626;
}

.big-value.small {
    font-size: 42px;
    margin: 18px 0 8px;
}

@media (max-width: 1200px) {
    .mission-kpis {
        grid-template-columns: repeat(3, 1fr);
    }

    .mission-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .mission-kpis {
        grid-template-columns: 1fr;
    }

    .sat-map {
        height: 290px;
    }

    .map-legend {
        flex-direction: column;
        gap: 6px;
    }

    .fleet-bottom {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   ASSET ACQUISITION
========================================================= */

.asset-page {
    padding: 34px 0 70px;
}

.asset-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.asset-page-header h1 {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 4px 0 6px;
    color: #062345;
    font-size: clamp(30px, 3vw, 43px);
    line-height: 1.1;
}

.asset-page-header h1 i {
    color: #07833e;
}

.asset-page-header p {
    margin: 0;
    color: #63728a;
    font-size: 17px;
}

.eyebrow {
    color: #07833e;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.asset-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.asset-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 0 20px;
    border: none;
    border-radius: 11px;
    text-decoration: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 750;
    cursor: pointer;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}

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

.asset-btn-primary {
    color: #ffffff;
    background: #07833e;
    box-shadow: 0 9px 20px rgba(7, 131, 62, 0.2);
}

.asset-btn-primary:hover {
    color: #ffffff;
    background: #056c34;
}

.asset-btn-secondary {
    color: #18324d;
    background: #ffffff;
    border: 1px solid #dce3e9;
}

.asset-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 17px;
    margin-bottom: 20px;
    border-radius: 10px;
    font-weight: 650;
}

.asset-alert-danger {
    color: #b42318;
    background: #fff1f0;
    border: 1px solid #ffc9c5;
}

.asset-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
    gap: 26px;
}

.asset-form-main {
    display: grid;
    gap: 22px;
}

.asset-panel {
    padding: 27px;
    background: #ffffff;
    border: 1px solid #e2e7ec;
    border-radius: 17px;
    box-shadow: 0 9px 30px rgba(15, 36, 58, 0.055);
}

.asset-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    padding-bottom: 19px;
    margin-bottom: 22px;
    border-bottom: 1px solid #edf0f3;
}

.asset-panel-heading h2 {
    margin: 0 0 4px;
    color: #082341;
    font-size: 20px;
}

.asset-panel-heading p {
    margin: 0;
    color: #718096;
    font-size: 14px;
}

.asset-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 39px;
    height: 39px;
    flex: 0 0 auto;
    color: #067438;
    background: #e8f7ee;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 850;
}

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

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

.asset-field-wide,
.asset-field-full {
    grid-column: 1 / -1;
}

.asset-field label {
    color: #263b52;
    font-size: 13px;
    font-weight: 750;
}

.asset-field input,
.asset-field select,
.asset-field textarea {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    color: #142b45;
    background: #fbfcfd;
    border: 1px solid #d9e0e6;
    border-radius: 9px;
    outline: none;
    font-family: inherit;
    font-size: 15px;
    box-sizing: border-box;
}

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

.asset-field input:focus,
.asset-field select:focus,
.asset-field textarea:focus {
    background: #ffffff;
    border-color: #07833e;
    box-shadow: 0 0 0 3px rgba(7, 131, 62, 0.1);
}

.asset-calculation-card {
    position: sticky;
    top: 110px;
    padding: 25px;
    color: #ffffff;
    background:
        radial-gradient(
            circle at top right,
            rgba(63, 191, 111, 0.24),
            transparent 35%
        ),
        linear-gradient(155deg, #073b2e, #052c24);
    border-radius: 17px;
    box-shadow: 0 20px 45px rgba(5, 44, 36, 0.22);
}

.calculation-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    padding-bottom: 18px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.calculation-card-heading span {
    color: #9be0b7;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.calculation-card-heading h2 {
    margin: 4px 0 0;
    color: #ffffff;
    font-size: 22px;
}

.calculation-card-heading i {
    color: #9be0b7;
    font-size: 24px;
}

.calculation-row,
.calculation-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 10px 0;
}

.calculation-row {
    color: #cce1d8;
    font-size: 14px;
}

.calculation-row strong {
    color: #ffffff;
}

.calculation-total {
    margin-top: 9px;
    padding: 17px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.17);
    border-bottom: 1px solid rgba(255, 255, 255, 0.17);
}

.calculation-total span {
    font-weight: 750;
}

.calculation-total strong {
    color: #76e69f;
    font-size: 22px;
}

.capital-cost-box {
    padding: 19px;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.085);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 12px;
}

.capital-cost-box span,
.capital-cost-box small {
    display: block;
}

.capital-cost-box span {
    color: #d1e8de;
    font-size: 13px;
}

.capital-cost-box strong {
    display: block;
    margin: 6px 0;
    color: #ffffff;
    font-size: 27px;
}

.capital-cost-box small {
    color: #a9c8bb;
    line-height: 1.45;
}

.asset-calculation-card .asset-btn {
    width: 100%;
}

.asset-cancel-link {
    display: block;
    margin-top: 14px;
    color: #bcd3ca;
    text-align: center;
    text-decoration: none;
    font-size: 13px;
}

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

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

.asset-kpi-card {
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e1e7eb;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(20, 40, 60, 0.05);
}

.asset-kpi-card span,
.asset-kpi-card small {
    display: block;
}

.asset-kpi-card span {
    color: #65758a;
    font-size: 14px;
}

.asset-kpi-card strong {
    display: block;
    margin: 8px 0 6px;
    color: #082341;
    font-size: 28px;
}

.asset-kpi-card small {
    color: #07833e;
}

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

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

.asset-table th,
.asset-table td {
    padding: 15px 12px;
    text-align: left;
    border-bottom: 1px solid #edf0f2;
    white-space: nowrap;
}

.asset-table th {
    color: #69798d;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.asset-table td {
    color: #243a52;
    font-size: 14px;
}

.asset-name {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.asset-name span {
    color: #76869a;
    font-size: 12px;
}

.asset-status {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    color: #08783b;
    background: #e9f8ef;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 750;
}

.asset-status-large {
    padding: 10px 15px;
    font-size: 14px;
}

.asset-table-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #07833e;
    text-decoration: none;
    font-weight: 750;
}

.asset-empty-state {
    padding: 55px 20px;
    text-align: center;
}

.asset-empty-state > i {
    color: #07833e;
    font-size: 45px;
}

.asset-empty-state h3 {
    margin: 15px 0 5px;
    color: #102d4b;
}

.asset-empty-state p {
    margin: 0 0 20px;
    color: #718096;
}

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

.asset-detail-list {
    margin: 0;
}

.asset-detail-list > div,
.asset-cost-breakdown > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 0;
    border-bottom: 1px solid #edf0f3;
}

.asset-detail-list dt,
.asset-cost-breakdown span {
    color: #738297;
}

.asset-detail-list dd {
    margin: 0;
    color: #18324d;
    font-weight: 700;
    text-align: right;
}

.asset-cost-breakdown strong {
    color: #18324d;
}

.asset-cost-breakdown .asset-cost-total {
    padding-top: 19px;
    border-bottom: none;
}

.asset-cost-breakdown .asset-cost-total span {
    color: #16324d;
    font-weight: 800;
}

.asset-cost-breakdown .asset-cost-total strong {
    color: #07833e;
    font-size: 21px;
}

@media (max-width: 1050px) {
    .asset-form {
        grid-template-columns: 1fr;
    }

    .asset-calculation-card {
        position: static;
    }

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

@media (max-width: 760px) {
    .asset-page {
        padding-top: 22px;
    }

    .asset-page-header {
        flex-direction: column;
    }

    .asset-page-header .asset-btn {
        width: 100%;
    }

    .asset-header-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .asset-form-grid,
    .asset-kpi-grid,
    .asset-kpi-grid-four,
    .asset-detail-grid {
        grid-template-columns: 1fr;
    }

    .asset-field-wide,
    .asset-field-full {
        grid-column: auto;
    }

    .asset-panel {
        padding: 20px;
    }
}

/* =========================================================
   ASSET 360
========================================================= */

.asset-360-page {
    padding: 32px 0 70px;
}

.asset-360-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 24px;
}

.asset-360-header h1 {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 5px 0 6px;
    color: #082341;
    font-size: clamp(30px, 3vw, 43px);
}

.asset-360-header h1 i {
    color: #07833e;
}

.asset-360-header p {
    margin: 0;
    color: #67778c;
    font-size: 17px;
}

.asset-360-eyebrow {
    color: #07833e;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.asset-360-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.asset-360-tabs {
    display: flex;
    gap: 8px;
    padding: 8px;
    margin-bottom: 24px;
    overflow-x: auto;
    background: #ffffff;
    border: 1px solid #e2e7eb;
    border-radius: 14px;
}

.asset-360-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 17px;
    color: #5f7085;
    border-radius: 9px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 750;
    white-space: nowrap;
}

.asset-360-tabs a:hover,
.asset-360-tabs a.active {
    color: #ffffff;
    background: #07833e;
}

.asset-360-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.asset-360-kpi {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 22px;
    background: #ffffff;
    border: 1px solid #e1e7eb;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(15, 37, 58, 0.055);
}

.asset-360-kpi-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    flex: 0 0 auto;
    color: #07833e;
    background: #e8f7ee;
    border-radius: 11px;
}

.asset-360-kpi span,
.asset-360-kpi small {
    display: block;
}

.asset-360-kpi span {
    color: #68788d;
    font-size: 13px;
}

.asset-360-kpi strong {
    display: block;
    margin: 7px 0 4px;
    color: #082341;
    font-size: 23px;
}

.asset-360-kpi small {
    color: #07833e;
    line-height: 1.35;
}

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

.asset-360-section {
    margin-top: 22px;
    scroll-margin-top: 120px;
}

.asset-360-panel {
    padding: 26px;
    background: #ffffff;
    border: 1px solid #e1e7eb;
    border-radius: 16px;
    box-shadow: 0 9px 28px rgba(15, 37, 58, 0.055);
}

.asset-360-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid #edf0f3;
}

.asset-360-panel-header h2 {
    margin: 0 0 4px;
    color: #082341;
    font-size: 20px;
}

.asset-360-panel-header p {
    margin: 0;
    color: #718096;
    font-size: 14px;
}

.asset-360-panel-header > strong {
    color: #07833e;
    font-size: 22px;
}

.asset-life-progress {
    height: 14px;
    overflow: hidden;
    background: #e8edf1;
    border-radius: 999px;
}

.asset-life-progress-fill {
    min-width: 0;
    height: 100%;
    background: linear-gradient(
        90deg,
        #07833e,
        #20bd68
    );
    border-radius: inherit;
}

.asset-life-labels {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 11px;
    color: #69798d;
    font-size: 13px;
}

.asset-readiness-list > div,
.asset-360-cost-list > div,
.asset-360-economics > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 13px 0;
    border-bottom: 1px solid #edf0f3;
}

.asset-readiness-list span,
.asset-360-cost-list span,
.asset-360-economics span {
    color: #718096;
}

.asset-readiness-list strong,
.asset-360-cost-list strong,
.asset-360-economics strong {
    color: #19334e;
    text-align: right;
}

.asset-360-details {
    margin: 0;
}

.asset-360-details > div {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 20px;
    padding: 13px 0;
    border-bottom: 1px solid #edf0f3;
}

.asset-360-details dt {
    color: #718096;
}

.asset-360-details dd {
    margin: 0;
    color: #19334e;
    font-weight: 700;
    text-align: right;
}

.asset-360-cost-list .asset-360-cost-total {
    padding-top: 18px;
    border-bottom: none;
}

.asset-360-cost-total span {
    color: #19334e;
    font-weight: 800;
}

.asset-360-cost-total strong {
    color: #07833e;
    font-size: 20px;
}

.asset-360-highlight {
    color: #ffffff;
    background:
        radial-gradient(
            circle at top right,
            rgba(57, 202, 111, 0.24),
            transparent 38%
        ),
        linear-gradient(145deg, #063b2e, #052c24);
    border-color: transparent;
}

.asset-360-highlight .asset-360-panel-header {
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

.asset-360-highlight .asset-360-panel-header h2 {
    color: #ffffff;
}

.asset-360-highlight .asset-360-panel-header p {
    color: #bcd5ca;
}

.asset-360-big-number {
    padding: 12px 0;
}

.asset-360-big-number > span {
    color: #bcd5ca;
    font-size: 14px;
}

.asset-360-big-number > strong {
    display: block;
    margin: 12px 0;
    color: #80eeaa;
    font-size: clamp(34px, 5vw, 54px);
}

.asset-360-big-number strong small {
    color: #ffffff;
    font-size: 17px;
}

.asset-360-big-number p {
    margin: 0;
    color: #bcd5ca;
    line-height: 1.55;
}

.asset-lifecycle {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px 0 5px;
}

.asset-life-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 155px;
    color: #9aa7b5;
    text-align: center;
}

.asset-life-stage > span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 47px;
    height: 47px;
    margin-bottom: 10px;
    color: #8290a0;
    background: #edf0f3;
    border-radius: 50%;
}

.asset-life-stage strong {
    color: #5d6d7f;
}

.asset-life-stage small {
    margin-top: 4px;
}

.asset-life-stage.complete > span {
    color: #ffffff;
    background: #07833e;
}

.asset-life-stage.complete strong {
    color: #07833e;
}

.asset-life-line {
    width: 100px;
    height: 3px;
    margin-top: 22px;
    background: #dfe5e9;
}

.asset-360-notes {
    color: #41566d;
    line-height: 1.7;
    white-space: pre-wrap;
}

@media (max-width: 1100px) {
    .asset-360-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .asset-360-header {
        flex-direction: column;
    }

    .asset-360-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .asset-360-grid,
    .asset-360-kpi-grid {
        grid-template-columns: 1fr;
    }

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

    .asset-life-stage {
        width: 100%;
        align-items: flex-start;
        text-align: left;
    }

    .asset-life-line {
        width: 3px;
        height: 35px;
        margin: 4px 0 4px 22px;
    }
}

/* =========================================================
   ASSET INTELLIGENCE PAGE
   ========================================================= */

.asset-page {
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 32px 48px;
}

.fleet-subnav {
    display: flex;
    gap: 10px;
    padding: 16px 0;
    margin-bottom: 26px;
}

.fleet-subnav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid #d9e1dd;
    border-radius: 999px;
    background: #f7f9f8;
    color: #102c25;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.fleet-subnav-link:hover {
    border-color: #149447;
    color: #087634;
    transform: translateY(-1px);
}

.fleet-subnav-link.active {
    background: #078839;
    border-color: #078839;
    color: white;
}

.asset-hero {
    display: grid;
    grid-template-columns: 190px 1fr auto;
    align-items: center;
    min-height: 190px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid #d9e3de;
    border-radius: 20px;
    background:
        linear-gradient(
            110deg,
            #e6f1e9 0%,
            #0c4b32 34%,
            #102822 100%
        );
    box-shadow: 0 12px 28px rgba(12, 45, 34, 0.12);
}

.asset-hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    background:
        radial-gradient(
            circle,
            rgba(255, 255, 255, 0.95),
            rgba(223, 239, 227, 0.85)
        );
}

.tractor-visual {
    font-size: 104px;
    filter: drop-shadow(0 14px 12px rgba(0, 0, 0, 0.25));
}

.asset-hero-main {
    padding: 28px 34px;
    color: white;
}

.asset-code-line {
    margin-bottom: 8px;
    color: #bbf5cf;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.asset-hero-main h1 {
    margin: 0;
    color: white;
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 700;
    line-height: 1.05;
}

.asset-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
}

.asset-hero-meta span {
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #edf8f1;
    font-size: 13px;
}

.asset-hero-status {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 150px;
    margin-right: 28px;
    overflow: hidden;
    border-radius: 11px;
    background: white;
    text-align: center;
}

.asset-status-badge {
    padding: 11px 14px;
    background: #a9d4aa;
    color: #10271e;
    font-weight: 800;
}

.asset-purchase-date {
    padding: 10px 14px;
    color: #1d2d27;
    font-weight: 700;
}

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

.asset-kpi-card {
    display: flex;
    flex-direction: column;
    min-height: 128px;
    padding: 23px;
    border: 1px solid #dde6e1;
    border-radius: 16px;
    background: white;
    box-shadow: 0 8px 22px rgba(13, 43, 33, 0.06);
}

.asset-kpi-label {
    color: #596e66;
    font-size: 14px;
    font-weight: 700;
}

.asset-kpi-value {
    margin-top: 9px;
    color: #092d20;
    font-size: 27px;
    line-height: 1.1;
}

.asset-kpi-caption {
    margin-top: auto;
    padding-top: 12px;
    color: #15823d;
    font-size: 13px;
}

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

.asset-panel {
    padding: 26px;
    border: 1px solid #dce5e0;
    border-radius: 18px;
    background: white;
    box-shadow: 0 8px 24px rgba(14, 43, 34, 0.055);
}

.asset-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
    padding-bottom: 17px;
    border-bottom: 1px solid #e5ece8;
}

.asset-panel-header h2 {
    margin: 0 0 5px;
    color: #0a3022;
    font-size: 21px;
}

.asset-panel-header p {
    margin: 0;
    color: #70837c;
    font-size: 13px;
}

.readiness-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px 30px;
}

.readiness-detail,
.asset-detail-row,
.financial-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 13px 0;
    border-bottom: 1px solid #edf1ef;
}

.readiness-detail span,
.asset-detail-row span,
.financial-line span {
    color: #6c7f78;
}

.readiness-detail strong,
.asset-detail-row strong,
.financial-line strong {
    color: #092e20;
    text-align: right;
}

.readiness-track {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 32px;
}

.readiness-track::before {
    position: absolute;
    top: 15px;
    right: 12%;
    left: 12%;
    height: 3px;
    background: #dce3df;
    content: "";
}

.readiness-step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #89958f;
    font-size: 12px;
    text-align: center;
}

.readiness-dot {
    display: flex;
    width: 31px;
    height: 31px;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
    border-radius: 50%;
    background: #d1d8d4;
    box-shadow: 0 0 0 1px #d4dcd8;
    color: white;
    font-weight: 900;
}

.readiness-step.complete {
    color: #13813a;
    font-weight: 700;
}

.readiness-step.complete .readiness-dot {
    background: #2da74d;
    box-shadow: 0 0 0 1px #2da74d;
}

.financial-summary-layout {
    display: grid;
    grid-template-columns: 1fr 180px;
    align-items: center;
    gap: 25px;
}

.life-gauge {
    display: flex;
    justify-content: center;
}

.life-gauge-ring {
    display: flex;
    width: 155px;
    height: 155px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.life-gauge-centre {
    display: flex;
    width: 112px;
    height: 112px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
    box-shadow: inset 0 0 0 1px #edf1ef;
}

.life-gauge-centre strong {
    color: #0b2e21;
    font-size: 32px;
}

.life-gauge-centre span {
    color: #70827b;
    font-size: 11px;
}

.acquisition-register {
    margin-bottom: 30px;
}

.acquisition-register-header {
    align-items: center;
}

.acquisition-total {
    padding: 12px 17px;
    border-radius: 12px;
    background: #edf8f1;
    text-align: right;
}

.acquisition-total span {
    display: block;
    color: #5f776c;
    font-size: 12px;
}

.acquisition-total strong {
    color: #087734;
    font-size: 20px;
}

.acquisition-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 27px;
    padding: 20px;
    border: 1px solid #e1e9e5;
    border-radius: 15px;
    background: #f8faf9;
}

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

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

.form-field label {
    color: #28443a;
    font-size: 13px;
    font-weight: 800;
}

.form-field input,
.form-field select {
    width: 100%;
    min-height: 45px;
    padding: 10px 12px;
    border: 1px solid #cedad4;
    border-radius: 9px;
    background: white;
    color: #122b23;
    font: inherit;
    outline: none;
}

.form-field input:focus,
.form-field select:focus {
    border-color: #159347;
    box-shadow: 0 0 0 3px rgba(21, 147, 71, 0.12);
}

.acquisition-form-action {
    display: flex;
    align-items: flex-end;
}

.asset-primary-button {
    width: 100%;
    min-height: 46px;
    padding: 11px 18px;
    border: 0;
    border-radius: 10px;
    background: #087f38;
    box-shadow: 0 8px 17px rgba(8, 127, 56, 0.2);
    color: white;
    font-weight: 800;
    cursor: pointer;
}

.asset-primary-button:hover {
    background: #066b30;
}

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

.asset-cost-table {
    width: 100%;
    border-collapse: collapse;
}

.asset-cost-table th {
    padding: 13px 12px;
    border-bottom: 2px solid #dce5e0;
    color: #60756c;
    font-size: 12px;
    text-align: left;
    text-transform: uppercase;
}

.asset-cost-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #ebf0ed;
    color: #253e35;
    vertical-align: middle;
}

.cost-category-badge {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    background: #edf8f1;
    color: #0c7e38;
    font-size: 12px;
    font-weight: 800;
}

.asset-delete-button {
    border: 0;
    background: transparent;
    cursor: pointer;
    opacity: 0.65;
}

.asset-delete-button:hover {
    opacity: 1;
}

.empty-cost-register {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    min-height: 130px;
    border: 1px dashed #ccd9d2;
    border-radius: 14px;
    background: #fbfcfb;
    color: #667970;
}

.empty-cost-register > span {
    font-size: 31px;
}

.empty-cost-register strong {
    display: block;
    color: #244136;
}

.empty-cost-register p {
    margin: 4px 0 0;
    font-size: 13px;
}

/* Responsive asset page */

@media (max-width: 1050px) {
    .asset-hero {
        grid-template-columns: 150px 1fr;
    }

    .asset-hero-status {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        margin: 0;
        border-radius: 0;
    }

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

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

@media (max-width: 760px) {
    .asset-page {
        padding: 0 15px 30px;
    }

    .fleet-subnav {
        overflow-x: auto;
    }

    .asset-hero {
        grid-template-columns: 1fr;
    }

    .asset-hero-image {
        min-height: 150px;
    }

    .tractor-visual {
        font-size: 90px;
    }

    .asset-hero-main {
        padding: 24px;
    }

    .asset-hero-status {
        grid-column: auto;
    }

    .asset-kpi-grid,
    .asset-dashboard-grid,
    .acquisition-form {
        grid-template-columns: 1fr;
    }

    .form-field-wide {
        grid-column: auto;
    }

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

    .readiness-details {
        grid-template-columns: 1fr;
    }

    .readiness-track {
        gap: 4px;
    }

    .asset-panel {
        padding: 19px;
    }

    .acquisition-register-header {
        flex-direction: column;
        align-items: stretch;
    }

    .acquisition-total {
        text-align: left;
    }
}

.asset-danger-zone {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 28px;
    padding: 22px 25px;
    border: 1px solid #efc1c1;
    border-radius: 15px;
    background: #fff8f8;
}

.asset-danger-zone h2 {
    margin: 0 0 5px;
    color: #9f2020;
    font-size: 18px;
}

.asset-danger-zone p {
    margin: 0;
    color: #795757;
}

.form-error {
    margin-bottom: 20px;
    padding: 14px 17px;
    border: 1px solid #efb3b3;
    border-radius: 10px;
    background: #fff1f1;
    color: #a71f1f;
    font-weight: 700;
}

@media (max-width: 760px) {
    .asset-danger-zone {
        flex-direction: column;
        align-items: stretch;
    }
}

/* =========================================================
   ASSET PAGE VISUAL REFINEMENT
   ========================================================= */

.asset-page {
    max-width: 1320px;
    margin: 0 auto;
    padding: 36px 28px 64px;
}

.asset-hero {
    display: grid;
    grid-template-columns: 158px minmax(0, 1fr) auto;
    align-items: stretch;
    min-height: 158px;
    overflow: hidden;
    margin-bottom: 18px;
    border: 1px solid rgba(6, 65, 43, 0.08);
    border-radius: 18px;
    background:
        linear-gradient(
            110deg,
            #edf8f1 0,
            #dcefe3 12%,
            #1a704d 27%,
            #0a402d 63%,
            #082f24 100%
        );
    box-shadow:
        0 20px 45px rgba(13, 55, 40, 0.10),
        0 4px 12px rgba(13, 55, 40, 0.06);
}

.asset-hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 158px;
    border-right: 1px solid rgba(255, 255, 255, 0.28);
    background:
        radial-gradient(
            circle at 50% 45%,
            rgba(255, 255, 255, 0.95),
            rgba(222, 241, 228, 0.88)
        );
}

.tractor-visual {
    font-size: 82px;
    filter: drop-shadow(0 13px 12px rgba(0, 0, 0, 0.18));
}

.tractor-image {
    width: 100%;
    max-width: 138px;
    max-height: 125px;
    object-fit: contain;
    filter: drop-shadow(0 13px 10px rgba(0, 0, 0, 0.2));
}

.asset-hero-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 27px 30px;
    color: white;
}

.asset-code-line,
.asset-code {
    margin-bottom: 9px;
    color: #c1f2d1;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.asset-hero-main h1,
.asset-hero-content h1 {
    margin: 0;
    color: white;
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 760;
    letter-spacing: -0.025em;
    line-height: 1.05;
}

.asset-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 17px;
}

.asset-hero-meta span {
    display: inline-flex;
    min-height: 29px;
    align-items: center;
    padding: 5px 11px;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.11);
    color: #f2faf5;
    font-size: 12px;
    font-weight: 650;
    backdrop-filter: blur(6px);
}

.asset-hero-actions {
    display: flex;
    min-width: 170px;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 10px;
    padding: 24px 24px 24px 8px;
}

.asset-status-card {
    overflow: hidden;
    border-radius: 11px;
    background: white;
    box-shadow: 0 9px 22px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.asset-status-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 15px;
    background: #b7ddb9;
    color: #123425;
    font-size: 13px;
    font-weight: 850;
}

.asset-status-date {
    display: block;
    padding: 10px 14px;
    color: #142b22;
    font-size: 13px;
    font-weight: 800;
}

.asset-hero-edit-button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    backdrop-filter: blur(8px);
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease;
}

.asset-hero-edit-button:hover {
    border-color: white;
    background: white;
    color: #0a5b37;
    transform: translateY(-1px);
}

.asset-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.asset-kpi-card {
    position: relative;
    display: flex;
    min-height: 138px;
    flex-direction: column;
    padding: 22px 22px 20px;
    overflow: hidden;
    border: 1px solid #dce7e1;
    border-radius: 15px;
    background: white;
    box-shadow:
        0 10px 26px rgba(17, 49, 38, 0.055),
        0 2px 5px rgba(17, 49, 38, 0.025);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.asset-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 16px 32px rgba(17, 49, 38, 0.08),
        0 3px 7px rgba(17, 49, 38, 0.04);
}

.asset-kpi-icon {
    position: absolute;
    top: 18px;
    right: 18px;
    display: flex;
    width: 37px;
    height: 37px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #edf8f1;
    color: #118344;
    font-size: 15px;
}

.asset-kpi-label {
    max-width: calc(100% - 48px);
    color: #5d736a;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.015em;
}

.asset-kpi-value {
    margin-top: 10px;
    color: #092f21;
    font-size: clamp(22px, 2.2vw, 27px);
    font-weight: 800;
    line-height: 1.08;
}

.asset-kpi-caption {
    margin-top: auto;
    padding-top: 14px;
    color: #71847c;
    font-size: 12px;
    line-height: 1.35;
}

.asset-dashboard-grid {
    gap: 18px;
    margin-bottom: 18px;
}

.asset-panel {
    padding: 24px;
    border: 1px solid #dce7e1;
    border-radius: 16px;
    background: white;
    box-shadow:
        0 10px 28px rgba(16, 49, 37, 0.045),
        0 2px 5px rgba(16, 49, 37, 0.02);
}

.asset-panel-header {
    margin-bottom: 17px;
    padding-bottom: 15px;
}

.asset-panel-header h2 {
    color: #0a3223;
    font-size: 20px;
    font-weight: 720;
    letter-spacing: -0.015em;
}

.asset-panel-header p {
    color: #74867f;
    line-height: 1.4;
}

.readiness-detail,
.asset-detail-row,
.financial-line {
    min-height: 43px;
    padding: 11px 0;
}

.readiness-detail span,
.asset-detail-row span,
.financial-line span {
    color: #71837c;
    font-size: 13px;
}

.readiness-detail strong,
.asset-detail-row strong,
.financial-line strong {
    color: #092f21;
    font-size: 13px;
    font-weight: 800;
}

.life-gauge-ring {
    width: 136px;
    height: 136px;
}

.life-gauge-centre {
    width: 96px;
    height: 96px;
}

.life-gauge-centre strong {
    font-size: 27px;
}

.module-nav {
    border-bottom: 1px solid #e0e8e4;
    box-shadow: 0 3px 9px rgba(20, 52, 41, 0.025);
}

@media (max-width: 1000px) {
    .asset-hero {
        grid-template-columns: 140px minmax(0, 1fr);
    }

    .asset-hero-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        padding: 12px 18px;
        background: rgba(5, 43, 31, 0.28);
    }

    .asset-status-card {
        display: flex;
    }

    .asset-status-label,
    .asset-status-date {
        display: flex;
        align-items: center;
    }

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

@media (max-width: 680px) {
    .asset-page {
        padding: 22px 14px 44px;
    }

    .asset-hero {
        grid-template-columns: 1fr;
    }

    .asset-hero-image {
        min-height: 125px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .asset-hero-main {
        padding: 23px 20px;
    }

    .asset-hero-actions {
        grid-column: auto;
        flex-direction: column;
        align-items: stretch;
        padding: 16px 20px 20px;
    }

    .asset-status-card {
        display: block;
    }

    .asset-kpi-grid,
    .asset-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .asset-kpi-card {
        min-height: 128px;
    }

    .asset-panel {
        padding: 20px;
    }
}

/* ==========================================================
   JOB CONTROL CENTRE
   ========================================================== */

.job-control-page {
    padding: 28px;
    background:
        linear-gradient(
            180deg,
            #f6f9f8 0%,
            #eef4f2 100%
        );
    min-height: calc(100vh - 120px);
    color: #0d2740;
}

.job-control-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.job-control-header h1 {
    margin: 2px 0 6px;
    font-size: 30px;
    line-height: 1.1;
}

.job-control-header p {
    margin: 0;
    color: #617286;
}

.job-control-eyebrow {
    color: #07853e !important;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.job-control-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.job-primary-button,
.job-outline-button,
.job-icon-button {
    border-radius: 10px;
    min-height: 42px;
    font-weight: 750;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.job-primary-button {
    background: #07853e;
    color: #ffffff;
    border: 1px solid #07853e;
    padding: 0 18px;
}

.job-primary-button:hover {
    background: #066f35;
}

.job-outline-button {
    background: #ffffff;
    color: #0c7040;
    border: 1px solid #9bcab0;
    padding: 0 16px;
}

.job-icon-button {
    width: 42px;
    background: #ffffff;
    border: 1px solid #dce4e0;
    color: #20364d;
}

.job-kpi-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.job-kpi-card {
    background: #ffffff;
    border: 1px solid #dfe7e3;
    box-shadow: 0 8px 22px rgba(15, 52, 39, 0.06);
    border-radius: 12px;
    padding: 17px;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.job-kpi-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    font-size: 17px;
}

.job-kpi-icon.red {
    color: #e84d67;
    background: #fff0f3;
}

.job-kpi-icon.green {
    color: #159b54;
    background: #ebf8f0;
}

.job-kpi-icon.blue {
    color: #3388e8;
    background: #edf5ff;
}

.job-kpi-icon.orange {
    color: #ed8f19;
    background: #fff6e8;
}

.job-kpi-icon.purple {
    color: #7552b8;
    background: #f4efff;
}

.job-kpi-card span,
.job-kpi-card small {
    display: block;
}

.job-kpi-card span {
    color: #617286;
    font-size: 12px;
}

.job-kpi-card strong {
    display: block;
    margin: 3px 0;
    font-size: 21px;
    line-height: 1.15;
    color: #0b2137;
}

.job-kpi-card small {
    color: #6e7f91;
    font-size: 11px;
}

.job-control-grid {
    display: grid;
    grid-template-columns:
        minmax(260px, 0.78fr)
        minmax(500px, 2fr)
        minmax(300px, 0.95fr);
    gap: 14px;
    align-items: stretch;
}

.job-queue-panel,
.job-scheduler-panel,
.job-detail-panel,
.job-insight-panel {
    background: #ffffff;
    border: 1px solid #dfe7e3;
    box-shadow: 0 8px 22px rgba(15, 52, 39, 0.06);
    border-radius: 12px;
    min-width: 0;
}

.job-queue-panel,
.job-detail-panel {
    min-height: 665px;
}

.job-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 12px;
}

.job-panel-heading h2 {
    margin: 0;
    font-size: 16px;
}

.job-panel-heading p {
    margin: 3px 0 0;
    color: #708092;
    font-size: 11px;
}

.job-count-badge {
    background: #eaf5ef;
    color: #087a3a;
    font-weight: 800;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 12px;
}

.job-queue-tabs {
    display: flex;
    padding: 0 14px 10px;
    gap: 4px;
    overflow-x: auto;
}

.job-queue-tabs button {
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    color: #6d7c8b;
    padding: 8px 7px;
    white-space: nowrap;
    font-size: 11px;
}

.job-queue-tabs button.active {
    color: #087a3a;
    border-bottom-color: #087a3a;
    font-weight: 800;
}

.job-search-row {
    display: flex;
    gap: 8px;
    padding: 0 14px 12px;
}

.job-search-box {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #dce4e0;
    border-radius: 9px;
    padding: 0 11px;
    min-height: 38px;
}

.job-search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
}

.job-filter-button {
    width: 39px;
    border-radius: 9px;
    border: 1px solid #dce4e0;
    background: #ffffff;
}

.job-queue-list {
    max-height: 550px;
    overflow-y: auto;
    padding: 0 12px 14px;
}

.job-queue-card {
    display: block;
    color: inherit;
    text-decoration: none;
    border-left: 4px solid #97a7b5;
    border-radius: 7px;
    padding: 12px;
    margin-bottom: 8px;
    background: #fbfcfc;
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease;
}

.job-queue-card:hover,
.job-queue-card.selected {
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(19, 53, 41, 0.09);
    background: #ffffff;
}

.job-queue-card.in-progress {
    border-left-color: #3388e8;
}

.job-queue-card.scheduled {
    border-left-color: #f2a323;
}

.job-queue-card.completed {
    border-left-color: #1aa05a;
}

.job-queue-card.waiting {
    border-left-color: #9961d2;
}

.job-queue-card.cancelled {
    border-left-color: #df5260;
}

.job-queue-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
}

.job-queue-card-top strong {
    font-size: 12px;
}

.job-status-pill {
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 800;
}

.job-status-pill.in-progress {
    background: #e8f2ff;
    color: #2672cf;
}

.job-status-pill.scheduled {
    background: #fff4dd;
    color: #bc7200;
}

.job-status-pill.completed {
    background: #e8f8ef;
    color: #087d3d;
}

.job-status-pill.waiting {
    background: #f3eafe;
    color: #7c46b3;
}

.job-status-pill.cancelled {
    background: #ffeaed;
    color: #bd3848;
}

.job-queue-time {
    margin-top: 8px;
    color: #566b80;
    font-size: 11px;
}

.job-queue-work {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 700;
}

.job-queue-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin-top: 8px;
    color: #718194;
    font-size: 10px;
}

.job-empty-state,
.job-empty-detail {
    padding: 45px 22px;
    text-align: center;
    color: #6f8091;
}

.job-empty-state i,
.job-empty-detail i {
    display: block;
    margin-bottom: 15px;
    font-size: 34px;
    color: #9db0a8;
}

.job-empty-state strong,
.job-empty-detail strong {
    display: block;
    color: #20364d;
    margin-bottom: 6px;
}

.job-scheduler-panel {
    overflow: hidden;
}

.job-scheduler-toolbar {
    min-height: 62px;
    border-bottom: 1px solid #e2e8e5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    gap: 12px;
}

.job-view-toggle {
    display: flex;
    gap: 6px;
}

.job-view-toggle button {
    border: 1px solid #dce4e0;
    background: #ffffff;
    border-radius: 8px;
    min-height: 34px;
    padding: 0 10px;
    color: #526578;
    font-size: 11px;
}

.job-view-toggle button.active {
    background: #0b8842;
    border-color: #0b8842;
    color: #ffffff;
}

.job-date-navigation {
    display: flex;
    align-items: center;
    gap: 8px;
}

.job-date-navigation a,
.job-today-button {
    text-decoration: none;
    color: #344a5f;
    min-height: 34px;
    border: 1px solid #dce4e0;
    border-radius: 8px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    font-size: 11px;
}

.job-date-navigation strong {
    white-space: nowrap;
    font-size: 12px;
}

.job-scheduler-canvas {
    position: relative;
}

.job-time-header {
    height: 42px;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    align-items: center;
    padding-left: 72px;
    padding-right: 15px;
    border-bottom: 1px solid #e2e8e5;
    color: #697a8a;
    font-size: 10px;
}

.job-scheduler-map {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    background:
        linear-gradient(
            rgba(246, 250, 247, 0.74),
            rgba(246, 250, 247, 0.74)
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 72px,
            rgba(98, 123, 111, 0.10) 73px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 110px,
            rgba(98, 123, 111, 0.10) 111px
        ),
        radial-gradient(
            circle at 70% 45%,
            #dbe7d8 0,
            #edf4eb 28%,
            #f4f8f3 70%
        );
}

.job-map-watermark {
    position: absolute;
    right: 28px;
    top: 46%;
    color: rgba(42, 79, 61, 0.24);
    font-size: 24px;
    font-weight: 800;
}

.scheduler-job-card {
    position: absolute;
    min-height: 68px;
    border-radius: 10px;
    padding: 11px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 8px 18px rgba(19, 53, 41, 0.10);
    border: 1px solid currentColor;
}

.scheduler-job-card strong,
.scheduler-job-card span,
.scheduler-job-card small {
    display: block;
}

.scheduler-job-card strong {
    font-size: 11px;
}

.scheduler-job-card span {
    font-size: 12px;
    margin-top: 2px;
}

.scheduler-job-card small {
    opacity: 0.75;
    margin-top: 3px;
    font-size: 10px;
}

.scheduler-job-card.in-progress {
    color: #2475d2;
    background: rgba(229, 241, 255, 0.94);
}

.scheduler-job-card.scheduled {
    color: #d98a0b;
    background: rgba(255, 244, 219, 0.96);
}

.scheduler-job-card.completed {
    color: #11834b;
    background: rgba(229, 248, 237, 0.96);
}

.scheduler-job-card.waiting {
    color: #8348bf;
    background: rgba(245, 235, 255, 0.96);
}

.scheduler-job-card.cancelled {
    color: #c84454;
    background: rgba(255, 234, 237, 0.96);
}

.job-map-legend {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    border-top: 1px solid #e2e8e5;
    font-size: 10px;
    color: #596d80;
}

.legend-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 2px;
    margin-right: 5px;
}

.legend-dot.completed {
    background: #21a75e;
}

.legend-dot.in-progress {
    background: #3388e8;
}

.legend-dot.scheduled {
    background: #f1a21d;
}

.legend-dot.waiting {
    background: #9b60d4;
}

.legend-dot.cancelled {
    background: #dc5060;
}

.job-detail-panel {
    overflow: hidden;
}

.job-detail-header {
    padding: 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.job-detail-header h2 {
    margin: 0 0 7px;
    font-size: 17px;
}

.job-detail-header a {
    color: #53677a;
}

.job-detail-tabs {
    display: flex;
    gap: 2px;
    border-bottom: 1px solid #e1e8e4;
    padding: 0 12px;
}

.job-detail-tabs button {
    flex: 1;
    border: 0;
    background: transparent;
    padding: 10px 3px;
    font-size: 10px;
    color: #65778a;
    border-bottom: 2px solid transparent;
}

.job-detail-tabs button.active {
    color: #087a3a;
    border-bottom-color: #087a3a;
    font-weight: 800;
}

.job-detail-list {
    padding: 12px 17px;
}

.job-detail-list > div {
    display: grid;
    grid-template-columns: 105px 1fr;
    gap: 10px;
    padding: 7px 0;
    font-size: 11px;
}

.job-detail-list span {
    color: #6d7e90;
}

.job-detail-list strong {
    text-align: right;
    color: #1d3349;
}

.job-profit-card,
.job-engine-card {
    margin: 0 14px 12px;
    border: 1px solid #dde6e1;
    border-radius: 10px;
    padding: 13px;
}

.job-profit-card-header {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
}

.job-profit-card-header span {
    color: #07853e;
    font-weight: 800;
}

.job-profit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}

.job-profit-grid span,
.job-engine-card span {
    display: block;
    color: #6c7e90;
    font-size: 10px;
}

.job-profit-grid strong {
    display: block;
    margin-top: 3px;
    font-size: 13px;
}

.positive {
    color: #07853e !important;
}

.job-engine-card > div {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.job-engine-card b {
    display: block;
    margin-top: 3px;
    color: #20364d;
}

.job-detail-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    border-top: 1px solid #e2e8e5;
    padding: 13px;
}

.job-detail-actions form,
.job-detail-actions button {
    width: 100%;
}

.job-intelligence-grid {
    display: grid;
    grid-template-columns:
        1.25fr 0.9fr 0.9fr 0.9fr;
    gap: 14px;
    margin-top: 14px;
}

.job-insight-panel {
    min-height: 190px;
}

.job-recommendation-list {
    padding: 0 17px 15px;
}

.job-recommendation {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #edf1ef;
    font-size: 11px;
}

.job-recommendation.success i {
    color: #159b54;
}

.job-recommendation.info i {
    color: #3388e8;
}

.job-recommendation.warning i {
    color: #ed961c;
}

.job-recommendation.danger i {
    color: #df5060;
}

.job-status-donut-layout {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 4px 19px 20px;
}

.job-donut {
    width: 94px;
    height: 94px;
    border-radius: 50%;
    background:
        conic-gradient(
            #20a65d var(--working),
            #f0a41e 0 85%,
            #db5360 0
        );
    display: grid;
    place-items: center;
}

.job-donut > div {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #ffffff;
    display: grid;
    place-content: center;
    text-align: center;
}

.job-donut strong,
.job-donut span {
    display: block;
}

.job-status-key {
    flex: 1;
}

.job-status-key > div {
    display: grid;
    grid-template-columns: 10px 1fr auto;
    gap: 7px;
    padding: 6px 0;
    font-size: 10px;
}

.job-status-key span {
    width: 9px;
    height: 9px;
    border-radius: 2px;
}

.job-status-key span.green {
    background: #20a65d;
}

.job-status-key span.orange {
    background: #f0a41e;
}

.job-status-key span.red {
    background: #db5360;
}

.operator-summary,
.job-finance-summary {
    padding: 0 18px 18px;
}

.operator-summary > div,
.job-finance-summary > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e8eeeb;
}

.operator-summary span,
.job-finance-summary span {
    color: #66798b;
    font-size: 11px;
}

.operator-summary strong,
.job-finance-summary strong {
    font-size: 15px;
}


/* ==========================================================
   RESPONSIVE JOB CONTROL CENTRE
   ========================================================== */

@media (max-width: 1450px) {
    .job-kpi-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }

    .job-control-grid {
        grid-template-columns:
            minmax(250px, 0.75fr)
            minmax(480px, 1.6fr);
    }

    .job-detail-panel {
        grid-column: 1 / -1;
        min-height: auto;
    }

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

@media (max-width: 1050px) {
    .job-control-page {
        padding: 18px;
    }

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

    .job-control-grid {
        grid-template-columns: 1fr;
    }

    .job-queue-panel,
    .job-detail-panel {
        min-height: auto;
    }

    .job-queue-list {
        max-height: 440px;
    }

    .job-scheduler-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 700px) {
    .job-control-page {
        padding: 12px;
    }

    .job-control-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .job-control-header-actions,
    .job-primary-button {
        width: 100%;
    }

    .job-kpi-grid,
    .job-intelligence-grid {
        grid-template-columns: 1fr;
    }

    .job-view-toggle {
        width: 100%;
        overflow-x: auto;
    }

    .job-date-navigation {
        width: 100%;
        justify-content: space-between;
    }

    .job-scheduler-map {
        min-height: 450px;
    }

    .scheduler-job-card {
        width: 70% !important;
        left: 16% !important;
    }

    .job-time-header {
        display: none;
    }

    .job-map-watermark {
        display: none;
    }

    .job-detail-list > div {
        grid-template-columns: 1fr;
    }

    .job-detail-list strong {
        text-align: left;
    }

    .job-detail-actions {
        grid-template-columns: 1fr;
    }
}
.driver-shell,.check-shell{max-width:900px;margin:0 auto;padding:24px 16px 80px}.driver-hero{padding:20px 0}.driver-job,.driver-list,.driver-score,.driver-empty{background:#fff;border:1px solid #dfe7e2;border-radius:18px;padding:20px;margin:16px 0;box-shadow:0 8px 26px rgba(19,52,36,.06)}.job-live{border:2px solid #16854b}.job-top{display:flex;justify-content:space-between;gap:16px}.driver-steps{display:grid;gap:12px;margin-top:18px}.driver-action{display:flex;align-items:center;gap:12px;padding:16px;border-radius:12px;background:#eef8f2;color:#103d27;font-weight:700;text-decoration:none}.driver-action span{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#167c45;color:#fff}.driver-inline,.driver-finish{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:end}.driver-finish .wide{grid-column:1/-1}.driver-list article,.driver-score article{display:flex;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid #e5ece8}.driver-score article strong{font-size:2rem;color:#167c45}.driver-score article div{display:grid}.score-note{font-size:.9rem;color:#566}.check-item{border:1px solid #dce6e0;border-radius:14px;padding:16px;margin:14px 0}.check-item legend{font-weight:700;padding:0 5px}.check-item legend b{display:inline-block;background:#fff0e8;color:#a33;padding:3px 7px;border-radius:8px;font-size:.7rem}.check-options{display:flex;gap:8px;margin:10px 0}.check-options label{flex:1}.check-options input{position:absolute;opacity:0}.check-options span{display:block;text-align:center;padding:13px 8px;border:2px solid #d7dfda;border-radius:10px}.check-options input:checked+span.pass{background:#dff5e7;border-color:#16854b}.check-options input:checked+span.fail{background:#ffe5e2;border-color:#bd332a}.check-options input:checked+span{background:#edf0ef;border-color:#61736a}.check-item>input,.driver-inline input,.driver-finish input,.driver-finish textarea{width:100%;padding:12px;border:1px solid #cbd8d1;border-radius:9px}.photo-box{display:block;border:2px dashed #9bb9a8;border-radius:14px;padding:18px;margin:16px 0}.check-submit{width:100%;min-height:54px}.check-done{padding:18px;background:#e7f7ed;border-radius:12px}@media(max-width:680px){.driver-inline,.driver-finish{grid-template-columns:1fr}.driver-finish .wide{grid-column:auto}.job-top{display:block}.check-options{gap:5px}.check-options span{font-size:.85rem;padding:12px 4px}}
.hero-row h1 {
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    line-height: 1.2;
    margin-bottom: 0;
}

/* Customer workspace */
.customer-page{max-width:1500px;margin:0 auto;padding:6px 0 42px}.customer-page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:26px}.customer-page-head h1{margin:2px 0 7px;color:#10243a;font-size:2.15rem;line-height:1.15}.customer-page-head p{margin:0;color:#637287}.customer-page-head .eyebrow{color:#087f45;font-size:.76rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.customer-primary,.customer-secondary{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:46px;padding:0 20px;border:0;border-radius:11px;font:inherit;font-weight:750;text-decoration:none;cursor:pointer}.customer-primary{background:#087f3f;color:#fff;box-shadow:0 9px 22px rgba(8,127,63,.18)}.customer-primary:hover{background:#066c36}.customer-secondary{background:#edf1f3;color:#263a4e}.customer-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,240px));gap:16px;margin-bottom:20px}.customer-metrics article{display:grid;gap:5px;padding:18px 20px;background:#fff;border:1px solid #e0e7e3;border-radius:14px;box-shadow:0 8px 24px rgba(30,51,42,.05)}.customer-metrics span{color:#6b7886;font-size:.86rem}.customer-metrics strong{color:#10243a;font-size:1.65rem}.customer-panel{overflow:hidden;background:#fff;border:1px solid #dfe7e2;border-radius:16px;box-shadow:0 12px 35px rgba(25,47,38,.07)}.customer-panel-head{display:flex;align-items:center;justify-content:space-between;padding:21px 24px;border-bottom:1px solid #e7ece9}.customer-panel-head h2{margin:0;color:#14283d;font-size:1.18rem}.customer-panel-head span{color:#758290;font-size:.88rem}.customer-table-wrap{overflow-x:auto}.customer-table{width:100%;border-collapse:collapse}.customer-table th{padding:14px 22px;background:#f7f9f8;color:#697887;font-size:.74rem;letter-spacing:.08em;text-align:left;text-transform:uppercase}.customer-table td{padding:17px 22px;border-top:1px solid #edf1ef;color:#34485b;vertical-align:middle}.customer-table tbody tr:hover{background:#f8fbf9}.customer-name{display:flex;align-items:center;gap:12px;color:#152d40;text-decoration:none}.customer-avatar{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#e2f3e9;color:#087f3f;font-weight:800}.customer-open{display:inline-flex;align-items:center;gap:7px;color:#087f3f;font-weight:700;text-decoration:none;white-space:nowrap}.customer-empty{text-align:center;padding:58px 20px}.customer-empty>i{font-size:2rem;color:#8ba99a}.customer-empty h3{margin:13px 0 5px}.customer-empty p{margin:0 0 20px;color:#718090}.customer-back{display:inline-flex;align-items:center;gap:8px;margin-bottom:22px;color:#526678;font-weight:700;text-decoration:none}.customer-form-page{max-width:1000px}.customer-form-card{padding:28px;background:#fff;border:1px solid #dde6e1;border-radius:16px;box-shadow:0 12px 35px rgba(25,47,38,.07)}.customer-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.customer-form-grid label{display:grid;gap:8px;color:#263b4c;font-size:.88rem;font-weight:700}.customer-form-grid input,.customer-form-grid textarea{width:100%;padding:13px 14px;border:1px solid #cfd9d4;border-radius:10px;background:#fff;color:#172b3e;font:inherit}.customer-form-grid input:focus,.customer-form-grid textarea:focus{outline:3px solid rgba(8,127,63,.12);border-color:#087f3f}.customer-form-wide{grid-column:1/-1}.customer-form-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:24px;padding-top:20px;border-top:1px solid #e7ece9}
@media(max-width:760px){.customer-page-head{align-items:flex-start;flex-direction:column}.customer-page-head h1{font-size:1.75rem}.customer-metrics{grid-template-columns:1fr 1fr}.customer-form-grid{grid-template-columns:1fr}.customer-form-wide{grid-column:auto}.customer-table th:nth-child(3),.customer-table td:nth-child(3){display:none}.customer-table th,.customer-table td{padding:14px 12px}.customer-form-card{padding:20px}}
/* Workforce dashboard ---------------------------------------------------- */
.workforce-page{max-width:1560px;margin:0 auto;padding:34px 28px 70px;color:#12231d}.wf-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:28px;margin-bottom:26px}.wf-hero h1{font-size:clamp(2rem,3vw,2.75rem);line-height:1.05;margin:6px 0 10px;letter-spacing:-.035em}.wf-hero>div>p:last-child{margin:0;color:#64736d;font-size:1rem}.wf-rate-badge{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:2px 12px;background:linear-gradient(135deg,#063f31,#075c43);color:#fff;border-radius:16px;padding:15px 20px;min-width:260px;box-shadow:0 12px 30px rgba(4,70,51,.17)}.wf-rate-badge i{grid-row:1/3;font-size:1.4rem;color:#76e4a8}.wf-rate-badge span{font-size:.75rem;color:#c5ead7;text-transform:uppercase;letter-spacing:.08em}.wf-rate-badge strong{font-size:1.05rem}.wf-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}.wf-kpi{display:flex;align-items:center;gap:15px;background:#fff;border:1px solid #e3eae6;border-radius:16px;padding:18px;box-shadow:0 5px 18px rgba(23,51,42,.05)}.wf-kpi-icon{width:46px;height:46px;display:grid;place-items:center;border-radius:13px;background:#e5f6ed;color:#087642;font-size:1.1rem}.wf-kpi-icon.blue{background:#e8f2ff;color:#1769aa}.wf-kpi-icon.amber{background:#fff3dd;color:#b66a00}.wf-kpi-icon.purple{background:#f2ebff;color:#7651b5}.wf-kpi div{display:grid}.wf-kpi small{color:#6f7c77;font-size:.76rem;text-transform:uppercase;letter-spacing:.055em}.wf-kpi strong{font-size:1.75rem;line-height:1.1;margin:3px 0}.wf-kpi div span{font-size:.78rem;color:#85908c}.wf-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:22px;align-items:start}.wf-main{display:grid;gap:20px}.wf-side{display:grid;gap:16px;position:sticky;top:90px}.wf-card{background:#fff;border:1px solid #e1e9e5;border-radius:18px;box-shadow:0 7px 25px rgba(20,50,40,.055);overflow:hidden}.wf-card-head{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:22px 24px;border-bottom:1px solid #edf1ef}.wf-card-head>div{display:flex;align-items:center;gap:13px}.wf-card-head h2{font-size:1.08rem;margin:0 0 3px}.wf-card-head p{margin:0;color:#74817c;font-size:.84rem}.wf-section-icon{width:40px;height:40px;display:grid;place-items:center;border-radius:11px;background:#e7f6ee;color:#087643}.wf-section-icon.blue{background:#e8f2ff;color:#1769aa}.wf-section-icon.amber{background:#fff3dd;color:#b66a00}.wf-section-icon.purple{background:#f2ebff;color:#7651b5}.wf-count{background:#f1f5f3;color:#5e6d67;border-radius:999px;padding:6px 10px;font-size:.75rem;font-weight:700}.wf-count.safe{background:#e7f7ee;color:#087643}.wf-count.danger{background:#fff0ed;color:#b4422e}.wf-table{width:100%;border-collapse:collapse}.wf-table th{background:#f8faf9;color:#69766f;font-size:.72rem;text-transform:uppercase;letter-spacing:.055em;text-align:left;padding:12px 24px;border-bottom:1px solid #e9eeeb}.wf-table td{padding:15px 24px;border-bottom:1px solid #eef2f0;font-size:.86rem;vertical-align:middle}.wf-table tbody tr:last-child td{border-bottom:0}.wf-table tbody tr:hover{background:#fbfcfb}.wf-status{display:inline-flex;align-items:center;gap:7px;font-size:.78rem;font-weight:700;background:#f5f6f5;padding:5px 9px;border-radius:999px}.wf-status i{width:7px;height:7px;border-radius:50%;background:#80908a}.wf-status.success{background:#e9f7ef;color:#087643}.wf-status.success i{background:#19a05f}.wf-status.pending{background:#fff4df;color:#956000}.wf-status.pending i{background:#e69a17}.wf-empty{text-align:center;padding:38px 24px}.wf-empty.compact{padding:28px 24px}.wf-empty>span{width:48px;height:48px;margin:0 auto 10px;display:grid;place-items:center;border-radius:50%;background:#eff4f1;color:#577169}.wf-empty>span.safe{background:#e8f7ef;color:#11834d}.wf-empty h3{margin:0 0 5px;font-size:.96rem}.wf-empty p{margin:0;color:#7b8782;font-size:.83rem}.wf-driver-form{display:grid;gap:15px;padding:22px 24px}.wf-driver-form label,.wf-period-form label,.wf-approval-grid label{display:grid;gap:7px;font-size:.78rem;font-weight:700;color:#34463f}.wf-driver-form input,.wf-period-form input,.wf-approval-grid input,.wf-inline-form input{width:100%;border:1px solid #dce5e0;background:#fbfcfb;border-radius:10px;padding:11px 12px;font:inherit;box-sizing:border-box}.wf-driver-form input:focus,.wf-period-form input:focus,.wf-approval-grid input:focus,.wf-inline-form input:focus{outline:3px solid rgba(18,148,83,.11);border-color:#18945a;background:#fff}.wf-driver-form label small{font-weight:400;color:#7d8984}.wf-rate-panel{display:grid;gap:4px;background:#eff9f3;border:1px solid #d8efe2;border-radius:12px;padding:13px}.wf-rate-panel span{font-size:.74rem;color:#167547}.wf-rate-panel strong{font-size:.94rem}.wf-rate-panel small{color:#6f8179;font-size:.72rem}.wf-submit{width:100%;min-height:44px}.wf-help{display:flex;gap:12px;background:#edf6ff;border:1px solid #dbeafa;border-radius:14px;padding:16px;color:#21455e}.wf-help>i{margin-top:2px;color:#2c79af}.wf-help strong{font-size:.83rem}.wf-help p{margin:4px 0 0;font-size:.76rem;line-height:1.5;color:#5a7485}.wf-period-form{display:flex;align-items:end;gap:12px;padding:18px 24px;background:#fbfcfb;border-bottom:1px solid #edf1ef}.wf-period-form label{min-width:175px}.wf-period-form .btn{min-height:41px}.wf-payslip-links{display:flex;flex-wrap:wrap;gap:6px}.wf-payslip-links a{display:inline-flex;align-items:center;gap:6px;color:#087643;background:#eaf7f0;padding:6px 9px;border-radius:8px;text-decoration:none;font-size:.76rem;font-weight:700}.wf-inline-form{display:flex;gap:8px;min-width:340px}.wf-approval-grid{display:grid;grid-template-columns:90px 90px 100px auto;gap:8px;align-items:end}.muted{color:#76847e;font-size:.78rem}@media(max-width:1100px){.wf-layout{grid-template-columns:1fr}.wf-side{position:static;grid-row:1}.wf-kpis{grid-template-columns:repeat(2,1fr)}}@media(max-width:700px){.workforce-page{padding:24px 14px 50px}.wf-hero{align-items:stretch;flex-direction:column}.wf-rate-badge{min-width:0}.wf-kpis{grid-template-columns:1fr}.wf-card-head{align-items:flex-start;padding:18px}.wf-card-head>div{align-items:flex-start}.wf-table th,.wf-table td{padding:12px 16px}.wf-period-form{align-items:stretch;flex-direction:column}.wf-period-form label{min-width:0}.wf-approval-grid{grid-template-columns:1fr 1fr}.wf-inline-form{min-width:260px}}@media print{.wf-hero,.wf-kpis,.wf-side,nav,header,.wf-period-form,.wf-card:not(:last-child){display:none!important}.workforce-page,.wf-layout{display:block;padding:0}.wf-card{box-shadow:none;border:0}}
