* {
  box-sizing: border-box;
}
:root {
  --green: #125342;
  --deep: #103f35;
  --mint: #c6e998;
  --ink: #1e302b;
  --muted: #5f716a;
  --line: #dce5df;
  --bg: #f4f6f2;
  --red: #a23931;
}
body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
.nav {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: var(--green);
}
h1,
h2,
h3,
p {
  margin: 0;
}
.loading {
  padding: 8vh;
  text-align: center;
}
.shell {
  display: grid;
  grid-template-columns: 222px minmax(0, 1fr);
  min-height: 100vh;
}
.side {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--deep);
  padding: 25px 14px;
  color: #f0f7f1;
  display: flex;
  flex-direction: column;
  overflow: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: inherit;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.6px;
}
.brand img {
  width: 38px;
  height: 38px;
}
.side .brand {
  padding: 0 7px;
  margin-bottom: 32px;
}
.brand small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #b5d3c4;
  margin-top: 2px;
}
.nav-title,
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.65px;
  font-weight: 700;
  text-transform: uppercase;
}
.nav-title {
  color: #9cbfb1;
  margin: 14px 11px 7px;
}
.nav {
  border: 0;
  display: flex;
  gap: 12px;
  align-items: center;
  background: none;
  text-decoration: none;
  color: #d5e3db;
  padding: 11px 12px;
  border-radius: 7px;
  width: 100%;
  font-size: 14px;
  text-align: left;
}
.nav:hover,
.nav:focus-visible {
  background: #215347;
}
.nav.active {
  background: #d1eab0;
  color: #153c2d;
  font-weight: 650;
}
.ic {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
  flex-shrink: 0;
}
.side-bottom {
  margin-top: auto;
  padding-top: 28px;
}
.environment {
  color: #c5decf;
  font-size: 12px;
  padding: 14px 10px;
  border-top: 1px solid #366457;
  display: flex;
  align-items: center;
  gap: 9px;
}
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9acc79;
}
.workspace {
  min-width: 0;
}
.topbar {
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.crumb {
  font-size: 13px;
  color: var(--muted);
}
.crumb strong {
  font-weight: 550;
  color: var(--ink);
}
.crumb span {
  padding: 0 10px;
  color: #a3aea7;
}
.avatar {
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: #e1edda;
  color: #34563a;
  font-weight: 700;
  width: 33px;
  height: 33px;
}
.account {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.account small {
  color: var(--muted);
  display: block;
  font-size: 10px;
}
.icon-btn {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  padding: 6px 8px;
}
.mobile-menu {
  display: none;
}
.main {
  padding: 30px 32px 42px;
  max-width: 1680px;
  margin: auto;
}
.heading,
.card-head,
.toolbar,
.strip,
.row,
.item-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.heading,
.card-head,
.strip {
  justify-content: space-between;
}
.heading {
  margin-bottom: 23px;
  flex-wrap: wrap;
}
.eyebrow {
  color: #60786a;
  margin-bottom: 7px;
}
.heading h1 {
  font-size: clamp(29px, 3vw, 42px);
  line-height: 1.15;
  font-weight: 620;
  letter-spacing: -1.5px;
}
.sub {
  color: var(--muted);
  margin-top: 7px;
  font-size: 14px;
}
.btn,
.secondary,
.textbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 7px;
  text-decoration: none;
  font-weight: 600;
  min-height: 36px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--green);
  line-height: 1.2;
}
.btn {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.btn:hover {
  background: #0b4233;
}
.secondary:hover {
  background: #f0f5ed;
}
.textbtn {
  background: none;
  border: 0;
  padding: 3px 0;
  min-height: 27px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 18px;
}
.stat,
.card,
.notice {
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
}
.stat {
  padding: 17px 19px;
  position: relative;
  text-align: left;
  color: inherit;
  min-height: 117px;
}
.stat small,
.muted,
.cell-sub {
  color: var(--muted);
}
.stat .num {
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -1.8px;
  margin: 8px 0 1px;
  line-height: 1;
}
.stat .icbox {
  position: absolute;
  top: 14px;
  right: 15px;
}
.icbox {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  flex-shrink: 0;
  border-radius: 9px;
  background: #eaf1e7;
  color: #467051;
}
.icbox.danger {
  color: #a64236;
  background: #f9e9e2;
}
.icbox.blue {
  background: #e8f0f4;
  color: #477188;
}
.stat.warn {
  border-color: #eed2c7;
}
.stat.warn .num {
  color: #a34735;
}
.stat small {
  font-size: 11px;
}
.board {
  display: grid;
  grid-template-columns: minmax(0, 1.23fr) minmax(0, 1fr);
  gap: 17px;
  align-items: start;
}
.card {
  overflow: hidden;
  min-width: 0;
}
.card-head {
  padding: 17px 19px;
  min-height: 67px;
}
.card-head h2,
.block-title {
  font-size: 18px;
  font-weight: 620;
  letter-spacing: -0.4px;
}
.card-head small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.card-head .ic {
  width: 16px;
}
.card-pad {
  padding: 17px 20px;
}
.deadline {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  text-align: left;
  border: 0;
  border-top: 1px solid var(--line);
  background: #fff;
  width: 100%;
  padding: 13px 18px;
  color: var(--ink);
}
.deadline:hover,
tr[data-go]:hover {
  background: #f7faf6;
  cursor: pointer;
}
.deadline b {
  display: block;
  line-height: 1.4;
  font-size: 14px;
  font-weight: 600;
}
.cell-sub {
  font-size: 12px;
  display: block;
  margin-top: 3px;
}
.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 20px;
  background: #edf1ee;
  color: #53685d;
  font-size: 11px;
  white-space: nowrap;
  font-weight: 600;
}
.badge.overdue,
.badge.high,
.badge.penalty {
  background: #fae7df;
  color: #9f3b2e;
}
.badge.executed,
.badge.clean,
.badge.low {
  background: #e5f2df;
  color: #3d692e;
}
.badge.in_progress,
.badge.issued {
  background: #e3eef5;
  color: #315f79;
}
.badge.new,
.badge.medium,
.badge.partial {
  background: #faf0d7;
  color: #8c621b;
}
.mapframe {
  width: 100%;
  height: 285px;
  border: 0;
  display: block;
  background: #e4ece2;
}
.bigmap .mapframe {
  height: clamp(370px, 62vh, 850px);
}
.map-foot {
  font-size: 11px;
  color: var(--muted);
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.keydot {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 50%;
  margin-right: 5px;
}
.bottom-grid {
  margin-top: 17px;
}
.hbar {
  display: grid;
  grid-template-columns: 95px minmax(0, 1fr) 20px;
  gap: 10px;
  align-items: center;
  margin: 14px 0;
  font-size: 13px;
}
.hbar i {
  display: block;
  height: 7px;
  border-radius: 10px;
  background: #edf1eb;
  overflow: hidden;
}
.hbar i em {
  display: block;
  height: 100%;
  border-radius: 10px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  background: #f5f8f4;
  color: #69796f;
  font-size: 11px;
  font-weight: 650;
}
th,
td {
  border-top: 1px solid var(--line);
  padding: 12px 16px;
  vertical-align: middle;
}
td {
  font-size: 13px;
}
td a {
  font-weight: 600;
}
.toolbar {
  padding: 13px 16px;
  flex-wrap: wrap;
}
.toolbar input {
  flex: 1;
  min-width: 140px;
}
.toolbar select {
  width: auto;
  max-width: 100%;
}
.route-legend {
  margin: 0;
  padding: 0 16px 14px;
  color: #47635b;
  font-size: 13px;
}
#trackForm label {
  display: grid;
  gap: 5px;
  font-size: 13px;
}
#trackForm {
  align-items: end;
}
input,
select,
textarea {
  min-height: 39px;
  border: 1px solid #cbd7ce;
  background: white;
  color: var(--ink);
  border-radius: 6px;
  padding: 8px 10px;
  max-width: 100%;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #719d79;
  outline-offset: 1px;
}
textarea {
  width: 100%;
  min-height: 67px;
  resize: vertical;
}
label {
  display: grid;
  gap: 5px;
  font-size: 13px;
  color: #3e5549;
  font-weight: 550;
}
form .grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}
.full {
  grid-column: 1/-1;
}
.section {
  margin: 18px 0 9px;
  font-size: 15px;
}
.notice {
  padding: 14px 17px;
  background: #edf4e6;
  font-size: 13px;
  margin: 12px 0;
}
.empty {
  padding: 30px 20px;
  color: var(--muted);
  text-align: center;
}
.item-actions {
  flex-wrap: wrap;
  margin: 12px 0;
}
.detail-title {
  font-size: 23px;
  margin: 6px 0;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  padding: 14px 0;
}
.info small {
  display: block;
  color: var(--muted);
  margin-bottom: 3px;
}
.line-card {
  border: 1px solid var(--line);
  padding: 12px 15px;
  border-radius: 8px;
  margin: 10px 0;
}
.line-card p {
  margin: 6px 0;
}
.record {
  border-left: 3px solid #a4c894;
  margin: 10px 0;
  padding: 3px 10px;
}
.strip {
  margin: 12px 0;
}
.list-link {
  color: var(--green);
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  font-weight: 600;
}
.wrap {
  flex-wrap: wrap;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 0;
  max-width: min(740px, 95vw);
  width: 700px;
  max-height: 90vh;
  color: var(--ink);
  box-shadow: 0 20px 90px #0c291b30;
}
dialog::backdrop {
  background: #152d2380;
}
dialog .dialog-head {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 21px;
  border-bottom: 1px solid var(--line);
}
dialog h2 {
  font-size: 20px;
}
dialog .body {
  padding: 18px 21px;
}
dialog footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 17px;
}
.error {
  color: #a02c20;
  white-space: pre-wrap;
  margin: 9px 0;
}
.finding {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f9f6;
  padding: 13px;
  margin: 12px 0;
}
.finding .strip {
  margin: 0 0 11px;
}
.toast-show {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: #173e33;
  color: white;
  z-index: 20;
  border-radius: 9px;
  padding: 12px 18px;
  box-shadow: 0 4px 20px #0002;
}
.auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(120deg, #e4ebdd, #f7f8f1);
}
.auth-box {
  background: #fff;
  max-width: 460px;
  width: calc(100% - 32px);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.auth .brand {
  margin-bottom: 27px;
}
.auth h1 {
  font-size: 25px;
  margin-bottom: 10px;
}
.auth label,
.auth button {
  margin-top: 13px;
}
.auth .btn,
.auth .secondary {
  width: 100%;
}
.mobile-shade {
  display: none;
}
details summary {
  cursor: pointer;
  color: var(--green);
  padding: 6px 0;
}
@media (min-width: 1500px) {
  .main {
    padding: 40px;
  }
  .side {
    padding-top: 32px;
  }
  .shell {
    grid-template-columns: 246px minmax(0, 1fr);
  }
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .main {
    padding: 23px 18px;
  }
  .topbar {
    padding: 0 18px;
  }
  .side {
    padding-left: 9px;
    padding-right: 9px;
  }
  .board {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  }
  .stat {
    padding: 15px 12px;
  }
  .stat .icbox {
    width: 25px;
    height: 25px;
    right: 7px;
    top: 9px;
  }
  .deadline {
    padding: 11px 13px;
    gap: 8px;
    grid-template-columns: 30px minmax(0, 1fr) auto;
  }
  .deadline .icbox {
    width: 29px;
    height: 29px;
  }
  .card-head {
    padding: 14px;
  }
}
@media (max-width: 820px) {
  .shell {
    display: block;
  }
  .side {
    position: fixed;
    left: -245px;
    top: 0;
    width: 220px;
    z-index: 8;
    transition: left 0.15s;
  }
  .menu-open .side {
    left: 0;
  }
  .menu-open .mobile-shade {
    display: block;
    position: fixed;
    inset: 0;
    background: #15312470;
    z-index: 7;
  }
  .mobile-menu {
    display: inline-block;
  }
  .topbar {
    height: 52px;
  }
  .board {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat {
    min-height: 95px;
  }
  .main {
    padding: 18px 13px;
  }
  .heading h1 {
    font-size: 30px;
  }
  .account small {
    display: none;
  }
  .crumb {
    font-size: 12px;
  }
  .card-head {
    min-height: 55px;
  }
  .heading {
    margin-bottom: 17px;
  }
  .side .brand {
    margin-bottom: 14px;
  }
}
@media (max-width: 510px) {
  form .grid {
    grid-template-columns: 1fr;
  }
  .account .person,
  .crumb span:first-child {
    display: none;
  }
  .heading .btn {
    min-height: 35px;
  }
  .stats {
    gap: 8px;
  }
  .deadline {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .deadline .icbox {
    display: none;
  }
  .main {
    padding: 16px 10px;
  }
  .toolbar input,
  .toolbar select {
    width: 100%;
    flex: auto;
  }
  .stat .num {
    font-size: 31px;
  }
  .card-head h2 {
    font-size: 16px;
  }
  .full {
    grid-column: auto;
  }
}
.location-fields {
  display: grid;
  gap: 10px;
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 13px;
}
.location-fields h3 {
  font-size: 16px;
}
.location-fields [data-map-toggle] {
  justify-self: start;
}
.location-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 12px;
}
.address-edit {
  display: grid;
  align-content: start;
  gap: 5px;
  position: relative;
}
.address-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 3;
  background: white;
  box-shadow: 0 6px 18px #153b3026;
  border: 1px solid var(--line);
  border-radius: 7px;
  max-height: 215px;
  overflow: auto;
}
.address-results button {
  display: grid;
  gap: 2px;
  width: 100%;
  background: white;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 8px 11px;
  color: var(--ink);
}
.address-results button:hover,
.address-results [aria-selected="true"] {
  background: #edf5e9;
}
.address-results small {
  color: var(--muted);
}
.location-map {
  width: 100%;
  height: 310px;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.location-fields [data-nearest]:not(:empty) {
  padding: 8px 0;
}
.location-fields [data-nearest] p {
  margin-bottom: 6px;
}
@media (max-width: 570px) {
  .location-grid {
    grid-template-columns: 1fr;
  }
  .location-map {
    height: 235px;
  }
}
