.ml-audit-view{display:none;gap:16px}.ml-audit-view.active{display:grid}.ml-audit-control-card{padding:18px}.ml-audit-toolbar{display:flex;justify-content:space-between;gap:16px;align-items:end;flex-wrap:wrap}.ml-audit-range{display:flex;gap:12px;flex-wrap:wrap}.ml-audit-range label{display:grid;gap:6px;font-size:12px;font-weight:700;color:#475467}.ml-audit-range input{min-width:150px}.ml-audit-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.button-link{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;padding:9px 12px;border-radius:8px;border:1px solid #d0d5dd;color:#344054;background:#fff;font-size:13px;font-weight:700}.ml-audit-help{margin:12px 0 0;color:#667085;font-size:12px}.ml-audit-config{margin-top:12px;padding:10px 12px;border-radius:8px;font-size:12px;font-weight:650}.ml-audit-config.ok{background:#ecfdf3;color:#027a48}.ml-audit-config.warning{background:#fffaeb;color:#b54708}.ml-audit-message{min-height:20px;margin-top:10px;font-size:12px;color:#475467}.ml-audit-message.error{color:#b42318}.ml-audit-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.ml-audit-kpi{padding:16px;display:grid;gap:6px}.ml-audit-kpi>span{font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:#667085;font-weight:800}.ml-audit-kpi>strong{font-size:20px;line-height:1.1;color:#101828}.ml-audit-kpi>small{font-size:11px;color:#98a2b3}.ml-audit-kpi.attention{border-color:#fecdca}.ml-audit-kpi.attention>strong{color:#b42318}.ml-audit-section{padding:18px}.ml-audit-table-wrap{overflow:auto;border:1px solid #eaecf0;border-radius:10px}.ml-audit-table{width:100%;border-collapse:collapse;min-width:760px}.ml-audit-table th,.ml-audit-table td{padding:11px 12px;text-align:left;border-bottom:1px solid #eaecf0;font-size:12px;white-space:nowrap}.ml-audit-table th{background:#f9fafb;color:#667085;font-size:10px;text-transform:uppercase;letter-spacing:.04em}.ml-audit-table tbody tr:last-child td{border-bottom:0}.ml-audit-table .positive{color:#067647}.ml-audit-table .negative{color:#b42318}.ml-audit-source{display:inline-flex;padding:3px 7px;border-radius:999px;background:#f2f4f7;color:#667085;font-size:10px;font-weight:700}.ml-audit-source.reported{background:#ecfdf3;color:#027a48}.ml-audit-empty{padding:20px!important;text-align:center!important;color:#98a2b3!important}.ml-audit-anomalies{display:grid;gap:10px}.ml-audit-anomaly{display:flex;justify-content:space-between;gap:16px;border:1px solid #eaecf0;border-left:4px solid #f79009;border-radius:10px;padding:13px 14px;background:#fff}.ml-audit-anomaly.high{border-left-color:#d92d20}.ml-audit-anomaly-head{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.ml-audit-anomaly-head strong{color:#101828}.ml-audit-anomaly-head span{font-weight:800;color:#b42318}.ml-audit-anomaly p{margin:5px 0;color:#475467;font-size:12px}.ml-audit-anomaly small{color:#98a2b3}.ml-audit-anomaly-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.ml-audit-type{display:inline-flex;padding:3px 7px;border-radius:6px;background:#f2f4f7;font-size:10px;font-weight:750;color:#344054}.ml-audit-subref{display:block;color:#98a2b3;margin-top:2px}.admin-only-visible{display:flex!important}@media(max-width:1200px){.ml-audit-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:720px){.ml-audit-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.ml-audit-toolbar{align-items:stretch}.ml-audit-actions{width:100%}.ml-audit-actions>*{flex:1}.ml-audit-anomaly{flex-direction:column}}.ml-audit-pending-tasks{display:grid;gap:7px;margin-top:10px}.ml-audit-task-title{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:#667085}.ml-audit-task-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 11px;border:1px solid #eaecf0;border-radius:8px;background:#fff}.ml-audit-task-row>span:first-child{display:grid;gap:2px}.ml-audit-task-row strong{font-size:12px;color:#101828}.ml-audit-task-row small{font-size:10px;color:#98a2b3}.ml-audit-task-status{padding:4px 8px;border-radius:999px;background:#fffaeb;color:#b54708;font-size:10px;font-weight:800;white-space:nowrap}
.ml-audit-live-section{border:1px solid #d0d5dd}
.ml-audit-live-header{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.ml-audit-live-filters{display:flex;gap:6px}
.ml-audit-live-filters button[aria-pressed="true"]{background:#171717;color:#fff;border-color:#171717}
.ml-audit-live-status{font-size:12px;color:#475467;background:#f9fafb;border-radius:8px;padding:10px 12px;margin:12px 0}
.ml-audit-live-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.ml-audit-live-kpis>div{display:grid;gap:5px;padding:13px;border:1px solid #eaecf0;border-radius:10px}
.ml-audit-live-kpis small{font-size:11px;color:#667085;font-weight:650}
.ml-audit-live-kpis strong{font-size:19px;color:#101828}
/* Daily summary and recent payments occupy independent, full-width blocks. */
.ml-audit-live-daily{min-width:0;margin-top:15px}
.ml-audit-live-daily h3{font-size:13px;margin:0 0 10px}
.ml-audit-live-daily .ml-audit-table{min-width:550px}
.ml-audit-recent-payments-section{min-width:0}
.ml-audit-recent-payments-section .section-head{margin-bottom:12px}
.ml-audit-recent-payments-section .ml-audit-table{min-width:650px}
@media(max-width:600px){.ml-audit-live-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* Navigation controls must honour hidden even with display rules from app-shell.css */
#mlAuditNav[hidden],#mlAuditSchedule[hidden]{display:none!important}
#mlAuditNav:not([hidden]){cursor:pointer}

/* Keep every financial panel within the workspace at narrow widths. */
.ml-audit-view.active{grid-template-columns:minmax(0,1fr)}
.ml-audit-view,.ml-audit-view>*{min-width:0}
.ml-audit-kpis{min-width:0}
.ml-audit-kpi{min-width:0;margin-bottom:0!important}
.ml-audit-kpi>strong{min-width:0;max-width:100%;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;font-size:clamp(15px,1.55vw,20px)}
.ml-audit-live-kpis>div{min-width:0}
.ml-audit-live-kpis strong{min-width:0;max-width:100%;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;font-size:clamp(15px,1.5vw,19px)}
.ml-audit-control-card,.ml-audit-section{min-width:0;margin-bottom:0!important}
.ml-audit-live-status{overflow-wrap:anywhere;line-height:1.45}
.ml-audit-task-row{min-width:0}
.ml-audit-task-row>span:first-child{min-width:0;overflow-wrap:anywhere}
.ml-audit-section .ml-audit-table-wrap{max-width:100%;overscroll-behavior-x:contain}
.ml-audit-table td,.ml-audit-table th{font-variant-numeric:tabular-nums}
@media(max-width:720px){
  .ml-audit-range{width:100%}
  .ml-audit-range label{flex:1 1 130px;min-width:0}
  .ml-audit-range input{min-width:0}
  .ml-audit-actions>*{flex:1 1 calc(50% - 8px);min-width:0;white-space:normal;text-align:center}
  .ml-audit-live-header{align-items:flex-start}
  .ml-audit-live-filters{flex:0 0 auto}
  .ml-audit-task-row{align-items:flex-start;flex-direction:column;gap:7px}
}
@media(max-width:380px){
  .ml-audit-actions>*{flex-basis:100%}
  .ml-audit-kpis,.ml-audit-live-kpis{grid-template-columns:1fr}
}

/* Long IDs, references and messages must not stretch anomaly cards. */
.ml-audit-anomaly>div{min-width:0;max-width:100%}
.ml-audit-anomaly-head,.ml-audit-anomaly p,.ml-audit-anomaly small{overflow-wrap:anywhere}
.ml-audit-anomaly-actions{min-width:0}
.ml-audit-actions .button-link[aria-disabled="true"]{opacity:.55;pointer-events:none;cursor:not-allowed}

/* Financial list pagination, 15 visible rows per page. */
.ml-audit-pager{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;margin-top:10px;flex-wrap:wrap}
.ml-audit-pager[hidden]{display:none!important}
.ml-audit-page-info{font-size:12px;font-weight:650;color:#667085;overflow-wrap:anywhere}
.ml-audit-page-buttons{display:flex;gap:8px;flex-wrap:wrap}
.ml-audit-page-buttons button:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:600px){.ml-audit-pager{align-items:flex-start;flex-direction:column}.ml-audit-page-buttons{width:100%}.ml-audit-page-buttons button{flex:1 1 auto}}

/* Payment operation ID is always available; show an ML sale number only when linked. */
.ml-audit-payment-reference{white-space:normal!important;min-width:180px;overflow-wrap:anywhere}
.ml-audit-payment-reference strong{display:block;color:#101828;font-variant-numeric:tabular-nums;font-weight:750}
.ml-audit-reference-label{display:block;font-size:10px;font-weight:750;letter-spacing:.02em;color:#667085;margin-bottom:3px}
.ml-audit-payment-reference .ml-audit-subref{font-size:10px;margin-top:3px}

/* Official account links: visible and keyboard-accessible in both payment rows. */
.ml-audit-payment-reference .ml-audit-reference-link{color:#b42318;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;overflow-wrap:anywhere}
.ml-audit-payment-reference .ml-audit-reference-link:hover{color:#7a1015;text-decoration-thickness:2px}
.ml-audit-payment-reference .ml-audit-reference-link:focus-visible{outline:2px solid #b42318;outline-offset:2px;border-radius:3px}
.ml-audit-reference-external{font-size:10px;margin-left:3px;white-space:nowrap}

/* USD CIF profitability is provisional and uses a separately dated BNA quote. */
.ml-audit-recent-payments-section .ml-audit-table{min-width:1350px}
.ml-audit-profit-unavailable{color:#667085;font-style:italic;white-space:normal!important;min-width:280px}
.ml-audit-net-usd{min-width:190px;white-space:normal!important}
.ml-audit-net-usd .ml-audit-subref{max-width:210px;overflow-wrap:anywhere}
.ml-audit-recent-payments-section .positive strong{color:#067647}
.ml-audit-recent-payments-section .negative strong{color:#b42318}

/* Payments may be split between methods. This amount is shared, not additive across rows. */
.ml-audit-grouped-net{min-width:172px;white-space:normal!important}
.ml-audit-grouped-net strong{font-weight:800;color:#101828;font-variant-numeric:tabular-nums}
.ml-audit-grouped-net .ml-audit-subref{overflow-wrap:anywhere;max-width:210px}

/* Grouped money is displayed once; secondary payments point to the primary MP operation. */
.ml-audit-grouped-net-secondary{color:#667085;font-size:11px}
.ml-audit-grouped-net-secondary .ml-audit-reference-link{color:#b42318;text-decoration:underline;text-underline-offset:3px;font-weight:700}
.ml-audit-grouped-net-secondary .ml-audit-reference-link:focus-visible{outline:2px solid #b42318;outline-offset:2px}

/* Persistent, provisional sale-day profit summary, independent of MP activity/day balances. */
.ml-audit-daily-profit-section{min-width:0}
.ml-audit-profit-header{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.ml-audit-profit-header p{max-width:800px}
.ml-audit-profit-overview{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:14px 0}
.ml-audit-profit-overview>div{min-width:0;display:grid;gap:4px;border:1px solid #eaecf0;border-radius:9px;padding:12px 15px}
.ml-audit-profit-overview small{font-size:11px;font-weight:700;color:#667085}
.ml-audit-profit-overview strong{font-size:clamp(17px,1.65vw,23px);font-variant-numeric:tabular-nums;overflow-wrap:anywhere;color:#101828}
.ml-audit-daily-profit-section .ml-audit-table{min-width:840px}
.ml-audit-profit-status{font-size:12px;color:#475467;line-height:1.45;margin:0 0 12px;overflow-wrap:anywhere}
.ml-audit-profit-coverage{font-size:11px;color:#344054;font-weight:700}
.ml-audit-profit-coverage.partial{color:#b54708}
#mlAuditProfitRefresh:disabled{opacity:.55;cursor:wait}
@media(max-width:620px){.ml-audit-profit-overview{grid-template-columns:1fr}.ml-audit-profit-header button{width:100%}}

/* Single margin compares actual ML item-sale price against CIF USD only. */
.ml-audit-recent-payments-section .ml-audit-net-usd{min-width:190px}
.ml-audit-recent-payments-section .ml-audit-table td{vertical-align:top}
.ml-audit-daily-profit-section .ml-audit-table td{vertical-align:top}
@media(max-width:1200px){.ml-audit-profit-overview{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:620px){.ml-audit-profit-overview{grid-template-columns:1fr}}
