.bis-history {
    padding-top: 24px;
    padding-bottom: 80px;
}

.bis-history__list {
    display: grid;
    gap: 10px;
}

.bis-history__card {
    min-height: 150px;
    padding: 25px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border: 1px solid #dedee4;
    border-radius: 18px;
    background: #fff;
    box-sizing: border-box;
}

.bis-history__content {
    min-width: 0;
}

.bis-history__statuses {
    min-height: 29px;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.bis-history__status {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.35;
}

.bis-history__status--complete {
    color: #208d4e;
    background: #e7f8ec;
}

.bis-history__status--draft {
    color: #5f606a;
    background: #ececf0;
}

.bis-history__status--submitted {
    color: #2262dc;
    background: #eaf1ff;
}

.bis-history__status--reception {
    border: 0;
    color: #fff;
    background: #34343f;
    cursor: pointer;
}

.bis-history__status--reception:disabled {
    cursor: wait;
    opacity: 0.6;
}

.bis-history__card h2 {
    margin: 0 0 9px;
    color: #17171c;
    font-size: 16px;
    font-weight: 600;
}

.bis-history__card dl {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 0;
    color: #8b8b94;
    font-size: 13px;
}

.bis-history__card dl div {
    display: flex;
    gap: 6px;
}

.bis-history__card dt,
.bis-history__card dd {
    margin: 0;
    font-weight: 400;
}

.bis-history__action {
    flex: 0 0 auto;
    min-width: 112px;
    min-height: 48px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 24px;
    color: #34343d;
    background: #f4f5f7;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-sizing: border-box;
}

.bis-history__actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bis-history__action--edit {
    color: #fff;
    background: #292931;
}

.bis-history__action--delete {
    min-width: 72px;
    border: 1px solid #d6d6dc;
    color: #5f606a;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
}

.bis-history__action--delete:disabled {
    cursor: wait;
    opacity: 0.6;
}

.bis-history__action span {
    font-size: 18px;
    line-height: 1;
}

.bis-history__state {
    display: flex;
    min-height: 220px;
    align-items: center;
    justify-content: center;
    margin: 0;
    color: #777780;
    font-size: 16px;
}

.bis-history__state--error {
    color: #d43838;
}

.bis-history__pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 52px;
}

.bis-history__pagination[hidden] {
    display: none;
}

.bis-history__pagination > button {
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #2262dc;
    background: transparent;
    font-size: 20px;
    font-weight: 600;
}

.bis-history__pagination > button:not(:disabled):hover {
    background: #f0f4ff;
}

.bis-history__pagination > button:disabled {
    cursor: default;
    opacity: 0.4;
}

.bis-history__page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.bis-history__pagination .bis-history__page-number {
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #222229;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.bis-history__pagination .bis-history__page-number:hover,
.bis-history__pagination .bis-history__page-number.is-active {
    color: #222229;
    background: #e7e7e9;
    transform: none;
}

.bis-history__list.is-page-forward {
    animation: bis-history-page-forward .28s ease-out;
}

.bis-history__list.is-page-backward {
    animation: bis-history-page-backward .28s ease-out;
}

@keyframes bis-history-page-forward {
    from { opacity: 0; transform: translateX(24px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes bis-history-page-backward {
    from { opacity: 0; transform: translateX(-24px); }
    to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 767px) {
    .bis-history {
        padding-top: 18px;
        padding-bottom: 50px;
    }

    .bis-history__card {
        min-height: 0;
        padding: 20px;
        align-items: flex-start;
        gap: 12px;
        border-radius: 14px;
    }

    .bis-history__card dl {
        display: grid;
        gap: 4px;
    }

    .bis-history__action {
        min-width: 92px;
        min-height: 42px;
        padding: 0 14px;
        font-size: 13px;
    }

    .bis-history__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .bis-history__action--delete {
        min-width: 92px;
    }

    .bis-history__pagination {
        gap: 10px;
        margin-top: 34px;
    }

    .bis-history__pagination > button {
        width: 38px;
        height: 38px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bis-history__list.is-page-forward,
    .bis-history__list.is-page-backward {
        animation: none;
    }
}
