﻿.fixed-matrix-page {
    display: grid;
    gap: 14px;
}

.fixed-matrix-page__header {
    display: grid;
    gap: 4px;
}

.fixed-matrix-page__header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.fixed-matrix-page__header p {
    margin: 0;
    color: #415270;
    font-size: 0.92rem;
}

.fixed-matrix-card {
    border: 1px solid #d6deed;
    border-radius: 14px;
    background: #fff;
    padding: 12px;
}

.fixed-matrix-filters {
    display: grid;
    grid-template-columns: 160px 1fr auto;
    gap: 10px;
    align-items: end;
}

.field {
    display: grid;
    gap: 6px;
}

.field span {
    font-size: 0.84rem;
    color: #22314f;
    font-weight: 600;
}

.field select,
.field input {
    width: 100%;
    min-height: 36px;
    border: 1px solid #bfcce3;
    border-radius: 8px;
    padding: 6px 8px;
    font-size: 0.92rem;
}

.actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-load {
    border: 1px solid #264b8f;
    background: #2f66cc;
    color: #fff;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

#msg {
    font-size: 0.84rem;
    color: #1f6c2f;
}

#msg.is-error {
    color: #b02323;
}

.table-wrap {
    overflow: auto;
}

.matrix-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 620px;
}

.matrix-table th,
.matrix-table td {
    border: 1px solid #d6deed;
    padding: 6px;
    text-align: center;
    font-size: 0.87rem;
}

.matrix-table th {
    background: #f6f8fc;
    font-weight: 700;
}

.matrix-table .left-col {
    width: 280px;
    min-width: 280px;
    text-align: left;
}

.monster-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.monster-cell img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex: 0 0 auto;
}

.monster-texts {
    display: grid;
    gap: 2px;
}

.monster-texts span {
    font-size: 0.78rem;
    color: #546684;
}

.has-value {
    font-weight: 700;
    color: #1f3152;
    background: #eef4ff;
}

.no-value {
    color: #7f8fa9;
}

.is-empty {
    padding: 14px;
    color: #6b7b97;
}

@media (max-width: 800px) {
    .fixed-matrix-filters {
        grid-template-columns: 1fr;
    }

    .actions {
        justify-content: space-between;
    }
}
