[hidden] {
  display: none !important;
}

.nav-menu-wrap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "menu center notifications";
  align-items: center;
  gap: 10px 8px;
  position: relative;
  width: 100%;
  z-index: 40;
}

.nav-header-center {
  grid-area: center;
  justify-self: center;
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 0;
  text-align: center;
}

.nav-user-badge {
  justify-self: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 254, 250, 0.72);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  padding: 4px 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-context-label {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.25;
  text-align: center;
}

.dashboard-gesture-cue {
  display: none;
  grid-auto-flow: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--muted);
  opacity: 0.72;
  pointer-events: none;
}

.dashboard-gesture-cue svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  stroke-width: 2.4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-notification-button {
  grid-area: notifications;
  justify-self: end;
  position: relative;
  box-sizing: border-box;
  width: 48px !important;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: #fffefa;
  color: #2d6b56;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 8px;
}

.nav-notification-button svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
}

.nav-notification-count {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #b6402a;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  padding: 0 5px;
}

.nav-notification-popover {
  box-sizing: border-box;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 300;
  width: min(380px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffefa;
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(24, 32, 29, 0.18);
  padding: 12px;
}

.nav-notification-popover h2 {
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: 0;
}

.nav-notification-item {
  display: grid;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.nav-notification-item:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.nav-notification-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.nav-notification-item select,
.nav-notification-item button {
  width: 100%;
  box-sizing: border-box;
}

.nav-notification-action {
  box-sizing: border-box;
  display: inline-flex;
  justify-content: center;
  width: 100%;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  padding: 8px 10px;
  text-decoration: none;
}

.nav-notification-status {
  min-height: 18px;
  color: var(--muted);
  font-size: 12px;
}

.nav-menu {
  grid-area: menu;
  position: relative;
  display: inline-block;
  --nav-menu-bg: #fffefa;
  --nav-menu-ink: #2d6b56;
  --nav-menu-link-ink: #18312a;
  --nav-menu-hover-bg: #efe8dc;
  --nav-menu-shadow: 0 12px 26px rgba(24, 32, 29, 0.14);
}

.nav-menu[open] {
  z-index: 240;
}

.nav-menu summary {
  box-sizing: border-box;
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: var(--nav-menu-ink) !important;
  background: var(--nav-menu-bg);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 700;
  padding: 6px 10px;
  user-select: none;
}

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

.nav-menu summary::after {
  content: "v";
  display: inline-block;
  margin-left: 8px;
  font-size: 11px;
  color: var(--nav-menu-ink) !important;
}

.nav-menu[open] summary::after {
  content: "^";
}

.nav-menu-links {
  box-sizing: border-box;
  position: absolute;
  left: 0;
  right: auto;
  z-index: 260;
  display: grid;
  gap: 2px;
  width: max-content;
  min-width: min(190px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  margin-top: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--nav-menu-bg);
  box-shadow: var(--nav-menu-shadow);
}

.nav-menu-links a {
  border-radius: 4px;
  color: var(--nav-menu-link-ink) !important;
  padding: 8px 10px;
  text-decoration: none;
  white-space: nowrap;
}

.nav-menu-links a:hover,
.nav-menu-links a:focus-visible {
  background: var(--nav-menu-hover-bg);
  outline: none;
}

.page-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.page-title-row h1 {
  margin: 0;
}

.page-title-row .page-title-link {
  color: inherit;
  text-decoration: none;
}

.page-title-row .page-title-link:hover,
.page-title-row .page-title-link:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.12em;
}

.car-profile-link {
  color: inherit;
  font-weight: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-title-row .nav-menu-wrap {
  width: 100%;
}

.page-title-row .nav-menu summary {
  min-height: 48px;
  padding: 10px 16px;
  font-size: 16px;
  font-weight: 900;
}

@media (max-width: 720px) {
  .summary {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 14px;
  }

  header > .summary:has(.nav-menu-wrap) {
    box-sizing: border-box;
    min-height: 58px;
    padding-right: 230px;
  }

  .nav-menu-wrap,
  .nav-menu,
  .nav-menu summary {
    width: 100%;
  }

  .nav-menu-wrap {
    grid-column: 1 / -1;
  }

  .nav-user-badge {
    text-align: center;
  }

  .nav-menu {
    grid-column: 1 / -1;
  }

  .nav-menu-links {
    left: 0;
    right: auto;
    width: 100%;
  }

  .page-title-row .nav-menu-wrap {
    width: 100%;
    flex: 1 1 auto;
    align-items: center;
  }

  .page-title-row .nav-menu,
  .page-title-row .nav-menu summary {
    width: auto;
  }

  .page-title-row .nav-notification-button {
    width: 48px !important;
    min-width: 48px;
  }

  .page-title-row .nav-menu-links {
    left: 0 !important;
    right: auto !important;
    width: max-content !important;
    min-width: min(190px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
  }

  .page-title-row .nav-notification-popover {
    right: 0;
  }
}

@media (max-width: 520px) {
  .page-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .page-title-row .nav-menu-wrap {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "menu center notifications";
    width: 100%;
    margin-left: 0;
  }

  .page-title-row .nav-menu {
    grid-area: menu;
    grid-column: auto;
    justify-self: start;
  }

  .page-title-row .nav-header-center {
    width: 100%;
    max-width: 100%;
    justify-self: center;
    justify-items: center;
    text-align: center;
  }

  .page-title-row .nav-notification-button {
    grid-area: notifications;
  }

  .page-title-row .nav-user-badge {
    display: block;
    min-width: 0;
    max-width: none;
    align-self: center;
    overflow-wrap: anywhere;
    text-align: center;
    white-space: normal;
  }

  .page-title-row .nav-context-label {
    overflow-wrap: anywhere;
    text-align: center;
  }
}

header {
  position: relative;
}

header > h1 {
  padding-right: 230px;
}

header > .summary .nav-menu-wrap {
  position: absolute;
  top: 18px;
  right: 16px;
  width: auto;
  margin-left: 0;
  align-items: center;
}

header > .summary .nav-menu,
header > .summary .nav-menu summary {
  width: auto;
}

header > .summary .nav-notification-button {
  width: 48px !important;
  min-width: 48px;
}

header > .summary .nav-menu summary {
  min-height: 48px;
  padding: 10px 16px;
  font-size: 16px;
  font-weight: 900;
}

header > .summary .nav-menu-links {
  left: 0;
  right: auto;
  width: max-content;
  min-width: min(190px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
}

@media (min-width: 720px) {
  header > .summary .nav-menu-wrap {
    top: 22px;
    right: 28px;
  }
}

@media (max-width: 520px) {
  header > h1 {
    padding-right: 0;
  }

  header > .summary:has(.nav-menu-wrap) {
    padding-right: 0;
  }

  header > .summary .nav-menu-wrap {
    position: static;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "menu center notifications";
    width: 100%;
    margin-top: 8px;
  }

  header > .summary .nav-user-badge {
    display: block;
    min-width: 0;
    max-width: none;
    align-self: center;
    overflow-wrap: anywhere;
    text-align: center;
    white-space: normal;
  }
}

.embedded-frame header > h1 {
  padding-right: 0;
}

.embedded-frame header > .summary:has(.nav-menu-wrap) {
  min-height: 0;
  padding-right: 0;
}

.embedded-frame header > .summary .nav-menu-wrap,
.embedded-frame .page-title-row .nav-menu-wrap {
  display: none !important;
}

html.dashboard-swipe-nav-enabled,
html.dashboard-swipe-nav-enabled body {
  overscroll-behavior-x: contain;
}

html.dashboard-touch-gestures-ready,
html.dashboard-touch-gestures-ready body {
  overscroll-behavior-y: contain;
}

html.dashboard-touch-gestures-ready body {
  touch-action: pan-y;
}

@media (max-width: 720px) {
  .dashboard-gesture-cue {
    display: inline-grid;
  }
}

.settings-section-nav {
  display: none;
  margin-top: 12px;
  max-width: 360px;
}

.settings-section-nav label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.settings-section-select {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: #fffefa;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  padding: 10px 38px 10px 12px;
  text-transform: none;
}

@media (max-width: 720px) {
  .settings-section-nav {
    display: block;
    max-width: none;
  }
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.large-text-toggle {
  min-height: 36px;
  padding: 7px 12px;
  white-space: nowrap;
}

thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}

body.large-ui {
  font-size: 17px;
}

body.large-ui h1 {
  font-size: 30px;
}

body.large-ui h2 {
  font-size: 22px;
}

body.large-ui .summary,
body.large-ui .controls,
body.large-ui .muted,
body.large-ui label,
body.large-ui .task-filter-label,
body.large-ui .task-filters label,
body.large-ui code {
  font-size: 15px;
}

body.large-ui .muted {
  color: #4e574f;
}

body.large-ui button,
body.large-ui select,
body.large-ui input,
body.large-ui textarea,
body.large-ui input[type="file"],
body.large-ui .nav-menu summary {
  min-height: 44px;
  font-size: 17px;
  padding: 10px 14px;
}

body.large-ui th,
body.large-ui td {
  padding: 14px 16px;
  font-size: 17px;
  line-height: 1.5;
}

body.large-ui th {
  font-size: 15px;
}

body.large-ui .status {
  padding: 5px 10px;
}

body.large-ui .nav-menu-links {
  min-width: 230px;
}

body.large-ui .nav-menu-links a {
  padding: 12px 14px;
  font-size: 17px;
}

body.large-ui .responsive-table td::before {
  font-size: 13px;
}

@media (max-width: 720px) {
  .large-text-toggle {
    grid-column: 1 / -1;
    width: 100%;
  }

  body.large-ui header {
    padding: 20px 16px 16px;
  }

  body.large-ui main {
    padding: 16px;
  }

  body.large-ui .summary,
  body.large-ui .controls,
  body.large-ui .task-filters,
  body.large-ui .upload-form {
    gap: 10px;
  }

  body.large-ui table {
    min-width: 760px;
  }

  body.large-ui .responsive-table {
    min-width: 0;
  }

  body.large-ui th,
  body.large-ui td {
    padding: 12px;
    font-size: 16px;
  }

  body.large-ui th {
    font-size: 14px;
  }

  body.large-ui .responsive-table td {
    padding: 0;
  }
}
