/* FOODOS V6_25 / 84.61.0
   Stable focus-sensitive pages, real settlement checkboxes, wholesale module UI. */


/* Do not flash wholesale controls before the tenant module map has been loaded. */
html:not(.pc-modules-ready) .pc-sale-channel-tabs{display:none!important}
.pc-wholesale-module-disabled .pc-sale-channel-tabs{display:none!important}

/* Wallet-use + discount must remain side-by-side; status badge stays outside this row. */
.pc-settle-adjustments-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  gap:10px!important;
  align-items:stretch!important;
  direction:rtl!important;
}
.pc-settle-adjustments-row>.pc-settle-adjustment-cell{min-width:0!important}

/* V6_25 uses honest checkboxes instead of ON/OFF switches. */
.pc-adjustment-checkbox-label{cursor:pointer!important;user-select:none!important}
.pc-adjustment-native-check.pc-adjustment-visible-check,
#pc-wallet-use-check.pc-adjustment-native-check{
  position:static!important;
  opacity:1!important;
  pointer-events:auto!important;
  appearance:none!important;
  -webkit-appearance:none!important;
  width:22px!important;
  height:22px!important;
  min-width:22px!important;
  flex:0 0 22px!important;
  margin:0!important;
  border:2px solid #94a3b8!important;
  border-radius:7px!important;
  background:#fff!important;
  display:grid!important;
  place-items:center!important;
  box-shadow:0 1px 3px rgba(15,23,42,.08)!important;
  transition:background .16s ease,border-color .16s ease,box-shadow .16s ease!important;
}
.pc-adjustment-native-check.pc-adjustment-visible-check::after,
#pc-wallet-use-check.pc-adjustment-native-check::after{
  content:""!important;
  width:10px!important;
  height:6px!important;
  border-right:2px solid #fff!important;
  border-bottom:2px solid #fff!important;
  transform:rotate(45deg) translate(-1px,-1px) scale(0)!important;
  transform-origin:center!important;
  transition:transform .14s ease!important;
}
.pc-adjustment-native-check.pc-adjustment-visible-check:checked,
#pc-wallet-use-check.pc-adjustment-native-check:checked{
  background:#16a34a!important;
  border-color:#15803d!important;
  box-shadow:0 0 0 3px rgba(22,163,74,.12)!important;
}
#discount-check.pc-adjustment-native-check:checked{
  background:#f59e0b!important;
  border-color:#d97706!important;
  box-shadow:0 0 0 3px rgba(245,158,11,.12)!important;
}
.pc-adjustment-native-check.pc-adjustment-visible-check:checked::after,
#pc-wallet-use-check.pc-adjustment-native-check:checked::after{transform:rotate(45deg) translate(-1px,-1px) scale(1)!important}
.pc-adjustment-native-check.pc-adjustment-visible-check:disabled,
#pc-wallet-use-check.pc-adjustment-native-check:disabled{opacity:.58!important;cursor:not-allowed!important}
/* Remove legacy slider if an older cached fragment still injects it. */
#pc-settle-adjustments-row .pc-adjustment-switch{display:none!important}
html.pc-dark-mode .pc-adjustment-native-check.pc-adjustment-visible-check,
body.pc-dark-mode .pc-adjustment-native-check.pc-adjustment-visible-check,
html.pc-dark-mode #pc-wallet-use-check.pc-adjustment-native-check,
body.pc-dark-mode #pc-wallet-use-check.pc-adjustment-native-check{background:#0f172a!important;border-color:#64748b!important}
html.pc-dark-mode .pc-adjustment-native-check.pc-adjustment-visible-check:checked,
body.pc-dark-mode .pc-adjustment-native-check.pc-adjustment-visible-check:checked,
html.pc-dark-mode #pc-wallet-use-check.pc-adjustment-native-check:checked,
body.pc-dark-mode #pc-wallet-use-check.pc-adjustment-native-check:checked{background:#16a34a!important;border-color:#22c55e!important}
html.pc-dark-mode #discount-check.pc-adjustment-native-check:checked,
body.pc-dark-mode #discount-check.pc-adjustment-native-check:checked{background:#b45309!important;border-color:#f59e0b!important}

@media(max-width:620px){
  .pc-settle-adjustments-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:8px!important}
  .pc-settle-adjustment-card,#pc-settle-wallet-host .pc-settle-wallet-control.pc-settle-adjustment-card{min-height:132px!important;padding:11px!important}
  .pc-adjustment-copy strong{font-size:.82rem!important}
  .pc-adjustment-copy small{font-size:.64rem!important}
  .pc-adjustment-amount-field{padding:0 9px!important}
}
@media(max-width:390px){
  .pc-settle-adjustments-row{gap:6px!important}
  .pc-settle-adjustment-card,#pc-settle-wallet-host .pc-settle-wallet-control.pc-settle-adjustment-card{padding:9px!important}
  .pc-adjustment-native-check.pc-adjustment-visible-check,#pc-wallet-use-check.pc-adjustment-native-check{width:20px!important;height:20px!important;min-width:20px!important;flex-basis:20px!important}
}
