/* Phase 5 Agent workspace: PAM navy / blue / amber ledger look. Existing tokens only. No charts. */
.ax { min-width: 0; }
.ax-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ax-dim { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.ax-na { color: var(--muted); font-size: .8em; font-style: italic; font-weight: 500; }
.ax-mono { font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.ax-wrap { overflow-wrap: anywhere; }
.ax button:focus-visible, .ax input:focus-visible, .ax select:focus-visible, .ax-dialog button:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.ax-head h1, .ax-hero h1 { overflow-wrap: anywhere; }
.ax-hero { align-items: center; background: linear-gradient(135deg, var(--navy), var(--navy-2)); border-bottom: 4px solid var(--amber); border-radius: 18px; color: #fff; display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr) auto; margin-bottom: 20px; padding: clamp(18px, 4vw, 30px); }
.ax-hero .eyebrow { color: var(--amber); }
.ax-hero h2 { font-size: 18px; margin: 14px 0 4px; }
.ax-hero p { color: #d3def5; margin: 0; max-width: 56ch; }
.ax-sell { display: flex; flex-wrap: wrap; gap: 10px; }
.ax-sell .button, .ax-cust-acts .button, .ax-dialog-acts .button { min-height: 44px; }
.ax-section { margin: 0 0 22px; min-width: 0; }
.ax-section h2 { font-size: 18px; margin: 0 0 10px; }
.ax-sec-head { align-items: center; display: flex; gap: 12px; justify-content: space-between; }
.ax-link { background: none; border: 0; color: var(--blue); cursor: pointer; font-weight: 600; min-height: 36px; padding: 4px 2px; text-decoration: underline; }
.ax-stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); margin-bottom: 12px; }
.ax-stat { background: #fff; border: 1px solid #dfe7f6; border-left: 4px solid var(--blue); border-radius: 12px; display: grid; gap: 6px; min-width: 0; padding: 14px; }
.ax-stat span { color: #6b7a99; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.ax-stat strong { font-family: "Space Grotesk", sans-serif; font-size: 26px; overflow-wrap: anywhere; }
.ax-gross { background: var(--soft); border: 1px dashed #b9c9e8; border-radius: 12px; padding: 14px; }
.ax-gross > span { color: #6b7a99; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.ax-gross > div { display: grid; gap: 4px; margin: 8px 0; }
.ax-line { align-items: baseline; display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; }
.ax-line i { color: var(--muted); font-style: normal; font-weight: 700; overflow-wrap: anywhere; }
.ax-line b { font-family: "Space Grotesk", sans-serif; font-size: 20px; overflow-wrap: anywhere; }
.ax-ledger-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.ax-ledger-card { background: #fff; border: 1px solid #dfe7f6; border-top: 3px solid var(--amber); border-radius: 14px; min-width: 0; padding: 14px; }
.ax-ledger-card h3 { margin: 0 0 8px; overflow-wrap: anywhere; }
.ax-dl { display: grid; gap: 8px; margin: 0; }
.ax-dl > div { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; min-width: 0; }
.ax-dl dt { color: #6b7a99; flex: none; font-size: 12px; }
.ax-dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; text-align: right; }
.ax-dl dd small { color: var(--muted); display: block; font-size: 12px; }
.ax-total { border-top: 1px solid #dfe7f6; font-weight: 700; padding-top: 8px; }
.ax-note { background: #fff8e1; border-left: 4px solid var(--amber); border-radius: 10px; margin: 0 0 16px; padding: 12px 14px; }
.ax-note p { margin: 0 0 6px; }
.ax-filters { background: #fff; border: 1px solid #dfe7f6; border-radius: 14px; display: grid; gap: 12px; margin-bottom: 18px; padding: 14px; }
.ax-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ax-chip { background: var(--soft); border: 1px solid #dfe7f6; border-radius: 999px; color: var(--navy); cursor: pointer; font-weight: 600; min-height: 40px; padding: 6px 14px; }
.ax-chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.ax-filter-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.ax-field { display: grid; gap: 4px; min-width: 0; }
.ax-field-wide { grid-column: span 2; }
.ax-field label { color: #6b7a99; font-size: 12px; font-weight: 600; }
.ax-field input, .ax-field select { background: #fff; border: 1px solid #c9d5ee; border-radius: 10px; font: inherit; min-height: 44px; min-width: 0; padding: 8px 10px; width: 100%; }
.ax-filter-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.ax-field-err { color: var(--red); font-weight: 600; margin: 0; }
.ax-rangeinfo { margin: 0; }
.ax-pill { background: var(--soft); border-radius: 999px; display: inline-block; font-size: 12px; font-weight: 700; max-width: 100%; overflow-wrap: anywhere; padding: 3px 10px; }
.ax-pill-sold, .ax-pill-eligible { background: #dff5ec; color: #0d6b4a; }
.ax-pill-failed, .ax-pill-cancelled { background: #fde6e9; color: #a02a3b; }
.ax-pill-unconfirmed, .ax-pill-processing, .ax-pill-pending { background: #fff1cc; color: #7a5200; }
.ax-pill-refunded, .ax-pill-reversed { background: #e7e9f2; color: #3a4466; }
.ax-tablewrap { background: #fff; border: 1px solid #dfe7f6; border-radius: 14px; overflow-x: auto; }
.ax-table { border-collapse: collapse; width: 100%; }
.ax-table th { background: var(--soft); color: #6b7a99; font-size: 12px; padding: 10px 12px; text-align: left; text-transform: uppercase; }
.ax-table td { border-top: 1px solid #edf1fa; overflow-wrap: anywhere; padding: 10px 12px; vertical-align: top; }
.ax-table td small { color: var(--muted); display: block; font-size: 12px; }
.ax-btn { background: var(--soft); border: 1px solid transparent; border-radius: 10px; color: var(--blue); cursor: pointer; font-weight: 600; min-height: 40px; padding: 6px 12px; }
.ax-btn:hover { border-color: #8db4ff; }
.ax-cust-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); list-style: none; margin: 0; padding: 0; }
.ax-cust { background: #fff; border: 1px solid #dfe7f6; border-top: 3px solid var(--amber); border-radius: 14px; display: grid; gap: 12px; min-width: 0; padding: 14px; }
.ax-cust-top { align-items: center; display: flex; gap: 12px; min-width: 0; }
.ax-avatar { align-items: center; background: var(--navy); border-radius: 50%; color: var(--amber); display: inline-flex; flex: 0 0 40px; font-weight: 700; height: 40px; justify-content: center; width: 40px; }
.ax-cust-id { display: grid; min-width: 0; overflow-wrap: anywhere; }
.ax-cust-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.ax-rank { list-style: none; margin: 0; padding: 0; }
.ax-rank li { border-bottom: 1px solid #edf1fa; display: flex; gap: 10px; justify-content: space-between; padding: 8px 0; }
.ax-rank span { min-width: 0; overflow-wrap: anywhere; }
.ax-two { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.ax-pager { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-top: 14px; }
.ax-empty { background: #fff; border: 1px dashed #b9c9e8; border-radius: 14px; margin: 0; padding: 20px; }
.ax-error { background: #fff; border: 1px solid #f0c5cb; border-radius: 14px; padding: 16px; }
.ax-stale { background: #fff8e1; border-radius: 10px; padding: 8px 12px; }
.ax-skel-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.ax-skel { animation: ax-pulse 1.2s ease-in-out infinite; background: #e6edf9; border-radius: 12px; height: 84px; }
@keyframes ax-pulse { 50% { opacity: .5; } }
@media (prefers-reduced-motion: reduce) { .ax-skel { animation: none; } }
#ax-layer .ax-scrim { align-items: center; background: rgba(7, 25, 73, .55); display: flex; inset: 0; justify-content: center; padding: 12px; position: fixed; z-index: 1000; }
.ax-dialog { background: #fff; border-radius: 16px; border-top: 4px solid var(--amber); max-height: calc(100dvh - 24px); max-width: 560px; overflow-y: auto; padding: 18px; width: 100%; }
.ax-dialog-head { align-items: center; display: flex; gap: 10px; justify-content: space-between; margin-bottom: 12px; }
.ax-dialog-head h2 { margin: 0; }
.ax-x { background: var(--soft); border: 0; border-radius: 10px; cursor: pointer; font-size: 22px; height: 44px; width: 44px; }
.ax-dl-detail { margin-bottom: 12px; }
.ax-dialog-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
body.ax-open { overflow: hidden; }
@media (max-width: 760px) {
  .ax-hero { grid-template-columns: minmax(0, 1fr); }
  .ax-sell .button { flex: 1 1 140px; }
  .ax-field-wide { grid-column: auto; }
  .ax-tablewrap { background: none; border: 0; overflow: visible; }
  .ax-table, .ax-table tbody, .ax-table tr, .ax-table td { display: block; }
  .ax-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ax-table tr { background: #fff; border: 1px solid #dfe7f6; border-radius: 14px; margin-bottom: 10px; padding: 6px 12px; }
  .ax-table td { align-items: baseline; border: 0; display: flex; gap: 12px; justify-content: space-between; padding: 6px 0; text-align: right; }
  .ax-table td::before { color: #6b7a99; content: attr(data-label); flex: none; font-size: 12px; text-align: left; }
  .ax-table td > * { max-width: 70%; }
}
