/* BugReport Front – interface utilisateurs assignés */

#bugreport-front-app {
    max-width: none;
    width: 100%;
    box-sizing: border-box;
}

:where(.is-layout-constrained, .wp-block-group.is-layout-constrained, .entry-content, .wp-site-blocks) #bugreport-front-app {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.bugreport-front {
    --brf-radius: 8px;
    --brf-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    --brf-border: 1px solid #e2e8f0;
    --brf-bg: #f8fafc;
    --brf-bg-card: #fff;
    --brf-text: #3c434a;
    --brf-text-muted: #64748b;
    --brf-primary: #24bd86;
    --brf-primary-hover: #1fb27d;
    width: 100%;
    margin: 0 auto;
    padding: 1rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: var(--brf-text);
}

.bugreport-front-login-wrap {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.bugreport-front-login {
    width: 100%;
    max-width: 380px;
    padding: 24px 28px;
    background: var(--brf-bg-card);
    border-radius: 12px;
    box-shadow: var(--brf-shadow);
    border: var(--brf-border);
}

.bugreport-front-login h2 {
    margin: 0 0 1.25rem;
    font-size: 18px;
    font-weight: 600;
    color: var(--brf-text);
}

.bugreport-front-field {
    margin: 0 0 1rem;
}

.bugreport-front-field label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    font-size: 13px;
    color: var(--brf-text);
}

.bugreport-front-field input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #d0d7de;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.04);
    font-family: inherit;
    color: var(--brf-text);
}

.bugreport-front-field input:focus {
    border-color: var(--brf-primary);
    box-shadow: 0 0 0 1px var(--brf-primary);
    outline: none;
}

.bugreport-front-login .bugreport-front-actions {
    margin: 1rem 0 0;
}

.bugreport-front-error {
    margin: 0.75rem 0 0;
    color: #b91c1c;
    font-size: 13px;
}

.bugreport-front-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    background: transparent;
    font-family: inherit;
    line-height: 1.5;
    transition: background .15s, border-color .15s, color .15s;
}

.bugreport-front-btn-primary {
    background: var(--brf-primary);
    color: #fff;
    border-color: var(--brf-primary);
}

.bugreport-front-btn-primary:hover {
    background: var(--brf-primary-hover);
    border-color: var(--brf-primary-hover);
}

.bugreport-front-btn-ghost {
    color: var(--brf-text-muted);
    border: 1px solid #e2e8f0;
}

.bugreport-front-btn-ghost:hover {
    background: var(--brf-bg);
    color: var(--brf-text);
}

.bugreport-front-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.bugreport-front-toolbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.bugreport-front-toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

.bugreport-front-user {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--brf-text-muted);
    font-size: 13px;
}

.bugreport-front-user i {
    font-size: 14px;
    color: var(--brf-text);
}

/* Liste des bugs */
.bugreport-front-list {
    background: var(--brf-bg-card);
    border-radius: 12px;
    border: var(--brf-border);
    box-shadow: var(--brf-shadow);
    overflow: visible;
}

.bugreport-front-list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: var(--brf-border);
    background: var(--brf-bg);
}

.bugreport-front-list-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--brf-text);
}

.bugreport-front-list-toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bugreport-front-list-search-wrap {
    width: 200px;
    min-width: 140px;
}

.bugreport-front-list-search-input {
    width: 100%;
    padding: 6px 10px 6px 32px;
    padding-left: 24px!important;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    color: var(--brf-text);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E") no-repeat 5px center;
    box-sizing: border-box;
}

.bugreport-front-list-search-input::placeholder {
    color: var(--brf-text-muted);
}

.bugreport-front-list-search-input:focus {
    border-color: var(--brf-primary);
    outline: none;
    box-shadow: 0 0 0 1px var(--brf-primary);
}

.bugreport-front-sort-wrap {
    flex-shrink: 0;
}

.bugreport-front-sort-select {
    padding: 6px 28px 6px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    color: var(--brf-text);
    background: #fff;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}

.bugreport-front-sort-select:hover {
    border-color: #cbd5e1;
}

.bugreport-front-sort-select:focus {
    border-color: var(--brf-primary);
    outline: none;
    box-shadow: 0 0 0 1px var(--brf-primary);
}

.bugreport-front-filters-wrap {
    position: relative;
}

.bugreport-front-filters-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.bugreport-front-filters-btn i {
    font-size: 12px;
}

.bugreport-front-filters-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #24bd86;
    color: #ffffff;
    font-size: 10px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 2px #ffffff;
}

.bugreport-front-filters-panel {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 320px;
    max-height: 85vh;
    overflow-y: auto;
    background: var(--brf-bg-card);
    border: var(--brf-border);
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.15);
    padding: 16px 18px;
    z-index: 1000;
}

.bugreport-front-filters-panel.is-open {
    display: block;
}

.bugreport-front-filters-panel-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--brf-text);
    margin: 0 0 14px;
}

.bugreport-front-filters-section {
    margin-bottom: 14px;
}

.bugreport-front-filters-section:last-child {
    margin-bottom: 0;
}

.bugreport-front-filters-reset-wrap {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.bugreport-front-filters-reset-btn {
    width: 100%;
    justify-content: center;
}

.bugreport-front-filters-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--brf-text-muted);
    margin-bottom: 6px;
}

.bugreport-front-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.bugreport-front-filter-tag {
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: var(--brf-text);
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}

.bugreport-front-filter-tag:hover {
    background: var(--brf-bg);
    border-color: #cbd5e1;
}

.bugreport-front-filter-tag.is-selected {
    border-color: transparent;
    color: #fff;
}

/* Project (actif) */
.bugreport-front-filter-tag.is-selected[data-filter="project"] {
    background: var(--brf-primary);
}

/* Status (actif) */
.bugreport-front-filter-tag.is-selected[data-filter="status"][data-value="bug_open"]        { background: #0369a1; }
.bugreport-front-filter-tag.is-selected[data-filter="status"][data-value="bug_in_progress"] { background: #d97706; }
.bugreport-front-filter-tag.is-selected[data-filter="status"][data-value="bug_resolved"]    { background: #166534; }
.bugreport-front-filter-tag.is-selected[data-filter="status"][data-value="bug_closed"]      { background: #4b5563; }

/* Priority (actif) */
.bugreport-front-filter-tag.is-selected[data-filter="priority"][data-value="urgent"] { background: #dc2626; }
.bugreport-front-filter-tag.is-selected[data-filter="priority"][data-value="high"]   { background: #ea580c; }
.bugreport-front-filter-tag.is-selected[data-filter="priority"][data-value="medium"]  { background: #2563eb; }
.bugreport-front-filter-tag.is-selected[data-filter="priority"][data-value="low"]     { background: #059669; }
.bugreport-front-filter-tag.is-selected[data-filter="priority"][data-value="none"]   { background: #6b7280; }

/* Type (actif) */
.bugreport-front-filter-tag.is-selected[data-filter="type"][data-value="bug"]         { background: #b91c1c; }
.bugreport-front-filter-tag.is-selected[data-filter="type"][data-value="improvement"] { background: #15803d; }

.bugreport-front-filter-empty {
    font-size: 12px;
    color: var(--brf-text-muted);
}

.bugreport-front-filters-daterange {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.bugreport-front-filters-datefield {
    flex: 1;
    min-width: 120px;
}

.bugreport-front-filters-sublabel {
    display: block;
    font-size: 11px;
    color: var(--brf-text-muted);
    margin-bottom: 4px;
}

.bugreport-front-filter-date {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    box-sizing: border-box;
    color: var(--brf-text);
}

.bugreport-front-filter-date:focus {
    border-color: var(--brf-primary);
    outline: none;
}

.bugreport-front-filters-date-arrow {
    flex-shrink: 0;
    align-self: center;
    margin-bottom: 6px;
    color: var(--brf-text-muted);
    font-size: 12px;
}

.bugreport-front-list-content {
    min-height: 120px;
}

.bugreport-front-list .bugreport-front-row .bugreport-front-actions {
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bugreport-front-list h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    background: var(--brf-bg);
    color: var(--brf-text);
}

.bugreport-front-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bugreport-front-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bugreport-front-item {
    border-bottom: var(--brf-border);
}

.bugreport-front-item:last-child {
    border-bottom: none;
}

.bugreport-front-row {
    display: grid;
    grid-template-columns: 56px 28px 130px 1fr 80px 180px 120px 36px;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
}

.bugreport-front-item:hover .bugreport-front-row {
    background: var(--brf-bg);
}

.bugreport-front-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: var(--brf-bg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bugreport-front-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bugreport-front-thumb-placeholder {
    font-size: 18px;
    opacity: .6;
}
.bugreport-front-thumb-placeholder i {
    font-size: 1em;
}

.bugreport-front-type-icon,
.bugreport-front-priority-icon {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.bugreport-front-priority {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--brf-text);
    min-width: 0;
}

.bugreport-front-priority-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90px;
}

.bugreport-front-priority-icon {
    font-size: 12px;
}

.bugreport-front-main {
    min-width: 0;
}

.bugreport-front-title-btn {
    display: block;
    padding: 0;
    border: none;
    background: none;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--brf-text);
    cursor: pointer;
}

.bugreport-front-title-btn:hover {
    text-decoration: underline;
}

.bugreport-front-meta-line {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--brf-text-muted);
    margin-top: 2px;
    flex-wrap: wrap;
}

.bugreport-front-id {
    font-weight: 600;
    color: var(--brf-text);
}

.bugreport-front-comments {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--brf-text-muted);
    justify-self: end;
}

.bugreport-front-comments-icon {
    font-size: 14px;
    line-height: 1;
}

.bugreport-front-comments-icon i {
    font-size: 14px;
}

.bugreport-front-status {
    justify-self: end;
}

.bugreport-front-date {
    display: inline-flex;
    justify-content: center;
}

.bugreport-front-date-text {
    font-size: 12px;
    color: var(--brf-text-muted);
    white-space: nowrap;
}

.bugreport-front-date-text[data-tooltip] {
    position: relative;
    cursor: default;
}

.bugreport-front-date-text[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: #fff;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
}

.bugreport-front-actions {
    position: relative;
    display: inline-flex;
    justify-content: center;
}

.bugreport-front-more-btn {
    width: 28px;
    height: 28px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: var(--brf-text);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
	align-items: center;
	justify-content: center;
	padding: .6em;
}

.bugreport-front-more-btn:hover {
    background: var(--brf-bg);
    border-color: #e2e8f0;
}
.bugreport-front-more-btn i { font-size: 14px; }

.bugreport-front-more-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 180px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
    padding: 4px;
    display: none;
    z-index: 50;
}

.bugreport-front-actions.is-open .bugreport-front-more-menu {
    display: block;
}

.bugreport-front-more-menu button {
    width: 100%;
    text-align: left;
    border: none;
    background: none;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    color: var(--brf-text);
}

.bugreport-front-more-menu button:hover {
    background: var(--brf-bg);
}
.bugreport-front-more-menu button i { margin-right: 8px; }

.bugreport-front-list .bugreport-front-bug-meta {
    font-size: 12px;
    color: var(--brf-text-muted);
    margin-top: 0.25rem;
}

.bugreport-front-list .bugreport-front-empty {
    padding: 2rem;
    text-align: center;
    color: var(--brf-text-muted);
}

/* Détail bug */
.bugreport-front-detail {
    background: var(--brf-bg-card);
    border-radius: 12px;
    border: var(--brf-border);
    box-shadow: var(--brf-shadow);
    overflow: visible;
}

.bugreport-front-detail-header {
    padding: 14px 20px;
    border-bottom: var(--brf-border);
    background: var(--brf-bg);
}

.bugreport-front-detail-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.5rem;
}

.bugreport-front-detail-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--brf-text);
    flex: 1;
    min-width: 0;
}

.bugreport-front-detail-copy-link {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--brf-text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color .15s, background .15s;
}

.bugreport-front-detail-copy-link:hover {
    background: var(--brf-bg);
    color: var(--brf-primary);
}

.bugreport-front-detail-copy-link.copied {
    color: #15803d;
}

.bugreport-front-detail-copy-link i {
    font-size: 14px;
}

.bugreport-front-detail-delete {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--brf-text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color .15s, background .15s;
}

.bugreport-front-detail-delete:hover {
    background: #fef2f2;
    color: #b91c1c;
}

.bugreport-front-detail-delete i {
    font-size: 14px;
}

.bugreport-front-detail-meta {
    font-size: 12px;
    color: var(--brf-text-muted);
}

.bugreport-front-detail-body {
    padding: 20px 22px;
}

.bugreport-front-detail-section {
    margin-bottom: 1.25rem;
}

.bugreport-front-detail-section:last-child {
    margin-bottom: 0;
}

.bugreport-front-detail-section h4 {
    margin: 0 0 0.5rem;
    font-size: 13px;
    font-weight: 600;
    color: var(--brf-text);
}

.bugreport-front-detail-section .content {
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--brf-text);
}

.bugreport-front-detail-section img.bugreport-front-screenshot {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    border: var(--brf-border);
}

/* Historique + commentaires */
.bugreport-front-history {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: var(--brf-border);
}

.bugreport-front-history h4 {
    margin: 0 0 1rem;
    font-size: 13px;
    font-weight: 600;
    color: var(--brf-text);
}

.bugreport-front-history-timeline {
    position: relative;
    padding-left: 2.5rem;
    border-left: 2px dotted #e2e8f0;
    margin-left: 0.75rem;
}

.bugreport-front-history-item {
    position: relative;
    margin-bottom: 14px;
}

.bugreport-front-history-item:last-child {
    margin-bottom: 0;
}

.bugreport-front-history-avatar {
    position: absolute;
    left: -2.5rem;
    top: 0;
    width: 28px;
    height: 28px;
    margin-left: -15px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--brf-bg);
    border: 2px solid var(--brf-bg-card);
}

.bugreport-front-history-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bugreport-front-history-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    font-size: 14px;
}

.bugreport-front-history-content {
    min-height: 28px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
}

.bugreport-front-history-label {
    font-size: 13px;
}

.bugreport-front-history-label strong {
    font-weight: 600;
}

.bugreport-front-history-time {
    font-size: 12px;
    color: var(--brf-text-muted);
}

.bugreport-front-history-comment-box {
    margin-top: 0.25rem;
    padding: 0.75rem;
    background: var(--brf-bg);
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.bugreport-front-history-empty {
    margin: 0;
    padding: 2rem 0 0;
    text-align: center;
    color: #64748b;
    font-size: 13px;
}

.bugreport-front-history-empty-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    opacity: .6;
}

/* Formulaire commentaire (aligné back-office) */
.bugreport-front-comment-form-wrap {
    margin-top: 8px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.bugreport-front-comment-form-wrap h4,
.bugreport-front-comment-label {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #64748b;
}

.bugreport-front-comment-textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px 12px;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
    background: #fff;
    color: var(--brf-text);
    line-height: 1.5;
}

.bugreport-front-comment-textarea:focus {
    border-color: var(--brf-primary);
    box-shadow: 0 0 0 1px var(--brf-primary);
    outline: none;
}

.bugreport-front-comment-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.bugreport-front-comment-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.bugreport-front-comment-actions button,
.bugreport-front-comment-actions .bugreport-front-emoji-trigger {
    padding: 6px 8px;
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
}

.bugreport-front-comment-actions button:hover,
.bugreport-front-comment-actions .bugreport-front-emoji-trigger:hover {
    background: rgba(0,0,0,.06);
    color: #0f172a;
}

.bugreport-front-comment-submit-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bugreport-front-comment-visibility {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #64748b;
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 4px 10px;
}
.bugreport-front-comment-visibility i { margin-right: 0; }

.bugreport-front-btn-secondary {
    border: 1px solid #d0d7de;
    background: #fff;
    color: #3c434a;
}
.bugreport-front-btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.bugreport-front-mention-dropdown {
    position: absolute;
    z-index: 10;
    background: var(--brf-bg-card);
    border: var(--brf-border);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    max-height: 200px;
    overflow-y: auto;
    min-width: 180px;
    padding: 4px 0;
}

.bugreport-front-mention-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 6px 10px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    font-size: 13px;
}

.bugreport-front-mention-dropdown-item:hover {
    background: var(--brf-bg, #f1f5f9);
}

.bugreport-front-mention-dropdown-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    flex-shrink: 0;
}

.bugreport-front-emoji-picker-wrap {
    position: absolute;
    z-index: 10;
    background: var(--brf-bg-card);
    border: var(--brf-border);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    padding: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
}

.bugreport-front-emoji-picker-wrap button {
    padding: 0.25rem;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 18px;
}

.bugreport-front-emoji-picker-wrap button:hover {
    background: var(--brf-bg);
    border-radius: 4px;
}

.bugreport-front-attachment-preview {
    margin-top: 0.5rem;
    font-size: 12px;
    color: var(--brf-text-muted);
}

/* Toast */
.bugreport-front-toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.bugreport-front-toast-item {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    animation: bugreport-front-toast-in .2s ease;
}

.bugreport-front-toast-item.success {
    background: #059669;
    color: #fff;
}

.bugreport-front-toast-item.error {
    background: #b91c1c;
    color: #fff;
}

@keyframes bugreport-front-toast-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pills & custom dropdown selects */
.brf-custom-select {
    position: relative;
    display: inline-block;
}
.brf-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px 3px 7px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    transition: box-shadow .15s;
}
.brf-pill:hover { box-shadow: 0 0 0 2px rgba(0,0,0,.08); }
.brf-pill-icon {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(255,255,255,.9);
}
.brf-pill-icon-priority {
    width: 15px;
    height: 15px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.brf-pill-status-bug_open        { background: #e0f2fe; color: #0369a1; }
.brf-pill-status-bug_in_progress { background: #fef3c7; color: #92400e; }
.brf-pill-status-bug_resolved    { background: #dcfce7; color: #166534; }
.brf-pill-status-bug_closed      { background: #e5e7eb; color: #374151; }

.brf-pill-type-bug         { background: #fee2e2; color: #b91c1c; }
.brf-pill-type-improvement { background: #dcfce7; color: #166534; }

.brf-pill-priority-urgent { background: #fee2e2; color: #b91c1c; }
.brf-pill-priority-high   { background: #fffbeb; color: #92400e; }
.brf-pill-priority-medium { background: #eff6ff; color: #1d4ed8; }
.brf-pill-priority-low    { background: #ecfdf5; color: #047857; }
.brf-pill-priority-none   { background: #f3f4f6; color: #4b5563; }

.brf-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 200px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,.10), 0 1px 3px rgba(0,0,0,.06);
    z-index: 9999;
    padding: 4px;
}
.brf-custom-select.brf-open .brf-dropdown { display: block; }
.brf-dropdown-header {
    padding: 8px 10px 6px;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
}
.brf-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--brf-text);
    transition: background .12s;
}
.brf-dropdown-item:hover { background: #f1f5f9; }
.brf-dropdown-item-active { background: #f8fafc; }
.brf-dropdown-icon {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    flex-shrink: 0;
}
.brf-dropdown-icon-priority {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.brf-dropdown-check {
    margin-left: auto;
    color: var(--brf-primary);
    font-size: 14px;
    font-weight: 600;
}

.brf-save-toast {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    background: #d1fae5;
    color: #065f46;
    opacity: 1;
    transition: opacity .4s ease;
    vertical-align: middle;
}
.brf-save-toast.fade-out { opacity: 0; }

/* Info grid in detail (same as back-office session-env-grid) */
.brf-info-grid {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 8px 16px;
    align-items: center;
    font-size: 13px;
    margin-bottom: 1.25rem;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}
.brf-info-label {
    color: var(--brf-text-muted);
    font-size: 12px;
    font-weight: 500;
}
.brf-info-value {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.brf-info-value a {
    color: #2563eb;
}
.brf-copy-btn {
    border: none;
	background: none;
	border-radius: 999px;
	padding: 2px 6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #4b5563;
}
.brf-copy-btn:hover {
    border-color: #9ca3af;
    background: #e5e7eb;
    color: var(--brf-text);
}
.brf-copy-btn.copied {
    border-color: #a7d9a7;
    background: #e8f5e9;
    color: #166534;
}
.brf-copy-btn i {
    font-size: 12px;
    width: 12px;
    height: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Screenshot preview (like back-office) */
.brf-screenshot-wrap {
    position: relative;
    margin-bottom: 1.25rem;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}
.brf-screenshot-header {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.brf-screenshot-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
}
.brf-screenshot-container img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    display: block;
}
.brf-screenshot-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 6px;
}
.brf-screenshot-actions a,
.brf-screenshot-actions button {
    background: rgba(0,0,0,.55);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 8px;
    cursor: pointer;
    font-size: 13px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background .15s;
}
.brf-screenshot-actions a:hover,
.brf-screenshot-actions button:hover { background: rgba(0,0,0,.75); }

/* Lightbox modal */
.brf-lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0,0,0,.8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}
.brf-lightbox-overlay img {
    max-width: 92vw;
    max-height: 92vh;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,.4);
}

/* Comments block (aligné back-office) */
.brf-history-block {
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}
.brf-history-title {
    font-weight: 600;
    font-size: 13px;
    color: var(--brf-text);
    margin: 0 0 8px;
}
.bugreport-front-history-timeline {
    padding-top: 16px;
    margin-top: 0;
    border-top: 1px solid #e2e8f0;
}
.brf-avatar-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}
.bugreport-front-history-time[data-tooltip] {
    position: relative;
    cursor: default;
}
.bugreport-front-history-time[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: #fff;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
}
.brf-comment-bubble {
    margin-top: 6px;
    padding: 10px 12px;
    background: #f1f5f9;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
    width: 100%;
    box-sizing: border-box;
    color: var(--brf-text);
}
.brf-attachment-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #2563eb;
    text-decoration: none;
    margin-top: 6px;
}
.brf-attachment-link:hover { text-decoration: underline; }
.brf-mention-pill {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #dbeafe;
    color: #1d4ed8;
    border-radius: 999px;
    padding: 1px 8px 1px 3px;
    font-size: 12px;
    font-weight: 500;
}
.brf-mention-pill-avatar {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 7px;
    font-weight: 700;
}
.brf-description-block {
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 1.25rem;
}

/* Loading */
.bugreport-front-loading {
    padding: 2rem;
    text-align: center;
    color: var(--brf-text-muted);
}

.bugreport-front-loading::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 0.5rem;
    vertical-align: middle;
    border: 2px solid var(--brf-border);
    border-top-color: var(--brf-text-muted);
    border-radius: 50%;
    animation: bugreport-front-spin .6s linear infinite;
}

@keyframes bugreport-front-spin {
    to { transform: rotate(360deg); }
}

/* Modale de confirmation de suppression */
.bugreport-front-delete-confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.bugreport-front-delete-confirm-dialog {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    max-width: 400px;
    width: 100%;
    padding: 24px;
}

.bugreport-front-delete-confirm-title {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
    color: var(--brf-text);
}

.bugreport-front-delete-confirm-message {
    margin: 0 0 24px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--brf-text-muted);
}

.bugreport-front-delete-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.bugreport-front-delete-confirm-cancel {
    background: #fff;
    border: 1px solid #d0d7de;
    color: var(--brf-text);
}

.bugreport-front-delete-confirm-cancel:hover {
    background: #f6f8fa;
    border-color: #8c959f;
}

.bugreport-front-delete-confirm-submit {
    background: #b91c1c;
    border: none;
    color: #fff;
}

.bugreport-front-delete-confirm-submit:hover {
    background: #991b1b;
}
