:root {
    --ink: #142019;
    --muted: #667085;
    --line: #d7e3da;
    --paper: #f6f7f1;
    --panel: #ffffff;
    --navy: #004d2a;
    --blue: #008037;
    --orange: #ffd700;
    --green: #008037;
    --dark-green: #004d2a;
    --charcoal: #333333;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.admin-body {
    background:
        radial-gradient(circle at top left, rgba(255,215,0,.16), transparent 26rem),
        linear-gradient(135deg, #f8faf4 0%, #eef5ef 48%, #f7f7f2 100%);
}

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

.site-header {
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 12px 22px;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    width: 190px;
    min-height: 54px;
}

.navbar-brand img {
    display: block;
    width: 100%;
    height: auto;
}

.nav-link {
    color: var(--ink);
    font-weight: 650;
}

.header-phone {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    margin-left: 18px;
    padding: 0 14px;
    border-radius: 6px;
    background: var(--dark-green);
    color: #fff;
    font-weight: 900;
    white-space: nowrap;
}

.hero {
    min-height: 620px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) 420px;
    align-items: end;
    gap: 30px;
    padding: 80px max(24px, calc((100vw - 1180px) / 2)) 60px;
    background:
        linear-gradient(90deg, rgba(0,32,17,.95), rgba(0,77,42,.74), rgba(0,0,0,.1)),
        url("/images/rice-bg3.jpg") center/cover;
    color: #fff;
}

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

.hero span,
.split-feature span,
.wide-panel span,
.sub-hero span,
.form-intro span,
.image-callout span,
.cargo-showcase span {
    display: block;
    color: var(--orange);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.hero h1,
.sub-hero h1 {
    font-size: clamp(42px, 6vw, 78px);
    line-height: .95;
    margin: 0 0 22px;
    max-width: 920px;
    text-wrap: balance;
}

.hero p,
.sub-hero p {
    color: rgba(255,255,255,.86);
    font-size: 20px;
    line-height: 1.55;
    max-width: 700px;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid rgba(255,255,255,.42);
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    font-weight: 800;
    box-shadow: 0 6px 18px rgba(20,32,25,.06);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}

.button:hover {
    transform: translateY(-1px);
    border-color: rgba(0,128,55,.42);
    box-shadow: 0 10px 24px rgba(20,32,25,.1);
}

.button.primary {
    background: var(--orange);
    border-color: var(--orange);
    color: #102016;
}

.hero-card {
    background: rgba(255,255,255,.94);
    color: var(--ink);
    border-radius: 8px;
    border-top: 5px solid var(--orange);
    padding: 22px;
    box-shadow: 0 24px 70px rgba(0,0,0,.26);
}

.image-callout {
    max-width: 1180px;
    min-height: 390px;
    margin: 34px auto;
    padding: 34px;
    border-radius: 8px;
    color: #fff;
    display: flex;
    align-items: end;
    background:
        linear-gradient(90deg, rgba(0,32,17,.88), rgba(0,77,42,.46), rgba(0,0,0,.08)),
        url("/images/rice-bg1.jpg") center/cover;
}

.image-callout div {
    max-width: 650px;
}

.image-callout h2,
.cargo-showcase h2 {
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.05;
    margin: 0 0 14px;
    text-wrap: balance;
}

.image-callout p,
.cargo-showcase p {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255,255,255,.84);
}

.hero-card strong {
    display: block;
    font-size: 18px;
    margin-bottom: 14px;
}

.hero-card div,
.feature-list article,
.mini-row {
    display: grid;
    gap: 4px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
}

.hero-card span,
.mini-row span {
    color: var(--muted);
}

.hero-card b {
    color: var(--green);
}

.service-grid,
.process-grid,
.metric-grid,
.admin-columns {
    max-width: 1180px;
    margin: 34px auto;
    padding: 0 22px;
    display: grid;
    gap: 18px;
}

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

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

.admin-columns {
    grid-template-columns: 1fr 1fr;
    padding: 0;
}

.service-grid article,
.process-grid article,
.metric-grid article,
.panel,
.form-shell,
.wide-panel,
.split-feature {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0,77,42,.07);
}

.service-grid article,
.process-grid article,
.metric-grid article,
.panel {
    padding: 24px;
}

.service-grid span,
.process-grid b {
    color: var(--green);
    font-weight: 900;
}

h1, h2, h3, p {
    letter-spacing: 0;
}

.service-grid h2,
.process-grid h2 {
    font-size: 24px;
    margin: 12px 0 10px;
}

.service-grid p,
.process-grid p,
.split-feature p,
.wide-panel p {
    color: var(--muted);
    line-height: 1.6;
}

.split-feature,
.wide-panel {
    max-width: 1180px;
    margin: 34px auto;
    padding: 34px;
}

.split-feature {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 42px;
    align-items: start;
}

.split-feature h2,
.wide-panel h2 {
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.05;
    margin: 0 0 16px;
}

.wide-panel {
    background:
        linear-gradient(90deg, rgba(0,32,17,.96), rgba(0,128,55,.82)),
        url("/images/rice-bg2.jpg") center/cover;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.wide-panel h2 {
    margin: 0;
    max-width: 790px;
}

.sub-hero {
    min-height: 430px;
    display: flex;
    align-items: end;
    padding: 70px max(24px, calc((100vw - 1180px) / 2)) 54px;
    background:
        linear-gradient(90deg, rgba(0,32,17,.92), rgba(0,77,42,.48), rgba(0,0,0,.08)),
        url("/images/rice-bg1.jpg") center/cover;
    color: #fff;
}

.cargo-showcase {
    max-width: 1180px;
    margin: 34px auto;
    padding: 0 22px;
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: 28px;
    align-items: stretch;
}

.services-hero {
    background:
        linear-gradient(90deg, rgba(0,32,17,.94), rgba(0,77,42,.58), rgba(0,0,0,.05)),
        url("/images/rice-bg3.jpg") center/cover;
}

.contact-hero {
    background:
        linear-gradient(90deg, rgba(0,32,17,.94), rgba(0,77,42,.52), rgba(0,0,0,.05)),
        url("/images/rice-bg2.jpg") center/cover;
}

.capability-strip {
    max-width: 1180px;
    margin: -36px auto 34px;
    padding: 0 22px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    position: relative;
    z-index: 2;
}

.capability-strip article {
    background: var(--panel);
    border: 1px solid var(--line);
    border-top: 5px solid var(--orange);
    border-radius: 8px;
    padding: 22px;
    box-shadow: 0 16px 44px rgba(16,42,67,.12);
}

.capability-strip strong {
    display: block;
    color: var(--dark-green);
    font-size: 42px;
    line-height: 1;
    margin-bottom: 8px;
}

.capability-strip span {
    color: var(--muted);
    font-weight: 750;
}

.services-feature {
    max-width: 1180px;
    margin: 34px auto;
    padding: 0 22px;
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 28px;
    align-items: stretch;
}

.services-feature div {
    background: var(--dark-green);
    color: #fff;
    border-radius: 8px;
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.services-feature span,
.contact-card span {
    display: block;
    color: var(--orange);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.services-feature h2 {
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.05;
    margin: 0 0 16px;
}

.services-feature p {
    color: rgba(255,255,255,.84);
    font-size: 18px;
    line-height: 1.6;
}

.services-feature img {
    width: 100%;
    min-height: 390px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
}

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

.contact-layout {
    max-width: 1180px;
    margin: 42px auto;
    padding: 0 22px;
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 22px;
}

.contact-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(16,42,67,.06);
}

.primary-contact {
    background:
        linear-gradient(90deg, rgba(0,32,17,.96), rgba(0,128,55,.82)),
        url("/images/rice-bg1.jpg") center/cover;
    color: #fff;
}

.contact-card h2 {
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.05;
    margin: 0 0 16px;
}

.contact-card p {
    color: var(--muted);
    line-height: 1.65;
}

.primary-contact p {
    color: rgba(255,255,255,.86);
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.contact-list {
    display: grid;
    gap: 16px;
    margin: 0;
}

.contact-list div {
    display: grid;
    gap: 4px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.contact-list dt {
    color: var(--muted);
    font-weight: 800;
}

.contact-list dd {
    margin: 0;
    font-weight: 800;
}

.cargo-showcase img {
    width: 100%;
    min-height: 360px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
}

.cargo-showcase div {
    background: var(--dark-green);
    color: #fff;
    border-radius: 8px;
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-shell {
    max-width: 1080px;
    margin: 42px auto;
    padding: 34px;
    display: grid;
    grid-template-columns: .82fr 1.18fr;
    gap: 34px;
    background:
        linear-gradient(90deg, rgba(255,255,255,.96), rgba(255,255,255,.9)),
        url("/images/rice-bg2.jpg") center/cover;
}

.form-intro h1 {
    font-size: 52px;
    line-height: 1;
    margin: 0 0 16px;
}

.booking-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.booking-form label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-weight: 750;
}

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

input,
textarea,
select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 12px 13px;
    font: inherit;
    color: var(--ink);
}

select {
    background: #fff;
}

textarea {
    min-height: 94px;
}

.multi-select {
    min-height: 172px;
}

.tariff-picker {
    min-height: 260px;
}

.field-help {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
    margin: -4px 0 12px;
}

.field-help a {
    color: var(--green);
    font-weight: 800;
}

input[list] {
    background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 34px;
}

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

.admin-nav {
    position: sticky;
    top: 0;
    z-index: 30;
    min-height: 76px;
    padding: 0;
    background:
        linear-gradient(135deg, rgba(0,77,42,.98) 0%, rgba(0,128,55,.98) 56%, rgba(0,77,42,.98) 100%);
    color: #fff;
    border-bottom: 4px solid var(--orange);
    box-shadow: 0 12px 34px rgba(0,77,42,.18);
}

.admin-nav-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 10px 24px;
}

.admin-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 250px;
    margin-right: 18px;
    color: #fff;
    font-weight: 900;
}

.admin-brand:hover {
    color: #fff;
}

.admin-brand img {
    width: 132px;
    height: auto;
    padding: 4px;
    border-radius: 8px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 8px 22px rgba(0,0,0,.16);
}

.admin-brand span {
    font-size: 18px;
    letter-spacing: 0;
}

.admin-menu {
    gap: 4px;
}

.admin-menu .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 0 10px;
    border-radius: 7px;
    color: rgba(255,255,255,.84);
    font-size: 14px;
    font-weight: 800;
}

.admin-menu .nav-link:hover {
    background: rgba(255,255,255,.12);
    color: #fff;
}

.admin-menu .nav-link.active {
    background: var(--orange);
    color: #102016;
    box-shadow: inset 0 -2px 0 rgba(0,0,0,.08);
}

.admin-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    padding-left: 18px;
}

.admin-toggler {
    border-color: rgba(255,255,255,.46);
    background: rgba(255,255,255,.9);
}

.btn-rice-yellow,
.btn-rice-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    border-radius: 7px;
    font-weight: 900;
}

.btn-rice-yellow {
    background: var(--orange);
    border-color: var(--orange);
    color: #102016;
}

.btn-rice-yellow:hover {
    background: #ffe13d;
    border-color: #ffe13d;
    color: #102016;
}

.btn-rice-ghost {
    border-color: rgba(255,255,255,.42);
    color: #fff;
}

.btn-rice-ghost:hover {
    background: rgba(255,255,255,.14);
    border-color: rgba(255,255,255,.72);
    color: #fff;
}

.admin-main {
    width: min(100%, 1440px);
    margin: 0 auto;
    padding: 30px 24px 42px;
}

.admin-quicklinks-footer {
    margin-left: 0;
    padding: 22px 28px;
    display: grid;
    grid-template-columns: minmax(220px, .6fr) minmax(0, 1.4fr);
    gap: 22px;
    align-items: center;
    background:
        linear-gradient(135deg, #004d2a 0%, #008037 76%);
    border-top: 1px solid rgba(255,255,255,.18);
    border-bottom: 0;
    color: #fff;
}

.admin-quicklinks-footer div {
    display: grid;
    gap: 4px;
}

.admin-quicklinks-footer strong {
    color: #fff;
    font-size: 18px;
}

.admin-quicklinks-footer span {
    color: rgba(255,255,255,.78);
    line-height: 1.45;
}

.admin-quicklinks-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.admin-quicklinks-footer a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 6px;
    background: rgba(255,255,255,.1);
    color: #fff;
    font-weight: 800;
}

.admin-top {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 22px;
    padding: 24px;
    border: 1px solid rgba(0,128,55,.15);
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,255,255,.82)),
        radial-gradient(circle at right top, rgba(255,215,0,.28), transparent 18rem);
    box-shadow: 0 12px 30px rgba(0,77,42,.08);
}

.admin-top span,
.section-title span {
    color: var(--muted);
}

.admin-top h1 {
    font-size: 36px;
    margin: 0;
    letter-spacing: 0;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.admin-actions .button {
    min-height: 42px;
}

.admin-notice {
    margin: -4px 0 18px;
    padding: 13px 16px;
    border: 1px solid #b8d7c2;
    border-left: 5px solid var(--green);
    border-radius: 6px;
    background: #f3fbf1;
    color: var(--dark-green);
    font-weight: 800;
}

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

.metric-grid article span,
.metric-card span {
    color: var(--muted);
}

.metric-grid article strong,
.metric-card strong {
    display: block;
    font-size: 34px;
}

.dashboard-metrics {
    align-items: stretch;
}

.metric-card {
    position: relative;
    display: grid;
    gap: 6px;
    min-height: 118px;
    padding: 22px;
    overflow: hidden;
    background:
        linear-gradient(180deg, #fff, #f7fbf7);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(16,42,67,.06);
}

.metric-card::before {
    content: "";
    width: 36px;
    height: 36px;
    border-radius: 999px;
    justify-self: end;
    margin-bottom: -42px;
    opacity: .95;
}

.metric-card.live::before {
    background: linear-gradient(135deg, var(--dark-green), var(--green));
}

.metric-card.transit::before {
    background: linear-gradient(135deg, #0f766e, #38bdf8);
}

.metric-card.unpaid::before {
    background: linear-gradient(135deg, #c2410c, #f59e0b);
}

.metric-card.uninvoiced::before {
    background: linear-gradient(135deg, var(--orange), #fff176);
}

.metric-card small {
    color: var(--muted);
    font-weight: 750;
}

.board {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 12px 30px rgba(0,77,42,.07);
}

.section-title {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: end;
    margin-bottom: 14px;
}

.section-title h2 {
    margin: 0;
}

.job-table {
    display: grid;
    gap: 10px;
}

.job-table article {
    display: grid;
    grid-template-columns: .8fr 1.35fr 1fr .85fr .85fr .85fr .9fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    background: #f9fbfd;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.job-list,
.document-list,
.enquiry-list {
    display: grid;
    gap: 12px;
}

.job-list article,
.document-list article,
.enquiry-list article {
    display: grid;
    grid-template-columns: .78fr 1.45fr .68fr .78fr .9fr .62fr .82fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    background: linear-gradient(180deg, #fff, #f8fbf8);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(20,32,25,.05);
}

.document-list article {
    grid-template-columns: 1.4fr .7fr auto;
}

.enquiry-list article {
    grid-template-columns: .8fr 1.25fr 1.45fr .8fr .9fr auto;
}

.job-list div,
.document-list div,
.enquiry-list div,
.customer-row,
.driver-row,
.alert-row {
    display: grid;
    gap: 4px;
}

.job-list span,
.document-list span,
.enquiry-list span,
.customer-row span,
.driver-row span,
.alert-row span,
.quote-grid span {
    color: var(--muted);
    font-size: 13px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--orange);
    color: #102016;
    font-size: 13px;
}

.status-badge,
.payment-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    color: #102016;
    background: #e5e7eb;
}

.status-badge::before,
.payment-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    margin-right: 7px;
    border-radius: 999px;
    background: currentColor;
}

.status-badge.enquiry {
    background: #fef9c3;
    color: #854d0e;
}

.status-badge.quote-not-sent {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.quote-awaiting-confirmation {
    background: #e0f2fe;
    color: #0369a1;
}

.status-badge.agreed,
.status-badge.job-agreed {
    background: #e8f5e9;
    color: #166534;
}

.status-badge.collected,
.status-badge.job-collected---in-transit {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.in-transit,
.status-badge.job-collected---in-transit {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-badge.delivered,
.status-badge.job-delivered {
    background: #dcfce7;
    color: #15803d;
}

.payment-badge.not-invoiced {
    background: #f3f4f6;
    color: #4b5563;
}

.payment-badge.invoice-sent---unpaid {
    background: #ffedd5;
    color: #c2410c;
}

.payment-badge.paid {
    background: #dcfce7;
    color: #15803d;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: -6px 0 18px;
}

.filter-tabs a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--muted);
    font-weight: 850;
}

.filter-tabs a.active {
    background: var(--dark-green);
    border-color: var(--dark-green);
    color: #fff;
}

.enquiry-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.enquiry-actions .button {
    min-height: 34px;
    padding: 0 10px;
    font-size: 13px;
}

.tariff-list {
    display: grid;
    gap: 7px;
    margin: 12px 0;
}

.tariff-list span {
    color: var(--muted);
}

.tariff-list b {
    color: var(--dark-green);
}

.contact-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.contact-line span {
    color: inherit;
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 6px;
    background: #25d366;
    color: #073a1f;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.job-map-panel {
    display: grid;
    gap: 10px;
    margin: 14px 0 18px;
}

.job-map-panel.compact {
    margin-bottom: 0;
}

.map-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.map-toolbar strong {
    color: var(--dark-green);
    font-size: 16px;
}

.job-map {
    width: 100%;
    min-height: 320px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #e8ede9;
}

.coordinate-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.coordinate-grid b {
    color: var(--dark-green);
}

.toolbar-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    margin-bottom: 18px;
}

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

.detail-grid h2,
.job-form h2,
.customer-form h2 {
    margin-top: 0;
    font-size: 22px;
    color: var(--dark-green);
}

.detail-grid h2::after,
.job-form h2::after,
.customer-form h2::after {
    content: "";
    display: block;
    width: 42px;
    height: 4px;
    margin-top: 8px;
    border-radius: 999px;
    background: var(--orange);
}

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

.job-form > .button {
    justify-self: start;
    grid-column: 1 / -1;
}

.job-edit-form {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
}

.job-edit-form .panel {
    padding: 18px;
}

.route-edit-panel,
.cmr-edit-panel,
.documents-edit-panel,
.edit-save-bar {
    grid-column: 1 / -1;
}

.customer-edit-panel,
.load-edit-panel,
.references-edit-panel {
    grid-column: span 4;
}

.section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
}

.section-heading span {
    color: var(--green);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 0;
}

.section-heading h2::after {
    display: none;
}

.route-edit-grid {
    display: grid;
    grid-template-columns: minmax(320px, .8fr) minmax(420px, 1.2fr);
    gap: 18px;
    align-items: stretch;
}

.route-fields {
    display: grid;
    align-content: start;
}

.form-two-col,
.documents-edit-grid,
.paperwork-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.documents-edit-grid {
    gap: 18px;
    align-items: start;
}

.documents-edit-grid h3 {
    margin: 0 0 12px;
    color: var(--dark-green);
    font-size: 18px;
}

.document-manage-list {
    display: grid;
    gap: 10px;
}

.document-manage-list article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, #fff, #f8fbf8);
}

.document-manage-list article > div {
    display: grid;
    gap: 3px;
}

.document-manage-list span {
    color: var(--muted);
    font-size: 13px;
}

.remove-document {
    display: inline-flex !important;
    align-items: center;
    gap: 7px !important;
    margin: 0 !important;
    color: #9a3412 !important;
    white-space: nowrap;
}

.remove-document input {
    min-height: auto;
}

.document-upload-box {
    padding: 16px;
    border: 1px dashed rgba(0,128,55,.35);
    border-radius: 8px;
    background: #fbfdf8;
}

.upload-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 12px;
}

.job-edit-form .job-map-panel {
    margin: 0;
    min-height: 100%;
    align-content: start;
}

.job-edit-form .job-map {
    min-height: 365px;
}

.job-edit-form textarea {
    min-height: 72px;
}

.job-edit-form .route-fields textarea,
.job-edit-form .paperwork-grid textarea {
    min-height: 88px;
}

.job-edit-form .tariff-picker {
    min-height: 210px;
}

.job-edit-form label {
    margin-bottom: 10px;
}

.edit-save-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    margin-top: 2px;
    border: 1px solid rgba(0,77,42,.18);
    border-radius: 10px 10px 0 0;
    background:
        linear-gradient(135deg, rgba(255,255,255,.96), rgba(239,248,241,.96)),
        var(--panel);
    box-shadow: 0 12px 30px rgba(0,77,42,.08);
}

.edit-save-bar div {
    display: grid;
    gap: 2px;
}

.edit-save-bar strong {
    color: var(--dark-green);
    font-size: 18px;
}

.edit-save-bar span {
    color: var(--muted);
    font-weight: 750;
}

.edit-save-bar .button {
    justify-self: auto;
    grid-column: auto;
}

.job-form label,
.customer-form label {
    display: grid;
    gap: 7px;
    color: #435747;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 14px;
}

.job-form input,
.job-form select,
.job-form textarea,
.customer-form input,
.customer-form select,
.customer-form textarea,
.toolbar-form input,
.status-update-form select,
.driver-assignment-form select {
    min-height: 42px;
    border: 1px solid #c7d8ca;
    border-radius: 7px;
    background-color: #fff;
    color: var(--ink);
    box-shadow: inset 0 1px 2px rgba(0,0,0,.03);
}

.job-form textarea,
.customer-form textarea {
    min-height: 96px;
}

.job-form input:focus,
.job-form select:focus,
.job-form textarea:focus,
.customer-form input:focus,
.customer-form select:focus,
.customer-form textarea:focus,
.toolbar-form input:focus,
.status-update-form select:focus,
.driver-assignment-form select:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 .22rem rgba(0,128,55,.15);
    outline: 0;
}

.customer-row,
.driver-row,
.alert-row {
    padding: 14px 0;
    border-top: 1px solid var(--line);
}

.customer-row:first-of-type,
.driver-row:first-of-type,
.alert-row:first-of-type {
    border-top: 0;
}

.driver-assignment-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
    margin: 10px 0 14px;
}

.driver-assignment-form label,
.status-update-form label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-weight: 750;
}

.status-update-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
    margin: 0 0 14px;
}

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

.quote-grid article {
    display: grid;
    gap: 10px;
    background: linear-gradient(180deg, #fff, #f8fbf8);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(20,32,25,.05);
}

.quote-grid h2 {
    font-size: 22px;
    margin: 0;
}

.quote-grid p {
    color: var(--ink);
    margin: 0;
}

.job-table div {
    display: grid;
    gap: 3px;
}

.job-table span {
    color: var(--muted);
    font-size: 13px;
}

.job-table b {
    color: var(--blue);
}

.site-footer {
    background: #002614;
    color: #fff;
    padding: 28px max(24px, calc((100vw - 1180px) / 2));
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.site-footer div {
    display: grid;
    gap: 8px;
}

.footer-logo {
    width: 190px;
    max-width: 100%;
    background: #fff;
    border-radius: 6px;
    padding: 8px;
}

.site-footer span,
.site-footer a {
    color: rgba(255,255,255,.72);
}

.footer-links,
.admin-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-links {
    justify-content: flex-end;
}

.admin-actions form {
    margin: 0;
}

.login-shell {
    min-height: calc(100vh - 180px);
    padding: 70px 22px;
    display: grid;
    place-items: center;
    background:
        linear-gradient(90deg, rgba(0,32,17,.9), rgba(0,77,42,.62)),
        url("/images/rice-bg1.jpg") center/cover;
}

.login-panel {
    width: min(100%, 460px);
    background: rgba(255,255,255,.96);
    border: 1px solid var(--line);
    border-top: 5px solid var(--orange);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 24px 70px rgba(0,0,0,.26);
}

.login-panel span {
    display: block;
    color: var(--green);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.login-panel h1 {
    font-size: 42px;
    line-height: 1;
    margin: 0 0 12px;
}

.login-panel p {
    color: var(--muted);
    line-height: 1.6;
}

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

.login-form label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-weight: 750;
}

.login-error {
    border: 1px solid #f1b6b6;
    background: #fff3f3;
    color: #9f1d1d;
    border-radius: 6px;
    padding: 10px 12px;
}

.form-success {
    display: grid;
    gap: 4px;
    margin-top: 22px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.38);
    border-radius: 8px;
    background: rgba(255,255,255,.14);
}

.form-success span {
    color: rgba(255,255,255,.86);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    margin: 0;
}

@media (max-width: 900px) {
    .hero,
    .split-feature,
    .form-shell,
    .admin-shell,
    .cargo-showcase,
    .services-feature,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .service-grid,
    .process-grid,
    .metric-grid,
    .admin-columns,
    .capability-strip,
    .service-grid-large {
        grid-template-columns: 1fr;
    }

    .capability-strip {
        margin-top: 22px;
    }

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

    .job-list article,
    .document-list article,
    .enquiry-list article,
    .detail-grid,
    .job-form,
    .job-edit-form,
    .route-edit-grid,
    .form-two-col,
    .documents-edit-grid,
    .upload-grid,
    .paperwork-grid,
    .quote-grid,
    .toolbar-form,
    .status-update-form,
    .driver-assignment-form {
        grid-template-columns: 1fr;
    }

    .customer-edit-panel,
    .load-edit-panel,
    .documents-edit-panel,
    .references-edit-panel {
        grid-column: 1;
    }

    .document-manage-list article {
        grid-template-columns: 1fr;
    }

    .edit-save-bar {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .wide-panel,
    .site-footer,
    .admin-top,
    .section-title,
    .admin-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .header-phone {
        margin: 12px 0 0;
    }

    .admin-quicklinks-footer {
        margin-left: 0;
        grid-template-columns: 1fr;
    }

    .admin-quicklinks-footer nav {
        justify-content: flex-start;
    }

    .admin-nav-inner {
        padding: 10px 14px;
    }

    .admin-brand {
        min-width: 0;
    }

    .admin-brand img {
        width: 108px;
    }

    .admin-brand span {
        font-size: 16px;
    }

    .admin-menu {
        padding: 12px 0 4px;
    }

    .admin-menu .nav-link {
        width: 100%;
        justify-content: flex-start;
    }

    .admin-nav-actions {
        align-items: stretch;
        flex-direction: column;
        margin-left: 0;
        padding: 10px 0 4px;
    }

    .admin-nav-actions .btn {
        justify-content: center;
    }

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

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

    .footer-links {
        justify-content: flex-start;
    }
}

.print-body {
    margin: 0;
    background: #e9eee8;
    color: #071b12;
    font-family: Arial, Helvetica, sans-serif;
}

.print-page {
    width: 210mm;
    min-height: 297mm;
    margin: 18px auto;
    padding: 14mm;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
}

.print-header,
.cmr-title {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--green);
}

.print-header img {
    width: 145px;
    height: auto;
}

.print-header h1,
.cmr-title h1 {
    margin: 0 0 6px;
    font-size: 30px;
}

.print-header p,
.cmr-title p {
    margin: 0 0 4px;
    color: #385243;
}

.print-reference-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 16px 0;
}

.print-reference-grid div {
    padding: 10px;
    border: 1px solid #b9cabd;
    border-radius: 4px;
}

.print-reference-grid span,
.print-two-col span {
    display: block;
    color: #506858;
    font-size: 12px;
}

.print-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 14px 0;
}

.print-two-col article,
.print-block {
    padding: 12px;
    border: 1px solid #b9cabd;
    border-radius: 4px;
}

.print-two-col h2,
.print-block h2 {
    margin: 0 0 8px;
    font-size: 18px;
}

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

.print-table th,
.print-table td {
    padding: 9px;
    border: 1px solid #cbd8cd;
    text-align: left;
    vertical-align: top;
}

.print-table th {
    width: 28%;
    background: #f2f6f1;
}

.signatures article {
    min-height: 125px;
}

.signature-line {
    height: 48px;
    border-bottom: 1px solid #071b12;
}

.print-button {
    position: fixed;
    right: 22px;
    bottom: 22px;
    padding: 12px 18px;
    border: 0;
    border-radius: 6px;
    background: var(--yellow);
    color: var(--ink);
    font-weight: 900;
    box-shadow: 0 8px 20px rgba(0,0,0,.18);
    cursor: pointer;
}

.cmr-title strong {
    min-width: 125px;
    padding: 10px;
    border: 2px solid #071b12;
    text-align: center;
}

.cmr-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    border-top: 1px solid #071b12;
    border-left: 1px solid #071b12;
    margin-top: 12px;
}

.cmr-box {
    min-height: 86px;
    padding: 7px;
    border-right: 1px solid #071b12;
    border-bottom: 1px solid #071b12;
}

.cmr-box span {
    display: block;
    margin-bottom: 5px;
    color: #2c4334;
    font-size: 11px;
    font-weight: 800;
}

.cmr-box p {
    margin: 0 0 4px;
    font-size: 12px;
    line-height: 1.35;
}

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

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

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

.signature-box {
    min-height: 112px;
}

.signature-box div {
    height: 58px;
    border-bottom: 1px solid #071b12;
}

@page {
    size: A4;
    margin: 10mm;
}

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

    .print-page {
        width: auto;
        min-height: auto;
        margin: 0;
        padding: 0;
        box-shadow: none;
    }

    .print-button {
        display: none;
    }
}
