/* Consola Admin, faza 2: roluri, Aplicații › Mail, suspendare, grupuri și domenii în stilul Google.
   Folosește jetoanele --ag-* din admin-console.css (și varianta lor întunecată). */
:root { --ag-warn: #b06000; --ag-warn-bg: #fef7e0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ag-warn: #fdd663; --ag-warn-bg: #3c3420; } }
:root[data-theme="dark"] { --ag-warn: #fdd663; --ag-warn-bg: #3c3420; }

.ag-status-off { color: var(--ag-danger); font-size: 12px; margin-top: 8px !important; }
td.ag-status-off { font-size: 13px; font-weight: 500; }
.ag-ok { color: var(--ag-ok); }
.ag-bad { color: var(--ag-danger); font-weight: 500; }
.ag-mono { font-family: "Roboto Mono", Consolas, monospace; font-size: 12px; }
.ag-strong-link { color: var(--ag-link); font-size: 14px; text-decoration: none; }
.ag-strong-link:hover { text-decoration: underline; }
.ag-link--danger { color: var(--ag-danger) !important; }

/* banner deasupra paginii (utilizator suspendat) */
.ag-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 24px; border-radius: 2px; font-size: 14px; }
.ag-banner--warn { background: var(--ag-warn-bg); color: var(--ag-warn); box-shadow: var(--ag-shadow); }

/* pilule de stare */
.ag-pill.is-warn { background: var(--ag-warn-bg); color: var(--ag-warn); }
.ag-pill.is-bad { background: color-mix(in srgb, var(--ag-danger) 16%, transparent); color: var(--ag-danger); }

/* avatarul unui grup / domeniu */
.ag-group-avatar { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--ag-nav-on); color: var(--ag-nav-on-text); }
.ag-group-avatar.is-large { width: 48px; height: 48px; }

/* tabele fără clic pe rând; tabel în tabel; rânduri problemă */
.ag-table--static tbody tr { cursor: default; }
.ag-table--static tbody tr:hover { background: none; }
.ag-table--inner { margin: 8px 0; background: var(--ag-panel); }
.ag-table--inner th, .ag-table--inner td { height: 36px; }
.ag-row-bad td { color: var(--ag-danger); }
.ag-dns-value { word-break: break-all; max-width: 520px; }
.ag-table-scroll--tall { max-height: 420px; overflow-y: auto; }
.ag-row-btn.is-visible { display: inline-block; }

/* rândul deschis din coadă / rapoarte */
.ag-queue-detail > td { height: auto !important; padding: 12px 32px 16px !important; background: var(--ag-hover); cursor: default; }
.ag-queue-detail .ag-list li { padding: 6px 0; }
.ag-queue-actions { display: flex; gap: 24px; margin-top: 8px; }

/* cifrele mari din rapoartele DMARC */
.ag-stats { display: flex; gap: 48px; flex-wrap: wrap; margin: 4px 0 12px; }
.ag-stats > div { display: flex; flex-direction: column; gap: 2px; }
.ag-stats strong { font: 400 28px/36px "Google Sans", Roboto, Arial, sans-serif; }
.ag-stats span { font-size: 13px; color: var(--ag-muted); }

/* comutator (setări de spam) */
.ag-setting input.ag-switch { appearance: none; width: 36px; height: 14px; padding: 0; border: 0; border-radius: 7px; background: var(--ag-line); position: relative; cursor: pointer; flex: none; }
.ag-setting input.ag-switch::after { content: ""; position: absolute; top: -3px; left: -2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #0006; transition: left .15s; }
.ag-setting input.ag-switch:checked { background: color-mix(in srgb, var(--ag-link) 50%, transparent); }
.ag-setting input.ag-switch:checked::after { left: 18px; background: var(--ag-link); }
.ag-setting input.ag-switch:focus-visible { outline: 2px solid var(--ag-link); outline-offset: 4px; }

/* privilegiile unui rol */
.ag-priv { display: flex; flex-direction: column; border-top: 1px solid var(--ag-line); }
.ag-priv-area { border-bottom: 1px solid var(--ag-line); }
.ag-priv-head { display: flex; align-items: center; gap: 16px; min-height: 52px; padding: 0 4px 0 8px; cursor: pointer; }
.ag-priv-head:hover { background: var(--ag-hover); }
.ag-priv-head strong { font-weight: 500; font-size: 14px; }
.ag-priv-count { margin-left: auto; font-size: 13px; }
.ag-priv-head .ag-icon-btn.is-open svg { transform: rotate(180deg); }
.ag-priv input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--ag-link); cursor: pointer; }
.ag-priv input[type="checkbox"]:disabled { cursor: default; opacity: .7; }
.ag-priv-body { padding: 0 8px 12px 42px; }
.ag-priv-body > p { margin: 0 0 8px; font-size: 13px; }
.ag-priv-table tbody tr { cursor: default; }
.ag-priv-table th, .ag-priv-table td { height: 40px; }
.ag-priv-cell { text-align: center !important; width: 96px; }
.ag-priv-all { display: inline-flex; align-items: center; gap: 8px; }

@media (max-width: 900px) {
  .ag-priv-body { padding-left: 8px; }
  .ag-priv-cell { width: 64px; }
  .ag-stats { gap: 24px; }
}
