.incidencias-scope .inc-row {
    cursor: pointer;
}
.incidencias-scope .inc-row:hover td {
    background: rgba(255, 183, 27, 0.08);
}
.incidencias-scope .inc-id-cell {
    vertical-align: top;
    white-space: nowrap;
}
.incidencias-scope .inc-id-cell strong {
    display: block;
    font-size: 14px;
}
.incidencias-scope .inc-row-meta {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}
.incidencias-scope .inc-acoes-cell {
    white-space: nowrap;
    vertical-align: middle;
}
.inc-acao {
    width: 28px;
    height: 28px;
    padding: 0;
    margin-right: 4px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #374151;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
}
.inc-acao:hover {
    filter: brightness(0.96);
}
.inc-acao-curso { color: #92400e; background: #fef3c7; border-color: #fcd34d; }
.inc-acao-ok { color: #15803d; background: #dcfce7; border-color: #86efac; }
.inc-acao-no { color: #6b7280; background: #f3f4f6; border-color: #d1d5db; }
.inc-acao-reabrir { color: #3730a3; background: #e0e7ff; border-color: #a5b4fc; }
.inc-acao-del { color: #b42318; background: #fee2e2; border-color: #fca5a5; }
.incidencias-scope .inc-empty {
    text-align: center;
    color: #888;
    padding: 24px !important;
}
.incidencias-scope .inc-check-abertas {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    height: 38px;
    padding: 0 8px;
}
.incidencias-scope .inc-check-abertas input {
    width: 16px;
    height: 16px;
    accent-color: #FFB71B;
}
.inc-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.inc-badge-erro { background: #fde8e8; color: #b42318; }
.inc-badge-melhoria { background: #e0f2fe; color: #0369a1; }
.inc-badge-tarefa { background: #fef3c7; color: #92400e; }
.inc-badge-novo { background: #f3f4f6; color: #374151; }
.inc-badge-analise { background: #e0e7ff; color: #3730a3; }
.inc-badge-curso { background: #fef3c7; color: #92400e; }
.inc-badge-testar { background: #ede9fe; color: #6d28d9; }
.inc-badge-feito { background: #dcfce7; color: #15803d; }
.inc-badge-recusado { background: #e5e7eb; color: #6b7280; }
.inc-badge-boi { background: #111827; color: #FFB71B; }
.inc-badge-dankeapp { background: #dbeafe; color: #1d4ed8; }
.inc-badge-sprout { background: #dcfce7; color: #166534; }
.inc-badge-printflow { background: #fff7ed; color: #c2410c; }
.inc-sla-ok { color: #15803d; font-weight: 700; }
.inc-sla-fora { color: #b42318; font-weight: 700; }
.inc-badge.inc-sla-ok { background: #dcfce7; color: #15803d; }
.inc-badge.inc-sla-fora { background: #fee2e2; color: #b42318; }
.incidencias-scope .kpi-value-sm {
    font-size: 18px;
    line-height: 1.1;
}
.incidencias-scope .kpi-label {
    white-space: normal;
    line-height: 1.15;
}

.inc-pri {
    display: inline-block;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
}
.inc-pri-urgente { color: #b42318; }
.inc-pri-alta { color: #c2410c; }
.inc-pri-normal { color: #6b7280; }
.inc-pri-baixa { color: #9ca3af; }

.inc-paginacao {
    display: flex;
    gap: 6px;
    justify-content: center;
    padding: 14px;
}
.inc-paginacao button {
    border: 1px solid #ddd;
    background: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
}
.inc-paginacao button.active {
    background: #FFB71B;
    border-color: #FFB71B;
    font-weight: 700;
}

.inc-detalhe {
    padding: 20px;
}
.inc-detalhe-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    align-items: start;
}
.inc-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 20px;
    margin-bottom: 16px;
}
.inc-card h3 {
    margin: 0 0 14px;
    font-size: 15px;
    color: #2c3e50;
}
.inc-card-head {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.inc-field {
    margin-bottom: 12px;
}
.inc-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin-bottom: 4px;
}
.inc-field input,
.inc-field select,
.inc-field textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 14px;
    font-family: inherit;
}
.inc-field textarea {
    resize: vertical;
}
.inc-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.inc-acoes-estado {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 16px;
}
.inc-acoes-estado button {
    border: 1px solid #ddd;
    background: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}
.inc-acoes-estado .inc-btn-ok { background: #dcfce7; border-color: #86efac; }
.inc-acoes-estado .inc-btn-no { background: #f3f4f6; }
.inc-meta-line {
    font-size: 13px;
    color: #555;
    margin: 6px 0;
}
.inc-comentarios {
    margin-bottom: 12px;
}
.inc-comentario {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}
.inc-comentario-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
}
.inc-comentario p {
    margin: 0;
    white-space: pre-wrap;
}
.inc-historico {
    list-style: none;
    padding: 0;
    margin: 0;
}
.inc-historico li {
    font-size: 13px;
    color: #444;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}
.inc-historico li span {
    display: block;
    color: #999;
    font-size: 11px;
}
.inc-reportar-hint {
    font-size: 13px;
    color: #666;
    margin: 0 0 14px;
}

.bicho-fab {
    position: fixed;
    right: 16px;
    bottom: 20px;
    z-index: 40000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: #111827;
    color: #FFB71B;
    border: 2px solid #FFB71B;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
    pointer-events: auto;
}
.bicho-fab:hover,
.bicho-fab:focus {
    background: #1f2937;
    color: #FFB71B;
}
.bicho-fab .incidencias-badge,
.btn-reportar-incidencia .incidencias-badge {
    background: #FFB71B;
    color: #111;
    border-radius: 10px;
    padding: 0 6px;
    font-size: 11px;
    min-width: 18px;
    text-align: center;
    line-height: 18px;
}

body.bicho-a-capturar .bicho-fab,
body.bicho-a-capturar .btn-reportar-incidencia,
body.bicho-a-capturar .bicho-capturar-hint {
    visibility: hidden !important;
}
body.bicho-a-capturar {
    cursor: wait !important;
}

.bicho-capturar-hint {
    position: fixed;
    top: 12px;
    right: 24px;
    z-index: 60000;
    background: #2c3e50;
    color: #fff;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    pointer-events: none;
}

.bicho-reportar-overlay {
    position: fixed;
    inset: 0;
    z-index: 50000;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 16px;
}
.bicho-reportar-panel {
    background: #fff;
    border-radius: 10px;
    width: min(1180px, 100%);
    max-height: 96vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 16px 50px rgba(0,0,0,0.35);
    overflow: hidden;
}
.bicho-reportar-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: #FFB71B;
    color: #111;
}
.bicho-reportar-head h3 {
    margin: 0;
    font-size: 18px;
}
.bicho-reportar-head .btn-close {
    color: #111;
}
.bicho-reportar-body {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 0;
    min-height: 0;
    flex: 1;
    overflow: hidden;
}
.bicho-reportar-print {
    background: #111;
    padding: 10px;
    overflow: auto;
    min-height: 0;
}
.bicho-reportar-form {
    padding: 16px 18px;
    overflow: auto;
}
.bicho-print-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    color: #eee;
    font-size: 12px;
}
.bicho-print-toolbar button {
    border: 1px solid #444;
    background: #1f2937;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
}
.bicho-print-toolbar button.active {
    outline: 2px solid #FFB71B;
}
.bicho-print-toolbar .bicho-cor {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    padding: 0;
}
.bicho-print-canvas-wrap {
    background: #000;
    border-radius: 6px;
    overflow: auto;
    max-height: calc(96vh - 160px);
}
.bicho-annotator canvas {
    display: block;
    width: 100%;
    height: auto;
    cursor: crosshair;
    touch-action: none;
}
.bicho-reportar-foot {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 18px;
    border-top: 1px solid #eee;
}
.bicho-reportar-overlay .btn-secondary,
.bicho-reportar-overlay .btn-primary {
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}
.bicho-reportar-overlay .btn-secondary {
    background: #e5e7eb;
    color: #111;
}
.bicho-reportar-overlay .btn-primary {
    background: #FFB71B;
    color: #111;
    font-weight: 600;
}
.inc-screenshot {
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.inc-premium-overlay {
    position: fixed;
    inset: 0;
    z-index: 36000;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}
.inc-premium-dialog {
    width: min(1180px, 96vw);
    max-height: 92vh;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.inc-premium-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 22px;
    background: linear-gradient(135deg, #1f2937 0%, #334155 100%);
    color: #fff;
    gap: 16px;
}
.inc-premium-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}
.inc-premium-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
}
.inc-premium-sub {
    margin: 6px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.inc-premium-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #111;
    background: #FFB71B;
    flex-shrink: 0;
}
.inc-premium-close {
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0 6px;
}
.inc-premium-body {
    padding: 8px 10px 16px;
    overflow: auto;
    background: #f8fafc;
    min-height: 0;
    flex: 1;
}
.inc-premium-loading {
    text-align: center;
    color: #64748b;
    padding: 60px 20px;
}
.inc-detalhe-in-dialog {
    padding: 8px 10px 4px;
}
.inc-detalhe-in-dialog .inc-card {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.inc-confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 38000;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}
.inc-confirm-dialog {
    width: min(440px, 94vw);
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px 20px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}
.inc-confirm-dialog h3 {
    margin: 0 0 8px;
    font-size: 18px;
}
.inc-confirm-msg {
    margin: 0;
    color: #475569;
    font-size: 14px;
}
.inc-confirm-detalhe {
    margin: 10px 0 0;
    color: #64748b;
    font-size: 13px;
}
.inc-confirm-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    background: #64748b;
}
.inc-confirm-icon.tom-curso { background: #d97706; }
.inc-confirm-icon.tom-ok { background: #16a34a; }
.inc-confirm-icon.tom-no { background: #6b7280; }
.inc-confirm-icon.tom-reabrir { background: #4f46e5; }
.inc-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 22px;
}
.inc-confirm-cancel,
.inc-confirm-ok {
    border: 0;
    border-radius: 8px;
    padding: 9px 14px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}
.inc-confirm-cancel {
    background: #e5e7eb;
    color: #111;
}
.inc-confirm-ok {
    color: #fff;
    background: #334155;
}
.inc-confirm-ok.tom-curso { background: #d97706; }
.inc-confirm-ok.tom-ok { background: #16a34a; }
.inc-confirm-ok.tom-no { background: #4b5563; }
.inc-confirm-ok.tom-reabrir { background: #4f46e5; }

@media (pointer: coarse) {
    .bicho-fab {
        width: 44px;
        height: 44px;
        font-size: 17px;
        bottom: 16px;
        right: 12px;
    }
}

@media (max-width: 900px) {
    .inc-detalhe-grid {
        grid-template-columns: 1fr;
    }
    .inc-form-row {
        grid-template-columns: 1fr;
    }
}
