/* speedbird.io /admin/contacts/ outreach contacts editor (build.py APP_PAGES / APP_CSS) */
main.sb-app { max-width: 1680px; }
.sb-app .cx-bar, .sb-app .cx-bulk { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; }
.sb-app .cx-bar input[type=search] { flex: 1 1 260px; min-width: 0; max-width: none; margin: 0; }
.sb-app .cx-bar select, .sb-app .cx-bulk select, .sb-app .cx-bulk input { width: auto; max-width: 100%; margin: 0; }
.sb-app .cx-bar button, .sb-app .cx-bulk button { margin: 0; }
.sb-app .cx-bulk { padding: 8px 10px; border: 1px solid var(--sb-accent); border-radius: 8px; background: var(--sb-card); position: sticky; top: 0; z-index: 3; }
.sb-app .cx-cols { position: relative; }
.sb-app .cx-cols summary { cursor: pointer; padding: 6px 10px; border: 1px solid var(--sb-line); border-radius: 6px; list-style: none; }
.sb-app .cx-cols summary::-webkit-details-marker { display: none; }
.sb-app .cx-cols[open] > div { position: absolute; z-index: 5; top: calc(100% + 4px); left: 0; min-width: 200px; padding: 8px 12px;
  background: var(--sb-card); border: 1px solid var(--sb-line); border-radius: 8px; box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.sb-app .cx-cols label, .sb-app .cx-pop label { display: flex; gap: 8px; align-items: center; font-weight: 400; margin: 3px 0; white-space: nowrap; }
.sb-app .cx-cols input, .sb-app .cx-pop input, .sb-app .cx-ck input { width: auto; margin: 0; }
.sb-app .cx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 16px; }

.sb-app .cx-wrap { overflow: auto; max-height: 75vh; border: 1px solid var(--sb-line); border-radius: 8px; }
.sb-app .cx-tbl { border-collapse: separate; border-spacing: 0; width: max-content; min-width: 100%; font-size: .9rem; margin: 0; }
.sb-app .cx-tbl th, .sb-app .cx-tbl td { border-bottom: 1px solid var(--sb-line); padding: 5px 8px; text-align: left; vertical-align: top; }
.sb-app .cx-tbl thead th { position: sticky; top: 0; z-index: 2; background: var(--sb-code); white-space: nowrap; }
.sb-app .cx-tbl .cx-ck { position: sticky; left: 0; z-index: 1; background: var(--sb-card); width: 28px; }
.sb-app .cx-tbl thead .cx-ck { z-index: 3; background: var(--sb-code); }
.sb-app .cx-sort { all: unset; cursor: pointer; font-weight: 600; }
.sb-app .cx-sort:focus-visible { outline: 2px solid var(--sb-focus); outline-offset: 2px; }
.sb-app .cx-cell { cursor: text; max-width: 260px; min-width: 60px; overflow-wrap: anywhere; position: relative; }
.sb-app .cx-cell.cx-wide { max-width: 380px; white-space: pre-wrap; }
.sb-app .cx-cell:hover { background: color-mix(in srgb, var(--sb-accent) 7%, transparent); }
.sb-app .cx-cell:focus { outline: 2px solid var(--sb-focus); outline-offset: -2px; }
.sb-app .cx-cell .badge { margin: 1px 4px 1px 0; }
.sb-app .cx-input { width: 100%; min-width: 160px; margin: 0; padding: 4px 6px; font: inherit; }
.sb-app .cx-saving { opacity: .55; }
.sb-app .cx-bad { outline: 2px solid var(--sb-bad); outline-offset: -2px; }
.sb-app .cx-act { white-space: nowrap; }
.sb-app .cx-mini { margin: 0 4px 0 0; padding: 2px 8px; font-size: .8rem; }
.sb-app .cx-pop { position: absolute; z-index: 4; top: 100%; left: 0; min-width: 240px; padding: 8px 12px; cursor: default;
  background: var(--sb-card); border: 1px solid var(--sb-line); border-radius: 8px; box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.sb-app .cx-pop .btn-row { margin: 8px 0 0; }
@media (max-width: 640px) { .sb-app .cx-wrap { max-height: none; } }
.sb-app .cx-cell[data-k=labels], .sb-app .cx-cell[data-k=lists] { min-width: 200px; max-width: 440px; line-height: 1.9; }
.sb-app .cx-cell[data-k=labels] .badge, .sb-app .cx-cell[data-k=lists] .badge { white-space: nowrap; font-size: .72rem; padding: 0 6px; }
.sb-app .cx-groups summary { cursor: pointer; }
.sb-app .cx-groups .cx-bar input[type=text] { flex: 1 1 220px; width: auto; margin: 0; }
.sb-app .cx-gtbl td { vertical-align: middle; }
