@font-face {
  font-family: Local;
  src: local("Inter"), local("Segoe UI");
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Local, Arial, sans-serif;
  font-size: 16px;
  color: #243c35;
  background: #f4f6f5;
  line-height: 1.5;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a {
  color: inherit;
  text-decoration: none;
}
.app-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  vertical-align: middle;
}
button {
  border: 0;
  background: none;
  color: inherit;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #a2be69;
  outline-offset: 3px;
}
input,
select,
textarea {
  width: 100%;
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid #dce2de;
  border-radius: 8px;
  color: #243c35;
  background: white;
  outline: 0;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #6b8f70;
  box-shadow: 0 0 0 3px #739f7620;
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #285742;
  box-shadow: none;
}
input[type="number"] {
  font-variant-numeric: tabular-nums;
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2367766e' stroke-width='1.7'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
textarea {
  resize: vertical;
  min-height: 90px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -1px;
  line-height: 1.25;
  margin-bottom: 7px;
}
h2 {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.4px;
  margin-bottom: 16px;
}
h3 {
  font-size: 16px;
  margin-bottom: 12px;
}
small,
.muted {
  color: #78867f;
}
.muted {
  font-size: 14px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.9px;
  font-size: 12px;
  font-weight: 650;
  color: #819388;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 8px;
  padding: 11px 17px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition:
    background 0.15s,
    border 0.15s;
}
.btn.primary {
  background: #214d3b;
  color: white;
  border: 1px solid #214d3b;
}
.btn.primary:hover {
  background: #163d2d;
}
.btn.secondary {
  background: white;
  border: 1px solid #dce2de;
}
.btn.secondary:hover {
  background: #f3f6f2;
}
.btn.soft {
  background: #edf2e8;
  color: #3b6242;
}
.btn.danger {
  background: #b64a3e;
  color: white;
}
.btn.text {
  padding: 8px;
  color: #537344;
}
.btn.small {
  padding: 7px 11px;
  min-height: 34px;
}
.icon-btn {
  padding: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  min-height: 38px;
  min-width: 38px;
}
.icon-btn:hover {
  background: #eaf0e9;
}
.danger-text {
  color: #b64a3e;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  background: #edf0ec;
  color: #617167;
}
.tag.new {
  background: #edf0f7;
  color: #5e72a0;
}
.tag.active {
  background: #fff1d8;
  color: #9b7429;
}
.tag.done {
  background: #e9f3e5;
  color: #557c40;
}
.tag.cancelled {
  background: #f3e9e7;
  color: #a47770;
}
.tag.outline {
  background: transparent;
  border: 1px solid #d8e1d8;
  color: #72816e;
}
.shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 232px;
  background: #17392f;
  color: #c2cec5;
  display: flex;
  flex-direction: column;
  padding: 34px 20px 22px;
  z-index: 40;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  font-size: 27px;
  font-weight: 650;
  letter-spacing: -1.1px;
  margin: 0 10px 4px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 7px;
  font-size: 14px;
  color: #b4c6ba;
}
.nav a svg {
  width: 19px;
  height: 19px;
  opacity: 0.8;
}
.nav a:hover {
  background: #234a3b;
  color: white;
}
.nav a.selected {
  background: #d7ed91;
  color: #25422e;
  font-weight: 600;
}
.nav-count {
  font-size: 12px;
  margin-left: auto;
  opacity: 0.7;
}
.sidebar-bottom {
  margin-top: auto;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px;
  font-size: 13px;
}
.avatar {
  background: #355745;
  color: #d5e7c4;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  flex-shrink: 0;
}
.profile small {
  display: block;
  font-size: 11px;
  color: #7f9d8a;
}
.profile .icon-btn {
  margin-left: auto;
}
.workspace {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 76px;
  border-bottom: 1px solid #e4e8e4;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  gap: 15px;
}
.breadcrumb {
  font-size: 13px;
  color: #99a19a;
  display: flex;
  gap: 13px;
  align-items: center;
}
.breadcrumb strong {
  font-weight: 500;
  color: #4b5f52;
}
.top-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: #7c8b7d;
}
.top-meta span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}
.top-meta svg {
  width: 16px;
  height: 16px;
}
.menu-toggle {
  display: none;
}
.content {
  max-width: 1540px;
  margin: 0 auto;
  padding: 34px 38px 50px;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 27px;
}
.page-head p {
  font-size: 14px;
  color: #819082;
  margin-bottom: 0;
}
.head-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}
.stat {
  background: white;
  border: 1px solid #e1e7df;
  border-radius: 11px;
  padding: 20px 22px;
  position: relative;
  min-height: 140px;
}
.stat-label {
  font-size: 13px;
  color: #7b8b7a;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.stat-label svg {
  width: 18px;
  height: 18px;
  color: #8f9b84;
}
.stat strong {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.8px;
}
.stat small {
  display: block;
  font-size: 12px;
  margin-top: 10px;
  color: #91a08a;
}
.stat.featured {
  background: #ecf1e2;
  border-color: #dfe7d0;
}
.panel {
  background: white;
  border: 1px solid #e0e6dd;
  border-radius: 11px;
  overflow: hidden;
}
.panel.pad {
  padding: 23px;
}
.panel-head {
  padding: 21px 23px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #edf0e9;
}
.panel-head h2 {
  margin: 0;
}
.panel-head .muted {
  font-size: 13px;
}
.panel-head > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 18px;
}
.search {
  position: relative;
  max-width: 360px;
  flex: 1;
}
.search svg {
  position: absolute;
  left: 13px;
  top: 13px;
  color: #9ba695;
  width: 17px;
  height: 17px;
}
.search input {
  padding-left: 39px;
  font-size: 14px;
  background: white;
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter {
  padding: 8px 13px;
  font-size: 13px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #7f8a79;
}
.filter:hover {
  background: #e8ede3;
}
.filter.selected {
  background: #fff;
  border-color: #d9e1d2;
  color: #344d37;
  font-weight: 600;
}
.table-scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
  font-size: 14px;
}
th {
  font-weight: 500;
  font-size: 12px;
  color: #899580;
  background: #fafbf8;
  padding: 13px 22px;
  border-bottom: 1px solid #e9ede5;
}
td {
  padding: 17px 22px;
  border-bottom: 1px solid #eef1e9;
  color: #55624f;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr.clickable {
  cursor: pointer;
}
tbody tr.clickable:hover {
  background: #f8faf4;
}
td strong {
  display: block;
  font-weight: 550;
  color: #354b35;
}
td small {
  display: block;
  font-size: 12px;
  margin-top: 3px;
  color: #8a9680;
}
.number {
  color: #53704a;
  font-weight: 600;
}
.table-footer {
  border-top: 1px solid #edf0e7;
  padding: 12px 22px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #8b9682;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 23px;
}
.truck-list {
  padding: 0 20px;
}
.truck-row {
  padding: 17px 0;
  border-bottom: 1px solid #edf0e6;
  display: flex;
  align-items: center;
  gap: 12px;
}
.truck-row:last-child {
  border-bottom: 0;
}
.truck-icon {
  height: 37px;
  width: 40px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #f0f3e9;
  border-radius: 7px;
  color: #7d8d66;
}
.truck-row strong {
  font-size: 13px;
  font-weight: 550;
  display: block;
}
.truck-row small {
  font-size: 12px;
  display: block;
  margin-top: 2px;
}
.truck-row .tag {
  margin-left: auto;
  font-size: 11px;
  padding: 3px 7px;
}
.dashboard-note {
  display: flex;
  gap: 16px;
  padding: 22px;
  background: #eaf0df;
  border: 1px solid #dde6cc;
  border-radius: 11px;
  margin-top: 23px;
}
.dashboard-note > svg {
  color: #72914e;
  width: 25px;
  height: 25px;
  margin-top: 2px;
}
.dashboard-note h3 {
  margin-bottom: 4px;
  font-size: 14px;
}
.dashboard-note p {
  font-size: 13px;
  color: #879477;
  margin: 0;
}
.empty {
  padding: 50px 24px;
  text-align: center;
  color: #7b8d77;
}
.empty .empty-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: #eef3e6;
  margin: 0 auto 18px;
  color: #839c66;
}
.empty h3 {
  color: #445c3c;
  font-size: 17px;
  margin-bottom: 7px;
}
.empty p {
  font-size: 14px;
  max-width: 380px;
  margin: 0 auto 20px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 19px;
}
.record-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
}
.record-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.record-card h2 {
  margin: 15px 0 4px;
  font-size: 19px;
}
.record-card p {
  font-size: 14px;
  color: #7f8b76;
  margin: 6px 0;
}
.record-card .card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #edf2e4;
  display: grid;
  place-items: center;
  color: #789258;
}
.record-card .card-bottom {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.record-card .card-bottom .btn {
  margin-left: auto;
}
.category-tree {
  margin-bottom: 20px;
  padding: 12px;
}
.category-tree-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.category-tree-row {
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 7px;
  min-height: 42px;
}
.category-tree-row.selected {
  background: #e6eed8;
}
.category-name {
  flex: 1;
  min-width: 0;
  text-align: left;
  background: none;
  border: 0;
  padding: 10px 6px;
  color: inherit;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.category-tree-row > .app-icon {
  margin: 0 10px;
  flex-shrink: 0;
}
.category-tree-row .expanded .app-icon {
  transform: rotate(90deg);
}
.category-children {
  margin-left: 16px;
  padding-left: 8px;
  border-left: 1px solid #dce3d4;
}
.product-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #dce3d4;
  border-radius: 8px;
  background: white;
  text-align: left;
  color: inherit;
  cursor: pointer;
}
.product-select .app-icon {
  flex-shrink: 0;
}
#product-picker .modal {
  width: 650px;
}
.product-result {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px;
  border: 1px solid #e4ebdb;
  border-radius: 7px;
  background: white;
  color: inherit;
  margin: 8px 0;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.product-result:hover,
.product-result:focus-visible {
  background: #eef4e5;
}
.product-result small {
  display: block;
  margin-top: 5px;
  color: #819082;
}
.product-locations {
  max-height: 220px;
  overflow: auto;
  border: 1px solid #dce3d4;
  border-radius: 8px;
  padding: 8px;
  margin-top: 6px;
}
.catalog-picker [hidden] {
  display: none !important;
}
.selected-locations {
  font-size: 12px;
  line-height: 1.6;
  margin: 8px 0;
  overflow-wrap: anywhere;
}
.selected-locations strong,
.selected-locations span {
  display: block;
}
.location-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 6px;
  cursor: pointer;
}
.location-check input {
  flex-shrink: 0;
  margin-top: 3px;
}
.location-check span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.location-check strong {
  font-weight: 500;
}
.location-check small {
  display: block;
  margin-top: 3px;
  color: #819082;
  font-size: 12px;
}
#loading-point-picker .modal {
  width: 650px;
}
.loading-point-option .tag {
  margin-top: 8px;
}
.item-origin .btn {
  margin-left: auto;
}
.product-branch {
  margin: 8px 0;
}
.product-branch summary {
  padding: 12px;
  cursor: pointer;
  background: #f4f7ee;
  border-radius: 7px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.product-branch > div {
  padding-left: 14px;
  margin-left: 8px;
  border-left: 1px solid #dce3d4;
}
.zone-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px minmax(0, 1fr);
  gap: 12px;
}
.zone-fields input[type="color"] {
  width: 100%;
  height: 49px;
  padding: 5px;
}
.zone-toolbar .field {
  min-width: 0;
  margin: 0;
  flex: 1 1 240px;
}
.zone-toolbar .field select {
  max-width: none;
}
.zone-vertex span {
  display: block;
  border-radius: 50%;
}
@media (max-width: 720px) {
  .zone-fields {
    grid-template-columns: minmax(0, 1fr) 80px;
  }
  .zone-fields .field:last-child {
    grid-column: 1/-1;
  }
  .category-children {
    margin-left: 8px;
    padding-left: 6px;
  }
}
.grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.field {
  display: block;
  margin-bottom: 17px;
  min-width: 0;
}
.field > span {
  display: block;
  font-size: 13px;
  color: #6e7e63;
  font-weight: 500;
  margin-bottom: 7px;
}
.field .hint {
  font-size: 12px;
  display: block;
  color: #94a088;
  margin-top: 5px;
  font-weight: 400;
}
.field:last-child {
  margin-bottom: 0;
}
.check {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 14px;
}
.divider {
  height: 1px;
  background: #e8ede2;
  margin: 23px 0;
}
.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 23px 0 14px;
  gap: 10px;
}
.section-label h3 {
  margin: 0;
}
.form-error {
  background: #fbefec;
  color: #a44839;
  border: 1px solid #efd0c9;
  border-radius: 8px;
  padding: 12px 15px;
  font-size: 14px;
  margin-bottom: 18px;
}
.form-error:empty {
  display: none;
}
.form-error a {
  display: inline-block;
  text-decoration: underline;
  font-weight: 600;
  margin: 4px 10px 0 0;
}
.address-row {
  background: #f8faf5;
  border: 1px solid #e5ebdd;
  padding: 13px;
  border-radius: 8px;
  margin-bottom: 12px;
}
.address-search {
  display: flex;
  gap: 7px;
}
.address-search input {
  flex: 1;
}
.address-search .btn {
  padding-left: 12px;
  padding-right: 12px;
}
.address-results {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.address-results:empty {
  display: none;
}
.address-result {
  text-align: left;
  border: 1px solid #d9e3ce;
  background: white;
  padding: 9px 12px;
  font-size: 13px;
  border-radius: 6px;
}
.address-result:hover {
  background: #edf3e4;
}
.coordinate-state {
  font-size: 12px;
  margin: 7px 0;
  color: #7d965f;
}
.coordinate-state.pending {
  color: #b18b45;
}
details.coordinates {
  margin-top: 7px;
}
details.coordinates summary {
  font-size: 12px;
  color: #869577;
  cursor: pointer;
}
details.coordinates .grid2 {
  margin-top: 9px;
}
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.unit-price {
  border: 1px solid #e2e8d9;
  border-radius: 7px;
  padding: 10px 12px;
}
.unit-price .check {
  margin-bottom: 9px;
  font-size: 13px;
}
.unit-price input[type="number"] {
  font-size: 14px;
  padding: 8px 9px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #11261dd0;
  backdrop-filter: blur(3px);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 25px;
}
.modal {
  background: #fff;
  border-radius: 15px;
  width: 660px;
  max-width: 100%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 28px 80px #0b201e55;
}
.modal.confirm {
  width: 440px;
}
.modal-head {
  padding: 24px 26px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e8ecdf;
}
.modal-head h2 {
  margin: 0;
  font-size: 21px;
}
.modal-body {
  padding: 23px 26px;
  overflow: auto;
}
.modal-footer {
  padding: 18px 26px;
  border-top: 1px solid #e8ecdf;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.modal-footer .delete-record {
  margin-right: auto;
}
.modal.confirm p {
  font-size: 14px;
  color: #78866b;
  margin: 0;
}
.modal.confirm .confirm-symbol {
  background: #f8ece6;
  color: #b76a4c;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 17px;
}
.editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 23px;
  align-items: start;
}
.editor-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 23px;
}
.section-title .step-icon {
  width: 32px;
  height: 32px;
  background: #eef3e6;
  border-radius: 8px;
  color: #839568;
  display: grid;
  place-items: center;
}
.section-title svg {
  width: 17px;
  height: 17px;
}
.section-title h2 {
  margin: 0;
  font-size: 18px;
}
.inline-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 7px;
  font-size: 13px;
  color: #6e7e63;
}
.inline-label .btn {
  padding: 0;
  min-height: auto;
  font-size: 12px;
}
.order-item {
  display: grid;
  grid-template-columns: minmax(120px, 2fr) minmax(75px, 1fr) 90px 90px 30px;
  align-items: end;
  gap: 9px;
  padding: 13px 0;
  border-bottom: 1px solid #edf0e7;
}
.order-item .field {
  margin: 0;
}
.order-item .field > span {
  font-size: 12px;
}
.order-item input,
.order-item select {
  font-size: 14px;
  padding: 9px;
}
.order-item .unit-cost {
  font-size: 14px;
  padding-bottom: 10px;
  text-align: right;
}
.item-origin {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  grid-column: 1/-1;
  font-size: 12px;
  color: #8a9879;
  margin-top: -2px;
}
.allocation-summary {
  font-size: 12px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 12px 0;
  color: #859674;
}
.allocation-summary .bad {
  color: #b47a50;
}
.trip-card {
  border: 1px solid #dce5d2;
  border-radius: 9px;
  overflow: hidden;
  margin: 15px 0;
}
.trip-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 17px;
  background: #f5f8ef;
  border-bottom: 1px solid #e3ead9;
}
.trip-head strong {
  font-size: 14px;
}
.trip-body {
  padding: 18px;
}
.trip-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 12px;
}
.allocations {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 18px;
}
.allocation {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
}
.allocation label {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}
.allocation input[type="number"] {
  width: 105px;
  padding: 7px 10px;
  font-size: 14px;
}
.allocation small {
  width: 35px;
  font-size: 12px;
}
.allocation-limit {
  margin: 5px 0 8px 30px;
  font-size: 12px;
}
.route-stops {
  margin: 13px 0;
  padding: 10px 0;
}
.route-stop {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  font-size: 13px;
}
.route-stop:before {
  content: "";
  width: 9px;
  height: 9px;
  border: 2px solid #9bad7c;
  border-radius: 50%;
  margin: 0 7px 0 2px;
  flex-shrink: 0;
}
.route-stop:last-child:before {
  background: #a7be80;
  border-color: #a7be80;
}
.route-stop .stop-label {
  flex: 1;
  min-width: 0;
}
.route-stop small {
  display: block;
  font-size: 12px;
  color: #8a9879;
}
.route-stop .icon-btn {
  min-width: 25px;
  min-height: 25px;
  padding: 3px;
}
.route-stop svg {
  width: 14px;
  height: 14px;
}
.route-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.route-distance {
  font-size: 15px;
  font-weight: 600;
  color: #55713e;
}
.route-source {
  font-size: 12px;
  color: #90a07b;
}
.route-map {
  height: 240px;
  border-radius: 8px;
  margin-top: 15px;
  background: #e8eee0;
  isolation: isolate;
  position: relative;
  z-index: 0;
}
.manual-distance {
  margin-top: 14px;
}
.manual-distance summary {
  font-size: 12px;
  color: #929c84;
  cursor: pointer;
}
.manual-distance .field {
  max-width: 220px;
  margin-top: 10px;
}
.trip-cost {
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  padding-top: 13px;
  margin-top: 16px;
  border-top: 1px solid #e8eddf;
  color: #859276;
}
.trip-cost strong {
  font-size: 16px;
  color: #3d5636;
}
.cost-line {
  font-size: 12px;
  color: #8b997c;
  margin-top: 6px;
}
.summary {
  position: sticky;
  top: 22px;
}
.summary h2 {
  font-size: 18px;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  margin-bottom: 15px;
  color: #7c8a71;
}
.summary-line strong {
  color: #445b39;
  font-weight: 550;
  white-space: nowrap;
}
.summary-total {
  border-top: 1px solid #e2e8d7;
  padding-top: 18px;
  margin-top: 18px;
}
.summary-total span {
  font-size: 13px;
  color: #7d8c6e;
}
.summary-total strong {
  display: block;
  font-size: 31px;
  font-weight: 600;
  color: #304a2a;
  letter-spacing: -0.8px;
  margin: 4px 0 0;
}
.summary .btn.primary {
  width: 100%;
  margin-top: 20px;
}
.summary-note {
  font-size: 12px;
  color: #8c9a7c;
  margin: 14px 0 0;
}
.markup-fields {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 8px;
}
.markup-fields select,
.markup-fields input {
  font-size: 13px;
  padding: 9px;
}
.calendar-tools {
  display: flex;
  align-items: center;
  gap: 11px;
}
.zone-panel {
  margin-top: 22px;
}
.zone-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 18px 0;
}
.zone-toolbar select {
  max-width: 150px;
  font-size: 13px;
}
.zone-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 20px;
}
.zone-map {
  height: 430px;
  background: #e8eee0;
  border-radius: 9px;
  isolation: isolate;
}
.zone-instructions {
  font-size: 12px;
  margin: 12px 0 0;
}
.zone-point-list {
  max-height: 430px;
  overflow-y: auto;
  padding-right: 6px;
}
.zone-point {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 7px;
}
.zone-point > span {
  font-size: 12px;
  min-width: 18px;
  color: #87987a;
}
.zone-point input {
  padding: 8px 6px;
  font-size: 12px;
}
.zone-point .icon-btn {
  min-width: 28px;
  min-height: 30px;
  padding: 4px;
}
.zone-vertex {
  border: 2px solid white;
  border-radius: 50%;
  background: #cf4848;
  color: white;
  text-align: center;
  line-height: 20px;
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 1px 5px #16342155;
}
.zone-save-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  border-top: 1px solid #e4ebdb;
  margin-top: 20px;
  padding-top: 18px;
}
.zone-save-actions > span {
  flex: 1;
  font-size: 12px;
}
@media (max-width: 1100px) {
  .zone-editor-grid {
    grid-template-columns: 1fr;
  }
  .zone-point-list {
    max-height: 200px;
  }
}
@media (max-width: 720px) {
  .zone-map {
    height: 340px;
  }
  .zone-save-actions > span {
    flex-basis: 100%;
  }
}
.calendar-views {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  gap: 4px;
  border: 1px solid #dce3d6;
  background: #edf1e7;
  border-radius: 9px;
}
.calendar-views button {
  min-height: 34px;
  padding: 6px 13px;
  border-radius: 6px;
  font-size: 13px;
  color: #7a8a6c;
}
.calendar-views button.selected {
  background: white;
  color: #315030;
  box-shadow: 0 1px 4px #213c2512;
  font-weight: 600;
}
.month-title {
  text-transform: capitalize;
}
.month-weekdays,
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.month-weekdays {
  padding: 10px 0;
  background: #f8faf4;
  color: #8a997c;
  font-size: 13px;
  text-align: center;
  border-bottom: 1px solid #e5eadd;
}
.month-day {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 12px 10px;
  min-height: 112px;
  border-right: 1px solid #e7ecdf;
  border-bottom: 1px solid #e7ecdf;
  text-align: left;
  min-width: 0;
}
.month-day:nth-child(7n) {
  border-right: 0;
}
.month-day:hover {
  background: #f2f6e9;
}
.month-day.other-month {
  background: #fafbf8;
  color: #a6b099;
}
.month-day-number {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 14px;
}
.month-day.is-today .month-day-number {
  background: #224e3a;
  color: white;
}
.month-trucks {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.month-truck {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  background: #e9f0df;
  color: #4e6b3c;
  padding: 5px 7px;
  border-radius: 5px;
  font-size: 12px;
}
.month-truck .app-icon {
  width: 14px;
  height: 14px;
  margin-right: 5px;
}
@media (max-width: 720px) {
  .month-day {
    padding: 7px 3px;
    min-height: 90px;
    gap: 6px;
  }
  .month-day-number {
    font-size: 12px;
    width: 24px;
    height: 24px;
  }
  .month-truck {
    font-size: 11px;
    padding: 4px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .month-truck .app-icon {
    display: none;
  }
  .calendar-views button {
    min-height: 32px;
    padding: 5px 10px;
    font-size: 12px;
  }
}
.calendar-date {
  font-size: 15px;
  font-weight: 600;
}
.calendar-container {
  overflow: auto;
}
.calendar {
  min-width: 800px;
  display: grid;
  grid-template-columns: 175px repeat(24, minmax(32px, 1fr));
  position: relative;
}
.cal-heading {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: subgrid;
  background: #f8faf4;
  border-bottom: 1px solid #e5eadb;
}
.cal-heading > div {
  font-size: 11px;
  color: #8e9b7c;
  text-align: center;
  padding: 13px 0;
  border-left: 1px solid #edf0e7;
}
.cal-heading > div:first-child {
  text-align: left;
  padding-left: 20px;
  font-size: 12px;
}
.cal-row {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1/-1;
  min-height: 85px;
  border-bottom: 1px solid #e9ede1;
}
.cal-body {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1/-1;
  position: relative;
}
.cal-now-overlay {
  position: absolute;
  inset: 0 0 0 175px;
  z-index: 3;
  pointer-events: none;
}
.cal-now-overlay[hidden] {
  display: none;
}
.cal-now-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--now-position);
  width: 2px;
  background: #d34545;
  transform: translateX(-1px);
}
.cal-now-line::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d34545;
}
.cal-now-label {
  position: absolute;
  top: -27px;
  left: clamp(26px, var(--now-position), calc(100% - 26px));
  transform: translateX(-50%);
  padding: 2px 6px;
  border-radius: 4px;
  background: #d34545;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.cal-label {
  padding: 17px 15px 14px 20px;
  font-size: 13px;
  grid-column: 1;
  background: white;
  position: sticky;
  left: 0;
  z-index: 4;
  border-right: 1px solid #e5eadc;
}
.cal-label strong {
  display: block;
  font-size: 13px;
  font-weight: 550;
}
.cal-label small {
  font-size: 11px;
  display: block;
  margin-top: 3px;
}
.cal-track {
  grid-column: 2/-1;
  position: relative;
  display: grid;
  grid-template-columns: subgrid;
  min-height: 85px;
}
.cal-hour {
  grid-row: 1;
  border-left: 1px solid #e5eadb;
  pointer-events: none;
}
.cal-hour:first-child {
  border-left: 0;
}
.cal-event {
  position: absolute;
  top: 16px;
  height: 53px;
  min-width: 5px;
  text-align: left;
  background: #e6eed8;
  border: 1px solid #ccdab8;
  border-left: 3px solid #90ab68;
  border-radius: 5px;
  padding: 6px 8px;
  font-size: 12px;
  color: #4d653c;
  overflow: hidden;
  white-space: nowrap;
}
.cal-event.active {
  background: #fcf0d7;
  border-color: #e8d4a3;
  border-left-color: #c9a45c;
  color: #8c713a;
}
.cal-event.done {
  background: #eaf1e7;
  border-color: #d7e1cd;
  color: #7a8d6a;
}
.cal-event strong {
  display: block;
  font-size: 12px;
}
.cal-event small {
  font-size: 10px;
  color: inherit;
}
.legend {
  display: flex;
  gap: 18px;
  padding: 17px 22px;
  font-size: 12px;
  color: #81916f;
}
.legend span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.legend i {
  height: 9px;
  width: 9px;
  border-radius: 2px;
  background: #d5e3be;
}
.legend i.active {
  background: #efdba9;
}
.legend i.done {
  background: #dbe5d5;
}
.boot {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-size: 35px;
  color: #224c39;
  letter-spacing: -1px;
}
.boot span {
  font-size: 14px;
  color: #889a7c;
  letter-spacing: 0;
  margin-top: 10px;
}
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: #f7f9f3;
}
.auth-visual {
  background: #17392f;
  color: #d5e1c8;
  display: flex;
  flex-direction: column;
  padding: 50px 60px;
  position: relative;
  overflow: hidden;
}
.auth-visual:after {
  content: "";
  position: absolute;
  bottom: -180px;
  right: -180px;
  width: 650px;
  height: 650px;
  border: 1px solid #456746;
  border-radius: 50%;
  box-shadow:
    0 0 0 65px #254a3300,
    0 0 0 66px #31573b,
    0 0 0 130px #244b3300,
    0 0 0 131px #2b5138;
}
.auth-visual .brand {
  margin: 0;
  z-index: 1;
}
.auth-form-wrap {
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}
.auth-form {
  min-width: 0;
  width: 370px;
  max-width: 100%;
}
.auth-form .btn {
  width: 100%;
  margin-top: 8px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: calc(50% + 90px);
  transform: translateX(-50%) translateY(25px);
  opacity: 0;
  pointer-events: none;
  z-index: 200;
  background: #294c32;
  color: white;
  padding: 12px 20px;
  border-radius: 9px;
  box-shadow: 0 7px 30px #1937222a;
  font-size: 14px;
  transition: 0.2s;
  max-width: 90vw;
}
#toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
#toast.error {
  background: #a04f3b;
}
.settings-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.settings-links .btn {
  white-space: normal;
  text-align: center;
}
.no-margin {
  margin: 0 !important;
}
.mobile-only {
  display: none;
}
.order-save-top {
  margin-bottom: 18px;
}
.order-save-top .btn {
  width: 100%;
}
.earnings-controls {
  margin-bottom: 18px;
}
.earnings-periods,
.earnings-date-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.earnings-date-tools {
  margin-top: 18px;
}
.earnings-date-tools .field {
  margin: 0;
  max-width: 180px;
}
.earnings-date-tools .icon-btn {
  align-self: flex-end;
  margin-bottom: 8px;
}
.earnings-range {
  margin: 18px 0 8px;
  font-weight: 600;
}
.earnings-controls > .field {
  margin: 18px 0 0;
  max-width: 440px;
}
.earnings-explanation {
  font-size: 13px;
  margin: 12px 0 20px;
}
.earnings-controls .earnings-explanation {
  margin-bottom: 0;
}
.earnings-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.earnings-stats strong {
  font-size: clamp(22px, 4vw, 32px);
  overflow-wrap: anywhere;
}
.earnings-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 16px;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 18px 24px;
  text-align: left;
  border: 0;
  border-top: 1px solid #e9ede1;
  background: white;
  color: #294439;
  cursor: pointer;
}
.earnings-row:hover {
  background: #f8faf4;
}
.earnings-person {
  min-width: 0;
  overflow-wrap: anywhere;
}
.earnings-person small {
  display: block;
  color: #819082;
  margin-top: 5px;
}
.earnings-row > strong {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.earnings-empty {
  padding: 20px 24px;
}
@media (max-width: 720px) {
  .earnings-row {
    padding: 16px;
    gap: 8px;
    font-size: 14px;
  }
  .earnings-stats {
    gap: 10px;
  }
  .earnings-row > .app-icon {
    width: 16px;
  }
  .earnings-trip {
    grid-template-columns: minmax(0, 1fr) 16px;
  }
  .earnings-trip > strong {
    grid-row: 2;
  }
  .earnings-trip > .app-icon {
    grid-column: 2;
    grid-row: 1 / 3;
  }
}
.loading-inline {
  font-size: 13px;
  color: #829570;
  padding: 6px;
}
.page-error {
  max-width: 600px;
  margin: 100px auto;
  padding: 30px;
}
@media (min-width: 1650px) {
  .content {
    padding-top: 40px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 330px;
  }
  .stats {
    gap: 22px;
  }
  .stat {
    padding: 24px;
  }
  .topbar {
    padding-left: 45px;
    padding-right: 45px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 210px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .content {
    padding: 28px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .editor-grid {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 17px;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat {
    padding: 18px;
  }
  .stat strong {
    font-size: 26px;
  }
  .order-item {
    grid-template-columns: minmax(100px, 2fr) 85px 75px 80px 28px;
  }
  .order-item .unit-cost {
    font-size: 12px;
  }
}
@media (max-width: 980px) {
  .editor-grid {
    grid-template-columns: 1fr;
  }
  .summary {
    position: static;
  }
  .summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .summary-total strong {
    font-size: 29px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .search {
    max-width: none;
    width: 100%;
  }
  .trip-top {
    grid-template-columns: 1fr 1fr;
  }
  .auth-visual {
    padding: 35px;
  }
  .auth-form-wrap {
    padding: 30px;
  }
}
@media (max-width: 720px) {
  .shell {
    display: block;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 245px;
    box-shadow: 20px 0 80px #0002;
  }
  .shell.menu-open .sidebar {
    transform: translateX(0);
  }
  .workspace {
    width: 100%;
  }
  .topbar {
    height: 62px;
    padding: 0 18px;
    gap: 9px;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .breadcrumb {
    margin-right: auto;
    font-size: 12px;
    gap: 8px;
  }
  .breadcrumb .root-crumb {
    display: none;
  }
  .top-meta {
    font-size: 12px;
    gap: 8px;
  }
  .content {
    padding: 25px 17px 35px;
  }
  h1 {
    font-size: 26px;
  }
  .page-head {
    align-items: flex-start;
    margin-bottom: 22px;
    gap: 12px;
  }
  .page-head p {
    font-size: 12px;
    max-width: 220px;
  }
  .page-head .btn {
    padding: 10px 12px;
    font-size: 12px;
  }
  .page-head .head-actions {
    justify-content: flex-end;
  }
  .stats {
    gap: 11px;
    margin-bottom: 20px;
  }
  .stat {
    padding: 16px;
    min-height: 130px;
  }
  .stat-label {
    font-size: 12px;
    margin-bottom: 13px;
  }
  .stat strong {
    font-size: 25px;
  }
  .stat small {
    font-size: 11px;
  }
  .panel-head {
    padding: 17px;
  }
  .panel-head h2 {
    font-size: 17px;
  }
  .panel.pad {
    padding: 19px;
  }
  .dashboard-grid {
    gap: 18px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .grid2 {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .price-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .modal-backdrop {
    padding: 12px;
  }
  .modal {
    max-height: 95dvh;
    border-radius: 12px;
  }
  .modal-head,
  .modal-body {
    padding: 19px;
  }
  .modal-footer {
    padding: 15px 19px;
    flex-wrap: wrap;
  }
  .order-item {
    grid-template-columns: 1fr 90px 30px;
    gap: 8px;
  }
  .order-item .product-choice {
    grid-column: 1/3;
  }
  .order-item .remove-item {
    grid-column: 3;
    grid-row: 1;
  }
  .order-item .unit-cost {
    grid-column: 3;
    grid-row: 2;
    font-size: 11px;
    text-align: left;
    overflow: visible;
    width: 65px;
    transform: translateX(-25px);
  }
  .order-item .item-origin {
    margin-top: 4px;
  }
  .trip-body {
    padding: 14px;
  }
  .trip-top {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .trip-head {
    padding: 11px 14px;
  }
  .trip-head strong {
    font-size: 13px;
  }
  .trip-body .grid2 {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .trip-body input[type="datetime-local"] {
    font-size: 14px;
    min-height: 44px;
  }
  .trip-body .grid2 .field {
    margin-bottom: 13px;
  }
  .allocation {
    font-size: 12px;
  }
  .allocation input[type="number"] {
    width: 80px;
  }
  .auth {
    min-height: 100svh;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
  }
  .auth-visual {
    padding: 27px;
    min-height: 0;
  }
  .auth-visual .brand {
    font-size: 25px;
  }
  .auth-visual:after {
    width: 320px;
    height: 320px;
    right: -100px;
    bottom: -160px;
  }
  .auth-form-wrap {
    padding: 35px 25px;
    align-items: center;
    align-items: safe center;
  }
  #toast {
    left: 50%;
    width: max-content;
    font-size: 13px;
  }
  .calendar-tools {
    gap: 5px;
  }
  .calendar-date {
    font-size: 13px;
  }
  .calendar-tools .btn {
    padding: 6px 9px;
    font-size: 12px;
  }
  .calendar-tools input {
    font-size: 12px;
    max-width: 140px;
  }
  .hide-mobile {
    display: none;
  }
  .mobile-only {
    display: block;
  }
  .summary-total {
    gap: 12px;
  }
  .filters {
    gap: 4px;
  }
  .filter {
    padding: 7px 10px;
    font-size: 12px;
  }
  .address-search .btn svg {
    width: 17px;
    height: 17px;
  }
  .dashboard-note {
    padding: 20px;
  }
  .toolbar {
    gap: 12px;
  }
  .head-actions .btn svg {
    height: 16px;
    width: 16px;
  }
}
@media print {
  .sidebar,
  .topbar,
  .head-actions,
  .btn,
  .icon-btn,
  .summary-note {
    display: none !important;
  }
  .shell {
    display: block;
  }
  .workspace {
    width: 100%;
  }
  .content {
    padding: 0;
  }
  .editor-grid {
    display: block;
  }
  .summary {
    position: static;
    margin-top: 20px;
  }
  .panel {
    break-inside: avoid;
  }
  .trip-card {
    break-inside: avoid;
  }
  .route-map {
    display: none;
  }
  .field input,
  .field select,
  .field textarea {
    border: 0;
    padding: 3px;
  }
  body {
    background: white;
  }
}

.sidebar {
  overflow-y: auto;
}
.sidebar > .nav,
.sidebar-bottom {
  flex-shrink: 0;
}
@media (max-width: 720px) {
  .order-item .unit-cost {
    grid-column: 1/3;
    grid-row: 3;
    transform: none;
    width: auto;
    text-align: left;
    padding: 0;
    font-size: 13px;
  }
  .order-item .unit-cost small {
    display: inline !important;
    margin-left: 5px;
  }
  .order-item .item-origin {
    grid-row: 4;
  }
  .sidebar {
    height: 100dvh;
  }
}

.nav-scrim,
.mobile-order-list {
  display: none;
}
@media (max-width: 720px) {
  .sidebar {
    box-shadow: none;
  }
  .shell.menu-open .sidebar {
    box-shadow: 20px 0 80px #0002;
  }
  .shell.menu-open .nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: #102c2266;
    z-index: 35;
    width: 100%;
    height: 100dvh;
    border-radius: 0;
  }
  .orders-desktop {
    display: none;
  }
  .mobile-order-list {
    display: block;
  }
  .mobile-order-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    text-align: left;
    padding: 18px 17px;
    border-bottom: 1px solid #e9ede3;
    gap: 9px;
  }
  .mobile-order-card:last-child {
    border: 0;
  }
  .mobile-order-card:hover {
    background: #f8faf5;
  }
  .mobile-order-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #526d42;
  }
  .mobile-order-name {
    font-weight: 600;
    font-size: 15px;
  }
  .mobile-order-address {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 13px;
    color: #7c8b6f;
  }
  .mobile-order-address svg {
    width: 15px;
    height: 15px;
    margin-top: 2px;
  }
  .mobile-order-meta {
    font-size: 12px;
    color: #8b987f;
  }
  .mobile-order-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 14px;
    font-size: 12px;
    color: #87967b;
    padding-top: 7px;
  }
  .mobile-order-bottom strong {
    white-space: nowrap;
    color: #3b5432;
    font-size: 15px;
    font-weight: 600;
  }
  .mobile-order-bottom > span {
    max-width: 55%;
  }
}

.dashboard-grid table {
  table-layout: fixed;
}
.dashboard-grid th,
.dashboard-grid td {
  padding-left: 17px;
  padding-right: 17px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.dashboard-grid th:nth-child(1) {
  width: 27%;
}
.dashboard-grid th:nth-child(2) {
  width: 31%;
}
.dashboard-grid th:nth-child(3) {
  width: 19%;
}
.dashboard-grid th:nth-child(4) {
  width: 23%;
}
.dashboard-grid td:last-child strong {
  white-space: nowrap;
  font-size: 13px;
}

.sidebar > .brand {
  margin-bottom: 32px;
}

.contact-person {
  border: 1px solid #e2e8dc;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
}
.contact-person-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: #849577;
  font-size: 12px;
}
.contact-person-head .icon-btn {
  min-width: 32px;
  min-height: 32px;
  padding: 6px;
}
.contact-person .grid2 .field {
  margin-bottom: 0;
}
@media (max-width: 720px) {
  .contact-person .grid2 .field:first-child {
    margin-bottom: 14px;
  }
}
.fuel-note {
  font-size: 12px;
  line-height: 1.6;
  margin: 8px 0 12px;
  overflow-wrap: anywhere;
}
.fuel-plate {
  display: block;
  font-size: 11px;
  color: var(--muted, #6b7871);
}
.vehicle-model-results:not([hidden]) {
  display: flex;
  flex-direction: column;
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid #dce5d2;
  border-radius: 8px;
  margin-top: 6px;
  padding: 4px;
}
.vehicle-model-option {
  display: block;
  width: 100%;
  border: 0;
  background: white;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  padding: 10px;
  border-radius: 5px;
}
.vehicle-model-option:hover,
.vehicle-model-option:focus,
.vehicle-model-option[aria-selected="true"] {
  background: #eef4e8;
}
.vehicle-model-option strong {
  display: block;
  font-size: 13px;
}
.vehicle-model-option small {
  display: block;
  font-size: 12px;
  color: #657364;
}
.selected-vehicle-model {
  font-size: 13px;
  line-height: 1.6;
  margin: 10px 0 14px;
  overflow-wrap: anywhere;
}
.model-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.trip-time-error {
  color: #a4352b;
  font-size: 13px;
  margin: 8px 0 12px;
}
.trip-time-error[hidden] {
  display: none;
}
.manual-travel-time {
  max-width: 340px;
}
.cargo-summary {
  background: #f4f7f1;
  border: 1px solid #dce4d4;
  border-radius: 10px;
  padding: 16px;
  margin: 16px 0;
}
.cargo-summary h4 { margin: 0 0 12px; }
.cargo-row { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 8px 0; font-size: 13px; }
.cargo-row strong { min-width: 65px; }
.cargo-exceeded { color: #ad302a; }
.stat.featured select { margin: 10px 0; font-size: 13px; padding: 8px; min-width: 0; width: 100%; }
.unit-price .field { margin-top: 12px; margin-bottom: 0; font-size: 12px; }

/* Preserve Stepa identity. */
.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: #d7ed91;
  border-radius: 9px;
  color: #224734;
}
.setup-command {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 12px;
  border: 1px solid #dce4d9;
  border-radius: 8px;
  background: white;
}
.access-page-head, .driver-account, .driver-controls { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.access-page-head { margin-bottom:20px; }
.driver-shell { max-width:1100px; margin:auto; padding:24px; }
.driver-shell > header { border-bottom:1px solid #dce4d9; padding-bottom:20px; }
.driver-brand { color:#25463b; margin:0; }
.driver-controls { margin-bottom:20px; justify-content:flex-start; }
.driver-controls .field { margin:0; min-width:170px; }
.driver-trip-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr)); gap:20px; }
.driver-stop { padding:9px 0; border-bottom:1px solid #eef1ea; overflow-wrap:anywhere; }
.driver-stop strong, .driver-stop span, .driver-schedule small { display:block; }
.driver-schedule small { color:#7d8d78; margin-top:6px; }
.driver-trip > .btn { margin-top:20px; }
.driver-trip .access-page-head h2 { margin:0; }
.driver-trip ul { padding-left:20px; }
@media(max-width:560px) {
  .driver-shell { padding:16px; }
  .driver-account { width:100%; }
  .driver-controls .field { min-width:0; width:100%; }
  .driver-trip-list { grid-template-columns:1fr; }
}
.brand-mark svg {
  width: 23px;
  height: 23px;
}
