
/* moderation + tickets */
.pg-mod-tabs { display:flex !important; gap:4px; flex-wrap:wrap; margin:0 !important; padding:0 !important; background:none !important; border:0 !important; border-bottom:1px solid rgba(255,255,255,.08) !important; border-radius:0 !important; overflow-x:auto; }
.pg-mod-tabs .rbg-tab-btn { background:none !important; border:0 !important; border-bottom:2px solid transparent !important; border-radius:0 !important; box-shadow:none !important; padding:12px 16px !important; color:#b4b9cb !important; white-space:nowrap; }
.pg-mod-tabs .rbg-tab-btn.active { color:#fff !important; border-bottom-color:#ff7a18 !important; }
.pg-mod-words { min-height:0 !important; max-height:120px; }
.pg-mod-rules { display:grid; }
.pg-mod-rule { display:grid; grid-template-columns:auto minmax(0,1fr) minmax(0,1.5fr); gap:16px; align-items:center; padding:12px 0; border-bottom:1px solid rgba(255,255,255,.06); }
.pg-mod-rule:last-child { border-bottom:0; }
.pg-mod-rule-name strong { display:block; }
.pg-mod-rule-name small { color:#b4b9cb; font-size:.84rem; }
.pg-mod-rule-ctl { display:flex; gap:10px; align-items:flex-end; flex-wrap:wrap; }
.pg-mod-rule-ctl > * { flex:1 1 120px; min-width:0; }
.pg-mod-param label { margin-top:0 !important; font-size:.75rem; }
.pg-mod-rule-ctl select, .pg-mod-rule-ctl input { width:100%; }
.pg-mod-esc { grid-template-columns:repeat(4,minmax(0,1fr)) 42px; }
.pg-mod-events { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 16px; }
.pg-mod-cmds, .pg-tk-cmds { border-bottom:0; }
.pg-form .pg-actions button, .pg-actions button { width:auto; }
.pg-tk-list { display:grid; gap:0; }
.pg-tk-row { display:flex !important; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; padding:14px 0 !important; margin:0 !important; background:none !important; border:0 !important; border-bottom:1px solid rgba(255,255,255,.06) !important; border-radius:0 !important; box-shadow:none !important; }
.pg-tk-row p { margin:4px 0 0; }
.pg-tk-row .danger { background:rgba(255,80,80,.12) !important; color:#ff8a8a !important; box-shadow:none !important; border:1px solid rgba(255,80,80,.3) !important; }
.pg-tk-preview { margin-top:16px; background:none !important; box-shadow:none !important; position:static !important; }
@media (max-width:900px){
  .pg-mod-rule { grid-template-columns:auto minmax(0,1fr); }
  .pg-mod-rule-ctl { grid-column:1 / -1; }
  .pg-mod-esc { grid-template-columns:1fr 1fr 42px; }
  .pg-mod-esc > div:nth-child(3), .pg-mod-esc > div:nth-child(4) { grid-column:auto; }
  .pg-mod-events { grid-template-columns:1fr; }
}
.pg-tk .media-grid > div, .pg-tk-preview { border:0 !important; background:none !important; padding:0 !important; box-shadow:none !important; }

@media (min-width: 701px) { select[name$="_action"] { min-width: 175px !important; } }
select[name="esc_action"] { min-width: 0 !important; }
