/* CPC date controls use the shared ERP calendar, colors and control heights. */
@layer erpColorMode.overrides {
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #click-ads .ads-filter-rail:has(>.ca-ref-filter-card:not([hidden])) {align-items:center!important;}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #click-ads .ads-filter-rail>.ca-ref-filter-card:not([hidden]) {flex-wrap:wrap!important;gap:8px!important;}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #clickAdsDateFilters {display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:8px!important;min-width:0!important;max-width:100%!important;}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #clickAdsDatePresets {display:flex!important;align-items:center!important;gap:6px!important;flex:none!important;}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #clickAdsDatePresets>button {height:36px!important;min-height:36px!important;padding:0 12px!important;white-space:nowrap!important;}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #clickAdsDates {box-sizing:border-box!important;display:flex!important;align-items:center!important;gap:2px!important;flex:0 1 292px!important;width:292px!important;min-width:260px!important;max-width:100%!important;height:36px!important;min-height:36px!important;border:1px solid var(--ui-border)!important;border-radius:var(--ui-control-radius,7px)!important;background:var(--ui-surface)!important;}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #clickAdsDates input {flex:1 1 0!important;min-width:0!important;width:0!important;max-width:none!important;height:28px!important;min-height:0!important;padding:0 3px!important;text-align:center!important;background:transparent!important;color:var(--ui-field-text,var(--ui-text))!important;cursor:pointer!important;font-size:12px!important;}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #clickAdsDates>span {flex:none!important;color:var(--ui-muted)!important;}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #clickAdsDates>button {display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 24px!important;width:24px!important;min-width:24px!important;height:28px!important;min-height:0!important;padding:0!important;border:0!important;background:transparent!important;color:var(--ui-accent)!important;box-shadow:none!important;}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #clickAdsDates svg {width:15px!important;height:15px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.7!important;}
 /* Align native and enhanced search/select controls on the same desktop row. */
 @media(min-width:901px){
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #click-ads .ads-filter-rail:has(>.ca-ref-filter-card:not([hidden]))>.ads-payment-filter,
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #click-ads .ads-filter-rail .ca-ref-filter-card .ca-ref-field,
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #click-ads .ads-filter-rail .ca-ref-filter-card .ca-ref-keyword>.erp-clear-field {box-sizing:border-box!important;display:flex!important;flex-direction:row!important;align-items:center!important;align-self:center!important;height:36px!important;min-height:36px!important;max-height:36px!important;margin-block:0!important;padding-block:0!important;}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #click-ads .ads-filter-rail .ca-ref-keyword,
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #click-ads .ads-filter-rail .ca-ref-keyword>.erp-clear-field {border:0!important;background:transparent!important;box-shadow:none!important;}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #click-ads .ads-filter-rail .ca-ref-field :is(.erp-choice,.erp-select-host,select),
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #click-ads .ads-filter-rail .ca-ref-actions>button,
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #clickAdsSearch {box-sizing:border-box!important;align-self:center!important;height:36px!important;min-height:36px!important;max-height:36px!important;margin-block:0!important;line-height:1.5!important;}
 }
 @media(max-width:760px){
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #clickAdsDateFilters {width:100%!important;}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #clickAdsDatePresets {width:100%!important;}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #clickAdsDatePresets>button {flex:1!important;height:44px!important;min-height:44px!important;padding:0 8px!important;}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #clickAdsDates {flex:1 0 100%!important;width:100%!important;min-width:0!important;height:44px!important;min-height:44px!important;}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #clickAdsDates input {height:36px!important;}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #clickAdsDates>button {height:36px!important;}
 }
}

/* Phone CPC filters use one field stack followed by four equal action buttons. */
@layer erpColorMode.overrides {
 @media(max-width:767px) {
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #click-ads .ads-filter-rail {flex-direction:column!important;align-items:stretch!important;gap:12px!important;padding:12px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #click-ads .ads-filter-rail>.ads-payment-filter {flex:0 0 auto!important;width:100%!important;min-width:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #click-ads .ads-filter-rail .ads-payment-filter :is(select,.erp-select-host,.erp-choice) {width:100%!important;min-height:44px!important;height:44px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #click-ads .ads-filter-rail>.ca-ref-card.ca-ref-filter-card:has(#clickAdsShop):not([hidden]) {display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:12px!important;width:100%!important;margin:0!important;padding:0!important;border:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #click-ads .ca-ref-card.ca-ref-filter-card:has(#clickAdsShop) .ca-ref-filter-row {display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;width:100%!important;margin:0!important;padding:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #click-ads .ca-ref-card.ca-ref-filter-card:has(#clickAdsShop) .ca-ref-field {display:flex!important;flex-direction:column!important;gap:6px!important;width:100%!important;min-width:0!important;max-width:none!important;margin:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #click-ads .ca-ref-card.ca-ref-filter-card:has(#clickAdsShop) .ca-ref-field>span {margin:0!important;line-height:1.5!important;font-size:12px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #click-ads .ca-ref-card.ca-ref-filter-card #clickAdsDateFilters {display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important;width:100%!important;margin:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #click-ads .ca-ref-card.ca-ref-filter-card #clickAdsDatePresets {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;width:100%!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #click-ads .ca-ref-card.ca-ref-filter-card #clickAdsDatePresets>button {width:100%!important;min-width:0!important;height:44px!important;min-height:44px!important;margin:0!important;padding:0 6px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #click-ads .ca-ref-card.ca-ref-filter-card #clickAdsDates {width:100%!important;min-width:0!important;height:44px!important;min-height:44px!important;margin:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #click-ads .ca-ref-card.ca-ref-filter-card .ca-ref-actions:has(#clickAdsRefreshBtn) {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:stretch!important;gap:8px!important;width:100%!important;margin:0!important;padding:12px 0 0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #click-ads .ca-ref-card.ca-ref-filter-card .ca-ref-actions:has(#clickAdsRefreshBtn)>button {box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:center!important;flex:initial!important;width:100%!important;min-width:0!important;max-width:100%!important;height:auto!important;min-height:44px!important;margin:0!important;padding:8px!important;white-space:normal!important;overflow-wrap:anywhere!important;line-height:1.5!important;font-size:13px!important}
 }
}
