.rover-claims { padding: 16px 0 22px; }
#report-target-screen #target-month-filter { width: 220px !important; }
.rover-claims h2 { margin: 0 0 8px; font-size: 20px; }
.rover-claim-note { color: var(--text-secondary); font-size: 13px; line-height: 1.6; margin: 0 0 16px; }
.rover-claim-totals { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.rover-claim-totals > div { padding: 12px 16px; border: 1px solid var(--border-color); border-radius: 10px; background: rgba(255,255,255,.025); }
.rover-claim-totals span { font-size: 12px; color: var(--text-secondary); }
.rover-claim-totals strong { display: block; font-size: 22px; margin-top: 4px; }
.rover-claim-totals > div:first-child strong { color: var(--accent-emerald, #34d399); }
.rover-claim-table { overflow: visible; }
.rover-claim-table table { min-width: 860px; width: 100%; border-collapse: collapse; }
.rover-claim-table th, .rover-claim-table td { padding: 12px 14px; text-align: left; vertical-align: top; }
.rover-claim-table th { font-size: 12px; }
.rover-claim-table thead th { position: sticky; top: 0; z-index: 5; background: var(--bg-surface, #27273a); }
.rover-claim-table td { font-size: 14px; }
.rover-claim-table td:first-child { min-width: 145px; }
.rover-claim-table td:last-child { min-width: 245px; }
.rover-claim-table small { display: block; color: var(--text-secondary); font-size: 12px; margin-top: 6px; }
.rover-claim-table .rover-claim-money, .rover-claim-money { text-align: right; white-space: nowrap; font-weight: 600; }
.rover-claim-badge { display: inline-block; border-radius: 6px; padding: 4px 8px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.rover-claim-badge.eligible { background: rgba(16,185,129,.16); color: #6ee7b7; }
.rover-claim-badge.ineligible { background: rgba(245,158,11,.13); color: #fcd34d; }
.rover-claim-badge.review { background: rgba(244,114,182,.13); color: #f9a8d4; }
.rover-claim-history { margin: 16px 0; font-size: 13px; overflow: auto; }
.rover-claim-history summary { cursor: pointer; color: var(--text-secondary); }
.rover-claim-download { margin-top: 16px; }
.rover-plan-totals { grid-template-columns: repeat(4,minmax(0,1fr)); }
.rover-plan-totals > div:first-child strong { color: #fcd34d; }
.rover-plan-totals > div:nth-child(2) strong { color: #6ee7b7; }
.rover-plan-totals > div:nth-child(3) strong { color: #f9a8d4; }
.rover-plan-tools { display:flex; align-items:flex-end; justify-content:space-between; gap:14px; flex-wrap:wrap; margin:20px 0 10px; }
.rover-plan-tools label { display:grid; gap:6px; font-size:12px; color:var(--text-secondary); }
.rover-plan-tools select { min-width:190px; }
.rover-plan-tools .form-control:focus-visible, .rover-orders-button:focus-visible, .rover-tier-details summary:focus-visible { outline:2px solid #8eeaff; outline-offset:3px; }
.rover-plan-table { overflow:auto; border:1px solid var(--border-color); border-radius:10px; }
.rover-plan-table table { min-width:800px; }
.rover-plan-table td:last-child { min-width:120px; }
.rover-plan-table td:nth-child(4) { min-width:240px; max-width:330px; }
.rover-plan-table tbody tr { border-top:1px solid var(--border-color); }
.rover-plan-table tr[hidden] { display:none; }
.rover-claim-badge.working { background:rgba(245,158,11,.13); color:#fcd34d; }
.rover-claim-badge.reached { background:rgba(16,185,129,.16); color:#6ee7b7; }
.rover-progress strong { white-space:nowrap; font-size:19px; }
.rover-progress strong span { color:var(--text-secondary); font-size:13px; font-weight:400; }
.rover-progress progress { display:block; width:105px; height:6px; margin-top:9px; accent-color:#1ca6c3; }
.rover-plan-action { font-size:14px; line-height:1.5; margin:9px 0; }
.rover-tier-details { font-size:12px; line-height:1.6; color:var(--text-secondary); }
.rover-tier-details summary, .rover-product-breakdown > summary { cursor:pointer; color:var(--accent-primary); }
.rover-orders-button { border:0; padding:0; margin-top:10px; background:transparent; color:#8eeaff; cursor:pointer; font:inherit; font-size:12px; text-decoration:underline; text-underline-offset:3px; }
.rover-product-breakdown { margin-top:20px; }
.rover-product-breakdown > summary { padding:12px 0; font-size:14px; }
.rover-forecast { padding:16px; margin:16px 0; border:1px solid var(--border-color); border-radius:10px; background:rgba(28,166,195,.04); }
.rover-forecast h3 { margin:0 0 8px; font-size:16px; }
.rover-forecast-counts { display:flex; flex-wrap:wrap; gap:12px 22px; margin:10px 0 14px; font-size:13px; color:var(--text-secondary); }
.rover-forecast-counts strong { color:var(--text-primary); font-size:19px; margin-right:4px; }
.rover-forecast summary { cursor:pointer; color:var(--accent-primary); font-size:13px; }
.rover-forecast-table { max-height:360px; overflow:auto; margin-top:12px; }
.rover-forecast-table table { min-width:740px; border-collapse:collapse; width:100%; font-size:13px; }
.rover-forecast-table th,.rover-forecast-table td { text-align:left; padding:10px; border-bottom:1px solid var(--border-color); }
.rover-forecast-table th { position:sticky; top:0; background:var(--bg-surface,#202b3e); }
.rover-forecast-table small { display:block; color:var(--text-secondary); margin-top:4px; }
@media (max-width: 850px) { .rover-claim-totals { grid-template-columns: repeat(2,minmax(0,1fr)); } .rover-claim-totals strong { font-size: 19px; } }
.target-report-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.target-report-tabs button { padding: 10px 16px; background: #29293e; color: var(--text-primary); border: 1px solid var(--border-color); border-radius: 8px; cursor: pointer; font: inherit; font-size: 14px; }
.target-report-tabs button[aria-selected="true"] { background: #16465c; color: #8eeaff; border-color: #1ca6c3; }
#report-target-screen [hidden] { display: none !important; }
.unifi-sales-count { background: transparent; color: #8eeaff; border: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; font-weight: 600; padding: 6px 8px; }
.unifi-sales-count:disabled { color: var(--text-secondary); text-decoration: none; cursor: default; }
.unifi-sales-totals { grid-template-columns: repeat(4,minmax(0,1fr)); margin-top: 16px; }
.unifi-sales-totals button { display: block; font-size: 26px; padding-left: 0; }
.unifi-sales-table { overflow: auto; max-height: 55vh; border: 1px solid var(--border-color); border-radius: 8px; }
.unifi-sales-table table { min-width: 750px; width: 100%; border-collapse: separate; border-spacing: 0; }
.unifi-sales-table th, .unifi-sales-table td { padding: 10px 14px; text-align: left; }
.unifi-sales-table th { position: sticky; top: 0; z-index: 1; background: #303047; font-size: 12px; }
.unifi-sales-table td { font-size: 14px; }
#unifi-sales-orders { width: min(1160px,94vw); max-height: 90vh; padding: 22px; color: var(--text-primary); background: #242437; border: 1px solid #545a74; border-radius: 14px; }
#unifi-sales-orders::backdrop { background: #000a; }
.unifi-sales-dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 12px; }
.unifi-sales-dialog-header h3 { margin: 0; }
@media(max-width:850px) { .unifi-sales-totals { grid-template-columns: repeat(2,minmax(0,1fr)); } }

/* Home-only claim table remains horizontally scrollable on mobile. */
.rover-claims .rover-claim-table{overflow-x:auto;max-width:100%}

/* Simple claim summary: the calculation stays inside row details. */
.rover-simple-totals{grid-template-columns:repeat(2,minmax(0,1fr))}
.rover-simple-table table{min-width:680px}
.rover-simple-table td:last-child{min-width:170px;max-width:340px}
.rover-simple-table td:nth-child(2){font-size:21px;white-space:nowrap;text-align:right}
.rover-simple-table th:nth-child(2){text-align:right}
.rover-simple-table tr[hidden]{display:none}
.rover-simple-support{margin-top:18px;padding:12px 0;border-top:1px solid var(--border-color)}
.rover-simple-support>summary{cursor:pointer;font-weight:600}
.rover-simple-table .rover-tier-details p{max-width:340px;white-space:normal}
@media(max-width:600px){.rover-simple-table table{min-width:620px}.rover-simple-totals strong{font-size:22px}}

@media(max-width:600px){
 .rover-simple-table{overflow-x:visible!important}
 .rover-simple-table table{min-width:0;display:block}
 .rover-simple-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .rover-simple-table tbody{display:block}
 .rover-simple-table tr{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:16px 0;border-top:1px solid var(--border-color)}
 .rover-simple-table td{display:block;min-width:0!important;max-width:none!important;padding:0;text-align:left!important}
 .rover-simple-table td:first-child,.rover-simple-table td:last-child{grid-column:1/-1}
 .rover-simple-table td:nth-child(2){font-size:22px}
 .rover-simple-table .rover-claim-badge{white-space:normal}
 .rover-simple-table .rover-tier-details{font-size:13px}
}

/* Itemised source review, scoped to claim details. */
.rover-review-list{max-height:360px;overflow:auto;overflow-wrap:anywhere}.rover-review-list article{padding:10px 0;border-top:1px solid var(--border-color,#cdd3dd)}.rover-review-list p{margin:6px 0}.rover-review-details{margin:12px 0}
