/* Connected approval surfaces; all rules stay inside the approval namespace. */
.haa-page { display: grid; gap: 24px; }
.haa-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.haa-eyebrow { display: block; color: #657386; font-size: 11px; font-weight: 650; letter-spacing: .07em; margin-bottom: 8px; }
.haa-heading h1 { margin: 0; font-size: 28px; letter-spacing: -.035em; font-weight: 600; }
.haa-heading p { color: #657386; margin: 7px 0 0; font-size: 15px; line-height: 1.55; }
.haa-totals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid #e1e6ec; border-radius: 12px; background: white; padding: 22px 0; }
.haa-totals > div { padding: 0 24px; border-right: 1px solid #e1e6ec; display: grid; align-content: start; gap: 9px; min-width: 0; }
.haa-totals > div:last-child { border-right: 0; }
.haa-totals > div > span { color: #57677a; font-size: 13px; }
.haa-totals strong { font-size: 24px; font-weight: 550; letter-spacing: -.03em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.haa-totals strong .money { font: inherit; color: inherit; display: inline; }
.haa-totals small { font-size: 12px; color: #708092; line-height: 1.4; }
.haa-guidance { display: flex; gap: 12px; align-items: flex-start; border-radius: 8px; background: #f1f5f8; padding: 16px 20px; color: #516579; }
.haa-guidance > span { display: grid; place-items: center; flex: 0 0 20px; padding-top: 1px; }
.haa-guidance svg { width: 18px; height: 18px; }
.haa-guidance p { margin: 0; font-size: 13px; line-height: 1.6; }
.haa-guidance strong { color: #253d52; }
.haa-role-note { color: #7c6337; background: #faf7ef; border: 1px solid #e9e0cb; border-radius: 8px; font-size: 13px; padding: 14px 20px; line-height: 1.55; }
.haa-queue { display: grid; gap: 18px; }
.haa-queue-toolbar { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
.haa-tabs { display: flex; gap: 4px; padding: 4px; border: 1px solid #e0e5eb; background: #f7f8fa; border-radius: 9px; max-width: 100%; overflow-x: auto; }
.haa-tabs button { font: inherit; border: 0; background: none; color: #657386; padding: 9px 12px; border-radius: 6px; cursor: pointer; display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 14px; }
.haa-tabs button[aria-current] { background: #fff; color: #17202a; box-shadow: 0 1px 4px #0f172a14; font-weight: 600; }
.haa-tabs button > span { background: #eaf0f5; border-radius: 5px; padding: 1px 5px; font-size: 11px; color: #465b70; }
.haa-tabs button:focus-visible, .haa-bill-description button:focus-visible, .haa-preview-list button:focus-visible { outline: 3px solid #a2bdd6; outline-offset: 3px; }
.haa-queue-toolbar form { display: flex; align-items: center; gap: 8px; flex: 0 1 380px; }
.haa-search { min-width: 0; flex: 1; }
.haa-search input { width: 100%; min-width: 0; border: 1px solid #ccd6df; border-radius: 7px; background: white; padding: 10px 12px; font: inherit; font-size: 13px; }
.haa-queue-description { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; color: #69788a; font-size: 13px; line-height: 1.5; }
.haa-queue-description small { flex-shrink: 0; font-size: 12px; }
.haa-bill-list { display: grid; gap: 14px; }
.haa-bill { border: 1px solid #dfe5eb; border-radius: 11px; background: white; overflow: hidden; }
.haa-bill-main { padding: 22px 24px; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr) minmax(170px, .7fr); gap: 24px; align-items: start; }
.haa-bill-description { min-width: 0; }
.haa-category { display: inline-block; color: #496077; font-size: 11px; font-weight: 600; padding: 3px 7px; border-radius: 5px; background: #f0f4f7; margin-bottom: 9px; }
.haa-category.pending { color: #97671f; background: #fbf2e2; }
.haa-bill-description h3 { font-size: 17px; line-height: 1.4; margin: 0 0 7px; }
.haa-bill-description h3 button { border: 0; padding: 0; background: transparent; text-align: left; color: #162331; font: inherit; font-weight: 600; cursor: pointer; }
.haa-bill-description p { font-size: 13px; color: #637589; margin: 0; line-height: 1.5; }
.haa-bill-description p > span { margin: 0 7px; color: #b2bdc9; }
.haa-series { display: block; margin-top: 7px; font-size: 11px; color: #6a7d8f; }
.haa-document { display: grid; gap: 7px; border-left: 1px solid #e7ebf0; padding-left: 22px; min-width: 0; }
.haa-document-label { font-size: 11px; color: #788697; }
.haa-document > strong { font-size: 12px; font-weight: 500; line-height: 1.5; color: #425b51; }
.haa-document > strong.pending { color: #946225; }
.haa-document > small { font-size: 11px; color: #6d7d8e; }
.haa-document .button { justify-self: start; margin-left: -8px; padding-top: 3px; padding-bottom: 3px; font-size: 12px; }
.haa-bill-amount { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.haa-bill-amount > strong { font-size: 20px; font-weight: 550; letter-spacing: -.025em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.haa-bill-bottom { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; padding: 15px 24px; border-top: 1px solid #e9edf2; background: #fbfcfd; }
.haa-signatures { display: flex; align-items: center; gap: 10px; }
.haa-signature-dots { display: flex; gap: 4px; }
.haa-signature-dots i { display: block; height: 8px; width: 8px; border: 1px solid #a6b6c6; border-radius: 50%; }
.haa-signature-dots .complete { background: #356958; border-color: #356958; }
.haa-signatures > div { display: grid; gap: 4px; }
.haa-signatures strong { font-size: 12px; font-weight: 500; color: #435970; }
.haa-signatures small { font-size: 11px; color: #7a8897; }
.haa-actions { display: flex; gap: 10px; align-items: center; }
.haa-adjustment-note { padding: 14px 24px; border-top: 1px solid #ede5d6; color: #7a6034; background: #fffaf1; font-size: 12px; }
.haa-adjustment-note p { margin: 5px 0 0; line-height: 1.5; }
.haa-empty { display: flex; align-items: center; flex-direction: column; gap: 12px; padding: 42px 24px; border: 1px dashed #d6e0e8; border-radius: 11px; text-align: center; background: #fafcfd; }
.haa-empty > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #edf3f7; color: #41627b; }
.haa-empty svg { width: 19px; }
.haa-empty h3 { margin: 0; font-size: 18px; font-weight: 550; }
.haa-empty p { max-width: 480px; margin: 0; color: #6c7b8c; font-size: 14px; line-height: 1.6; }
.haa-empty > div { display: flex; gap: 12px; margin-top: 6px; }
.haa-preview { background: #fff; border: 1px solid #dfe5eb; border-radius: 10px; overflow: hidden; }
.haa-preview > header { padding: 20px 22px 12px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.haa-preview h2 { font-size: 17px; font-weight: 550; margin: 0; }
.haa-preview-summary { margin: 0; padding: 0 22px 16px; color: #627689; font-size: 13px; }
.haa-preview-list { border-top: 1px solid #e8edf2; }
.haa-preview-list > button { border: 0; border-bottom: 1px solid #e8edf2; width: 100%; background: white; padding: 16px 22px; display: flex; justify-content: space-between; gap: 20px; cursor: pointer; font: inherit; text-align: left; color: #24384b; }
.haa-preview-list > button:last-child { border-bottom: 0; }
.haa-preview-list > button:hover { background: #f8fafc; }
.haa-preview-list > button > span { display: grid; gap: 5px; }
.haa-preview-list > button > span:last-child { text-align: right; }
.haa-preview-list strong { font-size: 13px; font-weight: 550; }
.haa-preview-list small { font-size: 11px; color: #758496; }
.haa-preview > footer { border-top: 1px solid #e8edf2; padding: 13px 22px; color: #7d8998; font-size: 11px; line-height: 1.6; background: #fafcfd; }
.haa-preview-empty { padding: 12px 22px 24px; }
.haa-preview-empty strong { font-size: 14px; font-weight: 500; color: #466052; }
.haa-preview-empty p { margin: 8px 0 0; color: #6c7b8c; font-size: 13px; }
.haa-adjustment-dialog { display: grid; gap: 22px; }
.haa-adjustment-summary { border: 1px solid #dce4ec; border-radius: 8px; background: #f8fafc; padding: 18px; display: grid; gap: 7px; }
.haa-adjustment-summary strong { font-size: 16px; }
.haa-adjustment-summary span { font-size: 14px; color: #435c74; }
.haa-adjustment-summary small { font-size: 12px; color: #6b7d8f; }
.haa-adjustment-dialog form { display: grid; gap: 16px; }
.haa-adjustment-dialog form > p { font-size: 13px; line-height: 1.6; margin: 0; color: #6c7d8e; }
@media(max-width: 1100px) {
  .haa-bill-main { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 150px; gap: 18px; }
  .haa-bill-amount > strong { font-size: 18px; }
  .haa-totals > div { padding: 0 18px; }
  .haa-totals strong { font-size: 21px; }
}
@media(max-width: 800px) {
  .haa-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 0; }
  .haa-totals > div:nth-child(2) { border-right: 0; }
  .haa-totals > div:nth-child(n+3) { border-top: 1px solid #e1e6ec; padding-top: 18px; }
  .haa-bill-main { grid-template-columns: minmax(0, 1fr) auto; }
  .haa-document { grid-row: 2; grid-column: 1/-1; border-left: 0; border-top: 1px solid #e7ebf0; padding: 14px 0 0; grid-template-columns: 1fr 1fr; align-items: center; }
  .haa-document-label { display: none; }
  .haa-document > .button { grid-column: 2; grid-row: 1/3; justify-self: end; }
  .haa-document > small { grid-column: 1; }
  .haa-heading h1 { font-size: 26px; }
  .haa-queue-toolbar form { flex-basis: 100%; }
}
@media(max-width: 520px) {
  .haa-page { gap: 20px; }
  .haa-heading { flex-direction: column; gap: 12px; }
  .haa-totals strong { font-size: 20px; }
  .haa-totals > div { padding-left: 14px; padding-right: 14px; }
  .haa-totals > div > span { font-size: 12px; }
  .haa-totals small { font-size: 11px; }
  .haa-tabs { width: 100%; }
  .haa-tabs button { flex: 1; justify-content: center; padding: 9px 7px; font-size: 12px; gap: 6px; }
  .haa-bill-main { padding: 18px; grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .haa-bill-amount { grid-row: 2; flex-direction: row; align-items: center; justify-content: space-between; }
  .haa-document { grid-row: 3; }
  .haa-bill-bottom { padding: 16px 18px; }
  .haa-actions { flex: 1 0 100%; justify-content: flex-end; }
  .haa-queue-description { align-items: flex-start; }
  .haa-preview-list > button { padding: 16px 18px; gap: 12px; }
  .haa-preview > header, .haa-preview > footer { padding-left: 18px; padding-right: 18px; }
  .haa-preview h2 { font-size: 16px; }
  .haa-preview-list > button > span:last-child { flex: 0 0 auto; }
}
