.report-cabinet {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.report-cabinet .hero__eyebrow,
.report-modal .hero__eyebrow {
    color: #2563b7;
}

.report-cabinet__balance {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding: 20px;
}

.report-cabinet__balance > div {
    display: flex;
    flex: 1 1 120px;
    flex-direction: column;
    gap: 4px;
}

.report-cabinet__balance span,
.report-modal__field small {
    color: var(--muted);
    font-size: 13px;
}

.report-cabinet__balance strong {
    font-size: 28px;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.detail-specs dd {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.detail-specs__report-link {
    min-height: 36px;
}

.detail-specs__report-link svg {
    width: 16px;
    height: 16px;
}

.detail-specs__report-link.is-report-owned {
    border-color: rgba(22, 114, 77, 0.34);
    color: #16724d;
}

.report-modal {
    position: fixed;
    z-index: 1200;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.report-modal[hidden] {
    display: none;
}

.report-modal [hidden] {
    display: none;
}

.report-modal__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.56);
    cursor: pointer;
}

.report-modal__dialog {
    position: relative;
    width: min(100%, 620px);
    max-height: min(86dvh, 720px);
    overflow: auto;
    border: 1px solid rgba(176, 196, 224, 0.8);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.24);
}

.report-modal__head,
.report-modal__actions,
.report-package {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.report-modal__head {
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid rgba(208, 220, 238, 0.86);
}

.report-modal__head h2 {
    margin: 4px 0 0;
    font-size: 24px;
}

.report-modal__close {
    display: inline-flex;
    width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid #d2def0;
    border-radius: 50%;
    background: #f4f8fd;
    color: var(--ink);
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
}

.report-modal__close:focus-visible,
.report-modal__close:hover {
    border-color: rgba(10, 141, 255, 0.42);
    outline: none;
}

.report-modal__body {
    padding: 20px;
}

.report-modal__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-weight: 700;
}

.report-modal__field input {
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #c9d7eb;
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.report-modal__field input:focus-visible {
    border-color: var(--primary);
    outline: 3px solid rgba(10, 141, 255, 0.18);
}

.report-modal__result {
    min-height: 22px;
    margin-top: 16px;
    color: var(--muted);
    line-height: 1.45;
}

.report-modal__result--success {
    color: #16724d;
}

.report-modal__result--error {
    color: #b42318;
}

.report-modal__balance {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.report-modal__actions {
    justify-content: flex-end;
    margin-top: 16px;
}

.report-modal__actions .btn,
.report-package .btn {
    min-height: 44px;
}

.report-modal__packages {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(208, 220, 238, 0.86);
}

.report-package {
    padding: 12px;
    border: 1px solid rgba(176, 196, 224, 0.78);
    border-radius: 12px;
}

.report-package span {
    flex: 1 1 180px;
}

.report-cabinet__history .admin-table__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.report-cabinet__status-message {
    flex: 1 1 100%;
    max-width: 280px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
    white-space: normal;
    overflow-wrap: anywhere;
}

.report-cabinet__status-message:empty {
    display: none;
}

@media (max-width: 900px) {
    .report-cabinet__history .admin-table--responsive {
        width: 100%;
        min-width: 0;
        table-layout: fixed;
    }

    .report-cabinet__history .admin-table--responsive th,
    .report-cabinet__history .admin-table--responsive td {
        overflow-wrap: anywhere;
        white-space: normal;
    }

    .report-cabinet__history .admin-table--responsive td.admin-table__actions {
        display: flex;
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
        white-space: normal;
    }

    .report-cabinet__history .admin-table--responsive td.admin-table__actions > .btn {
        width: 100%;
        min-height: 44px;
        justify-content: center;
        white-space: normal;
    }
}

@media (max-width: 640px) {
    .report-cabinet__balance,
    .report-modal__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .report-cabinet__balance .btn,
    .report-modal__actions .btn {
        width: 100%;
    }

    .report-modal {
        align-items: flex-end;
        padding: 8px;
    }

    .report-modal__dialog {
        max-height: 90dvh;
        border-radius: 16px 16px 0 0;
    }

    .report-modal__head,
    .report-modal__body {
        padding: 16px;
    }

    .report-package .btn {
        flex: 1 1 auto;
    }

}
