:root {
  --bg: #f6f8f5;
  --panel: #ffffff;
  --panel-soft: #eef5ef;
  --ink: #17241f;
  --muted: #68756e;
  --line: #dfe7df;
  --green: #116c45;
  --green-2: #0d5136;
  --mint: #dff2e6;
  --amber: #c57b18;
  --amber-soft: #fff4dc;
  --red: #bd2e28;
  --red-soft: #fde8e6;
  --saffron: #f0a51d;
  --shadow: 0 18px 42px rgba(27, 56, 42, 0.12);
}

* {
  box-sizing: border-box;
}

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

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

button {
  border: 0;
  cursor: pointer;
}

.app-root {
  min-height: 100vh;
}

.login-screen {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(360px, 0.78fr) 1.22fr;
  background:
    radial-gradient(circle at 82% 18%, rgba(17, 108, 69, 0.1), transparent 30%),
    linear-gradient(135deg, #f9fbf7 0%, #edf4ee 100%);
}

.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px;
  background: #ffffff;
  border-right: 1px solid var(--line);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
}

.brand-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex: 0 0 auto;
}

.seal {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 8px;
  font-weight: 800;
}

.brand-title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.login-panel h1 {
  max-width: 430px;
  margin: 0 0 14px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: 0;
}

.login-panel p {
  max-width: 420px;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.login-form {
  display: grid;
  max-width: 420px;
  gap: 14px;
}

.developer-credit {
  max-width: 420px;
  margin-top: 18px;
  color: #5f6f65;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.reference-help .developer-credit {
  margin-top: 12px;
  padding-top: 12px;
  color: rgba(255, 255, 255, 0.84);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 11px;
}

.pwa-install-button {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 1000;
  min-height: 44px;
  padding: 0 16px;
  color: #fff;
  background: #005b35;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0, 63, 42, 0.24);
  font-size: 13px;
  font-weight: 900;
}

.pwa-install-button:disabled {
  opacity: 0.7;
}

.login-role-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 420px;
  gap: 8px;
  margin: 0 0 18px;
}

.login-role-switch button {
  min-height: 42px;
  padding: 0 12px;
  color: var(--green-2);
  background: #eef8f2;
  border: 1px solid #cfe6d8;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
}

.field {
  display: grid;
  gap: 7px;
}

.field span,
.label {
  color: #44534b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea,
.date-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 12px 13px;
  font-size: 14px;
  outline: none;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus,
.date-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(17, 108, 69, 0.11);
}

.form-error {
  padding: 11px 12px;
  color: #9c211b;
  background: var(--red-soft);
  border: 1px solid #f3c9c6;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.primary-btn {
  color: #fff;
  background: var(--green);
  padding: 0 16px;
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover,
.icon-btn:hover {
  transform: translateY(-1px);
}

.secondary-btn {
  color: var(--green-2);
  background: var(--mint);
  padding: 0 14px;
}

.ghost-btn,
.icon-btn {
  color: #31443a;
  background: #fff;
  border: 1px solid var(--line);
  padding: 0 12px;
}

.icon-btn {
  width: 40px;
  padding: 0;
}

.login-visual {
  display: grid;
  align-content: center;
  padding: 48px;
}

.mock-shell {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 18px;
  max-width: 940px;
  min-height: 560px;
  margin: 0 auto;
}

.preview-map,
.preview-phone,
.preview-table {
  border: 1px solid rgba(17, 108, 69, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
}

.preview-map {
  position: relative;
  overflow: hidden;
  min-height: 310px;
  background:
    linear-gradient(90deg, rgba(17, 108, 69, 0.1) 1px, transparent 1px),
    linear-gradient(rgba(17, 108, 69, 0.1) 1px, transparent 1px),
    #fbfdfb;
  background-size: 38px 38px;
}

.preview-map::before,
.map-canvas::before {
  position: absolute;
  inset: 18% 12% 20% 10%;
  content: "";
  border: 5px solid transparent;
  border-top-color: var(--green);
  border-right-color: var(--saffron);
  border-bottom-color: var(--green);
  border-left-color: #9fb9a8;
  border-radius: 38% 58% 44% 48%;
  transform: rotate(-8deg);
}

.preview-map::after,
.map-canvas::after {
  position: absolute;
  inset: 30% 24% auto auto;
  width: 13px;
  height: 13px;
  content: "";
  background: var(--red);
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: -150px 98px 0 0 var(--green), -70px -42px 0 0 var(--amber);
}

.preview-table {
  margin-top: 18px;
  padding: 18px;
}

.preview-row {
  display: grid;
  grid-template-columns: 1fr 80px;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

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

.line-a,
.line-b {
  height: 10px;
  border-radius: 8px;
  background: #d9e6dc;
}

.line-b {
  width: 70%;
  margin-top: 8px;
  background: #eef3ef;
}

.preview-phone {
  align-self: end;
  padding: 14px;
  min-height: 500px;
  background: #12231b;
}

.phone-screen {
  height: 100%;
  border-radius: 8px;
  background: #fbfdfb;
  padding: 16px;
}

.phone-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.phone-title {
  font-size: 15px;
  font-weight: 800;
}

.phone-card {
  padding: 13px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 18px;
  color: #e8f2ea;
  background: #0f3325;
}

.sidebar .brand-lockup {
  margin-bottom: 26px;
}

.sidebar .seal {
  background: #e8f2ea;
  color: var(--green-2);
}

.sidebar .brand-subtitle {
  color: #a8c6b4;
}

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

.nav button {
  justify-content: flex-start;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  color: #cdded3;
  background: transparent;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.nav button.active,
.nav button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-footer {
  position: absolute;
  right: 18px;
  bottom: 22px;
  left: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #a8c6b4;
  font-size: 12px;
  line-height: 1.6;
}

.main {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  padding: 16px 24px;
  background: rgba(246, 248, 245, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.page-title h1 {
  margin: 0;
  font-size: 23px;
  line-height: 1.2;
}

.page-title span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

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

.officer {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 172px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.avatar {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.officer strong {
  display: block;
  font-size: 12px;
}

.officer span {
  color: var(--muted);
  font-size: 11px;
}

.content {
  display: grid;
  gap: 18px;
  padding: 22px 24px 32px;
}

.date-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.date-controls,
.filter-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.date-pill {
  min-width: 190px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbf9;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.date-input {
  min-width: 190px;
  max-width: 210px;
  height: 40px;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

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

.metric {
  min-height: 128px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(26, 60, 41, 0.06);
}

.metric .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 18px;
  font-size: 34px;
  line-height: 1;
}

.metric small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(26, 60, 41, 0.05);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

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

.panel-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.search {
  min-width: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: #f9fbf9;
  outline: none;
}

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

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

th,
td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

td:first-child {
  white-space: normal;
}

th {
  color: #5e6d65;
  background: #f9fbf9;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

td strong {
  display: block;
  font-size: 13px;
}

td span {
  color: var(--muted);
  font-size: 12px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.status.completed {
  color: var(--green-2);
  background: var(--mint);
}

.status.delayed {
  color: #875100;
  background: var(--amber-soft);
}

.status.missed {
  color: #9c211b;
  background: var(--red-soft);
}

.side-stack {
  display: grid;
  gap: 18px;
}

.map-panel {
  overflow: hidden;
}

.map-canvas {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(17, 108, 69, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(17, 108, 69, 0.08) 1px, transparent 1px),
    #fbfdfb;
  background-size: 32px 32px;
}

.map-legend {
  display: grid;
  gap: 10px;
  padding: 14px 16px 16px;
}

.legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
}

.dot.warn {
  background: var(--amber);
}

.dot.miss {
  background: var(--red);
}

.upload-form {
  display: grid;
  gap: 13px;
  padding: 16px;
}

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

.file-drop {
  display: grid;
  min-height: 92px;
  place-items: center;
  gap: 5px;
  border: 1px dashed #a7b9ae;
  border-radius: 8px;
  color: var(--muted);
  background: #fbfdfb;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}

.file-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.file-drop strong {
  color: var(--green-2);
}

.file-drop span {
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.phone-live {
  padding: 14px;
  background: #102b20;
}

.phone-live .phone-screen {
  min-height: 420px;
}

.mobile-list {
  display: grid;
  gap: 9px;
}

.mobile-list .phone-card {
  margin: 0;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 12;
  max-width: 330px;
  padding: 13px 14px;
  color: #fff;
  background: var(--green-2);
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 700;
}

.hidden {
  display: none !important;
}

svg {
  width: 17px;
  height: 17px;
  stroke-width: 2;
}

@media (max-width: 1100px) {
  .login-screen,
  .shell,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 14px;
  }

  .sidebar .brand-lockup {
    margin-bottom: 12px;
  }

  .nav {
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    overflow-x: auto;
  }

  .sidebar-footer,
  .login-visual {
    display: none;
  }

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

@media (max-width: 720px) {
  .login-panel,
  .content,
  .topbar {
    padding: 18px;
  }

  .login-panel {
    min-height: 100vh;
  }

  .brand-lockup {
    margin-bottom: 30px;
  }

  .topbar,
  .date-strip,
  .panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .top-actions,
  .date-controls,
  .filter-controls {
    width: 100%;
  }

  .top-actions > *,
  .date-controls > *,
  .filter-controls > *,
  .search {
    flex: 1;
    min-width: 0;
  }

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

  .metric {
    min-height: 112px;
  }

  .nav {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }
}

/* Reference dashboard layout matching the supplied municipal GPS mockup */
.reference-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 198px minmax(0, 1fr);
  background: #f8faf8;
}

.reference-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 10px;
  color: #fff;
  background:
    radial-gradient(circle at 42% 0%, rgba(255, 255, 255, 0.12), transparent 26%),
    linear-gradient(180deg, #006737 0%, #003b2b 100%);
}

.reference-seal {
  display: grid;
  width: 78px;
  height: 78px;
  margin: 0 auto 10px;
  place-items: center;
  color: #006737;
  background: #fff;
  border: 6px double #dbeee1;
  border-radius: 50%;
  font-size: 19px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.reference-seal-img {
  display: block;
  width: 88px;
  height: 88px;
  margin: 0 auto 10px;
  object-fit: contain;
  background: #fff;
  border: 5px solid #dbeee1;
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.reference-council {
  margin-bottom: 20px;
  text-align: center;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.14;
}

.reference-nav {
  display: grid;
  gap: 4px;
}

.reference-nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 50px;
  padding: 0 13px;
  color: #fff;
  background: transparent;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
}

.reference-nav button.active,
.reference-nav button:hover {
  background: linear-gradient(90deg, rgba(35, 171, 82, 0.8), rgba(18, 121, 68, 0.75));
}

.reference-help {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  display: grid;
  gap: 6px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  font-size: 13px;
}

.reference-help strong,
.reference-help span {
  display: block;
}

.reference-main {
  min-width: 0;
}

.reference-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  padding: 0 22px;
  background: #fff;
  border-bottom: 1px solid #dfe4df;
}

.reference-title {
  display: flex;
  align-items: center;
  gap: 22px;
}

.reference-title h1 {
  margin: 0;
  color: #064f2e;
  font-size: 23px;
  line-height: 1;
}

.dept-heading {
  display: grid;
  gap: 3px;
  color: #0a422b;
}

.dept-heading strong {
  font-size: 17px;
  line-height: 1.1;
}

.dept-heading span {
  color: #4e5a54;
  font-size: 13px;
  font-weight: 800;
}

.hamburger {
  display: grid;
  gap: 5px;
  width: 30px;
  padding: 0;
  background: transparent;
}

.hamburger span {
  display: block;
  height: 2px;
  background: #111;
}

.reference-user {
  display: flex;
  align-items: center;
  gap: 14px;
}

.flag-india {
  display: grid;
  width: 36px;
  height: 24px;
  border: 1px solid #e3e3e3;
}

.flag-india i:nth-child(1) {
  background: #ff8f1c;
}

.flag-india i:nth-child(2) {
  background: #fff;
}

.flag-india i:nth-child(3) {
  background: #138808;
}

.user-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #0d5136;
  border: 1px solid #d6ded8;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
}

.reference-user strong,
.reference-user span {
  display: block;
}

.reference-user strong {
  font-size: 14px;
}

.reference-user span {
  color: #4e5a54;
  font-size: 12px;
}

.reference-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  min-height: calc(100vh - 70px);
}

.reference-content.viewer-only {
  grid-template-columns: minmax(0, 1fr);
}

.reference-content.viewer-only .reference-upload-rail {
  display: none;
}

.reference-report {
  min-width: 0;
  padding: 22px 16px 22px 18px;
}

.reference-toolbar {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) repeat(6, auto);
  align-items: start;
  gap: 12px;
  margin-bottom: 22px;
}

.reference-toolbar h2 {
  margin: 0 0 2px;
  font-size: 24px;
}

.reference-toolbar span {
  color: #6d7670;
  font-size: 12px;
  font-weight: 700;
}

.reference-export {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  color: #006737;
  background: #fff;
  border: 1px solid #006737;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.live-clock-strip {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 10px 12px;
  background: #eef5f8;
  border-radius: 8px;
}

.water-refresh-btn {
  height: 46px;
  padding: 0 18px;
  color: #081b36;
  background: #fff;
  border: 1px solid #cfdae4;
  border-radius: 8px;
  box-shadow: 0 1px 1px rgba(15, 42, 65, 0.04);
  font-size: 18px;
  font-weight: 500;
}

.water-refresh-btn:hover,
.water-refresh-btn:focus-visible {
  border-color: #9eb4c8;
  outline: none;
}

.water-clock-card {
  display: inline-flex;
  align-items: center;
  min-width: 190px;
  height: 66px;
  gap: 10px;
  padding: 0 16px;
  background: #fff;
  border: 1px solid #d8e2eb;
  border-radius: 8px;
  box-shadow: 0 1px 1px rgba(15, 42, 65, 0.03);
}

.clock-dot {
  width: 12px;
  height: 12px;
  background: #159b78;
  border-radius: 50%;
  box-shadow: 0 0 0 9px #dcefe8;
}

.water-clock-card strong,
.water-clock-card small {
  display: block;
}

.water-clock-card strong {
  color: #111;
  font-size: 20px;
  line-height: 1.1;
}

.water-clock-card small {
  margin-top: 4px;
  color: #526375;
  font-size: 13px;
}

.reference-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.live-source-note {
  margin: -10px 0 14px;
  color: #52615a;
  font-size: 12px;
  font-weight: 700;
}

.live-movement-card {
  margin-bottom: 22px;
}

.live-moving {
  background: #f3fbf5;
}

.live-stopped {
  background: #fff8e8;
}

.live-offline {
  background: #fff1f0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #eef3ef;
  color: #00492b;
  font-weight: 800;
  white-space: nowrap;
}

.reference-metric {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 10px;
  min-height: 153px;
  padding: 20px 14px;
  background: #fff;
  border: 1px solid #d9dfdb;
  border-radius: 7px;
}

.reference-metric-button {
  width: 100%;
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.reference-metric-button:hover,
.reference-metric-button:focus-visible {
  border-color: #e6211d;
  box-shadow: 0 12px 24px rgba(230, 33, 29, 0.14);
  transform: translateY(-1px);
  outline: none;
}

.metric-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  align-self: center;
  border-radius: 50%;
  font-size: 26px;
  font-weight: 900;
}

.reference-metric.green .metric-icon {
  color: #008b35;
  background: #def4e6;
}

.reference-metric.red .metric-icon {
  color: #e6211d;
  background: #ffe6e4;
}

.reference-metric.orange .metric-icon {
  color: #ff8a00;
  background: #fff0d9;
}

.metric-copy span,
.metric-copy small {
  display: block;
}

.metric-copy span {
  color: #111;
  font-size: 12px;
  font-weight: 700;
}

.metric-copy strong {
  display: block;
  margin: 12px 0 10px;
  color: #111;
  font-size: 30px;
  line-height: 1;
}

.metric-copy small {
  min-height: 15px;
  color: #59615c;
  font-size: 12px;
}

.progress-track {
  height: 5px;
  margin-top: 15px;
  overflow: hidden;
  background: #e6e7e6;
  border-radius: 999px;
}

.progress-track i {
  display: block;
  height: 100%;
  background: #24a41f;
}

.reference-metric.red .progress-track i {
  background: #f02a27;
}

.reference-metric.orange .progress-track i {
  background: #ff8a00;
}

.popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.38);
}

.vehicle-popup {
  width: min(920px, 100%);
  max-height: min(76vh, 720px);
  overflow: hidden;
  background: #fff;
  border: 1px solid #d9dfdb;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.vehicle-popup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid #e3e8e4;
}

.vehicle-popup-head h3,
.vehicle-popup-head span {
  display: block;
}

.vehicle-popup-head h3 {
  margin: 0 0 4px;
  color: #111;
  font-size: 19px;
}

.vehicle-popup-head span {
  color: #59615c;
  font-size: 13px;
  font-weight: 700;
}

.popup-close {
  width: 38px;
  height: 38px;
  color: #111;
  background: #f2f5f2;
  font-size: 22px;
  line-height: 1;
}

.vehicle-popup-table {
  max-height: calc(min(76vh, 720px) - 76px);
  overflow: auto;
}

.vehicle-popup-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.vehicle-popup-table th,
.vehicle-popup-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #edf0ed;
  text-align: left;
  white-space: nowrap;
}

.vehicle-popup-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f7faf7;
  color: #3e4a43;
  font-size: 11px;
  text-transform: uppercase;
}

.reference-grid {
  display: grid;
  grid-template-columns: minmax(460px, 1.2fr) minmax(360px, 0.9fr);
  gap: 14px;
}

.reference-grid.report-page-grid {
  grid-template-columns: minmax(0, 1fr);
}

.reference-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid #d9dfdb;
  border-radius: 7px;
}

.reference-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 14px;
  border-bottom: 1px solid #d9dfdb;
}

.reference-card-head h3 {
  margin: 0;
  font-size: 16px;
}

.reference-card-head h3 span {
  color: #59615c;
  font-size: 11px;
  font-weight: 500;
}

.compact-search {
  width: 160px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #d9dfdb;
  border-radius: 4px;
  font-size: 12px;
}

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

.reference-table {
  table-layout: auto;
  width: 100%;
  min-width: 1780px;
}

.reference-table th:nth-child(1),
.reference-table td:nth-child(1) {
  width: auto;
}

.reference-table th:nth-child(2),
.reference-table td:nth-child(2) {
  width: 22%;
}

.reference-table th:nth-child(3),
.reference-table td:nth-child(3) {
  width: 15%;
}

.reference-table th:nth-child(4),
.reference-table td:nth-child(4),
.reference-table th:nth-child(5),
.reference-table td:nth-child(5) {
  width: 10%;
}

.reference-table th:nth-child(6),
.reference-table td:nth-child(6) {
  width: 17%;
}

.reference-table th,
.reference-table td {
  height: 47px;
  width: auto !important;
  padding: 10px 10px;
  font-size: 11px;
  white-space: nowrap;
}

.reference-table .cell-note {
  color: #b91c1c;
  display: block;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
  margin-top: 3px;
  max-width: 150px;
  white-space: normal;
}

.reference-table-card {
  grid-column: 1 / -1;
}

.split-report-grid {
  gap: 16px;
  grid-template-columns: repeat(3, minmax(300px, 1fr)) !important;
}

.split-report-card {
  grid-column: auto;
  margin-bottom: 4px;
  min-width: 0;
}

.split-report-head {
  height: 82px;
  align-items: flex-start;
  padding-top: 14px;
}

.split-report-head h3 {
  margin: 0 0 4px;
  font-size: 16px;
  line-height: 1.1;
}

.split-report-head span {
  color: #5f6c7b;
  font-size: 12px;
  font-weight: 800;
}

.split-report-table {
  min-width: 760px;
}

.split-report-card .reference-table-wrap {
  max-height: 530px;
  overflow: auto;
}

.split-report-card .reference-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}

@media (max-width: 1300px) {
  .split-report-grid {
    grid-template-columns: 1fr !important;
  }
}

.reference-table th {
  color: #161d1a;
  background: #fbfcfb;
  white-space: normal;
  line-height: 1.2;
}

.vehicle-link {
  color: #00783b;
}

.reference-table .status {
  min-width: 60px;
  padding: 5px 6px;
  justify-content: center;
  border-radius: 5px;
  font-size: 10px;
}

.reference-table tr.breakdown-row td {
  background: #ffe4e4;
}

.reference-table tr.gps-issue-row td {
  background: #fff4c7;
}

.row-state {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 900;
}

.delete-row-btn {
  min-height: 28px;
  padding: 0 9px;
  color: #9b1c1c;
  background: #fff;
  border: 1px solid #f0b5b5;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 900;
}

.reference-table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 42px;
  padding: 0 14px;
  border-top: 1px solid #d9dfdb;
  color: #343b36;
  font-size: 11px;
}

.pages {
  display: flex;
  gap: 4px;
}

.pages button {
  min-width: 22px;
  height: 24px;
  color: #1d2a23;
  background: #fff;
  border: 1px solid #dfe4df;
  border-radius: 4px;
  font-size: 11px;
}

.pages button.active {
  color: #fff;
  background: #006737;
}

.reference-map {
  position: relative;
  height: 406px;
  overflow: hidden;
  background:
    linear-gradient(30deg, transparent 47%, rgba(247, 193, 77, 0.32) 48%, rgba(247, 193, 77, 0.32) 51%, transparent 52%),
    linear-gradient(125deg, transparent 48%, rgba(68, 157, 214, 0.24) 49%, rgba(68, 157, 214, 0.24) 51%, transparent 52%),
    linear-gradient(90deg, rgba(172, 185, 178, 0.25) 1px, transparent 1px),
    linear-gradient(rgba(172, 185, 178, 0.22) 1px, transparent 1px),
    #f5f2ea;
  background-size: 260px 260px, 220px 220px, 34px 34px, 34px 34px;
}

.reference-map svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.road {
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.green-road {
  stroke: #15963a;
}

.orange-road {
  stroke: #f18600;
}

.muted-road {
  stroke: #90b7aa;
  opacity: 0.8;
}

.route-dots circle {
  fill: #fff;
  stroke: #15963a;
  stroke-width: 4;
}

.orange-dots circle {
  fill: #fff;
  stroke: #f18600;
  stroke-width: 4;
}

.missed-dots circle {
  fill: #f02a27;
  stroke: #fff;
  stroke-width: 3;
}

.map-label {
  position: absolute;
  z-index: 1;
  padding: 3px 5px;
  color: #26312c;
  background: rgba(255, 255, 255, 0.68);
  border-radius: 3px;
  font-size: 12px;
  font-weight: 800;
}

.map-city {
  top: 113px;
  left: 28%;
  font-size: 18px;
}

.map-w1 { top: 32px; left: 8%; }
.map-w2 { top: 115px; right: 9%; }
.map-w3 { top: 43px; right: 31%; }
.map-w4 { right: 16%; bottom: 130px; }
.map-w5 { left: 10%; bottom: 72px; }

.vehicle-pin {
  position: absolute;
  right: 41%;
  bottom: 110px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fff;
  background: #08853e;
  border-radius: 50% 50% 50% 8px;
  transform: rotate(-45deg);
}

.vehicle-pin svg {
  position: static;
  transform: rotate(45deg);
}

.zoom-controls {
  position: absolute;
  right: 8px;
  bottom: 12px;
  display: grid;
  background: #fff;
  border: 1px solid #d9dfdb;
  border-radius: 4px;
}

.zoom-controls button {
  width: 30px;
  height: 31px;
  background: #fff;
  border-bottom: 1px solid #d9dfdb;
  font-size: 18px;
}

.zoom-controls button:last-child {
  border-bottom: 0;
}

.map-expand {
  background: transparent;
  font-size: 18px;
}

.map-key {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 52px;
  padding: 0 14px;
  border-top: 1px solid #d9dfdb;
  color: #4c5751;
  font-size: 12px;
}

.map-key span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.today-summary {
  margin-top: 18px;
  padding: 14px;
}

.today-summary h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.vehicle-breakdown-card {
  margin-top: 14px;
  padding: 14px;
}

.vehicle-breakdown-card h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.chart-card {
  padding: 14px;
}

.chart-card h3,
.breakdown-details-card h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.circle-chart-wrap {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.stacked-circle {
  position: relative;
  display: grid;
  place-items: center;
  width: 148px;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(10, 66, 43, 0.12);
}

.stacked-circle::after {
  position: absolute;
  width: 88px;
  aspect-ratio: 1;
  content: "";
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(10, 66, 43, 0.08);
}

.stacked-circle span,
.stacked-circle small {
  position: relative;
  z-index: 1;
  display: block;
  text-align: center;
}

.stacked-circle span {
  color: #0a422b;
  font-size: 24px;
  font-weight: 900;
}

.stacked-circle small {
  margin-top: 31px;
  color: #5c6861;
  font-size: 10px;
  font-weight: 800;
}

.circle-legend {
  display: grid;
  gap: 9px;
}

.circle-legend p {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) 42px 32px;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #26362d;
  font-size: 12px;
  font-weight: 800;
}

.circle-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.circle-legend strong {
  color: #0a422b;
  text-align: right;
}

.circle-legend em {
  color: #6d776f;
  font-style: normal;
  text-align: right;
}

.chart-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 44px;
  align-items: center;
  min-height: 34px;
  gap: 10px;
  padding-bottom: 10px;
  color: #26362d;
  font-size: 12px;
  font-weight: 800;
}

.chart-row i {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 7px;
  max-width: 100%;
  border-radius: 999px;
}

.chart-row i.green { background: #24a41f; }
.chart-row i.red { background: #e13b35; }
.chart-row i.yellow { background: #e6b800; }
.chart-row i.orange { background: #ff8a00; }

.graphic-chart {
  min-height: 268px;
}

.chart-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.chart-title-row h3 {
  margin: 0;
}

.chart-title-row span {
  color: #65748a;
  font-size: 12px;
  font-weight: 900;
}

.trend-chart {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.chart-grid-lines line {
  stroke: #e3ebf4;
  stroke-width: 1;
}

.trend-area {
  fill: url("#trendFill");
}

.trend-line {
  fill: none;
  stroke: #2449ad;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.trend-point circle {
  fill: #fff;
  stroke: #2449ad;
  stroke-width: 3;
}

.trend-point text {
  fill: #718197;
  font-size: 10px;
  font-weight: 800;
}

.bar-chart-list {
  display: grid;
  gap: 14px;
  padding-top: 4px;
}

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

.bar-chart-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #344256;
  font-size: 12px;
  font-weight: 900;
}

.bar-chart-label span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-chart-label strong {
  color: #1f2937;
}

.bar-track {
  position: relative;
  height: 12px;
  overflow: hidden;
  background: #edf2f7;
  border-radius: 999px;
}

.bar-track i {
  display: block;
  height: 100%;
  min-width: 3px;
  border-radius: inherit;
}

.chart-tooltip {
  position: absolute;
  right: 4px;
  top: 50%;
  display: none;
  min-width: 70px;
  padding: 7px 8px;
  color: #fff;
  background: #1f2937;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(31, 41, 55, 0.18);
  transform: translateY(-50%);
  z-index: 2;
}

.chart-tooltip strong,
.chart-tooltip small {
  display: block;
}

.chart-tooltip small {
  color: #c8d3df;
  font-size: 9px;
  font-weight: 700;
}

.bar-track:hover .chart-tooltip {
  display: block;
}

.breakdown-details-card {
  margin-top: 14px;
  padding: 14px;
}

.route-monitor-card {
  margin-top: 14px;
  padding: 14px;
}

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

.route-monitor-head h3 {
  margin: 0;
  color: #0a422b;
  font-size: 16px;
  font-weight: 900;
}

.route-monitor-head span {
  display: block;
  margin-top: 3px;
  color: #5c6861;
  font-size: 12px;
  font-weight: 800;
}

.route-monitor-head a {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 8px 12px;
  color: #005b35;
  background: #fff;
  border: 1px solid #9bbdad;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.route-monitor-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.route-monitor-stats article {
  padding: 12px;
  background: #f8faf8;
  border: 1px solid #e1e7e2;
  border-radius: 6px;
}

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

.route-monitor-stats span {
  color: #5c6861;
  font-size: 12px;
  font-weight: 800;
}

.route-monitor-stats strong {
  margin-top: 4px;
  color: #0a422b;
  font-size: 26px;
  font-weight: 900;
}

.route-monitor-table {
  overflow: auto;
  border: 1px solid #e1e7e2;
  border-radius: 6px;
}

.route-monitor-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.route-monitor-table th,
.route-monitor-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #eef1ee;
  text-align: left;
  white-space: nowrap;
}

.route-monitor-table th {
  color: #21342a;
  background: #f8faf8;
  font-weight: 900;
}

.breakdown-period-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 10px;
}

.breakdown-period {
  overflow: auto;
  border: 1px solid #e1e7e2;
  border-radius: 6px;
}

.breakdown-period h4 {
  margin: 0;
  padding: 10px;
  color: #0a422b;
  background: #f8faf8;
  border-bottom: 1px solid #e1e7e2;
  font-size: 13px;
}

.breakdown-period table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.breakdown-period th,
.breakdown-period td {
  padding: 8px 9px;
  border-bottom: 1px solid #eef1ee;
  text-align: left;
  white-space: nowrap;
}

.vehicle-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 10px;
}

.detail-list {
  min-width: 0;
  max-height: 260px;
  overflow: auto;
  padding: 10px;
  background: #f8faf8;
  border: 1px solid #e1e7e2;
  border-radius: 6px;
}

.detail-list h4 {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 8px;
  color: #0a422b;
  font-size: 13px;
}

.detail-list p {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 7px 0;
  border-top: 1px solid #e1e7e2;
  font-size: 12px;
}

.detail-list span,
.detail-list em {
  color: #59615c;
  font-style: normal;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
}

.summary-metric {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 14px;
  border-right: 1px solid #d9dfdb;
}

.summary-metric:last-child {
  border-right: 0;
}

.summary-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  color: #006737;
  background: #ddf4e4;
  font-weight: 900;
}

.summary-icon.alert {
  color: #e6211d;
  background: #ffe4e3;
}

.summary-icon.map {
  color: #5d35b1;
  background: #eee8ff;
}

.summary-icon.clock,
.summary-icon.truck {
  color: #555;
  background: #eeeeee;
}

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

.summary-metric span {
  color: #59615c;
  font-size: 11px;
}

.summary-metric strong {
  color: #111;
  font-size: 19px;
}

.reference-upload-rail {
  min-width: 0;
  padding: 20px 22px;
  background: #fff;
  border-left: 1px solid #d9dfdb;
}

.upload-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.upload-head h2 {
  margin: 0;
  font-size: 19px;
}

.upload-head button {
  width: 30px;
  height: 30px;
  color: #111;
  background: transparent;
  font-size: 24px;
}

.reference-upload-form {
  display: grid;
  gap: 11px;
}

.reference-upload-form .field {
  gap: 6px;
}

.reference-upload-form .field span {
  color: #343b36;
  font-size: 12px;
  font-weight: 700;
  text-transform: none;
}

.reference-upload-form .field input,
.reference-upload-form .field select,
.reference-upload-form .field textarea,
.reference-upload-form .date-input {
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 12px;
}

.reference-upload-form textarea {
  min-height: 70px;
}

.reference-upload-form .bulk-area textarea {
  min-height: 76px;
}

.upload-photo-drop {
  min-height: 102px;
}

.uploader-content {
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: calc(100vh - 70px);
  padding: 28px;
  background: #f8faf8;
}

.uploader-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.uploader-heading h2 {
  margin: 0 0 4px;
  color: #0a422b;
  font-size: 28px;
}

.uploader-heading span {
  color: #59615c;
  font-size: 13px;
  font-weight: 700;
}

.compact-upload-card {
  width: min(520px, 100%);
  padding: 16px;
}

.compact-upload-card .upload-head {
  margin-bottom: 10px;
}

.bulk-delete-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.danger-btn {
  min-height: 38px;
  padding: 0 14px;
  color: #fff;
  background: #b42318;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 900;
}

.recent-upload-card {
  max-width: 980px;
}

.small-preview {
  max-height: 360px;
}

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

.phone-device {
  position: relative;
  width: 205px;
  min-height: 438px;
  margin: 20px auto 0;
  padding: 18px 12px 12px;
  color: #111;
  background: #070707;
  border: 5px solid #111;
  border-radius: 34px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25);
}

.phone-device::before {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 55px;
  height: 8px;
  content: "";
  background: #1c1c1c;
  border-radius: 999px;
  transform: translateX(-50%);
}

.phone-status,
.phone-top,
.phone-date,
.phone-feed,
.phone-add,
.phone-tabs {
  background: #fff;
}

.phone-status {
  padding: 8px 10px 2px;
  border-radius: 20px 20px 0 0;
  font-size: 11px;
  font-weight: 800;
}

.phone-top,
.phone-date {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 10px;
  border-bottom: 1px solid #e8ece8;
}

.phone-top button {
  background: transparent;
}

.phone-top strong {
  font-size: 13px;
}

.phone-date {
  font-size: 11px;
}

.phone-feed {
  display: grid;
  gap: 0;
  min-height: 210px;
  padding: 5px 0;
}

.phone-feed-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 9px;
  border-bottom: 1px solid #edf0ed;
}

.phone-feed-row strong,
.phone-feed-row span {
  display: block;
}

.phone-feed-row strong {
  font-size: 11px;
}

.phone-feed-row span {
  color: #59615c;
  font-size: 9px;
}

.phone-feed-row em {
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

.phone-feed-row em.completed {
  color: #008b35;
}

.phone-feed-row em.delayed {
  color: #ff8a00;
}

.phone-feed-row em.missed {
  color: #e6211d;
}

.phone-add {
  width: 100%;
  height: 31px;
  color: #fff;
  background: #007b3c;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
}

.phone-tabs {
  display: flex;
  justify-content: space-around;
  padding: 9px 0 6px;
  border-radius: 0 0 20px 20px;
  color: #59615c;
  font-size: 8px;
}

/* Professional blue analytics dashboard theme */
.reference-shell {
  grid-template-columns: 250px minmax(0, 1fr);
  background: #2449ad;
}

.reference-sidebar {
  padding: 28px 20px 26px;
  background: #2449ad;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.08);
}

.reference-seal-img {
  width: 52px;
  height: 52px;
  margin: 0 0 14px 16px;
  border: 0;
  border-radius: 14px;
  box-shadow: none;
}

.reference-council {
  margin: -54px 0 28px 82px;
  text-align: left;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
}

.reference-nav {
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.reference-nav button {
  height: 48px;
  padding: 0 18px;
  color: rgba(255, 255, 255, 0.78);
  border-radius: 14px;
  font-size: 13px;
  font-weight: 800;
}

.reference-nav button svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
}

.reference-nav button.active,
.reference-nav button:hover {
  color: #1b2f68;
  background: #fff;
  box-shadow: 0 14px 26px rgba(15, 31, 81, 0.22);
}

.reference-help {
  right: 20px;
  bottom: 22px;
  left: 20px;
  padding: 16px;
  background: rgba(16, 38, 107, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}

.reference-main {
  min-height: 100vh;
  margin: 20px 20px 20px 0;
  overflow: hidden;
  background: #eef3f8;
  border-radius: 30px;
  box-shadow: 0 26px 60px rgba(17, 34, 90, 0.18);
}

.reference-topbar {
  height: 68px;
  padding: 0 26px;
  background: rgba(248, 251, 255, 0.86);
  border-bottom: 1px solid #dde6f2;
}

.reference-title h1 {
  color: #1f2937;
  font-size: 21px;
  font-weight: 900;
}

.dept-heading strong {
  color: #1f2937;
  font-size: 15px;
}

.dept-heading span,
.reference-user span {
  color: #718197;
}

.user-avatar {
  color: #2449ad;
  background: #fff;
  border: 1px solid #d8e2ef;
  box-shadow: 0 10px 20px rgba(39, 73, 126, 0.08);
}

.reference-report {
  padding: 28px 24px 32px;
}

.reference-toolbar {
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.reference-toolbar h2 {
  color: #1f2937;
  font-size: 21px;
  font-weight: 900;
}

.reference-toolbar span {
  color: #728197;
}

.date-input,
.ghost-btn,
.reference-export,
.compact-search {
  border-color: #d9e4ef;
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(35, 61, 103, 0.05);
}

.ghost-btn,
.reference-export {
  height: 42px;
  color: #2449ad;
  background: #fff;
}

.reference-metrics {
  gap: 18px;
  margin-bottom: 28px;
}

.reference-metric,
.reference-card,
.chart-card,
.route-monitor-card,
.today-summary,
.breakdown-details-card {
  background: #fff;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 16px 34px rgba(36, 73, 173, 0.08);
}

.reference-metric {
  min-height: 152px;
  padding: 22px 20px;
}

.metric-copy span {
  color: #69778d;
  font-size: 12px;
  text-transform: uppercase;
}

.metric-copy strong {
  color: #1f2937;
  font-size: 32px;
  font-weight: 900;
}

.metric-copy small {
  color: #7b8797;
}

.metric-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.reference-metric.green .metric-icon,
.summary-icon {
  color: #2449ad;
  background: #eaf0ff;
}

.reference-metric.red .metric-icon,
.summary-icon.alert {
  color: #f47b2a;
  background: #fff1e6;
}

.reference-metric.orange .metric-icon,
.summary-icon.map {
  color: #f2c62b;
  background: #fff8d9;
}

.progress-track {
  background: #edf2f7;
}

.progress-track i {
  background: #2449ad;
}

.reference-metric.red .progress-track i {
  background: #f47b2a;
}

.reference-metric.orange .progress-track i {
  background: #f2c62b;
}

.charts-grid,
.reference-grid,
.breakdown-period-grid,
.vehicle-detail-grid {
  gap: 18px;
}

.reference-card-head {
  height: 58px;
  padding: 0 18px;
  border-bottom-color: #edf2f7;
}

.reference-card-head h3,
.chart-card h3,
.breakdown-details-card h3,
.route-monitor-head h3 {
  color: #1f2937;
  font-weight: 900;
}

.reference-table th,
.route-monitor-table th {
  color: #65748a;
  background: #f6f9fc;
}

.reference-table td,
.route-monitor-table td {
  border-bottom-color: #eef3f8;
}

.stacked-circle {
  box-shadow: inset 0 0 0 1px rgba(36, 73, 173, 0.12);
}

.stacked-circle span {
  color: #2449ad;
}

.route-monitor-stats article,
.detail-list,
.breakdown-period {
  background: #f8fbff;
  border-color: #e4edf6;
  border-radius: 12px;
}

.live-clock-strip {
  background: #e8f0f7;
  border-radius: 12px;
}

.water-refresh-btn,
.water-clock-card {
  border-color: #d5e0eb;
  box-shadow: 0 12px 24px rgba(36, 73, 173, 0.07);
}

.water-clock-card strong {
  color: #1f2937;
}

.clock-dot {
  background: #13a37f;
  box-shadow: 0 0 0 9px #d9eee8;
}

@media (max-width: 1240px) {
  .reference-shell {
    grid-template-columns: 1fr;
  }

  .reference-sidebar {
    position: static;
    height: auto;
  }

  .reference-nav {
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    overflow-x: auto;
  }

.reference-help,
.phone-device {
    display: none;
  }

  .reference-content,
  .reference-grid {
    grid-template-columns: 1fr;
  }

  .charts-grid,
  .route-monitor-stats,
  .breakdown-period-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .reference-topbar,
  .reference-toolbar,
  .reference-card-head,
  .reference-table-footer,
  .rail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .reference-toolbar {
    display: flex;
  }

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

  .chart-row {
    grid-template-columns: minmax(0, 1fr) 42px;
  }

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

  .circle-legend {
    width: 100%;
  }

  .summary-metric {
    border-right: 0;
    border-bottom: 1px solid #d9dfdb;
  }
}
