@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap");
:root {
  font-family: var(--body-font);
  font-size: 14px;
  color: var(--ink);
  background: var(--paper);
  --navy: var(--nav-background);
  --muted: var(--text-muted);
  --line: var(--border);
  --lime: var(--accent);
  --green: var(--success-ink);
  --radius: 13px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--focus);
}
a {
  color: inherit;
}
svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--heading-font);
}
h1 {
  font-size: 32px;
  font-weight: 750;
  letter-spacing: -1.25px;
  margin: 8px 0 10px;
}
h2 {
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 18px 0 10px;
}
p {
  line-height: 1.65;
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.eyebrow {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}
small {
  font-size: 11px;
  color: var(--muted);
}
.skip {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 10;
  padding: 14px;
  background: var(--surface);
}
.skip:focus {
  top: 10px;
}
#sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 248px;
  background: var(--navy);
  color: var(--nav-ink);
  padding: 29px 18px 15px;
  overflow-y: auto;
  z-index: 5;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: #fff;
  font-family: var(--heading-font);
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -1px;
  padding: 0 9px;
}
.brand-mark {
  display: grid;
  place-items: center;
  background: var(--lime);
  color: var(--navy);
  width: 32px;
  height: 35px;
  border-radius: 9px;
  transform: rotate(-7deg);
}
.brand-mark svg {
  transform: rotate(7deg);
  width: 22px;
}
.brand-caption {
  display: block;
  font-family: var(--body-font);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--nav-muted);
  margin-top: 4px;
}
.company-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--nav-border);
  border-radius: 9px;
  padding: 13px 11px;
  margin: 33px 0 20px;
}
.company-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--nav-border);
  border-radius: 7px;
  color: var(--lime);
  flex-shrink: 0;
}
.company-switch strong {
  font-size: 10px;
  display: block;
  color: var(--nav-strong);
  line-height: 1.5;
}
.company-switch small {
  font-size: 9px;
  display: block;
  color: var(--nav-muted);
  margin-top: 4px;
}
.nav-caption {
  font-size: 8px;
  letter-spacing: 1.7px;
  font-weight: 600;
  color: var(--nav-muted);
  margin: 20px 12px 10px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  padding: 11px 12px;
  margin: 2px 0;
  text-decoration: none;
  font-size: 12px;
  transition: background 0.15s;
  color: var(--nav-ink);
}
.nav-item svg {
  width: 17px;
  height: 17px;
}
.nav-item:hover {
  background: var(--nav-hover);
  color: #fff;
}
.nav-item.active {
  background: var(--lime);
  color: var(--accent-ink);
  font-weight: 650;
}
.nav-count {
  margin-left: auto;
  font-size: 9px;
  background: #ffffff15;
  padding: 3px 6px;
  border-radius: 4px;
}
.nav-item.active .nav-count {
  background: #19333215;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 30px 12px 10px;
}
.demo-dot {
  font-size: 8px;
  color: var(--accent-text);
  letter-spacing: 1.4px;
}
.demo-dot:before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 7px;
}
.sidebar-bottom p {
  font-family: var(--heading-font);
  color: var(--nav-strong);
  font-size: 17px;
  margin: 14px 0;
  line-height: 1.45;
  letter-spacing: -0.3px;
}
.reset-button,
.back-link {
  background: none;
  border: 0;
  color: var(--nav-ink);
  font-size: 10px;
  padding: 0;
  text-decoration: none;
  display: block;
  margin-top: 10px;
}
.reset-button:hover,
.back-link:hover {
  color: var(--accent);
}
.workspace {
  margin-left: 248px;
  min-height: 100vh;
}
.topbar {
  height: 77px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 37px;
  gap: 15px;
}
.breadcrumb {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--text-muted);
}
.breadcrumb strong {
  color: var(--ink);
  font-weight: 550;
}
.breadcrumb > span {
  color: var(--text-muted);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.sandbox {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-text);
  font-size: 10px;
}
.sandbox i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-text);
}
.avatar {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--avatar-background);
  color: var(--avatar-ink);
  font-size: 10px;
  font-weight: 650;
  flex-shrink: 0;
  border: 2px solid var(--surface);
}
.avatar.small {
  width: 27px;
  height: 27px;
  font-size: 8px;
  background: var(--blue-background);
  color: var(--blue-ink);
}
.crew-stack {
  display: flex;
  align-items: center;
}
.crew-stack .avatar + .avatar {
  margin-left: -7px;
}
.avatar.large {
  width: 55px;
  height: 55px;
  font-size: 16px;
  border: 0;
}
.avatar.plumbing {
  background: var(--purple-background);
  color: var(--purple-ink);
}
.avatar.electrical {
  background: var(--soft-background);
  color: var(--soft-ink);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  font-size: 11px;
  font-weight: 550;
  padding: 10px 15px;
  min-height: 35px;
  transition:
    background 0.15s,
    transform 0.15s;
}
.button:hover {
  background: var(--row-hover);
  border-color: var(--border);
}
.button.primary {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
  padding: 12px 18px;
  box-shadow: 0 2px 3px #122c3214;
}
.button.primary:hover {
  background: var(--button-hover);
}
.button.compact {
  padding: 7px 11px;
  font-size: 10px;
  min-height: 29px;
}
.button.dark {
  background: var(--button-primary);
  border-color: var(--button-primary);
  color: #fff;
}
.button.danger {
  color: var(--danger-ink);
  background: var(--danger-background);
  border-color: var(--danger-border);
}
.icon-button {
  border: 0;
  background: transparent;
  width: 32px;
  height: 32px;
  padding: 0;
  color: var(--text-muted);
  font-size: 19px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}
.icon-button:hover {
  background: var(--row-hover);
  border-radius: 6px;
}
.mobile-menu {
  display: none;
}
.text-button,
.cell-link {
  border: 0;
  background: none;
  color: var(--accent-text);
  text-decoration: none;
  font-size: 11px;
  font-weight: 550;
  padding: 0;
  cursor: pointer;
}
.text-button:hover,
.cell-link:hover {
  color: var(--accent-text);
}
.cell-link {
  font-size: 12px;
  text-align: left;
  font-weight: 650;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
#main {
  max-width: 1600px;
  margin: 0 auto;
  padding: 34px 37px 35px;
  outline: 0;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 27px;
}
.page-heading p {
  font-size: 12px;
  color: var(--text-muted);
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 25px;
}
.metrics.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.metric {
  padding: 20px 21px 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
}
.metric > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-muted);
  gap: 8px;
}
.metric-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--soft-background);
  color: var(--soft-ink);
}
.metric-icon svg {
  width: 15px;
  height: 15px;
}
.metric > strong {
  display: block;
  font-family: var(--heading-font);
  font-size: 29px;
  letter-spacing: -1px;
  font-weight: 750;
  margin: 12px 0 10px;
}
.metric small {
  display: block;
  font-size: 9px;
  color: var(--text-muted);
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(270px, 1fr);
  gap: 22px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 22px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
  min-height: 64px;
}
.panel-head .muted {
  font-size: 9px;
}
.panel-head .count {
  font-size: 10px;
  color: var(--text-muted);
}
.dispatch-preview {
  padding: 0 21px;
}
.dispatch-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--border);
  padding: 17px 0;
  text-align: left;
  min-height: 81px;
  color: inherit;
}
.dispatch-row:hover {
  background: var(--row-hover);
}
.dispatch-row:last-child {
  border-bottom: 0;
}
.job-time {
  width: 65px;
  flex-shrink: 0;
  color: var(--ink);
  font-size: 10px;
  font-weight: 650;
}
.job-time small {
  display: block;
  font-weight: 400;
  font-size: 9px;
  margin-top: 6px;
}
.trade-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  font-size: 20px;
  flex-shrink: 0;
}
.trade-mark.electrical {
  background: var(--soft-background);
  color: var(--soft-ink);
}
.trade-mark.plumbing {
  background: var(--blue-background);
  color: var(--blue-ink);
}
.dispatch-title {
  flex: 1;
  min-width: 0;
}
.dispatch-title strong {
  display: block;
  font-size: 11px;
  font-weight: 650;
}
.dispatch-title small {
  display: block;
  font-size: 9px;
  margin-top: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row-arrow {
  color: var(--text-muted);
  font-size: 16px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 8px;
  padding: 5px 8px;
  border-radius: 5px;
  background: var(--surface-muted);
  color: var(--text-muted);
  white-space: nowrap;
  font-weight: 550;
}
.badge i {
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
}
.badge.in-progress,
.badge.accepted,
.badge.approved,
.badge.paid,
.badge.ready,
.badge.active,
.badge.completed {
  color: var(--success-ink);
  background: var(--success-background);
}
.badge.scheduled,
.badge.sent {
  color: var(--blue-ink);
  background: var(--blue-background);
}
.badge.urgent,
.badge.overdue,
.badge.declined,
.badge.inactive {
  color: var(--danger-ink);
  background: var(--danger-background);
}
.badge.pending,
.badge.maintenance,
.badge.partially-paid {
  color: var(--warning-ink);
  background: var(--warning-background);
}
.attention-list {
  padding: 0 21px;
}
.attention-list > button {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--border);
  padding: 17px 0;
  text-align: left;
  color: inherit;
}
.attention-list > button:hover {
  background: var(--row-hover);
}
.attention-list > button:last-child {
  border-bottom: 0;
}
.attention-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  flex-shrink: 0;
}
.attention-icon svg {
  width: 17px;
  height: 17px;
}
.amber {
  background: var(--warning-background);
  color: var(--warning-ink);
}
.red {
  background: var(--danger-background);
  color: var(--danger-ink);
}
.blue {
  background: var(--blue-background);
  color: var(--blue-ink);
}
.attention-list strong {
  font-size: 11px;
  display: block;
  font-weight: 550;
}
.attention-list small {
  display: block;
  font-size: 9px;
  margin-top: 5px;
}
.attention-list b {
  margin-left: auto;
  font-weight: 400;
  color: var(--text-muted);
}
.spotlight {
  padding: 26px 24px;
  background: var(--spotlight-background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
}
.spotlight:after {
  content: "↗";
  position: absolute;
  right: 17px;
  top: 47px;
  color: var(--spotlight-decoration);
  font-size: 102px;
  line-height: 1;
  pointer-events: none;
}
.spotlight .eyebrow {
  font-size: 8px;
  color: var(--text-muted);
}
.spotlight h2 {
  font-size: 25px;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: -0.8px;
  margin: 14px 0;
}
.spotlight p {
  font-size: 11px;
  max-width: 225px;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.spotlight button {
  position: relative;
  z-index: 1;
}
.activity-list {
  padding: 9px 22px;
}
.activity-list > div {
  display: flex;
  gap: 10px;
  padding: 11px 0;
}
.activity-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success-background);
  margin-top: 5px;
  flex-shrink: 0;
}
.activity-list p {
  font-size: 10px;
  line-height: 1.5;
}
.activity-list small {
  display: block;
  font-size: 8px;
  margin-top: 5px;
  color: var(--text-muted);
}
.chart-total {
  padding: 20px 23px;
}
.chart-total strong {
  display: block;
  font-size: 27px;
  font-family: var(--heading-font);
  font-weight: 750;
  letter-spacing: -1px;
}
.chart-total span {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 6px;
  display: block;
}
.bar-chart {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  height: 190px;
  gap: 18px;
  padding: 22px 30px 25px;
  background: repeating-linear-gradient(
    to top,
    transparent 0 43px,
    var(--chart-grid) 43px 44px
  );
  margin: 0 20px 20px;
}
.bar-chart > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}
.bar-chart i {
  display: block;
  width: 100%;
  max-width: 48px;
  border-radius: 5px 5px 0 0;
  background: var(--chart-primary);
  min-height: 3px;
}
.bar-chart > div:nth-child(2n) i {
  background: var(--chart-secondary);
}
.bar-chart small {
  margin-top: 11px;
  font-size: 9px;
}
.bar-value {
  font-size: 8px;
  color: var(--text-muted);
  margin-bottom: 5px;
}
footer {
  padding: 0 37px 25px;
  font-size: 9px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.table-wrap {
  width: 100%;
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  text-align: left;
}
th {
  background: var(--surface-muted);
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 550;
  padding: 13px 21px;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
td {
  padding: 17px 21px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  line-height: 1.5;
}
tbody tr:hover {
  background: var(--row-hover);
}
tr:last-child td {
  border: 0;
}
td strong {
  font-size: 11px;
  font-weight: 600;
}
td small {
  display: block;
  font-size: 9px;
  margin-top: 4px;
  max-width: 225px;
}
td .button {
  white-space: nowrap;
}
.list-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 21px;
  flex-wrap: wrap;
}
.list-toolbar > .muted {
  margin-left: auto;
  font-size: 9px;
}
.search {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  min-width: 240px;
  margin: 0;
  background: var(--surface);
}
.search span {
  font-size: 19px;
  color: var(--text-muted);
}
.search input {
  border: 0;
  max-width: 310px;
  padding: 10px 0;
  font-size: 11px;
  margin: 0;
  outline: 0;
}
.list-toolbar select {
  width: auto;
  min-width: 115px;
  margin: 0;
  font-size: 11px;
}
.empty {
  padding: 35px !important;
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
  line-height: 1.7;
}
.dispatch-toolbar {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 23px;
  flex-wrap: wrap;
}
.segmented {
  display: flex;
  gap: 3px;
  background: var(--soft-background);
  padding: 4px;
  border-radius: 8px;
}
.segmented .button {
  background: transparent;
  border: 0;
  min-height: 30px;
  padding: 7px 20px;
  color: var(--text-muted);
}
.segmented .selected {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 4px #26332914;
}
.date-controls {
  display: flex;
  align-items: center;
  gap: 7px;
}
.date-controls input {
  margin: 0;
  width: 145px;
  font-size: 11px;
}
.dispatch-toolbar > .muted {
  margin-left: auto;
}
.dispatch-board:not(.week) .board-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 22px;
}
.dispatch-board.week {
  display: grid;
  grid-template-columns: repeat(7, minmax(170px, 1fr));
  overflow: auto;
  gap: 10px;
}
.dispatch-board.week .panel-head {
  padding: 16px 12px;
  display: block;
}
.dispatch-board.week h2 {
  font-size: 11px;
  margin-bottom: 6px;
}
.dispatch-board.week .board-cards {
  padding: 10px;
}
.job-card {
  padding: 18px 17px 14px;
  border: 1px solid var(--border);
  border-top: 3px solid var(--soft-border);
  border-radius: 8px;
  background: var(--row-hover);
}
.job-card.plumbing {
  border-top-color: #aec2dc;
  background: var(--row-hover);
}
.job-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: var(--text-muted);
}
.job-card-title {
  display: block;
  border: 0;
  background: none;
  text-align: left;
  color: var(--ink);
  font-weight: 650;
  font-size: 13px;
  line-height: 1.5;
  padding: 0;
  margin: 14px 0 6px;
}
.job-card-title:hover {
  color: var(--accent-text);
}
.job-card p {
  font-size: 11px;
  color: var(--text-muted);
}
.address {
  display: block;
  font-size: 9px;
  margin-top: 7px;
}
.job-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 20px 0 13px;
  padding-top: 13px;
  border-top: 1px solid var(--border);
  font-size: 9px;
  color: var(--text-muted);
}
.queue {
  padding: 0 23px;
}
.queue > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  gap: 15px;
}
.queue > div:last-child {
  border: 0;
}
.queue strong {
  font-size: 12px;
  display: block;
  font-weight: 600;
}
.queue small {
  font-size: 10px;
  display: block;
  margin-top: 6px;
}
.resource-summary {
  display: flex;
  align-items: center;
  gap: 17px;
  color: var(--text-muted);
  font-size: 10px;
  flex-wrap: wrap;
}
.legend {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 5px;
}
.legend.electrical {
  background: var(--chart-primary);
}
.legend.plumbing {
  background: #a9c0dc;
}
.resource-summary span:last-child {
  margin-left: auto;
}
.team-grid,
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.employee-card {
  padding: 24px;
  margin: 0;
}
.employee-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.employee-card h2 {
  font-size: 17px;
  margin-bottom: 6px;
}
.employee-card p {
  font-size: 11px;
  color: var(--text-muted);
}
.employee-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 19px 14px;
  margin: 22px 0;
  font-size: 10px;
  color: var(--text-muted);
}
.employee-details strong {
  display: block;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  margin-top: 6px;
}
.fleet-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}
.vehicle-card {
  margin-bottom: 18px;
}
.vehicle-card .panel-head {
  padding: 19px 17px;
}
.vehicle-card h3,
.vehicle-card p,
.vehicle-card > .employee-details,
.vehicle-card > .text-button {
  margin-left: 18px;
  margin-right: 18px;
}
.vehicle-card h3 {
  font-size: 14px;
}
.vehicle-card p {
  font-size: 10px;
  color: var(--text-muted);
}
.vehicle-card > .text-button {
  margin-bottom: 20px;
}
.vehicle-illustration {
  height: 110px;
  display: grid;
  place-items: center;
  background: var(--vehicle-background);
  color: var(--soft-ink);
  margin: 15px;
  border-radius: 8px;
}
.vehicle-illustration svg {
  width: 75px;
  height: 75px;
  stroke-width: 1;
}
.equipment-list {
  padding: 4px 22px;
}
.equipment-list > div {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.equipment-list > div:last-child {
  border: 0;
}
.equipment-list strong {
  display: block;
  font-size: 12px;
}
.equipment-list small {
  display: block;
  margin-top: 6px;
  font-size: 10px;
}
.equipment-list .badge {
  margin-left: auto;
}
.panel-note {
  padding: 0 22px 20px;
  font-size: 11px;
  color: var(--text-muted);
}
.report-grid,
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.status-chart {
  padding: 21px;
}
.status-chart > div {
  display: grid;
  grid-template-columns: 100px 1fr 20px;
  gap: 16px;
  align-items: center;
  font-size: 11px;
  margin: 19px 0;
  color: var(--text-muted);
}
.status-chart i {
  height: 9px;
  border-radius: 7px;
  background: linear-gradient(
    to right,
    var(--chart-primary) var(--bar),
    var(--chart-grid) var(--bar)
  );
}
.status-chart strong {
  font-weight: 550;
}
.positive {
  color: var(--success-ink);
}
.negative {
  color: var(--danger-ink);
}
.report-note {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.8;
}
.settings-grid form,
.settings-info {
  padding: 25px;
}
.settings-info h3 {
  margin-top: 0;
}
.settings-info p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 15px 0;
}
.settings-info .actions {
  margin-top: 25px;
}
label {
  display: block;
  font-size: 11px;
  font-weight: 550;
  color: var(--text-muted);
  margin: 0 0 15px;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 11px 12px;
  margin-top: 8px;
  color: var(--ink);
  background: var(--surface);
  font-size: 12px;
}
textarea {
  resize: vertical;
  min-height: 65px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--focus);
  border-color: var(--focus);
}
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--focus);
  margin: 0;
  flex-shrink: 0;
}
.tour-banner {
  display: flex;
  gap: 18px;
  align-items: center;
  background: var(--soft-background);
  border: 1px solid var(--soft-border);
  padding: 16px 20px;
  border-radius: 10px;
  margin-bottom: 25px;
}
.tour-number {
  font-family: var(--heading-font);
  font-size: 18px;
  color: var(--text-muted);
  white-space: nowrap;
}
.tour-banner strong {
  font-size: 12px;
  display: block;
  color: var(--ink);
}
.tour-banner span:not(.tour-number) {
  font-size: 11px;
  display: block;
  line-height: 1.6;
  margin-top: 3px;
  color: var(--text-muted);
}
.tour-actions {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-left: auto;
  flex-shrink: 0;
}
dialog {
  width: min(600px, calc(100vw - 32px));
  max-height: 90vh;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0;
  color: var(--ink);
  box-shadow: 0 20px 100px #0b231a30;
  overflow: auto;
}
dialog.wide {
  width: min(810px, calc(100vw - 32px));
}
dialog::backdrop {
  background: #0c222b77;
  backdrop-filter: blur(4px);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
}
.modal-head .eyebrow {
  font-size: 8px;
}
.modal-head h2 {
  font-size: 19px;
  margin-top: 7px;
  line-height: 1.5;
}
.close-button {
  font-size: 25px;
}
dialog form {
  padding: 23px 28px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.full {
  grid-column: 1/-1;
}
.modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 23px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.form-error {
  padding: 12px 16px;
  color: var(--danger-ink);
  background: var(--danger-background);
  border: 1px solid var(--danger-border);
  border-radius: 7px;
  font-size: 12px;
  margin-bottom: 20px;
}
.form-error[hidden] {
  display: none;
}
.quote-line {
  display: grid;
  grid-template-columns: 1fr 65px 95px 30px;
  gap: 10px;
  align-items: center;
}
.quote-line .icon-button {
  margin-top: 10px;
}
.form-grid .panel-head {
  padding: 5px 0 10px;
  border: 0;
}
.quote-preview {
  padding: 7px 0;
  font-size: 11px;
  color: var(--text-muted);
}
.quote-preview strong {
  display: block;
  font-size: 23px;
  font-family: var(--heading-font);
  color: var(--ink);
  margin-top: 7px;
}
.document,
.job-detail {
  padding: 24px 28px;
  font-size: 12px;
}
.document p,
.job-detail p {
  margin: 12px 0;
  color: var(--text-muted);
}
.document-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}
.document-heading h3 {
  font-size: 20px;
  margin: 0 0 10px;
}
.document-heading .badge {
  margin-top: 5px;
}
.document-totals {
  max-width: 300px;
  margin: 24px 0 24px auto;
}
.document-totals > span {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  color: var(--text-muted);
  font-size: 12px;
}
.document-totals > span:last-child {
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
  margin-top: 6px;
  padding-top: 14px;
}
.document-totals strong {
  color: var(--ink);
}
.detail-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--soft-background);
  border: 1px solid var(--soft-border);
  border-radius: 9px;
  padding: 20px;
  gap: 21px;
  margin: 20px 0;
}
.detail-facts small {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
}
.detail-facts strong {
  display: block;
  font-size: 12px;
  color: var(--ink);
  margin-top: 7px;
}
.checklist {
  display: grid;
  gap: 10px;
  padding: 12px 0;
}
.checklist label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-weight: 450;
  font-size: 12px;
}
.crew-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.crew-options label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  border: 1px solid var(--border);
  padding: 12px;
  border-radius: 7px;
}
.crew-options small {
  display: block;
  font-size: 10px;
  margin-top: 5px;
}
fieldset {
  border: 0;
  padding: 10px 0;
  margin: 0;
}
legend {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  padding: 0;
}
.modal-head .close-button {
  flex-shrink: 0;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: calc(50% + 124px);
  transform: translate(-50%, 20px);
  background: var(--button-primary);
  color: white;
  font-size: 12px;
  line-height: 1.65;
  padding: 13px 23px;
  border-radius: 9px;
  box-shadow: 0 5px 20px #23332120;
  opacity: 0;
  pointer-events: none;
  max-width: min(600px, calc(100vw - 30px));
  transition:
    opacity 0.15s,
    transform 0.15s;
  z-index: 20;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (min-width: 1550px) {
  .dispatch-row {
    padding: 20px 0;
  }
  .dispatch-title strong {
    font-size: 13px;
  }
  .dispatch-title small {
    font-size: 11px;
  }
  .job-time {
    font-size: 12px;
  }
  .dashboard-grid {
    grid-template-columns: 2fr 1fr;
  }
  .attention-list strong {
    font-size: 12px;
  }
  .attention-list small {
    font-size: 11px;
  }
}
@media (max-width: 1250px) {
  #sidebar {
    width: 220px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .workspace {
    margin-left: 220px;
  }
  #main {
    padding: 28px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .metrics {
    gap: 12px;
  }
  .metric {
    padding: 16px;
  }
  .metric > strong {
    font-size: 24px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
    gap: 16px;
  }
  .dispatch-row {
    gap: 9px;
  }
  .dispatch-row .crew-stack {
    display: none;
  }
  .dispatch-preview {
    padding: 0 17px;
  }
  .dispatch-title small {
    max-width: 190px;
  }
  .fleet-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  #toast {
    left: calc(50% + 110px);
  }
  footer {
    padding-left: 24px;
    padding-right: 24px;
  }
}
@media (max-width: 1050px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-grid > div:last-child {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .dashboard-grid > div:last-child > .panel:last-child {
    grid-column: 1/-1;
  }
  .dashboard-grid > div:last-child .panel,
  .spotlight {
    margin-bottom: 0;
  }
  .dispatch-row .crew-stack {
    display: flex;
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dispatch-board:not(.week) .board-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  footer {
    display: block;
    line-height: 1.8;
  }
  footer span {
    display: block;
  }
}
@media (max-width: 800px) {
  #sidebar {
    width: 220px;
    transform: translateX(-100%);
    transition: transform 0.2s;
    box-shadow: 0 0 40px #122a3320;
  }
  #sidebar.open {
    transform: translateX(0);
  }
  .workspace {
    margin-left: 0;
  }
  .mobile-menu {
    display: flex;
  }
  .topbar {
    height: 65px;
    padding: 0 18px;
    justify-content: flex-start;
  }
  .top-actions {
    margin-left: auto;
    gap: 12px;
  }
  .top-actions .sandbox {
    display: none;
  }
  .breadcrumb {
    font-size: 10px;
  }
  #main {
    padding: 24px 18px;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .metric > strong {
    font-size: 27px;
  }
  .metrics.three {
    grid-template-columns: repeat(3, 1fr);
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading h1 {
    font-size: 28px;
  }
  .page-heading p {
    max-width: 350px;
    font-size: 11px;
  }
  .page-heading > .button {
    margin-top: 20px;
  }
  .report-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .tour-banner {
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    flex-wrap: wrap;
  }
  .tour-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .tour-number {
    font-size: 14px;
  }
  #toast {
    left: 50%;
  }
  .list-toolbar > .muted {
    display: none;
  }
  footer {
    padding: 0 18px 22px;
  }
  .brand {
    font-size: 24px;
  }
  .dispatch-toolbar > .muted {
    display: none;
  }
}
@media (max-width: 520px) {
  .top-actions > .button {
    font-size: 9px;
    padding: 6px;
  }
  .top-actions > .avatar {
    display: none;
  }
  .metrics.three {
    grid-template-columns: 1fr;
  }
  .metrics.three .metric {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: center;
  }
  .metrics.three .metric > strong {
    margin: 0;
    font-size: 24px;
    text-align: right;
  }
  .metrics.three .metric small {
    grid-column: 1/-1;
  }
  .metric {
    padding: 16px 13px;
  }
  .metric > div {
    font-size: 10px;
  }
  .metric > strong {
    font-size: 24px;
  }
  .metric small {
    font-size: 8px;
  }
  .metric-icon {
    display: none;
  }
  .dashboard-grid > div:last-child {
    display: block;
  }
  .dashboard-grid > div:last-child > .panel,
  .spotlight {
    margin-bottom: 18px;
  }
  .dispatch-row {
    gap: 10px;
  }
  .dispatch-row > .crew-stack,
  .row-arrow {
    display: none;
  }
  .dispatch-row > .badge {
    font-size: 7px;
    padding: 5px;
  }
  .dispatch-title small {
    max-width: 160px;
  }
  .job-time {
    width: 50px;
    font-size: 9px;
  }
  .trade-mark {
    width: 24px;
    height: 28px;
    font-size: 16px;
  }
  .dispatch-title strong {
    font-size: 10px;
  }
  .page-heading {
    display: block;
  }
  .page-heading > .button {
    margin-top: 15px;
  }
  .team-grid,
  .fleet-grid {
    grid-template-columns: 1fr;
  }
  .dispatch-board:not(.week) .board-cards {
    grid-template-columns: 1fr;
  }
  .list-toolbar {
    padding: 14px;
    gap: 9px;
  }
  .search {
    min-width: 0;
    flex: 1;
    width: 100%;
  }
  .search input {
    width: 100%;
    min-width: 0;
  }
  .list-toolbar select {
    min-width: 85px;
    max-width: 130px;
  }
  .list-toolbar > .button {
    display: none;
  }
  .panel-head {
    padding: 18px 16px;
  }
  .panel-head .muted {
    display: none;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .full {
    grid-column: auto;
  }
  .modal-head,
  dialog form,
  .document,
  .job-detail {
    padding: 20px;
  }
  .quote-line {
    grid-template-columns: 1fr 45px 65px 22px;
    gap: 5px;
  }
  .quote-line input {
    padding: 9px 6px;
  }
  .quote-line label {
    font-size: 9px;
  }
  .crew-options {
    grid-template-columns: 1fr;
  }
  .modal-actions {
    justify-content: flex-start;
  }
  .detail-facts {
    padding: 15px;
    gap: 15px;
  }
  .document-heading h3 {
    font-size: 16px;
  }
  .document .table-wrap {
    margin-left: -10px;
    width: calc(100% + 20px);
  }
  .resource-summary span:last-child {
    margin-left: 0;
  }
  .date-controls {
    gap: 3px;
  }
  .date-controls input {
    width: 133px;
  }
  .dispatch-toolbar {
    gap: 12px;
  }
  .bar-chart {
    padding-left: 10px;
    padding-right: 10px;
    gap: 10px;
  }
  .bar-value {
    font-size: 7px;
  }
  .tour-banner > div:not(.tour-actions) {
    max-width: calc(100% - 45px);
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  #sidebar,
  .topbar,
  footer,
  .page-heading > .button,
  .modal-actions,
  .close-button,
  .list-toolbar,
  .tour-banner,
  #toast,
  .skip {
    display: none !important;
  }
  .workspace {
    margin: 0;
    background: var(--surface);
  }
  #main {
    padding: 0;
  }
  .panel {
    break-inside: avoid;
  }
  dialog[open] {
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: none;
    max-height: none;
    border: 0;
    box-shadow: none;
    background: var(--surface);
    overflow: visible;
  }
  body:has(dialog[open]) > .workspace,
  body:has(dialog[open]) > #sidebar {
    display: none !important;
  }
  dialog::backdrop {
    background: var(--surface);
  }
  .document,
  .job-detail {
    padding: 20px;
  }
  .table-wrap {
    overflow: visible;
  }
  button {
    color: inherit;
  }
  input[type="checkbox"] {
    appearance: auto;
  }
}
