.amount-detail-link { display: inline-block; width: max-content; justify-self: end; color: inherit; border: 0; border-bottom: 1px dashed #648a9c; background: none; padding: 0; font: inherit; cursor: pointer; text-decoration: none; white-space: nowrap; }
.amount-detail-link:hover, .amount-detail-link:focus-visible { color: #32e4d2; border-color: currentColor; }
.amount-details-dialog { box-sizing: border-box; width: min(900px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); padding: 0; border: 1px solid #30485e; border-radius: 18px; background: #101e30; color: #e5edf6; box-shadow: 0 24px 100px #0009; }
.amount-details-dialog::backdrop { background: #040b17bd; }
.amount-details-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-bottom: 1px solid #2b4056; background: #182a3e; position: sticky; top: 0; z-index: 1; }
.amount-details-toolbar button { color: #dcebf5; background: transparent; border: 1px solid #45637b; border-radius: 8px; padding: 6px 12px; cursor: pointer; font: inherit; }
.amount-details-toolbar button:disabled { visibility: hidden; }
.amount-details-content { padding: 22px; }
.amount-details-content h2 { margin: 4px 0 10px; }
.amount-details-total { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 16px 0; border-bottom: 1px solid #2b4056; }
.amount-details-total strong { color: #32e4d2; font-size: 24px; }
.amount-details-warning { border-left: 3px solid #f4c975; padding: 10px 14px; background: #f4c97510; color: #f4d599; border-radius: 4px; }
.amount-details-table-wrap { overflow-x: auto; }
.amount-details-table { width: 100%; border-collapse: collapse; min-width: 0; }
.amount-details-table th, .amount-details-table td { padding: 12px 10px; text-align: left; border-bottom: 1px solid #2b4056; vertical-align: top; }
.amount-details-table th { font-size: 11px; color: #a5bad1; background: #182a3e; position: static; }
.amount-details-table td { font-size: 13px; overflow-wrap: anywhere; white-space: normal; }
.amount-details-table td.amount-details-number { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.amount-details-table td.amount-details-number.negative { color: #ff748a; }
.amount-details-table th:last-child { text-align: right; }
.amount-details-table small { display: block; margin-top: 5px; }
.amount-details-table a { color: #32e4d2; }
.amount-details-date { width: 90px; }
.amount-details-pagination { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; font-size: 13px; }
.amount-details-page { max-width: 900px; margin: auto; }
@media (max-width: 600px) {
    .amount-details-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 12px; }
    .amount-details-content { padding: 14px; }
    .amount-details-table th, .amount-details-table td { padding: 9px 5px; font-size: 11px; }
    .amount-details-date { width: 64px; }
    .amount-details-total strong { font-size: 20px; }
}
