.wa-page { min-width: 0; }
.wa-page-heading, .wa-detail-heading { display: flex; align-items: center; gap: 12px; }
.wa-page-heading { align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }
.wa-page-heading h1 { margin: 0; font-size: 27px; line-height: 1.35; letter-spacing: 0; }
.wa-page-heading p { margin: 6px 0 0; color: #61716a; font-size: 13px; }
.wa-page-heading > .wa-badge { margin-top: 4px; }
.wa-panel { padding: 0; min-width: 0; }
.wa-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line, #e4ece7); }
.wa-filters label { display: grid; gap: 4px; color: #40534a; font-size: 12px; font-weight: 600; min-width: 0; }
.wa-filters label:first-child { flex: 1 1 205px; max-width: 370px; }
.wa-filters .wa-choice { flex: 1 1 115px; max-width: 220px; }
.wa-filters input, .wa-filters select, .wa-page-size select, .wa-button { min-height: 36px; border: 1px solid #cfdcd4; border-radius: 8px; padding: 6px 10px; color: #243c31; background: #fff; font: inherit; }
.wa-filters input, .wa-filters select { font-size: 13px; width: 100%; min-width: 0; text-overflow: ellipsis; }
.wa-button { font-size: 12px; font-weight: 600; white-space: nowrap; }
.wa-button:hover:not(:disabled) { background: #f2f7f4; }
.wa-button:disabled { opacity: .45; cursor: default; }
.wa-primary, .wa-primary:hover:not(:disabled) { background: #007b61; border-color: #007b61; color: #fff; }
.wa-primary:hover:not(:disabled) { background: #006b54; }
.wa-page :is(button, input, select):focus-visible, .wa-detail button:focus-visible { outline: 2px solid #00876a; outline-offset: 2px; }
.wa-table-scroll { overflow-x: auto; }
.wa-table { width: 100%; min-width: 680px; border-collapse: collapse; text-align: left; font-size: 13px; }
.wa-table :is(th, td) { padding: 11px 12px; border-bottom: 1px solid var(--line, #e4ece7); }
.wa-table :is(th, td):first-child { padding-left: 20px; }
.wa-table :is(th, td):last-child { padding-right: 20px; white-space: nowrap; }
.wa-table thead { background: #f6f9f7; color: #465a50; }
.wa-table tbody th { min-width: 130px; max-width: 265px; overflow-wrap: anywhere; }
.wa-number { max-width: 210px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.wa-time { white-space: nowrap; font-variant-numeric: tabular-nums; }
.wa-link { background: transparent; color: #00765d; padding: 4px 0; font: inherit; font-weight: 600; }
.wa-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.wa-badge { display: inline-block; border-radius: 6px; padding: 3px 7px; font-size: 11px; font-weight: 650; white-space: nowrap; }
.wa-success { color: #086044; background: #e4f4eb; }
.wa-pending { color: #805718; background: #fff3d6; }
.wa-danger { color: #a03939; background: #fbe9e8; }
.wa-neutral { color: #4c5c54; background: #edf1ef; }
.wa-muted { color: #61716a; font-size: 12px; }
.wa-feedback { min-height: 120px; padding: 18px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; align-content: center; gap: 10px; font-size: 13px; color: #566860; }
.wa-feedback-error { color: #973737; }
.wa-pagination { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 20px; color: #61716a; font-size: 12px; }
.wa-pagination div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wa-page-size { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.wa-page-size select { min-width: 76px; }
.wa-detail { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.wa-detail-heading { flex-wrap: wrap; }
.wa-detail :is(h3, h4, h5, p, dl, dd, ol, ul) { margin: 0; }
.wa-detail h3 { font-size: 18px; overflow-wrap: anywhere; }
.wa-detail h4 { margin-bottom: 10px; font-size: 14px; }
.wa-detail-section { min-width: 0; padding-top: 14px; border-top: 1px solid var(--line, #e4ece7); }
.wa-form-fields > div { display: grid; grid-template-columns: minmax(76px, 25%) minmax(0, 1fr); align-items: baseline; gap: 10px; padding: 8px 0; font-size: 13px; border-bottom: 1px solid var(--line, #e4ece7); }
.wa-form-fields > div:last-child { border-bottom: 0; }
.wa-fields dt { color: #61716a; overflow-wrap: anywhere; }
.wa-fields dd { min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.wa-form-table, .wa-timeline, .wa-actors { padding: 0; list-style: none; }
.wa-form-table { display: grid; gap: 8px; }
.wa-form-table > li { padding: 8px 12px; border-radius: 6px; background: #f6f9f7; }
.wa-form-row-heading { font-size: 12px; font-weight: 650; }
.wa-form-table .wa-fields > div { display: grid; grid-template-columns: minmax(66px, 27%) minmax(0, 1fr); gap: 8px; padding-top: 5px; }
.wa-timeline-node { --wa-rail: #dce7e0; --wa-dot: #879990; position: relative; padding: 0 0 16px 25px; min-width: 0; }
.wa-timeline-node:last-child { padding-bottom: 0; }
.wa-timeline-node:not(:last-child)::before { content: ''; position: absolute; top: 13px; bottom: -11px; left: 5px; width: 2px; background: var(--wa-rail); }
.wa-timeline-node::after { content: ''; position: absolute; top: 7px; left: 0; box-sizing: border-box; width: 12px; height: 12px; border: 2px solid var(--wa-dot); border-radius: 50%; background: #fff; }
.wa-node-success { --wa-dot: #118363; }
.wa-node-pending { --wa-dot: #ab741a; }
.wa-node-danger { --wa-dot: #b74c4c; }
.wa-node-heading { display: flex; min-height: 26px; flex-wrap: wrap; align-items: center; column-gap: 8px; row-gap: 4px; margin-bottom: 6px; }
.wa-node-heading h5 { font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.wa-node-relation { color: #61716a; font-size: 11px; }
.wa-actors { display: grid; gap: 6px; }
.wa-actor-card { display: flex; align-items: flex-start; gap: 9px; min-width: 0; padding: 8px 10px; border: 1px solid #e5ede8; border-radius: 7px; background: #fafcfb; }
.wa-avatar { display: grid; position: relative; flex: 0 0 36px; width: 36px; height: 36px; place-items: center; border-radius: 6px; overflow: hidden; color: #536c60; background: #e2eae5; }
.wa-avatar img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.wa-node-cc .wa-actors { display: flex; flex-wrap: wrap; }
.wa-node-cc .wa-actor-card { max-width: 100%; }
.wa-actor-body { flex: 1; min-width: 0; align-self: center; }
.wa-actor-heading { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; row-gap: 3px; overflow-wrap: anywhere; }
.wa-actor-heading strong { font-size: 13px; }
.wa-actor-time { color: #61716a; font-size: 11px; font-variant-numeric: tabular-nums; }
.wa-detail .wa-actor-comment { margin-top: 4px; color: #41534b; font-size: 12px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.wa-detail-footer { display: flex; justify-content: flex-end; }
.wa-bank { padding: 10px 12px; border-radius: 8px; background: #f2f6f3; }
.wa-bank > div { display: grid; grid-template-columns: minmax(64px, 22%) minmax(0, 1fr); align-items: baseline; gap: 8px; padding: 3px 0; }
.wa-attachments { display: grid; gap: 6px; padding: 0; list-style: none; }
.wa-attachment { min-width: 0; padding: 6px 10px; background: #f2f6f3; border-radius: 8px; }
.wa-attachment-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.wa-attachment-name { min-width: 0; overflow-wrap: anywhere; }
.wa-attachment-heading small { color: #61716a; }
.wa-attachment-actions { display: inline-flex; gap: 10px; margin-left: auto; }
.wa-attachment-preview { display: block; max-width: 100%; max-height: 440px; margin-top: 7px; object-fit: contain; border-radius: 5px; }
.wa-sidebar-status { padding: 9px 11px; margin: 0 3px 12px; border: 1px solid #e0e9e3; border-radius: 8px; background: #f7faf8; line-height: 1.45; }
.wa-sidebar-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px; color: #40534a; font-size: 12px; }
.wa-sidebar-heading strong { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: #52655b; }
.wa-sidebar-heading i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.wa-sidebar-heading .wa-callback-normal { color: #08724f; }
.wa-sidebar-heading .wa-callback-stale { color: #a43b3b; }
.wa-sidebar-heading .wa-callback-waiting { color: #845b13; }
.wa-sidebar-status p { margin: 3px 0 0; color: #61716a; font-size: 10px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  .wa-page-heading h1 { font-size: 23px; }
  .wa-filters, .wa-pagination { padding-inline: 12px; }
  .wa-filters label:first-child { flex-basis: 100%; max-width: none; }
  .wa-table :is(th, td):first-child { padding-left: 12px; }
}
