.status-pill.queued { background: #eef0f5; color: #656b79; }
.status-pill.processing { background: #e9efff; color: #3659a8; }
.sort-link.selected { color: var(--ink); }
.selected-row td { background: #f0fbf6 !important; }
.selection-actions { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; }
.secondary-button { border: 1px solid var(--line); border-radius: 9px; padding: 10px 13px; background: #fff; color: var(--ink); font-weight: 700; cursor: pointer; }
.account-panel { max-width: 560px; }
.settings-form small { color: var(--muted); font-weight: 400; }
.alert.success { background: #e7f7f0; color: #15825d; }
.page-alert { margin-bottom: 14px; }
.user-create-panel { margin-bottom: 14px; }
.user-create-form { display: grid; grid-template-columns: 1fr 1.4fr .8fr 1fr 1fr auto; gap: 12px; align-items: end; }
.user-create-form label { display: flex; flex-direction: column; gap: 7px; font-size: 10px; font-weight: 700; }
.user-create-form input, .user-create-form select, .password-reset input { border: 1px solid var(--line); border-radius: 8px; padding: 10px 11px; background: #fff; min-width: 0; }
.password-reset summary { color: var(--accent); font-size: 10px; font-weight: 700; cursor: pointer; }
.password-reset form { display: flex; gap: 7px; margin-top: 8px; min-width: 420px; }
.password-reset input { width: 140px; }
.password-reset .secondary-button { padding: 9px 11px; }
.account-table { min-width: 1150px; }
.history-filters { display: flex; flex-direction: column; gap: 18px; align-items: stretch; }
.history-picker-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.history-picker { min-width: 0; }
.picker-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.picker-head label, .history-metric-row label { font-size: 10px; font-weight: 800; text-transform: uppercase; color: #777c89; letter-spacing: .7px; }
.picker-head label small { font-weight: 400; }
.picker-head > span { color: var(--muted); font-size: 10px; }
.picker-search { width: 100%; margin-bottom: 8px; }
.picker-options { height: 300px; overflow: auto; border: 1px solid var(--line); border-radius: 9px; background: #fff; padding: 6px; transition: opacity .15s; }
.picker-options.loading { opacity: .5; }
.picker-option { display: flex; align-items: flex-start; gap: 9px; padding: 8px 9px; border-radius: 7px; cursor: pointer; font-size: 11px; line-height: 1.35; }
.picker-option[hidden] { display: none !important; }
.picker-option:hover { background: #f5f6f9; }
.picker-option:has(input:checked) { background: #f0fbf6; color: #126b4a; font-weight: 700; }
.picker-option input { margin: 1px 0 0; accent-color: #22a06b; }
.picker-option span { min-width: 0; }
.picker-option small { display: block; margin-top: 2px; color: var(--muted); font-weight: 400; }
.picker-help { display: block; min-height: 15px; margin-top: 7px; color: var(--muted); }
.picker-empty { margin: 0; padding: 26px 15px; text-align: center; color: var(--muted); font-size: 11px; }
.history-metric-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 13px; align-items: end; }
.history-metric-row > div { display: flex; flex-direction: column; gap: 7px; }
.history-metric-row select { width: 100%; }
.history-metric-row .primary-button { height: 42px; }
.coverage-cell:before { display: none; }
.coverage-track { display: block; width: 56px; height: 6px; border-radius: 6px; background: #eceef3; overflow: hidden; flex: 0 0 56px; }
.coverage-track i { position: static; display: block; height: 100%; max-width: none; background: var(--accent); border-radius: 6px; }
.chart-total { text-align: right; }
.chart-total strong, .chart-total small { display: block; }
.chart-total strong { font-size: 18px; }
.chart-total small { margin-top: 4px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.toolbar-actions { display: flex; align-items: center; gap: 12px; }
.email-cell { color: var(--muted); white-space: nowrap; }
.number-cell { width: 42px; color: #9398a5; text-align: right; font-variant-numeric: tabular-nums; }
.activity-summary, .threshold-preview { display: flex; flex-direction: column; gap: 13px; }
.activity-summary > div, .threshold-preview > div { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.activity-summary b, .threshold-preview div { font-size: 11px; }
.activity-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.activity-dot.not_using { background: #a7adb5; }
.activity-dot.no_messages { background: #f2c94c; }
.activity-dot.low { background: #7bc8a4; }
.activity-dot.medium { background: #22a06b; }
.activity-dot.high { background: #126b4a; }
.upload-panel { margin-bottom: 14px; }
.upload-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: stretch; }
.file-drop { border: 1px dashed #cdd1db; border-radius: 11px; padding: 16px; display: flex; flex-direction: column; gap: 7px; background: #fafbfc; }
.file-drop > span { font-weight: 800; }
.file-drop small { color: var(--muted); }
.file-drop input { font-size: 11px; }
.settings-form { display: flex; flex-direction: column; gap: 15px; }
.settings-form label { display: flex; flex-direction: column; gap: 7px; font-size: 11px; font-weight: 700; }
.settings-form input { border: 1px solid var(--line); border-radius: 9px; padding: 11px 13px; }
.activity-badge { display: inline-flex; padding: 5px 8px; border-radius: 999px; font-size: 9px; font-weight: 800; }
.activity-badge.not_using { background: #eef0f2; color: #69707a; }
.activity-badge.no_messages { background: #fff6cf; color: #765f00; }
.activity-badge.low { background: #e7f6ef; color: #27795a; }
.activity-badge.medium { background: #d9f3e8; color: #176d4d; }
.activity-badge.high { background: #ccebdd; color: #0c593e; }
.pagination { display: flex; gap: 7px; justify-content: center; margin-top: 14px; }
.pagination a { padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.pagination a.active { background: var(--ink); color: #fff; }
.table-scroll input[type="checkbox"] { accent-color: #22a06b; }
.filter-head { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.column-filter { position: relative; }
.column-filter summary { list-style: none; width: 22px; height: 22px; border: 1px solid #d9dce4; border-radius: 5px; display: grid; place-items: center; background: #fff; color: #717784; cursor: pointer; font-size: 13px; }
.column-filter summary::-webkit-details-marker { display: none; }
.column-filter.active summary, .column-filter[open] summary { color: #fff; background: #22a06b; border-color: #22a06b; }
.filter-menu { position: absolute; z-index: 30; top: 28px; right: 0; width: 220px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 14px 40px rgba(29,33,48,.16); display: flex; flex-direction: column; gap: 10px; text-transform: none; letter-spacing: 0; color: var(--ink); }
.filter-menu label { display: flex; flex-direction: column; gap: 5px; font-size: 10px; color: var(--muted); }
.filter-menu input { width: 100%; border: 1px solid var(--line); border-radius: 7px; padding: 8px 9px; outline: none; }
.filter-apply { border: 0; border-radius: 7px; padding: 9px 11px; background: var(--ink); color: #fff; font-weight: 700; cursor: pointer; }
.users-filter-form { align-items: center; }
.user-multiselect { position: relative; min-width: 190px; }
.user-multiselect > summary { list-style: none; border: 1px solid var(--line); border-radius: 9px; padding: 11px 13px; background: #fff; cursor: pointer; white-space: nowrap; }
.user-multiselect > summary::-webkit-details-marker { display: none; }
.user-multiselect > summary:after { content: "▾"; float: right; margin-left: 16px; color: var(--muted); }
.user-multiselect[open] > summary { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(105,86,232,.1); }
.user-multiselect-menu { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; width: 320px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 14px 40px rgba(29,33,48,.16); }
.group-multiselect .user-multiselect-menu { width: 240px; }
.user-multiselect-options { max-height: 280px; overflow: auto; }
.user-multiselect input[type="checkbox"] { width: auto; }
.user-multiselect-menu .picker-search { width: 100%; }
.office-detail-header { align-items: flex-end; }
.office-detail-header .back-link { margin-bottom: 18px; }
.office-detail-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.office-detail-values { display: flex; flex-direction: column; gap: 10px; }
.office-detail-values > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.office-detail-values span { color: var(--muted); font-size: 11px; }
.office-detail-values strong { font-size: 17px; }
.office-chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.office-history-panel { margin-bottom: 14px; }
.department-panel { margin-bottom: 14px; }
.office-history-table { min-width: 1880px; }
@media (max-width: 760px) {
  .upload-form { grid-template-columns: 1fr; }
  .user-create-form { grid-template-columns: 1fr; }
  .history-picker-grid, .history-metric-row { grid-template-columns: 1fr; }
  .selection-actions { align-items: stretch; flex-direction: column; }
  .user-multiselect { width: 100%; }
  .user-multiselect-menu { position: static; width: 100%; margin-top: 6px; }
  .group-multiselect .user-multiselect-menu { width: 100%; }
  .office-detail-summary, .office-chart-grid { grid-template-columns: 1fr; }
}
