/* Feedback modal + toolbar + inbox (IDX-FEEDBACK v2) */
.suite-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.suite-tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    padding: 0;
    flex-shrink: 0;
}
.suite-tool-btn:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
}
.suite-tool-btn.tool-feedback { border-color: rgba(251, 191, 36, 0.35); color: #fbbf24; }
.suite-tool-btn.tool-feedback:hover { background: rgba(251, 191, 36, 0.12); }
.suite-tool-btn.tool-roadmap { border-color: rgba(0, 242, 254, 0.35); color: #00f2fe; }
.suite-tool-btn.tool-roadmap:hover { background: rgba(0, 242, 254, 0.12); }
.suite-tool-btn.tool-inbox { border-color: rgba(52, 211, 153, 0.35); color: #34d399; }
.suite-tool-btn.tool-inbox:hover { background: rgba(52, 211, 153, 0.12); }

.feedback-fab {
    position: fixed;
    bottom: 72px;
    right: 18px;
    z-index: 9990;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(251, 191, 36, 0.45);
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}
.feedback-fab:hover { background: rgba(251, 191, 36, 0.28); transform: scale(1.05); }

/* Barra fija — visible en TODAS las páginas sin toolbar propio */
.suite-feedback-bar {
    position: fixed;
    top: 10px;
    right: 12px;
    z-index: 99999;
    padding: 4px 6px;
    border-radius: 12px;
    background: rgba(10, 12, 16, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
}
.suite-tool-label {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 4px;
    letter-spacing: 0.04em;
}
.suite-tool-btn.tool-icon-only {
    width: 34px;
    min-width: 34px;
    padding: 0;
}
.suite-tool-btn.tool-icon-only .suite-tool-label { display: none; }

.feedback-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99995;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.feedback-modal.open { display: flex; }
.feedback-panel {
    background: #12151c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    width: min(96vw, 520px);
    max-width: 520px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    box-sizing: border-box;
    overflow: hidden;
}
.feedback-panel,
.feedback-panel * {
    box-sizing: border-box;
}
.feedback-hdr {
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.feedback-hdr h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 4px;
}
.feedback-hdr p { font-size: 0.75rem; color: #94a3b8; margin: 0; }
.feedback-close {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
}
.feedback-ctx {
    margin: 14px 22px 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(0, 242, 254, 0.06);
    border: 1px solid rgba(0, 242, 254, 0.15);
    font-size: 0.68rem;
    color: #94a3b8;
    line-height: 1.55;
    font-family: 'Inter', monospace;
}
.feedback-ctx strong { color: #00f2fe; font-weight: 600; }
.feedback-body { padding: 14px 22px 18px; }
.feedback-body label {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}
.feedback-types {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}
.feedback-type-btn {
    padding: 5px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: transparent;
    color: #94a3b8;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}
.feedback-type-btn.active {
    border-color: rgba(0, 242, 254, 0.5);
    color: #00f2fe;
    background: rgba(0, 242, 254, 0.1);
}
.feedback-body textarea {
    width: 100%;
    max-width: 100%;
    display: block;
    margin: 0 0 10px;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    resize: vertical;
    min-height: 100px;
}
.feedback-hint { font-size: 0.75rem; min-height: 1.2em; margin: 0; }
.feedback-footer {
    padding: 0 22px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.btn-feedback-send {
    padding: 10px 18px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #000;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.78rem;
    text-transform: uppercase;
    cursor: pointer;
}
.btn-feedback-inbox {
    padding: 10px 18px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    color: #042f1a;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.78rem;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-feedback-inbox:hover {
    color: #042f1a;
    filter: brightness(1.08);
}

/* Bandeja — KPIs y cierre QA (IDX-FEEDBACK-5) */
.fb-kpi-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}
.fb-kpi {
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--panel, #12151c);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: border-color 0.15s;
}
.fb-kpi:hover, .fb-kpi.active { border-color: rgba(0, 242, 254, 0.35); }
.fb-kpi .n { font-family: 'Outfit', sans-serif; font-size: 1.35rem; font-weight: 800; line-height: 1; }
.fb-kpi .l { font-size: 0.62rem; color: #94a3b8; text-transform: uppercase; font-weight: 700; margin-top: 4px; }
.fb-kpi.k-open .n { color: #fbbf24; }
.fb-kpi.k-proc .n { color: #38bdf8; }
.fb-kpi.k-ok .n { color: #34d399; }
.fb-kpi.k-no .n { color: #fb7185; }
.fb-kpi.k-all .n { color: #e2e8f0; }
.closure-snippet { font-size: 0.68rem; color: #64748b; margin-top: 4px; max-width: 200px; line-height: 1.35; }
.outcome-tag {
    display: inline-block; font-size: 0.6rem; font-weight: 800; text-transform: uppercase;
    padding: 2px 6px; border-radius: 8px; margin-top: 4px;
}
.outcome-si { background: rgba(52,211,153,0.15); color: #34d399; }
.outcome-no { background: rgba(251,113,133,0.15); color: #fb7185; }
.outcome-invalido { background: rgba(100,116,139,0.2); color: #94a3b8; }
.btn-close-qa, .btn-reopen {
    padding: 4px 8px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04); color: #e2e8f0; font-size: 0.65rem;
    font-weight: 700; cursor: pointer; white-space: nowrap;
}
.btn-close-qa { border-color: rgba(52,211,153,0.35); color: #34d399; }
.btn-reopen { border-color: rgba(251,191,36,0.35); color: #fbbf24; margin-top: 4px; }
.close-outcome-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.close-outcome-btn {
    flex: 1; min-width: 120px; padding: 10px 12px; border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.12); background: transparent; color: #94a3b8;
    font-size: 0.72rem; font-weight: 700; cursor: pointer; text-align: left;
}
.close-outcome-btn.active { border-color: rgba(0,242,254,0.5); color: #00f2fe; background: rgba(0,242,254,0.08); }
.close-outcome-btn[data-v="si"].active { border-color: rgba(52,211,153,0.5); color: #34d399; background: rgba(52,211,153,0.1); }
.close-outcome-btn[data-v="no"].active { border-color: rgba(251,113,133,0.5); color: #fb7185; background: rgba(251,113,133,0.1); }
