/* PressFly 3.5.89 — single-source dark theme + mobile action normalization */
:root{
  --pf-dm-page:#06101e;--pf-dm-shell:#081525;--pf-dm-card:#0e1c2f;--pf-dm-card-2:#13243a;
  --pf-dm-input:#071321;--pf-dm-border:#2b405d;--pf-dm-border-soft:#1d3048;
  --pf-dm-text:#f3f7ff;--pf-dm-muted:#a9b7cb;--pf-dm-accent:#55a7ff;--pf-dm-danger:#ff4d4f;
}
html.dark-mode-site,html.dark-mode,html[data-theme="dark"]{color-scheme:dark}
html.dark-mode-site body,html.dark-mode body,html[data-theme="dark"] body{background:var(--pf-dm-page)!important;color:var(--pf-dm-text)!important}

/* Shells */
html.dark-mode-site body .content-wrapper,html.dark-mode body .content-wrapper,html[data-theme="dark"] body .content-wrapper,
html.dark-mode-site body .content,html.dark-mode body .content,html[data-theme="dark"] body .content,
html.dark-mode-site body .content-header,html.dark-mode body .content-header,html[data-theme="dark"] body .content-header,
html.dark-mode-site body .pf-admin-content,html.dark-mode body .pf-admin-content,html[data-theme="dark"] body .pf-admin-content{
 background:var(--pf-dm-page)!important;color:var(--pf-dm-text)!important;
}

/* Unified surfaces. Keep media/canvas untouched. */
html.dark-mode-site body :is(.card,.modal-content,.dropdown-menu,.list-group-item,.info-box,.small-box,.pf-list-card,.pf-filter-card,.pf-form-card,.pf-stat,.pf-hero,.pf-field-card,.pf-settings-tabs-card,.pf-settings-content-card,.pf-settings-module-card,.pf-settings-health-card,.pf-settings-summary-card,.pf-category-choice,.pf-newsletter-hero,.pf-newsletter-stat-card,.pf-newsletter-flat-card,.pf-newsletter-mini-panel,.pf-newsletter-composer-summary,.pf-search-panel,.pf-admin-search-panel,.pf-comment-card,.pf-row-card,.pf-item-card,.pf-summary-card,.pf-panel-card,.pf-module-card),
html.dark-mode body :is(.card,.modal-content,.dropdown-menu,.list-group-item,.info-box,.small-box,.pf-list-card,.pf-filter-card,.pf-form-card,.pf-stat,.pf-hero,.pf-field-card,.pf-settings-tabs-card,.pf-settings-content-card,.pf-settings-module-card,.pf-settings-health-card,.pf-settings-summary-card,.pf-category-choice,.pf-newsletter-hero,.pf-newsletter-stat-card,.pf-newsletter-flat-card,.pf-newsletter-mini-panel,.pf-newsletter-composer-summary,.pf-search-panel,.pf-admin-search-panel,.pf-comment-card,.pf-row-card,.pf-item-card,.pf-summary-card,.pf-panel-card,.pf-module-card),
html[data-theme="dark"] body :is(.card,.modal-content,.dropdown-menu,.list-group-item,.info-box,.small-box,.pf-list-card,.pf-filter-card,.pf-form-card,.pf-stat,.pf-hero,.pf-field-card,.pf-settings-tabs-card,.pf-settings-content-card,.pf-settings-module-card,.pf-settings-health-card,.pf-settings-summary-card,.pf-category-choice,.pf-newsletter-hero,.pf-newsletter-stat-card,.pf-newsletter-flat-card,.pf-newsletter-mini-panel,.pf-newsletter-composer-summary,.pf-search-panel,.pf-admin-search-panel,.pf-comment-card,.pf-row-card,.pf-item-card,.pf-summary-card,.pf-panel-card,.pf-module-card){
 background:var(--pf-dm-card)!important;border-color:var(--pf-dm-border)!important;color:var(--pf-dm-text)!important;box-shadow:none!important;
}
html.dark-mode-site body :is(.card-header,.card-footer,.modal-header,.modal-footer,.pf-card-header,.pf-card-footer,.pf-table thead th),
html.dark-mode body :is(.card-header,.card-footer,.modal-header,.modal-footer,.pf-card-header,.pf-card-footer,.pf-table thead th),
html[data-theme="dark"] body :is(.card-header,.card-footer,.modal-header,.modal-footer,.pf-card-header,.pf-card-footer,.pf-table thead th){
 background:var(--pf-dm-card-2)!important;border-color:var(--pf-dm-border)!important;color:var(--pf-dm-text)!important;
}

/* Settings pages: remove every leaking white block */
html.dark-mode-site body.pf-admin-flat #form-settings :is(.form-group.row,.form-group,.pf-field-card,.pf-settings-save-bar,.pf-settings-search-wrap,.pf-settings-search-results,.pf-settings-search-empty),
html.dark-mode body.pf-admin-flat #form-settings :is(.form-group.row,.form-group,.pf-field-card,.pf-settings-save-bar,.pf-settings-search-wrap,.pf-settings-search-results,.pf-settings-search-empty),
html[data-theme="dark"] body.pf-admin-flat #form-settings :is(.form-group.row,.form-group,.pf-field-card,.pf-settings-save-bar,.pf-settings-search-wrap,.pf-settings-search-results,.pf-settings-search-empty){
 background:var(--pf-dm-card)!important;border-color:var(--pf-dm-border)!important;color:var(--pf-dm-text)!important;
}
html.dark-mode-site body.pf-admin-flat #form-settings [style*="background: #fff"],html.dark-mode-site body.pf-admin-flat #form-settings [style*="background:#fff"],
html.dark-mode body.pf-admin-flat #form-settings [style*="background: #fff"],html.dark-mode body.pf-admin-flat #form-settings [style*="background:#fff"],
html[data-theme="dark"] body.pf-admin-flat #form-settings [style*="background: #fff"],html[data-theme="dark"] body.pf-admin-flat #form-settings [style*="background:#fff"]{
 background:var(--pf-dm-card)!important;color:var(--pf-dm-text)!important;border-color:var(--pf-dm-border)!important;
}

/* Inputs */
html.dark-mode-site body :is(.form-control,.custom-select,.form-select,textarea,select,input[type="text"],input[type="email"],input[type="number"],input[type="search"],input[type="password"],input[type="url"]),
html.dark-mode body :is(.form-control,.custom-select,.form-select,textarea,select,input[type="text"],input[type="email"],input[type="number"],input[type="search"],input[type="password"],input[type="url"]),
html[data-theme="dark"] body :is(.form-control,.custom-select,.form-select,textarea,select,input[type="text"],input[type="email"],input[type="number"],input[type="search"],input[type="password"],input[type="url"]){
 background-color:var(--pf-dm-input)!important;border-color:#395573!important;color:var(--pf-dm-text)!important;-webkit-text-fill-color:var(--pf-dm-text)!important;
}
html.dark-mode-site body :is(.form-control,.form-select,.custom-select):focus,
html.dark-mode body :is(.form-control,.form-select,.custom-select):focus,
html[data-theme="dark"] body :is(.form-control,.form-select,.custom-select):focus{border-color:#63b3ff!important;box-shadow:0 0 0 .2rem rgba(85,167,255,.18)!important}
html.dark-mode-site body :is(.select2-selection,.select2-dropdown,.select2-results,.select2-search__field),
html.dark-mode body :is(.select2-selection,.select2-dropdown,.select2-results,.select2-search__field),
html[data-theme="dark"] body :is(.select2-selection,.select2-dropdown,.select2-results,.select2-search__field){background:var(--pf-dm-input)!important;border-color:#395573!important;color:var(--pf-dm-text)!important}

/* Text and links */
html.dark-mode-site body :is(h1,h2,h3,h4,h5,h6,label,.card-title,.pf-row-title,.pf-card-header h3,.pf-newsletter-stat-value,.pf-newsletter-stat-label),
html.dark-mode body :is(h1,h2,h3,h4,h5,h6,label,.card-title,.pf-row-title,.pf-card-header h3,.pf-newsletter-stat-value,.pf-newsletter-stat-label),
html[data-theme="dark"] body :is(h1,h2,h3,h4,h5,h6,label,.card-title,.pf-row-title,.pf-card-header h3,.pf-newsletter-stat-value,.pf-newsletter-stat-label){color:var(--pf-dm-text)!important}
html.dark-mode-site body :is(.text-muted,small,.form-text,.help-block,.pf-row-sub,.pf-card-header small,.pf-newsletter-stat-sub,.pf-newsletter-hero p),
html.dark-mode body :is(.text-muted,small,.form-text,.help-block,.pf-row-sub,.pf-card-header small,.pf-newsletter-stat-sub,.pf-newsletter-hero p),
html[data-theme="dark"] body :is(.text-muted,small,.form-text,.help-block,.pf-row-sub,.pf-card-header small,.pf-newsletter-stat-sub,.pf-newsletter-hero p){color:var(--pf-dm-muted)!important}
html.dark-mode-site body a:not(.btn),html.dark-mode body a:not(.btn),html[data-theme="dark"] body a:not(.btn){color:#89c4ff}

/* Tables/cards on mobile */
html.dark-mode-site body .table,html.dark-mode body .table,html[data-theme="dark"] body .table{--bs-table-bg:transparent;--bs-table-color:var(--pf-dm-text);--bs-table-border-color:var(--pf-dm-border);color:var(--pf-dm-text)!important}
html.dark-mode-site body .table :is(th,td),html.dark-mode body .table :is(th,td),html[data-theme="dark"] body .table :is(th,td){background:var(--pf-dm-card)!important;border-color:var(--pf-dm-border)!important;color:var(--pf-dm-text)!important}
html.dark-mode-site body .pf-table tr,html.dark-mode body .pf-table tr,html[data-theme="dark"] body .pf-table tr{background:var(--pf-dm-card)!important;border-color:var(--pf-dm-border)!important}

/* Compact, consistent action buttons */
.pf-action-group,.pf-row-actions,.pf-card-actions,.pf-newsletter-subscriber-actions{display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:wrap!important}
.pf-action-group form,.pf-row-actions form,.pf-card-actions form{display:inline-flex!important;margin:0!important;width:auto!important}
.pf-action-group .btn,.pf-row-actions .btn,.pf-card-actions .btn,.pf-newsletter-subscriber-actions .btn{width:auto!important;min-width:44px!important;height:44px!important;padding:0 14px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;border-radius:12px!important;line-height:1!important;margin:0!important}
.pf-action-group .btn i,.pf-row-actions .btn i,.pf-card-actions .btn i{margin:0!important}
.pf-action-group .btn-danger,.pf-row-actions .btn-danger,.pf-card-actions .btn-danger{background:var(--pf-dm-danger)!important;border-color:var(--pf-dm-danger)!important;color:#fff!important}

/* Newsletter and search special cases */
html.dark-mode-site body .pf-newsletter-hero:before,html.dark-mode body .pf-newsletter-hero:before,html[data-theme="dark"] body .pf-newsletter-hero:before{opacity:.12!important}
html.dark-mode-site body .pf-settings-search-results,html.dark-mode body .pf-settings-search-results,html[data-theme="dark"] body .pf-settings-search-results{min-height:0!important}
html.dark-mode-site body .pf-settings-search-empty,html.dark-mode body .pf-settings-search-empty,html[data-theme="dark"] body .pf-settings-search-empty{padding:28px!important}

/* Preserve media */
html.dark-mode-site body :is(img,video,iframe,canvas,svg),html.dark-mode body :is(img,video,iframe,canvas,svg),html[data-theme="dark"] body :is(img,video,iframe,canvas,svg){filter:none!important}

@media(max-width:767.98px){
 .pf-flat-admin .pf-action-group,.pf-flat-admin .pf-row-actions,.pf-flat-admin .pf-card-actions{width:100%!important;justify-content:flex-start!important;display:flex!important}
 .pf-flat-admin .pf-action-group .btn,.pf-flat-admin .pf-row-actions .btn,.pf-flat-admin .pf-card-actions .btn{flex:0 0 auto!important;width:auto!important;min-width:46px!important;height:46px!important;padding:0 13px!important}
 .pf-flat-admin .pf-action-group .btn:not(:only-child) .pf-btn-label{display:none}
 .pf-flat-admin .pf-table td[data-label="Actions"],.pf-flat-admin .pf-table td[data-label="İşlemler"]{align-items:center!important}
 .pf-newsletter-hero-actions{display:flex!important;gap:10px!important;flex-wrap:wrap!important}
 .pf-newsletter-hero-actions .btn{width:auto!important;min-height:44px!important;padding:10px 14px!important}
 .pf-newsletter-stat-card{min-height:150px!important}
 body.pf-admin-flat .content{padding-left:10px!important;padding-right:10px!important}
}

/* Late overrides for custom admin modules seen in production */
html.dark-mode-site body :is(.pf-settings-search,.pf-settings-search-shell,.pf-search-card,.pf-newsletter-action-row,.pf-newsletter-template-row,.pf-newsletter-table-toolbar,.pf-newsletter-empty,.pf-comment-filter,.pf-comments-filter,.pf-admin-filter),
html.dark-mode body :is(.pf-settings-search,.pf-settings-search-shell,.pf-search-card,.pf-newsletter-action-row,.pf-newsletter-template-row,.pf-newsletter-table-toolbar,.pf-newsletter-empty,.pf-comment-filter,.pf-comments-filter,.pf-admin-filter),
html[data-theme="dark"] body :is(.pf-settings-search,.pf-settings-search-shell,.pf-search-card,.pf-newsletter-action-row,.pf-newsletter-template-row,.pf-newsletter-table-toolbar,.pf-newsletter-empty,.pf-comment-filter,.pf-comments-filter,.pf-admin-filter){background:var(--pf-dm-card)!important;border-color:var(--pf-dm-border)!important;color:var(--pf-dm-text)!important}
html.dark-mode-site body .pf-newsletter-hero h2,html.dark-mode body .pf-newsletter-hero h2,html[data-theme="dark"] body .pf-newsletter-hero h2{color:var(--pf-dm-text)!important;text-shadow:none!important}
html.dark-mode-site body .pf-newsletter-hero,html.dark-mode body .pf-newsletter-hero,html[data-theme="dark"] body .pf-newsletter-hero{background:var(--pf-dm-card)!important}
html.dark-mode-site body .pf-settings-search input,html.dark-mode body .pf-settings-search input,html[data-theme="dark"] body .pf-settings-search input{background:var(--pf-dm-input)!important;color:var(--pf-dm-text)!important;border-color:var(--pf-dm-border)!important}

@media(max-width:767.98px){
 body.pf-admin-flat .table td .btn,body.pf-admin-flat .table td form .btn{width:auto!important;min-width:44px!important;height:44px!important;padding:0 13px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;border-radius:12px!important}
 body.pf-admin-flat .table td form{display:inline-flex!important;width:auto!important;margin:0!important}
 body.pf-admin-flat .table td[data-label="Actions"],body.pf-admin-flat .table td[data-label="İşlemler"]{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:10px!important}
 body.pf-admin-flat .table td[data-label="Actions"]>.pf-action-group,body.pf-admin-flat .table td[data-label="İşlemler"]>.pf-action-group{flex:0 1 auto!important;width:auto!important;justify-content:flex-end!important}
 .pf-newsletter-hero-actions .btn{font-size:14px!important;white-space:nowrap!important}
}
