/* #209: all layout rules are scoped to this desk. */
#s-money { padding-bottom: env(safe-area-inset-bottom); }
#s-money > .sbar { height: env(safe-area-inset-top); min-height: 0; padding: 0; }
#s-money > .sbar .st-time { display: none; }
body.xr209-money-open #global-bnav { display: none !important; }
#s-money .xr209-header { gap: 6px !important; padding: 6px 12px 0 !important; min-height: 52px; }
#s-money .xr209-header > div { min-width: 0; }
#s-money .xr209-header > div > div:first-child { font-size: 17px !important; white-space: nowrap; }
#s-money .xr209-header > div > div:last-child { font-size: 10px !important; }
#s-money .xr209-query { width: 36px; min-height: 44px; padding: 4px; margin: 0; flex: 0 0 36px; font-size: 19px; }
#s-money .xr209-overview-toggle { flex: 0 0 auto; min-height: 44px; border: 0; border-radius: 8px; padding: 4px 6px; background: transparent; color: #92400e; font-size: 12px; font-weight: 800; cursor: pointer; }
#s-money #money-summary { padding: 3px 12px 0 !important; max-height: 43dvh; overflow-y: auto; }
#s-money [hidden] { display: none !important; }
#s-money .xr209-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; padding: 2px 0 4px; }
#s-money .xr209-tile { min-width: 0; padding: 7px 2px !important; border-radius: 9px !important; }
#s-money .xr209-tile[role=button] { cursor: pointer; }
#s-money .xr209-tile > div:first-child { font-size: 16px !important; white-space: nowrap; }
#s-money .xr209-tile > div:nth-child(2) { font-size: 10px !important; }
#s-money .xr209-tile > div:nth-child(3) { font-size: 9px !important; }
#s-money .xr209-todo { display: flex; align-items: center; min-height: 29px; padding: 4px 9px !important; margin-top: 4px !important; border-radius: 7px !important; font-size: 12px !important; line-height: 1.45 !important; cursor: pointer; }
#s-money .xr209-note { margin: 2px 0 !important; font-size: 10px !important; }
#s-money .xr209-health { margin: 4px 0 0; border-radius: 8px; background: #f6f7fa; }
#s-money .xr209-health-label { list-style: none; min-height: 32px; display: flex; align-items: center; padding: 5px 7px; font-size: 10.5px; font-weight: 700; white-space: nowrap; color: #526075; cursor: pointer; }
#s-money .xr209-health-label::-webkit-details-marker { display: none; }
#s-money .xr209-health[data-state=warning] { background: #fef2f2; border: 1px solid #fca5a5; }
#s-money .xr209-health[data-state=warning] > summary { color: #991b1b; }
#s-money .xr209-health [data-xr209-status] > div { margin-top: 0 !important; border-radius: 0 !important; }
#s-money .xr209-unknown { background: #fef2f2; border: 1px solid #fca5a5; border-radius: 8px; padding: 8px; color: #991b1b; font-size: 12px; }
#s-money #money-tabs { padding: 7px 12px 6px !important; gap: 5px !important; border-bottom: 1px solid var(--gray-200); }
#s-money #money-tabs > div { min-height: 36px; display: flex; align-items: center; padding: 7px 11px !important; }
#s-money > .scroll { flex: 1 1 0; min-height: 0; }
#s-money #money-body { padding: 10px 12px 18px !important; }
#s-money .xr209-export { display: flex; align-items: flex-start; gap: 7px; margin-bottom: 9px; }
#s-money .xr209-export > button { flex: 1; width: auto !important; margin: 0 !important; min-height: 44px; padding: 9px !important; font-size: 12px !important; }
#s-money .xr209-instructions > summary { min-height: 44px; display: flex; align-items: center; font-size: 11px; color: #92400e; cursor: pointer; }
#s-money .xr209-instructions[open] { flex-basis: 100%; }
#s-money .xr209-export:has(.xr209-instructions[open]) { flex-wrap: wrap; }
#s-money .xr209-instructions[open] > div { margin-bottom: 0 !important; }
#s-money .xr209-payout { min-height: 64px; padding: 10px !important; margin-bottom: 9px !important; border-radius: 11px !important; }
#s-money .xr209-payout-heading { align-items: center !important; margin-bottom: 4px !important; gap: 6px !important; }
#s-money .xr209-payout-heading > div:first-child { font-size: 14px !important; min-width: 0; }
#s-money .xr209-payout-heading > div:last-child { font-size: 20px !important; }
#s-money .xr209-bank-line { font-size: 12px; color: #495267; line-height: 1.5; overflow-wrap: anywhere; }
#s-money .xr209-actions { display: flex; align-items: stretch; gap: 6px !important; margin-top: 7px !important; }
#s-money .xr209-actions > button { min-height: 44px; padding: 8px 6px !important; font-size: 12px !important; }
#s-money .xr209-details-button { flex: 0 0 44px; border: 1px solid var(--gray-200); border-radius: 9px; background: #fff; color: #4b5563; font-weight: 700; cursor: pointer; }
#s-money .xr209-payout-details { margin-top: 8px; border-top: 1px solid var(--gray-200); padding-top: 8px; }
#s-money .xr209-payout-details button { min-height: 44px; }
#s-money :focus-visible { outline: 2px solid #9a3412; outline-offset: 2px; }
@media (max-width: 380px) {
  #s-money .xr209-header { gap: 4px !important; padding-left: 10px !important; padding-right: 10px !important; }
  #s-money .xr209-header > div > div:first-child { font-size: 16px !important; }
  #s-money .xr209-health-label { font-size: 10px; }
}
