/*
 * AffTrack merchant portal UI v2 - merchant-only additions.
 * Loaded after admin-v2.css, components.css and affiliate-v2.css (the merchant body also carries .at-aff,
 * so the shared portal pieces - login card, balance chip, copy boxes, password toggle - apply unchanged).
 * Started 2026-09-29.
 */

/* Dashboard shortcut list: title above the description */
.at-mer .at-list-title,
.at-mer .at-list-sub {
    display: block;
}

.at-mer .at-list-end {
    color: var(--at-text-muted);
    font-weight: 400;
}

.at-mer-am-pic {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* Reports sub-nav sits above the page header */
.at-mer-subnav {
    margin-bottom: 14px;
}

/* Page links under report tables */
.at-mer-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

/* In-page jumps (offer edit tabs) clear the sticky topbar */
.at-mer [id] {
    scroll-margin-top: 72px;
}

/* Offer edit: banner grid */
.at-mer-banners {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

.at-mer-banner {
    border: 1px solid var(--at-border);
    border-radius: var(--at-radius, 8px);
    padding: 10px;
    background: var(--at-surface);
    min-width: 0;
}

.at-mer-banner .at-creative-img,
.at-mer .at-creative-img {
    overflow: hidden;
}

.at-mer .at-creative-img img {
    max-width: 100%;
    height: auto;
}

/* Targeting blocks: space between the Allowed and Not-allowed forms */
.at-mer-tgt + .at-mer-tgt {
    margin-top: 14px;
}

.at-mer .at-tabs a {
    text-decoration: none;
}

/* Email creative preview frame */
.at-mer iframe.at-creative-preview {
    width: 100%;
    min-height: 240px;
    border: 1px solid var(--at-border);
    border-radius: 6px;
    background: #fff;
}
