.main-content:has(#tab-author-prod.active) {min-width:0;}
#tab-author-prod {min-width:0;max-width:100%;}
#tab-author-prod .ap-toolbar {display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:8px;}
#tab-author-prod .ap-toolbar h3 {font-size:1rem;margin:0;}
#tab-author-prod .ap-actions {display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:.8rem;width:auto;}
#tab-author-prod .ap-actions label {display:inline;margin:0;}
#tab-author-prod .ap-actions select {width:auto;min-width:64px;margin:0;padding:6px 10px;border:1px solid var(--border);border-radius:8px;background:var(--bg-card);color:var(--text);}
#tab-author-prod .ap-chart-scroll {overflow-x:auto;max-width:100%;margin:12px 0;}
#tab-author-prod .ap-chart {min-width:720px;position:relative;}
#tab-author-prod .ap-details {border:1px solid var(--border);border-radius:10px;margin:12px 0;background:var(--bg-card);font-size:.82rem;}
#tab-author-prod .ap-details > summary {padding:12px 14px;cursor:pointer;font-weight:600;}
#tab-author-prod .ap-details > div {padding:0 14px 14px;}
#tab-author-prod .ap-table-scroll {max-height:340px;overflow:auto;}
#tab-author-prod .ap-table-scroll table {width:100%;border-collapse:collapse;table-layout:auto;}
#tab-author-prod .ap-table-scroll th,#tab-author-prod .ap-table-scroll td {padding:9px 10px;border-bottom:1px solid var(--border);text-align:right;white-space:nowrap;font-size:.8rem;}
#tab-author-prod .ap-table-scroll td:first-child,#tab-author-prod .ap-table-scroll th:first-child {text-align:left;white-space:normal;min-width:180px;max-width:360px;overflow-wrap:anywhere;}
#tab-author-prod .ap-table-scroll small {display:block;font-size:.7rem;color:var(--text-muted);margin-top:3px;}
#tab-author-prod .ap-aff-grid {display:grid;grid-template-columns:1fr 1fr;gap:20px;}
#tab-author-prod .ap-aff-grid section {min-width:0;}
#tab-author-prod .ap-aff-chart {position:relative;}
#tab-author-prod .ap-error,#tab-author-prod .ap-empty {padding:24px;text-align:center;overflow-wrap:anywhere;}
@media(max-width:850px) {#tab-author-prod .ap-aff-grid {grid-template-columns:1fr;} #tab-author-prod .ap-actions {width:100%;}}
