.bottom-nav [data-tab='complete'] {
  position: relative;
  background: #235d3a;
  color: #fff;
}
.bottom-nav [data-tab='complete'].on {
  background: #17482a;
  outline: 2px solid #95b287;
  outline-offset: -3px;
}
.complete-badge {
  position: absolute;
  top: 2px;
  right: 12%;
  min-width: 21px;
  height: 21px;
  padding: 2px 5px;
  border-radius: 12px;
  background: #f3e1ab;
  color: #234530;
  font-size: 11px;
  font-weight: 800;
  border: 2px solid #f9fbf6;
}
.complete-badge[hidden] {
  display: none;
}
.complete {
  max-width: 1060px;
  margin: 0 auto;
  color: #233e31;
}
.complete-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 16px;
}
.complete-header h1 {
  margin: 3px 0 0;
  font-size: clamp(28px, 5vw, 36px);
  letter-spacing: -1px;
}
.complete-header .ey {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #66816e;
}
.complete-header label {
  font-size: 11px;
  color: #67776a;
  min-width: 90px;
}
.complete-header select {
  display: block;
  margin-top: 4px;
  border-radius: 12px;
  border: 1px solid #d7e0d3;
  background: #fff;
  color: #264a34;
  font-size: 17px;
  font-weight: 700;
  padding: 8px 12px;
}
.complete-connection:not(:empty) {
  padding: 12px;
  background: #fff1cd;
  border-radius: 12px;
  font-size: 13px;
  margin-bottom: 10px;
}
.complete-location {
  font-size: 13px;
  margin-bottom: 12px;
}
.complete-location details {
  border: 1px solid #d6e2d0;
  border-radius: 16px;
  background: #f5f8ef;
  padding: 12px 14px;
}
.complete-location summary {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  cursor: pointer;
}
.complete-location svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.complete-location p {
  margin: 8px 0;
  line-height: 1.5;
}
.complete-location small {
  display: block;
  color: #697669;
}
.complete-location details div {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.complete-location details button {
  font-size: 13px;
  border-radius: 10px;
  padding: 8px 12px;
}
.complete-location-caption {
  display: flex;
  gap: 6px;
  align-items: center;
  color: #6a7b6d;
  font-size: 12px;
}
.complete-filters {
  display: flex;
  overflow: auto;
  gap: 7px;
  padding: 0 0 12px;
  scrollbar-width: none;
}
.complete-filters button {
  white-space: nowrap;
  background: #edf1e9;
  border: 1px solid #dce5d6;
  border-radius: 24px;
  padding: 9px 16px;
  color: #4d6152;
  font-size: 13px;
  min-height: 42px;
}
.complete-filters [aria-pressed='true'] {
  background: #265e3d;
  color: white;
  border-color: #265e3d;
}
.complete-map-shell {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #d5dfce;
}
.complete-map-shell #complete-map {
  height: clamp(300px, 49dvh, 550px);
  width: 100%;
  z-index: 0;
}
.complete-map-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 85%;
  padding: 7px 12px;
  border-radius: 18px;
  color: #fff;
  background: #18372ccd;
  font-size: 11px;
  pointer-events: none;
}
.complete-map-error:not(:empty) {
  position: absolute;
  top: 50%;
  left: 15px;
  right: 15px;
  margin: 0;
  background: #fffffff0;
  border-radius: 12px;
  padding: 16px;
  color: #43513f;
}
.complete-map-shell #complete-locate {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 3px 12px #12382228;
  padding: 10px;
}
.complete-map-shell #complete-locate svg {
  width: 23px;
  height: 23px;
}
.complete-map-label {
  background: #214533dc;
  color: #fff;
  border: 0;
  box-shadow: 0 2px 10px #12382222;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 11px;
  text-align: center;
}
.complete-map-label:before {
  display: none;
}
.complete-list {
  background: #f8faf5;
  border: 1px solid #e2e7dd;
  border-radius: 23px;
  margin-top: 12px;
  padding: 17px 16px;
}
.complete-list > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.complete-list h2 {
  font-size: 19px;
  margin: 0 0 4px;
  letter-spacing: -0.3px;
}
.complete-list header p {
  font-size: 12px;
  color: #7a8478;
  margin: 0;
}
.complete-list header button {
  font-size: 24px;
  border: 0;
  background: transparent;
  min-width: 44px;
}
.complete-rows {
  display: grid;
  gap: 10px;
}
.complete-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #e1e7dc;
  border-radius: 15px;
  padding: 10px;
}
.complete-row.selected {
  border-color: #56896c;
  box-shadow: 0 0 0 1px #56896c;
}
.complete-row-main {
  display: flex;
  gap: 10px;
  align-items: center;
  text-align: left;
  padding: 3px;
  background: none;
  border: 0;
  color: #254633;
  min-width: 0;
  flex: 1;
}
.complete-row-main > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}
.complete-row-main strong {
  font-size: 15px;
  display: block;
  overflow-wrap: anywhere;
  line-height: 1.3;
}
.complete-row-main small {
  font-size: 11px;
  color: #7b8576;
  font-weight: 400;
  display: block;
  margin-top: 4px;
  line-height: 1.35;
}
.complete-work-type {
  display: block;
  font-size: 12px;
  font-weight: 500;
  margin-top: 4px;
  color: #5d705f;
}
.complete-work-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  width: 39px;
  height: 43px;
  background: #eaf2e4;
  color: #397147;
  flex-shrink: 0;
}
.complete-work-icon svg {
  width: 27px;
  height: 27px;
}
.complete-distance {
  font-size: 11px;
  white-space: nowrap;
  color: #537b55;
}
.complete-row-done {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 9px 11px;
  border-radius: 10px;
  font-size: 12px;
  min-height: 44px;
}
.complete-row-done svg {
  width: 20px;
  height: 20px;
}
.complete-selection:empty {
  display: none;
}
.complete-selection button {
  font-size: 12px;
  margin-bottom: 10px;
}
.complete-list #complete-more {
  width: 100%;
  margin-top: 12px;
  border-radius: 12px;
  font-size: 13px;
}
.complete-empty {
  text-align: center;
  padding: 25px 12px;
}
.complete-empty > svg {
  width: 48px;
  height: 48px;
  color: #467b49;
  background: #e3efdc;
  border-radius: 50%;
  padding: 8px;
}
.complete-empty h3 {
  font-size: 19px;
}
.complete-empty p {
  font-size: 14px;
  color: #6b7d6b;
}
.complete-result:empty {
  display: none;
}
.complete-result {
  position: sticky;
  bottom: calc(85px + env(safe-area-inset-bottom));
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 0;
  padding: 12px 15px;
  border-radius: 14px;
  background: #214c34;
  color: white;
  font-size: 14px;
  box-shadow: 0 3px 15px #203d2930;
}
.complete-result.error {
  background: #753d2d;
}
.complete-result button {
  flex-shrink: 0;
  background: #f0f5e9;
  color: #245537;
  padding: 8px 14px;
  border: 0;
  border-radius: 10px;
}
.complete-dialog {
  border: 0;
  border-radius: 24px;
  width: min(96vw, 530px);
  max-width: 96vw;
  max-height: 92dvh;
  margin: auto;
  padding: 22px;
  overflow: auto;
  background: #fafbf6;
  color: #244332;
}
.complete-dialog::backdrop {
  background: #132d23a6;
  backdrop-filter: blur(3px);
}
.complete-dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.complete-modal-icon {
  display: flex;
  background: #e1edda;
  border-radius: 15px;
  padding: 7px;
}
.complete-modal-icon svg {
  width: 30px;
  height: 30px;
}
.complete-dialog header button {
  background: transparent;
  border: 0;
  color: #55705b;
  min-width: 44px;
}
.complete-dialog h2 {
  font-size: 24px;
  letter-spacing: -0.6px;
  margin: 12px 0;
}
.complete-work-summary {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  background: #eaf1e5;
  border-radius: 14px;
  margin: 0 0 16px;
}
.complete-work-summary strong {
  font-size: 18px;
}
.complete-work-summary span {
  font-size: 13px;
  color: #668063;
}
.complete-dialog label {
  display: grid;
  gap: 6px;
  margin: 12px 0;
  font-size: 13px;
  font-weight: 650;
}
.complete-dialog label small {
  font-weight: 400;
  color: #81917e;
  font-size: 11px;
  display: inline;
}
.complete-dialog input,
.complete-dialog select,
.complete-dialog textarea {
  width: 100%;
  min-width: 0;
  font-size: 16px;
  background: #fff;
  color: #273b2b;
  border: 1px solid #d7e1d1;
  border-radius: 10px;
  padding: 10px;
}
.complete-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.complete-dialog footer {
  position: sticky;
  bottom: -22px;
  background: #fafbf6;
  padding: 12px 0 0;
  display: flex;
  gap: 8px;
}
.complete-dialog footer button {
  border-radius: 12px;
  min-height: 51px;
  font-size: 14px;
}
.complete-dialog footer [type='submit'] {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.complete-dialog footer svg {
  width: 23px;
  height: 23px;
}
.complete-stock-note {
  font-size: 11px;
  line-height: 1.5;
  color: #72836f;
}
.complete-form-error {
  color: #953d2c;
  font-size: 13px;
  line-height: 1.5;
}
.complete-form-error:empty {
  display: none;
}
.complete [hidden] {
  display: none !important;
}
.bottom-nav button[data-tab='complete'],
.bottom-nav button[data-tab='complete'].on {
  color: #fff;
}
.wrap:has(.complete) {
  padding-top: 8px;
}
.wrap:has(.complete) > #title {
  display: none;
}
.complete-map-shell #complete-map {
  height: clamp(280px, 43dvh, 520px);
}
@media (max-width: 400px) {
  .complete-row {
    gap: 5px;
    padding: 9px;
  }
  .complete-work-icon {
    display: none;
  }
  .complete-row-done {
    padding: 9px;
  }
  .complete-list {
    padding: 15px 10px;
  }
  .complete-list h2 {
    font-size: 17px;
  }
  .complete-dialog {
    padding: 17px;
  }
  .complete-dialog footer {
    bottom: -17px;
  }
  .complete-dialog h2 {
    font-size: 22px;
  }
}
.complete-map-label {
  max-width: 174px;
  white-space: normal;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.complete-map-label {
  width: max-content;
  min-width: 76px;
}
.complete-row-actions {
  display: grid;
  gap: 5px;
  flex: none;
}
.complete-row-tools {
  display: flex;
  gap: 2px;
  justify-content: center;
}
.complete-row-tools button {
  min-height: 36px;
  border: 0;
  background: none;
  color: #54725c;
  padding: 5px 8px;
  font-size: 12px;
  border-radius: 8px;
}
.complete-row-tools button:hover {
  background: #eff4eb;
}
.complete-row-tools [data-remove-work] {
  color: #916254;
}
.complete-row-done {
  width: 100%;
  font-size: 14px;
}
.complete-dialog-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.complete-dialog-tools button {
  font-size: 13px;
  min-height: 44px;
  border-radius: 10px;
}
.complete-dialog-tools [data-dialog-remove] {
  border: 0;
  background: none;
  color: #94523e;
}
.complete-delete-dialog > form > p {
  font-size: 14px;
  line-height: 1.65;
  color: #6b786b;
}
.complete-editor {
  max-width: 840px;
  margin: auto;
}
.complete-editor[hidden],
.complete[hidden] {
  display: none !important;
}
.complete-row-main {
  align-self: stretch;
}
.complete-row-main small {
  line-height: 1.5;
}
@media (max-width: 480px) {
  .complete-row {
    align-items: center;
    padding: 13px 10px;
    gap: 10px;
  }
  .complete-row-actions {
    min-width: 102px;
  }
  .complete-distance {
    display: none;
  }
  .complete-row-main strong {
    font-size: 15px;
  }
  .complete-row-tools button {
    padding: 5px 7px;
  }
}

.complete-row.bulk-selected {
  outline: 2px solid #318450;
  background: #e6f3e9;
}
.complete-row-main {
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.complete-bulk {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #edf5ee;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px;
  border-radius: 12px;
}
.complete-bulk:empty {
  display: none;
}
.complete-bulk button {
  min-height: 44px;
}
.complete-rows.is-multiselect .complete-row-actions {
  display: none;
}
.complete-work-preview {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #285c40;
  font-size: 0.88rem;
  line-height: 1.45;
  margin: 5px 0;
  overflow-wrap: anywhere;
}
.complete-plan-details {
  grid-column: 1 / -1;
  width: 100%;
  border-top: 1px solid #e3eae4;
}
.complete-plan-details summary {
  cursor: pointer;
  color: #285c40;
  font-weight: 650;
  padding: 12px 16px;
  min-height: 44px;
  box-sizing: border-box;
}
.complete-plan-details > div {
  padding: 0 16px 16px;
}
.complete-plan-details h4 {
  margin: 10px 0;
  font-size: 0.9rem;
}
.complete-plan-details dl {
  margin: 0;
}
.complete-plan-details dl > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid #eef2ed;
}
.complete-plan-details dt {
  color: #647469;
  font-size: 0.85rem;
}
.complete-plan-details dd {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.complete-plan-details ul {
  padding-left: 18px;
}
.complete-plan-details li {
  margin: 8px 0;
  overflow-wrap: anywhere;
}
.complete-plan-details li small {
  display: block;
  color: #647469;
}

.complete-row {
  flex-wrap: wrap;
}
.complete-plan-details {
  flex-basis: 100%;
}
