/* tenderx.css - small additions on top of app.css / layout.css (and auth.css
   on the sign-in layout). Keep page-specific styles in the view. */

body { font-family: 'Inter', 'Source Sans Pro', system-ui, -apple-system, 'Segoe UI', sans-serif; }

/* ── Page header ─────────────────────────────────────────────────── */
.tx-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.tx-page-head h1 { font-size: 1.45rem; font-weight: 700; color: var(--dk-ink, #16233f); letter-spacing: -.2px; }
.tx-page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tx-crumbs { background: none; padding: 0; margin: 0 0 4px; font-size: 12px; }
.tx-crumbs .breadcrumb-item a { color: var(--dk-muted, #62708c); }

/* ── Avatar initials ─────────────────────────────────────────────── */
.tx-avatar { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #1a6ef5, #7c3aed); color: #fff; font-weight: 700; font-size: 13px; flex: none; }
.tx-avatar-lg { width: 38px; height: 38px; font-size: 15px; }

/* ── Notification dropdown ───────────────────────────────────────── */
.tx-notif-menu { width: 360px; max-width: calc(100vw - 20px); padding: 0; }
.tx-notif-menu #txBellList { max-height: 380px; overflow-y: auto; }
.tx-notif { display: flex !important; gap: 10px; align-items: flex-start; white-space: normal; padding: 10px 14px; border-bottom: 1px solid #f1f5fb; }
.tx-notif.is-unread { background: #f4f8ff; }
.tx-notif-ic { margin-top: 3px; width: 16px; text-align: center; }
.tx-notif-txt { display: flex; flex-direction: column; min-width: 0; }
.tx-notif-title { font-weight: 600; font-size: 13px; color: var(--dk-ink, #16233f); }
.tx-notif-body { font-size: 12px; color: var(--dk-ink-2, #55668a); }
.tx-notif-ago { font-size: 11px; color: var(--dk-muted, #62708c); margin-top: 2px; }

/* ── Permission matrix ───────────────────────────────────────────── */
.tx-perm-group { border: 1px solid var(--dk-line, #e6ecf7); border-radius: 12px; margin-bottom: 14px; overflow: hidden; }
.tx-perm-group-h { display: flex; justify-content: space-between; align-items: center; padding: 9px 14px; background: #f7f9fc; border-bottom: 1px solid var(--dk-line, #e6ecf7); }
.tx-perm-group-h strong { font-size: 13px; color: var(--dk-ink, #16233f); }
.tx-perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2px 14px; padding: 10px 14px; }
.tx-perm { display: flex; gap: 9px; align-items: flex-start; padding: 5px 0; margin: 0; font-weight: 400; cursor: pointer; }
.tx-perm input { margin-top: 3px; }
.tx-perm code { font-size: 11px; color: #1560e0; background: #eef3fc; padding: 1px 5px; border-radius: 4px; }
.tx-perm small { display: block; color: var(--dk-muted, #62708c); font-size: 12px; }

/* ── Definition lists (detail pages) ─────────────────────────────── */
.tx-dl { display: grid; grid-template-columns: 170px 1fr; gap: 8px 16px; margin: 0; font-size: 13px; }
.tx-dl dt { color: var(--dk-muted, #62708c); font-weight: 600; }
.tx-dl dd { margin: 0; color: var(--dk-ink, #16233f); word-break: break-word; }
@media (max-width: 575px) { .tx-dl { grid-template-columns: 1fr; } }

.tx-mono { font-family: Consolas, 'SFMono-Regular', Menlo, monospace; font-size: 12px; }
.tx-pre { background: #0f172a; color: #e2e8f0; border-radius: 10px; padding: 12px 14px; font-size: 12px; max-height: 420px; overflow: auto; white-space: pre-wrap; word-break: break-word; }
.tx-empty { padding: 34px 16px; text-align: center; color: var(--dk-muted, #62708c); }
.tx-empty i { display: block; font-size: 28px; opacity: .3; margin-bottom: 10px; }
.tx-pending-note { font-size: 10.5px; color: #b0730b; margin-top: 4px; }
.tx-chart-box { position: relative; height: 280px; }
.tx-temp-pw { font-family: Consolas, monospace; font-size: 18px; letter-spacing: 1px; background: #fffbeb; border: 1px dashed #f59e0b; padding: 10px 14px; border-radius: 10px; display: inline-block; user-select: all; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }

/* ── Sign-in layout extras ───────────────────────────────────────── */
.tx-pw-rules { font-size: 12px; color: #64748b; margin: 2px 0 14px; display: flex; gap: 6px; }
.tx-remember { display: flex; gap: 8px; align-items: center; font-size: 13px; color: #475569; margin-top: 12px; cursor: pointer; }
.tx-passkey-row { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 6px 12px; margin: -4px 0 10px 12px; border-left: 1px solid #e2e8f0; }
.tx-passkey-row span { flex: 1; } .tx-passkey-row small { color: #94a3b8; }
.tx-passkey-row form { margin: 0; }
.tx-backup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0 12px; }
.tx-backup-grid code { font-family: Consolas, monospace; font-size: 15px; letter-spacing: 1.5px; text-align: center; padding: 9px; border: 1px dashed #cbd5e1; border-radius: 8px; background: #f8fafc; color: #0f172a; }
.tx-backup-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media print { .brand-pane, .tx-backup-actions, .btn-signin { display: none !important; } }
.org-chip {
    display: inline-flex; align-items: center; gap: 6px;
    max-width: 380px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 11.5px; font-weight: 600; letter-spacing: .1px;
    color: #1d4b7d;
    background: #eef5fd;
    border: 1px solid #cfe2f7;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.org-chip i { font-size: 10.5px; color: #5b8ec4; flex: 0 0 auto; }
