/* Existing CRM tokens; native top-layer dialogs keep the underlying list intact. */
.ws-dialog.ws-sheet{position:fixed;inset:0 0 0 auto;margin:0;width:min(680px,92vw);max-width:100%;height:100dvh;max-height:100dvh;border:0;border-left:1px solid #dbe4d3;border-radius:18px 0 0 18px;box-shadow:-12px 0 48px #14231826}
.ws-sheet,.ws-sheet *{box-sizing:border-box;min-width:0;overflow-wrap:anywhere}
.ws-sheet>header{padding-top:max(18px,env(safe-area-inset-top));background:#fff}
.ws-sheet>header h2{flex:1;line-height:1.35}
.ws-sheet .ws-dialog-body{flex:1;scrollbar-gutter:stable;padding-bottom:max(24px,env(safe-area-inset-bottom))}
.ws-panel-back{display:none}
.ws-panel-trigger{justify-content:space-between;text-align:left;gap:18px;cursor:pointer;max-width:100%;min-height:44px}
.ws-panel-trigger>span:last-child{margin-left:auto;flex-shrink:0}
.ws-panel-block{min-width:0}
.ws-sheet [hidden]{display:none!important}
.ws-sheet :is(button,input,select):focus-visible{outline:3px solid #557bba;outline-offset:3px}
.ws-sheet .cash-account-grid{grid-template-columns:minmax(0,1fr)}
.cash-calculation>.ws-sheet dl div{font-size:14px}
.ws-sheet .cash-filters form,.ws-sheet .earnings-filters form{grid-template-columns:repeat(2,minmax(0,1fr))}
.ws-money-button{border:0;background:transparent;color:inherit;font:inherit;cursor:pointer;min-height:44px;text-align:left;padding:10px 0;max-width:100%;border-radius:6px}
.ws-money-button:hover{background:#eff4e9}.ws-money-button:focus-visible{outline:3px solid #557bba;outline-offset:3px}
.money-source,.money-choice{display:flex;align-items:center;gap:12px;width:100%;border-bottom:1px solid #dbe4d3;padding:16px 4px}
.money-source>span:first-child,.money-choice>span:first-child{flex:1}.money-source>strong,.money-choice>strong{flex-shrink:0;font-variant-numeric:tabular-nums}
.money-detail-total{font-size:28px;font-weight:700;margin:0 0 10px}.money-detail-count{color:#72816b;font-size:13px}
.money-detail-row{border:1px solid #dbe4d3;border-left:3px solid #7b8974;border-radius:12px;padding:16px;margin:12px 0;background:#fff}
.money-detail-row header,.money-detail-row footer{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.money-detail-row h3{font-size:16px;margin:12px 0 6px}.money-detail-row p,.money-detail-row footer{font-size:13px;color:#65765e;line-height:1.5}
.money-detail-row header strong{white-space:nowrap;font-variant-numeric:tabular-nums}.money-plus{border-left-color:#3e7254}.money-minus{border-left-color:#b36042}
.money-minus header strong{color:#914329}.money-zero header strong{color:#72816b}.money-detail-panel>dialog .cash-account{padding:16px}
.money-day{padding:12px 16px;margin:8px 0}.money-day p{margin:6px 0 0}
.money-day{display:block;width:100%;color:inherit;font:inherit;text-align:left;cursor:pointer;min-height:44px}
.money-day:hover{background:#f0f5ea}.money-day-heading{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.money-day-heading strong{white-space:nowrap}.money-day-note{display:block;color:#65765e;font-size:13px;line-height:1.5;margin-top:6px}
.compensation-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:16px}
.compensation-card{display:flex;flex-direction:column;gap:12px;text-align:left;border:1px solid #dbe4d3;border-radius:16px;background:#fff;color:inherit;padding:20px;font:inherit;cursor:pointer;min-height:44px}
.compensation-card:hover{border-color:#527844;background:#f5f8f0}.compensation-card small{color:#65765e}.compensation-card strong{font-size:20px}
.compensation-rule{padding:14px 0;border-bottom:1px solid #dbe4d3;line-height:1.6}.compensation-rule h3{margin:0 0 6px}.compensation-rule p{margin:0}
@media(max-width:700px){
  .ws-dialog.ws-sheet{inset:0;width:100%;border:0;border-radius:0}
  .ws-sheet>header{padding:12px 14px;padding-top:max(12px,env(safe-area-inset-top));gap:12px;align-items:center}
  .ws-sheet>header h2{font-size:17px}
  .ws-sheet .ws-panel-back{display:inline-flex;flex-shrink:0;padding:10px}
  .ws-sheet .ws-panel-close{display:none}
  .ws-sheet .ws-dialog-body{padding:16px;padding-bottom:max(24px,env(safe-area-inset-bottom))}
  .ws-sheet input,.ws-sheet select{font-size:16px}
}
