.cash-boxes-surface{
  width:100%;
  height:100%;
  min-height:0;
  min-width:0;
  display:flex;
  flex:1;
  position:relative;
  isolation:isolate;
  overflow:hidden;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}

.cash-boxes-surface::before{
  content:none;
  display:none;
}

.cash-boxes-layout{
  width:100%;
  height:100%;
  min-width:0;
  min-height:0;
  display:flex;
  flex-direction:row;
  align-items:stretch;
  gap:8px;
  padding:8px;
  box-sizing:border-box;
  position:relative;
  isolation:isolate;
}

.cash-boxes-panel{
  min-width:0;
  min-height:0;
  height:100%;
  display:flex;
  position:relative;
  isolation:isolate;
  overflow:hidden;
  border:1px solid rgba(178,196,235,.88);
  border-radius:8px;
  background:linear-gradient(180deg, rgba(244,247,252,.96), rgba(239,243,249,.94));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.65);
}

.cash-boxes-panel--right{
  flex:0 0 30%;
  z-index:3;
}

.cash-boxes-panel--left{
  flex:1 1 auto;
  z-index:1;
}

.cash-boxes-centers{
  flex:1;
  min-width:0;
  min-height:0;
  display:flex;
  position:relative;
  z-index:1;
  padding:8px;
  box-sizing:border-box;
}

.cash-boxes-centers__list{
  flex:1;
  min-width:0;
  min-height:0;
  display:flex;
  flex-direction:column;
  gap:6px;
  position:relative;
  z-index:1;
  overflow:auto;
  padding-inline-end:2px;
  pointer-events:auto;
}

.cash-boxes-centers__list::-webkit-scrollbar{
  width:9px;
}

.cash-boxes-centers__list::-webkit-scrollbar-track{
  background:transparent;
}

.cash-boxes-centers__list::-webkit-scrollbar-thumb{
  border-radius:999px;
  background:rgba(148,163,184,.42);
  border:2px solid transparent;
  background-clip:padding-box;
}

.cash-boxes-centers__list:hover::-webkit-scrollbar-thumb{
  background:rgba(100,116,139,.52);
  border:2px solid transparent;
  background-clip:padding-box;
}

.cash-boxes-fields{
  --cash-box-field-card-height:118px;
  flex:1;
  min-width:0;
  min-height:0;
  display:flex;
  padding:10px;
  box-sizing:border-box;
  overflow:auto;
}

.cash-boxes-fields__grid{
  flex:1;
  min-width:0;
  min-height:0;
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  grid-auto-rows:var(--cash-box-field-card-height);
  gap:10px;
  align-content:start;
}

.cash-boxes-fields::-webkit-scrollbar{
  width:9px;
}

.cash-boxes-fields::-webkit-scrollbar-track{
  background:transparent;
}

.cash-boxes-fields::-webkit-scrollbar-thumb{
  border-radius:999px;
  background:rgba(148,163,184,.42);
  border:2px solid transparent;
  background-clip:padding-box;
}

.cash-boxes-fields:hover::-webkit-scrollbar-thumb{
  background:rgba(100,116,139,.52);
  border:2px solid transparent;
  background-clip:padding-box;
}

.cash-boxes-field-slot{
  min-width:0;
  min-height:0;
  border:1.5px solid rgba(184,197,221,.98);
  border-radius:12px;
  background:transparent;
  box-shadow:none;
}

.cash-boxes-field-slot--primary{
  display:flex;
  align-items:stretch;
  justify-content:stretch;
  padding:0;
  overflow:hidden;
}

.cash-boxes-field-card{
  width:100%;
  height:100%;
  min-width:0;
  min-height:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:space-between;
  gap:4px;
  padding:6px 10px 5px;
  box-sizing:border-box;
  overflow:hidden;
}

.cash-boxes-field-card--empty{
  display:grid;
  place-items:center;
  text-align:center;
}

.cash-boxes-field-card__empty{
  max-width:170px;
  color:#64748b;
  font-size:11.4px;
  font-weight:700;
  line-height:1.55;
}

.cash-boxes-field-card__avatar-wrap{
  width:100%;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding-top:0;
  flex:0 0 auto;
}

.cash-boxes-field-card__avatar{
  width:34px;
  height:34px;
  border-radius:999px;
  overflow:hidden;
  display:grid;
  place-items:center;
  border:1px solid rgba(37,99,235,.14);
  background:linear-gradient(135deg, rgba(37,99,235,.16), rgba(255,255,255,.96));
  color:#1d4ed8;
  box-shadow:0 6px 14px rgba(15,23,42,.07);
  flex:0 0 auto;
}

.cash-boxes-field-card__avatar img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}

.cash-boxes-field-card__identity{
  width:100%;
  min-width:0;
  min-height:0;
  align-self:center;
  display:flex;
  flex:1 1 auto;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  overflow:hidden;
}

.cash-boxes-field-card__title-line{
  width:100%;
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  direction:rtl;
  overflow:hidden;
}

.cash-boxes-field-card__name{
  flex:0 1 auto;
  min-width:0;
  max-width:100%;
  color:#0f172a;
  font-size:10.8px;
  font-weight:800;
  line-height:1.18;
  display:block;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.cash-boxes-field-card__account{
  flex:0 0 auto;
  max-width:100%;
  color:#475569;
  font-size:10.6px;
  font-weight:800;
  line-height:1.18;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-variant-numeric:lining-nums tabular-nums;
  font-feature-settings:"lnum" 1, "tnum" 1;
}

.cash-boxes-field-card__date-block{
  width:100%;
  display:flex;
  flex:0 0 auto;
  flex-direction:row;
  align-items:center;
  justify-content:center;
  gap:4px;
  text-align:center;
  white-space:nowrap;
  overflow:hidden;
}

.cash-boxes-field-card__date-label{
  color:#64748b;
  font-size:8.8px;
  font-weight:700;
  line-height:1.1;
  flex:0 0 auto;
}

.cash-boxes-field-card__date-value{
  color:#0f172a;
  font-size:10px;
  font-weight:800;
  line-height:1.1;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  font-variant-numeric:lining-nums tabular-nums;
  font-feature-settings:"lnum" 1, "tnum" 1;
}

.cash-boxes-field-slot--balance{
  display:flex;
  align-items:stretch;
  justify-content:stretch;
  background:linear-gradient(180deg, rgba(255,255,255,.9), rgba(246,249,254,.88));
  box-shadow:0 4px 12px rgba(148,163,184,.08);
  overflow:hidden;
}

.cash-boxes-balance-card{
  width:100%;
  height:100%;
  min-width:0;
  min-height:0;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  justify-content:center;
  gap:8px;
  padding:10px 12px;
  box-sizing:border-box;
  text-align:right;
  background:transparent;
}

.cash-boxes-balance-card__header{
  width:100%;
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}

.cash-boxes-balance-card__currency{
  flex:1 1 auto;
  min-width:0;
  display:flex;
  align-items:center;
  gap:8px;
  overflow:hidden;
}

.cash-boxes-balance-card__flag{
  width:20px;
  height:20px;
  flex:0 0 auto;
}

.cash-boxes-balance-card__name{
  min-width:0;
  color:#0f172a;
  font-size:11.2px;
  font-weight:800;
  line-height:1.2;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.cash-boxes-balance-card__side{
  flex:0 0 auto;
  padding:3px 7px;
  border-radius:999px;
  font-size:9.4px;
  font-weight:800;
  line-height:1;
  border:1px solid currentColor;
}

.cash-boxes-balance-card__amount{
  color:#0f172a;
  font-size:19px;
  font-weight:900;
  line-height:1.05;
  letter-spacing:.02em;
  font-variant-numeric:lining-nums tabular-nums;
  font-feature-settings:"lnum" 1, "tnum" 1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.cash-boxes-balance-card__code{
  color:#64748b;
  font-size:10.4px;
  font-weight:800;
  line-height:1.1;
  letter-spacing:.08em;
  font-variant-numeric:lining-nums tabular-nums;
  font-feature-settings:"lnum" 1, "tnum" 1;
}

.cash-boxes-balance-card--debit .cash-boxes-balance-card__amount,
.cash-boxes-balance-card--debit .cash-boxes-balance-card__side{
  color:#15803d;
}

.cash-boxes-balance-card--debit .cash-boxes-balance-card__side{
  background:rgba(34,197,94,.08);
}

.cash-boxes-balance-card--credit .cash-boxes-balance-card__amount,
.cash-boxes-balance-card--credit .cash-boxes-balance-card__side{
  color:#dc2626;
}

.cash-boxes-balance-card--credit .cash-boxes-balance-card__side{
  background:rgba(239,68,68,.08);
}

.cash-boxes-balances-empty{
  grid-column:1 / -1;
  display:flex;
  align-items:flex-start;
  justify-content:flex-start;
  padding:6px 2px 0;
  color:#64748b;
  font-size:12.2px;
  font-weight:700;
  line-height:1.6;
}

.cash-boxes-field-spacer{
  min-width:0;
  min-height:0;
  visibility:hidden;
  pointer-events:none;
}

.cash-boxes-centers__empty{
  width:100%;
  align-self:stretch;
  display:grid;
  place-items:center;
  padding:16px;
  text-align:center;
  border-radius:12px;
  border:1px dashed rgba(191,201,219,.94);
  background:rgba(248,250,252,.84);
  color:#64748b;
  font-size:12.8px;
  font-weight:700;
}

.cash-boxes-center-option{
  width:100%;
  min-height:46px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  position:relative;
  z-index:1;
  padding:10px 12px;
  box-sizing:border-box;
  border:1px solid rgba(198,208,225,.95);
  border-radius:12px;
  background:linear-gradient(180deg, rgba(255,255,255,.92), rgba(248,250,252,.9));
  color:#0f172a;
  font:inherit;
  font-size:12.8px;
  font-weight:700;
  text-align:right;
  cursor:pointer;
  pointer-events:auto;
  touch-action:manipulation;
  transition:background .16s ease, color .16s ease, transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.cash-boxes-center-option:hover,
.cash-boxes-center-option:focus-visible,
.cash-boxes-center-option[data-cash-box-pressed="true"]{
  outline:none;
  background:rgba(37,99,235,.08);
  color:#1d4ed8;
  border-color:rgba(96,165,250,.55);
  transform:translateY(-1px);
}

.cash-boxes-center-option.is-active{
  background:rgba(37,99,235,.05);
  color:#0f172a;
  border-color:rgba(96,165,250,.48);
  box-shadow:none;
}

.cash-boxes-center-option.is-active:is(:focus, :focus-visible){
  background:rgba(37,99,235,.07);
  border-color:rgba(37,99,235,.55);
}

.cash-boxes-center-option__copy{
  flex:1 1 auto;
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.cash-boxes-center-option__name{
  flex:1 1 auto;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:inherit;
}

.cash-boxes-center-option__account{
  flex:0 0 auto;
  color:#64748b;
  font-size:12.1px;
  font-weight:800;
  font-variant-numeric:lining-nums tabular-nums;
  font-feature-settings:"lnum" 1, "tnum" 1;
}

.cash-boxes-center-option:hover .cash-boxes-center-option__account,
.cash-boxes-center-option:focus-visible .cash-boxes-center-option__account{
  color:currentColor;
}

.cash-boxes-center-option__check{
  width:14px;
  height:14px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  color:transparent;
}

.cash-boxes-center-option__check svg{
  width:100%;
  height:100%;
  display:block;
}

.cash-boxes-center-option.is-active .cash-boxes-center-option__check{
  color:#2563eb;
}

.cash-boxes-center-option:hover .cash-boxes-center-option__check,
.cash-boxes-center-option:focus-visible .cash-boxes-center-option__check{
  color:#1d4ed8;
}

@media (max-width:760px){
  .cash-boxes-layout{
    gap:6px;
    padding:6px;
  }

  .cash-boxes-fields{
    --cash-box-field-card-height:108px;
    padding:8px;
  }

  .cash-boxes-balance-card__amount{
    font-size:17px;
  }
}


/* ===== Cash boxes button interaction system (scoped, unified) ===== */
:where(.panel[data-view="cash-boxes"], .cash-boxes-surface){
  --cash-button-lift-y:-2px;
  --cash-button-lift-scale:1.035;
  --cash-button-press-scale:1.055;
  --cash-button-transition:transform .18s cubic-bezier(.22,1,.36,1), box-shadow .18s ease, border-color .18s ease, background .18s ease, color .18s ease, filter .18s ease;
}

.panel[data-view="cash-boxes"] .cash-boxes-centers__list,
.cash-boxes-surface .cash-boxes-centers__list{
  overflow:visible;
}

.panel[data-view="cash-boxes"] .cash-boxes-center-option,
.cash-boxes-surface .cash-boxes-center-option{
  --cash-button-hover-border:rgba(96,165,250,.55);
  --cash-button-hover-shadow:0 18px 30px rgba(37,99,235,.16);
  --cash-button-active-shadow:0 16px 26px rgba(37,99,235,.18);
  --cash-button-focus-ring:0 0 0 2px rgba(59,130,246,.12);
  --cash-button-cue-color:#1d4ed8;
  transform-origin:center center;
  backface-visibility:hidden;
  will-change:transform, box-shadow, filter;
  transition:var(--cash-button-transition) !important;
}

.panel[data-view="cash-boxes"] .cash-boxes-center-option:is(:hover, :focus-visible, [data-cash-box-pressed="true"]),
.cash-boxes-surface .cash-boxes-center-option:is(:hover, :focus-visible, [data-cash-box-pressed="true"]){
  transform:translateY(var(--cash-button-lift-y)) scale(var(--cash-button-lift-scale)) !important;
  border-color:var(--cash-button-hover-border) !important;
  box-shadow:var(--cash-button-focus-ring), var(--cash-button-hover-shadow) !important;
  color:var(--cash-button-cue-color) !important;
  outline:none !important;
}

.panel[data-view="cash-boxes"] .cash-boxes-center-option:active:not(:disabled),
.cash-boxes-surface .cash-boxes-center-option:active:not(:disabled){
  transform:translateY(var(--cash-button-lift-y)) scale(var(--cash-button-press-scale)) !important;
  border-color:var(--cash-button-hover-border) !important;
  box-shadow:var(--cash-button-focus-ring), var(--cash-button-active-shadow) !important;
  color:var(--cash-button-cue-color) !important;
  outline:none !important;
}

.panel[data-view="cash-boxes"] .cash-boxes-center-option:is(:hover, :focus-visible, [data-cash-box-pressed="true"]) .cash-boxes-center-option__account,
.cash-boxes-surface .cash-boxes-center-option:is(:hover, :focus-visible, [data-cash-box-pressed="true"]) .cash-boxes-center-option__account{
  color:currentColor;
}

.panel[data-view="cash-boxes"] .cash-boxes-center-option:is(:hover, :focus-visible, [data-cash-box-pressed="true"]) .cash-boxes-center-option__check,
.cash-boxes-surface .cash-boxes-center-option:is(:hover, :focus-visible, [data-cash-box-pressed="true"]) .cash-boxes-center-option__check{
  color:#1d4ed8;
}
