

/* ===== DARK THEME GLOBAL FIX v121 — all admin pages ===== */
html[data-theme="dark"]{
  color-scheme:dark;
}

/* Page text defaults */
html[data-theme="dark"] .ph-main,
html[data-theme="dark"] .ph-page,
html[data-theme="dark"] .ph-main-col,
html[data-theme="dark"] .page,
html[data-theme="dark"] .main{
  color:var(--ph-text)!important;
}

/* Force every common panel/card/shell off pure white */
html[data-theme="dark"] .ph-card,
html[data-theme="dark"] .ph-card[data-v-1dc95b0a],
html[data-theme="dark"] section.ph-card,
html[data-theme="dark"] .list-card,
html[data-theme="dark"] .card,
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .table-card,
html[data-theme="dark"] .table-card .card-header,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .box,
html[data-theme="dark"] .shell,
html[data-theme="dark"] .wrap,
html[data-theme="dark"] .form,
html[data-theme="dark"] form.form,
html[data-theme="dark"] .creator-card,
html[data-theme="dark"] .group-card,
html[data-theme="dark"] .perm-card,
html[data-theme="dark"] .roles-card,
html[data-theme="dark"] .commission-card,
html[data-theme="dark"] .commission-block,
html[data-theme="dark"] .methods-card,
html[data-theme="dark"] .kpi-card,
html[data-theme="dark"] .compare-card,
html[data-theme="dark"] .hero-banner,
html[data-theme="dark"] .manual-modal,
html[data-theme="dark"] .modal,
html[data-theme="dark"] .masraf-modal,
html[data-theme="dark"] .cash-modal,
html[data-theme="dark"] .partner-modal__card,
html[data-theme="dark"] .ph-table-wrap,
html[data-theme="dark"] .table-wrap,
html[data-theme="dark"] .audit-card,
html[data-theme="dark"] .audit-shell,
html[data-theme="dark"] .masraf-shell,
html[data-theme="dark"] .cash-card,
html[data-theme="dark"] .cash-bar,
html[data-theme="dark"] .kar-toolbar,
html[data-theme="dark"] .kar-card,
html[data-theme="dark"] .kar-kpi,
html[data-theme="dark"] [class*="Card"],
html[data-theme="dark"] [class*="-card"],
html[data-theme="dark"] [class*="_card"],
html[data-theme="dark"] [class*="panel"],
html[data-theme="dark"] [class*="Panel"]{
  background:var(--ph-surface)!important;
  background-color:var(--ph-surface)!important;
  background-image:none!important;
  border-color:var(--ph-border)!important;
  color:var(--ph-text)!important;
  box-shadow:none!important;
}

/* Titles / labels on those surfaces must stay light */
html[data-theme="dark"] .ph-card__title,
html[data-theme="dark"] .ph-card__header,
html[data-theme="dark"] .ph-card__subtitle,
html[data-theme="dark"] .ph-card__body,
html[data-theme="dark"] .card-header,
html[data-theme="dark"] .card-header h2,
html[data-theme="dark"] .section-title,
html[data-theme="dark"] .stat-label,
html[data-theme="dark"] .stat-value,
html[data-theme="dark"] h1,html[data-theme="dark"] h2,html[data-theme="dark"] h3,html[data-theme="dark"] h4,
html[data-theme="dark"] label,
html[data-theme="dark"] .eyebrow,
html[data-theme="dark"] .hint,
html[data-theme="dark"] .note,
html[data-theme="dark"] .subtitle,
html[data-theme="dark"] .help,
html[data-theme="dark"] .desc,
html[data-theme="dark"] .description,
html[data-theme="dark"] .perm-card label,
html[data-theme="dark"] .roles-card label,
html[data-theme="dark"] .group-card label,
html[data-theme="dark"] .ph-card label{
  color:var(--ph-text)!important;
}
html[data-theme="dark"] label,
html[data-theme="dark"] .stat-label,
html[data-theme="dark"] .hint,
html[data-theme="dark"] .note,
html[data-theme="dark"] .subtitle,
html[data-theme="dark"] .help,
html[data-theme="dark"] .ph-card__subtitle{
  color:var(--ph-text-muted)!important;
}

/* Inputs / selects / textareas — never white, never “selected” chip look */
html[data-theme="dark"] input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]),
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .ph-input,
html[data-theme="dark"] .ph-select,
html[data-theme="dark"] .partner-trigger,
html[data-theme="dark"] button.partner-trigger,
html[data-theme="dark"] .group-filter,
html[data-theme="dark"] .inline,
html[data-theme="dark"] input.inline,
html[data-theme="dark"] input.wg-name,
html[data-theme="dark"] input.narrow,
html[data-theme="dark"] input.chat-id,
html[data-theme="dark"] .mono,
html[data-theme="dark"] .ph-mono,
html[data-theme="dark"] .iban-code,
html[data-theme="dark"] [class*="iban-code"]{
  background:#0f172a!important;
  background-color:#0f172a!important;
  background-image:none!important;
  color:var(--ph-text)!important;
  border:1px solid var(--ph-border-strong)!important;
  box-shadow:none!important;
  caret-color:var(--ph-text)!important;
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder{
  color:var(--ph-text-subtle)!important;
  opacity:1!important;
}

/* Remove “selected text” chip backgrounds on mono/code cells */
html[data-theme="dark"] .iban-code,
html[data-theme="dark"] .iban-code.small,
html[data-theme="dark"] .mono,
html[data-theme="dark"] .ph-mono,
html[data-theme="dark"] code,
html[data-theme="dark"] kbd{
  background:transparent!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  color:var(--ph-text)!important;
}

/* Chips / pills / event type badges — readable on dark */
html[data-theme="dark"] .chip,
html[data-theme="dark"] .pill,
html[data-theme="dark"] .tag,
html[data-theme="dark"] .event-chip,
html[data-theme="dark"] .event-pill,
html[data-theme="dark"] .stat-pill,
html[data-theme="dark"] .type-chip,
html[data-theme="dark"] .filter-chip,
html[data-theme="dark"] [class*="chip"],
html[data-theme="dark"] [class*="pill"]:not(.ph-badge):not(.ph-topbar__socket-badge):not([class*="sw"]){
  background:var(--ph-surface-muted)!important;
  color:var(--ph-text)!important;
  border:1px solid var(--ph-border)!important;
}

/* Soft badges */
html[data-theme="dark"] .badge,
html[data-theme="dark"] .badge-muted,
html[data-theme="dark"] .ph-badge--neutral{
  background:var(--ph-surface-muted)!important;
  color:var(--ph-text)!important;
  border-color:var(--ph-border)!important;
}
html[data-theme="dark"] .badge-success,
html[data-theme="dark"] .ph-badge--success{
  background:var(--ph-success-soft)!important;
  color:#86efac!important;
}
html[data-theme="dark"] .ph-badge--warning,
html[data-theme="dark"] .badge-warning{
  background:var(--ph-warning-soft)!important;
  color:#fcd34d!important;
}

/* Buttons: ghost/secondary/white action buttons */
html[data-theme="dark"] .btn:not(.btn-primary):not(.btn-danger):not(.danger):not(.ph-btn--primary):not(.ph-btn--danger),
html[data-theme="dark"] .btn.ghost,
html[data-theme="dark"] .btn-ghost,
html[data-theme="dark"] .ph-btn--secondary,
html[data-theme="dark"] .ph-btn--ghost,
html[data-theme="dark"] button.btn:not(.btn-primary):not(.btn-danger):not(.danger){
  background:var(--ph-surface-muted)!important;
  color:var(--ph-text)!important;
  border:1px solid var(--ph-border-strong)!important;
  box-shadow:none!important;
}
html[data-theme="dark"] .btn-primary,
html[data-theme="dark"] .ph-btn--primary,
html[data-theme="dark"] button.btn.btn-primary{
  color:#fff!important;
}
html[data-theme="dark"] .btn-danger,
html[data-theme="dark"] .btn.danger,
html[data-theme="dark"] .ph-btn--danger{
  background:#dc2626!important;
  color:#fff!important;
  border-color:transparent!important;
}

/* Tables */
html[data-theme="dark"] table,
html[data-theme="dark"] .ph-table,
html[data-theme="dark"] .table{
  background:transparent!important;
  color:var(--ph-text)!important;
}
html[data-theme="dark"] table th,
html[data-theme="dark"] .ph-table th,
html[data-theme="dark"] .table th{
  background:#0f172a!important;
  background-image:none!important;
  color:var(--ph-text-muted)!important;
  border-color:var(--ph-border)!important;
}
html[data-theme="dark"] table td,
html[data-theme="dark"] .ph-table td,
html[data-theme="dark"] .table td{
  background:transparent!important;
  color:var(--ph-text)!important;
  border-color:var(--ph-border)!important;
}
html[data-theme="dark"] table tr:hover td{
  background:rgba(148,163,184,.06)!important;
}

/* Permission / role checkbox rows */
html[data-theme="dark"] .perm-card label,
html[data-theme="dark"] .roles-card label,
html[data-theme="dark"] .ph-card label,
html[data-theme="dark"] .check,
html[data-theme="dark"] .checkbox,
html[data-theme="dark"] label.sw-field,
html[data-theme="dark"] .sw-field span{
  color:var(--ph-text)!important;
}

/* Info / help callouts that stayed white */
html[data-theme="dark"] .info,
html[data-theme="dark"] .info-box,
html[data-theme="dark"] .callout,
html[data-theme="dark"] .note-box,
html[data-theme="dark"] .role-desc,
html[data-theme="dark"] .access-note,
html[data-theme="dark"] .help-box,
html[data-theme="dark"] [class*="note"],
html[data-theme="dark"] [class*="hint"]{
  background:var(--ph-surface-muted)!important;
  color:var(--ph-text)!important;
  border-color:var(--ph-border)!important;
}

/* Group list name bars that looked “selected” */
html[data-theme="dark"] .group-item,
html[data-theme="dark"] .group-name,
html[data-theme="dark"] .item-title,
html[data-theme="dark"] .list-item,
html[data-theme="dark"] .row-title{
  background:var(--ph-surface-muted)!important;
  color:var(--ph-text)!important;
  border-color:var(--ph-border)!important;
}

/* Wallet groups form + partner trigger */
html[data-theme="dark"] form.form,
html[data-theme="dark"] .partner-picker-root,
html[data-theme="dark"] .partner-trigger,
html[data-theme="dark"] .partner-trigger.open{
  background:#0f172a!important;
  color:var(--ph-text)!important;
  border-color:var(--ph-border-strong)!important;
}
html[data-theme="dark"] form.form{
  background:var(--ph-surface)!important;
}
html[data-theme="dark"] .partner-modal__card{
  background:var(--ph-surface)!important;
}
html[data-theme="dark"] .partner-modal__head,
html[data-theme="dark"] .partner-modal__toolbar,
html[data-theme="dark"] .partner-modal__foot{
  background:var(--ph-surface-muted)!important;
  border-color:var(--ph-border)!important;
  color:var(--ph-text)!important;
}
html[data-theme="dark"] .partner-modal__search{
  background:#0f172a!important;
  color:var(--ph-text)!important;
  border-color:var(--ph-border-strong)!important;
}
html[data-theme="dark"] .partner-option,
html[data-theme="dark"] .partner-option__name,
html[data-theme="dark"] .partner-modal__head h3,
html[data-theme="dark"] .partner-modal__meta{
  color:var(--ph-text)!important;
}
html[data-theme="dark"] .partner-option.on{
  background:rgba(99,102,241,.16)!important;
  border-color:rgba(129,140,248,.35)!important;
}

/* Bank logos: light plate so dark logos stay visible */
/* bank logos moved below */

/* Thick white bordered commission / method blocks */
html[data-theme="dark"] .commission-block,
html[data-theme="dark"] .commission-card,
html[data-theme="dark"] .methods-wrap,
html[data-theme="dark"] .block,
html[data-theme="dark"] .ph-page > div[style*="background"],
html[data-theme="dark"] .ph-page section{
  border-color:var(--ph-border)!important;
}

/* Textareas used as role descriptions */
html[data-theme="dark"] textarea[readonly],
html[data-theme="dark"] .role-summary,
html[data-theme="dark"] .access-summary{
  background:#0f172a!important;
  color:var(--ph-text)!important;
  border:1px solid var(--ph-border)!important;
}

/* Hide empty title-only cards */
.ph-card:has(> .ph-card__body:empty){display:none!important}

/* Catch any leftover pure-white boxes inside main content */
html[data-theme="dark"] .ph-main [style*="background:#fff"],
html[data-theme="dark"] .ph-main [style*="background: #fff"],
html[data-theme="dark"] .ph-main [style*="background:#ffffff"],
html[data-theme="dark"] .ph-main [style*="background: #ffffff"],
html[data-theme="dark"] .ph-main [style*="background-color:#fff"],
html[data-theme="dark"] .ph-main [style*="background-color: #fff"]{
  background:var(--ph-surface)!important;
  color:var(--ph-text)!important;
}

/* Selection highlight — subtle, not permanent-looking */
html[data-theme="dark"] ::selection{
  background:rgba(99,102,241,.35);
  color:#fff;
}

/* Audit event chips */
html[data-theme="dark"] .audit-chip,
html[data-theme="dark"] span.audit-chip{
  background:var(--ph-surface-muted)!important;
  color:var(--ph-text)!important;
  border:1px solid var(--ph-border)!important;
}

/* Permissions / roles checkbox lists */
html[data-theme="dark"] .perm-col,
html[data-theme="dark"] .perm-list,
html[data-theme="dark"] .perm-list label,
html[data-theme="dark"] .role-grid,
html[data-theme="dark"] .role-grid label,
html[data-theme="dark"] .checks label,
html[data-theme="dark"] .checkbox-list label{
  color:var(--ph-text)!important;
}

/* Bank logos only in main content tables */
html[data-theme="dark"] .ph-main td img,
html[data-theme="dark"] .ph-main .bank-logo,
html[data-theme="dark"] .ph-main .bank-logo img{
  background:#fff!important;
  border-radius:6px!important;
  padding:3px 6px!important;
}

/* Partner modal — force dark rows (overrides injected #fff !important) */
html[data-theme="dark"] .partner-modal .partner-option,
html[data-theme="dark"] .partner-modal label.partner-option,
html[data-theme="dark"] label.partner-option{
  background:#1a2332!important;
  background-color:#1a2332!important;
  border:1px solid rgba(148,163,184,.18)!important;
  color:#e5e7eb!important;
}
html[data-theme="dark"] .partner-modal .partner-option:hover,
html[data-theme="dark"] label.partner-option:hover{
  background:#243044!important;
  border-color:rgba(148,163,184,.28)!important;
}
html[data-theme="dark"] .partner-modal .partner-option.on,
html[data-theme="dark"] label.partner-option.on{
  background:rgba(99,102,241,.22)!important;
  border-color:rgba(165,180,252,.4)!important;
}
html[data-theme="dark"] .partner-modal .partner-option__name,
html[data-theme="dark"] .partner-modal .partner-option span,
html[data-theme="dark"] .partner-option span,
html[data-theme="dark"] .partner-option span[data-v-fd022e33]{
  color:#e5e7eb!important;
}
html[data-theme="dark"] .partner-modal__card{
  background:#111827!important;
  border-color:rgba(148,163,184,.18)!important;
}
html[data-theme="dark"] .partner-modal__head,
html[data-theme="dark"] .partner-modal__toolbar,
html[data-theme="dark"] .partner-modal__foot{
  background:#1a2332!important;
  border-color:rgba(148,163,184,.14)!important;
}
html[data-theme="dark"] .partner-modal__head h3,
html[data-theme="dark"] .partner-modal__meta{
  color:#e5e7eb!important;
}
html[data-theme="dark"] .partner-modal__meta{color:#94a3b8!important}
html[data-theme="dark"] .partner-modal__link{
  color:#a5b4fc!important;
}
html[data-theme="dark"] .partner-modal__search{
  background:#0f172a!important;
  color:#e5e7eb!important;
  border-color:rgba(148,163,184,.28)!important;
}
html[data-theme="dark"] .partner-modal__x{
  background:#243044!important;
  color:#e5e7eb!important;
}
html[data-theme="dark"] .partner-modal__foot .btn.ghost{
  background:#243044!important;
  color:#e5e7eb!important;
}


/* ===== DARK PREMIUM v132 — color on signals, not whole rows ===== */

/* Surfaces */
html[data-theme="dark"] .ph-card,
html[data-theme="dark"] .tx-filters-card,
html[data-theme="dark"] .tx-table-card,
html[data-theme="dark"] .detail-modal,
html[data-theme="dark"] .reject-modal,
html[data-theme="dark"] .manual-modal{
  background:var(--ph-surface)!important;
  border:1px solid var(--ph-border)!important;
  box-shadow:none!important;
}

/* Table chrome */
html[data-theme="dark"] .tx-table th,
html[data-theme="dark"] table.tx-table th,
html[data-theme="dark"] .tx-table[data-v-72414df4] th{
  background:#10151e!important;
  background-image:none!important;
  color:#7d8799!important;
  border-bottom:1px solid rgba(255,255,255,.08)!important;
  font-size:.68rem!important;
  font-weight:700!important;
  letter-spacing:.06em!important;
  text-transform:uppercase!important;
}
html[data-theme="dark"] .tx-table td,
html[data-theme="dark"] table.tx-table td{
  background:transparent!important;
  border-bottom:1px solid rgba(255,255,255,.045)!important;
  color:var(--ph-text-muted)!important;
  vertical-align:middle!important;
}

/* Kill full-row status paints from earlier experiments + light-theme leftovers */
html[data-theme="dark"] .tx-table tbody tr.ok,
html[data-theme="dark"] .tx-table tbody tr.ok[data-v-72414df4],
html[data-theme="dark"] .tx-table tbody tr.ok td,
html[data-theme="dark"] .tx-table tbody tr.bad,
html[data-theme="dark"] .tx-table tbody tr.bad[data-v-72414df4],
html[data-theme="dark"] .tx-table tbody tr.bad td,
html[data-theme="dark"] .tx-table tbody tr:nth-child(even) td{
  background:transparent!important;
  box-shadow:none!important;
}

/* Hover: whisper only */
html[data-theme="dark"] .tx-table tbody tr:hover td{
  background:rgba(255,255,255,.03)!important;
}

/* Hierarchy: primary fields brighter */
html[data-theme="dark"] .tx-table td .tx-iban-main,
html[data-theme="dark"] .tx-table .tx-iban-main{
  color:#dbe4f0!important;
}
html[data-theme="dark"] .tx-amount,
html[data-theme="dark"] td.tx-amount{
  color:#fff!important;
  font-weight:750!important;
  font-variant-numeric:tabular-nums!important;
  letter-spacing:-.01em!important;
}

/* Secondary / helper text */
html[data-theme="dark"] .tx-muted,
html[data-theme="dark"] .tiny,
html[data-theme="dark"] .tx-user,
html[data-theme="dark"] .tx-iban-meta,
html[data-theme="dark"] .tx-time,
html[data-theme="dark"] .tx-wait{
  color:#6f7a8d!important;
}

/* Links / mono IDs — soft sky, not neon */
html[data-theme="dark"] .mono,
html[data-theme="dark"] .ph-mono,
html[data-theme="dark"] .iban-code,
html[data-theme="dark"] .tx-table .mono,
html[data-theme="dark"] .tx-table a{
  color:#7eb6ff!important;
  background:transparent!important;
  text-decoration:none!important;
}
html[data-theme="dark"] .tx-table a:hover{
  color:#bfd6ff!important;
}

/* Status pill — THE color signal */
html[data-theme="dark"] .badge,
html[data-theme="dark"] .tx-table .badge,
html[data-theme="dark"] .ph-badge{
  display:inline-flex!important;
  align-items:center!important;
  gap:.3rem!important;
  border-radius:999px!important;
  padding:.22rem .65rem!important;
  font-size:.72rem!important;
  font-weight:700!important;
  letter-spacing:.01em!important;
  border:1px solid transparent!important;
  line-height:1.2!important;
}
html[data-theme="dark"] .badge.s-successful,
html[data-theme="dark"] .tx-table .badge.s-successful{
  background:rgba(34,197,94,.15)!important;
  color:#4ade80!important;
  border-color:rgba(34,197,94,.28)!important;
}
html[data-theme="dark"] .badge.s-pending,
html[data-theme="dark"] .tx-table .badge.s-pending{
  background:rgba(245,158,11,.15)!important;
  color:#fbbf24!important;
  border-color:rgba(245,158,11,.28)!important;
}
html[data-theme="dark"] .badge.s-timeout,
html[data-theme="dark"] .tx-table .badge.s-timeout{
  background:rgba(249,115,22,.14)!important;
  color:#fb923c!important;
  border-color:rgba(249,115,22,.28)!important;
}
html[data-theme="dark"] .badge.s-unsuccessful,
html[data-theme="dark"] .badge.s-cancelled,
html[data-theme="dark"] .tx-table .badge.s-unsuccessful,
html[data-theme="dark"] .tx-table .badge.s-cancelled{
  background:rgba(239,68,68,.14)!important;
  color:#f87171!important;
  border-color:rgba(239,68,68,.28)!important;
}
html[data-theme="dark"] .badge.s-hold,
html[data-theme="dark"] .tx-table .badge.s-hold{
  background:rgba(168,85,247,.14)!important;
  color:#c084fc!important;
  border-color:rgba(168,85,247,.28)!important;
}
html[data-theme="dark"] .badge.s-receipt,
html[data-theme="dark"] .tx-table .badge.s-receipt{
  background:rgba(59,130,246,.14)!important;
  color:#60a5fa!important;
  border-color:rgba(59,130,246,.28)!important;
}
html[data-theme="dark"] .badge-muted,
html[data-theme="dark"] .ph-badge--neutral{
  background:rgba(148,163,184,.1)!important;
  color:#94a3b8!important;
  border-color:rgba(148,163,184,.18)!important;
}

/* Optional: tiny left rail ONLY on hover for ok/bad — not a painted row */
html[data-theme="dark"] .tx-table tbody tr.ok:hover td:first-child{
  box-shadow:inset 2px 0 0 rgba(74,222,128,.7);
}
html[data-theme="dark"] .tx-table tbody tr.bad:hover td:first-child{
  box-shadow:inset 2px 0 0 rgba(251,146,60,.7);
}

/* Action chips — outlined, not solid candy */
html[data-theme="dark"] .tx-act--success{
  background:rgba(34,197,94,.1)!important;
  color:#4ade80!important;
  border:1px solid rgba(34,197,94,.28)!important;
}
html[data-theme="dark"] .tx-act--danger{
  background:rgba(239,68,68,.1)!important;
  color:#f87171!important;
  border:1px solid rgba(239,68,68,.28)!important;
}
html[data-theme="dark"] .tx-act--warn{
  background:rgba(245,158,11,.1)!important;
  color:#fbbf24!important;
  border:1px solid rgba(245,158,11,.28)!important;
}
html[data-theme="dark"] .tx-act--accent{
  background:rgba(59,130,246,.1)!important;
  color:#60a5fa!important;
  border:1px solid rgba(59,130,246,.28)!important;
}
html[data-theme="dark"] .tx-act--copy{
  background:transparent!important;
  color:#a8b3c7!important;
  border:1px solid rgba(255,255,255,.1)!important;
}

/* Buttons */
html[data-theme="dark"] .btn-primary,
html[data-theme="dark"] .ph-btn--primary,
html[data-theme="dark"] button.btn.btn-primary,
html[data-theme="dark"] .btn.primary,
html[data-theme="dark"] .tx-filter-actions .btn:not(.btn-ghost):not(.ghost):not(.btn-danger),
html[data-theme="dark"] .ph-page-header__actions .btn:not(.btn-ghost):not(.ghost):not(.btn-danger),
html[data-theme="dark"] .actions .btn:not(.btn-ghost):not(.ghost):not(.btn-danger){
  background:#2563eb!important;
  color:#fff!important;
  border:none!important;
  box-shadow:none!important;
  font-weight:650!important;
}
html[data-theme="dark"] .btn-ghost,
html[data-theme="dark"] .ph-btn--ghost,
html[data-theme="dark"] .ph-btn--secondary,
html[data-theme="dark"] button.btn.btn-ghost{
  background:transparent!important;
  color:#c5cedd!important;
  border:1px solid rgba(255,255,255,.12)!important;
  box-shadow:none!important;
}
html[data-theme="dark"] .btn-danger,
html[data-theme="dark"] .ph-btn--danger{
  background:#dc2626!important;
  color:#fff!important;
  border:none!important;
}

/* Forms */
html[data-theme="dark"] .tx-filters label,
html[data-theme="dark"] .ph-card label,
html[data-theme="dark"] .tx-meta{
  color:#7d8799!important;
}
html[data-theme="dark"] input:not([type=checkbox]):not([type=radio]),
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .ph-input,
html[data-theme="dark"] .ph-select{
  background:#0e1219!important;
  border:1px solid rgba(255,255,255,.1)!important;
  color:var(--ph-text)!important;
  box-shadow:none!important;
}
html[data-theme="dark"] input:focus,
html[data-theme="dark"] select:focus,
html[data-theme="dark"] textarea:focus,
html[data-theme="dark"] .ph-input:focus,
html[data-theme="dark"] .ph-select:focus{
  border-color:rgba(59,130,246,.55)!important;
  box-shadow:0 0 0 3px rgba(59,130,246,.12)!important;
}

/* Nav */
html[data-theme="dark"] .ph-nav__link.is-active,
html[data-theme="dark"] .ph-nav a.active,
html[data-theme="dark"] .ph-sidebar a[aria-current="page"]{
  background:rgba(37,99,235,.12)!important;
  color:#93c5fd!important;
  border-color:rgba(37,99,235,.22)!important;
}

html[data-theme="dark"] .detail-grid{
  background:#1a2030!important;
  border:1px solid rgba(255,255,255,.07)!important;
}


/* ===== Site Düzenle / API Creator — commission blocks (were #fafbfc white) ===== */
html[data-theme="dark"] .comm-block,
html[data-theme="dark"] .commissions-stack .comm-block,
html[data-theme="dark"] .site-form-card .comm-block,
html[data-theme="dark"] .creator-card .comm-block{
  background:#141a24!important;
  background-color:#141a24!important;
  border-color:rgba(255,255,255,.08)!important;
  color:var(--ph-text,#e8eaed)!important;
}
html[data-theme="dark"] .comm-block h2,
html[data-theme="dark"] .comm-block th,
html[data-theme="dark"] .comm-block td,
html[data-theme="dark"] .comm-block .mono{
  color:var(--ph-text,#e8eaed)!important;
  border-color:rgba(255,255,255,.08)!important;
}
html[data-theme="dark"] .site-form-card .form-grid label,
html[data-theme="dark"] .creator-card .row-top label,
html[data-theme="dark"] .creator-card .row-extra label,
html[data-theme="dark"] .site-form-card .bank-select,
html[data-theme="dark"] .site-form-card .status-toggle,
html[data-theme="dark"] .site-form-card .footer-row{
  color:#a8b0bd!important;
  border-color:rgba(255,255,255,.08)!important;
}
html[data-theme="dark"] .site-form-card input,
html[data-theme="dark"] .site-form-card select,
html[data-theme="dark"] .site-form-card textarea,
html[data-theme="dark"] .creator-card input,
html[data-theme="dark"] .creator-card select,
html[data-theme="dark"] .comm-block input,
html[data-theme="dark"] .comm-block select,
html[data-theme="dark"] .input-rate,
html[data-theme="dark"] .input-tg{
  background:#0e1219!important;
  border:1px solid rgba(255,255,255,.12)!important;
  color:var(--ph-text,#e8eaed)!important;
}
html[data-theme="dark"] .site-form-card .table-scroll,
html[data-theme="dark"] .creator-card .table-scroll,
html[data-theme="dark"] .comm-block table{
  background:transparent!important;
  color:var(--ph-text,#e8eaed)!important;
}
html[data-theme="dark"] .site-form-card .tag,
html[data-theme="dark"] .blocked-tags .tag{
  background:#1a2030!important;
  color:var(--ph-text,#e8eaed)!important;
}
html[data-theme="dark"] .site-form-card .modal,
html[data-theme="dark"] .creator-card .modal,
html[data-theme="dark"] .modal[data-v-c282c7c9],
html[data-theme="dark"] .modal[data-v-ff8b1ce0]{
  background:#141a24!important;
  color:var(--ph-text,#e8eaed)!important;
  border:1px solid rgba(255,255,255,.1)!important;
}
/* Inline kasa banner (light #f8fafc) — soften in dark */
html[data-theme="dark"] .site-form-card .span-full[style*="background"]{
  filter:none!important;
}
html[data-theme="dark"] .ph-page .span-full{
  color:var(--ph-text,#e8eaed)!important;
}


/* TX menu dropdown — dark panel + outside-click companion styles */
html[data-theme="dark"] details.tx-menu[open] .tx-acts,
html[data-theme="dark"] .tx-menu[open] .tx-acts,
html[data-theme="dark"] .tx-menu .tx-acts{
  background:#1a222d!important;
  border:1px solid rgba(255,255,255,.12)!important;
  box-shadow:0 16px 40px rgba(0,0,0,.55)!important;
}
html[data-theme="dark"] .tx-menu .tx-menu__btn,
html[data-theme="dark"] .tx-menu > summary.tx-act{
  background:#1c2430!important;
  color:#e7ecf3!important;
  border:1px solid rgba(96,165,250,.4)!important;
}
html[data-theme="dark"] .tx-menu .tx-act:not(.tx-act--success):not(.tx-act--danger):not(.tx-act--warn):not(.tx-act--accent):not(.tx-act--copy){
  background:#222a36!important;
  color:#e7ecf3!important;
  border:1px solid rgba(255,255,255,.1)!important;
}


/* sidebar independent scroll v135 */
.ph-sidebar{
  height:100vh!important;
  max-height:100vh!important;
  overflow:hidden!important;
}
.ph-sidebar-nav{
  flex:1 1 auto!important;
  min-height:0!important;
  overflow-y:auto!important;
  overscroll-behavior:contain;
}


/* firma-recon-toolbar-fix */
html[data-theme="dark"] .preset-chip{
  border:1px solid rgba(148,163,184,.28)!important;
  background:rgba(30,41,59,.9)!important;
  color:var(--ph-text)!important;
  border-radius:999px!important;
  padding:.35rem .75rem!important;
  font-size:.8rem!important;
  font-weight:600!important;
  cursor:pointer!important;
}
html[data-theme="dark"] .preset-chip--active{
  background:rgba(13,148,136,.25)!important;
  border-color:rgba(13,148,136,.55)!important;
  color:#5eead4!important;
}
html[data-theme="dark"] .toolbar__presets{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:.4rem!important;
  align-items:center!important;
}
html[data-theme="dark"] .toolbar__dates{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:.75rem!important;
}
html[data-theme="dark"] .toolbar__actions{
  display:flex!important;
  gap:.5rem!important;
  flex-wrap:wrap!important;
}
html[data-theme="dark"] .toolbar{
  display:grid!important;
  grid-template-columns:1fr auto auto!important;
  gap:1rem!important;
  align-items:end!important;
}
@media (max-width:1100px){
  html[data-theme="dark"] .toolbar{
    grid-template-columns:1fr!important;
  }
}

/* xfer-modal-fields */
html[data-theme="dark"] .reject-modal .ph-select,
html[data-theme="dark"] .reject-modal select.ph-select,
html[data-theme="dark"] .reject-modal .ph-input {
  color-scheme: dark;
}
html[data-theme="dark"] .xfer-fields {
  margin-top: .75rem;
}
html[data-theme="dark"] .xfer-fields .ph-select-wrap,
html[data-theme="dark"] .xfer-fields .ph-input-wrap {
  width: 100%;
}

/* amount hold proposed */
.tx-amount{white-space:normal!important;line-height:1.25!important}
.tx-table td.tx-amount{font-variant-numeric:tabular-nums}
.tx-proposed,.detail-grid .tx-proposed{color:#c4b5fd!important;font-weight:700!important}

/* tx status badges stack cleanly */
.tx-table .tx-badges{
  display:inline-flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  gap:5px!important;
  max-width:11.5rem!important;
}
.tx-table .tx-badges .badge{
  display:inline-flex!important;
  white-space:nowrap!important;
  line-height:1.2!important;
  max-width:100%!important;
}
.tx-table td.tx-amount{
  white-space:nowrap!important;
  font-variant-numeric:tabular-nums;
  line-height:1.35!important;
}
