.new-customer-sales-panel {
  border-color: #c9e3d6;
  background: linear-gradient(135deg, #ffffff 0%, #f3fbf7 100%);
}
.new-customer-sales-panel .panel-title-row > b {
  color: #176b49;
  background: #e1f5ea;
  border: 1px solid #b9e1cb;
  border-radius: 999px;
  padding: 8px 13px;
  white-space: nowrap;
}
.new-customer-owner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 15px;
}
.new-customer-owner-grid article {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 12px;
  min-height: 76px;
  padding: 12px 14px;
  border: 1px solid #d9e9e1;
  border-radius: 10px;
  background: #fff;
}
.new-customer-owner-grid article > span { font-weight: 700; }
.new-customer-owner-grid article > b {
  grid-row: 1 / span 2;
  grid-column: 2;
  font-size: 1.8rem;
  color: #176b49;
}
.new-customer-owner-grid article > small { color: #67746e; }

.manager-outstanding-strip {
  direction: rtl;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -4px 0 18px;
  padding: 10px 13px;
  border: 1px solid #f1cf9e;
  border-radius: 12px;
  background: linear-gradient(135deg, #fffdf9 0%, #fff7eb 100%);
  box-shadow: 0 2px 8px rgba(159, 94, 16, .05);
}
.manager-outstanding-main {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 11px;
  min-width: 0;
  padding: 5px 7px;
  border-radius: 9px;
  cursor: pointer;
}
.manager-outstanding-main:hover { background: rgba(190, 116, 28, .08); }
.manager-outstanding-main:focus-visible { outline: 3px solid rgba(177, 105, 18, .28); outline-offset: 2px; }
.manager-outstanding-main small {
  color: #80521c;
  font-weight: 700;
  white-space: nowrap;
}
.manager-outstanding-main b {
  color: #a5580a;
  font-size: 1.15rem;
  line-height: 1.35;
  white-space: nowrap;
}
.manager-outstanding-main span {
  color: #7e6a52;
  font-size: .82rem;
  white-space: nowrap;
}
.manager-outstanding-main em {
  color: #94510e;
  font-size: .78rem;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}
.manager-outstanding-filter {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: #705942;
  font-size: .82rem;
  white-space: nowrap;
}
.manager-outstanding-filter select {
  width: auto;
  min-width: 150px;
  min-height: 35px;
  margin: 0;
  padding: 5px 10px;
  border-color: #e3bd87;
  background-color: #fff;
  font-size: .86rem;
}
.manager-outstanding-detail { direction: rtl; }
.manager-outstanding-detail-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}
.manager-outstanding-detail-head h2 { margin: 3px 0; }
.manager-outstanding-detail-head p,
.manager-outstanding-detail-head span,
.manager-outstanding-detail-head small { color: #756858; }
.manager-outstanding-detail-head > div:last-child {
  display: flex;
  align-items: end;
  flex-direction: column;
  flex: 0 0 auto;
}
.manager-outstanding-detail-head > div:last-child b { color: #a5580a; font-size: 1.1rem; }
.manager-outstanding-detail-list {
  overflow: hidden;
  border: 1px solid #eadbc8;
  border-radius: 12px;
  background: #fff;
}
.manager-outstanding-detail-columns,
.manager-outstanding-detail-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 125px 165px;
  align-items: center;
  gap: 12px;
}
.manager-outstanding-detail-columns {
  padding: 9px 13px;
  color: #756858;
  background: #fbf6ef;
  font-size: .78rem;
  font-weight: 800;
}
.manager-outstanding-detail-rows {
  max-height: min(520px, 58vh);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.manager-outstanding-detail-row {
  width: 100%;
  min-height: 56px;
  padding: 9px 13px;
  border: 0;
  border-top: 1px solid #f0e7db;
  border-radius: 0;
  color: #26211c;
  background: #fff;
  font: inherit;
  text-align: right;
  cursor: pointer;
}
.manager-outstanding-detail-row:hover { background: #fffaf3; }
.manager-outstanding-detail-row:focus-visible { outline: 3px solid rgba(177, 105, 18, .28); outline-offset: -3px; }
.manager-outstanding-detail-row span { min-width: 0; }
.manager-outstanding-detail-row b,
.manager-outstanding-detail-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.manager-outstanding-detail-row small { margin-top: 3px; color: #817565; font-size: .75rem; }
.manager-outstanding-detail-row time { color: #63594d; white-space: nowrap; }
.manager-outstanding-detail-row strong { color: #8f4d0c; text-align: left; white-space: nowrap; }
@media (max-width: 600px) {
  .new-customer-sales-panel .panel-title-row { align-items: stretch; }
  .new-customer-sales-panel .panel-title-row > b { text-align: center; }
  .new-customer-owner-grid { grid-template-columns: 1fr 1fr; }
  .manager-outstanding-strip {
    align-items: stretch;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 14px;
  }
  .manager-outstanding-main { justify-content: center; }
  .manager-outstanding-filter {
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
  }
  .manager-outstanding-filter select {
    width: 100%;
    min-width: 0;
  }
  .manager-outstanding-detail-head { align-items: stretch; flex-direction: column; gap: 8px; }
  .manager-outstanding-detail-head > div:last-child { align-items: start; }
  .manager-outstanding-detail-columns { display: none; }
  .manager-outstanding-detail-row { grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; }
  .manager-outstanding-detail-row > span { grid-column: 1; grid-row: 1; }
  .manager-outstanding-detail-row time { grid-column: 1; grid-row: 2; font-size: .78rem; }
  .manager-outstanding-detail-row strong { grid-column: 2; grid-row: 1 / span 2; font-size: .86rem; }
}
@media (max-width: 380px) {
  .new-customer-owner-grid { grid-template-columns: 1fr; }
}
