/* Milestone payments. White page, black controls, green only as a small paid mark. */
.work:has(.ms-root),
body.ms-client { background: #FFFFFF; }
.ms-root, .ms-client main { color: #111; }
.ms-root { display: grid; gap: 12px; max-width: 720px; overflow-wrap: anywhere; }
.ms-banner {
  background: #111;
  color: #fff;
  border-radius: 6px;
  padding: 10px 12px;
  margin: 0;
  font-size: 14px;
  line-height: 20px;
}
.ms-cards { display: grid; grid-template-columns: 1fr; gap: 8px; }
.ms-cards article, .ms-client .ms-cards article {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  padding: 12px;
  min-width: 0;
}
.ms-cards span, .ms-k { display: block; color: #5f5f5f; font-size: 13px; line-height: 18px; }
.ms-cards b, .ms-amt { display: block; font-size: 22px; line-height: 28px; font-weight: 700; overflow-wrap: anywhere; }
.ms-note { margin: 0; color: #111; font-size: 14px; line-height: 20px; }
.ms-line, .ms-block {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 8px;
  min-width: 0;
}
.ms-line-head, .ms-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ms-line-head b { font-size: 16px; line-height: 22px; }
.ms-pct { font-weight: 700; }
.ms-status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.ms-dot { width: 8px; height: 8px; border-radius: 50%; background: #6F8B37; flex: none; }
.ms-root .btn, .ms-client .btn {
  height: auto;
  min-height: 44px;
  white-space: normal;
  justify-content: center;
  text-align: center;
}
.ms-root input, .ms-root select, .ms-root textarea,
.ms-client input, .ms-client select {
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  font-size: 16px;
  border: 1px solid #d5d5d5;
  border-radius: 4px;
  padding: 8px 10px;
  background: #fff;
}
.ms-root label, .ms-client label { display: grid; gap: 4px; font-size: 13px; }
.ms-actions, .ms-line .ms-row { display: flex; flex-wrap: wrap; gap: 8px; }
.ms-actions .btn, .ms-line .btn { flex: 1 1 140px; }
.ms-warn { margin: 0; border: 1px solid #111; padding: 8px 10px; background: #fff; }
.ms-preview { background: #fff; border: 1px solid #111; border-radius: 8px; padding: 12px; display: grid; gap: 8px; }
.ms-internal { background: #fff; border: 1px dashed #111; border-radius: 8px; padding: 12px; display: grid; gap: 6px; }
.ms-client main { width: min(720px, calc(100% - 24px)); margin: 12px auto 32px; display: grid; gap: 12px; overflow-wrap: anywhere; }
.ms-root textarea { min-height: 72px; }
.ms-file {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.ms-root label.btn { position: relative; }
.ms-client h1 { font-size: 28px; line-height: 34px; }
.ms-due { border-color: #111; }
@media (min-width: 720px) {
  .ms-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
