* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  font:
    14px/1.5 Arial,
    sans-serif;
  color: #202731;
  background: #fff;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 3px;
}
button {
  cursor: pointer;
  border: 1px solid #d8dee3;
  background: #fff;
  border-radius: 4px;
  color: inherit;
  padding: 9px 14px;
  min-height: 40px;
}
button:hover {
  background: #f4f7f8;
}
button:disabled {
  cursor: not-allowed;
  color: #8b949e;
  background: #f5f7f8;
}
a {
  color: #187b8e;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.primary {
  background: #187b8e;
  color: #fff;
  border-color: #187b8e;
}
.primary:hover {
  background: #126676;
}
.login {
  max-width: 410px;
  margin: 18vh auto 0;
  padding: 24px;
}
.login h1,
.brand {
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -1px;
}
.login h1 span,
.brand span {
  color: #54b9c6;
}
.login p {
  color: #626e79;
}
.login .primary {
  display: block;
  padding: 12px;
  text-align: center;
  margin-top: 28px;
}
.muted,
small {
  color: #626e79;
}
small {
  font-size: 12px;
}
.shell {
  display: grid;
  grid-template-columns: 210px 1fr;
  min-height: 100dvh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  background: #18232d;
  color: #aab6c1;
  display: flex;
  flex-direction: column;
  padding: 24px 18px;
  gap: 6px;
}
.brand {
  color: #fff;
  padding: 0 12px;
  margin-bottom: 22px;
  font-size: 23px;
}
.org {
  padding: 0 12px;
  font-size: 12px;
  margin-bottom: 24px;
}
.navitem {
  display: block;
  color: #aab6c1;
  padding: 10px 12px;
  border-radius: 4px;
}
.navitem:hover {
  text-decoration: none;
  background: #24343e;
}
.navitem.active {
  background: #2d424d;
  color: white;
}
.sidegroup {
  font-size: 10px;
  letter-spacing: 1px;
  margin: 28px 12px 5px;
  color: #8193a1;
}
.profile {
  margin-top: auto;
  padding: 16px 12px;
  font-size: 11px;
}
.profile button {
  color: #aab6c1;
  background: none;
  border: 0;
  padding: 0;
  font-size: 11px;
  min-height: 32px;
}
.main {
  min-width: 0;
}
.topbar {
  height: 64px;
  border-bottom: 1px solid #e4e8eb;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.avatar {
  display: grid;
  place-items: center;
  background: #e9edf1;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  font-size: 11px;
  font-weight: 600;
}
.content {
  padding: 30px 28px;
}
.title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}
h1 {
  font-size: 28px;
  letter-spacing: -0.8px;
  margin: 0;
  font-weight: 600;
}
h2 {
  font-size: 22px;
  margin: 0;
}
h3 {
  font-size: 16px;
}
.count {
  font-size: 12px;
  color: #87939d;
  margin-left: 8px;
  font-weight: 400;
}
.crumb {
  font-size: 12px;
  color: #626e79;
  margin-bottom: 12px;
}
.actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid #e1e6ea;
  margin-bottom: 18px;
  overflow: auto;
}
.tabs button {
  border: 0;
  border-radius: 0;
  white-space: nowrap;
  padding: 10px 0 15px;
  font-size: 12px;
  color: #626e79;
}
.tabs button.active {
  color: #187b8e;
  border-bottom: 2px solid #187b8e;
  font-weight: 600;
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.filters input,
.filters select {
  min-height: 40px;
  border: 1px solid #d8dee3;
  border-radius: 4px;
  padding: 8px 12px;
  background: white;
  color: #44515c;
}
.filters input {
  flex: 1;
  min-width: 170px;
  max-width: 260px;
}
.filters label {
  display: flex;
  flex-direction: column;
  font-size: 11px;
  color: #626e79;
  gap: 3px;
}
.tablewrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  white-space: nowrap;
}
td,
th {
  height: 57px;
  border-bottom: 1px solid #e8edf0;
  text-align: left;
  padding: 0 12px;
}
th {
  height: 40px;
  background: #f6f8fa;
  font-size: 11px;
  color: #626e79;
  font-weight: 400;
}
td b {
  display: block;
  font-size: 13px;
  font-weight: 500;
}
td small {
  font-size: 10px;
}
.selected {
  background: #edf7f8;
}
tr[data-id] {
  cursor: pointer;
}
tr[data-id]:hover {
  background: #f0f7f8;
}
.status {
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #94a2b0;
}
.review .dot {
  background: #39839d;
}
.repair .dot {
  background: #cd9637;
}
.complete .dot {
  background: #548c68;
}
.empty {
  padding: 48px 20px;
  text-align: center;
  color: #626e79;
  border-bottom: 1px solid #e8edf0;
}
.empty h2 {
  font-size: 18px;
  color: #202731;
}
.mobilelist {
  display: none;
}
.detailgrid {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
}
.detailgrid .tablewrap .optional {
  display: none;
}
.detailgrid .content {
  padding: 24px 20px;
}
.detail {
  padding: 24px 28px;
  border-left: 1px solid #e1e7eb;
  min-width: 0;
}
.detail h1 {
  font-size: 24px;
}
.info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 22px 0;
}
.info small {
  display: block;
  margin-bottom: 7px;
}
.info b {
  font-size: 13px;
  font-weight: 500;
}
.error {
  padding: 12px 16px;
  border-left: 3px solid #c64646;
  background: #fff5f5;
  color: #8b2828;
}
.notice {
  font-size: 13px;
  color: #626e79;
  padding: 14px 0;
}
.detail select {
  padding: 8px;
  border: 1px solid #d8dee3;
  background: #fff;
  color: #187b8e;
  border-radius: 4px;
  min-height: 40px;
}
.detail .description {
  white-space: pre-wrap;
}
.mobilemenu {
  display: none;
}
.history {
  border-top: 1px solid #e4e8eb;
  padding-top: 20px;
}
.history p {
  font-size: 12px;
}
.detail-photo-empty {
  height: 210px;
  background: #f6f8fa;
  display: grid;
  place-items: center;
  color: #7a8791;
  font-size: 13px;
  margin-top: 20px;
}
.detail-close {
  float: right;
}
.version {
  font-size: 10px;
  color: #8193a1;
}
.devnote {
  padding: 12px 28px;
  background: #f8f9fa;
  font-size: 12px;
  color: #626e79;
  border-bottom: 1px solid #e4e8eb;
}
@media (max-width: 1100px) {
  .detailgrid {
    grid-template-columns: 320px minmax(0, 1fr);
  }
  .detailgrid .filters input {
    max-width: none;
  }
  .detailgrid .filters select {
    max-width: 125px;
  }
  .detailgrid table td b {
    white-space: normal;
  }
  .detailgrid .title h1 {
    font-size: 23px;
  }
}
@media (max-width: 850px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
  .shell.menu-open .sidebar {
    display: flex;
    position: fixed;
    inset: 64px 0 0;
    z-index: 5;
    height: calc(100dvh - 64px);
    width: 100%;
  }
  .mobilemenu {
    display: inline-flex;
    padding: 4px 10px;
    min-height: 44px;
    border: 0;
  }
  .topbar {
    padding: 0 20px;
  }
  .topbar .appname {
    font-size: 20px;
    font-weight: 700;
  }
  .content {
    padding: 22px 20px;
  }
  .title {
    align-items: flex-start;
  }
  .title h1 {
    font-size: 26px;
  }
  .title .actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .tablewrap {
    display: none;
  }
  .mobilelist {
    display: block;
  }
  .mrow {
    display: block;
    padding: 20px 0;
    border-bottom: 1px solid #e6ebee;
    color: #202731;
  }
  .mrow h3 {
    font-size: 15px;
    font-weight: 500;
    margin: 9px 0;
  }
  .mrow .rowtop,
  .mrow .meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
  }
  .mrow .meta {
    font-size: 12px;
    color: #77828d;
    margin-top: 13px;
  }
  .mrow:hover {
    text-decoration: none;
  }
  .tabs {
    gap: 20px;
  }
  .filters label {
    flex: 1;
  }
  .filters input {
    max-width: none;
    width: 100%;
  }
  .detailgrid {
    display: block;
  }
  .detailgrid > .content {
    display: none;
  }
  .detail {
    border: 0;
    padding: 22px 20px;
  }
  .detail h1 {
    font-size: 25px;
  }
  .devnote {
    padding: 10px 20px;
  }
  .info {
    gap: 18px;
  }
  .detail-close {
    min-height: 44px;
  }
  .title .primary {
    display: none;
  }
}
a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d8dee3;
  padding: 8px 14px;
  min-height: 40px;
  border-radius: 4px;
  color: #202731;
  white-space: nowrap;
}
a.button:hover {
  text-decoration: none;
  background: #f5f7f8;
}
.detailheader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid #e4e8eb;
}
.detailheader .crumb {
  margin: 0;
}
.filters {
  align-items: flex-end;
}
.filters label {
  min-width: 100px;
  max-width: 200px;
}
.searchfield {
  min-width: 180px !important;
}
.morefilters {
  font-size: 12px;
  padding: 10px 0;
  min-width: 90px;
}
.morefilters[open] {
  display: flex;
}
.morefilters select {
  max-width: 130px;
}
.detailgrid .filters label {
  max-width: 160px;
  min-width: 100px;
}
.detailgrid td b {
  max-width: 200px;
  white-space: normal;
}
.detailgrid .title {
  margin-bottom: 14px;
}
.detailgrid .title h1 {
  font-size: 24px;
}
.detailactions {
  margin: 14px 0;
}
.photohero {
  width: 100%;
  height: 220px;
  padding: 0;
  border: 0;
  background: #f6f8fa;
  display: block;
  margin-top: 20px;
  border-radius: 0;
}
.photohero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumbnails {
  display: flex;
  gap: 6px;
  margin: 8px 0;
  overflow: auto;
}
.thumbnails button {
  padding: 0;
  width: 48px;
  height: 40px;
  flex: none;
}
.thumbnails img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photocaption {
  display: flex;
  justify-content: space-between;
  margin: 12px 0;
}
.uploadlabel {
  color: #187b8e;
  cursor: pointer;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
}
.uploadlabel input {
  max-width: 220px;
  font-size: 11px;
  margin-left: 8px;
}
.internalnote {
  font-size: 10px;
  color: #626e79;
  margin-left: auto;
  white-space: nowrap;
  padding-top: 13px;
}
.resultcount {
  display: block;
  margin-top: 22px;
}
.formpage {
  max-width: 820px;
}
.formpage form {
  max-width: 650px;
}
.formpage label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 20px;
  color: #626e79;
  font-size: 12px;
}
.formpage input,
.formpage select,
.formpage textarea {
  min-height: 42px;
  border: 1px solid #d8dee3;
  padding: 10px;
  border-radius: 4px;
  background: white;
  color: #202731;
  width: 100%;
}
.formpage textarea {
  resize: vertical;
}
.formrow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.formfooter {
  border-top: 1px solid #e1e6ea;
  padding-top: 20px;
}
.danger {
  color: #a63d3d;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}
.workcard {
  padding: 22px;
  border: 1px solid #e1e6ea;
  border-radius: 4px;
  color: #202731;
}
.workcard:hover {
  text-decoration: none;
  border-color: #187b8e;
}
.workcard h2 {
  font-size: 19px;
}
.workcard p {
  color: #626e79;
}
.locationtree {
  margin-top: 24px;
}
.locationtree > div {
  padding: 14px 8px 14px calc(8px + var(--depth) * 18px);
  border-bottom: 1px solid #e4e8eb;
  display: flex;
  align-items: center;
  gap: 12px;
}
.locationtree button {
  margin-left: auto;
}
.catalogcolumns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.catalogcolumns h2 {
  font-size: 19px;
}
.catalogrow {
  padding: 14px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #e4e8eb;
  flex-wrap: wrap;
}
.catalogrow button {
  font-size: 12px;
}
.simplelist > div {
  padding: 18px 0;
  border-bottom: 1px solid #e4e8eb;
}
.simplelist small {
  display: block;
  margin-top: 4px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
dialog {
  border: 1px solid #d8dee3;
  border-radius: 5px;
  max-width: 95vw;
  max-height: 94dvh;
  padding: 20px;
}
dialog::backdrop {
  background: #10202bd9;
}
.photo-dialog {
  background: #18232d;
  color: white;
}
.photo-dialog > img {
  display: block;
  max-width: 85vw;
  max-height: 76dvh;
  margin: 12px 0;
}
.closeviewer {
  float: right;
}
.photo-dialog .closeviewer {
  background: #fff;
}
.plan-dialog {
  width: 1000px;
}
.planimage {
  position: relative;
  width: 100%;
  margin-top: 14px;
}
.planimage > img {
  width: 100%;
  display: block;
}
.mark {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: 24px;
  color: #d94b43;
  text-shadow: 0 0 2px #fff;
  line-height: 1;
}
.mobilecreate {
  display: none;
}
@media (max-width: 850px) {
  .topbar .appname {
    font-size: 18px;
  }
  .detailheader {
    display: none;
  }
  .detailgrid .detail {
    padding-top: 24px;
  }
  .photohero {
    height: 245px;
    margin-left: -20px;
    width: calc(100% + 40px);
  }
  .detail-photo-empty {
    height: 220px;
  }
  .detail .tabs {
    flex-wrap: wrap;
  }
  .internalnote {
    padding-top: 0;
    margin-left: 0;
  }
  .formrow,
  .catalogcolumns {
    grid-template-columns: 1fr;
  }
  .filters label {
    max-width: none;
    min-width: 120px;
  }
  .filters input {
    max-width: 100%;
  }
  .morefilters {
    width: 100%;
  }
  .content > .title .primary {
    display: inline-flex;
  }
  .content .title {
    flex-wrap: wrap;
  }
  .title h1 {
    font-size: 26px;
  }
  .detailactions {
    flex-wrap: wrap;
  }
  .uploadlabel {
    flex-wrap: wrap;
  }
  .uploadlabel input {
    max-width: 170px;
  }
  .mobilecreate {
    display: block;
    position: sticky;
    bottom: 18px;
    margin: 20px 0 0 auto;
  }
  .locationtree > div {
    display: block;
    padding-left: calc(4px + var(--depth) * 8px);
  }
  .locationtree small {
    display: block;
  }
  .locationtree button {
    margin-top: 8px;
  }
  .formpage {
    padding-bottom: 40px;
  }
  .formpage .title .primary {
    display: block;
  }
}
.uploadlabel input {
  position: absolute;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.uploadlabel:focus-within {
  outline: 2px solid #187b8e;
  outline-offset: 3px;
}
.photohero:focus-visible {
  outline: 2px solid #187b8e;
}
.detailgrid .filters label {
  max-width: 160px;
}
.detailgrid .searchfield {
  width: 100%;
  max-width: none;
  flex-basis: 100%;
}
.detailgrid .filters {
  gap: 6px;
}
.detailgrid .filters > label:not(.searchfield) {
  max-width: 145px;
}
.detailgrid .morefilters {
  padding: 7px 0;
}
.detailgrid .filters label {
  font-size: 10px;
}
.detailgrid .filters select,
.detailgrid .filters input {
  min-height: 36px;
  font-size: 11px;
}
.detailgrid .content {
  padding-top: 22px;
}
.detailgrid .filters {
  margin: 12px 0;
}
.detailgrid .tablewrap td {
  height: 60px;
}
td a {
  color: #202731;
}
td a:hover {
  color: #187b8e;
}
.photohero img {
  object-position: center;
}
.description {
  color: #5d6772;
  line-height: 1.7;
}
.detail .tabs .internalnote {
  font-size: 10px;
}
.detail .history {
  padding-top: 10px;
  border: 0;
}
.detail .history p {
  margin: 12px 0;
}
.detailgrid .info {
  margin: 16px 0;
  gap: 16px;
}
.detailgrid .info b {
  font-size: 12px;
}
@media (max-width: 850px) {
  .content > .title .primary {
    display: none;
  }
  .mobilecreate {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 3;
    box-shadow: 0 4px 16px #10203020;
  }
  .filters > label:not(.searchfield) {
    max-width: calc(50% - 4px);
  }
  .content {
    padding-bottom: 90px;
  }
  .photohero {
    margin-top: 20px;
  }
  .detailgrid .detail {
    padding-bottom: 40px;
  }
  .detail-close {
    font-size: 12px;
  }
  .uploadlabel {
    min-height: 36px;
  }
  .resultcount {
    margin-bottom: 25px;
  }
  .formpage .title {
    align-items: center;
  }
  .formpage .title h1 {
    font-size: 24px;
  }
  .topbar .appname {
    font-size: 20px;
  }
  .topbar .avatar {
    width: 30px;
    height: 30px;
  }
}
.planimage > canvas {
  display: block;
  width: 100%;
  height: auto;
}
.planimage .mark {
  z-index: 1;
}
.plan-dialog select {
  padding: 8px;
  border: 1px solid #d8dee3;
  background: white;
  margin: 12px;
}
.editmenu {
  margin-left: auto;
  position: relative;
}
.editmenu summary {
  list-style: none;
  cursor: pointer;
  font-size: 22px;
  color: #626e79;
  padding: 3px 12px;
  min-height: 40px;
}
.editmenu summary::-webkit-details-marker {
  display: none;
}
.editmenu > div {
  position: absolute;
  right: 0;
  top: 42px;
  background: white;
  border: 1px solid #d8dee3;
  padding: 8px;
  box-shadow: 0 4px 12px #10203015;
  z-index: 2;
  min-width: 130px;
}
.editmenu button {
  border: 0;
  display: block;
  width: 100%;
  text-align: left;
}
.mobilereturn {
  display: none;
}
.thumbnails.single {
  display: none;
}
.photocaption {
  align-items: center;
  margin: 8px 0 12px;
}
.photocaption .uploadlabel {
  min-height: 28px;
}
.detailgrid .detail .photohero {
  height: 205px;
  margin-top: 14px;
}
.detailgrid .detail p.description {
  font-size: 12px;
}
.detailgrid .detail .info {
  margin: 15px 0;
}
.detailgrid .filters .searchfield {
  order: 5;
  max-width: none;
  width: 100%;
}
.detailgrid .filters #work {
  max-width: 150px;
}
.detailgrid .filters .morefilters {
  order: 4;
}
.detailgrid .filters {
  margin-top: 14px;
}
.detailgrid .filters .searchfield input {
  width: 100%;
  max-width: none;
}
.detailgrid .filters .searchfield {
  font-size: 0;
}
.detailgrid .filters label {
  font-size: 0;
}
.detailgrid .filters {
  row-gap: 8px;
}
.detailgrid .filters select {
  max-width: 150px;
}
.detailgrid .filters > label:not(.searchfield) {
  max-width: 155px;
  min-width: 100px;
}
.detailgrid .content {
  padding: 23px 20px;
}
.detailgrid .detail {
  padding: 23px 26px;
}
.detailgrid {
  grid-template-columns: 410px minmax(0, 1fr);
}
.detailgrid .title .button {
  padding: 8px 12px;
}
.detailgrid .description {
  margin-top: 12px;
}
.info small {
  font-size: 12px;
}
.topbar .appname {
  color: #626e79;
}
.detailactions {
  margin-top: 14px;
}
.detail-close {
  font-size: 12px;
}
.tabs {
  gap: 24px;
}
.history[hidden] {
  display: none;
}
@media (max-width: 1100px) and (min-width: 851px) {
  .detailgrid {
    grid-template-columns: 340px minmax(0, 1fr);
  }
}
@media (max-width: 850px) {
  .detailgrid {
    display: block;
  }
  .detailgrid .detail {
    padding: 20px;
  }
  .detailgrid .detail .photohero {
    height: 245px;
    margin-top: 20px;
  }
  .detailgrid .detail p.description {
    font-size: 14px;
  }
  .detailgrid .detail .info b {
    font-size: 13px;
  }
  .desktopreturn {
    display: none;
  }
  .mobilereturn {
    display: inline;
  }
  .detail-close {
    display: block;
    float: none;
    margin: -20px -20px 18px;
    padding: 18px 20px;
    border-bottom: 1px solid #e4e8eb;
    font-size: 14px;
    min-height: 56px;
  }
  .shell:has(.detail) .topbar {
    display: none;
  }
  .detailgrid .detail .crumb {
    font-size: 12px;
  }
  .detailgrid .detail .info {
    margin: 20px 0;
    gap: 20px;
  }
  .detailgrid .detail .tabs {
    margin-top: 20px;
  }
  .topbar .appname {
    color: #202731;
    letter-spacing: -0.6px;
  }
  .photocaption {
    margin-top: 10px;
  }
  .detailactions {
    margin-bottom: 0;
  }
  .editmenu summary {
    font-size: 24px;
  }
  .detail .description {
    margin-top: 16px;
  }
  .title .actions {
    gap: 8px;
  }
  .filters {
    margin: 18px 0 22px;
  }
  .filters .searchfield {
    flex-basis: 100%;
    max-width: none;
  }
  .morefilters {
    padding: 6px 0;
  }
  .mobilelist .mrow {
    padding: 20px 0;
  }
}
.rowactions {
  display: inline-flex;
  margin-left: auto;
}
.rowactions button {
  font-size: 11px;
  padding: 4px 8px;
  min-height: 32px;
}
.simplelist > div {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.simplelist > div > small {
  flex-basis: 100%;
}
.org select {
  width: 100%;
  margin-top: 10px;
  background: #24343e;
  color: #d4dee4;
  border: 1px solid #52636e;
  padding: 8px;
  font-size: 11px;
}
.orgadd {
  background: none;
  color: #aab6c1;
  font-size: 11px;
  border: 0;
  padding-left: 0;
}
@media (max-width: 850px) {
  .rowactions {
    display: flex;
    margin-top: 8px;
  }
  .locationtree .rowactions {
    margin: 8px 0;
  }
}
.planimage {
  max-width: 100%;
  overflow: hidden;
}
.planimage > canvas,
.planimage > img {
  width: 100%;
  height: auto;
  max-height: 65dvh;
  object-fit: contain;
}
.planimage:has(canvas) {
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.planimage > canvas {
  width: auto;
  max-width: 100%;
  max-height: 65dvh;
  height: auto;
}
.inlineedit {
  border: 0;
  padding: 2px 6px;
  min-height: 28px;
  background: transparent;
  color: #187b8e;
  font-size: 11px;
  margin-left: 5px;
  opacity: 0;
}
.info > div:hover .inlineedit,
.description:hover .inlineedit,
.inlineedit:focus-visible {
  opacity: 1;
}
.inlineform textarea,
.inlineform input,
.inlineform select {
  max-width: 100%;
  width: 100%;
  border: 1px solid #d8dee3;
  padding: 8px;
  border-radius: 4px;
  font: inherit;
}
.inlineform .actions {
  margin-top: 8px;
}
.inlineform button {
  font-size: 11px;
  padding: 5px 10px;
  min-height: 32px;
}
@media (hover: none) {
  .inlineedit {
    opacity: 1;
  }
}

.detail-mobilebrand {
  display: none;
}
@media (max-width: 850px) {
  .detail {
    position: relative;
  }
  .detail-mobilebrand {
    display: block;
    position: absolute;
    top: 19px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.6px;
    pointer-events: none;
  }
  .detail-close {
    color: #27313a;
  }
  .detail .tabs {
    flex-wrap: wrap;
    gap: 18px;
  }
  .detail .internalnote {
    order: 10;
    flex-basis: 100%;
    margin: 0;
    padding-top: 12px;
    border-top: 1px solid #e4e8eb;
    font-size: 11px;
  }
  .detail .info {
    gap: 14px;
  }
}
.info > div,
.description {
  position: relative;
}
.inlineedit {
  position: absolute;
  right: 0;
  top: 0;
  margin: 0;
}
.info > div .inlineedit {
  top: -5px;
}
@media (hover: none) {
  .description {
    padding-right: 44px;
  }
  .info > div {
    padding-right: 36px;
  }
}

:focus-visible {
  outline: 3px solid #187b8e;
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
@media (hover: none) {
  .inlineedit {
    min-height: 40px;
    top: -8px;
  }
  .info > div .inlineedit {
    top: -10px;
  }
}
.enrollment {
  margin: 24px 0;
  text-align: left;
  max-width: 440px;
  padding: 24px;
  border: 1px solid #d8dee3;
  border-radius: 6px;
  background: white;
}
.enrollment h2 {
  font-size: 20px;
}
.enrollment code {
  display: block;
  font-size: 17px;
  word-break: break-all;
  padding: 14px;
  background: #f3f6f7;
  color: #202731;
  user-select: all;
  border-radius: 4px;
}
.enrollment p {
  font-size: 14px;
  line-height: 1.6;
}

.enrollment code {
  font-size: 14px;
  line-height: 1.8;
  word-break: normal;
  overflow-wrap: normal;
  font-variant-numeric: tabular-nums;
}
#copyenrollment {
  margin-top: 12px;
  background: #187b8e;
  color: white;
  border-color: #187b8e;
  min-height: 44px;
}
#copystatus:empty {
  display: none;
}
.enrollment code {
  white-space: pre;
  letter-spacing: 0.2px;
}
.marknotes {
  padding-left: 24px;
  margin: 16px 0;
}
.marknotes li {
  margin: 8px 0;
}
.marknotes a {
  display: inline-block;
  padding: 8px;
  color: var(--teal, #147c91);
}
/* Advanced filters form rows, never a tall column beside the main controls. */
.filters > .morefilters[open],
.detailgrid .filters > .morefilters[open] {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  flex-basis: 100%;
  width: 100%;
  gap: 12px;
  align-items: start;
  padding: 8px 0 14px;
  border-bottom: 1px solid #e4e8eb;
}
.morefilters[open] > summary {
  grid-column: 1/-1;
  cursor: pointer;
  margin-bottom: 2px;
}
.filters .morefilters label {
  min-width: 0;
  max-width: none;
  width: 100%;
}
.filters .morefilters select,
.filters .morefilters input {
  min-width: 0;
  max-width: none;
  width: 100%;
}
.planimage:has(> img) {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}
.planimage > img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 65dvh;
}
@media (max-width: 600px) {
  .filters > .morefilters[open] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.planversions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 16px;
  color: #626e79;
  font-size: 12px;
}
.planversions select {
  width: 100%;
  min-width: 0;
  padding: 8px;
  border: 1px solid #d8dee3;
  background: white;
  color: #202731;
}
@media (max-width: 850px) {
  .planview,
  .plan-dialog[open] {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: block;
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 20px;
    border: 0;
    border-radius: 0;
    background: white;
    overflow: auto;
    box-shadow: none;
  }
  .plan-dialog::backdrop {
    background: white;
  }
  .planview > .closeviewer {
    float: none;
    display: block;
    margin: 0 0 20px;
    padding-left: 0;
    border: 0;
    color: #187b8e;
  }
  .planview h2 {
    margin-bottom: 16px;
  }
}
@media (max-width: 850px) {
  .content > .title .primary:not([data-action="create"]) {
    display: inline-flex;
  }
}
.markeditor {
  padding: 16px 0;
  border-top: 1px solid #e4e8eb;
}
.markeditor label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.markeditor input {
  padding: 12px;
  border: 1px solid #d8dee3;
  border-radius: 4px;
  margin-bottom: 12px;
  width: 100%;
  min-width: 0;
}

.sidebar small {
  color: #aab6c1;
}
/* Approved-board density: advanced mobile filters remain available on demand. */
@media (max-width: 850px) {
  .defectcontent > .tabs {
    display: none;
  }
  .detailgrid .detail > .tabs {
    display: flex;
  }
  .filters {
    position: relative;
    padding-top: 48px;
  }
  .filters > .searchfield {
    order: 2;
  }
  .filters > label:has(#block),
  .filters > label:has(#floor) {
    position: absolute;
    top: 0;
    width: 140px;
    min-width: 0;
    font-size: 0;
  }
  .filters > label:has(#block) {
    left: 0;
  }
  .filters > label:has(#floor) {
    left: 148px;
  }
  .filters > label:has(#block) select,
  .filters > label:has(#floor) select {
    font-size: 12px;
  }
  .morefilters {
    order: 3;
    width: 100%;
  }
  .morefilters:not([open]) {
    margin-bottom: 0;
  }
  .mobilelist .mrow {
    padding: 20px 0;
  }
  .detailgrid .detail .photohero {
    margin-top: 8px;
  }
}

.offlinestatus {
  padding: 10px 28px;
  background: #f3f7f8;
  color: #445260;
  font-size: 13px;
  border-bottom: 1px solid #e4e8eb;
}
.offlinestatus a {
  color: #146b7a;
}
.offlinepanel {
  padding: 24px 28px;
  max-width: 900px;
}
.offlinepanel article {
  border-top: 1px solid #e4e8eb;
  padding: 12px 0;
}
.offlinepanel label {
  display: block;
  margin: 12px 0;
}
.offlinepanel h2 {
  margin-top: 28px;
}
.offlinepanel button {
  margin: 4px 8px 4px 0;
}
@media (max-width: 850px) {
  .offlinestatus {
    padding: 8px 16px;
  }
  .offlinepanel {
    padding: 18px 16px;
  }
}
.offlinepanel {
  max-width: 880px;
}
.offlinepanel pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  background: #f4f7f8;
  padding: 12px;
  border-radius: 4px;
}
.offlinepanel select {
  display: block;
  max-width: 100%;
  margin: 6px 0 14px;
  padding: 9px;
  border: 1px solid #d5dee2;
  border-radius: 4px;
  background: white;
}
.offlinepanel button {
  white-space: normal;
  max-width: 100%;
}
.conflictfield {
  padding: 12px;
  background: #f4f7f8;
  margin: 12px 0;
  border-radius: 4px;
  overflow-wrap: anywhere;
}
.conflictfield h4 {
  margin: 0 0 8px;
}
.conflictfield p {
  margin: 6px 0;
}
