/* page styles: agents */
/* Agent pages (approvals, agents, agent_view, agent_inbox, automations, knowledge, rules, data_issues, activity_log, api_settings)
   use plain .card / table.table / .inp markup; these rules (scoped by $content_class = 'agp') give them the v3 look. */
.agp .card:not(.tcard) { padding: 20px 24px; }
.agp .card > h3:first-child { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--text); margin: 0 0 4px; }
.agp .tw-ag { overflow-x: auto; margin: 0 -24px; }
.agp table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.agp table.table th { height: 40px; padding: 0 12px; text-align: left; background: var(--surface-2); border-bottom: 1px solid var(--border); border-top: 1px solid var(--border); color: var(--text-3); font-size: 12px; font-weight: 500; white-space: nowrap; }
.agp table.table td { padding: 12px; border-bottom: 1px solid var(--border); color: var(--text-2); vertical-align: middle; }
.agp table.table th:first-child, .agp table.table td:first-child { padding-left: 24px; }
.agp table.table th:last-child, .agp table.table td:last-child { padding-right: 24px; }
.agp table.table tr:last-child td { border-bottom: 0; }
.agp .inp, .drawer .inp, .modal .inp { width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid var(--border-2); border-radius: var(--r); background: var(--surface); color: var(--text); font: 400 14px/20px var(--font); }
.agp select.inp { width: auto; }
.agp .inp:focus, .drawer .inp:focus, .modal .inp:focus { outline: none; border-color: #F590A7; box-shadow: var(--sh-xs), var(--ring); }
.agp textarea.inp, .drawer textarea.inp, .modal textarea.inp { min-height: 96px; resize: vertical; }
.agp .field .label, .drawer .field .label, .modal .field .label { display: block; margin-bottom: 6px; }
.agp .ag-filter { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.agp .ag-hidden { display: none !important; }
@media (max-width: 860px) {
  .agp .grid.g2, .agp .grid.g3 { grid-template-columns: 1fr !important; }
  .agp .card:not(.tcard) { padding: 16px; }
  .agp .tw-ag { margin: 0 -16px; }
}
