.funding-settlement-section{grid-column:1/-1;min-width:0;padding:16px;border:1px solid #dac79f;border-radius:14px;background:#fffdf8;color:#17263a}
.funding-settlement-section h3{margin:0 0 8px;font-size:18px}.funding-settlement-section p{font-size:13px;line-height:1.7;white-space:normal}
.funding-settlement-person{border-top:1px solid #e8dfcf;padding:14px 0;display:grid;gap:10px;grid-template-columns:repeat(2,minmax(0,1fr))}.funding-settlement-person h4,.funding-settlement-person dl,.funding-settlement-person p,.funding-settlement-person button{grid-column:1/-1;margin:0}.funding-settlement-person h4{font-size:16px}.funding-settlement-person h4 small{margin-left:8px;color:#8b5d10}.funding-settlement-person dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.funding-settlement-person dl>div{padding:10px;background:#f7f4ec;border-radius:8px}.funding-settlement-person dt{font-size:12px;color:#625a4c}.funding-settlement-person dd{margin:4px 0 0;font-size:18px;font-weight:700;overflow-wrap:anywhere}.funding-settlement-person label{display:grid;gap:6px;font-size:13px;min-width:0}.funding-settlement-person input,.funding-settlement-person select{width:100%;box-sizing:border-box;min-width:0;min-height:42px;border:1px solid #cbbd9e;border-radius:8px;padding:8px;background:white;font-size:16px;color:#17263a}.funding-settlement-person button{min-height:44px;cursor:pointer}.funding-warning{color:#a24a17}
@media(max-width:640px){.funding-settlement-section{padding:12px}.funding-settlement-person{grid-template-columns:minmax(0,1fr)}.funding-settlement-person h4 small{display:block;margin:6px 0 0}.funding-settlement-person dd{font-size:17px}}
@media(min-width:901px){.sales-settlement-detail-dialog>section>footer{max-height:48vh;overflow-y:auto;min-height:0}}
.shareholder-income-details{padding:16px;margin:12px 0;border:1px solid #dcc79e;border-radius:12px;background:#fffdf7;color:#17263a;min-width:0}.shareholder-income-details h3{margin:0 0 8px;font-size:18px}.shareholder-income-details p{font-size:13px;line-height:1.6}.shareholder-income-details table{width:100%;min-width:700px;border-collapse:collapse}.shareholder-income-details th,.shareholder-income-details td{padding:10px;white-space:nowrap;text-align:right;border-bottom:1px solid #e7ddca}.shareholder-income-details th:nth-child(-n+2),.shareholder-income-details td:nth-child(-n+2){text-align:left}.shareholder-income-details small{display:block;font-size:11px}.shareholder-income-details .owner-repair-table-wrap{overflow:auto}.shareholder-income-details th{background:#f2e7d0}.ranking-detail-dialog>.shareholder-income-details{max-height:42vh;overflow:auto}
@media(max-width:900px){
html body:not(.desktop-page) #hongyi-mobile-shell.mobile-app .page[data-panel="owner-sales-settlement-report"].active .sales-settlement-mobile-state{position:relative!important;top:auto!important;right:auto!important;order:-1!important;width:100%!important;min-height:0!important;display:flex!important;flex-wrap:wrap!important;justify-content:flex-start!important;gap:3px!important;padding:0 0 3px!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;backdrop-filter:none!important;white-space:normal!important}
html body:not(.desktop-page) #hongyi-mobile-shell.mobile-app .page[data-panel="owner-sales-settlement-report"].active .settlement-party-badge{display:inline-block!important;padding:4px 5px!important;border:1px solid #ecc779!important;border-radius:6px!important;background:#fff9e9!important;color:#8b5700!important;font-size:11px!important;line-height:1.1!important;white-space:nowrap!important;font-weight:900!important}
html body:not(.desktop-page) #hongyi-mobile-shell.mobile-app .page[data-panel="owner-sales-settlement-report"].active .settled .settlement-party-badge{background:#e7f7ed!important;color:#167447!important;border-color:#9cd1af!important}
}

.shareholder-income-details .owner-repair-table{table-layout:fixed}.shareholder-income-details .owner-repair-table :is(th,td){white-space:normal;overflow-wrap:anywhere}.shareholder-income-details .shareholder-vehicle-cell{white-space:normal;text-align:left}.shareholder-vehicle-name,.shareholder-vehicle-plate{display:block;white-space:normal;overflow-wrap:anywhere;max-width:100%}.shareholder-vehicle-plate{margin-top:4px}

/* Keep desktop report and settlement sections in one scrolling flow. */
@media (min-width: 561px) {
  .sales-settlement-detail-dialog > section {
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .sales-settlement-detail-dialog > section > header {
    position: sticky;
    top: 0;
    z-index: 3;
  }
  .sales-settlement-detail-dialog > section > .sales-settlement-detail-reports {
    overflow: visible;
    min-height: 0;
  }
  .sales-settlement-detail-dialog > section > footer {
    max-height: none;
    overflow: visible;
    align-content: start;
    grid-auto-rows: auto;
  }
}

.funding-adjustment,.funding-adjustment-history{grid-column:1/-1;min-width:0}
.funding-adjustment{display:grid;gap:12px;padding:16px;background:#fff4e2;border:1px solid #d6ad62;border-radius:12px}
.funding-change-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.funding-change-list li{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 18px;border-bottom:1px solid #e5d8c1;padding:8px 0;line-height:1.6}
.funding-change-list span{color:#17263a!important;font-size:14px!important;overflow-wrap:anywhere}
.funding-adjustment label{display:grid;gap:6px}
.funding-adjustment textarea{width:100%;box-sizing:border-box;padding:10px;font:inherit;min-height:76px;border:1px solid #cbbd9e;border-radius:8px}
.funding-adjustment-history article{border-top:1px solid #dcc79e;margin-top:12px;padding-top:12px}
.funding-adjustment-history summary{cursor:pointer}
