/* V35 - Global clickable checkbox/radio + local icon fallback */
:root{--smart-primary:#0b57d0;--smart-border:#94a3b8;--smart-bg:#fff;}

/* Keep real native controls above any old iCheck/custom overlay */
input[type="checkbox"], input[type="radio"]{
  -webkit-appearance:auto!important;-moz-appearance:auto!important;appearance:auto!important;
  opacity:1!important;visibility:visible!important;display:inline-block!important;
  position:relative!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;
  pointer-events:auto!important;z-index:9999!important;cursor:pointer!important;
  width:18px!important;height:18px!important;min-width:18px!important;min-height:18px!important;
  margin:0 7px!important;vertical-align:middle!important;transform:none!important;
  clip:auto!important;clip-path:none!important;overflow:visible!important;
  accent-color:var(--smart-primary)!important;
}
input[type="checkbox"]{border-radius:4px!important;} input[type="radio"]{border-radius:50%!important;}
input[type="checkbox"]:disabled,input[type="radio"]:disabled{opacity:.55!important;cursor:not-allowed!important;}

/* Kill broken iCheck wrappers/helpers that intercept clicks */
.iCheck-helper,.icheck-helper{display:none!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important;width:0!important;height:0!important;}
.icheckbox_square-blue,.iradio_square-blue,.icheckbox_minimal-blue,.iradio_minimal-blue,.icheckbox_flat-blue,.iradio_flat-blue,
.icheckbox_square-green,.iradio_square-green,.icheckbox_minimal-green,.iradio_minimal-green,.icheckbox_flat-green,.iradio_flat-green{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;background:none!important;border:0!important;
  width:auto!important;height:auto!important;min-width:20px!important;min-height:20px!important;box-shadow:none!important;position:relative!important;
}
.icheckbox_square-blue input,.iradio_square-blue input,.icheckbox_minimal-blue input,.iradio_minimal-blue input,.icheckbox_flat-blue input,.iradio_flat-blue input,
.icheckbox_square-green input,.iradio_square-green input,.icheckbox_minimal-green input,.iradio_minimal-green input,.icheckbox_flat-green input,.iradio_flat-green input{
  opacity:1!important;visibility:visible!important;display:inline-block!important;position:relative!important;pointer-events:auto!important;
}

/* Role/permission page: make rows readable and clickable */
#role_add_form .check_group,
form[action*="roles"] .check_group,
form[action*="permissions"] .check_group{
  position:relative!important;z-index:1!important;
}
#role_add_form .check_group label,
#role_add_form .check_group input,
form[action*="roles"] label,
form[action*="roles"] input[type="checkbox"],
form[action*="roles"] input[type="radio"]{cursor:pointer!important;}
#role_add_form .check_group .col-md-12,
#role_add_form .check_group .col-md-9,
#role_add_form .check_group .col-md-3,
form[action*="roles"] .check_group .col-md-12,
form[action*="roles"] .check_group .col-md-9,
form[action*="roles"] .check_group .col-md-3{
  pointer-events:auto!important;
}

/* If an old theme placed transparent pseudo layers above controls */
.checkbox::before,.checkbox::after,.radio::before,.radio::after,
.form-check::before,.form-check::after,.icheck::before,.icheck::after{pointer-events:none!important;}

/* Improve visible checked state on browsers that ignore accent-color */
input[type="checkbox"]:focus,input[type="radio"]:focus{outline:2px solid rgba(11,87,208,.25)!important;outline-offset:2px!important;}

/* Local no-font icon fallback for all known icon tags */
i[class*="fa"],i[class*="ion"],i[class*="glyphicon"],i[class*="ti-"],i[class*="bx-"],i[class*="bi-"],
span[class*="fa"],span[class*="ion"],span[class*="glyphicon"],span[class*="ti-"],span[class*="bx-"],span[class*="bi-"]{
  font-family:Arial,"Segoe UI Emoji","Apple Color Emoji","Noto Color Emoji",sans-serif!important;
  text-rendering:auto!important;speak:none!important;line-height:1!important;font-style:normal!important;
}
i[class*="fa-"]::before,span[class*="fa-"]::before,
i[class*="ion-"]::before,span[class*="ion-"]::before,
i[class*="glyphicon"]::before,span[class*="glyphicon"]::before,
i[class*="ti-"]::before,span[class*="ti-"]::before,
i[class*="bx-"]::before,span[class*="bx-"]::before,
i[class*="bi-"]::before,span[class*="bi-"]::before{font-family:Arial,"Segoe UI Emoji","Apple Color Emoji","Noto Color Emoji",sans-serif!important;content:"•";font-weight:700!important;display:inline-block;min-width:1em;text-align:center;}

.fa-home::before,.fa-dashboard::before,.fa-tachometer::before,.fa-tachometer-alt::before{content:"⌂"!important;}
.fa-users::before,.fa-user-friends::before,.fa-user-group::before{content:"👥"!important;}
.fa-user::before,.fa-user-alt::before{content:"👤"!important;}
.fa-cog::before,.fa-gear::before,.fa-cogs::before{content:"⚙"!important;}
.fa-box::before,.fa-boxes::before,.fa-cube::before,.fa-cubes::before,.fa-archive::before{content:"▣"!important;}
.fa-shopping-cart::before,.fa-cart-shopping::before,.fa-shopping-basket::before{content:"🛒"!important;}
.fa-file::before,.fa-file-alt::before,.fa-file-text::before,.fa-copy::before{content:"▤"!important;}
.fa-print::before{content:"⎙"!important;}.fa-search::before{content:"⌕"!important;}.fa-plus::before{content:"+"!important;}
.fa-edit::before,.fa-pencil::before,.fa-pencil-alt::before{content:"✎"!important;}.fa-trash::before,.fa-trash-alt::before{content:"🗑"!important;}
.fa-eye::before{content:"👁"!important;}.fa-check::before,.fa-check-circle::before{content:"✓"!important;}.fa-times::before,.fa-close::before{content:"×"!important;}
.fa-calendar::before,.fa-calendar-alt::before{content:"▦"!important;}.fa-clock::before,.fa-clock-o::before{content:"◷"!important;}
.fa-map-marker::before,.fa-map-marker-alt::before,.fa-location-dot::before{content:"⌖"!important;}.fa-mobile::before,.fa-mobile-alt::before,.fa-phone::before{content:"▯"!important;}
.fa-list::before,.fa-bars::before{content:"☰"!important;}.fa-chevron-down::before{content:"⌄"!important;}.fa-chevron-left::before{content:"‹"!important;}.fa-chevron-right::before{content:"›"!important;}
.fa-money::before,.fa-dollar-sign::before,.fa-coins::before{content:"¤"!important;}.fa-chart-bar::before,.fa-chart-line::before,.fa-chart-pie::before{content:"◔"!important;}
.fa-truck::before{content:"🚚"!important;}.fa-warehouse::before{content:"▥"!important;}.fa-building::before{content:"▦"!important;}.fa-briefcase::before{content:"▣"!important;}
.fa-bell::before{content:"🔔"!important;}.fa-envelope::before{content:"✉"!important;}.fa-lock::before{content:"🔒"!important;}.fa-unlock::before{content:"🔓"!important;}
.sidebar i[class*="fa-"],.sidebar-menu i[class*="fa-"],.main-sidebar i[class*="fa-"]{width:20px!important;text-align:center!important;margin-inline-end:6px!important;}
