/* alignvu UI v2.1: the Monitor screens (application/views/align_to/landingpage, monitor_*.php).
   The legacy rules are in css/reports.css; these come later and replace their look. */

/* ---------- Header (landingpage/tabs_header.php): the change key, then the period straight after it. It sticks
   under the page header; the Updates tabs and table heading stick under it (--app-monitor-bar-height). */
:root {
    --app-monitor-bar-height: 60px;
    --app-monitor-tabs-height: 45px;
}

.dataflow-landing .changes-container.app-monitor-bar {
    position: sticky;
    top: var(--app-sticky-top);
    z-index: 12;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 12px 24px;
    height: auto;
    /* fixed, not var(--app-monitor-bar-height): index.js sets that from this bar's height, so it could never shrink */
    min-height: 60px;
    margin: -16px calc(-1 * var(--app-main-pad-x)) 0;
    padding: 16px var(--app-main-pad-x) 12px calc(var(--app-main-pad-x) + 24px);
    border-radius: 0;
    background: var(--paper);
}

/* Datafeeds: two full-width rows (Records | Changes + period, then filter | change badges); the selected-country
   chips holder (country_select.php; legacy code shows it) takes no slot, any chip it shows still lays out */
.app-monitor-bar__row {
    display: flex;
    flex: 1 1 100%;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
}

.dataflow-landing .app-monitor-bar:has(> .app-monitor-bar__row) > .selected-container {
    display: contents !important;
}

.app-monitor-bar__records {
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-monitor-bar__key {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.app-monitor-bar__label {
    margin-right: 4px;
    font: 600 13px/18px var(--font-display);
    color: var(--heading-ink);
}

.dataflow-landing :is(.changes-container, .app-df-status) .app-monitor-bar__key .av-badge {
    min-width: 0;
    height: auto;
    padding: 4px 10px;
    background: var(--surface);
    color: var(--heading-ink);
    font: 500 12px/16px var(--font-display);
}

/* the period: v2.1 segmented control; .active is set by the legacy code */
.dataflow-landing :is(.changes-container, .app-df-status) .button-container.av-seg {
    display: inline-flex;
    gap: 2px;
    margin: 0;
}

.dataflow-landing :is(.changes-container, .app-df-status) .av-seg .landing-btn {
    min-width: 0;
    margin: 0;
    padding: 5px 14px;
    border: 0;
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--body-ink);
    font: 500 13px/18px var(--font-display);
    cursor: pointer;
}

.dataflow-landing :is(.changes-container, .app-df-status) .av-seg .landing-btn.active {
    background: var(--surface);
    color: var(--heading-ink);
    font-weight: 600;
    box-shadow: 0 0 0 1px var(--border);
}

/* ---------- Updates by product / by jurisdiction (landingpage/landing_page_updates.php) */
.landing-container .landing-center .landing-group-section .sticky-tabs {
    top: calc(var(--app-sticky-top) + var(--app-monitor-bar-height));
    height: var(--app-monitor-tabs-height);
    background: var(--paper);
}

.landing-container .landing-center .landing-group-section .sticky-tabs .tabs.av-tabs {
    gap: 24px;
    width: 100%;
    border-bottom: 0;
}

.landing-container .landing-center .landing-group-section .sticky-tabs .tabs .tab.av-tab {
    height: auto;
    padding: 10px 0;
}

.av-tabs .av-tab.tab.active {
    color: var(--heading-ink);
    font-weight: 600;
    box-shadow: inset 0 -2px 0 var(--heading-ink);
}

.av-tabs .av-tab.tab.disabled {
    color: var(--muted);
    pointer-events: none;
}

/* the table: a v2.1 table frame, heading band and rows */
.landing-container .landing-sanction-updates-overview {
    margin-bottom: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: none;
    background: var(--surface);
    font-family: var(--font-display);
}

.landing-container .landing-sanction-updates-overview .landing-sanction-updates-header,
.landing-container .landing-sanction-updates-overview .landing-sanction-updates-container .landing-sanction-updates-row {
    grid-template-columns: 84px minmax(56px, 0.7fr) minmax(120px, 1.2fr) minmax(120px, 1.2fr) repeat(3, minmax(80px, 92px)) minmax(120px, 160px);
    gap: 8px;
}

.landing-container .landing-sanction-updates-overview .landing-sanction-updates-header {
    top: calc(var(--app-sticky-top) + var(--app-monitor-bar-height) + var(--app-monitor-tabs-height));
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    background: var(--day-band);
}

.landing-container .landing-sanction-updates-overview .landing-sanction-updates-header h2 {
    font: 600 12.5px/16px var(--font-display);
    color: var(--heading-ink);
    text-align: left;
}

.landing-container .landing-sanction-updates-overview .landing-sanction-updates-container .landing-sanction-updates-row {
    align-items: start;
    padding: 10px 12px;
    font: 400 13px/18px var(--font-display);
    color: var(--table-ink);
}

.landing-container .landing-sanction-updates-overview .landing-sanction-updates-container .landing-sanction-updates-row p {
    margin: 0;
}

.landing-container .landing-sanction-updates-overview .landing-sanction-updates-container .landing-sanction-updates-row:not(:last-child) {
    border-bottom: 1px solid var(--row-rule);
}

.landing-container .landing-sanction-updates-overview .landing-sanction-updates-container .landing-sanction-updates-row .feedName {
    gap: 4px;
}

.landing-container .landing-sanction-updates-overview .datafeed-source-vendor-name,
.landing-container .watermark-color {
    color: var(--muted);
}

/* rows opened under a feed (jurisdiction, reference group code): a light grey band, a white line above each */
.landing-container .landing-sanction-updates-overview .landing-sanction-updates-container .landing-sanction-updates-row.landing-update-jurisdiction-row,
.landing-container .landing-sanction-updates-overview .landing-sanction-updates-container .landing-sanction-updates-row.landing-update-refcode-row {
    background: var(--day-band) !important;
    border-left: 0 !important;
    border-top: 1px solid var(--surface);
    border-bottom: 0 !important;
}

.landing-container .landing-sanction-updates-overview .landing-sanction-updates-container .landing-sanction-updates-row.landing-update-jurisdiction-row .watermark-color,
.landing-container .landing-sanction-updates-overview .landing-sanction-updates-container .landing-sanction-updates-row.landing-update-jurisdiction-row .watermark-color *,
.landing-container .landing-sanction-updates-overview .landing-sanction-updates-container .landing-sanction-updates-row.landing-update-refcode-row .watermark-color,
.landing-container .landing-sanction-updates-overview .landing-sanction-updates-container .landing-sanction-updates-row.landing-update-refcode-row .watermark-color * {
    color: var(--muted) !important;
}

.landing-container .landing-sanction-updates-overview .landing-sanction-updates-row .landing-update-jurisdiction-label,
.landing-container .landing-sanction-updates-overview .landing-sanction-updates-row .landing-update-refcode-label {
    font: 400 13px/18px var(--font-display);
    color: var(--table-ink);
}

/* the open/close control of a row with rows under it: the Datafeeds chevron before the label, the label is the
   button (js/modules/monitor/landing/updates_rows.js) */
.landing-container .landing-sanction-updates-row .app-upd-toggle {
    align-items: flex-start;
    white-space: normal;
    text-align: left;
}

.landing-container .landing-sanction-updates-row .app-upd-toggle .av-icon {
    margin-top: 1px;
}

.landing-container .landing-sanction-updates-row .app-upd-toggle__hint {
    color: var(--body-ink);
}

/* the feed: its name, and the provider in grey under it */
.landing-container .landing-sanction-updates-row .app-upd-feedname {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.landing-container .landing-sanction-updates-overview .app-upd-feedname .datafeed-source-vendor-name,
.landing-container .landing-sanction-updates-overview .landing-update-refcode-label .datafeed-source-vendor-name {
    font: 400 12px/16px var(--font-display);
    color: var(--muted);
}

/* counts: v2.1 status badges (an outlined pill with the status dot), one per entity type, the entity icon in ink */
.landing-container .sanction-badge {
    width: auto;
    min-width: 0;
    height: auto;
    display: inline-flex;
    gap: 6px;
    padding: 2px 8px;
    border: 1px solid var(--muted);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--heading-ink);
}

.landing-container .landing-sanction-updates-overview .landing-sanction-updates-container .sanction-badge.added,
.landing-container .landing-sanction-updates-overview .landing-sanction-updates-container .sanction-badge.changed,
.landing-container .landing-sanction-updates-overview .landing-sanction-updates-container .sanction-badge.removed,
.landing-container .landing-sanction-updates-overview .landing-sanction-updates-container .sanction-badge.total-changed {
    border: 1px solid var(--muted);
    background: var(--surface);
    color: var(--heading-ink);
}

.landing-container .sanction-badge::before {
    content: "";
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: var(--radius-pill);
    background: var(--muted);
}

.landing-container .sanction-badge.added::before { background: var(--status-new); }
/* Changed is gold on Monitor (grey marks added/removed list reference groups) */
.landing-container .sanction-badge.changed::before { background: var(--gold); }
.landing-container .sanction-badge.removed::before { background: var(--status-removed); }

.landing-container .sanction-badge p {
    margin: 0;
    gap: 4px;
    font: 500 12px/16px var(--font-display);
    font-variant-numeric: tabular-nums;
}

.landing-container .sanction-badge img {
    width: 14px !important;
    filter: brightness(0) opacity(0.7);
}

.landing-container .sanction-badge[data-action]:hover {
    background: var(--fill);
}

.landing-container .landing-sanction-updates-overview .landing-sanction-updates-container .tooltip-parent p.tooltip {
    font: 400 12px/18px var(--font-display);
    color: var(--heading-ink);
    border-color: var(--border);
    border-radius: var(--radius-sm);
}

/* Quick view records / Show details: a v2.1 secondary button, filled while its records are open */
.landing-container .landing-sanction-updates-overview .landing-sanction-btn {
    height: auto;
    min-height: 32px;
    padding: 6px 12px;
    box-sizing: border-box;
    border: 1px solid var(--muted);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--heading-ink);
    text-align: center;
}

.landing-container .landing-sanction-updates-overview .landing-sanction-btn p {
    font: 600 13px/16px var(--font-display);
}

.landing-container .landing-sanction-updates-overview .landing-sanction-btn:hover {
    border: 1px solid var(--muted);
    background: var(--fill);
    color: var(--heading-ink);
}

.landing-container .landing-sanction-updates-overview .landing-sanction-btn.active {
    border-color: var(--heading-ink);
    background: var(--heading-ink);
    color: var(--surface);
}

/* the records opened from a row */
.landing-container .landing-sanction-search-overview {
    margin: 0 0 16px;
    border: 1px solid var(--border);
    border-radius: 0;
    box-shadow: none;
    background: var(--surface);
    font-family: var(--font-display);
}

.landing-container .landing-sanction-search-overview .landing-sanction-search-header {
    top: calc(var(--app-sticky-top) + var(--app-monitor-bar-height) + var(--app-monitor-tabs-height));
    padding: 10px 16px;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
    background: var(--day-band);
}

.landing-container .landing-sanction-search-overview .landing-sanction-search-header h2 {
    font: 600 12.5px/16px var(--font-display);
    color: var(--heading-ink);
}

.landing-container .landing-sanction-search-overview .landing-sanction-search-header h2[data-action="landing-close-search-metric"] {
    width: 20px;
    height: 20px;
    font-size: 0;
    background: var(--heading-ink);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / 18px no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / 18px no-repeat;
}

.landing-container .landing-sanction-search-overview .landing-sanction-search-container .landing-sanction-search-row {
    padding: 12px 16px;
    font: 400 13px/18px var(--font-display);
    color: var(--table-ink);
}

/* columns wide enough for the v2.1 badges; v2.1 type sizes for the record and its changes */
.landing-container .landing-sanction-search-overview .landing-sanction-search-header,
.landing-container .landing-sanction-search-overview .landing-sanction-search-container .landing-sanction-search-row {
    grid-template-columns: minmax(240px, 340px) 96px 175px 1fr 20px;
    gap: 12px;
}

.landing-container .landing-sanction-search-overview .landing-sanction-search-container .landing-sanction-search-row .landing-sanction-update-changes {
    grid-template-columns: 96px 175px 1fr;
    gap: 8px 12px;
}

.landing-container .landing-sanction-search-overview .landing-sanction-search-container .landing-sanction-search-row .sanction-badge {
    width: auto;
    height: auto;
    margin: 0;
    justify-content: flex-start;
}

.landing-container .landing-sanction-search-overview .landing-sanction-search-container .sanction-badge.added,
.landing-container .landing-sanction-search-overview .landing-sanction-search-container .sanction-badge.changed,
.landing-container .landing-sanction-search-overview .landing-sanction-search-container .sanction-badge.deleted {
    border: 1px solid var(--muted);
    background: var(--surface);
    color: var(--heading-ink);
}

.landing-container .sanction-badge.deleted::before { background: var(--status-removed); }

.landing-container .landing-sanction-search-overview .landing-sanction-search-container .landing-sanction-search-row h2 {
    display: flex;
    align-items: center;
    gap: 6px;
    font: 600 14px/20px var(--font-display);
    color: var(--heading-ink);
}

.landing-container .landing-sanction-search-overview .landing-sanction-search-container .landing-sanction-search-row .landing-search-record-field {
    border-top: 1px solid var(--row-rule);
}

.landing-container .landing-sanction-search-overview .landing-sanction-search-container .landing-sanction-search-row .landing-search-record-field h4 {
    font: 600 12.5px/18px var(--font-display);
    color: var(--heading-ink);
}

.landing-container .landing-sanction-search-overview .landing-sanction-search-container .landing-sanction-search-row .landing-search-record-field p {
    font: 400 12.5px/18px var(--font-display) !important;
    color: var(--table-ink);
}

.landing-container .landing-sanction-search-overview .landing-sanction-update-changes :is(p, h2, h3, h4) {
    font-family: var(--font-display);
    font-size: 13px;
    line-height: 18px;
    color: var(--table-ink);
}

/* ---------- Datafeeds (landingpage/landing_page_products.php, js/modules/monitor/landing/datafeeds_table.js) */

/* The table starts just under the sticky header */
.dataflow-landing .landing-container .landing-center .landing-group-section[data-group="products"] {
    padding-top: 12px;
}

.app-df-status__label {
    font: 500 13px/18px var(--font-display);
    color: var(--body-ink);
}

.landing-container .landing-center .sanctions-container:has(> .app-df-frame) {
    display: block;
    margin: 0 0 24px;
}

/* The table keeps the page's scroll (no scroll box of its own), so its heading row can stick under the Monitor header */
.av-table__frame.app-df-frame {
    overflow: visible;
}

.app-df-table thead th {
    position: sticky;
    top: calc(var(--app-sticky-top) + var(--app-monitor-bar-height));
    z-index: 3;
    vertical-align: bottom;
}

.app-df-table thead th:first-child {
    border-top-left-radius: var(--radius-lg);
}

.app-df-table thead th:last-child {
    border-top-right-radius: var(--radius-lg);
}

/* Group rows (feed type) on the header band, so the three blocks read apart */
.app-df-table .av-table__group td {
    background: var(--day-band);
    border-bottom-color: var(--border);
}

.app-df-table td {
    vertical-align: top;
    padding-top: 9px;
    padding-bottom: 9px;
}

.app-df-table td.app-df-jurisdiction {
    width: 1%;
    min-width: 120px;
    color: var(--heading-ink);
}

.app-df-table td.app-df-feed {
    min-width: 150px;
}

.app-df-product {
    display: block;
    font-weight: 600;
    color: var(--heading-ink);
}

.app-df-provider {
    display: block;
    font-size: 12px;
    line-height: 16px;
    color: var(--muted);
}

/* A count over its share bar, with the period's change pills under it */
/* The count columns share the width with the Datafeed column (about 10.6% each), instead of the names taking it all */
.app-df-table td.app-df-cell {
    width: 10.6%;
    min-width: 80px;
    padding-left: 8px;
    padding-right: 12px;
}

.app-df-table .app-df-count {
    display: block;
    text-align: right;
}

.app-df-table .av-bar.app-df-bar {
    width: 100%;
    height: 4px;
    margin: 5px 0 0 auto;
}

.app-df-table tr:hover .app-df-bar .is-grey {
    background: var(--heading-ink);
}

.app-df-changes {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px;
    margin-top: 6px;
}

.app-df-table .av-badge.app-df-pill {
    gap: 4px;
    padding: 1px 7px;
    font-size: 11.5px;
    line-height: 16px;
    cursor: pointer;
}

.app-df-table .av-badge.app-df-pill::before {
    width: 7px;
    height: 7px;
}

.app-df-table .av-badge.app-df-pill:hover {
    border-color: var(--heading-ink);
    background: var(--fill);
}

/* Changes Over Time and Counts by Reference Code */
.app-df-table td.app-df-tools-cell {
    width: 1%;
    padding: 4px 8px;
}

.app-df-feedtools {
    display: flex;
    gap: 2px;
}

.app-df-table td.app-df-empty {
    padding: 24px var(--space-4);
    text-align: center;
}

/* The Total column is wide enough for its change pills on one line */
.app-df-table td.app-df-cell.app-df-total {
    width: 12.2%;
    min-width: 116px;
}

/* ---------- All Monitor screens: the page's paper background instead of the legacy full-width white band */
.dataflow-landing .landing-main-container > .landing-container {
    background-color: transparent;
}

/* A rule between the count columns (entity types and Total), as in the Assess tables; their headings are left-aligned */
.app-df-table th.app-df-colhead,
.app-df-table td.app-df-cell {
    border-left: 1px solid var(--row-rule);
}

.app-df-table th.app-df-colhead {
    text-align: left;
    padding-left: 8px;
}

/* Group rows fold their feeds: the whole label is the toggle */
.app-df-table .av-table__group .app-fa-toggle {
    width: 100%;
    font-weight: 600;
    color: var(--heading-ink);
}

/* Jurisdiction filter: on the left of the Records control */
.app-df-status .app-df-filter {
    flex: 0 1 280px;
    margin-right: auto;
}

.app-df-status .app-df-filter .av-input {
    height: var(--control-height);
}

.app-df-table tr.app-df-row.is-filtered {
    display: none;
}

/* The jurisdictions starting with the typed text, under the filter */
.app-df-filter .app-df-suggest {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 20;
    max-height: 320px;
    overflow-y: auto;
}

.app-df-filter .app-df-suggest[hidden] {
    display: none;
}

.app-df-filter .app-df-suggest button.is-active {
    background: var(--fill);
}

/* Datafeeds header in a narrow window: tighter buttons keep Records and Changes on one row */
@media (max-width: 1279px) {
    .dataflow-landing .app-monitor-bar__row .av-seg .landing-btn {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* ---------- Updates by Product / by Jurisdiction: the sticky header (landingpage/tabs_header.php) leads with the
   Listed / Related / Enrichment tabs (updates_tabs.php), so nothing sticks between it and the table heading */
.dataflow-landing:has(.app-monitor-bar__tabs) {
    --app-monitor-tabs-height: 0px;
}

.app-monitor-bar .app-monitor-bar__tabs .tabs.av-tabs {
    gap: 24px;
    border-bottom: 0;
}

.app-monitor-bar .app-monitor-bar__tabs .tab.av-tab {
    height: auto;
    margin: 0;
    padding: 6px 0;
    text-decoration: none;
}

.app-monitor-bar__row.app-monitor-bar__row--end {
    justify-content: flex-end;
}

.dataflow-landing .landing-container .landing-center .landing-group-section[data-group="updates"] {
    padding-top: 12px;
}

/* ---------- Updates: Quick View, the changes of a record (context_search.js): each reference group code set and
   change is a chevron toggle; its field changes open under it as label / value rows */
.landing-container .landing-sanction-search-overview .app-change-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    width: 100%;
    padding: 4px 0;
    text-align: left;
    color: var(--heading-ink);
}

.landing-container .landing-sanction-search-overview .app-change-group__codes {
    font: 600 13px/18px var(--font-display);
    color: var(--heading-ink);
    overflow-wrap: anywhere;
}

.landing-container .landing-sanction-search-overview .app-change-group__type {
    padding: 0 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    font: 500 12px/18px var(--font-display);
    color: var(--body-ink);
}

.landing-container .landing-sanction-search-overview .searchRowChangeDetailsRow {
    display: grid;
    grid-template-columns: minmax(110px, 160px) 1fr;
    gap: 12px;
    margin-left: 22px;
    padding: 5px 0;
    border-top: 1px solid var(--row-rule);
}

.landing-container .landing-sanction-search-overview .searchRowChangeDetailsRow p,
.landing-container .landing-sanction-search-overview .searchRowChangeDetailsRow b {
    margin: 0;
    font: 400 12.5px/18px var(--font-display);
    color: var(--table-ink);
}

.landing-container .landing-sanction-search-overview .searchRowChangeDetailsRow > p:first-child b {
    font-weight: 600;
    color: var(--heading-ink);
}

.landing-container .landing-sanction-search-overview .searchRowChangeDetailsRow .mapping-form-button-colored {
    margin: 4px 0 0;
    padding: 0;
    border: 0;
    background: none;
    font: 600 12.5px/18px var(--font-display);
    color: var(--heading-ink);
    text-decoration: underline;
    cursor: pointer;
}

/* ---------- Updates: rows highlight under the mouse, as on Datafeeds */
.landing-container .landing-sanction-updates-overview .landing-sanction-updates-container .landing-sanction-updates-row:hover {
    background: var(--fill);
}

.landing-container .landing-sanction-updates-overview .landing-sanction-updates-container .landing-sanction-updates-row.landing-update-jurisdiction-row:hover,
.landing-container .landing-sanction-updates-overview .landing-sanction-updates-container .landing-sanction-updates-row.landing-update-refcode-row:hover {
    background: var(--fill) !important;
}

/* Updates by Product: no More Details column (seven columns); a row's Show details sits under its feed name */
div[data-view="dataflow audit landing updates program"] .landing-sanction-updates-overview .landing-sanction-updates-header,
div[data-view="dataflow audit landing updates program"] .landing-sanction-updates-overview .landing-sanction-updates-container .landing-sanction-updates-row {
    grid-template-columns: 84px minmax(56px, 0.6fr) minmax(160px, 1.6fr) minmax(120px, 1.2fr) repeat(3, minmax(80px, 110px));
}

div[data-view="dataflow audit landing updates program"] .feedName .landing-sanction-btn {
    align-self: flex-start;
    margin-top: 6px;
}

/* the chevron after the label, on its first line */
.landing-container .landing-sanction-updates-row .app-upd-toggle {
    gap: 4px;
}

/* Updates: under the table, how many days of the period are shown and the button for the next 7 */
.dataflow-landing .app-upd-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: -8px 0 24px;
    background: transparent;
}

.dataflow-landing .app-upd-more[hidden],
.dataflow-landing .app-upd-more [hidden] {
    display: none;
}

.app-upd-more__note {
    font: 500 13px/18px var(--font-display);
    color: var(--body-ink);
}

/* ---------- Updates: notification rows' icon opens their details (#app-update-notice-modal) */
.landing-container .landing-sanction-updates-row .app-upd-notice {
    width: 28px;
    height: 28px;
    flex: none;
}

.landing-container .landing-sanction-updates-row .app-upd-notice:disabled {
    background: transparent;
    cursor: default;
}


/* ---------- Updates by Product: Total column (eight columns), spaced like Added / Changed / Removed: a status pill
   with a dot per kind of change. Jurisdictions under a feed are indented, their codes a level further. */
div[data-view="dataflow audit landing updates program"] .landing-sanction-updates-overview .landing-sanction-updates-header,
div[data-view="dataflow audit landing updates program"] .landing-sanction-updates-overview .landing-sanction-updates-container .landing-sanction-updates-row {
    grid-template-columns: 84px minmax(56px, 0.6fr) minmax(160px, 1.6fr) minmax(120px, 1.2fr) repeat(4, minmax(80px, 110px));
}

.landing-container .landing-sanction-updates-row .app-upd-total {
    gap: 4px;
    font: inherit;
    cursor: default;
}

.landing-container .landing-sanction-updates-row button.app-upd-total {
    cursor: pointer;
}

.landing-container .landing-sanction-updates-row button.app-upd-total:hover {
    background: var(--fill);
}

/* the pill draws its own dots, one per kind of change */
.landing-container .sanction-badge.app-upd-total::before {
    display: none;
}

.app-upd-dot {
    width: 8px;
    height: 8px;
    flex: none;
    border-radius: var(--radius-pill);
}

.app-upd-dot--added { background: var(--status-new); }
.app-upd-dot--changed { background: var(--gold); }
.app-upd-dot--removed { background: var(--status-removed); }

.app-upd-total .app-upd-dot:last-of-type {
    margin-right: 2px;
}

div[data-view="dataflow audit landing updates program"] .landing-sanction-updates-row .landing-update-jurisdiction-label {
    padding-left: 16px;
}

/* (as specific as the legacy rule in css/reports.css that centres the label) */
div[data-view="dataflow audit landing updates program"] .landing-container .landing-sanction-updates-overview .landing-sanction-updates-container .landing-sanction-updates-row.landing-update-refcode-row .landing-update-refcode-label {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding-left: 32px;
    text-align: left;
}

/* Updates by Jurisdiction: no More Details column; Total after Removed, spaced like it */
div[data-view="dataflow audit landing updates juris"] .landing-sanction-updates-overview .landing-sanction-updates-header,
div[data-view="dataflow audit landing updates juris"] .landing-sanction-updates-overview .landing-sanction-updates-container .landing-sanction-updates-row {
    grid-template-columns: 84px minmax(90px, 0.8fr) minmax(160px, 1.4fr) minmax(150px, 1.3fr) repeat(4, minmax(80px, 110px));
}

/* Updates by Jurisdiction: a reference group code, with its list's name and provider under it (as specific as the
   legacy rule in css/reports.css that lays the label out in a row) */
div[data-view="dataflow audit landing updates juris"] .landing-container .landing-sanction-updates-overview .landing-sanction-updates-container .landing-sanction-updates-row .landing-update-refcode-label.app-upd-codelabel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

div[data-view="dataflow audit landing updates juris"] .app-upd-codelabel .app-upd-listname {
    font: 400 13px/18px var(--font-display);
    color: var(--table-ink);
}
