/* Cleaned CurrencyManagement stylesheet: deduplicated selectors, removed dead preview-only selectors, and preserved current visual behavior. */

.panel[data-view="currency-management"],
.taif-currency-management-modal-backdrop{
  --currency-management-neutral-rate-surface:linear-gradient(180deg, rgba(248,250,252,.98), rgba(241,245,249,.96));
  --currency-management-neutral-rate-border:rgba(15,23,42,.18);
  --currency-management-neutral-rate-shadow:inset 0 1px 0 rgba(255,255,255,.92);
}

.panel[data-view="currency-management"]{
  overflow:hidden;
}

.currency-management-shell{
  --currency-management-toolbar-height:48px;
  --currency-management-control-height:40px;
  --currency-management-row-height:50px;
  --currency-management-pill-height:36px;
  --currency-management-flag-size:36px;
  --currency-management-flag-column:40px;
  --currency-management-state-head-column:12px;
  --currency-management-state-row-column:18px;
  --currency-management-code-column:84px;
  --currency-management-action-size:34px;
  --currency-management-actions-column:236px;
  --currency-management-name-column:minmax(136px, .98fr);
  --currency-management-pair-column:80px;
  --currency-management-value-column:minmax(86px, .9fr);
  --currency-management-grid-gap:6px;
  --currency-management-pill-column-inset:12px;
  --currency-management-head-label-size:11px;
  --currency-management-code-font-size:13px;
  --currency-management-pill-font-size:13px;
  --currency-management-name-font-size:13.5px;
  --currency-management-icon-size:15px;
  --currency-management-row-padding-y:7px;
  --currency-management-row-padding-x:6px;
  --currency-management-head-padding-y:7px;
  --currency-management-head-padding-x:6px;
  --currency-management-head-name-padding-start:18px;
  position:relative;
  display:flex;
  flex-direction:column;
  gap:5px;
  height:100%;
  padding:4px;
  container-type:inline-size;
}

.currency-management-shell::before{
  content:none;
}

.currency-management-shell > *{
  position:relative;
  z-index:1;
}

.currency-management-headrow > div,
.currency-management-row,
.currency-management-row > .currency-management-flag,
.currency-management-row > .currency-management-code-pill,
.currency-management-row > .currency-management-name-col,
.currency-management-row > .currency-management-num-pill,
.currency-management-btn,
.currency-management-btn *,
.currency-management-iconbtn,
.currency-management-iconbtn *,
.taif-currency-management-modal__head,
.taif-currency-management-modal__heading,
.taif-currency-management-modal__heading *,
.taif-currency-management-modal__window-actions,
.taif-currency-management-modal__window-actions *{
  -webkit-user-select:none;
  user-select:none;
}

.panel[data-view="currency-management"] input:not([type="hidden"]):not([disabled]):not([readonly]),
.panel[data-view="currency-management"] textarea:not([disabled]):not([readonly]),
.panel[data-view="currency-management"] [contenteditable="true"],
.panel[data-view="currency-management"] [contenteditable="plaintext-only"],
.taif-currency-management-modal input:not([type="hidden"]):not([disabled]):not([readonly]),
.taif-currency-management-modal textarea:not([disabled]):not([readonly]),
.taif-currency-management-modal [contenteditable="true"],
.taif-currency-management-modal [contenteditable="plaintext-only"]{
  -webkit-user-select:text !important;
  user-select:text !important;
}

.currency-management-topbar{
  --cm-search-min:162px;
  --cm-search-max:252px;
  --cm-topbar-gap:6px;
  --cm-toolbar-padding-inline:6px;
  --cm-toolbar-padding-block:4px;
  --cm-toolbar-btn-height:36px;
  --cm-toolbar-btn-padding-inline:13px;
  --cm-toolbar-btn-font-size:12.5px;
  --cm-toolbar-icon-size:15px;
  --cm-counterpart-max:320px;
  --cm-search-font-size:13.5px;
  --cm-search-input-height:40px;
  --cm-search-padding-inline-start:40px;
  --cm-search-padding-inline-end:15px;
  --cm-search-clear-size:28px;
  display:grid;
  grid-template-columns:minmax(var(--cm-search-min), var(--cm-search-max)) minmax(0, 1fr);
  gap:var(--cm-topbar-gap);
  align-items:center;
  min-height:var(--currency-management-toolbar-height);
  padding:var(--cm-toolbar-padding-block) var(--cm-toolbar-padding-inline);
  border-radius:9px;
  border:1px solid rgba(15,23,42,.08);
  background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.84)),
    radial-gradient(760px 220px at 90% -20%, rgba(37,99,235,.10), rgba(37,99,235,0) 62%);
  box-shadow:0 14px 30px rgba(15,23,42,.08);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  overflow:hidden;
  container-type:inline-size;
}

.currency-management-topbar.is-fit-1{
  --cm-search-min:150px;
  --cm-search-max:214px;
  --cm-topbar-gap:5px;
  --cm-toolbar-btn-height:34px;
  --cm-toolbar-btn-padding-inline:11px;
  --cm-toolbar-btn-font-size:12px;
  --cm-counterpart-max:286px;
  --cm-search-font-size:13px;
}

.currency-management-topbar.is-fit-2{
  --cm-search-min:132px;
  --cm-search-max:186px;
  --cm-topbar-gap:4px;
  --cm-toolbar-padding-inline:5px;
  --cm-toolbar-btn-height:32px;
  --cm-toolbar-btn-padding-inline:9px;
  --cm-toolbar-btn-font-size:11.25px;
  --cm-toolbar-icon-size:13px;
  --cm-counterpart-max:246px;
  --cm-search-font-size:12px;
  --cm-search-input-height:38px;
  --cm-search-padding-inline-start:36px;
  --cm-search-padding-inline-end:12px;
  --cm-search-clear-size:26px;
}

.currency-management-topbar.is-fit-3{
  --cm-search-min:118px;
  --cm-search-max:160px;
  --cm-topbar-gap:3px;
  --cm-toolbar-padding-inline:4px;
  --cm-toolbar-padding-block:3px;
  --cm-toolbar-btn-height:30px;
  --cm-toolbar-btn-padding-inline:7px;
  --cm-toolbar-btn-font-size:11px;
  --cm-toolbar-icon-size:12px;
  --cm-counterpart-max:210px;
  --cm-search-font-size:11.5px;
  --cm-search-input-height:36px;
  --cm-search-padding-inline-start:34px;
  --cm-search-padding-inline-end:10px;
  --cm-search-clear-size:24px;
}

.currency-management-topbar.is-fit-4{
  --cm-search-min:100px;
  --cm-search-max:132px;
  --cm-topbar-gap:2px;
  --cm-toolbar-padding-inline:3px;
  --cm-toolbar-btn-height:29px;
  --cm-toolbar-btn-padding-inline:6px;
  --cm-toolbar-btn-font-size:10.6px;
  --cm-toolbar-icon-size:11px;
  --cm-counterpart-max:178px;
  --cm-search-font-size:11px;
  --cm-search-input-height:34px;
  --cm-search-padding-inline-start:32px;
  --cm-search-padding-inline-end:9px;
  --cm-search-clear-size:22px;
}

.currency-management-topbar-search{
  min-width:0;
  width:100%;
  display:flex;
  align-items:center;
  gap:0;
}

.currency-management-topbar-tools{
  min-width:0;
  width:100%;
  max-width:100%;
  display:flex;
  flex-wrap:nowrap;
  align-items:center;
  gap:var(--cm-topbar-gap);
  overflow:hidden;
  padding:3px 0;
}

.currency-management-topbar-tools .currency-management-btn{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  flex:0 1 auto;
  min-width:0;
  max-width:100%;
  min-height:var(--cm-toolbar-btn-height);
  padding:0 var(--cm-toolbar-btn-padding-inline);
  border-radius:8px;
  white-space:nowrap;
  transform:none;
  font-size:var(--cm-toolbar-btn-font-size);
  font-weight:700;
  border:1px solid rgba(148,163,184,.22);
  box-shadow:0 10px 18px rgba(15,23,42,.08), inset 0 1px 0 rgba(255,255,255,.34);
}

.currency-management-topbar-tools .currency-management-btn > span:not(.currency-management-counterpart-trigger__meta){
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.currency-management-topbar-tools .currency-management-btn svg{
  width:var(--cm-toolbar-icon-size);
  height:var(--cm-toolbar-icon-size);
}

.currency-management-topbar-tools .currency-management-btn::before{
  content:"";
  position:absolute;
  inset:1px 1px auto;
  height:54%;
  border-radius:inherit;
  background:linear-gradient(180deg, rgba(255,255,255,.34), rgba(255,255,255,0));
  pointer-events:none;
  z-index:-1;
}

.currency-management-topbar-tools .currency-management-btn > *{
  position:relative;
  z-index:1;
}

.currency-management-topbar-tools.currency-management-toolbar{
  flex-wrap:nowrap;
}

.currency-management-topbar-tools > *{
  flex:0 1 auto;
  min-width:0;
}

.currency-management-topbar-tools .currency-management-btn:hover{
  transform:none;
  box-shadow:0 12px 22px rgba(15,23,42,.10), inset 0 1px 0 rgba(255,255,255,.38);
  filter:saturate(1.03) brightness(1.012);
}

.currency-management-topbar-tools .currency-management-btn:active{
  transform:none;
  box-shadow:0 7px 14px rgba(15,23,42,.10), inset 0 1px 0 rgba(255,255,255,.24);
}

.currency-management-topbar-tools .currency-management-btn:focus,
.currency-management-topbar-tools .currency-management-btn:focus-visible{
  outline:none;
}

.currency-management-topbar-tools .currency-management-btn[data-currency-management-action="edit-single"]{
  background:linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  color:#fff;
  border-color:rgba(109,40,217,.34);
  box-shadow:0 14px 24px rgba(109,40,217,.18), 0 4px 10px rgba(139,92,246,.12), inset 0 1px 0 rgba(255,255,255,.14);
}

.currency-management-topbar-tools .currency-management-btn[data-currency-management-action="edit-single"]::before{
  background:linear-gradient(180deg, rgba(255,255,255,.17), rgba(255,255,255,0));
}


@container (max-width: 1260px){
  .currency-management-topbar{
    --cm-search-min:148px;
    --cm-search-max:210px;
    --cm-topbar-gap:5px;
    --cm-toolbar-btn-padding-inline:11px;
  }
}

@container (max-width: 1080px){
  .currency-management-topbar{
    --cm-search-min:130px;
    --cm-search-max:182px;
    --cm-topbar-gap:4px;
    --cm-toolbar-btn-height:32px;
    --cm-toolbar-btn-padding-inline:9px;
    --cm-toolbar-btn-font-size:11.25px;
    --cm-toolbar-icon-size:13px;
    --cm-counterpart-max:236px;
  }
}

@container (max-width: 980px){
  .currency-management-topbar{
    --cm-search-min:116px;
    --cm-search-max:154px;
    --cm-topbar-gap:3px;
    --cm-toolbar-btn-height:30px;
    --cm-toolbar-btn-padding-inline:7px;
    --cm-toolbar-btn-font-size:10.5px;
    --cm-toolbar-icon-size:12px;
    --cm-counterpart-max:206px;
    --cm-search-font-size:11px;
    --cm-search-input-height:36px;
    --cm-search-padding-inline-start:34px;
    --cm-search-padding-inline-end:10px;
    --cm-search-clear-size:24px;
  }

  .currency-management-counterpart-trigger__meta{
    gap:5px;
    padding:0;
  }

  .currency-management-counterpart-trigger__flag{
    width:22px;
    height:22px;
  }
}

@container (max-width: 1360px){
  .currency-management-layout{
    --currency-management-name-column:minmax(128px, .94fr);
    --currency-management-pair-column:74px;
    --currency-management-value-column:minmax(78px, .84fr);
    --currency-management-actions-column:208px;
    --currency-management-grid-gap:5px;
    --currency-management-head-label-size:10px;
    --currency-management-code-font-size:12.5px;
    --currency-management-pill-font-size:12.5px;
    --currency-management-name-font-size:13px;
    --currency-management-icon-size:14px;
    --currency-management-head-name-padding-start:14px;
    --currency-management-pill-column-inset:8px;
  }

  .currency-management-actions{
    gap:4px;
  }

  .currency-management-iconbtn{
    width:32px;
    height:32px;
    border-radius:8px;
  }
}

@container (max-width: 1220px){
  .currency-management-layout{
    --currency-management-row-height:46px;
    --currency-management-pill-height:33px;
    --currency-management-flag-size:32px;
    --currency-management-flag-column:34px;
    --currency-management-state-head-column:10px;
    --currency-management-state-row-column:14px;
    --currency-management-code-column:76px;
    --currency-management-name-column:minmax(118px, .92fr);
    --currency-management-pair-column:70px;
    --currency-management-value-column:minmax(68px, .76fr);
    --currency-management-actions-column:162px;
    --currency-management-grid-gap:4px;
    --currency-management-pill-column-inset:4px;
    --currency-management-head-label-size:9.55px;
    --currency-management-code-font-size:11.8px;
    --currency-management-pill-font-size:11.8px;
    --currency-management-name-font-size:12.2px;
    --currency-management-icon-size:13px;
    --currency-management-row-padding-y:6px;
    --currency-management-row-padding-x:4px;
    --currency-management-head-padding-y:6px;
    --currency-management-head-padding-x:4px;
    --currency-management-head-name-padding-start:10px;
  }

  .currency-management-actions{
    gap:3px;
  }

  .currency-management-iconbtn{
    width:28px;
    height:28px;
    border-radius:7px;
  }
}

@container (max-width: 1080px){
  .currency-management-layout{
    --currency-management-row-height:44px;
    --currency-management-pill-height:31px;
    --currency-management-flag-size:30px;
    --currency-management-flag-column:32px;
    --currency-management-state-head-column:8px;
    --currency-management-state-row-column:12px;
    --currency-management-code-column:70px;
    --currency-management-name-column:minmax(106px, .86fr);
    --currency-management-pair-column:64px;
    --currency-management-value-column:minmax(62px, .68fr);
    --currency-management-actions-column:144px;
    --currency-management-grid-gap:3px;
    --currency-management-pill-column-inset:2px;
    --currency-management-head-label-size:9px;
    --currency-management-code-font-size:11px;
    --currency-management-pill-font-size:11px;
    --currency-management-name-font-size:11.6px;
    --currency-management-icon-size:12px;
    --currency-management-head-name-padding-start:6px;
  }

  .currency-management-headrow > div:nth-child(6),
  .currency-management-headrow > div:nth-child(7),
  .currency-management-headrow > div:nth-child(8),
  .currency-management-headrow > div:nth-child(9),
  .currency-management-headrow > div:nth-child(10){
    width:100%;
    line-height:1.12;
  }

  .currency-management-actions{
    gap:2px;
  }

  .currency-management-iconbtn{
    width:26px;
    height:26px;
    border-radius:7px;
  }
}

.currency-management-toolbar-counterpart{
  position:relative;
  flex:0 1 auto;
  min-width:0;
  max-width:100%;
  display:inline-flex;
  align-items:center;
  order:999;
}

.currency-management-toolbar-counterpart.is-open{
  z-index:18;
}

.currency-management-topbar-tools .currency-management-btn--counterpart{
  max-inline-size:var(--cm-counterpart-max);
  background:linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color:#fff;
  border-color:rgba(234,88,12,.28);
  box-shadow:0 14px 24px rgba(234,88,12,.18), 0 4px 10px rgba(245,158,11,.12), inset 0 1px 0 rgba(255,255,255,.14);
}

.currency-management-topbar-tools .currency-management-btn--counterpart:hover,
.currency-management-topbar-tools .currency-management-btn--counterpart:focus,
.currency-management-topbar-tools .currency-management-btn--counterpart:focus-visible,
.currency-management-topbar-tools .currency-management-btn--counterpart:active{
  border-color:rgba(234,88,12,.28);
}

.currency-management-topbar-tools .currency-management-btn--counterpart:focus,
.currency-management-topbar-tools .currency-management-btn--counterpart:focus-visible{
  box-shadow:0 14px 24px rgba(234,88,12,.18), 0 4px 10px rgba(245,158,11,.12), inset 0 1px 0 rgba(255,255,255,.14);
}

.currency-management-topbar-tools .currency-management-btn--counterpart::before{
  background:linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,0));
}

.currency-management-counterpart-trigger__meta{
  margin-inline-start:4px;
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}

.currency-management-counterpart-trigger__code{
  font:700 12px/1 var(--taif-font-family);
  letter-spacing:.02em;
}

.currency-management-counterpart-trigger__flag{
  width:26px;
  height:26px;
  flex:0 0 26px;
}

.currency-management-counterpart-popover{
  position:absolute;
  top:calc(100% + 7px);
  inset-inline-start:0;
  width:100%;
  min-width:100%;
  max-width:calc(100vw - 24px);
  box-sizing:border-box;
  overflow:hidden;
  border:1px solid rgba(47,103,243,.94);
  border-radius:10px;
  background-clip:padding-box;
  box-shadow:0 18px 36px rgba(15,23,42,.12), 0 0 0 1px rgba(96,165,250,.18);
  isolation:isolate;
}

.currency-management-counterpart-popover::before{
  content:'';
  position:absolute;
  inset:0;
  border:1px solid rgba(47,103,243,.94);
  border-radius:inherit;
  pointer-events:none;
}

.currency-management-counterpart-popover[hidden]{
  display:none !important;
}

.currency-management-counterpart-popover.is-open{
  animation:currency-management-method-popover-in .18s ease;
}

.currency-management-counterpart-popover__head{
  padding:2px 6px 8px;
  color:#334155;
  font:700 12.5px/1.45 var(--taif-font-family);
}

.currency-management-counterpart-popover__list{
  display:grid;
  grid-template-columns:1fr;
  gap:4px;
  max-height:356px;
  overflow:auto;
  padding-inline-end:1px;
  scrollbar-width:thin;
  scrollbar-color:var(--taif-scrollbar-thumb) var(--taif-scrollbar-track);
}

.currency-management-counterpart-popover__option{
  width:100%;
  display:flex;
  align-items:center;
  gap:6px;
  text-align:start;
  cursor:pointer;
  min-height:46px;
}

.currency-management-counterpart-popover__option-flag{
  width:30px;
  height:30px;
  flex:0 0 30px;
}

.currency-management-counterpart-popover__option-code-badge{
  display:inline-flex;
  align-items:center;
  justify-content:flex-end;
  flex:0 0 auto;
  font:800 12px/1.2 var(--taif-font-family);
  letter-spacing:0;
}

.currency-management-counterpart-popover__option-name{
  min-width:0;
  flex:1;
  text-align:start;
  font:700 12.75px/1.35 var(--taif-font-family);
}

.currency-management-counterpart-popover__option-check{
  width:18px;
  height:18px;
  flex:0 0 18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.currency-management-counterpart-popover__option-check svg{
  width:18px;
  height:18px;
}

.currency-management-search-wrap{
  position:relative;
  width:100%;
}

.currency-management-search-input{
  width:100%;
  height:var(--cm-search-input-height);
  padding:0 var(--cm-search-padding-inline-end) 0 var(--cm-search-padding-inline-start);
  border-radius:8px;
  border:1px solid rgba(15,23,42,.10);
  background:rgba(255,255,255,.92);
  color:#0b1220;
  font:700 var(--cm-search-font-size)/1 var(--taif-font-family);
  outline:none;
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.currency-management-search-icon{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  display:grid;
  place-items:center;
  right:13px;
  width:17px;
  height:17px;
  color:#64748b;
  pointer-events:none;
}

.currency-management-search-clear{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  display:grid;
  place-items:center;
  left:6px;
  width:var(--cm-search-clear-size);
  height:var(--cm-search-clear-size);
  padding:0;
  border:1px solid rgba(220,38,38,.22);
  border-radius:8px;
  background:linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  box-shadow:0 10px 16px rgba(185,28,28,.16), inset 0 1px 0 rgba(255,255,255,.16);
  color:#fff;
  cursor:pointer;
  font-size:0;
  line-height:0;
  transition:filter .18s ease, transform .18s ease, box-shadow .18s ease;
}
.currency-management-search-clear:focus{
  outline:none;
  box-shadow:none;
}

.currency-management-search-clear:focus-visible{
  outline:none;
  box-shadow:none;
}

.currency-management-toolbar{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  align-items:center;
  justify-content:flex-start;
}

.currency-management-btn{
  min-height:var(--currency-management-control-height);
  padding:0 13px;
  border-radius:8px;
  border:1px solid rgba(15,23,42,.10);
  background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.78));
  color:#0b1220;
  font:700 12.5px/1 var(--taif-font-family);
  display:inline-flex;
  align-items:center;
  gap:6px;
  cursor:pointer;
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

.currency-management-btn svg{
  width:var(--currency-management-icon-size);
  height:var(--currency-management-icon-size);
  flex:0 0 auto;
}

.currency-management-btn:hover{
  transform:translateY(-1px);
  border-color:rgba(37,99,235,.20);
  box-shadow:0 10px 20px rgba(15,23,42,.06);
}

.currency-management-btn:active{
  transform:translateY(0) scale(.98);
}

.currency-management-btn--primary{
  background:linear-gradient(135deg, #2563eb, #1d4ed8);
  color:#fff;
  border-color:rgba(37,99,235,.35);
}

.currency-management-btn--danger{
  background:linear-gradient(135deg, #ef4444, #b91c1c);
  color:#fff;
  border-color:rgba(239,68,68,.34);
}

.currency-management-btn--dark{
  background:linear-gradient(135deg, #0f172a, #1e293b);
  color:#fff;
  border-color:rgba(15,23,42,.34);
}

.currency-management-layout{
  min-height:0;
  min-width:0;
  flex:1;
  display:flex;
  flex-direction:column;
  gap:5px;
}

.currency-management-scroll{
  min-height:0;
  min-width:0;
  flex:1;
  overflow-y:auto;
  overflow-x:hidden;
  direction:rtl;
  padding:0 0 2px;
  scrollbar-width:thin;
  scrollbar-color:var(--taif-scrollbar-thumb) var(--taif-scrollbar-track);
  scrollbar-gutter:stable;
}

.currency-management-scroll::-webkit-scrollbar{
  width:8px;
  height:8px;
}

.currency-management-scroll::-webkit-scrollbar-track{
  background:var(--taif-scrollbar-track);
  border-radius:10px;
}

.currency-management-scroll::-webkit-scrollbar-thumb{
  border-radius:10px;
  background:var(--taif-scrollbar-thumb);
  border:1px solid transparent;
  background-clip:padding-box;
}

.currency-management-table{
  width:100%;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:5px;
}

.currency-management-headrow{
  width:100%;
  display:grid;
  grid-template-columns:var(--currency-management-state-head-column) var(--currency-management-flag-column) var(--currency-management-code-column) var(--currency-management-name-column) var(--currency-management-pair-column) var(--currency-management-value-column) var(--currency-management-value-column) var(--currency-management-value-column) var(--currency-management-value-column) var(--currency-management-value-column) var(--currency-management-actions-column);
  gap:var(--currency-management-grid-gap);
  align-items:center;
  position:sticky;
  top:0;
  z-index:4;
  padding:var(--currency-management-head-padding-y) var(--currency-management-head-padding-x);
  border-radius:8px;
  border:1px solid rgba(15,23,42,.08);
  background:rgba(230,236,244,.94);
  color:#475569;
  font-size:var(--currency-management-head-label-size);
  font-weight:700;
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}

.currency-management-row{
  width:100%;
  display:grid;
  grid-template-columns:var(--currency-management-state-row-column) var(--currency-management-flag-column) var(--currency-management-code-column) var(--currency-management-name-column) var(--currency-management-pair-column) var(--currency-management-value-column) var(--currency-management-value-column) var(--currency-management-value-column) var(--currency-management-value-column) var(--currency-management-value-column) var(--currency-management-actions-column);
  gap:var(--currency-management-grid-gap);
  align-items:center;
  position:relative;
  padding:var(--currency-management-row-padding-y) var(--currency-management-row-padding-x);
  min-height:var(--currency-management-row-height);
  border-radius:9px;
  border:1px solid rgba(15,23,42,.08);
  background:rgba(255,255,255,.82);
  box-shadow:0 10px 24px rgba(15,23,42,.05);
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

.currency-management-headrow > div{
  white-space:nowrap;
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}

.currency-management-headrow > div:nth-child(4) .taif-singleline-fit,
.currency-management-bulk-grid-head__cell--name .taif-singleline-fit{
  text-align:right;
}

.currency-management-headrow > div:nth-child(5) .taif-singleline-fit,
.currency-management-bulk-grid-head__cell--pair .taif-singleline-fit{
  text-align:center;
}

.currency-management-headrow > div:nth-child(6),
.currency-management-headrow > div:nth-child(7),
.currency-management-headrow > div:nth-child(8),
.currency-management-headrow > div:nth-child(9),
.currency-management-headrow > div:nth-child(10){
  width:calc(100% - var(--currency-management-pill-column-inset));
  justify-self:center;
  white-space:nowrap;
  line-height:1.12;
}

.currency-management-headrow > div:nth-child(4),
.currency-management-headrow > div:nth-child(5),
.currency-management-headrow > div:nth-child(11){
  width:100%;
}

.currency-management-headrow > div:nth-child(4){
  justify-content:flex-start;
  text-align:right;
  padding-inline-start:var(--currency-management-head-name-padding-start);
  padding-inline-end:0;
}

.currency-management-headrow > div:nth-child(5){
  padding-inline:0;
}

.currency-management-row:hover{
  transform:translateY(-1px);
  border-color:rgba(37,99,235,.18);
  box-shadow:0 14px 28px rgba(15,23,42,.08);
}

.currency-management-row--selected{
  border-color:rgba(15,23,42,.72);
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
  box-shadow:0 12px 24px rgba(15,23,42,.08);
}

.currency-management-row--selected:hover{
  border-color:rgba(15,23,42,.82);
  box-shadow:0 14px 28px rgba(15,23,42,.10);
}

.currency-management-scroll-inner{
  direction:rtl;
  min-width:0;
  position:relative;
}

.currency-management-row--hidden{
  display:none;
}

.currency-management-row--usd{
  border-style:solid;
  background:linear-gradient(90deg, rgba(37,99,235,.06), rgba(255,255,255,.92));
}

.currency-management-state-slot{
  display:flex;
  align-items:center;
  justify-content:center;
}
.currency-management-state-dot.is-reference{
  background:linear-gradient(180deg, rgba(239,246,255,.98), rgba(219,234,254,.96));
  border-color:rgba(96,165,250,.44);
}
.currency-management-flag{
  width:var(--currency-management-flag-size);
  height:var(--currency-management-flag-size);
}

.currency-management-code-pill{
  min-height:var(--currency-management-pill-height);
  padding:0 12px;
  border-radius:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  white-space:nowrap;
  font-size:var(--currency-management-code-font-size);
  font-weight:700;
  border:1px solid rgba(15,23,42,.08);
  background:rgba(15,23,42,.04);
  color:#0b1220;
  direction:ltr;
}

.currency-management-num-pill{
  min-height:var(--currency-management-pill-height);
  padding:0 12px;
  border-radius:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  white-space:nowrap;
  font-size:var(--currency-management-pill-font-size);
  font-weight:700;
  border:1px solid rgba(15,23,42,.06);
  background:rgba(15,23,42,.04);
  color:#0b1220;
  font-variant-numeric:tabular-nums;
  direction:ltr;
}

.currency-management-row > .currency-management-num-pill{
  width:calc(100% - var(--currency-management-pill-column-inset));
  max-width:calc(100% - var(--currency-management-pill-column-inset));
  justify-self:center;
}

.currency-management-name-col{
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:0;
  min-width:0;
}

.currency-management-name{
  font-size:var(--currency-management-name-font-size);
  font-weight:700;
  color:#0b1220;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.currency-management-pair-col{
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  padding-inline:0;
}

.currency-management-pair-badge,
.currency-management-bulk-card__pair-badge{
  min-height:20px;
  width:100%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 8px;
  border-radius:10px;
  border:1px solid rgba(59,130,246,.14);
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(239,246,255,.94));
  color:#1d4ed8;
  direction:ltr;
  white-space:nowrap;
}

.currency-management-pair-badge{
  max-width:72px;
  font:700 11px/1 var(--taif-font-family);
}

.taif-pair-badge__part,
.taif-pair-badge__slash{
  display:inline-block;
}

.taif-pair-badge__part--usd{
  color:#1d4ed8;
}

.taif-pair-badge__part--counterpart{
  color:#334155;
}

.taif-pair-badge__slash{
  color:rgba(37,99,235,.82);
  margin-inline:1px;
}

.currency-management-num-pill--mid,
.currency-management-num-pill--buy,
.currency-management-num-pill--sell,
.currency-management-num-pill--ratio-buy,
.currency-management-num-pill--ratio-sell{
  background:var(--currency-management-neutral-rate-surface);
  border-color:var(--currency-management-neutral-rate-border);
  box-shadow:var(--currency-management-neutral-rate-shadow);
}

.currency-management-num-pill--mid{
  color:#1d4ed8;
}

.currency-management-num-pill--buy{
  color:#15803d;
}

.currency-management-num-pill--sell{
  color:#dc2626;
}

.currency-management-num-pill--ratio-buy{
  color:#15803d;
}

.currency-management-num-pill--ratio-sell{
  color:#dc2626;
}

.currency-management-actions{
  min-width:0;
  display:flex;
  align-items:center;
  gap:5px;
  justify-content:flex-end;
}

.currency-management-iconbtn{
  width:var(--currency-management-action-size);
  height:var(--currency-management-action-size);
  display:grid;
  place-items:center;
  border:1px solid rgba(15,23,42,.10);
  border-radius:8px;
  background:rgba(255,255,255,.92);
  color:#0b1220;
  cursor:pointer;
  transition:transform .16s ease, border-color .16s ease, background .16s ease;
}

.currency-management-iconbtn svg{
  width:var(--currency-management-icon-size);
  height:var(--currency-management-icon-size);
}

.currency-management-iconbtn:hover{
  transform:translateY(-1px);
  border-color:rgba(37,99,235,.20);
}

.currency-management-iconbtn:active{
  transform:translateY(0) scale(.96);
}

.currency-management-iconbtn--danger{
  color:#b91c1c;
  border-color:rgba(239,68,68,.16);
}

.currency-management-iconbtn--move{
  color:#2563eb;
}

.currency-management-iconbtn.is-disabled{
  opacity:.42;
  cursor:not-allowed;
  filter:grayscale(.25);
  pointer-events:none;
}

.currency-management-iconbtn:disabled{
  opacity:.42;
  cursor:not-allowed;
  filter:grayscale(.25);
  pointer-events:none;
}

.currency-management-empty{
  display:grid;
  place-items:center;
  min-height:220px;
  border-radius:10px;
  border:1px dashed rgba(15,23,42,.14);
  background:rgba(255,255,255,.72);
  color:#64748b;
  font-size:14px;
  font-weight:700;
  text-align:center;
  padding:24px;
}

.currency-management-form-grid{
  display:grid;
  gap:12px;
}

.currency-management-form-grid--two{
  grid-template-columns:repeat(2, minmax(0, 1fr));
}

.currency-management-field{
  display:grid;
  gap:6px;
}

.currency-management-field label,
.currency-management-field__caption{
  font-size:12.2px;
  font-weight:700;
  color:#334155;
}

.currency-management-input{
  width:100%;
  color:#0b1220;
  font:700 13px/1.2 var(--taif-font-family);
  outline:none;
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
  min-height:46px;
  padding:0 14px;
  border-radius:8px;
  border:1px solid rgba(148,163,184,.26);
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.90), 0 8px 20px rgba(15,23,42,.04);
}
.currency-management-input.is-invalid,
.currency-management-input[aria-invalid="true"]{
  border-color:rgba(220,38,38,.94) !important;
  box-shadow:0 0 0 1px rgba(220,38,38,.94) !important;
  background:#fff;
}

.currency-management-input[disabled]{
  opacity:.72;
  cursor:not-allowed;
  background:rgba(15,23,42,.04);
}

.currency-management-modal-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  margin-top:3px;
  flex-wrap:wrap;
  gap:8px;
}

.currency-management-modal-actions .currency-management-btn{
  min-width:112px;
  min-height:42px;
  justify-content:center;
  border-radius:8px;
}

.currency-management-confirm-warning{
  padding:14px 16px;
  border-radius:9px;
  border:1px solid rgba(239,68,68,.18);
  background:rgba(254,242,242,.92);
  color:#991b1b;
  font-size:14px;
  font-weight:700;
}

.taif-currency-management-window-layer{
  position:fixed;
  inset:0;
  z-index:2390;
  pointer-events:none;
  overflow:hidden;
}

.taif-currency-management-modal-backdrop.is-closing{
  opacity:0;
}

.taif-currency-management-modal{
  --currency-management-icon-size:15px;
  position:fixed;
  left:0;
  top:0;
  margin:0;
  display:flex;
  flex-direction:column;
  max-height:min(82vh, 882px);
  overflow:hidden;
  border-radius:10px;
  border:1px solid rgba(47,103,243,.56);
  background:linear-gradient(180deg, rgba(248,251,255,.99), rgba(241,247,255,.96));
  background-clip:padding-box;
  box-shadow:0 32px 82px rgba(15,23,42,.26);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  isolation:isolate;
  pointer-events:auto;
  will-change:left, top, opacity, transform;
  contain:layout paint style;
  opacity:1;
  transform:translateY(0) scale(1);
  transition:opacity .12s ease, transform .12s ease;
}

.taif-currency-management-modal:not(.is-positioned){
  visibility:hidden;
}

.taif-currency-management-modal-backdrop.is-closing .taif-currency-management-modal{
  opacity:0;
  transform:translateY(8px) scale(.985);
}

.taif-currency-management-modal--size-sm{
  width:min(468px, 92vw);
}

.taif-currency-management-modal--size-md{
  width:min(684px, 92vw);
}

.taif-currency-management-modal--size-lg{
  width:min(1062px, 88vw);
}

.taif-currency-management-modal--wide{
  max-width:100%;
}

.taif-currency-management-modal--grand{
  border-color:rgba(47,103,243,.62);
  border:1px solid rgba(47,103,243,.94);
  background:#2f67f3;
  box-shadow:0 34px 88px rgba(15,23,42,.28),
    0 0 0 1px rgba(96,165,250,.18);
}

.taif-currency-management-modal--grand::before{
  content:none;
  display:none;
}

.taif-currency-management-modal--grand.taif-currency-management-modal--size-lg{
  height:min(64vh, 558px);
}
.taif-currency-management-modal__heading{
  min-width:0;
  display:grid;
  gap:4px;
}

.taif-currency-management-modal__heading--centered{
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}

.taif-currency-management-modal__eyebrow{
  font:700 11px/1 var(--taif-font-family);
  letter-spacing:.18em;
  text-transform:uppercase;
  color:#2563eb;
}

.taif-currency-management-modal__title{
  margin:0;
  font-size:16px;
  line-height:1.25;
  font-weight:700;
  color:#0b1220;
}

.taif-currency-management-modal__subtitle{
  margin:0;
  font-size:12px;
  line-height:1.65;
  font-weight:700;
  color:#64748b;
}

.taif-currency-management-modal__window-actions{
  display:flex;
  align-items:center;
  gap:4px;
  padding-top:0;
  flex:0 0 auto;
}

.taif-currency-management-modal__body{
  min-height:0;
  flex:1;
  overflow:auto;
  overflow-x:hidden;
  padding:16px 18px 18px;
  scrollbar-gutter:auto;
  scrollbar-width:thin;
  scrollbar-color:rgba(15,23,42,.16) transparent;
}

.taif-currency-management-modal__body::-webkit-scrollbar{
  width:10px;
  height:10px;
}

.taif-currency-management-modal__body::-webkit-scrollbar-track{
  background:transparent;
}

.taif-currency-management-modal__body::-webkit-scrollbar-thumb{
  background:rgba(15,23,42,.16);
  border-radius:10px;
  border:2px solid transparent;
  background-clip:content-box;
}

.taif-currency-management-modal--grand .taif-currency-management-modal__head{
  min-height:30px;
  padding:0 9px;
  justify-content:center;
  position:relative;
  z-index:2;
  border-radius:10px 10px 0 0;
  border-bottom:1px solid rgba(255,255,255,.14);
  background:var(--window-head-chrome);
  box-shadow:none;
}

.taif-currency-management-modal--grand .taif-currency-management-modal__heading--centered{
  position:relative;
  z-index:1;
  width:100%;
  max-width:calc(100% - 90px);
  margin:0 auto;
}

.taif-currency-management-modal--grand .taif-currency-management-modal__title{
  margin:0;
  font-size:15px;
  line-height:1.1;
  font-weight:700;
  color:#fff;
}

.taif-currency-management-modal--grand .taif-currency-management-modal__subtitle{
  color:rgba(255,255,255,.88);
}

.taif-currency-management-modal--grand .taif-currency-management-modal__eyebrow{
  color:rgba(255,255,255,.88);
}

.taif-currency-management-modal--grand .taif-currency-management-modal__body{
  position:relative;
  z-index:1;
  background:linear-gradient(180deg, rgba(244,248,255,.99), rgba(248,251,255,.98));
}

.taif-currency-management-modal--grand::after{
  content:none;
  display:none;
}

.taif-currency-management-modal--bulk-editor.taif-currency-management-modal--size-lg{
  width:min(918px, 78vw);
  max-width:100%;
  height:min(62vh, 549px);
  max-height:min(62vh, 549px);
}

.taif-currency-management-modal--bulk-editor .taif-currency-management-modal__body{
  display:flex;
  flex-direction:column;
  min-height:0;
  overflow:hidden;
  padding:0;
  border-radius:0 0 10px 10px;
}

.taif-currency-management-modal--bulk-editor.taif-currency-management-modal--grand .taif-currency-management-modal__head{
  min-height:32px;
  padding:0 10px;
}

.taif-currency-management-modal--bulk-editor.taif-currency-management-modal--grand .taif-currency-management-modal__heading--centered{
  max-width:calc(100% - 96px);
}

.taif-currency-management-modal--bulk-editor.taif-currency-management-modal--grand .taif-currency-management-modal__title{
  font-size:14.6px;
  letter-spacing:.01em;
  text-shadow:0 1px 2px rgba(2,6,23,.22);
}

.currency-management-modal-actions--grand .currency-management-btn{
  min-width:112px;
  min-height:35px;
  border-radius:8px;
}

.currency-management-bulk-panel{
  position:relative;
  min-height:0;
  flex:1;
  display:flex;
  flex-direction:column;
  gap:0;
}

.currency-management-bulk-scrollarea{
  min-height:0;
  flex:1 1 auto;
  overflow:auto;
  padding:0 1px 8px 0;
  scrollbar-gutter:auto;
  scrollbar-width:thin;
  scrollbar-color:rgba(15,23,42,.22) transparent;
}

.currency-management-bulk-scrollarea::-webkit-scrollbar{
  width:10px;
  height:10px;
}

.currency-management-bulk-scrollarea::-webkit-scrollbar-track{
  background:transparent;
}

.currency-management-bulk-scrollarea::-webkit-scrollbar-thumb{
  background:rgba(15,23,42,.22);
  border-radius:10px;
  border:2px solid transparent;
  background-clip:content-box;
}

.currency-management-bulk-sticky-stack{
  position:sticky;
  top:0;
  z-index:8;
  display:grid;
  gap:7px;
  margin:0 0 9px;
  isolation:isolate;
}

.currency-management-bulk-sticky-stack::before{
  content:"";
  position:absolute;
  inset:0 -2px -16px;
  border-radius:9px;
  background:linear-gradient(180deg, rgba(244,248,255,.995) 0%, rgba(244,248,255,.995) 84%, rgba(244,248,255,0) 100%);
  pointer-events:none;
  z-index:-2;
}

.currency-management-bulk-sticky-stack::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-12px;
  height:18px;
  background:linear-gradient(180deg, rgba(244,248,255,.96) 0%, rgba(244,248,255,0) 100%);
  pointer-events:none;
  z-index:-1;
}

.currency-management-bulk-toolbar{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:7px;
  padding:6px 9px;
  margin:0;
  border:1px solid rgba(148,163,184,.18);
  border-radius:8px;
  background:linear-gradient(180deg, rgba(255,255,255,.92), rgba(248,251,255,.90));
  box-shadow:0 14px 28px rgba(15,23,42,.06), inset 0 1px 0 rgba(255,255,255,.88);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}

.currency-management-bulk-grid-head{
  display:grid;
  direction:rtl;
  grid-template-columns:40px 72px minmax(140px, 1fr) minmax(76px, .64fr) repeat(4, minmax(90px, .96fr));
  gap:7px;
  align-items:center;
  padding:5px 10px 4px;
  border:1px solid rgba(59,130,246,.14);
  border-radius:8px;
  background:linear-gradient(180deg, rgba(240,246,255,.98), rgba(229,238,255,.94));
  box-shadow:0 12px 24px rgba(37,99,235,.08), inset 0 1px 0 rgba(255,255,255,.92);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}

.currency-management-bulk-grid-head__cell{
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:19px;
  padding:0 4px;
  color:#475569;
  font:700 11px/1.2 var(--taif-font-family);
  text-align:center;
  white-space:nowrap;
}

.currency-management-bulk-grid-head__spacer{
  display:block;
  width:100%;
  min-height:1px;
}

.currency-management-bulk-grid-head__cell--flag,
.currency-management-bulk-grid-head__cell--code,
.currency-management-bulk-grid-head__cell--pair{
  white-space:nowrap;
  padding-inline:0;
}

.currency-management-bulk-grid-head__cell--flag{
  font-size:9.05px;
}

.currency-management-bulk-grid-head__cell--name{
  justify-content:flex-start;
  padding-inline-start:7px;
  text-align:right;
  color:#475569;
}

.currency-management-bulk-grid-head__cell--pair{
  justify-content:flex-start;
  padding-inline:0;
}

.currency-management-bulk-grid-head__cell--buy,
.currency-management-bulk-grid-head__cell--ratio-buy,
.currency-management-bulk-grid-head__cell--sell,
.currency-management-bulk-grid-head__cell--ratio-sell{
  color:#475569;
}

.currency-management-bulk-toolbar__search{
  flex:0 0 252px;
  width:min(100%, 252px);
  max-width:252px;
  margin-inline:0;
}

.currency-management-bulk-toolbar__summary{
  flex:1 1 auto;
  min-width:0;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
  gap:5px;
}

.currency-management-bulk-toolbar__pill{
  min-height:25px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 8px;
  border-radius:10px;
  border:1px solid rgba(148,163,184,.18);
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(243,247,255,.94));
  color:#395071;
  font:700 11.2px/1 var(--taif-font-family);
  box-shadow:0 10px 24px rgba(37,99,235,.06);
}

.currency-management-bulk-toolbar__pill--soft{
  color:#475569;
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.95));
}

.currency-management-bulk-toolbar__pill--accent{
  color:#1d4ed8;
  border-color:rgba(59,130,246,.18);
  background:linear-gradient(180deg, rgba(239,246,255,.98), rgba(219,234,254,.92));
}

.currency-management-bulk-toolbar__pill--usd{
  color:#065f46;
  border-color:rgba(22,163,74,.18);
  background:linear-gradient(180deg, rgba(236,253,245,.98), rgba(220,252,231,.92));
}

.currency-management-bulk-toolbar__pill--base{
  color:#1e3a8a;
  border-color:rgba(59,130,246,.18);
  background:linear-gradient(180deg, rgba(239,246,255,.98), rgba(219,234,254,.92));
}

.currency-management-bulk-toolbar__pill--book{
  color:#475569;
  border-color:rgba(148,163,184,.18);
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.95));
}

.currency-management-search-wrap--grand{
  width:100%;
  filter:none;
}

.currency-management-search-wrap--grand .currency-management-search-icon{
  right:12px;
  width:14px;
  height:14px;
  color:#5f7089;
}

.currency-management-search-input--grand{
  height:34px;
  padding-inline-start:36px;
  padding-inline-end:34px;
  border-radius:8px;
  border:1px solid rgba(59,130,246,.16);
  background:linear-gradient(180deg, rgba(255,255,255,.99), rgba(245,249,255,.97));
  color:#122033;
  font-size:12.1px;
  font-weight:700;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.92), 0 8px 20px rgba(37,99,235,.04);
}

.currency-management-search-input--grand::placeholder{
  color:#6b7f98;
  font-weight:700;
}

.currency-management-search-input--grand:focus{
  border-color:rgba(37,99,235,.28);
  background:#fff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.95), 0 0 0 1px rgba(37,99,235,.08);
}

.currency-management-search-clear--grand{
  left:6px;
  width:23px;
  height:23px;
  border-radius:6px;
  border:1px solid rgba(220,38,38,.34);
  background:linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color:#fff;
  font-size:0;
  box-shadow:0 12px 22px rgba(185,28,28,.22);
}

.currency-management-search-clear--grand:hover{
  border-color:rgba(239,68,68,.42);
  background:linear-gradient(135deg, #ef4444 0%, #c81e1e 100%);
  color:#fff;
  box-shadow:0 14px 26px rgba(185,28,28,.28);
}

.currency-management-bulk-list{
  display:grid;
  gap:7px;
  padding:0;
}

.currency-management-bulk-card{
  display:block;
  padding:8px 10px;
  border-radius:8px;
  border:1px solid rgba(148,163,184,.16);
  background:linear-gradient(180deg, rgba(255,255,255,.99), rgba(247,250,255,.96));
  box-shadow:0 16px 30px rgba(15,23,42,.05), inset 0 1px 0 rgba(255,255,255,.90);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.currency-management-bulk-card:hover{
  transform:translateY(-1px);
  border-color:rgba(37,99,235,.22);
  box-shadow:0 18px 34px rgba(15,23,42,.08), inset 0 1px 0 rgba(255,255,255,.94);
}

.currency-management-bulk-card--usd{
  border-color:rgba(59,130,246,.24);
  background:linear-gradient(180deg, rgba(255,255,255,.99), rgba(239,246,255,.94)),
    linear-gradient(90deg, rgba(59,130,246,.10), rgba(255,255,255,0));
}

.currency-management-bulk-card__row{
  display:grid;
  direction:rtl;
  grid-template-columns:40px 72px minmax(140px, 1fr) minmax(76px, .64fr) repeat(4, minmax(90px, .96fr));
  gap:7px;
  align-items:center;
}

.currency-management-bulk-card__cell{
  min-width:0;
  display:flex;
  align-items:center;
}

.currency-management-bulk-card__cell--input{
  position:relative;
  flex-direction:column;
  align-items:stretch;
  gap:0;
  justify-content:center;
}

.currency-management-bulk-card__cell--flag{
  justify-content:center;
  min-height:36px;
  padding-inline:0;
}

.currency-management-bulk-card__cell--code{
  justify-content:center;
  min-height:36px;
  padding-inline:0;
}

.currency-management-bulk-card__cell--name{
  min-height:36px;
  justify-content:flex-start;
  padding-inline-start:7px;
  padding-inline-end:2px;
}

.currency-management-bulk-card__cell--pair{
  min-height:36px;
  justify-content:flex-start;
  padding-inline:0;
}

.currency-management-bulk-card__flag{
  width:34px;
  height:34px;
  flex:0 0 34px;
}

.currency-management-bulk-card__code{
  width:100%;
  min-height:33px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 8px;
  border-radius:7px;
  border:1px solid rgba(15,23,42,.08);
  background:rgba(15,23,42,.04);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.68);
  color:#0b1220;
  font:700 11px/1 var(--taif-font-family);
  letter-spacing:.05em;
  direction:ltr;
}

.currency-management-bulk-card__name{
  display:block;
  width:100%;
  color:#091427;
  text-align:right;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font:700 13.3px/1.08 var(--taif-font-family);
  text-shadow:0 1px 0 rgba(255,255,255,.75);
}

.currency-management-bulk-card__name-wrap{
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:5px;
}

.currency-management-bulk-card__pair-badge{
  max-width:72px;
  font:700 11px/1 var(--taif-font-family);
}

.currency-management-bulk-input{
  width:100%;
  min-height:33px;
  height:33px;
  padding:0 8px;
  border-radius:7px;
  border:1px solid rgba(148,163,184,.24);
  background:linear-gradient(180deg, rgba(255,255,255,.99), rgba(248,250,252,.96));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.92);
  color:#0f172a;
  font:700 11.8px/1 var(--taif-font-family);
  text-align:center;
  direction:ltr;
}

.currency-management-bulk-input:hover{
  border-color:rgba(59,130,246,.18);
}

.currency-management-bulk-input--readonly{
  cursor:default;
  background:linear-gradient(180deg, rgba(248,250,252,.98), rgba(241,245,249,.95));
  color:#334155;
}

.currency-management-bulk-input--locked{
  opacity:1;
  cursor:not-allowed !important;
  user-select:none;
  -webkit-user-select:none;
  caret-color:transparent;
  -webkit-text-fill-color:currentColor;
  background:var(--currency-management-neutral-rate-surface);
  border-color:var(--currency-management-neutral-rate-border);
  box-shadow:var(--currency-management-neutral-rate-shadow);
}

.currency-management-bulk-input--locked:hover,
.currency-management-bulk-input--locked:focus,
.currency-management-bulk-input--locked:focus-visible{
  outline:none !important;
  cursor:not-allowed !important;
  background:var(--currency-management-neutral-rate-surface) !important;
  border-color:var(--currency-management-neutral-rate-border) !important;
  box-shadow:var(--currency-management-neutral-rate-shadow) !important;
}

.currency-management-bulk-input:focus{
  outline:none;
  border-color:rgba(37,99,235,.30);
  background:#fff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.96), 0 0 0 1px rgba(37,99,235,.08) !important;
}

.currency-management-bulk-input:focus-visible{
  outline:none;
  border-color:rgba(37,99,235,.30);
  background:#fff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.96), 0 0 0 1px rgba(37,99,235,.08) !important;
}

.currency-management-bulk-input.is-invalid,
.currency-management-bulk-input[aria-invalid="true"]{
  border-color:rgba(220,38,38,.94) !important;
  background:#fff !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.96), 0 0 0 1px rgba(220,38,38,.94) !important;
}

.currency-management-bulk-card__cell--buy .currency-management-bulk-input,
.currency-management-bulk-card__cell--sell .currency-management-bulk-input,
.currency-management-bulk-card__cell--ratio .currency-management-bulk-input{
  border-color:var(--currency-management-neutral-rate-border);
  background:var(--currency-management-neutral-rate-surface);
  box-shadow:var(--currency-management-neutral-rate-shadow);
  color:#0f172a;
}

.currency-management-bulk-card__cell--ratio .currency-management-bulk-input[data-bulk-field="ratioBuy"]{
  color:#15803d;
}

.currency-management-bulk-card__cell--ratio .currency-management-bulk-input[data-bulk-field="ratioSell"]{
  color:#dc2626;
}

.currency-management-bulk-card__cell--ratio .currency-management-bulk-input--locked[data-bulk-field="ratioBuy"]{
  color:#15803d;
  -webkit-text-fill-color:#15803d;
}

.currency-management-bulk-card__cell--ratio .currency-management-bulk-input--locked[data-bulk-field="ratioSell"]{
  color:#dc2626;
  -webkit-text-fill-color:#dc2626;
}

.currency-management-bulk-card__cell--buy .currency-management-bulk-input{
  color:#15803d;
}

.currency-management-bulk-card__cell--sell .currency-management-bulk-input{
  color:#dc2626;
}

.currency-management-empty--bulk{
  min-height:198px;
  display:grid;
  place-items:center;
  border-radius:9px;
  border:1px dashed rgba(148,163,184,.24);
  background:linear-gradient(180deg, rgba(255,255,255,.90), rgba(248,250,252,.95));
  color:#475569;
  font-weight:700;
}

.currency-management-modal-actions--dock{
  flex:0 0 auto;
  margin:0;
  min-height:43px;
  display:flex;
  align-items:center;
  gap:7px;
  padding:5px 10px 6px 12px;
  border-top:1px solid rgba(148,163,184,.16);
  border-radius:0 0 10px 10px;
  background:linear-gradient(180deg, rgba(248,251,255,.96), rgba(241,246,255,.98));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.90);
}

.currency-management-modal-actions--dock .currency-management-btn{
  min-width:114px;
  min-height:36px;
  padding:0 12px;
  border-radius:8px;
  font-size:12px;
  gap:5px;
}

.currency-management-modal-actions--dock .currency-management-btn svg{
  width:13px;
  height:13px;
}

.currency-management-modal-actions--dock [data-currency-management-action="save-bulk"]{
  background:linear-gradient(135deg, #16a34a, #15803d);
  border-color:rgba(22,163,74,.34);
  color:#fff;
  box-shadow:0 14px 24px rgba(22,163,74,.18);
}

.currency-management-modal-actions--dock [data-currency-management-action="cancel"]{
  color:#fff;
  border-color:rgba(220,38,38,.34);
  background:linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  box-shadow:0 14px 24px rgba(185,28,28,.20);
}

.currency-management-modal-actions--dock [data-currency-management-action="cancel"]:hover{
  border-color:rgba(239,68,68,.42);
  background:linear-gradient(135deg, #ef4444 0%, #c81e1e 100%);
  box-shadow:0 16px 28px rgba(185,28,28,.26);
}

.taif-currency-management-modal--currency-picker.taif-currency-management-modal--grand.taif-currency-management-modal--size-md{
  width:min(684px, 72vw);
  max-width:100%;
  height:min(52vh, 450px);
  max-height:min(52vh, 450px);
}

.taif-currency-management-modal__body--picker{
  padding:0;
  overflow:hidden;
  border-radius:0 0 10px 10px;
}

.taif-currency-management-modal--currency-picker.taif-currency-management-modal--grand .taif-currency-management-modal__head,
.taif-currency-management-modal--single-editor.taif-currency-management-modal--grand .taif-currency-management-modal__head,
.taif-currency-management-modal--delete-confirm.taif-currency-management-modal--grand .taif-currency-management-modal__head{
  min-height:32px;
  padding:0 10px;
}

.taif-currency-management-modal--currency-picker.taif-currency-management-modal--grand .taif-currency-management-modal__heading--centered,
.taif-currency-management-modal--single-editor.taif-currency-management-modal--grand .taif-currency-management-modal__heading--centered,
.taif-currency-management-modal--delete-confirm.taif-currency-management-modal--grand .taif-currency-management-modal__heading--centered{
  max-width:calc(100% - 88px);
}

.taif-currency-management-modal--currency-picker.taif-currency-management-modal--grand .taif-currency-management-modal__title,
.taif-currency-management-modal--single-editor.taif-currency-management-modal--grand .taif-currency-management-modal__title,
.taif-currency-management-modal--delete-confirm.taif-currency-management-modal--grand .taif-currency-management-modal__title{
  font-size:14.6px;
  letter-spacing:.01em;
  text-shadow:0 1px 2px rgba(2,6,23,.22);
}

.taif-currency-management-modal--single-editor.taif-currency-management-modal--grand.taif-currency-management-modal--size-md{
  width:min(684px, 72vw);
  max-width:100%;
  height:min(52vh, 450px);
  max-height:min(52vh, 450px);
}

.taif-currency-management-modal__body--single-editor{
  padding:0;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  min-height:0;
}

.taif-currency-management-modal--single-editor .currency-management-single-editor-panel{
  min-height:0;
  height:100%;
  display:flex;
  flex-direction:column;
  position:relative;
}

.taif-currency-management-modal--single-editor .currency-management-single-editor-scroll{
  min-height:0;
  flex:1;
  overflow:auto;
  padding:10px 12px 6px;
  position:relative;
}

.taif-currency-management-modal--single-editor .currency-management-form-grid--single-editor-shell{
  display:grid;
  gap:9px;
  align-content:start;
}

.taif-currency-management-modal--single-editor .currency-management-form-grid--single-editor-shell .currency-management-form-grid{
  gap:9px;
}

.taif-currency-management-modal--single-editor .currency-management-form-grid--legacy-link > .currency-management-field{
  grid-column:1 / -1;
}

.taif-currency-management-modal--single-editor .currency-management-form-grid--method-legacy-compact{
  display:grid;
  gap:9px;
  grid-template-columns:minmax(0, 1fr);
  align-items:end;
}

.taif-currency-management-modal--single-editor .currency-management-form-grid--method-legacy-compact.is-legacy-mode{
  grid-template-columns:repeat(2, minmax(0, 1fr));
}

.taif-currency-management-modal--single-editor .currency-management-form-grid--method-legacy-compact > .currency-management-field{
  min-width:0;
}

.taif-currency-management-modal--single-editor .currency-management-field{
  gap:5px;
}

.taif-currency-management-modal--single-editor .currency-management-field label,
.taif-currency-management-modal--single-editor .currency-management-field__caption{
  font-size:11.8px;
  font-weight:700;
}

.taif-currency-management-modal--single-editor .currency-management-field--pair-note{
  gap:7px;
}

.taif-currency-management-modal--single-editor .currency-management-field__note{
  min-height:42px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:8px;
  border:1px solid rgba(59,130,246,.14);
  background:linear-gradient(180deg, rgba(255,255,255,.99), rgba(243,247,255,.96));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.92);
}

.taif-currency-management-modal--single-editor .currency-management-field__pair-badge{
  min-height:24px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 10px;
  border-radius:10px;
  border:1px solid rgba(59,130,246,.16);
  background:linear-gradient(180deg, rgba(239,246,255,.98), rgba(219,234,254,.92));
  color:#1d4ed8;
  font:700 11px/1 var(--taif-font-family);
  direction:ltr;
  white-space:nowrap;
}

.taif-currency-management-modal--single-editor .currency-management-field__note-text{
  min-width:0;
  color:#475569;
  font:700 11.2px/1.45 var(--taif-font-family);
}

.taif-currency-management-modal--single-editor .currency-management-input{
  min-height:39px;
  padding:0 12px;
  border-radius:8px;
  font-size:12.4px;
}

.taif-currency-management-modal--single-editor .currency-management-field--single-editor-terminal-rate{
  gap:6px;
}

.taif-currency-management-modal--single-editor .currency-management-field--single-editor-identity > label,
.taif-currency-management-modal--single-editor .currency-management-field--single-editor-identity > .currency-management-field__caption{
  text-align:center;
  justify-self:center;
}

.taif-currency-management-modal--single-editor .currency-management-field--single-editor-identity .currency-management-input{
  text-align:center;
}

.taif-currency-management-modal--single-editor .currency-management-name-autocomplete{
  position:relative;
  width:100%;
}

.taif-currency-management-modal--single-editor .currency-management-name-autocomplete__popover{
  position:absolute;
  top:calc(100% + 6px);
  inset-inline:0;
  z-index:74;
  display:flex;
  flex-direction:column;
  gap:4px;
  max-height:240px;
  padding:4px;
  overflow:auto;
  border-radius:12px;
  border:1px solid rgba(59,130,246,.28);
  background:linear-gradient(180deg, rgba(255,255,255,.99), rgba(241,245,255,.98));
  box-shadow:0 18px 38px rgba(15,23,42,.18), inset 0 1px 0 rgba(255,255,255,.94);
}

.taif-currency-management-modal--single-editor .currency-management-name-autocomplete__popover[hidden]{
  display:none !important;
}

.taif-currency-management-modal--single-editor .currency-management-name-autocomplete__option{
  width:100%;
  min-height:48px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  text-align:right;
  border-radius:10px;
  border:1px solid rgba(148,163,184,.18);
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
  cursor:pointer;
  transition:border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.taif-currency-management-modal--single-editor .currency-management-name-autocomplete__option:hover,
.taif-currency-management-modal--single-editor .currency-management-name-autocomplete__option.is-active{
  border-color:rgba(59,130,246,.38);
  background:linear-gradient(180deg, rgba(239,246,255,.98), rgba(219,234,254,.94));
  box-shadow:0 8px 18px rgba(59,130,246,.12);
}

.taif-currency-management-modal--single-editor .currency-management-name-autocomplete__option-flag{
  width:28px;
  height:28px;
  flex:0 0 auto;
}

.taif-currency-management-modal--single-editor .currency-management-name-autocomplete__option-flag-image{
  width:100%;
  height:100%;
  display:block;
}

.taif-currency-management-modal--single-editor .currency-management-name-autocomplete__option-text{
  min-width:0;
  flex:1 1 auto;
  display:flex;
  flex-direction:column;
  gap:2px;
}

.taif-currency-management-modal--single-editor .currency-management-name-autocomplete__option-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.taif-currency-management-modal--single-editor .currency-management-name-autocomplete__option-name{
  min-width:0;
  color:#0f172a;
  font-size:12.2px;
  font-weight:800;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.taif-currency-management-modal--single-editor .currency-management-name-autocomplete__option-code{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:48px;
  min-height:22px;
  padding:0 8px;
  border-radius:10px;
  background:rgba(219,234,254,.92);
  color:#1d4ed8;
  font:800 10.4px/1 var(--taif-font-family);
  letter-spacing:.08em;
  direction:ltr;
}

.taif-currency-management-modal--single-editor .currency-management-name-autocomplete__option-meta{
  color:#64748b;
  font:700 10.5px/1.2 var(--taif-font-family);
  direction:ltr;
  text-align:left;
}

.taif-currency-management-modal--single-editor .currency-management-field--single-editor-terminal-rate > label,
.taif-currency-management-modal--single-editor .currency-management-field--single-editor-terminal-rate > .currency-management-field__caption{
  text-align:center;
  justify-self:center;
}

.taif-currency-management-modal--single-editor .currency-management-field--single-editor-terminal-rate .currency-management-input{
  text-align:center;
}

.taif-currency-management-modal--single-editor :is(
  .currency-management-field--single-editor-flag,
  .currency-management-field--single-editor-price-mode,
  .currency-management-field--single-editor-method,
  .currency-management-field--single-editor-legacy-source,
  .currency-management-field--single-editor-decimals
) > :is(label, .currency-management-field__caption){
  text-align:center;
  justify-self:center;
}

.taif-currency-management-modal--single-editor :is(
  .currency-management-field--single-editor-method,
  .currency-management-field--single-editor-price-mode,
  .currency-management-field--single-editor-decimals,
  .currency-management-field--single-editor-flag
){
  gap:6px;
  width:100%;
  max-width:none;
  margin-inline-start:0;
  position:relative;
}

.taif-currency-management-modal--single-editor :is(
  .currency-management-flag-picker,
  .currency-management-method-picker
){
  position:relative;
  width:100%;
  overflow:visible;
}

.taif-currency-management-modal--single-editor .currency-management-flag-picker__trigger{
  width:100%;
  min-height:39px;
  padding:0 10px 0 12px;
  border-radius:8px;
  font-size:12.4px;
  display:flex;
  align-items:center;
  gap:10px;
  cursor:pointer;
  text-align:right;
}

.taif-currency-management-modal--single-editor .currency-management-flag-picker__preview{
  width:24px;
  height:24px;
  flex:0 0 auto;
}

.taif-currency-management-modal--single-editor .currency-management-flag-picker__text{
  min-width:0;
  flex:1 1 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.taif-currency-management-modal--single-editor .currency-management-flag-picker__code{
  min-height:22px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 8px;
  border-radius:10px;
  background:rgba(219,234,254,.88);
  color:#0f172a;
  font-size:10.8px;
  font-weight:700;
  letter-spacing:.08em;
  direction:ltr;
}

.taif-currency-management-modal--single-editor .currency-management-flag-picker__code.is-placeholder{
  padding-inline:10px;
  font-size:11px;
  letter-spacing:0;
  direction:rtl;
}

.taif-currency-management-modal--single-editor .currency-management-flag-picker__label{
  min-width:0;
  color:#0f172a;
  font-size:12.2px;
  font-weight:700;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.taif-currency-management-modal--single-editor .currency-management-flag-picker__icon{
  width:var(--currency-management-icon-size);
  height:var(--currency-management-icon-size);
  flex:0 0 auto;
  display:grid;
  place-items:center;
  color:#2563eb;
  transition:transform .18s ease, color .18s ease;
}

.taif-currency-management-modal--single-editor .currency-management-flag-picker__icon svg{
  width:100%;
  height:100%;
}

.taif-currency-management-modal--single-editor .currency-management-flag-picker.is-open .currency-management-flag-picker__trigger{
  opacity:0;
  pointer-events:none;
}
.taif-currency-management-modal--single-editor .currency-management-flag-picker__trigger.is-empty .currency-management-flag-picker__label{
  color:#64748b;
}

.taif-currency-management-modal--single-editor .currency-management-flag-popover{
  position:absolute;
  z-index:64;
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:4px;
  overflow:hidden;
}

.taif-currency-management-modal--single-editor .currency-management-flag-popover[hidden],
.taif-currency-management-modal--single-editor .currency-management-method-popover[hidden]{
  display:none !important;
  pointer-events:none;
}

.taif-currency-management-modal--single-editor .currency-management-flag-popover.is-open{
  animation:currency-management-method-popover-in .18s ease;
}

.taif-currency-management-modal--single-editor .currency-management-flag-popover__search-shell{
  flex:0 0 auto;
  display:block;
}

.taif-currency-management-modal--single-editor .currency-management-flag-popover__search-wrap{
  width:100%;
}

.taif-currency-management-modal--single-editor .currency-management-flag-popover__search-input{
  height:39px;
  padding:0 14px 0 34px;
  border-radius:8px;
  font-size:12.45px;
  font-weight:700;
}

.taif-currency-management-modal--single-editor .currency-management-flag-popover__search-input::placeholder{
  color:#7c8aa5;
  opacity:1;
}

.taif-currency-management-modal--single-editor .currency-management-flag-popover__search-clear{
  left:7px;
  width:24px;
  height:24px;
  border-radius:7px;
}

.taif-currency-management-modal--single-editor .currency-management-flag-popover__search-clear svg{
  width:10px;
  height:10px;
}

.taif-currency-management-modal--single-editor .currency-management-flag-popover__body{
  flex:1 1 auto;
  min-height:0;
  overflow:auto;
  padding-inline-end:0;
  overscroll-behavior:contain;
}

.taif-currency-management-modal--single-editor .currency-management-flag-popover__grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:4px;
}

.taif-currency-management-modal--single-editor .currency-management-flag-popover__card{
  width:100%;
  min-height:68px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  gap:2px;
  padding:6px 4px 5px;
  text-align:center;
  cursor:pointer;
}

.taif-currency-management-modal--single-editor .currency-management-flag-popover__card-flag{
  width:26px;
  height:26px;
}

.taif-currency-management-modal--single-editor .currency-management-flag-popover__card-code{
  color:#1d4ed8;
  font-size:9.2px;
  font-weight:700;
  letter-spacing:.08em;
  direction:ltr;
}

.taif-currency-management-modal--single-editor .currency-management-flag-popover__card-currency{
  color:#0f172a;
  font-size:8.8px;
  font-weight:700;
  line-height:1.18;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
}

.taif-currency-management-modal--single-editor .currency-management-method-picker__trigger{
  width:100%;
  min-height:39px;
  padding:0 12px;
  border-radius:8px;
  font-size:12.4px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  cursor:pointer;
  text-align:right;
}

.taif-currency-management-modal--single-editor .currency-management-method-picker__value{
  flex:1;
  min-width:0;
  display:block;
  text-align:right;
  font-weight:700;
  color:#0f172a;
}

.taif-currency-management-modal--single-editor .currency-management-method-picker__value-layout{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  direction:ltr;
}

.taif-currency-management-modal--single-editor .currency-management-method-picker__method-tag,
.taif-currency-management-modal--single-editor .currency-management-method-picker__formula{
  display:inline-flex;
  align-items:center;
  min-width:0;
}

.taif-currency-management-modal--single-editor .currency-management-method-picker__method-tag{
  flex:0 0 auto;
  justify-content:flex-end;
  text-align:right;
  font-weight:700;
  color:#0f172a;
}

.taif-currency-management-modal--single-editor .currency-management-method-picker__formula{
  flex:1 1 auto;
  justify-content:flex-start;
  text-align:left;
  direction:ltr;
  color:#475569;
}

.taif-currency-management-modal--single-editor .currency-management-linked-source-option{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
  direction:rtl;
}

.taif-currency-management-modal--single-editor .currency-management-linked-source-option__flag{
  width:26px;
  height:26px;
  flex:0 0 26px;
}

.taif-currency-management-modal--single-editor .currency-management-linked-source-option__name{
  flex:1 1 auto;
  min-width:0;
  text-align:right;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.taif-currency-management-modal--single-editor .currency-management-method-picker__icon{
  flex:0 0 auto;
  width:var(--currency-management-icon-size);
  height:var(--currency-management-icon-size);
  display:grid;
  place-items:center;
  color:#2563eb;
  transition:transform .18s ease, color .18s ease;
}

.taif-currency-management-modal--single-editor .currency-management-method-picker__icon svg{
  width:100%;
  height:100%;
}

/* Open-state styling is inherited from the shared voucher-style dropdown system. */
.taif-currency-management-modal--single-editor .currency-management-method-picker.is-open .currency-management-method-picker__trigger{
}


.taif-currency-management-modal--single-editor .currency-management-field--single-editor-decimals .currency-management-method-picker__trigger{
  position:relative;
  justify-content:center;
  text-align:center;
  padding-inline:36px;
}

.taif-currency-management-modal--single-editor .currency-management-field--single-editor-decimals .currency-management-method-picker__value{
  width:100%;
  text-align:center;
}

.taif-currency-management-modal--single-editor .currency-management-field--single-editor-decimals .currency-management-method-picker__icon{
  position:absolute;
  left:12px;
  top:50%;
  transform:translateY(-50%);
}

.taif-currency-management-modal--single-editor .currency-management-method-popover[aria-label="عداد المنازل العشرية"] .currency-management-method-popover__option{
  position:relative;
  justify-content:center;
  text-align:center;
  padding-inline:12px;
}

.taif-currency-management-modal--single-editor .currency-management-method-popover[aria-label="عداد المنازل العشرية"] .currency-management-method-popover__label{
  flex:0 1 auto;
  width:100%;
  text-align:center;
}

.taif-currency-management-modal--single-editor .currency-management-method-popover[aria-label="عداد المنازل العشرية"] .currency-management-method-popover__check{
  position:absolute;
  left:8px;
  top:50%;
  transform:translateY(-50%);
}
.taif-currency-management-modal--single-editor .currency-management-method-popover{
  position:absolute;
  top:0;
  left:0;
  z-index:72;
  min-width:0;
  display:grid;
  align-content:start;
  gap:4px;
  padding:4px;
  overflow:auto;
  overscroll-behavior:contain;
  scrollbar-gutter:auto;
  scrollbar-width:thin;
  scrollbar-color:var(--taif-scrollbar-thumb) var(--taif-scrollbar-track);
}

.taif-currency-management-modal--single-editor .currency-management-method-popover::-webkit-scrollbar{
  width:8px;
}

.taif-currency-management-modal--single-editor .currency-management-method-popover::-webkit-scrollbar-track{
  background:var(--taif-scrollbar-track);
}

.taif-currency-management-modal--single-editor .currency-management-method-popover::-webkit-scrollbar-thumb{
  border-radius:10px;
  background:var(--taif-scrollbar-thumb);
}

.taif-currency-management-modal--single-editor .currency-management-method-popover.is-open{
  animation:currency-management-method-popover-in .18s ease;
}

.taif-currency-management-modal--single-editor .currency-management-method-popover__option{
  width:100%;
  min-height:36px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:6px;
  padding:6px 8px;
  box-sizing:border-box;
  font:inherit;
  font-size:12.45px;
  line-height:1.28;
  font-weight:700;
  cursor:pointer;
}

.taif-currency-management-modal--single-editor .currency-management-method-popover__label{
  flex:1 1 auto;
  min-width:0;
  display:block;
}

.taif-currency-management-modal--single-editor .currency-management-method-popover__check{
  width:var(--currency-management-icon-size);
  height:var(--currency-management-icon-size);
  display:grid;
  place-items:center;
  color:transparent;
  transition:color .16s ease;
}

.taif-currency-management-modal--single-editor .currency-management-method-popover__check svg{
  width:100%;
  height:100%;
}

.taif-currency-management-modal--single-editor .currency-management-modal-actions--single-editor{
  margin:0;
}

.taif-currency-management-modal--single-editor .currency-management-modal-actions--single-editor [data-currency-management-action="save"]{
  background:linear-gradient(135deg, #16a34a, #15803d);
  border-color:rgba(22,163,74,.34);
  color:#fff;
  box-shadow:0 14px 24px rgba(22,163,74,.18);
}

.taif-currency-management-modal--single-editor .currency-management-modal-actions--single-editor [data-currency-management-action="save"]:hover{
  border-color:rgba(34,197,94,.42);
  background:linear-gradient(135deg, #22c55e, #15803d);
  box-shadow:0 16px 28px rgba(21,128,61,.24);
}

.taif-currency-management-modal--single-editor .currency-management-modal-actions--single-editor [data-currency-management-action="cancel"]{
  color:#fff;
  border-color:rgba(220,38,38,.34);
  background:linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  box-shadow:0 14px 24px rgba(185,28,28,.20);
}

.taif-currency-management-modal--single-editor .currency-management-modal-actions--single-editor [data-currency-management-action="cancel"]:hover{
  border-color:rgba(239,68,68,.42);
  background:linear-gradient(135deg, #ef4444 0%, #c81e1e 100%);
  box-shadow:0 16px 28px rgba(185,28,28,.26);
}

@keyframes currency-management-method-popover-in{
  from{
    opacity:0;
    transform:translateY(-4px) scale(.98);
  }
  to{
    opacity:1;
    transform:translateY(0) scale(1);
  }
}

.taif-currency-management-modal--delete-confirm.taif-currency-management-modal--grand.taif-currency-management-modal--size-sm{
  width:min(504px, 88vw);
  min-height:auto;
  height:auto;
  max-height:min(266px, 52vh);
}

.taif-currency-management-modal__body--delete-confirm{
  padding:9px 14px 11px;
  display:flex;
  min-height:0;
}

.currency-management-picker-panel{
  min-height:0;
  height:100%;
  display:flex;
  flex-direction:column;
  gap:0;
}

.currency-management-picker-list{
  min-height:0;
  flex:1 1 auto;
  overflow:auto;
  padding:8px;
  display:grid;
  gap:7px;
  scrollbar-gutter:stable;
  scrollbar-width:thin;
  scrollbar-color:rgba(15,23,42,.22) transparent;
}

.currency-management-picker-list::-webkit-scrollbar{
  width:10px;
}

.currency-management-picker-list::-webkit-scrollbar-track{
  background:transparent;
}

.currency-management-picker-list::-webkit-scrollbar-thumb{
  background:rgba(15,23,42,.22);
  border-radius:10px;
  border:2px solid transparent;
  background-clip:content-box;
}

.currency-management-picker-card{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  text-align:right;
  padding:9px 12px;
  border-radius:9px;
  border:1px solid rgba(191,219,254,.92);
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(245,249,255,.96));
  box-shadow:0 12px 28px rgba(15,23,42,.055);
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.currency-management-picker-card:hover{
  transform:translateY(-1px);
  border-color:rgba(96,165,250,.98);
  box-shadow:0 18px 34px rgba(37,99,235,.10);
}

.currency-management-picker-card:active{
  transform:translateY(0) scale(.995);
}

.currency-management-picker-card:disabled,
.currency-management-picker-card.is-locked{
  cursor:not-allowed;
  opacity:.72;
  border-color:rgba(148,163,184,.26);
  background:linear-gradient(180deg, rgba(248,250,252,.98), rgba(241,245,249,.94));
  box-shadow:none;
}

.currency-management-picker-card__identity{
  min-width:0;
  display:flex;
  align-items:center;
  gap:9px;
  flex:1 1 auto;
}

.currency-management-picker-card__flag{
  width:36px;
  height:36px;
  flex:0 0 auto;
}

.currency-management-picker-card__text{
  min-width:0;
  display:flex;
  align-items:center;
}

.currency-management-picker-card__head{
  min-width:0;
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
}

.currency-management-picker-card__code{
  min-height:24px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 8px;
  border-radius:7px;
  border:1px solid rgba(15,23,42,.08);
  background:rgba(15,23,42,.04);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.68);
  color:#0b1220;
  font-size:11px;
  font-weight:700;
  letter-spacing:.05em;
  direction:ltr;
}

.currency-management-picker-card__name{
  min-width:0;
  color:#0f172a;
  font-size:14px;
  font-weight:700;
}

.currency-management-picker-card__action{
  flex:0 0 auto;
  min-height:30px;
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:0 10px;
  border-radius:8px;
  background:rgba(219,234,254,.92);
  color:#1d4ed8;
  font-size:11.5px;
  font-weight:700;
}

.currency-management-picker-card__action svg{
  width:13px;
  height:13px;
}

.currency-management-picker-card--delete .currency-management-picker-card__action{
  background:rgba(254,226,226,.92);
  color:#b91c1c;
}

.currency-management-picker-card.is-locked .currency-management-picker-card__action{
  background:rgba(226,232,240,.92);
  color:#64748b;
}

.currency-management-empty--picker{
  min-height:160px;
}

.currency-management-delete-confirm-box{
  flex:1 1 auto;
  min-height:0;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  gap:8px;
}

.currency-management-delete-card{
  display:flex;
  align-items:center;
  gap:9px;
  padding:7px 11px;
  border-radius:8px;
  border:1px solid rgba(191,219,254,.92);
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(245,249,255,.96));
}

.currency-management-delete-card__flag{
  width:34px;
  height:34px;
}

.currency-management-delete-card__text{
  display:flex;
  align-items:baseline;
  gap:8px;
  flex-wrap:wrap;
}

.currency-management-delete-card__text strong{
  color:#0f172a;
  font-size:13.5px;
  font-weight:700;
  line-height:1.2;
}

.currency-management-delete-card__text span{
  color:#64748b;
  font-size:10.5px;
  font-weight:700;
  line-height:1.1;
}

.currency-management-delete-confirm-box .currency-management-confirm-warning{
  padding:9px 12px;
  min-height:54px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  line-height:1.58;
  font-size:12.2px;
}

.currency-management-delete-confirm-box .currency-management-modal-actions--compact{
  margin-top:0;
}

.currency-management-modal-actions--compact{
  margin-top:0;
  justify-content:stretch;
  gap:7px;
}

.currency-management-modal-actions--compact .currency-management-btn{
  flex:1 1 0;
  min-width:0;
  min-height:36px;
}

.currency-management-toast{
  position:fixed;
  top:16px;
  left:50%;
  transform:translateX(-50%);
  z-index:2300;
  min-width:240px;
  max-width:min(92vw, 560px);
  padding:12px 16px;
  border-radius:9px;
  border:1px solid rgba(255,255,255,.24);
  box-shadow:0 18px 40px rgba(2,6,23,.22);
  color:#fff;
  font-size:13px;
  font-weight:700;
  text-align:center;
  background:rgba(15,23,42,.94);
  opacity:0;
  pointer-events:none;
  transition:opacity .22s ease, transform .22s ease;
}

.currency-management-toast.is-visible{
  opacity:1;
  transform:translateX(-50%) translateY(0);
}

.currency-management-toast--success{
  background:rgba(22,163,74,.95);
}

.currency-management-toast--danger{
  background:rgba(185,28,28,.96);
}

.currency-management-toast--info{
  background:rgba(30,64,175,.96);
}

@media (max-width: 980px){
  .taif-currency-management-modal--currency-picker.taif-currency-management-modal--grand.taif-currency-management-modal--size-md,
  .taif-currency-management-modal--single-editor.taif-currency-management-modal--grand.taif-currency-management-modal--size-md{
    width:min(90vw, 720px);
  }

  .currency-management-picker-card{
    padding:10px 13px;
  }
}

@media (max-width: 720px){
  .currency-management-picker-card{
    align-items:flex-start;
    flex-direction:column;
  }

  .currency-management-picker-card__identity,
  .currency-management-picker-card__text,
  .currency-management-picker-card__head{
    width:100%;
  }

  .currency-management-picker-card__action{
    align-self:flex-start;
  }
}

@media (max-width: 560px){
  .taif-currency-management-modal--delete-confirm.taif-currency-management-modal--grand.taif-currency-management-modal--size-sm{
    width:min(94vw, 520px);
    min-height:auto;
    height:auto;
    max-height:min(308px, 64vh);
  }

  .currency-management-picker-list{
    padding-inline:8px;
  }

  .currency-management-picker-card__flag{
    width:40px;
    height:40px;
  }
}

@media (max-width: 1180px){
  .currency-management-bulk-toolbar__search{
    flex:0 0 228px;
    width:min(100%, 228px);
    max-width:228px;
  }

  .currency-management-bulk-grid-head,
  .currency-management-bulk-card__row{
    grid-template-columns:38px 66px minmax(114px, .9fr) minmax(68px, .56fr) repeat(4, minmax(82px, .92fr));
    gap:6px;
  }
}

@media (max-width: 980px){
  .currency-management-shell{
    padding:4px;
  }

  .currency-management-topbar{
    border-radius:9px;
    grid-template-columns:minmax(var(--cm-search-min), var(--cm-search-max)) minmax(0, 1fr);
  }

  .currency-management-topbar-tools{
    justify-content:flex-start;
  }

  .currency-management-table{
    width:100%;
  }

  .taif-currency-management-modal__body{
    padding:18px;
  }
}

@media (max-width: 760px){
  .taif-currency-management-modal{
    border-radius:10px;
  }

  .taif-currency-management-modal--grand.taif-currency-management-modal--size-lg{
    width:min(100%, 96vw);
    max-height:min(92vh, 920px);
    height:min(92vh, 920px);
  }

  .taif-currency-management-modal--bulk-editor.taif-currency-management-modal--size-lg{
    width:min(100%, 95vw);
    height:min(90vh, 860px);
    max-height:min(90vh, 860px);
  }

  .taif-currency-management-modal__head{
    padding:0 6px;
  }

  .taif-currency-management-modal--grand .taif-currency-management-modal__head{
    padding:0 6px;
  }

  .taif-currency-management-modal__body{
    padding:4px 6px 0;
  }

  .taif-currency-management-modal--bulk-editor .taif-currency-management-modal__body{
    padding:0;
  }

  .taif-currency-management-modal--grand .taif-currency-management-modal__heading--centered{
    max-width:calc(100% - 84px);
  }

  .taif-currency-management-modal--grand .taif-currency-management-modal__title{
    font-size:14px;
  }


  .currency-management-bulk-scrollarea{
    padding:7px 1px 7px 0;
  }

  .currency-management-bulk-sticky-stack{
    gap:6px;
    margin-bottom:8px;
  }

  .currency-management-bulk-toolbar{
    padding:7px 8px;
    border-radius:9px;
  }

  .currency-management-bulk-grid-head{
    display:none;
  }

  .currency-management-bulk-toolbar__search{
    flex-basis:100%;
    width:100%;
    max-width:100%;
  }

  .currency-management-bulk-toolbar__summary{
    justify-content:flex-start;
  }

  .currency-management-search-input--grand{
    height:35px;
  }

  .currency-management-bulk-card{
    padding:7px 8px;
    border-radius:9px;
  }

  .currency-management-bulk-card__row{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:8px;
  }

  .currency-management-bulk-card__cell--flag{
    justify-content:flex-start;
  }

  .currency-management-bulk-card__cell--code{
    justify-content:flex-end;
  }

  .currency-management-bulk-card__cell--name{
    grid-column:1 / -1;
    padding-inline-start:0;
    padding-inline-end:0;
  }

  .currency-management-bulk-card__cell--pair{
    grid-column:1 / -1;
    justify-content:flex-start;
    padding-inline-start:0;
    padding-inline-end:0;
    margin-top:-2px;
  }

  .currency-management-modal-actions--dock{
    padding:7px 8px;
  }
}

@media (max-width: 720px){
  .currency-management-form-grid--two{
    grid-template-columns:1fr;
  }

  .currency-management-btn{
    flex:1 1 calc(50% - 8px);
    justify-content:center;
  }

  .currency-management-topbar{
    padding:4px;
    --cm-search-min:94px;
    --cm-search-max:122px;
    --cm-topbar-gap:2px;
    --cm-toolbar-btn-height:28px;
    --cm-toolbar-btn-padding-inline:5px;
    --cm-toolbar-btn-font-size:9.4px;
    --cm-toolbar-icon-size:10px;
    --cm-counterpart-max:168px;
    --cm-search-font-size:10px;
    --cm-search-input-height:32px;
    --cm-search-padding-inline-start:30px;
    --cm-search-padding-inline-end:8px;
    --cm-search-clear-size:20px;
  }

  .currency-management-topbar-tools .currency-management-btn{
    flex:0 1 auto;
  }
}

@media (max-width: 560px){
  .taif-currency-management-modal__title{
    font-size:16px;
  }

  .taif-currency-management-modal__subtitle{
    font-size:11px;
  }


  .taif-currency-management-modal--bulk-editor.taif-currency-management-modal--grand .taif-currency-management-modal__title{
    font-size:16px;
  }

  .currency-management-shell{
    gap:5px;
    padding:4px;
  }

  .currency-management-topbar{
    padding:6px;
    border-radius:8px;
  }

  .currency-management-btn{
    min-height:40px;
    padding:0 12px;
    font-size:12px;
  }

  .currency-management-topbar-tools .currency-management-btn{
    min-height:38px;
    padding:0 11px;
  }

  .currency-management-search-input{
    height:42px;
  }

  .currency-management-bulk-toolbar{
    gap:8px;
  }

  .currency-management-bulk-toolbar__search{
    flex-basis:100%;
  }

  .currency-management-bulk-toolbar__pill{
    min-height:30px;
    font-size:10.25px;
  }

  .currency-management-search-input--grand{
    height:40px;
    font-size:13px;
  }

  .currency-management-bulk-card__flag{
    width:38px;
    height:38px;
  }

  .currency-management-bulk-input{
    min-height:36px;
    height:36px;
  }

  .currency-management-modal-actions{
    justify-content:stretch;
  }

  .currency-management-modal-actions .currency-management-btn{
    flex:1 1 100%;
  }

  .currency-management-modal-actions--dock{
    padding-block:4px;
  }

  .currency-management-modal-actions--dock .currency-management-btn{
    min-width:110px;
  }
}
.taif-currency-management-modal-backdrop.is-dragging .taif-currency-management-modal{
  transition:none !important;
}

.taif-currency-management-modal__head{
  position:relative;
  top:auto;
  z-index:2;
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:12px 16px;
  border-bottom:1px solid rgba(15,23,42,.08);
  background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.90));
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  cursor:auto;
  user-select:none;
  touch-action:none;
}

.taif-currency-management-modal__head.is-grabbing,
.taif-currency-management-modal-backdrop.is-dragging .taif-currency-management-modal__head{
  cursor:auto;
}

.taif-currency-management-modal__window-actions,
.taif-currency-management-modal__chrome-btn,
.taif-currency-management-modal__close{
  cursor:auto;
}

.taif-currency-management-modal__title,
.taif-currency-management-modal__subtitle,
.taif-currency-management-modal__eyebrow{
  user-select:none;
}

body.taif-currency-management--dragging-window,
body.taif-currency-management--dragging-window *{
  user-select:none !important;
  cursor:auto !important;
}

/* ===== Stable search-clear glyph sizing and centering ===== */
.currency-management-search-clear svg{
  display:block !important;
  width:11.75px;
  height:11.75px;
  overflow:visible;
  pointer-events:none;
  flex:none;
  transform:translateZ(0);
}

.currency-management-search-clear svg path{
  stroke-width:2.35;
  vector-effect:non-scaling-stroke;
}

.currency-management-search-clear--grand svg{
  width:10.25px;
  height:10.25px;
}

.currency-management-bulk-card__cell--buy .currency-management-bulk-input:hover,
.currency-management-bulk-card__cell--sell .currency-management-bulk-input:hover,
.currency-management-bulk-card__cell--ratio .currency-management-bulk-input:hover,
.currency-management-bulk-card__cell--buy .currency-management-bulk-input:focus,
.currency-management-bulk-card__cell--sell .currency-management-bulk-input:focus,
.currency-management-bulk-card__cell--ratio .currency-management-bulk-input:focus,
.currency-management-bulk-card__cell--buy .currency-management-bulk-input:focus-visible,
.currency-management-bulk-card__cell--sell .currency-management-bulk-input:focus-visible,
.currency-management-bulk-card__cell--ratio .currency-management-bulk-input:focus-visible{
  border-color:var(--currency-management-neutral-rate-border);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.96), 0 0 0 1px rgba(15,23,42,.025) !important;
}

/* Modal field focus accent: professional black editing border */
.taif-currency-management-modal :is(
  .currency-management-input,
  .currency-management-search-input,
  .currency-management-search-input--grand,
  .currency-management-bulk-input
):focus,
.taif-currency-management-modal :is(
  .currency-management-input,
  .currency-management-search-input,
  .currency-management-search-input--grand,
  .currency-management-bulk-input
):focus-visible,
.taif-currency-management-modal .currency-management-field:focus-within :is(
  .currency-management-input,
  .currency-management-search-input,
  .currency-management-search-input--grand,
  .currency-management-bulk-input
){
  border-color:rgba(15,23,42,.78) !important;
  box-shadow:
    0 0 0 1px rgba(15,23,42,.20),
    0 12px 26px rgba(15,23,42,.09),
    inset 0 1px 0 rgba(255,255,255,.92) !important;
  background:linear-gradient(180deg, rgba(255,255,255,.995), rgba(249,250,251,.985)) !important;
}

.taif-currency-management-modal .currency-management-field:focus-within :is(
  .currency-management-input,
  .currency-management-search-input,
  .currency-management-search-input--grand,
  .currency-management-bulk-input
):hover{
  border-color:rgba(15,23,42,.82) !important;
}

/* Modal footer action buttons: keep the original button look without an extra focus ring */
.taif-currency-management-modal .currency-management-modal-actions .currency-management-btn:is(:focus, :focus-visible, :active){
  outline:none !important;
  box-shadow:none !important;
}

.taif-currency-management-modal .currency-management-modal-actions .currency-management-btn:hover:is(:focus, :focus-visible, :active){
  box-shadow:none !important;
}

/* Selection surfaces: keep picker cards local, but let inline dropdowns inherit the shared system. */
.taif-currency-management-modal :is(
  .currency-management-picker-card,
  .currency-management-modal-actions .currency-management-btn
){
  outline:none;
}

.taif-currency-management-modal .currency-management-picker-card:is(:hover, :focus, :focus-visible){
  border-color:rgba(15,23,42,.78) !important;
  box-shadow:
    0 0 0 1px rgba(15,23,42,.18),
    0 14px 28px rgba(15,23,42,.12) !important;
}

.taif-currency-management-modal .currency-management-picker-card:is(:active){
  border-color:rgba(15,23,42,.82) !important;
  box-shadow:
    0 0 0 1px rgba(15,23,42,.22),
    0 18px 32px rgba(15,23,42,.14) !important;
}

.taif-currency-management-modal .currency-management-picker-card{
  position:relative;
}

/* Focus only: the user is currently standing on this picker card. */
.taif-currency-management-modal .currency-management-picker-card:not(.is-active):is(:focus, :focus-visible){
  border-color:rgba(15,23,42,.88) !important;
  box-shadow:
    0 0 0 1px rgba(15,23,42,.90),
    0 0 0 4px rgba(255,255,255,.62),
    0 16px 30px rgba(15,23,42,.14) !important;
  transform:translateY(-1px);
}

.taif-currency-management-modal--single-picker .currency-management-picker-card,
.taif-currency-management-modal--delete-picker .currency-management-picker-card{
  outline:none;
}

.taif-currency-management-modal--single-picker .currency-management-picker-card:not(:disabled):not(.is-locked):is(:hover, :focus, :focus-visible),
.taif-currency-management-modal--delete-picker .currency-management-picker-card:not(:disabled):not(.is-locked):is(:hover, :focus, :focus-visible){
  border-color:rgba(96,165,250,.58) !important;
  box-shadow:0 14px 28px rgba(37,99,235,.10) !important;
}

.taif-currency-management-modal--single-picker .currency-management-picker-card:not(:disabled):not(.is-locked):is(:active),
.taif-currency-management-modal--delete-picker .currency-management-picker-card:not(:disabled):not(.is-locked):is(:active){
  border-color:rgba(96,165,250,.62) !important;
  box-shadow:0 10px 20px rgba(37,99,235,.08) !important;
}

.taif-currency-management-modal :is(
  .currency-management-input,
  .currency-management-bulk-input
).is-invalid,
.taif-currency-management-modal :is(
  .currency-management-input,
  .currency-management-bulk-input
)[aria-invalid="true"],
.taif-currency-management-modal .currency-management-method-picker__trigger.is-invalid,
.taif-currency-management-modal .currency-management-method-picker__trigger[aria-invalid="true"],
.taif-currency-management-modal .currency-management-flag-picker__trigger.is-invalid,
.taif-currency-management-modal .currency-management-flag-picker__trigger[aria-invalid="true"],
.taif-currency-management-modal .currency-management-method-picker.is-open .currency-management-method-picker__trigger.is-invalid,
.taif-currency-management-modal .currency-management-method-picker.is-open .currency-management-method-picker__trigger[aria-invalid="true"],
.taif-currency-management-modal .currency-management-flag-picker.is-open .currency-management-flag-picker__trigger.is-invalid,
.taif-currency-management-modal .currency-management-flag-picker.is-open .currency-management-flag-picker__trigger[aria-invalid="true"],
.taif-currency-management-modal .currency-management-field:focus-within :is(
  .currency-management-input,
  .currency-management-bulk-input
).is-invalid,
.taif-currency-management-modal .currency-management-field:focus-within :is(
  .currency-management-input,
  .currency-management-bulk-input
)[aria-invalid="true"]{
  border-color:rgba(220,38,38,.94) !important;
  box-shadow:0 0 0 1px rgba(220,38,38,.94) !important;
  background:#fff !important;
}

/* Currency management workbench: flatten toolbar and split records scroll to match the latest entries / sales-purchase treatment */
.panel[data-view="currency-management"] .currency-management-shell{
  --currency-management-head-padding-y:10px;
  --currency-management-head-padding-x:0px;
  --currency-management-head-label-size:12.5px;
  --currency-management-scrollbar-size:8px;
  gap:0;
  padding:0;
}

.panel[data-view="currency-management"] .currency-management-layout{
  gap:0;
  min-height:0;
}

.panel[data-view="currency-management"] :is(
  .currency-management-btn,
  .currency-management-search-input,
  .currency-management-search-clear
){
  box-shadow:none !important;
}

.panel[data-view="currency-management"] :is(
  .currency-management-btn,
  .currency-management-search-input,
  .currency-management-search-clear
):is(:hover, :active, :focus, :focus-visible){
  box-shadow:none !important;
  filter:none !important;
}

.panel[data-view="currency-management"] .currency-management-btn,
.panel[data-view="currency-management"] .currency-management-btn:hover,
.panel[data-view="currency-management"] .currency-management-btn:active{
  transform:none;
}

.panel[data-view="currency-management"] .currency-management-topbar-tools .currency-management-btn::before{
  content:none;
}

.panel[data-view="currency-management"] .currency-management-search-wrap{
  box-shadow:none;
}

.panel[data-view="currency-management"] .currency-management-topbar-search{
  box-sizing:border-box;
  padding-inline-start:var(--cm-topbar-gap);
}

.panel[data-view="currency-management"] .currency-management-table--split-scroll{
  width:100%;
  max-width:none;
  min-height:0;
  flex:1;
  display:flex;
  flex-direction:column;
  gap:0;
  overflow:hidden;
  margin-inline:0;
  padding:0;
}

.panel[data-view="currency-management"] .currency-management-headrow--split-scroll{
  position:relative;
  top:auto;
  z-index:4;
  min-height:42px;
  padding:0;
  padding-inline-end:var(--currency-management-scrollbar-size);
  box-sizing:border-box;
  border:none;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  overflow:visible;
  isolation:isolate;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}

.panel[data-view="currency-management"] .currency-management-headrow--split-scroll::before{
  content:'';
  position:absolute;
  top:0;
  right:-4px;
  bottom:0;
  left:-4px;
  border:1px solid rgba(148,163,184,.24);
  border-radius:0;
  background:linear-gradient(180deg, rgba(233,237,243,.98) 0%, rgba(223,229,237,.98) 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.56);
  pointer-events:none;
  z-index:0;
}

.panel[data-view="currency-management"] .currency-management-headrow--split-scroll > div{
  position:relative;
  z-index:1;
  min-height:42px;
  padding:10px 12px;
  color:#475569;
  font:800 12.5px/1.15 var(--taif-font-family);
}

.panel[data-view="currency-management"] .currency-management-headrow--split-scroll > div + div{
  border-inline-start:1px solid rgba(148,163,184,.18);
}

.panel[data-view="currency-management"] .currency-management-headrow--split-scroll > div:nth-child(4){
  padding-inline-start:max(12px, var(--currency-management-head-name-padding-start));
}

.panel[data-view="currency-management"] .currency-management-scroll--split-scroll{
  min-height:0;
  flex:1;
  overflow-y:auto;
  overflow-x:hidden;
  direction:rtl;
  padding:0;
  padding-inline-end:var(--currency-management-scrollbar-size);
  box-sizing:border-box;
  scrollbar-gutter:stable;
  scrollbar-width:thin;
  scrollbar-color:var(--taif-scrollbar-thumb) transparent;
}

.panel[data-view="currency-management"] .currency-management-scroll--split-scroll::-webkit-scrollbar{
  width:var(--currency-management-scrollbar-size);
  height:var(--currency-management-scrollbar-size);
}

.panel[data-view="currency-management"] .currency-management-scroll--split-scroll::-webkit-scrollbar-track{
  background:transparent;
}

.panel[data-view="currency-management"] .currency-management-scroll--split-scroll::-webkit-scrollbar-thumb{
  background:var(--taif-scrollbar-thumb);
  border-radius:var(--currency-management-scrollbar-size);
  border:1px solid transparent;
  background-clip:content-box;
}

.panel[data-view="currency-management"] .currency-management-scroll-inner--split-scroll{
  direction:rtl;
  min-width:0;
  position:relative;
  display:flex;
  flex-direction:column;
  gap:5px;
  padding-top:8px;
}

@media (max-width: 980px){
  .panel[data-view="currency-management"] .currency-management-shell{
    padding:0;
  }

  .panel[data-view="currency-management"] .currency-management-topbar{
    border-radius:0;
  }
}


/* v95 — bulk currency editor: remove horizontal scroll and start vertical scrollbar below column header */
.taif-currency-management-modal--bulk-editor .currency-management-bulk-panel{
  min-width:0;
}

.taif-currency-management-modal--bulk-editor .currency-management-bulk-scrollarea{
  display:flex;
  flex-direction:column;
  min-width:0;
  min-height:0;
  overflow:hidden;
  padding:0;
}

.taif-currency-management-modal--bulk-editor .currency-management-bulk-sticky-stack{
  position:relative;
  top:auto;
  flex:0 0 auto;
  min-width:0;
  margin:0 0 7px;
}

.taif-currency-management-modal--bulk-editor .currency-management-bulk-toolbar,
.taif-currency-management-modal--bulk-editor .currency-management-bulk-grid-head,
.taif-currency-management-modal--bulk-editor .currency-management-bulk-list,
.taif-currency-management-modal--bulk-editor .currency-management-bulk-card,
.taif-currency-management-modal--bulk-editor .currency-management-bulk-card__row{
  min-width:0;
  width:100%;
  max-width:100%;
  box-sizing:border-box;
}

.taif-currency-management-modal--bulk-editor .currency-management-bulk-grid-head,
.taif-currency-management-modal--bulk-editor .currency-management-bulk-card__row{
  grid-template-columns:36px 68px minmax(126px, 1fr) minmax(72px, .60fr) repeat(4, minmax(82px, .90fr));
  gap:6px;
}

.taif-currency-management-modal--bulk-editor .currency-management-bulk-toolbar{
  padding-inline:6px;
}

.taif-currency-management-modal--bulk-editor .currency-management-bulk-grid-head{
  padding:5px 7px 4px;
}

.taif-currency-management-modal--bulk-editor .currency-management-bulk-list{
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  padding:0 0 8px;
  scrollbar-gutter:stable;
  scrollbar-width:thin;
  scrollbar-color:rgba(15,23,42,.22) transparent;
}

.taif-currency-management-modal--bulk-editor .currency-management-bulk-list::-webkit-scrollbar{
  width:10px;
  height:10px;
}

.taif-currency-management-modal--bulk-editor .currency-management-bulk-list::-webkit-scrollbar-track{
  background:transparent;
}

.taif-currency-management-modal--bulk-editor .currency-management-bulk-list::-webkit-scrollbar-thumb{
  background:rgba(15,23,42,.22);
  border-radius:10px;
  border:2px solid transparent;
  background-clip:content-box;
}

.taif-currency-management-modal--bulk-editor .currency-management-bulk-card{
  padding:8px 7px;
}



/* ===== Currency management button interaction system (scoped, unified, role-based) ===== */
:where(.panel[data-view="currency-management"], .taif-currency-management-modal, .taif-currency-management-modal-backdrop){
  --cm-button-lift-y:-2px;
  --cm-button-lift-scale:1.045;
  --cm-button-press-scale:1.065;
  --cm-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="currency-management"] :is(
  .currency-management-topbar-tools,
  .currency-management-actions
),
.taif-currency-management-modal :is(
  .taif-currency-management-modal__window-actions,
  .currency-management-modal-actions,
  .currency-management-modal-actions--dock,
  .currency-management-modal-actions--compact,
  .currency-management-modal-actions--single-editor,
  .currency-management-modal-actions--grand
){
  overflow:visible;
}

.panel[data-view="currency-management"] :is(
  .currency-management-topbar-tools .currency-management-btn,
  .currency-management-actions .currency-management-iconbtn
),
.taif-currency-management-modal :is(
  .taif-currency-management-modal__chrome-btn,
  .taif-currency-management-modal__close,
  .currency-management-modal-actions .currency-management-btn,
  .currency-management-modal-actions--dock .currency-management-btn,
  .currency-management-modal-actions--compact .currency-management-btn,
  .currency-management-modal-actions--single-editor .currency-management-btn,
  .currency-management-modal-actions--grand .currency-management-btn
){
  --cm-button-rest-transform:translateY(0);
  --cm-button-hover-border:rgba(15,23,42,.20);
  --cm-button-hover-shadow:0 14px 26px rgba(15,23,42,.14);
  --cm-button-active-shadow:0 12px 22px rgba(15,23,42,.16);
  --cm-button-focus-ring:0 0 0 2px rgba(15,23,42,.10);
  --cm-button-cue-color:#05070b;
  --cm-button-hover-filter:none;
  --cm-button-active-filter:none;
  position:relative;
  isolation:isolate;
  transform-origin:center center;
  backface-visibility:hidden;
  will-change:transform, box-shadow, filter;
  transition:var(--cm-button-transition) !important;
  outline:none;
}

.panel[data-view="currency-management"] .currency-management-topbar-tools .currency-management-btn{
  --cm-button-cue-color:#ffffff;
}

.panel[data-view="currency-management"] :is(
  .currency-management-actions .currency-management-iconbtn
),
.taif-currency-management-modal :is(
  .taif-currency-management-modal__chrome-btn,
  .taif-currency-management-modal__close
){
  --cm-button-lift-scale:1.10;
  --cm-button-press-scale:1.135;
}

.panel[data-view="currency-management"] :is(
  .currency-management-topbar-tools .currency-management-btn[data-currency-management-action="add"]
){
  --cm-button-hover-border:rgba(34,197,94,.44);
  --cm-button-hover-shadow:0 16px 30px rgba(21,128,61,.24);
  --cm-button-active-shadow:0 18px 34px rgba(21,128,61,.28);
  --cm-button-focus-ring:0 0 0 2px rgba(34,197,94,.16);
  --cm-button-cue-color:#ffffff;
  --cm-button-hover-filter:brightness(1.06) saturate(1.03);
  --cm-button-active-filter:brightness(1.10) saturate(1.04);
}

.panel[data-view="currency-management"] :is(
  .currency-management-topbar-tools .currency-management-btn--primary,
  .currency-management-topbar-tools .currency-management-btn[data-currency-management-action="usd"],
  .currency-management-actions .currency-management-iconbtn--move
),
.taif-currency-management-modal :is(
  .currency-management-modal-actions .currency-management-btn--primary,
  .currency-management-modal-actions--dock .currency-management-btn--primary,
  .currency-management-modal-actions--compact .currency-management-btn--primary,
  .currency-management-modal-actions--single-editor .currency-management-btn--primary,
  .currency-management-modal-actions--grand .currency-management-btn--primary,
  .taif-currency-management-modal__chrome-btn
){
  --cm-button-hover-border:rgba(147,197,253,.46);
  --cm-button-hover-shadow:0 16px 30px rgba(37,99,235,.24);
  --cm-button-active-shadow:0 18px 34px rgba(37,99,235,.28);
  --cm-button-focus-ring:0 0 0 2px rgba(59,130,246,.16);
  --cm-button-cue-color:#ffffff;
  --cm-button-hover-filter:brightness(1.06) saturate(1.04);
  --cm-button-active-filter:brightness(1.10) saturate(1.05);
}

.panel[data-view="currency-management"] :is(
  .currency-management-topbar-tools .currency-management-btn[data-currency-management-action="delete-currency"],
  .currency-management-actions .currency-management-iconbtn--danger
),
.taif-currency-management-modal :is(
  .currency-management-modal-actions .currency-management-btn--danger,
  .currency-management-modal-actions .currency-management-btn[data-currency-management-action="cancel"],
  .currency-management-modal-actions--dock .currency-management-btn--danger,
  .currency-management-modal-actions--dock .currency-management-btn[data-currency-management-action="cancel"],
  .currency-management-modal-actions--compact .currency-management-btn--danger,
  .currency-management-modal-actions--compact .currency-management-btn[data-currency-management-action="cancel"],
  .currency-management-modal-actions--single-editor .currency-management-btn--danger,
  .currency-management-modal-actions--single-editor .currency-management-btn[data-currency-management-action="cancel"],
  .currency-management-modal-actions--grand .currency-management-btn--danger,
  .currency-management-modal-actions--grand .currency-management-btn[data-currency-management-action="cancel"],
  .taif-currency-management-modal__close
){
  --cm-button-hover-border:rgba(239,68,68,.44);
  --cm-button-hover-shadow:0 16px 30px rgba(185,28,28,.26);
  --cm-button-active-shadow:0 18px 34px rgba(185,28,28,.30);
  --cm-button-focus-ring:0 0 0 2px rgba(239,68,68,.15);
  --cm-button-cue-color:#ffffff;
  --cm-button-hover-filter:brightness(1.06) saturate(1.03);
  --cm-button-active-filter:brightness(1.10) saturate(1.04);
}

.panel[data-view="currency-management"] :is(
  .currency-management-topbar-tools .currency-management-btn--dark,
  .currency-management-topbar-tools .currency-management-btn[data-currency-management-action="bulk"]
),
.taif-currency-management-modal :is(
  .currency-management-modal-actions .currency-management-btn--dark,
  .currency-management-modal-actions--dock .currency-management-btn--dark,
  .currency-management-modal-actions--compact .currency-management-btn--dark,
  .currency-management-modal-actions--single-editor .currency-management-btn--dark,
  .currency-management-modal-actions--grand .currency-management-btn--dark
){
  --cm-button-hover-border:rgba(71,85,105,.46);
  --cm-button-hover-shadow:0 16px 30px rgba(15,23,42,.24);
  --cm-button-active-shadow:0 18px 34px rgba(15,23,42,.28);
  --cm-button-focus-ring:0 0 0 2px rgba(71,85,105,.16);
  --cm-button-cue-color:#ffffff;
  --cm-button-hover-filter:brightness(1.06) saturate(1.02);
  --cm-button-active-filter:brightness(1.10) saturate(1.03);
}

.panel[data-view="currency-management"] .currency-management-topbar-tools .currency-management-btn[data-currency-management-action="edit-single"]{
  --cm-button-hover-border:rgba(167,139,250,.44);
  --cm-button-hover-shadow:0 16px 30px rgba(109,40,217,.24);
  --cm-button-active-shadow:0 18px 34px rgba(109,40,217,.28);
  --cm-button-focus-ring:0 0 0 2px rgba(139,92,246,.16);
  --cm-button-cue-color:#ffffff;
  --cm-button-hover-filter:brightness(1.06) saturate(1.03);
  --cm-button-active-filter:brightness(1.10) saturate(1.04);
}

.panel[data-view="currency-management"] :is(
  .currency-management-topbar-tools .currency-management-btn,
  .currency-management-actions .currency-management-iconbtn
):is(:hover, :focus-visible):not([disabled]):not(.is-disabled),
.taif-currency-management-modal :is(
  .taif-currency-management-modal__chrome-btn,
  .taif-currency-management-modal__close,
  .currency-management-modal-actions .currency-management-btn,
  .currency-management-modal-actions--dock .currency-management-btn,
  .currency-management-modal-actions--compact .currency-management-btn,
  .currency-management-modal-actions--single-editor .currency-management-btn,
  .currency-management-modal-actions--grand .currency-management-btn
):is(:hover, :focus-visible):not([disabled]):not(.is-disabled){
  transform:var(--cm-button-rest-transform) translateY(var(--cm-button-lift-y)) scale(var(--cm-button-lift-scale)) !important;
  border-color:var(--cm-button-hover-border) !important;
  box-shadow:var(--cm-button-focus-ring), var(--cm-button-hover-shadow) !important;
  color:var(--cm-button-cue-color) !important;
  filter:var(--cm-button-hover-filter) !important;
  outline:none !important;
  z-index:3;
}

.panel[data-view="currency-management"] :is(
  .currency-management-topbar-tools .currency-management-btn,
  .currency-management-actions .currency-management-iconbtn
):active:not([disabled]):not(.is-disabled),
.taif-currency-management-modal :is(
  .taif-currency-management-modal__chrome-btn,
  .taif-currency-management-modal__close,
  .currency-management-modal-actions .currency-management-btn,
  .currency-management-modal-actions--dock .currency-management-btn,
  .currency-management-modal-actions--compact .currency-management-btn,
  .currency-management-modal-actions--single-editor .currency-management-btn,
  .currency-management-modal-actions--grand .currency-management-btn
):active:not([disabled]):not(.is-disabled){
  transform:var(--cm-button-rest-transform) translateY(var(--cm-button-lift-y)) scale(var(--cm-button-press-scale)) !important;
  border-color:var(--cm-button-hover-border) !important;
  box-shadow:var(--cm-button-focus-ring), var(--cm-button-active-shadow) !important;
  color:var(--cm-button-cue-color) !important;
  filter:var(--cm-button-active-filter) !important;
  outline:none !important;
  z-index:4;
}

.panel[data-view="currency-management"] :is(
  .currency-management-topbar-tools .currency-management-btn,
  .currency-management-actions .currency-management-iconbtn
)[disabled],
.taif-currency-management-modal :is(
  .taif-currency-management-modal__chrome-btn,
  .taif-currency-management-modal__close,
  .currency-management-modal-actions .currency-management-btn,
  .currency-management-modal-actions--dock .currency-management-btn,
  .currency-management-modal-actions--compact .currency-management-btn,
  .currency-management-modal-actions--single-editor .currency-management-btn,
  .currency-management-modal-actions--grand .currency-management-btn
)[disabled],
.panel[data-view="currency-management"] .currency-management-actions .currency-management-iconbtn.is-disabled{
  transform:var(--cm-button-rest-transform) !important;
  box-shadow:none !important;
  filter:none !important;
}

/* Currency-management row action buttons: keep motion only, with no hover/press color or halo changes. */
.panel[data-view="currency-management"] .currency-management-actions .currency-management-iconbtn{
  --cm-row-action-rest-border:rgba(15,23,42,.10);
  --cm-row-action-rest-color:#0b1220;
  background:rgba(255,255,255,.92);
  border-color:var(--cm-row-action-rest-border);
  color:var(--cm-row-action-rest-color);
}

.panel[data-view="currency-management"] .currency-management-actions .currency-management-iconbtn.currency-management-iconbtn--danger{
  --cm-row-action-rest-border:rgba(239,68,68,.16);
  --cm-row-action-rest-color:#b91c1c;
}

.panel[data-view="currency-management"] .currency-management-actions .currency-management-iconbtn.currency-management-iconbtn--move{
  --cm-row-action-rest-color:#2563eb;
}

.panel[data-view="currency-management"] .currency-management-actions .currency-management-iconbtn:is(:hover, :active, :focus, :focus-visible):not([disabled]):not(.is-disabled){
  background:rgba(255,255,255,.92) !important;
  border-color:var(--cm-row-action-rest-border) !important;
  box-shadow:none !important;
  color:var(--cm-row-action-rest-color) !important;
  filter:none !important;
  outline:none !important;
}

/* Currency-management main search clear button: keep the existing red look, but match row-action interaction by removing hover/press/focus color changes and halo effects. */
.panel[data-view="currency-management"] .currency-management-topbar-search .currency-management-search-clear{
  --cm-main-search-clear-rest-border:rgba(220,38,38,.22);
  --cm-main-search-clear-rest-background:linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  --cm-main-search-clear-rest-shadow:0 10px 16px rgba(185,28,28,.16), inset 0 1px 0 rgba(255,255,255,.16);
  background:var(--cm-main-search-clear-rest-background) !important;
  border-color:var(--cm-main-search-clear-rest-border) !important;
  box-shadow:var(--cm-main-search-clear-rest-shadow) !important;
  color:#fff !important;
  filter:none !important;
}

.panel[data-view="currency-management"] .currency-management-topbar-search .currency-management-search-clear:is(:hover, :active, :focus, :focus-visible){
  background:var(--cm-main-search-clear-rest-background) !important;
  border-color:var(--cm-main-search-clear-rest-border) !important;
  box-shadow:var(--cm-main-search-clear-rest-shadow) !important;
  color:#fff !important;
  filter:none !important;
  outline:none !important;
}

.panel[data-view="currency-management"] .currency-management-topbar-search .currency-management-search-clear:hover{
  transform:translateY(calc(-50% - 1px));
}

.panel[data-view="currency-management"] .currency-management-topbar-search .currency-management-search-clear:active{
  transform:translateY(-50%) scale(.96);
}

.panel[data-view="currency-management"] .currency-management-topbar-search .currency-management-search-clear:is(:focus, :focus-visible){
  transform:translateY(-50%);
}

