/* ── War Losses plugin styles ── */

.war-losses-wrap {
    font-family: inherit;
    margin: 3em 0!important;
}

/* Header — поза кольоровим блоком */
.war-losses__header {
    font-size: 0.82em;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
    line-height: 1.3;
    color: #004F92;
}

.war-losses__header strong {
    font-weight: 800;
}

/* Кольоровий контейнер */
.war-losses {
    background: #E1EEF6;
    padding: 10px 18px;
    box-sizing: border-box;
    width: 100%;
}

/* ════════════════════════════
   Horizontal banner (default)
   ════════════════════════════ */
.war-losses--horizontal .war-losses__grid {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;

    /* Firefox */
    scrollbar-width: thin;
    scrollbar-color: #a8c8df transparent;
}

/* Chrome / Safari / Edge */
.war-losses--horizontal .war-losses__grid::-webkit-scrollbar {
    height: 3px;
}

.war-losses--horizontal .war-losses__grid::-webkit-scrollbar-track {
    background: transparent;
}

.war-losses--horizontal .war-losses__grid::-webkit-scrollbar-thumb {
    background: #a8c8df;
    border-radius: 2px;
}

.war-losses--horizontal .war-losses__item {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    padding: 0 14px;
    border-left: 1px solid rgba(0, 0, 0, 0.18);
}

.war-losses--horizontal .war-losses__item:first-child {
    padding-left: 0;
    border-left: none;
}

/* icon above label */
.war-losses__icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    width: 3em;
    height: 3em;
}

.war-losses--horizontal .war-losses__icon-wrap {
    margin-bottom: 4px;
}

.war-losses__icon-wrap svg {
    width: 72%;
    height: 72%;
    fill: currentColor;
    display: block;
    overflow: visible;
}

/* Особовий склад — іконка значно менша візуально, збільшуємо */
.war-losses__icon-wrap--personnel_units svg {
    width: 92%;
    height: 92%;
}


.war-losses--horizontal .war-losses__label {
    font-size: 0.62em;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    color: #000;
    margin-bottom: 1px;
}

.war-losses--horizontal .war-losses__number-row {
    display: flex;
    align-items: baseline;
    gap: 3px;
    flex-wrap: nowrap;
}

.war-losses--horizontal .war-losses__total {
    font-size: 1em;
    font-weight: 800;
    color: #000;
    white-space: nowrap;
}

.war-losses--horizontal .war-losses__delta {
    font-size: 0.8em;
    font-weight: 700;
    color: #004F92;
    white-space: nowrap;
}

/* ════════════════════════════
   Vertical list
   ════════════════════════════ */
.war-losses--vertical .war-losses__grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.war-losses--horizontal .war-losses__item {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    padding: 10px 16px;
    border-left: 1px solid #76B7DD;
}

.war-losses--vertical .war-losses__item:last-child {
    border-bottom: none;
}


.war-losses--vertical .war-losses__label {
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    flex: 1;
    color: #000;
}

.war-losses--vertical .war-losses__number-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-left: auto;
}

.war-losses--vertical .war-losses__total {
    font-size: 1em;
    font-weight: 800;
    color: #000;
    white-space: nowrap;
}

.war-losses--vertical .war-losses__delta {
    font-size: 0.8em;
    font-weight: 700;
    color: #004F92;
    white-space: nowrap;
}

.war-losses__error {
    color: #c0392b;
    font-style: italic;
}
