/* The Investments dividends page (/admin/investments/dividends): page-specific styles on top of investments-area.css.
   The hero (two columns on a wide window, glass tiles), Income History, Income by Holding, the income calendar (in the
   Recurring calendar's look), Coming Up, Income vs your bills, Recent Payments, the foreign tax note and the as-of line.
   Classes are prefixed ivd-; every color is an --iv-* token (light on :root, dark on [data-bs-theme="dark"]). */

:root {
    --ivd-glass: var(--tx-glass, rgba(255, 255, 255, .70));
    --ivd-glass-border: #DDE3EC;
    --ivd-average: #94A3B8;
    --ivd-line: rgba(15, 23, 42, .06);
    --ivd-month: #F7F9FB;
    --ivd-month-border: #E4E9EF;
    --ivd-surface: #FFFFFF;
}

[data-bs-theme="dark"] {
    --ivd-glass: rgba(255, 255, 255, .08);
    --ivd-glass-border: rgba(255, 255, 255, .12);
    --ivd-average: rgba(226, 232, 240, .70);
    --ivd-line: rgba(255, 255, 255, .06);
    --ivd-month: rgba(255, 255, 255, .03);
    --ivd-month-border: #232A3A;
    --ivd-surface: #141A28;
}

/* ------------------------------------------------------------------ Page states */

.iv-page-dividends .ivd-state { padding: 2.25rem 1.25rem; }
.iv-page-dividends .rc-state-glyph.rc-tone-investment { background: var(--iv-icon-bg); color: var(--iv-icon); }
.iv-page-dividends .ivd-state .iv-btn { min-height: 38px; }

/* ------------------------------------------------------------------ Hero */

.ah.iv-hero.ivd-hero { grid-template-columns: minmax(0, 1fr); }
.ivd-hero-main { min-height: 280px; }
.ivd-hero-content { gap: .4rem; padding: .9rem 1.1rem; max-width: 100%; }
.ivd-hero-help { margin-left: .15rem; }
.ivd-hero .ah-caption { font-size: .8125rem; letter-spacing: .04em; }
.ivd-hero .ah-value { font-size: 1.75rem; }

.ivd-hero-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 2px; }
.ivd-change { gap: .3rem; background: var(--iv-icon-bg); color: var(--iv-tone, var(--iv-green)); font-size: .72rem; }
.ivd-change b { color: inherit; font-weight: 600; }
.ivd-runrate { font-size: .78rem; font-weight: 500; color: var(--ah-text); font-variant-numeric: tabular-nums; }
.ivd-hero-sub { margin: 0; font-size: .72rem; color: var(--ah-muted); }

.ivd-hero-context {
    position: absolute;
    right: 16px;
    bottom: 14px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
    padding: 4px 9px;
    border-radius: 10px;
    background: var(--ah-value-pill);
    pointer-events: auto;
}

.ivd-hero-context .ah-scope { letter-spacing: .06em; font-weight: 600; }
.ivd-hero-context-value { font-family: var(--tx-font); font-size: .95rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ah-text); }

.ivd-hero-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
    border-left: 0;
    border-top: 1px solid var(--ah-border);
}

.ivd-glass {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    padding: 11px 12px 10px;
    border: 1px solid var(--ivd-glass-border);
    border-radius: 12px;
    background: var(--ivd-glass);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.ivd-glass-badge {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--iv-icon-bg);
    color: var(--iv-icon);
    font-size: 12px;
}

.ivd-glass-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ivd-glass-caption { font-size: 9.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ah-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ivd-glass-value { font-family: var(--tx-font); font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ah-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ivd-glass-hint { font-size: 10.5px; line-height: 1.35; color: var(--ah-muted); }
.ivd-glass-bone { flex-direction: column; gap: 8px; }

@media (min-width: 992px) {
    .ah.iv-hero.ivd-hero { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
    .ivd-hero-tiles { align-content: center; padding: 16px; border-top: 0; border-left: 1px solid var(--ah-border); }
}

@media (min-width: 1400px) {
    .ivd-hero-tiles { gap: 14px; padding: 18px 20px; }
    .ivd-glass { padding: 13px 14px 12px; }
    .ivd-glass-value { font-size: 19px; }
}

@media (max-width: 575.98px) {
    .ivd-hero-main { min-height: 250px; }
    .ivd-hero .ah-value { font-size: 1.5rem; }
    .ivd-hero-tiles { gap: 8px; padding: 10px; }
    .ivd-glass { padding: 9px 10px; gap: 8px; }
    .ivd-glass-badge { display: none; }
    .ivd-glass-value { font-size: 15.5px; }
    .ivd-hero-context { right: 10px; bottom: 10px; }
}

/* ------------------------------------------------------------------ Shared pieces */

.ivd-grid { align-items: stretch; }
.ivd-grid > .iv-card { height: 100%; }
.ivd-callout { margin: 0 0 12px; }
.ivd-callout .tx-glyph { flex: 0 0 auto; }

.ivd-tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.ivd-tiles .iv-stat { padding: 9px 11px; }

.ivd-chart { position: relative; min-width: 0; }

.ivd-chart-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 180px;
    padding: 1rem;
    border: 1px dashed var(--iv-tile-border);
    border-radius: 12px;
    color: var(--iv-muted);
    font-size: 12.5px;
    text-align: center;
}

.ivd-range-pill {
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--iv-icon-bg);
    color: var(--iv-icon);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.ivd-link {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: 4px 8px;
    border-radius: 9px;
    color: var(--iv-green);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.ivd-link:hover { background: var(--iv-icon-bg); color: var(--iv-green); }
.ivd-link .tx-glyph { font-size: 10px; }

@media (max-width: 575.98px) {
    .ivd-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .ivd-tiles .iv-stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .ivd-tiles .iv-stat-chip { display: none; }
}

/* ------------------------------------------------------------------ Income History */

.ivd-seg-row { margin-bottom: 12px; }
.tx-seg.ivd-seg { max-width: 440px; }

.ivd-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 16px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.ivd-legend-item { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; }
.ivd-legend-label { color: var(--iv-muted); }
.ivd-legend-amount { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--iv-text); }
.ivd-swatch { display: inline-block; width: 9px; height: 9px; border-radius: 3px; background: var(--ivd-accent, var(--iv-green)); flex: 0 0 auto; }
.ivd-swatch-dash { width: 14px; height: 0; border-radius: 0; border-top: 2px dashed var(--ivd-average); background: transparent; }
.ivd-swatch-partial { background: color-mix(in srgb, var(--iv-green-bright) 32%, transparent); border: 1px solid var(--iv-hero-secondary); }

/* ------------------------------------------------------------------ Income by Holding */

.ivd-donut { position: relative; margin: -4px auto 0; max-width: 360px; }
.ivd-donut-chart { min-height: 230px; }

.ivd-donut-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    pointer-events: none;
    text-align: center;
}

.ivd-donut-caption { font-size: 9.5px; font-weight: 600; letter-spacing: .08em; color: var(--iv-muted); }
.ivd-donut-symbol { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--tx-font); font-size: 20px; font-weight: 600; color: var(--iv-text); }
.ivd-donut-share { font-size: 11.5px; color: var(--iv-muted); }
.ivd-mix-narrative { margin: 2px 0 10px; font-size: 12px; line-height: 1.45; color: var(--iv-muted); text-align: center; }

.ivd-holdings { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.ivd-holding + .ivd-holding { border-top: 1px solid var(--ivd-line); }

.ivd-holding-body {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 11px;
    width: 100%;
    padding: 10px 6px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--iv-text);
    font: inherit;
    text-align: left;
}

.ivd-holding-body.is-clickable { cursor: pointer; transition: background-color .15s ease; }
.ivd-holding-body.is-clickable:hover { background: var(--iv-row-hover); }

.ivd-holding-badge {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--ivd-accent, var(--iv-green)) 18%, transparent);
}

.ivd-holding-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ivd-accent, var(--iv-green)); }
.ivd-holding-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ivd-holding-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ivd-holding-symbol { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--tx-font); font-size: 13.5px; font-weight: 600; }

.ivd-status {
    flex: 0 0 auto;
    padding: 1px 6px;
    border-radius: 8px;
    background: var(--iv-tile);
    border: 1px solid var(--iv-tile-border);
    color: var(--iv-muted);
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: .04em;
}

.ivd-holding-figures { display: inline-flex; align-items: baseline; gap: 6px; margin-left: auto; flex: 0 0 auto; }
.ivd-holding-income { font-family: var(--tx-font); font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ivd-holding-share { font-size: 11.5px; color: var(--iv-muted); font-variant-numeric: tabular-nums; }
.ivd-holding-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; color: var(--iv-muted); }

.ivd-share-track { display: block; height: 6px; border-radius: 3px; background: var(--iv-track); overflow: hidden; }
.ivd-share-fill { display: block; height: 100%; border-radius: inherit; background: var(--ivd-accent, var(--iv-green)); transition: width .5s cubic-bezier(.2, .8, .2, 1); }

.ivd-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 6px; }

.ivd-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 1px 7px;
    border-radius: 8px;
    background: var(--iv-tile);
    border: 1px solid var(--iv-tile-border);
    color: var(--iv-muted);
    font-size: 10.5px;
    font-weight: 600;
    white-space: nowrap;
}

.ivd-pill .tx-glyph { font-size: 9px; }
.ivd-pill-green { background: var(--iv-icon-bg); border-color: transparent; color: var(--iv-icon); }
.ivd-last-paid { font-size: 11px; color: var(--iv-muted); }

.ivd-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    width: 100%;
    min-height: 44px;
    margin-top: 4px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--iv-green);
    font-family: var(--tx-font);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.ivd-toggle:hover { background: var(--iv-icon-bg); }
.ivd-toggle .tx-glyph { font-size: 11px; }

/* ------------------------------------------------------------------ Coming Up and payment rows (the Recurring look) */

.ivd-group + .ivd-group { margin-top: 14px; }
.ivd-group-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; padding: 0 4px; }
.ivd-group-title { font-family: var(--tx-font); font-size: 13px; font-weight: 600; color: var(--iv-text); }
.ivd-group-caption { font-size: 11.5px; color: var(--iv-muted); }
.ivd-group-amount { margin-left: auto; font-family: var(--tx-font); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--iv-green); white-space: nowrap; }

.ivd-up-rows { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }

.ivd-up-row {
    display: grid;
    grid-template-columns: 42px 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 14px;
    background: var(--iv-tile);
    border: 1px solid transparent;
}

[data-bs-theme="dark"] .ivd-up-row { border-color: var(--iv-tile-border); }

.ivd-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 46px;
    border-radius: 12px;
    border: 1px solid var(--iv-tile-border);
    background: var(--ivd-surface);
    color: var(--iv-text);
}
.ivd-date.is-soon { background: var(--iv-icon-bg); border-color: transparent; color: var(--iv-icon); }
.ivd-date-month { font-size: 9.5px; font-weight: 700; letter-spacing: .06em; color: var(--iv-green); }
.ivd-date-day { font-family: var(--tx-font); font-size: 17px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ivd-up-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ivd-up-symbol { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--tx-font); font-size: 13.5px; font-weight: 600; color: var(--iv-text); }
.ivd-up-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; color: var(--iv-muted); }
.ivd-up-figures { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; text-align: right; }
.ivd-up-amount { font-family: var(--tx-font); font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--iv-green); white-space: nowrap; }
.ivd-up-when { font-size: 11px; color: var(--iv-muted); white-space: nowrap; }
.ivd-up-when.is-soon { color: var(--iv-green); font-weight: 600; }

@media (max-width: 575.98px) {
    .ivd-up-row { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 8px; padding: 8px; }
    .ivd-up-row > .iv-logo { display: none; }
    .ivd-date { width: 40px; height: 44px; }
}

/* ------------------------------------------------------------------ Income calendar */

.ivd-calendar-chart { margin-bottom: 4px; }
.ivd-cal-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 10px; }
.ivd-cal-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; align-content: start; }

.ivd-month {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    min-height: 98px;
    min-width: 0;
    padding: 8px;
    border: 2px solid transparent;
    border-radius: 14px;
    background: var(--ivd-month);
    box-shadow: inset 0 0 0 1px var(--ivd-month-border);
    color: var(--iv-text);
    font: inherit;
    text-align: left;
    transition: background-color .15s ease, border-color .15s ease, transform .1s ease;
}

.ivd-month.is-active { cursor: pointer; }
.ivd-month.is-active:hover { background: var(--iv-row-hover); }
.ivd-month.is-active:active { transform: scale(.98); }
.ivd-month:disabled { cursor: default; opacity: .62; }
.ivd-month.is-current { background: color-mix(in srgb, var(--iv-green) 7%, var(--ivd-month)); }
.ivd-month.is-selected { border-color: var(--iv-green); box-shadow: none; background: color-mix(in srgb, var(--iv-green) 10%, var(--ivd-month)); }

.ivd-month-top { display: flex; align-items: baseline; justify-content: space-between; gap: 4px; min-width: 0; }
.ivd-month-name { font-family: var(--tx-font); font-size: 12.5px; font-weight: 700; letter-spacing: .04em; }
.ivd-month.is-selected .ivd-month-name { color: var(--iv-green); }
.ivd-month-year { font-size: 10px; font-weight: 600; color: var(--iv-light); }

.ivd-bubbles { display: flex; align-items: center; min-height: 26px; padding-left: 4px; }
.ivd-bubble { display: inline-flex; margin-left: -6px; border: 2px solid var(--ivd-surface); border-radius: 9px; background: var(--ivd-surface); }
.ivd-bubble .iv-logo { border-radius: 7px; }
.ivd-bubble-more { align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 4px; background: var(--iv-neutral-soft); color: var(--iv-muted); font-size: 10px; font-weight: 700; }

.ivd-month-pill {
    align-self: flex-start;
    margin-top: auto;
    padding: 2px 7px;
    border-radius: 8px;
    background: var(--iv-icon-bg);
    color: var(--iv-icon);
    font-size: 11px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.ivd-month-none { margin-top: auto; font-size: 10.5px; color: var(--iv-light); }

.ivd-cal-detail { min-width: 0; }
.ivd-cal-detail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 8px; padding: 0 4px; }
.ivd-cal-detail-title { margin: 0; font-family: var(--tx-font); font-size: 14px; font-weight: 600; color: var(--iv-text); }
.ivd-cal-detail-caption { font-size: 11.5px; color: var(--iv-muted); }
.ivd-cal-detail-amount { font-family: var(--tx-font); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--iv-green); white-space: nowrap; }
.ivd-cal-empty { margin: 0; padding: 14px; border-radius: 12px; background: var(--iv-tile); color: var(--iv-muted); font-size: 12.5px; text-align: center; }

@media (min-width: 1400px) {
    .ivd-cal-layout { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; }
    .ivd-cal-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
    .ivd-cal-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
    .ivd-cal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
    .ivd-month { min-height: 88px; padding: 6px; }
    .ivd-month-year { display: none; }
}

/* ------------------------------------------------------------------ Income vs your bills */

.ivd-bills-top { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-bottom: 14px; }

.ivd-ring { position: relative; flex: 0 0 auto; width: 132px; height: 132px; --ivd-ring: var(--iv-green); }
.ivd-ring.iv-tone-positive { --ivd-ring: var(--iv-positive); }
.ivd-ring-svg { width: 100%; height: 100%; overflow: visible; }
.ivd-ring-track { fill: none; stroke: var(--iv-track); stroke-width: 12; }
.ivd-ring-fill { fill: none; stroke: var(--ivd-ring); stroke-width: 12; stroke-linecap: round; animation: ivd-ring-in .9s cubic-bezier(.2, .8, .2, 1) both; transform-origin: 60px 60px; }

@keyframes ivd-ring-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ivd-ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; }
.ivd-ring-value { font-family: var(--tx-font); font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--iv-text); line-height: 1.1; }
.ivd-ring-caption { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--iv-muted); }

.ivd-bills-figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; flex: 1 1 240px; min-width: 0; }

.ivd-fig {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 14px;
    background: var(--iv-tile);
    border-left: 4px solid var(--iv-light);
}

.ivd-fig-income { border-left-color: var(--iv-green); }
.ivd-fig-bills { border-left-color: var(--iv-accent); }
.ivd-fig-label { font-family: var(--tx-font); font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--iv-muted); }
.ivd-fig-value { font-family: var(--tx-font); font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--iv-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ivd-fig-caption { font-size: 11px; color: var(--iv-light); }

.ivd-bill-rows { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }

.ivd-bill-row {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto 18px;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 12px;
    background: var(--iv-tile);
}

.ivd-bill-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--tx-font); font-size: 13.5px; font-weight: 600; color: var(--iv-text); }
.ivd-bill-amount { font-family: var(--tx-font); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--iv-text); white-space: nowrap; }
.ivd-bill-amount small { margin-left: 2px; font-size: 10.5px; font-weight: 500; color: var(--iv-muted); }
.ivd-bill-check { color: var(--iv-green); font-size: 14px; }
.ivd-more { margin: 6px 0 0; padding: 0 4px; font-size: 11.5px; color: var(--iv-muted); }

.ivd-next-bill {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px dashed var(--iv-tile-border);
    border-radius: 12px;
}

.ivd-next-text { font-size: 12.5px; line-height: 1.45; color: var(--iv-muted); }

@media (max-width: 575.98px) {
    .ivd-bills-top { justify-content: center; }
    .ivd-ring { width: 120px; height: 120px; }
    .ivd-bills-figures { flex-basis: 100%; }
    .ivd-fig-value { font-size: 17px; }
}

/* ------------------------------------------------------------------ Recent Payments */

.ivd-payments { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.ivd-payment + .ivd-payment { border-top: 1px solid var(--ivd-line); }

.ivd-payment {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    padding: 9px 4px;
}

.ivd-payment-glyph {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--ivd-accent, var(--iv-green)) 16%, transparent);
    color: var(--ivd-accent, var(--iv-green));
    font-size: 13px;
}

.ivd-payment-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ivd-payment-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--tx-font); font-size: 13.5px; font-weight: 600; color: var(--iv-text); }
.ivd-payment-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; color: var(--iv-muted); }
.ivd-payment-figures { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; text-align: right; }
.ivd-payment-amount { font-family: var(--tx-font); font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--iv-tone, var(--iv-text)); white-space: nowrap; }
.ivd-payment-amount.iv-tone-negative { color: var(--iv-withholding); }
.ivd-payment-date { font-size: 11px; color: var(--iv-muted); white-space: nowrap; }

/* ------------------------------------------------------------------ Foreign tax note and the as-of line */

.ivd-tax {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--iv-tile-border);
    border-radius: 12px;
    background: var(--iv-tile);
    color: var(--iv-text);
    font-size: 12.5px;
    line-height: 1.45;
}

.ivd-tax-glyph { flex: 0 0 auto; color: var(--iv-withholding); font-size: 14px; margin-top: 1px; }

.ivd-asof { margin: 2px 16px 6px; font-size: 10.5px; line-height: 1.45; color: var(--iv-muted); text-align: center; }

/* ------------------------------------------------------------------ Reduced motion */

@media (prefers-reduced-motion: reduce) {
    .ivd-ring-fill { animation: none; }
    .ivd-share-fill, .ivd-month, .ivd-holding-body { transition: none; }
    .ivd-month.is-active:active { transform: none; }
}
