/* =============================================
   Guild Logs — detail view
   ============================================= */

@import "filters-LpKK0CJ.css";

.fight-topbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

.fight-topbar__search {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--bg-input, rgba(255,255,255,0.06));
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.3rem 0.6rem;
    color: var(--text-muted);
}

.fight-topbar__input {
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.85rem;
    width: 200px;
}

.fight-topbar__input::placeholder {
    color: var(--text-muted);
}

.fight-layout {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

/* =============================================
   Spell Filter Sidebar
   ============================================= */

/* Topbar : bouton spell filter + zoom box côte à côte — ne prend que la place nécessaire */
.spell-filter-topbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: fit-content;
    margin-bottom: 0.75rem;
}

/* Container — sticky, juste le bouton + le dropdown */
.spell-filter-container {
    position: sticky;
    top: 70px;
    height: 48px;
    align-self: flex-start;
    z-index: 200;
    padding-bottom: 8px;
}

/* Tab burger visible en permanence */
.spell-filter-tab {
    height: 48px;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    background: var(--bg-surface-1);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
}

.spell-filter-container:hover .spell-filter-tab {
    color: var(--text-primary);
    background: var(--bg-surface-2);
}

/* Sidebar dépliée au hover — absolute par rapport au container */
.spell-filter {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem;
    width: 400px;
    background: var(--bg-surface-1);
    border: 1px solid var(--border-primary);
    border-radius: 10px;
    position: absolute;
    top: 48px;
    left: 0;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    z-index: 200;
    box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

.spell-filter-container:hover .spell-filter {
    display: flex;
}

/* Zoom box inline */
.timeline-zoom-box {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    height: 48px;
    padding: 0 0.9rem;
    background: var(--bg-surface-1);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
}

.timeline-zoom-box__label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.spell-filter__categories {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.spell-filter__category {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.spell-filter__cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 0.15rem 0.3rem 0.15rem 0;
    border-radius: 4px;
    transition: background 0.12s;
    user-select: none;
}

.spell-filter__cat-header:hover {
    background: var(--bg-surface-2);
}

.spell-filter__cat-chevron {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 0.15s;
    margin-left: 4px;
}

.spell-filter__cat-collapse--collapsed .spell-filter__cat-chevron {
    transform: rotate(180deg);
}

.spell-filter__cat-btn {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    border: 1px solid var(--border-primary);
    background: var(--bg-surface-2);
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    text-align: left;
}
.spell-filter__cat-btn--all     { opacity: 1; }
.spell-filter__cat-btn--none    { opacity: 0.4; filter: grayscale(1); }
.spell-filter__cat-btn--partial { opacity: 0.7; }
.spell-filter__cat-btn:hover    { background: var(--bg-surface-3); opacity: 1; filter: none; }

/* Couleur par catégorie — label */
.spell-filter__cat-btn[data-category="cd_off"]      { color: #d4605a; border-color: #d4605a; } /* rouge brique    — offensif  */
.spell-filter__cat-btn[data-category="cd_def"]      { color: #5a8fd4; border-color: #5a8fd4; } /* bleu acier      — défensif  */
.spell-filter__cat-btn[data-category="raid_cd"]     { color: #58b86e; border-color: #58b86e; } /* vert sauge      — raid      */
.spell-filter__cat-btn[data-category="external_cd"] { color: #c8a030; border-color: #c8a030; } /* or              — externe   */
.spell-filter__cat-btn[data-category="trinket"]     { color: #a06898; border-color: #a06898; } /* mauve           — trinket   */
.spell-filter__cat-btn[data-category="potion"]      { color: #3ab8b0; border-color: #3ab8b0; } /* turquoise       — potion    */
.spell-filter__cat-btn[data-category="heal_potion"] { color: #e07878; border-color: #e07878; } /* rose saumon     — soin      */
.spell-filter__cat-btn[data-category="utility"]     { color: #8898a8; border-color: #8898a8; } /* gris bleuté     — utilitaire*/
.spell-filter__cat-btn[data-category="cc"]          { color: #d48830; border-color: #d48830; } /* orange brûlé    — CC        */
.spell-filter__cat-btn[data-category="mobility"]    { color: #7858d4; border-color: #7858d4; } /* violet          — mobilité  */

.spell-filter__class-group {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding-left: 2px;
    padding-bottom: 6px;
    margin-bottom: 2px;
}

.spell-filter__class-group + .spell-filter__class-group {
    border-top: 1px solid var(--border-primary);
    padding-top: 6px;
}

.spell-filter__class-bar {
    width: 3px;
    min-width: 3px;
    align-self: stretch;
    border-radius: 2px;
    opacity: 0.9;
    margin-top: 2px;
    margin-bottom: 2px;
}

.spell-filter__class-label {
    display: none;
}

.spell-filter__class-icons {
    display: flex;
    flex-wrap: wrap;
    column-gap: 5px;
    row-gap: 5px;
}

.spell-filter__spells {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

/* Sous-groupes spec dans un groupe de classe */
.spell-filter__class-subgroups {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.spell-filter__subgroup {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    padding: 2px 0;
}

.spell-filter__subgroup + .spell-filter__subgroup {
    border-top: 1px dashed var(--border-primary);
}

.spell-filter__subgroup-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    justify-content: flex-end;
}

.spell-filter__subgroup-label {
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    line-height: 1;
    white-space: nowrap;
    min-width: 52px;
    flex-shrink: 0;
}

.spell-filter__subgroup-label--baseline {
    font-weight: 400;
    opacity: 0.5;
    font-style: italic;
    text-transform: none;
    letter-spacing: 0;
}

.spell-filter__spell {
    width: 26px;
    height: 26px;
    padding: 0;
    border-radius: 4px;
    border: 1px solid var(--border-primary);
    background: transparent;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.15s, opacity 0.15s;
    opacity: 1;
}
.spell-filter__spell img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.spell-filter__spell--absent {
    opacity: 0.25;
    filter: grayscale(1);
    cursor: default;
    pointer-events: none;
}
.spell-filter__spell--inactive {
    opacity: 0.25;
    filter: grayscale(1);
}
.spell-filter__spell--active {
    opacity: 1;
    filter: none;
}

/* Couleur par catégorie — icône active */
.spell-filter__spell--active[data-category="cd_off"]      { border-color: #d4605a; }
.spell-filter__spell--active[data-category="cd_def"]      { border-color: #5a8fd4; }
.spell-filter__spell--active[data-category="raid_cd"]     { border-color: #58b86e; }
.spell-filter__spell--active[data-category="external_cd"] { border-color: #c8a030; }
.spell-filter__spell--active[data-category="trinket"]     { border-color: #a06898; }
.spell-filter__spell--active[data-category="potion"]      { border-color: #3ab8b0; }
.spell-filter__spell--active[data-category="heal_potion"] { border-color: #e07878; }
.spell-filter__spell--active[data-category="utility"]     { border-color: #8898a8; }
.spell-filter__spell--active[data-category="cc"]          { border-color: #d48830; }
.spell-filter__spell--active[data-category="mobility"]    { border-color: #7858d4; }
.spell-filter__spell--absent.spell-filter__spell--inactive {
    opacity: 0.15;
}
.spell-filter__spell:hover {
    border-color: var(--text-muted);
}


/* =============================================
   Timeline zoom wrapper
   ============================================= */


.spell-filter__actions {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-primary);
}

.spell-filter__actions-row {
    display: flex;
    gap: 0.4rem;
}

.spell-filter__actions-row .item-link-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0.45rem 0.65rem;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    background: var(--bg-input);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.spell-filter__actions-row .item-link-btn:hover {
    border-color: var(--border-primary);
    background: var(--bg-input-hover);
    color: var(--text-primary);
}

.spell-filter__actions-row .item-link-btn:focus-visible {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--shadow-primary-focus);
}

.spell-filter__search {
    width: 100%;
    box-sizing: border-box;
    min-height: 36px;
    padding: 0.55rem 0.75rem;
    font-size: 0.82rem;
    border-radius: 8px;
}

/* ── Range input (zoom) — partagé par .timeline-zoom-box ── */
#timeline-zoom {
    width: 120px;
    cursor: pointer;
    appearance: none;
    height: 14px;
    background: transparent;
    outline: none;
    padding: 0;
}

#timeline-zoom::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(
        to right,
        var(--color-primary) 0%,
        var(--color-primary) var(--zoom-pct, 0%),
        var(--border-primary-strong) var(--zoom-pct, 0%),
        var(--border-primary-strong) 100%
    );
}

#timeline-zoom::-webkit-slider-thumb {
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-top: -5px;
    background: var(--color-primary);
    border: 2px solid var(--bg-surface-1);
    box-shadow: 0 0 0 1px var(--color-primary);
    cursor: pointer;
    transition: transform 0.1s;
    position: relative;
    z-index: 1;
}

#timeline-zoom::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

#timeline-zoom::-moz-range-track {
    height: 4px;
    border-radius: 2px;
    background: var(--border-primary-strong);
}

#timeline-zoom::-moz-range-progress {
    height: 4px;
    border-radius: 2px;
    background: var(--color-primary);
}

#timeline-zoom::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-primary);
    border: 2px solid var(--bg-surface-1);
    box-shadow: 0 0 0 1px var(--color-primary);
    cursor: pointer;
}

.fight-timeline-zoom__level {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-primary);
    min-width: 2rem;
}

.fight-timeline-zoom {
    flex: 1;
    width: 0; /* force le conteneur à ne pas grandir avec son contenu */
    min-width: 0;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 70px;
    max-height: calc(100vh - 80px);
    overflow: hidden;
    background: linear-gradient(145deg, var(--bg-surface-1), var(--bg-surface-2));
    border-radius: 12px;
    border: 1px solid var(--border-primary);
}

/* Header scroll (ruler + boss) — no vertical scroll, synced horizontal */
.fight-timeline-zoom__scroll--header {
    overflow-x: auto;
    overflow-y: hidden;
    flex-shrink: 0;
    /* hide scrollbar — scroll is driven by the body */
    scrollbar-width: none;
}
.fight-timeline-zoom__scroll--header::-webkit-scrollbar { display: none; }

/* Mirror scrollbar (top) — same width as body, scrollbar only */
.fight-timeline-zoom__scroll--mirror {
    overflow-x: auto;
    overflow-y: hidden;
    flex-shrink: 0;
    height: 12px;
}

.fight-timeline-zoom__mirror-inner {
    height: 1px;
}

/* Body scroll (players) — both axes */
.fight-timeline-zoom__scroll--body {
    overflow-x: auto;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.fight-timeline-zoom__inner--header,
.fight-timeline-zoom__inner--body {
    display: flex;
    flex-direction: column;
}

/* =============================================
   Fight Timeline
   ============================================= */

.fight-timeline {
    display: flex;
    flex-direction: column;
    font-size: 0.8rem;
    overflow: visible;
}

/* Ruler row */
.fight-timeline__ruler-row {
    display: flex;
    align-items: stretch;
    width: 100%;
    background: var(--bg-primary-faint);
    border-bottom: 2px solid var(--border-primary-strong);
}

.fight-timeline__ruler {
    flex: 1;
    position: relative;
    height: 24px;
    min-width: 0;
}

.fight-timeline__tick {
    position: absolute;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    transform: translateX(-50%);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    user-select: none;
    padding: 0 2px;
}

.fight-timeline__tick::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 4px;
    background: var(--border-primary-strong);
}

/* Section headers */
.fight-timeline__section-header {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    background: var(--bg-primary-faint);
    border-top: 1px solid var(--border-primary);
    border-bottom: 1px solid var(--border-primary);
}

/* Rows */
.fight-timeline__row {
    display: flex;
    align-items: stretch;
    width: 100%;
    border-bottom: 1px solid var(--border-faint);
    min-height: 28px;
    transition: background 0.2s ease;
}

.fight-timeline__row:last-child {
    border-bottom: none;
}

.fight-timeline__row:hover {
    background: var(--bg-primary-ghost);
}

/* Label cell */
.fight-timeline__label-cell {
    width: 160px;
    min-width: 160px;
    padding: 0.35rem 0rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    font-weight: 600;
    color: var(--text-primary);
    border-right: 1px solid var(--border-primary);
    overflow: hidden;
    position: sticky;
    left: 0;
    background: linear-gradient(145deg, var(--bg-surface-1), var(--bg-surface-2));
    z-index: 2;
}

.fight-timeline__label-cell--has-lanes {
    overflow: visible;
}

.fight-timeline__label-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
}

.fight-timeline__spell-lane-label {
    position: absolute;
    right: 0.5rem;
    transform: translateY(-50%);
    font-size: 0.62rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90px;
    pointer-events: none;
    opacity: 0.85;
}

.fight-timeline__player-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.fight-timeline__player-spec {
    font-size: 0.7rem;
    font-weight: 400;
    opacity: 0.65;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.fight-timeline__label-cell--boss {
    color: #c47a7a;
    font-style: italic;
}

.fight-timeline__tracks-col {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.fight-timeline__tracks-col > .fight-timeline__track {
    flex: none;
}

.fight-timeline__track--gameplay {
    border-top: 1px dashed var(--border-faint);
    opacity: 0.85;
}

/* Lane separators */
.fight-timeline__lane-sep {
    position: absolute;
    left: 0;
    right: 0;
    height: 0;
    border-top: 1px dashed var(--border-faint);
    pointer-events: none;
    z-index: 0;
}

/* Track */
.fight-timeline__track {
    flex: 1;
    position: relative;
    min-width: 0;
    overflow: hidden;
}

/* Markers */
.fight-timeline__marker {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    transition: transform 0.1s ease, opacity 0.1s ease;
    opacity: 0.9;
    overflow: visible;
    z-index: 1;
    /* border sur l'img uniquement via les classes de catégorie */
    border: none;
    background: none;
    border-radius: 0;
    padding: 0;
}

.fight-timeline__marker img {
    width: 22px;
    height: 22px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
    border: 1px solid transparent;
    flex-shrink: 0;
}

.fight-timeline__marker-label {
    font-size: 0.6rem;
    line-height: 1;
    color: var(--text-muted);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

.fight-timeline__marker:hover {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
    z-index: 10;
}

/* Border coloré par catégorie — sur l'img */
.fight-timeline__marker--cd_off      img { border-color: #d4605a; }
.fight-timeline__marker--cd_def      img { border-color: #5a8fd4; }
.fight-timeline__marker--raid_cd     img { border-color: #58b86e; }
.fight-timeline__marker--external_cd img { border-color: #c8a030; }
.fight-timeline__marker--trinket     img { border-color: #a06898; }
.fight-timeline__marker--potion      img { border-color: #3ab8b0; }
.fight-timeline__marker--heal_potion img { border-color: #e07878; }
.fight-timeline__marker--utility     img { border-color: #8898a8; }
.fight-timeline__marker--cc          img { border-color: #d48830; }
.fight-timeline__marker--mobility    img { border-color: #7858d4; }
.fight-timeline__marker--boss        img { border-color: #e0c060; }



/* WoW class colors — couleur sur le texte directement */
.fight-timeline__label-cell--death-knight { color: var(--class-death-knight); }
.fight-timeline__label-cell--demon-hunter { color: var(--class-demon-hunter); }
.fight-timeline__label-cell--druid        { color: var(--class-druid); }
.fight-timeline__label-cell--evoker       { color: var(--class-evoker); }
.fight-timeline__label-cell--hunter       { color: var(--class-hunter); }
.fight-timeline__label-cell--mage         { color: var(--class-mage); }
.fight-timeline__label-cell--monk         { color: var(--class-monk); }
.fight-timeline__label-cell--paladin      { color: var(--class-paladin); }
.fight-timeline__label-cell--priest       { color: var(--class-priest); }
.fight-timeline__label-cell--rogue        { color: var(--class-rogue); }
.fight-timeline__label-cell--shaman       { color: var(--class-shaman); }
.fight-timeline__label-cell--warlock      { color: var(--class-warlock); }
.fight-timeline__label-cell--warrior      { color: var(--class-warrior); }

.log-bosses {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ---- Boss card ---- */

.log-boss-card {
    background: linear-gradient(145deg, var(--bg-surface-1), var(--bg-surface-2));
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    overflow: hidden;
}

.log-boss-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    background: var(--bg-primary-faint);
    border-bottom: 1px solid var(--border-primary);
}

.log-boss-card__title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.log-boss-card__name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.log-boss-card__diff {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}

.log-boss-card__diff--normal {
    background: rgba(52, 152, 219, 0.15);
    color: var(--color-normal, #3498db);
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.log-boss-card__diff--heroic {
    background: rgba(155, 89, 182, 0.15);
    color: var(--color-heroic, #9b59b6);
    border: 1px solid rgba(155, 89, 182, 0.3);
}

.log-boss-card__diff--mythic {
    background: rgba(230, 126, 34, 0.15);
    color: var(--color-mythic, #e67e22);
    border: 1px solid rgba(230, 126, 34, 0.3);
}

.log-boss-card__summary {
    font-size: 0.9rem;
    font-weight: 600;
}

.log-boss-card__summary--kill {
    color: var(--color-success, #4caf50);
}

.log-boss-card__summary--wipe {
    color: #c47a7a;
}

.log-boss-card__best {
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 0.25rem;
}

/* ---- Pulls row ---- */

.log-boss-card__pulls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.85rem 1.25rem;
}

/* ---- Single pull chip ---- */

.log-pull {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border: 1px solid;
    min-width: 80px;
    text-align: center;
    text-decoration: none;
    color: inherit;
}

a.log-pull--treated-link {
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

a.log-pull--treated-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.log-pull--kill {
    background: rgba(76, 175, 80, 0.08);
    border-color: rgba(76, 175, 80, 0.3);
}

.log-pull--wipe {
    background: rgba(244, 67, 54, 0.08);
    border-color: rgba(244, 67, 54, 0.2);
}

.log-pull__status {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.log-pull__label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.log-pull__label--kill {
    color: var(--color-success, #4caf50);
}

.log-pull__label--wipe {
    color: #c47a7a;
}

.log-pull--kill .log-pull__status svg {
    color: var(--color-success, #4caf50);
}

.log-pull--wipe .log-pull__status svg {
    color: #c47a7a;
}

.log-pull__duration {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.log-pull__time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.log-pull__boss-pct {
    font-size: 0.75rem;
    font-weight: 700;
    color: #c47a7a;
}

.log-pull__boss-pct--gray {
    color: #a3a9b4;
}

.log-pull__boss-pct--green {
    color: #62bf7a;
}

.log-pull__boss-pct--blue {
    color: #63a8ff;
}

.log-pull__boss-pct--violet {
    color: #a335ee;
}

.log-pull__boss-pct--orange {
    color: #f2a556;
}

.log-pull__treated {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 0.15rem;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.log-pull__treated--treated {
    color: var(--color-primary, #7c6af7);
}

.log-pull__treated--loaded {
    color: var(--color-warning, #f0a500);
}

.log-pull__treated--pending {
    color: var(--text-muted);
    opacity: 0.6;
}



/* ---- Log list — boss summary inline ---- */

.log-boss-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 0.5rem;
}

.log-boss-summary__item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.82rem;
}

.log-boss-summary__name {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    white-space: nowrap;
}

.log-boss-summary__pulls {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.log-boss-summary__kill {
    color: var(--color-success, #4caf50);
    font-weight: 600;
    font-size: 0.8rem;
}

.log-boss-summary__wipe {
    color: #c47a7a;
    font-size: 0.8rem;
}

.log-boss-summary__img {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border-primary);
}

.log-boss-card__img {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border-primary);
}

.log-detail-header__img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border-primary);
}

/* ---- Guild logs list filters + compact bosses ---- */
.page-title__heading {
    margin: 0;
}

.guild-logs-content {
    min-width: 0;
}

#guild-logs-filters {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 1rem;
}

.guild-logs-filter-empty {
    display: none;
    margin-bottom: 1rem;
    padding: 0.8rem 0.95rem;
    border: 1px dashed var(--border-faint);
    border-radius: 8px;
    color: var(--text-muted);
    background: var(--bg-input-faint);
}

.guild-logs-col-title { width: 220px; }
.guild-logs-col-date { width: 110px; }
.guild-logs-col-duration { width: 120px; }
.guild-logs-col-actions { width: 170px; }

.guild-logs-title {
    font-weight: 600;
}

.guild-logs-owner,
.guild-logs-time {
    font-size: 0.8rem;
}

.guild-logs-date-cell,
.guild-logs-duration-cell {
    white-space: nowrap;
}

.guild-logs-actions {
    display: flex;
    gap: 0.5rem;
}

.log-boss-compact {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.log-boss-compact__row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: start;
    gap: 0.45rem;
    min-width: 0;
}

.log-diff-badge {
    font-size: 0.62rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 3px;
    min-width: 20px;
    text-align: center;
}

.log-diff-badge--mythic { background: rgba(243,156,18,0.15); color: var(--color-mythic); border: 1px solid rgba(243,156,18,0.3); }
.log-diff-badge--heroic { background: rgba(187,143,206,0.15); color: var(--color-heroic); border: 1px solid rgba(187,143,206,0.3); }
.log-diff-badge--normal { background: rgba(93,173,226,0.15); color: var(--color-normal); border: 1px solid rgba(93,173,226,0.3); }

.log-boss-compact__img {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    object-fit: cover;
    object-position: top center;
    border: 1px solid var(--border-primary);
    flex-shrink: 0;
}

.log-boss-compact__boss-list {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.35rem;
    min-width: 0;
    overflow: hidden;
}

.log-boss-compact__boss {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 2px 7px 2px 3px;
    border: 1px solid var(--border-faint);
    border-radius: 5px;
    background: var(--bg-input-faint);
    min-height: 40px;
    box-sizing: border-box;
}

.log-boss-compact__stats {
    display: inline-flex;
    gap: 0.28rem;
    white-space: nowrap;
    font-size: 0.75rem;
    font-weight: 700;
}

.log-boss-compact__img--placeholder {
    display: inline-block;
    background: var(--bg-surface-2);
    border-color: var(--border-faint);
}

.app-table td {
    min-width: 0;
}

.log-boss-compact__kill {
    color: var(--color-success, #4caf50);
}

.log-boss-compact__wipe {
    color: #c47a7a;
}
