/* OR-NEWSKFF v238-m76 — firefighting mobile badge and status layout.
   Explicit sector-only override for the old two-state slider's absolute knob,
   which otherwise survives as a white disc over the compact status text.
   No changes to prevention, permission logic, or the status engine. */
@media (max-width:699px), (max-width:950px) and (max-height:500px) and (pointer:coarse) {
  html body > #homeNewsDetailModal#homeNewsDetailModal.home-news-detail-modal.detail-layout-split.kff-field-mode.theme-sector-firefighting:not(.kff-direct-edit) .kff-field-shell > .kff-field-category {
    position:absolute !important;
    z-index:8 !important;
    top:14px !important;
    right:auto !important;
    bottom:auto !important;
    left:50% !important;
    transform:translateX(-50%) !important;
    max-width:calc(100% - 112px) !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    pointer-events:none !important;
  }
  /* The compact title/status bar is shown on deep scroll. It must be above
     the anchored sector caption, but never behind the back button. */
  html body > #homeNewsDetailModal#homeNewsDetailModal.home-news-detail-modal.detail-layout-split.kff-field-mode.theme-sector-firefighting:not(.kff-direct-edit) .kff-field-mini:not([hidden]) {
    z-index:10 !important;
  }
  /* Single stable pill. Do not inherit the 2-state sliding-switch geometry. */
  html body > #homeNewsDetailModal#homeNewsDetailModal.home-news-detail-modal.detail-layout-split.kff-field-mode.theme-sector-firefighting:not(.kff-direct-edit) .kff-field-hero #homeNewsDetailStatusAction button.home-news-status-switch-control {
    position:absolute !important;
    inset:auto auto 9px 10px !important;
    box-sizing:border-box !important;
    display:inline-flex !important;
    flex-direction:row !important;
    direction:rtl !important;
    align-items:center !important;
    justify-content:center !important;
    gap:7px !important;
    flex:0 0 133px !important;
    width:133px !important;
    min-width:133px !important;
    max-width:133px !important;
    height:36px !important;
    min-height:36px !important;
    max-height:36px !important;
    padding:5px 10px !important;
    border:1px solid rgba(246,126,152,.82) !important;
    border-radius:22px !important;
    overflow:visible !important;
    background:#bc435d !important;
    color:#fff !important;
    font-family:inherit !important;
    font-size:0 !important;
    line-height:1 !important;
    box-shadow:0 2px 7px #0003 !important;
    transform:none !important;
    transition:background-color .2s ease !important;
    pointer-events:auto !important;
    opacity:1 !important;
  }
  html body > #homeNewsDetailModal#homeNewsDetailModal.home-news-detail-modal.detail-layout-split.kff-field-mode.theme-sector-firefighting:not(.kff-direct-edit) .kff-field-hero #homeNewsDetailStatusAction button.home-news-status-switch-control[aria-checked="true"] {
    border-color:#67cfa1 !important;
    background:#16825d !important;
  }
  /* Before = a true small dot, never the old slider's oversized overlay. */
  html body > #homeNewsDetailModal#homeNewsDetailModal.home-news-detail-modal.detail-layout-split.kff-field-mode.theme-sector-firefighting:not(.kff-direct-edit) .kff-field-hero #homeNewsDetailStatusAction button.home-news-status-switch-control::before,
  html body > #homeNewsDetailModal#homeNewsDetailModal.home-news-detail-modal.detail-layout-split.kff-field-mode.theme-sector-firefighting:not(.kff-direct-edit) .kff-field-hero #homeNewsDetailStatusAction button.home-news-status-switch-control[aria-checked="true"]::before {
    content:'' !important;
    position:static !important;
    inset:auto !important;
    z-index:auto !important;
    display:block !important;
    flex:0 0 10px !important;
    width:10px !important;
    min-width:10px !important;
    max-width:10px !important;
    height:10px !important;
    min-height:10px !important;
    max-height:10px !important;
    padding:0 !important;
    margin:0 !important;
    border:0 !important;
    border-radius:50% !important;
    background:#fff !important;
    box-shadow:0 0 3px #fff5 !important;
    transform:none !important;
    transition:none !important;
    pointer-events:none !important;
  }
  /* After = one legible state label, without any stray icon/background. */
  html body > #homeNewsDetailModal#homeNewsDetailModal.home-news-detail-modal.detail-layout-split.kff-field-mode.theme-sector-firefighting:not(.kff-direct-edit) .kff-field-hero #homeNewsDetailStatusAction button.home-news-status-switch-control::after {
    content:'جاري التعامل' !important;
    position:static !important;
    inset:auto !important;
    z-index:auto !important;
    display:block !important;
    flex:0 0 auto !important;
    width:auto !important;
    min-width:0 !important;
    max-width:none !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    padding:0 !important;
    margin:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    color:#fff !important;
    font:800 12px/1.2 "Tajawal",Tahoma,Arial,sans-serif !important;
    white-space:nowrap !important;
    overflow:visible !important;
    transform:none !important;
    pointer-events:none !important;
  }
  html body > #homeNewsDetailModal#homeNewsDetailModal.home-news-detail-modal.detail-layout-split.kff-field-mode.theme-sector-firefighting:not(.kff-direct-edit) .kff-field-hero #homeNewsDetailStatusAction button.home-news-status-switch-control[aria-checked="true"]::after {
    content:'تم التعامل' !important;
  }
  /* Store the full date/time to the right of the status; prevent overlap. */
  html body > #homeNewsDetailModal#homeNewsDetailModal.home-news-detail-modal.detail-layout-split.kff-field-mode.theme-sector-firefighting:not(.kff-direct-edit) .kff-ref-hero-when {
    left:146px !important;
    right:10px !important;
    min-width:0 !important;
  }
  @media (max-width:360px) {
    html body > #homeNewsDetailModal#homeNewsDetailModal.home-news-detail-modal.detail-layout-split.kff-field-mode.theme-sector-firefighting:not(.kff-direct-edit) .kff-field-hero #homeNewsDetailStatusAction button.home-news-status-switch-control {
      left:8px !important;
      flex-basis:125px !important;
      width:125px !important;
      min-width:125px !important;
      max-width:125px !important;
    }
    html body > #homeNewsDetailModal#homeNewsDetailModal.home-news-detail-modal.detail-layout-split.kff-field-mode.theme-sector-firefighting:not(.kff-direct-edit) .kff-ref-hero-when {
      left:139px !important;
    }
  }
}
