:root {
  color-scheme: light;
  --ink: #15171a;
  --muted: #566069;
  --line: #d8d6cd;
  --line-strong: #c5c0b2;
  --paper: #ffffff;
  --wash: #f1f2ec;
  --teal: #9f0000;
  --teal-dark: #5f0000;
  --gold: #9f0000;
  --red: #b42318;
  --charcoal: #101214;
  --shadow: 0 18px 50px rgba(16, 18, 20, 0.12);
  --soft: #fbfaf4;
  --body-font: Helvetica, Arial, sans-serif;
  --heading-font: "JunkEurostileHeading", "Eurostile Next LT Bold Semi-Condensed", "Eurostile Next LT Pro Bold Condensed", "Eurostile", "Arial Narrow", Helvetica, Arial, sans-serif;
}

/* Moving Bros Leads mirrors the Junk Bros inbox while using the Moving brand. */
body.hauling-app.hauling-quotes-page.moving-leads-page {
  --teal: #c84f58;
  --teal-dark: #7f2830;
  --gold: #c84f58;
  --charcoal: #30353a;
  --wash: #f3f0f0;
  --soft: #fbf7f7;
  --line: #e0d8d9;
  --line-strong: #cdbfc1;
  --control-fill: #f2ecec;
  --control-border: #d2c3c5;
}

body.hauling-app.hauling-quotes-page.moving-leads-page .jb-sidebar {
  background: #f6f3f3;
}

body.hauling-app.hauling-quotes-page.moving-leads-page :is(
  .jb-conversation-row:hover,
  .jb-conversation-row.selected-record,
  .jb-popover button:hover,
  .jb-search-results button:hover
) {
  background: #f7e9ea;
}

body.hauling-app.hauling-quotes-page.moving-leads-page .jb-avatar,
body.hauling-app.hauling-quotes-page.moving-leads-page .jb-status-dot.is-new {
  background: #c84f58;
  color: #fff;
}

body.hauling-app.hauling-quotes-page.moving-leads-page .jb-chat-bar,
body.hauling-app.hauling-quotes-page.moving-leads-page .jb-sidebar-head {
  border-bottom-color: #c84f58;
}

body.hauling-app.hauling-quotes-page.moving-leads-page .opportunity-message.outbound.sent {
  background: #e6b2b5;
  border: 0;
  color: #231719;
}

body.hauling-app.hauling-quotes-page.moving-leads-page :is(.icon-button:hover, button.secondary:hover, .button-link.secondary:hover, .photo-file-button:hover) {
  border-color: #c84f58;
}

body.hauling-app.hauling-quotes-page.moving-leads-page :is(button.secondary:hover, .button-link.secondary:hover, .photo-file-button:hover) {
  background: #f7e9ea;
}

body.hauling-app.hauling-quotes-page.moving-leads-page .opportunity-message.schedule-ready-note:hover {
  background: #7f2830;
  border-color: #7f2830;
}

body.hauling-app.hauling-quotes-page.moving-leads-page #sendManualMessageButton,
body.hauling-app.hauling-quotes-page.moving-leads-page .jb-composer-inline-add {
  color: #c84f58;
}

body.hauling-app.hauling-quotes-page.moving-leads-page :is(
  #conversationListBackButton,
  #leadMenuButton,
  #chatBackButton,
  #conversationMenuButton,
  #composerTrayCloseButton
) {
  color: #c84f58 !important;
}

body.hauling-app.hauling-quotes-page.moving-leads-page .jb-attachment-tray-head > button::before {
  border-bottom-color: #c84f58;
  border-right-color: #c84f58;
}

body.hauling-app.hauling-quotes-page.moving-leads-page .moving-estimate-preview {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem;
}

body.hauling-app.hauling-quotes-page.moving-leads-page .moving-estimate-preview h3 {
  margin-top: 0;
}

body.hauling-app.hauling-quotes-page.moving-leads-page .moving-legacy-quote-hooks {
  display: none !important;
}

.admin-tools-subnav-moving.admin-leads-nav-link {
  border-left-color: #c84f58;
}

.admin-leads-nav-badge.moving-leads-badge :is(.admin-leads-dot.is-new, .admin-leads-dot.is-unread) {
  background: #c84f58;
}

@media (max-width: 760px) {
  body.admin-page:has([data-admin-view="moving-leads"].active) .admin-page-banner,
  body.admin-page:has([data-admin-view="moving-leads"].active) .admin-brand {
    display: none;
  }

  html:has(body.admin-page:has([data-admin-view="moving-leads"].active)),
  body.admin-page:has([data-admin-view="moving-leads"].active),
  body.admin-page:has([data-admin-view="moving-leads"].active) [data-admin-view="moving-leads"].active,
  body.admin-page:has([data-admin-view="moving-leads"].active) [data-admin-view="moving-leads"].active iframe,
  html.admin-seamless-embed:has(body.moving-leads-page),
  html.admin-seamless-embed body.moving-leads-page,
  html.admin-seamless-embed body.moving-leads-page .jb-shell,
  html.admin-seamless-embed body.moving-leads-page .jb-inbox-app,
  html.admin-seamless-embed body.moving-leads-page .jb-chat-pane {
    background-color: #303239;
  }

  body.admin-page:has([data-admin-view="moving-leads"].active) [data-admin-view="moving-leads"].active,
  body.admin-page:has([data-admin-view="moving-leads"].active) [data-admin-view="moving-leads"].active iframe {
    display: block;
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  html.moving-leads-keyboard-open body.admin-page:has([data-admin-view="moving-leads"].active) {
    bottom: auto;
    height: var(--admin-visual-viewport-height, 100dvh);
    left: 0;
    overflow: hidden;
    position: fixed;
    right: 0;
    top: 0;
    width: 100%;
  }

  html.mobile-system-dark body.hauling-app.hauling-quotes-page.moving-leads-page {
    --teal: #d26269;
    --teal-dark: #8c3038;
  }

  html.mobile-system-dark body.hauling-app.hauling-quotes-page.moving-leads-page .opportunity-message.outbound.sent {
    background: #7f2830 !important;
    color: #fff !important;
  }

  html.mobile-system-dark body.hauling-app.hauling-quotes-page.moving-leads-page .jb-avatar,
  html.mobile-system-dark body.hauling-app.hauling-quotes-page.moving-leads-page .jb-status-dot.is-new {
    background: #a53b44 !important;
    color: #fff !important;
  }

  html.mobile-system-dark body.hauling-app.hauling-quotes-page.moving-leads-page :is(
    .jb-conversation-row:hover,
    .jb-conversation-row:active,
    .jb-conversation-row:focus,
    .jb-conversation-row:focus-visible
  ) {
    background: transparent !important;
  }

  html.mobile-system-dark body.hauling-app.hauling-quotes-page.moving-leads-page :is(#sendManualMessageButton, .jb-composer-inline-add) {
    color: #e06970 !important;
  }
}

@font-face {
  font-family: "JunkEurostileHeading";
  src:
    local("Eurostile Next LT Bold Semi-Condensed"),
    local("Eurostile Next LT Bold SemiCondensed"),
    local("Eurostile Next LT Pro Bold Semi-Condensed"),
    local("Eurostile Next LT Pro Bold SemiCondensed"),
    local("Eurostile Next LT Pro Bold Condensed"),
    local("Eurostile Next LT Pro"),
    local("Eurostile");
  font-style: normal;
  font-weight: 800;
  font-stretch: semi-condensed;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--wash);
  color: var(--ink);
  font-family: var(--body-font);
  letter-spacing: 0;
  transition: background-color 0.5s ease, color 0.5s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--heading-font);
}

body.hauling-app {
  --teal: #58cf32;
  --teal-dark: #419f23;
  --gold: #58cf32;
  --charcoal: #121812;
  --wash: #d4dccf;
  --soft: #f5fcf2;
  --control-fill: #dbe7d6;
  --control-border: #a9b5a4;
}

body.hauling-app.hauling-dark-mode {
  color-scheme: dark;
  --ink: #edf5ea;
  --muted: #b7c4b2;
  --line: #3b4639;
  --line-strong: #586752;
  --paper: #151b16;
  --wash: #0d130f;
  --soft: #1d261e;
  --shadow: 0 22px 58px rgba(0, 0, 0, 0.42);
  --control-fill: #2a342b;
  --control-border: #586752;
}

body.hauling-app.hauling-quotes-page {
  --teal: #13b05f;
  --teal-dark: #106137;
  --gold: #13b05f;
  --charcoal: #30353a;
  --wash: #f0f2ef;
  --soft: #f7f9f7;
  --line: #d8ddd9;
  --line-strong: #bfc7c1;
  --control-fill: #eef1ef;
  --control-border: #c8cfca;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
}

body.hauling-app.hauling-quotes-page .jb-app-header { flex: 0 0 auto; }
body.hauling-app.hauling-quotes-page .jb-shell {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

body.hauling-app.hauling-quotes-page .jb-sidebar {
  background: #f3f5f3;
}

body.hauling-app.hauling-quotes-page .jb-conversation-row:hover,
body.hauling-app.hauling-quotes-page .jb-conversation-row.selected-record,
body.hauling-app.hauling-quotes-page .jb-popover button:hover,
body.hauling-app.hauling-quotes-page .jb-search-results button:hover {
  background: #e6f4eb;
}

body.hauling-app.hauling-quotes-page .jb-avatar {
  background: #13b05f;
  color: #ffffff;
}

body.hauling-app.hauling-quotes-page .icon-button:hover {
  border-color: #13b05f;
}

body.hauling-app.hauling-quotes-page .opportunity-message.outbound {
  border-color: rgba(19, 176, 95, .45);
}

body.hauling-app.hauling-quotes-page button.secondary:hover,
body.hauling-app.hauling-quotes-page .button-link.secondary:hover,
body.hauling-app.hauling-quotes-page .photo-file-button:hover {
  background: #e6f4eb;
  border-color: #13b05f;
}

body.hauling-app.hauling-quotes-page .opportunity-message.schedule-ready-note:hover {
  background: #106137;
  border-color: #106137;
}

body.company-dashboard {
  --teal: #4e5d64;
  --teal-dark: #334047;
  --gold: #79866f;
  --charcoal: #3f4a50;
  --wash: #f0f2ef;
  --soft: #f8f8f5;
  --line: #d7dad6;
  --line-strong: #b9c0ba;
}

body.timesheets-app {
  --teal: #4e5d64;
  --teal-dark: #334047;
  --gold: #79866f;
  --charcoal: #3f4a50;
  --wash: #f0f2ef;
  --soft: #f8f8f5;
  --line: #d7dad6;
  --line-strong: #b9c0ba;
}

body.legal-page { background: #f3f5f3; color: #252a2d; }
.legal-document { background: #fff; border: 1px solid #dce0dd; border-radius: 10px; box-shadow: 0 8px 28px rgba(28,35,31,.07); margin: 2rem auto; max-width: 860px; padding: clamp(1.25rem, 4vw, 3rem); }
.legal-document header { border-bottom: 1px solid #dce0dd; margin-bottom: 1.5rem; padding-bottom: 1.25rem; }
.legal-document h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1; margin: .35rem 0 .65rem; }
.legal-document h2 { font-size: 1.15rem; margin: 1.55rem 0 .4rem; }
.legal-document p { line-height: 1.65; margin: .4rem 0; }
.legal-document footer { border-top: 1px solid #dce0dd; margin-top: 2rem; padding-top: 1rem; }

body.hauling-app .section-intro {
  margin: 0.15rem 0 0;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

.dialog-title-input {
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 800;
  line-height: 1.1;
  padding: 0.25rem 0.35rem;
  width: 100%;
}

.dialog-title-input:disabled,
.dialog-title-input.is-readonly {
  background: #e5ebe1;
  border-color: #c9d3c4;
  color: var(--ink);
  cursor: default;
  opacity: 1;
}

.dialog-title-input:focus {
  outline: 2px solid rgba(88, 207, 50, 0.35);
  outline-offset: 0.25rem;
}

.customer-dialog-head {
  justify-content: start;
}

.customer-title-edit {
  align-items: center;
  display: inline-grid;
  gap: 0.45rem;
  grid-template-columns: minmax(12rem, max-content) auto;
  max-width: 100%;
}

.customer-title-edit .customer-name-input {
  min-width: min(24rem, calc(100vw - 8rem));
  width: auto;
}

button {
  border: 0;
  border-radius: 8px;
  background: var(--teal);
  color: #ffffff;
  cursor: pointer;
  font-weight: 700;
  padding: 0.85rem 1rem;
  transition: background-color 0.5s ease, border-color 0.5s ease, color 0.5s ease, box-shadow 0.5s ease;
}

a {
  color: inherit;
}

.button-link {
  align-items: center;
  background: var(--teal);
  border-radius: 8px;
  color: #ffffff;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.85rem 1rem;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.5s ease, border-color 0.5s ease, color 0.5s ease, box-shadow 0.5s ease;
}

.button-link.secondary {
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--ink);
}

body.hauling-app button,
body.hauling-app .button-link {
  color: #101214;
}

body.hauling-app button.secondary,
body.hauling-app .button-link.secondary,
body.hauling-app button.danger,
body.hauling-app .photo-file-button,
body.hauling-app .photo-corner-remove {
  background: var(--control-fill);
  border-color: var(--control-border);
}

body.hauling-app button:not(.secondary):not(.danger):not(.filled-danger),
body.hauling-app .button-link:not(.secondary) {
  border: 1px solid #101214;
}

button:hover {
  background: var(--teal-dark);
}

button.secondary {
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--ink);
}

button.secondary:hover {
  background: #fff0f0;
}

body.company-dashboard button.secondary:hover,
body.company-dashboard .button-link.secondary:hover {
  background: #f1f2f2;
}

body.hauling-app #haulingNewFormButton.secondary:hover {
  background: #58cf32;
}

body.hauling-app button.secondary:hover,
body.hauling-app .button-link.secondary:hover,
body.hauling-app .photo-file-button:hover {
  background: #58cf32;
  border-color: #101214;
  color: #101214;
}

body.hauling-app button.danger:hover,
body.hauling-app .photo-corner-remove:hover {
  background: var(--red);
  border-color: var(--red);
  color: #ffffff;
}

button.danger {
  background: #ffffff;
  border: 1px solid #f0b7b3;
  color: var(--red);
}

button.danger:hover {
  background: var(--red);
  border-color: var(--red);
  color: #ffffff;
}

button.small {
  padding: 0.55rem 0.7rem;
  font-size: 0.92rem;
}

.button-link.small {
  min-height: 2.25rem;
  padding: 0.55rem 0.7rem;
  font-size: 0.92rem;
}

.app-header {
  align-items: center;
  background:
    linear-gradient(135deg, #354047 0%, #4d5b61 58%, #677064 100%),
    var(--charcoal);
  color: #ffffff;
  display: flex;
  min-height: 220px;
}

.company-dashboard-header {
  min-height: 220px;
}

.company-dashboard-header .header-copy {
  margin: 0 auto;
  max-width: 1440px;
  padding: 2rem 1.25rem;
  width: 100%;
}

.timesheets-header {
  min-height: 220px;
}

.completion-header,
.hauling-header {
  background:
    linear-gradient(180deg, #1c1f22 0%, #1c2628 56%, #333d41 100%),
    #101214;
  min-height: 220px;
}

.header-copy {
  margin: 0 auto;
  max-width: 1440px;
  padding: 2rem 1.25rem;
  width: 100%;
}

.company-logo {
  display: block;
  height: auto;
  margin-bottom: 0.75rem;
  max-height: 64px;
  max-width: min(150px, 70vw);
  object-fit: contain;
}

.company-group-logo {
  display: block;
  height: auto;
  max-height: 140px;
  max-width: min(650px, 88vw);
  object-fit: contain;
}

.header-copy h1 {
  font-size: 4rem;
  font-stretch: condensed;
  font-weight: 900;
  line-height: 1;
  margin: 0.2rem 0 1rem;
  text-transform: uppercase;
}

.header-copy h1.hauling-title {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(3.6rem, 7vw, 6rem);
  letter-spacing: 0.02em;
  line-height: 1.08;
  margin-bottom: 0;
  padding-top: 0.08em;
}

.hauling-header .header-copy {
  align-items: center;
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
}

.hauling-title span {
  display: block;
}

.hauling-title-brand {
  color: #101214;
  -webkit-text-stroke: 0;
  text-shadow:
    0.5px 0 #ffffff,
    -0.5px 0 #ffffff,
    0 0.5px #ffffff,
    0 -1px #ffffff,
    0.35px 0.35px #ffffff,
    -0.35px 0.35px #ffffff,
    0.5px -0.75px #ffffff,
    -0.5px -0.75px #ffffff;
}

.hauling-title-form {
  color: #ffffff;
  font-family: "JunkEurostileHeading", "Eurostile Next LT Bold Semi-Condensed", "Eurostile Next LT Pro Bold Condensed", "Eurostile", "Arial Narrow", Helvetica, Arial, sans-serif;
  font-size: 0.5em;
  font-stretch: semi-condensed;
  font-weight: 800;
  -webkit-text-stroke: 0;
  text-shadow: none;
}

.header-copy p {
  color: #d6dde0;
  font-size: 1.08rem;
  line-height: 1.55;
  margin: 0;
  max-width: 56rem;
}

.header-link {
  color: #d6dde0;
}

.header-button {
  background: var(--control-fill);
  border: 1px solid #101214;
  border-radius: 8px;
  color: #101214;
  display: inline-flex;
  flex: 0 0 auto;
  font-weight: 800;
  justify-content: center;
  padding: 0.75rem 1rem;
  text-decoration: none;
  transition: background-color 0.5s ease, border-color 0.5s ease, color 0.5s ease;
}

.header-button:hover {
  background: #58cf32;
  border-color: #101214;
  color: #101214;
}

.app-shell {
  margin: 0 auto;
  max-width: 1440px;
  padding: 1.25rem;
}

.toolbar,
.summary,
.panel,
.day-panel,
.help-panel,
.timesheet-entry-day {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.toolbar {
  align-items: end;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding: 1rem;
}

.toolbar > div:first-child {
  flex: 1;
  max-width: 520px;
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: flex-end;
}

.layout {
  align-items: start;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
}

.admin-layout {
  grid-template-columns: minmax(320px, 440px) minmax(0, 1fr);
}

.admin-section {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-bottom: 1.25rem;
  padding: 0.55rem;
}

.admin-section > summary {
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 800;
  list-style-position: inside;
  padding: 0.85rem 0.85rem 0.55rem;
}

.admin-section-intro {
  margin: 0 0.85rem 0.85rem;
}

.admin-section > .layout,
.admin-section > .records-grid,
.admin-section > .panel {
  box-shadow: none;
  margin-top: 0;
}

.admin-section > .layout {
  padding: 0.7rem;
}

.app-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.dashboard-sections {
  display: grid;
  gap: 1.25rem;
}

.company-dashboard-section {
  display: grid;
  gap: 1.25rem;
}

.company-app-grid {
  display: grid;
  gap: 1rem;
}

.completion-app-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.utility-app-grid {
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  margin-top: 0.25rem;
}

.admin-tools-head {
  border-top: 1px solid var(--line);
  margin-top: 0.35rem;
  padding-top: 1rem;
}

.admin-tools-grid {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  margin-top: 0.25rem;
}

.app-card.company-app-card {
  min-height: 8.25rem;
  padding: 1.15rem;
}

body.company-dashboard .company-app-card:hover {
  border-color: #6f747b;
}

body.company-dashboard .company-card-hauling {
  background: #ffffff;
  border-color: rgba(88, 207, 50, 0.75);
  border-top: 8px solid #58cf32;
  box-shadow:
    inset 0 0 0 1px rgba(88, 207, 50, 0.16),
    var(--shadow);
}

body.company-dashboard .company-card-hauling:hover {
  border-color: #58cf32;
}

body.company-dashboard .company-card-hauling-quotes {
  background: #ffffff;
  border-color: rgba(88, 207, 50, 0.75);
  border-top: 8px solid #58cf32;
  box-shadow:
    inset 0 0 0 1px rgba(88, 207, 50, 0.16),
    var(--shadow);
}

body.company-dashboard .company-card-hauling-quotes:hover {
  border-color: #58cf32;
}

body.company-dashboard .company-card-completion {
  background: #ffffff;
  border-color: rgba(159, 0, 0, 0.52);
  border-top: 8px solid #9f0000;
  box-shadow:
    inset 0 0 0 1px rgba(159, 0, 0, 0.14),
    var(--shadow);
}

body.company-dashboard .company-card-completion:hover {
  border-color: #9f0000;
}

body.company-dashboard .company-card-quotes {
  background: #ffffff;
  border-color: rgba(159, 0, 0, 0.52);
  border-top: 8px solid #9f0000;
  box-shadow:
    inset 0 0 0 1px rgba(159, 0, 0, 0.14),
    var(--shadow);
}

body.company-dashboard .company-card-quotes:hover {
  border-color: #9f0000;
}

body.company-dashboard .company-card-contract {
  background: #ffffff;
  border-color: rgba(159, 0, 0, 0.52);
  border-top: 8px solid #9f0000;
  box-shadow:
    inset 0 0 0 1px rgba(159, 0, 0, 0.14),
    var(--shadow);
}

body.company-dashboard .company-card-contract:hover {
  border-color: #9f0000;
}

.app-card.featured-company-card {
  align-content: start;
  min-height: clamp(12rem, 16vw, 15rem);
  padding: 1.35rem;
}

.app-card.utility-company-card {
  min-height: 7.75rem;
}

.hauling-quote-layout {
  align-items: start;
}

.hauling-quote-panel {
  background: #ffffff;
  border: 1px solid rgba(88, 207, 50, 0.38);
  border-top: 6px solid #58cf32;
  box-shadow: var(--shadow);
}

.hauling-quote-loads {
  display: grid;
  gap: 0.8rem;
}

.hauling-quote-load-card {
  background: var(--soft);
  border: 1px solid rgba(88, 207, 50, 0.32);
  border-radius: 8px;
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
}

.hauling-quote-load-card h4 {
  margin: 0;
}

.hauling-quote-summary {
  background: #ffffff;
  border: 1px solid rgba(88, 207, 50, 0.38);
  border-top: 6px solid #58cf32;
  box-shadow: var(--shadow);
}

.hauling-opportunity-section {
  display: grid;
  gap: 1rem;
}

.hauling-opportunity-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

.hauling-opportunity-form,
.hauling-opportunity-thread {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
}

.opportunity-list {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.selected-record {
  border-color: #58cf32;
  box-shadow: inset 0 0 0 1px rgba(88, 207, 50, 0.2);
}

.opportunity-messages {
  display: grid;
  gap: 0.75rem;
  max-height: 30rem;
  overflow: auto;
}

.opportunity-photo-tools {
  display: grid;
  gap: 0.75rem;
}

.schedule-draft-form {
  background: #ffffff;
  border: 1px solid rgba(88, 207, 50, 0.38);
  border-radius: 8px;
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
}

.schedule-time-row {
  display: grid;
  gap: 0.75rem;
  grid-column: span 2;
  grid-template-columns: 1fr 1fr;
}

.quote-route-box > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 0.6rem;
  list-style: none;
}

.quote-route-box > summary::-webkit-details-marker {
  display: none;
}

.quote-route-box > summary h3 {
  margin: 0;
}

.quote-route-box > summary::before {
  border-bottom: 0.35rem solid transparent;
  border-left: 0.5rem solid currentColor;
  border-top: 0.35rem solid transparent;
  content: "";
  flex: 0 0 auto;
  transition: transform 0.5s ease;
}

.quote-route-box[open] > summary::before {
  transform: rotate(90deg);
}

.schedule-employee-picker {
  background: var(--soft);
  border: 1px solid rgba(88, 207, 50, 0.32);
  border-radius: 8px;
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0.85rem;
}

.schedule-employee-picker legend {
  font-family: var(--heading-font);
  font-weight: 800;
  padding: 0 0.35rem;
}

.schedule-draft-photos {
  display: grid;
  gap: 0.65rem;
}

.schedule-draft-photos .schedule-photo-grid {
  gap: 0.4rem;
  grid-template-columns: repeat(auto-fill, 1.35rem);
  justify-content: start;
}

.schedule-draft-photos .schedule-photo-grid figure {
  border-radius: 4px;
  overflow: visible;
  width: 1.35rem;
}

.schedule-draft-photos .schedule-photo-grid img {
  height: 1.05rem;
  width: 1.35rem;
}

.schedule-photo-thumb {
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: zoom-in;
  display: block;
  height: 1.05rem;
  overflow: hidden;
  padding: 0;
  transition: opacity 0.16s ease, transform 0.16s ease;
  width: 1.35rem;
}

.schedule-photo-thumb:hover {
  opacity: 0.82;
  transform: scale(1.08);
}

.schedule-draft-photos .trash-icon-button {
  height: 0.8rem;
  right: -0.3rem;
  top: -0.3rem;
  transform: scale(0.72);
  width: 0.8rem;
}

body.hauling-app.hauling-quotes-page #schedulePhotoViewer {
  background: #292d32;
  border: 1px solid #454b52;
  max-height: 92vh;
  max-width: min(94vw, 62rem);
  overflow: hidden;
  width: max-content;
}

.schedule-photo-viewer .dialog-close-form {
  margin-bottom: 0.25rem;
}

.schedule-photo-viewer-stage {
  align-items: center;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem;
}

.schedule-photo-viewer-stage img {
  border-radius: 12px;
  display: block;
  max-height: 74vh;
  max-width: min(76vw, 52rem);
  object-fit: contain;
}

body.hauling-app.hauling-quotes-page #schedulePhotoViewer .schedule-photo-viewer-chevron {
  align-items: center;
  background: #454851;
  border: 1px solid #5a5e68;
  border-radius: 50%;
  color: #13b05f;
  display: inline-flex;
  font-size: 2rem;
  height: 2.75rem;
  justify-content: center;
  line-height: 1;
  padding: 0 0 0.12rem;
  transition: background-color 0.16s ease, transform 0.16s ease;
  width: 2.75rem;
}

body.hauling-app.hauling-quotes-page #schedulePhotoViewer .schedule-photo-viewer-chevron:hover {
  background: #34383e;
  transform: scale(1.06);
}

.schedule-photo-viewer-count {
  color: #c9cdd2;
  margin: 0.6rem 0 0;
  min-height: 1.2rem;
  text-align: center;
}

@media (max-width: 600px) {
  .schedule-photo-viewer-stage {
    gap: 0.35rem;
    grid-template-columns: 2.25rem minmax(0, 1fr) 2.25rem;
  }

  .schedule-photo-viewer-stage img {
    max-width: calc(94vw - 6.5rem);
  }

  body.hauling-app.hauling-quotes-page #schedulePhotoViewer .schedule-photo-viewer-chevron {
    font-size: 1.65rem;
    height: 2.25rem;
    width: 2.25rem;
  }
}

.schedule-photo-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
}

.schedule-photo-grid figure,
.schedule-photo-grid > a {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: block;
  margin: 0;
  overflow: hidden;
}

.schedule-photo-grid figure {
  position: relative;
}

.schedule-photo-grid img {
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  width: 100%;
}

.trash-icon-button {
  align-items: center;
  background: #ffffff;
  border: 1px solid #dc2626;
  border-radius: 8px;
  color: #dc2626;
  cursor: pointer;
  display: inline-flex;
  height: 2rem;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 0.4rem;
  top: 0.4rem;
  width: 2rem;
}

.trash-icon-button::before {
  background: currentColor;
  content: "";
  height: 2px;
  position: absolute;
  transform: rotate(45deg);
  width: 0.78rem;
}

.trash-icon-button::after {
  background: currentColor;
  content: "";
  height: 2px;
  position: absolute;
  transform: rotate(-45deg);
  width: 0.78rem;
}

.trash-icon-button:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
}

.opportunity-photo-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.opportunity-photo-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0;
  overflow: hidden;
}

.opportunity-photo-card img {
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  width: 100%;
}

.opportunity-photo-card figcaption {
  display: grid;
  gap: 0.45rem;
  padding: 0.6rem;
}

.opportunity-photo-card figcaption span {
  color: var(--muted);
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

.opportunity-message {
  background: #f8faf7;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.55rem;
  padding: 0.85rem;
  transition: background-color 0.5s ease, border-color 0.5s ease, color 0.5s ease;
}

.opportunity-message.note-collapsed {
  cursor: pointer;
  justify-self: center;
  padding: 0.45rem 0.8rem;
  width: fit-content;
}

.opportunity-message.note-collapsed .opportunity-message-head {
  gap: 0.5rem;
}

.opportunity-message.note-collapsed .opportunity-message-head strong {
  font-size: 0.85rem;
}

.opportunity-message.schedule-ready-note {
  background: #e9f8e8;
  border-color: rgba(36, 145, 61, 0.45);
  color: #14532d;
}

.opportunity-message.schedule-ready-note:hover {
  background: #2f9e44;
  border-color: #2f9e44;
  color: #ffffff;
}

.opportunity-message.outbound {
  border-color: rgba(88, 207, 50, 0.45);
}

.opportunity-message.inbound {
  background: #ffffff;
}

.opportunity-message-head {
  align-items: center;
  display: flex;
  gap: 0.7rem;
  justify-content: space-between;
}

.opportunity-message-head span {
  color: var(--muted);
  font-size: 0.85rem;
}

.opportunity-message p {
  margin: 0;
  white-space: pre-wrap;
}

.opportunity-message textarea {
  min-height: 8rem;
}

.jb-app-header {
  padding-bottom: 0;
  padding-top: 0;
}

.jb-app-header .header-copy {
  align-items: center;
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
}

.jb-app-header h1 {
  margin: 0;
}

.jb-shell {
  max-width: 1280px;
}

.jb-inbox-app {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.jb-sidebar {
  background: #f6f8f5;
  border-right: 1px solid var(--line);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-height: 0;
  position: relative;
}

.jb-sidebar-head,
.jb-chat-bar {
  align-items: center;
  display: flex;
  gap: 0.85rem;
  justify-content: space-between;
  min-height: 4.5rem;
  padding: 0.9rem 1rem;
}

.jb-sidebar-head h2,
.jb-sidebar-head p,
.jb-chat-title h2,
.jb-chat-title p {
  margin: 0;
}

.jb-mobile-leads-brand {
  align-items: center;
  display: none;
  gap: 0.6rem;
  min-width: 0;
}

.jb-mobile-leads-brand img {
  display: none;
}

#conversationListBackButton {
  display: none;
}

.jb-icon-actions.jb-mobile-lead-actions {
  display: none;
}

.jb-sidebar-head p,
.jb-chat-title p {
  color: var(--muted);
  font-size: 0.88rem;
}

.jb-icon-actions {
  align-items: center;
  display: flex;
  gap: 0.45rem;
}

.jb-sidebar-status {
  border-top: 1px solid var(--line);
  margin: 0;
  padding: 0.55rem 1rem;
}

.icon-button {
  align-items: center;
  aspect-ratio: 1;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 800;
  justify-content: center;
  min-width: 2.35rem;
  padding: 0;
}

.icon-button:hover {
  border-color: #58cf32;
}

#chatBackButton {
  display: none;
}

.search-icon-button {
  color: #111827;
  position: relative;
}

.search-icon-button::before {
  border: 2px solid currentColor;
  border-radius: 999px;
  content: "";
  height: 0.72rem;
  width: 0.72rem;
}

.search-icon-button::after {
  background: currentColor;
  content: "";
  height: 2px;
  position: absolute;
  transform: translate(0.48rem, 0.48rem) rotate(45deg);
  width: 0.52rem;
}

.jb-popover {
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: var(--shadow);
  box-sizing: border-box;
  display: grid;
  gap: 0.25rem;
  max-width: min(18rem, calc(100vw - 2rem));
  min-width: min(13rem, calc(100vw - 2rem));
  overflow: hidden;
  padding: 0.35rem;
  position: absolute;
  right: 1rem;
  top: 4.25rem;
  z-index: 5;
}

.jb-popover:not([hidden]) {
  animation: jbPopoverIn .18s ease both;
  transform-origin: top right;
}

.jb-popover[hidden],
.schedule-draft-form[hidden] {
  display: none;
}

.jb-popover button,
.jb-search-results button {
  background: transparent;
  border: 0;
  border-radius: 7px;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  gap: 0.2rem;
  padding: 0.7rem;
  text-align: left;
  width: 100%;
}

body.hauling-app .jb-popover button:not(.secondary):not(.danger):not(.filled-danger) {
  border-color: transparent;
}

.jb-popover button:hover,
.jb-search-results button:hover {
  background: #eef8eb;
}

body.hauling-app .jb-popover button:not(.secondary):not(.danger):not(.filled-danger):hover {
  border-color: transparent;
}

.jb-popover button[data-conversation-action="delete"] {
  color: #dc2626;
}

.jb-popover button[data-conversation-action="delete"]:hover {
  background: #dc2626;
  color: #ffffff;
}

.jb-conversation-menu {
  right: 1rem;
  top: calc(100% - 0.25rem);
}

.jb-conversation-list {
  align-content: start;
  display: grid;
  gap: 0;
  margin: 0;
  min-height: 0;
  overflow: auto;
  padding: 0;
}

.jb-conversation-row {
  align-items: center;
  background: transparent;
  border: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 2.5rem minmax(0, 1fr) auto;
  padding: 0.9rem 1rem;
  text-align: left;
}

.jb-conversation-row,
.jb-conversation-row:hover,
.jb-conversation-row:focus,
.jb-conversation-row:focus-visible,
.jb-conversation-row.selected-record {
  border-left: 0;
  border-right: 0;
  border-top: 0;
  border-radius: 0;
  box-shadow: none;
  outline: 0;
}

body.hauling-app.hauling-quotes-page button.jb-conversation-row,
body.hauling-app.hauling-quotes-page button.jb-conversation-row:hover,
body.hauling-app.hauling-quotes-page button.jb-conversation-row:focus,
body.hauling-app.hauling-quotes-page button.jb-conversation-row:focus-visible,
body.hauling-app.hauling-quotes-page button.jb-conversation-row.selected-record {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  outline: 0;
}

.jb-conversation-row:hover,
.jb-conversation-row.selected-record {
  background: #edf8ea;
}

.jb-avatar {
  align-items: center;
  aspect-ratio: 1;
  background: #58cf32;
  border-radius: 999px;
  color: #10210d;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  margin-top: 0.15rem;
}

.jb-conversation-copy {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.jb-conversation-copy strong,
.jb-conversation-copy span,
.jb-conversation-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jb-conversation-copy span,
.jb-conversation-copy small {
  color: var(--muted);
}

.jb-conversation-copy > span {
  font-size: 0.82rem;
}

.jb-conversation-copy strong {
  align-items: center;
  display: flex;
  min-width: 0;
}

.jb-conversation-contact,
.jb-conversation-source {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jb-conversation-copy .jb-conversation-contact {
  color: #15171a;
  flex: 0 1 auto;
  font-weight: 800;
}

.jb-conversation-source {
  color: #7a817d;
  flex: 0 0 auto;
  font-weight: 500;
}

.jb-conversation-meta {
  align-items: center;
  align-self: center;
  display: flex;
  gap: 0.35rem;
  justify-self: end;
  white-space: nowrap;
}

.jb-status-dot {
  border-radius: 999px;
  display: inline-block;
  flex: 0 0 auto;
  height: 0.48rem;
  width: 0.48rem;
}

.jb-status-dot.is-draft {
  background: #e3b526;
}

.jb-status-dot.is-new {
  background: #13b05f;
}

.jb-conversation-copy small {
  display: -webkit-box;
  font-weight: 400;
  line-height: 1.25;
  max-height: 2.5em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.jb-conversation-row.is-unread .jb-conversation-copy small {
  color: #303532;
  font-weight: 800;
}

.jb-chat-pane {
  background: #f9fbf8;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  height: 100%;
}

.jb-empty-conversation {
  align-items: center;
  color: #7a817d;
  display: flex;
  font-size: 1rem;
  inset: 0;
  justify-content: center;
  opacity: 1;
  padding: 1.5rem;
  pointer-events: none;
  position: absolute;
  text-align: center;
  transform: translateY(0);
  transition: opacity .2s ease, transform .22s ease, visibility 0s linear 0s;
  visibility: visible;
  z-index: 2;
}

body.has-active-conversation .jb-empty-conversation {
  opacity: 0;
  transform: translateY(-.35rem);
  transition: opacity .16s ease, transform .2s ease, visibility 0s linear .2s;
  visibility: hidden;
}

.jb-chat-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.jb-chat-title {
  display: grid;
  flex: 1;
  justify-items: center;
  min-width: 0;
  text-align: center;
}

.jb-chat-title h2,
.jb-chat-title p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jb-message-stream {
  align-content: start;
  background: linear-gradient(180deg, #fbfdfb 0%, #f1f7ef 100%);
  display: grid;
  gap: 0.75rem;
  margin: 0;
  max-height: none;
  overflow: auto;
  padding: 1rem;
  scrollbar-gutter: stable;
}

.opportunity-message {
  border-radius: 8px;
  max-width: min(38rem, 82%);
  overflow-anchor: none;
  width: fit-content;
}

.opportunity-message.message-entering {
  animation: jbMessageIn .24s ease both;
}

.jb-conversation-scroll-anchor {
  display: block;
  height: 1px;
  overflow-anchor: auto;
  width: 100%;
}

.opportunity-message.inbound {
  justify-self: start;
}

.opportunity-message.outbound,
.opportunity-message.sent {
  background: #dff7d8;
  border-color: rgba(88, 207, 50, 0.55);
  justify-self: end;
}

.opportunity-message.pending {
  background: #fff4bd;
  border-color: #e1bd39;
  cursor: pointer;
  justify-self: end;
}

.opportunity-message.pending * {
  cursor: pointer;
}

.opportunity-message.internal {
  background: #ffffff;
  color: var(--muted);
  justify-self: center;
  max-width: min(34rem, 92%);
}

.opportunity-message.internal.schedule-ready-note {
  background: #e9f8e8;
  border-color: rgba(36, 145, 61, 0.45);
  color: #14532d;
}

.opportunity-message.internal.schedule-ready-note:hover {
  background: #2f9e44;
  border-color: #2f9e44;
  color: #ffffff;
}

.opportunity-message small {
  color: #6a5600;
  font-weight: 700;
}

.opportunity-message[data-message-meta-toggle] {
  cursor: pointer;
  gap: 0;
  padding-bottom: .65rem;
  padding-top: .65rem;
  transition:
    background-color .5s ease,
    border-color .5s ease,
    color .5s ease,
    gap .2s ease,
    padding-bottom .2s ease,
    padding-top .2s ease;
}

.opportunity-message[data-message-meta-toggle].show-details {
  gap: .4rem;
  padding-bottom: .85rem;
  padding-top: .85rem;
}

.opportunity-message-details {
  align-items: end;
  color: rgba(58, 65, 61, .68);
  display: grid;
  font-size: .72rem;
  gap: .05rem;
  justify-items: end;
  line-height: 1.2;
  max-height: 0;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-.2rem);
  transition: max-height .2s ease, max-width .2s ease, opacity .16s ease, transform .2s ease;
  white-space: nowrap;
  width: 0;
}

.opportunity-message.show-details .opportunity-message-details {
  max-height: 3rem;
  max-width: 20rem;
  opacity: 1;
  transform: translateY(0);
  width: auto;
}

.opportunity-message {
  border: 0;
  border-radius: 1.4rem;
}

body.hauling-app.hauling-quotes-page .opportunity-message.outbound.sent {
  background: #b9e3c9;
  border: 0;
}

body.hauling-app.hauling-quotes-page .opportunity-message.inbound,
body.hauling-app.hauling-quotes-page .opportunity-message.pending,
body.hauling-app.hauling-quotes-page .opportunity-message.internal {
  border: 0;
}

.jb-message-date-separator {
  align-items: center;
  color: #7a817d;
  display: flex;
  font-size: .75rem;
  font-weight: 700;
  gap: .7rem;
  justify-self: stretch;
  width: 100%;
}

.jb-message-date-separator::before,
.jb-message-date-separator::after {
  background: #d4dad5;
  content: "";
  flex: 1;
  height: 1px;
}

.jb-message-date-separator span {
  white-space: nowrap;
}

.admin-leads-nav-link {
  align-items: center;
  display: flex !important;
  justify-content: space-between;
  width: 100%;
}

.admin-leads-nav-badge {
  align-items: center;
  color: #f4f6f5;
  display: inline-flex;
  flex: 0 0 auto;
  gap: .28rem;
  margin-left: .55rem;
}

.admin-leads-nav-badge[hidden],
.admin-leads-dot[hidden] {
  display: none !important;
}

.admin-leads-nav-badge b {
  font-size: .72rem;
  line-height: 1;
}

.admin-leads-dot {
  border-radius: 999px;
  display: inline-block;
  height: .45rem;
  width: .45rem;
}

.admin-leads-dot.is-unread {
  background: #13b05f;
}

.admin-leads-dot.is-new {
  background: #e3b526;
}

@media (max-width: 720px) {
  body.hauling-app.hauling-quotes-page button.jb-conversation-row {
    margin: 0;
    padding: .58rem .75rem;
  }

  body.hauling-app.hauling-quotes-page button.jb-conversation-row:hover,
  body.hauling-app.hauling-quotes-page button.jb-conversation-row:active,
  body.hauling-app.hauling-quotes-page button.jb-conversation-row:focus,
  body.hauling-app.hauling-quotes-page button.jb-conversation-row:focus-visible {
    background: transparent;
  }
}

.opportunity-message-details time {
  color: rgba(58, 65, 61, .58);
  font-size: .68rem;
}

.message-attachments {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
  max-width: 20rem;
}

.message-attachments a {
  border-radius: 1.4rem;
  display: block;
  overflow: hidden;
}

.message-attachments .message-media-photo,
.leads-media-thumbnail {
  background: transparent !important;
  border: 0 !important;
  border-radius: inherit;
  box-shadow: none !important;
  display: block;
  height: auto;
  margin: 0;
  min-height: 0;
  overflow: hidden;
  outline: 0;
  padding: 0 !important;
  width: 100%;
}

.message-attachments .message-media-photo:hover,
.message-attachments .message-media-photo:focus,
.message-attachments .message-media-photo:active,
.leads-media-thumbnail:hover,
.leads-media-thumbnail:focus,
.leads-media-thumbnail:active {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  transform: none;
}

.message-attachments img {
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  width: 100%;
}

.opportunity-message.has-text-media .message-attachments {
  border-top: 1px solid rgba(75, 84, 78, .28);
  margin-top: .35rem;
  padding-top: .8rem;
}

.opportunity-message.photo-only {
  background: transparent !important;
  border: 0 !important;
  padding: 0;
}

.opportunity-message.photo-only .message-attachments {
  margin: 0;
}

.opportunity-message.photo-only .opportunity-message-details {
  margin-top: .3rem;
  max-height: 3rem;
  max-width: 20rem;
  opacity: 1;
  transform: translateY(0);
  width: auto;
}

.opportunity-message.photo-only .message-attachments:not(.is-photo-grid) a,
.opportunity-message.photo-only .message-attachments:not(.is-photo-grid) .message-media-photo,
.opportunity-message.photo-only .message-attachments:not(.is-photo-grid) img {
  aspect-ratio: 3 / 4;
}

.opportunity-message.photo-only .message-attachments:not(.is-photo-grid) a,
.opportunity-message.photo-only .message-attachments:not(.is-photo-grid) .message-media-photo {
  width: min(15rem, 62vw);
}

.opportunity-message.photo-only .message-attachments:not(.is-photo-grid) img {
  height: 100%;
  object-fit: cover;
}

.message-attachments.is-photo-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(20rem, 72vw);
}

.message-attachments.is-photo-grid a,
.message-attachments.is-photo-grid .message-media-photo,
.message-media-more {
  aspect-ratio: 1;
  border-radius: 1.15rem;
  min-width: 0;
  overflow: hidden;
}

.message-attachments.is-photo-grid img,
.message-attachments.is-photo-grid .message-media-photo img,
.message-media-more img {
  aspect-ratio: 1;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.leads-media-viewer {
  animation: jbDialogIn .2s ease both;
  background: transparent;
  border: 0 !important;
  box-shadow: none;
  box-sizing: border-box;
  height: 94vh;
  max-height: 94vh;
  max-width: 96vw;
  outline: 0 !important;
  overflow: hidden;
  padding: 0;
  width: 96vw;
}

.leads-media-viewer.is-closing {
  animation: jbDialogOut .18s ease both;
}

.leads-media-viewer::backdrop {
  animation: jbDialogBackdropIn .2s ease both;
  backdrop-filter: blur(7px);
  background: rgba(31, 34, 39, .62);
  -webkit-backdrop-filter: blur(7px);
}

.leads-media-viewer.is-closing::backdrop {
  animation: jbDialogBackdropOut .18s ease both;
}

.leads-media-viewer-stage {
  align-items: center;
  display: flex;
  height: calc(100% - 1.8rem);
  justify-content: center;
  position: relative;
  width: 100%;
}

.leads-media-viewer-stage img {
  border: 0 !important;
  display: block;
  height: 100%;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  outline: 0 !important;
  width: 100%;
}

.leads-media-viewer-chevron {
  align-items: center;
  background: #454851 !important;
  border: 0 !important;
  border-radius: 50% !important;
  color: #13b05f !important;
  display: inline-flex;
  font-size: 2rem;
  height: 2.75rem;
  justify-content: center;
  line-height: 1;
  padding: 0 0 .12rem !important;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  z-index: 2;
}

#leadsMediaPrevious { left: .5rem; }
#leadsMediaNext { right: .5rem; }
.leads-media-viewer-count { color: #fff; margin: .5rem 0 0; min-height: 1.2rem; text-align: center; }

.message-media-more {
  background: transparent;
  border: 0 !important;
  cursor: pointer;
  display: block;
  padding: 0;
  position: relative;
}

.message-media-more > span {
  align-items: center;
  background: rgba(48, 50, 57, .58);
  color: #fff;
  display: flex;
  font-size: 1.15rem;
  inset: 0;
  justify-content: center;
  letter-spacing: .16rem;
  padding-left: .16rem;
  position: absolute;
  transition: background-color .18s ease;
}

.message-media-more:hover > span {
  background: rgba(48, 50, 57, .7);
}

body.hauling-app.hauling-quotes-page .jb-dialog:not(#quoteDialog) {
  background: #fff;
  border: 0;
}

body.hauling-app.hauling-quotes-page .jb-dialog:not(#quoteDialog) .panel,
body.hauling-app.hauling-quotes-page .jb-dialog:not(#quoteDialog) .opportunity-photo-tools,
body.hauling-app.hauling-quotes-page .jb-dialog:not(#quoteDialog) .jb-search-panel,
body.hauling-app.hauling-quotes-page .jb-dialog:not(#quoteDialog) .hauling-opportunity-form,
body.hauling-app.hauling-quotes-page .jb-dialog:not(#quoteDialog) .schedule-draft-form,
body.hauling-app.hauling-quotes-page .jb-dialog:not(#quoteDialog) .hauling-quote-summary,
body.hauling-app.hauling-quotes-page .jb-dialog:not(#quoteDialog) .quote-records-section {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

body.hauling-app.hauling-quotes-page .jb-dialog:not(#quoteDialog) .jb-search-panel,
body.hauling-app.hauling-quotes-page .jb-dialog:not(#quoteDialog) .opportunity-photo-tools,
body.hauling-app.hauling-quotes-page .jb-dialog:not(#quoteDialog) .hauling-opportunity-form,
body.hauling-app.hauling-quotes-page .jb-dialog:not(#quoteDialog) .schedule-draft-form {
  gap: 1rem;
}

body.hauling-app.hauling-quotes-page .jb-dialog:not(#quoteDialog) .jb-search-panel input[type="search"] {
  font-size: 1rem;
  min-height: 2.9rem;
  width: 100%;
}

body.hauling-app.hauling-quotes-page .jb-dialog:not(#quoteDialog) .jb-search-results {
  gap: 0;
  max-height: min(58vh, 32rem);
}

body.hauling-app.hauling-quotes-page .jb-dialog:not(#quoteDialog) .jb-search-results button {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #d8ddd9;
  border-radius: 0;
  padding: .75rem .25rem;
}

body.hauling-app.hauling-quotes-page .jb-dialog:not(#quoteDialog) .jb-search-results button:hover {
  background: #e6f4eb;
}

body.hauling-app.hauling-quotes-page .jb-dialog:not(#quoteDialog) .opportunity-photo-grid {
  gap: .65rem;
  grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
}

body.hauling-app.hauling-quotes-page .jb-dialog:not(#quoteDialog) .opportunity-photo-card {
  border: 0;
  border-radius: 1rem;
  overflow: hidden;
}

body.hauling-app.hauling-quotes-page .jb-dialog:not(#quoteDialog) .quote-route-box {
  background: transparent;
  border: 0;
  border-radius: 0;
  border-top: 1px solid #d8ddd9;
  padding: .9rem 0 0;
}

body.hauling-app.hauling-quotes-page .jb-dialog:not(#quoteDialog) .quote-records-section {
  border-top: 1px solid #d8ddd9;
  padding-top: 1rem;
}

body.hauling-app.hauling-quotes-page .jb-dialog .dialog-close-form .icon-button {
  background: #454851;
  border: 1px solid #5a5e68 !important;
  color: #fff;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

body.hauling-app.hauling-quotes-page .jb-dialog .dialog-close-form .icon-button:hover {
  background: #454851;
  border-color: #dc2626 !important;
  color: #dc2626;
}

body.hauling-app.hauling-quotes-page .jb-dialog :is(
  #saveOpportunityButton,
  #saveNewNoteButton,
  #sendDraftMessageButton,
  #saveManualEntryButton
) {
  background: #454851;
  border: 1px solid #5a5e68;
  border-radius: 8px;
  color: #13b05f;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

body.hauling-app.hauling-quotes-page .jb-dialog :is(
  #saveOpportunityButton,
  #saveNewNoteButton,
  #sendDraftMessageButton,
  #saveManualEntryButton
):hover {
  background: #303538;
  border-color: #282c2f;
  color: #13b05f;
}

body.hauling-app.hauling-quotes-page .jb-conversation-menu button[data-conversation-action="delete"] {
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

body.hauling-app.hauling-quotes-page .jb-conversation-menu button[data-conversation-action="delete"]:hover {
  background: #454851 !important;
  border-color: #dc2626 !important;
  color: #dc2626 !important;
}

body.hauling-app.hauling-quotes-page :is(
  .jb-dialog button.danger,
  .jb-dialog button.filled-danger,
  .jb-dialog [data-action="delete-quote"],
  .jb-dialog [data-opportunity-action="delete"],
  .jb-dialog .trash-icon-button,
  .jb-conversation-menu [data-conversation-action="delete"],
  .jb-pending-attachment [data-remove-composer-attachment]
) {
  background: #454851;
  border: 1px solid #5a5e68 !important;
  color: #fff !important;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

body.hauling-app.hauling-quotes-page :is(
  .jb-dialog button.danger,
  .jb-dialog button.filled-danger,
  .jb-dialog [data-action="delete-quote"],
  .jb-dialog [data-opportunity-action="delete"],
  .jb-dialog .trash-icon-button,
  .jb-conversation-menu [data-conversation-action="delete"],
  .jb-pending-attachment [data-remove-composer-attachment]
):hover {
  background: #454851 !important;
  border-color: #dc2626 !important;
  color: #dc2626 !important;
}

body.hauling-app.hauling-quotes-page .jb-dialog:not(#quoteDialog) button:not(.icon-button):not(.danger):not(.filled-danger):not(.secondary):not([data-search-kind]):not(.trash-icon-button),
body.hauling-app.hauling-quotes-page .jb-dialog:not(#quoteDialog) .photo-file-button {
  background: #454851;
  border: 1px solid #5a5e68;
  color: #13b05f;
}

body.hauling-app.hauling-quotes-page .jb-dialog:not(#quoteDialog) button:not(.icon-button):not(.danger):not(.filled-danger):not(.secondary):not([data-search-kind]):not(.trash-icon-button):hover,
body.hauling-app.hauling-quotes-page .jb-dialog:not(#quoteDialog) .photo-file-button:hover {
  background: #303538;
  border-color: #282c2f;
  color: #13b05f;
}

body.hauling-app.hauling-quotes-page .jb-dialog:not(#quoteDialog) .schedule-photo-thumb,
body.hauling-app.hauling-quotes-page .jb-dialog:not(#quoteDialog) .schedule-photo-thumb:hover {
  background: transparent;
  border: 0;
  color: inherit;
  padding: 0;
}

@media (min-width: 900px) {
  body.hauling-app.hauling-quotes-page .jb-wide-dialog:not(#quoteDialog) .quote-builder-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(18rem, .65fr);
  }

  body.hauling-app.hauling-quotes-page .jb-wide-dialog:not(#quoteDialog) .hauling-quote-summary {
    border-left: 1px solid #d8ddd9;
    padding-left: 1.25rem;
  }
}

@media (max-width: 899px) {
  body.hauling-app.hauling-quotes-page .jb-wide-dialog:not(#quoteDialog) .hauling-quote-summary {
    border-top: 1px solid #d8ddd9;
    padding-top: 1rem;
  }
}

.message-file-attachment {
  align-items: center;
  background: #454851;
  color: #fff;
  display: grid !important;
  gap: .3rem;
  justify-items: center;
  padding: .7rem;
  text-decoration: none;
}

.message-file-attachment > span {
  align-items: center;
  aspect-ratio: 1;
  background: #5a5e68;
  border-radius: 8px;
  display: flex;
  font-size: .72rem;
  font-weight: 800;
  justify-content: center;
  width: 3rem;
}

.message-file-attachment > strong {
  font-size: .72rem;
  max-width: 7rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jb-composer {
  background: #ffffff;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.45rem;
  padding: 0.65rem 0.8rem 0.75rem;
}

.jb-composer-row {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.jb-message-field-shell {
  min-width: 0;
  position: relative;
}

.jb-message-field-shell textarea {
  width: 100%;
}

.jb-composer-inline-add,
.jb-attachment-tray {
  display: none;
}

.jb-composer-attachment-preview {
  display: flex;
  gap: 0.55rem;
  max-height: 6rem;
  opacity: 1;
  overflow-y: hidden;
  overflow-x: auto;
  padding: 0.2rem 0;
}

.jb-composer-attachment-preview:not([hidden]) {
  animation: jbAttachmentPreviewIn .22s ease both;
  grid-column: 1 / -1;
  margin-bottom: .3rem;
}

.jb-composer-attachment-preview.is-closing {
  animation: jbAttachmentPreviewOut .2s ease both;
  pointer-events: none;
}

.jb-pending-attachment {
  flex: 0 0 4.5rem;
  min-width: 0;
  position: relative;
  text-align: center;
}

.jb-pending-attachment img,
.jb-file-thumbnail {
  align-items: center;
  aspect-ratio: 1;
  background: #454851;
  border-radius: 10px;
  color: #fff;
  display: flex;
  justify-content: center;
  object-fit: cover;
  width: 4.5rem;
}

.jb-pending-attachment > span:not(.jb-file-thumbnail) {
  color: #e5e7eb;
  display: block;
  font-size: 0.68rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jb-pending-attachment > button {
  align-items: center;
  background: #b4232f;
  border: 1px solid #d75a64;
  border-radius: 999px;
  color: #fff;
  display: flex;
  height: 1.35rem;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: -0.2rem;
  top: -0.2rem;
  width: 1.35rem;
}

.jb-pending-attachment > button:hover {
  background: #8f1823;
  border-color: #ef7b84;
}

.jb-pending-attachment.is-removing {
  animation: jbAttachmentRemove .19s ease both;
  pointer-events: none;
}

.jb-composer-action span::before {
  content: "Send";
}

#sendManualMessageButton {
  position: relative;
}

#sendManualMessageButton .jb-composer-add-icon,
#sendManualMessageButton .jb-composer-send-icon {
  left: 50%;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transition: opacity .13s ease, transform .16s cubic-bezier(.22, .8, .28, 1);
}

#sendManualMessageButton .jb-composer-add-icon {
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1;
  transform: translate(-50%, -50%) scale(.68);
}

#sendManualMessageButton .jb-composer-send-icon {
  border-right: 3px solid currentColor;
  border-top: 3px solid currentColor;
  height: .72rem;
  transform: translate(-62%, -50%) rotate(45deg) scale(.68);
  width: .72rem;
}

#sendManualMessageButton.is-add .jb-composer-add-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

#sendManualMessageButton.is-send .jb-composer-send-icon {
  opacity: 1;
  transform: translate(-62%, -50%) rotate(45deg) scale(1);
}

#sendManualMessageButton .jb-composer-add-icon::before,
#sendManualMessageButton .jb-composer-send-icon::before {
  content: none !important;
}

#haulingOpportunityStatus:empty {
  display: none;
}

#haulingOpportunityStatus {
  display: none !important;
}

.jb-composer textarea {
  max-height: 8rem;
  min-height: 4.5rem;
  resize: vertical;
}

.jb-notes-log {
  display: grid;
  gap: 0.8rem;
  min-width: min(38rem, 86vw);
}

.notes-log-list {
  display: grid;
  gap: 0.65rem;
  max-height: 50vh;
  overflow: auto;
}

.note-log-bubble {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem;
}

.note-log-bubble.automated-note {
  background: #fff4c7;
  border-color: #e8ca6a;
}

.note-log-bubble.manual-note {
  background: #e6f0ff;
  border-color: #9fbdf2;
}

.note-log-bubble summary,
.note-log-bubble div {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.note-log-bubble p {
  margin: 0.45rem 0 0;
  white-space: pre-wrap;
}

.note-log-bubble ul {
  display: grid;
  gap: 0.45rem;
  margin: 0.65rem 0 0;
  padding-left: 1.1rem;
}

.note-log-bubble li span {
  color: var(--muted);
  font-size: 0.8rem;
}

body:not(.has-active-conversation) #conversationMenuButton,
body:not(.has-active-conversation) #conversationMenu,
body:not(.has-active-conversation) .jb-composer,
body.viewing-archived-conversation .jb-composer {
  display: none;
}

.jb-call-event-marker {
  align-items: center;
  color: #69706c;
  display: flex;
  font-size: .76rem;
  gap: .75rem;
  justify-content: center;
  margin: .7rem 0;
  text-align: center;
}

.jb-call-event-marker::before,
.jb-call-event-marker::after {
  background: #d3d8d4;
  content: "";
  flex: 1;
  height: 1px;
}

.jb-call-event-marker span {
  color: #555c58;
  font-weight: 700;
}

.jb-call-event-marker time {
  color: #8a918d;
  white-space: nowrap;
}

.jb-call-event-marker.missed span {
  color: #a3231b;
}

.jb-call-lead-panel {
  display: grid;
  gap: 1rem;
}

.jb-call-lead-panel h2 {
  margin: 0;
}

.jb-call-lead-panel textarea {
  min-height: 8rem;
}

.archive-list-leaving {
  opacity: 0;
  transform: translateX(-.45rem);
  transition: opacity .15s ease, transform .15s ease;
}

.archive-list-entering {
  animation: jbArchiveListIn .22s ease both;
}

@keyframes jbArchiveListIn {
  from { opacity: 0; transform: translateX(.45rem); }
  to { opacity: 1; transform: translateX(0); }
}

body:not(.has-active-conversation) .jb-message-stream {
  background: #f9fbf8;
}

.jb-dialog {
  background: var(--wash);
  border: 1px solid rgba(88, 207, 50, 0.38);
  border-radius: 8px;
  box-shadow: var(--shadow);
  max-height: min(88vh, 56rem);
  max-width: min(94vw, 48rem);
  overflow: auto;
  padding: 1rem;
  width: 100%;
}

.jb-dialog[open] {
  animation: jbDialogIn .2s ease both;
}

.jb-dialog.is-closing {
  animation: jbDialogOut .18s ease both;
}

.jb-dialog .panel,
.jb-dialog .opportunity-photo-tools,
.jb-dialog .jb-search-panel,
.jb-dialog .notes-log-panel,
.jb-dialog .manual-entry-panel {
  background: #ffffff;
  border: 1px solid rgba(88, 207, 50, 0.32);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 1rem;
}

.jb-wide-dialog {
  max-width: min(96vw, 76rem);
}

.jb-dialog::backdrop {
  animation: jbDialogBackdropIn .2s ease both;
  backdrop-filter: blur(7px);
  background: rgba(31, 34, 39, .62);
  -webkit-backdrop-filter: blur(7px);
}

.jb-dialog.is-closing::backdrop {
  animation: jbDialogBackdropOut .18s ease both;
}

.dialog-close-form {
  display: flex;
  justify-content: end;
  margin-bottom: 0.5rem;
}

.dialog-close-form .icon-button {
  border-color: #dc2626;
  color: #dc2626;
}

.dialog-close-form .icon-button:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
}

#deleteScheduleDraftButton {
  border-color: #dc2626;
  color: #dc2626;
}

#deleteScheduleDraftButton:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
}

.jb-search-panel,
.jb-draft-review {
  display: grid;
  gap: 0.85rem;
}

.jb-search-panel h2,
.jb-draft-review h2 {
  margin: 0;
}

.jb-search-results {
  display: grid;
  gap: 0.35rem;
  max-height: 55vh;
  overflow: auto;
}

.jb-search-results button {
  border: 1px solid var(--line);
}

.jb-search-results span {
  color: var(--muted);
}

.jb-draft-review textarea {
  min-height: 12rem;
}

.draft-quote-controls {
  background: var(--wash);
  border-radius: .75rem;
  display: grid;
  gap: .75rem;
  padding: .85rem;
}

.draft-quote-fields {
  display: grid;
  gap: .7rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.draft-quote-fields label {
  display: grid;
  font-size: .82rem;
  font-weight: 700;
  gap: .35rem;
}

.draft-quote-controls button {
  justify-self: start;
}

@media (max-width: 560px) {
  .draft-quote-fields {
    grid-template-columns: 1fr;
  }
}

button.filled-danger,
.filled-danger {
  background: #b42318;
  border-color: #b42318;
  color: #ffffff !important;
}

button.filled-danger:hover,
.filled-danger:hover {
  background: #8f1d14;
  border-color: #8f1d14;
}

.company-app-card strong {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.1;
}

.company-app-card span {
  font-size: 1rem;
}

.admin-overview {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.dashboard-primary-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
}

.completion-feature {
  border-top: 6px solid var(--teal);
  display: grid;
  gap: 0.85rem;
  min-height: 14rem;
}

.completion-feature-copy {
  display: grid;
  gap: 0.65rem;
}

.completion-feature-copy .section-intro {
  font-size: 0.96rem;
  margin-bottom: 0;
  max-width: 38rem;
}

.completion-feature-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: auto;
}

.dashboard-action-button {
  min-height: 2.4rem;
  padding: 0.7rem 0.95rem;
}

.dashboard-side-stack {
  display: grid;
  gap: 0.85rem;
}

.dashboard-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.dashboard-pill {
  background: #fff2f2;
  border: 1px solid #e6b2b5;
  border-radius: 999px;
  color: var(--teal-dark);
  font-size: 0.9rem;
  font-weight: 800;
  padding: 0.5rem 0.85rem;
}

.app-card,
.user-row {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.app-card {
  color: var(--ink);
  display: grid;
  gap: 0.45rem;
  min-height: 9.1rem;
  padding: 0.95rem;
  text-decoration: none;
}

.compact-app-card {
  min-height: 6.8rem;
}

.utility-app-card strong {
  font-size: 1.1rem;
}

.app-card:hover {
  border-color: var(--gold);
}

.app-card strong {
  font-size: 1.15rem;
}

.app-card.featured-company-card strong {
  font-size: clamp(1.55rem, 2.15vw, 2.25rem);
  line-height: 1.12;
  max-width: 18ch;
}

.app-card.featured-company-card span {
  margin-top: 0.35rem;
  max-width: 30rem;
}

.app-card span,
.user-row span,
.user-row small {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.4;
}

#completionForm {
  display: grid;
  gap: 1rem;
}

.panel,
.day-panel,
.summary,
.help-panel,
.timesheet-entry-day {
  padding: 1.1rem;
}

.panel h2,
.day-panel h2,
.summary h2 {
  color: var(--ink);
  font-size: 1.25rem;
  margin: 0 0 1rem;
}

.day-panel {
  border-top: 6px solid var(--teal);
}

.summary {
  position: sticky;
  top: 1rem;
}

.help-panel {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.help-panel > strong {
  font-family: var(--heading-font);
  font-size: clamp(1.16rem, 1.8vw, 1.5rem);
  line-height: 1;
}

.help-panel p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.step-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.step-list span {
  background: #101214;
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 0.45rem 0.65rem;
}

.section-intro {
  color: var(--muted);
  line-height: 1.45;
  margin: -0.4rem 0 1rem;
}

.payment-method {
  display: grid;
  gap: 0.35rem;
  margin-top: 1rem;
}

.payment-options {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.payment-options button {
  width: 100%;
}

.info-panel {
  border-left: 6px solid var(--gold);
}

.practice-panel {
  border-left: 6px solid var(--teal);
}

.info-list {
  display: grid;
  gap: 0.65rem;
}

.info-list div {
  display: grid;
  gap: 0.2rem;
}

.info-list span {
  color: var(--muted);
  line-height: 1.45;
  white-space: pre-wrap;
}

.grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.full {
  grid-column: 1 / -1;
}

label {
  color: var(--muted);
  display: grid;
  font-size: 0.88rem;
  font-weight: 700;
  gap: 0.35rem;
}

input,
select,
textarea {
  background: #ffffff;
  border: 1px solid #cbd3d9;
  border-radius: 8px;
  color: var(--ink);
  min-height: 2.7rem;
  padding: 0.7rem 0.8rem;
  width: 100%;
}

textarea {
  min-height: 5rem;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible {
  outline: 3px solid rgba(159, 0, 0, 0.28);
  outline-offset: 2px;
}

body.hauling-app input:focus,
body.hauling-app select:focus,
body.hauling-app textarea:focus,
body.hauling-app button:focus-visible {
  outline: 3px solid rgba(111, 233, 64, 0.28);
}

body.hauling-app input[readonly],
body.hauling-app textarea[readonly] {
  background: var(--control-fill);
  color: var(--muted);
  cursor: default;
}

body.hauling-app input:not([readonly]),
body.hauling-app textarea:not([readonly]),
body.hauling-app select {
  background: #ffffff;
}

.day-head,
.location-row,
.totals-row,
.summary-line,
.route-actions,
.signature-actions {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.day-head {
  margin-bottom: 0.85rem;
}

.location-list {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
}

.location-row {
  align-items: stretch;
  background: #f9fbfb;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.85rem;
  padding: 0.85rem;
}

.location-list .location-row:nth-child(even) {
  background: #e9edef;
}

.location-row-head {
  align-items: center;
  display: flex;
  gap: .75rem;
  justify-content: space-between;
}

.location-row-head strong {
  color: var(--ink);
  font-size: 1rem;
}

.location-fields {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(180px, 1.5fr) repeat(6, minmax(100px, 0.5fr));
}

.rate-edit-section {
  display: grid;
  gap: .25rem;
  min-width: 0;
}

.rate-edit-section > label {
  margin: 0;
}

.rate-edit-toggle {
  gap: .3rem;
  font-size: .82rem;
  line-height: 1.2;
  margin: 0;
  min-height: auto;
  padding: 0;
  white-space: nowrap;
  width: max-content;
}

.location-rate-fields {
  display: grid;
  gap: .65rem;
}

.location-rate-fields[hidden] {
  display: none;
}

.location-rate-fields label {
  margin: 0;
}

.location-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.pause-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 0.85rem;
  overflow: hidden;
  padding: 0;
}

.pause-card.is-paused {
  background: #fff7f7;
  border-color: #e6b2b5;
}

.pause-summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: .7rem .8rem;
}

.pause-summary::-webkit-details-marker {
  display: none;
}

.pause-summary strong {
  font-size: 0.9rem;
}

.pause-summary span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.pause-minutes-field {
  align-self: start;
  min-width: 0;
}

.pause-minutes-field input {
  min-height: 2.35rem;
  padding: 0.55rem 0.7rem;
}

.pause-chip {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.15rem;
  min-width: 7.5rem;
  padding: 0.45rem 0.6rem;
}

.pause-chip strong {
  font-size: 0.82rem;
  text-transform: uppercase;
}

.pause-chip span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.pause-chip.is-paused {
  background: #fff2f2;
  border-color: #e6b2b5;
}

.pause-controls-left {
  align-items: start;
  display: grid;
  gap: .65rem;
  justify-content: flex-start;
}

.pause-controls-left .pause-chip {
  flex: 0 0 auto;
}

.pause-controls-left .location-action-buttons {
  justify-content: flex-start;
}

.pause-panel-body {
  border-top: 1px solid var(--line);
  display: grid;
  gap: .75rem;
  padding: .8rem;
}

.moving-pause-panel[open] > .moving-pause-summary .moving-panel-chevron {
  transform: rotate(90deg);
}

.route-actions {
  align-items: end;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: 0.75rem;
}

.check-label {
  align-items: center;
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  min-height: 2.7rem;
}

.check-label input {
  min-height: auto;
  width: auto;
}

.day-total {
  background: #fff2f2;
  border: 1px solid #e6b2b5;
  border-radius: 8px;
  margin-top: 1rem;
  padding: 0.8rem;
}

.expense-list {
  display: grid;
  gap: 0.85rem;
}

.expense-row {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.8rem;
  padding: 0.85rem;
}

.discount-panel {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
}

.discount-panel h3 {
  margin: 0;
}

.totals-row,
.summary-line {
  border-bottom: 1px solid var(--line);
  padding: 0.55rem 0;
}

.totals-row:last-child,
.summary-line:last-child {
  border-bottom: 0;
}

.summary-line strong,
.totals-row strong {
  text-align: right;
}

.grand-total {
  color: var(--teal-dark);
  font-size: 1.35rem;
}

.pay-button {
  margin-top: 1rem;
  width: 100%;
}

.theme-toggle-panel {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(16, 18, 20, 0.16);
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
}

.theme-toggle {
  align-items: center;
  display: inline-flex;
  gap: 0.65rem;
  font-weight: 800;
}

.theme-toggle input {
  min-height: auto;
  width: auto;
}

.status-line {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  min-height: 1.4rem;
}

.form-stack {
  display: grid;
  gap: 0.9rem;
}

.hauling-panel {
  margin-bottom: 1.1rem;
}

.hauling-summary-card {
  align-self: start;
}

.load-cards {
  display: grid;
  gap: 0.85rem;
}

.load-card {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.load-card-summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(180px, 1fr) auto;
  list-style: none;
  padding: 0.9rem;
}

.load-card-summary::-webkit-details-marker {
  display: none;
}

.load-card-summary::after {
  border-bottom: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
  content: "";
  height: 0.55rem;
  justify-self: end;
  transform: rotate(-45deg);
  transition: transform 0.5s ease;
  width: 0.55rem;
}

.load-card[open] .load-card-summary::after {
  transform: rotate(45deg);
}

.load-card-body {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.95rem;
  padding: 0.9rem;
}

.load-card-copy {
  display: grid;
  gap: 0.35rem;
}

.load-card-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
}

.load-list-row {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem;
}

.load-pricing-row {
  align-items: start;
  grid-template-columns: minmax(180px, 1fr);
}

.load-amount-stack {
  display: grid;
  gap: 0.55rem;
}

.load-rate-check {
  align-self: start;
  justify-self: start;
}

.load-rate-inline {
  display: grid;
  gap: 0.35rem;
}

.load-rate-reveal,
.load-tipping-reveal {
  display: grid;
  gap: .75rem;
}

.load-rate-reveal[hidden],
.load-tipping-reveal[hidden] {
  display: none;
}

.load-section-head {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.load-section-head h4 {
  margin: 0;
}

.photo-file-button {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #101214;
  cursor: pointer;
  display: inline-flex;
  height: 2.35rem;
  justify-content: center;
  min-width: 2.35rem;
  padding: 0;
  position: relative;
  transition: background-color 0.5s ease, border-color 0.5s ease, color 0.5s ease;
}

.photo-file-button:hover {
  background: #58cf32;
  border-color: #58cf32;
  color: #101214;
}

.photo-file-button svg {
  display: block;
}

.photo-file-button input {
  height: 1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.tipping-amount-field {
  max-width: 260px;
}

.pricing-mileage-control {
  display: grid;
  gap: 0.55rem;
}

.signature-button-row {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.55rem;
  margin-left: auto;
}

.optional-pricing-body {
  background: #ffffff;
  border: 1px solid rgba(31, 75, 16, 0.18);
  border-radius: 8px;
  display: grid;
  gap: 0.85rem;
  margin-top: .75rem;
  padding: 0.85rem;
}

.hauling-count-grid {
  margin-bottom: 0.2rem;
}

.load-kind-pill {
  background: rgba(88, 207, 50, 0.14);
  border: 1px solid rgba(88, 207, 50, 0.35);
  border-radius: 999px;
  color: #1f4b10;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
}

.count-stepper {
  align-items: center;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.count-stepper input {
  text-align: center;
}

.hauling-route-actions {
  margin-top: 0.2rem;
}

.hauling-route-actions .status-line {
  flex: 1;
  min-height: 0;
}

.icon-text-button {
  align-items: center;
  display: inline-flex;
  gap: 0.35rem;
}

.icon-text-button svg {
  flex: 0 0 auto;
}

.photo-preview-frame {
  align-items: center;
  background: #ffffff;
  border: 1px dashed #b6c2b0;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  min-height: 180px;
  overflow: hidden;
  padding: 0.8rem;
  position: relative;
}

.receipt-preview-frame {
  min-height: 140px;
}

.photo-preview-frame span {
  color: var(--muted);
  font-weight: 700;
}

.photo-preview-frame img,
.photo-gallery-card img {
  border-radius: 8px;
  display: block;
  height: auto;
  max-height: 420px;
  max-width: 100%;
  object-fit: cover;
}

.photo-corner-remove {
  align-items: center;
  background: #ffffff;
  border: 1px solid #f0b7b3;
  border-radius: 8px;
  color: var(--red);
  display: inline-flex;
  font-size: 1rem;
  font-weight: 900;
  height: 2rem;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: absolute;
  right: 0.55rem;
  top: 0.55rem;
  width: 2rem;
}

.photo-corner-remove:hover {
  background: var(--red);
  border-color: var(--red);
  color: #ffffff;
}

.signature-pad.signature-locked {
  background: #f5f7f3;
  cursor: default;
  opacity: 0.92;
}

.attachment-panel {
  border-left: 6px solid var(--gold);
}

.attachment-panel-head,
.tier-photo-head {
  align-items: start;
  display: flex;
  gap: 0.85rem;
  justify-content: space-between;
}

.attachment-panel-head h2 {
  margin-bottom: 1rem;
}

.photo-upload-button {
  align-items: center;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 900;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.7rem 0.95rem;
  white-space: nowrap;
  width: auto;
}

.photo-upload-button:hover {
  background: #30353a;
}

.photo-upload-button input {
  display: none;
}

.small-upload {
  font-size: 0.82rem;
  min-height: 2.35rem;
  padding: 0.55rem 0.75rem;
}

.completion-photo-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.completion-photo-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.65rem;
  padding: 0.75rem;
}

.completion-photo-preview {
  min-height: 150px;
  padding: 0.55rem;
}

.completion-photo-preview img {
  border-radius: 8px;
  display: block;
  height: 150px;
  max-width: 100%;
  object-fit: cover;
  width: 100%;
}

.completion-photo-meta {
  align-items: center;
  display: flex;
  gap: 0.65rem;
  justify-content: space-between;
}

.completion-photo-meta span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.tier-photo-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.8rem;
}

.tier-photo-panel > summary {
  cursor: pointer;
  list-style-position: inside;
}

.tier-photo-head {
  align-items: center;
}

.tier-photo-head span {
  display: grid;
  gap: 0.15rem;
}

.tier-photo-head small {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
}

.tier-photo-head em {
  color: var(--muted);
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.tier-photo-body {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
}

.tier-photo-body .photo-upload-button {
  justify-self: start;
}

.tier-photo-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.stat-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 0.8rem;
}

.stat-card {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.25rem;
  padding: 0.8rem;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.stat-card strong {
  font-size: 1.2rem;
}

.hauling-photo-summary {
  margin-bottom: 1rem;
}

.photo-gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.photo-gallery-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.75rem;
  padding: 0.9rem;
}

.error {
  color: var(--red);
  font-weight: 700;
}

.login-page {
  align-items: center;
  background: #101214;
  display: flex;
  min-height: 100vh;
  padding: 1rem;
}

.login-shell {
  display: grid;
  gap: 1.25rem;
  margin: 0 auto;
  max-width: 420px;
  width: 100%;
}

.login-logo {
  display: block;
  height: auto;
  justify-self: center;
  max-width: min(260px, 80vw);
}

.login-panel {
  background: #ffffff;
  border-radius: 8px;
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
}

.login-panel h1 {
  font-size: 1.7rem;
  margin: 0;
}

.pin-setup-page { background: #25282e; color: #292c34; padding: clamp(1rem, 4vw, 3rem); }
.pin-setup-shell { display: grid; gap: 1.25rem; grid-template-columns: minmax(260px, .9fr) minmax(320px, 430px); margin: 0 auto; max-width: 920px; width: 100%; }
.pin-setup-intro { align-content: space-between; background: #303239; border: 1px solid #42454d; border-radius: 12px; color: #fff; display: grid; min-height: 510px; padding: clamp(1.5rem, 4vw, 2.5rem); }
.pin-setup-logo { filter: brightness(0) invert(1); height: auto; max-width: 155px; }
.pin-setup-intro h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -.04em; line-height: 1.02; margin: .45rem 0 .75rem; max-width: 8ch; }
.pin-setup-intro p:not(.pin-step) { color: #c8ccd2; line-height: 1.65; margin: 0; max-width: 33ch; }
.pin-step { color: #aeb5bf; font-size: .72rem; font-weight: 800; letter-spacing: .12em; margin: 0; text-transform: uppercase; }
.pin-setup-panel { align-content: center; border: 1px solid #dfe1e4; border-radius: 12px; box-shadow: 0 16px 40px rgba(12,15,18,.2); gap: 1.15rem; padding: clamp(1.3rem, 4vw, 2rem); }
.pin-panel-heading { align-items: center; display: flex; gap: .85rem; margin-bottom: .2rem; }
.pin-panel-heading h2 { font-size: 1.45rem; margin: 0 0 .25rem; }
.pin-panel-heading p { color: #6f757d; font-size: .85rem; line-height: 1.45; margin: 0; }
.pin-lock { align-items: center; background: #eceef0; border: 1px solid #d9dde1; border-radius: 8px; color: #555b64; display: inline-flex; font-size: .75rem; font-weight: 900; height: 42px; justify-content: center; letter-spacing: .08em; min-width: 48px; }
.pin-setup-panel label:not(.pin-show-toggle) { color: #3d4249; display: grid; font-size: .85rem; font-weight: 750; gap: .45rem; }
.pin-setup-panel input[type="password"], .pin-setup-panel input[type="text"] { background: #fafafa; border-color: #cfd3d8; font-size: 1.15rem; letter-spacing: .18em; min-height: 48px; }
.pin-setup-panel label small { color: #777d85; font-size: .74rem; font-weight: 500; letter-spacing: 0; line-height: 1.4; }
.pin-show-toggle { align-items: center; color: #5f6670; display: flex; font-size: .8rem; gap: .55rem; }
.pin-show-toggle input { height: 17px; margin: 0; width: 17px; }
.pin-setup-panel button[type="submit"] { background: #505462; min-height: 48px; width: 100%; }
.pin-setup-panel button[type="submit"]:hover { background: #3f434e; }
.pin-status { min-height: 1.25rem; margin: -.25rem 0 0; }
.pin-privacy-note { border-top: 1px solid #e4e5e7; color: #7b8088; font-size: .74rem; line-height: 1.45; margin: 0; padding-top: 1rem; text-align: center; }

@media (max-width: 720px) {
  .pin-setup-page { align-items: flex-start; padding: .75rem; }
  .pin-setup-shell { gap: .75rem; grid-template-columns: 1fr; max-width: 480px; }
  .pin-setup-intro { align-content: start; gap: 1.5rem; min-height: auto; padding: 1.25rem; }
  .pin-setup-logo { max-width: 120px; }
  .pin-setup-intro h1 { font-size: 1.75rem; max-width: none; }
  .pin-setup-intro p:not(.pin-step) { font-size: .85rem; }
  .pin-setup-panel { padding: 1.25rem; }
}

.app-options {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0.8rem;
}

.user-list {
  display: grid;
  gap: 0.75rem;
}

.archive-drawer {
  border-top: 1px solid var(--line);
  margin-top: 1rem;
  padding-top: 0.9rem;
}

.archive-drawer > summary {
  cursor: pointer;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.user-row {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.9rem;
}

.archived-row {
  background: #eef1f2;
  box-shadow: none;
  opacity: 0.9;
}

.user-row > div:first-child {
  display: grid;
  gap: 0.25rem;
}

.signature-pad {
  background: #ffffff;
  border: 1px dashed #9aa7b1;
  border-radius: 8px;
  height: 190px;
  touch-action: none;
  width: 100%;
}

.signature-actions {
  align-items: center;
  flex-wrap: wrap;
  margin-top: 0.7rem;
}

.records-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(300px, 0.85fr) minmax(520px, 1.15fr);
  margin-top: 1.25rem;
}

.panel-head {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.panel-head h2 {
  margin: 0;
}

body.hauling-app .hauling-panel > .panel-head h2,
body.hauling-app .hauling-summary-card .panel-head h2 {
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  line-height: 1;
}

body.hauling-app .hauling-panel,
body.hauling-app .hauling-summary-card,
body.hauling-app .help-panel {
  box-shadow: 0 18px 42px rgba(16, 18, 20, 0.22);
}

body.hauling-app,
body.hauling-app .panel,
body.hauling-app .summary,
body.hauling-app .help-panel,
body.hauling-app .toolbar,
body.hauling-app .load-card,
body.hauling-app .load-list-row,
body.hauling-app .optional-pricing-controls,
body.hauling-app .optional-pricing-body,
body.hauling-app .photo-preview-frame,
body.hauling-app input,
body.hauling-app select,
body.hauling-app textarea,
body.hauling-app button,
body.hauling-app .button-link,
body.hauling-app .theme-toggle-panel {
  transition:
    background-color 0.5s ease,
    border-color 0.5s ease,
    box-shadow 0.5s ease,
    color 0.5s ease;
}

body.hauling-app.hauling-dark-mode .panel,
body.hauling-app.hauling-dark-mode .summary,
body.hauling-app.hauling-dark-mode .help-panel,
body.hauling-app.hauling-dark-mode .toolbar,
body.hauling-app.hauling-dark-mode .theme-toggle-panel {
  background: #151b16;
  border-color: #586752;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.42);
}

body.hauling-app.hauling-dark-mode .load-card,
body.hauling-app.hauling-dark-mode .load-list-row,
body.hauling-app.hauling-dark-mode .optional-pricing-body,
body.hauling-app.hauling-dark-mode .photo-preview-frame,
body.hauling-app.hauling-dark-mode .stat-card,
body.hauling-app.hauling-dark-mode .completion-breakdown {
  background: #1d261e;
  border-color: #3b4639;
}

body.hauling-app.hauling-dark-mode input,
body.hauling-app.hauling-dark-mode select,
body.hauling-app.hauling-dark-mode textarea {
  background: var(--control-fill);
  border-color: var(--control-border);
  color: #edf5ea;
}

body.hauling-app.hauling-dark-mode input:not([readonly]),
body.hauling-app.hauling-dark-mode textarea:not([readonly]),
body.hauling-app.hauling-dark-mode select {
  background: var(--control-fill);
}

body.hauling-app.hauling-dark-mode .hauling-panel input,
body.hauling-app.hauling-dark-mode .hauling-panel select,
body.hauling-app.hauling-dark-mode .hauling-panel textarea,
body.hauling-app.hauling-dark-mode .toolbar select,
body.hauling-app.hauling-dark-mode .summary input,
body.hauling-app.hauling-dark-mode .summary select,
body.hauling-app.hauling-dark-mode .summary textarea {
  background: var(--control-fill);
  border-color: var(--control-border);
  color: #edf5ea;
}

body.hauling-app.hauling-dark-mode input[readonly],
body.hauling-app.hauling-dark-mode textarea[readonly] {
  background: var(--control-fill);
  color: #b7c4b2;
}

body.hauling-app.hauling-dark-mode .optional-pricing-controls {
  background: #326f1d;
  border-color: #9edb8d;
}

body.hauling-app.hauling-dark-mode button.secondary,
body.hauling-app.hauling-dark-mode .button-link.secondary,
body.hauling-app.hauling-dark-mode button.danger,
body.hauling-app.hauling-dark-mode .photo-file-button,
body.hauling-app.hauling-dark-mode .photo-corner-remove {
  background: var(--control-fill);
  border-color: var(--control-border);
  color: #edf5ea;
}

body.hauling-app.hauling-dark-mode button.secondary:hover,
body.hauling-app.hauling-dark-mode .button-link.secondary:hover,
body.hauling-app.hauling-dark-mode .photo-file-button:hover {
  background: #58cf32;
  border-color: #101214;
  color: #101214;
}

body.hauling-app.hauling-dark-mode button:not(.secondary):not(.danger):not(.filled-danger),
body.hauling-app.hauling-dark-mode .button-link:not(.secondary) {
  background: #58cf32;
  border-color: #101214;
  color: #101214;
}

body.hauling-app.hauling-dark-mode button:not(.secondary):not(.danger):not(.filled-danger):hover,
body.hauling-app.hauling-dark-mode .button-link:not(.secondary):hover {
  background: #419f23;
  border-color: #101214;
  color: #101214;
}

body.hauling-app.hauling-dark-mode button.danger:hover,
body.hauling-app.hauling-dark-mode .photo-corner-remove:hover {
  background: var(--red);
  border-color: var(--red);
  color: #ffffff;
}

.record-list,
.time-row-list,
.schedule-list,
.schedule-day-list,
.time-off-list,
.schedule-form,
.time-off-form {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
}

.record-row,
.time-row,
.schedule-card,
.time-off-card {
  background: var(--soft);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0.85rem;
}

.record-row {
  display: grid;
  gap: 0.45rem;
}

.record-row > span {
  white-space: pre-wrap;
}

.completion-breakdown {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  margin: 0.35rem 0;
  padding: 0.75rem;
}

.completion-breakdown-item {
  display: grid;
  gap: 0.15rem;
}

.completion-breakdown-item span {
  color: var(--muted);
  font-size: 0.78rem;
}

.completion-breakdown-item strong {
  font-size: 0.96rem;
}

.completion-breakdown .status-line {
  grid-column: 1 / -1;
  margin: 0;
}

.photo-gallery-image-group {
  display: grid;
  gap: 0.4rem;
}

.photo-gallery-image-group span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.record-head,
.record-meta,
.schedule-card-head,
.timesheet-day-head,
.timesheet-block,
.time-off-card {
  align-items: center;
  display: flex;
  gap: 0.8rem;
  justify-content: space-between;
}

.record-head span,
.record-meta,
.schedule-card span,
.schedule-meta,
.timesheet-block span,
.timesheet-block small {
  color: var(--muted);
}

.record-head > div:first-child,
.record-meta {
  min-width: 0;
}

.record-head strong,
.record-head span,
.record-row small {
  overflow-wrap: anywhere;
}

.record-total {
  background: #fff2f2;
  border: 1px solid #e6b2b5;
  border-radius: 8px;
  color: var(--teal-dark);
  flex: 0 0 auto;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 0.45rem 0.65rem;
}

.record-meta {
  flex-wrap: wrap;
  font-size: 0.88rem;
  justify-content: flex-start;
  margin-bottom: 0.25rem;
}

.completion-folder {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 0.4rem;
  padding: 0.15rem 0.75rem 0.75rem;
}

.completion-folder > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-start;
  list-style: none;
  padding: 0.65rem 0;
}

.optional-pricing-controls > summary {
  align-items: center;
  background: transparent;
  border-radius: 0;
  color: var(--ink);
  display: inline-flex;
  justify-content: flex-start;
  margin: 0;
  min-height: 0;
  padding: 0.75rem 0.9rem;
  text-align: left;
  width: 100%;
}

.optional-pricing-controls {
  background: #58cf32;
  border: 1px solid #101214;
  display: grid;
  gap: 0;
  padding: 0.75rem;
}

.optional-pricing-controls[open] > summary {
  margin-bottom: 0;
}

.optional-pricing-controls:not([open]) {
  align-items: center;
  display: flex;
  padding: 0.75rem;
}

.optional-pricing-controls > summary::before {
  height: 0.72rem;
  order: 2;
  width: 0.72rem;
}

.optional-pricing-controls > summary h2 {
  color: var(--ink);
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  line-height: 1;
  margin: 0;
  order: 1;
  text-align: left;
}

.completion-folder.optional-pricing-controls > summary::before {
  border-bottom-color: var(--ink);
  border-right-color: var(--ink);
}

.completion-folder > summary::-webkit-details-marker,
.completion-folder-group > summary::-webkit-details-marker {
  display: none;
}

.completion-folder > summary::before,
.completion-folder-group > summary::before {
  border-bottom: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
  content: "";
  flex: 0 0 auto;
  height: 0.52rem;
  transform: rotate(-45deg);
  transition: transform 0.5s ease;
  width: 0.52rem;
}

.completion-folder[open] > summary::before,
.completion-folder-group[open] > summary::before {
  transform: rotate(45deg);
}

.completion-folder > summary span {
  color: var(--ink);
  font-weight: 900;
}

.completion-folder > summary strong {
  color: var(--muted);
  font-size: 0.88rem;
}

.completion-folder-groups {
  display: grid;
  gap: 0.85rem;
}

.completion-folder-group {
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
}

.completion-folder-group > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
  list-style: none;
  padding: 0.25rem 0;
}

.completion-folder-group > summary span {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
}

.completion-folder-group > summary strong {
  color: var(--muted);
  font-size: 0.86rem;
  white-space: nowrap;
}

.completion-folder-group-body {
  display: grid;
  gap: 0.65rem;
  padding-top: 0.65rem;
}

.completion-folder-photos {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.completion-folder-photo {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 0.4rem;
  padding: 0.55rem;
  text-decoration: none;
}

.completion-folder-photo:hover {
  border-color: var(--teal);
}

.completion-folder-photo img {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  display: block;
  object-fit: cover;
  width: 100%;
}

.completion-folder-photo span {
  font-weight: 900;
  overflow-wrap: anywhere;
}

.completion-folder-photo small {
  color: var(--muted);
}

.timesheet-record {
  gap: 0.75rem;
}

.analytics-summary {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1rem 0;
}

.analytics-view-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  grid-column: 1 / -1;
}

.analytics-hero {
  border-top: 6px solid var(--teal);
}

.analytics-breakdown {
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
}

.analytics-breakdown > summary {
  cursor: pointer;
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.analytics-card {
  background: var(--soft);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem;
}

.analytics-card span,
.analytics-card small {
  color: var(--muted);
}

.analytics-card strong {
  color: var(--teal-dark);
  font-size: 1.35rem;
}

.analytics-days {
  display: grid;
  gap: 0.75rem;
}

.analytics-table {
  min-width: 780px;
}

.analytics-table details {
  max-width: 18rem;
}

.analytics-table small {
  color: var(--muted);
  display: block;
  line-height: 1.35;
  margin-top: 0.35rem;
  text-align: left;
  white-space: pre-wrap;
}

.analytics-variance.positive {
  color: #166534;
  font-weight: 800;
}

.analytics-variance.negative {
  color: var(--teal-dark);
  font-weight: 800;
}

.admin-page { --teal: #666d85; --teal-dark: #343949; --gold: #777d91; --red: #747985; --soft: #f5f5f7; --line: #dedfe4; --line-strong: #cfd1d8; background: #f1f1f3; color: #292c34; }
.admin-app { display: grid; grid-template-columns: 218px minmax(0, 1fr); min-height: 100vh; }
.admin-sidebar { background: #303239; color: white; display: flex; flex-direction: column; gap: 1rem; padding: 1rem .8rem; position: sticky; top: 0; height: 100vh; }
.admin-brand { align-items: center; color: white; display: flex; padding: 0 .45rem; text-decoration: none; }
.admin-brand img { filter: brightness(0) invert(1); height: 38px; max-width: 142px; object-fit: contain; }
.admin-mobile-junk-leads-brand { align-items: center; color: #fff; display: none; gap: .65rem; text-decoration: none; }
.admin-mobile-junk-leads-brand img { height: 32px; max-width: 108px; object-fit: contain; }
.admin-mobile-junk-leads-brand span { font-size: 1.05rem; font-weight: 800; }
.admin-mobile-head { align-items: center; border-bottom: 1px solid #454851; display: flex; min-height: 44px; padding-bottom: .9rem; }
.admin-mobile-menu { display: none; }
.admin-sidebar nav { display: grid; gap: .35rem; overflow-y: auto; padding-right: .15rem; }
.admin-nav-section-label { color: #aeb3bd; font-size: .66rem; font-weight: 800; letter-spacing: .12em; margin: .5rem .65rem .3rem; text-transform: uppercase; }
.admin-nav-divider { border-top: 1px solid #4a4d56; margin: .7rem .5rem .45rem; }
.admin-nav-link { background: transparent; border: 0; border-radius: 6px; color: #d8dbe0; display: grid; font-size: .88rem; gap: .05rem; justify-items: start; padding: .7rem .75rem; text-align: left; }
.admin-nav-link:hover { background: #3d4048; color: white; }
.admin-nav-link.active { background: #505462; color: white; }
.admin-nav-link small { color: inherit; opacity: .72; }
.admin-sidebar-account { display: grid; gap: .45rem; margin-top: auto; }
.admin-sidebar .employee-signout { margin: 0; padding: .38rem .55rem !important; width: 100%; }
.admin-main { min-width: 0; padding: 1.25rem clamp(1.25rem, 3vw, 2.75rem) 3rem; }
.admin-page-banner { align-items: center; background: #44494e; border: 1px solid #393e43; border-radius: 8px; box-shadow: 0 2px 8px rgba(25, 30, 35, .08); color: #fff; display: flex; gap: 1rem; justify-content: space-between; margin-bottom: 1.25rem; padding: 1rem 1.15rem; }
.admin-page-banner h1 { color: #fff; font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 800; line-height: 1.15; margin: 0; }
.admin-page-banner.company-banner { justify-content: flex-start; }
.admin-page-banner.company-banner-junk { border-bottom: 4px solid #13b05f; }
.admin-page-banner.company-banner-moving { border-bottom: 4px solid #9f0000; }
.admin-page-brand-logo { display: block; flex: 0 0 auto; height: 2.75rem; max-width: 9.5rem; object-fit: contain; width: auto; }
.admin-topbar { align-items: center; display: flex; justify-content: space-between; margin-bottom: 2rem; }
.admin-topbar h1 { font-size: 1.65rem; margin: 0; }
.eyebrow { color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .14em; margin: 0 0 .25rem; text-transform: uppercase; }
.admin-view { display: none; }
.admin-view.active { display: block; }
.admin-view.active.view-entering { animation: employee-view-fade .34s ease-out both; }
.admin-dashboard-grid, .recent-company-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1.5rem; }
.recent-company-grid { margin-top: .5rem; }
.segmented-control { align-items: stretch; background: var(--soft); border: 1px solid var(--line); border-radius: 8px; display: flex; gap: .35rem; padding: .35rem; }
.segmented-control button { align-items: center; background: transparent; border: 0; color: var(--muted); display: inline-flex; justify-content: center; line-height: 1.4; min-height: 42px; min-width: 118px; padding: .65rem 1rem; white-space: nowrap; }
.segmented-control button.active { background: #5d6275; color: white; }
.compact-record { align-items: start; }
.project-margin-section { border-top: 1px solid var(--line); margin: 1.25rem 0; padding-top: 1.25rem; }
.project-grid { display: grid; gap: 1rem; }
.project-card { border: 1px solid #d8dadd; border-radius: 7px; display: grid; gap: 1rem; padding: .85rem; }
.margin-metrics { display: grid; gap: .6rem; grid-template-columns: repeat(4, 1fr); }
.margin-metrics span { color: var(--muted); display: grid; gap: .2rem; }
.margin-metrics strong { color: var(--ink); font-size: 1.05rem; }
.margin-metrics strong.positive { color: #166534; }
.margin-metrics strong.negative { color: #b42318; }
.cost-lines { display: grid; gap: .5rem; }
.cost-line { display: grid; gap: .5rem; grid-template-columns: 130px 1fr 120px auto; }
.private-wages { background: #f4f5f6; border: 1px solid #d8dadd; border-radius: 7px; display: grid; gap: .55rem; grid-template-columns: repeat(2, minmax(0,1fr)); margin-top: .9rem; padding: .7rem; }
.private-wages > strong { grid-column: 1 / -1; }
.admin-page .panel { border-color: #dfe1e4; border-radius: 7px; box-shadow: 0 1px 3px rgba(22, 27, 33, .05); padding: 1rem; }
.admin-page .panel h2 { font-size: 1.05rem; line-height: 1.35; margin: 0; }
.admin-page .section-intro, .admin-page .status-line, .admin-page small { font-size: .82rem; }
.admin-page .section-intro { line-height: 1.55; margin: .45rem 0 0; }
.admin-page .panel-head { align-items: flex-start; gap: 1.5rem; margin-bottom: 1.4rem; }
.admin-page .panel-head > div { min-width: 0; }
.admin-page button, .admin-page .button-link, .admin-page input, .admin-page select { font-size: .84rem; }
.admin-page button, .admin-page .button-link { background: #5d6275; border-color: #5d6275; border-radius: 6px; color: #fff; padding: .52rem .72rem; }
.admin-page button.secondary, .admin-page .button-link.secondary { background: #fff; border-color: #cfd3d8; color: #3f4650; }
.admin-page button.danger { background: #fff; border-color: #9ca3ad; color: #4b5058; }
.admin-page .admin-sidebar .admin-nav-link { background: transparent; border: 0; color: #d8dbe0; padding: .7rem .75rem; }
.admin-page .admin-sidebar .admin-nav-link:hover { background: #3d4048; color: #fff; }
.admin-page .admin-sidebar .admin-nav-link.active { background: #505462; color: #fff; }
.admin-page .completion-subnav-link { background: transparent; border: 0; color: #cfd3d7; }
.admin-page .completion-subnav-link:hover { background: #3c3f46; color: #fff; }
.admin-page .completion-subnav-link.active { background: #eceeef; color: #30343a; }
.admin-page .completion-company-choice,
.admin-page .completion-company-choice:hover,
.admin-page .completion-company-choice:active { background: transparent; border: 0; box-shadow: none; padding: 2rem; }
.admin-page .completion-picker-backdrop,
.admin-page .completion-picker-backdrop:hover,
.admin-page .completion-picker-backdrop:focus,
.admin-page .completion-picker-backdrop:active { background: rgba(36,40,44,.68); border: 0; border-radius: 0; box-shadow: none; padding: 0; }
.admin-page .record-list, .admin-page .user-list { gap: .75rem; }
.admin-page .record-row, .admin-page .user-row { border-radius: 7px; gap: .65rem; padding: .75rem; }
.admin-page .analytics-hero { border-top: 1px solid #dfe1e4; }
.admin-page .analytics-summary { gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 1.5rem 0 2rem; }
.admin-page .analytics-card { align-content: start; background: #f7f8f9; border-color: #dfe1e4; border-radius: 7px; gap: .7rem; min-height: 132px; padding: 1.05rem; }
.admin-page .analytics-card span { display: block; font-size: .8rem; line-height: 1.5; }
.admin-page .analytics-card strong { color: #343941; display: block; font-size: 1.18rem; line-height: 1.35; }
.admin-page .analytics-card small { display: block; line-height: 1.55; margin-top: .05rem; }
.admin-page .dashboard-pill-row { gap: .8rem; margin: 0 0 1.5rem; }
.admin-page .dashboard-pill { align-items: center; background: #eef0f2; border-color: #d8dadd; color: #4b5058; display: inline-flex; font-size: .8rem; line-height: 1.4; min-height: 38px; padding: .6rem .9rem; }
.employees-page-stack { display: grid; gap: 1.25rem; }
.employee-create-panel { overflow: hidden; }
.admin-page .employee-create-toggle { align-items: center; background: transparent; border: 0; color: #30343a; display: flex; font-family: var(--heading-font); font-size: 1.2rem; justify-content: space-between; padding: 0; text-align: left; width: 100%; }
.admin-page .employee-create-toggle:hover,
.admin-page .employee-create-toggle:focus { background: transparent; border: 0; color: #30343a; }
.employee-create-chevron { color: #596d7b; font-family: Arial, sans-serif; font-size: 2rem; line-height: 1; transition: transform .3s cubic-bezier(.4,0,.2,1); }
.employee-create-panel.is-open .employee-create-chevron { transform: rotate(90deg); }
.employee-create-body { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .34s cubic-bezier(.4,0,.2,1), opacity .22s ease; }
.employee-create-form { display: grid; gap: 1rem; min-height: 0; overflow: hidden; padding-top: 0; transition: padding-top .34s cubic-bezier(.4,0,.2,1); }
.employee-create-panel.is-open .employee-create-body { grid-template-rows: 1fr; opacity: 1; }
.employee-create-panel.is-open .employee-create-form { padding-top: 1.15rem; }
.admin-customer-search { display: grid; gap: .45rem; margin-bottom: 1.15rem; }
.admin-customer-search span { color: #596069; font-size: .78rem; font-weight: 750; }
.admin-customer-search input { width: 100%; }
.admin-page .bizconnect-saved-button:disabled { background: #e6e8ea; border-color: #c8ccd0; color: #777d84; cursor: default; opacity: 1; }
.completion-costs, .hauling-photo-folder { border-top: 1px solid #e1e3e6; padding-top: .75rem; }
.completion-costs > summary, .hauling-photo-folder > summary { align-items: center; cursor: pointer; display: flex; justify-content: space-between; }
.hauling-photo-grid { display: grid; gap: .65rem; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); margin: .75rem 0; }
.hauling-photo-grid a { color: #3f4650; display: grid; font-size: .78rem; gap: .35rem; text-decoration: none; }
.hauling-photo-grid img { aspect-ratio: 4 / 3; border-radius: 6px; object-fit: cover; width: 100%; }
.margin-metrics.compact { margin-top: .85rem; }
.inline-actions { display: flex; gap: .55rem; margin-top: .7rem; }
.recent-work-card { background: white; border: 1px solid #dfe1e4; border-radius: 7px; overflow: hidden; }
.recent-work-body { display: grid; font-size: .82rem; gap: .72rem; padding: .85rem; }
.recent-work-body .record-head { align-items: center; }
.recent-work-body .record-head > div { display: grid; gap: .1rem; }
.recent-work-body small { color: #737983; font-size: .7rem; text-transform: uppercase; }
.recent-margin { align-items: center; background: #f1f2f4; border-radius: 6px; display: flex; gap: .75rem; justify-content: space-between; padding: .55rem .65rem; }
.recent-margin span { color: #707580; font-size: .73rem; }
.recent-margin strong { font-size: .8rem; }
.recent-margin strong.positive { color: #46624e; }
.recent-margin strong.negative { color: #7b4c4c; }
.recent-margin.pending { background: #f5f3ed; }
.recent-margin.pending strong { color: #776947; }
.analytics-toolbar { align-items: end; display: flex; gap: 2rem; justify-content: space-between; }
.week-picker { min-width: 170px; }
.analytics-explainer { background: #f0f2f4; border: 1px solid #dfe1e4; border-radius: 7px; display: grid; font-size: .82rem; gap: .35rem; line-height: 1.5; margin: 1.25rem 0; padding: .85rem 1rem; }
.analytics-explainer span { color: #626872; }
.weekly-summary { border: 1px solid #d7dade; border-radius: 8px; margin-bottom: 1.75rem; overflow: hidden; }
.weekly-summary-head { align-items: center; background: #f4f5f6; display: flex; justify-content: space-between; padding: .9rem 1rem; }
.weekly-summary-head > div { display: grid; gap: .25rem; }
.weekly-summary-head span, .weekly-summary-head small { color: #686f78; font-size: .76rem; }
.weekly-metric-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 1rem; }
.weekly-company-row { border-top: 1px solid #e1e3e6; color: #5b626c; display: flex; font-size: .8rem; gap: 2rem; padding: .8rem 1rem; }
.weekly-overview { background: #f3f4f6; border: 1px solid #dfe1e4; border-radius: 7px; display: grid; gap: 1px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 1rem 0 1.5rem; overflow: hidden; }
.weekly-overview > div { align-content: start; background: #fff; display: grid; gap: .65rem; min-height: 94px; padding: 1rem 1.1rem; }
.weekly-overview span { color: #6c727b; font-size: .77rem; line-height: 1.45; }
.weekly-overview strong { color: #343941; font-size: 1rem; line-height: 1.45; }
.admin-page .analytics-view-tabs { gap: .75rem; margin-bottom: .25rem; }
.admin-page .analytics-view-tabs button:not(.secondary) { background: #5d6275; border-color: #5d6275; }
.analytics-group-heading { align-items: baseline; display: flex; gap: .65rem; grid-column: 1 / -1; margin-top: .25rem; }
.analytics-group-heading span { color: #737983; font-size: .78rem; }
.overview-period-heading { align-items: baseline; display: flex; gap: .65rem; grid-column: 1 / -1; }
.overview-period-heading strong { color: #30343f; font-size: .92rem; }
.overview-period-heading span { color: #747985; font-size: .76rem; line-height: 1.4; }
.weekly-overview > .overview-period-heading { background: #f1f1f4; border: 0; display: flex; min-height: 0; padding: .7rem 1rem; }

/* Consistent contrast and surface hierarchy across every admin view. */
.admin-page .panel { background: #ffffff; border-color: #d8d9df; box-shadow: 0 2px 8px rgba(37, 39, 47, .045); }
.admin-page .panel h2,
.admin-page .panel h3 { color: #30333c; }
.admin-page .analytics-card,
.admin-page .record-row,
.admin-page .user-row,
.admin-page .recent-work-card,
.admin-page .project-card { background: #fbfbfc; border-color: #d9dae0; box-shadow: none; }
.admin-page .analytics-card strong,
.admin-page .weekly-overview strong { color: #353a4b; }
.admin-page .dashboard-pill { background: #fafafd; border-color: #d4d6dd; color: #4c5161; }
.admin-page .weekly-overview { background: #dadbe1; border-color: #d6d7dd; box-shadow: none; }
.admin-page .weekly-overview > div { background: #fafafd; }
.admin-page .recent-company-grid > div { background: #f5f5f7; border: 1px solid #dedfe4; border-radius: 8px; padding: 1rem; }
.admin-page .recent-company-grid h3 { font-size: .9rem; letter-spacing: .01em; margin: 0 0 .85rem; }
.admin-page .analytics-explainer,
.admin-page .weekly-summary-head { background: #f3f3f6; }
.admin-page input:focus,
.admin-page select:focus,
.admin-page textarea:focus { border-color: #777d96; box-shadow: 0 0 0 3px rgba(102, 109, 133, .12); outline: none; }
.admin-page .segmented-control button { background: transparent; border: 1px solid transparent; color: #646977; }
.admin-page .segmented-control button.active { background: #555b6d; border-color: #555b6d; box-shadow: 0 2px 5px rgba(44, 47, 57, .14); color: #fff; font-weight: 800; }
.admin-page .segmented-control button.active::before { content: "✓"; font-size: .76rem; margin-right: .45rem; }
.admin-page .segmented-control button:not(.active):hover { background: #e8e9ed; color: #353944; }
.admin-page .record-head { align-items: flex-start; gap: 1.25rem; }
.admin-page .record-head > div:first-child { display: grid; gap: .4rem; min-width: 0; }
.admin-page .record-head strong { line-height: 1.4; }
.admin-page .record-head span { line-height: 1.5; }
.admin-page .record-meta { gap: .7rem 1rem; line-height: 1.45; margin-top: .2rem; }
.admin-page .completion-breakdown { gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); margin: .35rem 0; }
.admin-page .completion-breakdown-item { min-height: 68px; padding: .7rem; }
.admin-page .hauling-admin-form { gap: 1.15rem; padding: 1rem; }
.matched-labour { background: #f3f3f6; border: 1px solid #dedfe4; border-radius: 7px; display: grid; gap: .65rem; margin: .8rem 0; padding: .8rem; }
.matched-labour > div:first-child { display: flex; gap: 1rem; justify-content: space-between; }
.matched-employee { align-items: center; background: #fff; border-radius: 6px; display: grid; gap: .75rem; grid-template-columns: minmax(120px, 1fr) minmax(180px, 1.5fr) auto; padding: .65rem .75rem; }
.timesheet-admin-editor { background: #f5f5f7; border: 1px solid #d9dae0; border-radius: 7px; padding: .85rem; }
.timesheet-edit-rows { display: grid; gap: .75rem; }
.timesheet-edit-row { align-items: end; display: grid; gap: .65rem; grid-template-columns: repeat(4, minmax(130px, 1fr)); }
.stat-review { background: #f4f4f7; border: 1px solid #d9dae1; border-radius: 7px; display: grid; gap: .75rem; padding: .85rem; }
.stat-review h3 { margin: 0; }
.stat-review article { background: #fff; border: 1px solid #e0e1e5; border-radius: 6px; display: grid; gap: .75rem; padding: .75rem; }
.stat-review article > div:first-child { display: flex; justify-content: space-between; }
.stat-review p { color: #5d626e; font-size: .8rem; line-height: 1.5; margin: 0; }
.stat-pay-grid { display: grid; gap: .65rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-pay-grid span { color: #6c717c; display: grid; font-size: .76rem; gap: .3rem; }
.stat-pay-grid strong { color: #343844; font-size: .85rem; }
.timesheet-progress-panel { margin-bottom: 1.5rem; }
.embedded-admin-view.active { display: block; height: calc(100vh - 132px); margin: 0; min-height: 520px; }
.admin-tool-frame { background: transparent; border: 0; border-radius: 0; display: block; height: 100% !important; min-height: 0; width: 100%; }
html.embedded-admin-tool .app-header { display: none; }
html.admin-seamless-embed .app-shell {
  margin-left: 0;
  margin-right: 0;
  max-width: none;
  padding: 1rem 0 0;
  width: 100%;
}
html.admin-seamless-embed,
html.admin-seamless-embed body { background: transparent; }
html.admin-seamless-embed {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
html.admin-seamless-embed::-webkit-scrollbar,
html.admin-seamless-embed body::-webkit-scrollbar { display: none; }
html.admin-seamless-embed body.completion-app .app-shell.app-shell { background: transparent; }

/* Moving Leads uses the whole admin workspace, matching the Junk Leads inbox. */
body.admin-page:has([data-admin-view="moving-leads"].active) {
  height: var(--admin-visual-viewport-height, 100dvh);
  overflow: hidden;
}

body.admin-page:has([data-admin-view="moving-leads"].active) .admin-app {
  height: var(--admin-visual-viewport-height, 100dvh);
  min-height: 0;
}

body.admin-page:has([data-admin-view="moving-leads"].active) .admin-main {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  height: var(--admin-visual-viewport-height, 100dvh);
  min-height: 0;
  overflow: hidden;
  padding: 0;
}

body.admin-page:has([data-admin-view="moving-leads"].active) .admin-page-banner {
  display: none;
}

body.admin-page:has([data-admin-view="moving-leads"].active) [data-admin-view="moving-leads"].active,
body.admin-page:has([data-admin-view="moving-leads"].active) [data-admin-view="moving-leads"].active iframe {
  display: block;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  width: 100%;
}

html.moving-leads-active,
body.admin-page.moving-leads-active,
body.admin-page.moving-leads-active .admin-app,
body.admin-page.moving-leads-active .admin-main,
body.admin-page.moving-leads-active [data-admin-view="moving-leads"].active,
body.admin-page.moving-leads-active [data-admin-view="moving-leads"].active iframe {
  background: #303239 !important;
}

html.admin-seamless-embed body.moving-leads-page .jb-shell {
  height: 100%;
  max-width: none;
  padding: 0;
  width: 100%;
}

html.admin-seamless-embed body.moving-leads-page .jb-inbox-app {
  border: 0;
  border-radius: 0;
  height: 100%;
  width: 100%;
}

@media (max-width: 760px) {
  body.admin-page:has([data-admin-view="moving-leads"].active) .admin-app {
    display: block;
    height: var(--admin-visual-viewport-height, 100dvh);
    min-height: 0;
    overflow: hidden;
  }

  body.admin-page:has([data-admin-view="moving-leads"].active) .admin-sidebar {
    display: none;
  }

  body.admin-page:has([data-admin-view="moving-leads"].active) .admin-main {
    height: var(--admin-visual-viewport-height, 100dvh);
    min-height: 0;
    overflow: hidden;
    padding: 0;
  }
}

body.hauling-app.hauling-quotes-page.moving-leads-page #searchDialog input {
  border-color: #c84f58 !important;
}

body.hauling-app.hauling-quotes-page.moving-leads-page #searchDialog input:focus {
  border-color: #d86a72 !important;
  box-shadow: 0 0 0 3px rgba(200, 79, 88, .18) !important;
}

body.hauling-app.hauling-quotes-page.moving-leads-page :is(
  #saveNewNoteButton,
  #publishScheduleDraftButton
) {
  color: #fff !important;
}

body.hauling-app.hauling-quotes-page.moving-leads-page #scheduleDialog .employee-check {
  background: #555963;
  border: 1px solid #6a6f79;
  border-radius: 7px;
  color: #fff;
  padding: .55rem .65rem;
}

body.hauling-app.hauling-quotes-page.moving-leads-page #scheduleDialog .employee-check small {
  color: #d3d7dc;
}

body.hauling-app.hauling-quotes-page.moving-leads-page #deleteScheduleDraftButton {
  background: #454851;
  border-color: #6a6f79;
  color: #ef626b !important;
}

body.hauling-app.hauling-quotes-page.moving-leads-page #deleteScheduleDraftButton:hover {
  background: rgba(220, 38, 38, .12);
  border-color: #dc2626;
  color: #ff6b73 !important;
}

@media (max-width: 760px) {
  html.mobile-system-dark body.hauling-app.hauling-quotes-page.moving-leads-page #searchDialog .jb-search-results button strong {
    color: #fff !important;
  }
}

.employee-portal { --portal-bg: #f1f1f3; --portal-sidebar: #303239; background: var(--portal-bg); color: #292c34; }
.employee-portal-shell { display: grid; grid-template-columns: 218px minmax(0, 1fr); min-height: 100vh; }
.employee-sidebar { background: var(--portal-sidebar); color: #fff; display: flex; flex-direction: column; gap: 1rem; height: 100vh; padding: 1rem .8rem; position: sticky; top: 0; }
.employee-mobile-head { align-items: center; border-bottom: 1px solid #454851; display: flex; min-height: 44px; padding-bottom: .9rem; }
.employee-brand { align-items: center; display: flex; padding: 0 .45rem; }
.employee-brand img { filter: brightness(0) invert(1); height: 38px; max-width: 142px; object-fit: contain; }
@media (min-width: 761px) {
  .admin-brand,
  .employee-brand { padding-top: 1.1875rem; }
}
.employee-sidebar nav { display: grid; gap: .35rem; overflow-y: auto; }
.employee-sidebar .admin-nav-link { gap: .22rem; line-height: 1.35; padding: .7rem .75rem; }
.employee-sidebar .admin-nav-link span { font-weight: 750; }
.employee-sidebar .admin-nav-link small { line-height: 1.4; }
.completion-company-submenu { border-left: 1px solid #59606a; display: grid; gap: .2rem; margin: .1rem 0 .35rem .75rem; padding-left: .55rem; }
.completion-company-submenu[hidden] { display: none; }
.completion-subnav-link { background: transparent; border: 0; border-radius: 6px; color: #cfd3d7; font-size: .82rem; font-weight: 650; padding: .5rem .65rem; text-align: left; }
.completion-subnav-link:hover { background: #3c3f46; color: #fff; }
.completion-subnav-link.active { background: #eceeef; color: #30343a; }
.admin-tools-toggle { align-items: center; grid-template-columns: minmax(0, 1fr) auto; }
.nav-dropdown-chevron { font-family: Arial, sans-serif; font-size: 1.35rem; line-height: 1; transition: transform .28s cubic-bezier(.4,0,.2,1); }
.admin-tools-toggle[aria-expanded="true"] .nav-dropdown-chevron { transform: rotate(90deg); }
.admin-tools-submenu { border-left: 1px solid transparent; display: grid; grid-template-rows: 0fr; margin: 0 0 0 .75rem; opacity: 0; padding-left: .55rem; transition: grid-template-rows .3s cubic-bezier(.4,0,.2,1), opacity .2s ease, margin-bottom .3s ease, border-color .2s ease; }
.admin-tools-submenu-inner { display: grid; gap: .2rem; min-height: 0; overflow: hidden; }
.admin-tools-submenu.is-open { border-left-color: #59606a; grid-template-rows: 1fr; margin-bottom: .35rem; opacity: 1; }
.admin-page .admin-tools-subnav-junk { border-left: 3px solid #13b05f; }
.admin-page .admin-tools-subnav-moving { border-left: 3px solid #9f0000; }
.employee-sidebar-account { display: grid; gap: .45rem; margin-top: auto; }
.employee-profile { align-items: center; border-top: 1px solid #454851; display: grid; gap: .7rem; grid-template-columns: 38px minmax(0, 1fr); padding: .8rem .35rem .25rem; }
.employee-profile-avatar { align-items: center; background: #59616d; border-radius: 50%; color: #fff; display: inline-flex; font-size: 1rem; font-weight: 800; height: 38px; justify-content: center; width: 38px; }
.employee-profile strong { font-size: .9rem; line-height: 1.3; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.employee-signout { margin: 0; padding: .38rem .55rem; width: 100%; }
.employee-notification-toggle {
  background: #454851 !important;
  border: 1px solid #5a5e68 !important;
  color: #13b05f !important;
  font-size: .76rem;
  margin: .25rem 0 0;
  padding: .38rem .55rem !important;
  width: 100%;
}
.employee-notification-toggle:hover { background: #303538 !important; border-color: #282c2f !important; }
.employee-notification-toggle[data-push-state="enabled"] { color: #fff !important; }
.employee-notification-toggle[data-push-state="denied"],
.employee-notification-toggle[data-push-state="insecure"],
.employee-notification-toggle[data-push-state="unsupported"] { color: #c9cdca !important; }
.employee-main { min-width: 0; padding: 1.25rem clamp(1.25rem, 3vw, 2.75rem) 3rem; }
.employee-topbar { align-items: center; display: flex; justify-content: space-between; margin-bottom: 1.5rem; }
.employee-topbar h1 { font-size: 1.65rem; line-height: 1.25; margin: 0; }
.employee-identity { display: grid; gap: .25rem; justify-items: end; line-height: 1.35; }
.employee-identity span { color: #757b84; font-size: .8rem; }
.employee-view { display: none; }
.employee-view.active { display: block; }
.employee-view.active.view-entering { animation: employee-view-fade .34s ease-out both; }
@keyframes employee-view-fade {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}
.employee-welcome { display: grid; gap: .5rem; margin-bottom: 1.9rem; }
.employee-welcome .eyebrow, .employee-welcome .section-intro { margin: 0; }
.employee-welcome .eyebrow { font-size: .82rem; text-transform: none; }
.employee-welcome h2 { font-size: clamp(1.5rem, 3.1vw, 2.1rem); letter-spacing: .0175em; line-height: 1.25; margin: 0; text-transform: uppercase; }
.employee-welcome .section-intro { line-height: 1.6; }
.employee-overview-grid { border-top: 1px solid #c9cdd1; display: grid; gap: 1.15rem; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 1.5rem; margin-top: .35rem; padding-top: 1.6rem; }
.employee-stat-card { align-content: start; background: #fff; border: 1px solid #dfe1e4; border-radius: 8px; color: inherit; cursor: pointer; display: grid; gap: .65rem; min-height: 145px; padding: 1.15rem 5rem 1.15rem 1.15rem; position: relative; text-align: left; width: 100%; }
.employee-stat-card:hover { background: #f7f8f9; border-color: #b9c0c6; box-shadow: 0 3px 10px rgba(30,36,42,.06); }
.employee-stat-card:focus-visible { outline: 3px solid rgba(89,109,123,.3); outline-offset: 2px; }
.employee-stat-card.primary { border-top: 4px solid #596d7b; }
.employee-stat-card.status-neutral { border-top: 4px solid #596d7b; }
.employee-stat-card.status-due { border-top: 4px solid #b42318; }
.employee-stat-card.status-submitted { border-top: 4px solid #2f7d4a; }
.employee-stat-card span { color: #676e77; font-size: .82rem; font-weight: 700; line-height: 1.45; }
.employee-stat-card strong { font-size: 1.55rem; line-height: 1.25; }
.employee-stat-card small { color: #777d85; line-height: 1.55; }
.employee-stat-card .employee-stat-chevron { color: #596d7b; font-family: Arial, sans-serif; font-size: 2.5rem; font-weight: 400; line-height: 1; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%); }
.employee-upcoming-panel { border-color: #dfe1e4; border-radius: 8px; box-shadow: 0 1px 3px rgba(22,27,33,.05); margin-bottom: 1.25rem; padding: 1.15rem; }
.employee-upcoming-panel .panel-head { margin-bottom: 1.25rem; }
.employee-upcoming-panel h2 { line-height: 1.35; }
.employee-upcoming-panel .section-intro { line-height: 1.55; margin-top: .4rem; }
.admin-employee-welcome { margin-bottom: 1.75rem; }
.admin-active-panel { margin-bottom: 1.25rem; }
.admin-business-card strong { font-size: clamp(1.05rem, 1.7vw, 1.45rem); overflow-wrap: anywhere; }
.admin-page .employee-stat-card {
  background: #fff;
  border: 1px solid #dfe1e4;
  border-radius: 8px;
  color: #292c34;
  padding: 1.15rem 5rem 1.15rem 1.15rem;
}
.admin-page .employee-stat-card.primary { border-top: 4px solid #596d7b; }
.admin-page .employee-stat-card:hover { background: #f7f8f9; border-color: #b9c0c6; box-shadow: 0 3px 10px rgba(30,36,42,.06); }
.admin-page .employee-stat-card span { color: #676e77; }
.admin-page .employee-stat-card strong { color: #292c34; }
.admin-page .employee-stat-card small { color: #777d85; }
.admin-page .employee-stat-card .employee-stat-chevron { color: #596d7b; }
.completion-company-picker { align-items: center; display: flex; inset: 0; justify-content: center; opacity: 1; padding: 2rem; position: fixed; transition: opacity .28s ease; z-index: 1200; }
.completion-company-picker[hidden] { display: none; }
.completion-company-picker:not([hidden]) .completion-picker-content { animation: completion-picker-content-in .2s ease-out; }
.completion-company-picker:not([hidden]) .completion-picker-backdrop { animation: completion-picker-tint-in .2s ease-out; }
@keyframes completion-picker-content-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes completion-picker-tint-in {
  from { backdrop-filter: blur(0); background-color: rgba(36,40,44,0); }
  to { backdrop-filter: blur(9px); background-color: rgba(36,40,44,.68); }
}
.completion-picker-backdrop { backdrop-filter: blur(9px); background: rgba(36,40,44,.68); border: 0; border-radius: 0; inset: -18px; padding: 0; position: absolute; width: calc(100% + 36px); }
.completion-picker-backdrop:hover,
.completion-picker-backdrop:focus,
.completion-picker-backdrop:active { background: rgba(36,40,44,.68); border: 0; box-shadow: none; transform: none; }
.completion-picker-content { max-width: 760px; position: relative; width: min(100%, 760px); z-index: 1; }
.completion-picker-content h2 { color: #fff; font-size: clamp(1.25rem, 2.8vw, 1.75rem); letter-spacing: .08em; margin: 0 0 2.25rem; opacity: 1; text-align: center; text-shadow: 0 2px 8px rgba(0,0,0,.72); text-transform: uppercase; transition: opacity .2s ease; }
.completion-company-options { align-items: stretch; display: grid; grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr); min-height: 250px; }
.completion-company-choice { align-items: center; background: transparent; border: 0; border-radius: 10px; display: flex; justify-content: center; opacity: 1; padding: 2rem; transition: opacity .2s ease, transform .42s cubic-bezier(.22,.8,.3,1); width: 100%; }
.completion-company-choice:hover { background: transparent; transform: none; }
.completion-company-choice:active { background: transparent; }
.completion-company-choice:focus-visible { outline: 3px solid rgba(89,109,123,.45); outline-offset: 3px; }
.completion-company-choice img { display: block; max-height: 155px; max-width: 100%; object-fit: contain; transform: none; transform-origin: center; transition: transform .2s ease-out; width: auto; }
.completion-company-choice:hover img { transform: scale(1.055); }
.completion-company-divider { background: #1f2327; display: block; opacity: 1; transition: opacity .16s ease; width: 1px; }
.completion-company-picker.is-selecting .completion-company-choice { pointer-events: none; }
.completion-company-picker.is-selecting .completion-company-choice img { transform: none; }
.completion-company-picker.is-selecting .completion-company-divider { opacity: 0; }
.completion-company-picker.is-selecting[data-selected-company="hauling"] .completion-company-choice[data-completion-company="hauling"] { transform: translateX(50%) scale(1.075); }
.completion-company-picker.is-selecting[data-selected-company="hauling"] .completion-company-choice[data-completion-company="completion"] { opacity: 0; transform: translateX(70vw) scale(.92); }
.completion-company-picker.is-selecting[data-selected-company="completion"] .completion-company-choice[data-completion-company="completion"] { transform: translateX(-50%) scale(1.075); }
.completion-company-picker.is-selecting[data-selected-company="completion"] .completion-company-choice[data-completion-company="hauling"] { opacity: 0; transform: translateX(-70vw) scale(.92); }
.completion-company-picker.is-fading { opacity: 0; }
.completion-company-picker.is-fading .completion-picker-content h2 { opacity: 0; }
.company-picker-open { overflow: hidden; }
.employee-welcome-intro { display: grid; gap: .5rem; margin: 0; pointer-events: none; position: fixed; transform-origin: center center; z-index: 1100; }
.employee-welcome-intro .eyebrow { font-size: .82rem; margin: 0; text-transform: none; }
.employee-welcome-intro h2 { font-size: clamp(1.5rem, 3.1vw, 2.1rem); letter-spacing: .0175em; line-height: 1.25; margin: 0; text-transform: uppercase; }
html.employee-intro-pending .employee-view[data-employee-view="home"] .employee-welcome { visibility: hidden; }
html.employee-intro-pending .employee-view[data-employee-view="home"] .employee-upcoming-panel,
html.employee-intro-pending .employee-view[data-employee-view="home"] .employee-overview-grid { opacity: 0; }
html.admin-intro-pending body.admin-dashboard-active .admin-page-banner,
html.admin-intro-pending body.admin-dashboard-active .admin-view[data-admin-view="dashboard"] .employee-upcoming-panel,
html.admin-intro-pending body.admin-dashboard-active .admin-view[data-admin-view="dashboard"] .employee-overview-grid { opacity: 0; }
html.admin-intro-pending body.admin-dashboard-active .admin-view[data-admin-view="dashboard"] .admin-employee-welcome { visibility: hidden; }
@media (prefers-reduced-motion: reduce) {
  .completion-company-picker,
  .completion-picker-content h2,
  .completion-company-choice,
  .completion-company-divider { transition: none; }
  .completion-company-picker:not([hidden]) .completion-picker-content,
  .completion-company-picker:not([hidden]) .completion-picker-backdrop { animation: none; }
  .employee-view.active.view-entering { animation: none; }
}

@media (max-width: 760px) {
  body.hauling-app.hauling-quotes-page .jb-composer-row {
    align-items: end;
  }

  body.hauling-app.hauling-quotes-page .jb-composer textarea {
    height: var(--jb-composer-control-height);
    line-height: 1.35rem;
    max-height: 7.6rem;
    min-height: var(--jb-composer-control-height);
    overflow-y: hidden;
    padding-bottom: .72rem;
    padding-top: .72rem;
  }

  body.hauling-app.hauling-quotes-page .jb-composer .toolbar-actions,
  body.hauling-app.hauling-quotes-page #sendManualMessageButton {
    align-self: end;
    height: var(--jb-composer-control-height);
    min-height: var(--jb-composer-control-height);
  }

  .leads-media-viewer {
    height: 88dvh;
    max-height: 88dvh;
    max-width: 96vw;
    width: 96vw;
  }

  .leads-media-viewer-chevron {
    font-size: 1.7rem;
    height: 2.35rem;
    width: 2.35rem;
  }

  #leadsMediaPrevious { left: .25rem; }
  #leadsMediaNext { right: .25rem; }
}
.employee-job-card { align-items: center; background: #fff; border: 1px solid #e0e2e5; border-radius: 7px; color: inherit; display: grid; gap: .9rem; grid-template-columns: minmax(170px, 1fr) minmax(180px, 1.5fr) auto auto; line-height: 1.45; padding: 1rem; text-align: left; width: 100%; }
.employee-job-card:hover { background: #f7f8f9; border-color: #b9c0c6; box-shadow: 0 3px 10px rgba(30,36,42,.06); }
.employee-job-card > div { display: grid; gap: .38rem; }
.employee-job-card strong { line-height: 1.4; }
.employee-job-card span, .employee-job-card small { color: #6f757d; font-size: .82rem; line-height: 1.5; }
.employee-job-card b { color: #505b65; font-size: .78rem; justify-self: end; white-space: nowrap; }
.dashboard-job-row { align-items: stretch; display: grid; gap: .55rem; grid-template-columns: minmax(0, 1fr) auto; }
.dashboard-job-actions { align-content: center; display: grid; gap: .45rem; }
.dashboard-completion-link { align-items: center; display: inline-flex; justify-content: center; white-space: nowrap; }
.employee-job-card.dashboard-work-moving { background: #fff; border-left: 5px solid #c93e3e; }
.employee-job-card.dashboard-work-hauling { background: #fff; border-left: 5px solid #13a75b; }
.employee-job-card.dashboard-work-misc { background: #fff; border-left: 5px solid #367db8; }
.dashboard-pending-dot { background: #c93636; border-radius: 50%; box-shadow: 0 0 0 3px rgba(201,54,54,.12); display: inline-block; height: .55rem; margin-right: .55rem; vertical-align: .05rem; width: .55rem; }
.dashboard-approve-shift { align-self: center; background: #424a52; color: #fff; }
.dashboard-approve-shift:hover { background: #30363c; color: #fff; }
.focused-schedule-card { border-color: #657784; box-shadow: 0 0 0 3px rgba(89,109,123,.16); }
.employee-tool-view.active { display: block; height: calc(100vh - 105px); margin: -.25rem -1rem -1rem; }
.employee-tool-frame { background: #fff; border: 1px solid #d9dde1; border-radius: 8px; height: 100%; width: 100%; }

@media (max-width: 900px) {
  .employee-overview-grid { grid-template-columns: 1fr 1fr; }
  .employee-overview-grid > :last-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .employee-portal { overflow-x: hidden; }
  .employee-portal-shell { display: block; }
  .employee-sidebar { box-shadow: 0 2px 12px rgba(25,27,32,.2); gap: 0; height: auto; padding: 0; position: sticky; top: 0; z-index: 100; }
  .employee-mobile-head { justify-content: space-between; min-height: 50px; padding: .5rem .7rem; }
  .employee-mobile-head .admin-mobile-menu { display: inline-flex; }
  .employee-sidebar nav { display: none; max-height: calc(100vh - 112px); overflow-y: auto; padding: .35rem .7rem .7rem; }
  .employee-sidebar.mobile-nav-open nav { display: grid; }
  .employee-sidebar-account { display: none; margin: 0; }
  .employee-sidebar.mobile-nav-open .employee-sidebar-account { display: grid; }
  .employee-profile { margin: 0 .7rem; padding: .7rem .35rem .45rem; }
  .employee-signout { border-radius: 0; margin: 0; padding: .4rem .55rem; }
  .employee-main { padding: .85rem .7rem 1.5rem; }
  .employee-topbar { margin-bottom: 1rem; }
  .employee-topbar h1 { font-size: 1.25rem; }
  .employee-identity { display: none; }
  .employee-overview-grid { grid-template-columns: 1fr; }
  .employee-overview-grid > :last-child { grid-column: auto; }
  .employee-welcome { margin-bottom: 1.5rem; }
  .employee-stat-card { min-height: 118px; padding: 1rem 4.5rem 1rem 1rem; }
  .employee-stat-card .employee-stat-chevron { right: 1rem; }
  .employee-job-card { align-items: start; grid-template-columns: 1fr; }
  .dashboard-job-row { grid-template-columns: 1fr; }
  .completion-company-picker { padding: 1.25rem; }
  .completion-picker-content h2 { margin-bottom: 1.4rem; }
  .completion-company-options { min-height: 180px; }
  .completion-company-choice { padding: 1rem; }
  .admin-page .completion-company-choice { padding: 1rem; }
  .completion-company-choice img { max-height: 105px; }
  .employee-tool-view.active { height: calc(100vh - 112px); margin: 0; }
}

@media (max-width: 760px) {
  .embedded-admin-view.active:not([data-admin-view="junk-leads"]):not([data-admin-view="moving-leads"]) {
    height: auto !important;
    min-height: 0;
    overflow: visible;
  }

  .embedded-admin-view.active:not([data-admin-view="junk-leads"]):not([data-admin-view="moving-leads"]) .admin-tool-frame {
    min-height: 420px;
    overflow: hidden;
  }

  .app-header,
  .admin-page-banner,
  .completion-form-brand,
  .jb-app-header {
    position: static !important;
    top: auto !important;
  }

  .admin-mobile-head,
  .employee-mobile-head { background: #303239; border-bottom: 1px solid #454851; min-height: 58px; padding: .65rem .8rem; }
  .admin-mobile-menu,
  .employee-mobile-head .admin-mobile-menu { background: #3b3e46 !important; border: 1px solid #555963 !important; border-radius: 8px; box-shadow: none; font-size: .78rem; gap: .5rem; min-height: 38px; padding: .45rem .7rem !important; }
  .admin-sidebar nav,
  .employee-sidebar nav { background: #303239; border-top: 0; gap: .2rem; grid-template-columns: 1fr; max-height: calc(100vh - 58px); padding: .65rem .7rem .8rem; }
  .admin-sidebar .admin-nav-section-label,
  .employee-sidebar .admin-nav-section-label { grid-column: 1; margin: .65rem .65rem .3rem; padding: 0; }
  .admin-sidebar .admin-nav-divider { grid-column: 1; margin: .7rem .45rem .25rem; }
  .admin-sidebar .admin-tools-submenu { grid-column: 1; }
  .admin-sidebar .admin-nav-link,
  .employee-sidebar .admin-nav-link { border: 0; border-left: 3px solid transparent; border-radius: 7px; gap: .2rem; min-height: 54px; padding: .62rem .75rem; }
  .admin-sidebar .admin-nav-link:hover,
  .employee-sidebar .admin-nav-link:hover { background: #393c44; }
  .admin-sidebar .admin-nav-link.active,
  .employee-sidebar .admin-nav-link.active { background: #464a55; border-left-color: #b7c0c7; }
  .admin-sidebar .admin-nav-link span,
  .employee-sidebar .admin-nav-link span { font-size: .88rem; line-height: 1.35; }
  .admin-sidebar .admin-nav-link small,
  .employee-sidebar .admin-nav-link small { font-size: .7rem !important; line-height: 1.4; }
  .employee-signout { background: #b42318 !important; border: 1px solid #d34a3f !important; border-radius: 0 0 8px 8px; color: #fff !important; padding: .4rem .55rem !important; }
  .employee-signout:hover { background: #8f1c14 !important; border-color: #b42318 !important; }
}
.timesheet-progress-grid { display: grid; gap: .85rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.timesheet-progress-card { background: #f8f8fa; border: 1px solid #d9dae0; border-radius: 7px; display: grid; gap: .75rem; grid-template-columns: 1fr auto auto; padding: .85rem; }
.timesheet-progress-card > div:first-child { display: grid; gap: .35rem; }
.timesheet-progress-card small { color: #727680; grid-column: 1 / -1; line-height: 1.45; }
.progress-status { color: #747985; font-size: .75rem; }
.progress-status.complete { color: #476451; }
.progress-hours { display: grid; gap: .2rem; justify-items: end; }
.progress-hours strong { color: #353947; }
.progress-hours span { color: #777b85; font-size: .7rem; }
.readiness-grid { border-top: 1px solid #dedfe4; display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; margin-top: 1rem; padding-top: 1rem; }
.readiness-grid h3 { font-size: .86rem; margin: 0 0 .65rem; }
.readiness-list { display: grid; gap: .45rem; }
.readiness-item { align-items: start; background: #f7f5ef; border-radius: 6px; display: grid; font-size: .76rem; gap: .5rem; grid-template-columns: 18px 1fr; padding: .55rem .6rem; }
.readiness-item.info { background: #f1f2f5; }
.readiness-item > span { align-items: center; background: #857550; border-radius: 999px; color: white; display: inline-flex; font-size: .68rem; font-weight: 900; height: 17px; justify-content: center; width: 17px; }
.readiness-item.info > span { background: #717789; }
.readiness-item p { line-height: 1.4; margin: 0; }
.readiness-clear { align-items: center; color: #496451; display: flex; font-size: .76rem; gap: .5rem; margin: 0; }

@media (max-width: 900px) {
  .admin-app { grid-template-columns: 1fr; }
  .admin-sidebar { height: auto; position: static; }
  .admin-sidebar nav { display: flex; overflow-x: auto; }
  .admin-nav-link { min-width: 145px; }
  .admin-back { display: none; }
  .admin-dashboard-grid, .recent-company-grid, .margin-metrics { grid-template-columns: 1fr 1fr; }
  .cost-line { grid-template-columns: 1fr 1fr; }
  .weekly-metric-grid, .weekly-overview { grid-template-columns: 1fr; }
  .timesheet-edit-row { grid-template-columns: 1fr 1fr; }
  .stat-pay-grid { grid-template-columns: 1fr 1fr; }
  .timesheet-progress-card { grid-template-columns: 1fr auto auto; }
}
@media (min-width: 761px) and (max-width: 900px) {
  .admin-app { display: grid; grid-template-columns: 218px minmax(0, 1fr); }
  .admin-sidebar { height: 100vh; position: sticky; }
  .admin-sidebar nav { display: grid; overflow-x: visible; overflow-y: auto; }
  .admin-nav-link { min-width: 0; }
}
@media (max-width: 600px) {
  .admin-dashboard-grid, .recent-company-grid, .margin-metrics { grid-template-columns: 1fr; }
  .admin-topbar { align-items: start; gap: 1rem; }
  .analytics-toolbar, .weekly-company-row { align-items: stretch; flex-direction: column; gap: .75rem; }
  .segmented-control { width: 100%; }
  .segmented-control button { flex: 1 1 0; min-width: 0; }
  .matched-employee, .stat-pay-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .embedded-admin-view.active { height: calc(100dvh - 132px); margin: 0; min-height: 420px; }
  body.admin-page { overflow-x: hidden; }
  .admin-app { display: block; }
  .admin-sidebar { box-shadow: 0 2px 12px rgba(25, 27, 32, .2); gap: 0; height: auto; padding: 0; position: sticky; top: 0; z-index: 100; }
  .admin-mobile-head { align-items: center; display: flex; justify-content: space-between; min-height: 50px; padding: .5rem .7rem; }
  .admin-brand { padding: 0; }
  .admin-brand img { height: 38px; max-width: 142px; }
  .admin-mobile-menu { align-items: center; background: #444852 !important; border: 1px solid #5d626e !important; color: #fff !important; display: inline-flex; gap: .45rem; min-height: 34px; padding: .35rem .6rem !important; }
  .admin-sidebar nav { background: #303239; border-top: 0; display: none; gap: .2rem; grid-template-columns: 1fr; max-height: calc(100vh - 58px); overflow-y: auto; padding: .65rem .7rem .8rem; }
  .admin-sidebar.mobile-nav-open nav { display: grid; }
  .admin-nav-link { border: 0; border-left: 3px solid transparent; border-radius: 7px; min-height: 54px; min-width: 0; padding: .62rem .75rem; width: 100%; }
  .admin-page .admin-sidebar .admin-nav-link { padding: .62rem .75rem; }
  .admin-nav-link span { font-size: .88rem; }
  .admin-nav-link small { font-size: .68rem !important; line-height: 1.3; }
  .admin-sidebar-account { display: none; margin: 0; }
  .admin-sidebar.mobile-nav-open .admin-sidebar-account { display: grid; }
  .admin-main { padding: .75rem .6rem 3rem; }
  .admin-topbar { align-items: center; gap: .6rem; margin-bottom: .75rem; }
  .admin-topbar .eyebrow { display: none; }
  .admin-topbar h1 { font-size: 1.22rem; line-height: 1.25; }
  .admin-topbar > button { flex: 0 0 auto; min-height: 36px; }
  .admin-page .panel { border-radius: 8px; padding: .7rem; }
  .admin-page .panel-head { align-items: stretch; flex-direction: column; gap: .6rem; margin-bottom: .8rem; }
  .admin-page .panel h2 { font-size: 1rem; }
  .admin-page .section-intro { font-size: .78rem; line-height: 1.45; margin-top: .3rem; }
  .admin-page .panel-head .toolbar-actions { width: 100%; }
  .admin-page .panel-head .toolbar-actions > * { flex: 1 1 auto; }
  .dashboard-pill-row { flex-wrap: nowrap; gap: .45rem !important; margin-bottom: .85rem !important; margin-left: -.6rem !important; margin-right: -.6rem !important; overflow-x: auto; padding: 0 .6rem .2rem; scrollbar-width: none; }
  .dashboard-pill-row::-webkit-scrollbar { display: none; }
  .admin-page .dashboard-pill { flex: 0 0 auto; font-size: .74rem; min-height: 32px; padding: .4rem .65rem; white-space: nowrap; }
  .admin-dashboard-grid,
  .recent-company-grid,
  .admin-page .analytics-summary,
  .weekly-metric-grid,
  .weekly-overview,
  .margin-metrics,
  .timesheet-company-grid,
  .admin-layout,
  .layout { grid-template-columns: 1fr; }
  .recent-company-grid { gap: .65rem; margin-top: .75rem; }
  .admin-page .recent-company-grid > div { padding: .65rem; }
  .timesheet-progress-grid { grid-template-columns: 1fr; }
  .readiness-grid { grid-template-columns: 1fr; }
  .timesheet-progress-card { gap: .55rem; grid-template-columns: 1fr auto auto; padding: .65rem; }
  .admin-page .analytics-card { gap: .45rem; min-height: 0; padding: .7rem; }
  .admin-page .analytics-card strong { font-size: 1.05rem; }
  .weekly-summary-head { align-items: flex-start; flex-direction: column; gap: .45rem; }
  .weekly-company-row { align-items: stretch; flex-direction: column; gap: .55rem; }
  .analytics-toolbar { align-items: stretch; flex-direction: column; gap: 1rem; }
  .week-picker { min-width: 0; width: 100%; }
  .analytics-view-tabs { display: grid; grid-template-columns: 1fr 1fr 1fr; }
  .analytics-view-tabs button { min-width: 0; padding-left: .35rem !important; padding-right: .35rem !important; }
  .segmented-control { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .segmented-control button { min-width: 0; width: 100%; }
  .admin-page .record-row,
  .admin-page .user-row,
  .admin-page .project-card,
  .admin-page .hauling-admin-form { gap: .75rem; padding: .7rem; }
  .admin-page .record-head { align-items: stretch; flex-direction: column; gap: .6rem; }
  .admin-page .record-head .toolbar-actions { justify-content: stretch; width: 100%; }
  .admin-page .record-head .toolbar-actions > *,
  .admin-page .record-head > .button-link { flex: 1 1 auto; text-align: center; }
  .admin-page .record-meta { align-items: flex-start; display: flex; font-size: .75rem; gap: .4rem .65rem; }
  .admin-page .completion-breakdown { gap: .45rem; grid-template-columns: 1fr 1fr; }
  .admin-page .completion-breakdown-item { min-height: 58px; padding: .55rem; }
  .completion-folder > summary,
  .completion-costs > summary,
  .hauling-photo-folder > summary { gap: .75rem; line-height: 1.4; }
  .completion-folder > summary strong,
  .completion-costs > summary strong,
  .hauling-photo-folder > summary strong { text-align: right; }
  .hauling-photo-grid { grid-template-columns: 1fr 1fr; }
  .margin-metrics { gap: .45rem; grid-template-columns: 1fr 1fr; }
  .matched-labour > div:first-child { align-items: flex-start; flex-direction: column; gap: .25rem; }
  .matched-employee { grid-template-columns: 1fr; }
  .cost-line { grid-template-columns: 1fr; }
  .cost-line button { width: 100%; }
  .inline-actions { align-items: stretch; display: grid; grid-template-columns: 1fr 1fr; }
  .inline-actions > * { min-width: 0; width: 100%; }
  .private-wages { grid-template-columns: 1fr; }
  .private-wages > strong { grid-column: 1; }
  .inline-apps { display: grid; grid-template-columns: 1fr; }
  .timesheet-edit-row { background: #fff; border: 1px solid #dedfe4; border-radius: 7px; grid-template-columns: 1fr 1fr; padding: .7rem; }
  .timesheet-edit-row label:nth-of-type(7),
  .timesheet-edit-row button { grid-column: 1 / -1; }
  .stat-pay-grid { grid-template-columns: 1fr 1fr; }
  .timesheet-table-wrap,
  .analytics-table-wrap { margin-left: -.7rem; margin-right: -.7rem; padding: 0 .7rem .3rem; width: calc(100% + 1.4rem); }
  .timesheet-table { font-size: .78rem; }
  .analytics-table { min-width: 720px; }
  .toolbar-actions { justify-content: stretch; }
  .toolbar-actions > button,
  .toolbar-actions > .button-link { flex: 1 1 auto; text-align: center; }
  .timesheet-progress-panel,
  .admin-dashboard-grid { margin-bottom: .85rem; }
  .weekly-overview { margin: .75rem 0 1rem; }
  .weekly-overview > div { min-height: 72px; padding: .7rem .8rem; }
  .weekly-summary { margin-bottom: 1rem; }
  .analytics-explainer { margin: .8rem 0; padding: .7rem; }
}

@media (min-width: 430px) and (max-width: 760px) {
  .admin-page .analytics-summary { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 429px) {
  .inline-actions { grid-template-columns: 1fr; }
}

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

.timesheet-table {
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 520px;
  width: 100%;
}

.timesheet-table th,
.timesheet-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.55rem 0.45rem;
  text-align: right;
  white-space: nowrap;
}

.timesheet-table th:first-child,
.timesheet-table td:first-child {
  text-align: left;
}

.timesheet-table thead th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.timesheet-table tfoot th,
.timesheet-table tfoot td {
  border-bottom: 0;
  color: var(--teal-dark);
  font-weight: 800;
}

.timesheet-company-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.timesheet-company-total,
.company-total-section {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.4rem;
  padding: 0.8rem;
}

.timesheet-company-total h3,
.company-total-section h3 {
  font-size: 1rem;
  margin: 0;
}

.muted-summary-line strong {
  color: var(--muted);
}

.timesheet-record details {
  border-top: 1px solid var(--line);
  padding-top: 0.7rem;
}

.timesheet-record summary {
  cursor: pointer;
  font-weight: 800;
}

.record-days {
  color: var(--muted);
  display: grid;
  gap: 0.75rem;
  margin-top: 0.6rem;
}

.timesheet-day {
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0.75rem;
}

.timesheet-entry-day {
  display: grid;
  gap: 0.75rem;
}

.schedule-admin-panel {
  margin-bottom: 1.25rem;
}

.schedule-job-drawer {
  border-top: 1px solid var(--line);
  margin-top: 1rem;
  padding-top: 0.8rem;
}

.schedule-job-drawer > summary {
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
}

.schedule-job-list {
  display: grid;
  gap: 0.75rem;
}

.schedule-job-list h2 {
  font-size: 1.25rem;
  margin: 0;
}

.schedule-layout {
  grid-template-columns: minmax(0, 1fr);
}

.calendar-toolbar {
  align-items: center;
  display: flex;
  gap: .45rem;
  justify-content: center;
  margin-bottom: 0.8rem;
  margin-left: auto;
  margin-right: auto;
  max-width: 720px;
  width: 100%;
}

.calendar-toolbar strong {
  font-size: 1.1rem;
  min-width: 9.5rem;
  text-align: center;
}

.calendar-month-chevron {
  align-items: center;
  border-radius: 50%;
  display: inline-flex;
  font-size: 1.35rem;
  height: 2rem;
  justify-content: center;
  min-height: 2rem;
  padding: 0;
  width: 2rem;
}

.calendar-weekdays,
.schedule-calendar {
  display: grid;
  gap: 0.35rem;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  text-align: center;
  text-transform: uppercase;
  margin-left: auto;
  margin-right: auto;
  max-width: 720px;
  width: 100%;
}

.schedule-calendar {
  margin: 0 auto 1rem;
  max-width: 720px;
  width: 100%;
}

.calendar-day {
  align-items: center;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 0.15rem;
  justify-items: center;
  min-height: 4rem;
  padding: 0.4rem 0.25rem;
  position: relative;
  transition: background-color .22s ease, border-color .22s ease, color .22s ease, box-shadow .22s ease;
}

.calendar-day:hover {
  background: #eef0f2;
}

.calendar-day-empty {
  background: transparent;
  border: 0;
}

.calendar-day span {
  font-weight: 800;
}

.calendar-day small {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.1;
  text-align: center;
}

.calendar-day.has-work {
  border-color: #101214;
  box-shadow: none;
}

.calendar-day.has-work small {
  color: #101214;
  font-weight: 800;
}

.calendar-day-markers { align-items: center; bottom: .38rem; display: flex; gap: .22rem; justify-content: center; left: .2rem; position: absolute; right: .2rem; }
.calendar-marker { border-radius: 50%; display: block; height: .38rem; width: .38rem; }
.calendar-marker.time-off { background: #3578d4; }
.calendar-marker.stat-holiday { background: #7651b5; }
.calendar-marker.moving { background: #b4232c; }
.calendar-marker.hauling { background: #17834b; }
.calendar-marker.misc { background: #df7a20; }

.calendar-day.today span {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.calendar-day.selected {
  background: #3f4249;
  border-color: #3f4249;
  color: #ffffff;
}

.calendar-day.selected small {
  color: #ffffff;
}
.calendar-day.selected.has-work { border-color: #101214; box-shadow: inset 0 0 0 1px #101214; }

.selected-date-title {
  border-top: 1px solid var(--line);
  font-size: 1rem;
  line-height: 1.3;
  margin: 1rem 0 .4rem;
  padding-top: .85rem;
}

.selected-day-section {
  display: grid;
  gap: 0.5rem;
}

.selected-day-section h4 {
  font-size: 0.95rem;
  margin: 0;
}

.stat-holiday-section { background: #f5f1fb; border-left: 4px solid #7651b5; border-radius: 7px; margin-bottom: .75rem; padding: .75rem .85rem; }
.stat-holiday-section strong { color: #5c3e91; }
.schedule-timeoff-button { display: block; margin: 1rem auto 0; min-width: 12rem; }
.schedule-day-actions { align-items: center; display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.schedule-day-actions .schedule-timeoff-button { margin: 1rem 0 0; }
.schedule-day-actions #openScheduleJobButton { background: #5c6268; border-color: #5c6268; color: #fff; }
.schedule-day-actions #openScheduleJobButton:hover { background: #474c51; border-color: #474c51; }
.schedule-timeoff-modal { inset: 0; position: fixed; z-index: 1000; }
.schedule-timeoff-modal[hidden] { display: none; }
.schedule-timeoff-backdrop { -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); background: rgba(24, 27, 31, .5); border: 0; border-radius: 0; inset: 0; padding: 0; position: absolute; }
.schedule-timeoff-backdrop:hover { background: rgba(24, 27, 31, .5); transform: none; }
.schedule-timeoff-dialog { background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 18px 55px rgba(20, 24, 28, .28); left: 50%; max-height: calc(100vh - 2rem); max-width: 560px; overflow-y: auto; padding: 1.15rem; position: absolute; top: 50%; transform: translate(-50%, -50%); width: calc(100% - 2rem); }
.schedule-job-dialog { max-width: 920px; }
.schedule-timeoff-head { align-items: center; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; margin-bottom: 1rem; padding-bottom: .75rem; }
.schedule-timeoff-head h2 { margin: 0; }
body.timeoff-modal-open { overflow: hidden; }

.documents-toolbar { align-items: end; display: flex; gap: 1rem; justify-content: space-between; margin-bottom: 1.2rem; }
.documents-search { flex: 1 1 520px; max-width: 680px; }
.documents-search span { color: var(--muted); display: block; font-size: .78rem; font-weight: 700; margin-bottom: .35rem; text-transform: uppercase; }
.add-document-menu { flex: 0 0 auto; position: relative; }
.add-document-menu > button { align-items: center; display: flex; gap: .65rem; }
.add-document-options { background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 16px 42px rgba(20, 24, 28, .2); min-width: 220px; overflow: hidden; padding: .35rem; position: absolute; right: 0; top: calc(100% + .45rem); z-index: 20; }
.add-document-options[hidden] { display: none; }
.add-document-options button { background: transparent; border: 0; border-radius: 5px; color: var(--ink); display: block; padding: .7rem .8rem; text-align: left; width: 100%; }
.add-document-options button:hover { background: #eef0f2; color: var(--ink); }
.document-record { border-left: 4px solid #687078; }
.document-record.document-damage { border-left-color: #b42b32; }
.document-type { align-items: center; color: #6b7178; display: inline-flex; font-size: .72rem; font-weight: 800; gap: .42rem; letter-spacing: .08em; text-transform: uppercase; }
.document-company-dot { background: #ae252d; border-radius: 50%; display: inline-block; height: .55rem; width: .55rem; }
.document-company-dot.junk { background: #13b05f; }
.damage-resolution-modal { inset: 0; position: fixed; z-index: 1200; }
.damage-resolution-modal[hidden] { display: none; }
.damage-resolution-backdrop { backdrop-filter: blur(0); background: rgba(32, 36, 40, 0); border: 0; inset: 0; padding: 0; position: absolute; transition: background .2s ease, backdrop-filter .2s ease; width: 100%; }
.damage-resolution-modal.is-open .damage-resolution-backdrop { backdrop-filter: blur(5px); background: rgba(32, 36, 40, .6); }
.damage-resolution-dialog { background: #f6f6f4; border-radius: 10px; box-shadow: 0 22px 70px rgba(0,0,0,.3); left: 50%; max-height: calc(100vh - 2rem); max-width: 900px; opacity: 0; overflow-y: auto; padding: 1.35rem; position: absolute; top: 50%; transform: translate(-50%, calc(-50% + 12px)); transition: opacity .2s ease, transform .2s ease; width: calc(100% - 2rem); }
.damage-resolution-modal.is-open .damage-resolution-dialog { opacity: 1; transform: translate(-50%, -50%); }
.damage-resolution-head { align-items: flex-start; border-bottom: 3px solid #b42b32; display: flex; gap: 1rem; justify-content: space-between; margin: -.2rem -.2rem 1.25rem; padding: .2rem .2rem 1rem; transition: border-color .28s ease; }
.damage-resolution-modal.is-junk .damage-resolution-head { border-bottom-color: #13b05f; }
.damage-resolution-head h2 { font-size: 1.35rem; margin: .15rem 0 0; }
.damage-form-grid { display: grid; gap: .85rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.damage-form-grid .full { grid-column: 1 / -1; }
.agreement-copy { background: #fff; border: 1px solid var(--line); border-radius: 7px; margin: 1.2rem 0; padding: 1.1rem; }
.agreement-copy section + section { margin-top: 1rem; }
.agreement-copy h3 { font-size: .98rem; margin: 0 0 .3rem; }
.agreement-copy p { color: #34383c; line-height: 1.5; margin: 0; }
.resolution-preview { border-left: 3px solid #b42b32; font-weight: 650; margin-top: .65rem !important; padding: .55rem .7rem; transition: border-color .28s ease; white-space: pre-wrap; }
.damage-resolution-modal.is-junk .resolution-preview { border-left-color: #13b05f; }
.damage-signature-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.damage-signature-grid fieldset { background: #fff; border: 1px solid var(--line); border-radius: 7px; display: grid; gap: .7rem; margin: 0; padding: 1rem; }
.damage-signature-grid legend { font-weight: 800; padding: 0 .35rem; }
.damage-signature-pad { height: 150px; margin-top: .35rem; }
.damage-form-actions { display: flex; gap: .65rem; justify-content: flex-end; margin-top: 1rem; }
.damage-resolution-review[hidden], #damageResolutionEditor[hidden] { display: none; }
#damageResolutionEditor, .damage-resolution-review { opacity: 1; transform: translateY(0); transition: opacity .18s ease, transform .18s ease; }
#damageResolutionEditor.is-leaving { opacity: 0; transform: translateY(-8px); }
#damageResolutionEditor.is-visible { animation: damage-content-in .22s ease both; }
.damage-resolution-review { opacity: 0; transform: translateY(8px); }
.damage-resolution-review.is-visible { opacity: 1; transform: translateY(0); }
.damage-document-preview { background: #dfe1e3; border-radius: 8px; padding: 1.3rem; }
.damage-preview-page { background: #fff; border-top: 5px solid #a9222b; box-shadow: 0 5px 22px rgba(20,24,28,.16); color: #17191b; margin: 0 auto; max-width: 720px; min-height: 880px; padding: 2.4rem 2.6rem; }
.damage-preview-page.junk { border-top-color: #13b05f; }
.damage-preview-page h2 { font-size: 1.15rem; margin: 0 0 1.2rem; }
.damage-preview-page h3 { font-size: .92rem; margin: 1rem 0 .28rem; }
.damage-preview-page p, .damage-preview-details { font-size: .82rem; line-height: 1.5; margin: 0; }
.damage-preview-details { margin-bottom: 1.2rem; }
.preview-resolution { margin-top: .5rem !important; white-space: pre-wrap; }
.damage-preview-signatures { border-top: 1px solid #8b8f93; display: grid; gap: 1.2rem; grid-template-columns: 1fr 1fr; margin-top: 1.5rem; padding-top: 1rem; }
.damage-preview-signatures > div { display: grid; gap: .4rem; }
.damage-preview-signatures img { height: 58px; max-width: 200px; object-fit: contain; object-position: left center; }
.damage-preview-signatures span { font-size: .76rem; }
.typed-signature { font-family: cursive; font-size: 1.2rem !important; min-height: 58px; padding-top: 1rem; }
@keyframes damage-content-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
body.damage-resolution-open { overflow: hidden; }

@media (max-width: 700px) {
  .documents-toolbar { align-items: stretch; flex-direction: column; }
  .add-document-menu > button { justify-content: center; width: 100%; }
  .add-document-options { left: 0; right: 0; }
  .damage-form-grid, .damage-signature-grid { grid-template-columns: 1fr; }
  .damage-resolution-dialog { border-radius: 0; max-height: 100dvh; padding: 1rem; width: 100%; }
  .damage-form-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .damage-form-actions button:last-child { grid-column: 1 / -1; }
  .damage-document-preview { margin: 0 -.35rem; padding: .55rem; }
  .damage-preview-page { min-height: 0; padding: 1.25rem 1rem; }
  .damage-preview-signatures { grid-template-columns: 1fr; }
}

.schedule-day {
  display: grid;
  gap: 0.6rem;
}

.schedule-day h3 {
  background: var(--teal-dark);
  border-radius: 8px;
  color: #ffffff;
  font-size: 1rem;
  margin: 0;
  padding: 0.75rem 0.85rem;
}

.schedule-card {
  border-left: 6px solid var(--teal);
  display: grid;
  gap: 0;
}
.schedule-card.schedule-card-type-moving { border-left-color: #b4232c; }
.schedule-card.schedule-card-type-hauling { border-left-color: #17834b; }
.schedule-card.schedule-card-type-misc { border-left-color: #df7a20; }

body.schedule-app .schedule-card-toggle {
  align-items: center !important;
  background: transparent;
  border: 0;
  color: inherit;
  display: flex;
  flex-direction: row !important;
  justify-content: space-between;
  padding: 0;
  text-align: left;
  width: 100%;
}

body.schedule-app .schedule-card-toggle:hover,
body.schedule-app .schedule-card-toggle:focus { background: transparent; color: inherit; }
.schedule-card-chevron { color: #596d7b; flex: 0 0 auto; font-family: Arial, sans-serif; font-size: 2rem; line-height: 1; transform: rotate(0); transition: transform .28s cubic-bezier(.4,0,.2,1); }
.schedule-card-collapsible.is-open .schedule-card-chevron { transform: rotate(90deg); }
.schedule-card-body { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .32s cubic-bezier(.4,0,.2,1), opacity .22s ease; }
.schedule-card-body-inner { display: grid; gap: .75rem; min-height: 0; overflow: hidden; padding-top: 0; transition: padding-top .32s cubic-bezier(.4,0,.2,1); }
.schedule-card-collapsible.is-open .schedule-card-body { grid-template-rows: 1fr; opacity: 1; }
.schedule-card-collapsible.is-open .schedule-card-body-inner { padding-top: .75rem; }
.schedule-card-crew { color: #5f666e; font-size: .78rem; font-weight: 600; line-height: 1.4; }
.schedule-card-admin-actions { display: flex; justify-content: flex-end; }
.schedule-card-admin-actions:empty { display: none; }

.schedule-card-head {
  align-items: flex-start;
}

.schedule-card-head > div {
  display: grid;
  gap: 0.25rem;
}

.schedule-card-head strong {
  font-size: 1.12rem;
}

.schedule-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.schedule-meta span {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
}

.schedule-card-actions {
  justify-content: flex-start;
}

.schedule-post-photo-grid {
  gap: 0.65rem;
  grid-template-columns: repeat(auto-fill, 9rem);
  justify-content: start;
}

body.schedule-app .schedule-post-photo {
  background: transparent;
  border: 0;
  border-radius: 7px;
  cursor: zoom-in;
  display: block;
  height: 6.75rem;
  overflow: hidden;
  padding: 0;
  transition: opacity 0.16s ease, transform 0.16s ease;
  width: 9rem;
}

body.schedule-app .schedule-post-photo:hover {
  background: transparent;
  opacity: 0.82;
  transform: scale(1.08);
}

.schedule-post-photo img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.schedule-image-viewer {
  animation: scheduleImageViewerIn 0.2s ease both;
  background: transparent;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none;
  box-sizing: border-box;
  height: 94vh;
  max-height: 94vh;
  max-width: 96vw;
  overflow: hidden;
  outline: 0 !important;
  padding: 0;
  width: 96vw;
}

.schedule-image-viewer.is-closing {
  animation: scheduleImageViewerOut 0.18s ease both;
}

.schedule-image-viewer::backdrop {
  animation: jbDialogBackdropIn 0.2s ease both;
  backdrop-filter: blur(7px);
  background: rgba(31, 34, 39, 0.62);
  -webkit-backdrop-filter: blur(7px);
}

.schedule-image-viewer.is-closing::backdrop {
  animation: jbDialogBackdropOut 0.18s ease both;
}

.schedule-image-viewer-stage {
  align-items: center;
  display: flex;
  height: calc(100% - 1.8rem);
  justify-content: center;
  position: relative;
  border: 0 !important;
  outline: 0 !important;
  width: 100%;
}

.schedule-image-viewer-stage img {
  border: 0 !important;
  border-radius: 12px;
  display: block;
  height: 100%;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  outline: 0 !important;
  width: 100%;
}

.schedule-image-viewer-chevron {
  align-items: center;
  background: #454851;
  border: 0 !important;
  border-radius: 50%;
  color: #13b05f;
  display: inline-flex;
  font-size: 2rem;
  height: 2.75rem;
  justify-content: center;
  line-height: 1;
  padding: 0 0 0.12rem;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  z-index: 2;
}

.schedule-image-viewer-chevron:hover {
  background: #34383e;
  color: #13b05f;
}

#scheduleImagePrevious {
  left: 0.5rem;
}

#scheduleImageNext {
  right: 0.5rem;
}

.schedule-image-viewer-count {
  color: #c9cdd2;
  margin: 0.55rem 0 0;
  min-height: 1.2rem;
  text-align: center;
}

@media (max-width: 700px) {
  .schedule-image-viewer {
    height: 88dvh;
    max-height: 88dvh;
    max-width: 96vw;
    padding: 0;
    width: 96vw;
  }

  .schedule-image-viewer-stage {
    height: calc(100% - 1.65rem);
  }

  .schedule-image-viewer-chevron {
    font-size: 1.7rem;
    height: 2.35rem;
    width: 2.35rem;
  }

  #scheduleImagePrevious {
    left: 0.25rem;
  }

  #scheduleImageNext {
    right: 0.25rem;
  }
}

@keyframes scheduleImageViewerIn {
  from { opacity: 0; transform: translateY(0.6rem) scale(0.975); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes scheduleImageViewerOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(0.4rem) scale(0.98); }
}

.approval-pill {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  display: inline-flex;
  font-weight: 800;
  min-height: 2.4rem;
  padding: 0.55rem 0.7rem;
}

.approval-pill.approved {
  border-color: var(--teal);
  color: var(--teal-dark);
}

.employee-approval-fade {
  animation: employeeApprovalStatusFade .3s ease 2.7s forwards;
}

@keyframes employeeApprovalStatusFade {
  to { opacity: 0; visibility: hidden; }
}

.schedule-address {
  background: #5c6268;
  border: 1px solid #5c6268;
  border-radius: 8px;
  color: #ffffff;
  display: grid;
  gap: 0.65rem;
  line-height: 1.45;
  padding: 0.7rem;
  text-decoration: none;
  white-space: pre-wrap;
}

.schedule-address:hover {
  background: #474c51;
  border-color: #474c51;
}

.schedule-address span {
  color: #ffffff;
}

.schedule-address strong {
  color: #ffffff;
}

.completion-location-links {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.55rem;
  padding: 0.75rem;
}

.completion-location-links > strong {
  color: var(--ink);
}

.completion-location-links > div {
  display: grid;
  gap: 0.45rem;
}

.completion-location-links a {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 0.15rem;
  padding: 0.6rem;
  text-decoration: none;
}

.completion-location-links a:hover {
  background: #fff0f0;
  border-color: var(--teal);
}

.completion-location-links small {
  color: var(--muted);
}

.linked-target {
  border-color: var(--teal) !important;
  box-shadow: 0 0 0 3px rgba(159, 0, 0, 0.16);
}

.schedule-writeup {
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-left: 6px solid var(--teal);
  border-radius: 8px;
  color: var(--ink);
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.55;
  padding: 0.85rem;
  white-space: pre-wrap;
}

.quote-builder-layout {
  align-items: start;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: 1.25rem;
}

.quote-creator-panel {
  display: grid;
  gap: 1rem;
}

.quote-route-box {
  background: var(--soft);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  display: grid;
  gap: 0.8rem;
  padding: 0.9rem;
}

.quote-route-box h3 {
  margin: 0;
}

.quote-route-list,
.quote-option-list {
  display: grid;
  gap: 0.75rem;
}

.quote-preview-panel {
  display: grid;
  gap: 0.75rem;
  width: 100%;
}

.quote-option-card {
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  display: grid;
  gap: 0.65rem;
  min-width: 0;
  padding: 0.85rem;
}

.quote-option-head {
  align-items: flex-start;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  justify-content: stretch;
}

.quote-option-head > div {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.quote-option-head strong,
.quote-option-head span,
.quote-total {
  overflow-wrap: anywhere;
}

.quote-option-card p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
  overflow-wrap: anywhere;
}

.quote-option-card.quote-best {
  border-left: 6px solid var(--teal);
}

.quote-total {
  color: var(--teal-dark);
  font-size: 1.2rem;
  justify-self: end;
  text-align: right;
  white-space: normal;
}

.quote-breakdown {
  display: grid;
}

.quote-breakdown .summary-line {
  align-items: flex-start;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.quote-breakdown .summary-line span,
.quote-breakdown .summary-line strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.quote-breakdown .summary-line strong {
  white-space: nowrap;
}

.quote-day-plan {
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.45rem;
  padding: 0.7rem;
}

.quote-day-plan > strong {
  color: var(--ink);
}

.quote-day-plan ul {
  display: grid;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.quote-day-plan li {
  align-items: start;
  display: grid;
  gap: 0.25rem;
  grid-template-columns: minmax(52px, auto) minmax(0, 1fr);
}

.quote-day-plan li span {
  color: var(--muted);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.quote-option-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.15rem;
}

.quote-records-section {
  margin-bottom: 0;
}

.quote-link-field {
  margin-top: 0.35rem;
}

.quote-link-field input {
  background: #ffffff;
  color: var(--muted);
  font-size: 0.88rem;
}

.contract-shell {
  align-items: start;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
}

.contract-form {
  display: grid;
  gap: 1rem;
}

.agreement-preview {
  background: var(--soft);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 1rem;
}

.signature-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.signature-grid > div,
.contract-payment-panel {
  display: grid;
  gap: 0.75rem;
}

.full-width-panel {
  grid-column: 1 / -1;
}

.schedule-card p,
.schedule-card small,
.time-off-card span,
.time-off-card small {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
  white-space: pre-wrap;
}

.employee-checks {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.employee-check {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.65rem;
}

.employee-check span {
  display: grid;
  gap: 0.15rem;
}

.employee-check small {
  color: var(--muted);
  font-weight: 500;
}

.time-off-card {
  align-items: flex-start;
}

.time-off-card > div {
  display: grid;
  gap: 0.2rem;
}

.overnight-unavailable-card {
  background: #fff7f7;
  border-color: rgba(159, 0, 0, 0.28);
}

.availability-pill {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 800;
  justify-content: center;
  min-height: 2rem;
  padding: 0.35rem 0.55rem;
}

.overnight-unavailable-card .availability-pill {
  border-color: var(--teal);
  color: var(--teal-dark);
}

.job-day-editor,
.job-day-block,
.job-address-list {
  display: grid;
  gap: 0.75rem;
}

.job-day-block {
  background: var(--soft);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0.85rem;
}

.quote-day-location {
  background: #fcfcfc;
  border-color: var(--line);
  gap: 0.7rem;
  padding: 0.8rem;
}

.job-address-row {
  align-items: end;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.timesheet-entry-day summary {
  align-items: center;
  background: var(--teal-dark);
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  font-weight: 800;
  gap: 0.75rem;
  justify-content: space-between;
  padding: 0.85rem;
}

.timesheet-entry-day summary::after {
  background: #ffffff;
  border-radius: 8px;
  color: #101214;
  content: "Tap to open";
  font-size: 0.78rem;
  padding: 0.25rem 0.45rem;
}

.timesheet-entry-day[open] summary::after {
  content: "Tap to close";
}

.timesheet-day-head {
  color: var(--ink);
  margin-bottom: 0.55rem;
}

.timesheet-blocks {
  display: grid;
  gap: 0.5rem;
}

.timesheet-block {
  align-items: flex-start;
  border-top: 1px solid var(--line);
  padding-top: 0.5rem;
}

.timesheet-block:first-child {
  border-top: 0;
  padding-top: 0;
}

.timesheet-block > div {
  display: grid;
  gap: 0.2rem;
}

.timesheet-block-hours {
  text-align: right;
}

.timesheet-block-hours > span {
  color: var(--ink);
  font-weight: 800;
}

.time-row {
  align-items: end;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(130px, 0.8fr) minmax(130px, 0.8fr) repeat(2, minmax(100px, 0.6fr)) minmax(160px, 1fr) auto auto;
}

.time-row.compact {
  grid-template-columns: minmax(120px, .7fr) minmax(115px, .65fr) minmax(180px, 1.1fr) repeat(2, minmax(95px, .55fr)) minmax(150px, .9fr) auto auto;
}

body.timesheets-app .panel {
  min-width: 0;
}

body.timesheets-app .timesheet-entry-day {
  border-color: #d9ddda;
  box-shadow: none;
  overflow: hidden;
}

body.timesheets-app .timesheet-entry-day .time-row-list {
  gap: 0.65rem;
  margin: 0.75rem 0 0;
  padding: 0 0.85rem;
}

body.timesheets-app .timesheet-day-body > button {
  margin: 0.75rem 0.85rem 0.85rem;
}

body.timesheets-app .timesheet-day-body {
  display: flow-root;
}

.time-row.compact.timesheet-input-card {
  align-items: end;
  background: #fafbfa;
  border: 1px solid #dfe3e0;
  border-radius: 8px;
  display: grid;
  gap: 0.75rem;
  grid-template-areas:
    "company job job type"
    "start end notes actions";
  grid-template-columns: minmax(130px, .75fr) minmax(130px, .75fr) minmax(190px, 1.25fr) minmax(285px, .95fr);
  padding: 0.8rem;
}

body.timesheets-app .timesheet-input-card.timesheet-company-moving {
  background: #fff8f8;
  border-left: 4px solid #9f0000;
}

body.timesheets-app .timesheet-input-card.timesheet-company-hauling {
  background: #f4fbf7;
  border-left: 4px solid #106137;
}

.timesheet-input-card:last-child {
  border-bottom: 1px solid #dfe3e0;
}

.timesheet-input-card label {
  font-size: 0.78rem;
  gap: 0.25rem;
  min-width: 0;
}

.timesheet-input-card input,
.timesheet-input-card select {
  border-color: #d3d8d5;
  border-radius: 6px;
  font-size: 0.88rem;
  min-height: 2.35rem;
  min-width: 0;
  padding: 0.5rem 0.6rem;
  width: 100%;
}

.timesheet-field-company { grid-area: company; }
.timesheet-field-job { grid-area: job; }
.timesheet-field-type { grid-area: type; }
.timesheet-field-start { grid-area: start; }
.timesheet-field-end { grid-area: end; }
.timesheet-field-notes { grid-area: notes; }

.timesheet-company-dependent[hidden] {
  display: none;
}

.timesheet-input-card.timesheet-company-unassigned {
  grid-template-areas:
    "company start end actions"
    "notes notes notes actions";
}

.timesheet-hazard-toggle {
  align-items: center;
  align-self: center;
  color: #7a4b00;
  display: flex;
  font-size: 0.82rem;
  gap: 0.5rem;
  grid-area: hazard;
}

.timesheet-hazard-toggle input {
  min-height: auto;
  width: auto;
}

.timesheet-hazard-toggle strong {
  color: #9a5600;
}

.hazardous-pay-marker {
  background: #fff2cf;
  border: 1px solid #e4bf63;
  border-radius: 999px;
  color: #704300;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.25rem 0.5rem;
  width: fit-content;
}

.timesheet-row-actions {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  grid-area: actions;
  justify-content: flex-end;
  min-width: 0;
}

.timesheet-row-total {
  color: var(--ink);
  flex: 0 0 auto;
  font-size: 0.72rem;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
}

.timesheet-row-actions .danger {
  flex: 0 0 auto;
  white-space: nowrap;
}

body.timesheets-app input:focus,
body.timesheets-app select:focus,
body.timesheets-app button:focus-visible {
  outline: 2px solid rgba(78, 93, 100, 0.25);
  outline-offset: 2px;
}

body.timesheets-app button.secondary:hover {
  background: #f1f3f2;
}

body.timesheets-app .timesheet-entry-day summary {
  background: #f1f3f2;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  color: var(--ink);
  display: grid;
  font-size: 0.9rem;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  padding: 0.7rem 0.85rem;
}

body.timesheets-app .timesheet-entry-day summary > span {
  justify-self: start;
}

body.timesheets-app .timesheet-entry-day summary > strong {
  justify-self: center;
  text-align: center;
}

body.timesheets-app .timesheet-entry-day summary::after {
  justify-self: end;
}

body.timesheets-app .timesheet-entry-day[open] summary {
  border-bottom-color: #d9ddda;
}

body.timesheets-app .timesheet-entry-day summary::after {
  background: #ffffff;
  border: 1px solid #d3d8d5;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
}

body.timesheets-app #timeRows {
  gap: 0.65rem;
  margin: 0.85rem 0;
}

body.timesheets-app #timesheetForm > .status-line:first-of-type {
  margin: -0.45rem 0 0.75rem;
}

body.timesheets-app #timesheetForm > label {
  max-width: 26rem;
}

body.timesheets-app .timesheets-header {
  min-height: 132px;
}

body.timesheets-app .timesheets-header .header-copy {
  max-width: 1440px;
  padding-bottom: 1.35rem;
  padding-top: 1.35rem;
}

body.timesheets-app .timesheets-header h1 {
  font-size: 2.75rem;
  margin-bottom: 0.55rem;
}

body.timesheets-app .app-shell {
  max-width: 1440px;
}

body.timesheets-app .layout {
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 330px);
}

body.timesheets-app .panel,
body.timesheets-app .summary {
  border-color: #d9ddda;
  box-shadow: 0 4px 16px rgba(31, 40, 36, 0.06);
}

body.timesheets-app .toolbar-actions {
  margin-top: 0.85rem;
}

@media (max-width: 1200px) {
  body.timesheets-app .layout {
    grid-template-columns: 1fr;
    margin-left: auto;
    margin-right: auto;
    max-width: 1040px;
  }

  body.timesheets-app .summary {
    position: static;
  }
}

.copy-field {
  background: #ffffff;
  color: var(--muted);
  font-size: 0.86rem;
}

.inline-apps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.45rem;
}

@media (max-width: 1040px) {
  .layout,
  .dashboard-primary-layout,
  .quote-builder-layout,
  .contract-shell {
    grid-template-columns: 1fr;
  }

  .company-app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary {
    position: static;
  }

  body.timesheets-app .layout {
    grid-template-columns: 1fr;
  }

  .time-row.compact.timesheet-input-card {
    grid-template-areas:
      "company job type"
      "start end notes"
      "actions actions actions";
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .load-pricing-row {
    grid-template-columns: 1fr;
  }

  .load-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .photo-file-button {
    align-self: flex-start;
  }

  .schedule-time-row {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .jb-inbox-app {
    display: block;
    height: 100%;
    min-height: 0;
    position: relative;
  }

  .jb-sidebar,
  .jb-chat-pane {
    height: 100%;
    inset: 0;
    min-height: 0;
    position: absolute;
    width: 100%;
  }

  .mobile-conversation-list .jb-chat-pane {
    display: none;
  }

  body.mobile-conversation-list.conversation-open .jb-sidebar {
    display: none;
  }

  body.mobile-conversation-list.conversation-open .jb-chat-pane {
    display: grid;
  }

  body.mobile-conversation-list.conversation-opening .jb-chat-bar > *,
  body.mobile-conversation-list.conversation-opening .jb-message-stream > *,
  body.mobile-conversation-list.conversation-opening .jb-composer > * {
    animation: jbConversationContentOpen .18s ease both;
  }

  body.mobile-conversation-list:not(.conversation-open) .jb-sidebar {
    display: grid;
  }

  body.mobile-conversation-list.conversation-closing .jb-sidebar-head > *,
  body.mobile-conversation-list.conversation-closing .jb-conversation-list > * {
    animation: jbConversationContentBack .18s ease both;
  }

  body.mobile-conversation-list.conversation-closing .jb-sidebar-head > .jb-mobile-leads-brand {
    animation-name: jbConversationBrandBack;
  }

  body.mobile-conversation-list:not(.conversation-open) .jb-conversation-list {
    display: grid;
    height: 100%;
    min-height: 0;
    visibility: visible;
  }

  #chatBackButton {
    display: inline-flex;
  }

  .jb-sidebar-head,
  .jb-chat-bar {
    align-items: center;
    background: #303239;
    border-bottom: 2px solid #13b05f;
    color: #fff;
    display: grid;
    grid-template-columns: 2.65rem minmax(0, 1fr) 2.65rem;
    height: 4.25rem;
    min-height: 4.25rem;
  }

  .jb-sidebar-head {
    justify-content: space-between;
    margin-bottom: 0;
  }

  #conversationListBackButton {
    display: inline-flex;
  }

  .jb-mobile-leads-brand {
    align-self: center;
    display: grid;
    gap: 0;
    justify-content: start;
    justify-items: start;
    justify-self: start;
    text-align: left;
    transform: translateY(.08rem);
  }

  .jb-mobile-leads-brand img {
    display: block;
    height: 2.75rem;
    max-width: 8.5rem;
    object-fit: contain;
  }

  .jb-mobile-leads-brand strong {
    color: #fff;
    font-size: 1.5em;
    letter-spacing: .01em;
    line-height: 1.15;
  }

  .jb-mobile-leads-brand span {
    display: none;
  }

  .jb-sidebar-head p {
    display: none;
  }

  .jb-desktop-sidebar-title,
  .jb-desktop-lead-actions {
    display: none;
  }

  .jb-icon-actions.jb-mobile-lead-actions {
    display: contents;
  }

  .jb-mobile-header-button,
  #conversationMenuButton {
    align-items: center;
    aspect-ratio: 1;
    background: transparent;
    border: 0 !important;
    border-radius: 0;
    color: #13b05f !important;
    display: inline-flex;
    font-size: 1.65rem;
    font-weight: 800;
    height: 2.65rem;
    justify-content: center;
    line-height: 1;
    min-width: 2.65rem;
    padding: 0;
    width: 2.65rem;
  }

  .jb-mobile-header-button,
  #conversationMenuButton,
  #chatBackButton,
  #conversationListBackButton {
    align-self: center;
    justify-self: center;
  }

  #leadMenuButton,
  #conversationMenuButton {
    font-size: 0;
  }

  #leadMenuButton::before,
  #conversationMenuButton::before {
    content: "•••";
    display: block;
    font-size: .9rem;
    font-weight: 800;
    letter-spacing: .14rem;
    line-height: 1;
    padding-left: .14rem;
  }

  .jb-mobile-header-button:hover,
  .jb-mobile-header-button:active,
  .jb-mobile-header-button:focus,
  .jb-mobile-header-button:focus-visible,
  #conversationMenuButton:hover,
  #conversationMenuButton:active,
  #conversationMenuButton:focus,
  #conversationMenuButton:focus-visible {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: 0;
    transform: none;
  }

  .jb-chat-title h2 {
    color: #fff;
  }

  .jb-chat-title p {
    color: #c9ccd2;
  }

  .jb-chat-title {
    align-self: center;
    justify-items: start;
    justify-self: stretch;
    text-align: left;
  }

  .opportunity-message {
    max-width: 92%;
  }

  .jb-sidebar-head,
  .jb-chat-bar {
    min-height: 3.8rem;
    padding: .65rem .75rem;
  }

  .jb-conversation-row {
    gap: .6rem;
    grid-template-columns: 2.15rem minmax(0, 1fr) auto;
    padding: .72rem .75rem;
  }

  .jb-conversation-list {
    margin-top: -1px;
    padding-top: 0;
  }

  .jb-conversation-copy .jb-conversation-source {
    color: #929994;
  }

  .jb-message-stream {
    padding: .75rem;
  }

  .jb-composer {
    gap: .4rem;
    padding: .6rem .75rem .7rem;
  }

  .jb-composer textarea {
    min-height: 3.25rem;
    resize: none;
  }

  .jb-dialog {
    max-height: 92vh;
    max-width: 96vw;
    padding: 0.8rem;
  }

  .app-shell {
    padding: 0.75rem;
  }

  body.timesheets-app .timesheets-header {
    min-height: auto;
  }

  body.timesheets-app .header-copy {
    padding: 1.25rem 1rem;
  }

  body.timesheets-app .header-copy h1 {
    font-size: 2rem;
    margin-bottom: 0.55rem;
  }

  body.timesheets-app .panel,
  body.timesheets-app .summary {
    padding: 0.85rem;
  }

  body.timesheets-app .timesheet-entry-day summary {
    align-items: center;
    padding: 0.75rem;
  }

  body.timesheets-app .timesheet-entry-day summary::after {
    content: "Open";
  }

  body.timesheets-app .timesheet-entry-day[open] summary::after {
    content: "Close";
  }

  .time-row.compact.timesheet-input-card {
    gap: 0.65rem;
    grid-template-areas:
      "company type"
      "job job"
      "start end"
      "notes notes"
      "actions actions";
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0.8rem 0;
  }

  .timesheet-row-actions {
    justify-content: space-between;
  }

  .toolbar,
  .toolbar-actions,
  .day-head,
  .attachment-panel-head,
  .tier-photo-head,
  .location-row,
  .location-action-buttons,
  .completion-feature-actions,
  .record-head,
  .calendar-toolbar,
  .schedule-card-head,
  .time-off-card,
  .timesheet-block,
  .panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .record-total,
  .timesheet-block-hours {
    text-align: left;
  }

  .quote-total {
    justify-self: start;
    text-align: left;
  }

  .quote-option-head,
  .quote-breakdown .summary-line {
    grid-template-columns: 1fr;
  }

  .quote-breakdown .summary-line strong {
    text-align: left;
    white-space: normal;
  }

  .quote-day-plan li {
    grid-template-columns: 1fr;
  }

  .grid,
  .grid.three,
  .company-app-grid,
  .admin-tools-grid,
  .completion-photo-grid,
  .load-card-summary,
  .location-fields,
  .pause-card,
  .load-card-grid,
  .stat-grid,
  .analytics-summary,
  .records-grid,
  .signature-grid,
  .payment-options,
  .time-row,
  .time-row.compact,
  .job-address-row {
    grid-template-columns: 1fr;
  }

  .header-copy {
    padding: 2rem 1rem;
  }

  .header-copy h1 {
    font-size: 2.4rem;
  }

  .step-list {
    display: grid;
  }

  .dashboard-pill-row {
    display: grid;
  }

  .calendar-weekdays,
  .schedule-calendar {
    gap: 0.25rem;
  }

  .calendar-day {
    font-size: 0.86rem;
    min-height: 2.75rem;
    padding: 0.3rem 0.15rem;
  }

  .calendar-day small {
    align-items: center;
    background: var(--teal);
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-size: 0;
    height: 1rem;
    justify-content: center;
    min-width: 1rem;
    padding: 0 0.25rem;
    position: absolute;
    right: 0.12rem;
    top: 0.12rem;
    white-space: nowrap;
  }

  .calendar-day small::before {
    content: attr(data-count);
    font-size: 0.63rem;
    line-height: 1;
  }
  .calendar-day.has-work small { background: transparent; color: #101214; }
  .calendar-day.selected.has-work small { color: #fff; }

  .calendar-day-markers { bottom: .18rem; gap: .14rem; }
  .calendar-marker { height: .3rem; width: .3rem; }
  .calendar-toolbar { align-items: center; flex-direction: row; gap: .35rem; justify-content: center; }
  .calendar-toolbar strong { min-width: 8.5rem; }
  .calendar-month-chevron { flex: 0 0 2rem; }
}

@media (max-width: 560px) {
  body.timesheets-app .app-shell { padding: .55rem; }
  body.timesheets-app .panel,
  body.timesheets-app .summary { padding: .75rem; }
  body.timesheets-app .timesheet-entry-day .time-row-list { gap: .85rem; padding: 0 .7rem; }
  body.timesheets-app .timesheet-day-body > button { margin: .8rem .7rem; width: calc(100% - 1.4rem); }
  body.timesheets-app .timesheet-entry-day summary { align-items: center; display: grid; gap: .55rem; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); padding: .8rem .75rem; }
  body.timesheets-app .timesheet-entry-day summary > * { min-width: 0; }
  .time-row.compact.timesheet-input-card { gap: .8rem; grid-template-areas: "company" "job" "type" "start" "end" "notes" "actions"; grid-template-columns: minmax(0, 1fr); padding: .9rem .75rem; }
  .timesheet-input-card label { font-size: .82rem; gap: .38rem; line-height: 1.35; }
  .timesheet-input-card input,
  .timesheet-input-card select { font-size: .95rem; min-height: 46px; padding: .62rem .7rem; }
  .timesheet-row-actions { align-items: stretch; border-top: 1px solid #e0e3e1; flex-direction: column; gap: .65rem; padding-top: .8rem; }
  .timesheet-row-total { font-size: .84rem; line-height: 1.4; text-align: left; white-space: normal; }
  .timesheet-row-actions .danger { min-height: 44px; width: 100%; }
  body.timesheets-app .toolbar-actions { display: grid; gap: .65rem; }
  body.timesheets-app .toolbar-actions > * { min-height: 44px; width: 100%; }
}

/* Keep the embedded Junk Bros inbox within the admin viewport. */
body.admin-page:has([data-admin-view="junk-leads"].active) {
  height: var(--admin-visual-viewport-height, 100dvh);
  overflow: hidden;
}

body.admin-page:has([data-admin-view="junk-leads"].active) .admin-app {
  height: var(--admin-visual-viewport-height, 100dvh);
  min-height: 0;
}

body.admin-page:has([data-admin-view="junk-leads"].active) .admin-main {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: var(--admin-visual-viewport-height, 100dvh);
  min-height: 0;
  overflow: hidden;
}

body.admin-page:has([data-admin-view="junk-leads"].active) [data-admin-view="junk-leads"].active {
  height: auto;
  min-height: 0;
  overflow: hidden;
}

body.hauling-app.hauling-quotes-page .jb-conversation-list,
body.hauling-app.hauling-quotes-page .jb-message-stream {
  -webkit-overflow-scrolling: touch;
  min-height: 0;
  overscroll-behavior: contain;
  overflow-y: auto;
  touch-action: pan-y;
}

body.hauling-app.hauling-quotes-page .jb-conversation-list {
  gap: 0;
  margin: 0;
}

body.hauling-app.hauling-quotes-page button.jb-conversation-row {
  appearance: none;
  border: 0 !important;
  border-bottom: 1px solid #d8ddd9 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

@media (min-width: 721px) {
  body.hauling-app.hauling-quotes-page button.jb-conversation-row {
    background-clip: border-box;
    grid-template-columns: 3.15rem minmax(0, 1fr) auto;
    height: 6rem;
    overflow: hidden;
    padding-bottom: .75rem;
    padding-top: .75rem;
    width: 100%;
  }

  body.hauling-app.hauling-quotes-page .jb-conversation-row .jb-avatar {
    font-size: 1rem;
    height: 3.15rem;
    margin-top: 0;
    width: 3.15rem;
  }
}

@media (max-width: 720px) {
  body.viewing-conversation-archive .jb-mobile-leads-brand strong {
    font-size: 1rem;
    line-height: 1.1;
  }

  body.hauling-app.hauling-quotes-page .jb-sidebar {
    border-right: 0;
    max-width: 100%;
    overflow: hidden;
    width: 100%;
  }

  body.hauling-app.hauling-quotes-page .jb-conversation-list {
    margin-top: 0;
    max-width: 100%;
    overflow-x: hidden;
    padding-top: .72rem;
    scrollbar-width: none;
    width: 100%;
  }

  body.hauling-app.hauling-quotes-page .jb-conversation-list::-webkit-scrollbar {
    display: none;
    height: 0;
    width: 0;
  }

  body.hauling-app.hauling-quotes-page button.jb-conversation-row {
    border-bottom: 0 !important;
    grid-template-columns: 3.15rem minmax(0, 1fr) auto;
    height: 5.4rem;
    margin: 0 !important;
    max-width: 100%;
    padding: .35rem .75rem !important;
    width: 100%;
  }

  body.hauling-app.hauling-quotes-page .jb-conversation-row .jb-avatar {
    font-size: 1rem;
    height: 3.15rem;
    margin-top: 0;
    width: 3.15rem;
  }

  body.hauling-app.hauling-quotes-page button.jb-conversation-row:hover,
  body.hauling-app.hauling-quotes-page button.jb-conversation-row:active,
  body.hauling-app.hauling-quotes-page button.jb-conversation-row:focus,
  body.hauling-app.hauling-quotes-page button.jb-conversation-row:focus-visible,
  body.hauling-app.hauling-quotes-page button.jb-conversation-row.selected-record {
    background: transparent !important;
  }

  body.hauling-app.hauling-quotes-page .jb-conversation-meta {
    align-items: flex-start;
    align-self: center;
    color: #929994;
    font-size: .7rem;
    height: 3.8rem;
    padding-top: .05rem;
  }

  body.hauling-app.hauling-quotes-page .jb-conversation-meta time {
    color: #929994;
    font-size: .7rem;
    line-height: 1.2;
  }

  body.hauling-app.hauling-quotes-page .jb-conversation-meta .jb-status-dot {
    margin-top: .18rem;
  }
}

body.hauling-app.hauling-quotes-page .jb-conversation-copy,
body.hauling-app.hauling-quotes-page .jb-conversation-meta {
  align-self: center;
}

body.hauling-app.hauling-quotes-page .jb-conversation-copy {
  align-content: start;
  height: 3.8rem;
}

@media (min-width: 721px) {
  body.hauling-app.hauling-quotes-page .jb-sidebar-head {
    align-items: center;
  }

  body.hauling-app.hauling-quotes-page .jb-desktop-sidebar-title {
    align-items: center;
    align-self: center;
    display: flex;
  }

  body.hauling-app.hauling-quotes-page .jb-desktop-sidebar-title p {
    display: none;
  }

  body.hauling-app.hauling-quotes-page .jb-chat-bar {
    max-height: 4.5rem;
    opacity: 1;
    overflow: hidden;
    transition: max-height .22s ease, min-height .22s ease, opacity .18s ease, padding .22s ease;
    z-index: 20;
  }

  body.hauling-app.hauling-quotes-page.has-active-conversation .jb-chat-bar {
    overflow: visible;
  }

  body.hauling-app.hauling-quotes-page:not(.has-active-conversation) .jb-chat-bar {
    border-bottom-width: 0;
    max-height: 0;
    min-height: 0;
    opacity: 0;
    padding-bottom: 0;
    padding-top: 0;
    pointer-events: none;
  }

  body.admin-page:has([data-admin-view="junk-leads"].active) .admin-main {
    grid-template-rows: minmax(0, 1fr);
    padding: 0;
  }

  body.admin-page:has([data-admin-view="junk-leads"].active) .admin-page-banner {
    display: none;
  }

  html.admin-seamless-embed body.hauling-app.hauling-quotes-page .jb-app-header {
    display: none;
  }

  html.admin-seamless-embed body.hauling-app.hauling-quotes-page .jb-shell {
    height: 100%;
    max-width: none;
    padding: 0;
    width: 100%;
  }

  html.admin-seamless-embed body.hauling-app.hauling-quotes-page .jb-inbox-app {
    border: 0;
    border-radius: 0;
    height: 100%;
    width: 100%;
  }

  body.admin-page:has([data-admin-view="junk-leads"].active) [data-admin-view="junk-leads"].active,
  body.admin-page:has([data-admin-view="junk-leads"].active) [data-admin-view="junk-leads"].active iframe {
    height: 100%;
    width: 100%;
  }

  body.hauling-app.hauling-quotes-page .jb-conversation-copy strong {
    align-items: center;
    line-height: 1.2;
  }

  body.hauling-app.hauling-quotes-page .jb-conversation-source {
    align-items: center;
    align-self: center;
    display: inline-flex;
    font-size: .86em;
    line-height: 1;
    transform: translateY(.02rem);
  }

  body.hauling-app.hauling-quotes-page .jb-conversation-meta {
    align-items: flex-end;
    color: #929994;
    flex-direction: column-reverse;
    font-size: .7rem;
    gap: .28rem;
    justify-content: center;
  }

  body.hauling-app.hauling-quotes-page .jb-conversation-meta time {
    color: #929994;
    font-size: .7rem;
    line-height: 1;
  }

  body.hauling-app.hauling-quotes-page .jb-desktop-lead-actions {
    display: none;
  }

  body.hauling-app.hauling-quotes-page .jb-icon-actions.jb-mobile-lead-actions {
    display: contents;
  }

  body.hauling-app.hauling-quotes-page #leadMenuButton {
    align-items: center;
    align-self: center;
    background: transparent;
    border: 0 !important;
    color: #15171a;
    display: inline-flex;
    font-size: 0;
    height: 2.65rem;
    justify-content: center;
    min-width: 2.65rem;
    padding: 0;
    width: 2.65rem;
  }

  body.hauling-app.hauling-quotes-page #leadMenuButton::before {
    content: "•••";
    font-size: .9rem;
    font-weight: 800;
    letter-spacing: .14rem;
    line-height: 1;
    padding-left: .14rem;
  }

  body.hauling-app.hauling-quotes-page #leadMenuButton:hover {
    background: #e6f4eb;
    border: 0 !important;
    color: #15171a;
  }

  body.hauling-app.hauling-quotes-page .jb-chat-bar {
    background: #303239;
    border-bottom: 2px solid #13b05f;
    color: #fff;
  }

  body.hauling-app.hauling-quotes-page .jb-conversation-menu {
    z-index: 30;
  }

  body.hauling-app.hauling-quotes-page .jb-chat-title h2 {
    color: #fff;
  }

  body.hauling-app.hauling-quotes-page .jb-chat-title p {
    color: #c9ccd2;
  }

  body.hauling-app.hauling-quotes-page #conversationMenuButton {
    align-items: center;
    background: transparent;
    border: 0 !important;
    color: #13b05f;
    display: inline-flex;
    font-size: 0;
    height: 2.65rem;
    justify-content: center;
    min-width: 2.65rem;
    padding: 0;
    width: 2.65rem;
  }

  body.hauling-app.hauling-quotes-page #conversationMenuButton::before {
    content: "•••";
    font-size: .9rem;
    font-weight: 800;
    letter-spacing: .14rem;
    line-height: 1;
    padding-left: .14rem;
  }

  body.hauling-app.hauling-quotes-page #conversationMenuButton:hover {
    background: transparent;
    border: 0 !important;
    color: #13b05f;
  }

  body.hauling-app.hauling-quotes-page .jb-composer {
    --jb-composer-control-height: 2.85rem;
    align-items: end;
    background: #303239;
    border-top-color: #303239;
    gap: 0;
    grid-template-columns: minmax(0, 1fr);
    padding: .25rem .45rem;
  }

  body.hauling-app.hauling-quotes-page .jb-composer > .status-line {
    display: none;
  }

  body.hauling-app.hauling-quotes-page .jb-composer-row {
    align-items: stretch;
    gap: .4rem;
  }

  body.hauling-app.hauling-quotes-page .jb-composer textarea {
    background: #454851;
    border: 1px solid #5a5e68;
    border-radius: 1.35rem;
    color: #fff;
    display: block;
    height: var(--jb-composer-control-height);
    line-height: var(--jb-composer-control-height);
    margin: 0;
    max-height: var(--jb-composer-control-height);
    min-height: var(--jb-composer-control-height);
    overflow-y: hidden;
    padding: 0 .85rem;
    resize: none;
  }

  body.hauling-app.hauling-quotes-page .jb-composer textarea::placeholder {
    color: #d1d5db;
    opacity: 1;
  }

  body.hauling-app.hauling-quotes-page .jb-composer textarea.has-inline-add {
    padding-right: 3rem;
  }

  body.hauling-app.hauling-quotes-page .jb-composer textarea:focus {
    border-color: #6b707a;
    box-shadow: none;
    outline: 0;
  }

  body.hauling-app.hauling-quotes-page .jb-composer .toolbar-actions {
    align-items: center;
    display: flex;
    height: var(--jb-composer-control-height);
    justify-content: center;
  }

  body.hauling-app.hauling-quotes-page #sendManualMessageButton {
    align-items: center;
    align-self: stretch;
    background: #454851;
    border: 1px solid #5a5e68;
    border-radius: 999px;
    color: #13b05f;
    display: inline-flex;
    flex: 0 0 var(--jb-composer-control-height);
    font-size: 0;
    height: 100%;
    justify-content: center;
    min-height: var(--jb-composer-control-height);
    padding: 0;
    transition: background-color .18s ease, transform .18s ease;
    width: var(--jb-composer-control-height);
  }

  body.hauling-app.hauling-quotes-page #sendManualMessageButton span::before {
    display: block;
    transform-origin: center;
  }

  body.hauling-app.hauling-quotes-page #sendManualMessageButton.is-state-changing span::before {
    animation: jbComposerIconSwap .18s ease both;
  }

  body.hauling-app.hauling-quotes-page #sendManualMessageButton.is-add span::before {
    content: "+";
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1;
  }

  body.hauling-app.hauling-quotes-page #sendManualMessageButton.is-send span::before {
    border: 0;
    border-right: 3px solid currentColor;
    border-top: 3px solid currentColor;
    content: "";
    display: block;
    height: .72rem;
    transform: translateX(-.12rem) rotate(45deg);
    width: .72rem;
  }

  body.hauling-app.hauling-quotes-page .jb-composer-inline-add {
    align-items: center;
    background: transparent;
    border: 0 !important;
    border-radius: 999px;
    color: #13b05f;
    display: flex;
    font-size: 1.8rem;
    height: 2.3rem;
    justify-content: center;
    opacity: 0;
    padding: 0;
    pointer-events: none;
    position: absolute;
    right: .2rem;
    top: 50%;
    transform: translateY(-50%) scale(.72);
    transition: opacity .18s ease, transform .18s ease;
    width: 2.3rem;
  }

  body.hauling-app.hauling-quotes-page .jb-composer-inline-add.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) scale(1);
  }

  body.mobile-conversation-list.conversation-opening .jb-chat-title > * {
    animation: jbDesktopConversationHeaderIn .18s ease both;
  }

  body.mobile-conversation-list.conversation-opening .jb-message-stream > * {
    animation: jbDesktopConversationMessagesIn .2s ease both;
  }

  body.mobile-conversation-list.conversation-opening .jb-composer > * {
    animation: jbDesktopConversationComposerIn .18s ease both;
  }
}

.conversation-load-error {
  align-content: center;
  align-self: stretch;
  display: grid;
  gap: .75rem;
  justify-items: center;
  min-height: 12rem;
  padding: 1rem;
  text-align: center;
}

.conversation-load-error p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

@media (max-width: 760px) {
  body.admin-page:has([data-admin-view="junk-leads"].active) .admin-app {
    background: #303239;
    display: block;
    height: var(--admin-visual-viewport-height, 100dvh);
    min-height: 0;
    overflow: hidden;
  }

  body.admin-page:has([data-admin-view="junk-leads"].active) .admin-sidebar {
    display: none;
  }

  body.admin-page:has([data-admin-view="junk-leads"].active) .admin-main {
    background: #303239;
    grid-template-rows: minmax(0, 1fr);
    height: var(--admin-visual-viewport-height, 100dvh);
    min-height: 0;
    overflow: hidden;
    padding: 0;
  }

  body.admin-page:has([data-admin-view="junk-leads"].active) .admin-page-banner {
    display: none;
  }

  body.admin-page:has([data-admin-view="junk-leads"].active) .admin-brand {
    display: none;
  }

  body.admin-page:has([data-admin-view="junk-leads"].active) .admin-mobile-junk-leads-brand {
    display: flex;
  }

  html.admin-seamless-embed body.hauling-app.hauling-quotes-page .jb-shell {
    padding: 0;
  }

  html.admin-seamless-embed:has(body.hauling-quotes-page) {
    height: 100%;
    max-height: 100%;
    overflow: hidden;
  }

  html.admin-seamless-embed body.hauling-app.hauling-quotes-page {
    background: #303239;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  html:has(body.admin-page:has([data-admin-view="junk-leads"].active)),
  body.admin-page:has([data-admin-view="junk-leads"].active),
  body.admin-page:has([data-admin-view="junk-leads"].active) [data-admin-view="junk-leads"].active,
  body.admin-page:has([data-admin-view="junk-leads"].active) [data-admin-view="junk-leads"].active iframe,
  html.admin-seamless-embed:has(body.hauling-quotes-page),
  html.admin-seamless-embed body.hauling-app.hauling-quotes-page,
  html.admin-seamless-embed body.hauling-app.hauling-quotes-page .jb-shell,
  html.admin-seamless-embed body.hauling-app.hauling-quotes-page .jb-inbox-app,
  html.admin-seamless-embed body.hauling-app.hauling-quotes-page .jb-chat-pane {
    background-color: #303239;
  }

  body.admin-page:has([data-admin-view="junk-leads"].active) [data-admin-view="junk-leads"].active,
  body.admin-page:has([data-admin-view="junk-leads"].active) [data-admin-view="junk-leads"].active iframe {
    display: block;
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  html.junk-leads-active,
  body.admin-page.junk-leads-active,
  body.admin-page.junk-leads-active .admin-app,
  body.admin-page.junk-leads-active .admin-main,
  body.admin-page.junk-leads-active [data-admin-view="junk-leads"].active,
  body.admin-page.junk-leads-active [data-admin-view="junk-leads"].active iframe {
    background: #303239 !important;
  }

  html.junk-leads-keyboard-open body.admin-page:has([data-admin-view="junk-leads"].active) {
    bottom: auto;
    left: 0;
    overflow: hidden;
    position: fixed;
    right: 0;
    top: 0;
    width: 100%;
  }

  html.junk-leads-keyboard-open body.admin-page:has([data-admin-view="junk-leads"].active) {
    height: var(--admin-visual-viewport-height, 100dvh);
  }

  html.admin-seamless-embed.leads-keyboard-open body.hauling-app.hauling-quotes-page {
    inset: auto;
    height: 100%;
    position: relative;
    width: 100%;
  }

  body.hauling-app.hauling-quotes-page .jb-inbox-app {
    border: 0;
    border-radius: 0;
  }

  body.hauling-app.hauling-quotes-page .jb-sidebar {
    grid-template-rows: auto minmax(0, 1fr);
  }

  body.hauling-app.hauling-quotes-page .jb-sidebar-status {
    display: none;
  }

  body.hauling-app.hauling-quotes-page .jb-composer {
    --jb-composer-control-height: 2.85rem;
    align-items: end;
    background: #303239;
    border-top-color: #303239;
    gap: 0;
    grid-template-columns: minmax(0, 1fr);
    padding: .25rem .45rem;
    position: relative;
    transform: translateZ(0);
    z-index: 4;
  }

  body.hauling-app.hauling-quotes-page .jb-composer > .status-line {
    grid-column: 1 / -1;
    margin: 0;
  }

  body.hauling-app.hauling-quotes-page .jb-composer textarea {
    background: #454851;
    border: 1px solid #5a5e68;
    border-radius: 1.35rem;
    color: #fff;
    display: block;
    height: var(--jb-composer-control-height);
    line-height: var(--jb-composer-control-height);
    max-height: var(--jb-composer-control-height);
    min-height: var(--jb-composer-control-height);
    overflow-y: hidden;
    margin: 0;
    padding: 0 .85rem;
    resize: none;
  }

  body.hauling-app.hauling-quotes-page .jb-composer textarea::placeholder {
    color: #d1d5db;
    opacity: 1;
  }

  body.hauling-app.hauling-quotes-page .jb-composer textarea.has-inline-add {
    padding-right: 3rem;
  }

  body.hauling-app.hauling-quotes-page .jb-composer textarea:focus {
    border-color: #6b707a;
    box-shadow: none;
    outline: 0;
  }

  body.hauling-app.hauling-quotes-page .jb-composer-row {
    align-items: stretch;
    gap: .4rem;
  }

  body.hauling-app.hauling-quotes-page .jb-composer .toolbar-actions {
    align-items: center;
    display: flex;
    flex-direction: row;
    grid-column: 2;
    height: var(--jb-composer-control-height);
    justify-content: center;
  }

  body.hauling-app.hauling-quotes-page #sendManualMessageButton {
    align-items: center;
    background: #454851;
    border: 1px solid #5a5e68;
    border-radius: 999px;
    color: #13b05f;
    display: inline-flex;
    align-self: stretch;
    flex: 0 0 var(--jb-composer-control-height);
    font-size: 0;
    height: 100%;
    justify-content: center;
    min-height: var(--jb-composer-control-height);
    padding: 0;
    transition: background-color .18s ease, transform .18s ease;
    width: var(--jb-composer-control-height);
  }

  body.hauling-app.hauling-quotes-page #sendManualMessageButton span::before {
    display: block;
    transition: opacity .14s ease, transform .18s ease;
  }

  body.hauling-app.hauling-quotes-page #sendManualMessageButton.is-add span::before {
    content: "+";
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1;
  }

  body.hauling-app.hauling-quotes-page #sendManualMessageButton.is-send span::before {
    border: 0;
    border-right: 3px solid currentColor;
    border-top: 3px solid currentColor;
    content: "";
    height: .72rem;
    margin: 0;
    transform: translateX(-.12rem) rotate(45deg);
    width: .72rem;
  }

  body.hauling-app.hauling-quotes-page #sendManualMessageButton:hover {
    background: #303538;
    border-color: #282c2f;
    color: #13b05f;
  }

  body.hauling-app.hauling-quotes-page .jb-composer-inline-add {
    align-items: center;
    background: transparent;
    border: 0 !important;
    border-radius: 999px;
    bottom: auto;
    color: #13b05f;
    display: flex;
    font-size: 1.8rem;
    height: 2.3rem;
    justify-content: center;
    opacity: 0;
    padding: 0;
    pointer-events: none;
    position: absolute;
    right: .2rem;
    top: 50%;
    transform: translateY(-50%);
    transition: opacity .18s ease;
    width: 2.3rem;
  }

  body.hauling-app.hauling-quotes-page .jb-message-stream {
    scrollbar-gutter: auto;
    scrollbar-width: none;
  }

  body.hauling-app.hauling-quotes-page .jb-message-stream::-webkit-scrollbar,
  body.hauling-app.hauling-quotes-page .jb-composer textarea::-webkit-scrollbar {
    display: none;
    height: 0;
    width: 0;
  }

  body.hauling-app.hauling-quotes-page .jb-composer-inline-add.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%);
  }

  body.hauling-app.hauling-quotes-page .jb-composer-attachment-preview:not([hidden]) {
    animation: jbAttachmentPreviewIn .22s ease both;
    grid-column: 1 / -1;
    margin-bottom: .3rem;
  }

  body.hauling-app.hauling-quotes-page .jb-attachment-tray {
    background: #1f2227;
    border-radius: 1rem 1rem 0 0;
    display: grid;
    gap: .8rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 1rem;
    transform: translateY(1rem);
    transition: max-height .28s ease, opacity .2s ease, padding .28s ease, transform .28s ease;
  }

  body.hauling-app.hauling-quotes-page .jb-attachment-tray.is-open {
    margin-bottom: .3rem;
    max-height: 11rem;
    opacity: 1;
    overflow-y: auto;
    padding: 1rem;
    transform: translateY(0);
  }

  body.hauling-app.hauling-quotes-page .jb-attachment-tray.without-transition {
    transition: none !important;
  }

  .jb-attachment-tray h3 {
    color: #fff;
    margin: 0;
  }

  .jb-attachment-tray-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
  }

  .jb-attachment-tray-head > button {
    background: transparent;
    border: 0 !important;
    height: 2rem;
    padding: 0;
    position: relative;
    width: 2rem;
  }

  .jb-attachment-tray-head > button::before {
    border-bottom: 2px solid #13b05f;
    border-right: 2px solid #13b05f;
    content: "";
    height: .65rem;
    left: 50%;
    position: absolute;
    top: 42%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: .65rem;
  }

  .jb-attachment-options {
    display: flex;
    gap: 1rem;
  }

  .jb-attachment-option {
    align-items: center;
    color: #fff;
    cursor: pointer;
    display: grid;
    gap: .45rem;
    justify-items: center;
  }

  .jb-attachment-option input {
    display: none;
  }

  .jb-attachment-option-icon {
    align-items: center;
    background: #454851;
    border-radius: 14px;
    color: #13b05f;
    display: flex;
    font-size: 1.55rem;
    height: 4.25rem;
    justify-content: center;
    width: 4.25rem;
  }
}

@keyframes jbAttachmentPreviewIn {
  from { max-height: 0; opacity: 0; transform: translateY(.45rem); }
  to { max-height: 6rem; opacity: 1; transform: translateY(0); }
}

@keyframes jbAttachmentPreviewOut {
  from { max-height: 6rem; opacity: 1; transform: translateY(0); }
  to { max-height: 0; opacity: 0; transform: translateY(.35rem); }
}

@keyframes jbConversationOpen {
  from { opacity: 0; transform: translateX(1rem); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes jbConversationBack {
  from { opacity: 0; transform: translateX(-1rem); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes jbConversationContentOpen {
  from { opacity: 0; transform: translateX(.45rem); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes jbConversationContentBack {
  from { opacity: 0; transform: translateX(-.45rem); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes jbConversationBrandBack {
  from { opacity: 0; transform: translate(-.45rem, .08rem); }
  to { opacity: 1; transform: translate(0, .08rem); }
}

@keyframes jbDesktopConversationHeaderIn {
  from { opacity: 0; transform: translateX(.35rem); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes jbDesktopConversationMessagesIn {
  from { opacity: 0; transform: translateY(.3rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes jbDesktopConversationComposerIn {
  from { opacity: 0; transform: translateY(.2rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes jbComposerIconSwap {
  0% { opacity: 0; transform: scale(.65) rotate(-12deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes jbMessageIn {
  from { opacity: 0; transform: translateY(.65rem) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes jbPopoverIn {
  from { opacity: 0; transform: translateY(-.35rem) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes jbAttachmentRemove {
  from { max-width: 4.5rem; opacity: 1; transform: scale(1); }
  to { max-width: 0; opacity: 0; transform: scale(.78); }
}

@keyframes jbDialogIn {
  from { opacity: 0; transform: translateY(.7rem) scale(.975); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes jbDialogOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(.45rem) scale(.98); }
}

@keyframes jbDialogBackdropIn {
  from { backdrop-filter: blur(0); background: rgba(31, 34, 39, 0); -webkit-backdrop-filter: blur(0); }
  to { backdrop-filter: blur(7px); background: rgba(31, 34, 39, .62); -webkit-backdrop-filter: blur(7px); }
}

@keyframes jbDialogBackdropOut {
  from { backdrop-filter: blur(7px); background: rgba(31, 34, 39, .62); -webkit-backdrop-filter: blur(7px); }
  to { backdrop-filter: blur(0); background: rgba(31, 34, 39, 0); -webkit-backdrop-filter: blur(0); }
}

@media (prefers-reduced-motion: reduce) {
  .jb-popover:not([hidden]),
  .opportunity-message.message-entering,
  .jb-pending-attachment.is-removing,
  .jb-dialog[open],
  .jb-dialog.is-closing,
  body.mobile-conversation-list.conversation-opening .jb-chat-bar > *,
  body.mobile-conversation-list.conversation-opening .jb-message-stream > *,
  body.mobile-conversation-list.conversation-opening .jb-composer > *,
  body.mobile-conversation-list.conversation-closing .jb-sidebar-head > *,
  body.mobile-conversation-list.conversation-closing .jb-conversation-list > *,
  body.mobile-conversation-list.conversation-opening .jb-chat-title > *,
  body.mobile-conversation-list.conversation-opening .jb-message-stream > *,
  body.mobile-conversation-list.conversation-opening .jb-composer > * {
    animation: none;
  }
}

/* Shared, neutral completion-form design language. */
body.completion-app {
  --completion-accent: #596d7b;
  --completion-accent-dark: #41535f;
  --ink: #292c34;
  --muted: #6f757d;
  --line: #dfe1e4;
  --line-strong: #cdd1d5;
  --paper: #ffffff;
  --wash: #f1f1f3;
  --soft: #f7f8f9;
  --shadow: 0 2px 8px rgba(25, 30, 35, .06);
  background: var(--wash);
  color: var(--ink);
  font-family: Helvetica, Arial, sans-serif;
}

body.completion-app.hauling-app {
  --completion-accent: #13b05f;
  --completion-accent-dark: #0e8d4c;
  --teal: var(--completion-accent);
  --teal-dark: var(--completion-accent-dark);
  --gold: var(--completion-accent);
  --charcoal: #30353a;
  --control-fill: #ffffff;
  --control-border: #cdd1d5;
}

body.completion-app h1,
body.completion-app h2,
body.completion-app h3,
body.completion-app h4,
body.completion-app h5,
body.completion-app h6,
body.completion-app .hauling-title-form {
  font-family: Helvetica, Arial, sans-serif;
  letter-spacing: 0;
}

body.completion-app .app-header {
  background: linear-gradient(135deg, #30353a 0%, #424a50 62%, #535d62 100%);
  border-bottom: 4px solid var(--completion-accent);
}

body.completion-app .toolbar,
body.completion-app .summary,
body.completion-app .panel,
body.completion-app .help-panel,
body.completion-app .load-card,
body.completion-app .load-list-row,
body.completion-app .optional-pricing-controls,
body.completion-app .optional-pricing-body,
body.completion-app .photo-preview-frame {
  background: #fff;
  border-color: var(--line);
  box-shadow: var(--shadow);
}

body.completion-app .toolbar,
body.completion-app .summary,
body.completion-app .panel,
body.completion-app .help-panel {
  border-radius: 8px;
}

body.completion-app .help-panel {
  border-left: 4px solid var(--completion-accent);
}

body.completion-app input,
body.completion-app select,
body.completion-app textarea {
  background: #fff;
  border-color: #cdd1d5;
  color: var(--ink);
}

body.completion-app input:focus,
body.completion-app select:focus,
body.completion-app textarea:focus {
  border-color: var(--completion-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--completion-accent) 18%, transparent);
  outline: none;
}

body.completion-app button:not(.secondary):not(.danger):not(.filled-danger),
body.completion-app .button-link:not(.secondary) {
  background: var(--completion-accent);
  border: 1px solid var(--completion-accent-dark);
  color: #fff;
}

body.completion-app button:not(.secondary):not(.danger):not(.filled-danger):hover,
body.completion-app .button-link:not(.secondary):hover {
  background: var(--completion-accent-dark);
  border-color: var(--completion-accent-dark);
  color: #fff;
}

body.completion-app button.secondary,
body.completion-app .button-link.secondary,
body.completion-app .photo-file-button {
  background: #fff;
  border: 1px solid #cdd1d5;
  color: #343840;
}

body.completion-app button.secondary:hover,
body.completion-app .button-link.secondary:hover,
body.completion-app .photo-file-button:hover {
  background: #f1f2f3;
  border-color: #adb4ba;
  color: #25292e;
}

body.completion-app.hauling-app #haulingNewFormButton.secondary:hover {
  background: #f1f2f3;
  border-color: #adb4ba;
  color: #25292e;
}

body.completion-app button.danger {
  background: #fff;
  border: 1px solid #e1aaa6;
  color: #a92820;
}

body.completion-app button.danger:hover {
  background: #a92820;
  border-color: #a92820;
  color: #fff;
}

body.completion-app .summary h2,
body.completion-app .panel h2,
body.completion-app .help-panel strong {
  color: #30343a;
}

html.embedded-admin-tool body.completion-app .app-shell {
  background: var(--wash);
}

.completion-form-brand { display: none; }

html.embedded-admin-tool .completion-form-brand {
  align-items: center;
  background: #44494e;
  border: 1px solid #393e43;
  border-bottom: 2px solid var(--completion-accent);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(25, 30, 35, .08);
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 1rem 1.15rem;
}

html.admin-seamless-embed .completion-form-brand { display: none; }

html.embedded-admin-tool .completion-form-brand img {
  display: block;
  max-height: 54px;
  max-width: 190px;
  object-fit: contain;
  width: auto;
}

html.embedded-admin-tool .completion-form-brand h1 {
  color: #fff;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0;
}

html.embedded-admin-tool .completion-form-brand.neutral-page-banner {
  border-bottom: 1px solid #393e43;
}

html.embedded-admin-tool body.moving-completion-app .completion-form-brand {
  border-bottom-color: #9f0000;
}

body.moving-completion-app .help-panel {
  border-left-color: #9f0000;
}

body.moving-completion-app .moving-collapsible-panel {
  border-top: 4px solid #9f0000;
  overflow: hidden;
  padding: 0;
}

body.moving-completion-app .moving-collapsible-summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  list-style: none;
  min-height: 64px;
  padding: 1rem 1.15rem;
}

body.moving-completion-app .moving-collapsible-summary::-webkit-details-marker { display: none; }
body.moving-completion-app .moving-collapsible-summary h2 { margin: 0; }
body.moving-completion-app .moving-panel-chevron {
  color: #9f0000;
  font-family: Arial, sans-serif;
  font-size: 2.2rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform .22s ease;
}
body.moving-completion-app .moving-collapsible-panel[open] .moving-panel-chevron { transform: rotate(90deg); }
body.moving-completion-app .moving-collapsible-body { border-top: 1px solid #e1e3e5; padding: 1.15rem; }

body.moving-completion-app .moving-days-container > h2 {
  color: #fff;
  margin: 0 0 1rem;
}

body.moving-completion-app .moving-days-container,
body.moving-completion-app .moving-day-panel,
body.moving-completion-app .moving-day-body,
body.moving-completion-app .location-list,
body.moving-completion-app .location-row {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
}

body.moving-completion-app .moving-days-container {
  background: #7b0000;
  border-color: #5f0000;
}

body.moving-completion-app .moving-days-list {
  display: grid;
  gap: .8rem;
  margin-bottom: 1rem;
  min-width: 0;
}

body.moving-completion-app .moving-day-panel {
  background: #fff;
  border: 1px solid #dfe1e4;
  border-left: 4px solid #596d7b;
  border-radius: 8px;
  box-shadow: none;
  overflow: hidden;
  padding: 0;
}

body.moving-completion-app .moving-day-panel > summary {
  margin-bottom: 0;
  min-height: 46px;
  padding: .55rem .9rem;
}

body.moving-completion-app .moving-day-panel[open] > summary .moving-panel-chevron {
  transform: rotate(90deg);
}

body.moving-completion-app .moving-day-body {
  border-top: 1px solid #e1e3e5;
  padding: 1.15rem;
}

body.moving-completion-app .moving-day-body > .grid {
  align-items: end;
}

body.moving-completion-app .moving-day-body > .grid > .check-label {
  align-self: end;
  margin-top: 0;
  min-height: 2.7rem;
}

body.moving-completion-app .moving-day-body .location-fields {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  min-width: 0;
}

body.moving-completion-app .moving-day-body .location-fields > label,
body.moving-completion-app .moving-day-body .location-fields input {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
}

body.moving-completion-app .moving-day-body .location-fields > label {
  align-self: start;
}

body.moving-completion-app .moving-day-body .location-fields > label:first-child {
  grid-column: 1 / span 4;
  grid-row: 1;
}

body.moving-completion-app .moving-day-body .location-fields > label:nth-child(5) {
  grid-column: 5 / span 2;
  grid-row: 1;
}

body.moving-completion-app .moving-day-body .location-fields > label:nth-child(2) {
  grid-column: 1 / span 2;
  grid-row: 2;
}

body.moving-completion-app .moving-day-body .location-fields > label:nth-child(3) {
  grid-column: 3 / span 2;
  grid-row: 2;
}

body.moving-completion-app .moving-day-body .location-fields > label:nth-child(4) {
  grid-column: 5 / span 2;
  grid-row: 2;
}

body.moving-completion-app .moving-day-body .location-fields > .rate-edit-section {
  grid-column: 1 / span 2;
  grid-row: 3;
}

body.moving-completion-app .day-actions {
  display: flex;
  justify-content: flex-end;
}

body.moving-completion-app .truck-photo-groups {
  display: grid;
  gap: 1rem;
}

body.moving-completion-app .truck-photo-location {
  border: 1px solid #dfe1e4;
  border-radius: 8px;
  padding: 1rem;
}

body.moving-completion-app .truck-photo-location > .attachment-panel-head {
  align-items: center;
}

body.moving-completion-app .truck-photo-location h3,
body.moving-completion-app .truck-photo-location .status-line {
  margin: 0;
}

body.moving-completion-app .truck-pickup-title {
  align-items: center;
  display: flex;
  gap: .45rem;
  min-width: 0;
}

body.moving-completion-app .truck-pickup-name {
  background: transparent;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  min-width: 0;
  padding: .2rem 0;
  width: min(220px, 100%);
}

body.moving-completion-app .truck-pickup-name:hover,
body.moving-completion-app .truck-pickup-name:focus {
  border-bottom-color: #9f0000;
  outline: none;
}

body.moving-completion-app .truck-pickup-actions {
  align-items: center;
  display: flex;
  gap: .55rem;
}

body.moving-completion-app .add-truck-pickup {
  margin-top: 1rem;
}

@keyframes moving-signature-status-fade {
  from { opacity: 1; }
  to { opacity: 0; visibility: hidden; }
}

body.moving-completion-app .signature-status.is-saved {
  animation: moving-signature-status-fade .35s ease 3s forwards;
}

body.moving-completion-app .damage-sections { display: grid; gap: 1rem; }
body.moving-completion-app .damage-subsection { background: #f8f8f9; border: 1px solid #dfe1e4; border-radius: 7px; padding: 1rem; }
body.moving-completion-app .moving-expense-sections { display: grid; gap: 1rem; margin-top: 1rem; }
body.moving-completion-app .moving-expense-subsection { background: #f8f8f9; border: 1px solid #dfe1e4; border-radius: 7px; padding: 1rem; }
body.moving-completion-app .moving-expense-subsection h3 { margin: 0 0 .85rem; }

body.moving-completion-app button.moving-red-action,
body.moving-completion-app #invoiceButton {
  background: #9f0000 !important;
  border-color: #7b0000 !important;
  color: #fff !important;
}
body.moving-completion-app button.moving-red-action:hover,
body.moving-completion-app #invoiceButton:hover {
  background: #760000 !important;
  border-color: #760000 !important;
  color: #fff !important;
}

body.moving-completion-app .moving-days-container > button.moving-red-action {
  background: #596d7b !important;
  border-color: #41535f !important;
  color: #fff !important;
}

body.moving-completion-app .moving-days-container > button.moving-red-action:hover {
  background: #41535f !important;
  border-color: #34444f !important;
  color: #fff !important;
}

body.moving-completion-app .payment-options button {
  border-color: #9f0000;
}
body.moving-completion-app .payment-options button:not(.secondary),
body.moving-completion-app .payment-options button.secondary:hover {
  background: #9f0000 !important;
  border-color: #9f0000 !important;
  color: #fff !important;
}
body.moving-completion-app .payment-options button.secondary {
  background: #fff;
  color: #8b0000;
}
body.moving-completion-app .signature-action-buttons { display: flex; flex-wrap: wrap; gap: .6rem; }
body.moving-completion-app .signature-pad.is-readonly { background: #f7f8f9; pointer-events: none; }
body.moving-completion-app .deposit-credit-button { margin-top: .65rem; }

body.hauling-app .loads-panel {
  background: #106137;
  border-color: #0b4829;
}

body.hauling-app .loads-panel > .panel-head h2,
body.hauling-app .loads-panel > .panel-head .section-intro {
  color: #fff;
}

body.hauling-app .loads-panel .load-card {
  background: #fff;
  border-color: #dfe1e4;
  border-left: 4px solid #596d7b;
  box-shadow: none;
}

body.hauling-app .loads-panel .junk-add-load {
  background: #30353a;
  border-color: #22272b;
  color: #fff;
  transition: background-color .22s ease, border-color .22s ease, color .22s ease, box-shadow .22s ease, transform .22s ease;
}

body.hauling-app .loads-panel .junk-add-load:hover {
  background: #22272b;
  border-color: #171b1e;
  color: #fff;
  transform: translateY(-1px);
}

body.hauling-app .loads-panel .junk-add-load:active {
  transform: translateY(0) scale(.98);
}

body.hauling-app .signature-status.is-saved {
  animation: moving-signature-status-fade .35s ease 3s forwards;
}

body.moving-completion-app button[data-action="add-day"],
body.moving-completion-app button[data-action="add-truck-pickup"],
body.moving-completion-app button[data-action="add-location"] {
  transition: background-color .22s ease, border-color .22s ease, color .22s ease, box-shadow .22s ease, transform .22s ease;
}

body.moving-completion-app button[data-action="add-day"]:hover,
body.moving-completion-app button[data-action="add-truck-pickup"]:hover,
body.moving-completion-app button[data-action="add-location"]:hover {
  transform: translateY(-1px);
}

body.moving-completion-app button[data-action="add-day"]:active,
body.moving-completion-app button[data-action="add-truck-pickup"]:active,
body.moving-completion-app button[data-action="add-location"]:active {
  transform: translateY(0) scale(.98);
}

@media (max-width: 760px) {
  body.moving-completion-app .moving-day-body .location-fields {
    grid-template-columns: 1fr;
  }

  body.moving-completion-app .moving-day-body .location-fields > label:first-child {
    grid-column: auto;
    grid-row: auto;
  }

  body.moving-completion-app .moving-day-body .location-fields > label:nth-child(2),
  body.moving-completion-app .moving-day-body .location-fields > label:nth-child(3),
  body.moving-completion-app .moving-day-body .location-fields > label:nth-child(4),
  body.moving-completion-app .moving-day-body .location-fields > label:nth-child(5),
  body.moving-completion-app .moving-day-body .location-fields > .rate-edit-section {
    grid-column: auto;
    grid-row: auto;
  }

  body.moving-completion-app .pause-controls-left {
    align-items: stretch;
  }

  body.moving-completion-app .moving-day-panel > .moving-collapsible-summary {
    align-items: center;
    flex-direction: row;
    gap: .55rem;
    justify-content: flex-start;
  }

  body.moving-completion-app .truck-photo-location > .attachment-panel-head {
    align-items: center;
    flex-direction: row;
    gap: .6rem;
    justify-content: space-between;
  }

  body.moving-completion-app .truck-pickup-title {
    flex: 1 1 auto;
  }

  body.moving-completion-app .truck-pickup-name {
    width: 100%;
  }

  body.moving-completion-app .truck-pickup-actions {
    flex: 0 0 auto;
  }
}

@media (max-width: 560px) {
  html.embedded-admin-tool .completion-form-brand { gap: .75rem; }
  html.embedded-admin-tool .completion-form-brand img { max-height: 42px; max-width: 145px; }
  html.embedded-admin-tool .completion-form-brand h1 { font-size: 1.25rem; }
}

/* Keep the leads composer fluid after all legacy mobile composer rules. */
@media (max-width: 760px) {
  body.hauling-app.hauling-quotes-page .jb-composer-row {
    align-items: end;
  }

  body.hauling-app.hauling-quotes-page .jb-composer textarea {
    box-sizing: border-box;
    height: var(--jb-composer-control-height);
    line-height: 1.35rem;
    max-height: 8.25rem !important;
    min-height: var(--jb-composer-control-height);
    overflow-y: hidden;
    padding: .65rem .85rem;
  }

  body.hauling-app.hauling-quotes-page .jb-composer textarea.has-inline-add {
    padding-right: 3rem;
  }

  body.hauling-app.hauling-quotes-page .jb-composer-inline-add {
    bottom: calc((var(--jb-composer-control-height) - 2.3rem) / 2);
    top: auto;
    transform: scale(.72);
  }

  body.hauling-app.hauling-quotes-page .jb-composer-inline-add.is-visible {
    transform: scale(1);
  }

  body.hauling-app.hauling-quotes-page .jb-composer .toolbar-actions,
  body.hauling-app.hauling-quotes-page #sendManualMessageButton {
    align-self: end;
    height: var(--jb-composer-control-height);
    min-height: var(--jb-composer-control-height);
  }
}

/* Mobile Leads follows the phone's system theme. */
@media (max-width: 760px) and (prefers-color-scheme: dark) {
  body.hauling-app.hauling-quotes-page {
    color-scheme: dark;
    --ink: #f4f6f5;
    --muted: #c1c7c3;
    --line: #62666f;
    --line-strong: #747982;
    --paper: #303239;
    --wash: #454851;
    --soft: #3b3e46;
    --control-fill: #454851;
    --control-border: #62666f;
    background: #454851;
    color: var(--ink);
  }

  body.hauling-app.hauling-quotes-page .jb-shell,
  body.hauling-app.hauling-quotes-page .jb-inbox-app,
  body.hauling-app.hauling-quotes-page .jb-sidebar,
  body.hauling-app.hauling-quotes-page .jb-conversation-list,
  body.hauling-app.hauling-quotes-page .jb-chat-pane,
  body.hauling-app.hauling-quotes-page .jb-message-stream,
  body.hauling-app.hauling-quotes-page:not(.has-active-conversation) .jb-message-stream {
    background: #454851 !important;
  }

  body.hauling-app.hauling-quotes-page .jb-conversation-row,
  body.hauling-app.hauling-quotes-page button.jb-conversation-row,
  body.hauling-app.hauling-quotes-page button.jb-conversation-row:hover,
  body.hauling-app.hauling-quotes-page button.jb-conversation-row:active,
  body.hauling-app.hauling-quotes-page button.jb-conversation-row:focus,
  body.hauling-app.hauling-quotes-page button.jb-conversation-row:focus-visible {
    background: transparent;
    color: #f4f6f5;
  }

  body.hauling-app.hauling-quotes-page .jb-conversation-row.selected-record {
    background: #3d4543;
  }

  body.hauling-app.hauling-quotes-page .jb-conversation-copy strong,
  body.hauling-app.hauling-quotes-page .jb-conversation-row.is-unread .jb-conversation-copy small {
    color: #f4f6f5;
  }

  body.hauling-app.hauling-quotes-page .jb-conversation-copy small,
  body.hauling-app.hauling-quotes-page .jb-conversation-source,
  body.hauling-app.hauling-quotes-page .jb-conversation-meta,
  body.hauling-app.hauling-quotes-page .jb-conversation-time {
    color: #c1c7c3;
  }

  body.hauling-app.hauling-quotes-page .opportunity-message.inbound {
    background: #5a5e68;
    color: #fff;
  }

  body.hauling-app.hauling-quotes-page .opportunity-message.outbound.sent {
    background: #326b4d;
    color: #fff;
  }

  body.hauling-app.hauling-quotes-page .opportunity-message.pending {
    background: #665a30;
    color: #fff;
  }

  body.hauling-app.hauling-quotes-page .opportunity-message.internal,
  body.hauling-app.hauling-quotes-page .jb-call-event-marker span {
    background: #3b3e46;
    color: #e2e6e3;
  }

  body.hauling-app.hauling-quotes-page .opportunity-message-details,
  body.hauling-app.hauling-quotes-page .opportunity-message-details time,
  body.hauling-app.hauling-quotes-page .jb-message-date-separator,
  body.hauling-app.hauling-quotes-page .jb-call-event-marker time,
  body.hauling-app.hauling-quotes-page .jb-empty-conversation {
    color: #c1c7c3;
  }

  body.hauling-app.hauling-quotes-page .jb-message-date-separator::before,
  body.hauling-app.hauling-quotes-page .jb-message-date-separator::after {
    background: #666a73;
  }

  body.hauling-app.hauling-quotes-page .jb-popover,
  body.hauling-app.hauling-quotes-page .jb-dialog,
  body.hauling-app.hauling-quotes-page .jb-search-results,
  body.hauling-app.hauling-quotes-page .jb-attachment-tray {
    background: #303239;
    border-color: #62666f;
    color: #f4f6f5;
  }

  body.hauling-app.hauling-quotes-page .jb-dialog input,
  body.hauling-app.hauling-quotes-page .jb-dialog select,
  body.hauling-app.hauling-quotes-page .jb-dialog textarea,
  body.hauling-app.hauling-quotes-page .jb-popover input {
    background: #454851;
    border-color: #62666f;
    color: #fff;
  }

  body.hauling-app.hauling-quotes-page .jb-dialog input::placeholder,
  body.hauling-app.hauling-quotes-page .jb-dialog textarea::placeholder,
  body.hauling-app.hauling-quotes-page .jb-popover input::placeholder {
    color: #c1c7c3;
  }

  body.hauling-app.hauling-quotes-page .jb-sidebar,
  body.hauling-app.hauling-quotes-page .jb-conversation-list,
  body.hauling-app.hauling-quotes-page .jb-chat-pane,
  body.hauling-app.hauling-quotes-page .jb-message-stream,
  body.hauling-app.hauling-quotes-page .jb-dialog,
  body.hauling-app.hauling-quotes-page .jb-popover {
    transition: background-color .28s ease, color .28s ease, border-color .28s ease;
  }
}

/* Explicit class fallback for mobile browsers embedding Leads in an iframe. */
@media (max-width: 760px) {
  body.hauling-app.hauling-quotes-page .customer-title-edit {
    align-items: stretch;
  }

  body.hauling-app.hauling-quotes-page #quoteDialog {
    max-height: calc(100dvh - 1rem);
    max-width: calc(100vw - 1rem);
    overflow-x: hidden;
    padding: .7rem;
    width: calc(100vw - 1rem);
  }

  body.hauling-app.hauling-quotes-page #quoteDialog :is(
    .quote-builder-layout,
    .hauling-quote-layout,
    .hauling-quote-panel,
    .quote-creator-panel,
    .hauling-quote-summary,
    .quote-records-section,
    .quote-route-box,
    .grid,
    .record-list,
    .record-card
  ) {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }

  body.hauling-app.hauling-quotes-page #quoteDialog .grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.hauling-app.hauling-quotes-page #quoteDialog :is(input, select, textarea, button) {
    max-width: 100%;
  }

  body.hauling-app.hauling-quotes-page #quoteDialog .panel-head,
  body.hauling-app.hauling-quotes-page #quoteDialog .toolbar-actions {
    align-items: stretch;
    flex-wrap: wrap;
  }

  body.hauling-app.hauling-quotes-page .customer-title-edit .customer-name-input,
  body.hauling-app.hauling-quotes-page .customer-title-edit #editCustomerNameButton {
    height: 2.9rem;
    min-height: 2.9rem;
  }

  body.hauling-app.hauling-quotes-page .customer-title-edit #editCustomerNameButton {
    align-self: stretch;
    aspect-ratio: 1;
  }

  html.mobile-system-dark body.hauling-app.hauling-quotes-page {
    color-scheme: dark;
    --ink: #f4f6f5;
    --muted: #c1c7c3;
    --line: #62666f;
    --line-strong: #747982;
    --paper: #303239;
    --wash: #454851;
    --soft: #3b3e46;
    --control-fill: #454851;
    --control-border: #62666f;
    background: #454851 !important;
    color: #f4f6f5;
  }

  html.mobile-system-dark body.hauling-app.hauling-quotes-page .jb-shell,
  html.mobile-system-dark body.hauling-app.hauling-quotes-page .jb-inbox-app,
  html.mobile-system-dark body.hauling-app.hauling-quotes-page .jb-sidebar,
  html.mobile-system-dark body.hauling-app.hauling-quotes-page .jb-conversation-list,
  html.mobile-system-dark body.hauling-app.hauling-quotes-page .jb-chat-pane,
  html.mobile-system-dark body.hauling-app.hauling-quotes-page .jb-message-stream {
    background: #1f2227 !important;
    color: #f4f6f5;
  }

  html.mobile-system-dark body.hauling-app.hauling-quotes-page button.jb-conversation-row {
    background: transparent !important;
    color: #f4f6f5 !important;
  }

  html.mobile-system-dark body.hauling-app.hauling-quotes-page .jb-conversation-copy strong,
  html.mobile-system-dark body.hauling-app.hauling-quotes-page .jb-conversation-contact,
  html.mobile-system-dark body.hauling-app.hauling-quotes-page .jb-conversation-row.is-unread .jb-conversation-copy small {
    color: #f4f6f5 !important;
  }

  html.mobile-system-dark body.hauling-app.hauling-quotes-page .jb-conversation-row.is-unread .jb-conversation-copy small {
    font-weight: 800;
  }

  html.mobile-system-dark body.hauling-app.hauling-quotes-page .jb-conversation-copy small,
  html.mobile-system-dark body.hauling-app.hauling-quotes-page .jb-conversation-source,
  html.mobile-system-dark body.hauling-app.hauling-quotes-page .jb-conversation-meta,
  html.mobile-system-dark body.hauling-app.hauling-quotes-page .jb-conversation-time {
    color: #c1c7c3 !important;
  }

  html.mobile-system-dark body.hauling-app.hauling-quotes-page .opportunity-message.inbound {
    background: #454851 !important;
    color: #fff !important;
  }

  html.mobile-system-dark body.hauling-app.hauling-quotes-page .opportunity-message.outbound.sent {
    background: #13b05f !important;
    color: #fff !important;
  }

  html.mobile-system-dark body.hauling-app.hauling-quotes-page .opportunity-message.pending {
    background: #fff4bd !important;
    color: #000 !important;
  }

  html.mobile-system-dark body.hauling-app.hauling-quotes-page .opportunity-message.pending *,
  html.mobile-system-dark body.hauling-app.hauling-quotes-page .note-log-bubble.automated-note,
  html.mobile-system-dark body.hauling-app.hauling-quotes-page .note-log-bubble.automated-note * {
    color: #000 !important;
  }

  html.mobile-system-dark body.hauling-app.hauling-quotes-page .jb-popover,
  html.mobile-system-dark body.hauling-app.hauling-quotes-page .jb-dialog,
  html.mobile-system-dark body.hauling-app.hauling-quotes-page .jb-search-results,
  html.mobile-system-dark body.hauling-app.hauling-quotes-page .jb-attachment-tray {
    background: #303239 !important;
    border-color: #62666f !important;
    color: #f4f6f5 !important;
  }

  html.mobile-system-dark body.hauling-app.hauling-quotes-page #draftMessageDialog .jb-draft-review,
  html.mobile-system-dark body.hauling-app.hauling-quotes-page #draftMessageDialog .jb-draft-review h2 {
    color: #fff !important;
  }

  html.mobile-system-dark body.hauling-app.hauling-quotes-page #draftMessageDialog .jb-draft-review textarea {
    background: #555963 !important;
    border-color: #6a6f79 !important;
    color: #fff !important;
  }

  html.mobile-system-dark body.hauling-app.hauling-quotes-page #draftMessageDialog .draft-quote-controls,
  html.mobile-system-dark body.hauling-app.hauling-quotes-page #draftMessageDialog .draft-quote-controls select,
  html.mobile-system-dark body.hauling-app.hauling-quotes-page #draftMessageDialog .draft-quote-controls button {
    background: #555963 !important;
    border-color: #6a6f79 !important;
    color: #fff !important;
  }

  html.mobile-system-dark body.hauling-app.hauling-quotes-page #leadMenu button,
  html.mobile-system-dark body.hauling-app.hauling-quotes-page #conversationMenu button {
    color: #fff !important;
  }

  html.mobile-system-dark body.hauling-app.hauling-quotes-page :is(
    #searchDialog input,
    #notesLogDialog textarea,
    #customerDialog input,
    #customerDialog select,
    #customerDialog textarea,
    #quoteDialog input,
    #quoteDialog select,
    #quoteDialog textarea,
    #scheduleDialog input,
    #scheduleDialog select,
    #scheduleDialog textarea
  ) {
    background: #555963 !important;
    border-color: #6a6f79 !important;
    color: #fff !important;
  }

  html.mobile-system-dark body.hauling-app.hauling-quotes-page :is(
    #searchDialog input,
    #notesLogDialog textarea,
    #customerDialog input,
    #customerDialog textarea,
    #quoteDialog input,
    #quoteDialog textarea,
    #scheduleDialog input,
    #scheduleDialog textarea
  )::placeholder {
    color: #d3d7dc !important;
    opacity: 1;
  }

  html.mobile-system-dark body.hauling-app.hauling-quotes-page #editCustomerNameButton {
    background: #555963 !important;
    border-color: #6a6f79 !important;
    color: #fff !important;
  }

  html.mobile-system-dark body.hauling-app.hauling-quotes-page #customerDialog input:disabled {
    -webkit-text-fill-color: #fff;
    color: #fff !important;
    opacity: 1;
  }

  html.mobile-system-dark body.hauling-app.hauling-quotes-page #scheduleDialog .schedule-employee-picker,
  html.mobile-system-dark body.hauling-app.hauling-quotes-page #scheduleDialog #scheduleEmployeeChecks {
    background: #555963 !important;
    border-color: #6a6f79 !important;
    color: #fff !important;
  }

  html.mobile-system-dark body.hauling-app.hauling-quotes-page #quoteDialog .hauling-quote-panel,
  html.mobile-system-dark body.hauling-app.hauling-quotes-page #quoteDialog .quote-creator-panel,
  html.mobile-system-dark body.hauling-app.hauling-quotes-page #quoteDialog .hauling-quote-summary,
  html.mobile-system-dark body.hauling-app.hauling-quotes-page #quoteDialog .quote-records-section {
    background: #303239 !important;
    border-color: #303239 !important;
    box-shadow: none !important;
  }

  html.mobile-system-dark body.hauling-app.hauling-quotes-page #quoteDialog [data-action="load-quote"] {
    color: #fff !important;
  }
}

/* Final Moving Leads dialog accents after the shared mobile-dark rules. */
body.hauling-app.hauling-quotes-page.moving-leads-page #searchDialog input,
html.mobile-system-dark body.hauling-app.hauling-quotes-page.moving-leads-page #searchDialog input {
  border-color: #c84f58 !important;
}

body.hauling-app.hauling-quotes-page.moving-leads-page #searchDialog input:focus,
html.mobile-system-dark body.hauling-app.hauling-quotes-page.moving-leads-page #searchDialog input:focus {
  border-color: #e06b73 !important;
  box-shadow: 0 0 0 3px rgba(200, 79, 88, .2) !important;
}

body.hauling-app.hauling-quotes-page.moving-leads-page #draftMessageDialog :is(
  #updateDraftQuoteButton,
  #sendDraftMessageButton
) {
  border: 0 !important;
  color: #fff !important;
}

@media (max-width: 760px) {
  html.mobile-system-dark body.hauling-app.hauling-quotes-page.moving-leads-page #searchDialog .jb-search-results button strong {
    color: #fff !important;
  }
}
