/* Scoped addition: preserve existing private-domain menus and Facebook UI. */
[hidden] { display:none !important; }
.menu .wa-nav,.menu #facebook-nav { border:0; padding:0; background:none; text-align:left; font-size:12px; color:inherit; }
.menu .wa-nav.current,.menu #facebook-nav.current { color:var(--deep); }
.wa-icon,.wa-empty-icon { display:grid; place-items:center; background:#e9f7ef; color:#24905a; font-size:18px; font-weight:700; width:28px; height:28px; border-radius:7px; }
.wa-scope { background:#fafbfc; border:1px solid var(--line); border-radius:4px; padding:11px 14px; color:#7d8592; font-size:12px; margin-bottom:22px; }
.wa-filter-bar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:0 0 18px; }
.wa-filter-bar input { width:280px; }
.wa-filter-bar select { width:140px; }
.wa-filter-bar #wa-count { margin-left:auto; font-size:12px; color:var(--muted); }
#wa-table { min-height:340px; }
.wa-table { min-width:900px; width:100%; }
.wa-table th:first-child { width:19%; }
.wa-table th:nth-child(2) { width:19%; }
.wa-table th:nth-child(3) { width:9%; }
.wa-table th:nth-child(4) { width:20%; }
.wa-table td { white-space:normal; overflow-wrap:anywhere; }
.wa-table td strong { font-weight:500; }
.wa-table .wa-note { max-width:250px; white-space:pre-wrap; }
.wa-actions { display:flex; gap:14px; }
.wa-actions button { padding:0; }
.wa-danger { color:var(--red); }
.wa-empty { min-height:315px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:13px; color:#505865; }
.wa-empty .wa-empty-icon { width:48px; height:48px; font-size:27px; margin-bottom:3px; }
.wa-empty p { font-size:12px; color:var(--muted); }
.wa-form { display:flex; flex-direction:column; gap:8px; }
.wa-form label { font-weight:500; margin-top:12px; }
.wa-form label:first-child { margin-top:0; }
.wa-form em { color:var(--red); font-style:normal; }
.wa-form input { height:38px; width:100%; }
.wa-form small { font-size:12px; color:var(--muted); }
.wa-form .wa-phone { display:grid; grid-template-columns:115px minmax(0,1fr); gap:10px; }
.wa-form textarea { font:inherit; padding:10px; width:100%; border:1px solid #dfe3e9; border-radius:4px; resize:vertical; }
.wa-form textarea:focus { outline:1px solid var(--orange); }
.wa-note-count { text-align:right; }
.wa-form-tip { padding:10px 12px; background:#fff8ee; color:#9d7139; border-radius:4px; font-size:12px; }
.wa-error { color:#c84e48; font-size:12px; padding:10px 0; }
.wa-confirm-note { color:var(--muted); margin-top:12px; font-size:12px; }
.wa-delete-button { background:#dc645e; border-color:#dc645e; color:white; }
.wa-delete-button:hover:not(:disabled) { background:#c9514b; }
@media(max-width:900px) { .wa-filter-bar #wa-count { width:100%;margin-left:0; } }
/* Searchable calling-code combobox; phone number remains an independent field. */
.wa-form .wa-phone { grid-template-columns:132px minmax(0,1fr); }
.wa-code-picker { position:relative; min-width:0; }
.wa-code-control { position:relative; }
.wa-code-control #wa-code-search { padding-right:30px; }
.wa-code-control #wa-code-toggle { position:absolute; right:1px; top:1px; bottom:1px; width:29px; border:0; background:transparent; padding:0; color:#9299a5; }
.wa-code-dropdown { position:absolute; top:calc(100% + 5px); left:0; width:300px; max-width:calc(100vw - 90px); z-index:20; background:white; border:1px solid #e4e7ed; border-radius:5px; box-shadow:0 5px 20px #1d293921; overflow:hidden; }
.wa-code-hint { padding:9px 12px; color:var(--muted); font-size:12px; border-bottom:1px solid var(--line); }
#wa-code-options { max-height:205px; overflow-y:auto; overscroll-behavior:contain; }
.wa-code-option { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:9px 12px; cursor:pointer; line-height:20px; }
.wa-code-option.highlighted,.wa-code-option:hover { background:#fff5e9; }
.wa-code-option[aria-selected=true] { color:var(--deep); font-weight:600; }
.wa-code-option .mono { flex-shrink:0; }
.wa-code-empty { padding:20px 12px; color:var(--muted); font-size:12px; text-align:center; }

/* Keep all implemented local pages available in the top shortcut bar. */
.work-tabs .local-page-link { padding:6px 19px; font-size:12px; background:#f0f2f6; color:#717985; border-radius:3px; text-decoration:none; white-space:nowrap; }
.work-tabs .local-page-link:hover { background:#fff0de; color:var(--deep); }

/* Account/group association column uses the same compact list rhythm. */
.wa-table th:first-child{width:17%}.wa-table th:nth-child(2){width:17%}.wa-table th:nth-child(3){width:8%}.wa-table th:nth-child(4){width:9%}.wa-table th:nth-child(5){width:17%}.wa-table th:nth-child(6){width:18%}.wa-table th:nth-child(7){width:14%}

/* Greeting belongs to the account, and is reused by every linked group. */
.wa-table{min-width:1120px}.wa-table th{width:auto!important}.wa-table .wa-greeting{max-width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.wa-table th:last-child{min-width:150px}

.wa-form .wa-phone { align-items:start; }
.wa-form #wa-phone { min-width:0; }
