/* Business text in the existing dark theme. Keep disabled controls and gold
   action surfaces in their own palette; hierarchy comes from size and weight. */
:root {
  --mold-text: #ffffff;
  --mold-muted: #ffffff;
  --v197-text: #ffffff;
  --v197-muted: #ffffff;
}

.mold-shell .MuiTypography-caption,
.mold-shell .MuiTypography-body2,
.mold-shell .MuiFormLabel-root:not(.Mui-disabled):not(.Mui-error),
.mold-shell .MuiListItemText-secondary {
  color: #ffffff;
  opacity: 1;
}
.mold-shell .MuiChip-label,
.mold-shell .mold-inline-choice-label,
.mold-shell .mold-order-tabs .MuiButton-root > span:not(.MuiTouchRipple-root) {
  color: #ffffff;
  opacity: 1;
  font-size: .875rem;
}
/* Filled status chips retain their semantic accent on a dark surface so the
   white label stays readable in its resting, hover and keyboard-focus states. */
.mold-shell .MuiChip-root.MuiChip-filledPrimary {
  --mold-chip-background: #332b19;
  --mold-chip-accent: #d5b361;
}
.mold-shell .MuiChip-root.MuiChip-filledSecondary {
  --mold-chip-background: #2d333d;
  --mold-chip-accent: #a8b0bc;
}
.mold-shell .MuiChip-root.MuiChip-filledSuccess {
  --mold-chip-background: #173a28;
  --mold-chip-accent: #43c77b;
}
.mold-shell .MuiChip-root.MuiChip-filledWarning {
  --mold-chip-background: #443518;
  --mold-chip-accent: #e6c577;
}
.mold-shell .MuiChip-root.MuiChip-filledError {
  --mold-chip-background: #491f2c;
  --mold-chip-accent: #e56d76;
}
.mold-shell .MuiChip-root.MuiChip-filledInfo {
  --mold-chip-background: #1b3149;
  --mold-chip-accent: #7ba5d6;
}
.mold-shell .MuiChip-root.MuiChip-filled:not(.MuiChip-colorDefault) {
  color: #ffffff;
  background-color: var(--mold-chip-background);
  border: 1px solid var(--mold-chip-accent);
}
.mold-shell .MuiChip-root.MuiChip-filled:not(.MuiChip-colorDefault) .MuiChip-deleteIcon {
  color: #ffffff;
}
.mold-shell .mold-order-type-sticky .MuiSelect-select {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
.mold-shell .MuiTypography-caption {
  font-size: .875rem;
  line-height: 1.5;
}
.mold-shell .MuiTypography-body2 {
  font-size: 1rem;
  line-height: 1.5;
}
.mold-order-summary {
  min-width: 0;
  color: #ffffff;
  opacity: 1;
  font-size: 1rem;
  line-height: 1.5;
  display: grid;
  gap: .25rem;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  text-align: left;
}
.mold-order-summary-title {
  font-size: 1.0625rem;
  line-height: 1.4;
  font-weight: 800;
}
.mold-order-summary-label,
.mold-order-summary-status {
  font-weight: 600;
}
.mold-order-summary-money {
  display: flex;
  flex-wrap: wrap;
  column-gap: .85rem;
  row-gap: .125rem;
  font-weight: 650;
}
.mold-order-summary-money > span {
  min-width: 0;
}
.mold-order-summary-note {
  font-size: .875rem;
  font-weight: 500;
}
.mold-home-order-row:focus-visible {
  outline: 2px solid var(--mold-gold, #d5b361);
  outline-offset: 2px;
}
.mold-order-row .mold-order-summary,
.mold-home-order-row .mold-order-summary {
  opacity: 1;
}
@media (max-width: 599px) {
  .mold-order-summary-money { display: grid; }
}

/* These cards also use disabled fields to display saved business data before
   editing starts. Keep the values and labels readable without enabling inputs,
   checkboxes or action buttons. Printed documents use their own document root. */
.mold-historical-order-detail .MuiInputBase-input.Mui-disabled,
.mold-historical-order-detail .MuiInputBase-input[readonly],
.mold-sale-detail-page .MuiInputBase-input.Mui-disabled,
.mold-sale-detail-page .MuiInputBase-input[readonly] {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  opacity: 1;
}
.mold-historical-order-detail .MuiInputBase-root.Mui-disabled,
.mold-sale-detail-page .MuiInputBase-root.Mui-disabled {
  opacity: 1;
}
.mold-historical-order-detail .MuiFormLabel-root.Mui-disabled,
.mold-historical-order-detail .MuiFormControlLabel-root.Mui-disabled .MuiFormControlLabel-label,
.mold-sale-detail-page .MuiFormLabel-root.Mui-disabled,
.mold-sale-detail-page .MuiFormControlLabel-root.Mui-disabled .MuiFormControlLabel-label {
  color: #ffffff;
  opacity: 1;
}
@media (max-width: 599px) {
  .mold-sale-detail-page > .MuiStack-root:first-child {
    flex-wrap: wrap;
    row-gap: .5rem;
  }
  .mold-sale-detail-page > .MuiStack-root:first-child > .MuiTypography-h4 {
    order: -1;
    flex-basis: 100%;
    min-width: 0;
    margin-left: 0;
  }
}
