#profit-tabs{margin-block:16px}
#profit-panel section{margin-top:28px}
#profit-panel .table-wrap{max-height:480px;overflow:auto;overscroll-behavior:contain}
#profit-panel table{min-width:720px;width:100%;font-variant-numeric:tabular-nums}
#profit-panel th,#profit-panel td{padding:14px;text-align:left;vertical-align:top}
#profit-panel td small{display:block;margin-top:6px}
#profit-panel dl{display:grid;grid-template-columns:minmax(130px,1fr) 2fr;gap:10px 20px;max-width:740px}
#profit-panel dd{margin:0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
#profit-note-form{display:grid;gap:16px;max-width:740px}
#profit-note-form label{display:grid;gap:7px}
#profit-panel input,#profit-panel textarea{max-width:100%;box-sizing:border-box}
#profit-detail-facts,#profit-query-scope,#profit-note-history{overflow-wrap:anywhere}
#profit-note-history article{padding-block:16px;border-bottom:1px solid var(--line,#706374)}
#profit-note-history p{white-space:pre-wrap}
#profit-calls table{min-width:1100px}
#profit-note-form textarea{font:inherit;line-height:1.6;padding:10px 12px;border:1px solid var(--ui-control-line,#706374);border-radius:8px;background:var(--ui-control-bg,#0c0a0d);color:var(--text);caret-color:var(--brand);resize:vertical}
#profit-note-form textarea:disabled{opacity:.55;cursor:not-allowed}
#profit-note-form textarea:focus{border-color:var(--brand)}
#profit-panel h3{margin-top:28px;margin-bottom:14px}
@media(max-width:600px){#profit-filter>label{width:100%}#profit-filter select{width:100%}}
@media(max-width:600px){#profit-panel dl{grid-template-columns:1fr;gap:4px}#profit-panel dd{margin-bottom:12px}}

@media(max-height:650px){#profit-panel .table-wrap{max-height:calc(100dvh - 240px)}}
