.drawer[open]:has(.wa-history-root){flex-direction:column;display:flex;overflow:hidden}:is(.drawer:has(.wa-history-root)>.modal-header,.drawer:has(.wa-history-root)>.modal-footer){flex-shrink:0}.drawer:has(.wa-history-root)>.modal-footer{display:none}.drawer:has(.wa-history-root)>.deal-summary{display:none}.drawer:has(.wa-history-root) .detail-content{flex-direction:column;flex:1;min-height:0;padding-top:12px;padding-bottom:12px;display:flex}.drawer:has(.wa-history-root) .ops-subnav{flex-shrink:0;margin-bottom:14px}.wa-history-root{flex-direction:column;flex:1;gap:12px;min-width:0;min-height:0;display:flex}.wa-history-root>:not(.wa-history-body),.wa-history-body>:not(.wa-history-scroll){flex-shrink:0}.wa-history-header{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.wa-history-header .section-title{margin-bottom:0}.wa-history-footnote{color:var(--muted);margin:0;font-size:12px;line-height:1.6}.wa-history-filters{flex-wrap:wrap;gap:6px;display:flex}.wa-history-filters button{white-space:normal;text-align:left}.wa-history-filters button[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:var(--page)}.wa-history-mobile-filter{display:none}.wa-history-scroll{overscroll-behavior-y:contain;scrollbar-gutter:stable;border:1px solid var(--border);background:var(--surface);border-radius:12px;flex:1;min-height:80px;padding:12px;overflow-y:auto}.wa-history-scroll:focus-visible{outline:2px solid var(--accent-text);outline-offset:2px}.wa-history-scroll-status{color:var(--muted);justify-content:space-between;align-items:center;gap:8px;font-size:11px;display:flex}.wa-history-scroll-buttons{flex-shrink:0;gap:6px;display:flex}.wa-history-scroll-buttons .button{width:44px;height:44px;padding:0}.wa-history-messages{flex-direction:column;gap:12px;margin:0;padding:0;list-style:none;display:flex}.wa-history-messages li{border:1px solid var(--border);overflow-wrap:anywhere;border-radius:12px;max-width:92%;padding:14px}.wa-history-incoming{background:var(--page);align-self:flex-start}.wa-history-outgoing{background:var(--surface-hover);align-self:flex-end}.wa-history-messageHeader{justify-content:space-between;align-items:baseline;gap:10px;font-size:12px;display:flex}.wa-history-messageHeader span{color:var(--muted);font-size:10px}.wa-history-messages p{white-space:pre-wrap;margin:9px 0 12px;font-size:13px;line-height:1.65}.wa-history-messages footer{color:var(--muted);flex-wrap:wrap;justify-content:space-between;gap:4px 16px;font-size:10px;line-height:1.5;display:flex}.wa-history-empty{text-align:center;border:1px dashed var(--border);color:var(--muted);border-radius:12px;padding:32px 20px}.wa-history-empty svg{margin:0 auto 12px}.wa-history-empty h4{color:var(--ink);margin-bottom:8px}.wa-history-empty p{font-size:13px;line-height:1.6}.wa-history-footnote{border-top:1px solid var(--border);padding-top:14px}@media (max-width:480px){.wa-history-messages li{max-width:96%;padding:12px}.wa-history-filters{display:none}.wa-history-mobile-filter{display:block}.wa-history-mobile-filter select{border:1px solid var(--border);background:var(--page);border-radius:8px;width:100%;min-height:42px;padding:8px;font-size:12px}.wa-history-root{gap:8px}.wa-history-header{gap:6px}.wa-history-scroll{padding:8px}.wa-history-scroll-status span{max-width:48%}.wa-history-footnote{padding-top:8px;font-size:10px}}@media (max-height:640px){.drawer:has(.wa-history-root)>.modal-header{padding-top:10px;padding-bottom:10px}.wa-history-footnote{display:none}.drawer:has(.wa-history-root)>.modal-header .eyebrow{display:none}.drawer:has(.wa-history-root)>.modal-header .muted{display:none}.drawer:has(.wa-history-root)>.modal-footer{padding-top:8px;padding-bottom:8px}.wa-history-header{display:none}}.wa-history-body{flex-direction:column;flex:1;gap:12px;min-height:0;display:flex}.wa-history-scopes{flex-wrap:wrap;gap:6px;display:flex}.wa-history-scopes .button{white-space:normal;text-align:left}.wa-history-scopes [aria-pressed=true]{color:var(--accent-text);border-color:var(--brand);background:var(--danger-bg)}.wa-history-product{border-left:2px solid #d90000;flex-direction:column;gap:3px;padding-left:10px;display:flex}.wa-history-product span,.wa-history-deal-filter>span{color:var(--muted);font-size:10px}.wa-history-product strong{font-size:13px}.wa-history-deal-filter{gap:4px;display:grid}.wa-history-deal-filter select{border:1px solid var(--border);background:var(--page);border-radius:8px;width:100%;min-width:0;min-height:40px;padding:8px;font-size:12px}@media (max-width:480px){.wa-history-body{gap:8px}.wa-history-scopes .button{padding:8px 10px;font-size:11px}}.whatsapp-qr img{max-width:100%;height:auto}.pilot-pending-list{scrollbar-gutter:stable;gap:12px;max-height:260px;display:grid;overflow-y:auto}
