/* Account tags: the panel, the Targeting review queue and the Accounts filters. */
.at-muted { color: var(--muted); font-size: 13px; }
.at-warn { color: #8a4b00; font-size: 12px; font-weight: 600; }
.at-message { color: #a4262c; min-height: 1em; }
[data-at-q-message] { color: var(--ink); }
.at-chip { display: inline-block; border: 1px dashed #8a8a8a; border-radius: 12px; padding: 2px 8px; margin: 2px 0; font-size: 12px; background: var(--surface); }
.at-chip em { color: var(--muted); font-style: normal; font-size: 11px; }
.at-chip.at-confirmed { border-style: solid; border-color: var(--blue); background: var(--blue-soft); }
.at-chip.at-rejected { text-decoration: line-through; color: var(--muted); }
.at-panel { border: 1px solid var(--line); border-radius: 6px; padding: 12px 16px; background: var(--surface); }
.at-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.at-status { font-weight: 600; }
.at-tags { list-style: none; margin: 0; padding: 0; }
.at-tags li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.at-actions { display: inline-flex; gap: 6px; }
.at-profile { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; margin: 12px 0; }
.at-profile .at-wide { grid-column: 1 / -1; }
.at-history { font-size: 12px; color: var(--muted); }
.at-account-host { margin: 12px 0; }
#accountPanel#accountPanel.account-kanban-mode #accountTagsHost,
#accountPanel.account-form-mode #accountTagFilters,
#accountPanel.account-kanban-mode #accountTagFilters { display: none; }
.at-bulk { display: flex; flex-direction: row-reverse; gap: 12px; align-items: center; margin: 10px 0 8px; }
.at-layout { display: flex; gap: 16px; align-items: flex-start; }
.at-layout > .table-wrap { flex: 1; min-width: 0; overflow: auto; }
.at-table td { vertical-align: top; }
.at-side { width: 440px; max-width: 100%; flex: none; max-height: calc(100vh - 220px); overflow: auto; }
.at-side-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.at-paging { display: flex; gap: 12px; align-items: center; margin: 8px 0; }
.at-dialog { width: min(640px, 92vw); border: 1px solid var(--line); border-radius: 8px; }
.at-dialog-body { max-height: 55vh; overflow: auto; }
@media (max-width: 900px) { .at-layout { flex-direction: column; } .at-side { width: 100%; max-height: none; } }

/* Same label, control and spacing sizes as the rest of the app (styles.css). */
.at-panel h3 { margin: 0; font-size: 1.1rem; }
.at-panel section .section-title { margin: 12px 0 6px; }
.at-add { display: flex; gap: 8px; margin-top: 6px; align-items: center; }
.at-add .at-combo { flex: 0 1 380px; }
.at-add button:disabled { opacity: 0.5; cursor: default; }
.at-filters .at-field { flex: 2 1 180px; min-width: 0; }
.at-filters > label { flex: 1 1 96px !important; min-width: 0; }
.at-filters > label select, .at-filters > label input { width: 100%; min-width: 0; }
.at-filters .filter-actions { flex: none; }
.at-field { display: grid; gap: 4px; font-size: 0.92rem; color: var(--muted); }
.at-table .table-link { text-align: left; font-weight: 600; }

/* Searchable tag picker (ui/tag-combo.js) */
.at-combo { position: relative; display: flex; min-width: 0; }
.at-combo input { flex: 1; min-width: 0; border-radius: 4px 0 0 4px; }
.at-combo .at-combo-toggle { border-radius: 0 4px 4px 0; border-left: 0; padding: 7px 10px; }
.at-combo ul { position: absolute; z-index: 40; top: calc(100% + 2px); left: 0; right: 0; max-height: 260px; overflow-y: auto; margin: 0; padding: 4px 0; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14); }
.at-combo ul[hidden] { display: none; }
.at-combo li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 10px; cursor: pointer; color: var(--ink); font-size: 0.92rem; }
.at-combo li small { color: var(--muted); white-space: nowrap; }
.at-combo li.active, .at-combo li[data-index]:hover { background: var(--blue-soft); }
.at-combo li.at-combo-empty { cursor: default; color: var(--muted); }

.at-approve { background: #0f549f; border-color: #0f549f; color: #fff; font-weight: 600; }
.at-approve:hover { background: #0d4789; color: #fff; }
.at-approved { color: #1d6b32; font-weight: 600; background: #eef8f0; border: 1px solid #b9dfc3; border-radius: 4px; padding: 8px 10px; }
.at-tick { color: #1d6b32; font-weight: 700; }
.at-message:empty { min-height: 0; margin: 0; }

/* The Accounts "Tags" button looks like the Filter and Views buttons beside it. */
.at-account-host[hidden], .at-tags-wrap[hidden], .at-filter-pop[hidden] { display: none; }
.at-tags-wrap { position: relative; }
#accountTagFilterBtn { min-height: 38px; padding: 8px 12px; border: 1px solid #cfd8e3; border-radius: 8px; background: #fff; color: #223142; font: inherit; font-weight: 600; }
#accountTagFilterBtn:hover { background: #f7fbff; }
#accountTagFilterBtn[aria-expanded="true"] { background: #eef4fb; border-color: #9fb9d8; }
.at-filter-pop { position: absolute; z-index: 35; right: 0; top: calc(100% + 6px); width: min(340px, 90vw); display: grid; gap: 10px; padding: 14px; background: var(--surface); border: 1px solid #cfd8e3; border-radius: 8px; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16); }
.at-filter-pop label.at-check { display: flex; align-items: center; gap: 8px; margin: 0; }
.at-filter-pop label.at-check input { width: 16px; height: 16px; min-height: 0; margin: 0; padding: 0; flex: none; }
.at-filter-pop .filter-actions { justify-content: flex-end; }
