.desk-photo {
  position: relative;
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  border: 1px solid #d5ded8;
  border-radius: 7px;
  padding: 0;
  overflow: hidden;
  background: #eef2ee;
  display: grid;
  place-items: center;
  color: #54675b;
  font-size: 10px;
}
.desk-photo img {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.desk-photo img[data-loaded="true"] { opacity: 1; }
.desk-record-name {
  align-items: center;
  flex-wrap: wrap;
}
.desk-record-name > div {
  flex: 1 1 130px;
}
.desk-kind {
  margin: 0;
}
.desk-row-actions {
  gap: 2px;
}
.desk-sidebar {
  overflow-y: auto;
}
.desk-future {
  flex-wrap: wrap;
}
.desk-future .desk-text-button {
  font-size: 12px;
  color: #1c6349 !important;
  min-height: 40px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.desk-collab .desk-future {
  margin-top: 0;
}
.ops-page {
  color: #253a32;
}
.ops-page > h2 {
  margin-block: 24px 12px;
  font-size: 18px;
  font-weight: 700;
}
.ops-page > p {
  margin-block: 16px;
}
.ops-page .ops-actions {
  margin-block: 14px;
}
.ops-section {
  background: #fff;
  border: 1px solid #dce4de;
  border-radius: 9px;
  padding: 22px;
  margin-block: 18px;
}
.ops-section h2,
.ops-section h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 14px;
}
.ops-section > p {
  font-size: 13px;
  line-height: 1.9;
  margin-block: 12px;
}
.ops-field {
  display: flex !important;
  flex-direction: column;
  gap: 7px;
  margin: 0 !important;
  font-size: 13px;
  min-width: 0;
}
.ops-field > span {
  color: #354f40;
  font-weight: 500;
}
.ops-field input,
.ops-field select,
.ops-field textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px !important;
  border: 1px solid #9eafa3 !important;
  border-radius: 6px;
  background: #fff;
  color: #253a32;
  font: inherit !important;
  box-sizing: border-box;
}
.ops-field textarea {
  resize: vertical;
}
.ops-field small,
.ops-section small {
  font-size: 12px;
  color: #596d60;
  line-height: 1.8;
}
.ops-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.ops-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ops-actions a {
  text-decoration: none;
}
.ops-actions strong {
  margin-inline-end: auto;
  font-size: 13px;
}
.ops-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  margin-block: 22px;
}
.ops-toolbar .ops-field {
  flex: 1;
  min-width: 170px;
}
.ops-notice {
  background: #edf3ee;
  border-inline-start: 3px solid #639072;
  padding: 10px 14px;
  color: #415c4b;
  font-size: 13px !important;
  line-height: 1.9;
  margin-block: 14px !important;
}
.ops-reminder {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #fff5df;
  border: 1px solid #dcc899;
  border-radius: 7px;
  padding: 13px 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #6b501c;
}
.ops-balance {
  font-weight: 600;
  color: #28583c;
  line-height: 1.9;
}
.ops-payment {
  border: 1px solid #d7e2da;
  padding: 18px;
  border-radius: 7px;
  margin-block: 20px;
}
.ops-payment legend {
  padding: 0 8px;
  font-size: 14px;
  font-weight: 600;
}
.ops-payment .ops-actions {
  margin-top: 16px;
}
.ops-deal {
  font-size: 14px;
}
.ops-deal > h3 {
  font-weight: 700;
}
.rw-dialog:has(.ops-deal) {
  width: min(880px, 100%);
}
.ops-deal .ops-section {
  padding: 18px;
}
.ops-save {
  border-top: 1px solid #dce4de;
  padding-top: 18px;
  margin-top: 20px;
}
.ops-message {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.ops-reply {
  background: #eff5f0;
  padding: 14px;
  border-radius: 6px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.ops-page form > .ops-field {
  margin-bottom: 18px !important;
}
.ops-due-row {
  font-size: 13px;
  padding: 12px 0;
  border-top: 1px solid #e5eae6;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.ops-due-row.overdue {
  color: #92392c;
}
.ops-report h2 {
  margin: 0;
  flex: 1;
  font-size: 16px;
}
.ops-no-photo {
  min-height: 120px;
  display: grid;
  place-items: center;
  background: #f1f4f1;
  border-radius: 8px;
  color: #596d60;
  font-size: 13px;
}
.ops-gallery > img {
  width: 100%;
  height: 300px;
  object-fit: contain;
  background: #f0f3f0;
  border-radius: 8px;
}
.ops-gallery-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.ops-gallery-nav span {
  font-size: 12px;
}
.ops-page button:focus-visible,
.ops-deal button:focus-visible,
.desk-photo:focus-visible {
  outline: 2px solid #1c6349;
  outline-offset: 3px;
}
@media (max-width: 760px) {
  .desk-collab .desk-future {
    grid-column: 1/-1;
    grid-row: 4;
    justify-content: flex-start;
    border-top: 1px solid #dce4de;
    padding-top: 6px;
  }
  .desk-collab .desk-future small {
    margin-inline-start: auto;
  }
  .ops-grid {
    grid-template-columns: 1fr;
  }
  .rw-dialog:has(.ops-deal) {
    padding: 18px;
    max-height: 92dvh;
  }
  .ops-section,
  .ops-deal .ops-section {
    padding: 16px;
  }
  .ops-payment {
    padding: 12px;
  }
  .ops-field input,
  .ops-field select,
  .ops-field textarea {
    font-size: 16px !important;
  }
  .ops-reminder {
    align-items: flex-start;
    flex-direction: column;
  }
  .ops-actions button,
  .ops-actions a {
    min-height: 44px;
  }
  .ops-page .desk-page-heading h1 {
    font-size: 22px !important;
  }
  .ops-gallery > img {
    height: 220px;
  }
  .desk-photo {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }
  .desk-record-name {
    gap: 8px;
  }
  .desk-record-name > div {
    flex-basis: 160px;
  }
  .desk-record-name .desk-kind {
    order: 2;
  }
  .ops-toolbar .ops-field {
    min-width: 140px;
  }
  .ops-page .ops-actions > span {
    overflow-wrap: anywhere;
  }
}
