@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Source+Sans+3:wght@400;500;700&display=swap');

:root {
  --ink: #17202a;
  --muted: #667085;
  --line: #d8dee7;
  --panel: #ffffff;
  --bg: #eef3f6;
  --nav: #111c2b;
  --nav-soft: #20324a;
  --primary: #0f766e;
  --primary-dark: #0b5f59;
  --accent: #f59e0b;
  --primary-ink: #ffffff;
  --warn: #b45309;
  --bad: #b42318;
  --good: #027a48;
  --info: #155eef;
  --shadow: 0 14px 34px rgba(25, 38, 52, 0.09);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #f7fafc 0%, var(--bg) 100%);
  font: 14px/1.45 Arial, Helvetica, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-locked {
  display: none !important;
}

.public-site {
  min-height: 100vh;
  color: #10202f;
  background: #f4f7f8;
}

.public-nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid #d8dee7;
  position: sticky;
  top: 0;
  z-index: 5;
}

.public-links {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.public-links a {
  color: #253041;
  text-decoration: none;
  font-weight: 800;
}

.public-links a:hover {
  color: var(--primary);
}

.public-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.public-brand span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #0f766e;
  color: #ffffff;
  font-weight: 900;
}

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

.public-brand small {
  color: var(--muted);
  font-weight: 700;
}

.public-main {
  display: grid;
}

.public-hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 32px;
  align-items: center;
  padding: clamp(28px, 6vw, 78px);
  background:
    linear-gradient(90deg, rgba(10, 31, 45, 0.9), rgba(10, 31, 45, 0.62)),
    url("https://images.unsplash.com/photo-1601584115197-04ecc0da31d7?auto=format&fit=crop&w=1800&q=80");
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.public-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.public-stats div {
  display: grid;
  gap: 4px;
  background: #ffffff;
  padding: 22px clamp(16px, 3vw, 34px);
}

.public-stats strong {
  color: var(--primary);
  font-size: 30px;
}

.public-stats span {
  color: var(--muted);
  font-weight: 800;
}

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

.eyebrow {
  color: #99f6e4;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-copy h1 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  max-width: 900px;
  margin-bottom: 18px;
}

.hero-copy p:not(.eyebrow) {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

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

.secondary-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  color: #ffffff;
  padding: 10px 16px;
  text-decoration: none;
  font-weight: 800;
}

.hero-panel {
  display: grid;
  gap: 12px;
  align-self: end;
}

.hero-panel div {
  background: rgba(255, 255, 255, 0.92);
  color: #142235;
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18);
}

.hero-panel span,
.hero-panel strong {
  display: block;
}

.hero-panel span {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
}

.hero-panel strong {
  margin-top: 4px;
  font-size: 18px;
}

.public-services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: clamp(24px, 5vw, 64px);
  background: #ffffff;
}

.public-services article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  min-height: 190px;
}

.public-services article span {
  color: var(--primary);
  font-weight: 900;
}

.public-services h2 {
  margin: 10px 0;
}

.public-services p {
  color: var(--muted);
}

.public-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  gap: 28px;
  align-items: center;
  padding: clamp(28px, 5vw, 70px);
  background: #10202f;
  color: #ffffff;
}

.public-band h2,
.public-contact h2,
.public-split h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  margin-bottom: 14px;
}

.public-band p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
}

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

.workflow-list span {
  min-height: 62px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.07);
  font-weight: 900;
}

.public-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: clamp(24px, 5vw, 64px);
  background: #f4f7f8;
}

.split-card {
  min-height: 270px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: clamp(22px, 4vw, 38px);
}

.split-card p {
  color: var(--muted);
  font-size: 17px;
}

.accent-card {
  background: #0f766e;
  color: #ffffff;
  border-color: #0f766e;
}

.accent-card p {
  color: rgba(255, 255, 255, 0.86);
}

.public-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(24px, 5vw, 64px);
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.public-contact p:not(.eyebrow) {
  color: var(--muted);
  font-weight: 700;
  margin-top: 6px;
}

.airo-style {
  --site-navy: #0f1f3b;
  --site-orange: #ff8200;
  --site-cream: #f7f3ed;
  background: var(--site-cream);
  font-family: "Source Sans 3", Arial, Helvetica, sans-serif;
}

.airo-style h1,
.airo-style h2,
.airo-style h3,
.airo-style strong,
.airo-style button,
.airo-style a {
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
}

.airo-style .public-nav {
  min-height: 80px;
  background: var(--site-navy);
  border: 0;
  box-shadow: 0 10px 28px rgba(15, 31, 59, 0.24);
  padding: 10px 28px;
}

.airo-style .public-brand strong {
  color: #ffffff;
  font-size: 30px;
  line-height: 0.95;
  letter-spacing: 0;
}

.airo-style .public-brand small {
  color: var(--site-orange);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.6px;
}

.public-logo-box {
  width: 58px;
  height: 58px;
  border-radius: 0;
  background: #ffffff !important;
  color: #7a3b30 !important;
  border: 1px solid #eaded5;
  font-size: 13px;
  font-family: Georgia, serif;
}

.airo-style .public-links a {
  color: rgba(255, 255, 255, 0.78);
}

.airo-style .public-links a.active,
.airo-style .public-links a:hover {
  color: var(--site-orange);
}

.quote-btn {
  min-height: 46px;
  border: 0;
  border-radius: 5px;
  background: var(--site-orange);
  color: #ffffff;
  padding: 12px 20px;
  font-weight: 900;
}

.quote-btn.large {
  min-height: 68px;
  min-width: 200px;
  font-size: 18px;
}

.airo-style .public-hero {
  min-height: calc(100vh - 80px);
  grid-template-columns: 1fr;
  background:
    linear-gradient(90deg, rgba(15, 31, 59, 0.92), rgba(15, 31, 59, 0.34)),
    url("https://images.unsplash.com/photo-1476514525535-07fb3b4ae5f1?auto=format&fit=crop&w=2000&q=80");
  background-position: center;
  padding: 96px 30px 80px;
}

.airo-style .hero-copy {
  max-width: 880px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid rgba(255, 130, 0, 0.75);
  border-radius: 999px;
  background: rgba(255, 130, 0, 0.16);
  color: var(--site-orange);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 30px;
}

.airo-style .hero-copy h1 {
  max-width: 790px;
  color: #ffffff;
  font-size: clamp(48px, 8vw, 92px);
  font-weight: 1000;
  line-height: 0.98;
  margin-bottom: 26px;
}

.airo-style .hero-copy h1 span {
  color: var(--site-orange);
}

.airo-style .hero-copy p:not(.hero-badge) {
  color: rgba(255, 255, 255, 0.88);
  max-width: 720px;
  font-size: 22px;
  line-height: 1.6;
}

.airo-style .secondary-link {
  min-height: 68px;
  min-width: 180px;
  border-radius: 5px;
  justify-content: center;
}

.airo-style .public-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--site-orange);
}

.airo-style .public-stats div {
  background: var(--site-orange);
  color: #ffffff;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
  padding: 28px;
}

.airo-style .public-stats strong {
  color: #ffffff;
  font-size: 48px;
}

.airo-style .public-stats span {
  color: #ffffff;
  font-size: 16px;
}

.services-section,
.trust-section {
  padding: clamp(34px, 6vw, 86px) 26px;
  background: var(--site-cream);
}

.section-kicker {
  color: var(--site-orange);
  font-weight: 1000;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.services-section h2,
.trust-section h2 {
  color: var(--site-navy);
  font-size: clamp(42px, 6vw, 70px);
  line-height: 1;
  margin-bottom: 14px;
}

.section-lead {
  max-width: 820px;
  color: #647084;
  font-size: 20px;
  line-height: 1.55;
  margin-bottom: 42px;
}

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

.image-card {
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  border-radius: 10px;
  overflow: hidden;
  color: #ffffff;
  box-shadow: 0 18px 36px rgba(15, 31, 59, 0.2);
  background-size: cover;
  background-position: center;
}

.image-card div {
  width: 100%;
  padding: 30px;
  background: linear-gradient(0deg, rgba(15, 31, 59, 0.9), rgba(15, 31, 59, 0));
}

.image-card h3 {
  font-size: 30px;
  margin: 0 0 10px;
}

.image-card p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.86);
}

.milk-card {
  background-image: url("https://images.unsplash.com/photo-1528750997573-59b89d56f4f7?auto=format&fit=crop&w=1200&q=80");
}

.fruit-card {
  background-image: url("https://images.unsplash.com/photo-1595475207225-428b62bda831?auto=format&fit=crop&w=1200&q=80");
}

.vegetable-card {
  background-image: url("https://images.unsplash.com/photo-1542838132-92c53300491e?auto=format&fit=crop&w=1200&q=80");
}

.fmcg-card {
  background-image: url("https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&w=1200&q=80");
}

.center-action {
  display: flex;
  justify-content: center;
  padding-top: 40px;
}

.outline-link {
  min-height: 62px;
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--site-navy);
  border-radius: 5px;
  color: var(--site-navy);
  padding: 14px 34px;
  text-decoration: none;
  font-weight: 1000;
  font-size: 18px;
}

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

.trust-grid article span {
  color: rgba(255, 130, 0, 0.12);
  font-size: 88px;
  font-weight: 1000;
}

.trust-grid h3 {
  color: var(--site-navy);
  font-size: 28px;
  margin: 8px 0 10px;
}

.trust-grid p {
  color: #647084;
  font-size: 17px;
}

.fleet-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1fr);
  gap: 60px;
  align-items: center;
  background: var(--site-navy);
  color: #ffffff;
  padding: clamp(44px, 6vw, 86px) 46px;
}

.fleet-image {
  min-height: 400px;
  position: relative;
  border-radius: 10px;
  background:
    linear-gradient(0deg, rgba(15, 31, 59, 0.25), rgba(15, 31, 59, 0.25)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1200&q=80");
  background-size: cover;
  background-position: center;
}

.fleet-image span {
  position: absolute;
  right: -20px;
  bottom: -20px;
  min-width: 150px;
  background: var(--site-orange);
  border-radius: 6px;
  padding: 20px;
  font-size: 34px;
  font-weight: 1000;
}

.fleet-image small {
  font-size: 14px;
}

.fleet-copy h2 {
  font-size: clamp(42px, 6vw, 66px);
  line-height: 0.98;
  margin-bottom: 22px;
}

.fleet-copy p,
.fleet-copy li {
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.65;
}

.fleet-copy ul {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.fleet-copy li::before {
  content: "✓";
  color: var(--site-orange);
  margin-right: 12px;
  font-weight: 1000;
}

.contact-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  background: var(--site-navy);
  color: #ffffff;
  padding: 42px 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-cta h2 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.05;
}

.contact-cta p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
  margin-top: 10px;
}

.contact-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.whatsapp-btn {
  min-height: 68px;
  display: inline-flex;
  align-items: center;
  border-radius: 5px;
  background: #22c55e;
  color: #ffffff;
  padding: 16px 28px;
  text-decoration: none;
  font-weight: 1000;
  font-size: 20px;
}

.public-footer {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1.1fr;
  gap: 50px;
  background: #081525;
  color: #ffffff;
  padding: 64px 48px 28px;
}

.public-footer p,
.public-footer li {
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  line-height: 1.65;
}

.public-footer h3 {
  margin: 0 0 18px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.public-footer ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
}

.public-footer li::marker {
  color: var(--site-orange);
}

.footer-brand {
  margin-bottom: 20px;
}

.available-dot {
  display: inline-block;
  color: var(--site-orange);
  margin-top: 22px;
}

.available-dot::before {
  content: "";
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 50%;
  background: #22c55e;
  margin-right: 10px;
}

.footer-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.5);
  padding-top: 26px;
}

.login-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    linear-gradient(90deg, rgba(10, 31, 45, 0.92), rgba(15, 118, 110, 0.72)),
    url("https://images.unsplash.com/photo-1580674285054-bed31e145f59?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
}

.login-card {
  width: min(100%, 430px);
  display: grid;
  gap: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  padding: 22px;
}

.login-card p {
  color: var(--muted);
}

.remember-login {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.remember-login input {
  width: 20px;
  height: 20px;
}

.login-back {
  justify-self: start;
}

.login-error {
  color: var(--bad);
  min-height: 20px;
  font-weight: 800;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
}

.sidebar {
  background: var(--nav);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  padding: 18px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: #0f766e;
  border-radius: 8px;
  font-weight: 800;
}

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

.brand span,
.side-foot {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.nav {
  display: grid;
  gap: 6px;
}

.nav-item {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
  text-align: left;
  padding: 10px 12px;
}

.nav-item:hover,
.nav-item.active {
  color: #ffffff;
  background: var(--nav-soft);
}

.side-foot {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.main {
  min-width: 0;
  padding: 22px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 16px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 25px;
}

h2 {
  font-size: 16px;
}

.topbar p {
  color: var(--muted);
  margin-top: 4px;
}

.data-note {
  color: #b45309 !important;
  font-size: 12px;
  font-weight: 700;
}

.backup-status {
  color: #0f766e !important;
  font-weight: 800;
}

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

.primary-btn,
.secondary-btn,
.ghost-btn,
.small-btn,
.danger-btn {
  border: 1px solid transparent;
  border-radius: 8px;
  min-height: 38px;
  padding: 9px 12px;
  font-weight: 700;
}

.primary-btn {
  color: var(--primary-ink);
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.18);
}

.secondary-btn {
  color: var(--ink);
  background: #ffffff;
  border-color: var(--line);
  box-shadow: 0 6px 14px rgba(25, 38, 52, 0.06);
}

.ghost-btn {
  color: #ffffff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.24);
}

.small-btn {
  min-height: 30px;
  padding: 6px 9px;
  background: #eef6f5;
  color: var(--primary);
  border-color: #cde9e6;
}

.danger-btn {
  min-height: 30px;
  padding: 6px 9px;
  background: #fff1f0;
  color: var(--bad);
  border-color: #ffd1cc;
}

.screen {
  display: none;
}

.screen.active {
  display: block;
}

.mobile-quick-actions {
  display: none;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.metric {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 16px;
  min-height: 96px;
  display: grid;
  align-content: space-between;
}

.metric span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.metric strong {
  font-size: 25px;
}

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

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

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 16px;
  min-width: 0;
}

.panel.wide {
  grid-column: span 1;
}

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

.panel-head h2 {
  white-space: nowrap;
}

.panel-head select,
.panel-head input {
  width: min(100%, 368px);
}

.table-wrap {
  width: 100%;
  overflow: auto;
}

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

th,
td {
  text-align: left;
  border-bottom: 1px solid #edf0f4;
  padding: 10px 8px;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  background: #fafbfc;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  min-height: 38px;
  padding: 9px 10px;
}

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

.form-grid,
.inline-form,
.stack-form,
.form-panel {
  display: grid;
  gap: 10px;
}

.form-grid {
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  margin-bottom: 14px;
}

.account-filter {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(320px, 2fr);
  gap: 14px;
  align-items: end;
  margin-bottom: 14px;
}

.account-filter h2 {
  margin-bottom: 4px;
}

.form-grid h2 {
  grid-column: 1 / -1;
}

.unloading-builder,
.billing-builder {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  border: 1px solid #edf0f4;
  border-radius: 8px;
  background: #fbfcfd;
  padding: 12px;
}

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

.builder-head h3 {
  margin: 0;
  font-size: 15px;
}

.builder-head p,
.summary-line {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.point-header,
.point-row,
.billing-row-header,
.billing-row {
  display: grid;
  gap: 8px;
  align-items: center;
}

.point-header,
.point-row {
  grid-template-columns: minmax(160px, 1.2fr) minmax(130px, 1fr) minmax(86px, 0.5fr) minmax(86px, 0.5fr) 42px;
}

.billing-row-header,
.billing-row {
  grid-template-columns: minmax(112px, 0.9fr) minmax(112px, 0.9fr) minmax(136px, 1.1fr) minmax(136px, 1.2fr) minmax(68px, 0.55fr) minmax(88px, 0.7fr) minmax(100px, 0.8fr) 42px;
}

.point-header {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

#unloadingPoints,
#billingRows {
  display: grid;
  gap: 8px;
}

.billing-row-header {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.billing-freight {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 10px;
  font-weight: 800;
}

.inline-form {
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  align-items: end;
  margin-bottom: 14px;
}

.stack-form {
  gap: 12px;
}

.mini-list,
.alert-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.mini-item,
.alert-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #edf0f4;
  border-radius: 8px;
  padding: 10px;
}

.mini-item span,
.alert-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.record-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 700;
  background: #eef2f6;
  color: #344054;
  white-space: nowrap;
}

.pill.good {
  color: var(--good);
  background: #ecfdf3;
}

.pill.warn {
  color: var(--warn);
  background: #fffaeb;
}

.pill.bad {
  color: var(--bad);
  background: #fff1f0;
}

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

.driver-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 14px;
}

.driver-hub-layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 16px;
}

.driver-hub-panel {
  display: grid;
  gap: 16px;
}

.driver-hub-head {
  display: grid;
  gap: 12px;
}

.driver-hub-head p {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.5;
}

.driver-app-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  text-decoration: none;
}

.driver-mobile-preview {
  border-radius: 8px;
  padding: 16px;
  color: #ffffff;
  background: linear-gradient(145deg, #0f4fb8, #0f766e);
  box-shadow: var(--shadow);
}

.preview-status {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  font-weight: 900;
}

.preview-status span {
  opacity: 0.78;
}

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

.preview-actions span {
  border-radius: 8px;
  padding: 16px 10px;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 900;
  text-align: center;
}

.driver-hub-tools {
  display: grid;
  gap: 10px;
}

.driver-hub-tools label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.driver-hub-tools button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: #223d91;
  font-weight: 900;
}

.driver-mode .nav-item:not([data-screen="driver"]),
.driver-mode #resetDemo,
.driver-mode .top-actions,
.driver-mode .data-note {
  display: none;
}

.driver-mode .sidebar {
  width: 220px;
}

.driver-mode #driverSelect {
  display: none;
}

.phone-panel {
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
  color: #ffffff;
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow);
  min-height: 620px;
}

.phone-top {
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 14px;
}

.install-driver-btn {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 12px;
  margin-bottom: 14px;
  color: #062c29;
  background: #7dd3c7;
  font-size: 15px;
  font-weight: 900;
}

.phone-panel select {
  margin-bottom: 14px;
}

.driver-card {
  display: grid;
  gap: 12px;
}

.driver-app-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #ffffff;
  color: var(--ink);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.driver-app-head span,
.driver-app-head small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.driver-app-head strong {
  display: block;
  margin: 2px 0;
  font-size: 20px;
  line-height: 1.15;
}

.driver-app-head button,
.driver-quick-row button {
  min-height: 52px;
  border: 0;
  border-radius: 12px;
  padding: 0 14px;
  font-size: 15px;
  font-weight: 900;
}

.driver-app-head button {
  color: #ffffff;
  background: #dc2626;
}

.driver-quick-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.driver-quick-row button {
  color: #062c29;
  background: #7dd3c7;
}

.driver-trip {
  background: #ffffff;
  color: var(--ink);
  border-radius: 8px;
  padding: 14px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.driver-empty {
  background: #ffffff;
  color: var(--ink);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
}

.driver-help p {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.driver-help-box {
  margin-top: 12px;
  border-radius: 12px;
  padding: 12px;
  color: #92400e;
  background: #fffbeb;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
}

.driver-trip-main {
  border-left: 6px solid #7dd3c7;
}

.driver-chip,
.primary-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 8px;
  color: #0f766e;
  background: #ecfdf5;
  font-size: 12px;
  font-weight: 900;
}

.primary-label {
  color: #ffffff;
  background: #223d91;
}

.driver-point-card.done {
  border: 2px solid #10b981;
}

.driver-location {
  color: var(--muted);
  font-weight: 700;
}

.driver-stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin: 10px 0;
}

.driver-stat-row span {
  border-radius: 10px;
  padding: 8px 6px;
  text-align: center;
  background: #f1f5f9;
  font-size: 12px;
  font-weight: 800;
}

.driver-stat-row b {
  display: block;
  color: #0f766e;
  font-size: 18px;
}

.driver-input-label {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 900;
}

.driver-input-row {
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  gap: 8px;
  margin: 8px 0;
}

.driver-input-row button,
.driver-input-row input {
  min-height: 58px;
  border-radius: 12px;
  border: 1px solid var(--line);
  text-align: center;
  font-size: 24px;
  font-weight: 900;
}

.driver-input-row button {
  color: #ffffff;
  background: #223d91;
}

.driver-point-card textarea {
  width: 100%;
  min-height: 74px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  resize: vertical;
  box-sizing: border-box;
}

.driver-add-card input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  margin-top: 8px;
  box-sizing: border-box;
  font-size: 16px;
  font-weight: 800;
}

.driver-big-btn,
.driver-done-btn,
.driver-delete-btn {
  width: 100%;
  min-height: 64px;
  border: 0;
  border-radius: 14px;
  margin-top: 10px;
  color: #ffffff;
  background: #0f766e;
  font-size: 17px;
  font-weight: 900;
}

.driver-done-btn {
  background: #16a34a;
}

.driver-delete-btn {
  color: #991b1b;
  background: #fee2e2;
}

.driver-buttons {
  display: grid;
  gap: 10px;
}

.driver-buttons button {
  min-height: 58px;
  font-size: 16px;
}

dialog {
  width: min(900px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

dialog::backdrop {
  background: rgba(10, 20, 30, 0.46);
}

#invoicePreview {
  padding: 18px;
  background: #e9edf3;
  overflow: auto;
}

#reportPreview {
  padding: 18px;
  background: #e9edf3;
  overflow: auto;
}

.report-sheet {
  width: 210mm;
  min-height: 297mm;
  margin: 0 auto;
  background: #ffffff;
  color: #253041;
  padding: 9mm 10mm;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

.report-sheet h1 {
  color: #223d91;
  text-align: center;
  font-size: 22px;
  line-height: 1.15;
  margin: 0 0 6px;
}

.report-sheet h2 {
  text-align: center;
  color: #0f766e;
  font-size: 16px;
  line-height: 1.22;
  margin: 0 0 12px;
}

.report-sheet h3 {
  color: #223d91;
  font-size: 14px;
  margin: 14px 0 7px;
}

.report-meta {
  margin: -6px 0 12px;
  text-align: right;
  font-size: 12px;
  color: #4b5563;
}

.report-sheet table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #223d91;
}

.report-sheet th,
.report-sheet td {
  border: 0;
  border-right: 1px solid #223d91;
  border-bottom: 1px solid #223d91;
  padding: 6px;
  font-size: 11px;
  line-height: 1.28;
  overflow-wrap: break-word;
  vertical-align: middle;
}

.report-sheet th:last-child,
.report-sheet td:last-child {
  border-right: 0;
}

.report-sheet tbody tr:last-child td {
  border-bottom: 0;
}

.report-sheet th {
  background: #223d91;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.report-sheet .summary-table td:not(:first-child),
.report-sheet .route-summary-table td:not(:first-child),
.report-sheet .detail-table th:nth-child(n+6),
.report-sheet .detail-table td:nth-child(n+6) {
  text-align: center;
}

.report-sheet .detail-table th:nth-child(1),
.report-sheet .detail-table td:nth-child(1) {
  white-space: nowrap;
}

.report-sheet .vehicle-subline {
  color: #374151;
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  margin-top: 2px;
}

.report-info {
  margin-bottom: 12px;
}

.report-info th {
  width: 20%;
}

.compact-table th,
.compact-table td {
  padding: 5px;
  font-size: 10.5px;
}

.report-note {
  color: #4b5563;
  font-size: 11px;
  margin-top: 14px;
}

.report-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.report-kpis.box-report-kpis {
  grid-template-columns: repeat(5, 1fr);
}

.gujrat-crate-report h2 {
  font-size: 14px;
  line-height: 1.25;
}

.gujrat-crate-report .report-kpis,
.report-kpis.gujrat-report-kpis {
  grid-template-columns: repeat(4, 1fr);
}

.gujrat-crate-report .summary-table th,
.gujrat-crate-report .summary-table td,
.gujrat-crate-report .detail-table th,
.gujrat-crate-report .detail-table td {
  padding: 5px;
  font-size: 10.5px;
}

.report-kpis strong {
  border: 1px solid #d8dee7;
  border-radius: 8px;
  padding: 9px 6px;
  text-align: center;
  background: #f8fafc;
  font-size: 12px;
  line-height: 1.15;
}

.invoice-sheet {
  --invoice-blue: #223d91;
  --invoice-soft: #eef1f6;
  width: 210mm;
  min-height: 297mm;
  margin: 0 auto;
  background: #ffffff;
  color: #253041;
  padding: 10mm 12mm;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
  transform-origin: top center;
}

.invoice-sheet h1 {
  color: var(--invoice-blue);
  text-align: center;
  font-size: 21px;
  letter-spacing: 0;
  line-height: 1.15;
  margin: 0 0 6px;
}

.invoice-rule {
  border-top: 2px solid var(--invoice-blue);
  margin-bottom: 8px;
}

.soft-rule {
  border-top: 1px solid #c8ced8;
  margin: 7px 0;
}

.invoice-sheet h2 {
  color: #1f3fb6;
  text-align: center;
  font-size: 15px;
  line-height: 1.2;
  margin: 0;
}

.amul-invoice-sheet {
  --invoice-blue: #007a5a;
  --invoice-soft: #eef8f4;
  border-top: 6px solid #007a5a;
}

.amul-invoice-sheet h1 {
  color: #065f46;
}

.amul-invoice-sheet h2 {
  color: #007a5a;
  font-size: 15px;
  letter-spacing: 0;
}

.amul-invoice-sheet .invoice-rule {
  border-top-color: #00a66f;
}

.amul-invoice-ribbon {
  display: grid;
  grid-template-columns: 1.3fr 1.2fr 0.7fr 1fr;
  gap: 8px;
  margin: 10px 0 8px;
}

.amul-invoice-ribbon div {
  background: #eef8f4;
  border: 1px solid #9fd8c4;
  padding: 7px 8px;
}

.amul-invoice-ribbon span {
  color: #4b5563;
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.amul-invoice-ribbon strong {
  color: #064e3b;
  display: block;
  font-size: 12px;
  line-height: 1.2;
}

.amul-invoice-sheet .invoice-lines th {
  background: #007a5a;
}

.amul-invoice-sheet .totals-table .grand th,
.amul-invoice-sheet .totals-table .grand td {
  background: #e5f6ef;
  color: #064e3b;
}

.amul-invoice-notes {
  background: #f6fbf8;
  border-color: #9fd8c4;
}

.invoice-meta,
.invoice-lines,
.totals-table,
.invoice-bank-sign table {
  width: 100%;
  border-collapse: collapse;
  min-width: 0;
}

.invoice-meta {
  margin-top: 8px;
  table-layout: fixed;
}

.invoice-meta th,
.invoice-meta td {
  border: 1px solid var(--invoice-blue);
  padding: 5.5px 6px;
  font-size: 10.5px;
  line-height: 1.28;
  vertical-align: top;
  text-transform: none;
  word-break: normal;
}

.invoice-meta th {
  width: 20mm;
  background: #f8f9fb;
  color: #253041;
  font-size: 11px;
}

.invoice-meta td:nth-child(2) {
  width: 86mm;
}

.invoice-meta th:nth-child(3) {
  width: 34mm;
}

.bill-to {
  margin-top: 7px;
}

.invoice-lines {
  margin-top: 10px;
  table-layout: fixed;
}

.invoice-lines th,
.invoice-lines td {
  border: 1px solid var(--invoice-blue);
  padding: 4px 5px;
  font-size: 10.5px;
  height: 21px;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.invoice-lines th {
  background: var(--invoice-blue);
  color: #ffffff;
  font-size: 11px;
  text-align: center;
}

.invoice-lines td {
  text-align: center;
}

.invoice-lines .date-col {
  width: 36mm;
}

.invoice-lines .vehicle-col {
  width: 25mm;
}

.invoice-lines .vehicle-type-col {
  width: 22mm;
}

.invoice-lines .route-col {
  width: 38mm;
}

.invoice-lines .trip-col {
  width: 14mm;
}

.invoice-lines .freight-col {
  width: 31mm;
}

.invoice-lines .rate-col {
  width: 30mm;
}

.invoice-lines td:nth-child(5),
.invoice-lines td:nth-child(6) {
  text-align: right;
  white-space: nowrap;
}

.invoice-total-area {
  display: grid;
  grid-template-columns: 1fr 62mm;
  margin-top: 10px;
  border-left: 1px solid var(--invoice-blue);
  border-bottom: 1px solid var(--invoice-blue);
  width: 100%;
  overflow: hidden;
}

.amount-words {
  min-height: 30mm;
  border-top: 1px solid var(--invoice-blue);
  border-right: 1px solid var(--invoice-blue);
  padding: 9px 10px;
}

.amount-words span {
  color: #7f8dbb;
  display: block;
  font-size: 9px;
  font-weight: 700;
  margin-bottom: 8px;
}

.amount-words strong {
  display: block;
  color: var(--invoice-blue);
  border: 1px solid #cfd7ee;
  border-radius: 6px;
  box-shadow: inset 0 0 4px rgba(34, 61, 145, 0.22);
  padding: 9px;
  font-style: italic;
  font-size: 11px;
  line-height: 1.35;
}

.totals-table th,
.totals-table td {
  border-top: 1px solid var(--invoice-blue);
  padding: 5px 6px;
  font-size: 12px;
  line-height: 1.15;
  white-space: nowrap;
}

.totals-table th {
  text-align: left;
  background: #ffffff;
  width: 32mm;
}

.totals-table td {
  text-align: right;
  font-weight: 800;
  width: 30mm;
}

.totals-table .less th,
.totals-table .less td {
  color: #f00046;
}

.totals-table .grand th,
.totals-table .grand td {
  font-size: 14px;
}

.invoice-notes {
  margin-top: 10px;
  border: 1px solid var(--invoice-blue);
}

.invoice-notes h3 {
  margin: 0;
  background: var(--invoice-blue);
  color: #ffffff;
  padding: 5px 6px;
  font-size: 12px;
}

.invoice-notes ol {
  margin: 7px 14px 8px;
  padding-left: 12px;
  font-size: 10px;
  line-height: 1.32;
}

.invoice-bank-sign {
  display: grid;
  grid-template-columns: 58% 42%;
  margin-top: 10px;
  border: 1px solid #8dc2ff;
  width: 100%;
  overflow: hidden;
}

.invoice-bank-sign table th,
.invoice-bank-sign table td {
  border: 1px solid #8dc2ff;
  padding: 6px;
  font-size: 11px;
  line-height: 1.2;
}

.invoice-bank-sign table th {
  width: 42mm;
  text-align: left;
  background: #f9fbfe;
}

.signature-box {
  display: grid;
  align-content: space-between;
  justify-items: center;
  border-left: 1px solid #8dc2ff;
  padding: 8px 12px 10px;
  color: var(--invoice-blue);
  min-height: 34mm;
  text-align: center;
  font-size: 11px;
}

.digital-signature {
  width: 100%;
  color: #253041;
  padding: 2px 4px 0;
  box-sizing: border-box;
}

.image-signature img {
  display: block;
  width: 58mm;
  max-width: 100%;
  height: auto;
  margin: 0 auto 3px;
  object-fit: contain;
}

.digital-signature-meta {
  color: #4b5563;
  font-size: 7.8px;
  font-weight: 700;
  line-height: 1.15;
}

.signature-box b {
  color: #253041;
  font-size: 10px;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px;
  background: #f8fafc;
  border-top: 1px solid var(--line);
}

#toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: var(--ink);
  color: #ffffff;
  padding: 11px 14px;
  border-radius: 8px;
  transform: translateY(80px);
  opacity: 0;
  transition: 0.2s ease;
  pointer-events: none;
  max-width: 320px;
}

#toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1000px) {
  .public-links {
    display: none;
  }

  .public-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .public-services,
  .public-stats,
  .public-band,
  .public-split,
  .service-card-grid,
  .trust-grid,
  .fleet-section,
  .contact-cta,
  .public-footer {
    grid-template-columns: 1fr;
  }

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

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 4;
    padding: 12px;
    gap: 12px;
  }

  .nav {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .nav-item {
    flex: 0 0 auto;
    min-width: 116px;
    text-align: center;
  }

  .side-foot {
    display: none;
  }

  .metric-grid,
  .content-grid,
  .three-grid,
  .driver-hub-layout,
  .driver-layout {
    grid-template-columns: 1fr;
  }

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

  .account-filter {
    grid-template-columns: 1fr;
  }

  .point-header,
  .billing-row-header {
    display: none;
  }

  .point-row,
  .billing-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 13px;
    background: #f4f7fa;
  }

  .public-nav {
    align-items: stretch;
    flex-direction: column;
    padding: 14px;
  }

  .public-nav .primary-btn,
  .hero-actions .primary-btn,
  .secondary-link,
  .quote-btn,
  .whatsapp-btn,
  .outline-link {
    width: 100%;
    justify-content: center;
  }

  .public-hero {
    padding: 28px 16px;
  }

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

  .hero-copy p:not(.eyebrow) {
    font-size: 16px;
  }

  .public-services {
    padding: 16px;
  }

  .airo-style .public-nav {
    padding: 12px;
  }

  .airo-style .public-brand strong {
    font-size: 24px;
  }

  .airo-style .public-hero {
    padding: 44px 18px 54px;
  }

  .airo-style .hero-copy h1 {
    font-size: 48px;
  }

  .airo-style .hero-copy p:not(.hero-badge) {
    font-size: 17px;
  }

  .airo-style .public-stats div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  }

  .services-section,
  .trust-section,
  .fleet-section,
  .contact-cta,
  .public-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .services-section h2,
  .trust-section h2,
  .fleet-copy h2 {
    font-size: 42px;
  }

  .image-card {
    min-height: 310px;
  }

  .contact-actions {
    width: 100%;
  }

  .workflow-list {
    grid-template-columns: 1fr;
  }

  .public-contact {
    align-items: stretch;
    flex-direction: column;
  }

  .public-contact .primary-btn {
    width: 100%;
  }

  .airo-style .public-nav {
    align-items: center;
  }

  .fleet-image span {
    right: 16px;
    bottom: 16px;
  }

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

  .sidebar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 26px rgba(17, 28, 43, 0.18);
  }

  .main {
    padding: 10px;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
    border-radius: 10px;
    padding: 12px;
    gap: 12px;
  }

  h1 {
    font-size: 22px;
  }

  h2 {
    font-size: 15px;
  }

  .topbar p {
    font-size: 13px;
    line-height: 1.35;
  }

  .brand {
    min-height: 38px;
    padding: 0 2px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand strong {
    font-size: 15px;
  }

  .nav {
    gap: 8px;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav-item {
    min-width: auto;
    min-height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
  }

  .nav-item.active {
    background: #0f766e;
    box-shadow: 0 10px 22px rgba(15, 118, 110, 0.32);
  }

  .top-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .top-actions #syncSheetData,
  .top-actions #importData {
    display: none;
  }

  .mobile-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
  }

  .mobile-quick-actions button {
    min-height: 68px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(15, 118, 110, 0.14);
  }

  .mobile-quick-actions button:first-child {
    grid-column: 1 / -1;
    min-height: 76px;
    font-size: 17px;
  }

  .top-actions button {
    width: 100%;
    min-height: 54px;
    padding: 12px 10px;
    font-size: 14px;
    font-weight: 900;
  }

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

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

  .builder-head {
    align-items: stretch;
    flex-direction: column;
  }

  .point-row,
  .billing-row {
    grid-template-columns: 1fr;
    border-top: 1px solid #edf0f4;
    padding-top: 8px;
  }

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

  .panel {
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(25, 38, 52, 0.07);
  }

  .metric {
    min-height: 76px;
    padding: 12px;
    border-radius: 10px;
  }

  .metric span {
    font-size: 10px;
  }

  .metric strong {
    font-size: 20px;
    line-height: 1.1;
  }

  input,
  select,
  textarea {
    min-height: 54px;
    border-radius: 12px;
    font-size: 15px;
  }

  .primary-btn,
  .secondary-btn,
  .ghost-btn,
  .small-btn,
  .danger-btn {
    min-height: 54px;
    border-radius: 12px;
    font-size: 15px;
  }

  .table-wrap {
    border: 1px solid #edf0f4;
    border-radius: 10px;
  }

  table {
    min-width: 560px;
  }

  th,
  td {
    padding: 9px 8px;
  }

  .phone-panel {
    min-height: auto;
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.18);
  }

  .phone-top {
    font-weight: 700;
    letter-spacing: 0;
  }

  .driver-buttons button {
    min-height: 70px;
    font-size: 17px;
    font-weight: 900;
  }

  .driver-trip {
    border-radius: 12px;
    padding: 13px;
  }

  .driver-trip p {
    margin-top: 4px;
  }

  #driver .driver-layout {
    gap: 10px;
  }

  #driver .panel.wide {
    display: none;
  }

  .mini-item,
  .alert-item {
    align-items: stretch;
    flex-direction: column;
  }

  .record-actions {
    justify-content: stretch;
  }

  .record-actions button {
    flex: 1;
  }

  #dashboard .content-grid,
  #billing .content-grid,
  #crates .content-grid {
    gap: 10px;
  }

  #dashboard .panel.wide {
    order: 2;
  }

  #trips .form-grid,
  #billing .form-grid,
  #expenses .form-grid {
    gap: 9px;
  }

  .billing-builder,
  .unloading-builder {
    padding: 10px;
  }

  .builder-head h3 {
    font-size: 14px;
  }

  .builder-head p {
    font-size: 12px;
  }

  dialog {
    width: calc(100vw - 12px);
    max-height: calc(100svh - 12px);
  }

  #invoicePreview {
    padding: 8px;
  }

  #reportPreview {
    padding: 8px;
  }

  .invoice-sheet,
  .report-sheet {
    transform: scale(0.46);
    transform-origin: top left;
    margin-right: calc(-210mm * 0.54);
    margin-bottom: calc(-297mm * 0.54);
  }
}

@media print {
  @page {
    size: A4 portrait;
    margin: 0;
  }

  * {
    print-color-adjust: exact !important;
    -webkit-print-color-adjust: exact !important;
  }

  html,
  body {
    width: 210mm;
    min-height: 297mm;
    margin: 0;
    background: #ffffff;
    overflow: visible;
  }

  body:has(#invoiceDialog[open]) {
    height: 297mm !important;
    min-height: 297mm !important;
    overflow: hidden !important;
  }

  body * {
    visibility: hidden !important;
  }

  dialog[open],
  dialog[open] * {
    visibility: visible !important;
  }

  dialog::backdrop {
    display: none !important;
  }

  body:has(#invoiceDialog[open]) > *:not(#invoiceDialog) {
    display: none !important;
  }

  dialog {
    position: fixed;
    inset: 0;
    width: 210mm !important;
    height: 297mm !important;
    min-height: 0 !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
    background: #ffffff !important;
    transform: none !important;
  }

  #invoiceDialog {
    position: fixed !important;
    inset: 0 !important;
    width: 210mm !important;
    height: 297mm !important;
    overflow: hidden !important;
    display: block !important;
  }

  #reportDialog {
    position: static !important;
    inset: auto !important;
    width: 210mm !important;
    height: auto !important;
    min-height: 0 !important;
    background: transparent !important;
    overflow: visible !important;
  }

  #reportDialog::backdrop {
    display: none !important;
  }

  #invoicePreview {
    width: 210mm !important;
    height: 297mm !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #ffffff !important;
    overflow: hidden !important;
  }

  #reportPreview {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 210mm !important;
    min-height: 297mm !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #ffffff !important;
    overflow: visible !important;
  }

  .invoice-sheet {
    width: 210mm !important;
    height: 297mm !important;
    min-height: 297mm !important;
    margin: 0 !important;
    padding: 10mm 12mm !important;
    box-shadow: none !important;
    transform: none !important;
    transform-origin: top left !important;
    overflow: hidden !important;
    break-after: avoid;
    page-break-after: avoid;
  }

  .report-sheet {
    width: 210mm !important;
    max-width: 210mm !important;
    min-height: auto !important;
    margin: 0 !important;
    padding: 8mm 9mm !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
    transform: none !important;
    transform-origin: top left !important;
    overflow: visible !important;
    break-after: auto;
    page-break-after: auto;
  }

  .report-sheet table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: 1px solid #1e3a8a !important;
    page-break-inside: auto;
    break-inside: auto;
  }

  .report-sheet th,
  .report-sheet td {
    border: 0 !important;
    border-right: 1px solid #1e3a8a !important;
    border-bottom: 1px solid #1e3a8a !important;
    padding: 4.6px 4.8px !important;
    font-size: 9.2px !important;
    line-height: 1.24 !important;
    vertical-align: middle !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
  }

  .report-sheet th:last-child,
  .report-sheet td:last-child {
    border-right: 0 !important;
  }

  .report-sheet tbody tr:last-child td {
    border-bottom: 0 !important;
  }

  .report-sheet th {
    background: #243f99 !important;
    color: #ffffff !important;
    font-size: 8.6px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0 !important;
    overflow-wrap: normal !important;
    word-break: keep-all !important;
  }

  .report-sheet h1 {
    color: #1f3f97 !important;
    font-size: 21px !important;
    line-height: 1.15 !important;
    margin: 2mm 0 5px !important;
    text-align: center !important;
  }

  .report-sheet h2 {
    color: #00796b !important;
    font-size: 14.5px !important;
    line-height: 1.2 !important;
    margin: 0 0 10px !important;
    text-align: center !important;
  }

  .report-sheet h3 {
    color: #1f3f97 !important;
    font-size: 12.5px !important;
    margin: 10px 0 6px !important;
  }

  .report-meta {
    color: #374151 !important;
    font-size: 10.5px !important;
    margin: 0 0 8px !important;
    text-align: right !important;
  }

  .report-kpis {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px !important;
    margin: 0 0 12px !important;
  }

  .report-kpis.box-report-kpis {
    grid-template-columns: repeat(5, 1fr) !important;
  }

  .gujrat-crate-report .report-kpis,
  .report-kpis.gujrat-report-kpis {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 5px !important;
  }

  .report-kpis strong {
    background: #f8fafc !important;
    border: 1px solid #cfd8e3 !important;
    border-radius: 7px !important;
    color: #111827 !important;
    padding: 8px 5px !important;
    font-size: 11px !important;
    line-height: 1.1 !important;
    text-align: center !important;
  }

  .gujrat-crate-report h2 {
    font-size: 13px !important;
    line-height: 1.18 !important;
    margin-bottom: 8px !important;
  }

  .gujrat-crate-report .report-kpis strong {
    padding: 7px 4px !important;
    font-size: 9.7px !important;
  }

  .gujrat-crate-report .summary-table th,
  .gujrat-crate-report .summary-table td,
  .gujrat-crate-report .detail-table th,
  .gujrat-crate-report .detail-table td {
    padding: 4.5px 4px !important;
    font-size: 9.2px !important;
    line-height: 1.2 !important;
  }

  .report-sheet .detail-table th:nth-child(1),
  .report-sheet .detail-table td:nth-child(1) {
    white-space: nowrap;
  }

  .report-sheet .vehicle-subline {
    color: #374151;
    display: inline-block;
    font-size: 8.5px;
    font-weight: 700;
    margin-top: 2px;
  }

  .report-sheet .detail-table th,
  .report-sheet .detail-table td {
    font-size: 8.6px !important;
    padding: 4.2px 4px !important;
  }

  .report-sheet .detail-table th:nth-child(2),
  .report-sheet .detail-table td:nth-child(2) {
    font-size: 8.2px !important;
  }

  .report-sheet .detail-table th:nth-child(5),
  .report-sheet .detail-table td:nth-child(5),
  .report-sheet .detail-table th:nth-child(6),
  .report-sheet .detail-table td:nth-child(6),
  .report-sheet .detail-table th:nth-child(7),
  .report-sheet .detail-table td:nth-child(7),
  .report-sheet .detail-table th:nth-child(8),
  .report-sheet .detail-table td:nth-child(8),
  .report-sheet .detail-table th:nth-child(10),
  .report-sheet .detail-table td:nth-child(10) {
    text-align: center;
  }

  .report-sheet thead {
    display: table-header-group;
  }

  .report-sheet tfoot {
    display: table-footer-group;
  }

  .report-sheet tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .dialog-actions {
    display: none !important;
  }
}
