/* XtremeX Billing C26: MikroTik Server action icon readability.
   This stylesheet is scoped strictly to the router table action cell.
   It changes presentation only, not API calls or permissions. */
body .ui252-mikrotik #routers-list td:last-child .btn {
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:4px !important;
  vertical-align:middle !important;
  opacity:1 !important;
  visibility:visible !important;
  -webkit-text-fill-color:currentColor !important;
  text-shadow:none !important;
  box-shadow:none;
  transition:background-color .15s ease, border-color .15s ease, box-shadow .15s ease !important;
}
body .ui252-mikrotik #routers-list td:last-child .btn i.fa-solid,
body .ui252-mikrotik #routers-list td:last-child .btn i.fas {
  color:inherit !important;
  -webkit-text-fill-color:currentColor !important;
  opacity:1 !important;
  visibility:visible !important;
  display:inline-block !important;
  font-size:13px !important;
  line-height:1 !important;
  text-shadow:none !important;
  filter:none !important;
}
/* Explicit contrasting button pairs prevent old theme overrides from
   producing white icons on white action tiles. */
body .ui252-mikrotik #routers-list td:last-child .btn-warning {
  background:#fff0d0 !important; color:#764400 !important; border:1px solid #e2b565 !important;
}
body .ui252-mikrotik #routers-list td:last-child .btn-info {
  background:#e4f5ff !important; color:#075982 !important; border:1px solid #92c9ea !important;
}
body .ui252-mikrotik #routers-list td:last-child .btn-indigo {
  background:#e6edff !important; color:#25449e !important; border:1px solid #b6c7fb !important;
}
body .ui252-mikrotik #routers-list td:last-child .btn-success {
  background:#dbf7e9 !important; color:#08603c !important; border:1px solid #8ddcb2 !important;
}
body .ui252-mikrotik #routers-list td:last-child .btn-danger {
  background:#ffe5ea !important; color:#a31b38 !important; border:1px solid #f0a4b3 !important;
}
/* The same buttons on dark backgrounds: no pale-on-pale text. */
body.dark-mode .ui252-mikrotik #routers-list td:last-child .btn-warning,
body[data-theme="dark"] .ui252-mikrotik #routers-list td:last-child .btn-warning,
html[data-theme="dark"] body .ui252-mikrotik #routers-list td:last-child .btn-warning {
  background:#503714 !important; color:#ffe3a4 !important; border-color:#a37835 !important;
}
body.dark-mode .ui252-mikrotik #routers-list td:last-child .btn-info,
body[data-theme="dark"] .ui252-mikrotik #routers-list td:last-child .btn-info,
html[data-theme="dark"] body .ui252-mikrotik #routers-list td:last-child .btn-info {
  background:#123d55 !important; color:#b6e9ff !important; border-color:#377b9c !important;
}
body.dark-mode .ui252-mikrotik #routers-list td:last-child .btn-indigo,
body[data-theme="dark"] .ui252-mikrotik #routers-list td:last-child .btn-indigo,
html[data-theme="dark"] body .ui252-mikrotik #routers-list td:last-child .btn-indigo {
  background:#203864 !important; color:#d4e4ff !important; border-color:#5578b8 !important;
}
body.dark-mode .ui252-mikrotik #routers-list td:last-child .btn-success,
body[data-theme="dark"] .ui252-mikrotik #routers-list td:last-child .btn-success,
html[data-theme="dark"] body .ui252-mikrotik #routers-list td:last-child .btn-success {
  background:#134735 !important; color:#b4f5d8 !important; border-color:#389472 !important;
}
body.dark-mode .ui252-mikrotik #routers-list td:last-child .btn-danger,
body[data-theme="dark"] .ui252-mikrotik #routers-list td:last-child .btn-danger,
html[data-theme="dark"] body .ui252-mikrotik #routers-list td:last-child .btn-danger {
  background:#612337 !important; color:#ffc3cc !important; border-color:#a65067 !important;
}
body .ui252-mikrotik #routers-list td:last-child .btn:hover {
  filter:brightness(.94) !important;
  box-shadow:0 0 0 2px rgba(65,155,229,.17) !important;
}
body.dark-mode .ui252-mikrotik #routers-list td:last-child .btn:hover,
body[data-theme="dark"] .ui252-mikrotik #routers-list td:last-child .btn:hover,
html[data-theme="dark"] body .ui252-mikrotik #routers-list td:last-child .btn:hover {
  filter:brightness(1.18) !important;
}
body .ui252-mikrotik #routers-list td:last-child .btn:focus-visible {
  outline:3px solid #17a2ed !important;
  outline-offset:2px !important;
}
@media (prefers-reduced-motion: reduce) {
  body .ui252-mikrotik #routers-list td:last-child .btn { transition:none !important; }
}
