/* Shared upgrade styles for dividend-domestic, dividend-overseas, bank-domestic, bank-overseas */
html.ds-theme body.sd-focused-body .ds-content-frame .sd-dividend-refresh .sd-div-selected-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    padding: 10px 14px;
    margin: 0 0 12px;
    background: #f0f6ff;
    border: 1px solid #bfd7f8;
    border-radius: 8px;
    font-size: 13.5px;
    line-height: 1.5;
    color: #102e55;
}
html.ds-theme body.sd-focused-body .ds-content-frame .sd-dividend-refresh .sd-div-selected-banner strong {
    font-weight: 750;
    color: #0e4a9e;
}
html.ds-theme body.sd-focused-body .ds-content-frame .sd-dividend-refresh .sd-div-selected-actions {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
html.ds-theme body.sd-focused-body .ds-content-frame .sd-dividend-refresh .sd-div-detail-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid #b8d0f2;
    background: #ffffff;
    color: #145bb7;
    font-size: 12.5px;
    font-weight: 650;
    text-decoration: none;
    line-height: 1.3;
    white-space: nowrap;
}
html.ds-theme body.sd-focused-body .ds-content-frame .sd-dividend-refresh .sd-div-detail-link:hover {
    background: #eaf2ff;
    border-color: #8cb5ee;
}
html.ds-theme body.sd-focused-body .ds-content-frame .sd-dividend-refresh [data-dividend-list] th:first-child {
    width: auto;
    min-width: 150px;
}
html.ds-theme body.sd-focused-body .ds-content-frame .sd-dividend-refresh [data-dividend-list] th,
html.ds-theme body.sd-focused-body .ds-content-frame .sd-dividend-refresh [data-dividend-list] td {
    padding: 10px 8px;
    font-size: 13.5px;
}
html.ds-theme body.sd-focused-body .ds-content-frame .sd-dividend-refresh [data-dividend-list] th:not(:first-child) {
    text-align: right;
    white-space: nowrap;
}
html.ds-theme body.sd-focused-body .ds-content-frame .sd-dividend-refresh [data-dividend-list] tbody tr[data-stock-code] {
    cursor: pointer;
    transition: background-color 0.14s ease;
}
html.ds-theme body.sd-focused-body .ds-content-frame .sd-dividend-refresh [data-dividend-list] tbody tr[data-stock-code]:hover {
    background: #f6f9ff;
}
html.ds-theme body.sd-focused-body .ds-content-frame .sd-dividend-refresh [data-dividend-list] tbody tr.is-selected {
    background: #edf4ff;
}
html.ds-theme body.sd-focused-body .ds-content-frame .sd-dividend-refresh [data-dividend-list] tbody tr.is-selected td:first-child {
    box-shadow: inset 3px 0 0 #1964cf;
}
html.ds-theme body.sd-focused-body .ds-content-frame .sd-dividend-refresh .sd-div-stock-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
html.ds-theme body.sd-focused-body .ds-content-frame .sd-dividend-refresh .sd-div-stock-name-btn {
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    color: #102e55;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
}
html.ds-theme body.sd-focused-body .ds-content-frame .sd-dividend-refresh .sd-div-stock-name-btn:hover {
    color: #1964cf;
    text-decoration: underline;
}
html.ds-theme body.sd-focused-body .ds-content-frame .sd-dividend-refresh .sd-div-row-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 5px;
}
html.ds-theme body.sd-focused-body .ds-content-frame .sd-dividend-refresh .sd-dividend-plan-button {
    margin: 0;
    min-height: 28px;
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 600;
}
html.ds-theme body.sd-focused-body .ds-content-frame .sd-dividend-refresh .sd-div-chg {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    font-weight: 650;
}
html.ds-theme body.sd-focused-body .ds-content-frame .sd-dividend-refresh .sd-div-chg.is-up { color: #d6333f; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-dividend-refresh .sd-div-chg.is-down { color: #1964cf; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-dividend-refresh .sd-div-chg.is-flat { color: #5b6d85; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-dividend-refresh .sd-div-freq-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: #eef3fa;
    color: #27476e;
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
}
html.ds-theme body.sd-focused-body .ds-content-frame .sd-dividend-refresh .sd-div-freq-badge.is-monthly {
    background: #e6f6ef;
    color: #0e6f47;
}
html.ds-theme body.sd-focused-body .ds-content-frame .sd-dividend-refresh .sd-div-freq-badge.is-quarterly {
    background: #eaf2ff;
    color: #145bb7;
}
html.ds-theme body.sd-focused-body .ds-content-frame .sd-dividend-refresh .sd-div-yield-main {
    font-weight: 750;
    color: #0e4a9e;
    font-size: 14.5px;
}
html.ds-theme body.sd-focused-body .ds-content-frame .sd-dividend-refresh .sd-div-aftertax {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: #3e5573;
    font-weight: 500;
    white-space: nowrap;
}
html.ds-theme body.sd-focused-body .ds-content-frame .sd-dividend-refresh .sd-div-dday {
    display: inline-block;
    margin-top: 2px;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 11.5px;
    font-weight: 650;
    white-space: nowrap;
}
html.ds-theme body.sd-focused-body .ds-content-frame .sd-dividend-refresh .sd-div-dday.is-urgent {
    background: #ffe8ea;
    color: #be1e2d;
}
html.ds-theme body.sd-focused-body .ds-content-frame .sd-dividend-refresh .sd-div-dday.is-upcoming {
    background: #e7f3ff;
    color: #1256b0;
}
html.ds-theme body.sd-focused-body .ds-content-frame .sd-dividend-refresh .sd-div-dday.is-scheduled {
    background: #eef4fb;
    color: #345278;
}
html.ds-theme body.sd-focused-body .ds-content-frame .sd-dividend-refresh .sd-div-dday.is-past,
html.ds-theme body.sd-focused-body .ds-content-frame .sd-dividend-refresh .sd-div-dday.is-muted {
    background: #f2f5f9;
    color: #5b6e86;
}
html.ds-theme body.sd-focused-body .ds-content-frame .sd-dividend-refresh .sd-div-val-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
html.ds-theme body.sd-focused-body .ds-content-frame .sd-dividend-refresh .sd-div-val-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 6px;
    background: #f4f7fb;
    border: 1px solid #dde6f2;
    font-size: 12.5px;
    color: #3e5573;
}
html.ds-theme body.sd-focused-body .ds-content-frame .sd-dividend-refresh .sd-div-val-chip strong {
    color: #102e55;
    font-weight: 700;
}

@media (max-width: 768px) {
    html.ds-theme body.sd-focused-body .ds-content-frame .sd-dividend-refresh .sd-dividend-domestic__table:not([data-dividend-list]),
    html.ds-theme body.sd-focused-body .ds-content-frame .sd-dividend-refresh .sd-dividend-overseas__table:not([data-dividend-list]),
    html.ds-theme body.sd-focused-body .ds-content-frame .sd-dividend-refresh .sd-bank-domestic__table:not([data-dividend-list]),
    html.ds-theme body.sd-focused-body .ds-content-frame .sd-dividend-refresh .sd-bank-overseas__table:not([data-dividend-list]) {
        min-width: 0 !important;
        width: 100%;
    }
    html.ds-theme body.sd-focused-body .ds-content-frame .sd-dividend-refresh [data-dividend-list] tbody tr {
        padding: 12px 8px;
        gap: 6px 10px;
    }
    html.ds-theme body.sd-focused-body .ds-content-frame .sd-dividend-refresh [data-dividend-list] td:first-child {
        display: block;
        grid-column: 1 / -1;
    }
    html.ds-theme body.sd-focused-body .ds-content-frame .sd-dividend-refresh [data-dividend-list] td:nth-child(4) {
        grid-column: auto;
    }
    html.ds-theme body.sd-focused-body .ds-content-frame .sd-dividend-refresh [data-dividend-list] td {
        padding: 4px 0 0;
        font-size: 13.5px;
    }
    html.ds-theme body.sd-focused-body .ds-content-frame .sd-dividend-refresh .sd-div-aftertax {
        white-space: normal;
    }
}
