.brand.muf img {
  width: 160px;
  height: 112px;
  object-fit: contain;
}
.apphead .brand.muf img {
  width: 125px;
  height: 84px;
}
.summary-brand .brand.muf img {
  width: 158px;
  height: 110px;
}
.doc-head .brand.muf {
  margin: -12px 0 8px;
}
.invoice-brands {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}
.doc-head .invoice-brands .brand {
  margin: 0;
}
.paper .invoice-brands .brand.muf img {
  width: 110px;
  height: 77px;
  object-fit: contain;
}
.invoice-parent-brand {
  border-left: 1px solid #ddd;
  padding-left: 14px;
}
.invoice-parent-brand > span {
  display: block;
  font-size: 9px;
  color: #687065;
  margin-bottom: 10px;
}
.paper .invoice-parent-brand .brand img {
  width: 153px;
  height: auto;
}
@media (max-width: 640px) {
  .invoice-brands {
    gap: 12px;
  }
  .paper .invoice-brands .brand.muf img {
    width: 84px;
    height: 59px;
  }
  .paper .invoice-parent-brand .brand img {
    width: 124px;
  }
  .invoice-parent-brand > span {
    font-size: 8px;
    margin-bottom: 8px;
  }
}
.brand-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}
.brand-tabs button {
  border: 1px solid #dfe4d8;
  background: #fff;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
}
.brand-tabs button[aria-pressed="true"] {
  background: #263e30;
  color: #fff;
  border-color: #263e30;
  box-shadow: 0 4px 14px #263e3015;
}
.brand-tabs button[data-brand="myusedfurniture"][aria-pressed="true"] {
  background: #f3dfb5;
  color: #343431;
  border-color: #d8b66f;
}
.brand-tab-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a4bc92;
}
[data-brand="myusedfurniture"] .brand-tab-dot {
  background: #d6a648;
}
.invoice-brand-label {
  display: block;
  font-size: 9px;
  color: #697565;
  margin-top: 4px;
  letter-spacing: 0.02em;
}
.invoice-brand-label.muf {
  color: #826325;
}
.invoice-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 20px;
  border: 1px solid #dfe4d8;
  border-radius: 12px;
  background: #f8f9f4;
}
.choice-hint {
  font-size: 11px;
  line-height: 1.65;
  margin: 22px 0 0;
  color: #5b6c55;
}
.late-fee-option {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #dfe4d8;
  cursor: pointer;
}
.late-fee-option input {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin: 1px 0 0;
  accent-color: #263e30;
}
.late-fee-option strong,
.late-fee-option small {
  display: block;
  line-height: 1.65;
}
.late-fee-option strong {
  font-size: 12px;
}
.late-fee-option small {
  font-size: 11px;
  color: #5b6c55;
}
.invoice-extras {
  border-top: 1px solid #e2e5dc;
  border-bottom: 1px solid #e2e5dc;
  padding: 16px 0;
}
.invoice-extras summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
}
.invoice-extras summary span {
  font-size: 10px;
  font-weight: 400;
  color: #65755e;
  margin-left: 8px;
}
.invoice-extras .fields {
  padding-top: 20px;
}
.invoice-extras small {
  font-size: 10px;
  line-height: 1.6;
  color: #63735b;
  font-weight: 400;
}
.doc-terms {
  padding: 14px 0;
  border-top: 1px solid #e2e5dc;
}
.horizon-track.has-undated {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
@media (max-width: 640px) {
  .invoice-choice-grid {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .choice-hint {
    margin: 0;
  }
  .brand-tabs {
    gap: 6px;
  }
  .brand-tabs button {
    padding: 10px 12px;
    font-size: 11px;
    flex: 1 1 auto;
    justify-content: center;
  }
  .doc-head .brand.muf img {
    width: 118px;
    height: 82px;
  }
  .horizon-track.has-undated {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
