/* Cashback Pro V36.8.32 — account chip sizing, light filter cleanup and touch release. */

/* Header account name: use a compact, button-like width.
   The Sáng/Tối switch remains a separate adjacent control. */
@media (max-width: 980px), (orientation: landscape) and (max-height: 820px) {
  html body header.app-header .header-controls .user-pill {
    box-sizing: border-box !important;
    width: clamp(108px, 29vw, 122px) !important;
    min-width: clamp(108px, 29vw, 122px) !important;
    max-width: clamp(108px, 29vw, 122px) !important;
    flex: 0 0 clamp(108px, 29vw, 122px) !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    padding: 0 8px !important;
    gap: 0 !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
  }

  html body header.app-header .header-controls .user-pill #user-name-display {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    padding: 0 3px !important;
    margin: 0 !important;
    text-align: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
  }

  html body header.app-header .header-controls .user-pill .user-avatar {
    display: none !important;
  }

  html body header.app-header .header-controls .user-pill.is-guest #btn-auth-trigger {
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 2px 5px !important;
    margin: 0 !important;
    font-size: 10px !important;
  }
}

/* Default Light has a legacy surface rule in v36.7.83. Remove that rule at a
   higher specificity and at the final stylesheet position. Inputs/buttons retain
   their own rounded surfaces. */
html body.default-light-mode .customer-withdrawals-card .customer-withdrawals-filters,
html.default-light-mode body .customer-withdrawals-card .customer-withdrawals-filters,
html body.light-mode .customer-withdrawals-card .customer-withdrawals-filters,
html.light-mode body .customer-withdrawals-card .customer-withdrawals-filters,
html body.theme-default.default-light-mode .customer-withdrawals-card .customer-withdrawals-filters,
html body.theme-default.default-light-mode .customer-withdrawals-card > .customer-withdrawals-filters {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-top: 0 !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
  border-left: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  padding: 0 !important;
  margin: 0 !important;
  min-height: 0 !important;
}

html body.default-light-mode .customer-withdrawals-card .customer-withdrawals-filters::before,
html body.default-light-mode .customer-withdrawals-card .customer-withdrawals-filters::after,
html.default-light-mode body .customer-withdrawals-card .customer-withdrawals-filters::before,
html.default-light-mode body .customer-withdrawals-card .customer-withdrawals-filters::after,
html body.light-mode .customer-withdrawals-card .customer-withdrawals-filters::before,
html body.light-mode .customer-withdrawals-card .customer-withdrawals-filters::after,
html body.theme-default.default-light-mode .customer-withdrawals-card .customer-withdrawals-filters::before,
html body.theme-default.default-light-mode .customer-withdrawals-card .customer-withdrawals-filters::after {
  content: none !important;
  display: none !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Labels are transparent too; only the actual date inputs and buttons carry
   visible rounded backgrounds. */
html body.default-light-mode .customer-withdrawals-card .customer-withdrawals-filters > label,
html.default-light-mode body .customer-withdrawals-card .customer-withdrawals-filters > label,
html body.light-mode .customer-withdrawals-card .customer-withdrawals-filters > label,
html body.theme-default.default-light-mode .customer-withdrawals-card .customer-withdrawals-filters > label {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Touch hover is not a persistent selected state. The JS toggles this class
   after the synthetic click has completed; real .active/aria-selected states
   remain untouched. */
@media (hover: none), (pointer: coarse) {
  html.v36832-touch-released body :is(
    button, a[href], [role="button"], input[type="button"], input[type="submit"], summary
  ):hover:not(:active):not(.active):not([aria-selected="true"]):not([aria-pressed="true"]):not([aria-expanded="true"]):not(:disabled) {
    transform: none !important;
    filter: none !important;
    box-shadow: none !important;
    outline: none !important;
  }

  html.v36832-touch-released body .btn-convert:hover:not(:active):not(:disabled),
  html.v36832-touch-released body .btn-copy:hover:not(:active):not(.active):not(:disabled),
  html.v36832-touch-released body .customer-withdrawals-refresh:hover:not(:active):not(:disabled) {
    transform: none !important;
    filter: none !important;
    box-shadow: none !important;
  }

  html.v36832-touch-released body :is(button, a[href], [role="button"]):focus:not(:focus-visible) {
    outline: none !important;
  }
}
