/* ── Global resets ─────────────────────────────────────────────────────────── */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

/* ── Dark sidebar (edgar-sidebar class on MudDrawer) ───────────────────────── */
.edgar-sidebar .mud-drawer-content {
    background-color: #1e293b !important;
}

.edgar-sidebar-header {
    padding: 1rem 1rem 0.6rem;
    flex-direction: column !important;
    align-items: flex-start !important;
}

/* Nav links inside dark sidebar */
.edgar-nav .mud-nav-link {
    color: #94a3b8 !important;
    border-radius: 6px;
    margin: 1px 8px;
    font-weight: 500;
}

.edgar-nav .mud-nav-link:hover {
    background-color: #334155 !important;
    color: #e2e8f0 !important;
}

.edgar-nav .mud-nav-link.active {
    background-color: #2563eb !important;
    color: #ffffff !important;
}

.edgar-nav .mud-nav-link .mud-icon-root {
    color: inherit !important;
}

/* ── Utility classes (used by InviteCreator, GuidedSupportPlaybook, etc.) ─── */
.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.85rem;
}

.clip {
    max-width: 14rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.muted {
    color: #64748b;
}

.small {
    font-size: 0.875rem;
}

/* ── Legacy callout cards (used by InviteCreator / sub-components) ─────────── */
.callout {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 56rem;
    padding: 1rem 1.15rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.callout-danger {
    border-color: #fecaca;
    background: linear-gradient(180deg, #fff1f2 0%, #fff 100%);
    border-left: 4px solid #dc2626;
}

.callout-pre {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.35rem;
    padding: 0.75rem;
    max-height: 16rem;
    overflow: auto;
}

.callout-hints {
    font-size: 0.9rem;
    color: #475569;
    border-top: 1px dashed #e2e8f0;
    padding-top: 0.75rem;
}

.callout-hints-lead {
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #0f172a;
}

.callout-steps {
    margin: 0;
    padding-left: 1.2rem;
    line-height: 1.7;
}

.inline-code,
.callout-steps code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.82rem;
    background: #f1f5f9;
    padding: 0.1rem 0.35rem;
    border-radius: 0.25rem;
    border: 1px solid #e2e8f0;
}

/* Status pills used in sub-components */
.warn-pill {
    display: inline-block;
    margin: 0.15rem 0.35rem 0 0;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
}

.ok-pill {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

/* Legacy button styles used in sub-components */
.button-link {
    display: inline-block;
    padding: 0.35rem 0.65rem;
    border-radius: 0.375rem;
    background: #0ea5e9;
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font: inherit;
}

.button-link:hover { background: #0284c7; }

.button-link-secondary {
    background: #64748b !important;
    border: none;
    cursor: pointer;
    font: inherit;
}

.button-link-secondary:hover { background: #475569 !important; }

.button-link-text {
    background: transparent !important;
    color: #0369a1 !important;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: underline;
    padding: 0.15rem 0;
}

.button-link-text:hover { color: #0c4a6e !important; }

/* Op-card grid (Operations page) */
.op-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
    gap: 0.75rem;
    max-width: 56rem;
    margin: 1rem 0 1.25rem;
}

.op-card {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.85rem 1rem;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.op-card strong {
    display: block;
    font-size: 1.35rem;
    color: #0f172a;
}

/* ── Dark mode (MudThemeProvider IsDarkMode) — custom blocks beside Mud components ── */
.mud-theme-dark .edgar-sidebar .mud-drawer-content {
    background-color: #0f172a !important;
}

.mud-theme-dark .callout {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.mud-theme-dark .callout-danger {
    border-color: #7f1d1d;
    background: linear-gradient(180deg, #450a0a 0%, #1e293b 100%);
}

.mud-theme-dark .callout-pre {
    color: #cbd5e1;
    background: #0f172a;
    border-color: #334155;
}

.mud-theme-dark .callout-hints {
    color: #94a3b8;
    border-top-color: #334155;
}

.mud-theme-dark .callout-hints-lead {
    color: #f1f5f9;
}

.mud-theme-dark .inline-code,
.mud-theme-dark .callout-steps code {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

.mud-theme-dark .muted {
    color: #94a3b8;
}

.mud-theme-dark .op-card {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.mud-theme-dark .op-card strong {
    color: #f1f5f9;
}

.mud-theme-dark .warn-pill {
    background: #422006;
    color: #fdba74;
    border-color: #9a3412;
}

.mud-theme-dark .ok-pill {
    background: #052e16;
    color: #6ee7b7;
    border-color: #047857;
}
