/* BannerResellers: local layout, using the shared neutral theme and widgets. */
.bannerresellers-page { min-width: 0; }
.bannerresellers-page .admin-page-header { margin-bottom: 24px; }
.bannerresellers-editor { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.bannerresellers-editor > .card { margin: 0; min-width: 0; }
.bannerresellers-editor .card-body { padding: 24px; }
.bannerresellers-section-heading { margin-bottom: 20px; }
.bannerresellers-section-heading h2 { font-size: 16px; line-height: 24px; font-weight: 600; margin: 0 0 4px; }
.bannerresellers-section-heading p,
.bannerresellers-toolbar p { color: var(--mkp-muted-foreground); margin: 0; font-size: 14px; }
.bannerresellers-active { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding-top: 16px; border-top: 1px solid var(--mkp-border); }
.bannerresellers-active > span { color: var(--mkp-muted-foreground); }
.bannerresellers-countries { grid-column: 1 / -1; }
.bannerresellers-region { padding: 0; margin: 0; min-width: 0; }
.bannerresellers-region + .bannerresellers-region { margin-top: 20px; }
.bannerresellers-region legend { float: none; font-size: 14px; font-weight: 600; line-height: 20px; margin-bottom: 10px; }
.bannerresellers-country-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px 20px; list-style: none; padding: 0; margin: 0; }
.bannerresellers-country-list .form-check { margin: 0; min-height: 32px; display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: var(--mkp-radius-sm); }
.bannerresellers-country-list .form-check:has(input:checked) { background: var(--mkp-muted); }
.bannerresellers-country-list .form-check:hover { background: var(--mkp-muted); }
.bannerresellers-country-list .form-check-input { float: none; margin: 0; flex-shrink: 0; }
.bannerresellers-country-list .form-check-label { display: flex; align-items: center; gap: 8px; flex: 1; cursor: pointer; min-width: 0; }
.bannerresellers-country-list img { flex-shrink: 0; }
.bannerresellers-country-name { overflow-wrap: anywhere; }
.bannerresellers-preview { margin: 16px 0 0; }
.bannerresellers-preview figcaption { margin-bottom: 8px; color: var(--mkp-muted-foreground); font-size: 13px; }
.bannerresellers-preview img { display: block; max-width: 100%; max-height: 120px; object-fit: contain; border: 1px solid var(--mkp-border); border-radius: var(--mkp-radius-sm); background: var(--mkp-muted); }
.bannerresellers-toolbar { padding: 12px 16px; }
.bannerresellers-toolbar > div { display: flex; align-items: center; gap: 12px; max-width: 100%; }
.bannerresellers-toolbar .form-label { margin: 0; flex-shrink: 0; }
.bannerresellers-toolbar .admin-search { width: 360px; max-width: 100%; }
.bannerresellers-list { min-width: 0; }
.bannerresellers-list #Grid { border: 0; border-top: 1px solid var(--mkp-border); border-radius: 0 0 var(--mkp-radius) var(--mkp-radius); }
.bannerresellers-list #Grid table { min-width: 960px; table-layout: fixed; }
.bannerresellers-list #Grid td { vertical-align: middle; }
.bannerresellers-list #Grid td:nth-child(2),
.bannerresellers-list #Grid td:nth-child(3) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.bannerresellers-list #Grid td:nth-child(4) { overflow-wrap: anywhere; }
.bannerresellers-list #Grid td:last-child .btn { min-width: 32px; min-height: 32px; }
.bannerresellers-thumbnail { display: block; width: 126px; height: 44px; object-fit: contain; border: 1px solid var(--mkp-border); border-radius: var(--mkp-radius-sm); background: var(--mkp-muted); }
.bannerresellers-form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--mkp-border); }
.bannerresellers-empty { padding: 36px 20px; text-align: center; }
.bannerresellers-empty strong { display: block; margin-bottom: 6px; }
.bannerresellers-empty p { margin: 0; color: var(--mkp-muted-foreground); }
/* Doka mounts its editor outside the form. Keep these overrides local to this consumer. */
body:has(.bannerresellers-page) .doka--root {
    --doka-font-family: var(--mkp-font);
    --doka-button-primary--background: var(--mkp-primary);
    --doka-button-primary--color: var(--mkp-on-primary);
    --doka-button-primary-hover--background: var(--mkp-primary-hover);
}
body:has(.bannerresellers-page) .doka--button-action-confirm:is(:hover, :focus) { color: var(--mkp-on-primary-hover); }
@media (max-width: 1100px) {
    .bannerresellers-editor { grid-template-columns: minmax(0, 1fr); }
    .bannerresellers-country-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .bannerresellers-editor .card-body { padding: 16px; }
    .bannerresellers-country-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 8px; }
    .bannerresellers-toolbar { padding: 16px; }
    .bannerresellers-toolbar > div { align-items: stretch; flex-direction: column; gap: 8px; }
    .bannerresellers-toolbar .admin-search { width: 100%; }
}
