/* Shared with the landing page: cream, teal, green actions, chat wallpaper. */
:root {
  font-family: "Segoe UI", Arial, "Noto Sans Hebrew", sans-serif;
  color: #111b21;
  background: #fcf5eb;
  --green: #073f3b;
  --mint: #d9fdd3;
  --muted: #54656f;
  --border: #dce5df;
  --action: #25d366;
  --paper: #fff;
  --cream: #fcf5eb;
  --teal: #075e54;
}
body {
  line-height: 1.55;
}
button,
a,
input,
select,
textarea {
  accent-color: #087d54;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #087d54;
  outline-offset: 4px;
}
.icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  vertical-align: middle;
}
.button {
  min-height: 44px;
  border-radius: 999px;
  transition: background .15s, box-shadow .15s;
}
.primary {
  background: var(--action);
  color: #111b21;
  border-color: var(--action);
}
.primary:hover {
  background: #1fc45d;
  border-color: #1fc45d;
}
.secondary:hover,
.ghost:hover {
  background: #edf8ed;
}
.brand {
  display: inline-flex;
  width: fit-content;
  line-height: 1;
  flex-shrink: 0;
}
.brand img {
  display: block;
  width: 148px;
  height: auto;
}
.brand-on-dark {
  background: var(--cream);
  border-radius: 12px;
  padding: 10px 12px;
}
.app-mark {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: transparent;
}
.eyebrow {
  color: #087d54;
  letter-spacing: .04em;
}
.skip-link {
  position: fixed;
  inset-block-start: -100px;
  inset-inline-start: 20px;
  z-index: 30;
  padding: 12px 20px;
  background: white;
  color: #073f3b;
  border-radius: 999px;
}
.skip-link:focus {
  inset-block-start: 12px;
}
.workspace {
  grid-template-columns: 244px minmax(0,1fr);
}
.workspace-body {
  min-width: 0;
}
.sidebar {
  background: var(--green);
  color: #fff;
  border: 0;
  padding: 30px 20px;
  overflow-y: auto;
  gap: 8px;
}
.sidebar .brand {
  padding: 10px 12px;
  max-width: 100%;
}
.sidebar .brand img {
  width: 176px;
  max-width: 100%;
}
.garage-name {
  border-color: #ffffff26;
  margin: 24px 8px 20px;
  padding-block: 20px;
}
.garage-name small,
.sidebar .connection-status .live-state,
.sidebar .connection-status small {
  color: #c1ddd3;
}
.connection-status {
  display: grid;
  gap: 6px;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.connection-status small {
  color: var(--muted);
  font-size: 12px;
}
.connection-status .live-state {
  white-space: normal;
  color: var(--green);
  font-size: 13px;
}
.boot .connection-status {
  background: var(--cream);
  border-radius: 12px;
  padding: 12px;
  max-width: calc(100% - 24px);
}
.mobile-connection {
  display: none;
}
@media (max-width: 740px) {
  .mobile-connection {
    display: block;
    padding: 10px 18px;
    background: #fcf5eb;
    border-bottom: 1px solid #073f3b24;
  }
}
.garage-name strong {
  color: #fff;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.sidebar nav {
  gap: 9px;
}
.sidebar .nav-item {
  color: #d5e6dd;
  background: transparent;
  padding-inline: 16px;
  gap: 12px;
}
.sidebar .nav-item:hover {
  background: #ffffff12;
}
.sidebar .nav-item.selected {
  background: var(--mint);
  color: var(--green);
}
.sidebar .side-bottom .button {
  color: #d5e6dd;
  justify-content: flex-start;
}
.sidebar .side-bottom .button:hover {
  background: #ffffff12;
}
.sidebar :focus-visible {
  outline-color: #a9efbd;
}
.live-state i,
.poll i {
  background: var(--action);
  box-shadow: 0 0 0 3px #25d36616;
}
.topbar {
  background: #fffdf8;
  min-height: 83px;
  height: auto;
  padding-block: 18px;
}
.topbar > div:first-of-type {
  display: grid;
  gap: 4px;
}
.mobile-brand {
  display: none;
}
.header-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}
.header-actions .button {
  font-size: 12px;
}
.header-actions select {
  border-radius: 999px;
  color: var(--green);
}
.content {
  max-width: 1440px;
  padding: 32px 38px 48px;
}
.page-heading:has(.eyebrow) {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--cream) url("../chat-pattern.svg") center / 320px 260px;
  position: relative;
  isolation: isolate;
}
.page-heading:has(.eyebrow)::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg,#fcf5eb66,#fcf5ebee 55%);
  z-index: -1;
}
.page-heading h1 {
  font-size: clamp(26px,2.7vw,36px);
  letter-spacing: -.04em;
  color: var(--green);
}
.page-heading > div {
  min-width: 0;
}
.page-heading .primary {
  flex-shrink: 0;
}
.metrics {
  gap: 14px;
}
.metric {
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 3px 12px #073f3b04;
}
.metric strong {
  color: var(--green);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.metric small {
  color: var(--muted);
}
.metric-icon {
  color: #087d54;
  background: #edf8ed;
  border-radius: 12px;
  padding: 7px;
  display: grid;
}
.metric-icon .icon {
  width: 19px;
  height: 19px;
}
.metric:has(.metric-icon) {
  gap: 18px;
}
.panel {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 24px #073f3b04;
}
.list-tools {
  background: #fffdf8;
  padding: 20px 22px;
  gap: 16px;
}
.search {
  min-width: 0;
}
.search input {
  background: #fff;
  border-radius: 999px;
  min-height: 46px;
  padding-inline: 18px;
}
.filters {
  padding: 4px;
  border-radius: 999px;
  background: #f2f5ef;
  gap: 2px;
}
.chip {
  min-height: 40px;
  border-radius: 999px;
  font-weight: 600;
}
.chip.selected {
  background: var(--mint);
  color: var(--green);
}
.job-row {
  min-height: 110px;
  border-color: #e8eee9;
  transition: background .15s;
}
.job-row:hover {
  background: #f4fbf1;
}
.job-row:focus-visible {
  outline-offset: -4px;
}
.vehicle-avatar {
  color: #087d54;
  background: #edf8ed;
  width: 46px;
  height: 46px;
  border-radius: 50%;
}
.job-main,
.job-issue {
  min-width: 0;
}
.job-main > strong {
  overflow-wrap: anywhere;
}
.job-main small,
.job-end small {
  color: var(--muted);
}
.job-issue strong {
  color: #394e46;
}
.badge {
  border-radius: 999px;
  font-weight: 600;
}
.badge.IN_PROGRESS,
.badge.APPROVED {
  background: var(--mint);
  color: #20583a;
}
.badge.READY_FOR_PICKUP {
  background: #d7f3ea;
  color: #075e54;
}
.badge.PENDING_APPROVAL,
.badge.PENDING_CUSTOMER_APPROVAL,
.badge.PENDING_ADMIN {
  color: #7a5910;
}
.badge.REJECTED {
  color: #944b3b;
}
.avatar {
  background: #d9fdd3;
  color: #075e54;
}
.person-row {
  padding: 22px;
}
.account-card,
.registration {
  padding: 32px;
}
.detail-grid {
  background: #f4f8ef;
  border-radius: 16px;
}
.field input,
.field textarea,
.field select {
  border-radius: 12px;
}
.detail-actions {
  gap: 10px;
}
.actions .button {
  min-height: 44px;
}
dialog {
  background: #fffdf8;
  border-radius: 24px;
}
.close-button {
  min-height: 44px;
  width: 44px;
  height: 44px;
  background: #edf4ed;
}
.messages {
  background: #efeae2 url("../chat-pattern.svg");
  border-radius: 16px;
  padding: 16px;
}
.message {
  background: #fff;
  border: 0;
  border-radius: 14px 4px 14px 14px;
  box-shadow: 0 2px 5px #073f3b0b;
}
.document {
  border: 1px solid var(--border);
  background: #f4f8ef;
  border-radius: 14px;
}
.login-layout {
  background: var(--cream);
}
.login-art {
  background: var(--green);
  padding: 38px 58px;
}
.login-art::after {
  background: url("../chat-pattern.svg");
  border: 0;
  border-radius: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  box-shadow: none;
  opacity: .22;
}
.login-art > * {
  position: relative;
  z-index: 1;
}
.login-art h1 {
  font-weight: 700;
}
.login-art .eyebrow {
  color: #a9efbd;
}
.login-art p:not(.eyebrow),
.login-art small {
  color: #c2d9cc;
}
.login-symbol {
  display: block;
  width: 92px;
  height: 92px;
  border-radius: 22px;
  margin-top: 30px;
}
.orbit {
  margin-top: 24px;
  gap: 14px 16px;
}
.orbit > span {
  color: #25d366;
}
.login-panel {
  padding: 40px;
  background: var(--cream) url("../chat-pattern.svg");
}
.login-card {
  width: min(100%,450px);
  background: #fffdf8;
  border: 1px solid var(--border);
  padding: 36px;
  border-radius: 24px;
  box-shadow: 0 24px 70px #102b2512;
}
.login-card h2 {
  color: var(--green);
  line-height: 1.4;
}
.login-card > p {
  line-height: 1.8;
}
.login-card .primary {
  min-height: 52px;
}
.code {
  background: #edf8ed;
  border-radius: 16px;
}
.code strong {
  letter-spacing: 4px;
}
.privacy-note,
.legal-links {
  line-height: 1.8;
}
.legal-links {
  flex-wrap: wrap;
}
.boot {
  background: var(--cream) url("../chat-pattern.svg");
}
.boot h1 {
  background: var(--cream);
  padding: 8px 16px;
}
#toast {
  background: var(--green);
  border-radius: 18px;
}
@media (min-width: 1500px) {
  .content {
    padding-inline: 48px;
  }
}
@media (max-width: 1100px) {
  .workspace {
    grid-template-columns: 220px minmax(0,1fr);
  }
  .sidebar {
    padding-inline: 14px;
  }
  .sidebar .brand img {
    width: 164px;
  }
  .content {
    padding: 26px;
  }
  .login-art {
    padding: 35px;
  }
  .login-panel {
    padding: 28px;
  }
  .login-card {
    padding: 28px;
  }
}
@media (max-width: 740px) {
  .workspace {
    display: block;
  }
  .topbar {
    background: var(--green);
    color: #fff;
    padding: 12px 16px;
    gap: 10px;
    position: sticky;
    top: 0;
    z-index: 4;
    border: 0;
    min-height: 72px;
  }
  .mobile-brand {
    display: block;
    flex-shrink: 0;
  }
  .mobile-brand img {
    display: block;
    border-radius: 10px;
  }
  .topbar > div:first-of-type {
    margin-inline-end: auto;
    min-width: 0;
  }
  .topbar strong {
    font-size: 13px;
    overflow-wrap: anywhere;
  }
  .topbar small {
    color: #c1ddd3;
  }
  .topbar .button {
    color: #e1f2e8;
    font-size: 11px;
  }
  .topbar .button:hover {
    background: #ffffff12;
  }
  .topbar :focus-visible {
    outline-color: #a9efbd;
  }
  .header-actions {
    gap: 4px;
    max-width: 46%;
  }
  .content {
    padding: 20px 14px calc(106px + env(safe-area-inset-bottom));
  }
  .page-heading:has(.eyebrow) {
    padding: 22px;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    border-radius: 20px;
  }
  .page-heading > .button {
    max-width: none;
    align-self: flex-start;
    padding-inline: 18px;
  }
  .page-heading > div > p:not(.eyebrow) {
    max-width: none;
    font-size: 13px;
  }
  .page-heading h1 {
    font-size: 30px;
  }
  .metric {
    padding: 18px;
    gap: 18px;
  }
  .metric-icon {
    padding: 6px;
    top: 14px;
    left: 12px;
  }
  .metric small {
    max-width: 76%;
    font-size: 11px;
  }
  .metric-icon .icon {
    width: 16px;
    height: 16px;
  }
  .list-tools {
    padding: 14px;
  }
  .filters {
    overflow-x: auto;
    max-width: 100%;
  }
  .chip {
    padding-inline: 10px;
    min-height: 44px;
  }
  .job-row {
    gap: 10px;
    padding: 18px 14px;
  }
  .vehicle-avatar {
    width: 36px;
    height: 36px;
  }
  .vehicle-avatar .icon {
    width: 20px;
    height: 20px;
  }
  .job-main > strong {
    max-width: 135px;
  }
  .job-end {
    max-width: 43%;
  }
  .job-end .badge {
    white-space: normal;
    text-align: center;
  }
  .mobile-nav {
    padding: 8px 5px calc(8px + env(safe-area-inset-bottom));
    background: #fffdf8;
    box-shadow: 0 -4px 24px #073f3b0a;
  }
  .mobile-nav .nav-item {
    flex: 1;
    flex-direction: column;
    min-width: 0;
    min-height: 60px;
    gap: 5px;
    padding: 5px 2px;
    border-radius: 16px;
    color: var(--muted);
    font-size: 10px;
  }
  .mobile-nav .nav-item.selected {
    background: #e8f7e4;
    color: var(--green);
  }
  .mobile-nav .nav-item.selected .icon {
    background: var(--mint);
    border-radius: 999px;
    box-sizing: content-box;
    padding: 3px 14px;
    margin-block: -3px;
  }
  .login-art {
    min-height: auto;
    padding: 26px;
    gap: 14px;
  }
  .login-art .brand img {
    width: 172px;
  }
  .login-art .brand-on-dark {
    padding: 8px 10px;
  }
  .login-art h1 {
    font-size: 38px;
    margin-top: 16px;
  }
  .login-symbol {
    display: none;
  }
  .login-panel {
    padding: 24px 16px 36px;
  }
  .login-card {
    padding: 26px;
    border-radius: 22px;
  }
  .login-card h2 {
    margin-top: 0;
  }
  .quote-grid {
    grid-template-columns: minmax(0,1fr);
  }
  .account-card,
  .registration {
    padding: 24px;
  }
  .person-row {
    padding: 18px;
  }
  .person-row > div:nth-child(2) {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .person-row .actions {
    padding-right: 0;
  }
  .form-footer {
    flex-wrap: wrap;
  }
  #toast {
    bottom: calc(100px + env(safe-area-inset-bottom));
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
