@media(min-width:769px){[data-panel="owner-profit-report"]>.page-title-strip{display:none!important}[data-panel="owner-profit-report"]>.content-card{margin-top:0!important}}
.finance-photo-viewer{border:0;border-radius:12px;max-width:94vw;max-height:94vh;padding:16px;background:#fff}.finance-photo-viewer::backdrop{background:#000b}.finance-photo-viewer>button{display:block;margin:0 0 10px auto;padding:8px 20px}.finance-photo-viewer>img{display:block;max-width:85vw;max-height:78vh;object-fit:contain}[data-finance-photo]:focus-visible{outline:3px solid #b28d4e}.sales-wallet-member-balance small{display:block}.capital-report-totals strong{overflow-wrap:anywhere}@media print{[data-finance-photo]{width:100px!important;height:70px!important}.finance-photo-viewer{display:none}}

/* Owner/accounting wallet detail, shared mobile and desktop layout. */
.wallet-card-layout{max-width:960px;margin:0 auto;gap:18px;color:#17202a;min-width:0}
.wallet-card-layout *{box-sizing:border-box}
.wallet-card-layout>.sales-wallet-back{justify-self:start;border:0;background:transparent;color:#25303b;padding:4px 0;font-size:17px;min-height:44px}
.wallet-balance-card{padding:24px;border-radius:22px;background:linear-gradient(150deg,#3b4143 0%,#22282a 70%,#343a3c 100%);color:#fff;box-shadow:0 10px 24px #18212618;overflow:hidden}
.wallet-person-line{display:flex;align-items:center;gap:16px;min-width:0}
.wallet-balance-card .sales-wallet-avatar{width:74px;height:74px;flex:0 0 74px;box-shadow:none;border:3px solid #fff;background:#5a6263;color:#fff;font-size:30px}
.wallet-person-name{flex:1;min-width:0}.wallet-person-name span{color:#eceeed;font-size:15px}.wallet-person-name h2{font-size:27px;line-height:1.3;margin:4px 0 0;overflow-wrap:anywhere;color:#fff}
.wallet-balance-adjust{border:1px solid #fff;border-radius:999px;padding:8px 13px;background:transparent;color:#fff;font-size:14px;min-height:44px;white-space:nowrap;cursor:pointer}
.wallet-actual-balance{border-top:1px solid #ffffff45;padding-top:16px;margin-top:20px;display:grid;gap:6px}
.wallet-actual-balance>span{color:#e0e3e4;font-size:16px;display:flex;align-items:center;gap:12px}
.wallet-actual-balance button{border:0;background:transparent;color:#d0d5da;text-decoration:underline;min-height:32px;padding:4px 8px;font-size:12px;cursor:pointer}
.wallet-actual-balance>strong{font-size:clamp(28px,7vw,44px);line-height:1.25;letter-spacing:.3px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.wallet-summary-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:#fff;border-radius:16px;padding:16px 0}
.wallet-summary-strip article{display:grid;text-align:center;align-content:center;gap:6px;padding:0 8px;min-width:0;border-right:1px solid #e5e5e5}.wallet-summary-strip article:last-child{border:0}
.wallet-summary-strip span{color:#626973;font-size:13px}.wallet-summary-strip strong{font-size:clamp(17px,4.8vw,25px);color:#18212c;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.wallet-history{min-width:0}.wallet-history>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:2px 0 14px}.wallet-history h2{font-size:24px;margin:0;color:#17202a}
.wallet-history nav{display:flex;border:1px solid #e1e2e3;border-radius:999px;padding:2px;background:#fafafa}.wallet-history nav button{border:0;background:transparent;color:#5b626a;min-height:40px;padding:6px 16px;font-size:14px;border-radius:999px;cursor:pointer}.wallet-history nav button[aria-pressed=true]{background:#293238;color:#fff;box-shadow:0 2px 4px #20293022}
.wallet-history>input{width:100%;border:1px solid #e3e4e7;border-radius:12px;background:#fff;padding:13px 15px;min-height:48px;font-size:16px;color:#18212c}
.wallet-history-controls{display:flex;justify-content:space-between;gap:12px;margin:10px 0 0}.wallet-history-controls select{min-width:0;max-width:55%;min-height:44px;padding:8px 24px 8px 4px;border:0;background:transparent;color:#25303b;font-size:15px}
.wallet-history-count{margin:0 0 10px;font-size:12px;color:#777e87;line-height:1.6}
.wallet-history-list{background:#fff;border:1px solid #e4e6e8;border-radius:14px;overflow:hidden}
.wallet-day{margin:0;padding:9px 14px;background:#fbfbfc;color:#7c838b;font-size:14px;font-weight:500;border-bottom:1px solid #e8e9eb}.wallet-day:not(:first-child){border-top:1px solid #e8e9eb}
.wallet-record{border-bottom:1px solid #e8e9eb}.wallet-record:last-child{border-bottom:0}
.wallet-record>summary{display:grid;grid-template-columns:70px minmax(0,1fr) auto 12px;gap:12px;align-items:center;padding:14px;cursor:pointer;list-style:none;min-height:98px}.wallet-record>summary::-webkit-details-marker{display:none}
.wallet-record-photo{display:grid;place-items:center;min-width:0;overflow:hidden}.wallet-record-photo .sales-wallet-vehicle-thumb{width:70px!important;height:56px!important;max-width:100%;min-width:0;border-radius:8px;object-fit:cover;display:block}.wallet-record-photo .is-empty{display:grid;place-items:center;background:#f0f1f3;color:#7a828c}
.wallet-record-symbol{display:grid;place-items:center;width:56px;height:56px;border-radius:50%;background:#f1f2f4;color:#59626b;font-size:30px}
.wallet-record-text{display:grid;gap:3px;min-width:0}.wallet-record-text strong{font-size:16px;color:#17202a;line-height:1.35;overflow-wrap:anywhere}.wallet-record-text span,.wallet-record-text small{font-size:13px;color:#727983;line-height:1.4;overflow-wrap:anywhere}
.wallet-record-value{display:grid;gap:4px;text-align:right;max-width:145px}.wallet-record-value strong{font-size:23px;color:#17202a;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.wallet-record-value small{font-size:12px;color:#777f88;line-height:1.4}.wallet-record-chevron{font-size:26px;color:#a1a6ad}.wallet-record[open] .wallet-record-chevron{transform:rotate(90deg)}
.wallet-record dl{margin:0;padding:4px 16px 16px;background:#fafbfc}.wallet-record dl>div{display:grid;grid-template-columns:90px minmax(0,1fr);gap:12px;font-size:13px;padding-top:10px}.wallet-record dt{color:#747c84}.wallet-record dd{margin:0;color:#27313a;overflow-wrap:anywhere}
.wallet-card-layout button:focus-visible,.wallet-card-layout summary:focus-visible,.wallet-card-layout select:focus-visible,.wallet-card-layout input:focus-visible{outline:2px solid #7b8e9c;outline-offset:3px}
@media(max-width:480px){.wallet-card-layout{gap:14px}.wallet-balance-card{padding:18px;border-radius:18px}.wallet-person-line{gap:10px}.wallet-balance-card .sales-wallet-avatar{width:60px;height:60px;flex-basis:60px}.wallet-person-name h2{font-size:24px}.wallet-person-name span{font-size:13px}.wallet-balance-adjust{font-size:12px;padding:6px 10px}.wallet-history h2{font-size:22px}.wallet-history nav button{padding:5px 13px}.wallet-record>summary{grid-template-columns:60px minmax(0,1fr) auto 8px;gap:9px;padding:12px 10px}.wallet-record-photo .sales-wallet-vehicle-thumb{width:60px!important;height:52px!important}.wallet-record-value{max-width:112px}.wallet-record-value strong{font-size:21px}.wallet-record-text strong{font-size:14px}.wallet-record-text small,.wallet-record-text span{font-size:12px}}
@media(max-width:350px){.wallet-history>header{flex-wrap:wrap}.wallet-person-line{flex-wrap:wrap}.wallet-balance-adjust{margin-left:auto}.wallet-record>summary{grid-template-columns:48px minmax(0,1fr) auto 7px;gap:6px}.wallet-record-value{max-width:95px}.wallet-record-value strong{font-size:18px}.wallet-record-symbol{width:44px;height:44px}.wallet-record-photo .sales-wallet-vehicle-thumb{height:44px!important}}

/* Finance navigation matches the monochrome wallet cards. */
html body .page[data-panel="owner-sales-settlement-report"].active .sales-wallet-view-switch{display:flex!important;gap:0!important;width:100%!important;padding:0!important;border:0!important;border-bottom:1px solid #e3e4e5!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
html body .page[data-panel="owner-sales-settlement-report"].active .sales-wallet-view-switch button{position:relative;flex:1;min-width:0!important;min-height:48px;padding:12px 4px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#777c83!important;font-size:15px!important;font-weight:400!important;white-space:nowrap}
html body .page[data-panel="owner-sales-settlement-report"].active .sales-wallet-view-switch button.active{color:#151b23!important;font-weight:700!important;background:transparent!important;border-color:transparent!important;box-shadow:none!important}
html body .page[data-panel="owner-sales-settlement-report"].active .sales-wallet-view-switch button.active::after{content:"";position:absolute;bottom:-1px;left:12%;right:12%;height:3px;background:#151b23;border-radius:3px 3px 0 0}
html body .page[data-panel="owner-sales-settlement-report"].active .sales-wallet-view-switch button:focus-visible{outline:2px solid #687a8a;outline-offset:-3px}
/* Borderless month and sort pickers, retaining native accessible selects. */
html body .page[data-panel="owner-sales-settlement-report"].active .wallet-card-layout .wallet-history-controls{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin:4px 0 0!important;padding:0!important;background:transparent!important;border:0!important}
html body .page[data-panel="owner-sales-settlement-report"].active .wallet-card-layout .wallet-history-controls select{appearance:none!important;-webkit-appearance:none!important;display:block!important;flex:0 1 auto!important;width:auto!important;min-width:0!important;max-width:58%!important;height:44px!important;min-height:44px!important;margin:0!important;padding:8px 25px 8px 0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background-color:transparent!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23151b23' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;background-position:right center!important;background-repeat:no-repeat!important;background-size:16px 16px!important;color:#252b33!important;font-size:15px!important;line-height:24px!important;font-weight:500!important;text-align:left!important;cursor:pointer}
html body .page[data-panel="owner-sales-settlement-report"].active .wallet-card-layout .wallet-history-controls select:last-child{margin-left:auto!important;color:#5b626b!important}



/* Keep native wallet pickers borderless while focused. */
html body .page[data-panel="owner-sales-settlement-report"].active .wallet-card-layout .wallet-history-controls select:is(:focus,:focus-visible,:active){outline:none!important;border:0!important;box-shadow:none!important;-webkit-tap-highlight-color:transparent}

/* Neutral palette for the all-member wallet overview and ranking. */
html body .page[data-panel="owner-sales-settlement-report"].active .sales-wallet-ranking{border-color:#e4e6e8!important;background:#fff!important;box-shadow:none!important}
html body .page[data-panel="owner-sales-settlement-report"].active .sales-wallet-ranking>header{background:#fff!important;border-color:#e8e9eb!important;padding:18px 16px!important}
html body .page[data-panel="owner-sales-settlement-report"].active .sales-wallet-ranking h2{color:#17202a!important}
html body .page[data-panel="owner-sales-settlement-report"].active .sales-wallet-ranking>header>span{background:#f1f2f4!important;color:#59626b!important;white-space:nowrap;border-radius:999px;padding:6px 12px}
html body .page[data-panel="owner-sales-settlement-report"].active .sales-wallet-member{background:#fff!important;border-color:#e8e9eb!important;color:#17202a!important}
html body .page[data-panel="owner-sales-settlement-report"].active .sales-wallet-member:hover{background:#f7f8f9!important}
html body .page[data-panel="owner-sales-settlement-report"].active .sales-wallet-rank{background:#f1f2f4!important;color:#59626b!important}
html body .page[data-panel="owner-sales-settlement-report"].active .sales-wallet-member-balance strong{color:#17202a!important}
html body .page[data-panel="owner-sales-settlement-report"].active .sales-wallet-member-info small,html body .page[data-panel="owner-sales-settlement-report"].active .sales-wallet-member-balance small{color:#777f88!important}
html body .page[data-panel="owner-sales-settlement-report"].active .sales-wallet-chevron{color:#9ca3ab!important}
html body .page[data-panel="owner-sales-settlement-report"].active .sales-wallet-ranking .sales-wallet-avatar{background:#f1f2f4!important;color:#59626b!important;box-shadow:0 0 0 1px #e3e5e7!important}
html body .page[data-panel="owner-sales-settlement-report"].active .sales-wallet-overview article{background:#fff!important;border-color:#e4e6e8!important;box-shadow:none!important}
html body .page[data-panel="owner-sales-settlement-report"].active .sales-wallet-overview article strong{color:#17202a!important}
html body .page[data-panel="owner-sales-settlement-report"].active .sales-wallet-overview article span,html body .page[data-panel="owner-sales-settlement-report"].active .sales-wallet-overview article small{color:#777f88!important}
html body .page[data-panel="owner-sales-settlement-report"].active .sales-wallet-filters{display:flex!important;align-items:center;gap:8px!important;padding:14px 12px!important;background:#fff!important;flex-wrap:wrap}
html body .page[data-panel="owner-sales-settlement-report"].active .sales-wallet-filters button{border:1px solid #e2e4e7!important;border-radius:999px!important;background:#f8f9fa!important;color:#626a73!important;box-shadow:none!important;padding:8px 13px!important;min-height:40px;white-space:nowrap}
html body .page[data-panel="owner-sales-settlement-report"].active .sales-wallet-filters button[aria-pressed=true]{background:#293238!important;border-color:#293238!important;color:#fff!important}
html body .page[data-panel="owner-sales-settlement-report"].active .sales-wallet-filters input{flex:1 1 120px!important;min-width:0!important;width:120px!important;max-width:100%;min-height:44px;border:1px solid #e3e4e7!important;border-radius:12px!important;background:#fff!important;color:#17202a!important;box-shadow:none!important;padding:10px 12px!important;font-size:16px!important}
