/* Admin de FAQ — três colunas (rotas / entries / editor). */

.faq-admin-grid {
    display: grid;
    grid-template-columns: 240px 360px 1fr;
    gap: 12px;
    min-height: 600px;
    background: var(--mud-palette-background, #fff);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.faq-col {
    background: #fff;
    border-right: 1px solid #e5e7eb;
    overflow-y: auto;
}
.faq-col:last-child { border-right: none; }

.faq-col-header {
    padding: 12px 16px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 600;
    font-size: 13px;
    color: #374151;
    position: sticky;
    top: 0;
    z-index: 1;
}

.faq-empty {
    padding: 32px 16px;
    color: #9ca3af;
    font-size: 13px;
    text-align: center;
}

/* Coluna 1 — rotas */
.faq-route-list {
    padding: 4px 0;
}
.faq-route-item {
    border-radius: 6px;
    margin: 1px 6px;
    cursor: pointer;
}
.faq-route-item.active {
    background: #eef2ff;
    color: #2563eb;
}
.faq-route-name {
    font-family: var(--font-mono, monospace);
    font-size: 12.5px;
}

/* Coluna 2 — entries */
.faq-entries-list {
    padding: 4px 0;
}
.faq-entry-item {
    border-radius: 6px;
    margin: 2px 6px;
    padding: 4px 8px;
}
.faq-entry-item.active {
    background: #eef2ff;
}
.faq-entry-clickable {
    cursor: pointer;
}
.faq-entry-clickable:hover .faq-entry-label {
    color: #2563eb;
}
.faq-entry-order {
    width: 24px;
    height: 24px;
    border-radius: 12px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.faq-entry-text { min-width: 0; flex: 1; }
.faq-entry-label {
    font-size: 13px;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.faq-entry-meta {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 2px;
}

/* Coluna 3 — editor */
.faq-editor-body {
    padding: 16px;
}

.faq-preview {
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    padding: 12px;
    background: #fafafa;
}
.faq-preview-header {
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 8px;
}
.faq-preview-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 12px;
    cursor: not-allowed;
    font-size: 13px;
    color: #1f2937;
    width: 100%;
    text-align: left;
}

.faq-stats-foot {
    font-size: 11px;
    color: #9ca3af;
    text-align: right;
}
