/* Applied by the role shell only at the phone breakpoint. */
.trc-business-header { display: block; }
.trc-business-header:has(+ .bg-title) + .bg-title { display: none; }
.trc-business-title { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 6px 0; }
.trc-business-title h1 { margin: 0; min-width: 0; font-size: 22px; font-weight: 720; line-height: 1.4; overflow-wrap: anywhere; }
.trc-business-back { display: grid; place-items: center; flex: none; color: var(--role-ink); width: 44px; height: 44px; border: 1px solid var(--role-line); border-radius: 12px; background: #fff; }
.trc-business-create, body[data-trc-role] .trc-business-title a.btn { margin-left: auto; flex: none; border: 0; color: #fff; background: var(--role-blue); padding-inline: 12px; }
.trc-family-tabs,.trc-business-sections,.trc-filter-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; margin: 0 0 12px; padding-bottom: 2px; }
.trc-family-tabs:empty { display: none; }
.trc-family-tabs a,.trc-business-sections button,.trc-filter-chips button { display: flex; justify-content: center; align-items: center; min-height: 44px; padding: 6px 12px; white-space: nowrap; font-size: 13px; font-weight: 620; color: var(--role-muted); background: #fff; border: 1px solid var(--role-line); border-radius: 10px; }
.trc-family-tabs a[aria-current],.trc-business-sections button[aria-pressed=true],.trc-filter-chips button[aria-pressed=true] { background: var(--role-container); color: #fff; border-color: var(--role-container); }
.trc-family-tabs a { flex: 1; }
.trc-business-sections { margin-top: 12px; }
.trc-inactive-section { display: none !important; }
.trc-role-workspace .trc-search-panel > .panel-heading { display: none; }
.trc-search-panel .trc-filter-promoted,.trc-search-panel:not(.trc-search-open) form > :is(.panel-body,.panel-footer) { display: none; }
.trc-search-tools { display: flex; align-items: stretch; gap: 8px; padding: 10px; }
.trc-primary-search { display: flex; flex: 1; min-width: 0; }
.trc-primary-search input.form-control { min-width: 0; border-radius: 9px 0 0 9px; }
.trc-search-tools button { min-height: 44px; flex: none; color: var(--role-blue); background: var(--role-soft); border: 1px solid var(--role-line); border-radius: 9px; padding: 4px 12px; font-size: 14px; font-weight: 630; }
.trc-search-tools .trc-search-submit { border-radius: 0 9px 9px 0; margin-left: -1px; }
.trc-filter-chips { margin: 0; padding: 0 10px 10px; }
.trc-filter-chips button { min-height: 44px; border-radius: 22px; }
.trc-business-fieldset { display: flow-root; min-width: 0; padding: 14px; margin: 0 0 12px; background: #fff; border: 1px solid #dce0e8; border-radius: 14px; }
.trc-business-fieldset .trc-business-legend { float: left; width: 100%; margin: 0 0 10px; padding: 0; font-size: 16px; line-height: 1.4; font-weight: 680; color: var(--role-ink); }
body[data-trc-role] .trc-business-fieldset > .form-group { clear: both; margin: 0 0 12px; }
body[data-trc-role] .trc-business-fieldset > .form-group:last-child { margin-bottom: 0; }
body[data-trc-role] .trc-business-fieldset .form-group > label.control-label { margin: 0 0 5px; }
body[data-trc-role] .trc-business-fieldset .help-block { margin: 5px 0 0; font-size: 13px; }
.trc-role-workspace .panel:has(.trc-business-fieldset) > .panel-heading, .trc-role-dialog .panel:has(.trc-business-fieldset) > .panel-heading { display: none; }
.trc-role-workspace .panel:has(.trc-business-fieldset),.trc-role-dialog .panel:has(.trc-business-fieldset) { background: transparent; border: 0; }
body[data-trc-role] form > .panel-body:has(.trc-business-fieldset) { padding: 8px 0 0; }
.trc-choice-field > div > .radio-list { display: flex; flex-wrap: wrap; gap: 6px; }
.trc-choice-field .radio-list label.radio-inline { display: inline-flex; gap: 7px; align-items: center; padding: 7px 11px; margin: 0; min-height: 44px; border: 1px solid var(--role-line); border-radius: 8px; background: #fff; }
.trc-choice-field .radio-list label:has(:checked) { background: var(--role-soft); border-color: var(--role-blue); color: var(--role-blue); }
.trc-choice-field .radio-list input { margin: 0; }
.trc-upload-field .input-group { padding: 9px; background: #f5f6fa; border: 1px dashed var(--role-line); border-radius: 10px; }
.trc-upload-field .input-group .input-group-addon { color: var(--role-blue); background: white; cursor: pointer; }
.trc-form-actions { position: sticky; bottom: calc(60px + env(safe-area-inset-bottom)); z-index: 4; box-shadow: 0 -3px 12px #000e270a; }
.trc-role-dialog .trc-form-actions { bottom: env(safe-area-inset-bottom); }
.trc-report-filters form > .row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.trc-report-filters form > .row > * { width: auto; }
.trc-report-dimensions { grid-column: 1/-1; padding: 0 8px 6px; margin-bottom: 6px; background: #f5f6fa; border-radius: 10px; }
.trc-report-dimensions summary { padding: 12px 2px; min-height: 44px; color: var(--role-blue); font-size: 13px; font-weight: 620; }
.trc-role-workspace #page-wrapper .row.trc-report-metrics, .trc-role-workspace #page-wrapper .row.trc-invite-levels { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
.trc-role-workspace .row.trc-report-metrics > div,.trc-role-workspace .row.trc-invite-levels > div { width: auto; padding: 0; }
.trc-role-workspace .trc-report-metrics .white-box, .trc-role-workspace .trc-invite-levels .white-box { padding: 10px 8px; margin: 0 0 10px; height: calc(100% - 10px); }
.trc-role-workspace .trc-report-metrics .box-title, .trc-role-workspace .trc-invite-levels .box-title { font-size: 12px; line-height: 1.45; }
.trc-role-workspace .trc-report-metrics .h2, .trc-role-workspace .trc-invite-levels .lead { margin: 4px 0 0; font-size: 19px; line-height: 1.3; color: var(--role-ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.trc-settlement-delta,body[data-trc-role].trc-role-dialog .trc-account-summary { display: grid; gap: 4px; padding: 16px; margin: 10px 0 14px; color: white; background: var(--role-container); border: 0; border-radius: 12px; }
.trc-settlement-delta strong { font-size: 26px; font-variant-numeric: tabular-nums; }
.trc-settlement-delta small,.trc-role-dialog .trc-account-summary p { color: #d7e3ff; font-size: 13px; }
.trc-settlement-preview .trc-delta-desktop, .trc-settlement-preview .trc-scroll-hint { display: none; }
.trc-settlement-preview .table-responsive > table { min-width: 0; }
.trc-settlement-preview tr { display: grid; grid-template-columns: minmax(85px, .9fr) minmax(0,1.3fr); }
.trc-settlement-preview td { overflow-wrap: anywhere; }
.trc-settlement-account form.row { align-items: end; }
.trc-role-workspace #page-wrapper .trc-settlement-account form.row > .form-group { flex: 1 1 44%; padding: 2px; }
.trc-adsense-snippets .form-group { padding: 12px; background: white; border: 1px solid var(--role-line); border-radius: 12px; }
.trc-role-dialog .trc-adsense-snippets textarea { padding: 10px; background: #f5f6fa; font: 13px/1.5 ui-monospace,monospace; }
.trc-role-dialog .trc-adsense-snippets label { display: block; font-size: 15px; font-weight: 620; margin-bottom: 8px; }
.trc-weekly-bills .panel-heading { color: var(--role-container); }
.trc-role-workspace .trc-timeline-region { overflow: visible; }
.trc-timeline-region > table { display: block; width: 100%; min-width: 0; }
.trc-timeline-region > table > thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.trc-timeline-region > table > tbody { display: grid; gap: 7px; }
.trc-timeline-region > table > tbody > tr { display: grid; padding: 9px; border: 1px solid var(--role-line); border-radius: 10px; background: #fff; }
.trc-timeline-region > table > tbody > tr > td:not([hidden]) { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; width: auto; min-width: 0; max-width: none; position: static; padding: 4px 0; border: 0; white-space: normal !important; overflow-wrap: anywhere; background: transparent !important; box-shadow: none; }
.trc-timeline-region [data-trc-report-label]::before { content: attr(data-trc-report-label); color: var(--role-muted); margin-right: auto; font-size: 12px; }
.trc-timeline-region .report-details dl { width: 100%; }
.trc-role-workspace .trc-scroll-hint:has(+ .trc-timeline-region) { display: none; }
/* Select2 keeps the original select for submission and delegates focus to its labelled combobox. */
body[data-trc-role] :has(> select.select2-hidden-accessible) { position: relative; min-width: 0; }
body[data-trc-role] select.select2-hidden-accessible { inset-inline-start: 0 !important; top: 0; width: 1px !important; min-width: 0 !important; max-width: 1px !important; margin: 0 !important; }
.trc-role-workspace .trc-card-table > table > tbody > tr:not(.trc-empty-record) { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px 8px; align-items: start; }
.trc-role-workspace .trc-card-table tbody > tr > td { grid-column: 1/-1; }
.trc-role-workspace .trc-card-table tbody > tr > td.trc-record-feature { display: grid !important; grid-column: auto; align-content: start; justify-items: start; padding: 6px 8px; border-radius: 8px; background: #f5f5f8 !important; }
.trc-role-workspace .trc-card-table tbody > tr > td.trc-record-thumb { display: flex !important; grid-column: 1/-1; }
.trc-role-workspace .trc-card-table tbody > tr > td.trc-record-state { display: flex !important; justify-self: start; gap: 6px; margin: 3px 0; padding: 4px 9px; border-radius: 20px; color: var(--role-container); background: var(--role-soft) !important; }
.trc-role-workspace .trc-card-table tbody > tr > td.trc-record-actions { border-top: 1px solid var(--role-line) !important; padding-top: 8px; }
.trc-role-workspace .trc-card-table tbody > tr > td.trc-record-actions:empty { display: none; }
.trc-wallet-balances { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 0 0 12px; padding: 16px; color: #fff; background: var(--role-container); border-radius: 14px; }
body[data-trc-role] .trc-wallet-balances .form-group { display: block; margin: 0; }
body[data-trc-role] .trc-wallet-balances label.control-label { color: #d7e3ff; font-size: 12px; font-weight: 550; }
.trc-wallet-balances p.form-control-static { color: #fff; padding: 2px 0; margin: 0; font-size: 19px; font-variant-numeric: tabular-nums; font-weight: 700; overflow-wrap: anywhere; }
.trc-report-periods { display: flex; gap: 6px; margin: 0 0 12px; }
.trc-report-periods a { display: grid; place-items: center; min-height: 44px; padding: 6px 14px; background: #f5f3f6; border-radius: 10px; color: var(--role-muted); font-size: 13px; font-weight: 650; }
.trc-report-periods a[aria-current] { color: white; background: var(--role-container); }
.trc-record-toggle.trc-record-complete, .trc-timeline-region > table > tbody > tr[hidden] { display: none !important; }
#site-verification-form .nav-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; border: 0; }
#site-verification-form .nav-link { padding: 10px 5px; text-align: center; min-height: 44px; border: 1px solid var(--role-line); border-radius: 8px; }
#site-verification-form .nav-link.active { background: var(--role-container); color: #fff; }
#site-verification-form .tab-pane .list-icons { margin: 10px 0 0; padding: 0; list-style: none; }
#site-verification-form .list-icons li { margin: 0; padding: 6px 0; }
#site-verification-form #site-verification-meta { display: block; margin-bottom: 6px; padding: 10px; color: var(--role-ink); background: var(--role-soft); border-radius: 8px; overflow-wrap: anywhere; }
#site-verification-form #copy-site-meta { display: inline-flex; }
#site-verification-form #copy-site-meta-status { display: inline; margin-inline: 6px; }
.trc-business-fieldset .table-responsive:has([rel-action=reverse]) { overflow: visible; }
.trc-business-fieldset .table-responsive:has([rel-action=reverse]) table { display: block; min-width: 0; }
.trc-business-fieldset .table-responsive:has([rel-action=reverse]) tbody { display: block; }
.trc-business-fieldset .table-responsive:has([rel-action=reverse]) tr { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 3px; }
.trc-business-fieldset .table-responsive:has([rel-action=reverse]) td { display: flex; align-items: center; width: auto; padding: 4px 0; border: 0; white-space: normal; }
.trc-business-fieldset .table-responsive:has([rel-action=reverse]) td[colspan]:has(a) { grid-column: 1/-1; gap: 8px; }
.trc-business-fieldset .table-responsive:has([rel-action=reverse]) tr:has(a) { border-top: 1px solid var(--role-line); margin-top: 10px; padding-top: 5px; }
.trc-business-fieldset .table-responsive:has([rel-action=reverse]) :is(a,label) { display: inline-flex; align-items: center; min-height: 44px; margin: 0; }
.trc-business-fieldset .table-responsive:has([rel-action=reverse]) .checkbox { margin: 0; }
.trc-business-fieldset .trc-scroll-hint:has(+ .table-responsive [rel-action=reverse]) { display: none; }
.trc-choice-field > .radio-list { display: flex; flex-wrap: wrap; gap: 6px; }
body[data-trc-role].trc-role-dialog .trc-notice { padding: 16px; margin-bottom: 13px; color: #e5edff; background: var(--role-container); border-radius: 12px; overflow-wrap: anywhere; }
.trc-role-dialog .trc-notice strong { color: white; font-size: 16px; }
.trc-role-dialog .trc-notice p { margin: 5px 0 0; color: #e5edff; }
#site-verification-form .trc-verification-title { display: block; font-size: 16px; color: var(--role-ink); margin: 14px 0 0; }
/* Let the document own scrolling so form actions can sit above the fixed role navigation. */
.trc-role-workspace #wrapper:has(.trc-form-actions) { overflow: visible; }
.trc-role-workspace .trc-form-actions { bottom: calc(61px + env(safe-area-inset-bottom)); }
.trc-role-workspace .panel.trc-list-results { background: transparent; border: 0; }
.trc-role-workspace .trc-list-results > .panel-heading { display: none; }
.trc-role-workspace .trc-list-results > .panel-wrapper > .panel-body { padding: 0; }
.trc-list-results > .panel-wrapper > .panel-footer:empty { display: none; }
.trc-role-workspace .trc-list-results .trc-card-table > table > tbody > tr { background: #fff; border: 1px solid #dce0e8; border-radius: 14px; padding: 12px; }
.trc-role-workspace .trc-list-results .trc-card-table td.trc-record-title { border-bottom: 0 !important; }
.trc-role-workspace .trc-empty-region { overflow: visible; }
.trc-role-workspace .trc-scroll-hint:has(+ .trc-empty-region) { display: none; }
.trc-empty-region > table { display: block; min-width: 0; width: 100%; margin: 0; }
.trc-empty-region > table > thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.trc-empty-region > table > tbody, .trc-empty-region > table > tbody > tr { display: block; width: 100%; }
.trc-role-workspace .trc-empty-region > table > tbody > tr > td { display: grid !important; justify-items: center; justify-content: center; gap: 8px; padding: 18px 12px; max-width: none; width: 100%; text-align: center !important; color: var(--role-muted); border: none; background: #fff; white-space: normal !important; }
.trc-empty-region td > i { color: #58647b; font-size: 20px; }
.trc-empty-reset { display: grid; place-content: center; min-height: 44px; color: var(--role-blue); font-weight: 620; }
body[data-trc-role] .trc-upload-field .input-group { display: grid; grid-template-columns: minmax(0,1fr) auto; width: 100%; min-width: 0; align-items: stretch; }
body[data-trc-role] .trc-upload-field .input-group > .form-control { min-width: 0; width: 100%; }
.trc-role-dialog .trc-business-fieldset > .form-group > label { display: block; font-weight: 620; margin: 0 0 5px; }
body[data-trc-role].trc-role-dialog .trc-review-field { display: grid; grid-template-columns: minmax(88px,.8fr) minmax(0,1.35fr); gap: 6px; align-items: center; margin: 0; padding: 6px 0; border-bottom: 1px solid #ebedf1; }
body[data-trc-role].trc-role-dialog .trc-review-field:last-child { border: 0; }
body[data-trc-role].trc-role-dialog .trc-review-field > label { margin: 0; color: var(--role-muted); font-size: 13px; }
body[data-trc-role].trc-role-dialog .trc-review-field > input { min-height: 36px; width: 100%; min-width: 0; padding: 5px 2px; color: var(--role-ink); background: transparent; border-color: transparent; font-variant-numeric: tabular-nums; }
.trc-role-workspace .trc-settlement-preview .table-responsive > table, .trc-role-workspace .trc-settlement-preview tbody { border: 0; }
.trc-role-workspace .trc-settlement-preview tbody > tr { padding: 4px 0; border-width: 0 0 1px; border-color: #e6e8ed; }
.trc-role-workspace .trc-settlement-preview tbody > tr > :is(th,td) { padding: 7px 2px; border: 0; background: transparent; }
.trc-role-workspace .trc-settlement-preview tbody > tr > th { font-size: 13px; color: var(--role-muted); }
.trc-wallet-balances:has(.trc-wallet-primary) { grid-template-columns: repeat(auto-fit,minmax(80px,1fr)); }
.trc-wallet-primary { grid-column: 1/-1; padding-bottom: 8px; border-bottom: 1px solid #ffffff38; }
.trc-wallet-balances .trc-wallet-primary .form-control-static { font-size: 27px; line-height: 1.4; }
.trc-fill-amount { display: inline-flex; align-items: center; min-height: 44px; padding: 5px 0; color: var(--role-blue); font-weight: 620; background: transparent; border: 0; }
.trc-weekly-bills { scroll-margin-top: 68px; }
.trc-issued-label { display: inline-flex; padding: 3px 7px; border-radius: 5px; color: var(--role-blue); background: var(--role-soft); font-size: 12px; }
.trc-business-section-title { margin: 12px 0 8px; color: var(--role-ink); font-size: 16px; line-height: 1.45; font-weight: 680; }
.trc-role-workspace #page-wrapper .row.trc-report-sales-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
.trc-report-sales-metrics > .trc-mobile-only { display: block; }
.trc-invite-summary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 12px 0 0; padding: 14px; border-radius: 10px; background: var(--role-container); }
.trc-invite-summary dt { margin: 0; font-weight: 550; font-size: 12px; color: #d7e3ff; }
.trc-invite-summary dd { margin: 3px 0 0; font-size: 20px; line-height: 1.3; font-weight: 680; color: #fff; overflow-wrap: anywhere; }
body[data-trc-role] .form-horizontal .trc-wallet-balances .form-group > label.control-label { margin: 0; color: #d7e3ff; font-size: 12px; font-weight: 550; }
body.trc-role-workspace[data-trc-role] #page-wrapper .text-muted { color: var(--role-muted) !important; }
body.trc-role-workspace[data-trc-role] #page-wrapper .trc-notice { font-size: 14px; line-height: 1.55; }
body.trc-role-workspace[data-trc-role] #page-wrapper .trc-notice a:not(.btn) { color: var(--role-blue); text-decoration: underline; }
.trc-entity-balances { display: block; padding: 14px; margin-bottom: 12px; border: 1px solid #dce0e8; border-radius: 14px; background: #fff; }
.trc-entity-balances h2 { margin: 0 0 10px; color: var(--role-ink); font-size: 16px; font-weight: 680; }
.trc-entity-balances dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 0; }
.trc-entity-balances dl > div { padding: 8px; border-radius: 8px; background: #f5f5f8; }
.trc-entity-balances dt { color: var(--role-muted); font-size: 12px; }
.trc-entity-balances dd { margin: 2px 0 0; color: var(--role-container); font-size: 17px; font-weight: 680; overflow-wrap: anywhere; }
.trc-ops-overview { margin: 14px 0; }
.trc-ops-overview .trc-conversion-card { margin: 8px 0; }
.trc-ops-overview .trc-dashboard-chart > div { padding: 0; }
.trc-ops-overview .trc-dashboard-chart .white-box { margin-bottom: 0; }
.trc-role-workspace .trc-card-table tbody > tr > td.trc-state-pending { color: #784000; background: #fff1cf !important; }
.trc-role-workspace .trc-card-table tbody > tr > td.trc-state-negative { color: #9c2c22; background: #fff0ed !important; }
.trc-settlement-results nav.trc-settlement-modes { display: flex; padding: 0 0 10px; }
.trc-role-workspace .trc-settlement-results .trc-card-table tbody > tr > td.trc-mode-active { display: flex !important; grid-column: 1/-1; background: var(--role-soft) !important; }
.trc-role-workspace .trc-settlement-results .trc-card-table tbody > tr > td.trc-mode-other { display: none !important; }
.trc-daily-live { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin: 10px 0; padding: 12px; border-radius: 10px; background: var(--role-container); }
.trc-daily-live dt { color: #d7e3ff; font-size: 12px; font-weight: 550; }
.trc-daily-live dd { margin: 3px 0 0; color: white; font-size: 17px; font-weight: 680; overflow-wrap: anywhere; }
.trc-daily-heading { display: inline; }
h2.trc-daily-heading { display: block; font-size: 16px; }
.trc-account-summary h2.trc-daily-heading { margin: 0 0 6px; color: #fff; }
.trc-role-policy-count { display: inline; margin-inline-start: 5px; color: var(--role-muted); font-size: 12px; font-weight: 550; }
.trc-config-identity { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: 10px; margin: 0 0 12px; padding: 14px; border: 1px solid #dce0e8; border-radius: 12px; background: #fff; }
.trc-config-identity dt { color: var(--role-muted); font-size: 12px; }
.trc-config-identity dd { margin: 3px 0 0; overflow-wrap: anywhere; font: 600 14px/1.5 ui-monospace,monospace; color: var(--role-container); }
.trc-business-fieldset .input-group:has(input:is([name=width],[name=height])) { display: grid; grid-template-columns: auto minmax(0,1fr) auto; }
.trc-business-fieldset .input-group:has(input:is([name=width],[name=height])) input { min-width: 0; width: 100%; }
.trc-business-fieldset .checkbox-inline { margin: 0 5px 4px 0; padding: 5px 8px; border: 1px solid var(--role-line); border-radius: 7px; }
.trc-business-fieldset .checkbox-inline:has(:checked) { color: var(--role-blue); border-color: var(--role-blue); background: var(--role-soft); }
.trc-business-fieldset .checkbox-inline input { margin: 0; }
