.afs-theme-row{padding:8px 24px}
.ap-brand:has(.afs-theme-toggle){flex-wrap:wrap}
.afs-theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:8px 12px;border:1px solid var(--afs-border,#cbd6e6);border-radius:10px;background:var(--afs-surface,#fff);color:var(--afs-text,#17243b)!important;font:inherit;font-size:14px;cursor:pointer}
.afs-theme-toggle i{font-size:18px;color:inherit!important}
.afs-theme-toggle[aria-pressed=true]{border-color:#6caeff;background:#183455;color:#e8f2ff!important}
.afs-theme-toggle:focus-visible{outline:3px solid #63aaff;outline-offset:3px}
.afs-theme-toggle--compact{width:40px;padding:8px;flex-shrink:0}
.afs-theme-toggle--compact span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
html[data-bs-theme=dark]{
--afs-bg:#101827;--afs-surface:#192438;--afs-surface-2:#223149;--afs-text:#e7eef9;--afs-text-muted:#b3c0d4;--afs-border:#3b4b63;--afs-brand:#79baff;--afs-brand-soft:#173555;--afs-success:#69d6aa;--afs-danger:#ff929e;--afs-warning:#ffd185;
--afs-surface-muted:#223149;--afs-border-strong:#56677f;--afs-bg-gradient:linear-gradient(#101827,#152034);--afs-brand-strong:#a6caff;--afs-blue-50:#173555;--afs-blue-100:#284c73;--afs-success-bg:#153b31;--afs-warning-bg:#453619;--afs-danger-bg:#451e2b;--afs-info:#a6caff;--afs-info-bg:#173555;--afs-neutral:#b3c0d4;--afs-neutral-bg:#223149;
--bs-body-bg:#101827;--bs-body-color:#e7eef9;--bs-secondary-color:#b3c0d4;--bs-border-color:#3b4b63;--primary-color:#79baff;--text-primary:#e7eef9;--text-muted:#b3c0d4;
--afs-action:#075fb6;--afs-action-strong:#084a9c;
--debt-primary:#a6caff;--debt-secondary:#79baff;--debt-muted:#b3c0d4;--debt-light:#223149;--debt-dark:#e7eef9;--debt-danger:#ff929e;--debt-success:#69d6aa;--debt-warning:#ffd185;--debt-info:#86d8ef;
--ap-bg:#101827;--ap-surface:#192438;--ap-ink:#e7eef9;--ap-body:#c1cde1;--ap-muted:#b3c0d4;--ap-line:#3b4b63;--ap-faint:#b3c0d4;
}
html[data-bs-theme=dark] :is(body,.app-container,.main-content,.auth-container){background:#101827!important;color:#e7eef9!important}
html[data-bs-theme=dark] :is(.card,.auth-card,.glass-card,.dashboard-card,.debt-info-notice,.debt-summary-card,.debt-stat-card,.debt-table-container,.mof-kpi-card,.mof-stat-card,.mof-debt-card,.mof-arr-card,.mof-arr-panel,.mof-info,.mof-other,.mof-norman,.mof-refresh,.mof-overview,.modal-content,.dropdown-menu,.registration-option-card){background:#192438!important;border-color:#3b4b63!important;box-shadow:0 2px 12px #0002!important}
html[data-bs-theme=dark] :is(.sidebar,.mobile-topbar,.register-nav,.ap-side){background:#152034!important;border-color:#3b4b63!important}
html[data-bs-theme=dark] :is(.register-layout,.register-card,.login-layout){--afs-text:#e7eef9;--afs-text-muted:#b3c0d4;--afs-bg:#101827;--afs-surface:#192438;--auth-text:#e7eef9;--auth-title:#a6caff;--auth-border:#3b4b63;--mof-line:#3b4b63;color:#e7eef9}
html[data-bs-theme=dark] :is(.register-layout,.login-layout){background:radial-gradient(ellipse at 5% 45%,#16314c,transparent 65%),#101827!important}
html[data-bs-theme=dark] :is(.form-control,.form-select,.register-card .form-control,.register-card .form-select,.register-promo-control,input:not([type=checkbox]):not([type=radio]):not([type=submit]),textarea,select){background-color:#101b2d!important;border-color:#56677f!important;color:#e7eef9!important}
html[data-bs-theme=dark] :is(input,textarea)::placeholder{color:#acb9cc!important;opacity:1}
html[data-bs-theme=dark] select{color-scheme:dark}
html[data-bs-theme=dark] :is(option,optgroup){color:#e7eef9!important;background-color:#101b2d!important}
/* Embedded-browser select adapters paint separate DOM panels instead of the
   native popup. Theme that visible surface too; keep native values/events. */
html[data-bs-theme=dark] :is(.bb-custom-select-panel,.bb-custom-select-option){background-color:#192438!important;color:#e7eef9!important;border-color:#56677f!important}
html[data-bs-theme=dark] .bb-custom-select-option:is(:hover,[aria-selected=true]){background-color:#284c73!important;color:#fff!important}
html[data-bs-theme=dark] .oikonomiki-page :is(.form-label,.card-header h5,.loading-spinner h5,.loading-spinner p){color:#e7eef9!important}
html[data-bs-theme=dark] .oikonomiki-page .loading-spinner{background:#192438!important;border-color:#3b4b63!important}
html[data-bs-theme=dark] :is(.form-label,.form-check-label,.register-card label,.register-card .form-label,.register-heading h2,.register-heading p,.register-intro h1,.register-intro p,.register-benefits h3,.register-benefits p,.register-card .option-title,.register-card .option-description,.register-card .option-features li,.register-card .period,.register-trust,.mof-debt-card__title){color:#e7eef9!important}
html[data-bs-theme=dark] :is(.text-muted,.text-secondary,.mof-kpi-label,.mof-debt-field dt,.mof-arr-card__subtitle,.mof-refresh__sub,.mof-refresh__nightly,.mof-stat-label){color:#b3c0d4!important}
html[data-bs-theme=dark] :is(.mof-payment-identity,.mof-payment-rf,.mof-gemi-payment,.mof-gemi-payment-card,.mof-source-empty,.mof-arr-panel,.register-subscription-note,.register-subscription-description,.register-language,.register-language a,.register-language button){background-color:#223149!important;border-color:#3b4b63!important}
html[data-bs-theme=dark] :is(.register-card .registration-option-card.selected,.register-card .registration-option-card:focus-within){background:#173555!important;border-color:#79baff!important}
html[data-bs-theme=dark] :is(table,.table,.debt-table){--bs-table-bg:#192438;--bs-table-color:#e7eef9;--bs-table-border-color:#3b4b63;background-color:#192438!important;color:#e7eef9!important}
html[data-bs-theme=dark] :is(td,.debt-table td){background-color:#192438!important;border-color:#3b4b63!important;color:#e7eef9!important}
html[data-bs-theme=dark] :is(.mof-source-nav,.mof-source-empty){background:#192438!important}
html[data-bs-theme=dark] :is(.mof-compact code,.mof-payment-identity,.mof-gemi-payments code){background:#223149!important;color:#d6eaff!important}
html[data-bs-theme=dark] .mof-compact{--mof-line:#3b4b63}
html[data-bs-theme=dark] .mof-compact :is(.mof-debt-details,.mof-source-details)>summary{color:#9dcbff!important}
html[data-bs-theme=dark] :is(.modal-body,.modal-header,.modal-footer){border-color:#3b4b63!important}
html[data-bs-theme=dark] :is(.card-header:not(.bg-primary):not(.bg-success):not(.bg-warning):not(.bg-danger):not(.bg-info):not(.bg-dark),.card-footer,.input-group-text){
background-color:var(--afs-surface-2)!important;color:var(--afs-text)!important;border-color:var(--afs-border)!important
}
html[data-bs-theme=dark] :is(.table-light,thead.table-light th){
--bs-table-bg:#223149;--bs-table-color:#e7eef9;background-color:#223149!important;color:#e7eef9!important
}
html[data-bs-theme=dark] .modal-title.text-dark{color:var(--afs-text)!important}
html[data-bs-theme=dark] .main-content .table-responsive::after{background:linear-gradient(to left,#192438ee,transparent)}
html[data-bs-theme=dark] #navigation-loading{background:rgba(16,24,39,.95)!important;color:var(--afs-text)}
html[data-bs-theme=dark] #navigation-loading .loading-content{background:var(--afs-surface)!important;border-color:var(--afs-border)!important}
html[data-bs-theme=dark] :is(.alert-info,.alert-primary){background:#173555!important;color:#d6eaff!important;border-color:#38628d!important}
html[data-bs-theme=dark] :is(.alert-danger,.afs-checkbox-error,.mof-gemi-rf-missing){color:#ffb4bd!important}
html[data-bs-theme=dark] a:not(.btn):not(.afs-btn):not(.mof-kpi-card):not(.nav-link){color:#9dcbff}
html[data-bs-theme=dark] img[src*="images/myafs-logo"]:not(.myafs-theme-logo){background:#fcfeff;border-radius:6px;filter:none!important;mix-blend-mode:normal}
html[data-bs-theme=dark] :is(.bg-white,.bg-light,.program-card,.funding-card,.afs-card,.afs-panel,.afs-stat){background-color:#192438!important;color:#e7eef9!important;border-color:#3b4b63!important}
html[data-bs-theme=dark] :is(.register-benefits strong,.register-card .custom-checkbox-label,.register-card .option-title,.register-card .option-features,.register-card .option-description){color:#e7eef9!important}
html[data-bs-theme=dark] :is(.mof-debt-badge,.mof-status,.mof-kpi-icon,.mof-stat-icon){background:#223149!important;color:#c8e2ff!important}
html[data-bs-theme=dark] .mof-status--overdue{background:#451e2b!important;color:#ffb4bd!important}
html[data-bs-theme=dark] .mof-status--paid{background:#153b31!important;color:#9eefd5!important}
html[data-bs-theme=dark] .glass-sidebar::before{background:transparent}
html[data-bs-theme=dark] .sidebar .nav-link.active{background:#173555!important;color:#a6caff!important}
html[data-bs-theme=dark] .sidebar .nav-link.active *{color:inherit!important}
.mof-compact .afs-btn--primary :is(span,i){color:#fff!important}
/* Legacy auth rules contain !important dark text: override at the same component scope. */
html[data-bs-theme=dark] .register-layout :is(h1,h2,h3,h4,h5,h6,p,label,strong,small,li,dt,dd,span){color:#e7eef9!important;opacity:1}
html[data-bs-theme=dark] .register-layout .register-card.auth-card :is(.text-white,.text-white-50,.register-subscription-description,.register-key-help,.period){color:#cbd7e9!important}
html[data-bs-theme=dark] .register-layout .register-card.auth-card .price{color:#aad4ff!important}
html[data-bs-theme=dark] .register-layout i{color:#aad4ff!important}
html[data-bs-theme=dark] .register-layout :is(.btn-auth,.btn-primary,.btn-proslipsi) :is(i,span){color:#fff!important}
html[data-bs-theme=dark] .register-layout .register-card.auth-card :is(input.form-control,textarea.form-control)::placeholder{color:#b7c5d9!important;opacity:1}
html[data-bs-theme=dark] .register-layout .register-card.auth-card :is(.form-control,.form-select,.input-group-text){color:#e7eef9!important;background-color:#101b2d!important;border-color:#56677f!important}
html[data-bs-theme=dark] .register-layout :is(.text-danger,.invalid-feedback,.errorlist,.register-code-invalid,.afs-checkbox-error){color:#ffb4bd!important}
html[data-bs-theme=dark] .register-layout .text-success{color:#9eefd5!important}
html[data-bs-theme=dark] .register-layout .register-apply{background:#284c73!important;color:#e7eef9!important;border-color:#79baff!important}
html[data-bs-theme=dark] .register-layout .register-steps li span{background:#2f415c;border-color:#56677f;color:#e7eef9!important}
html[data-bs-theme=dark] .register-layout .register-steps li[aria-current=step] span{background:#1769c4}
html[data-bs-theme=dark] .register-layout .register-eyebrow{background:#173555!important;color:#c8e2ff!important}
html[data-bs-theme=dark] .register-layout :is(.register-benefits i,.register-account-icon){background:#223149!important;color:#aad4ff!important}
html[data-bs-theme=dark] .register-layout .register-card.auth-card a:not(.btn-auth):not(.btn-primary):not(.btn-proslipsi){color:#9dcbff!important}
html[data-bs-theme=dark] .register-layout .register-nav>.btn-outline-primary{color:#aad4ff!important;border-color:#79baff!important}
html[data-bs-theme=dark] .register-layout .register-illustration img{mix-blend-mode:normal;border-radius:10px}
@media(prefers-reduced-motion:reduce){.afs-theme-toggle{transition:none}}
